@playpilot/tpi 8.39.0-beta.6 → 8.39.0
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/editorial.mount.js +2 -2
- package/dist/link-injections.js +2 -2
- package/dist/mount.js +2 -2
- package/package.json +1 -1
package/dist/editorial.mount.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
2
|
var fu=Object.defineProperty;var so=t=>{throw TypeError(t)};var vu=(t,e,n)=>e in t?fu(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var dt=(t,e,n)=>vu(t,typeof e!="symbol"?e+"":e,n),Da=(t,e,n)=>e.has(t)||so("Cannot "+n);var R=(t,e,n)=>(Da(t,e,"read from private field"),n?n.call(t):e.get(t)),_e=(t,e,n)=>e.has(t)?so("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),ke=(t,e,n,i)=>(Da(t,e,"write to private field"),i?i.call(t,n):e.set(t,n),n),Ce=(t,e,n)=>(Da(t,e,"access private method"),n);var bl=Array.isArray,hu=Array.prototype.indexOf,Mi=Array.prototype.includes,ya=Array.from,gu=Object.defineProperty,Dn=Object.getOwnPropertyDescriptor,Jo=Object.getOwnPropertyDescriptors,mu=Object.prototype,pu=Array.prototype,kl=Object.getPrototypeOf,co=Object.isExtensible;function hi(t){return typeof t=="function"}const St=()=>{};function _u(t){return typeof(t==null?void 0:t.then)=="function"}function yu(t){return t()}function Qa(t){for(var e=0;e<t.length;e++)t[e]()}function Qo(){var t,e,n=new Promise((i,r)=>{t=i,e=r});return{promise:n,resolve:t,reject:e}}function sr(t,e,n=!1){return t===void 0?n?e():e:t}function ai(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 ut=2,ji=4,Sr=8,xl=1<<24,Mt=16,Yt=32,Hn=64,Xa=128,jt=512,at=1024,st=2048,ln=4096,ht=8192,Dt=16384,Vn=32768,$a=1<<25,on=65536,$r=1<<17,Xo=1<<18,Ui=1<<19,$o=1<<20,tn=1<<25,li=65536,ea=1<<21,yi=1<<22,Rn=1<<23,an=Symbol("$state"),es=Symbol("legacy props"),wu=Symbol(""),zr=Symbol("attributes"),el=Symbol("class"),tl=Symbol("style"),tr=Symbol("text"),Fr=Symbol("form reset"),wa=new class extends Error{constructor(){super(...arguments);dt(this,"name","StaleReactionError");dt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};var Zo;const ba=!!((Zo=globalThis.document)!=null&&Zo.contentType)&&globalThis.document.contentType.includes("xml"),bu=11;function Sl(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ku(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function xu(t,e,n){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Su(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Pu(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Tu(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Eu(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Iu(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Au(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cu(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Lu(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Mu(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const ju=1,Du=2,ts=4,Ru=8,Ou=16,Nu=1,qu=2,Hu=4,zu=8,Fu=16,Bu=1,Vu=2,Wu=4,Uu=1,Gu=2,it=Symbol(),ns="http://www.w3.org/1999/xhtml",is="http://www.w3.org/2000/svg",Zu="http://www.w3.org/1998/Math/MathML",Ku="@attach";function Yu(){console.warn("https://svelte.dev/e/derived_inert")}function Ju(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Qu(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function rs(t){return t===this.v}function as(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function ls(t){return!as(t,this.v)}let Gi=!1;function Xu(){Gi=!0}let Ve=null;function Di(t){Ve=t}function cr(t){return os().get(t)}function Pr(t,e){return os().set(t,e),e}function re(t,e=!1,n){Ve={p:Ve,i:!1,c:null,e:null,s:t,x:null,r:Pe,l:Gi&&!e?{s:null,u:null,$:[]}:null}}function ae(t){var e=Ve,n=e.e;if(n!==null){e.e=null;for(var i of n)Ls(i)}return t!==void 0&&(e.x=t),e.i=!0,Ve=e.p,t??{}}function ui(){return!Gi||Ve!==null&&Ve.l===null}function os(t){return Ve===null&&Sl(),Ve.c??(Ve.c=new Map($u(Ve)||void 0))}function $u(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}let Zn=[];function ss(){var t=Zn;Zn=[],Qa(t)}function Zt(t){if(Zn.length===0&&!wi){var e=Zn;queueMicrotask(()=>{e===Zn&&ss()})}Zn.push(t)}function ed(){for(;Zn.length>0;)ss()}function cs(t){var e=Pe;if(e===null)return Me.f|=Rn,t;if(!(e.f&Vn)&&!(e.f&ji))throw t;Ln(t,e)}function Ln(t,e){for(;e!==null;){if(e.f&Xa){if(!(e.f&Vn))throw t;try{e.b.error(t);return}catch(n){t=n}}e=e.parent}throw t}const td=-7169;function Xe(t,e){t.f=t.f&td|e}function Pl(t){t.f&jt||t.deps===null?Xe(t,at):Xe(t,ln)}function us(t){if(t!==null)for(const e of t)!(e.f&ut)||!(e.f&li)||(e.f^=li,us(e.deps))}function ds(t,e,n){t.f&st?e.add(t):t.f&ln&&n.add(t),us(t.deps),Xe(t,at)}let Rr=!1;function nd(t){var e=Rr;try{return Rr=!1,[t(),Rr]}finally{Rr=e}}let Ra=null,vi=null,me=null,rr=null,ot=null,nl=null,wi=!1,Oa=!1,_i=null,Br=null;var uo=0;let id=1;var xi,Tn,Jn,Si,Pi,Qn,Ti,fn,gr,bt,mr,En,Xt,$t,Ei,Ii,Ne,il,nr,rl,fs,vs,Vr,rd,al,gi;const fa=class fa{constructor(){_e(this,Ne);dt(this,"id",id++);_e(this,xi,!1);dt(this,"linked",!0);_e(this,Tn,null);_e(this,Jn,null);dt(this,"async_deriveds",new Map);dt(this,"current",new Map);dt(this,"previous",new Map);dt(this,"unblocked",new Set);_e(this,Si,new Set);_e(this,Pi,new Set);_e(this,Qn,new Set);_e(this,Ti,0);_e(this,fn,new Map);_e(this,gr,null);_e(this,bt,[]);_e(this,mr,[]);_e(this,En,new Set);_e(this,Xt,new Set);_e(this,$t,new Map);_e(this,Ei,new Set);dt(this,"is_fork",!1);_e(this,Ii,!1)}skip_effect(e){R(this,$t).has(e)||R(this,$t).set(e,{d:[],m:[]}),R(this,Ei).delete(e)}unskip_effect(e,n=i=>this.schedule(i)){var i=R(this,$t).get(e);if(i){R(this,$t).delete(e);for(var r of i.d)Xe(r,st),n(r);for(r of i.m)Xe(r,ln),n(r)}R(this,Ei).add(e)}capture(e,n,i=!1){e.v!==it&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&Rn||(this.current.set(e,[n,i]),ot==null||ot.set(e,n)),this.is_fork||(e.v=n)}activate(){me=this}deactivate(){me=null,ot=null}flush(){try{Oa=!0,me=this,Ce(this,Ne,nr).call(this)}finally{uo=0,nl=null,_i=null,Br=null,Oa=!1,me=null,ot=null,ti.clear()}}discard(){for(const e of R(this,Pi))e(this);R(this,Pi).clear(),R(this,Qn).clear(),Ce(this,Ne,gi).call(this)}register_created_effect(e){R(this,mr).push(e)}increment(e,n){if(ke(this,Ti,R(this,Ti)+1),e){let i=R(this,fn).get(n)??0;R(this,fn).set(n,i+1)}}decrement(e,n){if(ke(this,Ti,R(this,Ti)-1),e){let i=R(this,fn).get(n)??0;i===1?R(this,fn).delete(n):R(this,fn).set(n,i-1)}R(this,Ii)||(ke(this,Ii,!0),Zt(()=>{ke(this,Ii,!1),this.linked&&this.flush()}))}transfer_effects(e,n){for(const i of e)R(this,En).add(i);for(const i of n)R(this,Xt).add(i);e.clear(),n.clear()}oncommit(e){R(this,Si).add(e)}ondiscard(e){R(this,Pi).add(e)}on_fork_commit(e){R(this,Qn).add(e)}run_fork_commit_callbacks(){for(const e of R(this,Qn))e(this);R(this,Qn).clear()}settled(){return(R(this,gr)??ke(this,gr,Qo())).promise}static ensure(){var e;if(me===null){const n=me=new fa;Ce(e=n,Ne,al).call(e),!Oa&&!wi&&Zt(()=>{R(n,xi)||n.flush()})}return me}apply(){{ot=null;return}}schedule(e){var r;if(nl=e,(r=e.b)!=null&&r.is_pending&&e.f&(ji|Sr|xl)&&!(e.f&Vn)){e.b.defer_effect(e);return}for(var n=e;n.parent!==null;){n=n.parent;var i=n.f;if(_i!==null&&n===Pe&&(Me===null||!(Me.f&ut)))return;if(i&(Hn|Yt)){if(!(i&at))return;n.f^=at}}R(this,bt).push(n)}};xi=new WeakMap,Tn=new WeakMap,Jn=new WeakMap,Si=new WeakMap,Pi=new WeakMap,Qn=new WeakMap,Ti=new WeakMap,fn=new WeakMap,gr=new WeakMap,bt=new WeakMap,mr=new WeakMap,En=new WeakMap,Xt=new WeakMap,$t=new WeakMap,Ei=new WeakMap,Ii=new WeakMap,Ne=new WeakSet,il=function(){if(this.is_fork)return!0;for(const i of R(this,fn).keys()){for(var e=i,n=!1;e.parent!==null;){if(R(this,$t).has(e)){n=!0;break}e=e.parent}if(!n)return!0}return!1},nr=function(){var c,u,f,v;if(ke(this,xi,!0),uo++>1e3&&(Ce(this,Ne,gi).call(this),ad()),!Ce(this,Ne,il).call(this)){for(const d of R(this,En))R(this,Xt).delete(d),Xe(d,st),this.schedule(d);for(const d of R(this,Xt))Xe(d,ln),this.schedule(d)}const e=R(this,bt);ke(this,bt,[]),this.apply();var n=_i=[],i=[],r=Br=[];for(const d of e)try{Ce(this,Ne,rl).call(this,d,n,i)}catch(_){throw ps(d),_}if(me=null,r.length>0){var l=fa.ensure();for(const d of r)l.schedule(d)}if(_i=null,Br=null,Ce(this,Ne,il).call(this)){Ce(this,Ne,Vr).call(this,i),Ce(this,Ne,Vr).call(this,n);for(const[d,_]of R(this,$t))ms(d,_);r.length>0&&Ce(c=me,Ne,nr).call(c);return}const o=Ce(this,Ne,fs).call(this);if(o){Ce(u=o,Ne,vs).call(u,this);return}R(this,En).clear(),R(this,Xt).clear();for(const d of R(this,Si))d(this);R(this,Si).clear(),rr=this,fo(i),fo(n),rr=null,(f=R(this,gr))==null||f.resolve();var s=me;if(this.linked&&R(this,Ti)===0&&Ce(this,Ne,gi).call(this),R(this,bt).length>0){s===null&&(s=this,Ce(this,Ne,al).call(this));const d=s;R(d,bt).push(...R(this,bt).filter(_=>!R(d,bt).includes(_)))}s!==null&&Ce(v=s,Ne,nr).call(v)},rl=function(e,n,i){e.f^=at;for(var r=e.first;r!==null;){var l=r.f,o=(l&(Yt|Hn))!==0,s=o&&(l&at)!==0,c=s||(l&ht)!==0||R(this,$t).has(r);if(!c&&r.fn!==null){o?r.f^=at:l&ji?n.push(r):Ar(r)&&(l&Mt&&R(this,Xt).add(r),Oi(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}}},fs=function(){for(var e=R(this,Tn);e!==null;){if(!e.is_fork){for(const[n,[,i]]of this.current)if(e.current.has(n)&&!i)return e}e=R(e,Tn)}return null},vs=function(e){var i;for(const[r,l]of e.current)!this.previous.has(r)&&e.previous.has(r)&&this.previous.set(r,e.previous.get(r)),this.current.set(r,l);for(const[r,l]of e.async_deriveds){const o=this.async_deriveds.get(r);o&&l.promise.then(o.resolve)}const n=r=>{var l=r.reactions;if(l!==null)for(const c of l){var o=c.f;if(o&ut)n(c);else{var s=c;o&(yi|Mt)&&!this.async_deriveds.has(s)&&(R(this,Xt).delete(s),Xe(s,st),this.schedule(s))}}};for(const r of this.current.keys())n(r);this.oncommit(()=>e.discard()),Ce(i=e,Ne,gi).call(i),me=this,Ce(this,Ne,nr).call(this)},Vr=function(e){for(var n=0;n<e.length;n+=1)ds(e[n],R(this,En),R(this,Xt))},rd=function(){var f;Ce(this,Ne,gi).call(this);for(let v=Ra;v!==null;v=R(v,Jn)){var e=v.id<this.id,n=[];for(const[d,[_,g]]of this.current){if(v.current.has(d)){var i=v.current.get(d)[0];if(e&&_!==i)v.current.set(d,[_,g]);else continue}n.push(d)}if(e)for(const[d,_]of this.async_deriveds){const g=v.async_deriveds.get(d);g&&_.promise.then(g.resolve)}if(R(v,xi)){var r=[...v.current.keys()].filter(d=>!this.current.has(d));if(r.length===0)e&&v.discard();else if(n.length>0){if(e)for(const d of R(this,Ei))v.unskip_effect(d,_=>{var g;_.f&(Mt|yi)?v.schedule(_):Ce(g=v,Ne,Vr).call(g,[_])});v.activate();var l=new Set,o=new Map;for(var s of n)gs(s,r,l,o);o=new Map;var c=[...v.current.keys()].filter(d=>this.current.has(d)?this.current.get(d)[0]!==d.v:!0);if(c.length>0)for(const d of R(this,mr))!(d.f&(Dt|ht|$r))&&Tl(d,c,o)&&(d.f&(yi|Mt)?(Xe(d,st),v.schedule(d)):R(v,En).add(d));if(R(v,bt).length>0){v.apply();for(var u of R(v,bt))Ce(f=v,Ne,rl).call(f,u,[],[]);ke(v,bt,[])}v.deactivate()}}}},al=function(){vi===null?Ra=vi=this:(ke(vi,Jn,this),ke(this,Tn,vi)),vi=this},gi=function(){var e=R(this,Tn),n=R(this,Jn);e===null?Ra=n:ke(e,Jn,n),n===null?vi=e:ke(n,Tn,e),this.linked=!1};let zn=fa;function hs(t){var e=wi;wi=!0;try{for(var n;;){if(ed(),me===null)return n;me.flush()}}finally{wi=e}}function ad(){try{Eu()}catch(t){Ln(t,nl)}}let Bt=null;function fo(t){var e=t.length;if(e!==0){for(var n=0;n<e;){var i=t[n++];if(!(i.f&(Dt|ht))&&Ar(i)&&(Bt=new Set,Oi(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&Rs(i),(Bt==null?void 0:Bt.size)>0)){ti.clear();for(const r of Bt){if(r.f&(Dt|ht))continue;const l=[r];let o=r.parent;for(;o!==null;)Bt.has(o)&&(Bt.delete(o),l.push(o)),o=o.parent;for(let s=l.length-1;s>=0;s--){const c=l[s];c.f&(Dt|ht)||Oi(c)}}Bt.clear()}}Bt=null}}function gs(t,e,n,i){if(!n.has(t)&&(n.add(t),t.reactions!==null))for(const r of t.reactions){const l=r.f;l&ut?gs(r,e,n,i):l&(yi|Mt)&&!(l&st)&&Tl(r,e,i)&&(Xe(r,st),El(r))}}function Tl(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(Mi.call(e,r))return!0;if(r.f&ut&&Tl(r,e,n))return n.set(r,!0),!0}return n.set(t,!1),!1}function El(t){me.schedule(t)}function ms(t,e){if(!(t.f&Yt&&t.f&at)){t.f&st?e.d.push(t):t.f&ln&&e.m.push(t),Xe(t,at);for(var n=t.first;n!==null;)ms(n,e),n=n.next}}function ps(t){Xe(t,at);for(var e=t.first;e!==null;)ps(e),e=e.next}function _s(t){let e=0,n=sn(0),i;return()=>{Ll()&&(a(n),Ir(()=>(e===0&&(i=Pt(()=>t(()=>On(n)))),e+=1,()=>{Zt(()=>{e-=1,e===0&&(i==null||i(),i=void 0,On(n))})})))}}var ld=on|Ui;function Il(t,e,n,i){new od(t,e,n,i)}var At,wl,Ct,Xn,mt,Lt,ft,kt,vn,$n,In,Ai,pr,_r,hn,va,et,sd,cd,ud,ll,Wr,Ur,ol,sl;class od{constructor(e,n,i,r){_e(this,et);dt(this,"parent");dt(this,"is_pending",!1);dt(this,"transform_error");_e(this,At);_e(this,wl,null);_e(this,Ct);_e(this,Xn);_e(this,mt);_e(this,Lt,null);_e(this,ft,null);_e(this,kt,null);_e(this,vn,null);_e(this,$n,0);_e(this,In,0);_e(this,Ai,!1);_e(this,pr,new Set);_e(this,_r,new Set);_e(this,hn,null);_e(this,va,_s(()=>(ke(this,hn,sn(R(this,$n))),()=>{ke(this,hn,null)})));var l;ke(this,At,e),ke(this,Ct,n),ke(this,Xn,o=>{var s=Pe;s.b=this,s.f|=Xa,i(o)}),this.parent=Pe.b,this.transform_error=r??((l=this.parent)==null?void 0:l.transform_error)??(o=>o),ke(this,mt,xn(()=>{Ce(this,et,ll).call(this)},ld))}defer_effect(e){ds(e,R(this,pr),R(this,_r))}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!R(this,Ct).pending}update_pending_count(e,n){Ce(this,et,ol).call(this,e,n),ke(this,$n,R(this,$n)+e),!(!R(this,hn)||R(this,Ai))&&(ke(this,Ai,!0),Zt(()=>{ke(this,Ai,!1),R(this,hn)&&mn(R(this,hn),R(this,$n))}))}get_effect_pending(){return R(this,va).call(this),a(R(this,hn))}error(e){if(!R(this,Ct).onerror&&!R(this,Ct).failed)throw e;me!=null&&me.is_fork?(R(this,Lt)&&me.skip_effect(R(this,Lt)),R(this,ft)&&me.skip_effect(R(this,ft)),R(this,kt)&&me.skip_effect(R(this,kt)),me.on_fork_commit(()=>{Ce(this,et,sl).call(this,e)})):Ce(this,et,sl).call(this,e)}}At=new WeakMap,wl=new WeakMap,Ct=new WeakMap,Xn=new WeakMap,mt=new WeakMap,Lt=new WeakMap,ft=new WeakMap,kt=new WeakMap,vn=new WeakMap,$n=new WeakMap,In=new WeakMap,Ai=new WeakMap,pr=new WeakMap,_r=new WeakMap,hn=new WeakMap,va=new WeakMap,et=new WeakSet,sd=function(){try{ke(this,Lt,vt(()=>R(this,Xn).call(this,R(this,At))))}catch(e){this.error(e)}},cd=function(e){const n=R(this,Ct).failed;n&&ke(this,kt,vt(()=>{n(R(this,At),()=>e,()=>()=>{})}))},ud=function(){const e=R(this,Ct).pending;e&&(this.is_pending=!0,ke(this,ft,vt(()=>e(R(this,At)))),Zt(()=>{var n=ke(this,vn,document.createDocumentFragment()),i=Kt();n.append(i),ke(this,Lt,Ce(this,et,Ur).call(this,()=>vt(()=>R(this,Xn).call(this,i)))),R(this,In)===0&&(R(this,At).before(n),ke(this,vn,null),ni(R(this,ft),()=>{ke(this,ft,null)}),Ce(this,et,Wr).call(this,me))}))},ll=function(){try{if(this.is_pending=this.has_pending_snippet(),ke(this,In,0),ke(this,$n,0),ke(this,Lt,vt(()=>{R(this,Xn).call(this,R(this,At))})),R(this,In)>0){var e=ke(this,vn,document.createDocumentFragment());Dl(R(this,Lt),e);const n=R(this,Ct).pending;ke(this,ft,vt(()=>n(R(this,At))))}else Ce(this,et,Wr).call(this,me)}catch(n){this.error(n)}},Wr=function(e){this.is_pending=!1,e.transfer_effects(R(this,pr),R(this,_r))},Ur=function(e){var n=Pe,i=Me,r=Ve;cn(R(this,mt)),qt(R(this,mt)),Di(R(this,mt).ctx);try{return zn.ensure(),e()}catch(l){return cs(l),null}finally{cn(n),qt(i),Di(r)}},ol=function(e,n){var i;if(!this.has_pending_snippet()){this.parent&&Ce(i=this.parent,et,ol).call(i,e,n);return}ke(this,In,R(this,In)+e),R(this,In)===0&&(Ce(this,et,Wr).call(this,n),R(this,ft)&&ni(R(this,ft),()=>{ke(this,ft,null)}),R(this,vn)&&(R(this,At).before(R(this,vn)),ke(this,vn,null)))},sl=function(e){R(this,Lt)&&(ct(R(this,Lt)),ke(this,Lt,null)),R(this,ft)&&(ct(R(this,ft)),ke(this,ft,null)),R(this,kt)&&(ct(R(this,kt)),ke(this,kt,null));var n=R(this,Ct).onerror;let i=R(this,Ct).failed;var r=!1,l=!1;const o=()=>{if(r){Qu();return}r=!0,l&&Mu(),R(this,kt)!==null&&ni(R(this,kt),()=>{ke(this,kt,null)}),Ce(this,et,Ur).call(this,()=>{Ce(this,et,ll).call(this)})},s=c=>{try{l=!0,n==null||n(c,o),l=!1}catch(u){Ln(u,R(this,mt)&&R(this,mt).parent)}i&&ke(this,kt,Ce(this,et,Ur).call(this,()=>{try{return vt(()=>{var u=Pe;u.b=this,u.f|=Xa,i(R(this,At),()=>c,()=>o)})}catch(u){return Ln(u,R(this,mt).parent),null}}))};Zt(()=>{var c;try{c=this.transform_error(e)}catch(u){Ln(u,R(this,mt)&&R(this,mt).parent);return}c!==null&&typeof c=="object"&&typeof c.then=="function"?c.then(s,u=>Ln(u,R(this,mt)&&R(this,mt).parent)):s(c)})};function ys(t,e,n,i){const r=ui()?Ri:ka;var l=t.filter(d=>!d.settled);if(n.length===0&&l.length===0){i(e.map(r));return}var o=Pe,s=ws(),c=l.length===1?l[0].promise:l.length>1?Promise.all(l.map(d=>d.promise)):null;function u(d){if(!(o.f&Dt)){s();try{i(d)}catch(_){Ln(_,o)}ur()}}var f=bs();if(n.length===0){c.then(()=>u(e.map(r))).finally(f);return}function v(){Promise.all(n.map(d=>dd(d))).then(d=>u([...e.map(r),...d])).catch(d=>Ln(d,o)).finally(f)}c?c.then(()=>{s(),v(),ur()}):v()}function ws(){var t=Pe,e=Me,n=Ve,i=me;return function(l=!0){cn(t),qt(e),Di(n),l&&!(t.f&Dt)&&(i==null||i.activate(),i==null||i.apply())}}function ur(t=!0){cn(null),qt(null),Di(null),t&&(me==null||me.deactivate())}function bs(){var t=Pe,e=t.b,n=me,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 Ri(t){var e=ut|st;return Pe!==null&&(Pe.f|=Ui),{ctx:Ve,deps:null,effects:null,equals:rs,f:e,fn:t,reactions:null,rv:0,v:it,wv:0,parent:Pe,ac:null}}const Or=Symbol("obsolete");function dd(t,e,n){let i=Pe;i===null&&ku();var r=void 0,l=sn(it),o=!Me,s=new Set;return Pd(()=>{var _;var c=Pe,u=Qo();r=u.promise;try{Promise.resolve(t()).then(u.resolve,g=>{g!==wa&&u.reject(g)}).finally(ur)}catch(g){u.reject(g),ur()}var f=me;if(o){if(c.f&Vn)var v=bs();if(i.b.is_rendered())(_=f.async_deriveds.get(c))==null||_.reject(Or);else for(const g of s.values())g.reject(Or);s.add(u),f.async_deriveds.set(c,u)}const d=(g,m=void 0)=>{v==null||v(),s.delete(u),m!==Or&&(f.activate(),m?(l.f|=Rn,mn(l,m)):(l.f&Rn&&(l.f^=Rn),mn(l,g)),f.deactivate())};u.promise.then(d,g=>d(null,g||"unknown"))}),Er(()=>{for(const c of s)c.reject(Or)}),new Promise(c=>{function u(f){function v(){f===r?c(l):u(r)}f.then(v,v)}u(r)})}function F(t){const e=Ri(t);return qs(e),e}function ka(t){const e=Ri(t);return e.equals=ls,e}function fd(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)ct(e[n])}}function Al(t){var e,n=Pe,i=t.parent;if(!_n&&i!==null&&i.f&(Dt|ht))return Yu(),t.v;cn(i);try{t.f&=~li,fd(t),e=Bs(t)}finally{cn(n)}return e}function ks(t){var e=Al(t);if(!t.equals(e)&&(t.wv=zs(),(!(me!=null&&me.is_fork)||t.deps===null)&&(me!==null?(me.capture(t,e,!0),rr==null||rr.capture(t,e,!0)):t.v=e,t.deps===null))){Xe(t,at);return}_n||(ot!==null?(Ll()||me!=null&&me.is_fork)&&ot.set(t,e):Pl(t))}function vd(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(wa),i.teardown=St,i.ac=null,dr(i,0),Ml(i))}function xs(t){if(t.effects!==null)for(const e of t.effects)e.teardown&&Oi(e)}let ta=new Set;const ti=new Map;let Ss=!1;function sn(t,e){var n={f:0,v:t,reactions:null,equals:rs,rv:0,wv:0};return n}function K(t,e){const n=sn(t);return qs(n),n}function cl(t,e=!1,n=!0){var r;const i=sn(t);return e||(i.equals=ls),Gi&&n&&Ve!==null&&Ve.l!==null&&((r=Ve.l).s??(r.s=[])).push(i),i}function D(t,e,n=!1){Me!==null&&(!Ut||Me.f&$r)&&ui()&&Me.f&(ut|Mt|yi|$r)&&(Rt===null||!Mi.call(Rt,t))&&Lu();let i=n?Re(e):e;return mn(t,i,Br)}function mn(t,e,n=null){if(!t.equals(e)){ti.set(t,_n?e:t.v);var i=zn.ensure();if(i.capture(t,e),t.f&ut){const r=t;t.f&st&&Al(r),ot===null&&Pl(r)}t.wv=zs(),Ps(t,st,n),ui()&&Pe!==null&&Pe.f&at&&!(Pe.f&(Yt|Hn))&&(It===null?Ed([t]):It.push(t)),!i.is_fork&&ta.size>0&&!Ss&&hd()}return e}function hd(){Ss=!1;for(const t of ta){t.f&at&&Xe(t,ln);let e;try{e=Ar(t)}catch{e=!0}e&&Oi(t)}ta.clear()}function gd(t,e=1){var n=a(t),i=e===1?n++:n--;return D(t,n),i}function On(t){D(t,t.v+1)}function Ps(t,e,n){var i=t.reactions;if(i!==null)for(var r=ui(),l=i.length,o=0;o<l;o++){var s=i[o],c=s.f;if(!(!r&&s===Pe)){var u=(c&st)===0;if(u&&Xe(s,e),c&$r)ta.add(s);else if(c&ut){var f=s;ot==null||ot.delete(f),c&li||(c&jt&&(Pe===null||!(Pe.f&ea))&&(s.f|=li),Ps(f,ln,n))}else if(u){var v=s;c&Mt&&Bt!==null&&Bt.add(v),n!==null?n.push(v):El(v)}}}}function Re(t){if(typeof t!="object"||t===null||an in t)return t;const e=kl(t);if(e!==mu&&e!==pu)return t;var n=new Map,i=bl(t),r=K(0),l=pn,o=s=>{if(pn===l)return s();var c=Me,u=pn;qt(null),mo(l);var f=s();return qt(c),mo(u),f};return i&&n.set("length",K(t.length)),new Proxy(t,{defineProperty(s,c,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Au();var f=n.get(c);return f===void 0?o(()=>{var v=K(u.value);return n.set(c,v),v}):D(f,u.value,!0),!0},deleteProperty(s,c){var u=n.get(c);if(u===void 0){if(c in s){const f=o(()=>K(it));n.set(c,f),On(r)}}else D(u,it),On(r);return!0},get(s,c,u){var _;if(c===an)return t;var f=n.get(c),v=c in s;if(f===void 0&&(!v||(_=Dn(s,c))!=null&&_.writable)&&(f=o(()=>{var g=Re(v?s[c]:it),m=K(g);return m}),n.set(c,f)),f!==void 0){var d=a(f);return d===it?void 0:d}return Reflect.get(s,c,u)},getOwnPropertyDescriptor(s,c){var u=Reflect.getOwnPropertyDescriptor(s,c);if(u&&"value"in u){var f=n.get(c);f&&(u.value=a(f))}else if(u===void 0){var v=n.get(c),d=v==null?void 0:v.v;if(v!==void 0&&d!==it)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return u},has(s,c){var d;if(c===an)return!0;var u=n.get(c),f=u!==void 0&&u.v!==it||Reflect.has(s,c);if(u!==void 0||Pe!==null&&(!f||(d=Dn(s,c))!=null&&d.writable)){u===void 0&&(u=o(()=>{var _=f?Re(s[c]):it,g=K(_);return g}),n.set(c,u));var v=a(u);if(v===it)return!1}return f},set(s,c,u,f){var E;var v=n.get(c),d=c in s;if(i&&c==="length")for(var _=u;_<v.v;_+=1){var g=n.get(_+"");g!==void 0?D(g,it):_ in s&&(g=o(()=>K(it)),n.set(_+"",g))}if(v===void 0)(!d||(E=Dn(s,c))!=null&&E.writable)&&(v=o(()=>K(void 0)),D(v,Re(u)),n.set(c,v));else{d=v.v!==it;var m=o(()=>Re(u));D(v,m)}var h=Reflect.getOwnPropertyDescriptor(s,c);if(h!=null&&h.set&&h.set.call(f,u),!d){if(i&&typeof c=="string"){var w=n.get("length"),k=Number(c);Number.isInteger(k)&&k>=w.v&&D(w,k+1)}On(r)}return!0},ownKeys(s){a(r);var c=Reflect.ownKeys(s).filter(v=>{var d=n.get(v);return d===void 0||d.v!==it});for(var[u,f]of n)f.v!==it&&!(u in s)&&c.push(u);return c},setPrototypeOf(){Cu()}})}function vo(t){try{if(t!==null&&typeof t=="object"&&an in t)return t[an]}catch{}return t}function md(t,e){return Object.is(vo(t),vo(e))}var Ie,Ts,Es,Is;function pd(){if(Ie===void 0){Ie=window,Ts=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Es=Dn(e,"firstChild").get,Is=Dn(e,"nextSibling").get,co(t)&&(t[el]=void 0,t[zr]=null,t[tl]=void 0,t.__e=void 0),co(n)&&(n[tr]=void 0)}}function Kt(t=""){return document.createTextNode(t)}function nn(t){return Es.call(t)}function Tr(t){return Is.call(t)}function b(t,e){return nn(t)}function X(t,e=!1){{var n=nn(t);return n instanceof Comment&&n.data===""?Tr(n):n}}function S(t,e=1,n=!1){let i=t;for(;e--;)i=Tr(i);return i}function _d(t){t.textContent=""}function As(){return!1}function xa(t,e,n){return document.createElementNS(e??ns,t,void 0)}function yd(t,e){if(e){const n=document.body;t.autofocus=!0,Zt(()=>{document.activeElement===n&&t.focus()})}}let ho=!1;function wd(){ho||(ho=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const n of t.target.elements)(e=n[Fr])==null||e.call(n)})},{capture:!0}))}function bd(t,e,n,i=!0){i&&n();for(var r of e)t.addEventListener(r,n);Er(()=>{for(var l of e)t.removeEventListener(l,n)})}function di(t){var e=Me,n=Pe;qt(null),cn(null);try{return t()}finally{qt(e),cn(n)}}function Cl(t,e,n,i=n){t.addEventListener(e,()=>di(n));const r=t[Fr];r?t[Fr]=()=>{r(),i(!0)}:t[Fr]=()=>i(!0),wd()}function Cs(t){Pe===null&&(Me===null&&Tu(),Pu()),_n&&Su()}function kd(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function Jt(t,e){var n=Pe;n!==null&&n.f&ht&&(t|=ht);var i={ctx:Ve,deps:null,nodes:null,f:t|st|jt,first:null,fn:e,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};me==null||me.register_created_effect(i);var r=i;if(t&ji)_i!==null?_i.push(i):zn.ensure().schedule(i);else if(e!==null){try{Oi(i)}catch(o){throw ct(i),o}r.deps===null&&r.teardown===null&&r.nodes===null&&r.first===r.last&&!(r.f&Ui)&&(r=r.first,t&Mt&&t&on&&r!==null&&(r.f|=on))}if(r!==null&&(r.parent=n,n!==null&&kd(r,n),Me!==null&&Me.f&ut&&!(t&Hn))){var l=Me;(l.effects??(l.effects=[])).push(r)}return i}function Ll(){return Me!==null&&!Ut}function Er(t){const e=Jt(Sr,null);return Xe(e,at),e.teardown=t,e}function Qe(t){Cs();var e=Pe.f,n=!Me&&(e&Yt)!==0&&(e&Vn)===0;if(n){var i=Ve;(i.e??(i.e=[])).push(t)}else return Ls(t)}function Ls(t){return Jt(ji|$o,t)}function xd(t){return Cs(),Jt(Sr|$o,t)}function Sd(t){zn.ensure();const e=Jt(Hn|Ui,t);return(n={})=>new Promise(i=>{n.outro?ni(e,()=>{ct(e),i(void 0)}):(ct(e),i(void 0))})}function Wn(t){return Jt(ji,t)}function Pd(t){return Jt(yi|Ui,t)}function Ir(t,e=0){return Jt(Sr|e,t)}function W(t,e=[],n=[],i=[]){ys(i,e,n,r=>{Jt(Sr,()=>t(...r.map(a)))})}function xn(t,e=0){var n=Jt(Mt|e,t);return n}function Ms(t,e=0){var n=Jt(xl|e,t);return n}function vt(t){return Jt(Yt|Ui,t)}function js(t){var e=t.teardown;if(e!==null){const n=_n,i=Me;go(!0),qt(null);try{e.call(null)}finally{go(n),qt(i)}}}function Ml(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){const r=n.ac;r!==null&&di(()=>{r.abort(wa)});var i=n.next;n.f&Hn?n.parent=null:ct(n,e),n=i}}function Td(t){for(var e=t.first;e!==null;){var n=e.next;e.f&Yt||ct(e),e=n}}function ct(t,e=!0){var n=!1;(e||t.f&Xo)&&t.nodes!==null&&t.nodes.end!==null&&(Ds(t.nodes.start,t.nodes.end),n=!0),Xe(t,$a),Ml(t,e&&!n),dr(t,0);var i=t.nodes&&t.nodes.t;if(i!==null)for(const l of i)l.stop();js(t),t.f^=$a,t.f|=Dt;var r=t.parent;r!==null&&r.first!==null&&Rs(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes=t.ac=t.b=null}function Ds(t,e){for(;t!==null;){var n=t===e?null:Tr(t);t.remove(),t=n}}function Rs(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 ni(t,e,n=!0){var i=[];Os(t,i,!0);var r=()=>{n&&ct(t),e&&e()},l=i.length;if(l>0){var o=()=>--l||r();for(var s of i)s.out(o)}else r()}function Os(t,e,n){if(!(t.f&ht)){t.f^=ht;var i=t.nodes&&t.nodes.t;if(i!==null)for(const s of i)(s.is_global||n)&&e.push(s);for(var r=t.first;r!==null;){var l=r.next;if(!(r.f&Hn)){var o=(r.f&on)!==0||(r.f&Yt)!==0&&(t.f&Mt)!==0;Os(r,e,o?n:!1)}r=l}}}function jl(t){Ns(t,!0)}function Ns(t,e){if(t.f&ht){t.f^=ht,t.f&at||(Xe(t,st),zn.ensure().schedule(t));for(var n=t.first;n!==null;){var i=n.next,r=(n.f&on)!==0||(n.f&Yt)!==0;Ns(n,r?e:!1),n=i}var l=t.nodes&&t.nodes.t;if(l!==null)for(const o of l)(o.is_global||e)&&o.in()}}function Dl(t,e){if(t.nodes)for(var n=t.nodes.start,i=t.nodes.end;n!==null;){var r=n===i?null:Tr(n);e.append(n),n=r}}let Gr=!1,_n=!1;function go(t){_n=t}let Me=null,Ut=!1;function qt(t){Me=t}let Pe=null;function cn(t){Pe=t}let Rt=null;function qs(t){Me!==null&&(Rt===null?Rt=[t]:Rt.push(t))}let pt=null,wt=0,It=null;function Ed(t){It=t}let Hs=1,Kn=0,pn=Kn;function mo(t){pn=t}function zs(){return++Hs}function Ar(t){var e=t.f;if(e&st)return!0;if(e&ut&&(t.f&=~li),e&ln){for(var n=t.deps,i=n.length,r=0;r<i;r++){var l=n[r];if(Ar(l)&&ks(l),l.wv>t.wv)return!0}e&jt&&ot===null&&Xe(t,at)}return!1}function Fs(t,e,n=!0){var i=t.reactions;if(i!==null&&!(Rt!==null&&Mi.call(Rt,t)))for(var r=0;r<i.length;r++){var l=i[r];l.f&ut?Fs(l,e,!1):e===l&&(n?Xe(l,st):l.f&at&&Xe(l,ln),El(l))}}function Bs(t){var m;var e=pt,n=wt,i=It,r=Me,l=Rt,o=Ve,s=Ut,c=pn,u=t.f;pt=null,wt=0,It=null,Me=u&(Yt|Hn)?null:t,Rt=null,Di(t.ctx),Ut=!1,pn=++Kn,t.ac!==null&&(di(()=>{t.ac.abort(wa)}),t.ac=null);try{t.f|=ea;var f=t.fn,v=f();t.f|=Vn;var d=t.deps,_=me==null?void 0:me.is_fork;if(pt!==null){var g;if(_||dr(t,wt),d!==null&&wt>0)for(d.length=wt+pt.length,g=0;g<pt.length;g++)d[wt+g]=pt[g];else t.deps=d=pt;if(Ll()&&t.f&jt)for(g=wt;g<d.length;g++)((m=d[g]).reactions??(m.reactions=[])).push(t)}else!_&&d!==null&&wt<d.length&&(dr(t,wt),d.length=wt);if(ui()&&It!==null&&!Ut&&d!==null&&!(t.f&(ut|ln|st)))for(g=0;g<It.length;g++)Fs(It[g],t);if(r!==null&&r!==t){if(Kn++,r.deps!==null)for(let h=0;h<n;h+=1)r.deps[h].rv=Kn;if(e!==null)for(const h of e)h.rv=Kn;It!==null&&(i===null?i=It:i.push(...It))}return t.f&Rn&&(t.f^=Rn),v}catch(h){return cs(h)}finally{t.f^=ea,pt=e,wt=n,It=i,Me=r,Rt=l,Di(o),Ut=s,pn=c}}function Id(t,e){let n=e.reactions;if(n!==null){var i=hu.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&ut&&(pt===null||!Mi.call(pt,e))){var l=e;l.f&jt&&(l.f^=jt,l.f&=~li),l.v!==it&&Pl(l),vd(l),dr(l,0)}}function dr(t,e){var n=t.deps;if(n!==null)for(var i=e;i<n.length;i++)Id(t,n[i])}function Oi(t){var e=t.f;if(!(e&Dt)){Xe(t,at);var n=Pe,i=Gr;Pe=t,Gr=!0;try{e&(Mt|xl)?Td(t):Ml(t),js(t);var r=Bs(t);t.teardown=typeof r=="function"?r:null,t.wv=Hs;var l}finally{Gr=i,Pe=n}}}async function fr(){await Promise.resolve(),hs()}function a(t){var e=t.f,n=(e&ut)!==0;if(Me!==null&&!Ut){var i=Pe!==null&&(Pe.f&Dt)!==0;if(!i&&(Rt===null||!Mi.call(Rt,t))){var r=Me.deps;if(Me.f&ea)t.rv<Kn&&(t.rv=Kn,pt===null&&r!==null&&r[wt]===t?wt++:pt===null?pt=[t]:pt.push(t));else{(Me.deps??(Me.deps=[])).push(t);var l=t.reactions;l===null?t.reactions=[Me]:Mi.call(l,Me)||l.push(Me)}}}if(_n&&ti.has(t))return ti.get(t);if(n){var o=t;if(_n){var s=o.v;return(!(o.f&at)&&o.reactions!==null||Ws(o))&&(s=Al(o)),ti.set(o,s),s}var c=(o.f&jt)===0&&!Ut&&Me!==null&&(Gr||(Me.f&jt)!==0),u=(o.f&Vn)===0;Ar(o)&&(c&&(o.f|=jt),ks(o)),c&&!u&&(xs(o),Vs(o))}if(ot!=null&&ot.has(t))return ot.get(t);if(t.f&Rn)throw t.v;return t.v}function Vs(t){if(t.f|=jt,t.deps!==null)for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&ut&&!(e.f&jt)&&(xs(e),Vs(e))}function Ws(t){if(t.v===it)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(ti.has(e)||e.f&ut&&Ws(e))return!0;return!1}function Pt(t){var e=Ut;try{return Ut=!0,t()}finally{Ut=e}}function Us(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(an in t)ul(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&an in n&&ul(n)}}}function ul(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{ul(t[i],e)}catch{}const n=kl(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=Jo(n);for(let r in i){const l=i[r].get;if(l)try{l.call(t)}catch{}}}}}function Ad(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const Cd=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Ld(t){return Cd.includes(t)}const Md={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 jd(t){return t=t.toLowerCase(),Md[t]??t}const Dd=["touchstart","touchmove"];function Rd(t){return Dd.includes(t)}const Yn=Symbol("events"),Gs=new Set,dl=new Set;function Rl(t,e,n,i={}){function r(l){if(i.capture||fl.call(e,l),!l.cancelBubble)return di(()=>n==null?void 0:n.call(this,l))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Zt(()=>{e.addEventListener(t,r,i)}):e.addEventListener(t,r,i),r}function Od(t,e,n,i={}){var r=Rl(e,t,n,i);return()=>{t.removeEventListener(e,r,i)}}function he(t,e,n,i,r){var l={capture:i,passive:r},o=Rl(t,e,n,l);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&Er(()=>{e.removeEventListener(t,o,l)})}function ie(t,e,n){(e[Yn]??(e[Yn]={}))[t]=n}function Se(t){for(var e=0;e<t.length;e++)Gs.add(t[e]);for(var n of dl)n(t)}let po=null;function fl(t){var h,w;var e=this,n=e.ownerDocument,i=t.type,r=((h=t.composedPath)==null?void 0:h.call(t))||[],l=r[0]||t.target;po=t;var o=0,s=po===t&&t[Yn];if(s){var c=r.indexOf(s);if(c!==-1&&(e===document||e===window)){t[Yn]=e;return}var u=r.indexOf(e);if(u===-1)return;c<=u&&(o=c)}if(l=r[o]||t.target,l!==e){gu(t,"currentTarget",{configurable:!0,get(){return l||n}});var f=Me,v=Pe;qt(null),cn(null);try{for(var d,_=[];l!==null;){var g=l.assignedSlot||l.parentNode||l.host||null;try{var m=(w=l[Yn])==null?void 0:w[i];m!=null&&(!l.disabled||t.target===l)&&m.call(l,t)}catch(k){d?_.push(k):d=k}if(t.cancelBubble||g===e||g===null)break;l=g}if(d){for(let k of _)queueMicrotask(()=>{throw k});throw d}}finally{t[Yn]=e,delete t.currentTarget,qt(f),cn(v)}}}var Ko;const Na=((Ko=globalThis==null?void 0:globalThis.window)==null?void 0:Ko.trustedTypes)&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:t=>t});function Nd(t){return(Na==null?void 0:Na.createHTML(t))??t}function Zs(t){var e=xa("template");return e.innerHTML=Nd(t.replaceAll("<!>","<!---->")),e.content}const qd=ba?"script":"SCRIPT";function Fn(t,e){var n=Pe;n.nodes===null&&(n.nodes={start:t,end:e,a:null,t:null})}function P(t,e){var n=(e&Uu)!==0,i=(e&Gu)!==0,r,l=!t.startsWith("<!>");return()=>{r===void 0&&(r=Zs(l?t:"<!>"+t),n||(r=nn(r)));var o=i||Ts?document.importNode(r,!0):r.cloneNode(!0);if(n){var s=nn(o),c=o.lastChild;Fn(s,c)}else Fn(o,o);return o}}function Hd(t,e,n="svg"){var i=!t.startsWith("<!>"),r=`<${n}>${i?t:"<!>"+t}</${n}>`,l;return()=>{if(!l){var o=Zs(r),s=nn(o);l=nn(s)}var c=l.cloneNode(!0);return Fn(c,c),c}}function Ue(t,e){return Hd(t,e,"svg")}function zd(t){return()=>Fd(t())}function Fd(t){const e=t.nodeType===bu,n=t.nodeName===qd?[t]:t.querySelectorAll("script"),i=Pe;for(const l of n){const o=xa("script");for(var r of l.attributes)o.setAttribute(r.name,r.value);o.textContent=l.textContent,(e?t.firstChild===l:t===l)&&(i.nodes.start=o),(e?t.lastChild===l:t===l)&&(i.nodes.end=o),l.replaceWith(o)}return t}function Ze(t=""){{var e=Kt(t+"");return Fn(e,e),e}}function be(){var t=document.createDocumentFragment(),e=document.createComment(""),n=Kt();return t.append(e,n),Fn(e,n),t}function y(t,e){t!==null&&t.before(e)}let na=!0;function Nr(t){na=t}function J(t,e){var n=e==null?"":typeof e=="object"?`${e}`:e;n!==(t[tr]??(t[tr]=t.nodeValue))&&(t[tr]=n,t.nodeValue=`${n}`)}function Ot(t,e){return Bd(t,e)}const qr=new Map;function Bd(t,{target:e,anchor:n,props:i={},events:r,context:l,intro:o=!0,transformError:s}){pd();var c=void 0,u=Sd(()=>{var f=n??e.appendChild(Kt());Il(f,{pending:()=>{}},_=>{re({});var g=Ve;l&&(g.c=l),r&&(i.$$events=r),na=o,c=t(_,i)||{},na=!0,ae()},s);var v=new Set,d=_=>{for(var g=0;g<_.length;g++){var m=_[g];if(!v.has(m)){v.add(m);var h=Rd(m);for(const E of[e,document]){var w=qr.get(E);w===void 0&&(w=new Map,qr.set(E,w));var k=w.get(m);k===void 0?(E.addEventListener(m,fl,{passive:h}),w.set(m,1)):w.set(m,k+1)}}}};return d(ya(Gs)),dl.add(d),()=>{var h;for(var _ of v)for(const w of[e,document]){var g=qr.get(w),m=g.get(_);--m==0?(w.removeEventListener(_,fl),g.delete(_),g.size===0&&qr.delete(w)):g.set(_,m)}dl.delete(d),f!==n&&((h=f.parentNode)==null||h.removeChild(f))}});return vl.set(c,u),c}let vl=new WeakMap;function Un(t,e){const n=vl.get(t);return n?(vl.delete(t),n(e)):Promise.resolve()}var Vt,en,xt,ei,yr,wr,ha;class Zi{constructor(e,n=!0){dt(this,"anchor");_e(this,Vt,new Map);_e(this,en,new Map);_e(this,xt,new Map);_e(this,ei,new Set);_e(this,yr,!0);_e(this,wr,e=>{if(R(this,Vt).has(e)){var n=R(this,Vt).get(e),i=R(this,en).get(n);if(i)jl(i),R(this,ei).delete(n);else{var r=R(this,xt).get(n);r&&(R(this,en).set(n,r.effect),R(this,xt).delete(n),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),i=r.effect)}for(const[l,o]of R(this,Vt)){if(R(this,Vt).delete(l),l===e)break;const s=R(this,xt).get(o);s&&(ct(s.effect),R(this,xt).delete(o))}for(const[l,o]of R(this,en)){if(l===n||R(this,ei).has(l))continue;const s=()=>{if(Array.from(R(this,Vt).values()).includes(l)){var u=document.createDocumentFragment();Dl(o,u),u.append(Kt()),R(this,xt).set(l,{effect:o,fragment:u})}else ct(o);R(this,ei).delete(l),R(this,en).delete(l)};R(this,yr)||!i?(R(this,ei).add(l),ni(o,s,!1)):s()}}});_e(this,ha,e=>{R(this,Vt).delete(e);const n=Array.from(R(this,Vt).values());for(const[i,r]of R(this,xt))n.includes(i)||(ct(r.effect),R(this,xt).delete(i))});this.anchor=e,ke(this,yr,n)}ensure(e,n){var i=me,r=As();if(n&&!R(this,en).has(e)&&!R(this,xt).has(e))if(r){var l=document.createDocumentFragment(),o=Kt();l.append(o),R(this,xt).set(e,{effect:vt(()=>n(o)),fragment:l})}else R(this,en).set(e,vt(()=>n(this.anchor)));if(R(this,Vt).set(i,e),r){for(const[s,c]of R(this,en))s===e?i.unskip_effect(c):i.skip_effect(c);for(const[s,c]of R(this,xt))s===e?i.unskip_effect(c.effect):i.skip_effect(c.effect);i.oncommit(R(this,wr)),i.ondiscard(R(this,ha))}else R(this,wr).call(this,i)}}Vt=new WeakMap,en=new WeakMap,xt=new WeakMap,ei=new WeakMap,yr=new WeakMap,wr=new WeakMap,ha=new WeakMap;const Vd=0,_o=1,Wd=2;function yn(t,e,n,i,r){var l=ui(),o=it,s=l?sn(o):cl(o,!1,!1),c=l?sn(o):cl(o,!1,!1),u=new Zi(t);xn(()=>{var f=me;f.deactivate();var v=e();f.activate();var d=!1;if(_u(v)){var _=ws(),g=!1;const m=h=>{if(!d){g=!0,_(!1),zn.ensure();try{h()}finally{ur(!1),wi||hs()}}};v.then(h=>{m(()=>{mn(s,h),u.ensure(_o,i&&(w=>i(w,s)))})},h=>{m(()=>{if(mn(c,h),u.ensure(Wd,r&&(w=>r(w,c))),!r)throw c.v})}),Zt(()=>{g||m(()=>{u.ensure(Vd,n)})})}else mn(s,v),u.ensure(_o,i&&(m=>i(m,s)));return()=>{d=!0}})}function V(t,e,n=!1){var i=new Zi(t),r=n?on:0;function l(o,s){i.ensure(o,s)}xn(()=>{var o=!1;e((s,c=0)=>{o=!0,l(c,s)}),o||l(-1,null)},r)}const Ud=Symbol("NaN");function Ki(t,e,n){var i=new Zi(t),r=!ui();xn(()=>{var l=e();l!==l&&(l=Ud),r&&l!==null&&typeof l=="object"&&(l={}),i.ensure(l,n)})}function We(t,e){return e}function Gd(t,e,n){for(var i=[],r=e.length,l,o=e.length,s=0;s<r;s++){let v=e[s];ni(v,()=>{if(l){if(l.pending.delete(v),l.done.add(v),l.pending.size===0){var d=t.outrogroups;hl(t,ya(l.done)),d.delete(l),d.size===0&&(t.outrogroups=null)}}else o-=1},!1)}if(o===0){var c=i.length===0&&n!==null;if(c){var u=n,f=u.parentNode;_d(f),f.append(u),t.items.clear()}hl(t,e,!c)}else l={pending:new Set(e),done:new Set},(t.outrogroups??(t.outrogroups=new Set)).add(l)}function hl(t,e,n=!0){var i;if(t.pending.size>0){i=new Set;for(const o of t.pending.values())for(const s of o)i.add(t.items.get(s).e)}for(var r=0;r<e.length;r++){var l=e[r];if(i!=null&&i.has(l)){l.f|=tn;const o=document.createDocumentFragment();Dl(l,o)}else ct(e[r],n)}}var yo;function qe(t,e,n,i,r,l=null){var o=t,s=new Map,c=(e&ts)!==0;if(c){var u=t;o=u.appendChild(Kt())}var f=null,v=ka(()=>{var E=n();return bl(E)?E:E==null?[]:ya(E)}),d,_=new Map,g=!0;function m(E){k.effect.f&Dt||(k.pending.delete(E),k.fallback=f,Zd(k,d,o,e,i),f!==null&&(d.length===0?f.f&tn?(f.f^=tn,ir(f,null,o)):jl(f):ni(f,()=>{f=null})))}function h(E){k.pending.delete(E)}var w=xn(()=>{d=a(v);for(var E=d.length,x=new Set,T=me,C=As(),j=0;j<E;j+=1){var O=d[j],Z=i(O,j),q=g?null:s.get(Z);q?(q.v&&mn(q.v,O),q.i&&mn(q.i,j),C&&T.unskip_effect(q.e)):(q=Kd(s,g?o:yo??(yo=Kt()),O,Z,j,r,e,n),g||(q.e.f|=tn),s.set(Z,q)),x.add(Z)}if(E===0&&l&&!f&&(g?f=vt(()=>l(o)):(f=vt(()=>l(yo??(yo=Kt()))),f.f|=tn)),E>x.size&&xu(),!g)if(_.set(T,x),C){for(const[N,M]of s)x.has(N)||T.skip_effect(M.e);T.oncommit(m),T.ondiscard(h)}else m(T);a(v)}),k={effect:w,items:s,pending:_,outrogroups:null,fallback:f};g=!1}function er(t){for(;t!==null&&!(t.f&Yt);)t=t.next;return t}function Zd(t,e,n,i,r){var q,N,M,A,z,B,U,I,H;var l=(i&Ru)!==0,o=e.length,s=t.items,c=er(t.effect.first),u,f=null,v,d=[],_=[],g,m,h,w;if(l)for(w=0;w<o;w+=1)g=e[w],m=r(g,w),h=s.get(m).e,h.f&tn||((N=(q=h.nodes)==null?void 0:q.a)==null||N.measure(),(v??(v=new Set)).add(h));for(w=0;w<o;w+=1){if(g=e[w],m=r(g,w),h=s.get(m).e,t.outrogroups!==null)for(const G of t.outrogroups)G.pending.delete(h),G.done.delete(h);if(h.f&ht&&(jl(h),l&&((A=(M=h.nodes)==null?void 0:M.a)==null||A.unfix(),(v??(v=new Set)).delete(h))),h.f&tn)if(h.f^=tn,h===c)ir(h,null,n);else{var k=f?f.next:c;h===t.effect.last&&(t.effect.last=h.prev),h.prev&&(h.prev.next=h.next),h.next&&(h.next.prev=h.prev),Pn(t,f,h),Pn(t,h,k),ir(h,k,n),f=h,d=[],_=[],c=er(f.next);continue}if(h!==c){if(u!==void 0&&u.has(h)){if(d.length<_.length){var E=_[0],x;f=E.prev;var T=d[0],C=d[d.length-1];for(x=0;x<d.length;x+=1)ir(d[x],E,n);for(x=0;x<_.length;x+=1)u.delete(_[x]);Pn(t,T.prev,C.next),Pn(t,f,T),Pn(t,C,E),c=E,f=C,w-=1,d=[],_=[]}else u.delete(h),ir(h,c,n),Pn(t,h.prev,h.next),Pn(t,h,f===null?t.effect.first:f.next),Pn(t,f,h),f=h;continue}for(d=[],_=[];c!==null&&c!==h;)(u??(u=new Set)).add(c),_.push(c),c=er(c.next);if(c===null)continue}h.f&tn||d.push(h),f=h,c=er(h.next)}if(t.outrogroups!==null){for(const G of t.outrogroups)G.pending.size===0&&(hl(t,ya(G.done)),(z=t.outrogroups)==null||z.delete(G));t.outrogroups.size===0&&(t.outrogroups=null)}if(c!==null||u!==void 0){var j=[];if(u!==void 0)for(h of u)h.f&ht||j.push(h);for(;c!==null;)!(c.f&ht)&&c!==t.fallback&&j.push(c),c=er(c.next);var O=j.length;if(O>0){var Z=i&ts&&o===0?n:null;if(l){for(w=0;w<O;w+=1)(U=(B=j[w].nodes)==null?void 0:B.a)==null||U.measure();for(w=0;w<O;w+=1)(H=(I=j[w].nodes)==null?void 0:I.a)==null||H.fix()}Gd(t,j,Z)}}l&&Zt(()=>{var G,Y;if(v!==void 0)for(h of v)(Y=(G=h.nodes)==null?void 0:G.a)==null||Y.apply()})}function Kd(t,e,n,i,r,l,o,s){var c=o&ju?o&Ou?sn(n):cl(n,!1,!1):null,u=o&Du?sn(r):null;return{v:c,i:u,e:vt(()=>(l(e,c??n,u??r,s),()=>{t.delete(i)}))}}function ir(t,e,n){if(t.nodes)for(var i=t.nodes.start,r=t.nodes.end,l=e&&!(e.f&tn)?e.nodes.start:n;i!==null;){var o=Tr(i);if(l.before(i),i===r)return;i=o}}function Pn(t,e,n){e===null?t.effect.first=n:e.next=n,n===null?t.effect.last=e:n.prev=e}function Ks(t,e,n=!1,i=!1,r=!1,l=!1){var o=t,s="";if(n)var c=t;W(()=>{var u=Pe;if(s!==(s=e()??"")){if(n){u.nodes=null,c.innerHTML=s,s!==""&&Fn(nn(c),c.lastChild);return}if(u.nodes!==null&&(Ds(u.nodes.start,u.nodes.end),u.nodes=null),s!==""){var f=i?is:r?Zu:void 0,v=xa(i?"svg":r?"math":"template",f);v.innerHTML=s;var d=i||r?v:v.content;if(Fn(nn(d),d.lastChild),i||r)for(;nn(d);)o.before(nn(d));else o.before(d)}}})}function $e(t,e,...n){var i=new Zi(t);xn(()=>{const r=e()??null;i.ensure(r,r&&(l=>r(l,...n)))},on)}function ia(t,e,n){var i=new Zi(t);xn(()=>{var r=e()??null;i.ensure(r,r&&(l=>n(l,r)))},on)}const Yd=()=>performance.now(),gn={tick:t=>requestAnimationFrame(t),now:()=>Yd(),tasks:new Set};function Ys(){const t=gn.now();gn.tasks.forEach(e=>{e.c(t)||(gn.tasks.delete(e),e.f())}),gn.tasks.size!==0&&gn.tick(Ys)}function Jd(t){let e;return gn.tasks.size===0&&gn.tick(Ys),{promise:new Promise(n=>{gn.tasks.add(e={c:t,f:n})}),abort(){gn.tasks.delete(e)}}}function Hr(t,e){di(()=>{t.dispatchEvent(new CustomEvent(e))})}function Qd(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 wo(t){const e={},n=t.split(";");for(const i of n){const[r,l]=i.split(":");if(!r||l===void 0)break;const o=Qd(r.trim());e[o]=l.trim()}return e}const Xd=t=>t;let Js=null;function bo(t){Js=t}function $d(t,e,n){var i=Js??Pe,r=i.nodes,l,o,s,c=null;r.a??(r.a={element:t,measure(){l=this.element.getBoundingClientRect()},apply(){if(s==null||s.abort(),o=this.element.getBoundingClientRect(),l.left!==o.left||l.right!==o.right||l.top!==o.top||l.bottom!==o.bottom){const u=e()(this.element,{from:l,to:o},n==null?void 0:n());s=ra(this.element,u,void 0,1,()=>{},()=>{s==null||s.abort(),s=void 0})}},fix(){if(!t.getAnimations().length){var{position:u,width:f,height:v}=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=v;var _=t.getBoundingClientRect();if(l.left!==_.left||l.top!==_.top){var g=`translate(${l.left-_.left}px, ${l.top-_.top}px)`;d.transform=d.transform?`${d.transform} ${g}`:g}}}},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 Oe(t,e,n,i){var E;var r=(t&Bu)!==0,l=(t&Vu)!==0,o=r&&l,s=(t&Wu)!==0,c=o?"both":r?"in":"out",u,f=e.inert,v=e.style.overflow,d,_;function g(){return di(()=>u??(u=n()(e,(i==null?void 0:i())??{},{direction:c})))}var m={is_global:s,in(){var x;if(e.inert=f,!r){_==null||_.abort(),(x=_==null?void 0:_.reset)==null||x.call(_);return}l||d==null||d.abort(),d=ra(e,g(),_,1,()=>{Hr(e,"introstart")},()=>{Hr(e,"introend"),d==null||d.abort(),d=u=void 0,e.style.overflow=v})},out(x){if(!l){x==null||x(),u=void 0;return}e.inert=!0,_=ra(e,g(),d,0,()=>{Hr(e,"outrostart")},()=>{Hr(e,"outroend"),x==null||x()})},stop:()=>{d==null||d.abort(),_==null||_.abort()}},h=Pe;if(((E=h.nodes).t??(E.t=[])).push(m),r&&na){var w=s;if(!w){for(var k=h.parent;k&&k.f&on;)for(;(k=k.parent)&&!(k.f&Mt););w=!k||(k.f&Vn)!==0}w&&Wn(()=>{Pt(()=>m.in())})}}function ra(t,e,n,i,r,l){var o=i===1;if(hi(e)){var s,c=!1;return Zt(()=>{if(!c){var w=e({direction:o?"in":"out"});s=ra(t,w,n,i,r,l)}}),{abort:()=>{c=!0,s==null||s.abort()},deactivate:()=>s.deactivate(),reset:()=>s.reset(),t:()=>s.t()}}if(n==null||n.deactivate(),!(e!=null&&e.duration)&&!(e!=null&&e.delay))return r(),l(),{abort:St,deactivate:St,reset:St,t:()=>i};const{delay:u=0,css:f,tick:v,easing:d=Xd}=e;var _=[];if(o&&n===void 0&&(v&&v(0,1),f)){var g=wo(f(0,1));_.push(g,g)}var m=()=>1-i,h=t.animate(_,{duration:u,fill:"forwards"});return h.onfinish=()=>{h.cancel(),r();var w=(n==null?void 0:n.t())??1-i;n==null||n.abort();var k=i-w,E=e.duration*Math.abs(k),x=[];if(E>0){var T=!1;if(f)for(var C=Math.ceil(E/16.666666666666668),j=0;j<=C;j+=1){var O=w+k*d(j/C),Z=wo(f(O,1-O));x.push(Z),T||(T=Z.overflow==="hidden")}T&&(t.style.overflow="hidden"),m=()=>{var q=h.currentTime;return w+k*d(q/E)},v&&Jd(()=>{if(h.playState!=="running")return!1;var q=m();return v(q,1-q),!0})}h=t.animate(x,{duration:E,fill:"forwards"}),h.onfinish=()=>{m=()=>i,v==null||v(i,1-i),l()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=St)},deactivate:()=>{l=St},reset:()=>{i===0&&(v==null||v(1,0))},t:()=>m()}}function Qs(t,e,n,i,r,l){var o=null,s=t,c=Pe,u=new Zi(s,!1);xn(()=>{const f=e()||null;var v=f==="svg"?is:void 0;if(f===null){u.ensure(null,null),Nr(!0);return}return u.ensure(f,d=>{if(f){if(o=xa(f,v),Fn(o,o),i){var _=o.appendChild(Kt());bo(c),i(o,_),bo(null)}Pe.nodes.end=o,d.before(o)}}),Nr(!0),()=>{f&&Nr(!1)}},on),Er(()=>{Nr(!0)})}function Xs(t,e){var n;n=document.head.appendChild(Kt());try{xn(()=>{var i=vt(()=>e(n));i.f|=Xo})}finally{}}function yt(t,e,n){Wn(()=>{var i=Pt(()=>e(t,n==null?void 0:n())||{});if(n&&(i!=null&&i.update)){var r=!1,l={};Ir(()=>{var o=n();Us(o),r&&as(l,o)&&(l=o,i.update(o))}),r=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function aa(t,e){var n=void 0,i;Ms(()=>{n!==(n=e())&&(i&&(ct(i),i=null),n&&(i=vt(()=>{Wn(()=>n(t))})))})}function $s(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=$s(t[e]))&&(i&&(i+=" "),i+=n)}else for(n in t)t[n]&&(i&&(i+=" "),i+=n);return i}function ef(){for(var t,e,n=0,i="",r=arguments.length;n<r;n++)(t=arguments[n])&&(e=$s(t))&&(i&&(i+=" "),i+=e);return i}function tf(t){return typeof t=="object"?ef(t):t??""}const ko=[...`
|
|
3
|
-
\r\f \v\uFEFF`];function nf(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 l=r.length,o=0;(o=i.indexOf(r,o))>=0;){var s=o+l;(o===0||ko.includes(i[o-1]))&&(s===i.length||ko.includes(i[s]))?i=(o===0?"":i.substring(0,o))+i.substring(s+1):o=s}}return i===""?null:i}function xo(t,e=!1){var n=e?" !important;":";",i="";for(var r of Object.keys(t)){var l=t[r];l!=null&&l!==""&&(i+=" "+r+": "+l+n)}return i}function qa(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function rf(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 l=!1,o=0,s=!1,c=[];i&&c.push(...Object.keys(i).map(qa)),r&&c.push(...Object.keys(r).map(qa));var u=0,f=-1;const m=t.length;for(var v=0;v<m;v++){var d=t[v];if(s?d==="/"&&t[v-1]==="*"&&(s=!1):l?l===d&&(l=!1):d==="/"&&t[v+1]==="*"?s=!0:d==='"'||d==="'"?l=d:d==="("?o++:d===")"&&o--,!s&&l===!1&&o===0){if(d===":"&&f===-1)f=v;else if(d===";"||v===m-1){if(f!==-1){var _=qa(t.substring(u,f).trim());if(!c.includes(_)){d!==";"&&v++;var g=t.substring(u,v).trim();n+=" "+g+";"}}u=v+1,f=-1}}}}return i&&(n+=xo(i)),r&&(n+=xo(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function ge(t,e,n,i,r,l){var o=t[el];if(o!==n||o===void 0){var s=nf(n,i,l);s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s),t[el]=n}else if(l&&r!==l)for(var c in l){var u=!!l[c];(r==null||u!==!!r[c])&&t.classList.toggle(c,u)}return l}function Ha(t,e={},n,i){for(var r in n){var l=n[r];e[r]!==l&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,l,i))}}function nt(t,e,n,i){var r=t[tl];if(r!==e){var l=rf(e,i);l==null?t.removeAttribute("style"):t.style.cssText=l,t[tl]=e}else i&&(Array.isArray(i)?(Ha(t,n==null?void 0:n[0],i[0]),Ha(t,n==null?void 0:n[1],i[1],"important")):Ha(t,n,i));return i}function la(t,e,n=!1){if(t.multiple){if(e==null)return;if(!bl(e))return Ju();for(var i of t.options)i.selected=e.includes(ar(i));return}for(i of t.options){var r=ar(i);if(md(r,e)){i.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function ec(t){var e=new MutationObserver(()=>{la(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Er(()=>{e.disconnect()})}function af(t,e,n=e){var i=new WeakSet,r=!0;Cl(t,"change",l=>{var o=l?"[selected]":":checked",s;if(t.multiple)s=[].map.call(t.querySelectorAll(o),ar);else{var c=t.querySelector(o)??t.querySelector("option:not([disabled])");s=c&&ar(c)}n(s),t.__value=s,me!==null&&i.add(me)}),Wn(()=>{var l=e();if(t===document.activeElement){var o=me;if(i.has(o))return}if(la(t,l,r),r&&l===void 0){var s=t.querySelector(":checked");s!==null&&(l=ar(s),n(l))}t.__value=l,r=!1}),ec(t)}function ar(t){return"__value"in t?t.__value:t.value}const mi=Symbol("class"),pi=Symbol("style"),tc=Symbol("is custom element"),nc=Symbol("is html"),lf=ba?"option":"OPTION",of=ba?"select":"SELECT",sf=ba?"progress":"PROGRESS";function cf(t,e){var n=Ol(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==sf)||(t.value=e??"")}function ic(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function le(t,e,n,i){var r=Ol(t);r[e]!==(r[e]=n)&&(e==="loading"&&(t[wu]=n),n==null?t.removeAttribute(e):typeof n!="string"&&ac(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function uf(t,e,n,i,r=!1,l=!1){var o=Ol(t),s=o[tc],c=!o[nc],u=e||{},f=t.nodeName===lf;for(var v in e)v in n||(n[v]=null);n.class?n.class=tf(n.class):(i||n[mi])&&(n.class=null),n[pi]&&(n.style??(n.style=null));var d=ac(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 _=t.namespaceURI==="http://www.w3.org/1999/xhtml";ge(t,_,T,i,e==null?void 0:e[mi],n[mi]),u[x]=T,u[mi]=n[mi];continue}if(x==="style"){nt(t,T,e==null?void 0:e[pi],n[pi]),u[x]=T,u[pi]=n[pi];continue}var g=u[x];if(!(T===g&&!(T===void 0&&t.hasAttribute(x)))){u[x]=T;var m=x[0]+x[1];if(m!=="$$")if(m==="on"){const C={},j="$$"+x;let O=x.slice(2);var h=Ld(O);if(Ad(O)&&(O=O.slice(0,-7),C.capture=!0),!h&&g){if(T!=null)continue;t.removeEventListener(O,u[j],C),u[j]=null}if(h)ie(O,t,T),Se([O]);else if(T!=null){let Z=function(q){u[x].call(this,q)};var E=Z;u[j]=Rl(O,t,Z,C)}}else if(x==="style")le(t,x,T);else if(x==="autofocus")yd(t,!!T);else if(!s&&(x==="__value"||x==="value"&&T!=null))t.value=t.__value=T;else if(x==="selected"&&f)ic(t,T);else{var w=x;c||(w=jd(w));var k=w==="defaultValue"||w==="defaultChecked";if(T==null&&!s&&!k)if(o[x]=null,w==="value"||w==="checked"){let C=t;const j=e===void 0;if(w==="value"){let O=C.defaultValue;C.removeAttribute(w),C.defaultValue=O,C.value=C.__value=j?O:null}else{let O=C.defaultChecked;C.removeAttribute(w),C.defaultChecked=O,C.checked=j?O:!1}}else t.removeAttribute(x);else k||d.includes(w)&&(s||typeof T!="string")?(t[w]=T,w in o&&(o[w]=it)):typeof T!="function"&&le(t,w,T)}}}return u}function rc(t,e,n=[],i=[],r=[],l,o=!1,s=!1){ys(r,n,i,c=>{var u=void 0,f={},v=t.nodeName===of,d=!1;if(Ms(()=>{var g=e(...c.map(a)),m=uf(t,u,g,l,o,s);d&&v&&"value"in g&&la(t,g.value);for(let w of Object.getOwnPropertySymbols(f))g[w]||ct(f[w]);for(let w of Object.getOwnPropertySymbols(g)){var h=g[w];w.description===Ku&&(!u||h!==u[w])&&(f[w]&&ct(f[w]),f[w]=vt(()=>aa(t,()=>h))),m[w]=h}u=m}),v){var _=t;Wn(()=>{la(_,u.value,!0),ec(_)})}d=!0})}function Ol(t){return t[zr]??(t[zr]={[tc]:t.nodeName.includes("-"),[nc]:t.namespaceURI===ns})}var So=new Map;function ac(t){var e=t.getAttribute("is")||t.nodeName,n=So.get(e);if(n)return n;So.set(e,n=[]);for(var i,r=t,l=Element.prototype;l!==r;){i=Jo(r);for(var o in i)i[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&n.push(o);r=kl(r)}return n}function oi(t,e,n=e){var i=new WeakSet;Cl(t,"input",async r=>{var l=r?t.defaultValue:t.value;if(l=za(t)?Fa(l):l,n(l),me!==null&&i.add(me),await fr(),l!==(l=e())){var o=t.selectionStart,s=t.selectionEnd,c=t.value.length;if(t.value=l??"",s!==null){var u=t.value.length;o===s&&s===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=o,t.selectionEnd=Math.min(s,u))}}}),Pt(e)==null&&t.value&&(n(za(t)?Fa(t.value):t.value),me!==null&&i.add(me)),Ir(()=>{var r=e();if(t===document.activeElement){var l=me;if(i.has(l))return}za(t)&&r===Fa(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function df(t,e,n=e){Cl(t,"change",i=>{var r=i?t.defaultChecked:t.checked;n(r)}),Pt(e)==null&&n(t.checked),Ir(()=>{var i=e();t.checked=!!i})}function za(t){var e=t.type;return e==="number"||e==="range"}function Fa(t){return t===""?null:+t}var An,Ci,br,ga,lc;const ma=class ma{constructor(e){_e(this,ga);_e(this,An,new WeakMap);_e(this,Ci);_e(this,br);ke(this,br,e)}observe(e,n){var i=R(this,An).get(e)||new Set;return i.add(n),R(this,An).set(e,i),Ce(this,ga,lc).call(this).observe(e,R(this,br)),()=>{var r=R(this,An).get(e);r.delete(n),r.size===0&&(R(this,An).delete(e),R(this,Ci).unobserve(e))}}};An=new WeakMap,Ci=new WeakMap,br=new WeakMap,ga=new WeakSet,lc=function(){return R(this,Ci)??ke(this,Ci,new ResizeObserver(e=>{for(var n of e){ma.entries.set(n.target,n);for(var i of R(this,An).get(n.target)||[])i(n)}}))},dt(ma,"entries",new WeakMap);let gl=ma;var ff=new gl({box:"border-box"});function Tt(t,e,n){var i=ff.observe(t,()=>n(t[e]));Wn(()=>(Pt(()=>n(t[e])),i))}function Ba(t,e){return t===e||(t==null?void 0:t[an])===e}function Je(t={},e,n,i){var r=Ve.r,l=Pe;return Wn(()=>{var o,s;return Ir(()=>{o=s,s=[],Pt(()=>{Ba(n(...s),t)||(e(t,...s),o&&Ba(n(...o),t)&&e(null,...o))})}),()=>{let c=l;for(;c!==r&&c.parent!==null&&c.parent.f&$a;)c=c.parent;const u=()=>{s&&Ba(n(...s),t)&&e(null,...s)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Ni(t,e){bd(window,["resize"],()=>di(()=>e(window[t])))}function Nl(t=!1){const e=Ve,n=e.l.u;if(!n)return;let i=()=>Us(e.s);if(t){let r=0,l={};const o=Ri(()=>{let s=!1;const c=e.s;for(const u in c)c[u]!==l[u]&&(l[u]=c[u],s=!0);return s&&r++,r});i=()=>a(o)}n.b.length&&xd(()=>{Po(e,i),Qa(n.b)}),Qe(()=>{const r=Pt(()=>n.m.map(yu));return()=>{for(const l of r)typeof l=="function"&&l()}}),n.a.length&&Qe(()=>{Po(e,i),Qa(n.a)})}function Po(t,e){if(t.l.s)for(const n of t.l.s)a(n);e()}const vf={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 Yi(t,e,n){return new Proxy({props:t,exclude:e},vf)}const hf={get(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(hi(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];hi(r)&&(r=r());const l=Dn(r,e);if(l&&l.set)return l.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(hi(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const r=Dn(i,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===an||e===es)return!1;for(let n of t.props)if(hi(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(hi(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 wn(...t){return new Proxy({props:t},hf)}function L(t,e,n,i){var x;var r=!Gi||(n&qu)!==0,l=(n&zu)!==0,o=(n&Fu)!==0,s=i,c=!0,u=void 0,f=()=>o&&r?(u??(u=Ri(i)),a(u)):(c&&(c=!1,s=o?Pt(i):i),s);let v;if(l){var d=an in t||es in t;v=((x=Dn(t,e))==null?void 0:x.set)??(d&&e in t?T=>t[e]=T:void 0)}var _,g=!1;l?[_,g]=nd(()=>t[e]):_=t[e],_===void 0&&i!==void 0&&(_=f(),v&&(r&&Iu(),v(_)));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&&(s=void 0),T===void 0?s:T},r&&!(n&Hu))return m;if(v){var h=t.$$legacy;return function(T,C){return arguments.length>0?((!r||!C||h||g)&&v(C?m():T),T):m()}}var w=!1,k=(n&Nu?Ri:ka)(()=>(w=!1,m()));l&&a(k);var E=Pe;return function(T,C){if(arguments.length>0){const j=C?a(k):r&&l?Re(T):T;return D(k,j),w=!0,s!==void 0&&(s=j),T}return _n&&w||E.f&Dt?k.v:a(k)}}function rt(t){Ve===null&&Sl(),Gi&&Ve.l!==null?gf(Ve).m.push(t):Qe(()=>{const e=Pt(t);if(typeof e=="function")return e})}function Cr(t){Ve===null&&Sl(),rt(()=>()=>Pt(t))}function gf(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const mf="5";var Yo;typeof window<"u"&&((Yo=window.__svelte??(window.__svelte={})).v??(Yo.v=new Set)).add(mf);function un(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const oc="https://www.playpilot.com",pf="https://partner-api.playpilot.tech/1.0",_f="https://img-external.playpilot.tech",yf="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.39.0-beta.6",qi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Bn=600,Va={};async function Ht(t,{headers:e={},method:n="GET",body:i=null,baseUrl:r=pf}={}){const l=!Sa()&&n==="GET";if(l&&t in Va)return Va[t];const o=n==="GET"?{}:{"Content-Type":"application/json"},s=await fetch(r+t,{method:n,headers:new Headers({...o,...e}),body:i?JSON.stringify(i):null});if(!(s!=null&&s.ok))throw s;const c=await s.text();let u=c;try{c&&(u=JSON.parse(c))}catch{}return l&&(Va[t]=u),u}const ql="EncryptedToken",sc="articleReplacementEditToken",cc="playpilot-editorial-mode";async function uc({href:t=window.location.href,throwError:e=!1}={}){try{const n=un();if(!n)throw new Error("No token was provided");const i=Hl(t);if(!i)throw new Error("Could not be authenticated");return await Ht(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),wf(i),!0}catch(n){if(console.error(n),e)throw n}finally{xf()}return!1}function Hl(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 l=new URL(t).searchParams.get(sc);if(l)return decodeURI(l)}return((r=("; "+document.cookie).split(`; ${ql}=`).pop())==null?void 0:r.split(";")[0])||""}function wf(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=ql+"="+t+";"+i+";path=/"}function bf(){document.cookie=ql+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function Sa(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(cc)==="true"||!!t}function kf(){const t=new URL(window.location.href);t.searchParams.set(cc,"true"),window.history.replaceState({},"",t)}function xf(){const t=new URL(window.location.href);t.searchParams.delete(sc),window.history.replaceState({},"",t)}function Sf(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 Lr(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<t;)n+=e[Math.floor(Math.random()*e.length)];return n}const p={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function Mr(){var i,r;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,e=Object.values(p);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 l=e.find(o=>o.toLowerCase().startsWith(n+"-"));if(l)return l}return p.English}function zl(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 l=Array.from(r.childNodes).some(c=>{var u;return c.nodeType===Node.TEXT_NODE&&((u=c.nodeValue)==null?void 0:u.trim())!==""});if(l&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const o=r.tagName==="P"&&!!r.textContent;if(l||o){n.push(r);continue}const s=Array.from(r.children);for(let c=s.length-1;c>=0;c--)i.push(s[c])}return n}function Hi(){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 dc(t){return t.map(e=>e.innerText).join(`
|
|
3
|
+
\r\f \v\uFEFF`];function nf(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 l=r.length,o=0;(o=i.indexOf(r,o))>=0;){var s=o+l;(o===0||ko.includes(i[o-1]))&&(s===i.length||ko.includes(i[s]))?i=(o===0?"":i.substring(0,o))+i.substring(s+1):o=s}}return i===""?null:i}function xo(t,e=!1){var n=e?" !important;":";",i="";for(var r of Object.keys(t)){var l=t[r];l!=null&&l!==""&&(i+=" "+r+": "+l+n)}return i}function qa(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function rf(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 l=!1,o=0,s=!1,c=[];i&&c.push(...Object.keys(i).map(qa)),r&&c.push(...Object.keys(r).map(qa));var u=0,f=-1;const m=t.length;for(var v=0;v<m;v++){var d=t[v];if(s?d==="/"&&t[v-1]==="*"&&(s=!1):l?l===d&&(l=!1):d==="/"&&t[v+1]==="*"?s=!0:d==='"'||d==="'"?l=d:d==="("?o++:d===")"&&o--,!s&&l===!1&&o===0){if(d===":"&&f===-1)f=v;else if(d===";"||v===m-1){if(f!==-1){var _=qa(t.substring(u,f).trim());if(!c.includes(_)){d!==";"&&v++;var g=t.substring(u,v).trim();n+=" "+g+";"}}u=v+1,f=-1}}}}return i&&(n+=xo(i)),r&&(n+=xo(r,!0)),n=n.trim(),n===""?null:n}return t==null?null:String(t)}function ge(t,e,n,i,r,l){var o=t[el];if(o!==n||o===void 0){var s=nf(n,i,l);s==null?t.removeAttribute("class"):e?t.className=s:t.setAttribute("class",s),t[el]=n}else if(l&&r!==l)for(var c in l){var u=!!l[c];(r==null||u!==!!r[c])&&t.classList.toggle(c,u)}return l}function Ha(t,e={},n,i){for(var r in n){var l=n[r];e[r]!==l&&(n[r]==null?t.style.removeProperty(r):t.style.setProperty(r,l,i))}}function nt(t,e,n,i){var r=t[tl];if(r!==e){var l=rf(e,i);l==null?t.removeAttribute("style"):t.style.cssText=l,t[tl]=e}else i&&(Array.isArray(i)?(Ha(t,n==null?void 0:n[0],i[0]),Ha(t,n==null?void 0:n[1],i[1],"important")):Ha(t,n,i));return i}function la(t,e,n=!1){if(t.multiple){if(e==null)return;if(!bl(e))return Ju();for(var i of t.options)i.selected=e.includes(ar(i));return}for(i of t.options){var r=ar(i);if(md(r,e)){i.selected=!0;return}}(!n||e!==void 0)&&(t.selectedIndex=-1)}function ec(t){var e=new MutationObserver(()=>{la(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),Er(()=>{e.disconnect()})}function af(t,e,n=e){var i=new WeakSet,r=!0;Cl(t,"change",l=>{var o=l?"[selected]":":checked",s;if(t.multiple)s=[].map.call(t.querySelectorAll(o),ar);else{var c=t.querySelector(o)??t.querySelector("option:not([disabled])");s=c&&ar(c)}n(s),t.__value=s,me!==null&&i.add(me)}),Wn(()=>{var l=e();if(t===document.activeElement){var o=me;if(i.has(o))return}if(la(t,l,r),r&&l===void 0){var s=t.querySelector(":checked");s!==null&&(l=ar(s),n(l))}t.__value=l,r=!1}),ec(t)}function ar(t){return"__value"in t?t.__value:t.value}const mi=Symbol("class"),pi=Symbol("style"),tc=Symbol("is custom element"),nc=Symbol("is html"),lf=ba?"option":"OPTION",of=ba?"select":"SELECT",sf=ba?"progress":"PROGRESS";function cf(t,e){var n=Ol(t);n.value===(n.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!==sf)||(t.value=e??"")}function ic(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function le(t,e,n,i){var r=Ol(t);r[e]!==(r[e]=n)&&(e==="loading"&&(t[wu]=n),n==null?t.removeAttribute(e):typeof n!="string"&&ac(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function uf(t,e,n,i,r=!1,l=!1){var o=Ol(t),s=o[tc],c=!o[nc],u=e||{},f=t.nodeName===lf;for(var v in e)v in n||(n[v]=null);n.class?n.class=tf(n.class):(i||n[mi])&&(n.class=null),n[pi]&&(n.style??(n.style=null));var d=ac(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 _=t.namespaceURI==="http://www.w3.org/1999/xhtml";ge(t,_,T,i,e==null?void 0:e[mi],n[mi]),u[x]=T,u[mi]=n[mi];continue}if(x==="style"){nt(t,T,e==null?void 0:e[pi],n[pi]),u[x]=T,u[pi]=n[pi];continue}var g=u[x];if(!(T===g&&!(T===void 0&&t.hasAttribute(x)))){u[x]=T;var m=x[0]+x[1];if(m!=="$$")if(m==="on"){const C={},j="$$"+x;let O=x.slice(2);var h=Ld(O);if(Ad(O)&&(O=O.slice(0,-7),C.capture=!0),!h&&g){if(T!=null)continue;t.removeEventListener(O,u[j],C),u[j]=null}if(h)ie(O,t,T),Se([O]);else if(T!=null){let Z=function(q){u[x].call(this,q)};var E=Z;u[j]=Rl(O,t,Z,C)}}else if(x==="style")le(t,x,T);else if(x==="autofocus")yd(t,!!T);else if(!s&&(x==="__value"||x==="value"&&T!=null))t.value=t.__value=T;else if(x==="selected"&&f)ic(t,T);else{var w=x;c||(w=jd(w));var k=w==="defaultValue"||w==="defaultChecked";if(T==null&&!s&&!k)if(o[x]=null,w==="value"||w==="checked"){let C=t;const j=e===void 0;if(w==="value"){let O=C.defaultValue;C.removeAttribute(w),C.defaultValue=O,C.value=C.__value=j?O:null}else{let O=C.defaultChecked;C.removeAttribute(w),C.defaultChecked=O,C.checked=j?O:!1}}else t.removeAttribute(x);else k||d.includes(w)&&(s||typeof T!="string")?(t[w]=T,w in o&&(o[w]=it)):typeof T!="function"&&le(t,w,T)}}}return u}function rc(t,e,n=[],i=[],r=[],l,o=!1,s=!1){ys(r,n,i,c=>{var u=void 0,f={},v=t.nodeName===of,d=!1;if(Ms(()=>{var g=e(...c.map(a)),m=uf(t,u,g,l,o,s);d&&v&&"value"in g&&la(t,g.value);for(let w of Object.getOwnPropertySymbols(f))g[w]||ct(f[w]);for(let w of Object.getOwnPropertySymbols(g)){var h=g[w];w.description===Ku&&(!u||h!==u[w])&&(f[w]&&ct(f[w]),f[w]=vt(()=>aa(t,()=>h))),m[w]=h}u=m}),v){var _=t;Wn(()=>{la(_,u.value,!0),ec(_)})}d=!0})}function Ol(t){return t[zr]??(t[zr]={[tc]:t.nodeName.includes("-"),[nc]:t.namespaceURI===ns})}var So=new Map;function ac(t){var e=t.getAttribute("is")||t.nodeName,n=So.get(e);if(n)return n;So.set(e,n=[]);for(var i,r=t,l=Element.prototype;l!==r;){i=Jo(r);for(var o in i)i[o].set&&o!=="innerHTML"&&o!=="textContent"&&o!=="innerText"&&n.push(o);r=kl(r)}return n}function oi(t,e,n=e){var i=new WeakSet;Cl(t,"input",async r=>{var l=r?t.defaultValue:t.value;if(l=za(t)?Fa(l):l,n(l),me!==null&&i.add(me),await fr(),l!==(l=e())){var o=t.selectionStart,s=t.selectionEnd,c=t.value.length;if(t.value=l??"",s!==null){var u=t.value.length;o===s&&s===c&&u>c?(t.selectionStart=u,t.selectionEnd=u):(t.selectionStart=o,t.selectionEnd=Math.min(s,u))}}}),Pt(e)==null&&t.value&&(n(za(t)?Fa(t.value):t.value),me!==null&&i.add(me)),Ir(()=>{var r=e();if(t===document.activeElement){var l=me;if(i.has(l))return}za(t)&&r===Fa(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function df(t,e,n=e){Cl(t,"change",i=>{var r=i?t.defaultChecked:t.checked;n(r)}),Pt(e)==null&&n(t.checked),Ir(()=>{var i=e();t.checked=!!i})}function za(t){var e=t.type;return e==="number"||e==="range"}function Fa(t){return t===""?null:+t}var An,Ci,br,ga,lc;const ma=class ma{constructor(e){_e(this,ga);_e(this,An,new WeakMap);_e(this,Ci);_e(this,br);ke(this,br,e)}observe(e,n){var i=R(this,An).get(e)||new Set;return i.add(n),R(this,An).set(e,i),Ce(this,ga,lc).call(this).observe(e,R(this,br)),()=>{var r=R(this,An).get(e);r.delete(n),r.size===0&&(R(this,An).delete(e),R(this,Ci).unobserve(e))}}};An=new WeakMap,Ci=new WeakMap,br=new WeakMap,ga=new WeakSet,lc=function(){return R(this,Ci)??ke(this,Ci,new ResizeObserver(e=>{for(var n of e){ma.entries.set(n.target,n);for(var i of R(this,An).get(n.target)||[])i(n)}}))},dt(ma,"entries",new WeakMap);let gl=ma;var ff=new gl({box:"border-box"});function Tt(t,e,n){var i=ff.observe(t,()=>n(t[e]));Wn(()=>(Pt(()=>n(t[e])),i))}function Ba(t,e){return t===e||(t==null?void 0:t[an])===e}function Je(t={},e,n,i){var r=Ve.r,l=Pe;return Wn(()=>{var o,s;return Ir(()=>{o=s,s=[],Pt(()=>{Ba(n(...s),t)||(e(t,...s),o&&Ba(n(...o),t)&&e(null,...o))})}),()=>{let c=l;for(;c!==r&&c.parent!==null&&c.parent.f&$a;)c=c.parent;const u=()=>{s&&Ba(n(...s),t)&&e(null,...s)},f=c.teardown;c.teardown=()=>{u(),f==null||f()}}}),t}function Ni(t,e){bd(window,["resize"],()=>di(()=>e(window[t])))}function Nl(t=!1){const e=Ve,n=e.l.u;if(!n)return;let i=()=>Us(e.s);if(t){let r=0,l={};const o=Ri(()=>{let s=!1;const c=e.s;for(const u in c)c[u]!==l[u]&&(l[u]=c[u],s=!0);return s&&r++,r});i=()=>a(o)}n.b.length&&xd(()=>{Po(e,i),Qa(n.b)}),Qe(()=>{const r=Pt(()=>n.m.map(yu));return()=>{for(const l of r)typeof l=="function"&&l()}}),n.a.length&&Qe(()=>{Po(e,i),Qa(n.a)})}function Po(t,e){if(t.l.s)for(const n of t.l.s)a(n);e()}const vf={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 Yi(t,e,n){return new Proxy({props:t,exclude:e},vf)}const hf={get(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(hi(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];hi(r)&&(r=r());const l=Dn(r,e);if(l&&l.set)return l.set(n),!0}return!1},getOwnPropertyDescriptor(t,e){let n=t.props.length;for(;n--;){let i=t.props[n];if(hi(i)&&(i=i()),typeof i=="object"&&i!==null&&e in i){const r=Dn(i,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===an||e===es)return!1;for(let n of t.props)if(hi(n)&&(n=n()),n!=null&&e in n)return!0;return!1},ownKeys(t){const e=[];for(let n of t.props)if(hi(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 wn(...t){return new Proxy({props:t},hf)}function L(t,e,n,i){var x;var r=!Gi||(n&qu)!==0,l=(n&zu)!==0,o=(n&Fu)!==0,s=i,c=!0,u=void 0,f=()=>o&&r?(u??(u=Ri(i)),a(u)):(c&&(c=!1,s=o?Pt(i):i),s);let v;if(l){var d=an in t||es in t;v=((x=Dn(t,e))==null?void 0:x.set)??(d&&e in t?T=>t[e]=T:void 0)}var _,g=!1;l?[_,g]=nd(()=>t[e]):_=t[e],_===void 0&&i!==void 0&&(_=f(),v&&(r&&Iu(),v(_)));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&&(s=void 0),T===void 0?s:T},r&&!(n&Hu))return m;if(v){var h=t.$$legacy;return function(T,C){return arguments.length>0?((!r||!C||h||g)&&v(C?m():T),T):m()}}var w=!1,k=(n&Nu?Ri:ka)(()=>(w=!1,m()));l&&a(k);var E=Pe;return function(T,C){if(arguments.length>0){const j=C?a(k):r&&l?Re(T):T;return D(k,j),w=!0,s!==void 0&&(s=j),T}return _n&&w||E.f&Dt?k.v:a(k)}}function rt(t){Ve===null&&Sl(),Gi&&Ve.l!==null?gf(Ve).m.push(t):Qe(()=>{const e=Pt(t);if(typeof e=="function")return e})}function Cr(t){Ve===null&&Sl(),rt(()=>()=>Pt(t))}function gf(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const mf="5";var Yo;typeof window<"u"&&((Yo=window.__svelte??(window.__svelte={})).v??(Yo.v=new Set)).add(mf);function un(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const oc="https://www.playpilot.com",pf="https://partner-api.playpilot.tech/1.0",_f="https://img-external.playpilot.tech",yf="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.39.0",qi="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Bn=600,Va={};async function Ht(t,{headers:e={},method:n="GET",body:i=null,baseUrl:r=pf}={}){const l=!Sa()&&n==="GET";if(l&&t in Va)return Va[t];const o=n==="GET"?{}:{"Content-Type":"application/json"},s=await fetch(r+t,{method:n,headers:new Headers({...o,...e}),body:i?JSON.stringify(i):null});if(!(s!=null&&s.ok))throw s;const c=await s.text();let u=c;try{c&&(u=JSON.parse(c))}catch{}return l&&(Va[t]=u),u}const ql="EncryptedToken",sc="articleReplacementEditToken",cc="playpilot-editorial-mode";async function uc({href:t=window.location.href,throwError:e=!1}={}){try{const n=un();if(!n)throw new Error("No token was provided");const i=Hl(t);if(!i)throw new Error("Could not be authenticated");return await Ht(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),wf(i),!0}catch(n){if(console.error(n),e)throw n}finally{xf()}return!1}function Hl(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 l=new URL(t).searchParams.get(sc);if(l)return decodeURI(l)}return((r=("; "+document.cookie).split(`; ${ql}=`).pop())==null?void 0:r.split(";")[0])||""}function wf(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const i="expires="+e.toUTCString();document.cookie=ql+"="+t+";"+i+";path=/"}function bf(){document.cookie=ql+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function Sa(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(cc)==="true"||!!t}function kf(){const t=new URL(window.location.href);t.searchParams.set(cc,"true"),window.history.replaceState({},"",t)}function xf(){const t=new URL(window.location.href);t.searchParams.delete(sc),window.history.replaceState({},"",t)}function Sf(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 Lr(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<t;)n+=e[Math.floor(Math.random()*e.length)];return n}const p={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function Mr(){var i,r;const t=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,e=Object.values(p);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 l=e.find(o=>o.toLowerCase().startsWith(n+"-"));if(l)return l}return p.English}function zl(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 l=Array.from(r.childNodes).some(c=>{var u;return c.nodeType===Node.TEXT_NODE&&((u=c.nodeValue)==null?void 0:u.trim())!==""});if(l&&r.tagName==="LI"){const c=r.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const o=r.tagName==="P"&&!!r.textContent;if(l||o){n.push(r);continue}const s=Array.from(r.children);for(let c=s.length-1;c>=0;c--)i.push(s[c])}return n}function Hi(){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 dc(t){return t.map(e=>e.innerText).join(`
|
|
4
4
|
|
|
5
|
-
`)}function zi(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const n=Hi(),i=zl(n,(t==null?void 0:t.exclude_elements_selector)||""),r=dc(i);return{parentElement:n,elements:i,pageText:r}}function fc(){const t=Hi();return{content_heading:Pf(t),content_modified_time:Tf(t),content_published_time:Ef(t)}}function Pf(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Tf(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=vc().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Fl(n):null}function Ef(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=vc().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Fl(n):null}function Fl(t){try{return new Date(t).toISOString()}catch{return null}}function vc(){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 ii(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function If(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function hc(t){return Object.entries(t).filter(([n,i])=>i!=null&&i!=="").map(([n,i])=>`${n}=${i}`).join("&")}function Af(t){return!!(t.exclude_urls_pattern&&ii().match(new RegExp(t.exclude_urls_pattern)))}let Wa=null;async function Nn({url:t=ii(),params:e={},method:n="GET"}={}){const i=un(),r=Sa()?await uc():!1,l=Mr();if(!i)throw new Error("No token was provided");const o=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${r?"&editorial_mode_enabled=true":""}&language=${l}`;let s;if(n==="POST"){const{pageText:c}=zi();e.run_ai&&(e.hash=Sf(c||""),e.page_text=c),e.url=t,e.metadata=fc(),s=await Ht(o,{method:"POST",body:e})}else s=await Ht(o+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=s,s}async function To({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:r=()=>null}={}){let l=0;Wa&&clearTimeout(Wa);const o=async(s,c)=>{let u;try{try{u=await Nn()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(u=await Nn({method:"POST"}),u.ai_enabled&&(u=await Nn({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:f}=zi();if(u&&e&&(u=await Cf(f,u)),t&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=Eo(u.manual_injections||[]),u.ai_injections=Eo(u.ai_injections||[]),s(u);return}catch{if(l++,l>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),s();return}u&&r(u),Wa=setTimeout(()=>o(s),n)}};return new Promise(o)}async function Cf(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const n=async()=>await Nn({params:{run_ai:!0},method:"POST"}),i=fc().content_modified_time,r=e.content_modified_time?Fl(e.content_modified_time):null,l=i&&r===i;if(i&&e.ai_last_run&&e.ai_progress_message==="Failed"){const o=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(e.ai_last_run)<o)return await n()}return e.ai_last_run&&l||new Date(i||0)<=new Date(r||0)?e:await n()}async function Lf(t){var l;const e=(l=window.PlayPilotLinkInjections)==null?void 0:l.selector,i=t.filter(o=>o.manual).map(o=>({sid:o.sid,title:o.title,sentence:o.sentence,phrase_before:o.phrase_before,phrase_after:o.phrase_after,playpilot_url:o.playpilot_url,after_article:!!o.after_article,after_article_style:o.after_article_style||null,in_text:o.in_text??!0,inactive:!!o.inactive,removed:!!o.removed,type:o.type}));if(!await Nn({method:"POST",params:{private_token:Hl(),manual_injections:i,content_text_selector:e}}))throw new Error("saveLinkInjections response was faulty");return t}function Eo(t){return t.map(e=>({...e,key:gc(e.sid)}))}function gc(t){return t+"-"+Lr()}function Mf(t,e,n){return t.filter(i=>n.every(r=>i[r]===e[r])).length}function jf(t,e){return e.some(n=>t>=n.start&&t<n.end)}function mc(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Bl(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Io(t,e,n=[]){var l,o;const i=document.createTreeWalker(e);let r;for(;(r=i.nextNode())&&!((l=r.nodeValue)!=null&&l.includes(t)&&!n.includes(((o=r.parentNode)==null?void 0:o.nodeName)||"")););return r}function Ao(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Df(t,e,n,i){const r=mc(e),l=Bl(e),o=t.slice(0,i),s=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,u=new RegExp(`${l.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),f=s.replace(u,n);return o+f}function Rf(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function _t(t){return Bl(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function pc(t,e,n){const r=t.indexOf(e),l=Math.floor((n-e.length)/2);let o=Math.max(0,r-l),s=o+n;s>t.length&&(s=t.length,o=Math.max(0,s-n));let c=t.slice(o,s).trim();return o>0&&(c="…"+c),s<t.length&&(c+="…"),c}function _c(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),l=Co(i.innerText.slice(0,e+r)),o=i.innerText.slice(n+r),s=Co(Lo(l,2)),c=Lo(o,2);return{before:s,after:c}}function Co(t){return t.split("").reverse().join("")}function Lo(t,e=1){const n=t.match(/[^\s]+/g);return n?n.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function oa(t,e){let n=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)n++,i+=e.length;return n}function Of(t,e,n){const i=[];let r=0;for(;r<=t.length;){const l=e?t.indexOf(e,r):r;if(l===-1&&e)break;const o=e?l+e.length:l,s=n?t.indexOf(n,o):t.length;if(n&&s===-1)break;const c=t.slice(o,s);i.push({match:c,index:o}),r=n?s+n.length:t.length+1}return i}function Nf(t,e,n,i){const l=Of(t,n,i).filter(({match:s})=>Bl(s).includes(e));return l.length?l.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function qf(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 Hf(t,e,n=0){const i=e.innerHTML,r=[],l=zf(e);let o=i.indexOf(t);for(;o!==-1;)jf(o,l)&&r.push(o),o=i.indexOf(t,o+t.length);return r[n]??-1}function zf(t){const e=[],n=t.innerHTML;let i=!1,r=!1,l=!1,o=0;for(let s=0;s<n.length;s++){const c=n[s];if(!r&&!i&&c==="<"){i=!0,l&&(e.push({start:o,end:s}),l=!1);continue}if(i&&c==='"'&&(r=!r),i&&!r&&c===">"){i=!1;continue}!i&&!r&&!l&&(o=s,l=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function Ff(t,e){const n=[" ",".",",","<",">"];try{const i=n.map(s=>"\\"+s).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),l=new RegExp(`([${i}])${r}([${i}])`),o=e.match(l);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function yc(t){return t.ctrlKey||t.metaKey||t.button!==0}const fe={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",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",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"},Gt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Mn={Card:"tpi_card",Link:"tpi_link"};function Bf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function Gn(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Zr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const Pa=[{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 Vf(t=[]){return t.map(e=>{var n;return((n=Pa.find(i=>i.slug===e))==null?void 0:n.name)||""}).filter(Boolean)}const Ua="playpilot_user_id",Ga="playpilot_session_id";function wc(){if(!Vl())return null;try{const t=localStorage.getItem(Ua);return t||(localStorage.setItem(Ua,Lr(16)),localStorage.getItem(Ua))}catch{return null}}function Wf(){if(!Vl())return null;try{const t=sessionStorage.getItem(Ga);return t||(sessionStorage.setItem(Ga,Lr(16)),sessionStorage.getItem(Ga))}catch{return null}}function Vl(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&Gn("tracking")}const Uf="https://insights.playpilot.net";async function ve(t,e=null,n={}){var r,l,o,s,c,u;if(Zr())return;if(!Gn("tracking")){Zf(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:Vf(e.genres),providers:[...new Set(((l=e.providers)==null?void 0:l.map(f=>f.name))||[])],...n}),Vl()&&(n.user_id=wc(),n.session_id=Wf(),n.region=window.PlayPilotLinkInjections.region),n.version="8.39.0-beta.6",n.time_since_initialize=(o=window.PlayPilotLinkInjections)!=null&&o.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,n.url=ii(),n.url_params=If(),n.organization_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.organization_sid)||"undefined",n.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",n.device={type:window.innerWidth>Bn?"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(Uf,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:n,source:"ali",keepalive:!0})}),Gf({event:t,payload:n})}function Gf(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Mo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Zf(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 Kf(){if(Gn("tracking")){for(const{event:t,title:e,payload:n}of window.PlayPilotLinkInjections.queued_tracking_events||[])ve(t,e,n);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function bc(){if(!Gn("ads"))return[];if(window.PlayPilotLinkInjections.no_affiliate)return[];const t=un();if(!t)throw new Error("No token was provided");try{return await Ht(`/ads/browse/?api-token=${t}`)}catch(e){throw ve(fe.AdsFetchFailed,null,{status:e.status}),e}}function si(t){var e;return!Gn("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(n=>n.campaign_format===t)||null}function Yf(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 Jf={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"},kc="playpilot_retargeting_user_id",xc="playpilot_retargeting_region",Qf=500,jo=[];let Za=[],Ka=null;function rn(t,e={}){var c;const n=window[kc]||null,i=window[xc]||null,r=((c=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:c[1])||null,l=window.location.href,o={event:t,url:l,user_id:n,client_id:r,region:i,params:e},s=JSON.stringify(o);jo.includes(s)||(Za.push(o),jo.push(s),Ka&&clearTimeout(Ka),Ka=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Za)}),Za=[]},Qf))}function Sc(t,e={}){return()=>{Qe(()=>rn(t,e))}}function Xf(t,e={}){return n=>{const i=()=>rn(t,e);Qe(()=>(n.addEventListener("click",i),()=>n.removeEventListener("click",i)))}}async function jr(t=5e3){var n,i,r,l;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.region;if(e)return e;try{const s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(i=s==null?void 0:s.country)==null?void 0:i.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),$f(c),c}catch(o){return ve(fe.RegionRequestFailed,null,{message:o.message}),((l=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:l.fallback_region)||""}}async function Pc(t=""){try{return t||(t=await jr()),!t||Object.values(Jf).some(e=>e===t)}catch{return!0}}function $f(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[xc]=t)}async function Ta(t={}){const e=un();if(!e)throw new Error("No token was provided");if(t={...t,language:Mr(),include_count:!1},t.region!==null){let n=t.region||await jr();await Pc(n)||(n="gl"),t.region=n}return await Ht(`/titles/browse?api-token=${e}&`+hc(t))}async function Tc(t){return(await Ta({related_to_sid:t.sid})).results}async function Ec(t){const n=(await Ta({sids:t,no_region_filter:!0})).results[0];if(!n)throw new Error("No title was returned for sid: "+t);return n}const ev={"Where To Stream Online":{[p.English]:"Where to stream online",[p.Swedish]:"Var kan man streama online",[p.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[p.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[p.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[p.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[p.English]:"We may earn a commission from purchases made through some of the links below.",[p.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[p.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[p.English]:"An error occurred",[p.Swedish]:"Ett fel inträffade",[p.Danish]:"Der opstod en fejl"},Loading:{[p.English]:"Loading",[p.Swedish]:"Laddar",[p.Danish]:"Indlæser"},"Title Unavailable":{[p.English]:"This title is not currently available to stream.",[p.Swedish]:"Den här titeln går inte att streama just nu.",[p.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[p.English]:"is not currently available to stream.",[p.Swedish]:"går inte att streama just nu.",[p.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[p.English]:"is available to stream on",[p.Swedish]:"finns att streama på",[p.Danish]:"kan streames på"},"Is Available To Stream":{[p.English]:"is available to stream.",[p.Swedish]:"finns att streama.",[p.Danish]:"kan streames."},"View Streaming Options":{[p.English]:"View streaming options",[p.Swedish]:"Se streamingalternativ",[p.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[p.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[p.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[p.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[p.English]:"and",[p.Swedish]:"och",[p.Danish]:"og"},Minutes:{[p.English]:"minutes",[p.Swedish]:"minuter",[p.Danish]:"minutter"},"Type: movie":{[p.English]:"Movie",[p.Swedish]:"Film",[p.Danish]:"Film"},"Type: series":{[p.English]:"Series",[p.Swedish]:"Serie",[p.Danish]:"Serie"},Stream:{[p.English]:"Stream",[p.Swedish]:"Streama",[p.Danish]:"Stream"},Buy:{[p.English]:"Buy",[p.Swedish]:"Köp",[p.Danish]:"Køb"},Rent:{[p.English]:"Rent",[p.Swedish]:"Hyr",[p.Danish]:"Lej"},"Rent Or Buy":{[p.English]:"Rent or Buy",[p.Swedish]:"Hyr/köp",[p.Danish]:"Lej eller køb"},Watch:{[p.English]:"Watch",[p.Swedish]:"Titta nu",[p.Danish]:"Se nu"},"Category: AVOD":{[p.English]:"Stream for free",[p.Swedish]:"Streama gratis",[p.Danish]:"Stream gratis"},"Category: SVOD":{[p.English]:"Streaming services",[p.Swedish]:"Streamingtjänster",[p.Danish]:"Streamingtjenester"},"Category: RENT":{[p.English]:"Rent it",[p.Swedish]:"Hyr den",[p.Danish]:"Lej den"},"Category: BUY":{[p.English]:"Buy it",[p.Swedish]:"Köp den",[p.Danish]:"Køb den"},"Category: Other":{[p.English]:"Other",[p.Swedish]:"Annat",[p.Danish]:"Andet"},Share:{[p.English]:"Share",[p.Swedish]:"Dela",[p.Danish]:"Del"},"Copy URL":{[p.English]:"Copy URL",[p.Swedish]:"Kopiera URL",[p.Danish]:"Kopiér URL"},Email:{[p.English]:"Email",[p.Swedish]:"E-post",[p.Danish]:"E-mail"},"Show More":{[p.English]:"Show more",[p.Swedish]:"Visa mer",[p.Danish]:"Vis mere"},"Show Less":{[p.English]:"Show less",[p.Swedish]:"Visa mindre",[p.Danish]:"Vis mindre"},"Read More":{[p.English]:"Read more",[p.Swedish]:"Läs mer",[p.Danish]:"Læs mere"},"Read Less":{[p.English]:"Read less",[p.Swedish]:"Läs mindre",[p.Danish]:"Læs mindre"},Cast:{[p.English]:"Cast",[p.Swedish]:"Rollista",[p.Danish]:"Skuespillere"},"Similar Titles":{[p.English]:"Similar movies & shows",[p.Swedish]:"Liknande filmer och serier",[p.Danish]:"Lignende film og serier"},"Watch Trailer":{[p.English]:"Watch trailer",[p.Swedish]:"Se trailer",[p.Danish]:"Se trailer"},"Streaming Guide":{[p.English]:"Streaming Guide",[p.Swedish]:"Streaming Guide",[p.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[p.English]:"Discover and search all movies and TV shows",[p.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[p.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[p.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[p.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[p.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"Streaming Guide Description":{[p.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[p.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[p.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":{[p.English]:"Search movies and shows",[p.Swedish]:"Sök filmer och serier",[p.Danish]:"Søg film og serier"},Services:{[p.English]:"Services",[p.Swedish]:"Tjänster",[p.Danish]:"Tjenester"},Genres:{[p.English]:"Genres",[p.Swedish]:"Genrer",[p.Danish]:"Genrer"},IMDb:{[p.English]:"IMDb",[p.Swedish]:"IMDb",[p.Danish]:"IMDb"},Year:{[p.English]:"Year",[p.Swedish]:"År",[p.Danish]:"År"},Runtime:{[p.English]:"Runtime",[p.Swedish]:"Speltid",[p.Danish]:"Spilletid"},Countries:{[p.English]:"Countries",[p.Swedish]:"Länder",[p.Danish]:"Lande"},"All Filters":{[p.English]:"All filters",[p.Swedish]:"Alla filter",[p.Danish]:"Alle filtre"},"Sort By":{[p.English]:"Sort by",[p.Swedish]:"Sortera efter",[p.Danish]:"Sortér efter"},Popularity:{[p.English]:"Popularity",[p.Swedish]:"Popularitet",[p.Danish]:"Popularitet"},New:{[p.English]:"New",[p.Swedish]:"Nytt",[p.Danish]:"Nyt"},"Top Rated":{[p.English]:"Top Rated",[p.Swedish]:"Toppbetyg",[p.Danish]:"Højst vurderet"},"IMDb Rating":{[p.English]:"IMDb Rating",[p.Swedish]:"IMDb-betyg",[p.Danish]:"IMDb-vurdering"},"-popularity":{[p.English]:"Popularity",[p.Swedish]:"Popularitet",[p.Danish]:"Popularitet"},"-new":{[p.English]:"New",[p.Swedish]:"Nytt",[p.Danish]:"Nyt"},"-best":{[p.English]:"Top Rated",[p.Swedish]:"Toppbetyg",[p.Danish]:"Højst vurderet"},"-imdb_score":{[p.English]:"IMDb Rating",[p.Swedish]:"IMDb-betyg",[p.Danish]:"IMDb-vurdering"},Search:{[p.English]:"Search",[p.Swedish]:"Sök",[p.Danish]:"Søg"},"Born On":{[p.English]:"Born on",[p.Swedish]:"Född den",[p.Danish]:"Født den"},"Died On":{[p.English]:"Died on",[p.Swedish]:"Död den",[p.Danish]:"Død den"},Credits:{[p.English]:"Credits",[p.Swedish]:"Medverkande",[p.Danish]:"Medvirkende"},Home:{[p.English]:"Home",[p.Swedish]:"Hem",[p.Danish]:"Hjem"},Explore:{[p.English]:"Explore",[p.Swedish]:"Utforska",[p.Danish]:"Udforsk"},"Page Not Found":{[p.English]:"Page not found",[p.Swedish]:"Sidan hittades inte",[p.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[p.English]:"Mentioned in this article",[p.Swedish]:"Nämnda i den här artikeln",[p.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[p.English]:"Sorry, your region is not supported",[p.Swedish]:"Tyvärr stöds inte din region",[p.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[p.English]:"Show [[count]] more",[p.Swedish]:"Visa [[count]] till",[p.Danish]:"Vis [[count]] mere"},Movies:{[p.English]:"Movies",[p.Swedish]:"Filmer",[p.Danish]:"Film"},Shows:{[p.English]:"Shows",[p.Swedish]:"Serier",[p.Danish]:"Serier"},Documentaries:{[p.English]:"Documentaries",[p.Swedish]:"Dokumentärer",[p.Danish]:"Dokumentarer"},"List: Trending":{[p.English]:"Trending Movies & Shows",[p.Swedish]:"Trendande Titlar",[p.Danish]:"Populære film og serier"},"List: Upcoming":{[p.English]:"Upcoming Releases",[p.Swedish]:"Kommande Premiärer",[p.Danish]:"Mest ventede film"},"List: New":{[p.English]:"New Releases",[p.Swedish]:"Nya Filmer & Serier",[p.Danish]:"Nye film og serier"},"List: Demand":{[p.English]:"Always in Demand",[p.Swedish]:"Tidlösa Favoriter",[p.Danish]:"Tidløse favoritter"},"List: Cinema":{[p.English]:"Coming to Cinemas",[p.Swedish]:"Snart på Bio",[p.Danish]:"Kommende film"},"Explore All Movies And Shows":{[p.English]:"Explore all movies and TV shows",[p.Swedish]:"Utforska alla filmer och tv-serier",[p.Danish]:"Udforsk alle film og tv-serier"},"Job: all":{[p.English]:"All",[p.Swedish]:"Alla",[p.Danish]:"Alle"},"Job: actor":{[p.English]:"Actor",[p.Swedish]:"Skådespelare",[p.Danish]:"Skuespiller"},"Job: producer":{[p.English]:"Producer",[p.Swedish]:"Producent",[p.Danish]:"Producer"},"Job: executive-producer":{[p.English]:"Executive Producer",[p.Swedish]:"Verkställande producent",[p.Danish]:"Administrerende producer"},"Job: writer":{[p.English]:"Writer",[p.Swedish]:"Manusförfattare",[p.Danish]:"Manuskriptforfatter"},"Job: director":{[p.English]:"Director",[p.Swedish]:"Regissör",[p.Danish]:"Instruktør"},"Job: cinematographer":{[p.English]:"Cinematographer",[p.Swedish]:"Filmfotograf",[p.Danish]:"Filmfotograf"},"Job: editor":{[p.English]:"Editor",[p.Swedish]:"Redaktör",[p.Danish]:"Redaktør"},All:{[p.English]:"All",[p.Swedish]:"Alla",[p.Danish]:"Alle"},Unscripted:{[p.English]:"Unscripted",[p.Swedish]:"Oscripterat",[p.Danish]:"Umanuskriptet"},Independent:{[p.English]:"Independent",[p.Swedish]:"Indie",[p.Danish]:"Indie"},"Game Show":{[p.English]:"Game Show",[p.Swedish]:"Gameshow",[p.Danish]:"Quizshow"},"Film Noir":{[p.English]:"Film Noir",[p.Swedish]:"Film noir",[p.Danish]:"Film noir"},Entertainment:{[p.English]:"Entertainment",[p.Swedish]:"Underhållning",[p.Danish]:"Underholdning"},News:{[p.English]:"News",[p.Swedish]:"Nyheter",[p.Danish]:"Nyheder"},Short:{[p.English]:"Short",[p.Swedish]:"Kortfilm",[p.Danish]:"Kortfilm"},Bollywood:{[p.English]:"Bollywood",[p.Swedish]:"Bollywood",[p.Danish]:"Bollywood"},Concert:{[p.English]:"Concert",[p.Swedish]:"Konsert",[p.Danish]:"Koncert"},Arthouse:{[p.English]:"Arthouse",[p.Swedish]:"Arthouse",[p.Danish]:"Arthouse"},"Alternate Version":{[p.English]:"Alternate Version",[p.Swedish]:"Alternativ version",[p.Danish]:"Alternativ version"},"Reality TV":{[p.English]:"Reality TV",[p.Swedish]:"Reality-TV",[p.Danish]:"Reality-TV"},Culture:{[p.English]:"Culture",[p.Swedish]:"Kultur",[p.Danish]:"Kultur"},Drama:{[p.English]:"Drama",[p.Swedish]:"Drama",[p.Danish]:"Drama"},Crime:{[p.English]:"Crime",[p.Swedish]:"Kriminal",[p.Danish]:"Krimi"},Western:{[p.English]:"Western",[p.Swedish]:"Western",[p.Danish]:"Western"},Thriller:{[p.English]:"Thriller",[p.Swedish]:"Thriller",[p.Danish]:"Thriller"},Animation:{[p.English]:"Animation",[p.Swedish]:"Animerat",[p.Danish]:"Animation"},Mystery:{[p.English]:"Mystery",[p.Swedish]:"Mysterium",[p.Danish]:"Mysterium"},Science:{[p.English]:"Science",[p.Swedish]:"Vetenskap",[p.Danish]:"Videnskab"},Nature:{[p.English]:"Nature",[p.Swedish]:"Natur",[p.Danish]:"Natur"},War:{[p.English]:"War",[p.Swedish]:"Krig",[p.Danish]:"Krig"},"Sci-Fi":{[p.English]:"Sci-Fi",[p.Swedish]:"Sci-fi",[p.Danish]:"Sci-fi"},Documentary:{[p.English]:"Documentary",[p.Swedish]:"Dokumentär",[p.Danish]:"Dokumentar"},"Stand-up":{[p.English]:"Stand-up",[p.Swedish]:"Standup",[p.Danish]:"Stand-up"},"Talk Show":{[p.English]:"Talk Show",[p.Swedish]:"Talkshow",[p.Danish]:"Talkshow"},Fantasy:{[p.English]:"Fantasy",[p.Swedish]:"Fantasy",[p.Danish]:"Fantasy"},History:{[p.English]:"History",[p.Swedish]:"Historia",[p.Danish]:"Historie"},Adventure:{[p.English]:"Adventure",[p.Swedish]:"Äventyr",[p.Danish]:"Eventyr"},Action:{[p.English]:"Action",[p.Swedish]:"Action",[p.Danish]:"Action"},Horror:{[p.English]:"Horror",[p.Swedish]:"Skräck",[p.Danish]:"Gyser"},Comedy:{[p.English]:"Comedy",[p.Swedish]:"Komedi",[p.Danish]:"Komedie"},Biography:{[p.English]:"Biography",[p.Swedish]:"Biografi",[p.Danish]:"Biografi"},Music:{[p.English]:"Music",[p.Swedish]:"Musik",[p.Danish]:"Musik"},Sport:{[p.English]:"Sport",[p.Swedish]:"Sport",[p.Danish]:"Sport"},Romance:{[p.English]:"Romance",[p.Swedish]:"Romantik",[p.Danish]:"Romantik"},Kids:{[p.English]:"Kids",[p.Swedish]:"Barn",[p.Danish]:"Børn"},Lifestyle:{[p.English]:"Lifestyle",[p.Swedish]:"Livsstil",[p.Danish]:"Livsstil"},Musical:{[p.English]:"Musical",[p.Swedish]:"Musikal",[p.Danish]:"Musical"},Anime:{[p.English]:"Anime",[p.Swedish]:"Anime",[p.Danish]:"Anime"},Family:{[p.English]:"Family",[p.Swedish]:"Familj",[p.Danish]:"Familie"}};function oe(t,e=Mr()){var n;return((n=ev[t])==null?void 0:n[e])||t}const tv=t=>t;function Wl(t){const e=t-1;return e*e*e+1}function Do(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Nt(t,{delay:e=0,duration:n=400,easing:i=tv}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:l=>`opacity: ${l*r}`}}function bi(t,{delay:e=0,duration:n=400,easing:i=Wl,x:r=0,y:l=0,opacity:o=0}={}){const s=getComputedStyle(t),c=+s.opacity,u=s.transform==="none"?"":s.transform,f=c*(1-o),[v,d]=Do(r),[_,g]=Do(l);return{delay:e,duration:n,easing:i,css:(m,h)=>`
|
|
5
|
+
`)}function zi(t=(e=>(e=window.PlayPilotLinkInjections)==null?void 0:e.config)()||null){const n=Hi(),i=zl(n,(t==null?void 0:t.exclude_elements_selector)||""),r=dc(i);return{parentElement:n,elements:i,pageText:r}}function fc(){const t=Hi();return{content_heading:Pf(t),content_modified_time:Tf(t),content_published_time:Ef(t)}}function Pf(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Tf(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=vc().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Fl(n):null}function Ef(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=vc().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return n?Fl(n):null}function Fl(t){try{return new Date(t).toISOString()}catch{return null}}function vc(){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 ii(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function If(){try{const t=new URL(location.href);return Object.fromEntries(t.searchParams.entries())}catch{return{}}}function hc(t){return Object.entries(t).filter(([n,i])=>i!=null&&i!=="").map(([n,i])=>`${n}=${i}`).join("&")}function Af(t){return!!(t.exclude_urls_pattern&&ii().match(new RegExp(t.exclude_urls_pattern)))}let Wa=null;async function Nn({url:t=ii(),params:e={},method:n="GET"}={}){const i=un(),r=Sa()?await uc():!1,l=Mr();if(!i)throw new Error("No token was provided");const o=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${r?"&editorial_mode_enabled=true":""}&language=${l}`;let s;if(n==="POST"){const{pageText:c}=zi();e.run_ai&&(e.hash=Sf(c||""),e.page_text=c),e.url=t,e.metadata=fc(),s=await Ht(o,{method:"POST",body:e})}else s=await Ht(o+`&url=${t}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=s,s}async function To({requireCompletedResult:t=!1,runAiWhenRelevant:e=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:r=()=>null}={}){let l=0;Wa&&clearTimeout(Wa);const o=async(s,c)=>{let u;try{try{u=await Nn()}catch(v){throw console.error(v),(v==null?void 0:v.status)===404&&(u=await Nn({method:"POST"}),u.ai_enabled&&(u=await Nn({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:f}=zi();if(u&&e&&(u=await Cf(f,u)),t&&u.ai_enabled&&u.ai_running)throw new Error;u.manual_injections=Eo(u.manual_injections||[]),u.ai_injections=Eo(u.ai_injections||[]),s(u);return}catch{if(l++,l>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),s();return}u&&r(u),Wa=setTimeout(()=>o(s),n)}};return new Promise(o)}async function Cf(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const n=async()=>await Nn({params:{run_ai:!0},method:"POST"}),i=fc().content_modified_time,r=e.content_modified_time?Fl(e.content_modified_time):null,l=i&&r===i;if(i&&e.ai_last_run&&e.ai_progress_message==="Failed"){const o=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(e.ai_last_run)<o)return await n()}return e.ai_last_run&&l||new Date(i||0)<=new Date(r||0)?e:await n()}async function Lf(t){var l;const e=(l=window.PlayPilotLinkInjections)==null?void 0:l.selector,i=t.filter(o=>o.manual).map(o=>({sid:o.sid,title:o.title,sentence:o.sentence,phrase_before:o.phrase_before,phrase_after:o.phrase_after,playpilot_url:o.playpilot_url,after_article:!!o.after_article,after_article_style:o.after_article_style||null,in_text:o.in_text??!0,inactive:!!o.inactive,removed:!!o.removed,type:o.type}));if(!await Nn({method:"POST",params:{private_token:Hl(),manual_injections:i,content_text_selector:e}}))throw new Error("saveLinkInjections response was faulty");return t}function Eo(t){return t.map(e=>({...e,key:gc(e.sid)}))}function gc(t){return t+"-"+Lr()}function Mf(t,e,n){return t.filter(i=>n.every(r=>i[r]===e[r])).length}function jf(t,e){return e.some(n=>t>=n.start&&t<n.end)}function mc(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Bl(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Io(t,e,n=[]){var l,o;const i=document.createTreeWalker(e);let r;for(;(r=i.nextNode())&&!((l=r.nodeValue)!=null&&l.includes(t)&&!n.includes(((o=r.parentNode)==null?void 0:o.nodeName)||"")););return r}function Ao(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Df(t,e,n,i){const r=mc(e),l=Bl(e),o=t.slice(0,i),s=t.slice(i),c=/[-/\\^$*+?.()|[\]{}]/g,u=new RegExp(`${l.replace(c,"\\$&")}|${r.replace(c,"\\$&")}`),f=s.replace(u,n);return o+f}function Rf(t,e,n,i){return t.substring(0,n)+e+t.substring(i)}function _t(t){return Bl(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function pc(t,e,n){const r=t.indexOf(e),l=Math.floor((n-e.length)/2);let o=Math.max(0,r-l),s=o+n;s>t.length&&(s=t.length,o=Math.max(0,s-n));let c=t.slice(o,s).trim();return o>0&&(c="…"+c),s<t.length&&(c+="…"),c}function _c(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),l=Co(i.innerText.slice(0,e+r)),o=i.innerText.slice(n+r),s=Co(Lo(l,2)),c=Lo(o,2);return{before:s,after:c}}function Co(t){return t.split("").reverse().join("")}function Lo(t,e=1){const n=t.match(/[^\s]+/g);return n?n.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function oa(t,e){let n=0,i=0;for(;(i=t.indexOf(e,i))!==-1;)n++,i+=e.length;return n}function Of(t,e,n){const i=[];let r=0;for(;r<=t.length;){const l=e?t.indexOf(e,r):r;if(l===-1&&e)break;const o=e?l+e.length:l,s=n?t.indexOf(n,o):t.length;if(n&&s===-1)break;const c=t.slice(o,s);i.push({match:c,index:o}),r=n?s+n.length:t.length+1}return i}function Nf(t,e,n,i){const l=Of(t,n,i).filter(({match:s})=>Bl(s).includes(e));return l.length?l.reduce((s,c)=>!s||c.match.length<s.match.length?c:s):null}function qf(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 Hf(t,e,n=0){const i=e.innerHTML,r=[],l=zf(e);let o=i.indexOf(t);for(;o!==-1;)jf(o,l)&&r.push(o),o=i.indexOf(t,o+t.length);return r[n]??-1}function zf(t){const e=[],n=t.innerHTML;let i=!1,r=!1,l=!1,o=0;for(let s=0;s<n.length;s++){const c=n[s];if(!r&&!i&&c==="<"){i=!0,l&&(e.push({start:o,end:s}),l=!1);continue}if(i&&c==='"'&&(r=!r),i&&!r&&c===">"){i=!1;continue}!i&&!r&&!l&&(o=s,l=!0)}return!e.length&&t.textContent.length&&e.push({start:o,end:t.innerHTML.length}),e}function Ff(t,e){const n=[" ",".",",","<",">"];try{const i=n.map(s=>"\\"+s).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),l=new RegExp(`([${i}])${r}([${i}])`),o=e.match(l);return o!=null&&o.index?o.index+1:-1}catch{return-1}}function yc(t){return t.ctrlKey||t.metaKey||t.button!==0}const fe={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",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",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"},Gt={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest",TitleInterest:"TitleInterest"},Mn={Card:"tpi_card",Link:"tpi_link"};function Bf(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function Gn(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Zr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const Pa=[{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 Vf(t=[]){return t.map(e=>{var n;return((n=Pa.find(i=>i.slug===e))==null?void 0:n.name)||""}).filter(Boolean)}const Ua="playpilot_user_id",Ga="playpilot_session_id";function wc(){if(!Vl())return null;try{const t=localStorage.getItem(Ua);return t||(localStorage.setItem(Ua,Lr(16)),localStorage.getItem(Ua))}catch{return null}}function Wf(){if(!Vl())return null;try{const t=sessionStorage.getItem(Ga);return t||(sessionStorage.setItem(Ga,Lr(16)),sessionStorage.getItem(Ga))}catch{return null}}function Vl(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)&&Gn("tracking")}const Uf="https://insights.playpilot.net";async function ve(t,e=null,n={}){var r,l,o,s,c,u;if(Zr())return;if(!Gn("tracking")){Zf(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:Vf(e.genres),providers:[...new Set(((l=e.providers)==null?void 0:l.map(f=>f.name))||[])],...n}),Vl()&&(n.user_id=wc(),n.session_id=Wf(),n.region=window.PlayPilotLinkInjections.region),n.version="8.39.0",n.time_since_initialize=(o=window.PlayPilotLinkInjections)!=null&&o.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,n.url=ii(),n.url_params=If(),n.organization_sid=((s=window.PlayPilotLinkInjections)==null?void 0:s.organization_sid)||"undefined",n.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",n.device={type:window.innerWidth>Bn?"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(Uf,{headers:i,method:"POST",body:JSON.stringify({event:t,payload:n,source:"ali",keepalive:!0})}),Gf({event:t,payload:n})}function Gf(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Mo({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Zf(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 Kf(){if(Gn("tracking")){for(const{event:t,title:e,payload:n}of window.PlayPilotLinkInjections.queued_tracking_events||[])ve(t,e,n);window.PlayPilotLinkInjections.queued_tracking_events=[]}}async function bc(){if(!Gn("ads"))return[];if(window.PlayPilotLinkInjections.no_affiliate)return[];const t=un();if(!t)throw new Error("No token was provided");try{return await Ht(`/ads/browse/?api-token=${t}`)}catch(e){throw ve(fe.AdsFetchFailed,null,{status:e.status}),e}}function si(t){var e;return!Gn("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(n=>n.campaign_format===t)||null}function Yf(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 Jf={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"},kc="playpilot_retargeting_user_id",xc="playpilot_retargeting_region",Qf=500,jo=[];let Za=[],Ka=null;function rn(t,e={}){var c;const n=window[kc]||null,i=window[xc]||null,r=((c=document.cookie.match(/_ga=GA\d\.\d\.(\d+\.\d+)/))==null?void 0:c[1])||null,l=window.location.href,o={event:t,url:l,user_id:n,client_id:r,region:i,params:e},s=JSON.stringify(o);jo.includes(s)||(Za.push(o),jo.push(s),Ka&&clearTimeout(Ka),Ka=setTimeout(()=>{fetch("https://retargeting-do.playpilot.net/",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(Za)}),Za=[]},Qf))}function Sc(t,e={}){return()=>{Qe(()=>rn(t,e))}}function Xf(t,e={}){return n=>{const i=()=>rn(t,e);Qe(()=>(n.addEventListener("click",i),()=>n.removeEventListener("click",i)))}}async function jr(t=5e3){var n,i,r,l;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.region;if(e)return e;try{const s=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let c=(i=s==null?void 0:s.country)==null?void 0:i.toLowerCase();if(!c)throw new Error("No country was returned by api.country.is");return c==="gb"&&(c="uk"),$f(c),c}catch(o){return ve(fe.RegionRequestFailed,null,{message:o.message}),((l=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:l.fallback_region)||""}}async function Pc(t=""){try{return t||(t=await jr()),!t||Object.values(Jf).some(e=>e===t)}catch{return!0}}function $f(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t,window[xc]=t)}async function Ta(t={}){const e=un();if(!e)throw new Error("No token was provided");if(t={...t,language:Mr(),include_count:!1},t.region!==null){let n=t.region||await jr();await Pc(n)||(n="gl"),t.region=n}return await Ht(`/titles/browse?api-token=${e}&`+hc(t))}async function Tc(t){return(await Ta({related_to_sid:t.sid})).results}async function Ec(t){const n=(await Ta({sids:t,no_region_filter:!0})).results[0];if(!n)throw new Error("No title was returned for sid: "+t);return n}const ev={"Where To Stream Online":{[p.English]:"Where to stream online",[p.Swedish]:"Var kan man streama online",[p.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[p.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[p.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[p.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[p.English]:"We may earn a commission from purchases made through some of the links below.",[p.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[p.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[p.English]:"An error occurred",[p.Swedish]:"Ett fel inträffade",[p.Danish]:"Der opstod en fejl"},Loading:{[p.English]:"Loading",[p.Swedish]:"Laddar",[p.Danish]:"Indlæser"},"Title Unavailable":{[p.English]:"This title is not currently available to stream.",[p.Swedish]:"Den här titeln går inte att streama just nu.",[p.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[p.English]:"is not currently available to stream.",[p.Swedish]:"går inte att streama just nu.",[p.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[p.English]:"is available to stream on",[p.Swedish]:"finns att streama på",[p.Danish]:"kan streames på"},"Is Available To Stream":{[p.English]:"is available to stream.",[p.Swedish]:"finns att streama.",[p.Danish]:"kan streames."},"View Streaming Options":{[p.English]:"View streaming options",[p.Swedish]:"Se streamingalternativ",[p.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[p.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[p.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[p.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[p.English]:"and",[p.Swedish]:"och",[p.Danish]:"og"},Minutes:{[p.English]:"minutes",[p.Swedish]:"minuter",[p.Danish]:"minutter"},"Type: movie":{[p.English]:"Movie",[p.Swedish]:"Film",[p.Danish]:"Film"},"Type: series":{[p.English]:"Series",[p.Swedish]:"Serie",[p.Danish]:"Serie"},Stream:{[p.English]:"Stream",[p.Swedish]:"Streama",[p.Danish]:"Stream"},Buy:{[p.English]:"Buy",[p.Swedish]:"Köp",[p.Danish]:"Køb"},Rent:{[p.English]:"Rent",[p.Swedish]:"Hyr",[p.Danish]:"Lej"},"Rent Or Buy":{[p.English]:"Rent or Buy",[p.Swedish]:"Hyr/köp",[p.Danish]:"Lej eller køb"},Watch:{[p.English]:"Watch",[p.Swedish]:"Titta nu",[p.Danish]:"Se nu"},"Category: AVOD":{[p.English]:"Stream for free",[p.Swedish]:"Streama gratis",[p.Danish]:"Stream gratis"},"Category: SVOD":{[p.English]:"Streaming services",[p.Swedish]:"Streamingtjänster",[p.Danish]:"Streamingtjenester"},"Category: RENT":{[p.English]:"Rent it",[p.Swedish]:"Hyr den",[p.Danish]:"Lej den"},"Category: BUY":{[p.English]:"Buy it",[p.Swedish]:"Köp den",[p.Danish]:"Køb den"},"Category: Other":{[p.English]:"Other",[p.Swedish]:"Annat",[p.Danish]:"Andet"},Share:{[p.English]:"Share",[p.Swedish]:"Dela",[p.Danish]:"Del"},"Copy URL":{[p.English]:"Copy URL",[p.Swedish]:"Kopiera URL",[p.Danish]:"Kopiér URL"},Email:{[p.English]:"Email",[p.Swedish]:"E-post",[p.Danish]:"E-mail"},"Show More":{[p.English]:"Show more",[p.Swedish]:"Visa mer",[p.Danish]:"Vis mere"},"Show Less":{[p.English]:"Show less",[p.Swedish]:"Visa mindre",[p.Danish]:"Vis mindre"},"Read More":{[p.English]:"Read more",[p.Swedish]:"Läs mer",[p.Danish]:"Læs mere"},"Read Less":{[p.English]:"Read less",[p.Swedish]:"Läs mindre",[p.Danish]:"Læs mindre"},Cast:{[p.English]:"Cast",[p.Swedish]:"Rollista",[p.Danish]:"Skuespillere"},"Similar Titles":{[p.English]:"Similar movies & shows",[p.Swedish]:"Liknande filmer och serier",[p.Danish]:"Lignende film og serier"},"Watch Trailer":{[p.English]:"Watch trailer",[p.Swedish]:"Se trailer",[p.Danish]:"Se trailer"},"Streaming Guide":{[p.English]:"Streaming Guide",[p.Swedish]:"Streaming Guide",[p.Danish]:"Streaming Guide"},"Streaming Guide Subheading":{[p.English]:"Discover and search all movies and TV shows",[p.Swedish]:"Upptäck och sök bland alla filmer och tv-serier",[p.Danish]:"Opdag og søg i alle film og tv-serier"},"Streaming Guide Disclaimer":{[p.English]:'In collaboration with <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[p.Swedish]:'I samarbete med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>',[p.Danish]:'I samarbejde med <a href="https://www.playpilot.com/" target="_blank" rel="sponsored">PlayPilot.com</a>'},"Streaming Guide Description":{[p.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[p.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[p.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":{[p.English]:"Search movies and shows",[p.Swedish]:"Sök filmer och serier",[p.Danish]:"Søg film og serier"},Services:{[p.English]:"Services",[p.Swedish]:"Tjänster",[p.Danish]:"Tjenester"},Genres:{[p.English]:"Genres",[p.Swedish]:"Genrer",[p.Danish]:"Genrer"},IMDb:{[p.English]:"IMDb",[p.Swedish]:"IMDb",[p.Danish]:"IMDb"},Year:{[p.English]:"Year",[p.Swedish]:"År",[p.Danish]:"År"},Runtime:{[p.English]:"Runtime",[p.Swedish]:"Speltid",[p.Danish]:"Spilletid"},Countries:{[p.English]:"Countries",[p.Swedish]:"Länder",[p.Danish]:"Lande"},"All Filters":{[p.English]:"All filters",[p.Swedish]:"Alla filter",[p.Danish]:"Alle filtre"},"Sort By":{[p.English]:"Sort by",[p.Swedish]:"Sortera efter",[p.Danish]:"Sortér efter"},Popularity:{[p.English]:"Popularity",[p.Swedish]:"Popularitet",[p.Danish]:"Popularitet"},New:{[p.English]:"New",[p.Swedish]:"Nytt",[p.Danish]:"Nyt"},"Top Rated":{[p.English]:"Top Rated",[p.Swedish]:"Toppbetyg",[p.Danish]:"Højst vurderet"},"IMDb Rating":{[p.English]:"IMDb Rating",[p.Swedish]:"IMDb-betyg",[p.Danish]:"IMDb-vurdering"},"-popularity":{[p.English]:"Popularity",[p.Swedish]:"Popularitet",[p.Danish]:"Popularitet"},"-new":{[p.English]:"New",[p.Swedish]:"Nytt",[p.Danish]:"Nyt"},"-best":{[p.English]:"Top Rated",[p.Swedish]:"Toppbetyg",[p.Danish]:"Højst vurderet"},"-imdb_score":{[p.English]:"IMDb Rating",[p.Swedish]:"IMDb-betyg",[p.Danish]:"IMDb-vurdering"},Search:{[p.English]:"Search",[p.Swedish]:"Sök",[p.Danish]:"Søg"},"Born On":{[p.English]:"Born on",[p.Swedish]:"Född den",[p.Danish]:"Født den"},"Died On":{[p.English]:"Died on",[p.Swedish]:"Död den",[p.Danish]:"Død den"},Credits:{[p.English]:"Credits",[p.Swedish]:"Medverkande",[p.Danish]:"Medvirkende"},Home:{[p.English]:"Home",[p.Swedish]:"Hem",[p.Danish]:"Hjem"},Explore:{[p.English]:"Explore",[p.Swedish]:"Utforska",[p.Danish]:"Udforsk"},"Page Not Found":{[p.English]:"Page not found",[p.Swedish]:"Sidan hittades inte",[p.Danish]:"Siden blev ikke fundet"},"Mentioned In This Article":{[p.English]:"Mentioned in this article",[p.Swedish]:"Nämnda i den här artikeln",[p.Danish]:"Nævnt i denne artikel"},"Sorry Region Not Supported":{[p.English]:"Sorry, your region is not supported",[p.Swedish]:"Tyvärr stöds inte din region",[p.Danish]:"Beklager, din region understøttes ikke"},"Show Count More":{[p.English]:"Show [[count]] more",[p.Swedish]:"Visa [[count]] till",[p.Danish]:"Vis [[count]] mere"},Movies:{[p.English]:"Movies",[p.Swedish]:"Filmer",[p.Danish]:"Film"},Shows:{[p.English]:"Shows",[p.Swedish]:"Serier",[p.Danish]:"Serier"},Documentaries:{[p.English]:"Documentaries",[p.Swedish]:"Dokumentärer",[p.Danish]:"Dokumentarer"},"List: Trending":{[p.English]:"Trending Movies & Shows",[p.Swedish]:"Trendande Titlar",[p.Danish]:"Populære film og serier"},"List: Upcoming":{[p.English]:"Upcoming Releases",[p.Swedish]:"Kommande Premiärer",[p.Danish]:"Mest ventede film"},"List: New":{[p.English]:"New Releases",[p.Swedish]:"Nya Filmer & Serier",[p.Danish]:"Nye film og serier"},"List: Demand":{[p.English]:"Always in Demand",[p.Swedish]:"Tidlösa Favoriter",[p.Danish]:"Tidløse favoritter"},"List: Cinema":{[p.English]:"Coming to Cinemas",[p.Swedish]:"Snart på Bio",[p.Danish]:"Kommende film"},"Explore All Movies And Shows":{[p.English]:"Explore all movies and TV shows",[p.Swedish]:"Utforska alla filmer och tv-serier",[p.Danish]:"Udforsk alle film og tv-serier"},"Job: all":{[p.English]:"All",[p.Swedish]:"Alla",[p.Danish]:"Alle"},"Job: actor":{[p.English]:"Actor",[p.Swedish]:"Skådespelare",[p.Danish]:"Skuespiller"},"Job: producer":{[p.English]:"Producer",[p.Swedish]:"Producent",[p.Danish]:"Producer"},"Job: executive-producer":{[p.English]:"Executive Producer",[p.Swedish]:"Verkställande producent",[p.Danish]:"Administrerende producer"},"Job: writer":{[p.English]:"Writer",[p.Swedish]:"Manusförfattare",[p.Danish]:"Manuskriptforfatter"},"Job: director":{[p.English]:"Director",[p.Swedish]:"Regissör",[p.Danish]:"Instruktør"},"Job: cinematographer":{[p.English]:"Cinematographer",[p.Swedish]:"Filmfotograf",[p.Danish]:"Filmfotograf"},"Job: editor":{[p.English]:"Editor",[p.Swedish]:"Redaktör",[p.Danish]:"Redaktør"},All:{[p.English]:"All",[p.Swedish]:"Alla",[p.Danish]:"Alle"},Unscripted:{[p.English]:"Unscripted",[p.Swedish]:"Oscripterat",[p.Danish]:"Umanuskriptet"},Independent:{[p.English]:"Independent",[p.Swedish]:"Indie",[p.Danish]:"Indie"},"Game Show":{[p.English]:"Game Show",[p.Swedish]:"Gameshow",[p.Danish]:"Quizshow"},"Film Noir":{[p.English]:"Film Noir",[p.Swedish]:"Film noir",[p.Danish]:"Film noir"},Entertainment:{[p.English]:"Entertainment",[p.Swedish]:"Underhållning",[p.Danish]:"Underholdning"},News:{[p.English]:"News",[p.Swedish]:"Nyheter",[p.Danish]:"Nyheder"},Short:{[p.English]:"Short",[p.Swedish]:"Kortfilm",[p.Danish]:"Kortfilm"},Bollywood:{[p.English]:"Bollywood",[p.Swedish]:"Bollywood",[p.Danish]:"Bollywood"},Concert:{[p.English]:"Concert",[p.Swedish]:"Konsert",[p.Danish]:"Koncert"},Arthouse:{[p.English]:"Arthouse",[p.Swedish]:"Arthouse",[p.Danish]:"Arthouse"},"Alternate Version":{[p.English]:"Alternate Version",[p.Swedish]:"Alternativ version",[p.Danish]:"Alternativ version"},"Reality TV":{[p.English]:"Reality TV",[p.Swedish]:"Reality-TV",[p.Danish]:"Reality-TV"},Culture:{[p.English]:"Culture",[p.Swedish]:"Kultur",[p.Danish]:"Kultur"},Drama:{[p.English]:"Drama",[p.Swedish]:"Drama",[p.Danish]:"Drama"},Crime:{[p.English]:"Crime",[p.Swedish]:"Kriminal",[p.Danish]:"Krimi"},Western:{[p.English]:"Western",[p.Swedish]:"Western",[p.Danish]:"Western"},Thriller:{[p.English]:"Thriller",[p.Swedish]:"Thriller",[p.Danish]:"Thriller"},Animation:{[p.English]:"Animation",[p.Swedish]:"Animerat",[p.Danish]:"Animation"},Mystery:{[p.English]:"Mystery",[p.Swedish]:"Mysterium",[p.Danish]:"Mysterium"},Science:{[p.English]:"Science",[p.Swedish]:"Vetenskap",[p.Danish]:"Videnskab"},Nature:{[p.English]:"Nature",[p.Swedish]:"Natur",[p.Danish]:"Natur"},War:{[p.English]:"War",[p.Swedish]:"Krig",[p.Danish]:"Krig"},"Sci-Fi":{[p.English]:"Sci-Fi",[p.Swedish]:"Sci-fi",[p.Danish]:"Sci-fi"},Documentary:{[p.English]:"Documentary",[p.Swedish]:"Dokumentär",[p.Danish]:"Dokumentar"},"Stand-up":{[p.English]:"Stand-up",[p.Swedish]:"Standup",[p.Danish]:"Stand-up"},"Talk Show":{[p.English]:"Talk Show",[p.Swedish]:"Talkshow",[p.Danish]:"Talkshow"},Fantasy:{[p.English]:"Fantasy",[p.Swedish]:"Fantasy",[p.Danish]:"Fantasy"},History:{[p.English]:"History",[p.Swedish]:"Historia",[p.Danish]:"Historie"},Adventure:{[p.English]:"Adventure",[p.Swedish]:"Äventyr",[p.Danish]:"Eventyr"},Action:{[p.English]:"Action",[p.Swedish]:"Action",[p.Danish]:"Action"},Horror:{[p.English]:"Horror",[p.Swedish]:"Skräck",[p.Danish]:"Gyser"},Comedy:{[p.English]:"Comedy",[p.Swedish]:"Komedi",[p.Danish]:"Komedie"},Biography:{[p.English]:"Biography",[p.Swedish]:"Biografi",[p.Danish]:"Biografi"},Music:{[p.English]:"Music",[p.Swedish]:"Musik",[p.Danish]:"Musik"},Sport:{[p.English]:"Sport",[p.Swedish]:"Sport",[p.Danish]:"Sport"},Romance:{[p.English]:"Romance",[p.Swedish]:"Romantik",[p.Danish]:"Romantik"},Kids:{[p.English]:"Kids",[p.Swedish]:"Barn",[p.Danish]:"Børn"},Lifestyle:{[p.English]:"Lifestyle",[p.Swedish]:"Livsstil",[p.Danish]:"Livsstil"},Musical:{[p.English]:"Musical",[p.Swedish]:"Musikal",[p.Danish]:"Musical"},Anime:{[p.English]:"Anime",[p.Swedish]:"Anime",[p.Danish]:"Anime"},Family:{[p.English]:"Family",[p.Swedish]:"Familj",[p.Danish]:"Familie"}};function oe(t,e=Mr()){var n;return((n=ev[t])==null?void 0:n[e])||t}const tv=t=>t;function Wl(t){const e=t-1;return e*e*e+1}function Do(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function Nt(t,{delay:e=0,duration:n=400,easing:i=tv}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:n,easing:i,css:l=>`opacity: ${l*r}`}}function bi(t,{delay:e=0,duration:n=400,easing:i=Wl,x:r=0,y:l=0,opacity:o=0}={}){const s=getComputedStyle(t),c=+s.opacity,u=s.transform==="none"?"":s.transform,f=c*(1-o),[v,d]=Do(r),[_,g]=Do(l);return{delay:e,duration:n,easing:i,css:(m,h)=>`
|
|
6
6
|
transform: ${u} translate(${(1-m)*v}${d}, ${(1-m)*_}${g});
|
|
7
7
|
opacity: ${c-f*h}`}}function vr(t,{delay:e=0,duration:n=400,easing:i=Wl,axis:r="y"}={}){const l=getComputedStyle(t),o=+l.opacity,s=r==="y"?"height":"width",c=parseFloat(l[s]),u=r==="y"?["top","bottom"]:["left","right"],f=u.map(w=>`${w[0].toUpperCase()}${w.slice(1)}`),v=parseFloat(l[`padding${f[0]}`]),d=parseFloat(l[`padding${f[1]}`]),_=parseFloat(l[`margin${f[0]}`]),g=parseFloat(l[`margin${f[1]}`]),m=parseFloat(l[`border${f[0]}Width`]),h=parseFloat(l[`border${f[1]}Width`]);return{delay:e,duration:n,easing:i,css:w=>`overflow: hidden;opacity: ${Math.min(w*20,1)*o};${s}: ${w*c}px;padding-${u[0]}: ${w*v}px;padding-${u[1]}: ${w*d}px;margin-${u[0]}: ${w*_}px;margin-${u[1]}: ${w*g}px;border-${u[0]}-width: ${w*m}px;border-${u[1]}-width: ${w*h}px;min-${s}: 0`}}function Ji(t,{delay:e=0,duration:n=400,easing:i=Wl,start:r=0,opacity:l=0}={}){const o=getComputedStyle(t),s=+o.opacity,c=o.transform==="none"?"":o.transform,u=1-r,f=s*(1-l);return{delay:e,duration:n,easing:i,css:(v,d)=>`
|
|
8
8
|
transform: ${c} scale(${1-u*d});
|
package/dist/link-injections.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
(function(){"use strict";function m(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}const j="https://partner-api.playpilot.tech/1.0",w="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.39.0
|
|
1
|
+
(function(){"use strict";function m(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}const j="https://partner-api.playpilot.tech/1.0",w="https://cdn.jsdelivr.net/npm/@playpilot/tpi@8.39.0",h={};async function u(e,{headers:t={},method:n="GET",body:i=null,baseUrl:o=j}={}){const r=!_()&&n==="GET";if(r&&e in h)return h[e];const s=n==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(o+e,{method:n,headers:new Headers({...s,...t}),body:i?JSON.stringify(i):null});if(!(l!=null&&l.ok))throw l;const c=await l.text();let a=c;try{c&&(a=JSON.parse(c))}catch{}return r&&(h[e]=a),a}const y="EncryptedToken",k="articleReplacementEditToken",A="playpilot-editorial-mode";async function q({href:e=window.location.href,throwError:t=!1}={}){try{const n=m();if(!n)throw new Error("No token was provided");const i=T(e);if(!i)throw new Error("Could not be authenticated");return await u(`/external-pages/edit-authorization?api-token=${n}`,{method:"POST",body:{private_token:i}}),C(i),!0}catch(n){if(console.error(n),t)throw n}finally{M()}return!1}function T(e=""){var i,o;const t=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(t)return t;if(e){const r=new URL(e).searchParams.get(k);if(r)return decodeURI(r)}return((o=("; "+document.cookie).split(`; ${y}=`).pop())==null?void 0:o.split(";")[0])||""}function C(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const i="expires="+t.toUTCString();document.cookie=y+"="+e+";"+i+";path=/"}function _(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(A)==="true"||!!e}function M(){const e=new URL(window.location.href);e.searchParams.delete(k),window.history.replaceState({},"",e)}async function O(){const e=m();if(!e)throw new Error("No token was provided");try{return await await u(`/domains/config?api-token=${e}`)||null}catch{return null}}function D(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=t*31+i>>>0}return t.toString(16)}function N(e=5){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let n="";for(;n.length<e;)n+=t[Math.floor(Math.random()*t.length)];return n}const P={English:"en-US",Swedish:"sv-SE",Danish:"da-DK"};function R(){var i,o;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,t=Object.values(P);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const n=(o=document.querySelector("html"))==null?void 0:o.getAttribute("lang");if(n){if(t.includes(n))return n;const r=t.find(s=>s.toLowerCase().startsWith(n+"-"));if(r)return r}return P.English}function U(e,t=""){const n=[],i=[e];for(;i.length>0;){const o=i.pop();if(n.includes(o)||t&&o.matches(t)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1|H2|H3|H4|H5)$/.test(o.tagName)||o.offsetWidth<=1)continue;const r=Array.from(o.childNodes).some(c=>{var a;return c.nodeType===Node.TEXT_NODE&&((a=c.nodeValue)==null?void 0:a.trim())!==""});if(r&&o.tagName==="LI"){const c=o.closest("ul, ol");c&&!n.includes(c)&&n.push(c);continue}const s=o.tagName==="P"&&!!o.textContent;if(r||s){n.push(o);continue}const l=Array.from(o.children);for(let c=l.length-1;c>=0;c--)i.push(l[c])}return n}function E(){var t;const e=(t=window.PlayPilotLinkInjections)==null?void 0:t.selector;if(e){const n=e.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function $(e){return e.map(t=>t.innerText).join(`
|
|
2
2
|
|
|
3
|
-
`)}function S(e=(t=>(t=window.PlayPilotLinkInjections)==null?void 0:t.config)()||null){const n=E(),i=U(n,(e==null?void 0:e.exclude_elements_selector)||""),o=$(i);return{parentElement:n,elements:i,pageText:o}}function x(){const e=E();return{content_heading:v(e),content_modified_time:H(e),content_published_time:z(e)}}function v(e){const t=e.querySelector("h1")||document.querySelector("h1");return(t==null?void 0:t.innerText.trim())||null}function H(e){const t=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||e.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=L().dateModified||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function z(e){const t=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||e.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||e.querySelector("time")||document.querySelector("time")||e.querySelector("[datetime]")||document.querySelector("[datetime]")||null,n=L().datePublished||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function g(e){try{return new Date(e).toISOString()}catch{return null}}function L(){const t=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(n=>n.textContent.includes("dateModified")||n.textContent.includes("datePublished"));if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function
|
|
3
|
+
`)}function S(e=(t=>(t=window.PlayPilotLinkInjections)==null?void 0:t.config)()||null){const n=E(),i=U(n,(e==null?void 0:e.exclude_elements_selector)||""),o=$(i);return{parentElement:n,elements:i,pageText:o}}function x(){const e=E();return{content_heading:v(e),content_modified_time:H(e),content_published_time:z(e)}}function v(e){const t=e.querySelector("h1")||document.querySelector("h1");return(t==null?void 0:t.innerText.trim())||null}function H(e){const t=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||e.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=L().dateModified||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function z(e){const t=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||e.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||e.querySelector("time")||document.querySelector("time")||e.querySelector("[datetime]")||document.querySelector("[datetime]")||null,n=L().datePublished||(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?g(n):null}function g(e){try{return new Date(e).toISOString()}catch{return null}}function L(){const t=Array.from(document.querySelectorAll('[type="application/ld+json"]')).find(n=>n.textContent.includes("dateModified")||n.textContent.includes("datePublished"));if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function I(){const e=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+e}function B(e){return!!(e.exclude_urls_pattern&&I().match(new RegExp(e.exclude_urls_pattern)))}let p=null;async function d({url:e=I(),params:t={},method:n="GET"}={}){const i=m(),o=_()?await q():!1,r=R();if(!i)throw new Error("No token was provided");const s=`/external-pages/?api-token=${i}&include_title_details=true&include_participant_details=true${o?"&editorial_mode_enabled=true":""}&language=${r}`;let l;if(n==="POST"){const{pageText:c}=S();t.run_ai&&(t.hash=D(c||""),t.page_text=c),t.url=e,t.metadata=x(),l=await u(s,{method:"POST",body:t})}else l=await u(s+`&url=${e}`,{method:"GET"});return window.PlayPilotLinkInjections.last_successful_fetch=l,l}async function G({requireCompletedResult:e=!1,runAiWhenRelevant:t=!1,pollInterval:n=3e3,maxTries:i=600,onpoll:o=()=>null}={}){let r=0;p&&clearTimeout(p);const s=async(l,c)=>{let a;try{try{a=await d()}catch(f){throw console.error(f),(f==null?void 0:f.status)===404&&(a=await d({method:"POST"}),a.ai_enabled&&(a=await d({params:{run_ai:!0},method:"POST"}))),new Error}const{pageText:V}=S();if(a&&t&&(a=await F(V,a)),e&&a.ai_enabled&&a.ai_running)throw new Error;a.manual_injections=b(a.manual_injections||[]),a.ai_injections=b(a.ai_injections||[]),l(a);return}catch{if(r++,r>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),l();return}a&&o(a),p=setTimeout(()=>s(l),n)}};return new Promise(s)}async function F(e,t){if(!e||!t.ai_enabled||t.ai_running)return t;const n=async()=>await d({params:{run_ai:!0},method:"POST"}),i=x().content_modified_time,o=t.content_modified_time?g(t.content_modified_time):null,r=i&&o===i;if(i&&t.ai_last_run&&t.ai_progress_message==="Failed"){const s=new Date(Date.now()-6e5);if(new Date().getTime()-new Date(i).getTime()<864e5&&new Date(t.ai_last_run)<s)return await n()}return t.ai_last_run&&r||new Date(i||0)<=new Date(o||0)?t:await n()}function b(e){return e.map(t=>({...t,key:J(t.sid)}))}function J(e){return e+"-"+N()}function K(e){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=e)}function W(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}window.PlayPilotLinkInjections||(window.PlayPilotLinkInjections={token:"",editorial_token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,last_successful_fetch:null,tracked_events:[],queued_tracking_events:[],split_test_identifiers:{},evaluated_link_injections:[],initial_link_injections_promise:null,time_at_initialize:0,ads:[],video_playtimes:{},require_consent:!0,no_affiliate:!1,consents:{ads:!1,pixels:!1,tracking:!1,split_tests:!1,affiliate:!1},config:{},app:null,async initialize(e={token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,region:null,organization_sid:null,domain_sid:null,editorial_token:"",require_consent:!0,no_affiliate:!1}){if(!e.token){console.error("An API token is required.");return}this.token=e.token,this.editorial_token=e.editorial_token,this.selector=e.selector,this.after_article_selector=e.after_article_selector,this.after_article_insert_position=e.after_article_insert_position,this.language=e.language,this.region=e.region,this.organization_sid=e.organization_sid,this.domain_sid=e.domain_sid,this.require_consent=e.require_consent,this.no_affiliate=e.no_affiliate,this.time_at_initialize=Date.now(),this.require_consent===!1&&K({ads:!0,pixels:!0,tracking:!0,split_tests:!0,affiliate:!0}),this.config=await O()||{},!B(this.config)&&(this.initial_link_injections_promise=G({maxTries:1,runAiWhenRelevant:!W()}),this.mount())},destroy(){var e;(e=window.PlayPilotMount)==null||e.destroy(),delete window.PlayPilotLinkInjections},mount(){const e="playpilot-mount",t="playpilot-mount-style",n=s=>{var l,c,a;s.target&&(s.target.dataset.loaded="true",!(((l=document.getElementById(e))==null?void 0:l.dataset.loaded)!=="true"||((c=document.getElementById(t))==null?void 0:c.dataset.loaded)!=="true")&&((a=window.PlayPilotMount)==null||a.mount()))},i=_()||T(),o=document.createElement("script");o.id=e,o.src=`${w}/dist/${i?"editorial.":""}mount.js`,o.defer=!0,o.onload=n;const r=document.createElement("link");r.id=t,r.rel="stylesheet",r.type="text/css",r.href=`${w}/dist/mount.css`,r.onload=n,document.body.appendChild(o),document.head.appendChild(r)}})})();
|
package/dist/mount.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(() => {
|
|
2
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-beta.6",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(`
|
|
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(`
|
|
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-beta.6",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)=>`
|
|
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
6
|
transform: ${u} translate(${(1-_)*h}${d}, ${(1-_)*p}${m});
|
|
7
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)=>`
|
|
8
8
|
transform: ${c} scale(${1-u*d});
|