@playpilot/tpi 8.7.1 → 8.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mount.js CHANGED
@@ -1,10 +1,10 @@
1
1
  var ig=Object.defineProperty;var ls=Ee=>{throw TypeError(Ee)};var ag=(Ee,Pe,qe)=>Pe in Ee?ig(Ee,Pe,{enumerable:!0,configurable:!0,writable:!0,value:qe}):Ee[Pe]=qe;var Ct=(Ee,Pe,qe)=>ag(Ee,typeof Pe!="symbol"?Pe+"":Pe,qe),Bn=(Ee,Pe,qe)=>Pe.has(Ee)||ls("Cannot "+qe);var A=(Ee,Pe,qe)=>(Bn(Ee,Pe,"read from private field"),qe?qe.call(Ee):Pe.get(Ee)),ue=(Ee,Pe,qe)=>Pe.has(Ee)?ls("Cannot add the same private member more than once"):Pe instanceof WeakSet?Pe.add(Ee):Pe.set(Ee,qe),se=(Ee,Pe,qe,Ra)=>(Bn(Ee,Pe,"write to private field"),Ra?Ra.call(Ee,qe):Pe.set(Ee,qe),qe),ze=(Ee,Pe,qe)=>(Bn(Ee,Pe,"access private method"),qe);(function(){"use strict";var na,la,Di,qi,Aa,oa,sa,He,Fn,Fi,Hn,os,ss,gt,mt,Rn,Ft,Oi,Ht,yt,st,Vt,ri,mi,Ri,yi,Ni,bi,br,Ke,rg,ng,Vn,Tr,Er,Un,Tt,Ut,ut,Bi,La,Ma,wr,wi,ca,Da,xr,cs,as,da,Et,xi,kr,pa,ds,ps,qa,Oa;var Ee=document.createElement("style");Ee.textContent=`img.svelte-p6g2a{display:block;width:100%;height:auto;margin:0!important;color:transparent}.overlay.svelte-f0c4xl{z-index:2147483647;box-sizing:border-box;display:flex;align-items:center;justify-content:center;position:fixed;top:0;right:0;bottom:0;left:0;background:var(--playpilot-detail-backdrop, rgba(0, 0, 0, .95))}.overlay.svelte-f0c4xl iframe{z-index:1;position:relative;display:block;width:95vmin;height:auto;aspect-ratio:16/9;box-shadow:0 0 64px #ffffff26;background:#000}.backdrop.svelte-f0c4xl{z-index:0;position:fixed;top:0;right:0;bottom:0;left:0}.close.svelte-f0c4xl{-webkit-appearance:none;-moz-appearance:none;appearance:none;z-index:1;position:fixed;top:32px;right:32px;padding:0;margin:0;border:0;background:transparent;color:#fff;cursor:pointer}.close.svelte-f0c4xl:hover{transform:scale(1.1)}.close.svelte-f0c4xl:active{transform:scale(1)}iframe.svelte-1ivh34t{width:100%;height:100%}.mute.svelte-1ivh34t{z-index:10;display:flex;align-items:center;justify-content:center;position:absolute;top:8px;right:8px;padding:4px;border:0;border-radius:50%;background:transparent;filter:drop-shadow(2px 2px 2px rgba(0,0,0,.5));transition:transform 50ms;cursor:pointer;color:#fff}.mute.svelte-1ivh34t:hover{outline:1px solid white;transform:scale(1.1)}.mute.svelte-1ivh34t:active{transform:scale(.95)}.slider.svelte-1gs8ha8{overflow-x:hidden;touch-action:pan-y}@media (pointer: fine){.slider.passed-threshold.svelte-1gs8ha8{pointer-events:none}}.slider-content.svelte-1gs8ha8{display:flex;align-items:flex-start;width:fit-content;gap:var(--gap, 0);-webkit-user-select:none;user-select:none;transition:transform}@media (prefers-reduced-motion){.slider-content.svelte-1gs8ha8{transition:none}}.up.svelte-1m6nwwy{transform:rotate(270deg)}.right.svelte-1m6nwwy{margin-left:2px}.down.svelte-1m6nwwy{transform:rotate(90deg)}.left.svelte-1m6nwwy{margin-right:2px;transform:rotate(180deg)}.heading.svelte-1ayf7b5{margin:16px 0 8px;font-size:var(--playpilot-rail-title-font-size, 18px);line-height:normal;font-weight:var(--playpilot-rail-title-font-weight, inherit);color:var(--playpilot-rail-title-text-color, var(--playpilot-text-color));font-family:var(--playpilot-rail-title-font-family, var(--playpilot-font-family))}.rail.svelte-1ayf7b5{--gap: var(--rail-gap, 8px);position:relative;width:calc(100% + 32px);margin:0 -16px}.rail.svelte-1ayf7b5 .slider{padding:0 16px}.rail.svelte-1ayf7b5 .slider-content>:last-child{margin-right:32px}.arrow.svelte-1ayf7b5{display:none;align-items:center;justify-content:center;position:absolute;left:32px;top:50%;width:32px;height:32px;padding:0;margin:0;border:var(--playpilot-rails-arrow-border, 0);border-radius:50%;transform:translate(-50%) translateY(-50%);background:var(--playpilot-rails-arrow-background, var(--playpilot-content-light));z-index:2;cursor:pointer;color:var(--playpilot-rails-arrow-color, var(--playpilot-text-color))}@media (hover: hover){.arrow.svelte-1ayf7b5{display:flex}}.arrow.svelte-1ayf7b5:hover{filter:brightness(1.2)}.arrow.right.svelte-1ayf7b5{left:auto;right:0}.titles.svelte-12ph9f6{--width: var(--playpilot-rail-size-default, 96px);--image-height: calc(var(--width) * 3 / 2);--expanded-width: calc(var(--image-height) / 9 * 16);--border-radius: var(--playpilot-rail-border-radius, var(--playpilot-border-radius))}.titles.with-aside.svelte-12ph9f6{--rail-gap: 16px}.titles.large.svelte-12ph9f6{--width: var(--playpilot-rail-size-large, 120px)}.titles.flexible.svelte-12ph9f6{--width: var(--playpilot-rail-size-flexible, clamp(96px, var(--playpilot-explore-width, 1000px) * .18, 184px))}.title.svelte-12ph9f6{width:unset;font-size:var(--playpilot-rail-font-size, var(--playpilot-font-size-small));line-height:1.2}.title.svelte-12ph9f6:hover,.title.svelte-12ph9f6:active{filter:brightness(1.1)}.with-aside.svelte-12ph9f6 .title:where(.svelte-12ph9f6){display:grid;grid-template:"media heading" "media aside";grid-template-rows:1lh auto;grid-template-columns:1fr 1fr;align-items:flex-start;gap:4px 8px;width:calc(var(--width) * 2);height:var(--image-height);overflow:hidden;font-size:clamp(var(--playpilot-font-size-small),var(--playpilot-explore-width, 1000px) * .015,var(--playpilot-font-size-base))}.with-aside.svelte-12ph9f6 .title.expanded:where(.svelte-12ph9f6){width:calc(var(--expanded-width) + var(--width))}.media.svelte-12ph9f6{grid-area:media;width:var(--width);border-radius:var(--border-radius);transition:width .2s;transition-delay:1ms;overflow:hidden}.expanded.svelte-12ph9f6 .media:where(.svelte-12ph9f6){width:var(--expanded-width);transition-delay:0ms}@keyframes svelte-12ph9f6-fade-iframe{to{opacity:1}}.video.svelte-12ph9f6{position:relative;height:var(--image-height);width:var(--expanded-width);aspect-ratio:16/9;border-radius:var(--border-radius);overflow:hidden;background:#000;z-index:1}.video.svelte-12ph9f6 iframe{opacity:0;animation:svelte-12ph9f6-fade-iframe .5s .5s forwards}.video.svelte-12ph9f6+.poster{position:absolute;top:0}.video-overlay.svelte-12ph9f6{position:absolute;top:0;right:0;bottom:0;left:0;z-index:2}.video-fallback.svelte-12ph9f6{position:absolute;object-fit:cover;height:var(--image-height);width:var(--expanded-width)}.poster.svelte-12ph9f6{display:block;height:var(--image-height);width:var(--width);aspect-ratio:2/3;border-radius:var(--border-radius);background:var(--playpilot-detail-background-light, var(--playpilot-lighter));text-decoration:none;overflow:hidden}.heading.svelte-12ph9f6{grid-area:heading;display:-webkit-box;padding-top:8px;overflow:hidden;max-width:var(--width);text-decoration:none;color:var(--playpilot-rail-text-color, var(--playpilot-text-color-alt))!important;font-style:normal!important;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.with-aside.svelte-12ph9f6 .heading:where(.svelte-12ph9f6){width:100%;padding-top:0;color:var(--playpilot-text-color)!important;font-weight:var(--playpilot-rail-aside-heading-font-weight, var(--playpilot-font-bold));font-family:var(--playpilot-rail-aside-heading-font-family, var(--playpilot-font-family));line-clamp:1;-webkit-line-clamp:1}.aside.svelte-12ph9f6{grid-area:aside;display:-webkit-box;height:100%;-webkit-mask-image:linear-gradient(to top,transparent .5lh,white 1.5lh);mask-image:linear-gradient(to top,transparent .5lh,white 1.5lh);overflow:hidden;color:var(--playpilot-rail-text-color, var(--playpilot-text-color-alt))!important;font-family:var(--playpilot-rail-aside-font-family, var(--playpilot-font-family));font-size:.9em;line-height:1.3}.skeleton.svelte-12ph9f6{display:block;height:1em;width:100%;background:var(--playpilot-detail-background-light, var(--playpilot-lighter));border-radius:32px;color:transparent}.skeleton.svelte-12ph9f6:last-child{margin-top:4.8px;width:50%}.aside-skeleton.svelte-12ph9f6{display:flex;flex-direction:column;gap:4.8px;width:100%}.aside-skeleton.svelte-12ph9f6 .skeleton:where(.svelte-12ph9f6){margin:0}.rail.svelte-1b834ry{margin-top:var(--playpilot-explore-rail-spacing-mobile, 16px)}@media (min-width: 600px){.rail.svelte-1b834ry{margin-top:var(--playpilot-explore-rail-spacing-desktop, 32px)}}.button.svelte-5bqh67{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:100%;align-items:center;justify-content:center;gap:4px;padding:.25em .5em;background:transparent;border:var(--playpilot-button-border, 0);border-radius:var(--playpilot-button-border-radius, var(--playpilot-border-radius));color:var(--playpilot-button-text-color, var(--playpilot-text-color-alt));font-size:inherit;font-family:inherit;font-weight:var(--playpilot-button-font-weight, var(--playpilot-normal));cursor:pointer}.button.svelte-5bqh67 svg{--icon-size: 1.5em;width:var(--icon-size);height:var(--icon-size);opacity:.75}.button.svelte-5bqh67 svg:last-child{--icon-size: .85em}.filled.svelte-5bqh67{background:var(--playpilot-button-filled-background, var(--playpilot-content))}.filled.svelte-5bqh67:hover,.filled.svelte-5bqh67:active{background:var(--playpilot-button-filled-hover-background, var(--playpilot-content-light));color:var(--playpilot-button-filled-hover-text-color, var(--playpilot-text-color))}.filled.active.svelte-5bqh67{box-shadow:inset 0 0 0 1px currentColor}.border.svelte-5bqh67{box-shadow:inset 0 0 0 1px var(--playpilot-button-border-color, var(--playpilot-content-light))}.border.svelte-5bqh67:hover,.border.svelte-5bqh67:active,.border.active.svelte-5bqh67{background:var(--playpilot-button-hover-border-color, var(--playpilot-lighter));color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.border.active.svelte-5bqh67{box-shadow:inset 0 0 0 1px var(--playpilot-button-active-border-color, var(--playpilot-text-color-alt));filter:brightness(var(--playpilot-hover-filter-brightness))}.link.svelte-5bqh67{display:inline-flex;height:auto;padding:0;font-size:inherit;line-height:inherit}.link.svelte-5bqh67:hover,.link.svelte-5bqh67:active{color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.link.svelte-5bqh67 svg{width:.85em;height:.85em}.large.svelte-5bqh67{padding:.5em 1em}.wide.svelte-5bqh67{font-size:16px;padding:.5em 1.5em}.wide.svelte-5bqh67 svg:first-child{--icon-size: 15.2px}img.svelte-16jzx4f{position:absolute;width:1px;height:1px;border:0;opacity:0}.playlink.svelte-1tx3tz8{display:inline-block;width:var(--size);height:var(--size);background:var(--playpilot-playlink-background, var(--playpilot-light));border-radius:var(--playpilot-playlink-border-radius, calc(var(--size) * .25));overflow:hidden}.playlink.svelte-1tx3tz8:hover,.playlink.svelte-1tx3tz8:active{filter:brightness(var(--playpilot-playlink-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-playlink-hover-background, var(--playpilot-lighter))!important;text-decoration:none!important;outline:2px solid var(--playpilot-detail-text-color, var(--playpilot-text-color))}.playlink.svelte-1tx3tz8 img:where(.svelte-1tx3tz8){display:block;margin:0;width:auto}.playlinks.svelte-1plv45z{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}.more.svelte-1plv45z{display:flex;align-items:center;padding:0 2px;color:var(--playpilot-list-item-more-text-color, var(--playpilot-text-color-alt));font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));line-height:normal}.empty.svelte-1plv45z{margin-top:4px;opacity:.65;font-style:italic;font-size:.85em;white-space:initial;color:var(--playpilot-list-item-empty-text-color, var(--playpilot-text-color-alt))}.title.svelte-12igath{position:relative;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;flex-direction:column;width:100%;background:transparent;padding:0;border:0;border-radius:var(--playpilot-grid-item-border-radius, var(--playpilot-border-radius));transition:transform .1s;text-decoration:none;font-style:normal!important;font-family:var(--playpilot-font-family);line-height:normal;cursor:pointer}.title.svelte-12igath:hover{filter:brightness(var(--playpilot-grid-item-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-grid-item-hover-background, var(--playpilot-lighter));box-shadow:var(--playpilot-grid-item-hover-shadow, 0 0 0 8px var(--playpilot-lighter));transform:scale(var(--playpilot-grid-item-hover-scale, 1.025));z-index:1}.poster.svelte-12igath{position:relative;width:100%;height:auto;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));overflow:hidden}.content.svelte-12igath{padding-top:8px}.heading.svelte-12igath{margin-bottom:8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:inherit;text-align:left;font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;color:var(--playpilot-grid-item-title-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-grid-item-title-font-weight, var(--playpilot-font-bold))}.title.svelte-12igath:hover .heading:where(.svelte-12igath){color:var(--playpilot-grid-item-title-hover-text-color, var(--playpilot-text-color));text-decoration:var(--playpilot-grid-item-title-hover-text-decoration, var(--playpilot-none))}.meta.svelte-12igath{display:flex;justify-content:space-between;position:absolute;top:0;left:0;width:100%;padding:8px 8px 16px;background:linear-gradient(to bottom,rgba(0,0,0,.75),transparent);color:#fff;text-shadow:0 1px 0 rgba(0,0,0,.5),0 1px 2px rgba(0,0,0,.25)}.meta.svelte-12igath svg{filter:drop-shadow(0 1px 0 rgba(0,0,0,.35))}.imdb.svelte-12igath{display:flex;align-items:center;gap:4px}.skeleton.svelte-1uz2nzg{width:100%}.poster.svelte-1uz2nzg{flex:0 0 auto;height:auto;width:100%;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-content)}.lines.svelte-1uz2nzg{display:flex;flex-direction:column;margin-top:8px;gap:8px;width:100%}.line.svelte-1uz2nzg{height:var(--playpilot-font-size-base);background:var(--playpilot-content);border-radius:5rem}.title.svelte-pkkpyl{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;width:100%;background:var(--playpilot-list-item-background, var(--playpilot-lighter));padding:var(--playpilot-list-item-padding, 8px);border:0;border-radius:var(--playpilot-list-item-border-radius, var(--playpilot-border-radius));text-decoration:none;font-style:normal!important;font-family:var(--playpilot-font-family);line-height:normal;cursor:pointer}.title.svelte-pkkpyl:hover{filter:brightness(var(--playpilot-list-item-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-list-item-hover-background, var(--playpilot-lighter));box-shadow:var(--playpilot-list-item-hover-shadow, var(--playpilot-none))}.poster.svelte-pkkpyl{flex:0 0 auto;height:auto;align-self:start;width:66px;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));overflow:hidden}.content.svelte-pkkpyl{padding-left:16px;font-family:inherit;text-align:left;color:var(--playpilot-list-item-text-color, var(--playpilot-text-color));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal}@media (min-width: 600px){.content.svelte-pkkpyl{padding-right:16px}}.heading.svelte-pkkpyl{color:var(--playpilot-list-item-title-text-color, var(--playpilot-text-color));font-weight:var(--playpilot-list-item-title-font-weight, var(--playpilot-font-bold))}.meta.svelte-pkkpyl{display:flex;flex-wrap:wrap;gap:0 8px;margin:2px 0;font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));font-weight:var(--playpilot-list-item-meta-font-weight, var(--playpilot-font-bold));color:var(--playpilot-list-item-meta-text-color, var(--playpilot-text-color-alt))}.meta.svelte-pkkpyl>div:where(.svelte-pkkpyl){text-transform:capitalize}.imdb.svelte-pkkpyl{display:flex;align-items:center;gap:4px}.description.svelte-pkkpyl{margin-bottom:6px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;line-clamp:1;-webkit-line-clamp:1;-webkit-box-orient:vertical;font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));color:var(--playpilot-list-item-description-text-color, var(--playpilot-text-color))}.description.large.svelte-pkkpyl{line-clamp:2;-webkit-line-clamp:2}.action.svelte-pkkpyl{display:flex;margin:0 8px 0 auto;padding-left:8px;align-self:center;color:var(--playpilot-list-item-action-color, var(--playpilot-text-color-alt))}.action.svelte-pkkpyl:hover,.action.svelte-pkkpyl:active{color:var(--playpilot-list-item-action-hover-color, var(--playpilot-text-color))}.skeleton.svelte-17sb7p8{display:flex;align-items:center;width:100%;gap:16px}.poster.svelte-17sb7p8{flex:0 0 auto;height:auto;align-self:start;width:66px;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-content)}.lines.svelte-17sb7p8{display:flex;flex-direction:column;gap:8px;width:100%}.line.svelte-17sb7p8{width:60%;height:var(--playpilot-font-size-base);background:var(--playpilot-content);border-radius:5rem}p.svelte-4bt48{margin:0}strong.svelte-4bt48{font-size:var(--playpilot-font-size-large)}.empty.svelte-4bt48{max-width:var(--playpilot-explore-header-max-width, 600px);padding:32px;border-radius:var(--playpilot-border-radius-large);background:var(--playpilot-lighter)}.titles.svelte-qc99of{--playpilot-list-item-padding: 0;--playpilot-list-item-background: transparent;--playpilot-list-item-hover-shadow: 0 0 0 4px var(--playpilot-lighter);--playpilot-detail-image-background: var(--playpilot-content);display:flex;flex-direction:column;gap:8px;margin-top:24px}.titles.grid.svelte-qc99of{display:grid;grid-template-columns:repeat(var(--grid-columns),minmax(120px,1fr));gap:16px}.show-more.svelte-qc99of{flex:0 0 100%;display:grid;margin-top:16px}.show-more.grid.svelte-qc99of{margin:32px auto 0;max-width:600px;width:100%}.search.svelte-1pnrmr6{position:relative}.icon.svelte-1pnrmr6{display:flex;align-items:center;position:absolute;height:100%;left:16px;color:var(--playpilot-text-color-alt);opacity:.75}.input.svelte-1pnrmr6{width:100%;max-width:var(--playpilot-explore-header-max-width, 600px);padding:12px 16px 12px 48px;border:var(--playpilot-explore-search-border, 0);border-radius:var(--playpilot-exlore-search-border-radius, var(--playpilot-border-radius));background:var(--playpilot-explore-search-background, var(--playpilot-content));transition:none;color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-large);font-family:var(--playpilot-font-family)}.input.svelte-1pnrmr6:focus{outline:var(--playpilot-explore-search-focus-outline, 1px solid white);outline-offset:0}.input.svelte-1pnrmr6::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.header.svelte-dfwzqz{padding:12px}.input.svelte-dfwzqz{width:100%;padding:12px 16px;border:0;border-radius:var(--playpilot-border-radius);background:var(--playpilot-content-light);color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-base);font-family:var(--playpilot-font-family)}.input.svelte-dfwzqz:focus{outline:1px solid white}.input.svelte-dfwzqz::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.option.svelte-dfwzqz{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;justify-content:space-between;width:100%;padding:12px;border:0;border-top:1px solid var(--playpilot-content-light);background:var(--playpilot-content);color:var(--playpilot-text-color-alt);font-family:inherit;text-align:left;cursor:pointer}.option.svelte-dfwzqz:hover,.option.active.svelte-dfwzqz{color:var(--playpilot-text-color);filter:brightness(var(--playpilot-hover-filter-brightness))}.action.svelte-dfwzqz{flex:0 0 1lh;position:relative;width:1lh;height:1lh;font-size:1.25em}.icon.svelte-dfwzqz{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;border:1px solid var(--playpilot-content-light);border-radius:50%}.active.svelte-dfwzqz .icon:where(.svelte-dfwzqz){color:var(--playpilot-green);border-color:var(--playpilot-green)}.dropdown.svelte-fg0dzp{position:relative}.content.svelte-fg0dzp{z-index:10;position:absolute;top:44px;right:var(--offset, 0px);max-height:var(--max-height, 60vh);border-radius:var(--playpilot-border-radius);box-shadow:var(--playpilot-shadow-large);transform-origin:top right;background:var(--playpilot-content);overflow-y:auto;overflow-x:hidden}.left.svelte-fg0dzp .content:where(.svelte-fg0dzp){right:auto;left:var(--offset, 0px);transform-origin:top left}.slider.svelte-1mfj6k7{display:flex;flex-direction:column;width:100%;height:104px;padding:16px}.range.svelte-1mfj6k7{position:relative;padding-top:8px}.label.svelte-1mfj6k7{color:var(--playpilot-text-color);font-weight:var(--playpilot-font-weight-bold);font-size:var(--playpilot-font-size-base)}input[type=range].svelte-1mfj6k7{box-sizing:border-box;-moz-appearance:none;appearance:none;-webkit-appearance:none;position:absolute;width:100%;height:16px;margin:0;padding:1px 0;overflow:hidden;border:0;border-radius:1px;outline:none;background:linear-gradient(var(--playpilot-content-light),var(--playpilot-content-light)) no-repeat center;background-size:100% 1px;pointer-events:none}input[type=range].svelte-1mfj6k7:nth-child(2){background:none}input[type=range].active.svelte-1mfj6k7::-webkit-slider-thumb{background-color:var(--playpilot-text-color-alt)}input[type=range].active.svelte-1mfj6k7::-moz-range-thumb{background-color:var(--playpilot-text-color-alt)}input[type=range].svelte-1mfj6k7::-webkit-slider-thumb{-webkit-appearance:none;z-index:2;position:relative;width:16px;height:16px;margin:4px 0;border:0;border-radius:50%;background:var(--playpilot-text-color-alt);cursor:pointer;pointer-events:all;transition:transform .1s,border-radius .1s,width .1s}input[type=range].svelte-1mfj6k7::-moz-range-thumb{-webkit-appearance:none;z-index:2;position:relative;width:16px;height:16px;margin:4px 0;border:0;border-radius:50%;background:var(--playpilot-text-color-alt);cursor:pointer;pointer-events:all;transition:transform .1s,border-radius .1s,width .1s}.halved.svelte-1mfj6k7 input[type=range]:where(.svelte-1mfj6k7)::-webkit-slider-thumb{width:8px;transform:translate(-45%);border-radius:8px .15rem .15rem 8px}.halved.svelte-1mfj6k7 input[type=range]:where(.svelte-1mfj6k7)::-moz-range-thumb{width:8px;transform:translate(-45%);border-radius:8px .15rem .15rem 8px}.halved.svelte-1mfj6k7 input[type=range]:where(.svelte-1mfj6k7):nth-child(2)::-webkit-slider-thumb{transform:translate(45%);border-radius:.15rem 8px 8px .15rem}.halved.svelte-1mfj6k7 input[type=range]:where(.svelte-1mfj6k7):nth-child(2)::-moz-range-thumb{transform:translate(45%);border-radius:.15rem 8px 8px .15rem}input[type=range].svelte-1mfj6k7::-webkit-slider-thumb:before{display:block;position:absolute;top:12px;left:100%;width:100%;height:2px;content:" "}input[type=range].svelte-1mfj6k7::-moz-range-thumb:before{display:block;position:absolute;top:12px;left:100%;width:100%;height:2px;content:" "}.active-line.svelte-1mfj6k7{z-index:0;position:absolute;top:auto;bottom:auto;left:0;width:var(--width, 100%);height:1px;transform:translateY(calc(16px / 2 - var(--range-fill-height, 1px) / 2));background:var(--playpilot-text-color-alt);pointer-events:none}.halved.svelte-1mfj6k7 .active-line:where(.svelte-1mfj6k7){width:calc(var(--width, 100%) + 16px/2)}.value-marker.svelte-1mfj6k7{position:absolute;bottom:-44px;color:var(--playpilot-text-color-alt);font-weight:400;font-size:var(--playpilot-font-size-small)}.value-marker.right.svelte-1mfj6k7{right:0;text-align:right}.filter-item.active.svelte-er0ukh .dropdown>button{box-shadow:inset 0 0 0 1px var(--playpilot-green)}.content.svelte-er0ukh{width:240px}.content.svelte-1ibt2k4{width:112px}.option.svelte-1ibt2k4{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:12px 16px;width:100%;border:0;background:transparent;text-align:left;font-family:inherit;font-size:inherit;color:var(--playpilot-text-color-alt);cursor:pointer}.option.svelte-1ibt2k4:hover,.option.active.svelte-1ibt2k4{color:var(--playpilot-text-color);background:var(--playpilot-content-light)}.filter.svelte-11dg01g{position:relative}.items.svelte-11dg01g{display:flex;flex-wrap:wrap;gap:8px;padding-right:112px}.limit.svelte-11dg01g .items:where(.svelte-11dg01g){padding-right:0}.actions.svelte-11dg01g{position:absolute;top:4px;right:0}.limit.svelte-11dg01g .actions:where(.svelte-11dg01g){position:initial;top:auto;display:flex;justify-content:space-between;margin-top:8px}.explore.svelte-l2apr8{background:var(--playpilot-explore-background, var(--playpilot-light));border-radius:var(--playpilot-border-radius-large);max-width:var(--playpilot-explore-max-width, 1200px);min-height:75vh;margin:0 auto;padding:var(--playpilot-explore-padding, 16px 16px 96px);overflow:auto;font-family:var(--playpilot-font-family);font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base))}.explore.svelte-l2apr8 *{box-sizing:border-box}.header.svelte-l2apr8{display:flex;flex-direction:column;gap:8px;margin:var(--playpilot-explore-header-margin, 0 0 32px);width:100%}.divider.svelte-l2apr8{width:100%;height:var(--playpilot-explore-divider-height, 0);max-width:var(--playpilot-explore-header-max-width, 600px);background:var(--playpilot-explore-divider-background, var(--playpilot-text-color))}.heading.svelte-l2apr8{margin:var(--playpilot-explore-heading-margin, 4px 0);color:var(--playpilot-text-color);font-size:var(--playpilot-explore-heading-size, clamp(24px, 5vw, 32px));font-weight:var(--playpilot-explore-heading-font-weight, var(--playpilot-font-bold));text-transform:var(--playpilot-explore-heading-text-transform, var(--playpilot-normal));line-height:var(--playpilot-explore-heading-line-height, 1.5)}.description.svelte-l2apr8{max-width:var(--playpilot-explore-header-max-width, 600px);margin:0;color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-base);line-height:1.35}.filter.svelte-l2apr8{display:flex;flex-direction:column;gap:8px;width:100%;margin:8px 0 24px}.button.svelte-1ch8qoj{display:flex;align-items:center;justify-content:center;flex:0 0 var(--size);width:var(--size);height:var(--size);border-radius:50%;border:0;padding:var(--playpilot-button-padding, 0);background:var(--playpilot-button-background, var(--playpilot-content));box-shadow:var(--playpilot-button-shadow, var(--playpilot-shadow));color:var(--playpilot-button-text-color, var(--playpilot-text-color-alt));cursor:pointer;transition:transform 50ms}.button.svelte-1ch8qoj:hover{filter:brightness(1.2);transform:scale(1.05);outline:1px solid var(--playpilot-button-hover-border-color, var(--playpilot-text-color-alt))}.handle.svelte-1xqgdsn{position:relative;width:100%;height:var(--playpilot-drag-handle-height, 48px)}.handle.svelte-1xqgdsn:before{content:"";display:block;position:absolute;top:calc(50% - var(--playpilot-drag-handle-bar-height, 4px) / 2);width:100%;height:var(--playpilot-drag-handle-bar-height, 4px);border-radius:16px;background:var(--playpilot-drag-handle-color, currentColor);opacity:.65;transition:opacity .1s,scale .1s}.handle.dragged.svelte-1xqgdsn{transition:transform .2s}.handle.dragging.svelte-1xqgdsn{transition:none}.handle.dragging.svelte-1xqgdsn:before{scale:1.5 1;opacity:1}.modal.svelte-1rbidhv{--playpilot-detail-background-border-radius: var(--playpilot-detail-border-radius, var(--playpilot-border-radius-large) var(--playpilot-border-radius-large) 0 0);z-index:2147483647;box-sizing:border-box;position:fixed;display:flex;flex-direction:column;justify-content:flex-start;align-items:center;top:0;right:0;bottom:0;left:0;background:var(--playpilot-detail-backdrop, rgba(0, 0, 0, .65))}@media (min-width: 600px){.modal.svelte-1rbidhv{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding:32px 0}}.modal.has-bubble.svelte-1rbidhv{--playpilot-detail-background-border-radius: 0}.modal.background-blur.svelte-1rbidhv{-webkit-backdrop-filter:blur(1.5rem);backdrop-filter:blur(1.5rem)}.dialog.svelte-1rbidhv,.bubble.svelte-1rbidhv,.prepend.svelte-1rbidhv{max-width:600px}.wide.svelte-1rbidhv .dialog:where(.svelte-1rbidhv),.wide.svelte-1rbidhv .bubble:where(.svelte-1rbidhv),.wide.svelte-1rbidhv .prepend:where(.svelte-1rbidhv){max-width:900px}.dialog.svelte-1rbidhv{z-index:1;position:relative;width:100%;height:80vh;margin-top:auto;padding-bottom:env(safe-area-inset-bottom);overflow:auto;overscroll-behavior:contain;border-radius:var(--playpilot-detail-border-radius, 16px 16px 0 0);background:var(--playpilot-detail-background, var(--playpilot-light));will-change:top;transition:top .2s}@supports (height: 1dvh){.dialog.svelte-1rbidhv{height:80dvh}}@media (min-width: 600px){.dialog.svelte-1rbidhv{height:unset;margin:auto 0;padding-bottom:0;overflow:visible;border-radius:var(--playpilot-detail-border-radius, var(--playpilot-border-radius-large))}}@media (max-width: 599px){.tall.svelte-1rbidhv .dialog:where(.svelte-1rbidhv){height:90vh}@supports (height: 1dvh){.tall.svelte-1rbidhv .dialog:where(.svelte-1rbidhv){height:90dvh}}}.has-prepend.svelte-1rbidhv .dialog:where(.svelte-1rbidhv){margin-top:0}.has-bubble.svelte-1rbidhv .dialog:where(.svelte-1rbidhv){border-top-left-radius:0;border-top-right-radius:0;margin-top:0}.swipe-handle.svelte-1rbidhv{z-index:5;position:absolute;top:var(--dialog-offset);left:50%;transform:translateY(-8px) translate(-50%);width:112px;color:var(--playpilot-text-color)}.close.svelte-1rbidhv{--playpilot-button-background: var(--playpilot-modal-close-button-background, var(--playpilot-content));--playpilot-button-shadow: var(--playpilot-modal-close-button-shadow, var(--playpilot-shadow));--playpilot-button-padding: var(--playpilot-modal-close-button-padding, 8px);--playpilot-button-text-color: var(--playpilot-modal-close-button-text-color, var(--playpilot-text-color-alt));z-index:5;position:fixed;margin-top:calc(var(--dialog-offset) + 16px);top:0;right:16px;transition:top .2s}@media (min-width: 600px){.close.svelte-1rbidhv{position:absolute;margin-top:0;top:16px}}.close.svelte-1rbidhv:hover{filter:brightness(1.1)}.close.flat.svelte-1rbidhv{--playpilot-button-background: transparent;--playpilot-button-shadow: none}.close.back.svelte-1rbidhv{right:auto;left:16px}.close.back.flat.svelte-1rbidhv{left:8px}.close.back.flat.svelte-1rbidhv svg{margin:0}.prepend.svelte-1rbidhv{z-index:1;position:relative;width:calc(100% - 16px);padding-top:48px;margin:auto auto 8px}@media (min-width: 600px){.prepend.svelte-1rbidhv{padding-top:0;margin-top:0}}.bubble.svelte-1rbidhv{z-index:1;position:relative;width:100%;margin:auto 0 0}@media (min-width: 600px){.bubble.svelte-1rbidhv{width:100%;margin-top:0}}.genre.svelte-1mphbln{display:inline-flex;flex-wrap:wrap;background:var(--playpilot-genre-background, var(--playpilot-content));border:0;border-radius:var(--playpilot-genre-border-radius, var(--playpilot-border-radius-large));padding:4px 8px;font-family:var(--playpilot-genre-font-family, inherit);font-weight:var(--playpilot-genre-font-weight, inherit);text-transform:var(--playpilot-genre-text-transform, var(--playpilot-none));color:var(--playpilot-genre-text-color, var(--playpilot-text-color-alt));line-height:1;font-size:inherit}.genre.svelte-1mphbln:is(button:where(.svelte-1mphbln)):hover{cursor:pointer;filter:brightness(var(--playpilot-genre-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-genre-background-hover, var(--playpilot-content))}.expand.svelte-1mphbln{margin-left:-8px}.disclaimer.svelte-1ldthr7{display:flex;align-items:center;justify-content:center;border:var(--playpilot-disclaimer-border, 2px solid rgba(255, 255, 255, .5));padding:4px;height:20px;width:20px;border-radius:99px;color:var(--playpilot-disclaimer-text-color, var(--playpilot-text-color-alt));font-weight:700;line-height:1}.disclaimer.svelte-1ldthr7:hover{border-color:var(--playpilot-disclaimer-hover-border-color, var(--playpilot-text-color));color:var(--playpilot-disclaimer-hover-text-color, var(--playpilot-text-color))}.disclaimer.small.svelte-1ldthr7{height:16px;width:16px}.tooltip.svelte-1ldthr7{z-index:2;position:absolute;right:0;bottom:0;padding:4px;background:transparent;border:0;color:var(--playpilot-disclaimer-tooltip-text-color, var(--playpilot-text-color));cursor:pointer}.tooltip-content.svelte-1ldthr7{display:block;z-index:20;position:absolute;right:100%;bottom:4px;width:calc(var(--width, 15rem) * .8);padding:8px;border-radius:8px;background:var(--playpilot-disclaimer-tooltip-background, var(--playpilot-content));box-shadow:var(--playpilot-shadow);font-size:12px;line-height:1.1;text-align:right;white-space:normal}@keyframes svelte-13ka2ap-sheen{0%,20%,60%,80.01%,to{background-position:-100% 0}80%{background-position:100% 0}}img.svelte-13ka2ap{height:36px;width:36px;border-radius:var(--playpilot-playlink-image-border-radius, var(--playpilot-border-radius));background:#00000040}.playlink.svelte-13ka2ap{display:block;position:relative;background:var(--playpilot-playlink-background, var(--playpilot-lighter));box-shadow:var(--playpilot-playlink-shadow, var(--playpilot-shadow));border:var(--playpilot-playlink-border, 0);border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));color:var(--playpilot-playlink-text-color, var(--playpilot-text-color))!important;font-weight:var(--playpilot-playlink-font-weight, inherit);font-style:var(--playpilot-playlink-font-style, var(--playpilot-normal))!important;text-decoration:none!important;white-space:nowrap;font-size:var(--playpilot-playlinks-font-size, 12px);line-height:1}.playlink.svelte-13ka2ap:not(span):hover,.playlink.svelte-13ka2ap:not(span):active{filter:brightness(var(--playpilot-playlink-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));background:var(--playpilot-playlink-hover-background, var(--playpilot-lighter))!important;text-decoration:none!important}.playlink.highlighted.svelte-13ka2ap{grid-column:span 2}.playlink.highlighted.svelte-13ka2ap:before{content:"";z-index:1;display:block;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:inherit;background:linear-gradient(to left,currentColor 20%,transparent 50%,currentColor 80%);background-size:200% 100%;background-position:-100% 0;opacity:.35;pointer-events:none}@media (prefers-reduced-motion: no-preference){.playlink.highlighted.svelte-13ka2ap:before{animation:svelte-13ka2ap-sheen 4s ease-in-out infinite}}.playlink.highlighted.svelte-13ka2ap:after{content:"";z-index:2;display:block;position:absolute;top:2px;right:2px;bottom:2px;left:2px;border-radius:inherit;background:var(--playpilot-playlink-background, var(--playpilot-lighter))}.playlink.svelte-13ka2ap img:where(.svelte-13ka2ap){grid-area:image;margin:0}.playlink-content.svelte-13ka2ap{position:relative;z-index:5;display:grid;grid-template-areas:"image name action" "image category action";grid-template-columns:36px auto var(--action-width, 96px);align-items:center;gap:0 12px;padding:12px}.highlighted.svelte-13ka2ap .playlink-content:where(.svelte-13ka2ap){grid-template-areas:"image name action" "image category action" "image cta action";gap:4px 12px}.no-category.svelte-13ka2ap .playlink-content:where(.svelte-13ka2ap){grid-template-areas:"image name action" "image cta action"}.no-subtext.svelte-13ka2ap .playlink-content:where(.svelte-13ka2ap){grid-template-areas:"image name action"}.name.svelte-13ka2ap{grid-area:name;width:100%;overflow:hidden;font-weight:var(--playpilot-playlink-font-weight, 500);font-family:var(--playpilot-playlink-font-family, inherit);text-overflow:ellipsis;white-space:nowrap}.category.svelte-13ka2ap{grid-area:category;width:100%;font-size:var(--playpilot-playlinks-category-font-size, 10px);color:var(--playpilot-playlink-category-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-playlink-category-font-weight, inherit);font-family:var(--playpilot-playlink-category-font-family, inherit)}.cta.svelte-13ka2ap{grid-area:cta;width:100%;font-size:var(--playpilot-playlinks-cta-font-size, 10px);color:var(--playpilot-playlink-cta-text-color, var(--playpilot-text-color));font-weight:var(--playpilot-playlink-cta-font-weight, inherit);font-family:var(--playpilot-playlink-cta-font-family, inherit);white-space:normal;line-height:1.2}.action.svelte-13ka2ap{grid-area:action;margin-left:auto;padding:8px;border:var(--playpilot-playlinks-action-border, 1px solid currentColor);border-radius:var(--playpilot-playlinks-action-border-radius, 32px);font-weight:var(--playpilot-playlinks-action-font-weight, 500);color:var(--playpilot-playlinks-action-text-color, var(--playpilot-text-color))}.highlighted.svelte-13ka2ap .action:where(.svelte-13ka2ap){border:0;background:var(--playpilot-playlinks-action-background-color, white);color:var(--playpilot-playlinks-action-text-color, black)}.heading.svelte-1fykz2q{margin:0;color:var(--playpilot-playlinks-title-color, var(--playpilot-text-color-alt));font-family:var(--playpilot-playlinks-title-font-family, inherit);font-weight:var(--playpilot-playlinks-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-playlinks-title-font-size, var(--playpilot-font-size-base));line-height:normal}.category.svelte-1fykz2q{margin:8px 0 4px;font-size:var(--playpilot-playlinks-category-font-size, var(--playpilot-font-size-small))}.playlinks.svelte-1fykz2q{box-sizing:border-box;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}.playlinks.list.svelte-1fykz2q{grid-template-columns:1fr}.playlinks.list.svelte-1fykz2q .playlink.highlighted{grid-column:span 1}.disclaimer.svelte-1fykz2q{margin:var(--playpilot-playlinks-disclaimer-margin, 8px) 0;opacity:var(--playpilot-playlinks-disclaimer-opacity, .65);color:var(--playpilot-playlinks-disclaimer-text-color, var(--playpilot-text-color-alt));font-size:var(--playpilot-playlinks-disclaimer-font-size, 10px);font-style:var(--playpilot-playlinks-disclaimer-font-style, var(--playpilot-normal))}.disclaimer.svelte-1fykz2q a:where(.svelte-1fykz2q){color:inherit;font-size:inherit;font-style:inherit}.disclaimer.svelte-1fykz2q a:where(.svelte-1fykz2q):hover{color:var(--playpilot-playlinks-disclaimer-text-color-hover, var(--playpilot-text-color))}.empty.svelte-1fykz2q{padding:12px;margin-top:8px;background:var(--playpilot-playlink-background, var(--playpilot-lighter));box-shadow:var(--playpilot-playlink-shadow, var(--playpilot-shadow));border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));white-space:initial;line-height:1.35}.description.svelte-7itcht:first-child{margin:-16px 0 16px}.paragraph.svelte-7itcht{display:block;margin:16px 0 0;font-family:var(--playpilot-description-font-family, var(--playpilot-font-family))}.show-more.svelte-7itcht{display:inline;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;background:transparent;border:0;color:var(--playpilot-read-more-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-read-more-font-weight, inherit);font-family:inherit;font-size:inherit}.show-more.svelte-7itcht:hover{text-decoration:underline;text-decoration-thickness:2px;cursor:pointer}.participant.svelte-zy7e3f{display:flex;flex-direction:column;flex:0 0 10rem;width:10rem;min-height:54px;padding:8px;border:var(--playpilot-cast-border, 0);border-radius:var(--playpilot-cast-border-radius, var(--playpilot-border-radius));background:var(--playpilot-cast-background, var(--playpilot-lighter));cursor:pointer;font-family:inherit;text-align:left;color:inherit;font-size:var(--playpilot-cast-font-size, var(--playpilot-font-size-small));line-height:normal;white-space:nowrap}.participant.svelte-zy7e3f:is(button:where(.svelte-zy7e3f)):hover,.participant.svelte-zy7e3f:is(button:where(.svelte-zy7e3f)):active{filter:brightness(var(--playpilot-cast-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));text-decoration:none!important}.character.svelte-zy7e3f{color:var(--playpilot-cast-character-text-color, var(--playpilot-text-color-alt));font-style:italic}.truncate.svelte-zy7e3f{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}button.svelte-827qd7{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:4px;background:transparent;color:var(--playpilot-text-color-alt)}button.svelte-827qd7:hover{cursor:pointer;color:var(--playpilot-text-color)}.context-menu.svelte-827qd7{position:relative}.content.svelte-827qd7{z-index:10;position:absolute;bottom:calc(100% + 8px);right:0;max-width:240px;border-radius:var(--playpilot-context-menu-border-radius, 8px);background:var(--playpilot-detail-background, var(--playpilot-lighter));box-shadow:var(--playpilot-shadow)}.center.svelte-827qd7 .content:where(.svelte-827qd7){right:auto;left:50%;transform:translate(-50%)}.content.svelte-827qd7:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--playpilot-context-menu-border-radius, 8px);background:var(--playpilot-context-menu-background-lightness, rgba(255, 255, 255, .05));pointer-events:none}.item.svelte-npfy12{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;gap:8px;border:0;padding:12px 16px;width:100%;border-bottom:1px solid var(--playpilot-context-menu-border, rgba(255, 255, 255, .1));background:transparent;white-space:nowrap;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:inherit;font-weight:400;text-align:left}.item.svelte-npfy12:hover{background:var(--playpilot-context-menu-border, rgba(255, 255, 255, .1))}.item.svelte-npfy12:first-child{border-radius:var(--playpilot-context-menu-border-radius, 8px) var(--playpilot-context-menu-border-radius, 8px) 0 0}.item.svelte-npfy12:last-child{border-radius:0 0 var(--playpilot-context-menu-border-radius, 8px) var(--playpilot-context-menu-border-radius, 8px);border-bottom:0}.item.svelte-npfy12:not(:hover) svg{opacity:.75}.video-background.svelte-18bbkrh{width:100%;height:100%;margin-left:50%;transform:translate(-50%);background:#000}.video-background.svelte-18bbkrh iframe{position:absolute;height:var(--height);width:var(--width);top:50%;left:50%;transform:translate(-50%) translateY(-50%)}.heading.svelte-16ajinh{grid-area:heading;margin:8px 0;color:var(--playpilot-detail-title-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-title-font-family, inherit);font-weight:var(--playpilot-detail-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-detail-title-font-size, 24px);line-height:1.2;font-style:var(--playpilot-detail-title-font-style, var(--playpilot-normal))}.small.svelte-16ajinh .heading:where(.svelte-16ajinh){font-size:var(--playpilot-detail-title-font-size-small, 18px)}.content.svelte-16ajinh{z-index:1;position:relative;padding:16px;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;font-style:normal}.content.svelte-16ajinh ::view-transition-old(content),.content.svelte-16ajinh ::view-transition-new(content){height:100%}.content.small.svelte-16ajinh{font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));line-height:1.45;padding-bottom:16px}.header.svelte-16ajinh{padding:160px 0 16px}@media (min-width: 390px){.header.svelte-16ajinh{display:grid;grid-template:"poster heading" "poster info" "actions actions";grid-template-columns:72px auto;grid-template-rows:1fr;align-items:flex-end;gap:0 12px}}@media (min-width: 600px){.header.svelte-16ajinh{display:block;padding-top:48px}}.small.svelte-16ajinh .header:where(.svelte-16ajinh){padding-top:16px}.poster.svelte-16ajinh{grid-area:poster;display:block;width:72px;margin:0;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-image-background, var(--playpilot-content));box-shadow:var(--playpilot-detail-image-shadow, var(--playpilot-shadow));overflow:hidden;opacity:0}.poster.loaded.svelte-16ajinh{opacity:1}.info.svelte-16ajinh{grid-area:info;display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px}@media (min-width: 600px){.info.svelte-16ajinh{gap:8px 16px}}.small.svelte-16ajinh .info:where(.svelte-16ajinh){gap:8px 12px}.imdb.svelte-16ajinh{display:flex;align-items:center;gap:4px}.imdb.svelte-16ajinh svg{margin-top:-2px}.small.svelte-16ajinh .imdb:where(.svelte-16ajinh) svg{margin-top:0;width:12px;height:12px}.actions.svelte-16ajinh{grid-area:actions;display:flex;gap:8px;margin-top:16px}.background.svelte-16ajinh{position:absolute;top:0;left:0;width:100%;height:320px;border-radius:var(--playpilot-detail-background-border-radius, 0px);overflow:hidden;background:var(--playpilot-detail-background, var(--playpilot-lighter));-webkit-mask-image:linear-gradient(to bottom,black 40%,transparent);mask-image:linear-gradient(to bottom,black 40%,transparent);z-index:0}@media (min-width: 600px){.background.svelte-16ajinh{height:192px;-webkit-mask-image:linear-gradient(to bottom,black 60%,transparent);mask-image:linear-gradient(to bottom,black 60%,transparent)}}@media (max-width: 599px){.background.svelte-16ajinh .video-background{width:225%}}.background.small.svelte-16ajinh .video-background{width:150%}.background.svelte-16ajinh img:where(.svelte-16ajinh){width:100%;height:100%;object-fit:cover;object-position:center;margin:0;opacity:0;z-index:0}.background.svelte-16ajinh img.loaded:where(.svelte-16ajinh){opacity:1}.background.svelte-16ajinh img.blur:where(.svelte-16ajinh){opacity:.5;transform:scale(1.1);filter:blur(.75rem)}.capitalize.svelte-16ajinh{text-transform:capitalize}.truncate.svelte-16ajinh{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-scroll.svelte-1mt6g1y{position:relative;display:block;width:100%;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0;background:#000;color:var(--playpilot-top-scroll-text-color, white);font-family:var(--playpilot-top-scroll-font-family, var(--playpilot-font-family));font-size:var(--playpilot-top-scroll-font-size, var(--playpilot-font-size-base));text-decoration:none;line-height:1.35}.content.svelte-1mt6g1y{display:flex;z-index:1;position:relative;align-items:center;height:100%;min-height:72px;padding:4px 8px;gap:8px;color:var(--playpilot-top-scroll-text-color, white)}.simple.svelte-1mt6g1y .content:where(.svelte-1mt6g1y){justify-content:center;min-height:0;padding:0}.logo.svelte-1mt6g1y{border-radius:var(--playpilot-top-scroll-logo-border-radius, var(--playpilot-border-radius));background:#000}.tagline.svelte-1mt6g1y{margin:0;text-shadow:var(--playpilot-shadow)}.button.svelte-1mt6g1y{margin-left:auto;margin-right:16px;padding:4px 8px;background:var(--playpilot-top-scroll-button-background, white);border:0;border-radius:var(--playpilot-top-scroll-button-border-radius, var(--playpilot-border-radius-small));box-shadow:var(--playpilot-shadow);color:var(--playpilot-top-scroll-button-text-color, black);font-family:inherit;font-size:inherit;line-height:inherit}.button.svelte-1mt6g1y:hover{outline:4px solid var(--playpilot-top-scroll-button-background, rgba(255, 255, 255, .35));background:var(--playpilot-top-scroll-button-background, white)}.button.svelte-1mt6g1y:active{background:var(--playpilot-top-scroll-button-background, white)}.background.svelte-1mt6g1y{z-index:0;position:absolute;top:0;right:0;bottom:0;left:0;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0;background-image:var(--background);background-position:center;background-size:cover;opacity:.4}.top-scroll.svelte-1mt6g1y:hover .background:where(.svelte-1mt6g1y){filter:brightness(1.15)}.content-image.svelte-1mt6g1y{display:block;max-width:100%;height:auto;background:#000;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large)) 0 0}.top-scroll.svelte-1mt6g1y:hover .content-image:where(.svelte-1mt6g1y){filter:brightness(1.15)}.tooltip.svelte-r7ubzi{position:relative}.content.svelte-r7ubzi{position:absolute;bottom:0;left:0;transform:translateY(100%);padding:4px;background:var(--playpilot-tooltip-background, var(--playpilot-light));border-radius:var(--playpilot-tooltip-border-radius, var(--playpilot-border-radius-small));box-shadow:var(--playpilot-tooltip-shadow, var(--playpilot-shadow));color:var(--playpilot-tooltip-text-color, var(--playpilot-text-color));white-space:nowrap}.display.svelte-qcpiki{display:block;position:relative;border-radius:var(--playpilot-display-ad-border-radius, var(--playpilot-border-radius));overflow:hidden;background:#000;aspect-ratio:16/9;color:#fff!important;text-shadow:1px 1px 2px rgba(0,0,0,.35);font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));line-height:1.2;font-style:normal!important}.info.svelte-qcpiki{position:absolute;top:0;left:0;padding:8px;font-size:12px;text-decoration:underline}@media (min-width: 600px){.info.svelte-qcpiki{padding:16px}.compact.svelte-qcpiki .info:where(.svelte-qcpiki){padding:12px}}.cta.svelte-qcpiki{z-index:1;display:flex;align-items:center;gap:8px;position:absolute;right:0;bottom:0;left:0;padding:8px;background:linear-gradient(to right,#6e6e6e,#5555554d);font-size:14px;text-decoration:none}@media (min-width: 600px){.cta.svelte-qcpiki{padding:16px}.compact.svelte-qcpiki .cta:where(.svelte-qcpiki){padding:12px}}.logo.svelte-qcpiki{border-radius:var(--playpilot-display-ad-border-radius, var(--playpilot-border-radius))}.name.svelte-qcpiki{font-weight:500}.subheader.svelte-qcpiki{font-size:12px}.action.svelte-qcpiki{margin-left:auto;padding:8px 12px;background:var(--playpilot-display-ad-action-background, white);border-radius:var(--playpilot-display-action-border-radius, 32px);transition:transform 50ms;text-shadow:none;font-weight:var(--playpilot-display-action-font-weight, 500);color:var(--playpilot-display-action-text-color, black);white-space:nowrap}.action.svelte-qcpiki:hover{transform:scale(1.05)}.background.svelte-qcpiki{display:block;width:100%;height:auto}.disclaimer.svelte-qcpiki{position:absolute;bottom:calc(var(--offset) + 4px);right:4px}strong.svelte-1677ll3{color:var(--playpilot-text-color);font-size:var(--playpilot-font-size-base);font-weight:400}.call-to-action.svelte-1677ll3{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;gap:16px;width:100%;padding:16px;border:0;border-radius:var(--playpilot-border-radius-large) var(--playpilot-border-radius-large) 0 0;background:var(--playpilot-light);font-family:var(--playpilot-font-family);color:var(--playpilot-text-color-alt)!important;font-size:var(--playpilot-font-size-small);font-style:normal!important;text-decoration:none;line-height:1.5;text-align:left;cursor:pointer}.call-to-action.svelte-1677ll3:hover{filter:brightness(var(--playpilot-hover-filter-brightness))}.arrow.svelte-1677ll3{margin-left:auto}.arrow.svelte-1677ll3 svg{display:block;height:20px;width:auto}.header.svelte-ke01cs{padding:64px 16px 32px;font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:var(--playpilot-participant-description-line-height, var(--playpilot-normal));color:var(--playpilot-detail-text-color, var(--playpilot-text-color))}.heading.svelte-ke01cs{margin:0;font-family:var(--playpilot-detail-title-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-title-font-weight, var(--playpilot-lighter));font-size:var(--playpilot-detail-title-font-size, 24px);line-height:normal;font-style:var(--playpilot-detail-title-font-style, var(--playpilot-normal))}.heading.small.svelte-ke01cs{margin:0 0 8px;font-size:var(--playpilot-detail-title-small-font-size, 20px)}.dates.svelte-ke01cs{margin:8px 0 0}.content.svelte-ke01cs{padding:0 16px 16px;color:var(--playpilot-detail-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-font-family, var(--playpilot-font-family));font-weight:var(--playpilot-detail-font-weight, var(--playpilot-normal));font-size:var(--playpilot-detail-font-size, var(--playpilot-font-size-base));line-height:normal;font-style:normal}.list.svelte-ke01cs{display:flex;flex-direction:column;gap:8px}.skeleton.svelte-ke01cs{min-height:116px;border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));background:var(--playpilot-detail-background-light, var(--playpilot-lighter))}.more.svelte-ke01cs{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:8px 16px;border:0;border-radius:var(--playpilot-participants-load-more-border-radius, var(--playpilot-border-radius));background:var(--playpilot-participants-load-more-background, var(--playpilot-content));color:inherit;font-size:inherit;font-family:inherit}.more.svelte-ke01cs:hover{filter:brightness(1.2)}.content.svelte-16hba4m{padding-top:32px}@keyframes svelte-wxwoko-delay-render{0%{opacity:0}to{opacity:1}}.popover.svelte-wxwoko{--offset: 8px;display:flex;flex-direction:column-reverse;gap:8px;position:absolute;top:calc((var(--offset) - 1px) * -1);left:0;width:calc(100vw - 32px);max-width:320px;padding:var(--offset) 0;transform:translateY(calc(-100% + var(--offset)));opacity:0;animation:svelte-wxwoko-delay-render 0ms 1ms forwards;z-index:2147483647}.popover.flip.svelte-wxwoko{flex-direction:column;top:auto;bottom:calc(var(--offset) + 1px);transform:translateY(calc(100% + var(--offset)))}.popover.flip.inline.svelte-wxwoko{flex-direction:column-reverse}.popover.inline.svelte-wxwoko{gap:0}.dialog.svelte-wxwoko{cursor:default;position:relative;border-radius:var(--playpilot-popover-border-radius, var(--playpilot-border-radius-large));background:var(--playpilot-popover-background, var(--playpilot-light));box-shadow:var(--playpilot-popover-shadow, var(--playpilot-shadow-large));max-height:min(var(--max-height, 100vh),576px);scrollbar-width:thin;overflow-y:overlay;overflow-x:hidden;view-transition-name:playpilot-title-content}.has-bubble.svelte-wxwoko .dialog:where(.svelte-wxwoko){border-top-left-radius:0;border-top-right-radius:0}.scroll-indicator.svelte-wxwoko{z-index:1;position:sticky;bottom:0;pointer-events:none}.scroll-indicator.svelte-wxwoko:after{content:"";display:block;position:absolute;bottom:0;left:0;height:32px;width:100%;background:linear-gradient(to bottom,transparent,black);opacity:var(--playpilot-popover-scroll-indicator-opacity, .5)}.scroll-indicator-icon.svelte-wxwoko{z-index:1;position:absolute;display:flex;bottom:4px;left:50%;transform:translate(-50%);opacity:.75}.scroll-indicator-icon.svelte-wxwoko svg{fill:var(--playpilot-popover-scroll-indicator-fill, var(--playpilot-text-color))!important}.bubble.svelte-wxwoko,.append.svelte-wxwoko{view-transition-name:playpilot-title-extra}.title-popover.svelte-d1moe8{position:absolute}.rail-modal.svelte-c2erhr{--gap: 4px;position:relative;width:min(600px,80vw);margin:auto auto 0}@media (min-width: 600px){.rail-modal.svelte-c2erhr{margin:auto}}.rail-modal.svelte-c2erhr>.slider{overflow:visible}@media (min-width: 600px){.rail-modal.svelte-c2erhr>.slider>.slider-content{align-items:center}}.item.svelte-c2erhr{width:min(600px,80vw);transition:opacity var(--transition-duration),transform var(--transition-duration)}.item.active.svelte-c2erhr{transform:none;opacity:1}.item.svelte-c2erhr:not(.active){transform:scale(.95) translateY(32px);opacity:.5}@media (min-width: 600px){.item.svelte-c2erhr:not(.active){transform:scale(.9);opacity:.35}}.item.svelte-c2erhr:not(.active) *{pointer-events:none}.content.svelte-c2erhr{position:relative;border:1px solid var(--playpilot-rail-modal-item-border, var(--playpilot-content));border-radius:var(--playpilot-rail-modal-item-border-radius, var(--playpilot-border-radius-huge)) var(--playpilot-rail-modal-item-border-radius, var(--playpilot-border-radius-huge)) 0 0;background:var(--playpilot-rail-modal-item-background, var(--playpilot-light));box-shadow:none;height:80vh;overflow:auto;overscroll-behavior:contain;transition:box-shadow var(--transition-duration)}@media (min-width: 600px){.content.svelte-c2erhr{height:auto;max-height:90vh;border-radius:var(--playpilot-rail-modal-item-border-radius, var(--playpilot-border-radius-huge))}}.active.svelte-c2erhr .content:where(.svelte-c2erhr){box-shadow:var(--playpilot-rail-modal-shadow, 0 -8px 8px rgba(0, 0, 0, .2))}.close.svelte-c2erhr{--playpilot-button-background: transparent;--playpilot-button-text-color: white;position:absolute;top:16px;right:16px}.arrow.svelte-c2erhr{--offset: -32px;--scale: 1;cursor:pointer;z-index:2;display:flex;align-items:center;justify-content:center;position:absolute;left:var(--offset);top:50%;width:48px;height:48px;border:1px solid var(--playpilot-rail-modal-item-border, var(--playpilot-content));border-radius:50%;transform:translateY(-50%) scale(var(--scale));transition:transform 50ms;background:var(--playpilot-rail-modal-arrow-background, var(--playpilot-lighter));box-shadow:var(--playpilot-rail-modal-arrow-shadow, 0 4px 8px rgba(0, 0, 0, .35));color:var(--playpilot-rail-modal-arrow-color, var(--playpilot-text-color))}@media (min-width: 600px){.arrow.svelte-c2erhr{--offset: -56px}}.arrow.svelte-c2erhr:hover,.arrow.svelte-c2erhr:active{filter:brightness(1.2)}.arrow.svelte-c2erhr:hover{--scale: 1.05}.arrow.svelte-c2erhr:active{--scale: .97}.arrow.right.svelte-c2erhr{left:auto;right:var(--offset)}p.svelte-1to4glm{font-weight:var(--playpilot-after-article-text-font-weight, var(--playpilot-normal))}span.svelte-1to4glm{display:block}button.svelte-1to4glm{-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:var(--playpilot-after-article-button-padding, 4px 12px);margin:var(--playpilot-after-article-button-margin, 4px 0 0);background:var(--playpilot-after-article-button-background, transparent);border:var(--playpilot-after-article-button-border, 2px solid currentColor);border-radius:var(--playpilot-after-article-button-border-radius, var(--playpilot-border-radius-large));color:var(--playpilot-after-article-button-text-color, inherit);font-weight:var(--playpilot-after-article-button-font-weight, var(--playpilot-bold));font-size:var(--playpilot-after-article-button-font-size, var(--playpilot-border-radius-large));cursor:pointer;transition:all 50ms}button.svelte-1to4glm:hover{background:var(--playpilot-after-article-button-background-hover, transparent);border:var(--playpilot-after-article-button-border-hover, 2px solid currentColor);color:var(--playpilot-after-article-button-text-color-hover, inherit);transform:var(--playpilot-after-article-button-transform-hover, var(--playpilot-scale(1.02)))}p.svelte-1epbbn0{position:var(--playpilot-in-text-disclaimer-position);top:var(--playpilot-in-text-disclaimer-top);transform:var(--playpilot-in-text-disclaimer-transform);margin:var(--playpilot-in-text-disclaimer-margin);padding:var(--playpilot-in-text-disclaimer-padding);font-size:var(--playpilot-in-text-disclaimer-font-size);font-weight:var(--playpilot-in-text-disclaimer-font-weight);font-style:var(--playpilot-in-text-disclaimer-font-style);color:var(--playpilot-in-text-disclaimer-text-color)}svg.svelte-abbsts{transition:transform .1s}.expanded.svelte-abbsts{transform:rotate(180deg)}.switch.svelte-1201akx{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;border:0;padding:0;background:transparent;cursor:pointer}.fullwidth.svelte-1201akx{width:100%;justify-content:space-between}.label.svelte-1201akx{display:flex;align-items:center;gap:8px;margin-right:8px;font-family:var(--playpilot-font-family);color:var(--playpilot-text-color-alt);font-size:12px}.switch.svelte-1201akx:hover .label:where(.svelte-1201akx){color:var(--playpilot-text-color)}.track.svelte-1201akx{position:relative;width:32px;height:20px;border-radius:16px;background:var(--playpilot-content);transition:background-color .1s}.active.svelte-1201akx .track:where(.svelte-1201akx){background:var(--playpilot-green)}.knob.svelte-1201akx{position:absolute;top:2px;left:2px;height:16px;width:16px;border-radius:50%;background:#fff;transition:left .1s}.active.svelte-1201akx .knob:where(.svelte-1201akx){left:14px}input.svelte-v3h1om{width:100%;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-lighter);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}input.svelte-v3h1om:focus{background:var(--playpilot-lighter);outline:1px solid white}input.svelte-v3h1om::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.alert.svelte-1v44877{padding:8px;border-radius:8px;border:1px solid var(--playpilot-error);background:var(--playpilot-error-dark);font-size:12px;font-family:var(--playpilot-font-family);color:#fff}.alert.warning.svelte-1v44877{border-color:var(--playpilot-warning);background:var(--playpilot-warning-dark)}.alert.fixed.svelte-1v44877{position:fixed;bottom:1rem;right:1rem;width:80%;max-width:25rem}.alert.svelte-1v44877 a{color:currentColor}.switches.svelte-1fv3ko3{display:flex;flex-direction:column;gap:12px}button.svelte-1fv3ko3{z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:relative;display:flex;align-items:center;justify-content:center;gap:8px;border:0;border-radius:32px;padding:8px;background:transparent;font-family:var(--playpilot-font-family);font-size:10.4px;color:var(--playpilot-text-color-alt);cursor:pointer}button.svelte-1fv3ko3:hover,button.active.svelte-1fv3ko3{color:var(--playpilot-text-color)}.group.svelte-1fv3ko3{position:relative;display:grid;grid-template-columns:1fr 1fr;gap:8px;width:100%;padding:4px;border:0;border-radius:32px;background:var(--playpilot-light);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}.active-marker.svelte-1fv3ko3{z-index:0;position:absolute;width:calc(50% - 8px);height:calc(100% - 8px);left:4px;top:4px;border-radius:32px;background:var(--playpilot-content);transition:left .1s}.right.svelte-1fv3ko3{left:calc(50% + 4px)}.label.svelte-1fv3ko3{margin:10.8px 0 4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.alert.svelte-1fv3ko3{margin-top:8px}select.svelte-1yg5wso{background:var(--playpilot-content);padding:8px 16px;width:100%;border:0;border-radius:8px;color:var(--playpilot-text-color);font-family:inherit;font-size:13.6px}option.svelte-1yg5wso:hover,option.svelte-1yg5wso:active,option.svelte-1yg5wso:checked{background-color:var(--playpilot-content-light);font-weight:700}.form.svelte-1yg5wso{padding:32px;font-family:var(--playpilot-font-family);color:var(--playpilot-text-color)}.heading.svelte-1yg5wso{font-size:20px}.info.svelte-1yg5wso{margin:16px 0;font-size:13.6px;color:var(--playpilot-text-color-alt)}.info.svelte-1yg5wso strong:where(.svelte-1yg5wso){color:var(--playpilot-text-color)}.submit.svelte-1yg5wso{margin-top:16px;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-green);box-shadow:var(--playpilot-shadow);font-family:inherit;color:var(--playpilot-text-color);font-size:13.6px;cursor:pointer}.submit[disabled].svelte-1yg5wso{background:var(--playpilot-content);color:var(--playpilot-text-color-alt);box-shadow:none;opacity:.5;cursor:default}.sent.svelte-1yg5wso{margin-top:16px;padding:8px 0;color:var(--playpilot-green);font-size:13.6px}.item.svelte-tlh9c3{padding:16px 8px;border-bottom:1px solid var(--playpilot-lighter);transition:outline-offset .1s}.item.svelte-tlh9c3:hover,.item.highlighted.svelte-tlh9c3{border-radius:8px;border-color:transparent;outline:2px solid var(--playpilot-content);outline-offset:1px}.item.highlighted.svelte-tlh9c3{outline:2px solid var(--playpilot-primary)}.header.svelte-tlh9c3{display:flex;gap:16px;width:100%}.poster.svelte-tlh9c3{display:block;width:32px;height:48px;border-radius:4px;background:var(--playpilot-content)}.inactive.svelte-tlh9c3 .poster:where(.svelte-tlh9c3){opacity:.35}.title.svelte-tlh9c3{font-size:14px;word-break:break-word}.sentence.svelte-tlh9c3{font-size:.7em;line-height:150%;margin-right:-8px;color:var(--playpilot-text-color-alt);opacity:.75}.sentence.svelte-tlh9c3 em{color:var(--playpilot-text-color);font-weight:700}.expand-sentence.svelte-tlh9c3{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;padding:0;margin:0;background:transparent;font-family:inherit;color:inherit;font-size:inherit;line-height:inherit;font-style:italic;text-decoration:underline}.expand-sentence.svelte-tlh9c3:hover{color:var(--playpilot-text-color)}.content.svelte-tlh9c3{padding-top:8px}.inactive.svelte-tlh9c3 .info:where(.svelte-tlh9c3){opacity:.35}.context-menu.svelte-tlh9c3{margin:0 -4px 0 auto}.context-menu-action.svelte-tlh9c3{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:8px 16px;width:100%;text-align:left;font-family:inherit;white-space:nowrap;color:var(--playpilot-text-color-alt);cursor:pointer}.context-menu-action.svelte-tlh9c3:hover{color:var(--playpilot-text-color);background-color:var(--playpilot-content-light)}.context-menu-action.svelte-tlh9c3:first-child{margin-top:8px}.context-menu-action.svelte-tlh9c3:last-child{margin-bottom:8px}.actions.svelte-tlh9c3{display:flex;align-items:center;justify-content:space-between;width:100%}.expand.svelte-tlh9c3{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;justify-content:center;width:24px;height:24px;border:0;border-radius:50%;background:var(--playpilot-content);color:var(--playpilot-text-color);box-shadow:var(--playpilot-shadow);cursor:pointer}.expand.svelte-tlh9c3:hover{filter:brightness(1.2);outline:1px solid currentColor}.expanded.svelte-tlh9c3{padding-top:16px}.type-select.svelte-tlh9c3{margin-top:8px}.label.svelte-tlh9c3{margin-bottom:4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.offset.svelte-tlh9c3{margin-top:12px}.warning.svelte-tlh9c3{margin:0 auto 0 8px}.warning.svelte-tlh9c3 svg{display:block}.drag-handle.svelte-1fk5ijl{z-index:10;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:8px;left:30%;width:40%;height:16px;background:transparent;border:0;cursor:grab}.drag-handle.svelte-1fk5ijl:hover:before{opacity:.65;transform:scale(1.05)}.drag-handle.svelte-1fk5ijl:active:before{opacity:.9;transform:scale(.95)}.drag-handle.svelte-1fk5ijl:active{cursor:grabbing}.drag-handle.svelte-1fk5ijl:before{display:block;content:"";position:absolute;top:20%;right:0;bottom:60%;left:0;border-radius:16px;background:var(--playpilot-text-color);opacity:.15;transition:opacity .1s,transform 50ms}.resize-handle.svelte-iir57j{z-index:10;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:absolute;top:0;left:0;width:100%;height:8px;background:transparent;border:0;cursor:ns-resize}.resize-handle.svelte-iir57j:hover:before{opacity:.65;transform:scale(1.05)}.resize-handle.svelte-iir57j:active:before{opacity:.9;transform:scale(.95)}.resize-handle.svelte-iir57j:active{cursor:grabbing}.resize-handle.svelte-iir57j:before{display:block;content:"";position:absolute;top:0;right:20%;left:20%;bottom:80%;border-radius:0 0 16px 16px;background:var(--playpilot-text-color);opacity:.15;transition:opacity .1s,transform 50ms}.item.svelte-fntasr{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:flex-start;gap:16px;width:100%;background:transparent;border:0;padding:8px;border-bottom:1px solid var(--playpilot-content);color:var(--playpilot-text-color-alt);font-family:inherit;text-align:left;font-size:13.6px}.item.hoverable.svelte-fntasr{cursor:pointer}.item.hoverable.svelte-fntasr:hover{background:var(--playpilot-lighter)}.item.svelte-fntasr:last-child{border-bottom:0}.poster.svelte-fntasr{flex:0 0 auto;height:auto;width:28px;aspect-ratio:28/42;border-radius:4px;background:var(--playpilot-content)}.name.svelte-fntasr{color:var(--playpilot-text-color)}.meta.svelte-fntasr{display:flex;flex-wrap:wrap;gap:0 8px;font-size:12px}.imdb.svelte-fntasr{display:flex;align-items:center;gap:4px}.open-in-new-tab.svelte-fntasr{margin-left:auto;color:var(--playpilot-text-color-alt)}.open-in-new-tab.svelte-fntasr:hover{color:var(--playpilot-text-color)}.search.svelte-zmrqec{position:relative}.results.svelte-zmrqec{z-index:1;position:absolute;top:calc(100% + 8px);left:0;right:0;height:30vh;max-height:160px;border-radius:8px;background:var(--playpilot-lighter);scrollbar-width:thin;overflow:auto}.empty.svelte-zmrqec{padding:8px;font-size:12px;color:var(--playpilot-text-color-alt)}.selected.svelte-zmrqec{margin:8px 0;border-radius:.5rem;border:2px solid var(--playpilot-green)}p.svelte-12oucrc,label.svelte-12oucrc{font-size:12px;max-width:240px;color:var(--playpilot-text-color-alt)}label.svelte-12oucrc{display:block;margin-top:16px}.layout.svelte-12oucrc{height:100%;display:flex;flex-direction:column;margin:0}.header.svelte-12oucrc{display:flex;align-items:center;gap:8px;margin-bottom:16px}.heading.svelte-12oucrc{margin:0;color:var(--playpilot-text-color);font-size:16px;line-height:normal;font-weight:400}.error.svelte-12oucrc{margin-top:8px}.save.svelte-12oucrc{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;margin-top:auto;padding:8px;border:0;border-radius:32px;background:var(--playpilot-green);transition:opacity .1s;font-family:inherit;color:var(--playpilot-text-color)}.save.svelte-12oucrc:not([disabled]):hover{outline:2px solid currentColor}.save[disabled].svelte-12oucrc{cursor:default;background:var(--playpilot-lighter);opacity:.5;color:var(--playpilot-text-color-alt)}p.svelte-16jrr0h{margin:0 0 8px}.alert.svelte-16jrr0h{margin:0 8px}.button.svelte-16jrr0h{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:100%;padding:4px;border:0;border-radius:4px;background:var(--playpilot-warning);transition:opacity .1s;font-family:inherit;color:var(--playpilot-dark);font-size:.85rem;cursor:pointer}.button.svelte-16jrr0h:hover{background:#fff}p.svelte-1q9haus{margin:0}.ai-indicator.svelte-1q9haus{position:relative;margin:0 8px}.content.svelte-1q9haus{position:relative;display:flex;gap:8px;background:var(--playpilot-light);padding:8px;margin:2px;border-radius:.5rem;font-size:12px;line-height:1.5;z-index:1;color:var(--playpilot-text-color-alt);overflow:hidden}.message.svelte-1q9haus{display:flex;margin-top:4px;font-style:italic}.icon.svelte-1q9haus{color:var(--playpilot-green)}.border.svelte-1q9haus{position:absolute;top:0;right:0;bottom:0;left:0;border-radius:.5rem;background:var(--playpilot-green);overflow:hidden;transition:background-color .5s}.running.svelte-1q9haus .border:where(.svelte-1q9haus){background:var(--playpilot-light)}@keyframes svelte-1q9haus-rotate{to{rotate:360deg}}.animator.svelte-1q9haus{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-1q9haus-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-1q9haus{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-1q9haus{height:.5em;border-radius:.25rem;background:var(--playpilot-lighter)}.loading-bar-fill.svelte-1q9haus{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-1q9haus{text-align:right}@keyframes svelte-1q9haus-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-1q9haus span:where(.svelte-1q9haus){animation:svelte-1q9haus-fade 2s infinite}.ellipses.svelte-1q9haus span:where(.svelte-1q9haus):nth-child(1){animation-delay:.2s}.ellipses.svelte-1q9haus span:where(.svelte-1q9haus):nth-child(2){animation-delay:.4s}.ellipses.svelte-1q9haus span:where(.svelte-1q9haus):nth-child(3){animation-delay:.6s}.dismiss.svelte-1q9haus{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:4px;padding:4px;border:2px solid var(--playpilot-content-light);border-radius:4px;background:var(--playpilot-light);font-family:inherit;color:var(--playpilot-text-color-alt);font-size:12px;line-height:1;cursor:pointer}.dismiss.svelte-1q9haus:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.editor.svelte-7r3240{z-index:2147483646;display:flex;flex-direction:column;position:fixed;bottom:16px;right:16px;width:100%;max-width:352px;height:min(70vh,640px);min-height:min(25rem,80vh);margin:0;padding:16px;border-radius:24px;background:var(--playpilot-dark);box-shadow:var(--playpilot-shadow-large);color:var(--playpilot-text-color);font-family:var(--playpilot-font-family);transition:border-radius .1s;overflow-y:auto;overflow-x:hidden;line-height:normal}.panel-open.svelte-7r3240{overflow:hidden}.loading.svelte-7r3240{height:auto;min-height:0;border-radius:32px;margin-left:auto;padding-right:8px;color:var(--playpilot-text-color-alt);font-size:13.6px}.handles.svelte-7r3240,.header.svelte-7r3240{z-index:20;position:sticky;top:-16px;margin:-16px -16px 0}.handle.svelte-7r3240{opacity:0;transition:opacity .15s}.editor.svelte-7r3240:hover .handle:where(.svelte-7r3240){opacity:1}.header.svelte-7r3240{z-index:5;display:flex;align-items:center;padding:16px 16px 16px 24px;margin:0 -16px;border:0;background:var(--playpilot-dark)}.loading.svelte-7r3240 .header:where(.svelte-7r3240){margin:-16px}.heading.svelte-7r3240{margin:0 12px 0 0;color:var(--playpilot-text-color);font-size:20px;font-weight:400;line-height:normal}.bubble.svelte-7r3240{-webkit-appearance:none;-moz-appearance:none;appearance:none;width:24px;height:24px;border:0;padding:0;margin-right:auto;border-radius:50%;background:var(--playpilot-green);line-height:24px;text-align:center;font-size:13.6px}.items.svelte-7r3240{padding-top:8px;margin-bottom:auto}.empty.svelte-7r3240{padding:8px;font-size:13.6px;font-style:italic;color:var(--playpilot-text-color-alt)}.save.svelte-7r3240{z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:sticky;bottom:0;left:0;width:100%;margin-top:16px;padding:8px;border:0;border-radius:32px;background:var(--playpilot-content);box-shadow:0 0 16px 16px var(--playpilot-dark);transition:opacity .1s;font-family:inherit;color:var(--playpilot-text-color-alt);font-size:13.6px;cursor:pointer}.save.svelte-7r3240:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.save[disabled].svelte-7r3240{opacity:.65;background:var(--playpilot-lighter)}.error.svelte-7r3240{margin-top:8px}.alert.svelte-7r3240{margin:8px 8px 0}.panel.svelte-7r3240{z-index:10;position:absolute;top:0;left:0;width:100%;height:100%;padding:24px;background:var(--playpilot-dark);overflow-y:auto}.trigger.svelte-qpyyh0{position:fixed;bottom:16px;right:16px}.button.svelte-qpyyh0{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:48px;height:48px;border:0;padding:12px;border-radius:50%;background:var(--playpilot-light);box-shadow:var(--playpilot-shadow-large);transition:transform 50ms;line-height:24px;text-align:center;font-size:13.6px}.button.svelte-qpyyh0:hover{filter:brightness(1.1);transform:scale(1.05)}.button.svelte-qpyyh0 svg{width:100%}.close.svelte-qpyyh0{display:flex;text-align:center;justify-content:center;position:absolute;top:-8px;right:-8px;width:24px;height:24px;padding:4px;background:var(--playpilot-content);color:#fff}.close.svelte-qpyyh0 svg{width:12px}summary.svelte-1tp7i1s{color:var(--playpilot-primary);font-weight:700}hr.svelte-1tp7i1s{margin:8px 0;border-color:var(--playpilot-primary)}button.svelte-1tp7i1s{cursor:pointer;padding:8px;border:1px solid var(--playpilot-primary);background:transparent;color:var(--playpilot-primary);font-family:inherit;font-weight:700}button.svelte-1tp7i1s:hover{color:#000;background:var(--playpilot-primary)}input[type=text].svelte-1tp7i1s,select.svelte-1tp7i1s{padding:8px;border:1px solid var(--playpilot-primary);background:#000;font-size:16px;color:var(--playpilot-primary)}.debugger.svelte-1tp7i1s{z-index:2147483647;position:fixed;top:0;left:0;max-width:70dvw;max-height:80dvh;padding:16px;border:1px solid var(--playpilot-primary);background:#000;overflow:auto;color:#fff;font-family:Consolas,monospace;color:var(--playpilot-primary)}.item.svelte-1tp7i1s{white-space:nowrap;overflow-x:auto;scrollbar-width:thin}.form-group.svelte-1tp7i1s{display:flex;align-items:center;gap:8px}.data.svelte-1tp7i1s{color:gray}.error.svelte-1tp7i1s{color:red}:root{--playpilot-primary: #fa548a;--playpilot-dark: #101426;--playpilot-light: #1b2743;--playpilot-lighter: #233257;--playpilot-content: #354367;--playpilot-content-light: #4b5b82;--playpilot-green: #53bca0;--playpilot-error: #ea5a5a;--playpilot-error-dark: #442533;--playpilot-warning: #f7c74e;--playpilot-warning-dark: #413c23;--playpilot-text-color: #fff;--playpilot-text-color-alt: #c8d4de;--playpilot-border-radius-small: 4px;--playpilot-border-radius: 8px;--playpilot-border-radius-large: 16px;--playpilot-border-radius-huge: 24px;--playpilot-font-family: Poppins, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif;--playpilot-font-size-small: 12px;--playpilot-font-size-base: 14px;--playpilot-font-size-large: 16px;--playpilot-font-bold: 500;--playpilot-underline: underline;--playpilot-shadow: 3.2px 2.4px 2.4px rgba(0, 0, 0, .2);--playpilot-shadow-large: 2.4px 2.4px 3.2px rgba(0, 0, 0, .05), 3.2px 5.6px 5.6px rgba(0, 0, 0, .1), 1.6px 1.6px 12px rgba(0, 0, 0, .25);--playpilot-hover-filter-brightness: 1.1}[data-playpilot-injection-key]{position:relative}.playpilot-injection-highlight{outline:4px solid var(--playpilot-primary)!important;outline-offset:8px!important;border-radius:.8px;scroll-margin:80px}.playpilot-styled-scrollbar{scrollbar-color:var(--playpilot-content-light) var(--playpilot-lighter);scrollbar-width:thin}.playpilot-styled-scrollbar::-webkit-scrollbar{width:12px}.playpilot-styled-scrollbar::-webkit-scrollbar-track{background:var(--playpilot-light)}.playpilot-styled-scrollbar::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:var(--playpilot-lighter)}.playpilot-styled-scrollbar::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.playpilot-styled-scrollbar::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}.playpilot-modal-open{overflow-y:hidden!important}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight]{font-weight:var(--playpilot-injection-font-weight)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-color]{color:var(--playpilot-injection-text-color)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-color-hover]:hover{color:var(--playpilot-injection-text-color-hover)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-decoration]{text-decoration:var(--playpilot-injection-text-decoration)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-text-decoration-hover]:hover{text-decoration:var(--playpilot-injection-text-decoration-hover)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-background-color]{background-color:var(--playpilot-injection-background-color)}[data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-background-color-hover]:hover{background-color:var(--playpilot-injection-background-color-hover)}h1 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h2 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h3 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h4 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]),h5 [data-playpilot-injection-key] a:not([data-used-css-variables*=--playpilot-injection-font-weight-headings]){font-weight:inherit}h1 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h2 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h3 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h4 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings],h5 [data-playpilot-injection-key] a[data-used-css-variables*=--playpilot-injection-font-weight-headings]{font-weight:var(--playpilot-injection-font-weight-headings)}::view-transition-old(playpilot-title-content),::view-transition-new(playpilot-title-content){height:100%}@keyframes playpilot-poster-fly-in{0%{clip-path:inset(0 0 100% 0);transform:translate(-50%) translateY(100%)}to{clip-path:inset(0 0 0 0)}}@keyframes playpilot-poster-fly-out{to{opacity:0;transform:translate(-50%) translateY(.5rem)}}.playpilot-floating-poster{opacity:0;position:absolute;bottom:calc(100% + .15em);left:50%;transform:translate(-50%);width:40px;height:auto;margin:0!important;border-radius:var(--playpilot-border-radius-small);box-shadow:0 2px 4px #0000001a;transform-origin:bottom center}.playpilot-floating-poster.loaded{animation:playpilot-poster-fly-in .6s cubic-bezier(.35,1.75,.75,1);opacity:1}.playpilot-floating-poster.animating-out{animation:playpilot-poster-fly-out .15s forwards}.playpilot-link-injections.svelte-1uha8ag *,[data-playpilot-explore] *{box-sizing:border-box}.playpilot-link-injections.svelte-1uha8ag svg,[data-playpilot-explore] svg{fill:none}.playpilot-link-injections.svelte-1uha8ag a,.playpilot-link-injections.svelte-1uha8ag button,.playpilot-link-injections.svelte-1uha8ag input,[data-playpilot-explore] a,[data-playpilot-explore] button,[data-playpilot-explore] input{transition:outline-offset .1s}.playpilot-link-injections.svelte-1uha8ag a:focus-visible,.playpilot-link-injections.svelte-1uha8ag button:focus-visible,.playpilot-link-injections.svelte-1uha8ag input:focus-visible,[data-playpilot-explore] a:focus-visible,[data-playpilot-explore] button:focus-visible,[data-playpilot-explore] input:focus-visible{outline:2px solid white;outline-offset:2px}
2
- /*$vite$:1*/`,document.head.appendChild(Ee);const Pe=!1;var qe=Array.isArray,Ra=Array.prototype.indexOf,Pr=Array.from,us=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Wn=Object.getOwnPropertyDescriptors,vs=Object.prototype,fs=Array.prototype,Cr=Object.getPrototypeOf,Gn=Object.isExtensible;function Hi(t){return typeof t=="function"}const vt=()=>{};function hs(t){return typeof(t==null?void 0:t.then)=="function"}function gs(t){return t()}function zr(t){for(var e=0;e<t.length;e++)t[e]()}function Kn(){var t,e,i=new Promise((a,r)=>{t=a,e=r});return{promise:i,resolve:t,reject:e}}function Zn(t,e,i=!1){return t===void 0?i?e():e:t}function ua(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const i=[];for(const a of t)if(i.push(a),i.length===e)break;return i}const Ze=2,Ir=4,Na=8,Yn=1<<24,zt=16,Zt=32,_i=64,Ba=128,bt=512,Xe=1024,nt=2048,Yt=4096,ct=8192,Jt=16384,Fa=32768,It=65536,Jn=1<<17,Qn=1<<18,Vi=1<<19,Xn=1<<20,va=32768,jr=1<<21,Ar=1<<22,oi=1<<23,jt=Symbol("$state"),$n=Symbol("legacy props"),ms=Symbol(""),Ui=new class extends Error{constructor(){super(...arguments);Ct(this,"name","StaleReactionError");Ct(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Lr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ys(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ws(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function _s(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ks(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ss(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ts(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ps(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const el=1,tl=2,il=4,Cs=8,zs=16,Is=1,js=2,As=4,Ls=8,Ms=16,Ds=1,qs=2,Os=4,Rs=1,Ns=2,We=Symbol(),Bs="http://www.w3.org/1999/xhtml",Fs="http://www.w3.org/2000/svg",Hs="@attach";function Vs(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Us(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function al(t){return t===this.v}function rl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function nl(t){return!rl(t,this.v)}let Wi=!1,Ws=!1;function Gs(){Wi=!0}let Te=null;function Gi(t){Te=t}function Mr(t){return ll().get(t)}function Dr(t,e){return ll().set(t,e),e}function re(t,e=!1,i){Te={p:Te,i:!1,c:null,e:null,s:t,x:null,l:Wi&&!e?{s:null,u:null,$:[]}:null}}function ne(t){var e=Te,i=e.e;if(i!==null){e.e=null;for(var a of i)zl(a)}return t!==void 0&&(e.x=t),e.i=!0,Te=e.p,t??{}}function ki(){return!Wi||Te!==null&&Te.l===null}function ll(t){return Te===null&&Lr(),Te.c??(Te.c=new Map(Ks(Te)||void 0))}function Ks(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let Si=[];function ol(){var t=Si;Si=[],zr(t)}function Qt(t){if(Si.length===0&&!Zi){var e=Si;queueMicrotask(()=>{e===Si&&ol()})}Si.push(t)}function Zs(){for(;Si.length>0;)ol()}function sl(t){var e=_e;if(e===null)return be.f|=oi,t;if(e.f&Fa)Ki(t,e);else{if(!(e.f&Ba))throw t;e.b.error(t)}}function Ki(t,e){for(;e!==null;){if(e.f&Ba)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Ha=new Set;let ye=null,Va=null,Re=null,ft=[],Ua=null,qr=!1,Zi=!1;const yr=class yr{constructor(){ue(this,He);Ct(this,"committed",!1);Ct(this,"current",new Map);Ct(this,"previous",new Map);ue(this,na,new Set);ue(this,la,new Set);ue(this,Di,0);ue(this,qi,0);ue(this,Aa,null);ue(this,oa,[]);ue(this,sa,[]);Ct(this,"skipped_effects",new Set);Ct(this,"is_fork",!1)}is_deferred(){return this.is_fork||A(this,qi)>0}process(e){var a;ft=[],Va=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)ze(this,He,Fn).call(this,r,i);this.is_fork||ze(this,He,os).call(this),this.is_deferred()?(ze(this,He,Fi).call(this,i.effects),ze(this,He,Fi).call(this,i.render_effects),ze(this,He,Fi).call(this,i.block_effects)):(Va=this,ye=null,pl(i.render_effects),pl(i.effects),Va=null,(a=A(this,Aa))==null||a.resolve()),Re=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&oi||(this.current.set(e,e.v),Re==null||Re.set(e,e.v))}activate(){ye=this,this.apply()}deactivate(){ye===this&&(ye=null,Re=null)}flush(){if(this.activate(),ft.length>0){if(dl(),ye!==null&&ye!==this)return}else A(this,Di)===0&&this.process([]);this.deactivate()}discard(){for(const e of A(this,la))e(this);A(this,la).clear()}increment(e){se(this,Di,A(this,Di)+1),e&&se(this,qi,A(this,qi)+1)}decrement(e){se(this,Di,A(this,Di)-1),e&&se(this,qi,A(this,qi)-1),this.revive()}revive(){for(const e of A(this,oa))$e(e,nt),Ti(e);for(const e of A(this,sa))$e(e,Yt),Ti(e);se(this,oa,[]),se(this,sa,[]),this.flush()}oncommit(e){A(this,na).add(e)}ondiscard(e){A(this,la).add(e)}settled(){return(A(this,Aa)??se(this,Aa,Kn())).promise}static ensure(){if(ye===null){const e=ye=new yr;Ha.add(ye),Zi||yr.enqueue(()=>{ye===e&&e.flush()})}return ye}static enqueue(e){Qt(e)}apply(){}};na=new WeakMap,la=new WeakMap,Di=new WeakMap,qi=new WeakMap,Aa=new WeakMap,oa=new WeakMap,sa=new WeakMap,He=new WeakSet,Fn=function(e,i){var p;e.f^=Xe;for(var a=e.first;a!==null;){var r=a.f,n=(r&(Zt|_i))!==0,l=n&&(r&Xe)!==0,c=l||(r&ct)!==0||this.skipped_effects.has(a);if(a.f&Ba&&((p=a.b)!=null&&p.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!c&&a.fn!==null){n?a.f^=Xe:r&Ir?i.effects.push(a):wa(a)&&(a.f&zt&&i.block_effects.push(a),xa(a));var s=a.first;if(s!==null){a=s;continue}}var d=a.parent;for(a=a.next;a===null&&d!==null;)d===i.effect&&(ze(this,He,Fi).call(this,i.effects),ze(this,He,Fi).call(this,i.render_effects),ze(this,He,Fi).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Fi=function(e){for(const i of e)(i.f&nt?A(this,oa):A(this,sa)).push(i),ze(this,He,Hn).call(this,i.deps),$e(i,Xe)},Hn=function(e){if(e!==null)for(const i of e)!(i.f&Ze)||!(i.f&va)||(i.f^=va,ze(this,He,Hn).call(this,i.deps))},os=function(){if(A(this,qi)===0){for(const e of A(this,na))e();A(this,na).clear()}A(this,Di)===0&&ze(this,He,ss).call(this)},ss=function(){var n;if(Ha.size>1){this.previous.clear();var e=Re,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Ha){if(l===this){i=!1;continue}const c=[];for(const[d,p]of this.current){if(l.current.has(d))if(i&&p!==l.current.get(d))l.current.set(d,p);else continue;c.push(d)}if(c.length===0)continue;const s=[...l.current.keys()].filter(d=>!this.current.has(d));if(s.length>0){var r=ft;ft=[];const d=new Set,p=new Map;for(const u of c)ul(u,s,d,p);if(ft.length>0){ye=l,l.apply();for(const u of ft)ze(n=l,He,Fn).call(n,u,a);l.deactivate()}ft=r}}ye=null,Re=e}this.committed=!0,Ha.delete(this)};let At=yr;function cl(t){var e=Zi;Zi=!0;try{for(var i;;){if(Zs(),ft.length===0&&(ye==null||ye.flush(),ft.length===0))return Ua=null,i;dl()}}finally{Zi=e}}function dl(){var t=pi;qr=!0;var e=null;try{var i=0;for(Ga(!0);ft.length>0;){var a=At.ensure();if(i++>1e3){var r,n;Ys()}a.process(ft),si.clear()}}finally{qr=!1,Ga(t),Ua=null}}function Ys(){try{_s()}catch(t){Ki(t,Ua)}}let wt=null;function pl(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(Jt|ct))&&wa(a)&&(wt=new Set,xa(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?Ll(a):a.fn=null),(wt==null?void 0:wt.size)>0)){si.clear();for(const r of wt){if(r.f&(Jt|ct))continue;const n=[r];let l=r.parent;for(;l!==null;)wt.has(l)&&(wt.delete(l),n.push(l)),l=l.parent;for(let c=n.length-1;c>=0;c--){const s=n[c];s.f&(Jt|ct)||xa(s)}}wt.clear()}}wt=null}}function ul(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const r of t.reactions){const n=r.f;n&Ze?ul(r,e,i,a):n&(Ar|zt)&&!(n&nt)&&vl(r,e,a)&&($e(r,nt),Ti(r))}}function vl(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const r of t.deps){if(e.includes(r))return!0;if(r.f&Ze&&vl(r,e,i))return i.set(r,!0),!0}return i.set(t,!1),!1}function Ti(t){for(var e=Ua=t;e.parent!==null;){e=e.parent;var i=e.f;if(qr&&e===_e&&i&zt&&!(i&Qn))return;if(i&(_i|Zt)){if(!(i&Xe))return;e.f^=Xe}}ft.push(e)}function fl(t){let e=0,i=Mt(0),a;return()=>{ma()&&(o(i),Wa(()=>(e===0&&(a=Rt(()=>t(()=>ci(i)))),e+=1,()=>{Qt(()=>{e-=1,e===0&&(a==null||a(),a=void 0,ci(i))})})))}}var Js=It|Vi|Ba;function Qs(t,e,i){new Xs(t,e,i)}class Xs{constructor(e,i,a){ue(this,Ke);Ct(this,"parent");ue(this,gt,!1);ue(this,mt);ue(this,Rn,null);ue(this,Ft);ue(this,Oi);ue(this,Ht);ue(this,yt,null);ue(this,st,null);ue(this,Vt,null);ue(this,ri,null);ue(this,mi,null);ue(this,Ri,0);ue(this,yi,0);ue(this,Ni,!1);ue(this,bi,null);ue(this,br,fl(()=>(se(this,bi,Mt(A(this,Ri))),()=>{se(this,bi,null)})));se(this,mt,e),se(this,Ft,i),se(this,Oi,a),this.parent=_e.b,se(this,gt,!!A(this,Ft).pending),se(this,Ht,di(()=>{_e.b=this;{var r=ze(this,Ke,Vn).call(this);try{se(this,yt,lt(()=>a(r)))}catch(n){this.error(n)}A(this,yi)>0?ze(this,Ke,Er).call(this):se(this,gt,!1)}return()=>{var n;(n=A(this,mi))==null||n.remove()}},Js))}is_pending(){return A(this,gt)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!A(this,Ft).pending}update_pending_count(e){ze(this,Ke,Un).call(this,e),se(this,Ri,A(this,Ri)+e),A(this,bi)&&Xt(A(this,bi),A(this,Ri))}get_effect_pending(){return A(this,br).call(this),o(A(this,bi))}error(e){var i=A(this,Ft).onerror;let a=A(this,Ft).failed;if(A(this,Ni)||!i&&!a)throw e;A(this,yt)&&(Ye(A(this,yt)),se(this,yt,null)),A(this,st)&&(Ye(A(this,st)),se(this,st,null)),A(this,Vt)&&(Ye(A(this,Vt)),se(this,Vt,null));var r=!1,n=!1;const l=()=>{if(r){Us();return}r=!0,n&&Ps(),At.ensure(),se(this,Ri,0),A(this,Vt)!==null&&Ji(A(this,Vt),()=>{se(this,Vt,null)}),se(this,gt,this.has_pending_snippet()),se(this,yt,ze(this,Ke,Tr).call(this,()=>(se(this,Ni,!1),lt(()=>A(this,Oi).call(this,A(this,mt)))))),A(this,yi)>0?ze(this,Ke,Er).call(this):se(this,gt,!1)};var c=be;try{ot(null),n=!0,i==null||i(e,l),n=!1}catch(s){Ki(s,A(this,Ht)&&A(this,Ht).parent)}finally{ot(c)}a&&Qt(()=>{se(this,Vt,ze(this,Ke,Tr).call(this,()=>{At.ensure(),se(this,Ni,!0);try{return lt(()=>{a(A(this,mt),()=>e,()=>l)})}catch(s){return Ki(s,A(this,Ht).parent),null}finally{se(this,Ni,!1)}}))})}}gt=new WeakMap,mt=new WeakMap,Rn=new WeakMap,Ft=new WeakMap,Oi=new WeakMap,Ht=new WeakMap,yt=new WeakMap,st=new WeakMap,Vt=new WeakMap,ri=new WeakMap,mi=new WeakMap,Ri=new WeakMap,yi=new WeakMap,Ni=new WeakMap,bi=new WeakMap,br=new WeakMap,Ke=new WeakSet,rg=function(){try{se(this,yt,lt(()=>A(this,Oi).call(this,A(this,mt))))}catch(e){this.error(e)}se(this,gt,!1)},ng=function(){const e=A(this,Ft).pending;e&&(se(this,st,lt(()=>e(A(this,mt)))),At.enqueue(()=>{var i=ze(this,Ke,Vn).call(this);se(this,yt,ze(this,Ke,Tr).call(this,()=>(At.ensure(),lt(()=>A(this,Oi).call(this,i))))),A(this,yi)>0?ze(this,Ke,Er).call(this):(Ji(A(this,st),()=>{se(this,st,null)}),se(this,gt,!1))}))},Vn=function(){var e=A(this,mt);return A(this,gt)&&(se(this,mi,Dt()),A(this,mt).before(A(this,mi)),e=A(this,mi)),e},Tr=function(e){var i=_e,a=be,r=Te;Ot(A(this,Ht)),ot(A(this,Ht)),Gi(A(this,Ht).ctx);try{return e()}catch(n){return sl(n),null}finally{Ot(i),ot(a),Gi(r)}},Er=function(){const e=A(this,Ft).pending;A(this,yt)!==null&&(se(this,ri,document.createDocumentFragment()),A(this,ri).append(A(this,mi)),ql(A(this,yt),A(this,ri))),A(this,st)===null&&se(this,st,lt(()=>e(A(this,mt))))},Un=function(e){var i;if(!this.has_pending_snippet()){this.parent&&ze(i=this.parent,Ke,Un).call(i,e);return}se(this,yi,A(this,yi)+e),A(this,yi)===0&&(se(this,gt,!1),A(this,st)&&Ji(A(this,st),()=>{se(this,st,null)}),A(this,ri)&&(A(this,mt).before(A(this,ri)),se(this,ri,null)))};let Ei=null;function hl(t){Ei=t}function je(t,e){return e}function $s(t,e,i){for(var a=[],r=e.length,n=0;n<r;n++)Hr(e[n].e,a,!0);Ml(a,()=>{var l=a.length===0&&i!==null;if(l){var c=i,s=c.parentNode;oc(s),s.append(c),t.items.clear(),Lt(t,e[0].prev,e[r-1].next)}for(var d=0;d<r;d++){var p=e[d];l||(t.items.delete(p.k),Lt(t,p.prev,p.next)),Ye(p.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Ie(t,e,i,a,r,n=null){var l=t,c=new Map,s=null,d=(e&il)!==0,p=(e&el)!==0,u=(e&tl)!==0;if(d){var f=t;l=f.appendChild(Dt())}var h=null,m=Rr(()=>{var _=i();return qe(_)?_:_==null?[]:Pr(_)}),b,y=!0;function g(){ec(x,b,l,e,a),h!==null&&(b.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):Vr(h.effect),S.first=h.effect):Ji(h.effect,()=>{h=null}))}var S=di(()=>{b=o(m);for(var _=b.length,L=new Set,I=ye,j=null,B=El(),M=0;M<_;M+=1){var q=b[M],T=a(q,M),E=y?null:c.get(T);E?(p&&Xt(E.v,q),u?Xt(E.i,M):E.i=M,B&&I.skipped_effects.delete(E.e)):(E=tc(y?l:null,j,q,T,M,r,e,i),y&&(E.o=!0,j===null?s=E:j.next=E,j=E),c.set(T,E)),L.add(T)}if(_===0&&n&&!h)if(y)h={fragment:null,effect:lt(()=>n(l))};else{var P=document.createDocumentFragment(),F=Dt();P.append(F),h={fragment:P,effect:lt(()=>n(F))}}if(!y)if(B){for(const[W,$]of c)L.has(W)||I.skipped_effects.add($.e);I.oncommit(g),I.ondiscard(()=>{})}else g();o(m)}),x={effect:S,flags:e,items:c,first:s};y=!1}function ec(t,e,i,a,r){var q,T,E,P;var n=(a&Cs)!==0,l=e.length,c=t.items,s=t.first,d,p=null,u,f=[],h=[],m,b,y,g;if(n)for(g=0;g<l;g+=1)m=e[g],b=r(m,g),y=c.get(b),y.o&&((q=y.a)==null||q.measure(),(u??(u=new Set)).add(y));for(g=0;g<l;g+=1){if(m=e[g],b=r(m,g),y=c.get(b),t.first??(t.first=y),!y.o){y.o=!0;var S=p?p.next:s;Lt(t,p,y),Lt(t,y,S),Or(y,S,i),p=y,f=[],h=[],s=p.next;continue}if(y.e.f&ct&&(Vr(y.e),n&&((T=y.a)==null||T.unfix(),(u??(u=new Set)).delete(y))),y!==s){if(d!==void 0&&d.has(y)){if(f.length<h.length){var x=h[0],_;p=x.prev;var L=f[0],I=f[f.length-1];for(_=0;_<f.length;_+=1)Or(f[_],x,i);for(_=0;_<h.length;_+=1)d.delete(h[_]);Lt(t,L.prev,I.next),Lt(t,p,L),Lt(t,I,x),s=x,p=I,g-=1,f=[],h=[]}else d.delete(y),Or(y,s,i),Lt(t,y.prev,y.next),Lt(t,y,p===null?t.first:p.next),Lt(t,p,y),p=y;continue}for(f=[],h=[];s!==null&&s.k!==b;)s.e.f&ct||(d??(d=new Set)).add(s),h.push(s),s=s.next;if(s===null)continue;y=s}f.push(y),p=y,s=y.next}if(s!==null||d!==void 0){for(var j=d===void 0?[]:Pr(d);s!==null;)s.e.f&ct||j.push(s),s=s.next;var B=j.length;if(B>0){var M=a&il&&l===0?i:null;if(n){for(g=0;g<B;g+=1)(E=j[g].a)==null||E.measure();for(g=0;g<B;g+=1)(P=j[g].a)==null||P.fix()}$s(t,j,M)}}n&&Qt(()=>{var F;if(u!==void 0)for(y of u)(F=y.a)==null||F.apply()})}function tc(t,e,i,a,r,n,l,c){var s=Ei,d=(l&el)!==0,p=(l&zs)===0,u=d?p?Fr(i,!1,!1):Mt(i):i,f=l&tl?Mt(r):r,h={i:f,v:u,k:a,a:null,e:null,o:!1,prev:e,next:null};Ei=h;try{if(t===null){var m=document.createDocumentFragment();m.append(t=Dt())}return h.e=lt(()=>n(t,u,f,c)),e!==null&&(e.next=h),h}finally{Ei=s}}function Or(t,e,i){for(var a=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,n=t.e.nodes_start;n!==null&&n!==a;){var l=ga(n);r.before(n),n=l}}function Lt(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e===t.effect.last&&i!==null&&(t.effect.last=i.e),e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e===t.effect.last&&e===null&&(t.effect.last=i.e.prev),i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function gl(t,e,i,a){const r=ki()?ha:Rr;if(i.length===0&&t.length===0){a(e.map(r));return}var n=ye,l=_e,c=ml();function s(){Promise.all(i.map(d=>ic(d))).then(d=>{c();try{a([...e.map(r),...d])}catch(p){l.f&Jt||Ki(p,l)}n==null||n.deactivate(),fa()}).catch(d=>{Ki(d,l)})}t.length>0?Promise.all(t).then(()=>{c();try{return s()}finally{n==null||n.deactivate(),fa()}}):s()}function ml(){var t=_e,e=be,i=Te,a=ye;return function(n=!0){Ot(t),ot(e),Gi(i),n&&(a==null||a.activate())}}function fa(){Ot(null),ot(null),Gi(null)}function ha(t){var e=Ze|nt,i=be!==null&&be.f&Ze?be:null;return _e!==null&&(_e.f|=Vi),{ctx:Te,deps:null,effects:null,equals:al,f:e,fn:t,reactions:null,rv:0,v:We,wv:0,parent:i??_e,ac:null}}function ic(t,e){let i=_e;i===null&&ys();var a=i.b,r=void 0,n=Mt(We),l=!be,c=new Map;return hc(()=>{var f;var s=Kn();r=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===ye&&d.committed&&d.deactivate(),fa()})}catch(h){s.reject(h),fa()}var d=ye;if(l){var p=!a.is_pending();a.update_pending_count(1),d.increment(p),(f=c.get(d))==null||f.reject(Ui),c.delete(d),c.set(d,s)}const u=(h,m=void 0)=>{if(d.activate(),m)m!==Ui&&(n.f|=oi,Xt(n,m));else{n.f&oi&&(n.f^=oi),Xt(n,h);for(const[b,y]of c){if(c.delete(b),b===d)break;y.reject(Ui)}}l&&(a.update_pending_count(-1),d.decrement(p))};s.promise.then(u,h=>u(null,h||"unknown"))}),ya(()=>{for(const s of c.values())s.reject(Ui)}),new Promise(s=>{function d(p){function u(){p===r?s(n):d(r)}p.then(u,u)}d(r)})}function U(t){const e=ha(t);return Rl(e),e}function Rr(t){const e=ha(t);return e.equals=nl,e}function yl(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ye(e[i])}}function ac(t){for(var e=t.parent;e!==null;){if(!(e.f&Ze))return e.f&Jt?null:e;e=e.parent}return null}function Nr(t){var e,i=_e;Ot(ac(t));try{t.f&=~va,yl(t),e=Vl(t)}finally{Ot(i)}return e}function bl(t){var e=Nr(t);if(t.equals(e)||(ye!=null&&ye.is_fork||(t.v=e),t.wv=Fl()),!zi)if(Re!==null)(ma()||ye!=null&&ye.is_fork)&&Re.set(t,e);else{var i=t.f&bt?Xe:Yt;$e(t,i)}}let Br=new Set;const si=new Map;let wl=!1;function Mt(t,e){var i={f:0,v:t,reactions:null,equals:al,rv:0,wv:0};return i}function G(t,e){const i=Mt(t);return Rl(i),i}function Fr(t,e=!1,i=!0){var r;const a=Mt(t);return e||(a.equals=nl),Wi&&i&&Te!==null&&Te.l!==null&&((r=Te.l).s??(r.s=[])).push(a),a}function D(t,e,i=!1){be!==null&&(!qt||be.f&Jn)&&ki()&&be.f&(Ze|zt|Ar|Jn)&&!(tt!=null&&tt.includes(t))&&Es();let a=i?Ae(e):e;return Xt(t,a)}function Xt(t,e){if(!t.equals(e)){var i=t.v;zi?si.set(t,e):si.set(t,i),t.v=e;var a=At.ensure();a.capture(t,i),t.f&Ze&&(t.f&nt&&Nr(t),$e(t,t.f&bt?Xe:Yt)),t.wv=Fl(),xl(t,nt),ki()&&_e!==null&&_e.f&Xe&&!(_e.f&(Zt|_i))&&(ht===null?yc([t]):ht.push(t)),!a.is_fork&&Br.size>0&&!wl&&rc()}return e}function rc(){wl=!1;var t=pi;Ga(!0);const e=Array.from(Br);try{for(const i of e)i.f&Xe&&$e(i,Yt),wa(i)&&xa(i)}finally{Ga(t)}Br.clear()}function ci(t){D(t,t.v+1)}function xl(t,e){var i=t.reactions;if(i!==null)for(var a=ki(),r=i.length,n=0;n<r;n++){var l=i[n],c=l.f;if(!(!a&&l===_e)){var s=(c&nt)===0;if(s&&$e(l,e),c&Ze){var d=l;Re==null||Re.delete(d),c&va||(c&bt&&(l.f|=va),xl(d,Yt))}else s&&(c&zt&&wt!==null&&wt.add(l),Ti(l))}}}function Ae(t){if(typeof t!="object"||t===null||jt in t)return t;const e=Cr(t);if(e!==vs&&e!==fs)return t;var i=new Map,a=qe(t),r=G(0),n=$t,l=c=>{if($t===n)return c();var s=be,d=$t;ot(null),Bl(n);var p=c();return ot(s),Bl(d),p};return a&&i.set("length",G(t.length)),new Proxy(t,{defineProperty(c,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Ss();var p=i.get(s);return p===void 0?p=l(()=>{var u=G(d.value);return i.set(s,u),u}):D(p,d.value,!0),!0},deleteProperty(c,s){var d=i.get(s);if(d===void 0){if(s in c){const p=l(()=>G(We));i.set(s,p),ci(r)}}else D(d,We),ci(r);return!0},get(c,s,d){var h;if(s===jt)return t;var p=i.get(s),u=s in c;if(p===void 0&&(!u||(h=li(c,s))!=null&&h.writable)&&(p=l(()=>{var m=Ae(u?c[s]:We),b=G(m);return b}),i.set(s,p)),p!==void 0){var f=o(p);return f===We?void 0:f}return Reflect.get(c,s,d)},getOwnPropertyDescriptor(c,s){var d=Reflect.getOwnPropertyDescriptor(c,s);if(d&&"value"in d){var p=i.get(s);p&&(d.value=o(p))}else if(d===void 0){var u=i.get(s),f=u==null?void 0:u.v;if(u!==void 0&&f!==We)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return d},has(c,s){var f;if(s===jt)return!0;var d=i.get(s),p=d!==void 0&&d.v!==We||Reflect.has(c,s);if(d!==void 0||_e!==null&&(!p||(f=li(c,s))!=null&&f.writable)){d===void 0&&(d=l(()=>{var h=p?Ae(c[s]):We,m=G(h);return m}),i.set(s,d));var u=o(d);if(u===We)return!1}return p},set(c,s,d,p){var x;var u=i.get(s),f=s in c;if(a&&s==="length")for(var h=d;h<u.v;h+=1){var m=i.get(h+"");m!==void 0?D(m,We):h in c&&(m=l(()=>G(We)),i.set(h+"",m))}if(u===void 0)(!f||(x=li(c,s))!=null&&x.writable)&&(u=l(()=>G(void 0)),D(u,Ae(d)),i.set(s,u));else{f=u.v!==We;var b=l(()=>Ae(d));D(u,b)}var y=Reflect.getOwnPropertyDescriptor(c,s);if(y!=null&&y.set&&y.set.call(p,d),!f){if(a&&typeof s=="string"){var g=i.get("length"),S=Number(s);Number.isInteger(S)&&S>=g.v&&D(g,S+1)}ci(r)}return!0},ownKeys(c){o(r);var s=Reflect.ownKeys(c).filter(u=>{var f=i.get(u);return f===void 0||f.v!==We});for(var[d,p]of i)p.v!==We&&!(d in c)&&s.push(d);return s},setPrototypeOf(){Ts()}})}function _l(t){try{if(t!==null&&typeof t=="object"&&jt in t)return t[jt]}catch{}return t}function nc(t,e){return Object.is(_l(t),_l(e))}var Me,kl,Sl,Tl;function lc(){if(Me===void 0){Me=window,kl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Sl=li(e,"firstChild").get,Tl=li(e,"nextSibling").get,Gn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Gn(i)&&(i.__t=void 0)}}function Dt(t=""){return document.createTextNode(t)}function Yi(t){return Sl.call(t)}function ga(t){return Tl.call(t)}function k(t,e){return Yi(t)}function J(t,e=!1){{var i=Yi(t);return i instanceof Comment&&i.data===""?ga(i):i}}function z(t,e=1,i=!1){let a=t;for(;e--;)a=ga(a);return a}function oc(t){t.textContent=""}function El(){return!1}function sc(t,e){if(e){const i=document.body;t.autofocus=!0,Qt(()=>{document.activeElement===i&&t.focus()})}}let Pl=!1;function cc(){Pl||(Pl=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const i of t.target.elements)(e=i.__on_r)==null||e.call(i)})},{capture:!0}))}function dc(t,e,i,a=!0){a&&i();for(var r of e)t.addEventListener(r,i);ya(()=>{for(var n of e)t.removeEventListener(n,i)})}function Pi(t){var e=be,i=_e;ot(null),Ot(null);try{return t()}finally{ot(e),Ot(i)}}function pc(t,e,i,a=i){t.addEventListener(e,()=>Pi(i));const r=t.__on_r;r?t.__on_r=()=>{r(),a(!0)}:t.__on_r=()=>a(!0),cc()}function Cl(t){_e===null&&(be===null&&xs(),ws()),zi&&bs()}function uc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function xt(t,e,i){var a=_e;a!==null&&a.f&ct&&(t|=ct);var r={ctx:Te,deps:null,nodes_start:null,nodes_end:null,f:t|nt|bt,first:null,fn:e,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(i)try{xa(r),r.f|=Fa}catch(c){throw Ye(r),c}else e!==null&&Ti(r);var n=r;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&!(n.f&Vi)&&(n=n.first,t&zt&&t&It&&n!==null&&(n.f|=It)),n!==null&&(n.parent=a,a!==null&&uc(n,a),be!==null&&be.f&Ze&&!(t&_i))){var l=be;(l.effects??(l.effects=[])).push(n)}return r}function ma(){return be!==null&&!qt}function ya(t){const e=xt(Na,null,!1);return $e(e,Xe),e.teardown=t,e}function Ge(t){Cl();var e=_e.f,i=!be&&(e&Zt)!==0&&(e&Fa)===0;if(i){var a=Te;(a.e??(a.e=[])).push(t)}else return zl(t)}function zl(t){return xt(Ir|Xn,t,!1)}function vc(t){return Cl(),xt(Na|Xn,t,!0)}function fc(t){At.ensure();const e=xt(_i|Vi,t,!0);return(i={})=>new Promise(a=>{i.outro?Ji(e,()=>{Ye(e),a(void 0)}):(Ye(e),a(void 0))})}function Ci(t){return xt(Ir,t,!1)}function hc(t){return xt(Ar|Vi,t,!0)}function Wa(t,e=0){return xt(Na|e,t,!0)}function V(t,e=[],i=[],a=[]){gl(a,e,i,r=>{xt(Na,()=>t(...r.map(o)),!0)})}function di(t,e=0){var i=xt(zt|e,t,!0);return i}function Il(t,e=0){var i=xt(Yn|e,t,!0);return i}function lt(t){return xt(Zt|Vi,t,!0)}function jl(t){var e=t.teardown;if(e!==null){const i=zi,a=be;Ol(!0),ot(null);try{e.call(null)}finally{Ol(i),ot(a)}}}function Al(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const r=i.ac;r!==null&&Pi(()=>{r.abort(Ui)});var a=i.next;i.f&_i?i.parent=null:Ye(i,e),i=a}}function gc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Zt||Ye(e),e=i}}function Ye(t,e=!0){var i=!1;(e||t.f&Qn)&&t.nodes_start!==null&&t.nodes_end!==null&&(mc(t.nodes_start,t.nodes_end),i=!0),Al(t,e&&!i),Ka(t,0),$e(t,Jt);var a=t.transitions;if(a!==null)for(const n of a)n.stop();jl(t);var r=t.parent;r!==null&&r.first!==null&&Ll(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function mc(t,e){for(;t!==null;){var i=t===e?null:ga(t);t.remove(),t=i}}function Ll(t){var e=t.parent,i=t.prev,a=t.next;i!==null&&(i.next=a),a!==null&&(a.prev=i),e!==null&&(e.first===t&&(e.first=a),e.last===t&&(e.last=i))}function Ji(t,e,i=!0){var a=[];Hr(t,a,!0),Ml(a,()=>{i&&Ye(t),e&&e()})}function Ml(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var r of t)r.out(a)}else e()}function Hr(t,e,i){if(!(t.f&ct)){if(t.f^=ct,t.transitions!==null)for(const l of t.transitions)(l.is_global||i)&&e.push(l);for(var a=t.first;a!==null;){var r=a.next,n=(a.f&It)!==0||(a.f&Zt)!==0&&(t.f&zt)!==0;Hr(a,e,n?i:!1),a=r}}}function Vr(t){Dl(t,!0)}function Dl(t,e){if(t.f&ct){t.f^=ct,t.f&Xe||($e(t,nt),Ti(t));for(var i=t.first;i!==null;){var a=i.next,r=(i.f&It)!==0||(i.f&Zt)!==0;Dl(i,r?e:!1),i=a}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function ql(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var r=i===a?null:ga(i);e.append(i),i=r}}let pi=!1;function Ga(t){pi=t}let zi=!1;function Ol(t){zi=t}let be=null,qt=!1;function ot(t){be=t}let _e=null;function Ot(t){_e=t}let tt=null;function Rl(t){be!==null&&(tt===null?tt=[t]:tt.push(t))}let it=null,dt=0,ht=null;function yc(t){ht=t}let Nl=1,ba=0,$t=ba;function Bl(t){$t=t}function Fl(){return++Nl}function wa(t){var e=t.f;if(e&nt)return!0;if(e&Ze&&(t.f&=-32769),e&Yt){var i=t.deps;if(i!==null)for(var a=i.length,r=0;r<a;r++){var n=i[r];if(wa(n)&&bl(n),n.wv>t.wv)return!0}e&bt&&Re===null&&$e(t,Xe)}return!1}function Hl(t,e,i=!0){var a=t.reactions;if(a!==null&&!(tt!=null&&tt.includes(t)))for(var r=0;r<a.length;r++){var n=a[r];n.f&Ze?Hl(n,e,!1):e===n&&(i?$e(n,nt):n.f&Xe&&$e(n,Yt),Ti(n))}}function Vl(t){var m;var e=it,i=dt,a=ht,r=be,n=tt,l=Te,c=qt,s=$t,d=t.f;it=null,dt=0,ht=null,be=d&(Zt|_i)?null:t,tt=null,Gi(t.ctx),qt=!1,$t=++ba,t.ac!==null&&(Pi(()=>{t.ac.abort(Ui)}),t.ac=null);try{t.f|=jr;var p=t.fn,u=p(),f=t.deps;if(it!==null){var h;if(Ka(t,dt),f!==null&&dt>0)for(f.length=dt+it.length,h=0;h<it.length;h++)f[dt+h]=it[h];else t.deps=f=it;if(pi&&ma()&&t.f&bt)for(h=dt;h<f.length;h++)((m=f[h]).reactions??(m.reactions=[])).push(t)}else f!==null&&dt<f.length&&(Ka(t,dt),f.length=dt);if(ki()&&ht!==null&&!qt&&f!==null&&!(t.f&(Ze|Yt|nt)))for(h=0;h<ht.length;h++)Hl(ht[h],t);return r!==null&&r!==t&&(ba++,ht!==null&&(a===null?a=ht:a.push(...ht))),t.f&oi&&(t.f^=oi),u}catch(b){return sl(b)}finally{t.f^=jr,it=e,dt=i,ht=a,be=r,tt=n,Gi(l),qt=c,$t=s}}function bc(t,e){let i=e.reactions;if(i!==null){var a=Ra.call(i,t);if(a!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[a]=i[r],i.pop())}}i===null&&e.f&Ze&&(it===null||!it.includes(e))&&($e(e,Yt),e.f&bt&&(e.f^=bt,e.f&=-32769),yl(e),Ka(e,0))}function Ka(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)bc(t,i[a])}function xa(t){var e=t.f;if(!(e&Jt)){$e(t,Xe);var i=_e,a=pi;_e=t,pi=!0;try{e&(zt|Yn)?gc(t):Al(t),jl(t);var r=Vl(t);t.teardown=typeof r=="function"?r:null,t.wv=Nl;var n;Pe&&Ws&&t.f&nt&&t.deps}finally{pi=a,_e=i}}}async function _a(){await Promise.resolve(),cl()}function o(t){var e=t.f,i=(e&Ze)!==0;if(be!==null&&!qt){var a=_e!==null&&(_e.f&Jt)!==0;if(!a&&!(tt!=null&&tt.includes(t))){var r=be.deps;if(be.f&jr)t.rv<ba&&(t.rv=ba,it===null&&r!==null&&r[dt]===t?dt++:it===null?it=[t]:it.includes(t)||it.push(t));else{(be.deps??(be.deps=[])).push(t);var n=t.reactions;n===null?t.reactions=[be]:n.includes(be)||n.push(be)}}}if(zi){if(si.has(t))return si.get(t);if(i){var l=t,c=l.v;return(!(l.f&Xe)&&l.reactions!==null||Wl(l))&&(c=Nr(l)),si.set(l,c),c}}else i&&(!(Re!=null&&Re.has(t))||ye!=null&&ye.is_fork&&!ma())&&(l=t,wa(l)&&bl(l),pi&&ma()&&!(l.f&bt)&&Ul(l));if(Re!=null&&Re.has(t))return Re.get(t);if(t.f&oi)throw t.v;return t.v}function Ul(t){if(t.deps!==null){t.f^=bt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Ze&&!(e.f&bt)&&Ul(e)}}function Wl(t){if(t.v===We)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(si.has(e)||e.f&Ze&&Wl(e))return!0;return!1}function Rt(t){var e=qt;try{return qt=!0,t()}finally{qt=e}}const wc=-7169;function $e(t,e){t.f=t.f&wc|e}function Gl(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jt in t)Ur(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&jt in i&&Ur(i)}}}function Ur(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let a in t)try{Ur(t[a],e)}catch{}const i=Cr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=Wn(i);for(let r in a){const n=a[r].get;if(n)try{n.call(t)}catch{}}}}}function xc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const _c=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function kc(t){return _c.includes(t)}const Sc={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 Tc(t){return t=t.toLowerCase(),Sc[t]??t}const Ec=["touchstart","touchmove"];function Pc(t){return Ec.includes(t)}const Kl=new Set,Wr=new Set;function Gr(t,e,i,a={}){function r(n){if(a.capture||ka.call(e,n),!n.cancelBubble)return Pi(()=>i==null?void 0:i.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Qt(()=>{e.addEventListener(t,r,a)}):e.addEventListener(t,r,a),r}function Cc(t,e,i,a={}){var r=Gr(e,t,i,a);return()=>{t.removeEventListener(e,r,a)}}function ke(t,e,i,a,r){var n={capture:a,passive:r},l=Gr(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ya(()=>{e.removeEventListener(t,l,n)})}function ve(t){for(var e=0;e<t.length;e++)Kl.add(t[e]);for(var i of Wr)i(t)}let Zl=null;function ka(t){var y;var e=this,i=e.ownerDocument,a=t.type,r=((y=t.composedPath)==null?void 0:y.call(t))||[],n=r[0]||t.target;Zl=t;var l=0,c=Zl===t&&t.__root;if(c){var s=r.indexOf(c);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var d=r.indexOf(e);if(d===-1)return;s<=d&&(l=s)}if(n=r[l]||t.target,n!==e){us(t,"currentTarget",{configurable:!0,get(){return n||i}});var p=be,u=_e;ot(null),Ot(null);try{for(var f,h=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var b=n["__"+a];b!=null&&(!n.disabled||t.target===n)&&b.call(n,t)}catch(g){f?h.push(g):f=g}if(t.cancelBubble||m===e||m===null)break;n=m}if(f){for(let g of h)queueMicrotask(()=>{throw g});throw f}}finally{t.__root=e,delete t.currentTarget,ot(p),Ot(u)}}}function Yl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Qi(t,e){var i=_e;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function C(t,e){var i=(e&Rs)!==0,a=(e&Ns)!==0,r,n=!t.startsWith("<!>");return()=>{r===void 0&&(r=Yl(n?t:"<!>"+t),i||(r=Yi(r)));var l=a||kl?document.importNode(r,!0):r.cloneNode(!0);if(i){var c=Yi(l),s=l.lastChild;Qi(c,s)}else Qi(l,l);return l}}function zc(t,e,i="svg"){var a=!t.startsWith("<!>"),r=`<${i}>${a?t:"<!>"+t}</${i}>`,n;return()=>{if(!n){var l=Yl(r),c=Yi(l);n=Yi(c)}var s=n.cloneNode(!0);return Qi(s,s),s}}function Je(t,e){return zc(t,e,"svg")}function ui(t=""){{var e=Dt(t+"");return Qi(e,e),e}}function me(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Dt();return t.append(e,i),Qi(e,i),t}function w(t,e){t!==null&&t.before(e)}let Za=!0;function Ya(t){Za=t}function Z(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function Nt(t,e){return Ic(t,e)}const Xi=new Map;function Ic(t,{target:e,anchor:i,props:a={},events:r,context:n,intro:l=!0}){lc();var c=new Set,s=u=>{for(var f=0;f<u.length;f++){var h=u[f];if(!c.has(h)){c.add(h);var m=Pc(h);e.addEventListener(h,ka,{passive:m});var b=Xi.get(h);b===void 0?(document.addEventListener(h,ka,{passive:m}),Xi.set(h,1)):Xi.set(h,b+1)}}};s(Pr(Kl)),Wr.add(s);var d=void 0,p=fc(()=>{var u=i??e.appendChild(Dt());return Qs(u,{pending:()=>{}},f=>{if(n){re({});var h=Te;h.c=n}r&&(a.$$events=r),Za=l,d=t(f,a)||{},Za=!0,n&&ne()}),()=>{var m;for(var f of c){e.removeEventListener(f,ka);var h=Xi.get(f);--h===0?(document.removeEventListener(f,ka),Xi.delete(f)):Xi.set(f,h)}Wr.delete(s),u!==i&&((m=u.parentNode)==null||m.removeChild(u))}});return Kr.set(d,p),d}let Kr=new WeakMap;function $i(t,e){const i=Kr.get(t);return i?(Kr.delete(t),i(e)):Promise.resolve()}class ea{constructor(e,i=!0){Ct(this,"anchor");ue(this,Tt,new Map);ue(this,Ut,new Map);ue(this,ut,new Map);ue(this,Bi,new Set);ue(this,La,!0);ue(this,Ma,()=>{var e=ye;if(A(this,Tt).has(e)){var i=A(this,Tt).get(e),a=A(this,Ut).get(i);if(a)Vr(a),A(this,Bi).delete(i);else{var r=A(this,ut).get(i);r&&(A(this,Ut).set(i,r.effect),A(this,ut).delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),a=r.effect)}for(const[n,l]of A(this,Tt)){if(A(this,Tt).delete(n),n===e)break;const c=A(this,ut).get(l);c&&(Ye(c.effect),A(this,ut).delete(l))}for(const[n,l]of A(this,Ut)){if(n===i||A(this,Bi).has(n))continue;const c=()=>{if(Array.from(A(this,Tt).values()).includes(n)){var d=document.createDocumentFragment();ql(l,d),d.append(Dt()),A(this,ut).set(n,{effect:l,fragment:d})}else Ye(l);A(this,Bi).delete(n),A(this,Ut).delete(n)};A(this,La)||!a?(A(this,Bi).add(n),Ji(l,c,!1)):c()}}});ue(this,wr,e=>{A(this,Tt).delete(e);const i=Array.from(A(this,Tt).values());for(const[a,r]of A(this,ut))i.includes(a)||(Ye(r.effect),A(this,ut).delete(a))});this.anchor=e,se(this,La,i)}ensure(e,i){var a=ye,r=El();if(i&&!A(this,Ut).has(e)&&!A(this,ut).has(e))if(r){var n=document.createDocumentFragment(),l=Dt();n.append(l),A(this,ut).set(e,{effect:lt(()=>i(l)),fragment:n})}else A(this,Ut).set(e,lt(()=>i(this.anchor)));if(A(this,Tt).set(a,e),r){for(const[c,s]of A(this,Ut))c===e?a.skipped_effects.delete(s):a.skipped_effects.add(s);for(const[c,s]of A(this,ut))c===e?a.skipped_effects.delete(s.effect):a.skipped_effects.add(s.effect);a.oncommit(A(this,Ma)),a.ondiscard(A(this,wr))}else A(this,Ma).call(this)}}Tt=new WeakMap,Ut=new WeakMap,ut=new WeakMap,Bi=new WeakMap,La=new WeakMap,Ma=new WeakMap,wr=new WeakMap;const jc=0,Zr=1;function Ja(t,e,i,a,r){var n=ki(),l=We,c=n?Mt(l):Fr(l,!1,!1),s=n?Mt(l):Fr(l,!1,!1),d=new ea(t);di(()=>{var p=e(),u=!1;if(hs(p)){var f=ml(),h=!1;const m=b=>{if(!u){h=!0,f(!1),At.ensure();try{b()}finally{fa(),Zi||cl()}}};p.then(b=>{m(()=>{Xt(c,b),d.ensure(Zr,a&&(y=>a(y,c)))})},b=>{m(()=>{if(Xt(s,b),d.ensure(Zr,r&&(y=>r(y,s))),!r)throw s.v})}),Qt(()=>{h||m(()=>{d.ensure(jc,i)})})}else Xt(c,p),d.ensure(Zr,a&&(m=>a(m,c)));return()=>{u=!0}})}function H(t,e,i=!1){var a=new ea(t),r=i?It:0;function n(l,c){a.ensure(l,c)}di(()=>{var l=!1;e((c,s=!0)=>{l=!0,n(s,c)}),l||n(!1,null)},r)}function Sa(t,e,i){var a=new ea(t),r=!ki();di(()=>{var n=e();r&&n!==null&&typeof n=="object"&&(n={}),a.ensure(n,i)})}function Ne(t,e,...i){var a=new ea(t);di(()=>{const r=e()??null;a.ensure(r,r&&(n=>r(n,...i)))},It)}function Yr(t,e,i){var a=new ea(t);di(()=>{var r=e()??null;a.ensure(r,r&&(n=>i(n,r)))},It)}function Jl(t,e,i,a,r,n){var l=null,c=t,s=Ei,d=new ea(c,!1);di(()=>{const p=e()||null;var u=p==="svg"?Fs:null;if(p===null){d.ensure(null,null),Ya(!0);return}return d.ensure(p,f=>{var h=Ei;if(hl(s),p){if(l=u?document.createElementNS(u,p):document.createElement(p),Qi(l,l),a){var m=l.appendChild(Dt());a(l,m)}_e.nodes_end=l,f.before(l)}hl(h)}),Ya(!0),()=>{p&&Ya(!1)}},It),ya(()=>{Ya(!0)})}function Bt(t,e,i){Ci(()=>{var a=Rt(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var r=!1,n={};Wa(()=>{var l=i();Gl(l),r&&rl(n,l)&&(n=l,a.update(l))}),r=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function Qa(t,e){var i=void 0,a;Il(()=>{i!==(i=e())&&(a&&(Ye(a),a=null),i&&(a=lt(()=>{Ci(()=>i(t))})))})}function Ql(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Ql(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Ac(){for(var t,e,i=0,a="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Ql(t))&&(a&&(a+=" "),a+=e);return a}function Lc(t){return typeof t=="object"?Ac(t):t??""}const Xl=[...`
2
+ /*$vite$:1*/`,document.head.appendChild(Ee);const Pe=!1;var qe=Array.isArray,Ra=Array.prototype.indexOf,Pr=Array.from,us=Object.defineProperty,li=Object.getOwnPropertyDescriptor,Wn=Object.getOwnPropertyDescriptors,vs=Object.prototype,fs=Array.prototype,Cr=Object.getPrototypeOf,Gn=Object.isExtensible;function Hi(t){return typeof t=="function"}const vt=()=>{};function hs(t){return typeof(t==null?void 0:t.then)=="function"}function gs(t){return t()}function zr(t){for(var e=0;e<t.length;e++)t[e]()}function Kn(){var t,e,i=new Promise((a,r)=>{t=a,e=r});return{promise:i,resolve:t,reject:e}}function Zn(t,e,i=!1){return t===void 0?i?e():e:t}function ua(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const i=[];for(const a of t)if(i.push(a),i.length===e)break;return i}const Ze=2,Ir=4,Na=8,Yn=1<<24,zt=16,Zt=32,_i=64,Ba=128,bt=512,Xe=1024,nt=2048,Yt=4096,ct=8192,Jt=16384,Fa=32768,It=65536,Jn=1<<17,Qn=1<<18,Vi=1<<19,Xn=1<<20,va=32768,jr=1<<21,Ar=1<<22,oi=1<<23,jt=Symbol("$state"),$n=Symbol("legacy props"),ms=Symbol(""),Ui=new class extends Error{constructor(){super(...arguments);Ct(this,"name","StaleReactionError");Ct(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function Lr(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function ys(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function bs(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function ws(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function xs(t){throw new Error("https://svelte.dev/e/effect_orphan")}function _s(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ks(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ss(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Ts(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Es(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function Ps(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const el=1,tl=2,il=4,Cs=8,zs=16,Is=1,js=2,As=4,Ls=8,Ms=16,Ds=1,qs=2,Os=4,Rs=1,Ns=2,We=Symbol(),Bs="http://www.w3.org/1999/xhtml",Fs="http://www.w3.org/2000/svg",Hs="@attach";function Vs(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function Us(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function al(t){return t===this.v}function rl(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function nl(t){return!rl(t,this.v)}let Wi=!1,Ws=!1;function Gs(){Wi=!0}let Te=null;function Gi(t){Te=t}function Mr(t){return ll().get(t)}function Dr(t,e){return ll().set(t,e),e}function ne(t,e=!1,i){Te={p:Te,i:!1,c:null,e:null,s:t,x:null,l:Wi&&!e?{s:null,u:null,$:[]}:null}}function le(t){var e=Te,i=e.e;if(i!==null){e.e=null;for(var a of i)zl(a)}return t!==void 0&&(e.x=t),e.i=!0,Te=e.p,t??{}}function ki(){return!Wi||Te!==null&&Te.l===null}function ll(t){return Te===null&&Lr(),Te.c??(Te.c=new Map(Ks(Te)||void 0))}function Ks(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let Si=[];function ol(){var t=Si;Si=[],zr(t)}function Qt(t){if(Si.length===0&&!Zi){var e=Si;queueMicrotask(()=>{e===Si&&ol()})}Si.push(t)}function Zs(){for(;Si.length>0;)ol()}function sl(t){var e=_e;if(e===null)return be.f|=oi,t;if(e.f&Fa)Ki(t,e);else{if(!(e.f&Ba))throw t;e.b.error(t)}}function Ki(t,e){for(;e!==null;){if(e.f&Ba)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Ha=new Set;let ye=null,Va=null,Re=null,ft=[],Ua=null,qr=!1,Zi=!1;const yr=class yr{constructor(){ue(this,He);Ct(this,"committed",!1);Ct(this,"current",new Map);Ct(this,"previous",new Map);ue(this,na,new Set);ue(this,la,new Set);ue(this,Di,0);ue(this,qi,0);ue(this,Aa,null);ue(this,oa,[]);ue(this,sa,[]);Ct(this,"skipped_effects",new Set);Ct(this,"is_fork",!1)}is_deferred(){return this.is_fork||A(this,qi)>0}process(e){var a;ft=[],Va=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const r of e)ze(this,He,Fn).call(this,r,i);this.is_fork||ze(this,He,os).call(this),this.is_deferred()?(ze(this,He,Fi).call(this,i.effects),ze(this,He,Fi).call(this,i.render_effects),ze(this,He,Fi).call(this,i.block_effects)):(Va=this,ye=null,pl(i.render_effects),pl(i.effects),Va=null,(a=A(this,Aa))==null||a.resolve()),Re=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&oi||(this.current.set(e,e.v),Re==null||Re.set(e,e.v))}activate(){ye=this,this.apply()}deactivate(){ye===this&&(ye=null,Re=null)}flush(){if(this.activate(),ft.length>0){if(dl(),ye!==null&&ye!==this)return}else A(this,Di)===0&&this.process([]);this.deactivate()}discard(){for(const e of A(this,la))e(this);A(this,la).clear()}increment(e){se(this,Di,A(this,Di)+1),e&&se(this,qi,A(this,qi)+1)}decrement(e){se(this,Di,A(this,Di)-1),e&&se(this,qi,A(this,qi)-1),this.revive()}revive(){for(const e of A(this,oa))$e(e,nt),Ti(e);for(const e of A(this,sa))$e(e,Yt),Ti(e);se(this,oa,[]),se(this,sa,[]),this.flush()}oncommit(e){A(this,na).add(e)}ondiscard(e){A(this,la).add(e)}settled(){return(A(this,Aa)??se(this,Aa,Kn())).promise}static ensure(){if(ye===null){const e=ye=new yr;Ha.add(ye),Zi||yr.enqueue(()=>{ye===e&&e.flush()})}return ye}static enqueue(e){Qt(e)}apply(){}};na=new WeakMap,la=new WeakMap,Di=new WeakMap,qi=new WeakMap,Aa=new WeakMap,oa=new WeakMap,sa=new WeakMap,He=new WeakSet,Fn=function(e,i){var p;e.f^=Xe;for(var a=e.first;a!==null;){var r=a.f,n=(r&(Zt|_i))!==0,l=n&&(r&Xe)!==0,c=l||(r&ct)!==0||this.skipped_effects.has(a);if(a.f&Ba&&((p=a.b)!=null&&p.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!c&&a.fn!==null){n?a.f^=Xe:r&Ir?i.effects.push(a):wa(a)&&(a.f&zt&&i.block_effects.push(a),xa(a));var s=a.first;if(s!==null){a=s;continue}}var d=a.parent;for(a=a.next;a===null&&d!==null;)d===i.effect&&(ze(this,He,Fi).call(this,i.effects),ze(this,He,Fi).call(this,i.render_effects),ze(this,He,Fi).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},Fi=function(e){for(const i of e)(i.f&nt?A(this,oa):A(this,sa)).push(i),ze(this,He,Hn).call(this,i.deps),$e(i,Xe)},Hn=function(e){if(e!==null)for(const i of e)!(i.f&Ze)||!(i.f&va)||(i.f^=va,ze(this,He,Hn).call(this,i.deps))},os=function(){if(A(this,qi)===0){for(const e of A(this,na))e();A(this,na).clear()}A(this,Di)===0&&ze(this,He,ss).call(this)},ss=function(){var n;if(Ha.size>1){this.previous.clear();var e=Re,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Ha){if(l===this){i=!1;continue}const c=[];for(const[d,p]of this.current){if(l.current.has(d))if(i&&p!==l.current.get(d))l.current.set(d,p);else continue;c.push(d)}if(c.length===0)continue;const s=[...l.current.keys()].filter(d=>!this.current.has(d));if(s.length>0){var r=ft;ft=[];const d=new Set,p=new Map;for(const u of c)ul(u,s,d,p);if(ft.length>0){ye=l,l.apply();for(const u of ft)ze(n=l,He,Fn).call(n,u,a);l.deactivate()}ft=r}}ye=null,Re=e}this.committed=!0,Ha.delete(this)};let At=yr;function cl(t){var e=Zi;Zi=!0;try{for(var i;;){if(Zs(),ft.length===0&&(ye==null||ye.flush(),ft.length===0))return Ua=null,i;dl()}}finally{Zi=e}}function dl(){var t=pi;qr=!0;var e=null;try{var i=0;for(Ga(!0);ft.length>0;){var a=At.ensure();if(i++>1e3){var r,n;Ys()}a.process(ft),si.clear()}}finally{qr=!1,Ga(t),Ua=null}}function Ys(){try{_s()}catch(t){Ki(t,Ua)}}let wt=null;function pl(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(Jt|ct))&&wa(a)&&(wt=new Set,xa(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?Ll(a):a.fn=null),(wt==null?void 0:wt.size)>0)){si.clear();for(const r of wt){if(r.f&(Jt|ct))continue;const n=[r];let l=r.parent;for(;l!==null;)wt.has(l)&&(wt.delete(l),n.push(l)),l=l.parent;for(let c=n.length-1;c>=0;c--){const s=n[c];s.f&(Jt|ct)||xa(s)}}wt.clear()}}wt=null}}function ul(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const r of t.reactions){const n=r.f;n&Ze?ul(r,e,i,a):n&(Ar|zt)&&!(n&nt)&&vl(r,e,a)&&($e(r,nt),Ti(r))}}function vl(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const r of t.deps){if(e.includes(r))return!0;if(r.f&Ze&&vl(r,e,i))return i.set(r,!0),!0}return i.set(t,!1),!1}function Ti(t){for(var e=Ua=t;e.parent!==null;){e=e.parent;var i=e.f;if(qr&&e===_e&&i&zt&&!(i&Qn))return;if(i&(_i|Zt)){if(!(i&Xe))return;e.f^=Xe}}ft.push(e)}function fl(t){let e=0,i=Mt(0),a;return()=>{ma()&&(o(i),Wa(()=>(e===0&&(a=Rt(()=>t(()=>ci(i)))),e+=1,()=>{Qt(()=>{e-=1,e===0&&(a==null||a(),a=void 0,ci(i))})})))}}var Js=It|Vi|Ba;function Qs(t,e,i){new Xs(t,e,i)}class Xs{constructor(e,i,a){ue(this,Ke);Ct(this,"parent");ue(this,gt,!1);ue(this,mt);ue(this,Rn,null);ue(this,Ft);ue(this,Oi);ue(this,Ht);ue(this,yt,null);ue(this,st,null);ue(this,Vt,null);ue(this,ri,null);ue(this,mi,null);ue(this,Ri,0);ue(this,yi,0);ue(this,Ni,!1);ue(this,bi,null);ue(this,br,fl(()=>(se(this,bi,Mt(A(this,Ri))),()=>{se(this,bi,null)})));se(this,mt,e),se(this,Ft,i),se(this,Oi,a),this.parent=_e.b,se(this,gt,!!A(this,Ft).pending),se(this,Ht,di(()=>{_e.b=this;{var r=ze(this,Ke,Vn).call(this);try{se(this,yt,lt(()=>a(r)))}catch(n){this.error(n)}A(this,yi)>0?ze(this,Ke,Er).call(this):se(this,gt,!1)}return()=>{var n;(n=A(this,mi))==null||n.remove()}},Js))}is_pending(){return A(this,gt)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!A(this,Ft).pending}update_pending_count(e){ze(this,Ke,Un).call(this,e),se(this,Ri,A(this,Ri)+e),A(this,bi)&&Xt(A(this,bi),A(this,Ri))}get_effect_pending(){return A(this,br).call(this),o(A(this,bi))}error(e){var i=A(this,Ft).onerror;let a=A(this,Ft).failed;if(A(this,Ni)||!i&&!a)throw e;A(this,yt)&&(Ye(A(this,yt)),se(this,yt,null)),A(this,st)&&(Ye(A(this,st)),se(this,st,null)),A(this,Vt)&&(Ye(A(this,Vt)),se(this,Vt,null));var r=!1,n=!1;const l=()=>{if(r){Us();return}r=!0,n&&Ps(),At.ensure(),se(this,Ri,0),A(this,Vt)!==null&&Ji(A(this,Vt),()=>{se(this,Vt,null)}),se(this,gt,this.has_pending_snippet()),se(this,yt,ze(this,Ke,Tr).call(this,()=>(se(this,Ni,!1),lt(()=>A(this,Oi).call(this,A(this,mt)))))),A(this,yi)>0?ze(this,Ke,Er).call(this):se(this,gt,!1)};var c=be;try{ot(null),n=!0,i==null||i(e,l),n=!1}catch(s){Ki(s,A(this,Ht)&&A(this,Ht).parent)}finally{ot(c)}a&&Qt(()=>{se(this,Vt,ze(this,Ke,Tr).call(this,()=>{At.ensure(),se(this,Ni,!0);try{return lt(()=>{a(A(this,mt),()=>e,()=>l)})}catch(s){return Ki(s,A(this,Ht).parent),null}finally{se(this,Ni,!1)}}))})}}gt=new WeakMap,mt=new WeakMap,Rn=new WeakMap,Ft=new WeakMap,Oi=new WeakMap,Ht=new WeakMap,yt=new WeakMap,st=new WeakMap,Vt=new WeakMap,ri=new WeakMap,mi=new WeakMap,Ri=new WeakMap,yi=new WeakMap,Ni=new WeakMap,bi=new WeakMap,br=new WeakMap,Ke=new WeakSet,rg=function(){try{se(this,yt,lt(()=>A(this,Oi).call(this,A(this,mt))))}catch(e){this.error(e)}se(this,gt,!1)},ng=function(){const e=A(this,Ft).pending;e&&(se(this,st,lt(()=>e(A(this,mt)))),At.enqueue(()=>{var i=ze(this,Ke,Vn).call(this);se(this,yt,ze(this,Ke,Tr).call(this,()=>(At.ensure(),lt(()=>A(this,Oi).call(this,i))))),A(this,yi)>0?ze(this,Ke,Er).call(this):(Ji(A(this,st),()=>{se(this,st,null)}),se(this,gt,!1))}))},Vn=function(){var e=A(this,mt);return A(this,gt)&&(se(this,mi,Dt()),A(this,mt).before(A(this,mi)),e=A(this,mi)),e},Tr=function(e){var i=_e,a=be,r=Te;Ot(A(this,Ht)),ot(A(this,Ht)),Gi(A(this,Ht).ctx);try{return e()}catch(n){return sl(n),null}finally{Ot(i),ot(a),Gi(r)}},Er=function(){const e=A(this,Ft).pending;A(this,yt)!==null&&(se(this,ri,document.createDocumentFragment()),A(this,ri).append(A(this,mi)),ql(A(this,yt),A(this,ri))),A(this,st)===null&&se(this,st,lt(()=>e(A(this,mt))))},Un=function(e){var i;if(!this.has_pending_snippet()){this.parent&&ze(i=this.parent,Ke,Un).call(i,e);return}se(this,yi,A(this,yi)+e),A(this,yi)===0&&(se(this,gt,!1),A(this,st)&&Ji(A(this,st),()=>{se(this,st,null)}),A(this,ri)&&(A(this,mt).before(A(this,ri)),se(this,ri,null)))};let Ei=null;function hl(t){Ei=t}function je(t,e){return e}function $s(t,e,i){for(var a=[],r=e.length,n=0;n<r;n++)Hr(e[n].e,a,!0);Ml(a,()=>{var l=a.length===0&&i!==null;if(l){var c=i,s=c.parentNode;oc(s),s.append(c),t.items.clear(),Lt(t,e[0].prev,e[r-1].next)}for(var d=0;d<r;d++){var p=e[d];l||(t.items.delete(p.k),Lt(t,p.prev,p.next)),Ye(p.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Ie(t,e,i,a,r,n=null){var l=t,c=new Map,s=null,d=(e&il)!==0,p=(e&el)!==0,u=(e&tl)!==0;if(d){var f=t;l=f.appendChild(Dt())}var h=null,m=Rr(()=>{var _=i();return qe(_)?_:_==null?[]:Pr(_)}),b,y=!0;function g(){ec(x,b,l,e,a),h!==null&&(b.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):Vr(h.effect),S.first=h.effect):Ji(h.effect,()=>{h=null}))}var S=di(()=>{b=o(m);for(var _=b.length,L=new Set,I=ye,j=null,B=El(),M=0;M<_;M+=1){var q=b[M],T=a(q,M),E=y?null:c.get(T);E?(p&&Xt(E.v,q),u?Xt(E.i,M):E.i=M,B&&I.skipped_effects.delete(E.e)):(E=tc(y?l:null,j,q,T,M,r,e,i),y&&(E.o=!0,j===null?s=E:j.next=E,j=E),c.set(T,E)),L.add(T)}if(_===0&&n&&!h)if(y)h={fragment:null,effect:lt(()=>n(l))};else{var P=document.createDocumentFragment(),F=Dt();P.append(F),h={fragment:P,effect:lt(()=>n(F))}}if(!y)if(B){for(const[W,$]of c)L.has(W)||I.skipped_effects.add($.e);I.oncommit(g),I.ondiscard(()=>{})}else g();o(m)}),x={effect:S,flags:e,items:c,first:s};y=!1}function ec(t,e,i,a,r){var q,T,E,P;var n=(a&Cs)!==0,l=e.length,c=t.items,s=t.first,d,p=null,u,f=[],h=[],m,b,y,g;if(n)for(g=0;g<l;g+=1)m=e[g],b=r(m,g),y=c.get(b),y.o&&((q=y.a)==null||q.measure(),(u??(u=new Set)).add(y));for(g=0;g<l;g+=1){if(m=e[g],b=r(m,g),y=c.get(b),t.first??(t.first=y),!y.o){y.o=!0;var S=p?p.next:s;Lt(t,p,y),Lt(t,y,S),Or(y,S,i),p=y,f=[],h=[],s=p.next;continue}if(y.e.f&ct&&(Vr(y.e),n&&((T=y.a)==null||T.unfix(),(u??(u=new Set)).delete(y))),y!==s){if(d!==void 0&&d.has(y)){if(f.length<h.length){var x=h[0],_;p=x.prev;var L=f[0],I=f[f.length-1];for(_=0;_<f.length;_+=1)Or(f[_],x,i);for(_=0;_<h.length;_+=1)d.delete(h[_]);Lt(t,L.prev,I.next),Lt(t,p,L),Lt(t,I,x),s=x,p=I,g-=1,f=[],h=[]}else d.delete(y),Or(y,s,i),Lt(t,y.prev,y.next),Lt(t,y,p===null?t.first:p.next),Lt(t,p,y),p=y;continue}for(f=[],h=[];s!==null&&s.k!==b;)s.e.f&ct||(d??(d=new Set)).add(s),h.push(s),s=s.next;if(s===null)continue;y=s}f.push(y),p=y,s=y.next}if(s!==null||d!==void 0){for(var j=d===void 0?[]:Pr(d);s!==null;)s.e.f&ct||j.push(s),s=s.next;var B=j.length;if(B>0){var M=a&il&&l===0?i:null;if(n){for(g=0;g<B;g+=1)(E=j[g].a)==null||E.measure();for(g=0;g<B;g+=1)(P=j[g].a)==null||P.fix()}$s(t,j,M)}}n&&Qt(()=>{var F;if(u!==void 0)for(y of u)(F=y.a)==null||F.apply()})}function tc(t,e,i,a,r,n,l,c){var s=Ei,d=(l&el)!==0,p=(l&zs)===0,u=d?p?Fr(i,!1,!1):Mt(i):i,f=l&tl?Mt(r):r,h={i:f,v:u,k:a,a:null,e:null,o:!1,prev:e,next:null};Ei=h;try{if(t===null){var m=document.createDocumentFragment();m.append(t=Dt())}return h.e=lt(()=>n(t,u,f,c)),e!==null&&(e.next=h),h}finally{Ei=s}}function Or(t,e,i){for(var a=t.next?t.next.e.nodes_start:i,r=e?e.e.nodes_start:i,n=t.e.nodes_start;n!==null&&n!==a;){var l=ga(n);r.before(n),n=l}}function Lt(t,e,i){e===null?(t.first=i,t.effect.first=i&&i.e):(e.e===t.effect.last&&i!==null&&(t.effect.last=i.e),e.e.next&&(e.e.next.prev=null),e.next=i,e.e.next=i&&i.e),i===null?t.effect.last=e&&e.e:(i.e===t.effect.last&&e===null&&(t.effect.last=i.e.prev),i.e.prev&&(i.e.prev.next=null),i.prev=e,i.e.prev=e&&e.e)}function gl(t,e,i,a){const r=ki()?ha:Rr;if(i.length===0&&t.length===0){a(e.map(r));return}var n=ye,l=_e,c=ml();function s(){Promise.all(i.map(d=>ic(d))).then(d=>{c();try{a([...e.map(r),...d])}catch(p){l.f&Jt||Ki(p,l)}n==null||n.deactivate(),fa()}).catch(d=>{Ki(d,l)})}t.length>0?Promise.all(t).then(()=>{c();try{return s()}finally{n==null||n.deactivate(),fa()}}):s()}function ml(){var t=_e,e=be,i=Te,a=ye;return function(n=!0){Ot(t),ot(e),Gi(i),n&&(a==null||a.activate())}}function fa(){Ot(null),ot(null),Gi(null)}function ha(t){var e=Ze|nt,i=be!==null&&be.f&Ze?be:null;return _e!==null&&(_e.f|=Vi),{ctx:Te,deps:null,effects:null,equals:al,f:e,fn:t,reactions:null,rv:0,v:We,wv:0,parent:i??_e,ac:null}}function ic(t,e){let i=_e;i===null&&ys();var a=i.b,r=void 0,n=Mt(We),l=!be,c=new Map;return hc(()=>{var f;var s=Kn();r=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===ye&&d.committed&&d.deactivate(),fa()})}catch(h){s.reject(h),fa()}var d=ye;if(l){var p=!a.is_pending();a.update_pending_count(1),d.increment(p),(f=c.get(d))==null||f.reject(Ui),c.delete(d),c.set(d,s)}const u=(h,m=void 0)=>{if(d.activate(),m)m!==Ui&&(n.f|=oi,Xt(n,m));else{n.f&oi&&(n.f^=oi),Xt(n,h);for(const[b,y]of c){if(c.delete(b),b===d)break;y.reject(Ui)}}l&&(a.update_pending_count(-1),d.decrement(p))};s.promise.then(u,h=>u(null,h||"unknown"))}),ya(()=>{for(const s of c.values())s.reject(Ui)}),new Promise(s=>{function d(p){function u(){p===r?s(n):d(r)}p.then(u,u)}d(r)})}function U(t){const e=ha(t);return Rl(e),e}function Rr(t){const e=ha(t);return e.equals=nl,e}function yl(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Ye(e[i])}}function ac(t){for(var e=t.parent;e!==null;){if(!(e.f&Ze))return e.f&Jt?null:e;e=e.parent}return null}function Nr(t){var e,i=_e;Ot(ac(t));try{t.f&=~va,yl(t),e=Vl(t)}finally{Ot(i)}return e}function bl(t){var e=Nr(t);if(t.equals(e)||(ye!=null&&ye.is_fork||(t.v=e),t.wv=Fl()),!zi)if(Re!==null)(ma()||ye!=null&&ye.is_fork)&&Re.set(t,e);else{var i=t.f&bt?Xe:Yt;$e(t,i)}}let Br=new Set;const si=new Map;let wl=!1;function Mt(t,e){var i={f:0,v:t,reactions:null,equals:al,rv:0,wv:0};return i}function G(t,e){const i=Mt(t);return Rl(i),i}function Fr(t,e=!1,i=!0){var r;const a=Mt(t);return e||(a.equals=nl),Wi&&i&&Te!==null&&Te.l!==null&&((r=Te.l).s??(r.s=[])).push(a),a}function D(t,e,i=!1){be!==null&&(!qt||be.f&Jn)&&ki()&&be.f&(Ze|zt|Ar|Jn)&&!(tt!=null&&tt.includes(t))&&Es();let a=i?Ae(e):e;return Xt(t,a)}function Xt(t,e){if(!t.equals(e)){var i=t.v;zi?si.set(t,e):si.set(t,i),t.v=e;var a=At.ensure();a.capture(t,i),t.f&Ze&&(t.f&nt&&Nr(t),$e(t,t.f&bt?Xe:Yt)),t.wv=Fl(),xl(t,nt),ki()&&_e!==null&&_e.f&Xe&&!(_e.f&(Zt|_i))&&(ht===null?yc([t]):ht.push(t)),!a.is_fork&&Br.size>0&&!wl&&rc()}return e}function rc(){wl=!1;var t=pi;Ga(!0);const e=Array.from(Br);try{for(const i of e)i.f&Xe&&$e(i,Yt),wa(i)&&xa(i)}finally{Ga(t)}Br.clear()}function ci(t){D(t,t.v+1)}function xl(t,e){var i=t.reactions;if(i!==null)for(var a=ki(),r=i.length,n=0;n<r;n++){var l=i[n],c=l.f;if(!(!a&&l===_e)){var s=(c&nt)===0;if(s&&$e(l,e),c&Ze){var d=l;Re==null||Re.delete(d),c&va||(c&bt&&(l.f|=va),xl(d,Yt))}else s&&(c&zt&&wt!==null&&wt.add(l),Ti(l))}}}function Ae(t){if(typeof t!="object"||t===null||jt in t)return t;const e=Cr(t);if(e!==vs&&e!==fs)return t;var i=new Map,a=qe(t),r=G(0),n=$t,l=c=>{if($t===n)return c();var s=be,d=$t;ot(null),Bl(n);var p=c();return ot(s),Bl(d),p};return a&&i.set("length",G(t.length)),new Proxy(t,{defineProperty(c,s,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&Ss();var p=i.get(s);return p===void 0?p=l(()=>{var u=G(d.value);return i.set(s,u),u}):D(p,d.value,!0),!0},deleteProperty(c,s){var d=i.get(s);if(d===void 0){if(s in c){const p=l(()=>G(We));i.set(s,p),ci(r)}}else D(d,We),ci(r);return!0},get(c,s,d){var h;if(s===jt)return t;var p=i.get(s),u=s in c;if(p===void 0&&(!u||(h=li(c,s))!=null&&h.writable)&&(p=l(()=>{var m=Ae(u?c[s]:We),b=G(m);return b}),i.set(s,p)),p!==void 0){var f=o(p);return f===We?void 0:f}return Reflect.get(c,s,d)},getOwnPropertyDescriptor(c,s){var d=Reflect.getOwnPropertyDescriptor(c,s);if(d&&"value"in d){var p=i.get(s);p&&(d.value=o(p))}else if(d===void 0){var u=i.get(s),f=u==null?void 0:u.v;if(u!==void 0&&f!==We)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return d},has(c,s){var f;if(s===jt)return!0;var d=i.get(s),p=d!==void 0&&d.v!==We||Reflect.has(c,s);if(d!==void 0||_e!==null&&(!p||(f=li(c,s))!=null&&f.writable)){d===void 0&&(d=l(()=>{var h=p?Ae(c[s]):We,m=G(h);return m}),i.set(s,d));var u=o(d);if(u===We)return!1}return p},set(c,s,d,p){var x;var u=i.get(s),f=s in c;if(a&&s==="length")for(var h=d;h<u.v;h+=1){var m=i.get(h+"");m!==void 0?D(m,We):h in c&&(m=l(()=>G(We)),i.set(h+"",m))}if(u===void 0)(!f||(x=li(c,s))!=null&&x.writable)&&(u=l(()=>G(void 0)),D(u,Ae(d)),i.set(s,u));else{f=u.v!==We;var b=l(()=>Ae(d));D(u,b)}var y=Reflect.getOwnPropertyDescriptor(c,s);if(y!=null&&y.set&&y.set.call(p,d),!f){if(a&&typeof s=="string"){var g=i.get("length"),S=Number(s);Number.isInteger(S)&&S>=g.v&&D(g,S+1)}ci(r)}return!0},ownKeys(c){o(r);var s=Reflect.ownKeys(c).filter(u=>{var f=i.get(u);return f===void 0||f.v!==We});for(var[d,p]of i)p.v!==We&&!(d in c)&&s.push(d);return s},setPrototypeOf(){Ts()}})}function _l(t){try{if(t!==null&&typeof t=="object"&&jt in t)return t[jt]}catch{}return t}function nc(t,e){return Object.is(_l(t),_l(e))}var Me,kl,Sl,Tl;function lc(){if(Me===void 0){Me=window,kl=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;Sl=li(e,"firstChild").get,Tl=li(e,"nextSibling").get,Gn(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),Gn(i)&&(i.__t=void 0)}}function Dt(t=""){return document.createTextNode(t)}function Yi(t){return Sl.call(t)}function ga(t){return Tl.call(t)}function k(t,e){return Yi(t)}function J(t,e=!1){{var i=Yi(t);return i instanceof Comment&&i.data===""?ga(i):i}}function z(t,e=1,i=!1){let a=t;for(;e--;)a=ga(a);return a}function oc(t){t.textContent=""}function El(){return!1}function sc(t,e){if(e){const i=document.body;t.autofocus=!0,Qt(()=>{document.activeElement===i&&t.focus()})}}let Pl=!1;function cc(){Pl||(Pl=!0,document.addEventListener("reset",t=>{Promise.resolve().then(()=>{var e;if(!t.defaultPrevented)for(const i of t.target.elements)(e=i.__on_r)==null||e.call(i)})},{capture:!0}))}function dc(t,e,i,a=!0){a&&i();for(var r of e)t.addEventListener(r,i);ya(()=>{for(var n of e)t.removeEventListener(n,i)})}function Pi(t){var e=be,i=_e;ot(null),Ot(null);try{return t()}finally{ot(e),Ot(i)}}function pc(t,e,i,a=i){t.addEventListener(e,()=>Pi(i));const r=t.__on_r;r?t.__on_r=()=>{r(),a(!0)}:t.__on_r=()=>a(!0),cc()}function Cl(t){_e===null&&(be===null&&xs(),ws()),zi&&bs()}function uc(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function xt(t,e,i){var a=_e;a!==null&&a.f&ct&&(t|=ct);var r={ctx:Te,deps:null,nodes_start:null,nodes_end:null,f:t|nt|bt,first:null,fn:e,last:null,next:null,parent:a,b:a&&a.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(i)try{xa(r),r.f|=Fa}catch(c){throw Ye(r),c}else e!==null&&Ti(r);var n=r;if(i&&n.deps===null&&n.teardown===null&&n.nodes_start===null&&n.first===n.last&&!(n.f&Vi)&&(n=n.first,t&zt&&t&It&&n!==null&&(n.f|=It)),n!==null&&(n.parent=a,a!==null&&uc(n,a),be!==null&&be.f&Ze&&!(t&_i))){var l=be;(l.effects??(l.effects=[])).push(n)}return r}function ma(){return be!==null&&!qt}function ya(t){const e=xt(Na,null,!1);return $e(e,Xe),e.teardown=t,e}function Ge(t){Cl();var e=_e.f,i=!be&&(e&Zt)!==0&&(e&Fa)===0;if(i){var a=Te;(a.e??(a.e=[])).push(t)}else return zl(t)}function zl(t){return xt(Ir|Xn,t,!1)}function vc(t){return Cl(),xt(Na|Xn,t,!0)}function fc(t){At.ensure();const e=xt(_i|Vi,t,!0);return(i={})=>new Promise(a=>{i.outro?Ji(e,()=>{Ye(e),a(void 0)}):(Ye(e),a(void 0))})}function Ci(t){return xt(Ir,t,!1)}function hc(t){return xt(Ar|Vi,t,!0)}function Wa(t,e=0){return xt(Na|e,t,!0)}function V(t,e=[],i=[],a=[]){gl(a,e,i,r=>{xt(Na,()=>t(...r.map(o)),!0)})}function di(t,e=0){var i=xt(zt|e,t,!0);return i}function Il(t,e=0){var i=xt(Yn|e,t,!0);return i}function lt(t){return xt(Zt|Vi,t,!0)}function jl(t){var e=t.teardown;if(e!==null){const i=zi,a=be;Ol(!0),ot(null);try{e.call(null)}finally{Ol(i),ot(a)}}}function Al(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const r=i.ac;r!==null&&Pi(()=>{r.abort(Ui)});var a=i.next;i.f&_i?i.parent=null:Ye(i,e),i=a}}function gc(t){for(var e=t.first;e!==null;){var i=e.next;e.f&Zt||Ye(e),e=i}}function Ye(t,e=!0){var i=!1;(e||t.f&Qn)&&t.nodes_start!==null&&t.nodes_end!==null&&(mc(t.nodes_start,t.nodes_end),i=!0),Al(t,e&&!i),Ka(t,0),$e(t,Jt);var a=t.transitions;if(a!==null)for(const n of a)n.stop();jl(t);var r=t.parent;r!==null&&r.first!==null&&Ll(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function mc(t,e){for(;t!==null;){var i=t===e?null:ga(t);t.remove(),t=i}}function Ll(t){var e=t.parent,i=t.prev,a=t.next;i!==null&&(i.next=a),a!==null&&(a.prev=i),e!==null&&(e.first===t&&(e.first=a),e.last===t&&(e.last=i))}function Ji(t,e,i=!0){var a=[];Hr(t,a,!0),Ml(a,()=>{i&&Ye(t),e&&e()})}function Ml(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var r of t)r.out(a)}else e()}function Hr(t,e,i){if(!(t.f&ct)){if(t.f^=ct,t.transitions!==null)for(const l of t.transitions)(l.is_global||i)&&e.push(l);for(var a=t.first;a!==null;){var r=a.next,n=(a.f&It)!==0||(a.f&Zt)!==0&&(t.f&zt)!==0;Hr(a,e,n?i:!1),a=r}}}function Vr(t){Dl(t,!0)}function Dl(t,e){if(t.f&ct){t.f^=ct,t.f&Xe||($e(t,nt),Ti(t));for(var i=t.first;i!==null;){var a=i.next,r=(i.f&It)!==0||(i.f&Zt)!==0;Dl(i,r?e:!1),i=a}if(t.transitions!==null)for(const n of t.transitions)(n.is_global||e)&&n.in()}}function ql(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var r=i===a?null:ga(i);e.append(i),i=r}}let pi=!1;function Ga(t){pi=t}let zi=!1;function Ol(t){zi=t}let be=null,qt=!1;function ot(t){be=t}let _e=null;function Ot(t){_e=t}let tt=null;function Rl(t){be!==null&&(tt===null?tt=[t]:tt.push(t))}let it=null,dt=0,ht=null;function yc(t){ht=t}let Nl=1,ba=0,$t=ba;function Bl(t){$t=t}function Fl(){return++Nl}function wa(t){var e=t.f;if(e&nt)return!0;if(e&Ze&&(t.f&=-32769),e&Yt){var i=t.deps;if(i!==null)for(var a=i.length,r=0;r<a;r++){var n=i[r];if(wa(n)&&bl(n),n.wv>t.wv)return!0}e&bt&&Re===null&&$e(t,Xe)}return!1}function Hl(t,e,i=!0){var a=t.reactions;if(a!==null&&!(tt!=null&&tt.includes(t)))for(var r=0;r<a.length;r++){var n=a[r];n.f&Ze?Hl(n,e,!1):e===n&&(i?$e(n,nt):n.f&Xe&&$e(n,Yt),Ti(n))}}function Vl(t){var m;var e=it,i=dt,a=ht,r=be,n=tt,l=Te,c=qt,s=$t,d=t.f;it=null,dt=0,ht=null,be=d&(Zt|_i)?null:t,tt=null,Gi(t.ctx),qt=!1,$t=++ba,t.ac!==null&&(Pi(()=>{t.ac.abort(Ui)}),t.ac=null);try{t.f|=jr;var p=t.fn,u=p(),f=t.deps;if(it!==null){var h;if(Ka(t,dt),f!==null&&dt>0)for(f.length=dt+it.length,h=0;h<it.length;h++)f[dt+h]=it[h];else t.deps=f=it;if(pi&&ma()&&t.f&bt)for(h=dt;h<f.length;h++)((m=f[h]).reactions??(m.reactions=[])).push(t)}else f!==null&&dt<f.length&&(Ka(t,dt),f.length=dt);if(ki()&&ht!==null&&!qt&&f!==null&&!(t.f&(Ze|Yt|nt)))for(h=0;h<ht.length;h++)Hl(ht[h],t);return r!==null&&r!==t&&(ba++,ht!==null&&(a===null?a=ht:a.push(...ht))),t.f&oi&&(t.f^=oi),u}catch(b){return sl(b)}finally{t.f^=jr,it=e,dt=i,ht=a,be=r,tt=n,Gi(l),qt=c,$t=s}}function bc(t,e){let i=e.reactions;if(i!==null){var a=Ra.call(i,t);if(a!==-1){var r=i.length-1;r===0?i=e.reactions=null:(i[a]=i[r],i.pop())}}i===null&&e.f&Ze&&(it===null||!it.includes(e))&&($e(e,Yt),e.f&bt&&(e.f^=bt,e.f&=-32769),yl(e),Ka(e,0))}function Ka(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)bc(t,i[a])}function xa(t){var e=t.f;if(!(e&Jt)){$e(t,Xe);var i=_e,a=pi;_e=t,pi=!0;try{e&(zt|Yn)?gc(t):Al(t),jl(t);var r=Vl(t);t.teardown=typeof r=="function"?r:null,t.wv=Nl;var n;Pe&&Ws&&t.f&nt&&t.deps}finally{pi=a,_e=i}}}async function _a(){await Promise.resolve(),cl()}function o(t){var e=t.f,i=(e&Ze)!==0;if(be!==null&&!qt){var a=_e!==null&&(_e.f&Jt)!==0;if(!a&&!(tt!=null&&tt.includes(t))){var r=be.deps;if(be.f&jr)t.rv<ba&&(t.rv=ba,it===null&&r!==null&&r[dt]===t?dt++:it===null?it=[t]:it.includes(t)||it.push(t));else{(be.deps??(be.deps=[])).push(t);var n=t.reactions;n===null?t.reactions=[be]:n.includes(be)||n.push(be)}}}if(zi){if(si.has(t))return si.get(t);if(i){var l=t,c=l.v;return(!(l.f&Xe)&&l.reactions!==null||Wl(l))&&(c=Nr(l)),si.set(l,c),c}}else i&&(!(Re!=null&&Re.has(t))||ye!=null&&ye.is_fork&&!ma())&&(l=t,wa(l)&&bl(l),pi&&ma()&&!(l.f&bt)&&Ul(l));if(Re!=null&&Re.has(t))return Re.get(t);if(t.f&oi)throw t.v;return t.v}function Ul(t){if(t.deps!==null){t.f^=bt;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Ze&&!(e.f&bt)&&Ul(e)}}function Wl(t){if(t.v===We)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(si.has(e)||e.f&Ze&&Wl(e))return!0;return!1}function Rt(t){var e=qt;try{return qt=!0,t()}finally{qt=e}}const wc=-7169;function $e(t,e){t.f=t.f&wc|e}function Gl(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(jt in t)Ur(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&jt in i&&Ur(i)}}}function Ur(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let a in t)try{Ur(t[a],e)}catch{}const i=Cr(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=Wn(i);for(let r in a){const n=a[r].get;if(n)try{n.call(t)}catch{}}}}}function xc(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const _c=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function kc(t){return _c.includes(t)}const Sc={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 Tc(t){return t=t.toLowerCase(),Sc[t]??t}const Ec=["touchstart","touchmove"];function Pc(t){return Ec.includes(t)}const Kl=new Set,Wr=new Set;function Gr(t,e,i,a={}){function r(n){if(a.capture||ka.call(e,n),!n.cancelBubble)return Pi(()=>i==null?void 0:i.call(this,n))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Qt(()=>{e.addEventListener(t,r,a)}):e.addEventListener(t,r,a),r}function Cc(t,e,i,a={}){var r=Gr(e,t,i,a);return()=>{t.removeEventListener(e,r,a)}}function ke(t,e,i,a,r){var n={capture:a,passive:r},l=Gr(t,e,i,n);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&ya(()=>{e.removeEventListener(t,l,n)})}function ve(t){for(var e=0;e<t.length;e++)Kl.add(t[e]);for(var i of Wr)i(t)}let Zl=null;function ka(t){var y;var e=this,i=e.ownerDocument,a=t.type,r=((y=t.composedPath)==null?void 0:y.call(t))||[],n=r[0]||t.target;Zl=t;var l=0,c=Zl===t&&t.__root;if(c){var s=r.indexOf(c);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var d=r.indexOf(e);if(d===-1)return;s<=d&&(l=s)}if(n=r[l]||t.target,n!==e){us(t,"currentTarget",{configurable:!0,get(){return n||i}});var p=be,u=_e;ot(null),Ot(null);try{for(var f,h=[];n!==null;){var m=n.assignedSlot||n.parentNode||n.host||null;try{var b=n["__"+a];b!=null&&(!n.disabled||t.target===n)&&b.call(n,t)}catch(g){f?h.push(g):f=g}if(t.cancelBubble||m===e||m===null)break;n=m}if(f){for(let g of h)queueMicrotask(()=>{throw g});throw f}}finally{t.__root=e,delete t.currentTarget,ot(p),Ot(u)}}}function Yl(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Qi(t,e){var i=_e;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function C(t,e){var i=(e&Rs)!==0,a=(e&Ns)!==0,r,n=!t.startsWith("<!>");return()=>{r===void 0&&(r=Yl(n?t:"<!>"+t),i||(r=Yi(r)));var l=a||kl?document.importNode(r,!0):r.cloneNode(!0);if(i){var c=Yi(l),s=l.lastChild;Qi(c,s)}else Qi(l,l);return l}}function zc(t,e,i="svg"){var a=!t.startsWith("<!>"),r=`<${i}>${a?t:"<!>"+t}</${i}>`,n;return()=>{if(!n){var l=Yl(r),c=Yi(l);n=Yi(c)}var s=n.cloneNode(!0);return Qi(s,s),s}}function Je(t,e){return zc(t,e,"svg")}function ui(t=""){{var e=Dt(t+"");return Qi(e,e),e}}function me(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Dt();return t.append(e,i),Qi(e,i),t}function w(t,e){t!==null&&t.before(e)}let Za=!0;function Ya(t){Za=t}function Z(t,e){var i=e==null?"":typeof e=="object"?e+"":e;i!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=i,t.nodeValue=i+"")}function Nt(t,e){return Ic(t,e)}const Xi=new Map;function Ic(t,{target:e,anchor:i,props:a={},events:r,context:n,intro:l=!0}){lc();var c=new Set,s=u=>{for(var f=0;f<u.length;f++){var h=u[f];if(!c.has(h)){c.add(h);var m=Pc(h);e.addEventListener(h,ka,{passive:m});var b=Xi.get(h);b===void 0?(document.addEventListener(h,ka,{passive:m}),Xi.set(h,1)):Xi.set(h,b+1)}}};s(Pr(Kl)),Wr.add(s);var d=void 0,p=fc(()=>{var u=i??e.appendChild(Dt());return Qs(u,{pending:()=>{}},f=>{if(n){ne({});var h=Te;h.c=n}r&&(a.$$events=r),Za=l,d=t(f,a)||{},Za=!0,n&&le()}),()=>{var m;for(var f of c){e.removeEventListener(f,ka);var h=Xi.get(f);--h===0?(document.removeEventListener(f,ka),Xi.delete(f)):Xi.set(f,h)}Wr.delete(s),u!==i&&((m=u.parentNode)==null||m.removeChild(u))}});return Kr.set(d,p),d}let Kr=new WeakMap;function $i(t,e){const i=Kr.get(t);return i?(Kr.delete(t),i(e)):Promise.resolve()}class ea{constructor(e,i=!0){Ct(this,"anchor");ue(this,Tt,new Map);ue(this,Ut,new Map);ue(this,ut,new Map);ue(this,Bi,new Set);ue(this,La,!0);ue(this,Ma,()=>{var e=ye;if(A(this,Tt).has(e)){var i=A(this,Tt).get(e),a=A(this,Ut).get(i);if(a)Vr(a),A(this,Bi).delete(i);else{var r=A(this,ut).get(i);r&&(A(this,Ut).set(i,r.effect),A(this,ut).delete(i),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),a=r.effect)}for(const[n,l]of A(this,Tt)){if(A(this,Tt).delete(n),n===e)break;const c=A(this,ut).get(l);c&&(Ye(c.effect),A(this,ut).delete(l))}for(const[n,l]of A(this,Ut)){if(n===i||A(this,Bi).has(n))continue;const c=()=>{if(Array.from(A(this,Tt).values()).includes(n)){var d=document.createDocumentFragment();ql(l,d),d.append(Dt()),A(this,ut).set(n,{effect:l,fragment:d})}else Ye(l);A(this,Bi).delete(n),A(this,Ut).delete(n)};A(this,La)||!a?(A(this,Bi).add(n),Ji(l,c,!1)):c()}}});ue(this,wr,e=>{A(this,Tt).delete(e);const i=Array.from(A(this,Tt).values());for(const[a,r]of A(this,ut))i.includes(a)||(Ye(r.effect),A(this,ut).delete(a))});this.anchor=e,se(this,La,i)}ensure(e,i){var a=ye,r=El();if(i&&!A(this,Ut).has(e)&&!A(this,ut).has(e))if(r){var n=document.createDocumentFragment(),l=Dt();n.append(l),A(this,ut).set(e,{effect:lt(()=>i(l)),fragment:n})}else A(this,Ut).set(e,lt(()=>i(this.anchor)));if(A(this,Tt).set(a,e),r){for(const[c,s]of A(this,Ut))c===e?a.skipped_effects.delete(s):a.skipped_effects.add(s);for(const[c,s]of A(this,ut))c===e?a.skipped_effects.delete(s.effect):a.skipped_effects.add(s.effect);a.oncommit(A(this,Ma)),a.ondiscard(A(this,wr))}else A(this,Ma).call(this)}}Tt=new WeakMap,Ut=new WeakMap,ut=new WeakMap,Bi=new WeakMap,La=new WeakMap,Ma=new WeakMap,wr=new WeakMap;const jc=0,Zr=1;function Ja(t,e,i,a,r){var n=ki(),l=We,c=n?Mt(l):Fr(l,!1,!1),s=n?Mt(l):Fr(l,!1,!1),d=new ea(t);di(()=>{var p=e(),u=!1;if(hs(p)){var f=ml(),h=!1;const m=b=>{if(!u){h=!0,f(!1),At.ensure();try{b()}finally{fa(),Zi||cl()}}};p.then(b=>{m(()=>{Xt(c,b),d.ensure(Zr,a&&(y=>a(y,c)))})},b=>{m(()=>{if(Xt(s,b),d.ensure(Zr,r&&(y=>r(y,s))),!r)throw s.v})}),Qt(()=>{h||m(()=>{d.ensure(jc,i)})})}else Xt(c,p),d.ensure(Zr,a&&(m=>a(m,c)));return()=>{u=!0}})}function H(t,e,i=!1){var a=new ea(t),r=i?It:0;function n(l,c){a.ensure(l,c)}di(()=>{var l=!1;e((c,s=!0)=>{l=!0,n(s,c)}),l||n(!1,null)},r)}function Sa(t,e,i){var a=new ea(t),r=!ki();di(()=>{var n=e();r&&n!==null&&typeof n=="object"&&(n={}),a.ensure(n,i)})}function Ne(t,e,...i){var a=new ea(t);di(()=>{const r=e()??null;a.ensure(r,r&&(n=>r(n,...i)))},It)}function Yr(t,e,i){var a=new ea(t);di(()=>{var r=e()??null;a.ensure(r,r&&(n=>i(n,r)))},It)}function Jl(t,e,i,a,r,n){var l=null,c=t,s=Ei,d=new ea(c,!1);di(()=>{const p=e()||null;var u=p==="svg"?Fs:null;if(p===null){d.ensure(null,null),Ya(!0);return}return d.ensure(p,f=>{var h=Ei;if(hl(s),p){if(l=u?document.createElementNS(u,p):document.createElement(p),Qi(l,l),a){var m=l.appendChild(Dt());a(l,m)}_e.nodes_end=l,f.before(l)}hl(h)}),Ya(!0),()=>{p&&Ya(!1)}},It),ya(()=>{Ya(!0)})}function Bt(t,e,i){Ci(()=>{var a=Rt(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var r=!1,n={};Wa(()=>{var l=i();Gl(l),r&&rl(n,l)&&(n=l,a.update(l))}),r=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function Qa(t,e){var i=void 0,a;Il(()=>{i!==(i=e())&&(a&&(Ye(a),a=null),i&&(a=lt(()=>{Ci(()=>i(t))})))})}function Ql(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var r=t.length;for(e=0;e<r;e++)t[e]&&(i=Ql(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function Ac(){for(var t,e,i=0,a="",r=arguments.length;i<r;i++)(t=arguments[i])&&(e=Ql(t))&&(a&&(a+=" "),a+=e);return a}function Lc(t){return typeof t=="object"?Ac(t):t??""}const Xl=[...`
3
3
  \r\f \v\uFEFF`];function Mc(t,e,i){var a=t==null?"":""+t;if(e&&(a=a?a+" "+e:e),i){for(var r in i)if(i[r])a=a?a+" "+r:r;else if(a.length)for(var n=r.length,l=0;(l=a.indexOf(r,l))>=0;){var c=l+n;(l===0||Xl.includes(a[l-1]))&&(c===a.length||Xl.includes(a[c]))?a=(l===0?"":a.substring(0,l))+a.substring(c+1):l=c}}return a===""?null:a}function $l(t,e=!1){var i=e?" !important;":";",a="";for(var r in t){var n=t[r];n!=null&&n!==""&&(a+=" "+r+": "+n+i)}return a}function Jr(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function Dc(t,e){if(e){var i="",a,r;if(Array.isArray(e)?(a=e[0],r=e[1]):a=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var n=!1,l=0,c=!1,s=[];a&&s.push(...Object.keys(a).map(Jr)),r&&s.push(...Object.keys(r).map(Jr));var d=0,p=-1;const b=t.length;for(var u=0;u<b;u++){var f=t[u];if(c?f==="/"&&t[u-1]==="*"&&(c=!1):n?n===f&&(n=!1):f==="/"&&t[u+1]==="*"?c=!0:f==='"'||f==="'"?n=f:f==="("?l++:f===")"&&l--,!c&&n===!1&&l===0){if(f===":"&&p===-1)p=u;else if(f===";"||u===b-1){if(p!==-1){var h=Jr(t.substring(d,p).trim());if(!s.includes(h)){f!==";"&&u++;var m=t.substring(d,u).trim();i+=" "+m+";"}}d=u+1,p=-1}}}}return a&&(i+=$l(a)),r&&(i+=$l(r,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function xe(t,e,i,a,r,n){var l=t.__className;if(l!==i||l===void 0){var c=Mc(i,a,n);c==null?t.removeAttribute("class"):e?t.className=c:t.setAttribute("class",c),t.__className=i}else if(n&&r!==n)for(var s in n){var d=!!n[s];(r==null||d!==!!r[s])&&t.classList.toggle(s,d)}return n}function Qr(t,e={},i,a){for(var r in i){var n=i[r];e[r]!==n&&(i[r]==null?t.style.removeProperty(r):t.style.setProperty(r,n,a))}}function Fe(t,e,i,a){var r=t.__style;if(r!==e){var n=Dc(e,a);n==null?t.removeAttribute("style"):t.style.cssText=n,t.__style=e}else a&&(Array.isArray(a)?(Qr(t,i==null?void 0:i[0],a[0]),Qr(t,i==null?void 0:i[1],a[1],"important")):Qr(t,i,a));return a}function Xr(t,e,i=!1){if(t.multiple){if(e==null)return;if(!qe(e))return Vs();for(var a of t.options)a.selected=e.includes(eo(a));return}for(a of t.options){var r=eo(a);if(nc(r,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function qc(t){var e=new MutationObserver(()=>{Xr(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),ya(()=>{e.disconnect()})}function eo(t){return"__value"in t?t.__value:t.value}const ta=Symbol("class"),ia=Symbol("style"),to=Symbol("is custom element"),io=Symbol("is html");function Oc(t,e){var i=$r(t);i.value===(i.value=e??void 0)||t.value===e&&(e!==0||t.nodeName!=="PROGRESS")||(t.value=e??"")}function ao(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function ie(t,e,i,a){var r=$r(t);r[e]!==(r[e]=i)&&(e==="loading"&&(t[ms]=i),i==null?t.removeAttribute(e):typeof i!="string"&&lo(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function Rc(t,e,i,a,r=!1,n=!1){var l=$r(t),c=l[to],s=!l[io],d=e||{},p=t.tagName==="OPTION";for(var u in e)u in i||(i[u]=null);i.class?i.class=Lc(i.class):(a||i[ta])&&(i.class=null),i[ia]&&(i.style??(i.style=null));var f=lo(t);for(const x in i){let _=i[x];if(p&&x==="value"&&_==null){t.value=t.__value="",d[x]=_;continue}if(x==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";xe(t,h,_,a,e==null?void 0:e[ta],i[ta]),d[x]=_,d[ta]=i[ta];continue}if(x==="style"){Fe(t,_,e==null?void 0:e[ia],i[ia]),d[x]=_,d[ia]=i[ia];continue}var m=d[x];if(!(_===m&&!(_===void 0&&t.hasAttribute(x)))){d[x]=_;var b=x[0]+x[1];if(b!=="$$")if(b==="on"){const L={},I="$$"+x;let j=x.slice(2);var y=kc(j);if(xc(j)&&(j=j.slice(0,-7),L.capture=!0),!y&&m){if(_!=null)continue;t.removeEventListener(j,d[I],L),d[I]=null}if(_!=null)if(y)t[`__${j}`]=_,ve([j]);else{let B=function(M){d[x].call(this,M)};d[I]=Gr(j,t,B,L)}else y&&(t[`__${j}`]=void 0)}else if(x==="style")ie(t,x,_);else if(x==="autofocus")sc(t,!!_);else if(!c&&(x==="__value"||x==="value"&&_!=null))t.value=t.__value=_;else if(x==="selected"&&p)ao(t,_);else{var g=x;s||(g=Tc(g));var S=g==="defaultValue"||g==="defaultChecked";if(_==null&&!c&&!S)if(l[x]=null,g==="value"||g==="checked"){let L=t;const I=e===void 0;if(g==="value"){let j=L.defaultValue;L.removeAttribute(g),L.defaultValue=j,L.value=L.__value=I?j:null}else{let j=L.defaultChecked;L.removeAttribute(g),L.defaultChecked=j,L.checked=I?j:!1}}else t.removeAttribute(x);else S||f.includes(g)&&(c||typeof _!="string")?(t[g]=_,g in l&&(l[g]=We)):typeof _!="function"&&ie(t,g,_)}}}return d}function ro(t,e,i=[],a=[],r=[],n,l=!1,c=!1){gl(r,i,a,s=>{var d=void 0,p={},u=t.nodeName==="SELECT",f=!1;if(Il(()=>{var m=e(...s.map(o)),b=Rc(t,d,m,n,l,c);f&&u&&"value"in m&&Xr(t,m.value);for(let g of Object.getOwnPropertySymbols(p))m[g]||Ye(p[g]);for(let g of Object.getOwnPropertySymbols(m)){var y=m[g];g.description===Hs&&(!d||y!==d[g])&&(p[g]&&Ye(p[g]),p[g]=lt(()=>Qa(t,()=>y))),b[g]=y}d=b}),u){var h=t;Ci(()=>{Xr(h,d.value,!0),qc(h)})}f=!0})}function $r(t){return t.__attributes??(t.__attributes={[to]:t.nodeName.includes("-"),[io]:t.namespaceURI===Bs})}var no=new Map;function lo(t){var e=t.getAttribute("is")||t.nodeName,i=no.get(e);if(i)return i;no.set(e,i=[]);for(var a,r=t,n=Element.prototype;n!==r;){a=Wn(r);for(var l in a)a[l].set&&i.push(l);r=Cr(r)}return i}const Nc=()=>performance.now(),ei={tick:t=>requestAnimationFrame(t),now:()=>Nc(),tasks:new Set};function oo(){const t=ei.now();ei.tasks.forEach(e=>{e.c(t)||(ei.tasks.delete(e),e.f())}),ei.tasks.size!==0&&ei.tick(oo)}function Bc(t){let e;return ei.tasks.size===0&&ei.tick(oo),{promise:new Promise(i=>{ei.tasks.add(e={c:t,f:i})}),abort(){ei.tasks.delete(e)}}}function Xa(t,e){Pi(()=>{t.dispatchEvent(new CustomEvent(e))})}function Fc(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function so(t){const e={},i=t.split(";");for(const a of i){const[r,n]=a.split(":");if(!r||n===void 0)break;const l=Fc(r.trim());e[l]=n.trim()}return e}const Hc=t=>t;function Vc(t,e,i){var a=Ei,r,n,l,c=null;a.a??(a.a={element:t,measure(){r=this.element.getBoundingClientRect()},apply(){if(l==null||l.abort(),n=this.element.getBoundingClientRect(),r.left!==n.left||r.right!==n.right||r.top!==n.top||r.bottom!==n.bottom){const s=e()(this.element,{from:r,to:n},i==null?void 0:i());l=$a(this.element,s,void 0,1,()=>{l==null||l.abort(),l=void 0})}},fix(){if(!t.getAnimations().length){var{position:s,width:d,height:p}=getComputedStyle(t);if(s!=="absolute"&&s!=="fixed"){var u=t.style;c={position:u.position,width:u.width,height:u.height,transform:u.transform},u.position="absolute",u.width=d,u.height=p;var f=t.getBoundingClientRect();if(r.left!==f.left||r.top!==f.top){var h=`translate(${r.left-f.left}px, ${r.top-f.top}px)`;u.transform=u.transform?`${u.transform} ${h}`:h}}}},unfix(){if(c){var s=t.style;s.position=c.position,s.width=c.width,s.height=c.height,s.transform=c.transform}}}),a.a.element=t}function De(t,e,i,a){var r=(t&Ds)!==0,n=(t&qs)!==0,l=r&&n,c=(t&Os)!==0,s=l?"both":r?"in":"out",d,p=e.inert,u=e.style.overflow,f,h;function m(){return Pi(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:s})))}var b={is_global:c,in(){var x;if(e.inert=p,!r){h==null||h.abort(),(x=h==null?void 0:h.reset)==null||x.call(h);return}n||f==null||f.abort(),Xa(e,"introstart"),f=$a(e,m(),h,1,()=>{Xa(e,"introend"),f==null||f.abort(),f=d=void 0,e.style.overflow=u})},out(x){if(!n){x==null||x(),d=void 0;return}e.inert=!0,Xa(e,"outrostart"),h=$a(e,m(),f,0,()=>{Xa(e,"outroend"),x==null||x()})},stop:()=>{f==null||f.abort(),h==null||h.abort()}},y=_e;if((y.transitions??(y.transitions=[])).push(b),r&&Za){var g=c;if(!g){for(var S=y.parent;S&&S.f&It;)for(;(S=S.parent)&&!(S.f&zt););g=!S||(S.f&Fa)!==0}g&&Ci(()=>{Rt(()=>b.in())})}}function $a(t,e,i,a,r){var n=a===1;if(Hi(e)){var l,c=!1;return Qt(()=>{if(!c){var y=e({direction:n?"in":"out"});l=$a(t,y,i,a,r)}}),{abort:()=>{c=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(e!=null&&e.duration))return r(),{abort:vt,deactivate:vt,reset:vt,t:()=>a};const{delay:s=0,css:d,tick:p,easing:u=Hc}=e;var f=[];if(n&&i===void 0&&(p&&p(0,1),d)){var h=so(d(0,1));f.push(h,h)}var m=()=>1-a,b=t.animate(f,{duration:s,fill:"forwards"});return b.onfinish=()=>{b.cancel();var y=(i==null?void 0:i.t())??1-a;i==null||i.abort();var g=a-y,S=e.duration*Math.abs(g),x=[];if(S>0){var _=!1;if(d)for(var L=Math.ceil(S/16.666666666666668),I=0;I<=L;I+=1){var j=y+g*u(I/L),B=so(d(j,1-j));x.push(B),_||(_=B.overflow==="hidden")}_&&(t.style.overflow="hidden"),m=()=>{var M=b.currentTime;return y+g*u(M/S)},p&&Bc(()=>{if(b.playState!=="running")return!1;var M=m();return p(M,1-M),!0})}b=t.animate(x,{duration:S,fill:"forwards"}),b.onfinish=()=>{m=()=>a,p==null||p(a,1-a),r()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=vt)},deactivate:()=>{r=vt},reset:()=>{a===0&&(p==null||p(1,0))},t:()=>m()}}function Ta(t,e,i=e){var a=new WeakSet;pc(t,"input",async r=>{var n=r?t.defaultValue:t.value;if(n=en(t)?tn(n):n,i(n),ye!==null&&a.add(ye),await _a(),n!==(n=e())){var l=t.selectionStart,c=t.selectionEnd,s=t.value.length;if(t.value=n??"",c!==null){var d=t.value.length;l===c&&c===s&&d>s?(t.selectionStart=d,t.selectionEnd=d):(t.selectionStart=l,t.selectionEnd=Math.min(c,d))}}}),Rt(e)==null&&t.value&&(i(en(t)?tn(t.value):t.value),ye!==null&&a.add(ye)),Wa(()=>{var r=e();if(t===document.activeElement){var n=Va??ye;if(a.has(n))return}en(t)&&r===tn(t.value)||t.type==="date"&&!r&&!t.value||r!==t.value&&(t.value=r??"")})}function en(t){var e=t.type;return e==="number"||e==="range"}function tn(t){return t===""?null:+t}const _r=class _r{constructor(e){ue(this,xr);ue(this,wi,new WeakMap);ue(this,ca);ue(this,Da);se(this,Da,e)}observe(e,i){var a=A(this,wi).get(e)||new Set;return a.add(i),A(this,wi).set(e,a),ze(this,xr,cs).call(this).observe(e,A(this,Da)),()=>{var r=A(this,wi).get(e);r.delete(i),r.size===0&&(A(this,wi).delete(e),A(this,ca).unobserve(e))}}};wi=new WeakMap,ca=new WeakMap,Da=new WeakMap,xr=new WeakSet,cs=function(){return A(this,ca)??se(this,ca,new ResizeObserver(e=>{for(var i of e){_r.entries.set(i.target,i);for(var a of A(this,wi).get(i.target)||[])a(i)}}))},Ct(_r,"entries",new WeakMap);let an=_r;var Uc=new an({box:"border-box"});function _t(t,e,i){var a=Uc.observe(t,()=>i(t[e]));Ci(()=>(Rt(()=>i(t[e])),a))}function co(t,e){return t===e||(t==null?void 0:t[jt])===e}function Qe(t={},e,i,a){return Ci(()=>{var r,n;return Wa(()=>{r=n,n=[],Rt(()=>{t!==i(...n)&&(e(t,...n),r&&co(i(...r),t)&&e(null,...r))})}),()=>{Qt(()=>{n&&co(i(...n),t)&&e(null,...n)})}}),t}function rn(t,e){dc(window,["resize"],()=>Pi(()=>e(window[t])))}function nn(t=!1){const e=Te,i=e.l.u;if(!i)return;let a=()=>Gl(e.s);if(t){let r=0,n={};const l=ha(()=>{let c=!1;const s=e.s;for(const d in s)s[d]!==n[d]&&(n[d]=s[d],c=!0);return c&&r++,r});a=()=>o(l)}i.b.length&&vc(()=>{po(e,a),zr(i.b)}),Ge(()=>{const r=Rt(()=>i.m.map(gs));return()=>{for(const n of r)typeof n=="function"&&n()}}),i.a.length&&Ge(()=>{po(e,a),zr(i.a)})}function po(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let er=!1;function Wc(t){var e=er;try{return er=!1,[t(),er]}finally{er=e}}const Gc={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 uo(t,e,i){return new Proxy({props:t,exclude:e},Gc)}const Kc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Hi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a)return a[e]}},set(t,e,i){let a=t.props.length;for(;a--;){let r=t.props[a];Hi(r)&&(r=r());const n=li(r,e);if(n&&n.set)return n.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Hi(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const r=li(a,e);return r&&!r.configurable&&(r.configurable=!0),r}}},has(t,e){if(e===jt||e===$n)return!1;for(let i of t.props)if(Hi(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Hi(i)&&(i=i()),!!i){for(const a in i)e.includes(a)||e.push(a);for(const a of Object.getOwnPropertySymbols(i))e.includes(a)||e.push(a)}return e}};function ln(...t){return new Proxy({props:t},Kc)}function R(t,e,i,a){var x;var r=!Wi||(i&js)!==0,n=(i&Ls)!==0,l=(i&Ms)!==0,c=a,s=!0,d=()=>(s&&(s=!1,c=l?Rt(a):a),c),p;if(n){var u=jt in t||$n in t;p=((x=li(t,e))==null?void 0:x.set)??(u&&e in t?_=>t[e]=_:void 0)}var f,h=!1;n?[f,h]=Wc(()=>t[e]):f=t[e],f===void 0&&a!==void 0&&(f=d(),p&&(r&&ks(),p(f)));var m;if(r?m=()=>{var _=t[e];return _===void 0?d():(s=!0,_)}:m=()=>{var _=t[e];return _!==void 0&&(c=void 0),_===void 0?c:_},r&&!(i&As))return m;if(p){var b=t.$$legacy;return function(_,L){return arguments.length>0?((!r||!L||b||h)&&p(L?m():_),_):m()}}var y=!1,g=(i&Is?ha:Rr)(()=>(y=!1,m()));n&&o(g);var S=_e;return function(_,L){if(arguments.length>0){const I=L?o(g):r&&n?Ae(_):_;return D(g,I),y=!0,c!==void 0&&(c=I),_}return zi&&y||S.f&Jt?g.v:o(g)}}function pt(t){Te===null&&Lr(),Wi&&Te.l!==null?Zc(Te).m.push(t):Ge(()=>{const e=Rt(t);if(typeof e=="function")return e})}function on(t){Te===null&&Lr(),pt(()=>()=>Rt(t))}function Zc(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const Yc="5";typeof window<"u"&&((as=window.__svelte??(window.__svelte={})).v??(as.v=new Set)).add(Yc);function vi(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const Jc="https://www.playpilot.com",Qc="https://partner-api.playpilot.tech/1.0",Xc="https://img-external.playpilot.tech",$c="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",Ii=600,sn={};async function ti(t,{headers:e={},method:i="GET",body:a=null}={}){const r=!tr()&&i==="GET";if(r&&t in sn)return sn[t];const n=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(Qc+t,{method:i,headers:new Headers({...n,...e}),body:a?JSON.stringify(a):null});if(!(l!=null&&l.ok))throw l;const c=await l.text();let s=c;try{c&&(s=JSON.parse(c))}catch{}return r&&(sn[t]=s),s}const vo="EncryptedToken",fo="articleReplacementEditToken",ed="playpilot-editorial-mode";async function ho({href:t=window.location.href,throwError:e=!1}={}){try{const i=vi();if(!i)throw new Error("No token was provided");const a=go(t);if(!a)throw new Error("Could not be authenticated");return await ti(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),td(a),!0}catch(i){if(console.error(i),e)throw i}finally{id()}return!1}function go(t=""){var a,r;const e=(a=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:a.editorial_token;if(e)return e;if(t){const n=new URL(t).searchParams.get(fo);if(n)return decodeURI(n)}return((r=("; "+document.cookie).split(`; ${vo}=`).pop())==null?void 0:r.split(";")[0])||""}function td(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=vo+"="+t+";"+a+";path=/"}function tr(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(ed)==="true"||!!t}function id(){const t=new URL(window.location.href);t.searchParams.delete(fo),window.history.replaceState({},"",t)}function ad(t){let e=0;for(let i=0;i<t.length;i++){const a=t.charCodeAt(i);e=e*31+a>>>0}return e.toString(16)}function cn(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const v=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Ea(){var a,r;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(v);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");if(i){if(e.includes(i))return i;const n=e.find(l=>l.toLowerCase().startsWith(i+"-"));if(n)return n}return v.English}function mo(t,e=""){const i=[],a=[t];for(;a.length>0;){const r=a.pop();if(i.includes(r)||e&&r.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(r.tagName)||r.offsetWidth<=1)continue;const n=Array.from(r.childNodes).some(s=>{var d;return s.nodeType===Node.TEXT_NODE&&((d=s.nodeValue)==null?void 0:d.trim())!==""});if(n&&r.tagName==="LI"){const s=r.closest("ul, ol");s&&!i.includes(s)&&i.push(s);continue}const l=r.tagName==="P"&&!!r.textContent;if(n||l){i.push(r);continue}const c=Array.from(r.children);for(let s=c.length-1;s>=0;s--)a.push(c[s])}return i}function dn(){var e;const t=(e=window.PlayPilotLinkInjections)==null?void 0:e.selector;if(t){const i=t.replace(/(:)/g,"\\$1"),a=document.querySelector(i);if(a)return a}return document.querySelector("article")||document.querySelector("main")||document.body}function pn(t){return t.map(e=>e.innerText).join(`
4
4
 
5
- `)}function un(t){const e=dn(),i=mo(e,(t==null?void 0:t.exclude_elements_selector)||""),a=pn(i);return{parentElement:e,elements:i,pageText:a}}function yo(){const t=dn();return{content_heading:rd(t),content_modified_time:nd(t),content_published_time:ld(t)}}function rd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function nd(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=bo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function ld(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=bo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function vn(t){try{return new Date(t).toISOString()}catch{return null}}function bo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function ji(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function fn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function od(t){return!!(t.exclude_urls_pattern&&ji().match(new RegExp(t.exclude_urls_pattern)))}let hn=null;async function ir(t,{url:e=ji(),hash:i=ad(t||""),params:a={},method:r="GET"}={}){const n=vi(),l=tr()?await ho():!1,c=Ea();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=yo(),d=await ti(s,{method:"POST",body:a})):d=await ti(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function wo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;hn&&clearTimeout(hn);const c=async(s,d)=>{let p;try{try{p=await ir(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await ir(t,{method:"POST"}),p.ai_enabled&&(p=await ir(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await sd(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=xo(p.manual_injections||[]),p.ai_injections=xo(p.ai_injections||[]),s(p);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}p&&n(p),hn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function sd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=yo().content_modified_time,a=e.content_modified_time?vn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await ir(t,{params:{run_ai:!0},method:"POST"})}function xo(t){return t.map(e=>({...e,key:cd(e.sid)}))}function cd(t){return t+"-"+cn()}function dd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function pd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function ud(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function gn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function _o(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function ko(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function vd(t,e,i,a){const r=ud(e),n=gn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),p=c.replace(d,i);return l+p}function fd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function fi(t){return gn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function hd(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=So(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=So(To(n,2)),s=To(l,2);return{before:c,after:s}}function So(t){return t.split("").reverse().join("")}function To(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ar(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function gd(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,c=i?t.indexOf(i,l):t.length;if(i&&c===-1)break;const s=t.slice(l,c);a.push({match:s,index:l}),r=i?c+i.length:t.length+1}return a}function md(t,e,i,a){const n=gd(t,i,a).filter(({match:c})=>gn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function yd(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function bd(t,e,i=0){const a=e.innerHTML,r=[],n=wd(e);let l=a.indexOf(t);for(;l!==-1;)pd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function wd(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!r&&!a&&s==="<"){a=!0,n&&(e.push({start:l,end:c}),n=!1);continue}if(a&&s==='"'&&(r=!r),a&&!r&&s===">"){a=!1;continue}!a&&!r&&!n&&(l=c,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function xd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function Eo(t){return t.ctrlKey||t.metaKey||t.button!==0}const ce={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate"},Pa={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function _d(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function kt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function rr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const mn=[{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 kd(t=[]){return t.map(e=>{var i;return((i=mn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const yn="playpilot_user_id";function Sd(){if(!Po())return null;try{const t=localStorage.getItem(yn);return t||(localStorage.setItem(yn,cn(16)),localStorage.getItem(yn))}catch{return null}}function Po(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Td="https://insights.playpilot.net";async function de(t,e=null,i={}){var r,n,l,c,s;if(rr())return;if(!kt("tracking")){Pd(t,e,i);return}const a=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:kd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Po()&&(i.user_id=Sd()),i.version="8.7.1",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=ji(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>Ii?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Td,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Ed({event:t,payload:i})}function Ed(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Co({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Pd(t,e=null,i={}){var a;(a=window.PlayPilotLinkInjections).queued_tracking_events||(a.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function Cd(){if(kt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])de(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function zo(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?kt("pixels"):!1}async function Io(){if(!kt("ads"))return[];const t=vi();if(!t)throw new Error("No token was provided");try{return await ti(`/ads/browse/?api-token=${t}`)}catch(e){throw de(ce.AdsFetchFailed,null,{status:e.status}),e}}function Ca(t){var e;return!kt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function zd(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function bn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const c=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(a=c==null?void 0:c.country)==null?void 0:a.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),Id(s),s}catch(l){return de(ce.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Id(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function wn(t={}){const e=vi();if(!e)throw new Error("No token was provided");return t={...t,language:Ea(),include_count:"false"},t.region!==null&&(t.region=t.region||await bn()),await ti(`/titles/browse?api-token=${e}&`+fn(t))}async function jd(t){return(await wn({related_to_sid:t.sid})).results}const Ad={"Where To Stream Online":{[v.English]:"Where to stream online",[v.Swedish]:"Var kan man streama online",[v.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[v.English]:"We may earn a commission from purchases made through some of the links below.",[v.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[v.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[v.English]:"An error occurred",[v.Swedish]:"Ett fel inträffade",[v.Danish]:"Der opstod en fejl"},Loading:{[v.English]:"Loading",[v.Swedish]:"Laddar",[v.Danish]:"Indlæser"},"Title Unavailable":{[v.English]:"This title is not currently available to stream.",[v.Swedish]:"Den här titeln går inte att streama just nu.",[v.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[v.English]:"is not currently available to stream.",[v.Swedish]:"går inte att streama just nu.",[v.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[v.English]:"is available to stream on",[v.Swedish]:"finns att streama på",[v.Danish]:"kan streames på"},"Is Available To Stream":{[v.English]:"is available to stream.",[v.Swedish]:"finns att streama.",[v.Danish]:"kan streames."},"View Streaming Options":{[v.English]:"View streaming options",[v.Swedish]:"Se streamingalternativ",[v.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[v.English]:"and",[v.Swedish]:"och",[v.Danish]:"og"},Minutes:{[v.English]:"minutes",[v.Swedish]:"minuter",[v.Danish]:"minutter"},"Type: movie":{[v.English]:"Movie",[v.Swedish]:"Film",[v.Danish]:"Film"},"Type: series":{[v.English]:"Series",[v.Swedish]:"Serie",[v.Danish]:"Serie"},Stream:{[v.English]:"Stream",[v.Swedish]:"Streama",[v.Danish]:"Stream"},Buy:{[v.English]:"Buy",[v.Swedish]:"Köp",[v.Danish]:"Køb"},Rent:{[v.English]:"Rent",[v.Swedish]:"Hyr",[v.Danish]:"Lej"},"Rent Or Buy":{[v.English]:"Rent or Buy",[v.Swedish]:"Hyr/köp",[v.Danish]:"Lej eller køb"},Watch:{[v.English]:"Watch",[v.Swedish]:"Titta nu",[v.Danish]:"Se nu"},"Category: AVOD":{[v.English]:"Stream for free",[v.Swedish]:"Streama gratis",[v.Danish]:"Stream gratis"},"Category: SVOD":{[v.English]:"Streaming services",[v.Swedish]:"Streamingtjänster",[v.Danish]:"Streamingtjenester"},"Category: RENT":{[v.English]:"Rent it",[v.Swedish]:"Hyr den",[v.Danish]:"Lej den"},"Category: BUY":{[v.English]:"Buy it",[v.Swedish]:"Köp den",[v.Danish]:"Køb den"},"Category: Other":{[v.English]:"Other",[v.Swedish]:"Annat",[v.Danish]:"Andet"},Share:{[v.English]:"Share",[v.Swedish]:"Dela",[v.Danish]:"Del"},"Copy URL":{[v.English]:"Copy URL",[v.Swedish]:"Kopiera URL",[v.Danish]:"Kopiér URL"},Email:{[v.English]:"Email",[v.Swedish]:"E-post",[v.Danish]:"E-mail"},"Show More":{[v.English]:"Show more",[v.Swedish]:"Visa mer",[v.Danish]:"Vis mere"},Cast:{[v.English]:"Cast",[v.Swedish]:"Rollista",[v.Danish]:"Skuespillere"},"Similar Titles":{[v.English]:"Similar movies & shows",[v.Swedish]:"Liknande filmer och serier",[v.Danish]:"Lignende film og serier"},"Watch Trailer":{[v.English]:"Watch trailer",[v.Swedish]:"Se trailer",[v.Danish]:"Se trailer"},"Streaming Guide":{[v.English]:"Streaming Guide",[v.Swedish]:"Streaming Guide",[v.Danish]:"Streaming Guide"},"Streaming Guide Description":{[v.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[v.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[v.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[v.English]:"Search movies and shows",[v.Swedish]:"Sök filmer och serier",[v.Danish]:"Søg film og serier"},Services:{[v.English]:"Services",[v.Swedish]:"Tjänster",[v.Danish]:"Tjenester"},Genres:{[v.English]:"Genres",[v.Swedish]:"Genrer",[v.Danish]:"Genrer"},IMDb:{[v.English]:"IMDb",[v.Swedish]:"IMDb",[v.Danish]:"IMDb"},Year:{[v.English]:"Year",[v.Swedish]:"År",[v.Danish]:"År"},Runtime:{[v.English]:"Runtime",[v.Swedish]:"Speltid",[v.Danish]:"Spilletid"},Countries:{[v.English]:"Countries",[v.Swedish]:"Länder",[v.Danish]:"Lande"},"All Filters":{[v.English]:"All filters",[v.Swedish]:"Alla filter",[v.Danish]:"Alle filtre"},"Sort By":{[v.English]:"Sort by",[v.Swedish]:"Sortera efter",[v.Danish]:"Sortér efter"},Popularity:{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},New:{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"Top Rated":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"List: Trending":{[v.English]:"Trending Movies & Shows",[v.Swedish]:"Trendande Titlar",[v.Danish]:"Populære film og serier"},"List: Upcoming":{[v.English]:"Upcoming Releases",[v.Swedish]:"Kommande Premiärer",[v.Danish]:"Mest ventede film"},"List: New":{[v.English]:"New Releases",[v.Swedish]:"Nya Filmer & Serier",[v.Danish]:"Nye film og serier"},"List: Demand":{[v.English]:"Always in Demand",[v.Swedish]:"Tidlösa Favoriter",[v.Danish]:"Tidløse favoritter"},"List: Cinema":{[v.English]:"Coming to Cinemas",[v.Swedish]:"Snart på Bio",[v.Danish]:"Kommende film"},All:{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},Unscripted:{[v.English]:"Unscripted",[v.Swedish]:"Oscripterat",[v.Danish]:"Umanuskriptet"},Independent:{[v.English]:"Independent",[v.Swedish]:"Indie",[v.Danish]:"Indie"},"Game Show":{[v.English]:"Game Show",[v.Swedish]:"Gameshow",[v.Danish]:"Quizshow"},"Film Noir":{[v.English]:"Film Noir",[v.Swedish]:"Film noir",[v.Danish]:"Film noir"},Entertainment:{[v.English]:"Entertainment",[v.Swedish]:"Underhållning",[v.Danish]:"Underholdning"},News:{[v.English]:"News",[v.Swedish]:"Nyheter",[v.Danish]:"Nyheder"},Short:{[v.English]:"Short",[v.Swedish]:"Kortfilm",[v.Danish]:"Kortfilm"},Bollywood:{[v.English]:"Bollywood",[v.Swedish]:"Bollywood",[v.Danish]:"Bollywood"},Concert:{[v.English]:"Concert",[v.Swedish]:"Konsert",[v.Danish]:"Koncert"},Arthouse:{[v.English]:"Arthouse",[v.Swedish]:"Arthouse",[v.Danish]:"Arthouse"},"Alternate Version":{[v.English]:"Alternate Version",[v.Swedish]:"Alternativ version",[v.Danish]:"Alternativ version"},"Reality TV":{[v.English]:"Reality TV",[v.Swedish]:"Reality-TV",[v.Danish]:"Reality-TV"},Culture:{[v.English]:"Culture",[v.Swedish]:"Kultur",[v.Danish]:"Kultur"},Drama:{[v.English]:"Drama",[v.Swedish]:"Drama",[v.Danish]:"Drama"},Crime:{[v.English]:"Crime",[v.Swedish]:"Kriminal",[v.Danish]:"Krimi"},Western:{[v.English]:"Western",[v.Swedish]:"Western",[v.Danish]:"Western"},Thriller:{[v.English]:"Thriller",[v.Swedish]:"Thriller",[v.Danish]:"Thriller"},Animation:{[v.English]:"Animation",[v.Swedish]:"Animerat",[v.Danish]:"Animation"},Mystery:{[v.English]:"Mystery",[v.Swedish]:"Mysterium",[v.Danish]:"Mysterium"},Science:{[v.English]:"Science",[v.Swedish]:"Vetenskap",[v.Danish]:"Videnskab"},Nature:{[v.English]:"Nature",[v.Swedish]:"Natur",[v.Danish]:"Natur"},War:{[v.English]:"War",[v.Swedish]:"Krig",[v.Danish]:"Krig"},"Sci-Fi":{[v.English]:"Sci-Fi",[v.Swedish]:"Sci-fi",[v.Danish]:"Sci-fi"},Documentary:{[v.English]:"Documentary",[v.Swedish]:"Dokumentär",[v.Danish]:"Dokumentar"},"Stand-up":{[v.English]:"Stand-up",[v.Swedish]:"Standup",[v.Danish]:"Stand-up"},"Talk Show":{[v.English]:"Talk Show",[v.Swedish]:"Talkshow",[v.Danish]:"Talkshow"},Fantasy:{[v.English]:"Fantasy",[v.Swedish]:"Fantasy",[v.Danish]:"Fantasy"},History:{[v.English]:"History",[v.Swedish]:"Historia",[v.Danish]:"Historie"},Adventure:{[v.English]:"Adventure",[v.Swedish]:"Äventyr",[v.Danish]:"Eventyr"},Action:{[v.English]:"Action",[v.Swedish]:"Action",[v.Danish]:"Action"},Horror:{[v.English]:"Horror",[v.Swedish]:"Skräck",[v.Danish]:"Gyser"},Comedy:{[v.English]:"Comedy",[v.Swedish]:"Komedi",[v.Danish]:"Komedie"},Biography:{[v.English]:"Biography",[v.Swedish]:"Biografi",[v.Danish]:"Biografi"},Music:{[v.English]:"Music",[v.Swedish]:"Musik",[v.Danish]:"Musik"},Sport:{[v.English]:"Sport",[v.Swedish]:"Sport",[v.Danish]:"Sport"},Romance:{[v.English]:"Romance",[v.Swedish]:"Romantik",[v.Danish]:"Romantik"},Kids:{[v.English]:"Kids",[v.Swedish]:"Barn",[v.Danish]:"Børn"},Lifestyle:{[v.English]:"Lifestyle",[v.Swedish]:"Livsstil",[v.Danish]:"Livsstil"},Musical:{[v.English]:"Musical",[v.Swedish]:"Musikal",[v.Danish]:"Musical"},Anime:{[v.English]:"Anime",[v.Swedish]:"Anime",[v.Danish]:"Anime"},Family:{[v.English]:"Family",[v.Swedish]:"Familj",[v.Danish]:"Familie"}};function le(t,e=Ea()){var i;return((i=Ad[t])==null?void 0:i[e])||t}const nr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Ld=t=>t;function jo(t){const e=t-1;return e*e*e+1}function Ao(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ii(t,{delay:e=0,duration:i=400,easing:a=Ld}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function za(t,{delay:e=0,duration:i=400,easing:a=jo,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,p=s*(1-l),[u,f]=Ao(r),[h,m]=Ao(n);return{delay:e,duration:i,easing:a,css:(b,y)=>`
5
+ `)}function un(t){const e=dn(),i=mo(e,(t==null?void 0:t.exclude_elements_selector)||""),a=pn(i);return{parentElement:e,elements:i,pageText:a}}function yo(){const t=dn();return{content_heading:rd(t),content_modified_time:nd(t),content_published_time:ld(t)}}function rd(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function nd(t){const e=document.querySelector('meta[property*="modified_time"]')||document.querySelector('meta[name*="modified_time"]')||t.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,i=bo().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function ld(t){const e=document.querySelector('meta[property*="published_time"]')||document.querySelector('meta[name*="published_time"]')||t.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||t.querySelector("time")||document.querySelector("time")||t.querySelector("[datetime]")||document.querySelector("[datetime]")||null,i=bo().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?vn(i):null}function vn(t){try{return new Date(t).toISOString()}catch{return null}}function bo(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function ji(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function fn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function od(t){return!!(t.exclude_urls_pattern&&ji().match(new RegExp(t.exclude_urls_pattern)))}let hn=null;async function ir(t,{url:e=ji(),hash:i=ad(t||""),params:a={},method:r="GET"}={}){const n=vi(),l=tr()?await ho():!1,c=Ea();if(!n)throw new Error("No token was provided");const s=`/external-pages/?api-token=${n}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return r==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=yo(),d=await ti(s,{method:"POST",body:a})):d=await ti(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function wo(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:r=600,onpoll:n=()=>null}={}){let l=0;hn&&clearTimeout(hn);const c=async(s,d)=>{let p;try{try{p=await ir(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await ir(t,{method:"POST"}),p.ai_enabled&&(p=await ir(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await sd(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=xo(p.manual_injections||[]),p.ai_injections=xo(p.ai_injections||[]),s(p);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}p&&n(p),hn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function sd(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=yo().content_modified_time,a=e.content_modified_time?vn(e.content_modified_time):null,r=i&&a===i;return e.ai_last_run&&r||new Date(i||0)<=new Date(a||0)?e:await ir(t,{params:{run_ai:!0},method:"POST"})}function xo(t){return t.map(e=>({...e,key:cd(e.sid)}))}function cd(t){return t+"-"+cn()}function dd(t,e,i){return t.filter(a=>i.every(r=>a[r]===e[r])).length}function pd(t,e){return e.some(i=>t>=i.start&&t<i.end)}function ud(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function gn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function _o(t,e,i=[]){var n,l;const a=document.createTreeWalker(e);let r;for(;(r=a.nextNode())&&!((n=r.nodeValue)!=null&&n.includes(t)&&!i.includes(((l=r.parentNode)==null?void 0:l.nodeName)||"")););return r}function ko(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function vd(t,e,i,a){const r=ud(e),n=gn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${n.replace(s,"\\$&")}|${r.replace(s,"\\$&")}`),p=c.replace(d,i);return l+p}function fd(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function fi(t){return gn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function hd(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const r=Math.max(a.innerText.indexOf(t.textContent),0),n=So(a.innerText.slice(0,e+r)),l=a.innerText.slice(i+r),c=So(To(n,2)),s=To(l,2);return{before:c,after:s}}function So(t){return t.split("").reverse().join("")}function To(t,e=1){const i=t.match(/[^\s]+/g);return i?i.slice(0,e).join(" ").replace(/[.,!?;:]+$/u,""):""}function ar(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function gd(t,e,i){const a=[];let r=0;for(;r<=t.length;){const n=e?t.indexOf(e,r):r;if(n===-1&&e)break;const l=e?n+e.length:n,c=i?t.indexOf(i,l):t.length;if(i&&c===-1)break;const s=t.slice(l,c);a.push({match:s,index:l}),r=i?c+i.length:t.length+1}return a}function md(t,e,i,a){const n=gd(t,i,a).filter(({match:c})=>gn(c).includes(e));return n.length?n.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function yd(t){var e,i;return{leadingSpaces:((e=t.match(/^\s*/))==null?void 0:e[0].length)||0,trailingSpaces:((i=t.match(/\s*$/))==null?void 0:i[0].length)||0}}function bd(t,e,i=0){const a=e.innerHTML,r=[],n=wd(e);let l=a.indexOf(t);for(;l!==-1;)pd(l,n)&&r.push(l),l=a.indexOf(t,l+t.length);return r[i]??-1}function wd(t){const e=[],i=t.innerHTML;let a=!1,r=!1,n=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!r&&!a&&s==="<"){a=!0,n&&(e.push({start:l,end:c}),n=!1);continue}if(a&&s==='"'&&(r=!r),a&&!r&&s===">"){a=!1;continue}!a&&!r&&!n&&(l=c,n=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function xd(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),r=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),n=new RegExp(`([${a}])${r}([${a}])`),l=e.match(n);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function Eo(t){return t.ctrlKey||t.metaKey||t.button!==0}const ce={ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",InjectionVisible:"ali_injection_visible",UserLeft:"ali_user_left",TitleModalView:"ali_title_modal_view",TitleModalClose:"ali_title_modal_close",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",ParticipantModalView:"ali_participant_modal_view",ParticipantModalClose:"ali_participant_modal_close",TitlePopoverView:"ali_title_popover_view",TitlePopoverClose:"ali_title_popover_close",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",SimilarTitleClick:"ali_similar_title_click",ParticipantClick:"ali_title_participant_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FailedInjectionsCount:"ali_failed_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed",ManualReport:"ali_manual_report",EditorError:"ali_editor_error",InjectionError:"ali_injection_error",TopScrollView:"ali_top_scroll_view",TopScrollClick:"ali_top_scroll_click",DisplayAdView:"ali_display_ad_view",DisplayAdClick:"ali_display_ad_click",DisplayedAdPlaylickClick:"ali_display_ad_playlink_click",AdsFetchFailed:"ali_ads_fetch_failed",SplitTestView:"ali_split_test_view",SplitTestAction:"ali_split_test_action",ShareTitle:"ali_share_title",SaveTitle:"ali_save_title",NotifyTitle:"ali_notify_title",TrailerClick:"ali_trailer_button_click",ExpandTitleDescription:"ali_expand_title_description",RegionRequestFailed:"ali_region_request_failed",YouTubeAvailabilityRequestFailed:"ali_youtube_availability_request_failed",CardToExploreCta:"ali_card_to_explore_cta",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed",ExploreTitleRailModalView:"venus_title_rail_modal_view",ExploreTitleRailExpandClick:"venus_title_rail_expand_click",ExploreTitleRailSetIndex:"venus_title_rail_set_index",ExploreNavigate:"venus_navigate"},Pa={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function _d(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function kt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function rr(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const mn=[{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 kd(t=[]){return t.map(e=>{var i;return((i=mn.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const yn="playpilot_user_id";function Sd(){if(!Po())return null;try{const t=localStorage.getItem(yn);return t||(localStorage.setItem(yn,cn(16)),localStorage.getItem(yn))}catch{return null}}function Po(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const Td="https://insights.playpilot.net";async function de(t,e=null,i={}){var r,n,l,c,s;if(rr())return;if(!kt("tracking")){Pd(t,e,i);return}const a=new Headers({"Content-Type":"application/json"});e&&(i={original_title:e.original_title,title:e.title,title_sid:e.sid,title_type:e.type,genres:kd(e.genres),providers:[...new Set(((r=e.providers)==null?void 0:r.map(d=>d.name))||[])],...i}),Po()&&(i.user_id=Sd()),i.version="8.7.2",i.time_since_initialize=(n=window.PlayPilotLinkInjections)!=null&&n.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=ji(),i.organization_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.organization_sid)||"undefined",i.domain_sid=((c=window.PlayPilotLinkInjections)==null?void 0:c.domain_sid)||"undefined",i.device={type:window.innerWidth>Ii?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((s=screen.orientation)==null?void 0:s.type)||"undefined"},fetch(Td,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),Ed({event:t,payload:i})}function Ed(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function Co({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function Pd(t,e=null,i={}){var a;(a=window.PlayPilotLinkInjections).queued_tracking_events||(a.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:t,title:e,payload:i})}function Cd(){if(kt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])de(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function zo(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?kt("pixels"):!1}async function Io(){if(!kt("ads"))return[];const t=vi();if(!t)throw new Error("No token was provided");try{return await ti(`/ads/browse/?api-token=${t}`)}catch(e){throw de(ce.AdsFetchFailed,null,{status:e.status}),e}}function Ca(t){var e;return!kt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function zd(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}async function bn(t=5e3){var i,a,r,n;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.region;if(e)return e;try{const c=await(await fetch("https://api.country.is/",{signal:AbortSignal.timeout(t)})).json();let s=(a=c==null?void 0:c.country)==null?void 0:a.toLowerCase();if(!s)throw new Error("No country was returned by api.country.is");return s==="gb"&&(s="uk"),Id(s),s}catch(l){return de(ce.RegionRequestFailed,null,{message:l.message}),((n=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.fallback_region)||""}}function Id(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function wn(t={}){const e=vi();if(!e)throw new Error("No token was provided");return t={...t,language:Ea(),include_count:"false"},t.region!==null&&(t.region=t.region||await bn()),await ti(`/titles/browse?api-token=${e}&`+fn(t))}async function jd(t){return(await wn({related_to_sid:t.sid})).results}const Ad={"Where To Stream Online":{[v.English]:"Where to stream online",[v.Swedish]:"Var kan man streama online",[v.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[v.English]:"We may earn a commission from purchases made through some of the links below.",[v.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[v.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[v.English]:"An error occurred",[v.Swedish]:"Ett fel inträffade",[v.Danish]:"Der opstod en fejl"},Loading:{[v.English]:"Loading",[v.Swedish]:"Laddar",[v.Danish]:"Indlæser"},"Title Unavailable":{[v.English]:"This title is not currently available to stream.",[v.Swedish]:"Den här titeln går inte att streama just nu.",[v.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[v.English]:"is not currently available to stream.",[v.Swedish]:"går inte att streama just nu.",[v.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[v.English]:"is available to stream on",[v.Swedish]:"finns att streama på",[v.Danish]:"kan streames på"},"Is Available To Stream":{[v.English]:"is available to stream.",[v.Swedish]:"finns att streama.",[v.Danish]:"kan streames."},"View Streaming Options":{[v.English]:"View streaming options",[v.Swedish]:"Se streamingalternativ",[v.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[v.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[v.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[v.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[v.English]:"and",[v.Swedish]:"och",[v.Danish]:"og"},Minutes:{[v.English]:"minutes",[v.Swedish]:"minuter",[v.Danish]:"minutter"},"Type: movie":{[v.English]:"Movie",[v.Swedish]:"Film",[v.Danish]:"Film"},"Type: series":{[v.English]:"Series",[v.Swedish]:"Serie",[v.Danish]:"Serie"},Stream:{[v.English]:"Stream",[v.Swedish]:"Streama",[v.Danish]:"Stream"},Buy:{[v.English]:"Buy",[v.Swedish]:"Köp",[v.Danish]:"Køb"},Rent:{[v.English]:"Rent",[v.Swedish]:"Hyr",[v.Danish]:"Lej"},"Rent Or Buy":{[v.English]:"Rent or Buy",[v.Swedish]:"Hyr/köp",[v.Danish]:"Lej eller køb"},Watch:{[v.English]:"Watch",[v.Swedish]:"Titta nu",[v.Danish]:"Se nu"},"Category: AVOD":{[v.English]:"Stream for free",[v.Swedish]:"Streama gratis",[v.Danish]:"Stream gratis"},"Category: SVOD":{[v.English]:"Streaming services",[v.Swedish]:"Streamingtjänster",[v.Danish]:"Streamingtjenester"},"Category: RENT":{[v.English]:"Rent it",[v.Swedish]:"Hyr den",[v.Danish]:"Lej den"},"Category: BUY":{[v.English]:"Buy it",[v.Swedish]:"Köp den",[v.Danish]:"Køb den"},"Category: Other":{[v.English]:"Other",[v.Swedish]:"Annat",[v.Danish]:"Andet"},Share:{[v.English]:"Share",[v.Swedish]:"Dela",[v.Danish]:"Del"},"Copy URL":{[v.English]:"Copy URL",[v.Swedish]:"Kopiera URL",[v.Danish]:"Kopiér URL"},Email:{[v.English]:"Email",[v.Swedish]:"E-post",[v.Danish]:"E-mail"},"Show More":{[v.English]:"Show more",[v.Swedish]:"Visa mer",[v.Danish]:"Vis mere"},Cast:{[v.English]:"Cast",[v.Swedish]:"Rollista",[v.Danish]:"Skuespillere"},"Similar Titles":{[v.English]:"Similar movies & shows",[v.Swedish]:"Liknande filmer och serier",[v.Danish]:"Lignende film og serier"},"Watch Trailer":{[v.English]:"Watch trailer",[v.Swedish]:"Se trailer",[v.Danish]:"Se trailer"},"Streaming Guide":{[v.English]:"Streaming Guide",[v.Swedish]:"Streaming Guide",[v.Danish]:"Streaming Guide"},"Streaming Guide Description":{[v.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[v.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[v.Danish]:"Find ud af, hvor du kan se film online - den ultimative guide, der hjælper dig med at finde de bedste film og serier på streamingtjenester."},"Search Movies And Shows":{[v.English]:"Search movies and shows",[v.Swedish]:"Sök filmer och serier",[v.Danish]:"Søg film og serier"},Services:{[v.English]:"Services",[v.Swedish]:"Tjänster",[v.Danish]:"Tjenester"},Genres:{[v.English]:"Genres",[v.Swedish]:"Genrer",[v.Danish]:"Genrer"},IMDb:{[v.English]:"IMDb",[v.Swedish]:"IMDb",[v.Danish]:"IMDb"},Year:{[v.English]:"Year",[v.Swedish]:"År",[v.Danish]:"År"},Runtime:{[v.English]:"Runtime",[v.Swedish]:"Speltid",[v.Danish]:"Spilletid"},Countries:{[v.English]:"Countries",[v.Swedish]:"Länder",[v.Danish]:"Lande"},"All Filters":{[v.English]:"All filters",[v.Swedish]:"Alla filter",[v.Danish]:"Alle filtre"},"Sort By":{[v.English]:"Sort by",[v.Swedish]:"Sortera efter",[v.Danish]:"Sortér efter"},Popularity:{[v.English]:"Popularity",[v.Swedish]:"Popularitet",[v.Danish]:"Popularitet"},New:{[v.English]:"New",[v.Swedish]:"Nytt",[v.Danish]:"Nyt"},"Top Rated":{[v.English]:"Top Rated",[v.Swedish]:"Toppbetyg",[v.Danish]:"Højst vurderet"},Search:{[v.English]:"Search",[v.Swedish]:"Sök",[v.Danish]:"Søg"},"Born On":{[v.English]:"Born on",[v.Swedish]:"Född den",[v.Danish]:"Født den"},"Died On":{[v.English]:"Died on",[v.Swedish]:"Död den",[v.Danish]:"Død den"},Credits:{[v.English]:"Credits",[v.Swedish]:"Medverkande",[v.Danish]:"Medvirkende"},Home:{[v.English]:"Home",[v.Swedish]:"Hem",[v.Danish]:"Hjem"},Explore:{[v.English]:"Explore",[v.Swedish]:"Utforska",[v.Danish]:"Udforsk"},"List: Trending":{[v.English]:"Trending Movies & Shows",[v.Swedish]:"Trendande Titlar",[v.Danish]:"Populære film og serier"},"List: Upcoming":{[v.English]:"Upcoming Releases",[v.Swedish]:"Kommande Premiärer",[v.Danish]:"Mest ventede film"},"List: New":{[v.English]:"New Releases",[v.Swedish]:"Nya Filmer & Serier",[v.Danish]:"Nye film og serier"},"List: Demand":{[v.English]:"Always in Demand",[v.Swedish]:"Tidlösa Favoriter",[v.Danish]:"Tidløse favoritter"},"List: Cinema":{[v.English]:"Coming to Cinemas",[v.Swedish]:"Snart på Bio",[v.Danish]:"Kommende film"},All:{[v.English]:"All",[v.Swedish]:"Alla",[v.Danish]:"Alle"},Unscripted:{[v.English]:"Unscripted",[v.Swedish]:"Oscripterat",[v.Danish]:"Umanuskriptet"},Independent:{[v.English]:"Independent",[v.Swedish]:"Indie",[v.Danish]:"Indie"},"Game Show":{[v.English]:"Game Show",[v.Swedish]:"Gameshow",[v.Danish]:"Quizshow"},"Film Noir":{[v.English]:"Film Noir",[v.Swedish]:"Film noir",[v.Danish]:"Film noir"},Entertainment:{[v.English]:"Entertainment",[v.Swedish]:"Underhållning",[v.Danish]:"Underholdning"},News:{[v.English]:"News",[v.Swedish]:"Nyheter",[v.Danish]:"Nyheder"},Short:{[v.English]:"Short",[v.Swedish]:"Kortfilm",[v.Danish]:"Kortfilm"},Bollywood:{[v.English]:"Bollywood",[v.Swedish]:"Bollywood",[v.Danish]:"Bollywood"},Concert:{[v.English]:"Concert",[v.Swedish]:"Konsert",[v.Danish]:"Koncert"},Arthouse:{[v.English]:"Arthouse",[v.Swedish]:"Arthouse",[v.Danish]:"Arthouse"},"Alternate Version":{[v.English]:"Alternate Version",[v.Swedish]:"Alternativ version",[v.Danish]:"Alternativ version"},"Reality TV":{[v.English]:"Reality TV",[v.Swedish]:"Reality-TV",[v.Danish]:"Reality-TV"},Culture:{[v.English]:"Culture",[v.Swedish]:"Kultur",[v.Danish]:"Kultur"},Drama:{[v.English]:"Drama",[v.Swedish]:"Drama",[v.Danish]:"Drama"},Crime:{[v.English]:"Crime",[v.Swedish]:"Kriminal",[v.Danish]:"Krimi"},Western:{[v.English]:"Western",[v.Swedish]:"Western",[v.Danish]:"Western"},Thriller:{[v.English]:"Thriller",[v.Swedish]:"Thriller",[v.Danish]:"Thriller"},Animation:{[v.English]:"Animation",[v.Swedish]:"Animerat",[v.Danish]:"Animation"},Mystery:{[v.English]:"Mystery",[v.Swedish]:"Mysterium",[v.Danish]:"Mysterium"},Science:{[v.English]:"Science",[v.Swedish]:"Vetenskap",[v.Danish]:"Videnskab"},Nature:{[v.English]:"Nature",[v.Swedish]:"Natur",[v.Danish]:"Natur"},War:{[v.English]:"War",[v.Swedish]:"Krig",[v.Danish]:"Krig"},"Sci-Fi":{[v.English]:"Sci-Fi",[v.Swedish]:"Sci-fi",[v.Danish]:"Sci-fi"},Documentary:{[v.English]:"Documentary",[v.Swedish]:"Dokumentär",[v.Danish]:"Dokumentar"},"Stand-up":{[v.English]:"Stand-up",[v.Swedish]:"Standup",[v.Danish]:"Stand-up"},"Talk Show":{[v.English]:"Talk Show",[v.Swedish]:"Talkshow",[v.Danish]:"Talkshow"},Fantasy:{[v.English]:"Fantasy",[v.Swedish]:"Fantasy",[v.Danish]:"Fantasy"},History:{[v.English]:"History",[v.Swedish]:"Historia",[v.Danish]:"Historie"},Adventure:{[v.English]:"Adventure",[v.Swedish]:"Äventyr",[v.Danish]:"Eventyr"},Action:{[v.English]:"Action",[v.Swedish]:"Action",[v.Danish]:"Action"},Horror:{[v.English]:"Horror",[v.Swedish]:"Skräck",[v.Danish]:"Gyser"},Comedy:{[v.English]:"Comedy",[v.Swedish]:"Komedi",[v.Danish]:"Komedie"},Biography:{[v.English]:"Biography",[v.Swedish]:"Biografi",[v.Danish]:"Biografi"},Music:{[v.English]:"Music",[v.Swedish]:"Musik",[v.Danish]:"Musik"},Sport:{[v.English]:"Sport",[v.Swedish]:"Sport",[v.Danish]:"Sport"},Romance:{[v.English]:"Romance",[v.Swedish]:"Romantik",[v.Danish]:"Romantik"},Kids:{[v.English]:"Kids",[v.Swedish]:"Barn",[v.Danish]:"Børn"},Lifestyle:{[v.English]:"Lifestyle",[v.Swedish]:"Livsstil",[v.Danish]:"Livsstil"},Musical:{[v.English]:"Musical",[v.Swedish]:"Musikal",[v.Danish]:"Musical"},Anime:{[v.English]:"Anime",[v.Swedish]:"Anime",[v.Danish]:"Anime"},Family:{[v.English]:"Family",[v.Swedish]:"Familj",[v.Danish]:"Familie"}};function re(t,e=Ea()){var i;return((i=Ad[t])==null?void 0:i[e])||t}const nr=Object.freeze({Popular:"-popularity",New:"-new",Best:"-best"}),Ld=t=>t;function jo(t){const e=t-1;return e*e*e+1}function Ao(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function ii(t,{delay:e=0,duration:i=400,easing:a=Ld}={}){const r=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:n=>`opacity: ${n*r}`}}function za(t,{delay:e=0,duration:i=400,easing:a=jo,x:r=0,y:n=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,p=s*(1-l),[u,f]=Ao(r),[h,m]=Ao(n);return{delay:e,duration:i,easing:a,css:(b,y)=>`
6
6
  transform: ${d} translate(${(1-b)*u}${f}, ${(1-b)*h}${m});
7
7
  opacity: ${s-p*y}`}}function aa(t,{delay:e=0,duration:i=400,easing:a=jo,start:r=0,opacity:n=0}={}){const l=getComputedStyle(t),c=+l.opacity,s=l.transform==="none"?"":l.transform,d=1-r,p=c*(1-n);return{delay:e,duration:i,easing:a,css:(u,f)=>`
8
8
  transform: ${s} scale(${1-d*f});
9
9
  opacity: ${c-p*f}
10
- `}}function lr(t){return t?t.replace("/src/img",""):null}function Lo(t,e=null){return t!=null&&t.length?`${Xc}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Md=C('<img class="svelte-p6g2a"/>');function or(t,e){re(e,!0);const i=R(e,"width",3,96),a=R(e,"height",3,144),r=R(e,"lazy",3,!0),n=R(e,"onload",3,()=>null);var l=Md();V(c=>{ie(l,"src",c),ie(l,"alt",`Movie poster for '${e.title.title??""}'`),ie(l,"width",i()),ie(l,"height",a()),ie(l,"loading",r()?"lazy":null)},[()=>lr(e.title.standing_poster)]),ke("error",l,({target:c})=>c.src=$c),ke("load",l,function(...c){var s;(s=n())==null||s.apply(this,c)}),w(t,l),ne()}var Dd=Je('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function xn(t,e){const i=R(e,"size",3,16);var a=Dd();V(()=>{ie(a,"width",i()),ie(a,"height",i())}),w(t,a)}var qd=C('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function Od(t,e){const i=R(e,"embeddable_url",3,"");var a=qd(),r=k(a);kn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=z(r,2);n.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var l=z(n,2);l.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var c=k(l);xn(c,{size:24}),De(3,a,()=>ii,()=>({duration:100})),w(t,a)}ve(["click"]);const Rd="1304688689641511",Nd="https://endpoint-youtube-availability.playpilot.workers.dev";async function Mo(t){var i,a,r,n;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const l=await fetch(`${Nd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const c=await l.json();return!((r=c.blocked)!=null&&r[e]||!c.blocked&&c.allowed&&!((n=c.allowed)!=null&&n.includes(e)))}catch(l){return de(ce.YouTubeAvailabilityRequestFailed,null,{message:l.message}),!1}}let sr={};function Bd(t){const e=On(),i={onclose:Fd,embeddable_url:t.embeddable_url||""};sr=Nt(Od,{target:e,props:i})}function Fd(){sr&&($i(sr,{outro:!0}),sr=null)}function _n(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function Hd(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&_n(r.embeddable_url);try{n&&await Mo(n)&&(a=r)}catch{}i++}return a}var Vd=Je('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Ud=Je('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Wd=Je('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function Gd(t,e){const i=R(e,"muted",3,!1);var a=Wd(),r=k(a);{var n=c=>{var s=Vd();w(c,s)},l=c=>{var s=Ud();w(c,s)};H(r,c=>{i()?c(n):c(l,!1)})}w(t,a)}var Kd=C('<button class="mute svelte-1ivh34t"><!></button>'),Zd=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function kn(t,e){var S;re(e,!0);const i=R(e,"embeddable_url",3,""),a=R(e,"controls",19,()=>[]),r=R(e,"muted",3,!1),n=R(e,"loop",3,!1),l=R(e,"captions",3,!1),c=R(e,"showMuteControls",3,!1),s=U(()=>_n(i())),d=((S=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:S.replace("#",""))||"fa548a";let p=G(null),u=G(Ae(r()));function f(x=!o(u)){var _,L;o(u)!=x&&((L=(_=o(p))==null?void 0:_.contentWindow)==null||L.postMessage("mute","*")),D(u,x,!0)}var h={toggleMute:f},m=me(),b=J(m);{var y=x=>{var _=Zd(),L=J(_);Qe(L,B=>D(p,B),()=>o(p));var I=z(L,2);{var j=B=>{var M=Kd();M.__click=()=>f();var q=k(M);Gd(q,{get muted(){return o(u)}}),w(B,M)};H(I,B=>{c()&&B(j)})}V(B=>ie(L,"src",`https://video.playpilot.net/?video_id=${o(s)??""}&color=${d}&muted=${r()??""}&loop=${n()??""}&captions=${l()??""}&controls=${B??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),w(x,_)},g=x=>{var _=ui("Something went wrong");w(x,_)};H(b,x=>{o(s)?x(y):x(g,!1)})}return w(t,m),ne(h)}ve(["click"]);var Yd=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function Do(t,e){re(e,!0);let i=R(e,"gap",3,"0"),a=R(e,"fill",3,!0),r=R(e,"transitionDuration",3,300),n=R(e,"threshold",3,30),l=R(e,"moveThreshold",3,0),c=R(e,"currentIndex",15,0),s=R(e,"shown",31,()=>Ae([])),d=R(e,"sliderWidth",15,0),p=R(e,"currentScrollPosition",15,0),u=R(e,"maxWidth",15,0),f=R(e,"reachedEnd",15,!1),h=R(e,"distanceToEnd",15,0),m=R(e,"passedThreshold",15,!1),b=R(e,"passedMoveThreshold",15,!1),y=R(e,"allowWheel",3,!1),g=R(e,"end",3,()=>null),S=R(e,"change",3,ee=>null),x=R(e,"onend",19,g),_=R(e,"onchange",19,S),L=R(e,"onresize",3,()=>null),I=G(!1),j=G(!1),B=0,M=0,q=G(void 0),T=G(void 0),E=null,P=null;Ge(()=>{o(T)&&ae(),o(T)&&h(u()-p()-d())}),pt(()=>(fe(),()=>E==null?void 0:E.disconnect()));function F(ee){const oe=o(T).children.length,ge=Math.max(0,Math.min(ee,oe-1));Q({setIndex:ge}),ae()}function W(){D(j,!0),F(c()),requestAnimationFrame(()=>D(j,!1))}function $(ee){he(ee.target)&&(ee.preventDefault(),B=we(ee),D(I,!0))}function N(){if(o(I)){if(!m())Q({setIndex:c()});else{const ee=p()-M,oe=ee>0?1:-1;ee!=0&&Q({direction:oe})}D(I,!1),m(!1)}}function O(ee){if(!o(I))return;const oe=we(ee),ge=M+(B-oe),rt=B-oe;b(Math.abs(rt)>l()),m(Math.abs(p()-M)>n()),b()&&(X(ge-l()*(rt>0?1:-1)),ae())}function K(ee){if(!y())return;const{deltaX:oe,deltaY:ge}=ee;if(Math.abs(oe)<Math.abs(ge))return;ee.preventDefault();const Ue=p()+oe*20*.02;X(Ue),ae(),P&&clearTimeout(P),P=setTimeout(()=>{Q({direction:oe>0?1:-1})},100)}function Y(ee){he(document.activeElement)&&(ee.key=="ArrowLeft"&&F(c()-1),ee.key=="ArrowRight"&&F(c()+1))}function Q({setIndex:ee=-1,direction:oe=1}={}){const ge=Se(),rt=c();c(0);let Ue;for(Ue=0;Ue<ge.length;Ue++)if(ee!=-1){if(Ue>=ee)break}else if(oe>0&&ge[Ue]>p()||oe<0&&ge[Ue+1]>p())break;c(Math.min(Ue,te().length-1)),X(ge[c()],!0),M=p(),_()&&c()!=rt&&_()(c())}function X(ee,oe=!1){p(ee);const ge=u()-d();f(p()>=ge),f()&&(x()&&x()(),a()&&oe&&p(ge))}function ae(){const ee=Se();Array.from(ee).forEach((oe,ge)=>{p()+d()<oe||s().includes(ge)||s([...s(),ge])})}function we(ee){var oe,ge;return ee.pageX??((ge=(oe=ee.touches)==null?void 0:oe[0])==null?void 0:ge.pageX)}function Se(){return te().map(ee=>ee.offsetLeft)}function te(){return Array.from(o(T).children).filter(ee=>ee instanceof HTMLElement).filter(ee=>ee.src!="about:blank")}function fe(){E=new ResizeObserver(ee=>{for(const oe of ee){const ge=Array.isArray(oe.contentBoxSize)?oe.contentBoxSize[0]:oe.contentBoxSize;u(ge.inlineSize)}L()()}),E.observe(o(T))}function he(ee){return ee===o(q)||(ee==null?void 0:ee.closest(".slider"))===o(q)}var Ce={setIndex:F,reposition:W},Ve=Yd();ke("mousedown",Me,$),ke("mouseup",Me,N),ke("mousemove",Me,O),ke("touchstart",Me,$,void 0,!0),ke("touchend",Me,N),ke("touchmove",Me,O,void 0,!0),ke("keydown",Me,Y),ke("resize",Me,W);var Le=J(Ve);let pe;var Be=k(Le);let at;var ni=k(Be);Ne(ni,()=>e.children??vt,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:F,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),Qe(Be,ee=>D(T,ee),()=>o(T)),Qe(Le,ee=>D(q,ee),()=>o(q));var Pt=z(Le,2);return Ne(Pt,()=>e.controls??vt,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:F,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),V(ee=>{pe=xe(Le,1,"slider svelte-1gs8ha8",null,pe,{dragging:o(I),"passed-threshold":m()}),at=Fe(Be,"",at,ee)},[()=>({transform:`translateX(${p()*-1}px)`,"transition-duration":`${(o(I)||o(j)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),ke("wheel",Le,K),_t(Le,"clientWidth",d),w(t,Ve),ne(Ce)}var Jd=Je("<title> </title>"),Qd=Je('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function St(t,e){const i=R(e,"direction",3,"right"),a=R(e,"title",3,""),r=R(e,"size",3,16);var n=Qd(),l=k(n);{var c=s=>{var d=Jd(),p=k(d);V(()=>Z(p,a())),w(s,d)};H(l,s=>{a()&&s(c)})}V(()=>{xe(n,0,i(),"svelte-1m6nwwy"),ie(n,"width",`${r()??""}px`),ie(n,"height",`${r()??""}px`)}),w(t,n)}function Oe(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Xd=C('<div class="heading svelte-1ayf7b5"> </div>'),$d=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),ep=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),tp=C("<!> <!>",1),ip=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function cr(t,e){re(e,!0);let i=R(e,"heading",3,""),a=R(e,"onchange",3,()=>null),r=R(e,"onresize",3,()=>null),n=R(e,"slider",15);var l=ip(),c=J(l);{var s=u=>{var f=Xd(),h=k(f);Bt(f,(m,b)=>Oe==null?void 0:Oe(m,b),()=>2),V(()=>Z(h,i())),w(u,f)};H(c,u=>{i()&&u(s)})}var d=z(c,2),p=k(d);Qe(Do(p,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(f,h)=>{let m=()=>h==null?void 0:h().setIndex,b=()=>h==null?void 0:h().currentIndex,y=()=>h==null?void 0:h().reachedEnd;var g=tp(),S=J(g);{var x=I=>{var j=$d();j.__click=()=>m()(b()-1);var B=k(j);St(B,{direction:"left",title:"Previous"}),w(I,j)};H(S,I=>{b()>0&&I(x)})}var _=z(S,2);{var L=I=>{var j=ep();j.__click=()=>m()(b()+1);var B=k(j);St(B,{title:"Next"}),w(I,j)};H(_,I=>{y()||I(L)})}w(f,g)},children:(f,h)=>{var m=me(),b=J(m);Ne(b,()=>e.children),w(f,m)},$$slots:{controls:!0,default:!0}}),f=>n(f),()=>n()),w(t,l),ne()}ve(["click"]);function qo(t){return`${Jc}/${t.type}/${t.slug}/`}var ap=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),rp=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),np=C('<a class="poster svelte-12ph9f6"><!></a>'),lp=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),op=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),sp=C('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),cp=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),dp=C('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),pp=C("<div><!></div>");function Oo(t,e){re(e,!0);let i=R(e,"minimumLength",3,1),a=R(e,"heading",3,""),r=R(e,"size",3,"small"),n=R(e,"aside",3,!1),l=R(e,"expandable",3,!1),c=R(e,"expandedTitle",15,null),s=R(e,"expandedRailKey",15,null),d=R(e,"onclick",3,()=>null),p=R(e,"onexpand",3,()=>null);const u=cn(),h=Mr("scope")==="popover"?Mr("title"):null;let m=G(null),b=G(null),y=G(null),g=!1;pt(()=>{l()&&L()});function S(T,E,P){var W,$,N,O;T==null||T.preventDefault();const F=E[P];if(l()&&!I(F)){const K=(W=o(m))==null?void 0:W.querySelectorAll(".title")[P],Q=((($=o(m))==null?void 0:$.getBoundingClientRect().right)||0)-K.getBoundingClientRect().right;g=!0,setTimeout(()=>g=!1,500),Q<K.clientWidth*2&&((N=o(b))==null||N.setIndex(P-2)),_(F),T&&p()(F);return}T&&(Li()?hi({event:T,type:"titles-rail",data:E,returnToTitle:h,props:{initialIndex:P}}):hi({event:T,data:F,returnToTitle:h}),(O=o(y))==null||O.toggleMute(!0),d()(F))}async function x(){const T=await e.titles,E=await Hd(T);E&&(c()||s()&&s()!==u||_(E))}function _(T){s(u),c(T)}function L(){s()===u||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(F=>F.getBoundingClientRect().top>=0).sort((F,W)=>F.getBoundingClientRect().top-W.getBoundingClientRect().top)[0]!==o(m)||(c(null),s(null),x())}function I(T){var E;return s()===u&&T.sid===((E=c())==null?void 0:E.sid)}function j(T,E){l()&&(g||setTimeout(()=>S(null,T,E),250))}var B=pp();ke("scroll",Me,L);let M;var q=k(B);Ja(q,()=>e.titles,T=>{cr(T,{get heading(){return a()},children:(E,P)=>{var F=me(),W=J(F);Ie(W,16,()=>({length:12}),je,($,N)=>{var O=dp(),K=z(k(O),4);{var Y=Q=>{var X=cp(),ae=k(X);Ie(ae,20,()=>({length:3}),je,(we,Se)=>{var te=sp();w(we,te)}),w(Q,X)};H(K,Q=>{n()&&Q(Y)})}w($,O)}),w(E,F)},$$slots:{default:!0}})},(T,E)=>{var P=me(),F=J(P);{var W=$=>{cr($,{get heading(){return a()},onchange:N=>j(o(E),N),onresize:()=>{var N;return(N=o(b))==null?void 0:N.reposition()},get slider(){return o(b)},set slider(N){D(b,N,!0)},children:(N,O)=>{var K=me(),Y=J(K);Ie(Y,17,()=>o(E),je,(Q,X,ae,we)=>{const Se=U(()=>I(o(X))),te=U(()=>qo(o(X))),fe=U(()=>oe=>S(oe,o(E),ae));var he=op();let Ce;var Ve=k(he),Le=k(Ve);{var pe=oe=>{var ge=rp(),rt=k(ge);rt.__click=function(...Gt){var Kt;(Kt=o(fe))==null||Kt.apply(this,Gt)};var Ue=z(rt,2);{var Wt=Gt=>{Qe(kn(Gt,{get embeddable_url(){return o(X).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),Kt=>D(y,Kt,!0),()=>o(y))},Nn=Gt=>{var Kt=ap();V(()=>ie(Kt,"src",o(X).medium_poster)),w(Gt,Kt)};H(Ue,Gt=>{o(X).embeddable_url?Gt(Wt):Gt(Nn,!1)})}V(()=>ie(rt,"href",o(te))),De(2,ge,()=>ii,()=>({delay:200,duration:200})),w(oe,ge)},Be=oe=>{var ge=np();ge.__click=function(...Ue){var Wt;(Wt=o(fe))==null||Wt.apply(this,Ue)};var rt=k(ge);or(rt,{get title(){return o(X)},width:96,height:144}),V(()=>ie(ge,"href",o(te))),w(oe,ge)};H(Le,oe=>{o(Se)?oe(pe):oe(Be,!1)})}var at=z(Ve,2);at.__click=function(...oe){var ge;(ge=o(fe))==null||ge.apply(this,oe)};var ni=k(at),Pt=z(at,2);{var ee=oe=>{var ge=lp();ge.__click=function(...Ue){var Wt;(Wt=o(fe))==null||Wt.apply(this,Ue)};var rt=k(ge);V(()=>Z(rt,o(X).description)),w(oe,ge)};H(Pt,oe=>{n()&&oe(ee)})}V(()=>{Ce=xe(he,1,"title svelte-12ph9f6",null,Ce,{expanded:o(Se)}),ie(at,"href",o(te)),Z(ni,o(X).title)}),w(Q,he)}),w(N,K)},$$slots:{default:!0}})};H(F,$=>{var N;((N=o(E))==null?void 0:N.length)>=i()&&$(W)})}w(T,P)}),Qe(B,T=>D(m,T),()=>o(m)),V(()=>{M=xe(B,1,`titles ${r()??""}`,"svelte-12ph9f6",M,{"with-aside":n()}),ie(B,"data-role",l()?"expandable-rail":null)}),w(t,B),ne()}ve(["click"]);var up=C('<div class="rail svelte-1b834ry"><!></div>'),vp=C('<div data-testid="explore-home"></div> <!>',1);function fp(t,e){re(e,!0);let i=G(null),a=G(null);const r=[{heading:"List: Trending",params:{ordering:nr.Popular},properties:{expandable:!0}},{heading:"List: New",params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{aside:!0}},{heading:"List: Upcoming",params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{}},{heading:"List: Cinema",params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{expandable:!0}},{heading:"List: Demand",params:{from_playlist_sid:"licBS"},properties:{aside:!0}}];async function n(s={}){var d;return(d=await wn(s))==null?void 0:d.results}var l=vp();ke("scroll",Me,onscroll);var c=z(J(l),2);Ie(c,17,()=>r,je,(s,d)=>{let p=()=>o(d).heading,u=()=>o(d).params,f=()=>o(d).properties;var h=up(),m=k(h);{let b=U(()=>le(p())),y=U(()=>n(u()));Oo(m,ln({get heading(){return o(b)},get titles(){return o(y)},size:"flexible",minimumLength:7},f,{onclick:()=>de(ce.ExploreTitleRailModalView,null,{rail:p()}),onexpand:g=>de(ce.ExploreTitleRailExpandClick,g,{rail:p()}),get expandedTitle(){return o(i)},set expandedTitle(g){D(i,g,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(g){D(a,g,!0)}}))}w(s,h)}),w(t,l),ne()}function dr(t,e={}){const i=new Image;i.src=hp(t,e||{})}function hp(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Rd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Ro(t,e={}){return()=>{Ge(()=>dr(t,e))}}function gp(t,e={}){return i=>{const a=()=>dr(t,e);Ge(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var mp=C("<button><!></button>");function Ai(t,e){const i=R(e,"variant",3,"filled"),a=R(e,"size",3,"base"),r=R(e,"label",3,null),n=R(e,"active",3,!1);var l=mp();let c;l.__click=function(...d){var p;(p=e.onclick)==null||p.apply(this,d)};var s=k(l);Ne(s,()=>e.children??vt),V(()=>{c=xe(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",c,{active:n()}),ie(l,"aria-label",r())}),w(t,l)}ve(["click"]);var yp=Je('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function Sn(t,e){const i=R(e,"size",3,14);var a=yp();V(()=>{ie(a,"width",i()),ie(a,"height",i())}),w(t,a)}function No(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(s=>s.name===r.name),l=n==null?void 0:n.extra_info.category,c=r.extra_info.category;(l==="RENT"&&c==="BUY"||l==="BUY"&&c==="RENT")&&(i=i.filter(s=>s.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var bp=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function Tn(t,e){re(e,!0);let i=G(Ae(Math.random()));var a=me();ke("updateconsent",Me,()=>D(i,Math.random(),!0));var r=J(a);Sa(r,()=>o(i),n=>{var l=me(),c=J(l);{var s=d=>{var p=me(),u=J(p);Ie(u,17,()=>e.pixels,je,(f,h)=>{var m=bp();V(()=>ie(m,"src",o(h))),w(f,m)}),w(d,p)};H(c,d=>{kt("pixels")&&d(s)})}w(n,l)}),w(t,a),ne()}var wp=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function xp(t,e){re(e,!0);const i=R(e,"size",3,30),a=R(e,"onclick",3,()=>null),r=U(()=>e.playlink.name),n=U(()=>e.playlink.url),l=U(()=>e.playlink.logo_url),c=U(()=>e.playlink.pixels);var s=wp();s.__click=function(...h){var m;(m=a())==null||m.apply(this,h)};let d;var p=k(s),u=z(p,2);{var f=h=>{Tn(h,{get pixels(){return o(c)}})};H(u,h=>{var m;(m=o(c))!=null&&m.length&&h(f)})}V(h=>{ie(s,"href",o(n)),ie(s,"data-playlink",o(r)),d=Fe(s,"",d,{"--size":`${i()??""}px`}),ie(p,"src",h),ie(p,"alt",o(r)),ie(p,"height",i()),ie(p,"width",i())},[()=>lr(o(l))]),w(t,s),ne()}ve(["click"]);var _p=C('<span class="more svelte-1plv45z"> </span>'),kp=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Sp=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Bo(t,e){re(e,!0);const i=R(e,"size",3,30),a=U(()=>No(e.playlinks).slice(0,3));function r(u){u.stopPropagation()}var n=Sp(),l=k(n);Ie(l,17,()=>o(a),je,(u,f)=>{xp(u,{get playlink(){return o(f)},onclick:r,get size(){return i()}})});var c=z(l,2);{var s=u=>{var f=_p(),h=k(f);V(()=>Z(h,`+${e.playlinks.length-o(a).length}`)),w(u,f)};H(c,u=>{e.playlinks.length>o(a).length&&u(s)})}var d=z(c,2);{var p=u=>{var f=kp();w(u,f)};H(d,u=>{e.playlinks.length||u(p)})}w(t,n),ne()}var Tp=C("<div>Series</div>"),Ep=C("<div> </div>"),Pp=C('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Cp(t,e){re(e,!0);const i=R(e,"onclick",3,()=>null);var a=Pp();a.__click=function(...S){var x;(x=i())==null||x.apply(this,S)};var r=k(a),n=k(r);or(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=z(n,2),c=k(l),s=k(c);Sn(s,{size:12});var d=z(s),p=z(c,2);{var u=S=>{var x=Tp();w(S,x)};H(p,S=>{e.title.type==="series"&&S(u)})}var f=z(p,2);{var h=S=>{var x=Ep(),_=k(x);V(()=>Z(_,`${e.title.length??""} min`)),w(S,x)};H(f,S=>{e.title.length&&S(h)})}var m=z(r,2),b=k(m),y=k(b),g=z(b,2);Bo(g,{get playlinks(){return e.title.providers},size:20}),V(()=>{Z(d,` ${e.title.imdb_score||"-"}`),Z(y,e.title.title)}),w(t,a),ne()}ve(["click"]),Gs();var zp=C('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function Ip(t){var e=zp(),i=z(k(e),2),a=k(i);Fe(a,"",{},{width:"60%"}),w(t,e)}var jp=C('<div class="svelte-pkkpyl"> </div>'),Ap=C('<button class="title svelte-pkkpyl" data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <div> </div> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Fo(t,e){var T;re(e,!0);const i=R(e,"onclick",3,()=>null),a=!!((T=window.PlayPilotLinkInjections)!=null&&T.no_affiliate);var r=Ap();r.__click=function(...E){var P;(P=i())==null||P.apply(this,E)};var n=k(r),l=k(n);or(l,{get title(){return e.title},width:30,height:43,lazy:!0});var c=z(n,2),s=k(c),d=k(s),p=z(s,2),u=k(p),f=k(u);Sn(f,{size:11});var h=z(f),m=z(u,2),b=k(m),y=z(m,2),g=k(y),S=z(y,2);{var x=E=>{var P=jp(),F=k(P);V(()=>Z(F,`${e.title.length??""} min`)),w(E,P)};H(S,E=>{e.title.length&&E(x)})}var _=z(p,2);let L;var I=k(_),j=z(_,2);{var B=E=>{Bo(E,{get playlinks(){return e.title.providers}})};H(j,E=>{a||E(B)})}var M=z(c,2),q=k(M);St(q,{}),V(E=>{Z(d,e.title.title),Z(h,` ${e.title.imdb_score||"-"}`),Z(b,e.title.year),Z(g,E),L=xe(_,1,"description svelte-pkkpyl",null,L,{large:a}),Z(I,e.title.description)},[()=>le(`Type: ${e.title.type}`)]),w(t,r),ne()}ve(["click"]);var Lp=C('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function Mp(t){var e=Lp(),i=z(k(e),2),a=k(i);Fe(a,"",{},{width:"40%"});var r=z(a,2);Fe(r,"",{},{width:"60%"});var n=z(r,2);Fe(n,"",{},{width:"80%"}),w(t,e)}var Dp=C(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function qp(t){var e=Dp();w(t,e)}var Op=C("<!> ",1),Rp=C("<div><!></div>"),Np=C("<!> <!>",1),Bp=C("<p>Something went wrong</p>"),Fp=C('<!> <div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function Hp(t,e){re(e,!0);const i=R(e,"searchQuery",3,""),a=R(e,"filter",19,()=>({})),r=R(e,"navigate",3,()=>null);let n=1,l=G(Ae([])),c=null,s=0,d=JSON.stringify(a())+i(),p=G(Ae(y())),u=G(0);const f=U(()=>o(u)>500),h=U(()=>o(u)>1400?8:o(u)>900?6:o(u)>600?4:3),m=U(()=>o(f)?Cp:Fo),b=U(()=>o(f)?Ip:Mp);Ge(()=>{(i()||s!=0)&&g(i())}),Ge(()=>{a()&&S()});async function y(){s+=1;const N=s,O={page_size:24,page:n};i()&&(O.search=i()),Object.entries(a()).forEach(([Y,{type:Q,value:X}])=>{if(Q==="string")O[Y]=X;else if(Q==="array")O[Y]=X.join(",");else if(Q==="range"){const[ae,we]=X;O[Y+"_min"]=ae,O[Y+"_max"]=we}});const K=await wn(O)||{next:null,previous:null,results:[]};return N===s&&D(l,[...o(l),...K.results],!0),K}async function g(N){j()&&(c&&clearTimeout(c),c=setTimeout(()=>{x(),D(p,y(),!0),N&&(de(ce.ExploreSearch,null,{query:N}),kt("pixels")&&dr(Pa.SearchQuery,{query:N}))},100))}function S(){j()&&(x(),D(p,y(),!0))}function x(){n=1,D(l,[],!0)}function _(){n++,D(p,y(),!0),de(ce.ExploreShowMore,null,{page:n})}function L(N,O){hi({event:N,data:O}),de(ce.ExploreTitleClick,O)}function I(){for(const N of Object.keys(a()))delete a()[N]}function j(){const N=JSON.stringify(a())+i();return N===d?!1:(d=N,!0)}var B=Fp(),M=J(B);{var q=N=>{Ai(N,{variant:"link",onclick:()=>{r()("home"),I()},children:(O,K)=>{var Y=Op(),Q=J(Y);St(Q,{direction:"left"});var X=z(Q);V(ae=>Z(X,` ${ae??""}`),[()=>le("Home")]),w(O,Y)},$$slots:{default:!0}})};H(M,N=>{Li()&&N(q)})}var T=z(M,2);let E,P;var F=k(T);Ie(F,17,()=>o(l),je,(N,O)=>{var K=me(),Y=J(K);Sa(Y,()=>o(O).sid,Q=>{var X=me(),ae=J(X);Yr(ae,()=>o(m),(we,Se)=>{Se(we,{get title(){return o(O)},onclick:te=>L(te,o(O))})}),w(Q,X)}),w(N,K)});var W=z(F,2);Ja(W,()=>o(p),N=>{var O=me(),K=J(O);Ie(K,16,()=>({length:24}),je,(Y,Q)=>{var X=me(),ae=J(X);Yr(ae,()=>o(b),(we,Se)=>{Se(we,{})}),w(Y,X)}),w(N,O)},void 0,N=>{});var $=z(T,2);Ja($,()=>o(p),null,(N,O)=>{var K=U(()=>{var{next:te}=o(O);return{next:te}}),Y=U(()=>o(K).next),Q=Np(),X=J(Q);{var ae=te=>{var fe=Rp();let he;var Ce=k(fe);Ai(Ce,{size:"large",onclick:_,children:(Ve,Le)=>{var pe=ui();V(Be=>Z(pe,Be),[()=>le("Show More")]),w(Ve,pe)},$$slots:{default:!0}}),V(()=>he=xe(fe,1,"show-more svelte-qc99of",null,he,{grid:o(f)})),w(te,fe)};H(X,te=>{o(Y)&&te(ae)})}var we=z(X,2);{var Se=te=>{qp(te)};H(we,te=>{var fe;!((fe=o(l))!=null&&fe.length)&&n===1&&te(Se)})}w(N,Q)},N=>{var O=Bp();w(N,O)}),V(()=>{E=xe(T,1,"titles svelte-qc99of",null,E,{grid:o(f)}),P=Fe(T,"",P,{"--grid-columns":o(h)})}),_t(T,"clientWidth",N=>D(u,N)),w(t,B),ne()}var Vp=Je('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function Up(t){var e=Vp();w(t,e)}var Wp=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Gp(t,e){re(e,!0);let i=G("");var a=Wp(),r=k(a),n=k(r);Up(n);var l=z(r,2);l.__input=()=>e.oninput(o(i)),V(c=>ie(l,"placeholder",c),[()=>le("Search Movies And Shows")]),Ta(l,()=>o(i),c=>D(i,c)),w(t,a),ne()}ve(["input"]);const Kp=[{label:"Aruba",value:"AW"},{label:"Afghanistan",value:"AF"},{label:"Angola",value:"AO"},{label:"Anguilla",value:"AI"},{label:"Albania",value:"AL"},{label:"Andorra",value:"AD"},{label:"United Arab Emirates",value:"AE"},{label:"Argentina",value:"AR"},{label:"Armenia",value:"AM"},{label:"American Samoa",value:"AS"},{label:"Antigua and Barbuda",value:"AG"},{label:"Australia",value:"AU"},{label:"Austria",value:"AT"},{label:"Azerbaijan",value:"AZ"},{label:"Burundi",value:"BI"},{label:"Belgium",value:"BE"},{label:"Benin",value:"BJ"},{label:"Burkina Faso",value:"BF"},{label:"Bangladesh",value:"BD"},{label:"Bulgaria",value:"BG"},{label:"Bahrain",value:"BH"},{label:"Bahamas",value:"BS"},{label:"Bosnia and Herzegovina",value:"BA"},{label:"Belarus",value:"BY"},{label:"Belize",value:"BZ"},{label:"Bermuda",value:"BM"},{label:"Bolivia",value:"BO"},{label:"Brazil",value:"BR"},{label:"Barbados",value:"BB"},{label:"Brunei",value:"BN"},{label:"Bhutan",value:"BT"},{label:"Botswana",value:"BW"},{label:"Central African Republic",value:"CF"},{label:"Canada",value:"CA"},{label:"Switzerland",value:"CH"},{label:"Chile",value:"CL"},{label:"China",value:"CN"},{label:"Côte d'Ivoire",value:"CI"},{label:"Cameroon",value:"CM"},{label:"DR Congo",value:"CD"},{label:"Congo",value:"CG"},{label:"Cook Islands",value:"CK"},{label:"Colombia",value:"CO"},{label:"Comoros",value:"KM"},{label:"Cabo Verde",value:"CV"},{label:"Costa Rica",value:"CR"},{label:"Cuba",value:"CU"},{label:"Curaçao",value:"CW"},{label:"Cayman Islands",value:"KY"},{label:"Cyprus",value:"CY"},{label:"Czechia",value:"CZ"},{label:"Germany",value:"DE"},{label:"Djibouti",value:"DJ"},{label:"Dominica",value:"DM"},{label:"Denmark",value:"DK"},{label:"Dominican Republic",value:"DO"},{label:"Algeria",value:"DZ"},{label:"Ecuador",value:"EC"},{label:"Egypt",value:"EG"},{label:"Eritrea",value:"ER"},{label:"Spain",value:"ES"},{label:"Estonia",value:"EE"},{label:"Ethiopia",value:"ET"},{label:"Finland",value:"FI"},{label:"Fiji",value:"FJ"},{label:"Falkland Islands",value:"FK"},{label:"France",value:"FR"},{label:"Faroe Islands",value:"FO"},{label:"Micronesia",value:"FM"},{label:"Gabon",value:"GA"},{label:"United Kingdom",value:"GB"},{label:"Georgia",value:"GE"},{label:"Ghana",value:"GH"},{label:"Gibraltar",value:"GI"},{label:"Guinea",value:"GN"},{label:"Guadeloupe",value:"GP"},{label:"Gambia",value:"GM"},{label:"Guinea-Bissau",value:"GW"},{label:"Equatorial Guinea",value:"GQ"},{label:"Greece",value:"GR"},{label:"Grenada",value:"GD"},{label:"Greenland",value:"GL"},{label:"Guatemala",value:"GT"},{label:"Guyana",value:"GY"},{label:"Hong Kong",value:"HK"},{label:"Honduras",value:"HN"},{label:"Croatia",value:"HR"},{label:"Haiti",value:"HT"},{label:"Hungary",value:"HU"},{label:"Indonesia",value:"ID"},{label:"India",value:"IN"},{label:"Ireland",value:"IE"},{label:"Iran",value:"IR"},{label:"Iraq",value:"IQ"},{label:"Iceland",value:"IS"},{label:"Israel",value:"IL"},{label:"Italy",value:"IT"},{label:"Jamaica",value:"JM"},{label:"Jordan",value:"JO"},{label:"Japan",value:"JP"},{label:"Kazakhstan",value:"KZ"},{label:"Kenya",value:"KE"},{label:"Kyrgyzstan",value:"KG"},{label:"Cambodia",value:"KH"},{label:"Kiribati",value:"KI"},{label:"Saint Kitts and Nevis",value:"KN"},{label:"South Korea",value:"KR"},{label:"Kuwait",value:"KW"},{label:"Laos",value:"LA"},{label:"Lebanon",value:"LB"},{label:"Liberia",value:"LR"},{label:"Libya",value:"LY"},{label:"Saint Lucia",value:"LC"},{label:"Liechtenstein",value:"LI"},{label:"Sri Lanka",value:"LK"},{label:"Lesotho",value:"LS"},{label:"Lithuania",value:"LT"},{label:"Luxembourg",value:"LU"},{label:"Latvia",value:"LV"},{label:"Macao",value:"MO"},{label:"Morocco",value:"MA"},{label:"Monaco",value:"MC"},{label:"Moldova",value:"MD"},{label:"Madagascar",value:"MG"},{label:"Maldives",value:"MV"},{label:"Mexico",value:"MX"},{label:"Marshall Islands",value:"MH"},{label:"North Macedonia",value:"MK"},{label:"Mali",value:"ML"},{label:"Malta",value:"MT"},{label:"Myanmar",value:"MM"},{label:"Montenegro",value:"ME"},{label:"Mongolia",value:"MN"},{label:"Mozambique",value:"MZ"},{label:"Mauritania",value:"MR"},{label:"Martinique",value:"MQ"},{label:"Mauritius",value:"MU"},{label:"Malawi",value:"MW"},{label:"Malaysia",value:"MY"},{label:"Namibia",value:"NA"},{label:"New Caledonia",value:"NC"},{label:"Niger",value:"NE"},{label:"Nigeria",value:"NG"},{label:"Nicaragua",value:"NI"},{label:"Niue",value:"NU"},{label:"Netherlands",value:"NL"},{label:"Norway",value:"NO"},{label:"Nepal",value:"NP"},{label:"Nauru",value:"NR"},{label:"New Zealand",value:"NZ"},{label:"Oman",value:"OM"},{label:"Pakistan",value:"PK"},{label:"Panama",value:"PA"},{label:"Peru",value:"PE"},{label:"Philippines",value:"PH"},{label:"Palau",value:"PW"},{label:"Papua New Guinea",value:"PG"},{label:"Poland",value:"PL"},{label:"Puerto Rico",value:"PR"},{label:"North Korea",value:"KP"},{label:"Portugal",value:"PT"},{label:"Paraguay",value:"PY"},{label:"Palestine",value:"PS"},{label:"French Polynesia",value:"PF"},{label:"Qatar",value:"QA"},{label:"Romania",value:"RO"},{label:"Russian Federation",value:"RU"},{label:"Rwanda",value:"RW"},{label:"Saudi Arabia",value:"SA"},{label:"Sudan",value:"SD"},{label:"Senegal",value:"SN"},{label:"Singapore",value:"SG"},{label:"Solomon Islands",value:"SB"},{label:"Sierra Leone",value:"SL"},{label:"El Salvador",value:"SV"},{label:"San Marino",value:"SM"},{label:"Somalia",value:"SO"},{label:"Serbia",value:"RS"},{label:"South Sudan",value:"SS"},{label:"São Tomé and Príncipe",value:"ST"},{label:"Suriname",value:"SR"},{label:"Slovakia",value:"SK"},{label:"Slovenia",value:"SI"},{label:"Sweden",value:"SE"},{label:"Eswatini",value:"SZ"},{label:"Seychelles",value:"SC"},{label:"Syria",value:"SY"},{label:"Chad",value:"TD"},{label:"Togo",value:"TG"},{label:"Thailand",value:"TH"},{label:"Tajikistan",value:"TJ"},{label:"Turkmenistan",value:"TM"},{label:"Timor-Leste",value:"TL"},{label:"Tonga",value:"TO"},{label:"Trinidad and Tobago",value:"TT"},{label:"Tunisia",value:"TN"},{label:"Turkey",value:"TR"},{label:"Tuvalu",value:"TV"},{label:"Taiwan",value:"TW"},{label:"Tanzania",value:"TZ"},{label:"Uganda",value:"UG"},{label:"Ukraine",value:"UA"},{label:"Uruguay",value:"UY"},{label:"United States",value:"US"},{label:"Uzbekistan",value:"UZ"},{label:"Saint Vincent and the Grenadines",value:"VC"},{label:"Venezuela",value:"VE"},{label:"Vietnam",value:"VN"},{label:"Vanuatu",value:"VU"},{label:"Samoa",value:"WS"},{label:"Yemen",value:"YE"},{label:"South Africa",value:"ZA"},{label:"Zambia",value:"ZM"},{label:"Zimbabwe",value:"ZW"}];async function Zp(){const t=vi();if(!t)throw new Error("No token was provided");const e={region:await bn(),page:1,include_count:"false"};return await ti(`/providers/?api-token=${t}&`+fn(e))}function Yp(t){const e=t-1;return e*e*e+1}function Jp(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=I=>Math.sqrt(I)*120,easing:l=Yp}=a,c=getComputedStyle(t),s=c.transform==="none"?"":c.transform,[d,p]=c.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,p/=t.clientHeight;var u=Qp(t),f=t.clientWidth/i.width/u,h=t.clientHeight/i.height/u,m=e.left+e.width*d,b=e.top+e.height*p,y=i.left+i.width*d,g=i.top+i.height*p,S=(m-y)*f,x=(b-g)*h,_=e.width/i.width,L=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(S*S+x*x)):n,easing:l,css:(I,j)=>{var B=j*S,M=j*x,q=I+j*_,T=I+j*L;return`transform: ${s} translate(${B}px, ${M}px) scale(${q}, ${T});`}}}function Qp(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var Xp=Je('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function $p(t){var e=Xp();w(t,e)}var eu=Je('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function tu(t){var e=eu();w(t,e)}var iu=C('<div class="icon svelte-dfwzqz"><!></div>'),au=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),ru=C('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function nu(t,e){re(e,!0);let i=R(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=R(e,"selected",23,()=>[]),r=R(e,"placeholder",19,()=>`${le("Search")}...`),n=R(e,"onchange",3,()=>null),l=G("");const c=U(s);function s(){var m;return(m=i())!=null&&m.length?o(l)?i().filter(({label:b})=>b.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(m){const b=a().find(y=>y===m);a(b?a().filter(y=>y!==m):[...a(),m]),n()(a())}var p=ru(),u=J(p),f=k(u),h=z(u,2);Ie(h,29,()=>o(c)||[],({label:m,value:b})=>b,(m,b)=>{let y=()=>o(b).label,g=()=>o(b).value;const S=U(()=>!!a().find(M=>M===g()));var x=au(),_=k(x);let L;_.__click=()=>d(g());var I=k(_),j=z(I),B=k(j);Sa(B,()=>o(S),M=>{var q=iu(),T=k(q);{var E=F=>{$p(F)},P=F=>{tu(F)};H(T,F=>{o(S)?F(E):F(P,!1)})}De(3,q,()=>aa,()=>({start:.25,duration:100})),w(M,q)}),V(()=>{L=xe(_,1,"option svelte-dfwzqz",null,L,{active:o(S)}),Z(I,`${y()??""} `)}),Vc(x,()=>Jp,()=>({duration:150})),w(m,x)}),V(()=>ie(f,"placeholder",r())),Ta(f,()=>o(l),m=>D(l,m)),w(t,p),ne()}ve(["click"]);var lu=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),ou=C("<div><!> <!></div>");function Ho(t,e){re(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),c=G(0);function s(b){const y=b.target;y&&y.closest(".dropdown")!==o(a)&&D(i,!1)}function d(b){D(i,!o(i)),o(i)&&(D(c,0),D(l,0),p(b.target))}async function p(b){if(await _a(),!o(r))return;const y=16,g=200,S=window.innerHeight,x=window.innerWidth,{top:_}=o(r).getBoundingClientRect(),{left:L}=b.getBoundingClientRect();D(n,L<window.innerWidth/2?"left":"right",!0),D(l,Math.max(Math.min(window.innerHeight-_-y,S*.6),g),!0),await _a();const{left:I,right:j}=o(r).getBoundingClientRect(),B=x-j;I-y<0?D(c,B):B-y<0&&D(c,B-y)}var u=ou();ke("click",Me,s);var f=k(u);Ne(f,()=>e.button,()=>({toggle:d}));var h=z(f,2);{var m=b=>{var y=lu();let g;var S=k(y);Ne(S,()=>e.content),Qe(y,x=>D(r,x),()=>o(r)),V(()=>g=Fe(y,"",g,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(c)?`${o(c)}px`:null})),De(3,y,()=>aa,()=>({start:.85,duration:100})),w(b,y)};H(h,b=>{o(i)&&b(m)})}Qe(u,b=>D(a,b),()=>o(a)),V(()=>xe(u,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),w(t,u),ne()}var su=C('<span class="label svelte-1mfj6k7"> </span>'),cu=C('<div class="active-line svelte-1mfj6k7"></div>'),du=C('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function pu(t,e){re(e,!0);const i=R(e,"range",19,()=>[0,100]),a=R(e,"value",19,i),r=R(e,"label",3,""),n=R(e,"valueAppend",3,""),l=R(e,"formatFunction",3,N=>N.toString()),c=R(e,"onchange",3,()=>null);let s=i(),d=U(()=>ua(s,2)),p=G(Ae(o(d)[0])),u=G(Ae(o(d)[1]));const f=U(()=>o(p)!==i()[0]||o(u)!==i()[1]),h=U(()=>100/(i()[1]-i()[0])*(o(p)-i()[0])),m=U(()=>100+100/(i()[1]-i()[0])*(o(u)-i()[1])-o(h)),b=U(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(p)-o(u))<5);Ge(()=>{y(a())}),Ge(()=>{D(u,Math.max(o(u),o(p)+1),!0),D(u,Math.min(o(u),i()[1]),!0),D(p,Math.min(o(p),o(u)-1),!0),D(p,Math.max(o(p),i()[0]),!0)});function y(N){(O=>{var K=ua(O,2);D(p,K[0],!0),D(u,K[1],!0)})(N)}function g(){requestAnimationFrame(()=>c()([o(p),o(u)]))}var S=du(),x=k(S);{var _=N=>{var O=su(),K=k(O);V((Y,Q)=>Z(K,`${r()??""}: ${Y??""}—${Q??""} ${n()??""}`),[()=>l()(o(p)),()=>l()(o(u))]),w(N,O)};H(x,N=>{r()&&N(_)})}var L=z(x,2);let I;var j=k(L);j.__mouseup=g,j.__touchend=g,j.__input=function(...N){};let B;var M=z(j,2);M.__mouseup=g,M.__touchend=g,M.__input=function(...N){};let q;var T=z(M,2),E=k(T),P=z(T,2),F=k(P),W=z(P,2);{var $=N=>{var O=cu();let K;V(()=>K=Fe(O,"",K,{left:o(h)+"%","--width":o(m)+"%"})),w(N,O)};H(W,N=>{o(f)&&N($)})}V(()=>{I=xe(L,1,"range svelte-1mfj6k7",null,I,{halved:o(b)}),ie(j,"min",i()[0]),ie(j,"max",i()[1]),B=xe(j,1,"svelte-1mfj6k7",null,B,{active:o(f)}),ie(M,"min",i()[0]),ie(M,"max",i()[1]),q=xe(M,1,"svelte-1mfj6k7",null,q,{active:o(f)}),Z(E,o(p)),Z(F,o(u))}),Ta(j,()=>o(p),N=>D(p,N)),Ta(M,()=>o(u),N=>D(u,N)),w(t,S),ne()}ve(["mouseup","touchend","input"]);var uu=C(" <!>",1),vu=C('<p class="loading"> </p>'),fu=C('<p class="error"> </p>'),hu=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),gu=C('<div data-testid="filter-item"><!></div>');function mu(t,e){re(e,!0);let i=R(e,"filter",7),a=R(e,"onchange",3,()=>null),r=R(e,"data",7,null),n=R(e,"fetchData",3,null),l=R(e,"range",3,null),c=R(e,"valueAppend",3,"");const s=U(()=>{if(!i()[e.param])return!1;const{type:b,value:y}=i()[e.param];return!(b==="array"&&!y.length||b==="range"&&JSON.stringify(y)===JSON.stringify(l()))});let d=G(!!n());Ge(()=>{!r()&&n()&&p()});async function p(){try{D(d,!0),r(await n()())}catch{de(ce.ExploreFetchProvidersFailed)}finally{D(d,!1)}}function u(b,y){if(de(ce.ExploreSetFilter,null,{key:e.param,value:b,total_filter:i()}),!b){delete i()[e.param];return}i()[e.param]={type:y,value:b},a()()}var f=gu();let h;var m=k(f);Ho(m,{button:(g,S)=>{let x=()=>S==null?void 0:S().toggle;Ai(g,{variant:"border",size:"large",get active(){return o(s)},get onclick(){return x()},children:(_,L)=>{var I=uu(),j=J(I),B=z(j);St(B,{direction:"down"}),V(()=>Z(j,`${e.label??""} `)),w(_,I)},$$slots:{default:!0}})},content:g=>{var S=hu(),x=k(S);{var _=M=>{var q=vu(),T=k(q);V(E=>Z(T,`${E??""}...`),[()=>le("Loading")]),w(M,q)},L=M=>{var q=me(),T=J(q);{var E=P=>{var F=fu(),W=k(F);V($=>Z(W,$),[()=>le("An Error Occurred")]),w(P,F)};H(T,P=>{n()&&!r()&&P(E)},!0)}w(M,q)};H(x,M=>{o(d)?M(_):M(L,!1)})}var I=z(x,2);{var j=M=>{const q=U(()=>{var T;return(T=i()[e.param])==null?void 0:T.value});nu(M,{get options(){return r()},get selected(){return o(q)},onchange:T=>u(T,"array")})},B=M=>{var q=me(),T=J(q);{var E=P=>{const F=U(()=>{var W;return(W=i()[e.param])==null?void 0:W.value});pu(P,{get range(){return l()},get value(){return o(F)},get label(){return e.label},get valueAppend(){return c()},onchange:W=>u(W,"range")})};H(T,P=>{l()&&P(E)},!0)}w(M,q)};H(I,M=>{r()?M(j):M(B,!1)})}w(g,S)},$$slots:{button:!0,content:!0}}),V(()=>h=xe(f,1,"filter-item svelte-er0ukh",null,h,{active:o(s)})),w(t,f),ne()}var yu=C(" <!>",1),bu=C("<button> </button>"),wu=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function xu(t,e){re(e,!0);const i=R(e,"filter",7),a=R(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:nr.Popular},{label:"New",value:nr.New},{label:"Top Rated",value:nr.Best}],l=U(()=>{var s;return((s=n.find(({value:d})=>{var p;return d===((p=i()[r])==null?void 0:p.value)}))==null?void 0:s.label)||"Sort By"});function c(s){s?i()[r]={type:"string",value:s}:delete i()[r],a()()}Ho(t,{button:(p,u)=>{let f=()=>u==null?void 0:u().toggle;Ai(p,{variant:"link",get onclick(){return f()},children:(h,m)=>{var b=yu(),y=J(b),g=z(y);St(g,{direction:"down"}),V(S=>Z(y,`${S??""} `),[()=>le(o(l))]),w(h,b)},$$slots:{default:!0}})},content:p=>{var u=wu();Ie(u,21,()=>n,je,(f,h,m,b)=>{let y=()=>o(h).label,g=()=>o(h).value;const S=U(()=>{var I;return g()===((I=i()[r])==null?void 0:I.value)});var x=bu();let _;x.__click=()=>c(g());var L=k(x);V(I=>{_=xe(x,1,"option svelte-1ibt2k4",null,_,{active:o(S)}),Z(L,I)},[()=>le(y())]),w(f,x)}),w(p,u)},$$slots:{button:!0,content:!0}}),ne()}ve(["click"]);var _u=Je('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function ku(t){var e=_u();w(t,e)}var Su=C("<div><!></div>"),Tu=C("<!> <!>",1),Eu=C('<div class="sorting"><!></div>'),Pu=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function Cu(t,e){re(e,!0);const i=R(e,"onchange",3,()=>null),a=R(e,"limit",3,!0),r=R(e,"showSorting",3,!0),n=3,l=[{label:le("Services"),param:"providers",fetchData:async()=>(await Zp()).map(y=>({label:y.name,value:y.slug}))},{label:le("Genres"),param:"genres",data:mn.filter(y=>parseInt(y.slug)<900).map(y=>({label:y.name,value:y.slug}))},{label:le("IMDb"),param:"imdb_score",range:[0,10]},{label:le("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:le("Runtime"),param:"length",range:[0,180],valueAppend:le("Minutes")},{label:le("Countries"),param:"country_codes",data:Kp}];let c=G(Ae(a()));var s=Pu();let d;var p=k(s);Ie(p,21,()=>o(c)?l.slice(0,n):l,je,(y,g)=>{var S=Su(),x=k(S);mu(x,ln({get filter(){return e.filter},get onchange(){return i()}},()=>o(g))),De(3,S,()=>aa,()=>({start:.75,duration:100})),w(y,S)});var u=z(p,2),f=k(u);{var h=y=>{Ai(y,{variant:"link",onclick:()=>D(c,!o(c)),children:(g,S)=>{var x=Tu(),_=J(x);ku(_);var L=z(_),I=z(L);{let j=U(()=>o(c)?"down":"up");St(I,{get direction(){return o(j)}})}V(j=>Z(L,` ${j??""} `),[()=>le("All Filters")]),w(g,x)},$$slots:{default:!0}})};H(f,y=>{a()&&y(h)})}var m=z(f,2);{var b=y=>{var g=Eu(),S=k(g);xu(S,{get filter(){return e.filter},get onchange(){return i()}}),De(3,g,()=>za,()=>({x:5,duration:100})),w(y,g)};H(m,y=>{r()&&y(b)})}V(()=>d=xe(s,1,"filter svelte-11dg01g",null,d,{limit:a()})),w(t,s),ne()}var zu=C('<p class="description svelte-l2apr8"> </p>'),Iu=C('<div class="filter svelte-l2apr8"><!></div>'),ju=C('<div class="explore playpilot-styled-scrollbar svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <!></div></div> <!> <!> <!></div>');function Au(t,e){re(e,!0);let i=R(e,"navigate",3,()=>null),a=R(e,"searchQuery",15,""),r=R(e,"filter",27,()=>Ae({})),n=null,l=G(null),c=G(Ae(window.innerWidth));Ge(()=>{var _;D(l,((_=n==null?void 0:n.closest(En))==null?void 0:_.style.height)||null,!0)}),pt(async()=>{var _;de(ce.ExplorePageView),(_=window.PlayPilotLinkInjections.ads)!=null&&_.length||(window.PlayPilotLinkInjections.ads=await Io())});var s=ju();let d;var p=k(s),u=k(p),f=z(k(u),2),h=k(f);Bt(f,_=>Oe==null?void 0:Oe(_));var m=z(f,2);{var b=_=>{var L=zu(),I=k(L);V(j=>Z(I,j),[()=>le("Streaming Guide Description")]),w(_,L)};H(m,_=>{Li()||_(b)})}var y=z(p,2);Gp(y,{oninput:_=>a(_)});var g=z(y,2);{var S=_=>{var L=Iu(),I=k(L);{let j=U(()=>o(c)<500),B=U(()=>!a());Cu(I,{get filter(){return r()},get limit(){return o(j)},get showSorting(){return o(B)},onchange:()=>i()("results")})}w(_,L)};H(g,_=>{Li()&&_(S)})}var x=z(g,2);Ne(x,()=>e.children),Qe(s,_=>n=_,()=>n),V(_=>{d=Fe(s,"",d,{height:o(l),"--playpilot-explore-width":`${o(c)??""}px`}),Z(h,_)},[()=>le("Streaming Guide")]),_t(s,"clientWidth",_=>D(c,_)),w(t,s),ne()}function Vo(t,e){re(e,!0);const i=[{key:"results",component:Hp}];Li()&&i.unshift({key:"home",component:fp});let a=G(Ae(i[0])),r=G(""),n=G(Ae({}));const l=U(()=>o(a).component);Ge(()=>{o(r)&&D(a,i.find(s=>s.key==="results"),!0)});function c(s){D(a,i.find(d=>d.key===s)||i[0],!0),de(ce.ExploreNavigate,null,{route:o(a).key})}Au(t,{navigate:c,get searchQuery(){return o(r)},set searchQuery(s){D(r,s,!0)},get filter(){return o(n)},set filter(s){D(n,s,!0)},children:(s,d)=>{var p=me(),u=J(p);Yr(u,()=>o(l),(f,h)=>{h(f,{get searchQuery(){return o(r)},get filter(){return o(n)},navigate:c})}),w(s,p)},$$slots:{default:!0}}),ne()}const En="[data-playpilot-explore]",Lu="[data-playpilot-pre-consent-explore]",Uo="playpilot-explore-custom-style";let pr=null;function ur(){var e;const t=document.querySelector(En);t&&(vr(),(e=document.querySelector(Lu))==null||e.remove(),t.innerHTML="",pr=Nt(Vo,{target:t}),Du())}function vr(){var t;pr&&($i(pr),pr=null,(t=document.querySelector("#"+Uo))==null||t.remove())}function Mu(){var s;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:r}=t;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),c=l.nodeName==="A"?l:l.querySelector("a");return c.classList.remove("active"),c.innerText=i||"Streaming Guide",c.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function Du(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Uo,document.body.appendChild(e)}function Li(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Pn(t,e){re(e,!0);const i=R(e,"size",3,"32px"),a=R(e,"onclick",3,()=>null),r=uo(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=me(),l=J(n);Jl(l,()=>e.href?"a":"button",!1,(c,s)=>{ro(c,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[ia]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=me(),p=J(d);Ne(p,()=>e.children??vt),w(s,d)}),w(t,n),ne()}var qu=C("<div></div>");function Ou(t,e){re(e,!0);let i=R(e,"threshold",3,100),a=R(e,"isDragging",15,!1),r=R(e,"passedThreshold",15,!1),n=R(e,"onpassed",3,()=>null),l=G(0),c=G(0),s=G(null),d=G(!1);const p=U(()=>Math.max(o(c)-o(l),0));Ge(()=>{r(o(p)>i())});function u(g){if(g){a(!0),D(d,!0),D(l,g.touches[0].pageY,!0);for(const S of e.targets)S.style.transitionDuration="0ms"}}function f(g){if(g&&a()){g.preventDefault(),D(c,g.touches[0].pageY,!0),o(s).style.transform=`translateY(${o(p)}px)`;for(const S of e.targets)S.style.top=`${o(p)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(s).removeAttribute("style");for(const g of e.targets)g.style.removeProperty("transition"),requestAnimationFrame(()=>g.style.top="0px")}D(l,0),D(c,0)}}var m={start:u,move:f,end:h},b=qu();ke("touchmove",Me,f,void 0,!0),ke("touchend",Me,h);let y;return b.__touchstart=u,Qe(b,g=>D(s,g),()=>o(s)),V(()=>y=xe(b,1,"handle svelte-1xqgdsn",null,y,{dragging:a(),dragged:o(d)})),w(t,b),ne(m)}ve(["touchstart"]);var Ru=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Nu=["difference","intersection","symmetricDifference","union"],Wo=!1;const Sr=class Sr extends Set{constructor(i){super();ue(this,pa);ue(this,da,new Map);ue(this,Et,G(0));ue(this,xi,G(0));ue(this,kr,$t||-1);if(i){for(var a of i)super.add(a);A(this,xi).v=super.size}Wo||ze(this,pa,ps).call(this)}has(i){var a=super.has(i),r=A(this,da),n=r.get(i);if(n===void 0){if(!a)return o(A(this,Et)),!1;n=ze(this,pa,ds).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),D(A(this,xi),super.size),ci(A(this,Et))),this}delete(i){var a=super.delete(i),r=A(this,da),n=r.get(i);return n!==void 0&&(r.delete(i),D(n,!1)),a&&(D(A(this,xi),super.size),ci(A(this,Et))),a}clear(){if(super.size!==0){super.clear();var i=A(this,da);for(var a of i.values())D(a,!1);i.clear(),D(A(this,xi),0),ci(A(this,Et))}}keys(){return this.values()}values(){return o(A(this,Et)),super.values()}entries(){return o(A(this,Et)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(A(this,xi))}};da=new WeakMap,Et=new WeakMap,xi=new WeakMap,kr=new WeakMap,pa=new WeakSet,ds=function(i){return $t===A(this,kr)?G(i):Mt(i)},ps=function(){Wo=!0;var i=Sr.prototype,a=Set.prototype;for(const r of Ru)i[r]=function(...n){return o(A(this,Et)),a[r].apply(this,n)};for(const r of Nu)i[r]=function(...n){o(A(this,Et));var l=a[r].apply(this,n);return new Sr(l)}};let fr=Sr;class Bu{constructor(e,i){ue(this,qa);ue(this,Oa);se(this,qa,e),se(this,Oa,fl(i))}get current(){return A(this,Oa).call(this),A(this,qa).call(this)}}qa=new WeakMap,Oa=new WeakMap;const Fu=/\(.+\)/,Hu=new Set(["all","print","screen","and","or","not","only"]);class Vu extends Bu{constructor(e,i){let a=Fu.test(e)||e.split(/[\s,]+/).some(n=>Hu.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>Cc(r,"change",n))}}const Cn=new Vu("(prefers-reduced-motion: reduce)");function zn(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(n){if(n.key!=="Tab")return;const l=document.activeElement;if(!l)return;const c=e();if(!c.length)return;const[s]=c,d=c[c.length-1];n.shiftKey&&l===s&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(s.focus(),n.preventDefault())}const a=document.activeElement,[r]=e();return a!=null&&a.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function Uu(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Wu=C("<div><!></div>"),Gu=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Ku=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Zu=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Yu=C("<div><!></div>"),Ju=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Qu=C('<div data-testid="modal"><!> <!> <!> <!></div>');function hr(t,e){re(e,!0);const i=O=>{var K=Wu(),Y=k(K);Pn(Y,{onclick:_,"aria-label":"Close",children:(Q,X)=>{xn(Q,{})},$$slots:{default:!0}}),Qe(K,Q=>D(m,Q),()=>o(m)),V(()=>xe(K,1,`close ${l()??""}`,"svelte-1rbidhv")),De(7,K,()=>x),w(O,K)},a=R(e,"tall",3,!1),r=R(e,"wide",3,!1),n=R(e,"blur",3,!1),l=R(e,"closeButtonStyle",3,"shadow"),c=R(e,"initialScrollPosition",3,0),s=R(e,"onscroll",3,()=>null),d=R(e,"onclose",3,()=>null),p="#playpilot";let u=G(0),f=G(null),h=G(null),m=G(null),b=G(0),y=G(!1);const g=U(()=>o(u)<Ii);Ge(()=>{var O;o(u)&&D(b,((O=o(h))==null?void 0:O.offsetTop)||0,!0)}),Ge(()=>{setTimeout(()=>{var O;return D(b,((O=o(h))==null?void 0:O.offsetTop)||0,!0)})}),Dr("scope","modal"),pt(()=>{const O=Uu();return O.classList.add("playpilot-modal-open"),D(y,!!Xo()),o(y)||window.history.pushState({modal:!0},"",p),requestAnimationFrame(S),()=>{var K;O.classList.remove("playpilot-modal-open"),!Xo()&&((K=history.state)!=null&&K.modal)&&history.back()}});function S(){const O=window.innerWidth>Ii?o(f):o(h);O==null||O.scrollTo(0,c())}function x(O){return Cn.current?ii(O,{duration:0}):o(g)?za(O,{duration:250,y:window.innerHeight,opacity:1}):aa(O,{duration:150,start:.85})}function _(){d()(),Mn()}function L(O){O.target===o(f)&&_()}var I=Qu();ke("keydown",Me,({key:O})=>{O==="Escape"&&_()}),ke("hashchange",Me,_);let j;I.__click=L;let B;var M=k(I);{var q=O=>{var K=Gu(),Y=k(K);Ne(Y,()=>e.prepend),De(7,K,()=>x),w(O,K)};H(M,O=>{e.prepend&&O(q)})}var T=z(M,2);{var E=O=>{var K=Ku(),Y=k(K);Ne(Y,()=>e.bubble),De(7,K,()=>x),w(O,K)};H(T,O=>{e.bubble&&O(E)})}var P=z(T,2);{var F=O=>{var K=Zu(),Y=k(K);{var Q=X=>{{let ae=U(()=>[o(h),o(m)]);Ou(X,{get targets(){return o(ae)},onpassed:_})}};H(Y,X=>{o(h)&&o(m)&&X(Q)})}De(7,K,()=>x),w(O,K)};H(P,O=>{o(g)&&O(F)})}var W=z(P,2);{var $=O=>{var K=me(),Y=J(K);Ne(Y,()=>e.dialog),w(O,K)},N=O=>{var K=Ju(),Y=J(K),Q=k(Y);{var X=he=>{var Ce=Yu(),Ve=k(Ce);Pn(Ve,{onclick:()=>ah(),"aria-label":"Back",children:(Le,pe)=>{St(Le,{direction:"left"})},$$slots:{default:!0}}),V(()=>xe(Ce,1,`close back ${l()??""}`,"svelte-1rbidhv")),w(he,Ce)};H(Q,he=>{o(y)&&he(X)})}var ae=z(Q,2);Ne(ae,()=>e.children??vt);var we=z(ae,2);{var Se=he=>{i(he)};H(we,he=>{o(g)||he(Se)})}Qe(Y,he=>D(h,he),()=>o(h));var te=z(Y,2);{var fe=he=>{i(he)};H(te,he=>{o(g)&&he(fe)})}ke("scroll",Y,function(...he){var Ce;(Ce=s())==null||Ce.apply(this,he)}),De(7,Y,()=>x),w(O,K)};H(W,O=>{e.dialog?O($):O(N,!1)})}Qe(I,O=>D(f,O),()=>o(f)),Bt(I,O=>zn==null?void 0:zn(O)),V(()=>{j=xe(I,1,"modal svelte-1rbidhv",null,j,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),B=Fe(I,"",B,{"--dialog-offset":`${o(b)??""}px`})}),rn("innerWidth",O=>D(u,O,!0)),De(5,I,()=>ii,()=>({duration:150})),De(6,I,()=>ii,()=>({duration:150,delay:100})),w(t,I),ne()}ve(["click"]);var Xu=C('<div class="genre svelte-1mphbln"> </div>'),$u=C('<button class="genre expand svelte-1mphbln"> </button>'),ev=C("<!> <!>",1);function tv(t,e){re(e,!0);let i=G(!1);const a=U(()=>o(i)?e.genres:[e.genres[0]]);var r=ev(),n=J(r);Ie(n,17,()=>o(a),je,(s,d)=>{const p=U(()=>{var m;return(m=mn.find(b=>b.slug===o(d)))==null?void 0:m.name});var u=me(),f=J(u);{var h=m=>{var b=Xu(),y=k(b);Qa(b,()=>zo()?Ro(Pa.GenreInterest,{genre:o(p)}):null),V(g=>Z(y,g),[()=>le(o(p))]),w(m,b)};H(f,m=>{o(p)&&m(h)})}w(s,u)});var l=z(n,2);{var c=s=>{var d=$u();d.__click=()=>D(i,!0);var p=k(d);V(()=>Z(p,`+${e.genres.length-1}`)),w(s,d)};H(l,s=>{!o(i)&&e.genres.length>1&&s(c)})}w(t,r),ne()}ve(["click"]);var iv=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),av=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function In(t,e){const i=R(e,"small",3,!1);let a=G(!1);function r(p){p.preventDefault(),p.stopPropagation(),D(a,!o(a))}var n=av();n.__click=r;var l=k(n);let c;var s=z(l,2);{var d=p=>{var u=iv(),f=k(u);V(()=>Z(f,e.disclaimer)),De(3,u,()=>ii,()=>({duration:50})),w(p,u)};H(s,p=>{o(a)&&p(d)})}V(()=>c=xe(l,1,"disclaimer svelte-1ldthr7",null,c,{small:i()})),w(t,n)}ve(["click"]);var rv=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),nv=C('<span class="cta svelte-13ka2ap"> </span>'),lv=C('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Go(t,e){re(e,!0);const i=R(e,"disclaimer",3,""),a=R(e,"hideCategory",3,!1),r=R(e,"onclick",3,()=>null),n=U(()=>e.playlink.name),l=U(()=>e.playlink.url),c=U(()=>e.playlink.logo_url),s=U(()=>e.playlink.highlighted),d=U(()=>e.playlink.cta_text),p=U(()=>e.playlink.action_text),u=U(()=>e.playlink.pixels),f=U(()=>e.playlink.extra_info.category),h=U(()=>zo()&&!o(s)),m={AVOD:le("Stream"),SVOD:le("Stream"),BUY:le("Buy"),RENT:le("Rent"),TVOD:le("Rent Or Buy")};let b=G(0);var y=me(),g=J(y);Jl(g,()=>{var S,x;return!((x=(S=window.PlayPilotLinkInjections)==null?void 0:S.config)!=null&&x.require_affiliate_consent)||kt("affiliate")?"a":"span"},!1,(S,x)=>{Qa(S,()=>o(h)?Ro(Pa.ProviderInterest,{provider:e.playlink.slug}):null),Qa(S,()=>o(h)?gp(Pa.ProviderClick,{provider:e.playlink.slug}):null),ro(S,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[ta]:{highlighted:o(s),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var _=lv(),L=J(_);let I;var j=k(L),B=z(j,2),M=k(B),q=z(B,2);{var T=Y=>{var Q=rv(),X=k(Q);V(ae=>Z(X,ae),[()=>m[o(f)]||le("Stream")]),w(Y,Q)};H(q,Y=>{a()||Y(T)})}var E=z(q,2);{var P=Y=>{var Q=nv(),X=k(Q);V(()=>Z(X,o(d))),w(Y,Q)};H(E,Y=>{o(d)&&Y(P)})}var F=z(E,2),W=k(F),$=z(F,2);{var N=Y=>{In(Y,{get disclaimer(){return i()},small:!0})};H($,Y=>{i()&&Y(N)})}var O=z(L,2);{var K=Y=>{Tn(Y,{get pixels(){return o(u)}})};H(O,Y=>{var Q;(Q=o(u))!=null&&Q.length&&Y(K)})}V((Y,Q)=>{I=Fe(L,"",I,{"--action-width":o(b)?`${o(b)}px`:null}),ie(j,"src",Y),Z(M,o(n)),Z(W,Q)},[()=>lr(o(c)),()=>o(p)||le("Watch")]),_t(F,"clientWidth",Y=>D(b,Y)),w(x,_)}),w(t,y),ne()}var ov=C('<div class="disclaimer svelte-1fykz2q" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1fykz2q">PlayPilot.com</a></div>'),sv=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),cv=C('<div class="heading category svelte-1fykz2q"> </div>'),dv=C("<!> <!>",1),pv=C("<!> <div></div>",1),uv=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function vv(t,e){var _,L;re(e,!0);const i=Mr("scope")==="modal",a=Ca("card"),r=!!((L=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&L.categorize_playlinks);let n=G(0);const l=U(()=>No(e.playlinks)),c=U(()=>u(e.playlinks)),s=U(()=>r?f(o(c)):[["",o(l)]]),d=U(()=>o(n)<500||!!a||o(l).length===1);function p(I){de(i?ce.TitleModalPlaylinkClick:ce.TitlePopoverPlaylinkClick,e.title,{playlink:I})}function u(I){const j={};for(const B of I){const{category:M}=B.extra_info;M in j||(j[M]=[]),j[M].push(B)}return j}function f(I){const j=["AVOD","SVOD","RENT","BUY"],B=[];for(const q of j)I[q]&&B.push([q,I[q]]);const M=[];for(const q of Object.values(I))for(const T of q)j.includes(T.extra_info.category)||M.push(T);return[...B,["Other",M]]}var h=uv(),m=J(h),b=k(m);Bt(m,(I,j)=>Oe==null?void 0:Oe(I,j),()=>3);var y=z(m,2);{var g=I=>{var j=ov(),B=k(j);V(M=>Z(B,`${M??""} `),[()=>{var M,q;return((q=(M=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:M.config)==null?void 0:q.playlinks_disclaimer_text)||le("Commission Disclaimer")}]),w(I,j)},S=I=>{var j=sv(),B=k(j);V(M=>Z(B,M),[()=>le("Title Unavailable")]),w(I,j)};H(y,I=>{o(l).length?I(g):I(S,!1)})}var x=z(y,2);Ie(x,17,()=>o(s),je,(I,j,B,M)=>{var q=U(()=>ua(o(j),2));let T=()=>o(q)[0],E=()=>o(q)[1];var P=pv(),F=J(P);{var W=O=>{var K=cv(),Y=k(K);Bt(K,(Q,X)=>Oe==null?void 0:Oe(Q,X),()=>4),V(Q=>Z(Y,Q),[()=>le(`Category: ${T()}`)]),w(O,K)};H(F,O=>{T()&&E().length&&O(W)})}var $=z(F,2);let N;Ie($,21,E,je,(O,K,Y)=>{var Q=dv(),X=J(Q);Go(X,{get playlink(){return o(K)},onclick:()=>p(o(K).name)});var ae=z(X,2);{var we=Se=>{{let te=U(()=>zd(a)),fe=U(()=>a.disclaimer||"");Go(Se,{get playlink(){return o(te)},onclick:()=>de(ce.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(fe)}})}};H(ae,Se=>{a&&Y===0&&Se(we)})}w(O,Q)}),V(()=>{N=xe($,1,"playlinks svelte-1fykz2q",null,N,{list:o(d)}),ie($,"data-testid",`category-${T()??""}`)}),_t($,"clientWidth",O=>D(n,O)),w(I,P)}),V(I=>Z(b,I),[()=>le("Where To Stream Online")]),w(t,h),ne()}var fv=C('<button class="show-more svelte-7itcht">Show more</button>'),hv=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),gv=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function mv(t,e){re(e,!0);const i=R(e,"blurb",3,""),a=R(e,"limit",3,200),r=R(e,"onclick",3,()=>null);let n=G(!1);const l=U(()=>e.text.slice(0,a()));function c(){D(n,!0),r()()}var s=gv(),d=k(s),p=k(d),u=z(p);{var f=g=>{var S=ui("...");w(g,S)};H(u,g=>{!o(n)&&e.text.length>a()&&g(f)})}var h=z(u,2);{var m=g=>{var S=fv();S.__click=()=>c(),w(g,S)};H(h,g=>{!o(n)&&(e.text.length>a()||i())&&g(m)})}var b=z(d,2);{var y=g=>{var S=hv(),x=k(S);V(()=>Z(x,i())),w(g,S)};H(b,g=>{o(n)&&g(y)})}V(()=>Z(p,o(n)?e.text:o(l))),w(t,s),ne()}ve(["click"]);async function yv(t,{page:e=1}={}){const i={language:Ea(),region:await bn(),include_count:"false",participant_sid:t.sid,page:e};return(await ti(`/titles/browse?api-token=${vi()}&${fn(i)}`)).results}async function bv(t){return(await ti(`/participants/browse?api-token=${vi()}&title_sid=${t.sid}`)).results}var wv=C('<div class="character truncate svelte-zy7e3f"> </div>'),xv=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),_v=C('<div class="participant svelte-zy7e3f"></div>');function kv(t,e){re(e,!0);function i(l){const c=fi(pn(mo(dn()))),s={};for(const p of l){const u=ar(c,fi(p.name));s[p.sid]={participant:p,count:u}}return Object.values(s).sort((p,u)=>u.count-p.count).map(({participant:p})=>p)}function a(l,c){hi({event:l,type:"participant",data:c}),de(ce.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:c.name})}var r=me(),n=J(r);Ja(n,()=>bv(e.title),l=>{{let c=U(()=>le("Cast"));cr(l,{get heading(){return o(c)},children:(s,d)=>{var p=me(),u=J(p);Ie(u,16,()=>({length:5}),je,(f,h)=>{var m=_v();w(f,m)}),w(s,p)},$$slots:{default:!0}})}},(l,c)=>{var s=me(),d=J(s);{var p=u=>{{let f=U(()=>le("Cast"));cr(u,{get heading(){return o(f)},children:(h,m)=>{var b=me(),y=J(b);Ie(y,17,()=>i(o(c)).slice(0,15),je,(g,S)=>{var x=xv();x.__click=B=>a(B,o(S));var _=k(x),L=k(_),I=z(_,2);{var j=B=>{var M=wv(),q=k(M);V(()=>Z(q,o(S).character)),w(B,M)};H(I,B=>{o(S).character&&B(j)})}V(()=>Z(L,o(S).name)),w(g,x)}),w(h,b)},$$slots:{default:!0}})}};H(d,u=>{var f;(f=o(c))!=null&&f.length&&u(p)})}w(l,s)}),w(t,r),ne()}ve(["click"]);function Sv(t,e){re(e,!0);const i=jd(e.title);{let a=U(()=>le("Similar Titles"));Oo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>de(ce.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}ne()}function Tv(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var Ev=Je('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function Pv(t){var e=Ev();w(t,e)}var Cv=Je('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function zv(t){var e=Cv();w(t,e)}var Iv=Je('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function jv(t){var e=Iv();w(t,e)}var Av=Je('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Lv(t){var e=Av();w(t,e)}var Mv=C('<button class="svelte-827qd7"><!></button>'),Dv=C('<div class="content svelte-827qd7"><!></div>'),qv=C("<div><!> <!></div>");function Ov(t,e){const i=R(e,"label",3,""),a=R(e,"align",3,"right");let r=G(!1),n=G(null);function l(h){var b;h.currentTarget===((b=o(n))==null?void 0:b.querySelector("button"))&&h.stopPropagation(),D(r,!o(r))}var c=qv();ke("click",Me,()=>D(r,!1));var s=k(c);{var d=h=>{var m=me(),b=J(m);Ne(b,()=>e.button,()=>({toggle:l})),w(h,m)},p=h=>{var m=Mv();m.__click=l;var b=k(m);Lv(b),V(()=>{ie(m,"aria-label",i()),ie(m,"aria-expanded",o(r))}),w(h,m)};H(s,h=>{e.button?h(d):h(p,!1)})}var u=z(s,2);{var f=h=>{var m=Dv(),b=k(m);Ne(b,()=>e.children),De(1,m,()=>aa,()=>({duration:50,start:.85})),w(h,m)};H(u,h=>{o(r)&&h(f)})}Qe(c,h=>D(n,h),()=>o(n)),V(()=>xe(c,1,`context-menu ${a()??""}`,"svelte-827qd7")),w(t,c)}ve(["click"]);var Rv=C("<!> ",1),Nv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Bv(t,e){re(e,!0);let i=R(e,"url",7);const r=window.innerWidth<Ii&&typeof navigator.share<"u";pt(()=>{i(i()+"?utm_source=tpi")});function n(s,d){if(!r){d(s);return}de(ce.ShareTitle,null,{title:e.title,url:ji(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){de(ce.ShareTitle,null,{title:e.title,url:ji(),method:"copy"}),Tv(i())}function c(){de(ce.ShareTitle,null,{title:e.title,url:ji(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Ov(t,{button:(d,p)=>{let u=()=>p==null?void 0:p().toggle;Ai(d,{onclick:f=>n(f,u()),children:(f,h)=>{var m=Rv(),b=J(m);Pv(b);var y=z(b);V(g=>Z(y,` ${g??""}`),[()=>le("Share")]),w(f,m)},$$slots:{default:!0}})},children:(d,p)=>{var u=Nv(),f=J(u);f.__click=l;var h=k(f);zv(h);var m=z(h),b=z(f,2);b.__click=c;var y=k(b);jv(y);var g=z(y);V((S,x)=>{Z(m,` ${S??""}`),Z(g,` ${x??""}`)},[()=>le("Copy URL"),()=>le("Email")]),w(d,u)},$$slots:{button:!0,default:!0}}),ne()}ve(["click"]);var Fv=Je('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Hv(t){var e=Fv();w(t,e)}var Vv=C("<!> ",1);function Uv(t,e){re(e,!0);function i(){Bd(e.title),de(ce.TrailerClick,e.title)}Ai(t,{onclick:i,children:(a,r)=>{var n=Vv(),l=J(n);Hv(l);var c=z(l);V(s=>Z(c,` ${s??""}`),[()=>le("Watch Trailer")]),w(a,n)},$$slots:{default:!0}}),ne()}var Wv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Gv(t,e){const i=R(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=U(()=>Math.max(o(a),o(r)));var l=Wv(),c=k(l);kn(c,{get embeddable_url(){return i()},muted:!0,loop:!0}),V(()=>Fe(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),_t(l,"clientWidth",s=>D(a,s)),_t(l,"clientHeight",s=>D(r,s)),w(t,l)}var Kv=C("<div> </div>"),Zv=C('<img alt=""/>'),Yv=C('<div><div class="header svelte-16ajinh"><div><!></div> <div id="title"> </div> <div class="info svelte-16ajinh"><div class="imdb svelte-16ajinh"><!> </div> <!> <div> </div> <div class="capitalize svelte-16ajinh"> </div> <!></div> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main"><!> <!> <!> <!></div></div> <div><!></div>',1);function jn(t,e){var Le;re(e,!0);const i=R(e,"small",3,!1),a=R(e,"useVideoBackground",3,!0),r=!!((Le=window.PlayPilotLinkInjections)!=null&&Le.no_affiliate);Dr("title",e.title);const n=U(()=>(!i()||r)&&e.title.description);let l=G(!1),c=G(!1),s=G(!1),d=G(!1);Ge(()=>{a()&&e.title.embeddable_url&&Mo(_n(e.title.embeddable_url)).then(pe=>{D(d,pe,!0)})});var p=Yv(),u=J(p);let f;var h=k(u),m=k(h);let b;var y=k(m);or(y,{get title(){return e.title},onload:()=>D(l,!0),lazy:!1});var g=z(m,2);let S;var x=k(g);Bt(g,(pe,Be)=>Oe==null?void 0:Oe(pe,Be),()=>2);var _=z(g,2),L=k(_),I=k(L);Sn(I,{});var j=z(I),B=z(L,2);tv(B,{get genres(){return e.title.genres}});var M=z(B,2),q=k(M),T=z(M,2),E=k(T),P=z(T,2);{var F=pe=>{var Be=Kv(),at=k(Be);V(ni=>Z(at,`${e.title.length??""} ${ni??""}`),[()=>le("Minutes")]),w(pe,Be)};H(P,pe=>{!i()&&e.title.length&&pe(F)})}var W=z(_,2),$=k(W);{var N=pe=>{Uv(pe,{get title(){return e.title}})};H($,pe=>{e.title.embeddable_url&&pe(N)})}var O=z($,2);{let pe=U(()=>qo(e.title));Bv(O,{get title(){return e.title.title},get url(){return o(pe)}})}var K=z(h,2),Y=k(K);{var Q=pe=>{mv(pe,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>de(ce.ExpandTitleDescription,e.title)})};H(Y,pe=>{o(n)&&pe(Q)})}var X=z(Y,2);{var ae=pe=>{vv(pe,{get playlinks(){return e.title.providers},get title(){return e.title}})};H(X,pe=>{r||pe(ae)})}var we=z(X,2);kv(we,{get title(){return e.title}});var Se=z(we,2);Sv(Se,{get title(){return e.title}});var te=z(u,2);let fe;var he=k(te);{var Ce=pe=>{Gv(pe,{get embeddable_url(){return e.title.embeddable_url}})},Ve=pe=>{var Be=me(),at=J(Be);Sa(at,()=>o(s),ni=>{var Pt=Zv();let ee;V(oe=>{ie(Pt,"src",oe),ee=xe(Pt,1,"svelte-16ajinh",null,ee,{loaded:o(c),blur:o(s)})},[()=>lr(o(s)?e.title.standing_poster:e.title.medium_poster)]),ke("load",Pt,()=>D(c,!0)),ke("error",Pt,()=>D(s,!0)),w(ni,Pt)}),w(pe,Be)};H(he,pe=>{a()&&o(d)?pe(Ce):pe(Ve,!1)})}V(pe=>{f=xe(u,1,"content svelte-16ajinh",null,f,{small:i()}),b=xe(m,1,"poster svelte-16ajinh",null,b,{loaded:o(l)}),S=xe(g,1,"heading svelte-16ajinh",null,S,{truncate:i()}),Z(x,e.title.title),Z(j,` ${e.title.imdb_score??""}`),Z(q,e.title.year),Z(E,pe),fe=xe(te,1,"background svelte-16ajinh",null,fe,{small:i()})},[()=>le(`Type: ${e.title.type}`)]),w(t,p),ne()}function ra(t,e){const{onclick:i}=e;function a(r){return r.button!==1?null:(i(r),r)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const Ko={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},An={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Jv({key:t}){var a,r,n;if(!kt("tracking"))return 0;const e=(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:r[t];if(e!==void 0)return e;(n=window.PlayPilotLinkInjections)!=null&&n.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function Zo(t){const e=Jv(t);return Math.floor(e*t.numberOfVariants)}function Qv(t){var i;const e=Zo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function Xv(t,e=1){return kt("tracking")?Zo(t)===e:!1}function $v(t){const e=Qv(t);de(ce.SplitTestView,null,{key:t.key,variant:e})}var ef=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),tf=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),af=C('<button class="button svelte-1mt6g1y"> </button>'),rf=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),nf=C('<div class="background svelte-1mt6g1y"></div>'),lf=C("<!> <!>",1),of=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Yo(t,e){re(e,!0),de(ce.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),$v(An.TopScrollFormat);const i=U(()=>e.campaign.disclaimer),a=U(()=>e.campaign.content),r=U(()=>e.campaign.cta),n=U(()=>o(a).format),l=U(()=>o(a).header),c=U(()=>o(a).header_logo),s=U(()=>o(a).image_uuid),d=U(()=>o(r).header),p=U(()=>o(r).url),u=U(()=>o(n)==="large"),f=U(()=>Lo(o(s),Ko.TopScrollBackground)),h=U(()=>Lo(o(s),Ko.TopScrollContent));let m=G(0);function b(){de(ce.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var y=of();y.__click=b;let g,S;var x=k(y),_=k(x);{var L=M=>{var q=ef();V(()=>{ie(q,"src",o(h)),ie(q,"alt",o(l))}),w(M,q)},I=M=>{var q=rf(),T=J(q);{var E=N=>{var O=tf();V(()=>ie(O,"src",o(c))),w(N,O)};H(T,N=>{o(c)&&N(E)})}var P=z(T,2),F=k(P),W=z(P,2);{var $=N=>{var O=af(),K=k(O);V(()=>Z(K,o(d))),w(N,O)};H(W,N=>{o(d)&&N($)})}V(()=>Z(F,o(l))),w(M,q)};H(_,M=>{o(u)?M(L):M(I,!1)})}var j=z(x,2);{var B=M=>{var q=lf(),T=J(q);{var E=W=>{var $=nf();let N;V(()=>N=Fe($,"",N,{"--background":`url('${o(f)??""}')`})),w(W,$)};H(T,W=>{o(s)&&W(E)})}var P=z(T,2);{var F=W=>{In(W,{get disclaimer(){return o(i)}})};H(P,W=>{o(i)&&W(F)})}w(M,q)};H(j,M=>{o(u)||M(B)})}Bt(y,(M,q)=>ra==null?void 0:ra(M,q),()=>({onclick:b})),Ci(()=>_t(y,"clientWidth",M=>D(m,M))),V(()=>{ie(y,"href",o(p)),g=xe(y,1,"top-scroll svelte-1mt6g1y",null,g,{simple:o(u)}),S=Fe(y,"",S,{"--width":`${o(m)??""}px`})}),w(t,y),ne()}ve(["click"]);var sf=C('<div class="content svelte-r7ubzi"><!></div>'),cf=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function df(t,e){let i=G(!1);var a=cf();a.__touchstart=()=>D(i,!o(i));var r=k(a);Ne(r,()=>e.children);var n=z(r,2);{var l=c=>{var s=sf(),d=k(s);Ne(d,()=>e.content),De(1,s,()=>ii,()=>({duration:100})),w(c,s)};H(n,c=>{o(i)&&c(l)})}ke("mouseenter",a,()=>D(i,!0)),ke("mouseleave",a,()=>D(i,!1)),w(t,a)}ve(["touchstart"]);var pf=C('<div class="info svelte-qcpiki"><!></div>'),uf=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),vf=C('<span class="name svelte-qcpiki"> </span>'),ff=C('<div class="subheader svelte-qcpiki"> </div>'),hf=C('<div class="action svelte-qcpiki"> </div>'),gf=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),mf=C('<img class="background svelte-qcpiki" alt=""/>'),yf=C('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),bf=C('<div class="disclaimer svelte-qcpiki"><!></div>'),wf=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Jo(t,e){re(e,!0);const i=R(e,"compact",3,!1),a=U(()=>e.campaign.disclaimer),r=U(()=>e.campaign.content),n=U(()=>e.campaign.cta),l=U(()=>e.campaign.campaign_type),c=U(()=>o(r).header),s=U(()=>o(r).subheader),d=U(()=>o(r).header_logo),p=U(()=>o(r).image),u=U(()=>o(r).video),f=U(()=>o(n).header),h=U(()=>o(n).url),m=U(()=>o(n).subheader);let b=G(0);de(ce.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function y(){de(ce.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var g=wf();let S;g.__click=y;var x=k(g);{var _=E=>{var P=pf(),F=k(P);{var W=N=>{df(N,{content:K=>{var Y=ui();V(()=>Z(Y,o(m))),w(K,Y)},children:(K,Y)=>{var Q=ui("Ad");w(K,Q)},$$slots:{content:!0,default:!0}})},$=N=>{var O=ui();V(()=>Z(O,o(m))),w(N,O)};H(F,N=>{i()?N(W):N($,!1)})}w(E,P)};H(x,E=>{o(m)&&E(_)})}var L=z(x,2);{var I=E=>{var P=gf(),F=k(P);{var W=ae=>{var we=uf();V(()=>ie(we,"src",o(d))),w(ae,we)};H(F,ae=>{o(d)&&ae(W)})}var $=z(F,2),N=k($);{var O=ae=>{var we=vf(),Se=k(we);V(()=>Z(Se,o(c))),w(ae,we)};H(N,ae=>{o(c)&&ae(O)})}var K=z(N,2);{var Y=ae=>{var we=ff(),Se=k(we);V(()=>Z(Se,o(s))),w(ae,we)};H(K,ae=>{o(s)&&ae(Y)})}var Q=z($,2);{var X=ae=>{var we=hf(),Se=k(we);V(()=>Z(Se,o(f))),w(ae,we)};H(Q,ae=>{o(f)&&ae(X)})}_t(P,"clientHeight",ae=>D(b,ae)),w(E,P)};H(L,E=>{(o(d)||o(c)||o(s)||o(f))&&E(I)})}var j=z(L,2);{var B=E=>{var P=mf();V(()=>ie(P,"src",o(p))),w(E,P)},M=E=>{var P=me(),F=J(P);{var W=$=>{var N=yf();N.muted=!0;var O=k(N);V(()=>ie(O,"src",o(u))),w($,N)};H(F,$=>{o(l)==="video"&&o(u)&&$(W)},!0)}w(E,P)};H(j,E=>{o(l)==="image"&&o(p)?E(B):E(M,!1)})}var q=z(j,2);{var T=E=>{var P=bf();let F;var W=k(P);In(W,{get disclaimer(){return o(a)}}),V(()=>F=Fe(P,"",F,{"--offset":`${o(b)??""}px`})),w(E,P)};H(q,E=>{o(a)&&E(T)})}Bt(g,(E,P)=>ra==null?void 0:ra(E,P),()=>({onclick:y})),V(()=>{ie(g,"href",o(h)),S=xe(g,1,"display svelte-qcpiki",null,S,{compact:i()})}),w(t,g),ne()}ve(["click"]);var xf=C('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function _f(t,e){var s,d;re(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",a=(d=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:d.explore_navigation_path;nn();var r=xf();r.__click=()=>de(ce.CardToExploreCta);var n=k(r);ie(n,"src",i);var l=z(n,4),c=k(l);St(c,{}),V(()=>ie(r,"href",a)),w(t,r),ne()}ve(["click"]);function kf(t,e){var f,h;re(e,!0);const i=m=>{var b=me(),y=J(b);{var g=x=>{Yo(x,{get campaign(){return l}})},S=x=>{_f(x,{})};H(y,x=>{l?x(g):x(S,!1)})}w(m,b)},a=m=>{var b=me(),y=J(b);{var g=S=>{Jo(S,{get campaign(){return c}})};H(y,S=>{c&&S(g)})}w(m,b)},r=R(e,"initialScrollPosition",3,0),n=uo(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=Ca("top_scroll"),c=Ca("card"),s=(h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||s&&!document.querySelector(En);let p=!1;de(ce.TitleModalView,e.title),pt(()=>{const m=Date.now();return()=>de(ce.TitleModalClose,e.title,{time_spent:Date.now()-m})});function u(){p||(de(ce.TitleModalScroll,e.title),p=!0)}{let m=U(()=>d?i:null),b=U(()=>c?a:null);hr(t,{onscroll:u,get initialScrollPosition(){return r()},get bubble(){return o(m)},get prepend(){return o(b)},tall:!0,children:(y,g)=>{jn(y,ln({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}ne()}var Sf=C(" <strong> </strong>",1),Tf=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),Ef=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),Pf=C('<button class="more svelte-ke01cs"> </button>'),Cf=C('<div class="header svelte-ke01cs"><div class="heading svelte-ke01cs" id="name"> </div> <!></div> <div class="content svelte-ke01cs"><div class="heading small svelte-ke01cs" id="credits"> </div> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function zf(t,e){re(e,!0);const i=U(()=>e.participant.name),a=U(()=>e.participant.birth_date),r=U(()=>e.participant.death_date),n=30;let l=G(Ae([])),c=G(1),s=G(!0),d=G(!0);pt(u),kt("pixels")&&dr(Pa.ParticipantView,{participant:e.participant.name});function p(q){return new Date(q).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function u(){D(d,!0);try{const q=await yv(e.participant,{page:o(c)});D(l,[...o(l),...q],!0),D(s,(q==null?void 0:q.length)>=n)}catch{D(s,!1)}finally{D(d,!1),D(c,o(c)+1)}}var f=Cf(),h=J(f),m=k(h),b=k(m);Bt(m,(q,T)=>Oe==null?void 0:Oe(q,T),()=>2);var y=z(m,2);{var g=q=>{var T=Tf(),E=k(T),P=z(E),F=k(P),W=z(P);{var $=N=>{var O=Sf(),K=J(O),Y=z(K),Q=k(Y);V((X,ae)=>{Z(K,`, ${X??""} `),Z(Q,ae)},[()=>le("Died On"),()=>p(o(r))]),w(N,O)};H(W,N=>{o(r)&&N($)})}V((N,O)=>{Z(E,`${N??""} `),Z(F,O)},[()=>le("Born On"),()=>p(o(a))]),w(q,T)};H(y,q=>{o(a)&&q(g)})}var S=z(h,2),x=k(S),_=k(x);Bt(x,(q,T)=>Oe==null?void 0:Oe(q,T),()=>3);var L=z(x,2),I=k(L);Ie(I,17,()=>o(l),je,(q,T)=>{Fo(q,{get title(){return o(T)},onclick:E=>hi({event:E,data:o(T)})})});var j=z(I,2);{var B=q=>{var T=me(),E=J(T);Ie(E,16,()=>({length:6}),je,(P,F)=>{var W=Ef();w(P,W)}),w(q,T)},M=q=>{var T=me(),E=J(T);{var P=F=>{var W=Pf();W.__click=u;var $=k(W);V(N=>Z($,N),[()=>le("Show More")]),w(F,W)};H(E,F=>{o(s)&&F(P)},!0)}w(q,T)};H(j,q=>{o(d)?q(B):q(M,!1)})}V(q=>{Z(b,o(i)),Z(_,q)},[()=>le("Credits")]),w(t,f),ne()}ve(["click"]);function If(t,e){re(e,!0);const i=R(e,"initialScrollPosition",3,0);let a=G(0);de(ce.ParticipantModalView,null,{participant:e.participant.name}),pt(()=>{const r=Date.now();return()=>de(ce.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),hr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{zf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),rn("innerWidth",r=>D(a,r,!0)),ne()}var jf=C('<div class="content svelte-16hba4m"><!></div>');function Af(t,e){const i=R(e,"initialScrollPosition",3,0);hr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=jf(),l=k(n);Vo(l,{}),w(a,n)},$$slots:{default:!0}})}function Lf(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var Mf=Je('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function Df(t){var e=Mf();w(t,e)}var qf=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Of=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Rf=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),Nf=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function Bf(t,e){re(e,!0),Dr("scope","popover");const i=e.bubble&&Xv(An.TopScrollFormat,1),a=U(()=>({duration:Cn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),c=G(!1),s=G(0),d=G(0),p=G(0);pt(async()=>{await _a(),u(),await h(),e.append&&requestAnimationFrame(()=>{f(),h()}),await _a(),b()});function u(){if(!o(r))return;const{top:T,right:E,bottom:P,height:F}=o(r).getBoundingClientRect(),W=m();D(n,T-W<0&&window.innerHeight-P>T+F,!0);const $=window.innerWidth-E-W;E+W>window.innerWidth&&(o(r).style.left=`${$}px`)}function f(){D(l,o(s)>450)}async function h(){if(D(p,0),await new Promise(N=>requestAnimationFrame(N)),!o(r))return;const{top:T,height:E}=o(r).getBoundingClientRect(),P=m(),F=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,W=o(l)?o(d)+F:0,$=o(n)?window.innerHeight-T-P-W:T+E-W-P;D(p,Math.min($,window.innerHeight*.8),!0)}function m(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function b(){var W;if(!((W=o(r))!=null&&W.firstChild))return;const T=o(r).firstChild,{offsetHeight:E,scrollHeight:P,scrollTop:F}=T;P<=E?D(c,!1):D(c,F+E<P)}var y=Nf();let g,S;var x=k(y),_=k(x);Ne(_,()=>e.children);var L=z(_,2);{var I=T=>{var E=qf(),P=k(E),F=k(P);Df(F),De(3,E,()=>ii,()=>({duration:100})),w(T,E)};H(L,T=>{o(c)&&T(I)})}var j=z(x,2);{var B=T=>{var E=Of(),P=k(E);Ne(P,()=>e.bubble),De(7,E,()=>za,()=>o(a)),w(T,E)};H(j,T=>{e.bubble&&T(B)})}var M=z(j,2);{var q=T=>{var E=Rf(),P=k(E);Ne(P,()=>e.append),De(7,E,()=>za,()=>o(a)),_t(E,"clientHeight",F=>D(d,F)),w(T,E)};H(M,T=>{e.append&&o(l)&&T(q)})}Qe(y,T=>D(r,T),()=>o(r)),V(()=>{g=xe(y,1,"popover svelte-wxwoko",null,g,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),S=Fe(y,"",S,{"--max-height":o(p)?o(p)+"px":null})}),ke("scroll",x,b),De(7,x,()=>za,()=>o(a)),_t(y,"clientHeight",T=>D(s,T)),w(t,y),ne()}var Ff=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Hf(t,e){re(e,!0);const i=p=>{var u=me(),f=J(u);{var h=m=>{Yo(m,{get campaign(){return r}})};H(f,m=>{r&&m(h)})}w(p,u)},a=p=>{var u=me(),f=J(u);{var h=m=>{Jo(m,{get campaign(){return n},compact:!0})};H(f,m=>{n&&m(h)})}w(p,u)},r=Ca("top_scroll"),n=Ca("card");let l=G(null);de(ce.TitlePopoverView,e.title),pt(()=>{c();const p=Date.now();return()=>de(ce.TitlePopoverClose,e.title,{time_spent:Date.now()-p})});function c(){const p=e.event.target;if(!(p!=null&&p.getClientRects))return;const u=Array.from(p.getClientRects()),h=u.map(b=>b.x).map(b=>Math.abs(b-e.event.clientX)),m=u[h.indexOf(Math.min(...h))];o(l).style.top=m.top+window.scrollY+"px",o(l).style.left=m.left+window.scrollX+"px",o(l).style.height=m.height+"px"}var s=Ff(),d=k(s);{let p=U(()=>n?a:null),u=U(()=>r?i:null);Bf(d,{get append(){return o(p)},get bubble(){return o(u)},children:(f,h)=>{jn(f,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}Qe(s,p=>D(l,p),()=>o(l)),w(t,s),ne()}let gr=null,Mi=null;function Vf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Mi&&mr();const i=t.currentTarget;gr=i,setTimeout(()=>{gr===i&&(Mi=Nt(Hf,{target:On(),props:{event:t,title:e.title_details}}))},100)}async function mr(t=!0){if(Mi){const e=$i(Mi,{outro:t});gr=null,Mi=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Uf(t){if(!Mi)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(gi)||e.closest(ai)||mr()}function Wf(){gr=null}function Gf(){return!!Mi}var Kf=C('<div class="content svelte-c2erhr"><!></div>'),Zf=C("<div><!></div>"),Yf=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Jf=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Qf=C("<!> <!>",1),Xf=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function $f(t,e){re(e,!0);const i=R(e,"initialIndex",3,0),a=R(e,"onchange",3,()=>null),r=300;let n,l=G(!1);pt(()=>{setTimeout(()=>{n==null||n.setIndex(i()),requestAnimationFrame(()=>D(l,!0))})});function c(s){a()(s),n.setIndex(s)}hr(t,{blur:!0,dialog:d=>{var p=Xf(),u=J(p);Fe(u,"",{},{"--transition-duration":"300ms"});var f=k(u);{const b=(S,x)=>{let _=()=>x==null?void 0:x().currentIndex;var L=me(),I=J(L);Ie(I,17,()=>e.items,je,(j,B,M)=>{var q=Zf();let T;q.__click=()=>c(M);var E=k(q);{var P=F=>{var W=Kf(),$=k(W);Ne($,()=>e.each,()=>o(B),_),De(3,W,()=>ii,()=>({duration:o(l)?r:0})),w(F,W)};H(E,F=>{(Math.abs(M-_())===1||_()===M)&&F(P)})}V(()=>T=xe(q,1,"item svelte-c2erhr",null,T,{active:M===_()})),w(j,q)}),w(S,L)},y=(S,x)=>{let _=()=>x==null?void 0:x().currentIndex,L=()=>x==null?void 0:x().reachedEnd;var I=Qf(),j=J(I);{var B=T=>{var E=Yf();E.__click=()=>c(_()-1);var P=k(E);St(P,{size:21,direction:"left",title:"Previous"}),w(T,E)};H(j,T=>{_()>0&&T(B)})}var M=z(j,2);{var q=T=>{var E=Jf();E.__click=()=>c(_()+1);var P=k(E);St(P,{size:21,title:"Next"}),w(T,E)};H(M,T=>{L()||T(q)})}w(S,I)};let g=U(()=>o(l)?r:0);Qe(Do(f,{threshold:40,moveThreshold:40,get transitionDuration(){return o(g)},children:b,controls:y,$$slots:{default:!0,controls:!0}}),S=>n=S,()=>n)}var h=z(u,2),m=k(h);Pn(m,{size:"42px",onclick:()=>Mn(),"aria-label":"Close",children:(b,y)=>{xn(b,{size:24})},$$slots:{default:!0}}),De(7,h,()=>aa),w(d,p)},$$slots:{dialog:!0}}),ne()}ve(["click"]);function eh(t,e){re(e,!0);const i=R(e,"initialIndex",3,0);$f(t,{get items(){return e.titles},get initialIndex(){return i()},onchange:r=>de(ce.ExploreTitleRailSetIndex,e.titles[r],{index:r}),each:(r,n=vt,l=vt)=>{{let c=U(()=>{var s;return n().sid===((s=e.titles[l()])==null?void 0:s.sid)});jn(r,{get title(){return n()},get useVideoBackground(){return o(c)}})}},$$slots:{each:!0}}),ne()}const et=[];function hi({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&Eo(e))return;e==null||e.preventDefault(),et!=null&&et.length&&Ln();const c=On(),s={initialScrollPosition:r,...l},d=th({type:t,target:c,data:a,props:s});n&&Qo({type:t,injection:i,data:n}),Qo({type:t,injection:i,data:a,scrollPosition:r,component:d})}function th({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Nt(If,{target:e,props:{participant:i,...a}}):t==="explore"?Nt(Af,{target:e,props:{...a}}):t==="titles-rail"?Nt(eh,{target:e,props:{titles:i,...a}}):Nt(kf,{target:e,props:{title:i,...a}})}function Qo({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){et.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function Ln(t=!0){et.length&&(rh(),$i(et[et.length-1].component,{outro:t}))}function ih(t=!0){Ln(t),et.pop()}function Mn(t=!0){for(Ln(t);et.length>0;)et.pop()}function Xo(){return et[et.length-2]||null}function ah(){if(et.length<2)return;ih();const t=et.pop();t&&hi({...t})}function rh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Ii?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(et[et.length-1].scrollPosition=e.scrollTop)}function nh(t,e){if(Eo(t))return;let i=t.target;if(!i||(i.hasAttribute(gi)||(i=i.closest(ai)),!i))return;const a=i.getAttribute(gi);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),Lf(()=>{mr(!1),hi({event:t,injection:r,data:r.title_details})},!Cn.current&&window.innerWidth>=Ii&&!window.matchMedia("(pointer: coarse)").matches))}var lh=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),oh=C('<!> <a target="_blank"> </a>',1),sh=C(" <!>.",1),ch=C("<!> <br/>",1),dh=C(" <br/>",1),ph=C('<span class="svelte-1to4glm"><!></span>'),uh=C('<p class="svelte-1to4glm"></p>');function vh(t,e){re(e,!0);const i=R(e,"onclickmodal",3,()=>null);function a(s,d){de(ce.AfterArticlePlaylinkClick,s,{playlink:d})}function r(s,d,p){de(ce.AfterArticleModalButtonClick,d),i()(s,p)}var n=me(),l=J(n);{var c=s=>{var d=uh();Ie(d,21,()=>e.linkInjections,je,(p,u)=>{const f=U(()=>{const{key:S,title:x,title_details:_,after_article_style:L}=o(u);return{key:S,title:x,title_details:_,after_article_style:L}}),h=U(()=>{var S;return((S=o(f).title_details)==null?void 0:S.providers)||[]});var m=ph(),b=k(m);{var y=S=>{var x=ch(),_=J(x);{var L=j=>{var B=lh(),M=J(B),q=z(M);q.__click=P=>P.stopPropagation();var T=k(q);T.__click=P=>r(P,o(f).title_details,o(u));var E=k(T);V((P,F)=>{Z(M,`"${o(f).title??""}" ${P??""} `),Z(E,F)},[()=>le("Is Available To Stream"),()=>le("View Streaming Options")]),w(j,B)},I=j=>{var B=sh(),M=J(B),q=z(M);Ie(q,17,()=>o(h),je,(T,E,P)=>{let F=()=>o(E).name,W=()=>o(E).url;var $=oh(),N=J($);{var O=Q=>{var X=ui();V(ae=>Z(X,ae),[()=>P===o(h).length-1?`, ${le("And")}`:","]),w(Q,X)};H(N,Q=>{P&&Q(O)})}var K=z(N,2);K.__click=()=>a(o(f).title_details,F());var Y=k(K);V(()=>{ie(K,"href",W()),Z(Y,F())}),w(T,$)}),V(T=>Z(M,`"${o(f).title??""}" ${T??""} `),[()=>le("Is Available To Stream On")]),w(j,B)};H(_,j=>{o(f).after_article_style==="modal_button"?j(L):j(I,!1)})}w(S,x)},g=S=>{var x=dh(),_=J(x);V(L=>Z(_,`"${o(f).title??""}" ${L??""} `),[()=>le("Title Unavailable Suffix")]),w(S,x)};H(b,S=>{o(h).length?S(y):S(g,!1)})}V(()=>ie(m,"data-playpilot-injection-key",o(f).key)),w(p,m)}),w(s,d)};H(l,s=>{e.linkInjections.length&&s(c)})}w(t,n),ne()}ve(["click"]);let Ia=null;function fh(t,e){var l,c;if(Ia||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,r=(a?document.querySelector(a):null)||t[t.length-1],n=((c=window.PlayPilotLinkInjections)==null?void 0:c.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),Ia=Nt(vh,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>hi({event:s,injection:d,data:d.title_details})}})}function hh(){var t;Ia&&($i(Ia),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Ia=null)}var gh=C('<p class="svelte-1epbbn0"> </p>');function mh(t,e){re(e,!1),nn();var i=gh(),a=k(i);V(r=>Z(a,r),[()=>{var r,n;return((n=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.in_text_disclaimer_text)||le("In-Text Disclaimer")}]),w(t,i),ne()}let ja=null;function yh(t){var n,l,c,s,d,p;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||ja)return;const e=document.createElement("div"),i=(s=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:s.in_text_disclaimer_selector,a=(i?document.querySelector(i):null)||t[0],r=((p=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:p.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",a.insertAdjacentElement(r,e),ja=Nt(mh,{target:e})}function bh(){var t;ja&&($i(ja),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),ja=null)}const gi="data-playpilot-injection-key",ai=`[${gi}]`;function wh(t,e={aiInjections:[],manualInjections:[]}){qn(),Eh();const i=Ph(e);if(!i.length)return[];const a=fi(t.map(d=>d.innerText).join(" ")),n=zh(i).filter(d=>a.includes(fi(d.sentence))),l={};let c=-1;for(const d of jh(n)){c++;const p=t.findIndex(_=>fi(_.innerText).includes(fi(d.sentence))),u=t[p];if(!u)continue;const f=_o(d.title,u,["A"]);if(!(f!=null&&f.nodeValue)||ko(f)){const _=_o(d.title,u);if(_&&ko(_)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:m}=xh(d);let b=-1,y=!1;ar(u.innerHTML,d.title)===1&&(b=u.innerHTML.indexOf(d.title));const{phrase_before:S,phrase_after:x}=_h(u,d);if(b===-1&&(S||x)){const _=[S,d.title,x].filter(Boolean).join(" ");if(b=u.innerHTML.indexOf(_),b===-1){const L=md(u.innerHTML,d.title,S||"",x||"");if(L){const{leadingSpaces:I,trailingSpaces:j}=yd(L.match);m.innerHTML=L.match.trim();const B=L.index+I,M=L.index+L.match.length-j;if(u.innerHTML.slice(B,M).includes("href="))continue;Dn(u.innerHTML,d.title,u,h,B,M)&&(b=L.index,y=!0)}}}if(b===-1&&(f!=null&&f.nodeValue)){const _=u.innerHTML.indexOf(f.nodeValue),L=u.innerHTML.indexOf(d.sentence),I=L===-1?u.innerHTML.indexOf(d.sentence.slice(0,20)):-1,j=d.sentence.split(" ")[0],M=ar(u.innerHTML,j)===1?u.innerHTML.indexOf(j):-1,q=dd(n.slice(0,c+1),d,["title","sentence"])-1,T=bd(f.nodeValue,u,q);b=Math.max(_,I,T,M,L,0)}if(b!==-1&&!y&&!Dn(u.innerHTML,d.title,u,h,b)){const _=xd(d.title,u.innerHTML);_>-1?Dn(u.innerHTML,d.title,u,h,_):l[d.key]="Injection would have lead to broken HTML."}}Sh(n),kh();const s=Ih(i);return s.length&&fh(t,s),document.querySelector(ai)&&yh(t),i.filter(d=>d.title_details).map((d,p)=>{const u=!d.manual&&Ah(d,p,i),f=d.duplicate??u;f&&(l[d.key]=u?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${gi}="${d.key}"]`),m=es(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,b=n.find(g=>g.key===d.key),y=m?l[d.key]||(b?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:f,failed:m,failed_message:y}})}function xh(t){var a;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=document.createElement("a");return i.dataset.playpilotPosterUrl=(a=t.title_details)==null?void 0:a.standing_poster,i.innerText=t.title,i.href=t.playpilot_url,i.target="_blank",i.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",i),{injectionElement:e,linkElement:i}}function Dn(t,e,i,a,r,n=-1){const l=p=>Array.from(p.querySelectorAll(`a, ${ai}`)).filter(u=>!u.innerText).length,c=document.createElement("div");c.innerHTML=t;const s=l(c),d=c.innerText;return n>0?c.innerHTML=fd(t,a.outerHTML,r,n):c.innerHTML=vd(t,e,a.outerHTML,r),Math.abs(c.innerText.length-d.length)>1||s!=l(c)?!1:(i.innerHTML=c.innerHTML,!0)}function _h(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(ar(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=hd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function kh(){const t=Array.from(document.querySelectorAll(`${ai} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const a=getComputedStyle(i);for(const r of e)a.getPropertyValue(r)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${r}`)}}function Sh(t){window.addEventListener("mousemove",Uf),window.addEventListener("click",i=>nh(i,t)),document.querySelectorAll(ai).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{Gf()||Vf(n,r)}),i.addEventListener("mouseleave",Wf))})}function qn(){document.querySelectorAll(ai).forEach(e=>Th(e.getAttribute(gi)||"")),hh(),bh(),Mn(!1),mr(!1)}function Th(t){var r;const e=document.querySelector(`[${gi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(n=>n.remove());const a=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=a||""}function Eh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ai)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function Ph({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Ch(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function $o(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&es(t)}function es(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function zh(t){return ts(t).filter(e=>e.in_text!==!1&&$o(e))}function Ih(t){return ts(t).filter(e=>e.after_article===!0&&$o(e))}function ts(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&is(i,e)))}function jh(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const a=i.title.length-e.title.length;return a!==0?a:0})}function Ah(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&is(a,t))}function is(t,e){return t.title===e.title&&fi(t.sentence)===fi(e.sentence)}function On(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Lh(){const t=vi();if(!t)throw new Error("No token was provided");try{return await await ti(`/domains/config?api-token=${t}`)||null}catch{return null}}ve(["click"]),ve(["input"]),ve(["click"]),ve(["click"]),ve(["click"]),ve(["mousedown","touchstart"]),ve(["mousedown","touchstart"]),ve(["click"]),ve(["click"]),ve(["click"]),ve(["click"]),ve(["click"]),ve(["click"]);function Mh(t,e){re(e,!0);const i=100;let a=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){n();return}if(!window.__tcfapi){a<i&&setTimeout(r,100),a++;return}window.__tcfapi("addEventListener",2,(l,c)=>{if(!c)return;const{purpose:s,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const p=u=>s.consents[u]===!0;_d({ads:p(1),pixels:p(1)&&p(7),split_tests:p(9)&&p(10),tracking:p(7)&&p(8),affiliate:p(1)&&p(7)}),n()})}function n(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ne()}var Dh=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),qh=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Oh=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Rh=C('<button class="svelte-1tp7i1s"></button>'),Nh=C("<small>You are using the beta version of TPI</small>"),Bh=C('<button class="svelte-1tp7i1s">Use beta script</button>'),Fh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Hh=C("<option> </option>"),Vh=C('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function Uh(t,e){re(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(Ae(d())),l=G(!1),c=null,s=G(184);on(()=>{c&&clearInterval(c)});function d(){var L,I,j,B,M,q;const g=window.PlayPilotLinkInjections,S=((L=g.evaluated_link_injections)==null?void 0:L.filter(T=>!T.failed))||[],x=((I=g.evaluated_link_injections)==null?void 0:I.filter(T=>T.failed))||[],_=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:g.domain_sid},{label:"Organization",data:g.organization_sid},{label:"HTML selector",data:g.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([T,E])=>({label:T,data:E})),[`Succesful injections (${S.length})`]:S.map(T=>({label:T.title,data:T.sentence})),[`Failed injections (${x.length})`]:x.map(T=>({label:T.title,data:`Reason: ${T.failed_message} | Sentence: ${T.sentence}`})),[`Fetched ads (${((j=g.ads)==null?void 0:j.length)||0})`]:(B=g.ads)==null?void 0:B.map(T=>({label:T.campaign_name,data:T})),[`Tracking events (${((M=g.tracked_events)==null?void 0:M.length)||0})`]:(q=g.tracked_events)==null?void 0:q.map(T=>({label:T.event,data:T.payload})),[`Visible pixels (${_.length})`]:_.map((T,E)=>({label:E+1,data:T.src}))}}function p(g){o(l)||(a.push(g.key),D(l,i.some(S=>a.slice(a.length-S.length,a.length).join("")===S),!0),c=setInterval(()=>D(n,d(),!0),200))}function u(g){window.PlayPilotLinkInjections.ads.unshift({campaign_format:g,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function f(g){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(An).forEach(({key:S,numberOfVariants:x})=>{const _=1/x;window.PlayPilotLinkInjections.split_test_identifiers[S]=Math.min(_*g,1)})}function h(){var x,_;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(_=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||_.call(x);const S=document.createElement("script");for(const L of g.attributes)S.setAttribute(L.name,L.value);S.getAttribute("onload")||S.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),S.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",S),g.remove()}var m=me();ke("keydown",Me,p);var b=J(m);{var y=g=>{var S=Vh(),x=z(k(S),4);{var _=te=>{var fe=Dh();w(te,fe)};H(x,te=>{var fe,he,Ce;(fe=window.PlayPilotLinkInjections.config)!=null&&fe.exclude_urls_pattern&&ji().match((Ce=(he=window.PlayPilotLinkInjections)==null?void 0:he.config)==null?void 0:Ce.exclude_urls_pattern)&&te(_)})}var L=z(x,2);Ie(L,17,()=>Object.entries(o(n)),je,(te,fe)=>{var he=U(()=>ua(o(fe),2));let Ce=()=>o(he)[0],Ve=()=>o(he)[1];var Le=Oh(),pe=k(Le),Be=k(pe),at=z(pe,2);{var ni=ee=>{var oe=me(),ge=J(oe);{var rt=Ue=>{var Wt=me(),Nn=J(Wt);Ie(Nn,17,Ve,je,(Gt,Kt,lg,og)=>{let Jh=()=>o(Kt).label,Qh=()=>o(Kt).data;var rs=qh(),ns=k(rs),Xh=k(ns),$h=z(ns,2),eg=k($h);V(tg=>{Z(Xh,Jh()),Z(eg,tg)},[()=>JSON.stringify(Qh())]),w(Gt,rs)}),w(Ue,Wt)};H(ge,Ue=>{Array.isArray(Ve())&&Ue(rt)})}w(ee,oe)},Pt=ee=>{var oe=ui("No data");w(ee,oe)};H(at,ee=>{var oe;(oe=Ve())!=null&&oe.length?ee(ni):ee(Pt,!1)})}V(()=>Z(Be,Ce())),w(te,Le)});var I=z(L,4);I.__click=()=>u("card");var j=z(I,2);j.__click=()=>u("top_scroll");var B=z(j,6);Ie(B,16,()=>({length:4}),je,(te,fe,he)=>{var Ce=Rh();Ce.__click=()=>f(he),Ce.textContent=he,w(te,Ce)});var M=z(B,4);M.__click=()=>console.log(un(window.PlayPilotLinkInjections.config));var q=z(M,2);q.__click=()=>console.log(un(window.PlayPilotLinkInjections.config).pageText);var T=z(q,4);T.__click=function(...te){var fe;(fe=e.onrerender)==null||fe.apply(this,te)};var E=z(T,2);{var P=te=>{var fe=Nh();w(te,fe)},F=te=>{var fe=Bh();fe.__click=h,w(te,fe)};H(E,te=>{r?te(P):te(F,!1)})}var W=z(E,2);{var $=te=>{var fe=Fh();fe.__click=()=>{vr(),window.PlayPilotLinkInjections.config.explore_use_router=!Li(),ur()},w(te,fe)};H(W,te=>{Li()||te($)})}var N=z(W,4),O=z(k(N),2);Oc(O,window.PlayPilotLinkInjections.region),O.__change=te=>{vr(),window.PlayPilotLinkInjections.region=te.target.value,ur()};var K=z(N,2),Y=z(k(K),2);Y.__change=te=>{vr(),window.PlayPilotLinkInjections.language=te.target.value,ur()},Ie(Y,21,()=>Object.entries(v),je,(te,fe)=>{var he=U(()=>ua(o(fe),2));let Ce=()=>o(he)[0],Ve=()=>o(he)[1];var Le=Hh(),pe=k(Le),Be={};V(at=>{ao(Le,at),Z(pe,Ce()),Be!==(Be=Ve())&&(Le.value=(Le.__value=Ve())??"")},[()=>Ve()===Ea()]),w(te,Le)});var Q=z(K,4),X=z(k(Q),2);ie(X,"min",80),ie(X,"max",240),ie(X,"step",8),X.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(s)}px`);var ae=z(X,2),we=k(ae),Se=z(Q,4);Se.__click=()=>D(l,!1),V(()=>Z(we,o(s))),Ta(X,()=>o(s),te=>D(s,te)),w(g,S)};H(b,g=>{o(l)&&g(y)})}w(t,m),ne()}ve(["click","change","input"]);function Wh(t,e){re(e,!1);const i=Array.from(document.querySelectorAll(ai)),a=[],r=Date.now();let n=!1,l=null;pt(()=>{tr()||c()});function c(){l=new IntersectionObserver(s),i.forEach(u=>{l.observe(u)})}function s(u){u.forEach(f=>{if(!f.isIntersecting)return;const h=f.target.getAttribute(gi);h&&a.push(h),l.unobserve(f.target)})}function d(){const{scrollHeight:u,scrollTop:f,clientHeight:h}=document.documentElement;return f/(u-h)*100}function p(){var f,h;if(n||document.visibilityState!=="hidden")return;n=!0;const u=Date.now();de(ce.UserLeft,null,{time_start:r,time_end:u,time_spent:u-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(f=window.PlayPilotLinkInjections)==null?void 0:f.tracked_events)==null?void 0:h.map(m=>m.event))||[],scroll_percentage:d()})}nn(),ke("visibilitychange",Me,p),ne()}function Gh(t,e){re(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new fr,r=.7,n="[data-playpilot-poster]";let l=G(0),c={},s=null;const d=U(()=>o(l)<Ii);on(h);function p(){var x,_;if((_=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&_.disable_scroll_reveal_posters||!o(d))return;m();const b=window.innerHeight,y=new fr,g=b*r,S=b-g;for(const L of i){const{top:I}=L.getBoundingClientRect();I<g&&I>S&&y.add(L)}for(const L of y){if(a.has(L))continue;const I=L.dataset.playpilotPosterUrl;I in c&&c[I]!==L||(u(L,I),a.add(L),c[I]=L)}}function u(b,y){const g=document.createElement("img");g.classList.add("playpilot-floating-poster"),g.dataset.playpilotPoster="",g.src=y,g.alt="",g.onload=()=>g.classList.add("loaded"),b.insertAdjacentElement("afterbegin",g)}function f(b){const y=b.querySelector(n);y&&(y.classList.add("animating-out"),setTimeout(()=>y.remove(),500))}function h(){for(const b of Array.from(document.querySelectorAll(n)))b.remove()}function m(){s&&clearTimeout(s),s=setTimeout(()=>{for(const b of a)f(b),a.delete(b),c={}},1e3)}ke("scroll",Me,p),rn("innerWidth",b=>D(l,b,!0)),ne()}var Kh=C("<!> <!>",1),Zh=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function Yh(t,e){re(e,!0);let i=G(Ae([])),a=G(null),r=G(Ae(tr()));go();let n=G(!1),l=G(!0),c=G(!0),s=G(Ae([]));const d=U(()=>o(a)||{}),p=U(()=>Zn(o(d).ai_injections,()=>[],!0)),u=U(()=>Zn(o(d).manual_injections,()=>[],!0)),f=U(()=>pn(o(i))),h=b();Ge(()=>{o(r)&&!o(l)&&y()}),ur(),on(qn);async function m(){rr()||(await h,Cd(),de(ce.ArticlePageView),!(!o(p).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await Io())))}async function b(){var E;D(l,!0);try{o(r)&&D(n,await ho({throwError:!0}),!0)}catch{de(ce.AuthFailed)}try{const P=window.PlayPilotLinkInjections.config||await Lh()||{};if(window.PlayPilotLinkInjections.config=P,P!=null&&P.custom_style&&S(P.custom_style||""),P!=null&&P.explore_navigation_selector&&Mu(),P!=null&&P.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),P!=null&&P.domain_sid&&Co({organizationSid:P.organization_sid,domainSid:P.domain_sid}),D(c,od(P),!0),o(c))return;P!=null&&P.html_selector&&(window.PlayPilotLinkInjections.selector=P==null?void 0:P.html_selector),D(i,un(window.PlayPilotLinkInjections.config).elements,!0)}catch(P){de(ce.FetchingConfigFailed),console.error("TPI Config failed to fetch",P);return}try{if(D(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),D(a,o(a)||await wo(o(f),{maxTries:1,runAiWhenRelevant:!rr()}),!0),D(l,!1),!o(a)||(E=window.PlayPilotLinkInjections.config)!=null&&E.disable_public_injections&&!(o(r)&&o(n)))return;if(Co({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){g({aiInjections:o(p),manualInjections:o(u)});return}if(!o(r)||rr())return;D(a,await wo(o(f),{requireCompletedResult:!0,onpoll:P=>D(a,P,!0)}),!0),g({aiInjections:o(p),manualInjections:o(u)})}catch(P){console.error(P),de(ce.InjectionError,null,{message:P.message})}}function y(){g(Ch(o(s)))}function g(E={aiInjections:o(p),manualInjections:o(u)}){const P=wh(o(i),E);JSON.stringify(P)!==JSON.stringify(o(s))&&(D(s,P,!0),window.PlayPilotLinkInjections.evaluated_link_injections=P),o(r)||x(P)}function S(E){const P="playpilot-custom-style",F=document.getElementById(P),W=F||document.createElement("style");W.textContent=`body { ${E} }`,W.id=P,F||document.body.appendChild(W)}function x(E){const P=E.filter(W=>!W.failed),F=E.filter(W=>W.failed);if(P.length&&de(ce.ArticleInjected,null,{manual:P.filter(W=>W.manual).length,ai:P.filter(W=>!W.manual).length}),F.length){const W=$=>F.filter(({failed_message:N})=>N==null?void 0:N.includes($)).length;de(ce.FailedInjectionsCount,null,{total:F.length,sentence_not_found:W("sentence was not found"),already_linked:W("already inside of a link"),broken_html:W("broken HTML"),duplicate:W("duplicate"),unknown:W("unknown reasons")})}}var _=Zh(),L=J(_),I=k(L);H(I,E=>{});var j=z(I,2);Uh(j,{onrerender:y});var B=z(L,2);{var M=E=>{Tn(E,{get pixels(){return o(a).pixels}})};H(B,E=>{var P,F;(F=(P=o(a))==null?void 0:P.pixels)!=null&&F.length&&E(M)})}var q=z(B,2);Sa(q,()=>o(s),E=>{var P=Kh(),F=J(P);Wh(F,{});var W=z(F,2);Gh(W,{}),w(E,P)});var T=z(q,2);Mh(T,{onchange:m}),w(t,_),ne()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Nt(Yh,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),qn()}}})();
10
+ `}}function lr(t){return t?t.replace("/src/img",""):null}function Lo(t,e=null){return t!=null&&t.length?`${Xc}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Md=C('<img class="svelte-p6g2a"/>');function or(t,e){ne(e,!0);const i=R(e,"width",3,96),a=R(e,"height",3,144),r=R(e,"lazy",3,!0),n=R(e,"onload",3,()=>null);var l=Md();V(c=>{ie(l,"src",c),ie(l,"alt",`Movie poster for '${e.title.title??""}'`),ie(l,"width",i()),ie(l,"height",a()),ie(l,"loading",r()?"lazy":null)},[()=>lr(e.title.standing_poster)]),ke("error",l,({target:c})=>c.src=$c),ke("load",l,function(...c){var s;(s=n())==null||s.apply(this,c)}),w(t,l),le()}var Dd=Je('<svg viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function xn(t,e){const i=R(e,"size",3,16);var a=Dd();V(()=>{ie(a,"width",i()),ie(a,"height",i())}),w(t,a)}var qd=C('<div class="overlay svelte-f0c4xl"><!> <div class="backdrop svelte-f0c4xl" data-testid="backdrop"></div> <button class="close svelte-f0c4xl" aria-label="Close"><!></button></div>');function Od(t,e){const i=R(e,"embeddable_url",3,"");var a=qd(),r=k(a);kn(r,{get embeddable_url(){return i()},controls:["current-time","fullscreen","mute","play","progress"]});var n=z(r,2);n.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var l=z(n,2);l.__click=function(...s){var d;(d=e.onclose)==null||d.apply(this,s)};var c=k(l);xn(c,{size:24}),De(3,a,()=>ii,()=>({duration:100})),w(t,a)}ve(["click"]);const Rd="1304688689641511",Nd="https://endpoint-youtube-availability.playpilot.workers.dev";async function Mo(t){var i,a,r,n;const e=(a=(i=window.PlayPilotLinkInjections)==null?void 0:i.region)==null?void 0:a.toUpperCase();if(!e)return!0;try{const l=await fetch(`${Nd}/?video_id=${t}`);if(!l.ok)throw new Error("Response was not ok");const c=await l.json();return!((r=c.blocked)!=null&&r[e]||!c.blocked&&c.allowed&&!((n=c.allowed)!=null&&n.includes(e)))}catch(l){return de(ce.YouTubeAvailabilityRequestFailed,null,{message:l.message}),!1}}let sr={};function Bd(t){const e=On(),i={onclose:Fd,embeddable_url:t.embeddable_url||""};sr=Nt(Od,{target:e,props:i})}function Fd(){sr&&($i(sr,{outro:!0}),sr=null)}function _n(t){const e=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,i=t.match(e);return(i==null?void 0:i[7])||null}async function Hd(t,e=3){let i=0,a=null;for(;i<e&&!a;){const r=t[i],n=(r==null?void 0:r.embeddable_url)&&_n(r.embeddable_url);try{n&&await Mo(n)&&(a=r)}catch{}i++}return a}var Vd=Je('<path fill="currentColor" d="m616-320-56-56 104-104-104-104 56-56 104 104 104-104 56 56-104 104 104 104-56 56-104-104-104 104Zm-496-40v-240h160l200-200v640L280-360H120Zm280-246-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Ud=Je('<path fill="currentColor" d="M560-131v-82q90-26 145-100t55-168q0-94-55-168T560-749v-82q124 28 202 125.5T840-481q0 127-78 224.5T560-131ZM120-360v-240h160l200-200v640L280-360H120Zm440 40v-322q47 22 73.5 66t26.5 96q0 51-26.5 94.5T560-320ZM400-606l-86 86H200v80h114l86 86v-252ZM300-480Z"></path>'),Wd=Je('<svg width="32px" height="32px" viewBox="0 -960 960 960"><!></svg>');function Gd(t,e){const i=R(e,"muted",3,!1);var a=Wd(),r=k(a);{var n=c=>{var s=Vd();w(c,s)},l=c=>{var s=Ud();w(c,s)};H(r,c=>{i()?c(n):c(l,!1)})}w(t,a)}var Kd=C('<button class="mute svelte-1ivh34t"><!></button>'),Zd=C('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-1ivh34t"></iframe> <!>',1);function kn(t,e){var S;ne(e,!0);const i=R(e,"embeddable_url",3,""),a=R(e,"controls",19,()=>[]),r=R(e,"muted",3,!1),n=R(e,"loop",3,!1),l=R(e,"captions",3,!1),c=R(e,"showMuteControls",3,!1),s=U(()=>_n(i())),d=((S=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:S.replace("#",""))||"fa548a";let p=G(null),u=G(Ae(r()));function f(x=!o(u)){var _,L;o(u)!=x&&((L=(_=o(p))==null?void 0:_.contentWindow)==null||L.postMessage("mute","*")),D(u,x,!0)}var h={toggleMute:f},m=me(),b=J(m);{var y=x=>{var _=Zd(),L=J(_);Qe(L,B=>D(p,B),()=>o(p));var I=z(L,2);{var j=B=>{var M=Kd();M.__click=()=>f();var q=k(M);Gd(q,{get muted(){return o(u)}}),w(B,M)};H(I,B=>{c()&&B(j)})}V(B=>ie(L,"src",`https://video.playpilot.net/?video_id=${o(s)??""}&color=${d}&muted=${r()??""}&loop=${n()??""}&captions=${l()??""}&controls=${B??""}&autoplay=true&playsinline=true`),[()=>a().join(",")]),w(x,_)},g=x=>{var _=ui("Something went wrong");w(x,_)};H(b,x=>{o(s)?x(y):x(g,!1)})}return w(t,m),le(h)}ve(["click"]);var Yd=C('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function Do(t,e){ne(e,!0);let i=R(e,"gap",3,"0"),a=R(e,"fill",3,!0),r=R(e,"transitionDuration",3,300),n=R(e,"threshold",3,30),l=R(e,"moveThreshold",3,0),c=R(e,"currentIndex",15,0),s=R(e,"shown",31,()=>Ae([])),d=R(e,"sliderWidth",15,0),p=R(e,"currentScrollPosition",15,0),u=R(e,"maxWidth",15,0),f=R(e,"reachedEnd",15,!1),h=R(e,"distanceToEnd",15,0),m=R(e,"passedThreshold",15,!1),b=R(e,"passedMoveThreshold",15,!1),y=R(e,"allowWheel",3,!1),g=R(e,"end",3,()=>null),S=R(e,"change",3,ee=>null),x=R(e,"onend",19,g),_=R(e,"onchange",19,S),L=R(e,"onresize",3,()=>null),I=G(!1),j=G(!1),B=0,M=0,q=G(void 0),T=G(void 0),E=null,P=null;Ge(()=>{o(T)&&ae(),o(T)&&h(u()-p()-d())}),pt(()=>(fe(),()=>E==null?void 0:E.disconnect()));function F(ee){const oe=o(T).children.length,ge=Math.max(0,Math.min(ee,oe-1));Q({setIndex:ge}),ae()}function W(){D(j,!0),F(c()),requestAnimationFrame(()=>D(j,!1))}function $(ee){he(ee.target)&&(ee.preventDefault(),B=we(ee),D(I,!0))}function N(){if(o(I)){if(!m())Q({setIndex:c()});else{const ee=p()-M,oe=ee>0?1:-1;ee!=0&&Q({direction:oe})}D(I,!1),m(!1)}}function O(ee){if(!o(I))return;const oe=we(ee),ge=M+(B-oe),rt=B-oe;b(Math.abs(rt)>l()),m(Math.abs(p()-M)>n()),b()&&(X(ge-l()*(rt>0?1:-1)),ae())}function K(ee){if(!y())return;const{deltaX:oe,deltaY:ge}=ee;if(Math.abs(oe)<Math.abs(ge))return;ee.preventDefault();const Ue=p()+oe*20*.02;X(Ue),ae(),P&&clearTimeout(P),P=setTimeout(()=>{Q({direction:oe>0?1:-1})},100)}function Y(ee){he(document.activeElement)&&(ee.key=="ArrowLeft"&&F(c()-1),ee.key=="ArrowRight"&&F(c()+1))}function Q({setIndex:ee=-1,direction:oe=1}={}){const ge=Se(),rt=c();c(0);let Ue;for(Ue=0;Ue<ge.length;Ue++)if(ee!=-1){if(Ue>=ee)break}else if(oe>0&&ge[Ue]>p()||oe<0&&ge[Ue+1]>p())break;c(Math.min(Ue,te().length-1)),X(ge[c()],!0),M=p(),_()&&c()!=rt&&_()(c())}function X(ee,oe=!1){p(ee);const ge=u()-d();f(p()>=ge),f()&&(x()&&x()(),a()&&oe&&p(ge))}function ae(){const ee=Se();Array.from(ee).forEach((oe,ge)=>{p()+d()<oe||s().includes(ge)||s([...s(),ge])})}function we(ee){var oe,ge;return ee.pageX??((ge=(oe=ee.touches)==null?void 0:oe[0])==null?void 0:ge.pageX)}function Se(){return te().map(ee=>ee.offsetLeft)}function te(){return Array.from(o(T).children).filter(ee=>ee instanceof HTMLElement).filter(ee=>ee.src!="about:blank")}function fe(){E=new ResizeObserver(ee=>{for(const oe of ee){const ge=Array.isArray(oe.contentBoxSize)?oe.contentBoxSize[0]:oe.contentBoxSize;u(ge.inlineSize)}L()()}),E.observe(o(T))}function he(ee){return ee===o(q)||(ee==null?void 0:ee.closest(".slider"))===o(q)}var Ce={setIndex:F,reposition:W},Ve=Yd();ke("mousedown",Me,$),ke("mouseup",Me,N),ke("mousemove",Me,O),ke("touchstart",Me,$,void 0,!0),ke("touchend",Me,N),ke("touchmove",Me,O,void 0,!0),ke("keydown",Me,Y),ke("resize",Me,W);var Le=J(Ve);let pe;var Be=k(Le);let at;var ni=k(Be);Ne(ni,()=>e.children??vt,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:F,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),Qe(Be,ee=>D(T,ee),()=>o(T)),Qe(Le,ee=>D(q,ee),()=>o(q));var Pt=z(Le,2);return Ne(Pt,()=>e.controls??vt,()=>({sliderWidth:d(),shown:s(),currentIndex:c(),setIndex:F,currentScrollPosition:p(),maxWidth:u(),reachedEnd:f(),distanceToEnd:h()})),V(ee=>{pe=xe(Le,1,"slider svelte-1gs8ha8",null,pe,{dragging:o(I),"passed-threshold":m()}),at=Fe(Be,"",at,ee)},[()=>({transform:`translateX(${p()*-1}px)`,"transition-duration":`${(o(I)||o(j)?0:r())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),ke("wheel",Le,K),_t(Le,"clientWidth",d),w(t,Ve),le(Ce)}var Jd=Je("<title> </title>"),Qd=Je('<svg viewBox="0 -960 960 960"><!><path d="m288-96-68-68 316-316-316-316 68-68 384 384L288-96Z" fill="currentColor"></path></svg>');function St(t,e){const i=R(e,"direction",3,"right"),a=R(e,"title",3,""),r=R(e,"size",3,16);var n=Qd(),l=k(n);{var c=s=>{var d=Jd(),p=k(d);V(()=>Z(p,a())),w(s,d)};H(l,s=>{a()&&s(c)})}V(()=>{xe(n,0,i(),"svelte-1m6nwwy"),ie(n,"width",`${r()??""}px`),ie(n,"height",`${r()??""}px`)}),w(t,n)}function Oe(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Xd=C('<div class="heading svelte-1ayf7b5"> </div>'),$d=C('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),ep=C('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),tp=C("<!> <!>",1),ip=C('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function cr(t,e){ne(e,!0);let i=R(e,"heading",3,""),a=R(e,"onchange",3,()=>null),r=R(e,"onresize",3,()=>null),n=R(e,"slider",15);var l=ip(),c=J(l);{var s=u=>{var f=Xd(),h=k(f);Bt(f,(m,b)=>Oe==null?void 0:Oe(m,b),()=>2),V(()=>Z(h,i())),w(u,f)};H(c,u=>{i()&&u(s)})}var d=z(c,2),p=k(d);Qe(Do(p,{get onchange(){return a()},get onresize(){return r()},allowWheel:!0,controls:(f,h)=>{let m=()=>h==null?void 0:h().setIndex,b=()=>h==null?void 0:h().currentIndex,y=()=>h==null?void 0:h().reachedEnd;var g=tp(),S=J(g);{var x=I=>{var j=$d();j.__click=()=>m()(b()-1);var B=k(j);St(B,{direction:"left",title:"Previous"}),w(I,j)};H(S,I=>{b()>0&&I(x)})}var _=z(S,2);{var L=I=>{var j=ep();j.__click=()=>m()(b()+1);var B=k(j);St(B,{title:"Next"}),w(I,j)};H(_,I=>{y()||I(L)})}w(f,g)},children:(f,h)=>{var m=me(),b=J(m);Ne(b,()=>e.children),w(f,m)},$$slots:{controls:!0,default:!0}}),f=>n(f),()=>n()),w(t,l),le()}ve(["click"]);function qo(t){return`${Jc}/${t.type}/${t.slug}/`}var ap=C('<img class="video-fallback svelte-12ph9f6" alt=""/>'),rp=C('<div class="video svelte-12ph9f6"><a class="video-overlay svelte-12ph9f6" title=""></a> <!></div>'),np=C('<a class="poster svelte-12ph9f6"><!></a>'),lp=C('<div class="aside svelte-12ph9f6" data-testid="aside"> </div>'),op=C('<div data-testid="title"><div class="media svelte-12ph9f6"><!></div> <a class="heading svelte-12ph9f6" data-testid="heading"> </a> <!></div>'),sp=C('<div class="skeleton svelte-12ph9f6">&nbsp;</div>'),cp=C('<div class="aside svelte-12ph9f6"><div class="aside-skeleton svelte-12ph9f6"></div></div>'),dp=C('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6">&nbsp;</span> <span class="skeleton svelte-12ph9f6">&nbsp;</span></div> <!></div>'),pp=C("<div><!></div>");function Oo(t,e){ne(e,!0);let i=R(e,"minimumLength",3,1),a=R(e,"heading",3,""),r=R(e,"size",3,"small"),n=R(e,"aside",3,!1),l=R(e,"expandable",3,!1),c=R(e,"expandedTitle",15,null),s=R(e,"expandedRailKey",15,null),d=R(e,"onclick",3,()=>null),p=R(e,"onexpand",3,()=>null);const u=cn(),h=Mr("scope")==="popover"?Mr("title"):null;let m=G(null),b=G(null),y=G(null),g=!1;pt(()=>{l()&&L()});function S(T,E,P){var W,$,N,O;T==null||T.preventDefault();const F=E[P];if(l()&&!I(F)){const K=(W=o(m))==null?void 0:W.querySelectorAll(".title")[P],Q=((($=o(m))==null?void 0:$.getBoundingClientRect().right)||0)-K.getBoundingClientRect().right;g=!0,setTimeout(()=>g=!1,500),Q<K.clientWidth*2&&((N=o(b))==null||N.setIndex(P-2)),_(F),T&&p()(F);return}T&&(Li()?hi({event:T,type:"titles-rail",data:E,returnToTitle:h,props:{initialIndex:P}}):hi({event:T,data:F,returnToTitle:h}),(O=o(y))==null||O.toggleMute(!0),d()(F))}async function x(){const T=await e.titles,E=await Hd(T);E&&(c()||s()&&s()!==u||_(E))}function _(T){s(u),c(T)}function L(){s()===u||Array.from(document.querySelectorAll('[data-role="expandable-rail"]')).filter(F=>F.getBoundingClientRect().top>=0).sort((F,W)=>F.getBoundingClientRect().top-W.getBoundingClientRect().top)[0]!==o(m)||(c(null),s(null),x())}function I(T){var E;return s()===u&&T.sid===((E=c())==null?void 0:E.sid)}function j(T,E){l()&&(g||setTimeout(()=>S(null,T,E),250))}var B=pp();ke("scroll",Me,L);let M;var q=k(B);Ja(q,()=>e.titles,T=>{cr(T,{get heading(){return a()},children:(E,P)=>{var F=me(),W=J(F);Ie(W,16,()=>({length:12}),je,($,N)=>{var O=dp(),K=z(k(O),4);{var Y=Q=>{var X=cp(),ae=k(X);Ie(ae,20,()=>({length:3}),je,(we,Se)=>{var te=sp();w(we,te)}),w(Q,X)};H(K,Q=>{n()&&Q(Y)})}w($,O)}),w(E,F)},$$slots:{default:!0}})},(T,E)=>{var P=me(),F=J(P);{var W=$=>{cr($,{get heading(){return a()},onchange:N=>j(o(E),N),onresize:()=>{var N;return(N=o(b))==null?void 0:N.reposition()},get slider(){return o(b)},set slider(N){D(b,N,!0)},children:(N,O)=>{var K=me(),Y=J(K);Ie(Y,17,()=>o(E),je,(Q,X,ae,we)=>{const Se=U(()=>I(o(X))),te=U(()=>qo(o(X))),fe=U(()=>oe=>S(oe,o(E),ae));var he=op();let Ce;var Ve=k(he),Le=k(Ve);{var pe=oe=>{var ge=rp(),rt=k(ge);rt.__click=function(...Gt){var Kt;(Kt=o(fe))==null||Kt.apply(this,Gt)};var Ue=z(rt,2);{var Wt=Gt=>{Qe(kn(Gt,{get embeddable_url(){return o(X).embeddable_url},muted:!0,loop:!0,captions:!0,showMuteControls:!0}),Kt=>D(y,Kt,!0),()=>o(y))},Nn=Gt=>{var Kt=ap();V(()=>ie(Kt,"src",o(X).medium_poster)),w(Gt,Kt)};H(Ue,Gt=>{o(X).embeddable_url?Gt(Wt):Gt(Nn,!1)})}V(()=>ie(rt,"href",o(te))),De(2,ge,()=>ii,()=>({delay:200,duration:200})),w(oe,ge)},Be=oe=>{var ge=np();ge.__click=function(...Ue){var Wt;(Wt=o(fe))==null||Wt.apply(this,Ue)};var rt=k(ge);or(rt,{get title(){return o(X)},width:96,height:144}),V(()=>ie(ge,"href",o(te))),w(oe,ge)};H(Le,oe=>{o(Se)?oe(pe):oe(Be,!1)})}var at=z(Ve,2);at.__click=function(...oe){var ge;(ge=o(fe))==null||ge.apply(this,oe)};var ni=k(at),Pt=z(at,2);{var ee=oe=>{var ge=lp();ge.__click=function(...Ue){var Wt;(Wt=o(fe))==null||Wt.apply(this,Ue)};var rt=k(ge);V(()=>Z(rt,o(X).description)),w(oe,ge)};H(Pt,oe=>{n()&&oe(ee)})}V(()=>{Ce=xe(he,1,"title svelte-12ph9f6",null,Ce,{expanded:o(Se)}),ie(at,"href",o(te)),Z(ni,o(X).title)}),w(Q,he)}),w(N,K)},$$slots:{default:!0}})};H(F,$=>{var N;((N=o(E))==null?void 0:N.length)>=i()&&$(W)})}w(T,P)}),Qe(B,T=>D(m,T),()=>o(m)),V(()=>{M=xe(B,1,`titles ${r()??""}`,"svelte-12ph9f6",M,{"with-aside":n()}),ie(B,"data-role",l()?"expandable-rail":null)}),w(t,B),le()}ve(["click"]);var up=C('<div class="rail svelte-1b834ry"><!></div>'),vp=C('<div data-testid="explore-home"></div> <!>',1);function fp(t,e){ne(e,!0);let i=G(null),a=G(null);const r=[{heading:"List: Trending",params:{ordering:nr.Popular},properties:{expandable:!0}},{heading:"List: New",params:{from_playlist_sid:"li42WR",include_playable_types:"SVOD,FREE"},properties:{aside:!0}},{heading:"List: Upcoming",params:{from_playlist_sid:"li42wf",region:null,no_region_filter:!0},properties:{}},{heading:"List: Cinema",params:{from_playlist_sid:"li42WS",region:null,no_region_filter:!0},properties:{expandable:!0}},{heading:"List: Demand",params:{from_playlist_sid:"licBS"},properties:{aside:!0}}];async function n(s={}){var d;return(d=await wn(s))==null?void 0:d.results}var l=vp();ke("scroll",Me,onscroll);var c=z(J(l),2);Ie(c,17,()=>r,je,(s,d)=>{let p=()=>o(d).heading,u=()=>o(d).params,f=()=>o(d).properties;var h=up(),m=k(h);{let b=U(()=>re(p())),y=U(()=>n(u()));Oo(m,ln({get heading(){return o(b)},get titles(){return o(y)},size:"flexible",minimumLength:7},f,{onclick:()=>de(ce.ExploreTitleRailModalView,null,{rail:p()}),onexpand:g=>de(ce.ExploreTitleRailExpandClick,g,{rail:p()}),get expandedTitle(){return o(i)},set expandedTitle(g){D(i,g,!0)},get expandedRailKey(){return o(a)},set expandedRailKey(g){D(a,g,!0)}}))}w(s,h)}),w(t,l),le()}function dr(t,e={}){const i=new Image;i.src=hp(t,e||{})}function hp(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([n,l])=>[`cd[${n}]`,l])),a={id:Rd,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(n=>n+"="+a[n]).join("&")}`}function Ro(t,e={}){return()=>{Ge(()=>dr(t,e))}}function gp(t,e={}){return i=>{const a=()=>dr(t,e);Ge(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var mp=C("<button><!></button>");function Ai(t,e){const i=R(e,"variant",3,"filled"),a=R(e,"size",3,"base"),r=R(e,"label",3,null),n=R(e,"active",3,!1);var l=mp();let c;l.__click=function(...d){var p;(p=e.onclick)==null||p.apply(this,d)};var s=k(l);Ne(s,()=>e.children??vt),V(()=>{c=xe(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",c,{active:n()}),ie(l,"aria-label",r())}),w(t,l)}ve(["click"]);var yp=Je('<svg viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><title>IMDb rating</title><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function Sn(t,e){const i=R(e,"size",3,14);var a=yp();V(()=>{ie(a,"width",i()),ie(a,"height",i())}),w(t,a)}function No(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let r=a;const n=i.find(s=>s.name===r.name),l=n==null?void 0:n.extra_info.category,c=r.extra_info.category;(l==="RENT"&&c==="BUY"||l==="BUY"&&c==="RENT")&&(i=i.filter(s=>s.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),i.push(r)}return i}var bp=C('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function Tn(t,e){ne(e,!0);let i=G(Ae(Math.random()));var a=me();ke("updateconsent",Me,()=>D(i,Math.random(),!0));var r=J(a);Sa(r,()=>o(i),n=>{var l=me(),c=J(l);{var s=d=>{var p=me(),u=J(p);Ie(u,17,()=>e.pixels,je,(f,h)=>{var m=bp();V(()=>ie(m,"src",o(h))),w(f,m)}),w(d,p)};H(c,d=>{kt("pixels")&&d(s)})}w(n,l)}),w(t,a),le()}var wp=C('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function xp(t,e){ne(e,!0);const i=R(e,"size",3,30),a=R(e,"onclick",3,()=>null),r=U(()=>e.playlink.name),n=U(()=>e.playlink.url),l=U(()=>e.playlink.logo_url),c=U(()=>e.playlink.pixels);var s=wp();s.__click=function(...h){var m;(m=a())==null||m.apply(this,h)};let d;var p=k(s),u=z(p,2);{var f=h=>{Tn(h,{get pixels(){return o(c)}})};H(u,h=>{var m;(m=o(c))!=null&&m.length&&h(f)})}V(h=>{ie(s,"href",o(n)),ie(s,"data-playlink",o(r)),d=Fe(s,"",d,{"--size":`${i()??""}px`}),ie(p,"src",h),ie(p,"alt",o(r)),ie(p,"height",i()),ie(p,"width",i())},[()=>lr(o(l))]),w(t,s),le()}ve(["click"]);var _p=C('<span class="more svelte-1plv45z"> </span>'),kp=C('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),Sp=C('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function Bo(t,e){ne(e,!0);const i=R(e,"size",3,30),a=U(()=>No(e.playlinks).slice(0,3));function r(u){u.stopPropagation()}var n=Sp(),l=k(n);Ie(l,17,()=>o(a),je,(u,f)=>{xp(u,{get playlink(){return o(f)},onclick:r,get size(){return i()}})});var c=z(l,2);{var s=u=>{var f=_p(),h=k(f);V(()=>Z(h,`+${e.playlinks.length-o(a).length}`)),w(u,f)};H(c,u=>{e.playlinks.length>o(a).length&&u(s)})}var d=z(c,2);{var p=u=>{var f=kp();w(u,f)};H(d,u=>{e.playlinks.length||u(p)})}w(t,n),le()}var Tp=C("<div>Series</div>"),Ep=C("<div> </div>"),Pp=C('<button class="title svelte-12igath" data-testid="title"><div class="poster svelte-12igath"><!> <div class="meta svelte-12igath"><div class="imdb svelte-12igath"><!> </div> <!> <!></div></div> <div class="content svelte-12igath"><div class="heading svelte-12igath"> </div> <!></div></button>');function Cp(t,e){ne(e,!0);const i=R(e,"onclick",3,()=>null);var a=Pp();a.__click=function(...S){var x;(x=i())==null||x.apply(this,S)};var r=k(a),n=k(r);or(n,{get title(){return e.title},width:120,height:213,lazy:!0});var l=z(n,2),c=k(l),s=k(c);Sn(s,{size:12});var d=z(s),p=z(c,2);{var u=S=>{var x=Tp();w(S,x)};H(p,S=>{e.title.type==="series"&&S(u)})}var f=z(p,2);{var h=S=>{var x=Ep(),_=k(x);V(()=>Z(_,`${e.title.length??""} min`)),w(S,x)};H(f,S=>{e.title.length&&S(h)})}var m=z(r,2),b=k(m),y=k(b),g=z(b,2);Bo(g,{get playlinks(){return e.title.providers},size:20}),V(()=>{Z(d,` ${e.title.imdb_score||"-"}`),Z(y,e.title.title)}),w(t,a),le()}ve(["click"]),Gs();var zp=C('<div class="skeleton svelte-1uz2nzg" data-testid="skeleton"><div class="poster svelte-1uz2nzg"></div> <div class="lines svelte-1uz2nzg"><div class="line svelte-1uz2nzg"></div></div></div>');function Ip(t){var e=zp(),i=z(k(e),2),a=k(i);Fe(a,"",{},{width:"60%"}),w(t,e)}var jp=C('<div class="svelte-pkkpyl"> </div>'),Ap=C('<button class="title svelte-pkkpyl" data-testid="title"><div class="poster svelte-pkkpyl"><!></div> <div class="content svelte-pkkpyl"><div class="heading svelte-pkkpyl"> </div> <div class="meta svelte-pkkpyl"><div class="imdb svelte-pkkpyl"><!> </div> <div class="svelte-pkkpyl"> </div> <div class="svelte-pkkpyl"> </div> <!></div> <div> </div> <!></div> <div class="action svelte-pkkpyl"><!></div></button>');function Fo(t,e){var T;ne(e,!0);const i=R(e,"onclick",3,()=>null),a=!!((T=window.PlayPilotLinkInjections)!=null&&T.no_affiliate);var r=Ap();r.__click=function(...E){var P;(P=i())==null||P.apply(this,E)};var n=k(r),l=k(n);or(l,{get title(){return e.title},width:30,height:43,lazy:!0});var c=z(n,2),s=k(c),d=k(s),p=z(s,2),u=k(p),f=k(u);Sn(f,{size:11});var h=z(f),m=z(u,2),b=k(m),y=z(m,2),g=k(y),S=z(y,2);{var x=E=>{var P=jp(),F=k(P);V(()=>Z(F,`${e.title.length??""} min`)),w(E,P)};H(S,E=>{e.title.length&&E(x)})}var _=z(p,2);let L;var I=k(_),j=z(_,2);{var B=E=>{Bo(E,{get playlinks(){return e.title.providers}})};H(j,E=>{a||E(B)})}var M=z(c,2),q=k(M);St(q,{}),V(E=>{Z(d,e.title.title),Z(h,` ${e.title.imdb_score||"-"}`),Z(b,e.title.year),Z(g,E),L=xe(_,1,"description svelte-pkkpyl",null,L,{large:a}),Z(I,e.title.description)},[()=>re(`Type: ${e.title.type}`)]),w(t,r),le()}ve(["click"]);var Lp=C('<div class="skeleton svelte-17sb7p8" data-testid="skeleton"><div class="poster svelte-17sb7p8"></div> <div class="lines svelte-17sb7p8"><div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div> <div class="line svelte-17sb7p8"></div></div></div>');function Mp(t){var e=Lp(),i=z(k(e),2),a=k(i);Fe(a,"",{},{width:"40%"});var r=z(a,2);Fe(r,"",{},{width:"60%"});var n=z(r,2);Fe(n,"",{},{width:"80%"}),w(t,e)}var Dp=C(`<div class="empty svelte-4bt48"><p class="svelte-4bt48"><strong class="svelte-4bt48">No results were found</strong><br/> Sorry, we couldn't find anything matching your filter.</p></div>`);function qp(t){var e=Dp();w(t,e)}var Op=C("<!> ",1),Rp=C("<div><!></div>"),Np=C("<!> <!>",1),Bp=C("<p>Something went wrong</p>"),Fp=C('<!> <div role="main" data-testid="explore-results"><!> <!></div> <!>',1);function Hp(t,e){ne(e,!0);const i=R(e,"searchQuery",3,""),a=R(e,"filter",19,()=>({})),r=R(e,"navigate",3,()=>null);let n=1,l=G(Ae([])),c=null,s=0,d=JSON.stringify(a())+i(),p=G(Ae(y())),u=G(0);const f=U(()=>o(u)>500),h=U(()=>o(u)>1400?8:o(u)>900?6:o(u)>600?4:3),m=U(()=>o(f)?Cp:Fo),b=U(()=>o(f)?Ip:Mp);Ge(()=>{(i()||s!=0)&&g(i())}),Ge(()=>{a()&&S()});async function y(){s+=1;const N=s,O={page_size:24,page:n};i()&&(O.search=i()),Object.entries(a()).forEach(([Y,{type:Q,value:X}])=>{if(Q==="string")O[Y]=X;else if(Q==="array")O[Y]=X.join(",");else if(Q==="range"){const[ae,we]=X;O[Y+"_min"]=ae,O[Y+"_max"]=we}});const K=await wn(O)||{next:null,previous:null,results:[]};return N===s&&D(l,[...o(l),...K.results],!0),K}async function g(N){j()&&(c&&clearTimeout(c),c=setTimeout(()=>{x(),D(p,y(),!0),N&&(de(ce.ExploreSearch,null,{query:N}),kt("pixels")&&dr(Pa.SearchQuery,{query:N}))},100))}function S(){j()&&(x(),D(p,y(),!0))}function x(){n=1,D(l,[],!0)}function _(){n++,D(p,y(),!0),de(ce.ExploreShowMore,null,{page:n})}function L(N,O){hi({event:N,data:O}),de(ce.ExploreTitleClick,O)}function I(){for(const N of Object.keys(a()))delete a()[N]}function j(){const N=JSON.stringify(a())+i();return N===d?!1:(d=N,!0)}var B=Fp(),M=J(B);{var q=N=>{Ai(N,{variant:"link",onclick:()=>{r()("home"),I()},children:(O,K)=>{var Y=Op(),Q=J(Y);St(Q,{direction:"left"});var X=z(Q);V(ae=>Z(X,` ${ae??""}`),[()=>re("Home")]),w(O,Y)},$$slots:{default:!0}})};H(M,N=>{Li()&&N(q)})}var T=z(M,2);let E,P;var F=k(T);Ie(F,17,()=>o(l),je,(N,O)=>{var K=me(),Y=J(K);Sa(Y,()=>o(O).sid,Q=>{var X=me(),ae=J(X);Yr(ae,()=>o(m),(we,Se)=>{Se(we,{get title(){return o(O)},onclick:te=>L(te,o(O))})}),w(Q,X)}),w(N,K)});var W=z(F,2);Ja(W,()=>o(p),N=>{var O=me(),K=J(O);Ie(K,16,()=>({length:24}),je,(Y,Q)=>{var X=me(),ae=J(X);Yr(ae,()=>o(b),(we,Se)=>{Se(we,{})}),w(Y,X)}),w(N,O)},void 0,N=>{});var $=z(T,2);Ja($,()=>o(p),null,(N,O)=>{var K=U(()=>{var{next:te}=o(O);return{next:te}}),Y=U(()=>o(K).next),Q=Np(),X=J(Q);{var ae=te=>{var fe=Rp();let he;var Ce=k(fe);Ai(Ce,{size:"large",onclick:_,children:(Ve,Le)=>{var pe=ui();V(Be=>Z(pe,Be),[()=>re("Show More")]),w(Ve,pe)},$$slots:{default:!0}}),V(()=>he=xe(fe,1,"show-more svelte-qc99of",null,he,{grid:o(f)})),w(te,fe)};H(X,te=>{o(Y)&&te(ae)})}var we=z(X,2);{var Se=te=>{qp(te)};H(we,te=>{var fe;!((fe=o(l))!=null&&fe.length)&&n===1&&te(Se)})}w(N,Q)},N=>{var O=Bp();w(N,O)}),V(()=>{E=xe(T,1,"titles svelte-qc99of",null,E,{grid:o(f)}),P=Fe(T,"",P,{"--grid-columns":o(h)})}),_t(T,"clientWidth",N=>D(u,N)),w(t,B),le()}var Vp=Je('<svg width="18" height="18" viewBox="0 0 19 19"><path fill="currentColor" d="M16.593,2.407a8.155,8.155,0,0,0-11.569,0A8.166,8.166,0,0,0,4.18,12.983L.38,16.8a1.3,1.3,0,0,0,0,1.837A1.372,1.372,0,0,0,1.288,19a1.3,1.3,0,0,0,.908-.38L6.017,14.8A8.172,8.172,0,0,0,16.593,2.407ZM15.327,12.688A6.4,6.4,0,1,1,17.184,8.17,6.324,6.324,0,0,1,15.327,12.688Z"></path></svg>');function Up(t){var e=Vp();w(t,e)}var Wp=C('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Gp(t,e){ne(e,!0);let i=G("");var a=Wp(),r=k(a),n=k(r);Up(n);var l=z(r,2);l.__input=()=>e.oninput(o(i)),V(c=>ie(l,"placeholder",c),[()=>re("Search Movies And Shows")]),Ta(l,()=>o(i),c=>D(i,c)),w(t,a),le()}ve(["input"]);const Kp=[{label:"Aruba",value:"AW"},{label:"Afghanistan",value:"AF"},{label:"Angola",value:"AO"},{label:"Anguilla",value:"AI"},{label:"Albania",value:"AL"},{label:"Andorra",value:"AD"},{label:"United Arab Emirates",value:"AE"},{label:"Argentina",value:"AR"},{label:"Armenia",value:"AM"},{label:"American Samoa",value:"AS"},{label:"Antigua and Barbuda",value:"AG"},{label:"Australia",value:"AU"},{label:"Austria",value:"AT"},{label:"Azerbaijan",value:"AZ"},{label:"Burundi",value:"BI"},{label:"Belgium",value:"BE"},{label:"Benin",value:"BJ"},{label:"Burkina Faso",value:"BF"},{label:"Bangladesh",value:"BD"},{label:"Bulgaria",value:"BG"},{label:"Bahrain",value:"BH"},{label:"Bahamas",value:"BS"},{label:"Bosnia and Herzegovina",value:"BA"},{label:"Belarus",value:"BY"},{label:"Belize",value:"BZ"},{label:"Bermuda",value:"BM"},{label:"Bolivia",value:"BO"},{label:"Brazil",value:"BR"},{label:"Barbados",value:"BB"},{label:"Brunei",value:"BN"},{label:"Bhutan",value:"BT"},{label:"Botswana",value:"BW"},{label:"Central African Republic",value:"CF"},{label:"Canada",value:"CA"},{label:"Switzerland",value:"CH"},{label:"Chile",value:"CL"},{label:"China",value:"CN"},{label:"Côte d'Ivoire",value:"CI"},{label:"Cameroon",value:"CM"},{label:"DR Congo",value:"CD"},{label:"Congo",value:"CG"},{label:"Cook Islands",value:"CK"},{label:"Colombia",value:"CO"},{label:"Comoros",value:"KM"},{label:"Cabo Verde",value:"CV"},{label:"Costa Rica",value:"CR"},{label:"Cuba",value:"CU"},{label:"Curaçao",value:"CW"},{label:"Cayman Islands",value:"KY"},{label:"Cyprus",value:"CY"},{label:"Czechia",value:"CZ"},{label:"Germany",value:"DE"},{label:"Djibouti",value:"DJ"},{label:"Dominica",value:"DM"},{label:"Denmark",value:"DK"},{label:"Dominican Republic",value:"DO"},{label:"Algeria",value:"DZ"},{label:"Ecuador",value:"EC"},{label:"Egypt",value:"EG"},{label:"Eritrea",value:"ER"},{label:"Spain",value:"ES"},{label:"Estonia",value:"EE"},{label:"Ethiopia",value:"ET"},{label:"Finland",value:"FI"},{label:"Fiji",value:"FJ"},{label:"Falkland Islands",value:"FK"},{label:"France",value:"FR"},{label:"Faroe Islands",value:"FO"},{label:"Micronesia",value:"FM"},{label:"Gabon",value:"GA"},{label:"United Kingdom",value:"GB"},{label:"Georgia",value:"GE"},{label:"Ghana",value:"GH"},{label:"Gibraltar",value:"GI"},{label:"Guinea",value:"GN"},{label:"Guadeloupe",value:"GP"},{label:"Gambia",value:"GM"},{label:"Guinea-Bissau",value:"GW"},{label:"Equatorial Guinea",value:"GQ"},{label:"Greece",value:"GR"},{label:"Grenada",value:"GD"},{label:"Greenland",value:"GL"},{label:"Guatemala",value:"GT"},{label:"Guyana",value:"GY"},{label:"Hong Kong",value:"HK"},{label:"Honduras",value:"HN"},{label:"Croatia",value:"HR"},{label:"Haiti",value:"HT"},{label:"Hungary",value:"HU"},{label:"Indonesia",value:"ID"},{label:"India",value:"IN"},{label:"Ireland",value:"IE"},{label:"Iran",value:"IR"},{label:"Iraq",value:"IQ"},{label:"Iceland",value:"IS"},{label:"Israel",value:"IL"},{label:"Italy",value:"IT"},{label:"Jamaica",value:"JM"},{label:"Jordan",value:"JO"},{label:"Japan",value:"JP"},{label:"Kazakhstan",value:"KZ"},{label:"Kenya",value:"KE"},{label:"Kyrgyzstan",value:"KG"},{label:"Cambodia",value:"KH"},{label:"Kiribati",value:"KI"},{label:"Saint Kitts and Nevis",value:"KN"},{label:"South Korea",value:"KR"},{label:"Kuwait",value:"KW"},{label:"Laos",value:"LA"},{label:"Lebanon",value:"LB"},{label:"Liberia",value:"LR"},{label:"Libya",value:"LY"},{label:"Saint Lucia",value:"LC"},{label:"Liechtenstein",value:"LI"},{label:"Sri Lanka",value:"LK"},{label:"Lesotho",value:"LS"},{label:"Lithuania",value:"LT"},{label:"Luxembourg",value:"LU"},{label:"Latvia",value:"LV"},{label:"Macao",value:"MO"},{label:"Morocco",value:"MA"},{label:"Monaco",value:"MC"},{label:"Moldova",value:"MD"},{label:"Madagascar",value:"MG"},{label:"Maldives",value:"MV"},{label:"Mexico",value:"MX"},{label:"Marshall Islands",value:"MH"},{label:"North Macedonia",value:"MK"},{label:"Mali",value:"ML"},{label:"Malta",value:"MT"},{label:"Myanmar",value:"MM"},{label:"Montenegro",value:"ME"},{label:"Mongolia",value:"MN"},{label:"Mozambique",value:"MZ"},{label:"Mauritania",value:"MR"},{label:"Martinique",value:"MQ"},{label:"Mauritius",value:"MU"},{label:"Malawi",value:"MW"},{label:"Malaysia",value:"MY"},{label:"Namibia",value:"NA"},{label:"New Caledonia",value:"NC"},{label:"Niger",value:"NE"},{label:"Nigeria",value:"NG"},{label:"Nicaragua",value:"NI"},{label:"Niue",value:"NU"},{label:"Netherlands",value:"NL"},{label:"Norway",value:"NO"},{label:"Nepal",value:"NP"},{label:"Nauru",value:"NR"},{label:"New Zealand",value:"NZ"},{label:"Oman",value:"OM"},{label:"Pakistan",value:"PK"},{label:"Panama",value:"PA"},{label:"Peru",value:"PE"},{label:"Philippines",value:"PH"},{label:"Palau",value:"PW"},{label:"Papua New Guinea",value:"PG"},{label:"Poland",value:"PL"},{label:"Puerto Rico",value:"PR"},{label:"North Korea",value:"KP"},{label:"Portugal",value:"PT"},{label:"Paraguay",value:"PY"},{label:"Palestine",value:"PS"},{label:"French Polynesia",value:"PF"},{label:"Qatar",value:"QA"},{label:"Romania",value:"RO"},{label:"Russian Federation",value:"RU"},{label:"Rwanda",value:"RW"},{label:"Saudi Arabia",value:"SA"},{label:"Sudan",value:"SD"},{label:"Senegal",value:"SN"},{label:"Singapore",value:"SG"},{label:"Solomon Islands",value:"SB"},{label:"Sierra Leone",value:"SL"},{label:"El Salvador",value:"SV"},{label:"San Marino",value:"SM"},{label:"Somalia",value:"SO"},{label:"Serbia",value:"RS"},{label:"South Sudan",value:"SS"},{label:"São Tomé and Príncipe",value:"ST"},{label:"Suriname",value:"SR"},{label:"Slovakia",value:"SK"},{label:"Slovenia",value:"SI"},{label:"Sweden",value:"SE"},{label:"Eswatini",value:"SZ"},{label:"Seychelles",value:"SC"},{label:"Syria",value:"SY"},{label:"Chad",value:"TD"},{label:"Togo",value:"TG"},{label:"Thailand",value:"TH"},{label:"Tajikistan",value:"TJ"},{label:"Turkmenistan",value:"TM"},{label:"Timor-Leste",value:"TL"},{label:"Tonga",value:"TO"},{label:"Trinidad and Tobago",value:"TT"},{label:"Tunisia",value:"TN"},{label:"Turkey",value:"TR"},{label:"Tuvalu",value:"TV"},{label:"Taiwan",value:"TW"},{label:"Tanzania",value:"TZ"},{label:"Uganda",value:"UG"},{label:"Ukraine",value:"UA"},{label:"Uruguay",value:"UY"},{label:"United States",value:"US"},{label:"Uzbekistan",value:"UZ"},{label:"Saint Vincent and the Grenadines",value:"VC"},{label:"Venezuela",value:"VE"},{label:"Vietnam",value:"VN"},{label:"Vanuatu",value:"VU"},{label:"Samoa",value:"WS"},{label:"Yemen",value:"YE"},{label:"South Africa",value:"ZA"},{label:"Zambia",value:"ZM"},{label:"Zimbabwe",value:"ZW"}];async function Zp(){const t=vi();if(!t)throw new Error("No token was provided");const e={region:await bn(),page:1,include_count:"false"};return await ti(`/providers/?api-token=${t}&`+fn(e))}function Yp(t){const e=t-1;return e*e*e+1}function Jp(t,{from:e,to:i},a={}){var{delay:r=0,duration:n=I=>Math.sqrt(I)*120,easing:l=Yp}=a,c=getComputedStyle(t),s=c.transform==="none"?"":c.transform,[d,p]=c.transformOrigin.split(" ").map(parseFloat);d/=t.clientWidth,p/=t.clientHeight;var u=Qp(t),f=t.clientWidth/i.width/u,h=t.clientHeight/i.height/u,m=e.left+e.width*d,b=e.top+e.height*p,y=i.left+i.width*d,g=i.top+i.height*p,S=(m-y)*f,x=(b-g)*h,_=e.width/i.width,L=e.height/i.height;return{delay:r,duration:typeof n=="function"?n(Math.sqrt(S*S+x*x)):n,easing:l,css:(I,j)=>{var B=j*S,M=j*x,q=I+j*_,T=I+j*L;return`transform: ${s} translate(${B}px, ${M}px) scale(${q}, ${T});`}}}function Qp(t){if("currentCSSZoom"in t)return t.currentCSSZoom;for(var e=t,i=1;e!==null;)i*=+getComputedStyle(e).zoom,e=e.parentElement;return i}var Xp=Je('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M200-440v-80h560v80H200Z" fill="currentColor"></path></svg>');function $p(t){var e=Xp();w(t,e)}var eu=Je('<svg width="18px" height="18px" viewBox="0 -960 960 960"><path d="M440-440H200v-80h240v-240h80v240h240v80H520v240h-80v-240Z" fill="currentColor"></path></svg>');function tu(t){var e=eu();w(t,e)}var iu=C('<div class="icon svelte-dfwzqz"><!></div>'),au=C('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),ru=C('<div class="header svelte-dfwzqz"><input type="text" class="input svelte-dfwzqz" aria-label="Search"/></div> <div class="options" data-testid="toggles-with-search"></div>',1);function nu(t,e){ne(e,!0);let i=R(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=R(e,"selected",23,()=>[]),r=R(e,"placeholder",19,()=>`${re("Search")}...`),n=R(e,"onchange",3,()=>null),l=G("");const c=U(s);function s(){var m;return(m=i())!=null&&m.length?o(l)?i().filter(({label:b})=>b.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(m){const b=a().find(y=>y===m);a(b?a().filter(y=>y!==m):[...a(),m]),n()(a())}var p=ru(),u=J(p),f=k(u),h=z(u,2);Ie(h,29,()=>o(c)||[],({label:m,value:b})=>b,(m,b)=>{let y=()=>o(b).label,g=()=>o(b).value;const S=U(()=>!!a().find(M=>M===g()));var x=au(),_=k(x);let L;_.__click=()=>d(g());var I=k(_),j=z(I),B=k(j);Sa(B,()=>o(S),M=>{var q=iu(),T=k(q);{var E=F=>{$p(F)},P=F=>{tu(F)};H(T,F=>{o(S)?F(E):F(P,!1)})}De(3,q,()=>aa,()=>({start:.25,duration:100})),w(M,q)}),V(()=>{L=xe(_,1,"option svelte-dfwzqz",null,L,{active:o(S)}),Z(I,`${y()??""} `)}),Vc(x,()=>Jp,()=>({duration:150})),w(m,x)}),V(()=>ie(f,"placeholder",r())),Ta(f,()=>o(l),m=>D(l,m)),w(t,p),le()}ve(["click"]);var lu=C('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),ou=C("<div><!> <!></div>");function Ho(t,e){ne(e,!0);let i=G(!1),a=G(null),r=G(null),n=G("left"),l=G(0),c=G(0);function s(b){const y=b.target;y&&y.closest(".dropdown")!==o(a)&&D(i,!1)}function d(b){D(i,!o(i)),o(i)&&(D(c,0),D(l,0),p(b.target))}async function p(b){if(await _a(),!o(r))return;const y=16,g=200,S=window.innerHeight,x=window.innerWidth,{top:_}=o(r).getBoundingClientRect(),{left:L}=b.getBoundingClientRect();D(n,L<window.innerWidth/2?"left":"right",!0),D(l,Math.max(Math.min(window.innerHeight-_-y,S*.6),g),!0),await _a();const{left:I,right:j}=o(r).getBoundingClientRect(),B=x-j;I-y<0?D(c,B):B-y<0&&D(c,B-y)}var u=ou();ke("click",Me,s);var f=k(u);Ne(f,()=>e.button,()=>({toggle:d}));var h=z(f,2);{var m=b=>{var y=lu();let g;var S=k(y);Ne(S,()=>e.content),Qe(y,x=>D(r,x),()=>o(r)),V(()=>g=Fe(y,"",g,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(c)?`${o(c)}px`:null})),De(3,y,()=>aa,()=>({start:.85,duration:100})),w(b,y)};H(h,b=>{o(i)&&b(m)})}Qe(u,b=>D(a,b),()=>o(a)),V(()=>xe(u,1,`dropdown ${o(n)??""}`,"svelte-fg0dzp")),w(t,u),le()}var su=C('<span class="label svelte-1mfj6k7"> </span>'),cu=C('<div class="active-line svelte-1mfj6k7"></div>'),du=C('<div class="slider svelte-1mfj6k7"><!> <span><input type="range" id="lower"/> <input type="range" id="upper"/> <div class="value-marker svelte-1mfj6k7"> </div> <div class="value-marker right svelte-1mfj6k7"> </div> <!></span></div>');function pu(t,e){ne(e,!0);const i=R(e,"range",19,()=>[0,100]),a=R(e,"value",19,i),r=R(e,"label",3,""),n=R(e,"valueAppend",3,""),l=R(e,"formatFunction",3,N=>N.toString()),c=R(e,"onchange",3,()=>null);let s=i(),d=U(()=>ua(s,2)),p=G(Ae(o(d)[0])),u=G(Ae(o(d)[1]));const f=U(()=>o(p)!==i()[0]||o(u)!==i()[1]),h=U(()=>100/(i()[1]-i()[0])*(o(p)-i()[0])),m=U(()=>100+100/(i()[1]-i()[0])*(o(u)-i()[1])-o(h)),b=U(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(p)-o(u))<5);Ge(()=>{y(a())}),Ge(()=>{D(u,Math.max(o(u),o(p)+1),!0),D(u,Math.min(o(u),i()[1]),!0),D(p,Math.min(o(p),o(u)-1),!0),D(p,Math.max(o(p),i()[0]),!0)});function y(N){(O=>{var K=ua(O,2);D(p,K[0],!0),D(u,K[1],!0)})(N)}function g(){requestAnimationFrame(()=>c()([o(p),o(u)]))}var S=du(),x=k(S);{var _=N=>{var O=su(),K=k(O);V((Y,Q)=>Z(K,`${r()??""}: ${Y??""}—${Q??""} ${n()??""}`),[()=>l()(o(p)),()=>l()(o(u))]),w(N,O)};H(x,N=>{r()&&N(_)})}var L=z(x,2);let I;var j=k(L);j.__mouseup=g,j.__touchend=g,j.__input=function(...N){};let B;var M=z(j,2);M.__mouseup=g,M.__touchend=g,M.__input=function(...N){};let q;var T=z(M,2),E=k(T),P=z(T,2),F=k(P),W=z(P,2);{var $=N=>{var O=cu();let K;V(()=>K=Fe(O,"",K,{left:o(h)+"%","--width":o(m)+"%"})),w(N,O)};H(W,N=>{o(f)&&N($)})}V(()=>{I=xe(L,1,"range svelte-1mfj6k7",null,I,{halved:o(b)}),ie(j,"min",i()[0]),ie(j,"max",i()[1]),B=xe(j,1,"svelte-1mfj6k7",null,B,{active:o(f)}),ie(M,"min",i()[0]),ie(M,"max",i()[1]),q=xe(M,1,"svelte-1mfj6k7",null,q,{active:o(f)}),Z(E,o(p)),Z(F,o(u))}),Ta(j,()=>o(p),N=>D(p,N)),Ta(M,()=>o(u),N=>D(u,N)),w(t,S),le()}ve(["mouseup","touchend","input"]);var uu=C(" <!>",1),vu=C('<p class="loading"> </p>'),fu=C('<p class="error"> </p>'),hu=C('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),gu=C('<div data-testid="filter-item"><!></div>');function mu(t,e){ne(e,!0);let i=R(e,"filter",7),a=R(e,"onchange",3,()=>null),r=R(e,"data",7,null),n=R(e,"fetchData",3,null),l=R(e,"range",3,null),c=R(e,"valueAppend",3,"");const s=U(()=>{if(!i()[e.param])return!1;const{type:b,value:y}=i()[e.param];return!(b==="array"&&!y.length||b==="range"&&JSON.stringify(y)===JSON.stringify(l()))});let d=G(!!n());Ge(()=>{!r()&&n()&&p()});async function p(){try{D(d,!0),r(await n()())}catch{de(ce.ExploreFetchProvidersFailed)}finally{D(d,!1)}}function u(b,y){if(de(ce.ExploreSetFilter,null,{key:e.param,value:b,total_filter:i()}),!b){delete i()[e.param];return}i()[e.param]={type:y,value:b},a()()}var f=gu();let h;var m=k(f);Ho(m,{button:(g,S)=>{let x=()=>S==null?void 0:S().toggle;Ai(g,{variant:"border",size:"large",get active(){return o(s)},get onclick(){return x()},children:(_,L)=>{var I=uu(),j=J(I),B=z(j);St(B,{direction:"down"}),V(()=>Z(j,`${e.label??""} `)),w(_,I)},$$slots:{default:!0}})},content:g=>{var S=hu(),x=k(S);{var _=M=>{var q=vu(),T=k(q);V(E=>Z(T,`${E??""}...`),[()=>re("Loading")]),w(M,q)},L=M=>{var q=me(),T=J(q);{var E=P=>{var F=fu(),W=k(F);V($=>Z(W,$),[()=>re("An Error Occurred")]),w(P,F)};H(T,P=>{n()&&!r()&&P(E)},!0)}w(M,q)};H(x,M=>{o(d)?M(_):M(L,!1)})}var I=z(x,2);{var j=M=>{const q=U(()=>{var T;return(T=i()[e.param])==null?void 0:T.value});nu(M,{get options(){return r()},get selected(){return o(q)},onchange:T=>u(T,"array")})},B=M=>{var q=me(),T=J(q);{var E=P=>{const F=U(()=>{var W;return(W=i()[e.param])==null?void 0:W.value});pu(P,{get range(){return l()},get value(){return o(F)},get label(){return e.label},get valueAppend(){return c()},onchange:W=>u(W,"range")})};H(T,P=>{l()&&P(E)},!0)}w(M,q)};H(I,M=>{r()?M(j):M(B,!1)})}w(g,S)},$$slots:{button:!0,content:!0}}),V(()=>h=xe(f,1,"filter-item svelte-er0ukh",null,h,{active:o(s)})),w(t,f),le()}var yu=C(" <!>",1),bu=C("<button> </button>"),wu=C('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function xu(t,e){ne(e,!0);const i=R(e,"filter",7),a=R(e,"onchange",3,()=>null),r="ordering",n=[{label:"Popularity",value:nr.Popular},{label:"New",value:nr.New},{label:"Top Rated",value:nr.Best}],l=U(()=>{var s;return((s=n.find(({value:d})=>{var p;return d===((p=i()[r])==null?void 0:p.value)}))==null?void 0:s.label)||"Sort By"});function c(s){s?i()[r]={type:"string",value:s}:delete i()[r],a()()}Ho(t,{button:(p,u)=>{let f=()=>u==null?void 0:u().toggle;Ai(p,{variant:"link",get onclick(){return f()},children:(h,m)=>{var b=yu(),y=J(b),g=z(y);St(g,{direction:"down"}),V(S=>Z(y,`${S??""} `),[()=>re(o(l))]),w(h,b)},$$slots:{default:!0}})},content:p=>{var u=wu();Ie(u,21,()=>n,je,(f,h,m,b)=>{let y=()=>o(h).label,g=()=>o(h).value;const S=U(()=>{var I;return g()===((I=i()[r])==null?void 0:I.value)});var x=bu();let _;x.__click=()=>c(g());var L=k(x);V(I=>{_=xe(x,1,"option svelte-1ibt2k4",null,_,{active:o(S)}),Z(L,I)},[()=>re(y())]),w(f,x)}),w(p,u)},$$slots:{button:!0,content:!0}}),le()}ve(["click"]);var _u=Je('<svg width="11" height="13" viewBox="0 0 11 13"><path d="M9.77037 6.86774C9.68778 7.21645 9.48992 7.52709 9.20883 7.74937C8.92774 7.97166 8.57987 8.09259 8.22151 8.09259C7.86315 8.09259 7.51528 7.97166 7.23419 7.74937C6.9531 7.52709 6.75525 7.21645 6.67265 6.86774L0.385491 6.86774C0.335766 6.87014 0.286069 6.86243 0.239415 6.84505C0.192761 6.82768 0.150121 6.80101 0.114079 6.76667C0.0780373 6.73233 0.0493441 6.69103 0.0297394 6.64527C0.0101337 6.5995 2.67029e-05 6.55024 2.67029e-05 6.50045C2.67029e-05 6.45067 0.0101337 6.40141 0.0297394 6.35565C0.0493441 6.30989 0.0780373 6.26858 0.114079 6.23424C0.150121 6.1999 0.192761 6.17323 0.239415 6.15586C0.286069 6.13849 0.335766 6.13077 0.385491 6.13317L6.67265 6.13317C6.75525 5.78446 6.9531 5.47382 7.23419 5.25154C7.51528 5.02925 7.86315 4.90833 8.22151 4.90833C8.57987 4.90833 8.92774 5.02925 9.20883 5.25154C9.48992 5.47382 9.68778 5.78446 9.77037 6.13317H10.1801C10.2298 6.13077 10.2795 6.13849 10.3262 6.15586C10.3728 6.17323 10.4155 6.1999 10.4515 6.23424C10.4875 6.26858 10.5162 6.30989 10.5358 6.35565C10.5554 6.40141 10.5656 6.45067 10.5656 6.50045C10.5656 6.55024 10.5554 6.5995 10.5358 6.64527C10.5162 6.69103 10.4875 6.73233 10.4515 6.76667C10.4155 6.80101 10.3728 6.82768 10.3262 6.84505C10.2795 6.86243 10.2298 6.87014 10.1801 6.86774H9.77037ZM8.22151 5.64374C8.05198 5.64374 7.88626 5.69401 7.74531 5.7882C7.60435 5.88238 7.49449 6.01625 7.42961 6.17287C7.36474 6.32949 7.34776 6.50183 7.38084 6.6681C7.41391 6.83437 7.49554 6.9871 7.61542 7.10698C7.73529 7.22685 7.88802 7.30849 8.05429 7.34156C8.22056 7.37463 8.3929 7.35766 8.54953 7.29278C8.70615 7.22791 8.84002 7.11805 8.9342 6.97709C9.02839 6.83613 9.07866 6.67041 9.07866 6.50089C9.07877 6.38825 9.05668 6.2767 9.01366 6.17261C8.97063 6.06851 8.90751 5.97392 8.82791 5.89424C8.7483 5.81455 8.65377 5.75134 8.54973 5.70821C8.44568 5.66508 8.33415 5.64288 8.22151 5.64288V5.64374Z" fill="currentColor"></path><path d="M3.8929 2.45945C3.8103 2.80816 3.61245 3.11879 3.33136 3.34108C3.05027 3.56336 2.7024 3.68429 2.34404 3.68429C1.98568 3.68429 1.63781 3.56336 1.35672 3.34108C1.07563 3.11879 0.87778 2.80816 0.795181 2.45945H0.385466C0.291124 2.45489 0.202153 2.4142 0.136997 2.34582C0.0718422 2.27744 0.0354977 2.18661 0.0354977 2.09216C0.0354977 1.99771 0.0718422 1.90688 0.136997 1.8385C0.202153 1.77012 0.291124 1.72943 0.385466 1.72488H0.795181C0.87778 1.37617 1.07563 1.06553 1.35672 0.843245C1.63781 0.620959 1.98568 0.500031 2.34404 0.500031C2.7024 0.500031 3.05027 0.620959 3.33136 0.843245C3.61245 1.06553 3.8103 1.37617 3.8929 1.72488L10.1801 1.72488C10.2744 1.72943 10.3634 1.77012 10.4285 1.8385C10.4937 1.90688 10.53 1.99771 10.53 2.09216C10.53 2.18661 10.4937 2.27744 10.4285 2.34582C10.3634 2.4142 10.2744 2.45489 10.1801 2.45945L3.8929 2.45945ZM2.34404 1.23544C2.17451 1.23544 2.00879 1.28572 1.86784 1.3799C1.72688 1.47408 1.61702 1.60795 1.55214 1.76458C1.48727 1.9212 1.47029 2.09354 1.50337 2.25981C1.53644 2.42608 1.61807 2.57881 1.73795 2.69868C1.85782 2.81856 2.01055 2.90019 2.17682 2.93327C2.34309 2.96634 2.51543 2.94936 2.67206 2.88449C2.82868 2.81961 2.96255 2.70975 3.05673 2.56879C3.15092 2.42784 3.20119 2.26212 3.20119 2.09259C3.2013 1.97996 3.17921 1.8684 3.13619 1.76431C3.09316 1.66022 3.03004 1.56563 2.95044 1.48594C2.87083 1.40626 2.77631 1.34304 2.67226 1.29992C2.56821 1.25679 2.45668 1.23459 2.34404 1.23459V1.23544Z" fill="currentColor"></path><path d="M6.0975 11.2752C6.01491 11.6239 5.81705 11.9345 5.53596 12.1568C5.25488 12.3791 4.907 12.5 4.54864 12.5C4.19028 12.5 3.84241 12.3791 3.56132 12.1568C3.28024 11.9345 3.08238 11.6239 2.99978 11.2752H0.385491C0.335766 11.2776 0.286069 11.2699 0.239415 11.2525C0.192761 11.2351 0.150121 11.2085 0.114079 11.1741C0.0780373 11.1398 0.0493441 11.0985 0.0297394 11.0527C0.0101337 11.0069 2.67029e-05 10.9577 2.67029e-05 10.9079C2.67029e-05 10.8581 0.0101337 10.8088 0.0297394 10.7631C0.0493441 10.7173 0.0780373 10.676 0.114079 10.6417C0.150121 10.6073 0.192761 10.5807 0.239415 10.5633C0.286069 10.5459 0.335766 10.5382 0.385491 10.5406H2.99978C3.08238 10.1919 3.28024 9.88126 3.56132 9.65898C3.84241 9.43669 4.19028 9.31577 4.54864 9.31577C4.907 9.31577 5.25488 9.43669 5.53596 9.65898C5.81705 9.88126 6.01491 10.1919 6.0975 10.5406H10.1801C10.2298 10.5382 10.2795 10.5459 10.3262 10.5633C10.3728 10.5807 10.4155 10.6073 10.4515 10.6417C10.4875 10.676 10.5162 10.7173 10.5358 10.7631C10.5554 10.8088 10.5656 10.8581 10.5656 10.9079C10.5656 10.9577 10.5554 11.0069 10.5358 11.0527C10.5162 11.0985 10.4875 11.1398 10.4515 11.1741C10.4155 11.2085 10.3728 11.2351 10.3262 11.2525C10.2795 11.2699 10.2298 11.2776 10.1801 11.2752H6.0975ZM4.54779 10.0503C4.37826 10.0503 4.21254 10.1006 4.07158 10.1948C3.93063 10.289 3.82077 10.4228 3.75589 10.5795C3.69101 10.7361 3.67404 10.9084 3.70711 11.0747C3.74018 11.241 3.82182 11.3937 3.94169 11.5136C4.06157 11.6334 4.2143 11.7151 4.38057 11.7481C4.54684 11.7812 4.71918 11.7642 4.8758 11.6994C5.03242 11.6345 5.16629 11.5246 5.26048 11.3837C5.35466 11.2427 5.40493 11.077 5.40493 10.9075C5.40493 10.6801 5.31463 10.4621 5.15388 10.3014C4.99313 10.1406 4.77512 10.0503 4.54779 10.0503Z" fill="currentColor"></path></svg>');function ku(t){var e=_u();w(t,e)}var Su=C("<div><!></div>"),Tu=C("<!> <!>",1),Eu=C('<div class="sorting"><!></div>'),Pu=C('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function Cu(t,e){ne(e,!0);const i=R(e,"onchange",3,()=>null),a=R(e,"limit",3,!0),r=R(e,"showSorting",3,!0),n=3,l=[{label:re("Services"),param:"providers",fetchData:async()=>(await Zp()).map(y=>({label:y.name,value:y.slug}))},{label:re("Genres"),param:"genres",data:mn.filter(y=>parseInt(y.slug)<900).map(y=>({label:re(y.name),value:y.slug}))},{label:re("IMDb"),param:"imdb_score",range:[0,10]},{label:re("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:re("Runtime"),param:"length",range:[0,180],valueAppend:re("Minutes")},{label:re("Countries"),param:"country_codes",data:Kp}];let c=G(Ae(a()));var s=Pu();let d;var p=k(s);Ie(p,21,()=>o(c)?l.slice(0,n):l,je,(y,g)=>{var S=Su(),x=k(S);mu(x,ln({get filter(){return e.filter},get onchange(){return i()}},()=>o(g))),De(3,S,()=>aa,()=>({start:.75,duration:100})),w(y,S)});var u=z(p,2),f=k(u);{var h=y=>{Ai(y,{variant:"link",onclick:()=>D(c,!o(c)),children:(g,S)=>{var x=Tu(),_=J(x);ku(_);var L=z(_),I=z(L);{let j=U(()=>o(c)?"down":"up");St(I,{get direction(){return o(j)}})}V(j=>Z(L,` ${j??""} `),[()=>re("All Filters")]),w(g,x)},$$slots:{default:!0}})};H(f,y=>{a()&&y(h)})}var m=z(f,2);{var b=y=>{var g=Eu(),S=k(g);xu(S,{get filter(){return e.filter},get onchange(){return i()}}),De(3,g,()=>za,()=>({x:5,duration:100})),w(y,g)};H(m,y=>{r()&&y(b)})}V(()=>d=xe(s,1,"filter svelte-11dg01g",null,d,{limit:a()})),w(t,s),le()}var zu=C('<p class="description svelte-l2apr8"> </p>'),Iu=C('<div class="filter svelte-l2apr8"><!></div>'),ju=C('<div class="explore playpilot-styled-scrollbar svelte-l2apr8"><div class="header svelte-l2apr8" role="banner"><div><div class="divider svelte-l2apr8"></div> <div class="heading svelte-l2apr8"> </div> <!></div></div> <!> <!> <!></div>');function Au(t,e){ne(e,!0);let i=R(e,"navigate",3,()=>null),a=R(e,"searchQuery",15,""),r=R(e,"filter",27,()=>Ae({})),n=null,l=G(null),c=G(Ae(window.innerWidth));Ge(()=>{var _;D(l,((_=n==null?void 0:n.closest(En))==null?void 0:_.style.height)||null,!0)}),pt(async()=>{var _;de(ce.ExplorePageView),(_=window.PlayPilotLinkInjections.ads)!=null&&_.length||(window.PlayPilotLinkInjections.ads=await Io())});var s=ju();let d;var p=k(s),u=k(p),f=z(k(u),2),h=k(f);Bt(f,_=>Oe==null?void 0:Oe(_));var m=z(f,2);{var b=_=>{var L=zu(),I=k(L);V(j=>Z(I,j),[()=>re("Streaming Guide Description")]),w(_,L)};H(m,_=>{Li()||_(b)})}var y=z(p,2);Gp(y,{oninput:_=>a(_)});var g=z(y,2);{var S=_=>{var L=Iu(),I=k(L);{let j=U(()=>o(c)<500),B=U(()=>!a());Cu(I,{get filter(){return r()},get limit(){return o(j)},get showSorting(){return o(B)},onchange:()=>i()("results")})}w(_,L)};H(g,_=>{Li()&&_(S)})}var x=z(g,2);Ne(x,()=>e.children),Qe(s,_=>n=_,()=>n),V(_=>{d=Fe(s,"",d,{height:o(l),"--playpilot-explore-width":`${o(c)??""}px`}),Z(h,_)},[()=>re("Streaming Guide")]),_t(s,"clientWidth",_=>D(c,_)),w(t,s),le()}function Vo(t,e){ne(e,!0);const i=[{key:"results",component:Hp}];Li()&&i.unshift({key:"home",component:fp});let a=G(Ae(i[0])),r=G(""),n=G(Ae({}));const l=U(()=>o(a).component);Ge(()=>{o(r)&&D(a,i.find(s=>s.key==="results"),!0)});function c(s){D(a,i.find(d=>d.key===s)||i[0],!0),de(ce.ExploreNavigate,null,{route:o(a).key})}Au(t,{navigate:c,get searchQuery(){return o(r)},set searchQuery(s){D(r,s,!0)},get filter(){return o(n)},set filter(s){D(n,s,!0)},children:(s,d)=>{var p=me(),u=J(p);Yr(u,()=>o(l),(f,h)=>{h(f,{get searchQuery(){return o(r)},get filter(){return o(n)},navigate:c})}),w(s,p)},$$slots:{default:!0}}),le()}const En="[data-playpilot-explore]",Lu="[data-playpilot-pre-consent-explore]",Uo="playpilot-explore-custom-style";let pr=null;function ur(){var e;const t=document.querySelector(En);t&&(vr(),(e=document.querySelector(Lu))==null||e.remove(),t.innerHTML="",pr=Nt(Vo,{target:t}),Du())}function vr(){var t;pr&&($i(pr),pr=null,(t=document.querySelector("#"+Uo))==null||t.remove())}function Mu(){var s;const t=window.PlayPilotLinkInjections.config;if(!t)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:r}=t;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const n=document.querySelector(e);if(!n)return!1;const l=n.cloneNode(!0),c=l.nodeName==="A"?l:l.querySelector("a");return c.classList.remove("active"),c.innerText=i||"Streaming Guide",c.href=a,l.dataset.playpilotExploreNavigationElement="true",n.insertAdjacentElement(r||"afterend",l),!0}function Du(){var i;const t=(i=window.PlayPilotLinkInjections.config)==null?void 0:i.explore_custom_style;if(!t)return;const e=document.createElement("style");e.textContent=t,e.id=Uo,document.body.appendChild(e)}function Li(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.explore_use_router)}function Pn(t,e){ne(e,!0);const i=R(e,"size",3,"32px"),a=R(e,"onclick",3,()=>null),r=uo(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var n=me(),l=J(n);Jl(l,()=>e.href?"a":"button",!1,(c,s)=>{ro(c,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...r,[ia]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=me(),p=J(d);Ne(p,()=>e.children??vt),w(s,d)}),w(t,n),le()}var qu=C("<div></div>");function Ou(t,e){ne(e,!0);let i=R(e,"threshold",3,100),a=R(e,"isDragging",15,!1),r=R(e,"passedThreshold",15,!1),n=R(e,"onpassed",3,()=>null),l=G(0),c=G(0),s=G(null),d=G(!1);const p=U(()=>Math.max(o(c)-o(l),0));Ge(()=>{r(o(p)>i())});function u(g){if(g){a(!0),D(d,!0),D(l,g.touches[0].pageY,!0);for(const S of e.targets)S.style.transitionDuration="0ms"}}function f(g){if(g&&a()){g.preventDefault(),D(c,g.touches[0].pageY,!0),o(s).style.transform=`translateY(${o(p)}px)`;for(const S of e.targets)S.style.top=`${o(p)}px`}}function h(){if(a()){if(a(!1),r())n()();else{o(s).removeAttribute("style");for(const g of e.targets)g.style.removeProperty("transition"),requestAnimationFrame(()=>g.style.top="0px")}D(l,0),D(c,0)}}var m={start:u,move:f,end:h},b=qu();ke("touchmove",Me,f,void 0,!0),ke("touchend",Me,h);let y;return b.__touchstart=u,Qe(b,g=>D(s,g),()=>o(s)),V(()=>y=xe(b,1,"handle svelte-1xqgdsn",null,y,{dragging:a(),dragged:o(d)})),w(t,b),le(m)}ve(["touchstart"]);var Ru=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],Nu=["difference","intersection","symmetricDifference","union"],Wo=!1;const Sr=class Sr extends Set{constructor(i){super();ue(this,pa);ue(this,da,new Map);ue(this,Et,G(0));ue(this,xi,G(0));ue(this,kr,$t||-1);if(i){for(var a of i)super.add(a);A(this,xi).v=super.size}Wo||ze(this,pa,ps).call(this)}has(i){var a=super.has(i),r=A(this,da),n=r.get(i);if(n===void 0){if(!a)return o(A(this,Et)),!1;n=ze(this,pa,ds).call(this,!0),r.set(i,n)}return o(n),a}add(i){return super.has(i)||(super.add(i),D(A(this,xi),super.size),ci(A(this,Et))),this}delete(i){var a=super.delete(i),r=A(this,da),n=r.get(i);return n!==void 0&&(r.delete(i),D(n,!1)),a&&(D(A(this,xi),super.size),ci(A(this,Et))),a}clear(){if(super.size!==0){super.clear();var i=A(this,da);for(var a of i.values())D(a,!1);i.clear(),D(A(this,xi),0),ci(A(this,Et))}}keys(){return this.values()}values(){return o(A(this,Et)),super.values()}entries(){return o(A(this,Et)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(A(this,xi))}};da=new WeakMap,Et=new WeakMap,xi=new WeakMap,kr=new WeakMap,pa=new WeakSet,ds=function(i){return $t===A(this,kr)?G(i):Mt(i)},ps=function(){Wo=!0;var i=Sr.prototype,a=Set.prototype;for(const r of Ru)i[r]=function(...n){return o(A(this,Et)),a[r].apply(this,n)};for(const r of Nu)i[r]=function(...n){o(A(this,Et));var l=a[r].apply(this,n);return new Sr(l)}};let fr=Sr;class Bu{constructor(e,i){ue(this,qa);ue(this,Oa);se(this,qa,e),se(this,Oa,fl(i))}get current(){return A(this,Oa).call(this),A(this,qa).call(this)}}qa=new WeakMap,Oa=new WeakMap;const Fu=/\(.+\)/,Hu=new Set(["all","print","screen","and","or","not","only"]);class Vu extends Bu{constructor(e,i){let a=Fu.test(e)||e.split(/[\s,]+/).some(n=>Hu.has(n.trim()))?e:`(${e})`;const r=window.matchMedia(a);super(()=>r.matches,n=>Cc(r,"change",n))}}const Cn=new Vu("(prefers-reduced-motion: reduce)");function zn(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(n){if(n.key!=="Tab")return;const l=document.activeElement;if(!l)return;const c=e();if(!c.length)return;const[s]=c,d=c[c.length-1];n.shiftKey&&l===s&&(d.focus(),n.preventDefault()),!n.shiftKey&&l===d&&(s.focus(),n.preventDefault())}const a=document.activeElement,[r]=e();return a!=null&&a.matches(":focus-visible")&&(r==null||r.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function Uu(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Wu=C("<div><!></div>"),Gu=C('<div class="prepend svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Ku=C('<div class="bubble svelte-1rbidhv" data-view-transition-new="playpilot-title-extra"><!></div>'),Zu=C('<div class="swipe-handle svelte-1rbidhv"><!></div>'),Yu=C("<div><!></div>"),Ju=C('<div class="dialog svelte-1rbidhv" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!>',1),Qu=C('<div data-testid="modal"><!> <!> <!> <!></div>');function hr(t,e){ne(e,!0);const i=O=>{var K=Wu(),Y=k(K);Pn(Y,{onclick:_,"aria-label":"Close",children:(Q,X)=>{xn(Q,{})},$$slots:{default:!0}}),Qe(K,Q=>D(m,Q),()=>o(m)),V(()=>xe(K,1,`close ${l()??""}`,"svelte-1rbidhv")),De(7,K,()=>x),w(O,K)},a=R(e,"tall",3,!1),r=R(e,"wide",3,!1),n=R(e,"blur",3,!1),l=R(e,"closeButtonStyle",3,"shadow"),c=R(e,"initialScrollPosition",3,0),s=R(e,"onscroll",3,()=>null),d=R(e,"onclose",3,()=>null),p="#playpilot";let u=G(0),f=G(null),h=G(null),m=G(null),b=G(0),y=G(!1);const g=U(()=>o(u)<Ii);Ge(()=>{var O;o(u)&&D(b,((O=o(h))==null?void 0:O.offsetTop)||0,!0)}),Ge(()=>{setTimeout(()=>{var O;return D(b,((O=o(h))==null?void 0:O.offsetTop)||0,!0)})}),Dr("scope","modal"),pt(()=>{const O=Uu();return O.classList.add("playpilot-modal-open"),D(y,!!Xo()),o(y)||window.history.pushState({modal:!0},"",p),requestAnimationFrame(S),()=>{var K;O.classList.remove("playpilot-modal-open"),!Xo()&&((K=history.state)!=null&&K.modal)&&history.back()}});function S(){const O=window.innerWidth>Ii?o(f):o(h);O==null||O.scrollTo(0,c())}function x(O){return Cn.current?ii(O,{duration:0}):o(g)?za(O,{duration:250,y:window.innerHeight,opacity:1}):aa(O,{duration:150,start:.85})}function _(){d()(),Mn()}function L(O){O.target===o(f)&&_()}var I=Qu();ke("keydown",Me,({key:O})=>{O==="Escape"&&_()}),ke("hashchange",Me,_);let j;I.__click=L;let B;var M=k(I);{var q=O=>{var K=Gu(),Y=k(K);Ne(Y,()=>e.prepend),De(7,K,()=>x),w(O,K)};H(M,O=>{e.prepend&&O(q)})}var T=z(M,2);{var E=O=>{var K=Ku(),Y=k(K);Ne(Y,()=>e.bubble),De(7,K,()=>x),w(O,K)};H(T,O=>{e.bubble&&O(E)})}var P=z(T,2);{var F=O=>{var K=Zu(),Y=k(K);{var Q=X=>{{let ae=U(()=>[o(h),o(m)]);Ou(X,{get targets(){return o(ae)},onpassed:_})}};H(Y,X=>{o(h)&&o(m)&&X(Q)})}De(7,K,()=>x),w(O,K)};H(P,O=>{o(g)&&O(F)})}var W=z(P,2);{var $=O=>{var K=me(),Y=J(K);Ne(Y,()=>e.dialog),w(O,K)},N=O=>{var K=Ju(),Y=J(K),Q=k(Y);{var X=he=>{var Ce=Yu(),Ve=k(Ce);Pn(Ve,{onclick:()=>ah(),"aria-label":"Back",children:(Le,pe)=>{St(Le,{direction:"left"})},$$slots:{default:!0}}),V(()=>xe(Ce,1,`close back ${l()??""}`,"svelte-1rbidhv")),w(he,Ce)};H(Q,he=>{o(y)&&he(X)})}var ae=z(Q,2);Ne(ae,()=>e.children??vt);var we=z(ae,2);{var Se=he=>{i(he)};H(we,he=>{o(g)||he(Se)})}Qe(Y,he=>D(h,he),()=>o(h));var te=z(Y,2);{var fe=he=>{i(he)};H(te,he=>{o(g)&&he(fe)})}ke("scroll",Y,function(...he){var Ce;(Ce=s())==null||Ce.apply(this,he)}),De(7,Y,()=>x),w(O,K)};H(W,O=>{e.dialog?O($):O(N,!1)})}Qe(I,O=>D(f,O),()=>o(f)),Bt(I,O=>zn==null?void 0:zn(O)),V(()=>{j=xe(I,1,"modal svelte-1rbidhv",null,j,{wide:r(),tall:a(),"background-blur":n(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),B=Fe(I,"",B,{"--dialog-offset":`${o(b)??""}px`})}),rn("innerWidth",O=>D(u,O,!0)),De(5,I,()=>ii,()=>({duration:150})),De(6,I,()=>ii,()=>({duration:150,delay:100})),w(t,I),le()}ve(["click"]);var Xu=C('<div class="genre svelte-1mphbln"> </div>'),$u=C('<button class="genre expand svelte-1mphbln"> </button>'),ev=C("<!> <!>",1);function tv(t,e){ne(e,!0);let i=G(!1);const a=U(()=>o(i)?e.genres:[e.genres[0]]);var r=ev(),n=J(r);Ie(n,17,()=>o(a),je,(s,d)=>{const p=U(()=>{var m;return(m=mn.find(b=>b.slug===o(d)))==null?void 0:m.name});var u=me(),f=J(u);{var h=m=>{var b=Xu(),y=k(b);Qa(b,()=>zo()?Ro(Pa.GenreInterest,{genre:o(p)}):null),V(g=>Z(y,g),[()=>re(o(p))]),w(m,b)};H(f,m=>{o(p)&&m(h)})}w(s,u)});var l=z(n,2);{var c=s=>{var d=$u();d.__click=()=>D(i,!0);var p=k(d);V(()=>Z(p,`+${e.genres.length-1}`)),w(s,d)};H(l,s=>{!o(i)&&e.genres.length>1&&s(c)})}w(t,r),le()}ve(["click"]);var iv=C('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),av=C('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function In(t,e){const i=R(e,"small",3,!1);let a=G(!1);function r(p){p.preventDefault(),p.stopPropagation(),D(a,!o(a))}var n=av();n.__click=r;var l=k(n);let c;var s=z(l,2);{var d=p=>{var u=iv(),f=k(u);V(()=>Z(f,e.disclaimer)),De(3,u,()=>ii,()=>({duration:50})),w(p,u)};H(s,p=>{o(a)&&p(d)})}V(()=>c=xe(l,1,"disclaimer svelte-1ldthr7",null,c,{small:i()})),w(t,n)}ve(["click"]);var rv=C('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),nv=C('<span class="cta svelte-13ka2ap"> </span>'),lv=C('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function Go(t,e){ne(e,!0);const i=R(e,"disclaimer",3,""),a=R(e,"hideCategory",3,!1),r=R(e,"onclick",3,()=>null),n=U(()=>e.playlink.name),l=U(()=>e.playlink.url),c=U(()=>e.playlink.logo_url),s=U(()=>e.playlink.highlighted),d=U(()=>e.playlink.cta_text),p=U(()=>e.playlink.action_text),u=U(()=>e.playlink.pixels),f=U(()=>e.playlink.extra_info.category),h=U(()=>zo()&&!o(s)),m={AVOD:re("Stream"),SVOD:re("Stream"),BUY:re("Buy"),RENT:re("Rent"),TVOD:re("Rent Or Buy")};let b=G(0);var y=me(),g=J(y);Jl(g,()=>{var S,x;return!((x=(S=window.PlayPilotLinkInjections)==null?void 0:S.config)!=null&&x.require_affiliate_consent)||kt("affiliate")?"a":"span"},!1,(S,x)=>{Qa(S,()=>o(h)?Ro(Pa.ProviderInterest,{provider:e.playlink.slug}):null),Qa(S,()=>o(h)?gp(Pa.ProviderClick,{provider:e.playlink.slug}):null),ro(S,()=>({onclick:r(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(n),rel:"sponsored",[ta]:{highlighted:o(s),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var _=lv(),L=J(_);let I;var j=k(L),B=z(j,2),M=k(B),q=z(B,2);{var T=Y=>{var Q=rv(),X=k(Q);V(ae=>Z(X,ae),[()=>m[o(f)]||re("Stream")]),w(Y,Q)};H(q,Y=>{a()||Y(T)})}var E=z(q,2);{var P=Y=>{var Q=nv(),X=k(Q);V(()=>Z(X,o(d))),w(Y,Q)};H(E,Y=>{o(d)&&Y(P)})}var F=z(E,2),W=k(F),$=z(F,2);{var N=Y=>{In(Y,{get disclaimer(){return i()},small:!0})};H($,Y=>{i()&&Y(N)})}var O=z(L,2);{var K=Y=>{Tn(Y,{get pixels(){return o(u)}})};H(O,Y=>{var Q;(Q=o(u))!=null&&Q.length&&Y(K)})}V((Y,Q)=>{I=Fe(L,"",I,{"--action-width":o(b)?`${o(b)}px`:null}),ie(j,"src",Y),Z(M,o(n)),Z(W,Q)},[()=>lr(o(c)),()=>o(p)||re("Watch")]),_t(F,"clientWidth",Y=>D(b,Y)),w(x,_)}),w(t,y),le()}var ov=C('<div class="disclaimer svelte-1fykz2q" data-testid="commission-disclaimer"> <a href="https://playpilot.com/" target="_blank" rel="sponsored" class="svelte-1fykz2q">PlayPilot.com</a></div>'),sv=C('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),cv=C('<div class="heading category svelte-1fykz2q"> </div>'),dv=C("<!> <!>",1),pv=C("<!> <div></div>",1),uv=C('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function vv(t,e){var _,L;ne(e,!0);const i=Mr("scope")==="modal",a=Ca("card"),r=!!((L=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&L.categorize_playlinks);let n=G(0);const l=U(()=>No(e.playlinks)),c=U(()=>u(e.playlinks)),s=U(()=>r?f(o(c)):[["",o(l)]]),d=U(()=>o(n)<500||!!a||o(l).length===1);function p(I){de(i?ce.TitleModalPlaylinkClick:ce.TitlePopoverPlaylinkClick,e.title,{playlink:I})}function u(I){const j={};for(const B of I){const{category:M}=B.extra_info;M in j||(j[M]=[]),j[M].push(B)}return j}function f(I){const j=["AVOD","SVOD","RENT","BUY"],B=[];for(const q of j)I[q]&&B.push([q,I[q]]);const M=[];for(const q of Object.values(I))for(const T of q)j.includes(T.extra_info.category)||M.push(T);return[...B,["Other",M]]}var h=uv(),m=J(h),b=k(m);Bt(m,(I,j)=>Oe==null?void 0:Oe(I,j),()=>3);var y=z(m,2);{var g=I=>{var j=ov(),B=k(j);V(M=>Z(B,`${M??""} `),[()=>{var M,q;return((q=(M=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:M.config)==null?void 0:q.playlinks_disclaimer_text)||re("Commission Disclaimer")}]),w(I,j)},S=I=>{var j=sv(),B=k(j);V(M=>Z(B,M),[()=>re("Title Unavailable")]),w(I,j)};H(y,I=>{o(l).length?I(g):I(S,!1)})}var x=z(y,2);Ie(x,17,()=>o(s),je,(I,j,B,M)=>{var q=U(()=>ua(o(j),2));let T=()=>o(q)[0],E=()=>o(q)[1];var P=pv(),F=J(P);{var W=O=>{var K=cv(),Y=k(K);Bt(K,(Q,X)=>Oe==null?void 0:Oe(Q,X),()=>4),V(Q=>Z(Y,Q),[()=>re(`Category: ${T()}`)]),w(O,K)};H(F,O=>{T()&&E().length&&O(W)})}var $=z(F,2);let N;Ie($,21,E,je,(O,K,Y)=>{var Q=dv(),X=J(Q);Go(X,{get playlink(){return o(K)},onclick:()=>p(o(K).name)});var ae=z(X,2);{var we=Se=>{{let te=U(()=>zd(a)),fe=U(()=>a.disclaimer||"");Go(Se,{get playlink(){return o(te)},onclick:()=>de(ce.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(fe)}})}};H(ae,Se=>{a&&Y===0&&Se(we)})}w(O,Q)}),V(()=>{N=xe($,1,"playlinks svelte-1fykz2q",null,N,{list:o(d)}),ie($,"data-testid",`category-${T()??""}`)}),_t($,"clientWidth",O=>D(n,O)),w(I,P)}),V(I=>Z(b,I),[()=>re("Where To Stream Online")]),w(t,h),le()}var fv=C('<button class="show-more svelte-7itcht">Show more</button>'),hv=C('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),gv=C('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function mv(t,e){ne(e,!0);const i=R(e,"blurb",3,""),a=R(e,"limit",3,200),r=R(e,"onclick",3,()=>null);let n=G(!1);const l=U(()=>e.text.slice(0,a()));function c(){D(n,!0),r()()}var s=gv(),d=k(s),p=k(d),u=z(p);{var f=g=>{var S=ui("...");w(g,S)};H(u,g=>{!o(n)&&e.text.length>a()&&g(f)})}var h=z(u,2);{var m=g=>{var S=fv();S.__click=()=>c(),w(g,S)};H(h,g=>{!o(n)&&(e.text.length>a()||i())&&g(m)})}var b=z(d,2);{var y=g=>{var S=hv(),x=k(S);V(()=>Z(x,i())),w(g,S)};H(b,g=>{o(n)&&g(y)})}V(()=>Z(p,o(n)?e.text:o(l))),w(t,s),le()}ve(["click"]);async function yv(t,{page:e=1}={}){const i={language:Ea(),region:await bn(),include_count:"false",participant_sid:t.sid,page:e};return(await ti(`/titles/browse?api-token=${vi()}&${fn(i)}`)).results}async function bv(t){return(await ti(`/participants/browse?api-token=${vi()}&title_sid=${t.sid}`)).results}var wv=C('<div class="character truncate svelte-zy7e3f"> </div>'),xv=C('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),_v=C('<div class="participant svelte-zy7e3f"></div>');function kv(t,e){ne(e,!0);function i(l){const c=fi(pn(mo(dn()))),s={};for(const p of l){const u=ar(c,fi(p.name));s[p.sid]={participant:p,count:u}}return Object.values(s).sort((p,u)=>u.count-p.count).map(({participant:p})=>p)}function a(l,c){hi({event:l,type:"participant",data:c}),de(ce.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:c.name})}var r=me(),n=J(r);Ja(n,()=>bv(e.title),l=>{{let c=U(()=>re("Cast"));cr(l,{get heading(){return o(c)},children:(s,d)=>{var p=me(),u=J(p);Ie(u,16,()=>({length:5}),je,(f,h)=>{var m=_v();w(f,m)}),w(s,p)},$$slots:{default:!0}})}},(l,c)=>{var s=me(),d=J(s);{var p=u=>{{let f=U(()=>re("Cast"));cr(u,{get heading(){return o(f)},children:(h,m)=>{var b=me(),y=J(b);Ie(y,17,()=>i(o(c)).slice(0,15),je,(g,S)=>{var x=xv();x.__click=B=>a(B,o(S));var _=k(x),L=k(_),I=z(_,2);{var j=B=>{var M=wv(),q=k(M);V(()=>Z(q,o(S).character)),w(B,M)};H(I,B=>{o(S).character&&B(j)})}V(()=>Z(L,o(S).name)),w(g,x)}),w(h,b)},$$slots:{default:!0}})}};H(d,u=>{var f;(f=o(c))!=null&&f.length&&u(p)})}w(l,s)}),w(t,r),le()}ve(["click"]);function Sv(t,e){ne(e,!0);const i=jd(e.title);{let a=U(()=>re("Similar Titles"));Oo(t,{get titles(){return i},get heading(){return o(a)},onclick:r=>de(ce.SimilarTitleClick,r,{title_source:e.title.original_title||e.title.title})})}le()}function Tv(t){const e=document.createElement("textarea");e.value=t,e.style.position="fixed",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}var Ev=Je('<svg width="16" height="15" viewBox="0 0 16 15"><path fill="currentColor" d="M6.70138 1.36838C6.70187 0.320494 7.75924 -0.233702 8.60177 0.0939687L8.76779 0.172094L8.82345 0.203344L8.87521 0.240453L14.4748 4.35666C15.273 4.89508 15.2742 6.06459 14.4807 6.60666L8.8879 10.8586L8.83029 10.9026L8.76779 10.9367C7.90544 11.4141 6.70148 10.8588 6.70138 9.74045V9.051C6.21939 9.09485 5.65912 9.18628 5.11056 9.37034C4.41863 9.60256 3.79163 9.96387 3.33907 10.5061C2.89934 11.0331 2.56088 11.8063 2.56075 12.9924C2.56075 13.1083 2.55351 13.2694 2.50802 13.4348C2.48558 13.5162 2.34386 14.0279 1.78439 14.1965C1.18154 14.3778 0.775385 13.9725 0.706262 13.9006C0.580913 13.7702 0.500537 13.626 0.452356 13.5305C0.257874 13.1448 0.107806 12.5395 0.0402463 11.841C-0.0994489 10.3951 0.0801391 8.23145 1.2922 5.90647C2.38232 3.81585 4.09969 2.85246 5.51095 2.42209C5.94157 2.29082 6.34701 2.20931 6.70138 2.15745V1.36838ZM8.28341 1.04709C8.02513 0.904267 7.70193 1.08266 7.70138 1.36838V3.07346C6.71677 3.09168 3.72663 3.40026 2.17892 6.36838L1.98165 6.76584C0.053228 10.8548 1.56075 14.193 1.56075 12.9924C1.56118 8.17098 6.39327 7.98172 7.70138 8.01877V9.74045C7.70147 9.9908 7.94881 10.1585 8.1838 10.1008L8.28341 10.0627L13.883 5.80686C14.1412 5.66368 14.1413 5.30543 13.883 5.16233L8.28341 1.04709Z"></path></svg>');function Pv(t){var e=Ev();w(t,e)}var Cv=Je('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M440-280H280q-83 0-141.5-58.5T80-480q0-83 58.5-141.5T280-680h160v80H280q-50 0-85 35t-35 85q0 50 35 85t85 35h160v80ZM320-440v-80h320v80H320Zm200 160v-80h160q50 0 85-35t35-85q0-50-35-85t-85-35H520v-80h160q83 0 141.5 58.5T880-480q0 83-58.5 141.5T680-280H520Z"></path></svg>');function zv(t){var e=Cv();w(t,e)}var Iv=Je('<svg viewBox="0 -960 960 960" width="18px" height="18px"><path fill="currentColor" d="M160-160q-33 0-56.5-23.5T80-240v-480q0-33 23.5-56.5T160-800h640q33 0 56.5 23.5T880-720v480q0 33-23.5 56.5T800-160H160Zm320-280L160-640v400h640v-400L480-440Zm0-80 320-200H160l320 200ZM160-640v-80 480-400Z"></path></svg>');function jv(t){var e=Iv();w(t,e)}var Av=Je('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Lv(t){var e=Av();w(t,e)}var Mv=C('<button class="svelte-827qd7"><!></button>'),Dv=C('<div class="content svelte-827qd7"><!></div>'),qv=C("<div><!> <!></div>");function Ov(t,e){const i=R(e,"label",3,""),a=R(e,"align",3,"right");let r=G(!1),n=G(null);function l(h){var b;h.currentTarget===((b=o(n))==null?void 0:b.querySelector("button"))&&h.stopPropagation(),D(r,!o(r))}var c=qv();ke("click",Me,()=>D(r,!1));var s=k(c);{var d=h=>{var m=me(),b=J(m);Ne(b,()=>e.button,()=>({toggle:l})),w(h,m)},p=h=>{var m=Mv();m.__click=l;var b=k(m);Lv(b),V(()=>{ie(m,"aria-label",i()),ie(m,"aria-expanded",o(r))}),w(h,m)};H(s,h=>{e.button?h(d):h(p,!1)})}var u=z(s,2);{var f=h=>{var m=Dv(),b=k(m);Ne(b,()=>e.children),De(1,m,()=>aa,()=>({duration:50,start:.85})),w(h,m)};H(u,h=>{o(r)&&h(f)})}Qe(c,h=>D(n,h),()=>o(n)),V(()=>xe(c,1,`context-menu ${a()??""}`,"svelte-827qd7")),w(t,c)}ve(["click"]);var Rv=C("<!> ",1),Nv=C('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Bv(t,e){ne(e,!0);let i=R(e,"url",7);const r=window.innerWidth<Ii&&typeof navigator.share<"u";pt(()=>{i(i()+"?utm_source=tpi")});function n(s,d){if(!r){d(s);return}de(ce.ShareTitle,null,{title:e.title,url:ji(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){de(ce.ShareTitle,null,{title:e.title,url:ji(),method:"copy"}),Tv(i())}function c(){de(ce.ShareTitle,null,{title:e.title,url:ji(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Ov(t,{button:(d,p)=>{let u=()=>p==null?void 0:p().toggle;Ai(d,{onclick:f=>n(f,u()),children:(f,h)=>{var m=Rv(),b=J(m);Pv(b);var y=z(b);V(g=>Z(y,` ${g??""}`),[()=>re("Share")]),w(f,m)},$$slots:{default:!0}})},children:(d,p)=>{var u=Nv(),f=J(u);f.__click=l;var h=k(f);zv(h);var m=z(h),b=z(f,2);b.__click=c;var y=k(b);jv(y);var g=z(y);V((S,x)=>{Z(m,` ${S??""}`),Z(g,` ${x??""}`)},[()=>re("Copy URL"),()=>re("Email")]),w(d,u)},$$slots:{button:!0,default:!0}}),le()}ve(["click"]);var Fv=Je('<svg width="12" height="12" viewBox="0 0 12 12"><path stroke="currentColor" stroke-width="1.1" transform="translate(2 0)" d="M9.47461 5.37598C9.77461 5.54918 9.77461 5.98207 9.47461 6.15527L1.22461 10.9189C0.924693 11.0916 0.549804 10.8745 0.549804 10.5283L0.549805 1.00293C0.549805 0.656711 0.924691 0.439623 1.22461 0.612304L9.47461 5.37598Z"></path></svg>');function Hv(t){var e=Fv();w(t,e)}var Vv=C("<!> ",1);function Uv(t,e){ne(e,!0);function i(){Bd(e.title),de(ce.TrailerClick,e.title)}Ai(t,{onclick:i,children:(a,r)=>{var n=Vv(),l=J(n);Hv(l);var c=z(l);V(s=>Z(c,` ${s??""}`),[()=>re("Watch Trailer")]),w(a,n)},$$slots:{default:!0}}),le()}var Wv=C('<div class="video-background svelte-18bbkrh" data-testid="video-background"><!></div>');function Gv(t,e){const i=R(e,"embeddable_url",3,"");let a=G(0),r=G(0);const n=U(()=>Math.max(o(a),o(r)));var l=Wv(),c=k(l);kn(c,{get embeddable_url(){return i()},muted:!0,loop:!0}),V(()=>Fe(l,`--height: ${o(n)??""}px; --width: ${o(a)??""}px;`)),_t(l,"clientWidth",s=>D(a,s)),_t(l,"clientHeight",s=>D(r,s)),w(t,l)}var Kv=C("<div> </div>"),Zv=C('<img alt=""/>'),Yv=C('<div><div class="header svelte-16ajinh"><div><!></div> <div id="title"> </div> <div class="info svelte-16ajinh"><div class="imdb svelte-16ajinh"><!> </div> <!> <div> </div> <div class="capitalize svelte-16ajinh"> </div> <!></div> <div class="actions svelte-16ajinh"><!> <!></div></div> <div class="main"><!> <!> <!> <!></div></div> <div><!></div>',1);function jn(t,e){var Le;ne(e,!0);const i=R(e,"small",3,!1),a=R(e,"useVideoBackground",3,!0),r=!!((Le=window.PlayPilotLinkInjections)!=null&&Le.no_affiliate);Dr("title",e.title);const n=U(()=>(!i()||r)&&e.title.description);let l=G(!1),c=G(!1),s=G(!1),d=G(!1);Ge(()=>{a()&&e.title.embeddable_url&&Mo(_n(e.title.embeddable_url)).then(pe=>{D(d,pe,!0)})});var p=Yv(),u=J(p);let f;var h=k(u),m=k(h);let b;var y=k(m);or(y,{get title(){return e.title},onload:()=>D(l,!0),lazy:!1});var g=z(m,2);let S;var x=k(g);Bt(g,(pe,Be)=>Oe==null?void 0:Oe(pe,Be),()=>2);var _=z(g,2),L=k(_),I=k(L);Sn(I,{});var j=z(I),B=z(L,2);tv(B,{get genres(){return e.title.genres}});var M=z(B,2),q=k(M),T=z(M,2),E=k(T),P=z(T,2);{var F=pe=>{var Be=Kv(),at=k(Be);V(ni=>Z(at,`${e.title.length??""} ${ni??""}`),[()=>re("Minutes")]),w(pe,Be)};H(P,pe=>{!i()&&e.title.length&&pe(F)})}var W=z(_,2),$=k(W);{var N=pe=>{Uv(pe,{get title(){return e.title}})};H($,pe=>{e.title.embeddable_url&&pe(N)})}var O=z($,2);{let pe=U(()=>qo(e.title));Bv(O,{get title(){return e.title.title},get url(){return o(pe)}})}var K=z(h,2),Y=k(K);{var Q=pe=>{mv(pe,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>de(ce.ExpandTitleDescription,e.title)})};H(Y,pe=>{o(n)&&pe(Q)})}var X=z(Y,2);{var ae=pe=>{vv(pe,{get playlinks(){return e.title.providers},get title(){return e.title}})};H(X,pe=>{r||pe(ae)})}var we=z(X,2);kv(we,{get title(){return e.title}});var Se=z(we,2);Sv(Se,{get title(){return e.title}});var te=z(u,2);let fe;var he=k(te);{var Ce=pe=>{Gv(pe,{get embeddable_url(){return e.title.embeddable_url}})},Ve=pe=>{var Be=me(),at=J(Be);Sa(at,()=>o(s),ni=>{var Pt=Zv();let ee;V(oe=>{ie(Pt,"src",oe),ee=xe(Pt,1,"svelte-16ajinh",null,ee,{loaded:o(c),blur:o(s)})},[()=>lr(o(s)?e.title.standing_poster:e.title.medium_poster)]),ke("load",Pt,()=>D(c,!0)),ke("error",Pt,()=>D(s,!0)),w(ni,Pt)}),w(pe,Be)};H(he,pe=>{a()&&o(d)?pe(Ce):pe(Ve,!1)})}V(pe=>{f=xe(u,1,"content svelte-16ajinh",null,f,{small:i()}),b=xe(m,1,"poster svelte-16ajinh",null,b,{loaded:o(l)}),S=xe(g,1,"heading svelte-16ajinh",null,S,{truncate:i()}),Z(x,e.title.title),Z(j,` ${e.title.imdb_score??""}`),Z(q,e.title.year),Z(E,pe),fe=xe(te,1,"background svelte-16ajinh",null,fe,{small:i()})},[()=>re(`Type: ${e.title.type}`)]),w(t,p),le()}function ra(t,e){const{onclick:i}=e;function a(r){return r.button!==1?null:(i(r),r)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const Ko={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},An={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function Jv({key:t}){var a,r,n;if(!kt("tracking"))return 0;const e=(r=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:r[t];if(e!==void 0)return e;(n=window.PlayPilotLinkInjections)!=null&&n.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function Zo(t){const e=Jv(t);return Math.floor(e*t.numberOfVariants)}function Qv(t){var i;const e=Zo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function Xv(t,e=1){return kt("tracking")?Zo(t)===e:!1}function $v(t){const e=Qv(t);de(ce.SplitTestView,null,{key:t.key,variant:e})}var ef=C('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),tf=C('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),af=C('<button class="button svelte-1mt6g1y"> </button>'),rf=C('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),nf=C('<div class="background svelte-1mt6g1y"></div>'),lf=C("<!> <!>",1),of=C('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function Yo(t,e){ne(e,!0),de(ce.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),$v(An.TopScrollFormat);const i=U(()=>e.campaign.disclaimer),a=U(()=>e.campaign.content),r=U(()=>e.campaign.cta),n=U(()=>o(a).format),l=U(()=>o(a).header),c=U(()=>o(a).header_logo),s=U(()=>o(a).image_uuid),d=U(()=>o(r).header),p=U(()=>o(r).url),u=U(()=>o(n)==="large"),f=U(()=>Lo(o(s),Ko.TopScrollBackground)),h=U(()=>Lo(o(s),Ko.TopScrollContent));let m=G(0);function b(){de(ce.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var y=of();y.__click=b;let g,S;var x=k(y),_=k(x);{var L=M=>{var q=ef();V(()=>{ie(q,"src",o(h)),ie(q,"alt",o(l))}),w(M,q)},I=M=>{var q=rf(),T=J(q);{var E=N=>{var O=tf();V(()=>ie(O,"src",o(c))),w(N,O)};H(T,N=>{o(c)&&N(E)})}var P=z(T,2),F=k(P),W=z(P,2);{var $=N=>{var O=af(),K=k(O);V(()=>Z(K,o(d))),w(N,O)};H(W,N=>{o(d)&&N($)})}V(()=>Z(F,o(l))),w(M,q)};H(_,M=>{o(u)?M(L):M(I,!1)})}var j=z(x,2);{var B=M=>{var q=lf(),T=J(q);{var E=W=>{var $=nf();let N;V(()=>N=Fe($,"",N,{"--background":`url('${o(f)??""}')`})),w(W,$)};H(T,W=>{o(s)&&W(E)})}var P=z(T,2);{var F=W=>{In(W,{get disclaimer(){return o(i)}})};H(P,W=>{o(i)&&W(F)})}w(M,q)};H(j,M=>{o(u)||M(B)})}Bt(y,(M,q)=>ra==null?void 0:ra(M,q),()=>({onclick:b})),Ci(()=>_t(y,"clientWidth",M=>D(m,M))),V(()=>{ie(y,"href",o(p)),g=xe(y,1,"top-scroll svelte-1mt6g1y",null,g,{simple:o(u)}),S=Fe(y,"",S,{"--width":`${o(m)??""}px`})}),w(t,y),le()}ve(["click"]);var sf=C('<div class="content svelte-r7ubzi"><!></div>'),cf=C('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function df(t,e){let i=G(!1);var a=cf();a.__touchstart=()=>D(i,!o(i));var r=k(a);Ne(r,()=>e.children);var n=z(r,2);{var l=c=>{var s=sf(),d=k(s);Ne(d,()=>e.content),De(1,s,()=>ii,()=>({duration:100})),w(c,s)};H(n,c=>{o(i)&&c(l)})}ke("mouseenter",a,()=>D(i,!0)),ke("mouseleave",a,()=>D(i,!1)),w(t,a)}ve(["touchstart"]);var pf=C('<div class="info svelte-qcpiki"><!></div>'),uf=C('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),vf=C('<span class="name svelte-qcpiki"> </span>'),ff=C('<div class="subheader svelte-qcpiki"> </div>'),hf=C('<div class="action svelte-qcpiki"> </div>'),gf=C('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),mf=C('<img class="background svelte-qcpiki" alt=""/>'),yf=C('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),bf=C('<div class="disclaimer svelte-qcpiki"><!></div>'),wf=C('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function Jo(t,e){ne(e,!0);const i=R(e,"compact",3,!1),a=U(()=>e.campaign.disclaimer),r=U(()=>e.campaign.content),n=U(()=>e.campaign.cta),l=U(()=>e.campaign.campaign_type),c=U(()=>o(r).header),s=U(()=>o(r).subheader),d=U(()=>o(r).header_logo),p=U(()=>o(r).image),u=U(()=>o(r).video),f=U(()=>o(n).header),h=U(()=>o(n).url),m=U(()=>o(n).subheader);let b=G(0);de(ce.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function y(){de(ce.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var g=wf();let S;g.__click=y;var x=k(g);{var _=E=>{var P=pf(),F=k(P);{var W=N=>{df(N,{content:K=>{var Y=ui();V(()=>Z(Y,o(m))),w(K,Y)},children:(K,Y)=>{var Q=ui("Ad");w(K,Q)},$$slots:{content:!0,default:!0}})},$=N=>{var O=ui();V(()=>Z(O,o(m))),w(N,O)};H(F,N=>{i()?N(W):N($,!1)})}w(E,P)};H(x,E=>{o(m)&&E(_)})}var L=z(x,2);{var I=E=>{var P=gf(),F=k(P);{var W=ae=>{var we=uf();V(()=>ie(we,"src",o(d))),w(ae,we)};H(F,ae=>{o(d)&&ae(W)})}var $=z(F,2),N=k($);{var O=ae=>{var we=vf(),Se=k(we);V(()=>Z(Se,o(c))),w(ae,we)};H(N,ae=>{o(c)&&ae(O)})}var K=z(N,2);{var Y=ae=>{var we=ff(),Se=k(we);V(()=>Z(Se,o(s))),w(ae,we)};H(K,ae=>{o(s)&&ae(Y)})}var Q=z($,2);{var X=ae=>{var we=hf(),Se=k(we);V(()=>Z(Se,o(f))),w(ae,we)};H(Q,ae=>{o(f)&&ae(X)})}_t(P,"clientHeight",ae=>D(b,ae)),w(E,P)};H(L,E=>{(o(d)||o(c)||o(s)||o(f))&&E(I)})}var j=z(L,2);{var B=E=>{var P=mf();V(()=>ie(P,"src",o(p))),w(E,P)},M=E=>{var P=me(),F=J(P);{var W=$=>{var N=yf();N.muted=!0;var O=k(N);V(()=>ie(O,"src",o(u))),w($,N)};H(F,$=>{o(l)==="video"&&o(u)&&$(W)},!0)}w(E,P)};H(j,E=>{o(l)==="image"&&o(p)?E(B):E(M,!1)})}var q=z(j,2);{var T=E=>{var P=bf();let F;var W=k(P);In(W,{get disclaimer(){return o(a)}}),V(()=>F=Fe(P,"",F,{"--offset":`${o(b)??""}px`})),w(E,P)};H(q,E=>{o(a)&&E(T)})}Bt(g,(E,P)=>ra==null?void 0:ra(E,P),()=>({onclick:y})),V(()=>{ie(g,"href",o(h)),S=xe(g,1,"display svelte-qcpiki",null,S,{compact:i()})}),w(t,g),le()}ve(["click"]);var xf=C('<a class="call-to-action svelte-1677ll3"><img alt="" width="70" height="57"/> <div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></a>');function _f(t,e){var s,d;ne(e,!1);const i="https://cdn.jsdelivr.net/npm/@playpilot/tpi@latest/src/lib/images/titles-list.webp",a=(d=(s=window.PlayPilotLinkInjections)==null?void 0:s.config)==null?void 0:d.explore_navigation_path;nn();var r=xf();r.__click=()=>de(ce.CardToExploreCta);var n=k(r);ie(n,"src",i);var l=z(n,4),c=k(l);St(c,{}),V(()=>ie(r,"href",a)),w(t,r),le()}ve(["click"]);function kf(t,e){var f,h;ne(e,!0);const i=m=>{var b=me(),y=J(b);{var g=x=>{Yo(x,{get campaign(){return l}})},S=x=>{_f(x,{})};H(y,x=>{l?x(g):x(S,!1)})}w(m,b)},a=m=>{var b=me(),y=J(b);{var g=S=>{Jo(S,{get campaign(){return c}})};H(y,S=>{c&&S(g)})}w(m,b)},r=R(e,"initialScrollPosition",3,0),n=uo(e,["$$slots","$$events","$$legacy","title","initialScrollPosition"]),l=Ca("top_scroll"),c=Ca("card"),s=(h=(f=window.PlayPilotLinkInjections)==null?void 0:f.config)==null?void 0:h.explore_insert_cta_in_tpi,d=!!l||s&&!document.querySelector(En);let p=!1;de(ce.TitleModalView,e.title),pt(()=>{const m=Date.now();return()=>de(ce.TitleModalClose,e.title,{time_spent:Date.now()-m})});function u(){p||(de(ce.TitleModalScroll,e.title),p=!0)}{let m=U(()=>d?i:null),b=U(()=>c?a:null);hr(t,{onscroll:u,get initialScrollPosition(){return r()},get bubble(){return o(m)},get prepend(){return o(b)},tall:!0,children:(y,g)=>{jn(y,ln({get title(){return e.title}},()=>n))},$$slots:{default:!0}})}le()}var Sf=C(" <strong> </strong>",1),Tf=C('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),Ef=C('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),Pf=C('<button class="more svelte-ke01cs"> </button>'),Cf=C('<div class="header svelte-ke01cs"><div class="heading svelte-ke01cs" id="name"> </div> <!></div> <div class="content svelte-ke01cs"><div class="heading small svelte-ke01cs" id="credits"> </div> <div class="list svelte-ke01cs"><!> <!></div></div>',1);function zf(t,e){ne(e,!0);const i=U(()=>e.participant.name),a=U(()=>e.participant.birth_date),r=U(()=>e.participant.death_date),n=30;let l=G(Ae([])),c=G(1),s=G(!0),d=G(!0);pt(u),kt("pixels")&&dr(Pa.ParticipantView,{participant:e.participant.name});function p(q){return new Date(q).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function u(){D(d,!0);try{const q=await yv(e.participant,{page:o(c)});D(l,[...o(l),...q],!0),D(s,(q==null?void 0:q.length)>=n)}catch{D(s,!1)}finally{D(d,!1),D(c,o(c)+1)}}var f=Cf(),h=J(f),m=k(h),b=k(m);Bt(m,(q,T)=>Oe==null?void 0:Oe(q,T),()=>2);var y=z(m,2);{var g=q=>{var T=Tf(),E=k(T),P=z(E),F=k(P),W=z(P);{var $=N=>{var O=Sf(),K=J(O),Y=z(K),Q=k(Y);V((X,ae)=>{Z(K,`, ${X??""} `),Z(Q,ae)},[()=>re("Died On"),()=>p(o(r))]),w(N,O)};H(W,N=>{o(r)&&N($)})}V((N,O)=>{Z(E,`${N??""} `),Z(F,O)},[()=>re("Born On"),()=>p(o(a))]),w(q,T)};H(y,q=>{o(a)&&q(g)})}var S=z(h,2),x=k(S),_=k(x);Bt(x,(q,T)=>Oe==null?void 0:Oe(q,T),()=>3);var L=z(x,2),I=k(L);Ie(I,17,()=>o(l),je,(q,T)=>{Fo(q,{get title(){return o(T)},onclick:E=>hi({event:E,data:o(T)})})});var j=z(I,2);{var B=q=>{var T=me(),E=J(T);Ie(E,16,()=>({length:6}),je,(P,F)=>{var W=Ef();w(P,W)}),w(q,T)},M=q=>{var T=me(),E=J(T);{var P=F=>{var W=Pf();W.__click=u;var $=k(W);V(N=>Z($,N),[()=>re("Show More")]),w(F,W)};H(E,F=>{o(s)&&F(P)},!0)}w(q,T)};H(j,q=>{o(d)?q(B):q(M,!1)})}V(q=>{Z(b,o(i)),Z(_,q)},[()=>re("Credits")]),w(t,f),le()}ve(["click"]);function If(t,e){ne(e,!0);const i=R(e,"initialScrollPosition",3,0);let a=G(0);de(ce.ParticipantModalView,null,{participant:e.participant.name}),pt(()=>{const r=Date.now();return()=>de(ce.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-r})}),hr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(r,n)=>{zf(r,{get participant(){return e.participant}})},$$slots:{default:!0}}),rn("innerWidth",r=>D(a,r,!0)),le()}var jf=C('<div class="content svelte-16hba4m"><!></div>');function Af(t,e){const i=R(e,"initialScrollPosition",3,0);hr(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,r)=>{var n=jf(),l=k(n);Vo(l,{}),w(a,n)},$$slots:{default:!0}})}function Lf(t,e=!0){if(!document.startViewTransition||!e){t();return}document.startViewTransition(()=>{const i=document.querySelectorAll("[data-view-transition-old]");if(t(),!i.length)return;document.querySelectorAll("[data-view-transition-new]").forEach(r=>{r.style.viewTransitionName=r.dataset.viewTransitionNew||""})})}var Mf=Je('<svg viewBox="0 -960 960 960" width="24px" height="24px" fill="currentColor"><path d="m480-320 160-160-56-56-64 64v-168h-80v168l-64-64-56 56 160 160Zm0 240q-83 0-156-31.5T197-197q-54-54-85.5-127T80-480q0-83 31.5-156T197-763q54-54 127-85.5T480-880q83 0 156 31.5T763-763q54 54 85.5 127T880-480q0 83-31.5 156T763-197q-54 54-127 85.5T480-80Zm0-80q134 0 227-93t93-227q0-134-93-227t-227-93q-134 0-227 93t-93 227q0 134 93 227t227 93Zm0-320Z"></path></svg>');function Df(t){var e=Mf();w(t,e)}var qf=C('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Of=C('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Rf=C('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),Nf=C('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function Bf(t,e){ne(e,!0),Dr("scope","popover");const i=e.bubble&&Xv(An.TopScrollFormat,1),a=U(()=>({duration:Cn.current?0:100,y:10}));let r=G(null),n=G(!1),l=G(!0),c=G(!1),s=G(0),d=G(0),p=G(0);pt(async()=>{await _a(),u(),await h(),e.append&&requestAnimationFrame(()=>{f(),h()}),await _a(),b()});function u(){if(!o(r))return;const{top:T,right:E,bottom:P,height:F}=o(r).getBoundingClientRect(),W=m();D(n,T-W<0&&window.innerHeight-P>T+F,!0);const $=window.innerWidth-E-W;E+W>window.innerWidth&&(o(r).style.left=`${$}px`)}function f(){D(l,o(s)>450)}async function h(){if(D(p,0),await new Promise(N=>requestAnimationFrame(N)),!o(r))return;const{top:T,height:E}=o(r).getBoundingClientRect(),P=m(),F=e.append?parseInt(window.getComputedStyle(o(r)).gap):0,W=o(l)?o(d)+F:0,$=o(n)?window.innerHeight-T-P-W:T+E-W-P;D(p,Math.min($,window.innerHeight*.8),!0)}function m(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function b(){var W;if(!((W=o(r))!=null&&W.firstChild))return;const T=o(r).firstChild,{offsetHeight:E,scrollHeight:P,scrollTop:F}=T;P<=E?D(c,!1):D(c,F+E<P)}var y=Nf();let g,S;var x=k(y),_=k(x);Ne(_,()=>e.children);var L=z(_,2);{var I=T=>{var E=qf(),P=k(E),F=k(P);Df(F),De(3,E,()=>ii,()=>({duration:100})),w(T,E)};H(L,T=>{o(c)&&T(I)})}var j=z(x,2);{var B=T=>{var E=Of(),P=k(E);Ne(P,()=>e.bubble),De(7,E,()=>za,()=>o(a)),w(T,E)};H(j,T=>{e.bubble&&T(B)})}var M=z(j,2);{var q=T=>{var E=Rf(),P=k(E);Ne(P,()=>e.append),De(7,E,()=>za,()=>o(a)),_t(E,"clientHeight",F=>D(d,F)),w(T,E)};H(M,T=>{e.append&&o(l)&&T(q)})}Qe(y,T=>D(r,T),()=>o(r)),V(()=>{g=xe(y,1,"popover svelte-wxwoko",null,g,{flip:o(n),inline:i,"has-bubble":!!e.bubble&&i}),S=Fe(y,"",S,{"--max-height":o(p)?o(p)+"px":null})}),ke("scroll",x,b),De(7,x,()=>za,()=>o(a)),_t(y,"clientHeight",T=>D(s,T)),w(t,y),le()}var Ff=C('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Hf(t,e){ne(e,!0);const i=p=>{var u=me(),f=J(u);{var h=m=>{Yo(m,{get campaign(){return r}})};H(f,m=>{r&&m(h)})}w(p,u)},a=p=>{var u=me(),f=J(u);{var h=m=>{Jo(m,{get campaign(){return n},compact:!0})};H(f,m=>{n&&m(h)})}w(p,u)},r=Ca("top_scroll"),n=Ca("card");let l=G(null);de(ce.TitlePopoverView,e.title),pt(()=>{c();const p=Date.now();return()=>de(ce.TitlePopoverClose,e.title,{time_spent:Date.now()-p})});function c(){const p=e.event.target;if(!(p!=null&&p.getClientRects))return;const u=Array.from(p.getClientRects()),h=u.map(b=>b.x).map(b=>Math.abs(b-e.event.clientX)),m=u[h.indexOf(Math.min(...h))];o(l).style.top=m.top+window.scrollY+"px",o(l).style.left=m.left+window.scrollX+"px",o(l).style.height=m.height+"px"}var s=Ff(),d=k(s);{let p=U(()=>n?a:null),u=U(()=>r?i:null);Bf(d,{get append(){return o(p)},get bubble(){return o(u)},children:(f,h)=>{jn(f,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}Qe(s,p=>D(l,p),()=>o(l)),w(t,s),le()}let gr=null,Mi=null;function Vf(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;Mi&&mr();const i=t.currentTarget;gr=i,setTimeout(()=>{gr===i&&(Mi=Nt(Hf,{target:On(),props:{event:t,title:e.title_details}}))},100)}async function mr(t=!0){if(Mi){const e=$i(Mi,{outro:t});gr=null,Mi=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function Uf(t){if(!Mi)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(gi)||e.closest(ai)||mr()}function Wf(){gr=null}function Gf(){return!!Mi}var Kf=C('<div class="content svelte-c2erhr"><!></div>'),Zf=C("<div><!></div>"),Yf=C('<button class="arrow left svelte-c2erhr" aria-label="Previous" aria-live="polite"><!></button>'),Jf=C('<button class="arrow right svelte-c2erhr" aria-label="Next" aria-live="polite"><!></button>'),Qf=C("<!> <!>",1),Xf=C('<div class="rail-modal svelte-c2erhr"><!></div> <div class="close svelte-c2erhr"><!></div>',1);function $f(t,e){ne(e,!0);const i=R(e,"initialIndex",3,0),a=R(e,"onchange",3,()=>null),r=300;let n,l=G(!1);pt(()=>{setTimeout(()=>{n==null||n.setIndex(i()),requestAnimationFrame(()=>D(l,!0))})});function c(s){a()(s),n.setIndex(s)}hr(t,{blur:!0,dialog:d=>{var p=Xf(),u=J(p);Fe(u,"",{},{"--transition-duration":"300ms"});var f=k(u);{const b=(S,x)=>{let _=()=>x==null?void 0:x().currentIndex;var L=me(),I=J(L);Ie(I,17,()=>e.items,je,(j,B,M)=>{var q=Zf();let T;q.__click=()=>c(M);var E=k(q);{var P=F=>{var W=Kf(),$=k(W);Ne($,()=>e.each,()=>o(B),_),De(3,W,()=>ii,()=>({duration:o(l)?r:0})),w(F,W)};H(E,F=>{(Math.abs(M-_())===1||_()===M)&&F(P)})}V(()=>T=xe(q,1,"item svelte-c2erhr",null,T,{active:M===_()})),w(j,q)}),w(S,L)},y=(S,x)=>{let _=()=>x==null?void 0:x().currentIndex,L=()=>x==null?void 0:x().reachedEnd;var I=Qf(),j=J(I);{var B=T=>{var E=Yf();E.__click=()=>c(_()-1);var P=k(E);St(P,{size:21,direction:"left",title:"Previous"}),w(T,E)};H(j,T=>{_()>0&&T(B)})}var M=z(j,2);{var q=T=>{var E=Jf();E.__click=()=>c(_()+1);var P=k(E);St(P,{size:21,title:"Next"}),w(T,E)};H(M,T=>{L()||T(q)})}w(S,I)};let g=U(()=>o(l)?r:0);Qe(Do(f,{threshold:40,moveThreshold:40,get transitionDuration(){return o(g)},children:b,controls:y,$$slots:{default:!0,controls:!0}}),S=>n=S,()=>n)}var h=z(u,2),m=k(h);Pn(m,{size:"42px",onclick:()=>Mn(),"aria-label":"Close",children:(b,y)=>{xn(b,{size:24})},$$slots:{default:!0}}),De(7,h,()=>aa),w(d,p)},$$slots:{dialog:!0}}),le()}ve(["click"]);function eh(t,e){ne(e,!0);const i=R(e,"initialIndex",3,0);$f(t,{get items(){return e.titles},get initialIndex(){return i()},onchange:r=>de(ce.ExploreTitleRailSetIndex,e.titles[r],{index:r}),each:(r,n=vt,l=vt)=>{{let c=U(()=>{var s;return n().sid===((s=e.titles[l()])==null?void 0:s.sid)});jn(r,{get title(){return n()},get useVideoBackground(){return o(c)}})}},$$slots:{each:!0}}),le()}const et=[];function hi({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:r=0,returnToTitle:n=null,props:l={}}={}){if(e&&Eo(e))return;e==null||e.preventDefault(),et!=null&&et.length&&Ln();const c=On(),s={initialScrollPosition:r,...l},d=th({type:t,target:c,data:a,props:s});n&&Qo({type:t,injection:i,data:n}),Qo({type:t,injection:i,data:a,scrollPosition:r,component:d})}function th({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Nt(If,{target:e,props:{participant:i,...a}}):t==="explore"?Nt(Af,{target:e,props:{...a}}):t==="titles-rail"?Nt(eh,{target:e,props:{titles:i,...a}}):Nt(kf,{target:e,props:{title:i,...a}})}function Qo({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:r}){et.push({type:t,injection:e,data:i,scrollPosition:a,component:r})}function Ln(t=!0){et.length&&(rh(),$i(et[et.length-1].component,{outro:t}))}function ih(t=!0){Ln(t),et.pop()}function Mn(t=!0){for(Ln(t);et.length>0;)et.pop()}function Xo(){return et[et.length-2]||null}function ah(){if(et.length<2)return;ih();const t=et.pop();t&&hi({...t})}function rh(){const t=`[data-playpilot-link-injections] ${window.innerWidth>Ii?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(et[et.length-1].scrollPosition=e.scrollTop)}function nh(t,e){if(Eo(t))return;let i=t.target;if(!i||(i.hasAttribute(gi)||(i=i.closest(ai)),!i))return;const a=i.getAttribute(gi);if(!a)return;const r=e.find(n=>a===n.key);r&&(t.preventDefault(),Lf(()=>{mr(!1),hi({event:t,injection:r,data:r.title_details})},!Cn.current&&window.innerWidth>=Ii&&!window.matchMedia("(pointer: coarse)").matches))}var lh=C(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),oh=C('<!> <a target="_blank"> </a>',1),sh=C(" <!>.",1),ch=C("<!> <br/>",1),dh=C(" <br/>",1),ph=C('<span class="svelte-1to4glm"><!></span>'),uh=C('<p class="svelte-1to4glm"></p>');function vh(t,e){ne(e,!0);const i=R(e,"onclickmodal",3,()=>null);function a(s,d){de(ce.AfterArticlePlaylinkClick,s,{playlink:d})}function r(s,d,p){de(ce.AfterArticleModalButtonClick,d),i()(s,p)}var n=me(),l=J(n);{var c=s=>{var d=uh();Ie(d,21,()=>e.linkInjections,je,(p,u)=>{const f=U(()=>{const{key:S,title:x,title_details:_,after_article_style:L}=o(u);return{key:S,title:x,title_details:_,after_article_style:L}}),h=U(()=>{var S;return((S=o(f).title_details)==null?void 0:S.providers)||[]});var m=ph(),b=k(m);{var y=S=>{var x=ch(),_=J(x);{var L=j=>{var B=lh(),M=J(B),q=z(M);q.__click=P=>P.stopPropagation();var T=k(q);T.__click=P=>r(P,o(f).title_details,o(u));var E=k(T);V((P,F)=>{Z(M,`"${o(f).title??""}" ${P??""} `),Z(E,F)},[()=>re("Is Available To Stream"),()=>re("View Streaming Options")]),w(j,B)},I=j=>{var B=sh(),M=J(B),q=z(M);Ie(q,17,()=>o(h),je,(T,E,P)=>{let F=()=>o(E).name,W=()=>o(E).url;var $=oh(),N=J($);{var O=Q=>{var X=ui();V(ae=>Z(X,ae),[()=>P===o(h).length-1?`, ${re("And")}`:","]),w(Q,X)};H(N,Q=>{P&&Q(O)})}var K=z(N,2);K.__click=()=>a(o(f).title_details,F());var Y=k(K);V(()=>{ie(K,"href",W()),Z(Y,F())}),w(T,$)}),V(T=>Z(M,`"${o(f).title??""}" ${T??""} `),[()=>re("Is Available To Stream On")]),w(j,B)};H(_,j=>{o(f).after_article_style==="modal_button"?j(L):j(I,!1)})}w(S,x)},g=S=>{var x=dh(),_=J(x);V(L=>Z(_,`"${o(f).title??""}" ${L??""} `),[()=>re("Title Unavailable Suffix")]),w(S,x)};H(b,S=>{o(h).length?S(y):S(g,!1)})}V(()=>ie(m,"data-playpilot-injection-key",o(f).key)),w(p,m)}),w(s,d)};H(l,s=>{e.linkInjections.length&&s(c)})}w(t,n),le()}ve(["click"]);let Ia=null;function fh(t,e){var l,c;if(Ia||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,r=(a?document.querySelector(a):null)||t[t.length-1],n=((c=window.PlayPilotLinkInjections)==null?void 0:c.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(n,i),Ia=Nt(vh,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>hi({event:s,injection:d,data:d.title_details})}})}function hh(){var t;Ia&&($i(Ia),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),Ia=null)}var gh=C('<p class="svelte-1epbbn0"> </p>');function mh(t,e){ne(e,!1),nn();var i=gh(),a=k(i);V(r=>Z(a,r),[()=>{var r,n;return((n=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.config)==null?void 0:n.in_text_disclaimer_text)||re("In-Text Disclaimer")}]),w(t,i),le()}let ja=null;function yh(t){var n,l,c,s,d,p;if(!((l=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)!=null&&l.in_text_disclaimer_enabled)||ja)return;const e=document.createElement("div"),i=(s=(c=window.PlayPilotLinkInjections)==null?void 0:c.config)==null?void 0:s.in_text_disclaimer_selector,a=(i?document.querySelector(i):null)||t[0],r=((p=(d=window.PlayPilotLinkInjections)==null?void 0:d.config)==null?void 0:p.in_text_disclaimer_insert_position)||"beforebegin";e.dataset.playpilotInTextDisclaimer="true",a.insertAdjacentElement(r,e),ja=Nt(mh,{target:e})}function bh(){var t;ja&&($i(ja),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),ja=null)}const gi="data-playpilot-injection-key",ai=`[${gi}]`;function wh(t,e={aiInjections:[],manualInjections:[]}){qn(),Eh();const i=Ph(e);if(!i.length)return[];const a=fi(t.map(d=>d.innerText).join(" ")),n=zh(i).filter(d=>a.includes(fi(d.sentence))),l={};let c=-1;for(const d of jh(n)){c++;const p=t.findIndex(_=>fi(_.innerText).includes(fi(d.sentence))),u=t[p];if(!u)continue;const f=_o(d.title,u,["A"]);if(!(f!=null&&f.nodeValue)||ko(f)){const _=_o(d.title,u);if(_&&ko(_)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:m}=xh(d);let b=-1,y=!1;ar(u.innerHTML,d.title)===1&&(b=u.innerHTML.indexOf(d.title));const{phrase_before:S,phrase_after:x}=_h(u,d);if(b===-1&&(S||x)){const _=[S,d.title,x].filter(Boolean).join(" ");if(b=u.innerHTML.indexOf(_),b===-1){const L=md(u.innerHTML,d.title,S||"",x||"");if(L){const{leadingSpaces:I,trailingSpaces:j}=yd(L.match);m.innerHTML=L.match.trim();const B=L.index+I,M=L.index+L.match.length-j;if(u.innerHTML.slice(B,M).includes("href="))continue;Dn(u.innerHTML,d.title,u,h,B,M)&&(b=L.index,y=!0)}}}if(b===-1&&(f!=null&&f.nodeValue)){const _=u.innerHTML.indexOf(f.nodeValue),L=u.innerHTML.indexOf(d.sentence),I=L===-1?u.innerHTML.indexOf(d.sentence.slice(0,20)):-1,j=d.sentence.split(" ")[0],M=ar(u.innerHTML,j)===1?u.innerHTML.indexOf(j):-1,q=dd(n.slice(0,c+1),d,["title","sentence"])-1,T=bd(f.nodeValue,u,q);b=Math.max(_,I,T,M,L,0)}if(b!==-1&&!y&&!Dn(u.innerHTML,d.title,u,h,b)){const _=xd(d.title,u.innerHTML);_>-1?Dn(u.innerHTML,d.title,u,h,_):l[d.key]="Injection would have lead to broken HTML."}}Sh(n),kh();const s=Ih(i);return s.length&&fh(t,s),document.querySelector(ai)&&yh(t),i.filter(d=>d.title_details).map((d,p)=>{const u=!d.manual&&Ah(d,p,i),f=d.duplicate??u;f&&(l[d.key]=u?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${gi}="${d.key}"]`),m=es(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,b=n.find(g=>g.key===d.key),y=m?l[d.key]||(b?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:f,failed:m,failed_message:y}})}function xh(t){var a;const e=document.createElement("span");e.dataset.playpilotInjectionKey=t.key;const i=document.createElement("a");return i.dataset.playpilotPosterUrl=(a=t.title_details)==null?void 0:a.standing_poster,i.innerText=t.title,i.href=t.playpilot_url,i.target="_blank",i.rel="noopener nofollow noreferrer",e.insertAdjacentElement("beforeend",i),{injectionElement:e,linkElement:i}}function Dn(t,e,i,a,r,n=-1){const l=p=>Array.from(p.querySelectorAll(`a, ${ai}`)).filter(u=>!u.innerText).length,c=document.createElement("div");c.innerHTML=t;const s=l(c),d=c.innerText;return n>0?c.innerHTML=fd(t,a.outerHTML,r,n):c.innerHTML=vd(t,e,a.outerHTML,r),Math.abs(c.innerText.length-d.length)>1||s!=l(c)?!1:(i.innerHTML=c.innerHTML,!0)}function _h(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(ar(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const n=t.innerText.indexOf(e.title),l=hd(t,n,n+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function kh(){const t=Array.from(document.querySelectorAll(`${ai} a`)),e=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-font-weight-headings","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];for(const i of t){const a=getComputedStyle(i);for(const r of e)a.getPropertyValue(r)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${r}`)}}function Sh(t){window.addEventListener("mousemove",Uf),window.addEventListener("click",i=>nh(i,t)),document.querySelectorAll(ai).forEach(i=>{const a=i.dataset.playpilotInjectionKey,r=t.find(n=>a===n.key);r&&(i.addEventListener("mouseenter",n=>{Gf()||Vf(n,r)}),i.addEventListener("mouseleave",Wf))})}function qn(){document.querySelectorAll(ai).forEach(e=>Th(e.getAttribute(gi)||"")),hh(),bh(),Mn(!1),mr(!1)}function Th(t){var r;const e=document.querySelector(`[${gi}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(n=>n.remove());const a=(r=e.querySelector("a"))==null?void 0:r.innerHTML;e.outerHTML=a||""}function Eh(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(ai)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function Ph({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function Ch(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function $o(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&es(t)}function es(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function zh(t){return ts(t).filter(e=>e.in_text!==!1&&$o(e))}function Ih(t){return ts(t).filter(e=>e.after_article===!0&&$o(e))}function ts(t){return t.filter(e=>e.removed||e.inactive?!1:e.manual&&!e.removed&&!e.inactive?!0:!t.some(i=>i.manual&&(i.removed||i.inactive)&&is(i,e)))}function jh(t){return t.slice().sort((e,i)=>{if(e.sentence<i.sentence)return-1;if(e.sentence>i.sentence)return 1;const a=i.title.length-e.title.length;return a!==0?a:0})}function Ah(t,e,i){return i.some((a,r)=>e!==r&&a.manual&&is(a,t))}function is(t,e){return t.title===e.title&&fi(t.sentence)===fi(e.sentence)}function On(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Lh(){const t=vi();if(!t)throw new Error("No token was provided");try{return await await ti(`/domains/config?api-token=${t}`)||null}catch{return null}}ve(["click"]),ve(["input"]),ve(["click"]),ve(["click"]),ve(["click"]),ve(["mousedown","touchstart"]),ve(["mousedown","touchstart"]),ve(["click"]),ve(["click"]),ve(["click"]),ve(["click"]),ve(["click"]),ve(["click"]);function Mh(t,e){ne(e,!0);const i=100;let a=1;r();function r(){if(window.PlayPilotLinkInjections.require_consent===!1){n();return}if(!window.__tcfapi){a<i&&setTimeout(r,100),a++;return}window.__tcfapi("addEventListener",2,(l,c)=>{if(!c)return;const{purpose:s,eventStatus:d}=l;if(d!=="tcloaded"&&d!=="useractioncomplete")return;const p=u=>s.consents[u]===!0;_d({ads:p(1),pixels:p(1)&&p(7),split_tests:p(9)&&p(10),tracking:p(7)&&p(8),affiliate:p(1)&&p(7)}),n()})}function n(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}le()}var Dh=C('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),qh=C('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Oh=C('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Rh=C('<button class="svelte-1tp7i1s"></button>'),Nh=C("<small>You are using the beta version of TPI</small>"),Bh=C('<button class="svelte-1tp7i1s">Use beta script</button>'),Fh=C('<button class="svelte-1tp7i1s">Toggle new explore</button>'),Hh=C("<option> </option>"),Vh=C('<div class="debugger svelte-1tp7i1s"><strong>TPI Debugger</strong> <hr class="svelte-1tp7i1s"/> <!> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Insert mock card ad</button> <button class="svelte-1tp7i1s">Insert mock top scroll ad</button> <hr class="svelte-1tp7i1s"/> <small>Force split test variant</small> <!> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Output elements in console</button> <button class="svelte-1tp7i1s">Output text in console</button> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Re-inject</button> <!> <!> <hr class="svelte-1tp7i1s"/> <div><small>Region</small> <input type="text" class="svelte-1tp7i1s"/></div> <div style="margin-top: 4px"><small>Language</small> <select class="svelte-1tp7i1s"></select></div> <hr class="svelte-1tp7i1s"/> <div class="form-group svelte-1tp7i1s"><small>Desktop rail size</small> <input type="range"/> <small> </small></div> <hr class="svelte-1tp7i1s"/> <button class="svelte-1tp7i1s">Close</button></div>');function Uh(t,e){ne(e,!0);const i=["tpidebug","debugtpi"],a=[],r=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let n=G(Ae(d())),l=G(!1),c=null,s=G(184);on(()=>{c&&clearInterval(c)});function d(){var L,I,j,B,M,q;const g=window.PlayPilotLinkInjections,S=((L=g.evaluated_link_injections)==null?void 0:L.filter(T=>!T.failed))||[],x=((I=g.evaluated_link_injections)==null?void 0:I.filter(T=>T.failed))||[],_=Array.from(document.querySelectorAll("[data-playpilot-pixel]"));return{Config:[{label:"Domain",data:g.domain_sid},{label:"Organization",data:g.organization_sid},{label:"HTML selector",data:g.selector}],"API Config":Object.entries(window.PlayPilotLinkInjections.config||{}).map(([T,E])=>({label:T,data:E})),[`Succesful injections (${S.length})`]:S.map(T=>({label:T.title,data:T.sentence})),[`Failed injections (${x.length})`]:x.map(T=>({label:T.title,data:`Reason: ${T.failed_message} | Sentence: ${T.sentence}`})),[`Fetched ads (${((j=g.ads)==null?void 0:j.length)||0})`]:(B=g.ads)==null?void 0:B.map(T=>({label:T.campaign_name,data:T})),[`Tracking events (${((M=g.tracked_events)==null?void 0:M.length)||0})`]:(q=g.tracked_events)==null?void 0:q.map(T=>({label:T.event,data:T.payload})),[`Visible pixels (${_.length})`]:_.map((T,E)=>({label:E+1,data:T.src}))}}function p(g){o(l)||(a.push(g.key),D(l,i.some(S=>a.slice(a.length-S.length,a.length).join("")===S),!0),c=setInterval(()=>D(n,d(),!0),200))}function u(g){window.PlayPilotLinkInjections.ads.unshift({campaign_format:g,campaign_type:"image",campaign_name:"some_campaign",content:{header:"Content header",subheader:"Content subheader"},cta:{header:"Cta header",subheader:"Cta subheader"},disclaimer:"Disclaimer"})}function f(g){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(An).forEach(({key:S,numberOfVariants:x})=>{const _=1/x;window.PlayPilotLinkInjections.split_test_identifiers[S]=Math.min(_*g,1)})}function h(){var x,_;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(_=(x=window.PlayPilotLinkInjections)==null?void 0:x.destroy)==null||_.call(x);const S=document.createElement("script");for(const L of g.attributes)S.setAttribute(L.name,L.value);S.getAttribute("onload")||S.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),S.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",S),g.remove()}var m=me();ke("keydown",Me,p);var b=J(m);{var y=g=>{var S=Vh(),x=z(k(S),4);{var _=te=>{var fe=Dh();w(te,fe)};H(x,te=>{var fe,he,Ce;(fe=window.PlayPilotLinkInjections.config)!=null&&fe.exclude_urls_pattern&&ji().match((Ce=(he=window.PlayPilotLinkInjections)==null?void 0:he.config)==null?void 0:Ce.exclude_urls_pattern)&&te(_)})}var L=z(x,2);Ie(L,17,()=>Object.entries(o(n)),je,(te,fe)=>{var he=U(()=>ua(o(fe),2));let Ce=()=>o(he)[0],Ve=()=>o(he)[1];var Le=Oh(),pe=k(Le),Be=k(pe),at=z(pe,2);{var ni=ee=>{var oe=me(),ge=J(oe);{var rt=Ue=>{var Wt=me(),Nn=J(Wt);Ie(Nn,17,Ve,je,(Gt,Kt,lg,og)=>{let Jh=()=>o(Kt).label,Qh=()=>o(Kt).data;var rs=qh(),ns=k(rs),Xh=k(ns),$h=z(ns,2),eg=k($h);V(tg=>{Z(Xh,Jh()),Z(eg,tg)},[()=>JSON.stringify(Qh())]),w(Gt,rs)}),w(Ue,Wt)};H(ge,Ue=>{Array.isArray(Ve())&&Ue(rt)})}w(ee,oe)},Pt=ee=>{var oe=ui("No data");w(ee,oe)};H(at,ee=>{var oe;(oe=Ve())!=null&&oe.length?ee(ni):ee(Pt,!1)})}V(()=>Z(Be,Ce())),w(te,Le)});var I=z(L,4);I.__click=()=>u("card");var j=z(I,2);j.__click=()=>u("top_scroll");var B=z(j,6);Ie(B,16,()=>({length:4}),je,(te,fe,he)=>{var Ce=Rh();Ce.__click=()=>f(he),Ce.textContent=he,w(te,Ce)});var M=z(B,4);M.__click=()=>console.log(un(window.PlayPilotLinkInjections.config));var q=z(M,2);q.__click=()=>console.log(un(window.PlayPilotLinkInjections.config).pageText);var T=z(q,4);T.__click=function(...te){var fe;(fe=e.onrerender)==null||fe.apply(this,te)};var E=z(T,2);{var P=te=>{var fe=Nh();w(te,fe)},F=te=>{var fe=Bh();fe.__click=h,w(te,fe)};H(E,te=>{r?te(P):te(F,!1)})}var W=z(E,2);{var $=te=>{var fe=Fh();fe.__click=()=>{vr(),window.PlayPilotLinkInjections.config.explore_use_router=!Li(),ur()},w(te,fe)};H(W,te=>{Li()||te($)})}var N=z(W,4),O=z(k(N),2);Oc(O,window.PlayPilotLinkInjections.region),O.__change=te=>{vr(),window.PlayPilotLinkInjections.region=te.target.value,ur()};var K=z(N,2),Y=z(k(K),2);Y.__change=te=>{vr(),window.PlayPilotLinkInjections.language=te.target.value,ur()},Ie(Y,21,()=>Object.entries(v),je,(te,fe)=>{var he=U(()=>ua(o(fe),2));let Ce=()=>o(he)[0],Ve=()=>o(he)[1];var Le=Hh(),pe=k(Le),Be={};V(at=>{ao(Le,at),Z(pe,Ce()),Be!==(Be=Ve())&&(Le.value=(Le.__value=Ve())??"")},[()=>Ve()===Ea()]),w(te,Le)});var Q=z(K,4),X=z(k(Q),2);ie(X,"min",80),ie(X,"max",240),ie(X,"step",8),X.__input=()=>document.body.style.setProperty("--playpilot-rail-size-flexible",`${o(s)}px`);var ae=z(X,2),we=k(ae),Se=z(Q,4);Se.__click=()=>D(l,!1),V(()=>Z(we,o(s))),Ta(X,()=>o(s),te=>D(s,te)),w(g,S)};H(b,g=>{o(l)&&g(y)})}w(t,m),le()}ve(["click","change","input"]);function Wh(t,e){ne(e,!1);const i=Array.from(document.querySelectorAll(ai)),a=[],r=Date.now();let n=!1,l=null;pt(()=>{tr()||c()});function c(){l=new IntersectionObserver(s),i.forEach(u=>{l.observe(u)})}function s(u){u.forEach(f=>{if(!f.isIntersecting)return;const h=f.target.getAttribute(gi);h&&a.push(h),l.unobserve(f.target)})}function d(){const{scrollHeight:u,scrollTop:f,clientHeight:h}=document.documentElement;return f/(u-h)*100}function p(){var f,h;if(n||document.visibilityState!=="hidden")return;n=!0;const u=Date.now();de(ce.UserLeft,null,{time_start:r,time_end:u,time_spent:u-r,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(f=window.PlayPilotLinkInjections)==null?void 0:f.tracked_events)==null?void 0:h.map(m=>m.event))||[],scroll_percentage:d()})}nn(),ke("visibilitychange",Me,p),le()}function Gh(t,e){ne(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new fr,r=.7,n="[data-playpilot-poster]";let l=G(0),c={},s=null;const d=U(()=>o(l)<Ii);on(h);function p(){var x,_;if((_=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&_.disable_scroll_reveal_posters||!o(d))return;m();const b=window.innerHeight,y=new fr,g=b*r,S=b-g;for(const L of i){const{top:I}=L.getBoundingClientRect();I<g&&I>S&&y.add(L)}for(const L of y){if(a.has(L))continue;const I=L.dataset.playpilotPosterUrl;I in c&&c[I]!==L||(u(L,I),a.add(L),c[I]=L)}}function u(b,y){const g=document.createElement("img");g.classList.add("playpilot-floating-poster"),g.dataset.playpilotPoster="",g.src=y,g.alt="",g.onload=()=>g.classList.add("loaded"),b.insertAdjacentElement("afterbegin",g)}function f(b){const y=b.querySelector(n);y&&(y.classList.add("animating-out"),setTimeout(()=>y.remove(),500))}function h(){for(const b of Array.from(document.querySelectorAll(n)))b.remove()}function m(){s&&clearTimeout(s),s=setTimeout(()=>{for(const b of a)f(b),a.delete(b),c={}},1e3)}ke("scroll",Me,p),rn("innerWidth",b=>D(l,b,!0)),le()}var Kh=C("<!> <!>",1),Zh=C('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function Yh(t,e){ne(e,!0);let i=G(Ae([])),a=G(null),r=G(Ae(tr()));go();let n=G(!1),l=G(!0),c=G(!0),s=G(Ae([]));const d=U(()=>o(a)||{}),p=U(()=>Zn(o(d).ai_injections,()=>[],!0)),u=U(()=>Zn(o(d).manual_injections,()=>[],!0)),f=U(()=>pn(o(i))),h=b();Ge(()=>{o(r)&&!o(l)&&y()}),ur(),on(qn);async function m(){rr()||(await h,Cd(),de(ce.ArticlePageView),!(!o(p).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await Io())))}async function b(){var E;D(l,!0);try{o(r)&&D(n,await ho({throwError:!0}),!0)}catch{de(ce.AuthFailed)}try{const P=window.PlayPilotLinkInjections.config||await Lh()||{};if(window.PlayPilotLinkInjections.config=P,P!=null&&P.custom_style&&S(P.custom_style||""),P!=null&&P.explore_navigation_selector&&Mu(),P!=null&&P.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),P!=null&&P.domain_sid&&Co({organizationSid:P.organization_sid,domainSid:P.domain_sid}),D(c,od(P),!0),o(c))return;P!=null&&P.html_selector&&(window.PlayPilotLinkInjections.selector=P==null?void 0:P.html_selector),D(i,un(window.PlayPilotLinkInjections.config).elements,!0)}catch(P){de(ce.FetchingConfigFailed),console.error("TPI Config failed to fetch",P);return}try{if(D(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),D(a,o(a)||await wo(o(f),{maxTries:1,runAiWhenRelevant:!rr()}),!0),D(l,!1),!o(a)||(E=window.PlayPilotLinkInjections.config)!=null&&E.disable_public_injections&&!(o(r)&&o(n)))return;if(Co({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){g({aiInjections:o(p),manualInjections:o(u)});return}if(!o(r)||rr())return;D(a,await wo(o(f),{requireCompletedResult:!0,onpoll:P=>D(a,P,!0)}),!0),g({aiInjections:o(p),manualInjections:o(u)})}catch(P){console.error(P),de(ce.InjectionError,null,{message:P.message})}}function y(){g(Ch(o(s)))}function g(E={aiInjections:o(p),manualInjections:o(u)}){const P=wh(o(i),E);JSON.stringify(P)!==JSON.stringify(o(s))&&(D(s,P,!0),window.PlayPilotLinkInjections.evaluated_link_injections=P),o(r)||x(P)}function S(E){const P="playpilot-custom-style",F=document.getElementById(P),W=F||document.createElement("style");W.textContent=`body { ${E} }`,W.id=P,F||document.body.appendChild(W)}function x(E){const P=E.filter(W=>!W.failed),F=E.filter(W=>W.failed);if(P.length&&de(ce.ArticleInjected,null,{manual:P.filter(W=>W.manual).length,ai:P.filter(W=>!W.manual).length}),F.length){const W=$=>F.filter(({failed_message:N})=>N==null?void 0:N.includes($)).length;de(ce.FailedInjectionsCount,null,{total:F.length,sentence_not_found:W("sentence was not found"),already_linked:W("already inside of a link"),broken_html:W("broken HTML"),duplicate:W("duplicate"),unknown:W("unknown reasons")})}}var _=Zh(),L=J(_),I=k(L);H(I,E=>{});var j=z(I,2);Uh(j,{onrerender:y});var B=z(L,2);{var M=E=>{Tn(E,{get pixels(){return o(a).pixels}})};H(B,E=>{var P,F;(F=(P=o(a))==null?void 0:P.pixels)!=null&&F.length&&E(M)})}var q=z(B,2);Sa(q,()=>o(s),E=>{var P=Kh(),F=J(P);Wh(F,{});var W=z(F,2);Gh(W,{}),w(E,P)});var T=z(q,2);Mh(T,{onchange:m}),w(t,_),le()}window.PlayPilotMount={mount(){if(window.PlayPilotLinkInjections.app)return;const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Nt(Yh,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),qn()}}})();