@playpilot/tpi 8.5.2 → 8.5.3
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 Yh=Object.defineProperty;var rs=Te=>{throw TypeError(Te)};var Zh=(Te,Ee,Ne)=
|
|
|
2
2
|
/*$vite$:1*/`,document.head.appendChild(Te);const Ee=!1;var Ne=Array.isArray,qa=Array.prototype.indexOf,Tr=Array.from,ds=Object.defineProperty,ri=Object.getOwnPropertyDescriptor,Fn=Object.getOwnPropertyDescriptors,ps=Object.prototype,us=Array.prototype,Er=Object.getPrototypeOf,Vn=Object.isExtensible;function Ri(t){return typeof t=="function"}const ut=()=>{};function vs(t){return typeof(t==null?void 0:t.then)=="function"}function fs(t){return t()}function Pr(t){for(var e=0;e<t.length;e++)t[e]()}function Hn(){var t,e,i=new Promise((a,r)=>{t=a,e=r});return{promise:i,resolve:t,reject:e}}function Un(t,e,i=!1){return t===void 0?i?e():e:t}function pa(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 Ye=2,Cr=4,Oa=8,Wn=1<<24,Ct=16,Wt=32,wi=64,Na=128,wt=512,Qe=1024,rt=2048,Gt=4096,st=8192,Kt=16384,Ra=32768,zt=65536,Gn=1<<17,Kn=1<<18,Bi=1<<19,Yn=1<<20,ua=32768,zr=1<<21,Ir=1<<22,ni=1<<23,It=Symbol("$state"),Zn=Symbol("legacy props"),hs=Symbol(""),Fi=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 jr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function gs(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ms(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ys(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function bs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function ws(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function _s(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function xs(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ks(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Ss(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ts(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const Jn=1,Qn=2,Xn=4,Es=8,Ps=16,Cs=1,zs=2,Is=4,js=8,As=16,Ls=1,Ms=2,Ds=4,qs=1,Os=2,We=Symbol(),Ns="http://www.w3.org/1999/xhtml",Rs="http://www.w3.org/2000/svg",Bs="@attach";function Fs(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Vs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function $n(t){return t===this.v}function el(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function tl(t){return!el(t,this.v)}let Vi=!1,Hs=!1;function Us(){Vi=!0}let Se=null;function Hi(t){Se=t}function Ar(t){return il().get(t)}function Lr(t,e){return il().set(t,e),e}function ie(t,e=!1,i){Se={p:Se,i:!1,c:null,e:null,s:t,x:null,l:Vi&&!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)Tl(a)}return t!==void 0&&(e.x=t),e.i=!0,Se=e.p,t??{}}function _i(){return!Vi||Se!==null&&Se.l===null}function il(t){return Se===null&&jr(),Se.c??(Se.c=new Map(Ws(Se)||void 0))}function Ws(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 al(){var t=xi;xi=[],Pr(t)}function Yt(t){if(xi.length===0&&!Wi){var e=xi;queueMicrotask(()=>{e===xi&&al()})}xi.push(t)}function Gs(){for(;xi.length>0;)al()}function rl(t){var e=we;if(e===null)return me.f|=ni,t;if(e.f&Ra)Ui(t,e);else{if(!(e.f&Na))throw t;e.b.error(t)}}function Ui(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 Ba=new Set;let he=null,Fa=null,Be=null,vt=[],Va=null,Mr=!1,Wi=!1;const gr=class gr{constructor(){oe(this,Ue);Pt(this,"committed",!1);Pt(this,"current",new Map);Pt(this,"previous",new Map);oe(this,ra,new Set);oe(this,na,new Set);oe(this,Ai,0);oe(this,Li,0);oe(this,Ia,null);oe(this,la,[]);oe(this,oa,[]);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=[],Fa=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)Ce(this,Ue,On).call(this,r,i);this.is_fork||Ce(this,Ue,ns).call(this),this.is_deferred()?(Ce(this,Ue,Ni).call(this,i.effects),Ce(this,Ue,Ni).call(this,i.render_effects),Ce(this,Ue,Ni).call(this,i.block_effects)):(Fa=this,he=null,ol(i.render_effects),ol(i.effects),Fa=null,(a=L(this,Ia))==null||a.resolve()),Be=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&ni||(this.current.set(e,e.v),Be==null||Be.set(e,e.v))}activate(){he=this,this.apply()}deactivate(){he===this&&(he=null,Be=null)}flush(){if(this.activate(),vt.length>0){if(ll(),he!==null&&he!==this)return}else L(this,Ai)===0&&this.process([]);this.deactivate()}discard(){for(const e of L(this,na))e(this);L(this,na).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,la))Xe(e,rt),ki(e);for(const e of L(this,oa))Xe(e,Gt),ki(e);ne(this,la,[]),ne(this,oa,[]),this.flush()}oncommit(e){L(this,ra).add(e)}ondiscard(e){L(this,na).add(e)}settled(){return(L(this,Ia)??ne(this,Ia,Hn())).promise}static ensure(){if(he===null){const e=he=new gr;Ba.add(he),Wi||gr.enqueue(()=>{he===e&&e.flush()})}return he}static enqueue(e){Yt(e)}apply(){}};ra=new WeakMap,na=new WeakMap,Ai=new WeakMap,Li=new WeakMap,Ia=new WeakMap,la=new WeakMap,oa=new WeakMap,Ue=new WeakSet,On=function(e,i){var p;e.f^=Qe;for(var a=e.first;a!==null;){var r=a.f,n=(r&(Wt|wi))!==0,l=n&&(r&Qe)!==0,s=l||(r&st)!==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:[]}),!s&&a.fn!==null){n?a.f^=Qe:r&Cr?i.effects.push(a):ba(a)&&(a.f&Ct&&i.block_effects.push(a),wa(a));var c=a.first;if(c!==null){a=c;continue}}var d=a.parent;for(a=a.next;a===null&&d!==null;)d===i.effect&&(Ce(this,Ue,Ni).call(this,i.effects),Ce(this,Ue,Ni).call(this,i.render_effects),Ce(this,Ue,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&rt?L(this,la):L(this,oa)).push(i),Ce(this,Ue,Nn).call(this,i.deps),Xe(i,Qe)},Nn=function(e){if(e!==null)for(const i of e)!(i.f&Ye)||!(i.f&ua)||(i.f^=ua,Ce(this,Ue,Nn).call(this,i.deps))},ns=function(){if(L(this,Li)===0){for(const e of L(this,ra))e();L(this,ra).clear()}L(this,Ai)===0&&Ce(this,Ue,ls).call(this)},ls=function(){var n;if(Ba.size>1){this.previous.clear();var e=Be,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Ba){if(l===this){i=!1;continue}const s=[];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;s.push(d)}if(s.length===0)continue;const c=[...l.current.keys()].filter(d=>!this.current.has(d));if(c.length>0){var r=vt;vt=[];const d=new Set,p=new Map;for(const u of s)sl(u,c,d,p);if(vt.length>0){he=l,l.apply();for(const u of vt)Ce(n=l,Ue,On).call(n,u,a);l.deactivate()}vt=r}}he=null,Be=e}this.committed=!0,Ba.delete(this)};let jt=gr;function nl(t){var e=Wi;Wi=!0;try{for(var i;;){if(Gs(),vt.length===0&&(he==null||he.flush(),vt.length===0))return Va=null,i;ll()}}finally{Wi=e}}function ll(){var t=ci;Mr=!0;var e=null;try{var i=0;for(Ua(!0);vt.length>0;){var a=jt.ensure();if(i++>1e3){var r,n;Ks()}a.process(vt),li.clear()}}finally{Mr=!1,Ua(t),Va=null}}function Ks(){try{ws()}catch(t){Ui(t,Va)}}let _t=null;function ol(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(Kt|st))&&ba(a)&&(_t=new Set,wa(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?zl(a):a.fn=null),(_t==null?void 0:_t.size)>0)){li.clear();for(const r of _t){if(r.f&(Kt|st))continue;const n=[r];let l=r.parent;for(;l!==null;)_t.has(l)&&(_t.delete(l),n.push(l)),l=l.parent;for(let s=n.length-1;s>=0;s--){const c=n[s];c.f&(Kt|st)||wa(c)}}_t.clear()}}_t=null}}function sl(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&Ye?sl(r,e,i,a):n&(Ir|Ct)&&!(n&rt)&&cl(r,e,a)&&(Xe(r,rt),ki(r))}}function cl(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&Ye&&cl(r,e,i))return i.set(r,!0),!0}return i.set(t,!1),!1}function ki(t){for(var e=Va=t;e.parent!==null;){e=e.parent;var i=e.f;if(Mr&&e===we&&i&Ct&&!(i&Kn))return;if(i&(wi|Wt)){if(!(i&Qe))return;e.f^=Qe}}vt.push(e)}function dl(t){let e=0,i=Lt(0),a;return()=>{ga()&&(o(i),Ha(()=>(e===0&&(a=Ot(()=>t(()=>oi(i)))),e+=1,()=>{Yt(()=>{e-=1,e===0&&(a==null||a(),a=void 0,oi(i))})})))}}var Ys=zt|Bi|Na;function Zs(t,e,i){new Js(t,e,i)}class Js{constructor(e,i,a){oe(this,Ge);Pt(this,"parent");oe(this,gt,!1);oe(this,mt);oe(this,Dn,null);oe(this,Ft);oe(this,Mi);oe(this,Vt);oe(this,yt,null);oe(this,ot,null);oe(this,Ht,null);oe(this,ii,null);oe(this,fi,null);oe(this,Di,0);oe(this,hi,0);oe(this,qi,!1);oe(this,gi,null);oe(this,mr,dl(()=>(ne(this,gi,Lt(L(this,Di))),()=>{ne(this,gi,null)})));ne(this,mt,e),ne(this,Ft,i),ne(this,Mi,a),this.parent=we.b,ne(this,gt,!!L(this,Ft).pending),ne(this,Vt,si(()=>{we.b=this;{var r=Ce(this,Ge,Rn).call(this);try{ne(this,yt,nt(()=>a(r)))}catch(n){this.error(n)}L(this,hi)>0?Ce(this,Ge,Sr).call(this):ne(this,gt,!1)}return()=>{var n;(n=L(this,fi))==null||n.remove()}},Ys))}is_pending(){return L(this,gt)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!L(this,Ft).pending}update_pending_count(e){Ce(this,Ge,Bn).call(this,e),ne(this,Di,L(this,Di)+e),L(this,gi)&&Zt(L(this,gi),L(this,Di))}get_effect_pending(){return L(this,mr).call(this),o(L(this,gi))}error(e){var i=L(this,Ft).onerror;let a=L(this,Ft).failed;if(L(this,qi)||!i&&!a)throw e;L(this,yt)&&(Je(L(this,yt)),ne(this,yt,null)),L(this,ot)&&(Je(L(this,ot)),ne(this,ot,null)),L(this,Ht)&&(Je(L(this,Ht)),ne(this,Ht,null));var r=!1,n=!1;const l=()=>{if(r){Vs();return}r=!0,n&&Ts(),jt.ensure(),ne(this,Di,0),L(this,Ht)!==null&&Ki(L(this,Ht),()=>{ne(this,Ht,null)}),ne(this,gt,this.has_pending_snippet()),ne(this,yt,Ce(this,Ge,kr).call(this,()=>(ne(this,qi,!1),nt(()=>L(this,Mi).call(this,L(this,mt)))))),L(this,hi)>0?Ce(this,Ge,Sr).call(this):ne(this,gt,!1)};var s=me;try{lt(null),n=!0,i==null||i(e,l),n=!1}catch(c){Ui(c,L(this,Vt)&&L(this,Vt).parent)}finally{lt(s)}a&&Yt(()=>{ne(this,Ht,Ce(this,Ge,kr).call(this,()=>{jt.ensure(),ne(this,qi,!0);try{return nt(()=>{a(L(this,mt),()=>e,()=>l)})}catch(c){return Ui(c,L(this,Vt).parent),null}finally{ne(this,qi,!1)}}))})}}gt=new WeakMap,mt=new WeakMap,Dn=new WeakMap,Ft=new WeakMap,Mi=new WeakMap,Vt=new WeakMap,yt=new WeakMap,ot=new WeakMap,Ht=new WeakMap,ii=new WeakMap,fi=new WeakMap,Di=new WeakMap,hi=new WeakMap,qi=new WeakMap,gi=new WeakMap,mr=new WeakMap,Ge=new WeakSet,Jh=function(){try{ne(this,yt,nt(()=>L(this,Mi).call(this,L(this,mt))))}catch(e){this.error(e)}ne(this,gt,!1)},Qh=function(){const e=L(this,Ft).pending;e&&(ne(this,ot,nt(()=>e(L(this,mt)))),jt.enqueue(()=>{var i=Ce(this,Ge,Rn).call(this);ne(this,yt,Ce(this,Ge,kr).call(this,()=>(jt.ensure(),nt(()=>L(this,Mi).call(this,i))))),L(this,hi)>0?Ce(this,Ge,Sr).call(this):(Ki(L(this,ot),()=>{ne(this,ot,null)}),ne(this,gt,!1))}))},Rn=function(){var e=L(this,mt);return L(this,gt)&&(ne(this,fi,Mt()),L(this,mt).before(L(this,fi)),e=L(this,fi)),e},kr=function(e){var i=we,a=me,r=Se;qt(L(this,Vt)),lt(L(this,Vt)),Hi(L(this,Vt).ctx);try{return e()}catch(n){return rl(n),null}finally{qt(i),lt(a),Hi(r)}},Sr=function(){const e=L(this,Ft).pending;L(this,yt)!==null&&(ne(this,ii,document.createDocumentFragment()),L(this,ii).append(L(this,fi)),Al(L(this,yt),L(this,ii))),L(this,ot)===null&&ne(this,ot,nt(()=>e(L(this,mt))))},Bn=function(e){var i;if(!this.has_pending_snippet()){this.parent&&Ce(i=this.parent,Ge,Bn).call(i,e);return}ne(this,hi,L(this,hi)+e),L(this,hi)===0&&(ne(this,gt,!1),L(this,ot)&&Ki(L(this,ot),()=>{ne(this,ot,null)}),L(this,ii)&&(L(this,mt).before(L(this,ii)),ne(this,ii,null)))};let Si=null;function pl(t){Si=t}function ze(t,e){return e}function Qs(t,e,i){for(var a=[],r=e.length,n=0;n<r;n++)Br(e[n].e,a,!0);Il(a,()=>{var l=a.length===0&&i!==null;if(l){var s=i,c=s.parentNode;lc(c),c.append(s),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)),Je(p.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Pe(t,e,i,a,r,n=null){var l=t,s=new Map,c=null,d=(e&Xn)!==0,p=(e&Jn)!==0,u=(e&Qn)!==0;if(d){var f=t;l=f.appendChild(Mt())}var h=null,m=qr(()=>{var E=i();return Ne(E)?E:E==null?[]:Tr(E)}),y,b=!0;function g(){Xs(_,y,l,e,a),h!==null&&(y.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):Fr(h.effect),x.first=h.effect):Ki(h.effect,()=>{h=null}))}var x=si(()=>{y=o(m);for(var E=y.length,D=new Set,z=he,A=null,O=xl(),j=0;j<E;j+=1){var M=y[j],P=a(M,j),T=b?null:s.get(P);T?(p&&Zt(T.v,M),u?Zt(T.i,j):T.i=j,O&&z.skipped_effects.delete(T.e)):(T=$s(b?l:null,A,M,P,j,r,e,i),b&&(T.o=!0,A===null?c=T:A.next=T,A=T),s.set(P,T)),D.add(P)}if(E===0&&n&&!h)if(b)h={fragment:null,effect:nt(()=>n(l))};else{var S=document.createDocumentFragment(),R=Mt();S.append(R),h={fragment:S,effect:nt(()=>n(R))}}if(!b)if(O){for(const[U,Q]of s)D.has(U)||z.skipped_effects.add(Q.e);z.oncommit(g),z.ondiscard(()=>{})}else g();o(m)}),_={effect:x,flags:e,items:s,first:c};b=!1}function Xs(t,e,i,a,r){var M,P,T,S;var n=(a&Es)!==0,l=e.length,s=t.items,c=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=s.get(y),b.o&&((M=b.a)==null||M.measure(),(u??(u=new Set)).add(b));for(g=0;g<l;g+=1){if(m=e[g],y=r(m,g),b=s.get(y),t.first??(t.first=b),!b.o){b.o=!0;var x=p?p.next:c;At(t,p,b),At(t,b,x),Dr(b,x,i),p=b,f=[],h=[],c=p.next;continue}if(b.e.f&st&&(Fr(b.e),n&&((P=b.a)==null||P.unfix(),(u??(u=new Set)).delete(b))),b!==c){if(d!==void 0&&d.has(b)){if(f.length<h.length){var _=h[0],E;p=_.prev;var D=f[0],z=f[f.length-1];for(E=0;E<f.length;E+=1)Dr(f[E],_,i);for(E=0;E<h.length;E+=1)d.delete(h[E]);At(t,D.prev,z.next),At(t,p,D),At(t,z,_),c=_,p=z,g-=1,f=[],h=[]}else d.delete(b),Dr(b,c,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=[];c!==null&&c.k!==y;)c.e.f&st||(d??(d=new Set)).add(c),h.push(c),c=c.next;if(c===null)continue;b=c}f.push(b),p=b,c=b.next}if(c!==null||d!==void 0){for(var A=d===void 0?[]:Tr(d);c!==null;)c.e.f&st||A.push(c),c=c.next;var O=A.length;if(O>0){var j=a&Xn&&l===0?i:null;if(n){for(g=0;g<O;g+=1)(T=A[g].a)==null||T.measure();for(g=0;g<O;g+=1)(S=A[g].a)==null||S.fix()}Qs(t,A,j)}}n&&Yt(()=>{var R;if(u!==void 0)for(b of u)(R=b.a)==null||R.apply()})}function $s(t,e,i,a,r,n,l,s){var c=Si,d=(l&Jn)!==0,p=(l&Ps)===0,u=d?p?Rr(i,!1,!1):Lt(i):i,f=l&Qn?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=nt(()=>n(t,u,f,s)),e!==null&&(e.next=h),h}finally{Si=c}}function Dr(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=ha(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 ul(t,e,i,a){const r=_i()?fa:qr;if(i.length===0&&t.length===0){a(e.map(r));return}var n=he,l=we,s=vl();function c(){Promise.all(i.map(d=>ec(d))).then(d=>{s();try{a([...e.map(r),...d])}catch(p){l.f&Kt||Ui(p,l)}n==null||n.deactivate(),va()}).catch(d=>{Ui(d,l)})}t.length>0?Promise.all(t).then(()=>{s();try{return c()}finally{n==null||n.deactivate(),va()}}):c()}function vl(){var t=we,e=me,i=Se,a=he;return function(n=!0){qt(t),lt(e),Hi(i),n&&(a==null||a.activate())}}function va(){qt(null),lt(null),Hi(null)}function fa(t){var e=Ye|rt,i=me!==null&&me.f&Ye?me:null;return we!==null&&(we.f|=Bi),{ctx:Se,deps:null,effects:null,equals:$n,f:e,fn:t,reactions:null,rv:0,v:We,wv:0,parent:i??we,ac:null}}function ec(t,e){let i=we;i===null&&gs();var a=i.b,r=void 0,n=Lt(We),l=!me,s=new Map;return fc(()=>{var f;var c=Hn();r=c.promise;try{Promise.resolve(t()).then(c.resolve,c.reject).then(()=>{d===he&&d.committed&&d.deactivate(),va()})}catch(h){c.reject(h),va()}var d=he;if(l){var p=!a.is_pending();a.update_pending_count(1),d.increment(p),(f=s.get(d))==null||f.reject(Fi),s.delete(d),s.set(d,c)}const u=(h,m=void 0)=>{if(d.activate(),m)m!==Fi&&(n.f|=ni,Zt(n,m));else{n.f&ni&&(n.f^=ni),Zt(n,h);for(const[y,b]of s){if(s.delete(y),y===d)break;b.reject(Fi)}}l&&(a.update_pending_count(-1),d.decrement(p))};c.promise.then(u,h=>u(null,h||"unknown"))}),ma(()=>{for(const c of s.values())c.reject(Fi)}),new Promise(c=>{function d(p){function u(){p===r?c(n):d(r)}p.then(u,u)}d(r)})}function V(t){const e=fa(t);return Ml(e),e}function qr(t){const e=fa(t);return e.equals=tl,e}function fl(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Je(e[i])}}function tc(t){for(var e=t.parent;e!==null;){if(!(e.f&Ye))return e.f&Kt?null:e;e=e.parent}return null}function Or(t){var e,i=we;qt(tc(t));try{t.f&=~ua,fl(t),e=Rl(t)}finally{qt(i)}return e}function hl(t){var e=Or(t);if(t.equals(e)||(he!=null&&he.is_fork||(t.v=e),t.wv=Ol()),!Pi)if(Be!==null)(ga()||he!=null&&he.is_fork)&&Be.set(t,e);else{var i=t.f&wt?Qe:Gt;Xe(t,i)}}let Nr=new Set;const li=new Map;let gl=!1;function Lt(t,e){var i={f:0,v:t,reactions:null,equals:$n,rv:0,wv:0};return i}function W(t,e){const i=Lt(t);return Ml(i),i}function Rr(t,e=!1,i=!0){var r;const a=Lt(t);return e||(a.equals=tl),Vi&&i&&Se!==null&&Se.l!==null&&((r=Se.l).s??(r.s=[])).push(a),a}function q(t,e,i=!1){me!==null&&(!Dt||me.f&Gn)&&_i()&&me.f&(Ye|Ct|Ir|Gn)&&!(tt!=null&&tt.includes(t))&&Ss();let a=i?Fe(e):e;return Zt(t,a)}function Zt(t,e){if(!t.equals(e)){var i=t.v;Pi?li.set(t,e):li.set(t,i),t.v=e;var a=jt.ensure();a.capture(t,i),t.f&Ye&&(t.f&rt&&Or(t),Xe(t,t.f&wt?Qe:Gt)),t.wv=Ol(),ml(t,rt),_i()&&we!==null&&we.f&Qe&&!(we.f&(Wt|wi))&&(ft===null?mc([t]):ft.push(t)),!a.is_fork&&Nr.size>0&&!gl&&ic()}return e}function ic(){gl=!1;var t=ci;Ua(!0);const e=Array.from(Nr);try{for(const i of e)i.f&Qe&&Xe(i,Gt),ba(i)&&wa(i)}finally{Ua(t)}Nr.clear()}function ac(t,e=1){var i=o(t),a=e===1?i++:i--;return q(t,i),a}function oi(t){q(t,t.v+1)}function ml(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],s=l.f;if(!(!a&&l===we)){var c=(s&rt)===0;if(c&&Xe(l,e),s&Ye){var d=l;Be==null||Be.delete(d),s&ua||(s&wt&&(l.f|=ua),ml(d,Gt))}else c&&(s&Ct&&_t!==null&&_t.add(l),ki(l))}}}function Fe(t){if(typeof t!="object"||t===null||It in t)return t;const e=Er(t);if(e!==ps&&e!==us)return t;var i=new Map,a=Ne(t),r=W(0),n=Jt,l=s=>{if(Jt===n)return s();var c=me,d=Jt;lt(null),ql(n);var p=s();return lt(c),ql(d),p};return a&&i.set("length",W(t.length)),new Proxy(t,{defineProperty(s,c,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&xs();var p=i.get(c);return p===void 0?p=l(()=>{var u=W(d.value);return i.set(c,u),u}):q(p,d.value,!0),!0},deleteProperty(s,c){var d=i.get(c);if(d===void 0){if(c in s){const p=l(()=>W(We));i.set(c,p),oi(r)}}else q(d,We),oi(r);return!0},get(s,c,d){var h;if(c===It)return t;var p=i.get(c),u=c in s;if(p===void 0&&(!u||(h=ri(s,c))!=null&&h.writable)&&(p=l(()=>{var m=Fe(u?s[c]:We),y=W(m);return y}),i.set(c,p)),p!==void 0){var f=o(p);return f===We?void 0:f}return Reflect.get(s,c,d)},getOwnPropertyDescriptor(s,c){var d=Reflect.getOwnPropertyDescriptor(s,c);if(d&&"value"in d){var p=i.get(c);p&&(d.value=o(p))}else if(d===void 0){var u=i.get(c),f=u==null?void 0:u.v;if(u!==void 0&&f!==We)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return d},has(s,c){var f;if(c===It)return!0;var d=i.get(c),p=d!==void 0&&d.v!==We||Reflect.has(s,c);if(d!==void 0||we!==null&&(!p||(f=ri(s,c))!=null&&f.writable)){d===void 0&&(d=l(()=>{var h=p?Fe(s[c]):We,m=W(h);return m}),i.set(c,d));var u=o(d);if(u===We)return!1}return p},set(s,c,d,p){var _;var u=i.get(c),f=c in s;if(a&&c==="length")for(var h=d;h<u.v;h+=1){var m=i.get(h+"");m!==void 0?q(m,We):h in s&&(m=l(()=>W(We)),i.set(h+"",m))}if(u===void 0)(!f||(_=ri(s,c))!=null&&_.writable)&&(u=l(()=>W(void 0)),q(u,Fe(d)),i.set(c,u));else{f=u.v!==We;var y=l(()=>Fe(d));q(u,y)}var b=Reflect.getOwnPropertyDescriptor(s,c);if(b!=null&&b.set&&b.set.call(p,d),!f){if(a&&typeof c=="string"){var g=i.get("length"),x=Number(c);Number.isInteger(x)&&x>=g.v&&q(g,x+1)}oi(r)}return!0},ownKeys(s){o(r);var c=Reflect.ownKeys(s).filter(u=>{var f=i.get(u);return f===void 0||f.v!==We});for(var[d,p]of i)p.v!==We&&!(d in s)&&c.push(d);return c},setPrototypeOf(){ks()}})}function yl(t){try{if(t!==null&&typeof t=="object"&&It in t)return t[It]}catch{}return t}function rc(t,e){return Object.is(yl(t),yl(e))}var Me,bl,wl,_l;function nc(){if(Me===void 0){Me=window,bl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;wl=ri(e,"firstChild").get,_l=ri(e,"nextSibling").get,Vn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Vn(i)&&(i.__t=void 0)}}function Mt(t=""){return document.createTextNode(t)}function Gi(t){return wl.call(t)}function ha(t){return _l.call(t)}function k(t,e){return Gi(t)}function Z(t,e=!1){{var i=Gi(t);return i instanceof Comment&&i.data===""?ha(i):i}}function I(t,e=1,i=!1){let a=t;for(;e--;)a=ha(a);return a}function lc(t){t.textContent=""}function xl(){return!1}function oc(t,e){if(e){const i=document.body;t.autofocus=!0,Yt(()=>{document.activeElement===i&&t.focus()})}}let kl=!1;function sc(){kl||(kl=!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 cc(t,e,i,a=!0){a&&i();for(var r of e)t.addEventListener(r,i);ma(()=>{for(var n of e)t.removeEventListener(n,i)})}function Ti(t){var e=me,i=we;lt(null),qt(null);try{return t()}finally{lt(e),qt(i)}}function dc(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),sc()}function Sl(t){we===null&&(me===null&&bs(),ys()),Pi&&ms()}function pc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function xt(t,e,i){var a=we;a!==null&&a.f&st&&(t|=st);var r={ctx:Se,deps:null,nodes_start:null,nodes_end:null,f:t|rt|wt,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{wa(r),r.f|=Ra}catch(s){throw Je(r),s}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&Bi)&&(n=n.first,t&Ct&&t&zt&&n!==null&&(n.f|=zt)),n!==null&&(n.parent=a,a!==null&&pc(n,a),me!==null&&me.f&Ye&&!(t&wi))){var l=me;(l.effects??(l.effects=[])).push(n)}return r}function ga(){return me!==null&&!Dt}function ma(t){const e=xt(Oa,null,!1);return Xe(e,Qe),e.teardown=t,e}function Ze(t){Sl();var e=we.f,i=!me&&(e&Wt)!==0&&(e&Ra)===0;if(i){var a=Se;(a.e??(a.e=[])).push(t)}else return Tl(t)}function Tl(t){return xt(Cr|Yn,t,!1)}function uc(t){return Sl(),xt(Oa|Yn,t,!0)}function vc(t){jt.ensure();const e=xt(wi|Bi,t,!0);return(i={})=>new Promise(a=>{i.outro?Ki(e,()=>{Je(e),a(void 0)}):(Je(e),a(void 0))})}function Ei(t){return xt(Cr,t,!1)}function fc(t){return xt(Ir|Bi,t,!0)}function Ha(t,e=0){return xt(Oa|e,t,!0)}function F(t,e=[],i=[],a=[]){ul(a,e,i,r=>{xt(Oa,()=>t(...r.map(o)),!0)})}function si(t,e=0){var i=xt(Ct|e,t,!0);return i}function El(t,e=0){var i=xt(Wn|e,t,!0);return i}function nt(t){return xt(Wt|Bi,t,!0)}function Pl(t){var e=t.teardown;if(e!==null){const i=Pi,a=me;Ll(!0),lt(null);try{e.call(null)}finally{Ll(i),lt(a)}}}function Cl(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const r=i.ac;r!==null&&Ti(()=>{r.abort(Fi)});var a=i.next;i.f&wi?i.parent=null:Je(i,e),i=a}}function hc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Wt||Je(e),e=i}}function Je(t,e=!0){var i=!1;(e||t.f&Kn)&&t.nodes_start!==null&&t.nodes_end!==null&&(gc(t.nodes_start,t.nodes_end),i=!0),Cl(t,e&&!i),Wa(t,0),Xe(t,Kt);var a=t.transitions;if(a!==null)for(const n of a)n.stop();Pl(t);var r=t.parent;r!==null&&r.first!==null&&zl(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function gc(t,e){for(;t!==null;){var i=t===e?null:ha(t);t.remove(),t=i}}function zl(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 Ki(t,e,i=!0){var a=[];Br(t,a,!0),Il(a,()=>{i&&Je(t),e&&e()})}function Il(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var r of t)r.out(a)}else e()}function Br(t,e,i){if(!(t.f&st)){if(t.f^=st,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&Wt)!==0&&(t.f&Ct)!==0;Br(a,e,n?i:!1),a=r}}}function Fr(t){jl(t,!0)}function jl(t,e){if(t.f&st){t.f^=st,t.f&Qe||(Xe(t,rt),ki(t));for(var i=t.first;i!==null;){var a=i.next,r=(i.f&zt)!==0||(i.f&Wt)!==0;jl(i,r?e:!1),i=a}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function Al(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var r=i===a?null:ha(i);e.append(i),i=r}}let ci=!1;function Ua(t){ci=t}let Pi=!1;function Ll(t){Pi=t}let me=null,Dt=!1;function lt(t){me=t}let we=null;function qt(t){we=t}let tt=null;function Ml(t){me!==null&&(tt===null?tt=[t]:tt.push(t))}let it=null,ct=0,ft=null;function mc(t){ft=t}let Dl=1,ya=0,Jt=ya;function ql(t){Jt=t}function Ol(){return++Dl}function ba(t){var e=t.f;if(e&rt)return!0;if(e&Ye&&(t.f&=-32769),e&Gt){var i=t.deps;if(i!==null)for(var a=i.length,r=0;r<a;r++){var n=i[r];if(ba(n)&&hl(n),n.wv>t.wv)return!0}e&wt&&Be===null&&Xe(t,Qe)}return!1}function Nl(t,e,i=!0){var a=t.reactions;if(a!==null&&!(tt!=null&&tt.includes(t)))for(var r=0;r<a.length;r++){var n=a[r];n.f&Ye?Nl(n,e,!1):e===n&&(i?Xe(n,rt):n.f&Qe&&Xe(n,Gt),ki(n))}}function Rl(t){var m;var e=it,i=ct,a=ft,r=me,n=tt,l=Se,s=Dt,c=Jt,d=t.f;it=null,ct=0,ft=null,me=d&(Wt|wi)?null:t,tt=null,Hi(t.ctx),Dt=!1,Jt=++ya,t.ac!==null&&(Ti(()=>{t.ac.abort(Fi)}),t.ac=null);try{t.f|=zr;var p=t.fn,u=p(),f=t.deps;if(it!==null){var h;if(Wa(t,ct),f!==null&&ct>0)for(f.length=ct+it.length,h=0;h<it.length;h++)f[ct+h]=it[h];else t.deps=f=it;if(ci&&ga()&&t.f&wt)for(h=ct;h<f.length;h++)((m=f[h]).reactions??(m.reactions=[])).push(t)}else f!==null&&ct<f.length&&(Wa(t,ct),f.length=ct);if(_i()&&ft!==null&&!Dt&&f!==null&&!(t.f&(Ye|Gt|rt)))for(h=0;h<ft.length;h++)Nl(ft[h],t);return r!==null&&r!==t&&(ya++,ft!==null&&(a===null?a=ft:a.push(...ft))),t.f&ni&&(t.f^=ni),u}catch(y){return rl(y)}finally{t.f^=zr,it=e,ct=i,ft=a,me=r,tt=n,Hi(l),Dt=s,Jt=c}}function yc(t,e){let i=e.reactions;if(i!==null){var a=qa.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&Ye&&(it===null||!it.includes(e))&&(Xe(e,Gt),e.f&wt&&(e.f^=wt,e.f&=-32769),fl(e),Wa(e,0))}function Wa(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)yc(t,i[a])}function wa(t){var e=t.f;if(!(e&Kt)){Xe(t,Qe);var i=we,a=ci;we=t,ci=!0;try{e&(Ct|Wn)?hc(t):Cl(t),Pl(t);var r=Rl(t);t.teardown=typeof r=="function"?r:null,t.wv=Dl;var n;Ee&&Hs&&t.f&rt&&t.deps}finally{ci=a,we=i}}}async function _a(){await Promise.resolve(),nl()}function o(t){var e=t.f,i=(e&Ye)!==0;if(me!==null&&!Dt){var a=we!==null&&(we.f&Kt)!==0;if(!a&&!(tt!=null&&tt.includes(t))){var r=me.deps;if(me.f&zr)t.rv<ya&&(t.rv=ya,it===null&&r!==null&&r[ct]===t?ct++:it===null?it=[t]:it.includes(t)||it.push(t));else{(me.deps??(me.deps=[])).push(t);var n=t.reactions;n===null?t.reactions=[me]:n.includes(me)||n.push(me)}}}if(Pi){if(li.has(t))return li.get(t);if(i){var l=t,s=l.v;return(!(l.f&Qe)&&l.reactions!==null||Fl(l))&&(s=Or(l)),li.set(l,s),s}}else i&&(!(Be!=null&&Be.has(t))||he!=null&&he.is_fork&&!ga())&&(l=t,ba(l)&&hl(l),ci&&ga()&&!(l.f&wt)&&Bl(l));if(Be!=null&&Be.has(t))return Be.get(t);if(t.f&ni)throw t.v;return t.v}function Bl(t){if(t.deps!==null){t.f^=wt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Ye&&!(e.f&wt)&&Bl(e)}}function Fl(t){if(t.v===We)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(li.has(e)||e.f&Ye&&Fl(e))return!0;return!1}function Ot(t){var e=Dt;try{return Dt=!0,t()}finally{Dt=e}}const bc=-7169;function Xe(t,e){t.f=t.f&bc|e}function Vl(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(It in t)Vr(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&It in i&&Vr(i)}}}function Vr(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{Vr(t[a],e)}catch{}const i=Er(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=Fn(i);for(let r in a){const n=a[r].get;if(n)try{n.call(t)}catch{}}}}}function wc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const _c=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function xc(t){return _c.includes(t)}const kc={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 Sc(t){return t=t.toLowerCase(),kc[t]??t}const Tc=["touchstart","touchmove"];function Ec(t){return Tc.includes(t)}const Hl=new Set,Hr=new Set;function Ur(t,e,i,a={}){function r(n){if(a.capture||xa.call(e,n),!n.cancelBubble)return Ti(()=>i==null?void 0:i.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Yt(()=>{e.addEventListener(t,r,a)}):e.addEventListener(t,r,a),r}function Pc(t,e,i,a={}){var r=Ur(e,t,i,a);return()=>{t.removeEventListener(e,r,a)}}function ke(t,e,i,a,r){var n={capture:a,passive:r},l=Ur(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ma(()=>{e.removeEventListener(t,l,n)})}function de(t){for(var e=0;e<t.length;e++)Hl.add(t[e]);for(var i of Hr)i(t)}let Ul=null;function xa(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;Ul=t;var l=0,s=Ul===t&&t.__root;if(s){var c=r.indexOf(s);if(c!==-1&&(e===document||e===window)){t.__root=e;return}var d=r.indexOf(e);if(d===-1)return;c<=d&&(l=c)}if(n=r[l]||t.target,n!==e){ds(t,"currentTarget",{configurable:!0,get(){return n||i}});var p=me,u=we;lt(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,lt(p),qt(u)}}}function Wl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Yi(t,e){var i=we;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function C(t,e){var i=(e&qs)!==0,a=(e&Os)!==0,r,n=!t.startsWith("<!>");return()=>{r===void 0&&(r=Wl(n?t:"<!>"+t),i||(r=Gi(r)));var l=a||bl?document.importNode(r,!0):r.cloneNode(!0);if(i){var s=Gi(l),c=l.lastChild;Yi(s,c)}else Yi(l,l);return l}}function Cc(t,e,i="svg"){var a=!t.startsWith("<!>"),r=`<${i}>${a?t:"<!>"+t}</${i}>`,n;return()=>{if(!n){var l=Wl(r),s=Gi(l);n=Gi(s)}var c=n.cloneNode(!0);return Yi(c,c),c}}function ht(t,e){return Cc(t,e,"svg")}function Qt(t=""){{var e=Mt(t+"");return Yi(e,e),e}}function fe(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Mt();return t.append(e,i),Yi(e,i),t}function w(t,e){t!==null&&t.before(e)}let Ga=!0;function Ka(t){Ga=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 Nt(t,e){return zc(t,e)}const Zi=new Map;function zc(t,{target:e,anchor:i,props:a={},events:r,context:n,intro:l=!0}){nc();var s=new Set,c=u=>{for(var f=0;f<u.length;f++){var h=u[f];if(!s.has(h)){s.add(h);var m=Ec(h);e.addEventListener(h,xa,{passive:m});var y=Zi.get(h);y===void 0?(document.addEventListener(h,xa,{passive:m}),Zi.set(h,1)):Zi.set(h,y+1)}}};c(Tr(Hl)),Hr.add(c);var d=void 0,p=vc(()=>{var u=i??e.appendChild(Mt());return Zs(u,{pending:()=>{}},f=>{if(n){ie({});var h=Se;h.c=n}r&&(a.$$events=r),Ga=l,d=t(f,a)||{},Ga=!0,n&&ae()}),()=>{var m;for(var f of s){e.removeEventListener(f,xa);var h=Zi.get(f);--h===0?(document.removeEventListener(f,xa),Zi.delete(f)):Zi.set(f,h)}Hr.delete(c),u!==i&&((m=u.parentNode)==null||m.removeChild(u))}});return Wr.set(d,p),d}let Wr=new WeakMap;function Ji(t,e){const i=Wr.get(t);return i?(Wr.delete(t),i(e)):Promise.resolve()}class Qi{constructor(e,i=!0){Pt(this,"anchor");oe(this,Tt,new Map);oe(this,Ut,new Map);oe(this,pt,new Map);oe(this,Oi,new Set);oe(this,ja,!0);oe(this,Aa,()=>{var e=he;if(L(this,Tt).has(e)){var i=L(this,Tt).get(e),a=L(this,Ut).get(i);if(a)Fr(a),L(this,Oi).delete(i);else{var r=L(this,pt).get(i);r&&(L(this,Ut).set(i,r.effect),L(this,pt).delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),a=r.effect)}for(const[n,l]of L(this,Tt)){if(L(this,Tt).delete(n),n===e)break;const s=L(this,pt).get(l);s&&(Je(s.effect),L(this,pt).delete(l))}for(const[n,l]of L(this,Ut)){if(n===i||L(this,Oi).has(n))continue;const s=()=>{if(Array.from(L(this,Tt).values()).includes(n)){var d=document.createDocumentFragment();Al(l,d),d.append(Mt()),L(this,pt).set(n,{effect:l,fragment:d})}else Je(l);L(this,Oi).delete(n),L(this,Ut).delete(n)};L(this,ja)||!a?(L(this,Oi).add(n),Ki(l,s,!1)):s()}}});oe(this,yr,e=>{L(this,Tt).delete(e);const i=Array.from(L(this,Tt).values());for(const[a,r]of L(this,pt))i.includes(a)||(Je(r.effect),L(this,pt).delete(a))});this.anchor=e,ne(this,ja,i)}ensure(e,i){var a=he,r=xl();if(i&&!L(this,Ut).has(e)&&!L(this,pt).has(e))if(r){var n=document.createDocumentFragment(),l=Mt();n.append(l),L(this,pt).set(e,{effect:nt(()=>i(l)),fragment:n})}else L(this,Ut).set(e,nt(()=>i(this.anchor)));if(L(this,Tt).set(a,e),r){for(const[s,c]of L(this,Ut))s===e?a.skipped_effects.delete(c):a.skipped_effects.add(c);for(const[s,c]of L(this,pt))s===e?a.skipped_effects.delete(c.effect):a.skipped_effects.add(c.effect);a.oncommit(L(this,Aa)),a.ondiscard(L(this,yr))}else L(this,Aa).call(this)}}Tt=new WeakMap,Ut=new WeakMap,pt=new WeakMap,Oi=new WeakMap,ja=new WeakMap,Aa=new WeakMap,yr=new WeakMap;const Ic=0,Gr=1;function Ya(t,e,i,a,r){var n=_i(),l=We,s=n?Lt(l):Rr(l,!1,!1),c=n?Lt(l):Rr(l,!1,!1),d=new Qi(t);si(()=>{var p=e(),u=!1;if(vs(p)){var f=vl(),h=!1;const m=y=>{if(!u){h=!0,f(!1),jt.ensure();try{y()}finally{va(),Wi||nl()}}};p.then(y=>{m(()=>{Zt(s,y),d.ensure(Gr,a&&(b=>a(b,s)))})},y=>{m(()=>{if(Zt(c,y),d.ensure(Gr,r&&(b=>r(b,c))),!r)throw c.v})}),Yt(()=>{h||m(()=>{d.ensure(Ic,i)})})}else Zt(s,p),d.ensure(Gr,a&&(m=>a(m,s)));return()=>{u=!0}})}function H(t,e,i=!1){var a=new Qi(t),r=i?zt:0;function n(l,s){a.ensure(l,s)}si(()=>{var l=!1;e((s,c=!0)=>{l=!0,n(c,s)}),l||n(!1,null)},r)}function Xi(t,e,i){var a=new Qi(t),r=!_i();si(()=>{var n=e();r&&n!==null&&typeof n=="object"&&(n={}),a.ensure(n,i)})}function Ve(t,e,...i){var a=new Qi(t);si(()=>{const r=e()??null;a.ensure(r,r&&(n=>r(n,...i)))},zt)}function Kr(t,e,i){var a=new Qi(t);si(()=>{var r=e()??null;a.ensure(r,r&&(n=>i(n,r)))},zt)}function Gl(t,e,i,a,r,n){var l=null,s=t,c=Si,d=new Qi(s,!1);si(()=>{const p=e()||null;var u=p==="svg"?Rs:null;if(p===null){d.ensure(null,null),Ka(!0);return}return d.ensure(p,f=>{var h=Si;if(pl(c),p){if(l=u?document.createElementNS(u,p):document.createElement(p),Yi(l,l),a){var m=l.appendChild(Mt());a(l,m)}we.nodes_end=l,f.before(l)}pl(h)}),Ka(!0),()=>{p&&Ka(!1)}},zt),ma(()=>{Ka(!0)})}function Rt(t,e,i){Ei(()=>{var a=Ot(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var r=!1,n={};Ha(()=>{var l=i();Vl(l),r&&el(n,l)&&(n=l,a.update(l))}),r=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function Za(t,e){var i=void 0,a;El(()=>{i!==(i=e())&&(a&&(Je(a),a=null),i&&(a=nt(()=>{Ei(()=>i(t))})))})}function Kl(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=Kl(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function jc(){for(var t,e,i=0,a="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Kl(t))&&(a&&(a+=" "),a+=e);return a}function Ac(t){return typeof t=="object"?jc(t):t??""}const Yl=[...`
|
|
3
3
|
\r\f \v\uFEFF`];function Lc(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 s=l+n;(l===0||Yl.includes(a[l-1]))&&(s===a.length||Yl.includes(a[s]))?a=(l===0?"":a.substring(0,l))+a.substring(s+1):l=s}}return a===""?null:a}function Zl(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 Yr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Mc(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,s=!1,c=[];a&&c.push(...Object.keys(a).map(Yr)),r&&c.push(...Object.keys(r).map(Yr));var d=0,p=-1;const y=t.length;for(var u=0;u<y;u++){var f=t[u];if(s?f==="/"&&t[u-1]==="*"&&(s=!1):n?n===f&&(n=!1):f==="/"&&t[u+1]==="*"?s=!0:f==='"'||f==="'"?n=f:f==="("?l++:f===")"&&l--,!s&&n===!1&&l===0){if(f===":"&&p===-1)p=u;else if(f===";"||u===y-1){if(p!==-1){var h=Yr(t.substring(d,p).trim());if(!c.includes(h)){f!==";"&&u++;var m=t.substring(d,u).trim();i+=" "+m+";"}}d=u+1,p=-1}}}}return a&&(i+=Zl(a)),r&&(i+=Zl(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 s=Lc(i,a,n);s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s),t.__className=i}else if(n&&r!==n)for(var c in n){var d=!!n[c];(r==null||d!==!!r[c])&&t.classList.toggle(c,d)}return n}function Zr(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 He(t,e,i,a){var r=t.__style;if(r!==e){var n=Mc(e,a);n==null?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else a&&(Array.isArray(a)?(Zr(t,i==null?void 0:i[0],a[0]),Zr(t,i==null?void 0:i[1],a[1],"important")):Zr(t,i,a));return a}function Jr(t,e,i=!1){if(t.multiple){if(e==null)return;if(!Ne(e))return Fs();for(var a of t.options)a.selected=e.includes(Jl(a));return}for(a of t.options){var r=Jl(a);if(rc(r,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function Dc(t){var e=new MutationObserver(()=>{Jr(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ma(()=>{e.disconnect()})}function Jl(t){return"__value"in t?t.__value:t.value}const $i=Symbol("class"),ea=Symbol("style"),Ql=Symbol("is custom element"),Xl=Symbol("is html");function qc(t,e){var i=Qr(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function $l(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function te(t,e,i,a){var r=Qr(t);r[e]!==(r[e]=i)&&(e==="loading"&&(t[hs]=i),i==null?t.removeAttribute(e):typeof i!="string"&&io(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Oc(t,e,i,a,r=!1,n=!1){var l=Qr(t),s=l[Ql],c=!l[Xl],d=e||{},p=t.tagName==="OPTION";for(var u in e)u in i||(i[u]=null);i.class?i.class=Ac(i.class):(a||i[$i])&&(i.class=null),i[ea]&&(i.style??(i.style=null));var f=io(t);for(const _ in i){let E=i[_];if(p&&_==="value"&&E==null){t.value=t.__value="",d[_]=E;continue}if(_==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";be(t,h,E,a,e==null?void 0:e[$i],i[$i]),d[_]=E,d[$i]=i[$i];continue}if(_==="style"){He(t,E,e==null?void 0:e[ea],i[ea]),d[_]=E,d[ea]=i[ea];continue}var m=d[_];if(!(E===m&&!(E===void 0&&t.hasAttribute(_)))){d[_]=E;var y=_[0]+_[1];if(y!=="$$")if(y==="on"){const D={},z="$$"+_;let A=_.slice(2);var b=xc(A);if(wc(A)&&(A=A.slice(0,-7),D.capture=!0),!b&&m){if(E!=null)continue;t.removeEventListener(A,d[z],D),d[z]=null}if(E!=null)if(b)t[`__${A}`]=E,de([A]);else{let O=function(j){d[_].call(this,j)};d[z]=Ur(A,t,O,D)}else b&&(t[`__${A}`]=void 0)}else if(_==="style")te(t,_,E);else if(_==="autofocus")oc(t,!!E);else if(!s&&(_==="__value"||_==="value"&&E!=null))t.value=t.__value=E;else if(_==="selected"&&p)$l(t,E);else{var g=_;c||(g=Sc(g));var x=g==="defaultValue"||g==="defaultChecked";if(E==null&&!s&&!x)if(l[_]=null,g==="value"||g==="checked"){let D=t;const z=e===void 0;if(g==="value"){let A=D.defaultValue;D.removeAttribute(g),D.defaultValue=A,D.value=D.__value=z?A:null}else{let A=D.defaultChecked;D.removeAttribute(g),D.defaultChecked=A,D.checked=z?A:!1}}else t.removeAttribute(_);else x||f.includes(g)&&(s||typeof E!="string")?(t[g]=E,g in l&&(l[g]=We)):typeof E!="function"&&te(t,g,E)}}}return d}function eo(t,e,i=[],a=[],r=[],n,l=!1,s=!1){ul(r,i,a,c=>{var d=void 0,p={},u=t.nodeName==="SELECT",f=!1;if(El(()=>{var m=e(...c.map(o)),y=Oc(t,d,m,n,l,s);f&&u&&"value"in m&&Jr(t,m.value);for(let g of Object.getOwnPropertySymbols(p))m[g]||Je(p[g]);for(let g of Object.getOwnPropertySymbols(m)){var b=m[g];g.description===Bs&&(!d||b!==d[g])&&(p[g]&&Je(p[g]),p[g]=nt(()=>Za(t,()=>b))),y[g]=b}d=y}),u){var h=t;Ei(()=>{Jr(h,d.value,!0),Dc(h)})}f=!0})}function Qr(t){return t.__attributes??(t.__attributes={[Ql]:t.nodeName.includes("-"),[Xl]:t.namespaceURI===Ns})}var to=new Map;function io(t){var e=t.getAttribute("is")||t.nodeName,i=to.get(e);if(i)return i;to.set(e,i=[]);for(var a,r=t,n=Element.prototype;n!==r;){a=Fn(r);for(var l in a)a[l].set&&i.push(l);r=Er(r)}return i}const Nc=()=>performance.now(),Xt={tick:t=>requestAnimationFrame(t),now:()=>Nc(),tasks:new Set};function ao(){const t=Xt.now();Xt.tasks.forEach(e=>{e.c(t)||(Xt.tasks.delete(e),e.f())}),Xt.tasks.size!==0&&Xt.tick(ao)}function Rc(t){let e;return Xt.tasks.size===0&&Xt.tick(ao),{promise:new Promise(i=>{Xt.tasks.add(e={c:t,f:i})}),abort(){Xt.tasks.delete(e)}}}function Ja(t,e){Ti(()=>{t.dispatchEvent(new CustomEvent(e))})}function Bc(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 ro(t){const e={},i=t.split(";");for(const a of i){const[r,n]=a.split(":");if(!r||n===void 0)break;const l=Bc(r.trim());e[l]=n.trim()}return e}const Fc=t=>t;function Vc(t,e,i){var a=Si,r,n,l,s=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 c=e()(this.element,{from:r,to:n},i==null?void 0:i());l=Qa(this.element,c,void 0,1,()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:c,width:d,height:p}=getComputedStyle(t);if(c!=="absolute"&&c!=="fixed"){var u=t.style;s={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(s){var c=t.style;c.position=s.position,c.width=s.width,c.height=s.height,c.transform=s.transform}}}),a.a.element=t}function De(t,e,i,a){var r=(t&Ls)!==0,n=(t&Ms)!==0,l=r&&n,s=(t&Ds)!==0,c=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:c})))}var y={is_global:s,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(),Ja(e,"introstart"),f=Qa(e,m(),h,1,()=>{Ja(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,Ja(e,"outrostart"),h=Qa(e,m(),f,0,()=>{Ja(e,"outroend"),_==null||_()})},stop:()=>{f==null||f.abort(),h==null||h.abort()}},b=we;if((b.transitions??(b.transitions=[])).push(y),r&&Ga){var g=s;if(!g){for(var x=b.parent;x&&x.f&zt;)for(;(x=x.parent)&&!(x.f&Ct););g=!x||(x.f&Ra)!==0}g&&Ei(()=>{Ot(()=>y.in())})}}function Qa(t,e,i,a,r){var n=a===1;if(Ri(e)){var l,s=!1;return Yt(()=>{if(!s){var b=e({direction:n?"in":"out"});l=Qa(t,b,i,a,r)}}),{abort:()=>{s=!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:c=0,css:d,tick:p,easing:u=Fc}=e;var f=[];if(n&&i===void 0&&(p&&p(0,1),d)){var h=ro(d(0,1));f.push(h,h)}var m=()=>1-a,y=t.animate(f,{duration:c,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,x=e.duration*Math.abs(g),_=[];if(x>0){var E=!1;if(d)for(var D=Math.ceil(x/16.666666666666668),z=0;z<=D;z+=1){var A=b+g*u(z/D),O=ro(d(A,1-A));_.push(O),E||(E=O.overflow==="hidden")}E&&(t.style.overflow="hidden"),m=()=>{var j=y.currentTime;return b+g*u(j/x)},p&&Rc(()=>{if(y.playState!=="running")return!1;var j=m();return p(j,1-j),!0})}y=t.animate(_,{duration:x,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 ka(t,e,i=e){var a=new WeakSet;dc(t,"input",async r=>{var n=r?t.defaultValue:t.value;if(n=Xr(t)?$r(n):n,i(n),he!==null&&a.add(he),await _a(),n!==(n=e())){var l=t.selectionStart,s=t.selectionEnd,c=t.value.length;if(t.value=n??"",s!==null){var d=t.value.length;l===s&&s===c&&d>c?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=l,t.selectionEnd=Math.min(s,d))}}}),Ot(e)==null&&t.value&&(i(Xr(t)?$r(t.value):t.value),he!==null&&a.add(he)),Ha(()=>{var r=e();if(t===document.activeElement){var n=Fa??he;if(a.has(n))return}Xr(t)&&r===$r(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function Xr(t){var e=t.type;return e==="number"||e==="range"}function $r(t){return t===""?null:+t}const wr=class wr{constructor(e){oe(this,br);oe(this,mi,new WeakMap);oe(this,sa);oe(this,La);ne(this,La,e)}observe(e,i){var a=L(this,mi).get(e)||new Set;return a.add(i),L(this,mi).set(e,a),Ce(this,br,os).call(this).observe(e,L(this,La)),()=>{var r=L(this,mi).get(e);r.delete(i),r.size===0&&(L(this,mi).delete(e),L(this,sa).unobserve(e))}}};mi=new WeakMap,sa=new WeakMap,La=new WeakMap,br=new WeakSet,os=function(){return L(this,sa)??ne(this,sa,new ResizeObserver(e=>{for(var i of e){wr.entries.set(i.target,i);for(var a of L(this,mi).get(i.target)||[])a(i)}}))},Pt(wr,"entries",new WeakMap);let en=wr;var Hc=new en({box:"border-box"});function kt(t,e,i){var a=Hc.observe(t,()=>i(t[e]));Ei(()=>(Ot(()=>i(t[e])),a))}function no(t,e){return t===e||(t==null?void 0:t[It])===e}function at(t={},e,i,a){return Ei(()=>{var r,n;return Ha(()=>{r=n,n=[],Ot(()=>{t!==i(...n)&&(e(t,...n),r&&no(i(...r),t)&&e(null,...r))})}),()=>{Yt(()=>{n&&no(i(...n),t)&&e(null,...n)})}}),t}function tn(t,e){cc(window,["resize"],()=>Ti(()=>e(window[t])))}function lo(t=!1){const e=Se,i=e.l.u;if(!i)return;let a=()=>Vl(e.s);if(t){let r=0,n={};const l=fa(()=>{let s=!1;const c=e.s;for(const d in c)c[d]!==n[d]&&(n[d]=c[d],s=!0);return s&&r++,r});a=()=>o(l)}i.b.length&&uc(()=>{oo(e,a),Pr(i.b)}),Ze(()=>{const r=Ot(()=>i.m.map(fs));return()=>{for(const n of r)typeof n=="function"&&n()}}),i.a.length&&Ze(()=>{oo(e,a),Pr(i.a)})}function oo(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let Xa=!1;function Uc(t){var e=Xa;try{return Xa=!1,[t(),Xa]}finally{Xa=e}}const Wc={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 so(t,e,i){return new Proxy({props:t,exclude:e},Wc)}const Gc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Ri(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];Ri(r)&&(r=r());const n=ri(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(Ri(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const r=ri(a,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===It||e===Zn)return!1;for(let i of t.props)if(Ri(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Ri(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 an(...t){return new Proxy({props:t},Gc)}function N(t,e,i,a){var _;var r=!Vi||(i&zs)!==0,n=(i&js)!==0,l=(i&As)!==0,s=a,c=!0,d=()=>(c&&(c=!1,s=l?Ot(a):a),s),p;if(n){var u=It in t||Zn in t;p=((_=ri(t,e))==null?void 0:_.set)??(u&&e in t?E=>t[e]=E:void 0)}var f,h=!1;n?[f,h]=Uc(()=>t[e]):f=t[e],f===void 0&&a!==void 0&&(f=d(),p&&(r&&_s(),p(f)));var m;if(r?m=()=>{var E=t[e];return E===void 0?d():(c=!0,E)}:m=()=>{var E=t[e];return E!==void 0&&(s=void 0),E===void 0?s:E},r&&!(i&Is))return m;if(p){var y=t.$$legacy;return function(E,D){return arguments.length>0?((!r||!D||y||h)&&p(D?m():E),E):m()}}var b=!1,g=(i&Cs?fa:qr)(()=>(b=!1,m()));n&&o(g);var x=we;return function(E,D){if(arguments.length>0){const z=D?o(g):r&&n?Fe(E):E;return q(g,z),b=!0,s!==void 0&&(s=z),E}return Pi&&b||x.f&Kt?g.v:o(g)}}function dt(t){Se===null&&jr(),Vi&&Se.l!==null?Kc(Se).m.push(t):Ze(()=>{const e=Ot(t);if(typeof e=="function")return e})}function rn(t){Se===null&&jr(),dt(()=>()=>Ot(t))}function Kc(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Yc="5";typeof window<"u"&&((es=window.__svelte??(window.__svelte={})).v??(es.v=new Set)).add(Yc);function di(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Zc="https://www.playpilot.com",Jc="https://partner-api.playpilot.tech/1.0",Qc="https://img-external.playpilot.tech",Xc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Ci=600,nn={};async function $t(t,{headers:e={},method:i="GET",body:a=null}={}){const r=!$a()&&i==="GET";if(r&&t in nn)return nn[t];const n=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(Jc+t,{method:i,headers:new Headers({...n,...e}),body:a?JSON.stringify(a):null});if(!(l!=null&&l.ok))throw l;const s=await l.text();let c=s;try{s&&(c=JSON.parse(s))}catch{}return r&&(nn[t]=c),c}const co="EncryptedToken",po="articleReplacementEditToken",$c="playpilot-editorial-mode";async function uo({href:t=window.location.href,throwError:e=!1}={}){try{const i=di();if(!i)throw new Error("No token was provided");const a=vo(t);if(!a)throw new Error("Could not be authenticated");return await $t(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),ed(a),!0}catch(i){if(console.error(i),e)throw i}finally{td()}return!1}function vo(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(po);if(n)return decodeURI(n)}return((r=("; "+document.cookie).split(`; ${co}=`).pop())==null?void 0:r.split(";")[0])||""}function ed(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=co+"="+t+";"+a+";path=/"}function $a(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get($c)==="true"||!!t}function td(){const t=new URL(window.location.href);t.searchParams.delete(po),window.history.replaceState({},"",t)}function id(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 ln(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 Sa(){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 fo(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(c=>{var d;return c.nodeType===Node.TEXT_NODE&&((d=c.nodeValue)==null?void 0:d.trim())!==""});if(n&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!i.includes(c)&&i.push(c);continue}const l=r.tagName==="P"&&!!r.textContent;if(n||l){i.push(r);continue}const s=Array.from(r.children);for(let c=s.length-1;c>=0;c--)a.push(s[c])}return i}function on(){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 sn(t){return t.map(e=>e.innerText).join(`
|
|
4
4
|
|
|
5
|
-
`)}function cn(t){const e=on(),i=fo(e,(t==null?void 0:t.exclude_elements_selector)||""),a=sn(i);return{parentElement:e,elements:i,pageText:a}}function ho(){const t=on();return{content_heading:ad(t),content_modified_time:rd(t),content_published_time:nd(t)}}function ad(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function rd(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=go().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?dn(i):null}function nd(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=go().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?dn(i):null}function dn(t){try{return new Date(t).toISOString()}catch{return null}}function go(){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 pn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function ld(t){return!!(t.exclude_urls_pattern&&zi().match(new RegExp(t.exclude_urls_pattern)))}let un=null;async function er(t,{url:e=zi(),hash:i=id(t||""),params:a={},method:r="GET"}={}){const n=di(),l=$a()?await uo():!1,s=Sa();if(!n)throw new Error("No token was provided");const c=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${s}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=ho(),d=await $t(c,{method:"POST",body:a})):d=await $t(c+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function mo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;un&&clearTimeout(un);const s=async(c,d)=>{let p;try{try{p=await er(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await er(t,{method:"POST"}),p.ai_enabled&&(p=await er(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await od(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=yo(p.manual_injections||[]),p.ai_injections=yo(p.ai_injections||[]),c(p);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),c();return}p&&n(p),un=setTimeout(()=>s(c),a)}};return new Promise(s)}async function od(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=ho().content_modified_time,a=e.content_modified_time?dn(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 er(t,{params:{run_ai:!0},method:"POST"})}function yo(t){return t.map(e=>({...e,key:sd(e.sid)}))}function sd(t){return t+"-"+ln()}function cd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function dd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function pd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function vn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function bo(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 wo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function ud(t,e,i,a){const r=pd(e),n=vn(e),l=t.slice(0,a),s=t.slice(a),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),p=s.replace(d,i);return l+p}function vd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function pi(t){return vn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function fd(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=_o(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),s=_o(xo(n,2)),c=xo(l,2);return{before:s,after:c}}function _o(t){return t.split("").reverse().join("")}function xo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function tr(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function hd(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,s=i?t.indexOf(i,l):t.length;if(i&&s===-1)break;const c=t.slice(l,s);a.push({match:c,index:l}),r=i?s+i.length:t.length+1}return a}function gd(t,e,i,a){const n=hd(t,i,a).filter(({match:s})=>vn(s).includes(e));return n.length?n.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function md(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 yd(t,e,i=0){const a=e.innerHTML,r=[],n=bd(e);let l=a.indexOf(t);for(;l!==-1;)dd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function bd(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let s=0;s<i.length;s++){const c=i[s];if(!r&&!a&&c==="<"){a=!0,n&&(e.push({start:l,end:s}),n=!1);continue}if(a&&c==='"'&&(r=!r),a&&!r&&c===">"){a=!1;continue}!a&&!r&&!n&&(l=s,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function wd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(s=>"\\"+s).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 ko(t){return t.ctrlKey||t.metaKey||t.button!==0}const pe={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",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed"},Ta={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function _d(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function St(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function ir(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const fn=[{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 xd(t=[]){return t.map(e=>{var i;return((i=fn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const hn="playpilot_user_id";function kd(){if(!So())return null;try{const t=localStorage.getItem(hn);return t||(localStorage.setItem(hn,ln(16)),localStorage.getItem(hn))}catch{return null}}function So(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Sd="https://insights.playpilot.net";async function ue(t,e=null,i={}){var r,n,l,s,c;if(ir())return;if(!St("tracking")){Ed(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:xd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),So()&&(i.user_id=kd()),i.version="8.5.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=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Ci?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((c=screen.orientation)==null?void 0:c.type)||"undefined"},fetch(Sd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Td({event:t,payload:i})}function Td(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function To({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Ed(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 Pd(){if(St("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ue(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function Eo(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?St("pixels"):!1}async function Po(){if(!St("ads"))return[];const t=di();if(!t)throw new Error("No token was provided");try{return await $t(`/ads/browse/?api-token=${t}`)}catch(e){throw ue(pe.AdsFetchFailed,null,{status:e.status}),e}}function Ea(t){var e;return!St("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function Cd(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"}}}async function gn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(a=s==null?void 0:s.country)==null?void 0:a.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),zd(c),c}catch(l){return ue(pe.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function zd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function mn(t={}){const e=di();if(!e)throw new Error("No token was provided");return t={...t,language:Sa(),include_count:"false"},t.region!==null&&(t.region=t.region||await gn()),await $t(`/titles/browse?api-token=${e}&`+pn(t))}async function Id(t){return(await mn({related_to_sid:t.sid})).results}const jd=t=>t;function Co(t){const e=t-1;return e*e*e+1}function zo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ei(t,{delay:e=0,duration:i=400,easing:a=jd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Pa(t,{delay:e=0,duration:i=400,easing:a=Co,x:r=0,y:n=0,opacity:l=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,p=c*(1-l),[u,f]=zo(r),[h,m]=zo(n);return{delay:e,duration:i,easing:a,css:(y,b)=>`
|
|
5
|
+
`)}function cn(t){const e=on(),i=fo(e,(t==null?void 0:t.exclude_elements_selector)||""),a=sn(i);return{parentElement:e,elements:i,pageText:a}}function ho(){const t=on();return{content_heading:ad(t),content_modified_time:rd(t),content_published_time:nd(t)}}function ad(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function rd(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=go().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?dn(i):null}function nd(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=go().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?dn(i):null}function dn(t){try{return new Date(t).toISOString()}catch{return null}}function go(){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 pn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function ld(t){return!!(t.exclude_urls_pattern&&zi().match(new RegExp(t.exclude_urls_pattern)))}let un=null;async function er(t,{url:e=zi(),hash:i=id(t||""),params:a={},method:r="GET"}={}){const n=di(),l=$a()?await uo():!1,s=Sa();if(!n)throw new Error("No token was provided");const c=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${s}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=ho(),d=await $t(c,{method:"POST",body:a})):d=await $t(c+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function mo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;un&&clearTimeout(un);const s=async(c,d)=>{let p;try{try{p=await er(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await er(t,{method:"POST"}),p.ai_enabled&&(p=await er(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await od(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=yo(p.manual_injections||[]),p.ai_injections=yo(p.ai_injections||[]),c(p);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),c();return}p&&n(p),un=setTimeout(()=>s(c),a)}};return new Promise(s)}async function od(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=ho().content_modified_time,a=e.content_modified_time?dn(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 er(t,{params:{run_ai:!0},method:"POST"})}function yo(t){return t.map(e=>({...e,key:sd(e.sid)}))}function sd(t){return t+"-"+ln()}function cd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function dd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function pd(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function vn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function bo(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 wo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function ud(t,e,i,a){const r=pd(e),n=vn(e),l=t.slice(0,a),s=t.slice(a),c=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),p=s.replace(d,i);return l+p}function vd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function pi(t){return vn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function fd(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=_o(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),s=_o(xo(n,2)),c=xo(l,2);return{before:s,after:c}}function _o(t){return t.split("").reverse().join("")}function xo(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function tr(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function hd(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,s=i?t.indexOf(i,l):t.length;if(i&&s===-1)break;const c=t.slice(l,s);a.push({match:c,index:l}),r=i?s+i.length:t.length+1}return a}function gd(t,e,i,a){const n=hd(t,i,a).filter(({match:s})=>vn(s).includes(e));return n.length?n.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function md(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 yd(t,e,i=0){const a=e.innerHTML,r=[],n=bd(e);let l=a.indexOf(t);for(;l!==-1;)dd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function bd(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let s=0;s<i.length;s++){const c=i[s];if(!r&&!a&&c==="<"){a=!0,n&&(e.push({start:l,end:s}),n=!1);continue}if(a&&c==='"'&&(r=!r),a&&!r&&c===">"){a=!1;continue}!a&&!r&&!n&&(l=s,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function wd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(s=>"\\"+s).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 ko(t){return t.ctrlKey||t.metaKey||t.button!==0}const pe={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",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed"},Ta={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function _d(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function St(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function ir(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const fn=[{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 xd(t=[]){return t.map(e=>{var i;return((i=fn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const hn="playpilot_user_id";function kd(){if(!So())return null;try{const t=localStorage.getItem(hn);return t||(localStorage.setItem(hn,ln(16)),localStorage.getItem(hn))}catch{return null}}function So(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Sd="https://insights.playpilot.net";async function ue(t,e=null,i={}){var r,n,l,s,c;if(ir())return;if(!St("tracking")){Ed(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:xd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),So()&&(i.user_id=kd()),i.version="8.5.3",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=((s=window.PlayPilotLinkInjections)==null?void 0:s.domain_sid)||"undefined",i.device={type:window.innerWidth>Ci?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((c=screen.orientation)==null?void 0:c.type)||"undefined"},fetch(Sd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Td({event:t,payload:i})}function Td(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function To({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Ed(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 Pd(){if(St("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ue(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function Eo(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?St("pixels"):!1}async function Po(){if(!St("ads"))return[];const t=di();if(!t)throw new Error("No token was provided");try{return await $t(`/ads/browse/?api-token=${t}`)}catch(e){throw ue(pe.AdsFetchFailed,null,{status:e.status}),e}}function Ea(t){var e;return!St("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function Cd(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"}}}async function gn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(a=s==null?void 0:s.country)==null?void 0:a.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),zd(c),c}catch(l){return ue(pe.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function zd(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function mn(t={}){const e=di();if(!e)throw new Error("No token was provided");return t={...t,language:Sa(),include_count:"false"},t.region!==null&&(t.region=t.region||await gn()),await $t(`/titles/browse?api-token=${e}&`+pn(t))}async function Id(t){return(await mn({related_to_sid:t.sid})).results}const jd=t=>t;function Co(t){const e=t-1;return e*e*e+1}function zo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ei(t,{delay:e=0,duration:i=400,easing:a=jd}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function Pa(t,{delay:e=0,duration:i=400,easing:a=Co,x:r=0,y:n=0,opacity:l=0}={}){const s=getComputedStyle(t),c=+s.opacity,d=s.transform==="none"?"":s.transform,p=c*(1-l),[u,f]=zo(r),[h,m]=zo(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: ${c-p*b}`}}function ta(t,{delay:e=0,duration:i=400,easing:a=Co,start:r=0,opacity:n=0}={}){const l=getComputedStyle(t),s=+l.opacity,c=l.transform==="none"?"":l.transform,d=1-r,p=s*(1-n);return{delay:e,duration:i,easing:a,css:(u,f)=>`
|
|
8
8
|
transform: ${c} scale(${1-d*f});
|
|
9
9
|
opacity: ${s-p*f}
|
|
10
|
-
`}}function ar(t){return t?t.replace("/src/img",""):null}function Io(t,e=null){return t!=null&&t.length?`${Qc}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Ad=C('<img class="svelte-p6g2a"/>');function rr(t,e){ie(e,!0);const i=N(e,"width",3,96),a=N(e,"height",3,144),r=N(e,"lazy",3,!0),n=N(e,"onload",3,()=>null);var l=Ad();F(s=>{te(l,"src",s),te(l,"alt",`Movie poster for '${e.title.title??""}'`),te(l,"width",i()),te(l,"height",a()),te(l,"loading",r()?"lazy":null)},[()=>ar(e.title.standing_poster)]),ke("error",l,({target:s})=>s.src=Xc),ke("load",l,function(...s){var c;(c=n())==null||c.apply(this,s)}),w(t,l),ae()}var Ld=ht('<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 yn(t,e){const i=N(e,"size",3,16);var a=Ld();F(()=>{te(a,"width",i()),te(a,"height",i())}),w(t,a)}var Md=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 Dd(t,e){const i=N(e,"embeddable_url",3,"");var a=Md(),r=k(a);wn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=I(r,2);n.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var l=I(n,2);l.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var s=k(l);yn(s,{size:24}),De(3,a,()=>ei,()=>({duration:100})),w(t,a)}de(["click"]);const qd="1304688689641511",Od="https://endpoint-youtube-availability.playpilot.workers.dev";async function jo(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(`${Od}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const s=await l.json();return!((r=s.blocked)!=null&&r[e]||!s.blocked&&s.allowed&&!((n=s.allowed)!=null&&n.includes(e)))}catch(l){return ue(pe.YouTubeAvailabilityRequestFailed,null,{message:l.message}),!1}}let nr={};function Nd(t){const e=Mn(),i={onclose:Rd,embeddable_url:t.embeddable_url||""};nr=Nt(Dd,{target:e,props:i})}function Rd(){nr&&(Ji(nr,{outro:!0}),nr=null)}function bn(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 Bd(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&bn(r.embeddable_url);try{n&&await jo(n)&&(a=r)}catch{}i++}return a}var Fd=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe>');function wn(t,e){var f;ie(e,!0);const i=N(e,"embeddable_url",3,""),a=N(e,"controls",19,()=>[]),r=N(e,"muted",3,!1),n=N(e,"loop",3,!1),l=V(()=>bn(i())),s=((f=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:f.replace("#",""))||"fa548a";var c=fe(),d=Z(c);{var p=h=>{var m=Fd();F(y=>te(m,"src",`https://video.playpilot.net/?video_id=${o(l)??""}&color=${s}&muted=${r()??""}&loop=${n()??""}&controls=${y??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),w(h,m)},u=h=>{var m=Qt("Something went wrong");w(h,m)};H(d,h=>{o(l)?h(p):h(u,!1)})}w(t,c),ae()}var Vd=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function Ao(t,e){ie(e,!0);let i=N(e,"gap",3,"0"),a=N(e,"fill",3,!0),r=N(e,"transitionDuration",3,300),n=N(e,"threshold",3,30),l=N(e,"moveThreshold",3,0),s=N(e,"currentIndex",15,0),c=N(e,"shown",31,()=>Fe([])),d=N(e,"sliderWidth",15,0),p=N(e,"currentScrollPosition",15,0),u=N(e,"maxWidth",15,0),f=N(e,"reachedEnd",15,!1),h=N(e,"distanceToEnd",15,0),m=N(e,"passedThreshold",15,!1),y=N(e,"passedMoveThreshold",15,!1),b=N(e,"allowWheel",3,!1),g=N(e,"end",3,()=>null),x=N(e,"change",3,X=>null),_=N(e,"onend",19,g),E=N(e,"onchange",19,x),D=N(e,"onresize",3,()=>null),z=W(!1),A=W(!1),O=0,j=0,M=W(void 0),P=W(void 0),T=null,S=null;Ze(()=>{o(P)&&re(),o(P)&&h(u()-p()-d())}),dt(()=>(ye(),()=>T==null?void 0:T.disconnect()));function R(X){const ve=o(P).children.length,_e=Math.max(0,Math.min(X,ve-1));$({setIndex:_e}),re()}function U(){q(A,!0),R(s()),requestAnimationFrame(()=>q(A,!1))}function Q(X){ge(X.target)&&(X.preventDefault(),O=xe(X),q(z,!0))}function G(){if(o(z)){if(!m())$({setIndex:s()});else{const X=p()-j,ve=X>0?1:-1;X!=0&&$({direction:ve})}q(z,!1),m(!1)}}function B(X){if(!o(z))return;const ve=xe(X),_e=j+(O-ve),ai=O-ve;y(Math.abs(ai)>l()),m(Math.abs(p()-j)>n()),y()&&(le(_e-l()*(ai>0?1:-1)),re())}function K(X){if(!b())return;const{deltaX:ve,deltaY:_e}=X;if(Math.abs(ve)<Math.abs(_e))return;X.preventDefault();const Oe=p()+ve*20*.02;le(Oe),re(),S&&clearTimeout(S),S=setTimeout(()=>{$({direction:ve>0?1:-1})},100)}function J(X){ge(document.activeElement)&&(X.key=="ArrowLeft"&&R(s()-1),X.key=="ArrowRight"&&R(s()+1))}function $({setIndex:X=-1,direction:ve=1}={}){const _e=Ae(),ai=s();s(0);let Oe;for(Oe=0;Oe<_e.length;Oe++)if(X!=-1){if(Oe>=X)break}else if(ve>0&&_e[Oe]>p()||ve<0&&_e[Oe+1]>p())break;s(Math.min(Oe,se().length-1)),le(_e[s()],!0),j=p(),E()&&s()!=ai&&E()(s())}function le(X,ve=!1){p(X);const _e=u()-d();f(p()>=_e),f()&&(_()&&_()(),a()&&ve&&p(_e))}function re(){const X=Ae();Array.from(X).forEach((ve,_e)=>{p()+d()<ve||c().includes(_e)||c([...c(),_e])})}function xe(X){var ve,_e;return X.pageX??((_e=(ve=X.touches)==null?void 0:ve[0])==null?void 0:_e.pageX)}function Ae(){return se().map(X=>X.offsetLeft)}function se(){return Array.from(o(P).children).filter(X=>X instanceof HTMLElement).filter(X=>X.src!="about:blank")}function ye(){T=new ResizeObserver(X=>{for(const ve of X){const _e=Array.isArray(ve.contentBoxSize)?ve.contentBoxSize[0]:ve.contentBoxSize;u(_e.inlineSize)}D()()}),T.observe(o(P))}function ge(X){return X===o(M)||(X==null?void 0:X.closest(".slider"))===o(M)}var Le={setIndex:R,reposition:U},et=Vd();ke("mousedown",Me,Q),ke("mouseup",Me,G),ke("mousemove",Me,B),ke("touchstart",Me,Q,void 0,!0),ke("touchend",Me,G),ke("touchmove",Me,B,void 0,!0),ke("keydown",Me,J),ke("resize",Me,U);var Ie=Z(et);let ce;var Ke=k(Ie);let bt;var qe=k(Ke);Ve(qe,()=>e.children??ut,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:R,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),at(Ke,X=>q(P,X),()=>o(P)),at(Ie,X=>q(M,X),()=>o(M));var je=I(Ie,2);return Ve(je,()=>e.controls??ut,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:R,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),F(X=>{ce=be(Ie,1,"slider svelte-1gs8ha8",null,ce,{dragging:o(z),"passed-threshold":m()}),bt=He(Ke,"",bt,X)},[()=>({transform:`translateX(${p()*-1}px)`,"transition-duration":`${(o(z)||o(A)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),ke("wheel",Ie,K),kt(Ie,"clientWidth",d),w(t,et),ae(Le)}var Hd=ht("<title> </title>"),Ud=ht('<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=N(e,"direction",3,"right"),a=N(e,"title",3,""),r=N(e,"size",3,16);var n=Ud(),l=k(n);{var s=c=>{var d=Hd(),p=k(d);F(()=>Y(p,a())),w(c,d)};H(l,c=>{a()&&c(s)})}F(()=>{be(n,0,i(),"svelte-1m6nwwy"),te(n,"width",`${r()??""}px`),te(n,"height",`${r()??""}px`)}),w(t,n)}function Re(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Wd=C('<div class="heading svelte-1ayf7b5"> </div>'),Gd=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Kd=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Yd=C("<!> <!>",1),Zd=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function lr(t,e){ie(e,!0);let i=N(e,"heading",3,""),a=N(e,"onchange",3,()=>null),r=N(e,"onresize",3,()=>null),n=N(e,"slider",15);var l=Zd(),s=Z(l);{var c=u=>{var f=Wd(),h=k(f);Rt(f,(m,y)=>Re==null?void 0:Re(m,y),()=>2),F(()=>Y(h,i())),w(u,f)};H(s,u=>{i()&&u(c)})}var d=I(s,2),p=k(d);at(Ao(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=Yd(),x=Z(g);{var _=z=>{var A=Gd();A.__click=()=>m()(y()-1);var O=k(A);Bt(O,{direction:"left",title:"Previous"}),w(z,A)};H(x,z=>{y()>0&&z(_)})}var E=I(x,2);{var D=z=>{var A=Kd();A.__click=()=>m()(y()+1);var O=k(A);Bt(O,{title:"Next"}),w(z,A)};H(E,z=>{b()||z(D)})}w(f,g)},children:(f,h)=>{var m=fe(),y=Z(m);Ve(y,()=>e.children),w(f,m)},$$slots:{controls:!0,default:!0}}),f=>n(f),()=>n()),w(t,l),ae()}de(["click"]);function Lo(t){return`${Zc}/${t.type}/${t.slug}/`}var Jd=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),Qd=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),Xd=C('<a class="poster svelte-12ph9f6"><!></a>'),$d=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),ep=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),tp=C('<div class="skeleton svelte-12ph9f6"> </div>'),ip=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),ap=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"> </span> <span class="skeleton svelte-12ph9f6"> </span></div> <!></div>'),rp=C("<div><!></div>");function Mo(t,e){ie(e,!0);let i=N(e,"heading",3,""),a=N(e,"size",3,"small"),r=N(e,"aside",3,!1),n=N(e,"expandable",3,!1),l=N(e,"expandedTitle",15,null),s=N(e,"expandedRailKey",15,null),c=N(e,"onclick",3,()=>null);const d=ln(),u=Ar("scope")==="popover"?Ar("title"):null;let f=W(null),h=W(null),m=!1;dt(()=>{n()&&x()});function y(O,j,M){var T;O==null||O.preventDefault();const P=j[M];if(n()&&!_(P)){const S=o(f).querySelectorAll(".title")[M],U=o(f).getBoundingClientRect().right-S.getBoundingClientRect().right;m=!0,setTimeout(()=>m=!1,500),U<S.clientWidth*2&&((T=o(h))==null||T.setIndex(M-2)),g(P);return}ia()?ui({event:O,type:"titles-rail",data:j,returnToTitle:u,props:{initialIndex:M}}):ui({event:O,data:P,returnToTitle:u}),c()(P)}async function b(){const O=await e.titles,j=await Bd(O);j&&(l()||s()&&s()!==d||g(j))}function g(O){s(d),l(O)}function x(){s()===d||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(P=>P.getBoundingClientRect().top>=0).sort((P,T)=>P.getBoundingClientRect().top-T.getBoundingClientRect().top)[0]!==o(f)||(l(null),s(null),b())}function _(O){var j;return s()===d&&O.sid===((j=l())==null?void 0:j.sid)}function E(O,j){n()&&(m||setTimeout(()=>y(null,O,j),250))}var D=rp();ke("scroll",Me,x);let z;var A=k(D);Ya(A,()=>e.titles,O=>{lr(O,{get heading(){return i()},children:(j,M)=>{var P=fe(),T=Z(P);Pe(T,16,()=>({length:12}),ze,(S,R)=>{var U=ap(),Q=I(k(U),4);{var G=B=>{var K=ip(),J=k(K);Pe(J,20,()=>({length:3}),ze,($,le)=>{var re=tp();w($,re)}),w(B,K)};H(Q,B=>{r()&&B(G)})}w(S,U)}),w(j,P)},$$slots:{default:!0}})},(O,j)=>{var M=fe(),P=Z(M);{var T=S=>{lr(S,{get heading(){return i()},onchange:R=>E(o(j),R),onresize:()=>{var R;return(R=o(h))==null?void 0:R.reposition()},get slider(){return o(h)},set slider(R){q(h,R,!0)},children:(R,U)=>{var Q=fe(),G=Z(Q);Pe(G,17,()=>o(j),ze,(B,K,J,$)=>{const le=V(()=>_(o(K))),re=V(()=>Lo(o(K))),xe=V(()=>qe=>y(qe,o(j),J));var Ae=ep();let se;var ye=k(Ae),ge=k(ye);{var Le=qe=>{var je=Qd(),X=k(je);X.__click=function(...Oe){var bi;(bi=o(xe))==null||bi.apply(this,Oe)};var ve=I(X,2);{var _e=Oe=>{wn(Oe,{get embeddable_url(){return o(K).embeddable_url},muted:!0,loop:!0})},ai=Oe=>{var bi=Jd();F(()=>te(bi,"src",o(K).medium_poster)),w(Oe,bi)};H(ve,Oe=>{o(K).embeddable_url?Oe(_e):Oe(ai,!1)})}F(()=>te(X,"href",o(re))),De(2,je,()=>ei,()=>({delay:200,duration:200})),w(qe,je)},et=qe=>{var je=Xd();je.__click=function(...ve){var _e;(_e=o(xe))==null||_e.apply(this,ve)};var X=k(je);rr(X,{get title(){return o(K)},width:96,height:144}),F(()=>te(je,"href",o(re))),w(qe,je)};H(ge,qe=>{o(le)?qe(Le):qe(et,!1)})}var Ie=I(ye,2);Ie.__click=function(...qe){var je;(je=o(xe))==null||je.apply(this,qe)};var ce=k(Ie),Ke=I(Ie,2);{var bt=qe=>{var je=$d();je.__click=function(...ve){var _e;(_e=o(xe))==null||_e.apply(this,ve)};var X=k(je);F(()=>Y(X,o(K).blurb||o(K).description)),w(qe,je)};H(Ke,qe=>{r()&&qe(bt)})}F(()=>{se=be(Ae,1,"title svelte-12ph9f6",null,se,{expanded:o(le)}),te(Ie,"href",o(re)),Y(ce,o(K).title)}),w(B,Ae)}),w(R,Q)},$$slots:{default:!0}})};H(P,S=>{var R;(R=o(j))!=null&&R.length&&S(T)})}w(O,M)}),at(D,O=>q(f,O),()=>o(f)),F(()=>{z=be(D,1,`titles ${a()??""}`,"svelte-12ph9f6",z,{"with-aside":r()}),te(D,"data-role",n()?"expandable-rail":null)}),w(t,D),ae()}de(["click"]);const np={"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"},"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 ee(t,e=Sa()){var i;return((i=np[t])==null?void 0:i[e])||t}const or=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"});var lp=C('<div class="rail svelte-1b834ry"><!></div>'),op=C('<div data-testid="explore-home"></div> <!>',1);function sp(t,e){ie(e,!0);let i=W(null),a=W(null);const r=[{heading:ee("List: Trending"),params:{ordering:or.Popular},properties:{expandable:!0}},{heading:ee("List: Upcoming"),params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{aside:!0}},{heading:ee("List: New"),params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{expandable:!0}},{heading:ee("List: Demand"),params:{from_playlist_sid:"licBS"},properties:{}},{heading:ee("List: Cinema"),params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{aside:!0}}];async function n(c={}){var d;return(d=await mn(c))==null?void 0:d.results}var l=op();ke("scroll",Me,onscroll);var s=I(Z(l),2);Pe(s,17,()=>r,ze,(c,d)=>{let p=()=>o(d).heading,u=()=>o(d).params,f=()=>o(d).properties;var h=lp(),m=k(h);{let y=V(()=>n(u()));Mo(m,an({get heading(){return p()},get titles(){return o(y)},size:"flexible"},f,{get expandedTitle(){return o(i)},set expandedTitle(b){q(i,b,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(b){q(a,b,!0)}}))}w(c,h)}),w(t,l),ae()}function sr(t,e={}){const i=new Image;i.src=cp(t,e||{})}function cp(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:qd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Do(t,e={}){return()=>{Ze(()=>sr(t,e))}}function dp(t,e={}){return i=>{const a=()=>sr(t,e);Ze(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var pp=C("<button><!></button>");function Ii(t,e){const i=N(e,"variant",3,"filled"),a=N(e,"size",3,"base"),r=N(e,"label",3,null),n=N(e,"active",3,!1);var l=pp();let s;l.__click=function(...d){var p;(p=e.onclick)==null||p.apply(this,d)};var c=k(l);Ve(c,()=>e.children??ut),F(()=>{s=be(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",s,{active:n()}),te(l,"aria-label",r())}),w(t,l)}de(["click"]);var up=ht('<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 _n(t,e){const i=N(e,"size",3,14);var a=up();F(()=>{te(a,"width",i()),te(a,"height",i())}),w(t,a)}function qo(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(c=>c.name===r.name),l=n==null?void 0:n.extra_info.category,s=r.extra_info.category;(l==="RENT"&&s==="BUY"||l==="BUY"&&s==="RENT")&&(i=i.filter(c=>c.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var vp=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function xn(t,e){ie(e,!0);let i=W(Fe(Math.random()));var a=fe();ke("updateconsent",Me,()=>q(i,Math.random(),!0));var r=Z(a);Xi(r,()=>o(i),n=>{var l=fe(),s=Z(l);{var c=d=>{var p=fe(),u=Z(p);Pe(u,17,()=>e.pixels,ze,(f,h)=>{var m=vp();F(()=>te(m,"src",o(h))),w(f,m)}),w(d,p)};H(s,d=>{St("pixels")&&d(c)})}w(n,l)}),w(t,a),ae()}var fp=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function hp(t,e){ie(e,!0);const i=N(e,"size",3,30),a=N(e,"onclick",3,()=>null),r=V(()=>e.playlink.name),n=V(()=>e.playlink.url),l=V(()=>e.playlink.logo_url),s=V(()=>e.playlink.pixels);var c=fp();c.__click=function(...h){var m;(m=a())==null||m.apply(this,h)};let d;var p=k(c),u=I(p,2);{var f=h=>{xn(h,{get pixels(){return o(s)}})};H(u,h=>{var m;(m=o(s))!=null&&m.length&&h(f)})}F(h=>{te(c,"href",o(n)),te(c,"data-playlink",o(r)),d=He(c,"",d,{"--size":`${i()??""}px`}),te(p,"src",h),te(p,"alt",o(r)),te(p,"height",i()),te(p,"width",i())},[()=>ar(o(l))]),w(t,c),ae()}de(["click"]);var gp=C('<span class="more svelte-1plv45z"> </span>'),mp=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),yp=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Oo(t,e){ie(e,!0);const i=N(e,"size",3,30),a=V(()=>qo(e.playlinks).slice(0,3));function r(u){u.stopPropagation()}var n=yp(),l=k(n);Pe(l,17,()=>o(a),ze,(u,f)=>{hp(u,{get playlink(){return o(f)},onclick:r,get size(){return i()}})});var s=I(l,2);{var c=u=>{var f=gp(),h=k(f);F(()=>Y(h,`+${e.playlinks.length-o(a).length}`)),w(u,f)};H(s,u=>{e.playlinks.length>o(a).length&&u(c)})}var d=I(s,2);{var p=u=>{var f=mp();w(u,f)};H(d,u=>{e.playlinks.length||u(p)})}w(t,n),ae()}var bp=C("<div>Series</div>"),wp=C("<div> </div>"),_p=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 xp(t,e){ie(e,!0);const i=N(e,"onclick",3,()=>null);var a=_p();a.__click=function(...x){var _;(_=i())==null||_.apply(this,x)};var r=k(a),n=k(r);rr(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=I(n,2),s=k(l),c=k(s);_n(c,{size:12});var d=I(c),p=I(s,2);{var u=x=>{var _=bp();w(x,_)};H(p,x=>{e.title.type==="series"&&x(u)})}var f=I(p,2);{var h=x=>{var _=wp(),E=k(_);F(()=>Y(E,`${e.title.length??""} min`)),w(x,_)};H(f,x=>{e.title.length&&x(h)})}var m=I(r,2),y=k(m),b=k(y),g=I(y,2);Oo(g,{get playlinks(){return e.title.providers},size:20}),F(()=>{Y(d,` ${e.title.imdb_score||"-"}`),Y(b,e.title.title)}),w(t,a),ae()}de(["click"]),Us();var kp=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 Sp(t){var e=kp(),i=I(k(e),2),a=k(i);He(a,"",{},{width:"60%"}),w(t,e)}var Tp=C('<div class="svelte-pkkpyl"> </div>'),Ep=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 No(t,e){var P;ie(e,!0);const i=N(e,"onclick",3,()=>null),a=!!((P=window.PlayPilotLinkInjections)!=null&&P.no_affiliate);var r=Ep();r.__click=function(...T){var S;(S=i())==null||S.apply(this,T)};var n=k(r),l=k(n);rr(l,{get title(){return e.title},width:30,height:43,lazy:!0});var s=I(n,2),c=k(s),d=k(c),p=I(c,2),u=k(p),f=k(u);_n(f,{size:11});var h=I(f),m=I(u,2),y=k(m),b=I(m,2),g=k(b),x=I(b,2);{var _=T=>{var S=Tp(),R=k(S);F(()=>Y(R,`${e.title.length??""} min`)),w(T,S)};H(x,T=>{e.title.length&&T(_)})}var E=I(p,2);let D;var z=k(E),A=I(E,2);{var O=T=>{Oo(T,{get playlinks(){return e.title.providers}})};H(A,T=>{a||T(O)})}var j=I(s,2),M=k(j);Bt(M,{}),F(T=>{Y(d,e.title.title),Y(h,` ${e.title.imdb_score||"-"}`),Y(y,e.title.year),Y(g,T),D=be(E,1,"description svelte-pkkpyl",null,D,{large:a}),Y(z,e.title.description)},[()=>ee(`Type: ${e.title.type}`)]),w(t,r),ae()}de(["click"]);var Pp=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 Cp(t){var e=Pp(),i=I(k(e),2),a=k(i);He(a,"",{},{width:"40%"});var r=I(a,2);He(r,"",{},{width:"60%"});var n=I(r,2);He(n,"",{},{width:"80%"}),w(t,e)}const zp=[{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 Ip(){const t=di();if(!t)throw new Error("No token was provided");const e={region:await gn(),page:1,include_count:"false"};return await $t(`/providers/?api-token=${t}&`+pn(e))}function jp(t){const e=t-1;return e*e*e+1}function Ap(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=z=>Math.sqrt(z)*120,easing:l=jp}=a,s=getComputedStyle(t),c=s.transform==="none"?"":s.transform,[d,p]=s.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,p/=t.clientHeight;var u=Lp(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,x=(m-b)*f,_=(y-g)*h,E=e.width/i.width,D=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(x*x+_*_)):n,easing:l,css:(z,A)=>{var O=A*x,j=A*_,M=z+A*E,P=z+A*D;return`transform: ${c} translate(${O}px, ${j}px) scale(${M}, ${P});`}}}function Lp(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 Mp=C('<div class="icon svelte-dfwzqz"> </div>'),Dp=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),qp=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 Op(t,e){ie(e,!0);let i=N(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=N(e,"selected",23,()=>[]),r=N(e,"placeholder",19,()=>`${ee("Search")}...`),n=N(e,"onchange",3,()=>null),l=W("");const s=V(c);function c(){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=qp(),u=Z(p),f=k(u),h=I(u,2);Pe(h,29,()=>o(s)||[],({label:m,value:y})=>y,(m,y)=>{let b=()=>o(y).label,g=()=>o(y).value;const x=V(()=>!!a().find(j=>j===g()));var _=Dp(),E=k(_);let D;E.__click=()=>d(g());var z=k(E),A=I(z),O=k(A);Xi(O,()=>o(x),j=>{var M=Mp(),P=k(M);F(()=>Y(P,o(x)?"-":"+")),De(3,M,()=>ta,()=>({start:.25,duration:100})),w(j,M)}),F(()=>{D=be(E,1,"option svelte-dfwzqz",null,D,{active:o(x)}),Y(z,`${b()??""} `)}),Vc(_,()=>Ap,()=>({duration:150})),w(m,_)}),F(()=>te(f,"placeholder",r())),ka(f,()=>o(l),m=>q(l,m)),w(t,p),ae()}de(["click"]);var Np=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),Rp=C("<div><!> <!></div>");function Ro(t,e){ie(e,!0);let i=W(!1),a=W(null),r=W(null),n=W("left"),l=W(0),s=W(0);function c(y){const b=y.target;b&&b.closest(".dropdown")!==o(a)&&q(i,!1)}function d(y){q(i,!o(i)),o(i)&&(q(s,0),q(l,0),p(y.target))}async function p(y){if(await _a(),!o(r))return;const b=16,g=200,x=window.innerHeight,_=window.innerWidth,{top:E}=o(r).getBoundingClientRect(),{left:D}=y.getBoundingClientRect();q(n,D<window.innerWidth/2?"left":"right",!0),q(l,Math.max(Math.min(window.innerHeight-E-b,x*.6),g),!0),await _a();const{left:z,right:A}=o(r).getBoundingClientRect(),O=_-A;z-b<0?q(s,O):O-b<0&&q(s,O-b)}var u=Rp();ke("click",Me,c);var f=k(u);Ve(f,()=>e.button,()=>({toggle:d}));var h=I(f,2);{var m=y=>{var b=Np();let g;var x=k(b);Ve(x,()=>e.content),at(b,_=>q(r,_),()=>o(r)),F(()=>g=He(b,"",g,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(s)?`${o(s)}px`:null})),De(3,b,()=>ta,()=>({start:.85,duration:100})),w(y,b)};H(h,y=>{o(i)&&y(m)})}at(u,y=>q(a,y),()=>o(a)),F(()=>be(u,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),w(t,u),ae()}var Bp=C('<span class="label svelte-1mfj6k7"> </span>'),Fp=C('<div class="active-line svelte-1mfj6k7"></div>'),Vp=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 Hp(t,e){ie(e,!0);const i=N(e,"range",19,()=>[0,100]),a=N(e,"value",19,i),r=N(e,"label",3,""),n=N(e,"valueAppend",3,""),l=N(e,"formatFunction",3,G=>G.toString()),s=N(e,"onchange",3,()=>null);let c=i(),d=V(()=>pa(c,2)),p=W(Fe(o(d)[0])),u=W(Fe(o(d)[1]));const f=V(()=>o(p)!==i()[0]||o(u)!==i()[1]),h=V(()=>100/(i()[1]-i()[0])*(o(p)-i()[0])),m=V(()=>100+100/(i()[1]-i()[0])*(o(u)-i()[1])-o(h)),y=V(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(p)-o(u))<5);Ze(()=>{b(a())}),Ze(()=>{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(G){(B=>{var K=pa(B,2);q(p,K[0],!0),q(u,K[1],!0)})(G)}function g(){requestAnimationFrame(()=>s()([o(p),o(u)]))}var x=Vp(),_=k(x);{var E=G=>{var B=Bp(),K=k(B);F((J,$)=>Y(K,`${r()??""}: ${J??""}—${$??""} ${n()??""}`),[()=>l()(o(p)),()=>l()(o(u))]),w(G,B)};H(_,G=>{r()&&G(E)})}var D=I(_,2);let z;var A=k(D);A.__mouseup=g,A.__touchend=g,A.__input=function(...G){};let O;var j=I(A,2);j.__mouseup=g,j.__touchend=g,j.__input=function(...G){};let M;var P=I(j,2),T=k(P),S=I(P,2),R=k(S),U=I(S,2);{var Q=G=>{var B=Fp();let K;F(()=>K=He(B,"",K,{left:o(h)+"%","--width":o(m)+"%"})),w(G,B)};H(U,G=>{o(f)&&G(Q)})}F(()=>{z=be(D,1,"range svelte-1mfj6k7",null,z,{halved:o(y)}),te(A,"min",i()[0]),te(A,"max",i()[1]),O=be(A,1,"svelte-1mfj6k7",null,O,{active:o(f)}),te(j,"min",i()[0]),te(j,"max",i()[1]),M=be(j,1,"svelte-1mfj6k7",null,M,{active:o(f)}),Y(T,o(p)),Y(R,o(u))}),ka(A,()=>o(p),G=>q(p,G)),ka(j,()=>o(u),G=>q(u,G)),w(t,x),ae()}de(["mouseup","touchend","input"]);var Up=C(" <!>",1),Wp=C('<p class="loading"> </p>'),Gp=C('<p class="error"> </p>'),Kp=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),Yp=C('<div data-testid="filter-item"><!></div>');function Zp(t,e){ie(e,!0);let i=N(e,"filter",7),a=N(e,"onchange",3,()=>null),r=N(e,"data",7,null),n=N(e,"fetchData",3,null),l=N(e,"range",3,null),s=N(e,"valueAppend",3,"");const c=V(()=>{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=W(!!n());Ze(()=>{!r()&&n()&&p()});async function p(){try{q(d,!0),r(await n()())}catch{ue(pe.ExploreFetchProvidersFailed)}finally{q(d,!1)}}function u(y,b){if(ue(pe.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=Yp();let h;var m=k(f);Ro(m,{button:(g,x)=>{let _=()=>x==null?void 0:x().toggle;Ii(g,{variant:"border",size:"large",get active(){return o(c)},get onclick(){return _()},children:(E,D)=>{var z=Up(),A=Z(z),O=I(A);Bt(O,{direction:"down"}),F(()=>Y(A,`${e.label??""} `)),w(E,z)},$$slots:{default:!0}})},content:g=>{var x=Kp(),_=k(x);{var E=j=>{var M=Wp(),P=k(M);F(T=>Y(P,`${T??""}...`),[()=>ee("Loading")]),w(j,M)},D=j=>{var M=fe(),P=Z(M);{var T=S=>{var R=Gp(),U=k(R);F(Q=>Y(U,Q),[()=>ee("An Error Occurred")]),w(S,R)};H(P,S=>{n()&&!r()&&S(T)},!0)}w(j,M)};H(_,j=>{o(d)?j(E):j(D,!1)})}var z=I(_,2);{var A=j=>{const M=V(()=>{var P;return(P=i()[e.param])==null?void 0:P.value});Op(j,{get options(){return r()},get selected(){return o(M)},onchange:P=>u(P,"array")})},O=j=>{var M=fe(),P=Z(M);{var T=S=>{const R=V(()=>{var U;return(U=i()[e.param])==null?void 0:U.value});Hp(S,{get range(){return l()},get value(){return o(R)},get label(){return e.label},get valueAppend(){return s()},onchange:U=>u(U,"range")})};H(P,S=>{l()&&S(T)},!0)}w(j,M)};H(z,j=>{r()?j(A):j(O,!1)})}w(g,x)},$$slots:{button:!0,content:!0}}),F(()=>h=be(f,1,"filter-item svelte-er0ukh",null,h,{active:o(c)})),w(t,f),ae()}var Jp=C(" <!>",1),Qp=C("<button> </button>"),Xp=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function $p(t,e){ie(e,!0);const i=N(e,"filter",7),a=N(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:or.Popular},{label:"New",value:or.New},{label:"Top Rated",value:or.Best}],l=V(()=>{var c;return((c=n.find(({value:d})=>{var p;return d===((p=i()[r])==null?void 0:p.value)}))==null?void 0:c.label)||"Sort By"});function s(c){c?i()[r]={type:"string",value:c}:delete i()[r],a()()}Ro(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=Jp(),b=Z(y),g=I(b);Bt(g,{direction:"down"}),F(x=>Y(b,`${x??""} `),[()=>ee(o(l))]),w(h,y)},$$slots:{default:!0}})},content:p=>{var u=Xp();Pe(u,21,()=>n,ze,(f,h,m,y)=>{let b=()=>o(h).label,g=()=>o(h).value;const x=V(()=>{var z;return g()===((z=i()[r])==null?void 0:z.value)});var _=Qp();let E;_.__click=()=>s(g());var D=k(_);F(z=>{E=be(_,1,"option svelte-1ibt2k4",null,E,{active:o(x)}),Y(D,z)},[()=>ee(b())]),w(f,_)}),w(p,u)},$$slots:{button:!0,content:!0}}),ae()}de(["click"]);var eu=ht('<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 tu(t){var e=eu();w(t,e)}var iu=C("<div><!></div>"),au=C("<!> <!>",1),ru=C('<div class="sorting"><!></div>'),nu=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function lu(t,e){ie(e,!0);const i=N(e,"onchange",3,()=>null),a=N(e,"limit",3,!0),r=N(e,"showSorting",3,!0),n=3,l=[{label:ee("Services"),param:"providers",fetchData:async()=>(await Ip()).map(b=>({label:b.name,value:b.slug}))},{label:ee("Genres"),param:"genres",data:fn.map(b=>({label:b.name,value:b.slug}))},{label:ee("IMDb"),param:"imdb_score",range:[0,10]},{label:ee("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:ee("Runtime"),param:"length",range:[0,180],valueAppend:ee("Minutes")},{label:ee("Countries"),param:"country_codes",data:zp}];let s=W(Fe(a()));var c=nu();let d;var p=k(c);Pe(p,21,()=>o(s)?l.slice(0,n):l,ze,(b,g)=>{var x=iu(),_=k(x);Zp(_,an({get filter(){return e.filter},get onchange(){return i()}},()=>o(g))),De(3,x,()=>ta,()=>({start:.75,duration:100})),w(b,x)});var u=I(p,2),f=k(u);{var h=b=>{Ii(b,{variant:"link",onclick:()=>q(s,!o(s)),children:(g,x)=>{var _=au(),E=Z(_);tu(E);var D=I(E),z=I(D);{let A=V(()=>o(s)?"down":"up");Bt(z,{get direction(){return o(A)}})}F(A=>Y(D,` ${A??""} `),[()=>ee("All Filters")]),w(g,_)},$$slots:{default:!0}})};H(f,b=>{a()&&b(h)})}var m=I(f,2);{var y=b=>{var g=ru(),x=k(g);$p(x,{get filter(){return e.filter},get onchange(){return i()}}),De(3,g,()=>Pa,()=>({x:5,duration:100})),w(b,g)};H(m,b=>{r()&&b(y)})}F(()=>d=be(c,1,"filter svelte-11dg01g",null,d,{limit:a()})),w(t,c),ae()}var ou=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 su(t){var e=ou();w(t,e)}var cu=C('<div class="filter svelte-qc99of"><!></div>'),du=C("<div><!></div>"),pu=C("<!> <!>",1),uu=C("<p>Something went wrong</p>"),vu=C('<!> <div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function fu(t,e){ie(e,!0);const i=N(e,"searchQuery",3,""),a=Fe({});let r=W(Fe([])),n=W(1),l=null,s=0,c=W(Fe(m())),d=W(0);const p=V(()=>o(d)>500),u=V(()=>o(d)>1400?8:o(d)>900?6:o(d)>600?4:3),f=V(()=>o(p)?xp:No),h=V(()=>o(p)?Sp:Cp);Ze(()=>{i()&&y(i())});async function m(){s+=1;const T=s,S={page_size:24,page:o(n)};i()&&(S.search=i()),Object.entries(a).forEach(([U,{type:Q,value:G}])=>{if(Q==="string")S[U]=G;else if(Q==="array")S[U]=G.join(",");else if(Q==="range"){const[B,K]=G;S[U+"_min"]=B,S[U+"_max"]=K}});const R=await mn(S);return T===s&&q(r,[...o(r),...R.results],!0),R}async function y(T){l&&clearTimeout(l),l=setTimeout(()=>{g(),q(c,m(),!0),T&&(ue(pe.ExploreSearch,null,{query:T}),St("pixels")&&sr(Ta.SearchQuery,{query:T}))},100)}function b(){g(),q(c,m(),!0)}function g(){q(n,1),q(r,[],!0)}function x(){ac(n),q(c,m(),!0),ue(pe.ExploreShowMore,null,{page:o(n)})}function _(T,S){ui({event:T,data:S}),ue(pe.ExploreTitleClick,S)}var E=vu(),D=Z(E);Xi(D,()=>o(p),T=>{var S=cu(),R=k(S);{let U=V(()=>!o(p)),Q=V(()=>!i());lu(R,{get filter(){return a},get limit(){return o(U)},onchange:b,get showSorting(){return o(Q)}})}w(T,S)});var z=I(D,2);let A,O;var j=k(z);Pe(j,17,()=>o(r),ze,(T,S)=>{var R=fe(),U=Z(R);Xi(U,()=>o(S).sid,Q=>{var G=fe(),B=Z(G);Kr(B,()=>o(f),(K,J)=>{J(K,{get title(){return o(S)},onclick:$=>_($,o(S))})}),w(Q,G)}),w(T,R)});var M=I(j,2);Ya(M,()=>o(c),T=>{var S=fe(),R=Z(S);Pe(R,16,()=>({length:24}),ze,(U,Q)=>{var G=fe(),B=Z(G);Kr(B,()=>o(h),(K,J)=>{J(K,{})}),w(U,G)}),w(T,S)},void 0,T=>{});var P=I(z,2);Ya(P,()=>o(c),null,(T,S)=>{var R=V(()=>{var{next:$}=o(S);return{next:$}}),U=V(()=>o(R).next),Q=pu(),G=Z(Q);{var B=$=>{var le=du();let re;var xe=k(le);Ii(xe,{size:"large",onclick:x,children:(Ae,se)=>{var ye=Qt();F(ge=>Y(ye,ge),[()=>ee("Show More")]),w(Ae,ye)},$$slots:{default:!0}}),F(()=>re=be(le,1,"show-more svelte-qc99of",null,re,{grid:o(p)})),w($,le)};H(G,$=>{o(U)&&$(B)})}var K=I(G,2);{var J=$=>{su($)};H(K,$=>{var le;!((le=o(r))!=null&&le.length)&&o(n)===1&&$(J)})}w(T,Q)},T=>{var S=uu();w(T,S)}),F(()=>{A=be(z,1,"titles svelte-qc99of",null,A,{grid:o(p)}),O=He(z,"",O,{"--grid-columns":o(u)})}),kt(z,"clientWidth",T=>q(d,T)),w(t,E),ae()}var hu=ht('<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 gu(t){var e=hu();w(t,e)}var mu=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function yu(t,e){ie(e,!0);let i=W("");var a=mu(),r=k(a),n=k(r);gu(n);var l=I(r,2);l.__input=()=>e.oninput(o(i)),F(s=>te(l,"placeholder",s),[()=>ee("Search Movies And Shows")]),ka(l,()=>o(i),s=>q(i,s)),w(t,a),ae()}de(["input"]);var bu=C('<p class="description svelte-l2apr8"> </p>'),wu=C('<div class="navigation svelte-l2apr8" role="navigation"></div>'),_u=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 xu(t,e){ie(e,!0);let i=N(e,"navigate",3,()=>null),a=N(e,"searchQuery",15,""),r=null,n=W(null),l=W(0);Ze(()=>{var _;q(n,((_=r==null?void 0:r.closest(kn))==null?void 0:_.style.height)||null,!0)}),dt(async()=>{var _;ue(pe.ExplorePageView),(_=window.PlayPilotLinkInjections.ads)!=null&&_.length||(window.PlayPilotLinkInjections.ads=await Po())});var s=_u();let c;var d=k(s),p=k(d),u=I(k(p),2),f=k(u);Rt(u,_=>Re==null?void 0:Re(_));var h=I(u,2);{var m=_=>{var E=bu(),D=k(E);F(z=>Y(D,z),[()=>ee("Streaming Guide Description")]),w(_,E)};H(h,_=>{ia()||_(m)})}var y=I(d,2);{var b=_=>{var E=wu();Pe(E,21,()=>e.routes,ze,(D,z)=>{{let A=V(()=>e.currentRoute.key===o(z).key);Ii(D,{variant:"border",size:"large",get active(){return o(A)},onclick:()=>i()(o(z)),children:(O,j)=>{var M=Qt();F(P=>Y(M,P),[()=>ee(o(z).label)]),w(O,M)},$$slots:{default:!0}})}}),w(_,E)};H(y,_=>{ia()&&_(b)})}var g=I(y,2);yu(g,{oninput:_=>a(_)});var x=I(g,2);Ve(x,()=>e.children),at(s,_=>r=_,()=>r),F(_=>{c=He(s,"",c,{height:o(n),"--playpilot-explore-width":`${o(l)??""}px`}),Y(f,_)},[()=>ee("Streaming Guide")]),kt(s,"clientWidth",_=>q(l,_)),w(t,s),ae()}function Bo(t,e){ie(e,!0);const i=[{key:"results",label:"Explore",component:fu}];ia()&&i.unshift({key:"home",label:"Home",component:sp});let a=W(Fe(i[0])),r=W("");const n=V(()=>o(a).component);Ze(()=>{o(r)&&q(a,i.find(s=>s.key==="results"),!0)});function l(s){q(a,s,!0)}xu(t,{get routes(){return i},get currentRoute(){return o(a)},navigate:l,get searchQuery(){return o(r)},set searchQuery(s){q(r,s,!0)},children:(s,c)=>{var d=fe(),p=Z(d);Kr(p,()=>o(n),(u,f)=>{f(u,{get searchQuery(){return o(r)}})}),w(s,d)},$$slots:{default:!0}}),ae()}const kn="[data-playpilot-explore]",ku="[data-playpilot-pre-consent-explore]",Fo="playpilot-explore-custom-style";let cr=null;function dr(){var e;const t=document.querySelector(kn);t&&(pr(),(e=document.querySelector(ku))==null||e.remove(),t.innerHTML="",cr=Nt(Bo,{target:t}),Tu())}function pr(){var t;cr&&(Ji(cr),cr=null,(t=document.querySelector("#"+Fo))==null||t.remove())}function Su(){var c;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;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),s=l.nodeName==="A"?l:l.querySelector("a");return s.classList.remove("active"),s.innerText=i||"Streaming Guide",s.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function Tu(){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=Fo,document.body.appendChild(e)}function ia(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Sn(t,e){ie(e,!0);const i=N(e,"size",3,"32px"),a=N(e,"onclick",3,()=>null),r=so(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=fe(),l=Z(n);Gl(l,()=>e.href?"a":"button",!1,(s,c)=>{eo(s,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[ea]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=fe(),p=Z(d);Ve(p,()=>e.children??ut),w(c,d)}),w(t,n),ae()}var Eu=C("<div></div>");function Pu(t,e){ie(e,!0);let i=N(e,"threshold",3,100),a=N(e,"isDragging",15,!1),r=N(e,"passedThreshold",15,!1),n=N(e,"onpassed",3,()=>null),l=W(0),s=W(0),c=W(null),d=W(!1);const p=V(()=>Math.max(o(s)-o(l),0));Ze(()=>{r(o(p)>i())});function u(g){if(g){a(!0),q(d,!0),q(l,g.touches[0].pageY,!0);for(const x of e.targets)x.style.transitionDuration="0ms"}}function f(g){if(g&&a()){g.preventDefault(),q(s,g.touches[0].pageY,!0),o(c).style.transform=`translateY(${o(p)}px)`;for(const x of e.targets)x.style.top=`${o(p)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(c).removeAttribute("style");for(const g of e.targets)g.style.removeProperty("transition"),requestAnimationFrame(()=>g.style.top="0px")}q(l,0),q(s,0)}}var m={start:u,move:f,end:h},y=Eu();ke("touchmove",Me,f,void 0,!0),ke("touchend",Me,h);let b;return y.__touchstart=u,at(y,g=>q(c,g),()=>o(c)),F(()=>b=be(y,1,"handle svelte-1xqgdsn",null,b,{dragging:a(),dragged:o(d)})),w(t,y),ae(m)}de(["touchstart"]);var Cu=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],zu=["difference","intersection","symmetricDifference","union"],Vo=!1;const xr=class xr extends Set{constructor(i){super();oe(this,da);oe(this,ca,new Map);oe(this,Et,W(0));oe(this,yi,W(0));oe(this,_r,Jt||-1);if(i){for(var a of i)super.add(a);L(this,yi).v=super.size}Vo||Ce(this,da,cs).call(this)}has(i){var a=super.has(i),r=L(this,ca),n=r.get(i);if(n===void 0){if(!a)return o(L(this,Et)),!1;n=Ce(this,da,ss).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),q(L(this,yi),super.size),oi(L(this,Et))),this}delete(i){var a=super.delete(i),r=L(this,ca),n=r.get(i);return n!==void 0&&(r.delete(i),q(n,!1)),a&&(q(L(this,yi),super.size),oi(L(this,Et))),a}clear(){if(super.size!==0){super.clear();var i=L(this,ca);for(var a of i.values())q(a,!1);i.clear(),q(L(this,yi),0),oi(L(this,Et))}}keys(){return this.values()}values(){return o(L(this,Et)),super.values()}entries(){return o(L(this,Et)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(L(this,yi))}};ca=new WeakMap,Et=new WeakMap,yi=new WeakMap,_r=new WeakMap,da=new WeakSet,ss=function(i){return Jt===L(this,_r)?W(i):Lt(i)},cs=function(){Vo=!0;var i=xr.prototype,a=Set.prototype;for(const r of Cu)i[r]=function(...n){return o(L(this,Et)),a[r].apply(this,n)};for(const r of zu)i[r]=function(...n){o(L(this,Et));var l=a[r].apply(this,n);return new xr(l)}};let ur=xr;class Iu{constructor(e,i){oe(this,Ma);oe(this,Da);ne(this,Ma,e),ne(this,Da,dl(i))}get current(){return L(this,Da).call(this),L(this,Ma).call(this)}}Ma=new WeakMap,Da=new WeakMap;const ju=/\(.+\)/,Au=new Set(["all","print","screen","and","or","not","only"]);class Lu extends Iu{constructor(e,i){let a=ju.test(e)||e.split(/[\s,]+/).some(n=>Au.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>Pc(r,"change",n))}}const Tn=new Lu("(prefers-reduced-motion: reduce)");function En(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 s=e();if(!s.length)return;const[c]=s,d=s[s.length-1];n.shiftKey&&l===c&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(c.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 Mu(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Du=C("<div><!></div>"),qu=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Ou=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Nu=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Ru=C("<div><!></div>"),Bu=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Fu=C('<div data-testid="modal"><!> <!> <!> <!></div>');function vr(t,e){ie(e,!0);const i=B=>{var K=Du(),J=k(K);Sn(J,{onclick:E,"aria-label":"Close",children:($,le)=>{yn($,{})},$$slots:{default:!0}}),at(K,$=>q(m,$),()=>o(m)),F(()=>be(K,1,`close ${l()??""}`,"svelte-1rbidhv")),De(7,K,()=>_),w(B,K)},a=N(e,"tall",3,!1),r=N(e,"wide",3,!1),n=N(e,"blur",3,!1),l=N(e,"closeButtonStyle",3,"shadow"),s=N(e,"initialScrollPosition",3,0),c=N(e,"onscroll",3,()=>null),d=N(e,"onclose",3,()=>null),p="#playpilot";let u=W(0),f=W(null),h=W(null),m=W(null),y=W(0),b=W(!1);const g=V(()=>o(u)<Ci);Ze(()=>{var B;o(u)&&q(y,((B=o(h))==null?void 0:B.offsetTop)||0,!0)}),Ze(()=>{setTimeout(()=>{var B;return q(y,((B=o(h))==null?void 0:B.offsetTop)||0,!0)})}),Lr("scope","modal"),dt(()=>{const B=Mu();return B.classList.add("playpilot-modal-open"),q(b,!!Zo()),o(b)||window.history.pushState({modal:!0},"",p),requestAnimationFrame(x),()=>{var K;B.classList.remove("playpilot-modal-open"),!Zo()&&((K=history.state)!=null&&K.modal)&&history.back()}});function x(){const B=window.innerWidth>Ci?o(f):o(h);B==null||B.scrollTo(0,s())}function _(B){return Tn.current?ei(B,{duration:0}):o(g)?Pa(B,{duration:250,y:window.innerHeight,opacity:1}):ta(B,{duration:150,start:.85})}function E(){d()(),jn()}function D(B){B.target===o(f)&&E()}var z=Fu();ke("keydown",Me,({key:B})=>{B==="Escape"&&E()}),ke("hashchange",Me,E);let A;z.__click=D;let O;var j=k(z);{var M=B=>{var K=qu(),J=k(K);Ve(J,()=>e.prepend),De(7,K,()=>_),w(B,K)};H(j,B=>{e.prepend&&B(M)})}var P=I(j,2);{var T=B=>{var K=Ou(),J=k(K);Ve(J,()=>e.bubble),De(7,K,()=>_),w(B,K)};H(P,B=>{e.bubble&&B(T)})}var S=I(P,2);{var R=B=>{var K=Nu(),J=k(K);{var $=le=>{{let re=V(()=>[o(h),o(m)]);Pu(le,{get targets(){return o(re)},onpassed:E})}};H(J,le=>{o(h)&&o(m)&&le($)})}De(7,K,()=>_),w(B,K)};H(S,B=>{o(g)&&B(R)})}var U=I(S,2);{var Q=B=>{var K=fe(),J=Z(K);Ve(J,()=>e.dialog),w(B,K)},G=B=>{var K=Bu(),J=Z(K),$=k(J);{var le=ge=>{var Le=Ru(),et=k(Le);Sn(et,{onclick:()=>Kf(),"aria-label":"Back",children:(Ie,ce)=>{Bt(Ie,{direction:"left"})},$$slots:{default:!0}}),F(()=>be(Le,1,`close back ${l()??""}`,"svelte-1rbidhv")),w(ge,Le)};H($,ge=>{o(b)&&ge(le)})}var re=I($,2);Ve(re,()=>e.children??ut);var xe=I(re,2);{var Ae=ge=>{i(ge)};H(xe,ge=>{o(g)||ge(Ae)})}at(J,ge=>q(h,ge),()=>o(h));var se=I(J,2);{var ye=ge=>{i(ge)};H(se,ge=>{o(g)&&ge(ye)})}ke("scroll",J,function(...ge){var Le;(Le=c())==null||Le.apply(this,ge)}),De(7,J,()=>_),w(B,K)};H(U,B=>{e.dialog?B(Q):B(G,!1)})}at(z,B=>q(f,B),()=>o(f)),Rt(z,B=>En==null?void 0:En(B)),F(()=>{A=be(z,1,"modal svelte-1rbidhv",null,A,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),O=He(z,"",O,{"--dialog-offset":`${o(y)??""}px`})}),tn("innerWidth",B=>q(u,B,!0)),De(5,z,()=>ei,()=>({duration:150})),De(6,z,()=>ei,()=>({duration:150,delay:100})),w(t,z),ae()}de(["click"]);var Vu=C('<div class="genre svelte-1mphbln"> </div>'),Hu=C('<button class="genre expand svelte-1mphbln"> </button>'),Uu=C("<!> <!>",1);function Wu(t,e){ie(e,!0);let i=W(!1);const a=V(()=>o(i)?e.genres:[e.genres[0]]);var r=Uu(),n=Z(r);Pe(n,17,()=>o(a),ze,(c,d)=>{const p=V(()=>{var m;return(m=fn.find(y=>y.slug===o(d)))==null?void 0:m.name});var u=fe(),f=Z(u);{var h=m=>{var y=Vu(),b=k(y);Za(y,()=>Eo()?Do(Ta.GenreInterest,{genre:o(p)}):null),F(g=>Y(b,g),[()=>ee(o(p))]),w(m,y)};H(f,m=>{o(p)&&m(h)})}w(c,u)});var l=I(n,2);{var s=c=>{var d=Hu();d.__click=()=>q(i,!0);var p=k(d);F(()=>Y(p,`+${e.genres.length-1}`)),w(c,d)};H(l,c=>{!o(i)&&e.genres.length>1&&c(s)})}w(t,r),ae()}de(["click"]);var Gu=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),Ku=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function Pn(t,e){const i=N(e,"small",3,!1);let a=W(!1);function r(p){p.preventDefault(),p.stopPropagation(),q(a,!o(a))}var n=Ku();n.__click=r;var l=k(n);let s;var c=I(l,2);{var d=p=>{var u=Gu(),f=k(u);F(()=>Y(f,e.disclaimer)),De(3,u,()=>ei,()=>({duration:50})),w(p,u)};H(c,p=>{o(a)&&p(d)})}F(()=>s=be(l,1,"disclaimer svelte-1ldthr7",null,s,{small:i()})),w(t,n)}de(["click"]);var Yu=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Zu=C('<span class="cta svelte-13ka2ap"> </span>'),Ju=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 Ho(t,e){ie(e,!0);const i=N(e,"disclaimer",3,""),a=N(e,"hideCategory",3,!1),r=N(e,"onclick",3,()=>null),n=V(()=>e.playlink.name),l=V(()=>e.playlink.url),s=V(()=>e.playlink.logo_url),c=V(()=>e.playlink.highlighted),d=V(()=>e.playlink.cta_text),p=V(()=>e.playlink.action_text),u=V(()=>e.playlink.pixels),f=V(()=>e.playlink.extra_info.category),h=V(()=>Eo()&&!o(c)),m={AVOD:ee("Stream"),SVOD:ee("Stream"),BUY:ee("Buy"),RENT:ee("Rent"),TVOD:ee("Rent Or Buy")};let y=W(0);var b=fe(),g=Z(b);Gl(g,()=>{var x,_;return!((_=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&_.require_affiliate_consent)||St("affiliate")?"a":"span"},!1,(x,_)=>{Za(x,()=>o(h)?Do(Ta.ProviderInterest,{provider:e.playlink.slug}):null),Za(x,()=>o(h)?dp(Ta.ProviderClick,{provider:e.playlink.slug}):null),eo(x,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[$i]:{highlighted:o(c),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var E=Ju(),D=Z(E);let z;var A=k(D),O=I(A,2),j=k(O),M=I(O,2);{var P=J=>{var $=Yu(),le=k($);F(re=>Y(le,re),[()=>m[o(f)]||ee("Stream")]),w(J,$)};H(M,J=>{a()||J(P)})}var T=I(M,2);{var S=J=>{var $=Zu(),le=k($);F(()=>Y(le,o(d))),w(J,$)};H(T,J=>{o(d)&&J(S)})}var R=I(T,2),U=k(R),Q=I(R,2);{var G=J=>{Pn(J,{get disclaimer(){return i()},small:!0})};H(Q,J=>{i()&&J(G)})}var B=I(D,2);{var K=J=>{xn(J,{get pixels(){return o(u)}})};H(B,J=>{var $;($=o(u))!=null&&$.length&&J(K)})}F((J,$)=>{z=He(D,"",z,{"--action-width":o(y)?`${o(y)}px`:null}),te(A,"src",J),Y(j,o(n)),Y(U,$)},[()=>ar(o(s)),()=>o(p)||ee("Watch")]),kt(R,"clientWidth",J=>q(y,J)),w(_,E)}),w(t,b),ae()}var Qu=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>'),Xu=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),$u=C('<div class="heading category svelte-1fykz2q"> </div>'),ev=C("<!> <!>",1),tv=C("<!> <div></div>",1),iv=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function av(t,e){var E,D;ie(e,!0);const i=Ar("scope")==="modal",a=Ea("card"),r=!!((D=(E=window.PlayPilotLinkInjections)==null?void 0:E.config)!=null&&D.categorize_playlinks);let n=W(0);const l=V(()=>qo(e.playlinks)),s=V(()=>u(e.playlinks)),c=V(()=>r?f(o(s)):[["",o(l)]]),d=V(()=>o(n)<500||!!a||o(l).length===1);function p(z){ue(i?pe.TitleModalPlaylinkClick:pe.TitlePopoverPlaylinkClick,e.title,{playlink:z})}function u(z){const A={};for(const O of z){const{category:j}=O.extra_info;j in A||(A[j]=[]),A[j].push(O)}return A}function f(z){const A=["AVOD","SVOD","RENT","BUY"],O=[];for(const M of A)z[M]&&O.push([M,z[M]]);const j=[];for(const M of Object.values(z))for(const P of M)A.includes(P.extra_info.category)||j.push(P);return[...O,["Other",j]]}var h=iv(),m=Z(h),y=k(m);Rt(m,(z,A)=>Re==null?void 0:Re(z,A),()=>3);var b=I(m,2);{var g=z=>{var A=Qu(),O=k(A);F(j=>Y(O,`${j??""} `),[()=>{var j,M;return((M=(j=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:j.config)==null?void 0:M.playlinks_disclaimer_text)||ee("Commission Disclaimer")}]),w(z,A)},x=z=>{var A=Xu(),O=k(A);F(j=>Y(O,j),[()=>ee("Title Unavailable")]),w(z,A)};H(b,z=>{o(l).length?z(g):z(x,!1)})}var _=I(b,2);Pe(_,17,()=>o(c),ze,(z,A,O,j)=>{var M=V(()=>pa(o(A),2));let P=()=>o(M)[0],T=()=>o(M)[1];var S=tv(),R=Z(S);{var U=B=>{var K=$u(),J=k(K);Rt(K,($,le)=>Re==null?void 0:Re($,le),()=>4),F($=>Y(J,$),[()=>ee(`Category: ${P()}`)]),w(B,K)};H(R,B=>{P()&&T().length&&B(U)})}var Q=I(R,2);let G;Pe(Q,21,T,ze,(B,K,J)=>{var $=ev(),le=Z($);Ho(le,{get playlink(){return o(K)},onclick:()=>p(o(K).name)});var re=I(le,2);{var xe=Ae=>{{let se=V(()=>Cd(a)),ye=V(()=>a.disclaimer||"");Ho(Ae,{get playlink(){return o(se)},onclick:()=>ue(pe.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(ye)}})}};H(re,Ae=>{a&&J===0&&Ae(xe)})}w(B,$)}),F(()=>{G=be(Q,1,"playlinks svelte-1fykz2q",null,G,{list:o(d)}),te(Q,"data-testid",`category-${P()??""}`)}),kt(Q,"clientWidth",B=>q(n,B)),w(z,S)}),F(z=>Y(y,z),[()=>ee("Where To Stream Online")]),w(t,h),ae()}var rv=C('<button class="show-more svelte-7itcht">Show more</button>'),nv=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),lv=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function ov(t,e){ie(e,!0);const i=N(e,"blurb",3,""),a=N(e,"limit",3,200),r=N(e,"onclick",3,()=>null);let n=W(!1);const l=V(()=>e.text.slice(0,a()));function s(){q(n,!0),r()()}var c=lv(),d=k(c),p=k(d),u=I(p);{var f=g=>{var x=Qt("...");w(g,x)};H(u,g=>{!o(n)&&e.text.length>a()&&g(f)})}var h=I(u,2);{var m=g=>{var x=rv();x.__click=()=>s(),w(g,x)};H(h,g=>{!o(n)&&(e.text.length>a()||i())&&g(m)})}var y=I(d,2);{var b=g=>{var x=nv(),_=k(x);F(()=>Y(_,i())),w(g,x)};H(y,g=>{o(n)&&g(b)})}F(()=>Y(p,o(n)?e.text:o(l))),w(t,c),ae()}de(["click"]);async function sv(t,{page:e=1}={}){const i={language:Sa(),region:await gn(),include_count:"false",participant_sid:t.sid,page:e};return(await $t(`/titles/browse?api-token=${di()}&${pn(i)}`)).results}async function cv(t){return(await $t(`/participants/browse?api-token=${di()}&title_sid=${t.sid}`)).results}var dv=C('<div class="character truncate svelte-zy7e3f"> </div>'),pv=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),uv=C('<div class="participant svelte-zy7e3f"></div>');function vv(t,e){ie(e,!0);function i(l){const s=pi(sn(fo(on()))),c={};for(const p of l){const u=tr(s,pi(p.name));c[p.sid]={participant:p,count:u}}return Object.values(c).sort((p,u)=>u.count-p.count).map(({participant:p})=>p)}function a(l,s){ui({event:l,type:"participant",data:s}),ue(pe.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var r=fe(),n=Z(r);Ya(n,()=>cv(e.title),l=>{{let s=V(()=>ee("Cast"));lr(l,{get heading(){return o(s)},children:(c,d)=>{var p=fe(),u=Z(p);Pe(u,16,()=>({length:5}),ze,(f,h)=>{var m=uv();w(f,m)}),w(c,p)},$$slots:{default:!0}})}},(l,s)=>{var c=fe(),d=Z(c);{var p=u=>{{let f=V(()=>ee("Cast"));lr(u,{get heading(){return o(f)},children:(h,m)=>{var y=fe(),b=Z(y);Pe(b,17,()=>i(o(s)).slice(0,15),ze,(g,x)=>{var _=pv();_.__click=O=>a(O,o(x));var E=k(_),D=k(E),z=I(E,2);{var A=O=>{var j=dv(),M=k(j);F(()=>Y(M,o(x).character)),w(O,j)};H(z,O=>{o(x).character&&O(A)})}F(()=>Y(D,o(x).name)),w(g,_)}),w(h,y)},$$slots:{default:!0}})}};H(d,u=>{var f;(f=o(s))!=null&&f.length&&u(p)})}w(l,c)}),w(t,r),ae()}de(["click"]);function fv(t,e){ie(e,!0);const i=Id(e.title);{let a=V(()=>ee("Similar Titles"));Mo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>ue(pe.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ae()}function hv(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 gv=ht('<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 mv(t){var e=gv();w(t,e)}var yv=ht('<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 bv(t){var e=yv();w(t,e)}var wv=ht('<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 _v(t){var e=wv();w(t,e)}var xv=ht('<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 kv(t){var e=xv();w(t,e)}var Sv=C('<button class="svelte-827qd7"><!></button>'),Tv=C('<div class="content svelte-827qd7"><!></div>'),Ev=C("<div><!> <!></div>");function Pv(t,e){const i=N(e,"label",3,""),a=N(e,"align",3,"right");let r=W(!1),n=W(null);function l(h){var y;h.currentTarget===((y=o(n))==null?void 0:y.querySelector("button"))&&h.stopPropagation(),q(r,!o(r))}var s=Ev();ke("click",Me,()=>q(r,!1));var c=k(s);{var d=h=>{var m=fe(),y=Z(m);Ve(y,()=>e.button,()=>({toggle:l})),w(h,m)},p=h=>{var m=Sv();m.__click=l;var y=k(m);kv(y),F(()=>{te(m,"aria-label",i()),te(m,"aria-expanded",o(r))}),w(h,m)};H(c,h=>{e.button?h(d):h(p,!1)})}var u=I(c,2);{var f=h=>{var m=Tv(),y=k(m);Ve(y,()=>e.children),De(1,m,()=>ta,()=>({duration:50,start:.85})),w(h,m)};H(u,h=>{o(r)&&h(f)})}at(s,h=>q(n,h),()=>o(n)),F(()=>be(s,1,`context-menu ${a()??""}`,"svelte-827qd7")),w(t,s)}de(["click"]);var Cv=C("<!> ",1),zv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Iv(t,e){ie(e,!0);let i=N(e,"url",7);const r=window.innerWidth<Ci&&typeof navigator.share<"u";dt(()=>{i(i()+"?utm_source=tpi")});function n(c,d){if(!r){d(c);return}ue(pe.ShareTitle,null,{title:e.title,url:zi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){ue(pe.ShareTitle,null,{title:e.title,url:zi(),method:"copy"}),hv(i())}function s(){ue(pe.ShareTitle,null,{title:e.title,url:zi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Pv(t,{button:(d,p)=>{let u=()=>p==null?void 0:p().toggle;Ii(d,{onclick:f=>n(f,u()),children:(f,h)=>{var m=Cv(),y=Z(m);mv(y);var b=I(y);F(g=>Y(b,` ${g??""}`),[()=>ee("Share")]),w(f,m)},$$slots:{default:!0}})},children:(d,p)=>{var u=zv(),f=Z(u);f.__click=l;var h=k(f);bv(h);var m=I(h),y=I(f,2);y.__click=s;var b=k(y);_v(b);var g=I(b);F((x,_)=>{Y(m,` ${x??""}`),Y(g,` ${_??""}`)},[()=>ee("Copy URL"),()=>ee("Email")]),w(d,u)},$$slots:{button:!0,default:!0}}),ae()}de(["click"]);var jv=ht('<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 Av(t){var e=jv();w(t,e)}var Lv=C("<!> ",1);function Mv(t,e){ie(e,!0);function i(){Nd(e.title),ue(pe.TrailerClick,e.title)}Ii(t,{onclick:i,children:(a,r)=>{var n=Lv(),l=Z(n);Av(l);var s=I(l);F(c=>Y(s,` ${c??""}`),[()=>ee("Watch Trailer")]),w(a,n)},$$slots:{default:!0}}),ae()}var Dv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function qv(t,e){const i=N(e,"embeddable_url",3,"");let a=W(0),r=W(0);const n=V(()=>Math.max(o(a),o(r)));var l=Dv(),s=k(l);wn(s,{get embeddable_url(){return i()},muted:!0,loop:!0}),F(()=>He(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),kt(l,"clientWidth",c=>q(a,c)),kt(l,"clientHeight",c=>q(r,c)),w(t,l)}var Ov=C("<div> </div>"),Nv=C('<img alt=""/>'),Rv=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 Cn(t,e){var Ie;ie(e,!0);const i=N(e,"small",3,!1),a=N(e,"useVideoBackground",3,!0),r=!!((Ie=window.PlayPilotLinkInjections)!=null&&Ie.no_affiliate);Lr("title",e.title);const n=V(()=>(!i()||r)&&e.title.description);let l=W(!1),s=W(!1),c=W(!1),d=W(!1);Ze(()=>{a()&&e.title.embeddable_url&&jo(bn(e.title.embeddable_url)).then(ce=>{q(d,ce,!0)})});var p=Rv(),u=Z(p);let f;var h=k(u),m=k(h);let y;var b=k(m);rr(b,{get title(){return e.title},onload:()=>q(l,!0),lazy:!1});var g=I(m,2);let x;var _=k(g);Rt(g,(ce,Ke)=>Re==null?void 0:Re(ce,Ke),()=>2);var E=I(g,2),D=k(E),z=k(D);_n(z,{});var A=I(z),O=I(D,2);Wu(O,{get genres(){return e.title.genres}});var j=I(O,2),M=k(j),P=I(j,2),T=k(P),S=I(P,2);{var R=ce=>{var Ke=Ov(),bt=k(Ke);F(qe=>Y(bt,`${e.title.length??""} ${qe??""}`),[()=>ee("Minutes")]),w(ce,Ke)};H(S,ce=>{!i()&&e.title.length&&ce(R)})}var U=I(E,2),Q=k(U);{var G=ce=>{Mv(ce,{get title(){return e.title}})};H(Q,ce=>{e.title.embeddable_url&&ce(G)})}var B=I(Q,2);{let ce=V(()=>Lo(e.title));Iv(B,{get title(){return e.title.title},get url(){return o(ce)}})}var K=I(h,2),J=k(K);{var $=ce=>{ov(ce,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>ue(pe.ExpandTitleDescription,e.title)})};H(J,ce=>{o(n)&&ce($)})}var le=I(J,2);{var re=ce=>{av(ce,{get playlinks(){return e.title.providers},get title(){return e.title}})};H(le,ce=>{r||ce(re)})}var xe=I(le,2);vv(xe,{get title(){return e.title}});var Ae=I(xe,2);fv(Ae,{get title(){return e.title}});var se=I(u,2);let ye;var ge=k(se);{var Le=ce=>{qv(ce,{get embeddable_url(){return e.title.embeddable_url}})},et=ce=>{var Ke=fe(),bt=Z(Ke);Xi(bt,()=>o(c),qe=>{var je=Nv();let X;F(ve=>{te(je,"src",ve),X=be(je,1,"svelte-16ajinh",null,X,{loaded:o(s),blur:o(c)})},[()=>ar(o(c)?e.title.standing_poster:e.title.medium_poster)]),ke("load",je,()=>q(s,!0)),ke("error",je,()=>q(c,!0)),w(qe,je)}),w(ce,Ke)};H(ge,ce=>{a()&&o(d)?ce(Le):ce(et,!1)})}F(ce=>{f=be(u,1,"content svelte-16ajinh",null,f,{small:i()}),y=be(m,1,"poster svelte-16ajinh",null,y,{loaded:o(l)}),x=be(g,1,"heading svelte-16ajinh",null,x,{truncate:i()}),Y(_,e.title.title),Y(A,` ${e.title.imdb_score??""}`),Y(M,e.title.year),Y(T,ce),ye=be(se,1,"background svelte-16ajinh",null,ye,{small:i()})},[()=>ee(`Type: ${e.title.type}`)]),w(t,p),ae()}function aa(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 Uo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},zn={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Bv({key:t}){var a,r,n;if(!St("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 Wo(t){const e=Bv(t);return Math.floor(e*t.numberOfVariants)}function Fv(t){var i;const e=Wo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function Vv(t,e=1){return St("tracking")?Wo(t)===e:!1}function Hv(t){const e=Fv(t);ue(pe.SplitTestView,null,{key:t.key,variant:e})}var Uv=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Wv=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Gv=C('<button class="button svelte-1mt6g1y"> </button>'),Kv=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),Yv=C('<div class="background svelte-1mt6g1y"></div>'),Zv=C("<!> <!>",1),Jv=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Go(t,e){ie(e,!0),ue(pe.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),Hv(zn.TopScrollFormat);const i=V(()=>e.campaign.disclaimer),a=V(()=>e.campaign.content),r=V(()=>e.campaign.cta),n=V(()=>o(a).format),l=V(()=>o(a).header),s=V(()=>o(a).header_logo),c=V(()=>o(a).image_uuid),d=V(()=>o(r).header),p=V(()=>o(r).url),u=V(()=>o(n)==="large"),f=V(()=>Io(o(c),Uo.TopScrollBackground)),h=V(()=>Io(o(c),Uo.TopScrollContent));let m=W(0);function y(){ue(pe.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var b=Jv();b.__click=y;let g,x;var _=k(b),E=k(_);{var D=j=>{var M=Uv();F(()=>{te(M,"src",o(h)),te(M,"alt",o(l))}),w(j,M)},z=j=>{var M=Kv(),P=Z(M);{var T=G=>{var B=Wv();F(()=>te(B,"src",o(s))),w(G,B)};H(P,G=>{o(s)&&G(T)})}var S=I(P,2),R=k(S),U=I(S,2);{var Q=G=>{var B=Gv(),K=k(B);F(()=>Y(K,o(d))),w(G,B)};H(U,G=>{o(d)&&G(Q)})}F(()=>Y(R,o(l))),w(j,M)};H(E,j=>{o(u)?j(D):j(z,!1)})}var A=I(_,2);{var O=j=>{var M=Zv(),P=Z(M);{var T=U=>{var Q=Yv();let G;F(()=>G=He(Q,"",G,{"--background":`url('${o(f)??""}')`})),w(U,Q)};H(P,U=>{o(c)&&U(T)})}var S=I(P,2);{var R=U=>{Pn(U,{get disclaimer(){return o(i)}})};H(S,U=>{o(i)&&U(R)})}w(j,M)};H(A,j=>{o(u)||j(O)})}Rt(b,(j,M)=>aa==null?void 0:aa(j,M),()=>({onclick:y})),Ei(()=>kt(b,"clientWidth",j=>q(m,j))),F(()=>{te(b,"href",o(p)),g=be(b,1,"top-scroll svelte-1mt6g1y",null,g,{simple:o(u)}),x=He(b,"",x,{"--width":`${o(m)??""}px`})}),w(t,b),ae()}de(["click"]);var Qv=C('<div class="content svelte-r7ubzi"><!></div>'),Xv=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function $v(t,e){let i=W(!1);var a=Xv();a.__touchstart=()=>q(i,!o(i));var r=k(a);Ve(r,()=>e.children);var n=I(r,2);{var l=s=>{var c=Qv(),d=k(c);Ve(d,()=>e.content),De(1,c,()=>ei,()=>({duration:100})),w(s,c)};H(n,s=>{o(i)&&s(l)})}ke("mouseenter",a,()=>q(i,!0)),ke("mouseleave",a,()=>q(i,!1)),w(t,a)}de(["touchstart"]);var ef=C('<div class="info svelte-qcpiki"><!></div>'),tf=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),af=C('<span class="name svelte-qcpiki"> </span>'),rf=C('<div class="subheader svelte-qcpiki"> </div>'),nf=C('<div class="action svelte-qcpiki"> </div>'),lf=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),of=C('<img class="background svelte-qcpiki" alt=""/>'),sf=C('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),cf=C('<div class="disclaimer svelte-qcpiki"><!></div>'),df=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Ko(t,e){ie(e,!0);const i=N(e,"compact",3,!1),a=V(()=>e.campaign.disclaimer),r=V(()=>e.campaign.content),n=V(()=>e.campaign.cta),l=V(()=>e.campaign.campaign_type),s=V(()=>o(r).header),c=V(()=>o(r).subheader),d=V(()=>o(r).header_logo),p=V(()=>o(r).image),u=V(()=>o(r).video),f=V(()=>o(n).header),h=V(()=>o(n).url),m=V(()=>o(n).subheader);let y=W(0);ue(pe.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function b(){ue(pe.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var g=df();let x;g.__click=b;var _=k(g);{var E=T=>{var S=ef(),R=k(S);{var U=G=>{$v(G,{content:K=>{var J=Qt();F(()=>Y(J,o(m))),w(K,J)},children:(K,J)=>{var $=Qt("Ad");w(K,$)},$$slots:{content:!0,default:!0}})},Q=G=>{var B=Qt();F(()=>Y(B,o(m))),w(G,B)};H(R,G=>{i()?G(U):G(Q,!1)})}w(T,S)};H(_,T=>{o(m)&&T(E)})}var D=I(_,2);{var z=T=>{var S=lf(),R=k(S);{var U=re=>{var xe=tf();F(()=>te(xe,"src",o(d))),w(re,xe)};H(R,re=>{o(d)&&re(U)})}var Q=I(R,2),G=k(Q);{var B=re=>{var xe=af(),Ae=k(xe);F(()=>Y(Ae,o(s))),w(re,xe)};H(G,re=>{o(s)&&re(B)})}var K=I(G,2);{var J=re=>{var xe=rf(),Ae=k(xe);F(()=>Y(Ae,o(c))),w(re,xe)};H(K,re=>{o(c)&&re(J)})}var $=I(Q,2);{var le=re=>{var xe=nf(),Ae=k(xe);F(()=>Y(Ae,o(f))),w(re,xe)};H($,re=>{o(f)&&re(le)})}kt(S,"clientHeight",re=>q(y,re)),w(T,S)};H(D,T=>{(o(d)||o(s)||o(c)||o(f))&&T(z)})}var A=I(D,2);{var O=T=>{var S=of();F(()=>te(S,"src",o(p))),w(T,S)},j=T=>{var S=fe(),R=Z(S);{var U=Q=>{var G=sf();G.muted=!0;var B=k(G);F(()=>te(B,"src",o(u))),w(Q,G)};H(R,Q=>{o(l)==="video"&&o(u)&&Q(U)},!0)}w(T,S)};H(A,T=>{o(l)==="image"&&o(p)?T(O):T(j,!1)})}var M=I(A,2);{var P=T=>{var S=cf();let R;var U=k(S);Pn(U,{get disclaimer(){return o(a)}}),F(()=>R=He(S,"",R,{"--offset":`${o(y)??""}px`})),w(T,S)};H(M,T=>{o(a)&&T(P)})}Rt(g,(T,S)=>aa==null?void 0:aa(T,S),()=>({onclick:b})),F(()=>{te(g,"href",o(h)),x=be(g,1,"display svelte-qcpiki",null,x,{compact:i()})}),w(t,g),ae()}de(["click"]);var pf=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 uf(t){var l,s;const e="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp";var i=pf();te(i,"href",(s=(l=window.PlayPilotLinkInjections)==null?void 0:l.config)==null?void 0:s.explore_navigation_path);var a=k(i);te(a,"src",e);var r=I(a,4),n=k(r);Bt(n,{}),w(t,i)}function vf(t,e){var f,h;ie(e,!0);const i=m=>{var y=fe(),b=Z(y);{var g=_=>{Go(_,{get campaign(){return l}})},x=_=>{uf(_)};H(b,_=>{l?_(g):_(x,!1)})}w(m,y)},a=m=>{var y=fe(),b=Z(y);{var g=x=>{Ko(x,{get campaign(){return s}})};H(b,x=>{s&&x(g)})}w(m,y)},r=N(e,"initialScrollPosition",3,0),n=so(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=Ea("top_scroll"),s=Ea("card"),c=(h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||c&&!document.querySelector(kn);let p=!1;ue(pe.TitleModalView,e.title),dt(()=>{const m=Date.now();return()=>ue(pe.TitleModalClose,e.title,{time_spent:Date.now()-m})});function u(){p||(ue(pe.TitleModalScroll,e.title),p=!0)}{let m=V(()=>d?i:null),y=V(()=>s?a:null);vr(t,{onscroll:u,get initialScrollPosition(){return r()},get bubble(){return o(m)},get prepend(){return o(y)},tall:!0,children:(b,g)=>{Cn(b,an({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}ae()}var ff=C(" <strong> </strong>",1),hf=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),gf=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),mf=C('<button class="more svelte-ke01cs"> </button>'),yf=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 bf(t,e){ie(e,!0);const i=V(()=>e.participant.name),a=V(()=>e.participant.birth_date),r=V(()=>e.participant.death_date),n=30;let l=W(Fe([])),s=W(1),c=W(!0),d=W(!0);dt(u),St("pixels")&&sr(Ta.ParticipantView,{participant:e.participant.name});function p(M){return new Date(M).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function u(){q(d,!0);try{const M=await sv(e.participant,{page:o(s)});q(l,[...o(l),...M],!0),q(c,(M==null?void 0:M.length)>=n)}catch{q(c,!1)}finally{q(d,!1),q(s,o(s)+1)}}var f=yf(),h=Z(f),m=k(h),y=k(m);Rt(m,(M,P)=>Re==null?void 0:Re(M,P),()=>2);var b=I(m,2);{var g=M=>{var P=hf(),T=k(P),S=I(T),R=k(S),U=I(S);{var Q=G=>{var B=ff(),K=Z(B),J=I(K),$=k(J);F((le,re)=>{Y(K,`, ${le??""} `),Y($,re)},[()=>ee("Died On"),()=>p(o(r))]),w(G,B)};H(U,G=>{o(r)&&G(Q)})}F((G,B)=>{Y(T,`${G??""} `),Y(R,B)},[()=>ee("Born On"),()=>p(o(a))]),w(M,P)};H(b,M=>{o(a)&&M(g)})}var x=I(h,2),_=k(x),E=k(_);Rt(_,(M,P)=>Re==null?void 0:Re(M,P),()=>3);var D=I(_,2),z=k(D);Pe(z,17,()=>o(l),ze,(M,P)=>{No(M,{get title(){return o(P)},onclick:T=>ui({event:T,data:o(P)})})});var A=I(z,2);{var O=M=>{var P=fe(),T=Z(P);Pe(T,16,()=>({length:6}),ze,(S,R)=>{var U=gf();w(S,U)}),w(M,P)},j=M=>{var P=fe(),T=Z(P);{var S=R=>{var U=mf();U.__click=u;var Q=k(U);F(G=>Y(Q,G),[()=>ee("Show More")]),w(R,U)};H(T,R=>{o(c)&&R(S)},!0)}w(M,P)};H(A,M=>{o(d)?M(O):M(j,!1)})}F(M=>{Y(y,o(i)),Y(E,M)},[()=>ee("Credits")]),w(t,f),ae()}de(["click"]);function wf(t,e){ie(e,!0);const i=N(e,"initialScrollPosition",3,0);let a=W(0);ue(pe.ParticipantModalView,null,{participant:e.participant.name}),dt(()=>{const r=Date.now();return()=>ue(pe.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),vr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{bf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),tn("innerWidth",r=>q(a,r,!0)),ae()}var _f=C('<div class="content svelte-16hba4m"><!></div>');function xf(t,e){const i=N(e,"initialScrollPosition",3,0);vr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=_f(),l=k(n);Bo(l,{}),w(a,n)},$$slots:{default:!0}})}function kf(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 Sf=ht('<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 Tf(t){var e=Sf();w(t,e)}var Ef=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Pf=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Cf=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),zf=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function If(t,e){ie(e,!0),Lr("scope","popover");const i=e.bubble&&Vv(zn.TopScrollFormat,1),a=V(()=>({duration:Tn.current?0:100,y:10}));let r=W(null),n=W(!1),l=W(!0),s=W(!1),c=W(0),d=W(0),p=W(0);dt(async()=>{await _a(),u(),await h(),e.append&&requestAnimationFrame(()=>{f(),h()}),await _a(),y()});function u(){if(!o(r))return;const{top:P,right:T,bottom:S,height:R}=o(r).getBoundingClientRect(),U=m();q(n,P-U<0&&window.innerHeight-S>P+R,!0);const Q=window.innerWidth-T-U;T+U>window.innerWidth&&(o(r).style.left=`${Q}px`)}function f(){q(l,o(c)>450)}async function h(){if(q(p,0),await new Promise(G=>requestAnimationFrame(G)),!o(r))return;const{top:P,height:T}=o(r).getBoundingClientRect(),S=m(),R=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,U=o(l)?o(d)+R:0,Q=o(n)?window.innerHeight-P-S-U:P+T-U-S;q(p,Math.min(Q,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 P=o(r).firstChild,{offsetHeight:T,scrollHeight:S,scrollTop:R}=P;S<=T?q(s,!1):q(s,R+T<S)}var b=zf();let g,x;var _=k(b),E=k(_);Ve(E,()=>e.children);var D=I(E,2);{var z=P=>{var T=Ef(),S=k(T),R=k(S);Tf(R),De(3,T,()=>ei,()=>({duration:100})),w(P,T)};H(D,P=>{o(s)&&P(z)})}var A=I(_,2);{var O=P=>{var T=Pf(),S=k(T);Ve(S,()=>e.bubble),De(7,T,()=>Pa,()=>o(a)),w(P,T)};H(A,P=>{e.bubble&&P(O)})}var j=I(A,2);{var M=P=>{var T=Cf(),S=k(T);Ve(S,()=>e.append),De(7,T,()=>Pa,()=>o(a)),kt(T,"clientHeight",R=>q(d,R)),w(P,T)};H(j,P=>{e.append&&o(l)&&P(M)})}at(b,P=>q(r,P),()=>o(r)),F(()=>{g=be(b,1,"popover svelte-wxwoko",null,g,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),x=He(b,"",x,{"--max-height":o(p)?o(p)+"px":null})}),ke("scroll",_,y),De(7,_,()=>Pa,()=>o(a)),kt(b,"clientHeight",P=>q(c,P)),w(t,b),ae()}var jf=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Af(t,e){ie(e,!0);const i=p=>{var u=fe(),f=Z(u);{var h=m=>{Go(m,{get campaign(){return r}})};H(f,m=>{r&&m(h)})}w(p,u)},a=p=>{var u=fe(),f=Z(u);{var h=m=>{Ko(m,{get campaign(){return n},compact:!0})};H(f,m=>{n&&m(h)})}w(p,u)},r=Ea("top_scroll"),n=Ea("card");let l=W(null);ue(pe.TitlePopoverView,e.title),dt(()=>{s();const p=Date.now();return()=>ue(pe.TitlePopoverClose,e.title,{time_spent:Date.now()-p})});function s(){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 c=jf(),d=k(c);{let p=V(()=>n?a:null),u=V(()=>r?i:null);If(d,{get append(){return o(p)},get bubble(){return o(u)},children:(f,h)=>{Cn(f,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}at(c,p=>q(l,p),()=>o(l)),w(t,c),ae()}let fr=null,ji=null;function Lf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;ji&&hr();const i=t.currentTarget;fr=i,setTimeout(()=>{fr===i&&(ji=Nt(Af,{target:Mn(),props:{event:t,title:e.title_details}}))},100)}async function hr(t=!0){if(ji){const e=Ji(ji,{outro:t});fr=null,ji=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Mf(t){if(!ji)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(vi)||e.closest(ti)||hr()}function Df(){fr=null}function qf(){return!!ji}var Of=C('<div class="content svelte-c2erhr"><!></div>'),Nf=C("<div><!></div>"),Rf=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Bf=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Ff=C("<!> <!>",1),Vf=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Hf(t,e){ie(e,!0);const i=N(e,"initialIndex",3,0),a=300;let r,n=W(!1);dt(()=>{setTimeout(()=>{r==null||r.setIndex(i()),requestAnimationFrame(()=>q(n,!0))})}),vr(t,{blur:!0,dialog:s=>{var c=Vf(),d=Z(c);He(d,"",{},{"--transition-duration":"300ms"});var p=k(d);{const h=(b,g)=>{let x=()=>g==null?void 0:g().currentIndex;var _=fe(),E=Z(_);Pe(E,17,()=>e.items,ze,(D,z,A)=>{var O=Nf();let j;O.__click=()=>r.setIndex(A);var M=k(O);{var P=T=>{var S=Of(),R=k(S);Ve(R,()=>e.each,()=>o(z),x),De(3,S,()=>ei,()=>({duration:o(n)?a:0})),w(T,S)};H(M,T=>{(Math.abs(A-x())===1||x()===A)&&T(P)})}F(()=>j=be(O,1,"item svelte-c2erhr",null,j,{active:A===x()})),w(D,O)}),w(b,_)},m=(b,g)=>{let x=()=>g==null?void 0:g().setIndex,_=()=>g==null?void 0:g().currentIndex,E=()=>g==null?void 0:g().reachedEnd;var D=Ff(),z=Z(D);{var A=M=>{var P=Rf();P.__click=()=>x()(_()-1);var T=k(P);Bt(T,{size:21,direction:"left",title:"Previous"}),w(M,P)};H(z,M=>{_()>0&&M(A)})}var O=I(z,2);{var j=M=>{var P=Bf();P.__click=()=>x()(_()+1);var T=k(P);Bt(T,{size:21,title:"Next"}),w(M,P)};H(O,M=>{E()||M(j)})}w(b,D)};let y=V(()=>o(n)?a:0);at(Ao(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);Sn(f,{size:"42px",onclick:()=>jn(),"aria-label":"Close",children:(h,m)=>{yn(h,{size:24})},$$slots:{default:!0}}),De(7,u,()=>ta),w(s,c)},$$slots:{dialog:!0}}),ae()}de(["click"]);function Uf(t,e){ie(e,!0);const i=N(e,"initialIndex",3,0);Hf(t,{get items(){return e.titles},get initialIndex(){return i()},each:(r,n=ut,l=ut)=>{{let s=V(()=>{var c;return n().sid===((c=e.titles[l()])==null?void 0:c.sid)});Cn(r,{get title(){return n()},get useVideoBackground(){return o(s)}})}},$$slots:{each:!0}}),ae()}const $e=[];function ui({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&ko(e))return;e==null||e.preventDefault(),$e!=null&&$e.length&&In();const s=Mn(),c={initialScrollPosition:r,...l},d=Wf({type:t,target:s,data:a,props:c});n&&Yo({type:t,injection:i,data:n}),Yo({type:t,injection:i,data:a,scrollPosition:r,component:d})}function Wf({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Nt(wf,{target:e,props:{participant:i,...a}}):t==="explore"?Nt(xf,{target:e,props:{...a}}):t==="titles-rail"?Nt(Uf,{target:e,props:{titles:i,...a}}):Nt(vf,{target:e,props:{title:i,...a}})}function Yo({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){$e.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function In(t=!0){$e.length&&(Yf(),Ji($e[$e.length-1].component,{outro:t}))}function Gf(t=!0){In(t),$e.pop()}function jn(t=!0){for(In(t);$e.length>0;)$e.pop()}function Zo(){return $e[$e.length-2]||null}function Kf(){if($e.length<2)return;Gf();const t=$e.pop();t&&ui({...t})}function Yf(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Ci?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&($e[$e.length-1].scrollPosition=e.scrollTop)}function Zf(t,e){if(ko(t))return;let i=t.target;if(!i||(i.hasAttribute(vi)||(i=i.closest(ti)),!i))return;const a=i.getAttribute(vi);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),kf(()=>{hr(!1),ui({event:t,injection:r,data:r.title_details})},!Tn.current&&window.innerWidth>=Ci&&!window.matchMedia("(pointer: coarse)").matches))}var Jf=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),Qf=C('<!> <a target="_blank"> </a>',1),Xf=C(" <!>.",1),$f=C("<!> <br/>",1),eh=C(" <br/>",1),th=C('<span class="svelte-1to4glm"><!></span>'),ih=C('<p class="svelte-1to4glm"></p>');function ah(t,e){ie(e,!0);const i=N(e,"onclickmodal",3,()=>null);function a(c,d){ue(pe.AfterArticlePlaylinkClick,c,{playlink:d})}function r(c,d,p){ue(pe.AfterArticleModalButtonClick,d),i()(c,p)}var n=fe(),l=Z(n);{var s=c=>{var d=ih();Pe(d,21,()=>e.linkInjections,ze,(p,u)=>{const f=V(()=>{const{key:x,title:_,title_details:E,after_article_style:D}=o(u);return{key:x,title:_,title_details:E,after_article_style:D}}),h=V(()=>{var x;return((x=o(f).title_details)==null?void 0:x.providers)||[]});var m=th(),y=k(m);{var b=x=>{var _=$f(),E=Z(_);{var D=A=>{var O=Jf(),j=Z(O),M=I(j);M.__click=S=>S.stopPropagation();var P=k(M);P.__click=S=>r(S,o(f).title_details,o(u));var T=k(P);F((S,R)=>{Y(j,`"${o(f).title??""}" ${S??""} `),Y(T,R)},[()=>ee("Is Available To Stream"),()=>ee("View Streaming Options")]),w(A,O)},z=A=>{var O=Xf(),j=Z(O),M=I(j);Pe(M,17,()=>o(h),ze,(P,T,S)=>{let R=()=>o(T).name,U=()=>o(T).url;var Q=Qf(),G=Z(Q);{var B=$=>{var le=Qt();F(re=>Y(le,re),[()=>S===o(h).length-1?`, ${ee("And")}`:","]),w($,le)};H(G,$=>{S&&$(B)})}var K=I(G,2);K.__click=()=>a(o(f).title_details,R());var J=k(K);F(()=>{te(K,"href",U()),Y(J,R())}),w(P,Q)}),F(P=>Y(j,`"${o(f).title??""}" ${P??""} `),[()=>ee("Is Available To Stream On")]),w(A,O)};H(E,A=>{o(f).after_article_style==="modal_button"?A(D):A(z,!1)})}w(x,_)},g=x=>{var _=eh(),E=Z(_);F(D=>Y(E,`"${o(f).title??""}" ${D??""} `),[()=>ee("Title Unavailable Suffix")]),w(x,_)};H(y,x=>{o(h).length?x(b):x(g,!1)})}F(()=>te(m,"data-playpilot-injection-key",o(f).key)),w(p,m)}),w(c,d)};H(l,c=>{e.linkInjections.length&&c(s)})}w(t,n),ae()}de(["click"]);let Ca=null;function rh(t,e){var l,s;if(Ca||!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=((s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),Ca=Nt(ah,{target:i,props:{linkInjections:e,onclickmodal:(c,d)=>ui({event:c,injection:d,data:d.title_details})}})}function nh(){var t;Ca&&(Ji(Ca),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Ca=null)}var lh=C('<p class="svelte-1epbbn0"> </p>');function oh(t,e){ie(e,!1),lo();var i=lh(),a=k(i);F(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)||ee("In-Text Disclaimer")}]),w(t,i),ae()}let za=null;function sh(t){var n,l,s,c,d,p;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||za)return;const e=document.createElement("div"),i=(c=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:c.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),za=Nt(oh,{target:e})}function ch(){var t;za&&(Ji(za),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),za=null)}const vi="data-playpilot-injection-key",ti=`[${vi}]`;function dh(t,e={aiInjections:[],manualInjections:[]}){Ln(),gh();const i=mh(e);if(!i.length)return[];const a=pi(t.map(d=>d.innerText).join(" ")),n=bh(i).filter(d=>a.includes(pi(d.sentence))),l={};let s=-1;for(const d of _h(n)){s++;const p=t.findIndex(E=>pi(E.innerText).includes(pi(d.sentence))),u=t[p];if(!u)continue;const f=bo(d.title,u,["A"]);if(!(f!=null&&f.nodeValue)||wo(f)){const E=bo(d.title,u);if(E&&wo(E)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:m}=ph(d);let y=-1,b=!1;tr(u.innerHTML,d.title)===1&&(y=u.innerHTML.indexOf(d.title));const{phrase_before:x,phrase_after:_}=uh(u,d);if(y===-1&&(x||_)){const E=[x,d.title,_].filter(Boolean).join(" ");if(y=u.innerHTML.indexOf(E),y===-1){const D=gd(u.innerHTML,d.title,x||"",_||"");if(D){const{leadingSpaces:z,trailingSpaces:A}=md(D.match);m.innerHTML=D.match.trim();const O=D.index+z,j=D.index+D.match.length-A;if(u.innerHTML.slice(O,j).includes("href="))continue;An(u.innerHTML,d.title,u,h,O,j)&&(y=D.index,b=!0)}}}if(y===-1&&(f!=null&&f.nodeValue)){const E=u.innerHTML.indexOf(f.nodeValue),D=u.innerHTML.indexOf(d.sentence),z=D===-1?u.innerHTML.indexOf(d.sentence.slice(0,20)):-1,A=d.sentence.split(" ")[0],j=tr(u.innerHTML,A)===1?u.innerHTML.indexOf(A):-1,M=cd(n.slice(0,s+1),d,["title","sentence"])-1,P=yd(f.nodeValue,u,M);y=Math.max(E,z,P,j,D,0)}if(y!==-1&&!b&&!An(u.innerHTML,d.title,u,h,y)){const E=wd(d.title,u.innerHTML);E>-1?An(u.innerHTML,d.title,u,h,E):l[d.key]="Injection would have lead to broken HTML."}}fh(n),vh();const c=wh(i);return c.length&&rh(t,c),document.querySelector(ti)&&sh(t),i.filter(d=>d.title_details).map((d,p)=>{const u=!d.manual&&xh(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(`[${vi}="${d.key}"]`),m=Qo(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 ph(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 An(t,e,i,a,r,n=-1){const l=p=>Array.from(p.querySelectorAll(`a, ${ti}`)).filter(u=>!u.innerText).length,s=document.createElement("div");s.innerHTML=t;const c=l(s),d=s.innerText;return n>0?s.innerHTML=vd(t,a.outerHTML,r,n):s.innerHTML=ud(t,e,a.outerHTML,r),Math.abs(s.innerText.length-d.length)>1||c!=l(s)?!1:(i.innerHTML=s.innerHTML,!0)}function uh(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(tr(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=fd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function vh(){const t=Array.from(document.querySelectorAll(`${ti} 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 fh(t){window.addEventListener("mousemove",Mf),window.addEventListener("click",i=>Zf(i,t)),document.querySelectorAll(ti).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{qf()||Lf(n,r)}),i.addEventListener("mouseleave",Df))})}function Ln(){document.querySelectorAll(ti).forEach(e=>hh(e.getAttribute(vi)||"")),nh(),ch(),jn(!1),hr(!1)}function hh(t){var r;const e=document.querySelector(`[${vi}="${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 gh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ti)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function mh({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function yh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Jo(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&Qo(t)}function Qo(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function bh(t){return Xo(t).filter(e=>e.in_text!==!1&&Jo(e))}function wh(t){return Xo(t).filter(e=>e.after_article===!0&&Jo(e))}function Xo(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)&&$o(i,e)))}function _h(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 xh(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&$o(a,t))}function $o(t,e){return t.title===e.title&&pi(t.sentence)===pi(e.sentence)}function Mn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function kh(){const t=di();if(!t)throw new Error("No token was provided");try{return await await $t(`/domains/config?api-token=${t}`)||null}catch{return null}}de(["click"]),de(["input"]),de(["click"]),de(["click"]),de(["click"]),de(["mousedown","touchstart"]),de(["mousedown","touchstart"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]);function Sh(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,s)=>{if(!s)return;const{purpose:c,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const p=u=>c.consents[u]===!0;_d({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 Th=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Eh=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Ph=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Ch=C('<button class="svelte-1tp7i1s"></button>'),zh=C("<small>You are using the beta version of TPI</small>"),Ih=C('<button class="svelte-1tp7i1s">Use beta script</button>'),jh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Ah=C("<option> </option>"),Lh=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 Mh(t,e){ie(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=W(Fe(d())),l=W(!1),s=null,c=W(184);rn(()=>{s&&clearInterval(s)});function d(){var D,z,A,O,j,M;const g=window.PlayPilotLinkInjections,x=((D=g.evaluated_link_injections)==null?void 0:D.filter(P=>!P.failed))||[],_=((z=g.evaluated_link_injections)==null?void 0:z.filter(P=>P.failed))||[],E=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(([P,T])=>({label:P,data:T})),[`Succesful injections (${x.length})`]:x.map(P=>({label:P.title,data:P.sentence})),[`Failed injections (${_.length})`]:_.map(P=>({label:P.title,data:`Reason: ${P.failed_message} | Sentence: ${P.sentence}`})),[`Fetched ads (${((A=g.ads)==null?void 0:A.length)||0})`]:(O=g.ads)==null?void 0:O.map(P=>({label:P.campaign_name,data:P})),[`Tracking events (${((j=g.tracked_events)==null?void 0:j.length)||0})`]:(M=g.tracked_events)==null?void 0:M.map(P=>({label:P.event,data:P.payload})),[`Visible pixels (${E.length})`]:E.map((P,T)=>({label:T+1,data:P.src}))}}function p(g){o(l)||(a.push(g.key),q(l,i.some(x=>a.slice(a.length-x.length,a.length).join("")===x),!0),s=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(zn).forEach(({key:x,numberOfVariants:_})=>{const E=1/_;window.PlayPilotLinkInjections.split_test_identifiers[x]=Math.min(E*g,1)})}function h(){var _,E;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(E=(_=window.PlayPilotLinkInjections)==null?void 0:_.destroy)==null||E.call(_);const x=document.createElement("script");for(const D of g.attributes)x.setAttribute(D.name,D.value);x.getAttribute("onload")||x.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),x.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",x),g.remove()}var m=fe();ke("keydown",Me,p);var y=Z(m);{var b=g=>{var x=Lh(),_=I(k(x),4);{var E=se=>{var ye=Th();w(se,ye)};H(_,se=>{var ye,ge,Le;(ye=window.PlayPilotLinkInjections.config)!=null&&ye.exclude_urls_pattern&&zi().match((Le=(ge=window.PlayPilotLinkInjections)==null?void 0:ge.config)==null?void 0:Le.exclude_urls_pattern)&&se(E)})}var D=I(_,2);Pe(D,17,()=>Object.entries(o(n)),ze,(se,ye)=>{var ge=V(()=>pa(o(ye),2));let Le=()=>o(ge)[0],et=()=>o(ge)[1];var Ie=Ph(),ce=k(Ie),Ke=k(ce),bt=I(ce,2);{var qe=X=>{var ve=fe(),_e=Z(ve);{var ai=Oe=>{var bi=fe(),Bh=Z(bi);Pe(Bh,17,et,ze,(Fh,ts,Xh,$h)=>{let Vh=()=>o(ts).label,Hh=()=>o(ts).data;var is=Eh(),as=k(is),Uh=k(as),Wh=I(as,2),Gh=k(Wh);F(Kh=>{Y(Uh,Vh()),Y(Gh,Kh)},[()=>JSON.stringify(Hh())]),w(Fh,is)}),w(Oe,bi)};H(_e,Oe=>{Array.isArray(et())&&Oe(ai)})}w(X,ve)},je=X=>{var ve=Qt("No data");w(X,ve)};H(bt,X=>{var ve;(ve=et())!=null&&ve.length?X(qe):X(je,!1)})}F(()=>Y(Ke,Le())),w(se,Ie)});var z=I(D,4);z.__click=()=>u("card");var A=I(z,2);A.__click=()=>u("top_scroll");var O=I(A,6);Pe(O,16,()=>({length:4}),ze,(se,ye,ge)=>{var Le=Ch();Le.__click=()=>f(ge),Le.textContent=ge,w(se,Le)});var j=I(O,4);j.__click=()=>console.log(cn(window.PlayPilotLinkInjections.config));var M=I(j,2);M.__click=()=>console.log(cn(window.PlayPilotLinkInjections.config).pageText);var P=I(M,4);P.__click=function(...se){var ye;(ye=e.onrerender)==null||ye.apply(this,se)};var T=I(P,2);{var S=se=>{var ye=zh();w(se,ye)},R=se=>{var ye=Ih();ye.__click=h,w(se,ye)};H(T,se=>{r?se(S):se(R,!1)})}var U=I(T,2);{var Q=se=>{var ye=jh();ye.__click=()=>{pr(),window.PlayPilotLinkInjections.config.explore_use_router=!ia(),dr()},w(se,ye)};H(U,se=>{ia()||se(Q)})}var G=I(U,4),B=I(k(G),2);qc(B,window.PlayPilotLinkInjections.region),B.__change=se=>{pr(),window.PlayPilotLinkInjections.region=se.target.value,dr()};var K=I(G,2),J=I(k(K),2);J.__change=se=>{pr(),window.PlayPilotLinkInjections.language=se.target.value,dr()},Pe(J,21,()=>Object.entries(v),ze,(se,ye)=>{var ge=V(()=>pa(o(ye),2));let Le=()=>o(ge)[0],et=()=>o(ge)[1];var Ie=Ah(),ce=k(Ie),Ke={};F(bt=>{$l(Ie,bt),Y(ce,Le()),Ke!==(Ke=et())&&(Ie.value=(Ie.__value=et())??"")},[()=>et()===Sa()]),w(se,Ie)});var $=I(K,4),le=I(k($),2);te(le,"min",80),te(le,"max",240),te(le,"step",8),le.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(c)}px`);var re=I(le,2),xe=k(re),Ae=I($,4);Ae.__click=()=>q(l,!1),F(()=>Y(xe,o(c))),ka(le,()=>o(c),se=>q(c,se)),w(g,x)};H(y,g=>{o(l)&&g(b)})}w(t,m),ae()}de(["click","change","input"]);function Dh(t,e){ie(e,!1);const i=Array.from(document.querySelectorAll(ti)),a=[],r=Date.now();let n=!1,l=null;dt(()=>{$a()||s()});function s(){l=new IntersectionObserver(c),i.forEach(u=>{l.observe(u)})}function c(u){u.forEach(f=>{if(!f.isIntersecting)return;const h=f.target.getAttribute(vi);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();ue(pe.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()})}lo(),ke("visibilitychange",Me,p),ae()}function qh(t,e){ie(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new ur,r=.7,n="[data-playpilot-poster]";let l=W(0),s={},c=null;const d=V(()=>o(l)<Ci);rn(h);function p(){var _,E;if((E=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&E.disable_scroll_reveal_posters||!o(d))return;m();const y=window.innerHeight,b=new ur,g=y*r,x=y-g;for(const D of i){const{top:z}=D.getBoundingClientRect();z<g&&z>x&&b.add(D)}for(const D of b){if(a.has(D))continue;const z=D.dataset.playpilotPosterUrl;z in s&&s[z]!==D||(u(D,z),a.add(D),s[z]=D)}}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(){c&&clearTimeout(c),c=setTimeout(()=>{for(const y of a)f(y),a.delete(y),s={}},1e3)}ke("scroll",Me,p),tn("innerWidth",y=>q(l,y,!0)),ae()}var Oh=C("<!> <!>",1),Nh=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function Rh(t,e){ie(e,!0);let i=W(Fe([])),a=W(null),r=W(Fe($a()));vo();let n=W(!1),l=W(!0),s=W(!0),c=W(Fe([]));const d=V(()=>o(a)||{}),p=V(()=>Un(o(d).ai_injections,()=>[],!0)),u=V(()=>Un(o(d).manual_injections,()=>[],!0)),f=V(()=>sn(o(i))),h=y();Ze(()=>{o(r)&&!o(l)&&b()}),dr(),rn(Ln);async function m(){ir()||(await h,Pd(),ue(pe.ArticlePageView),!(!o(p).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await Po())))}async function y(){var T;q(l,!0);try{o(r)&&q(n,await uo({throwError:!0}),!0)}catch{ue(pe.AuthFailed)}try{const S=window.PlayPilotLinkInjections.config||await kh()||{};if(window.PlayPilotLinkInjections.config=S,S!=null&&S.custom_style&&x(S.custom_style||""),S!=null&&S.explore_navigation_selector&&Su(),S!=null&&S.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),S!=null&&S.domain_sid&&To({organizationSid:S.organization_sid,domainSid:S.domain_sid}),q(s,ld(S),!0),o(s))return;S!=null&&S.html_selector&&(window.PlayPilotLinkInjections.selector=S==null?void 0:S.html_selector),q(i,cn(window.PlayPilotLinkInjections.config).elements,!0)}catch(S){ue(pe.FetchingConfigFailed),console.error("TPI Config failed to fetch",S);return}try{if(q(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),q(a,o(a)||await mo(o(f),{maxTries:1,runAiWhenRelevant:!ir()}),!0),q(l,!1),!o(a)||(T=window.PlayPilotLinkInjections.config)!=null&&T.disable_public_injections&&!(o(r)&&o(n)))return;if(To({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)||ir())return;q(a,await mo(o(f),{requireCompletedResult:!0,onpoll:S=>q(a,S,!0)}),!0),g({aiInjections:o(p),manualInjections:o(u)})}catch(S){console.error(S),ue(pe.InjectionError,null,{message:S.message})}}function b(){g(yh(o(c)))}function g(T={aiInjections:o(p),manualInjections:o(u)}){const S=dh(o(i),T);JSON.stringify(S)!==JSON.stringify(o(c))&&(q(c,S,!0),window.PlayPilotLinkInjections.evaluated_link_injections=S),o(r)||_(S)}function x(T){const S="playpilot-custom-style",R=document.getElementById(S),U=R||document.createElement("style");U.textContent=`body { ${T} }`,U.id=S,R||document.body.appendChild(U)}function _(T){const S=T.filter(U=>!U.failed),R=T.filter(U=>U.failed);if(S.length&&ue(pe.ArticleInjected,null,{manual:S.filter(U=>U.manual).length,ai:S.filter(U=>!U.manual).length}),R.length){const U=Q=>R.filter(({failed_message:G})=>G==null?void 0:G.includes(Q)).length;ue(pe.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 E=Nh(),D=Z(E),z=k(D);H(z,T=>{});var A=I(z,2);Mh(A,{onrerender:b});var O=I(D,2);{var j=T=>{xn(T,{get pixels(){return o(a).pixels}})};H(O,T=>{var S,R;(R=(S=o(a))==null?void 0:S.pixels)!=null&&R.length&&T(j)})}var M=I(O,2);Xi(M,()=>o(c),T=>{var S=Oh(),R=Z(S);Dh(R,{});var U=I(R,2);qh(U,{}),w(T,S)});var P=I(M,2);Sh(P,{onchange:m}),w(t,E),ae()}window.PlayPilotMount={mount(){window.PlayPilotLinkInjections.app&&this.destroy();const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Nt(Rh,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),Ln()}}})();
|
|
10
|
+
`}}function ar(t){return t?t.replace("/src/img",""):null}function Io(t,e=null){return t!=null&&t.length?`${Qc}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Ad=C('<img class="svelte-p6g2a"/>');function rr(t,e){ie(e,!0);const i=N(e,"width",3,96),a=N(e,"height",3,144),r=N(e,"lazy",3,!0),n=N(e,"onload",3,()=>null);var l=Ad();F(s=>{te(l,"src",s),te(l,"alt",`Movie poster for '${e.title.title??""}'`),te(l,"width",i()),te(l,"height",a()),te(l,"loading",r()?"lazy":null)},[()=>ar(e.title.standing_poster)]),ke("error",l,({target:s})=>s.src=Xc),ke("load",l,function(...s){var c;(c=n())==null||c.apply(this,s)}),w(t,l),ae()}var Ld=ht('<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 yn(t,e){const i=N(e,"size",3,16);var a=Ld();F(()=>{te(a,"width",i()),te(a,"height",i())}),w(t,a)}var Md=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 Dd(t,e){const i=N(e,"embeddable_url",3,"");var a=Md(),r=k(a);wn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=I(r,2);n.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var l=I(n,2);l.__click=function(...c){var d;(d=e.onclose)==null||d.apply(this,c)};var s=k(l);yn(s,{size:24}),De(3,a,()=>ei,()=>({duration:100})),w(t,a)}de(["click"]);const qd="1304688689641511",Od="https://endpoint-youtube-availability.playpilot.workers.dev";async function jo(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(`${Od}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const s=await l.json();return!((r=s.blocked)!=null&&r[e]||!s.blocked&&s.allowed&&!((n=s.allowed)!=null&&n.includes(e)))}catch(l){return ue(pe.YouTubeAvailabilityRequestFailed,null,{message:l.message}),!1}}let nr={};function Nd(t){const e=Mn(),i={onclose:Rd,embeddable_url:t.embeddable_url||""};nr=Nt(Dd,{target:e,props:i})}function Rd(){nr&&(Ji(nr,{outro:!0}),nr=null)}function bn(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 Bd(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&bn(r.embeddable_url);try{n&&await jo(n)&&(a=r)}catch{}i++}return a}var Fd=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe>');function wn(t,e){var f;ie(e,!0);const i=N(e,"embeddable_url",3,""),a=N(e,"controls",19,()=>[]),r=N(e,"muted",3,!1),n=N(e,"loop",3,!1),l=V(()=>bn(i())),s=((f=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:f.replace("#",""))||"fa548a";var c=fe(),d=Z(c);{var p=h=>{var m=Fd();F(y=>te(m,"src",`https://video.playpilot.net/?video_id=${o(l)??""}&color=${s}&muted=${r()??""}&loop=${n()??""}&controls=${y??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),w(h,m)},u=h=>{var m=Qt("Something went wrong");w(h,m)};H(d,h=>{o(l)?h(p):h(u,!1)})}w(t,c),ae()}var Vd=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function Ao(t,e){ie(e,!0);let i=N(e,"gap",3,"0"),a=N(e,"fill",3,!0),r=N(e,"transitionDuration",3,300),n=N(e,"threshold",3,30),l=N(e,"moveThreshold",3,0),s=N(e,"currentIndex",15,0),c=N(e,"shown",31,()=>Fe([])),d=N(e,"sliderWidth",15,0),p=N(e,"currentScrollPosition",15,0),u=N(e,"maxWidth",15,0),f=N(e,"reachedEnd",15,!1),h=N(e,"distanceToEnd",15,0),m=N(e,"passedThreshold",15,!1),y=N(e,"passedMoveThreshold",15,!1),b=N(e,"allowWheel",3,!1),g=N(e,"end",3,()=>null),x=N(e,"change",3,X=>null),_=N(e,"onend",19,g),E=N(e,"onchange",19,x),D=N(e,"onresize",3,()=>null),z=W(!1),A=W(!1),O=0,j=0,M=W(void 0),P=W(void 0),T=null,S=null;Ze(()=>{o(P)&&re(),o(P)&&h(u()-p()-d())}),dt(()=>(ye(),()=>T==null?void 0:T.disconnect()));function R(X){const ve=o(P).children.length,_e=Math.max(0,Math.min(X,ve-1));$({setIndex:_e}),re()}function U(){q(A,!0),R(s()),requestAnimationFrame(()=>q(A,!1))}function Q(X){ge(X.target)&&(X.preventDefault(),O=xe(X),q(z,!0))}function G(){if(o(z)){if(!m())$({setIndex:s()});else{const X=p()-j,ve=X>0?1:-1;X!=0&&$({direction:ve})}q(z,!1),m(!1)}}function B(X){if(!o(z))return;const ve=xe(X),_e=j+(O-ve),ai=O-ve;y(Math.abs(ai)>l()),m(Math.abs(p()-j)>n()),y()&&(le(_e-l()*(ai>0?1:-1)),re())}function K(X){if(!b())return;const{deltaX:ve,deltaY:_e}=X;if(Math.abs(ve)<Math.abs(_e))return;X.preventDefault();const Oe=p()+ve*20*.02;le(Oe),re(),S&&clearTimeout(S),S=setTimeout(()=>{$({direction:ve>0?1:-1})},100)}function J(X){ge(document.activeElement)&&(X.key=="ArrowLeft"&&R(s()-1),X.key=="ArrowRight"&&R(s()+1))}function $({setIndex:X=-1,direction:ve=1}={}){const _e=Ae(),ai=s();s(0);let Oe;for(Oe=0;Oe<_e.length;Oe++)if(X!=-1){if(Oe>=X)break}else if(ve>0&&_e[Oe]>p()||ve<0&&_e[Oe+1]>p())break;s(Math.min(Oe,se().length-1)),le(_e[s()],!0),j=p(),E()&&s()!=ai&&E()(s())}function le(X,ve=!1){p(X);const _e=u()-d();f(p()>=_e),f()&&(_()&&_()(),a()&&ve&&p(_e))}function re(){const X=Ae();Array.from(X).forEach((ve,_e)=>{p()+d()<ve||c().includes(_e)||c([...c(),_e])})}function xe(X){var ve,_e;return X.pageX??((_e=(ve=X.touches)==null?void 0:ve[0])==null?void 0:_e.pageX)}function Ae(){return se().map(X=>X.offsetLeft)}function se(){return Array.from(o(P).children).filter(X=>X instanceof HTMLElement).filter(X=>X.src!="about:blank")}function ye(){T=new ResizeObserver(X=>{for(const ve of X){const _e=Array.isArray(ve.contentBoxSize)?ve.contentBoxSize[0]:ve.contentBoxSize;u(_e.inlineSize)}D()()}),T.observe(o(P))}function ge(X){return X===o(M)||(X==null?void 0:X.closest(".slider"))===o(M)}var Le={setIndex:R,reposition:U},et=Vd();ke("mousedown",Me,Q),ke("mouseup",Me,G),ke("mousemove",Me,B),ke("touchstart",Me,Q,void 0,!0),ke("touchend",Me,G),ke("touchmove",Me,B,void 0,!0),ke("keydown",Me,J),ke("resize",Me,U);var Ie=Z(et);let ce;var Ke=k(Ie);let bt;var qe=k(Ke);Ve(qe,()=>e.children??ut,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:R,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),at(Ke,X=>q(P,X),()=>o(P)),at(Ie,X=>q(M,X),()=>o(M));var je=I(Ie,2);return Ve(je,()=>e.controls??ut,()=>({sliderWidth:d(),shown:c(),currentIndex:s(),setIndex:R,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),F(X=>{ce=be(Ie,1,"slider svelte-1gs8ha8",null,ce,{dragging:o(z),"passed-threshold":m()}),bt=He(Ke,"",bt,X)},[()=>({transform:`translateX(${p()*-1}px)`,"transition-duration":`${(o(z)||o(A)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),ke("wheel",Ie,K),kt(Ie,"clientWidth",d),w(t,et),ae(Le)}var Hd=ht("<title> </title>"),Ud=ht('<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=N(e,"direction",3,"right"),a=N(e,"title",3,""),r=N(e,"size",3,16);var n=Ud(),l=k(n);{var s=c=>{var d=Hd(),p=k(d);F(()=>Y(p,a())),w(c,d)};H(l,c=>{a()&&c(s)})}F(()=>{be(n,0,i(),"svelte-1m6nwwy"),te(n,"width",`${r()??""}px`),te(n,"height",`${r()??""}px`)}),w(t,n)}function Re(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Wd=C('<div class="heading svelte-1ayf7b5"> </div>'),Gd=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),Kd=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),Yd=C("<!> <!>",1),Zd=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function lr(t,e){ie(e,!0);let i=N(e,"heading",3,""),a=N(e,"onchange",3,()=>null),r=N(e,"onresize",3,()=>null),n=N(e,"slider",15);var l=Zd(),s=Z(l);{var c=u=>{var f=Wd(),h=k(f);Rt(f,(m,y)=>Re==null?void 0:Re(m,y),()=>2),F(()=>Y(h,i())),w(u,f)};H(s,u=>{i()&&u(c)})}var d=I(s,2),p=k(d);at(Ao(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=Yd(),x=Z(g);{var _=z=>{var A=Gd();A.__click=()=>m()(y()-1);var O=k(A);Bt(O,{direction:"left",title:"Previous"}),w(z,A)};H(x,z=>{y()>0&&z(_)})}var E=I(x,2);{var D=z=>{var A=Kd();A.__click=()=>m()(y()+1);var O=k(A);Bt(O,{title:"Next"}),w(z,A)};H(E,z=>{b()||z(D)})}w(f,g)},children:(f,h)=>{var m=fe(),y=Z(m);Ve(y,()=>e.children),w(f,m)},$$slots:{controls:!0,default:!0}}),f=>n(f),()=>n()),w(t,l),ae()}de(["click"]);function Lo(t){return`${Zc}/${t.type}/${t.slug}/`}var Jd=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),Qd=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),Xd=C('<a class="poster svelte-12ph9f6"><!></a>'),$d=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),ep=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),tp=C('<div class="skeleton svelte-12ph9f6"> </div>'),ip=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),ap=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"> </span> <span class="skeleton svelte-12ph9f6"> </span></div> <!></div>'),rp=C("<div><!></div>");function Mo(t,e){ie(e,!0);let i=N(e,"heading",3,""),a=N(e,"size",3,"small"),r=N(e,"aside",3,!1),n=N(e,"expandable",3,!1),l=N(e,"expandedTitle",15,null),s=N(e,"expandedRailKey",15,null),c=N(e,"onclick",3,()=>null);const d=ln(),u=Ar("scope")==="popover"?Ar("title"):null;let f=W(null),h=W(null),m=!1;dt(()=>{n()&&x()});function y(O,j,M){var T;O==null||O.preventDefault();const P=j[M];if(n()&&!_(P)){const S=o(f).querySelectorAll(".title")[M],U=o(f).getBoundingClientRect().right-S.getBoundingClientRect().right;m=!0,setTimeout(()=>m=!1,500),U<S.clientWidth*2&&((T=o(h))==null||T.setIndex(M-2)),g(P);return}ia()?ui({event:O,type:"titles-rail",data:j,returnToTitle:u,props:{initialIndex:M}}):ui({event:O,data:P,returnToTitle:u}),c()(P)}async function b(){const O=await e.titles,j=await Bd(O);j&&(l()||s()&&s()!==d||g(j))}function g(O){s(d),l(O)}function x(){s()===d||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(P=>P.getBoundingClientRect().top>=0).sort((P,T)=>P.getBoundingClientRect().top-T.getBoundingClientRect().top)[0]!==o(f)||(l(null),s(null),b())}function _(O){var j;return s()===d&&O.sid===((j=l())==null?void 0:j.sid)}function E(O,j){n()&&(m||setTimeout(()=>y(null,O,j),250))}var D=rp();ke("scroll",Me,x);let z;var A=k(D);Ya(A,()=>e.titles,O=>{lr(O,{get heading(){return i()},children:(j,M)=>{var P=fe(),T=Z(P);Pe(T,16,()=>({length:12}),ze,(S,R)=>{var U=ap(),Q=I(k(U),4);{var G=B=>{var K=ip(),J=k(K);Pe(J,20,()=>({length:3}),ze,($,le)=>{var re=tp();w($,re)}),w(B,K)};H(Q,B=>{r()&&B(G)})}w(S,U)}),w(j,P)},$$slots:{default:!0}})},(O,j)=>{var M=fe(),P=Z(M);{var T=S=>{lr(S,{get heading(){return i()},onchange:R=>E(o(j),R),onresize:()=>{var R;return(R=o(h))==null?void 0:R.reposition()},get slider(){return o(h)},set slider(R){q(h,R,!0)},children:(R,U)=>{var Q=fe(),G=Z(Q);Pe(G,17,()=>o(j),ze,(B,K,J,$)=>{const le=V(()=>_(o(K))),re=V(()=>Lo(o(K))),xe=V(()=>qe=>y(qe,o(j),J));var Ae=ep();let se;var ye=k(Ae),ge=k(ye);{var Le=qe=>{var je=Qd(),X=k(je);X.__click=function(...Oe){var bi;(bi=o(xe))==null||bi.apply(this,Oe)};var ve=I(X,2);{var _e=Oe=>{wn(Oe,{get embeddable_url(){return o(K).embeddable_url},muted:!0,loop:!0})},ai=Oe=>{var bi=Jd();F(()=>te(bi,"src",o(K).medium_poster)),w(Oe,bi)};H(ve,Oe=>{o(K).embeddable_url?Oe(_e):Oe(ai,!1)})}F(()=>te(X,"href",o(re))),De(2,je,()=>ei,()=>({delay:200,duration:200})),w(qe,je)},et=qe=>{var je=Xd();je.__click=function(...ve){var _e;(_e=o(xe))==null||_e.apply(this,ve)};var X=k(je);rr(X,{get title(){return o(K)},width:96,height:144}),F(()=>te(je,"href",o(re))),w(qe,je)};H(ge,qe=>{o(le)?qe(Le):qe(et,!1)})}var Ie=I(ye,2);Ie.__click=function(...qe){var je;(je=o(xe))==null||je.apply(this,qe)};var ce=k(Ie),Ke=I(Ie,2);{var bt=qe=>{var je=$d();je.__click=function(...ve){var _e;(_e=o(xe))==null||_e.apply(this,ve)};var X=k(je);F(()=>Y(X,o(K).description)),w(qe,je)};H(Ke,qe=>{r()&&qe(bt)})}F(()=>{se=be(Ae,1,"title svelte-12ph9f6",null,se,{expanded:o(le)}),te(Ie,"href",o(re)),Y(ce,o(K).title)}),w(B,Ae)}),w(R,Q)},$$slots:{default:!0}})};H(P,S=>{var R;(R=o(j))!=null&&R.length&&S(T)})}w(O,M)}),at(D,O=>q(f,O),()=>o(f)),F(()=>{z=be(D,1,`titles ${a()??""}`,"svelte-12ph9f6",z,{"with-aside":r()}),te(D,"data-role",n()?"expandable-rail":null)}),w(t,D),ae()}de(["click"]);const np={"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"},"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 ee(t,e=Sa()){var i;return((i=np[t])==null?void 0:i[e])||t}const or=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"});var lp=C('<div class="rail svelte-1b834ry"><!></div>'),op=C('<div data-testid="explore-home"></div> <!>',1);function sp(t,e){ie(e,!0);let i=W(null),a=W(null);const r=[{heading:ee("List: Trending"),params:{ordering:or.Popular},properties:{expandable:!0}},{heading:ee("List: Upcoming"),params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{aside:!0}},{heading:ee("List: New"),params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{expandable:!0}},{heading:ee("List: Demand"),params:{from_playlist_sid:"licBS"},properties:{}},{heading:ee("List: Cinema"),params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{aside:!0}}];async function n(c={}){var d;return(d=await mn(c))==null?void 0:d.results}var l=op();ke("scroll",Me,onscroll);var s=I(Z(l),2);Pe(s,17,()=>r,ze,(c,d)=>{let p=()=>o(d).heading,u=()=>o(d).params,f=()=>o(d).properties;var h=lp(),m=k(h);{let y=V(()=>n(u()));Mo(m,an({get heading(){return p()},get titles(){return o(y)},size:"flexible"},f,{get expandedTitle(){return o(i)},set expandedTitle(b){q(i,b,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(b){q(a,b,!0)}}))}w(c,h)}),w(t,l),ae()}function sr(t,e={}){const i=new Image;i.src=cp(t,e||{})}function cp(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:qd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Do(t,e={}){return()=>{Ze(()=>sr(t,e))}}function dp(t,e={}){return i=>{const a=()=>sr(t,e);Ze(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var pp=C("<button><!></button>");function Ii(t,e){const i=N(e,"variant",3,"filled"),a=N(e,"size",3,"base"),r=N(e,"label",3,null),n=N(e,"active",3,!1);var l=pp();let s;l.__click=function(...d){var p;(p=e.onclick)==null||p.apply(this,d)};var c=k(l);Ve(c,()=>e.children??ut),F(()=>{s=be(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",s,{active:n()}),te(l,"aria-label",r())}),w(t,l)}de(["click"]);var up=ht('<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 _n(t,e){const i=N(e,"size",3,14);var a=up();F(()=>{te(a,"width",i()),te(a,"height",i())}),w(t,a)}function qo(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(c=>c.name===r.name),l=n==null?void 0:n.extra_info.category,s=r.extra_info.category;(l==="RENT"&&s==="BUY"||l==="BUY"&&s==="RENT")&&(i=i.filter(c=>c.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var vp=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function xn(t,e){ie(e,!0);let i=W(Fe(Math.random()));var a=fe();ke("updateconsent",Me,()=>q(i,Math.random(),!0));var r=Z(a);Xi(r,()=>o(i),n=>{var l=fe(),s=Z(l);{var c=d=>{var p=fe(),u=Z(p);Pe(u,17,()=>e.pixels,ze,(f,h)=>{var m=vp();F(()=>te(m,"src",o(h))),w(f,m)}),w(d,p)};H(s,d=>{St("pixels")&&d(c)})}w(n,l)}),w(t,a),ae()}var fp=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function hp(t,e){ie(e,!0);const i=N(e,"size",3,30),a=N(e,"onclick",3,()=>null),r=V(()=>e.playlink.name),n=V(()=>e.playlink.url),l=V(()=>e.playlink.logo_url),s=V(()=>e.playlink.pixels);var c=fp();c.__click=function(...h){var m;(m=a())==null||m.apply(this,h)};let d;var p=k(c),u=I(p,2);{var f=h=>{xn(h,{get pixels(){return o(s)}})};H(u,h=>{var m;(m=o(s))!=null&&m.length&&h(f)})}F(h=>{te(c,"href",o(n)),te(c,"data-playlink",o(r)),d=He(c,"",d,{"--size":`${i()??""}px`}),te(p,"src",h),te(p,"alt",o(r)),te(p,"height",i()),te(p,"width",i())},[()=>ar(o(l))]),w(t,c),ae()}de(["click"]);var gp=C('<span class="more svelte-1plv45z"> </span>'),mp=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),yp=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Oo(t,e){ie(e,!0);const i=N(e,"size",3,30),a=V(()=>qo(e.playlinks).slice(0,3));function r(u){u.stopPropagation()}var n=yp(),l=k(n);Pe(l,17,()=>o(a),ze,(u,f)=>{hp(u,{get playlink(){return o(f)},onclick:r,get size(){return i()}})});var s=I(l,2);{var c=u=>{var f=gp(),h=k(f);F(()=>Y(h,`+${e.playlinks.length-o(a).length}`)),w(u,f)};H(s,u=>{e.playlinks.length>o(a).length&&u(c)})}var d=I(s,2);{var p=u=>{var f=mp();w(u,f)};H(d,u=>{e.playlinks.length||u(p)})}w(t,n),ae()}var bp=C("<div>Series</div>"),wp=C("<div> </div>"),_p=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 xp(t,e){ie(e,!0);const i=N(e,"onclick",3,()=>null);var a=_p();a.__click=function(...x){var _;(_=i())==null||_.apply(this,x)};var r=k(a),n=k(r);rr(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=I(n,2),s=k(l),c=k(s);_n(c,{size:12});var d=I(c),p=I(s,2);{var u=x=>{var _=bp();w(x,_)};H(p,x=>{e.title.type==="series"&&x(u)})}var f=I(p,2);{var h=x=>{var _=wp(),E=k(_);F(()=>Y(E,`${e.title.length??""} min`)),w(x,_)};H(f,x=>{e.title.length&&x(h)})}var m=I(r,2),y=k(m),b=k(y),g=I(y,2);Oo(g,{get playlinks(){return e.title.providers},size:20}),F(()=>{Y(d,` ${e.title.imdb_score||"-"}`),Y(b,e.title.title)}),w(t,a),ae()}de(["click"]),Us();var kp=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 Sp(t){var e=kp(),i=I(k(e),2),a=k(i);He(a,"",{},{width:"60%"}),w(t,e)}var Tp=C('<div class="svelte-pkkpyl"> </div>'),Ep=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 No(t,e){var P;ie(e,!0);const i=N(e,"onclick",3,()=>null),a=!!((P=window.PlayPilotLinkInjections)!=null&&P.no_affiliate);var r=Ep();r.__click=function(...T){var S;(S=i())==null||S.apply(this,T)};var n=k(r),l=k(n);rr(l,{get title(){return e.title},width:30,height:43,lazy:!0});var s=I(n,2),c=k(s),d=k(c),p=I(c,2),u=k(p),f=k(u);_n(f,{size:11});var h=I(f),m=I(u,2),y=k(m),b=I(m,2),g=k(b),x=I(b,2);{var _=T=>{var S=Tp(),R=k(S);F(()=>Y(R,`${e.title.length??""} min`)),w(T,S)};H(x,T=>{e.title.length&&T(_)})}var E=I(p,2);let D;var z=k(E),A=I(E,2);{var O=T=>{Oo(T,{get playlinks(){return e.title.providers}})};H(A,T=>{a||T(O)})}var j=I(s,2),M=k(j);Bt(M,{}),F(T=>{Y(d,e.title.title),Y(h,` ${e.title.imdb_score||"-"}`),Y(y,e.title.year),Y(g,T),D=be(E,1,"description svelte-pkkpyl",null,D,{large:a}),Y(z,e.title.description)},[()=>ee(`Type: ${e.title.type}`)]),w(t,r),ae()}de(["click"]);var Pp=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 Cp(t){var e=Pp(),i=I(k(e),2),a=k(i);He(a,"",{},{width:"40%"});var r=I(a,2);He(r,"",{},{width:"60%"});var n=I(r,2);He(n,"",{},{width:"80%"}),w(t,e)}const zp=[{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 Ip(){const t=di();if(!t)throw new Error("No token was provided");const e={region:await gn(),page:1,include_count:"false"};return await $t(`/providers/?api-token=${t}&`+pn(e))}function jp(t){const e=t-1;return e*e*e+1}function Ap(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=z=>Math.sqrt(z)*120,easing:l=jp}=a,s=getComputedStyle(t),c=s.transform==="none"?"":s.transform,[d,p]=s.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,p/=t.clientHeight;var u=Lp(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,x=(m-b)*f,_=(y-g)*h,E=e.width/i.width,D=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(x*x+_*_)):n,easing:l,css:(z,A)=>{var O=A*x,j=A*_,M=z+A*E,P=z+A*D;return`transform: ${c} translate(${O}px, ${j}px) scale(${M}, ${P});`}}}function Lp(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 Mp=C('<div class="icon svelte-dfwzqz"> </div>'),Dp=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),qp=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 Op(t,e){ie(e,!0);let i=N(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=N(e,"selected",23,()=>[]),r=N(e,"placeholder",19,()=>`${ee("Search")}...`),n=N(e,"onchange",3,()=>null),l=W("");const s=V(c);function c(){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=qp(),u=Z(p),f=k(u),h=I(u,2);Pe(h,29,()=>o(s)||[],({label:m,value:y})=>y,(m,y)=>{let b=()=>o(y).label,g=()=>o(y).value;const x=V(()=>!!a().find(j=>j===g()));var _=Dp(),E=k(_);let D;E.__click=()=>d(g());var z=k(E),A=I(z),O=k(A);Xi(O,()=>o(x),j=>{var M=Mp(),P=k(M);F(()=>Y(P,o(x)?"-":"+")),De(3,M,()=>ta,()=>({start:.25,duration:100})),w(j,M)}),F(()=>{D=be(E,1,"option svelte-dfwzqz",null,D,{active:o(x)}),Y(z,`${b()??""} `)}),Vc(_,()=>Ap,()=>({duration:150})),w(m,_)}),F(()=>te(f,"placeholder",r())),ka(f,()=>o(l),m=>q(l,m)),w(t,p),ae()}de(["click"]);var Np=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),Rp=C("<div><!> <!></div>");function Ro(t,e){ie(e,!0);let i=W(!1),a=W(null),r=W(null),n=W("left"),l=W(0),s=W(0);function c(y){const b=y.target;b&&b.closest(".dropdown")!==o(a)&&q(i,!1)}function d(y){q(i,!o(i)),o(i)&&(q(s,0),q(l,0),p(y.target))}async function p(y){if(await _a(),!o(r))return;const b=16,g=200,x=window.innerHeight,_=window.innerWidth,{top:E}=o(r).getBoundingClientRect(),{left:D}=y.getBoundingClientRect();q(n,D<window.innerWidth/2?"left":"right",!0),q(l,Math.max(Math.min(window.innerHeight-E-b,x*.6),g),!0),await _a();const{left:z,right:A}=o(r).getBoundingClientRect(),O=_-A;z-b<0?q(s,O):O-b<0&&q(s,O-b)}var u=Rp();ke("click",Me,c);var f=k(u);Ve(f,()=>e.button,()=>({toggle:d}));var h=I(f,2);{var m=y=>{var b=Np();let g;var x=k(b);Ve(x,()=>e.content),at(b,_=>q(r,_),()=>o(r)),F(()=>g=He(b,"",g,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(s)?`${o(s)}px`:null})),De(3,b,()=>ta,()=>({start:.85,duration:100})),w(y,b)};H(h,y=>{o(i)&&y(m)})}at(u,y=>q(a,y),()=>o(a)),F(()=>be(u,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),w(t,u),ae()}var Bp=C('<span class="label svelte-1mfj6k7"> </span>'),Fp=C('<div class="active-line svelte-1mfj6k7"></div>'),Vp=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 Hp(t,e){ie(e,!0);const i=N(e,"range",19,()=>[0,100]),a=N(e,"value",19,i),r=N(e,"label",3,""),n=N(e,"valueAppend",3,""),l=N(e,"formatFunction",3,G=>G.toString()),s=N(e,"onchange",3,()=>null);let c=i(),d=V(()=>pa(c,2)),p=W(Fe(o(d)[0])),u=W(Fe(o(d)[1]));const f=V(()=>o(p)!==i()[0]||o(u)!==i()[1]),h=V(()=>100/(i()[1]-i()[0])*(o(p)-i()[0])),m=V(()=>100+100/(i()[1]-i()[0])*(o(u)-i()[1])-o(h)),y=V(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(p)-o(u))<5);Ze(()=>{b(a())}),Ze(()=>{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(G){(B=>{var K=pa(B,2);q(p,K[0],!0),q(u,K[1],!0)})(G)}function g(){requestAnimationFrame(()=>s()([o(p),o(u)]))}var x=Vp(),_=k(x);{var E=G=>{var B=Bp(),K=k(B);F((J,$)=>Y(K,`${r()??""}: ${J??""}—${$??""} ${n()??""}`),[()=>l()(o(p)),()=>l()(o(u))]),w(G,B)};H(_,G=>{r()&&G(E)})}var D=I(_,2);let z;var A=k(D);A.__mouseup=g,A.__touchend=g,A.__input=function(...G){};let O;var j=I(A,2);j.__mouseup=g,j.__touchend=g,j.__input=function(...G){};let M;var P=I(j,2),T=k(P),S=I(P,2),R=k(S),U=I(S,2);{var Q=G=>{var B=Fp();let K;F(()=>K=He(B,"",K,{left:o(h)+"%","--width":o(m)+"%"})),w(G,B)};H(U,G=>{o(f)&&G(Q)})}F(()=>{z=be(D,1,"range svelte-1mfj6k7",null,z,{halved:o(y)}),te(A,"min",i()[0]),te(A,"max",i()[1]),O=be(A,1,"svelte-1mfj6k7",null,O,{active:o(f)}),te(j,"min",i()[0]),te(j,"max",i()[1]),M=be(j,1,"svelte-1mfj6k7",null,M,{active:o(f)}),Y(T,o(p)),Y(R,o(u))}),ka(A,()=>o(p),G=>q(p,G)),ka(j,()=>o(u),G=>q(u,G)),w(t,x),ae()}de(["mouseup","touchend","input"]);var Up=C(" <!>",1),Wp=C('<p class="loading"> </p>'),Gp=C('<p class="error"> </p>'),Kp=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),Yp=C('<div data-testid="filter-item"><!></div>');function Zp(t,e){ie(e,!0);let i=N(e,"filter",7),a=N(e,"onchange",3,()=>null),r=N(e,"data",7,null),n=N(e,"fetchData",3,null),l=N(e,"range",3,null),s=N(e,"valueAppend",3,"");const c=V(()=>{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=W(!!n());Ze(()=>{!r()&&n()&&p()});async function p(){try{q(d,!0),r(await n()())}catch{ue(pe.ExploreFetchProvidersFailed)}finally{q(d,!1)}}function u(y,b){if(ue(pe.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=Yp();let h;var m=k(f);Ro(m,{button:(g,x)=>{let _=()=>x==null?void 0:x().toggle;Ii(g,{variant:"border",size:"large",get active(){return o(c)},get onclick(){return _()},children:(E,D)=>{var z=Up(),A=Z(z),O=I(A);Bt(O,{direction:"down"}),F(()=>Y(A,`${e.label??""} `)),w(E,z)},$$slots:{default:!0}})},content:g=>{var x=Kp(),_=k(x);{var E=j=>{var M=Wp(),P=k(M);F(T=>Y(P,`${T??""}...`),[()=>ee("Loading")]),w(j,M)},D=j=>{var M=fe(),P=Z(M);{var T=S=>{var R=Gp(),U=k(R);F(Q=>Y(U,Q),[()=>ee("An Error Occurred")]),w(S,R)};H(P,S=>{n()&&!r()&&S(T)},!0)}w(j,M)};H(_,j=>{o(d)?j(E):j(D,!1)})}var z=I(_,2);{var A=j=>{const M=V(()=>{var P;return(P=i()[e.param])==null?void 0:P.value});Op(j,{get options(){return r()},get selected(){return o(M)},onchange:P=>u(P,"array")})},O=j=>{var M=fe(),P=Z(M);{var T=S=>{const R=V(()=>{var U;return(U=i()[e.param])==null?void 0:U.value});Hp(S,{get range(){return l()},get value(){return o(R)},get label(){return e.label},get valueAppend(){return s()},onchange:U=>u(U,"range")})};H(P,S=>{l()&&S(T)},!0)}w(j,M)};H(z,j=>{r()?j(A):j(O,!1)})}w(g,x)},$$slots:{button:!0,content:!0}}),F(()=>h=be(f,1,"filter-item svelte-er0ukh",null,h,{active:o(c)})),w(t,f),ae()}var Jp=C(" <!>",1),Qp=C("<button> </button>"),Xp=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function $p(t,e){ie(e,!0);const i=N(e,"filter",7),a=N(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:or.Popular},{label:"New",value:or.New},{label:"Top Rated",value:or.Best}],l=V(()=>{var c;return((c=n.find(({value:d})=>{var p;return d===((p=i()[r])==null?void 0:p.value)}))==null?void 0:c.label)||"Sort By"});function s(c){c?i()[r]={type:"string",value:c}:delete i()[r],a()()}Ro(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=Jp(),b=Z(y),g=I(b);Bt(g,{direction:"down"}),F(x=>Y(b,`${x??""} `),[()=>ee(o(l))]),w(h,y)},$$slots:{default:!0}})},content:p=>{var u=Xp();Pe(u,21,()=>n,ze,(f,h,m,y)=>{let b=()=>o(h).label,g=()=>o(h).value;const x=V(()=>{var z;return g()===((z=i()[r])==null?void 0:z.value)});var _=Qp();let E;_.__click=()=>s(g());var D=k(_);F(z=>{E=be(_,1,"option svelte-1ibt2k4",null,E,{active:o(x)}),Y(D,z)},[()=>ee(b())]),w(f,_)}),w(p,u)},$$slots:{button:!0,content:!0}}),ae()}de(["click"]);var eu=ht('<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 tu(t){var e=eu();w(t,e)}var iu=C("<div><!></div>"),au=C("<!> <!>",1),ru=C('<div class="sorting"><!></div>'),nu=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function lu(t,e){ie(e,!0);const i=N(e,"onchange",3,()=>null),a=N(e,"limit",3,!0),r=N(e,"showSorting",3,!0),n=3,l=[{label:ee("Services"),param:"providers",fetchData:async()=>(await Ip()).map(b=>({label:b.name,value:b.slug}))},{label:ee("Genres"),param:"genres",data:fn.map(b=>({label:b.name,value:b.slug}))},{label:ee("IMDb"),param:"imdb_score",range:[0,10]},{label:ee("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:ee("Runtime"),param:"length",range:[0,180],valueAppend:ee("Minutes")},{label:ee("Countries"),param:"country_codes",data:zp}];let s=W(Fe(a()));var c=nu();let d;var p=k(c);Pe(p,21,()=>o(s)?l.slice(0,n):l,ze,(b,g)=>{var x=iu(),_=k(x);Zp(_,an({get filter(){return e.filter},get onchange(){return i()}},()=>o(g))),De(3,x,()=>ta,()=>({start:.75,duration:100})),w(b,x)});var u=I(p,2),f=k(u);{var h=b=>{Ii(b,{variant:"link",onclick:()=>q(s,!o(s)),children:(g,x)=>{var _=au(),E=Z(_);tu(E);var D=I(E),z=I(D);{let A=V(()=>o(s)?"down":"up");Bt(z,{get direction(){return o(A)}})}F(A=>Y(D,` ${A??""} `),[()=>ee("All Filters")]),w(g,_)},$$slots:{default:!0}})};H(f,b=>{a()&&b(h)})}var m=I(f,2);{var y=b=>{var g=ru(),x=k(g);$p(x,{get filter(){return e.filter},get onchange(){return i()}}),De(3,g,()=>Pa,()=>({x:5,duration:100})),w(b,g)};H(m,b=>{r()&&b(y)})}F(()=>d=be(c,1,"filter svelte-11dg01g",null,d,{limit:a()})),w(t,c),ae()}var ou=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 su(t){var e=ou();w(t,e)}var cu=C('<div class="filter svelte-qc99of"><!></div>'),du=C("<div><!></div>"),pu=C("<!> <!>",1),uu=C("<p>Something went wrong</p>"),vu=C('<!> <div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function fu(t,e){ie(e,!0);const i=N(e,"searchQuery",3,""),a=Fe({});let r=W(Fe([])),n=W(1),l=null,s=0,c=W(Fe(m())),d=W(0);const p=V(()=>o(d)>500),u=V(()=>o(d)>1400?8:o(d)>900?6:o(d)>600?4:3),f=V(()=>o(p)?xp:No),h=V(()=>o(p)?Sp:Cp);Ze(()=>{i()&&y(i())});async function m(){s+=1;const T=s,S={page_size:24,page:o(n)};i()&&(S.search=i()),Object.entries(a).forEach(([U,{type:Q,value:G}])=>{if(Q==="string")S[U]=G;else if(Q==="array")S[U]=G.join(",");else if(Q==="range"){const[B,K]=G;S[U+"_min"]=B,S[U+"_max"]=K}});const R=await mn(S);return T===s&&q(r,[...o(r),...R.results],!0),R}async function y(T){l&&clearTimeout(l),l=setTimeout(()=>{g(),q(c,m(),!0),T&&(ue(pe.ExploreSearch,null,{query:T}),St("pixels")&&sr(Ta.SearchQuery,{query:T}))},100)}function b(){g(),q(c,m(),!0)}function g(){q(n,1),q(r,[],!0)}function x(){ac(n),q(c,m(),!0),ue(pe.ExploreShowMore,null,{page:o(n)})}function _(T,S){ui({event:T,data:S}),ue(pe.ExploreTitleClick,S)}var E=vu(),D=Z(E);Xi(D,()=>o(p),T=>{var S=cu(),R=k(S);{let U=V(()=>!o(p)),Q=V(()=>!i());lu(R,{get filter(){return a},get limit(){return o(U)},onchange:b,get showSorting(){return o(Q)}})}w(T,S)});var z=I(D,2);let A,O;var j=k(z);Pe(j,17,()=>o(r),ze,(T,S)=>{var R=fe(),U=Z(R);Xi(U,()=>o(S).sid,Q=>{var G=fe(),B=Z(G);Kr(B,()=>o(f),(K,J)=>{J(K,{get title(){return o(S)},onclick:$=>_($,o(S))})}),w(Q,G)}),w(T,R)});var M=I(j,2);Ya(M,()=>o(c),T=>{var S=fe(),R=Z(S);Pe(R,16,()=>({length:24}),ze,(U,Q)=>{var G=fe(),B=Z(G);Kr(B,()=>o(h),(K,J)=>{J(K,{})}),w(U,G)}),w(T,S)},void 0,T=>{});var P=I(z,2);Ya(P,()=>o(c),null,(T,S)=>{var R=V(()=>{var{next:$}=o(S);return{next:$}}),U=V(()=>o(R).next),Q=pu(),G=Z(Q);{var B=$=>{var le=du();let re;var xe=k(le);Ii(xe,{size:"large",onclick:x,children:(Ae,se)=>{var ye=Qt();F(ge=>Y(ye,ge),[()=>ee("Show More")]),w(Ae,ye)},$$slots:{default:!0}}),F(()=>re=be(le,1,"show-more svelte-qc99of",null,re,{grid:o(p)})),w($,le)};H(G,$=>{o(U)&&$(B)})}var K=I(G,2);{var J=$=>{su($)};H(K,$=>{var le;!((le=o(r))!=null&&le.length)&&o(n)===1&&$(J)})}w(T,Q)},T=>{var S=uu();w(T,S)}),F(()=>{A=be(z,1,"titles svelte-qc99of",null,A,{grid:o(p)}),O=He(z,"",O,{"--grid-columns":o(u)})}),kt(z,"clientWidth",T=>q(d,T)),w(t,E),ae()}var hu=ht('<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 gu(t){var e=hu();w(t,e)}var mu=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function yu(t,e){ie(e,!0);let i=W("");var a=mu(),r=k(a),n=k(r);gu(n);var l=I(r,2);l.__input=()=>e.oninput(o(i)),F(s=>te(l,"placeholder",s),[()=>ee("Search Movies And Shows")]),ka(l,()=>o(i),s=>q(i,s)),w(t,a),ae()}de(["input"]);var bu=C('<p class="description svelte-l2apr8"> </p>'),wu=C('<div class="navigation svelte-l2apr8" role="navigation"></div>'),_u=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 xu(t,e){ie(e,!0);let i=N(e,"navigate",3,()=>null),a=N(e,"searchQuery",15,""),r=null,n=W(null),l=W(0);Ze(()=>{var _;q(n,((_=r==null?void 0:r.closest(kn))==null?void 0:_.style.height)||null,!0)}),dt(async()=>{var _;ue(pe.ExplorePageView),(_=window.PlayPilotLinkInjections.ads)!=null&&_.length||(window.PlayPilotLinkInjections.ads=await Po())});var s=_u();let c;var d=k(s),p=k(d),u=I(k(p),2),f=k(u);Rt(u,_=>Re==null?void 0:Re(_));var h=I(u,2);{var m=_=>{var E=bu(),D=k(E);F(z=>Y(D,z),[()=>ee("Streaming Guide Description")]),w(_,E)};H(h,_=>{ia()||_(m)})}var y=I(d,2);{var b=_=>{var E=wu();Pe(E,21,()=>e.routes,ze,(D,z)=>{{let A=V(()=>e.currentRoute.key===o(z).key);Ii(D,{variant:"border",size:"large",get active(){return o(A)},onclick:()=>i()(o(z)),children:(O,j)=>{var M=Qt();F(P=>Y(M,P),[()=>ee(o(z).label)]),w(O,M)},$$slots:{default:!0}})}}),w(_,E)};H(y,_=>{ia()&&_(b)})}var g=I(y,2);yu(g,{oninput:_=>a(_)});var x=I(g,2);Ve(x,()=>e.children),at(s,_=>r=_,()=>r),F(_=>{c=He(s,"",c,{height:o(n),"--playpilot-explore-width":`${o(l)??""}px`}),Y(f,_)},[()=>ee("Streaming Guide")]),kt(s,"clientWidth",_=>q(l,_)),w(t,s),ae()}function Bo(t,e){ie(e,!0);const i=[{key:"results",label:"Explore",component:fu}];ia()&&i.unshift({key:"home",label:"Home",component:sp});let a=W(Fe(i[0])),r=W("");const n=V(()=>o(a).component);Ze(()=>{o(r)&&q(a,i.find(s=>s.key==="results"),!0)});function l(s){q(a,s,!0)}xu(t,{get routes(){return i},get currentRoute(){return o(a)},navigate:l,get searchQuery(){return o(r)},set searchQuery(s){q(r,s,!0)},children:(s,c)=>{var d=fe(),p=Z(d);Kr(p,()=>o(n),(u,f)=>{f(u,{get searchQuery(){return o(r)}})}),w(s,d)},$$slots:{default:!0}}),ae()}const kn="[data-playpilot-explore]",ku="[data-playpilot-pre-consent-explore]",Fo="playpilot-explore-custom-style";let cr=null;function dr(){var e;const t=document.querySelector(kn);t&&(pr(),(e=document.querySelector(ku))==null||e.remove(),t.innerHTML="",cr=Nt(Bo,{target:t}),Tu())}function pr(){var t;cr&&(Ji(cr),cr=null,(t=document.querySelector("#"+Fo))==null||t.remove())}function Su(){var c;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;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),s=l.nodeName==="A"?l:l.querySelector("a");return s.classList.remove("active"),s.innerText=i||"Streaming Guide",s.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function Tu(){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=Fo,document.body.appendChild(e)}function ia(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Sn(t,e){ie(e,!0);const i=N(e,"size",3,"32px"),a=N(e,"onclick",3,()=>null),r=so(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=fe(),l=Z(n);Gl(l,()=>e.href?"a":"button",!1,(s,c)=>{eo(s,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[ea]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=fe(),p=Z(d);Ve(p,()=>e.children??ut),w(c,d)}),w(t,n),ae()}var Eu=C("<div></div>");function Pu(t,e){ie(e,!0);let i=N(e,"threshold",3,100),a=N(e,"isDragging",15,!1),r=N(e,"passedThreshold",15,!1),n=N(e,"onpassed",3,()=>null),l=W(0),s=W(0),c=W(null),d=W(!1);const p=V(()=>Math.max(o(s)-o(l),0));Ze(()=>{r(o(p)>i())});function u(g){if(g){a(!0),q(d,!0),q(l,g.touches[0].pageY,!0);for(const x of e.targets)x.style.transitionDuration="0ms"}}function f(g){if(g&&a()){g.preventDefault(),q(s,g.touches[0].pageY,!0),o(c).style.transform=`translateY(${o(p)}px)`;for(const x of e.targets)x.style.top=`${o(p)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(c).removeAttribute("style");for(const g of e.targets)g.style.removeProperty("transition"),requestAnimationFrame(()=>g.style.top="0px")}q(l,0),q(s,0)}}var m={start:u,move:f,end:h},y=Eu();ke("touchmove",Me,f,void 0,!0),ke("touchend",Me,h);let b;return y.__touchstart=u,at(y,g=>q(c,g),()=>o(c)),F(()=>b=be(y,1,"handle svelte-1xqgdsn",null,b,{dragging:a(),dragged:o(d)})),w(t,y),ae(m)}de(["touchstart"]);var Cu=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],zu=["difference","intersection","symmetricDifference","union"],Vo=!1;const xr=class xr extends Set{constructor(i){super();oe(this,da);oe(this,ca,new Map);oe(this,Et,W(0));oe(this,yi,W(0));oe(this,_r,Jt||-1);if(i){for(var a of i)super.add(a);L(this,yi).v=super.size}Vo||Ce(this,da,cs).call(this)}has(i){var a=super.has(i),r=L(this,ca),n=r.get(i);if(n===void 0){if(!a)return o(L(this,Et)),!1;n=Ce(this,da,ss).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),q(L(this,yi),super.size),oi(L(this,Et))),this}delete(i){var a=super.delete(i),r=L(this,ca),n=r.get(i);return n!==void 0&&(r.delete(i),q(n,!1)),a&&(q(L(this,yi),super.size),oi(L(this,Et))),a}clear(){if(super.size!==0){super.clear();var i=L(this,ca);for(var a of i.values())q(a,!1);i.clear(),q(L(this,yi),0),oi(L(this,Et))}}keys(){return this.values()}values(){return o(L(this,Et)),super.values()}entries(){return o(L(this,Et)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(L(this,yi))}};ca=new WeakMap,Et=new WeakMap,yi=new WeakMap,_r=new WeakMap,da=new WeakSet,ss=function(i){return Jt===L(this,_r)?W(i):Lt(i)},cs=function(){Vo=!0;var i=xr.prototype,a=Set.prototype;for(const r of Cu)i[r]=function(...n){return o(L(this,Et)),a[r].apply(this,n)};for(const r of zu)i[r]=function(...n){o(L(this,Et));var l=a[r].apply(this,n);return new xr(l)}};let ur=xr;class Iu{constructor(e,i){oe(this,Ma);oe(this,Da);ne(this,Ma,e),ne(this,Da,dl(i))}get current(){return L(this,Da).call(this),L(this,Ma).call(this)}}Ma=new WeakMap,Da=new WeakMap;const ju=/\(.+\)/,Au=new Set(["all","print","screen","and","or","not","only"]);class Lu extends Iu{constructor(e,i){let a=ju.test(e)||e.split(/[\s,]+/).some(n=>Au.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>Pc(r,"change",n))}}const Tn=new Lu("(prefers-reduced-motion: reduce)");function En(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 s=e();if(!s.length)return;const[c]=s,d=s[s.length-1];n.shiftKey&&l===c&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(c.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 Mu(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Du=C("<div><!></div>"),qu=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Ou=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Nu=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Ru=C("<div><!></div>"),Bu=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Fu=C('<div data-testid="modal"><!> <!> <!> <!></div>');function vr(t,e){ie(e,!0);const i=B=>{var K=Du(),J=k(K);Sn(J,{onclick:E,"aria-label":"Close",children:($,le)=>{yn($,{})},$$slots:{default:!0}}),at(K,$=>q(m,$),()=>o(m)),F(()=>be(K,1,`close ${l()??""}`,"svelte-1rbidhv")),De(7,K,()=>_),w(B,K)},a=N(e,"tall",3,!1),r=N(e,"wide",3,!1),n=N(e,"blur",3,!1),l=N(e,"closeButtonStyle",3,"shadow"),s=N(e,"initialScrollPosition",3,0),c=N(e,"onscroll",3,()=>null),d=N(e,"onclose",3,()=>null),p="#playpilot";let u=W(0),f=W(null),h=W(null),m=W(null),y=W(0),b=W(!1);const g=V(()=>o(u)<Ci);Ze(()=>{var B;o(u)&&q(y,((B=o(h))==null?void 0:B.offsetTop)||0,!0)}),Ze(()=>{setTimeout(()=>{var B;return q(y,((B=o(h))==null?void 0:B.offsetTop)||0,!0)})}),Lr("scope","modal"),dt(()=>{const B=Mu();return B.classList.add("playpilot-modal-open"),q(b,!!Zo()),o(b)||window.history.pushState({modal:!0},"",p),requestAnimationFrame(x),()=>{var K;B.classList.remove("playpilot-modal-open"),!Zo()&&((K=history.state)!=null&&K.modal)&&history.back()}});function x(){const B=window.innerWidth>Ci?o(f):o(h);B==null||B.scrollTo(0,s())}function _(B){return Tn.current?ei(B,{duration:0}):o(g)?Pa(B,{duration:250,y:window.innerHeight,opacity:1}):ta(B,{duration:150,start:.85})}function E(){d()(),jn()}function D(B){B.target===o(f)&&E()}var z=Fu();ke("keydown",Me,({key:B})=>{B==="Escape"&&E()}),ke("hashchange",Me,E);let A;z.__click=D;let O;var j=k(z);{var M=B=>{var K=qu(),J=k(K);Ve(J,()=>e.prepend),De(7,K,()=>_),w(B,K)};H(j,B=>{e.prepend&&B(M)})}var P=I(j,2);{var T=B=>{var K=Ou(),J=k(K);Ve(J,()=>e.bubble),De(7,K,()=>_),w(B,K)};H(P,B=>{e.bubble&&B(T)})}var S=I(P,2);{var R=B=>{var K=Nu(),J=k(K);{var $=le=>{{let re=V(()=>[o(h),o(m)]);Pu(le,{get targets(){return o(re)},onpassed:E})}};H(J,le=>{o(h)&&o(m)&&le($)})}De(7,K,()=>_),w(B,K)};H(S,B=>{o(g)&&B(R)})}var U=I(S,2);{var Q=B=>{var K=fe(),J=Z(K);Ve(J,()=>e.dialog),w(B,K)},G=B=>{var K=Bu(),J=Z(K),$=k(J);{var le=ge=>{var Le=Ru(),et=k(Le);Sn(et,{onclick:()=>Kf(),"aria-label":"Back",children:(Ie,ce)=>{Bt(Ie,{direction:"left"})},$$slots:{default:!0}}),F(()=>be(Le,1,`close back ${l()??""}`,"svelte-1rbidhv")),w(ge,Le)};H($,ge=>{o(b)&&ge(le)})}var re=I($,2);Ve(re,()=>e.children??ut);var xe=I(re,2);{var Ae=ge=>{i(ge)};H(xe,ge=>{o(g)||ge(Ae)})}at(J,ge=>q(h,ge),()=>o(h));var se=I(J,2);{var ye=ge=>{i(ge)};H(se,ge=>{o(g)&&ge(ye)})}ke("scroll",J,function(...ge){var Le;(Le=c())==null||Le.apply(this,ge)}),De(7,J,()=>_),w(B,K)};H(U,B=>{e.dialog?B(Q):B(G,!1)})}at(z,B=>q(f,B),()=>o(f)),Rt(z,B=>En==null?void 0:En(B)),F(()=>{A=be(z,1,"modal svelte-1rbidhv",null,A,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),O=He(z,"",O,{"--dialog-offset":`${o(y)??""}px`})}),tn("innerWidth",B=>q(u,B,!0)),De(5,z,()=>ei,()=>({duration:150})),De(6,z,()=>ei,()=>({duration:150,delay:100})),w(t,z),ae()}de(["click"]);var Vu=C('<div class="genre svelte-1mphbln"> </div>'),Hu=C('<button class="genre expand svelte-1mphbln"> </button>'),Uu=C("<!> <!>",1);function Wu(t,e){ie(e,!0);let i=W(!1);const a=V(()=>o(i)?e.genres:[e.genres[0]]);var r=Uu(),n=Z(r);Pe(n,17,()=>o(a),ze,(c,d)=>{const p=V(()=>{var m;return(m=fn.find(y=>y.slug===o(d)))==null?void 0:m.name});var u=fe(),f=Z(u);{var h=m=>{var y=Vu(),b=k(y);Za(y,()=>Eo()?Do(Ta.GenreInterest,{genre:o(p)}):null),F(g=>Y(b,g),[()=>ee(o(p))]),w(m,y)};H(f,m=>{o(p)&&m(h)})}w(c,u)});var l=I(n,2);{var s=c=>{var d=Hu();d.__click=()=>q(i,!0);var p=k(d);F(()=>Y(p,`+${e.genres.length-1}`)),w(c,d)};H(l,c=>{!o(i)&&e.genres.length>1&&c(s)})}w(t,r),ae()}de(["click"]);var Gu=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),Ku=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function Pn(t,e){const i=N(e,"small",3,!1);let a=W(!1);function r(p){p.preventDefault(),p.stopPropagation(),q(a,!o(a))}var n=Ku();n.__click=r;var l=k(n);let s;var c=I(l,2);{var d=p=>{var u=Gu(),f=k(u);F(()=>Y(f,e.disclaimer)),De(3,u,()=>ei,()=>({duration:50})),w(p,u)};H(c,p=>{o(a)&&p(d)})}F(()=>s=be(l,1,"disclaimer svelte-1ldthr7",null,s,{small:i()})),w(t,n)}de(["click"]);var Yu=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Zu=C('<span class="cta svelte-13ka2ap"> </span>'),Ju=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 Ho(t,e){ie(e,!0);const i=N(e,"disclaimer",3,""),a=N(e,"hideCategory",3,!1),r=N(e,"onclick",3,()=>null),n=V(()=>e.playlink.name),l=V(()=>e.playlink.url),s=V(()=>e.playlink.logo_url),c=V(()=>e.playlink.highlighted),d=V(()=>e.playlink.cta_text),p=V(()=>e.playlink.action_text),u=V(()=>e.playlink.pixels),f=V(()=>e.playlink.extra_info.category),h=V(()=>Eo()&&!o(c)),m={AVOD:ee("Stream"),SVOD:ee("Stream"),BUY:ee("Buy"),RENT:ee("Rent"),TVOD:ee("Rent Or Buy")};let y=W(0);var b=fe(),g=Z(b);Gl(g,()=>{var x,_;return!((_=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&_.require_affiliate_consent)||St("affiliate")?"a":"span"},!1,(x,_)=>{Za(x,()=>o(h)?Do(Ta.ProviderInterest,{provider:e.playlink.slug}):null),Za(x,()=>o(h)?dp(Ta.ProviderClick,{provider:e.playlink.slug}):null),eo(x,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[$i]:{highlighted:o(c),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var E=Ju(),D=Z(E);let z;var A=k(D),O=I(A,2),j=k(O),M=I(O,2);{var P=J=>{var $=Yu(),le=k($);F(re=>Y(le,re),[()=>m[o(f)]||ee("Stream")]),w(J,$)};H(M,J=>{a()||J(P)})}var T=I(M,2);{var S=J=>{var $=Zu(),le=k($);F(()=>Y(le,o(d))),w(J,$)};H(T,J=>{o(d)&&J(S)})}var R=I(T,2),U=k(R),Q=I(R,2);{var G=J=>{Pn(J,{get disclaimer(){return i()},small:!0})};H(Q,J=>{i()&&J(G)})}var B=I(D,2);{var K=J=>{xn(J,{get pixels(){return o(u)}})};H(B,J=>{var $;($=o(u))!=null&&$.length&&J(K)})}F((J,$)=>{z=He(D,"",z,{"--action-width":o(y)?`${o(y)}px`:null}),te(A,"src",J),Y(j,o(n)),Y(U,$)},[()=>ar(o(s)),()=>o(p)||ee("Watch")]),kt(R,"clientWidth",J=>q(y,J)),w(_,E)}),w(t,b),ae()}var Qu=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>'),Xu=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),$u=C('<div class="heading category svelte-1fykz2q"> </div>'),ev=C("<!> <!>",1),tv=C("<!> <div></div>",1),iv=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function av(t,e){var E,D;ie(e,!0);const i=Ar("scope")==="modal",a=Ea("card"),r=!!((D=(E=window.PlayPilotLinkInjections)==null?void 0:E.config)!=null&&D.categorize_playlinks);let n=W(0);const l=V(()=>qo(e.playlinks)),s=V(()=>u(e.playlinks)),c=V(()=>r?f(o(s)):[["",o(l)]]),d=V(()=>o(n)<500||!!a||o(l).length===1);function p(z){ue(i?pe.TitleModalPlaylinkClick:pe.TitlePopoverPlaylinkClick,e.title,{playlink:z})}function u(z){const A={};for(const O of z){const{category:j}=O.extra_info;j in A||(A[j]=[]),A[j].push(O)}return A}function f(z){const A=["AVOD","SVOD","RENT","BUY"],O=[];for(const M of A)z[M]&&O.push([M,z[M]]);const j=[];for(const M of Object.values(z))for(const P of M)A.includes(P.extra_info.category)||j.push(P);return[...O,["Other",j]]}var h=iv(),m=Z(h),y=k(m);Rt(m,(z,A)=>Re==null?void 0:Re(z,A),()=>3);var b=I(m,2);{var g=z=>{var A=Qu(),O=k(A);F(j=>Y(O,`${j??""} `),[()=>{var j,M;return((M=(j=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:j.config)==null?void 0:M.playlinks_disclaimer_text)||ee("Commission Disclaimer")}]),w(z,A)},x=z=>{var A=Xu(),O=k(A);F(j=>Y(O,j),[()=>ee("Title Unavailable")]),w(z,A)};H(b,z=>{o(l).length?z(g):z(x,!1)})}var _=I(b,2);Pe(_,17,()=>o(c),ze,(z,A,O,j)=>{var M=V(()=>pa(o(A),2));let P=()=>o(M)[0],T=()=>o(M)[1];var S=tv(),R=Z(S);{var U=B=>{var K=$u(),J=k(K);Rt(K,($,le)=>Re==null?void 0:Re($,le),()=>4),F($=>Y(J,$),[()=>ee(`Category: ${P()}`)]),w(B,K)};H(R,B=>{P()&&T().length&&B(U)})}var Q=I(R,2);let G;Pe(Q,21,T,ze,(B,K,J)=>{var $=ev(),le=Z($);Ho(le,{get playlink(){return o(K)},onclick:()=>p(o(K).name)});var re=I(le,2);{var xe=Ae=>{{let se=V(()=>Cd(a)),ye=V(()=>a.disclaimer||"");Ho(Ae,{get playlink(){return o(se)},onclick:()=>ue(pe.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(ye)}})}};H(re,Ae=>{a&&J===0&&Ae(xe)})}w(B,$)}),F(()=>{G=be(Q,1,"playlinks svelte-1fykz2q",null,G,{list:o(d)}),te(Q,"data-testid",`category-${P()??""}`)}),kt(Q,"clientWidth",B=>q(n,B)),w(z,S)}),F(z=>Y(y,z),[()=>ee("Where To Stream Online")]),w(t,h),ae()}var rv=C('<button class="show-more svelte-7itcht">Show more</button>'),nv=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),lv=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function ov(t,e){ie(e,!0);const i=N(e,"blurb",3,""),a=N(e,"limit",3,200),r=N(e,"onclick",3,()=>null);let n=W(!1);const l=V(()=>e.text.slice(0,a()));function s(){q(n,!0),r()()}var c=lv(),d=k(c),p=k(d),u=I(p);{var f=g=>{var x=Qt("...");w(g,x)};H(u,g=>{!o(n)&&e.text.length>a()&&g(f)})}var h=I(u,2);{var m=g=>{var x=rv();x.__click=()=>s(),w(g,x)};H(h,g=>{!o(n)&&(e.text.length>a()||i())&&g(m)})}var y=I(d,2);{var b=g=>{var x=nv(),_=k(x);F(()=>Y(_,i())),w(g,x)};H(y,g=>{o(n)&&g(b)})}F(()=>Y(p,o(n)?e.text:o(l))),w(t,c),ae()}de(["click"]);async function sv(t,{page:e=1}={}){const i={language:Sa(),region:await gn(),include_count:"false",participant_sid:t.sid,page:e};return(await $t(`/titles/browse?api-token=${di()}&${pn(i)}`)).results}async function cv(t){return(await $t(`/participants/browse?api-token=${di()}&title_sid=${t.sid}`)).results}var dv=C('<div class="character truncate svelte-zy7e3f"> </div>'),pv=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),uv=C('<div class="participant svelte-zy7e3f"></div>');function vv(t,e){ie(e,!0);function i(l){const s=pi(sn(fo(on()))),c={};for(const p of l){const u=tr(s,pi(p.name));c[p.sid]={participant:p,count:u}}return Object.values(c).sort((p,u)=>u.count-p.count).map(({participant:p})=>p)}function a(l,s){ui({event:l,type:"participant",data:s}),ue(pe.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:s.name})}var r=fe(),n=Z(r);Ya(n,()=>cv(e.title),l=>{{let s=V(()=>ee("Cast"));lr(l,{get heading(){return o(s)},children:(c,d)=>{var p=fe(),u=Z(p);Pe(u,16,()=>({length:5}),ze,(f,h)=>{var m=uv();w(f,m)}),w(c,p)},$$slots:{default:!0}})}},(l,s)=>{var c=fe(),d=Z(c);{var p=u=>{{let f=V(()=>ee("Cast"));lr(u,{get heading(){return o(f)},children:(h,m)=>{var y=fe(),b=Z(y);Pe(b,17,()=>i(o(s)).slice(0,15),ze,(g,x)=>{var _=pv();_.__click=O=>a(O,o(x));var E=k(_),D=k(E),z=I(E,2);{var A=O=>{var j=dv(),M=k(j);F(()=>Y(M,o(x).character)),w(O,j)};H(z,O=>{o(x).character&&O(A)})}F(()=>Y(D,o(x).name)),w(g,_)}),w(h,y)},$$slots:{default:!0}})}};H(d,u=>{var f;(f=o(s))!=null&&f.length&&u(p)})}w(l,c)}),w(t,r),ae()}de(["click"]);function fv(t,e){ie(e,!0);const i=Id(e.title);{let a=V(()=>ee("Similar Titles"));Mo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>ue(pe.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ae()}function hv(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 gv=ht('<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 mv(t){var e=gv();w(t,e)}var yv=ht('<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 bv(t){var e=yv();w(t,e)}var wv=ht('<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 _v(t){var e=wv();w(t,e)}var xv=ht('<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 kv(t){var e=xv();w(t,e)}var Sv=C('<button class="svelte-827qd7"><!></button>'),Tv=C('<div class="content svelte-827qd7"><!></div>'),Ev=C("<div><!> <!></div>");function Pv(t,e){const i=N(e,"label",3,""),a=N(e,"align",3,"right");let r=W(!1),n=W(null);function l(h){var y;h.currentTarget===((y=o(n))==null?void 0:y.querySelector("button"))&&h.stopPropagation(),q(r,!o(r))}var s=Ev();ke("click",Me,()=>q(r,!1));var c=k(s);{var d=h=>{var m=fe(),y=Z(m);Ve(y,()=>e.button,()=>({toggle:l})),w(h,m)},p=h=>{var m=Sv();m.__click=l;var y=k(m);kv(y),F(()=>{te(m,"aria-label",i()),te(m,"aria-expanded",o(r))}),w(h,m)};H(c,h=>{e.button?h(d):h(p,!1)})}var u=I(c,2);{var f=h=>{var m=Tv(),y=k(m);Ve(y,()=>e.children),De(1,m,()=>ta,()=>({duration:50,start:.85})),w(h,m)};H(u,h=>{o(r)&&h(f)})}at(s,h=>q(n,h),()=>o(n)),F(()=>be(s,1,`context-menu ${a()??""}`,"svelte-827qd7")),w(t,s)}de(["click"]);var Cv=C("<!> ",1),zv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Iv(t,e){ie(e,!0);let i=N(e,"url",7);const r=window.innerWidth<Ci&&typeof navigator.share<"u";dt(()=>{i(i()+"?utm_source=tpi")});function n(c,d){if(!r){d(c);return}ue(pe.ShareTitle,null,{title:e.title,url:zi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){ue(pe.ShareTitle,null,{title:e.title,url:zi(),method:"copy"}),hv(i())}function s(){ue(pe.ShareTitle,null,{title:e.title,url:zi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Pv(t,{button:(d,p)=>{let u=()=>p==null?void 0:p().toggle;Ii(d,{onclick:f=>n(f,u()),children:(f,h)=>{var m=Cv(),y=Z(m);mv(y);var b=I(y);F(g=>Y(b,` ${g??""}`),[()=>ee("Share")]),w(f,m)},$$slots:{default:!0}})},children:(d,p)=>{var u=zv(),f=Z(u);f.__click=l;var h=k(f);bv(h);var m=I(h),y=I(f,2);y.__click=s;var b=k(y);_v(b);var g=I(b);F((x,_)=>{Y(m,` ${x??""}`),Y(g,` ${_??""}`)},[()=>ee("Copy URL"),()=>ee("Email")]),w(d,u)},$$slots:{button:!0,default:!0}}),ae()}de(["click"]);var jv=ht('<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 Av(t){var e=jv();w(t,e)}var Lv=C("<!> ",1);function Mv(t,e){ie(e,!0);function i(){Nd(e.title),ue(pe.TrailerClick,e.title)}Ii(t,{onclick:i,children:(a,r)=>{var n=Lv(),l=Z(n);Av(l);var s=I(l);F(c=>Y(s,` ${c??""}`),[()=>ee("Watch Trailer")]),w(a,n)},$$slots:{default:!0}}),ae()}var Dv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function qv(t,e){const i=N(e,"embeddable_url",3,"");let a=W(0),r=W(0);const n=V(()=>Math.max(o(a),o(r)));var l=Dv(),s=k(l);wn(s,{get embeddable_url(){return i()},muted:!0,loop:!0}),F(()=>He(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),kt(l,"clientWidth",c=>q(a,c)),kt(l,"clientHeight",c=>q(r,c)),w(t,l)}var Ov=C("<div> </div>"),Nv=C('<img alt=""/>'),Rv=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 Cn(t,e){var Ie;ie(e,!0);const i=N(e,"small",3,!1),a=N(e,"useVideoBackground",3,!0),r=!!((Ie=window.PlayPilotLinkInjections)!=null&&Ie.no_affiliate);Lr("title",e.title);const n=V(()=>(!i()||r)&&e.title.description);let l=W(!1),s=W(!1),c=W(!1),d=W(!1);Ze(()=>{a()&&e.title.embeddable_url&&jo(bn(e.title.embeddable_url)).then(ce=>{q(d,ce,!0)})});var p=Rv(),u=Z(p);let f;var h=k(u),m=k(h);let y;var b=k(m);rr(b,{get title(){return e.title},onload:()=>q(l,!0),lazy:!1});var g=I(m,2);let x;var _=k(g);Rt(g,(ce,Ke)=>Re==null?void 0:Re(ce,Ke),()=>2);var E=I(g,2),D=k(E),z=k(D);_n(z,{});var A=I(z),O=I(D,2);Wu(O,{get genres(){return e.title.genres}});var j=I(O,2),M=k(j),P=I(j,2),T=k(P),S=I(P,2);{var R=ce=>{var Ke=Ov(),bt=k(Ke);F(qe=>Y(bt,`${e.title.length??""} ${qe??""}`),[()=>ee("Minutes")]),w(ce,Ke)};H(S,ce=>{!i()&&e.title.length&&ce(R)})}var U=I(E,2),Q=k(U);{var G=ce=>{Mv(ce,{get title(){return e.title}})};H(Q,ce=>{e.title.embeddable_url&&ce(G)})}var B=I(Q,2);{let ce=V(()=>Lo(e.title));Iv(B,{get title(){return e.title.title},get url(){return o(ce)}})}var K=I(h,2),J=k(K);{var $=ce=>{ov(ce,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>ue(pe.ExpandTitleDescription,e.title)})};H(J,ce=>{o(n)&&ce($)})}var le=I(J,2);{var re=ce=>{av(ce,{get playlinks(){return e.title.providers},get title(){return e.title}})};H(le,ce=>{r||ce(re)})}var xe=I(le,2);vv(xe,{get title(){return e.title}});var Ae=I(xe,2);fv(Ae,{get title(){return e.title}});var se=I(u,2);let ye;var ge=k(se);{var Le=ce=>{qv(ce,{get embeddable_url(){return e.title.embeddable_url}})},et=ce=>{var Ke=fe(),bt=Z(Ke);Xi(bt,()=>o(c),qe=>{var je=Nv();let X;F(ve=>{te(je,"src",ve),X=be(je,1,"svelte-16ajinh",null,X,{loaded:o(s),blur:o(c)})},[()=>ar(o(c)?e.title.standing_poster:e.title.medium_poster)]),ke("load",je,()=>q(s,!0)),ke("error",je,()=>q(c,!0)),w(qe,je)}),w(ce,Ke)};H(ge,ce=>{a()&&o(d)?ce(Le):ce(et,!1)})}F(ce=>{f=be(u,1,"content svelte-16ajinh",null,f,{small:i()}),y=be(m,1,"poster svelte-16ajinh",null,y,{loaded:o(l)}),x=be(g,1,"heading svelte-16ajinh",null,x,{truncate:i()}),Y(_,e.title.title),Y(A,` ${e.title.imdb_score??""}`),Y(M,e.title.year),Y(T,ce),ye=be(se,1,"background svelte-16ajinh",null,ye,{small:i()})},[()=>ee(`Type: ${e.title.type}`)]),w(t,p),ae()}function aa(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 Uo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},zn={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Bv({key:t}){var a,r,n;if(!St("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 Wo(t){const e=Bv(t);return Math.floor(e*t.numberOfVariants)}function Fv(t){var i;const e=Wo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function Vv(t,e=1){return St("tracking")?Wo(t)===e:!1}function Hv(t){const e=Fv(t);ue(pe.SplitTestView,null,{key:t.key,variant:e})}var Uv=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Wv=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Gv=C('<button class="button svelte-1mt6g1y"> </button>'),Kv=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),Yv=C('<div class="background svelte-1mt6g1y"></div>'),Zv=C("<!> <!>",1),Jv=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Go(t,e){ie(e,!0),ue(pe.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),Hv(zn.TopScrollFormat);const i=V(()=>e.campaign.disclaimer),a=V(()=>e.campaign.content),r=V(()=>e.campaign.cta),n=V(()=>o(a).format),l=V(()=>o(a).header),s=V(()=>o(a).header_logo),c=V(()=>o(a).image_uuid),d=V(()=>o(r).header),p=V(()=>o(r).url),u=V(()=>o(n)==="large"),f=V(()=>Io(o(c),Uo.TopScrollBackground)),h=V(()=>Io(o(c),Uo.TopScrollContent));let m=W(0);function y(){ue(pe.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var b=Jv();b.__click=y;let g,x;var _=k(b),E=k(_);{var D=j=>{var M=Uv();F(()=>{te(M,"src",o(h)),te(M,"alt",o(l))}),w(j,M)},z=j=>{var M=Kv(),P=Z(M);{var T=G=>{var B=Wv();F(()=>te(B,"src",o(s))),w(G,B)};H(P,G=>{o(s)&&G(T)})}var S=I(P,2),R=k(S),U=I(S,2);{var Q=G=>{var B=Gv(),K=k(B);F(()=>Y(K,o(d))),w(G,B)};H(U,G=>{o(d)&&G(Q)})}F(()=>Y(R,o(l))),w(j,M)};H(E,j=>{o(u)?j(D):j(z,!1)})}var A=I(_,2);{var O=j=>{var M=Zv(),P=Z(M);{var T=U=>{var Q=Yv();let G;F(()=>G=He(Q,"",G,{"--background":`url('${o(f)??""}')`})),w(U,Q)};H(P,U=>{o(c)&&U(T)})}var S=I(P,2);{var R=U=>{Pn(U,{get disclaimer(){return o(i)}})};H(S,U=>{o(i)&&U(R)})}w(j,M)};H(A,j=>{o(u)||j(O)})}Rt(b,(j,M)=>aa==null?void 0:aa(j,M),()=>({onclick:y})),Ei(()=>kt(b,"clientWidth",j=>q(m,j))),F(()=>{te(b,"href",o(p)),g=be(b,1,"top-scroll svelte-1mt6g1y",null,g,{simple:o(u)}),x=He(b,"",x,{"--width":`${o(m)??""}px`})}),w(t,b),ae()}de(["click"]);var Qv=C('<div class="content svelte-r7ubzi"><!></div>'),Xv=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function $v(t,e){let i=W(!1);var a=Xv();a.__touchstart=()=>q(i,!o(i));var r=k(a);Ve(r,()=>e.children);var n=I(r,2);{var l=s=>{var c=Qv(),d=k(c);Ve(d,()=>e.content),De(1,c,()=>ei,()=>({duration:100})),w(s,c)};H(n,s=>{o(i)&&s(l)})}ke("mouseenter",a,()=>q(i,!0)),ke("mouseleave",a,()=>q(i,!1)),w(t,a)}de(["touchstart"]);var ef=C('<div class="info svelte-qcpiki"><!></div>'),tf=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),af=C('<span class="name svelte-qcpiki"> </span>'),rf=C('<div class="subheader svelte-qcpiki"> </div>'),nf=C('<div class="action svelte-qcpiki"> </div>'),lf=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),of=C('<img class="background svelte-qcpiki" alt=""/>'),sf=C('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),cf=C('<div class="disclaimer svelte-qcpiki"><!></div>'),df=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Ko(t,e){ie(e,!0);const i=N(e,"compact",3,!1),a=V(()=>e.campaign.disclaimer),r=V(()=>e.campaign.content),n=V(()=>e.campaign.cta),l=V(()=>e.campaign.campaign_type),s=V(()=>o(r).header),c=V(()=>o(r).subheader),d=V(()=>o(r).header_logo),p=V(()=>o(r).image),u=V(()=>o(r).video),f=V(()=>o(n).header),h=V(()=>o(n).url),m=V(()=>o(n).subheader);let y=W(0);ue(pe.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function b(){ue(pe.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var g=df();let x;g.__click=b;var _=k(g);{var E=T=>{var S=ef(),R=k(S);{var U=G=>{$v(G,{content:K=>{var J=Qt();F(()=>Y(J,o(m))),w(K,J)},children:(K,J)=>{var $=Qt("Ad");w(K,$)},$$slots:{content:!0,default:!0}})},Q=G=>{var B=Qt();F(()=>Y(B,o(m))),w(G,B)};H(R,G=>{i()?G(U):G(Q,!1)})}w(T,S)};H(_,T=>{o(m)&&T(E)})}var D=I(_,2);{var z=T=>{var S=lf(),R=k(S);{var U=re=>{var xe=tf();F(()=>te(xe,"src",o(d))),w(re,xe)};H(R,re=>{o(d)&&re(U)})}var Q=I(R,2),G=k(Q);{var B=re=>{var xe=af(),Ae=k(xe);F(()=>Y(Ae,o(s))),w(re,xe)};H(G,re=>{o(s)&&re(B)})}var K=I(G,2);{var J=re=>{var xe=rf(),Ae=k(xe);F(()=>Y(Ae,o(c))),w(re,xe)};H(K,re=>{o(c)&&re(J)})}var $=I(Q,2);{var le=re=>{var xe=nf(),Ae=k(xe);F(()=>Y(Ae,o(f))),w(re,xe)};H($,re=>{o(f)&&re(le)})}kt(S,"clientHeight",re=>q(y,re)),w(T,S)};H(D,T=>{(o(d)||o(s)||o(c)||o(f))&&T(z)})}var A=I(D,2);{var O=T=>{var S=of();F(()=>te(S,"src",o(p))),w(T,S)},j=T=>{var S=fe(),R=Z(S);{var U=Q=>{var G=sf();G.muted=!0;var B=k(G);F(()=>te(B,"src",o(u))),w(Q,G)};H(R,Q=>{o(l)==="video"&&o(u)&&Q(U)},!0)}w(T,S)};H(A,T=>{o(l)==="image"&&o(p)?T(O):T(j,!1)})}var M=I(A,2);{var P=T=>{var S=cf();let R;var U=k(S);Pn(U,{get disclaimer(){return o(a)}}),F(()=>R=He(S,"",R,{"--offset":`${o(y)??""}px`})),w(T,S)};H(M,T=>{o(a)&&T(P)})}Rt(g,(T,S)=>aa==null?void 0:aa(T,S),()=>({onclick:b})),F(()=>{te(g,"href",o(h)),x=be(g,1,"display svelte-qcpiki",null,x,{compact:i()})}),w(t,g),ae()}de(["click"]);var pf=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 uf(t){var l,s;const e="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp";var i=pf();te(i,"href",(s=(l=window.PlayPilotLinkInjections)==null?void 0:l.config)==null?void 0:s.explore_navigation_path);var a=k(i);te(a,"src",e);var r=I(a,4),n=k(r);Bt(n,{}),w(t,i)}function vf(t,e){var f,h;ie(e,!0);const i=m=>{var y=fe(),b=Z(y);{var g=_=>{Go(_,{get campaign(){return l}})},x=_=>{uf(_)};H(b,_=>{l?_(g):_(x,!1)})}w(m,y)},a=m=>{var y=fe(),b=Z(y);{var g=x=>{Ko(x,{get campaign(){return s}})};H(b,x=>{s&&x(g)})}w(m,y)},r=N(e,"initialScrollPosition",3,0),n=so(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=Ea("top_scroll"),s=Ea("card"),c=(h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||c&&!document.querySelector(kn);let p=!1;ue(pe.TitleModalView,e.title),dt(()=>{const m=Date.now();return()=>ue(pe.TitleModalClose,e.title,{time_spent:Date.now()-m})});function u(){p||(ue(pe.TitleModalScroll,e.title),p=!0)}{let m=V(()=>d?i:null),y=V(()=>s?a:null);vr(t,{onscroll:u,get initialScrollPosition(){return r()},get bubble(){return o(m)},get prepend(){return o(y)},tall:!0,children:(b,g)=>{Cn(b,an({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}ae()}var ff=C(" <strong> </strong>",1),hf=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),gf=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),mf=C('<button class="more svelte-ke01cs"> </button>'),yf=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 bf(t,e){ie(e,!0);const i=V(()=>e.participant.name),a=V(()=>e.participant.birth_date),r=V(()=>e.participant.death_date),n=30;let l=W(Fe([])),s=W(1),c=W(!0),d=W(!0);dt(u),St("pixels")&&sr(Ta.ParticipantView,{participant:e.participant.name});function p(M){return new Date(M).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function u(){q(d,!0);try{const M=await sv(e.participant,{page:o(s)});q(l,[...o(l),...M],!0),q(c,(M==null?void 0:M.length)>=n)}catch{q(c,!1)}finally{q(d,!1),q(s,o(s)+1)}}var f=yf(),h=Z(f),m=k(h),y=k(m);Rt(m,(M,P)=>Re==null?void 0:Re(M,P),()=>2);var b=I(m,2);{var g=M=>{var P=hf(),T=k(P),S=I(T),R=k(S),U=I(S);{var Q=G=>{var B=ff(),K=Z(B),J=I(K),$=k(J);F((le,re)=>{Y(K,`, ${le??""} `),Y($,re)},[()=>ee("Died On"),()=>p(o(r))]),w(G,B)};H(U,G=>{o(r)&&G(Q)})}F((G,B)=>{Y(T,`${G??""} `),Y(R,B)},[()=>ee("Born On"),()=>p(o(a))]),w(M,P)};H(b,M=>{o(a)&&M(g)})}var x=I(h,2),_=k(x),E=k(_);Rt(_,(M,P)=>Re==null?void 0:Re(M,P),()=>3);var D=I(_,2),z=k(D);Pe(z,17,()=>o(l),ze,(M,P)=>{No(M,{get title(){return o(P)},onclick:T=>ui({event:T,data:o(P)})})});var A=I(z,2);{var O=M=>{var P=fe(),T=Z(P);Pe(T,16,()=>({length:6}),ze,(S,R)=>{var U=gf();w(S,U)}),w(M,P)},j=M=>{var P=fe(),T=Z(P);{var S=R=>{var U=mf();U.__click=u;var Q=k(U);F(G=>Y(Q,G),[()=>ee("Show More")]),w(R,U)};H(T,R=>{o(c)&&R(S)},!0)}w(M,P)};H(A,M=>{o(d)?M(O):M(j,!1)})}F(M=>{Y(y,o(i)),Y(E,M)},[()=>ee("Credits")]),w(t,f),ae()}de(["click"]);function wf(t,e){ie(e,!0);const i=N(e,"initialScrollPosition",3,0);let a=W(0);ue(pe.ParticipantModalView,null,{participant:e.participant.name}),dt(()=>{const r=Date.now();return()=>ue(pe.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),vr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{bf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),tn("innerWidth",r=>q(a,r,!0)),ae()}var _f=C('<div class="content svelte-16hba4m"><!></div>');function xf(t,e){const i=N(e,"initialScrollPosition",3,0);vr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=_f(),l=k(n);Bo(l,{}),w(a,n)},$$slots:{default:!0}})}function kf(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 Sf=ht('<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 Tf(t){var e=Sf();w(t,e)}var Ef=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Pf=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Cf=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),zf=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function If(t,e){ie(e,!0),Lr("scope","popover");const i=e.bubble&&Vv(zn.TopScrollFormat,1),a=V(()=>({duration:Tn.current?0:100,y:10}));let r=W(null),n=W(!1),l=W(!0),s=W(!1),c=W(0),d=W(0),p=W(0);dt(async()=>{await _a(),u(),await h(),e.append&&requestAnimationFrame(()=>{f(),h()}),await _a(),y()});function u(){if(!o(r))return;const{top:P,right:T,bottom:S,height:R}=o(r).getBoundingClientRect(),U=m();q(n,P-U<0&&window.innerHeight-S>P+R,!0);const Q=window.innerWidth-T-U;T+U>window.innerWidth&&(o(r).style.left=`${Q}px`)}function f(){q(l,o(c)>450)}async function h(){if(q(p,0),await new Promise(G=>requestAnimationFrame(G)),!o(r))return;const{top:P,height:T}=o(r).getBoundingClientRect(),S=m(),R=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,U=o(l)?o(d)+R:0,Q=o(n)?window.innerHeight-P-S-U:P+T-U-S;q(p,Math.min(Q,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 P=o(r).firstChild,{offsetHeight:T,scrollHeight:S,scrollTop:R}=P;S<=T?q(s,!1):q(s,R+T<S)}var b=zf();let g,x;var _=k(b),E=k(_);Ve(E,()=>e.children);var D=I(E,2);{var z=P=>{var T=Ef(),S=k(T),R=k(S);Tf(R),De(3,T,()=>ei,()=>({duration:100})),w(P,T)};H(D,P=>{o(s)&&P(z)})}var A=I(_,2);{var O=P=>{var T=Pf(),S=k(T);Ve(S,()=>e.bubble),De(7,T,()=>Pa,()=>o(a)),w(P,T)};H(A,P=>{e.bubble&&P(O)})}var j=I(A,2);{var M=P=>{var T=Cf(),S=k(T);Ve(S,()=>e.append),De(7,T,()=>Pa,()=>o(a)),kt(T,"clientHeight",R=>q(d,R)),w(P,T)};H(j,P=>{e.append&&o(l)&&P(M)})}at(b,P=>q(r,P),()=>o(r)),F(()=>{g=be(b,1,"popover svelte-wxwoko",null,g,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),x=He(b,"",x,{"--max-height":o(p)?o(p)+"px":null})}),ke("scroll",_,y),De(7,_,()=>Pa,()=>o(a)),kt(b,"clientHeight",P=>q(c,P)),w(t,b),ae()}var jf=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Af(t,e){ie(e,!0);const i=p=>{var u=fe(),f=Z(u);{var h=m=>{Go(m,{get campaign(){return r}})};H(f,m=>{r&&m(h)})}w(p,u)},a=p=>{var u=fe(),f=Z(u);{var h=m=>{Ko(m,{get campaign(){return n},compact:!0})};H(f,m=>{n&&m(h)})}w(p,u)},r=Ea("top_scroll"),n=Ea("card");let l=W(null);ue(pe.TitlePopoverView,e.title),dt(()=>{s();const p=Date.now();return()=>ue(pe.TitlePopoverClose,e.title,{time_spent:Date.now()-p})});function s(){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 c=jf(),d=k(c);{let p=V(()=>n?a:null),u=V(()=>r?i:null);If(d,{get append(){return o(p)},get bubble(){return o(u)},children:(f,h)=>{Cn(f,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}at(c,p=>q(l,p),()=>o(l)),w(t,c),ae()}let fr=null,ji=null;function Lf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;ji&&hr();const i=t.currentTarget;fr=i,setTimeout(()=>{fr===i&&(ji=Nt(Af,{target:Mn(),props:{event:t,title:e.title_details}}))},100)}async function hr(t=!0){if(ji){const e=Ji(ji,{outro:t});fr=null,ji=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Mf(t){if(!ji)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(vi)||e.closest(ti)||hr()}function Df(){fr=null}function qf(){return!!ji}var Of=C('<div class="content svelte-c2erhr"><!></div>'),Nf=C("<div><!></div>"),Rf=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Bf=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Ff=C("<!> <!>",1),Vf=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Hf(t,e){ie(e,!0);const i=N(e,"initialIndex",3,0),a=300;let r,n=W(!1);dt(()=>{setTimeout(()=>{r==null||r.setIndex(i()),requestAnimationFrame(()=>q(n,!0))})}),vr(t,{blur:!0,dialog:s=>{var c=Vf(),d=Z(c);He(d,"",{},{"--transition-duration":"300ms"});var p=k(d);{const h=(b,g)=>{let x=()=>g==null?void 0:g().currentIndex;var _=fe(),E=Z(_);Pe(E,17,()=>e.items,ze,(D,z,A)=>{var O=Nf();let j;O.__click=()=>r.setIndex(A);var M=k(O);{var P=T=>{var S=Of(),R=k(S);Ve(R,()=>e.each,()=>o(z),x),De(3,S,()=>ei,()=>({duration:o(n)?a:0})),w(T,S)};H(M,T=>{(Math.abs(A-x())===1||x()===A)&&T(P)})}F(()=>j=be(O,1,"item svelte-c2erhr",null,j,{active:A===x()})),w(D,O)}),w(b,_)},m=(b,g)=>{let x=()=>g==null?void 0:g().setIndex,_=()=>g==null?void 0:g().currentIndex,E=()=>g==null?void 0:g().reachedEnd;var D=Ff(),z=Z(D);{var A=M=>{var P=Rf();P.__click=()=>x()(_()-1);var T=k(P);Bt(T,{size:21,direction:"left",title:"Previous"}),w(M,P)};H(z,M=>{_()>0&&M(A)})}var O=I(z,2);{var j=M=>{var P=Bf();P.__click=()=>x()(_()+1);var T=k(P);Bt(T,{size:21,title:"Next"}),w(M,P)};H(O,M=>{E()||M(j)})}w(b,D)};let y=V(()=>o(n)?a:0);at(Ao(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);Sn(f,{size:"42px",onclick:()=>jn(),"aria-label":"Close",children:(h,m)=>{yn(h,{size:24})},$$slots:{default:!0}}),De(7,u,()=>ta),w(s,c)},$$slots:{dialog:!0}}),ae()}de(["click"]);function Uf(t,e){ie(e,!0);const i=N(e,"initialIndex",3,0);Hf(t,{get items(){return e.titles},get initialIndex(){return i()},each:(r,n=ut,l=ut)=>{{let s=V(()=>{var c;return n().sid===((c=e.titles[l()])==null?void 0:c.sid)});Cn(r,{get title(){return n()},get useVideoBackground(){return o(s)}})}},$$slots:{each:!0}}),ae()}const $e=[];function ui({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&ko(e))return;e==null||e.preventDefault(),$e!=null&&$e.length&&In();const s=Mn(),c={initialScrollPosition:r,...l},d=Wf({type:t,target:s,data:a,props:c});n&&Yo({type:t,injection:i,data:n}),Yo({type:t,injection:i,data:a,scrollPosition:r,component:d})}function Wf({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Nt(wf,{target:e,props:{participant:i,...a}}):t==="explore"?Nt(xf,{target:e,props:{...a}}):t==="titles-rail"?Nt(Uf,{target:e,props:{titles:i,...a}}):Nt(vf,{target:e,props:{title:i,...a}})}function Yo({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){$e.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function In(t=!0){$e.length&&(Yf(),Ji($e[$e.length-1].component,{outro:t}))}function Gf(t=!0){In(t),$e.pop()}function jn(t=!0){for(In(t);$e.length>0;)$e.pop()}function Zo(){return $e[$e.length-2]||null}function Kf(){if($e.length<2)return;Gf();const t=$e.pop();t&&ui({...t})}function Yf(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Ci?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&($e[$e.length-1].scrollPosition=e.scrollTop)}function Zf(t,e){if(ko(t))return;let i=t.target;if(!i||(i.hasAttribute(vi)||(i=i.closest(ti)),!i))return;const a=i.getAttribute(vi);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),kf(()=>{hr(!1),ui({event:t,injection:r,data:r.title_details})},!Tn.current&&window.innerWidth>=Ci&&!window.matchMedia("(pointer: coarse)").matches))}var Jf=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),Qf=C('<!> <a target="_blank"> </a>',1),Xf=C(" <!>.",1),$f=C("<!> <br/>",1),eh=C(" <br/>",1),th=C('<span class="svelte-1to4glm"><!></span>'),ih=C('<p class="svelte-1to4glm"></p>');function ah(t,e){ie(e,!0);const i=N(e,"onclickmodal",3,()=>null);function a(c,d){ue(pe.AfterArticlePlaylinkClick,c,{playlink:d})}function r(c,d,p){ue(pe.AfterArticleModalButtonClick,d),i()(c,p)}var n=fe(),l=Z(n);{var s=c=>{var d=ih();Pe(d,21,()=>e.linkInjections,ze,(p,u)=>{const f=V(()=>{const{key:x,title:_,title_details:E,after_article_style:D}=o(u);return{key:x,title:_,title_details:E,after_article_style:D}}),h=V(()=>{var x;return((x=o(f).title_details)==null?void 0:x.providers)||[]});var m=th(),y=k(m);{var b=x=>{var _=$f(),E=Z(_);{var D=A=>{var O=Jf(),j=Z(O),M=I(j);M.__click=S=>S.stopPropagation();var P=k(M);P.__click=S=>r(S,o(f).title_details,o(u));var T=k(P);F((S,R)=>{Y(j,`"${o(f).title??""}" ${S??""} `),Y(T,R)},[()=>ee("Is Available To Stream"),()=>ee("View Streaming Options")]),w(A,O)},z=A=>{var O=Xf(),j=Z(O),M=I(j);Pe(M,17,()=>o(h),ze,(P,T,S)=>{let R=()=>o(T).name,U=()=>o(T).url;var Q=Qf(),G=Z(Q);{var B=$=>{var le=Qt();F(re=>Y(le,re),[()=>S===o(h).length-1?`, ${ee("And")}`:","]),w($,le)};H(G,$=>{S&&$(B)})}var K=I(G,2);K.__click=()=>a(o(f).title_details,R());var J=k(K);F(()=>{te(K,"href",U()),Y(J,R())}),w(P,Q)}),F(P=>Y(j,`"${o(f).title??""}" ${P??""} `),[()=>ee("Is Available To Stream On")]),w(A,O)};H(E,A=>{o(f).after_article_style==="modal_button"?A(D):A(z,!1)})}w(x,_)},g=x=>{var _=eh(),E=Z(_);F(D=>Y(E,`"${o(f).title??""}" ${D??""} `),[()=>ee("Title Unavailable Suffix")]),w(x,_)};H(y,x=>{o(h).length?x(b):x(g,!1)})}F(()=>te(m,"data-playpilot-injection-key",o(f).key)),w(p,m)}),w(c,d)};H(l,c=>{e.linkInjections.length&&c(s)})}w(t,n),ae()}de(["click"]);let Ca=null;function rh(t,e){var l,s;if(Ca||!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=((s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),Ca=Nt(ah,{target:i,props:{linkInjections:e,onclickmodal:(c,d)=>ui({event:c,injection:d,data:d.title_details})}})}function nh(){var t;Ca&&(Ji(Ca),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Ca=null)}var lh=C('<p class="svelte-1epbbn0"> </p>');function oh(t,e){ie(e,!1),lo();var i=lh(),a=k(i);F(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)||ee("In-Text Disclaimer")}]),w(t,i),ae()}let za=null;function sh(t){var n,l,s,c,d,p;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||za)return;const e=document.createElement("div"),i=(c=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:c.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),za=Nt(oh,{target:e})}function ch(){var t;za&&(Ji(za),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),za=null)}const vi="data-playpilot-injection-key",ti=`[${vi}]`;function dh(t,e={aiInjections:[],manualInjections:[]}){Ln(),gh();const i=mh(e);if(!i.length)return[];const a=pi(t.map(d=>d.innerText).join(" ")),n=bh(i).filter(d=>a.includes(pi(d.sentence))),l={};let s=-1;for(const d of _h(n)){s++;const p=t.findIndex(E=>pi(E.innerText).includes(pi(d.sentence))),u=t[p];if(!u)continue;const f=bo(d.title,u,["A"]);if(!(f!=null&&f.nodeValue)||wo(f)){const E=bo(d.title,u);if(E&&wo(E)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:m}=ph(d);let y=-1,b=!1;tr(u.innerHTML,d.title)===1&&(y=u.innerHTML.indexOf(d.title));const{phrase_before:x,phrase_after:_}=uh(u,d);if(y===-1&&(x||_)){const E=[x,d.title,_].filter(Boolean).join(" ");if(y=u.innerHTML.indexOf(E),y===-1){const D=gd(u.innerHTML,d.title,x||"",_||"");if(D){const{leadingSpaces:z,trailingSpaces:A}=md(D.match);m.innerHTML=D.match.trim();const O=D.index+z,j=D.index+D.match.length-A;if(u.innerHTML.slice(O,j).includes("href="))continue;An(u.innerHTML,d.title,u,h,O,j)&&(y=D.index,b=!0)}}}if(y===-1&&(f!=null&&f.nodeValue)){const E=u.innerHTML.indexOf(f.nodeValue),D=u.innerHTML.indexOf(d.sentence),z=D===-1?u.innerHTML.indexOf(d.sentence.slice(0,20)):-1,A=d.sentence.split(" ")[0],j=tr(u.innerHTML,A)===1?u.innerHTML.indexOf(A):-1,M=cd(n.slice(0,s+1),d,["title","sentence"])-1,P=yd(f.nodeValue,u,M);y=Math.max(E,z,P,j,D,0)}if(y!==-1&&!b&&!An(u.innerHTML,d.title,u,h,y)){const E=wd(d.title,u.innerHTML);E>-1?An(u.innerHTML,d.title,u,h,E):l[d.key]="Injection would have lead to broken HTML."}}fh(n),vh();const c=wh(i);return c.length&&rh(t,c),document.querySelector(ti)&&sh(t),i.filter(d=>d.title_details).map((d,p)=>{const u=!d.manual&&xh(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(`[${vi}="${d.key}"]`),m=Qo(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 ph(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 An(t,e,i,a,r,n=-1){const l=p=>Array.from(p.querySelectorAll(`a, ${ti}`)).filter(u=>!u.innerText).length,s=document.createElement("div");s.innerHTML=t;const c=l(s),d=s.innerText;return n>0?s.innerHTML=vd(t,a.outerHTML,r,n):s.innerHTML=ud(t,e,a.outerHTML,r),Math.abs(s.innerText.length-d.length)>1||c!=l(s)?!1:(i.innerHTML=s.innerHTML,!0)}function uh(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(tr(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=fd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function vh(){const t=Array.from(document.querySelectorAll(`${ti} 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 fh(t){window.addEventListener("mousemove",Mf),window.addEventListener("click",i=>Zf(i,t)),document.querySelectorAll(ti).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{qf()||Lf(n,r)}),i.addEventListener("mouseleave",Df))})}function Ln(){document.querySelectorAll(ti).forEach(e=>hh(e.getAttribute(vi)||"")),nh(),ch(),jn(!1),hr(!1)}function hh(t){var r;const e=document.querySelector(`[${vi}="${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 gh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ti)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function mh({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function yh(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Jo(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&Qo(t)}function Qo(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function bh(t){return Xo(t).filter(e=>e.in_text!==!1&&Jo(e))}function wh(t){return Xo(t).filter(e=>e.after_article===!0&&Jo(e))}function Xo(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)&&$o(i,e)))}function _h(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 xh(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&$o(a,t))}function $o(t,e){return t.title===e.title&&pi(t.sentence)===pi(e.sentence)}function Mn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function kh(){const t=di();if(!t)throw new Error("No token was provided");try{return await await $t(`/domains/config?api-token=${t}`)||null}catch{return null}}de(["click"]),de(["input"]),de(["click"]),de(["click"]),de(["click"]),de(["mousedown","touchstart"]),de(["mousedown","touchstart"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]);function Sh(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,s)=>{if(!s)return;const{purpose:c,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const p=u=>c.consents[u]===!0;_d({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 Th=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Eh=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Ph=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Ch=C('<button class="svelte-1tp7i1s"></button>'),zh=C("<small>You are using the beta version of TPI</small>"),Ih=C('<button class="svelte-1tp7i1s">Use beta script</button>'),jh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Ah=C("<option> </option>"),Lh=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 Mh(t,e){ie(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=W(Fe(d())),l=W(!1),s=null,c=W(184);rn(()=>{s&&clearInterval(s)});function d(){var D,z,A,O,j,M;const g=window.PlayPilotLinkInjections,x=((D=g.evaluated_link_injections)==null?void 0:D.filter(P=>!P.failed))||[],_=((z=g.evaluated_link_injections)==null?void 0:z.filter(P=>P.failed))||[],E=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(([P,T])=>({label:P,data:T})),[`Succesful injections (${x.length})`]:x.map(P=>({label:P.title,data:P.sentence})),[`Failed injections (${_.length})`]:_.map(P=>({label:P.title,data:`Reason: ${P.failed_message} | Sentence: ${P.sentence}`})),[`Fetched ads (${((A=g.ads)==null?void 0:A.length)||0})`]:(O=g.ads)==null?void 0:O.map(P=>({label:P.campaign_name,data:P})),[`Tracking events (${((j=g.tracked_events)==null?void 0:j.length)||0})`]:(M=g.tracked_events)==null?void 0:M.map(P=>({label:P.event,data:P.payload})),[`Visible pixels (${E.length})`]:E.map((P,T)=>({label:T+1,data:P.src}))}}function p(g){o(l)||(a.push(g.key),q(l,i.some(x=>a.slice(a.length-x.length,a.length).join("")===x),!0),s=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(zn).forEach(({key:x,numberOfVariants:_})=>{const E=1/_;window.PlayPilotLinkInjections.split_test_identifiers[x]=Math.min(E*g,1)})}function h(){var _,E;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(E=(_=window.PlayPilotLinkInjections)==null?void 0:_.destroy)==null||E.call(_);const x=document.createElement("script");for(const D of g.attributes)x.setAttribute(D.name,D.value);x.getAttribute("onload")||x.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),x.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",x),g.remove()}var m=fe();ke("keydown",Me,p);var y=Z(m);{var b=g=>{var x=Lh(),_=I(k(x),4);{var E=se=>{var ye=Th();w(se,ye)};H(_,se=>{var ye,ge,Le;(ye=window.PlayPilotLinkInjections.config)!=null&&ye.exclude_urls_pattern&&zi().match((Le=(ge=window.PlayPilotLinkInjections)==null?void 0:ge.config)==null?void 0:Le.exclude_urls_pattern)&&se(E)})}var D=I(_,2);Pe(D,17,()=>Object.entries(o(n)),ze,(se,ye)=>{var ge=V(()=>pa(o(ye),2));let Le=()=>o(ge)[0],et=()=>o(ge)[1];var Ie=Ph(),ce=k(Ie),Ke=k(ce),bt=I(ce,2);{var qe=X=>{var ve=fe(),_e=Z(ve);{var ai=Oe=>{var bi=fe(),Bh=Z(bi);Pe(Bh,17,et,ze,(Fh,ts,Xh,$h)=>{let Vh=()=>o(ts).label,Hh=()=>o(ts).data;var is=Eh(),as=k(is),Uh=k(as),Wh=I(as,2),Gh=k(Wh);F(Kh=>{Y(Uh,Vh()),Y(Gh,Kh)},[()=>JSON.stringify(Hh())]),w(Fh,is)}),w(Oe,bi)};H(_e,Oe=>{Array.isArray(et())&&Oe(ai)})}w(X,ve)},je=X=>{var ve=Qt("No data");w(X,ve)};H(bt,X=>{var ve;(ve=et())!=null&&ve.length?X(qe):X(je,!1)})}F(()=>Y(Ke,Le())),w(se,Ie)});var z=I(D,4);z.__click=()=>u("card");var A=I(z,2);A.__click=()=>u("top_scroll");var O=I(A,6);Pe(O,16,()=>({length:4}),ze,(se,ye,ge)=>{var Le=Ch();Le.__click=()=>f(ge),Le.textContent=ge,w(se,Le)});var j=I(O,4);j.__click=()=>console.log(cn(window.PlayPilotLinkInjections.config));var M=I(j,2);M.__click=()=>console.log(cn(window.PlayPilotLinkInjections.config).pageText);var P=I(M,4);P.__click=function(...se){var ye;(ye=e.onrerender)==null||ye.apply(this,se)};var T=I(P,2);{var S=se=>{var ye=zh();w(se,ye)},R=se=>{var ye=Ih();ye.__click=h,w(se,ye)};H(T,se=>{r?se(S):se(R,!1)})}var U=I(T,2);{var Q=se=>{var ye=jh();ye.__click=()=>{pr(),window.PlayPilotLinkInjections.config.explore_use_router=!ia(),dr()},w(se,ye)};H(U,se=>{ia()||se(Q)})}var G=I(U,4),B=I(k(G),2);qc(B,window.PlayPilotLinkInjections.region),B.__change=se=>{pr(),window.PlayPilotLinkInjections.region=se.target.value,dr()};var K=I(G,2),J=I(k(K),2);J.__change=se=>{pr(),window.PlayPilotLinkInjections.language=se.target.value,dr()},Pe(J,21,()=>Object.entries(v),ze,(se,ye)=>{var ge=V(()=>pa(o(ye),2));let Le=()=>o(ge)[0],et=()=>o(ge)[1];var Ie=Ah(),ce=k(Ie),Ke={};F(bt=>{$l(Ie,bt),Y(ce,Le()),Ke!==(Ke=et())&&(Ie.value=(Ie.__value=et())??"")},[()=>et()===Sa()]),w(se,Ie)});var $=I(K,4),le=I(k($),2);te(le,"min",80),te(le,"max",240),te(le,"step",8),le.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(c)}px`);var re=I(le,2),xe=k(re),Ae=I($,4);Ae.__click=()=>q(l,!1),F(()=>Y(xe,o(c))),ka(le,()=>o(c),se=>q(c,se)),w(g,x)};H(y,g=>{o(l)&&g(b)})}w(t,m),ae()}de(["click","change","input"]);function Dh(t,e){ie(e,!1);const i=Array.from(document.querySelectorAll(ti)),a=[],r=Date.now();let n=!1,l=null;dt(()=>{$a()||s()});function s(){l=new IntersectionObserver(c),i.forEach(u=>{l.observe(u)})}function c(u){u.forEach(f=>{if(!f.isIntersecting)return;const h=f.target.getAttribute(vi);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();ue(pe.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()})}lo(),ke("visibilitychange",Me,p),ae()}function qh(t,e){ie(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new ur,r=.7,n="[data-playpilot-poster]";let l=W(0),s={},c=null;const d=V(()=>o(l)<Ci);rn(h);function p(){var _,E;if((E=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&E.disable_scroll_reveal_posters||!o(d))return;m();const y=window.innerHeight,b=new ur,g=y*r,x=y-g;for(const D of i){const{top:z}=D.getBoundingClientRect();z<g&&z>x&&b.add(D)}for(const D of b){if(a.has(D))continue;const z=D.dataset.playpilotPosterUrl;z in s&&s[z]!==D||(u(D,z),a.add(D),s[z]=D)}}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(){c&&clearTimeout(c),c=setTimeout(()=>{for(const y of a)f(y),a.delete(y),s={}},1e3)}ke("scroll",Me,p),tn("innerWidth",y=>q(l,y,!0)),ae()}var Oh=C("<!> <!>",1),Nh=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function Rh(t,e){ie(e,!0);let i=W(Fe([])),a=W(null),r=W(Fe($a()));vo();let n=W(!1),l=W(!0),s=W(!0),c=W(Fe([]));const d=V(()=>o(a)||{}),p=V(()=>Un(o(d).ai_injections,()=>[],!0)),u=V(()=>Un(o(d).manual_injections,()=>[],!0)),f=V(()=>sn(o(i))),h=y();Ze(()=>{o(r)&&!o(l)&&b()}),dr(),rn(Ln);async function m(){ir()||(await h,Pd(),ue(pe.ArticlePageView),!(!o(p).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await Po())))}async function y(){var T;q(l,!0);try{o(r)&&q(n,await uo({throwError:!0}),!0)}catch{ue(pe.AuthFailed)}try{const S=window.PlayPilotLinkInjections.config||await kh()||{};if(window.PlayPilotLinkInjections.config=S,S!=null&&S.custom_style&&x(S.custom_style||""),S!=null&&S.explore_navigation_selector&&Su(),S!=null&&S.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),S!=null&&S.domain_sid&&To({organizationSid:S.organization_sid,domainSid:S.domain_sid}),q(s,ld(S),!0),o(s))return;S!=null&&S.html_selector&&(window.PlayPilotLinkInjections.selector=S==null?void 0:S.html_selector),q(i,cn(window.PlayPilotLinkInjections.config).elements,!0)}catch(S){ue(pe.FetchingConfigFailed),console.error("TPI Config failed to fetch",S);return}try{if(q(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),q(a,o(a)||await mo(o(f),{maxTries:1,runAiWhenRelevant:!ir()}),!0),q(l,!1),!o(a)||(T=window.PlayPilotLinkInjections.config)!=null&&T.disable_public_injections&&!(o(r)&&o(n)))return;if(To({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)||ir())return;q(a,await mo(o(f),{requireCompletedResult:!0,onpoll:S=>q(a,S,!0)}),!0),g({aiInjections:o(p),manualInjections:o(u)})}catch(S){console.error(S),ue(pe.InjectionError,null,{message:S.message})}}function b(){g(yh(o(c)))}function g(T={aiInjections:o(p),manualInjections:o(u)}){const S=dh(o(i),T);JSON.stringify(S)!==JSON.stringify(o(c))&&(q(c,S,!0),window.PlayPilotLinkInjections.evaluated_link_injections=S),o(r)||_(S)}function x(T){const S="playpilot-custom-style",R=document.getElementById(S),U=R||document.createElement("style");U.textContent=`body { ${T} }`,U.id=S,R||document.body.appendChild(U)}function _(T){const S=T.filter(U=>!U.failed),R=T.filter(U=>U.failed);if(S.length&&ue(pe.ArticleInjected,null,{manual:S.filter(U=>U.manual).length,ai:S.filter(U=>!U.manual).length}),R.length){const U=Q=>R.filter(({failed_message:G})=>G==null?void 0:G.includes(Q)).length;ue(pe.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 E=Nh(),D=Z(E),z=k(D);H(z,T=>{});var A=I(z,2);Mh(A,{onrerender:b});var O=I(D,2);{var j=T=>{xn(T,{get pixels(){return o(a).pixels}})};H(O,T=>{var S,R;(R=(S=o(a))==null?void 0:S.pixels)!=null&&R.length&&T(j)})}var M=I(O,2);Xi(M,()=>o(c),T=>{var S=Oh(),R=Z(S);Dh(R,{});var U=I(R,2);qh(U,{}),w(T,S)});var P=I(M,2);Sh(P,{onchange:m}),w(t,E),ae()}window.PlayPilotMount={mount(){window.PlayPilotLinkInjections.app&&this.destroy();const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Nt(Rh,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),Ln()}}})();
|