From abfa0dfb76eec0fcc83b3093c6231256faddc047 Mon Sep 17 00:00:00 2001 From: tjsky Date: Mon, 18 Mar 2024 13:02:17 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20tjsky/pi?= =?UTF-8?q?kpak@6a65394af427e8053b2b409bc2cec8f67eed7064=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/index.50387d2f.js | 1 - assets/index.e931b941.js | 1 + assets/{invited.6b27b7b5.js => invited.d52e964b.js} | 2 +- assets/{list.28a71f07.js => list.d9e6c736.js} | 2 +- assets/{login.5b94e583.js => login.046ee112.js} | 2 +- assets/{register.52401868.js => register.eb007e2e.js} | 2 +- assets/{setting.72564549.js => setting.73c704e7.js} | 6 +++--- assets/{shareInfo.72d0810e.js => shareInfo.6dfa34fc.js} | 2 +- assets/{sms.9fb45d5d.js => sms.e4c60e2e.js} | 2 +- assets/{test.0b72ee9b.js => test.59236008.js} | 2 +- assets/{testtest.81c2e5f2.js => testtest.7142454c.js} | 2 +- assets/{trash.267613a1.js => trash.8bbf99ac.js} | 2 +- index.html | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) delete mode 100644 assets/index.50387d2f.js create mode 100644 assets/index.e931b941.js rename assets/{invited.6b27b7b5.js => invited.d52e964b.js} (98%) rename assets/{list.28a71f07.js => list.d9e6c736.js} (99%) rename assets/{login.5b94e583.js => login.046ee112.js} (99%) rename assets/{register.52401868.js => register.eb007e2e.js} (99%) rename assets/{setting.72564549.js => setting.73c704e7.js} (93%) rename assets/{shareInfo.72d0810e.js => shareInfo.6dfa34fc.js} (98%) rename assets/{sms.9fb45d5d.js => sms.e4c60e2e.js} (99%) rename assets/{test.0b72ee9b.js => test.59236008.js} (99%) rename assets/{testtest.81c2e5f2.js => testtest.7142454c.js} (93%) rename assets/{trash.267613a1.js => trash.8bbf99ac.js} (88%) diff --git a/assets/index.50387d2f.js b/assets/index.50387d2f.js deleted file mode 100644 index 06ff310b4..000000000 --- a/assets/index.50387d2f.js +++ /dev/null @@ -1 +0,0 @@ -var ce=Object.defineProperty;var U=Object.getOwnPropertySymbols;var de=Object.prototype.hasOwnProperty,pe=Object.prototype.propertyIsEnumerable;var H=(e,t,o)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,W=(e,t)=>{for(var o in t||(t={}))de.call(t,o)&&H(e,o,t[o]);if(U)for(var o of U(t))pe.call(t,o)&&H(e,o,t[o]);return e};import{d as b,u as me,r as f,o as K,a as Y,b as v,c as G,w as c,e as i,f as n,N as ge,g as _e,h as he,z as fe,i as ve,j as ke,k as Z,l as ye,m as Fe,n as Ee,p as we,q as xe,s as F,t as Be,v as De,x as Ae,y as k,A as C,B as Ne,C as be,D as N,E as m,F as q,G as Ce,H as Ie,I,L as Le,J as X,K as Pe,M as $e,O as Se,P as Oe,Q as Te,R as Re,S as Ve,T as je,U as Q,V as Me,W as ze,X as Je,Y as Ue,Z as He,_ as We,$ as Ke,a0 as Ye,a1 as Ge,a2 as Ze,a3 as qe}from"./vendor.64da71ad.js";const Xe=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const u of r.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function o(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(s){if(s.ep)return;s.ep=!0;const r=o(s);fetch(s.href,r)}};Xe();const Qe=b({setup(e){return window.$message=me(),(t,o)=>null}}),et=["https://pikpak.995579.xyzk"],tt=b({setup(e){const t=f({common:{primaryColor:"#306eff",hoverColor:"#306eff",primaryColorHover:"#306eff",heightMedium:"42px"},Layout:{siderColor:"#f5f5f6"},Breadcrumb:{fontSize:"16px"},Dropdown:{optionTextColorHover:"#fff"},InternalSelectMenu:{optionTextColorActive:"#fff"},Upload:{itemColorHover:"#F3F3F5FF",itemTextColorSuccess:"#18A058FF"}});return K(()=>{localStorage.getItem("isSettingProxy")||localStorage.setItem("proxy",JSON.stringify(et))}),(o,a)=>{const s=Y("router-view");return v(),G(n(ke),{locale:n(fe),"date-locale":n(ve),"theme-overrides":t.value},{default:c(()=>[i(n(he),null,{default:c(()=>[i(n(ge),null,{default:c(()=>[i(n(_e),null,{default:c(()=>[i(Qe),i(s)]),_:1})]),_:1})]),_:1})]),_:1},8,["locale","date-locale","theme-overrides"])}}}),ot="modulepreload",ee={},st="/pikpak/",p=function(t,o){return!o||o.length===0?t():Promise.all(o.map(a=>{if(a=`${st}${a}`,a in ee)return;ee[a]=!0;const s=a.endsWith(".css"),r=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${r}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":ot,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((D,_)=>{u.addEventListener("load",D),u.addEventListener("error",_)})})).then(()=>t())};var at="/pikpak/assets/logo1.08eb9157.png";const g=Z.create({});g.interceptors.request.use(e=>{var o;const t=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");if(e.headers=e.headers||{},t.access_token&&(e.headers.Authorization=`${t.token_type||"Bearer"} ${t.access_token}`),((o=e.url)==null?void 0:o.indexOf("https://",4))===-1){const a=JSON.parse(window.localStorage.getItem("proxy")||"[]");if(a.length>0){const s=Math.floor(Math.random()*a.length);e.url=a[s]+"/"+e.url}}return e});let w=!1;g.interceptors.response.use(e=>e,e=>{var a;const{response:t,config:o}=e;if(t.status)switch(t.status){case 401:console.log(1);const s=window.localStorage.getItem("pikpakLoginData"),r=s?JSON.parse(s):{};return r.username&&r.password&&!w?(console.log("wait",o.url),w=!0,g.post("https://user.mypikpak.com/v1/auth/signin",W({captcha_token:"",client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg"},r)).then(u=>(u.data&&u.data.access_token&&window.localStorage.setItem("pikpakLogin",JSON.stringify(u.data)),w=!1,g(o))).catch(()=>(x.push("/login"),!1))):r.username&&r.password&&w?new Promise((u,D)=>{const _=setInterval(()=>{w||(clearInterval(_),u(g(o)))},100)}):(x.push("/login?redirect="+x.currentRoute.value.fullPath),Promise.reject(e));default:window.$message.error(((a=t==null?void 0:t.data)==null?void 0:a.error_description)||"\u51FA\u9519\u4E86");break}return console.log(o.url,111),Promise.reject(e)});const nt=Z.create({});nt.interceptors.request.use(e=>{e.headers={Authorization:"Bearer secret_FErDcv3kgsFNLiWUDOWYdJhNqOIKj55eteBg3vIoiLt","Notion-Version":"2021-08-16","Content-Type":"application/json"};const t=JSON.parse(window.localStorage.getItem("proxy")||"[]");if(t.length>0){const o=Math.floor(Math.random()*t.length);e.url=t[o]+"/"+e.url}return e});const te=function(e){if(isNaN(e))return"";let t=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(2));o<1&&(o=0);let a=Math.floor(o/10);return e=e/Math.pow(2,10*a),e.toString().length>e.toFixed(2).toString().length&&(e=parseFloat(e.toFixed(2))),e+" "+t[a]};const it=m("a",{href:"https://mypikpak.com/",target:"_blank",class:"logo-box"},[m("img",{src:"https://mypikpak.com/apple-touch-icon.png",class:"logo-box__icon",alt:""}),m("div",{class:"logo-box__text"},"PikPak")],-1),rt={key:0,class:"content-bottom"},ut=k("\u4F1A\u5458\u7801"),lt={style:{"margin-bottom":"0"}},ct=m("a",{style:{color:"#306eff"},target:"_blank",href:"https://www.tjsky.net/?p=220#i-21"},"\u6587\u4EF6\u5217\u8868\u5237\u4E0D\u51FA\u6765\uFF1F",-1),dt=k(" \u3010\u8BF7\u4F9D\u6B21\u70B9\u9009\uFF1A\u8BBE\u7F6E-\u4EE3\u7406\u8BBE\u7F6E-\u6062\u590D\u9ED8\u8BA4-\u4FDD\u5B58\u8BBE\u7F6E \u540E\u518D\u5237\u65B0\u8BD5\u8BD5\u3011 "),pt={class:"bottom-user-info"},mt={key:0,src:at,class:"user-info-avatar"},gt={key:1,src:"https://www.mypikpak.com/logo.png",class:"user-info-avatar"},_t={class:"user-info-name"},ht={key:0},ft={class:"action"},vt=k(" \u9000\u51FA\u767B\u5F55 "),kt=m("p",null,[m("a",null,[k("\u76EE\u524D\u4EF7\u683C\uFF1APikPak\u4F53\u9A8C\u4F1A\u5458\u5E74\u5361 188 \u5143\uFF0C\u6B63\u5F0F\u6708\u5361 32 \u5143\uFF0C\u6B63\u5F0F\u5E74\u5361 320 \u5143\uFF0C\u6B63\u5F0F\u4E09\u5E74\u5361 699 \u5143"),m("br"),k(" \u63D0\u9192\uFF1A\u4F53\u9A8C\u5361\u6BCF\u8D26\u53F7\u53EA\u80FD\u8D2D\u4E70\u4F7F\u7528\u4E00\u6B21,\u6B63\u5F0F\u5361\u53EF\u65E0\u9650\u53E0\u52A0\u3002")])],-1),yt=k("\u6DFB\u52A0"),Ft=b({setup(e){const t=f(!1),o=l=>()=>Q(I,null,{default:()=>Q(l)}),a=ye(),s=Fe(),r=f([{label:"\u6587\u4EF6",key:"list",icon:o(We)},{label:"\u89C6\u9891",key:"video",icon:o(Me)},{label:"\u56FE\u7247",key:"image",icon:o(ze)},{label:"\u56DE\u6536\u7AD9",key:"trash",icon:o(Je)},{label:"\u9080\u8BF7",key:"invited",icon:o(Ue)},{label:"\u8BBE\u7F6E",key:"setting",icon:o(He)}]),u=f(),D=()=>{g.get("https://user.mypikpak.com/v1/user/me").then(l=>{window.localStorage.setItem("pikpakUser",JSON.stringify(l.data)),u.value=l.data}).catch(l=>{console.log(l)})},_=f(),L=()=>{g.get("https://api-drive.mypikpak.com/drive/v1/about").then(l=>{_.value=l.data}).catch(l=>{console.log(l)})},y=f(),oe=()=>{g.get("https://api-drive.mypikpak.com/drive/v1/privilege/vip").then(l=>{var d;y.value=(d=l.data)==null?void 0:d.data})},se=(l,d)=>{console.log(d),a.push("/"+d.key)};K(()=>{D(),L(),oe()});const A=f(),E=f(!1),ae=()=>{g.post("https://api-drive.mypikpak.com/vip/v1/order/activation-code",{activation_code:A.value,data:{}}).then(l=>{window.$message.success("\u5151\u6362\u6210\u529F"),L()}).catch(l=>{console.log(l)}).finally(()=>{E.value=!1})},P=f(!1),ne=l=>{P.value=l<800,t.value||(t.value=l<800)};Ee(s,()=>{P.value&&(t.value=!0)});const ie=we(),re=()=>{ie.warning({title:"\u8B66\u544A",content:"\u786E\u5B9A\u9000\u51FA\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{g.post("https://user.mypikpak.com/v1/auth/revoke",{}).then(l=>{window.localStorage.removeItem("pikpakLogin"),window.localStorage.removeItem("pikpakLoginData"),window.$message.success("\u9000\u51FA\u6210\u529F"),a.push("/login")}).catch(l=>{console.log(l)})}})};return(l,d)=>{const ue=Y("router-view"),le=xe("resize");return v(),F(je,null,[Be(i(n(X),{"has-sider":"",onResize:ne},{default:c(()=>[i(n(De),{"content-style":{display:"flex",flexDirection:"column"},"collapse-mode":"width","collapsed-width":0,width:240,"show-trigger":"bar",collapsed:t.value,onCollapse:d[1]||(d[1]=h=>t.value=!0),onExpand:d[2]||(d[2]=h=>t.value=!1),bordered:""},{default:c(()=>{var h,$,S,O,T,R,V,j,M,z,J;return[it,i(n(Ae),{options:r.value,value:String(n(s).name),"onUpdate:value":se},null,8,["options","value"]),t.value?N("",!0):(v(),F("div",rt,[k(C(n(te)((h=_.value)==null?void 0:h.quota.usage))+" / "+C(n(te)(($=_.value)==null?void 0:$.quota.limit))+" ",1),i(n(Ne),{type:"primary",onClick:d[0]||(d[0]=xt=>E.value=!0)},{default:c(()=>[ut]),_:1}),((S=_.value)==null?void 0:S.quota)?(v(),G(n(be),{key:0,type:"line",percentage:Number((((O=_.value)==null?void 0:O.quota.usage)/((T=_.value)==null?void 0:T.quota.limit)*100).toFixed(2)),"indicator-placement":"inside",height:14,color:((R=y.value)==null?void 0:R.status)==="ok"?"#d1ae6a":void 0,processing:""},null,8,["percentage","color"])):N("",!0),m("p",lt,[i(n(q),{placement:"right"},{trigger:c(()=>[ct]),default:c(()=>[dt]),_:1})])])),t.value?N("",!0):(v(),F("div",{key:1,class:Ce(["sider-bottom",{vip:((V=y.value)==null?void 0:V.status)==="ok"}])},[m("div",pt,[((j=y.value)==null?void 0:j.status)==="ok"?(v(),F("img",mt)):(v(),F("img",gt)),m("div",_t,[k(C((M=u.value)==null?void 0:M.name)+" ",1),((z=y.value)==null?void 0:z.status)==="ok"&&((J=y.value)==null?void 0:J.expire)?(v(),F("div",ht,[i(n(Ie),{time:new Date(y.value.expire),type:"datetime"},null,8,["time"])])):N("",!0)]),m("div",ft,[i(n(q),null,{trigger:c(()=>[i(n(I),{onClick:re},{default:c(()=>[i(n(Le))]),_:1})]),default:c(()=>[vt]),_:1})])])],2))]}),_:1},8,["collapsed"]),i(n(X),null,{default:c(()=>[i(n(Pe),{style:{height:"100vh"}},{default:c(()=>[i(n($e),{style:{"max-height":"100vh"}},{default:c(()=>[i(ue)]),_:1})]),_:1})]),_:1})]),_:1},512),[[le]]),i(n(Ve),{show:E.value,"onUpdate:show":d[5]||(d[5]=h=>E.value=h)},{default:c(()=>[i(n(Se),{style:{width:"600px"},title:"\u4F1A\u5458\u7801"},{"header-extra":c(()=>[i(n(I),{onClick:d[3]||(d[3]=h=>E.value=!1)},{default:c(()=>[i(n(Oe))]),_:1})]),action:c(()=>[i(n(Te),{block:!0,type:"primary",disabled:!A.value,onClick:ae},{default:c(()=>[yt]),_:1},8,["disabled"])]),default:c(()=>[i(n(Re),{placeholder:"\u4F1A\u5458\u7801",value:A.value,"onUpdate:value":d[4]||(d[4]=h=>A.value=h)},null,8,["value"]),kt]),_:1})]),_:1},8,["show"])],64)}}}),Et=[{path:"/",name:"home",component:Ft,redirect:"/list",beforeEnter:(e,t,o)=>{const a=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");(!a||!a.access_token)&&e.name!=="setting"?o("/login"):o()},children:[{path:"list/:id?",name:"list",component:()=>p(()=>import("./list.28a71f07.js"),["assets/list.28a71f07.js","assets/list.764e0448.css","assets/vendor.64da71ad.js","assets/clipboard.a54b99ef.js"])},{path:"video",name:"video",component:()=>p(()=>import("./list.28a71f07.js"),["assets/list.28a71f07.js","assets/list.764e0448.css","assets/vendor.64da71ad.js","assets/clipboard.a54b99ef.js"])},{path:"image",name:"image",component:()=>p(()=>import("./list.28a71f07.js"),["assets/list.28a71f07.js","assets/list.764e0448.css","assets/vendor.64da71ad.js","assets/clipboard.a54b99ef.js"])},{path:"trash",name:"trash",component:()=>p(()=>import("./trash.267613a1.js"),["assets/trash.267613a1.js","assets/trash.99a3677d.css","assets/vendor.64da71ad.js"])},{path:"setting",name:"setting",component:()=>p(()=>import("./setting.72564549.js"),["assets/setting.72564549.js","assets/setting.f947579c.css","assets/vendor.64da71ad.js"])},{path:"invited",name:"invited",component:()=>p(()=>import("./invited.6b27b7b5.js"),["assets/invited.6b27b7b5.js","assets/invited.74b24e1e.css","assets/clipboard.a54b99ef.js","assets/vendor.64da71ad.js"])}]},{path:"/t/:id?",name:"test",component:()=>p(()=>import("./test.0b72ee9b.js"),["assets/test.0b72ee9b.js","assets/vendor.64da71ad.js"])},{path:"/s/:id/:password?",name:"shareInfo",component:()=>p(()=>import("./shareInfo.72d0810e.js"),["assets/shareInfo.72d0810e.js","assets/shareInfo.678356c6.css","assets/vendor.64da71ad.js"])},{path:"/login",name:"login",component:()=>p(()=>import("./login.5b94e583.js"),["assets/login.5b94e583.js","assets/login.a8b45006.css","assets/vendor.64da71ad.js","assets/phone-pc2.dbf6d71e.js"])},{path:"/sms",name:"sms",component:()=>p(()=>import("./sms.9fb45d5d.js"),["assets/sms.9fb45d5d.js","assets/sms.81a6d8ca.css","assets/phone-pc2.dbf6d71e.js","assets/vendor.64da71ad.js"])},{path:"/register",name:"register",component:()=>p(()=>import("./register.52401868.js"),["assets/register.52401868.js","assets/register.5588ce76.css","assets/vendor.64da71ad.js","assets/phone-pc2.dbf6d71e.js"])},{path:"/testtest",name:"testtest",component:()=>p(()=>import("./testtest.81c2e5f2.js"),["assets/testtest.81c2e5f2.js","assets/vendor.64da71ad.js"])}],wt=Ke({history:Ye(),routes:Et});var x=wt;const B=Ge(tt);B.directive("resize",{mounted(e,t,o){e.$$erd=Ze({strategy:"scroll"}),e.$$erd.listenTo({},e,a=>{let s=a.offsetWidth,r=a.offsetHeight;e.$$time&&clearTimeout(e.$$time),e.$$time=setTimeout(()=>{var u;(u=o.props)==null||u.onResize(s,r)},300)})},unmounted(e){e.$$erd&&e.$$erd.uninstall(e),e.$$time&&clearTimeout(e.$$time)}});B.config.globalProperties.$http=g;B.use(x);B.use(qe,{router:x,siteIdList:[1280680983]});B.mount("#app");export{te as b,g as i,et as p}; diff --git a/assets/index.e931b941.js b/assets/index.e931b941.js new file mode 100644 index 000000000..0ffdc2ad6 --- /dev/null +++ b/assets/index.e931b941.js @@ -0,0 +1 @@ +var ce=Object.defineProperty;var U=Object.getOwnPropertySymbols;var pe=Object.prototype.hasOwnProperty,de=Object.prototype.propertyIsEnumerable;var H=(e,t,o)=>t in e?ce(e,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):e[t]=o,W=(e,t)=>{for(var o in t||(t={}))pe.call(t,o)&&H(e,o,t[o]);if(U)for(var o of U(t))de.call(t,o)&&H(e,o,t[o]);return e};import{d as C,u as me,r as v,o as K,a as Y,b as f,c as G,w as c,e as i,f as n,N as ge,g as _e,h as he,z as ve,i as fe,j as ke,k as Z,l as ye,m as Fe,n as Ee,p as we,q as xe,s as F,t as Be,v as De,x as Ae,y as k,A as I,B as Ne,C as Ce,D as N,E as m,F as q,G as Ie,H as be,I as b,L as Le,J as X,K as Pe,M as $e,O as Se,P as Oe,Q as Te,R as Re,S as je,T as Ve,U as Q,V as Me,W as ze,X as Je,Y as Ue,Z as He,_ as We,$ as Ke,a0 as Ye,a1 as Ge,a2 as Ze,a3 as qe}from"./vendor.64da71ad.js";const Xe=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))a(s);new MutationObserver(s=>{for(const r of s)if(r.type==="childList")for(const u of r.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&a(u)}).observe(document,{childList:!0,subtree:!0});function o(s){const r={};return s.integrity&&(r.integrity=s.integrity),s.referrerpolicy&&(r.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?r.credentials="include":s.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function a(s){if(s.ep)return;s.ep=!0;const r=o(s);fetch(s.href,r)}};Xe();const Qe=C({setup(e){return window.$message=me(),(t,o)=>null}}),et=["https://pikpak.995579.xyz","https://pikpak.tjsky.top"],tt=C({setup(e){const t=v({common:{primaryColor:"#306eff",hoverColor:"#306eff",primaryColorHover:"#306eff",heightMedium:"42px"},Layout:{siderColor:"#f5f5f6"},Breadcrumb:{fontSize:"16px"},Dropdown:{optionTextColorHover:"#fff"},InternalSelectMenu:{optionTextColorActive:"#fff"},Upload:{itemColorHover:"#F3F3F5FF",itemTextColorSuccess:"#18A058FF"}});return K(()=>{localStorage.getItem("isSettingProxy")||localStorage.setItem("proxy",JSON.stringify(et))}),(o,a)=>{const s=Y("router-view");return f(),G(n(ke),{locale:n(ve),"date-locale":n(fe),"theme-overrides":t.value},{default:c(()=>[i(n(he),null,{default:c(()=>[i(n(ge),null,{default:c(()=>[i(n(_e),null,{default:c(()=>[i(Qe),i(s)]),_:1})]),_:1})]),_:1})]),_:1},8,["locale","date-locale","theme-overrides"])}}}),ot="modulepreload",ee={},st="/pikpak/",d=function(t,o){return!o||o.length===0?t():Promise.all(o.map(a=>{if(a=`${st}${a}`,a in ee)return;ee[a]=!0;const s=a.endsWith(".css"),r=s?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${a}"]${r}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":ot,s||(u.as="script",u.crossOrigin=""),u.href=a,document.head.appendChild(u),s)return new Promise((D,_)=>{u.addEventListener("load",D),u.addEventListener("error",_)})})).then(()=>t())};var at="/pikpak/assets/logo1.08eb9157.png";const g=Z.create({});g.interceptors.request.use(e=>{var o;const t=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");if(e.headers=e.headers||{},t.access_token&&(e.headers.Authorization=`${t.token_type||"Bearer"} ${t.access_token}`),((o=e.url)==null?void 0:o.indexOf("https://",4))===-1){const a=JSON.parse(window.localStorage.getItem("proxy")||"[]");if(a.length>0){const s=Math.floor(Math.random()*a.length);e.url=a[s]+"/"+e.url}}return e});let w=!1;g.interceptors.response.use(e=>e,e=>{var a;const{response:t,config:o}=e;if(t.status)switch(t.status){case 401:console.log(1);const s=window.localStorage.getItem("pikpakLoginData"),r=s?JSON.parse(s):{};return r.username&&r.password&&!w?(console.log("wait",o.url),w=!0,g.post("https://user.mypikpak.com/v1/auth/signin",W({captcha_token:"",client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg"},r)).then(u=>(u.data&&u.data.access_token&&window.localStorage.setItem("pikpakLogin",JSON.stringify(u.data)),w=!1,g(o))).catch(()=>(x.push("/login"),!1))):r.username&&r.password&&w?new Promise((u,D)=>{const _=setInterval(()=>{w||(clearInterval(_),u(g(o)))},100)}):(x.push("/login?redirect="+x.currentRoute.value.fullPath),Promise.reject(e));default:window.$message.error(((a=t==null?void 0:t.data)==null?void 0:a.error_description)||"\u51FA\u9519\u4E86");break}return console.log(o.url,111),Promise.reject(e)});const nt=Z.create({});nt.interceptors.request.use(e=>{e.headers={Authorization:"Bearer secret_FErDcv3kgsFNLiWUDOWYdJhNqOIKj55eteBg3vIoiLt","Notion-Version":"2021-08-16","Content-Type":"application/json"};const t=JSON.parse(window.localStorage.getItem("proxy")||"[]");if(t.length>0){const o=Math.floor(Math.random()*t.length);e.url=t[o]+"/"+e.url}return e});const te=function(e){if(isNaN(e))return"";let t=["bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],o=Math.floor(Math.log(e)/Math.log(2));o<1&&(o=0);let a=Math.floor(o/10);return e=e/Math.pow(2,10*a),e.toString().length>e.toFixed(2).toString().length&&(e=parseFloat(e.toFixed(2))),e+" "+t[a]};const it=m("a",{href:"https://mypikpak.com/",target:"_blank",class:"logo-box"},[m("img",{src:"https://mypikpak.com/apple-touch-icon.png",class:"logo-box__icon",alt:""}),m("div",{class:"logo-box__text"},"PikPak")],-1),rt={key:0,class:"content-bottom"},ut=k("\u4F1A\u5458\u7801"),lt={style:{"margin-bottom":"0"}},ct=m("a",{style:{color:"#306eff"},target:"_blank",href:"https://www.tjsky.net/?p=220#i-21"},"\u6587\u4EF6\u5217\u8868\u5237\u4E0D\u51FA\u6765\uFF1F",-1),pt=k(" \u3010\u8BF7\u4F9D\u6B21\u70B9\u9009\uFF1A\u8BBE\u7F6E-\u4EE3\u7406\u8BBE\u7F6E-\u6062\u590D\u9ED8\u8BA4-\u4FDD\u5B58\u8BBE\u7F6E \u540E\u518D\u5237\u65B0\u8BD5\u8BD5\u3011 "),dt={class:"bottom-user-info"},mt={key:0,src:at,class:"user-info-avatar"},gt={key:1,src:"https://www.mypikpak.com/logo.png",class:"user-info-avatar"},_t={class:"user-info-name"},ht={key:0},vt={class:"action"},ft=k(" \u9000\u51FA\u767B\u5F55 "),kt=m("p",null,[m("a",null,[k("\u76EE\u524D\u4EF7\u683C\uFF1APikPak\u4F53\u9A8C\u4F1A\u5458\u5E74\u5361 188 \u5143\uFF0C\u6B63\u5F0F\u6708\u5361 32 \u5143\uFF0C\u6B63\u5F0F\u5E74\u5361 320 \u5143\uFF0C\u6B63\u5F0F\u4E09\u5E74\u5361 699 \u5143"),m("br"),k(" \u63D0\u9192\uFF1A\u4F53\u9A8C\u5361\u6BCF\u8D26\u53F7\u53EA\u80FD\u8D2D\u4E70\u4F7F\u7528\u4E00\u6B21,\u6B63\u5F0F\u5361\u53EF\u65E0\u9650\u53E0\u52A0\u3002")])],-1),yt=k("\u6DFB\u52A0"),Ft=C({setup(e){const t=v(!1),o=l=>()=>Q(b,null,{default:()=>Q(l)}),a=ye(),s=Fe(),r=v([{label:"\u6587\u4EF6",key:"list",icon:o(We)},{label:"\u89C6\u9891",key:"video",icon:o(Me)},{label:"\u56FE\u7247",key:"image",icon:o(ze)},{label:"\u56DE\u6536\u7AD9",key:"trash",icon:o(Je)},{label:"\u9080\u8BF7",key:"invited",icon:o(Ue)},{label:"\u8BBE\u7F6E",key:"setting",icon:o(He)}]),u=v(),D=()=>{g.get("https://user.mypikpak.com/v1/user/me").then(l=>{window.localStorage.setItem("pikpakUser",JSON.stringify(l.data)),u.value=l.data}).catch(l=>{console.log(l)})},_=v(),L=()=>{g.get("https://api-drive.mypikpak.com/drive/v1/about").then(l=>{_.value=l.data}).catch(l=>{console.log(l)})},y=v(),oe=()=>{g.get("https://api-drive.mypikpak.com/drive/v1/privilege/vip").then(l=>{var p;y.value=(p=l.data)==null?void 0:p.data})},se=(l,p)=>{console.log(p),a.push("/"+p.key)};K(()=>{D(),L(),oe()});const A=v(),E=v(!1),ae=()=>{g.post("https://api-drive.mypikpak.com/vip/v1/order/activation-code",{activation_code:A.value,data:{}}).then(l=>{window.$message.success("\u5151\u6362\u6210\u529F"),L()}).catch(l=>{console.log(l)}).finally(()=>{E.value=!1})},P=v(!1),ne=l=>{P.value=l<800,t.value||(t.value=l<800)};Ee(s,()=>{P.value&&(t.value=!0)});const ie=we(),re=()=>{ie.warning({title:"\u8B66\u544A",content:"\u786E\u5B9A\u9000\u51FA\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{g.post("https://user.mypikpak.com/v1/auth/revoke",{}).then(l=>{window.localStorage.removeItem("pikpakLogin"),window.localStorage.removeItem("pikpakLoginData"),window.$message.success("\u9000\u51FA\u6210\u529F"),a.push("/login")}).catch(l=>{console.log(l)})}})};return(l,p)=>{const ue=Y("router-view"),le=xe("resize");return f(),F(Ve,null,[Be(i(n(X),{"has-sider":"",onResize:ne},{default:c(()=>[i(n(De),{"content-style":{display:"flex",flexDirection:"column"},"collapse-mode":"width","collapsed-width":0,width:240,"show-trigger":"bar",collapsed:t.value,onCollapse:p[1]||(p[1]=h=>t.value=!0),onExpand:p[2]||(p[2]=h=>t.value=!1),bordered:""},{default:c(()=>{var h,$,S,O,T,R,j,V,M,z,J;return[it,i(n(Ae),{options:r.value,value:String(n(s).name),"onUpdate:value":se},null,8,["options","value"]),t.value?N("",!0):(f(),F("div",rt,[k(I(n(te)((h=_.value)==null?void 0:h.quota.usage))+" / "+I(n(te)(($=_.value)==null?void 0:$.quota.limit))+" ",1),i(n(Ne),{type:"primary",onClick:p[0]||(p[0]=xt=>E.value=!0)},{default:c(()=>[ut]),_:1}),((S=_.value)==null?void 0:S.quota)?(f(),G(n(Ce),{key:0,type:"line",percentage:Number((((O=_.value)==null?void 0:O.quota.usage)/((T=_.value)==null?void 0:T.quota.limit)*100).toFixed(2)),"indicator-placement":"inside",height:14,color:((R=y.value)==null?void 0:R.status)==="ok"?"#d1ae6a":void 0,processing:""},null,8,["percentage","color"])):N("",!0),m("p",lt,[i(n(q),{placement:"right"},{trigger:c(()=>[ct]),default:c(()=>[pt]),_:1})])])),t.value?N("",!0):(f(),F("div",{key:1,class:Ie(["sider-bottom",{vip:((j=y.value)==null?void 0:j.status)==="ok"}])},[m("div",dt,[((V=y.value)==null?void 0:V.status)==="ok"?(f(),F("img",mt)):(f(),F("img",gt)),m("div",_t,[k(I((M=u.value)==null?void 0:M.name)+" ",1),((z=y.value)==null?void 0:z.status)==="ok"&&((J=y.value)==null?void 0:J.expire)?(f(),F("div",ht,[i(n(be),{time:new Date(y.value.expire),type:"datetime"},null,8,["time"])])):N("",!0)]),m("div",vt,[i(n(q),null,{trigger:c(()=>[i(n(b),{onClick:re},{default:c(()=>[i(n(Le))]),_:1})]),default:c(()=>[ft]),_:1})])])],2))]}),_:1},8,["collapsed"]),i(n(X),null,{default:c(()=>[i(n(Pe),{style:{height:"100vh"}},{default:c(()=>[i(n($e),{style:{"max-height":"100vh"}},{default:c(()=>[i(ue)]),_:1})]),_:1})]),_:1})]),_:1},512),[[le]]),i(n(je),{show:E.value,"onUpdate:show":p[5]||(p[5]=h=>E.value=h)},{default:c(()=>[i(n(Se),{style:{width:"600px"},title:"\u4F1A\u5458\u7801"},{"header-extra":c(()=>[i(n(b),{onClick:p[3]||(p[3]=h=>E.value=!1)},{default:c(()=>[i(n(Oe))]),_:1})]),action:c(()=>[i(n(Te),{block:!0,type:"primary",disabled:!A.value,onClick:ae},{default:c(()=>[yt]),_:1},8,["disabled"])]),default:c(()=>[i(n(Re),{placeholder:"\u4F1A\u5458\u7801",value:A.value,"onUpdate:value":p[4]||(p[4]=h=>A.value=h)},null,8,["value"]),kt]),_:1})]),_:1},8,["show"])],64)}}}),Et=[{path:"/",name:"home",component:Ft,redirect:"/list",beforeEnter:(e,t,o)=>{const a=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");(!a||!a.access_token)&&e.name!=="setting"?o("/login"):o()},children:[{path:"list/:id?",name:"list",component:()=>d(()=>import("./list.d9e6c736.js"),["assets/list.d9e6c736.js","assets/list.764e0448.css","assets/vendor.64da71ad.js","assets/clipboard.a54b99ef.js"])},{path:"video",name:"video",component:()=>d(()=>import("./list.d9e6c736.js"),["assets/list.d9e6c736.js","assets/list.764e0448.css","assets/vendor.64da71ad.js","assets/clipboard.a54b99ef.js"])},{path:"image",name:"image",component:()=>d(()=>import("./list.d9e6c736.js"),["assets/list.d9e6c736.js","assets/list.764e0448.css","assets/vendor.64da71ad.js","assets/clipboard.a54b99ef.js"])},{path:"trash",name:"trash",component:()=>d(()=>import("./trash.8bbf99ac.js"),["assets/trash.8bbf99ac.js","assets/trash.99a3677d.css","assets/vendor.64da71ad.js"])},{path:"setting",name:"setting",component:()=>d(()=>import("./setting.73c704e7.js"),["assets/setting.73c704e7.js","assets/setting.f947579c.css","assets/vendor.64da71ad.js"])},{path:"invited",name:"invited",component:()=>d(()=>import("./invited.d52e964b.js"),["assets/invited.d52e964b.js","assets/invited.74b24e1e.css","assets/clipboard.a54b99ef.js","assets/vendor.64da71ad.js"])}]},{path:"/t/:id?",name:"test",component:()=>d(()=>import("./test.59236008.js"),["assets/test.59236008.js","assets/vendor.64da71ad.js"])},{path:"/s/:id/:password?",name:"shareInfo",component:()=>d(()=>import("./shareInfo.6dfa34fc.js"),["assets/shareInfo.6dfa34fc.js","assets/shareInfo.678356c6.css","assets/vendor.64da71ad.js"])},{path:"/login",name:"login",component:()=>d(()=>import("./login.046ee112.js"),["assets/login.046ee112.js","assets/login.a8b45006.css","assets/vendor.64da71ad.js","assets/phone-pc2.dbf6d71e.js"])},{path:"/sms",name:"sms",component:()=>d(()=>import("./sms.e4c60e2e.js"),["assets/sms.e4c60e2e.js","assets/sms.81a6d8ca.css","assets/phone-pc2.dbf6d71e.js","assets/vendor.64da71ad.js"])},{path:"/register",name:"register",component:()=>d(()=>import("./register.eb007e2e.js"),["assets/register.eb007e2e.js","assets/register.5588ce76.css","assets/vendor.64da71ad.js","assets/phone-pc2.dbf6d71e.js"])},{path:"/testtest",name:"testtest",component:()=>d(()=>import("./testtest.7142454c.js"),["assets/testtest.7142454c.js","assets/vendor.64da71ad.js"])}],wt=Ke({history:Ye(),routes:Et});var x=wt;const B=Ge(tt);B.directive("resize",{mounted(e,t,o){e.$$erd=Ze({strategy:"scroll"}),e.$$erd.listenTo({},e,a=>{let s=a.offsetWidth,r=a.offsetHeight;e.$$time&&clearTimeout(e.$$time),e.$$time=setTimeout(()=>{var u;(u=o.props)==null||u.onResize(s,r)},300)})},unmounted(e){e.$$erd&&e.$$erd.uninstall(e),e.$$time&&clearTimeout(e.$$time)}});B.config.globalProperties.$http=g;B.use(x);B.use(qe,{router:x,siteIdList:[1280680983]});B.mount("#app");export{te as b,g as i,et as p}; diff --git a/assets/invited.6b27b7b5.js b/assets/invited.d52e964b.js similarity index 98% rename from assets/invited.6b27b7b5.js rename to assets/invited.d52e964b.js index 242043388..85f9dffed 100644 --- a/assets/invited.6b27b7b5.js +++ b/assets/invited.d52e964b.js @@ -1 +1 @@ -import{C as I}from"./clipboard.a54b99ef.js";import{i as v}from"./index.50387d2f.js";import{d as S,r,a4 as H,o as M,b as g,s as h,e,f as a,aC as T,w as u,M as $,aD as _,I as m,aE as j,y as d,A as F,aF as f,aG as L,aH as z,ad as G,R as V,Q as B,ap as J,aI as R,ag as U,a7 as q,D as Q,as as K,U as C,aJ as O,H as P}from"./vendor.64da71ad.js";const W={class:"list-page"},X=d("\u590D\u5236"),Y=d("\u7ACB\u5373\u4E0B\u8F7D"),Z={key:0,class:"loading"},ee=d("\u52A0\u8F7D\u4E2D "),se=S({setup(ae){const w=t=>{K(()=>{const s=document.createElement("button"),i=new I(s,{text:()=>t,action:()=>"copy"});i.on("success",l=>{window.$message.success("\u590D\u5236\u6210\u529F"),i.destroy()}),i.on("error",l=>{window.$message.error("\u590D\u5236\u5931\u8D25\uFF0C\u60A8\u53EF\u4EE5F12\u6253\u5F00\u63A7\u5236\u53F0\u624B\u52A8\u590D\u5236\uFF0C\u6216\u624B\u52A8\u590D\u5236\u5F39\u7A97\u8F93\u5165\u6846")}),s.click()})},c=r(),x=async()=>{v.get("https://api-drive.mypikpak.com/vip/v1/activity/inviteCode").then(t=>{var s;c.value=(s=t.data)==null?void 0:s.code})},n=r();H(()=>n.value.invited_nums<=0);const D=r({vip_rebate:"\u4F1A\u5458\u5206\u6210",invite_reward:"\u9080\u8BF7\u5956\u52B1",relation:"\u9080\u8BF7\u5173\u7CFB"}),A=async()=>{v.get("https://api-drive.mypikpak.com/vip/v1/activity/inviteInfo").then(t=>{n.value=t.data}).catch(()=>{n.value={}})},N=r([{title:"\u9080\u8BF7\u7528\u6237",key:"invited_user"},{title:"\u5956\u52B1\u7C7B\u578B",key:"reward_source",render:t=>C(O,{type:t.reward_source=="vip_rebate"?"info":"success"},{default:()=>D.value[t.reward_source]})},{title:"\u5929\u6570",key:"reward_days"},{title:"\u65F6\u95F4",key:"time",align:"right",render:t=>C(P,{time:new Date(String(t.time)||""),format:"yyyy-MM-dd HH:MM:ss"})}]),o=r([]),p=r(!1),y=async(t,s=30)=>{let i="https://api-drive.mypikpak.com/vip/v1/activity/inviteList";t&&(i+=`?begin=${t}&limit=${s}`),p.value=!0,v.get(i).then(l=>{var k;t||(o.value=[]),o.value=o.value.concat(((k=l.data)==null?void 0:k.data)||[])}).finally(()=>{p.value=!1})},b=()=>{v.get(`https://api-drive.mypikpak.com/package/v1/apk/url/${c.value}`).then(t=>{window.open(t.data.apk_url)})},E=t=>{t.target.offsetHeight+t.target.scrollTop>=t.target.scrollHeight-30&&o.value.length{x(),A(),y()}),(t,s)=>(g(),h("div",W,[e(a(T),null,{default:u(()=>[e(a(_),{span:12},{default:u(()=>{var i;return[e(a(f),{label:"\u4F1A\u5458\u5206\u6210(\u5929/\u6B21)",value:(i=n.value)==null?void 0:i.invited_join_days},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(j))]),_:1})]),suffix:u(()=>{var l;return[d("/ "+F((l=n.value)==null?void 0:l.join_vip_nums),1)]}),_:1},8,["value"])]}),_:1}),e(a(_),{span:12},{default:u(()=>{var i;return[e(a(f),{label:"\u9080\u8BF7\u5956\u52B1(\u5929/\u4EBA)",value:(i=n.value)==null?void 0:i.add_days},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(L))]),_:1})]),suffix:u(()=>{var l;return[d("/ "+F((l=n.value)==null?void 0:l.invited_nums),1)]}),_:1},8,["value"])]}),_:1}),e(a(_),{span:12},{default:u(()=>[e(a(f),{label:"\u9080\u8BF7\u94FE\u63A5"},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(z))]),_:1})]),default:u(()=>[e(a(G),{inline:""},{default:u(()=>[e(a(V),{type:"text",size:"small",value:"https://toapp.mypikpak.com/activity/invited?code="+c.value},null,8,["value"]),e(a(B),{size:"small",type:"primary",onClick:s[0]||(s[0]=i=>w("https://toapp.mypikpak.com/activity/invited?code="+c.value))},{default:u(()=>[X]),_:1})]),_:1}),e(a(J))]),_:1})]),_:1}),e(a(_),{span:12},{default:u(()=>[e(a(f),{label:"\u4E0B\u8F7D\u63A8\u5E7F"},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(R))]),_:1})]),default:u(()=>[e(a(B),{size:"small",type:"primary",onClick:b},{default:u(()=>[Y]),_:1})]),_:1})]),_:1})]),_:1}),e(a($),{style:{"max-height":"calc(100vh - 250px)"},onScroll:E},{default:u(()=>[e(a(U),{data:o.value,columns:N.value},null,8,["data","columns"]),p.value?(g(),h("div",Z,[e(a(q),{size:"small"}),ee])):Q("",!0)]),_:1})]))}});export{se as default}; +import{C as I}from"./clipboard.a54b99ef.js";import{i as v}from"./index.e931b941.js";import{d as S,r,a4 as H,o as M,b as g,s as h,e,f as a,aC as T,w as u,M as $,aD as _,I as m,aE as j,y as d,A as F,aF as f,aG as L,aH as z,ad as G,R as V,Q as B,ap as J,aI as R,ag as U,a7 as q,D as Q,as as K,U as C,aJ as O,H as P}from"./vendor.64da71ad.js";const W={class:"list-page"},X=d("\u590D\u5236"),Y=d("\u7ACB\u5373\u4E0B\u8F7D"),Z={key:0,class:"loading"},ee=d("\u52A0\u8F7D\u4E2D "),se=S({setup(ae){const w=t=>{K(()=>{const s=document.createElement("button"),i=new I(s,{text:()=>t,action:()=>"copy"});i.on("success",l=>{window.$message.success("\u590D\u5236\u6210\u529F"),i.destroy()}),i.on("error",l=>{window.$message.error("\u590D\u5236\u5931\u8D25\uFF0C\u60A8\u53EF\u4EE5F12\u6253\u5F00\u63A7\u5236\u53F0\u624B\u52A8\u590D\u5236\uFF0C\u6216\u624B\u52A8\u590D\u5236\u5F39\u7A97\u8F93\u5165\u6846")}),s.click()})},c=r(),x=async()=>{v.get("https://api-drive.mypikpak.com/vip/v1/activity/inviteCode").then(t=>{var s;c.value=(s=t.data)==null?void 0:s.code})},n=r();H(()=>n.value.invited_nums<=0);const D=r({vip_rebate:"\u4F1A\u5458\u5206\u6210",invite_reward:"\u9080\u8BF7\u5956\u52B1",relation:"\u9080\u8BF7\u5173\u7CFB"}),A=async()=>{v.get("https://api-drive.mypikpak.com/vip/v1/activity/inviteInfo").then(t=>{n.value=t.data}).catch(()=>{n.value={}})},N=r([{title:"\u9080\u8BF7\u7528\u6237",key:"invited_user"},{title:"\u5956\u52B1\u7C7B\u578B",key:"reward_source",render:t=>C(O,{type:t.reward_source=="vip_rebate"?"info":"success"},{default:()=>D.value[t.reward_source]})},{title:"\u5929\u6570",key:"reward_days"},{title:"\u65F6\u95F4",key:"time",align:"right",render:t=>C(P,{time:new Date(String(t.time)||""),format:"yyyy-MM-dd HH:MM:ss"})}]),o=r([]),p=r(!1),y=async(t,s=30)=>{let i="https://api-drive.mypikpak.com/vip/v1/activity/inviteList";t&&(i+=`?begin=${t}&limit=${s}`),p.value=!0,v.get(i).then(l=>{var k;t||(o.value=[]),o.value=o.value.concat(((k=l.data)==null?void 0:k.data)||[])}).finally(()=>{p.value=!1})},b=()=>{v.get(`https://api-drive.mypikpak.com/package/v1/apk/url/${c.value}`).then(t=>{window.open(t.data.apk_url)})},E=t=>{t.target.offsetHeight+t.target.scrollTop>=t.target.scrollHeight-30&&o.value.length{x(),A(),y()}),(t,s)=>(g(),h("div",W,[e(a(T),null,{default:u(()=>[e(a(_),{span:12},{default:u(()=>{var i;return[e(a(f),{label:"\u4F1A\u5458\u5206\u6210(\u5929/\u6B21)",value:(i=n.value)==null?void 0:i.invited_join_days},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(j))]),_:1})]),suffix:u(()=>{var l;return[d("/ "+F((l=n.value)==null?void 0:l.join_vip_nums),1)]}),_:1},8,["value"])]}),_:1}),e(a(_),{span:12},{default:u(()=>{var i;return[e(a(f),{label:"\u9080\u8BF7\u5956\u52B1(\u5929/\u4EBA)",value:(i=n.value)==null?void 0:i.add_days},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(L))]),_:1})]),suffix:u(()=>{var l;return[d("/ "+F((l=n.value)==null?void 0:l.invited_nums),1)]}),_:1},8,["value"])]}),_:1}),e(a(_),{span:12},{default:u(()=>[e(a(f),{label:"\u9080\u8BF7\u94FE\u63A5"},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(z))]),_:1})]),default:u(()=>[e(a(G),{inline:""},{default:u(()=>[e(a(V),{type:"text",size:"small",value:"https://toapp.mypikpak.com/activity/invited?code="+c.value},null,8,["value"]),e(a(B),{size:"small",type:"primary",onClick:s[0]||(s[0]=i=>w("https://toapp.mypikpak.com/activity/invited?code="+c.value))},{default:u(()=>[X]),_:1})]),_:1}),e(a(J))]),_:1})]),_:1}),e(a(_),{span:12},{default:u(()=>[e(a(f),{label:"\u4E0B\u8F7D\u63A8\u5E7F"},{prefix:u(()=>[e(a(m),null,{default:u(()=>[e(a(R))]),_:1})]),default:u(()=>[e(a(B),{size:"small",type:"primary",onClick:b},{default:u(()=>[Y]),_:1})]),_:1})]),_:1})]),_:1}),e(a($),{style:{"max-height":"calc(100vh - 250px)"},onScroll:E},{default:u(()=>[e(a(U),{data:o.value,columns:N.value},null,8,["data","columns"]),p.value?(g(),h("div",Z,[e(a(q),{size:"small"}),ee])):Q("",!0)]),_:1})]))}});export{se as default}; diff --git a/assets/list.28a71f07.js b/assets/list.d9e6c736.js similarity index 99% rename from assets/list.28a71f07.js rename to assets/list.d9e6c736.js index 60eafb037..2d6531bd7 100644 --- a/assets/list.28a71f07.js +++ b/assets/list.d9e6c736.js @@ -1,4 +1,4 @@ -var ts=Object.defineProperty,is=Object.defineProperties;var ss=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var qt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable;var zt=(e,i,t)=>i in e?ts(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Se=(e,i)=>{for(var t in i||(i={}))qt.call(i,t)&&zt(e,t,i[t]);if(it)for(var t of it(i))Vt.call(i,t)&&zt(e,t,i[t]);return e},st=(e,i)=>is(e,ss(i));var Wt=(e,i)=>{var t={};for(var s in e)qt.call(e,s)&&i.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&it)for(var s of it(e))i.indexOf(s)<0&&Vt.call(e,s)&&(t[s]=e[s]);return t};import{d as bt,a4 as Kt,r as D,o as vt,f as m,b as U,s as ee,T as Ue,a5 as qe,E as I,D as pe,n as Yt,a6 as ns,y as q,A as ge,c as Ce,a7 as Jt,e as p,w as y,M as Gt,G as as,a8 as Qt,C as ls,a9 as os,I as Q,P as fe,m as rs,l as us,aa as cs,p as ds,ab as hs,a as ms,ac as ps,ad as nt,F as Ve,S as Pe,ae as Xt,Q as ye,af as gs,ag as fs,Y as ys,ah as bs,ai as vs,aj as ws,O as Fe,ak as ks,R as xe,al as Ts,am as be,an as Cs,ao as wt,ap as Zt,U as te,H as Es,B as ze,aq as As,ar as _s,as as Ss,at as Ps}from"./vendor.64da71ad.js";import{i as re,b as ei}from"./index.50387d2f.js";import{C as Fs}from"./clipboard.a54b99ef.js";function w(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function xs(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function ti(e,i){for(var t=0;ti){var t=Hs(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var qs=function(){function e(i,t){xs(this,e),X.element(i)?this.element=i:X.string(i)&&(this.element=document.querySelector(i)),X.element(this.element)&&X.empty(this.element.rangeTouch)&&(this.config=si({},ni,{},t),this.init())}return Ns(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(a){t.element[s](a,function(n){return t.set(n)},!1)})}},{key:"get",value:function(i){if(!e.enabled||!X.event(i))return null;var t,s=i.target,a=i.changedTouches[0],n=parseFloat(s.getAttribute("min"))||0,o=parseFloat(s.getAttribute("max"))||100,r=parseFloat(s.getAttribute("step"))||1,h=s.getBoundingClientRect(),d=100/h.width*(this.config.thumbWidth/2)/100;return 0>(t=100/h.width*(a.clientX-h.left))?t=0:100t?t-=(100-2*t)*d:50e!=null?e.constructor:null,ve=(e,i)=>Boolean(e&&i&&e instanceof i),Tt=e=>e==null,ci=e=>Ie(e)===Object,Vs=e=>Ie(e)===Number&&!Number.isNaN(e),at=e=>Ie(e)===String,zs=e=>Ie(e)===Boolean,di=e=>Ie(e)===Function,hi=e=>Array.isArray(e),Ws=e=>ve(e,WeakMap),mi=e=>ve(e,NodeList),Ks=e=>Ie(e)===Text,Ys=e=>ve(e,Event),Js=e=>ve(e,KeyboardEvent),Gs=e=>ve(e,window.TextTrackCue)||ve(e,window.VTTCue),Qs=e=>ve(e,TextTrack)||!Tt(e)&&at(e.kind),Xs=e=>ve(e,Promise)&&di(e.then),Zs=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",pi=e=>Tt(e)||(at(e)||hi(e)||mi(e))&&!e.length||ci(e)&&!Object.keys(e).length,en=e=>{if(ve(e,window.URL))return!0;if(!at(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!pi(new URL(i).hostname)}catch{return!1}};var l={nullOrUndefined:Tt,object:ci,number:Vs,string:at,boolean:zs,function:di,array:hi,weakMap:Ws,nodeList:mi,element:Zs,textNode:Ks,event:Ys,keyboardEvent:Js,cue:Gs,track:Qs,promise:Xs,url:en,empty:pi};const Ct=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return!!l.string(t)&&i[t]})();function gi(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}const G={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function tn(e){return JSON.parse(JSON.stringify(e))}function fi(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function K(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),K(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),K(e,...i)):e}function yi(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,a)=>{const n=a>0?i.cloneNode(!0):i,o=s.parentNode,r=s.nextSibling;n.appendChild(s),r?o.insertBefore(n,r):o.appendChild(n)})}function Et(e,i){l.element(e)&&!l.empty(i)&&Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function M(e,i,t){const s=document.createElement(e);return l.object(i)&&Et(s,i),l.string(t)&&(s.innerText=t),s}function sn(e,i){l.element(e)&&l.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)}function bi(e,i,t,s){l.element(i)&&i.appendChild(M(e,t,s))}function we(e){l.nodeList(e)||l.array(e)?Array.from(e).forEach(we):l.element(e)&&l.element(e.parentNode)&&e.parentNode.removeChild(e)}function lt(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ot(e,i){return l.element(i)&&l.element(i.parentNode)&&l.element(e)?(i.parentNode.replaceChild(e,i),e):null}function ue(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=K({},i);return e.split(",").forEach(a=>{const n=a.trim(),o=n.replace(".",""),r=n.replace(/[[\]]/g,"").split("="),[h]=r,d=r.length>1?r[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${o}`:t.class=o;break;case"#":t.id=n.replace("#","");break;case"[":t[h]=d}}),K(s,t)}function Ne(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function L(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>L(s,i,t));if(l.element(e)){let s="toggle";return t!==void 0&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function rt(e,i){return l.element(e)&&e.classList.contains(i)}function Me(e,i){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function nn(e,i){const{prototype:t}=Element;return(t.closest||function(){let s=this;do{if(Me.matches(s,i))return s;s=s.parentElement||s.parentNode}while(s!==null&&s.nodeType===1);return null}).call(e,i)}function Le(e){return this.elements.container.querySelectorAll(e)}function Y(e){return this.elements.container.querySelector(e)}function At(e=null,i=!1){l.element(e)&&(e.focus({preventScroll:!0}),i&&L(e,this.config.classNames.tabFocus))}const vi={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},V={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i,t){const s=G.isIPhone&&t&&V.playsinline,a=V[e]||i!=="html5";return{api:a,ui:a&&V.rangeInput&&(e!=="video"||!G.isIPhone||s)}},pip:!(G.isIPhone||!l.function(M("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||M("video").disablePictureInPicture)),airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(vi).includes(t)&&(t+=`; codecs="${vi[e]}"`);try{return Boolean(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:Ct!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},an=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Oe(e,i,t,s=!1,a=!0,n=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const o=i.split(" ");let r=n;an&&(r={passive:a,capture:n}),o.forEach(h=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:h,callback:t,options:r}),e[s?"addEventListener":"removeEventListener"](h,t,r)})}function O(e,i="",t,s=!0,a=!1){Oe.call(this,e,i,t,!0,s,a)}function ut(e,i="",t,s=!0,a=!1){Oe.call(this,e,i,t,!1,s,a)}function _t(e,i="",t,s=!0,a=!1){const n=(...o)=>{ut(e,i,n,s,a),t.apply(this,o)};Oe.call(this,e,i,n,!0,s,a)}function x(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const a=new CustomEvent(i,{bubbles:t,detail:st(Se({},s),{plyr:this})});e.dispatchEvent(a)}function ln(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:a}=e;i.removeEventListener(t,s,a)}),this.eventListeners=[])}function on(){return new Promise(e=>this.ready?setTimeout(e,0):O.call(this,this.elements.container,"ready",e)).then(()=>{})}function ce(e){l.promise(e)&&e.then(null,()=>{})}function St(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function wi(e,i){return l.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)st(Se({},e),{[i/t]:[i,t]}),{});function Ci(e){return l.array(e)||l.string(e)&&e.includes(":")?(l.array(e)?e:e.split(":")).map(Number).every(l.number):!1}function ct(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(n,o)=>o===0?n:s(o,n%o),a=s(i,t);return[i/a,t/a]}function Pt(e){const i=s=>Ci(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:a}=this.media;t=[s,a]}return ct(t)}function Be(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Pt.call(this,e);if(!l.array(t))return{};const[s,a]=ct(t),n=100/s*a;if(ki(`aspect-ratio: ${s}/${a}`)?i.style.aspectRatio=`${s}/${a}`:i.style.paddingBottom=`${n}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const o=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),r=(o-n)/(o/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${r}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:n,ratio:t}}function Ei(e,i,t=.05){const s=e/i,a=wi(Object.keys(Ti),s);return Math.abs(a-s)<=t?Ti[a]:[e,i]}function rn(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const Ee={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!l.empty(i)||V.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:Ee.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||Be.call(e),Object.defineProperty(e.media,"quality",{get(){const i=Ee.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=Ee.getSources.call(e).find(h=>Number(h.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:a,preload:n,readyState:o,playbackRate:r}=e.media;e.media.src=t.getAttribute("src"),(n!=="none"||o)&&(e.once("loadedmetadata",()=>{e.speed=r,e.currentTime=s,a||ce(e.play())}),e.media.load())}x.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(we(Ee.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function un(e){return`${e}-${Math.floor(1e4*Math.random())}`}function Ft(e,...i){return l.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}function cn(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}const Ke=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),Ai=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.substr(1).toLowerCase());function dn(e=""){let i=e.toString();return i=Ke(i,"-"," "),i=Ke(i,"_"," "),i=Ai(i),Ke(i," ","")}function hn(e=""){let i=e.toString();return i=dn(i),i.charAt(0).toLowerCase()+i.slice(1)}function mn(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.innerText}function pn(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const _i={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},J={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=fi(i.i18n,e);if(l.empty(t))return Object.keys(_i).includes(e)?_i[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([a,n])=>{t=Ke(t,a,n)}),t}};class Ye{constructor(i){w(this,"get",t=>{if(!Ye.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const a=JSON.parse(s);return l.string(t)&&t.length?a[t]:a}),w(this,"set",t=>{if(!Ye.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),K(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function Je(e,i="text"){return new Promise((t,s)=>{try{const a=new XMLHttpRequest;if(!("withCredentials"in a))return;a.addEventListener("load",()=>{if(i==="text")try{t(JSON.parse(a.responseText))}catch{t(a.responseText)}else t(a.response)}),a.addEventListener("error",()=>{throw new Error(a.status)}),a.open("GET",e,!0),a.responseType=i,a.send()}catch(a){s(a)}})}function Si(e,i){if(!l.string(e))return;const t=l.string(i);let s=!1;const a=()=>document.getElementById(i)!==null,n=(o,r)=>{o.innerHTML=r,t&&a()||document.body.insertAdjacentElement("afterbegin",o)};if(!t||!a()){const o=Ye.supported,r=document.createElement("div");if(r.setAttribute("hidden",""),t&&r.setAttribute("id",i),o){const h=window.localStorage.getItem(`cache-${i}`);if(s=h!==null,s){const d=JSON.parse(h);n(r,d.content)}}Je(e).then(h=>{if(!l.empty(h)){if(o)try{window.localStorage.setItem(`cache-${i}`,JSON.stringify({content:h}))}catch{}n(r,h)}}).catch(()=>{})}}const Pi=e=>Math.trunc(e/60/60%60,10),gn=e=>Math.trunc(e%60,10);function dt(e=0,i=!1,t=!1){if(!l.number(e))return dt(void 0,i,t);const s=h=>`0${h}`.slice(-2);let a=Pi(e);const n=(o=e,Math.trunc(o/60%60,10));var o;const r=gn(e);return a=i||a>0?`${a}:`:"",`${t&&e>0?"-":""}${a}${s(n)}:${s(r)}`}const k={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||G.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=Y.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Le.call(this,this.config.selectors.buttons.play),pause:Y.call(this,this.config.selectors.buttons.pause),restart:Y.call(this,this.config.selectors.buttons.restart),rewind:Y.call(this,this.config.selectors.buttons.rewind),fastForward:Y.call(this,this.config.selectors.buttons.fastForward),mute:Y.call(this,this.config.selectors.buttons.mute),pip:Y.call(this,this.config.selectors.buttons.pip),airplay:Y.call(this,this.config.selectors.buttons.airplay),settings:Y.call(this,this.config.selectors.buttons.settings),captions:Y.call(this,this.config.selectors.buttons.captions),fullscreen:Y.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Y.call(this,this.config.selectors.progress),this.elements.inputs={seek:Y.call(this,this.config.selectors.inputs.seek),volume:Y.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Y.call(this,this.config.selectors.display.buffer),currentTime:Y.call(this,this.config.selectors.display.currentTime),duration:Y.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=k.getIconUrl.call(this),a=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(t,"svg");Et(n,K(i,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(t,"use"),r=`${a}-${e}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",r),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),n.appendChild(o),n},createLabel(e,i={}){const t=J.get(e,this.config);return M("span",st(Se({},i),{class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),t)},createBadge(e){if(l.empty(e))return null;const i=M("span",{class:this.config.classNames.menu.value});return i.appendChild(M("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=K({},i);let s=hn(e);const a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(o=>{Object.keys(t).includes(o)&&(a[o]=t[o],delete t[o])}),a.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(o=>o===this.config.classNames.control)||K(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",a.label="play",a.icon="play";break;default:l.empty(a.label)&&(a.label=s),l.empty(a.icon)&&(a.icon=e)}const n=M(a.element);return a.toggle?(n.appendChild(k.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),n.appendChild(k.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),n.appendChild(k.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),n.appendChild(k.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(n.appendChild(k.createIcon.call(this,a.icon)),n.appendChild(k.createLabel.call(this,a.label))),K(t,ue(this.config.selectors.buttons[s],t)),Et(n,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,i){const t=M("input",K(ue(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":J.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,k.updateRangeFill.call(this,t),qs.setup(t),t},createProgress(e,i){const t=M("progress",K(ue(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(M("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],a=s?J.get(s,this.config):"";t.innerText=`% ${a.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=ue(this.config.selectors.display[e],i),s=M("div",K(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":J.get(e,this.config)}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){O.call(this,e,"keydown keyup",t=>{if(![32,38,39,40].includes(t.which)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=Me(e,'[role="menuitemradio"]');if(!s&&[32,39].includes(t.which))k.showMenuPanel.call(this,i,!0);else{let a;t.which!==32&&(t.which===40||s&&t.which===39?(a=e.nextElementSibling,l.element(a)||(a=e.parentNode.firstElementChild)):(a=e.previousElementSibling,l.element(a)||(a=e.parentNode.lastElementChild)),At.call(this,a,!0))}},!1),O.call(this,e,"keyup",t=>{t.which===13&&k.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:a=null,checked:n=!1}){const o=ue(this.config.selectors.inputs[t]),r=M("button",K(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":n,value:e})),h=M("span");h.innerHTML=s,l.element(a)&&h.appendChild(a),r.appendChild(h),Object.defineProperty(r,"checked",{enumerable:!0,get:()=>r.getAttribute("aria-checked")==="true",set(d){d&&Array.from(r.parentNode.children).filter(v=>Me(v,'[role="menuitemradio"]')).forEach(v=>v.setAttribute("aria-checked","false")),r.setAttribute("aria-checked",d?"true":"false")}}),this.listeners.bind(r,"click keyup",d=>{if(!l.keyboardEvent(d)||d.which===32){switch(d.preventDefault(),d.stopPropagation(),r.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}k.showMenuPanel.call(this,"home",l.keyboardEvent(d))}},t,!1),k.bindMenuItemShortcuts.call(this,r,t),i.appendChild(r)},formatTime(e=0,i=!1){return l.number(e)?dt(e,Pi(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){l.element(e)&&l.number(i)&&(e.innerText=k.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&k.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,k.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,a)=>{const n=l.number(a)?a:0,o=l.element(s)?s:this.elements.display.buffer;if(l.element(o)){o.value=n;const r=o.getElementsByTagName("span")[0];l.element(r)&&(r.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=cn(this.currentTime,this.duration),e.type==="timeupdate"&&k.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(l.element(i)&&i.getAttribute("type")==="range"){if(Me(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=k.formatTime(this.currentTime),s=k.formatTime(this.duration),a=J.get("seekLabel",this.config);i.setAttribute("aria-valuetext",a.replace("{currentTime}",t).replace("{duration}",s))}else if(Me(i,this.config.selectors.inputs.volume)){const t=100*i.value;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);G.isWebkit&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip(e){if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const i=`${this.config.classNames.tooltip}--visible`,t=n=>L(this.elements.display.seekTooltip,i,n);if(this.touch)return void t(!1);let s=0;const a=this.elements.progress.getBoundingClientRect();if(l.event(e))s=100/a.width*(e.pageX-a.left);else{if(!rt(this.elements.display.seekTooltip,i))return;s=parseFloat(this.elements.display.seekTooltip.style.left,10)}s<0?s=0:s>100&&(s=100),k.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*s),this.elements.display.seekTooltip.style.left=`${s}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&t(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;k.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&e.type==="timeupdate"&&this.media.seeking||k.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return Ne(this.elements.display.currentTime,!0),void Ne(this.elements.progress,!0);l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&k.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&k.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),k.updateSeekTooltip.call(this)},toggleMenuButton(e,i){Ne(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let a=null,n=i;if(e==="captions")a=this.currentTrack;else{if(a=l.empty(t)?this[e]:t,l.empty(a)&&(a=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(a))return void this.debug.warn(`Unsupported value of '${a}' for ${e}`);if(!this.config[e].options.includes(a))return void this.debug.warn(`Disabled value of '${a}' for ${e}`)}if(l.element(n)||(n=s&&s.querySelector('[role="menu"]')),!l.element(n))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=k.getLabel.call(this,e,a);const o=n&&n.querySelector(`[value="${a}"]`);l.element(o)&&(o.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?J.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=J.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return Ai(i);case"captions":return B.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=St(e).filter(n=>this.config.quality.options.includes(n)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(k.toggleMenuButton.call(this,i,s),lt(t),k.checkMenu.call(this),!s)return;const a=n=>{const o=J.get(`qualityBadge.${n}`,this.config);return o.length?k.createBadge.call(this,o):null};this.options.quality.sort((n,o)=>{const r=this.config.quality.options;return r.indexOf(n)>r.indexOf(o)?1:-1}).forEach(n=>{k.createMenuItem.call(this,{value:n,list:t,type:i,title:k.getLabel.call(this,"quality",n),badge:a(n)})}),k.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=B.getTracks.call(this),s=Boolean(t.length);if(k.toggleMenuButton.call(this,e,s),lt(i),k.checkMenu.call(this),!s)return;const a=t.map((n,o)=>({value:o,checked:this.captions.toggled&&this.currentTrack===o,title:B.getLabel.call(this,n),badge:n.language&&k.createBadge.call(this,n.language.toUpperCase()),list:i,type:"language"}));a.unshift({value:-1,checked:!this.captions.toggled,title:J.get("disabled",this.config),list:i,type:"language"}),a.forEach(k.createMenuItem.bind(this)),k.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;k.toggleMenuButton.call(this,e,t),lt(i),k.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{k.createMenuItem.call(this,{value:s,list:i,type:e,title:k.getLabel.call(this,"speed",s)})}),k.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);Ne(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(a=>!a.hidden));const s=t.querySelector('[role^="menuitem"]');At.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let a=s;if(l.boolean(e))a=e;else if(l.keyboardEvent(e)&&e.which===27)a=!1;else if(l.event(e)){const n=l.function(e.composedPath)?e.composedPath()[0]:e.target,o=i.contains(n);if(o||!o&&e.target!==t&&a)return}t.setAttribute("aria-expanded",a),Ne(i,!a),L(this.elements.container,this.config.classNames.menu.open,a),a&&l.keyboardEvent(e)?k.focusFirstMenuItem.call(this,null,!0):a||s||At.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return we(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,a=Array.from(s.children).find(n=>!n.hidden);if(V.transitions&&!V.reducedMotion){s.style.width=`${a.scrollWidth}px`,s.style.height=`${a.scrollHeight}px`;const n=k.getMenuSize.call(this,t),o=r=>{r.target===s&&["width","height"].includes(r.propertyName)&&(s.style.width="",s.style.height="",ut.call(this,s,Ct,o))};O.call(this,s,Ct,o),s.style.width=`${n.width}px`,s.style.height=`${n.height}px`}Ne(a,!0),Ne(t,!1),k.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:a,createTime:n,setQualityMenu:o,setSpeedMenu:r,showMenuPanel:h}=k;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const d=M("div",ue(this.config.selectors.controls.wrapper));this.elements.controls=d;const v={class:"plyr__controls__item"};return St(l.array(this.config.controls)?this.config.controls:[]).forEach(T=>{if(T==="restart"&&d.appendChild(t.call(this,"restart",v)),T==="rewind"&&d.appendChild(t.call(this,"rewind",v)),T==="play"&&d.appendChild(t.call(this,"play",v)),T==="fast-forward"&&d.appendChild(t.call(this,"fast-forward",v)),T==="progress"){const b=M("div",{class:`${v.class} plyr__progress__container`}),_=M("div",ue(this.config.selectors.progress));if(_.appendChild(a.call(this,"seek",{id:`plyr-seek-${e.id}`})),_.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const A=M("span",{class:this.config.classNames.tooltip},"00:00");_.appendChild(A),this.elements.display.seekTooltip=A}this.elements.progress=_,b.appendChild(this.elements.progress),d.appendChild(b)}if(T==="current-time"&&d.appendChild(n.call(this,"currentTime",v)),T==="duration"&&d.appendChild(n.call(this,"duration",v)),T==="mute"||T==="volume"){let{volume:b}=this.elements;if(l.element(b)&&d.contains(b)||(b=M("div",K({},v,{class:`${v.class} plyr__volume`.trim()})),this.elements.volume=b,d.appendChild(b)),T==="mute"&&b.appendChild(t.call(this,"mute")),T==="volume"&&!G.isIos){const _={max:1,step:.05,value:this.config.volume};b.appendChild(a.call(this,"volume",K(_,{id:`plyr-volume-${e.id}`})))}}if(T==="captions"&&d.appendChild(t.call(this,"captions",v)),T==="settings"&&!l.empty(this.config.settings)){const b=M("div",K({},v,{class:`${v.class} plyr__menu`.trim(),hidden:""}));b.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const _=M("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),A=M("div"),C=M("div",{id:`plyr-settings-${e.id}-home`}),N=M("div",{role:"menu"});C.appendChild(N),A.appendChild(C),this.elements.settings.panels.home=C,this.config.settings.forEach(E=>{const $=M("button",K(ue(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,$,E),O.call(this,$,"click",()=>{h.call(this,E,!1)});const f=M("span",null,J.get(E,this.config)),F=M("span",{class:this.config.classNames.menu.value});F.innerHTML=e[E],f.appendChild(F),$.appendChild(f),N.appendChild($);const j=M("div",{id:`plyr-settings-${e.id}-${E}`,hidden:""}),z=M("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});z.appendChild(M("span",{"aria-hidden":!0},J.get(E,this.config))),z.appendChild(M("span",{class:this.config.classNames.hidden},J.get("menuBack",this.config))),O.call(this,j,"keydown",W=>{W.which===37&&(W.preventDefault(),W.stopPropagation(),h.call(this,"home",!0))},!1),O.call(this,z,"click",()=>{h.call(this,"home",!1)}),j.appendChild(z),j.appendChild(M("div",{role:"menu"})),A.appendChild(j),this.elements.settings.buttons[E]=$,this.elements.settings.panels[E]=j}),_.appendChild(A),b.appendChild(_),d.appendChild(b),this.elements.settings.popup=_,this.elements.settings.menu=b}if(T==="pip"&&V.pip&&d.appendChild(t.call(this,"pip",v)),T==="airplay"&&V.airplay&&d.appendChild(t.call(this,"airplay",v)),T==="download"){const b=K({},v,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(b.download="");const{download:_}=this.config.urls;!l.url(_)&&this.isEmbed&&K(b,{icon:`logo-${this.provider}`,label:this.provider}),d.appendChild(t.call(this,"download",b))}T==="fullscreen"&&d.appendChild(t.call(this,"fullscreen",v))}),this.isHTML5&&o.call(this,Ee.getQualityOptions.call(this)),r.call(this),d},inject(){if(this.config.loadSprite){const a=k.getIconUrl.call(this);a.cors&&Si(a.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=k.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:B.getLabel.call(this)}),t=!1);let s;if(t&&l.string(this.config.controls)&&(e=(a=>{let n=a;return Object.entries(i).forEach(([o,r])=>{n=Ke(n,`{${o}}`,r)}),n})(e)),l.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),l.element(s)||(s=this.elements.container),s[l.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),l.element(this.elements.controls)||k.findElements.call(this),!l.empty(this.elements.buttons)){const a=n=>{const o=this.config.classNames.controlPressed;Object.defineProperty(n,"pressed",{enumerable:!0,get:()=>rt(n,o),set(r=!1){L(n,o,r)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(n=>{l.array(n)||l.nodeList(n)?Array.from(n).filter(Boolean).forEach(a):a(n)})}if(G.isEdge&&gi(s),this.config.tooltips.controls){const{classNames:a,selectors:n}=this.config,o=`${n.controls.wrapper} ${n.labels} .${a.hidden}`,r=Le.call(this,o);Array.from(r).forEach(h=>{L(h,this.config.classNames.hidden,!1),L(h,this.config.classNames.tooltip,!0)})}}};function Fi(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function xi(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const B={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!V.textTracks)return void(l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&k.setCaptionsMenu.call(this));if(l.element(this.elements.captions)||(this.elements.captions=M("div",ue(this.config.selectors.captions)),sn(this.elements.captions,this.elements.wrapper)),G.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(a=>{const n=a.getAttribute("src"),o=Fi(n);o!==null&&o.hostname!==window.location.href.hostname&&["http:","https:"].includes(o.protocol)&&Je(n,"blob").then(r=>{a.setAttribute("src",window.URL.createObjectURL(r))}).catch(()=>{we(a)})})}const e=St((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(s=>s.split("-")[0]));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();i==="auto"&&([i]=e);let t=this.storage.get("captions");if(l.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:i,languages:e}),this.isHTML5){const s=this.config.captions.update?"addtrack removetrack":"removetrack";O.call(this,this.media.textTracks,s,B.update.bind(this))}setTimeout(B.update.bind(this),0)},update(){const e=B.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:a}=this.captions,n=Boolean(e.find(o=>o.language===t));this.isHTML5&&this.isVideo&&e.filter(o=>!s.get(o)).forEach(o=>{this.debug.log("Track added",o),s.set(o,{default:o.mode==="showing"}),o.mode==="showing"&&(o.mode="hidden"),O.call(this,o,"cuechange",()=>B.updateCues.call(this))}),(n&&this.language!==t||!e.includes(a))&&(B.setLanguage.call(this,t),B.toggle.call(this,i&&n)),this.elements&&L(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&k.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,a=l.nullOrUndefined(e)?!t:e;if(a!==t){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){const n=B.getTracks.call(this),o=B.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=o.language,void B.set.call(this,n.indexOf(o))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),L(this.elements.container,s,a),this.captions.toggled=a,k.updateSetting.call(this,"captions"),x.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout(()=>{a&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=B.getTracks.call(this);if(e!==-1)if(l.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:a}=s||{};this.captions.currentTrackNode=s,k.updateSetting.call(this,"captions"),i||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),x.call(this,this.media,"languagechange")}B.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&B.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else B.toggle.call(this,!1,i)},setLanguage(e,i=!0){if(!l.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=B.getTracks.call(this),a=B.findTrack.call(this,[t]);B.set.call(this,s.indexOf(a),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=B.getTracks.call(this),s=o=>Number((this.captions.meta.get(o)||{}).default),a=Array.from(t).sort((o,r)=>s(r)-s(o));let n;return e.every(o=>(n=a.find(r=>r.language===o),!n)),n||(i?a[0]:void 0)},getCurrentTrack(){return B.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&V.textTracks&&this.captions.toggled&&(i=B.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?J.get("enabled",this.config):e.language.toUpperCase():i.label:J.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!l.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=B.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(pn)}const t=i.map(s=>s.trim()).join(` +var ts=Object.defineProperty,is=Object.defineProperties;var ss=Object.getOwnPropertyDescriptors;var it=Object.getOwnPropertySymbols;var qt=Object.prototype.hasOwnProperty,Vt=Object.prototype.propertyIsEnumerable;var zt=(e,i,t)=>i in e?ts(e,i,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[i]=t,Se=(e,i)=>{for(var t in i||(i={}))qt.call(i,t)&&zt(e,t,i[t]);if(it)for(var t of it(i))Vt.call(i,t)&&zt(e,t,i[t]);return e},st=(e,i)=>is(e,ss(i));var Wt=(e,i)=>{var t={};for(var s in e)qt.call(e,s)&&i.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&it)for(var s of it(e))i.indexOf(s)<0&&Vt.call(e,s)&&(t[s]=e[s]);return t};import{d as bt,a4 as Kt,r as D,o as vt,f as m,b as U,s as ee,T as Ue,a5 as qe,E as I,D as pe,n as Yt,a6 as ns,y as q,A as ge,c as Ce,a7 as Jt,e as p,w as y,M as Gt,G as as,a8 as Qt,C as ls,a9 as os,I as Q,P as fe,m as rs,l as us,aa as cs,p as ds,ab as hs,a as ms,ac as ps,ad as nt,F as Ve,S as Pe,ae as Xt,Q as ye,af as gs,ag as fs,Y as ys,ah as bs,ai as vs,aj as ws,O as Fe,ak as ks,R as xe,al as Ts,am as be,an as Cs,ao as wt,ap as Zt,U as te,H as Es,B as ze,aq as As,ar as _s,as as Ss,at as Ps}from"./vendor.64da71ad.js";import{i as re,b as ei}from"./index.e931b941.js";import{C as Fs}from"./clipboard.a54b99ef.js";function w(e,i,t){return i in e?Object.defineProperty(e,i,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[i]=t,e}function xs(e,i){if(!(e instanceof i))throw new TypeError("Cannot call a class as a function")}function ti(e,i){for(var t=0;ti){var t=Hs(i);return parseFloat(e.toFixed(t))}return Math.round(e/i)*i}var qs=function(){function e(i,t){xs(this,e),X.element(i)?this.element=i:X.string(i)&&(this.element=document.querySelector(i)),X.element(this.element)&&X.empty(this.element.rangeTouch)&&(this.config=si({},ni,{},t),this.init())}return Ns(e,[{key:"init",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="none",this.element.style.webKitUserSelect="none",this.element.style.touchAction="manipulation"),this.listeners(!0),this.element.rangeTouch=this)}},{key:"destroy",value:function(){e.enabled&&(this.config.addCSS&&(this.element.style.userSelect="",this.element.style.webKitUserSelect="",this.element.style.touchAction=""),this.listeners(!1),this.element.rangeTouch=null)}},{key:"listeners",value:function(i){var t=this,s=i?"addEventListener":"removeEventListener";["touchstart","touchmove","touchend"].forEach(function(a){t.element[s](a,function(n){return t.set(n)},!1)})}},{key:"get",value:function(i){if(!e.enabled||!X.event(i))return null;var t,s=i.target,a=i.changedTouches[0],n=parseFloat(s.getAttribute("min"))||0,o=parseFloat(s.getAttribute("max"))||100,r=parseFloat(s.getAttribute("step"))||1,h=s.getBoundingClientRect(),d=100/h.width*(this.config.thumbWidth/2)/100;return 0>(t=100/h.width*(a.clientX-h.left))?t=0:100t?t-=(100-2*t)*d:50e!=null?e.constructor:null,ve=(e,i)=>Boolean(e&&i&&e instanceof i),Tt=e=>e==null,ci=e=>Ie(e)===Object,Vs=e=>Ie(e)===Number&&!Number.isNaN(e),at=e=>Ie(e)===String,zs=e=>Ie(e)===Boolean,di=e=>Ie(e)===Function,hi=e=>Array.isArray(e),Ws=e=>ve(e,WeakMap),mi=e=>ve(e,NodeList),Ks=e=>Ie(e)===Text,Ys=e=>ve(e,Event),Js=e=>ve(e,KeyboardEvent),Gs=e=>ve(e,window.TextTrackCue)||ve(e,window.VTTCue),Qs=e=>ve(e,TextTrack)||!Tt(e)&&at(e.kind),Xs=e=>ve(e,Promise)&&di(e.then),Zs=e=>e!==null&&typeof e=="object"&&e.nodeType===1&&typeof e.style=="object"&&typeof e.ownerDocument=="object",pi=e=>Tt(e)||(at(e)||hi(e)||mi(e))&&!e.length||ci(e)&&!Object.keys(e).length,en=e=>{if(ve(e,window.URL))return!0;if(!at(e))return!1;let i=e;e.startsWith("http://")&&e.startsWith("https://")||(i=`http://${e}`);try{return!pi(new URL(i).hostname)}catch{return!1}};var l={nullOrUndefined:Tt,object:ci,number:Vs,string:at,boolean:zs,function:di,array:hi,weakMap:Ws,nodeList:mi,element:Zs,textNode:Ks,event:Ys,keyboardEvent:Js,cue:Gs,track:Qs,promise:Xs,url:en,empty:pi};const Ct=(()=>{const e=document.createElement("span"),i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"},t=Object.keys(i).find(s=>e.style[s]!==void 0);return!!l.string(t)&&i[t]})();function gi(e,i){setTimeout(()=>{try{e.hidden=!0,e.offsetHeight,e.hidden=!1}catch{}},i)}const G={isIE:Boolean(window.document.documentMode),isEdge:window.navigator.userAgent.includes("Edge"),isWebkit:"WebkitAppearance"in document.documentElement.style&&!/Edge/.test(navigator.userAgent),isIPhone:/(iPhone|iPod)/gi.test(navigator.platform),isIos:navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1||/(iPad|iPhone|iPod)/gi.test(navigator.platform)};function tn(e){return JSON.parse(JSON.stringify(e))}function fi(e,i){return i.split(".").reduce((t,s)=>t&&t[s],e)}function K(e={},...i){if(!i.length)return e;const t=i.shift();return l.object(t)?(Object.keys(t).forEach(s=>{l.object(t[s])?(Object.keys(e).includes(s)||Object.assign(e,{[s]:{}}),K(e[s],t[s])):Object.assign(e,{[s]:t[s]})}),K(e,...i)):e}function yi(e,i){const t=e.length?e:[e];Array.from(t).reverse().forEach((s,a)=>{const n=a>0?i.cloneNode(!0):i,o=s.parentNode,r=s.nextSibling;n.appendChild(s),r?o.insertBefore(n,r):o.appendChild(n)})}function Et(e,i){l.element(e)&&!l.empty(i)&&Object.entries(i).filter(([,t])=>!l.nullOrUndefined(t)).forEach(([t,s])=>e.setAttribute(t,s))}function M(e,i,t){const s=document.createElement(e);return l.object(i)&&Et(s,i),l.string(t)&&(s.innerText=t),s}function sn(e,i){l.element(e)&&l.element(i)&&i.parentNode.insertBefore(e,i.nextSibling)}function bi(e,i,t,s){l.element(i)&&i.appendChild(M(e,t,s))}function we(e){l.nodeList(e)||l.array(e)?Array.from(e).forEach(we):l.element(e)&&l.element(e.parentNode)&&e.parentNode.removeChild(e)}function lt(e){if(!l.element(e))return;let{length:i}=e.childNodes;for(;i>0;)e.removeChild(e.lastChild),i-=1}function ot(e,i){return l.element(i)&&l.element(i.parentNode)&&l.element(e)?(i.parentNode.replaceChild(e,i),e):null}function ue(e,i){if(!l.string(e)||l.empty(e))return{};const t={},s=K({},i);return e.split(",").forEach(a=>{const n=a.trim(),o=n.replace(".",""),r=n.replace(/[[\]]/g,"").split("="),[h]=r,d=r.length>1?r[1].replace(/["']/g,""):"";switch(n.charAt(0)){case".":l.string(s.class)?t.class=`${s.class} ${o}`:t.class=o;break;case"#":t.id=n.replace("#","");break;case"[":t[h]=d}}),K(s,t)}function Ne(e,i){if(!l.element(e))return;let t=i;l.boolean(t)||(t=!e.hidden),e.hidden=t}function L(e,i,t){if(l.nodeList(e))return Array.from(e).map(s=>L(s,i,t));if(l.element(e)){let s="toggle";return t!==void 0&&(s=t?"add":"remove"),e.classList[s](i),e.classList.contains(i)}return!1}function rt(e,i){return l.element(e)&&e.classList.contains(i)}function Me(e,i){const{prototype:t}=Element;return(t.matches||t.webkitMatchesSelector||t.mozMatchesSelector||t.msMatchesSelector||function(){return Array.from(document.querySelectorAll(i)).includes(this)}).call(e,i)}function nn(e,i){const{prototype:t}=Element;return(t.closest||function(){let s=this;do{if(Me.matches(s,i))return s;s=s.parentElement||s.parentNode}while(s!==null&&s.nodeType===1);return null}).call(e,i)}function Le(e){return this.elements.container.querySelectorAll(e)}function Y(e){return this.elements.container.querySelector(e)}function At(e=null,i=!1){l.element(e)&&(e.focus({preventScroll:!0}),i&&L(e,this.config.classNames.tabFocus))}const vi={"audio/ogg":"vorbis","audio/wav":"1","video/webm":"vp8, vorbis","video/mp4":"avc1.42E01E, mp4a.40.2","video/ogg":"theora"},V={audio:"canPlayType"in document.createElement("audio"),video:"canPlayType"in document.createElement("video"),check(e,i,t){const s=G.isIPhone&&t&&V.playsinline,a=V[e]||i!=="html5";return{api:a,ui:a&&V.rangeInput&&(e!=="video"||!G.isIPhone||s)}},pip:!(G.isIPhone||!l.function(M("video").webkitSetPresentationMode)&&(!document.pictureInPictureEnabled||M("video").disablePictureInPicture)),airplay:l.function(window.WebKitPlaybackTargetAvailabilityEvent),playsinline:"playsInline"in document.createElement("video"),mime(e){if(l.empty(e))return!1;const[i]=e.split("/");let t=e;if(!this.isHTML5||i!==this.type)return!1;Object.keys(vi).includes(t)&&(t+=`; codecs="${vi[e]}"`);try{return Boolean(t&&this.media.canPlayType(t).replace(/no/,""))}catch{return!1}},textTracks:"textTracks"in document.createElement("video"),rangeInput:(()=>{const e=document.createElement("input");return e.type="range",e.type==="range"})(),touch:"ontouchstart"in document.documentElement,transitions:Ct!==!1,reducedMotion:"matchMedia"in window&&window.matchMedia("(prefers-reduced-motion)").matches},an=(()=>{let e=!1;try{const i=Object.defineProperty({},"passive",{get:()=>(e=!0,null)});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch{}return e})();function Oe(e,i,t,s=!1,a=!0,n=!1){if(!e||!("addEventListener"in e)||l.empty(i)||!l.function(t))return;const o=i.split(" ");let r=n;an&&(r={passive:a,capture:n}),o.forEach(h=>{this&&this.eventListeners&&s&&this.eventListeners.push({element:e,type:h,callback:t,options:r}),e[s?"addEventListener":"removeEventListener"](h,t,r)})}function O(e,i="",t,s=!0,a=!1){Oe.call(this,e,i,t,!0,s,a)}function ut(e,i="",t,s=!0,a=!1){Oe.call(this,e,i,t,!1,s,a)}function _t(e,i="",t,s=!0,a=!1){const n=(...o)=>{ut(e,i,n,s,a),t.apply(this,o)};Oe.call(this,e,i,n,!0,s,a)}function x(e,i="",t=!1,s={}){if(!l.element(e)||l.empty(i))return;const a=new CustomEvent(i,{bubbles:t,detail:st(Se({},s),{plyr:this})});e.dispatchEvent(a)}function ln(){this&&this.eventListeners&&(this.eventListeners.forEach(e=>{const{element:i,type:t,callback:s,options:a}=e;i.removeEventListener(t,s,a)}),this.eventListeners=[])}function on(){return new Promise(e=>this.ready?setTimeout(e,0):O.call(this,this.elements.container,"ready",e)).then(()=>{})}function ce(e){l.promise(e)&&e.then(null,()=>{})}function St(e){return l.array(e)?e.filter((i,t)=>e.indexOf(i)===t):e}function wi(e,i){return l.array(e)&&e.length?e.reduce((t,s)=>Math.abs(s-i)st(Se({},e),{[i/t]:[i,t]}),{});function Ci(e){return l.array(e)||l.string(e)&&e.includes(":")?(l.array(e)?e:e.split(":")).map(Number).every(l.number):!1}function ct(e){if(!l.array(e)||!e.every(l.number))return null;const[i,t]=e,s=(n,o)=>o===0?n:s(o,n%o),a=s(i,t);return[i/a,t/a]}function Pt(e){const i=s=>Ci(s)?s.split(":").map(Number):null;let t=i(e);if(t===null&&(t=i(this.config.ratio)),t===null&&!l.empty(this.embed)&&l.array(this.embed.ratio)&&({ratio:t}=this.embed),t===null&&this.isHTML5){const{videoWidth:s,videoHeight:a}=this.media;t=[s,a]}return ct(t)}function Be(e){if(!this.isVideo)return{};const{wrapper:i}=this.elements,t=Pt.call(this,e);if(!l.array(t))return{};const[s,a]=ct(t),n=100/s*a;if(ki(`aspect-ratio: ${s}/${a}`)?i.style.aspectRatio=`${s}/${a}`:i.style.paddingBottom=`${n}%`,this.isVimeo&&!this.config.vimeo.premium&&this.supported.ui){const o=100/this.media.offsetWidth*parseInt(window.getComputedStyle(this.media).paddingBottom,10),r=(o-n)/(o/50);this.fullscreen.active?i.style.paddingBottom=null:this.media.style.transform=`translateY(-${r}%)`}else this.isHTML5&&i.classList.add(this.config.classNames.videoFixedRatio);return{padding:n,ratio:t}}function Ei(e,i,t=.05){const s=e/i,a=wi(Object.keys(Ti),s);return Math.abs(a-s)<=t?Ti[a]:[e,i]}function rn(){return[Math.max(document.documentElement.clientWidth||0,window.innerWidth||0),Math.max(document.documentElement.clientHeight||0,window.innerHeight||0)]}const Ee={getSources(){return this.isHTML5?Array.from(this.media.querySelectorAll("source")).filter(e=>{const i=e.getAttribute("type");return!!l.empty(i)||V.mime.call(this,i)}):[]},getQualityOptions(){return this.config.quality.forced?this.config.quality.options:Ee.getSources.call(this).map(e=>Number(e.getAttribute("size"))).filter(Boolean)},setup(){if(!this.isHTML5)return;const e=this;e.options.speed=e.config.speed.options,l.empty(this.config.ratio)||Be.call(e),Object.defineProperty(e.media,"quality",{get(){const i=Ee.getSources.call(e).find(t=>t.getAttribute("src")===e.source);return i&&Number(i.getAttribute("size"))},set(i){if(e.quality!==i){if(e.config.quality.forced&&l.function(e.config.quality.onChange))e.config.quality.onChange(i);else{const t=Ee.getSources.call(e).find(h=>Number(h.getAttribute("size"))===i);if(!t)return;const{currentTime:s,paused:a,preload:n,readyState:o,playbackRate:r}=e.media;e.media.src=t.getAttribute("src"),(n!=="none"||o)&&(e.once("loadedmetadata",()=>{e.speed=r,e.currentTime=s,a||ce(e.play())}),e.media.load())}x.call(e,e.media,"qualitychange",!1,{quality:i})}}})},cancelRequests(){this.isHTML5&&(we(Ee.getSources.call(this)),this.media.setAttribute("src",this.config.blankVideo),this.media.load(),this.debug.log("Cancelled network requests"))}};function un(e){return`${e}-${Math.floor(1e4*Math.random())}`}function Ft(e,...i){return l.empty(e)?e:e.toString().replace(/{(\d+)}/g,(t,s)=>i[s].toString())}function cn(e,i){return e===0||i===0||Number.isNaN(e)||Number.isNaN(i)?0:(e/i*100).toFixed(2)}const Ke=(e="",i="",t="")=>e.replace(new RegExp(i.toString().replace(/([.*+?^=!:${}()|[\]/\\])/g,"\\$1"),"g"),t.toString()),Ai=(e="")=>e.toString().replace(/\w\S*/g,i=>i.charAt(0).toUpperCase()+i.substr(1).toLowerCase());function dn(e=""){let i=e.toString();return i=Ke(i,"-"," "),i=Ke(i,"_"," "),i=Ai(i),Ke(i," ","")}function hn(e=""){let i=e.toString();return i=dn(i),i.charAt(0).toLowerCase()+i.slice(1)}function mn(e){const i=document.createDocumentFragment(),t=document.createElement("div");return i.appendChild(t),t.innerHTML=e,i.firstChild.innerText}function pn(e){const i=document.createElement("div");return i.appendChild(e),i.innerHTML}const _i={pip:"PIP",airplay:"AirPlay",html5:"HTML5",vimeo:"Vimeo",youtube:"YouTube"},J={get(e="",i={}){if(l.empty(e)||l.empty(i))return"";let t=fi(i.i18n,e);if(l.empty(t))return Object.keys(_i).includes(e)?_i[e]:"";const s={"{seektime}":i.seekTime,"{title}":i.title};return Object.entries(s).forEach(([a,n])=>{t=Ke(t,a,n)}),t}};class Ye{constructor(i){w(this,"get",t=>{if(!Ye.supported||!this.enabled)return null;const s=window.localStorage.getItem(this.key);if(l.empty(s))return null;const a=JSON.parse(s);return l.string(t)&&t.length?a[t]:a}),w(this,"set",t=>{if(!Ye.supported||!this.enabled||!l.object(t))return;let s=this.get();l.empty(s)&&(s={}),K(s,t);try{window.localStorage.setItem(this.key,JSON.stringify(s))}catch{}}),this.enabled=i.config.storage.enabled,this.key=i.config.storage.key}static get supported(){try{if(!("localStorage"in window))return!1;const i="___test";return window.localStorage.setItem(i,i),window.localStorage.removeItem(i),!0}catch{return!1}}}function Je(e,i="text"){return new Promise((t,s)=>{try{const a=new XMLHttpRequest;if(!("withCredentials"in a))return;a.addEventListener("load",()=>{if(i==="text")try{t(JSON.parse(a.responseText))}catch{t(a.responseText)}else t(a.response)}),a.addEventListener("error",()=>{throw new Error(a.status)}),a.open("GET",e,!0),a.responseType=i,a.send()}catch(a){s(a)}})}function Si(e,i){if(!l.string(e))return;const t=l.string(i);let s=!1;const a=()=>document.getElementById(i)!==null,n=(o,r)=>{o.innerHTML=r,t&&a()||document.body.insertAdjacentElement("afterbegin",o)};if(!t||!a()){const o=Ye.supported,r=document.createElement("div");if(r.setAttribute("hidden",""),t&&r.setAttribute("id",i),o){const h=window.localStorage.getItem(`cache-${i}`);if(s=h!==null,s){const d=JSON.parse(h);n(r,d.content)}}Je(e).then(h=>{if(!l.empty(h)){if(o)try{window.localStorage.setItem(`cache-${i}`,JSON.stringify({content:h}))}catch{}n(r,h)}}).catch(()=>{})}}const Pi=e=>Math.trunc(e/60/60%60,10),gn=e=>Math.trunc(e%60,10);function dt(e=0,i=!1,t=!1){if(!l.number(e))return dt(void 0,i,t);const s=h=>`0${h}`.slice(-2);let a=Pi(e);const n=(o=e,Math.trunc(o/60%60,10));var o;const r=gn(e);return a=i||a>0?`${a}:`:"",`${t&&e>0?"-":""}${a}${s(n)}:${s(r)}`}const k={getIconUrl(){const e=new URL(this.config.iconUrl,window.location),i=window.location.host?window.location.host:window.top.location.host,t=e.host!==i||G.isIE&&!window.svg4everybody;return{url:this.config.iconUrl,cors:t}},findElements(){try{return this.elements.controls=Y.call(this,this.config.selectors.controls.wrapper),this.elements.buttons={play:Le.call(this,this.config.selectors.buttons.play),pause:Y.call(this,this.config.selectors.buttons.pause),restart:Y.call(this,this.config.selectors.buttons.restart),rewind:Y.call(this,this.config.selectors.buttons.rewind),fastForward:Y.call(this,this.config.selectors.buttons.fastForward),mute:Y.call(this,this.config.selectors.buttons.mute),pip:Y.call(this,this.config.selectors.buttons.pip),airplay:Y.call(this,this.config.selectors.buttons.airplay),settings:Y.call(this,this.config.selectors.buttons.settings),captions:Y.call(this,this.config.selectors.buttons.captions),fullscreen:Y.call(this,this.config.selectors.buttons.fullscreen)},this.elements.progress=Y.call(this,this.config.selectors.progress),this.elements.inputs={seek:Y.call(this,this.config.selectors.inputs.seek),volume:Y.call(this,this.config.selectors.inputs.volume)},this.elements.display={buffer:Y.call(this,this.config.selectors.display.buffer),currentTime:Y.call(this,this.config.selectors.display.currentTime),duration:Y.call(this,this.config.selectors.display.duration)},l.element(this.elements.progress)&&(this.elements.display.seekTooltip=this.elements.progress.querySelector(`.${this.config.classNames.tooltip}`)),!0}catch(e){return this.debug.warn("It looks like there is a problem with your custom controls HTML",e),this.toggleNativeControls(!0),!1}},createIcon(e,i){const t="http://www.w3.org/2000/svg",s=k.getIconUrl.call(this),a=`${s.cors?"":s.url}#${this.config.iconPrefix}`,n=document.createElementNS(t,"svg");Et(n,K(i,{"aria-hidden":"true",focusable:"false"}));const o=document.createElementNS(t,"use"),r=`${a}-${e}`;return"href"in o&&o.setAttributeNS("http://www.w3.org/1999/xlink","href",r),o.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",r),n.appendChild(o),n},createLabel(e,i={}){const t=J.get(e,this.config);return M("span",st(Se({},i),{class:[i.class,this.config.classNames.hidden].filter(Boolean).join(" ")}),t)},createBadge(e){if(l.empty(e))return null;const i=M("span",{class:this.config.classNames.menu.value});return i.appendChild(M("span",{class:this.config.classNames.menu.badge},e)),i},createButton(e,i){const t=K({},i);let s=hn(e);const a={element:"button",toggle:!1,label:null,icon:null,labelPressed:null,iconPressed:null};switch(["element","icon","label"].forEach(o=>{Object.keys(t).includes(o)&&(a[o]=t[o],delete t[o])}),a.element!=="button"||Object.keys(t).includes("type")||(t.type="button"),Object.keys(t).includes("class")?t.class.split(" ").some(o=>o===this.config.classNames.control)||K(t,{class:`${t.class} ${this.config.classNames.control}`}):t.class=this.config.classNames.control,e){case"play":a.toggle=!0,a.label="play",a.labelPressed="pause",a.icon="play",a.iconPressed="pause";break;case"mute":a.toggle=!0,a.label="mute",a.labelPressed="unmute",a.icon="volume",a.iconPressed="muted";break;case"captions":a.toggle=!0,a.label="enableCaptions",a.labelPressed="disableCaptions",a.icon="captions-off",a.iconPressed="captions-on";break;case"fullscreen":a.toggle=!0,a.label="enterFullscreen",a.labelPressed="exitFullscreen",a.icon="enter-fullscreen",a.iconPressed="exit-fullscreen";break;case"play-large":t.class+=` ${this.config.classNames.control}--overlaid`,s="play",a.label="play",a.icon="play";break;default:l.empty(a.label)&&(a.label=s),l.empty(a.icon)&&(a.icon=e)}const n=M(a.element);return a.toggle?(n.appendChild(k.createIcon.call(this,a.iconPressed,{class:"icon--pressed"})),n.appendChild(k.createIcon.call(this,a.icon,{class:"icon--not-pressed"})),n.appendChild(k.createLabel.call(this,a.labelPressed,{class:"label--pressed"})),n.appendChild(k.createLabel.call(this,a.label,{class:"label--not-pressed"}))):(n.appendChild(k.createIcon.call(this,a.icon)),n.appendChild(k.createLabel.call(this,a.label))),K(t,ue(this.config.selectors.buttons[s],t)),Et(n,t),s==="play"?(l.array(this.elements.buttons[s])||(this.elements.buttons[s]=[]),this.elements.buttons[s].push(n)):this.elements.buttons[s]=n,n},createRange(e,i){const t=M("input",K(ue(this.config.selectors.inputs[e]),{type:"range",min:0,max:100,step:.01,value:0,autocomplete:"off",role:"slider","aria-label":J.get(e,this.config),"aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":0},i));return this.elements.inputs[e]=t,k.updateRangeFill.call(this,t),qs.setup(t),t},createProgress(e,i){const t=M("progress",K(ue(this.config.selectors.display[e]),{min:0,max:100,value:0,role:"progressbar","aria-hidden":!0},i));if(e!=="volume"){t.appendChild(M("span",null,"0"));const s={played:"played",buffer:"buffered"}[e],a=s?J.get(s,this.config):"";t.innerText=`% ${a.toLowerCase()}`}return this.elements.display[e]=t,t},createTime(e,i){const t=ue(this.config.selectors.display[e],i),s=M("div",K(t,{class:`${t.class?t.class:""} ${this.config.classNames.display.time} `.trim(),"aria-label":J.get(e,this.config)}),"00:00");return this.elements.display[e]=s,s},bindMenuItemShortcuts(e,i){O.call(this,e,"keydown keyup",t=>{if(![32,38,39,40].includes(t.which)||(t.preventDefault(),t.stopPropagation(),t.type==="keydown"))return;const s=Me(e,'[role="menuitemradio"]');if(!s&&[32,39].includes(t.which))k.showMenuPanel.call(this,i,!0);else{let a;t.which!==32&&(t.which===40||s&&t.which===39?(a=e.nextElementSibling,l.element(a)||(a=e.parentNode.firstElementChild)):(a=e.previousElementSibling,l.element(a)||(a=e.parentNode.lastElementChild)),At.call(this,a,!0))}},!1),O.call(this,e,"keyup",t=>{t.which===13&&k.focusFirstMenuItem.call(this,null,!0)})},createMenuItem({value:e,list:i,type:t,title:s,badge:a=null,checked:n=!1}){const o=ue(this.config.selectors.inputs[t]),r=M("button",K(o,{type:"button",role:"menuitemradio",class:`${this.config.classNames.control} ${o.class?o.class:""}`.trim(),"aria-checked":n,value:e})),h=M("span");h.innerHTML=s,l.element(a)&&h.appendChild(a),r.appendChild(h),Object.defineProperty(r,"checked",{enumerable:!0,get:()=>r.getAttribute("aria-checked")==="true",set(d){d&&Array.from(r.parentNode.children).filter(v=>Me(v,'[role="menuitemradio"]')).forEach(v=>v.setAttribute("aria-checked","false")),r.setAttribute("aria-checked",d?"true":"false")}}),this.listeners.bind(r,"click keyup",d=>{if(!l.keyboardEvent(d)||d.which===32){switch(d.preventDefault(),d.stopPropagation(),r.checked=!0,t){case"language":this.currentTrack=Number(e);break;case"quality":this.quality=e;break;case"speed":this.speed=parseFloat(e)}k.showMenuPanel.call(this,"home",l.keyboardEvent(d))}},t,!1),k.bindMenuItemShortcuts.call(this,r,t),i.appendChild(r)},formatTime(e=0,i=!1){return l.number(e)?dt(e,Pi(this.duration)>0,i):e},updateTimeDisplay(e=null,i=0,t=!1){l.element(e)&&l.number(i)&&(e.innerText=k.formatTime(i,t))},updateVolume(){this.supported.ui&&(l.element(this.elements.inputs.volume)&&k.setRange.call(this,this.elements.inputs.volume,this.muted?0:this.volume),l.element(this.elements.buttons.mute)&&(this.elements.buttons.mute.pressed=this.muted||this.volume===0))},setRange(e,i=0){l.element(e)&&(e.value=i,k.updateRangeFill.call(this,e))},updateProgress(e){if(!this.supported.ui||!l.event(e))return;let i=0;const t=(s,a)=>{const n=l.number(a)?a:0,o=l.element(s)?s:this.elements.display.buffer;if(l.element(o)){o.value=n;const r=o.getElementsByTagName("span")[0];l.element(r)&&(r.childNodes[0].nodeValue=n)}};if(e)switch(e.type){case"timeupdate":case"seeking":case"seeked":i=cn(this.currentTime,this.duration),e.type==="timeupdate"&&k.setRange.call(this,this.elements.inputs.seek,i);break;case"playing":case"progress":t(this.elements.display.buffer,100*this.buffered)}},updateRangeFill(e){const i=l.event(e)?e.target:e;if(l.element(i)&&i.getAttribute("type")==="range"){if(Me(i,this.config.selectors.inputs.seek)){i.setAttribute("aria-valuenow",this.currentTime);const t=k.formatTime(this.currentTime),s=k.formatTime(this.duration),a=J.get("seekLabel",this.config);i.setAttribute("aria-valuetext",a.replace("{currentTime}",t).replace("{duration}",s))}else if(Me(i,this.config.selectors.inputs.volume)){const t=100*i.value;i.setAttribute("aria-valuenow",t),i.setAttribute("aria-valuetext",`${t.toFixed(1)}%`)}else i.setAttribute("aria-valuenow",i.value);G.isWebkit&&i.style.setProperty("--value",i.value/i.max*100+"%")}},updateSeekTooltip(e){if(!this.config.tooltips.seek||!l.element(this.elements.inputs.seek)||!l.element(this.elements.display.seekTooltip)||this.duration===0)return;const i=`${this.config.classNames.tooltip}--visible`,t=n=>L(this.elements.display.seekTooltip,i,n);if(this.touch)return void t(!1);let s=0;const a=this.elements.progress.getBoundingClientRect();if(l.event(e))s=100/a.width*(e.pageX-a.left);else{if(!rt(this.elements.display.seekTooltip,i))return;s=parseFloat(this.elements.display.seekTooltip.style.left,10)}s<0?s=0:s>100&&(s=100),k.updateTimeDisplay.call(this,this.elements.display.seekTooltip,this.duration/100*s),this.elements.display.seekTooltip.style.left=`${s}%`,l.event(e)&&["mouseenter","mouseleave"].includes(e.type)&&t(e.type==="mouseenter")},timeUpdate(e){const i=!l.element(this.elements.display.duration)&&this.config.invertTime;k.updateTimeDisplay.call(this,this.elements.display.currentTime,i?this.duration-this.currentTime:this.currentTime,i),e&&e.type==="timeupdate"&&this.media.seeking||k.updateProgress.call(this,e)},durationUpdate(){if(!this.supported.ui||!this.config.invertTime&&this.currentTime)return;if(this.duration>=2**32)return Ne(this.elements.display.currentTime,!0),void Ne(this.elements.progress,!0);l.element(this.elements.inputs.seek)&&this.elements.inputs.seek.setAttribute("aria-valuemax",this.duration);const e=l.element(this.elements.display.duration);!e&&this.config.displayDuration&&this.paused&&k.updateTimeDisplay.call(this,this.elements.display.currentTime,this.duration),e&&k.updateTimeDisplay.call(this,this.elements.display.duration,this.duration),k.updateSeekTooltip.call(this)},toggleMenuButton(e,i){Ne(this.elements.settings.buttons[e],!i)},updateSetting(e,i,t){const s=this.elements.settings.panels[e];let a=null,n=i;if(e==="captions")a=this.currentTrack;else{if(a=l.empty(t)?this[e]:t,l.empty(a)&&(a=this.config[e].default),!l.empty(this.options[e])&&!this.options[e].includes(a))return void this.debug.warn(`Unsupported value of '${a}' for ${e}`);if(!this.config[e].options.includes(a))return void this.debug.warn(`Disabled value of '${a}' for ${e}`)}if(l.element(n)||(n=s&&s.querySelector('[role="menu"]')),!l.element(n))return;this.elements.settings.buttons[e].querySelector(`.${this.config.classNames.menu.value}`).innerHTML=k.getLabel.call(this,e,a);const o=n&&n.querySelector(`[value="${a}"]`);l.element(o)&&(o.checked=!0)},getLabel(e,i){switch(e){case"speed":return i===1?J.get("normal",this.config):`${i}×`;case"quality":if(l.number(i)){const t=J.get(`qualityLabel.${i}`,this.config);return t.length?t:`${i}p`}return Ai(i);case"captions":return B.getLabel.call(this);default:return null}},setQualityMenu(e){if(!l.element(this.elements.settings.panels.quality))return;const i="quality",t=this.elements.settings.panels.quality.querySelector('[role="menu"]');l.array(e)&&(this.options.quality=St(e).filter(n=>this.config.quality.options.includes(n)));const s=!l.empty(this.options.quality)&&this.options.quality.length>1;if(k.toggleMenuButton.call(this,i,s),lt(t),k.checkMenu.call(this),!s)return;const a=n=>{const o=J.get(`qualityBadge.${n}`,this.config);return o.length?k.createBadge.call(this,o):null};this.options.quality.sort((n,o)=>{const r=this.config.quality.options;return r.indexOf(n)>r.indexOf(o)?1:-1}).forEach(n=>{k.createMenuItem.call(this,{value:n,list:t,type:i,title:k.getLabel.call(this,"quality",n),badge:a(n)})}),k.updateSetting.call(this,i,t)},setCaptionsMenu(){if(!l.element(this.elements.settings.panels.captions))return;const e="captions",i=this.elements.settings.panels.captions.querySelector('[role="menu"]'),t=B.getTracks.call(this),s=Boolean(t.length);if(k.toggleMenuButton.call(this,e,s),lt(i),k.checkMenu.call(this),!s)return;const a=t.map((n,o)=>({value:o,checked:this.captions.toggled&&this.currentTrack===o,title:B.getLabel.call(this,n),badge:n.language&&k.createBadge.call(this,n.language.toUpperCase()),list:i,type:"language"}));a.unshift({value:-1,checked:!this.captions.toggled,title:J.get("disabled",this.config),list:i,type:"language"}),a.forEach(k.createMenuItem.bind(this)),k.updateSetting.call(this,e,i)},setSpeedMenu(){if(!l.element(this.elements.settings.panels.speed))return;const e="speed",i=this.elements.settings.panels.speed.querySelector('[role="menu"]');this.options.speed=this.options.speed.filter(s=>s>=this.minimumSpeed&&s<=this.maximumSpeed);const t=!l.empty(this.options.speed)&&this.options.speed.length>1;k.toggleMenuButton.call(this,e,t),lt(i),k.checkMenu.call(this),t&&(this.options.speed.forEach(s=>{k.createMenuItem.call(this,{value:s,list:i,type:e,title:k.getLabel.call(this,"speed",s)})}),k.updateSetting.call(this,e,i))},checkMenu(){const{buttons:e}=this.elements.settings,i=!l.empty(e)&&Object.values(e).some(t=>!t.hidden);Ne(this.elements.settings.menu,!i)},focusFirstMenuItem(e,i=!1){if(this.elements.settings.popup.hidden)return;let t=e;l.element(t)||(t=Object.values(this.elements.settings.panels).find(a=>!a.hidden));const s=t.querySelector('[role^="menuitem"]');At.call(this,s,i)},toggleMenu(e){const{popup:i}=this.elements.settings,t=this.elements.buttons.settings;if(!l.element(i)||!l.element(t))return;const{hidden:s}=i;let a=s;if(l.boolean(e))a=e;else if(l.keyboardEvent(e)&&e.which===27)a=!1;else if(l.event(e)){const n=l.function(e.composedPath)?e.composedPath()[0]:e.target,o=i.contains(n);if(o||!o&&e.target!==t&&a)return}t.setAttribute("aria-expanded",a),Ne(i,!a),L(this.elements.container,this.config.classNames.menu.open,a),a&&l.keyboardEvent(e)?k.focusFirstMenuItem.call(this,null,!0):a||s||At.call(this,t,l.keyboardEvent(e))},getMenuSize(e){const i=e.cloneNode(!0);i.style.position="absolute",i.style.opacity=0,i.removeAttribute("hidden"),e.parentNode.appendChild(i);const t=i.scrollWidth,s=i.scrollHeight;return we(i),{width:t,height:s}},showMenuPanel(e="",i=!1){const t=this.elements.container.querySelector(`#plyr-settings-${this.id}-${e}`);if(!l.element(t))return;const s=t.parentNode,a=Array.from(s.children).find(n=>!n.hidden);if(V.transitions&&!V.reducedMotion){s.style.width=`${a.scrollWidth}px`,s.style.height=`${a.scrollHeight}px`;const n=k.getMenuSize.call(this,t),o=r=>{r.target===s&&["width","height"].includes(r.propertyName)&&(s.style.width="",s.style.height="",ut.call(this,s,Ct,o))};O.call(this,s,Ct,o),s.style.width=`${n.width}px`,s.style.height=`${n.height}px`}Ne(a,!0),Ne(t,!1),k.focusFirstMenuItem.call(this,t,i)},setDownloadUrl(){const e=this.elements.buttons.download;l.element(e)&&e.setAttribute("href",this.download)},create(e){const{bindMenuItemShortcuts:i,createButton:t,createProgress:s,createRange:a,createTime:n,setQualityMenu:o,setSpeedMenu:r,showMenuPanel:h}=k;this.elements.controls=null,l.array(this.config.controls)&&this.config.controls.includes("play-large")&&this.elements.container.appendChild(t.call(this,"play-large"));const d=M("div",ue(this.config.selectors.controls.wrapper));this.elements.controls=d;const v={class:"plyr__controls__item"};return St(l.array(this.config.controls)?this.config.controls:[]).forEach(T=>{if(T==="restart"&&d.appendChild(t.call(this,"restart",v)),T==="rewind"&&d.appendChild(t.call(this,"rewind",v)),T==="play"&&d.appendChild(t.call(this,"play",v)),T==="fast-forward"&&d.appendChild(t.call(this,"fast-forward",v)),T==="progress"){const b=M("div",{class:`${v.class} plyr__progress__container`}),_=M("div",ue(this.config.selectors.progress));if(_.appendChild(a.call(this,"seek",{id:`plyr-seek-${e.id}`})),_.appendChild(s.call(this,"buffer")),this.config.tooltips.seek){const A=M("span",{class:this.config.classNames.tooltip},"00:00");_.appendChild(A),this.elements.display.seekTooltip=A}this.elements.progress=_,b.appendChild(this.elements.progress),d.appendChild(b)}if(T==="current-time"&&d.appendChild(n.call(this,"currentTime",v)),T==="duration"&&d.appendChild(n.call(this,"duration",v)),T==="mute"||T==="volume"){let{volume:b}=this.elements;if(l.element(b)&&d.contains(b)||(b=M("div",K({},v,{class:`${v.class} plyr__volume`.trim()})),this.elements.volume=b,d.appendChild(b)),T==="mute"&&b.appendChild(t.call(this,"mute")),T==="volume"&&!G.isIos){const _={max:1,step:.05,value:this.config.volume};b.appendChild(a.call(this,"volume",K(_,{id:`plyr-volume-${e.id}`})))}}if(T==="captions"&&d.appendChild(t.call(this,"captions",v)),T==="settings"&&!l.empty(this.config.settings)){const b=M("div",K({},v,{class:`${v.class} plyr__menu`.trim(),hidden:""}));b.appendChild(t.call(this,"settings",{"aria-haspopup":!0,"aria-controls":`plyr-settings-${e.id}`,"aria-expanded":!1}));const _=M("div",{class:"plyr__menu__container",id:`plyr-settings-${e.id}`,hidden:""}),A=M("div"),C=M("div",{id:`plyr-settings-${e.id}-home`}),N=M("div",{role:"menu"});C.appendChild(N),A.appendChild(C),this.elements.settings.panels.home=C,this.config.settings.forEach(E=>{const $=M("button",K(ue(this.config.selectors.buttons.settings),{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--forward`,role:"menuitem","aria-haspopup":!0,hidden:""}));i.call(this,$,E),O.call(this,$,"click",()=>{h.call(this,E,!1)});const f=M("span",null,J.get(E,this.config)),F=M("span",{class:this.config.classNames.menu.value});F.innerHTML=e[E],f.appendChild(F),$.appendChild(f),N.appendChild($);const j=M("div",{id:`plyr-settings-${e.id}-${E}`,hidden:""}),z=M("button",{type:"button",class:`${this.config.classNames.control} ${this.config.classNames.control}--back`});z.appendChild(M("span",{"aria-hidden":!0},J.get(E,this.config))),z.appendChild(M("span",{class:this.config.classNames.hidden},J.get("menuBack",this.config))),O.call(this,j,"keydown",W=>{W.which===37&&(W.preventDefault(),W.stopPropagation(),h.call(this,"home",!0))},!1),O.call(this,z,"click",()=>{h.call(this,"home",!1)}),j.appendChild(z),j.appendChild(M("div",{role:"menu"})),A.appendChild(j),this.elements.settings.buttons[E]=$,this.elements.settings.panels[E]=j}),_.appendChild(A),b.appendChild(_),d.appendChild(b),this.elements.settings.popup=_,this.elements.settings.menu=b}if(T==="pip"&&V.pip&&d.appendChild(t.call(this,"pip",v)),T==="airplay"&&V.airplay&&d.appendChild(t.call(this,"airplay",v)),T==="download"){const b=K({},v,{element:"a",href:this.download,target:"_blank"});this.isHTML5&&(b.download="");const{download:_}=this.config.urls;!l.url(_)&&this.isEmbed&&K(b,{icon:`logo-${this.provider}`,label:this.provider}),d.appendChild(t.call(this,"download",b))}T==="fullscreen"&&d.appendChild(t.call(this,"fullscreen",v))}),this.isHTML5&&o.call(this,Ee.getQualityOptions.call(this)),r.call(this),d},inject(){if(this.config.loadSprite){const a=k.getIconUrl.call(this);a.cors&&Si(a.url,"sprite-plyr")}this.id=Math.floor(1e4*Math.random());let e=null;this.elements.controls=null;const i={id:this.id,seektime:this.config.seekTime,title:this.config.title};let t=!0;l.function(this.config.controls)&&(this.config.controls=this.config.controls.call(this,i)),this.config.controls||(this.config.controls=[]),l.element(this.config.controls)||l.string(this.config.controls)?e=this.config.controls:(e=k.create.call(this,{id:this.id,seektime:this.config.seekTime,speed:this.speed,quality:this.quality,captions:B.getLabel.call(this)}),t=!1);let s;if(t&&l.string(this.config.controls)&&(e=(a=>{let n=a;return Object.entries(i).forEach(([o,r])=>{n=Ke(n,`{${o}}`,r)}),n})(e)),l.string(this.config.selectors.controls.container)&&(s=document.querySelector(this.config.selectors.controls.container)),l.element(s)||(s=this.elements.container),s[l.element(e)?"insertAdjacentElement":"insertAdjacentHTML"]("afterbegin",e),l.element(this.elements.controls)||k.findElements.call(this),!l.empty(this.elements.buttons)){const a=n=>{const o=this.config.classNames.controlPressed;Object.defineProperty(n,"pressed",{enumerable:!0,get:()=>rt(n,o),set(r=!1){L(n,o,r)}})};Object.values(this.elements.buttons).filter(Boolean).forEach(n=>{l.array(n)||l.nodeList(n)?Array.from(n).filter(Boolean).forEach(a):a(n)})}if(G.isEdge&&gi(s),this.config.tooltips.controls){const{classNames:a,selectors:n}=this.config,o=`${n.controls.wrapper} ${n.labels} .${a.hidden}`,r=Le.call(this,o);Array.from(r).forEach(h=>{L(h,this.config.classNames.hidden,!1),L(h,this.config.classNames.tooltip,!0)})}}};function Fi(e,i=!0){let t=e;if(i){const s=document.createElement("a");s.href=t,t=s.href}try{return new URL(t)}catch{return null}}function xi(e){const i=new URLSearchParams;return l.object(e)&&Object.entries(e).forEach(([t,s])=>{i.set(t,s)}),i}const B={setup(){if(!this.supported.ui)return;if(!this.isVideo||this.isYouTube||this.isHTML5&&!V.textTracks)return void(l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&k.setCaptionsMenu.call(this));if(l.element(this.elements.captions)||(this.elements.captions=M("div",ue(this.config.selectors.captions)),sn(this.elements.captions,this.elements.wrapper)),G.isIE&&window.URL){const s=this.media.querySelectorAll("track");Array.from(s).forEach(a=>{const n=a.getAttribute("src"),o=Fi(n);o!==null&&o.hostname!==window.location.href.hostname&&["http:","https:"].includes(o.protocol)&&Je(n,"blob").then(r=>{a.setAttribute("src",window.URL.createObjectURL(r))}).catch(()=>{we(a)})})}const e=St((navigator.languages||[navigator.language||navigator.userLanguage||"en"]).map(s=>s.split("-")[0]));let i=(this.storage.get("language")||this.config.captions.language||"auto").toLowerCase();i==="auto"&&([i]=e);let t=this.storage.get("captions");if(l.boolean(t)||({active:t}=this.config.captions),Object.assign(this.captions,{toggled:!1,active:t,language:i,languages:e}),this.isHTML5){const s=this.config.captions.update?"addtrack removetrack":"removetrack";O.call(this,this.media.textTracks,s,B.update.bind(this))}setTimeout(B.update.bind(this),0)},update(){const e=B.getTracks.call(this,!0),{active:i,language:t,meta:s,currentTrackNode:a}=this.captions,n=Boolean(e.find(o=>o.language===t));this.isHTML5&&this.isVideo&&e.filter(o=>!s.get(o)).forEach(o=>{this.debug.log("Track added",o),s.set(o,{default:o.mode==="showing"}),o.mode==="showing"&&(o.mode="hidden"),O.call(this,o,"cuechange",()=>B.updateCues.call(this))}),(n&&this.language!==t||!e.includes(a))&&(B.setLanguage.call(this,t),B.toggle.call(this,i&&n)),this.elements&&L(this.elements.container,this.config.classNames.captions.enabled,!l.empty(e)),l.array(this.config.controls)&&this.config.controls.includes("settings")&&this.config.settings.includes("captions")&&k.setCaptionsMenu.call(this)},toggle(e,i=!0){if(!this.supported.ui)return;const{toggled:t}=this.captions,s=this.config.classNames.captions.active,a=l.nullOrUndefined(e)?!t:e;if(a!==t){if(i||(this.captions.active=a,this.storage.set({captions:a})),!this.language&&a&&!i){const n=B.getTracks.call(this),o=B.findTrack.call(this,[this.captions.language,...this.captions.languages],!0);return this.captions.language=o.language,void B.set.call(this,n.indexOf(o))}this.elements.buttons.captions&&(this.elements.buttons.captions.pressed=a),L(this.elements.container,s,a),this.captions.toggled=a,k.updateSetting.call(this,"captions"),x.call(this,this.media,a?"captionsenabled":"captionsdisabled")}setTimeout(()=>{a&&this.captions.toggled&&(this.captions.currentTrackNode.mode="hidden")})},set(e,i=!0){const t=B.getTracks.call(this);if(e!==-1)if(l.number(e))if(e in t){if(this.captions.currentTrack!==e){this.captions.currentTrack=e;const s=t[e],{language:a}=s||{};this.captions.currentTrackNode=s,k.updateSetting.call(this,"captions"),i||(this.captions.language=a,this.storage.set({language:a})),this.isVimeo&&this.embed.enableTextTrack(a),x.call(this,this.media,"languagechange")}B.toggle.call(this,!0,i),this.isHTML5&&this.isVideo&&B.updateCues.call(this)}else this.debug.warn("Track not found",e);else this.debug.warn("Invalid caption argument",e);else B.toggle.call(this,!1,i)},setLanguage(e,i=!0){if(!l.string(e))return void this.debug.warn("Invalid language argument",e);const t=e.toLowerCase();this.captions.language=t;const s=B.getTracks.call(this),a=B.findTrack.call(this,[t]);B.set.call(this,s.indexOf(a),i)},getTracks(e=!1){return Array.from((this.media||{}).textTracks||[]).filter(i=>!this.isHTML5||e||this.captions.meta.has(i)).filter(i=>["captions","subtitles"].includes(i.kind))},findTrack(e,i=!1){const t=B.getTracks.call(this),s=o=>Number((this.captions.meta.get(o)||{}).default),a=Array.from(t).sort((o,r)=>s(r)-s(o));let n;return e.every(o=>(n=a.find(r=>r.language===o),!n)),n||(i?a[0]:void 0)},getCurrentTrack(){return B.getTracks.call(this)[this.currentTrack]},getLabel(e){let i=e;return!l.track(i)&&V.textTracks&&this.captions.toggled&&(i=B.getCurrentTrack.call(this)),l.track(i)?l.empty(i.label)?l.empty(i.language)?J.get("enabled",this.config):e.language.toUpperCase():i.label:J.get("disabled",this.config)},updateCues(e){if(!this.supported.ui)return;if(!l.element(this.elements.captions))return void this.debug.warn("No captions element to render to");if(!l.nullOrUndefined(e)&&!Array.isArray(e))return void this.debug.warn("updateCues: Invalid input",e);let i=e;if(!i){const s=B.getCurrentTrack.call(this);i=Array.from((s||{}).activeCues||[]).map(a=>a.getCueAsHTML()).map(pn)}const t=i.map(s=>s.trim()).join(` `);if(t!==this.elements.captions.innerHTML){lt(this.elements.captions);const s=M("span",ue(this.config.selectors.caption));s.innerHTML=t,this.elements.captions.appendChild(s),x.call(this,this.media,"cuechange")}}},Ni={enabled:!0,title:"",debug:!1,autoplay:!1,autopause:!0,playsinline:!0,seekTime:10,volume:1,muted:!1,duration:null,displayDuration:!0,invertTime:!0,toggleInvert:!0,ratio:null,clickToPlay:!0,hideControls:!0,resetOnEnd:!1,disableContextMenu:!0,loadSprite:!0,iconPrefix:"plyr",iconUrl:"https://cdn.plyr.io/3.6.9/plyr.svg",blankVideo:"https://cdn.plyr.io/static/blank.mp4",quality:{default:576,options:[4320,2880,2160,1440,1080,720,576,480,360,240],forced:!1,onChange:null},loop:{active:!1},speed:{selected:1,options:[.5,.75,1,1.25,1.5,1.75,2,4]},keyboard:{focused:!0,global:!1},tooltips:{controls:!1,seek:!0},captions:{active:!1,language:"auto",update:!1},fullscreen:{enabled:!0,fallback:!0,iosNative:!1},storage:{enabled:!0,key:"plyr"},controls:["play-large","play","progress","current-time","mute","volume","captions","settings","pip","airplay","fullscreen"],settings:["captions","quality","speed"],i18n:{restart:"Restart",rewind:"Rewind {seektime}s",play:"Play",pause:"Pause",fastForward:"Forward {seektime}s",seek:"Seek",seekLabel:"{currentTime} of {duration}",played:"Played",buffered:"Buffered",currentTime:"Current time",duration:"Duration",volume:"Volume",mute:"Mute",unmute:"Unmute",enableCaptions:"Enable captions",disableCaptions:"Disable captions",download:"Download",enterFullscreen:"Enter fullscreen",exitFullscreen:"Exit fullscreen",frameTitle:"Player for {title}",captions:"Captions",settings:"Settings",pip:"PIP",menuBack:"Go back to previous menu",speed:"Speed",normal:"Normal",quality:"Quality",loop:"Loop",start:"Start",end:"End",all:"All",reset:"Reset",disabled:"Disabled",enabled:"Enabled",advertisement:"Ad",qualityBadge:{2160:"4K",1440:"HD",1080:"HD",720:"HD",576:"SD",480:"SD"}},urls:{download:null,vimeo:{sdk:"https://player.vimeo.com/api/player.js",iframe:"https://player.vimeo.com/video/{0}?{1}",api:"https://vimeo.com/api/oembed.json?url={0}"},youtube:{sdk:"https://www.youtube.com/iframe_api",api:"https://noembed.com/embed?url=https://www.youtube.com/watch?v={0}"},googleIMA:{sdk:"https://imasdk.googleapis.com/js/sdkloader/ima3.js"}},listeners:{seek:null,play:null,pause:null,restart:null,rewind:null,fastForward:null,mute:null,volume:null,captions:null,download:null,fullscreen:null,pip:null,airplay:null,speed:null,quality:null,loop:null,language:null},events:["ended","progress","stalled","playing","waiting","canplay","canplaythrough","loadstart","loadeddata","loadedmetadata","timeupdate","volumechange","play","pause","error","seeking","seeked","emptied","ratechange","cuechange","download","enterfullscreen","exitfullscreen","captionsenabled","captionsdisabled","languagechange","controlshidden","controlsshown","ready","statechange","qualitychange","adsloaded","adscontentpause","adscontentresume","adstarted","adsmidpoint","adscomplete","adsallcomplete","adsimpression","adsclick"],selectors:{editable:"input, textarea, select, [contenteditable]",container:".plyr",controls:{container:null,wrapper:".plyr__controls"},labels:"[data-plyr]",buttons:{play:'[data-plyr="play"]',pause:'[data-plyr="pause"]',restart:'[data-plyr="restart"]',rewind:'[data-plyr="rewind"]',fastForward:'[data-plyr="fast-forward"]',mute:'[data-plyr="mute"]',captions:'[data-plyr="captions"]',download:'[data-plyr="download"]',fullscreen:'[data-plyr="fullscreen"]',pip:'[data-plyr="pip"]',airplay:'[data-plyr="airplay"]',settings:'[data-plyr="settings"]',loop:'[data-plyr="loop"]'},inputs:{seek:'[data-plyr="seek"]',volume:'[data-plyr="volume"]',speed:'[data-plyr="speed"]',language:'[data-plyr="language"]',quality:'[data-plyr="quality"]'},display:{currentTime:".plyr__time--current",duration:".plyr__time--duration",buffer:".plyr__progress__buffer",loop:".plyr__progress__loop",volume:".plyr__volume--display"},progress:".plyr__progress",captions:".plyr__captions",caption:".plyr__caption"},classNames:{type:"plyr--{0}",provider:"plyr--{0}",video:"plyr__video-wrapper",embed:"plyr__video-embed",videoFixedRatio:"plyr__video-wrapper--fixed-ratio",embedContainer:"plyr__video-embed__container",poster:"plyr__poster",posterEnabled:"plyr__poster-enabled",ads:"plyr__ads",control:"plyr__control",controlPressed:"plyr__control--pressed",playing:"plyr--playing",paused:"plyr--paused",stopped:"plyr--stopped",loading:"plyr--loading",hover:"plyr--hover",tooltip:"plyr__tooltip",cues:"plyr__cues",hidden:"plyr__sr-only",hideControls:"plyr--hide-controls",isIos:"plyr--is-ios",isTouch:"plyr--is-touch",uiSupported:"plyr--full-ui",noTransition:"plyr--no-transition",display:{time:"plyr__time"},menu:{value:"plyr__menu__value",badge:"plyr__badge",open:"plyr--menu-open"},captions:{enabled:"plyr--captions-enabled",active:"plyr--captions-active"},fullscreen:{enabled:"plyr--fullscreen-enabled",fallback:"plyr--fullscreen-fallback"},pip:{supported:"plyr--pip-supported",active:"plyr--pip-active"},airplay:{supported:"plyr--airplay-supported",active:"plyr--airplay-active"},tabFocus:"plyr__tab-focus",previewThumbnails:{thumbContainer:"plyr__preview-thumb",thumbContainerShown:"plyr__preview-thumb--is-shown",imageContainer:"plyr__preview-thumb__image-container",timeContainer:"plyr__preview-thumb__time-container",scrubbingContainer:"plyr__preview-scrubbing",scrubbingContainerShown:"plyr__preview-scrubbing--is-shown"}},attributes:{embed:{provider:"data-plyr-provider",id:"data-plyr-embed-id",hash:"data-plyr-embed-hash"}},ads:{enabled:!1,publisherId:"",tagUrl:""},previewThumbnails:{enabled:!1,src:""},vimeo:{byline:!1,portrait:!1,title:!1,speed:!0,transparent:!1,customControls:!0,referrerPolicy:null,premium:!1},youtube:{rel:0,showinfo:0,iv_load_policy:3,modestbranding:1,customControls:!0,noCookie:!1}},xt={active:"picture-in-picture",inactive:"inline"},Ae={html5:"html5",youtube:"youtube",vimeo:"vimeo"},Nt={audio:"audio",video:"video"};function fn(e){return/^(https?:\/\/)?(www\.)?(youtube\.com|youtube-nocookie\.com|youtu\.?be)\/.+$/.test(e)?Ae.youtube:/^https?:\/\/player.vimeo.com\/video\/\d{0,9}(?=\b|\/)/.test(e)?Ae.vimeo:null}const Mt=()=>{};class yn{constructor(i=!1){this.enabled=window.console&&i,this.enabled&&this.log("Debugging enabled")}get log(){return this.enabled?Function.prototype.bind.call(console.log,console):Mt}get warn(){return this.enabled?Function.prototype.bind.call(console.warn,console):Mt}get error(){return this.enabled?Function.prototype.bind.call(console.error,console):Mt}}class de{constructor(i){w(this,"onChange",()=>{if(!this.enabled)return;const t=this.player.elements.buttons.fullscreen;l.element(t)&&(t.pressed=this.active);const s=this.target===this.player.media?this.target:this.player.elements.container;x.call(this.player,s,this.active?"enterfullscreen":"exitfullscreen",!0)}),w(this,"toggleFallback",(t=!1)=>{if(t?this.scrollPosition={x:window.scrollX||0,y:window.scrollY||0}:window.scrollTo(this.scrollPosition.x,this.scrollPosition.y),document.body.style.overflow=t?"hidden":"",L(this.target,this.player.config.classNames.fullscreen.fallback,t),G.isIos){let s=document.head.querySelector('meta[name="viewport"]');const a="viewport-fit=cover";s||(s=document.createElement("meta"),s.setAttribute("name","viewport"));const n=l.string(s.content)&&s.content.includes(a);t?(this.cleanupViewport=!n,n||(s.content+=`,${a}`)):this.cleanupViewport&&(s.content=s.content.split(",").filter(o=>o.trim()!==a).join(","))}this.onChange()}),w(this,"trapFocus",t=>{if(G.isIos||!this.active||t.key!=="Tab"||t.keyCode!==9)return;const s=document.activeElement,a=Le.call(this.player,"a[href], button:not(:disabled), input:not(:disabled), [tabindex]"),[n]=a,o=a[a.length-1];s!==o||t.shiftKey?s===n&&t.shiftKey&&(o.focus(),t.preventDefault()):(n.focus(),t.preventDefault())}),w(this,"update",()=>{if(this.enabled){let t;t=this.forceFallback?"Fallback (forced)":de.native?"Native":"Fallback",this.player.debug.log(`${t} fullscreen enabled`)}else this.player.debug.log("Fullscreen not supported and fallback disabled");L(this.player.elements.container,this.player.config.classNames.fullscreen.enabled,this.enabled)}),w(this,"enter",()=>{this.enabled&&(G.isIos&&this.player.config.fullscreen.iosNative?this.player.isVimeo?this.player.embed.requestFullscreen():this.target.webkitEnterFullscreen():!de.native||this.forceFallback?this.toggleFallback(!0):this.prefix?l.empty(this.prefix)||this.target[`${this.prefix}Request${this.property}`]():this.target.requestFullscreen({navigationUI:"hide"}))}),w(this,"exit",()=>{if(this.enabled)if(G.isIos&&this.player.config.fullscreen.iosNative)this.target.webkitExitFullscreen(),ce(this.player.play());else if(!de.native||this.forceFallback)this.toggleFallback(!1);else if(this.prefix){if(!l.empty(this.prefix)){const t=this.prefix==="moz"?"Cancel":"Exit";document[`${this.prefix}${t}${this.property}`]()}}else(document.cancelFullScreen||document.exitFullscreen).call(document)}),w(this,"toggle",()=>{this.active?this.exit():this.enter()}),this.player=i,this.prefix=de.prefix,this.property=de.property,this.scrollPosition={x:0,y:0},this.forceFallback=i.config.fullscreen.fallback==="force",this.player.elements.fullscreen=i.config.fullscreen.container&&nn(this.player.elements.container,i.config.fullscreen.container),O.call(this.player,document,this.prefix==="ms"?"MSFullscreenChange":`${this.prefix}fullscreenchange`,()=>{this.onChange()}),O.call(this.player,this.player.elements.container,"dblclick",t=>{l.element(this.player.elements.controls)&&this.player.elements.controls.contains(t.target)||this.player.listeners.proxy(t,this.toggle,"fullscreen")}),O.call(this,this.player.elements.container,"keydown",t=>this.trapFocus(t)),this.update()}static get native(){return!!(document.fullscreenEnabled||document.webkitFullscreenEnabled||document.mozFullScreenEnabled||document.msFullscreenEnabled)}get usingNative(){return de.native&&!this.forceFallback}static get prefix(){if(l.function(document.exitFullscreen))return"";let i="";return["webkit","moz","ms"].some(t=>!(!l.function(document[`${t}ExitFullscreen`])&&!l.function(document[`${t}CancelFullScreen`]))&&(i=t,!0)),i}static get property(){return this.prefix==="moz"?"FullScreen":"Fullscreen"}get enabled(){return(de.native||this.player.config.fullscreen.fallback)&&this.player.config.fullscreen.enabled&&this.player.supported.ui&&this.player.isVideo}get active(){if(!this.enabled)return!1;if(!de.native||this.forceFallback)return rt(this.target,this.player.config.classNames.fullscreen.fallback);const i=this.prefix?this.target.getRootNode()[`${this.prefix}${this.property}Element`]:this.target.getRootNode().fullscreenElement;return i&&i.shadowRoot?i===this.target.getRootNode().host:i===this.target}get target(){return G.isIos&&this.player.config.fullscreen.iosNative?this.player.media:this.player.elements.fullscreen||this.player.elements.container}}function ht(e,i=1){return new Promise((t,s)=>{const a=new Image,n=()=>{delete a.onload,delete a.onerror,(a.naturalWidth>=i?t:s)(a)};Object.assign(a,{onload:n,onerror:n,src:e})})}const R={addStyleHook(){L(this.elements.container,this.config.selectors.container.replace(".",""),!0),L(this.elements.container,this.config.classNames.uiSupported,this.supported.ui)},toggleNativeControls(e=!1){e&&this.isHTML5?this.media.setAttribute("controls",""):this.media.removeAttribute("controls")},build(){if(this.listeners.media(),!this.supported.ui)return this.debug.warn(`Basic support only for ${this.provider} ${this.type}`),void R.toggleNativeControls.call(this,!0);l.element(this.elements.controls)||(k.inject.call(this),this.listeners.controls()),R.toggleNativeControls.call(this),this.isHTML5&&B.setup.call(this),this.volume=null,this.muted=null,this.loop=null,this.quality=null,this.speed=null,k.updateVolume.call(this),k.timeUpdate.call(this),k.durationUpdate.call(this),R.checkPlaying.call(this),L(this.elements.container,this.config.classNames.pip.supported,V.pip&&this.isHTML5&&this.isVideo),L(this.elements.container,this.config.classNames.airplay.supported,V.airplay&&this.isHTML5),L(this.elements.container,this.config.classNames.isIos,G.isIos),L(this.elements.container,this.config.classNames.isTouch,this.touch),this.ready=!0,setTimeout(()=>{x.call(this,this.media,"ready")},0),R.setTitle.call(this),this.poster&&R.setPoster.call(this,this.poster,!1).catch(()=>{}),this.config.duration&&k.durationUpdate.call(this)},setTitle(){let e=J.get("play",this.config);if(l.string(this.config.title)&&!l.empty(this.config.title)&&(e+=`, ${this.config.title}`),Array.from(this.elements.buttons.play||[]).forEach(i=>{i.setAttribute("aria-label",e)}),this.isEmbed){const i=Y.call(this,"iframe");if(!l.element(i))return;const t=l.empty(this.config.title)?"video":this.config.title,s=J.get("frameTitle",this.config);i.setAttribute("title",s.replace("{title}",t))}},togglePoster(e){L(this.elements.container,this.config.classNames.posterEnabled,e)},setPoster(e,i=!0){return i&&this.poster?Promise.reject(new Error("Poster already set")):(this.media.setAttribute("data-poster",e),this.elements.poster.removeAttribute("hidden"),on.call(this).then(()=>ht(e)).catch(t=>{throw e===this.poster&&R.togglePoster.call(this,!1),t}).then(()=>{if(e!==this.poster)throw new Error("setPoster cancelled by later call to setPoster")}).then(()=>(Object.assign(this.elements.poster.style,{backgroundImage:`url('${e}')`,backgroundSize:""}),R.togglePoster.call(this,!0),e)))},checkPlaying(e){L(this.elements.container,this.config.classNames.playing,this.playing),L(this.elements.container,this.config.classNames.paused,this.paused),L(this.elements.container,this.config.classNames.stopped,this.stopped),Array.from(this.elements.buttons.play||[]).forEach(i=>{Object.assign(i,{pressed:this.playing}),i.setAttribute("aria-label",J.get(this.playing?"pause":"play",this.config))}),l.event(e)&&e.type==="timeupdate"||R.toggleControls.call(this)},checkLoading(e){this.loading=["stalled","waiting"].includes(e.type),clearTimeout(this.timers.loading),this.timers.loading=setTimeout(()=>{L(this.elements.container,this.config.classNames.loading,this.loading),R.toggleControls.call(this)},this.loading?250:0)},toggleControls(e){const{controls:i}=this.elements;if(i&&this.config.hideControls){const t=this.touch&&this.lastSeekTime+2e3>Date.now();this.toggleControls(Boolean(e||this.loading||this.paused||i.pressed||i.hover||t))}},migrateStyles(){Object.values(Se({},this.media.style)).filter(e=>!l.empty(e)&&l.string(e)&&e.startsWith("--plyr")).forEach(e=>{this.elements.container.style.setProperty(e,this.media.style.getPropertyValue(e)),this.media.style.removeProperty(e)}),l.empty(this.media.style)&&this.media.removeAttribute("style")}};class bn{constructor(i){w(this,"firstTouch",()=>{const{player:t}=this,{elements:s}=t;t.touch=!0,L(s.container,t.config.classNames.isTouch,!0)}),w(this,"setTabFocus",t=>{const{player:s}=this,{elements:a}=s;if(clearTimeout(this.focusTimer),t.type==="keydown"&&t.which!==9)return;t.type==="keydown"&&(this.lastKeyDown=t.timeStamp);const n=t.timeStamp-this.lastKeyDown<=20;(t.type!=="focus"||n)&&((()=>{const o=s.config.classNames.tabFocus;L(Le.call(s,`.${o}`),o,!1)})(),t.type!=="focusout"&&(this.focusTimer=setTimeout(()=>{const o=document.activeElement;a.container.contains(o)&&L(document.activeElement,s.config.classNames.tabFocus,!0)},10)))}),w(this,"global",(t=!0)=>{const{player:s}=this;s.config.keyboard.global&&Oe.call(s,window,"keydown keyup",this.handleKey,t,!1),Oe.call(s,document.body,"click",this.toggleMenu,t),_t.call(s,document.body,"touchstart",this.firstTouch),Oe.call(s,document.body,"keydown focus blur focusout",this.setTabFocus,t,!1,!0)}),w(this,"container",()=>{const{player:t}=this,{config:s,elements:a,timers:n}=t;!s.keyboard.global&&s.keyboard.focused&&O.call(t,a.container,"keydown keyup",this.handleKey,!1),O.call(t,a.container,"mousemove mouseleave touchstart touchmove enterfullscreen exitfullscreen",h=>{const{controls:d}=a;d&&h.type==="enterfullscreen"&&(d.pressed=!1,d.hover=!1);let v=0;["touchstart","touchmove","mousemove"].includes(h.type)&&(R.toggleControls.call(t,!0),v=t.touch?3e3:2e3),clearTimeout(n.controls),n.controls=setTimeout(()=>R.toggleControls.call(t,!1),v)});const o=()=>{if(!t.isVimeo||t.config.vimeo.premium)return;const h=a.wrapper,{active:d}=t.fullscreen,[v,T]=Pt.call(t),b=ki(`aspect-ratio: ${v} / ${T}`);if(!d)return void(b?(h.style.width=null,h.style.height=null):(h.style.maxWidth=null,h.style.margin=null));const[_,A]=rn(),C=_/A>v/T;b?(h.style.width=C?"auto":"100%",h.style.height=C?"100%":"auto"):(h.style.maxWidth=C?A/T*v+"px":null,h.style.margin=C?"0 auto":null)},r=()=>{clearTimeout(n.resized),n.resized=setTimeout(o,50)};O.call(t,a.container,"enterfullscreen exitfullscreen",h=>{const{target:d}=t.fullscreen;d===a.container&&(!t.isEmbed&&l.empty(t.config.ratio)||(o(),(h.type==="enterfullscreen"?O:ut).call(t,window,"resize",r)))})}),w(this,"media",()=>{const{player:t}=this,{elements:s}=t;if(O.call(t,t.media,"timeupdate seeking seeked",n=>k.timeUpdate.call(t,n)),O.call(t,t.media,"durationchange loadeddata loadedmetadata",n=>k.durationUpdate.call(t,n)),O.call(t,t.media,"ended",()=>{t.isHTML5&&t.isVideo&&t.config.resetOnEnd&&(t.restart(),t.pause())}),O.call(t,t.media,"progress playing seeking seeked",n=>k.updateProgress.call(t,n)),O.call(t,t.media,"volumechange",n=>k.updateVolume.call(t,n)),O.call(t,t.media,"playing play pause ended emptied timeupdate",n=>R.checkPlaying.call(t,n)),O.call(t,t.media,"waiting canplay seeked playing",n=>R.checkLoading.call(t,n)),t.supported.ui&&t.config.clickToPlay&&!t.isAudio){const n=Y.call(t,`.${t.config.classNames.video}`);if(!l.element(n))return;O.call(t,s.container,"click",o=>{([s.container,n].includes(o.target)||n.contains(o.target))&&(t.touch&&t.config.hideControls||(t.ended?(this.proxy(o,t.restart,"restart"),this.proxy(o,()=>{ce(t.play())},"play")):this.proxy(o,()=>{ce(t.togglePlay())},"play")))})}t.supported.ui&&t.config.disableContextMenu&&O.call(t,s.wrapper,"contextmenu",n=>{n.preventDefault()},!1),O.call(t,t.media,"volumechange",()=>{t.storage.set({volume:t.volume,muted:t.muted})}),O.call(t,t.media,"ratechange",()=>{k.updateSetting.call(t,"speed"),t.storage.set({speed:t.speed})}),O.call(t,t.media,"qualitychange",n=>{k.updateSetting.call(t,"quality",null,n.detail.quality)}),O.call(t,t.media,"ready qualitychange",()=>{k.setDownloadUrl.call(t)});const a=t.config.events.concat(["keyup","keydown"]).join(" ");O.call(t,t.media,a,n=>{let{detail:o={}}=n;n.type==="error"&&(o=t.media.error),x.call(t,s.container,n.type,!0,o)})}),w(this,"proxy",(t,s,a)=>{const{player:n}=this,o=n.config.listeners[a];let r=!0;l.function(o)&&(r=o.call(n,t)),r!==!1&&l.function(s)&&s.call(n,t)}),w(this,"bind",(t,s,a,n,o=!0)=>{const{player:r}=this,h=r.config.listeners[n],d=l.function(h);O.call(r,t,s,v=>this.proxy(v,a,n),o&&!d)}),w(this,"controls",()=>{const{player:t}=this,{elements:s}=t,a=G.isIE?"change":"input";if(s.buttons.play&&Array.from(s.buttons.play).forEach(n=>{this.bind(n,"click",()=>{ce(t.togglePlay())},"play")}),this.bind(s.buttons.restart,"click",t.restart,"restart"),this.bind(s.buttons.rewind,"click",()=>{t.lastSeekTime=Date.now(),t.rewind()},"rewind"),this.bind(s.buttons.fastForward,"click",()=>{t.lastSeekTime=Date.now(),t.forward()},"fastForward"),this.bind(s.buttons.mute,"click",()=>{t.muted=!t.muted},"mute"),this.bind(s.buttons.captions,"click",()=>t.toggleCaptions()),this.bind(s.buttons.download,"click",()=>{x.call(t,t.media,"download")},"download"),this.bind(s.buttons.fullscreen,"click",()=>{t.fullscreen.toggle()},"fullscreen"),this.bind(s.buttons.pip,"click",()=>{t.pip="toggle"},"pip"),this.bind(s.buttons.airplay,"click",t.airplay,"airplay"),this.bind(s.buttons.settings,"click",n=>{n.stopPropagation(),n.preventDefault(),k.toggleMenu.call(t,n)},null,!1),this.bind(s.buttons.settings,"keyup",n=>{const o=n.which;[13,32].includes(o)&&(o!==13?(n.preventDefault(),n.stopPropagation(),k.toggleMenu.call(t,n)):k.focusFirstMenuItem.call(t,null,!0))},null,!1),this.bind(s.settings.menu,"keydown",n=>{n.which===27&&k.toggleMenu.call(t,n)}),this.bind(s.inputs.seek,"mousedown mousemove",n=>{const o=s.progress.getBoundingClientRect(),r=100/o.width*(n.pageX-o.left);n.currentTarget.setAttribute("seek-value",r)}),this.bind(s.inputs.seek,"mousedown mouseup keydown keyup touchstart touchend",n=>{const o=n.currentTarget,r=n.keyCode?n.keyCode:n.which,h="play-on-seeked";if(l.keyboardEvent(n)&&r!==39&&r!==37)return;t.lastSeekTime=Date.now();const d=o.hasAttribute(h),v=["mouseup","touchend","keyup"].includes(n.type);d&&v?(o.removeAttribute(h),ce(t.play())):!v&&t.playing&&(o.setAttribute(h,""),t.pause())}),G.isIos){const n=Le.call(t,'input[type="range"]');Array.from(n).forEach(o=>this.bind(o,a,r=>gi(r.target)))}this.bind(s.inputs.seek,a,n=>{const o=n.currentTarget;let r=o.getAttribute("seek-value");l.empty(r)&&(r=o.value),o.removeAttribute("seek-value"),t.currentTime=r/o.max*t.duration},"seek"),this.bind(s.progress,"mouseenter mouseleave mousemove",n=>k.updateSeekTooltip.call(t,n)),this.bind(s.progress,"mousemove touchmove",n=>{const{previewThumbnails:o}=t;o&&o.loaded&&o.startMove(n)}),this.bind(s.progress,"mouseleave touchend click",()=>{const{previewThumbnails:n}=t;n&&n.loaded&&n.endMove(!1,!0)}),this.bind(s.progress,"mousedown touchstart",n=>{const{previewThumbnails:o}=t;o&&o.loaded&&o.startScrubbing(n)}),this.bind(s.progress,"mouseup touchend",n=>{const{previewThumbnails:o}=t;o&&o.loaded&&o.endScrubbing(n)}),G.isWebkit&&Array.from(Le.call(t,'input[type="range"]')).forEach(n=>{this.bind(n,"input",o=>k.updateRangeFill.call(t,o.target))}),t.config.toggleInvert&&!l.element(s.display.duration)&&this.bind(s.display.currentTime,"click",()=>{t.currentTime!==0&&(t.config.invertTime=!t.config.invertTime,k.timeUpdate.call(t))}),this.bind(s.inputs.volume,a,n=>{t.volume=n.target.value},"volume"),this.bind(s.controls,"mouseenter mouseleave",n=>{s.controls.hover=!t.touch&&n.type==="mouseenter"}),s.fullscreen&&Array.from(s.fullscreen.children).filter(n=>!n.contains(s.container)).forEach(n=>{this.bind(n,"mouseenter mouseleave",o=>{s.controls&&(s.controls.hover=!t.touch&&o.type==="mouseenter")})}),this.bind(s.controls,"mousedown mouseup touchstart touchend touchcancel",n=>{s.controls.pressed=["mousedown","touchstart"].includes(n.type)}),this.bind(s.controls,"focusin",()=>{const{config:n,timers:o}=t;L(s.controls,n.classNames.noTransition,!0),R.toggleControls.call(t,!0),setTimeout(()=>{L(s.controls,n.classNames.noTransition,!1)},0);const r=this.touch?3e3:4e3;clearTimeout(o.controls),o.controls=setTimeout(()=>R.toggleControls.call(t,!1),r)}),this.bind(s.inputs.volume,"wheel",n=>{const o=n.webkitDirectionInvertedFromDevice,[r,h]=[n.deltaX,-n.deltaY].map(T=>o?-T:T),d=Math.sign(Math.abs(r)>Math.abs(h)?r:h);t.increaseVolume(d/50);const{volume:v}=t.media;(d===1&&v<1||d===-1&&v>0)&&n.preventDefault()},"volume",!1)}),this.player=i,this.lastKey=null,this.focusTimer=null,this.lastKeyDown=null,this.handleKey=this.handleKey.bind(this),this.toggleMenu=this.toggleMenu.bind(this),this.setTabFocus=this.setTabFocus.bind(this),this.firstTouch=this.firstTouch.bind(this)}handleKey(i){const{player:t}=this,{elements:s}=t,a=i.keyCode?i.keyCode:i.which,n=i.type==="keydown",o=n&&a===this.lastKey;if(!(i.altKey||i.ctrlKey||i.metaKey||i.shiftKey)&&!!l.number(a))if(n){const r=document.activeElement;if(l.element(r)){const{editable:h}=t.config.selectors,{seek:d}=s.inputs;if(r!==d&&Me(r,h)||i.which===32&&Me(r,'button, [role^="menuitem"]'))return}switch([32,37,38,39,40,48,49,50,51,52,53,54,56,57,67,70,73,75,76,77,79].includes(a)&&(i.preventDefault(),i.stopPropagation()),a){case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:o||(t.currentTime=t.duration/10*(a-48));break;case 32:case 75:o||ce(t.togglePlay());break;case 38:t.increaseVolume(.1);break;case 40:t.decreaseVolume(.1);break;case 77:o||(t.muted=!t.muted);break;case 39:t.forward();break;case 37:t.rewind();break;case 70:t.fullscreen.toggle();break;case 67:o||t.toggleCaptions();break;case 76:t.loop=!t.loop}a===27&&!t.fullscreen.usingNative&&t.fullscreen.active&&t.fullscreen.toggle(),this.lastKey=a}else this.lastKey=null}toggleMenu(i){k.toggleMenu.call(this.player,i)}}function vn(e,i){return e(i={exports:{}},i.exports),i.exports}var wn=vn(function(e,i){e.exports=function(){var t=function(){},s={},a={},n={};function o(b,_){b=b.push?b:[b];var A,C,N,E=[],$=b.length,f=$;for(A=function(F,j){j.length&&E.push(F),--f||_(E)};$--;)C=b[$],(N=a[C])?A(C,N):(n[C]=n[C]||[]).push(A)}function r(b,_){if(b){var A=n[b];if(a[b]=_,A)for(;A.length;)A[0](b,_),A.splice(0,1)}}function h(b,_){b.call&&(b={success:b}),_.length?(b.error||t)(_):(b.success||t)(b)}function d(b,_,A,C){var N,E,$=document,f=A.async,F=(A.numRetries||0)+1,j=A.before||t,z=b.replace(/[\?|#].*$/,""),W=b.replace(/^(css|img)!/,"");C=C||0,/(^css!|\.css$)/.test(z)?((E=$.createElement("link")).rel="stylesheet",E.href=W,(N="hideFocus"in E)&&E.relList&&(N=0,E.rel="preload",E.as="style")):/(^img!|\.(png|gif|jpg|svg|webp)$)/.test(z)?(E=$.createElement("img")).src=W:((E=$.createElement("script")).src=b,E.async=f===void 0||f),E.onload=E.onerror=E.onbeforeload=function(Z){var ie=Z.type[0];if(N)try{E.sheet.cssText.length||(ie="e")}catch(ke){ke.code!=18&&(ie="e")}if(ie=="e"){if((C+=1){wn(e,{success:i,error:t})})}function kn(e){return l.empty(e)?null:l.number(Number(e))?e:e.match(/^.*(vimeo.com\/|video\/)(\d+).*/)?RegExp.$2:e}function Tn(e){const i=e.match(/^.*(?:vimeo.com\/|video\/)(?:\d+)(?:\?.*&*h=|\/)+(?[\d,a-f]+)/);return i?i.groups.hash:null}function Ge(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,x.call(this,this.media,e?"play":"pause"))}const $t={setup(){const e=this;L(e.elements.wrapper,e.config.classNames.embed,!0),e.options.speed=e.config.speed.options,Be.call(e),l.object(window.Vimeo)?$t.ready.call(e):Dt(e.config.urls.vimeo.sdk).then(()=>{$t.ready.call(e)}).catch(i=>{e.debug.warn("Vimeo SDK (player.js) failed to load",i)})},ready(){const e=this,i=e.config.vimeo,$=i,{premium:t,referrerPolicy:s}=$,a=Wt($,["premium","referrerPolicy"]);let n=e.media.getAttribute("src"),o="";l.empty(n)?(n=e.media.getAttribute(e.config.attributes.embed.id),o=e.media.getAttribute(e.config.attributes.embed.hash)):o=Tn(n);const r=o?{h:o}:{};t&&Object.assign(a,{controls:!1,sidedock:!1});const h=xi(Se(Se({loop:e.config.loop.active,autoplay:e.autoplay,muted:e.muted,gesture:"media",playsinline:!this.config.fullscreen.iosNative},r),a)),d=kn(n),v=M("iframe"),T=Ft(e.config.urls.vimeo.iframe,d,h);if(v.setAttribute("src",T),v.setAttribute("allowfullscreen",""),v.setAttribute("allow",["autoplay","fullscreen","picture-in-picture","encrypted-media","accelerometer","gyroscope"].join("; ")),l.empty(s)||v.setAttribute("referrerPolicy",s),t||!i.customControls)v.setAttribute("data-poster",e.poster),e.media=ot(v,e.media);else{const f=M("div",{class:e.config.classNames.embedContainer,"data-poster":e.poster});f.appendChild(v),e.media=ot(f,e.media)}i.customControls||Je(Ft(e.config.urls.vimeo.api,T)).then(f=>{!l.empty(f)&&f.thumbnail_url&&R.setPoster.call(e,f.thumbnail_url).catch(()=>{})}),e.embed=new window.Vimeo.Player(v,{autopause:e.config.autopause,muted:e.muted}),e.media.paused=!0,e.media.currentTime=0,e.supported.ui&&e.embed.disableTextTrack(),e.media.play=()=>(Ge.call(e,!0),e.embed.play()),e.media.pause=()=>(Ge.call(e,!1),e.embed.pause()),e.media.stop=()=>{e.pause(),e.currentTime=0};let{currentTime:b}=e.media;Object.defineProperty(e.media,"currentTime",{get:()=>b,set(f){const{embed:F,media:j,paused:z,volume:W}=e,Z=z&&!F.hasPlayed;j.seeking=!0,x.call(e,j,"seeking"),Promise.resolve(Z&&F.setVolume(0)).then(()=>F.setCurrentTime(f)).then(()=>Z&&F.pause()).then(()=>Z&&F.setVolume(W)).catch(()=>{})}});let _=e.config.speed.selected;Object.defineProperty(e.media,"playbackRate",{get:()=>_,set(f){e.embed.setPlaybackRate(f).then(()=>{_=f,x.call(e,e.media,"ratechange")}).catch(()=>{e.options.speed=[1]})}});let{volume:A}=e.config;Object.defineProperty(e.media,"volume",{get:()=>A,set(f){e.embed.setVolume(f).then(()=>{A=f,x.call(e,e.media,"volumechange")})}});let{muted:C}=e.config;Object.defineProperty(e.media,"muted",{get:()=>C,set(f){const F=!!l.boolean(f)&&f;e.embed.setVolume(F?0:e.config.volume).then(()=>{C=F,x.call(e,e.media,"volumechange")})}});let N,{loop:E}=e.config;Object.defineProperty(e.media,"loop",{get:()=>E,set(f){const F=l.boolean(f)?f:e.config.loop.active;e.embed.setLoop(F).then(()=>{E=F})}}),e.embed.getVideoUrl().then(f=>{N=f,k.setDownloadUrl.call(e)}).catch(f=>{this.debug.warn(f)}),Object.defineProperty(e.media,"currentSrc",{get:()=>N}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration}),Promise.all([e.embed.getVideoWidth(),e.embed.getVideoHeight()]).then(f=>{const[F,j]=f;e.embed.ratio=Ei(F,j),Be.call(this)}),e.embed.setAutopause(e.config.autopause).then(f=>{e.config.autopause=f}),e.embed.getVideoTitle().then(f=>{e.config.title=f,R.setTitle.call(this)}),e.embed.getCurrentTime().then(f=>{b=f,x.call(e,e.media,"timeupdate")}),e.embed.getDuration().then(f=>{e.media.duration=f,x.call(e,e.media,"durationchange")}),e.embed.getTextTracks().then(f=>{e.media.textTracks=f,B.setup.call(e)}),e.embed.on("cuechange",({cues:f=[]})=>{const F=f.map(j=>mn(j.text));B.updateCues.call(e,F)}),e.embed.on("loaded",()=>{e.embed.getPaused().then(f=>{Ge.call(e,!f),f||x.call(e,e.media,"playing")}),l.element(e.embed.element)&&e.supported.ui&&e.embed.element.setAttribute("tabindex",-1)}),e.embed.on("bufferstart",()=>{x.call(e,e.media,"waiting")}),e.embed.on("bufferend",()=>{x.call(e,e.media,"playing")}),e.embed.on("play",()=>{Ge.call(e,!0),x.call(e,e.media,"playing")}),e.embed.on("pause",()=>{Ge.call(e,!1)}),e.embed.on("timeupdate",f=>{e.media.seeking=!1,b=f.seconds,x.call(e,e.media,"timeupdate")}),e.embed.on("progress",f=>{e.media.buffered=f.percent,x.call(e,e.media,"progress"),parseInt(f.percent,10)===1&&x.call(e,e.media,"canplaythrough"),e.embed.getDuration().then(F=>{F!==e.media.duration&&(e.media.duration=F,x.call(e,e.media,"durationchange"))})}),e.embed.on("seeked",()=>{e.media.seeking=!1,x.call(e,e.media,"seeked")}),e.embed.on("ended",()=>{e.media.paused=!0,x.call(e,e.media,"ended")}),e.embed.on("error",f=>{e.media.error=f,x.call(e,e.media,"error")}),i.customControls&&setTimeout(()=>R.build.call(e),0)}};function Cn(e){return l.empty(e)?null:e.match(/^.*(youtu.be\/|v\/|u\/\w\/|embed\/|watch\?v=|&v=)([^#&?]*).*/)?RegExp.$2:e}function Qe(e){e&&!this.embed.hasPlayed&&(this.embed.hasPlayed=!0),this.media.paused===e&&(this.media.paused=!e,x.call(this,this.media,e?"play":"pause"))}function En(e){return e.noCookie?"https://www.youtube-nocookie.com":window.location.protocol==="http:"?"http://www.youtube.com":void 0}const mt={setup(){if(L(this.elements.wrapper,this.config.classNames.embed,!0),l.object(window.YT)&&l.function(window.YT.Player))mt.ready.call(this);else{const e=window.onYouTubeIframeAPIReady;window.onYouTubeIframeAPIReady=()=>{l.function(e)&&e(),mt.ready.call(this)},Dt(this.config.urls.youtube.sdk).catch(i=>{this.debug.warn("YouTube API failed to load",i)})}},getTitle(e){Je(Ft(this.config.urls.youtube.api,e)).then(i=>{if(l.object(i)){const{title:t,height:s,width:a}=i;this.config.title=t,R.setTitle.call(this),this.embed.ratio=Ei(a,s)}Be.call(this)}).catch(()=>{Be.call(this)})},ready(){const e=this,i=e.config.youtube,t=e.media&&e.media.getAttribute("id");if(!l.empty(t)&&t.startsWith("youtube-"))return;let s=e.media.getAttribute("src");l.empty(s)&&(s=e.media.getAttribute(this.config.attributes.embed.id));const a=Cn(s),n=M("div",{id:un(e.provider),"data-poster":i.customControls?e.poster:void 0});if(e.media=ot(n,e.media),i.customControls){const o=r=>`https://i.ytimg.com/vi/${a}/${r}default.jpg`;ht(o("maxres"),121).catch(()=>ht(o("sd"),121)).catch(()=>ht(o("hq"))).then(r=>R.setPoster.call(e,r.src)).then(r=>{r.includes("maxres")||(e.elements.poster.style.backgroundSize="cover")}).catch(()=>{})}e.embed=new window.YT.Player(e.media,{videoId:a,host:En(i),playerVars:K({},{autoplay:e.config.autoplay?1:0,hl:e.config.hl,controls:e.supported.ui&&i.customControls?0:1,disablekb:1,playsinline:e.config.fullscreen.iosNative?0:1,cc_load_policy:e.captions.active?1:0,cc_lang_pref:e.config.captions.language,widget_referrer:window?window.location.href:null},i),events:{onError(o){if(!e.media.error){const r=o.data,h={2:"The request contains an invalid parameter value. For example, this error occurs if you specify a video ID that does not have 11 characters, or if the video ID contains invalid characters, such as exclamation points or asterisks.",5:"The requested content cannot be played in an HTML5 player or another error related to the HTML5 player has occurred.",100:"The video requested was not found. This error occurs when a video has been removed (for any reason) or has been marked as private.",101:"The owner of the requested video does not allow it to be played in embedded players.",150:"The owner of the requested video does not allow it to be played in embedded players."}[r]||"An unknown error occured";e.media.error={code:r,message:h},x.call(e,e.media,"error")}},onPlaybackRateChange(o){const r=o.target;e.media.playbackRate=r.getPlaybackRate(),x.call(e,e.media,"ratechange")},onReady(o){if(l.function(e.media.play))return;const r=o.target;mt.getTitle.call(e,a),e.media.play=()=>{Qe.call(e,!0),r.playVideo()},e.media.pause=()=>{Qe.call(e,!1),r.pauseVideo()},e.media.stop=()=>{r.stopVideo()},e.media.duration=r.getDuration(),e.media.paused=!0,e.media.currentTime=0,Object.defineProperty(e.media,"currentTime",{get:()=>Number(r.getCurrentTime()),set(T){e.paused&&!e.embed.hasPlayed&&e.embed.mute(),e.media.seeking=!0,x.call(e,e.media,"seeking"),r.seekTo(T)}}),Object.defineProperty(e.media,"playbackRate",{get:()=>r.getPlaybackRate(),set(T){r.setPlaybackRate(T)}});let{volume:h}=e.config;Object.defineProperty(e.media,"volume",{get:()=>h,set(T){h=T,r.setVolume(100*h),x.call(e,e.media,"volumechange")}});let{muted:d}=e.config;Object.defineProperty(e.media,"muted",{get:()=>d,set(T){const b=l.boolean(T)?T:d;d=b,r[b?"mute":"unMute"](),r.setVolume(100*h),x.call(e,e.media,"volumechange")}}),Object.defineProperty(e.media,"currentSrc",{get:()=>r.getVideoUrl()}),Object.defineProperty(e.media,"ended",{get:()=>e.currentTime===e.duration});const v=r.getAvailablePlaybackRates();e.options.speed=v.filter(T=>e.config.speed.options.includes(T)),e.supported.ui&&i.customControls&&e.media.setAttribute("tabindex",-1),x.call(e,e.media,"timeupdate"),x.call(e,e.media,"durationchange"),clearInterval(e.timers.buffering),e.timers.buffering=setInterval(()=>{e.media.buffered=r.getVideoLoadedFraction(),(e.media.lastBuffered===null||e.media.lastBufferedR.build.call(e),50)},onStateChange(o){const r=o.target;switch(clearInterval(e.timers.playing),e.media.seeking&&[1,2].includes(o.data)&&(e.media.seeking=!1,x.call(e,e.media,"seeked")),o.data){case-1:x.call(e,e.media,"timeupdate"),e.media.buffered=r.getVideoLoadedFraction(),x.call(e,e.media,"progress");break;case 0:Qe.call(e,!1),e.media.loop?(r.stopVideo(),r.playVideo()):x.call(e,e.media,"ended");break;case 1:i.customControls&&!e.config.autoplay&&e.media.paused&&!e.embed.hasPlayed?e.media.pause():(Qe.call(e,!0),x.call(e,e.media,"playing"),e.timers.playing=setInterval(()=>{x.call(e,e.media,"timeupdate")},50),e.media.duration!==r.getDuration()&&(e.media.duration=r.getDuration(),x.call(e,e.media,"durationchange")));break;case 2:e.muted||e.embed.unMute(),Qe.call(e,!1);break;case 3:x.call(e,e.media,"waiting")}x.call(e,e.elements.container,"statechange",!1,{code:o.data})}}})}},Mi={setup(){this.media?(L(this.elements.container,this.config.classNames.type.replace("{0}",this.type),!0),L(this.elements.container,this.config.classNames.provider.replace("{0}",this.provider),!0),this.isEmbed&&L(this.elements.container,this.config.classNames.type.replace("{0}","video"),!0),this.isVideo&&(this.elements.wrapper=M("div",{class:this.config.classNames.video}),yi(this.media,this.elements.wrapper),this.elements.poster=M("div",{class:this.config.classNames.poster}),this.elements.wrapper.appendChild(this.elements.poster)),this.isHTML5?Ee.setup.call(this):this.isYouTube?mt.setup.call(this):this.isVimeo&&$t.setup.call(this)):this.debug.warn("No media element found!")}};class An{constructor(i){w(this,"load",()=>{this.enabled&&(l.object(window.google)&&l.object(window.google.ima)?this.ready():Dt(this.player.config.urls.googleIMA.sdk).then(()=>{this.ready()}).catch(()=>{this.trigger("error",new Error("Google IMA SDK failed to load"))}))}),w(this,"ready",()=>{var t;this.enabled||((t=this).manager&&t.manager.destroy(),t.elements.displayContainer&&t.elements.displayContainer.destroy(),t.elements.container.remove()),this.startSafetyTimer(12e3,"ready()"),this.managerPromise.then(()=>{this.clearSafetyTimer("onAdsManagerLoaded()")}),this.listeners(),this.setupIMA()}),w(this,"setupIMA",()=>{this.elements.container=M("div",{class:this.player.config.classNames.ads}),this.player.elements.container.appendChild(this.elements.container),google.ima.settings.setVpaidMode(google.ima.ImaSdkSettings.VpaidMode.ENABLED),google.ima.settings.setLocale(this.player.config.ads.language),google.ima.settings.setDisableCustomPlaybackForIOS10Plus(this.player.config.playsinline),this.elements.displayContainer=new google.ima.AdDisplayContainer(this.elements.container,this.player.media),this.loader=new google.ima.AdsLoader(this.elements.displayContainer),this.loader.addEventListener(google.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,t=>this.onAdsManagerLoaded(t),!1),this.loader.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,t=>this.onAdError(t),!1),this.requestAds()}),w(this,"requestAds",()=>{const{container:t}=this.player.elements;try{const s=new google.ima.AdsRequest;s.adTagUrl=this.tagUrl,s.linearAdSlotWidth=t.offsetWidth,s.linearAdSlotHeight=t.offsetHeight,s.nonLinearAdSlotWidth=t.offsetWidth,s.nonLinearAdSlotHeight=t.offsetHeight,s.forceNonLinearFullSlot=!1,s.setAdWillPlayMuted(!this.player.muted),this.loader.requestAds(s)}catch(s){this.onAdError(s)}}),w(this,"pollCountdown",(t=!1)=>{if(!t)return clearInterval(this.countdownTimer),void this.elements.container.removeAttribute("data-badge-text");this.countdownTimer=setInterval(()=>{const s=dt(Math.max(this.manager.getRemainingTime(),0)),a=`${J.get("advertisement",this.player.config)} - ${s}`;this.elements.container.setAttribute("data-badge-text",a)},100)}),w(this,"onAdsManagerLoaded",t=>{if(!this.enabled)return;const s=new google.ima.AdsRenderingSettings;s.restoreCustomPlaybackStateOnAdBreakComplete=!0,s.enablePreloading=!0,this.manager=t.getAdsManager(this.player,s),this.cuePoints=this.manager.getCuePoints(),this.manager.addEventListener(google.ima.AdErrorEvent.Type.AD_ERROR,a=>this.onAdError(a)),Object.keys(google.ima.AdEvent.Type).forEach(a=>{this.manager.addEventListener(google.ima.AdEvent.Type[a],n=>this.onAdEvent(n))}),this.trigger("loaded")}),w(this,"addCuePoints",()=>{l.empty(this.cuePoints)||this.cuePoints.forEach(t=>{if(t!==0&&t!==-1&&t{const{container:s}=this.player.elements,a=t.getAd(),n=t.getAdData();switch((o=>{x.call(this.player,this.player.media,`ads${o.replace(/_/g,"").toLowerCase()}`)})(t.type),t.type){case google.ima.AdEvent.Type.LOADED:this.trigger("loaded"),this.pollCountdown(!0),a.isLinear()||(a.width=s.offsetWidth,a.height=s.offsetHeight);break;case google.ima.AdEvent.Type.STARTED:this.manager.setVolume(this.player.volume);break;case google.ima.AdEvent.Type.ALL_ADS_COMPLETED:this.player.ended?this.loadAds():this.loader.contentComplete();break;case google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED:this.pauseContent();break;case google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED:this.pollCountdown(),this.resumeContent();break;case google.ima.AdEvent.Type.LOG:n.adError&&this.player.debug.warn(`Non-fatal ad error: ${n.adError.getMessage()}`)}}),w(this,"onAdError",t=>{this.cancel(),this.player.debug.warn("Ads error",t)}),w(this,"listeners",()=>{const{container:t}=this.player.elements;let s;this.player.on("canplay",()=>{this.addCuePoints()}),this.player.on("ended",()=>{this.loader.contentComplete()}),this.player.on("timeupdate",()=>{s=this.player.currentTime}),this.player.on("seeked",()=>{const a=this.player.currentTime;l.empty(this.cuePoints)||this.cuePoints.forEach((n,o)=>{s{this.manager&&this.manager.resize(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL)})}),w(this,"play",()=>{const{container:t}=this.player.elements;this.managerPromise||this.resumeContent(),this.managerPromise.then(()=>{this.manager.setVolume(this.player.volume),this.elements.displayContainer.initialize();try{this.initialized||(this.manager.init(t.offsetWidth,t.offsetHeight,google.ima.ViewMode.NORMAL),this.manager.start()),this.initialized=!0}catch(s){this.onAdError(s)}}).catch(()=>{})}),w(this,"resumeContent",()=>{this.elements.container.style.zIndex="",this.playing=!1,ce(this.player.media.play())}),w(this,"pauseContent",()=>{this.elements.container.style.zIndex=3,this.playing=!0,this.player.media.pause()}),w(this,"cancel",()=>{this.initialized&&this.resumeContent(),this.trigger("error"),this.loadAds()}),w(this,"loadAds",()=>{this.managerPromise.then(()=>{this.manager&&this.manager.destroy(),this.managerPromise=new Promise(t=>{this.on("loaded",t),this.player.debug.log(this.manager)}),this.initialized=!1,this.requestAds()}).catch(()=>{})}),w(this,"trigger",(t,...s)=>{const a=this.events[t];l.array(a)&&a.forEach(n=>{l.function(n)&&n.apply(this,s)})}),w(this,"on",(t,s)=>(l.array(this.events[t])||(this.events[t]=[]),this.events[t].push(s),this)),w(this,"startSafetyTimer",(t,s)=>{this.player.debug.log(`Safety timer invoked from: ${s}`),this.safetyTimer=setTimeout(()=>{this.cancel(),this.clearSafetyTimer("startSafetyTimer()")},t)}),w(this,"clearSafetyTimer",t=>{l.nullOrUndefined(this.safetyTimer)||(this.player.debug.log(`Safety timer cleared from: ${t}`),clearTimeout(this.safetyTimer),this.safetyTimer=null)}),this.player=i,this.config=i.config.ads,this.playing=!1,this.initialized=!1,this.elements={container:null,displayContainer:null},this.manager=null,this.loader=null,this.cuePoints=null,this.events={},this.safetyTimer=null,this.countdownTimer=null,this.managerPromise=new Promise((t,s)=>{this.on("loaded",t),this.on("error",s)}),this.load()}get enabled(){const{config:i}=this;return this.player.isHTML5&&this.player.isVideo&&i.enabled&&(!l.empty(i.publisherId)||l.url(i.tagUrl))}get tagUrl(){const{config:i}=this;return l.url(i.tagUrl)?i.tagUrl:`https://go.aniview.com/api/adserver6/vast/?${xi({AV_PUBLISHERID:"58c25bb0073ef448b1087ad6",AV_CHANNELID:"5a0458dc28a06145e4519d21",AV_URL:window.location.hostname,cb:Date.now(),AV_WIDTH:640,AV_HEIGHT:480,AV_CDIM2:i.publisherId})}`}}const _n=e=>{const i=[];return e.split(/\r\n\r\n|\n\n|\r\r/).forEach(t=>{const s={};t.split(/\r\n|\n|\r/).forEach(a=>{if(l.number(s.startTime)){if(!l.empty(a.trim())&&l.empty(s.text)){const n=a.trim().split("#xywh=");[s.text]=n,n[1]&&([s.x,s.y,s.w,s.h]=n[1].split(","))}}else{const n=a.match(/([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})( ?--> ?)([0-9]{2})?:?([0-9]{2}):([0-9]{2}).([0-9]{2,3})/);n&&(s.startTime=60*Number(n[1]||0)*60+60*Number(n[2])+Number(n[3])+Number(`0.${n[4]}`),s.endTime=60*Number(n[6]||0)*60+60*Number(n[7])+Number(n[8])+Number(`0.${n[9]}`))}}),s.text&&i.push(s)}),i},Di=(e,i)=>{const t={};return e>i.width/i.height?(t.width=i.width,t.height=1/e*i.width):(t.height=i.height,t.width=e*i.height),t};class It{constructor(i){w(this,"load",()=>{this.player.elements.display.seekTooltip&&(this.player.elements.display.seekTooltip.hidden=this.enabled),this.enabled&&this.getThumbnails().then(()=>{this.enabled&&(this.render(),this.determineContainerAutoSizing(),this.loaded=!0)})}),w(this,"getThumbnails",()=>new Promise(t=>{const{src:s}=this.player.config.previewThumbnails;if(l.empty(s))throw new Error("Missing previewThumbnails.src config attribute");const a=()=>{this.thumbnails.sort((n,o)=>n.height-o.height),this.player.debug.log("Preview thumbnails",this.thumbnails),t()};if(l.function(s))s(n=>{this.thumbnails=n,a()});else{const n=(l.string(s)?[s]:s).map(o=>this.getThumbnail(o));Promise.all(n).then(a)}})),w(this,"getThumbnail",t=>new Promise(s=>{Je(t).then(a=>{const n={frames:_n(a),height:null,urlPrefix:""};n.frames[0].text.startsWith("/")||n.frames[0].text.startsWith("http://")||n.frames[0].text.startsWith("https://")||(n.urlPrefix=t.substring(0,t.lastIndexOf("/")+1));const o=new Image;o.onload=()=>{n.height=o.naturalHeight,n.width=o.naturalWidth,this.thumbnails.push(n),s()},o.src=n.urlPrefix+n.frames[0].text})})),w(this,"startMove",t=>{if(this.loaded&&l.event(t)&&["touchmove","mousemove"].includes(t.type)&&this.player.media.duration){if(t.type==="touchmove")this.seekTime=this.player.media.duration*(this.player.elements.inputs.seek.value/100);else{const s=this.player.elements.progress.getBoundingClientRect(),a=100/s.width*(t.pageX-s.left);this.seekTime=this.player.media.duration*(a/100),this.seekTime<0&&(this.seekTime=0),this.seekTime>this.player.media.duration-1&&(this.seekTime=this.player.media.duration-1),this.mousePosX=t.pageX,this.elements.thumb.time.innerText=dt(this.seekTime)}this.showImageAtCurrentTime()}}),w(this,"endMove",()=>{this.toggleThumbContainer(!1,!0)}),w(this,"startScrubbing",t=>{(l.nullOrUndefined(t.button)||t.button===!1||t.button===0)&&(this.mouseDown=!0,this.player.media.duration&&(this.toggleScrubbingContainer(!0),this.toggleThumbContainer(!1,!0),this.showImageAtCurrentTime()))}),w(this,"endScrubbing",()=>{this.mouseDown=!1,Math.ceil(this.lastTime)===Math.ceil(this.player.media.currentTime)?this.toggleScrubbingContainer(!1):_t.call(this.player,this.player.media,"timeupdate",()=>{this.mouseDown||this.toggleScrubbingContainer(!1)})}),w(this,"listeners",()=>{this.player.on("play",()=>{this.toggleThumbContainer(!1,!0)}),this.player.on("seeked",()=>{this.toggleThumbContainer(!1)}),this.player.on("timeupdate",()=>{this.lastTime=this.player.media.currentTime})}),w(this,"render",()=>{this.elements.thumb.container=M("div",{class:this.player.config.classNames.previewThumbnails.thumbContainer}),this.elements.thumb.imageContainer=M("div",{class:this.player.config.classNames.previewThumbnails.imageContainer}),this.elements.thumb.container.appendChild(this.elements.thumb.imageContainer);const t=M("div",{class:this.player.config.classNames.previewThumbnails.timeContainer});this.elements.thumb.time=M("span",{},"00:00"),t.appendChild(this.elements.thumb.time),this.elements.thumb.container.appendChild(t),l.element(this.player.elements.progress)&&this.player.elements.progress.appendChild(this.elements.thumb.container),this.elements.scrubbing.container=M("div",{class:this.player.config.classNames.previewThumbnails.scrubbingContainer}),this.player.elements.wrapper.appendChild(this.elements.scrubbing.container)}),w(this,"destroy",()=>{this.elements.thumb.container&&this.elements.thumb.container.remove(),this.elements.scrubbing.container&&this.elements.scrubbing.container.remove()}),w(this,"showImageAtCurrentTime",()=>{this.mouseDown?this.setScrubbingContainerSize():this.setThumbContainerSizeAndPos();const t=this.thumbnails[0].frames.findIndex(n=>this.seekTime>=n.startTime&&this.seekTime<=n.endTime),s=t>=0;let a=0;this.mouseDown||this.toggleThumbContainer(s),s&&(this.thumbnails.forEach((n,o)=>{this.loadedImages.includes(n.frames[t].text)&&(a=o)}),t!==this.showingThumb&&(this.showingThumb=t,this.loadImage(a)))}),w(this,"loadImage",(t=0)=>{const s=this.showingThumb,a=this.thumbnails[t],{urlPrefix:n}=a,o=a.frames[s],r=a.frames[s].text,h=n+r;if(this.currentImageElement&&this.currentImageElement.dataset.filename===r)this.showImage(this.currentImageElement,o,t,s,r,!1),this.currentImageElement.dataset.index=s,this.removeOldImages(this.currentImageElement);else{this.loadingImage&&this.usingSprites&&(this.loadingImage.onload=null);const d=new Image;d.src=h,d.dataset.index=s,d.dataset.filename=r,this.showingThumbFilename=r,this.player.debug.log(`Loading image: ${h}`),d.onload=()=>this.showImage(d,o,t,s,r,!0),this.loadingImage=d,this.removeOldImages(d)}}),w(this,"showImage",(t,s,a,n,o,r=!0)=>{this.player.debug.log(`Showing thumb: ${o}. num: ${n}. qual: ${a}. newimg: ${r}`),this.setImageSizeAndOffset(t,s),r&&(this.currentImageContainer.appendChild(t),this.currentImageElement=t,this.loadedImages.includes(o)||this.loadedImages.push(o)),this.preloadNearby(n,!0).then(this.preloadNearby(n,!1)).then(this.getHigherQuality(a,t,s,o))}),w(this,"removeOldImages",t=>{Array.from(this.currentImageContainer.children).forEach(s=>{if(s.tagName.toLowerCase()!=="img")return;const a=this.usingSprites?500:1e3;if(s.dataset.index!==t.dataset.index&&!s.dataset.deleting){s.dataset.deleting=!0;const{currentImageContainer:n}=this;setTimeout(()=>{n.removeChild(s),this.player.debug.log(`Removing thumb: ${s.dataset.filename}`)},a)}})}),w(this,"preloadNearby",(t,s=!0)=>new Promise(a=>{setTimeout(()=>{const n=this.thumbnails[0].frames[t].text;if(this.showingThumbFilename===n){let o;o=s?this.thumbnails[0].frames.slice(t):this.thumbnails[0].frames.slice(0,t).reverse();let r=!1;o.forEach(h=>{const d=h.text;if(d!==n&&!this.loadedImages.includes(d)){r=!0,this.player.debug.log(`Preloading thumb filename: ${d}`);const{urlPrefix:v}=this.thumbnails[0],T=v+d,b=new Image;b.src=T,b.onload=()=>{this.player.debug.log(`Preloaded thumb filename: ${d}`),this.loadedImages.includes(d)||this.loadedImages.push(d),a()}}}),r||a()}},300)})),w(this,"getHigherQuality",(t,s,a,n)=>{if(t{this.showingThumbFilename===n&&(this.player.debug.log(`Showing higher quality thumb for: ${n}`),this.loadImage(t+1))},300)}}),w(this,"toggleThumbContainer",(t=!1,s=!1)=>{const a=this.player.config.classNames.previewThumbnails.thumbContainerShown;this.elements.thumb.container.classList.toggle(a,t),!t&&s&&(this.showingThumb=null,this.showingThumbFilename=null)}),w(this,"toggleScrubbingContainer",(t=!1)=>{const s=this.player.config.classNames.previewThumbnails.scrubbingContainerShown;this.elements.scrubbing.container.classList.toggle(s,t),t||(this.showingThumb=null,this.showingThumbFilename=null)}),w(this,"determineContainerAutoSizing",()=>{(this.elements.thumb.imageContainer.clientHeight>20||this.elements.thumb.imageContainer.clientWidth>20)&&(this.sizeSpecifiedInCSS=!0)}),w(this,"setThumbContainerSizeAndPos",()=>{if(this.sizeSpecifiedInCSS){if(this.elements.thumb.imageContainer.clientHeight>20&&this.elements.thumb.imageContainer.clientWidth<20){const t=Math.floor(this.elements.thumb.imageContainer.clientHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.width=`${t}px`}else if(this.elements.thumb.imageContainer.clientHeight<20&&this.elements.thumb.imageContainer.clientWidth>20){const t=Math.floor(this.elements.thumb.imageContainer.clientWidth/this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=`${t}px`}}else{const t=Math.floor(this.thumbContainerHeight*this.thumbAspectRatio);this.elements.thumb.imageContainer.style.height=`${this.thumbContainerHeight}px`,this.elements.thumb.imageContainer.style.width=`${t}px`}this.setThumbContainerPos()}),w(this,"setThumbContainerPos",()=>{const t=this.player.elements.progress.getBoundingClientRect(),s=this.player.elements.container.getBoundingClientRect(),{container:a}=this.elements.thumb,n=s.left-t.left+10,o=s.right-t.left-a.clientWidth-10;let r=this.mousePosX-t.left-a.clientWidth/2;ro&&(r=o),a.style.left=`${r}px`}),w(this,"setScrubbingContainerSize",()=>{const{width:t,height:s}=Di(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});this.elements.scrubbing.container.style.width=`${t}px`,this.elements.scrubbing.container.style.height=`${s}px`}),w(this,"setImageSizeAndOffset",(t,s)=>{if(!this.usingSprites)return;const a=this.thumbContainerHeight/s.h;t.style.height=t.naturalHeight*a+"px",t.style.width=t.naturalWidth*a+"px",t.style.left=`-${s.x*a}px`,t.style.top=`-${s.y*a}px`}),this.player=i,this.thumbnails=[],this.loaded=!1,this.lastMouseMoveTime=Date.now(),this.mouseDown=!1,this.loadedImages=[],this.elements={thumb:{},scrubbing:{}},this.load()}get enabled(){return this.player.isHTML5&&this.player.isVideo&&this.player.config.previewThumbnails.enabled}get currentImageContainer(){return this.mouseDown?this.elements.scrubbing.container:this.elements.thumb.imageContainer}get usingSprites(){return Object.keys(this.thumbnails[0].frames[0]).includes("w")}get thumbAspectRatio(){return this.usingSprites?this.thumbnails[0].frames[0].w/this.thumbnails[0].frames[0].h:this.thumbnails[0].width/this.thumbnails[0].height}get thumbContainerHeight(){if(this.mouseDown){const{height:i}=Di(this.thumbAspectRatio,{width:this.player.media.clientWidth,height:this.player.media.clientHeight});return i}return this.sizeSpecifiedInCSS?this.elements.thumb.imageContainer.clientHeight:Math.floor(this.player.media.clientWidth/this.thumbAspectRatio/4)}get currentImageElement(){return this.mouseDown?this.currentScrubbingImageElement:this.currentThumbnailImageElement}set currentImageElement(i){this.mouseDown?this.currentScrubbingImageElement=i:this.currentThumbnailImageElement=i}}const Lt={insertElements(e,i){l.string(i)?bi(e,this.media,{src:i}):l.array(i)&&i.forEach(t=>{bi(e,this.media,t)})},change(e){fi(e,"sources.length")?(Ee.cancelRequests.call(this),this.destroy.call(this,()=>{this.options.quality=[],we(this.media),this.media=null,l.element(this.elements.container)&&this.elements.container.removeAttribute("class");const{sources:i,type:t}=e,[{provider:s=Ae.html5,src:a}]=i,n=s==="html5"?t:"div",o=s==="html5"?{}:{src:a};Object.assign(this,{provider:s,type:t,supported:V.check(t,s,this.config.playsinline),media:M(n,o)}),this.elements.container.appendChild(this.media),l.boolean(e.autoplay)&&(this.config.autoplay=e.autoplay),this.isHTML5&&(this.config.crossorigin&&this.media.setAttribute("crossorigin",""),this.config.autoplay&&this.media.setAttribute("autoplay",""),l.empty(e.poster)||(this.poster=e.poster),this.config.loop.active&&this.media.setAttribute("loop",""),this.config.muted&&this.media.setAttribute("muted",""),this.config.playsinline&&this.media.setAttribute("playsinline","")),R.addStyleHook.call(this),this.isHTML5&&Lt.insertElements.call(this,"source",i),this.config.title=e.title,Mi.setup.call(this),this.isHTML5&&Object.keys(e).includes("tracks")&&Lt.insertElements.call(this,"track",e.tracks),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&R.build.call(this),this.isHTML5&&this.media.load(),l.empty(e.previewThumbnails)||(Object.assign(this.config.previewThumbnails,e.previewThumbnails),this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new It(this))),this.fullscreen.update()},!0)):this.debug.warn("Invalid source format")}};function Sn(e=0,i=0,t=255){return Math.min(Math.max(e,i),t)}class Xe{constructor(i,t){if(w(this,"play",()=>l.function(this.media.play)?(this.ads&&this.ads.enabled&&this.ads.managerPromise.then(()=>this.ads.play()).catch(()=>ce(this.media.play())),this.media.play()):null),w(this,"pause",()=>this.playing&&l.function(this.media.pause)?this.media.pause():null),w(this,"togglePlay",r=>(l.boolean(r)?r:!this.playing)?this.play():this.pause()),w(this,"stop",()=>{this.isHTML5?(this.pause(),this.restart()):l.function(this.media.stop)&&this.media.stop()}),w(this,"restart",()=>{this.currentTime=0}),w(this,"rewind",r=>{this.currentTime-=l.number(r)?r:this.config.seekTime}),w(this,"forward",r=>{this.currentTime+=l.number(r)?r:this.config.seekTime}),w(this,"increaseVolume",r=>{const h=this.media.muted?0:this.volume;this.volume=h+(l.number(r)?r:0)}),w(this,"decreaseVolume",r=>{this.increaseVolume(-r)}),w(this,"airplay",()=>{V.airplay&&this.media.webkitShowPlaybackTargetPicker()}),w(this,"toggleControls",r=>{if(this.supported.ui&&!this.isAudio){const h=rt(this.elements.container,this.config.classNames.hideControls),d=r===void 0?void 0:!r,v=L(this.elements.container,this.config.classNames.hideControls,d);if(v&&l.array(this.config.controls)&&this.config.controls.includes("settings")&&!l.empty(this.config.settings)&&k.toggleMenu.call(this,!1),v!==h){const T=v?"controlshidden":"controlsshown";x.call(this,this.media,T)}return!v}return!1}),w(this,"on",(r,h)=>{O.call(this,this.elements.container,r,h)}),w(this,"once",(r,h)=>{_t.call(this,this.elements.container,r,h)}),w(this,"off",(r,h)=>{ut(this.elements.container,r,h)}),w(this,"destroy",(r,h=!1)=>{if(!this.ready)return;const d=()=>{document.body.style.overflow="",this.embed=null,h?(Object.keys(this.elements).length&&(we(this.elements.buttons.play),we(this.elements.captions),we(this.elements.controls),we(this.elements.wrapper),this.elements.buttons.play=null,this.elements.captions=null,this.elements.controls=null,this.elements.wrapper=null),l.function(r)&&r()):(ln.call(this),Ee.cancelRequests.call(this),ot(this.elements.original,this.elements.container),x.call(this,this.elements.original,"destroyed",!0),l.function(r)&&r.call(this.elements.original),this.ready=!1,setTimeout(()=>{this.elements=null,this.media=null},200))};this.stop(),clearTimeout(this.timers.loading),clearTimeout(this.timers.controls),clearTimeout(this.timers.resized),this.isHTML5?(R.toggleNativeControls.call(this,!0),d()):this.isYouTube?(clearInterval(this.timers.buffering),clearInterval(this.timers.playing),this.embed!==null&&l.function(this.embed.destroy)&&this.embed.destroy(),d()):this.isVimeo&&(this.embed!==null&&this.embed.unload().then(d),setTimeout(d,200))}),w(this,"supports",r=>V.mime.call(this,r)),this.timers={},this.ready=!1,this.loading=!1,this.failed=!1,this.touch=V.touch,this.media=i,l.string(this.media)&&(this.media=document.querySelectorAll(this.media)),(window.jQuery&&this.media instanceof jQuery||l.nodeList(this.media)||l.array(this.media))&&(this.media=this.media[0]),this.config=K({},Ni,Xe.defaults,t||{},(()=>{try{return JSON.parse(this.media.getAttribute("data-plyr-config"))}catch{return{}}})()),this.elements={container:null,fullscreen:null,captions:null,buttons:{},display:{},progress:{},inputs:{},settings:{popup:null,menu:null,panels:{},buttons:{}}},this.captions={active:null,currentTrack:-1,meta:new WeakMap},this.fullscreen={active:!1},this.options={speed:[],quality:[]},this.debug=new yn(this.config.debug),this.debug.log("Config",this.config),this.debug.log("Support",V),l.nullOrUndefined(this.media)||!l.element(this.media))return void this.debug.error("Setup failed: no suitable element passed");if(this.media.plyr)return void this.debug.warn("Target already setup");if(!this.config.enabled)return void this.debug.error("Setup failed: disabled by config");if(!V.check().api)return void this.debug.error("Setup failed: no support");const s=this.media.cloneNode(!0);s.autoplay=!1,this.elements.original=s;const a=this.media.tagName.toLowerCase();let n=null,o=null;switch(a){case"div":if(n=this.media.querySelector("iframe"),l.element(n)){if(o=Fi(n.getAttribute("src")),this.provider=fn(o.toString()),this.elements.container=this.media,this.media=n,this.elements.container.className="",o.search.length){const r=["1","true"];r.includes(o.searchParams.get("autoplay"))&&(this.config.autoplay=!0),r.includes(o.searchParams.get("loop"))&&(this.config.loop.active=!0),this.isYouTube?(this.config.playsinline=r.includes(o.searchParams.get("playsinline")),this.config.youtube.hl=o.searchParams.get("hl")):this.config.playsinline=!0}}else this.provider=this.media.getAttribute(this.config.attributes.embed.provider),this.media.removeAttribute(this.config.attributes.embed.provider);if(l.empty(this.provider)||!Object.values(Ae).includes(this.provider))return void this.debug.error("Setup failed: Invalid provider");this.type=Nt.video;break;case"video":case"audio":this.type=a,this.provider=Ae.html5,this.media.hasAttribute("crossorigin")&&(this.config.crossorigin=!0),this.media.hasAttribute("autoplay")&&(this.config.autoplay=!0),(this.media.hasAttribute("playsinline")||this.media.hasAttribute("webkit-playsinline"))&&(this.config.playsinline=!0),this.media.hasAttribute("muted")&&(this.config.muted=!0),this.media.hasAttribute("loop")&&(this.config.loop.active=!0);break;default:return void this.debug.error("Setup failed: unsupported type")}this.supported=V.check(this.type,this.provider,this.config.playsinline),this.supported.api?(this.eventListeners=[],this.listeners=new bn(this),this.storage=new Ye(this),this.media.plyr=this,l.element(this.elements.container)||(this.elements.container=M("div",{tabindex:0}),yi(this.media,this.elements.container)),R.migrateStyles.call(this),R.addStyleHook.call(this),Mi.setup.call(this),this.config.debug&&O.call(this,this.elements.container,this.config.events.join(" "),r=>{this.debug.log(`event: ${r.type}`)}),this.fullscreen=new de(this),(this.isHTML5||this.isEmbed&&!this.supported.ui)&&R.build.call(this),this.listeners.container(),this.listeners.global(),this.config.ads.enabled&&(this.ads=new An(this)),this.isHTML5&&this.config.autoplay&&this.once("canplay",()=>ce(this.play())),this.lastSeekTime=0,this.config.previewThumbnails.enabled&&(this.previewThumbnails=new It(this))):this.debug.error("Setup failed: no support")}get isHTML5(){return this.provider===Ae.html5}get isEmbed(){return this.isYouTube||this.isVimeo}get isYouTube(){return this.provider===Ae.youtube}get isVimeo(){return this.provider===Ae.vimeo}get isVideo(){return this.type===Nt.video}get isAudio(){return this.type===Nt.audio}get playing(){return Boolean(this.ready&&!this.paused&&!this.ended)}get paused(){return Boolean(this.media.paused)}get stopped(){return Boolean(this.paused&&this.currentTime===0)}get ended(){return Boolean(this.media.ended)}set currentTime(i){if(!this.duration)return;const t=l.number(i)&&i>0;this.media.currentTime=t?Math.min(i,this.duration):0,this.debug.log(`Seeking to ${this.currentTime} seconds`)}get currentTime(){return Number(this.media.currentTime)}get buffered(){const{buffered:i}=this.media;return l.number(i)?i:i&&i.length&&this.duration>0?i.end(0)/this.duration:0}get seeking(){return Boolean(this.media.seeking)}get duration(){const i=parseFloat(this.config.duration),t=(this.media||{}).duration,s=l.number(t)&&t!==1/0?t:0;return i||s}set volume(i){let t=i;l.string(t)&&(t=Number(t)),l.number(t)||(t=this.storage.get("volume")),l.number(t)||({volume:t}=this.config),t>1&&(t=1),t<0&&(t=0),this.config.volume=t,this.media.volume=t,!l.empty(i)&&this.muted&&t>0&&(this.muted=!1)}get volume(){return Number(this.media.volume)}set muted(i){let t=i;l.boolean(t)||(t=this.storage.get("muted")),l.boolean(t)||(t=this.config.muted),this.config.muted=t,this.media.muted=t}get muted(){return Boolean(this.media.muted)}get hasAudio(){return!this.isHTML5||!!this.isAudio||Boolean(this.media.mozHasAudio)||Boolean(this.media.webkitAudioDecodedByteCount)||Boolean(this.media.audioTracks&&this.media.audioTracks.length)}set speed(i){let t=null;l.number(i)&&(t=i),l.number(t)||(t=this.storage.get("speed")),l.number(t)||(t=this.config.speed.selected);const{minimumSpeed:s,maximumSpeed:a}=this;t=Sn(t,s,a),this.config.speed.selected=t,setTimeout(()=>{this.media&&(this.media.playbackRate=t)},0)}get speed(){return Number(this.media.playbackRate)}get minimumSpeed(){return this.isYouTube?Math.min(...this.options.speed):this.isVimeo?.5:.0625}get maximumSpeed(){return this.isYouTube?Math.max(...this.options.speed):this.isVimeo?2:16}set quality(i){const t=this.config.quality,s=this.options.quality;if(!s.length)return;let a=[!l.empty(i)&&Number(i),this.storage.get("quality"),t.selected,t.default].find(l.number),n=!0;if(!s.includes(a)){const o=wi(s,a);this.debug.warn(`Unsupported quality option: ${a}, using ${o} instead`),a=o,n=!1}t.selected=a,this.media.quality=a,n&&this.storage.set({quality:a})}get quality(){return this.media.quality}set loop(i){const t=l.boolean(i)?i:this.config.loop.active;this.config.loop.active=t,this.media.loop=t}get loop(){return Boolean(this.media.loop)}set source(i){Lt.change.call(this,i)}get source(){return this.media.currentSrc}get download(){const{download:i}=this.config.urls;return l.url(i)?i:this.source}set download(i){l.url(i)&&(this.config.urls.download=i,k.setDownloadUrl.call(this))}set poster(i){this.isVideo?R.setPoster.call(this,i,!1).catch(()=>{}):this.debug.warn("Poster can only be set for video")}get poster(){return this.isVideo?this.media.getAttribute("poster")||this.media.getAttribute("data-poster"):null}get ratio(){if(!this.isVideo)return null;const i=ct(Pt.call(this));return l.array(i)?i.join(":"):i}set ratio(i){this.isVideo?l.string(i)&&Ci(i)?(this.config.ratio=ct(i),Be.call(this)):this.debug.error(`Invalid aspect ratio specified (${i})`):this.debug.warn("Aspect ratio can only be set for video")}set autoplay(i){const t=l.boolean(i)?i:this.config.autoplay;this.config.autoplay=t}get autoplay(){return Boolean(this.config.autoplay)}toggleCaptions(i){B.toggle.call(this,i,!1)}set currentTrack(i){B.set.call(this,i,!1),B.setup()}get currentTrack(){const{toggled:i,currentTrack:t}=this.captions;return i?t:-1}set language(i){B.setLanguage.call(this,i,!1)}get language(){return(B.getCurrentTrack.call(this)||{}).language}set pip(i){if(!V.pip)return;const t=l.boolean(i)?i:!this.pip;l.function(this.media.webkitSetPresentationMode)&&this.media.webkitSetPresentationMode(t?xt.active:xt.inactive),l.function(this.media.requestPictureInPicture)&&(!this.pip&&t?this.media.requestPictureInPicture():this.pip&&!t&&document.exitPictureInPicture())}get pip(){return V.pip?l.empty(this.media.webkitPresentationMode)?this.media===document.pictureInPictureElement:this.media.webkitPresentationMode===xt.active:null}setPreviewThumbnails(i){this.previewThumbnails&&this.previewThumbnails.loaded&&(this.previewThumbnails.destroy(),this.previewThumbnails=null),Object.assign(this.config.previewThumbnails,i),this.config.previewThumbnails.enabled&&(this.previewThumbnails=new It(this))}static supported(i,t,s){return V.check(i,t,s)}static loadSprite(i,t){return Si(i,t)}static setup(i,t={}){let s=null;return l.string(i)?s=Array.from(document.querySelectorAll(i)):l.nodeList(i)?s=Array.from(i):l.array(i)&&(s=i.filter(l.element)),l.empty(s)?null:s.map(a=>new Xe(a,t))}}Xe.defaults=tn(Ni);const Pn=["data-poster"],Fn=["src","type","size"],xn=["src"],Nn=bt({props:{video:null},setup(e){const i=e,t=Kt(()=>i.video),s={"4K":2160,"1080P":1080,"720P":720,"480P":480},a=D(),n=D();return vt(()=>{n.value=new Xe(a.value,{debug:!0})}),(r,h)=>m(t).mime_type.indexOf("video")!==-1?(U(),ee("video",{key:0,ref:(d,v)=>{v.playerRef=d,a.value=d},"data-poster":m(t).thumbnail_link},[(U(!0),ee(Ue,null,qe(m(t).medias,(d,v)=>(U(),ee("source",{src:d==null?void 0:d.link.url,type:m(t).mime_type==="video/x-matroska"?"video/webm":m(t).mime_type,size:s[d.resolution_name]},null,8,Fn))),256))],8,Pn)):m(t).mime_type.indexOf("audio")!==-1?(U(),ee("audio",{key:1,ref:(d,v)=>{v.playerRef=d,a.value=d}},[I("source",{src:m(t).web_content_link},null,8,xn)],512)):pe("",!0)}});const Mn={class:"container"},Dn={class:"status-bar-wrapper"},$n={class:"task-list"},In={class:"task-info"},Ln={class:"task-file-icon"},On=["src"],Bn={class:"task-info-wrapper"},jn={class:"task-file-name"},Rn={class:"task-desc-wrapper"},Hn={class:"task-desc"},Un=I("div",{class:"task-dot"},null,-1),qn={class:"task-desc"},Vn={class:"task-progress",style:{width:"60px","margin-right":"6px"}},zn=q(" \u786E\u5B9A\u5220\u9664\uFF1F "),Wn=bt({setup(e,{expose:i}){const t=D(),s=D(!1),a=D(0),n=D(),o=D(!0),r=D(),h=()=>{s.value=!0,re.get("https://api-drive.mypikpak.com/drive/v1/tasks",{params:{type:"offline",filters:{phase:{eq:"PHASE_TYPE_RUNNING"}},page_token:r.value||void 0,thumbnail_size:"SIZE_LARGE",with:"reference_resource"}}).then(T=>{const{tasks:b,next_page_token:_}=T.data;n.value&&clearTimeout(n.value),r.value||(t.value=[]),t.value=t.value.concat(b),r.value=_,t.value.length&&!o.value&&(n.value=setTimeout(()=>{h()},3e4)),s.value=!1})},d=T=>{re.delete("https://api-drive.mypikpak.com/drive/v1/tasks",{params:{task_ids:t.value[T].id,_t:new Date().getTime()}}).then(()=>{t.value[T].progress<100&&a.value--,t.value.splice(T,1)})},v=T=>{T.target.offsetHeight-T.target.scrollTop<30&&r.value&&!s.value&&h()};return Yt(o,()=>{o.value&&n.value?clearTimeout(n.value):h()}),vt(h),ns(()=>{n.value&&clearTimeout(n.value)}),i({getTask:h}),(T,b)=>{var _;return U(),ee("div",Mn,[I("div",{class:as(["content",{hide:o.value}])},[I("div",{class:"status-bar",onClick:b[0]||(b[0]=A=>o.value=!o.value)},[I("div",Dn,[q(ge(((_=t.value)==null?void 0:_.length)||0)+"\u9879\u4FDD\u5B58\u4E2D \xA0 ",1),s.value?(U(),Ce(m(Jt),{key:0,size:"small"})):pe("",!0)])]),I("div",$n,[p(m(Gt),{style:{"max-height":"400px"},onScroll:v},{default:y(()=>[(U(!0),ee(Ue,null,qe(t.value,(A,C)=>(U(),ee("div",{key:A.id,class:"task"},[I("div",In,[I("div",Ln,[I("img",{src:A.icon_link},null,8,On)]),I("div",Bn,[I("div",jn,[p(m(Qt),{tooltip:{width:"trigger"}},{default:y(()=>[q(ge(A.file_name),1)]),_:2},1024)]),I("div",Rn,[I("div",Hn,ge(m(ei)(A.file_size)),1),Un,I("div",qn,ge(A.message),1)])]),I("div",Vn,[p(m(ls),{type:"line",percentage:A.progress,processing:"","indicator-placement":"inside"},null,8,["percentage"])]),p(m(os),{onPositiveClick:N=>d(C),placement:"right"},{trigger:y(()=>[p(m(Q),{color:"#306eff"},{default:y(()=>[p(m(fe))]),_:1})]),default:y(()=>[zn]),_:2},1032,["onPositiveClick"])])]))),128))]),_:1})]),o.value?pe("",!0):(U(),ee("p",{key:0,class:"bottom",onClick:b[1]||(b[1]=A=>o.value=!0)},"\u6536\u8D77"))],2)])}}});var $i={exports:{}};(function(e){((i,t)=>{e.exports=t()})("streamSaver",()=>{const i=typeof window=="object"?window:this;i.HTMLElement||console.warn("streamsaver is meant to run on browsers main thread");let t=null,s=!1;const a=A=>{try{A()}catch{}},n=i.WebStreamsPolyfill||{},o=i.isSecureContext;let r=/constructor/i.test(i.HTMLElement)||!!i.safari||!!i.WebKitPoint;const h=o||"MozAppearance"in document.documentElement.style?"iframe":"navigate",d={createWriteStream:_,WritableStream:i.WritableStream||n.WritableStream,supported:!0,version:{full:"2.0.5",major:2,minor:0,dot:5},mitm:"https://jimmywarting.github.io/StreamSaver.js/mitm.html?version=2.0.0"};function v(A){if(!A)throw new Error("meh");const C=document.createElement("iframe");return C.hidden=!0,C.src=A,C.loaded=!1,C.name="iframe",C.isIframe=!0,C.postMessage=(...N)=>C.contentWindow.postMessage(...N),C.addEventListener("load",()=>{C.loaded=!0},{once:!0}),document.body.appendChild(C),C}function T(A){const C="width=200,height=100",N=document.createDocumentFragment(),E={frame:i.open(A,"popup",C),loaded:!1,isIframe:!1,isPopup:!0,remove(){E.frame.close()},addEventListener(...f){N.addEventListener(...f)},dispatchEvent(...f){N.dispatchEvent(...f)},removeEventListener(...f){N.removeEventListener(...f)},postMessage(...f){E.frame.postMessage(...f)}},$=f=>{f.source===E.frame&&(E.loaded=!0,i.removeEventListener("message",$),E.dispatchEvent(new Event("load")))};return i.addEventListener("message",$),E}try{new Response(new ReadableStream),o&&!("serviceWorker"in navigator)&&(r=!0)}catch{r=!0}a(()=>{const{readable:A}=new TransformStream,C=new MessageChannel;C.port1.postMessage(A,[A]),C.port1.close(),C.port2.close(),s=!0,Object.defineProperty(d,"TransformStream",{configurable:!1,writable:!1,value:TransformStream})});function b(){t||(t=o?v(d.mitm):T(d.mitm))}function _(A,C,N){let E={size:null,pathname:null,writableStrategy:void 0,readableStrategy:void 0},$=0,f=null,F=null,j=null;if(Number.isFinite(C)?([N,C]=[C,N],console.warn("[StreamSaver] Depricated pass an object as 2nd argument when creating a write stream"),E.size=N,E.writableStrategy=C):C&&C.highWaterMark?(console.warn("[StreamSaver] Depricated pass an object as 2nd argument when creating a write stream"),E.size=N,E.writableStrategy=C):E=C||{},!r){b(),F=new MessageChannel,A=encodeURIComponent(A.replace(/\//g,":")).replace(/['()]/g,escape).replace(/\*/g,"%2A");const W={transferringReadable:s,pathname:E.pathname||Math.random().toString().slice(-6)+"/"+A,headers:{"Content-Type":"application/octet-stream; charset=utf-8","Content-Disposition":"attachment; filename*=UTF-8''"+A}};E.size&&(W.headers["Content-Length"]=E.size);const Z=[W,"*",[F.port2]];if(s){const ie=h==="iframe"?void 0:{transform(Te,Ze){if(!(Te instanceof Uint8Array))throw new TypeError("Can only wirte Uint8Arrays");$+=Te.length,Ze.enqueue(Te),f&&(location.href=f,f=null)},flush(){f&&(location.href=f)}};j=new d.TransformStream(ie,E.writableStrategy,E.readableStrategy);const ke=j.readable;F.port1.postMessage({readableStream:ke},[ke])}F.port1.onmessage=ie=>{ie.data.download&&(h==="navigate"?(t.remove(),t=null,$?location.href=ie.data.download:f=ie.data.download):(t.isPopup&&(t.remove(),t=null,h==="iframe"&&v(d.mitm)),v(ie.data.download)))},t.loaded?t.postMessage(...Z):t.addEventListener("load",()=>{t.postMessage(...Z)},{once:!0})}let z=[];return!r&&j&&j.writable||new d.WritableStream({write(W){if(!(W instanceof Uint8Array))throw new TypeError("Can only wirte Uint8Arrays");if(r){z.push(W);return}F.port1.postMessage(W),$+=W.length,f&&(location.href=f,f=null)},close(){if(r){const W=new Blob(z,{type:"application/octet-stream; charset=utf-8"}),Z=document.createElement("a");Z.href=URL.createObjectURL(W),Z.download=A,Z.click()}else F.port1.postMessage("end")},abort(){z=[],F.port1.postMessage("abort"),F.port1.onmessage=null,F.port1.close(),F.port2.close(),F=null}},E.writableStrategy)}return d})})($i);var Ii=$i.exports;const Kn={class:"list-page list-page-files"},Yn={class:"header"},Jn={class:"title n-ellipsis"},Gn=q("\u6587\u4EF6"),Qn={class:"action"},Xn=q(" \u6DFB\u52A0\u81EA\u5B9A\u4E49\u83DC\u5355 "),Zn={key:0,class:"loading"},ea=q("\u52A0\u8F7D\u4E2D "),ta={key:0,class:"outer-wrapper static show"},ia={class:"toolbar-wrapper"},sa=q(" \u590D\u5236\u6240\u9009 "),na=q(" \u526A\u5207\u6240\u9009 "),aa=q(" \u63A8\u9001\u5230Aria2 "),la=q(" \u5206\u4EAB\u79D2\u4F20 "),oa=q(" \u5220\u9664\u6240\u9009 "),ra=I("div",null,"1.\u652F\u6301Magnet\u94FE\u63A5(magnet:?xt=urn)\uFF0CMagent\u94FE\u63A5\u53EA\u80FD\u9ED8\u8BA4\u4FDD\u5B58\u5230My Pack",-1),ua=I("div",null,"2.\u652F\u6301\u79D2\u4F20\u94FE\u63A5(PikPak://PikPak Tutorial.mp4|19682618|123)\u79D2\u4F20\u94FE\u63A5\u9ED8\u8BA4\u4FDD\u5B58\u5230\u5F53\u524D\u6587\u4EF6\u5939\u6216\u7B2C\u4E00\u4E2A\u6587\u4EF6\u5939\u4E0D\u80FD\u4FDD\u5B58\u5230\u6839\u76EE\u5F55",-1),ca=I("div",null,"3.\u652F\u6301\u65B0\u5EFA\u6587\u4EF6\u5939\uFF08\u666E\u901A\u683C\u5F0F\uFF0C\u4E0D\u5E26:\uFF09",-1),da=I("div",null,"4.\u6362\u884C\u6DFB\u52A0\u591A\u4E2A",-1),ha=I("br",null,null,-1),ma=q("\u6DFB\u52A0"),pa={style:{width:"100%",height:"100%"}},ga={style:{width:"100%",height:"calc(100vh - 80px)","text-align":"center"}},fa=["src"],ya=q("\u91CD\u547D\u540D"),ba=q(" \u81EA\u5B9A\u4E49\u83DC\u5355 "),va={href:"https://www.tjsky.net/?p=220#i-8",target:"_blank"},wa=q("\u6DFB\u52A0"),ka=q("\u590D\u5236"),Ta=q("\u590D\u5236"),Sa=bt({setup(e){const i=D(),t=rs(),s=us(),a=cs(),n=D([]),o=ds(),r=D([{title:"\u4FEE\u6539\u65F6\u95F4",key:"modified_time",sorter:"default",align:"right",render:u=>te(Es,{time:new Date(String(u.modified_time)||""),format:"MM-dd HH:MM"}),className:"modified_time",width:160}]),h=D([{type:"selection"},{title:"\u540D\u79F0",key:"name",sorter:"default",render:u=>te("div",{class:"file-info",onClick:()=>{u.kind==="drive#folder"?s.push("/list/"+u.id):(u.mime_type.indexOf("video")!=-1||u.mime_type.indexOf("image")!=-1||u.mime_type.indexOf("audio")!=-1)&&E(u.id).then(c=>{N.value=c.data,N.value.web_content_link&&(u.mime_type.indexOf("video")!=-1||u.mime_type.indexOf("audio")!=-1?$.value=!0:f.value=!0)})}},[te("img",{src:u.thumbnail_link||u.icon_link}),te(Qt,{class:"title"},{default:()=>String(u.name)}),te("span",{class:"action"},"1")])},{title:"\u5927\u5C0F",key:"size",sorter:(u,c)=>u.size-c.size,align:"right",render:u=>Number(u.size)>0?ei(Number(u.size)):"",className:"size",width:100},{title:"",key:"action",width:60,align:"right",render:u=>te(nt,{justify:"end"},{default:()=>[!C.value&&te(ze,{type:"primary",onClick:()=>Rt(u)},{default:()=>"\u91CD\u547D\u540D"}),!C.value&&te(ze,{type:"primary",onClick:()=>gt([u.id])},{default:()=>"\u590D\u5236"}),!C.value&&te(ze,{type:"primary",onClick:()=>pt([u.id])},{default:()=>"\u526A\u8D34"}),!C.value&&u.kind==="drive#file"&&te(ze,{type:"primary",onClick:()=>Bt(u.id)},{default:()=>"\u4E0B\u8F7D"}),!C.value&&te(ze,{type:"primary",onClick:()=>{o.warning({title:"\u8B66\u544A",content:"\u786E\u5B9A\u5220\u9664"+u.name+"\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{ke(String(u.id))}})}},{default:()=>"\u5220\u9664"}),te(As,{trigger:"click",placement:"bottom-end",options:Gi(u),onSelect:c=>{switch(c){case"name":Rt(u);break;case"batchCopy":gt([u.id]);break;case"batchMove":pt([u.id]);break;case"down":Bt(u.id);break;case"copyDown":E(u.id).then(S=>{N.value=S.data,j.value=!0});break;case"aria2Post":E(u.id).then(S=>{jt(S)});break;case"code":je(`PikPak://${u.name}|${u.size}|${u.hash}`);break;case"base":window.localStorage.setItem("pikpakUploadFolder",JSON.stringify(u));break;case"delete":o.warning({title:"\u8B66\u544A",content:"\u786E\u5B9A\u5220\u9664"+u.name+"\uFF1F",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{ke(String(u.id))}});break;case"sharePikPak":Zi.value="",Xi.value=u,es.value="",Qi.value=!0;break;default:if(c.indexOf("user")!==-1){const S=Number(c.replace("user-","")),g=me.value[S];g&&E(u.id).then(P=>{const H=se=>se.replace(/\{\{(.*?)\}\}/g,(ne,_e)=>{var Ht,Ut;_e=_e.trim();let yt=P.data[_e];return _e==="web_content_link"&&P.data.medias&&P.data.medias.length>0&&(yt=((Ut=(Ht=P.data.medias[0])==null?void 0:Ht.link)==null?void 0:Ut.url)||yt),yt});g.type==="a"?window.open(H(g.content),"_target"):g.type==="copy"&&je(H(g.content))})}break}}},{default:()=>te(Q,{color:"#306eff"},{default:()=>te(_s)})})]})}]),d=D(!1),v=D(),T=()=>{d.value=!0;let u={phase:{eq:"PHASE_TYPE_COMPLETE"},trashed:{eq:!1}};t.name!="list"&&(u.mime_type={prefix:String(t.name)+"/"});let c=t.name!=="list"?"*":t.params.id;re.get("https://api-drive.mypikpak.com/drive/v1/files",{params:{parent_id:c,thumbnail_size:"SIZE_LARGE",with_audit:!0,page_token:v.value||void 0,limit:100,filters:u}}).then(S=>{const{data:g}=S;v.value||(i.value=[]),i.value=i.value.concat(g.files),v.value=g.next_page_token}).finally(()=>{d.value=!1})},b=()=>{De.value=JSON.parse(window.localStorage.getItem("pikpakMoveFiles")||"[]"),$e.value=JSON.parse(window.localStorage.getItem("pikpakCopyFiles")||"[]"),me.value=JSON.parse(window.localStorage.getItem("pikpakUserMenu")||"[]"),i.value=[],n.value=[],v.value="",T(),A.value={},t.params.id&&t.params.id!=="*"&&E(String(t.params.id)).then(u=>{A.value=u.data})};Yt(t,()=>{b()});const _=D(),A=D(),C=D(!0);vt(()=>{document.body.clientWidth>968&&(C.value=!1,h.value.splice(2,0,...r.value),h.value[h.value.length-1].width=300);let c=JSON.parse(window.localStorage.getItem("pikpakAria2")||"{}");c.dir===void 0&&(c.dir=!0),c.host&&(_.value=c),b(),window.onbeforeunload=function(S){return!window.$downId||window.$downId.length===0?null:(S=S||window.event,S&&(S.returnValue="\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6"),"\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6?")}});const N=D(),E=u=>re.get("https://api-drive.mypikpak.com/drive/v1/files/"+u,{params:{_magic:"2021",thumbnail_size:"SIZE_LARGE"}}).then(c=>c),$=D(!1),f=D(!1),F=D(!1),j=D(!1),z=D(),W=D(),Z=Kt(()=>{let u="";if(t.params.id)u=String(t.params.id);else for(let c in i.value)if(i.value[c].kind==="drive#folder"){u=i.value[c].id;break}return u}),ie=()=>{const u=z.value.split(` `);let c=0,S=!1,g=!1;u.forEach(P=>{if(P){let H={};if(P.indexOf("PikPak://")===0){const se=P.substring(9).split("|");g=!0,H={kind:"drive#file",parent_id:Z.value,name:se[0],size:se[1],hash:se[2],upload_type:"UPLOAD_TYPE_RESUMABLE",objProvider:{provider:"UPLOAD_TYPE_UNKNOWN"}}}else P.indexOf(":")!==-1?(S=!0,H={kind:"drive#file",name:"",parent_id:t.params.id||"",upload_type:"UPLOAD_TYPE_URL",url:{url:P},params:{from:"file"},folder_type:"DOWNLOAD"}):(g=!0,H={kind:"drive#folder",parent_id:t.params.id||"",name:P});F.value=!1,re.post("https://api-drive.mypikpak.com/drive/v1/files",H).then(se=>{(se.data.upload_type==="UPLOAD_TYPE_UNKNOWN"||P.indexOf("PikPak://")===-1)&&window.$message.success("\u6DFB\u52A0\u6210\u529F")}).finally(()=>{c++,c===u.length&&(z.value="",S&&W.value.getTask(),g&&(v.value="",T()))})}else c++})},ke=u=>{re.post("https://api-drive.mypikpak.com/drive/v1/files:batchTrash",{ids:typeof u=="string"?[u]:u}).then(()=>{window.$message.success("\u5220\u9664\u6210\u529F"),v.value="",typeof u=="object"&&(n.value=[]),T()})},Te=D(!1),Ze=D(""),je=u=>{Ss(()=>{const c=document.createElement("button"),S=new Fs(c,{text:()=>u,action:()=>"copy"});S.on("success",g=>{window.$message.success("\u590D\u5236\u6210\u529F"),S.destroy()}),S.on("error",g=>{window.$message.error("\u590D\u5236\u5931\u8D25\uFF0C\u60A8\u53EF\u4EE5F12\u6253\u5F00\u63A7\u5236\u53F0\u624B\u52A8\u590D\u5236\uFF0C\u6216\u624B\u52A8\u590D\u5236\u5F39\u7A97\u8F93\u5165\u6846"),Te.value=!0,Ze.value=u,console.log(g.text),S.destroy()}),c.click()})},Li=async()=>{let u="";if(Re.value)return!1;await Ot("\u5206\u4EAB\u79D2\u4F20");for(let c in he.value){const S=he.value[c];ae.value&&(ae.value.content=ae.value.content+`\r \u83B7\u53D6`+S.parent+"/"+S.name+"\u6210\u529F"),u=u+`PikPak://${S.name}|${S.size}|${S.hash} diff --git a/assets/login.5b94e583.js b/assets/login.046ee112.js similarity index 99% rename from assets/login.5b94e583.js rename to assets/login.046ee112.js index 74ec6a8a3..e2e3cbfbe 100644 --- a/assets/login.5b94e583.js +++ b/assets/login.046ee112.js @@ -1 +1 @@ -var I=Object.defineProperty;var v=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var C=(o,e,A)=>e in o?I(o,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[e]=A,E=(o,e)=>{for(var A in e||(e={}))P.call(e,A)&&C(o,A,e[A]);if(v)for(var A of v(e))R.call(e,A)&&C(o,A,e[A]);return o};import{d as j,r as B,m as y,l as M,u as N,p as K,a as S,b as U,s as H,E as s,e as a,f as u,ao as O,w as t,ad as L,am as r,R as m,aQ as X,aT as Z,Q as V,F as k,I as w,aU as z,aV as Y,y as g}from"./vendor.64da71ad.js";import{_}from"./phone-pc2.dbf6d71e.js";import{i as x}from"./index.50387d2f.js";const T={class:"login-page"},W=s("div",{class:"down"},[s("img",{src:_})],-1),G={class:"login"},J=s("div",{class:"logo-box"},[s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAACACAYAAADDPmHLAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAgKADAAQAAAABAAAAgAAAAABIjgR3AAALxUlEQVR4Ae1da6xU1RVeFy6PKyqIggIicHmJQIvYCq2FRlPTlqLVUGo10oQ2/dfUhv6oaX00bWqapjHxT/vD2jSltSm1rWlTU0pqCSrxEaryEOWhIK9bVAqCAl7h9vtmzr6cO3Nm7jlnZvasPXetZOWc2Wftvdf+1nf2ee29R8TEEDAEDAFDwBAwBAwBQ2DAIdA2EFrc09NzCdo5HToauq6tre2DpHbDbijSb4Qege6E3dtJdq2U1hIEQODYjsug06BTo21ntM/AXwB18lcEdpn7Ed+inD/h982xtOPY3wndDX0duiva57YL5fRgG7QEQwAEZxCQnghlYBlUbuMBH47faWQHAjc7yRB1bEP6jKRjCWknkUZiUEkIEoRk4XYf6jiLrXpp1+QhAjAE/kyC8ix26oLMgPN4rfK3KgXw2HeqHI8f6sCPOZHG07nfjbaQCI4cjijc7gU5ummkQbz3AACGZ+oUqOuqXaC5nQzlmd5IWYAA/CepAvg2H+nPJR2rYxp7hj3QOCncpeUN+HaqjnX1W1RDCAAgR6BmF1h3Brvt5f161TiDXQB4VrXi4ft2HKevzZL9qDjeczhy7Ibv79Xbqfa8BQKoUcjrguqCzS3TLs1bboPz/SFF+Wtg870Udo0y4QlC/XRpBcD8v0jrJQT2XS9CYh8ttU/zO1UPgIonoLDPQRdDGWAqH6lCk3kAijd6FQVt5Q3iSxUN9B7goyvJQd0A/QfaegDbqlKVAADjfOS+F3oXdHDVkvQf3AZA5qVxE+0mARKfFNLkV2JzBn48BP0R2n2ikk8Vb7gAAp+d10JXQUMPPtvPrj2tZLFNW6ZvO8aMsVsbxTKx/ooEgPVvodcm5gozMUtQs9hqR4MxZCwTJZEAYMwNsF6SmCPMxE3oBnltTCWR7aZUxmEYLYliWuZtIgFgdXeZZdgJf8zhfp48OarxliUxpmU3gWDKRLjEx4uyY95crX9FnTir92UpNsKBb/NaRfjdYmopDkk9wJ0wbKXgbyxtdJqIRnk2prENxIYxZWz7SBIBVvSxCP9HLTd0teTViFxZbPuc6ej2FsLrpzR6ntOn95GP3V6u7/rAg+MIeDk8L2f9GrMtAh7POsdKe4AyhjjDQLf35Q0+2xvlvS/Qtldyu0+Me3sAsH0YcvDV4chKOQNKPwxfGfxH6uEzsPk6yvkhdGw9ymtyGcdQ/wRgc5p+xAmwHL8fZWJA8hZ8dSN2+JxPfQ26BQ3kZ9e6CUjA3nIudCZ0OnQq1H0XGYP9kOQO4FN4zI0TgIMh+MFHm/BsLg0yr8scs3dcg7MgB1+bO1K4rSOHxl6DH4puInYFAqABl2F/L7T0noA2PoSfOSsFueKHDB+O1VpHRA5HBm7jPUezPpuzd5wEEnS1Rw28A9tGB78LdbggF85g/OaW37KDDjLaUFGiXupFGFD7CMjBr62VyMGTslHCWDPmD7oegM5xfFutcggFuGtxaZDrPpqlVmc15wc5RsC/ODnivce4Ovi+FeS8ug0VXY3Cns9Q4EHYMsiFszfaL/xGgRbkDEDmNY3IEb+UxMkxPkO517bDeEVCBhdkdza7Lcel8eWKSRMRiE60zXCB2kdADr60KiWH60lKybGCPcAaZOAYd3bfvE7zhuwDqEnrITAUTeKNJ+8veBnpIAGCn92ChpjkRKDRd/453bJsvhAwAvhCWmk9RgClgfHllhHAF9JK6zECKA2ML7eMAL6QVlqPEUBpYHy5ZQTwhbTSeowASgPjyy0jgC+kldZjBFAaGF9uGQF8Ia20HiOA0sD4cssI4AtppfUYAZQGxpdbRgBfSCutxwigNDC+3DIC+EJaaT1GAKWB8eWWEcAX0krr4bBw1bIDA9QPYQnEofC0E2NZLx2l2t2Cc7swvvrAO1jZGj5PwRjccRfp9VktAdZhqcaf/UXk8NG+4M3HiPd7vyIyWeGUy/VbRH765yJh415/dIrIPbdhmk895vPEC67Dvrph4d1nRL6/Gn/rUTaT7lxrhw3Bmu63iiy/7lxaM/fOYKrl/Y+K/P2Fyl6wN/j2zZiQV7YCcOU8Po6ouwf4xRPVg09QTneL/OQxkZf3+ICo/zp++c/qwWcJ3R8We7QXOD1WkagiwLY3RX7zZDp0zvKs+x2mMAHYZgrvUR4BAdIIp+D8AD3FKUXzrlQRYM3TIuxO08peLB2x8dW01o2xe+wZnN24bKWVg7ihXb81rXXj7VQR4OU3sjd4c4482WupnGPznsrHKh3ZkiNPpbJqTVdFgCM5lonIk6dW0OL5/5djkZpm+xz3XxUBejJ0/64RzZ7aegbX9ayS5TKXteys9qoIkNV5s68dASNA7RgGXYIRIOjw1e68EaB2DIMuwQgQdPhqd94IUDuGQZdgBAg6fLU7bwSoHcOgSzACBB2+2p1XRYC2wsK1tTfKZwl5XM6Tp1FtUkWAkVwdN6OMypEnYxVVzUdxueeMclGOPBmrSG2uigBXXp7a717DPHl6M9dhZ+aE7IXkyZO9lnQ5VBHgloXpnHZWo/E3DYtmu1/N2d6a0ecLsZLv9R9pjq9JtaoiwHWzRJZ+PMnN5LR7vixy/vDkY75Sr5kmsuyT6Wu7+0sizb5sxb1VRQA69t1lIldNjLuYvP/VG/ScSatuEeHI3/7ktkUin7+mPyu/x9WNCmbz+b38V+tEHsZYOw6mjAvnBdx/u8gnroynNn//LMYFrH5S5OcY1Fo6TnHMyOKw8MVNvlwloaSSAM7Rd98XeW5HNDEEQ8E7McliPrrcdnX9lvNY5MRJkWfhM8f+DRlcnBjyMfqMfY2imgAaAWs1nxSfS60Gtc72GAF0xsWbV0YAb1DrrMgIoDMu3rwyAniDWmdFRgCdcfHmlRHAG9Q6KzIC6IyLN6+MAN6g1lmREUBnXLx5ZQTwBrXOiowAOuPizSsjgDeodVbUrtOt9F4dPibyyj6RSzA8bNJYkQs60ufNY8lP1G++JfI2FobgwJWx+NYfsgRLAH5v53JyL71+Dv5B6M/mTiqOE1x0lcj08SK1DjXn4JQdB0SefkXkKSgXsuICVU7mdYo8sAKLQY52KWFtgxwPwDPwzgdFjuNsrCbnDSuepbOvKPYODNJ4KIefdwwtrj7K/Kew7BxX7jr6XnGFT5KLC1Ax2K/u739VLw70XL1K5Iox1bzReSxIAtz1sMiGOqy0xR6DS8zUY5mZxXNEHvqGziBX8woQhCVHcO2tR/DZanbl9Qg+y6JP78C30CQ4AuzHIsxahZeO0CQ4AgzHtVurDAvwljo4AszAnT1nBGmTiy8UmZFjmliz2xEcAQjYt25qNmzl9X/zC+VpIaQESYAvLhD52o0igxV4Tx/oS9Z5jVrIEeRjoANvJ1bq/vW/RJ7ZLnIMz/A+he8SOJdx5Wd0/hFEWiyCJoBrJKdlcaHpDdtEnn9NhMTIsoK3K6faln9ZMxPT1xfMEPkU3jLOnSwySNNKD9Wcr3KsJQhQ2j4Gn2/wtu4V2Y3/7+HjGZX/PVQ6b680L58y+LbQ6TTcdM7Bm8TpuMHTPCWttB1pf7ckAao1/sQpkZN47XvydPEVME/iDrwyHj6kuB2B/YEkA44AAym4adqq4D46jZtm0ygESICSGfiNqsrKVYjAhyRAl0LHzCU/CHSRAHhoMhmgCBwkAar8ReMAhWXgNPtFEuDxgdNea2kJAo/zMRCvPgqXgYtLDtrP1kaAIyvGD2pra8NrEXmgtdtqrUtA4MeMfeFtNnoBvv/CJxWZkmBoSa2HAL6cyCwQ4DTvATB0ug0vRmU5FIucmbQ4Aozx8ijmUiAAG4yETdishMZGvfOISQshwNiujGJdaFbhEhBvIC4HS/D791AMcjJpIQTeRVtuR/CfiLeptwdwiZEB18Be79JsGzwCjOXC0uCzVWUEYCIMt0Ovx+5S6L+h9r0AIAQmjBljt5SxZEyT/C+7BCQZ4bKAIRLyWeg06Dgo3xmkygs7Ez8I9KAaPtsfgu6CrkXQMQTGxBAwBAwBQ8AQMAQMAUPAEChB4P/jL7P6/eWMLgAAAABJRU5ErkJggg==",class:"logo-box__icon",alt:""}),s("div",{class:"logo-box__text"},"PikPak")],-1),q={class:"login-box"},$=g("\u8BB0\u4F4F\u767B\u9646"),ee=g("\u767B\u9646"),ae=s("a",{target:"_blank",href:"https://i.mypikpak.com/v1/file/center/account/v1/password/?type=forget_password&locale=zh-cn",class:"forget-password"},"\u5FD8\u8BB0\u5BC6\u7801",-1),ue={class:"login-other"},te=g(" \u624B\u673A\u767B\u9646 "),Ae=g(" APP\u5185\u8C37\u6B4C\u767B\u5F55\u7684\u8D26\u53F7\u8BF7\u5148\u901A\u8FC7\u5FD8\u8BB0\u5BC6\u7801\u8BBE\u7F6E\u5BC6\u7801\u540E\u767B\u5F55 "),de=j({setup(o){const e=B({username:"",password:""}),A=y(),c=B(!1),p=M(),D=N(),f=()=>{if(!e.value.password||!e.value.username)return!1;c.value=!0,x.post("https://user.mypikpak.com/v1/auth/signin",E({captcha_token:"",client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg"},e.value)).then(l=>{l.data&&l.data.access_token&&(window.localStorage.setItem("pikpakLogin",JSON.stringify(l.data)),d.value?window.localStorage.setItem("pikpakLoginData",JSON.stringify(e.value)):window.localStorage.removeItem("pikpakLoginData"),D.success("\u767B\u5F55\u6210\u529F"),p.push("/"),p.push((A.query.redirect||"/")+""))}).catch(()=>{c.value=!1})},d=B(!1),Q=K(),h=()=>{d.value&&Q.warning({title:"\u8B66\u544A",content:"\u8BB0\u4F4F\u767B\u9646\u662F\u6307\u6D4F\u89C8\u5668\u672C\u5730\u660E\u6587\u4FDD\u5B58\u7528\u6237\u540D\u5BC6\u7801\u7528\u4E8E\u4E0B\u6B21\u81EA\u52A8\u767B\u9646\uFF0C\u8BF7\u52FF\u5728\u975E\u4FE1\u4EFB\u8BBE\u5907\u9009\u62E9",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{},onNegativeClick:()=>{d.value=!1}})},F=()=>{x.get("https://api-drive.mypikpak.com/package/v1/apk/url/367394").then(l=>{window.open(l.data.apk_url)})};return(l,n)=>{const b=S("router-link");return U(),H("div",T,[W,s("div",G,[J,s("div",q,[a(u(O),{"label-align":"left","label-placement":"left","label-width":"0",class:"login-form"},{default:t(()=>[a(u(r),{label:""},{default:t(()=>[a(u(m),{value:e.value.username,"onUpdate:value":n[0]||(n[0]=i=>e.value.username=i),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["value"])]),_:1}),a(u(r),{label:""},{default:t(()=>[a(u(m),{value:e.value.password,"onUpdate:value":n[1]||(n[1]=i=>e.value.password=i),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",onKeyup:X(f,["enter"]),type:"password","show-password-on":"mousedown"},null,8,["value","onKeyup"])]),_:1}),a(u(r),{label:""},{default:t(()=>[a(u(Z),{checked:d.value,"onUpdate:checked":[n[2]||(n[2]=i=>d.value=i),h]},{default:t(()=>[$]),_:1},8,["checked"])]),_:1}),a(u(r),null,{default:t(()=>[a(u(V),{type:"primary",class:"block",loading:c.value,onClick:f},{default:t(()=>[ee]),_:1},8,["loading"])]),_:1}),a(u(r),{label:""},{default:t(()=>[ae,s("a",{href:"javascript:;",onClick:F},"\u53BB\u4E0B\u8F7D\u6CE8\u518C\u5F975\u5929VIP")]),_:1})]),_:1}),s("div",ue,[a(u(L),{inline:""},{default:t(()=>[a(u(k),null,{trigger:t(()=>[a(b,{to:"sms"},{default:t(()=>[a(u(w),{color:"#306eff",size:32},{default:t(()=>[a(u(z))]),_:1})]),_:1})]),default:t(()=>[te]),_:1}),a(u(k),null,{trigger:t(()=>[a(u(w),{color:"#306eff",size:32},{default:t(()=>[a(u(Y))]),_:1})]),default:t(()=>[Ae]),_:1})]),_:1})])])])])}}});export{de as default}; +var I=Object.defineProperty;var v=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,R=Object.prototype.propertyIsEnumerable;var C=(o,e,A)=>e in o?I(o,e,{enumerable:!0,configurable:!0,writable:!0,value:A}):o[e]=A,E=(o,e)=>{for(var A in e||(e={}))P.call(e,A)&&C(o,A,e[A]);if(v)for(var A of v(e))R.call(e,A)&&C(o,A,e[A]);return o};import{d as j,r as B,m as y,l as M,u as N,p as K,a as S,b as U,s as H,E as s,e as a,f as u,ao as O,w as t,ad as L,am as r,R as m,aQ as X,aT as Z,Q as V,F as k,I as w,aU as z,aV as Y,y as g}from"./vendor.64da71ad.js";import{_}from"./phone-pc2.dbf6d71e.js";import{i as x}from"./index.e931b941.js";const T={class:"login-page"},W=s("div",{class:"down"},[s("img",{src:_})],-1),G={class:"login"},J=s("div",{class:"logo-box"},[s("img",{src:"data:image/png;base64,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",class:"logo-box__icon",alt:""}),s("div",{class:"logo-box__text"},"PikPak")],-1),q={class:"login-box"},$=g("\u8BB0\u4F4F\u767B\u9646"),ee=g("\u767B\u9646"),ae=s("a",{target:"_blank",href:"https://i.mypikpak.com/v1/file/center/account/v1/password/?type=forget_password&locale=zh-cn",class:"forget-password"},"\u5FD8\u8BB0\u5BC6\u7801",-1),ue={class:"login-other"},te=g(" \u624B\u673A\u767B\u9646 "),Ae=g(" APP\u5185\u8C37\u6B4C\u767B\u5F55\u7684\u8D26\u53F7\u8BF7\u5148\u901A\u8FC7\u5FD8\u8BB0\u5BC6\u7801\u8BBE\u7F6E\u5BC6\u7801\u540E\u767B\u5F55 "),de=j({setup(o){const e=B({username:"",password:""}),A=y(),c=B(!1),p=M(),D=N(),f=()=>{if(!e.value.password||!e.value.username)return!1;c.value=!0,x.post("https://user.mypikpak.com/v1/auth/signin",E({captcha_token:"",client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg"},e.value)).then(l=>{l.data&&l.data.access_token&&(window.localStorage.setItem("pikpakLogin",JSON.stringify(l.data)),d.value?window.localStorage.setItem("pikpakLoginData",JSON.stringify(e.value)):window.localStorage.removeItem("pikpakLoginData"),D.success("\u767B\u5F55\u6210\u529F"),p.push("/"),p.push((A.query.redirect||"/")+""))}).catch(()=>{c.value=!1})},d=B(!1),Q=K(),h=()=>{d.value&&Q.warning({title:"\u8B66\u544A",content:"\u8BB0\u4F4F\u767B\u9646\u662F\u6307\u6D4F\u89C8\u5668\u672C\u5730\u660E\u6587\u4FDD\u5B58\u7528\u6237\u540D\u5BC6\u7801\u7528\u4E8E\u4E0B\u6B21\u81EA\u52A8\u767B\u9646\uFF0C\u8BF7\u52FF\u5728\u975E\u4FE1\u4EFB\u8BBE\u5907\u9009\u62E9",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{},onNegativeClick:()=>{d.value=!1}})},F=()=>{x.get("https://api-drive.mypikpak.com/package/v1/apk/url/367394").then(l=>{window.open(l.data.apk_url)})};return(l,n)=>{const b=S("router-link");return U(),H("div",T,[W,s("div",G,[J,s("div",q,[a(u(O),{"label-align":"left","label-placement":"left","label-width":"0",class:"login-form"},{default:t(()=>[a(u(r),{label:""},{default:t(()=>[a(u(m),{value:e.value.username,"onUpdate:value":n[0]||(n[0]=i=>e.value.username=i),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["value"])]),_:1}),a(u(r),{label:""},{default:t(()=>[a(u(m),{value:e.value.password,"onUpdate:value":n[1]||(n[1]=i=>e.value.password=i),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",onKeyup:X(f,["enter"]),type:"password","show-password-on":"mousedown"},null,8,["value","onKeyup"])]),_:1}),a(u(r),{label:""},{default:t(()=>[a(u(Z),{checked:d.value,"onUpdate:checked":[n[2]||(n[2]=i=>d.value=i),h]},{default:t(()=>[$]),_:1},8,["checked"])]),_:1}),a(u(r),null,{default:t(()=>[a(u(V),{type:"primary",class:"block",loading:c.value,onClick:f},{default:t(()=>[ee]),_:1},8,["loading"])]),_:1}),a(u(r),{label:""},{default:t(()=>[ae,s("a",{href:"javascript:;",onClick:F},"\u53BB\u4E0B\u8F7D\u6CE8\u518C\u5F975\u5929VIP")]),_:1})]),_:1}),s("div",ue,[a(u(L),{inline:""},{default:t(()=>[a(u(k),null,{trigger:t(()=>[a(b,{to:"sms"},{default:t(()=>[a(u(w),{color:"#306eff",size:32},{default:t(()=>[a(u(z))]),_:1})]),_:1})]),default:t(()=>[te]),_:1}),a(u(k),null,{trigger:t(()=>[a(u(w),{color:"#306eff",size:32},{default:t(()=>[a(u(Y))]),_:1})]),default:t(()=>[Ae]),_:1})]),_:1})])])])])}}});export{de as default}; diff --git a/assets/register.52401868.js b/assets/register.eb007e2e.js similarity index 99% rename from assets/register.52401868.js rename to assets/register.eb007e2e.js index a59284341..bf81b97ec 100644 --- a/assets/register.52401868.js +++ b/assets/register.eb007e2e.js @@ -1 +1 @@ -import{d as R,r as n,l as M,u as P,a6 as j,a as N,b as K,s as O,E as d,e as u,f as l,ao as S,w as o,F as Y,am as i,R as v,Q as x,y as p,A as U,ap as T,aQ as z,aT as W,I as Z,aV as H,k as G}from"./vendor.64da71ad.js";import{_ as L}from"./phone-pc2.dbf6d71e.js";import{i as f}from"./index.50387d2f.js";const X={class:"login-page"},V=d("div",{class:"down"},[d("img",{src:L})],-1),q={class:"login"},J=d("div",{class:"logo-box"},[d("img",{src:"data:image/png;base64,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",class:"logo-box__icon",alt:""}),d("div",{class:"logo-box__text"},"PikPak")],-1),$={class:"login-box"},ee=p("\u63A5\u53D7\u9080\u8BF7\u83B7\u5F9710\u5929vip"),ae=p("\u6CE8\u518C"),ue=p("\u5DF2\u6709\u8D26\u53F7\uFF1F\u70B9\u51FB\u767B\u5F55"),te=p(" APP\u5185\u8C37\u6B4C\u767B\u5F55\u7684\u8D26\u53F7\u8BF7\u5148\u901A\u8FC7\u5FD8\u8BB0\u5BC6\u7801\u8BBE\u7F6E\u5BC6\u7801\u540E\u767B\u5F55 "),ne=R({setup(le){const e=n({email:"",password:"",password1:"",name:"",verification_code:"",captcha_token:"",verification_id:""}),C=n(),F=(s,a)=>!a||a===e.value.password,h=n(!1),D={email:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1",trigger:"blur"},{type:"email",message:"\u8BF7\u8F93\u5165\u90AE\u7BB1",trigger:"blur"}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801",trigger:"blur"},{min:6,max:16,message:"16\u4F4D\u5BC6\u7801\u4F7F\u7528\u5B57\u6BCD\u6570\u5B57\u548C\u7B26\u53F7\u6DF7\u5408",trigger:"blur"},{type:"pattern",pattern:/^(?:(?=.*[a-zA-Z])(?=.*[\d])|(?=.*[!#+,.\\=:=@-])(?=.*[\d])|(?=.*[!#+,.\\=:=@-])(?=.*[a-zA-Z])).+$/g,message:"6-16\u4F4D\u5BC6\u7801\u4F7F\u7528\u5B57\u6BCD\u6570\u5B57\u548C\u7B26\u53F7\u6DF7\u5408",trigger:"blur"}],password1:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801",trigger:"blur"},{validator:F,message:"\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4",trigger:"blur"}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",trigger:"blur"}],verification_code:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",trigger:"blur"}]},g=n(!1),B=n(!1),E=M(),b=P(),Q=(()=>{let s=32,a="abcdefhijkmnprstwxyz2345678",c=a.length,t="";for(let m=0;mf.post("https://user.mypikpak.com/v1/shield/captcha/init?client_id=YNxT9w7GMdWvEOKa",{action:e.value.captcha_token?"POST:/v1/auth/signup":"POST:/v1/auth/verification",captcha_token:e.value.captcha_token||"",client_id:"YNxT9w7GMdWvEOKa",device_id:Q,meta:{email:e.value.email},redirect_uri:"xlaccsdk01://xunlei.com/callback?state=harbor"}).then(a=>{a.data&&a.data.captcha_token&&(e.value.captcha_token=a.data.captcha_token)}),I=()=>{if(e.value.email)e.value.captcha_token="",g.value=!0,w().then(()=>{f.post("https://user.mypikpak.com/v1/auth/verification?client_id=YNxT9w7GMdWvEOKa",{captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",email:e.value.email,locale:"zh-cn",target:"ANY"}).then(s=>{e.value.verification_id=s.data.verification_id,y()}).finally(()=>{g.value=!1})}).catch(()=>{g.value=!1});else return!1},r=n(60),A=n(),y=()=>{r.value=59,A.value&&clearInterval(A.value),A.value=setInterval(()=>{if(r.value--,r.value<=0){clearInterval(A.value),r.value=60;return}},1e3)},k=s=>{s.preventDefault(),C.value.validate(a=>{a||(B.value=!0,f.post("https://user.mypikpak.com/v1/auth/verification/verify?client_id=YNxT9w7GMdWvEOKa",{client_id:"YNxT9w7GMdWvEOKa",verification_id:e.value.verification_id,verification_code:e.value.verification_code}).then(c=>{w().then(()=>{f.post("https://user.mypikpak.com/v1/auth/signup?client_id=YNxT9w7GMdWvEOKa",{captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg",email:e.value.email,name:e.value.name,password:e.value.password,verification_token:c.data.verification_token}).then(t=>{h.value&&_(t.data),window.localStorage.setItem("pikpakLogin",JSON.stringify(t.data)),window.localStorage.removeItem("pikpakLoginData"),b.success("\u6CE8\u518C\u6210\u529F"),E.push("/")}).catch(t=>{B.value=!1})})}).catch(c=>{B.value=!1}))})},_=s=>{G.get("https://invite.z7.workers.dev/"+s.sub,{headers:{authorization:s.token_type+" "+s.access_token}}).then(a=>{})};return j(()=>{A.value&&clearInterval(A.value)}),(s,a)=>{const c=N("router-link");return K(),O("div",X,[V,d("div",q,[J,d("div",$,[u(l(S),{"label-align":"left",style:{"padding-top":"30px"},model:e.value,rules:D,ref:(t,m)=>{m.formRef=t,C.value=t},"label-placement":"left","label-width":"0",class:"login-form"},{default:o(()=>[u(l(i),{path:"email"},{default:o(()=>[u(l(v),{value:e.value.email,"onUpdate:value":a[0]||(a[0]=t=>e.value.email=t),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["value"])]),_:1}),u(l(i),{path:"verification_code"},{default:o(()=>[u(l(T),null,{default:o(()=>[u(l(v),{value:e.value.verification_code,"onUpdate:value":a[1]||(a[1]=t=>e.value.verification_code=t),placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},null,8,["value"]),u(l(x),{onClick:I,disabled:r.value<60,loading:g.value},{default:o(()=>[p(U(r.value>=60?"\u53D1\u9001\u9A8C\u8BC1\u7801":"\u91CD\u65B0\u53D1\u9001 "+r.value+"s"),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),u(l(i),{path:"name"},{default:o(()=>[u(l(v),{value:e.value.name,"onUpdate:value":a[2]||(a[2]=t=>e.value.name=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"},null,8,["value"])]),_:1}),u(l(i),{path:"password"},{default:o(()=>[u(l(v),{value:e.value.password,"onUpdate:value":a[3]||(a[3]=t=>e.value.password=t),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",type:"password","show-password-on":"mousedown"},null,8,["value"])]),_:1}),u(l(i),{path:"password1"},{default:o(()=>[u(l(v),{disabled:!e.value.password,value:e.value.password1,"onUpdate:value":a[4]||(a[4]=t=>e.value.password1=t),placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801",onKeyup:z(k,["enter"]),type:"password","show-password-on":"mousedown"},null,8,["disabled","value","onKeyup"])]),_:1}),u(l(i),{label:""},{default:o(()=>[u(l(W),{checked:h.value,"onUpdate:checked":a[5]||(a[5]=t=>h.value=t)},{default:o(()=>[ee]),_:1},8,["checked"])]),_:1}),u(l(i),null,{default:o(()=>[u(l(x),{type:"primary",class:"block",loading:B.value,onClick:k},{default:o(()=>[ae]),_:1},8,["loading"])]),_:1}),u(l(i),{label:""},{default:o(()=>[u(c,{to:"/login",class:"forget-password"},{default:o(()=>[ue]),_:1})]),_:1})]),_:1},8,["model"]),u(l(Y),null,{trigger:o(()=>[u(l(Z),{color:"#306eff",size:32,class:"google-tips"},{default:o(()=>[u(l(H))]),_:1})]),default:o(()=>[te]),_:1})])])])}}});export{ne as default}; +import{d as R,r as n,l as M,u as P,a6 as j,a as N,b as K,s as O,E as d,e as u,f as l,ao as S,w as o,F as Y,am as i,R as v,Q as x,y as p,A as U,ap as T,aQ as z,aT as W,I as Z,aV as H,k as G}from"./vendor.64da71ad.js";import{_ as L}from"./phone-pc2.dbf6d71e.js";import{i as f}from"./index.e931b941.js";const X={class:"login-page"},V=d("div",{class:"down"},[d("img",{src:L})],-1),q={class:"login"},J=d("div",{class:"logo-box"},[d("img",{src:"data:image/png;base64,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",class:"logo-box__icon",alt:""}),d("div",{class:"logo-box__text"},"PikPak")],-1),$={class:"login-box"},ee=p("\u63A5\u53D7\u9080\u8BF7\u83B7\u5F9710\u5929vip"),ae=p("\u6CE8\u518C"),ue=p("\u5DF2\u6709\u8D26\u53F7\uFF1F\u70B9\u51FB\u767B\u5F55"),te=p(" APP\u5185\u8C37\u6B4C\u767B\u5F55\u7684\u8D26\u53F7\u8BF7\u5148\u901A\u8FC7\u5FD8\u8BB0\u5BC6\u7801\u8BBE\u7F6E\u5BC6\u7801\u540E\u767B\u5F55 "),ne=R({setup(le){const e=n({email:"",password:"",password1:"",name:"",verification_code:"",captcha_token:"",verification_id:""}),C=n(),F=(s,a)=>!a||a===e.value.password,h=n(!1),D={email:[{required:!0,message:"\u8BF7\u8F93\u5165\u90AE\u7BB1",trigger:"blur"},{type:"email",message:"\u8BF7\u8F93\u5165\u90AE\u7BB1",trigger:"blur"}],password:[{required:!0,message:"\u8BF7\u8F93\u5165\u5BC6\u7801",trigger:"blur"},{min:6,max:16,message:"16\u4F4D\u5BC6\u7801\u4F7F\u7528\u5B57\u6BCD\u6570\u5B57\u548C\u7B26\u53F7\u6DF7\u5408",trigger:"blur"},{type:"pattern",pattern:/^(?:(?=.*[a-zA-Z])(?=.*[\d])|(?=.*[!#+,.\\=:=@-])(?=.*[\d])|(?=.*[!#+,.\\=:=@-])(?=.*[a-zA-Z])).+$/g,message:"6-16\u4F4D\u5BC6\u7801\u4F7F\u7528\u5B57\u6BCD\u6570\u5B57\u548C\u7B26\u53F7\u6DF7\u5408",trigger:"blur"}],password1:[{required:!0,message:"\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801",trigger:"blur"},{validator:F,message:"\u4E24\u6B21\u5BC6\u7801\u8F93\u5165\u4E0D\u4E00\u81F4",trigger:"blur"}],name:[{required:!0,message:"\u8BF7\u8F93\u5165\u7528\u6237\u540D",trigger:"blur"}],verification_code:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",trigger:"blur"}]},g=n(!1),B=n(!1),E=M(),b=P(),Q=(()=>{let s=32,a="abcdefhijkmnprstwxyz2345678",c=a.length,t="";for(let m=0;mf.post("https://user.mypikpak.com/v1/shield/captcha/init?client_id=YNxT9w7GMdWvEOKa",{action:e.value.captcha_token?"POST:/v1/auth/signup":"POST:/v1/auth/verification",captcha_token:e.value.captcha_token||"",client_id:"YNxT9w7GMdWvEOKa",device_id:Q,meta:{email:e.value.email},redirect_uri:"xlaccsdk01://xunlei.com/callback?state=harbor"}).then(a=>{a.data&&a.data.captcha_token&&(e.value.captcha_token=a.data.captcha_token)}),I=()=>{if(e.value.email)e.value.captcha_token="",g.value=!0,w().then(()=>{f.post("https://user.mypikpak.com/v1/auth/verification?client_id=YNxT9w7GMdWvEOKa",{captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",email:e.value.email,locale:"zh-cn",target:"ANY"}).then(s=>{e.value.verification_id=s.data.verification_id,y()}).finally(()=>{g.value=!1})}).catch(()=>{g.value=!1});else return!1},r=n(60),A=n(),y=()=>{r.value=59,A.value&&clearInterval(A.value),A.value=setInterval(()=>{if(r.value--,r.value<=0){clearInterval(A.value),r.value=60;return}},1e3)},k=s=>{s.preventDefault(),C.value.validate(a=>{a||(B.value=!0,f.post("https://user.mypikpak.com/v1/auth/verification/verify?client_id=YNxT9w7GMdWvEOKa",{client_id:"YNxT9w7GMdWvEOKa",verification_id:e.value.verification_id,verification_code:e.value.verification_code}).then(c=>{w().then(()=>{f.post("https://user.mypikpak.com/v1/auth/signup?client_id=YNxT9w7GMdWvEOKa",{captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg",email:e.value.email,name:e.value.name,password:e.value.password,verification_token:c.data.verification_token}).then(t=>{h.value&&_(t.data),window.localStorage.setItem("pikpakLogin",JSON.stringify(t.data)),window.localStorage.removeItem("pikpakLoginData"),b.success("\u6CE8\u518C\u6210\u529F"),E.push("/")}).catch(t=>{B.value=!1})})}).catch(c=>{B.value=!1}))})},_=s=>{G.get("https://invite.z7.workers.dev/"+s.sub,{headers:{authorization:s.token_type+" "+s.access_token}}).then(a=>{})};return j(()=>{A.value&&clearInterval(A.value)}),(s,a)=>{const c=N("router-link");return K(),O("div",X,[V,d("div",q,[J,d("div",$,[u(l(S),{"label-align":"left",style:{"padding-top":"30px"},model:e.value,rules:D,ref:(t,m)=>{m.formRef=t,C.value=t},"label-placement":"left","label-width":"0",class:"login-form"},{default:o(()=>[u(l(i),{path:"email"},{default:o(()=>[u(l(v),{value:e.value.email,"onUpdate:value":a[0]||(a[0]=t=>e.value.email=t),placeholder:"\u8BF7\u8F93\u5165\u90AE\u7BB1"},null,8,["value"])]),_:1}),u(l(i),{path:"verification_code"},{default:o(()=>[u(l(T),null,{default:o(()=>[u(l(v),{value:e.value.verification_code,"onUpdate:value":a[1]||(a[1]=t=>e.value.verification_code=t),placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},null,8,["value"]),u(l(x),{onClick:I,disabled:r.value<60,loading:g.value},{default:o(()=>[p(U(r.value>=60?"\u53D1\u9001\u9A8C\u8BC1\u7801":"\u91CD\u65B0\u53D1\u9001 "+r.value+"s"),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),u(l(i),{path:"name"},{default:o(()=>[u(l(v),{value:e.value.name,"onUpdate:value":a[2]||(a[2]=t=>e.value.name=t),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u540D"},null,8,["value"])]),_:1}),u(l(i),{path:"password"},{default:o(()=>[u(l(v),{value:e.value.password,"onUpdate:value":a[3]||(a[3]=t=>e.value.password=t),placeholder:"\u8BF7\u8F93\u5165\u5BC6\u7801",type:"password","show-password-on":"mousedown"},null,8,["value"])]),_:1}),u(l(i),{path:"password1"},{default:o(()=>[u(l(v),{disabled:!e.value.password,value:e.value.password1,"onUpdate:value":a[4]||(a[4]=t=>e.value.password1=t),placeholder:"\u8BF7\u518D\u6B21\u8F93\u5165\u5BC6\u7801",onKeyup:z(k,["enter"]),type:"password","show-password-on":"mousedown"},null,8,["disabled","value","onKeyup"])]),_:1}),u(l(i),{label:""},{default:o(()=>[u(l(W),{checked:h.value,"onUpdate:checked":a[5]||(a[5]=t=>h.value=t)},{default:o(()=>[ee]),_:1},8,["checked"])]),_:1}),u(l(i),null,{default:o(()=>[u(l(x),{type:"primary",class:"block",loading:B.value,onClick:k},{default:o(()=>[ae]),_:1},8,["loading"])]),_:1}),u(l(i),{label:""},{default:o(()=>[u(c,{to:"/login",class:"forget-password"},{default:o(()=>[ue]),_:1})]),_:1})]),_:1},8,["model"]),u(l(Y),null,{trigger:o(()=>[u(l(Z),{color:"#306eff",size:32,class:"google-tips"},{default:o(()=>[u(l(H))]),_:1})]),default:o(()=>[te]),_:1})])])])}}});export{ne as default}; diff --git a/assets/setting.72564549.js b/assets/setting.73c704e7.js similarity index 93% rename from assets/setting.72564549.js rename to assets/setting.73c704e7.js index d0bccf1de..9e1f05b3a 100644 --- a/assets/setting.72564549.js +++ b/assets/setting.73c704e7.js @@ -1,4 +1,4 @@ -import{d as P,r as _,p as U,o as J,a as $,b as f,s as D,e,f as t,ax as M,w as a,ay as d,E as l,al as h,I as v,az as k,R as B,Q as g,am as r,aA as w,c as L,ak as V,D as A,ao as C,T as z,ad as y,aB as R,y as i}from"./vendor.64da71ad.js";import{p as b,i as G}from"./index.50387d2f.js";var Q="/pikpak/assets/aria2-tip-1.e9ebfae4.png",H="/pikpak/assets/aria2-tip-2.f3636f8d.png";const K={class:"list-page"},Z=i(" \u7ED1\u5B9Atelegram "),q=l("p",null,null,-1),W=i("Telegram\u7ED1\u5B9A"),X=l("a",{href:"https://t.me/PikPak_Bot",target:"_blank"},"Telegram\u673A\u5668\u4EBA\u5730\u5740",-1),Y=i("aria2\u8BBE\u7F6E "),uu=i("\u9009\u62E9\u6587\u4EF6\u5939\u65F6\u4FDD\u5B58\u6587\u4EF6\u5939\u7ED3\u6784"),eu=i("\u9009\u62E9\u6587\u4EF6\u5939\u65F6\u4EC5\u4FDD\u5B58\u6587\u4EF6"),tu=l("img",{src:Q,alt:""},null,-1),au=l("br",null,null,-1),lu=l("br",null,null,-1),ou=l("img",{src:H,alt:""},null,-1),su=i("\u6D4B\u8BD5\u5E76\u4FDD\u5B58"),nu=i("\u81EA\u52A8\u767B\u5F55\u8BBE\u7F6E "),iu=i("\u4FDD\u5B58"),ru=l("p",null,null,-1),du=i("\u4FDD\u5B58\u8BBE\u7F6E"),pu=i("\u6062\u590D\u9ED8\u8BA4"),Fu=l("a",{href:"https://mypikpak.com/",target:"_blank",class:"n-button"},"\u5B98\u65B9\u7F51\u7AD9",-1),Eu=l("a",{href:"https://t.me/pikpak_userservice",target:"_blank",class:"n-button"},"\u5B98\u65B9\u4EA4\u6D41\u7FA4",-1),_u=l("a",{href:"https://github.com/tjsky/pikpak",target:"_blank",class:"n-button"},"\u5F00\u6E90\u4ED3\u5E93",-1),Bu=l("a",{href:"https://www.tjsky.net/?p=201",target:"_blank",class:"n-button"},"\u90E8\u7F72\u6559\u7A0B",-1),cu=l("a",{href:"https://t.me/pikpak_userservice",target:"_blank"},"\u95EE\u9898\u53CD\u9988",-1),mu=l("br",null,null,-1),gu=l("a",{href:"https://github.com/MotooriKashin/ef2/releases",target:"_blank",class:"n-button"},"\u5730\u5740\u4E00\uFF1A\u4E0B\u8F7D\u652F\u6301\u63D2\u4EF6",-1),fu=l("a",{href:"https://url71.ctfile.com/f/21226171-531688310-489b35",target:"_blank",class:"n-button"},"\u5730\u5740\u4E8C\uFF1A\u4E0B\u8F7D\u652F\u6301\u63D2\u4EF6\uFF08\u5BC6\u7801pikpak\uFF09",-1),hu=l("a",{href:"https://www.tjsky.net/?p=220#PCIDM",target:"_blank",class:"n-button"},"\u4F7F\u7528\u6559\u7A0B",-1),vu=l("br",null,null,-1),ku=i("\u5148\u7528\u7B2C\u4E00\u4E2A\u4E0B\u8F7D\u5730\u5740\uFF0C\u5982\u679C\u4F60\u5B9E\u5728\u65E0\u6CD5\u8BBF\u95EEgithub\u518D\u4F7F\u7528\u7B2C\u4E8C\u4E2A\u4E0B\u8F7D\u5730\u5740\uFF0C\u8C03\u7528IDM\u4E0B\u8F7D\u9700\u8981\u914D\u5408\u201C\u81EA\u5B9A\u4E49\u83DC\u5355\u201D\u529F\u80FD\u5B9E\u73B0\uFF0C\u8BF7\u67E5\u770B\u4E0A\u65B9\u7684\u4F7F\u7528\u6559\u7A0B "),Du=l("br",null,null,-1),yu=P({setup(wu){const x=_(["\u624B\u673A\u6CE8\u518C\u767B\u9646","\u6DFB\u52A0\u63A8\u5E7F\u4E0B\u8F7D","\u7ED1\u5B9ATelegram","\u76F4\u63A5\u5206\u4EAB\u529F\u80FD\uFF08\u4E0B\u7EBF\uFF09","\u4FEE\u6539\u4F20\u8F93\u81EA\u52A8\u8BF7\u6C42\u65B9\u5F0F","\u4F20\u8F93\u53EA\u663E\u793A\u4FDD\u5B58\u4E2D","\u81EA\u5B9A\u4E49\u83DC\u5355","\u8D44\u6E90\u5E93\u5206\u9875\uFF0C\u5206\u4EAB\u79D2\u4F20\u652F\u6301\u6587\u4EF6\u53CA","...."]),o=_({host:"",token:"",dir:!0}),S=()=>{let n={id:"",jsonrpc:"2.0",method:"aria2.getGlobalStat",params:[]};o.value.token&&n.params.splice(0,0,"token:"+o.value.token),fetch(o.value.host,{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}).then(u=>u.json()).then(u=>{u.error&&u.error.message?window.$message.error(u.error.message):u.result&&(window.localStorage.setItem("pikpakAria2",JSON.stringify(o.value)),window.$message.success("\u4FDD\u5B58\u6210\u529F"))}).catch(u=>console.error("Error:",u))},c=_(!1),p=_({username:"",password:""}),N=U(),I=()=>{c.value?N.warning({title:"\u8B66\u544A",content:"\u8BB0\u4F4F\u767B\u9646\u662F\u6307\u6D4F\u89C8\u5668\u672C\u5730\u660E\u6587\u4FDD\u5B58\u7528\u6237\u540D\u5BC6\u7801\u7528\u4E8E\u4E0B\u6B21\u81EA\u52A8\u767B\u9646\uFF0C\u8BF7\u52FF\u5728\u975E\u4FE1\u4EFB\u8BBE\u5907\u9009\u62E9",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{window.localStorage.setItem("pikpakLoginData",JSON.stringify(p.value))},onNegativeClick:()=>{}}):window.localStorage.removeItem("pikpakLoginData")},m=_(""),T=()=>{let n=m.value.split(` -`).filter(u=>u!="");window.localStorage.setItem("proxy",JSON.stringify(n)),window.localStorage.setItem("isSettingProxy","true")},j=()=>{window.localStorage.setItem("proxy",JSON.stringify(b)),window.localStorage.removeItem("isSettingProxy"),m.value=b.join(` +import{d as P,r as _,p as U,o as J,a as $,b as f,s as D,e,f as t,ax as M,w as a,ay as d,E as l,al as h,I as v,az as k,R as B,Q as g,am as r,aA as w,c as L,ak as V,D as A,ao as C,T as z,ad as b,aB as R,y as i}from"./vendor.64da71ad.js";import{p as y,i as G}from"./index.e931b941.js";var Q="/pikpak/assets/aria2-tip-1.e9ebfae4.png",H="/pikpak/assets/aria2-tip-2.f3636f8d.png";const K={class:"list-page"},Z=i(" \u7ED1\u5B9Atelegram "),q=l("p",null,null,-1),W=i("Telegram\u7ED1\u5B9A"),X=l("a",{href:"https://t.me/PikPak_Bot",target:"_blank"},"Telegram\u673A\u5668\u4EBA\u5730\u5740",-1),Y=i("aria2\u8BBE\u7F6E "),uu=i("\u9009\u62E9\u6587\u4EF6\u5939\u65F6\u4FDD\u5B58\u6587\u4EF6\u5939\u7ED3\u6784"),eu=i("\u9009\u62E9\u6587\u4EF6\u5939\u65F6\u4EC5\u4FDD\u5B58\u6587\u4EF6"),tu=l("img",{src:Q,alt:""},null,-1),au=l("br",null,null,-1),lu=l("br",null,null,-1),ou=l("img",{src:H,alt:""},null,-1),su=i("\u6D4B\u8BD5\u5E76\u4FDD\u5B58"),nu=i("\u81EA\u52A8\u767B\u5F55\u8BBE\u7F6E "),iu=i("\u4FDD\u5B58"),ru=l("p",null,null,-1),du=i("\u4FDD\u5B58\u8BBE\u7F6E"),pu=i("\u6062\u590D\u9ED8\u8BA4"),Fu=l("a",{href:"https://mypikpak.com/",target:"_blank",class:"n-button"},"\u5B98\u65B9\u7F51\u7AD9",-1),Eu=l("a",{href:"https://t.me/pikpak_userservice",target:"_blank",class:"n-button"},"\u5B98\u65B9\u4EA4\u6D41\u7FA4",-1),_u=l("a",{href:"https://github.com/tjsky/pikpak",target:"_blank",class:"n-button"},"\u5F00\u6E90\u4ED3\u5E93",-1),Bu=l("a",{href:"https://www.tjsky.net/?p=201",target:"_blank",class:"n-button"},"\u90E8\u7F72\u6559\u7A0B",-1),cu=l("a",{href:"https://t.me/pikpak_userservice",target:"_blank"},"\u95EE\u9898\u53CD\u9988",-1),mu=l("br",null,null,-1),gu=l("a",{href:"https://github.com/MotooriKashin/ef2/releases",target:"_blank",class:"n-button"},"\u5730\u5740\u4E00\uFF1A\u4E0B\u8F7D\u652F\u6301\u63D2\u4EF6",-1),fu=l("a",{href:"https://url71.ctfile.com/f/21226171-531688310-489b35",target:"_blank",class:"n-button"},"\u5730\u5740\u4E8C\uFF1A\u4E0B\u8F7D\u652F\u6301\u63D2\u4EF6\uFF08\u5BC6\u7801pikpak\uFF09",-1),hu=l("a",{href:"https://www.tjsky.net/?p=220#PCIDM",target:"_blank",class:"n-button"},"\u4F7F\u7528\u6559\u7A0B",-1),vu=l("br",null,null,-1),ku=i("\u5148\u7528\u7B2C\u4E00\u4E2A\u4E0B\u8F7D\u5730\u5740\uFF0C\u5982\u679C\u4F60\u5B9E\u5728\u65E0\u6CD5\u8BBF\u95EEgithub\u518D\u4F7F\u7528\u7B2C\u4E8C\u4E2A\u4E0B\u8F7D\u5730\u5740\uFF0C\u8C03\u7528IDM\u4E0B\u8F7D\u9700\u8981\u914D\u5408\u201C\u81EA\u5B9A\u4E49\u83DC\u5355\u201D\u529F\u80FD\u5B9E\u73B0\uFF0C\u8BF7\u67E5\u770B\u4E0A\u65B9\u7684\u4F7F\u7528\u6559\u7A0B "),Du=l("br",null,null,-1),bu=P({setup(wu){const x=_(["\u624B\u673A\u6CE8\u518C\u767B\u9646","\u6DFB\u52A0\u63A8\u5E7F\u4E0B\u8F7D","\u7ED1\u5B9ATelegram","\u76F4\u63A5\u5206\u4EAB\u529F\u80FD\uFF08\u4E0B\u7EBF\uFF09","\u4FEE\u6539\u4F20\u8F93\u81EA\u52A8\u8BF7\u6C42\u65B9\u5F0F","\u4F20\u8F93\u53EA\u663E\u793A\u4FDD\u5B58\u4E2D","\u81EA\u5B9A\u4E49\u83DC\u5355","\u8D44\u6E90\u5E93\u5206\u9875\uFF0C\u5206\u4EAB\u79D2\u4F20\u652F\u6301\u6587\u4EF6\u53CA","...."]),o=_({host:"",token:"",dir:!0}),S=()=>{let n={id:"",jsonrpc:"2.0",method:"aria2.getGlobalStat",params:[]};o.value.token&&n.params.splice(0,0,"token:"+o.value.token),fetch(o.value.host,{method:"POST",body:JSON.stringify(n),headers:new Headers({"Content-Type":"application/json"})}).then(u=>u.json()).then(u=>{u.error&&u.error.message?window.$message.error(u.error.message):u.result&&(window.localStorage.setItem("pikpakAria2",JSON.stringify(o.value)),window.$message.success("\u4FDD\u5B58\u6210\u529F"))}).catch(u=>console.error("Error:",u))},c=_(!1),p=_({username:"",password:""}),N=U(),I=()=>{c.value?N.warning({title:"\u8B66\u544A",content:"\u8BB0\u4F4F\u767B\u9646\u662F\u6307\u6D4F\u89C8\u5668\u672C\u5730\u660E\u6587\u4FDD\u5B58\u7528\u6237\u540D\u5BC6\u7801\u7528\u4E8E\u4E0B\u6B21\u81EA\u52A8\u767B\u9646\uFF0C\u8BF7\u52FF\u5728\u975E\u4FE1\u4EFB\u8BBE\u5907\u9009\u62E9",positiveText:"\u786E\u5B9A",negativeText:"\u4E0D\u786E\u5B9A",onPositiveClick:()=>{window.localStorage.setItem("pikpakLoginData",JSON.stringify(p.value))},onNegativeClick:()=>{}}):window.localStorage.removeItem("pikpakLoginData")},m=_(""),T=()=>{let n=m.value.split(` +`).filter(u=>u!="");window.localStorage.setItem("proxy",JSON.stringify(n)),window.localStorage.setItem("isSettingProxy","true")},j=()=>{window.localStorage.setItem("proxy",JSON.stringify(y)),window.localStorage.removeItem("isSettingProxy"),m.value=y.join(` `)};J(()=>{let n=JSON.parse(window.localStorage.getItem("pikpakAria2")||"{}");n.dir===void 0&&(n.dir=!0),n.host&&(o.value=n);let u=JSON.parse(window.localStorage.getItem("pikpakLoginData")||"{}");u.username&&u.password&&(p.value=u,c.value=!0);let E=JSON.parse(window.localStorage.getItem("proxy")||"[]");E.length&&(m.value=E.join(` -`))});const F=_(),O=()=>{let n=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");if(!n&&!n.access_token)return window.$message.error("\u8BF7\u5148\u767B\u9646"),!1;let u=F.value&&decodeURIComponent(F.value).match(/(^|&)token=([^&]*)(&|$)/);if(console.log(u),!u||!u.length||u.length!=4)return window.$message.error("\u8BF7\u8F93\u5165\u6B63\u786E\u94FE\u63A5"),!1;G.post("https://api-drive.mypikpak.com/user/v1/bind",{accessToken:n.access_token,thirdType:"TG",thirdToken:u[2]}).then(E=>{F.value="",E.data.bound?window.$message.success("\u7ED1\u5B9A\u6210\u529F"):window.$message.error("\u7ED1\u5B9A\u5931\u8D25")})};return(n,u)=>{const E=$("n-text");return f(),D("div",K,[e(t(M),{"default-expanded-names":["-1","0","2","3","4"]},{default:a(()=>[e(t(d),{name:"-1"},{header:a(()=>[Z,l("a",{onClick:u[0]||(u[0]=k(()=>{},["stop"])),href:"https://www.tjsky.net/?p=220#Telegram",target:"_blank"},[e(t(v),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:a(()=>[e(t(h))]),_:1})])]),default:a(()=>[e(t(B),{value:F.value,"onUpdate:value":u[1]||(u[1]=s=>F.value=s),placeholder:"\u590D\u5236telegram\u7ED1\u5B9A\u94FE\u63A5\u5230\u8FD9"},null,8,["value"]),q,e(t(g),{disabled:!F.value,type:"primary",onClick:O},{default:a(()=>[W]),_:1},8,["disabled"]),X]),_:1}),e(t(d),{name:"0",title:"aria2\u8BBE\u7F6E"},{header:a(()=>[Y,l("a",{onClick:u[2]||(u[2]=k(()=>{},["stop"])),href:"https://www.tjsky.net/?p=220#arai2",target:"_blank"},[e(t(v),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:a(()=>[e(t(h))]),_:1})])]),default:a(()=>[e(t(C),{"label-width":"100px","label-align":"left","label-placement":"left"},{default:a(()=>[e(t(r),{label:"aria2\u94FE\u63A5\uFF1A"},{default:a(()=>[e(t(B),{value:o.value.host,"onUpdate:value":u[3]||(u[3]=s=>o.value.host=s),placeholder:"\u4F8B\u5982http://localhost:6800/jsonrpc"},null,8,["value"])]),_:1}),e(t(r),{label:"aria2Token\uFF1A"},{default:a(()=>[e(t(B),{value:o.value.token,"onUpdate:value":u[4]||(u[4]=s=>o.value.token=s),type:"password","show-password-on":"mousedown"},null,8,["value"])]),_:1}),e(t(r),{label:"\u6587\u4EF6\u5939\u8BBE\u7F6E\uFF1A"},{default:a(()=>[e(t(w),{value:o.value.dir,"onUpdate:value":u[5]||(u[5]=s=>o.value.dir=s)},{checked:a(()=>[uu]),unchecked:a(()=>[eu]),_:1},8,["value"])]),_:1}),o.value.host&&o.value.host.indexOf("https://")===-1&&o.value.host.indexOf("http://localhost")==-1&&o.value.host.indexOf("http://127.0.0.1")===-1?(f(),L(t(V),{key:0,title:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u6309\u4E0B\u56FE\u8BBE\u7F6E\u5F00\u59CB\u6DF7\u5408\u6A21\u5F0F",type:"info"},{default:a(()=>[tu,au,lu,ou]),_:1})):A("",!0),e(t(r),null,{default:a(()=>[e(t(g),{type:"primary",onClick:S},{default:a(()=>[su]),_:1})]),_:1})]),_:1})]),_:1}),e(t(d),{name:"1",title:"\u81EA\u52A8\u767B\u5F55\u8BBE\u7F6E"},{header:a(()=>[nu,l("a",{onClick:u[6]||(u[6]=k(()=>{},["stop"])),href:"https://www.tjsky.net/?p=220#i-6",target:"_blank"},[e(t(v),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:a(()=>[e(t(h))]),_:1})])]),default:a(()=>[e(t(C),{"label-width":"100px","label-align":"left","label-placement":"left"},{default:a(()=>[e(t(r),{label:"\u662F\u5426\u5F00\u542F"},{default:a(()=>[e(t(w),{value:c.value,"onUpdate:value":u[7]||(u[7]=s=>c.value=s)},null,8,["value"])]),_:1}),c.value?(f(),D(z,{key:0},[e(t(r),{label:"\u7528\u6237\u540D"},{default:a(()=>[e(t(B),{value:p.value.username,"onUpdate:value":u[8]||(u[8]=s=>p.value.username=s),placeholder:"\u7528\u6237\u540D"},null,8,["value"])]),_:1}),e(t(r),{label:"\u5BC6\u7801"},{default:a(()=>[e(t(B),{value:p.value.password,"onUpdate:value":u[9]||(u[9]=s=>p.value.password=s),type:"password","show-password-on":"mousedown"},null,8,["value"])]),_:1})],64)):A("",!0),e(t(r),null,{default:a(()=>[e(t(g),{type:"primary",onClick:I},{default:a(()=>[iu]),_:1})]),_:1})]),_:1})]),_:1}),e(t(d),{name:"3",title:"\u4EE3\u7406\u8BBE\u7F6E"},{default:a(()=>[e(t(B),{type:"textarea",value:m.value,"onUpdate:value":u[10]||(u[10]=s=>m.value=s),rows:"4",placeholder:"\u652F\u6301\u591A\u4E2A\u968F\u673A\uFF0C\u4E00\u884C\u4E00\u4E2A\uFF0C\u4E3A\u7A7A\u5219\u4E0D\u4EE3\u7406"},null,8,["value"]),ru,e(t(g),{type:"primary",onClick:T},{default:a(()=>[du]),_:1}),e(E,{onClick:j},{default:a(()=>[pu]),_:1})]),_:1}),e(t(d),{title:"\u5173\u4E8E",name:"2"},{default:a(()=>[e(t(y),null,{default:a(()=>[Fu,Eu,_u,Bu,cu]),_:1}),mu]),_:1}),e(t(d),{title:"PC\u7AEFIDM\u652F\u6301",name:"4"},{default:a(()=>[e(t(y),null,{default:a(()=>[gu,fu,hu,vu,ku]),_:1}),Du]),_:1}),e(t(d),{title:"\u529F\u80FD\u5217\u8868",name:"3"},{default:a(()=>[e(t(R),{lines:x.value},null,8,["lines"])]),_:1})]),_:1})])}}});export{yu as default}; +`))});const F=_(),O=()=>{let n=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");if(!n&&!n.access_token)return window.$message.error("\u8BF7\u5148\u767B\u9646"),!1;let u=F.value&&decodeURIComponent(F.value).match(/(^|&)token=([^&]*)(&|$)/);if(console.log(u),!u||!u.length||u.length!=4)return window.$message.error("\u8BF7\u8F93\u5165\u6B63\u786E\u94FE\u63A5"),!1;G.post("https://api-drive.mypikpak.com/user/v1/bind",{accessToken:n.access_token,thirdType:"TG",thirdToken:u[2]}).then(E=>{F.value="",E.data.bound?window.$message.success("\u7ED1\u5B9A\u6210\u529F"):window.$message.error("\u7ED1\u5B9A\u5931\u8D25")})};return(n,u)=>{const E=$("n-text");return f(),D("div",K,[e(t(M),{"default-expanded-names":["-1","0","2","3","4"]},{default:a(()=>[e(t(d),{name:"-1"},{header:a(()=>[Z,l("a",{onClick:u[0]||(u[0]=k(()=>{},["stop"])),href:"https://www.tjsky.net/?p=220#Telegram",target:"_blank"},[e(t(v),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:a(()=>[e(t(h))]),_:1})])]),default:a(()=>[e(t(B),{value:F.value,"onUpdate:value":u[1]||(u[1]=s=>F.value=s),placeholder:"\u590D\u5236telegram\u7ED1\u5B9A\u94FE\u63A5\u5230\u8FD9"},null,8,["value"]),q,e(t(g),{disabled:!F.value,type:"primary",onClick:O},{default:a(()=>[W]),_:1},8,["disabled"]),X]),_:1}),e(t(d),{name:"0",title:"aria2\u8BBE\u7F6E"},{header:a(()=>[Y,l("a",{onClick:u[2]||(u[2]=k(()=>{},["stop"])),href:"https://www.tjsky.net/?p=220#arai2",target:"_blank"},[e(t(v),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:a(()=>[e(t(h))]),_:1})])]),default:a(()=>[e(t(C),{"label-width":"100px","label-align":"left","label-placement":"left"},{default:a(()=>[e(t(r),{label:"aria2\u94FE\u63A5\uFF1A"},{default:a(()=>[e(t(B),{value:o.value.host,"onUpdate:value":u[3]||(u[3]=s=>o.value.host=s),placeholder:"\u4F8B\u5982http://localhost:6800/jsonrpc"},null,8,["value"])]),_:1}),e(t(r),{label:"aria2Token\uFF1A"},{default:a(()=>[e(t(B),{value:o.value.token,"onUpdate:value":u[4]||(u[4]=s=>o.value.token=s),type:"password","show-password-on":"mousedown"},null,8,["value"])]),_:1}),e(t(r),{label:"\u6587\u4EF6\u5939\u8BBE\u7F6E\uFF1A"},{default:a(()=>[e(t(w),{value:o.value.dir,"onUpdate:value":u[5]||(u[5]=s=>o.value.dir=s)},{checked:a(()=>[uu]),unchecked:a(()=>[eu]),_:1},8,["value"])]),_:1}),o.value.host&&o.value.host.indexOf("https://")===-1&&o.value.host.indexOf("http://localhost")==-1&&o.value.host.indexOf("http://127.0.0.1")===-1?(f(),L(t(V),{key:0,title:"\u7531\u4E8E\u6D4F\u89C8\u5668\u9650\u5236\uFF0C\u8BF7\u6309\u4E0B\u56FE\u8BBE\u7F6E\u5F00\u59CB\u6DF7\u5408\u6A21\u5F0F",type:"info"},{default:a(()=>[tu,au,lu,ou]),_:1})):A("",!0),e(t(r),null,{default:a(()=>[e(t(g),{type:"primary",onClick:S},{default:a(()=>[su]),_:1})]),_:1})]),_:1})]),_:1}),e(t(d),{name:"1",title:"\u81EA\u52A8\u767B\u5F55\u8BBE\u7F6E"},{header:a(()=>[nu,l("a",{onClick:u[6]||(u[6]=k(()=>{},["stop"])),href:"https://www.tjsky.net/?p=220#i-6",target:"_blank"},[e(t(v),{style:{"vertical-align":"middle"},size:"20",color:"#d03050"},{default:a(()=>[e(t(h))]),_:1})])]),default:a(()=>[e(t(C),{"label-width":"100px","label-align":"left","label-placement":"left"},{default:a(()=>[e(t(r),{label:"\u662F\u5426\u5F00\u542F"},{default:a(()=>[e(t(w),{value:c.value,"onUpdate:value":u[7]||(u[7]=s=>c.value=s)},null,8,["value"])]),_:1}),c.value?(f(),D(z,{key:0},[e(t(r),{label:"\u7528\u6237\u540D"},{default:a(()=>[e(t(B),{value:p.value.username,"onUpdate:value":u[8]||(u[8]=s=>p.value.username=s),placeholder:"\u7528\u6237\u540D"},null,8,["value"])]),_:1}),e(t(r),{label:"\u5BC6\u7801"},{default:a(()=>[e(t(B),{value:p.value.password,"onUpdate:value":u[9]||(u[9]=s=>p.value.password=s),type:"password","show-password-on":"mousedown"},null,8,["value"])]),_:1})],64)):A("",!0),e(t(r),null,{default:a(()=>[e(t(g),{type:"primary",onClick:I},{default:a(()=>[iu]),_:1})]),_:1})]),_:1})]),_:1}),e(t(d),{name:"3",title:"\u4EE3\u7406\u8BBE\u7F6E"},{default:a(()=>[e(t(B),{type:"textarea",value:m.value,"onUpdate:value":u[10]||(u[10]=s=>m.value=s),rows:"4",placeholder:"\u652F\u6301\u591A\u4E2A\u968F\u673A\uFF0C\u4E00\u884C\u4E00\u4E2A\uFF0C\u4E3A\u7A7A\u5219\u4E0D\u4EE3\u7406"},null,8,["value"]),ru,e(t(g),{type:"primary",onClick:T},{default:a(()=>[du]),_:1}),e(E,{onClick:j},{default:a(()=>[pu]),_:1})]),_:1}),e(t(d),{title:"\u5173\u4E8E",name:"2"},{default:a(()=>[e(t(b),null,{default:a(()=>[Fu,Eu,_u,Bu,cu]),_:1}),mu]),_:1}),e(t(d),{title:"PC\u7AEFIDM\u652F\u6301",name:"4"},{default:a(()=>[e(t(b),null,{default:a(()=>[gu,fu,hu,vu,ku]),_:1}),Du]),_:1}),e(t(d),{title:"\u529F\u80FD\u5217\u8868",name:"3"},{default:a(()=>[e(t(R),{lines:x.value},null,8,["lines"])]),_:1})]),_:1})])}}});export{bu as default}; diff --git a/assets/shareInfo.72d0810e.js b/assets/shareInfo.6dfa34fc.js similarity index 98% rename from assets/shareInfo.72d0810e.js rename to assets/shareInfo.6dfa34fc.js index b7ec388fc..000cf4aef 100644 --- a/assets/shareInfo.72d0810e.js +++ b/assets/shareInfo.6dfa34fc.js @@ -1 +1 @@ -var A=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var q=(r,l)=>{var c={};for(var n in r)j.call(r,n)&&l.indexOf(n)<0&&(c[n]=r[n]);if(r!=null&&A)for(var n of A(r))l.indexOf(n)<0&&$.call(r,n)&&(c[n]=r[n]);return c};import{d as L,m as U,l as Q,a4 as G,r as d,n as W,o as Y,a as J,b as E,c as K,w as u,f as t,a7 as X,E as f,s as I,e as o,ae as Z,ac as ee,y as D,A as S,B as ae,Q as O,D as R,am as se,ap as te,R as ue,aQ as oe,ao as le,I as ne,aR as ie,aS as re,M as de,ag as ce,U as m,a8 as _e,H as pe,ad as ve}from"./vendor.64da71ad.js";import{i as T,b as fe}from"./index.50387d2f.js";const me={class:"share-info-page"},he={key:0,class:"header"},ke={class:"title n-ellipsis"},ye=D("\u5168\u90E8\u6587\u4EF6"),ge={class:"action"},Fe={key:1,class:"share-password"},we=f("a",{href:"https://mypikpak.com/",target:"_blank",class:"logo-box"},[f("img",{src:"https://www.mypikpak.com/logo.png",class:"logo-box__icon",alt:""}),f("div",{class:"logo-box__text"},"PikPak")],-1),Be=D("\u63D0\u53D6\u6587\u4EF6"),Ee={key:2,class:"share-file-box",style:{height:"100vh"}},De=D("\u53BB\u9996\u9875"),Ce=L({setup(r){const l=U(),c=Q(),n=G(()=>l.params.id),a=d(),h=d(!0),_=d(""),p=d([]),N=d([]),C=d(""),H=d([{type:"selection"},{title:"\u540D\u79F0",key:"name",sorter:"default",render:e=>m("div",{class:"file-info",onClick:()=>{e.kind==="drive#folder"&&(l.query.id||(C.value=e.id),c.push({name:"shareInfo",params:l.params,query:{id:e.id}}))}},[m("img",{src:e.thumbnail_link||e.icon_link}),m(_e,{class:"title"},{default:()=>String(e.name)}),m("span",{class:"action"},"1")])},{title:"\u5927\u5C0F",key:"size",sorter:(e,s)=>e.size-s.size,align:"right",render:e=>Number(e.size)>0?fe(Number(e.size)):"",className:"size",width:100},{title:"\u4FEE\u6539\u65F6\u95F4",key:"modified_time",sorter:"default",align:"right",render:e=>m(pe,{time:new Date(String(e.modified_time)||""),format:"MM-dd HH:MM"}),className:"modified_time",width:160},{title:"",key:"action",width:60,align:"right",render:e=>m(ve,{justify:"end"},{default:()=>[]})}]),k=()=>{var e,s,y,g,F;if(((e=a.value)==null?void 0:e.share_status)!=="OK"&&l.query.id)return c.push({name:"shareInfo",params:l.params,query:{id:""}});h.value=!0,T.get("https://api-drive.mypikpak.com/drive/v1/share"+(l.query.id&&((s=a.value)==null?void 0:s.pass_code_token)?"/detail":""),{params:{share_id:n.value,parent_id:l.query.id,pass_code_token:((y=a.value)==null?void 0:y.pass_code_token)||void 0,pass_code:((g=a.value)==null?void 0:g.pass_code_token)?void 0:_.value,limit:"30",page_token:(F=a.value)==null?void 0:F.next_page_token}}).then(v=>{var B;const w=v.data,{files:x}=w,b=q(w,["files"]),i=(B=a.value)==null?void 0:B.next_page_token;a.value=Object.assign(a.value||{},b),v.data.share_status==="OK"?(i||(N.value=[]),N.value=N.value.concat(x)):window.$message.error(v.data.share_status)}).finally(()=>{h.value=!1})},M=e=>{var s;e.target.offsetHeight+e.target.scrollTop>=e.target.scrollHeight-30&&((s=a.value)==null?void 0:s.next_page_token)&&!h.value&&k()},V=()=>{var s;const e=[];l.query.id&&e.push(C.value),T.post("https://api-drive.mypikpak.com/drive/v1/share/restore",{share_id:n.value,pass_code_token:(s=a.value)==null?void 0:s.pass_code_token,ancestor_ids:e,file_ids:p.value||void 0,folder_type:"DOWNLOAD"}).then(y=>{window.$message.success("\u8F6C\u5B58\u6210\u529F\uFF0C\u53EF\u80FD\u9700\u8981\u7B49\u5F85\u4E00\u6BB5\u65F6\u95F4"),p.value=[]})};W(l,(e,s)=>{_.value=String(l.params.password)||"",p.value=[],a.value&&(a.value.next_page_token="",a.value.files=[]),k()});const P=()=>{window.location.href="./"};return Y(()=>{_.value=String(l.params.password)||"",C.value="",k(),window.onbeforeunload=function(e){return!window.$downId||window.$downId.length===0?null:(e=e||window.event,e&&(e.returnValue="\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6"),"\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6?")}}),(e,s)=>{const y=J("router-link");return E(),K(t(X),{show:h.value,description:"\u83B7\u53D6\u4E2D"},{default:u(()=>{var g,F,v,x,b;return[f("div",me,[((g=a.value)==null?void 0:g.share_status)==="OK"?(E(),I("div",he,[f("div",ke,[o(t(ee),{separator:">"},{default:u(()=>[o(t(Z),null,{default:u(()=>[o(y,{to:{query:{id:""}}},{default:u(()=>[ye]),_:1})]),_:1})]),_:1}),o(t(ae),{depth:"3",style:{"font-size":"12px"}},{default:u(()=>{var i,w,B,z;return[D(" \u5931\u6548\u65F6\u95F4\uFF1A "+S(((i=a.value)==null?void 0:i.expiration_left)==="-1"?"\u6C38\u4E45\u6709\u6548":((w=a.value)==null?void 0:w.expiration_left)+"\u5929")+" \u5931\u6548\u6B21\u6570\uFF1A"+S(((B=a.value)==null?void 0:B.restore_count_left)==="-1"?"\u65E0\u9650\u6B21":((z=a.value)==null?void 0:z.restore_count_left)+"\u6B21"),1)]}),_:1})]),f("div",ge,[o(t(O),{type:"primary",onClick:V},{default:u(()=>[D(S(p.value.length?"\u8F6C\u5B58\u5DF2\u9009":"\u8F6C\u5B58\u5168\u90E8"),1)]),_:1})])])):R("",!0),((F=a.value)==null?void 0:F.share_status)==="PASS_CODE_EMPTY"||((v=a.value)==null?void 0:v.share_status)==="PASS_CODE_ERROR"?(E(),I("div",Fe,[we,o(t(le),{class:"password-form"},{default:u(()=>[o(t(se),{label:"\u8BF7\u8F93\u5165\u63D0\u53D6\u7801"},{default:u(()=>[o(t(te),null,{default:u(()=>[o(t(ue),{value:_.value,"onUpdate:value":s[0]||(s[0]=i=>_.value=i),type:"password","show-password-on":"mousedown",onKeyup:oe(k,["enter"]),placeholder:"\u8BF7\u8F93\u5165\u63D0\u53D6\u7801"},null,8,["value","onKeyup"]),o(t(O),{type:"primary",loading:h.value&&!!_.value,onClick:k},{default:u(()=>[Be]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})])):((x=a.value)==null?void 0:x.share_status)==="DELETED"?(E(),I("div",Ee,[o(t(re),{description:"\u62B1\u6B49\uFF0C\u8BE5\u5206\u4EAB\u5DF2\u88AB\u4F5C\u8005\u5220\u9664"},{icon:u(()=>[o(t(ne),null,{default:u(()=>[o(t(ie))]),_:1})]),extra:u(()=>[o(t(O),{size:"small",onClick:P},{default:u(()=>[De]),_:1})]),_:1})])):((b=a.value)==null?void 0:b.share_status)==="OK"?(E(),K(t(de),{key:3,style:{"max-height":"calc(100vh - 110px)"},onScroll:M},{default:u(()=>[o(t(ce),{"checked-row-keys":p.value,"onUpdate:checked-row-keys":s[1]||(s[1]=i=>p.value=i),"row-key":i=>i.id,data:N.value,size:"small",columns:H.value,bordered:!1},null,8,["checked-row-keys","row-key","data","columns"])]),_:1})):R("",!0)])]}),_:1},8,["show"])}}});export{Ce as default}; +var A=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,$=Object.prototype.propertyIsEnumerable;var q=(r,l)=>{var c={};for(var n in r)j.call(r,n)&&l.indexOf(n)<0&&(c[n]=r[n]);if(r!=null&&A)for(var n of A(r))l.indexOf(n)<0&&$.call(r,n)&&(c[n]=r[n]);return c};import{d as L,m as U,l as Q,a4 as G,r as d,n as W,o as Y,a as J,b as E,c as K,w as u,f as t,a7 as X,E as f,s as I,e as o,ae as Z,ac as ee,y as D,A as S,B as ae,Q as O,D as R,am as se,ap as te,R as ue,aQ as oe,ao as le,I as ne,aR as ie,aS as re,M as de,ag as ce,U as m,a8 as _e,H as pe,ad as ve}from"./vendor.64da71ad.js";import{i as T,b as fe}from"./index.e931b941.js";const me={class:"share-info-page"},he={key:0,class:"header"},ke={class:"title n-ellipsis"},ye=D("\u5168\u90E8\u6587\u4EF6"),ge={class:"action"},Fe={key:1,class:"share-password"},we=f("a",{href:"https://mypikpak.com/",target:"_blank",class:"logo-box"},[f("img",{src:"https://www.mypikpak.com/logo.png",class:"logo-box__icon",alt:""}),f("div",{class:"logo-box__text"},"PikPak")],-1),Be=D("\u63D0\u53D6\u6587\u4EF6"),Ee={key:2,class:"share-file-box",style:{height:"100vh"}},De=D("\u53BB\u9996\u9875"),Ce=L({setup(r){const l=U(),c=Q(),n=G(()=>l.params.id),a=d(),h=d(!0),_=d(""),p=d([]),N=d([]),C=d(""),H=d([{type:"selection"},{title:"\u540D\u79F0",key:"name",sorter:"default",render:e=>m("div",{class:"file-info",onClick:()=>{e.kind==="drive#folder"&&(l.query.id||(C.value=e.id),c.push({name:"shareInfo",params:l.params,query:{id:e.id}}))}},[m("img",{src:e.thumbnail_link||e.icon_link}),m(_e,{class:"title"},{default:()=>String(e.name)}),m("span",{class:"action"},"1")])},{title:"\u5927\u5C0F",key:"size",sorter:(e,s)=>e.size-s.size,align:"right",render:e=>Number(e.size)>0?fe(Number(e.size)):"",className:"size",width:100},{title:"\u4FEE\u6539\u65F6\u95F4",key:"modified_time",sorter:"default",align:"right",render:e=>m(pe,{time:new Date(String(e.modified_time)||""),format:"MM-dd HH:MM"}),className:"modified_time",width:160},{title:"",key:"action",width:60,align:"right",render:e=>m(ve,{justify:"end"},{default:()=>[]})}]),k=()=>{var e,s,y,g,F;if(((e=a.value)==null?void 0:e.share_status)!=="OK"&&l.query.id)return c.push({name:"shareInfo",params:l.params,query:{id:""}});h.value=!0,T.get("https://api-drive.mypikpak.com/drive/v1/share"+(l.query.id&&((s=a.value)==null?void 0:s.pass_code_token)?"/detail":""),{params:{share_id:n.value,parent_id:l.query.id,pass_code_token:((y=a.value)==null?void 0:y.pass_code_token)||void 0,pass_code:((g=a.value)==null?void 0:g.pass_code_token)?void 0:_.value,limit:"30",page_token:(F=a.value)==null?void 0:F.next_page_token}}).then(v=>{var B;const w=v.data,{files:x}=w,b=q(w,["files"]),i=(B=a.value)==null?void 0:B.next_page_token;a.value=Object.assign(a.value||{},b),v.data.share_status==="OK"?(i||(N.value=[]),N.value=N.value.concat(x)):window.$message.error(v.data.share_status)}).finally(()=>{h.value=!1})},M=e=>{var s;e.target.offsetHeight+e.target.scrollTop>=e.target.scrollHeight-30&&((s=a.value)==null?void 0:s.next_page_token)&&!h.value&&k()},V=()=>{var s;const e=[];l.query.id&&e.push(C.value),T.post("https://api-drive.mypikpak.com/drive/v1/share/restore",{share_id:n.value,pass_code_token:(s=a.value)==null?void 0:s.pass_code_token,ancestor_ids:e,file_ids:p.value||void 0,folder_type:"DOWNLOAD"}).then(y=>{window.$message.success("\u8F6C\u5B58\u6210\u529F\uFF0C\u53EF\u80FD\u9700\u8981\u7B49\u5F85\u4E00\u6BB5\u65F6\u95F4"),p.value=[]})};W(l,(e,s)=>{_.value=String(l.params.password)||"",p.value=[],a.value&&(a.value.next_page_token="",a.value.files=[]),k()});const P=()=>{window.location.href="./"};return Y(()=>{_.value=String(l.params.password)||"",C.value="",k(),window.onbeforeunload=function(e){return!window.$downId||window.$downId.length===0?null:(e=e||window.event,e&&(e.returnValue="\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6"),"\u8FD8\u6709\u5F85\u4E0B\u8F7D\u6587\u4EF6?")}}),(e,s)=>{const y=J("router-link");return E(),K(t(X),{show:h.value,description:"\u83B7\u53D6\u4E2D"},{default:u(()=>{var g,F,v,x,b;return[f("div",me,[((g=a.value)==null?void 0:g.share_status)==="OK"?(E(),I("div",he,[f("div",ke,[o(t(ee),{separator:">"},{default:u(()=>[o(t(Z),null,{default:u(()=>[o(y,{to:{query:{id:""}}},{default:u(()=>[ye]),_:1})]),_:1})]),_:1}),o(t(ae),{depth:"3",style:{"font-size":"12px"}},{default:u(()=>{var i,w,B,z;return[D(" \u5931\u6548\u65F6\u95F4\uFF1A "+S(((i=a.value)==null?void 0:i.expiration_left)==="-1"?"\u6C38\u4E45\u6709\u6548":((w=a.value)==null?void 0:w.expiration_left)+"\u5929")+" \u5931\u6548\u6B21\u6570\uFF1A"+S(((B=a.value)==null?void 0:B.restore_count_left)==="-1"?"\u65E0\u9650\u6B21":((z=a.value)==null?void 0:z.restore_count_left)+"\u6B21"),1)]}),_:1})]),f("div",ge,[o(t(O),{type:"primary",onClick:V},{default:u(()=>[D(S(p.value.length?"\u8F6C\u5B58\u5DF2\u9009":"\u8F6C\u5B58\u5168\u90E8"),1)]),_:1})])])):R("",!0),((F=a.value)==null?void 0:F.share_status)==="PASS_CODE_EMPTY"||((v=a.value)==null?void 0:v.share_status)==="PASS_CODE_ERROR"?(E(),I("div",Fe,[we,o(t(le),{class:"password-form"},{default:u(()=>[o(t(se),{label:"\u8BF7\u8F93\u5165\u63D0\u53D6\u7801"},{default:u(()=>[o(t(te),null,{default:u(()=>[o(t(ue),{value:_.value,"onUpdate:value":s[0]||(s[0]=i=>_.value=i),type:"password","show-password-on":"mousedown",onKeyup:oe(k,["enter"]),placeholder:"\u8BF7\u8F93\u5165\u63D0\u53D6\u7801"},null,8,["value","onKeyup"]),o(t(O),{type:"primary",loading:h.value&&!!_.value,onClick:k},{default:u(()=>[Be]),_:1},8,["loading"])]),_:1})]),_:1})]),_:1})])):((x=a.value)==null?void 0:x.share_status)==="DELETED"?(E(),I("div",Ee,[o(t(re),{description:"\u62B1\u6B49\uFF0C\u8BE5\u5206\u4EAB\u5DF2\u88AB\u4F5C\u8005\u5220\u9664"},{icon:u(()=>[o(t(ne),null,{default:u(()=>[o(t(ie))]),_:1})]),extra:u(()=>[o(t(O),{size:"small",onClick:P},{default:u(()=>[De]),_:1})]),_:1})])):((b=a.value)==null?void 0:b.share_status)==="OK"?(E(),K(t(de),{key:3,style:{"max-height":"calc(100vh - 110px)"},onScroll:M},{default:u(()=>[o(t(ce),{"checked-row-keys":p.value,"onUpdate:checked-row-keys":s[1]||(s[1]=i=>p.value=i),"row-key":i=>i.id,data:N.value,size:"small",columns:H.value,bordered:!1},null,8,["checked-row-keys","row-key","data","columns"])]),_:1})):R("",!0)])]}),_:1},8,["show"])}}});export{Ce as default}; diff --git a/assets/sms.9fb45d5d.js b/assets/sms.e4c60e2e.js similarity index 99% rename from assets/sms.9fb45d5d.js rename to assets/sms.e4c60e2e.js index ffe5735b7..da6efa782 100644 --- a/assets/sms.9fb45d5d.js +++ b/assets/sms.e4c60e2e.js @@ -1 +1 @@ -import{_ as N}from"./phone-pc2.dbf6d71e.js";import{d as O,r as s,l as S,u as K,a6 as Y,a as T,b,s as U,E as A,e as a,f as t,ao as W,w as u,ad as z,am as h,R as E,Q as D,y as p,A as H,ap as L,c as X,aT as Z,D as G,F as w,I as Q,aW as V,aV as J,k as q}from"./vendor.64da71ad.js";import{i as m}from"./index.50387d2f.js";const $={class:"login-page"},ee=A("div",{class:"down"},[A("img",{src:N})],-1),ae={class:"login"},te=A("div",{class:"logo-box"},[A("img",{src:"data:image/png;base64,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",class:"logo-box__icon",alt:""}),A("div",{class:"logo-box__text"},"PikPak")],-1),ue={class:"login-box"},oe=p("\u63A5\u53D7\u9080\u8BF7\u83B7\u5F9710\u5929vip"),ne=p("\u767B\u5F55"),le={class:"login-other"},ie=p(" \u90AE\u7BB1\u767B\u9646 "),se=p(" APP\u5185\u8C37\u6B4C\u767B\u5F55\u7684\u8D26\u53F7\u8BF7\u5148\u901A\u8FC7\u5FD8\u8BB0\u5BC6\u7801\u8BBE\u7F6E\u5BC6\u7801\u540E\u767B\u5F55 "),pe=O({setup(Ae){const e=s({phone_number:"",verification_code:"",captcha_token:"",verification_id:""}),x=s(),B=s(!1),I={phone_number:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",trigger:"blur"}],verification_code:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",trigger:"blur"}]},g=s(!1),f=s(!1),F=S(),_=K(),P=(()=>{let l=32,o="abcdefhijkmnprstwxyz2345678",d=o.length,n="";for(let i=0;im.post("https://user.mypikpak.com/v1/shield/captcha/init?client_id=YNxT9w7GMdWvEOKa",{action:l||"POST:/v1/auth/verification",captcha_token:e.value.captcha_token||"",client_id:"YNxT9w7GMdWvEOKa",device_id:P,meta:{phone_number:e.value.phone_number},redirect_uri:"xlaccsdk01://xunlei.com/callback?state=harbor"}).then(o=>{o.data&&o.data.captcha_token&&(e.value.captcha_token=o.data.captcha_token)}),v=s(!1),R=()=>{if(e.value.phone_number){if(e.value.phone_number.indexOf("+")===-1)return _.error("\u8BF7\u8F93\u5165\u533A\u53F7\u52A0\u624B\u673A\u53F7\u5982+8618513579246"),!1;e.value.captcha_token="",g.value=!0,C("POST:/v1/auth/verification").then(()=>{m.post("https://user.mypikpak.com/v1/auth/verification?client_id=YNxT9w7GMdWvEOKa",{captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",phone_number:e.value.phone_number,locale:"zh-cn",target:"ANY"}).then(l=>{e.value.verification_id=l.data.verification_id,v.value=l.data.is_user||!1,M()}).finally(()=>{g.value=!1})}).catch(()=>{g.value=!1})}else return!1},r=s(60),c=s(),M=()=>{r.value=59,c.value&&clearInterval(c.value),c.value=setInterval(()=>{if(r.value--,r.value<=0){clearInterval(c.value),r.value=60;return}},1e3)},y=l=>{l.preventDefault(),x.value.validate(o=>{o||(f.value=!0,m.post("https://user.mypikpak.com/v1/auth/verification/verify?client_id=YNxT9w7GMdWvEOKa",{client_id:"YNxT9w7GMdWvEOKa",verification_id:e.value.verification_id,verification_code:e.value.verification_code}).then(d=>{C(v.value?"POST:/v1/auth/signin":"POST:/v1/auth/signup").then(()=>{let n="https://user.mypikpak.com/v1/auth/signup",i={captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg",verification_token:d.data.verification_token};v.value?(n="https://user.mypikpak.com/v1/auth/signin",i.username=e.value.phone_number):(i.phone_number=e.value.phone_number,i.password="",i.name="U_"+e.value.phone_number.slice(-4)),m.post(n,i).then(k=>{B.value&&!v.value&&j(k.data),window.localStorage.setItem("pikpakLogin",JSON.stringify(k.data)),window.localStorage.removeItem("pikpakLoginData"),_.success("\u767B\u5F55\u6210\u529F"),F.push("/")}).catch(k=>{f.value=!1})})}).catch(d=>{f.value=!1}))})},j=l=>{q.get("https://invite.z7.workers.dev/"+l.sub,{headers:{authorization:l.token_type+" "+l.access_token}}).then(o=>{})};return Y(()=>{c.value&&clearInterval(c.value)}),(l,o)=>{const d=T("router-link");return b(),U("div",$,[ee,A("div",ae,[te,A("div",ue,[a(t(W),{"label-align":"left",style:{"padding-top":"30px"},model:e.value,rules:I,ref:(n,i)=>{i.formRef=n,x.value=n},"label-placement":"left","label-width":"0",class:"login-form"},{default:u(()=>[a(t(h),{path:"email"},{default:u(()=>[a(t(E),{value:e.value.phone_number,"onUpdate:value":o[0]||(o[0]=n=>e.value.phone_number=n),placeholder:"\u8BF7\u8F93\u5165\u533A\u53F7\u52A0\u624B\u673A\u53F7\u5982+8618513579246"},null,8,["value"])]),_:1}),a(t(h),{path:"verification_code"},{default:u(()=>[a(t(L),null,{default:u(()=>[a(t(E),{value:e.value.verification_code,"onUpdate:value":o[1]||(o[1]=n=>e.value.verification_code=n),placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},null,8,["value"]),a(t(D),{onClick:R,disabled:r.value<60,loading:g.value},{default:u(()=>[p(H(r.value>=60?"\u53D1\u9001\u9A8C\u8BC1\u7801":"\u91CD\u65B0\u53D1\u9001 "+r.value+"s"),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),v.value?G("",!0):(b(),X(t(h),{key:0,label:""},{default:u(()=>[a(t(Z),{checked:B.value,"onUpdate:checked":o[2]||(o[2]=n=>B.value=n)},{default:u(()=>[oe]),_:1},8,["checked"])]),_:1})),a(t(h),null,{default:u(()=>[a(t(D),{type:"primary",class:"block",loading:f.value,onClick:y},{default:u(()=>[ne]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),A("div",le,[a(t(z),{inline:""},{default:u(()=>[a(t(w),null,{trigger:u(()=>[a(d,{to:"login"},{default:u(()=>[a(t(Q),{color:"#306eff",size:32},{default:u(()=>[a(t(V))]),_:1})]),_:1})]),default:u(()=>[ie]),_:1}),a(t(w),null,{trigger:u(()=>[a(t(Q),{color:"#306eff",size:32},{default:u(()=>[a(t(J))]),_:1})]),default:u(()=>[se]),_:1})]),_:1})])])])])}}});export{pe as default}; +import{_ as N}from"./phone-pc2.dbf6d71e.js";import{d as O,r as s,l as S,u as K,a6 as Y,a as T,b,s as U,E as A,e as a,f as t,ao as W,w as u,ad as z,am as h,R as E,Q as D,y as p,A as H,ap as L,c as X,aT as Z,D as G,F as w,I as Q,aW as V,aV as J,k as q}from"./vendor.64da71ad.js";import{i as m}from"./index.e931b941.js";const $={class:"login-page"},ee=A("div",{class:"down"},[A("img",{src:N})],-1),ae={class:"login"},te=A("div",{class:"logo-box"},[A("img",{src:"data:image/png;base64,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",class:"logo-box__icon",alt:""}),A("div",{class:"logo-box__text"},"PikPak")],-1),ue={class:"login-box"},oe=p("\u63A5\u53D7\u9080\u8BF7\u83B7\u5F9710\u5929vip"),ne=p("\u767B\u5F55"),le={class:"login-other"},ie=p(" \u90AE\u7BB1\u767B\u9646 "),se=p(" APP\u5185\u8C37\u6B4C\u767B\u5F55\u7684\u8D26\u53F7\u8BF7\u5148\u901A\u8FC7\u5FD8\u8BB0\u5BC6\u7801\u8BBE\u7F6E\u5BC6\u7801\u540E\u767B\u5F55 "),pe=O({setup(Ae){const e=s({phone_number:"",verification_code:"",captcha_token:"",verification_id:""}),x=s(),B=s(!1),I={phone_number:[{required:!0,message:"\u8BF7\u8F93\u5165\u624B\u673A\u53F7",trigger:"blur"}],verification_code:[{required:!0,message:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801",trigger:"blur"}]},g=s(!1),f=s(!1),F=S(),_=K(),P=(()=>{let l=32,o="abcdefhijkmnprstwxyz2345678",d=o.length,n="";for(let i=0;im.post("https://user.mypikpak.com/v1/shield/captcha/init?client_id=YNxT9w7GMdWvEOKa",{action:l||"POST:/v1/auth/verification",captcha_token:e.value.captcha_token||"",client_id:"YNxT9w7GMdWvEOKa",device_id:P,meta:{phone_number:e.value.phone_number},redirect_uri:"xlaccsdk01://xunlei.com/callback?state=harbor"}).then(o=>{o.data&&o.data.captcha_token&&(e.value.captcha_token=o.data.captcha_token)}),v=s(!1),R=()=>{if(e.value.phone_number){if(e.value.phone_number.indexOf("+")===-1)return _.error("\u8BF7\u8F93\u5165\u533A\u53F7\u52A0\u624B\u673A\u53F7\u5982+8618513579246"),!1;e.value.captcha_token="",g.value=!0,C("POST:/v1/auth/verification").then(()=>{m.post("https://user.mypikpak.com/v1/auth/verification?client_id=YNxT9w7GMdWvEOKa",{captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",phone_number:e.value.phone_number,locale:"zh-cn",target:"ANY"}).then(l=>{e.value.verification_id=l.data.verification_id,v.value=l.data.is_user||!1,M()}).finally(()=>{g.value=!1})}).catch(()=>{g.value=!1})}else return!1},r=s(60),c=s(),M=()=>{r.value=59,c.value&&clearInterval(c.value),c.value=setInterval(()=>{if(r.value--,r.value<=0){clearInterval(c.value),r.value=60;return}},1e3)},y=l=>{l.preventDefault(),x.value.validate(o=>{o||(f.value=!0,m.post("https://user.mypikpak.com/v1/auth/verification/verify?client_id=YNxT9w7GMdWvEOKa",{client_id:"YNxT9w7GMdWvEOKa",verification_id:e.value.verification_id,verification_code:e.value.verification_code}).then(d=>{C(v.value?"POST:/v1/auth/signin":"POST:/v1/auth/signup").then(()=>{let n="https://user.mypikpak.com/v1/auth/signup",i={captcha_token:e.value.captcha_token,client_id:"YNxT9w7GMdWvEOKa",client_secret:"dbw2OtmVEeuUvIptb1Coyg",verification_token:d.data.verification_token};v.value?(n="https://user.mypikpak.com/v1/auth/signin",i.username=e.value.phone_number):(i.phone_number=e.value.phone_number,i.password="",i.name="U_"+e.value.phone_number.slice(-4)),m.post(n,i).then(k=>{B.value&&!v.value&&j(k.data),window.localStorage.setItem("pikpakLogin",JSON.stringify(k.data)),window.localStorage.removeItem("pikpakLoginData"),_.success("\u767B\u5F55\u6210\u529F"),F.push("/")}).catch(k=>{f.value=!1})})}).catch(d=>{f.value=!1}))})},j=l=>{q.get("https://invite.z7.workers.dev/"+l.sub,{headers:{authorization:l.token_type+" "+l.access_token}}).then(o=>{})};return Y(()=>{c.value&&clearInterval(c.value)}),(l,o)=>{const d=T("router-link");return b(),U("div",$,[ee,A("div",ae,[te,A("div",ue,[a(t(W),{"label-align":"left",style:{"padding-top":"30px"},model:e.value,rules:I,ref:(n,i)=>{i.formRef=n,x.value=n},"label-placement":"left","label-width":"0",class:"login-form"},{default:u(()=>[a(t(h),{path:"email"},{default:u(()=>[a(t(E),{value:e.value.phone_number,"onUpdate:value":o[0]||(o[0]=n=>e.value.phone_number=n),placeholder:"\u8BF7\u8F93\u5165\u533A\u53F7\u52A0\u624B\u673A\u53F7\u5982+8618513579246"},null,8,["value"])]),_:1}),a(t(h),{path:"verification_code"},{default:u(()=>[a(t(L),null,{default:u(()=>[a(t(E),{value:e.value.verification_code,"onUpdate:value":o[1]||(o[1]=n=>e.value.verification_code=n),placeholder:"\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801"},null,8,["value"]),a(t(D),{onClick:R,disabled:r.value<60,loading:g.value},{default:u(()=>[p(H(r.value>=60?"\u53D1\u9001\u9A8C\u8BC1\u7801":"\u91CD\u65B0\u53D1\u9001 "+r.value+"s"),1)]),_:1},8,["disabled","loading"])]),_:1})]),_:1}),v.value?G("",!0):(b(),X(t(h),{key:0,label:""},{default:u(()=>[a(t(Z),{checked:B.value,"onUpdate:checked":o[2]||(o[2]=n=>B.value=n)},{default:u(()=>[oe]),_:1},8,["checked"])]),_:1})),a(t(h),null,{default:u(()=>[a(t(D),{type:"primary",class:"block",loading:f.value,onClick:y},{default:u(()=>[ne]),_:1},8,["loading"])]),_:1})]),_:1},8,["model"]),A("div",le,[a(t(z),{inline:""},{default:u(()=>[a(t(w),null,{trigger:u(()=>[a(d,{to:"login"},{default:u(()=>[a(t(Q),{color:"#306eff",size:32},{default:u(()=>[a(t(V))]),_:1})]),_:1})]),default:u(()=>[ie]),_:1}),a(t(w),null,{trigger:u(()=>[a(t(Q),{color:"#306eff",size:32},{default:u(()=>[a(t(J))]),_:1})]),default:u(()=>[se]),_:1})]),_:1})])])])])}}});export{pe as default}; diff --git a/assets/test.0b72ee9b.js b/assets/test.59236008.js similarity index 99% rename from assets/test.0b72ee9b.js rename to assets/test.59236008.js index 5b7c82145..f295ee9e2 100644 --- a/assets/test.0b72ee9b.js +++ b/assets/test.59236008.js @@ -1,4 +1,4 @@ -import{au as commonjsGlobal,aK as commonjsRequire,av as getDefaultExportFromCjs,d as defineComponent,r as ref,m as useRoute,b as openBlock,s as createElementBlock,e as createVNode,f as unref,aL as NUpload,w as withCtx,aM as NUploadDragger,c as createBlock,az as withModifiers,aN as NUploadFileList,T as Fragment,E as createBaseVNode,aO as CloudUpload,I as NIcon,B as NText,aP as NP,y as createTextVNode}from"./vendor.64da71ad.js";import{i as instance}from"./index.50387d2f.js";function WorkerWrapper(){return new Worker("/pikpak/assets/gcid.worker.c2cbc140.js",{type:"module"})}const proxyMarker=Symbol("Comlink.proxy"),createEndpoint=Symbol("Comlink.endpoint"),releaseProxy=Symbol("Comlink.releaseProxy"),throwMarker=Symbol("Comlink.thrown"),isObject=e=>typeof e=="object"&&e!==null||typeof e=="function",proxyTransferHandler={canHandle:e=>isObject(e)&&e[proxyMarker],serialize(e){const{port1:v,port2:g}=new MessageChannel;return expose(e,v),[g,[g]]},deserialize(e){return e.start(),wrap(e)}},throwTransferHandler={canHandle:e=>isObject(e)&&throwMarker in e,serialize({value:e}){let v;return e instanceof Error?v={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:v={isError:!1,value:e},[v,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},transferHandlers=new Map([["proxy",proxyTransferHandler],["throw",throwTransferHandler]]);function expose(e,v=self){v.addEventListener("message",function g(t){if(!t||!t.data)return;const{id:o,type:u,path:l}=Object.assign({path:[]},t.data),c=(t.data.argumentList||[]).map(fromWireValue);let n;try{const r=l.slice(0,-1).reduce((a,s)=>a[s],e),i=l.reduce((a,s)=>a[s],e);switch(u){case"GET":n=i;break;case"SET":r[l.slice(-1)[0]]=fromWireValue(t.data.value),n=!0;break;case"APPLY":n=i.apply(r,c);break;case"CONSTRUCT":{const a=new i(...c);n=proxy(a)}break;case"ENDPOINT":{const{port1:a,port2:s}=new MessageChannel;expose(e,s),n=transfer(a,[a])}break;case"RELEASE":n=void 0;break;default:return}}catch(r){n={value:r,[throwMarker]:0}}Promise.resolve(n).catch(r=>({value:r,[throwMarker]:0})).then(r=>{const[i,a]=toWireValue(r);v.postMessage(Object.assign(Object.assign({},i),{id:o}),a),u==="RELEASE"&&(v.removeEventListener("message",g),closeEndPoint(v))})}),v.start&&v.start()}function isMessagePort(e){return e.constructor.name==="MessagePort"}function closeEndPoint(e){isMessagePort(e)&&e.close()}function wrap(e,v){return createProxy(e,[],v)}function throwIfProxyReleased(e){if(e)throw new Error("Proxy has been released and is not useable")}function createProxy(e,v=[],g=function(){}){let t=!1;const o=new Proxy(g,{get(u,l){if(throwIfProxyReleased(t),l===releaseProxy)return()=>requestResponseMessage(e,{type:"RELEASE",path:v.map(c=>c.toString())}).then(()=>{closeEndPoint(e),t=!0});if(l==="then"){if(v.length===0)return{then:()=>o};const c=requestResponseMessage(e,{type:"GET",path:v.map(n=>n.toString())}).then(fromWireValue);return c.then.bind(c)}return createProxy(e,[...v,l])},set(u,l,c){throwIfProxyReleased(t);const[n,r]=toWireValue(c);return requestResponseMessage(e,{type:"SET",path:[...v,l].map(i=>i.toString()),value:n},r).then(fromWireValue)},apply(u,l,c){throwIfProxyReleased(t);const n=v[v.length-1];if(n===createEndpoint)return requestResponseMessage(e,{type:"ENDPOINT"}).then(fromWireValue);if(n==="bind")return createProxy(e,v.slice(0,-1));const[r,i]=processArguments(c);return requestResponseMessage(e,{type:"APPLY",path:v.map(a=>a.toString()),argumentList:r},i).then(fromWireValue)},construct(u,l){throwIfProxyReleased(t);const[c,n]=processArguments(l);return requestResponseMessage(e,{type:"CONSTRUCT",path:v.map(r=>r.toString()),argumentList:c},n).then(fromWireValue)}});return o}function myFlat(e){return Array.prototype.concat.apply([],e)}function processArguments(e){const v=e.map(toWireValue);return[v.map(g=>g[0]),myFlat(v.map(g=>g[1]))]}const transferCache=new WeakMap;function transfer(e,v){return transferCache.set(e,v),e}function proxy(e){return Object.assign(e,{[proxyMarker]:!0})}function toWireValue(e){for(const[v,g]of transferHandlers)if(g.canHandle(e)){const[t,o]=g.serialize(e);return[{type:"HANDLER",name:v,value:t},o]}return[{type:"RAW",value:e},transferCache.get(e)||[]]}function fromWireValue(e){switch(e.type){case"HANDLER":return transferHandlers.get(e.name).deserialize(e.value);case"RAW":return e.value}}function requestResponseMessage(e,v,g){return new Promise(t=>{const o=generateUUID();e.addEventListener("message",function u(l){!l.data||!l.data.id||l.data.id!==o||(e.removeEventListener("message",u),t(l.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:o},v),g)})}function generateUUID(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var aliyunOssSdk={exports:{}};(function(module,exports){(function(e){module.exports=e()})(function(){return function(){function e(v,g,t){function o(c,n){if(!g[c]){if(!v[c]){var r=typeof commonjsRequire=="function"&&commonjsRequire;if(!n&&r)return r(c,!0);if(u)return u(c,!0);var i=new Error("Cannot find module '"+c+"'");throw i.code="MODULE_NOT_FOUND",i}var a=g[c]={exports:{}};v[c][0].call(a.exports,function(s){var d=v[c][1][s];return o(d||s)},a,a.exports,e,v,g,t)}return g[c].exports}for(var u=typeof commonjsRequire=="function"&&commonjsRequire,l=0;ltypeof e=="object"&&e!==null||typeof e=="function",proxyTransferHandler={canHandle:e=>isObject(e)&&e[proxyMarker],serialize(e){const{port1:v,port2:g}=new MessageChannel;return expose(e,v),[g,[g]]},deserialize(e){return e.start(),wrap(e)}},throwTransferHandler={canHandle:e=>isObject(e)&&throwMarker in e,serialize({value:e}){let v;return e instanceof Error?v={isError:!0,value:{message:e.message,name:e.name,stack:e.stack}}:v={isError:!1,value:e},[v,[]]},deserialize(e){throw e.isError?Object.assign(new Error(e.value.message),e.value):e.value}},transferHandlers=new Map([["proxy",proxyTransferHandler],["throw",throwTransferHandler]]);function expose(e,v=self){v.addEventListener("message",function g(t){if(!t||!t.data)return;const{id:o,type:u,path:l}=Object.assign({path:[]},t.data),c=(t.data.argumentList||[]).map(fromWireValue);let n;try{const r=l.slice(0,-1).reduce((a,s)=>a[s],e),i=l.reduce((a,s)=>a[s],e);switch(u){case"GET":n=i;break;case"SET":r[l.slice(-1)[0]]=fromWireValue(t.data.value),n=!0;break;case"APPLY":n=i.apply(r,c);break;case"CONSTRUCT":{const a=new i(...c);n=proxy(a)}break;case"ENDPOINT":{const{port1:a,port2:s}=new MessageChannel;expose(e,s),n=transfer(a,[a])}break;case"RELEASE":n=void 0;break;default:return}}catch(r){n={value:r,[throwMarker]:0}}Promise.resolve(n).catch(r=>({value:r,[throwMarker]:0})).then(r=>{const[i,a]=toWireValue(r);v.postMessage(Object.assign(Object.assign({},i),{id:o}),a),u==="RELEASE"&&(v.removeEventListener("message",g),closeEndPoint(v))})}),v.start&&v.start()}function isMessagePort(e){return e.constructor.name==="MessagePort"}function closeEndPoint(e){isMessagePort(e)&&e.close()}function wrap(e,v){return createProxy(e,[],v)}function throwIfProxyReleased(e){if(e)throw new Error("Proxy has been released and is not useable")}function createProxy(e,v=[],g=function(){}){let t=!1;const o=new Proxy(g,{get(u,l){if(throwIfProxyReleased(t),l===releaseProxy)return()=>requestResponseMessage(e,{type:"RELEASE",path:v.map(c=>c.toString())}).then(()=>{closeEndPoint(e),t=!0});if(l==="then"){if(v.length===0)return{then:()=>o};const c=requestResponseMessage(e,{type:"GET",path:v.map(n=>n.toString())}).then(fromWireValue);return c.then.bind(c)}return createProxy(e,[...v,l])},set(u,l,c){throwIfProxyReleased(t);const[n,r]=toWireValue(c);return requestResponseMessage(e,{type:"SET",path:[...v,l].map(i=>i.toString()),value:n},r).then(fromWireValue)},apply(u,l,c){throwIfProxyReleased(t);const n=v[v.length-1];if(n===createEndpoint)return requestResponseMessage(e,{type:"ENDPOINT"}).then(fromWireValue);if(n==="bind")return createProxy(e,v.slice(0,-1));const[r,i]=processArguments(c);return requestResponseMessage(e,{type:"APPLY",path:v.map(a=>a.toString()),argumentList:r},i).then(fromWireValue)},construct(u,l){throwIfProxyReleased(t);const[c,n]=processArguments(l);return requestResponseMessage(e,{type:"CONSTRUCT",path:v.map(r=>r.toString()),argumentList:c},n).then(fromWireValue)}});return o}function myFlat(e){return Array.prototype.concat.apply([],e)}function processArguments(e){const v=e.map(toWireValue);return[v.map(g=>g[0]),myFlat(v.map(g=>g[1]))]}const transferCache=new WeakMap;function transfer(e,v){return transferCache.set(e,v),e}function proxy(e){return Object.assign(e,{[proxyMarker]:!0})}function toWireValue(e){for(const[v,g]of transferHandlers)if(g.canHandle(e)){const[t,o]=g.serialize(e);return[{type:"HANDLER",name:v,value:t},o]}return[{type:"RAW",value:e},transferCache.get(e)||[]]}function fromWireValue(e){switch(e.type){case"HANDLER":return transferHandlers.get(e.name).deserialize(e.value);case"RAW":return e.value}}function requestResponseMessage(e,v,g){return new Promise(t=>{const o=generateUUID();e.addEventListener("message",function u(l){!l.data||!l.data.id||l.data.id!==o||(e.removeEventListener("message",u),t(l.data))}),e.start&&e.start(),e.postMessage(Object.assign({id:o},v),g)})}function generateUUID(){return new Array(4).fill(0).map(()=>Math.floor(Math.random()*Number.MAX_SAFE_INTEGER).toString(16)).join("-")}var aliyunOssSdk={exports:{}};(function(module,exports){(function(e){module.exports=e()})(function(){return function(){function e(v,g,t){function o(c,n){if(!g[c]){if(!v[c]){var r=typeof commonjsRequire=="function"&&commonjsRequire;if(!n&&r)return r(c,!0);if(u)return u(c,!0);var i=new Error("Cannot find module '"+c+"'");throw i.code="MODULE_NOT_FOUND",i}var a=g[c]={exports:{}};v[c][0].call(a.exports,function(s){var d=v[c][1][s];return o(d||s)},a,a.exports,e,v,g,t)}return g[c].exports}for(var u=typeof commonjsRequire=="function"&&commonjsRequire,l=0;l2&&U[2]!==void 0?U[2]:{},this.resetCancelFlag(),A.disabledMD5=A.disabledMD5===void 0?!0:!!A.disabledMD5,!(A.checkpoint&&A.checkpoint.uploadId)){B.next=8;break}return b&&p(b)&&(A.checkpoint.file=b),B.next=7,this._resumeMultipart(A.checkpoint,A);case 7:return B.abrupt("return",B.sent);case 8:return W=100*1024,A.mime||(p(b)?A.mime=r.getType(n.extname(b.name)):s(b)?A.mime=b.type:m(b)?A.mime="":A.mime=r.getType(n.extname(b))),A.headers=A.headers||{},this._convertMetaToHeaders(A.meta,A.headers),B.next=14,this._getFileSize(b);case 14:if(K=B.sent,!(K0&&i(q).to(V),G=this._divideParts(K,te),U=G.length,L=!1,B=function(z,N){return new Promise(function(){var T=(0,l.default)(u.default.mark(function _(j,H){var J,ae,oe,de,ge;return u.default.wrap(function(ue){for(;;)switch(ue.prev=ue.next){case 0:if(ue.prev=0,z.isCancel()){ue.next=29;break}return J=G[N-1],ue.next=5,z._createBuffer(W,J.start,J.end);case 5:return ae=ue.sent,oe={content:ae,size:J.end-J.start},ue.prev=7,ue.next=10,z._uploadPart(re,X,N,oe,{timeout:b.timeout,disabledMD5:b.disabledMD5});case 10:de=ue.sent,ue.next=18;break;case 13:if(ue.prev=13,ue.t0=ue.catch(7),ue.t0.status!==404){ue.next=17;break}throw z._makeAbortEvent();case 17:throw ue.t0;case 18:if(!(!z.isCancel()&&!L)){ue.next=26;break}if(O.doneParts.push({number:N,etag:de.res.headers.etag}),!b.progress){ue.next=23;break}return ue.next=23,b.progress(q.length/U,O,de.res);case 23:j({number:N,etag:de.res.headers.etag}),ue.next=27;break;case 26:j();case 27:ue.next=30;break;case 29:j();case 30:ue.next=41;break;case 32:ue.prev=32,ue.t1=ue.catch(0),ge=new Error,ge.name=ue.t1.name,ge.message=ue.t1.message,ge.stack=ue.t1.stack,ge.partNum=N,i(ue.t1).to(ge),H(ge);case 41:case"end":return ue.stop()}},_,null,[[0,32],[7,13]])}));return function(_,j){return T.apply(this,arguments)}}())},Y=Array.from(new Array(U),function(Z,z){return z+1}),Q=V.map(function(Z){return Z.number}),ee=Y.filter(function(Z){return Q.indexOf(Z)<0}),$=5,ie=b.parallel||$,R.next=17,this._parallel(ee,ie,function(Z){return new Promise(function(z,N){B(A,Z).then(function(T){T&&V.push(T),z()}).catch(function(T){N(T)})})});case 17:if(F=R.sent,L=!0,I=F.find(function(Z){return Z.name==="abort"}),!I){R.next=22;break}throw I;case 22:if(!this.isCancel()){R.next=25;break}throw B=null,this._makeCancelEvent();case 25:if(!(F&&F.length>0)){R.next=28;break}throw F[0].message="Failed to upload some parts with error: ".concat(F[0].toString()," part_num: ").concat(F[0].partNum),F[0];case 28:return R.next=30,this.completeMultipartUpload(re,X,V,b);case 30:return R.abrupt("return",R.sent);case 31:case"end":return R.stop()}},D,this)}));function M(D,O){return P.apply(this,arguments)}return M}(),k._getFileSize=function(){var P=(0,l.default)(u.default.mark(function D(O){return u.default.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:if(!m(O)){A.next=4;break}return A.abrupt("return",O.length);case 4:if(!(s(O)||p(O))){A.next=6;break}return A.abrupt("return",O.size);case 6:throw new Error("_getFileSize requires Buffer/File/Blob.");case 7:case"end":return A.stop()}},D)}));function M(D){return P.apply(this,arguments)}return M}();var S=e("stream"),x=S.Readable;function y(P,M){if(!(this instanceof y))return new y(P,M);x.call(this,M),this.file=P,this.reader=new FileReader,this.start=0,this.finish=!1,this.fileBuffer=null}c.inherits(y,x),y.prototype.readFileAndPush=function(M){if(this.fileBuffer)for(var D=!0;D&&this.fileBuffer&&this.startthis.fileBuffer.length?this.fileBuffer.length:b,this.start=b,D=this.push(this.fileBuffer.slice(O,b))}},y.prototype._read=function(M){if(this.file&&this.start>=this.file.size||this.fileBuffer&&this.start>=this.fileBuffer.length||this.finish||this.start===0&&!this.file){this.finish||(this.fileBuffer=null,this.finish=!0),this.push(null);return}var D=16*1024;M=M||D;var O=this;this.reader.onload=function(A){O.fileBuffer=t.from(new Uint8Array(A.target.result)),O.file=null,O.readFileAndPush(M)},this.start===0?this.reader.readAsArrayBuffer(this.file):this.readFileAndPush(M)};function E(P){return P.arrayBuffer?P.arrayBuffer():new Promise(function(M,D){var O=new FileReader;O.onload=function(b){M(b.target.result)},O.onerror=function(b){D(b)},O.readAsArrayBuffer(P)})}k._createBuffer=function(){var P=(0,l.default)(u.default.mark(function D(O,b,A){var W,K;return u.default.wrap(function(X){for(;;)switch(X.prev=X.next){case 0:if(!(s(O)||p(O))){X.next=8;break}return W=O.slice(b,A),X.next=4,E(W);case 4:return K=X.sent,X.abrupt("return",t.from(K));case 8:if(!m(O)){X.next=12;break}return X.abrupt("return",O.subarray(b,A));case 12:throw new Error("_createBuffer requires File/Blob/Buffer.");case 13:case"end":return X.stop()}},D)}));function M(D,O,b){return P.apply(this,arguments)}return M}(),k._getPartSize=function(M,D){var O=10*1e3,b=1*1024*1024;D||(D=b);var A=Math.ceil(M/O);return D1&&W[1]!==void 0?W[1]:{},P=y["continuation-token"]||y.continuationToken,delete y["continuation-token"],delete y.continuationToken,P&&(E.subres=Object.assign({"continuation-token":P},E.subres)),M=this._objectRequestParams("GET","",E),M.query=Object.assign({"list-type":2},y),M.xmlResponse=!0,M.successStatuses=[200],te.next=11,this.request(M);case 11:return D=te.sent,O=D.data.Contents,b=this,O&&(Array.isArray(O)||(O=[O]),O=O.map(function(X){return{name:X.Key,url:b._objectUrl(X.Key),lastModified:X.LastModified,etag:X.ETag,type:X.Type,size:Number(X.Size),storageClass:X.StorageClass,owner:X.Owner?{id:X.Owner.ID,displayName:X.Owner.DisplayName}:null}})),A=D.data.CommonPrefixes||null,A&&(Array.isArray(A)||(A=[A]),A=A.map(function(X){return X.Prefix})),te.abrupt("return",{res:D.res,objects:O,prefixes:A,isTruncated:D.data.IsTruncated==="true",keyCount:+D.data.KeyCount,continuationToken:D.data.ContinuationToken||null,nextContinuationToken:D.data.NextContinuationToken||null});case 18:case"end":return te.stop()}},x,this)}));function S(x){return k.apply(this,arguments)}return S}(),w.restore=function(){var k=(0,u.default)(o.default.mark(function x(y,E){var P,M;return o.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return E=E||{},E.subres=Object.assign({restore:""},E.subres),E.versionId&&(E.subres.versionId=E.versionId),P=this._objectRequestParams("POST",y,E),P.successStatuses=[202],O.next=7,this.request(P);case 7:return M=O.sent,O.abrupt("return",{res:M.res});case 9:case"end":return O.stop()}},x,this)}));function S(x,y){return k.apply(this,arguments)}return S}(),w._objectUrl=function(S){return this._getReqUrl({bucket:this.options.bucket,object:S})},w._objectRequestParams=function(S,x,y){if(!this.options.bucket&&!this.options.cname)throw new Error("Please create a bucket first");y=y||{},x=this._objectName(x);var E={object:x,bucket:this.options.bucket,method:S,subres:y&&y.subres,timeout:y&&y.timeout,ctx:y&&y.ctx};return y.headers&&(E.headers={},c(y.headers).to(E.headers)),E},w._objectName=function(S){return S.replace(/^\/+/,"")},w._convertMetaToHeaders=function(S,x){!S||Object.keys(S).forEach(function(y){x["x-oss-meta-".concat(y)]=S[y]})},w._deleteFileSafe=function(S){var x=this;return new Promise(function(y){l.exists(S,function(E){E?l.unlink(S,function(P){P&&x.debug("unlink %j error: %s",S,P,"error"),y()}):y()})})}},{"../common/callback":23,"../common/image":26,"../common/object/copyObject":29,"../common/object/delete":30,"../common/object/deleteMulti":31,"../common/object/deleteObjectTagging":32,"../common/object/generateObjectUrl":33,"../common/object/get":34,"../common/object/getACL":35,"../common/object/getBucketVersions":36,"../common/object/getObjectMeta":37,"../common/object/getObjectTagging":38,"../common/object/getObjectUrl":39,"../common/object/getSymlink":40,"../common/object/head":41,"../common/object/putACL":42,"../common/object/putObjectTagging":43,"../common/object/putSymlink":44,"../common/object/signatureUrl":45,"../common/utils/isBlob":60,"../common/utils/isBuffer":61,"../common/utils/isFile":62,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"copy-to":101,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.map":245,"core-js/modules/es.function.name":249,"core-js/modules/es.number.constructor":250,"core-js/modules/es.object.assign":251,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.promise":255,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.regexp.to-string":257,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":291,fs:79,"merge-descriptors":310,mime:312,path:315,"regenerator-runtime/runtime":336}],5:[function(e,v,g){g.version="6.16.0"},{}],6:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.abortBucketWorm=void 0;var l=e("../utils/checkBucketName");function c(r,i){return n.apply(this,arguments)}function n(){return n=(0,u.default)(o.default.mark(function r(i,a){var s,d;return o.default.wrap(function(h){for(;;)switch(h.prev=h.next){case 0:return l.checkBucketName(i),s=this._bucketRequestParams("DELETE",i,"worm",a),h.next=4,this.request(s);case 4:return d=h.sent,h.abrupt("return",{res:d.res,status:d.status});case 6:case"end":return h.stop()}},r,this)})),n.apply(this,arguments)}g.abortBucketWorm=c},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],7:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.completeBucketWorm=void 0;var l=e("../utils/checkBucketName");function c(r,i,a){return n.apply(this,arguments)}function n(){return n=(0,u.default)(o.default.mark(function r(i,a,s){var d,p;return o.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return l.checkBucketName(i),d=this._bucketRequestParams("POST",i,{wormId:a},s),f.next=4,this.request(d);case 4:return p=f.sent,f.abrupt("return",{res:p.res,status:p.status});case 6:case"end":return f.stop()}},r,this)})),n.apply(this,arguments)}g.completeBucketWorm=c},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],8:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.deleteBucketInventory=void 0;var l=e("../utils/checkBucketName");function c(r,i){return n.apply(this,arguments)}function n(){return n=(0,u.default)(o.default.mark(function r(i,a){var s,d,p,h,f=arguments;return o.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return s=f.length>2&&f[2]!==void 0?f[2]:{},d=Object.assign({inventory:"",inventoryId:a},s.subres),l.checkBucketName(i),p=this._bucketRequestParams("DELETE",i,d,s),p.successStatuses=[204],w.next=7,this.request(p);case 7:return h=w.sent,w.abrupt("return",{status:h.status,res:h.res});case 9:case"end":return w.stop()}},r,this)})),n.apply(this,arguments)}g.deleteBucketInventory=c},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],9:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=g;n.deleteBucketLifecycle=function(){var r=(0,u.default)(o.default.mark(function a(s,d){var p,h;return o.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return c(s),p=this._bucketRequestParams("DELETE",s,"lifecycle",d),p.successStatuses=[204],m.next=5,this.request(p);case 5:return h=m.sent,m.abrupt("return",{res:h.res});case 7:case"end":return m.stop()}},a,this)}));function i(a,s){return r.apply(this,arguments)}return i}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],10:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=g;n.deleteBucketWebsite=function(){var r=(0,u.default)(o.default.mark(function a(s,d){var p,h;return o.default.wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return c(s),p=this._bucketRequestParams("DELETE",s,"website",d),p.successStatuses=[204],m.next=5,this.request(p);case 5:return h=m.sent,m.abrupt("return",{res:h.res});case 7:case"end":return m.stop()}},a,this)}));function i(a,s){return r.apply(this,arguments)}return i}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],11:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.extendBucketWorm=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/obj2xml");function n(i,a,s,d){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s,d,p){var h,f,m;return o.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return l.checkBucketName(a),h=this._bucketRequestParams("POST",a,{wormExtend:"",wormId:s},p),f={ExtendWormConfiguration:{RetentionPeriodInDays:d}},h.mime="xml",h.content=c.obj2xml(f,{headers:!0}),h.successStatuses=[200],k.next=8,this.request(h);case 8:return m=k.sent,k.abrupt("return",{res:m.res,status:m.status});case 10:case"end":return k.stop()}},i,this)})),r.apply(this,arguments)}g.extendBucketWorm=n},{"../utils/checkBucketName":48,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],12:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.getBucketInventory=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/formatInventoryConfig");function n(i,a){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s){var d,p,h,f,m=arguments;return o.default.wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return d=m.length>2&&m[2]!==void 0?m[2]:{},p=Object.assign({inventory:"",inventoryId:s},d.subres),l.checkBucketName(a),h=this._bucketRequestParams("GET",a,p,d),h.successStatuses=[200],h.xmlResponse=!0,k.next=8,this.request(h);case 8:return f=k.sent,k.abrupt("return",{status:f.status,res:f.res,inventory:c.formatInventoryConfig(f.data)});case 10:case"end":return k.stop()}},i,this)})),r.apply(this,arguments)}g.getBucketInventory=n},{"../utils/checkBucketName":48,"../utils/formatInventoryConfig":56,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],13:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.map");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/isArray"),r=n.isArray,i=e("../utils/formatObjKey"),a=i.formatObjKey,s=g;s.getBucketLifecycle=function(){var d=(0,u.default)(o.default.mark(function h(f,m){var w,k,S;return o.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return c(f),w=this._bucketRequestParams("GET",f,"lifecycle",m),w.successStatuses=[200],w.xmlResponse=!0,y.next=6,this.request(w);case 6:return k=y.sent,S=k.data.Rule||null,S&&(r(S)||(S=[S]),S=S.map(function(E){return E.ID&&(E.id=E.ID,delete E.ID),E.Tag&&!r(E.Tag)&&(E.Tag=[E.Tag]),a(E,"firstLowerCase")})),y.abrupt("return",{rules:S,res:k.res});case 10:case"end":return y.stop()}},h,this)}));function p(h,f){return d.apply(this,arguments)}return p}()},{"../utils/checkBucketName":48,"../utils/formatObjKey":57,"../utils/isArray":59,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.map":245,"regenerator-runtime/runtime":336}],14:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=g;n.getBucketVersioning=function(){var r=(0,u.default)(o.default.mark(function a(s,d){var p,h,f;return o.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return c(s),p=this._bucketRequestParams("GET",s,"versioning",d),p.xmlResponse=!0,p.successStatuses=[200],w.next=6,this.request(p);case 6:return h=w.sent,f=h.data.Status,w.abrupt("return",{status:h.status,versionStatus:f,res:h.res});case 9:case"end":return w.stop()}},a,this)}));function i(a,s){return r.apply(this,arguments)}return i}()},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],15:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/isObject"),r=n.isObject,i=g;i.getBucketWebsite=function(){var a=(0,u.default)(o.default.mark(function d(p,h){var f,m,w;return o.default.wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return c(p),f=this._bucketRequestParams("GET",p,"website",h),f.successStatuses=[200],f.xmlResponse=!0,S.next=6,this.request(f);case 6:return m=S.sent,w=[],m.data.RoutingRules&&m.data.RoutingRules.RoutingRule&&(r(m.data.RoutingRules.RoutingRule)?w=[m.data.RoutingRules.RoutingRule]:w=m.data.RoutingRules.RoutingRule),S.abrupt("return",{index:m.data.IndexDocument&&m.data.IndexDocument.Suffix||"",supportSubDir:m.data.IndexDocument&&m.data.IndexDocument.SupportSubDir||"false",type:m.data.IndexDocument&&m.data.IndexDocument.Type,routingRules:w,error:m.data.ErrorDocument&&m.data.ErrorDocument.Key||null,res:m.res});case 10:case"end":return S.stop()}},d,this)}));function s(d,p){return a.apply(this,arguments)}return s}()},{"../utils/checkBucketName":48,"../utils/isObject":65,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],16:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.getBucketWorm=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/dataFix");function n(i,a){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s){var d,p;return o.default.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return l.checkBucketName(a),d=this._bucketRequestParams("GET",a,"worm",s),d.successStatuses=[200],d.xmlResponse=!0,f.next=6,this.request(d);case 6:return p=f.sent,c.dataFix(p.data,{lowerFirst:!0,rename:{RetentionPeriodInDays:"days"}}),f.abrupt("return",Object.assign(Object.assign({},p.data),{res:p.res,status:p.status}));case 9:case"end":return f.stop()}},i,this)})),r.apply(this,arguments)}g.getBucketWorm=n},{"../utils/checkBucketName":48,"../utils/dataFix":53,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],17:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.initiateBucketWorm=void 0;var l=e("../utils/obj2xml"),c=e("../utils/checkBucketName");function n(i,a,s){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s,d){var p,h,f;return o.default.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return c.checkBucketName(a),p=this._bucketRequestParams("POST",a,"worm",d),h={InitiateWormConfiguration:{RetentionPeriodInDays:s}},p.mime="xml",p.content=l.obj2xml(h,{headers:!0}),p.successStatuses=[200],w.next=8,this.request(p);case 8:return f=w.sent,w.abrupt("return",{res:f.res,wormId:f.res.headers["x-oss-worm-id"],status:f.status});case 10:case"end":return w.stop()}},i,this)})),r.apply(this,arguments)}g.initiateBucketWorm=n},{"../utils/checkBucketName":48,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],18:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.listBucketInventory=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/formatInventoryConfig");function n(i){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a){var s,d,p,h,f,m,w,k,S=arguments;return o.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return s=S.length>1&&S[1]!==void 0?S[1]:{},d=s.continuationToken,p=Object.assign({inventory:""},d&&{"continuation-token":d},s.subres),l.checkBucketName(a),h=this._bucketRequestParams("GET",a,p,s),h.successStatuses=[200],h.xmlResponse=!0,y.next=9,this.request(h);case 9:return f=y.sent,m=f.data,w=f.res,k=f.status,y.abrupt("return",{isTruncated:m.IsTruncated==="true",nextContinuationToken:m.NextContinuationToken,inventoryList:c.formatInventoryConfig(m.InventoryConfiguration,!0),status:k,res:w});case 12:case"end":return y.stop()}},i,this)})),r.apply(this,arguments)}g.listBucketInventory=n},{"../utils/checkBucketName":48,"../utils/formatInventoryConfig":56,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],19:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.object.assign");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator"));Object.defineProperty(g,"__esModule",{value:!0}),g.putBucketInventory=void 0;var l=e("../utils/checkBucketName"),c=e("../utils/obj2xml");function n(i,a){return r.apply(this,arguments)}function r(){return r=(0,u.default)(o.default.mark(function i(a,s){var d,p,h,f,m,w,k,S,x,y,E,P=arguments;return o.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:return d=P.length>2&&P[2]!==void 0?P[2]:{},p=Object.assign({inventory:"",inventoryId:s.id},d.subres),l.checkBucketName(a),h=s.OSSBucketDestination,f=s.optionalFields,m=s.includedObjectVersions,w="acs:oss:::",k="acs:ram::".concat(h.accountId,":role/"),S={InventoryConfiguration:{Id:s.id,IsEnabled:s.isEnabled,Filter:{Prefix:s.prefix||""},Destination:{OSSBucketDestination:{Format:h.format,AccountId:h.accountId,RoleArn:"".concat(k).concat(h.rolename),Bucket:"".concat(w).concat(h.bucket),Prefix:h.prefix||"",Encryption:h.encryption||""}},Schedule:{Frequency:s.frequency},IncludedObjectVersions:m,OptionalFields:{Field:(f==null?void 0:f.field)||[]}}},x=c.obj2xml(S,{headers:!0,firstUpperCase:!0}),y=this._bucketRequestParams("PUT",a,p,d),y.successStatuses=[200],y.mime="xml",y.content=x,D.next=14,this.request(y);case 14:return E=D.sent,D.abrupt("return",{status:E.status,res:E.res});case 16:case"end":return D.stop()}},i,this)})),r.apply(this,arguments)}g.putBucketInventory=n},{"../utils/checkBucketName":48,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.concat":234,"core-js/modules/es.object.assign":251,"regenerator-runtime/runtime":336}],20:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.for-each"),e("core-js/modules/es.array.includes"),e("core-js/modules/web.dom-collections.for-each");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/isArray"),r=n.isArray,i=e("../utils/deepCopy"),a=i.deepCopy,s=e("../utils/isObject"),d=s.isObject,p=e("../utils/obj2xml"),h=p.obj2xml,f=e("../utils/checkObjectTag"),m=f.checkObjectTag,w=e("../utils/getStrBytesCount"),k=w.getStrBytesCount,S=g;S.putBucketLifecycle=function(){var M=(0,u.default)(o.default.mark(function O(b,A,W){var K,te,X,q,re;return o.default.wrap(function(G){for(;;)switch(G.prev=G.next){case 0:if(c(b),r(A)){G.next=3;break}throw new Error("rules must be Array");case 3:return K=this._bucketRequestParams("PUT",b,"lifecycle",W),te=[],X={LifecycleConfiguration:{Rule:te}},A.forEach(function(U){x(U),P(U),U.id&&(U.ID=U.id,delete U.id),te.push(U)}),q=h(X,{headers:!0,firstUpperCase:!0}),K.content=q,K.mime="xml",K.successStatuses=[200],G.next=13,this.request(K);case 13:return re=G.sent,G.abrupt("return",{res:re.res});case 15:case"end":return G.stop()}},O,this)}));function D(O,b,A){return M.apply(this,arguments)}return D}();function x(M){M.days&&(M.expiration={days:M.days}),M.date&&(M.expiration={createdBeforeDate:M.date})}function y(M,D){var O=M.days,b=M.createdBeforeDate;if(!O&&!b)throw new Error("".concat(D," must includes days or createdBeforeDate"));if(O&&!/^[1-9][0-9]*$/.test(O))throw new Error("days must be a positive integer");if(b&&!/\d{4}-\d{2}-\d{2}T00:00:00.000Z/.test(b))throw new Error("createdBeforeDate must be date and conform to iso8601 format")}function E(M){if(!r(M)&&!d(M))throw new Error("tag must be Object or Array");M=d(M)?[M]:M;var D={},O=a(M);O.forEach(function(b){D[b.key]=b.value}),m(D)}function P(M){if(M.id&&k(M.id)>255)throw new Error("ID is composed of 255 bytes at most");if(M.prefix===void 0)throw new Error("Rule must includes prefix");if(!["Enabled","Disabled"].includes(M.status))throw new Error("Status must be Enabled or Disabled");if(M.transition){if(!["IA","Archive"].includes(M.transition.storageClass))throw new Error("StorageClass must be IA or Archive");y(M.transition,"Transition")}if(M.expiration){if(!M.expiration.expiredObjectDeleteMarker)y(M.expiration,"Expiration");else if(M.expiration.days||M.expiration.createdBeforeDate)throw new Error("expiredObjectDeleteMarker cannot be used with days or createdBeforeDate")}if(M.abortMultipartUpload&&y(M.abortMultipartUpload,"AbortMultipartUpload"),!M.expiration&&!M.abortMultipartUpload&&!M.transition&&!M.noncurrentVersionTransition)throw new Error("Rule must includes expiration or abortMultipartUpload or transition or noncurrentVersionTransition");if(M.tag){if(M.abortMultipartUpload)throw new Error("Tag cannot be used with abortMultipartUpload");E(M.tag)}}},{"../utils/checkBucketName":48,"../utils/checkObjectTag":50,"../utils/deepCopy":54,"../utils/getStrBytesCount":58,"../utils/isArray":59,"../utils/isObject":65,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.for-each":238,"core-js/modules/es.array.includes":240,"core-js/modules/web.dom-collections.for-each":291,"regenerator-runtime/runtime":336}],21:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.includes");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/obj2xml"),r=n.obj2xml,i=g;i.putBucketVersioning=function(){var a=(0,u.default)(o.default.mark(function d(p,h){var f,m,w,k,S=arguments;return o.default.wrap(function(y){for(;;)switch(y.prev=y.next){case 0:if(f=S.length>2&&S[2]!==void 0?S[2]:{},c(p),["Enabled","Suspended"].includes(h)){y.next=4;break}throw new Error("status must be Enabled or Suspended");case 4:return m=this._bucketRequestParams("PUT",p,"versioning",f),w={VersioningConfiguration:{Status:h}},m.mime="xml",m.content=r(w,{headers:!0}),y.next=10,this.request(m);case 10:return k=y.sent,y.abrupt("return",{res:k.res,status:k.status});case 12:case"end":return y.stop()}},d,this)}));function s(d,p){return a.apply(this,arguments)}return s}()},{"../utils/checkBucketName":48,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.includes":240,"regenerator-runtime/runtime":336}],22:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault"),o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("../utils/obj2xml"),r=n.obj2xml,i=e("../utils/isArray"),a=i.isArray,s=g;s.putBucketWebsite=function(){var d=(0,u.default)(o.default.mark(function h(f){var m,w,k,S,x,y,E,P=arguments;return o.default.wrap(function(D){for(;;)switch(D.prev=D.next){case 0:if(m=P.length>1&&P[1]!==void 0?P[1]:{},w=P.length>2?P[2]:void 0,c(f),k=this._bucketRequestParams("PUT",f,"website",w),S={Suffix:m.index||"index.html"},x={IndexDocument:S},y={WebsiteConfiguration:x},m.supportSubDir&&(S.SupportSubDir=m.supportSubDir),m.type&&(S.Type=m.type),m.error&&(x.ErrorDocument={Key:m.error}),m.routingRules===void 0){D.next=14;break}if(a(m.routingRules)){D.next=13;break}throw new Error("RoutingRules must be Array");case 13:x.RoutingRules={RoutingRule:m.routingRules};case 14:return y=r(y),k.content=y,k.mime="xml",k.successStatuses=[200],D.next=20,this.request(k);case 20:return E=D.sent,D.abrupt("return",{res:E.res});case 22:case"end":return D.stop()}},h,this)}));function p(h){return d.apply(this,arguments)}return p}()},{"../utils/checkBucketName":48,"../utils/isArray":59,"../utils/obj2xml":67,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"regenerator-runtime/runtime":336}],23:[function(e,v,g){(function(t){e("core-js/modules/es.array.for-each"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string"),e("core-js/modules/web.dom-collections.for-each"),g.encodeCallback=function(u,l){if(u.headers=u.headers||{},!Object.prototype.hasOwnProperty.call(u.headers,"x-oss-callback")&&l.callback){var c={callbackUrl:encodeURI(l.callback.url),callbackBody:l.callback.body};l.callback.host&&(c.callbackHost=l.callback.host),l.callback.contentType&&(c.callbackBodyType=l.callback.contentType);var n=t.from(JSON.stringify(c)).toString("base64");if(u.headers["x-oss-callback"]=n,l.callback.customValue){var r={};Object.keys(l.callback.customValue).forEach(function(i){r["x:".concat(i)]=l.callback.customValue[i]}),u.headers["x-oss-callback-var"]=t.from(JSON.stringify(r)).toString("base64")}}}}).call(this,e("buffer").Buffer)},{buffer:99,"core-js/modules/es.array.for-each":238,"core-js/modules/es.object.keys":253,"core-js/modules/es.object.to-string":254,"core-js/modules/es.regexp.to-string":257,"core-js/modules/web.dom-collections.for-each":291}],24:[function(e,v,g){e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.for-each"),e("core-js/modules/es.regexp.exec"),e("core-js/modules/es.string.replace"),e("core-js/modules/web.dom-collections.for-each");var t=function(a){return a&&a.__esModule?a:{default:a}};Object.defineProperty(g,"__esModule",{value:!0}),g.getReqUrl=void 0;var o=t(e("copy-to")),u=t(e("url")),l=t(e("merge-descriptors")),c=t(e("is-type-of")),n=e("../utils/isIP"),r=e("../utils/checkConfigValid");function i(a){var s={},d=this.options.cname;r.checkConfigValid(this.options.endpoint,"endpoint"),o.default(this.options.endpoint,!1).to(s),a.bucket&&!d&&!n.isIP(s.hostname)&&!this.options.sldEnable&&(s.host="".concat(a.bucket,".").concat(s.host));var p="/";a.bucket&&this.options.sldEnable&&(p+="".concat(a.bucket,"/")),a.object&&(p+=this._escape(a.object).replace(/\+/g,"%2B")),s.pathname=p;var h={};if(a.query&&l.default(h,a.query),a.subres){var f={};c.default.string(a.subres)?f[a.subres]="":c.default.array(a.subres)?a.subres.forEach(function(m){f[m]=""}):f=a.subres,l.default(h,f)}return s.query=h,u.default.format(s)}g.getReqUrl=i},{"../utils/checkConfigValid":49,"../utils/isIP":64,"copy-to":101,"core-js/modules/es.array.concat":234,"core-js/modules/es.array.for-each":238,"core-js/modules/es.regexp.exec":256,"core-js/modules/es.string.replace":261,"core-js/modules/web.dom-collections.for-each":291,"is-type-of":391,"merge-descriptors":310,url:393}],25:[function(e,v,g){e("core-js/modules/es.array.concat"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.string.trim");var t=e("humanize-ms"),o=e("url"),u=e("../utils/checkBucketName"),l=u.checkBucketName,c=e("../utils/setRegion"),n=c.setRegion,r=e("../utils/checkConfigValid"),i=r.checkConfigValid;function a(s,d){i(s,"endpoint");var p=o.parse(s);if(p.protocol||(p=o.parse("http".concat(d?"s":"","://").concat(s))),p.protocol!=="http:"&&p.protocol!=="https:")throw new Error("Endpoint protocol must be http or https.");return p}v.exports=function(s){if(!s||!s.accessKeyId||!s.accessKeySecret)throw new Error("require accessKeyId, accessKeySecret");s.stsToken&&!s.refreshSTSToken&&!s.refreshSTSTokenInterval&&console.warn("It's recommended to set 'refreshSTSToken' and 'refreshSTSTokenInterval' to refresh stsToken\u3001accessKeyId\u3001accessKeySecret automatically when sts token has expired"),s.bucket&&l(s.bucket);var d=Object.assign({region:"oss-cn-hangzhou",internal:!1,secure:!1,timeout:6e4,bucket:null,endpoint:null,cname:!1,isRequestPay:!1,sldEnable:!1,headerEncoding:"utf-8",refreshSTSToken:null,refreshSTSTokenInterval:6e4*5,retryMax:0},s);if(d.accessKeyId=d.accessKeyId.trim(),d.accessKeySecret=d.accessKeySecret.trim(),d.timeout&&(d.timeout=t(d.timeout)),d.endpoint)d.endpoint=a(d.endpoint,d.secure);else if(d.region)d.endpoint=n(d.region,d.internal,d.secure);else throw new Error("require options.endpoint or options.region");return d.inited=!0,d}},{"../utils/checkBucketName":48,"../utils/checkConfigValid":49,"../utils/setRegion":69,"core-js/modules/es.array.concat":234,"core-js/modules/es.object.assign":251,"core-js/modules/es.string.trim":264,"humanize-ms":298,url:393}],26:[function(e,v,g){var t=e("merge-descriptors"),o=g;t(o,e("./processObjectSave"))},{"./processObjectSave":27,"merge-descriptors":310}],27:[function(e,v,g){var t=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat");var o=t(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var u=t(e("@babel/runtime/helpers/asyncToGenerator")),l=e("../utils/checkBucketName"),c=l.checkBucketName,n=e("querystring"),r=e("js-base64"),i=r.Base64.encode,a=g;a.processObjectSave=function(){var d=(0,u.default)(o.default.mark(function h(f,m,w,k){var S,x,y,E;return o.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return s(f,"sourceObject"),s(m,"targetObject"),s(w,"process"),m=this._objectName(m),k&&c(k),S=this._objectRequestParams("POST",f,{subres:"x-oss-process"}),x=k?",b_".concat(i(k)):"",m=i(m),y={"x-oss-process":"".concat(w,"|sys/saveas,o_").concat(m).concat(x)},S.content=n.stringify(y),M.next=12,this.request(S);case 12:return E=M.sent,M.abrupt("return",{res:E.res,status:E.res.status});case 14:case"end":return M.stop()}},h,this)}));function p(h,f,m,w){return d.apply(this,arguments)}return p}();function s(d,p){if(!d)throw new Error("".concat(p," is required"));if(typeof d!="string")throw new Error("".concat(p," must be String"))}},{"../utils/checkBucketName":48,"@babel/runtime/helpers/asyncToGenerator":71,"@babel/runtime/helpers/interopRequireDefault":72,"@babel/runtime/regenerator":75,"core-js/modules/es.array.concat":234,"js-base64":309,querystring:322,"regenerator-runtime/runtime":336}],28:[function(e,v,g){(function(t){var o=e("@babel/runtime/helpers/interopRequireDefault");e("core-js/modules/es.array.concat"),e("core-js/modules/es.array.filter"),e("core-js/modules/es.array.map"),e("core-js/modules/es.array.sort"),e("core-js/modules/es.object.to-string"),e("core-js/modules/es.regexp.to-string");var u=o(e("@babel/runtime/regenerator"));e("regenerator-runtime/runtime");var l=o(e("@babel/runtime/helpers/asyncToGenerator")),c=e("copy-to"),n=e("./callback"),r=e("./utils/deepCopy"),i=r.deepCopyWith,a=e("./utils/isBuffer"),s=a.isBuffer,d=g;d.listUploads=function(){var p=(0,l.default)(u.default.mark(function f(m,w){var k,S,x,y;return u.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return w=w||{},k={},c(w).to(k),k.subres="uploads",S=this._objectRequestParams("GET","",k),S.query=m,S.xmlResponse=!0,S.successStatuses=[200],P.next=10,this.request(S);case 10:return x=P.sent,y=x.data.Upload||[],Array.isArray(y)||(y=[y]),y=y.map(function(M){return{name:M.Key,uploadId:M.UploadId,initiated:M.Initiated}}),P.abrupt("return",{res:x.res,uploads:y,bucket:x.data.Bucket,nextKeyMarker:x.data.NextKeyMarker,nextUploadIdMarker:x.data.NextUploadIdMarker,isTruncated:x.data.IsTruncated==="true"});case 15:case"end":return P.stop()}},f,this)}));function h(f,m){return p.apply(this,arguments)}return h}(),d.listParts=function(){var p=(0,l.default)(u.default.mark(function f(m,w,k,S){var x,y,E;return u.default.wrap(function(M){for(;;)switch(M.prev=M.next){case 0:return S=S||{},x={},c(S).to(x),x.subres={uploadId:w},y=this._objectRequestParams("GET",m,x),y.query=k,y.xmlResponse=!0,y.successStatuses=[200],M.next=10,this.request(y);case 10:return E=M.sent,M.abrupt("return",{res:E.res,uploadId:E.data.UploadId,bucket:E.data.Bucket,name:E.data.Key,partNumberMarker:E.data.PartNumberMarker,nextPartNumberMarker:E.data.NextPartNumberMarker,maxParts:E.data.MaxParts,isTruncated:E.data.IsTruncated,parts:E.data.Part||[]});case 12:case"end":return M.stop()}},f,this)}));function h(f,m,w,k){return p.apply(this,arguments)}return h}(),d.abortMultipartUpload=function(){var p=(0,l.default)(u.default.mark(function f(m,w,k){var S,x,y;return u.default.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return this._stop(),k=k||{},S={},c(k).to(S),S.subres={uploadId:w},x=this._objectRequestParams("DELETE",m,S),x.successStatuses=[204],P.next=9,this.request(x);case 9:return y=P.sent,P.abrupt("return",{res:y.res});case 11:case"end":return P.stop()}},f,this)}));function h(f,m,w){return p.apply(this,arguments)}return h}(),d.initMultipartUpload=function(){var p=(0,l.default)(u.default.mark(function f(m,w){var k,S,x;return u.default.wrap(function(E){for(;;)switch(E.prev=E.next){case 0:return w=w||{},k={},c(w).to(k),k.headers=k.headers||{},this._convertMetaToHeaders(w.meta,k.headers),k.subres="uploads",S=this._objectRequestParams("POST",m,k),S.mime=w.mime,S.xmlResponse=!0,S.successStatuses=[200],E.next=12,this.request(S);case 12:return x=E.sent,E.abrupt("return",{res:x.res,bucket:x.data.Bucket,name:x.data.Key,uploadId:x.data.UploadId});case 14:case"end":return E.stop()}},f,this)}));function h(f,m){return p.apply(this,arguments)}return h}(),d.uploadPart=function(){var p=(0,l.default)(u.default.mark(function f(m,w,k,S,x,y,E){var P,M;return u.default.wrap(function(O){for(;;)switch(O.prev=O.next){case 0:if(P={size:y-x},M=t&&t.browser,!M){O.next=8;break}return O.next=5,this._createBuffer(S,x,y);case 5:P.content=O.sent,O.next=11;break;case 8:return O.next=10,this._createStream(S,x,y);case 10:P.stream=O.sent;case 11:return O.next=13,this._uploadPart(m,w,k,P,E);case 13:return O.abrupt("return",O.sent);case 14:case"end":return O.stop()}},f,this)}));function h(f,m,w,k,S,x,y){return p.apply(this,arguments)}return h}(),d.completeMultipartUpload=function(){var p=(0,l.default)(u.default.mark(function f(m,w,k,S){var x,y,E,P,M,D,O,b;return u.default.wrap(function(W){for(;;)switch(W.prev=W.next){case 0:for(x=k.concat().sort(function(K,te){return K.number-te.number}).filter(function(K,te,X){return!te||K.number!==X[te-1].number}),y=` `,E=0;E diff --git a/assets/testtest.81c2e5f2.js b/assets/testtest.7142454c.js similarity index 93% rename from assets/testtest.81c2e5f2.js rename to assets/testtest.7142454c.js index ed5a54e93..e7125ab1d 100644 --- a/assets/testtest.81c2e5f2.js +++ b/assets/testtest.7142454c.js @@ -1 +1 @@ -import{d as s,b as i,s as o,E as t,T as d,k as c}from"./vendor.64da71ad.js";import{i as r}from"./index.50387d2f.js";const l=t("br",null,null,-1),p=t("br",null,null,-1),v=s({setup(m){const a=()=>{const e=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");c.get("https://invite.z7.workers.dev/"+e.sub,{headers:{authorization:e.token_type+" "+e.access_token}}).then(n=>{n.data.invited_days?window.$message.success("\u606D\u559C\u60A8\uFF0C\u60A8\u5DF2\u6210\u529F\u589E\u52A0"+n.data.invited_days+"\u5929"):window.$message.error("\u60A8\u5DF2\u7ECF\u9080\u8BF7\u8FC7\u4E86")})},u=()=>{r.get("https://api-drive.mypikpak.com/vip/v1/activity/inviteInfo").then(e=>{e.data.invited_nums>=0?window.$message.success("\u60A8\u5DF2\u6210\u529F\u9080\u8BF7"+e.data.invited_nums+"\u4EBA\uFF0C"+e.data.add_days+"\u5929"):window.$message.error(JSON.stringify(e.data))})};return(e,n)=>(i(),o(d,null,[t("button",{onClick:a},"\u63A5\u53D7\u9080\u8BF7"),l,p,t("button",{onClick:u},"\u6211\u7684\u9080\u8BF7")],64))}});export{v as default}; +import{d as s,b as i,s as o,E as t,T as d,k as c}from"./vendor.64da71ad.js";import{i as r}from"./index.e931b941.js";const l=t("br",null,null,-1),p=t("br",null,null,-1),v=s({setup(m){const a=()=>{const e=JSON.parse(window.localStorage.getItem("pikpakLogin")||"{}");c.get("https://invite.z7.workers.dev/"+e.sub,{headers:{authorization:e.token_type+" "+e.access_token}}).then(n=>{n.data.invited_days?window.$message.success("\u606D\u559C\u60A8\uFF0C\u60A8\u5DF2\u6210\u529F\u589E\u52A0"+n.data.invited_days+"\u5929"):window.$message.error("\u60A8\u5DF2\u7ECF\u9080\u8BF7\u8FC7\u4E86")})},u=()=>{r.get("https://api-drive.mypikpak.com/vip/v1/activity/inviteInfo").then(e=>{e.data.invited_nums>=0?window.$message.success("\u60A8\u5DF2\u6210\u529F\u9080\u8BF7"+e.data.invited_nums+"\u4EBA\uFF0C"+e.data.add_days+"\u5929"):window.$message.error(JSON.stringify(e.data))})};return(e,n)=>(i(),o(d,null,[t("button",{onClick:a},"\u63A5\u53D7\u9080\u8BF7"),l,p,t("button",{onClick:u},"\u6211\u7684\u9080\u8BF7")],64))}});export{v as default}; diff --git a/assets/trash.267613a1.js b/assets/trash.8bbf99ac.js similarity index 88% rename from assets/trash.267613a1.js rename to assets/trash.8bbf99ac.js index 4df64af3b..423ff5895 100644 --- a/assets/trash.267613a1.js +++ b/assets/trash.8bbf99ac.js @@ -1 +1 @@ -import{d as T,r as o,o as x,a as S,b as f,s as v,E as u,e as t,f as a,ac as z,w as s,M as B,F as N,D as b,ae as M,ag as H,a7 as P,I as w,aw as A,P as L,y as _,U as i,H as I,a8 as U,B as F,a9 as V,ad as $}from"./vendor.64da71ad.js";import{i as h,b as j}from"./index.50387d2f.js";const q={class:"list-page"},R={class:"header"},G={class:"title n-ellipsis"},K=_("\u56DE\u6536\u7AD9"),O={key:0,class:"loading"},W=_("\u52A0\u8F7D\u4E2D "),X={key:0,class:"outer-wrapper static show"},Y={class:"toolbar-wrapper"},Z=_(" \u8FD8\u539F\u6240\u9009 "),J=_(" \u5220\u9664\u6240\u9009 "),ae=T({setup(Q){const d=o(),n=o([]),C=o([{title:"\u5220\u9664\u65F6\u95F4",key:"modified_time",sorter:"default",render:e=>i(I,{time:new Date(String(e.created_time)||""),format:"MM-dd HH:MM"}),className:"modified_time",width:200},{title:"\u5927\u5C0F",key:"size",sorter:"default",render:e=>Number(e.size)>0?j(Number(e.size)):"",className:"size",width:160}]),k=o([{type:"selection"},{title:"\u540D\u79F0",key:"name",sorter:"default",render:e=>i("div",{class:"file-info"},[i("img",{src:e.thumbnail_link||e.icon_link}),i(U,{class:"title"},{default:()=>String(e.name)}),i("span",{class:"action"},"1")])},{title:"\u64CD\u4F5C",key:"action",width:90,align:"right",render:e=>i($,{},{default:()=>[i(F,{type:"primary",onClick:()=>{y(String(e.id))}},{default:()=>"\u8FD8\u539F"}),i(V,{placement:"right",onPositiveClick:()=>{g(String(e.id))}},{trigger:()=>i(F,{type:"primary"},{default:()=>"\u5220\u9664"}),default:()=>"\u786E\u5B9A\u5220\u9664\u6587\u4EF6\u5417\uFF1F"})]})}]),c=o(!1),p=o(),m=()=>{c.value=!0,h.get("https://api-drive.mypikpak.com/drive/v1/files",{params:{parent_id:"*",thumbnail_size:"SIZE_LARGE",with_audit:!0,page_token:p.value||void 0,filters:{phase:{eq:"PHASE_TYPE_COMPLETE"},trashed:{eq:!0}}}}).then(e=>{const{data:l}=e;p.value||(d.value=[]),d.value=d.value.concat(l.files),p.value=l.next_page_token}).finally(()=>{c.value=!1})},g=e=>{h.post("https://api-drive.mypikpak.com/drive/v1/files:batchDelete",{ids:typeof e=="string"?[e]:e}).then(()=>{window.$message.success("\u5220\u9664\u6210\u529F"),m()})},y=e=>{h.post("https://api-drive.mypikpak.com/drive/v1/files:batchUntrash",{ids:typeof e=="string"?[e]:e}).then(()=>{m()})},D=e=>{e.target.offsetHeight-e.target.scrollTop<30&&p.value&&!c.value&&m()};return x(()=>{document.body.clientWidth>968&&k.value.splice(2,0,...C.value),m()}),(e,l)=>{const E=S("router-link");return f(),v("div",q,[u("div",R,[u("div",G,[t(a(z),{separator:">"},{default:s(()=>[t(a(M),null,{default:s(()=>[t(E,{to:""},{default:s(()=>[K]),_:1})]),_:1})]),_:1})])]),t(a(B),{style:{"max-height":"calc(100vh - 190px)"},onScroll:D},{default:s(()=>[t(a(H),{"checked-row-keys":n.value,"onUpdate:checked-row-keys":l[0]||(l[0]=r=>n.value=r),"row-key":r=>r.id,data:d.value,size:"small",columns:k.value,bordered:!1},null,8,["checked-row-keys","row-key","data","columns"]),c.value?(f(),v("div",O,[t(a(P),{size:"small"}),W])):b("",!0)]),_:1}),n.value.length?(f(),v("div",X,[u("div",Y,[u("div",{class:"toolbar-item",onClick:l[1]||(l[1]=r=>y(n.value))},[t(a(N),null,{trigger:s(()=>[t(a(w),null,{default:s(()=>[t(a(A))]),_:1})]),default:s(()=>[Z]),_:1})]),u("div",{class:"toolbar-item",onClick:l[2]||(l[2]=r=>g(n.value))},[t(a(N),null,{trigger:s(()=>[t(a(w),null,{default:s(()=>[t(a(L))]),_:1})]),default:s(()=>[J]),_:1})])])])):b("",!0)])}}});export{ae as default}; +import{d as T,r as o,o as x,a as S,b as f,s as v,E as u,e as t,f as a,ac as z,w as s,M as B,F as b,D as N,ae as M,ag as H,a7 as P,I as w,aw as A,P as L,y as _,U as i,H as I,a8 as U,B as F,a9 as V,ad as $}from"./vendor.64da71ad.js";import{i as h,b as j}from"./index.e931b941.js";const q={class:"list-page"},R={class:"header"},G={class:"title n-ellipsis"},K=_("\u56DE\u6536\u7AD9"),O={key:0,class:"loading"},W=_("\u52A0\u8F7D\u4E2D "),X={key:0,class:"outer-wrapper static show"},Y={class:"toolbar-wrapper"},Z=_(" \u8FD8\u539F\u6240\u9009 "),J=_(" \u5220\u9664\u6240\u9009 "),ae=T({setup(Q){const d=o(),n=o([]),C=o([{title:"\u5220\u9664\u65F6\u95F4",key:"modified_time",sorter:"default",render:e=>i(I,{time:new Date(String(e.created_time)||""),format:"MM-dd HH:MM"}),className:"modified_time",width:200},{title:"\u5927\u5C0F",key:"size",sorter:"default",render:e=>Number(e.size)>0?j(Number(e.size)):"",className:"size",width:160}]),k=o([{type:"selection"},{title:"\u540D\u79F0",key:"name",sorter:"default",render:e=>i("div",{class:"file-info"},[i("img",{src:e.thumbnail_link||e.icon_link}),i(U,{class:"title"},{default:()=>String(e.name)}),i("span",{class:"action"},"1")])},{title:"\u64CD\u4F5C",key:"action",width:90,align:"right",render:e=>i($,{},{default:()=>[i(F,{type:"primary",onClick:()=>{y(String(e.id))}},{default:()=>"\u8FD8\u539F"}),i(V,{placement:"right",onPositiveClick:()=>{g(String(e.id))}},{trigger:()=>i(F,{type:"primary"},{default:()=>"\u5220\u9664"}),default:()=>"\u786E\u5B9A\u5220\u9664\u6587\u4EF6\u5417\uFF1F"})]})}]),c=o(!1),p=o(),m=()=>{c.value=!0,h.get("https://api-drive.mypikpak.com/drive/v1/files",{params:{parent_id:"*",thumbnail_size:"SIZE_LARGE",with_audit:!0,page_token:p.value||void 0,filters:{phase:{eq:"PHASE_TYPE_COMPLETE"},trashed:{eq:!0}}}}).then(e=>{const{data:l}=e;p.value||(d.value=[]),d.value=d.value.concat(l.files),p.value=l.next_page_token}).finally(()=>{c.value=!1})},g=e=>{h.post("https://api-drive.mypikpak.com/drive/v1/files:batchDelete",{ids:typeof e=="string"?[e]:e}).then(()=>{window.$message.success("\u5220\u9664\u6210\u529F"),m()})},y=e=>{h.post("https://api-drive.mypikpak.com/drive/v1/files:batchUntrash",{ids:typeof e=="string"?[e]:e}).then(()=>{m()})},D=e=>{e.target.offsetHeight-e.target.scrollTop<30&&p.value&&!c.value&&m()};return x(()=>{document.body.clientWidth>968&&k.value.splice(2,0,...C.value),m()}),(e,l)=>{const E=S("router-link");return f(),v("div",q,[u("div",R,[u("div",G,[t(a(z),{separator:">"},{default:s(()=>[t(a(M),null,{default:s(()=>[t(E,{to:""},{default:s(()=>[K]),_:1})]),_:1})]),_:1})])]),t(a(B),{style:{"max-height":"calc(100vh - 190px)"},onScroll:D},{default:s(()=>[t(a(H),{"checked-row-keys":n.value,"onUpdate:checked-row-keys":l[0]||(l[0]=r=>n.value=r),"row-key":r=>r.id,data:d.value,size:"small",columns:k.value,bordered:!1},null,8,["checked-row-keys","row-key","data","columns"]),c.value?(f(),v("div",O,[t(a(P),{size:"small"}),W])):N("",!0)]),_:1}),n.value.length?(f(),v("div",X,[u("div",Y,[u("div",{class:"toolbar-item",onClick:l[1]||(l[1]=r=>y(n.value))},[t(a(b),null,{trigger:s(()=>[t(a(w),null,{default:s(()=>[t(a(A))]),_:1})]),default:s(()=>[Z]),_:1})]),u("div",{class:"toolbar-item",onClick:l[2]||(l[2]=r=>g(n.value))},[t(a(b),null,{trigger:s(()=>[t(a(w),null,{default:s(()=>[t(a(L))]),_:1})]),default:s(()=>[J]),_:1})])])])):N("",!0)])}}});export{ae as default}; diff --git a/index.html b/index.html index 33cee6048..e67239973 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,7 @@ right: 80px; } - +