PageSourceSearch

https://static.tomoviee.ai/assets/js/vidstack-D2pY00kU-Cy28KlYW.js

js tomoviee.ai collected 2026-09-29 12:38:42 UTC 4,345 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["https://static.tomoviee.ai/assets/js/vidstack-google-cast-D2q_zQJo.js","https://static.tomoviee.ai/assets/js/ui-components-Bkqosso1.js","https://static.tomoviee.ai/assets/js/vendor-media-CeRbPzXA.js","https://static.tomoviee.ai/assets/js/critical-vue-BJr3lfii.js","https://static.tomoviee.ai/assets/js/core-utils-Ca5YS8ev.js","https://static.tomoviee.ai/assets/js/vendor-services-Zw_BGw9P.js","https://static.tomoviee.ai/assets/css/ui-components-Blde-L9R.css","https://static.tomoviee.ai/assets/js/vidstack-DqAw8m9J-BiWU5xjk.js"])))=>i.map(i=>d[i]);
2var t,e,a,o,r,s,n,i=Object.defineProperty,c=t=>{throw TypeError(t)},l=(t,e,a)=>((t,e,a)=>e in t?i(t,e,{enumerable:!0,configurable:!0,writable:!0,value:a}):t[e]=a)(t,"symbol"!=typeof e?e+"":e,a),d=(t,e,a)=>e.has(t)||c("Cannot "+a),p=(t,e,a)=>(d(t,e,"read from private field"),a?a.call(t):e.get(t)),h=(t,e,a)=>e.has(t)?c("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,a),u=(t,e,a)=>(d(t,e,"access private method"),a);import{cp as g,cE as m,cl as v,cS as f,cn as w,_ as y,cG as C}from"./ui-components-Bkqosso1.js";function E(){return _().getCastState()===cast.framework.CastState.CONNECTED}function _(){return window.cast.framework.CastContext.getInstance()}function b(){return _().getCurrentSession()}function P(){var t;return null==(t=b())?void 0:t.getSessionObj().media[0]}function S(t){var e;return(null==(e=P())?void 0:e.media.contentId)===(null==t?void 0:t.src)}function k(t){return`Google Cast Error Code: ${t}`}function A(t,e){return g(_(),t,e)}t=new WeakMap,e=new WeakSet,a=async function(t){if(null==(a=window.cast)?void 0:a.framework)return;var a;const o=t.player.createEvent("google-cast-load-start");t.player.dispatch(o),await C("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1"),await customElements.whenDefined("google-cast-launcher");const r=t.player.createEvent("google-cast-loaded",{trigger:o});if(t.player.dispatch(r),!function(){var t,e;return!!(null==(e=null==(t=window.chrome)?void 0:t.cast)?void 0:e.isAvailable)}())throw u(this,e,n).call(this,"CAST_NOT_AVAILABLE","Google Cast not available on this platform.");return r},o=async function(t){u(this,e,r).call(this,t);const a=await this.cast.requestSession();if(a)throw u(this,e,n).call(this,a.toUpperCase(),k(a))},r=function(t){var e;null==(e=this.cast)||e.setOptions({language:"en-US",autoJoinPolicy:chrome.cast.AutoJoinPolicy.ORIGIN_SCOPED,receiverApplicationId:chrome.cast.media.DEFAULT_MEDIA_RECEIVER_APP_ID,resumeSavedSession:!0,androidReceiverCompatible:!0,...t})},s=function(t,e,a){const o={type:"google-cast",state:e};t.notify("remote-playback-change",o,a)},n=function(t,e){const a=Error(e);return a.code=t,a};const I=Object.freeze(Object.defineProperty({__proto__:null,GoogleCastLoader:class{constructor(){h(this,e),l(this,"name","google-cast"),l(this,"target"),h(this,t)}get cast(){return _()}mediaType(){return"video"}canPlay(t){return m&&!v&&f(t)}async prompt(r){var i;let c,l,h;try{c=await u(this,e,a).call(this,r),p(this,t)||(g=this,m=t,v=new cast.framework.RemotePlayer,d(g,m,"write to private field"),f?f.call(g,v):m.set(g,v),new cast.framework.RemotePlayerController(p(this,t))),l=r.player.createEvent("google-cast-prompt-open",{trigger:c}),r.player.dispatchEvent(l),u(this,e,s).call(this,r,"connecting",l),await u(this,e,o).call(this,w(r.$props.googleCast)),r.$state.remotePlaybackInfo.set({deviceName:null==(i=b())?void 0:i.getCastDevice().friendlyName}),E()&&u(this,e,s).call(this,r,"connected",l)}catch(y){const t=y instanceof Error?y:u(this,e,n).call(this,(y+"").toUpperCase(),"Prompt failed.");throw h=r.player.createEvent("google-cast-prompt-error",{detail:t,trigger:l??c,cancelable:!0}),r.player.dispatch(h),u(this,e,s).call(this,r,E()?"connected":"disconnected",h),t}finally{r.player.dispatch("google-cast-prompt-close",{trigger:h??l??c})}var g,m,v,f}async load(e){if(!p(this,t))throw Error("[vidstack] google cast player was not initialized");return new((await y((async()=>{const{GoogleCastProvider:t}=await import("./vidstack-google-cast-D2q_zQJo.js");return{GoogleCastProvider:t}}),__vite__mapDeps([0,1,2,3,4,5,6,7]),import.meta.url)).GoogleCastProvider)(p(this,t),e)}}},Symbol.toStringTag,{value:"Module"}));
2export{b as a,P as b,k as c,_ as g,S as h,A as l,I as v};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.