@playpilot/tpi 8.39.0 → 8.40.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mount.js CHANGED
@@ -1,12 +1,12 @@
1
1
  (() => {
2
- var Bc=Object.defineProperty;var Wl=t=>{throw TypeError(t)};var Vc=(t,e,n)=>e in t?Bc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var et=(t,e,n)=>Vc(t,typeof e!="symbol"?e+"":e,n),ka=(t,e,n)=>e.has(t)||Wl("Cannot "+n);var E=(t,e,n)=>(ka(t,e,"read from private field"),n?n.call(t):e.get(t)),oe=(t,e,n)=>e.has(t)?Wl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),fe=(t,e,n,i)=>(ka(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),xe=(t,e,n)=>(ka(t,e,"access private method"),n);var cl=Array.isArray,Wc=Array.prototype.indexOf,Ei=Array.prototype.includes,oa=Array.from,Uc=Object.defineProperty,En=Object.getOwnPropertyDescriptor,Co=Object.getOwnPropertyDescriptors,Gc=Object.prototype,Zc=Array.prototype,ul=Object.getPrototypeOf,Ul=Object.isExtensible;function ui(t){return typeof t=="function"}const vt=()=>{};function Kc(t){return typeof(t==null?void 0:t.then)=="function"}function Yc(t){return t()}function Fa(t){for(var e=0;e<t.length;e++)t[e]()}function Lo(){var t,e,n=new Promise((i,r)=>{t=i,e=r});return{promise:n,resolve:t,reject:e}}function qa(t,e,n=!1){return t===void 0?n?e():e:t}function Xn(t,e){if(Array.isArray(t))return t;if(e===void 0||!(Symbol.iterator in t))return Array.from(t);const n=[];for(const i of t)if(n.push(i),n.length===e)break;return n}const Qe=2,Ii=4,vr=8,dl=1<<24,wt=16,jt=32,Ln=64,Ha=128,bt=512,We=1024,Ye=2048,Jt=4096,it=8192,kt=16384,On=32768,Ba=1<<25,Qt=65536,Hr=1<<17,Mo=1<<18,Oi=1<<19,Do=1<<20,Gt=1<<25,$n=65536,Br=1<<21,gi=1<<22,In=1<<23,Yt=Symbol("$state"),jo=Symbol("legacy props"),Jc=Symbol(""),Ir=Symbol("attributes"),Va=Symbol("class"),Wa=Symbol("style"),Vi=Symbol("text"),Ar=Symbol("form reset"),sa=new class extends Error{constructor(){super(...arguments);et(this,"name","StaleReactionError");et(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Eo;const ca=!!((Eo=globalThis.document)!=null&&Eo.contentType)&&globalThis.document.contentType.includes("xml"),Qc=11;function fl(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Xc(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function $c(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function eu(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function tu(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function nu(t){throw new Error("https://svelte.dev/e/effect_orphan")}function iu(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ru(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function au(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function lu(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ou(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function su(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const cu=1,uu=2,Ro=4,du=8,fu=16,vu=1,hu=2,gu=4,mu=8,pu=16,_u=1,yu=2,wu=4,bu=1,ku=2,Be=Symbol(),Oo="http://www.w3.org/1999/xhtml",No="http://www.w3.org/2000/svg",Su="http://www.w3.org/1998/Math/MathML",xu="@attach";function Pu(){console.warn("https://svelte.dev/e/derived_inert")}function Tu(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Eu(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function zo(t){return t===this.v}function Fo(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function qo(t){return!Fo(t,this.v)}let Ni=!1;function Iu(){Ni=!0}let Ae=null;function Ai(t){Ae=t}function Qi(t){return Ho().get(t)}function hr(t,e){return Ho().set(t,e),e}function ne(t,e=!1,n){Ae={p:Ae,i:!1,c:null,e:null,s:t,x:null,r:_e,l:Ni&&!e?{s:null,u:null,$:[]}:null}}function ie(t){var e=Ae,n=e.e;if(n!==null){e.e=null;for(var i of n)vs(i)}return t!==void 0&&(e.x=t),e.i=!0,Ae=e.p,t??{}}function ti(){return!Ni||Ae!==null&&Ae.l===null}function Ho(t){return Ae===null&&fl(),Ae.c??(Ae.c=new Map(Au(Ae)||void 0))}function Au(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}let qn=[];function Bo(){var t=qn;qn=[],Fa(t)}function Lt(t){if(qn.length===0&&!mi){var e=qn;queueMicrotask(()=>{e===qn&&Bo()})}qn.push(t)}function Cu(){for(;qn.length>0;)Bo()}function Vo(t){var e=_e;if(e===null)return Pe.f|=In,t;if(!(e.f&On)&&!(e.f&Ii))throw t;xn(t,e)}function xn(t,e){for(;e!==null;){if(e.f&Ha){if(!(e.f&On))throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}const Lu=-7169;function ze(t,e){t.f=t.f&Lu|e}function vl(t){t.f&bt||t.deps===null?ze(t,We):ze(t,Jt)}function Wo(t){if(t!==null)for(const e of t)!(e.f&Qe)||!(e.f&$n)||(e.f^=$n,Wo(e.deps))}function Uo(t,e,n){t.f&Ye?e.add(t):t.f&Jt&&n.add(t),Wo(t.deps),ze(t,We)}let Sr=!1;function Mu(t){var e=Sr;try{return Sr=!1,[t(),Sr]}finally{Sr=e}}let Sa=null,ci=null,de=null,Gi=null,Ke=null,Ua=null,mi=!1,xa=!1,hi=null,Cr=null;var Gl=0;let Du=1;var _i,yn,Vn,yi,wi,Wn,bi,an,rr,ut,ar,wn,Bt,Vt,ki,Si,Te,Ga,Wi,Za,Go,Zo,Lr,ju,Ka,di;const ea=class ea{constructor(){oe(this,Te);et(this,"id",Du++);oe(this,_i,!1);et(this,"linked",!0);oe(this,yn,null);oe(this,Vn,null);et(this,"async_deriveds",new Map);et(this,"current",new Map);et(this,"previous",new Map);et(this,"unblocked",new Set);oe(this,yi,new Set);oe(this,wi,new Set);oe(this,Wn,new Set);oe(this,bi,0);oe(this,an,new Map);oe(this,rr,null);oe(this,ut,[]);oe(this,ar,[]);oe(this,wn,new Set);oe(this,Bt,new Set);oe(this,Vt,new Map);oe(this,ki,new Set);et(this,"is_fork",!1);oe(this,Si,!1)}skip_effect(e){E(this,Vt).has(e)||E(this,Vt).set(e,{d:[],m:[]}),E(this,ki).delete(e)}unskip_effect(e,n=i=>this.schedule(i)){var i=E(this,Vt).get(e);if(i){E(this,Vt).delete(e);for(var r of i.d)ze(r,Ye),n(r);for(r of i.m)ze(r,Jt),n(r)}E(this,ki).add(e)}capture(e,n,i=!1){e.v!==Be&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&In||(this.current.set(e,[n,i]),Ke==null||Ke.set(e,n)),this.is_fork||(e.v=n)}activate(){de=this}deactivate(){de=null,Ke=null}flush(){try{xa=!0,de=this,xe(this,Te,Wi).call(this)}finally{Gl=0,Ua=null,hi=null,Cr=null,xa=!1,de=null,Ke=null,Kn.clear()}}discard(){for(const e of E(this,wi))e(this);E(this,wi).clear(),E(this,Wn).clear(),xe(this,Te,di).call(this)}register_created_effect(e){E(this,ar).push(e)}increment(e,n){if(fe(this,bi,E(this,bi)+1),e){let i=E(this,an).get(n)??0;E(this,an).set(n,i+1)}}decrement(e,n){if(fe(this,bi,E(this,bi)-1),e){let i=E(this,an).get(n)??0;i===1?E(this,an).delete(n):E(this,an).set(n,i-1)}E(this,Si)||(fe(this,Si,!0),Lt(()=>{fe(this,Si,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const i of e)E(this,wn).add(i);for(const i of n)E(this,Bt).add(i);e.clear(),n.clear()}oncommit(e){E(this,yi).add(e)}ondiscard(e){E(this,wi).add(e)}on_fork_commit(e){E(this,Wn).add(e)}run_fork_commit_callbacks(){for(const e of E(this,Wn))e(this);E(this,Wn).clear()}settled(){return(E(this,rr)??fe(this,rr,Lo())).promise}static ensure(){var e;if(de===null){const n=de=new ea;xe(e=n,Te,Ka).call(e),!xa&&!mi&&Lt(()=>{E(n,_i)||n.flush()})}return de}apply(){{Ke=null;return}}schedule(e){var r;if(Ua=e,(r=e.b)!=null&&r.is_pending&&e.f&(Ii|vr|dl)&&!(e.f&On)){e.b.defer_effect(e);return}for(var n=e;n.parent!==null;){n=n.parent;var i=n.f;if(hi!==null&&n===_e&&(Pe===null||!(Pe.f&Qe)))return;if(i&(Ln|jt)){if(!(i&We))return;n.f^=We}}E(this,ut).push(n)}};_i=new WeakMap,yn=new WeakMap,Vn=new WeakMap,yi=new WeakMap,wi=new WeakMap,Wn=new WeakMap,bi=new WeakMap,an=new WeakMap,rr=new WeakMap,ut=new WeakMap,ar=new WeakMap,wn=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,ki=new WeakMap,Si=new WeakMap,Te=new WeakSet,Ga=function(){if(this.is_fork)return!0;for(const i of E(this,an).keys()){for(var e=i,n=!1;e.parent!==null;){if(E(this,Vt).has(e)){n=!0;break}e=e.parent}if(!n)return!0}return!1},Wi=function(){var c,u,f,h;if(fe(this,_i,!0),Gl++>1e3&&(xe(this,Te,di).call(this),Ru()),!xe(this,Te,Ga).call(this)){for(const d of E(this,wn))E(this,Bt).delete(d),ze(d,Ye),this.schedule(d);for(const d of E(this,Bt))ze(d,Jt),this.schedule(d)}const e=E(this,ut);fe(this,ut,[]),this.apply();var n=hi=[],i=[],r=Cr=[];for(const d of e)try{xe(this,Te,Za).call(this,d,n,i)}catch(p){throw Qo(d),p}if(de=null,r.length>0){var a=ea.ensure();for(const d of r)a.schedule(d)}if(hi=null,Cr=null,xe(this,Te,Ga).call(this)){xe(this,Te,Lr).call(this,i),xe(this,Te,Lr).call(this,n);for(const[d,p]of E(this,Vt))Jo(d,p);r.length>0&&xe(c=de,Te,Wi).call(c);return}const s=xe(this,Te,Go).call(this);if(s){xe(u=s,Te,Zo).call(u,this);return}E(this,wn).clear(),E(this,Bt).clear();for(const d of E(this,yi))d(this);E(this,yi).clear(),Gi=this,Zl(i),Zl(n),Gi=null,(f=E(this,rr))==null||f.resolve();var o=de;if(this.linked&&E(this,bi)===0&&xe(this,Te,di).call(this),E(this,ut).length>0){o===null&&(o=this,xe(this,Te,Ka).call(this));const d=o;E(d,ut).push(...E(this,ut).filter(p=>!E(d,ut).includes(p)))}o!==null&&xe(h=o,Te,Wi).call(h)},Za=function(e,n,i){e.f^=We;for(var r=e.first;r!==null;){var a=r.f,s=(a&(jt|Ln))!==0,o=s&&(a&We)!==0,c=o||(a&it)!==0||E(this,Vt).has(r);if(!c&&r.fn!==null){s?r.f^=We:a&Ii?n.push(r):_r(r)&&(a&wt&&E(this,Bt).add(r),Li(r));var u=r.first;if(u!==null){r=u;continue}}for(;r!==null;){var f=r.next;if(f!==null){r=f;break}r=r.parent}}},Go=function(){for(var e=E(this,yn);e!==null;){if(!e.is_fork){for(const[n,[,i]]of this.current)if(e.current.has(n)&&!i)return e}e=E(e,yn)}return null},Zo=function(e){var i;for(const[r,a]of e.current)!this.previous.has(r)&&e.previous.has(r)&&this.previous.set(r,e.previous.get(r)),this.current.set(r,a);for(const[r,a]of e.async_deriveds){const s=this.async_deriveds.get(r);s&&a.promise.then(s.resolve)}const n=r=>{var a=r.reactions;if(a!==null)for(const c of a){var s=c.f;if(s&Qe)n(c);else{var o=c;s&(gi|wt)&&!this.async_deriveds.has(o)&&(E(this,Bt).delete(o),ze(o,Ye),this.schedule(o))}}};for(const r of this.current.keys())n(r);this.oncommit(()=>e.discard()),xe(i=e,Te,di).call(i),de=this,xe(this,Te,Wi).call(this)},Lr=function(e){for(var n=0;n<e.length;n+=1)Uo(e[n],E(this,wn),E(this,Bt))},ju=function(){var f;xe(this,Te,di).call(this);for(let h=Sa;h!==null;h=E(h,Vn)){var e=h.id<this.id,n=[];for(const[d,[p,m]]of this.current){if(h.current.has(d)){var i=h.current.get(d)[0];if(e&&p!==i)h.current.set(d,[p,m]);else continue}n.push(d)}if(e)for(const[d,p]of this.async_deriveds){const m=h.async_deriveds.get(d);m&&p.promise.then(m.resolve)}if(E(h,_i)){var r=[...h.current.keys()].filter(d=>!this.current.has(d));if(r.length===0)e&&h.discard();else if(n.length>0){if(e)for(const d of E(this,ki))h.unskip_effect(d,p=>{var m;p.f&(wt|gi)?h.schedule(p):xe(m=h,Te,Lr).call(m,[p])});h.activate();var a=new Set,s=new Map;for(var o of n)Yo(o,r,a,s);s=new Map;var c=[...h.current.keys()].filter(d=>this.current.has(d)?this.current.get(d)[0]!==d.v:!0);if(c.length>0)for(const d of E(this,ar))!(d.f&(kt|it|Hr))&&hl(d,c,s)&&(d.f&(gi|wt)?(ze(d,Ye),h.schedule(d)):E(h,wn).add(d));if(E(h,ut).length>0){h.apply();for(var u of E(h,ut))xe(f=h,Te,Za).call(f,u,[],[]);fe(h,ut,[])}h.deactivate()}}}},Ka=function(){ci===null?Sa=ci=this:(fe(ci,Vn,this),fe(this,yn,ci)),ci=this},di=function(){var e=E(this,yn),n=E(this,Vn);e===null?Sa=n:fe(e,Vn,n),n===null?ci=e:fe(n,yn,e),this.linked=!1};let Mn=ea;function Ko(t){var e=mi;mi=!0;try{for(var n;;){if(Cu(),de===null)return n;de.flush()}}finally{mi=e}}function Ru(){try{iu()}catch(t){xn(t,Ua)}}let Tt=null;function Zl(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var i=t[n++];if(!(i.f&(kt|it))&&_r(i)&&(Tt=new Set,Li(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&ps(i),(Tt==null?void 0:Tt.size)>0)){Kn.clear();for(const r of Tt){if(r.f&(kt|it))continue;const a=[r];let s=r.parent;for(;s!==null;)Tt.has(s)&&(Tt.delete(s),a.push(s)),s=s.parent;for(let o=a.length-1;o>=0;o--){const c=a[o];c.f&(kt|it)||Li(c)}}Tt.clear()}}Tt=null}}function Yo(t,e,n,i){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const r of t.reactions){const a=r.f;a&Qe?Yo(r,e,n,i):a&(gi|wt)&&!(a&Ye)&&hl(r,e,i)&&(ze(r,Ye),gl(r))}}function hl(t,e,n){const i=n.get(t);if(i!==void 0)return i;if(t.deps!==null)for(const r of t.deps){if(Ei.call(e,r))return!0;if(r.f&Qe&&hl(r,e,n))return n.set(r,!0),!0}return n.set(t,!1),!1}function gl(t){de.schedule(t)}function Jo(t,e){if(!(t.f&jt&&t.f&We)){t.f&Ye?e.d.push(t):t.f&Jt&&e.m.push(t),ze(t,We);for(var n=t.first;n!==null;)Jo(n,e),n=n.next}}function Qo(t){ze(t,We);for(var e=t.first;e!==null;)Qo(e),e=e.next}function Xo(t){let e=0,n=Xt(0),i;return()=>{pl()&&(l(n),pr(()=>(e===0&&(i=zt(()=>t(()=>An(n)))),e+=1,()=>{Lt(()=>{e-=1,e===0&&(i==null||i(),i=void 0,An(n))})})))}}var Ou=Qt|Oi;function $o(t,e,n,i){new Nu(t,e,n,i)}var pt,sl,_t,Un,ot,yt,tt,dt,ln,Gn,bn,xi,lr,or,on,ta,Fe,zu,Fu,qu,Ya,Mr,Dr,Ja,Qa;class Nu{constructor(e,n,i,r){oe(this,Fe);et(this,"parent");et(this,"is_pending",!1);et(this,"transform_error");oe(this,pt);oe(this,sl,null);oe(this,_t);oe(this,Un);oe(this,ot);oe(this,yt,null);oe(this,tt,null);oe(this,dt,null);oe(this,ln,null);oe(this,Gn,0);oe(this,bn,0);oe(this,xi,!1);oe(this,lr,new Set);oe(this,or,new Set);oe(this,on,null);oe(this,ta,Xo(()=>(fe(this,on,Xt(E(this,Gn))),()=>{fe(this,on,null)})));var a;fe(this,pt,e),fe(this,_t,n),fe(this,Un,s=>{var o=_e;o.b=this,o.f|=Ha,i(s)}),this.parent=_e.b,this.transform_error=r??((a=this.parent)==null?void 0:a.transform_error)??(s=>s),fe(this,ot,mn(()=>{xe(this,Fe,Ya).call(this)},Ou))}defer_effect(e){Uo(e,E(this,lr),E(this,or))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!E(this,_t).pending}update_pending_count(e,n){xe(this,Fe,Ja).call(this,e,n),fe(this,Gn,E(this,Gn)+e),!(!E(this,on)||E(this,xi))&&(fe(this,xi,!0),Lt(()=>{fe(this,xi,!1),E(this,on)&&cn(E(this,on),E(this,Gn))}))}get_effect_pending(){return E(this,ta).call(this),l(E(this,on))}error(e){if(!E(this,_t).onerror&&!E(this,_t).failed)throw e;de!=null&&de.is_fork?(E(this,yt)&&de.skip_effect(E(this,yt)),E(this,tt)&&de.skip_effect(E(this,tt)),E(this,dt)&&de.skip_effect(E(this,dt)),de.on_fork_commit(()=>{xe(this,Fe,Qa).call(this,e)})):xe(this,Fe,Qa).call(this,e)}}pt=new WeakMap,sl=new WeakMap,_t=new WeakMap,Un=new WeakMap,ot=new WeakMap,yt=new WeakMap,tt=new WeakMap,dt=new WeakMap,ln=new WeakMap,Gn=new WeakMap,bn=new WeakMap,xi=new WeakMap,lr=new WeakMap,or=new WeakMap,on=new WeakMap,ta=new WeakMap,Fe=new WeakSet,zu=function(){try{fe(this,yt,nt(()=>E(this,Un).call(this,E(this,pt))))}catch(e){this.error(e)}},Fu=function(e){const n=E(this,_t).failed;n&&fe(this,dt,nt(()=>{n(E(this,pt),()=>e,()=>()=>{})}))},qu=function(){const e=E(this,_t).pending;e&&(this.is_pending=!0,fe(this,tt,nt(()=>e(E(this,pt)))),Lt(()=>{var n=fe(this,ln,document.createDocumentFragment()),i=Mt();n.append(i),fe(this,yt,xe(this,Fe,Dr).call(this,()=>nt(()=>E(this,Un).call(this,i)))),E(this,bn)===0&&(E(this,pt).before(n),fe(this,ln,null),Yn(E(this,tt),()=>{fe(this,tt,null)}),xe(this,Fe,Mr).call(this,de))}))},Ya=function(){try{if(this.is_pending=this.has_pending_snippet(),fe(this,bn,0),fe(this,Gn,0),fe(this,yt,nt(()=>{E(this,Un).call(this,E(this,pt))})),E(this,bn)>0){var e=fe(this,ln,document.createDocumentFragment());wl(E(this,yt),e);const n=E(this,_t).pending;fe(this,tt,nt(()=>n(E(this,pt))))}else xe(this,Fe,Mr).call(this,de)}catch(n){this.error(n)}},Mr=function(e){this.is_pending=!1,e.transfer_effects(E(this,lr),E(this,or))},Dr=function(e){var n=_e,i=Pe,r=Ae;$t(E(this,ot)),xt(E(this,ot)),Ai(E(this,ot).ctx);try{return Mn.ensure(),e()}catch(a){return Vo(a),null}finally{$t(n),xt(i),Ai(r)}},Ja=function(e,n){var i;if(!this.has_pending_snippet()){this.parent&&xe(i=this.parent,Fe,Ja).call(i,e,n);return}fe(this,bn,E(this,bn)+e),E(this,bn)===0&&(xe(this,Fe,Mr).call(this,n),E(this,tt)&&Yn(E(this,tt),()=>{fe(this,tt,null)}),E(this,ln)&&(E(this,pt).before(E(this,ln)),fe(this,ln,null)))},Qa=function(e){E(this,yt)&&(Je(E(this,yt)),fe(this,yt,null)),E(this,tt)&&(Je(E(this,tt)),fe(this,tt,null)),E(this,dt)&&(Je(E(this,dt)),fe(this,dt,null));var n=E(this,_t).onerror;let i=E(this,_t).failed;var r=!1,a=!1;const s=()=>{if(r){Eu();return}r=!0,a&&su(),E(this,dt)!==null&&Yn(E(this,dt),()=>{fe(this,dt,null)}),xe(this,Fe,Dr).call(this,()=>{xe(this,Fe,Ya).call(this)})},o=c=>{try{a=!0,n==null||n(c,s),a=!1}catch(u){xn(u,E(this,ot)&&E(this,ot).parent)}i&&fe(this,dt,xe(this,Fe,Dr).call(this,()=>{try{return nt(()=>{var u=_e;u.b=this,u.f|=Ha,i(E(this,pt),()=>c,()=>s)})}catch(u){return xn(u,E(this,ot).parent),null}}))};Lt(()=>{var c;try{c=this.transform_error(e)}catch(u){xn(u,E(this,ot)&&E(this,ot).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(o,u=>xn(u,E(this,ot)&&E(this,ot).parent)):o(c)})};function es(t,e,n,i){const r=ti()?Ci:ua;var a=t.filter(d=>!d.settled);if(n.length===0&&a.length===0){i(e.map(r));return}var s=_e,o=ts(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(d=>d.promise)):null;function u(d){if(!(s.f&kt)){o();try{i(d)}catch(p){xn(p,s)}Xi()}}var f=ns();if(n.length===0){c.then(()=>u(e.map(r))).finally(f);return}function h(){Promise.all(n.map(d=>Hu(d))).then(d=>u([...e.map(r),...d])).catch(d=>xn(d,s)).finally(f)}c?c.then(()=>{o(),h(),Xi()}):h()}function ts(){var t=_e,e=Pe,n=Ae,i=de;return function(a=!0){$t(t),xt(e),Ai(n),a&&!(t.f&kt)&&(i==null||i.activate(),i==null||i.apply())}}function Xi(t=!0){$t(null),xt(null),Ai(null),t&&(de==null||de.deactivate())}function ns(){var t=_e,e=t.b,n=de,i=e.is_rendered();return e.update_pending_count(1,n),n.increment(i,t),()=>{e.update_pending_count(-1,n),n.decrement(i,t)}}function Ci(t){var e=Qe|Ye;return _e!==null&&(_e.f|=Oi),{ctx:Ae,deps:null,effects:null,equals:zo,f:e,fn:t,reactions:null,rv:0,v:Be,wv:0,parent:_e,ac:null}}const xr=Symbol("obsolete");function Hu(t,e,n){let i=_e;i===null&&Xc();var r=void 0,a=Xt(Be),s=!Pe,o=new Set;return td(()=>{var p;var c=_e,u=Lo();r=u.promise;try{Promise.resolve(t()).then(u.resolve,m=>{m!==sa&&u.reject(m)}).finally(Xi)}catch(m){u.reject(m),Xi()}var f=de;if(s){if(c.f&On)var h=ns();if(i.b.is_rendered())(p=f.async_deriveds.get(c))==null||p.reject(xr);else for(const m of o.values())m.reject(xr);o.add(u),f.async_deriveds.set(c,u)}const d=(m,_=void 0)=>{h==null||h(),o.delete(u),_!==xr&&(f.activate(),_?(a.f|=In,cn(a,_)):(a.f&In&&(a.f^=In),cn(a,m)),f.deactivate())};u.promise.then(d,m=>d(null,m||"unknown"))}),mr(()=>{for(const c of o)c.reject(xr)}),new Promise(c=>{function u(f){function h(){f===r?c(a):u(r)}f.then(h,h)}u(r)})}function H(t){const e=Ci(t);return ws(e),e}function ua(t){const e=Ci(t);return e.equals=qo,e}function Bu(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)Je(e[n])}}function ml(t){var e,n=_e,i=t.parent;if(!fn&&i!==null&&i.f&(kt|it))return Pu(),t.v;$t(i);try{t.f&=~$n,Bu(t),e=xs(t)}finally{$t(n)}return e}function is(t){var e=ml(t);if(!t.equals(e)&&(t.wv=ks(),(!(de!=null&&de.is_fork)||t.deps===null)&&(de!==null?(de.capture(t,e,!0),Gi==null||Gi.capture(t,e,!0)):t.v=e,t.deps===null))){ze(t,We);return}fn||(Ke!==null?(pl()||de!=null&&de.is_fork)&&Ke.set(t,e):vl(t))}function Vu(t){var e,n;if(t.effects!==null)for(const i of t.effects)(i.teardown||i.ac)&&((e=i.teardown)==null||e.call(i),(n=i.ac)==null||n.abort(sa),i.teardown=vt,i.ac=null,$i(i,0),_l(i))}function rs(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&Li(e)}let Vr=new Set;const Kn=new Map;let as=!1;function Xt(t,e){var n={f:0,v:t,reactions:null,equals:zo,rv:0,wv:0};return n}function K(t,e){const n=Xt(t);return ws(n),n}function Xa(t,e=!1,n=!0){var r;const i=Xt(t);return e||(i.equals=qo),Ni&&n&&Ae!==null&&Ae.l!==null&&((r=Ae.l).s??(r.s=[])).push(i),i}function z(t,e,n=!1){Pe!==null&&(!At||Pe.f&Hr)&&ti()&&Pe.f&(Qe|wt|gi|Hr)&&(St===null||!Ei.call(St,t))&&ou();let i=n?Ee(e):e;return cn(t,i,Cr)}function cn(t,e,n=null){if(!t.equals(e)){Kn.set(t,fn?e:t.v);var i=Mn.ensure();if(i.capture(t,e),t.f&Qe){const r=t;t.f&Ye&&ml(r),Ke===null&&vl(r)}t.wv=ks(),ls(t,Ye,n),ti()&&_e!==null&&_e.f&We&&!(_e.f&(jt|Ln))&&(mt===null?id([t]):mt.push(t)),!i.is_fork&&Vr.size>0&&!as&&Wu()}return e}function Wu(){as=!1;for(const t of Vr){t.f&We&&ze(t,Jt);let e;try{e=_r(t)}catch{e=!0}e&&Li(t)}Vr.clear()}function Uu(t,e=1){var n=l(t),i=e===1?n++:n--;return z(t,n),i}function An(t){z(t,t.v+1)}function ls(t,e,n){var i=t.reactions;if(i!==null)for(var r=ti(),a=i.length,s=0;s<a;s++){var o=i[s],c=o.f;if(!(!r&&o===_e)){var u=(c&Ye)===0;if(u&&ze(o,e),c&Hr)Vr.add(o);else if(c&Qe){var f=o;Ke==null||Ke.delete(f),c&$n||(c&bt&&(_e===null||!(_e.f&Br))&&(o.f|=$n),ls(f,Jt,n))}else if(u){var h=o;c&wt&&Tt!==null&&Tt.add(h),n!==null?n.push(h):gl(h)}}}}function Ee(t){if(typeof t!="object"||t===null||Yt in t)return t;const e=ul(t);if(e!==Gc&&e!==Zc)return t;var n=new Map,i=cl(t),r=K(0),a=un,s=o=>{if(un===a)return o();var c=Pe,u=un;xt(null),Ql(a);var f=o();return xt(c),Ql(u),f};return i&&n.set("length",K(t.length)),new Proxy(t,{defineProperty(o,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&au();var f=n.get(c);return f===void 0?s(()=>{var h=K(u.value);return n.set(c,h),h}):z(f,u.value,!0),!0},deleteProperty(o,c){var u=n.get(c);if(u===void 0){if(c in o){const f=s(()=>K(Be));n.set(c,f),An(r)}}else z(u,Be),An(r);return!0},get(o,c,u){var p;if(c===Yt)return t;var f=n.get(c),h=c in o;if(f===void 0&&(!h||(p=En(o,c))!=null&&p.writable)&&(f=s(()=>{var m=Ee(h?o[c]:Be),_=K(m);return _}),n.set(c,f)),f!==void 0){var d=l(f);return d===Be?void 0:d}return Reflect.get(o,c,u)},getOwnPropertyDescriptor(o,c){var u=Reflect.getOwnPropertyDescriptor(o,c);if(u&&"value"in u){var f=n.get(c);f&&(u.value=l(f))}else if(u===void 0){var h=n.get(c),d=h==null?void 0:h.v;if(h!==void 0&&d!==Be)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(o,c){var d;if(c===Yt)return!0;var u=n.get(c),f=u!==void 0&&u.v!==Be||Reflect.has(o,c);if(u!==void 0||_e!==null&&(!f||(d=En(o,c))!=null&&d.writable)){u===void 0&&(u=s(()=>{var p=f?Ee(o[c]):Be,m=K(p);return m}),n.set(c,u));var h=l(u);if(h===Be)return!1}return f},set(o,c,u,f){var T;var h=n.get(c),d=c in o;if(i&&c==="length")for(var p=u;p<h.v;p+=1){var m=n.get(p+"");m!==void 0?z(m,Be):p in o&&(m=s(()=>K(Be)),n.set(p+"",m))}if(h===void 0)(!d||(T=En(o,c))!=null&&T.writable)&&(h=s(()=>K(void 0)),z(h,Ee(u)),n.set(c,h));else{d=h.v!==Be;var _=s(()=>Ee(u));z(h,_)}var g=Reflect.getOwnPropertyDescriptor(o,c);if(g!=null&&g.set&&g.set.call(f,u),!d){if(i&&typeof c=="string"){var w=n.get("length"),k=Number(c);Number.isInteger(k)&&k>=w.v&&z(w,k+1)}An(r)}return!0},ownKeys(o){l(r);var c=Reflect.ownKeys(o).filter(h=>{var d=n.get(h);return d===void 0||d.v!==Be});for(var[u,f]of n)f.v!==Be&&!(u in o)&&c.push(u);return c},setPrototypeOf(){lu()}})}function Kl(t){try{if(t!==null&&typeof t=="object"&&Yt in t)return t[Yt]}catch{}return t}function Gu(t,e){return Object.is(Kl(t),Kl(e))}var Ie,os,ss,cs;function Zu(){if(Ie===void 0){Ie=window,os=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;ss=En(e,"firstChild").get,cs=En(e,"nextSibling").get,Ul(t)&&(t[Va]=void 0,t[Ir]=null,t[Wa]=void 0,t.__e=void 0),Ul(n)&&(n[Vi]=void 0)}}function Mt(t=""){return document.createTextNode(t)}function Zt(t){return ss.call(t)}function gr(t){return cs.call(t)}function x(t,e){return Zt(t)}function J(t,e=!1){{var n=Zt(t);return n instanceof Comment&&n.data===""?gr(n):n}}function C(t,e=1,n=!1){let i=t;for(;e--;)i=gr(i);return i}function Ku(t){t.textContent=""}function us(){return!1}function da(t,e,n){return document.createElementNS(e??Oo,t,void 0)}function Yu(t,e){if(e){const n=document.body;t.autofocus=!0,Lt(()=>{document.activeElement===n&&t.focus()})}}let Yl=!1;function Ju(){Yl||(Yl=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)(e=n[Ar])==null||e.call(n)})},{capture:!0}))}function Qu(t,e,n,i=!0){i&&n();for(var r of e)t.addEventListener(r,n);mr(()=>{for(var a of e)t.removeEventListener(a,n)})}function ni(t){var e=Pe,n=_e;xt(null),$t(null);try{return t()}finally{xt(e),$t(n)}}function ds(t,e,n,i=n){t.addEventListener(e,()=>ni(n));const r=t[Ar];r?t[Ar]=()=>{r(),i(!0)}:t[Ar]=()=>i(!0),Ju()}function fs(t){_e===null&&(Pe===null&&nu(),tu()),fn&&eu()}function Xu(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Nt(t,e){var n=_e;n!==null&&n.f&it&&(t|=it);var i={ctx:Ae,deps:null,nodes:null,f:t|Ye|bt,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};de==null||de.register_created_effect(i);var r=i;if(t&Ii)hi!==null?hi.push(i):Mn.ensure().schedule(i);else if(e!==null){try{Li(i)}catch(s){throw Je(i),s}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&!(r.f&Oi)&&(r=r.first,t&wt&&t&Qt&&r!==null&&(r.f|=Qt))}if(r!==null&&(r.parent=n,n!==null&&Xu(r,n),Pe!==null&&Pe.f&Qe&&!(t&Ln))){var a=Pe;(a.effects??(a.effects=[])).push(r)}return i}function pl(){return Pe!==null&&!At}function mr(t){const e=Nt(vr,null);return ze(e,We),e.teardown=t,e}function He(t){fs();var e=_e.f,n=!Pe&&(e&jt)!==0&&(e&On)===0;if(n){var i=Ae;(i.e??(i.e=[])).push(t)}else return vs(t)}function vs(t){return Nt(Ii|Do,t)}function $u(t){return fs(),Nt(vr|Do,t)}function ed(t){Mn.ensure();const e=Nt(Ln|Oi,t);return(n={})=>new Promise(i=>{n.outro?Yn(e,()=>{Je(e),i(void 0)}):(Je(e),i(void 0))})}function ii(t){return Nt(Ii,t)}function td(t){return Nt(gi|Oi,t)}function pr(t,e=0){return Nt(vr|e,t)}function V(t,e=[],n=[],i=[]){es(i,e,n,r=>{Nt(vr,()=>t(...r.map(l)))})}function mn(t,e=0){var n=Nt(wt|e,t);return n}function hs(t,e=0){var n=Nt(dl|e,t);return n}function nt(t){return Nt(jt|Oi,t)}function gs(t){var e=t.teardown;if(e!==null){const n=fn,i=Pe;Jl(!0),xt(null);try{e.call(null)}finally{Jl(n),xt(i)}}}function _l(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const r=n.ac;r!==null&&ni(()=>{r.abort(sa)});var i=n.next;n.f&Ln?n.parent=null:Je(n,e),n=i}}function nd(t){for(var e=t.first;e!==null;){var n=e.next;e.f&jt||Je(e),e=n}}function Je(t,e=!0){var n=!1;(e||t.f&Mo)&&t.nodes!==null&&t.nodes.end!==null&&(ms(t.nodes.start,t.nodes.end),n=!0),ze(t,Ba),_l(t,e&&!n),$i(t,0);var i=t.nodes&&t.nodes.t;if(i!==null)for(const a of i)a.stop();gs(t),t.f^=Ba,t.f|=kt;var r=t.parent;r!==null&&r.first!==null&&ps(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function ms(t,e){for(;t!==null;){var n=t===e?null:gr(t);t.remove(),t=n}}function ps(t){var e=t.parent,n=t.prev,i=t.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),e!==null&&(e.first===t&&(e.first=i),e.last===t&&(e.last=n))}function Yn(t,e,n=!0){var i=[];_s(t,i,!0);var r=()=>{n&&Je(t),e&&e()},a=i.length;if(a>0){var s=()=>--a||r();for(var o of i)o.out(s)}else r()}function _s(t,e,n){if(!(t.f&it)){t.f^=it;var i=t.nodes&&t.nodes.t;if(i!==null)for(const o of i)(o.is_global||n)&&e.push(o);for(var r=t.first;r!==null;){var a=r.next;if(!(r.f&Ln)){var s=(r.f&Qt)!==0||(r.f&jt)!==0&&(t.f&wt)!==0;_s(r,e,s?n:!1)}r=a}}}function yl(t){ys(t,!0)}function ys(t,e){if(t.f&it){t.f^=it,t.f&We||(ze(t,Ye),Mn.ensure().schedule(t));for(var n=t.first;n!==null;){var i=n.next,r=(n.f&Qt)!==0||(n.f&jt)!==0;ys(n,r?e:!1),n=i}var a=t.nodes&&t.nodes.t;if(a!==null)for(const s of a)(s.is_global||e)&&s.in()}}function wl(t,e){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end;n!==null;){var r=n===i?null:gr(n);e.append(n),n=r}}let jr=!1,fn=!1;function Jl(t){fn=t}let Pe=null,At=!1;function xt(t){Pe=t}let _e=null;function $t(t){_e=t}let St=null;function ws(t){Pe!==null&&(St===null?St=[t]:St.push(t))}let st=null,ct=0,mt=null;function id(t){mt=t}let bs=1,Hn=0,un=Hn;function Ql(t){un=t}function ks(){return++bs}function _r(t){var e=t.f;if(e&Ye)return!0;if(e&Qe&&(t.f&=~$n),e&Jt){for(var n=t.deps,i=n.length,r=0;r<i;r++){var a=n[r];if(_r(a)&&is(a),a.wv>t.wv)return!0}e&bt&&Ke===null&&ze(t,We)}return!1}function Ss(t,e,n=!0){var i=t.reactions;if(i!==null&&!(St!==null&&Ei.call(St,t)))for(var r=0;r<i.length;r++){var a=i[r];a.f&Qe?Ss(a,e,!1):e===a&&(n?ze(a,Ye):a.f&We&&ze(a,Jt),gl(a))}}function xs(t){var _;var e=st,n=ct,i=mt,r=Pe,a=St,s=Ae,o=At,c=un,u=t.f;st=null,ct=0,mt=null,Pe=u&(jt|Ln)?null:t,St=null,Ai(t.ctx),At=!1,un=++Hn,t.ac!==null&&(ni(()=>{t.ac.abort(sa)}),t.ac=null);try{t.f|=Br;var f=t.fn,h=f();t.f|=On;var d=t.deps,p=de==null?void 0:de.is_fork;if(st!==null){var m;if(p||$i(t,ct),d!==null&&ct>0)for(d.length=ct+st.length,m=0;m<st.length;m++)d[ct+m]=st[m];else t.deps=d=st;if(pl()&&t.f&bt)for(m=ct;m<d.length;m++)((_=d[m]).reactions??(_.reactions=[])).push(t)}else!p&&d!==null&&ct<d.length&&($i(t,ct),d.length=ct);if(ti()&&mt!==null&&!At&&d!==null&&!(t.f&(Qe|Jt|Ye)))for(m=0;m<mt.length;m++)Ss(mt[m],t);if(r!==null&&r!==t){if(Hn++,r.deps!==null)for(let g=0;g<n;g+=1)r.deps[g].rv=Hn;if(e!==null)for(const g of e)g.rv=Hn;mt!==null&&(i===null?i=mt:i.push(...mt))}return t.f&In&&(t.f^=In),h}catch(g){return Vo(g)}finally{t.f^=Br,st=e,ct=n,mt=i,Pe=r,St=a,Ai(s),At=o,un=c}}function rd(t,e){let n=e.reactions;if(n!==null){var i=Wc.call(n,t);if(i!==-1){var r=n.length-1;r===0?n=e.reactions=null:(n[i]=n[r],n.pop())}}if(n===null&&e.f&Qe&&(st===null||!Ei.call(st,e))){var a=e;a.f&bt&&(a.f^=bt,a.f&=~$n),a.v!==Be&&vl(a),Vu(a),$i(a,0)}}function $i(t,e){var n=t.deps;if(n!==null)for(var i=e;i<n.length;i++)rd(t,n[i])}function Li(t){var e=t.f;if(!(e&kt)){ze(t,We);var n=_e,i=jr;_e=t,jr=!0;try{e&(wt|dl)?nd(t):_l(t),gs(t);var r=xs(t);t.teardown=typeof r=="function"?r:null,t.wv=bs;var a}finally{jr=i,_e=n}}}async function er(){await Promise.resolve(),Ko()}function l(t){var e=t.f,n=(e&Qe)!==0;if(Pe!==null&&!At){var i=_e!==null&&(_e.f&kt)!==0;if(!i&&(St===null||!Ei.call(St,t))){var r=Pe.deps;if(Pe.f&Br)t.rv<Hn&&(t.rv=Hn,st===null&&r!==null&&r[ct]===t?ct++:st===null?st=[t]:st.push(t));else{(Pe.deps??(Pe.deps=[])).push(t);var a=t.reactions;a===null?t.reactions=[Pe]:Ei.call(a,Pe)||a.push(Pe)}}}if(fn&&Kn.has(t))return Kn.get(t);if(n){var s=t;if(fn){var o=s.v;return(!(s.f&We)&&s.reactions!==null||Ts(s))&&(o=ml(s)),Kn.set(s,o),o}var c=(s.f&bt)===0&&!At&&Pe!==null&&(jr||(Pe.f&bt)!==0),u=(s.f&On)===0;_r(s)&&(c&&(s.f|=bt),is(s)),c&&!u&&(rs(s),Ps(s))}if(Ke!=null&&Ke.has(t))return Ke.get(t);if(t.f&In)throw t.v;return t.v}function Ps(t){if(t.f|=bt,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Qe&&!(e.f&bt)&&(rs(e),Ps(e))}function Ts(t){if(t.v===Be)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Kn.has(e)||e.f&Qe&&Ts(e))return!0;return!1}function zt(t){var e=At;try{return At=!0,t()}finally{At=e}}function Es(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Yt in t)$a(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&Yt in n&&$a(n)}}}function $a(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 i in t)try{$a(t[i],e)}catch{}const n=ul(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=Co(n);for(let r in i){const a=i[r].get;if(a)try{a.call(t)}catch{}}}}}function ad(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ld=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function od(t){return ld.includes(t)}const sd={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 cd(t){return t=t.toLowerCase(),sd[t]??t}const ud=["touchstart","touchmove"];function dd(t){return ud.includes(t)}const Bn=Symbol("events"),Is=new Set,el=new Set;function bl(t,e,n,i={}){function r(a){if(i.capture||tl.call(e,a),!a.cancelBubble)return ni(()=>n==null?void 0:n.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Lt(()=>{e.addEventListener(t,r,i)}):e.addEventListener(t,r,i),r}function fd(t,e,n,i={}){var r=bl(e,t,n,i);return()=>{t.removeEventListener(e,r,i)}}function Se(t,e,n,i,r){var a={capture:i,passive:r},s=bl(t,e,n,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&mr(()=>{e.removeEventListener(t,s,a)})}function re(t,e,n){(e[Bn]??(e[Bn]={}))[t]=n}function me(t){for(var e=0;e<t.length;e++)Is.add(t[e]);for(var n of el)n(t)}let Xl=null;function tl(t){var g,w;var e=this,n=e.ownerDocument,i=t.type,r=((g=t.composedPath)==null?void 0:g.call(t))||[],a=r[0]||t.target;Xl=t;var s=0,o=Xl===t&&t[Bn];if(o){var c=r.indexOf(o);if(c!==-1&&(e===document||e===window)){t[Bn]=e;return}var u=r.indexOf(e);if(u===-1)return;c<=u&&(s=c)}if(a=r[s]||t.target,a!==e){Uc(t,"currentTarget",{configurable:!0,get(){return a||n}});var f=Pe,h=_e;xt(null),$t(null);try{for(var d,p=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var _=(w=a[Bn])==null?void 0:w[i];_!=null&&(!a.disabled||t.target===a)&&_.call(a,t)}catch(k){d?p.push(k):d=k}if(t.cancelBubble||m===e||m===null)break;a=m}if(d){for(let k of p)queueMicrotask(()=>{throw k});throw d}}finally{t[Bn]=e,delete t.currentTarget,xt(f),$t(h)}}}var Io;const Pa=((Io=globalThis==null?void 0:globalThis.window)==null?void 0:Io.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function vd(t){return(Pa==null?void 0:Pa.createHTML(t))??t}function As(t){var e=da("template");return e.innerHTML=vd(t.replaceAll("<!>","<!---->")),e.content}const hd=ca?"script":"SCRIPT";function Dn(t,e){var n=_e;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function A(t,e){var n=(e&bu)!==0,i=(e&ku)!==0,r,a=!t.startsWith("<!>");return()=>{r===void 0&&(r=As(a?t:"<!>"+t),n||(r=Zt(r)));var s=i||os?document.importNode(r,!0):r.cloneNode(!0);if(n){var o=Zt(s),c=s.lastChild;Dn(o,c)}else Dn(s,s);return s}}function gd(t,e,n="svg"){var i=!t.startsWith("<!>"),r=`<${n}>${i?t:"<!>"+t}</${n}>`,a;return()=>{if(!a){var s=As(r),o=Zt(s);a=Zt(o)}var c=a.cloneNode(!0);return Dn(c,c),c}}function Ge(t,e){return gd(t,e,"svg")}function md(t){return()=>pd(t())}function pd(t){const e=t.nodeType===Qc,n=t.nodeName===hd?[t]:t.querySelectorAll("script"),i=_e;for(const a of n){const s=da("script");for(var r of a.attributes)s.setAttribute(r.name,r.value);s.textContent=a.textContent,(e?t.firstChild===a:t===a)&&(i.nodes.start=s),(e?t.lastChild===a:t===a)&&(i.nodes.end=s),a.replaceWith(s)}return t}function rt(t=""){{var e=Mt(t+"");return Dn(e,e),e}}function ge(){var t=document.createDocumentFragment(),e=document.createComment(""),n=Mt();return t.append(e,n),Dn(e,n),t}function y(t,e){t!==null&&t.before(e)}let Wr=!0;function Pr(t){Wr=t}function Q(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[Vi]??(t[Vi]=t.nodeValue))&&(t[Vi]=n,t.nodeValue=`${n}`)}function Dt(t,e){return _d(t,e)}const Tr=new Map;function _d(t,{target:e,anchor:n,props:i={},events:r,context:a,intro:s=!0,transformError:o}){Zu();var c=void 0,u=ed(()=>{var f=n??e.appendChild(Mt());$o(f,{pending:()=>{}},p=>{ne({});var m=Ae;a&&(m.c=a),r&&(i.$$events=r),Wr=s,c=t(p,i)||{},Wr=!0,ie()},o);var h=new Set,d=p=>{for(var m=0;m<p.length;m++){var _=p[m];if(!h.has(_)){h.add(_);var g=dd(_);for(const T of[e,document]){var w=Tr.get(T);w===void 0&&(w=new Map,Tr.set(T,w));var k=w.get(_);k===void 0?(T.addEventListener(_,tl,{passive:g}),w.set(_,1)):w.set(_,k+1)}}}};return d(oa(Is)),el.add(d),()=>{var g;for(var p of h)for(const w of[e,document]){var m=Tr.get(w),_=m.get(p);--_==0?(w.removeEventListener(p,tl),m.delete(p),m.size===0&&Tr.delete(w)):m.set(p,_)}el.delete(d),f!==n&&((g=f.parentNode)==null||g.removeChild(f))}});return nl.set(c,u),c}let nl=new WeakMap;function ri(t,e){const n=nl.get(t);return n?(nl.delete(t),n(e)):Promise.resolve()}var Et,Wt,ft,Zn,sr,cr,na;class zi{constructor(e,n=!0){et(this,"anchor");oe(this,Et,new Map);oe(this,Wt,new Map);oe(this,ft,new Map);oe(this,Zn,new Set);oe(this,sr,!0);oe(this,cr,e=>{if(E(this,Et).has(e)){var n=E(this,Et).get(e),i=E(this,Wt).get(n);if(i)yl(i),E(this,Zn).delete(n);else{var r=E(this,ft).get(n);r&&(E(this,Wt).set(n,r.effect),E(this,ft).delete(n),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[a,s]of E(this,Et)){if(E(this,Et).delete(a),a===e)break;const o=E(this,ft).get(s);o&&(Je(o.effect),E(this,ft).delete(s))}for(const[a,s]of E(this,Wt)){if(a===n||E(this,Zn).has(a))continue;const o=()=>{if(Array.from(E(this,Et).values()).includes(a)){var u=document.createDocumentFragment();wl(s,u),u.append(Mt()),E(this,ft).set(a,{effect:s,fragment:u})}else Je(s);E(this,Zn).delete(a),E(this,Wt).delete(a)};E(this,sr)||!i?(E(this,Zn).add(a),Yn(s,o,!1)):o()}}});oe(this,na,e=>{E(this,Et).delete(e);const n=Array.from(E(this,Et).values());for(const[i,r]of E(this,ft))n.includes(i)||(Je(r.effect),E(this,ft).delete(i))});this.anchor=e,fe(this,sr,n)}ensure(e,n){var i=de,r=us();if(n&&!E(this,Wt).has(e)&&!E(this,ft).has(e))if(r){var a=document.createDocumentFragment(),s=Mt();a.append(s),E(this,ft).set(e,{effect:nt(()=>n(s)),fragment:a})}else E(this,Wt).set(e,nt(()=>n(this.anchor)));if(E(this,Et).set(i,e),r){for(const[o,c]of E(this,Wt))o===e?i.unskip_effect(c):i.skip_effect(c);for(const[o,c]of E(this,ft))o===e?i.unskip_effect(c.effect):i.skip_effect(c.effect);i.oncommit(E(this,cr)),i.ondiscard(E(this,na))}else E(this,cr).call(this,i)}}Et=new WeakMap,Wt=new WeakMap,ft=new WeakMap,Zn=new WeakMap,sr=new WeakMap,cr=new WeakMap,na=new WeakMap;const yd=0,$l=1,wd=2;function vn(t,e,n,i,r){var a=ti(),s=Be,o=a?Xt(s):Xa(s,!1,!1),c=a?Xt(s):Xa(s,!1,!1),u=new zi(t);mn(()=>{var f=de;f.deactivate();var h=e();f.activate();var d=!1;if(Kc(h)){var p=ts(),m=!1;const _=g=>{if(!d){m=!0,p(!1),Mn.ensure();try{g()}finally{Xi(!1),mi||Ko()}}};h.then(g=>{_(()=>{cn(o,g),u.ensure($l,i&&(w=>i(w,o)))})},g=>{_(()=>{if(cn(c,g),u.ensure(wd,r&&(w=>r(w,c))),!r)throw c.v})}),Lt(()=>{m||_(()=>{u.ensure(yd,n)})})}else cn(o,h),u.ensure($l,i&&(_=>i(_,o)));return()=>{d=!0}})}function U(t,e,n=!1){var i=new zi(t),r=n?Qt:0;function a(s,o){i.ensure(s,o)}mn(()=>{var s=!1;e((o,c=0)=>{s=!0,a(c,o)}),s||a(-1,null)},r)}const bd=Symbol("NaN");function yr(t,e,n){var i=new zi(t),r=!ti();mn(()=>{var a=e();a!==a&&(a=bd),r&&a!==null&&typeof a=="object"&&(a={}),i.ensure(a,n)})}function De(t,e){return e}function kd(t,e,n){for(var i=[],r=e.length,a,s=e.length,o=0;o<r;o++){let h=e[o];Yn(h,()=>{if(a){if(a.pending.delete(h),a.done.add(h),a.pending.size===0){var d=t.outrogroups;il(t,oa(a.done)),d.delete(a),d.size===0&&(t.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=i.length===0&&n!==null;if(c){var u=n,f=u.parentNode;Ku(f),f.append(u),t.items.clear()}il(t,e,!c)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function il(t,e,n=!0){var i;if(t.pending.size>0){i=new Set;for(const s of t.pending.values())for(const o of s)i.add(t.items.get(o).e)}for(var r=0;r<e.length;r++){var a=e[r];if(i!=null&&i.has(a)){a.f|=Gt;const s=document.createDocumentFragment();wl(a,s)}else Je(e[r],n)}}var eo;function Me(t,e,n,i,r,a=null){var s=t,o=new Map,c=(e&Ro)!==0;if(c){var u=t;s=u.appendChild(Mt())}var f=null,h=ua(()=>{var T=n();return cl(T)?T:T==null?[]:oa(T)}),d,p=new Map,m=!0;function _(T){k.effect.f&kt||(k.pending.delete(T),k.fallback=f,Sd(k,d,s,e,i),f!==null&&(d.length===0?f.f&Gt?(f.f^=Gt,Ui(f,null,s)):yl(f):Yn(f,()=>{f=null})))}function g(T){k.pending.delete(T)}var w=mn(()=>{d=l(h);for(var T=d.length,P=new Set,S=de,L=us(),R=0;R<T;R+=1){var j=d[R],W=i(j,R),F=m?null:o.get(W);F?(F.v&&cn(F.v,j),F.i&&cn(F.i,R),L&&S.unskip_effect(F.e)):(F=xd(o,m?s:eo??(eo=Mt()),j,W,R,r,e,n),m||(F.e.f|=Gt),o.set(W,F)),P.add(W)}if(T===0&&a&&!f&&(m?f=nt(()=>a(s)):(f=nt(()=>a(eo??(eo=Mt()))),f.f|=Gt)),T>P.size&&$c(),!m)if(p.set(S,P),L){for(const[B,I]of o)P.has(B)||S.skip_effect(I.e);S.oncommit(_),S.ondiscard(g)}else _(S);l(h)}),k={effect:w,items:o,pending:p,outrogroups:null,fallback:f};m=!1}function Bi(t){for(;t!==null&&!(t.f&jt);)t=t.next;return t}function Sd(t,e,n,i,r){var F,B,I,b,M,N,Y,O,q;var a=(i&du)!==0,s=e.length,o=t.items,c=Bi(t.effect.first),u,f=null,h,d=[],p=[],m,_,g,w;if(a)for(w=0;w<s;w+=1)m=e[w],_=r(m,w),g=o.get(_).e,g.f&Gt||((B=(F=g.nodes)==null?void 0:F.a)==null||B.measure(),(h??(h=new Set)).add(g));for(w=0;w<s;w+=1){if(m=e[w],_=r(m,w),g=o.get(_).e,t.outrogroups!==null)for(const Z of t.outrogroups)Z.pending.delete(g),Z.done.delete(g);if(g.f&it&&(yl(g),a&&((b=(I=g.nodes)==null?void 0:I.a)==null||b.unfix(),(h??(h=new Set)).delete(g))),g.f&Gt)if(g.f^=Gt,g===c)Ui(g,null,n);else{var k=f?f.next:c;g===t.effect.last&&(t.effect.last=g.prev),g.prev&&(g.prev.next=g.next),g.next&&(g.next.prev=g.prev),_n(t,f,g),_n(t,g,k),Ui(g,k,n),f=g,d=[],p=[],c=Bi(f.next);continue}if(g!==c){if(u!==void 0&&u.has(g)){if(d.length<p.length){var T=p[0],P;f=T.prev;var S=d[0],L=d[d.length-1];for(P=0;P<d.length;P+=1)Ui(d[P],T,n);for(P=0;P<p.length;P+=1)u.delete(p[P]);_n(t,S.prev,L.next),_n(t,f,S),_n(t,L,T),c=T,f=L,w-=1,d=[],p=[]}else u.delete(g),Ui(g,c,n),_n(t,g.prev,g.next),_n(t,g,f===null?t.effect.first:f.next),_n(t,f,g),f=g;continue}for(d=[],p=[];c!==null&&c!==g;)(u??(u=new Set)).add(c),p.push(c),c=Bi(c.next);if(c===null)continue}g.f&Gt||d.push(g),f=g,c=Bi(g.next)}if(t.outrogroups!==null){for(const Z of t.outrogroups)Z.pending.size===0&&(il(t,oa(Z.done)),(M=t.outrogroups)==null||M.delete(Z));t.outrogroups.size===0&&(t.outrogroups=null)}if(c!==null||u!==void 0){var R=[];if(u!==void 0)for(g of u)g.f&it||R.push(g);for(;c!==null;)!(c.f&it)&&c!==t.fallback&&R.push(c),c=Bi(c.next);var j=R.length;if(j>0){var W=i&Ro&&s===0?n:null;if(a){for(w=0;w<j;w+=1)(Y=(N=R[w].nodes)==null?void 0:N.a)==null||Y.measure();for(w=0;w<j;w+=1)(q=(O=R[w].nodes)==null?void 0:O.a)==null||q.fix()}kd(t,R,W)}}a&&Lt(()=>{var Z,G;if(h!==void 0)for(g of h)(G=(Z=g.nodes)==null?void 0:Z.a)==null||G.apply()})}function xd(t,e,n,i,r,a,s,o){var c=s&cu?s&fu?Xt(n):Xa(n,!1,!1):null,u=s&uu?Xt(r):null;return{v:c,i:u,e:nt(()=>(a(e,c??n,u??r,o),()=>{t.delete(i)}))}}function Ui(t,e,n){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end,a=e&&!(e.f&Gt)?e.nodes.start:n;i!==null;){var s=gr(i);if(a.before(i),i===r)return;i=s}}function _n(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Pd(t,e,n=!1,i=!1,r=!1,a=!1){var s=t,o="";if(n)var c=t;V(()=>{var u=_e;if(o!==(o=e()??"")){if(n){u.nodes=null,c.innerHTML=o,o!==""&&Dn(Zt(c),c.lastChild);return}if(u.nodes!==null&&(ms(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){var f=i?No:r?Su:void 0,h=da(i?"svg":r?"math":"template",f);h.innerHTML=o;var d=i||r?h:h.content;if(Dn(Zt(d),d.lastChild),i||r)for(;Zt(d);)s.before(Zt(d));else s.before(d)}}})}function Ve(t,e,...n){var i=new zi(t);mn(()=>{const r=e()??null;i.ensure(r,r&&(a=>r(a,...n)))},Qt)}function Ur(t,e,n){var i=new zi(t);mn(()=>{var r=e()??null;i.ensure(r,r&&(a=>n(a,r)))},Qt)}const Td=()=>performance.now(),sn={tick:t=>requestAnimationFrame(t),now:()=>Td(),tasks:new Set};function Cs(){const t=sn.now();sn.tasks.forEach(e=>{e.c(t)||(sn.tasks.delete(e),e.f())}),sn.tasks.size!==0&&sn.tick(Cs)}function Ed(t){let e;return sn.tasks.size===0&&sn.tick(Cs),{promise:new Promise(n=>{sn.tasks.add(e={c:t,f:n})}),abort(){sn.tasks.delete(e)}}}function Er(t,e){ni(()=>{t.dispatchEvent(new CustomEvent(e))})}function Id(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(n=>n[0].toUpperCase()+n.slice(1)).join("")}function to(t){const e={},n=t.split(";");for(const i of n){const[r,a]=i.split(":");if(!r||a===void 0)break;const s=Id(r.trim());e[s]=a.trim()}return e}const Ad=t=>t;let Ls=null;function no(t){Ls=t}function Cd(t,e,n){var i=Ls??_e,r=i.nodes,a,s,o,c=null;r.a??(r.a={element:t,measure(){a=this.element.getBoundingClientRect()},apply(){if(o==null||o.abort(),s=this.element.getBoundingClientRect(),a.left!==s.left||a.right!==s.right||a.top!==s.top||a.bottom!==s.bottom){const u=e()(this.element,{from:a,to:s},n==null?void 0:n());o=Gr(this.element,u,void 0,1,()=>{},()=>{o==null||o.abort(),o=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:h}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=h;var p=t.getBoundingClientRect();if(a.left!==p.left||a.top!==p.top){var m=`translate(${a.left-p.left}px, ${a.top-p.top}px)`;d.transform=d.transform?`${d.transform} ${m}`:m}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}}),r.a.element=t}function Ne(t,e,n,i){var T;var r=(t&_u)!==0,a=(t&yu)!==0,s=r&&a,o=(t&wu)!==0,c=s?"both":r?"in":"out",u,f=e.inert,h=e.style.overflow,d,p;function m(){return ni(()=>u??(u=n()(e,(i==null?void 0:i())??{},{direction:c})))}var _={is_global:o,in(){var P;if(e.inert=f,!r){p==null||p.abort(),(P=p==null?void 0:p.reset)==null||P.call(p);return}a||d==null||d.abort(),d=Gr(e,m(),p,1,()=>{Er(e,"introstart")},()=>{Er(e,"introend"),d==null||d.abort(),d=u=void 0,e.style.overflow=h})},out(P){if(!a){P==null||P(),u=void 0;return}e.inert=!0,p=Gr(e,m(),d,0,()=>{Er(e,"outrostart")},()=>{Er(e,"outroend"),P==null||P()})},stop:()=>{d==null||d.abort(),p==null||p.abort()}},g=_e;if(((T=g.nodes).t??(T.t=[])).push(_),r&&Wr){var w=o;if(!w){for(var k=g.parent;k&&k.f&Qt;)for(;(k=k.parent)&&!(k.f&wt););w=!k||(k.f&On)!==0}w&&ii(()=>{zt(()=>_.in())})}}function Gr(t,e,n,i,r,a){var s=i===1;if(ui(e)){var o,c=!1;return Lt(()=>{if(!c){var w=e({direction:s?"in":"out"});o=Gr(t,w,n,i,r,a)}}),{abort:()=>{c=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n==null||n.deactivate(),!(e!=null&&e.duration)&&!(e!=null&&e.delay))return r(),a(),{abort:vt,deactivate:vt,reset:vt,t:()=>i};const{delay:u=0,css:f,tick:h,easing:d=Ad}=e;var p=[];if(s&&n===void 0&&(h&&h(0,1),f)){var m=to(f(0,1));p.push(m,m)}var _=()=>1-i,g=t.animate(p,{duration:u,fill:"forwards"});return g.onfinish=()=>{g.cancel(),r();var w=(n==null?void 0:n.t())??1-i;n==null||n.abort();var k=i-w,T=e.duration*Math.abs(k),P=[];if(T>0){var S=!1;if(f)for(var L=Math.ceil(T/16.666666666666668),R=0;R<=L;R+=1){var j=w+k*d(R/L),W=to(f(j,1-j));P.push(W),S||(S=W.overflow==="hidden")}S&&(t.style.overflow="hidden"),_=()=>{var F=g.currentTime;return w+k*d(F/T)},h&&Ed(()=>{if(g.playState!=="running")return!1;var F=_();return h(F,1-F),!0})}g=t.animate(P,{duration:T,fill:"forwards"}),g.onfinish=()=>{_=()=>i,h==null||h(i,1-i),a()}},{abort:()=>{g&&(g.cancel(),g.effect=null,g.onfinish=vt)},deactivate:()=>{a=vt},reset:()=>{i===0&&(h==null||h(1,0))},t:()=>_()}}function Ms(t,e,n,i,r,a){var s=null,o=t,c=_e,u=new zi(o,!1);mn(()=>{const f=e()||null;var h=f==="svg"?No:void 0;if(f===null){u.ensure(null,null),Pr(!0);return}return u.ensure(f,d=>{if(f){if(s=da(f,h),Dn(s,s),i){var p=s.appendChild(Mt());no(c),i(s,p),no(null)}_e.nodes.end=s,d.before(s)}}),Pr(!0),()=>{f&&Pr(!1)}},Qt),mr(()=>{Pr(!0)})}function Ld(t,e){var n;n=document.head.appendChild(Mt());try{mn(()=>{var i=nt(()=>e(n));i.f|=Mo})}finally{}}function Rt(t,e,n){ii(()=>{var i=zt(()=>e(t,n==null?void 0:n())||{});if(n&&(i!=null&&i.update)){var r=!1,a={};pr(()=>{var s=n();Es(s),r&&Fo(a,s)&&(a=s,i.update(s))}),r=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function Zr(t,e){var n=void 0,i;hs(()=>{n!==(n=e())&&(i&&(Je(i),i=null),n&&(i=nt(()=>{ii(()=>n(t))})))})}function Ds(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=Ds(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Md(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=Ds(t))&&(i&&(i+=" "),i+=e);return i}function Dd(t){return typeof t=="object"?Md(t):t??""}const io=[...`
3
- \r\f \v\uFEFF`];function jd(t,e,n){var i=t==null?"":""+t;if(e&&(i=i?i+" "+e:e),n){for(var r of Object.keys(n))if(n[r])i=i?i+" "+r:r;else if(i.length)for(var a=r.length,s=0;(s=i.indexOf(r,s))>=0;){var o=s+a;(s===0||io.includes(i[s-1]))&&(o===i.length||io.includes(i[o]))?i=(s===0?"":i.substring(0,s))+i.substring(o+1):s=o}}return i===""?null:i}function ro(t,e=!1){var n=e?" !important;":";",i="";for(var r of Object.keys(t)){var a=t[r];a!=null&&a!==""&&(i+=" "+r+": "+a+n)}return i}function Ta(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Rd(t,e){if(e){var n="",i,r;if(Array.isArray(e)?(i=e[0],r=e[1]):i=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,o=!1,c=[];i&&c.push(...Object.keys(i).map(Ta)),r&&c.push(...Object.keys(r).map(Ta));var u=0,f=-1;const _=t.length;for(var h=0;h<_;h++){var d=t[h];if(o?d==="/"&&t[h-1]==="*"&&(o=!1):a?a===d&&(a=!1):d==="/"&&t[h+1]==="*"?o=!0:d==='"'||d==="'"?a=d:d==="("?s++:d===")"&&s--,!o&&a===!1&&s===0){if(d===":"&&f===-1)f=h;else if(d===";"||h===_-1){if(f!==-1){var p=Ta(t.substring(u,f).trim());if(!c.includes(p)){d!==";"&&h++;var m=t.substring(u,h).trim();n+=" "+m+";"}}u=h+1,f=-1}}}}return i&&(n+=ro(i)),r&&(n+=ro(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function pe(t,e,n,i,r,a){var s=t[Va];if(s!==n||s===void 0){var o=jd(n,i,a);o==null?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o),t[Va]=n}else if(a&&r!==a)for(var c in a){var u=!!a[c];(r==null||u!==!!r[c])&&t.classList.toggle(c,u)}return a}function Ea(t,e={},n,i){for(var r in n){var a=n[r];e[r]!==a&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,i))}}function Ue(t,e,n,i){var r=t[Wa];if(r!==e){var a=Rd(e,i);a==null?t.removeAttribute("style"):t.style.cssText=a,t[Wa]=e}else i&&(Array.isArray(i)?(Ea(t,n==null?void 0:n[0],i[0]),Ea(t,n==null?void 0:n[1],i[1],"important")):Ea(t,n,i));return i}function rl(t,e,n=!1){if(t.multiple){if(e==null)return;if(!cl(e))return Tu();for(var i of t.options)i.selected=e.includes(ao(i));return}for(i of t.options){var r=ao(i);if(Gu(r,e)){i.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Od(t){var e=new MutationObserver(()=>{rl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),mr(()=>{e.disconnect()})}function ao(t){return"__value"in t?t.__value:t.value}const fi=Symbol("class"),vi=Symbol("style"),js=Symbol("is custom element"),Rs=Symbol("is html"),Nd=ca?"option":"OPTION",zd=ca?"select":"SELECT",Fd=ca?"progress":"PROGRESS";function qd(t,e){var n=kl(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==Fd)||(t.value=e??"")}function Os(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ae(t,e,n,i){var r=kl(t);r[e]!==(r[e]=n)&&(e==="loading"&&(t[Jc]=n),n==null?t.removeAttribute(e):typeof n!="string"&&zs(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Hd(t,e,n,i,r=!1,a=!1){var s=kl(t),o=s[js],c=!s[Rs],u=e||{},f=t.nodeName===Nd;for(var h in e)h in n||(n[h]=null);n.class?n.class=Dd(n.class):(i||n[fi])&&(n.class=null),n[vi]&&(n.style??(n.style=null));var d=zs(t);for(const P in n){let S=n[P];if(f&&P==="value"&&S==null){t.value=t.__value="",u[P]=S;continue}if(P==="class"){var p=t.namespaceURI==="http://www.w3.org/1999/xhtml";pe(t,p,S,i,e==null?void 0:e[fi],n[fi]),u[P]=S,u[fi]=n[fi];continue}if(P==="style"){Ue(t,S,e==null?void 0:e[vi],n[vi]),u[P]=S,u[vi]=n[vi];continue}var m=u[P];if(!(S===m&&!(S===void 0&&t.hasAttribute(P)))){u[P]=S;var _=P[0]+P[1];if(_!=="$$")if(_==="on"){const L={},R="$$"+P;let j=P.slice(2);var g=od(j);if(ad(j)&&(j=j.slice(0,-7),L.capture=!0),!g&&m){if(S!=null)continue;t.removeEventListener(j,u[R],L),u[R]=null}if(g)re(j,t,S),me([j]);else if(S!=null){let W=function(F){u[P].call(this,F)};var T=W;u[R]=bl(j,t,W,L)}}else if(P==="style")ae(t,P,S);else if(P==="autofocus")Yu(t,!!S);else if(!o&&(P==="__value"||P==="value"&&S!=null))t.value=t.__value=S;else if(P==="selected"&&f)Os(t,S);else{var w=P;c||(w=cd(w));var k=w==="defaultValue"||w==="defaultChecked";if(S==null&&!o&&!k)if(s[P]=null,w==="value"||w==="checked"){let L=t;const R=e===void 0;if(w==="value"){let j=L.defaultValue;L.removeAttribute(w),L.defaultValue=j,L.value=L.__value=R?j:null}else{let j=L.defaultChecked;L.removeAttribute(w),L.defaultChecked=j,L.checked=R?j:!1}}else t.removeAttribute(P);else k||d.includes(w)&&(o||typeof S!="string")?(t[w]=S,w in s&&(s[w]=Be)):typeof S!="function"&&ae(t,w,S)}}}return u}function Ns(t,e,n=[],i=[],r=[],a,s=!1,o=!1){es(r,n,i,c=>{var u=void 0,f={},h=t.nodeName===zd,d=!1;if(hs(()=>{var m=e(...c.map(l)),_=Hd(t,u,m,a,s,o);d&&h&&"value"in m&&rl(t,m.value);for(let w of Object.getOwnPropertySymbols(f))m[w]||Je(f[w]);for(let w of Object.getOwnPropertySymbols(m)){var g=m[w];w.description===xu&&(!u||g!==u[w])&&(f[w]&&Je(f[w]),f[w]=nt(()=>Zr(t,()=>g))),_[w]=g}u=_}),h){var p=t;ii(()=>{rl(p,u.value,!0),Od(p)})}d=!0})}function kl(t){return t[Ir]??(t[Ir]={[js]:t.nodeName.includes("-"),[Rs]:t.namespaceURI===Oo})}var lo=new Map;function zs(t){var e=t.getAttribute("is")||t.nodeName,n=lo.get(e);if(n)return n;lo.set(e,n=[]);for(var i,r=t,a=Element.prototype;a!==r;){i=Co(r);for(var s in i)i[s].set&&s!=="innerHTML"&&s!=="textContent"&&s!=="innerText"&&n.push(s);r=ul(r)}return n}function Mi(t,e,n=e){var i=new WeakSet;ds(t,"input",async r=>{var a=r?t.defaultValue:t.value;if(a=Ia(t)?Aa(a):a,n(a),de!==null&&i.add(de),await er(),a!==(a=e())){var s=t.selectionStart,o=t.selectionEnd,c=t.value.length;if(t.value=a??"",o!==null){var u=t.value.length;s===o&&o===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=s,t.selectionEnd=Math.min(o,u))}}}),zt(e)==null&&t.value&&(n(Ia(t)?Aa(t.value):t.value),de!==null&&i.add(de)),pr(()=>{var r=e();if(t===document.activeElement){var a=de;if(i.has(a))return}Ia(t)&&r===Aa(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function Bd(t,e,n=e){ds(t,"change",i=>{var r=i?t.defaultChecked:t.checked;n(r)}),zt(e)==null&&n(t.checked),pr(()=>{var i=e();t.checked=!!i})}function Ia(t){var e=t.type;return e==="number"||e==="range"}function Aa(t){return t===""?null:+t}var kn,Pi,ur,ia,Fs;const ra=class ra{constructor(e){oe(this,ia);oe(this,kn,new WeakMap);oe(this,Pi);oe(this,ur);fe(this,ur,e)}observe(e,n){var i=E(this,kn).get(e)||new Set;return i.add(n),E(this,kn).set(e,i),xe(this,ia,Fs).call(this).observe(e,E(this,ur)),()=>{var r=E(this,kn).get(e);r.delete(n),r.size===0&&(E(this,kn).delete(e),E(this,Pi).unobserve(e))}}};kn=new WeakMap,Pi=new WeakMap,ur=new WeakMap,ia=new WeakSet,Fs=function(){return E(this,Pi)??fe(this,Pi,new ResizeObserver(e=>{for(var n of e){ra.entries.set(n.target,n);for(var i of E(this,kn).get(n.target)||[])i(n)}}))},et(ra,"entries",new WeakMap);let al=ra;var Vd=new al({box:"border-box"});function ht(t,e,n){var i=Vd.observe(t,()=>n(t[e]));ii(()=>(zt(()=>n(t[e])),i))}function Ca(t,e){return t===e||(t==null?void 0:t[Yt])===e}function qe(t={},e,n,i){var r=Ae.r,a=_e;return ii(()=>{var s,o;return pr(()=>{s=o,o=[],zt(()=>{Ca(n(...o),t)||(e(t,...o),s&&Ca(n(...s),t)&&e(null,...s))})}),()=>{let c=a;for(;c!==r&&c.parent!==null&&c.parent.f&Ba;)c=c.parent;const u=()=>{o&&Ca(n(...o),t)&&e(null,...o)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Di(t,e){Qu(window,["resize"],()=>ni(()=>e(window[t])))}function Sl(t=!1){const e=Ae,n=e.l.u;if(!n)return;let i=()=>Es(e.s);if(t){let r=0,a={};const s=Ci(()=>{let o=!1;const c=e.s;for(const u in c)c[u]!==a[u]&&(a[u]=c[u],o=!0);return o&&r++,r});i=()=>l(s)}n.b.length&&$u(()=>{oo(e,i),Fa(n.b)}),He(()=>{const r=zt(()=>n.m.map(Yc));return()=>{for(const a of r)typeof a=="function"&&a()}}),n.a.length&&He(()=>{oo(e,i),Fa(n.a)})}function oo(t,e){if(t.l.s)for(const n of t.l.s)l(n);e()}const Wd={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 Fi(t,e,n){return new Proxy({props:t,exclude:e},Wd)}const Ud={get(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(ui(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(t,e,n){let i=t.props.length;for(;i--;){let r=t.props[i];ui(r)&&(r=r());const a=En(r,e);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(ui(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const r=En(i,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Yt||e===jo)return!1;for(let n of t.props)if(ui(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(ui(n)&&(n=n()),!!n){for(const i in n)e.includes(i)||e.push(i);for(const i of Object.getOwnPropertySymbols(n))e.includes(i)||e.push(i)}return e}};function jn(...t){return new Proxy({props:t},Ud)}function D(t,e,n,i){var P;var r=!Ni||(n&hu)!==0,a=(n&mu)!==0,s=(n&pu)!==0,o=i,c=!0,u=void 0,f=()=>s&&r?(u??(u=Ci(i)),l(u)):(c&&(c=!1,o=s?zt(i):i),o);let h;if(a){var d=Yt in t||jo in t;h=((P=En(t,e))==null?void 0:P.set)??(d&&e in t?S=>t[e]=S:void 0)}var p,m=!1;a?[p,m]=Mu(()=>t[e]):p=t[e],p===void 0&&i!==void 0&&(p=f(),h&&(r&&ru(),h(p)));var _;if(r?_=()=>{var S=t[e];return S===void 0?f():(c=!0,S)}:_=()=>{var S=t[e];return S!==void 0&&(o=void 0),S===void 0?o:S},r&&!(n&gu))return _;if(h){var g=t.$$legacy;return function(S,L){return arguments.length>0?((!r||!L||g||m)&&h(L?_():S),S):_()}}var w=!1,k=(n&vu?Ci:ua)(()=>(w=!1,_()));a&&l(k);var T=_e;return function(S,L){if(arguments.length>0){const R=L?l(k):r&&a?Ee(S):S;return z(k,R),w=!0,o!==void 0&&(o=R),S}return fn&&w||T.f&kt?k.v:l(k)}}function at(t){Ae===null&&fl(),Ni&&Ae.l!==null?Gd(Ae).m.push(t):He(()=>{const e=zt(t);if(typeof e=="function")return e})}function wr(t){Ae===null&&fl(),at(()=>()=>zt(t))}function Gd(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Zd="5";var Ao;typeof window<"u"&&((Ao=window.__svelte??(window.__svelte={})).v??(Ao.v=new Set)).add(Zd);function Nn(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const qs="https://www.playpilot.com",Kd="https://partner-api.playpilot.tech/1.0",Yd="https://img-external.playpilot.tech",Jd="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.39.0",Qd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Rn=600,La={};async function en(t,{headers:e={},method:n="GET",body:i=null,baseUrl:r=Kd}={}){const a=!fa()&&n==="GET";if(a&&t in La)return La[t];const s=n==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(r+t,{method:n,headers:new Headers({...s,...e}),body:i?JSON.stringify(i):null});if(!(o!=null&&o.ok))throw o;const c=await o.text();let u=c;try{c&&(u=JSON.parse(c))}catch{}return a&&(La[t]=u),u}const Hs="EncryptedToken",Bs="articleReplacementEditToken",Xd="playpilot-editorial-mode";async function Vs({href:t=window.location.href,throwError:e=!1}={}){try{const n=Nn();if(!n)throw new Error("No token was provided");const i=Ws(t);if(!i)throw new Error("Could not be authenticated");return await en(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),$d(i),!0}catch(n){if(console.error(n),e)throw n}finally{ef()}return!1}function Ws(t=""){var i,r;const e=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(e)return e;if(t){const a=new URL(t).searchParams.get(Bs);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${Hs}=`).pop())==null?void 0:r.split(";")[0])||""}function $d(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=Hs+"="+t+";"+i+";path=/"}function fa(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Xd)==="true"||!!t}function ef(){const t=new URL(window.location.href);t.searchParams.delete(Bs),window.history.replaceState({},"",t)}function tf(t){let e=0;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);e=e*31+i>>>0}return e.toString(16)}function va(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<t;)n+=e[Math.floor(Math.random()*e.length)];return n}const v={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function br(){var i,r;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.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 n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(n){if(e.includes(n))return n;const a=e.find(s=>s.toLowerCase().startsWith(n+"-"));if(a)return a}return v.English}function Us(t,e=""){const n=[],i=[t];for(;i.length>0;){const r=i.pop();if(n.includes(r)||e&&r.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1|H2|H3|H4|H5)$/.test(r.tagName)||r.offsetWidth<=1)continue;const a=Array.from(r.childNodes).some(c=>{var u;return c.nodeType===Node.TEXT_NODE&&((u=c.nodeValue)==null?void 0:u.trim())!==""});if(a&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const s=r.tagName==="P"&&!!r.textContent;if(a||s){n.push(r);continue}const o=Array.from(r.children);for(let c=o.length-1;c>=0;c--)i.push(o[c])}return n}function xl(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const n=t.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function Gs(t){return t.map(e=>e.innerText).join(`
2
+ var Bc=Object.defineProperty;var Wl=t=>{throw TypeError(t)};var Vc=(t,e,n)=>e in t?Bc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var et=(t,e,n)=>Vc(t,typeof e!="symbol"?e+"":e,n),ka=(t,e,n)=>e.has(t)||Wl("Cannot "+n);var E=(t,e,n)=>(ka(t,e,"read from private field"),n?n.call(t):e.get(t)),oe=(t,e,n)=>e.has(t)?Wl("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),fe=(t,e,n,i)=>(ka(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),xe=(t,e,n)=>(ka(t,e,"access private method"),n);var cl=Array.isArray,Wc=Array.prototype.indexOf,Ei=Array.prototype.includes,oa=Array.from,Uc=Object.defineProperty,En=Object.getOwnPropertyDescriptor,Co=Object.getOwnPropertyDescriptors,Gc=Object.prototype,Zc=Array.prototype,ul=Object.getPrototypeOf,Ul=Object.isExtensible;function ui(t){return typeof t=="function"}const vt=()=>{};function Kc(t){return typeof(t==null?void 0:t.then)=="function"}function Yc(t){return t()}function qa(t){for(var e=0;e<t.length;e++)t[e]()}function Lo(){var t,e,n=new Promise((i,r)=>{t=i,e=r});return{promise:n,resolve:t,reject:e}}function Fa(t,e,n=!1){return t===void 0?n?e():e:t}function Xn(t,e){if(Array.isArray(t))return t;if(e===void 0||!(Symbol.iterator in t))return Array.from(t);const n=[];for(const i of t)if(n.push(i),n.length===e)break;return n}const Qe=2,Ii=4,vr=8,dl=1<<24,wt=16,jt=32,Ln=64,Ha=128,bt=512,We=1024,Ye=2048,Jt=4096,it=8192,kt=16384,On=32768,Ba=1<<25,Qt=65536,Hr=1<<17,Mo=1<<18,Oi=1<<19,Do=1<<20,Gt=1<<25,$n=65536,Br=1<<21,gi=1<<22,In=1<<23,Yt=Symbol("$state"),jo=Symbol("legacy props"),Jc=Symbol(""),Ir=Symbol("attributes"),Va=Symbol("class"),Wa=Symbol("style"),Vi=Symbol("text"),Ar=Symbol("form reset"),sa=new class extends Error{constructor(){super(...arguments);et(this,"name","StaleReactionError");et(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Eo;const ca=!!((Eo=globalThis.document)!=null&&Eo.contentType)&&globalThis.document.contentType.includes("xml"),Qc=11;function fl(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Xc(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function $c(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function eu(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function tu(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function nu(t){throw new Error("https://svelte.dev/e/effect_orphan")}function iu(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ru(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function au(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function lu(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ou(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function su(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const cu=1,uu=2,Ro=4,du=8,fu=16,vu=1,hu=2,gu=4,mu=8,pu=16,_u=1,yu=2,wu=4,bu=1,ku=2,Be=Symbol(),Oo="http://www.w3.org/1999/xhtml",No="http://www.w3.org/2000/svg",Su="http://www.w3.org/1998/Math/MathML",xu="@attach";function Pu(){console.warn("https://svelte.dev/e/derived_inert")}function Tu(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Eu(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function zo(t){return t===this.v}function qo(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Fo(t){return!qo(t,this.v)}let Ni=!1;function Iu(){Ni=!0}let Ae=null;function Ai(t){Ae=t}function Qi(t){return Ho().get(t)}function hr(t,e){return Ho().set(t,e),e}function ne(t,e=!1,n){Ae={p:Ae,i:!1,c:null,e:null,s:t,x:null,r:_e,l:Ni&&!e?{s:null,u:null,$:[]}:null}}function ie(t){var e=Ae,n=e.e;if(n!==null){e.e=null;for(var i of n)vs(i)}return t!==void 0&&(e.x=t),e.i=!0,Ae=e.p,t??{}}function ti(){return!Ni||Ae!==null&&Ae.l===null}function Ho(t){return Ae===null&&fl(),Ae.c??(Ae.c=new Map(Au(Ae)||void 0))}function Au(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}let Fn=[];function Bo(){var t=Fn;Fn=[],qa(t)}function Lt(t){if(Fn.length===0&&!mi){var e=Fn;queueMicrotask(()=>{e===Fn&&Bo()})}Fn.push(t)}function Cu(){for(;Fn.length>0;)Bo()}function Vo(t){var e=_e;if(e===null)return Pe.f|=In,t;if(!(e.f&On)&&!(e.f&Ii))throw t;xn(t,e)}function xn(t,e){for(;e!==null;){if(e.f&Ha){if(!(e.f&On))throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}const Lu=-7169;function ze(t,e){t.f=t.f&Lu|e}function vl(t){t.f&bt||t.deps===null?ze(t,We):ze(t,Jt)}function Wo(t){if(t!==null)for(const e of t)!(e.f&Qe)||!(e.f&$n)||(e.f^=$n,Wo(e.deps))}function Uo(t,e,n){t.f&Ye?e.add(t):t.f&Jt&&n.add(t),Wo(t.deps),ze(t,We)}let Sr=!1;function Mu(t){var e=Sr;try{return Sr=!1,[t(),Sr]}finally{Sr=e}}let Sa=null,ci=null,de=null,Gi=null,Ke=null,Ua=null,mi=!1,xa=!1,hi=null,Cr=null;var Gl=0;let Du=1;var _i,yn,Vn,yi,wi,Wn,bi,an,rr,ut,ar,wn,Bt,Vt,ki,Si,Te,Ga,Wi,Za,Go,Zo,Lr,ju,Ka,di;const ea=class ea{constructor(){oe(this,Te);et(this,"id",Du++);oe(this,_i,!1);et(this,"linked",!0);oe(this,yn,null);oe(this,Vn,null);et(this,"async_deriveds",new Map);et(this,"current",new Map);et(this,"previous",new Map);et(this,"unblocked",new Set);oe(this,yi,new Set);oe(this,wi,new Set);oe(this,Wn,new Set);oe(this,bi,0);oe(this,an,new Map);oe(this,rr,null);oe(this,ut,[]);oe(this,ar,[]);oe(this,wn,new Set);oe(this,Bt,new Set);oe(this,Vt,new Map);oe(this,ki,new Set);et(this,"is_fork",!1);oe(this,Si,!1)}skip_effect(e){E(this,Vt).has(e)||E(this,Vt).set(e,{d:[],m:[]}),E(this,ki).delete(e)}unskip_effect(e,n=i=>this.schedule(i)){var i=E(this,Vt).get(e);if(i){E(this,Vt).delete(e);for(var r of i.d)ze(r,Ye),n(r);for(r of i.m)ze(r,Jt),n(r)}E(this,ki).add(e)}capture(e,n,i=!1){e.v!==Be&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&In||(this.current.set(e,[n,i]),Ke==null||Ke.set(e,n)),this.is_fork||(e.v=n)}activate(){de=this}deactivate(){de=null,Ke=null}flush(){try{xa=!0,de=this,xe(this,Te,Wi).call(this)}finally{Gl=0,Ua=null,hi=null,Cr=null,xa=!1,de=null,Ke=null,Kn.clear()}}discard(){for(const e of E(this,wi))e(this);E(this,wi).clear(),E(this,Wn).clear(),xe(this,Te,di).call(this)}register_created_effect(e){E(this,ar).push(e)}increment(e,n){if(fe(this,bi,E(this,bi)+1),e){let i=E(this,an).get(n)??0;E(this,an).set(n,i+1)}}decrement(e,n){if(fe(this,bi,E(this,bi)-1),e){let i=E(this,an).get(n)??0;i===1?E(this,an).delete(n):E(this,an).set(n,i-1)}E(this,Si)||(fe(this,Si,!0),Lt(()=>{fe(this,Si,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const i of e)E(this,wn).add(i);for(const i of n)E(this,Bt).add(i);e.clear(),n.clear()}oncommit(e){E(this,yi).add(e)}ondiscard(e){E(this,wi).add(e)}on_fork_commit(e){E(this,Wn).add(e)}run_fork_commit_callbacks(){for(const e of E(this,Wn))e(this);E(this,Wn).clear()}settled(){return(E(this,rr)??fe(this,rr,Lo())).promise}static ensure(){var e;if(de===null){const n=de=new ea;xe(e=n,Te,Ka).call(e),!xa&&!mi&&Lt(()=>{E(n,_i)||n.flush()})}return de}apply(){{Ke=null;return}}schedule(e){var r;if(Ua=e,(r=e.b)!=null&&r.is_pending&&e.f&(Ii|vr|dl)&&!(e.f&On)){e.b.defer_effect(e);return}for(var n=e;n.parent!==null;){n=n.parent;var i=n.f;if(hi!==null&&n===_e&&(Pe===null||!(Pe.f&Qe)))return;if(i&(Ln|jt)){if(!(i&We))return;n.f^=We}}E(this,ut).push(n)}};_i=new WeakMap,yn=new WeakMap,Vn=new WeakMap,yi=new WeakMap,wi=new WeakMap,Wn=new WeakMap,bi=new WeakMap,an=new WeakMap,rr=new WeakMap,ut=new WeakMap,ar=new WeakMap,wn=new WeakMap,Bt=new WeakMap,Vt=new WeakMap,ki=new WeakMap,Si=new WeakMap,Te=new WeakSet,Ga=function(){if(this.is_fork)return!0;for(const i of E(this,an).keys()){for(var e=i,n=!1;e.parent!==null;){if(E(this,Vt).has(e)){n=!0;break}e=e.parent}if(!n)return!0}return!1},Wi=function(){var c,u,f,h;if(fe(this,_i,!0),Gl++>1e3&&(xe(this,Te,di).call(this),Ru()),!xe(this,Te,Ga).call(this)){for(const d of E(this,wn))E(this,Bt).delete(d),ze(d,Ye),this.schedule(d);for(const d of E(this,Bt))ze(d,Jt),this.schedule(d)}const e=E(this,ut);fe(this,ut,[]),this.apply();var n=hi=[],i=[],r=Cr=[];for(const d of e)try{xe(this,Te,Za).call(this,d,n,i)}catch(g){throw Qo(d),g}if(de=null,r.length>0){var a=ea.ensure();for(const d of r)a.schedule(d)}if(hi=null,Cr=null,xe(this,Te,Ga).call(this)){xe(this,Te,Lr).call(this,i),xe(this,Te,Lr).call(this,n);for(const[d,g]of E(this,Vt))Jo(d,g);r.length>0&&xe(c=de,Te,Wi).call(c);return}const s=xe(this,Te,Go).call(this);if(s){xe(u=s,Te,Zo).call(u,this);return}E(this,wn).clear(),E(this,Bt).clear();for(const d of E(this,yi))d(this);E(this,yi).clear(),Gi=this,Zl(i),Zl(n),Gi=null,(f=E(this,rr))==null||f.resolve();var o=de;if(this.linked&&E(this,bi)===0&&xe(this,Te,di).call(this),E(this,ut).length>0){o===null&&(o=this,xe(this,Te,Ka).call(this));const d=o;E(d,ut).push(...E(this,ut).filter(g=>!E(d,ut).includes(g)))}o!==null&&xe(h=o,Te,Wi).call(h)},Za=function(e,n,i){e.f^=We;for(var r=e.first;r!==null;){var a=r.f,s=(a&(jt|Ln))!==0,o=s&&(a&We)!==0,c=o||(a&it)!==0||E(this,Vt).has(r);if(!c&&r.fn!==null){s?r.f^=We:a&Ii?n.push(r):_r(r)&&(a&wt&&E(this,Bt).add(r),Li(r));var u=r.first;if(u!==null){r=u;continue}}for(;r!==null;){var f=r.next;if(f!==null){r=f;break}r=r.parent}}},Go=function(){for(var e=E(this,yn);e!==null;){if(!e.is_fork){for(const[n,[,i]]of this.current)if(e.current.has(n)&&!i)return e}e=E(e,yn)}return null},Zo=function(e){var i;for(const[r,a]of e.current)!this.previous.has(r)&&e.previous.has(r)&&this.previous.set(r,e.previous.get(r)),this.current.set(r,a);for(const[r,a]of e.async_deriveds){const s=this.async_deriveds.get(r);s&&a.promise.then(s.resolve)}const n=r=>{var a=r.reactions;if(a!==null)for(const c of a){var s=c.f;if(s&Qe)n(c);else{var o=c;s&(gi|wt)&&!this.async_deriveds.has(o)&&(E(this,Bt).delete(o),ze(o,Ye),this.schedule(o))}}};for(const r of this.current.keys())n(r);this.oncommit(()=>e.discard()),xe(i=e,Te,di).call(i),de=this,xe(this,Te,Wi).call(this)},Lr=function(e){for(var n=0;n<e.length;n+=1)Uo(e[n],E(this,wn),E(this,Bt))},ju=function(){var f;xe(this,Te,di).call(this);for(let h=Sa;h!==null;h=E(h,Vn)){var e=h.id<this.id,n=[];for(const[d,[g,_]]of this.current){if(h.current.has(d)){var i=h.current.get(d)[0];if(e&&g!==i)h.current.set(d,[g,_]);else continue}n.push(d)}if(e)for(const[d,g]of this.async_deriveds){const _=h.async_deriveds.get(d);_&&g.promise.then(_.resolve)}if(E(h,_i)){var r=[...h.current.keys()].filter(d=>!this.current.has(d));if(r.length===0)e&&h.discard();else if(n.length>0){if(e)for(const d of E(this,ki))h.unskip_effect(d,g=>{var _;g.f&(wt|gi)?h.schedule(g):xe(_=h,Te,Lr).call(_,[g])});h.activate();var a=new Set,s=new Map;for(var o of n)Yo(o,r,a,s);s=new Map;var c=[...h.current.keys()].filter(d=>this.current.has(d)?this.current.get(d)[0]!==d.v:!0);if(c.length>0)for(const d of E(this,ar))!(d.f&(kt|it|Hr))&&hl(d,c,s)&&(d.f&(gi|wt)?(ze(d,Ye),h.schedule(d)):E(h,wn).add(d));if(E(h,ut).length>0){h.apply();for(var u of E(h,ut))xe(f=h,Te,Za).call(f,u,[],[]);fe(h,ut,[])}h.deactivate()}}}},Ka=function(){ci===null?Sa=ci=this:(fe(ci,Vn,this),fe(this,yn,ci)),ci=this},di=function(){var e=E(this,yn),n=E(this,Vn);e===null?Sa=n:fe(e,Vn,n),n===null?ci=e:fe(n,yn,e),this.linked=!1};let Mn=ea;function Ko(t){var e=mi;mi=!0;try{for(var n;;){if(Cu(),de===null)return n;de.flush()}}finally{mi=e}}function Ru(){try{iu()}catch(t){xn(t,Ua)}}let Tt=null;function Zl(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var i=t[n++];if(!(i.f&(kt|it))&&_r(i)&&(Tt=new Set,Li(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&ps(i),(Tt==null?void 0:Tt.size)>0)){Kn.clear();for(const r of Tt){if(r.f&(kt|it))continue;const a=[r];let s=r.parent;for(;s!==null;)Tt.has(s)&&(Tt.delete(s),a.push(s)),s=s.parent;for(let o=a.length-1;o>=0;o--){const c=a[o];c.f&(kt|it)||Li(c)}}Tt.clear()}}Tt=null}}function Yo(t,e,n,i){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const r of t.reactions){const a=r.f;a&Qe?Yo(r,e,n,i):a&(gi|wt)&&!(a&Ye)&&hl(r,e,i)&&(ze(r,Ye),gl(r))}}function hl(t,e,n){const i=n.get(t);if(i!==void 0)return i;if(t.deps!==null)for(const r of t.deps){if(Ei.call(e,r))return!0;if(r.f&Qe&&hl(r,e,n))return n.set(r,!0),!0}return n.set(t,!1),!1}function gl(t){de.schedule(t)}function Jo(t,e){if(!(t.f&jt&&t.f&We)){t.f&Ye?e.d.push(t):t.f&Jt&&e.m.push(t),ze(t,We);for(var n=t.first;n!==null;)Jo(n,e),n=n.next}}function Qo(t){ze(t,We);for(var e=t.first;e!==null;)Qo(e),e=e.next}function Xo(t){let e=0,n=Xt(0),i;return()=>{pl()&&(l(n),pr(()=>(e===0&&(i=zt(()=>t(()=>An(n)))),e+=1,()=>{Lt(()=>{e-=1,e===0&&(i==null||i(),i=void 0,An(n))})})))}}var Ou=Qt|Oi;function $o(t,e,n,i){new Nu(t,e,n,i)}var pt,sl,_t,Un,ot,yt,tt,dt,ln,Gn,bn,xi,lr,or,on,ta,qe,zu,qu,Fu,Ya,Mr,Dr,Ja,Qa;class Nu{constructor(e,n,i,r){oe(this,qe);et(this,"parent");et(this,"is_pending",!1);et(this,"transform_error");oe(this,pt);oe(this,sl,null);oe(this,_t);oe(this,Un);oe(this,ot);oe(this,yt,null);oe(this,tt,null);oe(this,dt,null);oe(this,ln,null);oe(this,Gn,0);oe(this,bn,0);oe(this,xi,!1);oe(this,lr,new Set);oe(this,or,new Set);oe(this,on,null);oe(this,ta,Xo(()=>(fe(this,on,Xt(E(this,Gn))),()=>{fe(this,on,null)})));var a;fe(this,pt,e),fe(this,_t,n),fe(this,Un,s=>{var o=_e;o.b=this,o.f|=Ha,i(s)}),this.parent=_e.b,this.transform_error=r??((a=this.parent)==null?void 0:a.transform_error)??(s=>s),fe(this,ot,mn(()=>{xe(this,qe,Ya).call(this)},Ou))}defer_effect(e){Uo(e,E(this,lr),E(this,or))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!E(this,_t).pending}update_pending_count(e,n){xe(this,qe,Ja).call(this,e,n),fe(this,Gn,E(this,Gn)+e),!(!E(this,on)||E(this,xi))&&(fe(this,xi,!0),Lt(()=>{fe(this,xi,!1),E(this,on)&&cn(E(this,on),E(this,Gn))}))}get_effect_pending(){return E(this,ta).call(this),l(E(this,on))}error(e){if(!E(this,_t).onerror&&!E(this,_t).failed)throw e;de!=null&&de.is_fork?(E(this,yt)&&de.skip_effect(E(this,yt)),E(this,tt)&&de.skip_effect(E(this,tt)),E(this,dt)&&de.skip_effect(E(this,dt)),de.on_fork_commit(()=>{xe(this,qe,Qa).call(this,e)})):xe(this,qe,Qa).call(this,e)}}pt=new WeakMap,sl=new WeakMap,_t=new WeakMap,Un=new WeakMap,ot=new WeakMap,yt=new WeakMap,tt=new WeakMap,dt=new WeakMap,ln=new WeakMap,Gn=new WeakMap,bn=new WeakMap,xi=new WeakMap,lr=new WeakMap,or=new WeakMap,on=new WeakMap,ta=new WeakMap,qe=new WeakSet,zu=function(){try{fe(this,yt,nt(()=>E(this,Un).call(this,E(this,pt))))}catch(e){this.error(e)}},qu=function(e){const n=E(this,_t).failed;n&&fe(this,dt,nt(()=>{n(E(this,pt),()=>e,()=>()=>{})}))},Fu=function(){const e=E(this,_t).pending;e&&(this.is_pending=!0,fe(this,tt,nt(()=>e(E(this,pt)))),Lt(()=>{var n=fe(this,ln,document.createDocumentFragment()),i=Mt();n.append(i),fe(this,yt,xe(this,qe,Dr).call(this,()=>nt(()=>E(this,Un).call(this,i)))),E(this,bn)===0&&(E(this,pt).before(n),fe(this,ln,null),Yn(E(this,tt),()=>{fe(this,tt,null)}),xe(this,qe,Mr).call(this,de))}))},Ya=function(){try{if(this.is_pending=this.has_pending_snippet(),fe(this,bn,0),fe(this,Gn,0),fe(this,yt,nt(()=>{E(this,Un).call(this,E(this,pt))})),E(this,bn)>0){var e=fe(this,ln,document.createDocumentFragment());wl(E(this,yt),e);const n=E(this,_t).pending;fe(this,tt,nt(()=>n(E(this,pt))))}else xe(this,qe,Mr).call(this,de)}catch(n){this.error(n)}},Mr=function(e){this.is_pending=!1,e.transfer_effects(E(this,lr),E(this,or))},Dr=function(e){var n=_e,i=Pe,r=Ae;$t(E(this,ot)),xt(E(this,ot)),Ai(E(this,ot).ctx);try{return Mn.ensure(),e()}catch(a){return Vo(a),null}finally{$t(n),xt(i),Ai(r)}},Ja=function(e,n){var i;if(!this.has_pending_snippet()){this.parent&&xe(i=this.parent,qe,Ja).call(i,e,n);return}fe(this,bn,E(this,bn)+e),E(this,bn)===0&&(xe(this,qe,Mr).call(this,n),E(this,tt)&&Yn(E(this,tt),()=>{fe(this,tt,null)}),E(this,ln)&&(E(this,pt).before(E(this,ln)),fe(this,ln,null)))},Qa=function(e){E(this,yt)&&(Je(E(this,yt)),fe(this,yt,null)),E(this,tt)&&(Je(E(this,tt)),fe(this,tt,null)),E(this,dt)&&(Je(E(this,dt)),fe(this,dt,null));var n=E(this,_t).onerror;let i=E(this,_t).failed;var r=!1,a=!1;const s=()=>{if(r){Eu();return}r=!0,a&&su(),E(this,dt)!==null&&Yn(E(this,dt),()=>{fe(this,dt,null)}),xe(this,qe,Dr).call(this,()=>{xe(this,qe,Ya).call(this)})},o=c=>{try{a=!0,n==null||n(c,s),a=!1}catch(u){xn(u,E(this,ot)&&E(this,ot).parent)}i&&fe(this,dt,xe(this,qe,Dr).call(this,()=>{try{return nt(()=>{var u=_e;u.b=this,u.f|=Ha,i(E(this,pt),()=>c,()=>s)})}catch(u){return xn(u,E(this,ot).parent),null}}))};Lt(()=>{var c;try{c=this.transform_error(e)}catch(u){xn(u,E(this,ot)&&E(this,ot).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(o,u=>xn(u,E(this,ot)&&E(this,ot).parent)):o(c)})};function es(t,e,n,i){const r=ti()?Ci:ua;var a=t.filter(d=>!d.settled);if(n.length===0&&a.length===0){i(e.map(r));return}var s=_e,o=ts(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(d=>d.promise)):null;function u(d){if(!(s.f&kt)){o();try{i(d)}catch(g){xn(g,s)}Xi()}}var f=ns();if(n.length===0){c.then(()=>u(e.map(r))).finally(f);return}function h(){Promise.all(n.map(d=>Hu(d))).then(d=>u([...e.map(r),...d])).catch(d=>xn(d,s)).finally(f)}c?c.then(()=>{o(),h(),Xi()}):h()}function ts(){var t=_e,e=Pe,n=Ae,i=de;return function(a=!0){$t(t),xt(e),Ai(n),a&&!(t.f&kt)&&(i==null||i.activate(),i==null||i.apply())}}function Xi(t=!0){$t(null),xt(null),Ai(null),t&&(de==null||de.deactivate())}function ns(){var t=_e,e=t.b,n=de,i=e.is_rendered();return e.update_pending_count(1,n),n.increment(i,t),()=>{e.update_pending_count(-1,n),n.decrement(i,t)}}function Ci(t){var e=Qe|Ye;return _e!==null&&(_e.f|=Oi),{ctx:Ae,deps:null,effects:null,equals:zo,f:e,fn:t,reactions:null,rv:0,v:Be,wv:0,parent:_e,ac:null}}const xr=Symbol("obsolete");function Hu(t,e,n){let i=_e;i===null&&Xc();var r=void 0,a=Xt(Be),s=!Pe,o=new Set;return td(()=>{var g;var c=_e,u=Lo();r=u.promise;try{Promise.resolve(t()).then(u.resolve,_=>{_!==sa&&u.reject(_)}).finally(Xi)}catch(_){u.reject(_),Xi()}var f=de;if(s){if(c.f&On)var h=ns();if(i.b.is_rendered())(g=f.async_deriveds.get(c))==null||g.reject(xr);else for(const _ of o.values())_.reject(xr);o.add(u),f.async_deriveds.set(c,u)}const d=(_,m=void 0)=>{h==null||h(),o.delete(u),m!==xr&&(f.activate(),m?(a.f|=In,cn(a,m)):(a.f&In&&(a.f^=In),cn(a,_)),f.deactivate())};u.promise.then(d,_=>d(null,_||"unknown"))}),mr(()=>{for(const c of o)c.reject(xr)}),new Promise(c=>{function u(f){function h(){f===r?c(a):u(r)}f.then(h,h)}u(r)})}function B(t){const e=Ci(t);return ws(e),e}function ua(t){const e=Ci(t);return e.equals=Fo,e}function Bu(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)Je(e[n])}}function ml(t){var e,n=_e,i=t.parent;if(!fn&&i!==null&&i.f&(kt|it))return Pu(),t.v;$t(i);try{t.f&=~$n,Bu(t),e=xs(t)}finally{$t(n)}return e}function is(t){var e=ml(t);if(!t.equals(e)&&(t.wv=ks(),(!(de!=null&&de.is_fork)||t.deps===null)&&(de!==null?(de.capture(t,e,!0),Gi==null||Gi.capture(t,e,!0)):t.v=e,t.deps===null))){ze(t,We);return}fn||(Ke!==null?(pl()||de!=null&&de.is_fork)&&Ke.set(t,e):vl(t))}function Vu(t){var e,n;if(t.effects!==null)for(const i of t.effects)(i.teardown||i.ac)&&((e=i.teardown)==null||e.call(i),(n=i.ac)==null||n.abort(sa),i.teardown=vt,i.ac=null,$i(i,0),_l(i))}function rs(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&Li(e)}let Vr=new Set;const Kn=new Map;let as=!1;function Xt(t,e){var n={f:0,v:t,reactions:null,equals:zo,rv:0,wv:0};return n}function K(t,e){const n=Xt(t);return ws(n),n}function Xa(t,e=!1,n=!0){var r;const i=Xt(t);return e||(i.equals=Fo),Ni&&n&&Ae!==null&&Ae.l!==null&&((r=Ae.l).s??(r.s=[])).push(i),i}function z(t,e,n=!1){Pe!==null&&(!At||Pe.f&Hr)&&ti()&&Pe.f&(Qe|wt|gi|Hr)&&(St===null||!Ei.call(St,t))&&ou();let i=n?Ee(e):e;return cn(t,i,Cr)}function cn(t,e,n=null){if(!t.equals(e)){Kn.set(t,fn?e:t.v);var i=Mn.ensure();if(i.capture(t,e),t.f&Qe){const r=t;t.f&Ye&&ml(r),Ke===null&&vl(r)}t.wv=ks(),ls(t,Ye,n),ti()&&_e!==null&&_e.f&We&&!(_e.f&(jt|Ln))&&(mt===null?id([t]):mt.push(t)),!i.is_fork&&Vr.size>0&&!as&&Wu()}return e}function Wu(){as=!1;for(const t of Vr){t.f&We&&ze(t,Jt);let e;try{e=_r(t)}catch{e=!0}e&&Li(t)}Vr.clear()}function Uu(t,e=1){var n=l(t),i=e===1?n++:n--;return z(t,n),i}function An(t){z(t,t.v+1)}function ls(t,e,n){var i=t.reactions;if(i!==null)for(var r=ti(),a=i.length,s=0;s<a;s++){var o=i[s],c=o.f;if(!(!r&&o===_e)){var u=(c&Ye)===0;if(u&&ze(o,e),c&Hr)Vr.add(o);else if(c&Qe){var f=o;Ke==null||Ke.delete(f),c&$n||(c&bt&&(_e===null||!(_e.f&Br))&&(o.f|=$n),ls(f,Jt,n))}else if(u){var h=o;c&wt&&Tt!==null&&Tt.add(h),n!==null?n.push(h):gl(h)}}}}function Ee(t){if(typeof t!="object"||t===null||Yt in t)return t;const e=ul(t);if(e!==Gc&&e!==Zc)return t;var n=new Map,i=cl(t),r=K(0),a=un,s=o=>{if(un===a)return o();var c=Pe,u=un;xt(null),Ql(a);var f=o();return xt(c),Ql(u),f};return i&&n.set("length",K(t.length)),new Proxy(t,{defineProperty(o,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&au();var f=n.get(c);return f===void 0?s(()=>{var h=K(u.value);return n.set(c,h),h}):z(f,u.value,!0),!0},deleteProperty(o,c){var u=n.get(c);if(u===void 0){if(c in o){const f=s(()=>K(Be));n.set(c,f),An(r)}}else z(u,Be),An(r);return!0},get(o,c,u){var g;if(c===Yt)return t;var f=n.get(c),h=c in o;if(f===void 0&&(!h||(g=En(o,c))!=null&&g.writable)&&(f=s(()=>{var _=Ee(h?o[c]:Be),m=K(_);return m}),n.set(c,f)),f!==void 0){var d=l(f);return d===Be?void 0:d}return Reflect.get(o,c,u)},getOwnPropertyDescriptor(o,c){var u=Reflect.getOwnPropertyDescriptor(o,c);if(u&&"value"in u){var f=n.get(c);f&&(u.value=l(f))}else if(u===void 0){var h=n.get(c),d=h==null?void 0:h.v;if(h!==void 0&&d!==Be)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(o,c){var d;if(c===Yt)return!0;var u=n.get(c),f=u!==void 0&&u.v!==Be||Reflect.has(o,c);if(u!==void 0||_e!==null&&(!f||(d=En(o,c))!=null&&d.writable)){u===void 0&&(u=s(()=>{var g=f?Ee(o[c]):Be,_=K(g);return _}),n.set(c,u));var h=l(u);if(h===Be)return!1}return f},set(o,c,u,f){var P;var h=n.get(c),d=c in o;if(i&&c==="length")for(var g=u;g<h.v;g+=1){var _=n.get(g+"");_!==void 0?z(_,Be):g in o&&(_=s(()=>K(Be)),n.set(g+"",_))}if(h===void 0)(!d||(P=En(o,c))!=null&&P.writable)&&(h=s(()=>K(void 0)),z(h,Ee(u)),n.set(c,h));else{d=h.v!==Be;var m=s(()=>Ee(u));z(h,m)}var p=Reflect.getOwnPropertyDescriptor(o,c);if(p!=null&&p.set&&p.set.call(f,u),!d){if(i&&typeof c=="string"){var w=n.get("length"),k=Number(c);Number.isInteger(k)&&k>=w.v&&z(w,k+1)}An(r)}return!0},ownKeys(o){l(r);var c=Reflect.ownKeys(o).filter(h=>{var d=n.get(h);return d===void 0||d.v!==Be});for(var[u,f]of n)f.v!==Be&&!(u in o)&&c.push(u);return c},setPrototypeOf(){lu()}})}function Kl(t){try{if(t!==null&&typeof t=="object"&&Yt in t)return t[Yt]}catch{}return t}function Gu(t,e){return Object.is(Kl(t),Kl(e))}var Ie,os,ss,cs;function Zu(){if(Ie===void 0){Ie=window,os=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;ss=En(e,"firstChild").get,cs=En(e,"nextSibling").get,Ul(t)&&(t[Va]=void 0,t[Ir]=null,t[Wa]=void 0,t.__e=void 0),Ul(n)&&(n[Vi]=void 0)}}function Mt(t=""){return document.createTextNode(t)}function Zt(t){return ss.call(t)}function gr(t){return cs.call(t)}function S(t,e){return Zt(t)}function J(t,e=!1){{var n=Zt(t);return n instanceof Comment&&n.data===""?gr(n):n}}function C(t,e=1,n=!1){let i=t;for(;e--;)i=gr(i);return i}function Ku(t){t.textContent=""}function us(){return!1}function da(t,e,n){return document.createElementNS(e??Oo,t,void 0)}function Yu(t,e){if(e){const n=document.body;t.autofocus=!0,Lt(()=>{document.activeElement===n&&t.focus()})}}let Yl=!1;function Ju(){Yl||(Yl=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)(e=n[Ar])==null||e.call(n)})},{capture:!0}))}function Qu(t,e,n,i=!0){i&&n();for(var r of e)t.addEventListener(r,n);mr(()=>{for(var a of e)t.removeEventListener(a,n)})}function ni(t){var e=Pe,n=_e;xt(null),$t(null);try{return t()}finally{xt(e),$t(n)}}function ds(t,e,n,i=n){t.addEventListener(e,()=>ni(n));const r=t[Ar];r?t[Ar]=()=>{r(),i(!0)}:t[Ar]=()=>i(!0),Ju()}function fs(t){_e===null&&(Pe===null&&nu(),tu()),fn&&eu()}function Xu(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Nt(t,e){var n=_e;n!==null&&n.f&it&&(t|=it);var i={ctx:Ae,deps:null,nodes:null,f:t|Ye|bt,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};de==null||de.register_created_effect(i);var r=i;if(t&Ii)hi!==null?hi.push(i):Mn.ensure().schedule(i);else if(e!==null){try{Li(i)}catch(s){throw Je(i),s}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&!(r.f&Oi)&&(r=r.first,t&wt&&t&Qt&&r!==null&&(r.f|=Qt))}if(r!==null&&(r.parent=n,n!==null&&Xu(r,n),Pe!==null&&Pe.f&Qe&&!(t&Ln))){var a=Pe;(a.effects??(a.effects=[])).push(r)}return i}function pl(){return Pe!==null&&!At}function mr(t){const e=Nt(vr,null);return ze(e,We),e.teardown=t,e}function He(t){fs();var e=_e.f,n=!Pe&&(e&jt)!==0&&(e&On)===0;if(n){var i=Ae;(i.e??(i.e=[])).push(t)}else return vs(t)}function vs(t){return Nt(Ii|Do,t)}function $u(t){return fs(),Nt(vr|Do,t)}function ed(t){Mn.ensure();const e=Nt(Ln|Oi,t);return(n={})=>new Promise(i=>{n.outro?Yn(e,()=>{Je(e),i(void 0)}):(Je(e),i(void 0))})}function ii(t){return Nt(Ii,t)}function td(t){return Nt(gi|Oi,t)}function pr(t,e=0){return Nt(vr|e,t)}function W(t,e=[],n=[],i=[]){es(i,e,n,r=>{Nt(vr,()=>t(...r.map(l)))})}function mn(t,e=0){var n=Nt(wt|e,t);return n}function hs(t,e=0){var n=Nt(dl|e,t);return n}function nt(t){return Nt(jt|Oi,t)}function gs(t){var e=t.teardown;if(e!==null){const n=fn,i=Pe;Jl(!0),xt(null);try{e.call(null)}finally{Jl(n),xt(i)}}}function _l(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const r=n.ac;r!==null&&ni(()=>{r.abort(sa)});var i=n.next;n.f&Ln?n.parent=null:Je(n,e),n=i}}function nd(t){for(var e=t.first;e!==null;){var n=e.next;e.f&jt||Je(e),e=n}}function Je(t,e=!0){var n=!1;(e||t.f&Mo)&&t.nodes!==null&&t.nodes.end!==null&&(ms(t.nodes.start,t.nodes.end),n=!0),ze(t,Ba),_l(t,e&&!n),$i(t,0);var i=t.nodes&&t.nodes.t;if(i!==null)for(const a of i)a.stop();gs(t),t.f^=Ba,t.f|=kt;var r=t.parent;r!==null&&r.first!==null&&ps(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function ms(t,e){for(;t!==null;){var n=t===e?null:gr(t);t.remove(),t=n}}function ps(t){var e=t.parent,n=t.prev,i=t.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),e!==null&&(e.first===t&&(e.first=i),e.last===t&&(e.last=n))}function Yn(t,e,n=!0){var i=[];_s(t,i,!0);var r=()=>{n&&Je(t),e&&e()},a=i.length;if(a>0){var s=()=>--a||r();for(var o of i)o.out(s)}else r()}function _s(t,e,n){if(!(t.f&it)){t.f^=it;var i=t.nodes&&t.nodes.t;if(i!==null)for(const o of i)(o.is_global||n)&&e.push(o);for(var r=t.first;r!==null;){var a=r.next;if(!(r.f&Ln)){var s=(r.f&Qt)!==0||(r.f&jt)!==0&&(t.f&wt)!==0;_s(r,e,s?n:!1)}r=a}}}function yl(t){ys(t,!0)}function ys(t,e){if(t.f&it){t.f^=it,t.f&We||(ze(t,Ye),Mn.ensure().schedule(t));for(var n=t.first;n!==null;){var i=n.next,r=(n.f&Qt)!==0||(n.f&jt)!==0;ys(n,r?e:!1),n=i}var a=t.nodes&&t.nodes.t;if(a!==null)for(const s of a)(s.is_global||e)&&s.in()}}function wl(t,e){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end;n!==null;){var r=n===i?null:gr(n);e.append(n),n=r}}let jr=!1,fn=!1;function Jl(t){fn=t}let Pe=null,At=!1;function xt(t){Pe=t}let _e=null;function $t(t){_e=t}let St=null;function ws(t){Pe!==null&&(St===null?St=[t]:St.push(t))}let st=null,ct=0,mt=null;function id(t){mt=t}let bs=1,Hn=0,un=Hn;function Ql(t){un=t}function ks(){return++bs}function _r(t){var e=t.f;if(e&Ye)return!0;if(e&Qe&&(t.f&=~$n),e&Jt){for(var n=t.deps,i=n.length,r=0;r<i;r++){var a=n[r];if(_r(a)&&is(a),a.wv>t.wv)return!0}e&bt&&Ke===null&&ze(t,We)}return!1}function Ss(t,e,n=!0){var i=t.reactions;if(i!==null&&!(St!==null&&Ei.call(St,t)))for(var r=0;r<i.length;r++){var a=i[r];a.f&Qe?Ss(a,e,!1):e===a&&(n?ze(a,Ye):a.f&We&&ze(a,Jt),gl(a))}}function xs(t){var m;var e=st,n=ct,i=mt,r=Pe,a=St,s=Ae,o=At,c=un,u=t.f;st=null,ct=0,mt=null,Pe=u&(jt|Ln)?null:t,St=null,Ai(t.ctx),At=!1,un=++Hn,t.ac!==null&&(ni(()=>{t.ac.abort(sa)}),t.ac=null);try{t.f|=Br;var f=t.fn,h=f();t.f|=On;var d=t.deps,g=de==null?void 0:de.is_fork;if(st!==null){var _;if(g||$i(t,ct),d!==null&&ct>0)for(d.length=ct+st.length,_=0;_<st.length;_++)d[ct+_]=st[_];else t.deps=d=st;if(pl()&&t.f&bt)for(_=ct;_<d.length;_++)((m=d[_]).reactions??(m.reactions=[])).push(t)}else!g&&d!==null&&ct<d.length&&($i(t,ct),d.length=ct);if(ti()&&mt!==null&&!At&&d!==null&&!(t.f&(Qe|Jt|Ye)))for(_=0;_<mt.length;_++)Ss(mt[_],t);if(r!==null&&r!==t){if(Hn++,r.deps!==null)for(let p=0;p<n;p+=1)r.deps[p].rv=Hn;if(e!==null)for(const p of e)p.rv=Hn;mt!==null&&(i===null?i=mt:i.push(...mt))}return t.f&In&&(t.f^=In),h}catch(p){return Vo(p)}finally{t.f^=Br,st=e,ct=n,mt=i,Pe=r,St=a,Ai(s),At=o,un=c}}function rd(t,e){let n=e.reactions;if(n!==null){var i=Wc.call(n,t);if(i!==-1){var r=n.length-1;r===0?n=e.reactions=null:(n[i]=n[r],n.pop())}}if(n===null&&e.f&Qe&&(st===null||!Ei.call(st,e))){var a=e;a.f&bt&&(a.f^=bt,a.f&=~$n),a.v!==Be&&vl(a),Vu(a),$i(a,0)}}function $i(t,e){var n=t.deps;if(n!==null)for(var i=e;i<n.length;i++)rd(t,n[i])}function Li(t){var e=t.f;if(!(e&kt)){ze(t,We);var n=_e,i=jr;_e=t,jr=!0;try{e&(wt|dl)?nd(t):_l(t),gs(t);var r=xs(t);t.teardown=typeof r=="function"?r:null,t.wv=bs;var a}finally{jr=i,_e=n}}}async function er(){await Promise.resolve(),Ko()}function l(t){var e=t.f,n=(e&Qe)!==0;if(Pe!==null&&!At){var i=_e!==null&&(_e.f&kt)!==0;if(!i&&(St===null||!Ei.call(St,t))){var r=Pe.deps;if(Pe.f&Br)t.rv<Hn&&(t.rv=Hn,st===null&&r!==null&&r[ct]===t?ct++:st===null?st=[t]:st.push(t));else{(Pe.deps??(Pe.deps=[])).push(t);var a=t.reactions;a===null?t.reactions=[Pe]:Ei.call(a,Pe)||a.push(Pe)}}}if(fn&&Kn.has(t))return Kn.get(t);if(n){var s=t;if(fn){var o=s.v;return(!(s.f&We)&&s.reactions!==null||Ts(s))&&(o=ml(s)),Kn.set(s,o),o}var c=(s.f&bt)===0&&!At&&Pe!==null&&(jr||(Pe.f&bt)!==0),u=(s.f&On)===0;_r(s)&&(c&&(s.f|=bt),is(s)),c&&!u&&(rs(s),Ps(s))}if(Ke!=null&&Ke.has(t))return Ke.get(t);if(t.f&In)throw t.v;return t.v}function Ps(t){if(t.f|=bt,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Qe&&!(e.f&bt)&&(rs(e),Ps(e))}function Ts(t){if(t.v===Be)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Kn.has(e)||e.f&Qe&&Ts(e))return!0;return!1}function zt(t){var e=At;try{return At=!0,t()}finally{At=e}}function Es(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(Yt in t)$a(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&Yt in n&&$a(n)}}}function $a(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 i in t)try{$a(t[i],e)}catch{}const n=ul(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=Co(n);for(let r in i){const a=i[r].get;if(a)try{a.call(t)}catch{}}}}}function ad(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ld=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function od(t){return ld.includes(t)}const sd={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 cd(t){return t=t.toLowerCase(),sd[t]??t}const ud=["touchstart","touchmove"];function dd(t){return ud.includes(t)}const Bn=Symbol("events"),Is=new Set,el=new Set;function bl(t,e,n,i={}){function r(a){if(i.capture||tl.call(e,a),!a.cancelBubble)return ni(()=>n==null?void 0:n.call(this,a))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Lt(()=>{e.addEventListener(t,r,i)}):e.addEventListener(t,r,i),r}function fd(t,e,n,i={}){var r=bl(e,t,n,i);return()=>{t.removeEventListener(e,r,i)}}function Se(t,e,n,i,r){var a={capture:i,passive:r},s=bl(t,e,n,a);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&mr(()=>{e.removeEventListener(t,s,a)})}function re(t,e,n){(e[Bn]??(e[Bn]={}))[t]=n}function me(t){for(var e=0;e<t.length;e++)Is.add(t[e]);for(var n of el)n(t)}let Xl=null;function tl(t){var p,w;var e=this,n=e.ownerDocument,i=t.type,r=((p=t.composedPath)==null?void 0:p.call(t))||[],a=r[0]||t.target;Xl=t;var s=0,o=Xl===t&&t[Bn];if(o){var c=r.indexOf(o);if(c!==-1&&(e===document||e===window)){t[Bn]=e;return}var u=r.indexOf(e);if(u===-1)return;c<=u&&(s=c)}if(a=r[s]||t.target,a!==e){Uc(t,"currentTarget",{configurable:!0,get(){return a||n}});var f=Pe,h=_e;xt(null),$t(null);try{for(var d,g=[];a!==null;){var _=a.assignedSlot||a.parentNode||a.host||null;try{var m=(w=a[Bn])==null?void 0:w[i];m!=null&&(!a.disabled||t.target===a)&&m.call(a,t)}catch(k){d?g.push(k):d=k}if(t.cancelBubble||_===e||_===null)break;a=_}if(d){for(let k of g)queueMicrotask(()=>{throw k});throw d}}finally{t[Bn]=e,delete t.currentTarget,xt(f),$t(h)}}}var Io;const Pa=((Io=globalThis==null?void 0:globalThis.window)==null?void 0:Io.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function vd(t){return(Pa==null?void 0:Pa.createHTML(t))??t}function As(t){var e=da("template");return e.innerHTML=vd(t.replaceAll("<!>","<!---->")),e.content}const hd=ca?"script":"SCRIPT";function Dn(t,e){var n=_e;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function I(t,e){var n=(e&bu)!==0,i=(e&ku)!==0,r,a=!t.startsWith("<!>");return()=>{r===void 0&&(r=As(a?t:"<!>"+t),n||(r=Zt(r)));var s=i||os?document.importNode(r,!0):r.cloneNode(!0);if(n){var o=Zt(s),c=s.lastChild;Dn(o,c)}else Dn(s,s);return s}}function gd(t,e,n="svg"){var i=!t.startsWith("<!>"),r=`<${n}>${i?t:"<!>"+t}</${n}>`,a;return()=>{if(!a){var s=As(r),o=Zt(s);a=Zt(o)}var c=a.cloneNode(!0);return Dn(c,c),c}}function Ge(t,e){return gd(t,e,"svg")}function md(t){return()=>pd(t())}function pd(t){const e=t.nodeType===Qc,n=t.nodeName===hd?[t]:t.querySelectorAll("script"),i=_e;for(const a of n){const s=da("script");for(var r of a.attributes)s.setAttribute(r.name,r.value);s.textContent=a.textContent,(e?t.firstChild===a:t===a)&&(i.nodes.start=s),(e?t.lastChild===a:t===a)&&(i.nodes.end=s),a.replaceWith(s)}return t}function rt(t=""){{var e=Mt(t+"");return Dn(e,e),e}}function ge(){var t=document.createDocumentFragment(),e=document.createComment(""),n=Mt();return t.append(e,n),Dn(e,n),t}function y(t,e){t!==null&&t.before(e)}let Wr=!0;function Pr(t){Wr=t}function Q(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[Vi]??(t[Vi]=t.nodeValue))&&(t[Vi]=n,t.nodeValue=`${n}`)}function Dt(t,e){return _d(t,e)}const Tr=new Map;function _d(t,{target:e,anchor:n,props:i={},events:r,context:a,intro:s=!0,transformError:o}){Zu();var c=void 0,u=ed(()=>{var f=n??e.appendChild(Mt());$o(f,{pending:()=>{}},g=>{ne({});var _=Ae;a&&(_.c=a),r&&(i.$$events=r),Wr=s,c=t(g,i)||{},Wr=!0,ie()},o);var h=new Set,d=g=>{for(var _=0;_<g.length;_++){var m=g[_];if(!h.has(m)){h.add(m);var p=dd(m);for(const P of[e,document]){var w=Tr.get(P);w===void 0&&(w=new Map,Tr.set(P,w));var k=w.get(m);k===void 0?(P.addEventListener(m,tl,{passive:p}),w.set(m,1)):w.set(m,k+1)}}}};return d(oa(Is)),el.add(d),()=>{var p;for(var g of h)for(const w of[e,document]){var _=Tr.get(w),m=_.get(g);--m==0?(w.removeEventListener(g,tl),_.delete(g),_.size===0&&Tr.delete(w)):_.set(g,m)}el.delete(d),f!==n&&((p=f.parentNode)==null||p.removeChild(f))}});return nl.set(c,u),c}let nl=new WeakMap;function ri(t,e){const n=nl.get(t);return n?(nl.delete(t),n(e)):Promise.resolve()}var Et,Wt,ft,Zn,sr,cr,na;class zi{constructor(e,n=!0){et(this,"anchor");oe(this,Et,new Map);oe(this,Wt,new Map);oe(this,ft,new Map);oe(this,Zn,new Set);oe(this,sr,!0);oe(this,cr,e=>{if(E(this,Et).has(e)){var n=E(this,Et).get(e),i=E(this,Wt).get(n);if(i)yl(i),E(this,Zn).delete(n);else{var r=E(this,ft).get(n);r&&(E(this,Wt).set(n,r.effect),E(this,ft).delete(n),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[a,s]of E(this,Et)){if(E(this,Et).delete(a),a===e)break;const o=E(this,ft).get(s);o&&(Je(o.effect),E(this,ft).delete(s))}for(const[a,s]of E(this,Wt)){if(a===n||E(this,Zn).has(a))continue;const o=()=>{if(Array.from(E(this,Et).values()).includes(a)){var u=document.createDocumentFragment();wl(s,u),u.append(Mt()),E(this,ft).set(a,{effect:s,fragment:u})}else Je(s);E(this,Zn).delete(a),E(this,Wt).delete(a)};E(this,sr)||!i?(E(this,Zn).add(a),Yn(s,o,!1)):o()}}});oe(this,na,e=>{E(this,Et).delete(e);const n=Array.from(E(this,Et).values());for(const[i,r]of E(this,ft))n.includes(i)||(Je(r.effect),E(this,ft).delete(i))});this.anchor=e,fe(this,sr,n)}ensure(e,n){var i=de,r=us();if(n&&!E(this,Wt).has(e)&&!E(this,ft).has(e))if(r){var a=document.createDocumentFragment(),s=Mt();a.append(s),E(this,ft).set(e,{effect:nt(()=>n(s)),fragment:a})}else E(this,Wt).set(e,nt(()=>n(this.anchor)));if(E(this,Et).set(i,e),r){for(const[o,c]of E(this,Wt))o===e?i.unskip_effect(c):i.skip_effect(c);for(const[o,c]of E(this,ft))o===e?i.unskip_effect(c.effect):i.skip_effect(c.effect);i.oncommit(E(this,cr)),i.ondiscard(E(this,na))}else E(this,cr).call(this,i)}}Et=new WeakMap,Wt=new WeakMap,ft=new WeakMap,Zn=new WeakMap,sr=new WeakMap,cr=new WeakMap,na=new WeakMap;const yd=0,$l=1,wd=2;function vn(t,e,n,i,r){var a=ti(),s=Be,o=a?Xt(s):Xa(s,!1,!1),c=a?Xt(s):Xa(s,!1,!1),u=new zi(t);mn(()=>{var f=de;f.deactivate();var h=e();f.activate();var d=!1;if(Kc(h)){var g=ts(),_=!1;const m=p=>{if(!d){_=!0,g(!1),Mn.ensure();try{p()}finally{Xi(!1),mi||Ko()}}};h.then(p=>{m(()=>{cn(o,p),u.ensure($l,i&&(w=>i(w,o)))})},p=>{m(()=>{if(cn(c,p),u.ensure(wd,r&&(w=>r(w,c))),!r)throw c.v})}),Lt(()=>{_||m(()=>{u.ensure(yd,n)})})}else cn(o,h),u.ensure($l,i&&(m=>i(m,o)));return()=>{d=!0}})}function U(t,e,n=!1){var i=new zi(t),r=n?Qt:0;function a(s,o){i.ensure(s,o)}mn(()=>{var s=!1;e((o,c=0)=>{s=!0,a(c,o)}),s||a(-1,null)},r)}const bd=Symbol("NaN");function yr(t,e,n){var i=new zi(t),r=!ti();mn(()=>{var a=e();a!==a&&(a=bd),r&&a!==null&&typeof a=="object"&&(a={}),i.ensure(a,n)})}function De(t,e){return e}function kd(t,e,n){for(var i=[],r=e.length,a,s=e.length,o=0;o<r;o++){let h=e[o];Yn(h,()=>{if(a){if(a.pending.delete(h),a.done.add(h),a.pending.size===0){var d=t.outrogroups;il(t,oa(a.done)),d.delete(a),d.size===0&&(t.outrogroups=null)}}else s-=1},!1)}if(s===0){var c=i.length===0&&n!==null;if(c){var u=n,f=u.parentNode;Ku(f),f.append(u),t.items.clear()}il(t,e,!c)}else a={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(a)}function il(t,e,n=!0){var i;if(t.pending.size>0){i=new Set;for(const s of t.pending.values())for(const o of s)i.add(t.items.get(o).e)}for(var r=0;r<e.length;r++){var a=e[r];if(i!=null&&i.has(a)){a.f|=Gt;const s=document.createDocumentFragment();wl(a,s)}else Je(e[r],n)}}var eo;function Me(t,e,n,i,r,a=null){var s=t,o=new Map,c=(e&Ro)!==0;if(c){var u=t;s=u.appendChild(Mt())}var f=null,h=ua(()=>{var P=n();return cl(P)?P:P==null?[]:oa(P)}),d,g=new Map,_=!0;function m(P){k.effect.f&kt||(k.pending.delete(P),k.fallback=f,Sd(k,d,s,e,i),f!==null&&(d.length===0?f.f&Gt?(f.f^=Gt,Ui(f,null,s)):yl(f):Yn(f,()=>{f=null})))}function p(P){k.pending.delete(P)}var w=mn(()=>{d=l(h);for(var P=d.length,x=new Set,T=de,j=us(),R=0;R<P;R+=1){var M=d[R],F=i(M,R),q=_?null:o.get(F);q?(q.v&&cn(q.v,M),q.i&&cn(q.i,R),j&&T.unskip_effect(q.e)):(q=xd(o,_?s:eo??(eo=Mt()),M,F,R,r,e,n),_||(q.e.f|=Gt),o.set(F,q)),x.add(F)}if(P===0&&a&&!f&&(_?f=nt(()=>a(s)):(f=nt(()=>a(eo??(eo=Mt()))),f.f|=Gt)),P>x.size&&$c(),!_)if(g.set(T,x),j){for(const[V,A]of o)x.has(V)||T.skip_effect(A.e);T.oncommit(m),T.ondiscard(p)}else m(T);l(h)}),k={effect:w,items:o,pending:g,outrogroups:null,fallback:f};_=!1}function Bi(t){for(;t!==null&&!(t.f&jt);)t=t.next;return t}function Sd(t,e,n,i,r){var q,V,A,b,L,O,Y,N,H;var a=(i&du)!==0,s=e.length,o=t.items,c=Bi(t.effect.first),u,f=null,h,d=[],g=[],_,m,p,w;if(a)for(w=0;w<s;w+=1)_=e[w],m=r(_,w),p=o.get(m).e,p.f&Gt||((V=(q=p.nodes)==null?void 0:q.a)==null||V.measure(),(h??(h=new Set)).add(p));for(w=0;w<s;w+=1){if(_=e[w],m=r(_,w),p=o.get(m).e,t.outrogroups!==null)for(const Z of t.outrogroups)Z.pending.delete(p),Z.done.delete(p);if(p.f&it&&(yl(p),a&&((b=(A=p.nodes)==null?void 0:A.a)==null||b.unfix(),(h??(h=new Set)).delete(p))),p.f&Gt)if(p.f^=Gt,p===c)Ui(p,null,n);else{var k=f?f.next:c;p===t.effect.last&&(t.effect.last=p.prev),p.prev&&(p.prev.next=p.next),p.next&&(p.next.prev=p.prev),_n(t,f,p),_n(t,p,k),Ui(p,k,n),f=p,d=[],g=[],c=Bi(f.next);continue}if(p!==c){if(u!==void 0&&u.has(p)){if(d.length<g.length){var P=g[0],x;f=P.prev;var T=d[0],j=d[d.length-1];for(x=0;x<d.length;x+=1)Ui(d[x],P,n);for(x=0;x<g.length;x+=1)u.delete(g[x]);_n(t,T.prev,j.next),_n(t,f,T),_n(t,j,P),c=P,f=j,w-=1,d=[],g=[]}else u.delete(p),Ui(p,c,n),_n(t,p.prev,p.next),_n(t,p,f===null?t.effect.first:f.next),_n(t,f,p),f=p;continue}for(d=[],g=[];c!==null&&c!==p;)(u??(u=new Set)).add(c),g.push(c),c=Bi(c.next);if(c===null)continue}p.f&Gt||d.push(p),f=p,c=Bi(p.next)}if(t.outrogroups!==null){for(const Z of t.outrogroups)Z.pending.size===0&&(il(t,oa(Z.done)),(L=t.outrogroups)==null||L.delete(Z));t.outrogroups.size===0&&(t.outrogroups=null)}if(c!==null||u!==void 0){var R=[];if(u!==void 0)for(p of u)p.f&it||R.push(p);for(;c!==null;)!(c.f&it)&&c!==t.fallback&&R.push(c),c=Bi(c.next);var M=R.length;if(M>0){var F=i&Ro&&s===0?n:null;if(a){for(w=0;w<M;w+=1)(Y=(O=R[w].nodes)==null?void 0:O.a)==null||Y.measure();for(w=0;w<M;w+=1)(H=(N=R[w].nodes)==null?void 0:N.a)==null||H.fix()}kd(t,R,F)}}a&&Lt(()=>{var Z,G;if(h!==void 0)for(p of h)(G=(Z=p.nodes)==null?void 0:Z.a)==null||G.apply()})}function xd(t,e,n,i,r,a,s,o){var c=s&cu?s&fu?Xt(n):Xa(n,!1,!1):null,u=s&uu?Xt(r):null;return{v:c,i:u,e:nt(()=>(a(e,c??n,u??r,o),()=>{t.delete(i)}))}}function Ui(t,e,n){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end,a=e&&!(e.f&Gt)?e.nodes.start:n;i!==null;){var s=gr(i);if(a.before(i),i===r)return;i=s}}function _n(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Pd(t,e,n=!1,i=!1,r=!1,a=!1){var s=t,o="";if(n)var c=t;W(()=>{var u=_e;if(o!==(o=e()??"")){if(n){u.nodes=null,c.innerHTML=o,o!==""&&Dn(Zt(c),c.lastChild);return}if(u.nodes!==null&&(ms(u.nodes.start,u.nodes.end),u.nodes=null),o!==""){var f=i?No:r?Su:void 0,h=da(i?"svg":r?"math":"template",f);h.innerHTML=o;var d=i||r?h:h.content;if(Dn(Zt(d),d.lastChild),i||r)for(;Zt(d);)s.before(Zt(d));else s.before(d)}}})}function Ve(t,e,...n){var i=new zi(t);mn(()=>{const r=e()??null;i.ensure(r,r&&(a=>r(a,...n)))},Qt)}function Ur(t,e,n){var i=new zi(t);mn(()=>{var r=e()??null;i.ensure(r,r&&(a=>n(a,r)))},Qt)}const Td=()=>performance.now(),sn={tick:t=>requestAnimationFrame(t),now:()=>Td(),tasks:new Set};function Cs(){const t=sn.now();sn.tasks.forEach(e=>{e.c(t)||(sn.tasks.delete(e),e.f())}),sn.tasks.size!==0&&sn.tick(Cs)}function Ed(t){let e;return sn.tasks.size===0&&sn.tick(Cs),{promise:new Promise(n=>{sn.tasks.add(e={c:t,f:n})}),abort(){sn.tasks.delete(e)}}}function Er(t,e){ni(()=>{t.dispatchEvent(new CustomEvent(e))})}function Id(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(n=>n[0].toUpperCase()+n.slice(1)).join("")}function to(t){const e={},n=t.split(";");for(const i of n){const[r,a]=i.split(":");if(!r||a===void 0)break;const s=Id(r.trim());e[s]=a.trim()}return e}const Ad=t=>t;let Ls=null;function no(t){Ls=t}function Cd(t,e,n){var i=Ls??_e,r=i.nodes,a,s,o,c=null;r.a??(r.a={element:t,measure(){a=this.element.getBoundingClientRect()},apply(){if(o==null||o.abort(),s=this.element.getBoundingClientRect(),a.left!==s.left||a.right!==s.right||a.top!==s.top||a.bottom!==s.bottom){const u=e()(this.element,{from:a,to:s},n==null?void 0:n());o=Gr(this.element,u,void 0,1,()=>{},()=>{o==null||o.abort(),o=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:h}=getComputedStyle(t);if(u!=="absolute"&&u!=="fixed"){var d=t.style;c={position:d.position,width:d.width,height:d.height,transform:d.transform},d.position="absolute",d.width=f,d.height=h;var g=t.getBoundingClientRect();if(a.left!==g.left||a.top!==g.top){var _=`translate(${a.left-g.left}px, ${a.top-g.top}px)`;d.transform=d.transform?`${d.transform} ${_}`:_}}}},unfix(){if(c){var u=t.style;u.position=c.position,u.width=c.width,u.height=c.height,u.transform=c.transform}}}),r.a.element=t}function Ne(t,e,n,i){var P;var r=(t&_u)!==0,a=(t&yu)!==0,s=r&&a,o=(t&wu)!==0,c=s?"both":r?"in":"out",u,f=e.inert,h=e.style.overflow,d,g;function _(){return ni(()=>u??(u=n()(e,(i==null?void 0:i())??{},{direction:c})))}var m={is_global:o,in(){var x;if(e.inert=f,!r){g==null||g.abort(),(x=g==null?void 0:g.reset)==null||x.call(g);return}a||d==null||d.abort(),d=Gr(e,_(),g,1,()=>{Er(e,"introstart")},()=>{Er(e,"introend"),d==null||d.abort(),d=u=void 0,e.style.overflow=h})},out(x){if(!a){x==null||x(),u=void 0;return}e.inert=!0,g=Gr(e,_(),d,0,()=>{Er(e,"outrostart")},()=>{Er(e,"outroend"),x==null||x()})},stop:()=>{d==null||d.abort(),g==null||g.abort()}},p=_e;if(((P=p.nodes).t??(P.t=[])).push(m),r&&Wr){var w=o;if(!w){for(var k=p.parent;k&&k.f&Qt;)for(;(k=k.parent)&&!(k.f&wt););w=!k||(k.f&On)!==0}w&&ii(()=>{zt(()=>m.in())})}}function Gr(t,e,n,i,r,a){var s=i===1;if(ui(e)){var o,c=!1;return Lt(()=>{if(!c){var w=e({direction:s?"in":"out"});o=Gr(t,w,n,i,r,a)}}),{abort:()=>{c=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n==null||n.deactivate(),!(e!=null&&e.duration)&&!(e!=null&&e.delay))return r(),a(),{abort:vt,deactivate:vt,reset:vt,t:()=>i};const{delay:u=0,css:f,tick:h,easing:d=Ad}=e;var g=[];if(s&&n===void 0&&(h&&h(0,1),f)){var _=to(f(0,1));g.push(_,_)}var m=()=>1-i,p=t.animate(g,{duration:u,fill:"forwards"});return p.onfinish=()=>{p.cancel(),r();var w=(n==null?void 0:n.t())??1-i;n==null||n.abort();var k=i-w,P=e.duration*Math.abs(k),x=[];if(P>0){var T=!1;if(f)for(var j=Math.ceil(P/16.666666666666668),R=0;R<=j;R+=1){var M=w+k*d(R/j),F=to(f(M,1-M));x.push(F),T||(T=F.overflow==="hidden")}T&&(t.style.overflow="hidden"),m=()=>{var q=p.currentTime;return w+k*d(q/P)},h&&Ed(()=>{if(p.playState!=="running")return!1;var q=m();return h(q,1-q),!0})}p=t.animate(x,{duration:P,fill:"forwards"}),p.onfinish=()=>{m=()=>i,h==null||h(i,1-i),a()}},{abort:()=>{p&&(p.cancel(),p.effect=null,p.onfinish=vt)},deactivate:()=>{a=vt},reset:()=>{i===0&&(h==null||h(1,0))},t:()=>m()}}function Ms(t,e,n,i,r,a){var s=null,o=t,c=_e,u=new zi(o,!1);mn(()=>{const f=e()||null;var h=f==="svg"?No:void 0;if(f===null){u.ensure(null,null),Pr(!0);return}return u.ensure(f,d=>{if(f){if(s=da(f,h),Dn(s,s),i){var g=s.appendChild(Mt());no(c),i(s,g),no(null)}_e.nodes.end=s,d.before(s)}}),Pr(!0),()=>{f&&Pr(!1)}},Qt),mr(()=>{Pr(!0)})}function Ld(t,e){var n;n=document.head.appendChild(Mt());try{mn(()=>{var i=nt(()=>e(n));i.f|=Mo})}finally{}}function Rt(t,e,n){ii(()=>{var i=zt(()=>e(t,n==null?void 0:n())||{});if(n&&(i!=null&&i.update)){var r=!1,a={};pr(()=>{var s=n();Es(s),r&&qo(a,s)&&(a=s,i.update(s))}),r=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function Zr(t,e){var n=void 0,i;hs(()=>{n!==(n=e())&&(i&&(Je(i),i=null),n&&(i=nt(()=>{ii(()=>n(t))})))})}function Ds(t){var e,n,i="";if(typeof t=="string"||typeof t=="number")i+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(n=Ds(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function Md(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=Ds(t))&&(i&&(i+=" "),i+=e);return i}function Dd(t){return typeof t=="object"?Md(t):t??""}const io=[...`
3
+ \r\f \v\uFEFF`];function jd(t,e,n){var i=t==null?"":""+t;if(e&&(i=i?i+" "+e:e),n){for(var r of Object.keys(n))if(n[r])i=i?i+" "+r:r;else if(i.length)for(var a=r.length,s=0;(s=i.indexOf(r,s))>=0;){var o=s+a;(s===0||io.includes(i[s-1]))&&(o===i.length||io.includes(i[o]))?i=(s===0?"":i.substring(0,s))+i.substring(o+1):s=o}}return i===""?null:i}function ro(t,e=!1){var n=e?" !important;":";",i="";for(var r of Object.keys(t)){var a=t[r];a!=null&&a!==""&&(i+=" "+r+": "+a+n)}return i}function Ta(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Rd(t,e){if(e){var n="",i,r;if(Array.isArray(e)?(i=e[0],r=e[1]):i=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var a=!1,s=0,o=!1,c=[];i&&c.push(...Object.keys(i).map(Ta)),r&&c.push(...Object.keys(r).map(Ta));var u=0,f=-1;const m=t.length;for(var h=0;h<m;h++){var d=t[h];if(o?d==="/"&&t[h-1]==="*"&&(o=!1):a?a===d&&(a=!1):d==="/"&&t[h+1]==="*"?o=!0:d==='"'||d==="'"?a=d:d==="("?s++:d===")"&&s--,!o&&a===!1&&s===0){if(d===":"&&f===-1)f=h;else if(d===";"||h===m-1){if(f!==-1){var g=Ta(t.substring(u,f).trim());if(!c.includes(g)){d!==";"&&h++;var _=t.substring(u,h).trim();n+=" "+_+";"}}u=h+1,f=-1}}}}return i&&(n+=ro(i)),r&&(n+=ro(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function pe(t,e,n,i,r,a){var s=t[Va];if(s!==n||s===void 0){var o=jd(n,i,a);o==null?t.removeAttribute("class"):e?t.className=o:t.setAttribute("class",o),t[Va]=n}else if(a&&r!==a)for(var c in a){var u=!!a[c];(r==null||u!==!!r[c])&&t.classList.toggle(c,u)}return a}function Ea(t,e={},n,i){for(var r in n){var a=n[r];e[r]!==a&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,a,i))}}function Ue(t,e,n,i){var r=t[Wa];if(r!==e){var a=Rd(e,i);a==null?t.removeAttribute("style"):t.style.cssText=a,t[Wa]=e}else i&&(Array.isArray(i)?(Ea(t,n==null?void 0:n[0],i[0]),Ea(t,n==null?void 0:n[1],i[1],"important")):Ea(t,n,i));return i}function rl(t,e,n=!1){if(t.multiple){if(e==null)return;if(!cl(e))return Tu();for(var i of t.options)i.selected=e.includes(ao(i));return}for(i of t.options){var r=ao(i);if(Gu(r,e)){i.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function Od(t){var e=new MutationObserver(()=>{rl(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),mr(()=>{e.disconnect()})}function ao(t){return"__value"in t?t.__value:t.value}const fi=Symbol("class"),vi=Symbol("style"),js=Symbol("is custom element"),Rs=Symbol("is html"),Nd=ca?"option":"OPTION",zd=ca?"select":"SELECT",qd=ca?"progress":"PROGRESS";function Fd(t,e){var n=kl(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==qd)||(t.value=e??"")}function Os(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ae(t,e,n,i){var r=kl(t);r[e]!==(r[e]=n)&&(e==="loading"&&(t[Jc]=n),n==null?t.removeAttribute(e):typeof n!="string"&&zs(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function Hd(t,e,n,i,r=!1,a=!1){var s=kl(t),o=s[js],c=!s[Rs],u=e||{},f=t.nodeName===Nd;for(var h in e)h in n||(n[h]=null);n.class?n.class=Dd(n.class):(i||n[fi])&&(n.class=null),n[vi]&&(n.style??(n.style=null));var d=zs(t);for(const x in n){let T=n[x];if(f&&x==="value"&&T==null){t.value=t.__value="",u[x]=T;continue}if(x==="class"){var g=t.namespaceURI==="http://www.w3.org/1999/xhtml";pe(t,g,T,i,e==null?void 0:e[fi],n[fi]),u[x]=T,u[fi]=n[fi];continue}if(x==="style"){Ue(t,T,e==null?void 0:e[vi],n[vi]),u[x]=T,u[vi]=n[vi];continue}var _=u[x];if(!(T===_&&!(T===void 0&&t.hasAttribute(x)))){u[x]=T;var m=x[0]+x[1];if(m!=="$$")if(m==="on"){const j={},R="$$"+x;let M=x.slice(2);var p=od(M);if(ad(M)&&(M=M.slice(0,-7),j.capture=!0),!p&&_){if(T!=null)continue;t.removeEventListener(M,u[R],j),u[R]=null}if(p)re(M,t,T),me([M]);else if(T!=null){let F=function(q){u[x].call(this,q)};var P=F;u[R]=bl(M,t,F,j)}}else if(x==="style")ae(t,x,T);else if(x==="autofocus")Yu(t,!!T);else if(!o&&(x==="__value"||x==="value"&&T!=null))t.value=t.__value=T;else if(x==="selected"&&f)Os(t,T);else{var w=x;c||(w=cd(w));var k=w==="defaultValue"||w==="defaultChecked";if(T==null&&!o&&!k)if(s[x]=null,w==="value"||w==="checked"){let j=t;const R=e===void 0;if(w==="value"){let M=j.defaultValue;j.removeAttribute(w),j.defaultValue=M,j.value=j.__value=R?M:null}else{let M=j.defaultChecked;j.removeAttribute(w),j.defaultChecked=M,j.checked=R?M:!1}}else t.removeAttribute(x);else k||d.includes(w)&&(o||typeof T!="string")?(t[w]=T,w in s&&(s[w]=Be)):typeof T!="function"&&ae(t,w,T)}}}return u}function Ns(t,e,n=[],i=[],r=[],a,s=!1,o=!1){es(r,n,i,c=>{var u=void 0,f={},h=t.nodeName===zd,d=!1;if(hs(()=>{var _=e(...c.map(l)),m=Hd(t,u,_,a,s,o);d&&h&&"value"in _&&rl(t,_.value);for(let w of Object.getOwnPropertySymbols(f))_[w]||Je(f[w]);for(let w of Object.getOwnPropertySymbols(_)){var p=_[w];w.description===xu&&(!u||p!==u[w])&&(f[w]&&Je(f[w]),f[w]=nt(()=>Zr(t,()=>p))),m[w]=p}u=m}),h){var g=t;ii(()=>{rl(g,u.value,!0),Od(g)})}d=!0})}function kl(t){return t[Ir]??(t[Ir]={[js]:t.nodeName.includes("-"),[Rs]:t.namespaceURI===Oo})}var lo=new Map;function zs(t){var e=t.getAttribute("is")||t.nodeName,n=lo.get(e);if(n)return n;lo.set(e,n=[]);for(var i,r=t,a=Element.prototype;a!==r;){i=Co(r);for(var s in i)i[s].set&&s!=="innerHTML"&&s!=="textContent"&&s!=="innerText"&&n.push(s);r=ul(r)}return n}function Mi(t,e,n=e){var i=new WeakSet;ds(t,"input",async r=>{var a=r?t.defaultValue:t.value;if(a=Ia(t)?Aa(a):a,n(a),de!==null&&i.add(de),await er(),a!==(a=e())){var s=t.selectionStart,o=t.selectionEnd,c=t.value.length;if(t.value=a??"",o!==null){var u=t.value.length;s===o&&o===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=s,t.selectionEnd=Math.min(o,u))}}}),zt(e)==null&&t.value&&(n(Ia(t)?Aa(t.value):t.value),de!==null&&i.add(de)),pr(()=>{var r=e();if(t===document.activeElement){var a=de;if(i.has(a))return}Ia(t)&&r===Aa(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function Bd(t,e,n=e){ds(t,"change",i=>{var r=i?t.defaultChecked:t.checked;n(r)}),zt(e)==null&&n(t.checked),pr(()=>{var i=e();t.checked=!!i})}function Ia(t){var e=t.type;return e==="number"||e==="range"}function Aa(t){return t===""?null:+t}var kn,Pi,ur,ia,qs;const ra=class ra{constructor(e){oe(this,ia);oe(this,kn,new WeakMap);oe(this,Pi);oe(this,ur);fe(this,ur,e)}observe(e,n){var i=E(this,kn).get(e)||new Set;return i.add(n),E(this,kn).set(e,i),xe(this,ia,qs).call(this).observe(e,E(this,ur)),()=>{var r=E(this,kn).get(e);r.delete(n),r.size===0&&(E(this,kn).delete(e),E(this,Pi).unobserve(e))}}};kn=new WeakMap,Pi=new WeakMap,ur=new WeakMap,ia=new WeakSet,qs=function(){return E(this,Pi)??fe(this,Pi,new ResizeObserver(e=>{for(var n of e){ra.entries.set(n.target,n);for(var i of E(this,kn).get(n.target)||[])i(n)}}))},et(ra,"entries",new WeakMap);let al=ra;var Vd=new al({box:"border-box"});function ht(t,e,n){var i=Vd.observe(t,()=>n(t[e]));ii(()=>(zt(()=>n(t[e])),i))}function Ca(t,e){return t===e||(t==null?void 0:t[Yt])===e}function Fe(t={},e,n,i){var r=Ae.r,a=_e;return ii(()=>{var s,o;return pr(()=>{s=o,o=[],zt(()=>{Ca(n(...o),t)||(e(t,...o),s&&Ca(n(...s),t)&&e(null,...s))})}),()=>{let c=a;for(;c!==r&&c.parent!==null&&c.parent.f&Ba;)c=c.parent;const u=()=>{o&&Ca(n(...o),t)&&e(null,...o)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Di(t,e){Qu(window,["resize"],()=>ni(()=>e(window[t])))}function Sl(t=!1){const e=Ae,n=e.l.u;if(!n)return;let i=()=>Es(e.s);if(t){let r=0,a={};const s=Ci(()=>{let o=!1;const c=e.s;for(const u in c)c[u]!==a[u]&&(a[u]=c[u],o=!0);return o&&r++,r});i=()=>l(s)}n.b.length&&$u(()=>{oo(e,i),qa(n.b)}),He(()=>{const r=zt(()=>n.m.map(Yc));return()=>{for(const a of r)typeof a=="function"&&a()}}),n.a.length&&He(()=>{oo(e,i),qa(n.a)})}function oo(t,e){if(t.l.s)for(const n of t.l.s)l(n);e()}const Wd={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 qi(t,e,n){return new Proxy({props:t,exclude:e},Wd)}const Ud={get(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(ui(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i)return i[e]}},set(t,e,n){let i=t.props.length;for(;i--;){let r=t.props[i];ui(r)&&(r=r());const a=En(r,e);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(ui(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const r=En(i,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===Yt||e===jo)return!1;for(let n of t.props)if(ui(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(ui(n)&&(n=n()),!!n){for(const i in n)e.includes(i)||e.push(i);for(const i of Object.getOwnPropertySymbols(n))e.includes(i)||e.push(i)}return e}};function jn(...t){return new Proxy({props:t},Ud)}function D(t,e,n,i){var x;var r=!Ni||(n&hu)!==0,a=(n&mu)!==0,s=(n&pu)!==0,o=i,c=!0,u=void 0,f=()=>s&&r?(u??(u=Ci(i)),l(u)):(c&&(c=!1,o=s?zt(i):i),o);let h;if(a){var d=Yt in t||jo in t;h=((x=En(t,e))==null?void 0:x.set)??(d&&e in t?T=>t[e]=T:void 0)}var g,_=!1;a?[g,_]=Mu(()=>t[e]):g=t[e],g===void 0&&i!==void 0&&(g=f(),h&&(r&&ru(),h(g)));var m;if(r?m=()=>{var T=t[e];return T===void 0?f():(c=!0,T)}:m=()=>{var T=t[e];return T!==void 0&&(o=void 0),T===void 0?o:T},r&&!(n&gu))return m;if(h){var p=t.$$legacy;return function(T,j){return arguments.length>0?((!r||!j||p||_)&&h(j?m():T),T):m()}}var w=!1,k=(n&vu?Ci:ua)(()=>(w=!1,m()));a&&l(k);var P=_e;return function(T,j){if(arguments.length>0){const R=j?l(k):r&&a?Ee(T):T;return z(k,R),w=!0,o!==void 0&&(o=R),T}return fn&&w||P.f&kt?k.v:l(k)}}function at(t){Ae===null&&fl(),Ni&&Ae.l!==null?Gd(Ae).m.push(t):He(()=>{const e=zt(t);if(typeof e=="function")return e})}function wr(t){Ae===null&&fl(),at(()=>()=>zt(t))}function Gd(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Zd="5";var Ao;typeof window<"u"&&((Ao=window.__svelte??(window.__svelte={})).v??(Ao.v=new Set)).add(Zd);function Nn(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Fs="https://www.playpilot.com",Kd="https://partner-api.playpilot.tech/1.0",Yd="https://img-external.playpilot.tech",Jd="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.40.0-beta.1",Qd="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Rn=600,La={};async function en(t,{headers:e={},method:n="GET",body:i=null,baseUrl:r=Kd}={}){const a=!fa()&&n==="GET";if(a&&t in La)return La[t];const s=n==="GET"?{}:{"Content-Type":"application/json"},o=await fetch(r+t,{method:n,headers:new Headers({...s,...e}),body:i?JSON.stringify(i):null});if(!(o!=null&&o.ok))throw o;const c=await o.text();let u=c;try{c&&(u=JSON.parse(c))}catch{}return a&&(La[t]=u),u}const Hs="EncryptedToken",Bs="articleReplacementEditToken",Xd="playpilot-editorial-mode";async function Vs({href:t=window.location.href,throwError:e=!1}={}){try{const n=Nn();if(!n)throw new Error("No token was provided");const i=Ws(t);if(!i)throw new Error("Could not be authenticated");return await en(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),$d(i),!0}catch(n){if(console.error(n),e)throw n}finally{ef()}return!1}function Ws(t=""){var i,r;const e=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(e)return e;if(t){const a=new URL(t).searchParams.get(Bs);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${Hs}=`).pop())==null?void 0:r.split(";")[0])||""}function $d(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=Hs+"="+t+";"+i+";path=/"}function fa(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Xd)==="true"||!!t}function ef(){const t=new URL(window.location.href);t.searchParams.delete(Bs),window.history.replaceState({},"",t)}function tf(t){let e=0;for(let n=0;n<t.length;n++){const i=t.charCodeAt(n);e=e*31+i>>>0}return e.toString(16)}function va(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<t;)n+=e[Math.floor(Math.random()*e.length)];return n}const v={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function br(){var i,r;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.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 n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(n){if(e.includes(n))return n;const a=e.find(s=>s.toLowerCase().startsWith(n+"-"));if(a)return a}return v.English}function Us(t,e=""){const n=[],i=[t];for(;i.length>0;){const r=i.pop();if(n.includes(r)||e&&r.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1|H2|H3|H4|H5)$/.test(r.tagName)||r.offsetWidth<=1)continue;const a=Array.from(r.childNodes).some(c=>{var u;return c.nodeType===Node.TEXT_NODE&&((u=c.nodeValue)==null?void 0:u.trim())!==""});if(a&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const s=r.tagName==="P"&&!!r.textContent;if(a||s){n.push(r);continue}const o=Array.from(r.children);for(let c=o.length-1;c>=0;c--)i.push(o[c])}return n}function xl(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const n=t.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function Gs(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function tr(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const n=xl(),i=Us(n,(t==null?void 0:t.exclude_elements_selector)||""),r=Gs(i);return{parentElement:n,elements:i,pageText:r}}function Zs(){const t=xl();return{content_heading:nf(t),content_modified_time:rf(t),content_published_time:af(t)}}function nf(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function rf(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=Ks().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Pl(n):null}function af(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,n=Ks().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Pl(n):null}function Pl(t){try{return new Date(t).toISOString()}catch{return null}}function Ks(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(n=>n.textContent.includes("dateModified")||n.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function Jn(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function lf(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function Ys(t){return Object.entries(t).filter(([n,i])=>i!=null&&i!=="").map(([n,i])=>`${n}=${i}`).join("&")}function of(t){return!!(t.exclude_urls_pattern&&Jn().match(new RegExp(t.exclude_urls_pattern)))}let Ma=null;async function Zi({url:t=Jn(),params:e={},method:n="GET"}={}){const i=Nn(),r=fa()?await Vs():!1,a=br();if(!i)throw new Error("No token was provided");const s=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${r?"&editorial_mode_enabled=true":""}&language=${a}`;let o;if(n==="POST"){const{pageText:c}=tr();e.run_ai&&(e.hash=tf(c||""),e.page_text=c),e.url=t,e.metadata=Zs(),o=await en(s,{method:"POST",body:e})}else o=await en(s+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=o,o}async function so({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:r=()=>null}={}){let a=0;Ma&&clearTimeout(Ma);const s=async(o,c)=>{let u;try{try{u=await Zi()}catch(h){throw console.error(h),(h==null?void 0:h.status)===404&&(u=await Zi({method:"POST"}),u.ai_enabled&&(u=await Zi({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:f}=tr();if(u&&e&&(u=await sf(f,u)),t&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=co(u.manual_injections||[]),u.ai_injections=co(u.ai_injections||[]),o(u);return}catch{if(a++,a>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),o();return}u&&r(u),Ma=setTimeout(()=>s(o),n)}};return new Promise(s)}async function sf(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const n=async()=>await Zi({params:{run_ai:!0},method:"POST"}),i=Zs().content_modified_time,r=e.content_modified_time?Pl(e.content_modified_time):null,a=i&&r===i;if(i&&e.ai_last_run&&e.ai_progress_message==="Failed"){const s=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(e.ai_last_run)<s)return await n()}return e.ai_last_run&&a||new Date(i||0)<=new Date(r||0)?e:await n()}function co(t){return t.map(e=>({...e,key:cf(e.sid)}))}function cf(t){return t+"-"+va()}function uf(t,e,n){return t.filter(i=>n.every(r=>i[r]===e[r])).length}function df(t,e){return e.some(n=>t>=n.start&&t<n.end)}function Js(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Tl(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function uo(t,e,n=[]){var a,s;const i=document.createTreeWalker(e);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(t)&&!n.includes(((s=r.parentNode)==null?void 0:s.nodeName)||"")););return r}function fo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function ff(t,e,n,i){const r=Js(e),a=Tl(e),s=t.slice(0,i),o=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,u=new RegExp(`${a.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),f=o.replace(u,n);return s+f}function vf(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function Ut(t){return Tl(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function hf(t,e,n){const i=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!i||!t.textContent)return{before:"",after:""};const r=Math.max(i.innerText.indexOf(t.textContent),0),a=vo(i.innerText.slice(0,e+r)),s=i.innerText.slice(n+r),o=vo(ho(a,2)),c=ho(s,2);return{before:o,after:c}}function vo(t){return t.split("").reverse().join("")}function ho(t,e=1){const n=t.match(/[^\s]+/g);return n?n.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function Kr(t,e){let n=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)n++,i+=e.length;return n}function gf(t,e,n){const i=[];let r=0;for(;r<=t.length;){const a=e?t.indexOf(e,r):r;if(a===-1&&e)break;const s=e?a+e.length:a,o=n?t.indexOf(n,s):t.length;if(n&&o===-1)break;const c=t.slice(s,o);i.push({match:c,index:s}),r=n?o+n.length:t.length+1}return i}function mf(t,e,n,i){const a=gf(t,n,i).filter(({match:o})=>Tl(o).includes(e));return a.length?a.reduce((o,c)=>!o||c.match.length<o.match.length?c:o):null}function pf(t){var e,n;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((n=t.match(/\s*$/))==null?void 0:n[0].length)||0}}function _f(t,e,n=0){const i=e.innerHTML,r=[],a=yf(e);let s=i.indexOf(t);for(;s!==-1;)df(s,a)&&r.push(s),s=i.indexOf(t,s+t.length);return r[n]??-1}function yf(t){const e=[],n=t.innerHTML;let i=!1,r=!1,a=!1,s=0;for(let o=0;o<n.length;o++){const c=n[o];if(!r&&!i&&c==="<"){i=!0,a&&(e.push({start:s,end:o}),a=!1);continue}if(i&&c==='"'&&(r=!r),i&&!r&&c===">"){i=!1;continue}!i&&!r&&!a&&(s=o,a=!0)}return!e.length&&t.textContent.length&&e.push({start:s,end:t.innerHTML.length}),e}function wf(t,e){const n=[" ",".",",","<",">"];try{const i=n.map(o=>"\\"+o).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`([${i}])${r}([${i}])`),s=e.match(a);return s!=null&&s.index?s.index+1:-1}catch{return-1}}function Qs(t){return t.ctrlKey||t.metaKey||t.button!==0}const se={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",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",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",InjectionPopoverView:"ali_injection_popover_view",InjectionPopoverClose:"ali_injection_popover_close",InjectionPopoverPlaylinkClick:"ali_injection_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",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_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",DisplayedAdVideoPercentage:"ali_display_ad_video_percentage",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",WidgetArticleRailTitleClick:"ali_widget_article_rail_title_click",ShareTitle:"ali_share_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",CardToExploreCta:"ali_card_to_explore_cta",TitleParticipantsView:"ali_title_participants_view",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Ct={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Pn={Card:"tpi_card",Link:"tpi_link"};function bf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function zn(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Rr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const ha=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function kf(t=[]){return t.map(e=>{var n;return((n=ha.find(i=>i.slug===e))==null?void 0:n.name)||""}).filter(Boolean)}const Da="playpilot_user_id",ja="playpilot_session_id";function Xs(){if(!El())return null;try{const t=localStorage.getItem(Da);return t||(localStorage.setItem(Da,va(16)),localStorage.getItem(Da))}catch{return null}}function Sf(){if(!El())return null;try{const t=sessionStorage.getItem(ja);return t||(sessionStorage.setItem(ja,va(16)),sessionStorage.getItem(ja))}catch{return null}}function El(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&zn("tracking")}const xf="https://insights.playpilot.net";async function ce(t,e=null,n={}){var r,a,s,o,c,u;if(Rr())return;if(!zn("tracking")){Tf(t,e,n);return}if((((r=window.PlayPilotLinkInjections.tracked_events)==null?void 0:r.length)||0)>500)return;const i=new Headers({"Content-Type":"application/json"});e&&(n={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:kf(e.genres),providers:[...new Set(((a=e.providers)==null?void 0:a.map(f=>f.name))||[])],...n}),El()&&(n.user_id=Xs(),n.session_id=Sf(),n.region=window.PlayPilotLinkInjections.region),n.version="8.39.0",n.time_since_initialize=(s=window.PlayPilotLinkInjections)!=null&&s.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,n.url=Jn(),n.url_params=lf(),n.organization_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.organization_sid)||"undefined",n.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",n.device={type:window.innerWidth>Rn?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((u=screen.orientation)==null?void 0:u.type)||"undefined"},fetch(xf,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:n,source:"ali",keepalive:!0})}),Pf({event:t,payload:n})}function Pf(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function go({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Tf(t,e=null,n={}){var i;(i=window.PlayPilotLinkInjections).queued_tracking_events||(i.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:n})}function Ef(){if(zn("tracking")){for(const{event:t,title:e,payload:n}of window.PlayPilotLinkInjections.queued_tracking_events||[])ce(t,e,n);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function $s(){if(!zn("ads"))return[];if(window.PlayPilotLinkInjections.no_affiliate)return[];const t=Nn();if(!t)throw new Error("No token was provided");try{return await en(`/ads/browse/?api-token=${t}`)}catch(e){throw ce(se.AdsFetchFailed,null,{status:e.status}),e}}function ei(t){var e;return!zn("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(n=>n.campaign_format===t)||null}function If(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}const Af={Argentina:"ar",Australia:"au",Austria:"at",Belgium:"be",Brazil:"br",Canada:"ca",Chile:"cl",Colombia:"co",Denmark:"dk",Finland:"fi",France:"fr",Germany:"de",India:"in",Ireland:"ie",Italy:"it",Mexico:"mx",Netherlands:"nl",Norway:"no",Peru:"pe",Poland:"pl",Portugal:"pt",Russia:"ru",Singapore:"sg",Spain:"es",Sweden:"se",Switzerland:"ch",UK:"uk",USA:"us"},ec="playpilot_retargeting_user_id",tc="playpilot_retargeting_region",Cf=500,mo=[];let Ra=[],Oa=null;function Kt(t,e={}){var c;const n=window[ec]||null,i=window[tc]||null,r=((c=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:c[1])||null,a=window.location.href,s={event:t,url:a,user_id:n,client_id:r,region:i,params:e},o=JSON.stringify(s);mo.includes(o)||(Ra.push(s),mo.push(o),Oa&&clearTimeout(Oa),Oa=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ra)}),Ra=[]},Cf))}function nc(t,e={}){return()=>{He(()=>Kt(t,e))}}function Lf(t,e={}){return n=>{const i=()=>Kt(t,e);He(()=>(n.addEventListener("click",i),()=>n.removeEventListener("click",i)))}}async function kr(t=5e3){var n,i,r,a;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.region;if(e)return e;try{const o=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(i=o==null?void 0:o.country)==null?void 0:i.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),Mf(c),c}catch(s){return ce(se.RegionRequestFailed,null,{message:s.message}),((a=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:a.fallback_region)||""}}async function ic(t=""){try{return t||(t=await kr()),!t||Object.values(Af).some(e=>e===t)}catch{return!0}}function Mf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[tc]=t)}async function ga(t={}){const e=Nn();if(!e)throw new Error("No token was provided");if(t={...t,language:br(),include_count:!1},t.region!==null){let n=t.region||await kr();await ic(n)||(n="gl"),t.region=n}return await en(`/titles/browse?api-token=${e}&`+Ys(t))}async function rc(t){return(await ga({related_to_sid:t.sid})).results}async function ac(t){const n=(await ga({sids:t,no_region_filter:!0})).results[0];if(!n)throw new Error("No title was returned for sid: "+t);return n}const Df={"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"},"Show Less":{[v.English]:"Show less",[v.Swedish]:"Visa mindre",[v.Danish]:"Vis mindre"},"Read More":{[v.English]:"Read more",[v.Swedish]:"Läs mer",[v.Danish]:"Læs mere"},"Read Less":{[v.English]:"Read less",[v.Swedish]:"Läs mindre",[v.Danish]:"Læs mindre"},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 Subheading":{[v.English]:"Discover and search all movies and TV shows",[v.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[v.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[v.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[v.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[v.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"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"},"IMDb Rating":{[v.English]:"IMDb Rating",[v.Swedish]:"IMDb-betyg",[v.Danish]:"IMDb-vurdering"},"-popularity":{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},"-new":{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"-best":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},"-imdb_score":{[v.English]:"IMDb Rating",[v.Swedish]:"IMDb-betyg",[v.Danish]:"IMDb-vurdering"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"Page Not Found":{[v.English]:"Page not found",[v.Swedish]:"Sidan hittades inte",[v.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[v.English]:"Mentioned in this article",[v.Swedish]:"Nämnda i den här artikeln",[v.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[v.English]:"Sorry, your region is not supported",[v.Swedish]:"Tyvärr stöds inte din region",[v.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[v.English]:"Show [[count]] more",[v.Swedish]:"Visa [[count]] till",[v.Danish]:"Vis [[count]] mere"},Movies:{[v.English]:"Movies",[v.Swedish]:"Filmer",[v.Danish]:"Film"},Shows:{[v.English]:"Shows",[v.Swedish]:"Serier",[v.Danish]:"Serier"},Documentaries:{[v.English]:"Documentaries",[v.Swedish]:"Dokumentärer",[v.Danish]:"Dokumentarer"},"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"},"Explore All Movies And Shows":{[v.English]:"Explore all movies and TV shows",[v.Swedish]:"Utforska alla filmer och tv-serier",[v.Danish]:"Udforsk alle film og tv-serier"},"Job: all":{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},"Job: actor":{[v.English]:"Actor",[v.Swedish]:"Skådespelare",[v.Danish]:"Skuespiller"},"Job: producer":{[v.English]:"Producer",[v.Swedish]:"Producent",[v.Danish]:"Producer"},"Job: executive-producer":{[v.English]:"Executive Producer",[v.Swedish]:"Verkställande producent",[v.Danish]:"Administrerende producer"},"Job: writer":{[v.English]:"Writer",[v.Swedish]:"Manusförfattare",[v.Danish]:"Manuskriptforfatter"},"Job: director":{[v.English]:"Director",[v.Swedish]:"Regissör",[v.Danish]:"Instruktør"},"Job: cinematographer":{[v.English]:"Cinematographer",[v.Swedish]:"Filmfotograf",[v.Danish]:"Filmfotograf"},"Job: editor":{[v.English]:"Editor",[v.Swedish]:"Redaktör",[v.Danish]:"Redaktør"},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=br()){var n;return((n=Df[t])==null?void 0:n[e])||t}const jf=t=>t;function lc(t){const e=t-1;return e*e*e+1}function po(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function dn(t,{delay:e=0,duration:n=400,easing:i=jf}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function Ki(t,{delay:e=0,duration:n=400,easing:i=lc,x:r=0,y:a=0,opacity:s=0}={}){const o=getComputedStyle(t),c=+o.opacity,u=o.transform==="none"?"":o.transform,f=c*(1-s),[h,d]=po(r),[p,m]=po(a);return{delay:e,duration:n,easing:i,css:(_,g)=>`
6
- transform: ${u} translate(${(1-_)*h}${d}, ${(1-_)*p}${m});
7
- opacity: ${c-f*g}`}}function qi(t,{delay:e=0,duration:n=400,easing:i=lc,start:r=0,opacity:a=0}={}){const s=getComputedStyle(t),o=+s.opacity,c=s.transform==="none"?"":s.transform,u=1-r,f=o*(1-a);return{delay:e,duration:n,easing:i,css:(h,d)=>`
5
+ `)}function tr(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const n=xl(),i=Us(n,(t==null?void 0:t.exclude_elements_selector)||""),r=Gs(i);return{parentElement:n,elements:i,pageText:r}}function Zs(){const t=xl();return{content_heading:nf(t),content_modified_time:rf(t),content_published_time:af(t)}}function nf(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function rf(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=Ks().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Pl(n):null}function af(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,n=Ks().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Pl(n):null}function Pl(t){try{return new Date(t).toISOString()}catch{return null}}function Ks(){const e=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(n=>n.textContent.includes("dateModified")||n.textContent.includes("datePublished"));if(!e)return{};try{return JSON.parse(e.textContent||"")}catch{return{}}}function Jn(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function lf(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function Ys(t){return Object.entries(t).filter(([n,i])=>i!=null&&i!=="").map(([n,i])=>`${n}=${i}`).join("&")}function of(t){return!!(t.exclude_urls_pattern&&Jn().match(new RegExp(t.exclude_urls_pattern)))}let Ma=null;async function Zi({url:t=Jn(),params:e={},method:n="GET"}={}){const i=Nn(),r=fa()?await Vs():!1,a=br();if(!i)throw new Error("No token was provided");const s=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${r?"&editorial_mode_enabled=true":""}&language=${a}`;let o;if(n==="POST"){const{pageText:c}=tr();e.run_ai&&(e.hash=tf(c||""),e.page_text=c),e.url=t,e.metadata=Zs(),o=await en(s,{method:"POST",body:e})}else o=await en(s+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=o,o}async function so({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:r=()=>null}={}){let a=0;Ma&&clearTimeout(Ma);const s=async(o,c)=>{let u;try{try{u=await Zi()}catch(h){throw console.error(h),(h==null?void 0:h.status)===404&&(u=await Zi({method:"POST"}),u.ai_enabled&&(u=await Zi({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:f}=tr();if(u&&e&&(u=await sf(f,u)),t&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=co(u.manual_injections||[]),u.ai_injections=co(u.ai_injections||[]),o(u);return}catch{if(a++,a>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),o();return}u&&r(u),Ma=setTimeout(()=>s(o),n)}};return new Promise(s)}async function sf(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const n=async()=>await Zi({params:{run_ai:!0},method:"POST"}),i=Zs().content_modified_time,r=e.content_modified_time?Pl(e.content_modified_time):null,a=i&&r===i;if(i&&e.ai_last_run&&e.ai_progress_message==="Failed"){const s=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(e.ai_last_run)<s)return await n()}return e.ai_last_run&&a||new Date(i||0)<=new Date(r||0)?e:await n()}function co(t){return t.map(e=>({...e,key:cf(e.sid)}))}function cf(t){return t+"-"+va()}function uf(t,e,n){return t.filter(i=>n.every(r=>i[r]===e[r])).length}function df(t,e){return e.some(n=>t>=n.start&&t<n.end)}function Js(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Tl(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function uo(t,e,n=[]){var a,s;const i=document.createTreeWalker(e);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(t)&&!n.includes(((s=r.parentNode)==null?void 0:s.nodeName)||"")););return r}function fo(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function ff(t,e,n,i){const r=Js(e),a=Tl(e),s=t.slice(0,i),o=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,u=new RegExp(`${a.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),f=o.replace(u,n);return s+f}function vf(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function Ut(t){return Tl(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function hf(t,e,n){const i=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!i||!t.textContent)return{before:"",after:""};const r=Math.max(i.innerText.indexOf(t.textContent),0),a=vo(i.innerText.slice(0,e+r)),s=i.innerText.slice(n+r),o=vo(ho(a,2)),c=ho(s,2);return{before:o,after:c}}function vo(t){return t.split("").reverse().join("")}function ho(t,e=1){const n=t.match(/[^\s]+/g);return n?n.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function Kr(t,e){let n=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)n++,i+=e.length;return n}function gf(t,e,n){const i=[];let r=0;for(;r<=t.length;){const a=e?t.indexOf(e,r):r;if(a===-1&&e)break;const s=e?a+e.length:a,o=n?t.indexOf(n,s):t.length;if(n&&o===-1)break;const c=t.slice(s,o);i.push({match:c,index:s}),r=n?o+n.length:t.length+1}return i}function mf(t,e,n,i){const a=gf(t,n,i).filter(({match:o})=>Tl(o).includes(e));return a.length?a.reduce((o,c)=>!o||c.match.length<o.match.length?c:o):null}function pf(t){var e,n;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((n=t.match(/\s*$/))==null?void 0:n[0].length)||0}}function _f(t,e,n=0){const i=e.innerHTML,r=[],a=yf(e);let s=i.indexOf(t);for(;s!==-1;)df(s,a)&&r.push(s),s=i.indexOf(t,s+t.length);return r[n]??-1}function yf(t){const e=[],n=t.innerHTML;let i=!1,r=!1,a=!1,s=0;for(let o=0;o<n.length;o++){const c=n[o];if(!r&&!i&&c==="<"){i=!0,a&&(e.push({start:s,end:o}),a=!1);continue}if(i&&c==='"'&&(r=!r),i&&!r&&c===">"){i=!1;continue}!i&&!r&&!a&&(s=o,a=!0)}return!e.length&&t.textContent.length&&e.push({start:s,end:t.innerHTML.length}),e}function wf(t,e){const n=[" ",".",",","<",">"];try{const i=n.map(o=>"\\"+o).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),a=new RegExp(`([${i}])${r}([${i}])`),s=e.match(a);return s!=null&&s.index?s.index+1:-1}catch{return-1}}function Qs(t){return t.ctrlKey||t.metaKey||t.button!==0}const se={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",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",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",InjectionPopoverView:"ali_injection_popover_view",InjectionPopoverClose:"ali_injection_popover_close",InjectionPopoverPlaylinkClick:"ali_injection_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",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",InjectionError:"ali_injection_error",ExploreResultsError:"venus_explore_results_error",ExploreHomeRailError:"venus_explore_home_rail_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",DisplayedAdVideoPercentage:"ali_display_ad_video_percentage",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",WidgetArticleRailTitleClick:"ali_widget_article_rail_title_click",ShareTitle:"ali_share_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",CardToExploreCta:"ali_card_to_explore_cta",TitleParticipantsView:"ali_title_participants_view",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate",ExploreAnyClick:"venus_any_click",ExploreScrollDistance:"venus_scroll_distance"},Ct={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Pn={Card:"tpi_card",Link:"tpi_link"};function bf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function zn(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Rr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const ha=[{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90}},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50}},{slug:"103",name:"Kids",categories:{kids:76}},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46}},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84}},{slug:"106",name:"Documentary",categories:{kids:50}},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44}},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28}},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88}},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40}},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38}},{slug:"112",name:"Film Noir",categories:{movie:37}},{slug:"113",name:"Game Show",categories:{series:36,kids:28}},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90}},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86}},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66}},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30}},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32}},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76}},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38}},{slug:"121",name:"Reality TV",categories:{series:24}},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74}},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32}},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80}},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20}},{slug:"126",name:"Talk Show",categories:{kids:34,series:16}},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70}},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24}},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48}},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44}},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36}},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42}},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34}},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74}},{slug:"232",name:"Stand-up",categories:{movie:18,series:18}},{slug:"240",name:"Concert",categories:{movie:45}},{slug:"900",name:"Independent",categories:{}},{slug:"901",name:"Arthouse",categories:{}},{slug:"902",name:"Bollywood",categories:{}},{slug:"903",name:"Alternate Version",categories:{}},{slug:"999",name:"Unscripted",categories:{}}];function kf(t=[]){return t.map(e=>{var n;return((n=ha.find(i=>i.slug===e))==null?void 0:n.name)||""}).filter(Boolean)}const Da="playpilot_user_id",ja="playpilot_session_id";function Xs(){if(!El())return null;try{const t=localStorage.getItem(Da);return t||(localStorage.setItem(Da,va(16)),localStorage.getItem(Da))}catch{return null}}function Sf(){if(!El())return null;try{const t=sessionStorage.getItem(ja);return t||(sessionStorage.setItem(ja,va(16)),sessionStorage.getItem(ja))}catch{return null}}function El(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&zn("tracking")}const xf="https://insights.playpilot.net";async function ce(t,e=null,n={}){var r,a,s,o,c,u;if(Rr())return;if(!zn("tracking")){Tf(t,e,n);return}if((((r=window.PlayPilotLinkInjections.tracked_events)==null?void 0:r.length)||0)>500)return;const i=new Headers({"Content-Type":"application/json"});e&&(n={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:kf(e.genres),providers:[...new Set(((a=e.providers)==null?void 0:a.map(f=>f.name))||[])],...n}),El()&&(n.user_id=Xs(),n.session_id=Sf(),n.region=window.PlayPilotLinkInjections.region),n.version="8.40.0-beta.1",n.time_since_initialize=(s=window.PlayPilotLinkInjections)!=null&&s.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,n.url=Jn(),n.url_params=lf(),n.organization_sid=((o=window.PlayPilotLinkInjections)==null?void 0:o.organization_sid)||"undefined",n.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",n.device={type:window.innerWidth>Rn?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((u=screen.orientation)==null?void 0:u.type)||"undefined"},fetch(xf,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:n,source:"ali",keepalive:!0})}),Pf({event:t,payload:n})}function Pf(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function go({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Tf(t,e=null,n={}){var i;(i=window.PlayPilotLinkInjections).queued_tracking_events||(i.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:n})}function Ef(){if(zn("tracking")){for(const{event:t,title:e,payload:n}of window.PlayPilotLinkInjections.queued_tracking_events||[])ce(t,e,n);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function $s(){if(!zn("ads"))return[];if(window.PlayPilotLinkInjections.no_affiliate)return[];const t=Nn();if(!t)throw new Error("No token was provided");try{return await en(`/ads/browse/?api-token=${t}`)}catch(e){throw ce(se.AdsFetchFailed,null,{status:e.status}),e}}function ei(t){var e;return!zn("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(n=>n.campaign_format===t)||null}function If(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}const Af={Argentina:"ar",Australia:"au",Austria:"at",Belgium:"be",Brazil:"br",Canada:"ca",Chile:"cl",Colombia:"co",Denmark:"dk",Finland:"fi",France:"fr",Germany:"de",India:"in",Ireland:"ie",Italy:"it",Mexico:"mx",Netherlands:"nl",Norway:"no",Peru:"pe",Poland:"pl",Portugal:"pt",Russia:"ru",Singapore:"sg",Spain:"es",Sweden:"se",Switzerland:"ch",UK:"uk",USA:"us"},ec="playpilot_retargeting_user_id",tc="playpilot_retargeting_region",Cf=500,mo=[];let Ra=[],Oa=null;function Kt(t,e={}){var c;const n=window[ec]||null,i=window[tc]||null,r=((c=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:c[1])||null,a=window.location.href,s={event:t,url:a,user_id:n,client_id:r,region:i,params:e},o=JSON.stringify(s);mo.includes(o)||(Ra.push(s),mo.push(o),Oa&&clearTimeout(Oa),Oa=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Ra)}),Ra=[]},Cf))}function nc(t,e={}){return()=>{He(()=>Kt(t,e))}}function Lf(t,e={}){return n=>{const i=()=>Kt(t,e);He(()=>(n.addEventListener("click",i),()=>n.removeEventListener("click",i)))}}async function kr(t=5e3){var n,i,r,a;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.region;if(e)return e;try{const o=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(i=o==null?void 0:o.country)==null?void 0:i.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),Mf(c),c}catch(s){return ce(se.RegionRequestFailed,null,{message:s.message}),((a=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:a.fallback_region)||""}}async function ic(t=""){try{return t||(t=await kr()),!t||Object.values(Af).some(e=>e===t)}catch{return!0}}function Mf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[tc]=t)}async function ga(t={}){const e=Nn();if(!e)throw new Error("No token was provided");if(t={...t,language:br(),include_count:!1},t.region!==null){let n=t.region||await kr();await ic(n)||(n="gl"),t.region=n}return await en(`/titles/browse?api-token=${e}&`+Ys(t))}async function rc(t){return(await ga({related_to_sid:t.sid})).results}async function ac(t){const n=(await ga({sids:t,no_region_filter:!0})).results[0];if(!n)throw new Error("No title was returned for sid: "+t);return n}const Df={"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"},"Show Less":{[v.English]:"Show less",[v.Swedish]:"Visa mindre",[v.Danish]:"Vis mindre"},"Read More":{[v.English]:"Read more",[v.Swedish]:"Läs mer",[v.Danish]:"Læs mere"},"Read Less":{[v.English]:"Read less",[v.Swedish]:"Läs mindre",[v.Danish]:"Læs mindre"},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 Subheading":{[v.English]:"Discover and search all movies and TV shows",[v.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[v.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[v.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[v.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[v.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"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"},"IMDb Rating":{[v.English]:"IMDb Rating",[v.Swedish]:"IMDb-betyg",[v.Danish]:"IMDb-vurdering"},"-popularity":{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},"-new":{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"-best":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},"-imdb_score":{[v.English]:"IMDb Rating",[v.Swedish]:"IMDb-betyg",[v.Danish]:"IMDb-vurdering"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"Page Not Found":{[v.English]:"Page not found",[v.Swedish]:"Sidan hittades inte",[v.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[v.English]:"Mentioned in this article",[v.Swedish]:"Nämnda i den här artikeln",[v.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[v.English]:"Sorry, your region is not supported",[v.Swedish]:"Tyvärr stöds inte din region",[v.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[v.English]:"Show [[count]] more",[v.Swedish]:"Visa [[count]] till",[v.Danish]:"Vis [[count]] mere"},Movies:{[v.English]:"Movies",[v.Swedish]:"Filmer",[v.Danish]:"Film"},Shows:{[v.English]:"Shows",[v.Swedish]:"Serier",[v.Danish]:"Serier"},Documentaries:{[v.English]:"Documentaries",[v.Swedish]:"Dokumentärer",[v.Danish]:"Dokumentarer"},"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"},"Explore All Movies And Shows":{[v.English]:"Explore all movies and TV shows",[v.Swedish]:"Utforska alla filmer och tv-serier",[v.Danish]:"Udforsk alle film og tv-serier"},"Job: all":{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},"Job: actor":{[v.English]:"Actor",[v.Swedish]:"Skådespelare",[v.Danish]:"Skuespiller"},"Job: producer":{[v.English]:"Producer",[v.Swedish]:"Producent",[v.Danish]:"Producer"},"Job: executive-producer":{[v.English]:"Executive Producer",[v.Swedish]:"Verkställande producent",[v.Danish]:"Administrerende producer"},"Job: writer":{[v.English]:"Writer",[v.Swedish]:"Manusförfattare",[v.Danish]:"Manuskriptforfatter"},"Job: director":{[v.English]:"Director",[v.Swedish]:"Regissör",[v.Danish]:"Instruktør"},"Job: cinematographer":{[v.English]:"Cinematographer",[v.Swedish]:"Filmfotograf",[v.Danish]:"Filmfotograf"},"Job: editor":{[v.English]:"Editor",[v.Swedish]:"Redaktör",[v.Danish]:"Redaktør"},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=br()){var n;return((n=Df[t])==null?void 0:n[e])||t}const jf=t=>t;function lc(t){const e=t-1;return e*e*e+1}function po(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function dn(t,{delay:e=0,duration:n=400,easing:i=jf}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function Ki(t,{delay:e=0,duration:n=400,easing:i=lc,x:r=0,y:a=0,opacity:s=0}={}){const o=getComputedStyle(t),c=+o.opacity,u=o.transform==="none"?"":o.transform,f=c*(1-s),[h,d]=po(r),[g,_]=po(a);return{delay:e,duration:n,easing:i,css:(m,p)=>`
6
+ transform: ${u} translate(${(1-m)*h}${d}, ${(1-m)*g}${_});
7
+ opacity: ${c-f*p}`}}function Fi(t,{delay:e=0,duration:n=400,easing:i=lc,start:r=0,opacity:a=0}={}){const s=getComputedStyle(t),o=+s.opacity,c=s.transform==="none"?"":s.transform,u=1-r,f=o*(1-a);return{delay:e,duration:n,easing:i,css:(h,d)=>`
8
8
  transform: ${c} scale(${1-u*d});
9
9
  opacity: ${o-f*d}
10
- `}}function ma(t){return t?t.replace("/src/img",""):null}function _o(t,e=null){return t!=null&&t.length?`${Yd}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Rf=A('<img class="svelte-p6g2a"/>');function pa(t,e){ne(e,!0);const n=D(e,"width",3,96),i=D(e,"height",3,144),r=D(e,"lazy",3,!0),a=D(e,"onload",3,()=>null);var s=Rf();V(o=>{ae(s,"loading",r()?"lazy":null),ae(s,"src",o),ae(s,"alt",`Movie poster for '${e.title.title??""}'`),ae(s,"width",n()),ae(s,"height",i())},[()=>ma(e.title.standing_poster)]),Se("error",s,({target:o})=>o.src=Qd),Se("load",s,function(...o){var c;(c=a())==null||c.apply(this,o)}),y(t,s),ie()}var Of=Ge('<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 _a(t,e){const n=D(e,"size",3,16);var i=Of();V(()=>{ae(i,"width",n()),ae(i,"height",n())}),y(t,i)}function Yr(t,e){ne(e,!0);const n=D(e,"size",3,"32px"),i=D(e,"onclick",3,()=>null),r=Fi(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var a=ge(),s=J(a);Ms(s,()=>e.href?"a":"button",!1,(o,c)=>{Ns(o,()=>({role:e.href?"link":"button",onclick:i(),class:"button",...r,[vi]:{"--size":n()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var u=ge(),f=J(u);Ve(f,()=>e.children??vt),y(c,u)}),y(t,a),ie()}var Nf=A('<div><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <div class="close svelte-f0c4xl"><!></div></div>');function zf(t,e){const n=D(e,"embeddable_url",3,"");let i=K(Ee(window.innerHeight)),r=K(Ee(window.innerWidth)),a=H(()=>l(r)<l(i));var s=Nf();let o;var c=x(s);Al(c,{get embeddable_url(){return n()},controls:["current-time","fullscreen","mute","play","progress"]});var u=C(c,2),f=C(u,2),h=x(f);Yr(h,{size:"42px",get onclick(){return e.onclose},"aria-label":"Close",children:(d,p)=>{_a(d,{size:24})},$$slots:{default:!0}}),V(()=>o=pe(s,1,"overlay svelte-f0c4xl",null,o,{portrait:l(a)})),Di("innerWidth",d=>z(r,d,!0)),Di("innerHeight",d=>z(i,d,!0)),re("click",u,function(...d){var p;(p=e.onclose)==null||p.apply(this,d)}),Ne(3,s,()=>dn,()=>({duration:100})),y(t,s)}me(["click"]);const Ff="https://youtube-availability.playpilot.workers.dev";async function oc(t){var n,i,r;const e=(n=await kr())==null?void 0:n.toUpperCase();if(!e)return!0;try{const a=await fetch(`${Ff}/?video_id=${t}`);if(!a.ok)throw new Error("Response was not ok");const s=await a.json();return!((i=s.blocked)!=null&&i[e]||!s.blocked&&s.allowed&&!((r=s.allowed)!=null&&r.includes(e)))}catch{return!1}}let Or={};function sc(t){const e=Qn(),n={onclose:qf,embeddable_url:t.embeddable_url||""};Or=Dt(zf,{target:e,props:n})}function qf(){Or&&(ri(Or,{outro:!0}),Or=null)}function Il(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,n=t.match(e);return(n==null?void 0:n[7])||null}async function Hf(t,e=3){let n=0,i=null;for(;n<e&&!i;){const r=t[n],a=(r==null?void 0:r.embeddable_url)&&Il(r.embeddable_url);try{a&&await oc(a)&&(i=r)}catch{}n++}return i}var Bf=Ge('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Vf=Ge('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Wf=Ge('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function Uf(t,e){const n=D(e,"muted",3,!1);var i=Wf(),r=x(i);{var a=o=>{var c=Bf();y(o,c)},s=o=>{var c=Vf();y(o,c)};U(r,o=>{n()?o(a):o(s,-1)})}y(t,i)}Iu();var Gf=Ge('<svg width="32px" height="32px" viewBox="0 -960 960 960"><path fill="currentColor" d="M120-120v-200h80v120h120v80H120Zm520 0v-80h120v-120h80v200H640ZM120-640v-200h200v80H200v120h-80Zm640 0v-120H640v-80h200v200h-80Z"></path></svg>');function Zf(t){var e=Gf();y(t,e)}var Kf=md(A('<script src="https://unpkg.com/plyr@3"><\/script> <link rel="stylesheet" href="https://unpkg.com/plyr@3/dist/plyr.css"/>',1)),Yf=A('<button class="action svelte-1ivh34t" aria-label="Mute"><!></button> <button class="action secondary svelte-1ivh34t" aria-label="Fullscreen"><!></button>',1),Jf=A('<div><div class="player svelte-1ivh34t" data-plyr-provider="youtube" data-plyr-embed-id=""></div> <!></div>');function Al(t,e){var B;ne(e,!0);let n=D(e,"embeddable_url",3,""),i=D(e,"controls",19,()=>[]),r=D(e,"muted",7,!1),a=D(e,"loop",3,!1),s=D(e,"captions",3,!1),o=D(e,"autoplay",3,!0),c=D(e,"showActions",3,!1),u=D(e,"fallbackStartTime",3,0),f=D(e,"clickToPlay",3,!0);const h=H(()=>Il(n())),d=H(()=>{var I,b;return(((b=(I=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:I.video_playtimes)==null?void 0:b[l(h)||""])||u()+1)-1}),p=((B=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:B.replace("#",""))||"fa548a";let m=K(null),_=K(!1),g;at(()=>{if(!l(h))return;window.PlayPilotLinkInjections.video_playtimes||(window.PlayPilotLinkInjections.video_playtimes={});let I=l(d);const b=setInterval(()=>{I++,window.PlayPilotLinkInjections.video_playtimes[l(h)]=I},1e3);return()=>clearInterval(b)});function w(){typeof window.Plyr>"u"||l(m)&&(l(m).dataset.plyrEmbedId=l(h),l(m).style.setProperty("--plyr-color-main","#"+p),g=new window.Plyr(l(m),{controls:i().length===0?["play","mute","fullscreen","progress","current-time"]:i(),playsinline:!0,autoplay:o(),muted:r(),clickToPlay:f(),storage:{enabled:!1},youtube:{noCookie:!0,cc_load_policy:s()?1:0,cc_lang_pref:"auto"}}),g.on("ready",()=>{g.currentTime=l(d),k(r())}),g.on("enterfullscreen",()=>{z(_,!0),k(!1)}),g.on("exitfullscreen",()=>{z(_,!1),k(!0)}),a()&&g.on("statechange",I=>{I.detail.code===0&&requestAnimationFrame(()=>{g.play(),k(r())})}))}function k(I=!r()){r(I),g.muted=I,g.volume=I?0:1}function T(){if(/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1){sc({embeddable_url:n()}),k(!0);return}g.fullscreen.enter()}function P(I){I.detail===n()&&(g==null||g.play())}function S(I){I.detail===n()&&(g==null||g.pause())}var L={toggleMute:k,enterFullscreen:T,play:P,pause:S},R=ge();Se("playembed",Ie,P),Se("pauseembed",Ie,S),Ld("1ivh34t",I=>{var b=ge(),M=J(b);{var N=Y=>{var O=Kf(),q=J(O);Se("load",q,w),y(Y,O)};U(M,Y=>{l(h)&&Y(N)})}y(I,b)});var j=J(R);{var W=I=>{var b=Jf();let M;var N=x(b);qe(N,q=>z(m,q),()=>l(m));var Y=C(N,2);{var O=q=>{var Z=Yf(),G=J(Z),X=x(G);Uf(X,{get muted(){return r()}});var te=C(G,2),ye=x(te);Zf(ye),re("click",G,()=>k()),re("click",te,T),y(q,Z)};U(Y,q=>{c()&&q(O)})}V(()=>{M=pe(b,1,"svelte-1ivh34t",null,M,{fullscreen:l(_),"hide-controls":i().length===0&&!l(_)}),ae(N,"data-testid",n())}),y(I,b)},F=I=>{var b=rt("Something went wrong");y(I,b)};U(j,I=>{l(h)?I(W):I(F,-1)})}return y(t,R),ie(L)}me(["click"]);var Qf=A('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function cc(t,e){ne(e,!0);let n=D(e,"gap",3,"0"),i=D(e,"fill",3,!0),r=D(e,"vertical",3,!1),a=D(e,"transitionDuration",3,300),s=D(e,"threshold",3,30),o=D(e,"moveThreshold",3,0),c=D(e,"currentIndex",15,0),u=D(e,"shown",31,()=>Ee([])),f=D(e,"sliderWidth",15,0),h=D(e,"sliderHeight",15,0),d=D(e,"currentScrollPosition",15,0),p=D(e,"maxWidth",15,0),m=D(e,"maxHeight",15,0),_=D(e,"reachedEnd",15,!1),g=D(e,"distanceToEnd",15,0),w=D(e,"passedThreshold",15,!1),k=D(e,"passedMoveThreshold",15,!1),T=D(e,"allowWheel",3,!1),P=D(e,"end",3,()=>null),S=D(e,"change",3,$=>null),L=D(e,"onend",19,P),R=D(e,"onchange",19,S),j=D(e,"onresize",3,()=>null),W=K(!1),F=K(!1),B=0,I=0,b=K(void 0),M=K(void 0),N=null,Y=null;He(()=>{l(M)&&we(),l(M)&&g((r()?m():p())-d()-(r()?h():f()))}),at(()=>(lt(),()=>N==null?void 0:N.disconnect()));function O($){const ve=l(M).children.length,ke=Math.max(0,Math.min($,ve-1));le({setIndex:ke}),we()}function q(){z(F,!0),O(c()),requestAnimationFrame(()=>z(F,!1))}function Z($){Ft($.target)&&($.preventDefault(),B=be($),z(W,!0))}function G(){if(l(W)){if(!w())le({setIndex:c()});else{const $=d()-I,ve=$>0?1:-1;$!=0&&le({direction:ve})}z(W,!1),w(!1)}}function X($){if(!l(W))return;const ve=be($),ke=I+(B-ve),Ce=B-ve;k(Math.abs(Ce)>o()),w(Math.abs(d()-I)>s()),k()&&(ue(ke-o()*(Ce>0?1:-1)),we())}function te($){if(!T())return;const{deltaX:ve,deltaY:ke}=$;if(Math.abs(ve)<Math.abs(ke))return;$.preventDefault();const Ce=20,Le=r()?ke:ve,Ht=d()+Le*Ce*.02;ue(Ht),we(),Y&&clearTimeout(Y),Y=setTimeout(()=>{le({direction:Le>0?1:-1})},100)}function ye($){Ft(document.activeElement)&&($.key=="ArrowLeft"&&O(c()-1),$.key=="ArrowRight"&&O(c()+1))}function le({setIndex:$=-1,direction:ve=1}={}){const ke=Oe(),Ce=c();c(0);let Le;for(Le=0;Le<ke.length;Le++)if($!=-1){if(Le>=$)break}else if(ve>0&&ke[Le]>d()||ve<0&&ke[Le+1]>d())break;c(Math.min(Le,Xe().length-1)),ue(ke[c()],!0),I=d(),R()&&c()!=Ce&&R()(c())}function ue($,ve=!1){d($);const ke=r()?m():p(),Ce=r()?h():f(),Le=ke-Ce,Ht=r()?"clientHeight":"clientWidth";_(d()>=Le),_()&&(L()&&L()(),i()&&ve&&d(l(M)[Ht]<Ce?0:Le))}function we(){const $=Oe();Array.from($).forEach((ve,ke)=>{d()+f()<ve||u().includes(ke)||u([...u(),ke])})}function be($){var ke,Ce;const ve=r()?"pageY":"pageX";return $[ve]??((Ce=(ke=$.touches)==null?void 0:ke[0])==null?void 0:Ce[ve])}function Oe(){return Xe().map($=>r()?$.offsetTop:$.offsetLeft)}function Xe(){return Array.from(l(M).children).filter($=>$ instanceof HTMLElement).filter($=>$.src!="about:blank")}function lt(){N=new ResizeObserver($=>{for(const ve of $){const ke=Array.isArray(ve.contentBoxSize)?ve.contentBoxSize[0]:ve.contentBoxSize;p(ke.inlineSize),m(ke.blockSize)}j()()}),N.observe(l(M))}function Ft($){return $===l(b)||($==null?void 0:$.closest(".slider"))===l(b)}var qt={setIndex:O,reposition:q},tn=Qf();Se("mousedown",Ie,Z),Se("mouseup",Ie,G),Se("mousemove",Ie,X),Se("touchstart",Ie,Z,void 0,!0),Se("touchend",Ie,G),Se("touchmove",Ie,X,void 0,!0),Se("keydown",Ie,ye),Se("resize",Ie,q);var $e=J(tn);let li;var nn=x($e);let oi;var he=x(nn);Ve(he,()=>e.children??vt,()=>({sliderWidth:f(),sliderHeight:h(),shown:u(),currentIndex:c(),setIndex:O,currentScrollPosition:d(),maxWidth:p(),reachedEnd:_(),distanceToEnd:g()})),qe(nn,$=>z(M,$),()=>l(M)),qe($e,$=>z(b,$),()=>l(b));var je=C($e,2);return Ve(je,()=>e.controls??vt,()=>({sliderWidth:f(),sliderHeight:h(),shown:u(),currentIndex:c(),setIndex:O,currentScrollPosition:d(),maxWidth:p(),reachedEnd:_(),distanceToEnd:g()})),V($=>{li=pe($e,1,"slider svelte-1gs8ha8",null,li,{dragging:l(W),"passed-threshold":w(),vertical:r()}),oi=Ue(nn,"",oi,$)},[()=>({transform:`translate${r()?"Y":"X"}(${d()*-1}px)`,"transition-duration":`${(l(W)||l(F)?0:a())??""}ms`,"--gap":parseFloat(n()||"0")?n():null})]),Se("wheel",$e,te),ht($e,"clientWidth",f),ht($e,"clientHeight",h),y(t,tn),ie(qt)}var Xf=Ge("<title> </title>"),$f=Ge('<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 Pt(t,e){const n=D(e,"direction",3,"right"),i=D(e,"title",3,""),r=D(e,"size",3,16);var a=$f(),s=x(a);{var o=c=>{var u=Xf(),f=x(u);V(()=>Q(f,i())),y(c,u)};U(s,c=>{i()&&c(o)})}V(()=>{pe(a,0,n(),"svelte-1m6nwwy"),ae(a,"width",`${r()??""}px`),ae(a,"height",`${r()??""}px`)}),y(t,a)}function Re(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var ev=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],tv=["difference","intersection","symmetricDifference","union"],yo=!1,Ti,It,Sn,aa,Ri,uc,dc;const la=class la extends Set{constructor(n){super();oe(this,Ri);oe(this,Ti,new Map);oe(this,It,K(0));oe(this,Sn,K(0));oe(this,aa,un||-1);if(n){for(var i of n)super.add(i);E(this,Sn).v=super.size}yo||xe(this,Ri,dc).call(this)}has(n){var i=super.has(n),r=E(this,Ti),a=r.get(n);if(a===void 0){if(!i)return l(E(this,It)),!1;a=xe(this,Ri,uc).call(this,!0),r.set(n,a)}return l(a),i}add(n){return super.has(n)||(super.add(n),z(E(this,Sn),super.size),An(E(this,It))),this}delete(n){var i=super.delete(n),r=E(this,Ti),a=r.get(n);return a!==void 0&&(r.delete(n),z(a,!1)),i&&(z(E(this,Sn),super.size),An(E(this,It))),i}clear(){if(super.size!==0){super.clear();var n=E(this,Ti);for(var i of n.values())z(i,!1);n.clear(),z(E(this,Sn),0),An(E(this,It))}}keys(){return this.values()}values(){return l(E(this,It)),super.values()}entries(){return l(E(this,It)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return l(E(this,Sn))}};Ti=new WeakMap,It=new WeakMap,Sn=new WeakMap,aa=new WeakMap,Ri=new WeakSet,uc=function(n){return un===E(this,aa)?K(n):Xt(n)},dc=function(){yo=!0;var n=la.prototype,i=Set.prototype;for(const r of ev)n[r]=function(...a){return l(E(this,It)),i[r].apply(this,a)};for(const r of tv)n[r]=function(...a){l(E(this,It));var s=i[r].apply(this,a);return new la(s)}};let Jr=la;var dr,fr;class nv{constructor(e,n){oe(this,dr);oe(this,fr);fe(this,dr,e),fe(this,fr,Xo(n))}get current(){return E(this,fr).call(this),E(this,dr).call(this)}}dr=new WeakMap,fr=new WeakMap;const iv=/\(.+\)/,rv=new Set(["all","print","screen","and","or","not","only"]);class av extends nv{constructor(e,n){let i=iv.test(e)||e.split(/[\s,]+/).some(a=>rv.has(a.trim()))?e:`(${e})`;const r=window.matchMedia(i);super(()=>r.matches,a=>fd(r,"change",a))}}function lv(t){const e=t-1;return e*e*e+1}const Hi=new av("(prefers-reduced-motion: reduce)");var ov=A('<div class="heading svelte-1ayf7b5"> </div>'),sv=A('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),cv=A('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),uv=A("<!> <!>",1),dv=A('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function Qr(t,e){ne(e,!0);let n=D(e,"heading",3,""),i=D(e,"onchange",3,()=>null),r=D(e,"onresize",3,()=>null),a=D(e,"slider",15),s=D(e,"shown",31,()=>Ee([]));var o=dv(),c=J(o);{var u=d=>{var p=ov(),m=x(p);Rt(p,(_,g)=>Re==null?void 0:Re(_,g),()=>2),V(()=>Q(m,n())),y(d,p)};U(c,d=>{n()&&d(u)})}var f=C(c,2),h=x(f);{const d=(m,_)=>{let g=()=>(_==null?void 0:_()).setIndex,w=()=>(_==null?void 0:_()).currentIndex,k=()=>(_==null?void 0:_()).reachedEnd;var T=uv(),P=J(T);{var S=j=>{var W=sv(),F=x(W);Pt(F,{direction:"left",title:"Previous"}),re("click",W,()=>g()(w()-1)),y(j,W)};U(P,j=>{w()>0&&j(S)})}var L=C(P,2);{var R=j=>{var W=cv(),F=x(W);Pt(F,{title:"Next"}),re("click",W,()=>g()(w()+1)),y(j,W)};U(L,j=>{k()||j(R)})}y(m,T)};let p=H(()=>Hi.current?0:300);qe(cc(h,{get onchange(){return i()},get onresize(){return r()},get transitionDuration(){return l(p)},allowWheel:!0,get shown(){return s()},set shown(m){s(m)},controls:d,children:(m,_)=>{var g=ge(),w=J(g);Ve(w,()=>e.children),y(m,g)},$$slots:{controls:!0,default:!0}}),m=>a(m),()=>a())}y(t,o),ie()}me(["click"]);function fc(t){return`${qs}/${t.type}/${t.slug}/`}function fv(t){return`${qs}/name/${t.sid}/`}function Cl(t){var e,n;return((n=(e=window.PlayPilotLinkInjections)==null?void 0:e.config)==null?void 0:n.explore_navigation_path)+`?route=modal&sid=${t}`}var vv=A('<img class="video-fallback svelte-12ph9f6" alt=""/>'),hv=A('<div class="video svelte-12ph9f6"><div class="video-overlay svelte-12ph9f6" title=""></div> <!></div>'),gv=A('<div class="poster svelte-12ph9f6"><!></div>'),mv=A('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),pv=A('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <span class="heading svelte-12ph9f6" data-testid="heading"> </span> <!></div>'),_v=A('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),yv=A('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),wv=A('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),bv=A("<div><!></div>");function nr(t,e){ne(e,!0);let n=D(e,"minimumLength",3,1),i=D(e,"heading",3,""),r=D(e,"size",3,"small"),a=D(e,"aside",3,!1),s=D(e,"navigateToExplore",3,!1),o=D(e,"expandable",3,!1),c=D(e,"expandedTitle",15,null),u=D(e,"expandedRailKey",15,null),f=D(e,"shown",31,()=>Ee([])),h=D(e,"onclick",3,()=>null),d=D(e,"onexpand",3,()=>null);const p=va(),_=Qi("scope")==="popover"?Qi("title"):null;let g=K(null),w=K(null),k=K(null),T=!1;at(()=>{o()&&R()});function P(b,M,N){var O,q,Z,G,X;b==null||b.preventDefault();const Y=M[N];if(o()&&!j(Y)){const te=(O=l(g))==null?void 0:O.querySelectorAll(".title")[N],ue=(((q=l(g))==null?void 0:q.getBoundingClientRect().right)||0)-te.getBoundingClientRect().right>te.clientWidth*2;T=!0,setTimeout(()=>T=!1,500),r()==="flexible"&&!ue?(Z=l(w))==null||Z.setIndex(N-2):r()==="huge"&&!ue&&((G=l(w))==null||G.setIndex(N)),L(Y),b&&d()(Y);return}if(b){if((X=l(k))==null||X.toggleMute(!0),h()(Y),s()){window.location.href=Cl(Y.sid);return}ji()?hn({event:b,type:"titles-rail",data:M,returnToTitle:_,props:{initialIndex:N}}):hn({event:b,data:Y,returnToTitle:_})}}async function S(){const b=await e.titles,M=await Hf(b);M&&(c()||u()&&u()!==p||L(M))}function L(b){u(p),c(b)}function R(){u()===p||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(Y=>Y.getBoundingClientRect().top>=0).sort((Y,O)=>Y.getBoundingClientRect().top-O.getBoundingClientRect().top)[0]!==l(g)||(c(null),u(null),S())}function j(b){var M;return u()===p&&b.sid===((M=c())==null?void 0:M.sid)}function W(b,M){o()&&(T||setTimeout(()=>P(null,b,M),250))}var F=bv();Se("scroll",Ie,R);let B;var I=x(F);vn(I,()=>e.titles,b=>{Qr(b,{get heading(){return i()},children:(M,N)=>{var Y=ge(),O=J(Y);Me(O,16,()=>({length:12}),De,(q,Z)=>{var G=wv(),X=C(x(G),4);{var te=ye=>{var le=yv(),ue=x(le);Me(ue,20,()=>({length:3}),De,(we,be)=>{var Oe=_v();y(we,Oe)}),y(ye,le)};U(X,ye=>{a()&&ye(te)})}y(q,G)}),y(M,Y)},$$slots:{default:!0}})},(b,M)=>{const N=H(()=>{var Z;return(Z=l(M))==null?void 0:Z.filter((G,X,te)=>te.findIndex(ye=>ye.sid===G.sid)===X)});var Y=ge(),O=J(Y);{var q=Z=>{Qr(Z,{get heading(){return i()},onchange:G=>W(l(M),G),onresize:()=>{var G;return(G=l(w))==null?void 0:G.reposition()},get slider(){return l(w)},set slider(G){z(w,G,!0)},get shown(){return f()},set shown(G){f(G)},children:(G,X)=>{var te=ge(),ye=J(te);Me(ye,17,()=>l(N),De,(le,ue,we,be)=>{const Oe=H(()=>j(l(ue))),Xe=H(()=>$=>P($,l(M),we));var lt=pv();let Ft;var qt=x(lt),tn=x(qt);{var $e=$=>{var ve=hv(),ke=x(ve),Ce=C(ke,2);{var Le=gt=>{qe(Al(gt,{get embeddable_url(){return l(ue).embeddable_url},muted:!0,loop:!0,captions:!0,showActions:!0}),rn=>z(k,rn,!0),()=>l(k))},Ht=gt=>{var rn=vv();V(()=>ae(rn,"src",l(ue).medium_poster)),y(gt,rn)};U(Ce,gt=>{l(ue).embeddable_url?gt(Le):gt(Ht,-1)})}re("click",ke,function(...gt){var rn;(rn=l(Xe))==null||rn.apply(this,gt)}),Ne(2,ve,()=>dn,()=>({delay:200,duration:200})),y($,ve)},li=$=>{var ve=gv(),ke=x(ve);pa(ke,{get title(){return l(ue)},width:96,height:144}),re("click",ve,function(...Ce){var Le;(Le=l(Xe))==null||Le.apply(this,Ce)}),y($,ve)};U(tn,$=>{l(Oe)?$($e):$(li,-1)})}var nn=C(qt,2),oi=x(nn),he=C(nn,2);{var je=$=>{var ve=mv(),ke=x(ve);V(()=>Q(ke,l(ue).description)),re("click",ve,function(...Ce){var Le;(Le=l(Xe))==null||Le.apply(this,Ce)}),y($,ve)};U(he,$=>{a()&&$(je)})}V(()=>{Ft=pe(lt,1,"title svelte-12ph9f6",null,Ft,{expanded:l(Oe)}),Q(oi,l(ue).title)}),re("click",nn,function(...$){var ve;(ve=l(Xe))==null||ve.apply(this,$)}),y(le,lt)}),y(G,te)},$$slots:{default:!0}})};U(O,Z=>{var G;((G=l(M))==null?void 0:G.length)>=n()&&Z(q)})}y(b,Y)}),qe(F,b=>z(g,b),()=>l(g)),V(()=>{B=pe(F,1,`titles ${r()??""}`,"svelte-12ph9f6",B,{"with-aside":a()}),ae(F,"data-role",o()?"expandable-rail":null)}),y(t,F),ie()}me(["click"]);var kv=A("<div><!></div>");function Sv(t,e){ne(e,!0);const n=D(e,"maxPage",3,4),i=D(e,"lazy",3,!1);D(e,"expandedTitle",11,null),D(e,"expandedRailKey",11,null);const r=Fi(e,["$$slots","$$events","$$legacy","fetchFunction","maxPage","lazy","expandedTitle","expandedRailKey"]),a=new Promise(()=>{});let s=K(Ee([])),o=K(Ee([])),c=K(1),u=K(!1),f=K(!0),h=K(null),d=H(()=>!i());He(()=>{l(d)&&p()}),He(()=>{l(f)||l(u)&&(l(c)>=n()||l(s).length-l(o).length>10||(Uu(c),p()))}),at(()=>{if(!i()||!l(h))return;const k=new IntersectionObserver(([T])=>{T.isIntersecting&&(z(d,!0),k.disconnect())},{rootMargin:window.innerHeight/2+"px"});return k.observe(l(h)),()=>k==null?void 0:k.disconnect()});async function p(){z(f,!0),z(u,!1);try{const{next:k,results:T}=await e.fetchFunction(l(c));z(s,[...l(s),...T],!0),z(u,!!k)}finally{z(f,!1)}}var m=kv(),_=x(m);{var g=k=>{nr(k,jn({get titles(){return a}},()=>r))},w=k=>{nr(k,jn({get titles(){return l(s)}},()=>r,{get shown(){return l(o)},set shown(T){z(o,T,!0)}}))};U(_,k=>{i()&&!l(d)||!l(s).length&&l(f)?k(g):k(w,-1)})}qe(m,k=>z(h,k),()=>l(h)),y(t,m),ie()}var xv=A('<div class="rail svelte-1b834ry"><!></div>'),Pv=A('<div class="rail svelte-1b834ry"><!></div>'),Tv=A('<div data-testid="explore-home"></div> <!>',1);function wo(t,e){ne(e,!0);let n=K(null),i=K(null),r=K(Ee(window.innerWidth));async function a(){return await en("/streaming-guide/rails",{baseUrl:"https://partner.playpilot.net/api"})}async function s(u={}){try{return await ga({...u,page_size:25})}catch(f){throw console.log(f),ce(se.ExploreHomeRailError,null,{message:f.message||f.status.toString()||"",params:u}),new Error(f)}}var o=Tv();Se("scroll",Ie,onscroll);var c=C(J(o),2);vn(c,a,u=>{var f=ge(),h=J(f);Me(h,16,()=>({length:3}),De,(d,p)=>{var m=Pv(),_=x(m);nr(_,{heading:" ",titles:new Promise(()=>{}),size:"huge"}),y(d,m)}),y(u,f)},(u,f)=>{var h=ge(),d=J(h);Me(d,17,()=>l(f),De,(p,m)=>{let _=()=>l(m).headings,g=()=>l(m).params,w=()=>l(m).properties;const k=H(()=>_()[br()]);var T=xv(),P=x(T);{let S=H(()=>w().size||"flexible"),L=H(()=>w().minimum??7);Sv(P,jn({get heading(){return l(k)}},w,{lazy:!0,onclick:()=>ce(se.ExploreTitleRailModalView,null,{rail:_()}),onexpand:R=>ce(se.ExploreTitleRailExpandClick,R,{rail:_()}),fetchFunction:R=>s({...g(),page:R}),get size(){return l(S)},get minimumLength(){return l(L)},get expandedTitle(){return l(n)},set expandedTitle(R){z(n,R,!0)},get expandedRailKey(){return l(i)},set expandedRailKey(R){z(i,R,!0)}}))}y(p,T)}),y(u,h)},u=>{var f=rt();V(h=>Q(f,h),[()=>ee("An Error Occurred")]),y(u,f)}),Di("innerWidth",u=>z(r,u,!0)),y(t,o),ie()}function ai(){var t;return!((t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels)||!zn("pixels")?!1:(window[ec]=Xs(),!0)}var Ev=A("<button><!></button>");function Ot(t,e){const n=D(e,"variant",3,"filled"),i=D(e,"size",3,"base"),r=D(e,"label",3,null),a=D(e,"active",3,!1);var s=Ev();let o;var c=x(s);Ve(c,()=>e.children??vt),V(()=>{o=pe(s,1,`button ${n()??""} ${i()??""}`,"svelte-5bqh67",o,{active:a()}),ae(s,"aria-label",r())}),re("click",s,function(...u){var f;(f=e.onclick)==null||f.apply(this,u)}),y(t,s)}me(["click"]);var Iv=Ge('<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 Ll(t,e){const n=D(e,"size",3,14);var i=Iv();V(()=>{ae(i,"width",n()),ae(i,"height",n())}),y(t,i)}function vc(t){const e=t.filter(i=>!!i.logo_url);let n=[];for(const i of e){let r=i;const a=n.find(c=>c.name===r.name),s=a==null?void 0:a.extra_info.category,o=r.extra_info.category;(s==="RENT"&&o==="BUY"||s==="BUY"&&o==="RENT")&&(n=n.filter(c=>c.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),n.push(r)}return n}var Av=A('<img alt="" data-playpilot-pixel="" class="svelte-ico4xd"/>');function Ml(t,e){ne(e,!0);let n=K(Ee(Math.random()));var i=ge();Se("updateconsent",Ie,()=>z(n,Math.random(),!0));var r=J(i);yr(r,()=>l(n),a=>{var s=ge(),o=J(s);{var c=f=>{var h=ge(),d=J(h);Me(d,17,()=>e.pixels,De,(p,m)=>{var _=Av();V(()=>ae(_,"src",l(m))),y(p,_)}),y(f,h)},u=H(()=>zn("pixels"));U(o,f=>{l(u)&&f(c)})}y(a,s)}),y(t,i),ie()}var Cv=A('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Lv(t,e){ne(e,!0);const n=D(e,"size",3,30),i=D(e,"onclick",3,()=>null),r=H(()=>e.playlink.name),a=H(()=>e.playlink.url),s=H(()=>e.playlink.logo_url),o=H(()=>e.playlink.pixels);var c=Cv();let u;var f=x(c),h=C(f,2);{var d=p=>{Ml(p,{get pixels(){return l(o)}})};U(h,p=>{var m;(m=l(o))!=null&&m.length&&p(d)})}V(p=>{ae(c,"href",l(a)),ae(c,"data-playlink",l(r)),u=Ue(c,"",u,{"--size":`${n()??""}px`}),ae(f,"src",p),ae(f,"alt",l(r)),ae(f,"height",n()),ae(f,"width",n())},[()=>ma(l(s))]),re("click",c,function(...p){var m;(m=i())==null||m.apply(this,p)}),y(t,c),ie()}me(["click"]);var Mv=A('<button class="button more svelte-1plv45z"> </button>'),Dv=A('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),jv=A('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function hc(t,e){ne(e,!0);const n=D(e,"size",3,30);let i=K(3);const r=vc(e.playlinks),a=H(()=>r.slice(0,l(i)));function s(m){m.stopPropagation()}function o(){z(i,r.length,!0)}var c=jv(),u=x(c);Me(u,17,()=>l(a),De,(m,_)=>{Lv(m,{get playlink(){return l(_)},onclick:s,get size(){return n()}})});var f=C(u,2);{var h=m=>{var _=Mv(),g=x(_);V(()=>Q(g,`+${r.length-l(i)}`)),re("click",_,o),y(m,_)};U(f,m=>{r.length>l(i)&&m(h)})}var d=C(f,2);{var p=m=>{var _=Dv();y(m,_)};U(d,m=>{r.length||m(p)})}y(t,c),ie()}me(["click"]);var Rv=A("<div>Series</div>"),Ov=A("<div> </div>"),Nv=A('<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> </div> <!></div></button>');function zv(t,e){ne(e,!0);const n=D(e,"onclick",3,()=>null),i=D(e,"hidePlaylinks",3,!1);var r=Nv(),a=x(r),s=x(a);pa(s,{get title(){return e.title},width:120,height:213,lazy:!0});var o=C(s,2),c=x(o),u=x(c);Ll(u,{size:12});var f=C(u),h=C(c,2);{var d=S=>{var L=Rv();y(S,L)};U(h,S=>{e.title.type==="series"&&S(d)})}var p=C(h,2);{var m=S=>{var L=Ov(),R=x(L);V(()=>Q(R,`${e.title.length??""} min`)),y(S,L)};U(p,S=>{e.title.length&&S(m)})}var _=C(a,2),g=x(_);let w;var k=x(g),T=C(g,2);{var P=S=>{hc(S,{get playlinks(){return e.title.providers},size:20})};U(T,S=>{i()||S(P)})}V(()=>{Q(f,` ${(e.title.imdb_score||"-")??""}`),w=pe(g,1,"heading svelte-12igath",null,w,{margin:!i()}),Q(k,e.title.title)}),re("click",r,function(...S){var L;(L=n())==null||L.apply(this,S)}),y(t,r),ie()}me(["click"]);var Fv=A('<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 qv(t){var e=Fv(),n=C(x(e),2),i=x(n);Ue(i,"",{},{width:"60%"}),y(t,e)}var Hv=A('<div class="svelte-pkkpyl"> </div>'),Bv=A("<div> </div>"),Vv=A('<button 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 class="action svelte-pkkpyl"><!></div></button>');function Wv(t,e){var I;ne(e,!0);const n=D(e,"compact",3,!1),i=D(e,"onclick",3,()=>null),r=!!((I=window.PlayPilotLinkInjections)!=null&&I.no_affiliate);var a=Vv();let s;var o=x(a),c=x(o);pa(c,{get title(){return e.title},width:30,height:43,lazy:!0});var u=C(o,2),f=x(u),h=x(f),d=C(f,2),p=x(d),m=x(p);Ll(m,{size:11});var _=C(m),g=C(p,2),w=x(g),k=C(g,2),T=x(k),P=C(k,2);{var S=b=>{var M=Hv(),N=x(M);V(()=>Q(N,`${e.title.length??""} min`)),y(b,M)};U(P,b=>{e.title.length&&b(S)})}var L=C(d,2);{var R=b=>{var M=Bv();let N;var Y=x(M);V(()=>{N=pe(M,1,"description svelte-pkkpyl",null,N,{large:r}),Q(Y,e.title.description)}),y(b,M)};U(L,b=>{n()||b(R)})}var j=C(L,2);{var W=b=>{{let M=H(()=>n()?24:30);hc(b,{get playlinks(){return e.title.providers},get size(){return l(M)}})}};U(j,b=>{r||b(W)})}var F=C(u,2),B=x(F);Pt(B,{}),V(b=>{s=pe(a,1,"title svelte-pkkpyl",null,s,{compact:n()}),Q(h,e.title.title),Q(_,` ${(e.title.imdb_score||"-")??""}`),Q(w,e.title.year),Q(T,b)},[()=>ee(`Type: ${e.title.type}`)]),re("click",a,function(...b){var M;(M=i())==null||M.apply(this,b)}),y(t,a),ie()}me(["click"]);var Uv=A('<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 Gv(t){var e=Uv(),n=C(x(e),2),i=x(n);Ue(i,"",{},{width:"40%"});var r=C(i,2);Ue(r,"",{},{width:"60%"});var a=C(r,2);Ue(a,"",{},{width:"80%"}),y(t,e)}var Zv=A(`<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 Kv(t){var e=Zv();y(t,e)}var Yv=A("<div><!></div>"),Jv=A("<!> <!>",1),Qv=A("<p>Something went wrong</p>"),Xv=A('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function gc(t,e){ne(e,!0);const n=D(e,"searchQuery",3,""),i=D(e,"filter",19,()=>({})),r=D(e,"forceGrid",3,!1),a=D(e,"hidePlaylinks",3,!1),s=D(e,"onTitleClick",3,null);let o=1,c=K(Ee([])),u=null,f=0,h=JSON.stringify(i())+n(),d=K(Ee(k())),p=K(0);const m=H(()=>r()||l(p)>500),_=H(()=>l(p)>1400?8:l(p)>900?6:l(p)>600?4:l(p)>400?3:2),g=H(()=>l(m)?zv:Wv),w=H(()=>l(m)?qv:Gv);He(()=>{(n()||f!=0)&&T(n())}),He(()=>{i()&&P()}),wr(S);async function k(){f+=1;const O=f,q={page_size:24,page:o};n()&&(q.search=n()),Object.entries(i()).forEach(([Z,{type:G,value:X}])=>{if(G==="string")q[Z]=X;else if(G==="array")q[Z]=X.join(",");else if(G==="range"){const[te,ye]=X;q[Z+"_min"]=te,q[Z+"_max"]=ye}});try{const Z=await ga(q)||{next:null,previous:null,results:[]};return O===f&&z(c,[...l(c),...Z.results],!0),Z}catch(Z){throw console.log(Z.status),ce(se.ExploreResultsError,null,{message:Z.message||Z.status.toString()||"",params:q}),new Error(Z)}}async function T(O){W()&&(u&&clearTimeout(u),u=setTimeout(()=>{L(),z(d,k(),!0),O&&(ce(se.ExploreSearch,null,{query:O}),ai()&&Kt(Ct.SearchQuery,{query:O}))},100))}function P(){W()&&(L(),z(d,k(),!0))}function S(){for(const O of Object.keys(i()))delete i()[O]}function L(){o=1,z(c,[],!0)}function R(){o++,z(d,k(),!0),ce(se.ExploreShowMore,null,{page:o})}function j(O,q,Z){if(s()){s()(O,l(c),Z);return}hn({event:O,data:q}),ce(se.ExploreTitleClick,q)}function W(){const O=JSON.stringify(i())+n();return O===h?!1:(h=O,!0)}var F=Xv(),B=J(F);let I,b;var M=x(B);Me(M,17,()=>l(c),De,(O,q,Z)=>{var G=ge(),X=J(G);yr(X,()=>l(q).sid,te=>{var ye=ge(),le=J(ye);Ur(le,()=>l(g),(ue,we)=>{we(ue,{get title(){return l(q)},get hidePlaylinks(){return a()},onclick:be=>j(be,l(q),Z)})}),y(te,ye)}),y(O,G)});var N=C(M,2);vn(N,()=>l(d),O=>{var q=ge(),Z=J(q);Me(Z,16,()=>({length:24}),De,(G,X)=>{var te=ge(),ye=J(te);Ur(ye,()=>l(w),(le,ue)=>{ue(le,{})}),y(G,te)}),y(O,q)},void 0,O=>{});var Y=C(B,2);vn(Y,()=>l(d),null,(O,q)=>{var Z=H(()=>{var{next:we}=l(q);return{next:we}}),G=H(()=>l(Z).next),X=Jv(),te=J(X);{var ye=we=>{var be=Yv();let Oe;var Xe=x(be);Ot(Xe,{size:"large",onclick:R,label:"Show more movies & shows",children:(lt,Ft)=>{var qt=rt();V(tn=>Q(qt,tn),[()=>ee("Show More")]),y(lt,qt)},$$slots:{default:!0}}),V(()=>Oe=pe(be,1,"show-more svelte-qc99of",null,Oe,{grid:l(m)})),y(we,be)};U(te,we=>{l(G)&&we(ye)})}var le=C(te,2);{var ue=we=>{Kv(we)};U(le,we=>{var be;!((be=l(c))!=null&&be.length)&&o===1&&we(ue)})}y(O,X)},O=>{var q=Qv();y(O,q)}),V(()=>{I=pe(B,1,"titles svelte-qc99of",null,I,{grid:l(m)}),b=Ue(B,"",b,{"--grid-columns":l(_)})}),ht(B,"clientWidth",O=>z(p,O)),y(t,F),ie()}var $v=Ge('<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 eh(t){var e=$v();y(t,e)}var th=A('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function nh(t,e){ne(e,!0);let n=K("");var i=th(),r=x(i),a=x(r);eh(a);var s=C(r,2);V(o=>ae(s,"placeholder",o),[()=>ee("Search Movies And Shows")]),re("input",s,()=>e.oninput(l(n))),Mi(s,()=>l(n),o=>z(n,o)),y(t,i),ie()}me(["input"]);async function ih(){const t=Nn();if(!t)throw new Error("No token was provided");const e={region:await kr(),page:1,include_count:!1};let n=await en(`/providers/?api-token=${t}&`+Ys(e));return n=n.filter((i,r,a)=>a.findIndex(s=>s.slug===i.slug)===r),n}function rh(t,{from:e,to:n},i={}){var{delay:r=0,duration:a=L=>Math.sqrt(L)*120,easing:s=lv}=i,o=getComputedStyle(t),c=o.transform==="none"?"":o.transform,[u,f]=o.transformOrigin.split(" ").map(parseFloat);u/=t.clientWidth,f/=t.clientHeight;var h=ah(t),d=t.clientWidth/n.width/h,p=t.clientHeight/n.height/h,m=e.left+e.width*u,_=e.top+e.height*f,g=n.left+n.width*u,w=n.top+n.height*f,k=(m-g)*d,T=(_-w)*p,P=e.width/n.width,S=e.height/n.height;return{delay:r,duration:typeof a=="function"?a(Math.sqrt(k*k+T*T)):a,easing:s,css:(L,R)=>{var j=R*k,W=R*T,F=L+R*P,B=L+R*S;return`transform: ${c} translate(${j}px, ${W}px) scale(${F}, ${B});`}}}function ah(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,n=1;e!==null;)n*=+getComputedStyle(e).zoom,e=e.parentElement;return n}var lh=Ge('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function oh(t){var e=lh();y(t,e)}var sh=Ge('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function ch(t){var e=sh();y(t,e)}var uh=A('<div class="icon svelte-dfwzqz"><!></div>'),dh=A('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),fh=A('<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 vh(t,e){ne(e,!0);let n=D(e,"options",19,()=>[{label:"Label",value:"Value"}]),i=D(e,"selected",23,()=>[]),r=D(e,"placeholder",19,()=>`${ee("Search")}...`),a=D(e,"onchange",3,()=>null),s=K("");const o=H(c);function c(){var m;return(m=n())!=null&&m.length?l(s)?n().filter(({label:_})=>_.toLowerCase().indexOf(l(s).toLowerCase())!==-1):n():[]}function u(m){const _=i().find(g=>g===m);i(_?i().filter(g=>g!==m):[...i(),m]),a()(i())}var f=fh(),h=J(f),d=x(h),p=C(h,2);Me(p,29,()=>l(o)||[],({label:m,value:_})=>_,(m,_)=>{let g=()=>l(_).label,w=()=>l(_).value;const k=H(()=>!!i().find(W=>W===w()));var T=dh(),P=x(T);let S;var L=x(P),R=C(L),j=x(R);yr(j,()=>l(k),W=>{var F=uh(),B=x(F);{var I=M=>{oh(M)},b=M=>{ch(M)};U(B,M=>{l(k)?M(I):M(b,-1)})}Ne(3,F,()=>qi,()=>({start:.25,duration:100})),y(W,F)}),V(()=>{S=pe(P,1,"option svelte-dfwzqz",null,S,{active:l(k)}),Q(L,`${g()??""} `)}),re("click",P,()=>u(w())),Cd(T,()=>rh,()=>({duration:150})),y(m,T)}),V(()=>ae(d,"placeholder",r())),Mi(d,()=>l(s),m=>z(s,m)),y(t,f),ie()}me(["click"]);var hh=A('<div class="content svelte-fg0dzp"><!></div>'),gh=A("<div><!> <!></div>");function mc(t,e){ne(e,!0);let n=K(!1),i=K(null),r=K(null),a=K("left"),s=K(0),o=K(0);function c(_){const g=_.target;g&&g.closest(".dropdown")!==l(i)&&z(n,!1)}function u(_){z(n,!l(n)),l(n)&&(z(o,0),z(s,0),f(_.target))}async function f(_){if(await er(),!l(r))return;const g=16,w=200,k=window.innerHeight,T=window.innerWidth,{top:P}=l(r).getBoundingClientRect(),{left:S}=_.getBoundingClientRect();z(a,S<window.innerWidth/2?"left":"right",!0),z(s,Math.max(Math.min(window.innerHeight-P-g,k*.6),w),!0),await er();const{left:L,right:R}=l(r).getBoundingClientRect(),j=T-R;L-g<0?z(o,j):j-g<0&&z(o,j-g)}var h=gh();Se("click",Ie,c);var d=x(h);Ve(d,()=>e.button,()=>({toggle:u}));var p=C(d,2);{var m=_=>{var g=hh();let w;var k=x(g);Ve(k,()=>e.content),qe(g,T=>z(r,T),()=>l(r)),V(()=>w=Ue(g,"",w,{"--max-height":l(s)?`${l(s)}px`:null,"--offset":l(o)?`${l(o)}px`:null})),Ne(3,g,()=>qi,()=>({start:Hi.current?1:.85,duration:100})),y(_,g)};U(p,_=>{l(n)&&_(m)})}qe(h,_=>z(i,_),()=>l(i)),V(()=>pe(h,1,`dropdown ${l(a)??""}`,"svelte-fg0dzp")),y(t,h),ie()}var mh=A('<span class="label svelte-1mfj6k7"> </span>'),ph=A('<div class="active-line svelte-1mfj6k7"></div>'),_h=A('<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 yh(t,e){ne(e,!0);const n=D(e,"range",19,()=>[0,100]),i=D(e,"step",3,1),r=D(e,"value",19,n),a=D(e,"label",3,""),s=D(e,"valueAppend",3,""),o=D(e,"formatFunction",3,q=>q.toString()),c=D(e,"onchange",3,()=>null);let u=n(),f=H(()=>Xn(u,2)),h=K(Ee(l(f)[0])),d=K(Ee(l(f)[1]));const p=H(()=>l(h)!==n()[0]||l(d)!==n()[1]),m=H(()=>100/(n()[1]-n()[0])*(l(h)-n()[0])),_=H(()=>100+100/(n()[1]-n()[0])*(l(d)-n()[1])-l(m)),g=H(()=>Math.abs(n()[0]-n()[1])>10&&Math.abs(l(h)-l(d))<5);He(()=>{w(r())}),He(()=>{z(d,Math.max(l(d),l(h)+1),!0),z(d,Math.min(l(d),n()[1]),!0),z(h,Math.min(l(h),l(d)-1),!0),z(h,Math.max(l(h),n()[0]),!0)});function w(q){(Z=>{var G=Xn(Z,2);z(h,G[0],!0),z(d,G[1],!0)})(q)}function k(){requestAnimationFrame(()=>c()([l(h),l(d)]))}var T=_h(),P=x(T);{var S=q=>{var Z=mh(),G=x(Z);V((X,te)=>Q(G,`${a()??""}: ${X??""}—${te??""} ${s()??""}`),[()=>o()(l(h)),()=>o()(l(d))]),y(q,Z)};U(P,q=>{a()&&q(S)})}var L=C(P,2);let R;var j=x(L);let W;var F=C(j,2);let B;var I=C(F,2),b=x(I),M=C(I,2),N=x(M),Y=C(M,2);{var O=q=>{var Z=ph();let G;V(()=>G=Ue(Z,"",G,{left:l(m)+"%","--width":l(_)+"%"})),y(q,Z)};U(Y,q=>{l(p)&&q(O)})}V(()=>{R=pe(L,1,"range svelte-1mfj6k7",null,R,{halved:l(g)}),ae(j,"min",n()[0]),ae(j,"max",n()[1]),ae(j,"step",i()),W=pe(j,1,"svelte-1mfj6k7",null,W,{active:l(p)}),ae(F,"min",n()[0]),ae(F,"max",n()[1]),ae(F,"step",i()),B=pe(F,1,"svelte-1mfj6k7",null,B,{active:l(p)}),Q(b,l(h)),Q(N,l(d))}),re("mouseup",j,k),re("touchend",j,k),re("input",j,function(...q){}),Mi(j,()=>l(h),q=>z(h,q)),re("mouseup",F,k),re("touchend",F,k),re("input",F,function(...q){}),Mi(F,()=>l(d),q=>z(d,q)),y(t,T),ie()}me(["mouseup","touchend","input"]);function Dl(t,e){if(!t)return!1;const{type:n,value:i}=t;return!(n==="array"&&!i.length||n==="range"&&JSON.stringify(i)===JSON.stringify(e))}var wh=A(" <!>",1),bh=A('<p class="loading"> </p>'),kh=A('<p class="error"> </p>'),Sh=A('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),xh=A('<div data-testid="filter-item"><!></div>');function Ph(t,e){ne(e,!0);let n=D(e,"filter",7),i=D(e,"onchange",3,()=>null),r=D(e,"data",7,null),a=D(e,"fetchData",3,null),s=D(e,"range",3,null),o=D(e,"step",3,1),c=D(e,"valueAppend",3,"");const u=H(()=>Dl(n()[e.param],s()));let f=K(!!a());He(()=>{!r()&&a()&&h()});async function h(){try{z(f,!0),r(await a()())}catch{ce(se.ExploreFetchProvidersFailed)}finally{z(f,!1)}}function d(g,w){if(ce(se.ExploreSetFilter,null,{key:e.param,value:g,total_filter:n()}),!g){delete n()[e.param];return}n()[e.param]={type:w,value:g},i()()}var p=xh();let m;var _=x(p);mc(_,{button:(k,T)=>{let P=()=>(T==null?void 0:T()).toggle;Ot(k,{variant:"border",size:"large",get active(){return l(u)},get onclick(){return P()},children:(S,L)=>{var R=wh(),j=J(R),W=C(j);Pt(W,{direction:"down"}),V(()=>Q(j,`${e.label??""} `)),y(S,R)},$$slots:{default:!0}})},content:k=>{var T=Sh(),P=x(T);{var S=F=>{var B=bh(),I=x(B);V(b=>Q(I,`${b??""}...`),[()=>ee("Loading")]),y(F,B)},L=F=>{var B=kh(),I=x(B);V(b=>Q(I,b),[()=>ee("An Error Occurred")]),y(F,B)};U(P,F=>{l(f)?F(S):a()&&!r()&&F(L,1)})}var R=C(P,2);{var j=F=>{const B=H(()=>{var I;return(I=n()[e.param])==null?void 0:I.value});vh(F,{get options(){return r()},get selected(){return l(B)},onchange:I=>d(I,"array")})},W=F=>{const B=H(()=>{var I;return(I=n()[e.param])==null?void 0:I.value});yh(F,{get range(){return s()},get value(){return l(B)},get step(){return o()},get label(){return e.label},get valueAppend(){return c()},onchange:I=>d(I,"range")})};U(R,F=>{r()?F(j):s()&&F(W,1)})}y(k,T)},$$slots:{button:!0,content:!0}}),V(()=>m=pe(p,1,"filter-item svelte-er0ukh",null,m,{active:l(u)})),y(t,p),ie()}const Tn=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best",Chronological:"-year",IMDb:"-imdb_score"});var Th=A(" <!>",1),Eh=A("<button> </button>"),Ih=A('<div data-testid="content"></div>');function Ah(t,e){ne(e,!0);const n=D(e,"filter",7),i=D(e,"onchange",3,()=>null),r=D(e,"sortings",3,null),a="ordering",s=H(()=>r()||[{label:"Popularity",value:Tn.Popular},{label:"New",value:Tn.New},{label:"Top Rated",value:Tn.Best},{label:"IMDb Rating",value:Tn.IMDb}]),o=H(()=>{var u;return((u=l(s).find(({value:f})=>{var h;return f===((h=n()[a])==null?void 0:h.value)}))==null?void 0:u.label)||"Sort By"});function c(u){u?n()[a]={type:"string",value:u}:delete n()[a],i()()}mc(t,{button:(h,d)=>{let p=()=>(d==null?void 0:d()).toggle;Ot(h,{variant:"link",get onclick(){return p()},children:(m,_)=>{var g=Th(),w=J(g),k=C(w);Pt(k,{direction:"down"}),V(T=>Q(w,`${T??""} `),[()=>ee(l(o))]),y(m,g)},$$slots:{default:!0}})},content:h=>{var d=Ih();Me(d,21,()=>l(s),De,(p,m,_,g)=>{let w=()=>l(m).label,k=()=>l(m).value;const T=H(()=>{var R;return k()===((R=n()[a])==null?void 0:R.value)});var P=Eh();let S;var L=x(P);V(R=>{S=pe(P,1,"option svelte-1ibt2k4",null,S,{active:l(T)}),Q(L,R)},[()=>ee(w())]),re("click",P,()=>c(k())),y(p,P)}),y(h,d)},$$slots:{button:!0,content:!0}}),ie()}me(["click"]);var Ch=Ge('<svg height="24px" viewBox="0 -960 960 960" width="24px"><path fill="currentColor" transform="scale(1.2) translate(0, 75)" scale="1.2" d="M440-120v-240h80v80h320v80H520v80h-80Zm-320-80v-80h240v80H120Zm160-160v-80H120v-80h160v-80h80v240h-80Zm160-80v-80h400v80H440Zm160-160v-240h80v80h160v80H680v80h-80Zm-480-80v-80h400v80H120Z"></path></svg>');function Lh(t){var e=Ch();y(t,e)}var Mh=A('<button class="item svelte-cwy6fi"><!> <!></button>'),Dh=A('<div class="active-filter svelte-cwy6fi"></div>');function jh(t,e){ne(e,!0);function n(a){delete e.filter[a]}function i(a){let s=a.slice(0,30).trim();return a.length>s.length&&(s+="..."),s}var r=Dh();Me(r,21,()=>Object.entries(e.filter),De,(a,s)=>{var o=H(()=>Xn(l(s),2));let c=()=>l(o)[0],u=()=>l(o)[1];const f=H(()=>{const{label:_,range:g,data:w,fetchData:k}=e.items.find(T=>c()===T.param)||{};return{label:_,range:g,data:w,fetchData:k}});var h=ge(),d=J(h);{var p=_=>{var g=Mh(),w=x(g);{var k=L=>{var R=ge(),j=J(R);vn(j,()=>{var W,F;return((F=(W=l(f)).fetchData)==null?void 0:F.call(W))||l(f).data},null,(W,F)=>{var B=rt();V(I=>Q(B,I),[()=>{var I;return i((I=l(F))==null?void 0:I.filter(b=>u().value.includes(b.value)).map(b=>b.label).join(" + "))}]),y(W,B)}),y(L,R)},T=L=>{var R=rt();V(j=>Q(R,`${l(f).label??""}: ${j??""}`),[()=>u().value.join(" - ")]),y(L,R)},P=L=>{var R=rt();V(j=>Q(R,j),[()=>ee(u().value)]),y(L,R)};U(w,L=>{u().type==="array"?L(k):u().type==="range"?L(T,1):L(P,-1)})}var S=C(w,2);_a(S,{size:8}),re("click",g,()=>n(c())),y(_,g)},m=H(()=>Dl(u(),l(f).range));U(d,_=>{l(m)&&_(p)})}y(a,h)}),y(t,r),ie()}me(["click"]);var Rh=A("<div><!></div>"),Oh=A("<!> <!>",1),Nh=A('<div class="sorting svelte-11dg01g"><!></div>'),zh=A('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function pc(t,e){ne(e,!0);const n=D(e,"limit",3,!0),i=D(e,"hideActive",3,!1),r=D(e,"showSorting",3,!0),a=D(e,"sortings",3,null),s=D(e,"searchQuery",3,""),o=D(e,"onchange",3,()=>null),c=D(e,"onempty",3,()=>null),u=3,f=[{label:ee("Services"),param:"providers",fetchData:async()=>(await ih()).map(j=>({label:j.name,value:j.slug}))},{label:ee("Genres"),param:"genres",data:ha.filter(j=>parseInt(j.slug)<900).map(j=>({label:ee(j.name),value:j.slug}))},{label:ee("IMDb"),param:"imdb_score",range:[0,10],step:.1},{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",fetchData:async()=>(await fetch(`${Jd}/src/lib/data/countries.json`)).json()},{label:ee("Category"),param:"category",data:[{label:ee("Movies"),value:"movie"},{label:ee("Shows"),value:"series"},{label:ee("Kids"),value:"kids"},{label:ee("Documentary"),value:"documentary"}]}];let h=H(n),d=!1;He(()=>{Object.keys(e.filter).some(W=>{const{range:F}=f.find(B=>W===B.param)||{};return Dl(e.filter[W],F)})||s()?d=!0:d&&(d=!1,c()())});var p=zh(),m=J(p);let _;var g=x(m);Me(g,21,()=>l(h)?f.slice(0,u):f,De,(j,W)=>{var F=Rh(),B=x(F);Ph(B,jn({get filter(){return e.filter},get onchange(){return o()}},()=>l(W))),Ne(3,F,()=>qi,()=>({start:.75,duration:100})),y(j,F)});var w=C(g,2),k=x(w);{var T=j=>{Ot(j,{variant:"link",onclick:()=>z(h,!l(h)),children:(W,F)=>{var B=Oh(),I=J(B);Lh(I);var b=C(I),M=C(b);{let N=H(()=>l(h)?"down":"up");Pt(M,{get direction(){return l(N)}})}V(N=>Q(b,` ${N??""} `),[()=>l(h)?ee("Show More"):ee("Show Less")]),y(W,B)},$$slots:{default:!0}})};U(k,j=>{n()&&j(T)})}var P=C(k,2);{var S=j=>{var W=Nh(),F=x(W);Ah(F,{get filter(){return e.filter},get onchange(){return o()},get sortings(){return a()}}),Ne(3,W,()=>Ki,()=>({x:5,duration:100})),y(j,W)};U(P,j=>{r()&&j(S)})}var L=C(m,2);{var R=j=>{jh(j,{get filter(){return e.filter},get items(){return f}})};U(L,j=>{i()||j(R)})}V(()=>_=pe(m,1,"filter svelte-11dg01g",null,_,{limit:n()})),y(t,p),ie()}function Fh(t,e){ne(e,!0);const n=D(e,"trackingEvent",19,()=>se.ExploreAnyClick);function i(s){var T;const o=s.target,c=o.parentElement;if(o===document.body)return;const u=`${c==null?void 0:c.nodeName.toLowerCase()}${r(c)}`,f=`${o==null?void 0:o.nodeName.toLowerCase()}${r(o)}`,h=`${u} > ${f}`,d=o.closest("a, button"),p=a(o)||a(c)||d&&a(d),m=p?(T=p.textContent)==null?void 0:T.slice(0,30):"",_=o.getAttribute("aria-label")||(d==null?void 0:d.getAttribute("aria-label"))||(c==null?void 0:c.getAttribute("aria-label")),g=o.placeholder,w=o.alt,k=(m||_||g||w||"").trim();ce(n(),null,{selector:h,text:k})}function r(s){if(!s)return"";const o=Array.from(s.classList).filter(c=>!c.startsWith("s-"));return o.length?"."+o.join("."):""}function a(s){var o;return(o=s==null?void 0:s.childNodes)!=null&&o.length&&Array.from(s.childNodes).find(c=>{var u;return c.nodeName==="#text"&&!!((u=c.textContent)!=null&&u.trim())})||null}Se("click",Ie,i),ie()}function qh(t,e){ne(e,!0);const n=D(e,"trackingEvent",19,()=>se.ExploreScrollDistance),i={25:!1,50:!1,75:!1,100:!1};function r(){const a=window.scrollY,s=window.innerHeight,u=100/(e.element.clientHeight+a+e.element.getBoundingClientRect().top)*(a+s);for(const f in i)i[f]||u<parseInt(f)||(i[f]=!0,ce(n(),null,{scroll_percentage:f+"%"}))}Se("scroll",Ie,r),ie()}var Hh=A('<p class="description svelte-l2apr8"> </p>'),Bh=A('<div class="filter svelte-l2apr8"><!></div>'),Vh=A('<div class="unsupported-region svelte-l2apr8"> </div>'),Wh=A('<div class="explore svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <div class="subheading svelte-l2apr8"> </div> <p class="disclaimer svelte-l2apr8"></p> <!></div></div> <!> <!> <!> <!></div> <!> <!>',1);function Uh(t,e){ne(e,!0);let n=D(e,"navigate",3,()=>null),i=D(e,"searchQuery",15,""),r=D(e,"filter",27,()=>Ee({})),a=null,s=K(null),o=K(Ee(window.innerWidth));He(()=>{var b;z(s,((b=a==null?void 0:a.closest(Ol))==null?void 0:b.style.height)||null,!0)}),at(async()=>{ce(se.ExplorePageView),window.PlayPilotLinkInjections.ads=await $s()});var c=Wh(),u=J(c);let f;var h=x(u),d=x(h),p=C(x(d),2),m=x(p);Rt(p,b=>Re==null?void 0:Re(b));var _=C(p,2),g=x(_);Rt(_,(b,M)=>Re==null?void 0:Re(b,M),()=>2);var w=C(_,2);Pd(w,()=>ee("Streaming Guide Disclaimer"),!0);var k=C(w,2);{var T=b=>{var M=Hh(),N=x(M);V(Y=>Q(N,Y),[()=>ee("Streaming Guide Description")]),y(b,M)},P=H(()=>!ji());U(k,b=>{l(P)&&b(T)})}var S=C(h,2);nh(S,{oninput:b=>i(b)});var L=C(S,2);{var R=b=>{var M=Bh(),N=x(M);{let Y=H(()=>l(o)<500),O=H(()=>!i());pc(N,{get filter(){return r()},get searchQuery(){return i()},get limit(){return l(Y)},get showSorting(){return l(O)},onchange:()=>n()("results"),onempty:()=>n()("home")})}y(b,M)},j=H(()=>ji());U(L,b=>{l(j)&&b(R)})}var W=C(L,2);vn(W,ic,null,(b,M)=>{var N=ge(),Y=J(N);{var O=q=>{var Z=Vh(),G=x(Z);V(X=>Q(G,X),[()=>ee("Sorry Region Not Supported")]),y(q,Z)};U(Y,q=>{l(M)||q(O)})}y(b,N)});var F=C(W,2);Ve(F,()=>e.children),qe(u,b=>a=b,()=>a);var B=C(u,2);Fh(B,{});var I=C(B,2);qh(I,{get element(){return a}}),V((b,M)=>{f=Ue(u,"",f,{height:l(s),"--playpilot-explore-width":`${l(o)??""}px`}),Q(m,b),Q(g,M)},[()=>ee("Streaming Guide"),()=>ee("Streaming Guide Subheading")]),ht(u,"clientWidth",b=>z(o,b)),y(t,c),ie()}var Gh=A('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),Zh=A('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function jl(t,e){const n=D(e,"small",3,!1);let i=K(!1);function r(f){f.preventDefault(),f.stopPropagation(),z(i,!l(i))}var a=Zh(),s=x(a);let o;var c=C(s,2);{var u=f=>{var h=Gh(),d=x(h);V(()=>Q(d,e.disclaimer)),Ne(3,h,()=>dn,()=>({duration:50})),y(f,h)};U(c,f=>{l(i)&&f(u)})}V(()=>o=pe(s,1,"disclaimer svelte-1ldthr7",null,o,{small:n()})),re("click",a,r),y(t,a)}me(["click"]);var Kh=A('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Yh=A('<span class="cta svelte-13ka2ap"> </span>'),Jh=A('<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 bo(t,e){ne(e,!0);const n=D(e,"disclaimer",3,""),i=D(e,"hideCategory",3,!1),r=D(e,"onclick",3,()=>null),a=H(()=>e.playlink.name),s=H(()=>e.playlink.url),o=H(()=>e.playlink.logo_url),c=H(()=>e.playlink.highlighted),u=H(()=>e.playlink.cta_text),f=H(()=>e.playlink.action_text),h=H(()=>e.playlink.pixels),d=H(()=>e.playlink.extra_info.category),p=H(()=>ai()&&!l(c)),m={AVOD:ee("Stream"),SVOD:ee("Stream"),BUY:ee("Buy"),RENT:ee("Rent"),TVOD:ee("Rent Or Buy")};let _=K(0);var g=ge(),w=J(g);Ms(w,()=>{var k,T;return!((T=(k=window.PlayPilotLinkInjections)==null?void 0:k.config)!=null&&T.require_affiliate_consent)||zn("affiliate")?"a":"span"},!1,(k,T)=>{Zr(k,()=>l(p)?nc(Ct.ProviderInterest,{provider:e.playlink.slug,source:Pn.Card}):null),Zr(k,()=>l(p)?Lf(Ct.ProviderClick,{provider:e.playlink.slug}):null),Ns(k,()=>({onclick:r(),href:l(s),target:"_blank",class:"playlink","data-playlink":l(a),rel:"sponsored",[fi]:{highlighted:l(c),"no-category":i(),"no-subtext":!l(u)&&i()}}),void 0,void 0,void 0,"svelte-13ka2ap");var P=Jh(),S=J(P);let L;var R=x(S),j=C(R,2),W=x(j),F=C(j,2);{var B=G=>{var X=Kh(),te=x(X);V(ye=>Q(te,ye),[()=>m[l(d)]||ee("Stream")]),y(G,X)};U(F,G=>{i()||G(B)})}var I=C(F,2);{var b=G=>{var X=Yh(),te=x(X);V(()=>Q(te,l(u))),y(G,X)};U(I,G=>{l(u)&&G(b)})}var M=C(I,2),N=x(M),Y=C(M,2);{var O=G=>{jl(G,{get disclaimer(){return n()},small:!0})};U(Y,G=>{n()&&G(O)})}var q=C(S,2);{var Z=G=>{Ml(G,{get pixels(){return l(h)}})};U(q,G=>{var X;(X=l(h))!=null&&X.length&&G(Z)})}V((G,X)=>{L=Ue(S,"",L,{"--action-width":l(_)?`${l(_)}px`:null}),ae(R,"src",G),Q(W,l(a)),Q(N,X)},[()=>ma(l(o)),()=>l(f)||ee("Watch")]),ht(M,"clientWidth",G=>z(_,G)),y(T,P)}),y(t,g),ie()}var Qh=A('<div class="disclaimer svelte-1v1053" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1v1053">PlayPilot.com</a></div>'),Xh=A('<div class="empty svelte-1v1053" data-testid="playlinks-empty"> </div>');function $h(t,e){ne(e,!0);var n=ge(),i=J(n);{var r=s=>{var o=Qh(),c=x(o);V(u=>Q(c,`${u??""} `),[()=>{var u,f;return((f=(u=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:u.config)==null?void 0:f.playlinks_disclaimer_text)||ee("Commission Disclaimer")}]),y(s,o)},a=s=>{var o=Xh(),c=x(o);V(u=>Q(c,u),[()=>ee("Title Unavailable")]),y(s,o)};U(i,s=>{e.playlinks.length?s(r):s(a,-1)})}y(t,n),ie()}var eg=A('<div class="heading category svelte-1fykz2q"> </div>'),tg=A("<!> <!>",1),ng=A('<div class="show-more svelte-1fykz2q" data-testid="show-more"><!></div>'),ig=A("<!> <div></div> <!>",1),rg=A('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function ag(t,e){var S,L;ne(e,!0);const n=D(e,"limit",3,3),i=Qi("scope")==="modal",r=Qi("type"),a=ei("card"),s=!!((L=(S=window.PlayPilotLinkInjections)==null?void 0:S.config)!=null&&L.categorize_playlinks);let o=K(0),c=K(!s);const u=H(()=>vc(e.playlinks)),f=H(()=>m(e.playlinks)),h=H(()=>s?_(l(f)):[["",l(u)]]),d=H(()=>l(o)<500||!!a||l(u).length===1);function p(R){ce(i?se.TitleModalPlaylinkClick:se.InjectionPopoverPlaylinkClick,e.title,{playlink:R,type:r})}function m(R){const j={};for(const W of R){const{category:F}=W.extra_info;F in j||(j[F]=[]),j[F].push(W)}return j}function _(R){const j=["AVOD","SVOD","RENT","BUY"],W=[];for(const B of j)R[B]&&W.push([B,R[B]]);const F=[];for(const B of Object.values(R))for(const I of B)j.includes(I.extra_info.category)||F.push(I);return[...W,["Other",F]]}var g=rg(),w=J(g),k=x(w);Rt(w,(R,j)=>Re==null?void 0:Re(R,j),()=>3);var T=C(w,2);$h(T,{get playlinks(){return l(u)}});var P=C(T,2);Me(P,17,()=>l(h),De,(R,j,W,F)=>{var B=H(()=>Xn(l(j),2));let I=()=>l(B)[0],b=()=>l(B)[1];var M=ig(),N=J(M);{var Y=X=>{var te=eg(),ye=x(te);Rt(te,(le,ue)=>Re==null?void 0:Re(le,ue),()=>4),V(le=>Q(ye,le),[()=>ee(`Category: ${I()}`)]),y(X,te)};U(N,X=>{I()&&b().length&&X(Y)})}var O=C(N,2);let q;Me(O,21,()=>b().slice(0,l(c)?n():b().length),De,(X,te,ye)=>{var le=tg(),ue=J(le);bo(ue,{get playlink(){return l(te)},onclick:()=>p(l(te).name)});var we=C(ue,2);{var be=Oe=>{{let Xe=H(()=>If(a)),lt=H(()=>a.disclaimer||"");bo(Oe,{get playlink(){return l(Xe)},onclick:()=>ce(se.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return l(lt)}})}};U(we,Oe=>{a&&ye===0&&Oe(be)})}y(X,le)});var Z=C(O,2);{var G=X=>{var te=ng(),ye=x(te);Ot(ye,{onclick:()=>z(c,!l(c)),size:"large",children:(le,ue)=>{var we=rt();V(be=>Q(we,be),[()=>ee("Show Count More").replace("[[count]]",(b().length-n()).toString())]),y(le,we)},$$slots:{default:!0}}),y(X,te)};U(Z,X=>{b().length>n()&&l(c)&&X(G)})}V(()=>{q=pe(O,1,"playlinks svelte-1fykz2q",null,q,{list:l(d)}),ae(O,"data-testid",`category-${I()??""}`)}),ht(O,"clientWidth",X=>z(o,X)),y(R,M)}),V(R=>Q(k,R),[()=>ee("Where To Stream Online")]),y(t,g),ie()}var lg=A('<button class="toggle svelte-7itcht"> </button>'),og=A('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),sg=A('<button class="toggle svelte-7itcht"> </button>'),cg=A('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div> <!>',1);function ug(t,e){ne(e,!0);const n=D(e,"blurb",3,""),i=D(e,"limit",3,200),r=D(e,"onclick",3,()=>null);let a=K(!1);const s=H(()=>e.text.slice(0,i()));function o(){z(a,!l(a)),r()()}var c=cg(),u=J(c),f=x(u),h=x(f),d=C(h);{var p=P=>{var S=rt("...");y(P,S)};U(d,P=>{!l(a)&&e.text.length>i()&&P(p)})}var m=C(d,2);{var _=P=>{var S=lg(),L=x(S);V(R=>Q(L,R),[()=>ee("Show More")]),re("click",S,o),y(P,S)};U(m,P=>{!l(a)&&(e.text.length>i()||n())&&P(_)})}var g=C(f,2);{var w=P=>{var S=og(),L=x(S);V(()=>Q(L,n())),y(P,S)};U(g,P=>{l(a)&&P(w)})}var k=C(u,2);{var T=P=>{var S=sg(),L=x(S);V(R=>Q(L,R),[()=>ee("Show Less")]),re("click",S,o),y(P,S)};U(k,P=>{l(a)&&P(T)})}V(()=>Q(h,l(a)?e.text:l(s))),y(t,c),ie()}me(["click"]);async function dg(t){return(await en(`/participants/browse?api-token=${Nn()}&title_sid=${t.sid}`)).results}async function Nr(t){const e=await en(`/participants/${t}?api-token=${Nn()}`);if(!e)throw new Error("No participant was returned for sid: "+t);return e}var fg=Ge('<svg width="21px" height="21px" viewBox="0 -960 960 960"><path fill="currentColor" d="M430-200h100v-180h60v-184q0-27-28.5-41.5T480-620q-53 0-81.5 14.5T370-564v184h60v180Zm-105 88.5q-73-31.5-127.5-86t-86-127.5Q80-398 80-480.5t31.5-155q31.5-72.5 86-127t127.5-86Q398-880 480.5-880t155 31.5q72.5 31.5 127 86t86 127Q880-563 880-480.5T848.5-325q-31.5 73-86 127.5t-127 86Q563-80 480.5-80T325-111.5Zm381.5-142Q800-347 800-480t-93.5-226.5Q613-800 480-800t-226.5 93.5Q160-613 160-480t93.5 226.5Q347-160 480-160t226.5-93.5ZM523-657q17-17 17-43t-17-43q-17-17-43-17t-43 17q-17 17-17 43t17 43q17 17 43 17t43-17Zm-43 177Z"></path></svg>');function vg(t){var e=fg();y(t,e)}var hg=A('<button class="attribution-icon svelte-1d2v314"><!></button>'),gg=A('<img loading="lazy" alt="" class="svelte-1d2v314"/> <!>',1),mg=A('<div class="attribution-overlay svelte-1d2v314"><a target="_blank" rel="external nofollow noreferrer" class="svelte-1d2v314"> </a> <a target="_blank" rel="external nofollow noreferrer" class="svelte-1d2v314"> </a> / <a target="_blank" rel="external nofollow noreferrer" class="svelte-1d2v314"> </a></div>'),pg=A('<div class="image svelte-1d2v314" data-testid="participant-image"><!> <!></div>');function ll(t,e){ne(e,!0);const n=D(e,"participant",3,null),i=H(()=>n()||{image_metadata:null}),r=H(()=>l(i).image_metadata);let a=K(!1);function s(d){d.stopImmediatePropagation(),d.target.nodeName!=="A"&&(d.preventDefault(),z(a,!l(a)))}var o=pg(),c=x(o);{var u=d=>{var p=gg(),m=J(p),_=C(m,2);{var g=w=>{var k=hg(),T=x(k);vg(T),re("click",k,s),y(w,k)};U(_,w=>{l(r)&&w(g)})}V(()=>ae(m,"src",n().image)),y(d,p)};U(c,d=>{var p;(p=n())!=null&&p.image&&d(u)})}var f=C(c,2);{var h=d=>{var p=mg(),m=x(p),_=x(m),g=C(m),w=C(g),k=x(w),T=C(w,2),P=x(T);V(S=>{ae(m,"href",l(r).source_url),Q(_,l(r).source_text),Q(g,` ${S??""} `),ae(w,"href",l(r).author_url),Q(k,l(r).author_text),ae(T,"href",l(r).license_url),Q(P,l(r).license_name)},[()=>ee("By")]),re("click",p,s),y(d,p)};U(f,d=>{n()&&l(r)&&l(a)&&d(h)})}y(t,o),ie()}me(["click"]);var _g=A('<button class="participant svelte-zy7e3f" data-testid="participant"><!> <div class="name svelte-zy7e3f"> </div></button>'),yg=A('<div class="participant svelte-zy7e3f"><!> <div class="name svelte-zy7e3f">&nbsp;</div></div>');function wg(t,e){ne(e,!0);const n=D(e,"heading",19,()=>ee("Cast"));function i(c){const u=Ut(Gs(Us(xl()))),f={};for(const d of c){const p=Kr(u,Ut(d.name));f[d.sid]={participant:d,count:p}}return Object.values(f).sort((d,p)=>p.count-d.count).map(({participant:d})=>d)}async function r(c,u){var f,h;if(ce(se.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:u.name}),!((h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)!=null&&h.open_tpi_links_in_explore)||window.location.href.includes(window.PlayPilotLinkInjections.config.explore_navigation_path||"")){const d=await Nr(u.sid);hn({event:c,type:"participant",data:d});return}window.location.href=Cl(u.sid)}async function a(){const c=await dg(e.title);return c!=null&&c.length&&ce(se.TitleParticipantsView,e.title,{participants:c.map(u=>u.name).slice(0,20)}),c}var s=ge(),o=J(s);vn(o,a,c=>{Qr(c,{get heading(){return n()},children:(u,f)=>{var h=ge(),d=J(h);Me(d,16,()=>({length:5}),De,(p,m)=>{var _=yg(),g=x(_);ll(g,{}),y(p,_)}),y(u,h)},$$slots:{default:!0}})},(c,u)=>{var f=ge(),h=J(f);{var d=p=>{Qr(p,{get heading(){return n()},children:(m,_)=>{var g=ge(),w=J(g);Me(w,17,()=>i(l(u)).slice(0,15),De,(k,T)=>{var P=_g(),S=x(P);ll(S,{get participant(){return l(T)}});var L=C(S,2),R=x(L);V(()=>Q(R,l(T).name)),re("click",P,j=>r(j,l(T))),Se("mouseenter",P,()=>Nr(l(T).sid)),re("touchstart",P,()=>Nr(l(T).sid)),y(k,P)}),y(m,g)},$$slots:{default:!0}})};U(h,p=>{var m;(m=l(u))!=null&&m.length&&p(d)})}y(c,f)}),y(t,s),ie()}me(["click","touchstart"]);function bg(t,e){ne(e,!0);const n=rc(e.title);{let i=H(()=>ee("Similar Titles"));nr(t,{get titles(){return n},get heading(){return l(i)},onclick:r=>ce(se.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ie()}function kg(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 Sg=Ge('<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 xg(t){var e=Sg();y(t,e)}var Pg=Ge('<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 Tg(t){var e=Pg();y(t,e)}var Eg=Ge('<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 Ig(t){var e=Eg();y(t,e)}var Ag=Ge('<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 Cg(t){var e=Ag();y(t,e)}var Lg=A('<button class="svelte-827qd7"><!></button>'),Mg=A('<div class="content svelte-827qd7"><!></div>'),Dg=A("<div><!> <!></div>");function jg(t,e){const n=D(e,"label",3,""),i=D(e,"align",3,"right");let r=K(!1),a=K(null);function s(p){var _;p.currentTarget===((_=l(a))==null?void 0:_.querySelector("button"))&&p.stopPropagation(),z(r,!l(r))}var o=Dg();Se("click",Ie,()=>z(r,!1));var c=x(o);{var u=p=>{var m=ge(),_=J(m);Ve(_,()=>e.button,()=>({toggle:s})),y(p,m)},f=p=>{var m=Lg(),_=x(m);Cg(_),V(()=>{ae(m,"aria-label",n()),ae(m,"aria-expanded",l(r))}),re("click",m,s),y(p,m)};U(c,p=>{e.button?p(u):p(f,-1)})}var h=C(c,2);{var d=p=>{var m=Mg(),_=x(m);Ve(_,()=>e.children),Ne(1,m,()=>qi,()=>({duration:50,start:.85})),y(p,m)};U(h,p=>{l(r)&&p(d)})}qe(o,p=>z(a,p),()=>l(a)),V(()=>pe(o,1,`context-menu ${i()??""}`,"svelte-827qd7")),y(t,o)}me(["click"]);var Rg=A("<!> ",1),Og=A('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Ng(t,e){ne(e,!0);let n=D(e,"url",7);const r=window.innerWidth<Rn&&typeof navigator.share<"u";at(()=>{n(n()+"?utm_source=tpi")});function a(c,u){if(!r){u(c);return}ce(se.ShareTitle,null,{title:e.title,url:Jn(),method:"native"}),navigator.share({title:e.title,url:n()})}function s(){ce(se.ShareTitle,null,{title:e.title,url:Jn(),method:"copy"}),kg(n())}function o(){ce(se.ShareTitle,null,{title:e.title,url:Jn(),method:"email"}),window.location.href=`mailto:?body=${n()}`}jg(t,{button:(u,f)=>{let h=()=>(f==null?void 0:f()).toggle;Ot(u,{onclick:d=>a(d,h()),children:(d,p)=>{var m=Rg(),_=J(m);xg(_);var g=C(_);V(w=>Q(g,` ${w??""}`),[()=>ee("Share")]),y(d,m)},$$slots:{default:!0}})},children:(u,f)=>{var h=Og(),d=J(h),p=x(d);Tg(p);var m=C(p),_=C(d,2),g=x(_);Ig(g);var w=C(g);V((k,T)=>{Q(m,` ${k??""}`),Q(w,` ${T??""}`)},[()=>ee("Copy URL"),()=>ee("Email")]),re("click",d,s),re("click",_,o),y(u,h)},$$slots:{button:!0,default:!0}}),ie()}me(["click"]);var zg=Ge('<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 Fg(t){var e=zg();y(t,e)}var qg=A("<!> ",1);function Hg(t,e){ne(e,!0);function n(){sc(e.title),ce(se.TrailerClick,e.title)}Ot(t,{onclick:n,children:(i,r)=>{var a=qg(),s=J(a);Fg(s);var o=C(s);V(c=>Q(o,` ${c??""}`),[()=>ee("Watch Trailer")]),y(i,a)},$$slots:{default:!0}}),ie()}var Bg=A('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Vg(t,e){const n=D(e,"embeddable_url",3,""),i=D(e,"autoplay",3,!0);let r=K(0),a=K(0);const s=H(()=>Math.max(l(r),l(a)));var o=Bg(),c=x(o);Al(c,{get embeddable_url(){return n()},get autoplay(){return i()},fallbackStartTime:5,muted:!0,loop:!0,showActions:!0,clickToPlay:!1}),V(()=>Ue(o,`--height: ${l(s)??""}px; --width: ${l(r)??""}px;`)),ht(o,"clientWidth",u=>z(r,u)),ht(o,"clientHeight",u=>z(a,u)),y(t,o)}var Wg=A('<img alt=""/>'),Ug=A("<div><!></div>");function Gg(t,e){ne(e,!0);const n=D(e,"small",3,!1),i=D(e,"offsetMute",3,!1),r=D(e,"useVideoBackground",3,!0),a=D(e,"autoplay",3,!0),s=D(e,"inline",3,!1);let o=K(!1),c=K(!1),u=K(!1);He(()=>{r()&&e.title.embeddable_url&&oc(Il(e.title.embeddable_url)).then(_=>{z(u,_,!0)})});var f=Ug();let h;var d=x(f);{var p=_=>{Vg(_,{get embeddable_url(){return e.title.embeddable_url},get autoplay(){return a()}})},m=_=>{var g=ge(),w=J(g);yr(w,()=>l(c),k=>{var T=Wg();let P;V(S=>{ae(T,"src",S),P=pe(T,1,"svelte-1h1ov71",null,P,{loaded:l(o),blur:l(c)})},[()=>ma(l(c)?e.title.standing_poster:e.title.medium_poster)]),Se("load",T,()=>z(o,!0)),Se("error",T,()=>z(c,!0)),y(k,T)}),y(_,g)};U(d,_=>{r()&&l(u)?_(p):_(m,-1)})}V(()=>h=pe(f,1,"background svelte-1h1ov71",null,h,{small:n(),inline:s(),"offset-mute":i()})),y(t,f),ie()}var Zg=A('<div class="genre svelte-1mphbln"> </div>'),Kg=A('<button class="genre expand svelte-1mphbln"> </button>'),Yg=A("<!> <!>",1);function Jg(t,e){ne(e,!0);let n=K(!1);const i=H(()=>l(n)?e.genres:[e.genres[0]]);var r=Yg(),a=J(r);Me(a,17,()=>l(i),De,(c,u)=>{const f=H(()=>{var m;return(m=ha.find(_=>_.slug===l(u)))==null?void 0:m.name});var h=ge(),d=J(h);{var p=m=>{var _=Zg(),g=x(_);Zr(_,()=>ai()?nc(Ct.GenreInterest,{genre:l(f),source:Pn.Card}):null),V(w=>Q(g,w),[()=>ee(l(f))]),y(m,_)};U(d,m=>{l(f)&&m(p)})}y(c,h)});var s=C(a,2);{var o=c=>{var u=Kg(),f=x(u);V(()=>Q(f,`+${e.genres.length-1}`)),re("click",u,()=>z(n,!0)),y(c,u)};U(s,c=>{!l(n)&&e.genres.length>1&&c(o)})}y(t,r),ie()}me(["click"]);var Qg=A("<div> </div>"),Xg=A('<div><div class="imdb svelte-13b1w31"><!> </div> <!> <div> </div> <div class="capitalize svelte-13b1w31"> </div> <!></div>');function $g(t,e){ne(e,!0);const n=D(e,"small",3,!1);var i=Xg();let r;var a=x(i),s=x(a);Ll(s,{});var o=C(s),c=C(a,2);Jg(c,{get genres(){return e.title.genres}});var u=C(c,2),f=x(u),h=C(u,2),d=x(h),p=C(h,2);{var m=_=>{var g=Qg(),w=x(g);V(k=>Q(w,`${e.title.length??""} ${k??""}`),[()=>ee("Minutes")]),y(_,g)};U(p,_=>{!n()&&e.title.length&&_(m)})}V(_=>{r=pe(i,1,"info svelte-13b1w31",null,r,{small:n()}),Q(o,` ${e.title.imdb_score??""}`),Q(f,e.title.year),Q(d,_)},[()=>ee(`Type: ${e.title.type}`)]),y(t,i),ie()}var em=A('<div><div class="header svelte-16ajinh"><div><!></div> <div id="heading"> </div> <!> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main svelte-16ajinh"><!> <!> <!> <!></div></div> <!>',1);function ya(t,e){var N;ne(e,!0);const n=D(e,"small",3,!1),i=D(e,"useVideoBackground",3,!0),r=!!((N=window.PlayPilotLinkInjections)!=null&&N.no_affiliate);hr("title",e.title);const a=Qi("modal"),s=H(()=>(!n()||r)&&e.title.description);let o=K(!1);var c=em(),u=J(c);let f;var h=x(u),d=x(h);let p;var m=x(d);pa(m,{get title(){return e.title},onload:()=>z(o,!0),lazy:!1});var _=C(d,2);let g;var w=x(_);Rt(_,(Y,O)=>Re==null?void 0:Re(Y,O),()=>2);var k=C(_,2);$g(k,{get title(){return e.title},get small(){return n()}});var T=C(k,2),P=x(T);{var S=Y=>{Hg(Y,{get title(){return e.title}})};U(P,Y=>{e.title.embeddable_url&&Y(S)})}var L=C(P,2);{let Y=H(()=>fc(e.title));Ng(L,{get title(){return e.title.title},get url(){return l(Y)}})}var R=C(h,2),j=x(R);{var W=Y=>{ug(Y,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>ce(se.ExpandTitleDescription,e.title)})};U(j,Y=>{l(s)&&Y(W)})}var F=C(j,2);{var B=Y=>{ag(Y,{get playlinks(){return e.title.providers},get title(){return e.title}})};U(F,Y=>{r||Y(B)})}var I=C(F,2);wg(I,{get title(){return e.title}});var b=C(I,2);bg(b,{get title(){return e.title}});var M=C(u,2);{let Y=H(()=>a==="title");Gg(M,{get title(){return e.title},get small(){return n()},get useVideoBackground(){return i()},get offsetMute(){return l(Y)}})}V(()=>{f=pe(u,1,"content svelte-16ajinh",null,f,{small:n()}),p=pe(d,1,"poster svelte-16ajinh",null,p,{loaded:l(o)}),g=pe(_,1,"heading svelte-16ajinh",null,g,{truncate:n()}),Q(w,e.title.title)}),y(t,c),ie()}var tm=A('<!> <p class="empty svelte-1nq44zr"> </p>',1),nm=A("<!> ",1),im=A("<div><!></div>"),rm=A('<!> <div class="title svelte-1nq44zr" data-testid="title"><!></div>',1),am=A("<!> Loading...",1);function lm(t,e){ne(e,!0);const n=d=>{var p=tm(),m=J(p);i(m);var _=C(m,2),g=x(_);V(w=>Q(g,w),[()=>ee("Page Not Found")]),y(d,p)},i=(d,p)=>{let m=ua(()=>qa(p==null?void 0:p(),!1));var _=im();let g;var w=x(_);Ot(w,{variant:"link",onclick:()=>r()("home"),children:(k,T)=>{var P=nm(),S=J(P);Pt(S,{direction:"left"});var L=C(S);V(R=>Q(L,` ${R??""}`),[()=>ee("Home")]),y(k,P)},$$slots:{default:!0}}),V(()=>g=pe(_,1,"back svelte-1nq44zr",null,g,{offset:l(m)})),y(d,_)},r=D(e,"navigate",3,()=>null);let a=K(Ee(window.innerWidth));const s=H(()=>l(a)<Rn),o=new URL(document.location.toString()).searchParams.get("sid");var c=ge(),u=J(c);{var f=d=>{var p=ge(),m=J(p);vn(m,()=>ac(o),_=>{var g=am(),w=J(g);i(w),y(_,g)},(_,g)=>{var w=rm(),k=J(w);i(k,()=>!0);var T=C(k,2),P=x(T);ya(P,{get title(){return l(g)},get useVideoBackground(){return l(s)}}),y(_,w)},_=>{n(_)}),y(d,p)},h=d=>{n(d)};U(u,d=>{o?d(f):d(h,-1)})}Di("innerWidth",d=>z(a,d,!0)),y(t,c),ie()}const Rl={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}},ko="playpilot_split_test_";function om({key:t}){var r,a,s;const e=(a=(r=window.PlayPilotLinkInjections)==null?void 0:r.split_test_identifiers)==null?void 0:a[t];if(e!==void 0)return e;(s=window.PlayPilotLinkInjections)!=null&&s.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});let n=sessionStorage.getItem(ko+t);if(!n){const o=(Math.floor(Math.random()*100)/100).toString();sessionStorage.setItem(ko+t,o),n=o}const i=parseFloat(n);return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function _c(t){const e=om(t);return Math.floor(e*t.numberOfVariants)}function sm(t){var n;const e=_c(t);return((n=t.variantNames)==null?void 0:n[e])||e.toString()}function cm(t,e=1){return _c(t)===e}function um(t){const e=sm(t);ce(se.SplitTestView,null,{key:t.key,variant:e})}var dm=A("<div></div>");function fm(t,e){ne(e,!0);let n=D(e,"threshold",3,100),i=D(e,"isDragging",15,!1),r=D(e,"passedThreshold",15,!1),a=D(e,"onpassed",3,()=>null),s=K(0),o=K(0),c=K(null),u=K(!1);const f=H(()=>Math.max(l(o)-l(s),0));He(()=>{r(l(f)>n())});function h(w){if(w){i(!0),z(u,!0),z(s,w.touches[0].pageY,!0);for(const k of e.targets)k.style.transitionDuration="0ms"}}function d(w){if(w&&i()){w.preventDefault(),z(o,w.touches[0].pageY,!0),l(c).style.transform=`translateY(${l(f)}px)`;for(const k of e.targets)k.style.top=`${l(f)}px`}}function p(){if(i()){if(i(!1),r())a()();else{l(c).removeAttribute("style");for(const w of e.targets)w.style.removeProperty("transition"),requestAnimationFrame(()=>w.style.top="0px")}z(s,0),z(o,0)}}var m={start:h,move:d,end:p},_=dm();Se("touchmove",Ie,d,void 0,!0),Se("touchend",Ie,p);let g;return qe(_,w=>z(c,w),()=>l(c)),V(()=>g=pe(_,1,"handle svelte-1xqgdsn",null,g,{dragging:i(),dragged:l(u)})),re("touchstart",_,h),y(t,_),ie(m)}me(["touchstart"]);function Na(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function n(a){if(a.key!=="Tab")return;const s=document.activeElement;if(!s)return;const o=e();if(!o.length)return;const[c]=o,u=o[o.length-1];a.shiftKey&&s===c&&(u.focus(),a.preventDefault()),!a.shiftKey&&s===u&&(c.focus(),a.preventDefault())}const i=document.activeElement,[r]=e();return i!=null&&i.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",n),{destroy(){window.removeEventListener("keydown",n),i==null||i.focus()}}}function vm(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var hm=A("<div><!></div>"),gm=A('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),mm=A('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),pm=A('<div class="swipe-handle svelte-1rbidhv"><!></div>'),_m=A("<div><!></div>"),ym=A('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),wm=A('<div data-testid="modal"><!> <!> <!> <!></div>');function ir(t,e){ne(e,!0);const n=O=>{var q=hm(),Z=x(q);Yr(Z,{onclick:T,"aria-label":"Close",children:(G,X)=>{_a(G,{})},$$slots:{default:!0}}),qe(q,G=>z(p,G),()=>l(p)),V(()=>pe(q,1,`close ${s()??""}`,"svelte-1rbidhv")),Ne(7,q,()=>k),y(O,q)},i=D(e,"tall",3,!1),r=D(e,"wide",3,!1),a=D(e,"blur",3,!1),s=D(e,"closeButtonStyle",3,"shadow"),o=D(e,"initialScrollPosition",3,0),c=D(e,"onscroll",3,()=>null),u=D(e,"onclose",3,()=>null);let f=K(0),h=K(null),d=K(null),p=K(null),m=K(0),_=K(!1);const g=H(()=>l(f)<Rn);He(()=>{var O;l(f)&&z(m,((O=l(d))==null?void 0:O.offsetTop)||0,!0)}),He(()=>{setTimeout(()=>{var O;return z(m,((O=l(d))==null?void 0:O.offsetTop)||0,!0)})}),hr("scope","modal"),at(()=>{const O=vm();return O.classList.add("playpilot-modal-open"),z(_,!!To()),requestAnimationFrame(()=>requestAnimationFrame(w)),()=>{var q;document.querySelector(".modal")||O.classList.remove("playpilot-modal-open"),!To()&&((q=history.state)!=null&&q.modal)&&history.back()}});function w(){const O=Qn().querySelector("[data-modal-scroll-target]")||(window.innerWidth>Rn?l(h):l(d));O==null||O.scrollTo(0,o())}function k(O){return Hi.current?dn(O,{duration:0}):l(g)?Ki(O,{duration:250,y:window.innerHeight,opacity:1}):qi(O,{duration:150,start:.85})}function T(){u()(),$r()}function P(O){O.target===l(h)&&T()}var S=wm();Se("keydown",Ie,({key:O})=>{O==="Escape"&&T()});let L,R;var j=x(S);{var W=O=>{var q=gm(),Z=x(q);Ve(Z,()=>e.prepend),Ne(7,q,()=>k),y(O,q)};U(j,O=>{e.prepend&&O(W)})}var F=C(j,2);{var B=O=>{var q=mm(),Z=x(q);Ve(Z,()=>e.bubble),Ne(7,q,()=>k),y(O,q)};U(F,O=>{e.bubble&&O(B)})}var I=C(F,2);{var b=O=>{var q=pm(),Z=x(q);{var G=X=>{{let te=H(()=>[l(d),l(p)]);fm(X,{get targets(){return l(te)},onpassed:T})}};U(Z,X=>{l(d)&&l(p)&&X(G)})}Ne(7,q,()=>k),y(O,q)};U(I,O=>{l(g)&&O(b)})}var M=C(I,2);{var N=O=>{var q=ge(),Z=J(q);Ve(Z,()=>e.dialog),y(O,q)},Y=O=>{var q=ym(),Z=J(q),G=x(Z);{var X=be=>{var Oe=_m(),Xe=x(Oe);Yr(Xe,{get onclick(){return Mp},"aria-label":"Back",children:(lt,Ft)=>{Pt(lt,{direction:"left"})},$$slots:{default:!0}}),V(()=>pe(Oe,1,`close back ${s()??""}`,"svelte-1rbidhv")),y(be,Oe)};U(G,be=>{l(_)&&be(X)})}var te=C(G,2);Ve(te,()=>e.children??vt);var ye=C(te,2);{var le=be=>{n(be)};U(ye,be=>{l(g)||be(le)})}qe(Z,be=>z(d,be),()=>l(d));var ue=C(Z,2);{var we=be=>{n(be)};U(ue,be=>{l(g)&&be(we)})}Se("scroll",Z,function(...be){var Oe;(Oe=c())==null||Oe.apply(this,be)}),Ne(7,Z,()=>k),y(O,q)};U(M,O=>{e.dialog?O(N):O(Y,-1)})}qe(S,O=>z(h,O),()=>l(h)),Rt(S,O=>Na==null?void 0:Na(O)),V(()=>{L=pe(S,1,"modal svelte-1rbidhv",null,L,{wide:r(),tall:i(),"background-blur":a(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),R=Ue(S,"",R,{"--dialog-offset":`${l(m)??""}px`})}),Di("innerWidth",O=>z(f,O,!0)),re("click",S,P),Ne(5,S,()=>dn,()=>({duration:150})),Ne(6,S,()=>dn,()=>({duration:150,delay:100})),y(t,S),ie()}me(["click"]);var bm=A('<div class="error svelte-1bjke62"> </div>'),km=A('<div class="loading svelte-1bjke62"><div class="bar svelte-1bjke62"></div> <div class="bar svelte-1bjke62"></div> <div class="bar svelte-1bjke62"></div></div>');function Sm(t,e){ne(e,!0);const n=D(e,"navigate",3,()=>null);async function i(){const o=new URL(document.location.toString()).searchParams.get("sid");if(!o)return;let c=o.startsWith("pr")?"participant":"titles-rail",u=null;if(c==="titles-rail"){const[f,h]=(await Promise.allSettled([ac(o),rc({sid:o})])).map(d=>d.status==="fulfilled"?d.value:null);u=[f,...h]}else c==="participant"&&(u=await Nr(o));hn({type:c,data:u,props:{onclose:()=>n()("home")}})}var r=ge(),a=J(r);vn(a,i,s=>{ir(s,{blur:!0,dialog:c=>{var u=km();y(c,u)},$$slots:{dialog:!0}})},void 0,s=>{ir(s,{blur:!0,onclose:()=>n()("home"),children:(o,c)=>{var u=bm(),f=x(u);V(h=>Q(f,h),[()=>ee("An Error Occurred")]),y(o,u)},$$slots:{default:!0}})}),y(t,r),ie()}var xm=A("<p>An error occurred.</p>"),Pm=A("<!> <!>",1);function Tm(t,e){ne(e,!0);const n=[{key:"results",component:gc}];ji()&&(n.unshift({key:"home",component:wo}),n.push({key:"title",component:lm}),n.push({key:"modal",component:wo,appendComponent:Sm}));const i=f()||n[0].key;let r=K(Ee(n.find(({key:m})=>m===i)||n[0])),a=K(""),s=K(Ee({}));const o=H(()=>l(r).component),c=H(()=>l(r).appendComponent);He(()=>{l(a)&&z(r,n.find(m=>m.key==="results"),!0)});function u(m,_=!0){z(r,n.find(w=>w.key===m)||n[0],!0);const g=new URL(document.location.toString());m!=="title"&&m!=="modal"&&g.searchParams.delete("sid"),m===n[0].key?g.searchParams.delete("route"):g.searchParams.set("route",l(r).key),_&&history.pushState({},"",g),ce(se.ExploreNavigate,null,{route:l(r).key})}function f(){return new URL(document.location.toString()).searchParams.get("route")||n[0].key}function h(){u(f(),!1)}var d=ge();Se("popstate",Ie,h);var p=J(d);$o(p,{onerror:_=>console.error(_),failed:_=>{var g=xm();y(_,g)}},_=>{Uh(_,{navigate:u,get searchQuery(){return l(a)},set searchQuery(g){z(a,g,!0)},get filter(){return l(s)},set filter(g){z(s,g,!0)},children:(g,w)=>{var k=Pm(),T=J(k);Ur(T,()=>l(o),(S,L)=>{L(S,{get searchQuery(){return l(a)},get filter(){return l(s)},navigate:u})});var P=C(T,2);Ur(P,()=>l(c),(S,L)=>{L(S,{navigate:u})}),y(g,k)},$$slots:{default:!0}})}),y(t,d),ie()}const Ol="[data-playpilot-explore]",Em="[data-playpilot-pre-consent-explore]",yc="playpilot-explore-custom-style";let zr=null;function Fr(){var e;const t=document.querySelector(Ol);t&&(qr(),(e=document.querySelector(Em))==null||e.remove(),t.innerHTML="",zr=Dt(Tm,{target:t}),Am())}function qr(){var t;zr&&(ri(zr),zr=null,(t=document.querySelector("#"+yc))==null||t.remove())}function Im(){var c;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:n,explore_navigation_path:i,explore_navigation_insert_position:r}=t;if(!e||!i)return!1;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const a=document.querySelector(e);if(!a)return!1;const s=a.cloneNode(!0),o=s.nodeName==="A"?s:s.querySelector("a");return o.classList.remove("active"),o.innerText=n||"Streaming Guide",o.href=i,s.dataset.playpilotExploreNavigationElement="true",a.insertAdjacentElement(r||"afterend",s),!0}function Am(){var n;const t=(n=window.PlayPilotLinkInjections.config)==null?void 0:n.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=yc,document.body.appendChild(e)}function ji(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function pi(t,e){const{onclick:n}=e;function i(r){return r.button!==1?null:(n(r),r)}return t.addEventListener("mouseup",i),{destroy(){t.removeEventListener("mouseup",i)}}}const So={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"};var Cm=A('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Lm=A('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Mm=A('<button class="button svelte-1mt6g1y"> </button>'),Dm=A('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),jm=A('<div class="background svelte-1mt6g1y"></div>'),Rm=A("<!> <!>",1),Om=A('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function wc(t,e){ne(e,!0),ce(se.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),um(Rl.TopScrollFormat);const n=H(()=>e.campaign.disclaimer),i=H(()=>e.campaign.content),r=H(()=>e.campaign.cta),a=H(()=>l(i).format),s=H(()=>l(i).header),o=H(()=>l(i).header_logo),c=H(()=>l(i).image_uuid),u=H(()=>l(r).header),f=H(()=>l(r).url),h=H(()=>l(a)==="large"),d=H(()=>_o(l(c),So.TopScrollBackground)),p=H(()=>_o(l(c),So.TopScrollContent));let m=K(0);function _(){ce(se.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var g=Om();let w,k;var T=x(g),P=x(T);{var S=W=>{var F=Cm();V(()=>{ae(F,"src",l(p)),ae(F,"alt",l(s))}),y(W,F)},L=W=>{var F=Dm(),B=J(F);{var I=O=>{var q=Lm();V(()=>ae(q,"src",l(o))),y(O,q)};U(B,O=>{l(o)&&O(I)})}var b=C(B,2),M=x(b),N=C(b,2);{var Y=O=>{var q=Mm(),Z=x(q);V(()=>Q(Z,l(u))),y(O,q)};U(N,O=>{l(u)&&O(Y)})}V(()=>Q(M,l(s))),y(W,F)};U(P,W=>{l(h)?W(S):W(L,-1)})}var R=C(T,2);{var j=W=>{var F=Rm(),B=J(F);{var I=N=>{var Y=jm();let O;V(()=>O=Ue(Y,"",O,{"--background":`url('${l(d)??""}')`})),y(N,Y)};U(B,N=>{l(c)&&N(I)})}var b=C(B,2);{var M=N=>{jl(N,{get disclaimer(){return l(n)}})};U(b,N=>{l(n)&&N(M)})}y(W,F)};U(R,W=>{l(h)||W(j)})}Rt(g,(W,F)=>pi==null?void 0:pi(W,F),()=>({onclick:_})),ii(()=>ht(g,"clientWidth",W=>z(m,W))),V(()=>{ae(g,"href",l(f)),w=pe(g,1,"top-scroll svelte-1mt6g1y",null,w,{simple:l(h)}),k=Ue(g,"",k,{"--width":`${l(m)??""}px`})}),re("click",g,_),y(t,g),ie()}me(["click"]);var Nm=A('<div class="content svelte-r7ubzi"><!></div>'),zm=A('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function Fm(t,e){let n=K(!1);var i=zm(),r=x(i);Ve(r,()=>e.children);var a=C(r,2);{var s=o=>{var c=Nm(),u=x(c);Ve(u,()=>e.content),Ne(1,c,()=>dn,()=>({duration:100})),y(o,c)};U(a,o=>{l(n)&&o(s)})}re("touchstart",i,()=>z(n,!l(n))),Se("mouseenter",i,()=>z(n,!0)),Se("mouseleave",i,()=>z(n,!1)),y(t,i)}me(["touchstart"]);var qm=A('<div class="info svelte-qcpiki"><!></div>'),Hm=A('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),Bm=A('<span class="name svelte-qcpiki"> </span>'),Vm=A('<div class="subheader svelte-qcpiki"> </div>'),Wm=A('<div class="action svelte-qcpiki"> </div>'),Um=A('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),Gm=A('<img class="background svelte-qcpiki" alt=""/>'),Zm=A('<video class="background svelte-qcpiki" autoplay="" playsinline="" loop=""><source type="video/mp4"/> <track kind="captions"/></video>',2),Km=A('<div class="disclaimer svelte-qcpiki"><!></div>'),Ym=A('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Nl(t,e){ne(e,!0);const n=D(e,"compact",3,!1),i=H(()=>e.campaign.disclaimer),r=H(()=>e.campaign.content),a=H(()=>e.campaign.cta),s=H(()=>e.campaign.campaign_type),o=H(()=>l(r).header),c=H(()=>l(r).subheader),u=H(()=>l(r).header_logo),f=H(()=>l(r).image),h=H(()=>l(r).video),d=H(()=>l(a).header),p=H(()=>l(a).url),m=H(()=>l(a).subheader);let _=K(0),g=K(null);ce(se.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function w(){ce(se.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}wr(()=>{l(g)&&ce(se.DisplayedAdVideoPercentage,null,{percentage:100/l(g).duration*l(g).currentTime})});var k=Ym();let T;var P=x(k);{var S=b=>{var M=qm(),N=x(M);{var Y=q=>{Fm(q,{content:G=>{var X=rt();V(()=>Q(X,l(m))),y(G,X)},children:(G,X)=>{var te=rt("Ad");y(G,te)}})},O=q=>{var Z=rt();V(()=>Q(Z,l(m))),y(q,Z)};U(N,q=>{n()?q(Y):q(O,-1)})}y(b,M)};U(P,b=>{l(m)&&b(S)})}var L=C(P,2);{var R=b=>{var M=Um(),N=x(M);{var Y=le=>{var ue=Hm();V(()=>ae(ue,"src",l(u))),y(le,ue)};U(N,le=>{l(u)&&le(Y)})}var O=C(N,2),q=x(O);{var Z=le=>{var ue=Bm(),we=x(ue);V(()=>Q(we,l(o))),y(le,ue)};U(q,le=>{l(o)&&le(Z)})}var G=C(q,2);{var X=le=>{var ue=Vm(),we=x(ue);V(()=>Q(we,l(c))),y(le,ue)};U(G,le=>{l(c)&&le(X)})}var te=C(O,2);{var ye=le=>{var ue=Wm(),we=x(ue);V(()=>Q(we,l(d))),y(le,ue)};U(te,le=>{l(d)&&le(ye)})}ht(M,"clientHeight",le=>z(_,le)),y(b,M)};U(L,b=>{(l(u)||l(o)||l(c)||l(d))&&b(R)})}var j=C(L,2);{var W=b=>{var M=Gm();V(()=>ae(M,"src",l(f))),y(b,M)},F=b=>{var M=Zm();M.muted=!0;var N=x(M);qe(M,Y=>z(g,Y),()=>l(g)),V(()=>ae(N,"src",l(h))),y(b,M)};U(j,b=>{l(s)==="image"&&l(f)?b(W):l(s)==="video"&&l(h)&&b(F,1)})}var B=C(j,2);{var I=b=>{var M=Km();let N;var Y=x(M);jl(Y,{get disclaimer(){return l(i)}}),V(()=>N=Ue(M,"",N,{"--offset":`${l(_)??""}px`})),y(b,M)};U(B,b=>{l(i)&&b(I)})}Rt(k,(b,M)=>pi==null?void 0:pi(b,M),()=>({onclick:w})),V(()=>{ae(k,"href",l(p)),T=pe(k,1,"display svelte-qcpiki",null,T,{compact:n()})}),re("click",k,w),y(t,k),ie()}me(["click"]);var Jm=A('<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 Qm(t,e){var c,u;ne(e,!1);const n="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",i=(u=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:u.explore_navigation_path;Sl();var r=Jm(),a=x(r);ae(a,"src",n);var s=C(a,4),o=x(s);Pt(o,{}),V(()=>ae(r,"href",i)),re("click",r,()=>ce(se.CardToExploreCta)),y(t,r),ie()}me(["click"]);function Xm(t,e){var d,p;ne(e,!0);const n=m=>{var _=ge(),g=J(_);{var w=T=>{wc(T,{get campaign(){return s}})},k=T=>{Qm(T,{})};U(g,T=>{s?T(w):T(k,-1)})}y(m,_)},i=m=>{var _=ge(),g=J(_);{var w=k=>{Nl(k,{get campaign(){return o}})};U(g,k=>{o&&k(w)})}y(m,_)},r=D(e,"initialScrollPosition",3,0),a=Fi(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]);hr("modal","title");const s=ei("top_scroll"),o=ei("card"),c=(p=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:p.explore_insert_cta_in_tpi,u=!!s||c&&!document.querySelector(Ol);let f=!1;ce(se.TitleModalView,e.title),ai()&&Kt(Ct.TitleInterest,{title:e.title.title,source:Pn.Card}),at(()=>{const m=Date.now();return()=>ce(se.TitleModalClose,e.title,{time_spent:Date.now()-m})});function h(){f||(ce(se.TitleModalScroll,e.title),f=!0)}{let m=H(()=>u?n:null),_=H(()=>o?i:null);ir(t,{onscroll:h,get initialScrollPosition(){return r()},get bubble(){return l(m)},get prepend(){return l(_)},tall:!0,children:(g,w)=>{ya(g,jn({get title(){return e.title}},()=>a))},$$slots:{default:!0}})}ie()}var $m=A('<div class="read-more svelte-zuyh9b"><!></div>'),ep=A("<p> </p> <!>",1),tp=A('<div class="list-header svelte-zuyh9b"><div class="heading subheading svelte-zuyh9b" id="credits"> </div></div> <div class="jobs svelte-zuyh9b"></div> <!>',1),np=A('<div><!> <div><div id="heading"> </div> <!></div></div> <div><!> <!></div>',1);function bc(t,e){ne(e,!0);const n=D(e,"small",3,!1),i=H(()=>e.participant.name),r=H(()=>e.participant.description),a=Ee({}),s=[{label:"Popularity",value:Tn.Popular},{label:"Top Rated",value:Tn.Best},{label:"IMDb Rating",value:Tn.IMDb},{label:"Year",value:Tn.Chronological}];let o=K(0),c=K("all"),u=K(!1);const f=H(()=>({...a,participant_sid:{type:"string",value:e.participant.sid},participant_job:{type:"string",value:l(c)==="all"?null:l(c)}}));ai()&&Kt(Ct.ParticipantView,{participant:e.participant.name});function h(I,b,M){hn({event:I,type:"titles-rail",data:b,props:{initialIndex:M}})}var d=np(),p=J(d);let m;var _=x(p);{var g=I=>{ll(I,{get participant(){return e.participant}})};U(_,I=>{e.participant.image&&I(g)})}var w=C(_,2),k=x(w);let T;var P=x(k);Rt(k,(I,b)=>Re==null?void 0:Re(I,b),()=>2);var S=C(k,2);{var L=I=>{var b=ep(),M=J(b);let N;var Y=x(M),O=C(M,2);{var q=Z=>{var G=$m(),X=x(G);Ot(X,{variant:"link",onclick:()=>z(u,!l(u)),children:(te,ye)=>{var le=rt();V(ue=>Q(le,ue),[()=>l(u)?ee("Read Less"):ee("Read More")]),y(te,le)},$$slots:{default:!0}}),y(Z,G)};U(O,Z=>{n()||Z(q)})}V(()=>{N=pe(M,1,"description svelte-zuyh9b",null,N,{expanded:l(u)}),Q(Y,l(r))}),y(I,b)};U(S,I=>{l(r)&&I(L)})}var R=C(p,2);let j;var W=x(R);{var F=I=>{var b=tp(),M=J(b),N=x(M),Y=x(N);Rt(N,(Z,G)=>Re==null?void 0:Re(Z,G),()=>3);var O=C(M,2);Me(O,21,()=>["all",...e.participant.jobs],De,(Z,G)=>{{let X=H(()=>l(c)===l(G));Ot(Z,{variant:"border",size:"large",get active(){return l(X)},onclick:()=>z(c,l(G),!0),children:(te,ye)=>{var le=rt();V(ue=>Q(le,ue),[()=>ee("Job: "+l(G)).replace("Job: ","")]),y(te,le)},$$slots:{default:!0}})}});var q=C(O,2);{let Z=H(()=>l(o)<700);pc(q,{get filter(){return a},get sortings(){return s},get limit(){return l(Z)},hideActive:!0})}V(Z=>Q(Y,Z),[()=>ee("Credits")]),y(I,b)};U(W,I=>{n()||I(F)})}var B=C(W,2);gc(B,{forceGrid:!0,hidePlaylinks:!0,get filter(){return l(f)},onTitleClick:h}),V(()=>{m=pe(p,1,"header svelte-zuyh9b",null,m,{small:n()}),T=pe(k,1,"heading svelte-zuyh9b",null,T,{"no-image":!e.participant.image}),Q(P,l(i)),j=pe(R,1,"content svelte-zuyh9b",null,j,{small:n()})}),ht(R,"clientWidth",I=>z(o,I)),y(t,d),ie()}function ip(t,e){ne(e,!0);const n=D(e,"initialScrollPosition",3,0),i=Fi(e,["$$slots","$$events","$$legacy","participant","initialScrollPosition"]);ce(se.ParticipantModalView,null,{participant:e.participant.name}),at(()=>{const r=Date.now();return()=>ce(se.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),ir(t,jn({get initialScrollPosition(){return n()}},()=>i,{closeButtonStyle:"flat",tall:!0,wide:!0,blur:!0,children:(r,a)=>{bc(r,{get participant(){return e.participant}})},$$slots:{default:!0}})),ie()}function rp(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const n=document.querySelectorAll("[data-view-transition-old]");if(t(),!n.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var ap=Ge('<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 lp(t){var e=ap();y(t,e)}var op=A('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),sp=A('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),cp=A('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),up=A('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function dp(t,e){ne(e,!0),hr("scope","popover");const n=e.bubble&&cm(Rl.TopScrollFormat,1),i=H(()=>({duration:Hi.current?0:100,y:10}));let r=K(null),a=K(!1),s=K(!0),o=K(!1),c=K(0),u=K(0),f=K(0);at(async()=>{await er(),h(),await p(),e.append&&requestAnimationFrame(()=>{d(),p()}),await er(),_()});function h(){if(!l(r))return;const{top:B,right:I,bottom:b,height:M}=l(r).getBoundingClientRect(),N=m();z(a,B-N<0&&window.innerHeight-b>B+M,!0);const Y=window.innerWidth-I-N;I+N>window.innerWidth&&(l(r).style.left=`${Y}px`)}function d(){z(s,l(c)>450)}async function p(){if(z(f,0),await new Promise(O=>requestAnimationFrame(O)),!l(r))return;const{top:B,height:I}=l(r).getBoundingClientRect(),b=m(),M=e.append?parseInt(window.getComputedStyle(l(r)).gap):0,N=l(s)?l(u)+M:0,Y=l(a)?window.innerHeight-B-b-N:B+I-N-b;z(f,Math.min(Y,window.innerHeight*.8),!0)}function m(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function _(){var N;if(!((N=l(r))!=null&&N.firstChild))return;const B=l(r).firstChild,{offsetHeight:I,scrollHeight:b,scrollTop:M}=B;b<=I?z(o,!1):z(o,M+I<b)}var g=up();let w,k;var T=x(g),P=x(T);Ve(P,()=>e.children);var S=C(P,2);{var L=B=>{var I=op(),b=x(I),M=x(b);lp(M),Ne(3,I,()=>dn,()=>({duration:100})),y(B,I)};U(S,B=>{l(o)&&B(L)})}var R=C(T,2);{var j=B=>{var I=sp(),b=x(I);Ve(b,()=>e.bubble),Ne(7,I,()=>Ki,()=>l(i)),y(B,I)};U(R,B=>{e.bubble&&B(j)})}var W=C(R,2);{var F=B=>{var I=cp(),b=x(I);Ve(b,()=>e.append),Ne(7,I,()=>Ki,()=>l(i)),ht(I,"clientHeight",M=>z(u,M)),y(B,I)};U(W,B=>{e.append&&l(s)&&B(F)})}qe(g,B=>z(r,B),()=>l(r)),V(()=>{w=pe(g,1,"popover svelte-wxwoko",null,w,{flip:l(a),inline:n,"has-bubble":!!e.bubble&&n}),k=Ue(g,"",k,{"--max-height":l(f)?l(f)+"px":null})}),Se("scroll",T,_),Ne(7,T,()=>Ki,()=>l(i)),ht(g,"clientHeight",B=>z(c,B)),y(t,g),ie()}var fp=A('<div class="injection-popover svelte-1laomht" data-playpilot-injection-popover="" role="region" aria-labelledby="heading"><!></div>');function xo(t,e){ne(e,!0);const n=h=>{var d=ge(),p=J(d);{var m=_=>{wc(_,{get campaign(){return a}})};U(p,_=>{a&&_(m)})}y(h,d)},i=h=>{var d=ge(),p=J(d);{var m=_=>{Nl(_,{get campaign(){return s},compact:!0})};U(p,_=>{s&&_(m)})}y(h,d)},r=D(e,"type",3,"title");hr("type",r());const a=ei("top_scroll"),s=ei("card");let o=K(null);r()==="title"&&ce(se.InjectionPopoverView,e.data,{type:r()}),r()==="participant"&&ce(se.InjectionPopoverView,null,{type:r(),participant:e.data.name}),ai()&&r()==="title"&&Kt(Ct.TitleInterest,{title:e.data.title,source:Pn.Card}),at(()=>{c();const h=Date.now();return()=>{const d=Date.now()-h;r()==="title"&&ce(se.InjectionPopoverClose,e.data,{type:r(),time_spent:d}),r()==="participant"&&ce(se.InjectionPopoverClose,null,{type:r(),participant:e.data.name,time_spent:d})}});function c(){const h=e.event.target;if(!(h!=null&&h.getClientRects))return;const d=Array.from(h.getClientRects()),m=d.map(g=>g.x).map(g=>Math.abs(g-e.event.clientX)),_=d[m.indexOf(Math.min(...m))];l(o).style.top=_.top+window.scrollY+"px",l(o).style.left=_.left+window.scrollX+"px",l(o).style.height=_.height+"px"}var u=fp(),f=x(u);{let h=H(()=>s?i:null),d=H(()=>a?n:null);dp(f,{get append(){return l(h)},get bubble(){return l(d)},children:(p,m)=>{var _=ge(),g=J(_);{var w=T=>{ya(T,{get title(){return e.data},small:!0})},k=T=>{bc(T,{get participant(){return e.data},small:!0})};U(g,T=>{r()==="title"?T(w):r()==="participant"&&T(k,1)})}y(p,_)},$$slots:{default:!0}})}qe(u,h=>z(o,h),()=>l(o)),y(t,u),ie()}let Xr=null,Cn=null;function vp(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Cn&&wa();const n=t.currentTarget;Xr=n,setTimeout(()=>{if(Xr!==n)return;const i=Qn();e.type==="title"?Cn=Dt(xo,{target:i,props:{event:t,type:"title",data:e.title_details}}):e.type==="participant"&&(Cn=Dt(xo,{target:i,props:{event:t,type:"participant",data:e.participant_details}}))},100)}async function wa(t=!0){if(Cn){const e=ri(Cn,{outro:t});Xr=null,Cn=null,await e}document.querySelectorAll("[data-playpilot-injection-popover]").forEach(e=>e.remove())}function hp(t){if(!Cn)return;const e=t.target;e.hasAttribute("data-playpilot-injection-popover")||e.closest("[data-playpilot-injection-popover]")||e.hasAttribute(gn)||e.closest(pn)||wa()}function gp(){Xr=null}function mp(){return!!Cn}var pp=A("<!> ",1),_p=A('<div class="back svelte-29uorr"><!></div>'),yp=A('<!> <div class="close svelte-29uorr"><!></div>',1);function wp(t,e){ne(e,!0);const n=D(e,"label",3,""),i=D(e,"onclose",3,()=>null);var r=yp(),a=J(r);{var s=u=>{var f=_p(),h=x(f);Ot(h,{variant:"link",onclick:()=>{i()(),$r()},children:(d,p)=>{var m=pp(),_=J(m);Pt(_,{direction:"left"});var g=C(_);V(()=>Q(g,` ${n()??""}`)),y(d,m)},$$slots:{default:!0}}),y(u,f)};U(a,u=>{n()&&u(s)})}var o=C(a,2),c=x(o);Yr(c,{size:"42px",onclick:()=>{i()(),$r()},"aria-label":"Close",children:(u,f)=>{_a(u,{size:24})},$$slots:{default:!0}}),Ne(7,o,()=>qi),y(t,r),ie()}var bp=A('<div class="ad svelte-c2erhr"><!></div>'),kp=A('<div class="content svelte-c2erhr"><!></div>'),Sp=A("<div><!></div>"),xp=A('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Pp=A('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Tp=A("<!> <!>",1),Ep=A('<div><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Ip(t,e){ne(e,!0);const n=_=>{var g=ge(),w=J(g);{var k=T=>{var P=bp(),S=x(P);Nl(S,{get campaign(){return l(d)}}),y(T,P)};U(w,T=>{l(d)&&T(k)})}y(_,g)},i=D(e,"initialIndex",3,0),r=D(e,"onchange",3,()=>null),a=D(e,"onclose",3,()=>null),s=Fi(e,["$$slots","$$events","$$legacy","items","initialIndex","onchange","onclose","each"]);let o,c=K(!1),u=Ee(Hi.current?0:300),f=K(null),h=K(null),d=K(Ee(ei("card")));at(()=>{m(),requestAnimationFrame(()=>{i()!==0&&(o==null||o.setIndex(i())),requestAnimationFrame(()=>{o==null||o.reposition(),z(c,!0)})})});function p(_){r()(_),o.setIndex(_)}function m(){if(!l(d)){z(f,null);return}const _=document.querySelector(".modal");z(f,window.innerHeight-(l(h).getBoundingClientRect().top+_.scrollTop+parseInt(window.getComputedStyle(_).paddingBottom)))}Se("resize",Ie,m),Se("updateads",Ie,()=>z(d,ei("card"),!0)),ir(t,jn({blur:!0,get onclose(){return a()},get prepend(){return n}},()=>s,{dialog:g=>{var w=Ep(),k=J(w);let T,P;var S=x(k);{const j=(B,I)=>{let b=()=>(I==null?void 0:I()).currentIndex;var M=ge(),N=J(M);Me(N,17,()=>e.items,De,(Y,O,q)=>{const Z=H(()=>b()===q);var G=Sp();let X;var te=x(G);{var ye=ue=>{var we=kp(),be=x(we);Ve(be,()=>e.each,()=>l(O),b),V(()=>ae(we,"data-modal-scroll-target",l(Z)?"":null)),Ne(3,we,()=>dn,()=>({duration:l(c)?u:0})),y(ue,we)},le=H(()=>Math.abs(q-b())===1||l(Z));U(te,ue=>{l(le)&&ue(ye)})}V(()=>{X=pe(G,1,"item svelte-c2erhr",null,X,{active:l(Z)}),ae(G,"data-active-index",l(Z)?q:null)}),re("click",G,()=>p(q)),y(Y,G)}),y(B,M)},W=(B,I)=>{let b=()=>(I==null?void 0:I()).currentIndex,M=()=>(I==null?void 0:I()).reachedEnd;var N=Tp(),Y=J(N);{var O=G=>{var X=xp(),te=x(X);Pt(te,{size:21,direction:"left",title:"Previous"}),re("click",X,()=>p(b()-1)),y(G,X)};U(Y,G=>{b()>0&&G(O)})}var q=C(Y,2);{var Z=G=>{var X=Pp(),te=x(X);Pt(te,{size:21,title:"Next"}),re("click",X,()=>p(b()+1)),y(G,X)};U(q,G=>{M()||G(Z)})}y(B,N)};let F=H(()=>l(c)?u:0);qe(cc(S,{threshold:40,moveThreshold:40,get transitionDuration(){return l(F)},children:j,controls:W,$$slots:{default:!0,controls:!0}}),B=>o=B,()=>o)}qe(k,j=>z(h,j),()=>l(h));var L=C(k,2),R=x(L);{let j=H(()=>window.location.href.includes("route=modal")?ee("Explore All Movies And Shows"):"");wp(R,{get onclose(){return a()},get label(){return l(j)}})}V(()=>{T=pe(k,1,"rail-modal svelte-c2erhr",null,T,{initialized:l(c)}),P=Ue(k,"",P,{"--transition-duration":`${u}ms`,"--available-height":l(f)&&l(f)+"px"})}),y(g,w)},$$slots:{dialog:!0}})),ie()}me(["click"]);function Ap(t,e){ne(e,!0);const n=D(e,"initialIndex",3,0),i=D(e,"onclose",3,()=>null),r=Fi(e,["$$slots","$$events","$$legacy","titles","initialIndex","onclose"]);Ip(t,jn({get items(){return e.titles},get initialIndex(){return n()},get onclose(){return i()},onchange:s=>ce(se.ExploreTitleRailSetIndex,e.titles[s],{index:s})},()=>r,{each:(s,o=vt,c=vt)=>{{let u=H(()=>{var f;return o().sid===((f=e.titles[c()])==null?void 0:f.sid)});ya(s,{get title(){return o()},get useVideoBackground(){return l(u)}})}},$$slots:{each:!0}})),ie()}const Ze=[];function hn({type:t="title",event:e=null,injection:n=null,data:i=null,scrollPosition:r=0,returnToTitle:a=null,props:s={}}={}){if(e&&Qs(e))return;e==null||e.preventDefault(),Ze!=null&&Ze.length&&zl();const o=Qn(),c={initialScrollPosition:r,...s},u=Cp({type:t,target:o,data:i,props:c});a&&Po({type:t,injection:n,data:a}),Po({type:t,injection:n,data:i,scrollPosition:r,component:u})}function Cp({type:t="title",target:e,data:n,props:i={}}){return t==="participant"?Dt(ip,{target:e,props:{participant:n,...i}}):t==="titles-rail"?Dt(Ap,{target:e,props:{titles:n,...i}}):Dt(Xm,{target:e,props:{title:n,...i}})}function Po({type:t="title",injection:e=null,data:n,scrollPosition:i=0,component:r}){Ze.push({type:t,injection:e,data:n,scrollPosition:i,component:r})}function zl(t=!0){Ze.length&&(Dp(),ri(Ze[Ze.length-1].component,{outro:t}))}function Lp(t=!0){zl(t),Ze.pop()}function $r(t=!0){for(zl(t);Ze.length>0;)Ze.pop()}function To(){return Ze[Ze.length-2]||null}function Mp(){if(Ze.length<2)return;Lp();const t=Ze.pop();t&&hn({...t})}function Dp(){var n;const t=window.innerWidth>Rn?".modal":".dialog",e=Qn().querySelector("[data-modal-scroll-target]")||Qn().querySelector(t);e!=null&&e.scrollTop&&(Ze[Ze.length-1].scrollPosition=e.scrollTop,Ze[Ze.length-1].props={initialIndex:parseInt(((n=Qn().querySelector("[data-active-index]"))==null?void 0:n.dataset.activeIndex)||"0")})}function jp(t,e){if(Qs(t))return;let n=t.target;if(!n||(n.hasAttribute(gn)||(n=n.closest(pn)),!n))return;const i=n.getAttribute(gn);if(!i)return;const r=e.find(a=>i===a.key);r&&(t.preventDefault(),rp(()=>{const a=r.title_details||r.participant_details;wa(!1),hn({event:t,injection:r,data:a,type:r.type})},!Hi.current&&window.innerWidth>=Rn&&!window.matchMedia("(pointer: coarse)").matches))}var Rp=A(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),Op=A('<!> <a target="_blank"> </a>',1),Np=A(" <!>.",1),zp=A("<!> <br/>",1),Fp=A(" <br/>",1),qp=A('<span class="svelte-1to4glm"><!></span>'),Hp=A('<p class="svelte-1to4glm"></p>');function Bp(t,e){ne(e,!0);const n=D(e,"onclickmodal",3,()=>null);function i(c,u){ce(se.AfterArticlePlaylinkClick,c,{playlink:u})}function r(c,u,f){ce(se.AfterArticleModalButtonClick,u),n()(c,f)}var a=ge(),s=J(a);{var o=c=>{var u=Hp();Me(u,21,()=>e.linkInjections,De,(f,h)=>{const d=H(()=>{const{key:k,title:T,title_details:P,after_article_style:S}=l(h);return{key:k,title:T,title_details:P,after_article_style:S}}),p=H(()=>{var k;return((k=l(d).title_details)==null?void 0:k.providers)||[]});var m=qp(),_=x(m);{var g=k=>{var T=zp(),P=J(T);{var S=R=>{var j=Rp(),W=J(j),F=C(W),B=x(F),I=x(B);V((b,M)=>{Q(W,`"${l(d).title??""}" ${b??""} `),Q(I,M)},[()=>ee("Is Available To Stream"),()=>ee("View Streaming Options")]),re("click",F,b=>b.stopPropagation()),re("click",B,b=>r(b,l(d).title_details,l(h))),y(R,j)},L=R=>{var j=Np(),W=J(j),F=C(W);Me(F,17,()=>l(p),De,(B,I,b)=>{let M=()=>l(I).name,N=()=>l(I).url;var Y=Op(),O=J(Y);{var q=X=>{var te=rt();V(ye=>Q(te,ye),[()=>b===l(p).length-1?`, ${ee("And")}`:","]),y(X,te)};U(O,X=>{b&&X(q)})}var Z=C(O,2),G=x(Z);V(()=>{ae(Z,"href",N()),Q(G,M())}),re("click",Z,()=>i(l(d).title_details,M())),y(B,Y)}),V(B=>Q(W,`"${l(d).title??""}" ${B??""} `),[()=>ee("Is Available To Stream On")]),y(R,j)};U(P,R=>{l(d).after_article_style==="modal_button"?R(S):R(L,-1)})}y(k,T)},w=k=>{var T=Fp(),P=J(T);V(S=>Q(P,`"${l(d).title??""}" ${S??""} `),[()=>ee("Title Unavailable Suffix")]),y(k,T)};U(_,k=>{l(p).length?k(g):k(w,-1)})}V(()=>ae(m,"data-playpilot-injection-key",l(d).key)),y(f,m)}),y(c,u)};U(s,c=>{e.linkInjections.length&&c(o)})}y(t,a),ie()}me(["click"]);let Yi=null;function Vp(t,e){var s,o;if(Yi||!e.length)return;const n=document.createElement("div"),i=(s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_selector,r=(i?document.querySelector(i):null)||t[t.length-1],a=((o=window.PlayPilotLinkInjections)==null?void 0:o.after_article_insert_position)||"afterend";n.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(a,n),Yi=Dt(Bp,{target:n,props:{linkInjections:e,onclickmodal:(c,u)=>hn({event:c,injection:u,data:u.title_details})}})}function Wp(){var t;Yi&&(ri(Yi),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Yi=null)}var Up=A('<p class="svelte-1epbbn0"> </p>');function Gp(t,e){ne(e,!1),Sl();var n=Up(),i=x(n);V(r=>Q(i,r),[()=>{var r,a;return((a=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:a.in_text_disclaimer_text)||ee("In-Text Disclaimer")}]),y(t,n),ie()}let Ji=null;function Zp(t){var a,s,o,c,u,f;if(!((s=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)!=null&&s.in_text_disclaimer_enabled)||Ji)return;const e=document.createElement("div"),n=(c=(o=window.PlayPilotLinkInjections)==null?void 0:o.config)==null?void 0:c.in_text_disclaimer_selector,i=(n?document.querySelector(n):null)||t[0],r=((f=(u=window.PlayPilotLinkInjections)==null?void 0:u.config)==null?void 0:f.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",i.insertAdjacentElement(r,e),Ji=Dt(Gp,{target:e})}function Kp(){var t;Ji&&(ri(Ji),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Ji=null)}var Yp=A('<div class="widget svelte-l6zazf" data-testid="widget"><!></div>');function Jp(t,e){ne(e,!0);let n=K(null);const i=H(()=>{var c,u;return((u=(c=l(n))==null?void 0:c.parentNode)==null?void 0:u.dataset.heading)||ee("Mentioned In This Article")}),r=H(()=>{const c=[];return e.linkInjections.forEach(u=>{const f=u.title_details;f&&(c.some(h=>h.sid===f.sid)||c.push(f))}),c});var a=ge(),s=J(a);{var o=c=>{var h,d;var u=Yp(),f=x(u);nr(f,{get titles(){return l(r)},get heading(){return l(i)},navigateToExplore:!!((d=(h=window.PlayPilotLinkInjections)==null?void 0:h.config)!=null&&d.open_tpi_links_in_explore),onclick:p=>ce(se.WidgetArticleRailTitleClick,p)}),qe(u,p=>z(n,p),()=>l(n)),y(c,u)};U(s,c=>{l(r).length&&c(o)})}y(t,a),ie()}const Qp={"tpi-rail":Jp},Xp="[data-playpilot-widget]";let ol=[];function $p(t){if(kc(),!t.length)return;document.querySelectorAll(Xp).forEach(n=>{const i=n.dataset.playpilotWidget||"",r=Qp[i];if(!r)return;const a=Dt(r,{target:n,props:{linkInjections:t}});ol.push(a)})}function kc(){ol.forEach(t=>ri(t)),document.querySelectorAll("[data-playpilot-widget]").forEach(t=>t.innerHTML=""),ol=[]}const gn="data-playpilot-injection-key",pn=`[${gn}]`;function e_(t,e={aiInjections:[],manualInjections:[]}){var u;Fl(),l_();const n=o_(e);if(!n.length)return[];const i=Ut(t.map(f=>f.innerText).join(" ")),a=c_(n).filter(f=>i.includes(Ut(f.sentence))),s={};let o=-1;for(const f of d_(a)){if(o++,f.type==="participant"&&((u=f.participant_details).popularity||(u.popularity=f.popularity)),f.type==="participant"&&!f.manual&&!v_(n,f.participant_details)){s[f.key]="Participant does not meet popularity threshold.";continue}const h=t.findIndex(S=>Ut(S.innerText).includes(Ut(f.sentence))),d=t[h];if(!d)continue;const p=uo(f.title,d,["A"]);if(!(p!=null&&p.nodeValue)||fo(p)){const S=uo(f.title,d);if(S&&fo(S)){s[f.key]="Given text is already inside of a link.";continue}}const{injectionElement:m,linkElement:_}=t_(f);let g=-1,w=!1;Kr(d.innerHTML,f.title)===1&&(g=d.innerHTML.indexOf(f.title));const{phrase_before:T,phrase_after:P}=n_(d,f);if(g===-1&&(T||P)){const S=[T,f.title,P].filter(Boolean).join(" ");if(g=d.innerHTML.indexOf(S),g===-1){let L=mf(d.innerHTML,f.title,T||"",P||"");if(L){if(L.match.includes(">")&&L.match.includes("<")){const B=Js(f.title),I=L.match.search(new RegExp(`>s*${B}s*<`))+1;I>0&&(L={match:L.match.slice(I,I+B.length),index:I})}const{leadingSpaces:R,trailingSpaces:j}=pf(L.match);_.innerHTML=L.match.trim();const W=L.index+R,F=L.index+L.match.length-j;if(d.innerHTML.slice(W,F).includes("href="))continue;za(d.innerHTML,f.title,d,m,W,F)&&(g=L.index,w=!0)}}}if(g===-1&&(p!=null&&p.nodeValue)){const S=d.innerHTML.indexOf(p.nodeValue),L=d.innerHTML.indexOf(f.sentence),R=L===-1?d.innerHTML.indexOf(f.sentence.slice(0,20)):-1,j=f.sentence.split(" ")[0],F=Kr(d.innerHTML,j)===1?d.innerHTML.indexOf(j):-1,B=uf(a.slice(0,o+1),f,["title","sentence"])-1,I=_f(p.nodeValue,d,B);g=Math.max(S,R,I,F,L,0)}if(g!==-1&&!w&&!za(d.innerHTML,f.title,d,m,g)){const S=wf(f.title,d.innerHTML);S>-1?za(d.innerHTML,f.title,d,m,S):s[f.key]="Injection would have lead to broken HTML."}}r_(a),i_();const c=u_(n);return c.length&&Vp(t,c),document.querySelector(pn)&&Zp(t),$p(a),n.filter(f=>Ec(f)).map((f,h)=>{const d=!f.manual&&f_(f,h,n),p=f.duplicate??d;p&&(s[f.key]=d?"Injection was manually removed.":"Injection was marked as duplicate.");const m=document.querySelector(`[${gn}="${f.key}"]`),_=xc(f)&&!f.inactive&&!f.removed&&!f.after_article&&!m,g=_&&t.some(k=>Ut(k.innerText).includes(Ut(f.sentence))),w=_?s[f.key]||(g?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...f,inactive:f.inactive??!1,duplicate:p,failed:_,failed_message:w,matchingElement:m}})}function t_(t){var s,o,c,u,f;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const n=!!((o=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)!=null&&o.open_tpi_links_in_explore),i=((c=t.title_details)==null?void 0:c.sid)||((u=t.participant_details)==null?void 0:u.sid),r=n?Cl(i):t.type==="title"?fc(t.title_details):fv(t.participant_details),a=document.createElement("a");return a.innerText=t.title,a.href=r,a.target=n?"":"_blank",a.rel="noopener nofollow noreferrer",t.type==="title"&&(a.dataset.playpilotPosterUrl=(f=t.title_details)==null?void 0:f.standing_poster),e.insertAdjacentElement("beforeend",a),{injectionElement:e,linkElement:a}}function za(t,e,n,i,r,a=-1){const s=f=>Array.from(f.querySelectorAll(`a, ${pn}`)).filter(h=>!h.innerText).length,o=document.createElement("div");o.innerHTML=t;const c=s(o),u=o.innerText;return a>0?o.innerHTML=vf(t,i.outerHTML,r,a):o.innerHTML=ff(t,e,i.outerHTML,r),Math.abs(o.innerText.length-u.length)>1||c!=s(o)?!1:(n.innerHTML=o.innerHTML,!0)}function n_(t,e){const{phrase_before:n,phrase_after:i}=e;if(n||i)return{phrase_before:n,phrase_after:i};if(Kr(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const a=t.innerText.indexOf(e.title),s=hf(t,a,a+e.title.length);return{phrase_before:s.before,phrase_after:s.after}}function i_(){const t=Array.from(document.querySelectorAll(`${pn} 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 n of t){const i=getComputedStyle(n);for(const r of e)i.getPropertyValue(r)&&(n.dataset.usedCssVariables=`${n.dataset.usedCssVariables||""} ${r}`)}}function r_(t){window.addEventListener("mousemove",hp),window.addEventListener("click",n=>{var i,r;(r=(i=window.PlayPilotLinkInjections)==null?void 0:i.config)!=null&&r.open_tpi_links_in_explore||jp(n,t)}),document.querySelectorAll(pn).forEach(n=>{const i=n.dataset.playpilotInjectionKey,r=t.find(a=>i===a.key);r&&(n.addEventListener("mouseenter",a=>{mp()||vp(a,r)}),n.addEventListener("mouseleave",gp))})}function Fl(){const t=document.querySelectorAll(pn);t.forEach(e=>a_(e.getAttribute(gn)||"")),Wp(),Kp(),kc(),t.length&&($r(!1),wa(!1))}function a_(t){var r;const e=document.querySelector(`[${gn}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(a=>a.remove());const i=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=i||""}function l_(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(pn)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function o_({aiInjections:t,manualInjections:e}){return[...e.map(n=>({...n,manual:!0})),...t]}function s_(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Sc(t){return!t.inactive&&!t.removed&&!t.duplicate&&Ec(t)&&xc(t)}function xc(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function c_(t){return Pc(t).filter(e=>e.in_text!==!1&&Sc(e))}function u_(t){return Pc(t).filter(e=>e.after_article===!0&&Sc(e))}function Pc(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(n=>n.manual&&(n.removed||n.inactive)&&Tc(n,e)))}function d_(t){return t.slice().sort((e,n)=>{if(e.sentence<n.sentence)return-1;if(e.sentence>n.sentence)return 1;const i=n.title.length-e.title.length;return i!==0?i:0})}function f_(t,e,n){return n.some((i,r)=>e!==r&&i.manual&&Tc(i,t))}function Tc(t,e){return t.title===e.title&&Ut(t.sentence)===Ut(e.sentence)}function Ec(t){return!!(t.type==="title"&&t.title_details||t.type==="participant"&&t.participant_details)}function Qn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}function v_(t,e){var o,c,u,f;if(e.popularity===null||e.popularity===void 0)return!0;const n=((c=(o=window.PlayPilotLinkInjections)==null?void 0:o.config)==null?void 0:c.participant_injection_popularity_threshold_use_article_average)??!0,i=n?25:1e3,a=((f=(u=window.PlayPilotLinkInjections)==null?void 0:u.config)==null?void 0:f.participant_injection_popularity_threshold)??i;if(!n)return e.popularity>=a;const s=t.filter(h=>h.type==="participant").reduce((h,{participant_details:d},p,{length:m})=>h+(d.popularity||0)/m,0);return e.popularity>=s*(a/100)}async function h_(){const t=Nn();if(!t)throw new Error("No token was provided");try{return await await en(`/domains/config?api-token=${t}`)||null}catch{return null}}me(["click"]);me(["input"]);me(["click"]);me(["click"]);me(["click"]);me(["mousedown","touchstart"]);me(["mousedown","touchstart"]);me(["click"]);me(["click"]);me(["click"]);me(["click"]);me(["click"]);me(["click"]);me(["click"]);function g_(t,e){ne(e,!0),at(()=>{if(!ai())return;const i=new IntersectionObserver(r=>{r.forEach(a=>{if(!a.isIntersecting)return;i.unobserve(a.target);const s=a.target.getAttribute(gn),o=e.linkInjections.find(u=>u.key===s),c=o==null?void 0:o.title_details;!s||!o||!c||n(c)})});return e.linkInjections.forEach(r=>{r.matchingElement&&i.observe(r.matchingElement)}),()=>i.disconnect()});function n({genres:i,participants:r,providers:a,title:s}){Kt(Ct.TitleInterest,{title:s,source:Pn.Link}),i.slice(0,3).forEach(o=>{var c;Kt(Ct.GenreInterest,{genre:(c=ha.find(u=>u.slug===o))==null?void 0:c.name,source:Pn.Link})}),r==null||r.slice(0,20).forEach(o=>{Kt(Ct.ParticipantInterest,{participant:o.name,source:Pn.Link})}),a==null||a.forEach(o=>{Kt(Ct.ProviderInterest,{provider:o.name,source:Pn.Link})})}ie()}function m_(t,e){ne(e,!1);const n=Array.from(document.querySelectorAll(pn)),i=[],r=Date.now();let a=!1,s=null;at(()=>{if(!fa())return o(),()=>{var h;return(h=s==null?void 0:s.disconnect)==null?void 0:h.call(s)}});function o(){s=new IntersectionObserver(c),n.forEach(h=>{s.observe(h)})}function c(h){h.forEach(d=>{if(!d.isIntersecting)return;const p=d.target.getAttribute(gn);p&&i.push(p),s.unobserve(d.target)})}function u(){const{scrollHeight:h,scrollTop:d,clientHeight:p}=document.documentElement;return d/(h-p)*100}function f(){var d,p;if(a||document.visibilityState!=="hidden")return;a=!0;const h=Date.now();ce(se.UserLeft,null,{time_start:r,time_end:h,time_spent:h-r,existing_injections_count:n.length,shown_injections_count:i.length,fired_events:((p=(d=window.PlayPilotLinkInjections)==null?void 0:d.tracked_events)==null?void 0:p.map(m=>m.event))||[],scroll_percentage:u()})}Sl(),Se("visibilitychange",Ie,f),ie()}function p_(t,e){ne(e,!0);const n=100;let i=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){a();return}if(!window.__tcfapi){i<n&&setTimeout(r,100),i++;return}window.__tcfapi("addEventListener",2,(s,o)=>{if(!o)return;const{purpose:c,eventStatus:u}=s;if(u!=="tcloaded"&&u!=="useractioncomplete")return;const f=h=>c.consents[h]===!0;bf({ads:f(1),pixels:f(1)&&f(7),split_tests:f(9)&&f(10),tracking:f(7)&&f(8),affiliate:f(1)&&f(7)}),a()})}function a(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ie()}var __=A('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),y_=A('<tr class="svelte-1tp7i1s"><td><span class="label"> </span></td><td><span class="data svelte-1tp7i1s"> </span></td></tr>'),w_=A('<table border="0" cellpadding="0" class="svelte-1tp7i1s"><tbody></tbody></table>'),b_=A('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),k_=A('<button class="svelte-1tp7i1s"></button>'),S_=A("<small>You are using the beta version of TPI</small>"),x_=A('<button class="svelte-1tp7i1s">Use beta script</button>'),P_=A('<button class="svelte-1tp7i1s">Toggle new explore</button>'),T_=A("<option> </option>"),E_=A('<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"/> <div class="form-group svelte-1tp7i1s"><label for="participant-threshold"><small>Participant use article average</small></label> <input id="participant-threshold" type="checkbox"/></div> <div class="form-group svelte-1tp7i1s"><small>Participant threshold</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <button class="svelte-1tp7i1s">Re-run AI</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 I_(t,e){var T;ne(e,!0);const n=["tpidebug","debugtpi"],i=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let a=K(Ee(h())),s=K(!1),o=null,c=K(184),u=K(Ee(((T=window.PlayPilotLinkInjections.config)==null?void 0:T.participant_injection_popularity_threshold_use_article_average)??!0)),f=H(()=>{var P;return((P=window.PlayPilotLinkInjections.config)==null?void 0:P.participant_injection_popularity_threshold)||(l(u)?50:1e3)});wr(()=>{o&&clearInterval(o)});function h(){var W,F,B,I,b,M;const P=window.PlayPilotLinkInjections,S=((W=P.evaluated_link_injections)==null?void 0:W.filter(N=>!N.failed))||[],L=((F=P.evaluated_link_injections)==null?void 0:F.filter(N=>N.failed))||[],R=[...S,...L].filter(N=>N.type==="participant"),j=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:P.domain_sid},{label:"Organization",data:P.organization_sid},{label:"HTML selector",data:P.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([N,Y])=>({label:N,data:Y})),[`Succesful injections (${S.length})`]:S.map(N=>({label:N.title,data:N.sentence})),[`Failed injections (${L.length})`]:L.map(N=>({label:N.title,data:`Reason: ${N.failed_message} | Sentence: ${N.sentence}`})),[`Participant popularity (${R.length})`]:R.map(N=>({label:N.participant_details.name,data:N.popularity||N.participant_details.popularity||"Not set"})),[`Fetched ads (${((B=P.ads)==null?void 0:B.length)||0})`]:(I=P.ads)==null?void 0:I.map(N=>({label:N.campaign_name,data:N})),[`Tracking events (${((b=P.tracked_events)==null?void 0:b.length)||0})`]:(M=P.tracked_events)==null?void 0:M.map(N=>({label:N.event,data:N.payload})),[`Visible pixels (${j.length})`]:j.map((N,Y)=>({label:Y+1,data:N.src}))}}function d(P){l(s)||(i.push(P.key),z(s,n.some(S=>i.slice(i.length-S.length,i.length).join("")===S),!0),o=setInterval(()=>z(a,h(),!0),200))}function p(P){window.PlayPilotLinkInjections.ads.unshift({campaign_format:P,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function m(P){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(Rl).forEach(({key:S,numberOfVariants:L})=>{const R=1/L;window.PlayPilotLinkInjections.split_test_identifiers[S]=Math.min(R*P,1)})}function _(){var L,R;const P=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!P)return;(R=(L=window.PlayPilotLinkInjections)==null?void 0:L.destroy)==null||R.call(L);const S=document.createElement("script");for(const j of P.attributes)S.setAttribute(j.name,j.value);S.getAttribute("onload")||S.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),S.src=P.src.replace("link-injection","link-injection@next"),P.insertAdjacentElement("afterend",S),P.remove()}var g=ge();Se("keydown",Ie,d);var w=J(g);{var k=P=>{var S=E_(),L=C(x(S),4);{var R=he=>{var je=__();y(he,je)},j=H(()=>{var he,je,$;return!!((he=window.PlayPilotLinkInjections.config)!=null&&he.exclude_urls_pattern&&Jn().match(($=(je=window.PlayPilotLinkInjections)==null?void 0:je.config)==null?void 0:$.exclude_urls_pattern))});U(L,he=>{l(j)&&he(R)})}var W=C(L,2);Me(W,17,()=>Object.entries(l(a)),De,(he,je)=>{var $=H(()=>Xn(l(je),2));let ve=()=>l($)[0],ke=()=>l($)[1];var Ce=b_(),Le=x(Ce),Ht=x(Le),gt=C(Le,2);{var rn=si=>{var Fn=ge(),Ac=J(Fn);{var Cc=ba=>{var ql=w_(),Mc=x(ql);Me(Mc,21,ke,De,(Dc,Hl,D_,j_)=>{let jc=()=>l(Hl).label,Rc=()=>l(Hl).data;var Bl=y_(),Vl=x(Bl),Oc=x(Vl),Nc=x(Oc),zc=C(Vl),Fc=x(zc),qc=x(Fc);V(Hc=>{Q(Nc,jc()),Q(qc,Hc)},[()=>JSON.stringify(Rc())]),y(Dc,Bl)}),y(ba,ql)},Lc=H(()=>Array.isArray(ke()));U(Ac,ba=>{l(Lc)&&ba(Cc)})}y(si,Fn)},Ic=si=>{var Fn=rt("No data");y(si,Fn)};U(gt,si=>{var Fn;(Fn=ke())!=null&&Fn.length?si(rn):si(Ic,-1)})}V(()=>Q(Ht,ve())),y(he,Ce)});var F=C(W,4),B=C(F,2),I=C(B,6);Me(I,16,()=>({length:4}),De,(he,je,$)=>{var ve=k_();ve.textContent=$,re("click",ve,()=>m($)),y(he,ve)});var b=C(I,4),M=C(b,2),N=C(M,4),Y=C(x(N),2),O=C(N,2),q=C(x(O),2);ae(q,"min",0),ae(q,"step",1);var Z=C(q,2),G=x(Z),X=C(O,4),te=C(X,2),ye=C(te,2);{var le=he=>{var je=S_();y(he,je)},ue=he=>{var je=x_();re("click",je,_),y(he,je)};U(ye,he=>{r?he(le):he(ue,-1)})}var we=C(ye,2);{var be=he=>{var je=P_();re("click",je,()=>{qr(),window.PlayPilotLinkInjections.config.explore_use_router=!ji(),Fr()}),y(he,je)},Oe=H(()=>!ji());U(we,he=>{l(Oe)&&he(be)})}var Xe=C(we,4),lt=C(x(Xe),2);qd(lt,window.PlayPilotLinkInjections.region);var Ft=C(Xe,2),qt=C(x(Ft),2);Me(qt,21,()=>Object.entries(v),De,(he,je)=>{var $=H(()=>Xn(l(je),2));let ve=()=>l($)[0],ke=()=>l($)[1];var Ce=T_(),Le=x(Ce),Ht={};V(gt=>{Os(Ce,gt),Q(Le,ve()),Ht!==(Ht=ke())&&(Ce.value=(Ce.__value=ke())??"")},[()=>ke()===br()]),y(he,Ce)});var tn=C(Ft,4),$e=C(x(tn),2);ae($e,"min",80),ae($e,"max",240),ae($e,"step",8);var li=C($e,2),nn=x(li),oi=C(tn,4);V(()=>{ae(q,"max",l(u)?100:1e4),Q(G,l(f)),Q(nn,l(c))}),re("click",F,()=>p("card")),re("click",B,()=>p("top_scroll")),re("click",b,()=>console.log(tr(window.PlayPilotLinkInjections.config))),re("click",M,()=>console.log(tr(window.PlayPilotLinkInjections.config).pageText)),re("input",Y,he=>window.PlayPilotLinkInjections.config.participant_injection_popularity_threshold_use_article_average=he.target.checked),Bd(Y,()=>l(u),he=>z(u,he)),re("input",q,he=>window.PlayPilotLinkInjections.config.participant_injection_popularity_threshold=parseInt(he.target.value)),Mi(q,()=>l(f),he=>z(f,he)),re("click",X,function(...he){var je;(je=e.onrerender)==null||je.apply(this,he)}),re("click",te,he=>{confirm("You sure? Rerunning the AI will take some time, refresh whenever")&&(Zi({params:{run_ai:!0},method:"POST"}),he.target.disabled=!0)}),re("change",lt,he=>{qr(),window.PlayPilotLinkInjections.region=he.target.value,Fr()}),re("change",qt,he=>{qr(),window.PlayPilotLinkInjections.language=he.target.value,Fr()}),re("input",$e,()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${l(c)}px`)),Mi($e,()=>l(c),he=>z(c,he)),re("click",oi,()=>z(s,!1)),y(P,S)};U(w,P=>{l(s)&&P(k)})}y(t,g),ie()}me(["click","input","change"]);function A_(t,e){ne(e,!0);const n=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),i=new Jr,r=.7,a="[data-playpilot-poster]";let s=K(0),o={},c=null;const u=H(()=>l(s)<Rn);wr(p);function f(){var T,P;if((P=(T=window.PlayPilotLinkInjections)==null?void 0:T.config)!=null&&P.disable_scroll_reveal_posters||!l(u))return;m();const _=window.innerHeight,g=new Jr,w=_*r,k=_-w;for(const S of n){const{top:L}=S.getBoundingClientRect();L<w&&L>k&&g.add(S)}for(const S of g){if(i.has(S))continue;const L=S.dataset.playpilotPosterUrl;L in o&&o[L]!==S||(h(S,L),i.add(S),o[L]=S)}}function h(_,g){const w=document.createElement("img");w.classList.add("playpilot-floating-poster"),w.dataset.playpilotPoster="",w.src=g,w.alt="",w.onload=()=>w.classList.add("loaded"),_.insertAdjacentElement("afterbegin",w)}function d(_){const g=_.querySelector(a);g&&(g.classList.add("animating-out"),setTimeout(()=>g.remove(),500))}function p(){for(const _ of Array.from(document.querySelectorAll(a)))_.remove()}function m(){c&&clearTimeout(c),c=setTimeout(()=>{for(const _ of i)d(_),i.delete(_),o={}},1e3)}Se("scroll",Ie,f),Di("innerWidth",_=>z(s,_,!0)),ie()}var C_=A("<!> <!>",1),L_=A('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!> <!>',1);function M_(t,e){ne(e,!0);let n=K(null),i=K(Ee(fa()));Ws();let r=K(!1),a=K(!0),s=K(!0),o=K(Ee([]));const c=H(()=>l(n)||{}),u=H(()=>qa(l(c).ai_injections,()=>[],!0)),f=H(()=>qa(l(c).manual_injections,()=>[],!0)),h=p();He(()=>{l(i)&&!l(a)&&m()}),Fr(),wr(Fl);async function d(){var b;if(Rr())return;await h,Ef(),ce(se.ArticlePageView);const I=(b=window.PlayPilotLinkInjections.config)==null?void 0:b.explore_navigation_path;!l(u).length&&!l(f).length&&!(I&&document.location.href.includes(I))||(window.PlayPilotLinkInjections.ads=await $s(),window.dispatchEvent(new CustomEvent("updateads",{bubbles:!0})))}async function p(){var I;z(a,!0);try{l(i)&&z(r,await Vs({throwError:!0}),!0)}catch{ce(se.AuthFailed)}try{const b=window.PlayPilotLinkInjections.config||await h_()||{};if(window.PlayPilotLinkInjections.config=b,b!=null&&b.custom_style&&g(b.custom_style||""),b!=null&&b.explore_navigation_selector&&Im(),b!=null&&b.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),b!=null&&b.domain_sid&&go({organizationSid:b.organization_sid,domainSid:b.domain_sid}),z(s,of(b),!0),l(s))return;b!=null&&b.html_selector&&(window.PlayPilotLinkInjections.selector=b==null?void 0:b.html_selector)}catch(b){ce(se.FetchingConfigFailed),console.error("TPI Config failed to fetch",b);return}try{if(await(async b=>{var M=Xn(b,1);z(n,M[0],!0)})(await Promise.all([await(window.PlayPilotLinkInjections.initial_link_injections_promise||so({maxTries:1,runAiWhenRelevant:!Rr()})),await kr()])),z(a,!1),!l(n)||(I=window.PlayPilotLinkInjections.config)!=null&&I.disable_public_injections&&!(l(i)&&l(r)))return;if(go({organizationSid:l(n).organization_sid,domainSid:l(n).domain_sid}),!l(n).ai_running||!l(n).ai_enabled){_({aiInjections:l(u),manualInjections:l(f)});return}if(!l(i)||Rr())return;z(n,await so({requireCompletedResult:!0,onpoll:b=>z(n,b,!0)}),!0),_({aiInjections:l(u),manualInjections:l(f)})}catch(b){console.error(b),ce(se.InjectionError,null,{message:b.message})}}function m(){_(s_(l(o)))}function _(I={aiInjections:l(u),manualInjections:l(f)}){const{elements:b}=tr(),M=e_(b,I);JSON.stringify(M)!==JSON.stringify(l(o))&&(z(o,M,!0),window.PlayPilotLinkInjections.evaluated_link_injections=M),l(i)||w(M)}function g(I){const b="playpilot-custom-style",M=document.getElementById(b),N=M||document.createElement("style");N.textContent=`body { ${I} }`,N.id=b,M||document.body.appendChild(N)}function w(I){const b=I.filter(N=>!N.failed),M=I.filter(N=>N.failed);if(b.length&&ce(se.ArticleInjected,null,{manual:b.filter(N=>N.manual).length,ai:b.filter(N=>!N.manual).length}),M.length){const N=Y=>M.filter(({failed_message:O})=>O==null?void 0:O.includes(Y)).length;ce(se.FailedInjectionsCount,null,{total:M.length,sentence_not_found:N("sentence was not found"),already_linked:N("already inside of a link"),broken_html:N("broken HTML"),duplicate:N("duplicate"),unknown:N("unknown reasons")})}}var k=L_(),T=J(k),P=x(T);U(P,I=>{});var S=C(P,2);I_(S,{onrerender:m});var L=C(T,2);{var R=I=>{Ml(I,{get pixels(){return l(n).pixels}})};U(L,I=>{var b,M;(M=(b=l(n))==null?void 0:b.pixels)!=null&&M.length&&I(R)})}var j=C(L,2);{var W=I=>{g_(I,{get linkInjections(){return l(o)}})};U(j,I=>{l(o).length&&I(W)})}var F=C(j,2);yr(F,()=>l(o),I=>{var b=C_(),M=J(b);m_(M,{});var N=C(M,2);A_(N,{}),y(I,b)});var B=C(F,2);p_(B,{onchange:d}),y(t,k),ie()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Dt(M_,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),Fl()}};
10
+ `}}function ma(t){return t?t.replace("/src/img",""):null}function _o(t,e=null){return t!=null&&t.length?`${Yd}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Rf=I('<img class="svelte-p6g2a"/>');function pa(t,e){ne(e,!0);const n=D(e,"width",3,96),i=D(e,"height",3,144),r=D(e,"lazy",3,!0),a=D(e,"onload",3,()=>null);var s=Rf();W(o=>{ae(s,"loading",r()?"lazy":null),ae(s,"src",o),ae(s,"alt",`Movie poster for '${e.title.title??""}'`),ae(s,"width",n()),ae(s,"height",i())},[()=>ma(e.title.standing_poster)]),Se("error",s,({target:o})=>o.src=Qd),Se("load",s,function(...o){var c;(c=a())==null||c.apply(this,o)}),y(t,s),ie()}var Of=Ge('<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 _a(t,e){const n=D(e,"size",3,16);var i=Of();W(()=>{ae(i,"width",n()),ae(i,"height",n())}),y(t,i)}function Yr(t,e){ne(e,!0);const n=D(e,"size",3,"32px"),i=D(e,"onclick",3,()=>null),r=qi(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var a=ge(),s=J(a);Ms(s,()=>e.href?"a":"button",!1,(o,c)=>{Ns(o,()=>({role:e.href?"link":"button",onclick:i(),class:"button",...r,[vi]:{"--size":n()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var u=ge(),f=J(u);Ve(f,()=>e.children??vt),y(c,u)}),y(t,a),ie()}var Nf=I('<div><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <div class="close svelte-f0c4xl"><!></div></div>');function zf(t,e){const n=D(e,"embeddable_url",3,"");let i=K(Ee(window.innerHeight)),r=K(Ee(window.innerWidth)),a=B(()=>l(r)<l(i));var s=Nf();let o;var c=S(s);Al(c,{get embeddable_url(){return n()},controls:["current-time","fullscreen","mute","play","progress"]});var u=C(c,2),f=C(u,2),h=S(f);Yr(h,{size:"42px",get onclick(){return e.onclose},"aria-label":"Close",children:(d,g)=>{_a(d,{size:24})},$$slots:{default:!0}}),W(()=>o=pe(s,1,"overlay svelte-f0c4xl",null,o,{portrait:l(a)})),Di("innerWidth",d=>z(r,d,!0)),Di("innerHeight",d=>z(i,d,!0)),re("click",u,function(...d){var g;(g=e.onclose)==null||g.apply(this,d)}),Ne(3,s,()=>dn,()=>({duration:100})),y(t,s)}me(["click"]);const qf="https://youtube-availability.playpilot.workers.dev";async function oc(t){var n,i,r;const e=(n=await kr())==null?void 0:n.toUpperCase();if(!e)return!0;try{const a=await fetch(`${qf}/?video_id=${t}`);if(!a.ok)throw new Error("Response was not ok");const s=await a.json();return!((i=s.blocked)!=null&&i[e]||!s.blocked&&s.allowed&&!((r=s.allowed)!=null&&r.includes(e)))}catch{return!1}}let Or={};function sc(t){const e=Qn(),n={onclose:Ff,embeddable_url:t.embeddable_url||""};Or=Dt(zf,{target:e,props:n})}function Ff(){Or&&(ri(Or,{outro:!0}),Or=null)}function Il(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,n=t.match(e);return(n==null?void 0:n[7])||null}async function Hf(t,e=3){let n=0,i=null;for(;n<e&&!i;){const r=t[n],a=(r==null?void 0:r.embeddable_url)&&Il(r.embeddable_url);try{a&&await oc(a)&&(i=r)}catch{}n++}return i}var Bf=Ge('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Vf=Ge('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Wf=Ge('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function Uf(t,e){const n=D(e,"muted",3,!1);var i=Wf(),r=S(i);{var a=o=>{var c=Bf();y(o,c)},s=o=>{var c=Vf();y(o,c)};U(r,o=>{n()?o(a):o(s,-1)})}y(t,i)}Iu();var Gf=Ge('<svg width="32px" height="32px" viewBox="0 -960 960 960"><path fill="currentColor" d="M120-120v-200h80v120h120v80H120Zm520 0v-80h120v-120h80v200H640ZM120-640v-200h200v80H200v120h-80Zm640 0v-120H640v-80h200v200h-80Z"></path></svg>');function Zf(t){var e=Gf();y(t,e)}var Kf=md(I('<script src="https://unpkg.com/plyr@3"><\/script> <link rel="stylesheet" href="https://unpkg.com/plyr@3/dist/plyr.css"/>',1)),Yf=I('<button class="action svelte-1ivh34t" aria-label="Mute"><!></button> <button class="action secondary svelte-1ivh34t" aria-label="Fullscreen"><!></button>',1),Jf=I('<div><div class="player svelte-1ivh34t" data-plyr-provider="youtube" data-plyr-embed-id=""></div> <!></div>');function Al(t,e){var V;ne(e,!0);let n=D(e,"embeddable_url",3,""),i=D(e,"controls",19,()=>[]),r=D(e,"muted",7,!1),a=D(e,"loop",3,!1),s=D(e,"captions",3,!1),o=D(e,"autoplay",3,!0),c=D(e,"showActions",3,!1),u=D(e,"fallbackStartTime",3,0),f=D(e,"clickToPlay",3,!0);const h=B(()=>Il(n())),d=B(()=>{var A,b;return(((b=(A=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:A.video_playtimes)==null?void 0:b[l(h)||""])||u()+1)-1}),g=((V=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:V.replace("#",""))||"fa548a";let _=K(null),m=K(!1),p;at(()=>{if(!l(h))return;window.PlayPilotLinkInjections.video_playtimes||(window.PlayPilotLinkInjections.video_playtimes={});let A=l(d);const b=setInterval(()=>{A++,window.PlayPilotLinkInjections.video_playtimes[l(h)]=A},1e3);return()=>clearInterval(b)});function w(){typeof window.Plyr>"u"||l(_)&&(l(_).dataset.plyrEmbedId=l(h),l(_).style.setProperty("--plyr-color-main","#"+g),p=new window.Plyr(l(_),{controls:i().length===0?["play","mute","fullscreen","progress","current-time"]:i(),playsinline:!0,autoplay:o(),muted:r(),clickToPlay:f(),storage:{enabled:!1},youtube:{noCookie:!0,cc_load_policy:s()?1:0,cc_lang_pref:"auto"}}),p.on("ready",()=>{p.currentTime=l(d),k(r())}),p.on("enterfullscreen",()=>{z(m,!0),k(!1)}),p.on("exitfullscreen",()=>{z(m,!1),k(!0)}),a()&&p.on("statechange",A=>{A.detail.code===0&&requestAnimationFrame(()=>{p.play(),k(r())})}))}function k(A=!r()){r(A),p.muted=A,p.volume=A?0:1}function P(){if(/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1){sc({embeddable_url:n()}),k(!0);return}p.fullscreen.enter()}function x(A){A.detail===n()&&(p==null||p.play())}function T(A){A.detail===n()&&(p==null||p.pause())}var j={toggleMute:k,enterFullscreen:P,play:x,pause:T},R=ge();Se("playembed",Ie,x),Se("pauseembed",Ie,T),Ld("1ivh34t",A=>{var b=ge(),L=J(b);{var O=Y=>{var N=Kf(),H=J(N);Se("load",H,w),y(Y,N)};U(L,Y=>{l(h)&&Y(O)})}y(A,b)});var M=J(R);{var F=A=>{var b=Jf();let L;var O=S(b);Fe(O,H=>z(_,H),()=>l(_));var Y=C(O,2);{var N=H=>{var Z=Yf(),G=J(Z),X=S(G);Uf(X,{get muted(){return r()}});var te=C(G,2),ye=S(te);Zf(ye),re("click",G,()=>k()),re("click",te,P),y(H,Z)};U(Y,H=>{c()&&H(N)})}W(()=>{L=pe(b,1,"svelte-1ivh34t",null,L,{fullscreen:l(m),"hide-controls":i().length===0&&!l(m)}),ae(O,"data-testid",n())}),y(A,b)},q=A=>{var b=rt("Something went wrong");y(A,b)};U(M,A=>{l(h)?A(F):A(q,-1)})}return y(t,R),ie(j)}me(["click"]);var Qf=I('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function cc(t,e){ne(e,!0);let n=D(e,"gap",3,"0"),i=D(e,"fill",3,!0),r=D(e,"vertical",3,!1),a=D(e,"transitionDuration",3,300),s=D(e,"threshold",3,30),o=D(e,"moveThreshold",3,0),c=D(e,"currentIndex",15,0),u=D(e,"shown",31,()=>Ee([])),f=D(e,"sliderWidth",15,0),h=D(e,"sliderHeight",15,0),d=D(e,"currentScrollPosition",15,0),g=D(e,"maxWidth",15,0),_=D(e,"maxHeight",15,0),m=D(e,"reachedEnd",15,!1),p=D(e,"distanceToEnd",15,0),w=D(e,"passedThreshold",15,!1),k=D(e,"passedMoveThreshold",15,!1),P=D(e,"allowWheel",3,!1),x=D(e,"end",3,()=>null),T=D(e,"change",3,$=>null),j=D(e,"onend",19,x),R=D(e,"onchange",19,T),M=D(e,"onresize",3,()=>null),F=K(!1),q=K(!1),V=0,A=0,b=K(void 0),L=K(void 0),O=null,Y=null;He(()=>{l(L)&&we(),l(L)&&p((r()?_():g())-d()-(r()?h():f()))}),at(()=>(lt(),()=>O==null?void 0:O.disconnect()));function N($){const ve=l(L).children.length,ke=Math.max(0,Math.min($,ve-1));le({setIndex:ke}),we()}function H(){z(q,!0),N(c()),requestAnimationFrame(()=>z(q,!1))}function Z($){qt($.target)&&($.preventDefault(),V=be($),z(F,!0))}function G(){if(l(F)){if(!w())le({setIndex:c()});else{const $=d()-A,ve=$>0?1:-1;$!=0&&le({direction:ve})}z(F,!1),w(!1)}}function X($){if(!l(F))return;const ve=be($),ke=A+(V-ve),Ce=V-ve;k(Math.abs(Ce)>o()),w(Math.abs(d()-A)>s()),k()&&(ue(ke-o()*(Ce>0?1:-1)),we())}function te($){if(!P())return;const{deltaX:ve,deltaY:ke}=$;if(Math.abs(ve)<Math.abs(ke))return;$.preventDefault();const Ce=20,Le=r()?ke:ve,Ht=d()+Le*Ce*.02;ue(Ht),we(),Y&&clearTimeout(Y),Y=setTimeout(()=>{le({direction:Le>0?1:-1})},100)}function ye($){qt(document.activeElement)&&($.key=="ArrowLeft"&&N(c()-1),$.key=="ArrowRight"&&N(c()+1))}function le({setIndex:$=-1,direction:ve=1}={}){const ke=Oe(),Ce=c();c(0);let Le;for(Le=0;Le<ke.length;Le++)if($!=-1){if(Le>=$)break}else if(ve>0&&ke[Le]>d()||ve<0&&ke[Le+1]>d())break;c(Math.min(Le,Xe().length-1)),ue(ke[c()],!0),A=d(),R()&&c()!=Ce&&R()(c())}function ue($,ve=!1){d($);const ke=r()?_():g(),Ce=r()?h():f(),Le=ke-Ce,Ht=r()?"clientHeight":"clientWidth";m(d()>=Le),m()&&(j()&&j()(),i()&&ve&&d(l(L)[Ht]<Ce?0:Le))}function we(){const $=Oe();Array.from($).forEach((ve,ke)=>{d()+f()<ve||u().includes(ke)||u([...u(),ke])})}function be($){var ke,Ce;const ve=r()?"pageY":"pageX";return $[ve]??((Ce=(ke=$.touches)==null?void 0:ke[0])==null?void 0:Ce[ve])}function Oe(){return Xe().map($=>r()?$.offsetTop:$.offsetLeft)}function Xe(){return Array.from(l(L).children).filter($=>$ instanceof HTMLElement).filter($=>$.src!="about:blank")}function lt(){O=new ResizeObserver($=>{for(const ve of $){const ke=Array.isArray(ve.contentBoxSize)?ve.contentBoxSize[0]:ve.contentBoxSize;g(ke.inlineSize),_(ke.blockSize)}M()()}),O.observe(l(L))}function qt($){return $===l(b)||($==null?void 0:$.closest(".slider"))===l(b)}var Ft={setIndex:N,reposition:H},tn=Qf();Se("mousedown",Ie,Z),Se("mouseup",Ie,G),Se("mousemove",Ie,X),Se("touchstart",Ie,Z,void 0,!0),Se("touchend",Ie,G),Se("touchmove",Ie,X,void 0,!0),Se("keydown",Ie,ye),Se("resize",Ie,H);var $e=J(tn);let li;var nn=S($e);let oi;var he=S(nn);Ve(he,()=>e.children??vt,()=>({sliderWidth:f(),sliderHeight:h(),shown:u(),currentIndex:c(),setIndex:N,currentScrollPosition:d(),maxWidth:g(),reachedEnd:m(),distanceToEnd:p()})),Fe(nn,$=>z(L,$),()=>l(L)),Fe($e,$=>z(b,$),()=>l(b));var je=C($e,2);return Ve(je,()=>e.controls??vt,()=>({sliderWidth:f(),sliderHeight:h(),shown:u(),currentIndex:c(),setIndex:N,currentScrollPosition:d(),maxWidth:g(),reachedEnd:m(),distanceToEnd:p()})),W($=>{li=pe($e,1,"slider svelte-1gs8ha8",null,li,{dragging:l(F),"passed-threshold":w(),vertical:r()}),oi=Ue(nn,"",oi,$)},[()=>({transform:`translate${r()?"Y":"X"}(${d()*-1}px)`,"transition-duration":`${(l(F)||l(q)?0:a())??""}ms`,"--gap":parseFloat(n()||"0")?n():null})]),Se("wheel",$e,te),ht($e,"clientWidth",f),ht($e,"clientHeight",h),y(t,tn),ie(Ft)}var Xf=Ge("<title> </title>"),$f=Ge('<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 Pt(t,e){const n=D(e,"direction",3,"right"),i=D(e,"title",3,""),r=D(e,"size",3,16);var a=$f(),s=S(a);{var o=c=>{var u=Xf(),f=S(u);W(()=>Q(f,i())),y(c,u)};U(s,c=>{i()&&c(o)})}W(()=>{pe(a,0,n(),"svelte-1m6nwwy"),ae(a,"width",`${r()??""}px`),ae(a,"height",`${r()??""}px`)}),y(t,a)}function Re(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var ev=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],tv=["difference","intersection","symmetricDifference","union"],yo=!1,Ti,It,Sn,aa,Ri,uc,dc;const la=class la extends Set{constructor(n){super();oe(this,Ri);oe(this,Ti,new Map);oe(this,It,K(0));oe(this,Sn,K(0));oe(this,aa,un||-1);if(n){for(var i of n)super.add(i);E(this,Sn).v=super.size}yo||xe(this,Ri,dc).call(this)}has(n){var i=super.has(n),r=E(this,Ti),a=r.get(n);if(a===void 0){if(!i)return l(E(this,It)),!1;a=xe(this,Ri,uc).call(this,!0),r.set(n,a)}return l(a),i}add(n){return super.has(n)||(super.add(n),z(E(this,Sn),super.size),An(E(this,It))),this}delete(n){var i=super.delete(n),r=E(this,Ti),a=r.get(n);return a!==void 0&&(r.delete(n),z(a,!1)),i&&(z(E(this,Sn),super.size),An(E(this,It))),i}clear(){if(super.size!==0){super.clear();var n=E(this,Ti);for(var i of n.values())z(i,!1);n.clear(),z(E(this,Sn),0),An(E(this,It))}}keys(){return this.values()}values(){return l(E(this,It)),super.values()}entries(){return l(E(this,It)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return l(E(this,Sn))}};Ti=new WeakMap,It=new WeakMap,Sn=new WeakMap,aa=new WeakMap,Ri=new WeakSet,uc=function(n){return un===E(this,aa)?K(n):Xt(n)},dc=function(){yo=!0;var n=la.prototype,i=Set.prototype;for(const r of ev)n[r]=function(...a){return l(E(this,It)),i[r].apply(this,a)};for(const r of tv)n[r]=function(...a){l(E(this,It));var s=i[r].apply(this,a);return new la(s)}};let Jr=la;var dr,fr;class nv{constructor(e,n){oe(this,dr);oe(this,fr);fe(this,dr,e),fe(this,fr,Xo(n))}get current(){return E(this,fr).call(this),E(this,dr).call(this)}}dr=new WeakMap,fr=new WeakMap;const iv=/\(.+\)/,rv=new Set(["all","print","screen","and","or","not","only"]);class av extends nv{constructor(e,n){let i=iv.test(e)||e.split(/[\s,]+/).some(a=>rv.has(a.trim()))?e:`(${e})`;const r=window.matchMedia(i);super(()=>r.matches,a=>fd(r,"change",a))}}function lv(t){const e=t-1;return e*e*e+1}const Hi=new av("(prefers-reduced-motion: reduce)");var ov=I('<div class="heading svelte-1ayf7b5"> </div>'),sv=I('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),cv=I('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),uv=I("<!> <!>",1),dv=I('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function Qr(t,e){ne(e,!0);let n=D(e,"heading",3,""),i=D(e,"onchange",3,()=>null),r=D(e,"onresize",3,()=>null),a=D(e,"slider",15),s=D(e,"shown",31,()=>Ee([]));var o=dv(),c=J(o);{var u=d=>{var g=ov(),_=S(g);Rt(g,(m,p)=>Re==null?void 0:Re(m,p),()=>2),W(()=>Q(_,n())),y(d,g)};U(c,d=>{n()&&d(u)})}var f=C(c,2),h=S(f);{const d=(_,m)=>{let p=()=>(m==null?void 0:m()).setIndex,w=()=>(m==null?void 0:m()).currentIndex,k=()=>(m==null?void 0:m()).reachedEnd;var P=uv(),x=J(P);{var T=M=>{var F=sv(),q=S(F);Pt(q,{direction:"left",title:"Previous"}),re("click",F,()=>p()(w()-1)),y(M,F)};U(x,M=>{w()>0&&M(T)})}var j=C(x,2);{var R=M=>{var F=cv(),q=S(F);Pt(q,{title:"Next"}),re("click",F,()=>p()(w()+1)),y(M,F)};U(j,M=>{k()||M(R)})}y(_,P)};let g=B(()=>Hi.current?0:300);Fe(cc(h,{get onchange(){return i()},get onresize(){return r()},get transitionDuration(){return l(g)},allowWheel:!0,get shown(){return s()},set shown(_){s(_)},controls:d,children:(_,m)=>{var p=ge(),w=J(p);Ve(w,()=>e.children),y(_,p)},$$slots:{controls:!0,default:!0}}),_=>a(_),()=>a())}y(t,o),ie()}me(["click"]);function fc(t){return`${Fs}/${t.type}/${t.slug}/`}function fv(t){return`${Fs}/name/${t.sid}/`}function Cl(t){var e,n;return((n=(e=window.PlayPilotLinkInjections)==null?void 0:e.config)==null?void 0:n.explore_navigation_path)+`?route=modal&sid=${t}`}var vv=I('<img class="video-fallback svelte-12ph9f6" alt=""/>'),hv=I('<div class="video svelte-12ph9f6"><div class="video-overlay svelte-12ph9f6" title=""></div> <!></div>'),gv=I('<div class="poster svelte-12ph9f6"><!></div>'),mv=I('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),pv=I('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <span class="heading svelte-12ph9f6" data-testid="heading"> </span> <!></div>'),_v=I('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),yv=I('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),wv=I('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),bv=I("<div><!></div>");function nr(t,e){ne(e,!0);let n=D(e,"minimumLength",3,1),i=D(e,"heading",3,""),r=D(e,"size",3,"small"),a=D(e,"aside",3,!1),s=D(e,"navigateToExplore",3,!1),o=D(e,"expandable",3,!1),c=D(e,"expandedTitle",15,null),u=D(e,"expandedRailKey",15,null),f=D(e,"shown",31,()=>Ee([])),h=D(e,"onclick",3,()=>null),d=D(e,"onexpand",3,()=>null);const g=va(),m=Qi("scope")==="popover"?Qi("title"):null;let p=K(null),w=K(null),k=K(null),P=!1;at(()=>{o()&&R()});function x(b,L,O){var N,H,Z,G,X;b==null||b.preventDefault();const Y=L[O];if(o()&&!M(Y)){const te=(N=l(p))==null?void 0:N.querySelectorAll(".title")[O],ue=(((H=l(p))==null?void 0:H.getBoundingClientRect().right)||0)-te.getBoundingClientRect().right>te.clientWidth*2;P=!0,setTimeout(()=>P=!1,500),r()==="flexible"&&!ue?(Z=l(w))==null||Z.setIndex(O-2):r()==="huge"&&!ue&&((G=l(w))==null||G.setIndex(O)),j(Y),b&&d()(Y);return}if(b){if((X=l(k))==null||X.toggleMute(!0),h()(Y),s()){window.location.href=Cl(Y.sid);return}ji()?hn({event:b,type:"titles-rail",data:L,returnToTitle:m,props:{initialIndex:O}}):hn({event:b,data:Y,returnToTitle:m})}}async function T(){const b=await e.titles,L=await Hf(b);L&&(c()||u()&&u()!==g||j(L))}function j(b){u(g),c(b)}function R(){u()===g||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(Y=>Y.getBoundingClientRect().top>=0).sort((Y,N)=>Y.getBoundingClientRect().top-N.getBoundingClientRect().top)[0]!==l(p)||(c(null),u(null),T())}function M(b){var L;return u()===g&&b.sid===((L=c())==null?void 0:L.sid)}function F(b,L){o()&&(P||setTimeout(()=>x(null,b,L),250))}var q=bv();Se("scroll",Ie,R);let V;var A=S(q);vn(A,()=>e.titles,b=>{Qr(b,{get heading(){return i()},children:(L,O)=>{var Y=ge(),N=J(Y);Me(N,16,()=>({length:12}),De,(H,Z)=>{var G=wv(),X=C(S(G),4);{var te=ye=>{var le=yv(),ue=S(le);Me(ue,20,()=>({length:3}),De,(we,be)=>{var Oe=_v();y(we,Oe)}),y(ye,le)};U(X,ye=>{a()&&ye(te)})}y(H,G)}),y(L,Y)},$$slots:{default:!0}})},(b,L)=>{const O=B(()=>{var Z;return(Z=l(L))==null?void 0:Z.filter((G,X,te)=>te.findIndex(ye=>ye.sid===G.sid)===X)});var Y=ge(),N=J(Y);{var H=Z=>{Qr(Z,{get heading(){return i()},onchange:G=>F(l(L),G),onresize:()=>{var G;return(G=l(w))==null?void 0:G.reposition()},get slider(){return l(w)},set slider(G){z(w,G,!0)},get shown(){return f()},set shown(G){f(G)},children:(G,X)=>{var te=ge(),ye=J(te);Me(ye,17,()=>l(O),De,(le,ue,we,be)=>{const Oe=B(()=>M(l(ue))),Xe=B(()=>$=>x($,l(L),we));var lt=pv();let qt;var Ft=S(lt),tn=S(Ft);{var $e=$=>{var ve=hv(),ke=S(ve),Ce=C(ke,2);{var Le=gt=>{Fe(Al(gt,{get embeddable_url(){return l(ue).embeddable_url},muted:!0,loop:!0,captions:!0,showActions:!0}),rn=>z(k,rn,!0),()=>l(k))},Ht=gt=>{var rn=vv();W(()=>ae(rn,"src",l(ue).medium_poster)),y(gt,rn)};U(Ce,gt=>{l(ue).embeddable_url?gt(Le):gt(Ht,-1)})}re("click",ke,function(...gt){var rn;(rn=l(Xe))==null||rn.apply(this,gt)}),Ne(2,ve,()=>dn,()=>({delay:200,duration:200})),y($,ve)},li=$=>{var ve=gv(),ke=S(ve);pa(ke,{get title(){return l(ue)},width:96,height:144}),re("click",ve,function(...Ce){var Le;(Le=l(Xe))==null||Le.apply(this,Ce)}),y($,ve)};U(tn,$=>{l(Oe)?$($e):$(li,-1)})}var nn=C(Ft,2),oi=S(nn),he=C(nn,2);{var je=$=>{var ve=mv(),ke=S(ve);W(()=>Q(ke,l(ue).description)),re("click",ve,function(...Ce){var Le;(Le=l(Xe))==null||Le.apply(this,Ce)}),y($,ve)};U(he,$=>{a()&&$(je)})}W(()=>{qt=pe(lt,1,"title svelte-12ph9f6",null,qt,{expanded:l(Oe)}),Q(oi,l(ue).title)}),re("click",nn,function(...$){var ve;(ve=l(Xe))==null||ve.apply(this,$)}),y(le,lt)}),y(G,te)},$$slots:{default:!0}})};U(N,Z=>{var G;((G=l(L))==null?void 0:G.length)>=n()&&Z(H)})}y(b,Y)}),Fe(q,b=>z(p,b),()=>l(p)),W(()=>{V=pe(q,1,`titles ${r()??""}`,"svelte-12ph9f6",V,{"with-aside":a()}),ae(q,"data-role",o()?"expandable-rail":null)}),y(t,q),ie()}me(["click"]);var kv=I("<div><!></div>");function Sv(t,e){ne(e,!0);const n=D(e,"maxPage",3,4),i=D(e,"lazy",3,!1);D(e,"expandedTitle",11,null),D(e,"expandedRailKey",11,null);const r=qi(e,["$$slots","$$events","$$legacy","fetchFunction","maxPage","lazy","expandedTitle","expandedRailKey"]),a=new Promise(()=>{});let s=K(Ee([])),o=K(Ee([])),c=K(1),u=K(!1),f=K(!0),h=K(null),d=B(()=>!i());He(()=>{l(d)&&g()}),He(()=>{l(f)||l(u)&&(l(c)>=n()||l(s).length-l(o).length>10||(Uu(c),g()))}),at(()=>{if(!i()||!l(h))return;const k=new IntersectionObserver(([P])=>{P.isIntersecting&&(z(d,!0),k.disconnect())},{rootMargin:window.innerHeight/2+"px"});return k.observe(l(h)),()=>k==null?void 0:k.disconnect()});async function g(){z(f,!0),z(u,!1);try{const{next:k,results:P}=await e.fetchFunction(l(c));z(s,[...l(s),...P],!0),z(u,!!k)}finally{z(f,!1)}}var _=kv(),m=S(_);{var p=k=>{nr(k,jn({get titles(){return a}},()=>r))},w=k=>{nr(k,jn({get titles(){return l(s)}},()=>r,{get shown(){return l(o)},set shown(P){z(o,P,!0)}}))};U(m,k=>{i()&&!l(d)||!l(s).length&&l(f)?k(p):k(w,-1)})}Fe(_,k=>z(h,k),()=>l(h)),y(t,_),ie()}var xv=I('<div class="rail svelte-1b834ry"><!></div>'),Pv=I('<div class="rail svelte-1b834ry"><!></div>'),Tv=I('<div data-testid="explore-home"></div> <!>',1);function wo(t,e){ne(e,!0);let n=K(null),i=K(null),r=K(Ee(window.innerWidth));async function a(){return await en("/streaming-guide/rails",{baseUrl:"https://partner.playpilot.net/api"})}async function s(u={}){try{return await ga({...u,page_size:25})}catch(f){throw console.log(f),ce(se.ExploreHomeRailError,null,{message:f.message||f.status.toString()||"",params:u}),new Error(f)}}var o=Tv();Se("scroll",Ie,onscroll);var c=C(J(o),2);vn(c,a,u=>{var f=ge(),h=J(f);Me(h,16,()=>({length:3}),De,(d,g)=>{var _=Pv(),m=S(_);nr(m,{heading:" ",titles:new Promise(()=>{}),size:"huge"}),y(d,_)}),y(u,f)},(u,f)=>{var h=ge(),d=J(h);Me(d,17,()=>l(f),De,(g,_)=>{let m=()=>l(_).headings,p=()=>l(_).params,w=()=>l(_).properties;const k=B(()=>m()[br()]);var P=xv(),x=S(P);{let T=B(()=>w().size||"flexible"),j=B(()=>w().minimum??7);Sv(x,jn({get heading(){return l(k)}},w,{lazy:!0,onclick:()=>ce(se.ExploreTitleRailModalView,null,{rail:m()}),onexpand:R=>ce(se.ExploreTitleRailExpandClick,R,{rail:m()}),fetchFunction:R=>s({...p(),page:R}),get size(){return l(T)},get minimumLength(){return l(j)},get expandedTitle(){return l(n)},set expandedTitle(R){z(n,R,!0)},get expandedRailKey(){return l(i)},set expandedRailKey(R){z(i,R,!0)}}))}y(g,P)}),y(u,h)},u=>{var f=rt();W(h=>Q(f,h),[()=>ee("An Error Occurred")]),y(u,f)}),Di("innerWidth",u=>z(r,u,!0)),y(t,o),ie()}function ai(){var t;return!((t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels)||!zn("pixels")?!1:(window[ec]=Xs(),!0)}var Ev=I("<button><!></button>");function Ot(t,e){const n=D(e,"variant",3,"filled"),i=D(e,"size",3,"base"),r=D(e,"label",3,null),a=D(e,"active",3,!1);var s=Ev();let o;var c=S(s);Ve(c,()=>e.children??vt),W(()=>{o=pe(s,1,`button ${n()??""} ${i()??""}`,"svelte-5bqh67",o,{active:a()}),ae(s,"aria-label",r())}),re("click",s,function(...u){var f;(f=e.onclick)==null||f.apply(this,u)}),y(t,s)}me(["click"]);var Iv=Ge('<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 Ll(t,e){const n=D(e,"size",3,14);var i=Iv();W(()=>{ae(i,"width",n()),ae(i,"height",n())}),y(t,i)}function vc(t){const e=t.filter(i=>!!i.logo_url);let n=[];for(const i of e){let r=i;const a=n.find(c=>c.name===r.name),s=a==null?void 0:a.extra_info.category,o=r.extra_info.category;(s==="RENT"&&o==="BUY"||s==="BUY"&&o==="RENT")&&(n=n.filter(c=>c.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),n.push(r)}return n}var Av=I('<img alt="" data-playpilot-pixel="" class="svelte-ico4xd"/>');function Ml(t,e){ne(e,!0);let n=K(Ee(Math.random()));var i=ge();Se("updateconsent",Ie,()=>z(n,Math.random(),!0));var r=J(i);yr(r,()=>l(n),a=>{var s=ge(),o=J(s);{var c=f=>{var h=ge(),d=J(h);Me(d,17,()=>e.pixels,De,(g,_)=>{var m=Av();W(()=>ae(m,"src",l(_))),y(g,m)}),y(f,h)},u=B(()=>zn("pixels"));U(o,f=>{l(u)&&f(c)})}y(a,s)}),y(t,i),ie()}var Cv=I('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Lv(t,e){ne(e,!0);const n=D(e,"size",3,30),i=D(e,"onclick",3,()=>null),r=B(()=>e.playlink.name),a=B(()=>e.playlink.url),s=B(()=>e.playlink.logo_url),o=B(()=>e.playlink.pixels);var c=Cv();let u;var f=S(c),h=C(f,2);{var d=g=>{Ml(g,{get pixels(){return l(o)}})};U(h,g=>{var _;(_=l(o))!=null&&_.length&&g(d)})}W(g=>{ae(c,"href",l(a)),ae(c,"data-playlink",l(r)),u=Ue(c,"",u,{"--size":`${n()??""}px`}),ae(f,"src",g),ae(f,"alt",l(r)),ae(f,"height",n()),ae(f,"width",n())},[()=>ma(l(s))]),re("click",c,function(...g){var _;(_=i())==null||_.apply(this,g)}),y(t,c),ie()}me(["click"]);var Mv=I('<button class="button more svelte-1plv45z"> </button>'),Dv=I('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),jv=I('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function hc(t,e){ne(e,!0);const n=D(e,"size",3,30);let i=K(3);const r=vc(e.playlinks),a=B(()=>r.slice(0,l(i)));function s(_){_.stopPropagation()}function o(){z(i,r.length,!0)}var c=jv(),u=S(c);Me(u,17,()=>l(a),De,(_,m)=>{Lv(_,{get playlink(){return l(m)},onclick:s,get size(){return n()}})});var f=C(u,2);{var h=_=>{var m=Mv(),p=S(m);W(()=>Q(p,`+${r.length-l(i)}`)),re("click",m,o),y(_,m)};U(f,_=>{r.length>l(i)&&_(h)})}var d=C(f,2);{var g=_=>{var m=Dv();y(_,m)};U(d,_=>{r.length||_(g)})}y(t,c),ie()}me(["click"]);var Rv=I("<div>Series</div>"),Ov=I("<div> </div>"),Nv=I('<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> </div> <!></div></button>');function zv(t,e){ne(e,!0);const n=D(e,"onclick",3,()=>null),i=D(e,"hidePlaylinks",3,!1);var r=Nv(),a=S(r),s=S(a);pa(s,{get title(){return e.title},width:120,height:213,lazy:!0});var o=C(s,2),c=S(o),u=S(c);Ll(u,{size:12});var f=C(u),h=C(c,2);{var d=T=>{var j=Rv();y(T,j)};U(h,T=>{e.title.type==="series"&&T(d)})}var g=C(h,2);{var _=T=>{var j=Ov(),R=S(j);W(()=>Q(R,`${e.title.length??""} min`)),y(T,j)};U(g,T=>{e.title.length&&T(_)})}var m=C(a,2),p=S(m);let w;var k=S(p),P=C(p,2);{var x=T=>{hc(T,{get playlinks(){return e.title.providers},size:20})};U(P,T=>{i()||T(x)})}W(()=>{Q(f,` ${(e.title.imdb_score||"-")??""}`),w=pe(p,1,"heading svelte-12igath",null,w,{margin:!i()}),Q(k,e.title.title)}),re("click",r,function(...T){var j;(j=n())==null||j.apply(this,T)}),y(t,r),ie()}me(["click"]);var qv=I('<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 Fv(t){var e=qv(),n=C(S(e),2),i=S(n);Ue(i,"",{},{width:"60%"}),y(t,e)}var Hv=I('<div class="svelte-pkkpyl"> </div>'),Bv=I("<div> </div>"),Vv=I('<button 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 class="action svelte-pkkpyl"><!></div></button>');function Wv(t,e){var A;ne(e,!0);const n=D(e,"compact",3,!1),i=D(e,"onclick",3,()=>null),r=!!((A=window.PlayPilotLinkInjections)!=null&&A.no_affiliate);var a=Vv();let s;var o=S(a),c=S(o);pa(c,{get title(){return e.title},width:30,height:43,lazy:!0});var u=C(o,2),f=S(u),h=S(f),d=C(f,2),g=S(d),_=S(g);Ll(_,{size:11});var m=C(_),p=C(g,2),w=S(p),k=C(p,2),P=S(k),x=C(k,2);{var T=b=>{var L=Hv(),O=S(L);W(()=>Q(O,`${e.title.length??""} min`)),y(b,L)};U(x,b=>{e.title.length&&b(T)})}var j=C(d,2);{var R=b=>{var L=Bv();let O;var Y=S(L);W(()=>{O=pe(L,1,"description svelte-pkkpyl",null,O,{large:r}),Q(Y,e.title.description)}),y(b,L)};U(j,b=>{n()||b(R)})}var M=C(j,2);{var F=b=>{{let L=B(()=>n()?24:30);hc(b,{get playlinks(){return e.title.providers},get size(){return l(L)}})}};U(M,b=>{r||b(F)})}var q=C(u,2),V=S(q);Pt(V,{}),W(b=>{s=pe(a,1,"title svelte-pkkpyl",null,s,{compact:n()}),Q(h,e.title.title),Q(m,` ${(e.title.imdb_score||"-")??""}`),Q(w,e.title.year),Q(P,b)},[()=>ee(`Type: ${e.title.type}`)]),re("click",a,function(...b){var L;(L=i())==null||L.apply(this,b)}),y(t,a),ie()}me(["click"]);var Uv=I('<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 Gv(t){var e=Uv(),n=C(S(e),2),i=S(n);Ue(i,"",{},{width:"40%"});var r=C(i,2);Ue(r,"",{},{width:"60%"});var a=C(r,2);Ue(a,"",{},{width:"80%"}),y(t,e)}var Zv=I(`<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 Kv(t){var e=Zv();y(t,e)}var Yv=I("<div><!></div>"),Jv=I("<!> <!>",1),Qv=I("<p>Something went wrong</p>"),Xv=I('<div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function gc(t,e){ne(e,!0);const n=D(e,"searchQuery",3,""),i=D(e,"filter",19,()=>({})),r=D(e,"forceGrid",3,!1),a=D(e,"hidePlaylinks",3,!1),s=D(e,"onTitleClick",3,null);let o=1,c=K(Ee([])),u=null,f=0,h=JSON.stringify(i())+n(),d=K(Ee(k())),g=K(0);const _=B(()=>r()||l(g)>500),m=B(()=>l(g)>1400?8:l(g)>900?6:l(g)>600?4:l(g)>400?3:2),p=B(()=>l(_)?zv:Wv),w=B(()=>l(_)?Fv:Gv);He(()=>{(n()||f!=0)&&P(n())}),He(()=>{i()&&x()}),wr(T);async function k(){f+=1;const N=f,H={page_size:24,page:o};n()&&(H.search=n()),Object.entries(i()).forEach(([Z,{type:G,value:X}])=>{if(G==="string")H[Z]=X;else if(G==="array")H[Z]=X.join(",");else if(G==="range"){const[te,ye]=X;H[Z+"_min"]=te,H[Z+"_max"]=ye}});try{const Z=await ga(H)||{next:null,previous:null,results:[]};return N===f&&z(c,[...l(c),...Z.results],!0),Z}catch(Z){throw console.log(Z.status),ce(se.ExploreResultsError,null,{message:Z.message||Z.status.toString()||"",params:H}),new Error(Z)}}async function P(N){F()&&(u&&clearTimeout(u),u=setTimeout(()=>{j(),z(d,k(),!0),N&&(ce(se.ExploreSearch,null,{query:N}),ai()&&Kt(Ct.SearchQuery,{query:N}))},100))}function x(){F()&&(j(),z(d,k(),!0))}function T(){for(const N of Object.keys(i()))delete i()[N]}function j(){o=1,z(c,[],!0)}function R(){o++,z(d,k(),!0),ce(se.ExploreShowMore,null,{page:o})}function M(N,H,Z){if(s()){s()(N,l(c),Z);return}hn({event:N,data:H}),ce(se.ExploreTitleClick,H)}function F(){const N=JSON.stringify(i())+n();return N===h?!1:(h=N,!0)}var q=Xv(),V=J(q);let A,b;var L=S(V);Me(L,17,()=>l(c),De,(N,H,Z)=>{var G=ge(),X=J(G);yr(X,()=>l(H).sid,te=>{var ye=ge(),le=J(ye);Ur(le,()=>l(p),(ue,we)=>{we(ue,{get title(){return l(H)},get hidePlaylinks(){return a()},onclick:be=>M(be,l(H),Z)})}),y(te,ye)}),y(N,G)});var O=C(L,2);vn(O,()=>l(d),N=>{var H=ge(),Z=J(H);Me(Z,16,()=>({length:24}),De,(G,X)=>{var te=ge(),ye=J(te);Ur(ye,()=>l(w),(le,ue)=>{ue(le,{})}),y(G,te)}),y(N,H)},void 0,N=>{});var Y=C(V,2);vn(Y,()=>l(d),null,(N,H)=>{var Z=B(()=>{var{next:we}=l(H);return{next:we}}),G=B(()=>l(Z).next),X=Jv(),te=J(X);{var ye=we=>{var be=Yv();let Oe;var Xe=S(be);Ot(Xe,{size:"large",onclick:R,label:"Show more movies & shows",children:(lt,qt)=>{var Ft=rt();W(tn=>Q(Ft,tn),[()=>ee("Show More")]),y(lt,Ft)},$$slots:{default:!0}}),W(()=>Oe=pe(be,1,"show-more svelte-qc99of",null,Oe,{grid:l(_)})),y(we,be)};U(te,we=>{l(G)&&we(ye)})}var le=C(te,2);{var ue=we=>{Kv(we)};U(le,we=>{var be;!((be=l(c))!=null&&be.length)&&o===1&&we(ue)})}y(N,X)},N=>{var H=Qv();y(N,H)}),W(()=>{A=pe(V,1,"titles svelte-qc99of",null,A,{grid:l(_)}),b=Ue(V,"",b,{"--grid-columns":l(m)})}),ht(V,"clientWidth",N=>z(g,N)),y(t,q),ie()}var $v=Ge('<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 eh(t){var e=$v();y(t,e)}var th=I('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function nh(t,e){ne(e,!0);let n=K("");var i=th(),r=S(i),a=S(r);eh(a);var s=C(r,2);W(o=>ae(s,"placeholder",o),[()=>ee("Search Movies And Shows")]),re("input",s,()=>e.oninput(l(n))),Mi(s,()=>l(n),o=>z(n,o)),y(t,i),ie()}me(["input"]);async function ih(){const t=Nn();if(!t)throw new Error("No token was provided");const e={region:await kr(),page:1,include_count:!1};let n=await en(`/providers/?api-token=${t}&`+Ys(e));return n=n.filter((i,r,a)=>a.findIndex(s=>s.slug===i.slug)===r),n}function rh(t,{from:e,to:n},i={}){var{delay:r=0,duration:a=j=>Math.sqrt(j)*120,easing:s=lv}=i,o=getComputedStyle(t),c=o.transform==="none"?"":o.transform,[u,f]=o.transformOrigin.split(" ").map(parseFloat);u/=t.clientWidth,f/=t.clientHeight;var h=ah(t),d=t.clientWidth/n.width/h,g=t.clientHeight/n.height/h,_=e.left+e.width*u,m=e.top+e.height*f,p=n.left+n.width*u,w=n.top+n.height*f,k=(_-p)*d,P=(m-w)*g,x=e.width/n.width,T=e.height/n.height;return{delay:r,duration:typeof a=="function"?a(Math.sqrt(k*k+P*P)):a,easing:s,css:(j,R)=>{var M=R*k,F=R*P,q=j+R*x,V=j+R*T;return`transform: ${c} translate(${M}px, ${F}px) scale(${q}, ${V});`}}}function ah(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,n=1;e!==null;)n*=+getComputedStyle(e).zoom,e=e.parentElement;return n}var lh=Ge('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function oh(t){var e=lh();y(t,e)}var sh=Ge('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function ch(t){var e=sh();y(t,e)}var uh=I('<div class="icon svelte-dfwzqz"><!></div>'),dh=I('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),fh=I('<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 vh(t,e){ne(e,!0);let n=D(e,"options",19,()=>[{label:"Label",value:"Value"}]),i=D(e,"selected",23,()=>[]),r=D(e,"placeholder",19,()=>`${ee("Search")}...`),a=D(e,"onchange",3,()=>null),s=K("");const o=B(c);function c(){var _;return(_=n())!=null&&_.length?l(s)?n().filter(({label:m})=>m.toLowerCase().indexOf(l(s).toLowerCase())!==-1):n():[]}function u(_){const m=i().find(p=>p===_);i(m?i().filter(p=>p!==_):[...i(),_]),a()(i())}var f=fh(),h=J(f),d=S(h),g=C(h,2);Me(g,29,()=>l(o)||[],({label:_,value:m})=>m,(_,m)=>{let p=()=>l(m).label,w=()=>l(m).value;const k=B(()=>!!i().find(F=>F===w()));var P=dh(),x=S(P);let T;var j=S(x),R=C(j),M=S(R);yr(M,()=>l(k),F=>{var q=uh(),V=S(q);{var A=L=>{oh(L)},b=L=>{ch(L)};U(V,L=>{l(k)?L(A):L(b,-1)})}Ne(3,q,()=>Fi,()=>({start:.25,duration:100})),y(F,q)}),W(()=>{T=pe(x,1,"option svelte-dfwzqz",null,T,{active:l(k)}),Q(j,`${p()??""} `)}),re("click",x,()=>u(w())),Cd(P,()=>rh,()=>({duration:150})),y(_,P)}),W(()=>ae(d,"placeholder",r())),Mi(d,()=>l(s),_=>z(s,_)),y(t,f),ie()}me(["click"]);var hh=I('<div class="content svelte-fg0dzp"><!></div>'),gh=I("<div><!> <!></div>");function mc(t,e){ne(e,!0);let n=K(!1),i=K(null),r=K(null),a=K("left"),s=K(0),o=K(0);function c(m){const p=m.target;p&&p.closest(".dropdown")!==l(i)&&z(n,!1)}function u(m){z(n,!l(n)),l(n)&&(z(o,0),z(s,0),f(m.target))}async function f(m){if(await er(),!l(r))return;const p=16,w=200,k=window.innerHeight,P=window.innerWidth,{top:x}=l(r).getBoundingClientRect(),{left:T}=m.getBoundingClientRect();z(a,T<window.innerWidth/2?"left":"right",!0),z(s,Math.max(Math.min(window.innerHeight-x-p,k*.6),w),!0),await er();const{left:j,right:R}=l(r).getBoundingClientRect(),M=P-R;j-p<0?z(o,M):M-p<0&&z(o,M-p)}var h=gh();Se("click",Ie,c);var d=S(h);Ve(d,()=>e.button,()=>({toggle:u}));var g=C(d,2);{var _=m=>{var p=hh();let w;var k=S(p);Ve(k,()=>e.content),Fe(p,P=>z(r,P),()=>l(r)),W(()=>w=Ue(p,"",w,{"--max-height":l(s)?`${l(s)}px`:null,"--offset":l(o)?`${l(o)}px`:null})),Ne(3,p,()=>Fi,()=>({start:Hi.current?1:.85,duration:100})),y(m,p)};U(g,m=>{l(n)&&m(_)})}Fe(h,m=>z(i,m),()=>l(i)),W(()=>pe(h,1,`dropdown ${l(a)??""}`,"svelte-fg0dzp")),y(t,h),ie()}var mh=I('<span class="label svelte-1mfj6k7"> </span>'),ph=I('<div class="active-line svelte-1mfj6k7"></div>'),_h=I('<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 yh(t,e){ne(e,!0);const n=D(e,"range",19,()=>[0,100]),i=D(e,"step",3,1),r=D(e,"value",19,n),a=D(e,"label",3,""),s=D(e,"valueAppend",3,""),o=D(e,"formatFunction",3,H=>H.toString()),c=D(e,"onchange",3,()=>null);let u=n(),f=B(()=>Xn(u,2)),h=K(Ee(l(f)[0])),d=K(Ee(l(f)[1]));const g=B(()=>l(h)!==n()[0]||l(d)!==n()[1]),_=B(()=>100/(n()[1]-n()[0])*(l(h)-n()[0])),m=B(()=>100+100/(n()[1]-n()[0])*(l(d)-n()[1])-l(_)),p=B(()=>Math.abs(n()[0]-n()[1])>10&&Math.abs(l(h)-l(d))<5);He(()=>{w(r())}),He(()=>{z(d,Math.max(l(d),l(h)+1),!0),z(d,Math.min(l(d),n()[1]),!0),z(h,Math.min(l(h),l(d)-1),!0),z(h,Math.max(l(h),n()[0]),!0)});function w(H){(Z=>{var G=Xn(Z,2);z(h,G[0],!0),z(d,G[1],!0)})(H)}function k(){requestAnimationFrame(()=>c()([l(h),l(d)]))}var P=_h(),x=S(P);{var T=H=>{var Z=mh(),G=S(Z);W((X,te)=>Q(G,`${a()??""}: ${X??""}—${te??""} ${s()??""}`),[()=>o()(l(h)),()=>o()(l(d))]),y(H,Z)};U(x,H=>{a()&&H(T)})}var j=C(x,2);let R;var M=S(j);let F;var q=C(M,2);let V;var A=C(q,2),b=S(A),L=C(A,2),O=S(L),Y=C(L,2);{var N=H=>{var Z=ph();let G;W(()=>G=Ue(Z,"",G,{left:l(_)+"%","--width":l(m)+"%"})),y(H,Z)};U(Y,H=>{l(g)&&H(N)})}W(()=>{R=pe(j,1,"range svelte-1mfj6k7",null,R,{halved:l(p)}),ae(M,"min",n()[0]),ae(M,"max",n()[1]),ae(M,"step",i()),F=pe(M,1,"svelte-1mfj6k7",null,F,{active:l(g)}),ae(q,"min",n()[0]),ae(q,"max",n()[1]),ae(q,"step",i()),V=pe(q,1,"svelte-1mfj6k7",null,V,{active:l(g)}),Q(b,l(h)),Q(O,l(d))}),re("mouseup",M,k),re("touchend",M,k),re("input",M,function(...H){}),Mi(M,()=>l(h),H=>z(h,H)),re("mouseup",q,k),re("touchend",q,k),re("input",q,function(...H){}),Mi(q,()=>l(d),H=>z(d,H)),y(t,P),ie()}me(["mouseup","touchend","input"]);function Dl(t,e){if(!t)return!1;const{type:n,value:i}=t;return!(n==="array"&&!i.length||n==="range"&&JSON.stringify(i)===JSON.stringify(e))}var wh=I(" <!>",1),bh=I('<p class="loading"> </p>'),kh=I('<p class="error"> </p>'),Sh=I('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),xh=I('<div data-testid="filter-item"><!></div>');function Ph(t,e){ne(e,!0);let n=D(e,"filter",7),i=D(e,"onchange",3,()=>null),r=D(e,"data",7,null),a=D(e,"fetchData",3,null),s=D(e,"range",3,null),o=D(e,"step",3,1),c=D(e,"valueAppend",3,"");const u=B(()=>Dl(n()[e.param],s()));let f=K(!!a());He(()=>{!r()&&a()&&h()});async function h(){try{z(f,!0),r(await a()())}catch{ce(se.ExploreFetchProvidersFailed)}finally{z(f,!1)}}function d(p,w){if(ce(se.ExploreSetFilter,null,{key:e.param,value:p,total_filter:n()}),!p){delete n()[e.param];return}n()[e.param]={type:w,value:p},i()()}var g=xh();let _;var m=S(g);mc(m,{button:(k,P)=>{let x=()=>(P==null?void 0:P()).toggle;Ot(k,{variant:"border",size:"large",get active(){return l(u)},get onclick(){return x()},children:(T,j)=>{var R=wh(),M=J(R),F=C(M);Pt(F,{direction:"down"}),W(()=>Q(M,`${e.label??""} `)),y(T,R)},$$slots:{default:!0}})},content:k=>{var P=Sh(),x=S(P);{var T=q=>{var V=bh(),A=S(V);W(b=>Q(A,`${b??""}...`),[()=>ee("Loading")]),y(q,V)},j=q=>{var V=kh(),A=S(V);W(b=>Q(A,b),[()=>ee("An Error Occurred")]),y(q,V)};U(x,q=>{l(f)?q(T):a()&&!r()&&q(j,1)})}var R=C(x,2);{var M=q=>{const V=B(()=>{var A;return(A=n()[e.param])==null?void 0:A.value});vh(q,{get options(){return r()},get selected(){return l(V)},onchange:A=>d(A,"array")})},F=q=>{const V=B(()=>{var A;return(A=n()[e.param])==null?void 0:A.value});yh(q,{get range(){return s()},get value(){return l(V)},get step(){return o()},get label(){return e.label},get valueAppend(){return c()},onchange:A=>d(A,"range")})};U(R,q=>{r()?q(M):s()&&q(F,1)})}y(k,P)},$$slots:{button:!0,content:!0}}),W(()=>_=pe(g,1,"filter-item svelte-er0ukh",null,_,{active:l(u)})),y(t,g),ie()}const Tn=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best",Chronological:"-year",IMDb:"-imdb_score"});var Th=I(" <!>",1),Eh=I("<button> </button>"),Ih=I('<div data-testid="content"></div>');function Ah(t,e){ne(e,!0);const n=D(e,"filter",7),i=D(e,"onchange",3,()=>null),r=D(e,"sortings",3,null),a="ordering",s=B(()=>r()||[{label:"Popularity",value:Tn.Popular},{label:"New",value:Tn.New},{label:"Top Rated",value:Tn.Best},{label:"IMDb Rating",value:Tn.IMDb}]),o=B(()=>{var u;return((u=l(s).find(({value:f})=>{var h;return f===((h=n()[a])==null?void 0:h.value)}))==null?void 0:u.label)||"Sort By"});function c(u){u?n()[a]={type:"string",value:u}:delete n()[a],i()()}mc(t,{button:(h,d)=>{let g=()=>(d==null?void 0:d()).toggle;Ot(h,{variant:"link",get onclick(){return g()},children:(_,m)=>{var p=Th(),w=J(p),k=C(w);Pt(k,{direction:"down"}),W(P=>Q(w,`${P??""} `),[()=>ee(l(o))]),y(_,p)},$$slots:{default:!0}})},content:h=>{var d=Ih();Me(d,21,()=>l(s),De,(g,_,m,p)=>{let w=()=>l(_).label,k=()=>l(_).value;const P=B(()=>{var R;return k()===((R=n()[a])==null?void 0:R.value)});var x=Eh();let T;var j=S(x);W(R=>{T=pe(x,1,"option svelte-1ibt2k4",null,T,{active:l(P)}),Q(j,R)},[()=>ee(w())]),re("click",x,()=>c(k())),y(g,x)}),y(h,d)},$$slots:{button:!0,content:!0}}),ie()}me(["click"]);var Ch=Ge('<svg height="24px" viewBox="0 -960 960 960" width="24px"><path fill="currentColor" transform="scale(1.2) translate(0, 75)" scale="1.2" d="M440-120v-240h80v80h320v80H520v80h-80Zm-320-80v-80h240v80H120Zm160-160v-80H120v-80h160v-80h80v240h-80Zm160-80v-80h400v80H440Zm160-160v-240h80v80h160v80H680v80h-80Zm-480-80v-80h400v80H120Z"></path></svg>');function Lh(t){var e=Ch();y(t,e)}var Mh=I('<button class="item svelte-cwy6fi"><!> <!></button>'),Dh=I('<div class="active-filter svelte-cwy6fi"></div>');function jh(t,e){ne(e,!0);function n(a){delete e.filter[a]}function i(a){let s=a.slice(0,30).trim();return a.length>s.length&&(s+="..."),s}var r=Dh();Me(r,21,()=>Object.entries(e.filter),De,(a,s)=>{var o=B(()=>Xn(l(s),2));let c=()=>l(o)[0],u=()=>l(o)[1];const f=B(()=>{const{label:m,range:p,data:w,fetchData:k}=e.items.find(P=>c()===P.param)||{};return{label:m,range:p,data:w,fetchData:k}});var h=ge(),d=J(h);{var g=m=>{var p=Mh(),w=S(p);{var k=j=>{var R=ge(),M=J(R);vn(M,()=>{var F,q;return((q=(F=l(f)).fetchData)==null?void 0:q.call(F))||l(f).data},null,(F,q)=>{var V=rt();W(A=>Q(V,A),[()=>{var A;return i((A=l(q))==null?void 0:A.filter(b=>u().value.includes(b.value)).map(b=>b.label).join(" + "))}]),y(F,V)}),y(j,R)},P=j=>{var R=rt();W(M=>Q(R,`${l(f).label??""}: ${M??""}`),[()=>u().value.join(" - ")]),y(j,R)},x=j=>{var R=rt();W(M=>Q(R,M),[()=>ee(u().value)]),y(j,R)};U(w,j=>{u().type==="array"?j(k):u().type==="range"?j(P,1):j(x,-1)})}var T=C(w,2);_a(T,{size:8}),re("click",p,()=>n(c())),y(m,p)},_=B(()=>Dl(u(),l(f).range));U(d,m=>{l(_)&&m(g)})}y(a,h)}),y(t,r),ie()}me(["click"]);var Rh=I("<div><!></div>"),Oh=I("<!> <!>",1),Nh=I('<div class="sorting svelte-11dg01g"><!></div>'),zh=I('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div> <!>',1);function pc(t,e){ne(e,!0);const n=D(e,"limit",3,!0),i=D(e,"hideActive",3,!1),r=D(e,"showSorting",3,!0),a=D(e,"sortings",3,null),s=D(e,"searchQuery",3,""),o=D(e,"onchange",3,()=>null),c=D(e,"onempty",3,()=>null),u=3,f=[{label:ee("Services"),param:"providers",fetchData:async()=>(await ih()).map(M=>({label:M.name,value:M.slug}))},{label:ee("Genres"),param:"genres",data:ha.filter(M=>parseInt(M.slug)<900).map(M=>({label:ee(M.name),value:M.slug}))},{label:ee("IMDb"),param:"imdb_score",range:[0,10],step:.1},{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",fetchData:async()=>(await fetch(`${Jd}/src/lib/data/countries.json`)).json()},{label:ee("Category"),param:"category",data:[{label:ee("Movies"),value:"movie"},{label:ee("Shows"),value:"series"},{label:ee("Kids"),value:"kids"},{label:ee("Documentary"),value:"documentary"}]}];let h=B(n),d=!1;He(()=>{Object.keys(e.filter).some(F=>{const{range:q}=f.find(V=>F===V.param)||{};return Dl(e.filter[F],q)})||s()?d=!0:d&&(d=!1,c()())});var g=zh(),_=J(g);let m;var p=S(_);Me(p,21,()=>l(h)?f.slice(0,u):f,De,(M,F)=>{var q=Rh(),V=S(q);Ph(V,jn({get filter(){return e.filter},get onchange(){return o()}},()=>l(F))),Ne(3,q,()=>Fi,()=>({start:.75,duration:100})),y(M,q)});var w=C(p,2),k=S(w);{var P=M=>{Ot(M,{variant:"link",onclick:()=>z(h,!l(h)),children:(F,q)=>{var V=Oh(),A=J(V);Lh(A);var b=C(A),L=C(b);{let O=B(()=>l(h)?"down":"up");Pt(L,{get direction(){return l(O)}})}W(O=>Q(b,` ${O??""} `),[()=>l(h)?ee("Show More"):ee("Show Less")]),y(F,V)},$$slots:{default:!0}})};U(k,M=>{n()&&M(P)})}var x=C(k,2);{var T=M=>{var F=Nh(),q=S(F);Ah(q,{get filter(){return e.filter},get onchange(){return o()},get sortings(){return a()}}),Ne(3,F,()=>Ki,()=>({x:5,duration:100})),y(M,F)};U(x,M=>{r()&&M(T)})}var j=C(_,2);{var R=M=>{jh(M,{get filter(){return e.filter},get items(){return f}})};U(j,M=>{i()||M(R)})}W(()=>m=pe(_,1,"filter svelte-11dg01g",null,m,{limit:n()})),y(t,g),ie()}function qh(t,e){ne(e,!0);const n=D(e,"trackingEvent",19,()=>se.ExploreAnyClick);function i(s){var P;const o=s.target,c=o.parentElement;if(o===document.body)return;const u=`${c==null?void 0:c.nodeName.toLowerCase()}${r(c)}`,f=`${o==null?void 0:o.nodeName.toLowerCase()}${r(o)}`,h=`${u} > ${f}`,d=o.closest("a, button"),g=a(o)||a(c)||d&&a(d),_=g?(P=g.textContent)==null?void 0:P.slice(0,30):"",m=o.getAttribute("aria-label")||(d==null?void 0:d.getAttribute("aria-label"))||(c==null?void 0:c.getAttribute("aria-label")),p=o.placeholder,w=o.alt,k=(_||m||p||w||"").trim();ce(n(),null,{selector:h,text:k})}function r(s){if(!s)return"";const o=Array.from(s.classList).filter(c=>!c.startsWith("s-"));return o.length?"."+o.join("."):""}function a(s){var o;return(o=s==null?void 0:s.childNodes)!=null&&o.length&&Array.from(s.childNodes).find(c=>{var u;return c.nodeName==="#text"&&!!((u=c.textContent)!=null&&u.trim())})||null}Se("click",Ie,i),ie()}function Fh(t,e){ne(e,!0);const n=D(e,"trackingEvent",19,()=>se.ExploreScrollDistance),i={25:!1,50:!1,75:!1,100:!1};function r(){const a=window.scrollY,s=window.innerHeight,u=100/(e.element.clientHeight+a+e.element.getBoundingClientRect().top)*(a+s);for(const f in i)i[f]||u<parseInt(f)||(i[f]=!0,ce(n(),null,{scroll_percentage:f+"%"}))}Se("scroll",Ie,r),ie()}var Hh=I('<p class="description svelte-l2apr8"> </p>'),Bh=I('<div class="filter svelte-l2apr8"><!></div>'),Vh=I('<div class="unsupported-region svelte-l2apr8"> </div>'),Wh=I('<div class="explore svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <div class="subheading svelte-l2apr8"> </div> <p class="disclaimer svelte-l2apr8"></p> <!></div></div> <!> <!> <!> <!></div> <!> <!>',1);function Uh(t,e){ne(e,!0);let n=D(e,"navigate",3,()=>null),i=D(e,"searchQuery",15,""),r=D(e,"filter",27,()=>Ee({})),a=null,s=K(null),o=K(Ee(window.innerWidth));He(()=>{var b;z(s,((b=a==null?void 0:a.closest(Ol))==null?void 0:b.style.height)||null,!0)}),at(async()=>{ce(se.ExplorePageView),window.PlayPilotLinkInjections.ads=await $s()});var c=Wh(),u=J(c);let f;var h=S(u),d=S(h),g=C(S(d),2),_=S(g);Rt(g,b=>Re==null?void 0:Re(b));var m=C(g,2),p=S(m);Rt(m,(b,L)=>Re==null?void 0:Re(b,L),()=>2);var w=C(m,2);Pd(w,()=>ee("Streaming Guide Disclaimer"),!0);var k=C(w,2);{var P=b=>{var L=Hh(),O=S(L);W(Y=>Q(O,Y),[()=>ee("Streaming Guide Description")]),y(b,L)},x=B(()=>!ji());U(k,b=>{l(x)&&b(P)})}var T=C(h,2);nh(T,{oninput:b=>i(b)});var j=C(T,2);{var R=b=>{var L=Bh(),O=S(L);{let Y=B(()=>l(o)<500),N=B(()=>!i());pc(O,{get filter(){return r()},get searchQuery(){return i()},get limit(){return l(Y)},get showSorting(){return l(N)},onchange:()=>n()("results"),onempty:()=>n()("home")})}y(b,L)},M=B(()=>ji());U(j,b=>{l(M)&&b(R)})}var F=C(j,2);vn(F,ic,null,(b,L)=>{var O=ge(),Y=J(O);{var N=H=>{var Z=Vh(),G=S(Z);W(X=>Q(G,X),[()=>ee("Sorry Region Not Supported")]),y(H,Z)};U(Y,H=>{l(L)||H(N)})}y(b,O)});var q=C(F,2);Ve(q,()=>e.children),Fe(u,b=>a=b,()=>a);var V=C(u,2);qh(V,{});var A=C(V,2);Fh(A,{get element(){return a}}),W((b,L)=>{f=Ue(u,"",f,{height:l(s),"--playpilot-explore-width":`${l(o)??""}px`}),Q(_,b),Q(p,L)},[()=>ee("Streaming Guide"),()=>ee("Streaming Guide Subheading")]),ht(u,"clientWidth",b=>z(o,b)),y(t,c),ie()}var Gh=I('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),Zh=I('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function jl(t,e){const n=D(e,"small",3,!1);let i=K(!1);function r(f){f.preventDefault(),f.stopPropagation(),z(i,!l(i))}var a=Zh(),s=S(a);let o;var c=C(s,2);{var u=f=>{var h=Gh(),d=S(h);W(()=>Q(d,e.disclaimer)),Ne(3,h,()=>dn,()=>({duration:50})),y(f,h)};U(c,f=>{l(i)&&f(u)})}W(()=>o=pe(s,1,"disclaimer svelte-1ldthr7",null,o,{small:n()})),re("click",a,r),y(t,a)}me(["click"]);var Kh=I('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Yh=I('<span class="cta svelte-13ka2ap"> </span>'),Jh=I('<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 bo(t,e){ne(e,!0);const n=D(e,"disclaimer",3,""),i=D(e,"hideCategory",3,!1),r=D(e,"onclick",3,()=>null),a=B(()=>e.playlink.name),s=B(()=>e.playlink.url),o=B(()=>e.playlink.logo_url),c=B(()=>e.playlink.highlighted),u=B(()=>e.playlink.cta_text),f=B(()=>e.playlink.action_text),h=B(()=>e.playlink.pixels),d=B(()=>e.playlink.extra_info.category),g=B(()=>ai()&&!l(c)),_={AVOD:ee("Stream"),SVOD:ee("Stream"),BUY:ee("Buy"),RENT:ee("Rent"),TVOD:ee("Rent Or Buy")};let m=K(0);var p=ge(),w=J(p);Ms(w,()=>{var k,P;return!((P=(k=window.PlayPilotLinkInjections)==null?void 0:k.config)!=null&&P.require_affiliate_consent)||zn("affiliate")?"a":"span"},!1,(k,P)=>{Zr(k,()=>l(g)?nc(Ct.ProviderInterest,{provider:e.playlink.slug,source:Pn.Card}):null),Zr(k,()=>l(g)?Lf(Ct.ProviderClick,{provider:e.playlink.slug}):null),Ns(k,()=>({onclick:r(),href:l(s),target:"_blank",class:"playlink","data-playlink":l(a),rel:"sponsored",[fi]:{highlighted:l(c),"no-category":i(),"no-subtext":!l(u)&&i()}}),void 0,void 0,void 0,"svelte-13ka2ap");var x=Jh(),T=J(x);let j;var R=S(T),M=C(R,2),F=S(M),q=C(M,2);{var V=G=>{var X=Kh(),te=S(X);W(ye=>Q(te,ye),[()=>_[l(d)]||ee("Stream")]),y(G,X)};U(q,G=>{i()||G(V)})}var A=C(q,2);{var b=G=>{var X=Yh(),te=S(X);W(()=>Q(te,l(u))),y(G,X)};U(A,G=>{l(u)&&G(b)})}var L=C(A,2),O=S(L),Y=C(L,2);{var N=G=>{jl(G,{get disclaimer(){return n()},small:!0})};U(Y,G=>{n()&&G(N)})}var H=C(T,2);{var Z=G=>{Ml(G,{get pixels(){return l(h)}})};U(H,G=>{var X;(X=l(h))!=null&&X.length&&G(Z)})}W((G,X)=>{j=Ue(T,"",j,{"--action-width":l(m)?`${l(m)}px`:null}),ae(R,"src",G),Q(F,l(a)),Q(O,X)},[()=>ma(l(o)),()=>l(f)||ee("Watch")]),ht(L,"clientWidth",G=>z(m,G)),y(P,x)}),y(t,p),ie()}var Qh=I('<div class="disclaimer svelte-1v1053" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1v1053">PlayPilot.com</a></div>'),Xh=I('<div class="empty svelte-1v1053" data-testid="playlinks-empty"> </div>');function $h(t,e){ne(e,!0);var n=ge(),i=J(n);{var r=s=>{var o=Qh(),c=S(o);W(u=>Q(c,`${u??""} `),[()=>{var u,f;return((f=(u=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:u.config)==null?void 0:f.playlinks_disclaimer_text)||ee("Commission Disclaimer")}]),y(s,o)},a=s=>{var o=Xh(),c=S(o);W(u=>Q(c,u),[()=>ee("Title Unavailable")]),y(s,o)};U(i,s=>{e.playlinks.length?s(r):s(a,-1)})}y(t,n),ie()}var eg=I('<div class="heading category svelte-1fykz2q"> </div>'),tg=I("<!> <!>",1),ng=I('<div class="show-more svelte-1fykz2q" data-testid="show-more"><!></div>'),ig=I("<!> <div></div> <!>",1),rg=I('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function ag(t,e){var T,j;ne(e,!0);const n=D(e,"limit",3,3),i=Qi("scope")==="modal",r=Qi("type"),a=ei("card"),s=!!((j=(T=window.PlayPilotLinkInjections)==null?void 0:T.config)!=null&&j.categorize_playlinks);let o=K(0),c=K(!s);const u=B(()=>vc(e.playlinks)),f=B(()=>_(e.playlinks)),h=B(()=>s?m(l(f)):[["",l(u)]]),d=B(()=>l(o)<500||!!a||l(u).length===1);function g(R){ce(i?se.TitleModalPlaylinkClick:se.InjectionPopoverPlaylinkClick,e.title,{playlink:R,type:r})}function _(R){const M={};for(const F of R){const{category:q}=F.extra_info;q in M||(M[q]=[]),M[q].push(F)}return M}function m(R){const M=["AVOD","SVOD","RENT","BUY"],F=[];for(const V of M)R[V]&&F.push([V,R[V]]);const q=[];for(const V of Object.values(R))for(const A of V)M.includes(A.extra_info.category)||q.push(A);return[...F,["Other",q]]}var p=rg(),w=J(p),k=S(w);Rt(w,(R,M)=>Re==null?void 0:Re(R,M),()=>3);var P=C(w,2);$h(P,{get playlinks(){return l(u)}});var x=C(P,2);Me(x,17,()=>l(h),De,(R,M,F,q)=>{var V=B(()=>Xn(l(M),2));let A=()=>l(V)[0],b=()=>l(V)[1];var L=ig(),O=J(L);{var Y=X=>{var te=eg(),ye=S(te);Rt(te,(le,ue)=>Re==null?void 0:Re(le,ue),()=>4),W(le=>Q(ye,le),[()=>ee(`Category: ${A()}`)]),y(X,te)};U(O,X=>{A()&&b().length&&X(Y)})}var N=C(O,2);let H;Me(N,21,()=>b().slice(0,l(c)?n():b().length),De,(X,te,ye)=>{var le=tg(),ue=J(le);bo(ue,{get playlink(){return l(te)},onclick:()=>g(l(te).name)});var we=C(ue,2);{var be=Oe=>{{let Xe=B(()=>If(a)),lt=B(()=>a.disclaimer||"");bo(Oe,{get playlink(){return l(Xe)},onclick:()=>ce(se.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return l(lt)}})}};U(we,Oe=>{a&&ye===0&&Oe(be)})}y(X,le)});var Z=C(N,2);{var G=X=>{var te=ng(),ye=S(te);Ot(ye,{onclick:()=>z(c,!l(c)),size:"large",children:(le,ue)=>{var we=rt();W(be=>Q(we,be),[()=>ee("Show Count More").replace("[[count]]",(b().length-n()).toString())]),y(le,we)},$$slots:{default:!0}}),y(X,te)};U(Z,X=>{b().length>n()&&l(c)&&X(G)})}W(()=>{H=pe(N,1,"playlinks svelte-1fykz2q",null,H,{list:l(d)}),ae(N,"data-testid",`category-${A()??""}`)}),ht(N,"clientWidth",X=>z(o,X)),y(R,L)}),W(R=>Q(k,R),[()=>ee("Where To Stream Online")]),y(t,p),ie()}var lg=I('<button class="toggle svelte-7itcht"> </button>'),og=I('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),sg=I('<button class="toggle svelte-7itcht"> </button>'),cg=I('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div> <!>',1);function ug(t,e){ne(e,!0);const n=D(e,"blurb",3,""),i=D(e,"limit",3,200),r=D(e,"onclick",3,()=>null);let a=K(!1);const s=B(()=>e.text.slice(0,i()));function o(){z(a,!l(a)),r()()}var c=cg(),u=J(c),f=S(u),h=S(f),d=C(h);{var g=x=>{var T=rt("...");y(x,T)};U(d,x=>{!l(a)&&e.text.length>i()&&x(g)})}var _=C(d,2);{var m=x=>{var T=lg(),j=S(T);W(R=>Q(j,R),[()=>ee("Show More")]),re("click",T,o),y(x,T)};U(_,x=>{!l(a)&&(e.text.length>i()||n())&&x(m)})}var p=C(f,2);{var w=x=>{var T=og(),j=S(T);W(()=>Q(j,n())),y(x,T)};U(p,x=>{l(a)&&x(w)})}var k=C(u,2);{var P=x=>{var T=sg(),j=S(T);W(R=>Q(j,R),[()=>ee("Show Less")]),re("click",T,o),y(x,T)};U(k,x=>{l(a)&&x(P)})}W(()=>Q(h,l(a)?e.text:l(s))),y(t,c),ie()}me(["click"]);async function dg(t){return(await en(`/participants/browse?api-token=${Nn()}&title_sid=${t.sid}`)).results}async function Nr(t){const e=await en(`/participants/${t}?api-token=${Nn()}`);if(!e)throw new Error("No participant was returned for sid: "+t);return e}var fg=Ge('<svg width="21px" height="21px" viewBox="0 -960 960 960"><path fill="currentColor" d="M430-200h100v-180h60v-184q0-27-28.5-41.5T480-620q-53 0-81.5 14.5T370-564v184h60v180Zm-105 88.5q-73-31.5-127.5-86t-86-127.5Q80-398 80-480.5t31.5-155q31.5-72.5 86-127t127.5-86Q398-880 480.5-880t155 31.5q72.5 31.5 127 86t86 127Q880-563 880-480.5T848.5-325q-31.5 73-86 127.5t-127 86Q563-80 480.5-80T325-111.5Zm381.5-142Q800-347 800-480t-93.5-226.5Q613-800 480-800t-226.5 93.5Q160-613 160-480t93.5 226.5Q347-160 480-160t226.5-93.5ZM523-657q17-17 17-43t-17-43q-17-17-43-17t-43 17q-17 17-17 43t17 43q17 17 43 17t43-17Zm-43 177Z"></path></svg>');function vg(t){var e=fg();y(t,e)}var hg=I('<button class="attribution-icon svelte-1d2v314"><!></button>'),gg=I('<img loading="lazy" alt="" class="svelte-1d2v314"/> <!>',1),mg=I('<div class="attribution-overlay svelte-1d2v314"><a target="_blank" rel="external nofollow noreferrer" class="svelte-1d2v314"> </a> <a target="_blank" rel="external nofollow noreferrer" class="svelte-1d2v314"> </a> / <a target="_blank" rel="external nofollow noreferrer" class="svelte-1d2v314"> </a></div>'),pg=I('<div class="image svelte-1d2v314" data-testid="participant-image"><!> <!></div>');function ll(t,e){ne(e,!0);const n=D(e,"participant",3,null),i=B(()=>n()||{image_metadata:null}),r=B(()=>l(i).image_metadata);let a=K(!1);function s(d){d.stopImmediatePropagation(),d.target.nodeName!=="A"&&(d.preventDefault(),z(a,!l(a)))}var o=pg(),c=S(o);{var u=d=>{var g=gg(),_=J(g),m=C(_,2);{var p=w=>{var k=hg(),P=S(k);vg(P),re("click",k,s),y(w,k)};U(m,w=>{l(r)&&w(p)})}W(()=>ae(_,"src",n().image)),y(d,g)};U(c,d=>{var g;(g=n())!=null&&g.image&&d(u)})}var f=C(c,2);{var h=d=>{var g=mg(),_=S(g),m=S(_),p=C(_),w=C(p),k=S(w),P=C(w,2),x=S(P);W(T=>{ae(_,"href",l(r).source_url),Q(m,l(r).source_text),Q(p,` ${T??""} `),ae(w,"href",l(r).author_url),Q(k,l(r).author_text),ae(P,"href",l(r).license_url),Q(x,l(r).license_name)},[()=>ee("By")]),re("click",g,s),y(d,g)};U(f,d=>{n()&&l(r)&&l(a)&&d(h)})}y(t,o),ie()}me(["click"]);var _g=I('<button class="participant svelte-zy7e3f" data-testid="participant"><!> <div class="name svelte-zy7e3f"> </div></button>'),yg=I('<div class="participant svelte-zy7e3f"><!> <div class="name svelte-zy7e3f">&nbsp;</div></div>');function wg(t,e){ne(e,!0);const n=D(e,"heading",19,()=>ee("Cast"));function i(c){const u=Ut(Gs(Us(xl()))),f={};for(const d of c){const g=Kr(u,Ut(d.name));f[d.sid]={participant:d,count:g}}return Object.values(f).sort((d,g)=>g.count-d.count).map(({participant:d})=>d)}async function r(c,u){var f,h;if(ce(se.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:u.name}),!((h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)!=null&&h.open_tpi_links_in_explore)||window.location.href.includes(window.PlayPilotLinkInjections.config.explore_navigation_path||"")){const d=await Nr(u.sid);hn({event:c,type:"participant",data:d});return}window.location.href=Cl(u.sid)}async function a(){const c=await dg(e.title);return c!=null&&c.length&&ce(se.TitleParticipantsView,e.title,{participants:c.map(u=>u.name).slice(0,20)}),c}var s=ge(),o=J(s);vn(o,a,c=>{Qr(c,{get heading(){return n()},children:(u,f)=>{var h=ge(),d=J(h);Me(d,16,()=>({length:5}),De,(g,_)=>{var m=yg(),p=S(m);ll(p,{}),y(g,m)}),y(u,h)},$$slots:{default:!0}})},(c,u)=>{var f=ge(),h=J(f);{var d=g=>{Qr(g,{get heading(){return n()},children:(_,m)=>{var p=ge(),w=J(p);Me(w,17,()=>i(l(u)).slice(0,15),De,(k,P)=>{var x=_g(),T=S(x);ll(T,{get participant(){return l(P)}});var j=C(T,2),R=S(j);W(()=>Q(R,l(P).name)),re("click",x,M=>r(M,l(P))),Se("mouseenter",x,()=>Nr(l(P).sid)),re("touchstart",x,()=>Nr(l(P).sid)),y(k,x)}),y(_,p)},$$slots:{default:!0}})};U(h,g=>{var _;(_=l(u))!=null&&_.length&&g(d)})}y(c,f)}),y(t,s),ie()}me(["click","touchstart"]);function bg(t,e){ne(e,!0);const n=rc(e.title);{let i=B(()=>ee("Similar Titles"));nr(t,{get titles(){return n},get heading(){return l(i)},onclick:r=>ce(se.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ie()}function kg(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 Sg=Ge('<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 xg(t){var e=Sg();y(t,e)}var Pg=Ge('<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 Tg(t){var e=Pg();y(t,e)}var Eg=Ge('<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 Ig(t){var e=Eg();y(t,e)}var Ag=Ge('<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 Cg(t){var e=Ag();y(t,e)}var Lg=I('<button class="svelte-827qd7"><!></button>'),Mg=I('<div class="content svelte-827qd7"><!></div>'),Dg=I("<div><!> <!></div>");function jg(t,e){const n=D(e,"label",3,""),i=D(e,"align",3,"right");let r=K(!1),a=K(null);function s(g){var m;g.currentTarget===((m=l(a))==null?void 0:m.querySelector("button"))&&g.stopPropagation(),z(r,!l(r))}var o=Dg();Se("click",Ie,()=>z(r,!1));var c=S(o);{var u=g=>{var _=ge(),m=J(_);Ve(m,()=>e.button,()=>({toggle:s})),y(g,_)},f=g=>{var _=Lg(),m=S(_);Cg(m),W(()=>{ae(_,"aria-label",n()),ae(_,"aria-expanded",l(r))}),re("click",_,s),y(g,_)};U(c,g=>{e.button?g(u):g(f,-1)})}var h=C(c,2);{var d=g=>{var _=Mg(),m=S(_);Ve(m,()=>e.children),Ne(1,_,()=>Fi,()=>({duration:50,start:.85})),y(g,_)};U(h,g=>{l(r)&&g(d)})}Fe(o,g=>z(a,g),()=>l(a)),W(()=>pe(o,1,`context-menu ${i()??""}`,"svelte-827qd7")),y(t,o)}me(["click"]);var Rg=I("<!> ",1),Og=I('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Ng(t,e){ne(e,!0);let n=D(e,"url",7);const r=window.innerWidth<Rn&&typeof navigator.share<"u";at(()=>{n(n()+"?utm_source=tpi")});function a(c,u){if(!r){u(c);return}ce(se.ShareTitle,null,{title:e.title,url:Jn(),method:"native"}),navigator.share({title:e.title,url:n()})}function s(){ce(se.ShareTitle,null,{title:e.title,url:Jn(),method:"copy"}),kg(n())}function o(){ce(se.ShareTitle,null,{title:e.title,url:Jn(),method:"email"}),window.location.href=`mailto:?body=${n()}`}jg(t,{button:(u,f)=>{let h=()=>(f==null?void 0:f()).toggle;Ot(u,{onclick:d=>a(d,h()),children:(d,g)=>{var _=Rg(),m=J(_);xg(m);var p=C(m);W(w=>Q(p,` ${w??""}`),[()=>ee("Share")]),y(d,_)},$$slots:{default:!0}})},children:(u,f)=>{var h=Og(),d=J(h),g=S(d);Tg(g);var _=C(g),m=C(d,2),p=S(m);Ig(p);var w=C(p);W((k,P)=>{Q(_,` ${k??""}`),Q(w,` ${P??""}`)},[()=>ee("Copy URL"),()=>ee("Email")]),re("click",d,s),re("click",m,o),y(u,h)},$$slots:{button:!0,default:!0}}),ie()}me(["click"]);var zg=Ge('<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 qg(t){var e=zg();y(t,e)}var Fg=I("<!> ",1);function Hg(t,e){ne(e,!0);function n(){sc(e.title),ce(se.TrailerClick,e.title)}Ot(t,{onclick:n,children:(i,r)=>{var a=Fg(),s=J(a);qg(s);var o=C(s);W(c=>Q(o,` ${c??""}`),[()=>ee("Watch Trailer")]),y(i,a)},$$slots:{default:!0}}),ie()}var Bg=I('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Vg(t,e){const n=D(e,"embeddable_url",3,""),i=D(e,"autoplay",3,!0);let r=K(0),a=K(0);const s=B(()=>Math.max(l(r),l(a)));var o=Bg(),c=S(o);Al(c,{get embeddable_url(){return n()},get autoplay(){return i()},fallbackStartTime:5,muted:!0,loop:!0,showActions:!0,clickToPlay:!1}),W(()=>Ue(o,`--height: ${l(s)??""}px; --width: ${l(r)??""}px;`)),ht(o,"clientWidth",u=>z(r,u)),ht(o,"clientHeight",u=>z(a,u)),y(t,o)}var Wg=I('<img alt=""/>'),Ug=I("<div><!></div>");function Gg(t,e){ne(e,!0);const n=D(e,"small",3,!1),i=D(e,"offsetMute",3,!1),r=D(e,"useVideoBackground",3,!0),a=D(e,"autoplay",3,!0),s=D(e,"inline",3,!1);let o=K(!1),c=K(!1),u=K(!1);He(()=>{r()&&e.title.embeddable_url&&oc(Il(e.title.embeddable_url)).then(m=>{z(u,m,!0)})});var f=Ug();let h;var d=S(f);{var g=m=>{Vg(m,{get embeddable_url(){return e.title.embeddable_url},get autoplay(){return a()}})},_=m=>{var p=ge(),w=J(p);yr(w,()=>l(c),k=>{var P=Wg();let x;W(T=>{ae(P,"src",T),x=pe(P,1,"svelte-1h1ov71",null,x,{loaded:l(o),blur:l(c)})},[()=>ma(l(c)?e.title.standing_poster:e.title.medium_poster)]),Se("load",P,()=>z(o,!0)),Se("error",P,()=>z(c,!0)),y(k,P)}),y(m,p)};U(d,m=>{r()&&l(u)?m(g):m(_,-1)})}W(()=>h=pe(f,1,"background svelte-1h1ov71",null,h,{small:n(),inline:s(),"offset-mute":i()})),y(t,f),ie()}var Zg=I('<div class="genre svelte-1mphbln"> </div>'),Kg=I('<button class="genre expand svelte-1mphbln"> </button>'),Yg=I("<!> <!>",1);function Jg(t,e){ne(e,!0);let n=K(!1);const i=B(()=>l(n)?e.genres:[e.genres[0]]);var r=Yg(),a=J(r);Me(a,17,()=>l(i),De,(c,u)=>{const f=B(()=>{var _;return(_=ha.find(m=>m.slug===l(u)))==null?void 0:_.name});var h=ge(),d=J(h);{var g=_=>{var m=Zg(),p=S(m);Zr(m,()=>ai()?nc(Ct.GenreInterest,{genre:l(f),source:Pn.Card}):null),W(w=>Q(p,w),[()=>ee(l(f))]),y(_,m)};U(d,_=>{l(f)&&_(g)})}y(c,h)});var s=C(a,2);{var o=c=>{var u=Kg(),f=S(u);W(()=>Q(f,`+${e.genres.length-1}`)),re("click",u,()=>z(n,!0)),y(c,u)};U(s,c=>{!l(n)&&e.genres.length>1&&c(o)})}y(t,r),ie()}me(["click"]);var Qg=I("<div> </div>"),Xg=I('<div><div class="imdb svelte-13b1w31"><!> </div> <!> <div> </div> <div class="capitalize svelte-13b1w31"> </div> <!></div>');function $g(t,e){ne(e,!0);const n=D(e,"small",3,!1);var i=Xg();let r;var a=S(i),s=S(a);Ll(s,{});var o=C(s),c=C(a,2);Jg(c,{get genres(){return e.title.genres}});var u=C(c,2),f=S(u),h=C(u,2),d=S(h),g=C(h,2);{var _=m=>{var p=Qg(),w=S(p);W(k=>Q(w,`${e.title.length??""} ${k??""}`),[()=>ee("Minutes")]),y(m,p)};U(g,m=>{!n()&&e.title.length&&m(_)})}W(m=>{r=pe(i,1,"info svelte-13b1w31",null,r,{small:n()}),Q(o,` ${e.title.imdb_score??""}`),Q(f,e.title.year),Q(d,m)},[()=>ee(`Type: ${e.title.type}`)]),y(t,i),ie()}var em=I('<div><div class="header svelte-16ajinh"><div><!></div> <div id="heading"> </div> <!> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main svelte-16ajinh"><!> <!> <!> <!></div></div> <!>',1);function ya(t,e){var O;ne(e,!0);const n=D(e,"small",3,!1),i=D(e,"useVideoBackground",3,!0),r=!!((O=window.PlayPilotLinkInjections)!=null&&O.no_affiliate);hr("title",e.title);const a=Qi("modal"),s=B(()=>(!n()||r)&&e.title.description);let o=K(!1);var c=em(),u=J(c);let f;var h=S(u),d=S(h);let g;var _=S(d);pa(_,{get title(){return e.title},onload:()=>z(o,!0),lazy:!1});var m=C(d,2);let p;var w=S(m);Rt(m,(Y,N)=>Re==null?void 0:Re(Y,N),()=>2);var k=C(m,2);$g(k,{get title(){return e.title},get small(){return n()}});var P=C(k,2),x=S(P);{var T=Y=>{Hg(Y,{get title(){return e.title}})};U(x,Y=>{e.title.embeddable_url&&Y(T)})}var j=C(x,2);{let Y=B(()=>fc(e.title));Ng(j,{get title(){return e.title.title},get url(){return l(Y)}})}var R=C(h,2),M=S(R);{var F=Y=>{ug(Y,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>ce(se.ExpandTitleDescription,e.title)})};U(M,Y=>{l(s)&&Y(F)})}var q=C(M,2);{var V=Y=>{ag(Y,{get playlinks(){return e.title.providers},get title(){return e.title}})};U(q,Y=>{r||Y(V)})}var A=C(q,2);wg(A,{get title(){return e.title}});var b=C(A,2);bg(b,{get title(){return e.title}});var L=C(u,2);{let Y=B(()=>a==="title");Gg(L,{get title(){return e.title},get small(){return n()},get useVideoBackground(){return i()},get offsetMute(){return l(Y)}})}W(()=>{f=pe(u,1,"content svelte-16ajinh",null,f,{small:n()}),g=pe(d,1,"poster svelte-16ajinh",null,g,{loaded:l(o)}),p=pe(m,1,"heading svelte-16ajinh",null,p,{truncate:n()}),Q(w,e.title.title)}),y(t,c),ie()}var tm=I('<!> <p class="empty svelte-1nq44zr"> </p>',1),nm=I("<!> ",1),im=I("<div><!></div>"),rm=I('<!> <div class="title svelte-1nq44zr" data-testid="title"><!></div>',1),am=I("<!> Loading...",1);function lm(t,e){ne(e,!0);const n=d=>{var g=tm(),_=J(g);i(_);var m=C(_,2),p=S(m);W(w=>Q(p,w),[()=>ee("Page Not Found")]),y(d,g)},i=(d,g)=>{let _=ua(()=>Fa(g==null?void 0:g(),!1));var m=im();let p;var w=S(m);Ot(w,{variant:"link",onclick:()=>r()("home"),children:(k,P)=>{var x=nm(),T=J(x);Pt(T,{direction:"left"});var j=C(T);W(R=>Q(j,` ${R??""}`),[()=>ee("Home")]),y(k,x)},$$slots:{default:!0}}),W(()=>p=pe(m,1,"back svelte-1nq44zr",null,p,{offset:l(_)})),y(d,m)},r=D(e,"navigate",3,()=>null);let a=K(Ee(window.innerWidth));const s=B(()=>l(a)<Rn),o=new URL(document.location.toString()).searchParams.get("sid");var c=ge(),u=J(c);{var f=d=>{var g=ge(),_=J(g);vn(_,()=>ac(o),m=>{var p=am(),w=J(p);i(w),y(m,p)},(m,p)=>{var w=rm(),k=J(w);i(k,()=>!0);var P=C(k,2),x=S(P);ya(x,{get title(){return l(p)},get useVideoBackground(){return l(s)}}),y(m,w)},m=>{n(m)}),y(d,g)},h=d=>{n(d)};U(u,d=>{o?d(f):d(h,-1)})}Di("innerWidth",d=>z(a,d,!0)),y(t,c),ie()}const Rl={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}},ko="playpilot_split_test_";function om({key:t}){var r,a,s;const e=(a=(r=window.PlayPilotLinkInjections)==null?void 0:r.split_test_identifiers)==null?void 0:a[t];if(e!==void 0)return e;(s=window.PlayPilotLinkInjections)!=null&&s.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});let n=sessionStorage.getItem(ko+t);if(!n){const o=(Math.floor(Math.random()*100)/100).toString();sessionStorage.setItem(ko+t,o),n=o}const i=parseFloat(n);return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function _c(t){const e=om(t);return Math.floor(e*t.numberOfVariants)}function sm(t){var n;const e=_c(t);return((n=t.variantNames)==null?void 0:n[e])||e.toString()}function cm(t,e=1){return _c(t)===e}function um(t){const e=sm(t);ce(se.SplitTestView,null,{key:t.key,variant:e})}var dm=I("<div></div>");function fm(t,e){ne(e,!0);let n=D(e,"threshold",3,100),i=D(e,"isDragging",15,!1),r=D(e,"passedThreshold",15,!1),a=D(e,"onpassed",3,()=>null),s=K(0),o=K(0),c=K(null),u=K(!1);const f=B(()=>Math.max(l(o)-l(s),0));He(()=>{r(l(f)>n())});function h(w){if(w){i(!0),z(u,!0),z(s,w.touches[0].pageY,!0);for(const k of e.targets)k.style.transitionDuration="0ms"}}function d(w){if(w&&i()){w.preventDefault(),z(o,w.touches[0].pageY,!0),l(c).style.transform=`translateY(${l(f)}px)`;for(const k of e.targets)k.style.top=`${l(f)}px`}}function g(){if(i()){if(i(!1),r())a()();else{l(c).removeAttribute("style");for(const w of e.targets)w.style.removeProperty("transition"),requestAnimationFrame(()=>w.style.top="0px")}z(s,0),z(o,0)}}var _={start:h,move:d,end:g},m=dm();Se("touchmove",Ie,d,void 0,!0),Se("touchend",Ie,g);let p;return Fe(m,w=>z(c,w),()=>l(c)),W(()=>p=pe(m,1,"handle svelte-1xqgdsn",null,p,{dragging:i(),dragged:l(u)})),re("touchstart",m,h),y(t,m),ie(_)}me(["touchstart"]);function Na(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function n(a){if(a.key!=="Tab")return;const s=document.activeElement;if(!s)return;const o=e();if(!o.length)return;const[c]=o,u=o[o.length-1];a.shiftKey&&s===c&&(u.focus(),a.preventDefault()),!a.shiftKey&&s===u&&(c.focus(),a.preventDefault())}const i=document.activeElement,[r]=e();return i!=null&&i.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",n),{destroy(){window.removeEventListener("keydown",n),i==null||i.focus()}}}function vm(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var hm=I("<div><!></div>"),gm=I('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),mm=I('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),pm=I('<div class="swipe-handle svelte-1rbidhv"><!></div>'),_m=I("<div><!></div>"),ym=I('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),wm=I('<div data-testid="modal"><!> <!> <!> <!></div>');function ir(t,e){ne(e,!0);const n=N=>{var H=hm(),Z=S(H);Yr(Z,{onclick:P,"aria-label":"Close",children:(G,X)=>{_a(G,{})},$$slots:{default:!0}}),Fe(H,G=>z(g,G),()=>l(g)),W(()=>pe(H,1,`close ${s()??""}`,"svelte-1rbidhv")),Ne(7,H,()=>k),y(N,H)},i=D(e,"tall",3,!1),r=D(e,"wide",3,!1),a=D(e,"blur",3,!1),s=D(e,"closeButtonStyle",3,"shadow"),o=D(e,"initialScrollPosition",3,0),c=D(e,"onscroll",3,()=>null),u=D(e,"onclose",3,()=>null);let f=K(0),h=K(null),d=K(null),g=K(null),_=K(0),m=K(!1);const p=B(()=>l(f)<Rn);He(()=>{var N;l(f)&&z(_,((N=l(d))==null?void 0:N.offsetTop)||0,!0)}),He(()=>{setTimeout(()=>{var N;return z(_,((N=l(d))==null?void 0:N.offsetTop)||0,!0)})}),hr("scope","modal"),at(()=>{const N=vm();return N.classList.add("playpilot-modal-open"),z(m,!!To()),requestAnimationFrame(()=>requestAnimationFrame(w)),()=>{var H;document.querySelector(".modal")||N.classList.remove("playpilot-modal-open"),!To()&&((H=history.state)!=null&&H.modal)&&history.back()}});function w(){const N=Qn().querySelector("[data-modal-scroll-target]")||(window.innerWidth>Rn?l(h):l(d));N==null||N.scrollTo(0,o())}function k(N){return Hi.current?dn(N,{duration:0}):l(p)?Ki(N,{duration:250,y:window.innerHeight,opacity:1}):Fi(N,{duration:150,start:.85})}function P(){u()(),$r()}function x(N){N.target===l(h)&&P()}var T=wm();Se("keydown",Ie,({key:N})=>{N==="Escape"&&P()});let j,R;var M=S(T);{var F=N=>{var H=gm(),Z=S(H);Ve(Z,()=>e.prepend),Ne(7,H,()=>k),y(N,H)};U(M,N=>{e.prepend&&N(F)})}var q=C(M,2);{var V=N=>{var H=mm(),Z=S(H);Ve(Z,()=>e.bubble),Ne(7,H,()=>k),y(N,H)};U(q,N=>{e.bubble&&N(V)})}var A=C(q,2);{var b=N=>{var H=pm(),Z=S(H);{var G=X=>{{let te=B(()=>[l(d),l(g)]);fm(X,{get targets(){return l(te)},onpassed:P})}};U(Z,X=>{l(d)&&l(g)&&X(G)})}Ne(7,H,()=>k),y(N,H)};U(A,N=>{l(p)&&N(b)})}var L=C(A,2);{var O=N=>{var H=ge(),Z=J(H);Ve(Z,()=>e.dialog),y(N,H)},Y=N=>{var H=ym(),Z=J(H),G=S(Z);{var X=be=>{var Oe=_m(),Xe=S(Oe);Yr(Xe,{get onclick(){return Mp},"aria-label":"Back",children:(lt,qt)=>{Pt(lt,{direction:"left"})},$$slots:{default:!0}}),W(()=>pe(Oe,1,`close back ${s()??""}`,"svelte-1rbidhv")),y(be,Oe)};U(G,be=>{l(m)&&be(X)})}var te=C(G,2);Ve(te,()=>e.children??vt);var ye=C(te,2);{var le=be=>{n(be)};U(ye,be=>{l(p)||be(le)})}Fe(Z,be=>z(d,be),()=>l(d));var ue=C(Z,2);{var we=be=>{n(be)};U(ue,be=>{l(p)&&be(we)})}Se("scroll",Z,function(...be){var Oe;(Oe=c())==null||Oe.apply(this,be)}),Ne(7,Z,()=>k),y(N,H)};U(L,N=>{e.dialog?N(O):N(Y,-1)})}Fe(T,N=>z(h,N),()=>l(h)),Rt(T,N=>Na==null?void 0:Na(N)),W(()=>{j=pe(T,1,"modal svelte-1rbidhv",null,j,{wide:r(),tall:i(),"background-blur":a(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),R=Ue(T,"",R,{"--dialog-offset":`${l(_)??""}px`})}),Di("innerWidth",N=>z(f,N,!0)),re("click",T,x),Ne(5,T,()=>dn,()=>({duration:150})),Ne(6,T,()=>dn,()=>({duration:150,delay:100})),y(t,T),ie()}me(["click"]);var bm=I('<div class="error svelte-1bjke62"> </div>'),km=I('<div class="loading svelte-1bjke62"><div class="bar svelte-1bjke62"></div> <div class="bar svelte-1bjke62"></div> <div class="bar svelte-1bjke62"></div></div>');function Sm(t,e){ne(e,!0);const n=D(e,"navigate",3,()=>null);async function i(){const o=new URL(document.location.toString()).searchParams.get("sid");if(!o)return;let c=o.startsWith("pr")?"participant":"titles-rail",u=null;if(c==="titles-rail"){const[f,h]=(await Promise.allSettled([ac(o),rc({sid:o})])).map(d=>d.status==="fulfilled"?d.value:null);u=[f,...h]}else c==="participant"&&(u=await Nr(o));hn({type:c,data:u,props:{onclose:()=>n()("home")}})}var r=ge(),a=J(r);vn(a,i,s=>{ir(s,{blur:!0,dialog:c=>{var u=km();y(c,u)},$$slots:{dialog:!0}})},void 0,s=>{ir(s,{blur:!0,onclose:()=>n()("home"),children:(o,c)=>{var u=bm(),f=S(u);W(h=>Q(f,h),[()=>ee("An Error Occurred")]),y(o,u)},$$slots:{default:!0}})}),y(t,r),ie()}var xm=I("<p>An error occurred.</p>"),Pm=I("<!> <!>",1);function Tm(t,e){ne(e,!0);const n=[{key:"results",component:gc}];ji()&&(n.unshift({key:"home",component:wo}),n.push({key:"title",component:lm}),n.push({key:"modal",component:wo,appendComponent:Sm}));const i=f()||n[0].key;let r=K(Ee(n.find(({key:_})=>_===i)||n[0])),a=K(""),s=K(Ee({}));const o=B(()=>l(r).component),c=B(()=>l(r).appendComponent);He(()=>{l(a)&&z(r,n.find(_=>_.key==="results"),!0)});function u(_,m=!0){z(r,n.find(w=>w.key===_)||n[0],!0);const p=new URL(document.location.toString());_!=="title"&&_!=="modal"&&p.searchParams.delete("sid"),_===n[0].key?p.searchParams.delete("route"):p.searchParams.set("route",l(r).key),m&&history.pushState({},"",p),ce(se.ExploreNavigate,null,{route:l(r).key})}function f(){return new URL(document.location.toString()).searchParams.get("route")||n[0].key}function h(){u(f(),!1)}var d=ge();Se("popstate",Ie,h);var g=J(d);$o(g,{onerror:m=>console.error(m),failed:m=>{var p=xm();y(m,p)}},m=>{Uh(m,{navigate:u,get searchQuery(){return l(a)},set searchQuery(p){z(a,p,!0)},get filter(){return l(s)},set filter(p){z(s,p,!0)},children:(p,w)=>{var k=Pm(),P=J(k);Ur(P,()=>l(o),(T,j)=>{j(T,{get searchQuery(){return l(a)},get filter(){return l(s)},navigate:u})});var x=C(P,2);Ur(x,()=>l(c),(T,j)=>{j(T,{navigate:u})}),y(p,k)},$$slots:{default:!0}})}),y(t,d),ie()}const Ol="[data-playpilot-explore]",Em="[data-playpilot-pre-consent-explore]",yc="playpilot-explore-custom-style";let zr=null;function qr(){var e;const t=document.querySelector(Ol);t&&(Fr(),(e=document.querySelector(Em))==null||e.remove(),t.innerHTML="",zr=Dt(Tm,{target:t}),Am())}function Fr(){var t;zr&&(ri(zr),zr=null,(t=document.querySelector("#"+yc))==null||t.remove())}function Im(){var c;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:n,explore_navigation_path:i,explore_navigation_insert_position:r}=t;if(!e||!i)return!1;(c=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||c.remove();const a=document.querySelector(e);if(!a)return!1;const s=a.cloneNode(!0),o=s.nodeName==="A"?s:s.querySelector("a");return o.classList.remove("active"),o.innerText=n||"Streaming Guide",o.href=i,s.dataset.playpilotExploreNavigationElement="true",a.insertAdjacentElement(r||"afterend",s),!0}function Am(){var n;const t=(n=window.PlayPilotLinkInjections.config)==null?void 0:n.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=yc,document.body.appendChild(e)}function ji(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function pi(t,e){const{onclick:n}=e;function i(r){return r.button!==1?null:(n(r),r)}return t.addEventListener("mouseup",i),{destroy(){t.removeEventListener("mouseup",i)}}}const So={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"};var Cm=I('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),Lm=I('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),Mm=I('<button class="button svelte-1mt6g1y"> </button>'),Dm=I('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),jm=I('<div class="background svelte-1mt6g1y"></div>'),Rm=I("<!> <!>",1),Om=I('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function wc(t,e){ne(e,!0),ce(se.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),um(Rl.TopScrollFormat);const n=B(()=>e.campaign.disclaimer),i=B(()=>e.campaign.content),r=B(()=>e.campaign.cta),a=B(()=>l(i).format),s=B(()=>l(i).header),o=B(()=>l(i).header_logo),c=B(()=>l(i).image_uuid),u=B(()=>l(r).header),f=B(()=>l(r).url),h=B(()=>l(a)==="large"),d=B(()=>_o(l(c),So.TopScrollBackground)),g=B(()=>_o(l(c),So.TopScrollContent));let _=K(0);function m(){ce(se.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var p=Om();let w,k;var P=S(p),x=S(P);{var T=F=>{var q=Cm();W(()=>{ae(q,"src",l(g)),ae(q,"alt",l(s))}),y(F,q)},j=F=>{var q=Dm(),V=J(q);{var A=N=>{var H=Lm();W(()=>ae(H,"src",l(o))),y(N,H)};U(V,N=>{l(o)&&N(A)})}var b=C(V,2),L=S(b),O=C(b,2);{var Y=N=>{var H=Mm(),Z=S(H);W(()=>Q(Z,l(u))),y(N,H)};U(O,N=>{l(u)&&N(Y)})}W(()=>Q(L,l(s))),y(F,q)};U(x,F=>{l(h)?F(T):F(j,-1)})}var R=C(P,2);{var M=F=>{var q=Rm(),V=J(q);{var A=O=>{var Y=jm();let N;W(()=>N=Ue(Y,"",N,{"--background":`url('${l(d)??""}')`})),y(O,Y)};U(V,O=>{l(c)&&O(A)})}var b=C(V,2);{var L=O=>{jl(O,{get disclaimer(){return l(n)}})};U(b,O=>{l(n)&&O(L)})}y(F,q)};U(R,F=>{l(h)||F(M)})}Rt(p,(F,q)=>pi==null?void 0:pi(F,q),()=>({onclick:m})),ii(()=>ht(p,"clientWidth",F=>z(_,F))),W(()=>{ae(p,"href",l(f)),w=pe(p,1,"top-scroll svelte-1mt6g1y",null,w,{simple:l(h)}),k=Ue(p,"",k,{"--width":`${l(_)??""}px`})}),re("click",p,m),y(t,p),ie()}me(["click"]);var Nm=I('<div class="content svelte-r7ubzi"><!></div>'),zm=I('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function qm(t,e){let n=K(!1);var i=zm(),r=S(i);Ve(r,()=>e.children);var a=C(r,2);{var s=o=>{var c=Nm(),u=S(c);Ve(u,()=>e.content),Ne(1,c,()=>dn,()=>({duration:100})),y(o,c)};U(a,o=>{l(n)&&o(s)})}re("touchstart",i,()=>z(n,!l(n))),Se("mouseenter",i,()=>z(n,!0)),Se("mouseleave",i,()=>z(n,!1)),y(t,i)}me(["touchstart"]);var Fm=I('<div class="info svelte-qcpiki"><!></div>'),Hm=I('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),Bm=I('<span class="name svelte-qcpiki"> </span>'),Vm=I('<div class="subheader svelte-qcpiki"> </div>'),Wm=I('<div class="action svelte-qcpiki"> </div>'),Um=I('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),Gm=I('<img class="background svelte-qcpiki" alt=""/>'),Zm=I('<video class="background svelte-qcpiki" autoplay="" playsinline="" loop=""><source type="video/mp4"/> <track kind="captions"/></video>',2),Km=I('<div class="disclaimer svelte-qcpiki"><!></div>'),Ym=I('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Nl(t,e){ne(e,!0);const n=D(e,"compact",3,!1),i=B(()=>e.campaign.disclaimer),r=B(()=>e.campaign.content),a=B(()=>e.campaign.cta),s=B(()=>e.campaign.campaign_type),o=B(()=>l(r).header),c=B(()=>l(r).subheader),u=B(()=>l(r).header_logo),f=B(()=>l(r).image),h=B(()=>l(r).video),d=B(()=>l(a).header),g=B(()=>l(a).url),_=B(()=>l(a).subheader);let m=K(0),p=K(null);ce(se.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function w(){ce(se.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}wr(()=>{l(p)&&ce(se.DisplayedAdVideoPercentage,null,{percentage:100/l(p).duration*l(p).currentTime})});var k=Ym();let P;var x=S(k);{var T=b=>{var L=Fm(),O=S(L);{var Y=H=>{qm(H,{content:G=>{var X=rt();W(()=>Q(X,l(_))),y(G,X)},children:(G,X)=>{var te=rt("Ad");y(G,te)}})},N=H=>{var Z=rt();W(()=>Q(Z,l(_))),y(H,Z)};U(O,H=>{n()?H(Y):H(N,-1)})}y(b,L)};U(x,b=>{l(_)&&b(T)})}var j=C(x,2);{var R=b=>{var L=Um(),O=S(L);{var Y=le=>{var ue=Hm();W(()=>ae(ue,"src",l(u))),y(le,ue)};U(O,le=>{l(u)&&le(Y)})}var N=C(O,2),H=S(N);{var Z=le=>{var ue=Bm(),we=S(ue);W(()=>Q(we,l(o))),y(le,ue)};U(H,le=>{l(o)&&le(Z)})}var G=C(H,2);{var X=le=>{var ue=Vm(),we=S(ue);W(()=>Q(we,l(c))),y(le,ue)};U(G,le=>{l(c)&&le(X)})}var te=C(N,2);{var ye=le=>{var ue=Wm(),we=S(ue);W(()=>Q(we,l(d))),y(le,ue)};U(te,le=>{l(d)&&le(ye)})}ht(L,"clientHeight",le=>z(m,le)),y(b,L)};U(j,b=>{(l(u)||l(o)||l(c)||l(d))&&b(R)})}var M=C(j,2);{var F=b=>{var L=Gm();W(()=>ae(L,"src",l(f))),y(b,L)},q=b=>{var L=Zm();L.muted=!0;var O=S(L);Fe(L,Y=>z(p,Y),()=>l(p)),W(()=>ae(O,"src",l(h))),y(b,L)};U(M,b=>{l(s)==="image"&&l(f)?b(F):l(s)==="video"&&l(h)&&b(q,1)})}var V=C(M,2);{var A=b=>{var L=Km();let O;var Y=S(L);jl(Y,{get disclaimer(){return l(i)}}),W(()=>O=Ue(L,"",O,{"--offset":`${l(m)??""}px`})),y(b,L)};U(V,b=>{l(i)&&b(A)})}Rt(k,(b,L)=>pi==null?void 0:pi(b,L),()=>({onclick:w})),W(()=>{ae(k,"href",l(g)),P=pe(k,1,"display svelte-qcpiki",null,P,{compact:n()})}),re("click",k,w),y(t,k),ie()}me(["click"]);var Jm=I('<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 Qm(t,e){var c,u;ne(e,!1);const n="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",i=(u=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:u.explore_navigation_path;Sl();var r=Jm(),a=S(r);ae(a,"src",n);var s=C(a,4),o=S(s);Pt(o,{}),W(()=>ae(r,"href",i)),re("click",r,()=>ce(se.CardToExploreCta)),y(t,r),ie()}me(["click"]);function Xm(t,e){var d,g;ne(e,!0);const n=_=>{var m=ge(),p=J(m);{var w=P=>{wc(P,{get campaign(){return s}})},k=P=>{Qm(P,{})};U(p,P=>{s?P(w):P(k,-1)})}y(_,m)},i=_=>{var m=ge(),p=J(m);{var w=k=>{Nl(k,{get campaign(){return o}})};U(p,k=>{o&&k(w)})}y(_,m)},r=D(e,"initialScrollPosition",3,0),a=qi(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]);hr("modal","title");const s=ei("top_scroll"),o=ei("card"),c=(g=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:g.explore_insert_cta_in_tpi,u=!!s||c&&!document.querySelector(Ol);let f=!1;ce(se.TitleModalView,e.title),ai()&&Kt(Ct.TitleInterest,{title:e.title.title,source:Pn.Card}),at(()=>{const _=Date.now();return()=>ce(se.TitleModalClose,e.title,{time_spent:Date.now()-_})});function h(){f||(ce(se.TitleModalScroll,e.title),f=!0)}{let _=B(()=>u?n:null),m=B(()=>o?i:null);ir(t,{onscroll:h,get initialScrollPosition(){return r()},get bubble(){return l(_)},get prepend(){return l(m)},tall:!0,children:(p,w)=>{ya(p,jn({get title(){return e.title}},()=>a))},$$slots:{default:!0}})}ie()}var $m=I('<div class="read-more svelte-zuyh9b"><!></div>'),ep=I("<p> </p> <!>",1),tp=I('<div class="list-header svelte-zuyh9b"><div class="heading subheading svelte-zuyh9b" id="credits"> </div></div> <div class="jobs svelte-zuyh9b"></div> <!>',1),np=I('<div><!> <div><div id="heading"> </div> <!></div></div> <div><!> <!></div>',1);function bc(t,e){ne(e,!0);const n=D(e,"small",3,!1),i=B(()=>e.participant.name),r=B(()=>e.participant.description),a=Ee({}),s=[{label:"Popularity",value:Tn.Popular},{label:"Top Rated",value:Tn.Best},{label:"IMDb Rating",value:Tn.IMDb},{label:"Year",value:Tn.Chronological}];let o=K(0),c=K("all"),u=K(!1);const f=B(()=>({...a,participant_sid:{type:"string",value:e.participant.sid},participant_job:{type:"string",value:l(c)==="all"?null:l(c)}}));ai()&&Kt(Ct.ParticipantView,{participant:e.participant.name});function h(A,b,L){hn({event:A,type:"titles-rail",data:b,props:{initialIndex:L}})}var d=np(),g=J(d);let _;var m=S(g);{var p=A=>{ll(A,{get participant(){return e.participant}})};U(m,A=>{e.participant.image&&A(p)})}var w=C(m,2),k=S(w);let P;var x=S(k);Rt(k,(A,b)=>Re==null?void 0:Re(A,b),()=>2);var T=C(k,2);{var j=A=>{var b=ep(),L=J(b);let O;var Y=S(L),N=C(L,2);{var H=Z=>{var G=$m(),X=S(G);Ot(X,{variant:"link",onclick:()=>z(u,!l(u)),children:(te,ye)=>{var le=rt();W(ue=>Q(le,ue),[()=>l(u)?ee("Read Less"):ee("Read More")]),y(te,le)},$$slots:{default:!0}}),y(Z,G)};U(N,Z=>{n()||Z(H)})}W(()=>{O=pe(L,1,"description svelte-zuyh9b",null,O,{expanded:l(u)}),Q(Y,l(r))}),y(A,b)};U(T,A=>{l(r)&&A(j)})}var R=C(g,2);let M;var F=S(R);{var q=A=>{var b=tp(),L=J(b),O=S(L),Y=S(O);Rt(O,(Z,G)=>Re==null?void 0:Re(Z,G),()=>3);var N=C(L,2);Me(N,21,()=>["all",...e.participant.jobs],De,(Z,G)=>{{let X=B(()=>l(c)===l(G));Ot(Z,{variant:"border",size:"large",get active(){return l(X)},onclick:()=>z(c,l(G),!0),children:(te,ye)=>{var le=rt();W(ue=>Q(le,ue),[()=>ee("Job: "+l(G)).replace("Job: ","")]),y(te,le)},$$slots:{default:!0}})}});var H=C(N,2);{let Z=B(()=>l(o)<700);pc(H,{get filter(){return a},get sortings(){return s},get limit(){return l(Z)},hideActive:!0})}W(Z=>Q(Y,Z),[()=>ee("Credits")]),y(A,b)};U(F,A=>{n()||A(q)})}var V=C(F,2);gc(V,{forceGrid:!0,hidePlaylinks:!0,get filter(){return l(f)},onTitleClick:h}),W(()=>{_=pe(g,1,"header svelte-zuyh9b",null,_,{small:n()}),P=pe(k,1,"heading svelte-zuyh9b",null,P,{"no-image":!e.participant.image}),Q(x,l(i)),M=pe(R,1,"content svelte-zuyh9b",null,M,{small:n()})}),ht(R,"clientWidth",A=>z(o,A)),y(t,d),ie()}function ip(t,e){ne(e,!0);const n=D(e,"initialScrollPosition",3,0),i=qi(e,["$$slots","$$events","$$legacy","participant","initialScrollPosition"]);ce(se.ParticipantModalView,null,{participant:e.participant.name}),at(()=>{const r=Date.now();return()=>ce(se.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),ir(t,jn({get initialScrollPosition(){return n()}},()=>i,{closeButtonStyle:"flat",tall:!0,wide:!0,blur:!0,children:(r,a)=>{bc(r,{get participant(){return e.participant}})},$$slots:{default:!0}})),ie()}function rp(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const n=document.querySelectorAll("[data-view-transition-old]");if(t(),!n.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var ap=Ge('<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 lp(t){var e=ap();y(t,e)}var op=I('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),sp=I('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),cp=I('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),up=I('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function dp(t,e){ne(e,!0),hr("scope","popover");const n=e.bubble&&cm(Rl.TopScrollFormat,1),i=B(()=>({duration:Hi.current?0:100,y:10}));let r=K(null),a=K(!1),s=K(!0),o=K(!1),c=K(0),u=K(0),f=K(0);at(async()=>{await er(),h(),await g(),e.append&&requestAnimationFrame(()=>{d(),g()}),await er(),m()});function h(){if(!l(r))return;const{top:V,right:A,bottom:b,height:L}=l(r).getBoundingClientRect(),O=_();z(a,V-O<0&&window.innerHeight-b>V+L,!0);const Y=window.innerWidth-A-O;A+O>window.innerWidth&&(l(r).style.left=`${Y}px`)}function d(){z(s,l(c)>450)}async function g(){if(z(f,0),await new Promise(N=>requestAnimationFrame(N)),!l(r))return;const{top:V,height:A}=l(r).getBoundingClientRect(),b=_(),L=e.append?parseInt(window.getComputedStyle(l(r)).gap):0,O=l(s)?l(u)+L:0,Y=l(a)?window.innerHeight-V-b-O:V+A-O-b;z(f,Math.min(Y,window.innerHeight*.8),!0)}function _(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function m(){var O;if(!((O=l(r))!=null&&O.firstChild))return;const V=l(r).firstChild,{offsetHeight:A,scrollHeight:b,scrollTop:L}=V;b<=A?z(o,!1):z(o,L+A<b)}var p=up();let w,k;var P=S(p),x=S(P);Ve(x,()=>e.children);var T=C(x,2);{var j=V=>{var A=op(),b=S(A),L=S(b);lp(L),Ne(3,A,()=>dn,()=>({duration:100})),y(V,A)};U(T,V=>{l(o)&&V(j)})}var R=C(P,2);{var M=V=>{var A=sp(),b=S(A);Ve(b,()=>e.bubble),Ne(7,A,()=>Ki,()=>l(i)),y(V,A)};U(R,V=>{e.bubble&&V(M)})}var F=C(R,2);{var q=V=>{var A=cp(),b=S(A);Ve(b,()=>e.append),Ne(7,A,()=>Ki,()=>l(i)),ht(A,"clientHeight",L=>z(u,L)),y(V,A)};U(F,V=>{e.append&&l(s)&&V(q)})}Fe(p,V=>z(r,V),()=>l(r)),W(()=>{w=pe(p,1,"popover svelte-wxwoko",null,w,{flip:l(a),inline:n,"has-bubble":!!e.bubble&&n}),k=Ue(p,"",k,{"--max-height":l(f)?l(f)+"px":null})}),Se("scroll",P,m),Ne(7,P,()=>Ki,()=>l(i)),ht(p,"clientHeight",V=>z(c,V)),y(t,p),ie()}var fp=I('<div class="injection-popover svelte-1laomht" data-playpilot-injection-popover="" role="region" aria-labelledby="heading"><!></div>');function xo(t,e){ne(e,!0);const n=h=>{var d=ge(),g=J(d);{var _=m=>{wc(m,{get campaign(){return a}})};U(g,m=>{a&&m(_)})}y(h,d)},i=h=>{var d=ge(),g=J(d);{var _=m=>{Nl(m,{get campaign(){return s},compact:!0})};U(g,m=>{s&&m(_)})}y(h,d)},r=D(e,"type",3,"title");hr("type",r());const a=ei("top_scroll"),s=ei("card");let o=K(null);r()==="title"&&ce(se.InjectionPopoverView,e.data,{type:r()}),r()==="participant"&&ce(se.InjectionPopoverView,null,{type:r(),participant:e.data.name}),ai()&&r()==="title"&&Kt(Ct.TitleInterest,{title:e.data.title,source:Pn.Card}),at(()=>{c();const h=Date.now();return()=>{const d=Date.now()-h;r()==="title"&&ce(se.InjectionPopoverClose,e.data,{type:r(),time_spent:d}),r()==="participant"&&ce(se.InjectionPopoverClose,null,{type:r(),participant:e.data.name,time_spent:d})}});function c(){const h=e.event.target;if(!(h!=null&&h.getClientRects))return;const d=Array.from(h.getClientRects()),_=d.map(p=>p.x).map(p=>Math.abs(p-e.event.clientX)),m=d[_.indexOf(Math.min(..._))];l(o).style.top=m.top+window.scrollY+"px",l(o).style.left=m.left+window.scrollX+"px",l(o).style.height=m.height+"px"}var u=fp(),f=S(u);{let h=B(()=>s?i:null),d=B(()=>a?n:null);dp(f,{get append(){return l(h)},get bubble(){return l(d)},children:(g,_)=>{var m=ge(),p=J(m);{var w=P=>{ya(P,{get title(){return e.data},small:!0})},k=P=>{bc(P,{get participant(){return e.data},small:!0})};U(p,P=>{r()==="title"?P(w):r()==="participant"&&P(k,1)})}y(g,m)},$$slots:{default:!0}})}Fe(u,h=>z(o,h),()=>l(o)),y(t,u),ie()}let Xr=null,Cn=null;function vp(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Cn&&wa();const n=t.currentTarget;Xr=n,setTimeout(()=>{if(Xr!==n)return;const i=Qn();e.type==="title"?Cn=Dt(xo,{target:i,props:{event:t,type:"title",data:e.title_details}}):e.type==="participant"&&(Cn=Dt(xo,{target:i,props:{event:t,type:"participant",data:e.participant_details}}))},100)}async function wa(t=!0){if(Cn){const e=ri(Cn,{outro:t});Xr=null,Cn=null,await e}document.querySelectorAll("[data-playpilot-injection-popover]").forEach(e=>e.remove())}function hp(t){if(!Cn)return;const e=t.target;e.hasAttribute("data-playpilot-injection-popover")||e.closest("[data-playpilot-injection-popover]")||e.hasAttribute(gn)||e.closest(pn)||wa()}function gp(){Xr=null}function mp(){return!!Cn}var pp=I("<!> ",1),_p=I('<div class="back svelte-29uorr"><!></div>'),yp=I('<!> <div class="close svelte-29uorr"><!></div>',1);function wp(t,e){ne(e,!0);const n=D(e,"label",3,""),i=D(e,"onclose",3,()=>null);var r=yp(),a=J(r);{var s=u=>{var f=_p(),h=S(f);Ot(h,{variant:"link",onclick:()=>{i()(),$r()},children:(d,g)=>{var _=pp(),m=J(_);Pt(m,{direction:"left"});var p=C(m);W(()=>Q(p,` ${n()??""}`)),y(d,_)},$$slots:{default:!0}}),y(u,f)};U(a,u=>{n()&&u(s)})}var o=C(a,2),c=S(o);Yr(c,{size:"42px",onclick:()=>{i()(),$r()},"aria-label":"Close",children:(u,f)=>{_a(u,{size:24})},$$slots:{default:!0}}),Ne(7,o,()=>Fi),y(t,r),ie()}var bp=I('<div class="ad svelte-c2erhr"><!></div>'),kp=I('<div class="content svelte-c2erhr"><!></div>'),Sp=I("<div><!></div>"),xp=I('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Pp=I('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Tp=I("<!> <!>",1),Ep=I('<div><!></div> <div class="close svelte-c2erhr"><!></div>',1);function Ip(t,e){ne(e,!0);const n=m=>{var p=ge(),w=J(p);{var k=P=>{var x=bp(),T=S(x);Nl(T,{get campaign(){return l(d)}}),y(P,x)};U(w,P=>{l(d)&&P(k)})}y(m,p)},i=D(e,"initialIndex",3,0),r=D(e,"onchange",3,()=>null),a=D(e,"onclose",3,()=>null),s=qi(e,["$$slots","$$events","$$legacy","items","initialIndex","onchange","onclose","each"]);let o,c=K(!1),u=Ee(Hi.current?0:300),f=K(null),h=K(null),d=K(Ee(ei("card")));at(()=>{_(),requestAnimationFrame(()=>{i()!==0&&(o==null||o.setIndex(i())),requestAnimationFrame(()=>{o==null||o.reposition(),z(c,!0)})})});function g(m){r()(m),o.setIndex(m)}function _(){if(!l(d)){z(f,null);return}const m=document.querySelector(".modal");z(f,window.innerHeight-(l(h).getBoundingClientRect().top+m.scrollTop+parseInt(window.getComputedStyle(m).paddingBottom)))}Se("resize",Ie,_),Se("updateads",Ie,()=>z(d,ei("card"),!0)),ir(t,jn({blur:!0,get onclose(){return a()},get prepend(){return n}},()=>s,{dialog:p=>{var w=Ep(),k=J(w);let P,x;var T=S(k);{const M=(V,A)=>{let b=()=>(A==null?void 0:A()).currentIndex;var L=ge(),O=J(L);Me(O,17,()=>e.items,De,(Y,N,H)=>{const Z=B(()=>b()===H);var G=Sp();let X;var te=S(G);{var ye=ue=>{var we=kp(),be=S(we);Ve(be,()=>e.each,()=>l(N),b),W(()=>ae(we,"data-modal-scroll-target",l(Z)?"":null)),Ne(3,we,()=>dn,()=>({duration:l(c)?u:0})),y(ue,we)},le=B(()=>Math.abs(H-b())===1||l(Z));U(te,ue=>{l(le)&&ue(ye)})}W(()=>{X=pe(G,1,"item svelte-c2erhr",null,X,{active:l(Z)}),ae(G,"data-active-index",l(Z)?H:null)}),re("click",G,()=>g(H)),y(Y,G)}),y(V,L)},F=(V,A)=>{let b=()=>(A==null?void 0:A()).currentIndex,L=()=>(A==null?void 0:A()).reachedEnd;var O=Tp(),Y=J(O);{var N=G=>{var X=xp(),te=S(X);Pt(te,{size:21,direction:"left",title:"Previous"}),re("click",X,()=>g(b()-1)),y(G,X)};U(Y,G=>{b()>0&&G(N)})}var H=C(Y,2);{var Z=G=>{var X=Pp(),te=S(X);Pt(te,{size:21,title:"Next"}),re("click",X,()=>g(b()+1)),y(G,X)};U(H,G=>{L()||G(Z)})}y(V,O)};let q=B(()=>l(c)?u:0);Fe(cc(T,{threshold:40,moveThreshold:40,get transitionDuration(){return l(q)},children:M,controls:F,$$slots:{default:!0,controls:!0}}),V=>o=V,()=>o)}Fe(k,M=>z(h,M),()=>l(h));var j=C(k,2),R=S(j);{let M=B(()=>window.location.href.includes("route=modal")?ee("Explore All Movies And Shows"):"");wp(R,{get onclose(){return a()},get label(){return l(M)}})}W(()=>{P=pe(k,1,"rail-modal svelte-c2erhr",null,P,{initialized:l(c)}),x=Ue(k,"",x,{"--transition-duration":`${u}ms`,"--available-height":l(f)&&l(f)+"px"})}),y(p,w)},$$slots:{dialog:!0}})),ie()}me(["click"]);function Ap(t,e){ne(e,!0);const n=D(e,"initialIndex",3,0),i=D(e,"onclose",3,()=>null),r=qi(e,["$$slots","$$events","$$legacy","titles","initialIndex","onclose"]);Ip(t,jn({get items(){return e.titles},get initialIndex(){return n()},get onclose(){return i()},onchange:s=>ce(se.ExploreTitleRailSetIndex,e.titles[s],{index:s})},()=>r,{each:(s,o=vt,c=vt)=>{{let u=B(()=>{var f;return o().sid===((f=e.titles[c()])==null?void 0:f.sid)});ya(s,{get title(){return o()},get useVideoBackground(){return l(u)}})}},$$slots:{each:!0}})),ie()}const Ze=[];function hn({type:t="title",event:e=null,injection:n=null,data:i=null,scrollPosition:r=0,returnToTitle:a=null,props:s={}}={}){if(e&&Qs(e))return;e==null||e.preventDefault(),Ze!=null&&Ze.length&&zl();const o=Qn(),c={initialScrollPosition:r,...s},u=Cp({type:t,target:o,data:i,props:c});a&&Po({type:t,injection:n,data:a}),Po({type:t,injection:n,data:i,scrollPosition:r,component:u})}function Cp({type:t="title",target:e,data:n,props:i={}}){return t==="participant"?Dt(ip,{target:e,props:{participant:n,...i}}):t==="titles-rail"?Dt(Ap,{target:e,props:{titles:n,...i}}):Dt(Xm,{target:e,props:{title:n,...i}})}function Po({type:t="title",injection:e=null,data:n,scrollPosition:i=0,component:r}){Ze.push({type:t,injection:e,data:n,scrollPosition:i,component:r})}function zl(t=!0){Ze.length&&(Dp(),ri(Ze[Ze.length-1].component,{outro:t}))}function Lp(t=!0){zl(t),Ze.pop()}function $r(t=!0){for(zl(t);Ze.length>0;)Ze.pop()}function To(){return Ze[Ze.length-2]||null}function Mp(){if(Ze.length<2)return;Lp();const t=Ze.pop();t&&hn({...t})}function Dp(){var n;const t=window.innerWidth>Rn?".modal":".dialog",e=Qn().querySelector("[data-modal-scroll-target]")||Qn().querySelector(t);e!=null&&e.scrollTop&&(Ze[Ze.length-1].scrollPosition=e.scrollTop,Ze[Ze.length-1].props={initialIndex:parseInt(((n=Qn().querySelector("[data-active-index]"))==null?void 0:n.dataset.activeIndex)||"0")})}function jp(t,e){if(Qs(t))return;let n=t.target;if(!n||(n.hasAttribute(gn)||(n=n.closest(pn)),!n))return;const i=n.getAttribute(gn);if(!i)return;const r=e.find(a=>i===a.key);r&&(t.preventDefault(),rp(()=>{const a=r.title_details||r.participant_details;wa(!1),hn({event:t,injection:r,data:a,type:r.type})},!Hi.current&&window.innerWidth>=Rn&&!window.matchMedia("(pointer: coarse)").matches))}var Rp=I(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),Op=I('<!> <a target="_blank"> </a>',1),Np=I(" <!>.",1),zp=I("<!> <br/>",1),qp=I(" <br/>",1),Fp=I('<span class="svelte-1to4glm"><!></span>'),Hp=I('<p class="svelte-1to4glm"></p>');function Bp(t,e){ne(e,!0);const n=D(e,"onclickmodal",3,()=>null);function i(c,u){ce(se.AfterArticlePlaylinkClick,c,{playlink:u})}function r(c,u,f){ce(se.AfterArticleModalButtonClick,u),n()(c,f)}var a=ge(),s=J(a);{var o=c=>{var u=Hp();Me(u,21,()=>e.linkInjections,De,(f,h)=>{const d=B(()=>{const{key:k,title:P,title_details:x,after_article_style:T}=l(h);return{key:k,title:P,title_details:x,after_article_style:T}}),g=B(()=>{var k;return((k=l(d).title_details)==null?void 0:k.providers)||[]});var _=Fp(),m=S(_);{var p=k=>{var P=zp(),x=J(P);{var T=R=>{var M=Rp(),F=J(M),q=C(F),V=S(q),A=S(V);W((b,L)=>{Q(F,`"${l(d).title??""}" ${b??""} `),Q(A,L)},[()=>ee("Is Available To Stream"),()=>ee("View Streaming Options")]),re("click",q,b=>b.stopPropagation()),re("click",V,b=>r(b,l(d).title_details,l(h))),y(R,M)},j=R=>{var M=Np(),F=J(M),q=C(F);Me(q,17,()=>l(g),De,(V,A,b)=>{let L=()=>l(A).name,O=()=>l(A).url;var Y=Op(),N=J(Y);{var H=X=>{var te=rt();W(ye=>Q(te,ye),[()=>b===l(g).length-1?`, ${ee("And")}`:","]),y(X,te)};U(N,X=>{b&&X(H)})}var Z=C(N,2),G=S(Z);W(()=>{ae(Z,"href",O()),Q(G,L())}),re("click",Z,()=>i(l(d).title_details,L())),y(V,Y)}),W(V=>Q(F,`"${l(d).title??""}" ${V??""} `),[()=>ee("Is Available To Stream On")]),y(R,M)};U(x,R=>{l(d).after_article_style==="modal_button"?R(T):R(j,-1)})}y(k,P)},w=k=>{var P=qp(),x=J(P);W(T=>Q(x,`"${l(d).title??""}" ${T??""} `),[()=>ee("Title Unavailable Suffix")]),y(k,P)};U(m,k=>{l(g).length?k(p):k(w,-1)})}W(()=>ae(_,"data-playpilot-injection-key",l(d).key)),y(f,_)}),y(c,u)};U(s,c=>{e.linkInjections.length&&c(o)})}y(t,a),ie()}me(["click"]);let Yi=null;function Vp(t,e){var s,o;if(Yi||!e.length)return;const n=document.createElement("div"),i=(s=window.PlayPilotLinkInjections)==null?void 0:s.after_article_selector,r=(i?document.querySelector(i):null)||t[t.length-1],a=((o=window.PlayPilotLinkInjections)==null?void 0:o.after_article_insert_position)||"afterend";n.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(a,n),Yi=Dt(Bp,{target:n,props:{linkInjections:e,onclickmodal:(c,u)=>hn({event:c,injection:u,data:u.title_details})}})}function Wp(){var t;Yi&&(ri(Yi),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Yi=null)}var Up=I('<p class="svelte-1epbbn0"> </p>');function Gp(t,e){ne(e,!1),Sl();var n=Up(),i=S(n);W(r=>Q(i,r),[()=>{var r,a;return((a=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:a.in_text_disclaimer_text)||ee("In-Text Disclaimer")}]),y(t,n),ie()}let Ji=null;function Zp(t){var a,s,o,c,u,f;if(!((s=(a=window.PlayPilotLinkInjections)==null?void 0:a.config)!=null&&s.in_text_disclaimer_enabled)||Ji)return;const e=document.createElement("div"),n=(c=(o=window.PlayPilotLinkInjections)==null?void 0:o.config)==null?void 0:c.in_text_disclaimer_selector,i=(n?document.querySelector(n):null)||t[0],r=((f=(u=window.PlayPilotLinkInjections)==null?void 0:u.config)==null?void 0:f.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",i.insertAdjacentElement(r,e),Ji=Dt(Gp,{target:e})}function Kp(){var t;Ji&&(ri(Ji),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),Ji=null)}var Yp=I('<div class="widget svelte-l6zazf" data-testid="widget"><!></div>');function Jp(t,e){ne(e,!0);let n=K(null);const i=B(()=>{var c,u;return((u=(c=l(n))==null?void 0:c.parentNode)==null?void 0:u.dataset.heading)||ee("Mentioned In This Article")}),r=B(()=>{const c=[];return e.linkInjections.forEach(u=>{const f=u.title_details;f&&(c.some(h=>h.sid===f.sid)||c.push(f))}),c});var a=ge(),s=J(a);{var o=c=>{var h,d;var u=Yp(),f=S(u);nr(f,{get titles(){return l(r)},get heading(){return l(i)},navigateToExplore:!!((d=(h=window.PlayPilotLinkInjections)==null?void 0:h.config)!=null&&d.open_tpi_links_in_explore),onclick:g=>ce(se.WidgetArticleRailTitleClick,g)}),Fe(u,g=>z(n,g),()=>l(n)),y(c,u)};U(s,c=>{l(r).length&&c(o)})}y(t,a),ie()}const Qp={"tpi-rail":Jp},Xp="[data-playpilot-widget]";let ol=[];function $p(t){if(kc(),!t.length)return;document.querySelectorAll(Xp).forEach(n=>{const i=n.dataset.playpilotWidget||"",r=Qp[i];if(!r)return;const a=Dt(r,{target:n,props:{linkInjections:t}});ol.push(a)})}function kc(){ol.forEach(t=>ri(t)),document.querySelectorAll("[data-playpilot-widget]").forEach(t=>t.innerHTML=""),ol=[]}const gn="data-playpilot-injection-key",pn=`[${gn}]`;function e_(t,e={aiInjections:[],manualInjections:[]}){var f,h,d;ql(),l_();const n=o_(e);if(!n.length)return[];const i=Ut(t.map(g=>g.innerText).join(" ")),a=c_(n).filter(g=>i.includes(Ut(g.sentence))),s={},o={};let c=-1;for(const g of d_(a)){if(c++,g.type==="participant"&&((f=g.participant_details).popularity||(f.popularity=g.popularity)),!g.manual){const M=o[g.sid]||0;if(M>=(((d=(h=window.PlayPilotLinkInjections)==null?void 0:h.config)==null?void 0:d.unique_injection_count_limit)||10)){s[g.key]="Injection was withheld because it exceeded the maximum unique count.";continue}else o[g.sid]=M+1;if(g.type==="participant"&&!v_(n,g.participant_details)){s[g.key]="Participant does not meet popularity threshold.";continue}}const _=t.findIndex(M=>Ut(M.innerText).includes(Ut(g.sentence))),m=t[_];if(!m)continue;const p=uo(g.title,m,["A"]);if(!(p!=null&&p.nodeValue)||fo(p)){const M=uo(g.title,m);if(M&&fo(M)){s[g.key]="Given text is already inside of a link.";continue}}const{injectionElement:w,linkElement:k}=t_(g);let P=-1,x=!1;Kr(m.innerHTML,g.title)===1&&(P=m.innerHTML.indexOf(g.title));const{phrase_before:j,phrase_after:R}=n_(m,g);if(P===-1&&(j||R)){const M=[j,g.title,R].filter(Boolean).join(" ");if(P=m.innerHTML.indexOf(M),P===-1){let F=mf(m.innerHTML,g.title,j||"",R||"");if(F){if(F.match.includes(">")&&F.match.includes("<")){const L=Js(g.title),O=F.match.search(new RegExp(`>s*${L}s*<`))+1;O>0&&(F={match:F.match.slice(O,O+L.length),index:O})}const{leadingSpaces:q,trailingSpaces:V}=pf(F.match);k.innerHTML=F.match.trim();const A=F.index+q,b=F.index+F.match.length-V;if(m.innerHTML.slice(A,b).includes("href="))continue;za(m.innerHTML,g.title,m,w,A,b)&&(P=F.index,x=!0)}}}if(P===-1&&(p!=null&&p.nodeValue)){const M=m.innerHTML.indexOf(p.nodeValue),F=m.innerHTML.indexOf(g.sentence),q=F===-1?m.innerHTML.indexOf(g.sentence.slice(0,20)):-1,V=g.sentence.split(" ")[0],b=Kr(m.innerHTML,V)===1?m.innerHTML.indexOf(V):-1,L=uf(a.slice(0,c+1),g,["title","sentence"])-1,O=_f(p.nodeValue,m,L);P=Math.max(M,q,O,b,F,0)}if(P!==-1&&!x&&!za(m.innerHTML,g.title,m,w,P)){const M=wf(g.title,m.innerHTML);M>-1?za(m.innerHTML,g.title,m,w,M):s[g.key]="Injection would have lead to broken HTML."}}r_(a),i_();const u=u_(n);return u.length&&Vp(t,u),document.querySelector(pn)&&Zp(t),$p(a),n.filter(g=>Ec(g)).map((g,_)=>{const m=!g.manual&&f_(g,_,n),p=g.duplicate??m;p&&(s[g.key]=m?"Injection was manually removed.":"Injection was marked as duplicate.");const w=document.querySelector(`[${gn}="${g.key}"]`),k=xc(g)&&!g.inactive&&!g.removed&&!g.after_article&&!w,P=k&&t.some(T=>Ut(T.innerText).includes(Ut(g.sentence))),x=k?s[g.key]||(P?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...g,inactive:g.inactive??!1,duplicate:p,failed:k,failed_message:x,matchingElement:w}})}function t_(t){var s,o,c,u,f;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key,e.dataset.playpilotInjectionType=t.type;const n=!!((o=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)!=null&&o.open_tpi_links_in_explore),i=((c=t.title_details)==null?void 0:c.sid)||((u=t.participant_details)==null?void 0:u.sid),r=n?Cl(i):t.type==="title"?fc(t.title_details):fv(t.participant_details),a=document.createElement("a");return a.innerText=t.title,a.href=r,a.target=n?"":"_blank",a.rel="noopener nofollow noreferrer",t.type==="title"&&(a.dataset.playpilotPosterUrl=(f=t.title_details)==null?void 0:f.standing_poster),e.insertAdjacentElement("beforeend",a),{injectionElement:e,linkElement:a}}function za(t,e,n,i,r,a=-1){const s=f=>Array.from(f.querySelectorAll(`a, ${pn}`)).filter(h=>!h.innerText).length,o=document.createElement("div");o.innerHTML=t;const c=s(o),u=o.innerText;return a>0?o.innerHTML=vf(t,i.outerHTML,r,a):o.innerHTML=ff(t,e,i.outerHTML,r),Math.abs(o.innerText.length-u.length)>1||c!=s(o)?!1:(n.innerHTML=o.innerHTML,!0)}function n_(t,e){const{phrase_before:n,phrase_after:i}=e;if(n||i)return{phrase_before:n,phrase_after:i};if(Kr(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const a=t.innerText.indexOf(e.title),s=hf(t,a,a+e.title.length);return{phrase_before:s.before,phrase_after:s.after}}function i_(){const t=Array.from(document.querySelectorAll(`${pn} 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 n of t){const i=getComputedStyle(n);for(const r of e)i.getPropertyValue(r)&&(n.dataset.usedCssVariables=`${n.dataset.usedCssVariables||""} ${r}`)}}function r_(t){window.addEventListener("mousemove",hp),window.addEventListener("click",n=>{var i,r;(r=(i=window.PlayPilotLinkInjections)==null?void 0:i.config)!=null&&r.open_tpi_links_in_explore||jp(n,t)}),document.querySelectorAll(pn).forEach(n=>{const i=n.dataset.playpilotInjectionKey,r=t.find(a=>i===a.key);r&&(n.addEventListener("mouseenter",a=>{mp()||vp(a,r)}),n.addEventListener("mouseleave",gp))})}function ql(){const t=document.querySelectorAll(pn);t.forEach(e=>a_(e.getAttribute(gn)||"")),Wp(),Kp(),kc(),t.length&&($r(!1),wa(!1))}function a_(t){var r;const e=document.querySelector(`[${gn}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(a=>a.remove());const i=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=i||""}function l_(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(pn)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function o_({aiInjections:t,manualInjections:e}){return[...e.map(n=>({...n,manual:!0})),...t]}function s_(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function Sc(t){return!t.inactive&&!t.removed&&!t.duplicate&&Ec(t)&&xc(t)}function xc(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function c_(t){return Pc(t).filter(e=>e.in_text!==!1&&Sc(e))}function u_(t){return Pc(t).filter(e=>e.after_article===!0&&Sc(e))}function Pc(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(n=>n.manual&&(n.removed||n.inactive)&&Tc(n,e)))}function d_(t){return t.slice().sort((e,n)=>{if(e.sentence<n.sentence)return-1;if(e.sentence>n.sentence)return 1;const i=n.title.length-e.title.length;return i!==0?i:0})}function f_(t,e,n){return n.some((i,r)=>e!==r&&i.manual&&Tc(i,t))}function Tc(t,e){return t.title===e.title&&Ut(t.sentence)===Ut(e.sentence)}function Ec(t){return!!(t.type==="title"&&t.title_details||t.type==="participant"&&t.participant_details)}function Qn(){return document.querySelector("[data-playpilot-link-injections]")||document.body}function v_(t,e){var o,c,u,f;if(e.popularity===null||e.popularity===void 0)return!0;const n=((c=(o=window.PlayPilotLinkInjections)==null?void 0:o.config)==null?void 0:c.participant_injection_popularity_threshold_use_article_average)??!0,a=((f=(u=window.PlayPilotLinkInjections)==null?void 0:u.config)==null?void 0:f.participant_injection_popularity_threshold)??0;if(a===0)return!0;if(!n)return e.popularity>=a;const s=t.filter(h=>h.type==="participant").reduce((h,{participant_details:d},g,{length:_})=>h+(d.popularity||0)/_,0);return e.popularity>=s*(a/100)}async function h_(){const t=Nn();if(!t)throw new Error("No token was provided");try{return await await en(`/domains/config?api-token=${t}`)||null}catch{return null}}me(["click"]);me(["input"]);me(["click"]);me(["click"]);me(["click"]);me(["mousedown","touchstart"]);me(["mousedown","touchstart"]);me(["click"]);me(["click"]);me(["click"]);me(["click"]);me(["click"]);me(["click"]);me(["click"]);function g_(t,e){ne(e,!0),at(()=>{if(!ai())return;const i=new IntersectionObserver(r=>{r.forEach(a=>{if(!a.isIntersecting)return;i.unobserve(a.target);const s=a.target.getAttribute(gn),o=e.linkInjections.find(u=>u.key===s),c=o==null?void 0:o.title_details;!s||!o||!c||n(c)})});return e.linkInjections.forEach(r=>{r.matchingElement&&i.observe(r.matchingElement)}),()=>i.disconnect()});function n({genres:i,participants:r,providers:a,title:s}){Kt(Ct.TitleInterest,{title:s,source:Pn.Link}),i.slice(0,3).forEach(o=>{var c;Kt(Ct.GenreInterest,{genre:(c=ha.find(u=>u.slug===o))==null?void 0:c.name,source:Pn.Link})}),r==null||r.slice(0,20).forEach(o=>{Kt(Ct.ParticipantInterest,{participant:o.name,source:Pn.Link})}),a==null||a.forEach(o=>{Kt(Ct.ProviderInterest,{provider:o.name,source:Pn.Link})})}ie()}function m_(t,e){ne(e,!1);const n=Array.from(document.querySelectorAll(pn)),i=[],r=Date.now();let a=!1,s=null;at(()=>{if(!fa())return o(),()=>{var h;return(h=s==null?void 0:s.disconnect)==null?void 0:h.call(s)}});function o(){s=new IntersectionObserver(c),n.forEach(h=>{s.observe(h)})}function c(h){h.forEach(d=>{if(!d.isIntersecting)return;const g=d.target.getAttribute(gn);g&&i.push(g),s.unobserve(d.target)})}function u(){const{scrollHeight:h,scrollTop:d,clientHeight:g}=document.documentElement;return d/(h-g)*100}function f(){var d,g;if(a||document.visibilityState!=="hidden")return;a=!0;const h=Date.now();ce(se.UserLeft,null,{time_start:r,time_end:h,time_spent:h-r,existing_injections_count:n.length,shown_injections_count:i.length,fired_events:((g=(d=window.PlayPilotLinkInjections)==null?void 0:d.tracked_events)==null?void 0:g.map(_=>_.event))||[],scroll_percentage:u()})}Sl(),Se("visibilitychange",Ie,f),ie()}function p_(t,e){ne(e,!0);const n=100;let i=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){a();return}if(!window.__tcfapi){i<n&&setTimeout(r,100),i++;return}window.__tcfapi("addEventListener",2,(s,o)=>{if(!o)return;const{purpose:c,eventStatus:u}=s;if(u!=="tcloaded"&&u!=="useractioncomplete")return;const f=h=>c.consents[h]===!0;bf({ads:f(1),pixels:f(1)&&f(7),split_tests:f(9)&&f(10),tracking:f(7)&&f(8),affiliate:f(1)&&f(7)}),a()})}function a(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ie()}var __=I('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),y_=I('<tr class="svelte-1tp7i1s"><td><span class="label"> </span></td><td><span class="data svelte-1tp7i1s"> </span></td></tr>'),w_=I('<table border="0" cellpadding="0" class="svelte-1tp7i1s"><tbody></tbody></table>'),b_=I('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),k_=I('<button class="svelte-1tp7i1s"></button>'),S_=I("<small>You are using the beta version of TPI</small>"),x_=I('<button class="svelte-1tp7i1s">Use beta script</button>'),P_=I('<button class="svelte-1tp7i1s">Toggle new explore</button>'),T_=I("<option> </option>"),E_=I('<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"/> <div class="form-group svelte-1tp7i1s"><label for="participant-threshold"><small>Participant use article average</small></label> <input id="participant-threshold" type="checkbox"/></div> <div class="form-group svelte-1tp7i1s"><small>Participant threshold</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <button class="svelte-1tp7i1s">Re-run AI</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 I_(t,e){var P;ne(e,!0);const n=["tpidebug","debugtpi"],i=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let a=K(Ee(h())),s=K(!1),o=null,c=K(184),u=K(Ee(((P=window.PlayPilotLinkInjections.config)==null?void 0:P.participant_injection_popularity_threshold_use_article_average)??!0)),f=B(()=>{var x;return((x=window.PlayPilotLinkInjections.config)==null?void 0:x.participant_injection_popularity_threshold)||(l(u)?50:1e3)});wr(()=>{o&&clearInterval(o)});function h(){var F,q,V,A,b,L;const x=window.PlayPilotLinkInjections,T=((F=x.evaluated_link_injections)==null?void 0:F.filter(O=>!O.failed))||[],j=((q=x.evaluated_link_injections)==null?void 0:q.filter(O=>O.failed))||[],R=[...T,...j].filter(O=>O.type==="participant"),M=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:x.domain_sid},{label:"Organization",data:x.organization_sid},{label:"HTML selector",data:x.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([O,Y])=>({label:O,data:Y})),[`Succesful injections (${T.length})`]:T.map(O=>({label:O.title,data:O.sentence})),[`Failed injections (${j.length})`]:j.map(O=>({label:O.title,data:`Reason: ${O.failed_message} | Sentence: ${O.sentence}`})),[`Participant popularity (${R.length})`]:R.map(O=>({label:O.participant_details.name,data:O.popularity||O.participant_details.popularity||"Not set"})),[`Fetched ads (${((V=x.ads)==null?void 0:V.length)||0})`]:(A=x.ads)==null?void 0:A.map(O=>({label:O.campaign_name,data:O})),[`Tracking events (${((b=x.tracked_events)==null?void 0:b.length)||0})`]:(L=x.tracked_events)==null?void 0:L.map(O=>({label:O.event,data:O.payload})),[`Visible pixels (${M.length})`]:M.map((O,Y)=>({label:Y+1,data:O.src}))}}function d(x){l(s)||(i.push(x.key),z(s,n.some(T=>i.slice(i.length-T.length,i.length).join("")===T),!0),o=setInterval(()=>z(a,h(),!0),200))}function g(x){window.PlayPilotLinkInjections.ads.unshift({campaign_format:x,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function _(x){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(Rl).forEach(({key:T,numberOfVariants:j})=>{const R=1/j;window.PlayPilotLinkInjections.split_test_identifiers[T]=Math.min(R*x,1)})}function m(){var j,R;const x=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!x)return;(R=(j=window.PlayPilotLinkInjections)==null?void 0:j.destroy)==null||R.call(j);const T=document.createElement("script");for(const M of x.attributes)T.setAttribute(M.name,M.value);T.getAttribute("onload")||T.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),T.src=x.src.replace("link-injection","link-injection@next"),x.insertAdjacentElement("afterend",T),x.remove()}var p=ge();Se("keydown",Ie,d);var w=J(p);{var k=x=>{var T=E_(),j=C(S(T),4);{var R=he=>{var je=__();y(he,je)},M=B(()=>{var he,je,$;return!!((he=window.PlayPilotLinkInjections.config)!=null&&he.exclude_urls_pattern&&Jn().match(($=(je=window.PlayPilotLinkInjections)==null?void 0:je.config)==null?void 0:$.exclude_urls_pattern))});U(j,he=>{l(M)&&he(R)})}var F=C(j,2);Me(F,17,()=>Object.entries(l(a)),De,(he,je)=>{var $=B(()=>Xn(l(je),2));let ve=()=>l($)[0],ke=()=>l($)[1];var Ce=b_(),Le=S(Ce),Ht=S(Le),gt=C(Le,2);{var rn=si=>{var qn=ge(),Ac=J(qn);{var Cc=ba=>{var Fl=w_(),Mc=S(Fl);Me(Mc,21,ke,De,(Dc,Hl,D_,j_)=>{let jc=()=>l(Hl).label,Rc=()=>l(Hl).data;var Bl=y_(),Vl=S(Bl),Oc=S(Vl),Nc=S(Oc),zc=C(Vl),qc=S(zc),Fc=S(qc);W(Hc=>{Q(Nc,jc()),Q(Fc,Hc)},[()=>JSON.stringify(Rc())]),y(Dc,Bl)}),y(ba,Fl)},Lc=B(()=>Array.isArray(ke()));U(Ac,ba=>{l(Lc)&&ba(Cc)})}y(si,qn)},Ic=si=>{var qn=rt("No data");y(si,qn)};U(gt,si=>{var qn;(qn=ke())!=null&&qn.length?si(rn):si(Ic,-1)})}W(()=>Q(Ht,ve())),y(he,Ce)});var q=C(F,4),V=C(q,2),A=C(V,6);Me(A,16,()=>({length:4}),De,(he,je,$)=>{var ve=k_();ve.textContent=$,re("click",ve,()=>_($)),y(he,ve)});var b=C(A,4),L=C(b,2),O=C(L,4),Y=C(S(O),2),N=C(O,2),H=C(S(N),2);ae(H,"min",0),ae(H,"step",1);var Z=C(H,2),G=S(Z),X=C(N,4),te=C(X,2),ye=C(te,2);{var le=he=>{var je=S_();y(he,je)},ue=he=>{var je=x_();re("click",je,m),y(he,je)};U(ye,he=>{r?he(le):he(ue,-1)})}var we=C(ye,2);{var be=he=>{var je=P_();re("click",je,()=>{Fr(),window.PlayPilotLinkInjections.config.explore_use_router=!ji(),qr()}),y(he,je)},Oe=B(()=>!ji());U(we,he=>{l(Oe)&&he(be)})}var Xe=C(we,4),lt=C(S(Xe),2);Fd(lt,window.PlayPilotLinkInjections.region);var qt=C(Xe,2),Ft=C(S(qt),2);Me(Ft,21,()=>Object.entries(v),De,(he,je)=>{var $=B(()=>Xn(l(je),2));let ve=()=>l($)[0],ke=()=>l($)[1];var Ce=T_(),Le=S(Ce),Ht={};W(gt=>{Os(Ce,gt),Q(Le,ve()),Ht!==(Ht=ke())&&(Ce.value=(Ce.__value=ke())??"")},[()=>ke()===br()]),y(he,Ce)});var tn=C(qt,4),$e=C(S(tn),2);ae($e,"min",80),ae($e,"max",240),ae($e,"step",8);var li=C($e,2),nn=S(li),oi=C(tn,4);W(()=>{ae(H,"max",l(u)?100:1e4),Q(G,l(f)),Q(nn,l(c))}),re("click",q,()=>g("card")),re("click",V,()=>g("top_scroll")),re("click",b,()=>console.log(tr(window.PlayPilotLinkInjections.config))),re("click",L,()=>console.log(tr(window.PlayPilotLinkInjections.config).pageText)),re("input",Y,he=>window.PlayPilotLinkInjections.config.participant_injection_popularity_threshold_use_article_average=he.target.checked),Bd(Y,()=>l(u),he=>z(u,he)),re("input",H,he=>window.PlayPilotLinkInjections.config.participant_injection_popularity_threshold=parseInt(he.target.value)),Mi(H,()=>l(f),he=>z(f,he)),re("click",X,function(...he){var je;(je=e.onrerender)==null||je.apply(this,he)}),re("click",te,he=>{confirm("You sure? Rerunning the AI will take some time, refresh whenever")&&(Zi({params:{run_ai:!0},method:"POST"}),he.target.disabled=!0)}),re("change",lt,he=>{Fr(),window.PlayPilotLinkInjections.region=he.target.value,qr()}),re("change",Ft,he=>{Fr(),window.PlayPilotLinkInjections.language=he.target.value,qr()}),re("input",$e,()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${l(c)}px`)),Mi($e,()=>l(c),he=>z(c,he)),re("click",oi,()=>z(s,!1)),y(x,T)};U(w,x=>{l(s)&&x(k)})}y(t,p),ie()}me(["click","input","change"]);function A_(t,e){ne(e,!0);const n=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),i=new Jr,r=.7,a="[data-playpilot-poster]";let s=K(0),o={},c=null;const u=B(()=>l(s)<Rn);wr(g);function f(){var P,x;if((x=(P=window.PlayPilotLinkInjections)==null?void 0:P.config)!=null&&x.disable_scroll_reveal_posters||!l(u))return;_();const m=window.innerHeight,p=new Jr,w=m*r,k=m-w;for(const T of n){const{top:j}=T.getBoundingClientRect();j<w&&j>k&&p.add(T)}for(const T of p){if(i.has(T))continue;const j=T.dataset.playpilotPosterUrl;j in o&&o[j]!==T||(h(T,j),i.add(T),o[j]=T)}}function h(m,p){const w=document.createElement("img");w.classList.add("playpilot-floating-poster"),w.dataset.playpilotPoster="",w.src=p,w.alt="",w.onload=()=>w.classList.add("loaded"),m.insertAdjacentElement("afterbegin",w)}function d(m){const p=m.querySelector(a);p&&(p.classList.add("animating-out"),setTimeout(()=>p.remove(),500))}function g(){for(const m of Array.from(document.querySelectorAll(a)))m.remove()}function _(){c&&clearTimeout(c),c=setTimeout(()=>{for(const m of i)d(m),i.delete(m),o={}},1e3)}Se("scroll",Ie,f),Di("innerWidth",m=>z(s,m,!0)),ie()}var C_=I("<!> <!>",1),L_=I('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!> <!>',1);function M_(t,e){ne(e,!0);let n=K(null),i=K(Ee(fa()));Ws();let r=K(!1),a=K(!0),s=K(!0),o=K(Ee([]));const c=B(()=>l(n)||{}),u=B(()=>Fa(l(c).ai_injections,()=>[],!0)),f=B(()=>Fa(l(c).manual_injections,()=>[],!0)),h=g();He(()=>{l(i)&&!l(a)&&_()}),qr(),wr(ql);async function d(){var b;if(Rr())return;await h,Ef(),ce(se.ArticlePageView);const A=(b=window.PlayPilotLinkInjections.config)==null?void 0:b.explore_navigation_path;!l(u).length&&!l(f).length&&!(A&&document.location.href.includes(A))||(window.PlayPilotLinkInjections.ads=await $s(),window.dispatchEvent(new CustomEvent("updateads",{bubbles:!0})))}async function g(){var A;z(a,!0);try{l(i)&&z(r,await Vs({throwError:!0}),!0)}catch{ce(se.AuthFailed)}try{const b=window.PlayPilotLinkInjections.config||await h_()||{};if(window.PlayPilotLinkInjections.config=b,b!=null&&b.custom_style&&p(b.custom_style||""),b!=null&&b.explore_navigation_selector&&Im(),b!=null&&b.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),b!=null&&b.domain_sid&&go({organizationSid:b.organization_sid,domainSid:b.domain_sid}),z(s,of(b),!0),l(s))return;b!=null&&b.html_selector&&(window.PlayPilotLinkInjections.selector=b==null?void 0:b.html_selector)}catch(b){ce(se.FetchingConfigFailed),console.error("TPI Config failed to fetch",b);return}try{if(await(async b=>{var L=Xn(b,1);z(n,L[0],!0)})(await Promise.all([await(window.PlayPilotLinkInjections.initial_link_injections_promise||so({maxTries:1,runAiWhenRelevant:!Rr()})),await kr()])),z(a,!1),!l(n)||(A=window.PlayPilotLinkInjections.config)!=null&&A.disable_public_injections&&!(l(i)&&l(r)))return;if(go({organizationSid:l(n).organization_sid,domainSid:l(n).domain_sid}),!l(n).ai_running||!l(n).ai_enabled){m({aiInjections:l(u),manualInjections:l(f)});return}if(!l(i)||Rr())return;z(n,await so({requireCompletedResult:!0,onpoll:b=>z(n,b,!0)}),!0),m({aiInjections:l(u),manualInjections:l(f)})}catch(b){console.error(b),ce(se.InjectionError,null,{message:b.message})}}function _(){m(s_(l(o)))}function m(A={aiInjections:l(u),manualInjections:l(f)}){const{elements:b}=tr(),L=e_(b,A);JSON.stringify(L)!==JSON.stringify(l(o))&&(z(o,L,!0),window.PlayPilotLinkInjections.evaluated_link_injections=L),l(i)||w(L)}function p(A){const b="playpilot-custom-style",L=document.getElementById(b),O=L||document.createElement("style");O.textContent=`body { ${A} }`,O.id=b,L||document.body.appendChild(O)}function w(A){const b=A.filter(O=>!O.failed),L=A.filter(O=>O.failed);if(b.length&&ce(se.ArticleInjected,null,{manual:b.filter(O=>O.manual).length,ai:b.filter(O=>!O.manual).length}),L.length){const O=Y=>L.filter(({failed_message:N})=>N==null?void 0:N.includes(Y)).length;ce(se.FailedInjectionsCount,null,{total:L.length,sentence_not_found:O("sentence was not found"),already_linked:O("already inside of a link"),broken_html:O("broken HTML"),duplicate:O("duplicate"),unknown:O("unknown reasons")})}}var k=L_(),P=J(k),x=S(P);U(x,A=>{});var T=C(x,2);I_(T,{onrerender:_});var j=C(P,2);{var R=A=>{Ml(A,{get pixels(){return l(n).pixels}})};U(j,A=>{var b,L;(L=(b=l(n))==null?void 0:b.pixels)!=null&&L.length&&A(R)})}var M=C(j,2);{var F=A=>{g_(A,{get linkInjections(){return l(o)}})};U(M,A=>{l(o).length&&A(F)})}var q=C(M,2);yr(q,()=>l(o),A=>{var b=C_(),L=J(b);m_(L,{});var O=C(L,2);A_(O,{}),y(A,b)});var V=C(q,2);p_(V,{onchange:d}),y(t,k),ie()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Dt(M_,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),ql()}};
11
11
 
12
12
  })();