@playpilot/tpi 8.5.10-beta.1 → 8.5.10-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mount.js CHANGED
@@ -2,9 +2,9 @@ var Xh=Object.defineProperty;var ls=Te=>{throw TypeError(Te)};var $h=(Te,Ee,De)=
2
2
  /*$vite$:1*/`,document.head.appendChild(Te);const Ee=!1;var De=Array.isArray,Oa=Array.prototype.indexOf,Pr=Array.from,us=Object.defineProperty,ni=Object.getOwnPropertyDescriptor,Un=Object.getOwnPropertyDescriptors,vs=Object.prototype,fs=Array.prototype,Cr=Object.getPrototypeOf,Wn=Object.isExtensible;function Bi(t){return typeof t=="function"}const ut=()=>{};function hs(t){return typeof(t==null?void 0:t.then)=="function"}function gs(t){return t()}function zr(t){for(var e=0;e<t.length;e++)t[e]()}function Gn(){var t,e,i=new Promise((a,r)=>{t=a,e=r});return{promise:i,resolve:t,reject:e}}function Kn(t,e,i=!1){return t===void 0?i?e():e:t}function ua(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const i=[];for(const a of t)if(i.push(a),i.length===e)break;return i}const Ge=2,Ir=4,Ra=8,Yn=1<<24,Ct=16,Gt=32,wi=64,Na=128,bt=512,Ze=1024,it=2048,Kt=4096,ot=8192,Yt=16384,Ba=32768,zt=65536,Zn=1<<17,Jn=1<<18,Fi=1<<19,Qn=1<<20,va=32768,jr=1<<21,Ar=1<<22,li=1<<23,It=Symbol("$state"),Xn=Symbol("legacy props"),ms=Symbol(""),Vi=new class extends Error{constructor(){super(...arguments);Pt(this,"name","StaleReactionError");Pt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Lr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ys(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ws(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function _s(t){throw new Error("https://svelte.dev/e/effect_orphan")}function xs(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ks(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ss(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ts(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ps(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const $n=1,el=2,tl=4,Cs=8,zs=16,Is=1,js=2,As=4,Ls=8,Ms=16,Ds=1,qs=2,Os=4,Rs=1,Ns=2,Ue=Symbol(),Bs="http://www.w3.org/1999/xhtml",Fs="http://www.w3.org/2000/svg",Vs="@attach";function Hs(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Us(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function il(t){return t===this.v}function al(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function rl(t){return!al(t,this.v)}let Hi=!1,Ws=!1;function Gs(){Hi=!0}let Se=null;function Ui(t){Se=t}function Mr(t){return nl().get(t)}function Dr(t,e){return nl().set(t,e),e}function ie(t,e=!1,i){Se={p:Se,i:!1,c:null,e:null,s:t,x:null,l:Hi&&!e?{s:null,u:null,$:[]}:null}}function ae(t){var e=Se,i=e.e;if(i!==null){e.e=null;for(var a of i)Cl(a)}return t!==void 0&&(e.x=t),e.i=!0,Se=e.p,t??{}}function _i(){return!Hi||Se!==null&&Se.l===null}function nl(t){return Se===null&&Lr(),Se.c??(Se.c=new Map(Ks(Se)||void 0))}function Ks(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let xi=[];function ll(){var t=xi;xi=[],zr(t)}function Zt(t){if(xi.length===0&&!Gi){var e=xi;queueMicrotask(()=>{e===xi&&ll()})}xi.push(t)}function Ys(){for(;xi.length>0;)ll()}function ol(t){var e=we;if(e===null)return ye.f|=li,t;if(e.f&Ba)Wi(t,e);else{if(!(e.f&Na))throw t;e.b.error(t)}}function Wi(t,e){for(;e!==null;){if(e.f&Na)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Fa=new Set;let he=null,Va=null,Ne=null,vt=[],Ha=null,qr=!1,Gi=!1;const mr=class mr{constructor(){pe(this,He);Pt(this,"committed",!1);Pt(this,"current",new Map);Pt(this,"previous",new Map);pe(this,na,new Set);pe(this,la,new Set);pe(this,Ai,0);pe(this,Li,0);pe(this,ja,null);pe(this,oa,[]);pe(this,sa,[]);Pt(this,"skipped_effects",new Set);Pt(this,"is_fork",!1)}is_deferred(){return this.is_fork||L(this,Li)>0}process(e){var a;vt=[],Va=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)ze(this,He,Bn).call(this,r,i);this.is_fork||ze(this,He,os).call(this),this.is_deferred()?(ze(this,He,Ni).call(this,i.effects),ze(this,He,Ni).call(this,i.render_effects),ze(this,He,Ni).call(this,i.block_effects)):(Va=this,he=null,dl(i.render_effects),dl(i.effects),Va=null,(a=L(this,ja))==null||a.resolve()),Ne=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&li||(this.current.set(e,e.v),Ne==null||Ne.set(e,e.v))}activate(){he=this,this.apply()}deactivate(){he===this&&(he=null,Ne=null)}flush(){if(this.activate(),vt.length>0){if(cl(),he!==null&&he!==this)return}else L(this,Ai)===0&&this.process([]);this.deactivate()}discard(){for(const e of L(this,la))e(this);L(this,la).clear()}increment(e){ne(this,Ai,L(this,Ai)+1),e&&ne(this,Li,L(this,Li)+1)}decrement(e){ne(this,Ai,L(this,Ai)-1),e&&ne(this,Li,L(this,Li)-1),this.revive()}revive(){for(const e of L(this,oa))Je(e,it),ki(e);for(const e of L(this,sa))Je(e,Kt),ki(e);ne(this,oa,[]),ne(this,sa,[]),this.flush()}oncommit(e){L(this,na).add(e)}ondiscard(e){L(this,la).add(e)}settled(){return(L(this,ja)??ne(this,ja,Gn())).promise}static ensure(){if(he===null){const e=he=new mr;Fa.add(he),Gi||mr.enqueue(()=>{he===e&&e.flush()})}return he}static enqueue(e){Zt(e)}apply(){}};na=new WeakMap,la=new WeakMap,Ai=new WeakMap,Li=new WeakMap,ja=new WeakMap,oa=new WeakMap,sa=new WeakMap,He=new WeakSet,Bn=function(e,i){var p;e.f^=Ze;for(var a=e.first;a!==null;){var r=a.f,n=(r&(Gt|wi))!==0,l=n&&(r&Ze)!==0,c=l||(r&ot)!==0||this.skipped_effects.has(a);if(a.f&Na&&((p=a.b)!=null&&p.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!c&&a.fn!==null){n?a.f^=Ze:r&Ir?i.effects.push(a):wa(a)&&(a.f&Ct&&i.block_effects.push(a),_a(a));var s=a.first;if(s!==null){a=s;continue}}var d=a.parent;for(a=a.next;a===null&&d!==null;)d===i.effect&&(ze(this,He,Ni).call(this,i.effects),ze(this,He,Ni).call(this,i.render_effects),ze(this,He,Ni).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Ni=function(e){for(const i of e)(i.f&it?L(this,oa):L(this,sa)).push(i),ze(this,He,Fn).call(this,i.deps),Je(i,Ze)},Fn=function(e){if(e!==null)for(const i of e)!(i.f&Ge)||!(i.f&va)||(i.f^=va,ze(this,He,Fn).call(this,i.deps))},os=function(){if(L(this,Li)===0){for(const e of L(this,na))e();L(this,na).clear()}L(this,Ai)===0&&ze(this,He,ss).call(this)},ss=function(){var n;if(Fa.size>1){this.previous.clear();var e=Ne,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Fa){if(l===this){i=!1;continue}const c=[];for(const[d,p]of this.current){if(l.current.has(d))if(i&&p!==l.current.get(d))l.current.set(d,p);else continue;c.push(d)}if(c.length===0)continue;const s=[...l.current.keys()].filter(d=>!this.current.has(d));if(s.length>0){var r=vt;vt=[];const d=new Set,p=new Map;for(const u of c)pl(u,s,d,p);if(vt.length>0){he=l,l.apply();for(const u of vt)ze(n=l,He,Bn).call(n,u,a);l.deactivate()}vt=r}}he=null,Ne=e}this.committed=!0,Fa.delete(this)};let jt=mr;function sl(t){var e=Gi;Gi=!0;try{for(var i;;){if(Ys(),vt.length===0&&(he==null||he.flush(),vt.length===0))return Ha=null,i;cl()}}finally{Gi=e}}function cl(){var t=di;qr=!0;var e=null;try{var i=0;for(Wa(!0);vt.length>0;){var a=jt.ensure();if(i++>1e3){var r,n;Zs()}a.process(vt),oi.clear()}}finally{qr=!1,Wa(t),Ha=null}}function Zs(){try{xs()}catch(t){Wi(t,Ha)}}let wt=null;function dl(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(Yt|ot))&&wa(a)&&(wt=new Set,_a(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?Al(a):a.fn=null),(wt==null?void 0:wt.size)>0)){oi.clear();for(const r of wt){if(r.f&(Yt|ot))continue;const n=[r];let l=r.parent;for(;l!==null;)wt.has(l)&&(wt.delete(l),n.push(l)),l=l.parent;for(let c=n.length-1;c>=0;c--){const s=n[c];s.f&(Yt|ot)||_a(s)}}wt.clear()}}wt=null}}function pl(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const r of t.reactions){const n=r.f;n&Ge?pl(r,e,i,a):n&(Ar|Ct)&&!(n&it)&&ul(r,e,a)&&(Je(r,it),ki(r))}}function ul(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const r of t.deps){if(e.includes(r))return!0;if(r.f&Ge&&ul(r,e,i))return i.set(r,!0),!0}return i.set(t,!1),!1}function ki(t){for(var e=Ha=t;e.parent!==null;){e=e.parent;var i=e.f;if(qr&&e===we&&i&Ct&&!(i&Jn))return;if(i&(wi|Gt)){if(!(i&Ze))return;e.f^=Ze}}vt.push(e)}function vl(t){let e=0,i=Lt(0),a;return()=>{ma()&&(o(i),Ua(()=>(e===0&&(a=Ot(()=>t(()=>si(i)))),e+=1,()=>{Zt(()=>{e-=1,e===0&&(a==null||a(),a=void 0,si(i))})})))}}var Js=zt|Fi|Na;function Qs(t,e,i){new Xs(t,e,i)}class Xs{constructor(e,i,a){pe(this,We);Pt(this,"parent");pe(this,ht,!1);pe(this,gt);pe(this,Rn,null);pe(this,Ft);pe(this,Mi);pe(this,Vt);pe(this,mt,null);pe(this,lt,null);pe(this,Ht,null);pe(this,ai,null);pe(this,hi,null);pe(this,Di,0);pe(this,gi,0);pe(this,qi,!1);pe(this,mi,null);pe(this,yr,vl(()=>(ne(this,mi,Lt(L(this,Di))),()=>{ne(this,mi,null)})));ne(this,gt,e),ne(this,Ft,i),ne(this,Mi,a),this.parent=we.b,ne(this,ht,!!L(this,Ft).pending),ne(this,Vt,ci(()=>{we.b=this;{var r=ze(this,We,Vn).call(this);try{ne(this,mt,at(()=>a(r)))}catch(n){this.error(n)}L(this,gi)>0?ze(this,We,Er).call(this):ne(this,ht,!1)}return()=>{var n;(n=L(this,hi))==null||n.remove()}},Js))}is_pending(){return L(this,ht)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!L(this,Ft).pending}update_pending_count(e){ze(this,We,Hn).call(this,e),ne(this,Di,L(this,Di)+e),L(this,mi)&&Jt(L(this,mi),L(this,Di))}get_effect_pending(){return L(this,yr).call(this),o(L(this,mi))}error(e){var i=L(this,Ft).onerror;let a=L(this,Ft).failed;if(L(this,qi)||!i&&!a)throw e;L(this,mt)&&(Ye(L(this,mt)),ne(this,mt,null)),L(this,lt)&&(Ye(L(this,lt)),ne(this,lt,null)),L(this,Ht)&&(Ye(L(this,Ht)),ne(this,Ht,null));var r=!1,n=!1;const l=()=>{if(r){Us();return}r=!0,n&&Ps(),jt.ensure(),ne(this,Di,0),L(this,Ht)!==null&&Yi(L(this,Ht),()=>{ne(this,Ht,null)}),ne(this,ht,this.has_pending_snippet()),ne(this,mt,ze(this,We,Tr).call(this,()=>(ne(this,qi,!1),at(()=>L(this,Mi).call(this,L(this,gt)))))),L(this,gi)>0?ze(this,We,Er).call(this):ne(this,ht,!1)};var c=ye;try{rt(null),n=!0,i==null||i(e,l),n=!1}catch(s){Wi(s,L(this,Vt)&&L(this,Vt).parent)}finally{rt(c)}a&&Zt(()=>{ne(this,Ht,ze(this,We,Tr).call(this,()=>{jt.ensure(),ne(this,qi,!0);try{return at(()=>{a(L(this,gt),()=>e,()=>l)})}catch(s){return Wi(s,L(this,Vt).parent),null}finally{ne(this,qi,!1)}}))})}}ht=new WeakMap,gt=new WeakMap,Rn=new WeakMap,Ft=new WeakMap,Mi=new WeakMap,Vt=new WeakMap,mt=new WeakMap,lt=new WeakMap,Ht=new WeakMap,ai=new WeakMap,hi=new WeakMap,Di=new WeakMap,gi=new WeakMap,qi=new WeakMap,mi=new WeakMap,yr=new WeakMap,We=new WeakSet,eg=function(){try{ne(this,mt,at(()=>L(this,Mi).call(this,L(this,gt))))}catch(e){this.error(e)}ne(this,ht,!1)},tg=function(){const e=L(this,Ft).pending;e&&(ne(this,lt,at(()=>e(L(this,gt)))),jt.enqueue(()=>{var i=ze(this,We,Vn).call(this);ne(this,mt,ze(this,We,Tr).call(this,()=>(jt.ensure(),at(()=>L(this,Mi).call(this,i))))),L(this,gi)>0?ze(this,We,Er).call(this):(Yi(L(this,lt),()=>{ne(this,lt,null)}),ne(this,ht,!1))}))},Vn=function(){var e=L(this,gt);return L(this,ht)&&(ne(this,hi,Mt()),L(this,gt).before(L(this,hi)),e=L(this,hi)),e},Tr=function(e){var i=we,a=ye,r=Se;qt(L(this,Vt)),rt(L(this,Vt)),Ui(L(this,Vt).ctx);try{return e()}catch(n){return ol(n),null}finally{qt(i),rt(a),Ui(r)}},Er=function(){const e=L(this,Ft).pending;L(this,mt)!==null&&(ne(this,ai,document.createDocumentFragment()),L(this,ai).append(L(this,hi)),Dl(L(this,mt),L(this,ai))),L(this,lt)===null&&ne(this,lt,at(()=>e(L(this,gt))))},Hn=function(e){var i;if(!this.has_pending_snippet()){this.parent&&ze(i=this.parent,We,Hn).call(i,e);return}ne(this,gi,L(this,gi)+e),L(this,gi)===0&&(ne(this,ht,!1),L(this,lt)&&Yi(L(this,lt),()=>{ne(this,lt,null)}),L(this,ai)&&(L(this,gt).before(L(this,ai)),ne(this,ai,null)))};let Si=null;function fl(t){Si=t}function Ie(t,e){return e}function $s(t,e,i){for(var a=[],r=e.length,n=0;n<r;n++)Vr(e[n].e,a,!0);Ll(a,()=>{var l=a.length===0&&i!==null;if(l){var c=i,s=c.parentNode;sc(s),s.append(c),t.items.clear(),At(t,e[0].prev,e[r-1].next)}for(var d=0;d<r;d++){var p=e[d];l||(t.items.delete(p.k),At(t,p.prev,p.next)),Ye(p.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Pe(t,e,i,a,r,n=null){var l=t,c=new Map,s=null,d=(e&tl)!==0,p=(e&$n)!==0,u=(e&el)!==0;if(d){var f=t;l=f.appendChild(Mt())}var h=null,m=Rr(()=>{var P=i();return De(P)?P:P==null?[]:Pr(P)}),y,b=!0;function g(){ec(_,y,l,e,a),h!==null&&(y.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):Hr(h.effect),S.first=h.effect):Yi(h.effect,()=>{h=null}))}var S=ci(()=>{y=o(m);for(var P=y.length,M=new Set,z=he,A=null,H=Tl(),D=0;D<P;D+=1){var j=y[D],E=a(j,D),T=b?null:c.get(E);T?(p&&Jt(T.v,j),u?Jt(T.i,D):T.i=D,H&&z.skipped_effects.delete(T.e)):(T=tc(b?l:null,A,j,E,D,r,e,i),b&&(T.o=!0,A===null?s=T:A.next=T,A=T),c.set(E,T)),M.add(E)}if(P===0&&n&&!h)if(b)h={fragment:null,effect:at(()=>n(l))};else{var x=document.createDocumentFragment(),R=Mt();x.append(R),h={fragment:x,effect:at(()=>n(R))}}if(!b)if(H){for(const[U,Z]of c)M.has(U)||z.skipped_effects.add(Z.e);z.oncommit(g),z.ondiscard(()=>{})}else g();o(m)}),_={effect:S,flags:e,items:c,first:s};b=!1}function ec(t,e,i,a,r){var j,E,T,x;var n=(a&Cs)!==0,l=e.length,c=t.items,s=t.first,d,p=null,u,f=[],h=[],m,y,b,g;if(n)for(g=0;g<l;g+=1)m=e[g],y=r(m,g),b=c.get(y),b.o&&((j=b.a)==null||j.measure(),(u??(u=new Set)).add(b));for(g=0;g<l;g+=1){if(m=e[g],y=r(m,g),b=c.get(y),t.first??(t.first=b),!b.o){b.o=!0;var S=p?p.next:s;At(t,p,b),At(t,b,S),Or(b,S,i),p=b,f=[],h=[],s=p.next;continue}if(b.e.f&ot&&(Hr(b.e),n&&((E=b.a)==null||E.unfix(),(u??(u=new Set)).delete(b))),b!==s){if(d!==void 0&&d.has(b)){if(f.length<h.length){var _=h[0],P;p=_.prev;var M=f[0],z=f[f.length-1];for(P=0;P<f.length;P+=1)Or(f[P],_,i);for(P=0;P<h.length;P+=1)d.delete(h[P]);At(t,M.prev,z.next),At(t,p,M),At(t,z,_),s=_,p=z,g-=1,f=[],h=[]}else d.delete(b),Or(b,s,i),At(t,b.prev,b.next),At(t,b,p===null?t.first:p.next),At(t,p,b),p=b;continue}for(f=[],h=[];s!==null&&s.k!==y;)s.e.f&ot||(d??(d=new Set)).add(s),h.push(s),s=s.next;if(s===null)continue;b=s}f.push(b),p=b,s=b.next}if(s!==null||d!==void 0){for(var A=d===void 0?[]:Pr(d);s!==null;)s.e.f&ot||A.push(s),s=s.next;var H=A.length;if(H>0){var D=a&tl&&l===0?i:null;if(n){for(g=0;g<H;g+=1)(T=A[g].a)==null||T.measure();for(g=0;g<H;g+=1)(x=A[g].a)==null||x.fix()}$s(t,A,D)}}n&&Zt(()=>{var R;if(u!==void 0)for(b of u)(R=b.a)==null||R.apply()})}function tc(t,e,i,a,r,n,l,c){var s=Si,d=(l&$n)!==0,p=(l&zs)===0,u=d?p?Fr(i,!1,!1):Lt(i):i,f=l&el?Lt(r):r,h={i:f,v:u,k:a,a:null,e:null,o:!1,prev:e,next:null};Si=h;try{if(t===null){var m=document.createDocumentFragment();m.append(t=Mt())}return h.e=at(()=>n(t,u,f,c)),e!==null&&(e.next=h),h}finally{Si=s}}function Or(t,e,i){for(var a=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,n=t.e.nodes_start;n!==null&&n!==a;){var l=ga(n);r.before(n),n=l}}function At(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e===t.effect.last&&i!==null&&(t.effect.last=i.e),e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e===t.effect.last&&e===null&&(t.effect.last=i.e.prev),i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function hl(t,e,i,a){const r=_i()?ha:Rr;if(i.length===0&&t.length===0){a(e.map(r));return}var n=he,l=we,c=gl();function s(){Promise.all(i.map(d=>ic(d))).then(d=>{c();try{a([...e.map(r),...d])}catch(p){l.f&Yt||Wi(p,l)}n==null||n.deactivate(),fa()}).catch(d=>{Wi(d,l)})}t.length>0?Promise.all(t).then(()=>{c();try{return s()}finally{n==null||n.deactivate(),fa()}}):s()}function gl(){var t=we,e=ye,i=Se,a=he;return function(n=!0){qt(t),rt(e),Ui(i),n&&(a==null||a.activate())}}function fa(){qt(null),rt(null),Ui(null)}function ha(t){var e=Ge|it,i=ye!==null&&ye.f&Ge?ye:null;return we!==null&&(we.f|=Fi),{ctx:Se,deps:null,effects:null,equals:il,f:e,fn:t,reactions:null,rv:0,v:Ue,wv:0,parent:i??we,ac:null}}function ic(t,e){let i=we;i===null&&ys();var a=i.b,r=void 0,n=Lt(Ue),l=!ye,c=new Map;return gc(()=>{var f;var s=Gn();r=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===he&&d.committed&&d.deactivate(),fa()})}catch(h){s.reject(h),fa()}var d=he;if(l){var p=!a.is_pending();a.update_pending_count(1),d.increment(p),(f=c.get(d))==null||f.reject(Vi),c.delete(d),c.set(d,s)}const u=(h,m=void 0)=>{if(d.activate(),m)m!==Vi&&(n.f|=li,Jt(n,m));else{n.f&li&&(n.f^=li),Jt(n,h);for(const[y,b]of c){if(c.delete(y),y===d)break;b.reject(Vi)}}l&&(a.update_pending_count(-1),d.decrement(p))};s.promise.then(u,h=>u(null,h||"unknown"))}),ya(()=>{for(const s of c.values())s.reject(Vi)}),new Promise(s=>{function d(p){function u(){p===r?s(n):d(r)}p.then(u,u)}d(r)})}function F(t){const e=ha(t);return Ol(e),e}function Rr(t){const e=ha(t);return e.equals=rl,e}function ml(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ye(e[i])}}function ac(t){for(var e=t.parent;e!==null;){if(!(e.f&Ge))return e.f&Yt?null:e;e=e.parent}return null}function Nr(t){var e,i=we;qt(ac(t));try{t.f&=~va,ml(t),e=Vl(t)}finally{qt(i)}return e}function yl(t){var e=Nr(t);if(t.equals(e)||(he!=null&&he.is_fork||(t.v=e),t.wv=Bl()),!Pi)if(Ne!==null)(ma()||he!=null&&he.is_fork)&&Ne.set(t,e);else{var i=t.f&bt?Ze:Kt;Je(t,i)}}let Br=new Set;const oi=new Map;let bl=!1;function Lt(t,e){var i={f:0,v:t,reactions:null,equals:il,rv:0,wv:0};return i}function G(t,e){const i=Lt(t);return Ol(i),i}function Fr(t,e=!1,i=!0){var r;const a=Lt(t);return e||(a.equals=rl),Hi&&i&&Se!==null&&Se.l!==null&&((r=Se.l).s??(r.s=[])).push(a),a}function q(t,e,i=!1){ye!==null&&(!Dt||ye.f&Zn)&&_i()&&ye.f&(Ge|Ct|Ar|Zn)&&!($e!=null&&$e.includes(t))&&Es();let a=i?Be(e):e;return Jt(t,a)}function Jt(t,e){if(!t.equals(e)){var i=t.v;Pi?oi.set(t,e):oi.set(t,i),t.v=e;var a=jt.ensure();a.capture(t,i),t.f&Ge&&(t.f&it&&Nr(t),Je(t,t.f&bt?Ze:Kt)),t.wv=Bl(),wl(t,it),_i()&&we!==null&&we.f&Ze&&!(we.f&(Gt|wi))&&(ft===null?bc([t]):ft.push(t)),!a.is_fork&&Br.size>0&&!bl&&rc()}return e}function rc(){bl=!1;var t=di;Wa(!0);const e=Array.from(Br);try{for(const i of e)i.f&Ze&&Je(i,Kt),wa(i)&&_a(i)}finally{Wa(t)}Br.clear()}function nc(t,e=1){var i=o(t),a=e===1?i++:i--;return q(t,i),a}function si(t){q(t,t.v+1)}function wl(t,e){var i=t.reactions;if(i!==null)for(var a=_i(),r=i.length,n=0;n<r;n++){var l=i[n],c=l.f;if(!(!a&&l===we)){var s=(c&it)===0;if(s&&Je(l,e),c&Ge){var d=l;Ne==null||Ne.delete(d),c&va||(c&bt&&(l.f|=va),wl(d,Kt))}else s&&(c&Ct&&wt!==null&&wt.add(l),ki(l))}}}function Be(t){if(typeof t!="object"||t===null||It in t)return t;const e=Cr(t);if(e!==vs&&e!==fs)return t;var i=new Map,a=De(t),r=G(0),n=Qt,l=c=>{if(Qt===n)return c();var s=ye,d=Qt;rt(null),Nl(n);var p=c();return rt(s),Nl(d),p};return a&&i.set("length",G(t.length)),new Proxy(t,{defineProperty(c,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Ss();var p=i.get(s);return p===void 0?p=l(()=>{var u=G(d.value);return i.set(s,u),u}):q(p,d.value,!0),!0},deleteProperty(c,s){var d=i.get(s);if(d===void 0){if(s in c){const p=l(()=>G(Ue));i.set(s,p),si(r)}}else q(d,Ue),si(r);return!0},get(c,s,d){var h;if(s===It)return t;var p=i.get(s),u=s in c;if(p===void 0&&(!u||(h=ni(c,s))!=null&&h.writable)&&(p=l(()=>{var m=Be(u?c[s]:Ue),y=G(m);return y}),i.set(s,p)),p!==void 0){var f=o(p);return f===Ue?void 0:f}return Reflect.get(c,s,d)},getOwnPropertyDescriptor(c,s){var d=Reflect.getOwnPropertyDescriptor(c,s);if(d&&"value"in d){var p=i.get(s);p&&(d.value=o(p))}else if(d===void 0){var u=i.get(s),f=u==null?void 0:u.v;if(u!==void 0&&f!==Ue)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return d},has(c,s){var f;if(s===It)return!0;var d=i.get(s),p=d!==void 0&&d.v!==Ue||Reflect.has(c,s);if(d!==void 0||we!==null&&(!p||(f=ni(c,s))!=null&&f.writable)){d===void 0&&(d=l(()=>{var h=p?Be(c[s]):Ue,m=G(h);return m}),i.set(s,d));var u=o(d);if(u===Ue)return!1}return p},set(c,s,d,p){var _;var u=i.get(s),f=s in c;if(a&&s==="length")for(var h=d;h<u.v;h+=1){var m=i.get(h+"");m!==void 0?q(m,Ue):h in c&&(m=l(()=>G(Ue)),i.set(h+"",m))}if(u===void 0)(!f||(_=ni(c,s))!=null&&_.writable)&&(u=l(()=>G(void 0)),q(u,Be(d)),i.set(s,u));else{f=u.v!==Ue;var y=l(()=>Be(d));q(u,y)}var b=Reflect.getOwnPropertyDescriptor(c,s);if(b!=null&&b.set&&b.set.call(p,d),!f){if(a&&typeof s=="string"){var g=i.get("length"),S=Number(s);Number.isInteger(S)&&S>=g.v&&q(g,S+1)}si(r)}return!0},ownKeys(c){o(r);var s=Reflect.ownKeys(c).filter(u=>{var f=i.get(u);return f===void 0||f.v!==Ue});for(var[d,p]of i)p.v!==Ue&&!(d in c)&&s.push(d);return s},setPrototypeOf(){Ts()}})}function _l(t){try{if(t!==null&&typeof t=="object"&&It in t)return t[It]}catch{}return t}function lc(t,e){return Object.is(_l(t),_l(e))}var Ae,xl,kl,Sl;function oc(){if(Ae===void 0){Ae=window,xl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;kl=ni(e,"firstChild").get,Sl=ni(e,"nextSibling").get,Wn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Wn(i)&&(i.__t=void 0)}}function Mt(t=""){return document.createTextNode(t)}function Ki(t){return kl.call(t)}function ga(t){return Sl.call(t)}function k(t,e){return Ki(t)}function Q(t,e=!1){{var i=Ki(t);return i instanceof Comment&&i.data===""?ga(i):i}}function I(t,e=1,i=!1){let a=t;for(;e--;)a=ga(a);return a}function sc(t){t.textContent=""}function Tl(){return!1}function cc(t,e){if(e){const i=document.body;t.autofocus=!0,Zt(()=>{document.activeElement===i&&t.focus()})}}let El=!1;function dc(){El||(El=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const i of t.target.elements)(e=i.__on_r)==null||e.call(i)})},{capture:!0}))}function pc(t,e,i,a=!0){a&&i();for(var r of e)t.addEventListener(r,i);ya(()=>{for(var n of e)t.removeEventListener(n,i)})}function Ti(t){var e=ye,i=we;rt(null),qt(null);try{return t()}finally{rt(e),qt(i)}}function uc(t,e,i,a=i){t.addEventListener(e,()=>Ti(i));const r=t.__on_r;r?t.__on_r=()=>{r(),a(!0)}:t.__on_r=()=>a(!0),dc()}function Pl(t){we===null&&(ye===null&&_s(),ws()),Pi&&bs()}function vc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function _t(t,e,i){var a=we;a!==null&&a.f&ot&&(t|=ot);var r={ctx:Se,deps:null,nodes_start:null,nodes_end:null,f:t|it|bt,first:null,fn:e,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(i)try{_a(r),r.f|=Ba}catch(c){throw Ye(r),c}else e!==null&&ki(r);var n=r;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&!(n.f&Fi)&&(n=n.first,t&Ct&&t&zt&&n!==null&&(n.f|=zt)),n!==null&&(n.parent=a,a!==null&&vc(n,a),ye!==null&&ye.f&Ge&&!(t&wi))){var l=ye;(l.effects??(l.effects=[])).push(n)}return r}function ma(){return ye!==null&&!Dt}function ya(t){const e=_t(Ra,null,!1);return Je(e,Ze),e.teardown=t,e}function Ke(t){Pl();var e=we.f,i=!ye&&(e&Gt)!==0&&(e&Ba)===0;if(i){var a=Se;(a.e??(a.e=[])).push(t)}else return Cl(t)}function Cl(t){return _t(Ir|Qn,t,!1)}function fc(t){return Pl(),_t(Ra|Qn,t,!0)}function hc(t){jt.ensure();const e=_t(wi|Fi,t,!0);return(i={})=>new Promise(a=>{i.outro?Yi(e,()=>{Ye(e),a(void 0)}):(Ye(e),a(void 0))})}function Ei(t){return _t(Ir,t,!1)}function gc(t){return _t(Ar|Fi,t,!0)}function Ua(t,e=0){return _t(Ra|e,t,!0)}function B(t,e=[],i=[],a=[]){hl(a,e,i,r=>{_t(Ra,()=>t(...r.map(o)),!0)})}function ci(t,e=0){var i=_t(Ct|e,t,!0);return i}function zl(t,e=0){var i=_t(Yn|e,t,!0);return i}function at(t){return _t(Gt|Fi,t,!0)}function Il(t){var e=t.teardown;if(e!==null){const i=Pi,a=ye;ql(!0),rt(null);try{e.call(null)}finally{ql(i),rt(a)}}}function jl(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const r=i.ac;r!==null&&Ti(()=>{r.abort(Vi)});var a=i.next;i.f&wi?i.parent=null:Ye(i,e),i=a}}function mc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Gt||Ye(e),e=i}}function Ye(t,e=!0){var i=!1;(e||t.f&Jn)&&t.nodes_start!==null&&t.nodes_end!==null&&(yc(t.nodes_start,t.nodes_end),i=!0),jl(t,e&&!i),Ga(t,0),Je(t,Yt);var a=t.transitions;if(a!==null)for(const n of a)n.stop();Il(t);var r=t.parent;r!==null&&r.first!==null&&Al(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function yc(t,e){for(;t!==null;){var i=t===e?null:ga(t);t.remove(),t=i}}function Al(t){var e=t.parent,i=t.prev,a=t.next;i!==null&&(i.next=a),a!==null&&(a.prev=i),e!==null&&(e.first===t&&(e.first=a),e.last===t&&(e.last=i))}function Yi(t,e,i=!0){var a=[];Vr(t,a,!0),Ll(a,()=>{i&&Ye(t),e&&e()})}function Ll(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var r of t)r.out(a)}else e()}function Vr(t,e,i){if(!(t.f&ot)){if(t.f^=ot,t.transitions!==null)for(const l of t.transitions)(l.is_global||i)&&e.push(l);for(var a=t.first;a!==null;){var r=a.next,n=(a.f&zt)!==0||(a.f&Gt)!==0&&(t.f&Ct)!==0;Vr(a,e,n?i:!1),a=r}}}function Hr(t){Ml(t,!0)}function Ml(t,e){if(t.f&ot){t.f^=ot,t.f&Ze||(Je(t,it),ki(t));for(var i=t.first;i!==null;){var a=i.next,r=(i.f&zt)!==0||(i.f&Gt)!==0;Ml(i,r?e:!1),i=a}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function Dl(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var r=i===a?null:ga(i);e.append(i),i=r}}let di=!1;function Wa(t){di=t}let Pi=!1;function ql(t){Pi=t}let ye=null,Dt=!1;function rt(t){ye=t}let we=null;function qt(t){we=t}let $e=null;function Ol(t){ye!==null&&($e===null?$e=[t]:$e.push(t))}let et=null,st=0,ft=null;function bc(t){ft=t}let Rl=1,ba=0,Qt=ba;function Nl(t){Qt=t}function Bl(){return++Rl}function wa(t){var e=t.f;if(e&it)return!0;if(e&Ge&&(t.f&=-32769),e&Kt){var i=t.deps;if(i!==null)for(var a=i.length,r=0;r<a;r++){var n=i[r];if(wa(n)&&yl(n),n.wv>t.wv)return!0}e&bt&&Ne===null&&Je(t,Ze)}return!1}function Fl(t,e,i=!0){var a=t.reactions;if(a!==null&&!($e!=null&&$e.includes(t)))for(var r=0;r<a.length;r++){var n=a[r];n.f&Ge?Fl(n,e,!1):e===n&&(i?Je(n,it):n.f&Ze&&Je(n,Kt),ki(n))}}function Vl(t){var m;var e=et,i=st,a=ft,r=ye,n=$e,l=Se,c=Dt,s=Qt,d=t.f;et=null,st=0,ft=null,ye=d&(Gt|wi)?null:t,$e=null,Ui(t.ctx),Dt=!1,Qt=++ba,t.ac!==null&&(Ti(()=>{t.ac.abort(Vi)}),t.ac=null);try{t.f|=jr;var p=t.fn,u=p(),f=t.deps;if(et!==null){var h;if(Ga(t,st),f!==null&&st>0)for(f.length=st+et.length,h=0;h<et.length;h++)f[st+h]=et[h];else t.deps=f=et;if(di&&ma()&&t.f&bt)for(h=st;h<f.length;h++)((m=f[h]).reactions??(m.reactions=[])).push(t)}else f!==null&&st<f.length&&(Ga(t,st),f.length=st);if(_i()&&ft!==null&&!Dt&&f!==null&&!(t.f&(Ge|Kt|it)))for(h=0;h<ft.length;h++)Fl(ft[h],t);return r!==null&&r!==t&&(ba++,ft!==null&&(a===null?a=ft:a.push(...ft))),t.f&li&&(t.f^=li),u}catch(y){return ol(y)}finally{t.f^=jr,et=e,st=i,ft=a,ye=r,$e=n,Ui(l),Dt=c,Qt=s}}function wc(t,e){let i=e.reactions;if(i!==null){var a=Oa.call(i,t);if(a!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[a]=i[r],i.pop())}}i===null&&e.f&Ge&&(et===null||!et.includes(e))&&(Je(e,Kt),e.f&bt&&(e.f^=bt,e.f&=-32769),ml(e),Ga(e,0))}function Ga(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)wc(t,i[a])}function _a(t){var e=t.f;if(!(e&Yt)){Je(t,Ze);var i=we,a=di;we=t,di=!0;try{e&(Ct|Yn)?mc(t):jl(t),Il(t);var r=Vl(t);t.teardown=typeof r=="function"?r:null,t.wv=Rl;var n;Ee&&Ws&&t.f&it&&t.deps}finally{di=a,we=i}}}async function xa(){await Promise.resolve(),sl()}function o(t){var e=t.f,i=(e&Ge)!==0;if(ye!==null&&!Dt){var a=we!==null&&(we.f&Yt)!==0;if(!a&&!($e!=null&&$e.includes(t))){var r=ye.deps;if(ye.f&jr)t.rv<ba&&(t.rv=ba,et===null&&r!==null&&r[st]===t?st++:et===null?et=[t]:et.includes(t)||et.push(t));else{(ye.deps??(ye.deps=[])).push(t);var n=t.reactions;n===null?t.reactions=[ye]:n.includes(ye)||n.push(ye)}}}if(Pi){if(oi.has(t))return oi.get(t);if(i){var l=t,c=l.v;return(!(l.f&Ze)&&l.reactions!==null||Ul(l))&&(c=Nr(l)),oi.set(l,c),c}}else i&&(!(Ne!=null&&Ne.has(t))||he!=null&&he.is_fork&&!ma())&&(l=t,wa(l)&&yl(l),di&&ma()&&!(l.f&bt)&&Hl(l));if(Ne!=null&&Ne.has(t))return Ne.get(t);if(t.f&li)throw t.v;return t.v}function Hl(t){if(t.deps!==null){t.f^=bt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Ge&&!(e.f&bt)&&Hl(e)}}function Ul(t){if(t.v===Ue)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(oi.has(e)||e.f&Ge&&Ul(e))return!0;return!1}function Ot(t){var e=Dt;try{return Dt=!0,t()}finally{Dt=e}}const _c=-7169;function Je(t,e){t.f=t.f&_c|e}function Wl(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(It in t)Ur(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&It in i&&Ur(i)}}}function Ur(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let a in t)try{Ur(t[a],e)}catch{}const i=Cr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=Un(i);for(let r in a){const n=a[r].get;if(n)try{n.call(t)}catch{}}}}}function xc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const kc=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Sc(t){return kc.includes(t)}const Tc={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject",novalidate:"noValidate",allowfullscreen:"allowFullscreen",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback"};function Ec(t){return t=t.toLowerCase(),Tc[t]??t}const Pc=["touchstart","touchmove"];function Cc(t){return Pc.includes(t)}const Gl=new Set,Wr=new Set;function Gr(t,e,i,a={}){function r(n){if(a.capture||ka.call(e,n),!n.cancelBubble)return Ti(()=>i==null?void 0:i.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zt(()=>{e.addEventListener(t,r,a)}):e.addEventListener(t,r,a),r}function zc(t,e,i,a={}){var r=Gr(e,t,i,a);return()=>{t.removeEventListener(e,r,a)}}function xe(t,e,i,a,r){var n={capture:a,passive:r},l=Gr(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ya(()=>{e.removeEventListener(t,l,n)})}function ue(t){for(var e=0;e<t.length;e++)Gl.add(t[e]);for(var i of Wr)i(t)}let Kl=null;function ka(t){var b;var e=this,i=e.ownerDocument,a=t.type,r=((b=t.composedPath)==null?void 0:b.call(t))||[],n=r[0]||t.target;Kl=t;var l=0,c=Kl===t&&t.__root;if(c){var s=r.indexOf(c);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var d=r.indexOf(e);if(d===-1)return;s<=d&&(l=s)}if(n=r[l]||t.target,n!==e){us(t,"currentTarget",{configurable:!0,get(){return n||i}});var p=ye,u=we;rt(null),qt(null);try{for(var f,h=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var y=n["__"+a];y!=null&&(!n.disabled||t.target===n)&&y.call(n,t)}catch(g){f?h.push(g):f=g}if(t.cancelBubble||m===e||m===null)break;n=m}if(f){for(let g of h)queueMicrotask(()=>{throw g});throw f}}finally{t.__root=e,delete t.currentTarget,rt(p),qt(u)}}}function Yl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Zi(t,e){var i=we;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function C(t,e){var i=(e&Rs)!==0,a=(e&Ns)!==0,r,n=!t.startsWith("<!>");return()=>{r===void 0&&(r=Yl(n?t:"<!>"+t),i||(r=Ki(r)));var l=a||xl?document.importNode(r,!0):r.cloneNode(!0);if(i){var c=Ki(l),s=l.lastChild;Zi(c,s)}else Zi(l,l);return l}}function Ic(t,e,i="svg"){var a=!t.startsWith("<!>"),r=`<${i}>${a?t:"<!>"+t}</${i}>`,n;return()=>{if(!n){var l=Yl(r),c=Ki(l);n=Ki(c)}var s=n.cloneNode(!0);return Zi(s,s),s}}function nt(t,e){return Ic(t,e,"svg")}function Xt(t=""){{var e=Mt(t+"");return Zi(e,e),e}}function fe(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Mt();return t.append(e,i),Zi(e,i),t}function w(t,e){t!==null&&t.before(e)}let Ka=!0;function Ya(t){Ka=t}function Y(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function Rt(t,e){return jc(t,e)}const Ji=new Map;function jc(t,{target:e,anchor:i,props:a={},events:r,context:n,intro:l=!0}){oc();var c=new Set,s=u=>{for(var f=0;f<u.length;f++){var h=u[f];if(!c.has(h)){c.add(h);var m=Cc(h);e.addEventListener(h,ka,{passive:m});var y=Ji.get(h);y===void 0?(document.addEventListener(h,ka,{passive:m}),Ji.set(h,1)):Ji.set(h,y+1)}}};s(Pr(Gl)),Wr.add(s);var d=void 0,p=hc(()=>{var u=i??e.appendChild(Mt());return Qs(u,{pending:()=>{}},f=>{if(n){ie({});var h=Se;h.c=n}r&&(a.$$events=r),Ka=l,d=t(f,a)||{},Ka=!0,n&&ae()}),()=>{var m;for(var f of c){e.removeEventListener(f,ka);var h=Ji.get(f);--h===0?(document.removeEventListener(f,ka),Ji.delete(f)):Ji.set(f,h)}Wr.delete(s),u!==i&&((m=u.parentNode)==null||m.removeChild(u))}});return Kr.set(d,p),d}let Kr=new WeakMap;function Qi(t,e){const i=Kr.get(t);return i?(Kr.delete(t),i(e)):Promise.resolve()}class Xi{constructor(e,i=!0){Pt(this,"anchor");pe(this,St,new Map);pe(this,Ut,new Map);pe(this,dt,new Map);pe(this,Oi,new Set);pe(this,Aa,!0);pe(this,La,()=>{var e=he;if(L(this,St).has(e)){var i=L(this,St).get(e),a=L(this,Ut).get(i);if(a)Hr(a),L(this,Oi).delete(i);else{var r=L(this,dt).get(i);r&&(L(this,Ut).set(i,r.effect),L(this,dt).delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),a=r.effect)}for(const[n,l]of L(this,St)){if(L(this,St).delete(n),n===e)break;const c=L(this,dt).get(l);c&&(Ye(c.effect),L(this,dt).delete(l))}for(const[n,l]of L(this,Ut)){if(n===i||L(this,Oi).has(n))continue;const c=()=>{if(Array.from(L(this,St).values()).includes(n)){var d=document.createDocumentFragment();Dl(l,d),d.append(Mt()),L(this,dt).set(n,{effect:l,fragment:d})}else Ye(l);L(this,Oi).delete(n),L(this,Ut).delete(n)};L(this,Aa)||!a?(L(this,Oi).add(n),Yi(l,c,!1)):c()}}});pe(this,br,e=>{L(this,St).delete(e);const i=Array.from(L(this,St).values());for(const[a,r]of L(this,dt))i.includes(a)||(Ye(r.effect),L(this,dt).delete(a))});this.anchor=e,ne(this,Aa,i)}ensure(e,i){var a=he,r=Tl();if(i&&!L(this,Ut).has(e)&&!L(this,dt).has(e))if(r){var n=document.createDocumentFragment(),l=Mt();n.append(l),L(this,dt).set(e,{effect:at(()=>i(l)),fragment:n})}else L(this,Ut).set(e,at(()=>i(this.anchor)));if(L(this,St).set(a,e),r){for(const[c,s]of L(this,Ut))c===e?a.skipped_effects.delete(s):a.skipped_effects.add(s);for(const[c,s]of L(this,dt))c===e?a.skipped_effects.delete(s.effect):a.skipped_effects.add(s.effect);a.oncommit(L(this,La)),a.ondiscard(L(this,br))}else L(this,La).call(this)}}St=new WeakMap,Ut=new WeakMap,dt=new WeakMap,Oi=new WeakMap,Aa=new WeakMap,La=new WeakMap,br=new WeakMap;const Ac=0,Yr=1;function Za(t,e,i,a,r){var n=_i(),l=Ue,c=n?Lt(l):Fr(l,!1,!1),s=n?Lt(l):Fr(l,!1,!1),d=new Xi(t);ci(()=>{var p=e(),u=!1;if(hs(p)){var f=gl(),h=!1;const m=y=>{if(!u){h=!0,f(!1),jt.ensure();try{y()}finally{fa(),Gi||sl()}}};p.then(y=>{m(()=>{Jt(c,y),d.ensure(Yr,a&&(b=>a(b,c)))})},y=>{m(()=>{if(Jt(s,y),d.ensure(Yr,r&&(b=>r(b,s))),!r)throw s.v})}),Zt(()=>{h||m(()=>{d.ensure(Ac,i)})})}else Jt(c,p),d.ensure(Yr,a&&(m=>a(m,c)));return()=>{u=!0}})}function V(t,e,i=!1){var a=new Xi(t),r=i?zt:0;function n(l,c){a.ensure(l,c)}ci(()=>{var l=!1;e((c,s=!0)=>{l=!0,n(s,c)}),l||n(!1,null)},r)}function $i(t,e,i){var a=new Xi(t),r=!_i();ci(()=>{var n=e();r&&n!==null&&typeof n=="object"&&(n={}),a.ensure(n,i)})}function Fe(t,e,...i){var a=new Xi(t);ci(()=>{const r=e()??null;a.ensure(r,r&&(n=>r(n,...i)))},zt)}function Zr(t,e,i){var a=new Xi(t);ci(()=>{var r=e()??null;a.ensure(r,r&&(n=>i(n,r)))},zt)}function Zl(t,e,i,a,r,n){var l=null,c=t,s=Si,d=new Xi(c,!1);ci(()=>{const p=e()||null;var u=p==="svg"?Fs:null;if(p===null){d.ensure(null,null),Ya(!0);return}return d.ensure(p,f=>{var h=Si;if(fl(s),p){if(l=u?document.createElementNS(u,p):document.createElement(p),Zi(l,l),a){var m=l.appendChild(Mt());a(l,m)}we.nodes_end=l,f.before(l)}fl(h)}),Ya(!0),()=>{p&&Ya(!1)}},zt),ya(()=>{Ya(!0)})}function Nt(t,e,i){Ei(()=>{var a=Ot(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var r=!1,n={};Ua(()=>{var l=i();Wl(l),r&&al(n,l)&&(n=l,a.update(l))}),r=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function Ja(t,e){var i=void 0,a;zl(()=>{i!==(i=e())&&(a&&(Ye(a),a=null),i&&(a=at(()=>{Ei(()=>i(t))})))})}function Jl(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Jl(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Lc(){for(var t,e,i=0,a="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Jl(t))&&(a&&(a+=" "),a+=e);return a}function Mc(t){return typeof t=="object"?Lc(t):t??""}const Ql=[...`
3
3
  \r\f \v\uFEFF`];function Dc(t,e,i){var a=t==null?"":""+t;if(e&&(a=a?a+" "+e:e),i){for(var r in i)if(i[r])a=a?a+" "+r:r;else if(a.length)for(var n=r.length,l=0;(l=a.indexOf(r,l))>=0;){var c=l+n;(l===0||Ql.includes(a[l-1]))&&(c===a.length||Ql.includes(a[c]))?a=(l===0?"":a.substring(0,l))+a.substring(c+1):l=c}}return a===""?null:a}function Xl(t,e=!1){var i=e?" !important;":";",a="";for(var r in t){var n=t[r];n!=null&&n!==""&&(a+=" "+r+": "+n+i)}return a}function Jr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function qc(t,e){if(e){var i="",a,r;if(Array.isArray(e)?(a=e[0],r=e[1]):a=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,l=0,c=!1,s=[];a&&s.push(...Object.keys(a).map(Jr)),r&&s.push(...Object.keys(r).map(Jr));var d=0,p=-1;const y=t.length;for(var u=0;u<y;u++){var f=t[u];if(c?f==="/"&&t[u-1]==="*"&&(c=!1):n?n===f&&(n=!1):f==="/"&&t[u+1]==="*"?c=!0:f==='"'||f==="'"?n=f:f==="("?l++:f===")"&&l--,!c&&n===!1&&l===0){if(f===":"&&p===-1)p=u;else if(f===";"||u===y-1){if(p!==-1){var h=Jr(t.substring(d,p).trim());if(!s.includes(h)){f!==";"&&u++;var m=t.substring(d,u).trim();i+=" "+m+";"}}d=u+1,p=-1}}}}return a&&(i+=Xl(a)),r&&(i+=Xl(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function be(t,e,i,a,r,n){var l=t.__className;if(l!==i||l===void 0){var c=Dc(i,a,n);c==null?t.removeAttribute("class"):e?t.className=c:t.setAttribute("class",c),t.__className=i}else if(n&&r!==n)for(var s in n){var d=!!n[s];(r==null||d!==!!r[s])&&t.classList.toggle(s,d)}return n}function Qr(t,e={},i,a){for(var r in i){var n=i[r];e[r]!==n&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,n,a))}}function Ve(t,e,i,a){var r=t.__style;if(r!==e){var n=qc(e,a);n==null?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else a&&(Array.isArray(a)?(Qr(t,i==null?void 0:i[0],a[0]),Qr(t,i==null?void 0:i[1],a[1],"important")):Qr(t,i,a));return a}function Xr(t,e,i=!1){if(t.multiple){if(e==null)return;if(!De(e))return Hs();for(var a of t.options)a.selected=e.includes($l(a));return}for(a of t.options){var r=$l(a);if(lc(r,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Oc(t){var e=new MutationObserver(()=>{Xr(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ya(()=>{e.disconnect()})}function $l(t){return"__value"in t?t.__value:t.value}const ea=Symbol("class"),ta=Symbol("style"),eo=Symbol("is custom element"),to=Symbol("is html");function Rc(t,e){var i=$r(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function io(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ee(t,e,i,a){var r=$r(t);r[e]!==(r[e]=i)&&(e==="loading"&&(t[ms]=i),i==null?t.removeAttribute(e):typeof i!="string"&&no(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Nc(t,e,i,a,r=!1,n=!1){var l=$r(t),c=l[eo],s=!l[to],d=e||{},p=t.tagName==="OPTION";for(var u in e)u in i||(i[u]=null);i.class?i.class=Mc(i.class):(a||i[ea])&&(i.class=null),i[ta]&&(i.style??(i.style=null));var f=no(t);for(const _ in i){let P=i[_];if(p&&_==="value"&&P==null){t.value=t.__value="",d[_]=P;continue}if(_==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";be(t,h,P,a,e==null?void 0:e[ea],i[ea]),d[_]=P,d[ea]=i[ea];continue}if(_==="style"){Ve(t,P,e==null?void 0:e[ta],i[ta]),d[_]=P,d[ta]=i[ta];continue}var m=d[_];if(!(P===m&&!(P===void 0&&t.hasAttribute(_)))){d[_]=P;var y=_[0]+_[1];if(y!=="$$")if(y==="on"){const M={},z="$$"+_;let A=_.slice(2);var b=Sc(A);if(xc(A)&&(A=A.slice(0,-7),M.capture=!0),!b&&m){if(P!=null)continue;t.removeEventListener(A,d[z],M),d[z]=null}if(P!=null)if(b)t[`__${A}`]=P,ue([A]);else{let H=function(D){d[_].call(this,D)};d[z]=Gr(A,t,H,M)}else b&&(t[`__${A}`]=void 0)}else if(_==="style")ee(t,_,P);else if(_==="autofocus")cc(t,!!P);else if(!c&&(_==="__value"||_==="value"&&P!=null))t.value=t.__value=P;else if(_==="selected"&&p)io(t,P);else{var g=_;s||(g=Ec(g));var S=g==="defaultValue"||g==="defaultChecked";if(P==null&&!c&&!S)if(l[_]=null,g==="value"||g==="checked"){let M=t;const z=e===void 0;if(g==="value"){let A=M.defaultValue;M.removeAttribute(g),M.defaultValue=A,M.value=M.__value=z?A:null}else{let A=M.defaultChecked;M.removeAttribute(g),M.defaultChecked=A,M.checked=z?A:!1}}else t.removeAttribute(_);else S||f.includes(g)&&(c||typeof P!="string")?(t[g]=P,g in l&&(l[g]=Ue)):typeof P!="function"&&ee(t,g,P)}}}return d}function ao(t,e,i=[],a=[],r=[],n,l=!1,c=!1){hl(r,i,a,s=>{var d=void 0,p={},u=t.nodeName==="SELECT",f=!1;if(zl(()=>{var m=e(...s.map(o)),y=Nc(t,d,m,n,l,c);f&&u&&"value"in m&&Xr(t,m.value);for(let g of Object.getOwnPropertySymbols(p))m[g]||Ye(p[g]);for(let g of Object.getOwnPropertySymbols(m)){var b=m[g];g.description===Vs&&(!d||b!==d[g])&&(p[g]&&Ye(p[g]),p[g]=at(()=>Ja(t,()=>b))),y[g]=b}d=y}),u){var h=t;Ei(()=>{Xr(h,d.value,!0),Oc(h)})}f=!0})}function $r(t){return t.__attributes??(t.__attributes={[eo]:t.nodeName.includes("-"),[to]:t.namespaceURI===Bs})}var ro=new Map;function no(t){var e=t.getAttribute("is")||t.nodeName,i=ro.get(e);if(i)return i;ro.set(e,i=[]);for(var a,r=t,n=Element.prototype;n!==r;){a=Un(r);for(var l in a)a[l].set&&i.push(l);r=Cr(r)}return i}const Bc=()=>performance.now(),$t={tick:t=>requestAnimationFrame(t),now:()=>Bc(),tasks:new Set};function lo(){const t=$t.now();$t.tasks.forEach(e=>{e.c(t)||($t.tasks.delete(e),e.f())}),$t.tasks.size!==0&&$t.tick(lo)}function Fc(t){let e;return $t.tasks.size===0&&$t.tick(lo),{promise:new Promise(i=>{$t.tasks.add(e={c:t,f:i})}),abort(){$t.tasks.delete(e)}}}function Qa(t,e){Ti(()=>{t.dispatchEvent(new CustomEvent(e))})}function Vc(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function oo(t){const e={},i=t.split(";");for(const a of i){const[r,n]=a.split(":");if(!r||n===void 0)break;const l=Vc(r.trim());e[l]=n.trim()}return e}const Hc=t=>t;function Uc(t,e,i){var a=Si,r,n,l,c=null;a.a??(a.a={element:t,measure(){r=this.element.getBoundingClientRect()},apply(){if(l==null||l.abort(),n=this.element.getBoundingClientRect(),r.left!==n.left||r.right!==n.right||r.top!==n.top||r.bottom!==n.bottom){const s=e()(this.element,{from:r,to:n},i==null?void 0:i());l=Xa(this.element,s,void 0,1,()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:s,width:d,height:p}=getComputedStyle(t);if(s!=="absolute"&&s!=="fixed"){var u=t.style;c={position:u.position,width:u.width,height:u.height,transform:u.transform},u.position="absolute",u.width=d,u.height=p;var f=t.getBoundingClientRect();if(r.left!==f.left||r.top!==f.top){var h=`translate(${r.left-f.left}px, ${r.top-f.top}px)`;u.transform=u.transform?`${u.transform} ${h}`:h}}}},unfix(){if(c){var s=t.style;s.position=c.position,s.width=c.width,s.height=c.height,s.transform=c.transform}}}),a.a.element=t}function Le(t,e,i,a){var r=(t&Ds)!==0,n=(t&qs)!==0,l=r&&n,c=(t&Os)!==0,s=l?"both":r?"in":"out",d,p=e.inert,u=e.style.overflow,f,h;function m(){return Ti(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:s})))}var y={is_global:c,in(){var _;if(e.inert=p,!r){h==null||h.abort(),(_=h==null?void 0:h.reset)==null||_.call(h);return}n||f==null||f.abort(),Qa(e,"introstart"),f=Xa(e,m(),h,1,()=>{Qa(e,"introend"),f==null||f.abort(),f=d=void 0,e.style.overflow=u})},out(_){if(!n){_==null||_(),d=void 0;return}e.inert=!0,Qa(e,"outrostart"),h=Xa(e,m(),f,0,()=>{Qa(e,"outroend"),_==null||_()})},stop:()=>{f==null||f.abort(),h==null||h.abort()}},b=we;if((b.transitions??(b.transitions=[])).push(y),r&&Ka){var g=c;if(!g){for(var S=b.parent;S&&S.f&zt;)for(;(S=S.parent)&&!(S.f&Ct););g=!S||(S.f&Ba)!==0}g&&Ei(()=>{Ot(()=>y.in())})}}function Xa(t,e,i,a,r){var n=a===1;if(Bi(e)){var l,c=!1;return Zt(()=>{if(!c){var b=e({direction:n?"in":"out"});l=Xa(t,b,i,a,r)}}),{abort:()=>{c=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:ut,deactivate:ut,reset:ut,t:()=>a};const{delay:s=0,css:d,tick:p,easing:u=Hc}=e;var f=[];if(n&&i===void 0&&(p&&p(0,1),d)){var h=oo(d(0,1));f.push(h,h)}var m=()=>1-a,y=t.animate(f,{duration:s,fill:"forwards"});return y.onfinish=()=>{y.cancel();var b=(i==null?void 0:i.t())??1-a;i==null||i.abort();var g=a-b,S=e.duration*Math.abs(g),_=[];if(S>0){var P=!1;if(d)for(var M=Math.ceil(S/16.666666666666668),z=0;z<=M;z+=1){var A=b+g*u(z/M),H=oo(d(A,1-A));_.push(H),P||(P=H.overflow==="hidden")}P&&(t.style.overflow="hidden"),m=()=>{var D=y.currentTime;return b+g*u(D/S)},p&&Fc(()=>{if(y.playState!=="running")return!1;var D=m();return p(D,1-D),!0})}y=t.animate(_,{duration:S,fill:"forwards"}),y.onfinish=()=>{m=()=>a,p==null||p(a,1-a),r()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=ut)},deactivate:()=>{r=ut},reset:()=>{a===0&&(p==null||p(1,0))},t:()=>m()}}function Sa(t,e,i=e){var a=new WeakSet;uc(t,"input",async r=>{var n=r?t.defaultValue:t.value;if(n=en(t)?tn(n):n,i(n),he!==null&&a.add(he),await xa(),n!==(n=e())){var l=t.selectionStart,c=t.selectionEnd,s=t.value.length;if(t.value=n??"",c!==null){var d=t.value.length;l===c&&c===s&&d>s?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=l,t.selectionEnd=Math.min(c,d))}}}),Ot(e)==null&&t.value&&(i(en(t)?tn(t.value):t.value),he!==null&&a.add(he)),Ua(()=>{var r=e();if(t===document.activeElement){var n=Va??he;if(a.has(n))return}en(t)&&r===tn(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function en(t){var e=t.type;return e==="number"||e==="range"}function tn(t){return t===""?null:+t}const _r=class _r{constructor(e){pe(this,wr);pe(this,yi,new WeakMap);pe(this,ca);pe(this,Ma);ne(this,Ma,e)}observe(e,i){var a=L(this,yi).get(e)||new Set;return a.add(i),L(this,yi).set(e,a),ze(this,wr,cs).call(this).observe(e,L(this,Ma)),()=>{var r=L(this,yi).get(e);r.delete(i),r.size===0&&(L(this,yi).delete(e),L(this,ca).unobserve(e))}}};yi=new WeakMap,ca=new WeakMap,Ma=new WeakMap,wr=new WeakSet,cs=function(){return L(this,ca)??ne(this,ca,new ResizeObserver(e=>{for(var i of e){_r.entries.set(i.target,i);for(var a of L(this,yi).get(i.target)||[])a(i)}}))},Pt(_r,"entries",new WeakMap);let an=_r;var Wc=new an({box:"border-box"});function xt(t,e,i){var a=Wc.observe(t,()=>i(t[e]));Ei(()=>(Ot(()=>i(t[e])),a))}function so(t,e){return t===e||(t==null?void 0:t[It])===e}function tt(t={},e,i,a){return Ei(()=>{var r,n;return Ua(()=>{r=n,n=[],Ot(()=>{t!==i(...n)&&(e(t,...n),r&&so(i(...r),t)&&e(null,...r))})}),()=>{Zt(()=>{n&&so(i(...n),t)&&e(null,...n)})}}),t}function rn(t,e){pc(window,["resize"],()=>Ti(()=>e(window[t])))}function nn(t=!1){const e=Se,i=e.l.u;if(!i)return;let a=()=>Wl(e.s);if(t){let r=0,n={};const l=ha(()=>{let c=!1;const s=e.s;for(const d in s)s[d]!==n[d]&&(n[d]=s[d],c=!0);return c&&r++,r});a=()=>o(l)}i.b.length&&fc(()=>{co(e,a),zr(i.b)}),Ke(()=>{const r=Ot(()=>i.m.map(gs));return()=>{for(const n of r)typeof n=="function"&&n()}}),i.a.length&&Ke(()=>{co(e,a),zr(i.a)})}function co(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let $a=!1;function Gc(t){var e=$a;try{return $a=!1,[t(),$a]}finally{$a=e}}const Kc={get(t,e){if(!t.exclude.includes(e))return t.props[e]},set(t,e){return!1},getOwnPropertyDescriptor(t,e){if(!t.exclude.includes(e)&&e in t.props)return{enumerable:!0,configurable:!0,value:t.props[e]}},has(t,e){return t.exclude.includes(e)?!1:e in t.props},ownKeys(t){return Reflect.ownKeys(t.props).filter(e=>!t.exclude.includes(e))}};function po(t,e,i){return new Proxy({props:t,exclude:e},Kc)}const Yc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Bi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a)return a[e]}},set(t,e,i){let a=t.props.length;for(;a--;){let r=t.props[a];Bi(r)&&(r=r());const n=ni(r,e);if(n&&n.set)return n.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Bi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const r=ni(a,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===It||e===Xn)return!1;for(let i of t.props)if(Bi(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Bi(i)&&(i=i()),!!i){for(const a in i)e.includes(a)||e.push(a);for(const a of Object.getOwnPropertySymbols(i))e.includes(a)||e.push(a)}return e}};function ln(...t){return new Proxy({props:t},Yc)}function O(t,e,i,a){var _;var r=!Hi||(i&js)!==0,n=(i&Ls)!==0,l=(i&Ms)!==0,c=a,s=!0,d=()=>(s&&(s=!1,c=l?Ot(a):a),c),p;if(n){var u=It in t||Xn in t;p=((_=ni(t,e))==null?void 0:_.set)??(u&&e in t?P=>t[e]=P:void 0)}var f,h=!1;n?[f,h]=Gc(()=>t[e]):f=t[e],f===void 0&&a!==void 0&&(f=d(),p&&(r&&ks(),p(f)));var m;if(r?m=()=>{var P=t[e];return P===void 0?d():(s=!0,P)}:m=()=>{var P=t[e];return P!==void 0&&(c=void 0),P===void 0?c:P},r&&!(i&As))return m;if(p){var y=t.$$legacy;return function(P,M){return arguments.length>0?((!r||!M||y||h)&&p(M?m():P),P):m()}}var b=!1,g=(i&Is?ha:Rr)(()=>(b=!1,m()));n&&o(g);var S=we;return function(P,M){if(arguments.length>0){const z=M?o(g):r&&n?Be(P):P;return q(g,z),b=!0,c!==void 0&&(c=z),P}return Pi&&b||S.f&Yt?g.v:o(g)}}function ct(t){Se===null&&Lr(),Hi&&Se.l!==null?Zc(Se).m.push(t):Ke(()=>{const e=Ot(t);if(typeof e=="function")return e})}function on(t){Se===null&&Lr(),ct(()=>()=>Ot(t))}function Zc(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Jc="5";typeof window<"u"&&((is=window.__svelte??(window.__svelte={})).v??(is.v=new Set)).add(Jc);function pi(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Qc="https://www.playpilot.com",Xc="https://partner-api.playpilot.tech/1.0",$c="https://img-external.playpilot.tech",ed="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Ci=600,sn={};async function ei(t,{headers:e={},method:i="GET",body:a=null}={}){const r=!er()&&i==="GET";if(r&&t in sn)return sn[t];const n=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(Xc+t,{method:i,headers:new Headers({...n,...e}),body:a?JSON.stringify(a):null});if(!(l!=null&&l.ok))throw l;const c=await l.text();let s=c;try{c&&(s=JSON.parse(c))}catch{}return r&&(sn[t]=s),s}const uo="EncryptedToken",vo="articleReplacementEditToken",td="playpilot-editorial-mode";async function fo({href:t=window.location.href,throwError:e=!1}={}){try{const i=pi();if(!i)throw new Error("No token was provided");const a=ho(t);if(!a)throw new Error("Could not be authenticated");return await ei(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),id(a),!0}catch(i){if(console.error(i),e)throw i}finally{ad()}return!1}function ho(t=""){var a,r;const e=(a=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:a.editorial_token;if(e)return e;if(t){const n=new URL(t).searchParams.get(vo);if(n)return decodeURI(n)}return((r=("; "+document.cookie).split(`; ${uo}=`).pop())==null?void 0:r.split(";")[0])||""}function id(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=uo+"="+t+";"+a+";path=/"}function er(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(td)==="true"||!!t}function ad(){const t=new URL(window.location.href);t.searchParams.delete(vo),window.history.replaceState({},"",t)}function rd(t){let e=0;for(let i=0;i<t.length;i++){const a=t.charCodeAt(i);e=e*31+a>>>0}return e.toString(16)}function cn(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const v=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Ta(){var a,r;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(v);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(i){if(e.includes(i))return i;const n=e.find(l=>l.toLowerCase().startsWith(i+"-"));if(n)return n}return v.English}function go(t,e=""){const i=[],a=[t];for(;a.length>0;){const r=a.pop();if(i.includes(r)||e&&r.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(r.tagName)||r.offsetWidth<=1)continue;const n=Array.from(r.childNodes).some(s=>{var d;return s.nodeType===Node.TEXT_NODE&&((d=s.nodeValue)==null?void 0:d.trim())!==""});if(n&&r.tagName==="LI"){const s=r.closest("ul, ol");s&&!i.includes(s)&&i.push(s);continue}const l=r.tagName==="P"&&!!r.textContent;if(n||l){i.push(r);continue}const c=Array.from(r.children);for(let s=c.length-1;s>=0;s--)a.push(c[s])}return i}function dn(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const i=t.replace(/(:)/g,"\\$1"),a=document.querySelector(i);if(a)return a}return document.querySelector("article")||document.querySelector("main")||document.body}function pn(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function un(t){const e=dn(),i=go(e,(t==null?void 0:t.exclude_elements_selector)||""),a=pn(i);return{parentElement:e,elements:i,pageText:a}}function mo(){const t=dn();return{content_heading:nd(t),content_modified_time:ld(t),content_published_time:od(t)}}function nd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function ld(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=yo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function od(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=yo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function vn(t){try{return new Date(t).toISOString()}catch{return null}}function yo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function zi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function fn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function sd(t){return!!(t.exclude_urls_pattern&&zi().match(new RegExp(t.exclude_urls_pattern)))}let hn=null;async function tr(t,{url:e=zi(),hash:i=rd(t||""),params:a={},method:r="GET"}={}){const n=pi(),l=er()?await fo():!1,c=Ta();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=mo(),d=await ei(s,{method:"POST",body:a})):d=await ei(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function bo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;hn&&clearTimeout(hn);const c=async(s,d)=>{let p;try{try{p=await tr(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await tr(t,{method:"POST"}),p.ai_enabled&&(p=await tr(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await cd(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=wo(p.manual_injections||[]),p.ai_injections=wo(p.ai_injections||[]),s(p);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}p&&n(p),hn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function cd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=mo().content_modified_time,a=e.content_modified_time?vn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await tr(t,{params:{run_ai:!0},method:"POST"})}function wo(t){return t.map(e=>({...e,key:dd(e.sid)}))}function dd(t){return t+"-"+cn()}function pd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function ud(t,e){return e.some(i=>t>=i.start&&t<i.end)}function vd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function gn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function _o(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function xo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function fd(t,e,i,a){const r=vd(e),n=gn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),p=c.replace(d,i);return l+p}function hd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function ui(t){return gn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function gd(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=ko(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=ko(So(n,2)),s=So(l,2);return{before:c,after:s}}function ko(t){return t.split("").reverse().join("")}function So(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ir(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function md(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,c=i?t.indexOf(i,l):t.length;if(i&&c===-1)break;const s=t.slice(l,c);a.push({match:s,index:l}),r=i?c+i.length:t.length+1}return a}function yd(t,e,i,a){const n=md(t,i,a).filter(({match:c})=>gn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function bd(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function wd(t,e,i=0){const a=e.innerHTML,r=[],n=_d(e);let l=a.indexOf(t);for(;l!==-1;)ud(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function _d(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!r&&!a&&s==="<"){a=!0,n&&(e.push({start:l,end:c}),n=!1);continue}if(a&&s==='"'&&(r=!r),a&&!r&&s===">"){a=!1;continue}!a&&!r&&!n&&(l=c,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function xd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function To(t){return t.ctrlKey||t.metaKey||t.button!==0}const se={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreNavigate:"venus_navigate"},Ea={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function kd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function kt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function ar(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const mn=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function Sd(t=[]){return t.map(e=>{var i;return((i=mn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const yn="playpilot_user_id";function Td(){if(!Eo())return null;try{const t=localStorage.getItem(yn);return t||(localStorage.setItem(yn,cn(16)),localStorage.getItem(yn))}catch{return null}}function Eo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Ed="https://insights.playpilot.net";async function ce(t,e=null,i={}){var r,n,l,c,s;if(ar())return;if(!kt("tracking")){Cd(t,e,i);return}const a=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Sd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Eo()&&(i.user_id=Td()),i.version="8.5.10-beta.1",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=zi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>Ci?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Ed,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Pd({event:t,payload:i})}function Pd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Po({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Cd(t,e=null,i={}){var a;(a=window.PlayPilotLinkInjections).queued_tracking_events||(a.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function zd(){if(kt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ce(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function Co(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?kt("pixels"):!1}async function zo(){if(!kt("ads"))return[];const t=pi();if(!t)throw new Error("No token was provided");try{return await ei(`/ads/browse/?api-token=${t}`)}catch(e){throw ce(se.AdsFetchFailed,null,{status:e.status}),e}}function Pa(t){var e;return!kt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function Id(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}const jd={"Where To Stream Online":{[v.English]:"Where to stream online",[v.Swedish]:"Var kan man streama online",[v.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[v.English]:"We may earn a commission from purchases made through some of the links below.",[v.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[v.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[v.English]:"An error occurred",[v.Swedish]:"Ett fel inträffade",[v.Danish]:"Der opstod en fejl"},Loading:{[v.English]:"Loading",[v.Swedish]:"Laddar",[v.Danish]:"Indlæser"},"Title Unavailable":{[v.English]:"This title is not currently available to stream.",[v.Swedish]:"Den här titeln går inte att streama just nu.",[v.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[v.English]:"is not currently available to stream.",[v.Swedish]:"går inte att streama just nu.",[v.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[v.English]:"is available to stream on",[v.Swedish]:"finns att streama på",[v.Danish]:"kan streames på"},"Is Available To Stream":{[v.English]:"is available to stream.",[v.Swedish]:"finns att streama.",[v.Danish]:"kan streames."},"View Streaming Options":{[v.English]:"View streaming options",[v.Swedish]:"Se streamingalternativ",[v.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[v.English]:"and",[v.Swedish]:"och",[v.Danish]:"og"},Minutes:{[v.English]:"minutes",[v.Swedish]:"minuter",[v.Danish]:"minutter"},"Type: movie":{[v.English]:"Movie",[v.Swedish]:"Film",[v.Danish]:"Film"},"Type: series":{[v.English]:"Series",[v.Swedish]:"Serie",[v.Danish]:"Serie"},Stream:{[v.English]:"Stream",[v.Swedish]:"Streama",[v.Danish]:"Stream"},Buy:{[v.English]:"Buy",[v.Swedish]:"Köp",[v.Danish]:"Køb"},Rent:{[v.English]:"Rent",[v.Swedish]:"Hyr",[v.Danish]:"Lej"},"Rent Or Buy":{[v.English]:"Rent or Buy",[v.Swedish]:"Hyr/köp",[v.Danish]:"Lej eller køb"},Watch:{[v.English]:"Watch",[v.Swedish]:"Titta nu",[v.Danish]:"Se nu"},"Category: AVOD":{[v.English]:"Stream for free",[v.Swedish]:"Streama gratis",[v.Danish]:"Stream gratis"},"Category: SVOD":{[v.English]:"Streaming services",[v.Swedish]:"Streamingtjänster",[v.Danish]:"Streamingtjenester"},"Category: RENT":{[v.English]:"Rent it",[v.Swedish]:"Hyr den",[v.Danish]:"Lej den"},"Category: BUY":{[v.English]:"Buy it",[v.Swedish]:"Köp den",[v.Danish]:"Køb den"},"Category: Other":{[v.English]:"Other",[v.Swedish]:"Annat",[v.Danish]:"Andet"},Share:{[v.English]:"Share",[v.Swedish]:"Dela",[v.Danish]:"Del"},"Copy URL":{[v.English]:"Copy URL",[v.Swedish]:"Kopiera URL",[v.Danish]:"Kopiér URL"},Email:{[v.English]:"Email",[v.Swedish]:"E-post",[v.Danish]:"E-mail"},"Show More":{[v.English]:"Show more",[v.Swedish]:"Visa mer",[v.Danish]:"Vis mere"},Cast:{[v.English]:"Cast",[v.Swedish]:"Rollista",[v.Danish]:"Skuespillere"},"Similar Titles":{[v.English]:"Similar movies & shows",[v.Swedish]:"Liknande filmer och serier",[v.Danish]:"Lignende film og serier"},"Watch Trailer":{[v.English]:"Watch trailer",[v.Swedish]:"Se trailer",[v.Danish]:"Se trailer"},"Streaming Guide":{[v.English]:"Streaming Guide",[v.Swedish]:"Streaming Guide",[v.Danish]:"Streaming Guide"},"Streaming Guide Description":{[v.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[v.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[v.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[v.English]:"Search movies and shows",[v.Swedish]:"Sök filmer och serier",[v.Danish]:"Søg film og serier"},Services:{[v.English]:"Services",[v.Swedish]:"Tjänster",[v.Danish]:"Tjenester"},Genres:{[v.English]:"Genres",[v.Swedish]:"Genrer",[v.Danish]:"Genrer"},IMDb:{[v.English]:"IMDb",[v.Swedish]:"IMDb",[v.Danish]:"IMDb"},Year:{[v.English]:"Year",[v.Swedish]:"År",[v.Danish]:"År"},Runtime:{[v.English]:"Runtime",[v.Swedish]:"Speltid",[v.Danish]:"Spilletid"},Countries:{[v.English]:"Countries",[v.Swedish]:"Länder",[v.Danish]:"Lande"},"All Filters":{[v.English]:"All filters",[v.Swedish]:"Alla filter",[v.Danish]:"Alle filtre"},"Sort By":{[v.English]:"Sort by",[v.Swedish]:"Sortera efter",[v.Danish]:"Sortér efter"},Popularity:{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},New:{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"Top Rated":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"List: Trending":{[v.English]:"Trending Movies & Shows",[v.Swedish]:"Trendande Titlar",[v.Danish]:"Populære film og serier"},"List: Upcoming":{[v.English]:"Upcoming Releases",[v.Swedish]:"Kommande Premiärer",[v.Danish]:"Mest ventede film"},"List: New":{[v.English]:"New Releases",[v.Swedish]:"Nya Filmer & Serier",[v.Danish]:"Nye film og serier"},"List: Demand":{[v.English]:"Always in Demand",[v.Swedish]:"Tidlösa Favoriter",[v.Danish]:"Tidløse favoritter"},"List: Cinema":{[v.English]:"Coming to Cinemas",[v.Swedish]:"Snart på Bio",[v.Danish]:"Kommende film"},All:{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},Unscripted:{[v.English]:"Unscripted",[v.Swedish]:"Oscripterat",[v.Danish]:"Umanuskriptet"},Independent:{[v.English]:"Independent",[v.Swedish]:"Indie",[v.Danish]:"Indie"},"Game Show":{[v.English]:"Game Show",[v.Swedish]:"Gameshow",[v.Danish]:"Quizshow"},"Film Noir":{[v.English]:"Film Noir",[v.Swedish]:"Film noir",[v.Danish]:"Film noir"},Entertainment:{[v.English]:"Entertainment",[v.Swedish]:"Underhållning",[v.Danish]:"Underholdning"},News:{[v.English]:"News",[v.Swedish]:"Nyheter",[v.Danish]:"Nyheder"},Short:{[v.English]:"Short",[v.Swedish]:"Kortfilm",[v.Danish]:"Kortfilm"},Bollywood:{[v.English]:"Bollywood",[v.Swedish]:"Bollywood",[v.Danish]:"Bollywood"},Concert:{[v.English]:"Concert",[v.Swedish]:"Konsert",[v.Danish]:"Koncert"},Arthouse:{[v.English]:"Arthouse",[v.Swedish]:"Arthouse",[v.Danish]:"Arthouse"},"Alternate Version":{[v.English]:"Alternate Version",[v.Swedish]:"Alternativ version",[v.Danish]:"Alternativ version"},"Reality TV":{[v.English]:"Reality TV",[v.Swedish]:"Reality-TV",[v.Danish]:"Reality-TV"},Culture:{[v.English]:"Culture",[v.Swedish]:"Kultur",[v.Danish]:"Kultur"},Drama:{[v.English]:"Drama",[v.Swedish]:"Drama",[v.Danish]:"Drama"},Crime:{[v.English]:"Crime",[v.Swedish]:"Kriminal",[v.Danish]:"Krimi"},Western:{[v.English]:"Western",[v.Swedish]:"Western",[v.Danish]:"Western"},Thriller:{[v.English]:"Thriller",[v.Swedish]:"Thriller",[v.Danish]:"Thriller"},Animation:{[v.English]:"Animation",[v.Swedish]:"Animerat",[v.Danish]:"Animation"},Mystery:{[v.English]:"Mystery",[v.Swedish]:"Mysterium",[v.Danish]:"Mysterium"},Science:{[v.English]:"Science",[v.Swedish]:"Vetenskap",[v.Danish]:"Videnskab"},Nature:{[v.English]:"Nature",[v.Swedish]:"Natur",[v.Danish]:"Natur"},War:{[v.English]:"War",[v.Swedish]:"Krig",[v.Danish]:"Krig"},"Sci-Fi":{[v.English]:"Sci-Fi",[v.Swedish]:"Sci-fi",[v.Danish]:"Sci-fi"},Documentary:{[v.English]:"Documentary",[v.Swedish]:"Dokumentär",[v.Danish]:"Dokumentar"},"Stand-up":{[v.English]:"Stand-up",[v.Swedish]:"Standup",[v.Danish]:"Stand-up"},"Talk Show":{[v.English]:"Talk Show",[v.Swedish]:"Talkshow",[v.Danish]:"Talkshow"},Fantasy:{[v.English]:"Fantasy",[v.Swedish]:"Fantasy",[v.Danish]:"Fantasy"},History:{[v.English]:"History",[v.Swedish]:"Historia",[v.Danish]:"Historie"},Adventure:{[v.English]:"Adventure",[v.Swedish]:"Äventyr",[v.Danish]:"Eventyr"},Action:{[v.English]:"Action",[v.Swedish]:"Action",[v.Danish]:"Action"},Horror:{[v.English]:"Horror",[v.Swedish]:"Skräck",[v.Danish]:"Gyser"},Comedy:{[v.English]:"Comedy",[v.Swedish]:"Komedi",[v.Danish]:"Komedie"},Biography:{[v.English]:"Biography",[v.Swedish]:"Biografi",[v.Danish]:"Biografi"},Music:{[v.English]:"Music",[v.Swedish]:"Musik",[v.Danish]:"Musik"},Sport:{[v.English]:"Sport",[v.Swedish]:"Sport",[v.Danish]:"Sport"},Romance:{[v.English]:"Romance",[v.Swedish]:"Romantik",[v.Danish]:"Romantik"},Kids:{[v.English]:"Kids",[v.Swedish]:"Barn",[v.Danish]:"Børn"},Lifestyle:{[v.English]:"Lifestyle",[v.Swedish]:"Livsstil",[v.Danish]:"Livsstil"},Musical:{[v.English]:"Musical",[v.Swedish]:"Musikal",[v.Danish]:"Musical"},Anime:{[v.English]:"Anime",[v.Swedish]:"Anime",[v.Danish]:"Anime"},Family:{[v.English]:"Family",[v.Swedish]:"Familj",[v.Danish]:"Familie"}};function te(t,e=Ta()){var i;return((i=jd[t])==null?void 0:i[e])||t}async function bn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const c=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(a=c==null?void 0:c.country)==null?void 0:a.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),Ad(s),s}catch(l){return ce(se.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Ad(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function wn(t={}){const e=pi();if(!e)throw new Error("No token was provided");return t={...t,language:Ta(),include_count:"false"},t.region!==null&&(t.region=t.region||await bn()),await ei(`/titles/browse?api-token=${e}&`+fn(t))}async function Ld(t){return(await wn({related_to_sid:t.sid})).results}const rr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Md=t=>t;function Io(t){const e=t-1;return e*e*e+1}function jo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ti(t,{delay:e=0,duration:i=400,easing:a=Md}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Ca(t,{delay:e=0,duration:i=400,easing:a=Io,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,p=s*(1-l),[u,f]=jo(r),[h,m]=jo(n);return{delay:e,duration:i,easing:a,css:(y,b)=>`
5
+ `)}function un(t){const e=dn(),i=go(e,(t==null?void 0:t.exclude_elements_selector)||""),a=pn(i);return{parentElement:e,elements:i,pageText:a}}function mo(){const t=dn();return{content_heading:nd(t),content_modified_time:ld(t),content_published_time:od(t)}}function nd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function ld(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=yo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function od(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=yo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function vn(t){try{return new Date(t).toISOString()}catch{return null}}function yo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function zi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function fn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function sd(t){return!!(t.exclude_urls_pattern&&zi().match(new RegExp(t.exclude_urls_pattern)))}let hn=null;async function tr(t,{url:e=zi(),hash:i=rd(t||""),params:a={},method:r="GET"}={}){const n=pi(),l=er()?await fo():!1,c=Ta();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=mo(),d=await ei(s,{method:"POST",body:a})):d=await ei(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function bo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;hn&&clearTimeout(hn);const c=async(s,d)=>{let p;try{try{p=await tr(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await tr(t,{method:"POST"}),p.ai_enabled&&(p=await tr(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await cd(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=wo(p.manual_injections||[]),p.ai_injections=wo(p.ai_injections||[]),s(p);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}p&&n(p),hn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function cd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=mo().content_modified_time,a=e.content_modified_time?vn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await tr(t,{params:{run_ai:!0},method:"POST"})}function wo(t){return t.map(e=>({...e,key:dd(e.sid)}))}function dd(t){return t+"-"+cn()}function pd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function ud(t,e){return e.some(i=>t>=i.start&&t<i.end)}function vd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function gn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function _o(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function xo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function fd(t,e,i,a){const r=vd(e),n=gn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),p=c.replace(d,i);return l+p}function hd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function ui(t){return gn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function gd(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=ko(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=ko(So(n,2)),s=So(l,2);return{before:c,after:s}}function ko(t){return t.split("").reverse().join("")}function So(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ir(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function md(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,c=i?t.indexOf(i,l):t.length;if(i&&c===-1)break;const s=t.slice(l,c);a.push({match:s,index:l}),r=i?c+i.length:t.length+1}return a}function yd(t,e,i,a){const n=md(t,i,a).filter(({match:c})=>gn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function bd(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function wd(t,e,i=0){const a=e.innerHTML,r=[],n=_d(e);let l=a.indexOf(t);for(;l!==-1;)ud(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function _d(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!r&&!a&&s==="<"){a=!0,n&&(e.push({start:l,end:c}),n=!1);continue}if(a&&s==='"'&&(r=!r),a&&!r&&s===">"){a=!1;continue}!a&&!r&&!n&&(l=c,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function xd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function To(t){return t.ctrlKey||t.metaKey||t.button!==0}const se={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreNavigate:"venus_navigate"},Ea={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function kd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function kt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function ar(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const mn=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function Sd(t=[]){return t.map(e=>{var i;return((i=mn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const yn="playpilot_user_id";function Td(){if(!Eo())return null;try{const t=localStorage.getItem(yn);return t||(localStorage.setItem(yn,cn(16)),localStorage.getItem(yn))}catch{return null}}function Eo(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Ed="https://insights.playpilot.net";async function ce(t,e=null,i={}){var r,n,l,c,s;if(ar())return;if(!kt("tracking")){Cd(t,e,i);return}const a=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:Sd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Eo()&&(i.user_id=Td()),i.version="8.5.10-beta.2",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=zi(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>Ci?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Ed,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Pd({event:t,payload:i})}function Pd(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Po({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Cd(t,e=null,i={}){var a;(a=window.PlayPilotLinkInjections).queued_tracking_events||(a.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function zd(){if(kt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ce(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function Co(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?kt("pixels"):!1}async function zo(){if(!kt("ads"))return[];const t=pi();if(!t)throw new Error("No token was provided");try{return await ei(`/ads/browse/?api-token=${t}`)}catch(e){throw ce(se.AdsFetchFailed,null,{status:e.status}),e}}function Pa(t){var e;return!kt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function Id(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}const jd={"Where To Stream Online":{[v.English]:"Where to stream online",[v.Swedish]:"Var kan man streama online",[v.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[v.English]:"We may earn a commission from purchases made through some of the links below.",[v.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[v.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[v.English]:"An error occurred",[v.Swedish]:"Ett fel inträffade",[v.Danish]:"Der opstod en fejl"},Loading:{[v.English]:"Loading",[v.Swedish]:"Laddar",[v.Danish]:"Indlæser"},"Title Unavailable":{[v.English]:"This title is not currently available to stream.",[v.Swedish]:"Den här titeln går inte att streama just nu.",[v.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[v.English]:"is not currently available to stream.",[v.Swedish]:"går inte att streama just nu.",[v.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[v.English]:"is available to stream on",[v.Swedish]:"finns att streama på",[v.Danish]:"kan streames på"},"Is Available To Stream":{[v.English]:"is available to stream.",[v.Swedish]:"finns att streama.",[v.Danish]:"kan streames."},"View Streaming Options":{[v.English]:"View streaming options",[v.Swedish]:"Se streamingalternativ",[v.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[v.English]:"and",[v.Swedish]:"och",[v.Danish]:"og"},Minutes:{[v.English]:"minutes",[v.Swedish]:"minuter",[v.Danish]:"minutter"},"Type: movie":{[v.English]:"Movie",[v.Swedish]:"Film",[v.Danish]:"Film"},"Type: series":{[v.English]:"Series",[v.Swedish]:"Serie",[v.Danish]:"Serie"},Stream:{[v.English]:"Stream",[v.Swedish]:"Streama",[v.Danish]:"Stream"},Buy:{[v.English]:"Buy",[v.Swedish]:"Köp",[v.Danish]:"Køb"},Rent:{[v.English]:"Rent",[v.Swedish]:"Hyr",[v.Danish]:"Lej"},"Rent Or Buy":{[v.English]:"Rent or Buy",[v.Swedish]:"Hyr/köp",[v.Danish]:"Lej eller køb"},Watch:{[v.English]:"Watch",[v.Swedish]:"Titta nu",[v.Danish]:"Se nu"},"Category: AVOD":{[v.English]:"Stream for free",[v.Swedish]:"Streama gratis",[v.Danish]:"Stream gratis"},"Category: SVOD":{[v.English]:"Streaming services",[v.Swedish]:"Streamingtjänster",[v.Danish]:"Streamingtjenester"},"Category: RENT":{[v.English]:"Rent it",[v.Swedish]:"Hyr den",[v.Danish]:"Lej den"},"Category: BUY":{[v.English]:"Buy it",[v.Swedish]:"Köp den",[v.Danish]:"Køb den"},"Category: Other":{[v.English]:"Other",[v.Swedish]:"Annat",[v.Danish]:"Andet"},Share:{[v.English]:"Share",[v.Swedish]:"Dela",[v.Danish]:"Del"},"Copy URL":{[v.English]:"Copy URL",[v.Swedish]:"Kopiera URL",[v.Danish]:"Kopiér URL"},Email:{[v.English]:"Email",[v.Swedish]:"E-post",[v.Danish]:"E-mail"},"Show More":{[v.English]:"Show more",[v.Swedish]:"Visa mer",[v.Danish]:"Vis mere"},Cast:{[v.English]:"Cast",[v.Swedish]:"Rollista",[v.Danish]:"Skuespillere"},"Similar Titles":{[v.English]:"Similar movies & shows",[v.Swedish]:"Liknande filmer och serier",[v.Danish]:"Lignende film og serier"},"Watch Trailer":{[v.English]:"Watch trailer",[v.Swedish]:"Se trailer",[v.Danish]:"Se trailer"},"Streaming Guide":{[v.English]:"Streaming Guide",[v.Swedish]:"Streaming Guide",[v.Danish]:"Streaming Guide"},"Streaming Guide Description":{[v.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[v.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[v.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[v.English]:"Search movies and shows",[v.Swedish]:"Sök filmer och serier",[v.Danish]:"Søg film og serier"},Services:{[v.English]:"Services",[v.Swedish]:"Tjänster",[v.Danish]:"Tjenester"},Genres:{[v.English]:"Genres",[v.Swedish]:"Genrer",[v.Danish]:"Genrer"},IMDb:{[v.English]:"IMDb",[v.Swedish]:"IMDb",[v.Danish]:"IMDb"},Year:{[v.English]:"Year",[v.Swedish]:"År",[v.Danish]:"År"},Runtime:{[v.English]:"Runtime",[v.Swedish]:"Speltid",[v.Danish]:"Spilletid"},Countries:{[v.English]:"Countries",[v.Swedish]:"Länder",[v.Danish]:"Lande"},"All Filters":{[v.English]:"All filters",[v.Swedish]:"Alla filter",[v.Danish]:"Alle filtre"},"Sort By":{[v.English]:"Sort by",[v.Swedish]:"Sortera efter",[v.Danish]:"Sortér efter"},Popularity:{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},New:{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"Top Rated":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"List: Trending":{[v.English]:"Trending Movies & Shows",[v.Swedish]:"Trendande Titlar",[v.Danish]:"Populære film og serier"},"List: Upcoming":{[v.English]:"Upcoming Releases",[v.Swedish]:"Kommande Premiärer",[v.Danish]:"Mest ventede film"},"List: New":{[v.English]:"New Releases",[v.Swedish]:"Nya Filmer & Serier",[v.Danish]:"Nye film og serier"},"List: Demand":{[v.English]:"Always in Demand",[v.Swedish]:"Tidlösa Favoriter",[v.Danish]:"Tidløse favoritter"},"List: Cinema":{[v.English]:"Coming to Cinemas",[v.Swedish]:"Snart på Bio",[v.Danish]:"Kommende film"},All:{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},Unscripted:{[v.English]:"Unscripted",[v.Swedish]:"Oscripterat",[v.Danish]:"Umanuskriptet"},Independent:{[v.English]:"Independent",[v.Swedish]:"Indie",[v.Danish]:"Indie"},"Game Show":{[v.English]:"Game Show",[v.Swedish]:"Gameshow",[v.Danish]:"Quizshow"},"Film Noir":{[v.English]:"Film Noir",[v.Swedish]:"Film noir",[v.Danish]:"Film noir"},Entertainment:{[v.English]:"Entertainment",[v.Swedish]:"Underhållning",[v.Danish]:"Underholdning"},News:{[v.English]:"News",[v.Swedish]:"Nyheter",[v.Danish]:"Nyheder"},Short:{[v.English]:"Short",[v.Swedish]:"Kortfilm",[v.Danish]:"Kortfilm"},Bollywood:{[v.English]:"Bollywood",[v.Swedish]:"Bollywood",[v.Danish]:"Bollywood"},Concert:{[v.English]:"Concert",[v.Swedish]:"Konsert",[v.Danish]:"Koncert"},Arthouse:{[v.English]:"Arthouse",[v.Swedish]:"Arthouse",[v.Danish]:"Arthouse"},"Alternate Version":{[v.English]:"Alternate Version",[v.Swedish]:"Alternativ version",[v.Danish]:"Alternativ version"},"Reality TV":{[v.English]:"Reality TV",[v.Swedish]:"Reality-TV",[v.Danish]:"Reality-TV"},Culture:{[v.English]:"Culture",[v.Swedish]:"Kultur",[v.Danish]:"Kultur"},Drama:{[v.English]:"Drama",[v.Swedish]:"Drama",[v.Danish]:"Drama"},Crime:{[v.English]:"Crime",[v.Swedish]:"Kriminal",[v.Danish]:"Krimi"},Western:{[v.English]:"Western",[v.Swedish]:"Western",[v.Danish]:"Western"},Thriller:{[v.English]:"Thriller",[v.Swedish]:"Thriller",[v.Danish]:"Thriller"},Animation:{[v.English]:"Animation",[v.Swedish]:"Animerat",[v.Danish]:"Animation"},Mystery:{[v.English]:"Mystery",[v.Swedish]:"Mysterium",[v.Danish]:"Mysterium"},Science:{[v.English]:"Science",[v.Swedish]:"Vetenskap",[v.Danish]:"Videnskab"},Nature:{[v.English]:"Nature",[v.Swedish]:"Natur",[v.Danish]:"Natur"},War:{[v.English]:"War",[v.Swedish]:"Krig",[v.Danish]:"Krig"},"Sci-Fi":{[v.English]:"Sci-Fi",[v.Swedish]:"Sci-fi",[v.Danish]:"Sci-fi"},Documentary:{[v.English]:"Documentary",[v.Swedish]:"Dokumentär",[v.Danish]:"Dokumentar"},"Stand-up":{[v.English]:"Stand-up",[v.Swedish]:"Standup",[v.Danish]:"Stand-up"},"Talk Show":{[v.English]:"Talk Show",[v.Swedish]:"Talkshow",[v.Danish]:"Talkshow"},Fantasy:{[v.English]:"Fantasy",[v.Swedish]:"Fantasy",[v.Danish]:"Fantasy"},History:{[v.English]:"History",[v.Swedish]:"Historia",[v.Danish]:"Historie"},Adventure:{[v.English]:"Adventure",[v.Swedish]:"Äventyr",[v.Danish]:"Eventyr"},Action:{[v.English]:"Action",[v.Swedish]:"Action",[v.Danish]:"Action"},Horror:{[v.English]:"Horror",[v.Swedish]:"Skräck",[v.Danish]:"Gyser"},Comedy:{[v.English]:"Comedy",[v.Swedish]:"Komedi",[v.Danish]:"Komedie"},Biography:{[v.English]:"Biography",[v.Swedish]:"Biografi",[v.Danish]:"Biografi"},Music:{[v.English]:"Music",[v.Swedish]:"Musik",[v.Danish]:"Musik"},Sport:{[v.English]:"Sport",[v.Swedish]:"Sport",[v.Danish]:"Sport"},Romance:{[v.English]:"Romance",[v.Swedish]:"Romantik",[v.Danish]:"Romantik"},Kids:{[v.English]:"Kids",[v.Swedish]:"Barn",[v.Danish]:"Børn"},Lifestyle:{[v.English]:"Lifestyle",[v.Swedish]:"Livsstil",[v.Danish]:"Livsstil"},Musical:{[v.English]:"Musical",[v.Swedish]:"Musikal",[v.Danish]:"Musical"},Anime:{[v.English]:"Anime",[v.Swedish]:"Anime",[v.Danish]:"Anime"},Family:{[v.English]:"Family",[v.Swedish]:"Familj",[v.Danish]:"Familie"}};function te(t,e=Ta()){var i;return((i=jd[t])==null?void 0:i[e])||t}async function bn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const c=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(a=c==null?void 0:c.country)==null?void 0:a.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),Ad(s),s}catch(l){return ce(se.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Ad(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function wn(t={}){const e=pi();if(!e)throw new Error("No token was provided");return t={...t,language:Ta(),include_count:"false"},t.region!==null&&(t.region=t.region||await bn()),await ei(`/titles/browse?api-token=${e}&`+fn(t))}async function Ld(t){return(await wn({related_to_sid:t.sid})).results}const rr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Md=t=>t;function Io(t){const e=t-1;return e*e*e+1}function jo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ti(t,{delay:e=0,duration:i=400,easing:a=Md}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Ca(t,{delay:e=0,duration:i=400,easing:a=Io,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,p=s*(1-l),[u,f]=jo(r),[h,m]=jo(n);return{delay:e,duration:i,easing:a,css:(y,b)=>`
6
6
  transform: ${d} translate(${(1-y)*u}${f}, ${(1-y)*h}${m});
7
7
  opacity: ${s-p*b}`}}function ia(t,{delay:e=0,duration:i=400,easing:a=Io,start:r=0,opacity:n=0}={}){const l=getComputedStyle(t),c=+l.opacity,s=l.transform==="none"?"":l.transform,d=1-r,p=c*(1-n);return{delay:e,duration:i,easing:a,css:(u,f)=>`
8
8
  transform: ${s} scale(${1-d*f});
9
9
  opacity: ${c-p*f}
10
- `}}function nr(t){return t?t.replace("/src/img",""):null}function Ao(t,e=null){return t!=null&&t.length?`${$c}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Dd=C('<img class="svelte-p6g2a"/>');function lr(t,e){ie(e,!0);const i=O(e,"width",3,96),a=O(e,"height",3,144),r=O(e,"lazy",3,!0),n=O(e,"onload",3,()=>null);var l=Dd();B(c=>{ee(l,"src",c),ee(l,"alt",`Movie poster for '${e.title.title??""}'`),ee(l,"width",i()),ee(l,"height",a()),ee(l,"loading",r()?"lazy":null)},[()=>nr(e.title.standing_poster)]),xe("error",l,({target:c})=>c.src=ed),xe("load",l,function(...c){var s;(s=n())==null||s.apply(this,c)}),w(t,l),ae()}var qd=nt('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function _n(t,e){const i=O(e,"size",3,16);var a=qd();B(()=>{ee(a,"width",i()),ee(a,"height",i())}),w(t,a)}var Od=C('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function Rd(t,e){const i=O(e,"embeddable_url",3,"");var a=Od(),r=k(a);kn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=I(r,2);n.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var l=I(n,2);l.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var c=k(l);_n(c,{size:24}),Le(3,a,()=>ti,()=>({duration:100})),w(t,a)}ue(["click"]);const Nd="1304688689641511",Bd="https://endpoint-youtube-availability.playpilot.workers.dev";async function Lo(t){var i,a,r,n;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const l=await fetch(`${Bd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const c=await l.json();return!((r=c.blocked)!=null&&r[e]||!c.blocked&&c.allowed&&!((n=c.allowed)!=null&&n.includes(e)))}catch(l){return ce(se.YouTubeAvailabilityRequestFailed,null,{message:l.message}),!1}}let or={};function Fd(t){const e=On(),i={onclose:Vd,embeddable_url:t.embeddable_url||""};or=Rt(Rd,{target:e,props:i})}function Vd(){or&&(Qi(or,{outro:!0}),or=null)}function xn(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function Hd(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&xn(r.embeddable_url);try{n&&await Lo(n)&&(a=r)}catch{}i++}return a}var Ud=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe>');function kn(t,e){var f;ie(e,!0);const i=O(e,"embeddable_url",3,""),a=O(e,"controls",19,()=>[]),r=O(e,"muted",3,!1),n=O(e,"loop",3,!1),l=F(()=>xn(i())),c=((f=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:f.replace("#",""))||"fa548a";var s=fe(),d=Q(s);{var p=h=>{var m=Ud();B(y=>ee(m,"src",`https://video.playpilot.net/?video_id=${o(l)??""}&color=${c}&muted=${r()??""}&loop=${n()??""}&controls=${y??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),w(h,m)},u=h=>{var m=Xt("Something went wrong");w(h,m)};V(d,h=>{o(l)?h(p):h(u,!1)})}w(t,s),ae()}var Wd=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function Mo(t,e){ie(e,!0);let i=O(e,"gap",3,"0"),a=O(e,"fill",3,!0),r=O(e,"transitionDuration",3,300),n=O(e,"threshold",3,30),l=O(e,"moveThreshold",3,0),c=O(e,"currentIndex",15,0),s=O(e,"shown",31,()=>Be([])),d=O(e,"sliderWidth",15,0),p=O(e,"currentScrollPosition",15,0),u=O(e,"maxWidth",15,0),f=O(e,"reachedEnd",15,!1),h=O(e,"distanceToEnd",15,0),m=O(e,"passedThreshold",15,!1),y=O(e,"passedMoveThreshold",15,!1),b=O(e,"allowWheel",3,!1),g=O(e,"end",3,()=>null),S=O(e,"change",3,$=>null),_=O(e,"onend",19,g),P=O(e,"onchange",19,S),M=O(e,"onresize",3,()=>null),z=G(!1),A=G(!1),H=0,D=0,j=G(void 0),E=G(void 0),T=null,x=null;Ke(()=>{o(E)&&oe(),o(E)&&h(u()-p()-d())}),ct(()=>(me(),()=>T==null?void 0:T.disconnect()));function R($){const re=o(E).children.length,_e=Math.max(0,Math.min($,re-1));J({setIndex:_e}),oe()}function U(){q(A,!0),R(c()),requestAnimationFrame(()=>q(A,!1))}function Z($){ge($.target)&&($.preventDefault(),H=ke($),q(z,!0))}function W(){if(o(z)){if(!m())J({setIndex:c()});else{const $=p()-D,re=$>0?1:-1;$!=0&&J({direction:re})}q(z,!1),m(!1)}}function N($){if(!o(z))return;const re=ke($),_e=D+(H-re),pt=H-re;y(Math.abs(pt)>l()),m(Math.abs(p()-D)>n()),y()&&(le(_e-l()*(pt>0?1:-1)),oe())}function K($){if(!b())return;const{deltaX:re,deltaY:_e}=$;if(Math.abs(re)<Math.abs(_e))return;$.preventDefault();const Re=p()+re*20*.02;le(Re),oe(),x&&clearTimeout(x),x=setTimeout(()=>{J({direction:re>0?1:-1})},100)}function X($){ge(document.activeElement)&&($.key=="ArrowLeft"&&R(c()-1),$.key=="ArrowRight"&&R(c()+1))}function J({setIndex:$=-1,direction:re=1}={}){const _e=Ce(),pt=c();c(0);let Re;for(Re=0;Re<_e.length;Re++)if($!=-1){if(Re>=$)break}else if(re>0&&_e[Re]>p()||re<0&&_e[Re+1]>p())break;c(Math.min(Re,de().length-1)),le(_e[c()],!0),D=p(),P()&&c()!=pt&&P()(c())}function le($,re=!1){p($);const _e=u()-d();f(p()>=_e),f()&&(_()&&_()(),a()&&re&&p(_e))}function oe(){const $=Ce();Array.from($).forEach((re,_e)=>{p()+d()<re||s().includes(_e)||s([...s(),_e])})}function ke($){var re,_e;return $.pageX??((_e=(re=$.touches)==null?void 0:re[0])==null?void 0:_e.pageX)}function Ce(){return de().map($=>$.offsetLeft)}function de(){return Array.from(o(E).children).filter($=>$ instanceof HTMLElement).filter($=>$.src!="about:blank")}function me(){T=new ResizeObserver($=>{for(const re of $){const _e=Array.isArray(re.contentBoxSize)?re.contentBoxSize[0]:re.contentBoxSize;u(_e.inlineSize)}M()()}),T.observe(o(E))}function ge($){return $===o(j)||($==null?void 0:$.closest(".slider"))===o(j)}var je={setIndex:R,reposition:U},Xe=Wd();xe("mousedown",Ae,Z),xe("mouseup",Ae,W),xe("mousemove",Ae,N),xe("touchstart",Ae,Z,void 0,!0),xe("touchend",Ae,W),xe("touchmove",Ae,N,void 0,!0),xe("keydown",Ae,X),xe("resize",Ae,U);var Me=Q(Xe);let ve;var Oe=k(Me);let yt;var ri=k(Oe);Fe(ri,()=>e.children??ut,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:R,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),tt(Oe,$=>q(E,$),()=>o(E)),tt(Me,$=>q(j,$),()=>o(j));var Et=I(Me,2);return Fe(Et,()=>e.controls??ut,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:R,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),B($=>{ve=be(Me,1,"slider svelte-1gs8ha8",null,ve,{dragging:o(z),"passed-threshold":m()}),yt=Ve(Oe,"",yt,$)},[()=>({transform:`translateX(${p()*-1}px)`,"transition-duration":`${(o(z)||o(A)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),xe("wheel",Me,K),xt(Me,"clientWidth",d),w(t,Xe),ae(je)}var Gd=nt("<title> </title>"),Kd=nt('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function Bt(t,e){const i=O(e,"direction",3,"right"),a=O(e,"title",3,""),r=O(e,"size",3,16);var n=Kd(),l=k(n);{var c=s=>{var d=Gd(),p=k(d);B(()=>Y(p,a())),w(s,d)};V(l,s=>{a()&&s(c)})}B(()=>{be(n,0,i(),"svelte-1m6nwwy"),ee(n,"width",`${r()??""}px`),ee(n,"height",`${r()??""}px`)}),w(t,n)}function qe(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Yd=C('<div class="heading svelte-1ayf7b5"> </div>'),Zd=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Jd=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Qd=C("<!> <!>",1),Xd=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function sr(t,e){ie(e,!0);let i=O(e,"heading",3,""),a=O(e,"onchange",3,()=>null),r=O(e,"onresize",3,()=>null),n=O(e,"slider",15);var l=Xd(),c=Q(l);{var s=u=>{var f=Yd(),h=k(f);Nt(f,(m,y)=>qe==null?void 0:qe(m,y),()=>2),B(()=>Y(h,i())),w(u,f)};V(c,u=>{i()&&u(s)})}var d=I(c,2),p=k(d);tt(Mo(p,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(f,h)=>{let m=()=>h==null?void 0:h().setIndex,y=()=>h==null?void 0:h().currentIndex,b=()=>h==null?void 0:h().reachedEnd;var g=Qd(),S=Q(g);{var _=z=>{var A=Zd();A.__click=()=>m()(y()-1);var H=k(A);Bt(H,{direction:"left",title:"Previous"}),w(z,A)};V(S,z=>{y()>0&&z(_)})}var P=I(S,2);{var M=z=>{var A=Jd();A.__click=()=>m()(y()+1);var H=k(A);Bt(H,{title:"Next"}),w(z,A)};V(P,z=>{b()||z(M)})}w(f,g)},children:(f,h)=>{var m=fe(),y=Q(m);Fe(y,()=>e.children),w(f,m)},$$slots:{controls:!0,default:!0}}),f=>n(f),()=>n()),w(t,l),ae()}ue(["click"]);function Do(t){return`${Qc}/${t.type}/${t.slug}/`}var $d=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),ep=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),tp=C('<a class="poster svelte-12ph9f6"><!></a>'),ip=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),ap=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),rp=C('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),np=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),lp=C('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),op=C("<div><!></div>");function qo(t,e){ie(e,!0);let i=O(e,"minimumLength",3,1),a=O(e,"heading",3,""),r=O(e,"size",3,"small"),n=O(e,"aside",3,!1),l=O(e,"expandable",3,!1),c=O(e,"expandedTitle",15,null),s=O(e,"expandedRailKey",15,null),d=O(e,"onclick",3,()=>null),p=O(e,"onexpand",3,()=>null);const u=cn(),h=Mr("scope")==="popover"?Mr("title"):null;let m=G(null),y=G(null),b=!1;ct(()=>{l()&&P()});function g(j,E,T){var R,U,Z;j==null||j.preventDefault();const x=E[T];if(l()&&!M(x)){const W=(R=o(m))==null?void 0:R.querySelectorAll(".title")[T],K=(((U=o(m))==null?void 0:U.getBoundingClientRect().right)||0)-W.getBoundingClientRect().right;b=!0,setTimeout(()=>b=!1,500),K<W.clientWidth*2&&((Z=o(y))==null||Z.setIndex(T-2)),_(x),j&&p()(x);return}j&&(aa()?vi({event:j,type:"titles-rail",data:E,returnToTitle:h,props:{initialIndex:T}}):vi({event:j,data:x,returnToTitle:h}),d()(x))}async function S(){const j=await e.titles,E=await Hd(j);E&&(c()||s()&&s()!==u||_(E))}function _(j){s(u),c(j)}function P(){s()===u||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(x=>x.getBoundingClientRect().top>=0).sort((x,R)=>x.getBoundingClientRect().top-R.getBoundingClientRect().top)[0]!==o(m)||(c(null),s(null),S())}function M(j){var E;return s()===u&&j.sid===((E=c())==null?void 0:E.sid)}function z(j,E){l()&&(b||setTimeout(()=>g(null,j,E),250))}var A=op();xe("scroll",Ae,P);let H;var D=k(A);Za(D,()=>e.titles,j=>{sr(j,{get heading(){return a()},children:(E,T)=>{var x=fe(),R=Q(x);Pe(R,16,()=>({length:12}),Ie,(U,Z)=>{var W=lp(),N=I(k(W),4);{var K=X=>{var J=np(),le=k(J);Pe(le,20,()=>({length:3}),Ie,(oe,ke)=>{var Ce=rp();w(oe,Ce)}),w(X,J)};V(N,X=>{n()&&X(K)})}w(U,W)}),w(E,x)},$$slots:{default:!0}})},(j,E)=>{var T=fe(),x=Q(T);{var R=U=>{sr(U,{get heading(){return a()},onchange:Z=>z(o(E),Z),onresize:()=>{var Z;return(Z=o(y))==null?void 0:Z.reposition()},get slider(){return o(y)},set slider(Z){q(y,Z,!0)},children:(Z,W)=>{var N=fe(),K=Q(N);Pe(K,17,()=>o(E),Ie,(X,J,le,oe)=>{const ke=F(()=>M(o(J))),Ce=F(()=>Do(o(J))),de=F(()=>$=>g($,o(E),le));var me=ap();let ge;var je=k(me),Xe=k(je);{var Me=$=>{var re=ep(),_e=k(re);_e.__click=function(...Wt){var Ri;(Ri=o(de))==null||Ri.apply(this,Wt)};var pt=I(_e,2);{var Re=Wt=>{kn(Wt,{get embeddable_url(){return o(J).embeddable_url},muted:!0,loop:!0})},Sr=Wt=>{var Ri=$d();B(()=>ee(Ri,"src",o(J).medium_poster)),w(Wt,Ri)};V(pt,Wt=>{o(J).embeddable_url?Wt(Re):Wt(Sr,!1)})}B(()=>ee(_e,"href",o(Ce))),Le(2,re,()=>ti,()=>({delay:200,duration:200})),w($,re)},ve=$=>{var re=tp();re.__click=function(...pt){var Re;(Re=o(de))==null||Re.apply(this,pt)};var _e=k(re);lr(_e,{get title(){return o(J)},width:96,height:144}),B(()=>ee(re,"href",o(Ce))),w($,re)};V(Xe,$=>{o(ke)?$(Me):$(ve,!1)})}var Oe=I(je,2);Oe.__click=function(...$){var re;(re=o(de))==null||re.apply(this,$)};var yt=k(Oe),ri=I(Oe,2);{var Et=$=>{var re=ip();re.__click=function(...pt){var Re;(Re=o(de))==null||Re.apply(this,pt)};var _e=k(re);B(()=>Y(_e,o(J).description)),w($,re)};V(ri,$=>{n()&&$(Et)})}B(()=>{ge=be(me,1,"title svelte-12ph9f6",null,ge,{expanded:o(ke)}),ee(Oe,"href",o(Ce)),Y(yt,o(J).title)}),w(X,me)}),w(Z,N)},$$slots:{default:!0}})};V(x,U=>{var Z;((Z=o(E))==null?void 0:Z.length)>=i()&&U(R)})}w(j,T)}),tt(A,j=>q(m,j),()=>o(m)),B(()=>{H=be(A,1,`titles ${r()??""}`,"svelte-12ph9f6",H,{"with-aside":n()}),ee(A,"data-role",l()?"expandable-rail":null)}),w(t,A),ae()}ue(["click"]);var sp=C('<div class="rail svelte-1b834ry"><!></div>'),cp=C('<div data-testid="explore-home"></div> <!>',1);function dp(t,e){ie(e,!0);let i=G(null),a=G(null);const r=[{heading:"List: Trending",params:{ordering:rr.Popular},properties:{expandable:!0}},{heading:"List: New",params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{aside:!0}},{heading:"List: Upcoming",params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{}},{heading:"List: Cinema",params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{expandable:!0}},{heading:"List: Demand",params:{from_playlist_sid:"licBS"},properties:{aside:!0}}];async function n(s={}){var d;return(d=await wn(s))==null?void 0:d.results}var l=cp();xe("scroll",Ae,onscroll);var c=I(Q(l),2);Pe(c,17,()=>r,Ie,(s,d)=>{let p=()=>o(d).heading,u=()=>o(d).params,f=()=>o(d).properties;var h=sp(),m=k(h);{let y=F(()=>te(p())),b=F(()=>n(u()));qo(m,ln({get heading(){return o(y)},get titles(){return o(b)},size:"flexible",minimumLength:7},f,{onclick:()=>ce(se.ExploreTitleRailModalView,null,{rail:p()}),onexpand:g=>ce(se.ExploreTitleRailExpandClick,g,{rail:p()}),get expandedTitle(){return o(i)},set expandedTitle(g){q(i,g,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(g){q(a,g,!0)}}))}w(s,h)}),w(t,l),ae()}function cr(t,e={}){const i=new Image;i.src=pp(t,e||{})}function pp(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Nd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Oo(t,e={}){return()=>{Ke(()=>cr(t,e))}}function up(t,e={}){return i=>{const a=()=>cr(t,e);Ke(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var vp=C("<button><!></button>");function Ii(t,e){const i=O(e,"variant",3,"filled"),a=O(e,"size",3,"base"),r=O(e,"label",3,null),n=O(e,"active",3,!1);var l=vp();let c;l.__click=function(...d){var p;(p=e.onclick)==null||p.apply(this,d)};var s=k(l);Fe(s,()=>e.children??ut),B(()=>{c=be(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",c,{active:n()}),ee(l,"aria-label",r())}),w(t,l)}ue(["click"]);var fp=nt('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function Sn(t,e){const i=O(e,"size",3,14);var a=fp();B(()=>{ee(a,"width",i()),ee(a,"height",i())}),w(t,a)}function Ro(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(s=>s.name===r.name),l=n==null?void 0:n.extra_info.category,c=r.extra_info.category;(l==="RENT"&&c==="BUY"||l==="BUY"&&c==="RENT")&&(i=i.filter(s=>s.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var hp=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function Tn(t,e){ie(e,!0);let i=G(Be(Math.random()));var a=fe();xe("updateconsent",Ae,()=>q(i,Math.random(),!0));var r=Q(a);$i(r,()=>o(i),n=>{var l=fe(),c=Q(l);{var s=d=>{var p=fe(),u=Q(p);Pe(u,17,()=>e.pixels,Ie,(f,h)=>{var m=hp();B(()=>ee(m,"src",o(h))),w(f,m)}),w(d,p)};V(c,d=>{kt("pixels")&&d(s)})}w(n,l)}),w(t,a),ae()}var gp=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function mp(t,e){ie(e,!0);const i=O(e,"size",3,30),a=O(e,"onclick",3,()=>null),r=F(()=>e.playlink.name),n=F(()=>e.playlink.url),l=F(()=>e.playlink.logo_url),c=F(()=>e.playlink.pixels);var s=gp();s.__click=function(...h){var m;(m=a())==null||m.apply(this,h)};let d;var p=k(s),u=I(p,2);{var f=h=>{Tn(h,{get pixels(){return o(c)}})};V(u,h=>{var m;(m=o(c))!=null&&m.length&&h(f)})}B(h=>{ee(s,"href",o(n)),ee(s,"data-playlink",o(r)),d=Ve(s,"",d,{"--size":`${i()??""}px`}),ee(p,"src",h),ee(p,"alt",o(r)),ee(p,"height",i()),ee(p,"width",i())},[()=>nr(o(l))]),w(t,s),ae()}ue(["click"]);var yp=C('<span class="more svelte-1plv45z"> </span>'),bp=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),wp=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function No(t,e){ie(e,!0);const i=O(e,"size",3,30),a=F(()=>Ro(e.playlinks).slice(0,3));function r(u){u.stopPropagation()}var n=wp(),l=k(n);Pe(l,17,()=>o(a),Ie,(u,f)=>{mp(u,{get playlink(){return o(f)},onclick:r,get size(){return i()}})});var c=I(l,2);{var s=u=>{var f=yp(),h=k(f);B(()=>Y(h,`+${e.playlinks.length-o(a).length}`)),w(u,f)};V(c,u=>{e.playlinks.length>o(a).length&&u(s)})}var d=I(c,2);{var p=u=>{var f=bp();w(u,f)};V(d,u=>{e.playlinks.length||u(p)})}w(t,n),ae()}var _p=C("<div>Series</div>"),xp=C("<div> </div>"),kp=C('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Sp(t,e){ie(e,!0);const i=O(e,"onclick",3,()=>null);var a=kp();a.__click=function(...S){var _;(_=i())==null||_.apply(this,S)};var r=k(a),n=k(r);lr(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=I(n,2),c=k(l),s=k(c);Sn(s,{size:12});var d=I(s),p=I(c,2);{var u=S=>{var _=_p();w(S,_)};V(p,S=>{e.title.type==="series"&&S(u)})}var f=I(p,2);{var h=S=>{var _=xp(),P=k(_);B(()=>Y(P,`${e.title.length??""} min`)),w(S,_)};V(f,S=>{e.title.length&&S(h)})}var m=I(r,2),y=k(m),b=k(y),g=I(y,2);No(g,{get playlinks(){return e.title.providers},size:20}),B(()=>{Y(d,` ${e.title.imdb_score||"-"}`),Y(b,e.title.title)}),w(t,a),ae()}ue(["click"]),Gs();var Tp=C('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function Ep(t){var e=Tp(),i=I(k(e),2),a=k(i);Ve(a,"",{},{width:"60%"}),w(t,e)}var Pp=C('<div class="svelte-pkkpyl"> </div>'),Cp=C('<button class="title svelte-pkkpyl" data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <div> </div> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Bo(t,e){var E;ie(e,!0);const i=O(e,"onclick",3,()=>null),a=!!((E=window.PlayPilotLinkInjections)!=null&&E.no_affiliate);var r=Cp();r.__click=function(...T){var x;(x=i())==null||x.apply(this,T)};var n=k(r),l=k(n);lr(l,{get title(){return e.title},width:30,height:43,lazy:!0});var c=I(n,2),s=k(c),d=k(s),p=I(s,2),u=k(p),f=k(u);Sn(f,{size:11});var h=I(f),m=I(u,2),y=k(m),b=I(m,2),g=k(b),S=I(b,2);{var _=T=>{var x=Pp(),R=k(x);B(()=>Y(R,`${e.title.length??""} min`)),w(T,x)};V(S,T=>{e.title.length&&T(_)})}var P=I(p,2);let M;var z=k(P),A=I(P,2);{var H=T=>{No(T,{get playlinks(){return e.title.providers}})};V(A,T=>{a||T(H)})}var D=I(c,2),j=k(D);Bt(j,{}),B(T=>{Y(d,e.title.title),Y(h,` ${e.title.imdb_score||"-"}`),Y(y,e.title.year),Y(g,T),M=be(P,1,"description svelte-pkkpyl",null,M,{large:a}),Y(z,e.title.description)},[()=>te(`Type: ${e.title.type}`)]),w(t,r),ae()}ue(["click"]);var zp=C('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function Ip(t){var e=zp(),i=I(k(e),2),a=k(i);Ve(a,"",{},{width:"40%"});var r=I(a,2);Ve(r,"",{},{width:"60%"});var n=I(r,2);Ve(n,"",{},{width:"80%"}),w(t,e)}const jp=[{label:"Aruba",value:"AW"},{label:"Afghanistan",value:"AF"},{label:"Angola",value:"AO"},{label:"Anguilla",value:"AI"},{label:"Albania",value:"AL"},{label:"Andorra",value:"AD"},{label:"United Arab Emirates",value:"AE"},{label:"Argentina",value:"AR"},{label:"Armenia",value:"AM"},{label:"American Samoa",value:"AS"},{label:"Antigua and Barbuda",value:"AG"},{label:"Australia",value:"AU"},{label:"Austria",value:"AT"},{label:"Azerbaijan",value:"AZ"},{label:"Burundi",value:"BI"},{label:"Belgium",value:"BE"},{label:"Benin",value:"BJ"},{label:"Burkina Faso",value:"BF"},{label:"Bangladesh",value:"BD"},{label:"Bulgaria",value:"BG"},{label:"Bahrain",value:"BH"},{label:"Bahamas",value:"BS"},{label:"Bosnia and Herzegovina",value:"BA"},{label:"Belarus",value:"BY"},{label:"Belize",value:"BZ"},{label:"Bermuda",value:"BM"},{label:"Bolivia",value:"BO"},{label:"Brazil",value:"BR"},{label:"Barbados",value:"BB"},{label:"Brunei",value:"BN"},{label:"Bhutan",value:"BT"},{label:"Botswana",value:"BW"},{label:"Central African Republic",value:"CF"},{label:"Canada",value:"CA"},{label:"Switzerland",value:"CH"},{label:"Chile",value:"CL"},{label:"China",value:"CN"},{label:"Côte d'Ivoire",value:"CI"},{label:"Cameroon",value:"CM"},{label:"DR Congo",value:"CD"},{label:"Congo",value:"CG"},{label:"Cook Islands",value:"CK"},{label:"Colombia",value:"CO"},{label:"Comoros",value:"KM"},{label:"Cabo Verde",value:"CV"},{label:"Costa Rica",value:"CR"},{label:"Cuba",value:"CU"},{label:"Curaçao",value:"CW"},{label:"Cayman Islands",value:"KY"},{label:"Cyprus",value:"CY"},{label:"Czechia",value:"CZ"},{label:"Germany",value:"DE"},{label:"Djibouti",value:"DJ"},{label:"Dominica",value:"DM"},{label:"Denmark",value:"DK"},{label:"Dominican Republic",value:"DO"},{label:"Algeria",value:"DZ"},{label:"Ecuador",value:"EC"},{label:"Egypt",value:"EG"},{label:"Eritrea",value:"ER"},{label:"Spain",value:"ES"},{label:"Estonia",value:"EE"},{label:"Ethiopia",value:"ET"},{label:"Finland",value:"FI"},{label:"Fiji",value:"FJ"},{label:"Falkland Islands",value:"FK"},{label:"France",value:"FR"},{label:"Faroe Islands",value:"FO"},{label:"Micronesia",value:"FM"},{label:"Gabon",value:"GA"},{label:"United Kingdom",value:"GB"},{label:"Georgia",value:"GE"},{label:"Ghana",value:"GH"},{label:"Gibraltar",value:"GI"},{label:"Guinea",value:"GN"},{label:"Guadeloupe",value:"GP"},{label:"Gambia",value:"GM"},{label:"Guinea-Bissau",value:"GW"},{label:"Equatorial Guinea",value:"GQ"},{label:"Greece",value:"GR"},{label:"Grenada",value:"GD"},{label:"Greenland",value:"GL"},{label:"Guatemala",value:"GT"},{label:"Guyana",value:"GY"},{label:"Hong Kong",value:"HK"},{label:"Honduras",value:"HN"},{label:"Croatia",value:"HR"},{label:"Haiti",value:"HT"},{label:"Hungary",value:"HU"},{label:"Indonesia",value:"ID"},{label:"India",value:"IN"},{label:"Ireland",value:"IE"},{label:"Iran",value:"IR"},{label:"Iraq",value:"IQ"},{label:"Iceland",value:"IS"},{label:"Israel",value:"IL"},{label:"Italy",value:"IT"},{label:"Jamaica",value:"JM"},{label:"Jordan",value:"JO"},{label:"Japan",value:"JP"},{label:"Kazakhstan",value:"KZ"},{label:"Kenya",value:"KE"},{label:"Kyrgyzstan",value:"KG"},{label:"Cambodia",value:"KH"},{label:"Kiribati",value:"KI"},{label:"Saint Kitts and Nevis",value:"KN"},{label:"South Korea",value:"KR"},{label:"Kuwait",value:"KW"},{label:"Laos",value:"LA"},{label:"Lebanon",value:"LB"},{label:"Liberia",value:"LR"},{label:"Libya",value:"LY"},{label:"Saint Lucia",value:"LC"},{label:"Liechtenstein",value:"LI"},{label:"Sri Lanka",value:"LK"},{label:"Lesotho",value:"LS"},{label:"Lithuania",value:"LT"},{label:"Luxembourg",value:"LU"},{label:"Latvia",value:"LV"},{label:"Macao",value:"MO"},{label:"Morocco",value:"MA"},{label:"Monaco",value:"MC"},{label:"Moldova",value:"MD"},{label:"Madagascar",value:"MG"},{label:"Maldives",value:"MV"},{label:"Mexico",value:"MX"},{label:"Marshall Islands",value:"MH"},{label:"North Macedonia",value:"MK"},{label:"Mali",value:"ML"},{label:"Malta",value:"MT"},{label:"Myanmar",value:"MM"},{label:"Montenegro",value:"ME"},{label:"Mongolia",value:"MN"},{label:"Mozambique",value:"MZ"},{label:"Mauritania",value:"MR"},{label:"Martinique",value:"MQ"},{label:"Mauritius",value:"MU"},{label:"Malawi",value:"MW"},{label:"Malaysia",value:"MY"},{label:"Namibia",value:"NA"},{label:"New Caledonia",value:"NC"},{label:"Niger",value:"NE"},{label:"Nigeria",value:"NG"},{label:"Nicaragua",value:"NI"},{label:"Niue",value:"NU"},{label:"Netherlands",value:"NL"},{label:"Norway",value:"NO"},{label:"Nepal",value:"NP"},{label:"Nauru",value:"NR"},{label:"New Zealand",value:"NZ"},{label:"Oman",value:"OM"},{label:"Pakistan",value:"PK"},{label:"Panama",value:"PA"},{label:"Peru",value:"PE"},{label:"Philippines",value:"PH"},{label:"Palau",value:"PW"},{label:"Papua New Guinea",value:"PG"},{label:"Poland",value:"PL"},{label:"Puerto Rico",value:"PR"},{label:"North Korea",value:"KP"},{label:"Portugal",value:"PT"},{label:"Paraguay",value:"PY"},{label:"Palestine",value:"PS"},{label:"French Polynesia",value:"PF"},{label:"Qatar",value:"QA"},{label:"Romania",value:"RO"},{label:"Russian Federation",value:"RU"},{label:"Rwanda",value:"RW"},{label:"Saudi Arabia",value:"SA"},{label:"Sudan",value:"SD"},{label:"Senegal",value:"SN"},{label:"Singapore",value:"SG"},{label:"Solomon Islands",value:"SB"},{label:"Sierra Leone",value:"SL"},{label:"El Salvador",value:"SV"},{label:"San Marino",value:"SM"},{label:"Somalia",value:"SO"},{label:"Serbia",value:"RS"},{label:"South Sudan",value:"SS"},{label:"São Tomé and Príncipe",value:"ST"},{label:"Suriname",value:"SR"},{label:"Slovakia",value:"SK"},{label:"Slovenia",value:"SI"},{label:"Sweden",value:"SE"},{label:"Eswatini",value:"SZ"},{label:"Seychelles",value:"SC"},{label:"Syria",value:"SY"},{label:"Chad",value:"TD"},{label:"Togo",value:"TG"},{label:"Thailand",value:"TH"},{label:"Tajikistan",value:"TJ"},{label:"Turkmenistan",value:"TM"},{label:"Timor-Leste",value:"TL"},{label:"Tonga",value:"TO"},{label:"Trinidad and Tobago",value:"TT"},{label:"Tunisia",value:"TN"},{label:"Turkey",value:"TR"},{label:"Tuvalu",value:"TV"},{label:"Taiwan",value:"TW"},{label:"Tanzania",value:"TZ"},{label:"Uganda",value:"UG"},{label:"Ukraine",value:"UA"},{label:"Uruguay",value:"UY"},{label:"United States",value:"US"},{label:"Uzbekistan",value:"UZ"},{label:"Saint Vincent and the Grenadines",value:"VC"},{label:"Venezuela",value:"VE"},{label:"Vietnam",value:"VN"},{label:"Vanuatu",value:"VU"},{label:"Samoa",value:"WS"},{label:"Yemen",value:"YE"},{label:"South Africa",value:"ZA"},{label:"Zambia",value:"ZM"},{label:"Zimbabwe",value:"ZW"}];async function Ap(){const t=pi();if(!t)throw new Error("No token was provided");const e={region:await bn(),page:1,include_count:"false"};return await ei(`/providers/?api-token=${t}&`+fn(e))}function Lp(t){const e=t-1;return e*e*e+1}function Mp(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=z=>Math.sqrt(z)*120,easing:l=Lp}=a,c=getComputedStyle(t),s=c.transform==="none"?"":c.transform,[d,p]=c.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,p/=t.clientHeight;var u=Dp(t),f=t.clientWidth/i.width/u,h=t.clientHeight/i.height/u,m=e.left+e.width*d,y=e.top+e.height*p,b=i.left+i.width*d,g=i.top+i.height*p,S=(m-b)*f,_=(y-g)*h,P=e.width/i.width,M=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(S*S+_*_)):n,easing:l,css:(z,A)=>{var H=A*S,D=A*_,j=z+A*P,E=z+A*M;return`transform: ${s} translate(${H}px, ${D}px) scale(${j}, ${E});`}}}function Dp(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var qp=nt('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function Op(t){var e=qp();w(t,e)}var Rp=nt('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function Np(t){var e=Rp();w(t,e)}var Bp=C('<div class="icon svelte-dfwzqz"><!></div>'),Fp=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),Vp=C('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function Hp(t,e){ie(e,!0);let i=O(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=O(e,"selected",23,()=>[]),r=O(e,"placeholder",19,()=>`${te("Search")}...`),n=O(e,"onchange",3,()=>null),l=G("");const c=F(s);function s(){var m;return(m=i())!=null&&m.length?o(l)?i().filter(({label:y})=>y.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(m){const y=a().find(b=>b===m);a(y?a().filter(b=>b!==m):[...a(),m]),n()(a())}var p=Vp(),u=Q(p),f=k(u),h=I(u,2);Pe(h,29,()=>o(c)||[],({label:m,value:y})=>y,(m,y)=>{let b=()=>o(y).label,g=()=>o(y).value;const S=F(()=>!!a().find(D=>D===g()));var _=Fp(),P=k(_);let M;P.__click=()=>d(g());var z=k(P),A=I(z),H=k(A);$i(H,()=>o(S),D=>{var j=Bp(),E=k(j);{var T=R=>{Op(R)},x=R=>{Np(R)};V(E,R=>{o(S)?R(T):R(x,!1)})}Le(3,j,()=>ia,()=>({start:.25,duration:100})),w(D,j)}),B(()=>{M=be(P,1,"option svelte-dfwzqz",null,M,{active:o(S)}),Y(z,`${b()??""} `)}),Uc(_,()=>Mp,()=>({duration:150})),w(m,_)}),B(()=>ee(f,"placeholder",r())),Sa(f,()=>o(l),m=>q(l,m)),w(t,p),ae()}ue(["click"]);var Up=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),Wp=C("<div><!> <!></div>");function Fo(t,e){ie(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),c=G(0);function s(y){const b=y.target;b&&b.closest(".dropdown")!==o(a)&&q(i,!1)}function d(y){q(i,!o(i)),o(i)&&(q(c,0),q(l,0),p(y.target))}async function p(y){if(await xa(),!o(r))return;const b=16,g=200,S=window.innerHeight,_=window.innerWidth,{top:P}=o(r).getBoundingClientRect(),{left:M}=y.getBoundingClientRect();q(n,M<window.innerWidth/2?"left":"right",!0),q(l,Math.max(Math.min(window.innerHeight-P-b,S*.6),g),!0),await xa();const{left:z,right:A}=o(r).getBoundingClientRect(),H=_-A;z-b<0?q(c,H):H-b<0&&q(c,H-b)}var u=Wp();xe("click",Ae,s);var f=k(u);Fe(f,()=>e.button,()=>({toggle:d}));var h=I(f,2);{var m=y=>{var b=Up();let g;var S=k(b);Fe(S,()=>e.content),tt(b,_=>q(r,_),()=>o(r)),B(()=>g=Ve(b,"",g,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(c)?`${o(c)}px`:null})),Le(3,b,()=>ia,()=>({start:.85,duration:100})),w(y,b)};V(h,y=>{o(i)&&y(m)})}tt(u,y=>q(a,y),()=>o(a)),B(()=>be(u,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),w(t,u),ae()}var Gp=C('<span class="label svelte-1mfj6k7"> </span>'),Kp=C('<div class="active-line svelte-1mfj6k7"></div>'),Yp=C('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function Zp(t,e){ie(e,!0);const i=O(e,"range",19,()=>[0,100]),a=O(e,"value",19,i),r=O(e,"label",3,""),n=O(e,"valueAppend",3,""),l=O(e,"formatFunction",3,W=>W.toString()),c=O(e,"onchange",3,()=>null);let s=i(),d=F(()=>ua(s,2)),p=G(Be(o(d)[0])),u=G(Be(o(d)[1]));const f=F(()=>o(p)!==i()[0]||o(u)!==i()[1]),h=F(()=>100/(i()[1]-i()[0])*(o(p)-i()[0])),m=F(()=>100+100/(i()[1]-i()[0])*(o(u)-i()[1])-o(h)),y=F(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(p)-o(u))<5);Ke(()=>{b(a())}),Ke(()=>{q(u,Math.max(o(u),o(p)+1),!0),q(u,Math.min(o(u),i()[1]),!0),q(p,Math.min(o(p),o(u)-1),!0),q(p,Math.max(o(p),i()[0]),!0)});function b(W){(N=>{var K=ua(N,2);q(p,K[0],!0),q(u,K[1],!0)})(W)}function g(){requestAnimationFrame(()=>c()([o(p),o(u)]))}var S=Yp(),_=k(S);{var P=W=>{var N=Gp(),K=k(N);B((X,J)=>Y(K,`${r()??""}: ${X??""}—${J??""} ${n()??""}`),[()=>l()(o(p)),()=>l()(o(u))]),w(W,N)};V(_,W=>{r()&&W(P)})}var M=I(_,2);let z;var A=k(M);A.__mouseup=g,A.__touchend=g,A.__input=function(...W){};let H;var D=I(A,2);D.__mouseup=g,D.__touchend=g,D.__input=function(...W){};let j;var E=I(D,2),T=k(E),x=I(E,2),R=k(x),U=I(x,2);{var Z=W=>{var N=Kp();let K;B(()=>K=Ve(N,"",K,{left:o(h)+"%","--width":o(m)+"%"})),w(W,N)};V(U,W=>{o(f)&&W(Z)})}B(()=>{z=be(M,1,"range svelte-1mfj6k7",null,z,{halved:o(y)}),ee(A,"min",i()[0]),ee(A,"max",i()[1]),H=be(A,1,"svelte-1mfj6k7",null,H,{active:o(f)}),ee(D,"min",i()[0]),ee(D,"max",i()[1]),j=be(D,1,"svelte-1mfj6k7",null,j,{active:o(f)}),Y(T,o(p)),Y(R,o(u))}),Sa(A,()=>o(p),W=>q(p,W)),Sa(D,()=>o(u),W=>q(u,W)),w(t,S),ae()}ue(["mouseup","touchend","input"]);var Jp=C(" <!>",1),Qp=C('<p class="loading"> </p>'),Xp=C('<p class="error"> </p>'),$p=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),eu=C('<div data-testid="filter-item"><!></div>');function tu(t,e){ie(e,!0);let i=O(e,"filter",7),a=O(e,"onchange",3,()=>null),r=O(e,"data",7,null),n=O(e,"fetchData",3,null),l=O(e,"range",3,null),c=O(e,"valueAppend",3,"");const s=F(()=>{if(!i()[e.param])return!1;const{type:y,value:b}=i()[e.param];return!(y==="array"&&!b.length||y==="range"&&JSON.stringify(b)===JSON.stringify(l()))});let d=G(!!n());Ke(()=>{!r()&&n()&&p()});async function p(){try{q(d,!0),r(await n()())}catch{ce(se.ExploreFetchProvidersFailed)}finally{q(d,!1)}}function u(y,b){if(ce(se.ExploreSetFilter,null,{key:e.param,value:y,total_filter:i()}),!y){delete i()[e.param];return}i()[e.param]={type:b,value:y},a()()}var f=eu();let h;var m=k(f);Fo(m,{button:(g,S)=>{let _=()=>S==null?void 0:S().toggle;Ii(g,{variant:"border",size:"large",get active(){return o(s)},get onclick(){return _()},children:(P,M)=>{var z=Jp(),A=Q(z),H=I(A);Bt(H,{direction:"down"}),B(()=>Y(A,`${e.label??""} `)),w(P,z)},$$slots:{default:!0}})},content:g=>{var S=$p(),_=k(S);{var P=D=>{var j=Qp(),E=k(j);B(T=>Y(E,`${T??""}...`),[()=>te("Loading")]),w(D,j)},M=D=>{var j=fe(),E=Q(j);{var T=x=>{var R=Xp(),U=k(R);B(Z=>Y(U,Z),[()=>te("An Error Occurred")]),w(x,R)};V(E,x=>{n()&&!r()&&x(T)},!0)}w(D,j)};V(_,D=>{o(d)?D(P):D(M,!1)})}var z=I(_,2);{var A=D=>{const j=F(()=>{var E;return(E=i()[e.param])==null?void 0:E.value});Hp(D,{get options(){return r()},get selected(){return o(j)},onchange:E=>u(E,"array")})},H=D=>{var j=fe(),E=Q(j);{var T=x=>{const R=F(()=>{var U;return(U=i()[e.param])==null?void 0:U.value});Zp(x,{get range(){return l()},get value(){return o(R)},get label(){return e.label},get valueAppend(){return c()},onchange:U=>u(U,"range")})};V(E,x=>{l()&&x(T)},!0)}w(D,j)};V(z,D=>{r()?D(A):D(H,!1)})}w(g,S)},$$slots:{button:!0,content:!0}}),B(()=>h=be(f,1,"filter-item svelte-er0ukh",null,h,{active:o(s)})),w(t,f),ae()}var iu=C(" <!>",1),au=C("<button> </button>"),ru=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function nu(t,e){ie(e,!0);const i=O(e,"filter",7),a=O(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:rr.Popular},{label:"New",value:rr.New},{label:"Top Rated",value:rr.Best}],l=F(()=>{var s;return((s=n.find(({value:d})=>{var p;return d===((p=i()[r])==null?void 0:p.value)}))==null?void 0:s.label)||"Sort By"});function c(s){s?i()[r]={type:"string",value:s}:delete i()[r],a()()}Fo(t,{button:(p,u)=>{let f=()=>u==null?void 0:u().toggle;Ii(p,{variant:"link",get onclick(){return f()},children:(h,m)=>{var y=iu(),b=Q(y),g=I(b);Bt(g,{direction:"down"}),B(S=>Y(b,`${S??""} `),[()=>te(o(l))]),w(h,y)},$$slots:{default:!0}})},content:p=>{var u=ru();Pe(u,21,()=>n,Ie,(f,h,m,y)=>{let b=()=>o(h).label,g=()=>o(h).value;const S=F(()=>{var z;return g()===((z=i()[r])==null?void 0:z.value)});var _=au();let P;_.__click=()=>c(g());var M=k(_);B(z=>{P=be(_,1,"option svelte-1ibt2k4",null,P,{active:o(S)}),Y(M,z)},[()=>te(b())]),w(f,_)}),w(p,u)},$$slots:{button:!0,content:!0}}),ae()}ue(["click"]);var lu=nt('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function ou(t){var e=lu();w(t,e)}var su=C("<div><!></div>"),cu=C("<!> <!>",1),du=C('<div class="sorting"><!></div>'),pu=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function uu(t,e){ie(e,!0);const i=O(e,"onchange",3,()=>null),a=O(e,"limit",3,!0),r=O(e,"showSorting",3,!0),n=3,l=[{label:te("Services"),param:"providers",fetchData:async()=>(await Ap()).map(b=>({label:b.name,value:b.slug}))},{label:te("Genres"),param:"genres",data:mn.map(b=>({label:b.name,value:b.slug}))},{label:te("IMDb"),param:"imdb_score",range:[0,10]},{label:te("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:te("Runtime"),param:"length",range:[0,180],valueAppend:te("Minutes")},{label:te("Countries"),param:"country_codes",data:jp}];let c=G(Be(a()));var s=pu();let d;var p=k(s);Pe(p,21,()=>o(c)?l.slice(0,n):l,Ie,(b,g)=>{var S=su(),_=k(S);tu(_,ln({get filter(){return e.filter},get onchange(){return i()}},()=>o(g))),Le(3,S,()=>ia,()=>({start:.75,duration:100})),w(b,S)});var u=I(p,2),f=k(u);{var h=b=>{Ii(b,{variant:"link",onclick:()=>q(c,!o(c)),children:(g,S)=>{var _=cu(),P=Q(_);ou(P);var M=I(P),z=I(M);{let A=F(()=>o(c)?"down":"up");Bt(z,{get direction(){return o(A)}})}B(A=>Y(M,` ${A??""} `),[()=>te("All Filters")]),w(g,_)},$$slots:{default:!0}})};V(f,b=>{a()&&b(h)})}var m=I(f,2);{var y=b=>{var g=du(),S=k(g);nu(S,{get filter(){return e.filter},get onchange(){return i()}}),Le(3,g,()=>Ca,()=>({x:5,duration:100})),w(b,g)};V(m,b=>{r()&&b(y)})}B(()=>d=be(s,1,"filter svelte-11dg01g",null,d,{limit:a()})),w(t,s),ae()}var vu=C(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function fu(t){var e=vu();w(t,e)}var hu=C('<div class="filter svelte-qc99of"><!></div>'),gu=C("<div><!></div>"),mu=C("<!> <!>",1),yu=C("<p>Something went wrong</p>"),bu=C('<!> <div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function wu(t,e){ie(e,!0);const i=O(e,"searchQuery",3,""),a=Be({});let r=G(Be([])),n=G(1),l=null,c=0,s=G(Be(m())),d=G(0);const p=F(()=>o(d)>500),u=F(()=>o(d)>1400?8:o(d)>900?6:o(d)>600?4:3),f=F(()=>o(p)?Sp:Bo),h=F(()=>o(p)?Ep:Ip);Ke(()=>{(i()||c!=0)&&y(i())});async function m(){c+=1;const T=c,x={page_size:24,page:o(n)};i()&&(x.search=i()),Object.entries(a).forEach(([U,{type:Z,value:W}])=>{if(Z==="string")x[U]=W;else if(Z==="array")x[U]=W.join(",");else if(Z==="range"){const[N,K]=W;x[U+"_min"]=N,x[U+"_max"]=K}});const R=await wn(x)||{next:null,previous:null,results:[]};return T===c&&q(r,[...o(r),...R.results],!0),R}async function y(T){l&&clearTimeout(l),l=setTimeout(()=>{g(),q(s,m(),!0),T&&(ce(se.ExploreSearch,null,{query:T}),kt("pixels")&&cr(Ea.SearchQuery,{query:T}))},100)}function b(){g(),q(s,m(),!0)}function g(){q(n,1),q(r,[],!0)}function S(){nc(n),q(s,m(),!0),ce(se.ExploreShowMore,null,{page:o(n)})}function _(T,x){vi({event:T,data:x}),ce(se.ExploreTitleClick,x)}var P=bu(),M=Q(P);$i(M,()=>o(p),T=>{var x=hu(),R=k(x);{let U=F(()=>!o(p)),Z=F(()=>!i());uu(R,{get filter(){return a},get limit(){return o(U)},onchange:b,get showSorting(){return o(Z)}})}w(T,x)});var z=I(M,2);let A,H;var D=k(z);Pe(D,17,()=>o(r),Ie,(T,x)=>{var R=fe(),U=Q(R);$i(U,()=>o(x).sid,Z=>{var W=fe(),N=Q(W);Zr(N,()=>o(f),(K,X)=>{X(K,{get title(){return o(x)},onclick:J=>_(J,o(x))})}),w(Z,W)}),w(T,R)});var j=I(D,2);Za(j,()=>o(s),T=>{var x=fe(),R=Q(x);Pe(R,16,()=>({length:24}),Ie,(U,Z)=>{var W=fe(),N=Q(W);Zr(N,()=>o(h),(K,X)=>{X(K,{})}),w(U,W)}),w(T,x)},void 0,T=>{});var E=I(z,2);Za(E,()=>o(s),null,(T,x)=>{var R=F(()=>{var{next:J}=o(x);return{next:J}}),U=F(()=>o(R).next),Z=mu(),W=Q(Z);{var N=J=>{var le=gu();let oe;var ke=k(le);Ii(ke,{size:"large",onclick:S,children:(Ce,de)=>{var me=Xt();B(ge=>Y(me,ge),[()=>te("Show More")]),w(Ce,me)},$$slots:{default:!0}}),B(()=>oe=be(le,1,"show-more svelte-qc99of",null,oe,{grid:o(p)})),w(J,le)};V(W,J=>{o(U)&&J(N)})}var K=I(W,2);{var X=J=>{fu(J)};V(K,J=>{var le;!((le=o(r))!=null&&le.length)&&o(n)===1&&J(X)})}w(T,Z)},T=>{var x=yu();w(T,x)}),B(()=>{A=be(z,1,"titles svelte-qc99of",null,A,{grid:o(p)}),H=Ve(z,"",H,{"--grid-columns":o(u)})}),xt(z,"clientWidth",T=>q(d,T)),w(t,P),ae()}var _u=nt('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function xu(t){var e=_u();w(t,e)}var ku=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Su(t,e){ie(e,!0);let i=G("");var a=ku(),r=k(a),n=k(r);xu(n);var l=I(r,2);l.__input=()=>e.oninput(o(i)),B(c=>ee(l,"placeholder",c),[()=>te("Search Movies And Shows")]),Sa(l,()=>o(i),c=>q(i,c)),w(t,a),ae()}ue(["input"]);var Tu=C('<p class="description svelte-l2apr8"> </p>'),Eu=C('<div class="navigation svelte-l2apr8" role="navigation"></div>'),Pu=C('<div class="explore playpilot-styled-scrollbar svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <!></div></div> <!> <!> <!></div>');function Cu(t,e){ie(e,!0);let i=O(e,"navigate",3,()=>null),a=O(e,"searchQuery",15,""),r=null,n=G(null),l=G(0);Ke(()=>{var _;q(n,((_=r==null?void 0:r.closest(En))==null?void 0:_.style.height)||null,!0)}),ct(async()=>{var _;ce(se.ExplorePageView),(_=window.PlayPilotLinkInjections.ads)!=null&&_.length||(window.PlayPilotLinkInjections.ads=await zo())});var c=Pu();let s;var d=k(c),p=k(d),u=I(k(p),2),f=k(u);Nt(u,_=>qe==null?void 0:qe(_));var h=I(u,2);{var m=_=>{var P=Tu(),M=k(P);B(z=>Y(M,z),[()=>te("Streaming Guide Description")]),w(_,P)};V(h,_=>{aa()||_(m)})}var y=I(d,2);{var b=_=>{var P=Eu();Pe(P,21,()=>e.routes,Ie,(M,z)=>{{let A=F(()=>e.currentRoute.key===o(z).key);Ii(M,{variant:"border",size:"large",get active(){return o(A)},onclick:()=>i()(o(z)),children:(H,D)=>{var j=Xt();B(E=>Y(j,E),[()=>te(o(z).label)]),w(H,j)},$$slots:{default:!0}})}}),w(_,P)};V(y,_=>{aa()&&_(b)})}var g=I(y,2);Su(g,{oninput:_=>a(_)});var S=I(g,2);Fe(S,()=>e.children),tt(c,_=>r=_,()=>r),B(_=>{s=Ve(c,"",s,{height:o(n),"--playpilot-explore-width":`${o(l)??""}px`}),Y(f,_)},[()=>te("Streaming Guide")]),xt(c,"clientWidth",_=>q(l,_)),w(t,c),ae()}function Vo(t,e){ie(e,!0);const i=[{key:"results",label:te("Explore"),component:wu}];aa()&&i.unshift({key:"home",label:te("Home"),component:dp});let a=G(Be(i[0])),r=G("");const n=F(()=>o(a).component);Ke(()=>{o(r)&&q(a,i.find(c=>c.key==="results"),!0)});function l(c){q(a,c,!0),ce(se.ExploreNavigate,null,{route:c.key})}Cu(t,{get routes(){return i},get currentRoute(){return o(a)},navigate:l,get searchQuery(){return o(r)},set searchQuery(c){q(r,c,!0)},children:(c,s)=>{var d=fe(),p=Q(d);Zr(p,()=>o(n),(u,f)=>{f(u,{get searchQuery(){return o(r)}})}),w(c,d)},$$slots:{default:!0}}),ae()}const En="[data-playpilot-explore]",zu="[data-playpilot-pre-consent-explore]",Ho="playpilot-explore-custom-style";let dr=null;function pr(){var e;const t=document.querySelector(En);t&&(ur(),(e=document.querySelector(zu))==null||e.remove(),t.innerHTML="",dr=Rt(Vo,{target:t}),ju())}function ur(){var t;dr&&(Qi(dr),dr=null,(t=document.querySelector("#"+Ho))==null||t.remove())}function Iu(){var s;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:r}=t;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),c=l.nodeName==="A"?l:l.querySelector("a");return c.classList.remove("active"),c.innerText=i||"Streaming Guide",c.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function ju(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Ho,document.body.appendChild(e)}function aa(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Pn(t,e){ie(e,!0);const i=O(e,"size",3,"32px"),a=O(e,"onclick",3,()=>null),r=po(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=fe(),l=Q(n);Zl(l,()=>e.href?"a":"button",!1,(c,s)=>{ao(c,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[ta]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=fe(),p=Q(d);Fe(p,()=>e.children??ut),w(s,d)}),w(t,n),ae()}var Au=C("<div></div>");function Lu(t,e){ie(e,!0);let i=O(e,"threshold",3,100),a=O(e,"isDragging",15,!1),r=O(e,"passedThreshold",15,!1),n=O(e,"onpassed",3,()=>null),l=G(0),c=G(0),s=G(null),d=G(!1);const p=F(()=>Math.max(o(c)-o(l),0));Ke(()=>{r(o(p)>i())});function u(g){if(g){a(!0),q(d,!0),q(l,g.touches[0].pageY,!0);for(const S of e.targets)S.style.transitionDuration="0ms"}}function f(g){if(g&&a()){g.preventDefault(),q(c,g.touches[0].pageY,!0),o(s).style.transform=`translateY(${o(p)}px)`;for(const S of e.targets)S.style.top=`${o(p)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(s).removeAttribute("style");for(const g of e.targets)g.style.removeProperty("transition"),requestAnimationFrame(()=>g.style.top="0px")}q(l,0),q(c,0)}}var m={start:u,move:f,end:h},y=Au();xe("touchmove",Ae,f,void 0,!0),xe("touchend",Ae,h);let b;return y.__touchstart=u,tt(y,g=>q(s,g),()=>o(s)),B(()=>b=be(y,1,"handle svelte-1xqgdsn",null,b,{dragging:a(),dragged:o(d)})),w(t,y),ae(m)}ue(["touchstart"]);var Mu=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Du=["difference","intersection","symmetricDifference","union"],Uo=!1;const kr=class kr extends Set{constructor(i){super();pe(this,pa);pe(this,da,new Map);pe(this,Tt,G(0));pe(this,bi,G(0));pe(this,xr,Qt||-1);if(i){for(var a of i)super.add(a);L(this,bi).v=super.size}Uo||ze(this,pa,ps).call(this)}has(i){var a=super.has(i),r=L(this,da),n=r.get(i);if(n===void 0){if(!a)return o(L(this,Tt)),!1;n=ze(this,pa,ds).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),q(L(this,bi),super.size),si(L(this,Tt))),this}delete(i){var a=super.delete(i),r=L(this,da),n=r.get(i);return n!==void 0&&(r.delete(i),q(n,!1)),a&&(q(L(this,bi),super.size),si(L(this,Tt))),a}clear(){if(super.size!==0){super.clear();var i=L(this,da);for(var a of i.values())q(a,!1);i.clear(),q(L(this,bi),0),si(L(this,Tt))}}keys(){return this.values()}values(){return o(L(this,Tt)),super.values()}entries(){return o(L(this,Tt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(L(this,bi))}};da=new WeakMap,Tt=new WeakMap,bi=new WeakMap,xr=new WeakMap,pa=new WeakSet,ds=function(i){return Qt===L(this,xr)?G(i):Lt(i)},ps=function(){Uo=!0;var i=kr.prototype,a=Set.prototype;for(const r of Mu)i[r]=function(...n){return o(L(this,Tt)),a[r].apply(this,n)};for(const r of Du)i[r]=function(...n){o(L(this,Tt));var l=a[r].apply(this,n);return new kr(l)}};let vr=kr;class qu{constructor(e,i){pe(this,Da);pe(this,qa);ne(this,Da,e),ne(this,qa,vl(i))}get current(){return L(this,qa).call(this),L(this,Da).call(this)}}Da=new WeakMap,qa=new WeakMap;const Ou=/\(.+\)/,Ru=new Set(["all","print","screen","and","or","not","only"]);class Nu extends qu{constructor(e,i){let a=Ou.test(e)||e.split(/[\s,]+/).some(n=>Ru.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>zc(r,"change",n))}}const Cn=new Nu("(prefers-reduced-motion: reduce)");function zn(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(n){if(n.key!=="Tab")return;const l=document.activeElement;if(!l)return;const c=e();if(!c.length)return;const[s]=c,d=c[c.length-1];n.shiftKey&&l===s&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(s.focus(),n.preventDefault())}const a=document.activeElement,[r]=e();return a!=null&&a.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function Bu(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Fu=C("<div><!></div>"),Vu=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Hu=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Uu=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Wu=C("<div><!></div>"),Gu=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Ku=C('<div data-testid="modal"><!> <!> <!> <!></div>');function fr(t,e){ie(e,!0);const i=N=>{var K=Fu(),X=k(K);Pn(X,{onclick:P,"aria-label":"Close",children:(J,le)=>{_n(J,{})},$$slots:{default:!0}}),tt(K,J=>q(m,J),()=>o(m)),B(()=>be(K,1,`close ${l()??""}`,"svelte-1rbidhv")),Le(7,K,()=>_),w(N,K)},a=O(e,"tall",3,!1),r=O(e,"wide",3,!1),n=O(e,"blur",3,!1),l=O(e,"closeButtonStyle",3,"shadow"),c=O(e,"initialScrollPosition",3,0),s=O(e,"onscroll",3,()=>null),d=O(e,"onclose",3,()=>null),p="#playpilot";let u=G(0),f=G(null),h=G(null),m=G(null),y=G(0),b=G(!1);const g=F(()=>o(u)<Ci);Ke(()=>{var N;o(u)&&q(y,((N=o(h))==null?void 0:N.offsetTop)||0,!0)}),Ke(()=>{setTimeout(()=>{var N;return q(y,((N=o(h))==null?void 0:N.offsetTop)||0,!0)})}),Dr("scope","modal"),ct(()=>{const N=Bu();return N.classList.add("playpilot-modal-open"),q(b,!!Qo()),o(b)||window.history.pushState({modal:!0},"",p),requestAnimationFrame(S),()=>{var K;N.classList.remove("playpilot-modal-open"),!Qo()&&((K=history.state)!=null&&K.modal)&&history.back()}});function S(){const N=window.innerWidth>Ci?o(f):o(h);N==null||N.scrollTo(0,c())}function _(N){return Cn.current?ti(N,{duration:0}):o(g)?Ca(N,{duration:250,y:window.innerHeight,opacity:1}):ia(N,{duration:150,start:.85})}function P(){d()(),Mn()}function M(N){N.target===o(f)&&P()}var z=Ku();xe("keydown",Ae,({key:N})=>{N==="Escape"&&P()}),xe("hashchange",Ae,P);let A;z.__click=M;let H;var D=k(z);{var j=N=>{var K=Vu(),X=k(K);Fe(X,()=>e.prepend),Le(7,K,()=>_),w(N,K)};V(D,N=>{e.prepend&&N(j)})}var E=I(D,2);{var T=N=>{var K=Hu(),X=k(K);Fe(X,()=>e.bubble),Le(7,K,()=>_),w(N,K)};V(E,N=>{e.bubble&&N(T)})}var x=I(E,2);{var R=N=>{var K=Uu(),X=k(K);{var J=le=>{{let oe=F(()=>[o(h),o(m)]);Lu(le,{get targets(){return o(oe)},onpassed:P})}};V(X,le=>{o(h)&&o(m)&&le(J)})}Le(7,K,()=>_),w(N,K)};V(x,N=>{o(g)&&N(R)})}var U=I(x,2);{var Z=N=>{var K=fe(),X=Q(K);Fe(X,()=>e.dialog),w(N,K)},W=N=>{var K=Gu(),X=Q(K),J=k(X);{var le=ge=>{var je=Wu(),Xe=k(je);Pn(Xe,{onclick:()=>$f(),"aria-label":"Back",children:(Me,ve)=>{Bt(Me,{direction:"left"})},$$slots:{default:!0}}),B(()=>be(je,1,`close back ${l()??""}`,"svelte-1rbidhv")),w(ge,je)};V(J,ge=>{o(b)&&ge(le)})}var oe=I(J,2);Fe(oe,()=>e.children??ut);var ke=I(oe,2);{var Ce=ge=>{i(ge)};V(ke,ge=>{o(g)||ge(Ce)})}tt(X,ge=>q(h,ge),()=>o(h));var de=I(X,2);{var me=ge=>{i(ge)};V(de,ge=>{o(g)&&ge(me)})}xe("scroll",X,function(...ge){var je;(je=s())==null||je.apply(this,ge)}),Le(7,X,()=>_),w(N,K)};V(U,N=>{e.dialog?N(Z):N(W,!1)})}tt(z,N=>q(f,N),()=>o(f)),Nt(z,N=>zn==null?void 0:zn(N)),B(()=>{A=be(z,1,"modal svelte-1rbidhv",null,A,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),H=Ve(z,"",H,{"--dialog-offset":`${o(y)??""}px`})}),rn("innerWidth",N=>q(u,N,!0)),Le(5,z,()=>ti,()=>({duration:150})),Le(6,z,()=>ti,()=>({duration:150,delay:100})),w(t,z),ae()}ue(["click"]);var Yu=C('<div class="genre svelte-1mphbln"> </div>'),Zu=C('<button class="genre expand svelte-1mphbln"> </button>'),Ju=C("<!> <!>",1);function Qu(t,e){ie(e,!0);let i=G(!1);const a=F(()=>o(i)?e.genres:[e.genres[0]]);var r=Ju(),n=Q(r);Pe(n,17,()=>o(a),Ie,(s,d)=>{const p=F(()=>{var m;return(m=mn.find(y=>y.slug===o(d)))==null?void 0:m.name});var u=fe(),f=Q(u);{var h=m=>{var y=Yu(),b=k(y);Ja(y,()=>Co()?Oo(Ea.GenreInterest,{genre:o(p)}):null),B(g=>Y(b,g),[()=>te(o(p))]),w(m,y)};V(f,m=>{o(p)&&m(h)})}w(s,u)});var l=I(n,2);{var c=s=>{var d=Zu();d.__click=()=>q(i,!0);var p=k(d);B(()=>Y(p,`+${e.genres.length-1}`)),w(s,d)};V(l,s=>{!o(i)&&e.genres.length>1&&s(c)})}w(t,r),ae()}ue(["click"]);var Xu=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),$u=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function In(t,e){const i=O(e,"small",3,!1);let a=G(!1);function r(p){p.preventDefault(),p.stopPropagation(),q(a,!o(a))}var n=$u();n.__click=r;var l=k(n);let c;var s=I(l,2);{var d=p=>{var u=Xu(),f=k(u);B(()=>Y(f,e.disclaimer)),Le(3,u,()=>ti,()=>({duration:50})),w(p,u)};V(s,p=>{o(a)&&p(d)})}B(()=>c=be(l,1,"disclaimer svelte-1ldthr7",null,c,{small:i()})),w(t,n)}ue(["click"]);var ev=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),tv=C('<span class="cta svelte-13ka2ap"> </span>'),iv=C('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Wo(t,e){ie(e,!0);const i=O(e,"disclaimer",3,""),a=O(e,"hideCategory",3,!1),r=O(e,"onclick",3,()=>null),n=F(()=>e.playlink.name),l=F(()=>e.playlink.url),c=F(()=>e.playlink.logo_url),s=F(()=>e.playlink.highlighted),d=F(()=>e.playlink.cta_text),p=F(()=>e.playlink.action_text),u=F(()=>e.playlink.pixels),f=F(()=>e.playlink.extra_info.category),h=F(()=>Co()&&!o(s)),m={AVOD:te("Stream"),SVOD:te("Stream"),BUY:te("Buy"),RENT:te("Rent"),TVOD:te("Rent Or Buy")};let y=G(0);var b=fe(),g=Q(b);Zl(g,()=>{var S,_;return!((_=(S=window.PlayPilotLinkInjections)==null?void 0:S.config)!=null&&_.require_affiliate_consent)||kt("affiliate")?"a":"span"},!1,(S,_)=>{Ja(S,()=>o(h)?Oo(Ea.ProviderInterest,{provider:e.playlink.slug}):null),Ja(S,()=>o(h)?up(Ea.ProviderClick,{provider:e.playlink.slug}):null),ao(S,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[ea]:{highlighted:o(s),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var P=iv(),M=Q(P);let z;var A=k(M),H=I(A,2),D=k(H),j=I(H,2);{var E=X=>{var J=ev(),le=k(J);B(oe=>Y(le,oe),[()=>m[o(f)]||te("Stream")]),w(X,J)};V(j,X=>{a()||X(E)})}var T=I(j,2);{var x=X=>{var J=tv(),le=k(J);B(()=>Y(le,o(d))),w(X,J)};V(T,X=>{o(d)&&X(x)})}var R=I(T,2),U=k(R),Z=I(R,2);{var W=X=>{In(X,{get disclaimer(){return i()},small:!0})};V(Z,X=>{i()&&X(W)})}var N=I(M,2);{var K=X=>{Tn(X,{get pixels(){return o(u)}})};V(N,X=>{var J;(J=o(u))!=null&&J.length&&X(K)})}B((X,J)=>{z=Ve(M,"",z,{"--action-width":o(y)?`${o(y)}px`:null}),ee(A,"src",X),Y(D,o(n)),Y(U,J)},[()=>nr(o(c)),()=>o(p)||te("Watch")]),xt(R,"clientWidth",X=>q(y,X)),w(_,P)}),w(t,b),ae()}var av=C('<div class="disclaimer svelte-1fykz2q" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1fykz2q">PlayPilot.com</a></div>'),rv=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),nv=C('<div class="heading category svelte-1fykz2q"> </div>'),lv=C("<!> <!>",1),ov=C("<!> <div></div>",1),sv=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function cv(t,e){var P,M;ie(e,!0);const i=Mr("scope")==="modal",a=Pa("card"),r=!!((M=(P=window.PlayPilotLinkInjections)==null?void 0:P.config)!=null&&M.categorize_playlinks);let n=G(0);const l=F(()=>Ro(e.playlinks)),c=F(()=>u(e.playlinks)),s=F(()=>r?f(o(c)):[["",o(l)]]),d=F(()=>o(n)<500||!!a||o(l).length===1);function p(z){ce(i?se.TitleModalPlaylinkClick:se.TitlePopoverPlaylinkClick,e.title,{playlink:z})}function u(z){const A={};for(const H of z){const{category:D}=H.extra_info;D in A||(A[D]=[]),A[D].push(H)}return A}function f(z){const A=["AVOD","SVOD","RENT","BUY"],H=[];for(const j of A)z[j]&&H.push([j,z[j]]);const D=[];for(const j of Object.values(z))for(const E of j)A.includes(E.extra_info.category)||D.push(E);return[...H,["Other",D]]}var h=sv(),m=Q(h),y=k(m);Nt(m,(z,A)=>qe==null?void 0:qe(z,A),()=>3);var b=I(m,2);{var g=z=>{var A=av(),H=k(A);B(D=>Y(H,`${D??""} `),[()=>{var D,j;return((j=(D=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:D.config)==null?void 0:j.playlinks_disclaimer_text)||te("Commission Disclaimer")}]),w(z,A)},S=z=>{var A=rv(),H=k(A);B(D=>Y(H,D),[()=>te("Title Unavailable")]),w(z,A)};V(b,z=>{o(l).length?z(g):z(S,!1)})}var _=I(b,2);Pe(_,17,()=>o(s),Ie,(z,A,H,D)=>{var j=F(()=>ua(o(A),2));let E=()=>o(j)[0],T=()=>o(j)[1];var x=ov(),R=Q(x);{var U=N=>{var K=nv(),X=k(K);Nt(K,(J,le)=>qe==null?void 0:qe(J,le),()=>4),B(J=>Y(X,J),[()=>te(`Category: ${E()}`)]),w(N,K)};V(R,N=>{E()&&T().length&&N(U)})}var Z=I(R,2);let W;Pe(Z,21,T,Ie,(N,K,X)=>{var J=lv(),le=Q(J);Wo(le,{get playlink(){return o(K)},onclick:()=>p(o(K).name)});var oe=I(le,2);{var ke=Ce=>{{let de=F(()=>Id(a)),me=F(()=>a.disclaimer||"");Wo(Ce,{get playlink(){return o(de)},onclick:()=>ce(se.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(me)}})}};V(oe,Ce=>{a&&X===0&&Ce(ke)})}w(N,J)}),B(()=>{W=be(Z,1,"playlinks svelte-1fykz2q",null,W,{list:o(d)}),ee(Z,"data-testid",`category-${E()??""}`)}),xt(Z,"clientWidth",N=>q(n,N)),w(z,x)}),B(z=>Y(y,z),[()=>te("Where To Stream Online")]),w(t,h),ae()}var dv=C('<button class="show-more svelte-7itcht">Show more</button>'),pv=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),uv=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function vv(t,e){ie(e,!0);const i=O(e,"blurb",3,""),a=O(e,"limit",3,200),r=O(e,"onclick",3,()=>null);let n=G(!1);const l=F(()=>e.text.slice(0,a()));function c(){q(n,!0),r()()}var s=uv(),d=k(s),p=k(d),u=I(p);{var f=g=>{var S=Xt("...");w(g,S)};V(u,g=>{!o(n)&&e.text.length>a()&&g(f)})}var h=I(u,2);{var m=g=>{var S=dv();S.__click=()=>c(),w(g,S)};V(h,g=>{!o(n)&&(e.text.length>a()||i())&&g(m)})}var y=I(d,2);{var b=g=>{var S=pv(),_=k(S);B(()=>Y(_,i())),w(g,S)};V(y,g=>{o(n)&&g(b)})}B(()=>Y(p,o(n)?e.text:o(l))),w(t,s),ae()}ue(["click"]);async function fv(t,{page:e=1}={}){const i={language:Ta(),region:await bn(),include_count:"false",participant_sid:t.sid,page:e};return(await ei(`/titles/browse?api-token=${pi()}&${fn(i)}`)).results}async function hv(t){return(await ei(`/participants/browse?api-token=${pi()}&title_sid=${t.sid}`)).results}var gv=C('<div class="character truncate svelte-zy7e3f"> </div>'),mv=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),yv=C('<div class="participant svelte-zy7e3f"></div>');function bv(t,e){ie(e,!0);function i(l){const c=ui(pn(go(dn()))),s={};for(const p of l){const u=ir(c,ui(p.name));s[p.sid]={participant:p,count:u}}return Object.values(s).sort((p,u)=>u.count-p.count).map(({participant:p})=>p)}function a(l,c){vi({event:l,type:"participant",data:c}),ce(se.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:c.name})}var r=fe(),n=Q(r);Za(n,()=>hv(e.title),l=>{{let c=F(()=>te("Cast"));sr(l,{get heading(){return o(c)},children:(s,d)=>{var p=fe(),u=Q(p);Pe(u,16,()=>({length:5}),Ie,(f,h)=>{var m=yv();w(f,m)}),w(s,p)},$$slots:{default:!0}})}},(l,c)=>{var s=fe(),d=Q(s);{var p=u=>{{let f=F(()=>te("Cast"));sr(u,{get heading(){return o(f)},children:(h,m)=>{var y=fe(),b=Q(y);Pe(b,17,()=>i(o(c)).slice(0,15),Ie,(g,S)=>{var _=mv();_.__click=H=>a(H,o(S));var P=k(_),M=k(P),z=I(P,2);{var A=H=>{var D=gv(),j=k(D);B(()=>Y(j,o(S).character)),w(H,D)};V(z,H=>{o(S).character&&H(A)})}B(()=>Y(M,o(S).name)),w(g,_)}),w(h,y)},$$slots:{default:!0}})}};V(d,u=>{var f;(f=o(c))!=null&&f.length&&u(p)})}w(l,s)}),w(t,r),ae()}ue(["click"]);function wv(t,e){ie(e,!0);const i=Ld(e.title);{let a=F(()=>te("Similar Titles"));qo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>ce(se.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ae()}function _v(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var xv=nt('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function kv(t){var e=xv();w(t,e)}var Sv=nt('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function Tv(t){var e=Sv();w(t,e)}var Ev=nt('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function Pv(t){var e=Ev();w(t,e)}var Cv=nt('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function zv(t){var e=Cv();w(t,e)}var Iv=C('<button class="svelte-827qd7"><!></button>'),jv=C('<div class="content svelte-827qd7"><!></div>'),Av=C("<div><!> <!></div>");function Lv(t,e){const i=O(e,"label",3,""),a=O(e,"align",3,"right");let r=G(!1),n=G(null);function l(h){var y;h.currentTarget===((y=o(n))==null?void 0:y.querySelector("button"))&&h.stopPropagation(),q(r,!o(r))}var c=Av();xe("click",Ae,()=>q(r,!1));var s=k(c);{var d=h=>{var m=fe(),y=Q(m);Fe(y,()=>e.button,()=>({toggle:l})),w(h,m)},p=h=>{var m=Iv();m.__click=l;var y=k(m);zv(y),B(()=>{ee(m,"aria-label",i()),ee(m,"aria-expanded",o(r))}),w(h,m)};V(s,h=>{e.button?h(d):h(p,!1)})}var u=I(s,2);{var f=h=>{var m=jv(),y=k(m);Fe(y,()=>e.children),Le(1,m,()=>ia,()=>({duration:50,start:.85})),w(h,m)};V(u,h=>{o(r)&&h(f)})}tt(c,h=>q(n,h),()=>o(n)),B(()=>be(c,1,`context-menu ${a()??""}`,"svelte-827qd7")),w(t,c)}ue(["click"]);var Mv=C("<!> ",1),Dv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function qv(t,e){ie(e,!0);let i=O(e,"url",7);const r=window.innerWidth<Ci&&typeof navigator.share<"u";ct(()=>{i(i()+"?utm_source=tpi")});function n(s,d){if(!r){d(s);return}ce(se.ShareTitle,null,{title:e.title,url:zi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){ce(se.ShareTitle,null,{title:e.title,url:zi(),method:"copy"}),_v(i())}function c(){ce(se.ShareTitle,null,{title:e.title,url:zi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Lv(t,{button:(d,p)=>{let u=()=>p==null?void 0:p().toggle;Ii(d,{onclick:f=>n(f,u()),children:(f,h)=>{var m=Mv(),y=Q(m);kv(y);var b=I(y);B(g=>Y(b,` ${g??""}`),[()=>te("Share")]),w(f,m)},$$slots:{default:!0}})},children:(d,p)=>{var u=Dv(),f=Q(u);f.__click=l;var h=k(f);Tv(h);var m=I(h),y=I(f,2);y.__click=c;var b=k(y);Pv(b);var g=I(b);B((S,_)=>{Y(m,` ${S??""}`),Y(g,` ${_??""}`)},[()=>te("Copy URL"),()=>te("Email")]),w(d,u)},$$slots:{button:!0,default:!0}}),ae()}ue(["click"]);var Ov=nt('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Rv(t){var e=Ov();w(t,e)}var Nv=C("<!> ",1);function Bv(t,e){ie(e,!0);function i(){Fd(e.title),ce(se.TrailerClick,e.title)}Ii(t,{onclick:i,children:(a,r)=>{var n=Nv(),l=Q(n);Rv(l);var c=I(l);B(s=>Y(c,` ${s??""}`),[()=>te("Watch Trailer")]),w(a,n)},$$slots:{default:!0}}),ae()}var Fv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Vv(t,e){const i=O(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=F(()=>Math.max(o(a),o(r)));var l=Fv(),c=k(l);kn(c,{get embeddable_url(){return i()},muted:!0,loop:!0}),B(()=>Ve(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),xt(l,"clientWidth",s=>q(a,s)),xt(l,"clientHeight",s=>q(r,s)),w(t,l)}var Hv=C("<div> </div>"),Uv=C('<img alt=""/>'),Wv=C('<div><div class="header svelte-16ajinh"><div><!></div> <div id="title"> </div> <div class="info svelte-16ajinh"><div class="imdb svelte-16ajinh"><!> </div> <!> <div> </div> <div class="capitalize svelte-16ajinh"> </div> <!></div> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main"><!> <!> <!> <!></div></div> <div><!></div>',1);function jn(t,e){var Me;ie(e,!0);const i=O(e,"small",3,!1),a=O(e,"useVideoBackground",3,!0),r=!!((Me=window.PlayPilotLinkInjections)!=null&&Me.no_affiliate);Dr("title",e.title);const n=F(()=>(!i()||r)&&e.title.description);let l=G(!1),c=G(!1),s=G(!1),d=G(!1);Ke(()=>{a()&&e.title.embeddable_url&&Lo(xn(e.title.embeddable_url)).then(ve=>{q(d,ve,!0)})});var p=Wv(),u=Q(p);let f;var h=k(u),m=k(h);let y;var b=k(m);lr(b,{get title(){return e.title},onload:()=>q(l,!0),lazy:!1});var g=I(m,2);let S;var _=k(g);Nt(g,(ve,Oe)=>qe==null?void 0:qe(ve,Oe),()=>2);var P=I(g,2),M=k(P),z=k(M);Sn(z,{});var A=I(z),H=I(M,2);Qu(H,{get genres(){return e.title.genres}});var D=I(H,2),j=k(D),E=I(D,2),T=k(E),x=I(E,2);{var R=ve=>{var Oe=Hv(),yt=k(Oe);B(ri=>Y(yt,`${e.title.length??""} ${ri??""}`),[()=>te("Minutes")]),w(ve,Oe)};V(x,ve=>{!i()&&e.title.length&&ve(R)})}var U=I(P,2),Z=k(U);{var W=ve=>{Bv(ve,{get title(){return e.title}})};V(Z,ve=>{e.title.embeddable_url&&ve(W)})}var N=I(Z,2);{let ve=F(()=>Do(e.title));qv(N,{get title(){return e.title.title},get url(){return o(ve)}})}var K=I(h,2),X=k(K);{var J=ve=>{vv(ve,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>ce(se.ExpandTitleDescription,e.title)})};V(X,ve=>{o(n)&&ve(J)})}var le=I(X,2);{var oe=ve=>{cv(ve,{get playlinks(){return e.title.providers},get title(){return e.title}})};V(le,ve=>{r||ve(oe)})}var ke=I(le,2);bv(ke,{get title(){return e.title}});var Ce=I(ke,2);wv(Ce,{get title(){return e.title}});var de=I(u,2);let me;var ge=k(de);{var je=ve=>{Vv(ve,{get embeddable_url(){return e.title.embeddable_url}})},Xe=ve=>{var Oe=fe(),yt=Q(Oe);$i(yt,()=>o(s),ri=>{var Et=Uv();let $;B(re=>{ee(Et,"src",re),$=be(Et,1,"svelte-16ajinh",null,$,{loaded:o(c),blur:o(s)})},[()=>nr(o(s)?e.title.standing_poster:e.title.medium_poster)]),xe("load",Et,()=>q(c,!0)),xe("error",Et,()=>q(s,!0)),w(ri,Et)}),w(ve,Oe)};V(ge,ve=>{a()&&o(d)?ve(je):ve(Xe,!1)})}B(ve=>{f=be(u,1,"content svelte-16ajinh",null,f,{small:i()}),y=be(m,1,"poster svelte-16ajinh",null,y,{loaded:o(l)}),S=be(g,1,"heading svelte-16ajinh",null,S,{truncate:i()}),Y(_,e.title.title),Y(A,` ${e.title.imdb_score??""}`),Y(j,e.title.year),Y(T,ve),me=be(de,1,"background svelte-16ajinh",null,me,{small:i()})},[()=>te(`Type: ${e.title.type}`)]),w(t,p),ae()}function ra(t,e){const{onclick:i}=e;function a(r){return r.button!==1?null:(i(r),r)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const Go={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},An={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Gv({key:t}){var a,r,n;if(!kt("tracking"))return 0;const e=(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:r[t];if(e!==void 0)return e;(n=window.PlayPilotLinkInjections)!=null&&n.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function Ko(t){const e=Gv(t);return Math.floor(e*t.numberOfVariants)}function Kv(t){var i;const e=Ko(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function Yv(t,e=1){return kt("tracking")?Ko(t)===e:!1}function Zv(t){const e=Kv(t);ce(se.SplitTestView,null,{key:t.key,variant:e})}var Jv=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Qv=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Xv=C('<button class="button svelte-1mt6g1y"> </button>'),$v=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),ef=C('<div class="background svelte-1mt6g1y"></div>'),tf=C("<!> <!>",1),af=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Yo(t,e){ie(e,!0),ce(se.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),Zv(An.TopScrollFormat);const i=F(()=>e.campaign.disclaimer),a=F(()=>e.campaign.content),r=F(()=>e.campaign.cta),n=F(()=>o(a).format),l=F(()=>o(a).header),c=F(()=>o(a).header_logo),s=F(()=>o(a).image_uuid),d=F(()=>o(r).header),p=F(()=>o(r).url),u=F(()=>o(n)==="large"),f=F(()=>Ao(o(s),Go.TopScrollBackground)),h=F(()=>Ao(o(s),Go.TopScrollContent));let m=G(0);function y(){ce(se.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var b=af();b.__click=y;let g,S;var _=k(b),P=k(_);{var M=D=>{var j=Jv();B(()=>{ee(j,"src",o(h)),ee(j,"alt",o(l))}),w(D,j)},z=D=>{var j=$v(),E=Q(j);{var T=W=>{var N=Qv();B(()=>ee(N,"src",o(c))),w(W,N)};V(E,W=>{o(c)&&W(T)})}var x=I(E,2),R=k(x),U=I(x,2);{var Z=W=>{var N=Xv(),K=k(N);B(()=>Y(K,o(d))),w(W,N)};V(U,W=>{o(d)&&W(Z)})}B(()=>Y(R,o(l))),w(D,j)};V(P,D=>{o(u)?D(M):D(z,!1)})}var A=I(_,2);{var H=D=>{var j=tf(),E=Q(j);{var T=U=>{var Z=ef();let W;B(()=>W=Ve(Z,"",W,{"--background":`url('${o(f)??""}')`})),w(U,Z)};V(E,U=>{o(s)&&U(T)})}var x=I(E,2);{var R=U=>{In(U,{get disclaimer(){return o(i)}})};V(x,U=>{o(i)&&U(R)})}w(D,j)};V(A,D=>{o(u)||D(H)})}Nt(b,(D,j)=>ra==null?void 0:ra(D,j),()=>({onclick:y})),Ei(()=>xt(b,"clientWidth",D=>q(m,D))),B(()=>{ee(b,"href",o(p)),g=be(b,1,"top-scroll svelte-1mt6g1y",null,g,{simple:o(u)}),S=Ve(b,"",S,{"--width":`${o(m)??""}px`})}),w(t,b),ae()}ue(["click"]);var rf=C('<div class="content svelte-r7ubzi"><!></div>'),nf=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function lf(t,e){let i=G(!1);var a=nf();a.__touchstart=()=>q(i,!o(i));var r=k(a);Fe(r,()=>e.children);var n=I(r,2);{var l=c=>{var s=rf(),d=k(s);Fe(d,()=>e.content),Le(1,s,()=>ti,()=>({duration:100})),w(c,s)};V(n,c=>{o(i)&&c(l)})}xe("mouseenter",a,()=>q(i,!0)),xe("mouseleave",a,()=>q(i,!1)),w(t,a)}ue(["touchstart"]);var of=C('<div class="info svelte-qcpiki"><!></div>'),sf=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),cf=C('<span class="name svelte-qcpiki"> </span>'),df=C('<div class="subheader svelte-qcpiki"> </div>'),pf=C('<div class="action svelte-qcpiki"> </div>'),uf=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),vf=C('<img class="background svelte-qcpiki" alt=""/>'),ff=C('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),hf=C('<div class="disclaimer svelte-qcpiki"><!></div>'),gf=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Zo(t,e){ie(e,!0);const i=O(e,"compact",3,!1),a=F(()=>e.campaign.disclaimer),r=F(()=>e.campaign.content),n=F(()=>e.campaign.cta),l=F(()=>e.campaign.campaign_type),c=F(()=>o(r).header),s=F(()=>o(r).subheader),d=F(()=>o(r).header_logo),p=F(()=>o(r).image),u=F(()=>o(r).video),f=F(()=>o(n).header),h=F(()=>o(n).url),m=F(()=>o(n).subheader);let y=G(0);ce(se.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function b(){ce(se.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var g=gf();let S;g.__click=b;var _=k(g);{var P=T=>{var x=of(),R=k(x);{var U=W=>{lf(W,{content:K=>{var X=Xt();B(()=>Y(X,o(m))),w(K,X)},children:(K,X)=>{var J=Xt("Ad");w(K,J)},$$slots:{content:!0,default:!0}})},Z=W=>{var N=Xt();B(()=>Y(N,o(m))),w(W,N)};V(R,W=>{i()?W(U):W(Z,!1)})}w(T,x)};V(_,T=>{o(m)&&T(P)})}var M=I(_,2);{var z=T=>{var x=uf(),R=k(x);{var U=oe=>{var ke=sf();B(()=>ee(ke,"src",o(d))),w(oe,ke)};V(R,oe=>{o(d)&&oe(U)})}var Z=I(R,2),W=k(Z);{var N=oe=>{var ke=cf(),Ce=k(ke);B(()=>Y(Ce,o(c))),w(oe,ke)};V(W,oe=>{o(c)&&oe(N)})}var K=I(W,2);{var X=oe=>{var ke=df(),Ce=k(ke);B(()=>Y(Ce,o(s))),w(oe,ke)};V(K,oe=>{o(s)&&oe(X)})}var J=I(Z,2);{var le=oe=>{var ke=pf(),Ce=k(ke);B(()=>Y(Ce,o(f))),w(oe,ke)};V(J,oe=>{o(f)&&oe(le)})}xt(x,"clientHeight",oe=>q(y,oe)),w(T,x)};V(M,T=>{(o(d)||o(c)||o(s)||o(f))&&T(z)})}var A=I(M,2);{var H=T=>{var x=vf();B(()=>ee(x,"src",o(p))),w(T,x)},D=T=>{var x=fe(),R=Q(x);{var U=Z=>{var W=ff();W.muted=!0;var N=k(W);B(()=>ee(N,"src",o(u))),w(Z,W)};V(R,Z=>{o(l)==="video"&&o(u)&&Z(U)},!0)}w(T,x)};V(A,T=>{o(l)==="image"&&o(p)?T(H):T(D,!1)})}var j=I(A,2);{var E=T=>{var x=hf();let R;var U=k(x);In(U,{get disclaimer(){return o(a)}}),B(()=>R=Ve(x,"",R,{"--offset":`${o(y)??""}px`})),w(T,x)};V(j,T=>{o(a)&&T(E)})}Nt(g,(T,x)=>ra==null?void 0:ra(T,x),()=>({onclick:b})),B(()=>{ee(g,"href",o(h)),S=be(g,1,"display svelte-qcpiki",null,S,{compact:i()})}),w(t,g),ae()}ue(["click"]);var mf=C('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function yf(t,e){var s,d;ie(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",a=(d=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:d.explore_navigation_path;nn();var r=mf();r.__click=()=>ce(se.CardToExploreCta);var n=k(r);ee(n,"src",i);var l=I(n,4),c=k(l);Bt(c,{}),B(()=>ee(r,"href",a)),w(t,r),ae()}ue(["click"]);function bf(t,e){var f,h;ie(e,!0);const i=m=>{var y=fe(),b=Q(y);{var g=_=>{Yo(_,{get campaign(){return l}})},S=_=>{yf(_,{})};V(b,_=>{l?_(g):_(S,!1)})}w(m,y)},a=m=>{var y=fe(),b=Q(y);{var g=S=>{Zo(S,{get campaign(){return c}})};V(b,S=>{c&&S(g)})}w(m,y)},r=O(e,"initialScrollPosition",3,0),n=po(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=Pa("top_scroll"),c=Pa("card"),s=(h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||s&&!document.querySelector(En);let p=!1;ce(se.TitleModalView,e.title),ct(()=>{const m=Date.now();return()=>ce(se.TitleModalClose,e.title,{time_spent:Date.now()-m})});function u(){p||(ce(se.TitleModalScroll,e.title),p=!0)}{let m=F(()=>d?i:null),y=F(()=>c?a:null);fr(t,{onscroll:u,get initialScrollPosition(){return r()},get bubble(){return o(m)},get prepend(){return o(y)},tall:!0,children:(b,g)=>{jn(b,ln({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}ae()}var wf=C(" <strong> </strong>",1),_f=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),xf=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),kf=C('<button class="more svelte-ke01cs"> </button>'),Sf=C('<div class="header svelte-ke01cs"><div class="heading svelte-ke01cs" id="name"> </div> <!></div> <div class="content svelte-ke01cs"><div class="heading small svelte-ke01cs" id="credits"> </div> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function Tf(t,e){ie(e,!0);const i=F(()=>e.participant.name),a=F(()=>e.participant.birth_date),r=F(()=>e.participant.death_date),n=30;let l=G(Be([])),c=G(1),s=G(!0),d=G(!0);ct(u),kt("pixels")&&cr(Ea.ParticipantView,{participant:e.participant.name});function p(j){return new Date(j).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function u(){q(d,!0);try{const j=await fv(e.participant,{page:o(c)});q(l,[...o(l),...j],!0),q(s,(j==null?void 0:j.length)>=n)}catch{q(s,!1)}finally{q(d,!1),q(c,o(c)+1)}}var f=Sf(),h=Q(f),m=k(h),y=k(m);Nt(m,(j,E)=>qe==null?void 0:qe(j,E),()=>2);var b=I(m,2);{var g=j=>{var E=_f(),T=k(E),x=I(T),R=k(x),U=I(x);{var Z=W=>{var N=wf(),K=Q(N),X=I(K),J=k(X);B((le,oe)=>{Y(K,`, ${le??""} `),Y(J,oe)},[()=>te("Died On"),()=>p(o(r))]),w(W,N)};V(U,W=>{o(r)&&W(Z)})}B((W,N)=>{Y(T,`${W??""} `),Y(R,N)},[()=>te("Born On"),()=>p(o(a))]),w(j,E)};V(b,j=>{o(a)&&j(g)})}var S=I(h,2),_=k(S),P=k(_);Nt(_,(j,E)=>qe==null?void 0:qe(j,E),()=>3);var M=I(_,2),z=k(M);Pe(z,17,()=>o(l),Ie,(j,E)=>{Bo(j,{get title(){return o(E)},onclick:T=>vi({event:T,data:o(E)})})});var A=I(z,2);{var H=j=>{var E=fe(),T=Q(E);Pe(T,16,()=>({length:6}),Ie,(x,R)=>{var U=xf();w(x,U)}),w(j,E)},D=j=>{var E=fe(),T=Q(E);{var x=R=>{var U=kf();U.__click=u;var Z=k(U);B(W=>Y(Z,W),[()=>te("Show More")]),w(R,U)};V(T,R=>{o(s)&&R(x)},!0)}w(j,E)};V(A,j=>{o(d)?j(H):j(D,!1)})}B(j=>{Y(y,o(i)),Y(P,j)},[()=>te("Credits")]),w(t,f),ae()}ue(["click"]);function Ef(t,e){ie(e,!0);const i=O(e,"initialScrollPosition",3,0);let a=G(0);ce(se.ParticipantModalView,null,{participant:e.participant.name}),ct(()=>{const r=Date.now();return()=>ce(se.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),fr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{Tf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),rn("innerWidth",r=>q(a,r,!0)),ae()}var Pf=C('<div class="content svelte-16hba4m"><!></div>');function Cf(t,e){const i=O(e,"initialScrollPosition",3,0);fr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=Pf(),l=k(n);Vo(l,{}),w(a,n)},$$slots:{default:!0}})}function zf(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var If=nt('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function jf(t){var e=If();w(t,e)}var Af=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Lf=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Mf=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),Df=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function qf(t,e){ie(e,!0),Dr("scope","popover");const i=e.bubble&&Yv(An.TopScrollFormat,1),a=F(()=>({duration:Cn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),c=G(!1),s=G(0),d=G(0),p=G(0);ct(async()=>{await xa(),u(),await h(),e.append&&requestAnimationFrame(()=>{f(),h()}),await xa(),y()});function u(){if(!o(r))return;const{top:E,right:T,bottom:x,height:R}=o(r).getBoundingClientRect(),U=m();q(n,E-U<0&&window.innerHeight-x>E+R,!0);const Z=window.innerWidth-T-U;T+U>window.innerWidth&&(o(r).style.left=`${Z}px`)}function f(){q(l,o(s)>450)}async function h(){if(q(p,0),await new Promise(W=>requestAnimationFrame(W)),!o(r))return;const{top:E,height:T}=o(r).getBoundingClientRect(),x=m(),R=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,U=o(l)?o(d)+R:0,Z=o(n)?window.innerHeight-E-x-U:E+T-U-x;q(p,Math.min(Z,window.innerHeight*.8),!0)}function m(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function y(){var U;if(!((U=o(r))!=null&&U.firstChild))return;const E=o(r).firstChild,{offsetHeight:T,scrollHeight:x,scrollTop:R}=E;x<=T?q(c,!1):q(c,R+T<x)}var b=Df();let g,S;var _=k(b),P=k(_);Fe(P,()=>e.children);var M=I(P,2);{var z=E=>{var T=Af(),x=k(T),R=k(x);jf(R),Le(3,T,()=>ti,()=>({duration:100})),w(E,T)};V(M,E=>{o(c)&&E(z)})}var A=I(_,2);{var H=E=>{var T=Lf(),x=k(T);Fe(x,()=>e.bubble),Le(7,T,()=>Ca,()=>o(a)),w(E,T)};V(A,E=>{e.bubble&&E(H)})}var D=I(A,2);{var j=E=>{var T=Mf(),x=k(T);Fe(x,()=>e.append),Le(7,T,()=>Ca,()=>o(a)),xt(T,"clientHeight",R=>q(d,R)),w(E,T)};V(D,E=>{e.append&&o(l)&&E(j)})}tt(b,E=>q(r,E),()=>o(r)),B(()=>{g=be(b,1,"popover svelte-wxwoko",null,g,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),S=Ve(b,"",S,{"--max-height":o(p)?o(p)+"px":null})}),xe("scroll",_,y),Le(7,_,()=>Ca,()=>o(a)),xt(b,"clientHeight",E=>q(s,E)),w(t,b),ae()}var Of=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Rf(t,e){ie(e,!0);const i=p=>{var u=fe(),f=Q(u);{var h=m=>{Yo(m,{get campaign(){return r}})};V(f,m=>{r&&m(h)})}w(p,u)},a=p=>{var u=fe(),f=Q(u);{var h=m=>{Zo(m,{get campaign(){return n},compact:!0})};V(f,m=>{n&&m(h)})}w(p,u)},r=Pa("top_scroll"),n=Pa("card");let l=G(null);ce(se.TitlePopoverView,e.title),ct(()=>{c();const p=Date.now();return()=>ce(se.TitlePopoverClose,e.title,{time_spent:Date.now()-p})});function c(){const p=e.event.target;if(!(p!=null&&p.getClientRects))return;const u=Array.from(p.getClientRects()),h=u.map(y=>y.x).map(y=>Math.abs(y-e.event.clientX)),m=u[h.indexOf(Math.min(...h))];o(l).style.top=m.top+window.scrollY+"px",o(l).style.left=m.left+window.scrollX+"px",o(l).style.height=m.height+"px"}var s=Of(),d=k(s);{let p=F(()=>n?a:null),u=F(()=>r?i:null);qf(d,{get append(){return o(p)},get bubble(){return o(u)},children:(f,h)=>{jn(f,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}tt(s,p=>q(l,p),()=>o(l)),w(t,s),ae()}let hr=null,ji=null;function Nf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;ji&&gr();const i=t.currentTarget;hr=i,setTimeout(()=>{hr===i&&(ji=Rt(Rf,{target:On(),props:{event:t,title:e.title_details}}))},100)}async function gr(t=!0){if(ji){const e=Qi(ji,{outro:t});hr=null,ji=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Bf(t){if(!ji)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(fi)||e.closest(ii)||gr()}function Ff(){hr=null}function Vf(){return!!ji}var Hf=C('<div class="content svelte-c2erhr"><!></div>'),Uf=C("<div><!></div>"),Wf=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Gf=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Kf=C("<!> <!>",1),Yf=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Zf(t,e){ie(e,!0);const i=O(e,"initialIndex",3,0),a=300;let r,n=G(!1);ct(()=>{setTimeout(()=>{r==null||r.setIndex(i()),requestAnimationFrame(()=>q(n,!0))})}),fr(t,{blur:!0,dialog:c=>{var s=Yf(),d=Q(s);Ve(d,"",{},{"--transition-duration":"300ms"});var p=k(d);{const h=(b,g)=>{let S=()=>g==null?void 0:g().currentIndex;var _=fe(),P=Q(_);Pe(P,17,()=>e.items,Ie,(M,z,A)=>{var H=Uf();let D;H.__click=()=>r.setIndex(A);var j=k(H);{var E=T=>{var x=Hf(),R=k(x);Fe(R,()=>e.each,()=>o(z),S),Le(3,x,()=>ti,()=>({duration:o(n)?a:0})),w(T,x)};V(j,T=>{(Math.abs(A-S())===1||S()===A)&&T(E)})}B(()=>D=be(H,1,"item svelte-c2erhr",null,D,{active:A===S()})),w(M,H)}),w(b,_)},m=(b,g)=>{let S=()=>g==null?void 0:g().setIndex,_=()=>g==null?void 0:g().currentIndex,P=()=>g==null?void 0:g().reachedEnd;var M=Kf(),z=Q(M);{var A=j=>{var E=Wf();E.__click=()=>S()(_()-1);var T=k(E);Bt(T,{size:21,direction:"left",title:"Previous"}),w(j,E)};V(z,j=>{_()>0&&j(A)})}var H=I(z,2);{var D=j=>{var E=Gf();E.__click=()=>S()(_()+1);var T=k(E);Bt(T,{size:21,title:"Next"}),w(j,E)};V(H,j=>{P()||j(D)})}w(b,M)};let y=F(()=>o(n)?a:0);tt(Mo(p,{threshold:40,moveThreshold:40,get transitionDuration(){return o(y)},children:h,controls:m,$$slots:{default:!0,controls:!0}}),b=>r=b,()=>r)}var u=I(d,2),f=k(u);Pn(f,{size:"42px",onclick:()=>Mn(),"aria-label":"Close",children:(h,m)=>{_n(h,{size:24})},$$slots:{default:!0}}),Le(7,u,()=>ia),w(c,s)},$$slots:{dialog:!0}}),ae()}ue(["click"]);function Jf(t,e){ie(e,!0);const i=O(e,"initialIndex",3,0);Zf(t,{get items(){return e.titles},get initialIndex(){return i()},each:(r,n=ut,l=ut)=>{{let c=F(()=>{var s;return n().sid===((s=e.titles[l()])==null?void 0:s.sid)});jn(r,{get title(){return n()},get useVideoBackground(){return o(c)}})}},$$slots:{each:!0}}),ae()}const Qe=[];function vi({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&To(e))return;e==null||e.preventDefault(),Qe!=null&&Qe.length&&Ln();const c=On(),s={initialScrollPosition:r,...l},d=Qf({type:t,target:c,data:a,props:s});n&&Jo({type:t,injection:i,data:n}),Jo({type:t,injection:i,data:a,scrollPosition:r,component:d})}function Qf({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Rt(Ef,{target:e,props:{participant:i,...a}}):t==="explore"?Rt(Cf,{target:e,props:{...a}}):t==="titles-rail"?Rt(Jf,{target:e,props:{titles:i,...a}}):Rt(bf,{target:e,props:{title:i,...a}})}function Jo({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){Qe.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function Ln(t=!0){Qe.length&&(eh(),Qi(Qe[Qe.length-1].component,{outro:t}))}function Xf(t=!0){Ln(t),Qe.pop()}function Mn(t=!0){for(Ln(t);Qe.length>0;)Qe.pop()}function Qo(){return Qe[Qe.length-2]||null}function $f(){if(Qe.length<2)return;Xf();const t=Qe.pop();t&&vi({...t})}function eh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Ci?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(Qe[Qe.length-1].scrollPosition=e.scrollTop)}function th(t,e){if(To(t))return;let i=t.target;if(!i||(i.hasAttribute(fi)||(i=i.closest(ii)),!i))return;const a=i.getAttribute(fi);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),zf(()=>{gr(!1),vi({event:t,injection:r,data:r.title_details})},!Cn.current&&window.innerWidth>=Ci&&!window.matchMedia("(pointer: coarse)").matches))}var ih=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),ah=C('<!> <a target="_blank"> </a>',1),rh=C(" <!>.",1),nh=C("<!> <br/>",1),lh=C(" <br/>",1),oh=C('<span class="svelte-1to4glm"><!></span>'),sh=C('<p class="svelte-1to4glm"></p>');function ch(t,e){ie(e,!0);const i=O(e,"onclickmodal",3,()=>null);function a(s,d){ce(se.AfterArticlePlaylinkClick,s,{playlink:d})}function r(s,d,p){ce(se.AfterArticleModalButtonClick,d),i()(s,p)}var n=fe(),l=Q(n);{var c=s=>{var d=sh();Pe(d,21,()=>e.linkInjections,Ie,(p,u)=>{const f=F(()=>{const{key:S,title:_,title_details:P,after_article_style:M}=o(u);return{key:S,title:_,title_details:P,after_article_style:M}}),h=F(()=>{var S;return((S=o(f).title_details)==null?void 0:S.providers)||[]});var m=oh(),y=k(m);{var b=S=>{var _=nh(),P=Q(_);{var M=A=>{var H=ih(),D=Q(H),j=I(D);j.__click=x=>x.stopPropagation();var E=k(j);E.__click=x=>r(x,o(f).title_details,o(u));var T=k(E);B((x,R)=>{Y(D,`"${o(f).title??""}" ${x??""} `),Y(T,R)},[()=>te("Is Available To Stream"),()=>te("View Streaming Options")]),w(A,H)},z=A=>{var H=rh(),D=Q(H),j=I(D);Pe(j,17,()=>o(h),Ie,(E,T,x)=>{let R=()=>o(T).name,U=()=>o(T).url;var Z=ah(),W=Q(Z);{var N=J=>{var le=Xt();B(oe=>Y(le,oe),[()=>x===o(h).length-1?`, ${te("And")}`:","]),w(J,le)};V(W,J=>{x&&J(N)})}var K=I(W,2);K.__click=()=>a(o(f).title_details,R());var X=k(K);B(()=>{ee(K,"href",U()),Y(X,R())}),w(E,Z)}),B(E=>Y(D,`"${o(f).title??""}" ${E??""} `),[()=>te("Is Available To Stream On")]),w(A,H)};V(P,A=>{o(f).after_article_style==="modal_button"?A(M):A(z,!1)})}w(S,_)},g=S=>{var _=lh(),P=Q(_);B(M=>Y(P,`"${o(f).title??""}" ${M??""} `),[()=>te("Title Unavailable Suffix")]),w(S,_)};V(y,S=>{o(h).length?S(b):S(g,!1)})}B(()=>ee(m,"data-playpilot-injection-key",o(f).key)),w(p,m)}),w(s,d)};V(l,s=>{e.linkInjections.length&&s(c)})}w(t,n),ae()}ue(["click"]);let za=null;function dh(t,e){var l,c;if(za||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,r=(a?document.querySelector(a):null)||t[t.length-1],n=((c=window.PlayPilotLinkInjections)==null?void 0:c.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),za=Rt(ch,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>vi({event:s,injection:d,data:d.title_details})}})}function ph(){var t;za&&(Qi(za),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),za=null)}var uh=C('<p class="svelte-1epbbn0"> </p>');function vh(t,e){ie(e,!1),nn();var i=uh(),a=k(i);B(r=>Y(a,r),[()=>{var r,n;return((n=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.in_text_disclaimer_text)||te("In-Text Disclaimer")}]),w(t,i),ae()}let Ia=null;function fh(t){var n,l,c,s,d,p;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||Ia)return;const e=document.createElement("div"),i=(s=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:s.in_text_disclaimer_selector,a=(i?document.querySelector(i):null)||t[0],r=((p=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:p.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",a.insertAdjacentElement(r,e),Ia=Rt(vh,{target:e})}function hh(){var t;Ia&&(Qi(Ia),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Ia=null)}const fi="data-playpilot-injection-key",ii=`[${fi}]`;function gh(t,e={aiInjections:[],manualInjections:[]}){qn(),xh();const i=kh(e);if(!i.length)return[];const a=ui(t.map(d=>d.innerText).join(" ")),n=Th(i).filter(d=>a.includes(ui(d.sentence))),l={};let c=-1;for(const d of Ph(n)){c++;const p=t.findIndex(P=>ui(P.innerText).includes(ui(d.sentence))),u=t[p];if(!u)continue;const f=_o(d.title,u,["A"]);if(!(f!=null&&f.nodeValue)||xo(f)){const P=_o(d.title,u);if(P&&xo(P)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:m}=mh(d);let y=-1,b=!1;ir(u.innerHTML,d.title)===1&&(y=u.innerHTML.indexOf(d.title));const{phrase_before:S,phrase_after:_}=yh(u,d);if(y===-1&&(S||_)){const P=[S,d.title,_].filter(Boolean).join(" ");if(y=u.innerHTML.indexOf(P),y===-1){const M=yd(u.innerHTML,d.title,S||"",_||"");if(M){const{leadingSpaces:z,trailingSpaces:A}=bd(M.match);m.innerHTML=M.match.trim();const H=M.index+z,D=M.index+M.match.length-A;if(u.innerHTML.slice(H,D).includes("href="))continue;Dn(u.innerHTML,d.title,u,h,H,D)&&(y=M.index,b=!0)}}}if(y===-1&&(f!=null&&f.nodeValue)){const P=u.innerHTML.indexOf(f.nodeValue),M=u.innerHTML.indexOf(d.sentence),z=M===-1?u.innerHTML.indexOf(d.sentence.slice(0,20)):-1,A=d.sentence.split(" ")[0],D=ir(u.innerHTML,A)===1?u.innerHTML.indexOf(A):-1,j=pd(n.slice(0,c+1),d,["title","sentence"])-1,E=wd(f.nodeValue,u,j);y=Math.max(P,z,E,D,M,0)}if(y!==-1&&!b&&!Dn(u.innerHTML,d.title,u,h,y)){const P=xd(d.title,u.innerHTML);P>-1?Dn(u.innerHTML,d.title,u,h,P):l[d.key]="Injection would have lead to broken HTML."}}wh(n),bh();const s=Eh(i);return s.length&&dh(t,s),document.querySelector(ii)&&fh(t),i.filter(d=>d.title_details).map((d,p)=>{const u=!d.manual&&Ch(d,p,i),f=d.duplicate??u;f&&(l[d.key]=u?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${fi}="${d.key}"]`),m=$o(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,y=n.find(g=>g.key===d.key),b=m?l[d.key]||(y?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:f,failed:m,failed_message:b}})}function mh(t){var a;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=document.createElement("a");return i.dataset.playpilotPosterUrl=(a=t.title_details)==null?void 0:a.standing_poster,i.innerText=t.title,i.href=t.playpilot_url,i.target="_blank",i.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",i),{injectionElement:e,linkElement:i}}function Dn(t,e,i,a,r,n=-1){const l=p=>Array.from(p.querySelectorAll(`a, ${ii}`)).filter(u=>!u.innerText).length,c=document.createElement("div");c.innerHTML=t;const s=l(c),d=c.innerText;return n>0?c.innerHTML=hd(t,a.outerHTML,r,n):c.innerHTML=fd(t,e,a.outerHTML,r),Math.abs(c.innerText.length-d.length)>1||s!=l(c)?!1:(i.innerHTML=c.innerHTML,!0)}function yh(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(ir(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=gd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function bh(){const t=Array.from(document.querySelectorAll(`${ii} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const a=getComputedStyle(i);for(const r of e)a.getPropertyValue(r)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${r}`)}}function wh(t){window.addEventListener("mousemove",Bf),window.addEventListener("click",i=>th(i,t)),document.querySelectorAll(ii).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{Vf()||Nf(n,r)}),i.addEventListener("mouseleave",Ff))})}function qn(){document.querySelectorAll(ii).forEach(e=>_h(e.getAttribute(fi)||"")),ph(),hh(),Mn(!1),gr(!1)}function _h(t){var r;const e=document.querySelector(`[${fi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(n=>n.remove());const a=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=a||""}function xh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ii)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function kh({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Sh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Xo(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&$o(t)}function $o(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function Th(t){return es(t).filter(e=>e.in_text!==!1&&Xo(e))}function Eh(t){return es(t).filter(e=>e.after_article===!0&&Xo(e))}function es(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&ts(i,e)))}function Ph(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const a=i.title.length-e.title.length;return a!==0?a:0})}function Ch(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&ts(a,t))}function ts(t,e){return t.title===e.title&&ui(t.sentence)===ui(e.sentence)}function On(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function zh(){const t=pi();if(!t)throw new Error("No token was provided");try{return await await ei(`/domains/config?api-token=${t}`)||null}catch{return null}}ue(["click"]),ue(["input"]),ue(["click"]),ue(["click"]),ue(["click"]),ue(["mousedown","touchstart"]),ue(["mousedown","touchstart"]),ue(["click"]),ue(["click"]),ue(["click"]),ue(["click"]),ue(["click"]),ue(["click"]);function Ih(t,e){ie(e,!0);const i=100;let a=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){n();return}if(!window.__tcfapi){a<i&&setTimeout(r,100),a++;return}window.__tcfapi("addEventListener",2,(l,c)=>{if(!c)return;const{purpose:s,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const p=u=>s.consents[u]===!0;kd({ads:p(1),pixels:p(1)&&p(7),split_tests:p(9)&&p(10),tracking:p(7)&&p(8),affiliate:p(1)&&p(7)}),n()})}function n(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ae()}var jh=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Ah=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Lh=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Mh=C('<button class="svelte-1tp7i1s"></button>'),Dh=C("<small>You are using the beta version of TPI</small>"),qh=C('<button class="svelte-1tp7i1s">Use beta script</button>'),Oh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Rh=C("<option> </option>"),Nh=C('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function Bh(t,e){ie(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(Be(d())),l=G(!1),c=null,s=G(184);on(()=>{c&&clearInterval(c)});function d(){var M,z,A,H,D,j;const g=window.PlayPilotLinkInjections,S=((M=g.evaluated_link_injections)==null?void 0:M.filter(E=>!E.failed))||[],_=((z=g.evaluated_link_injections)==null?void 0:z.filter(E=>E.failed))||[],P=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:g.domain_sid},{label:"Organization",data:g.organization_sid},{label:"HTML selector",data:g.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([E,T])=>({label:E,data:T})),[`Succesful injections (${S.length})`]:S.map(E=>({label:E.title,data:E.sentence})),[`Failed injections (${_.length})`]:_.map(E=>({label:E.title,data:`Reason: ${E.failed_message} | Sentence: ${E.sentence}`})),[`Fetched ads (${((A=g.ads)==null?void 0:A.length)||0})`]:(H=g.ads)==null?void 0:H.map(E=>({label:E.campaign_name,data:E})),[`Tracking events (${((D=g.tracked_events)==null?void 0:D.length)||0})`]:(j=g.tracked_events)==null?void 0:j.map(E=>({label:E.event,data:E.payload})),[`Visible pixels (${P.length})`]:P.map((E,T)=>({label:T+1,data:E.src}))}}function p(g){o(l)||(a.push(g.key),q(l,i.some(S=>a.slice(a.length-S.length,a.length).join("")===S),!0),c=setInterval(()=>q(n,d(),!0),200))}function u(g){window.PlayPilotLinkInjections.ads.unshift({campaign_format:g,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function f(g){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(An).forEach(({key:S,numberOfVariants:_})=>{const P=1/_;window.PlayPilotLinkInjections.split_test_identifiers[S]=Math.min(P*g,1)})}function h(){var _,P;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(P=(_=window.PlayPilotLinkInjections)==null?void 0:_.destroy)==null||P.call(_);const S=document.createElement("script");for(const M of g.attributes)S.setAttribute(M.name,M.value);S.getAttribute("onload")||S.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),S.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",S),g.remove()}var m=fe();xe("keydown",Ae,p);var y=Q(m);{var b=g=>{var S=Nh(),_=I(k(S),4);{var P=de=>{var me=jh();w(de,me)};V(_,de=>{var me,ge,je;(me=window.PlayPilotLinkInjections.config)!=null&&me.exclude_urls_pattern&&zi().match((je=(ge=window.PlayPilotLinkInjections)==null?void 0:ge.config)==null?void 0:je.exclude_urls_pattern)&&de(P)})}var M=I(_,2);Pe(M,17,()=>Object.entries(o(n)),Ie,(de,me)=>{var ge=F(()=>ua(o(me),2));let je=()=>o(ge)[0],Xe=()=>o(ge)[1];var Me=Lh(),ve=k(Me),Oe=k(ve),yt=I(ve,2);{var ri=$=>{var re=fe(),_e=Q(re);{var pt=Re=>{var Sr=fe(),Wt=Q(Sr);Pe(Wt,17,Xe,Ie,(Ri,as,ig,ag)=>{let Gh=()=>o(as).label,Kh=()=>o(as).data;var rs=Ah(),ns=k(rs),Yh=k(ns),Zh=I(ns,2),Jh=k(Zh);B(Qh=>{Y(Yh,Gh()),Y(Jh,Qh)},[()=>JSON.stringify(Kh())]),w(Ri,rs)}),w(Re,Sr)};V(_e,Re=>{Array.isArray(Xe())&&Re(pt)})}w($,re)},Et=$=>{var re=Xt("No data");w($,re)};V(yt,$=>{var re;(re=Xe())!=null&&re.length?$(ri):$(Et,!1)})}B(()=>Y(Oe,je())),w(de,Me)});var z=I(M,4);z.__click=()=>u("card");var A=I(z,2);A.__click=()=>u("top_scroll");var H=I(A,6);Pe(H,16,()=>({length:4}),Ie,(de,me,ge)=>{var je=Mh();je.__click=()=>f(ge),je.textContent=ge,w(de,je)});var D=I(H,4);D.__click=()=>console.log(un(window.PlayPilotLinkInjections.config));var j=I(D,2);j.__click=()=>console.log(un(window.PlayPilotLinkInjections.config).pageText);var E=I(j,4);E.__click=function(...de){var me;(me=e.onrerender)==null||me.apply(this,de)};var T=I(E,2);{var x=de=>{var me=Dh();w(de,me)},R=de=>{var me=qh();me.__click=h,w(de,me)};V(T,de=>{r?de(x):de(R,!1)})}var U=I(T,2);{var Z=de=>{var me=Oh();me.__click=()=>{ur(),window.PlayPilotLinkInjections.config.explore_use_router=!aa(),pr()},w(de,me)};V(U,de=>{aa()||de(Z)})}var W=I(U,4),N=I(k(W),2);Rc(N,window.PlayPilotLinkInjections.region),N.__change=de=>{ur(),window.PlayPilotLinkInjections.region=de.target.value,pr()};var K=I(W,2),X=I(k(K),2);X.__change=de=>{ur(),window.PlayPilotLinkInjections.language=de.target.value,pr()},Pe(X,21,()=>Object.entries(v),Ie,(de,me)=>{var ge=F(()=>ua(o(me),2));let je=()=>o(ge)[0],Xe=()=>o(ge)[1];var Me=Rh(),ve=k(Me),Oe={};B(yt=>{io(Me,yt),Y(ve,je()),Oe!==(Oe=Xe())&&(Me.value=(Me.__value=Xe())??"")},[()=>Xe()===Ta()]),w(de,Me)});var J=I(K,4),le=I(k(J),2);ee(le,"min",80),ee(le,"max",240),ee(le,"step",8),le.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(s)}px`);var oe=I(le,2),ke=k(oe),Ce=I(J,4);Ce.__click=()=>q(l,!1),B(()=>Y(ke,o(s))),Sa(le,()=>o(s),de=>q(s,de)),w(g,S)};V(y,g=>{o(l)&&g(b)})}w(t,m),ae()}ue(["click","change","input"]);function Fh(t,e){ie(e,!1);const i=Array.from(document.querySelectorAll(ii)),a=[],r=Date.now();let n=!1,l=null;ct(()=>{er()||c()});function c(){l=new IntersectionObserver(s),i.forEach(u=>{l.observe(u)})}function s(u){u.forEach(f=>{if(!f.isIntersecting)return;const h=f.target.getAttribute(fi);h&&a.push(h),l.unobserve(f.target)})}function d(){const{scrollHeight:u,scrollTop:f,clientHeight:h}=document.documentElement;return f/(u-h)*100}function p(){var f,h;if(n||document.visibilityState!=="hidden")return;n=!0;const u=Date.now();ce(se.UserLeft,null,{time_start:r,time_end:u,time_spent:u-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(f=window.PlayPilotLinkInjections)==null?void 0:f.tracked_events)==null?void 0:h.map(m=>m.event))||[],scroll_percentage:d()})}nn(),xe("visibilitychange",Ae,p),ae()}function Vh(t,e){ie(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new vr,r=.7,n="[data-playpilot-poster]";let l=G(0),c={},s=null;const d=F(()=>o(l)<Ci);on(h);function p(){var _,P;if((P=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&P.disable_scroll_reveal_posters||!o(d))return;m();const y=window.innerHeight,b=new vr,g=y*r,S=y-g;for(const M of i){const{top:z}=M.getBoundingClientRect();z<g&&z>S&&b.add(M)}for(const M of b){if(a.has(M))continue;const z=M.dataset.playpilotPosterUrl;z in c&&c[z]!==M||(u(M,z),a.add(M),c[z]=M)}}function u(y,b){const g=document.createElement("img");g.classList.add("playpilot-floating-poster"),g.dataset.playpilotPoster="",g.src=b,g.alt="",g.onload=()=>g.classList.add("loaded"),y.insertAdjacentElement("afterbegin",g)}function f(y){const b=y.querySelector(n);b&&(b.classList.add("animating-out"),setTimeout(()=>b.remove(),500))}function h(){for(const y of Array.from(document.querySelectorAll(n)))y.remove()}function m(){s&&clearTimeout(s),s=setTimeout(()=>{for(const y of a)f(y),a.delete(y),c={}},1e3)}xe("scroll",Ae,p),rn("innerWidth",y=>q(l,y,!0)),ae()}var Hh=C("<!> <!>",1),Uh=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function Wh(t,e){ie(e,!0);let i=G(Be([])),a=G(null),r=G(Be(er()));ho();let n=G(!1),l=G(!0),c=G(!0),s=G(Be([]));const d=F(()=>o(a)||{}),p=F(()=>Kn(o(d).ai_injections,()=>[],!0)),u=F(()=>Kn(o(d).manual_injections,()=>[],!0)),f=F(()=>pn(o(i))),h=y();Ke(()=>{o(r)&&!o(l)&&b()}),pr(),on(qn);async function m(){ar()||(await h,zd(),ce(se.ArticlePageView),!(!o(p).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await zo())))}async function y(){var T;q(l,!0);try{o(r)&&q(n,await fo({throwError:!0}),!0)}catch{ce(se.AuthFailed)}try{const x=window.PlayPilotLinkInjections.config||await zh()||{};if(window.PlayPilotLinkInjections.config=x,x!=null&&x.custom_style&&S(x.custom_style||""),x!=null&&x.explore_navigation_selector&&Iu(),x!=null&&x.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),x!=null&&x.domain_sid&&Po({organizationSid:x.organization_sid,domainSid:x.domain_sid}),q(c,sd(x),!0),o(c))return;x!=null&&x.html_selector&&(window.PlayPilotLinkInjections.selector=x==null?void 0:x.html_selector),q(i,un(window.PlayPilotLinkInjections.config).elements,!0)}catch(x){ce(se.FetchingConfigFailed),console.error("TPI Config failed to fetch",x);return}try{if(q(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),q(a,o(a)||await bo(o(f),{maxTries:1,runAiWhenRelevant:!ar()}),!0),q(l,!1),!o(a)||(T=window.PlayPilotLinkInjections.config)!=null&&T.disable_public_injections&&!(o(r)&&o(n)))return;if(Po({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){g({aiInjections:o(p),manualInjections:o(u)});return}if(!o(r)||ar())return;q(a,await bo(o(f),{requireCompletedResult:!0,onpoll:x=>q(a,x,!0)}),!0),g({aiInjections:o(p),manualInjections:o(u)})}catch(x){console.error(x),ce(se.InjectionError,null,{message:x.message})}}function b(){g(Sh(o(s)))}function g(T={aiInjections:o(p),manualInjections:o(u)}){const x=gh(o(i),T);JSON.stringify(x)!==JSON.stringify(o(s))&&(q(s,x,!0),window.PlayPilotLinkInjections.evaluated_link_injections=x),o(r)||_(x)}function S(T){const x="playpilot-custom-style",R=document.getElementById(x),U=R||document.createElement("style");U.textContent=`body { ${T} }`,U.id=x,R||document.body.appendChild(U)}function _(T){const x=T.filter(U=>!U.failed),R=T.filter(U=>U.failed);if(x.length&&ce(se.ArticleInjected,null,{manual:x.filter(U=>U.manual).length,ai:x.filter(U=>!U.manual).length}),R.length){const U=Z=>R.filter(({failed_message:W})=>W==null?void 0:W.includes(Z)).length;ce(se.FailedInjectionsCount,null,{total:R.length,sentence_not_found:U("sentence was not found"),already_linked:U("already inside of a link"),broken_html:U("broken HTML"),duplicate:U("duplicate"),unknown:U("unknown reasons")})}}var P=Uh(),M=Q(P),z=k(M);V(z,T=>{});var A=I(z,2);Bh(A,{onrerender:b});var H=I(M,2);{var D=T=>{Tn(T,{get pixels(){return o(a).pixels}})};V(H,T=>{var x,R;(R=(x=o(a))==null?void 0:x.pixels)!=null&&R.length&&T(D)})}var j=I(H,2);$i(j,()=>o(s),T=>{var x=Hh(),R=Q(x);Fh(R,{});var U=I(R,2);Vh(U,{}),w(T,x)});var E=I(j,2);Ih(E,{onchange:m}),w(t,P),ae()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Rt(Wh,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),qn()}}})();
10
+ `}}function nr(t){return t?t.replace("/src/img",""):null}function Ao(t,e=null){return t!=null&&t.length?`${$c}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Dd=C('<img class="svelte-p6g2a"/>');function lr(t,e){ie(e,!0);const i=O(e,"width",3,96),a=O(e,"height",3,144),r=O(e,"lazy",3,!0),n=O(e,"onload",3,()=>null);var l=Dd();B(c=>{ee(l,"src",c),ee(l,"alt",`Movie poster for '${e.title.title??""}'`),ee(l,"width",i()),ee(l,"height",a()),ee(l,"loading",r()?"lazy":null)},[()=>nr(e.title.standing_poster)]),xe("error",l,({target:c})=>c.src=ed),xe("load",l,function(...c){var s;(s=n())==null||s.apply(this,c)}),w(t,l),ae()}var qd=nt('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function _n(t,e){const i=O(e,"size",3,16);var a=qd();B(()=>{ee(a,"width",i()),ee(a,"height",i())}),w(t,a)}var Od=C('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function Rd(t,e){const i=O(e,"embeddable_url",3,"");var a=Od(),r=k(a);kn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=I(r,2);n.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var l=I(n,2);l.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var c=k(l);_n(c,{size:24}),Le(3,a,()=>ti,()=>({duration:100})),w(t,a)}ue(["click"]);const Nd="1304688689641511",Bd="https://endpoint-youtube-availability.playpilot.workers.dev";async function Lo(t){var i,a,r,n;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const l=await fetch(`${Bd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const c=await l.json();return!((r=c.blocked)!=null&&r[e]||!c.blocked&&c.allowed&&!((n=c.allowed)!=null&&n.includes(e)))}catch(l){return ce(se.YouTubeAvailabilityRequestFailed,null,{message:l.message}),!1}}let or={};function Fd(t){const e=On(),i={onclose:Vd,embeddable_url:t.embeddable_url||""};or=Rt(Rd,{target:e,props:i})}function Vd(){or&&(Qi(or,{outro:!0}),or=null)}function xn(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function Hd(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&xn(r.embeddable_url);try{n&&await Lo(n)&&(a=r)}catch{}i++}return a}var Ud=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe>');function kn(t,e){var f;ie(e,!0);const i=O(e,"embeddable_url",3,""),a=O(e,"controls",19,()=>[]),r=O(e,"muted",3,!1),n=O(e,"loop",3,!1),l=F(()=>xn(i())),c=((f=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:f.replace("#",""))||"fa548a";var s=fe(),d=Q(s);{var p=h=>{var m=Ud();B(y=>ee(m,"src",`https://video.playpilot.net/?video_id=${o(l)??""}&color=${c}&muted=${r()??""}&loop=${n()??""}&controls=${y??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),w(h,m)},u=h=>{var m=Xt("Something went wrong");w(h,m)};V(d,h=>{o(l)?h(p):h(u,!1)})}w(t,s),ae()}var Wd=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function Mo(t,e){ie(e,!0);let i=O(e,"gap",3,"0"),a=O(e,"fill",3,!0),r=O(e,"transitionDuration",3,300),n=O(e,"threshold",3,30),l=O(e,"moveThreshold",3,0),c=O(e,"currentIndex",15,0),s=O(e,"shown",31,()=>Be([])),d=O(e,"sliderWidth",15,0),p=O(e,"currentScrollPosition",15,0),u=O(e,"maxWidth",15,0),f=O(e,"reachedEnd",15,!1),h=O(e,"distanceToEnd",15,0),m=O(e,"passedThreshold",15,!1),y=O(e,"passedMoveThreshold",15,!1),b=O(e,"allowWheel",3,!1),g=O(e,"end",3,()=>null),S=O(e,"change",3,$=>null),_=O(e,"onend",19,g),P=O(e,"onchange",19,S),M=O(e,"onresize",3,()=>null),z=G(!1),A=G(!1),H=0,D=0,j=G(void 0),E=G(void 0),T=null,x=null;Ke(()=>{o(E)&&oe(),o(E)&&h(u()-p()-d())}),ct(()=>(me(),()=>T==null?void 0:T.disconnect()));function R($){const re=o(E).children.length,_e=Math.max(0,Math.min($,re-1));J({setIndex:_e}),oe()}function U(){q(A,!0),R(c()),requestAnimationFrame(()=>q(A,!1))}function Z($){ge($.target)&&($.preventDefault(),H=ke($),q(z,!0))}function W(){if(o(z)){if(!m())J({setIndex:c()});else{const $=p()-D,re=$>0?1:-1;$!=0&&J({direction:re})}q(z,!1),m(!1)}}function N($){if(!o(z))return;const re=ke($),_e=D+(H-re),pt=H-re;y(Math.abs(pt)>l()),m(Math.abs(p()-D)>n()),y()&&(le(_e-l()*(pt>0?1:-1)),oe())}function K($){if(!b())return;const{deltaX:re,deltaY:_e}=$;if(Math.abs(re)<Math.abs(_e))return;$.preventDefault();const Re=p()+re*20*.02;le(Re),oe(),x&&clearTimeout(x),x=setTimeout(()=>{J({direction:re>0?1:-1})},100)}function X($){ge(document.activeElement)&&($.key=="ArrowLeft"&&R(c()-1),$.key=="ArrowRight"&&R(c()+1))}function J({setIndex:$=-1,direction:re=1}={}){const _e=Ce(),pt=c();c(0);let Re;for(Re=0;Re<_e.length;Re++)if($!=-1){if(Re>=$)break}else if(re>0&&_e[Re]>p()||re<0&&_e[Re+1]>p())break;c(Math.min(Re,de().length-1)),le(_e[c()],!0),D=p(),P()&&c()!=pt&&P()(c())}function le($,re=!1){p($);const _e=u()-d();f(p()>=_e),f()&&(_()&&_()(),a()&&re&&p(_e))}function oe(){const $=Ce();Array.from($).forEach((re,_e)=>{p()+d()<re||s().includes(_e)||s([...s(),_e])})}function ke($){var re,_e;return $.pageX??((_e=(re=$.touches)==null?void 0:re[0])==null?void 0:_e.pageX)}function Ce(){return de().map($=>$.offsetLeft)}function de(){return Array.from(o(E).children).filter($=>$ instanceof HTMLElement).filter($=>$.src!="about:blank")}function me(){T=new ResizeObserver($=>{for(const re of $){const _e=Array.isArray(re.contentBoxSize)?re.contentBoxSize[0]:re.contentBoxSize;u(_e.inlineSize)}M()()}),T.observe(o(E))}function ge($){return $===o(j)||($==null?void 0:$.closest(".slider"))===o(j)}var je={setIndex:R,reposition:U},Xe=Wd();xe("mousedown",Ae,Z),xe("mouseup",Ae,W),xe("mousemove",Ae,N),xe("touchstart",Ae,Z,void 0,!0),xe("touchend",Ae,W),xe("touchmove",Ae,N,void 0,!0),xe("keydown",Ae,X),xe("resize",Ae,U);var Me=Q(Xe);let ve;var Oe=k(Me);let yt;var ri=k(Oe);Fe(ri,()=>e.children??ut,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:R,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),tt(Oe,$=>q(E,$),()=>o(E)),tt(Me,$=>q(j,$),()=>o(j));var Et=I(Me,2);return Fe(Et,()=>e.controls??ut,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:R,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),B($=>{ve=be(Me,1,"slider svelte-1gs8ha8",null,ve,{dragging:o(z),"passed-threshold":m()}),yt=Ve(Oe,"",yt,$)},[()=>({transform:`translateX(${p()*-1}px)`,"transition-duration":`${(o(z)||o(A)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),xe("wheel",Me,K),xt(Me,"clientWidth",d),w(t,Xe),ae(je)}var Gd=nt("<title> </title>"),Kd=nt('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function Bt(t,e){const i=O(e,"direction",3,"right"),a=O(e,"title",3,""),r=O(e,"size",3,16);var n=Kd(),l=k(n);{var c=s=>{var d=Gd(),p=k(d);B(()=>Y(p,a())),w(s,d)};V(l,s=>{a()&&s(c)})}B(()=>{be(n,0,i(),"svelte-1m6nwwy"),ee(n,"width",`${r()??""}px`),ee(n,"height",`${r()??""}px`)}),w(t,n)}function qe(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Yd=C('<div class="heading svelte-1ayf7b5"> </div>'),Zd=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Jd=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Qd=C("<!> <!>",1),Xd=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function sr(t,e){ie(e,!0);let i=O(e,"heading",3,""),a=O(e,"onchange",3,()=>null),r=O(e,"onresize",3,()=>null),n=O(e,"slider",15);var l=Xd(),c=Q(l);{var s=u=>{var f=Yd(),h=k(f);Nt(f,(m,y)=>qe==null?void 0:qe(m,y),()=>2),B(()=>Y(h,i())),w(u,f)};V(c,u=>{i()&&u(s)})}var d=I(c,2),p=k(d);tt(Mo(p,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(f,h)=>{let m=()=>h==null?void 0:h().setIndex,y=()=>h==null?void 0:h().currentIndex,b=()=>h==null?void 0:h().reachedEnd;var g=Qd(),S=Q(g);{var _=z=>{var A=Zd();A.__click=()=>m()(y()-1);var H=k(A);Bt(H,{direction:"left",title:"Previous"}),w(z,A)};V(S,z=>{y()>0&&z(_)})}var P=I(S,2);{var M=z=>{var A=Jd();A.__click=()=>m()(y()+1);var H=k(A);Bt(H,{title:"Next"}),w(z,A)};V(P,z=>{b()||z(M)})}w(f,g)},children:(f,h)=>{var m=fe(),y=Q(m);Fe(y,()=>e.children),w(f,m)},$$slots:{controls:!0,default:!0}}),f=>n(f),()=>n()),w(t,l),ae()}ue(["click"]);function Do(t){return`${Qc}/${t.type}/${t.slug}/`}var $d=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),ep=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),tp=C('<a class="poster svelte-12ph9f6"><!></a>'),ip=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),ap=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),rp=C('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),np=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),lp=C('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),op=C("<div><!></div>");function qo(t,e){ie(e,!0);let i=O(e,"minimumLength",3,1),a=O(e,"heading",3,""),r=O(e,"size",3,"small"),n=O(e,"aside",3,!1),l=O(e,"expandable",3,!1),c=O(e,"expandedTitle",15,null),s=O(e,"expandedRailKey",15,null),d=O(e,"onclick",3,()=>null),p=O(e,"onexpand",3,()=>null);const u=cn(),h=Mr("scope")==="popover"?Mr("title"):null;let m=G(null),y=G(null),b=!1;ct(()=>{l()&&P()});function g(j,E,T){var R,U,Z;j==null||j.preventDefault();const x=E[T];if(l()&&!M(x)){const W=(R=o(m))==null?void 0:R.querySelectorAll(".title")[T],K=(((U=o(m))==null?void 0:U.getBoundingClientRect().right)||0)-W.getBoundingClientRect().right;b=!0,setTimeout(()=>b=!1,500),K<W.clientWidth*2&&((Z=o(y))==null||Z.setIndex(T-2)),_(x),j&&p()(x);return}j&&(aa()?vi({event:j,type:"titles-rail",data:E,returnToTitle:h,props:{initialIndex:T}}):vi({event:j,data:x,returnToTitle:h}),d()(x))}async function S(){const j=await e.titles,E=await Hd(j);E&&(c()||s()&&s()!==u||_(E))}function _(j){s(u),c(j)}function P(){s()===u||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(x=>x.getBoundingClientRect().top>=0).sort((x,R)=>x.getBoundingClientRect().top-R.getBoundingClientRect().top)[0]!==o(m)||(c(null),s(null),S())}function M(j){var E;return s()===u&&j.sid===((E=c())==null?void 0:E.sid)}function z(j,E){l()&&(b||setTimeout(()=>g(null,j,E),250))}var A=op();xe("scroll",Ae,P);let H;var D=k(A);Za(D,()=>e.titles,j=>{sr(j,{get heading(){return a()},children:(E,T)=>{var x=fe(),R=Q(x);Pe(R,16,()=>({length:12}),Ie,(U,Z)=>{var W=lp(),N=I(k(W),4);{var K=X=>{var J=np(),le=k(J);Pe(le,20,()=>({length:3}),Ie,(oe,ke)=>{var Ce=rp();w(oe,Ce)}),w(X,J)};V(N,X=>{n()&&X(K)})}w(U,W)}),w(E,x)},$$slots:{default:!0}})},(j,E)=>{var T=fe(),x=Q(T);{var R=U=>{sr(U,{get heading(){return a()},onchange:Z=>z(o(E),Z),onresize:()=>{var Z;return(Z=o(y))==null?void 0:Z.reposition()},get slider(){return o(y)},set slider(Z){q(y,Z,!0)},children:(Z,W)=>{var N=fe(),K=Q(N);Pe(K,17,()=>o(E),Ie,(X,J,le,oe)=>{const ke=F(()=>M(o(J))),Ce=F(()=>Do(o(J))),de=F(()=>$=>g($,o(E),le));var me=ap();let ge;var je=k(me),Xe=k(je);{var Me=$=>{var re=ep(),_e=k(re);_e.__click=function(...Wt){var Ri;(Ri=o(de))==null||Ri.apply(this,Wt)};var pt=I(_e,2);{var Re=Wt=>{kn(Wt,{get embeddable_url(){return o(J).embeddable_url},muted:!0,loop:!0})},Sr=Wt=>{var Ri=$d();B(()=>ee(Ri,"src",o(J).medium_poster)),w(Wt,Ri)};V(pt,Wt=>{o(J).embeddable_url?Wt(Re):Wt(Sr,!1)})}B(()=>ee(_e,"href",o(Ce))),Le(2,re,()=>ti,()=>({delay:200,duration:200})),w($,re)},ve=$=>{var re=tp();re.__click=function(...pt){var Re;(Re=o(de))==null||Re.apply(this,pt)};var _e=k(re);lr(_e,{get title(){return o(J)},width:96,height:144}),B(()=>ee(re,"href",o(Ce))),w($,re)};V(Xe,$=>{o(ke)?$(Me):$(ve,!1)})}var Oe=I(je,2);Oe.__click=function(...$){var re;(re=o(de))==null||re.apply(this,$)};var yt=k(Oe),ri=I(Oe,2);{var Et=$=>{var re=ip();re.__click=function(...pt){var Re;(Re=o(de))==null||Re.apply(this,pt)};var _e=k(re);B(()=>Y(_e,o(J).description)),w($,re)};V(ri,$=>{n()&&$(Et)})}B(()=>{ge=be(me,1,"title svelte-12ph9f6",null,ge,{expanded:o(ke)}),ee(Oe,"href",o(Ce)),Y(yt,o(J).title)}),w(X,me)}),w(Z,N)},$$slots:{default:!0}})};V(x,U=>{var Z;((Z=o(E))==null?void 0:Z.length)>=i()&&U(R)})}w(j,T)}),tt(A,j=>q(m,j),()=>o(m)),B(()=>{H=be(A,1,`titles ${r()??""}`,"svelte-12ph9f6",H,{"with-aside":n()}),ee(A,"data-role",l()?"expandable-rail":null)}),w(t,A),ae()}ue(["click"]);var sp=C('<div class="rail svelte-1b834ry"><!></div>'),cp=C('<div data-testid="explore-home"></div> <!>',1);function dp(t,e){ie(e,!0);let i=G(null),a=G(null);const r=[{heading:"List: Trending",params:{ordering:rr.Popular},properties:{expandable:!0}},{heading:"List: New",params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{aside:!0}},{heading:"List: Upcoming",params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{}},{heading:"List: Cinema",params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{expandable:!0}},{heading:"List: Demand",params:{from_playlist_sid:"licBS"},properties:{aside:!0}}];async function n(s={}){var d;return(d=await wn(s))==null?void 0:d.results}var l=cp();xe("scroll",Ae,onscroll);var c=I(Q(l),2);Pe(c,17,()=>r,Ie,(s,d)=>{let p=()=>o(d).heading,u=()=>o(d).params,f=()=>o(d).properties;var h=sp(),m=k(h);{let y=F(()=>te(p())),b=F(()=>n(u()));qo(m,ln({get heading(){return o(y)},get titles(){return o(b)},size:"flexible",minimumLength:7},f,{onclick:()=>ce(se.ExploreTitleRailModalView,null,{rail:p()}),onexpand:g=>ce(se.ExploreTitleRailExpandClick,g,{rail:p()}),get expandedTitle(){return o(i)},set expandedTitle(g){q(i,g,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(g){q(a,g,!0)}}))}w(s,h)}),w(t,l),ae()}function cr(t,e={}){const i=new Image;i.src=pp(t,e||{})}function pp(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Nd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Oo(t,e={}){return()=>{Ke(()=>cr(t,e))}}function up(t,e={}){return i=>{const a=()=>cr(t,e);Ke(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var vp=C("<button><!></button>");function Ii(t,e){const i=O(e,"variant",3,"filled"),a=O(e,"size",3,"base"),r=O(e,"label",3,null),n=O(e,"active",3,!1);var l=vp();let c;l.__click=function(...d){var p;(p=e.onclick)==null||p.apply(this,d)};var s=k(l);Fe(s,()=>e.children??ut),B(()=>{c=be(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",c,{active:n()}),ee(l,"aria-label",r())}),w(t,l)}ue(["click"]);var fp=nt('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function Sn(t,e){const i=O(e,"size",3,14);var a=fp();B(()=>{ee(a,"width",i()),ee(a,"height",i())}),w(t,a)}function Ro(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(s=>s.name===r.name),l=n==null?void 0:n.extra_info.category,c=r.extra_info.category;(l==="RENT"&&c==="BUY"||l==="BUY"&&c==="RENT")&&(i=i.filter(s=>s.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var hp=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function Tn(t,e){ie(e,!0);let i=G(Be(Math.random()));var a=fe();xe("updateconsent",Ae,()=>q(i,Math.random(),!0));var r=Q(a);$i(r,()=>o(i),n=>{var l=fe(),c=Q(l);{var s=d=>{var p=fe(),u=Q(p);Pe(u,17,()=>e.pixels,Ie,(f,h)=>{var m=hp();B(()=>ee(m,"src",o(h))),w(f,m)}),w(d,p)};V(c,d=>{kt("pixels")&&d(s)})}w(n,l)}),w(t,a),ae()}var gp=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function mp(t,e){ie(e,!0);const i=O(e,"size",3,30),a=O(e,"onclick",3,()=>null),r=F(()=>e.playlink.name),n=F(()=>e.playlink.url),l=F(()=>e.playlink.logo_url),c=F(()=>e.playlink.pixels);var s=gp();s.__click=function(...h){var m;(m=a())==null||m.apply(this,h)};let d;var p=k(s),u=I(p,2);{var f=h=>{Tn(h,{get pixels(){return o(c)}})};V(u,h=>{var m;(m=o(c))!=null&&m.length&&h(f)})}B(h=>{ee(s,"href",o(n)),ee(s,"data-playlink",o(r)),d=Ve(s,"",d,{"--size":`${i()??""}px`}),ee(p,"src",h),ee(p,"alt",o(r)),ee(p,"height",i()),ee(p,"width",i())},[()=>nr(o(l))]),w(t,s),ae()}ue(["click"]);var yp=C('<span class="more svelte-1plv45z"> </span>'),bp=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),wp=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function No(t,e){ie(e,!0);const i=O(e,"size",3,30),a=F(()=>Ro(e.playlinks).slice(0,3));function r(u){u.stopPropagation()}var n=wp(),l=k(n);Pe(l,17,()=>o(a),Ie,(u,f)=>{mp(u,{get playlink(){return o(f)},onclick:r,get size(){return i()}})});var c=I(l,2);{var s=u=>{var f=yp(),h=k(f);B(()=>Y(h,`+${e.playlinks.length-o(a).length}`)),w(u,f)};V(c,u=>{e.playlinks.length>o(a).length&&u(s)})}var d=I(c,2);{var p=u=>{var f=bp();w(u,f)};V(d,u=>{e.playlinks.length||u(p)})}w(t,n),ae()}var _p=C("<div>Series</div>"),xp=C("<div> </div>"),kp=C('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Sp(t,e){ie(e,!0);const i=O(e,"onclick",3,()=>null);var a=kp();a.__click=function(...S){var _;(_=i())==null||_.apply(this,S)};var r=k(a),n=k(r);lr(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=I(n,2),c=k(l),s=k(c);Sn(s,{size:12});var d=I(s),p=I(c,2);{var u=S=>{var _=_p();w(S,_)};V(p,S=>{e.title.type==="series"&&S(u)})}var f=I(p,2);{var h=S=>{var _=xp(),P=k(_);B(()=>Y(P,`${e.title.length??""} min`)),w(S,_)};V(f,S=>{e.title.length&&S(h)})}var m=I(r,2),y=k(m),b=k(y),g=I(y,2);No(g,{get playlinks(){return e.title.providers},size:20}),B(()=>{Y(d,` ${e.title.imdb_score||"-"}`),Y(b,e.title.title)}),w(t,a),ae()}ue(["click"]),Gs();var Tp=C('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function Ep(t){var e=Tp(),i=I(k(e),2),a=k(i);Ve(a,"",{},{width:"60%"}),w(t,e)}var Pp=C('<div class="svelte-pkkpyl"> </div>'),Cp=C('<button class="title svelte-pkkpyl" data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <div> </div> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Bo(t,e){var E;ie(e,!0);const i=O(e,"onclick",3,()=>null),a=!!((E=window.PlayPilotLinkInjections)!=null&&E.no_affiliate);var r=Cp();r.__click=function(...T){var x;(x=i())==null||x.apply(this,T)};var n=k(r),l=k(n);lr(l,{get title(){return e.title},width:30,height:43,lazy:!0});var c=I(n,2),s=k(c),d=k(s),p=I(s,2),u=k(p),f=k(u);Sn(f,{size:11});var h=I(f),m=I(u,2),y=k(m),b=I(m,2),g=k(b),S=I(b,2);{var _=T=>{var x=Pp(),R=k(x);B(()=>Y(R,`${e.title.length??""} min`)),w(T,x)};V(S,T=>{e.title.length&&T(_)})}var P=I(p,2);let M;var z=k(P),A=I(P,2);{var H=T=>{No(T,{get playlinks(){return e.title.providers}})};V(A,T=>{a||T(H)})}var D=I(c,2),j=k(D);Bt(j,{}),B(T=>{Y(d,e.title.title),Y(h,` ${e.title.imdb_score||"-"}`),Y(y,e.title.year),Y(g,T),M=be(P,1,"description svelte-pkkpyl",null,M,{large:a}),Y(z,e.title.description)},[()=>te(`Type: ${e.title.type}`)]),w(t,r),ae()}ue(["click"]);var zp=C('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function Ip(t){var e=zp(),i=I(k(e),2),a=k(i);Ve(a,"",{},{width:"40%"});var r=I(a,2);Ve(r,"",{},{width:"60%"});var n=I(r,2);Ve(n,"",{},{width:"80%"}),w(t,e)}const jp=[{label:"Aruba",value:"AW"},{label:"Afghanistan",value:"AF"},{label:"Angola",value:"AO"},{label:"Anguilla",value:"AI"},{label:"Albania",value:"AL"},{label:"Andorra",value:"AD"},{label:"United Arab Emirates",value:"AE"},{label:"Argentina",value:"AR"},{label:"Armenia",value:"AM"},{label:"American Samoa",value:"AS"},{label:"Antigua and Barbuda",value:"AG"},{label:"Australia",value:"AU"},{label:"Austria",value:"AT"},{label:"Azerbaijan",value:"AZ"},{label:"Burundi",value:"BI"},{label:"Belgium",value:"BE"},{label:"Benin",value:"BJ"},{label:"Burkina Faso",value:"BF"},{label:"Bangladesh",value:"BD"},{label:"Bulgaria",value:"BG"},{label:"Bahrain",value:"BH"},{label:"Bahamas",value:"BS"},{label:"Bosnia and Herzegovina",value:"BA"},{label:"Belarus",value:"BY"},{label:"Belize",value:"BZ"},{label:"Bermuda",value:"BM"},{label:"Bolivia",value:"BO"},{label:"Brazil",value:"BR"},{label:"Barbados",value:"BB"},{label:"Brunei",value:"BN"},{label:"Bhutan",value:"BT"},{label:"Botswana",value:"BW"},{label:"Central African Republic",value:"CF"},{label:"Canada",value:"CA"},{label:"Switzerland",value:"CH"},{label:"Chile",value:"CL"},{label:"China",value:"CN"},{label:"Côte d'Ivoire",value:"CI"},{label:"Cameroon",value:"CM"},{label:"DR Congo",value:"CD"},{label:"Congo",value:"CG"},{label:"Cook Islands",value:"CK"},{label:"Colombia",value:"CO"},{label:"Comoros",value:"KM"},{label:"Cabo Verde",value:"CV"},{label:"Costa Rica",value:"CR"},{label:"Cuba",value:"CU"},{label:"Curaçao",value:"CW"},{label:"Cayman Islands",value:"KY"},{label:"Cyprus",value:"CY"},{label:"Czechia",value:"CZ"},{label:"Germany",value:"DE"},{label:"Djibouti",value:"DJ"},{label:"Dominica",value:"DM"},{label:"Denmark",value:"DK"},{label:"Dominican Republic",value:"DO"},{label:"Algeria",value:"DZ"},{label:"Ecuador",value:"EC"},{label:"Egypt",value:"EG"},{label:"Eritrea",value:"ER"},{label:"Spain",value:"ES"},{label:"Estonia",value:"EE"},{label:"Ethiopia",value:"ET"},{label:"Finland",value:"FI"},{label:"Fiji",value:"FJ"},{label:"Falkland Islands",value:"FK"},{label:"France",value:"FR"},{label:"Faroe Islands",value:"FO"},{label:"Micronesia",value:"FM"},{label:"Gabon",value:"GA"},{label:"United Kingdom",value:"GB"},{label:"Georgia",value:"GE"},{label:"Ghana",value:"GH"},{label:"Gibraltar",value:"GI"},{label:"Guinea",value:"GN"},{label:"Guadeloupe",value:"GP"},{label:"Gambia",value:"GM"},{label:"Guinea-Bissau",value:"GW"},{label:"Equatorial Guinea",value:"GQ"},{label:"Greece",value:"GR"},{label:"Grenada",value:"GD"},{label:"Greenland",value:"GL"},{label:"Guatemala",value:"GT"},{label:"Guyana",value:"GY"},{label:"Hong Kong",value:"HK"},{label:"Honduras",value:"HN"},{label:"Croatia",value:"HR"},{label:"Haiti",value:"HT"},{label:"Hungary",value:"HU"},{label:"Indonesia",value:"ID"},{label:"India",value:"IN"},{label:"Ireland",value:"IE"},{label:"Iran",value:"IR"},{label:"Iraq",value:"IQ"},{label:"Iceland",value:"IS"},{label:"Israel",value:"IL"},{label:"Italy",value:"IT"},{label:"Jamaica",value:"JM"},{label:"Jordan",value:"JO"},{label:"Japan",value:"JP"},{label:"Kazakhstan",value:"KZ"},{label:"Kenya",value:"KE"},{label:"Kyrgyzstan",value:"KG"},{label:"Cambodia",value:"KH"},{label:"Kiribati",value:"KI"},{label:"Saint Kitts and Nevis",value:"KN"},{label:"South Korea",value:"KR"},{label:"Kuwait",value:"KW"},{label:"Laos",value:"LA"},{label:"Lebanon",value:"LB"},{label:"Liberia",value:"LR"},{label:"Libya",value:"LY"},{label:"Saint Lucia",value:"LC"},{label:"Liechtenstein",value:"LI"},{label:"Sri Lanka",value:"LK"},{label:"Lesotho",value:"LS"},{label:"Lithuania",value:"LT"},{label:"Luxembourg",value:"LU"},{label:"Latvia",value:"LV"},{label:"Macao",value:"MO"},{label:"Morocco",value:"MA"},{label:"Monaco",value:"MC"},{label:"Moldova",value:"MD"},{label:"Madagascar",value:"MG"},{label:"Maldives",value:"MV"},{label:"Mexico",value:"MX"},{label:"Marshall Islands",value:"MH"},{label:"North Macedonia",value:"MK"},{label:"Mali",value:"ML"},{label:"Malta",value:"MT"},{label:"Myanmar",value:"MM"},{label:"Montenegro",value:"ME"},{label:"Mongolia",value:"MN"},{label:"Mozambique",value:"MZ"},{label:"Mauritania",value:"MR"},{label:"Martinique",value:"MQ"},{label:"Mauritius",value:"MU"},{label:"Malawi",value:"MW"},{label:"Malaysia",value:"MY"},{label:"Namibia",value:"NA"},{label:"New Caledonia",value:"NC"},{label:"Niger",value:"NE"},{label:"Nigeria",value:"NG"},{label:"Nicaragua",value:"NI"},{label:"Niue",value:"NU"},{label:"Netherlands",value:"NL"},{label:"Norway",value:"NO"},{label:"Nepal",value:"NP"},{label:"Nauru",value:"NR"},{label:"New Zealand",value:"NZ"},{label:"Oman",value:"OM"},{label:"Pakistan",value:"PK"},{label:"Panama",value:"PA"},{label:"Peru",value:"PE"},{label:"Philippines",value:"PH"},{label:"Palau",value:"PW"},{label:"Papua New Guinea",value:"PG"},{label:"Poland",value:"PL"},{label:"Puerto Rico",value:"PR"},{label:"North Korea",value:"KP"},{label:"Portugal",value:"PT"},{label:"Paraguay",value:"PY"},{label:"Palestine",value:"PS"},{label:"French Polynesia",value:"PF"},{label:"Qatar",value:"QA"},{label:"Romania",value:"RO"},{label:"Russian Federation",value:"RU"},{label:"Rwanda",value:"RW"},{label:"Saudi Arabia",value:"SA"},{label:"Sudan",value:"SD"},{label:"Senegal",value:"SN"},{label:"Singapore",value:"SG"},{label:"Solomon Islands",value:"SB"},{label:"Sierra Leone",value:"SL"},{label:"El Salvador",value:"SV"},{label:"San Marino",value:"SM"},{label:"Somalia",value:"SO"},{label:"Serbia",value:"RS"},{label:"South Sudan",value:"SS"},{label:"São Tomé and Príncipe",value:"ST"},{label:"Suriname",value:"SR"},{label:"Slovakia",value:"SK"},{label:"Slovenia",value:"SI"},{label:"Sweden",value:"SE"},{label:"Eswatini",value:"SZ"},{label:"Seychelles",value:"SC"},{label:"Syria",value:"SY"},{label:"Chad",value:"TD"},{label:"Togo",value:"TG"},{label:"Thailand",value:"TH"},{label:"Tajikistan",value:"TJ"},{label:"Turkmenistan",value:"TM"},{label:"Timor-Leste",value:"TL"},{label:"Tonga",value:"TO"},{label:"Trinidad and Tobago",value:"TT"},{label:"Tunisia",value:"TN"},{label:"Turkey",value:"TR"},{label:"Tuvalu",value:"TV"},{label:"Taiwan",value:"TW"},{label:"Tanzania",value:"TZ"},{label:"Uganda",value:"UG"},{label:"Ukraine",value:"UA"},{label:"Uruguay",value:"UY"},{label:"United States",value:"US"},{label:"Uzbekistan",value:"UZ"},{label:"Saint Vincent and the Grenadines",value:"VC"},{label:"Venezuela",value:"VE"},{label:"Vietnam",value:"VN"},{label:"Vanuatu",value:"VU"},{label:"Samoa",value:"WS"},{label:"Yemen",value:"YE"},{label:"South Africa",value:"ZA"},{label:"Zambia",value:"ZM"},{label:"Zimbabwe",value:"ZW"}];async function Ap(){const t=pi();if(!t)throw new Error("No token was provided");const e={region:await bn(),page:1,include_count:"false"};return await ei(`/providers/?api-token=${t}&`+fn(e))}function Lp(t){const e=t-1;return e*e*e+1}function Mp(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=z=>Math.sqrt(z)*120,easing:l=Lp}=a,c=getComputedStyle(t),s=c.transform==="none"?"":c.transform,[d,p]=c.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,p/=t.clientHeight;var u=Dp(t),f=t.clientWidth/i.width/u,h=t.clientHeight/i.height/u,m=e.left+e.width*d,y=e.top+e.height*p,b=i.left+i.width*d,g=i.top+i.height*p,S=(m-b)*f,_=(y-g)*h,P=e.width/i.width,M=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(S*S+_*_)):n,easing:l,css:(z,A)=>{var H=A*S,D=A*_,j=z+A*P,E=z+A*M;return`transform: ${s} translate(${H}px, ${D}px) scale(${j}, ${E});`}}}function Dp(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var qp=nt('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function Op(t){var e=qp();w(t,e)}var Rp=nt('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function Np(t){var e=Rp();w(t,e)}var Bp=C('<div class="icon svelte-dfwzqz"><!></div>'),Fp=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),Vp=C('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function Hp(t,e){ie(e,!0);let i=O(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=O(e,"selected",23,()=>[]),r=O(e,"placeholder",19,()=>`${te("Search")}...`),n=O(e,"onchange",3,()=>null),l=G("");const c=F(s);function s(){var m;return(m=i())!=null&&m.length?o(l)?i().filter(({label:y})=>y.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(m){const y=a().find(b=>b===m);a(y?a().filter(b=>b!==m):[...a(),m]),n()(a())}var p=Vp(),u=Q(p),f=k(u),h=I(u,2);Pe(h,29,()=>o(c)||[],({label:m,value:y})=>y,(m,y)=>{let b=()=>o(y).label,g=()=>o(y).value;const S=F(()=>!!a().find(D=>D===g()));var _=Fp(),P=k(_);let M;P.__click=()=>d(g());var z=k(P),A=I(z),H=k(A);$i(H,()=>o(S),D=>{var j=Bp(),E=k(j);{var T=R=>{Op(R)},x=R=>{Np(R)};V(E,R=>{o(S)?R(T):R(x,!1)})}Le(3,j,()=>ia,()=>({start:.25,duration:100})),w(D,j)}),B(()=>{M=be(P,1,"option svelte-dfwzqz",null,M,{active:o(S)}),Y(z,`${b()??""} `)}),Uc(_,()=>Mp,()=>({duration:150})),w(m,_)}),B(()=>ee(f,"placeholder",r())),Sa(f,()=>o(l),m=>q(l,m)),w(t,p),ae()}ue(["click"]);var Up=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),Wp=C("<div><!> <!></div>");function Fo(t,e){ie(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),c=G(0);function s(y){const b=y.target;b&&b.closest(".dropdown")!==o(a)&&q(i,!1)}function d(y){q(i,!o(i)),o(i)&&(q(c,0),q(l,0),p(y.target))}async function p(y){if(await xa(),!o(r))return;const b=16,g=200,S=window.innerHeight,_=window.innerWidth,{top:P}=o(r).getBoundingClientRect(),{left:M}=y.getBoundingClientRect();q(n,M<window.innerWidth/2?"left":"right",!0),q(l,Math.max(Math.min(window.innerHeight-P-b,S*.6),g),!0),await xa();const{left:z,right:A}=o(r).getBoundingClientRect(),H=_-A;z-b<0?q(c,H):H-b<0&&q(c,H-b)}var u=Wp();xe("click",Ae,s);var f=k(u);Fe(f,()=>e.button,()=>({toggle:d}));var h=I(f,2);{var m=y=>{var b=Up();let g;var S=k(b);Fe(S,()=>e.content),tt(b,_=>q(r,_),()=>o(r)),B(()=>g=Ve(b,"",g,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(c)?`${o(c)}px`:null})),Le(3,b,()=>ia,()=>({start:.85,duration:100})),w(y,b)};V(h,y=>{o(i)&&y(m)})}tt(u,y=>q(a,y),()=>o(a)),B(()=>be(u,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),w(t,u),ae()}var Gp=C('<span class="label svelte-1mfj6k7"> </span>'),Kp=C('<div class="active-line svelte-1mfj6k7"></div>'),Yp=C('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function Zp(t,e){ie(e,!0);const i=O(e,"range",19,()=>[0,100]),a=O(e,"value",19,i),r=O(e,"label",3,""),n=O(e,"valueAppend",3,""),l=O(e,"formatFunction",3,W=>W.toString()),c=O(e,"onchange",3,()=>null);let s=i(),d=F(()=>ua(s,2)),p=G(Be(o(d)[0])),u=G(Be(o(d)[1]));const f=F(()=>o(p)!==i()[0]||o(u)!==i()[1]),h=F(()=>100/(i()[1]-i()[0])*(o(p)-i()[0])),m=F(()=>100+100/(i()[1]-i()[0])*(o(u)-i()[1])-o(h)),y=F(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(p)-o(u))<5);Ke(()=>{b(a())}),Ke(()=>{q(u,Math.max(o(u),o(p)+1),!0),q(u,Math.min(o(u),i()[1]),!0),q(p,Math.min(o(p),o(u)-1),!0),q(p,Math.max(o(p),i()[0]),!0)});function b(W){(N=>{var K=ua(N,2);q(p,K[0],!0),q(u,K[1],!0)})(W)}function g(){requestAnimationFrame(()=>c()([o(p),o(u)]))}var S=Yp(),_=k(S);{var P=W=>{var N=Gp(),K=k(N);B((X,J)=>Y(K,`${r()??""}: ${X??""}—${J??""} ${n()??""}`),[()=>l()(o(p)),()=>l()(o(u))]),w(W,N)};V(_,W=>{r()&&W(P)})}var M=I(_,2);let z;var A=k(M);A.__mouseup=g,A.__touchend=g,A.__input=function(...W){};let H;var D=I(A,2);D.__mouseup=g,D.__touchend=g,D.__input=function(...W){};let j;var E=I(D,2),T=k(E),x=I(E,2),R=k(x),U=I(x,2);{var Z=W=>{var N=Kp();let K;B(()=>K=Ve(N,"",K,{left:o(h)+"%","--width":o(m)+"%"})),w(W,N)};V(U,W=>{o(f)&&W(Z)})}B(()=>{z=be(M,1,"range svelte-1mfj6k7",null,z,{halved:o(y)}),ee(A,"min",i()[0]),ee(A,"max",i()[1]),H=be(A,1,"svelte-1mfj6k7",null,H,{active:o(f)}),ee(D,"min",i()[0]),ee(D,"max",i()[1]),j=be(D,1,"svelte-1mfj6k7",null,j,{active:o(f)}),Y(T,o(p)),Y(R,o(u))}),Sa(A,()=>o(p),W=>q(p,W)),Sa(D,()=>o(u),W=>q(u,W)),w(t,S),ae()}ue(["mouseup","touchend","input"]);var Jp=C(" <!>",1),Qp=C('<p class="loading"> </p>'),Xp=C('<p class="error"> </p>'),$p=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),eu=C('<div data-testid="filter-item"><!></div>');function tu(t,e){ie(e,!0);let i=O(e,"filter",7),a=O(e,"onchange",3,()=>null),r=O(e,"data",7,null),n=O(e,"fetchData",3,null),l=O(e,"range",3,null),c=O(e,"valueAppend",3,"");const s=F(()=>{if(!i()[e.param])return!1;const{type:y,value:b}=i()[e.param];return!(y==="array"&&!b.length||y==="range"&&JSON.stringify(b)===JSON.stringify(l()))});let d=G(!!n());Ke(()=>{!r()&&n()&&p()});async function p(){try{q(d,!0),r(await n()())}catch{ce(se.ExploreFetchProvidersFailed)}finally{q(d,!1)}}function u(y,b){if(ce(se.ExploreSetFilter,null,{key:e.param,value:y,total_filter:i()}),!y){delete i()[e.param];return}i()[e.param]={type:b,value:y},a()()}var f=eu();let h;var m=k(f);Fo(m,{button:(g,S)=>{let _=()=>S==null?void 0:S().toggle;Ii(g,{variant:"border",size:"large",get active(){return o(s)},get onclick(){return _()},children:(P,M)=>{var z=Jp(),A=Q(z),H=I(A);Bt(H,{direction:"down"}),B(()=>Y(A,`${e.label??""} `)),w(P,z)},$$slots:{default:!0}})},content:g=>{var S=$p(),_=k(S);{var P=D=>{var j=Qp(),E=k(j);B(T=>Y(E,`${T??""}...`),[()=>te("Loading")]),w(D,j)},M=D=>{var j=fe(),E=Q(j);{var T=x=>{var R=Xp(),U=k(R);B(Z=>Y(U,Z),[()=>te("An Error Occurred")]),w(x,R)};V(E,x=>{n()&&!r()&&x(T)},!0)}w(D,j)};V(_,D=>{o(d)?D(P):D(M,!1)})}var z=I(_,2);{var A=D=>{const j=F(()=>{var E;return(E=i()[e.param])==null?void 0:E.value});Hp(D,{get options(){return r()},get selected(){return o(j)},onchange:E=>u(E,"array")})},H=D=>{var j=fe(),E=Q(j);{var T=x=>{const R=F(()=>{var U;return(U=i()[e.param])==null?void 0:U.value});Zp(x,{get range(){return l()},get value(){return o(R)},get label(){return e.label},get valueAppend(){return c()},onchange:U=>u(U,"range")})};V(E,x=>{l()&&x(T)},!0)}w(D,j)};V(z,D=>{r()?D(A):D(H,!1)})}w(g,S)},$$slots:{button:!0,content:!0}}),B(()=>h=be(f,1,"filter-item svelte-er0ukh",null,h,{active:o(s)})),w(t,f),ae()}var iu=C(" <!>",1),au=C("<button> </button>"),ru=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function nu(t,e){ie(e,!0);const i=O(e,"filter",7),a=O(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:rr.Popular},{label:"New",value:rr.New},{label:"Top Rated",value:rr.Best}],l=F(()=>{var s;return((s=n.find(({value:d})=>{var p;return d===((p=i()[r])==null?void 0:p.value)}))==null?void 0:s.label)||"Sort By"});function c(s){s?i()[r]={type:"string",value:s}:delete i()[r],a()()}Fo(t,{button:(p,u)=>{let f=()=>u==null?void 0:u().toggle;Ii(p,{variant:"link",get onclick(){return f()},children:(h,m)=>{var y=iu(),b=Q(y),g=I(b);Bt(g,{direction:"down"}),B(S=>Y(b,`${S??""} `),[()=>te(o(l))]),w(h,y)},$$slots:{default:!0}})},content:p=>{var u=ru();Pe(u,21,()=>n,Ie,(f,h,m,y)=>{let b=()=>o(h).label,g=()=>o(h).value;const S=F(()=>{var z;return g()===((z=i()[r])==null?void 0:z.value)});var _=au();let P;_.__click=()=>c(g());var M=k(_);B(z=>{P=be(_,1,"option svelte-1ibt2k4",null,P,{active:o(S)}),Y(M,z)},[()=>te(b())]),w(f,_)}),w(p,u)},$$slots:{button:!0,content:!0}}),ae()}ue(["click"]);var lu=nt('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function ou(t){var e=lu();w(t,e)}var su=C("<div><!></div>"),cu=C("<!> <!>",1),du=C('<div class="sorting"><!></div>'),pu=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function uu(t,e){ie(e,!0);const i=O(e,"onchange",3,()=>null),a=O(e,"limit",3,!0),r=O(e,"showSorting",3,!0),n=3,l=[{label:te("Services"),param:"providers",fetchData:async()=>(await Ap()).map(b=>({label:b.name,value:b.slug}))},{label:te("Genres"),param:"genres",data:mn.map(b=>({label:b.name,value:b.slug}))},{label:te("IMDb"),param:"imdb_score",range:[0,10]},{label:te("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:te("Runtime"),param:"length",range:[0,180],valueAppend:te("Minutes")},{label:te("Countries"),param:"country_codes",data:jp}];let c=G(Be(a()));var s=pu();let d;var p=k(s);Pe(p,21,()=>o(c)?l.slice(0,n):l,Ie,(b,g)=>{var S=su(),_=k(S);tu(_,ln({get filter(){return e.filter},get onchange(){return i()}},()=>o(g))),Le(3,S,()=>ia,()=>({start:.75,duration:100})),w(b,S)});var u=I(p,2),f=k(u);{var h=b=>{Ii(b,{variant:"link",onclick:()=>q(c,!o(c)),children:(g,S)=>{var _=cu(),P=Q(_);ou(P);var M=I(P),z=I(M);{let A=F(()=>o(c)?"down":"up");Bt(z,{get direction(){return o(A)}})}B(A=>Y(M,` ${A??""} `),[()=>te("All Filters")]),w(g,_)},$$slots:{default:!0}})};V(f,b=>{a()&&b(h)})}var m=I(f,2);{var y=b=>{var g=du(),S=k(g);nu(S,{get filter(){return e.filter},get onchange(){return i()}}),Le(3,g,()=>Ca,()=>({x:5,duration:100})),w(b,g)};V(m,b=>{r()&&b(y)})}B(()=>d=be(s,1,"filter svelte-11dg01g",null,d,{limit:a()})),w(t,s),ae()}var vu=C(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function fu(t){var e=vu();w(t,e)}var hu=C('<div class="filter svelte-qc99of"><!></div>'),gu=C("<div><!></div>"),mu=C("<!> <!>",1),yu=C("<p>Something went wrong</p>"),bu=C('<!> <div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function wu(t,e){ie(e,!0);const i=O(e,"searchQuery",3,""),a=Be({});let r=G(Be([])),n=G(1),l=null,c=0,s=G(Be(m())),d=G(0);const p=F(()=>o(d)>500),u=F(()=>o(d)>1400?8:o(d)>900?6:o(d)>600?4:3),f=F(()=>o(p)?Sp:Bo),h=F(()=>o(p)?Ep:Ip);Ke(()=>{(i()||c!=0)&&y(i())});async function m(){c+=1;const T=c,x={page_size:24,page:o(n)};i()&&(x.search=i()),Object.entries(a).forEach(([U,{type:Z,value:W}])=>{if(Z==="string")x[U]=W;else if(Z==="array")x[U]=W.join(",");else if(Z==="range"){const[N,K]=W;x[U+"_min"]=N,x[U+"_max"]=K}});const R=await wn(x)||{next:null,previous:null,results:[]};return T===c&&q(r,[...o(r),...R.results],!0),R}async function y(T){l&&clearTimeout(l),l=setTimeout(()=>{g(),q(s,m(),!0),T&&(ce(se.ExploreSearch,null,{query:T}),kt("pixels")&&cr(Ea.SearchQuery,{query:T}))},100)}function b(){g(),q(s,m(),!0)}function g(){q(n,1),q(r,[],!0)}function S(){nc(n),q(s,m(),!0),ce(se.ExploreShowMore,null,{page:o(n)})}function _(T,x){vi({event:T,data:x}),ce(se.ExploreTitleClick,x)}var P=bu(),M=Q(P);$i(M,()=>o(p),T=>{var x=hu(),R=k(x);{let U=F(()=>!o(p)),Z=F(()=>!i());uu(R,{get filter(){return a},get limit(){return o(U)},onchange:b,get showSorting(){return o(Z)}})}w(T,x)});var z=I(M,2);let A,H;var D=k(z);Pe(D,17,()=>o(r),Ie,(T,x)=>{var R=fe(),U=Q(R);$i(U,()=>o(x).sid,Z=>{var W=fe(),N=Q(W);Zr(N,()=>o(f),(K,X)=>{X(K,{get title(){return o(x)},onclick:J=>_(J,o(x))})}),w(Z,W)}),w(T,R)});var j=I(D,2);Za(j,()=>o(s),T=>{var x=fe(),R=Q(x);Pe(R,16,()=>({length:24}),Ie,(U,Z)=>{var W=fe(),N=Q(W);Zr(N,()=>o(h),(K,X)=>{X(K,{})}),w(U,W)}),w(T,x)},void 0,T=>{});var E=I(z,2);Za(E,()=>o(s),null,(T,x)=>{var R=F(()=>{var{next:J}=o(x);return{next:J}}),U=F(()=>o(R).next),Z=mu(),W=Q(Z);{var N=J=>{var le=gu();let oe;var ke=k(le);Ii(ke,{size:"large",onclick:S,children:(Ce,de)=>{var me=Xt();B(ge=>Y(me,ge),[()=>te("Show More")]),w(Ce,me)},$$slots:{default:!0}}),B(()=>oe=be(le,1,"show-more svelte-qc99of",null,oe,{grid:o(p)})),w(J,le)};V(W,J=>{o(U)&&J(N)})}var K=I(W,2);{var X=J=>{fu(J)};V(K,J=>{var le;!((le=o(r))!=null&&le.length)&&o(n)===1&&J(X)})}w(T,Z)},T=>{var x=yu();w(T,x)}),B(()=>{A=be(z,1,"titles svelte-qc99of",null,A,{grid:o(p)}),H=Ve(z,"",H,{"--grid-columns":o(u)})}),xt(z,"clientWidth",T=>q(d,T)),w(t,P),ae()}var _u=nt('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function xu(t){var e=_u();w(t,e)}var ku=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Su(t,e){ie(e,!0);let i=G("");var a=ku(),r=k(a),n=k(r);xu(n);var l=I(r,2);l.__input=()=>e.oninput(o(i)),B(c=>ee(l,"placeholder",c),[()=>te("Search Movies And Shows")]),Sa(l,()=>o(i),c=>q(i,c)),w(t,a),ae()}ue(["input"]);var Tu=C('<p class="description svelte-l2apr8"> </p>'),Eu=C('<div class="navigation svelte-l2apr8" role="navigation"></div>'),Pu=C('<div class="explore playpilot-styled-scrollbar svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <!></div></div> <!> <!> <!></div>');function Cu(t,e){ie(e,!0);let i=O(e,"navigate",3,()=>null),a=O(e,"searchQuery",15,""),r=null,n=G(null),l=G(0);Ke(()=>{var _;q(n,((_=r==null?void 0:r.closest(En))==null?void 0:_.style.height)||null,!0)}),ct(async()=>{var _;ce(se.ExplorePageView),console.log("track page view"),(_=window.PlayPilotLinkInjections.ads)!=null&&_.length||(window.PlayPilotLinkInjections.ads=await zo())});var c=Pu();let s;var d=k(c),p=k(d),u=I(k(p),2),f=k(u);Nt(u,_=>qe==null?void 0:qe(_));var h=I(u,2);{var m=_=>{var P=Tu(),M=k(P);B(z=>Y(M,z),[()=>te("Streaming Guide Description")]),w(_,P)};V(h,_=>{aa()||_(m)})}var y=I(d,2);{var b=_=>{var P=Eu();Pe(P,21,()=>e.routes,Ie,(M,z)=>{{let A=F(()=>e.currentRoute.key===o(z).key);Ii(M,{variant:"border",size:"large",get active(){return o(A)},onclick:()=>i()(o(z)),children:(H,D)=>{var j=Xt();B(E=>Y(j,E),[()=>te(o(z).label)]),w(H,j)},$$slots:{default:!0}})}}),w(_,P)};V(y,_=>{aa()&&_(b)})}var g=I(y,2);Su(g,{oninput:_=>a(_)});var S=I(g,2);Fe(S,()=>e.children),tt(c,_=>r=_,()=>r),B(_=>{s=Ve(c,"",s,{height:o(n),"--playpilot-explore-width":`${o(l)??""}px`}),Y(f,_)},[()=>te("Streaming Guide")]),xt(c,"clientWidth",_=>q(l,_)),w(t,c),ae()}function Vo(t,e){ie(e,!0);const i=[{key:"results",label:te("Explore"),component:wu}];aa()&&i.unshift({key:"home",label:te("Home"),component:dp});let a=G(Be(i[0])),r=G("");const n=F(()=>o(a).component);Ke(()=>{o(r)&&q(a,i.find(c=>c.key==="results"),!0)});function l(c){q(a,c,!0),ce(se.ExploreNavigate,null,{route:c.key})}Cu(t,{get routes(){return i},get currentRoute(){return o(a)},navigate:l,get searchQuery(){return o(r)},set searchQuery(c){q(r,c,!0)},children:(c,s)=>{var d=fe(),p=Q(d);Zr(p,()=>o(n),(u,f)=>{f(u,{get searchQuery(){return o(r)}})}),w(c,d)},$$slots:{default:!0}}),ae()}const En="[data-playpilot-explore]",zu="[data-playpilot-pre-consent-explore]",Ho="playpilot-explore-custom-style";let dr=null;function pr(){var e;const t=document.querySelector(En);t&&(ur(),(e=document.querySelector(zu))==null||e.remove(),t.innerHTML="",dr=Rt(Vo,{target:t}),ju())}function ur(){var t;dr&&(Qi(dr),dr=null,(t=document.querySelector("#"+Ho))==null||t.remove())}function Iu(){var s;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:r}=t;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),c=l.nodeName==="A"?l:l.querySelector("a");return c.classList.remove("active"),c.innerText=i||"Streaming Guide",c.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function ju(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Ho,document.body.appendChild(e)}function aa(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Pn(t,e){ie(e,!0);const i=O(e,"size",3,"32px"),a=O(e,"onclick",3,()=>null),r=po(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=fe(),l=Q(n);Zl(l,()=>e.href?"a":"button",!1,(c,s)=>{ao(c,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[ta]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=fe(),p=Q(d);Fe(p,()=>e.children??ut),w(s,d)}),w(t,n),ae()}var Au=C("<div></div>");function Lu(t,e){ie(e,!0);let i=O(e,"threshold",3,100),a=O(e,"isDragging",15,!1),r=O(e,"passedThreshold",15,!1),n=O(e,"onpassed",3,()=>null),l=G(0),c=G(0),s=G(null),d=G(!1);const p=F(()=>Math.max(o(c)-o(l),0));Ke(()=>{r(o(p)>i())});function u(g){if(g){a(!0),q(d,!0),q(l,g.touches[0].pageY,!0);for(const S of e.targets)S.style.transitionDuration="0ms"}}function f(g){if(g&&a()){g.preventDefault(),q(c,g.touches[0].pageY,!0),o(s).style.transform=`translateY(${o(p)}px)`;for(const S of e.targets)S.style.top=`${o(p)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(s).removeAttribute("style");for(const g of e.targets)g.style.removeProperty("transition"),requestAnimationFrame(()=>g.style.top="0px")}q(l,0),q(c,0)}}var m={start:u,move:f,end:h},y=Au();xe("touchmove",Ae,f,void 0,!0),xe("touchend",Ae,h);let b;return y.__touchstart=u,tt(y,g=>q(s,g),()=>o(s)),B(()=>b=be(y,1,"handle svelte-1xqgdsn",null,b,{dragging:a(),dragged:o(d)})),w(t,y),ae(m)}ue(["touchstart"]);var Mu=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Du=["difference","intersection","symmetricDifference","union"],Uo=!1;const kr=class kr extends Set{constructor(i){super();pe(this,pa);pe(this,da,new Map);pe(this,Tt,G(0));pe(this,bi,G(0));pe(this,xr,Qt||-1);if(i){for(var a of i)super.add(a);L(this,bi).v=super.size}Uo||ze(this,pa,ps).call(this)}has(i){var a=super.has(i),r=L(this,da),n=r.get(i);if(n===void 0){if(!a)return o(L(this,Tt)),!1;n=ze(this,pa,ds).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),q(L(this,bi),super.size),si(L(this,Tt))),this}delete(i){var a=super.delete(i),r=L(this,da),n=r.get(i);return n!==void 0&&(r.delete(i),q(n,!1)),a&&(q(L(this,bi),super.size),si(L(this,Tt))),a}clear(){if(super.size!==0){super.clear();var i=L(this,da);for(var a of i.values())q(a,!1);i.clear(),q(L(this,bi),0),si(L(this,Tt))}}keys(){return this.values()}values(){return o(L(this,Tt)),super.values()}entries(){return o(L(this,Tt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(L(this,bi))}};da=new WeakMap,Tt=new WeakMap,bi=new WeakMap,xr=new WeakMap,pa=new WeakSet,ds=function(i){return Qt===L(this,xr)?G(i):Lt(i)},ps=function(){Uo=!0;var i=kr.prototype,a=Set.prototype;for(const r of Mu)i[r]=function(...n){return o(L(this,Tt)),a[r].apply(this,n)};for(const r of Du)i[r]=function(...n){o(L(this,Tt));var l=a[r].apply(this,n);return new kr(l)}};let vr=kr;class qu{constructor(e,i){pe(this,Da);pe(this,qa);ne(this,Da,e),ne(this,qa,vl(i))}get current(){return L(this,qa).call(this),L(this,Da).call(this)}}Da=new WeakMap,qa=new WeakMap;const Ou=/\(.+\)/,Ru=new Set(["all","print","screen","and","or","not","only"]);class Nu extends qu{constructor(e,i){let a=Ou.test(e)||e.split(/[\s,]+/).some(n=>Ru.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>zc(r,"change",n))}}const Cn=new Nu("(prefers-reduced-motion: reduce)");function zn(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(n){if(n.key!=="Tab")return;const l=document.activeElement;if(!l)return;const c=e();if(!c.length)return;const[s]=c,d=c[c.length-1];n.shiftKey&&l===s&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(s.focus(),n.preventDefault())}const a=document.activeElement,[r]=e();return a!=null&&a.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function Bu(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Fu=C("<div><!></div>"),Vu=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Hu=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Uu=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Wu=C("<div><!></div>"),Gu=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Ku=C('<div data-testid="modal"><!> <!> <!> <!></div>');function fr(t,e){ie(e,!0);const i=N=>{var K=Fu(),X=k(K);Pn(X,{onclick:P,"aria-label":"Close",children:(J,le)=>{_n(J,{})},$$slots:{default:!0}}),tt(K,J=>q(m,J),()=>o(m)),B(()=>be(K,1,`close ${l()??""}`,"svelte-1rbidhv")),Le(7,K,()=>_),w(N,K)},a=O(e,"tall",3,!1),r=O(e,"wide",3,!1),n=O(e,"blur",3,!1),l=O(e,"closeButtonStyle",3,"shadow"),c=O(e,"initialScrollPosition",3,0),s=O(e,"onscroll",3,()=>null),d=O(e,"onclose",3,()=>null),p="#playpilot";let u=G(0),f=G(null),h=G(null),m=G(null),y=G(0),b=G(!1);const g=F(()=>o(u)<Ci);Ke(()=>{var N;o(u)&&q(y,((N=o(h))==null?void 0:N.offsetTop)||0,!0)}),Ke(()=>{setTimeout(()=>{var N;return q(y,((N=o(h))==null?void 0:N.offsetTop)||0,!0)})}),Dr("scope","modal"),ct(()=>{const N=Bu();return N.classList.add("playpilot-modal-open"),q(b,!!Qo()),o(b)||window.history.pushState({modal:!0},"",p),requestAnimationFrame(S),()=>{var K;N.classList.remove("playpilot-modal-open"),!Qo()&&((K=history.state)!=null&&K.modal)&&history.back()}});function S(){const N=window.innerWidth>Ci?o(f):o(h);N==null||N.scrollTo(0,c())}function _(N){return Cn.current?ti(N,{duration:0}):o(g)?Ca(N,{duration:250,y:window.innerHeight,opacity:1}):ia(N,{duration:150,start:.85})}function P(){d()(),Mn()}function M(N){N.target===o(f)&&P()}var z=Ku();xe("keydown",Ae,({key:N})=>{N==="Escape"&&P()}),xe("hashchange",Ae,P);let A;z.__click=M;let H;var D=k(z);{var j=N=>{var K=Vu(),X=k(K);Fe(X,()=>e.prepend),Le(7,K,()=>_),w(N,K)};V(D,N=>{e.prepend&&N(j)})}var E=I(D,2);{var T=N=>{var K=Hu(),X=k(K);Fe(X,()=>e.bubble),Le(7,K,()=>_),w(N,K)};V(E,N=>{e.bubble&&N(T)})}var x=I(E,2);{var R=N=>{var K=Uu(),X=k(K);{var J=le=>{{let oe=F(()=>[o(h),o(m)]);Lu(le,{get targets(){return o(oe)},onpassed:P})}};V(X,le=>{o(h)&&o(m)&&le(J)})}Le(7,K,()=>_),w(N,K)};V(x,N=>{o(g)&&N(R)})}var U=I(x,2);{var Z=N=>{var K=fe(),X=Q(K);Fe(X,()=>e.dialog),w(N,K)},W=N=>{var K=Gu(),X=Q(K),J=k(X);{var le=ge=>{var je=Wu(),Xe=k(je);Pn(Xe,{onclick:()=>$f(),"aria-label":"Back",children:(Me,ve)=>{Bt(Me,{direction:"left"})},$$slots:{default:!0}}),B(()=>be(je,1,`close back ${l()??""}`,"svelte-1rbidhv")),w(ge,je)};V(J,ge=>{o(b)&&ge(le)})}var oe=I(J,2);Fe(oe,()=>e.children??ut);var ke=I(oe,2);{var Ce=ge=>{i(ge)};V(ke,ge=>{o(g)||ge(Ce)})}tt(X,ge=>q(h,ge),()=>o(h));var de=I(X,2);{var me=ge=>{i(ge)};V(de,ge=>{o(g)&&ge(me)})}xe("scroll",X,function(...ge){var je;(je=s())==null||je.apply(this,ge)}),Le(7,X,()=>_),w(N,K)};V(U,N=>{e.dialog?N(Z):N(W,!1)})}tt(z,N=>q(f,N),()=>o(f)),Nt(z,N=>zn==null?void 0:zn(N)),B(()=>{A=be(z,1,"modal svelte-1rbidhv",null,A,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),H=Ve(z,"",H,{"--dialog-offset":`${o(y)??""}px`})}),rn("innerWidth",N=>q(u,N,!0)),Le(5,z,()=>ti,()=>({duration:150})),Le(6,z,()=>ti,()=>({duration:150,delay:100})),w(t,z),ae()}ue(["click"]);var Yu=C('<div class="genre svelte-1mphbln"> </div>'),Zu=C('<button class="genre expand svelte-1mphbln"> </button>'),Ju=C("<!> <!>",1);function Qu(t,e){ie(e,!0);let i=G(!1);const a=F(()=>o(i)?e.genres:[e.genres[0]]);var r=Ju(),n=Q(r);Pe(n,17,()=>o(a),Ie,(s,d)=>{const p=F(()=>{var m;return(m=mn.find(y=>y.slug===o(d)))==null?void 0:m.name});var u=fe(),f=Q(u);{var h=m=>{var y=Yu(),b=k(y);Ja(y,()=>Co()?Oo(Ea.GenreInterest,{genre:o(p)}):null),B(g=>Y(b,g),[()=>te(o(p))]),w(m,y)};V(f,m=>{o(p)&&m(h)})}w(s,u)});var l=I(n,2);{var c=s=>{var d=Zu();d.__click=()=>q(i,!0);var p=k(d);B(()=>Y(p,`+${e.genres.length-1}`)),w(s,d)};V(l,s=>{!o(i)&&e.genres.length>1&&s(c)})}w(t,r),ae()}ue(["click"]);var Xu=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),$u=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function In(t,e){const i=O(e,"small",3,!1);let a=G(!1);function r(p){p.preventDefault(),p.stopPropagation(),q(a,!o(a))}var n=$u();n.__click=r;var l=k(n);let c;var s=I(l,2);{var d=p=>{var u=Xu(),f=k(u);B(()=>Y(f,e.disclaimer)),Le(3,u,()=>ti,()=>({duration:50})),w(p,u)};V(s,p=>{o(a)&&p(d)})}B(()=>c=be(l,1,"disclaimer svelte-1ldthr7",null,c,{small:i()})),w(t,n)}ue(["click"]);var ev=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),tv=C('<span class="cta svelte-13ka2ap"> </span>'),iv=C('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Wo(t,e){ie(e,!0);const i=O(e,"disclaimer",3,""),a=O(e,"hideCategory",3,!1),r=O(e,"onclick",3,()=>null),n=F(()=>e.playlink.name),l=F(()=>e.playlink.url),c=F(()=>e.playlink.logo_url),s=F(()=>e.playlink.highlighted),d=F(()=>e.playlink.cta_text),p=F(()=>e.playlink.action_text),u=F(()=>e.playlink.pixels),f=F(()=>e.playlink.extra_info.category),h=F(()=>Co()&&!o(s)),m={AVOD:te("Stream"),SVOD:te("Stream"),BUY:te("Buy"),RENT:te("Rent"),TVOD:te("Rent Or Buy")};let y=G(0);var b=fe(),g=Q(b);Zl(g,()=>{var S,_;return!((_=(S=window.PlayPilotLinkInjections)==null?void 0:S.config)!=null&&_.require_affiliate_consent)||kt("affiliate")?"a":"span"},!1,(S,_)=>{Ja(S,()=>o(h)?Oo(Ea.ProviderInterest,{provider:e.playlink.slug}):null),Ja(S,()=>o(h)?up(Ea.ProviderClick,{provider:e.playlink.slug}):null),ao(S,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[ea]:{highlighted:o(s),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var P=iv(),M=Q(P);let z;var A=k(M),H=I(A,2),D=k(H),j=I(H,2);{var E=X=>{var J=ev(),le=k(J);B(oe=>Y(le,oe),[()=>m[o(f)]||te("Stream")]),w(X,J)};V(j,X=>{a()||X(E)})}var T=I(j,2);{var x=X=>{var J=tv(),le=k(J);B(()=>Y(le,o(d))),w(X,J)};V(T,X=>{o(d)&&X(x)})}var R=I(T,2),U=k(R),Z=I(R,2);{var W=X=>{In(X,{get disclaimer(){return i()},small:!0})};V(Z,X=>{i()&&X(W)})}var N=I(M,2);{var K=X=>{Tn(X,{get pixels(){return o(u)}})};V(N,X=>{var J;(J=o(u))!=null&&J.length&&X(K)})}B((X,J)=>{z=Ve(M,"",z,{"--action-width":o(y)?`${o(y)}px`:null}),ee(A,"src",X),Y(D,o(n)),Y(U,J)},[()=>nr(o(c)),()=>o(p)||te("Watch")]),xt(R,"clientWidth",X=>q(y,X)),w(_,P)}),w(t,b),ae()}var av=C('<div class="disclaimer svelte-1fykz2q" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1fykz2q">PlayPilot.com</a></div>'),rv=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),nv=C('<div class="heading category svelte-1fykz2q"> </div>'),lv=C("<!> <!>",1),ov=C("<!> <div></div>",1),sv=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function cv(t,e){var P,M;ie(e,!0);const i=Mr("scope")==="modal",a=Pa("card"),r=!!((M=(P=window.PlayPilotLinkInjections)==null?void 0:P.config)!=null&&M.categorize_playlinks);let n=G(0);const l=F(()=>Ro(e.playlinks)),c=F(()=>u(e.playlinks)),s=F(()=>r?f(o(c)):[["",o(l)]]),d=F(()=>o(n)<500||!!a||o(l).length===1);function p(z){ce(i?se.TitleModalPlaylinkClick:se.TitlePopoverPlaylinkClick,e.title,{playlink:z})}function u(z){const A={};for(const H of z){const{category:D}=H.extra_info;D in A||(A[D]=[]),A[D].push(H)}return A}function f(z){const A=["AVOD","SVOD","RENT","BUY"],H=[];for(const j of A)z[j]&&H.push([j,z[j]]);const D=[];for(const j of Object.values(z))for(const E of j)A.includes(E.extra_info.category)||D.push(E);return[...H,["Other",D]]}var h=sv(),m=Q(h),y=k(m);Nt(m,(z,A)=>qe==null?void 0:qe(z,A),()=>3);var b=I(m,2);{var g=z=>{var A=av(),H=k(A);B(D=>Y(H,`${D??""} `),[()=>{var D,j;return((j=(D=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:D.config)==null?void 0:j.playlinks_disclaimer_text)||te("Commission Disclaimer")}]),w(z,A)},S=z=>{var A=rv(),H=k(A);B(D=>Y(H,D),[()=>te("Title Unavailable")]),w(z,A)};V(b,z=>{o(l).length?z(g):z(S,!1)})}var _=I(b,2);Pe(_,17,()=>o(s),Ie,(z,A,H,D)=>{var j=F(()=>ua(o(A),2));let E=()=>o(j)[0],T=()=>o(j)[1];var x=ov(),R=Q(x);{var U=N=>{var K=nv(),X=k(K);Nt(K,(J,le)=>qe==null?void 0:qe(J,le),()=>4),B(J=>Y(X,J),[()=>te(`Category: ${E()}`)]),w(N,K)};V(R,N=>{E()&&T().length&&N(U)})}var Z=I(R,2);let W;Pe(Z,21,T,Ie,(N,K,X)=>{var J=lv(),le=Q(J);Wo(le,{get playlink(){return o(K)},onclick:()=>p(o(K).name)});var oe=I(le,2);{var ke=Ce=>{{let de=F(()=>Id(a)),me=F(()=>a.disclaimer||"");Wo(Ce,{get playlink(){return o(de)},onclick:()=>ce(se.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(me)}})}};V(oe,Ce=>{a&&X===0&&Ce(ke)})}w(N,J)}),B(()=>{W=be(Z,1,"playlinks svelte-1fykz2q",null,W,{list:o(d)}),ee(Z,"data-testid",`category-${E()??""}`)}),xt(Z,"clientWidth",N=>q(n,N)),w(z,x)}),B(z=>Y(y,z),[()=>te("Where To Stream Online")]),w(t,h),ae()}var dv=C('<button class="show-more svelte-7itcht">Show more</button>'),pv=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),uv=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function vv(t,e){ie(e,!0);const i=O(e,"blurb",3,""),a=O(e,"limit",3,200),r=O(e,"onclick",3,()=>null);let n=G(!1);const l=F(()=>e.text.slice(0,a()));function c(){q(n,!0),r()()}var s=uv(),d=k(s),p=k(d),u=I(p);{var f=g=>{var S=Xt("...");w(g,S)};V(u,g=>{!o(n)&&e.text.length>a()&&g(f)})}var h=I(u,2);{var m=g=>{var S=dv();S.__click=()=>c(),w(g,S)};V(h,g=>{!o(n)&&(e.text.length>a()||i())&&g(m)})}var y=I(d,2);{var b=g=>{var S=pv(),_=k(S);B(()=>Y(_,i())),w(g,S)};V(y,g=>{o(n)&&g(b)})}B(()=>Y(p,o(n)?e.text:o(l))),w(t,s),ae()}ue(["click"]);async function fv(t,{page:e=1}={}){const i={language:Ta(),region:await bn(),include_count:"false",participant_sid:t.sid,page:e};return(await ei(`/titles/browse?api-token=${pi()}&${fn(i)}`)).results}async function hv(t){return(await ei(`/participants/browse?api-token=${pi()}&title_sid=${t.sid}`)).results}var gv=C('<div class="character truncate svelte-zy7e3f"> </div>'),mv=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),yv=C('<div class="participant svelte-zy7e3f"></div>');function bv(t,e){ie(e,!0);function i(l){const c=ui(pn(go(dn()))),s={};for(const p of l){const u=ir(c,ui(p.name));s[p.sid]={participant:p,count:u}}return Object.values(s).sort((p,u)=>u.count-p.count).map(({participant:p})=>p)}function a(l,c){vi({event:l,type:"participant",data:c}),ce(se.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:c.name})}var r=fe(),n=Q(r);Za(n,()=>hv(e.title),l=>{{let c=F(()=>te("Cast"));sr(l,{get heading(){return o(c)},children:(s,d)=>{var p=fe(),u=Q(p);Pe(u,16,()=>({length:5}),Ie,(f,h)=>{var m=yv();w(f,m)}),w(s,p)},$$slots:{default:!0}})}},(l,c)=>{var s=fe(),d=Q(s);{var p=u=>{{let f=F(()=>te("Cast"));sr(u,{get heading(){return o(f)},children:(h,m)=>{var y=fe(),b=Q(y);Pe(b,17,()=>i(o(c)).slice(0,15),Ie,(g,S)=>{var _=mv();_.__click=H=>a(H,o(S));var P=k(_),M=k(P),z=I(P,2);{var A=H=>{var D=gv(),j=k(D);B(()=>Y(j,o(S).character)),w(H,D)};V(z,H=>{o(S).character&&H(A)})}B(()=>Y(M,o(S).name)),w(g,_)}),w(h,y)},$$slots:{default:!0}})}};V(d,u=>{var f;(f=o(c))!=null&&f.length&&u(p)})}w(l,s)}),w(t,r),ae()}ue(["click"]);function wv(t,e){ie(e,!0);const i=Ld(e.title);{let a=F(()=>te("Similar Titles"));qo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>ce(se.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ae()}function _v(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var xv=nt('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function kv(t){var e=xv();w(t,e)}var Sv=nt('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function Tv(t){var e=Sv();w(t,e)}var Ev=nt('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function Pv(t){var e=Ev();w(t,e)}var Cv=nt('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function zv(t){var e=Cv();w(t,e)}var Iv=C('<button class="svelte-827qd7"><!></button>'),jv=C('<div class="content svelte-827qd7"><!></div>'),Av=C("<div><!> <!></div>");function Lv(t,e){const i=O(e,"label",3,""),a=O(e,"align",3,"right");let r=G(!1),n=G(null);function l(h){var y;h.currentTarget===((y=o(n))==null?void 0:y.querySelector("button"))&&h.stopPropagation(),q(r,!o(r))}var c=Av();xe("click",Ae,()=>q(r,!1));var s=k(c);{var d=h=>{var m=fe(),y=Q(m);Fe(y,()=>e.button,()=>({toggle:l})),w(h,m)},p=h=>{var m=Iv();m.__click=l;var y=k(m);zv(y),B(()=>{ee(m,"aria-label",i()),ee(m,"aria-expanded",o(r))}),w(h,m)};V(s,h=>{e.button?h(d):h(p,!1)})}var u=I(s,2);{var f=h=>{var m=jv(),y=k(m);Fe(y,()=>e.children),Le(1,m,()=>ia,()=>({duration:50,start:.85})),w(h,m)};V(u,h=>{o(r)&&h(f)})}tt(c,h=>q(n,h),()=>o(n)),B(()=>be(c,1,`context-menu ${a()??""}`,"svelte-827qd7")),w(t,c)}ue(["click"]);var Mv=C("<!> ",1),Dv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function qv(t,e){ie(e,!0);let i=O(e,"url",7);const r=window.innerWidth<Ci&&typeof navigator.share<"u";ct(()=>{i(i()+"?utm_source=tpi")});function n(s,d){if(!r){d(s);return}ce(se.ShareTitle,null,{title:e.title,url:zi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){ce(se.ShareTitle,null,{title:e.title,url:zi(),method:"copy"}),_v(i())}function c(){ce(se.ShareTitle,null,{title:e.title,url:zi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Lv(t,{button:(d,p)=>{let u=()=>p==null?void 0:p().toggle;Ii(d,{onclick:f=>n(f,u()),children:(f,h)=>{var m=Mv(),y=Q(m);kv(y);var b=I(y);B(g=>Y(b,` ${g??""}`),[()=>te("Share")]),w(f,m)},$$slots:{default:!0}})},children:(d,p)=>{var u=Dv(),f=Q(u);f.__click=l;var h=k(f);Tv(h);var m=I(h),y=I(f,2);y.__click=c;var b=k(y);Pv(b);var g=I(b);B((S,_)=>{Y(m,` ${S??""}`),Y(g,` ${_??""}`)},[()=>te("Copy URL"),()=>te("Email")]),w(d,u)},$$slots:{button:!0,default:!0}}),ae()}ue(["click"]);var Ov=nt('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Rv(t){var e=Ov();w(t,e)}var Nv=C("<!> ",1);function Bv(t,e){ie(e,!0);function i(){Fd(e.title),ce(se.TrailerClick,e.title)}Ii(t,{onclick:i,children:(a,r)=>{var n=Nv(),l=Q(n);Rv(l);var c=I(l);B(s=>Y(c,` ${s??""}`),[()=>te("Watch Trailer")]),w(a,n)},$$slots:{default:!0}}),ae()}var Fv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Vv(t,e){const i=O(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=F(()=>Math.max(o(a),o(r)));var l=Fv(),c=k(l);kn(c,{get embeddable_url(){return i()},muted:!0,loop:!0}),B(()=>Ve(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),xt(l,"clientWidth",s=>q(a,s)),xt(l,"clientHeight",s=>q(r,s)),w(t,l)}var Hv=C("<div> </div>"),Uv=C('<img alt=""/>'),Wv=C('<div><div class="header svelte-16ajinh"><div><!></div> <div id="title"> </div> <div class="info svelte-16ajinh"><div class="imdb svelte-16ajinh"><!> </div> <!> <div> </div> <div class="capitalize svelte-16ajinh"> </div> <!></div> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main"><!> <!> <!> <!></div></div> <div><!></div>',1);function jn(t,e){var Me;ie(e,!0);const i=O(e,"small",3,!1),a=O(e,"useVideoBackground",3,!0),r=!!((Me=window.PlayPilotLinkInjections)!=null&&Me.no_affiliate);Dr("title",e.title);const n=F(()=>(!i()||r)&&e.title.description);let l=G(!1),c=G(!1),s=G(!1),d=G(!1);Ke(()=>{a()&&e.title.embeddable_url&&Lo(xn(e.title.embeddable_url)).then(ve=>{q(d,ve,!0)})});var p=Wv(),u=Q(p);let f;var h=k(u),m=k(h);let y;var b=k(m);lr(b,{get title(){return e.title},onload:()=>q(l,!0),lazy:!1});var g=I(m,2);let S;var _=k(g);Nt(g,(ve,Oe)=>qe==null?void 0:qe(ve,Oe),()=>2);var P=I(g,2),M=k(P),z=k(M);Sn(z,{});var A=I(z),H=I(M,2);Qu(H,{get genres(){return e.title.genres}});var D=I(H,2),j=k(D),E=I(D,2),T=k(E),x=I(E,2);{var R=ve=>{var Oe=Hv(),yt=k(Oe);B(ri=>Y(yt,`${e.title.length??""} ${ri??""}`),[()=>te("Minutes")]),w(ve,Oe)};V(x,ve=>{!i()&&e.title.length&&ve(R)})}var U=I(P,2),Z=k(U);{var W=ve=>{Bv(ve,{get title(){return e.title}})};V(Z,ve=>{e.title.embeddable_url&&ve(W)})}var N=I(Z,2);{let ve=F(()=>Do(e.title));qv(N,{get title(){return e.title.title},get url(){return o(ve)}})}var K=I(h,2),X=k(K);{var J=ve=>{vv(ve,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>ce(se.ExpandTitleDescription,e.title)})};V(X,ve=>{o(n)&&ve(J)})}var le=I(X,2);{var oe=ve=>{cv(ve,{get playlinks(){return e.title.providers},get title(){return e.title}})};V(le,ve=>{r||ve(oe)})}var ke=I(le,2);bv(ke,{get title(){return e.title}});var Ce=I(ke,2);wv(Ce,{get title(){return e.title}});var de=I(u,2);let me;var ge=k(de);{var je=ve=>{Vv(ve,{get embeddable_url(){return e.title.embeddable_url}})},Xe=ve=>{var Oe=fe(),yt=Q(Oe);$i(yt,()=>o(s),ri=>{var Et=Uv();let $;B(re=>{ee(Et,"src",re),$=be(Et,1,"svelte-16ajinh",null,$,{loaded:o(c),blur:o(s)})},[()=>nr(o(s)?e.title.standing_poster:e.title.medium_poster)]),xe("load",Et,()=>q(c,!0)),xe("error",Et,()=>q(s,!0)),w(ri,Et)}),w(ve,Oe)};V(ge,ve=>{a()&&o(d)?ve(je):ve(Xe,!1)})}B(ve=>{f=be(u,1,"content svelte-16ajinh",null,f,{small:i()}),y=be(m,1,"poster svelte-16ajinh",null,y,{loaded:o(l)}),S=be(g,1,"heading svelte-16ajinh",null,S,{truncate:i()}),Y(_,e.title.title),Y(A,` ${e.title.imdb_score??""}`),Y(j,e.title.year),Y(T,ve),me=be(de,1,"background svelte-16ajinh",null,me,{small:i()})},[()=>te(`Type: ${e.title.type}`)]),w(t,p),ae()}function ra(t,e){const{onclick:i}=e;function a(r){return r.button!==1?null:(i(r),r)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const Go={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},An={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Gv({key:t}){var a,r,n;if(!kt("tracking"))return 0;const e=(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:r[t];if(e!==void 0)return e;(n=window.PlayPilotLinkInjections)!=null&&n.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function Ko(t){const e=Gv(t);return Math.floor(e*t.numberOfVariants)}function Kv(t){var i;const e=Ko(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function Yv(t,e=1){return kt("tracking")?Ko(t)===e:!1}function Zv(t){const e=Kv(t);ce(se.SplitTestView,null,{key:t.key,variant:e})}var Jv=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Qv=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Xv=C('<button class="button svelte-1mt6g1y"> </button>'),$v=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),ef=C('<div class="background svelte-1mt6g1y"></div>'),tf=C("<!> <!>",1),af=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Yo(t,e){ie(e,!0),ce(se.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),Zv(An.TopScrollFormat);const i=F(()=>e.campaign.disclaimer),a=F(()=>e.campaign.content),r=F(()=>e.campaign.cta),n=F(()=>o(a).format),l=F(()=>o(a).header),c=F(()=>o(a).header_logo),s=F(()=>o(a).image_uuid),d=F(()=>o(r).header),p=F(()=>o(r).url),u=F(()=>o(n)==="large"),f=F(()=>Ao(o(s),Go.TopScrollBackground)),h=F(()=>Ao(o(s),Go.TopScrollContent));let m=G(0);function y(){ce(se.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var b=af();b.__click=y;let g,S;var _=k(b),P=k(_);{var M=D=>{var j=Jv();B(()=>{ee(j,"src",o(h)),ee(j,"alt",o(l))}),w(D,j)},z=D=>{var j=$v(),E=Q(j);{var T=W=>{var N=Qv();B(()=>ee(N,"src",o(c))),w(W,N)};V(E,W=>{o(c)&&W(T)})}var x=I(E,2),R=k(x),U=I(x,2);{var Z=W=>{var N=Xv(),K=k(N);B(()=>Y(K,o(d))),w(W,N)};V(U,W=>{o(d)&&W(Z)})}B(()=>Y(R,o(l))),w(D,j)};V(P,D=>{o(u)?D(M):D(z,!1)})}var A=I(_,2);{var H=D=>{var j=tf(),E=Q(j);{var T=U=>{var Z=ef();let W;B(()=>W=Ve(Z,"",W,{"--background":`url('${o(f)??""}')`})),w(U,Z)};V(E,U=>{o(s)&&U(T)})}var x=I(E,2);{var R=U=>{In(U,{get disclaimer(){return o(i)}})};V(x,U=>{o(i)&&U(R)})}w(D,j)};V(A,D=>{o(u)||D(H)})}Nt(b,(D,j)=>ra==null?void 0:ra(D,j),()=>({onclick:y})),Ei(()=>xt(b,"clientWidth",D=>q(m,D))),B(()=>{ee(b,"href",o(p)),g=be(b,1,"top-scroll svelte-1mt6g1y",null,g,{simple:o(u)}),S=Ve(b,"",S,{"--width":`${o(m)??""}px`})}),w(t,b),ae()}ue(["click"]);var rf=C('<div class="content svelte-r7ubzi"><!></div>'),nf=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function lf(t,e){let i=G(!1);var a=nf();a.__touchstart=()=>q(i,!o(i));var r=k(a);Fe(r,()=>e.children);var n=I(r,2);{var l=c=>{var s=rf(),d=k(s);Fe(d,()=>e.content),Le(1,s,()=>ti,()=>({duration:100})),w(c,s)};V(n,c=>{o(i)&&c(l)})}xe("mouseenter",a,()=>q(i,!0)),xe("mouseleave",a,()=>q(i,!1)),w(t,a)}ue(["touchstart"]);var of=C('<div class="info svelte-qcpiki"><!></div>'),sf=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),cf=C('<span class="name svelte-qcpiki"> </span>'),df=C('<div class="subheader svelte-qcpiki"> </div>'),pf=C('<div class="action svelte-qcpiki"> </div>'),uf=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),vf=C('<img class="background svelte-qcpiki" alt=""/>'),ff=C('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),hf=C('<div class="disclaimer svelte-qcpiki"><!></div>'),gf=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Zo(t,e){ie(e,!0);const i=O(e,"compact",3,!1),a=F(()=>e.campaign.disclaimer),r=F(()=>e.campaign.content),n=F(()=>e.campaign.cta),l=F(()=>e.campaign.campaign_type),c=F(()=>o(r).header),s=F(()=>o(r).subheader),d=F(()=>o(r).header_logo),p=F(()=>o(r).image),u=F(()=>o(r).video),f=F(()=>o(n).header),h=F(()=>o(n).url),m=F(()=>o(n).subheader);let y=G(0);ce(se.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function b(){ce(se.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var g=gf();let S;g.__click=b;var _=k(g);{var P=T=>{var x=of(),R=k(x);{var U=W=>{lf(W,{content:K=>{var X=Xt();B(()=>Y(X,o(m))),w(K,X)},children:(K,X)=>{var J=Xt("Ad");w(K,J)},$$slots:{content:!0,default:!0}})},Z=W=>{var N=Xt();B(()=>Y(N,o(m))),w(W,N)};V(R,W=>{i()?W(U):W(Z,!1)})}w(T,x)};V(_,T=>{o(m)&&T(P)})}var M=I(_,2);{var z=T=>{var x=uf(),R=k(x);{var U=oe=>{var ke=sf();B(()=>ee(ke,"src",o(d))),w(oe,ke)};V(R,oe=>{o(d)&&oe(U)})}var Z=I(R,2),W=k(Z);{var N=oe=>{var ke=cf(),Ce=k(ke);B(()=>Y(Ce,o(c))),w(oe,ke)};V(W,oe=>{o(c)&&oe(N)})}var K=I(W,2);{var X=oe=>{var ke=df(),Ce=k(ke);B(()=>Y(Ce,o(s))),w(oe,ke)};V(K,oe=>{o(s)&&oe(X)})}var J=I(Z,2);{var le=oe=>{var ke=pf(),Ce=k(ke);B(()=>Y(Ce,o(f))),w(oe,ke)};V(J,oe=>{o(f)&&oe(le)})}xt(x,"clientHeight",oe=>q(y,oe)),w(T,x)};V(M,T=>{(o(d)||o(c)||o(s)||o(f))&&T(z)})}var A=I(M,2);{var H=T=>{var x=vf();B(()=>ee(x,"src",o(p))),w(T,x)},D=T=>{var x=fe(),R=Q(x);{var U=Z=>{var W=ff();W.muted=!0;var N=k(W);B(()=>ee(N,"src",o(u))),w(Z,W)};V(R,Z=>{o(l)==="video"&&o(u)&&Z(U)},!0)}w(T,x)};V(A,T=>{o(l)==="image"&&o(p)?T(H):T(D,!1)})}var j=I(A,2);{var E=T=>{var x=hf();let R;var U=k(x);In(U,{get disclaimer(){return o(a)}}),B(()=>R=Ve(x,"",R,{"--offset":`${o(y)??""}px`})),w(T,x)};V(j,T=>{o(a)&&T(E)})}Nt(g,(T,x)=>ra==null?void 0:ra(T,x),()=>({onclick:b})),B(()=>{ee(g,"href",o(h)),S=be(g,1,"display svelte-qcpiki",null,S,{compact:i()})}),w(t,g),ae()}ue(["click"]);var mf=C('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function yf(t,e){var s,d;ie(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",a=(d=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:d.explore_navigation_path;nn();var r=mf();r.__click=()=>ce(se.CardToExploreCta);var n=k(r);ee(n,"src",i);var l=I(n,4),c=k(l);Bt(c,{}),B(()=>ee(r,"href",a)),w(t,r),ae()}ue(["click"]);function bf(t,e){var f,h;ie(e,!0);const i=m=>{var y=fe(),b=Q(y);{var g=_=>{Yo(_,{get campaign(){return l}})},S=_=>{yf(_,{})};V(b,_=>{l?_(g):_(S,!1)})}w(m,y)},a=m=>{var y=fe(),b=Q(y);{var g=S=>{Zo(S,{get campaign(){return c}})};V(b,S=>{c&&S(g)})}w(m,y)},r=O(e,"initialScrollPosition",3,0),n=po(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=Pa("top_scroll"),c=Pa("card"),s=(h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||s&&!document.querySelector(En);let p=!1;ce(se.TitleModalView,e.title),ct(()=>{const m=Date.now();return()=>ce(se.TitleModalClose,e.title,{time_spent:Date.now()-m})});function u(){p||(ce(se.TitleModalScroll,e.title),p=!0)}{let m=F(()=>d?i:null),y=F(()=>c?a:null);fr(t,{onscroll:u,get initialScrollPosition(){return r()},get bubble(){return o(m)},get prepend(){return o(y)},tall:!0,children:(b,g)=>{jn(b,ln({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}ae()}var wf=C(" <strong> </strong>",1),_f=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),xf=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),kf=C('<button class="more svelte-ke01cs"> </button>'),Sf=C('<div class="header svelte-ke01cs"><div class="heading svelte-ke01cs" id="name"> </div> <!></div> <div class="content svelte-ke01cs"><div class="heading small svelte-ke01cs" id="credits"> </div> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function Tf(t,e){ie(e,!0);const i=F(()=>e.participant.name),a=F(()=>e.participant.birth_date),r=F(()=>e.participant.death_date),n=30;let l=G(Be([])),c=G(1),s=G(!0),d=G(!0);ct(u),kt("pixels")&&cr(Ea.ParticipantView,{participant:e.participant.name});function p(j){return new Date(j).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function u(){q(d,!0);try{const j=await fv(e.participant,{page:o(c)});q(l,[...o(l),...j],!0),q(s,(j==null?void 0:j.length)>=n)}catch{q(s,!1)}finally{q(d,!1),q(c,o(c)+1)}}var f=Sf(),h=Q(f),m=k(h),y=k(m);Nt(m,(j,E)=>qe==null?void 0:qe(j,E),()=>2);var b=I(m,2);{var g=j=>{var E=_f(),T=k(E),x=I(T),R=k(x),U=I(x);{var Z=W=>{var N=wf(),K=Q(N),X=I(K),J=k(X);B((le,oe)=>{Y(K,`, ${le??""} `),Y(J,oe)},[()=>te("Died On"),()=>p(o(r))]),w(W,N)};V(U,W=>{o(r)&&W(Z)})}B((W,N)=>{Y(T,`${W??""} `),Y(R,N)},[()=>te("Born On"),()=>p(o(a))]),w(j,E)};V(b,j=>{o(a)&&j(g)})}var S=I(h,2),_=k(S),P=k(_);Nt(_,(j,E)=>qe==null?void 0:qe(j,E),()=>3);var M=I(_,2),z=k(M);Pe(z,17,()=>o(l),Ie,(j,E)=>{Bo(j,{get title(){return o(E)},onclick:T=>vi({event:T,data:o(E)})})});var A=I(z,2);{var H=j=>{var E=fe(),T=Q(E);Pe(T,16,()=>({length:6}),Ie,(x,R)=>{var U=xf();w(x,U)}),w(j,E)},D=j=>{var E=fe(),T=Q(E);{var x=R=>{var U=kf();U.__click=u;var Z=k(U);B(W=>Y(Z,W),[()=>te("Show More")]),w(R,U)};V(T,R=>{o(s)&&R(x)},!0)}w(j,E)};V(A,j=>{o(d)?j(H):j(D,!1)})}B(j=>{Y(y,o(i)),Y(P,j)},[()=>te("Credits")]),w(t,f),ae()}ue(["click"]);function Ef(t,e){ie(e,!0);const i=O(e,"initialScrollPosition",3,0);let a=G(0);ce(se.ParticipantModalView,null,{participant:e.participant.name}),ct(()=>{const r=Date.now();return()=>ce(se.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),fr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{Tf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),rn("innerWidth",r=>q(a,r,!0)),ae()}var Pf=C('<div class="content svelte-16hba4m"><!></div>');function Cf(t,e){const i=O(e,"initialScrollPosition",3,0);fr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=Pf(),l=k(n);Vo(l,{}),w(a,n)},$$slots:{default:!0}})}function zf(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var If=nt('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function jf(t){var e=If();w(t,e)}var Af=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Lf=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Mf=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),Df=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function qf(t,e){ie(e,!0),Dr("scope","popover");const i=e.bubble&&Yv(An.TopScrollFormat,1),a=F(()=>({duration:Cn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),c=G(!1),s=G(0),d=G(0),p=G(0);ct(async()=>{await xa(),u(),await h(),e.append&&requestAnimationFrame(()=>{f(),h()}),await xa(),y()});function u(){if(!o(r))return;const{top:E,right:T,bottom:x,height:R}=o(r).getBoundingClientRect(),U=m();q(n,E-U<0&&window.innerHeight-x>E+R,!0);const Z=window.innerWidth-T-U;T+U>window.innerWidth&&(o(r).style.left=`${Z}px`)}function f(){q(l,o(s)>450)}async function h(){if(q(p,0),await new Promise(W=>requestAnimationFrame(W)),!o(r))return;const{top:E,height:T}=o(r).getBoundingClientRect(),x=m(),R=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,U=o(l)?o(d)+R:0,Z=o(n)?window.innerHeight-E-x-U:E+T-U-x;q(p,Math.min(Z,window.innerHeight*.8),!0)}function m(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function y(){var U;if(!((U=o(r))!=null&&U.firstChild))return;const E=o(r).firstChild,{offsetHeight:T,scrollHeight:x,scrollTop:R}=E;x<=T?q(c,!1):q(c,R+T<x)}var b=Df();let g,S;var _=k(b),P=k(_);Fe(P,()=>e.children);var M=I(P,2);{var z=E=>{var T=Af(),x=k(T),R=k(x);jf(R),Le(3,T,()=>ti,()=>({duration:100})),w(E,T)};V(M,E=>{o(c)&&E(z)})}var A=I(_,2);{var H=E=>{var T=Lf(),x=k(T);Fe(x,()=>e.bubble),Le(7,T,()=>Ca,()=>o(a)),w(E,T)};V(A,E=>{e.bubble&&E(H)})}var D=I(A,2);{var j=E=>{var T=Mf(),x=k(T);Fe(x,()=>e.append),Le(7,T,()=>Ca,()=>o(a)),xt(T,"clientHeight",R=>q(d,R)),w(E,T)};V(D,E=>{e.append&&o(l)&&E(j)})}tt(b,E=>q(r,E),()=>o(r)),B(()=>{g=be(b,1,"popover svelte-wxwoko",null,g,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),S=Ve(b,"",S,{"--max-height":o(p)?o(p)+"px":null})}),xe("scroll",_,y),Le(7,_,()=>Ca,()=>o(a)),xt(b,"clientHeight",E=>q(s,E)),w(t,b),ae()}var Of=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Rf(t,e){ie(e,!0);const i=p=>{var u=fe(),f=Q(u);{var h=m=>{Yo(m,{get campaign(){return r}})};V(f,m=>{r&&m(h)})}w(p,u)},a=p=>{var u=fe(),f=Q(u);{var h=m=>{Zo(m,{get campaign(){return n},compact:!0})};V(f,m=>{n&&m(h)})}w(p,u)},r=Pa("top_scroll"),n=Pa("card");let l=G(null);ce(se.TitlePopoverView,e.title),ct(()=>{c();const p=Date.now();return()=>ce(se.TitlePopoverClose,e.title,{time_spent:Date.now()-p})});function c(){const p=e.event.target;if(!(p!=null&&p.getClientRects))return;const u=Array.from(p.getClientRects()),h=u.map(y=>y.x).map(y=>Math.abs(y-e.event.clientX)),m=u[h.indexOf(Math.min(...h))];o(l).style.top=m.top+window.scrollY+"px",o(l).style.left=m.left+window.scrollX+"px",o(l).style.height=m.height+"px"}var s=Of(),d=k(s);{let p=F(()=>n?a:null),u=F(()=>r?i:null);qf(d,{get append(){return o(p)},get bubble(){return o(u)},children:(f,h)=>{jn(f,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}tt(s,p=>q(l,p),()=>o(l)),w(t,s),ae()}let hr=null,ji=null;function Nf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;ji&&gr();const i=t.currentTarget;hr=i,setTimeout(()=>{hr===i&&(ji=Rt(Rf,{target:On(),props:{event:t,title:e.title_details}}))},100)}async function gr(t=!0){if(ji){const e=Qi(ji,{outro:t});hr=null,ji=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Bf(t){if(!ji)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(fi)||e.closest(ii)||gr()}function Ff(){hr=null}function Vf(){return!!ji}var Hf=C('<div class="content svelte-c2erhr"><!></div>'),Uf=C("<div><!></div>"),Wf=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Gf=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Kf=C("<!> <!>",1),Yf=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Zf(t,e){ie(e,!0);const i=O(e,"initialIndex",3,0),a=300;let r,n=G(!1);ct(()=>{setTimeout(()=>{r==null||r.setIndex(i()),requestAnimationFrame(()=>q(n,!0))})}),fr(t,{blur:!0,dialog:c=>{var s=Yf(),d=Q(s);Ve(d,"",{},{"--transition-duration":"300ms"});var p=k(d);{const h=(b,g)=>{let S=()=>g==null?void 0:g().currentIndex;var _=fe(),P=Q(_);Pe(P,17,()=>e.items,Ie,(M,z,A)=>{var H=Uf();let D;H.__click=()=>r.setIndex(A);var j=k(H);{var E=T=>{var x=Hf(),R=k(x);Fe(R,()=>e.each,()=>o(z),S),Le(3,x,()=>ti,()=>({duration:o(n)?a:0})),w(T,x)};V(j,T=>{(Math.abs(A-S())===1||S()===A)&&T(E)})}B(()=>D=be(H,1,"item svelte-c2erhr",null,D,{active:A===S()})),w(M,H)}),w(b,_)},m=(b,g)=>{let S=()=>g==null?void 0:g().setIndex,_=()=>g==null?void 0:g().currentIndex,P=()=>g==null?void 0:g().reachedEnd;var M=Kf(),z=Q(M);{var A=j=>{var E=Wf();E.__click=()=>S()(_()-1);var T=k(E);Bt(T,{size:21,direction:"left",title:"Previous"}),w(j,E)};V(z,j=>{_()>0&&j(A)})}var H=I(z,2);{var D=j=>{var E=Gf();E.__click=()=>S()(_()+1);var T=k(E);Bt(T,{size:21,title:"Next"}),w(j,E)};V(H,j=>{P()||j(D)})}w(b,M)};let y=F(()=>o(n)?a:0);tt(Mo(p,{threshold:40,moveThreshold:40,get transitionDuration(){return o(y)},children:h,controls:m,$$slots:{default:!0,controls:!0}}),b=>r=b,()=>r)}var u=I(d,2),f=k(u);Pn(f,{size:"42px",onclick:()=>Mn(),"aria-label":"Close",children:(h,m)=>{_n(h,{size:24})},$$slots:{default:!0}}),Le(7,u,()=>ia),w(c,s)},$$slots:{dialog:!0}}),ae()}ue(["click"]);function Jf(t,e){ie(e,!0);const i=O(e,"initialIndex",3,0);Zf(t,{get items(){return e.titles},get initialIndex(){return i()},each:(r,n=ut,l=ut)=>{{let c=F(()=>{var s;return n().sid===((s=e.titles[l()])==null?void 0:s.sid)});jn(r,{get title(){return n()},get useVideoBackground(){return o(c)}})}},$$slots:{each:!0}}),ae()}const Qe=[];function vi({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&To(e))return;e==null||e.preventDefault(),Qe!=null&&Qe.length&&Ln();const c=On(),s={initialScrollPosition:r,...l},d=Qf({type:t,target:c,data:a,props:s});n&&Jo({type:t,injection:i,data:n}),Jo({type:t,injection:i,data:a,scrollPosition:r,component:d})}function Qf({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Rt(Ef,{target:e,props:{participant:i,...a}}):t==="explore"?Rt(Cf,{target:e,props:{...a}}):t==="titles-rail"?Rt(Jf,{target:e,props:{titles:i,...a}}):Rt(bf,{target:e,props:{title:i,...a}})}function Jo({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){Qe.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function Ln(t=!0){Qe.length&&(eh(),Qi(Qe[Qe.length-1].component,{outro:t}))}function Xf(t=!0){Ln(t),Qe.pop()}function Mn(t=!0){for(Ln(t);Qe.length>0;)Qe.pop()}function Qo(){return Qe[Qe.length-2]||null}function $f(){if(Qe.length<2)return;Xf();const t=Qe.pop();t&&vi({...t})}function eh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Ci?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(Qe[Qe.length-1].scrollPosition=e.scrollTop)}function th(t,e){if(To(t))return;let i=t.target;if(!i||(i.hasAttribute(fi)||(i=i.closest(ii)),!i))return;const a=i.getAttribute(fi);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),zf(()=>{gr(!1),vi({event:t,injection:r,data:r.title_details})},!Cn.current&&window.innerWidth>=Ci&&!window.matchMedia("(pointer: coarse)").matches))}var ih=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),ah=C('<!> <a target="_blank"> </a>',1),rh=C(" <!>.",1),nh=C("<!> <br/>",1),lh=C(" <br/>",1),oh=C('<span class="svelte-1to4glm"><!></span>'),sh=C('<p class="svelte-1to4glm"></p>');function ch(t,e){ie(e,!0);const i=O(e,"onclickmodal",3,()=>null);function a(s,d){ce(se.AfterArticlePlaylinkClick,s,{playlink:d})}function r(s,d,p){ce(se.AfterArticleModalButtonClick,d),i()(s,p)}var n=fe(),l=Q(n);{var c=s=>{var d=sh();Pe(d,21,()=>e.linkInjections,Ie,(p,u)=>{const f=F(()=>{const{key:S,title:_,title_details:P,after_article_style:M}=o(u);return{key:S,title:_,title_details:P,after_article_style:M}}),h=F(()=>{var S;return((S=o(f).title_details)==null?void 0:S.providers)||[]});var m=oh(),y=k(m);{var b=S=>{var _=nh(),P=Q(_);{var M=A=>{var H=ih(),D=Q(H),j=I(D);j.__click=x=>x.stopPropagation();var E=k(j);E.__click=x=>r(x,o(f).title_details,o(u));var T=k(E);B((x,R)=>{Y(D,`"${o(f).title??""}" ${x??""} `),Y(T,R)},[()=>te("Is Available To Stream"),()=>te("View Streaming Options")]),w(A,H)},z=A=>{var H=rh(),D=Q(H),j=I(D);Pe(j,17,()=>o(h),Ie,(E,T,x)=>{let R=()=>o(T).name,U=()=>o(T).url;var Z=ah(),W=Q(Z);{var N=J=>{var le=Xt();B(oe=>Y(le,oe),[()=>x===o(h).length-1?`, ${te("And")}`:","]),w(J,le)};V(W,J=>{x&&J(N)})}var K=I(W,2);K.__click=()=>a(o(f).title_details,R());var X=k(K);B(()=>{ee(K,"href",U()),Y(X,R())}),w(E,Z)}),B(E=>Y(D,`"${o(f).title??""}" ${E??""} `),[()=>te("Is Available To Stream On")]),w(A,H)};V(P,A=>{o(f).after_article_style==="modal_button"?A(M):A(z,!1)})}w(S,_)},g=S=>{var _=lh(),P=Q(_);B(M=>Y(P,`"${o(f).title??""}" ${M??""} `),[()=>te("Title Unavailable Suffix")]),w(S,_)};V(y,S=>{o(h).length?S(b):S(g,!1)})}B(()=>ee(m,"data-playpilot-injection-key",o(f).key)),w(p,m)}),w(s,d)};V(l,s=>{e.linkInjections.length&&s(c)})}w(t,n),ae()}ue(["click"]);let za=null;function dh(t,e){var l,c;if(za||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,r=(a?document.querySelector(a):null)||t[t.length-1],n=((c=window.PlayPilotLinkInjections)==null?void 0:c.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),za=Rt(ch,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>vi({event:s,injection:d,data:d.title_details})}})}function ph(){var t;za&&(Qi(za),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),za=null)}var uh=C('<p class="svelte-1epbbn0"> </p>');function vh(t,e){ie(e,!1),nn();var i=uh(),a=k(i);B(r=>Y(a,r),[()=>{var r,n;return((n=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.in_text_disclaimer_text)||te("In-Text Disclaimer")}]),w(t,i),ae()}let Ia=null;function fh(t){var n,l,c,s,d,p;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||Ia)return;const e=document.createElement("div"),i=(s=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:s.in_text_disclaimer_selector,a=(i?document.querySelector(i):null)||t[0],r=((p=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:p.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",a.insertAdjacentElement(r,e),Ia=Rt(vh,{target:e})}function hh(){var t;Ia&&(Qi(Ia),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Ia=null)}const fi="data-playpilot-injection-key",ii=`[${fi}]`;function gh(t,e={aiInjections:[],manualInjections:[]}){qn(),xh();const i=kh(e);if(!i.length)return[];const a=ui(t.map(d=>d.innerText).join(" ")),n=Th(i).filter(d=>a.includes(ui(d.sentence))),l={};let c=-1;for(const d of Ph(n)){c++;const p=t.findIndex(P=>ui(P.innerText).includes(ui(d.sentence))),u=t[p];if(!u)continue;const f=_o(d.title,u,["A"]);if(!(f!=null&&f.nodeValue)||xo(f)){const P=_o(d.title,u);if(P&&xo(P)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:m}=mh(d);let y=-1,b=!1;ir(u.innerHTML,d.title)===1&&(y=u.innerHTML.indexOf(d.title));const{phrase_before:S,phrase_after:_}=yh(u,d);if(y===-1&&(S||_)){const P=[S,d.title,_].filter(Boolean).join(" ");if(y=u.innerHTML.indexOf(P),y===-1){const M=yd(u.innerHTML,d.title,S||"",_||"");if(M){const{leadingSpaces:z,trailingSpaces:A}=bd(M.match);m.innerHTML=M.match.trim();const H=M.index+z,D=M.index+M.match.length-A;if(u.innerHTML.slice(H,D).includes("href="))continue;Dn(u.innerHTML,d.title,u,h,H,D)&&(y=M.index,b=!0)}}}if(y===-1&&(f!=null&&f.nodeValue)){const P=u.innerHTML.indexOf(f.nodeValue),M=u.innerHTML.indexOf(d.sentence),z=M===-1?u.innerHTML.indexOf(d.sentence.slice(0,20)):-1,A=d.sentence.split(" ")[0],D=ir(u.innerHTML,A)===1?u.innerHTML.indexOf(A):-1,j=pd(n.slice(0,c+1),d,["title","sentence"])-1,E=wd(f.nodeValue,u,j);y=Math.max(P,z,E,D,M,0)}if(y!==-1&&!b&&!Dn(u.innerHTML,d.title,u,h,y)){const P=xd(d.title,u.innerHTML);P>-1?Dn(u.innerHTML,d.title,u,h,P):l[d.key]="Injection would have lead to broken HTML."}}wh(n),bh();const s=Eh(i);return s.length&&dh(t,s),document.querySelector(ii)&&fh(t),i.filter(d=>d.title_details).map((d,p)=>{const u=!d.manual&&Ch(d,p,i),f=d.duplicate??u;f&&(l[d.key]=u?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${fi}="${d.key}"]`),m=$o(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,y=n.find(g=>g.key===d.key),b=m?l[d.key]||(y?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:f,failed:m,failed_message:b}})}function mh(t){var a;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=document.createElement("a");return i.dataset.playpilotPosterUrl=(a=t.title_details)==null?void 0:a.standing_poster,i.innerText=t.title,i.href=t.playpilot_url,i.target="_blank",i.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",i),{injectionElement:e,linkElement:i}}function Dn(t,e,i,a,r,n=-1){const l=p=>Array.from(p.querySelectorAll(`a, ${ii}`)).filter(u=>!u.innerText).length,c=document.createElement("div");c.innerHTML=t;const s=l(c),d=c.innerText;return n>0?c.innerHTML=hd(t,a.outerHTML,r,n):c.innerHTML=fd(t,e,a.outerHTML,r),Math.abs(c.innerText.length-d.length)>1||s!=l(c)?!1:(i.innerHTML=c.innerHTML,!0)}function yh(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(ir(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=gd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function bh(){const t=Array.from(document.querySelectorAll(`${ii} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const a=getComputedStyle(i);for(const r of e)a.getPropertyValue(r)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${r}`)}}function wh(t){window.addEventListener("mousemove",Bf),window.addEventListener("click",i=>th(i,t)),document.querySelectorAll(ii).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{Vf()||Nf(n,r)}),i.addEventListener("mouseleave",Ff))})}function qn(){document.querySelectorAll(ii).forEach(e=>_h(e.getAttribute(fi)||"")),ph(),hh(),Mn(!1),gr(!1)}function _h(t){var r;const e=document.querySelector(`[${fi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(n=>n.remove());const a=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=a||""}function xh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ii)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function kh({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Sh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Xo(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&$o(t)}function $o(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function Th(t){return es(t).filter(e=>e.in_text!==!1&&Xo(e))}function Eh(t){return es(t).filter(e=>e.after_article===!0&&Xo(e))}function es(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&ts(i,e)))}function Ph(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const a=i.title.length-e.title.length;return a!==0?a:0})}function Ch(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&ts(a,t))}function ts(t,e){return t.title===e.title&&ui(t.sentence)===ui(e.sentence)}function On(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function zh(){const t=pi();if(!t)throw new Error("No token was provided");try{return await await ei(`/domains/config?api-token=${t}`)||null}catch{return null}}ue(["click"]),ue(["input"]),ue(["click"]),ue(["click"]),ue(["click"]),ue(["mousedown","touchstart"]),ue(["mousedown","touchstart"]),ue(["click"]),ue(["click"]),ue(["click"]),ue(["click"]),ue(["click"]),ue(["click"]);function Ih(t,e){ie(e,!0);const i=100;let a=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){n();return}if(!window.__tcfapi){a<i&&setTimeout(r,100),a++;return}window.__tcfapi("addEventListener",2,(l,c)=>{if(!c)return;const{purpose:s,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const p=u=>s.consents[u]===!0;kd({ads:p(1),pixels:p(1)&&p(7),split_tests:p(9)&&p(10),tracking:p(7)&&p(8),affiliate:p(1)&&p(7)}),n()})}function n(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ae()}var jh=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Ah=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Lh=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Mh=C('<button class="svelte-1tp7i1s"></button>'),Dh=C("<small>You are using the beta version of TPI</small>"),qh=C('<button class="svelte-1tp7i1s">Use beta script</button>'),Oh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Rh=C("<option> </option>"),Nh=C('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function Bh(t,e){ie(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(Be(d())),l=G(!1),c=null,s=G(184);on(()=>{c&&clearInterval(c)});function d(){var M,z,A,H,D,j;const g=window.PlayPilotLinkInjections,S=((M=g.evaluated_link_injections)==null?void 0:M.filter(E=>!E.failed))||[],_=((z=g.evaluated_link_injections)==null?void 0:z.filter(E=>E.failed))||[],P=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:g.domain_sid},{label:"Organization",data:g.organization_sid},{label:"HTML selector",data:g.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([E,T])=>({label:E,data:T})),[`Succesful injections (${S.length})`]:S.map(E=>({label:E.title,data:E.sentence})),[`Failed injections (${_.length})`]:_.map(E=>({label:E.title,data:`Reason: ${E.failed_message} | Sentence: ${E.sentence}`})),[`Fetched ads (${((A=g.ads)==null?void 0:A.length)||0})`]:(H=g.ads)==null?void 0:H.map(E=>({label:E.campaign_name,data:E})),[`Tracking events (${((D=g.tracked_events)==null?void 0:D.length)||0})`]:(j=g.tracked_events)==null?void 0:j.map(E=>({label:E.event,data:E.payload})),[`Visible pixels (${P.length})`]:P.map((E,T)=>({label:T+1,data:E.src}))}}function p(g){o(l)||(a.push(g.key),q(l,i.some(S=>a.slice(a.length-S.length,a.length).join("")===S),!0),c=setInterval(()=>q(n,d(),!0),200))}function u(g){window.PlayPilotLinkInjections.ads.unshift({campaign_format:g,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function f(g){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(An).forEach(({key:S,numberOfVariants:_})=>{const P=1/_;window.PlayPilotLinkInjections.split_test_identifiers[S]=Math.min(P*g,1)})}function h(){var _,P;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(P=(_=window.PlayPilotLinkInjections)==null?void 0:_.destroy)==null||P.call(_);const S=document.createElement("script");for(const M of g.attributes)S.setAttribute(M.name,M.value);S.getAttribute("onload")||S.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),S.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",S),g.remove()}var m=fe();xe("keydown",Ae,p);var y=Q(m);{var b=g=>{var S=Nh(),_=I(k(S),4);{var P=de=>{var me=jh();w(de,me)};V(_,de=>{var me,ge,je;(me=window.PlayPilotLinkInjections.config)!=null&&me.exclude_urls_pattern&&zi().match((je=(ge=window.PlayPilotLinkInjections)==null?void 0:ge.config)==null?void 0:je.exclude_urls_pattern)&&de(P)})}var M=I(_,2);Pe(M,17,()=>Object.entries(o(n)),Ie,(de,me)=>{var ge=F(()=>ua(o(me),2));let je=()=>o(ge)[0],Xe=()=>o(ge)[1];var Me=Lh(),ve=k(Me),Oe=k(ve),yt=I(ve,2);{var ri=$=>{var re=fe(),_e=Q(re);{var pt=Re=>{var Sr=fe(),Wt=Q(Sr);Pe(Wt,17,Xe,Ie,(Ri,as,ig,ag)=>{let Gh=()=>o(as).label,Kh=()=>o(as).data;var rs=Ah(),ns=k(rs),Yh=k(ns),Zh=I(ns,2),Jh=k(Zh);B(Qh=>{Y(Yh,Gh()),Y(Jh,Qh)},[()=>JSON.stringify(Kh())]),w(Ri,rs)}),w(Re,Sr)};V(_e,Re=>{Array.isArray(Xe())&&Re(pt)})}w($,re)},Et=$=>{var re=Xt("No data");w($,re)};V(yt,$=>{var re;(re=Xe())!=null&&re.length?$(ri):$(Et,!1)})}B(()=>Y(Oe,je())),w(de,Me)});var z=I(M,4);z.__click=()=>u("card");var A=I(z,2);A.__click=()=>u("top_scroll");var H=I(A,6);Pe(H,16,()=>({length:4}),Ie,(de,me,ge)=>{var je=Mh();je.__click=()=>f(ge),je.textContent=ge,w(de,je)});var D=I(H,4);D.__click=()=>console.log(un(window.PlayPilotLinkInjections.config));var j=I(D,2);j.__click=()=>console.log(un(window.PlayPilotLinkInjections.config).pageText);var E=I(j,4);E.__click=function(...de){var me;(me=e.onrerender)==null||me.apply(this,de)};var T=I(E,2);{var x=de=>{var me=Dh();w(de,me)},R=de=>{var me=qh();me.__click=h,w(de,me)};V(T,de=>{r?de(x):de(R,!1)})}var U=I(T,2);{var Z=de=>{var me=Oh();me.__click=()=>{ur(),window.PlayPilotLinkInjections.config.explore_use_router=!aa(),pr()},w(de,me)};V(U,de=>{aa()||de(Z)})}var W=I(U,4),N=I(k(W),2);Rc(N,window.PlayPilotLinkInjections.region),N.__change=de=>{ur(),window.PlayPilotLinkInjections.region=de.target.value,pr()};var K=I(W,2),X=I(k(K),2);X.__change=de=>{ur(),window.PlayPilotLinkInjections.language=de.target.value,pr()},Pe(X,21,()=>Object.entries(v),Ie,(de,me)=>{var ge=F(()=>ua(o(me),2));let je=()=>o(ge)[0],Xe=()=>o(ge)[1];var Me=Rh(),ve=k(Me),Oe={};B(yt=>{io(Me,yt),Y(ve,je()),Oe!==(Oe=Xe())&&(Me.value=(Me.__value=Xe())??"")},[()=>Xe()===Ta()]),w(de,Me)});var J=I(K,4),le=I(k(J),2);ee(le,"min",80),ee(le,"max",240),ee(le,"step",8),le.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(s)}px`);var oe=I(le,2),ke=k(oe),Ce=I(J,4);Ce.__click=()=>q(l,!1),B(()=>Y(ke,o(s))),Sa(le,()=>o(s),de=>q(s,de)),w(g,S)};V(y,g=>{o(l)&&g(b)})}w(t,m),ae()}ue(["click","change","input"]);function Fh(t,e){ie(e,!1);const i=Array.from(document.querySelectorAll(ii)),a=[],r=Date.now();let n=!1,l=null;ct(()=>{er()||c()});function c(){l=new IntersectionObserver(s),i.forEach(u=>{l.observe(u)})}function s(u){u.forEach(f=>{if(!f.isIntersecting)return;const h=f.target.getAttribute(fi);h&&a.push(h),l.unobserve(f.target)})}function d(){const{scrollHeight:u,scrollTop:f,clientHeight:h}=document.documentElement;return f/(u-h)*100}function p(){var f,h;if(n||document.visibilityState!=="hidden")return;n=!0;const u=Date.now();ce(se.UserLeft,null,{time_start:r,time_end:u,time_spent:u-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(f=window.PlayPilotLinkInjections)==null?void 0:f.tracked_events)==null?void 0:h.map(m=>m.event))||[],scroll_percentage:d()})}nn(),xe("visibilitychange",Ae,p),ae()}function Vh(t,e){ie(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new vr,r=.7,n="[data-playpilot-poster]";let l=G(0),c={},s=null;const d=F(()=>o(l)<Ci);on(h);function p(){var _,P;if((P=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&P.disable_scroll_reveal_posters||!o(d))return;m();const y=window.innerHeight,b=new vr,g=y*r,S=y-g;for(const M of i){const{top:z}=M.getBoundingClientRect();z<g&&z>S&&b.add(M)}for(const M of b){if(a.has(M))continue;const z=M.dataset.playpilotPosterUrl;z in c&&c[z]!==M||(u(M,z),a.add(M),c[z]=M)}}function u(y,b){const g=document.createElement("img");g.classList.add("playpilot-floating-poster"),g.dataset.playpilotPoster="",g.src=b,g.alt="",g.onload=()=>g.classList.add("loaded"),y.insertAdjacentElement("afterbegin",g)}function f(y){const b=y.querySelector(n);b&&(b.classList.add("animating-out"),setTimeout(()=>b.remove(),500))}function h(){for(const y of Array.from(document.querySelectorAll(n)))y.remove()}function m(){s&&clearTimeout(s),s=setTimeout(()=>{for(const y of a)f(y),a.delete(y),c={}},1e3)}xe("scroll",Ae,p),rn("innerWidth",y=>q(l,y,!0)),ae()}var Hh=C("<!> <!>",1),Uh=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function Wh(t,e){ie(e,!0);let i=G(Be([])),a=G(null),r=G(Be(er()));ho();let n=G(!1),l=G(!0),c=G(!0),s=G(Be([]));const d=F(()=>o(a)||{}),p=F(()=>Kn(o(d).ai_injections,()=>[],!0)),u=F(()=>Kn(o(d).manual_injections,()=>[],!0)),f=F(()=>pn(o(i))),h=y();Ke(()=>{o(r)&&!o(l)&&b()}),pr(),on(qn);async function m(){ar()||(await h,zd(),ce(se.ArticlePageView),!(!o(p).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await zo())))}async function y(){var T;q(l,!0);try{o(r)&&q(n,await fo({throwError:!0}),!0)}catch{ce(se.AuthFailed)}try{const x=window.PlayPilotLinkInjections.config||await zh()||{};if(window.PlayPilotLinkInjections.config=x,x!=null&&x.custom_style&&S(x.custom_style||""),x!=null&&x.explore_navigation_selector&&Iu(),x!=null&&x.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),x!=null&&x.domain_sid&&Po({organizationSid:x.organization_sid,domainSid:x.domain_sid}),q(c,sd(x),!0),o(c))return;x!=null&&x.html_selector&&(window.PlayPilotLinkInjections.selector=x==null?void 0:x.html_selector),q(i,un(window.PlayPilotLinkInjections.config).elements,!0)}catch(x){ce(se.FetchingConfigFailed),console.error("TPI Config failed to fetch",x);return}try{if(q(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),q(a,o(a)||await bo(o(f),{maxTries:1,runAiWhenRelevant:!ar()}),!0),q(l,!1),!o(a)||(T=window.PlayPilotLinkInjections.config)!=null&&T.disable_public_injections&&!(o(r)&&o(n)))return;if(Po({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){g({aiInjections:o(p),manualInjections:o(u)});return}if(!o(r)||ar())return;q(a,await bo(o(f),{requireCompletedResult:!0,onpoll:x=>q(a,x,!0)}),!0),g({aiInjections:o(p),manualInjections:o(u)})}catch(x){console.error(x),ce(se.InjectionError,null,{message:x.message})}}function b(){g(Sh(o(s)))}function g(T={aiInjections:o(p),manualInjections:o(u)}){const x=gh(o(i),T);JSON.stringify(x)!==JSON.stringify(o(s))&&(q(s,x,!0),window.PlayPilotLinkInjections.evaluated_link_injections=x),o(r)||_(x)}function S(T){const x="playpilot-custom-style",R=document.getElementById(x),U=R||document.createElement("style");U.textContent=`body { ${T} }`,U.id=x,R||document.body.appendChild(U)}function _(T){const x=T.filter(U=>!U.failed),R=T.filter(U=>U.failed);if(x.length&&ce(se.ArticleInjected,null,{manual:x.filter(U=>U.manual).length,ai:x.filter(U=>!U.manual).length}),R.length){const U=Z=>R.filter(({failed_message:W})=>W==null?void 0:W.includes(Z)).length;ce(se.FailedInjectionsCount,null,{total:R.length,sentence_not_found:U("sentence was not found"),already_linked:U("already inside of a link"),broken_html:U("broken HTML"),duplicate:U("duplicate"),unknown:U("unknown reasons")})}}var P=Uh(),M=Q(P),z=k(M);V(z,T=>{});var A=I(z,2);Bh(A,{onrerender:b});var H=I(M,2);{var D=T=>{Tn(T,{get pixels(){return o(a).pixels}})};V(H,T=>{var x,R;(R=(x=o(a))==null?void 0:x.pixels)!=null&&R.length&&T(D)})}var j=I(H,2);$i(j,()=>o(s),T=>{var x=Hh(),R=Q(x);Fh(R,{});var U=I(R,2);Vh(U,{}),w(T,x)});var E=I(j,2);Ih(E,{onchange:m}),w(t,P),ae()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Rt(Wh,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),qn()}}})();