@playpilot/tpi 7.1.0 → 7.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mount.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
var th=Object.defineProperty;var Oo=_e=>{throw TypeError(_e)};var ih=(_e,ke,Pe)=>ke in _e?th(_e,ke,{enumerable:!0,configurable:!0,writable:!0,value:Pe}):_e[ke]=Pe;var bt=(_e,ke,Pe)=>ih(_e,typeof ke!="symbol"?ke+"":ke,Pe),gr=(_e,ke,Pe)=>ke.has(_e)||Oo("Cannot "+Pe);var E=(_e,ke,Pe)=>(gr(_e,ke,"read from private field"),Pe?Pe.call(_e):ke.get(_e)),re=(_e,ke,Pe)=>ke.has(_e)?Oo("Cannot add the same private member more than once"):ke instanceof WeakSet?ke.add(_e):ke.set(_e,Pe),ie=(_e,ke,Pe,Ta)=>(gr(_e,ke,"write to private field"),Ta?Ta.call(_e,Pe):ke.set(_e,Pe),Pe),Ee=(_e,ke,Pe)=>(gr(_e,ke,"access private method"),Pe);(function(){"use strict";var Yi,Ji,Si,Ei,wa,Xi,Qi,Oe,mr,ji,yr,No,Ro,ct,dt,hr,It,Ti,At,pt,et,Lt,Gt,oi,Pi,si,Ci,ci,on,Re,ah,nh,br,vn,fn,wr,mt,Mt,at,zi,xa,_a,sn,di,$i,ka,cn,Bo,Mo,ea,yt,pi,pn,ta,Fo,Vo,Sa,Ea;var _e=document.createElement("style");_e.textContent=`.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)}.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-14exe2s{--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-14exe2s{overflow:auto;overscroll-behavior:contain;padding:32px 0}}.modal.has-bubble.svelte-14exe2s{--playpilot-detail-background-border-radius: 0}.dialog.svelte-14exe2s,.bubble.svelte-14exe2s,.prepend.svelte-14exe2s{max-width:600px}.wide.svelte-14exe2s .dialog:where(.svelte-14exe2s),.wide.svelte-14exe2s .bubble:where(.svelte-14exe2s),.wide.svelte-14exe2s .prepend:where(.svelte-14exe2s){max-width:900px}.dialog.svelte-14exe2s{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-14exe2s{height:80dvh}}@media (min-width: 600px){.dialog.svelte-14exe2s{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-14exe2s .dialog:where(.svelte-14exe2s){height:90vh}@supports (height: 1dvh){.tall.svelte-14exe2s .dialog:where(.svelte-14exe2s){height:90dvh}}}.has-prepend.svelte-14exe2s .dialog:where(.svelte-14exe2s){margin-top:0}.has-bubble.svelte-14exe2s .dialog:where(.svelte-14exe2s){border-top-left-radius:0;border-top-right-radius:0;margin-top:0}.swipe-handle.svelte-14exe2s{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-14exe2s{--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-14exe2s{position:absolute;margin-top:0;top:16px}}.close.svelte-14exe2s:hover{filter:brightness(1.1)}.close.flat.svelte-14exe2s{--playpilot-button-background: transparent;--playpilot-button-shadow: none}.close.back.svelte-14exe2s{right:auto;left:16px}.close.back.flat.svelte-14exe2s{left:8px}.close.back.flat.svelte-14exe2s svg{margin:0}.prepend.svelte-14exe2s{z-index:1;position:relative;width:calc(100% - 16px);padding-top:48px;margin:auto auto 8px}@media (min-width: 600px){.prepend.svelte-14exe2s{padding-top:0;margin-top:0}}.bubble.svelte-14exe2s{z-index:1;position:relative;width:100%;margin:auto 0 0}@media (min-width: 600px){.bubble.svelte-14exe2s{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, var(--playpilot-inherit));font-weight:var(--playpilot-genre-font-weight, var(--playpilot-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}img.svelte-16jzx4f{position:absolute;width:1px;height:1px;border:0;opacity:0}@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-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, var(--playpilot-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, var(--playpilot-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, var(--playpilot-inherit));font-family:var(--playpilot-playlink-category-font-family, var(--playpilot-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, var(--playpilot-inherit));font-family:var(--playpilot-playlink-cta-font-family, var(--playpilot-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, var(--playpilot-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}.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, var(--playpilot-inherit));font-family:inherit;font-size:inherit}.show-more.svelte-7itcht:hover{text-decoration:underline;text-decoration-thickness:2px;cursor:pointer}.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}}.heading.svelte-1ayf7b5{margin:16px 0 8px;font-size:var(--playpilot-rail-title-font-size, 18px);line-height:normal;font-weight:inherit;color:var(--playpilot-rail-title-text-color, var(--playpilot-text-color))}.rail.svelte-1ayf7b5{--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: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}.participant.svelte-zy7e3f{display:flex;flex-direction:column;flex:0 0 10rem;width:10rem;min-height:54px;padding:8px;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}img.svelte-p6g2a{display:block;width:100%;height:auto;margin:0!important;color:transparent}.title.svelte-12ph9f6{width:96px}.title.svelte-12ph9f6:hover,.title.svelte-12ph9f6:active{filter:brightness(1.1)}.poster.svelte-12ph9f6{display:block;border-radius:var(--playpilot-rail-border-radius, var(--playpilot-border-radius));overflow:hidden;width:100%;aspect-ratio:2/3;background:var(--playpilot-detail-background-light, var(--playpilot-lighter));text-decoration:none}.heading.svelte-12ph9f6{display:-webkit-box;padding-top:8px;overflow:hidden;text-decoration:none;color:var(--playpilot-rail-text-color, var(--playpilot-text-color-alt))!important;font-size:var(--playpilot-rail-font-size, var(--playpilot-font-size-small));font-style:normal!important;line-height:1.2;line-clamp:2;-webkit-line-clamp:2;-webkit-box-orient:vertical;text-overflow:ellipsis}.skeleton.svelte-12ph9f6{display:block;height:1em;width:100%;background:var(--playpilot-detail-background-light, var(--playpilot-lighter));border-radius:32px}.skeleton.svelte-12ph9f6:last-child{margin-top:4.8px;width:50%}.button.svelte-5bqh67{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:100%;align-items:center;justify-content:center;gap:4px;border:0;padding:.25em .5em;background:transparent;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-border-color, var(--playpilot-lighter));color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.border.active.svelte-5bqh67{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}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}iframe.svelte-f0c4xl{z-index:1;position:relative;display:block;width:95vmin;height:auto;aspect-ratio:16/9;box-shadow:0 0 64px #ffffff26;background:#000}.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))}.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)}.heading.svelte-16ajinh{margin:8px 0;color:var(--playpilot-detail-title-text-color, var(--playpilot-text-color));font-family:var(--playpilot-detail-title-font-family, var(--playpilot-inherit));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))}.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:48px 0 16px;background:transparent}.small.svelte-16ajinh .header:where(.svelte-16ajinh){padding-top:16px}.poster.svelte-16ajinh{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{display:flex;flex-wrap:wrap;align-items:center;gap:8px 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{display:flex;gap:8px;margin-top:16px}.background.svelte-16ajinh{position:absolute;top:0;left:0;width:100%;height:192px;border-radius:var(--playpilot-detail-background-border-radius, 0px);overflow:hidden;background:var(--playpilot-detail-background, var(--playpilot-lighter));z-index:0}.background.svelte-16ajinh:before{content:"";display:block;position:absolute;top:0;right:0;bottom:0;left:0;background:linear-gradient(to top,var(--playpilot-detail-background, var(--playpilot-light)),transparent 40%);z-index:1}.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);font-size:var(--playpilot-font-size-small);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}.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-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))}.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)}.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}.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}.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}.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}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)}.explore.svelte-ilcedm{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-ilcedm *{box-sizing:border-box}.header.svelte-ilcedm{display:flex;flex-direction:column;gap:8px;margin:var(--playpilot-explore-header-margin, 0 0 32px);width:100%}.grid.svelte-ilcedm .header:where(.svelte-ilcedm){gap:16px}.divider.svelte-ilcedm{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-ilcedm{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-ilcedm{max-width:var(--playpilot-explore-header-max-width, 600px);margin:var(--playpilot-explore-description-margin, 0 0 16px);color:var(--playpilot-text-color-alt);font-size:var(--playpilot-font-size-small);line-height:1.35}.grid.svelte-ilcedm .description:where(.svelte-ilcedm){font-size:var(--playpilot-font-size-base)}.titles.svelte-ilcedm{--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}.grid.svelte-ilcedm .titles:where(.svelte-ilcedm){display:grid;grid-template-columns:repeat(var(--grid-columns),minmax(120px,1fr));gap:16px}.show-more.svelte-ilcedm{flex:0 0 100%;display:grid;margin-top:16px}.grid.svelte-ilcedm .show-more:where(.svelte-ilcedm){margin:32px auto 0;max-width:600px;width:100%}.content.svelte-1t10gn{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}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, var(--playpilot-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, var(--playpilot-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-16vgewr{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-16vgewr:hover,option.svelte-16vgewr:active,option.svelte-16vgewr:checked{background-color:var(--playpilot-content-light);font-weight:700}.form.svelte-16vgewr{padding:32px;font-family:var(--playpilot-font-family);color:var(--playpilot-text-color)}.heading.svelte-16vgewr{font-size:20px}.info.svelte-16vgewr{margin:16px 0;font-size:13.6px;color:var(--playpilot-text-color-alt)}.info.svelte-16vgewr strong:where(.svelte-16vgewr){color:var(--playpilot-text-color)}.submit.svelte-16vgewr{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-16vgewr{background:var(--playpilot-content);color:var(--playpilot-text-color-alt);box-shadow:none;opacity:.5;cursor:default}.sent.svelte-16vgewr{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)}.debugger.svelte-1tp7i1s{z-index:2147483647;position:fixed;top:0;left:0;max-width:70dvw;max-height:50dvh;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}.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-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(_e);const ke=!1;var Pe=Array.isArray,Ta=Array.prototype.indexOf,hn=Array.from,Ho=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,xr=Object.getOwnPropertyDescriptors,Uo=Object.prototype,Wo=Array.prototype,gn=Object.getPrototypeOf,_r=Object.isExtensible;function Ii(t){return typeof t=="function"}const Dt=()=>{};function Go(t){return typeof(t==null?void 0:t.then)=="function"}function Ko(t){return t()}function mn(t){for(var e=0;e<t.length;e++)t[e]()}function kr(){var t,e,i=new Promise((a,n)=>{t=a,e=n});return{promise:i,resolve:t,reject:e}}function Sr(t,e,i=!1){return t===void 0?i?e():e:t}function Pa(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const i=[];for(const a of t)if(i.push(a),i.length===e)break;return i}const Be=2,yn=4,Ca=8,Er=1<<24,wt=16,qt=32,ui=64,za=128,ut=512,We=1024,Je=2048,Ot=4096,tt=8192,Nt=16384,ja=32768,xt=65536,Tr=1<<17,Pr=1<<18,Ai=1<<19,Cr=1<<20,aa=32768,bn=1<<21,wn=1<<22,Yt=1<<23,_t=Symbol("$state"),zr=Symbol("legacy props"),Zo=Symbol(""),Li=new class extends Error{constructor(){super(...arguments);bt(this,"name","StaleReactionError");bt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function xn(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Yo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Jo(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Xo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Qo(t){throw new Error("https://svelte.dev/e/effect_orphan")}function $o(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function es(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function ts(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function is(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function as(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ns(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const jr=1,Ir=2,Ar=4,rs=8,ls=16,os=1,ss=2,cs=4,ds=8,ps=16,us=1,vs=2,fs=4,hs=1,gs=2,Ne=Symbol(),ms="http://www.w3.org/1999/xhtml",ys="http://www.w3.org/2000/svg",bs="@attach";function ws(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function xs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Lr(t){return t===this.v}function Mr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Dr(t){return!Mr(t,this.v)}let Mi=!1,_s=!1;function ks(){Mi=!0}let xe=null;function Di(t){xe=t}function _n(t){return qr().get(t)}function kn(t,e){return qr().set(t,e),e}function ae(t,e=!1,i){xe={p:xe,i:!1,c:null,e:null,s:t,x:null,l:Mi&&!e?{s:null,u:null,$:[]}:null}}function ne(t){var e=xe,i=e.e;if(i!==null){e.e=null;for(var a of i)rl(a)}return t!==void 0&&(e.x=t),e.i=!0,xe=e.p,t??{}}function vi(){return!Mi||xe!==null&&xe.l===null}function qr(t){return xe===null&&xn(),xe.c??(xe.c=new Map(Ss(xe)||void 0))}function Ss(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let fi=[];function Or(){var t=fi;fi=[],mn(t)}function Rt(t){if(fi.length===0&&!Oi){var e=fi;queueMicrotask(()=>{e===fi&&Or()})}fi.push(t)}function Es(){for(;fi.length>0;)Or()}function Nr(t){var e=ye;if(e===null)return ge.f|=Yt,t;if(e.f&ja)qi(t,e);else{if(!(e.f&za))throw t;e.b.error(t)}}function qi(t,e){for(;e!==null;){if(e.f&za)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Ia=new Set;let he=null,Aa=null,Ie=null,rt=[],La=null,Sn=!1,Oi=!1;const ln=class ln{constructor(){re(this,Oe);bt(this,"committed",!1);bt(this,"current",new Map);bt(this,"previous",new Map);re(this,Yi,new Set);re(this,Ji,new Set);re(this,Si,0);re(this,Ei,0);re(this,wa,null);re(this,Xi,[]);re(this,Qi,[]);bt(this,"skipped_effects",new Set);bt(this,"is_fork",!1)}is_deferred(){return this.is_fork||E(this,Ei)>0}process(e){var a;rt=[],Aa=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of e)Ee(this,Oe,mr).call(this,n,i);this.is_fork||Ee(this,Oe,No).call(this),this.is_deferred()?(Ee(this,Oe,ji).call(this,i.effects),Ee(this,Oe,ji).call(this,i.render_effects),Ee(this,Oe,ji).call(this,i.block_effects)):(Aa=this,he=null,Fr(i.render_effects),Fr(i.effects),Aa=null,(a=E(this,wa))==null||a.resolve()),Ie=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&Yt||(this.current.set(e,e.v),Ie==null||Ie.set(e,e.v))}activate(){he=this,this.apply()}deactivate(){he===this&&(he=null,Ie=null)}flush(){if(this.activate(),rt.length>0){if(Br(),he!==null&&he!==this)return}else E(this,Si)===0&&this.process([]);this.deactivate()}discard(){for(const e of E(this,Ji))e(this);E(this,Ji).clear()}increment(e){ie(this,Si,E(this,Si)+1),e&&ie(this,Ei,E(this,Ei)+1)}decrement(e){ie(this,Si,E(this,Si)-1),e&&ie(this,Ei,E(this,Ei)-1),this.revive()}revive(){for(const e of E(this,Xi))Ge(e,Je),hi(e);for(const e of E(this,Qi))Ge(e,Ot),hi(e);ie(this,Xi,[]),ie(this,Qi,[]),this.flush()}oncommit(e){E(this,Yi).add(e)}ondiscard(e){E(this,Ji).add(e)}settled(){return(E(this,wa)??ie(this,wa,kr())).promise}static ensure(){if(he===null){const e=he=new ln;Ia.add(he),Oi||ln.enqueue(()=>{he===e&&e.flush()})}return he}static enqueue(e){Rt(e)}apply(){}};Yi=new WeakMap,Ji=new WeakMap,Si=new WeakMap,Ei=new WeakMap,wa=new WeakMap,Xi=new WeakMap,Qi=new WeakMap,Oe=new WeakSet,mr=function(e,i){var p;e.f^=We;for(var a=e.first;a!==null;){var n=a.f,r=(n&(qt|ui))!==0,l=r&&(n&We)!==0,c=l||(n&tt)!==0||this.skipped_effects.has(a);if(a.f&za&&((p=a.b)!=null&&p.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!c&&a.fn!==null){r?a.f^=We:n&yn?i.effects.push(a):da(a)&&(a.f&wt&&i.block_effects.push(a),pa(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&&(Ee(this,Oe,ji).call(this,i.effects),Ee(this,Oe,ji).call(this,i.render_effects),Ee(this,Oe,ji).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},ji=function(e){for(const i of e)(i.f&Je?E(this,Xi):E(this,Qi)).push(i),Ee(this,Oe,yr).call(this,i.deps),Ge(i,We)},yr=function(e){if(e!==null)for(const i of e)!(i.f&Be)||!(i.f&aa)||(i.f^=aa,Ee(this,Oe,yr).call(this,i.deps))},No=function(){if(E(this,Ei)===0){for(const e of E(this,Yi))e();E(this,Yi).clear()}E(this,Si)===0&&Ee(this,Oe,Ro).call(this)},Ro=function(){var r;if(Ia.size>1){this.previous.clear();var e=Ie,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Ia){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 n=rt;rt=[];const d=new Set,p=new Map;for(const u of c)Vr(u,s,d,p);if(rt.length>0){he=l,l.apply();for(const u of rt)Ee(r=l,Oe,mr).call(r,u,a);l.deactivate()}rt=n}}he=null,Ie=e}this.committed=!0,Ia.delete(this)};let kt=ln;function Rr(t){var e=Oi;Oi=!0;try{for(var i;;){if(Es(),rt.length===0&&(he==null||he.flush(),rt.length===0))return La=null,i;Br()}}finally{Oi=e}}function Br(){var t=$t;Sn=!0;var e=null;try{var i=0;for(Da(!0);rt.length>0;){var a=kt.ensure();if(i++>1e3){var n,r;Ts()}a.process(rt),Jt.clear()}}finally{Sn=!1,Da(t),La=null}}function Ts(){try{$o()}catch(t){qi(t,La)}}let vt=null;function Fr(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(Nt|tt))&&da(a)&&(vt=new Set,pa(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?cl(a):a.fn=null),(vt==null?void 0:vt.size)>0)){Jt.clear();for(const n of vt){if(n.f&(Nt|tt))continue;const r=[n];let l=n.parent;for(;l!==null;)vt.has(l)&&(vt.delete(l),r.push(l)),l=l.parent;for(let c=r.length-1;c>=0;c--){const s=r[c];s.f&(Nt|tt)||pa(s)}}vt.clear()}}vt=null}}function Vr(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const r=n.f;r&Be?Vr(n,e,i,a):r&(wn|wt)&&!(r&Je)&&Hr(n,e,a)&&(Ge(n,Je),hi(n))}}function Hr(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const n of t.deps){if(e.includes(n))return!0;if(n.f&Be&&Hr(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function hi(t){for(var e=La=t;e.parent!==null;){e=e.parent;var i=e.f;if(Sn&&e===ye&&i&wt&&!(i&Pr))return;if(i&(ui|qt)){if(!(i&We))return;e.f^=We}}rt.push(e)}function Ur(t){let e=0,i=Et(0),a;return()=>{oa()&&(o(i),Ma(()=>(e===0&&(a=zt(()=>t(()=>Xt(i)))),e+=1,()=>{Rt(()=>{e-=1,e===0&&(a==null||a(),a=void 0,Xt(i))})})))}}var Ps=xt|Ai|za;function Cs(t,e,i){new zs(t,e,i)}class zs{constructor(e,i,a){re(this,Re);bt(this,"parent");re(this,ct,!1);re(this,dt);re(this,hr,null);re(this,It);re(this,Ti);re(this,At);re(this,pt,null);re(this,et,null);re(this,Lt,null);re(this,Gt,null);re(this,oi,null);re(this,Pi,0);re(this,si,0);re(this,Ci,!1);re(this,ci,null);re(this,on,Ur(()=>(ie(this,ci,Et(E(this,Pi))),()=>{ie(this,ci,null)})));ie(this,dt,e),ie(this,It,i),ie(this,Ti,a),this.parent=ye.b,ie(this,ct,!!E(this,It).pending),ie(this,At,Qt(()=>{ye.b=this;{var n=Ee(this,Re,br).call(this);try{ie(this,pt,Qe(()=>a(n)))}catch(r){this.error(r)}E(this,si)>0?Ee(this,Re,fn).call(this):ie(this,ct,!1)}return()=>{var r;(r=E(this,oi))==null||r.remove()}},Ps))}is_pending(){return E(this,ct)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!E(this,It).pending}update_pending_count(e){Ee(this,Re,wr).call(this,e),ie(this,Pi,E(this,Pi)+e),E(this,ci)&&Bt(E(this,ci),E(this,Pi))}get_effect_pending(){return E(this,on).call(this),o(E(this,ci))}error(e){var i=E(this,It).onerror;let a=E(this,It).failed;if(E(this,Ci)||!i&&!a)throw e;E(this,pt)&&(Fe(E(this,pt)),ie(this,pt,null)),E(this,et)&&(Fe(E(this,et)),ie(this,et,null)),E(this,Lt)&&(Fe(E(this,Lt)),ie(this,Lt,null));var n=!1,r=!1;const l=()=>{if(n){xs();return}n=!0,r&&ns(),kt.ensure(),ie(this,Pi,0),E(this,Lt)!==null&&Ri(E(this,Lt),()=>{ie(this,Lt,null)}),ie(this,ct,this.has_pending_snippet()),ie(this,pt,Ee(this,Re,vn).call(this,()=>(ie(this,Ci,!1),Qe(()=>E(this,Ti).call(this,E(this,dt)))))),E(this,si)>0?Ee(this,Re,fn).call(this):ie(this,ct,!1)};var c=ge;try{$e(null),r=!0,i==null||i(e,l),r=!1}catch(s){qi(s,E(this,At)&&E(this,At).parent)}finally{$e(c)}a&&Rt(()=>{ie(this,Lt,Ee(this,Re,vn).call(this,()=>{kt.ensure(),ie(this,Ci,!0);try{return Qe(()=>{a(E(this,dt),()=>e,()=>l)})}catch(s){return qi(s,E(this,At).parent),null}finally{ie(this,Ci,!1)}}))})}}ct=new WeakMap,dt=new WeakMap,hr=new WeakMap,It=new WeakMap,Ti=new WeakMap,At=new WeakMap,pt=new WeakMap,et=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,oi=new WeakMap,Pi=new WeakMap,si=new WeakMap,Ci=new WeakMap,ci=new WeakMap,on=new WeakMap,Re=new WeakSet,ah=function(){try{ie(this,pt,Qe(()=>E(this,Ti).call(this,E(this,dt))))}catch(e){this.error(e)}ie(this,ct,!1)},nh=function(){const e=E(this,It).pending;e&&(ie(this,et,Qe(()=>e(E(this,dt)))),kt.enqueue(()=>{var i=Ee(this,Re,br).call(this);ie(this,pt,Ee(this,Re,vn).call(this,()=>(kt.ensure(),Qe(()=>E(this,Ti).call(this,i))))),E(this,si)>0?Ee(this,Re,fn).call(this):(Ri(E(this,et),()=>{ie(this,et,null)}),ie(this,ct,!1))}))},br=function(){var e=E(this,dt);return E(this,ct)&&(ie(this,oi,Tt()),E(this,dt).before(E(this,oi)),e=E(this,oi)),e},vn=function(e){var i=ye,a=ge,n=xe;Ct(E(this,At)),$e(E(this,At)),Di(E(this,At).ctx);try{return e()}catch(r){return Nr(r),null}finally{Ct(i),$e(a),Di(n)}},fn=function(){const e=E(this,It).pending;E(this,pt)!==null&&(ie(this,Gt,document.createDocumentFragment()),E(this,Gt).append(E(this,oi)),ul(E(this,pt),E(this,Gt))),E(this,et)===null&&ie(this,et,Qe(()=>e(E(this,dt))))},wr=function(e){var i;if(!this.has_pending_snippet()){this.parent&&Ee(i=this.parent,Re,wr).call(i,e);return}ie(this,si,E(this,si)+e),E(this,si)===0&&(ie(this,ct,!1),E(this,et)&&Ri(E(this,et),()=>{ie(this,et,null)}),E(this,Gt)&&(E(this,dt).before(E(this,Gt)),ie(this,Gt,null)))};let gi=null;function Wr(t){gi=t}function Ae(t,e){return e}function js(t,e,i){for(var a=[],n=e.length,r=0;r<n;r++)jn(e[r].e,a,!0);dl(a,()=>{var l=a.length===0&&i!==null;if(l){var c=i,s=c.parentNode;Rs(s),s.append(c),t.items.clear(),St(t,e[0].prev,e[n-1].next)}for(var d=0;d<n;d++){var p=e[d];l||(t.items.delete(p.k),St(t,p.prev,p.next)),Fe(p.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Ce(t,e,i,a,n,r=null){var l=t,c=new Map,s=null,d=(e&Ar)!==0,p=(e&jr)!==0,u=(e&Ir)!==0;if(d){var v=t;l=v.appendChild(Tt())}var h=null,m=Tn(()=>{var S=i();return Pe(S)?S:S==null?[]:hn(S)}),b,g=!0;function y(){Is(x,b,l,e,a),h!==null&&(b.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):In(h.effect),_.first=h.effect):Ri(h.effect,()=>{h=null}))}var _=Qt(()=>{b=o(m);for(var S=b.length,L=new Set,I=he,j=null,V=il(),M=0;M<S;M+=1){var z=b[M],D=a(z,M),A=g?null:c.get(D);A?(p&&Bt(A.v,z),u?Bt(A.i,M):A.i=M,V&&I.skipped_effects.delete(A.e)):(A=As(g?l:null,j,z,D,M,n,e,i),g&&(A.o=!0,j===null?s=A:j.next=A,j=A),c.set(D,A)),L.add(D)}if(S===0&&r&&!h)if(g)h={fragment:null,effect:Qe(()=>r(l))};else{var P=document.createDocumentFragment(),N=Tt();P.append(N),h={fragment:P,effect:Qe(()=>r(N))}}if(!g)if(V){for(const[R,X]of c)L.has(R)||I.skipped_effects.add(X.e);I.oncommit(y),I.ondiscard(()=>{})}else y();o(m)}),x={effect:_,flags:e,items:c,first:s};g=!1}function Is(t,e,i,a,n){var z,D,A,P;var r=(a&rs)!==0,l=e.length,c=t.items,s=t.first,d,p=null,u,v=[],h=[],m,b,g,y;if(r)for(y=0;y<l;y+=1)m=e[y],b=n(m,y),g=c.get(b),g.o&&((z=g.a)==null||z.measure(),(u??(u=new Set)).add(g));for(y=0;y<l;y+=1){if(m=e[y],b=n(m,y),g=c.get(b),t.first??(t.first=g),!g.o){g.o=!0;var _=p?p.next:s;St(t,p,g),St(t,g,_),En(g,_,i),p=g,v=[],h=[],s=p.next;continue}if(g.e.f&tt&&(In(g.e),r&&((D=g.a)==null||D.unfix(),(u??(u=new Set)).delete(g))),g!==s){if(d!==void 0&&d.has(g)){if(v.length<h.length){var x=h[0],S;p=x.prev;var L=v[0],I=v[v.length-1];for(S=0;S<v.length;S+=1)En(v[S],x,i);for(S=0;S<h.length;S+=1)d.delete(h[S]);St(t,L.prev,I.next),St(t,p,L),St(t,I,x),s=x,p=I,y-=1,v=[],h=[]}else d.delete(g),En(g,s,i),St(t,g.prev,g.next),St(t,g,p===null?t.first:p.next),St(t,p,g),p=g;continue}for(v=[],h=[];s!==null&&s.k!==b;)s.e.f&tt||(d??(d=new Set)).add(s),h.push(s),s=s.next;if(s===null)continue;g=s}v.push(g),p=g,s=g.next}if(s!==null||d!==void 0){for(var j=d===void 0?[]:hn(d);s!==null;)s.e.f&tt||j.push(s),s=s.next;var V=j.length;if(V>0){var M=a&Ar&&l===0?i:null;if(r){for(y=0;y<V;y+=1)(A=j[y].a)==null||A.measure();for(y=0;y<V;y+=1)(P=j[y].a)==null||P.fix()}js(t,j,M)}}r&&Rt(()=>{var N;if(u!==void 0)for(g of u)(N=g.a)==null||N.apply()})}function As(t,e,i,a,n,r,l,c){var s=gi,d=(l&jr)!==0,p=(l&ls)===0,u=d?p?zn(i,!1,!1):Et(i):i,v=l&Ir?Et(n):n,h={i:v,v:u,k:a,a:null,e:null,o:!1,prev:e,next:null};gi=h;try{if(t===null){var m=document.createDocumentFragment();m.append(t=Tt())}return h.e=Qe(()=>r(t,u,v,c)),e!==null&&(e.next=h),h}finally{gi=s}}function En(t,e,i){for(var a=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==null&&r!==a;){var l=la(r);n.before(r),r=l}}function St(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 Gr(t,e,i,a){const n=vi()?ra:Tn;if(i.length===0&&t.length===0){a(e.map(n));return}var r=he,l=ye,c=Kr();function s(){Promise.all(i.map(d=>Ls(d))).then(d=>{c();try{a([...e.map(n),...d])}catch(p){l.f&Nt||qi(p,l)}r==null||r.deactivate(),na()}).catch(d=>{qi(d,l)})}t.length>0?Promise.all(t).then(()=>{c();try{return s()}finally{r==null||r.deactivate(),na()}}):s()}function Kr(){var t=ye,e=ge,i=xe,a=he;return function(r=!0){Ct(t),$e(e),Di(i),r&&(a==null||a.activate())}}function na(){Ct(null),$e(null),Di(null)}function ra(t){var e=Be|Je,i=ge!==null&&ge.f&Be?ge:null;return ye!==null&&(ye.f|=Ai),{ctx:xe,deps:null,effects:null,equals:Lr,f:e,fn:t,reactions:null,rv:0,v:Ne,wv:0,parent:i??ye,ac:null}}function Ls(t,e){let i=ye;i===null&&Yo();var a=i.b,n=void 0,r=Et(Ne),l=!ge,c=new Map;return Ks(()=>{var v;var s=kr();n=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===he&&d.committed&&d.deactivate(),na()})}catch(h){s.reject(h),na()}var d=he;if(l){var p=!a.is_pending();a.update_pending_count(1),d.increment(p),(v=c.get(d))==null||v.reject(Li),c.delete(d),c.set(d,s)}const u=(h,m=void 0)=>{if(d.activate(),m)m!==Li&&(r.f|=Yt,Bt(r,m));else{r.f&Yt&&(r.f^=Yt),Bt(r,h);for(const[b,g]of c){if(c.delete(b),b===d)break;g.reject(Li)}}l&&(a.update_pending_count(-1),d.decrement(p))};s.promise.then(u,h=>u(null,h||"unknown"))}),sa(()=>{for(const s of c.values())s.reject(Li)}),new Promise(s=>{function d(p){function u(){p===n?s(r):d(n)}p.then(u,u)}d(n)})}function B(t){const e=ra(t);return fl(e),e}function Tn(t){const e=ra(t);return e.equals=Dr,e}function Zr(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Fe(e[i])}}function Ms(t){for(var e=t.parent;e!==null;){if(!(e.f&Be))return e.f&Nt?null:e;e=e.parent}return null}function Pn(t){var e,i=ye;Ct(Ms(t));try{t.f&=~aa,Zr(t),e=bl(t)}finally{Ct(i)}return e}function Yr(t){var e=Pn(t);if(t.equals(e)||(he!=null&&he.is_fork||(t.v=e),t.wv=ml()),!bi)if(Ie!==null)(oa()||he!=null&&he.is_fork)&&Ie.set(t,e);else{var i=t.f&ut?We:Ot;Ge(t,i)}}let Cn=new Set;const Jt=new Map;let Jr=!1;function Et(t,e){var i={f:0,v:t,reactions:null,equals:Lr,rv:0,wv:0};return i}function G(t,e){const i=Et(t);return fl(i),i}function zn(t,e=!1,i=!0){var n;const a=Et(t);return e||(a.equals=Dr),Mi&&i&&xe!==null&&xe.l!==null&&((n=xe.l).s??(n.s=[])).push(a),a}function q(t,e,i=!1){ge!==null&&(!Pt||ge.f&Tr)&&vi()&&ge.f&(Be|wt|wn|Tr)&&!(Ze!=null&&Ze.includes(t))&&as();let a=i?Me(e):e;return Bt(t,a)}function Bt(t,e){if(!t.equals(e)){var i=t.v;bi?Jt.set(t,e):Jt.set(t,i),t.v=e;var a=kt.ensure();a.capture(t,i),t.f&Be&&(t.f&Je&&Pn(t),Ge(t,t.f&ut?We:Ot)),t.wv=ml(),Xr(t,Je),vi()&&ye!==null&&ye.f&We&&!(ye.f&(qt|ui))&&(lt===null?Js([t]):lt.push(t)),!a.is_fork&&Cn.size>0&&!Jr&&Ds()}return e}function Ds(){Jr=!1;var t=$t;Da(!0);const e=Array.from(Cn);try{for(const i of e)i.f&We&&Ge(i,Ot),da(i)&&pa(i)}finally{Da(t)}Cn.clear()}function qs(t,e=1){var i=o(t),a=e===1?i++:i--;return q(t,i),a}function Xt(t){q(t,t.v+1)}function Xr(t,e){var i=t.reactions;if(i!==null)for(var a=vi(),n=i.length,r=0;r<n;r++){var l=i[r],c=l.f;if(!(!a&&l===ye)){var s=(c&Je)===0;if(s&&Ge(l,e),c&Be){var d=l;Ie==null||Ie.delete(d),c&aa||(c&ut&&(l.f|=aa),Xr(d,Ot))}else s&&(c&wt&&vt!==null&&vt.add(l),hi(l))}}}function Me(t){if(typeof t!="object"||t===null||_t in t)return t;const e=gn(t);if(e!==Uo&&e!==Wo)return t;var i=new Map,a=Pe(t),n=G(0),r=Ft,l=c=>{if(Ft===r)return c();var s=ge,d=Ft;$e(null),gl(r);var p=c();return $e(s),gl(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)&&ts();var p=i.get(s);return p===void 0?p=l(()=>{var u=G(d.value);return i.set(s,u),u}):q(p,d.value,!0),!0},deleteProperty(c,s){var d=i.get(s);if(d===void 0){if(s in c){const p=l(()=>G(Ne));i.set(s,p),Xt(n)}}else q(d,Ne),Xt(n);return!0},get(c,s,d){var h;if(s===_t)return t;var p=i.get(s),u=s in c;if(p===void 0&&(!u||(h=Zt(c,s))!=null&&h.writable)&&(p=l(()=>{var m=Me(u?c[s]:Ne),b=G(m);return b}),i.set(s,p)),p!==void 0){var v=o(p);return v===Ne?void 0:v}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),v=u==null?void 0:u.v;if(u!==void 0&&v!==Ne)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return d},has(c,s){var v;if(s===_t)return!0;var d=i.get(s),p=d!==void 0&&d.v!==Ne||Reflect.has(c,s);if(d!==void 0||ye!==null&&(!p||(v=Zt(c,s))!=null&&v.writable)){d===void 0&&(d=l(()=>{var h=p?Me(c[s]):Ne,m=G(h);return m}),i.set(s,d));var u=o(d);if(u===Ne)return!1}return p},set(c,s,d,p){var x;var u=i.get(s),v=s in c;if(a&&s==="length")for(var h=d;h<u.v;h+=1){var m=i.get(h+"");m!==void 0?q(m,Ne):h in c&&(m=l(()=>G(Ne)),i.set(h+"",m))}if(u===void 0)(!v||(x=Zt(c,s))!=null&&x.writable)&&(u=l(()=>G(void 0)),q(u,Me(d)),i.set(s,u));else{v=u.v!==Ne;var b=l(()=>Me(d));q(u,b)}var g=Reflect.getOwnPropertyDescriptor(c,s);if(g!=null&&g.set&&g.set.call(p,d),!v){if(a&&typeof s=="string"){var y=i.get("length"),_=Number(s);Number.isInteger(_)&&_>=y.v&&q(y,_+1)}Xt(n)}return!0},ownKeys(c){o(n);var s=Reflect.ownKeys(c).filter(u=>{var v=i.get(u);return v===void 0||v.v!==Ne});for(var[d,p]of i)p.v!==Ne&&!(d in c)&&s.push(d);return s},setPrototypeOf(){is()}})}function Qr(t){try{if(t!==null&&typeof t=="object"&&_t in t)return t[_t]}catch{}return t}function Os(t,e){return Object.is(Qr(t),Qr(e))}var De,$r,el,tl;function Ns(){if(De===void 0){De=window,$r=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;el=Zt(e,"firstChild").get,tl=Zt(e,"nextSibling").get,_r(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),_r(i)&&(i.__t=void 0)}}function Tt(t=""){return document.createTextNode(t)}function Ni(t){return el.call(t)}function la(t){return tl.call(t)}function k(t,e){return Ni(t)}function J(t,e=!1){{var i=Ni(t);return i instanceof Comment&&i.data===""?la(i):i}}function C(t,e=1,i=!1){let a=t;for(;e--;)a=la(a);return a}function Rs(t){t.textContent=""}function il(){return!1}function Bs(t,e){if(e){const i=document.body;t.autofocus=!0,Rt(()=>{document.activeElement===i&&t.focus()})}}let al=!1;function Fs(){al||(al=!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 Vs(t,e,i,a=!0){a&&i();for(var n of e)t.addEventListener(n,i);sa(()=>{for(var r of e)t.removeEventListener(r,i)})}function mi(t){var e=ge,i=ye;$e(null),Ct(null);try{return t()}finally{$e(e),Ct(i)}}function Hs(t,e,i,a=i){t.addEventListener(e,()=>mi(i));const n=t.__on_r;n?t.__on_r=()=>{n(),a(!0)}:t.__on_r=()=>a(!0),Fs()}function nl(t){ye===null&&(ge===null&&Qo(),Xo()),bi&&Jo()}function Us(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ft(t,e,i){var a=ye;a!==null&&a.f&tt&&(t|=tt);var n={ctx:xe,deps:null,nodes_start:null,nodes_end:null,f:t|Je|ut,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{pa(n),n.f|=ja}catch(c){throw Fe(n),c}else e!==null&&hi(n);var r=n;if(i&&r.deps===null&&r.teardown===null&&r.nodes_start===null&&r.first===r.last&&!(r.f&Ai)&&(r=r.first,t&wt&&t&xt&&r!==null&&(r.f|=xt)),r!==null&&(r.parent=a,a!==null&&Us(r,a),ge!==null&&ge.f&Be&&!(t&ui))){var l=ge;(l.effects??(l.effects=[])).push(r)}return n}function oa(){return ge!==null&&!Pt}function sa(t){const e=ft(Ca,null,!1);return Ge(e,We),e.teardown=t,e}function Xe(t){nl();var e=ye.f,i=!ge&&(e&qt)!==0&&(e&ja)===0;if(i){var a=xe;(a.e??(a.e=[])).push(t)}else return rl(t)}function rl(t){return ft(yn|Cr,t,!1)}function Ws(t){return nl(),ft(Ca|Cr,t,!0)}function Gs(t){kt.ensure();const e=ft(ui|Ai,t,!0);return(i={})=>new Promise(a=>{i.outro?Ri(e,()=>{Fe(e),a(void 0)}):(Fe(e),a(void 0))})}function yi(t){return ft(yn,t,!1)}function Ks(t){return ft(wn|Ai,t,!0)}function Ma(t,e=0){return ft(Ca|e,t,!0)}function F(t,e=[],i=[],a=[]){Gr(a,e,i,n=>{ft(Ca,()=>t(...n.map(o)),!0)})}function Qt(t,e=0){var i=ft(wt|e,t,!0);return i}function ll(t,e=0){var i=ft(Er|e,t,!0);return i}function Qe(t){return ft(qt|Ai,t,!0)}function ol(t){var e=t.teardown;if(e!==null){const i=bi,a=ge;vl(!0),$e(null);try{e.call(null)}finally{vl(i),$e(a)}}}function sl(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&mi(()=>{n.abort(Li)});var a=i.next;i.f&ui?i.parent=null:Fe(i,e),i=a}}function Zs(t){for(var e=t.first;e!==null;){var i=e.next;e.f&qt||Fe(e),e=i}}function Fe(t,e=!0){var i=!1;(e||t.f&Pr)&&t.nodes_start!==null&&t.nodes_end!==null&&(Ys(t.nodes_start,t.nodes_end),i=!0),sl(t,e&&!i),qa(t,0),Ge(t,Nt);var a=t.transitions;if(a!==null)for(const r of a)r.stop();ol(t);var n=t.parent;n!==null&&n.first!==null&&cl(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Ys(t,e){for(;t!==null;){var i=t===e?null:la(t);t.remove(),t=i}}function cl(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 Ri(t,e,i=!0){var a=[];jn(t,a,!0),dl(a,()=>{i&&Fe(t),e&&e()})}function dl(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var n of t)n.out(a)}else e()}function jn(t,e,i){if(!(t.f&tt)){if(t.f^=tt,t.transitions!==null)for(const l of t.transitions)(l.is_global||i)&&e.push(l);for(var a=t.first;a!==null;){var n=a.next,r=(a.f&xt)!==0||(a.f&qt)!==0&&(t.f&wt)!==0;jn(a,e,r?i:!1),a=n}}}function In(t){pl(t,!0)}function pl(t,e){if(t.f&tt){t.f^=tt,t.f&We||(Ge(t,Je),hi(t));for(var i=t.first;i!==null;){var a=i.next,n=(i.f&xt)!==0||(i.f&qt)!==0;pl(i,n?e:!1),i=a}if(t.transitions!==null)for(const r of t.transitions)(r.is_global||e)&&r.in()}}function ul(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var n=i===a?null:la(i);e.append(i),i=n}}let $t=!1;function Da(t){$t=t}let bi=!1;function vl(t){bi=t}let ge=null,Pt=!1;function $e(t){ge=t}let ye=null;function Ct(t){ye=t}let Ze=null;function fl(t){ge!==null&&(Ze===null?Ze=[t]:Ze.push(t))}let Ye=null,it=0,lt=null;function Js(t){lt=t}let hl=1,ca=0,Ft=ca;function gl(t){Ft=t}function ml(){return++hl}function da(t){var e=t.f;if(e&Je)return!0;if(e&Be&&(t.f&=-32769),e&Ot){var i=t.deps;if(i!==null)for(var a=i.length,n=0;n<a;n++){var r=i[n];if(da(r)&&Yr(r),r.wv>t.wv)return!0}e&ut&&Ie===null&&Ge(t,We)}return!1}function yl(t,e,i=!0){var a=t.reactions;if(a!==null&&!(Ze!=null&&Ze.includes(t)))for(var n=0;n<a.length;n++){var r=a[n];r.f&Be?yl(r,e,!1):e===r&&(i?Ge(r,Je):r.f&We&&Ge(r,Ot),hi(r))}}function bl(t){var m;var e=Ye,i=it,a=lt,n=ge,r=Ze,l=xe,c=Pt,s=Ft,d=t.f;Ye=null,it=0,lt=null,ge=d&(qt|ui)?null:t,Ze=null,Di(t.ctx),Pt=!1,Ft=++ca,t.ac!==null&&(mi(()=>{t.ac.abort(Li)}),t.ac=null);try{t.f|=bn;var p=t.fn,u=p(),v=t.deps;if(Ye!==null){var h;if(qa(t,it),v!==null&&it>0)for(v.length=it+Ye.length,h=0;h<Ye.length;h++)v[it+h]=Ye[h];else t.deps=v=Ye;if($t&&oa()&&t.f&ut)for(h=it;h<v.length;h++)((m=v[h]).reactions??(m.reactions=[])).push(t)}else v!==null&&it<v.length&&(qa(t,it),v.length=it);if(vi()&<!==null&&!Pt&&v!==null&&!(t.f&(Be|Ot|Je)))for(h=0;h<lt.length;h++)yl(lt[h],t);return n!==null&&n!==t&&(ca++,lt!==null&&(a===null?a=lt:a.push(...lt))),t.f&Yt&&(t.f^=Yt),u}catch(b){return Nr(b)}finally{t.f^=bn,Ye=e,it=i,lt=a,ge=n,Ze=r,Di(l),Pt=c,Ft=s}}function Xs(t,e){let i=e.reactions;if(i!==null){var a=Ta.call(i,t);if(a!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[a]=i[n],i.pop())}}i===null&&e.f&Be&&(Ye===null||!Ye.includes(e))&&(Ge(e,Ot),e.f&ut&&(e.f^=ut,e.f&=-32769),Zr(e),qa(e,0))}function qa(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)Xs(t,i[a])}function pa(t){var e=t.f;if(!(e&Nt)){Ge(t,We);var i=ye,a=$t;ye=t,$t=!0;try{e&(wt|Er)?Zs(t):sl(t),ol(t);var n=bl(t);t.teardown=typeof n=="function"?n:null,t.wv=hl;var r;ke&&_s&&t.f&Je&&t.deps}finally{$t=a,ye=i}}}async function ua(){await Promise.resolve(),Rr()}function o(t){var e=t.f,i=(e&Be)!==0;if(ge!==null&&!Pt){var a=ye!==null&&(ye.f&Nt)!==0;if(!a&&!(Ze!=null&&Ze.includes(t))){var n=ge.deps;if(ge.f&bn)t.rv<ca&&(t.rv=ca,Ye===null&&n!==null&&n[it]===t?it++:Ye===null?Ye=[t]:Ye.includes(t)||Ye.push(t));else{(ge.deps??(ge.deps=[])).push(t);var r=t.reactions;r===null?t.reactions=[ge]:r.includes(ge)||r.push(ge)}}}if(bi){if(Jt.has(t))return Jt.get(t);if(i){var l=t,c=l.v;return(!(l.f&We)&&l.reactions!==null||xl(l))&&(c=Pn(l)),Jt.set(l,c),c}}else i&&(!(Ie!=null&&Ie.has(t))||he!=null&&he.is_fork&&!oa())&&(l=t,da(l)&&Yr(l),$t&&oa()&&!(l.f&ut)&&wl(l));if(Ie!=null&&Ie.has(t))return Ie.get(t);if(t.f&Yt)throw t.v;return t.v}function wl(t){if(t.deps!==null){t.f^=ut;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Be&&!(e.f&ut)&&wl(e)}}function xl(t){if(t.v===Ne)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Jt.has(e)||e.f&Be&&xl(e))return!0;return!1}function zt(t){var e=Pt;try{return Pt=!0,t()}finally{Pt=e}}const Qs=-7169;function Ge(t,e){t.f=t.f&Qs|e}function _l(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(_t in t)An(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&_t in i&&An(i)}}}function An(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{An(t[a],e)}catch{}const i=gn(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=xr(i);for(let n in a){const r=a[n].get;if(r)try{r.call(t)}catch{}}}}}function $s(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ec=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function tc(t){return ec.includes(t)}const ic={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 ac(t){return t=t.toLowerCase(),ic[t]??t}const nc=["touchstart","touchmove"];function rc(t){return nc.includes(t)}const kl=new Set,Ln=new Set;function Mn(t,e,i,a={}){function n(r){if(a.capture||va.call(e,r),!r.cancelBubble)return mi(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Rt(()=>{e.addEventListener(t,n,a)}):e.addEventListener(t,n,a),n}function lc(t,e,i,a={}){var n=Mn(e,t,i,a);return()=>{t.removeEventListener(e,n,a)}}function Se(t,e,i,a,n){var r={capture:a,passive:n},l=Mn(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&sa(()=>{e.removeEventListener(t,l,r)})}function de(t){for(var e=0;e<t.length;e++)kl.add(t[e]);for(var i of Ln)i(t)}let Sl=null;function va(t){var g;var e=this,i=e.ownerDocument,a=t.type,n=((g=t.composedPath)==null?void 0:g.call(t))||[],r=n[0]||t.target;Sl=t;var l=0,c=Sl===t&&t.__root;if(c){var s=n.indexOf(c);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var d=n.indexOf(e);if(d===-1)return;s<=d&&(l=s)}if(r=n[l]||t.target,r!==e){Ho(t,"currentTarget",{configurable:!0,get(){return r||i}});var p=ge,u=ye;$e(null),Ct(null);try{for(var v,h=[];r!==null;){var m=r.assignedSlot||r.parentNode||r.host||null;try{var b=r["__"+a];b!=null&&(!r.disabled||t.target===r)&&b.call(r,t)}catch(y){v?h.push(y):v=y}if(t.cancelBubble||m===e||m===null)break;r=m}if(v){for(let y of h)queueMicrotask(()=>{throw y});throw v}}finally{t.__root=e,delete t.currentTarget,$e(p),Ct(u)}}}function El(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Bi(t,e){var i=ye;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function T(t,e){var i=(e&hs)!==0,a=(e&gs)!==0,n,r=!t.startsWith("<!>");return()=>{n===void 0&&(n=El(r?t:"<!>"+t),i||(n=Ni(n)));var l=a||$r?document.importNode(n,!0):n.cloneNode(!0);if(i){var c=Ni(l),s=l.lastChild;Bi(c,s)}else Bi(l,l);return l}}function oc(t,e,i="svg"){var a=!t.startsWith("<!>"),n=`<${i}>${a?t:"<!>"+t}</${i}>`,r;return()=>{if(!r){var l=El(n),c=Ni(l);r=Ni(c)}var s=r.cloneNode(!0);return Bi(s,s),s}}function ot(t,e){return oc(t,e,"svg")}function ei(t=""){{var e=Tt(t+"");return Bi(e,e),e}}function me(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Tt();return t.append(e,i),Bi(e,i),t}function w(t,e){t!==null&&t.before(e)}let Oa=!0;function Na(t){Oa=t}function K(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 Vt(t,e){return sc(t,e)}const Fi=new Map;function sc(t,{target:e,anchor:i,props:a={},events:n,context:r,intro:l=!0}){Ns();var c=new Set,s=u=>{for(var v=0;v<u.length;v++){var h=u[v];if(!c.has(h)){c.add(h);var m=rc(h);e.addEventListener(h,va,{passive:m});var b=Fi.get(h);b===void 0?(document.addEventListener(h,va,{passive:m}),Fi.set(h,1)):Fi.set(h,b+1)}}};s(hn(kl)),Ln.add(s);var d=void 0,p=Gs(()=>{var u=i??e.appendChild(Tt());return Cs(u,{pending:()=>{}},v=>{if(r){ae({});var h=xe;h.c=r}n&&(a.$$events=n),Oa=l,d=t(v,a)||{},Oa=!0,r&&ne()}),()=>{var m;for(var v of c){e.removeEventListener(v,va);var h=Fi.get(v);--h===0?(document.removeEventListener(v,va),Fi.delete(v)):Fi.set(v,h)}Ln.delete(s),u!==i&&((m=u.parentNode)==null||m.removeChild(u))}});return Dn.set(d,p),d}let Dn=new WeakMap;function Vi(t,e){const i=Dn.get(t);return i?(Dn.delete(t),i(e)):Promise.resolve()}class Hi{constructor(e,i=!0){bt(this,"anchor");re(this,mt,new Map);re(this,Mt,new Map);re(this,at,new Map);re(this,zi,new Set);re(this,xa,!0);re(this,_a,()=>{var e=he;if(E(this,mt).has(e)){var i=E(this,mt).get(e),a=E(this,Mt).get(i);if(a)In(a),E(this,zi).delete(i);else{var n=E(this,at).get(i);n&&(E(this,Mt).set(i,n.effect),E(this,at).delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),a=n.effect)}for(const[r,l]of E(this,mt)){if(E(this,mt).delete(r),r===e)break;const c=E(this,at).get(l);c&&(Fe(c.effect),E(this,at).delete(l))}for(const[r,l]of E(this,Mt)){if(r===i||E(this,zi).has(r))continue;const c=()=>{if(Array.from(E(this,mt).values()).includes(r)){var d=document.createDocumentFragment();ul(l,d),d.append(Tt()),E(this,at).set(r,{effect:l,fragment:d})}else Fe(l);E(this,zi).delete(r),E(this,Mt).delete(r)};E(this,xa)||!a?(E(this,zi).add(r),Ri(l,c,!1)):c()}}});re(this,sn,e=>{E(this,mt).delete(e);const i=Array.from(E(this,mt).values());for(const[a,n]of E(this,at))i.includes(a)||(Fe(n.effect),E(this,at).delete(a))});this.anchor=e,ie(this,xa,i)}ensure(e,i){var a=he,n=il();if(i&&!E(this,Mt).has(e)&&!E(this,at).has(e))if(n){var r=document.createDocumentFragment(),l=Tt();r.append(l),E(this,at).set(e,{effect:Qe(()=>i(l)),fragment:r})}else E(this,Mt).set(e,Qe(()=>i(this.anchor)));if(E(this,mt).set(a,e),n){for(const[c,s]of E(this,Mt))c===e?a.skipped_effects.delete(s):a.skipped_effects.add(s);for(const[c,s]of E(this,at))c===e?a.skipped_effects.delete(s.effect):a.skipped_effects.add(s.effect);a.oncommit(E(this,_a)),a.ondiscard(E(this,sn))}else E(this,_a).call(this)}}mt=new WeakMap,Mt=new WeakMap,at=new WeakMap,zi=new WeakMap,xa=new WeakMap,_a=new WeakMap,sn=new WeakMap;const cc=0,qn=1;function Ra(t,e,i,a,n){var r=vi(),l=Ne,c=r?Et(l):zn(l,!1,!1),s=r?Et(l):zn(l,!1,!1),d=new Hi(t);Qt(()=>{var p=e(),u=!1;if(Go(p)){var v=Kr(),h=!1;const m=b=>{if(!u){h=!0,v(!1),kt.ensure();try{b()}finally{na(),Oi||Rr()}}};p.then(b=>{m(()=>{Bt(c,b),d.ensure(qn,a&&(g=>a(g,c)))})},b=>{m(()=>{if(Bt(s,b),d.ensure(qn,n&&(g=>n(g,s))),!n)throw s.v})}),Rt(()=>{h||m(()=>{d.ensure(cc,i)})})}else Bt(c,p),d.ensure(qn,a&&(m=>a(m,c)));return()=>{u=!0}})}function H(t,e,i=!1){var a=new Hi(t),n=i?xt:0;function r(l,c){a.ensure(l,c)}Qt(()=>{var l=!1;e((c,s=!0)=>{l=!0,r(s,c)}),l||r(!1,null)},n)}function Ui(t,e,i){var a=new Hi(t),n=!vi();Qt(()=>{var r=e();n&&r!==null&&typeof r=="object"&&(r={}),a.ensure(r,i)})}function Ve(t,e,...i){var a=new Hi(t);Qt(()=>{const n=e()??null;a.ensure(n,n&&(r=>n(r,...i)))},xt)}function Tl(t,e,i){var a=new Hi(t);Qt(()=>{var n=e()??null;a.ensure(n,n&&(r=>i(r,n)))},xt)}function Pl(t,e,i,a,n,r){var l=null,c=t,s=gi,d=new Hi(c,!1);Qt(()=>{const p=e()||null;var u=p==="svg"?ys:null;if(p===null){d.ensure(null,null),Na(!0);return}return d.ensure(p,v=>{var h=gi;if(Wr(s),p){if(l=u?document.createElementNS(u,p):document.createElement(p),Bi(l,l),a){var m=l.appendChild(Tt());a(l,m)}ye.nodes_end=l,v.before(l)}Wr(h)}),Na(!0),()=>{p&&Na(!1)}},xt),sa(()=>{Na(!0)})}function jt(t,e,i){yi(()=>{var a=zt(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var n=!1,r={};Ma(()=>{var l=i();_l(l),n&&Mr(r,l)&&(r=l,a.update(l))}),n=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function Ba(t,e){var i=void 0,a;ll(()=>{i!==(i=e())&&(a&&(Fe(a),a=null),i&&(a=Qe(()=>{yi(()=>i(t))})))})}function Cl(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Cl(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function dc(){for(var t,e,i=0,a="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Cl(t))&&(a&&(a+=" "),a+=e);return a}function pc(t){return typeof t=="object"?dc(t):t??""}const zl=[...`
|
|
3
|
-
\r\f \v\uFEFF`];function uc(t,e,i){var a=t==null?"":""+t;if(e&&(a=a?a+" "+e:e),i){for(var n in i)if(i[n])a=a?a+" "+n:n;else if(a.length)for(var r=n.length,l=0;(l=a.indexOf(n,l))>=0;){var c=l+r;(l===0||zl.includes(a[l-1]))&&(c===a.length||zl.includes(a[c]))?a=(l===0?"":a.substring(0,l))+a.substring(c+1):l=c}}return a===""?null:a}function jl(t,e=!1){var i=e?" !important;":";",a="";for(var n in t){var r=t[n];r!=null&&r!==""&&(a+=" "+n+": "+r+i)}return a}function On(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function vc(t,e){if(e){var i="",a,n;if(Array.isArray(e)?(a=e[0],n=e[1]):a=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,c=!1,s=[];a&&s.push(...Object.keys(a).map(On)),n&&s.push(...Object.keys(n).map(On));var d=0,p=-1;const b=t.length;for(var u=0;u<b;u++){var v=t[u];if(c?v==="/"&&t[u-1]==="*"&&(c=!1):r?r===v&&(r=!1):v==="/"&&t[u+1]==="*"?c=!0:v==='"'||v==="'"?r=v:v==="("?l++:v===")"&&l--,!c&&r===!1&&l===0){if(v===":"&&p===-1)p=u;else if(v===";"||u===b-1){if(p!==-1){var h=On(t.substring(d,p).trim());if(!s.includes(h)){v!==";"&&u++;var m=t.substring(d,u).trim();i+=" "+m+";"}}d=u+1,p=-1}}}}return a&&(i+=jl(a)),n&&(i+=jl(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function be(t,e,i,a,n,r){var l=t.__className;if(l!==i||l===void 0){var c=uc(i,a,r);c==null?t.removeAttribute("class"):e?t.className=c:t.setAttribute("class",c),t.__className=i}else if(r&&n!==r)for(var s in r){var d=!!r[s];(n==null||d!==!!n[s])&&t.classList.toggle(s,d)}return r}function Nn(t,e={},i,a){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,a))}}function He(t,e,i,a){var n=t.__style;if(n!==e){var r=vc(e,a);r==null?t.removeAttribute("style"):t.style.cssText=r,t.__style=e}else a&&(Array.isArray(a)?(Nn(t,i==null?void 0:i[0],a[0]),Nn(t,i==null?void 0:i[1],a[1],"important")):Nn(t,i,a));return a}function Rn(t,e,i=!1){if(t.multiple){if(e==null)return;if(!Pe(e))return ws();for(var a of t.options)a.selected=e.includes(Il(a));return}for(a of t.options){var n=Il(a);if(Os(n,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function fc(t){var e=new MutationObserver(()=>{Rn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),sa(()=>{e.disconnect()})}function Il(t){return"__value"in t?t.__value:t.value}const Wi=Symbol("class"),Gi=Symbol("style"),Al=Symbol("is custom element"),Ll=Symbol("is html");function hc(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function le(t,e,i,a){var n=Dl(t);n[e]!==(n[e]=i)&&(e==="loading"&&(t[Zo]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Ol(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function gc(t,e,i,a,n=!1,r=!1){var l=Dl(t),c=l[Al],s=!l[Ll],d=e||{},p=t.tagName==="OPTION";for(var u in e)u in i||(i[u]=null);i.class?i.class=pc(i.class):(a||i[Wi])&&(i.class=null),i[Gi]&&(i.style??(i.style=null));var v=Ol(t);for(const x in i){let S=i[x];if(p&&x==="value"&&S==null){t.value=t.__value="",d[x]=S;continue}if(x==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";be(t,h,S,a,e==null?void 0:e[Wi],i[Wi]),d[x]=S,d[Wi]=i[Wi];continue}if(x==="style"){He(t,S,e==null?void 0:e[Gi],i[Gi]),d[x]=S,d[Gi]=i[Gi];continue}var m=d[x];if(!(S===m&&!(S===void 0&&t.hasAttribute(x)))){d[x]=S;var b=x[0]+x[1];if(b!=="$$")if(b==="on"){const L={},I="$$"+x;let j=x.slice(2);var g=tc(j);if($s(j)&&(j=j.slice(0,-7),L.capture=!0),!g&&m){if(S!=null)continue;t.removeEventListener(j,d[I],L),d[I]=null}if(S!=null)if(g)t[`__${j}`]=S,de([j]);else{let V=function(M){d[x].call(this,M)};d[I]=Mn(j,t,V,L)}else g&&(t[`__${j}`]=void 0)}else if(x==="style")le(t,x,S);else if(x==="autofocus")Bs(t,!!S);else if(!c&&(x==="__value"||x==="value"&&S!=null))t.value=t.__value=S;else if(x==="selected"&&p)hc(t,S);else{var y=x;s||(y=ac(y));var _=y==="defaultValue"||y==="defaultChecked";if(S==null&&!c&&!_)if(l[x]=null,y==="value"||y==="checked"){let L=t;const I=e===void 0;if(y==="value"){let j=L.defaultValue;L.removeAttribute(y),L.defaultValue=j,L.value=L.__value=I?j:null}else{let j=L.defaultChecked;L.removeAttribute(y),L.defaultChecked=j,L.checked=I?j:!1}}else t.removeAttribute(x);else _||v.includes(y)&&(c||typeof S!="string")?(t[y]=S,y in l&&(l[y]=Ne)):typeof S!="function"&&le(t,y,S)}}}return d}function Ml(t,e,i=[],a=[],n=[],r,l=!1,c=!1){Gr(n,i,a,s=>{var d=void 0,p={},u=t.nodeName==="SELECT",v=!1;if(ll(()=>{var m=e(...s.map(o)),b=gc(t,d,m,r,l,c);v&&u&&"value"in m&&Rn(t,m.value);for(let y of Object.getOwnPropertySymbols(p))m[y]||Fe(p[y]);for(let y of Object.getOwnPropertySymbols(m)){var g=m[y];y.description===bs&&(!d||g!==d[y])&&(p[y]&&Fe(p[y]),p[y]=Qe(()=>Ba(t,()=>g))),b[y]=g}d=b}),u){var h=t;yi(()=>{Rn(h,d.value,!0),fc(h)})}v=!0})}function Dl(t){return t.__attributes??(t.__attributes={[Al]:t.nodeName.includes("-"),[Ll]:t.namespaceURI===ms})}var ql=new Map;function Ol(t){var e=t.getAttribute("is")||t.nodeName,i=ql.get(e);if(i)return i;ql.set(e,i=[]);for(var a,n=t,r=Element.prototype;r!==n;){a=xr(n);for(var l in a)a[l].set&&i.push(l);n=gn(n)}return i}const mc=()=>performance.now(),Ht={tick:t=>requestAnimationFrame(t),now:()=>mc(),tasks:new Set};function Nl(){const t=Ht.now();Ht.tasks.forEach(e=>{e.c(t)||(Ht.tasks.delete(e),e.f())}),Ht.tasks.size!==0&&Ht.tick(Nl)}function yc(t){let e;return Ht.tasks.size===0&&Ht.tick(Nl),{promise:new Promise(i=>{Ht.tasks.add(e={c:t,f:i})}),abort(){Ht.tasks.delete(e)}}}function Fa(t,e){mi(()=>{t.dispatchEvent(new CustomEvent(e))})}function bc(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Rl(t){const e={},i=t.split(";");for(const a of i){const[n,r]=a.split(":");if(!n||r===void 0)break;const l=bc(n.trim());e[l]=r.trim()}return e}const wc=t=>t;function xc(t,e,i){var a=gi,n,r,l,c=null;a.a??(a.a={element:t,measure(){n=this.element.getBoundingClientRect()},apply(){if(l==null||l.abort(),r=this.element.getBoundingClientRect(),n.left!==r.left||n.right!==r.right||n.top!==r.top||n.bottom!==r.bottom){const s=e()(this.element,{from:n,to:r},i==null?void 0:i());l=Va(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 v=t.getBoundingClientRect();if(n.left!==v.left||n.top!==v.top){var h=`translate(${n.left-v.left}px, ${n.top-v.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 qe(t,e,i,a){var n=(t&us)!==0,r=(t&vs)!==0,l=n&&r,c=(t&fs)!==0,s=l?"both":n?"in":"out",d,p=e.inert,u=e.style.overflow,v,h;function m(){return mi(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:s})))}var b={is_global:c,in(){var x;if(e.inert=p,!n){h==null||h.abort(),(x=h==null?void 0:h.reset)==null||x.call(h);return}r||v==null||v.abort(),Fa(e,"introstart"),v=Va(e,m(),h,1,()=>{Fa(e,"introend"),v==null||v.abort(),v=d=void 0,e.style.overflow=u})},out(x){if(!r){x==null||x(),d=void 0;return}e.inert=!0,Fa(e,"outrostart"),h=Va(e,m(),v,0,()=>{Fa(e,"outroend"),x==null||x()})},stop:()=>{v==null||v.abort(),h==null||h.abort()}},g=ye;if((g.transitions??(g.transitions=[])).push(b),n&&Oa){var y=c;if(!y){for(var _=g.parent;_&&_.f&xt;)for(;(_=_.parent)&&!(_.f&wt););y=!_||(_.f&ja)!==0}y&&yi(()=>{zt(()=>b.in())})}}function Va(t,e,i,a,n){var r=a===1;if(Ii(e)){var l,c=!1;return Rt(()=>{if(!c){var g=e({direction:r?"in":"out"});l=Va(t,g,i,a,n)}}),{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 n(),{abort:Dt,deactivate:Dt,reset:Dt,t:()=>a};const{delay:s=0,css:d,tick:p,easing:u=wc}=e;var v=[];if(r&&i===void 0&&(p&&p(0,1),d)){var h=Rl(d(0,1));v.push(h,h)}var m=()=>1-a,b=t.animate(v,{duration:s,fill:"forwards"});return b.onfinish=()=>{b.cancel();var g=(i==null?void 0:i.t())??1-a;i==null||i.abort();var y=a-g,_=e.duration*Math.abs(y),x=[];if(_>0){var S=!1;if(d)for(var L=Math.ceil(_/16.666666666666668),I=0;I<=L;I+=1){var j=g+y*u(I/L),V=Rl(d(j,1-j));x.push(V),S||(S=V.overflow==="hidden")}S&&(t.style.overflow="hidden"),m=()=>{var M=b.currentTime;return g+y*u(M/_)},p&&yc(()=>{if(b.playState!=="running")return!1;var M=m();return p(M,1-M),!0})}b=t.animate(x,{duration:_,fill:"forwards"}),b.onfinish=()=>{m=()=>a,p==null||p(a,1-a),n()}},{abort:()=>{b&&(b.cancel(),b.effect=null,b.onfinish=Dt)},deactivate:()=>{n=Dt},reset:()=>{a===0&&(p==null||p(1,0))},t:()=>m()}}function Ha(t,e,i=e){var a=new WeakSet;Hs(t,"input",async n=>{var r=n?t.defaultValue:t.value;if(r=Bn(t)?Fn(r):r,i(r),he!==null&&a.add(he),await ua(),r!==(r=e())){var l=t.selectionStart,c=t.selectionEnd,s=t.value.length;if(t.value=r??"",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))}}}),zt(e)==null&&t.value&&(i(Bn(t)?Fn(t.value):t.value),he!==null&&a.add(he)),Ma(()=>{var n=e();if(t===document.activeElement){var r=Aa??he;if(a.has(r))return}Bn(t)&&n===Fn(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function Bn(t){var e=t.type;return e==="number"||e==="range"}function Fn(t){return t===""?null:+t}const dn=class dn{constructor(e){re(this,cn);re(this,di,new WeakMap);re(this,$i);re(this,ka);ie(this,ka,e)}observe(e,i){var a=E(this,di).get(e)||new Set;return a.add(i),E(this,di).set(e,a),Ee(this,cn,Bo).call(this).observe(e,E(this,ka)),()=>{var n=E(this,di).get(e);n.delete(i),n.size===0&&(E(this,di).delete(e),E(this,$i).unobserve(e))}}};di=new WeakMap,$i=new WeakMap,ka=new WeakMap,cn=new WeakSet,Bo=function(){return E(this,$i)??ie(this,$i,new ResizeObserver(e=>{for(var i of e){dn.entries.set(i.target,i);for(var a of E(this,di).get(i.target)||[])a(i)}}))},bt(dn,"entries",new WeakMap);let Vn=dn;var _c=new Vn({box:"border-box"});function ti(t,e,i){var a=_c.observe(t,()=>i(t[e]));yi(()=>(zt(()=>i(t[e])),a))}function Bl(t,e){return t===e||(t==null?void 0:t[_t])===e}function st(t={},e,i,a){return yi(()=>{var n,r;return Ma(()=>{n=r,r=[],zt(()=>{t!==i(...r)&&(e(t,...r),n&&Bl(i(...n),t)&&e(null,...n))})}),()=>{Rt(()=>{r&&Bl(i(...r),t)&&e(null,...r)})}}),t}function Hn(t,e){Vs(window,["resize"],()=>mi(()=>e(window[t])))}function Un(t=!1){const e=xe,i=e.l.u;if(!i)return;let a=()=>_l(e.s);if(t){let n=0,r={};const l=ra(()=>{let c=!1;const s=e.s;for(const d in s)s[d]!==r[d]&&(r[d]=s[d],c=!0);return c&&n++,n});a=()=>o(l)}i.b.length&&Ws(()=>{Fl(e,a),mn(i.b)}),Xe(()=>{const n=zt(()=>i.m.map(Ko));return()=>{for(const r of n)typeof r=="function"&&r()}}),i.a.length&&Xe(()=>{Fl(e,a),mn(i.a)})}function Fl(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let Ua=!1;function kc(t){var e=Ua;try{return Ua=!1,[t(),Ua]}finally{Ua=e}}const Sc={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 Ec(t,e,i){return new Proxy({props:t,exclude:e},Sc)}const Tc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Ii(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 n=t.props[a];Ii(n)&&(n=n());const r=Zt(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Ii(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const n=Zt(a,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===_t||e===zr)return!1;for(let i of t.props)if(Ii(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Ii(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 Pc(...t){return new Proxy({props:t},Tc)}function U(t,e,i,a){var x;var n=!Mi||(i&ss)!==0,r=(i&ds)!==0,l=(i&ps)!==0,c=a,s=!0,d=()=>(s&&(s=!1,c=l?zt(a):a),c),p;if(r){var u=_t in t||zr in t;p=((x=Zt(t,e))==null?void 0:x.set)??(u&&e in t?S=>t[e]=S:void 0)}var v,h=!1;r?[v,h]=kc(()=>t[e]):v=t[e],v===void 0&&a!==void 0&&(v=d(),p&&(n&&es(),p(v)));var m;if(n?m=()=>{var S=t[e];return S===void 0?d():(s=!0,S)}:m=()=>{var S=t[e];return S!==void 0&&(c=void 0),S===void 0?c:S},n&&!(i&cs))return m;if(p){var b=t.$$legacy;return function(S,L){return arguments.length>0?((!n||!L||b||h)&&p(L?m():S),S):m()}}var g=!1,y=(i&os?ra:Tn)(()=>(g=!1,m()));r&&o(y);var _=ye;return function(S,L){if(arguments.length>0){const I=L?o(y):n&&r?Me(S):S;return q(y,I),g=!0,c!==void 0&&(c=I),S}return bi&&g||_.f&Nt?y.v:o(y)}}function ht(t){xe===null&&xn(),Mi&&xe.l!==null?Cc(xe).m.push(t):Xe(()=>{const e=zt(t);if(typeof e=="function")return e})}function Wa(t){xe===null&&xn(),ht(()=>()=>zt(t))}function Cc(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const zc="5";typeof window<"u"&&((Mo=window.__svelte??(window.__svelte={})).v??(Mo.v=new Set)).add(zc);function ii(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const jc="https://www.playpilot.com",Ic="https://partner-api.playpilot.tech/1.0",Ac="https://img-external.playpilot.tech",Lc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",wi=600,Wn={};async function Ut(t,{headers:e={},method:i="GET",body:a=null}={}){const n=!Ga()&&i==="GET";if(n&&t in Wn)return Wn[t];const r=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(Ic+t,{method:i,headers:new Headers({...r,...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 n&&(Wn[t]=s),s}const Vl="EncryptedToken",Hl="articleReplacementEditToken",Mc="playpilot-editorial-mode";async function Ul({href:t=window.location.href,throwError:e=!1}={}){try{const i=ii();if(!i)throw new Error("No token was provided");const a=Wl(t);if(!a)throw new Error("Could not be authenticated");return await Ut(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),Dc(a),!0}catch(i){if(console.error(i),e)throw i}finally{qc()}return!1}function Wl(t=""){var a,n;const e=(a=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:a.editorial_token;if(e)return e;if(t){const r=new URL(t).searchParams.get(Hl);if(r)return decodeURI(r)}return((n=("; "+document.cookie).split(`; ${Vl}=`).pop())==null?void 0:n.split(";")[0])||""}function Dc(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=Vl+"="+t+";"+a+";path=/"}function Ga(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Mc)==="true"||!!t}function qc(){const t=new URL(window.location.href);t.searchParams.delete(Hl),window.history.replaceState({},"",t)}function Oc(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 Gl(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const f=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Ka(){var a,n;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(f);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(n=document.querySelector("html"))==null?void 0:n.getAttribute("lang");if(i){if(e.includes(i))return i;const r=e.find(l=>l.toLowerCase().startsWith(i+"-"));if(r)return r}return f.English}function Kl(t,e=""){const i=[],a=[t];for(;a.length>0;){const n=a.pop();if(i.includes(n)||e&&n.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(n.tagName)||n.offsetWidth<=1)continue;const r=Array.from(n.childNodes).some(s=>{var d;return s.nodeType===Node.TEXT_NODE&&((d=s.nodeValue)==null?void 0:d.trim())!==""});if(r&&n.tagName==="LI"){const s=n.closest("ul, ol");s&&!i.includes(s)&&i.push(s);continue}const l=n.tagName==="P"&&!!n.textContent;if(r||l){i.push(n);continue}const c=Array.from(n.children);for(let s=c.length-1;s>=0;s--)a.push(c[s])}return i}function Gn(){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 Kn(t){return t.map(e=>e.innerText).join(`
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(_e);const ke=!1;var Pe=Array.isArray,Ta=Array.prototype.indexOf,hn=Array.from,Ho=Object.defineProperty,Zt=Object.getOwnPropertyDescriptor,xr=Object.getOwnPropertyDescriptors,Uo=Object.prototype,Wo=Array.prototype,gn=Object.getPrototypeOf,_r=Object.isExtensible;function Ii(t){return typeof t=="function"}const Dt=()=>{};function Go(t){return typeof(t==null?void 0:t.then)=="function"}function Ko(t){return t()}function mn(t){for(var e=0;e<t.length;e++)t[e]()}function kr(){var t,e,i=new Promise((a,n)=>{t=a,e=n});return{promise:i,resolve:t,reject:e}}function Sr(t,e,i=!1){return t===void 0?i?e():e:t}function Pa(t,e){if(Array.isArray(t))return t;if(!(Symbol.iterator in t))return Array.from(t);const i=[];for(const a of t)if(i.push(a),i.length===e)break;return i}const Be=2,yn=4,Ca=8,Er=1<<24,wt=16,qt=32,ui=64,za=128,ut=512,We=1024,Je=2048,Ot=4096,tt=8192,Nt=16384,ja=32768,xt=65536,Tr=1<<17,Pr=1<<18,Ai=1<<19,Cr=1<<20,aa=32768,bn=1<<21,wn=1<<22,Yt=1<<23,_t=Symbol("$state"),zr=Symbol("legacy props"),Zo=Symbol(""),Li=new class extends Error{constructor(){super(...arguments);bt(this,"name","StaleReactionError");bt(this,"message","The reaction that called `getAbortSignal()` was re-run or destroyed")}};function xn(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Yo(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Jo(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Xo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Qo(t){throw new Error("https://svelte.dev/e/effect_orphan")}function $o(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function es(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function ts(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function is(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function as(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function ns(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const jr=1,Ir=2,Ar=4,rs=8,ls=16,os=1,ss=2,cs=4,ds=8,ps=16,us=1,vs=2,fs=4,hs=1,gs=2,Ne=Symbol(),ms="http://www.w3.org/1999/xhtml",ys="http://www.w3.org/2000/svg",bs="@attach";function ws(){console.warn("https://svelte.dev/e/select_multiple_invalid_value")}function xs(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Lr(t){return t===this.v}function Mr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Dr(t){return!Mr(t,this.v)}let Mi=!1,_s=!1;function ks(){Mi=!0}let xe=null;function Di(t){xe=t}function _n(t){return qr().get(t)}function kn(t,e){return qr().set(t,e),e}function ae(t,e=!1,i){xe={p:xe,i:!1,c:null,e:null,s:t,x:null,l:Mi&&!e?{s:null,u:null,$:[]}:null}}function ne(t){var e=xe,i=e.e;if(i!==null){e.e=null;for(var a of i)rl(a)}return t!==void 0&&(e.x=t),e.i=!0,xe=e.p,t??{}}function vi(){return!Mi||xe!==null&&xe.l===null}function qr(t){return xe===null&&xn(),xe.c??(xe.c=new Map(Ss(xe)||void 0))}function Ss(t){let e=t.p;for(;e!==null;){const i=e.c;if(i!==null)return i;e=e.p}return null}let fi=[];function Or(){var t=fi;fi=[],mn(t)}function Rt(t){if(fi.length===0&&!Oi){var e=fi;queueMicrotask(()=>{e===fi&&Or()})}fi.push(t)}function Es(){for(;fi.length>0;)Or()}function Nr(t){var e=ye;if(e===null)return ge.f|=Yt,t;if(e.f&ja)qi(t,e);else{if(!(e.f&za))throw t;e.b.error(t)}}function qi(t,e){for(;e!==null;){if(e.f&za)try{e.b.error(t);return}catch(i){t=i}e=e.parent}throw t}const Ia=new Set;let he=null,Aa=null,Ie=null,rt=[],La=null,Sn=!1,Oi=!1;const ln=class ln{constructor(){re(this,Oe);bt(this,"committed",!1);bt(this,"current",new Map);bt(this,"previous",new Map);re(this,Yi,new Set);re(this,Ji,new Set);re(this,Si,0);re(this,Ei,0);re(this,wa,null);re(this,Xi,[]);re(this,Qi,[]);bt(this,"skipped_effects",new Set);bt(this,"is_fork",!1)}is_deferred(){return this.is_fork||E(this,Ei)>0}process(e){var a;rt=[],Aa=null,this.apply();var i={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const n of e)Ee(this,Oe,mr).call(this,n,i);this.is_fork||Ee(this,Oe,No).call(this),this.is_deferred()?(Ee(this,Oe,ji).call(this,i.effects),Ee(this,Oe,ji).call(this,i.render_effects),Ee(this,Oe,ji).call(this,i.block_effects)):(Aa=this,he=null,Fr(i.render_effects),Fr(i.effects),Aa=null,(a=E(this,wa))==null||a.resolve()),Ie=null}capture(e,i){this.previous.has(e)||this.previous.set(e,i),e.f&Yt||(this.current.set(e,e.v),Ie==null||Ie.set(e,e.v))}activate(){he=this,this.apply()}deactivate(){he===this&&(he=null,Ie=null)}flush(){if(this.activate(),rt.length>0){if(Br(),he!==null&&he!==this)return}else E(this,Si)===0&&this.process([]);this.deactivate()}discard(){for(const e of E(this,Ji))e(this);E(this,Ji).clear()}increment(e){ie(this,Si,E(this,Si)+1),e&&ie(this,Ei,E(this,Ei)+1)}decrement(e){ie(this,Si,E(this,Si)-1),e&&ie(this,Ei,E(this,Ei)-1),this.revive()}revive(){for(const e of E(this,Xi))Ge(e,Je),hi(e);for(const e of E(this,Qi))Ge(e,Ot),hi(e);ie(this,Xi,[]),ie(this,Qi,[]),this.flush()}oncommit(e){E(this,Yi).add(e)}ondiscard(e){E(this,Ji).add(e)}settled(){return(E(this,wa)??ie(this,wa,kr())).promise}static ensure(){if(he===null){const e=he=new ln;Ia.add(he),Oi||ln.enqueue(()=>{he===e&&e.flush()})}return he}static enqueue(e){Rt(e)}apply(){}};Yi=new WeakMap,Ji=new WeakMap,Si=new WeakMap,Ei=new WeakMap,wa=new WeakMap,Xi=new WeakMap,Qi=new WeakMap,Oe=new WeakSet,mr=function(e,i){var p;e.f^=We;for(var a=e.first;a!==null;){var n=a.f,r=(n&(qt|ui))!==0,l=r&&(n&We)!==0,c=l||(n&tt)!==0||this.skipped_effects.has(a);if(a.f&za&&((p=a.b)!=null&&p.is_pending())&&(i={parent:i,effect:a,effects:[],render_effects:[],block_effects:[]}),!c&&a.fn!==null){r?a.f^=We:n&yn?i.effects.push(a):da(a)&&(a.f&wt&&i.block_effects.push(a),pa(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&&(Ee(this,Oe,ji).call(this,i.effects),Ee(this,Oe,ji).call(this,i.render_effects),Ee(this,Oe,ji).call(this,i.block_effects),i=i.parent),a=d.next,d=d.parent}},ji=function(e){for(const i of e)(i.f&Je?E(this,Xi):E(this,Qi)).push(i),Ee(this,Oe,yr).call(this,i.deps),Ge(i,We)},yr=function(e){if(e!==null)for(const i of e)!(i.f&Be)||!(i.f&aa)||(i.f^=aa,Ee(this,Oe,yr).call(this,i.deps))},No=function(){if(E(this,Ei)===0){for(const e of E(this,Yi))e();E(this,Yi).clear()}E(this,Si)===0&&Ee(this,Oe,Ro).call(this)},Ro=function(){var r;if(Ia.size>1){this.previous.clear();var e=Ie,i=!0,a={parent:null,effect:null,effects:[],render_effects:[],block_effects:[]};for(const l of Ia){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 n=rt;rt=[];const d=new Set,p=new Map;for(const u of c)Vr(u,s,d,p);if(rt.length>0){he=l,l.apply();for(const u of rt)Ee(r=l,Oe,mr).call(r,u,a);l.deactivate()}rt=n}}he=null,Ie=e}this.committed=!0,Ia.delete(this)};let kt=ln;function Rr(t){var e=Oi;Oi=!0;try{for(var i;;){if(Es(),rt.length===0&&(he==null||he.flush(),rt.length===0))return La=null,i;Br()}}finally{Oi=e}}function Br(){var t=$t;Sn=!0;var e=null;try{var i=0;for(Da(!0);rt.length>0;){var a=kt.ensure();if(i++>1e3){var n,r;Ts()}a.process(rt),Jt.clear()}}finally{Sn=!1,Da(t),La=null}}function Ts(){try{$o()}catch(t){qi(t,La)}}let vt=null;function Fr(t){var e=t.length;if(e!==0){for(var i=0;i<e;){var a=t[i++];if(!(a.f&(Nt|tt))&&da(a)&&(vt=new Set,pa(a),a.deps===null&&a.first===null&&a.nodes_start===null&&(a.teardown===null&&a.ac===null?cl(a):a.fn=null),(vt==null?void 0:vt.size)>0)){Jt.clear();for(const n of vt){if(n.f&(Nt|tt))continue;const r=[n];let l=n.parent;for(;l!==null;)vt.has(l)&&(vt.delete(l),r.push(l)),l=l.parent;for(let c=r.length-1;c>=0;c--){const s=r[c];s.f&(Nt|tt)||pa(s)}}vt.clear()}}vt=null}}function Vr(t,e,i,a){if(!i.has(t)&&(i.add(t),t.reactions!==null))for(const n of t.reactions){const r=n.f;r&Be?Vr(n,e,i,a):r&(wn|wt)&&!(r&Je)&&Hr(n,e,a)&&(Ge(n,Je),hi(n))}}function Hr(t,e,i){const a=i.get(t);if(a!==void 0)return a;if(t.deps!==null)for(const n of t.deps){if(e.includes(n))return!0;if(n.f&Be&&Hr(n,e,i))return i.set(n,!0),!0}return i.set(t,!1),!1}function hi(t){for(var e=La=t;e.parent!==null;){e=e.parent;var i=e.f;if(Sn&&e===ye&&i&wt&&!(i&Pr))return;if(i&(ui|qt)){if(!(i&We))return;e.f^=We}}rt.push(e)}function Ur(t){let e=0,i=Et(0),a;return()=>{oa()&&(o(i),Ma(()=>(e===0&&(a=zt(()=>t(()=>Xt(i)))),e+=1,()=>{Rt(()=>{e-=1,e===0&&(a==null||a(),a=void 0,Xt(i))})})))}}var Ps=xt|Ai|za;function Cs(t,e,i){new zs(t,e,i)}class zs{constructor(e,i,a){re(this,Re);bt(this,"parent");re(this,ct,!1);re(this,dt);re(this,hr,null);re(this,It);re(this,Ti);re(this,At);re(this,pt,null);re(this,et,null);re(this,Lt,null);re(this,Gt,null);re(this,oi,null);re(this,Pi,0);re(this,si,0);re(this,Ci,!1);re(this,ci,null);re(this,on,Ur(()=>(ie(this,ci,Et(E(this,Pi))),()=>{ie(this,ci,null)})));ie(this,dt,e),ie(this,It,i),ie(this,Ti,a),this.parent=ye.b,ie(this,ct,!!E(this,It).pending),ie(this,At,Qt(()=>{ye.b=this;{var n=Ee(this,Re,br).call(this);try{ie(this,pt,Qe(()=>a(n)))}catch(r){this.error(r)}E(this,si)>0?Ee(this,Re,fn).call(this):ie(this,ct,!1)}return()=>{var r;(r=E(this,oi))==null||r.remove()}},Ps))}is_pending(){return E(this,ct)||!!this.parent&&this.parent.is_pending()}has_pending_snippet(){return!!E(this,It).pending}update_pending_count(e){Ee(this,Re,wr).call(this,e),ie(this,Pi,E(this,Pi)+e),E(this,ci)&&Bt(E(this,ci),E(this,Pi))}get_effect_pending(){return E(this,on).call(this),o(E(this,ci))}error(e){var i=E(this,It).onerror;let a=E(this,It).failed;if(E(this,Ci)||!i&&!a)throw e;E(this,pt)&&(Fe(E(this,pt)),ie(this,pt,null)),E(this,et)&&(Fe(E(this,et)),ie(this,et,null)),E(this,Lt)&&(Fe(E(this,Lt)),ie(this,Lt,null));var n=!1,r=!1;const l=()=>{if(n){xs();return}n=!0,r&&ns(),kt.ensure(),ie(this,Pi,0),E(this,Lt)!==null&&Ri(E(this,Lt),()=>{ie(this,Lt,null)}),ie(this,ct,this.has_pending_snippet()),ie(this,pt,Ee(this,Re,vn).call(this,()=>(ie(this,Ci,!1),Qe(()=>E(this,Ti).call(this,E(this,dt)))))),E(this,si)>0?Ee(this,Re,fn).call(this):ie(this,ct,!1)};var c=ge;try{$e(null),r=!0,i==null||i(e,l),r=!1}catch(s){qi(s,E(this,At)&&E(this,At).parent)}finally{$e(c)}a&&Rt(()=>{ie(this,Lt,Ee(this,Re,vn).call(this,()=>{kt.ensure(),ie(this,Ci,!0);try{return Qe(()=>{a(E(this,dt),()=>e,()=>l)})}catch(s){return qi(s,E(this,At).parent),null}finally{ie(this,Ci,!1)}}))})}}ct=new WeakMap,dt=new WeakMap,hr=new WeakMap,It=new WeakMap,Ti=new WeakMap,At=new WeakMap,pt=new WeakMap,et=new WeakMap,Lt=new WeakMap,Gt=new WeakMap,oi=new WeakMap,Pi=new WeakMap,si=new WeakMap,Ci=new WeakMap,ci=new WeakMap,on=new WeakMap,Re=new WeakSet,ah=function(){try{ie(this,pt,Qe(()=>E(this,Ti).call(this,E(this,dt))))}catch(e){this.error(e)}ie(this,ct,!1)},nh=function(){const e=E(this,It).pending;e&&(ie(this,et,Qe(()=>e(E(this,dt)))),kt.enqueue(()=>{var i=Ee(this,Re,br).call(this);ie(this,pt,Ee(this,Re,vn).call(this,()=>(kt.ensure(),Qe(()=>E(this,Ti).call(this,i))))),E(this,si)>0?Ee(this,Re,fn).call(this):(Ri(E(this,et),()=>{ie(this,et,null)}),ie(this,ct,!1))}))},br=function(){var e=E(this,dt);return E(this,ct)&&(ie(this,oi,Tt()),E(this,dt).before(E(this,oi)),e=E(this,oi)),e},vn=function(e){var i=ye,a=ge,n=xe;Ct(E(this,At)),$e(E(this,At)),Di(E(this,At).ctx);try{return e()}catch(r){return Nr(r),null}finally{Ct(i),$e(a),Di(n)}},fn=function(){const e=E(this,It).pending;E(this,pt)!==null&&(ie(this,Gt,document.createDocumentFragment()),E(this,Gt).append(E(this,oi)),ul(E(this,pt),E(this,Gt))),E(this,et)===null&&ie(this,et,Qe(()=>e(E(this,dt))))},wr=function(e){var i;if(!this.has_pending_snippet()){this.parent&&Ee(i=this.parent,Re,wr).call(i,e);return}ie(this,si,E(this,si)+e),E(this,si)===0&&(ie(this,ct,!1),E(this,et)&&Ri(E(this,et),()=>{ie(this,et,null)}),E(this,Gt)&&(E(this,dt).before(E(this,Gt)),ie(this,Gt,null)))};let gi=null;function Wr(t){gi=t}function Ae(t,e){return e}function js(t,e,i){for(var a=[],n=e.length,r=0;r<n;r++)jn(e[r].e,a,!0);dl(a,()=>{var l=a.length===0&&i!==null;if(l){var c=i,s=c.parentNode;Rs(s),s.append(c),t.items.clear(),St(t,e[0].prev,e[n-1].next)}for(var d=0;d<n;d++){var p=e[d];l||(t.items.delete(p.k),St(t,p.prev,p.next)),Fe(p.e,!l)}t.first===e[0]&&(t.first=e[0].prev)})}function Ce(t,e,i,a,n,r=null){var l=t,c=new Map,s=null,d=(e&Ar)!==0,p=(e&jr)!==0,u=(e&Ir)!==0;if(d){var v=t;l=v.appendChild(Tt())}var h=null,m=Tn(()=>{var S=i();return Pe(S)?S:S==null?[]:hn(S)}),y,g=!0;function b(){Is(x,y,l,e,a),h!==null&&(y.length===0?(h.fragment?(l.before(h.fragment),h.fragment=null):In(h.effect),_.first=h.effect):Ri(h.effect,()=>{h=null}))}var _=Qt(()=>{y=o(m);for(var S=y.length,L=new Set,I=he,j=null,V=il(),M=0;M<S;M+=1){var z=y[M],D=a(z,M),A=g?null:c.get(D);A?(p&&Bt(A.v,z),u?Bt(A.i,M):A.i=M,V&&I.skipped_effects.delete(A.e)):(A=As(g?l:null,j,z,D,M,n,e,i),g&&(A.o=!0,j===null?s=A:j.next=A,j=A),c.set(D,A)),L.add(D)}if(S===0&&r&&!h)if(g)h={fragment:null,effect:Qe(()=>r(l))};else{var P=document.createDocumentFragment(),N=Tt();P.append(N),h={fragment:P,effect:Qe(()=>r(N))}}if(!g)if(V){for(const[R,X]of c)L.has(R)||I.skipped_effects.add(X.e);I.oncommit(b),I.ondiscard(()=>{})}else b();o(m)}),x={effect:_,flags:e,items:c,first:s};g=!1}function Is(t,e,i,a,n){var z,D,A,P;var r=(a&rs)!==0,l=e.length,c=t.items,s=t.first,d,p=null,u,v=[],h=[],m,y,g,b;if(r)for(b=0;b<l;b+=1)m=e[b],y=n(m,b),g=c.get(y),g.o&&((z=g.a)==null||z.measure(),(u??(u=new Set)).add(g));for(b=0;b<l;b+=1){if(m=e[b],y=n(m,b),g=c.get(y),t.first??(t.first=g),!g.o){g.o=!0;var _=p?p.next:s;St(t,p,g),St(t,g,_),En(g,_,i),p=g,v=[],h=[],s=p.next;continue}if(g.e.f&tt&&(In(g.e),r&&((D=g.a)==null||D.unfix(),(u??(u=new Set)).delete(g))),g!==s){if(d!==void 0&&d.has(g)){if(v.length<h.length){var x=h[0],S;p=x.prev;var L=v[0],I=v[v.length-1];for(S=0;S<v.length;S+=1)En(v[S],x,i);for(S=0;S<h.length;S+=1)d.delete(h[S]);St(t,L.prev,I.next),St(t,p,L),St(t,I,x),s=x,p=I,b-=1,v=[],h=[]}else d.delete(g),En(g,s,i),St(t,g.prev,g.next),St(t,g,p===null?t.first:p.next),St(t,p,g),p=g;continue}for(v=[],h=[];s!==null&&s.k!==y;)s.e.f&tt||(d??(d=new Set)).add(s),h.push(s),s=s.next;if(s===null)continue;g=s}v.push(g),p=g,s=g.next}if(s!==null||d!==void 0){for(var j=d===void 0?[]:hn(d);s!==null;)s.e.f&tt||j.push(s),s=s.next;var V=j.length;if(V>0){var M=a&Ar&&l===0?i:null;if(r){for(b=0;b<V;b+=1)(A=j[b].a)==null||A.measure();for(b=0;b<V;b+=1)(P=j[b].a)==null||P.fix()}js(t,j,M)}}r&&Rt(()=>{var N;if(u!==void 0)for(g of u)(N=g.a)==null||N.apply()})}function As(t,e,i,a,n,r,l,c){var s=gi,d=(l&jr)!==0,p=(l&ls)===0,u=d?p?zn(i,!1,!1):Et(i):i,v=l&Ir?Et(n):n,h={i:v,v:u,k:a,a:null,e:null,o:!1,prev:e,next:null};gi=h;try{if(t===null){var m=document.createDocumentFragment();m.append(t=Tt())}return h.e=Qe(()=>r(t,u,v,c)),e!==null&&(e.next=h),h}finally{gi=s}}function En(t,e,i){for(var a=t.next?t.next.e.nodes_start:i,n=e?e.e.nodes_start:i,r=t.e.nodes_start;r!==null&&r!==a;){var l=la(r);n.before(r),r=l}}function St(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 Gr(t,e,i,a){const n=vi()?ra:Tn;if(i.length===0&&t.length===0){a(e.map(n));return}var r=he,l=ye,c=Kr();function s(){Promise.all(i.map(d=>Ls(d))).then(d=>{c();try{a([...e.map(n),...d])}catch(p){l.f&Nt||qi(p,l)}r==null||r.deactivate(),na()}).catch(d=>{qi(d,l)})}t.length>0?Promise.all(t).then(()=>{c();try{return s()}finally{r==null||r.deactivate(),na()}}):s()}function Kr(){var t=ye,e=ge,i=xe,a=he;return function(r=!0){Ct(t),$e(e),Di(i),r&&(a==null||a.activate())}}function na(){Ct(null),$e(null),Di(null)}function ra(t){var e=Be|Je,i=ge!==null&&ge.f&Be?ge:null;return ye!==null&&(ye.f|=Ai),{ctx:xe,deps:null,effects:null,equals:Lr,f:e,fn:t,reactions:null,rv:0,v:Ne,wv:0,parent:i??ye,ac:null}}function Ls(t,e){let i=ye;i===null&&Yo();var a=i.b,n=void 0,r=Et(Ne),l=!ge,c=new Map;return Ks(()=>{var v;var s=kr();n=s.promise;try{Promise.resolve(t()).then(s.resolve,s.reject).then(()=>{d===he&&d.committed&&d.deactivate(),na()})}catch(h){s.reject(h),na()}var d=he;if(l){var p=!a.is_pending();a.update_pending_count(1),d.increment(p),(v=c.get(d))==null||v.reject(Li),c.delete(d),c.set(d,s)}const u=(h,m=void 0)=>{if(d.activate(),m)m!==Li&&(r.f|=Yt,Bt(r,m));else{r.f&Yt&&(r.f^=Yt),Bt(r,h);for(const[y,g]of c){if(c.delete(y),y===d)break;g.reject(Li)}}l&&(a.update_pending_count(-1),d.decrement(p))};s.promise.then(u,h=>u(null,h||"unknown"))}),sa(()=>{for(const s of c.values())s.reject(Li)}),new Promise(s=>{function d(p){function u(){p===n?s(r):d(n)}p.then(u,u)}d(n)})}function B(t){const e=ra(t);return fl(e),e}function Tn(t){const e=ra(t);return e.equals=Dr,e}function Zr(t){var e=t.effects;if(e!==null){t.effects=null;for(var i=0;i<e.length;i+=1)Fe(e[i])}}function Ms(t){for(var e=t.parent;e!==null;){if(!(e.f&Be))return e.f&Nt?null:e;e=e.parent}return null}function Pn(t){var e,i=ye;Ct(Ms(t));try{t.f&=~aa,Zr(t),e=bl(t)}finally{Ct(i)}return e}function Yr(t){var e=Pn(t);if(t.equals(e)||(he!=null&&he.is_fork||(t.v=e),t.wv=ml()),!bi)if(Ie!==null)(oa()||he!=null&&he.is_fork)&&Ie.set(t,e);else{var i=t.f&ut?We:Ot;Ge(t,i)}}let Cn=new Set;const Jt=new Map;let Jr=!1;function Et(t,e){var i={f:0,v:t,reactions:null,equals:Lr,rv:0,wv:0};return i}function G(t,e){const i=Et(t);return fl(i),i}function zn(t,e=!1,i=!0){var n;const a=Et(t);return e||(a.equals=Dr),Mi&&i&&xe!==null&&xe.l!==null&&((n=xe.l).s??(n.s=[])).push(a),a}function q(t,e,i=!1){ge!==null&&(!Pt||ge.f&Tr)&&vi()&&ge.f&(Be|wt|wn|Tr)&&!(Ze!=null&&Ze.includes(t))&&as();let a=i?Me(e):e;return Bt(t,a)}function Bt(t,e){if(!t.equals(e)){var i=t.v;bi?Jt.set(t,e):Jt.set(t,i),t.v=e;var a=kt.ensure();a.capture(t,i),t.f&Be&&(t.f&Je&&Pn(t),Ge(t,t.f&ut?We:Ot)),t.wv=ml(),Xr(t,Je),vi()&&ye!==null&&ye.f&We&&!(ye.f&(qt|ui))&&(lt===null?Js([t]):lt.push(t)),!a.is_fork&&Cn.size>0&&!Jr&&Ds()}return e}function Ds(){Jr=!1;var t=$t;Da(!0);const e=Array.from(Cn);try{for(const i of e)i.f&We&&Ge(i,Ot),da(i)&&pa(i)}finally{Da(t)}Cn.clear()}function qs(t,e=1){var i=o(t),a=e===1?i++:i--;return q(t,i),a}function Xt(t){q(t,t.v+1)}function Xr(t,e){var i=t.reactions;if(i!==null)for(var a=vi(),n=i.length,r=0;r<n;r++){var l=i[r],c=l.f;if(!(!a&&l===ye)){var s=(c&Je)===0;if(s&&Ge(l,e),c&Be){var d=l;Ie==null||Ie.delete(d),c&aa||(c&ut&&(l.f|=aa),Xr(d,Ot))}else s&&(c&wt&&vt!==null&&vt.add(l),hi(l))}}}function Me(t){if(typeof t!="object"||t===null||_t in t)return t;const e=gn(t);if(e!==Uo&&e!==Wo)return t;var i=new Map,a=Pe(t),n=G(0),r=Ft,l=c=>{if(Ft===r)return c();var s=ge,d=Ft;$e(null),gl(r);var p=c();return $e(s),gl(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)&&ts();var p=i.get(s);return p===void 0?p=l(()=>{var u=G(d.value);return i.set(s,u),u}):q(p,d.value,!0),!0},deleteProperty(c,s){var d=i.get(s);if(d===void 0){if(s in c){const p=l(()=>G(Ne));i.set(s,p),Xt(n)}}else q(d,Ne),Xt(n);return!0},get(c,s,d){var h;if(s===_t)return t;var p=i.get(s),u=s in c;if(p===void 0&&(!u||(h=Zt(c,s))!=null&&h.writable)&&(p=l(()=>{var m=Me(u?c[s]:Ne),y=G(m);return y}),i.set(s,p)),p!==void 0){var v=o(p);return v===Ne?void 0:v}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),v=u==null?void 0:u.v;if(u!==void 0&&v!==Ne)return{enumerable:!0,configurable:!0,value:v,writable:!0}}return d},has(c,s){var v;if(s===_t)return!0;var d=i.get(s),p=d!==void 0&&d.v!==Ne||Reflect.has(c,s);if(d!==void 0||ye!==null&&(!p||(v=Zt(c,s))!=null&&v.writable)){d===void 0&&(d=l(()=>{var h=p?Me(c[s]):Ne,m=G(h);return m}),i.set(s,d));var u=o(d);if(u===Ne)return!1}return p},set(c,s,d,p){var x;var u=i.get(s),v=s in c;if(a&&s==="length")for(var h=d;h<u.v;h+=1){var m=i.get(h+"");m!==void 0?q(m,Ne):h in c&&(m=l(()=>G(Ne)),i.set(h+"",m))}if(u===void 0)(!v||(x=Zt(c,s))!=null&&x.writable)&&(u=l(()=>G(void 0)),q(u,Me(d)),i.set(s,u));else{v=u.v!==Ne;var y=l(()=>Me(d));q(u,y)}var g=Reflect.getOwnPropertyDescriptor(c,s);if(g!=null&&g.set&&g.set.call(p,d),!v){if(a&&typeof s=="string"){var b=i.get("length"),_=Number(s);Number.isInteger(_)&&_>=b.v&&q(b,_+1)}Xt(n)}return!0},ownKeys(c){o(n);var s=Reflect.ownKeys(c).filter(u=>{var v=i.get(u);return v===void 0||v.v!==Ne});for(var[d,p]of i)p.v!==Ne&&!(d in c)&&s.push(d);return s},setPrototypeOf(){is()}})}function Qr(t){try{if(t!==null&&typeof t=="object"&&_t in t)return t[_t]}catch{}return t}function Os(t,e){return Object.is(Qr(t),Qr(e))}var De,$r,el,tl;function Ns(){if(De===void 0){De=window,$r=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,i=Text.prototype;el=Zt(e,"firstChild").get,tl=Zt(e,"nextSibling").get,_r(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),_r(i)&&(i.__t=void 0)}}function Tt(t=""){return document.createTextNode(t)}function Ni(t){return el.call(t)}function la(t){return tl.call(t)}function k(t,e){return Ni(t)}function J(t,e=!1){{var i=Ni(t);return i instanceof Comment&&i.data===""?la(i):i}}function C(t,e=1,i=!1){let a=t;for(;e--;)a=la(a);return a}function Rs(t){t.textContent=""}function il(){return!1}function Bs(t,e){if(e){const i=document.body;t.autofocus=!0,Rt(()=>{document.activeElement===i&&t.focus()})}}let al=!1;function Fs(){al||(al=!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 Vs(t,e,i,a=!0){a&&i();for(var n of e)t.addEventListener(n,i);sa(()=>{for(var r of e)t.removeEventListener(r,i)})}function mi(t){var e=ge,i=ye;$e(null),Ct(null);try{return t()}finally{$e(e),Ct(i)}}function Hs(t,e,i,a=i){t.addEventListener(e,()=>mi(i));const n=t.__on_r;n?t.__on_r=()=>{n(),a(!0)}:t.__on_r=()=>a(!0),Fs()}function nl(t){ye===null&&(ge===null&&Qo(),Xo()),bi&&Jo()}function Us(t,e){var i=e.last;i===null?e.last=e.first=t:(i.next=t,t.prev=i,e.last=t)}function ft(t,e,i){var a=ye;a!==null&&a.f&tt&&(t|=tt);var n={ctx:xe,deps:null,nodes_start:null,nodes_end:null,f:t|Je|ut,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{pa(n),n.f|=ja}catch(c){throw Fe(n),c}else e!==null&&hi(n);var r=n;if(i&&r.deps===null&&r.teardown===null&&r.nodes_start===null&&r.first===r.last&&!(r.f&Ai)&&(r=r.first,t&wt&&t&xt&&r!==null&&(r.f|=xt)),r!==null&&(r.parent=a,a!==null&&Us(r,a),ge!==null&&ge.f&Be&&!(t&ui))){var l=ge;(l.effects??(l.effects=[])).push(r)}return n}function oa(){return ge!==null&&!Pt}function sa(t){const e=ft(Ca,null,!1);return Ge(e,We),e.teardown=t,e}function Xe(t){nl();var e=ye.f,i=!ge&&(e&qt)!==0&&(e&ja)===0;if(i){var a=xe;(a.e??(a.e=[])).push(t)}else return rl(t)}function rl(t){return ft(yn|Cr,t,!1)}function Ws(t){return nl(),ft(Ca|Cr,t,!0)}function Gs(t){kt.ensure();const e=ft(ui|Ai,t,!0);return(i={})=>new Promise(a=>{i.outro?Ri(e,()=>{Fe(e),a(void 0)}):(Fe(e),a(void 0))})}function yi(t){return ft(yn,t,!1)}function Ks(t){return ft(wn|Ai,t,!0)}function Ma(t,e=0){return ft(Ca|e,t,!0)}function F(t,e=[],i=[],a=[]){Gr(a,e,i,n=>{ft(Ca,()=>t(...n.map(o)),!0)})}function Qt(t,e=0){var i=ft(wt|e,t,!0);return i}function ll(t,e=0){var i=ft(Er|e,t,!0);return i}function Qe(t){return ft(qt|Ai,t,!0)}function ol(t){var e=t.teardown;if(e!==null){const i=bi,a=ge;vl(!0),$e(null);try{e.call(null)}finally{vl(i),$e(a)}}}function sl(t,e=!1){var i=t.first;for(t.first=t.last=null;i!==null;){const n=i.ac;n!==null&&mi(()=>{n.abort(Li)});var a=i.next;i.f&ui?i.parent=null:Fe(i,e),i=a}}function Zs(t){for(var e=t.first;e!==null;){var i=e.next;e.f&qt||Fe(e),e=i}}function Fe(t,e=!0){var i=!1;(e||t.f&Pr)&&t.nodes_start!==null&&t.nodes_end!==null&&(Ys(t.nodes_start,t.nodes_end),i=!0),sl(t,e&&!i),qa(t,0),Ge(t,Nt);var a=t.transitions;if(a!==null)for(const r of a)r.stop();ol(t);var n=t.parent;n!==null&&n.first!==null&&cl(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=t.ac=null}function Ys(t,e){for(;t!==null;){var i=t===e?null:la(t);t.remove(),t=i}}function cl(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 Ri(t,e,i=!0){var a=[];jn(t,a,!0),dl(a,()=>{i&&Fe(t),e&&e()})}function dl(t,e){var i=t.length;if(i>0){var a=()=>--i||e();for(var n of t)n.out(a)}else e()}function jn(t,e,i){if(!(t.f&tt)){if(t.f^=tt,t.transitions!==null)for(const l of t.transitions)(l.is_global||i)&&e.push(l);for(var a=t.first;a!==null;){var n=a.next,r=(a.f&xt)!==0||(a.f&qt)!==0&&(t.f&wt)!==0;jn(a,e,r?i:!1),a=n}}}function In(t){pl(t,!0)}function pl(t,e){if(t.f&tt){t.f^=tt,t.f&We||(Ge(t,Je),hi(t));for(var i=t.first;i!==null;){var a=i.next,n=(i.f&xt)!==0||(i.f&qt)!==0;pl(i,n?e:!1),i=a}if(t.transitions!==null)for(const r of t.transitions)(r.is_global||e)&&r.in()}}function ul(t,e){for(var i=t.nodes_start,a=t.nodes_end;i!==null;){var n=i===a?null:la(i);e.append(i),i=n}}let $t=!1;function Da(t){$t=t}let bi=!1;function vl(t){bi=t}let ge=null,Pt=!1;function $e(t){ge=t}let ye=null;function Ct(t){ye=t}let Ze=null;function fl(t){ge!==null&&(Ze===null?Ze=[t]:Ze.push(t))}let Ye=null,it=0,lt=null;function Js(t){lt=t}let hl=1,ca=0,Ft=ca;function gl(t){Ft=t}function ml(){return++hl}function da(t){var e=t.f;if(e&Je)return!0;if(e&Be&&(t.f&=-32769),e&Ot){var i=t.deps;if(i!==null)for(var a=i.length,n=0;n<a;n++){var r=i[n];if(da(r)&&Yr(r),r.wv>t.wv)return!0}e&ut&&Ie===null&&Ge(t,We)}return!1}function yl(t,e,i=!0){var a=t.reactions;if(a!==null&&!(Ze!=null&&Ze.includes(t)))for(var n=0;n<a.length;n++){var r=a[n];r.f&Be?yl(r,e,!1):e===r&&(i?Ge(r,Je):r.f&We&&Ge(r,Ot),hi(r))}}function bl(t){var m;var e=Ye,i=it,a=lt,n=ge,r=Ze,l=xe,c=Pt,s=Ft,d=t.f;Ye=null,it=0,lt=null,ge=d&(qt|ui)?null:t,Ze=null,Di(t.ctx),Pt=!1,Ft=++ca,t.ac!==null&&(mi(()=>{t.ac.abort(Li)}),t.ac=null);try{t.f|=bn;var p=t.fn,u=p(),v=t.deps;if(Ye!==null){var h;if(qa(t,it),v!==null&&it>0)for(v.length=it+Ye.length,h=0;h<Ye.length;h++)v[it+h]=Ye[h];else t.deps=v=Ye;if($t&&oa()&&t.f&ut)for(h=it;h<v.length;h++)((m=v[h]).reactions??(m.reactions=[])).push(t)}else v!==null&&it<v.length&&(qa(t,it),v.length=it);if(vi()&<!==null&&!Pt&&v!==null&&!(t.f&(Be|Ot|Je)))for(h=0;h<lt.length;h++)yl(lt[h],t);return n!==null&&n!==t&&(ca++,lt!==null&&(a===null?a=lt:a.push(...lt))),t.f&Yt&&(t.f^=Yt),u}catch(y){return Nr(y)}finally{t.f^=bn,Ye=e,it=i,lt=a,ge=n,Ze=r,Di(l),Pt=c,Ft=s}}function Xs(t,e){let i=e.reactions;if(i!==null){var a=Ta.call(i,t);if(a!==-1){var n=i.length-1;n===0?i=e.reactions=null:(i[a]=i[n],i.pop())}}i===null&&e.f&Be&&(Ye===null||!Ye.includes(e))&&(Ge(e,Ot),e.f&ut&&(e.f^=ut,e.f&=-32769),Zr(e),qa(e,0))}function qa(t,e){var i=t.deps;if(i!==null)for(var a=e;a<i.length;a++)Xs(t,i[a])}function pa(t){var e=t.f;if(!(e&Nt)){Ge(t,We);var i=ye,a=$t;ye=t,$t=!0;try{e&(wt|Er)?Zs(t):sl(t),ol(t);var n=bl(t);t.teardown=typeof n=="function"?n:null,t.wv=hl;var r;ke&&_s&&t.f&Je&&t.deps}finally{$t=a,ye=i}}}async function ua(){await Promise.resolve(),Rr()}function o(t){var e=t.f,i=(e&Be)!==0;if(ge!==null&&!Pt){var a=ye!==null&&(ye.f&Nt)!==0;if(!a&&!(Ze!=null&&Ze.includes(t))){var n=ge.deps;if(ge.f&bn)t.rv<ca&&(t.rv=ca,Ye===null&&n!==null&&n[it]===t?it++:Ye===null?Ye=[t]:Ye.includes(t)||Ye.push(t));else{(ge.deps??(ge.deps=[])).push(t);var r=t.reactions;r===null?t.reactions=[ge]:r.includes(ge)||r.push(ge)}}}if(bi){if(Jt.has(t))return Jt.get(t);if(i){var l=t,c=l.v;return(!(l.f&We)&&l.reactions!==null||xl(l))&&(c=Pn(l)),Jt.set(l,c),c}}else i&&(!(Ie!=null&&Ie.has(t))||he!=null&&he.is_fork&&!oa())&&(l=t,da(l)&&Yr(l),$t&&oa()&&!(l.f&ut)&&wl(l));if(Ie!=null&&Ie.has(t))return Ie.get(t);if(t.f&Yt)throw t.v;return t.v}function wl(t){if(t.deps!==null){t.f^=ut;for(const e of t.deps)(e.reactions??(e.reactions=[])).push(t),e.f&Be&&!(e.f&ut)&&wl(e)}}function xl(t){if(t.v===Ne)return!0;if(t.deps===null)return!1;for(const e of t.deps)if(Jt.has(e)||e.f&Be&&xl(e))return!0;return!1}function zt(t){var e=Pt;try{return Pt=!0,t()}finally{Pt=e}}const Qs=-7169;function Ge(t,e){t.f=t.f&Qs|e}function _l(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(_t in t)An(t);else if(!Array.isArray(t))for(let e in t){const i=t[e];typeof i=="object"&&i&&_t in i&&An(i)}}}function An(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{An(t[a],e)}catch{}const i=gn(t);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const a=xr(i);for(let n in a){const r=a[n].get;if(r)try{r.call(t)}catch{}}}}}function $s(t){return t.endsWith("capture")&&t!=="gotpointercapture"&&t!=="lostpointercapture"}const ec=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function tc(t){return ec.includes(t)}const ic={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 ac(t){return t=t.toLowerCase(),ic[t]??t}const nc=["touchstart","touchmove"];function rc(t){return nc.includes(t)}const kl=new Set,Ln=new Set;function Mn(t,e,i,a={}){function n(r){if(a.capture||va.call(e,r),!r.cancelBubble)return mi(()=>i==null?void 0:i.call(this,r))}return t.startsWith("pointer")||t.startsWith("touch")||t==="wheel"?Rt(()=>{e.addEventListener(t,n,a)}):e.addEventListener(t,n,a),n}function lc(t,e,i,a={}){var n=Mn(e,t,i,a);return()=>{t.removeEventListener(e,n,a)}}function Se(t,e,i,a,n){var r={capture:a,passive:n},l=Mn(t,e,i,r);(e===document.body||e===window||e===document||e instanceof HTMLMediaElement)&&sa(()=>{e.removeEventListener(t,l,r)})}function de(t){for(var e=0;e<t.length;e++)kl.add(t[e]);for(var i of Ln)i(t)}let Sl=null;function va(t){var g;var e=this,i=e.ownerDocument,a=t.type,n=((g=t.composedPath)==null?void 0:g.call(t))||[],r=n[0]||t.target;Sl=t;var l=0,c=Sl===t&&t.__root;if(c){var s=n.indexOf(c);if(s!==-1&&(e===document||e===window)){t.__root=e;return}var d=n.indexOf(e);if(d===-1)return;s<=d&&(l=s)}if(r=n[l]||t.target,r!==e){Ho(t,"currentTarget",{configurable:!0,get(){return r||i}});var p=ge,u=ye;$e(null),Ct(null);try{for(var v,h=[];r!==null;){var m=r.assignedSlot||r.parentNode||r.host||null;try{var y=r["__"+a];y!=null&&(!r.disabled||t.target===r)&&y.call(r,t)}catch(b){v?h.push(b):v=b}if(t.cancelBubble||m===e||m===null)break;r=m}if(v){for(let b of h)queueMicrotask(()=>{throw b});throw v}}finally{t.__root=e,delete t.currentTarget,$e(p),Ct(u)}}}function El(t){var e=document.createElement("template");return e.innerHTML=t.replaceAll("<!>","<!---->"),e.content}function Bi(t,e){var i=ye;i.nodes_start===null&&(i.nodes_start=t,i.nodes_end=e)}function T(t,e){var i=(e&hs)!==0,a=(e&gs)!==0,n,r=!t.startsWith("<!>");return()=>{n===void 0&&(n=El(r?t:"<!>"+t),i||(n=Ni(n)));var l=a||$r?document.importNode(n,!0):n.cloneNode(!0);if(i){var c=Ni(l),s=l.lastChild;Bi(c,s)}else Bi(l,l);return l}}function oc(t,e,i="svg"){var a=!t.startsWith("<!>"),n=`<${i}>${a?t:"<!>"+t}</${i}>`,r;return()=>{if(!r){var l=El(n),c=Ni(l);r=Ni(c)}var s=r.cloneNode(!0);return Bi(s,s),s}}function ot(t,e){return oc(t,e,"svg")}function ei(t=""){{var e=Tt(t+"");return Bi(e,e),e}}function me(){var t=document.createDocumentFragment(),e=document.createComment(""),i=Tt();return t.append(e,i),Bi(e,i),t}function w(t,e){t!==null&&t.before(e)}let Oa=!0;function Na(t){Oa=t}function K(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 Vt(t,e){return sc(t,e)}const Fi=new Map;function sc(t,{target:e,anchor:i,props:a={},events:n,context:r,intro:l=!0}){Ns();var c=new Set,s=u=>{for(var v=0;v<u.length;v++){var h=u[v];if(!c.has(h)){c.add(h);var m=rc(h);e.addEventListener(h,va,{passive:m});var y=Fi.get(h);y===void 0?(document.addEventListener(h,va,{passive:m}),Fi.set(h,1)):Fi.set(h,y+1)}}};s(hn(kl)),Ln.add(s);var d=void 0,p=Gs(()=>{var u=i??e.appendChild(Tt());return Cs(u,{pending:()=>{}},v=>{if(r){ae({});var h=xe;h.c=r}n&&(a.$$events=n),Oa=l,d=t(v,a)||{},Oa=!0,r&&ne()}),()=>{var m;for(var v of c){e.removeEventListener(v,va);var h=Fi.get(v);--h===0?(document.removeEventListener(v,va),Fi.delete(v)):Fi.set(v,h)}Ln.delete(s),u!==i&&((m=u.parentNode)==null||m.removeChild(u))}});return Dn.set(d,p),d}let Dn=new WeakMap;function Vi(t,e){const i=Dn.get(t);return i?(Dn.delete(t),i(e)):Promise.resolve()}class Hi{constructor(e,i=!0){bt(this,"anchor");re(this,mt,new Map);re(this,Mt,new Map);re(this,at,new Map);re(this,zi,new Set);re(this,xa,!0);re(this,_a,()=>{var e=he;if(E(this,mt).has(e)){var i=E(this,mt).get(e),a=E(this,Mt).get(i);if(a)In(a),E(this,zi).delete(i);else{var n=E(this,at).get(i);n&&(E(this,Mt).set(i,n.effect),E(this,at).delete(i),n.fragment.lastChild.remove(),this.anchor.before(n.fragment),a=n.effect)}for(const[r,l]of E(this,mt)){if(E(this,mt).delete(r),r===e)break;const c=E(this,at).get(l);c&&(Fe(c.effect),E(this,at).delete(l))}for(const[r,l]of E(this,Mt)){if(r===i||E(this,zi).has(r))continue;const c=()=>{if(Array.from(E(this,mt).values()).includes(r)){var d=document.createDocumentFragment();ul(l,d),d.append(Tt()),E(this,at).set(r,{effect:l,fragment:d})}else Fe(l);E(this,zi).delete(r),E(this,Mt).delete(r)};E(this,xa)||!a?(E(this,zi).add(r),Ri(l,c,!1)):c()}}});re(this,sn,e=>{E(this,mt).delete(e);const i=Array.from(E(this,mt).values());for(const[a,n]of E(this,at))i.includes(a)||(Fe(n.effect),E(this,at).delete(a))});this.anchor=e,ie(this,xa,i)}ensure(e,i){var a=he,n=il();if(i&&!E(this,Mt).has(e)&&!E(this,at).has(e))if(n){var r=document.createDocumentFragment(),l=Tt();r.append(l),E(this,at).set(e,{effect:Qe(()=>i(l)),fragment:r})}else E(this,Mt).set(e,Qe(()=>i(this.anchor)));if(E(this,mt).set(a,e),n){for(const[c,s]of E(this,Mt))c===e?a.skipped_effects.delete(s):a.skipped_effects.add(s);for(const[c,s]of E(this,at))c===e?a.skipped_effects.delete(s.effect):a.skipped_effects.add(s.effect);a.oncommit(E(this,_a)),a.ondiscard(E(this,sn))}else E(this,_a).call(this)}}mt=new WeakMap,Mt=new WeakMap,at=new WeakMap,zi=new WeakMap,xa=new WeakMap,_a=new WeakMap,sn=new WeakMap;const cc=0,qn=1;function Ra(t,e,i,a,n){var r=vi(),l=Ne,c=r?Et(l):zn(l,!1,!1),s=r?Et(l):zn(l,!1,!1),d=new Hi(t);Qt(()=>{var p=e(),u=!1;if(Go(p)){var v=Kr(),h=!1;const m=y=>{if(!u){h=!0,v(!1),kt.ensure();try{y()}finally{na(),Oi||Rr()}}};p.then(y=>{m(()=>{Bt(c,y),d.ensure(qn,a&&(g=>a(g,c)))})},y=>{m(()=>{if(Bt(s,y),d.ensure(qn,n&&(g=>n(g,s))),!n)throw s.v})}),Rt(()=>{h||m(()=>{d.ensure(cc,i)})})}else Bt(c,p),d.ensure(qn,a&&(m=>a(m,c)));return()=>{u=!0}})}function H(t,e,i=!1){var a=new Hi(t),n=i?xt:0;function r(l,c){a.ensure(l,c)}Qt(()=>{var l=!1;e((c,s=!0)=>{l=!0,r(s,c)}),l||r(!1,null)},n)}function Ui(t,e,i){var a=new Hi(t),n=!vi();Qt(()=>{var r=e();n&&r!==null&&typeof r=="object"&&(r={}),a.ensure(r,i)})}function Ve(t,e,...i){var a=new Hi(t);Qt(()=>{const n=e()??null;a.ensure(n,n&&(r=>n(r,...i)))},xt)}function Tl(t,e,i){var a=new Hi(t);Qt(()=>{var n=e()??null;a.ensure(n,n&&(r=>i(r,n)))},xt)}function Pl(t,e,i,a,n,r){var l=null,c=t,s=gi,d=new Hi(c,!1);Qt(()=>{const p=e()||null;var u=p==="svg"?ys:null;if(p===null){d.ensure(null,null),Na(!0);return}return d.ensure(p,v=>{var h=gi;if(Wr(s),p){if(l=u?document.createElementNS(u,p):document.createElement(p),Bi(l,l),a){var m=l.appendChild(Tt());a(l,m)}ye.nodes_end=l,v.before(l)}Wr(h)}),Na(!0),()=>{p&&Na(!1)}},xt),sa(()=>{Na(!0)})}function jt(t,e,i){yi(()=>{var a=zt(()=>e(t,i==null?void 0:i())||{});if(i&&(a!=null&&a.update)){var n=!1,r={};Ma(()=>{var l=i();_l(l),n&&Mr(r,l)&&(r=l,a.update(l))}),n=!0}if(a!=null&&a.destroy)return()=>a.destroy()})}function Ba(t,e){var i=void 0,a;ll(()=>{i!==(i=e())&&(a&&(Fe(a),a=null),i&&(a=Qe(()=>{yi(()=>i(t))})))})}function Cl(t){var e,i,a="";if(typeof t=="string"||typeof t=="number")a+=t;else if(typeof t=="object")if(Array.isArray(t)){var n=t.length;for(e=0;e<n;e++)t[e]&&(i=Cl(t[e]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i);return a}function dc(){for(var t,e,i=0,a="",n=arguments.length;i<n;i++)(t=arguments[i])&&(e=Cl(t))&&(a&&(a+=" "),a+=e);return a}function pc(t){return typeof t=="object"?dc(t):t??""}const zl=[...`
|
|
3
|
+
\r\f \v\uFEFF`];function uc(t,e,i){var a=t==null?"":""+t;if(e&&(a=a?a+" "+e:e),i){for(var n in i)if(i[n])a=a?a+" "+n:n;else if(a.length)for(var r=n.length,l=0;(l=a.indexOf(n,l))>=0;){var c=l+r;(l===0||zl.includes(a[l-1]))&&(c===a.length||zl.includes(a[c]))?a=(l===0?"":a.substring(0,l))+a.substring(c+1):l=c}}return a===""?null:a}function jl(t,e=!1){var i=e?" !important;":";",a="";for(var n in t){var r=t[n];r!=null&&r!==""&&(a+=" "+n+": "+r+i)}return a}function On(t){return t[0]!=="-"||t[1]!=="-"?t.toLowerCase():t}function vc(t,e){if(e){var i="",a,n;if(Array.isArray(e)?(a=e[0],n=e[1]):a=e,t){t=String(t).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var r=!1,l=0,c=!1,s=[];a&&s.push(...Object.keys(a).map(On)),n&&s.push(...Object.keys(n).map(On));var d=0,p=-1;const y=t.length;for(var u=0;u<y;u++){var v=t[u];if(c?v==="/"&&t[u-1]==="*"&&(c=!1):r?r===v&&(r=!1):v==="/"&&t[u+1]==="*"?c=!0:v==='"'||v==="'"?r=v:v==="("?l++:v===")"&&l--,!c&&r===!1&&l===0){if(v===":"&&p===-1)p=u;else if(v===";"||u===y-1){if(p!==-1){var h=On(t.substring(d,p).trim());if(!s.includes(h)){v!==";"&&u++;var m=t.substring(d,u).trim();i+=" "+m+";"}}d=u+1,p=-1}}}}return a&&(i+=jl(a)),n&&(i+=jl(n,!0)),i=i.trim(),i===""?null:i}return t==null?null:String(t)}function be(t,e,i,a,n,r){var l=t.__className;if(l!==i||l===void 0){var c=uc(i,a,r);c==null?t.removeAttribute("class"):e?t.className=c:t.setAttribute("class",c),t.__className=i}else if(r&&n!==r)for(var s in r){var d=!!r[s];(n==null||d!==!!n[s])&&t.classList.toggle(s,d)}return r}function Nn(t,e={},i,a){for(var n in i){var r=i[n];e[n]!==r&&(i[n]==null?t.style.removeProperty(n):t.style.setProperty(n,r,a))}}function He(t,e,i,a){var n=t.__style;if(n!==e){var r=vc(e,a);r==null?t.removeAttribute("style"):t.style.cssText=r,t.__style=e}else a&&(Array.isArray(a)?(Nn(t,i==null?void 0:i[0],a[0]),Nn(t,i==null?void 0:i[1],a[1],"important")):Nn(t,i,a));return a}function Rn(t,e,i=!1){if(t.multiple){if(e==null)return;if(!Pe(e))return ws();for(var a of t.options)a.selected=e.includes(Il(a));return}for(a of t.options){var n=Il(a);if(Os(n,e)){a.selected=!0;return}}(!i||e!==void 0)&&(t.selectedIndex=-1)}function fc(t){var e=new MutationObserver(()=>{Rn(t,t.__value)});e.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),sa(()=>{e.disconnect()})}function Il(t){return"__value"in t?t.__value:t.value}const Wi=Symbol("class"),Gi=Symbol("style"),Al=Symbol("is custom element"),Ll=Symbol("is html");function hc(t,e){e?t.hasAttribute("selected")||t.setAttribute("selected",""):t.removeAttribute("selected")}function le(t,e,i,a){var n=Dl(t);n[e]!==(n[e]=i)&&(e==="loading"&&(t[Zo]=i),i==null?t.removeAttribute(e):typeof i!="string"&&Ol(t).includes(e)?t[e]=i:t.setAttribute(e,i))}function gc(t,e,i,a,n=!1,r=!1){var l=Dl(t),c=l[Al],s=!l[Ll],d=e||{},p=t.tagName==="OPTION";for(var u in e)u in i||(i[u]=null);i.class?i.class=pc(i.class):(a||i[Wi])&&(i.class=null),i[Gi]&&(i.style??(i.style=null));var v=Ol(t);for(const x in i){let S=i[x];if(p&&x==="value"&&S==null){t.value=t.__value="",d[x]=S;continue}if(x==="class"){var h=t.namespaceURI==="http://www.w3.org/1999/xhtml";be(t,h,S,a,e==null?void 0:e[Wi],i[Wi]),d[x]=S,d[Wi]=i[Wi];continue}if(x==="style"){He(t,S,e==null?void 0:e[Gi],i[Gi]),d[x]=S,d[Gi]=i[Gi];continue}var m=d[x];if(!(S===m&&!(S===void 0&&t.hasAttribute(x)))){d[x]=S;var y=x[0]+x[1];if(y!=="$$")if(y==="on"){const L={},I="$$"+x;let j=x.slice(2);var g=tc(j);if($s(j)&&(j=j.slice(0,-7),L.capture=!0),!g&&m){if(S!=null)continue;t.removeEventListener(j,d[I],L),d[I]=null}if(S!=null)if(g)t[`__${j}`]=S,de([j]);else{let V=function(M){d[x].call(this,M)};d[I]=Mn(j,t,V,L)}else g&&(t[`__${j}`]=void 0)}else if(x==="style")le(t,x,S);else if(x==="autofocus")Bs(t,!!S);else if(!c&&(x==="__value"||x==="value"&&S!=null))t.value=t.__value=S;else if(x==="selected"&&p)hc(t,S);else{var b=x;s||(b=ac(b));var _=b==="defaultValue"||b==="defaultChecked";if(S==null&&!c&&!_)if(l[x]=null,b==="value"||b==="checked"){let L=t;const I=e===void 0;if(b==="value"){let j=L.defaultValue;L.removeAttribute(b),L.defaultValue=j,L.value=L.__value=I?j:null}else{let j=L.defaultChecked;L.removeAttribute(b),L.defaultChecked=j,L.checked=I?j:!1}}else t.removeAttribute(x);else _||v.includes(b)&&(c||typeof S!="string")?(t[b]=S,b in l&&(l[b]=Ne)):typeof S!="function"&&le(t,b,S)}}}return d}function Ml(t,e,i=[],a=[],n=[],r,l=!1,c=!1){Gr(n,i,a,s=>{var d=void 0,p={},u=t.nodeName==="SELECT",v=!1;if(ll(()=>{var m=e(...s.map(o)),y=gc(t,d,m,r,l,c);v&&u&&"value"in m&&Rn(t,m.value);for(let b of Object.getOwnPropertySymbols(p))m[b]||Fe(p[b]);for(let b of Object.getOwnPropertySymbols(m)){var g=m[b];b.description===bs&&(!d||g!==d[b])&&(p[b]&&Fe(p[b]),p[b]=Qe(()=>Ba(t,()=>g))),y[b]=g}d=y}),u){var h=t;yi(()=>{Rn(h,d.value,!0),fc(h)})}v=!0})}function Dl(t){return t.__attributes??(t.__attributes={[Al]:t.nodeName.includes("-"),[Ll]:t.namespaceURI===ms})}var ql=new Map;function Ol(t){var e=t.getAttribute("is")||t.nodeName,i=ql.get(e);if(i)return i;ql.set(e,i=[]);for(var a,n=t,r=Element.prototype;r!==n;){a=xr(n);for(var l in a)a[l].set&&i.push(l);n=gn(n)}return i}const mc=()=>performance.now(),Ht={tick:t=>requestAnimationFrame(t),now:()=>mc(),tasks:new Set};function Nl(){const t=Ht.now();Ht.tasks.forEach(e=>{e.c(t)||(Ht.tasks.delete(e),e.f())}),Ht.tasks.size!==0&&Ht.tick(Nl)}function yc(t){let e;return Ht.tasks.size===0&&Ht.tick(Nl),{promise:new Promise(i=>{Ht.tasks.add(e={c:t,f:i})}),abort(){Ht.tasks.delete(e)}}}function Fa(t,e){mi(()=>{t.dispatchEvent(new CustomEvent(e))})}function bc(t){if(t==="float")return"cssFloat";if(t==="offset")return"cssOffset";if(t.startsWith("--"))return t;const e=t.split("-");return e.length===1?e[0]:e[0]+e.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function Rl(t){const e={},i=t.split(";");for(const a of i){const[n,r]=a.split(":");if(!n||r===void 0)break;const l=bc(n.trim());e[l]=r.trim()}return e}const wc=t=>t;function xc(t,e,i){var a=gi,n,r,l,c=null;a.a??(a.a={element:t,measure(){n=this.element.getBoundingClientRect()},apply(){if(l==null||l.abort(),r=this.element.getBoundingClientRect(),n.left!==r.left||n.right!==r.right||n.top!==r.top||n.bottom!==r.bottom){const s=e()(this.element,{from:n,to:r},i==null?void 0:i());l=Va(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 v=t.getBoundingClientRect();if(n.left!==v.left||n.top!==v.top){var h=`translate(${n.left-v.left}px, ${n.top-v.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 qe(t,e,i,a){var n=(t&us)!==0,r=(t&vs)!==0,l=n&&r,c=(t&fs)!==0,s=l?"both":n?"in":"out",d,p=e.inert,u=e.style.overflow,v,h;function m(){return mi(()=>d??(d=i()(e,(a==null?void 0:a())??{},{direction:s})))}var y={is_global:c,in(){var x;if(e.inert=p,!n){h==null||h.abort(),(x=h==null?void 0:h.reset)==null||x.call(h);return}r||v==null||v.abort(),Fa(e,"introstart"),v=Va(e,m(),h,1,()=>{Fa(e,"introend"),v==null||v.abort(),v=d=void 0,e.style.overflow=u})},out(x){if(!r){x==null||x(),d=void 0;return}e.inert=!0,Fa(e,"outrostart"),h=Va(e,m(),v,0,()=>{Fa(e,"outroend"),x==null||x()})},stop:()=>{v==null||v.abort(),h==null||h.abort()}},g=ye;if((g.transitions??(g.transitions=[])).push(y),n&&Oa){var b=c;if(!b){for(var _=g.parent;_&&_.f&xt;)for(;(_=_.parent)&&!(_.f&wt););b=!_||(_.f&ja)!==0}b&&yi(()=>{zt(()=>y.in())})}}function Va(t,e,i,a,n){var r=a===1;if(Ii(e)){var l,c=!1;return Rt(()=>{if(!c){var g=e({direction:r?"in":"out"});l=Va(t,g,i,a,n)}}),{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 n(),{abort:Dt,deactivate:Dt,reset:Dt,t:()=>a};const{delay:s=0,css:d,tick:p,easing:u=wc}=e;var v=[];if(r&&i===void 0&&(p&&p(0,1),d)){var h=Rl(d(0,1));v.push(h,h)}var m=()=>1-a,y=t.animate(v,{duration:s,fill:"forwards"});return y.onfinish=()=>{y.cancel();var g=(i==null?void 0:i.t())??1-a;i==null||i.abort();var b=a-g,_=e.duration*Math.abs(b),x=[];if(_>0){var S=!1;if(d)for(var L=Math.ceil(_/16.666666666666668),I=0;I<=L;I+=1){var j=g+b*u(I/L),V=Rl(d(j,1-j));x.push(V),S||(S=V.overflow==="hidden")}S&&(t.style.overflow="hidden"),m=()=>{var M=y.currentTime;return g+b*u(M/_)},p&&yc(()=>{if(y.playState!=="running")return!1;var M=m();return p(M,1-M),!0})}y=t.animate(x,{duration:_,fill:"forwards"}),y.onfinish=()=>{m=()=>a,p==null||p(a,1-a),n()}},{abort:()=>{y&&(y.cancel(),y.effect=null,y.onfinish=Dt)},deactivate:()=>{n=Dt},reset:()=>{a===0&&(p==null||p(1,0))},t:()=>m()}}function Ha(t,e,i=e){var a=new WeakSet;Hs(t,"input",async n=>{var r=n?t.defaultValue:t.value;if(r=Bn(t)?Fn(r):r,i(r),he!==null&&a.add(he),await ua(),r!==(r=e())){var l=t.selectionStart,c=t.selectionEnd,s=t.value.length;if(t.value=r??"",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))}}}),zt(e)==null&&t.value&&(i(Bn(t)?Fn(t.value):t.value),he!==null&&a.add(he)),Ma(()=>{var n=e();if(t===document.activeElement){var r=Aa??he;if(a.has(r))return}Bn(t)&&n===Fn(t.value)||t.type==="date"&&!n&&!t.value||n!==t.value&&(t.value=n??"")})}function Bn(t){var e=t.type;return e==="number"||e==="range"}function Fn(t){return t===""?null:+t}const dn=class dn{constructor(e){re(this,cn);re(this,di,new WeakMap);re(this,$i);re(this,ka);ie(this,ka,e)}observe(e,i){var a=E(this,di).get(e)||new Set;return a.add(i),E(this,di).set(e,a),Ee(this,cn,Bo).call(this).observe(e,E(this,ka)),()=>{var n=E(this,di).get(e);n.delete(i),n.size===0&&(E(this,di).delete(e),E(this,$i).unobserve(e))}}};di=new WeakMap,$i=new WeakMap,ka=new WeakMap,cn=new WeakSet,Bo=function(){return E(this,$i)??ie(this,$i,new ResizeObserver(e=>{for(var i of e){dn.entries.set(i.target,i);for(var a of E(this,di).get(i.target)||[])a(i)}}))},bt(dn,"entries",new WeakMap);let Vn=dn;var _c=new Vn({box:"border-box"});function ti(t,e,i){var a=_c.observe(t,()=>i(t[e]));yi(()=>(zt(()=>i(t[e])),a))}function Bl(t,e){return t===e||(t==null?void 0:t[_t])===e}function st(t={},e,i,a){return yi(()=>{var n,r;return Ma(()=>{n=r,r=[],zt(()=>{t!==i(...r)&&(e(t,...r),n&&Bl(i(...n),t)&&e(null,...n))})}),()=>{Rt(()=>{r&&Bl(i(...r),t)&&e(null,...r)})}}),t}function Hn(t,e){Vs(window,["resize"],()=>mi(()=>e(window[t])))}function Un(t=!1){const e=xe,i=e.l.u;if(!i)return;let a=()=>_l(e.s);if(t){let n=0,r={};const l=ra(()=>{let c=!1;const s=e.s;for(const d in s)s[d]!==r[d]&&(r[d]=s[d],c=!0);return c&&n++,n});a=()=>o(l)}i.b.length&&Ws(()=>{Fl(e,a),mn(i.b)}),Xe(()=>{const n=zt(()=>i.m.map(Ko));return()=>{for(const r of n)typeof r=="function"&&r()}}),i.a.length&&Xe(()=>{Fl(e,a),mn(i.a)})}function Fl(t,e){if(t.l.s)for(const i of t.l.s)o(i);e()}let Ua=!1;function kc(t){var e=Ua;try{return Ua=!1,[t(),Ua]}finally{Ua=e}}const Sc={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 Ec(t,e,i){return new Proxy({props:t,exclude:e},Sc)}const Tc={get(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Ii(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 n=t.props[a];Ii(n)&&(n=n());const r=Zt(n,e);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(t,e){let i=t.props.length;for(;i--;){let a=t.props[i];if(Ii(a)&&(a=a()),typeof a=="object"&&a!==null&&e in a){const n=Zt(a,e);return n&&!n.configurable&&(n.configurable=!0),n}}},has(t,e){if(e===_t||e===zr)return!1;for(let i of t.props)if(Ii(i)&&(i=i()),i!=null&&e in i)return!0;return!1},ownKeys(t){const e=[];for(let i of t.props)if(Ii(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 Pc(...t){return new Proxy({props:t},Tc)}function U(t,e,i,a){var x;var n=!Mi||(i&ss)!==0,r=(i&ds)!==0,l=(i&ps)!==0,c=a,s=!0,d=()=>(s&&(s=!1,c=l?zt(a):a),c),p;if(r){var u=_t in t||zr in t;p=((x=Zt(t,e))==null?void 0:x.set)??(u&&e in t?S=>t[e]=S:void 0)}var v,h=!1;r?[v,h]=kc(()=>t[e]):v=t[e],v===void 0&&a!==void 0&&(v=d(),p&&(n&&es(),p(v)));var m;if(n?m=()=>{var S=t[e];return S===void 0?d():(s=!0,S)}:m=()=>{var S=t[e];return S!==void 0&&(c=void 0),S===void 0?c:S},n&&!(i&cs))return m;if(p){var y=t.$$legacy;return function(S,L){return arguments.length>0?((!n||!L||y||h)&&p(L?m():S),S):m()}}var g=!1,b=(i&os?ra:Tn)(()=>(g=!1,m()));r&&o(b);var _=ye;return function(S,L){if(arguments.length>0){const I=L?o(b):n&&r?Me(S):S;return q(b,I),g=!0,c!==void 0&&(c=I),S}return bi&&g||_.f&Nt?b.v:o(b)}}function ht(t){xe===null&&xn(),Mi&&xe.l!==null?Cc(xe).m.push(t):Xe(()=>{const e=zt(t);if(typeof e=="function")return e})}function Wa(t){xe===null&&xn(),ht(()=>()=>zt(t))}function Cc(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const zc="5";typeof window<"u"&&((Mo=window.__svelte??(window.__svelte={})).v??(Mo.v=new Set)).add(zc);function ii(){var t;return(t=window.PlayPilotLinkInjections)==null?void 0:t.token}const jc="https://www.playpilot.com",Ic="https://partner-api.playpilot.tech/1.0",Ac="https://img-external.playpilot.tech",Lc="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",wi=600,Wn={};async function Ut(t,{headers:e={},method:i="GET",body:a=null}={}){const n=!Ga()&&i==="GET";if(n&&t in Wn)return Wn[t];const r=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(Ic+t,{method:i,headers:new Headers({...r,...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 n&&(Wn[t]=s),s}const Vl="EncryptedToken",Hl="articleReplacementEditToken",Mc="playpilot-editorial-mode";async function Ul({href:t=window.location.href,throwError:e=!1}={}){try{const i=ii();if(!i)throw new Error("No token was provided");const a=Wl(t);if(!a)throw new Error("Could not be authenticated");return await Ut(`/external-pages/edit-authorization?api-token=${i}`,{method:"POST",body:{private_token:a}}),Dc(a),!0}catch(i){if(console.error(i),e)throw i}finally{qc()}return!1}function Wl(t=""){var a,n;const e=(a=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:a.editorial_token;if(e)return e;if(t){const r=new URL(t).searchParams.get(Hl);if(r)return decodeURI(r)}return((n=("; "+document.cookie).split(`; ${Vl}=`).pop())==null?void 0:n.split(";")[0])||""}function Dc(t){const e=new Date;e.setTime(e.getTime()+30*24*60*60*1e3);const a="expires="+e.toUTCString();document.cookie=Vl+"="+t+";"+a+";path=/"}function Ga(){var e;const t=(e=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:e.editorial_token;return new URLSearchParams(window.location.search).get(Mc)==="true"||!!t}function qc(){const t=new URL(window.location.href);t.searchParams.delete(Hl),window.history.replaceState({},"",t)}function Oc(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 Gl(t=5){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789";let i="";for(;i.length<t;)i+=e[Math.floor(Math.random()*e.length)];return i}const f=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"});function Ka(){var a,n;const t=(a=window.PlayPilotLinkInjections)==null?void 0:a.language,e=Object.values(f);if(t){if(e.includes(t))return t;console.warn(`PlayPilot Link Injections: ${t} is not an accepted language`)}const i=(n=document.querySelector("html"))==null?void 0:n.getAttribute("lang");if(i){if(e.includes(i))return i;const r=e.find(l=>l.toLowerCase().startsWith(i+"-"));if(r)return r}return f.English}function Kl(t,e=""){const i=[],a=[t];for(;a.length>0;){const n=a.pop();if(i.includes(n)||e&&n.matches(e)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|TIME|LABEL|BLOCKQUOTE|H1)$/.test(n.tagName)||n.offsetWidth<=1)continue;const r=Array.from(n.childNodes).some(s=>{var d;return s.nodeType===Node.TEXT_NODE&&((d=s.nodeValue)==null?void 0:d.trim())!==""});if(r&&n.tagName==="LI"){const s=n.closest("ul, ol");s&&!i.includes(s)&&i.push(s);continue}const l=n.tagName==="P"&&!!n.textContent;if(r||l){i.push(n);continue}const c=Array.from(n.children);for(let s=c.length-1;s>=0;s--)a.push(c[s])}return i}function Gn(){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 Kn(t){return t.map(e=>e.innerText).join(`
|
|
4
4
|
|
|
5
|
-
`)}function Zn(t){const e=Gn(),i=Kl(e,(t==null?void 0:t.exclude_elements_selector)||""),a=Kn(i);return{parentElement:e,elements:i,pageText:a}}function Zl(){const t=Gn();return{content_heading:Nc(t),content_modified_time:Rc(t),content_published_time:Bc(t)}}function Nc(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Rc(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=Yl().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Yn(i):null}function Bc(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=Yl().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Yn(i):null}function Yn(t){try{return new Date(t).toISOString()}catch{return null}}function Yl(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function xi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function Jn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function Fc(t){return!!(t.exclude_urls_pattern&&xi().match(new RegExp(t.exclude_urls_pattern)))}let Xn=null;async function Za(t,{url:e=xi(),hash:i=Oc(t||""),params:a={},method:n="GET"}={}){const r=ii(),l=Ga()?await Ul():!1,c=Ka();if(!r)throw new Error("No token was provided");const s=`/external-pages/?api-token=${r}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return n==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=Zl(),d=await Ut(s,{method:"POST",body:a})):d=await Ut(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function Jl(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:n=600,onpoll:r=()=>null}={}){let l=0;Xn&&clearTimeout(Xn);const c=async(s,d)=>{let p;try{try{p=await Za(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await Za(t,{method:"POST"}),p.ai_enabled&&(p=await Za(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await Vc(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=Xl(p.manual_injections||[]),p.ai_injections=Xl(p.ai_injections||[]),s(p);return}catch{if(l++,l>=n){n>1&&console.error("Max poll limit exceeded. Please return later."),s();return}p&&r(p),Xn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function Vc(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=Zl().content_modified_time,a=e.content_modified_time?Yn(e.content_modified_time):null,n=i&&a===i;return e.ai_last_run&&n||new Date(i||0)<=new Date(a||0)?e:await Za(t,{params:{run_ai:!0},method:"POST"})}function Xl(t){return t.map(e=>({...e,key:Hc(e.sid)}))}function Hc(t){return t+"-"+Gl()}function Uc(t,e,i){return t.filter(a=>i.every(n=>a[n]===e[n])).length}function Wc(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Gc(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Qn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Ql(t,e,i=[]){var r,l;const a=document.createTreeWalker(e);let n;for(;(n=a.nextNode())&&!((r=n.nodeValue)!=null&&r.includes(t)&&!i.includes(((l=n.parentNode)==null?void 0:l.nodeName)||"")););return n}function $l(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Kc(t,e,i,a){const n=Gc(e),r=Qn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${r.replace(s,"\\$&")}|${n.replace(s,"\\$&")}`),p=c.replace(d,i);return l+p}function Zc(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function ai(t){return Qn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Yc(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const n=Math.max(a.innerText.indexOf(t.textContent),0),r=eo(a.innerText.slice(0,e+n)),l=a.innerText.slice(i+n),c=eo(to(r,2)),s=to(l,2);return{before:c,after:s}}function eo(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 Ya(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function Jc(t,e,i){const a=[];let n=0;for(;n<=t.length;){const r=e?t.indexOf(e,n):n;if(r===-1&&e)break;const l=e?r+e.length:r,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}),n=i?c+i.length:t.length+1}return a}function Xc(t,e,i,a){const r=Jc(t,i,a).filter(({match:c})=>Qn(c).includes(e));return r.length?r.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function Qc(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 $c(t,e,i=0){const a=e.innerHTML,n=[],r=ed(e);let l=a.indexOf(t);for(;l!==-1;)Wc(l,r)&&n.push(l),l=a.indexOf(t,l+t.length);return n[i]??-1}function ed(t){const e=[],i=t.innerHTML;let a=!1,n=!1,r=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!n&&!a&&s==="<"){a=!0,r&&(e.push({start:l,end:c}),r=!1);continue}if(a&&s==='"'&&(n=!n),a&&!n&&s===">"){a=!1;continue}!a&&!n&&!r&&(l=c,r=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function td(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`([${a}])${n}([${a}])`),l=e.match(r);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function io(t){return t.ctrlKey||t.metaKey||t.button!==0}const ve={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",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed"},fa={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function id(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function gt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Ja(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const $n=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function ad(t=[]){return t.map(e=>{var i;return((i=$n.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const er="playpilot_user_id";function nd(){if(!ao())return null;try{const t=localStorage.getItem(er);return t||(localStorage.setItem(er,Gl(16)),localStorage.getItem(er))}catch{return null}}function ao(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const rd="https://insights.playpilot.net";async function fe(t,e=null,i={}){var n,r,l,c,s;if(Ja())return;if(!gt("tracking")){sd(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:ad(e.genres),providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...i}),ao()&&(i.user_id=nd()),i.version="7.1.0",i.time_since_initialize=(r=window.PlayPilotLinkInjections)!=null&&r.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=xi(),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>wi?"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(rd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),ld({event:t,payload:i})}function ld(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function od({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function sd(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(gt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])fe(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function no(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?gt("pixels"):!1}async function ro(){if(!gt("ads"))return[];const t=ii();if(!t)throw new Error("No token was provided");try{return await Ut(`/ads/browse/?api-token=${t}`)}catch(e){throw fe(ve.AdsFetchFailed,null,{status:e.status}),e}}function ha(t){var e;return!gt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function dd(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}const pd=t=>t;function lo(t){const e=t-1;return e*e*e+1}function oo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function _i(t,{delay:e=0,duration:i=400,easing:a=pd}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:r=>`opacity: ${r*n}`}}function ga(t,{delay:e=0,duration:i=400,easing:a=lo,x:n=0,y:r=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,p=s*(1-l),[u,v]=oo(n),[h,m]=oo(r);return{delay:e,duration:i,easing:a,css:(b,g)=>`
|
|
6
|
-
transform: ${d} translate(${(1-
|
|
5
|
+
`)}function Zn(t){const e=Gn(),i=Kl(e,(t==null?void 0:t.exclude_elements_selector)||""),a=Kn(i);return{parentElement:e,elements:i,pageText:a}}function Zl(){const t=Gn();return{content_heading:Nc(t),content_modified_time:Rc(t),content_published_time:Bc(t)}}function Nc(t){const e=t.querySelector("h1")||document.querySelector("h1");return(e==null?void 0:e.innerText.trim())||null}function Rc(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=Yl().dateModified||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Yn(i):null}function Bc(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=Yl().datePublished||(e==null?void 0:e.getAttribute("content"))||(e==null?void 0:e.getAttribute("datetime"))||(e==null?void 0:e.innerText);return i?Yn(i):null}function Yn(t){try{return new Date(t).toISOString()}catch{return null}}function Yl(){const t=document.querySelector('[type="application/ld+json"]');if(!t)return{};try{return JSON.parse(t.textContent||"")}catch{return{}}}function xi(){const t=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+t}function Jn(t){return Object.entries(t).filter(([i,a])=>a!=null&&a!=="").map(([i,a])=>`${i}=${a}`).join("&")}function Fc(t){return!!(t.exclude_urls_pattern&&xi().match(new RegExp(t.exclude_urls_pattern)))}let Xn=null;async function Za(t,{url:e=xi(),hash:i=Oc(t||""),params:a={},method:n="GET"}={}){const r=ii(),l=Ga()?await Ul():!1,c=Ka();if(!r)throw new Error("No token was provided");const s=`/external-pages/?api-token=${r}&include_title_details=true${l?"&editorial_mode_enabled=true":""}&language=${c}`;let d;return n==="POST"?(a.run_ai&&(a.hash=i,a.page_text=t),a.url=e,a.metadata=Zl(),d=await Ut(s,{method:"POST",body:a})):d=await Ut(s+`&url=${e}`,{method:"GET"}),window.PlayPilotLinkInjections.last_successful_fetch=d,d}async function Jl(t,{requireCompletedResult:e=!1,runAiWhenRelevant:i=!1,pollInterval:a=3e3,maxTries:n=600,onpoll:r=()=>null}={}){let l=0;Xn&&clearTimeout(Xn);const c=async(s,d)=>{let p;try{try{p=await Za(t)}catch(u){throw(u==null?void 0:u.status)===404&&(p=await Za(t,{method:"POST"}),p.ai_enabled&&(p=await Za(t,{params:{run_ai:!0},method:"POST"}))),new Error}if(p&&i&&(p=await Vc(t,p)),e&&p.ai_enabled&&p.ai_running)throw new Error;p.manual_injections=Xl(p.manual_injections||[]),p.ai_injections=Xl(p.ai_injections||[]),s(p);return}catch{if(l++,l>=n){n>1&&console.error("Max poll limit exceeded. Please return later."),s();return}p&&r(p),Xn=setTimeout(()=>c(s),a)}};return new Promise(c)}async function Vc(t,e){if(!t||!e.ai_enabled||e.ai_running)return e;const i=Zl().content_modified_time,a=e.content_modified_time?Yn(e.content_modified_time):null,n=i&&a===i;return e.ai_last_run&&n||new Date(i||0)<=new Date(a||0)?e:await Za(t,{params:{run_ai:!0},method:"POST"})}function Xl(t){return t.map(e=>({...e,key:Hc(e.sid)}))}function Hc(t){return t+"-"+Gl()}function Uc(t,e,i){return t.filter(a=>i.every(n=>a[n]===e[n])).length}function Wc(t,e){return e.some(i=>t>=i.start&&t<i.end)}function Gc(t){const e=document.createElement("div");return e.textContent=t,e.innerHTML}function Qn(t){const e=document.createElement("div");return e.innerHTML=t,e.textContent||""}function Ql(t,e,i=[]){var r,l;const a=document.createTreeWalker(e);let n;for(;(n=a.nextNode())&&!((r=n.nodeValue)!=null&&r.includes(t)&&!i.includes(((l=n.parentNode)==null?void 0:l.nodeName)||"")););return n}function $l(t){const e=t.parentNode;return e?e.nodeName==="A"||!!e.closest("a"):!1}function Kc(t,e,i,a){const n=Gc(e),r=Qn(e),l=t.slice(0,a),c=t.slice(a),s=/[-/\\^$*+?.()|[\]{}]/g,d=new RegExp(`${r.replace(s,"\\$&")}|${n.replace(s,"\\$&")}`),p=c.replace(d,i);return l+p}function Zc(t,e,i,a){return t.substring(0,i)+e+t.substring(a)}function ai(t){return Qn(t).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function Yc(t,e,i){const a=t.nodeType===Node.TEXT_NODE&&t.parentNode?t.parentElement:t;if(!a||!t.textContent)return{before:"",after:""};const n=Math.max(a.innerText.indexOf(t.textContent),0),r=eo(a.innerText.slice(0,e+n)),l=a.innerText.slice(i+n),c=eo(to(r,2)),s=to(l,2);return{before:c,after:s}}function eo(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 Ya(t,e){let i=0,a=0;for(;(a=t.indexOf(e,a))!==-1;)i++,a+=e.length;return i}function Jc(t,e,i){const a=[];let n=0;for(;n<=t.length;){const r=e?t.indexOf(e,n):n;if(r===-1&&e)break;const l=e?r+e.length:r,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}),n=i?c+i.length:t.length+1}return a}function Xc(t,e,i,a){const r=Jc(t,i,a).filter(({match:c})=>Qn(c).includes(e));return r.length?r.reduce((c,s)=>!c||s.match.length<c.match.length?s:c):null}function Qc(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 $c(t,e,i=0){const a=e.innerHTML,n=[],r=ed(e);let l=a.indexOf(t);for(;l!==-1;)Wc(l,r)&&n.push(l),l=a.indexOf(t,l+t.length);return n[i]??-1}function ed(t){const e=[],i=t.innerHTML;let a=!1,n=!1,r=!1,l=0;for(let c=0;c<i.length;c++){const s=i[c];if(!n&&!a&&s==="<"){a=!0,r&&(e.push({start:l,end:c}),r=!1);continue}if(a&&s==='"'&&(n=!n),a&&!n&&s===">"){a=!1;continue}!a&&!n&&!r&&(l=c,r=!0)}return!e.length&&t.textContent.length&&e.push({start:l,end:t.innerHTML.length}),e}function td(t,e){const i=[" ",".",",","<",">"];try{const a=i.map(c=>"\\"+c).join(""),n=t.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`([${a}])${n}([${a}])`),l=e.match(r);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function io(t){return t.ctrlKey||t.metaKey||t.button!==0}const ve={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",ExplorePageView:"venus_page_view",ExploreTitleClick:"venus_title_click",ExploreShowMore:"venus_show_more",ExploreSetFilter:"venus_set_filter",ExploreSearch:"venus_search",ExploreFetchProvidersFailed:"venus_fetch_providers_failed"},fa={ProviderInterest:"ProviderInterest",ProviderClick:"ProviderClick",ParticipantInterest:"ParticipantInterest",ParticipantView:"ParticipantView",SearchQuery:"SearchQuery",GenreInterest:"GenreInterest"};function id(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=t)}function gt(t){var e;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((e=window.PlayPilotLinkInjections.consents)!=null&&e[t])}function Ja(){const t=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(t)}const $n=[{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];function ad(t=[]){return t.map(e=>{var i;return((i=$n.find(a=>a.slug===e))==null?void 0:i.name)||""}).filter(Boolean)}const er="playpilot_user_id";function nd(){if(!ao())return null;try{const t=localStorage.getItem(er);return t||(localStorage.setItem(er,Gl(16)),localStorage.getItem(er))}catch{return null}}function ao(){var t,e;return!!((e=(t=window.PlayPilotLinkInjections)==null?void 0:t.config)!=null&&e.allow_user_id_tracking)}const rd="https://insights.playpilot.net";async function fe(t,e=null,i={}){var n,r,l,c,s;if(Ja())return;if(!gt("tracking")){sd(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:ad(e.genres),providers:[...new Set(((n=e.providers)==null?void 0:n.map(d=>d.name))||[])],...i}),ao()&&(i.user_id=nd()),i.version="7.2.0",i.time_since_initialize=(r=window.PlayPilotLinkInjections)!=null&&r.time_at_initialize?Date.now()-window.PlayPilotLinkInjections.time_at_initialize:0,i.url=xi(),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>wi?"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(rd,{headers:a,method:"POST",body:JSON.stringify({event:t,payload:i,source:"ali",keepalive:!0})}),ld({event:t,payload:i})}function ld(t){var e;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(e=window.PlayPilotLinkInjections.tracked_events)==null||e.push(t)}function od({organizationSid:t=null,domainSid:e=null}){window.PlayPilotLinkInjections.organization_sid=t||null,window.PlayPilotLinkInjections.domain_sid=e||null}function sd(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(gt("tracking")){for(const{event:t,title:e,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])fe(t,e,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}function no(){var t;return(t=window.PlayPilotLinkInjections.config)!=null&&t.allow_retargeting_pixels?gt("pixels"):!1}async function ro(){if(!gt("ads"))return[];const t=ii();if(!t)throw new Error("No token was provided");try{return await Ut(`/ads/browse/?api-token=${t}`)}catch(e){throw fe(ve.AdsFetchFailed,null,{status:e.status}),e}}function ha(t){var e;return!gt("ads")||window.PlayPilotLinkInjections.no_affiliate?null:(((e=window.PlayPilotLinkInjections)==null?void 0:e.ads)||[]).find(i=>i.campaign_format===t)||null}function dd(t){return{sid:"",name:t.content.header||"",url:t.cta.url||"",logo_url:t.cta.image||"",highlighted:!0,cta_text:t.content.subheader,action_text:t.cta.header,slug:t.campaign_name,extra_info:{category:"SVOD"}}}const pd=t=>t;function lo(t){const e=t-1;return e*e*e+1}function oo(t){const e=typeof t=="string"&&t.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return e?[parseFloat(e[1]),e[2]||"px"]:[t,"px"]}function _i(t,{delay:e=0,duration:i=400,easing:a=pd}={}){const n=+getComputedStyle(t).opacity;return{delay:e,duration:i,easing:a,css:r=>`opacity: ${r*n}`}}function ga(t,{delay:e=0,duration:i=400,easing:a=lo,x:n=0,y:r=0,opacity:l=0}={}){const c=getComputedStyle(t),s=+c.opacity,d=c.transform==="none"?"":c.transform,p=s*(1-l),[u,v]=oo(n),[h,m]=oo(r);return{delay:e,duration:i,easing:a,css:(y,g)=>`
|
|
6
|
+
transform: ${d} translate(${(1-y)*u}${v}, ${(1-y)*h}${m});
|
|
7
7
|
opacity: ${s-p*g}`}}function ma(t,{delay:e=0,duration:i=400,easing:a=lo,start:n=0,opacity:r=0}={}){const l=getComputedStyle(t),c=+l.opacity,s=l.transform==="none"?"":l.transform,d=1-n,p=c*(1-r);return{delay:e,duration:i,easing:a,css:(u,v)=>`
|
|
8
8
|
transform: ${s} scale(${1-d*v});
|
|
9
9
|
opacity: ${c-p*v}
|
|
10
|
-
`}}var ud=ot('<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 so(t,e){const i=U(e,"size",3,16);var a=ud();F(()=>{le(a,"width",i()),le(a,"height",i())}),w(t,a)}var vd=ot("<title> </title>"),fd=ot('<svg width="16px" height="16px" 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 ni(t,e){const i=U(e,"direction",3,"right"),a=U(e,"title",3,"");var n=fd(),r=k(n);{var l=c=>{var s=vd(),d=k(s);F(()=>K(d,a())),w(c,s)};H(r,c=>{a()&&c(l)})}F(()=>be(n,0,i(),"svelte-1m6nwwy")),w(t,n)}function co(t,e){ae(e,!0);const i=U(e,"size",3,"32px"),a=U(e,"onclick",3,()=>null),n=Ec(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var r=me(),l=J(r);Pl(l,()=>e.href?"a":"button",!1,(c,s)=>{Ml(c,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...n,[Gi]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=me(),p=J(d);Ve(p,()=>e.children??Dt),w(s,d)}),w(t,r),ne()}var hd=T("<div></div>");function gd(t,e){ae(e,!0);let i=U(e,"threshold",3,100),a=U(e,"isDragging",15,!1),n=U(e,"passedThreshold",15,!1),r=U(e,"onpassed",3,()=>null),l=G(0),c=G(0),s=G(null),d=G(!1);const p=B(()=>Math.max(o(c)-o(l),0));Xe(()=>{n(o(p)>i())});function u(y){if(y){a(!0),q(d,!0),q(l,y.touches[0].pageY,!0);for(const _ of e.targets)_.style.transitionDuration="0ms"}}function v(y){if(y&&a()){y.preventDefault(),q(c,y.touches[0].pageY,!0),o(s).style.transform=`translateY(${o(p)}px)`;for(const _ of e.targets)_.style.top=`${o(p)}px`}}function h(){if(a()){if(a(!1),n())r()();else{o(s).removeAttribute("style");for(const y of e.targets)y.style.removeProperty("transition"),requestAnimationFrame(()=>y.style.top="0px")}q(l,0),q(c,0)}}var m={start:u,move:v,end:h},b=hd();Se("touchmove",De,v,void 0,!0),Se("touchend",De,h);let g;return b.__touchstart=u,st(b,y=>q(s,y),()=>o(s)),F(()=>g=be(b,1,"handle svelte-1xqgdsn",null,g,{dragging:a(),dragged:o(d)})),w(t,b),ne(m)}de(["touchstart"]);var md=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],yd=["difference","intersection","symmetricDifference","union"],po=!1;const un=class un extends Set{constructor(i){super();re(this,ta);re(this,ea,new Map);re(this,yt,G(0));re(this,pi,G(0));re(this,pn,Ft||-1);if(i){for(var a of i)super.add(a);E(this,pi).v=super.size}po||Ee(this,ta,Vo).call(this)}has(i){var a=super.has(i),n=E(this,ea),r=n.get(i);if(r===void 0){if(!a)return o(E(this,yt)),!1;r=Ee(this,ta,Fo).call(this,!0),n.set(i,r)}return o(r),a}add(i){return super.has(i)||(super.add(i),q(E(this,pi),super.size),Xt(E(this,yt))),this}delete(i){var a=super.delete(i),n=E(this,ea),r=n.get(i);return r!==void 0&&(n.delete(i),q(r,!1)),a&&(q(E(this,pi),super.size),Xt(E(this,yt))),a}clear(){if(super.size!==0){super.clear();var i=E(this,ea);for(var a of i.values())q(a,!1);i.clear(),q(E(this,pi),0),Xt(E(this,yt))}}keys(){return this.values()}values(){return o(E(this,yt)),super.values()}entries(){return o(E(this,yt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(E(this,pi))}};ea=new WeakMap,yt=new WeakMap,pi=new WeakMap,pn=new WeakMap,ta=new WeakSet,Fo=function(i){return Ft===E(this,pn)?G(i):Et(i)},Vo=function(){po=!0;var i=un.prototype,a=Set.prototype;for(const n of md)i[n]=function(...r){return o(E(this,yt)),a[n].apply(this,r)};for(const n of yd)i[n]=function(...r){o(E(this,yt));var l=a[n].apply(this,r);return new un(l)}};let Xa=un;class bd{constructor(e,i){re(this,Sa);re(this,Ea);ie(this,Sa,e),ie(this,Ea,Ur(i))}get current(){return E(this,Ea).call(this),E(this,Sa).call(this)}}Sa=new WeakMap,Ea=new WeakMap;const wd=/\(.+\)/,xd=new Set(["all","print","screen","and","or","not","only"]);class _d extends bd{constructor(e,i){let a=wd.test(e)||e.split(/[\s,]+/).some(r=>xd.has(r.trim()))?e:`(${e})`;const n=window.matchMedia(a);super(()=>n.matches,r=>lc(n,"change",r))}}function kd(t){const e=t-1;return e*e*e+1}const tr=new _d("(prefers-reduced-motion: reduce)");function ir(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(r){if(r.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];r.shiftKey&&l===s&&(d.focus(),r.preventDefault()),!r.shiftKey&&l===d&&(s.focus(),r.preventDefault())}const a=document.activeElement,[n]=e();return a!=null&&a.matches(":focus-visible")&&(n==null||n.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function Sd(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Ed=T("<div><!></div>"),Td=T('<div class="prepend svelte-14exe2s" data-view-transition-new="playpilot-title-extra"><!></div>'),Pd=T('<div class="bubble svelte-14exe2s" data-view-transition-new="playpilot-title-extra"><!></div>'),Cd=T('<div class="swipe-handle svelte-14exe2s"><!></div>'),zd=T("<div><!></div>"),jd=T('<div data-testid="modal"><!> <!> <!> <div class="dialog svelte-14exe2s" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!></div>');function ar(t,e){ae(e,!0);const i=O=>{var Z=Ed(),se=k(Z);co(se,{onclick:x,"aria-label":"Close",children:(ce,pe)=>{so(ce,{})},$$slots:{default:!0}}),st(Z,ce=>q(h,ce),()=>o(h)),F(()=>be(Z,1,`close ${r()??""}`,"svelte-14exe2s")),qe(7,Z,()=>_),w(O,Z)},a=U(e,"tall",3,!1),n=U(e,"wide",3,!1),r=U(e,"closeButtonStyle",3,"shadow"),l=U(e,"initialScrollPosition",3,0),c=U(e,"onscroll",3,()=>null),s=U(e,"onclose",3,()=>null),d="#playpilot";let p=G(0),u=G(null),v=G(null),h=G(null),m=G(0),b=G(!1);const g=B(()=>o(p)<wi);Xe(()=>{var O;o(p)&&q(m,((O=o(v))==null?void 0:O.offsetTop)||0,!0)}),Xe(()=>{setTimeout(()=>{var O;return q(m,((O=o(v))==null?void 0:O.offsetTop)||0,!0)})}),kn("scope","modal"),ht(()=>{const O=Sd();return O.classList.add("playpilot-modal-open"),q(b,!!zo()),o(b)||window.history.pushState({modal:!0},"",d),requestAnimationFrame(y),()=>{var Z;O.classList.remove("playpilot-modal-open"),!zo()&&((Z=history.state)!=null&&Z.modal)&&history.back()}});function y(){const O=window.innerWidth>wi?o(u):o(v);O==null||O.scrollTo(0,l())}function _(O){return tr.current?_i(O,{duration:0}):o(g)?ga(O,{duration:250,y:window.innerHeight,opacity:1}):ma(O,{duration:150,start:.85})}function x(){s()(),Co()}function S(O){O.target===o(u)&&x()}var L=jd();Se("keydown",De,({key:O})=>{O==="Escape"&&x()}),Se("hashchange",De,x);let I;L.__click=S;let j;var V=k(L);{var M=O=>{var Z=Td(),se=k(Z);Ve(se,()=>e.prepend),qe(7,Z,()=>_),w(O,Z)};H(V,O=>{e.prepend&&O(M)})}var z=C(V,2);{var D=O=>{var Z=Pd(),se=k(Z);Ve(se,()=>e.bubble),qe(7,Z,()=>_),w(O,Z)};H(z,O=>{e.bubble&&O(D)})}var A=C(z,2);{var P=O=>{var Z=Cd(),se=k(Z);{var ce=pe=>{{let ue=B(()=>[o(v),o(h)]);gd(pe,{get targets(){return o(ue)},onpassed:x})}};H(se,pe=>{o(v)&&o(h)&&pe(ce)})}qe(7,Z,()=>_),w(O,Z)};H(A,O=>{o(g)&&O(P)})}var N=C(A,2),R=k(N);{var X=O=>{var Z=zd(),se=k(Z);co(se,{onclick:()=>rf(),"aria-label":"Back",children:(ce,pe)=>{ni(ce,{direction:"left"})},$$slots:{default:!0}}),F(()=>be(Z,1,`close back ${r()??""}`,"svelte-14exe2s")),w(O,Z)};H(R,O=>{o(b)&&O(X)})}var W=C(R,2);Ve(W,()=>e.children);var Q=C(W,2);{var oe=O=>{i(O)};H(Q,O=>{o(g)||O(oe)})}st(N,O=>q(v,O),()=>o(v));var te=C(N,2);{var Y=O=>{i(O)};H(te,O=>{o(g)&&O(Y)})}st(L,O=>q(u,O),()=>o(u)),jt(L,O=>ir==null?void 0:ir(O)),F(()=>{I=be(L,1,"modal svelte-14exe2s",null,I,{wide:n(),tall:a(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),j=He(L,"",j,{"--dialog-offset":`${o(m)??""}px`})}),Hn("innerWidth",O=>q(p,O,!0)),Se("scroll",N,function(...O){var Z;(Z=c())==null||Z.apply(this,O)}),qe(7,N,()=>_),qe(5,L,()=>_i,()=>({duration:150})),qe(6,L,()=>_i,()=>({duration:150,delay:100})),w(t,L),ne()}de(["click"]);const Id={"Where To Stream Online":{[f.English]:"Where to stream online",[f.Swedish]:"Var kan man streama online",[f.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[f.English]:"We may earn a commission from purchases made through some of the links below.",[f.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[f.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[f.English]:"An error occurred",[f.Swedish]:"Ett fel inträffade",[f.Danish]:"Der opstod en fejl"},Loading:{[f.English]:"Loading",[f.Swedish]:"Laddar",[f.Danish]:"Indlæser"},"Title Unavailable":{[f.English]:"This title is not currently available to stream.",[f.Swedish]:"Den här titeln går inte att streama just nu.",[f.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[f.English]:"is not currently available to stream.",[f.Swedish]:"går inte att streama just nu.",[f.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[f.English]:"is available to stream on",[f.Swedish]:"finns att streama på",[f.Danish]:"kan streames på"},"Is Available To Stream":{[f.English]:"is available to stream.",[f.Swedish]:"finns att streama.",[f.Danish]:"kan streames."},"View Streaming Options":{[f.English]:"View streaming options",[f.Swedish]:"Se streamingalternativ",[f.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[f.English]:"and",[f.Swedish]:"och",[f.Danish]:"og"},Minutes:{[f.English]:"minutes",[f.Swedish]:"minuter",[f.Danish]:"minutter"},"Type: movie":{[f.English]:"Movie",[f.Swedish]:"Film",[f.Danish]:"Film"},"Type: series":{[f.English]:"Series",[f.Swedish]:"Serie",[f.Danish]:"Serie"},Stream:{[f.English]:"Stream",[f.Swedish]:"Streama",[f.Danish]:"Stream"},Buy:{[f.English]:"Buy",[f.Swedish]:"Köp",[f.Danish]:"Køb"},Rent:{[f.English]:"Rent",[f.Swedish]:"Hyr",[f.Danish]:"Lej"},"Rent Or Buy":{[f.English]:"Rent or Buy",[f.Swedish]:"Hyr/köp",[f.Danish]:"Lej eller køb"},Watch:{[f.English]:"Watch",[f.Swedish]:"Titta nu",[f.Danish]:"Se nu"},"Category: AVOD":{[f.English]:"Stream for free",[f.Swedish]:"Streama gratis",[f.Danish]:"Stream gratis"},"Category: SVOD":{[f.English]:"Streaming services",[f.Swedish]:"Streamingtjänster",[f.Danish]:"Streamingtjenester"},"Category: RENT":{[f.English]:"Rent it",[f.Swedish]:"Hyr den",[f.Danish]:"Lej den"},"Category: BUY":{[f.English]:"Buy it",[f.Swedish]:"Köp den",[f.Danish]:"Køb den"},"Category: Other":{[f.English]:"Other",[f.Swedish]:"Annat",[f.Danish]:"Andet"},Share:{[f.English]:"Share",[f.Swedish]:"Dela",[f.Danish]:"Del"},"Copy URL":{[f.English]:"Copy URL",[f.Swedish]:"Kopiera URL",[f.Danish]:"Kopiér URL"},Email:{[f.English]:"Email",[f.Swedish]:"E-post",[f.Danish]:"E-mail"},"Show More":{[f.English]:"Show more",[f.Swedish]:"Visa mer",[f.Danish]:"Vis mere"},Cast:{[f.English]:"Cast",[f.Swedish]:"Rollista",[f.Danish]:"Skuespillere"},"Similar Titles":{[f.English]:"Similar movies & shows",[f.Swedish]:"Liknande filmer och serier",[f.Danish]:"Lignende film og serier"},"Watch Trailer":{[f.English]:"Watch trailer",[f.Swedish]:"Se trailer",[f.Danish]:"Se trailer"},"Streaming Guide":{[f.English]:"Streaming Guide",[f.Swedish]:"Streaming Guide",[f.Danish]:"Streaming Guide"},"Streaming Guide Description":{[f.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[f.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[f.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":{[f.English]:"Search movies and shows",[f.Swedish]:"Sök filmer och serier",[f.Danish]:"Søg film og serier"},Services:{[f.English]:"Services",[f.Swedish]:"Tjänster",[f.Danish]:"Tjenester"},Genres:{[f.English]:"Genres",[f.Swedish]:"Genrer",[f.Danish]:"Genrer"},IMDb:{[f.English]:"IMDb",[f.Swedish]:"IMDb",[f.Danish]:"IMDb"},Year:{[f.English]:"Year",[f.Swedish]:"År",[f.Danish]:"År"},Runtime:{[f.English]:"Runtime",[f.Swedish]:"Speltid",[f.Danish]:"Spilletid"},Countries:{[f.English]:"Countries",[f.Swedish]:"Länder",[f.Danish]:"Lande"},"All Filters":{[f.English]:"All filters",[f.Swedish]:"Alla filter",[f.Danish]:"Alle filtre"},"Sort By":{[f.English]:"Sort by",[f.Swedish]:"Sortera efter",[f.Danish]:"Sortér efter"},Popularity:{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},New:{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"Top Rated":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},Search:{[f.English]:"Search",[f.Swedish]:"Sök",[f.Danish]:"Søg"},"Born On":{[f.English]:"Born on",[f.Swedish]:"Född den",[f.Danish]:"Født den"},"Died On":{[f.English]:"Died on",[f.Swedish]:"Död den",[f.Danish]:"Død den"},Credits:{[f.English]:"Credits",[f.Swedish]:"Medverkande",[f.Danish]:"Medvirkende"},All:{[f.English]:"All",[f.Swedish]:"Alla",[f.Danish]:"Alle"},Unscripted:{[f.English]:"Unscripted",[f.Swedish]:"Oscripterat",[f.Danish]:"Umanuskriptet"},Independent:{[f.English]:"Independent",[f.Swedish]:"Indie",[f.Danish]:"Indie"},"Game Show":{[f.English]:"Game Show",[f.Swedish]:"Gameshow",[f.Danish]:"Quizshow"},"Film Noir":{[f.English]:"Film Noir",[f.Swedish]:"Film noir",[f.Danish]:"Film noir"},Entertainment:{[f.English]:"Entertainment",[f.Swedish]:"Underhållning",[f.Danish]:"Underholdning"},News:{[f.English]:"News",[f.Swedish]:"Nyheter",[f.Danish]:"Nyheder"},Short:{[f.English]:"Short",[f.Swedish]:"Kortfilm",[f.Danish]:"Kortfilm"},Bollywood:{[f.English]:"Bollywood",[f.Swedish]:"Bollywood",[f.Danish]:"Bollywood"},Concert:{[f.English]:"Concert",[f.Swedish]:"Konsert",[f.Danish]:"Koncert"},Arthouse:{[f.English]:"Arthouse",[f.Swedish]:"Arthouse",[f.Danish]:"Arthouse"},"Alternate Version":{[f.English]:"Alternate Version",[f.Swedish]:"Alternativ version",[f.Danish]:"Alternativ version"},"Reality TV":{[f.English]:"Reality TV",[f.Swedish]:"Reality-TV",[f.Danish]:"Reality-TV"},Culture:{[f.English]:"Culture",[f.Swedish]:"Kultur",[f.Danish]:"Kultur"},Drama:{[f.English]:"Drama",[f.Swedish]:"Drama",[f.Danish]:"Drama"},Crime:{[f.English]:"Crime",[f.Swedish]:"Kriminal",[f.Danish]:"Krimi"},Western:{[f.English]:"Western",[f.Swedish]:"Western",[f.Danish]:"Western"},Thriller:{[f.English]:"Thriller",[f.Swedish]:"Thriller",[f.Danish]:"Thriller"},Animation:{[f.English]:"Animation",[f.Swedish]:"Animerat",[f.Danish]:"Animation"},Mystery:{[f.English]:"Mystery",[f.Swedish]:"Mysterium",[f.Danish]:"Mysterium"},Science:{[f.English]:"Science",[f.Swedish]:"Vetenskap",[f.Danish]:"Videnskab"},Nature:{[f.English]:"Nature",[f.Swedish]:"Natur",[f.Danish]:"Natur"},War:{[f.English]:"War",[f.Swedish]:"Krig",[f.Danish]:"Krig"},"Sci-Fi":{[f.English]:"Sci-Fi",[f.Swedish]:"Sci-fi",[f.Danish]:"Sci-fi"},Documentary:{[f.English]:"Documentary",[f.Swedish]:"Dokumentär",[f.Danish]:"Dokumentar"},"Stand-up":{[f.English]:"Stand-up",[f.Swedish]:"Standup",[f.Danish]:"Stand-up"},"Talk Show":{[f.English]:"Talk Show",[f.Swedish]:"Talkshow",[f.Danish]:"Talkshow"},Fantasy:{[f.English]:"Fantasy",[f.Swedish]:"Fantasy",[f.Danish]:"Fantasy"},History:{[f.English]:"History",[f.Swedish]:"Historia",[f.Danish]:"Historie"},Adventure:{[f.English]:"Adventure",[f.Swedish]:"Äventyr",[f.Danish]:"Eventyr"},Action:{[f.English]:"Action",[f.Swedish]:"Action",[f.Danish]:"Action"},Horror:{[f.English]:"Horror",[f.Swedish]:"Skräck",[f.Danish]:"Gyser"},Comedy:{[f.English]:"Comedy",[f.Swedish]:"Komedi",[f.Danish]:"Komedie"},Biography:{[f.English]:"Biography",[f.Swedish]:"Biografi",[f.Danish]:"Biografi"},Music:{[f.English]:"Music",[f.Swedish]:"Musik",[f.Danish]:"Musik"},Sport:{[f.English]:"Sport",[f.Swedish]:"Sport",[f.Danish]:"Sport"},Romance:{[f.English]:"Romance",[f.Swedish]:"Romantik",[f.Danish]:"Romantik"},Kids:{[f.English]:"Kids",[f.Swedish]:"Barn",[f.Danish]:"Børn"},Lifestyle:{[f.English]:"Lifestyle",[f.Swedish]:"Livsstil",[f.Danish]:"Livsstil"},Musical:{[f.English]:"Musical",[f.Swedish]:"Musikal",[f.Danish]:"Musical"},Anime:{[f.English]:"Anime",[f.Swedish]:"Anime",[f.Danish]:"Anime"},Family:{[f.English]:"Family",[f.Swedish]:"Familj",[f.Danish]:"Familie"}};function ee(t,e=Ka()){var i;return((i=Id[t])==null?void 0:i[e])||t}const Ad="1304688689641511";function Qa(t,e={}){const i=new Image;i.src=Ld(t,e||{})}function Ld(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([r,l])=>[`cd[${r}]`,l])),a={id:Ad,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(r=>r+"="+a[r]).join("&")}`}function uo(t,e={}){return()=>{Xe(()=>Qa(t,e))}}function Md(t,e={}){return i=>{const a=()=>Qa(t,e);Xe(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var Dd=T('<div class="genre svelte-1mphbln"> </div>'),qd=T('<button class="genre expand svelte-1mphbln"> </button>'),Od=T("<!> <!>",1);function Nd(t,e){ae(e,!0);let i=G(!1);const a=B(()=>o(i)?e.genres:[e.genres[0]]);var n=Od(),r=J(n);Ce(r,17,()=>o(a),Ae,(s,d)=>{const p=B(()=>{var m;return(m=$n.find(b=>b.slug===o(d)))==null?void 0:m.name});var u=me(),v=J(u);{var h=m=>{var b=Dd(),g=k(b);Ba(b,()=>no()?uo(fa.GenreInterest,{genre:o(p)}):null),F(y=>K(g,y),[()=>ee(o(p))]),w(m,b)};H(v,m=>{o(p)&&m(h)})}w(s,u)});var l=C(r,2);{var c=s=>{var d=qd();d.__click=()=>q(i,!0);var p=k(d);F(()=>K(p,`+${e.genres.length-1}`)),w(s,d)};H(l,s=>{!o(i)&&e.genres.length>1&&s(c)})}w(t,n),ne()}de(["click"]);function vo(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let n=a;const r=i.find(s=>s.name===n.name),l=r==null?void 0:r.extra_info.category,c=n.extra_info.category;(l==="RENT"&&c==="BUY"||l==="BUY"&&c==="RENT")&&(i=i.filter(s=>s.name!==n.name),n={...n,extra_info:{...n.extra_info,category:"TVOD"}}),i.push(n)}return i}function ze(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Rd=T('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),Bd=T('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function nr(t,e){const i=U(e,"small",3,!1);let a=G(!1);function n(p){p.preventDefault(),p.stopPropagation(),q(a,!o(a))}var r=Bd();r.__click=n;var l=k(r);let c;var s=C(l,2);{var d=p=>{var u=Rd(),v=k(u);F(()=>K(v,e.disclaimer)),qe(3,u,()=>_i,()=>({duration:50})),w(p,u)};H(s,p=>{o(a)&&p(d)})}F(()=>c=be(l,1,"disclaimer svelte-1ldthr7",null,c,{small:i()})),w(t,r)}de(["click"]);var Fd=T('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function rr(t,e){ae(e,!0);let i=G(Me(Math.random()));var a=me();Se("updateconsent",De,()=>q(i,Math.random(),!0));var n=J(a);Ui(n,()=>o(i),r=>{var l=me(),c=J(l);{var s=d=>{var p=me(),u=J(p);Ce(u,17,()=>e.pixels,Ae,(v,h)=>{var m=Fd();F(()=>le(m,"src",o(h))),w(v,m)}),w(d,p)};H(c,d=>{gt("pixels")&&d(s)})}w(r,l)}),w(t,a),ne()}function $a(t){return t?t.replace("/src/img",""):null}function fo(t,e=null){return t!=null&&t.length?`${Ac}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Vd=T('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Hd=T('<span class="cta svelte-13ka2ap"> </span>'),Ud=T('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function ho(t,e){ae(e,!0);const i=U(e,"disclaimer",3,""),a=U(e,"hideCategory",3,!1),n=U(e,"onclick",3,()=>null),r=B(()=>e.playlink.name),l=B(()=>e.playlink.url),c=B(()=>e.playlink.logo_url),s=B(()=>e.playlink.highlighted),d=B(()=>e.playlink.cta_text),p=B(()=>e.playlink.action_text),u=B(()=>e.playlink.pixels),v=B(()=>e.playlink.extra_info.category),h=B(()=>no()&&!o(s)),m={AVOD:ee("Stream"),SVOD:ee("Stream"),BUY:ee("Buy"),RENT:ee("Rent"),TVOD:ee("Rent Or Buy")};let b=G(0);var g=me(),y=J(g);Pl(y,()=>{var _,x;return!((x=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&x.require_affiliate_consent)||gt("affiliate")?"a":"span"},!1,(_,x)=>{Ba(_,()=>o(h)?uo(fa.ProviderInterest,{provider:e.playlink.slug}):null),Ba(_,()=>o(h)?Md(fa.ProviderClick,{provider:e.playlink.slug}):null),Ml(_,()=>({onclick:n(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(r),rel:"sponsored",[Wi]:{highlighted:o(s),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var S=Ud(),L=J(S);let I;var j=k(L),V=C(j,2),M=k(V),z=C(V,2);{var D=te=>{var Y=Vd(),O=k(Y);F(Z=>K(O,Z),[()=>m[o(v)]||ee("Stream")]),w(te,Y)};H(z,te=>{a()||te(D)})}var A=C(z,2);{var P=te=>{var Y=Hd(),O=k(Y);F(()=>K(O,o(d))),w(te,Y)};H(A,te=>{o(d)&&te(P)})}var N=C(A,2),R=k(N),X=C(N,2);{var W=te=>{nr(te,{get disclaimer(){return i()},small:!0})};H(X,te=>{i()&&te(W)})}var Q=C(L,2);{var oe=te=>{rr(te,{get pixels(){return o(u)}})};H(Q,te=>{var Y;(Y=o(u))!=null&&Y.length&&te(oe)})}F((te,Y)=>{I=He(L,"",I,{"--action-width":o(b)?`${o(b)}px`:null}),le(j,"src",te),K(M,o(r)),K(R,Y)},[()=>$a(o(c)),()=>o(p)||ee("Watch")]),ti(N,"clientWidth",te=>q(b,te)),w(x,S)}),w(t,g),ne()}var Wd=T('<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>'),Gd=T('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),Kd=T('<div class="heading category svelte-1fykz2q"> </div>'),Zd=T("<!> <!>",1),Yd=T("<!> <div></div>",1),Jd=T('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function Xd(t,e){var S,L;ae(e,!0);const i=_n("scope")==="modal",a=ha("card"),n=!!((L=(S=window.PlayPilotLinkInjections)==null?void 0:S.config)!=null&&L.categorize_playlinks);let r=G(0);const l=B(()=>vo(e.playlinks)),c=B(()=>u(e.playlinks)),s=B(()=>n?v(o(c)):[["",o(l)]]),d=B(()=>o(r)<500||!!a||o(l).length===1);function p(I){fe(i?ve.TitleModalPlaylinkClick:ve.TitlePopoverPlaylinkClick,e.title,{playlink:I})}function u(I){const j={};for(const V of I){const{category:M}=V.extra_info;M in j||(j[M]=[]),j[M].push(V)}return j}function v(I){const j=["AVOD","SVOD","RENT","BUY"],V=[];for(const z of j)I[z]&&V.push([z,I[z]]);const M=[];for(const z of Object.values(I))for(const D of z)j.includes(D.extra_info.category)||M.push(D);return[...V,["Other",M]]}var h=Jd(),m=J(h),b=k(m);jt(m,(I,j)=>ze==null?void 0:ze(I,j),()=>3);var g=C(m,2);{var y=I=>{var j=Wd(),V=k(j);F(M=>K(V,`${M??""} `),[()=>{var M,z;return((z=(M=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:M.config)==null?void 0:z.playlinks_disclaimer_text)||ee("Commission Disclaimer")}]),w(I,j)},_=I=>{var j=Gd(),V=k(j);F(M=>K(V,M),[()=>ee("Title Unavailable")]),w(I,j)};H(g,I=>{o(l).length?I(y):I(_,!1)})}var x=C(g,2);Ce(x,17,()=>o(s),Ae,(I,j,V,M)=>{var z=B(()=>Pa(o(j),2));let D=()=>o(z)[0],A=()=>o(z)[1];var P=Yd(),N=J(P);{var R=Q=>{var oe=Kd(),te=k(oe);jt(oe,(Y,O)=>ze==null?void 0:ze(Y,O),()=>4),F(Y=>K(te,Y),[()=>ee(`Category: ${D()}`)]),w(Q,oe)};H(N,Q=>{D()&&A().length&&Q(R)})}var X=C(N,2);let W;Ce(X,21,A,Ae,(Q,oe,te)=>{var Y=Zd(),O=J(Y);ho(O,{get playlink(){return o(oe)},onclick:()=>p(o(oe).name)});var Z=C(O,2);{var se=ce=>{{let pe=B(()=>dd(a)),ue=B(()=>a.disclaimer||"");ho(ce,{get playlink(){return o(pe)},onclick:()=>fe(ve.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(ue)}})}};H(Z,ce=>{a&&te===0&&ce(se)})}w(Q,Y)}),F(()=>{W=be(X,1,"playlinks svelte-1fykz2q",null,W,{list:o(d)}),le(X,"data-testid",`category-${D()??""}`)}),ti(X,"clientWidth",Q=>q(r,Q)),w(I,P)}),F(I=>K(b,I),[()=>ee("Where To Stream Online")]),w(t,h),ne()}var Qd=T('<button class="show-more svelte-7itcht">Show more</button>'),$d=T('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),ep=T('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function tp(t,e){ae(e,!0);const i=U(e,"blurb",3,""),a=U(e,"limit",3,200),n=U(e,"onclick",3,()=>null);let r=G(!1);const l=B(()=>e.text.slice(0,a()));function c(){q(r,!0),n()()}var s=ep(),d=k(s),p=k(d),u=C(p);{var v=y=>{var _=ei("...");w(y,_)};H(u,y=>{!o(r)&&e.text.length>a()&&y(v)})}var h=C(u,2);{var m=y=>{var _=Qd();_.__click=()=>c(),w(y,_)};H(h,y=>{!o(r)&&(e.text.length>a()||i())&&y(m)})}var b=C(d,2);{var g=y=>{var _=$d(),x=k(_);F(()=>K(x,i())),w(y,_)};H(b,y=>{o(r)&&y(g)})}F(()=>K(p,o(r)?e.text:o(l))),w(t,s),ne()}de(["click"]);var ip=ot('<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 lr(t,e){const i=U(e,"size",3,14);var a=ip();F(()=>{le(a,"width",i()),le(a,"height",i())}),w(t,a)}async function or(t=5e3){var i,a,n,r;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"),ap(s),s}catch(l){return fe(ve.RegionRequestFailed,null,{message:l.message}),((r=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.fallback_region)||""}}function ap(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function np(t,{page:e=1}={}){const i={language:Ka(),region:await or(),include_count:"false",participant_sid:t.sid,page:e};return(await Ut(`/titles/browse?api-token=${ii()}&${Jn(i)}`)).results}async function rp(t){return(await Ut(`/participants/browse?api-token=${ii()}&title_sid=${t.sid}`)).results}var lp=T('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function op(t,e){ae(e,!0);let i=U(e,"gap",3,"0"),a=U(e,"fill",3,!0),n=U(e,"transitionDuration",3,300),r=U(e,"threshold",3,30),l=U(e,"currentIndex",15,0),c=U(e,"shown",31,()=>Me([])),s=U(e,"sliderWidth",15,0),d=U(e,"currentScrollPosition",15,0),p=U(e,"maxWidth",15,0),u=U(e,"reachedEnd",15,!1),v=U(e,"distanceToEnd",15,0),h=U(e,"allowWheel",3,!1),m=U(e,"end",3,()=>null),b=U(e,"change",3,$=>null),g=U(e,"onend",19,m),y=U(e,"onchange",19,b),_=G(!1),x=G(!1),S=0,L=0,I=G(void 0),j=G(void 0),V=null,M=null;Xe(()=>{o(j)&&Q(),o(j)&&v(p()-d()-s())}),ht(O),Wa(()=>{V&&V.disconnect()});function z($){const we=o(j).children.length,je=Math.max(0,Math.min($,we-1));X({setIndex:je}),Q()}function D($){Z($.target)&&($.preventDefault(),S=oe($),q(_,!0))}function A(){if(o(_)){if(!o(x))X({setIndex:l()});else{const $=d()-L,we=$>0?1:-1;$!=0&&X({direction:we})}q(_,!1),q(x,!1)}}function P($){if(!o(_))return;q(x,Math.abs(d()-L)>r());const we=oe($);W(L+(S-we)),Q()}function N($){if(!h())return;const{deltaX:we,deltaY:je}=$;if(Math.abs(we)<Math.abs(je))return;$.preventDefault();const nt=d()+we*20*.02;W(nt),Q(),M&&clearTimeout(M),M=setTimeout(()=>{X({direction:we>0?1:-1})},100)}function R($){Z(document.activeElement)&&($.key=="ArrowLeft"&&z(l()-1),$.key=="ArrowRight"&&z(l()+1))}function X({setIndex:$=-1,direction:we=1}={}){const je=te(),ia=l();l(0);let nt;for(nt=0;nt<je.length;nt++)if($!=-1){if(nt>=$)break}else if(we>0&&je[nt]>d()||we<0&&je[nt+1]>d())break;l(Math.min(nt,Y().length-1)),W(je[l()],!0),L=d(),y()&&l()!=ia&&y()(l())}function W($,we=!1){d($);const je=p()-s();u(d()>=je),u()&&(g()&&g()(),a()&&we&&d(je))}function Q(){const $=te();Array.from($).forEach((we,je)=>{d()+s()<we||c().includes(je)||c([...c(),je])})}function oe($){var we,je;return $.pageX??((je=(we=$.touches)==null?void 0:we[0])==null?void 0:je.pageX)}function te(){return Y().map($=>$.offsetLeft)}function Y(){return Array.from(o(j).children).filter($=>$ instanceof HTMLElement).filter($=>$.src!="about:blank")}function O(){V=new ResizeObserver($=>{for(const we of $){const je=Array.isArray(we.contentBoxSize)?we.contentBoxSize[0]:we.contentBoxSize;p(je.inlineSize)}}),V.observe(o(j))}function Z($){return $===o(I)||($==null?void 0:$.closest(".slider"))===o(I)}var se={setIndex:z},ce=lp();Se("mousedown",De,D),Se("mouseup",De,A),Se("mousemove",De,P),Se("touchstart",De,D,void 0,!0),Se("touchend",De,A),Se("touchmove",De,P,void 0,!0),Se("keydown",De,R);var pe=J(ce);let ue;var Te=k(pe);let Ue;var Le=k(Te);Ve(Le,()=>e.children??Dt,()=>({sliderWidth:s(),shown:c(),currentIndex:l(),setIndex:z,currentScrollPosition:d(),maxWidth:p(),reachedEnd:u(),distanceToEnd:v()})),st(Te,$=>q(j,$),()=>o(j)),st(pe,$=>q(I,$),()=>o(I));var Kt=C(pe,2);return Ve(Kt,()=>e.controls??Dt,()=>({sliderWidth:s(),shown:c(),currentIndex:l(),setIndex:z,currentScrollPosition:d(),maxWidth:p(),reachedEnd:u(),distanceToEnd:v()})),F($=>{ue=be(pe,1,"slider svelte-1gs8ha8",null,ue,{dragging:o(_),"passed-threshold":o(x)}),Ue=He(Te,"",Ue,$)},[()=>({transform:`translateX(${d()*-1}px)`,"transition-duration":`${(o(_)?0:n())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),Se("wheel",pe,N),ti(pe,"clientWidth",s),w(t,ce),ne(se)}var sp=T('<div class="heading svelte-1ayf7b5"> </div>'),cp=T('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),dp=T('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),pp=T("<!> <!>",1),up=T('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function sr(t,e){const i=U(e,"heading",3,"");var a=up(),n=J(a);{var r=s=>{var d=sp(),p=k(d);jt(d,(u,v)=>ze==null?void 0:ze(u,v),()=>2),F(()=>K(p,i())),w(s,d)};H(n,s=>{i()&&s(r)})}var l=C(n,2),c=k(l);op(c,{allowWheel:!0,controls:(d,p)=>{let u=()=>p==null?void 0:p().setIndex,v=()=>p==null?void 0:p().currentIndex,h=()=>p==null?void 0:p().reachedEnd;var m=pp(),b=J(m);{var g=x=>{var S=cp();S.__click=()=>u()(v()-1);var L=k(S);ni(L,{direction:"left",title:"Previous"}),w(x,S)};H(b,x=>{v()>0&&x(g)})}var y=C(b,2);{var _=x=>{var S=dp();S.__click=()=>u()(v()+1);var L=k(S);ni(L,{title:"Next"}),w(x,S)};H(y,x=>{h()||x(_)})}w(d,m)},children:(d,p)=>{var u=me(),v=J(u);Ve(v,()=>e.children),w(d,u)},$$slots:{controls:!0,default:!0}}),w(t,a)}de(["click"]);var vp=T('<div class="character truncate svelte-zy7e3f"> </div>'),fp=T('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),hp=T('<div class="participant svelte-zy7e3f"></div>');function gp(t,e){ae(e,!0);function i(l){const c=ai(Kn(Kl(Gn()))),s={};for(const p of l){const u=Ya(c,ai(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){ri({event:l,type:"participant",data:c}),fe(ve.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:c.name})}var n=me(),r=J(n);Ra(r,()=>rp(e.title),l=>{{let c=B(()=>ee("Cast"));sr(l,{get heading(){return o(c)},children:(s,d)=>{var p=me(),u=J(p);Ce(u,16,()=>({length:5}),Ae,(v,h)=>{var m=hp();w(v,m)}),w(s,p)},$$slots:{default:!0}})}},(l,c)=>{var s=me(),d=J(s);{var p=u=>{{let v=B(()=>ee("Cast"));sr(u,{get heading(){return o(v)},children:(h,m)=>{var b=me(),g=J(b);Ce(g,17,()=>i(o(c)).slice(0,15),Ae,(y,_)=>{var x=fp();x.__click=V=>a(V,o(_));var S=k(x),L=k(S),I=C(S,2);{var j=V=>{var M=vp(),z=k(M);F(()=>K(z,o(_).character)),w(V,M)};H(I,V=>{o(_).character&&V(j)})}F(()=>K(L,o(_).name)),w(y,x)}),w(h,b)},$$slots:{default:!0}})}};H(d,u=>{var v;(v=o(c))!=null&&v.length&&u(p)})}w(l,s)}),w(t,n),ne()}de(["click"]);async function go(t={}){const e=ii();if(!e)throw new Error("No token was provided");return t={...t,language:Ka(),region:await or(),include_count:"false"},await Ut(`/titles/browse?api-token=${e}&`+Jn(t))}async function mp(t){return(await go({related_to_sid:t.sid})).results}var yp=T('<img class="svelte-p6g2a"/>');function en(t,e){ae(e,!0);const i=U(e,"width",3,96),a=U(e,"height",3,144),n=U(e,"lazy",3,!0),r=U(e,"onload",3,()=>null);var l=yp();F(c=>{le(l,"src",c),le(l,"alt",`Movie poster for '${e.title.title??""}'`),le(l,"width",i()),le(l,"height",a()),le(l,"loading",n()?"lazy":null)},[()=>$a(e.title.standing_poster)]),Se("error",l,({target:c})=>c.src=Lc),Se("load",l,function(...c){var s;(s=r())==null||s.apply(this,c)}),w(t,l),ne()}function cr(t){return`${jc}/${t.type}/${t.slug}/`}var bp=T('<div class="title svelte-12ph9f6" data-testid="title"><a class="poster svelte-12ph9f6"><!></a> <a class="heading svelte-12ph9f6"> </a></div>'),wp=T('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6"> </span> <span class="skeleton svelte-12ph9f6"> </span></div></div>'),xp=T('<div class="titles"><!></div>');function _p(t,e){ae(e,!0);const i=U(e,"heading",3,""),a=U(e,"onclick",3,()=>null),r=_n("scope")==="popover"?_n("title"):null;function l(d,p){ri({event:d,data:p,returnToTitle:r}),a()(p)}var c=xp(),s=k(c);sr(s,{get heading(){return i()},children:(d,p)=>{var u=me(),v=J(u);Ra(v,()=>e.titles,h=>{var m=me(),b=J(m);Ce(b,16,()=>({length:8}),Ae,(g,y)=>{var _=wp();w(g,_)}),w(h,m)},(h,m)=>{var b=me(),g=J(b);Ce(g,17,()=>o(m),Ae,(y,_)=>{var x=bp(),S=k(x);S.__click=V=>l(V,o(_));var L=k(S);en(L,{get title(){return o(_)},width:96,height:144});var I=C(S,2);I.__click=V=>l(V,o(_));var j=k(I);F((V,M)=>{le(S,"href",V),le(I,"href",M),K(j,o(_).title)},[()=>cr(o(_)),()=>cr(o(_))]),w(y,x)}),w(h,b)}),w(d,u)},$$slots:{default:!0}}),w(t,c),ne()}de(["click"]);function kp(t,e){ae(e,!0);const i=mp(e.title);{let a=B(()=>ee("Similar Titles"));_p(t,{get titles(){return i},get heading(){return o(a)},onclick:n=>fe(ve.SimilarTitleClick,n,{title_source:e.title.original_title||e.title.title})})}ne()}function Sp(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)}ks();var Ep=ot('<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 Tp(t){var e=Ep();w(t,e)}var Pp=ot('<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 Cp(t){var e=Pp();w(t,e)}var zp=ot('<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 jp(t){var e=zp();w(t,e)}var Ip=T("<button><!></button>");function Ki(t,e){const i=U(e,"variant",3,"filled"),a=U(e,"size",3,"base"),n=U(e,"label",3,null),r=U(e,"active",3,!1);var l=Ip();let c;l.__click=function(...d){var p;(p=e.onclick)==null||p.apply(this,d)};var s=k(l);Ve(s,()=>e.children??Dt),F(()=>{c=be(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",c,{active:r()}),le(l,"aria-label",n())}),w(t,l)}de(["click"]);var Ap=ot('<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 Lp(t){var e=Ap();w(t,e)}var Mp=T('<button class="svelte-827qd7"><!></button>'),Dp=T('<div class="content svelte-827qd7"><!></div>'),qp=T("<div><!> <!></div>");function Op(t,e){const i=U(e,"label",3,""),a=U(e,"align",3,"right");let n=G(!1),r=G(null);function l(h){var b;h.currentTarget===((b=o(r))==null?void 0:b.querySelector("button"))&&h.stopPropagation(),q(n,!o(n))}var c=qp();Se("click",De,()=>q(n,!1));var s=k(c);{var d=h=>{var m=me(),b=J(m);Ve(b,()=>e.button,()=>({toggle:l})),w(h,m)},p=h=>{var m=Mp();m.__click=l;var b=k(m);Lp(b),F(()=>{le(m,"aria-label",i()),le(m,"aria-expanded",o(n))}),w(h,m)};H(s,h=>{e.button?h(d):h(p,!1)})}var u=C(s,2);{var v=h=>{var m=Dp(),b=k(m);Ve(b,()=>e.children),qe(1,m,()=>ma,()=>({duration:50,start:.85})),w(h,m)};H(u,h=>{o(n)&&h(v)})}st(c,h=>q(r,h),()=>o(r)),F(()=>be(c,1,`context-menu ${a()??""}`,"svelte-827qd7")),w(t,c)}de(["click"]);var Np=T("<!> ",1),Rp=T('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Bp(t,e){ae(e,!0);let i=U(e,"url",7);const n=window.innerWidth<wi&&typeof navigator.share<"u";ht(()=>{i(i()+"?utm_source=tpi")});function r(s,d){if(!n){d(s);return}fe(ve.ShareTitle,null,{title:e.title,url:xi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){fe(ve.ShareTitle,null,{title:e.title,url:xi(),method:"copy"}),Sp(i())}function c(){fe(ve.ShareTitle,null,{title:e.title,url:xi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Op(t,{button:(d,p)=>{let u=()=>p==null?void 0:p().toggle;Ki(d,{onclick:v=>r(v,u()),children:(v,h)=>{var m=Np(),b=J(m);Tp(b);var g=C(b);F(y=>K(g,` ${y??""}`),[()=>ee("Share")]),w(v,m)},$$slots:{default:!0}})},children:(d,p)=>{var u=Rp(),v=J(u);v.__click=l;var h=k(v);Cp(h);var m=C(h),b=C(v,2);b.__click=c;var g=k(b);jp(g);var y=C(g);F((_,x)=>{K(m,` ${_??""}`),K(y,` ${x??""}`)},[()=>ee("Copy URL"),()=>ee("Email")]),w(d,u)},$$slots:{button:!0,default:!0}}),ne()}de(["click"]);var Fp=T('<iframe width="600" height="338" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-f0c4xl"></iframe>'),Vp=T('<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 Hp(t,e){const i=U(e,"embeddable_url",3,""),a=B(()=>n(i()));function n(v){const h=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,m=v.match(h);return(m==null?void 0:m[7])||null}var r=Vp(),l=k(r);{var c=v=>{var h=Fp();F(()=>le(h,"src",`https://www.youtube.com/embed/${o(a)??""}?autoplay=true`)),w(v,h)},s=v=>{var h=ei("Something went wrong");w(v,h)};H(l,v=>{o(a)?v(c):v(s,!1)})}var d=C(l,2);d.__click=function(...v){var h;(h=e.onclose)==null||h.apply(this,v)};var p=C(d,2);p.__click=function(...v){var h;(h=e.onclose)==null||h.apply(this,v)};var u=k(p);so(u,{size:24}),qe(3,r,()=>_i,()=>({duration:100})),w(t,r)}de(["click"]);let tn={};function Up(t){const e=fr(),i={onclose:Wp,embeddable_url:t.embeddable_url||""};tn=Vt(Hp,{target:e,props:i})}function Wp(){tn&&(Vi(tn,{outro:!0}),tn=null)}var Gp=ot('<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 Kp(t){var e=Gp();w(t,e)}var Zp=T("<!> ",1);function Yp(t,e){ae(e,!0);function i(){Up(e.title),fe(ve.TrailerClick,e.title)}Ki(t,{onclick:i,children:(a,n)=>{var r=Zp(),l=J(r);Kp(l);var c=C(l);F(s=>K(c,` ${s??""}`),[()=>ee("Watch Trailer")]),w(a,r)},$$slots:{default:!0}}),ne()}var Jp=T("<div> </div>"),Xp=T('<img alt=""/>'),Qp=T('<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 class="background svelte-16ajinh"><!></div>',1);function mo(t,e){var pe;ae(e,!0);const i=U(e,"small",3,!1),a=!!((pe=window.PlayPilotLinkInjections)!=null&&pe.no_affiliate);kn("title",e.title);const n=B(()=>(!i()||a)&&e.title.description);let r=G(!1),l=G(!1),c=G(!1);var s=Qp(),d=J(s);let p;var u=k(d),v=k(u);let h;var m=k(v);en(m,{get title(){return e.title},onload:()=>q(r,!0),lazy:!1});var b=C(v,2);let g;var y=k(b);jt(b,(ue,Te)=>ze==null?void 0:ze(ue,Te),()=>2);var _=C(b,2),x=k(_),S=k(x);lr(S,{});var L=C(S),I=C(x,2);Nd(I,{get genres(){return e.title.genres}});var j=C(I,2),V=k(j),M=C(j,2),z=k(M),D=C(M,2);{var A=ue=>{var Te=Jp(),Ue=k(Te);F(Le=>K(Ue,`${e.title.length??""} ${Le??""}`),[()=>ee("Minutes")]),w(ue,Te)};H(D,ue=>{!i()&&e.title.length&&ue(A)})}var P=C(_,2),N=k(P);{var R=ue=>{Yp(ue,{get title(){return e.title}})};H(N,ue=>{e.title.embeddable_url&&ue(R)})}var X=C(N,2);{let ue=B(()=>cr(e.title));Bp(X,{get title(){return e.title.title},get url(){return o(ue)}})}var W=C(u,2),Q=k(W);{var oe=ue=>{tp(ue,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>fe(ve.ExpandTitleDescription,e.title)})};H(Q,ue=>{o(n)&&ue(oe)})}var te=C(Q,2);{var Y=ue=>{Xd(ue,{get playlinks(){return e.title.providers},get title(){return e.title}})};H(te,ue=>{a||ue(Y)})}var O=C(te,2);gp(O,{get title(){return e.title}});var Z=C(O,2);kp(Z,{get title(){return e.title}});var se=C(d,2),ce=k(se);Ui(ce,()=>o(c),ue=>{var Te=Xp();let Ue;F(Le=>{le(Te,"src",Le),Ue=be(Te,1,"svelte-16ajinh",null,Ue,{loaded:o(l),blur:o(c)})},[()=>$a(o(c)?e.title.standing_poster:e.title.medium_poster)]),Se("load",Te,()=>q(l,!0)),Se("error",Te,()=>q(c,!0)),w(ue,Te)}),F(ue=>{p=be(d,1,"content svelte-16ajinh",null,p,{small:i()}),h=be(v,1,"poster svelte-16ajinh",null,h,{loaded:o(r)}),g=be(b,1,"heading svelte-16ajinh",null,g,{truncate:i()}),K(y,e.title.title),K(L,` ${e.title.imdb_score??""}`),K(V,e.title.year),K(z,ue)},[()=>ee(`Type: ${e.title.type}`)]),w(t,s),ne()}function Zi(t,e){const{onclick:i}=e;function a(n){return n.button!==1?null:(i(n),n)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const yo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},dr={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function $p({key:t}){var a,n,r;if(!gt("tracking"))return 0;const e=(n=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:n[t];if(e!==void 0)return e;(r=window.PlayPilotLinkInjections)!=null&&r.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function bo(t){const e=$p(t);return Math.floor(e*t.numberOfVariants)}function eu(t){var i;const e=bo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function tu(t,e=1){return gt("tracking")?bo(t)===e:!1}function iu(t){const e=eu(t);fe(ve.SplitTestView,null,{key:t.key,variant:e})}var au=T('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),nu=T('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),ru=T('<button class="button svelte-1mt6g1y"> </button>'),lu=T('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),ou=T('<div class="background svelte-1mt6g1y"></div>'),su=T("<!> <!>",1),cu=T('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function wo(t,e){ae(e,!0),fe(ve.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),iu(dr.TopScrollFormat);const i=B(()=>e.campaign.disclaimer),a=B(()=>e.campaign.content),n=B(()=>e.campaign.cta),r=B(()=>o(a).format),l=B(()=>o(a).header),c=B(()=>o(a).header_logo),s=B(()=>o(a).image_uuid),d=B(()=>o(n).header),p=B(()=>o(n).url),u=B(()=>o(r)==="large"),v=B(()=>fo(o(s),yo.TopScrollBackground)),h=B(()=>fo(o(s),yo.TopScrollContent));let m=G(0);function b(){fe(ve.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var g=cu();g.__click=b;let y,_;var x=k(g),S=k(x);{var L=M=>{var z=au();F(()=>{le(z,"src",o(h)),le(z,"alt",o(l))}),w(M,z)},I=M=>{var z=lu(),D=J(z);{var A=W=>{var Q=nu();F(()=>le(Q,"src",o(c))),w(W,Q)};H(D,W=>{o(c)&&W(A)})}var P=C(D,2),N=k(P),R=C(P,2);{var X=W=>{var Q=ru(),oe=k(Q);F(()=>K(oe,o(d))),w(W,Q)};H(R,W=>{o(d)&&W(X)})}F(()=>K(N,o(l))),w(M,z)};H(S,M=>{o(u)?M(L):M(I,!1)})}var j=C(x,2);{var V=M=>{var z=su(),D=J(z);{var A=R=>{var X=ou();let W;F(()=>W=He(X,"",W,{"--background":`url('${o(v)??""}')`})),w(R,X)};H(D,R=>{o(s)&&R(A)})}var P=C(D,2);{var N=R=>{nr(R,{get disclaimer(){return o(i)}})};H(P,R=>{o(i)&&R(N)})}w(M,z)};H(j,M=>{o(u)||M(V)})}jt(g,(M,z)=>Zi==null?void 0:Zi(M,z),()=>({onclick:b})),yi(()=>ti(g,"clientWidth",M=>q(m,M))),F(()=>{le(g,"href",o(p)),y=be(g,1,"top-scroll svelte-1mt6g1y",null,y,{simple:o(u)}),_=He(g,"",_,{"--width":`${o(m)??""}px`})}),w(t,g),ne()}de(["click"]);var du=T('<div class="content svelte-r7ubzi"><!></div>'),pu=T('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function uu(t,e){let i=G(!1);var a=pu();a.__touchstart=()=>q(i,!o(i));var n=k(a);Ve(n,()=>e.children);var r=C(n,2);{var l=c=>{var s=du(),d=k(s);Ve(d,()=>e.content),qe(1,s,()=>_i,()=>({duration:100})),w(c,s)};H(r,c=>{o(i)&&c(l)})}Se("mouseenter",a,()=>q(i,!0)),Se("mouseleave",a,()=>q(i,!1)),w(t,a)}de(["touchstart"]);var vu=T('<div class="info svelte-qcpiki"><!></div>'),fu=T('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),hu=T('<span class="name svelte-qcpiki"> </span>'),gu=T('<div class="subheader svelte-qcpiki"> </div>'),mu=T('<div class="action svelte-qcpiki"> </div>'),yu=T('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),bu=T('<img class="background svelte-qcpiki" alt=""/>'),wu=T('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),xu=T('<div class="disclaimer svelte-qcpiki"><!></div>'),_u=T('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function xo(t,e){ae(e,!0);const i=U(e,"compact",3,!1),a=B(()=>e.campaign.disclaimer),n=B(()=>e.campaign.content),r=B(()=>e.campaign.cta),l=B(()=>e.campaign.campaign_type),c=B(()=>o(n).header),s=B(()=>o(n).subheader),d=B(()=>o(n).header_logo),p=B(()=>o(n).image),u=B(()=>o(n).video),v=B(()=>o(r).header),h=B(()=>o(r).url),m=B(()=>o(r).subheader);let b=G(0);fe(ve.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function g(){fe(ve.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var y=_u();let _;y.__click=g;var x=k(y);{var S=A=>{var P=vu(),N=k(P);{var R=W=>{uu(W,{content:oe=>{var te=ei();F(()=>K(te,o(m))),w(oe,te)},children:(oe,te)=>{var Y=ei("Ad");w(oe,Y)},$$slots:{content:!0,default:!0}})},X=W=>{var Q=ei();F(()=>K(Q,o(m))),w(W,Q)};H(N,W=>{i()?W(R):W(X,!1)})}w(A,P)};H(x,A=>{o(m)&&A(S)})}var L=C(x,2);{var I=A=>{var P=yu(),N=k(P);{var R=Z=>{var se=fu();F(()=>le(se,"src",o(d))),w(Z,se)};H(N,Z=>{o(d)&&Z(R)})}var X=C(N,2),W=k(X);{var Q=Z=>{var se=hu(),ce=k(se);F(()=>K(ce,o(c))),w(Z,se)};H(W,Z=>{o(c)&&Z(Q)})}var oe=C(W,2);{var te=Z=>{var se=gu(),ce=k(se);F(()=>K(ce,o(s))),w(Z,se)};H(oe,Z=>{o(s)&&Z(te)})}var Y=C(X,2);{var O=Z=>{var se=mu(),ce=k(se);F(()=>K(ce,o(v))),w(Z,se)};H(Y,Z=>{o(v)&&Z(O)})}ti(P,"clientHeight",Z=>q(b,Z)),w(A,P)};H(L,A=>{(o(d)||o(c)||o(s)||o(v))&&A(I)})}var j=C(L,2);{var V=A=>{var P=bu();F(()=>le(P,"src",o(p))),w(A,P)},M=A=>{var P=me(),N=J(P);{var R=X=>{var W=wu();W.muted=!0;var Q=k(W);F(()=>le(Q,"src",o(u))),w(X,W)};H(N,X=>{o(l)==="video"&&o(u)&&X(R)},!0)}w(A,P)};H(j,A=>{o(l)==="image"&&o(p)?A(V):A(M,!1)})}var z=C(j,2);{var D=A=>{var P=xu();let N;var R=k(P);nr(R,{get disclaimer(){return o(a)}}),F(()=>N=He(P,"",N,{"--offset":`${o(b)??""}px`})),w(A,P)};H(z,A=>{o(a)&&A(D)})}jt(y,(A,P)=>Zi==null?void 0:Zi(A,P),()=>({onclick:g})),F(()=>{le(y,"href",o(h)),_=be(y,1,"display svelte-qcpiki",null,_,{compact:i()})}),w(t,y),ne()}de(["click"]);var ku=T('<button class="call-to-action svelte-1677ll3"><div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></button>');function Su(t,e){ae(e,!1),Un();var i=ku();i.__click=()=>ri({type:"explore"});var a=C(k(i),2),n=k(a);ni(n,{}),w(t,i),ne()}de(["click"]);function Eu(t,e){var p,u;ae(e,!0);const i=v=>{var h=me(),m=J(h);{var b=y=>{wo(y,{get campaign(){return r}})},g=y=>{Su(y,{})};H(m,y=>{r?y(b):y(g,!1)})}w(v,h)},a=v=>{var h=me(),m=J(h);{var b=g=>{xo(g,{get campaign(){return l}})};H(m,g=>{l&&g(b)})}w(v,h)},n=U(e,"initialScrollPosition",3,0),r=ha("top_scroll"),l=ha("card"),c=(u=(p=window.PlayPilotLinkInjections)==null?void 0:p.config)==null?void 0:u.explore_insert_cta_in_tpi;let s=!1;fe(ve.TitleModalView,e.title),ht(()=>{const v=Date.now();return()=>fe(ve.TitleModalClose,e.title,{time_spent:Date.now()-v})});function d(){s||(fe(ve.TitleModalScroll,e.title),s=!0)}{let v=B(()=>r||c?i:null),h=B(()=>l?a:null);ar(t,{onscroll:d,get initialScrollPosition(){return n()},get bubble(){return o(v)},get prepend(){return o(h)},tall:!0,children:(m,b)=>{mo(m,{get title(){return e.title}})},$$slots:{default:!0}})}ne()}var Tu=T('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Pu(t,e){ae(e,!0);const i=U(e,"size",3,30),a=U(e,"onclick",3,()=>null),n=B(()=>e.playlink.name),r=B(()=>e.playlink.url),l=B(()=>e.playlink.logo_url),c=B(()=>e.playlink.pixels);var s=Tu();s.__click=function(...h){var m;(m=a())==null||m.apply(this,h)};let d;var p=k(s),u=C(p,2);{var v=h=>{rr(h,{get pixels(){return o(c)}})};H(u,h=>{var m;(m=o(c))!=null&&m.length&&h(v)})}F(h=>{le(s,"href",o(r)),le(s,"data-playlink",o(n)),d=He(s,"",d,{"--size":`${i()??""}px`}),le(p,"src",h),le(p,"alt",o(n)),le(p,"height",i()),le(p,"width",i())},[()=>$a(o(l))]),w(t,s),ne()}de(["click"]);var Cu=T('<span class="more svelte-1plv45z"> </span>'),zu=T('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),ju=T('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function _o(t,e){ae(e,!0);const i=U(e,"size",3,30),a=B(()=>vo(e.playlinks).slice(0,3));function n(u){u.stopPropagation()}var r=ju(),l=k(r);Ce(l,17,()=>o(a),Ae,(u,v)=>{Pu(u,{get playlink(){return o(v)},onclick:n,get size(){return i()}})});var c=C(l,2);{var s=u=>{var v=Cu(),h=k(v);F(()=>K(h,`+${e.playlinks.length-o(a).length}`)),w(u,v)};H(c,u=>{e.playlinks.length>o(a).length&&u(s)})}var d=C(c,2);{var p=u=>{var v=zu();w(u,v)};H(d,u=>{e.playlinks.length||u(p)})}w(t,r),ne()}var Iu=T('<div class="svelte-pkkpyl"> </div>'),Au=T('<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 ko(t,e){var D;ae(e,!0);const i=U(e,"onclick",3,()=>null),a=!!((D=window.PlayPilotLinkInjections)!=null&&D.no_affiliate);var n=Au();n.__click=function(...A){var P;(P=i())==null||P.apply(this,A)};var r=k(n),l=k(r);en(l,{get title(){return e.title},width:30,height:43,lazy:!0});var c=C(r,2),s=k(c),d=k(s),p=C(s,2),u=k(p),v=k(u);lr(v,{size:11});var h=C(v),m=C(u,2),b=k(m),g=C(m,2),y=k(g),_=C(g,2);{var x=A=>{var P=Iu(),N=k(P);F(()=>K(N,`${e.title.length??""} min`)),w(A,P)};H(_,A=>{e.title.length&&A(x)})}var S=C(p,2);let L;var I=k(S),j=C(S,2);{var V=A=>{_o(A,{get playlinks(){return e.title.providers}})};H(j,A=>{a||A(V)})}var M=C(c,2),z=k(M);ni(z,{}),F(A=>{K(d,e.title.title),K(h,` ${e.title.imdb_score||"-"}`),K(b,e.title.year),K(y,A),L=be(S,1,"description svelte-pkkpyl",null,L,{large:a}),K(I,e.title.description)},[()=>ee(`Type: ${e.title.type}`)]),w(t,n),ne()}de(["click"]);var Lu=T(" <strong> </strong>",1),Mu=T('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),Du=T('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),qu=T('<button class="more svelte-ke01cs"> </button>'),Ou=T('<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 Nu(t,e){ae(e,!0);const i=B(()=>e.participant.name),a=B(()=>e.participant.birth_date),n=B(()=>e.participant.death_date),r=30;let l=G(Me([])),c=G(1),s=G(!0),d=G(!0);ht(u),gt("pixels")&&Qa(fa.ParticipantView,{participant:e.participant.name});function p(z){return new Date(z).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function u(){q(d,!0);try{const z=await np(e.participant,{page:o(c)});q(l,[...o(l),...z],!0),q(s,(z==null?void 0:z.length)>=r)}catch{q(s,!1)}finally{q(d,!1),q(c,o(c)+1)}}var v=Ou(),h=J(v),m=k(h),b=k(m);jt(m,(z,D)=>ze==null?void 0:ze(z,D),()=>2);var g=C(m,2);{var y=z=>{var D=Mu(),A=k(D),P=C(A),N=k(P),R=C(P);{var X=W=>{var Q=Lu(),oe=J(Q),te=C(oe),Y=k(te);F((O,Z)=>{K(oe,`, ${O??""} `),K(Y,Z)},[()=>ee("Died On"),()=>p(o(n))]),w(W,Q)};H(R,W=>{o(n)&&W(X)})}F((W,Q)=>{K(A,`${W??""} `),K(N,Q)},[()=>ee("Born On"),()=>p(o(a))]),w(z,D)};H(g,z=>{o(a)&&z(y)})}var _=C(h,2),x=k(_),S=k(x);jt(x,(z,D)=>ze==null?void 0:ze(z,D),()=>3);var L=C(x,2),I=k(L);Ce(I,17,()=>o(l),Ae,(z,D)=>{ko(z,{get title(){return o(D)},onclick:A=>ri({event:A,data:o(D)})})});var j=C(I,2);{var V=z=>{var D=me(),A=J(D);Ce(A,16,()=>({length:6}),Ae,(P,N)=>{var R=Du();w(P,R)}),w(z,D)},M=z=>{var D=me(),A=J(D);{var P=N=>{var R=qu();R.__click=u;var X=k(R);F(W=>K(X,W),[()=>ee("Show More")]),w(N,R)};H(A,N=>{o(s)&&N(P)},!0)}w(z,D)};H(j,z=>{o(d)?z(V):z(M,!1)})}F(z=>{K(b,o(i)),K(S,z)},[()=>ee("Credits")]),w(t,v),ne()}de(["click"]);function Ru(t,e){ae(e,!0);const i=U(e,"initialScrollPosition",3,0);let a=G(0);fe(ve.ParticipantModalView,null,{participant:e.participant.name}),ht(()=>{const n=Date.now();return()=>fe(ve.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-n})}),ar(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(n,r)=>{Nu(n,{get participant(){return e.participant}})},$$slots:{default:!0}}),Hn("innerWidth",n=>q(a,n,!0)),ne()}const So="[data-playpilot-explore]",Bu="[data-playpilot-pre-consent-explore]";let an=null;function Fu(){var e;const t=document.querySelector(So);t&&(Vu(),(e=document.querySelector(Bu))==null||e.remove(),t.innerHTML="",an=Vt(To,{target:t}))}function Vu(){an&&(Vi(an),an=null)}function Hu(){var s;if(!window.PlayPilotLinkInjections.config)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:n}=window.PlayPilotLinkInjections.config;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const r=document.querySelector(e);if(!r)return!1;const l=r.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",r.insertAdjacentElement(n||"afterend",l),!0}var Uu=T("<div>Series</div>"),Wu=T("<div> </div>"),Gu=T('<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 Ku(t,e){ae(e,!0);const i=U(e,"onclick",3,()=>null);var a=Gu();a.__click=function(..._){var x;(x=i())==null||x.apply(this,_)};var n=k(a),r=k(n);en(r,{get title(){return e.title},width:120,height:213,lazy:!0});var l=C(r,2),c=k(l),s=k(c);lr(s,{size:12});var d=C(s),p=C(c,2);{var u=_=>{var x=Uu();w(_,x)};H(p,_=>{e.title.type==="series"&&_(u)})}var v=C(p,2);{var h=_=>{var x=Wu(),S=k(x);F(()=>K(S,`${e.title.length??""} min`)),w(_,x)};H(v,_=>{e.title.length&&_(h)})}var m=C(n,2),b=k(m),g=k(b),y=C(b,2);_o(y,{get playlinks(){return e.title.providers},size:20}),F(()=>{K(d,` ${e.title.imdb_score||"-"}`),K(g,e.title.title)}),w(t,a),ne()}de(["click"]);var Zu=T('<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 Yu(t){var e=Zu(),i=C(k(e),2),a=k(i);He(a,"",{},{width:"60%"}),w(t,e)}var Ju=T('<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 Xu(t){var e=Ju(),i=C(k(e),2),a=k(i);He(a,"",{},{width:"40%"});var n=C(a,2);He(n,"",{},{width:"60%"});var r=C(n,2);He(r,"",{},{width:"80%"}),w(t,e)}const Qu=[{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 $u(){const t=ii();if(!t)throw new Error("No token was provided");const e={region:await or(),page:1,include_count:"false"};return await Ut(`/providers/?api-token=${t}&`+Jn(e))}function ev(t,{from:e,to:i},a={}){var{delay:n=0,duration:r=I=>Math.sqrt(I)*120,easing:l=kd}=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=tv(t),v=t.clientWidth/i.width/u,h=t.clientHeight/i.height/u,m=e.left+e.width*d,b=e.top+e.height*p,g=i.left+i.width*d,y=i.top+i.height*p,_=(m-g)*v,x=(b-y)*h,S=e.width/i.width,L=e.height/i.height;return{delay:n,duration:typeof r=="function"?r(Math.sqrt(_*_+x*x)):r,easing:l,css:(I,j)=>{var V=j*_,M=j*x,z=I+j*S,D=I+j*L;return`transform: ${s} translate(${V}px, ${M}px) scale(${z}, ${D});`}}}function tv(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 iv=T('<div class="icon svelte-dfwzqz"> </div>'),av=T('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),nv=T('<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 rv(t,e){ae(e,!0);let i=U(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=U(e,"selected",23,()=>[]),n=U(e,"placeholder",19,()=>`${ee("Search")}...`),r=U(e,"onchange",3,()=>null),l=G("");const c=B(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(g=>g===m);a(b?a().filter(g=>g!==m):[...a(),m]),r()(a())}var p=nv(),u=J(p),v=k(u),h=C(u,2);Ce(h,29,()=>o(c)||[],({label:m,value:b})=>b,(m,b)=>{let g=()=>o(b).label,y=()=>o(b).value;const _=B(()=>!!a().find(M=>M===y()));var x=av(),S=k(x);let L;S.__click=()=>d(y());var I=k(S),j=C(I),V=k(j);Ui(V,()=>o(_),M=>{var z=iv(),D=k(z);F(()=>K(D,o(_)?"-":"+")),qe(3,z,()=>ma,()=>({start:.25,duration:100})),w(M,z)}),F(()=>{L=be(S,1,"option svelte-dfwzqz",null,L,{active:o(_)}),K(I,`${g()??""} `)}),xc(x,()=>ev,()=>({duration:150})),w(m,x)}),F(()=>le(v,"placeholder",n())),Ha(v,()=>o(l),m=>q(l,m)),w(t,p),ne()}de(["click"]);var lv=T('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),ov=T("<div><!> <!></div>");function Eo(t,e){ae(e,!0);let i=G(!1),a=G(null),n=G(null),r=G("left"),l=G(0),c=G(0);function s(b){const g=b.target;g&&g.closest(".dropdown")!==o(a)&&q(i,!1)}function d(b){q(i,!o(i)),o(i)&&(q(c,0),q(l,0),p(b.target))}async function p(b){if(await ua(),!o(n))return;const g=16,y=200,_=window.innerHeight,x=window.innerWidth,{top:S}=o(n).getBoundingClientRect(),{left:L}=b.getBoundingClientRect();q(r,L<window.innerWidth/2?"left":"right",!0),q(l,Math.max(Math.min(window.innerHeight-S-g,_*.6),y),!0),await ua();const{left:I,right:j}=o(n).getBoundingClientRect(),V=x-j;I-g<0?q(c,V):V-g<0&&q(c,V-g)}var u=ov();Se("click",De,s);var v=k(u);Ve(v,()=>e.button,()=>({toggle:d}));var h=C(v,2);{var m=b=>{var g=lv();let y;var _=k(g);Ve(_,()=>e.content),st(g,x=>q(n,x),()=>o(n)),F(()=>y=He(g,"",y,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(c)?`${o(c)}px`:null})),qe(3,g,()=>ma,()=>({start:.85,duration:100})),w(b,g)};H(h,b=>{o(i)&&b(m)})}st(u,b=>q(a,b),()=>o(a)),F(()=>be(u,1,`dropdown ${o(r)??""}`,"svelte-fg0dzp")),w(t,u),ne()}var sv=T('<span class="label svelte-1mfj6k7"> </span>'),cv=T('<div class="active-line svelte-1mfj6k7"></div>'),dv=T('<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 pv(t,e){ae(e,!0);const i=U(e,"range",19,()=>[0,100]),a=U(e,"value",19,i),n=U(e,"label",3,""),r=U(e,"valueAppend",3,""),l=U(e,"formatFunction",3,W=>W.toString()),c=U(e,"onchange",3,()=>null);let s=i(),d=B(()=>Pa(s,2)),p=G(Me(o(d)[0])),u=G(Me(o(d)[1]));const v=B(()=>o(p)!==i()[0]||o(u)!==i()[1]),h=B(()=>100/(i()[1]-i()[0])*(o(p)-i()[0])),m=B(()=>100+100/(i()[1]-i()[0])*(o(u)-i()[1])-o(h)),b=B(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(p)-o(u))<5);Xe(()=>{g(a())}),Xe(()=>{q(u,Math.max(o(u),o(p)+1),!0),q(u,Math.min(o(u),i()[1]),!0),q(p,Math.min(o(p),o(u)-1),!0),q(p,Math.max(o(p),i()[0]),!0)});function g(W){(Q=>{var oe=Pa(Q,2);q(p,oe[0],!0),q(u,oe[1],!0)})(W)}function y(){requestAnimationFrame(()=>c()([o(p),o(u)]))}var _=dv(),x=k(_);{var S=W=>{var Q=sv(),oe=k(Q);F((te,Y)=>K(oe,`${n()??""}: ${te??""}—${Y??""} ${r()??""}`),[()=>l()(o(p)),()=>l()(o(u))]),w(W,Q)};H(x,W=>{n()&&W(S)})}var L=C(x,2);let I;var j=k(L);j.__mouseup=y,j.__touchend=y,j.__input=function(...W){};let V;var M=C(j,2);M.__mouseup=y,M.__touchend=y,M.__input=function(...W){};let z;var D=C(M,2),A=k(D),P=C(D,2),N=k(P),R=C(P,2);{var X=W=>{var Q=cv();let oe;F(()=>oe=He(Q,"",oe,{left:o(h)+"%","--width":o(m)+"%"})),w(W,Q)};H(R,W=>{o(v)&&W(X)})}F(()=>{I=be(L,1,"range svelte-1mfj6k7",null,I,{halved:o(b)}),le(j,"min",i()[0]),le(j,"max",i()[1]),V=be(j,1,"svelte-1mfj6k7",null,V,{active:o(v)}),le(M,"min",i()[0]),le(M,"max",i()[1]),z=be(M,1,"svelte-1mfj6k7",null,z,{active:o(v)}),K(A,o(p)),K(N,o(u))}),Ha(j,()=>o(p),W=>q(p,W)),Ha(M,()=>o(u),W=>q(u,W)),w(t,_),ne()}de(["mouseup","touchend","input"]);var uv=T(" <!>",1),vv=T('<p class="loading"> </p>'),fv=T('<p class="error"> </p>'),hv=T('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),gv=T('<div data-testid="filter-item"><!></div>');function mv(t,e){ae(e,!0);let i=U(e,"filter",7),a=U(e,"onchange",3,()=>null),n=U(e,"data",7,null),r=U(e,"fetchData",3,null),l=U(e,"range",3,null),c=U(e,"valueAppend",3,"");const s=B(()=>{if(!i()[e.param])return!1;const{type:b,value:g}=i()[e.param];return!(b==="array"&&!g.length||b==="range"&&JSON.stringify(g)===JSON.stringify(l()))});let d=G(!!r());Xe(()=>{!n()&&r()&&p()});async function p(){try{q(d,!0),n(await r()())}catch{fe(ve.ExploreFetchProvidersFailed)}finally{q(d,!1)}}function u(b,g){if(fe(ve.ExploreSetFilter,null,{key:e.param,value:b,total_filter:i()}),!b){delete i()[e.param];return}i()[e.param]={type:g,value:b},a()()}var v=gv();let h;var m=k(v);Eo(m,{button:(y,_)=>{let x=()=>_==null?void 0:_().toggle;Ki(y,{variant:"border",size:"large",get active(){return o(s)},get onclick(){return x()},children:(S,L)=>{var I=uv(),j=J(I),V=C(j);ni(V,{direction:"down"}),F(()=>K(j,`${e.label??""} `)),w(S,I)},$$slots:{default:!0}})},content:y=>{var _=hv(),x=k(_);{var S=M=>{var z=vv(),D=k(z);F(A=>K(D,`${A??""}...`),[()=>ee("Loading")]),w(M,z)},L=M=>{var z=me(),D=J(z);{var A=P=>{var N=fv(),R=k(N);F(X=>K(R,X),[()=>ee("An Error Occurred")]),w(P,N)};H(D,P=>{r()&&!n()&&P(A)},!0)}w(M,z)};H(x,M=>{o(d)?M(S):M(L,!1)})}var I=C(x,2);{var j=M=>{const z=B(()=>{var D;return(D=i()[e.param])==null?void 0:D.value});rv(M,{get options(){return n()},get selected(){return o(z)},onchange:D=>u(D,"array")})},V=M=>{var z=me(),D=J(z);{var A=P=>{const N=B(()=>{var R;return(R=i()[e.param])==null?void 0:R.value});pv(P,{get range(){return l()},get value(){return o(N)},get label(){return e.label},get valueAppend(){return c()},onchange:R=>u(R,"range")})};H(D,P=>{l()&&P(A)},!0)}w(M,z)};H(I,M=>{n()?M(j):M(V,!1)})}w(y,_)},$$slots:{button:!0,content:!0}}),F(()=>h=be(v,1,"filter-item svelte-er0ukh",null,h,{active:o(s)})),w(t,v),ne()}var yv=T(" <!>",1),bv=T("<button> </button>"),wv=T('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function xv(t,e){ae(e,!0);const i=U(e,"filter",7),a=U(e,"onchange",3,()=>null),n="ordering",r=[{label:"Popularity",value:"-popularity"},{label:"New",value:"-new"},{label:"Top Rated",value:"-best"}],l=B(()=>{var s;return((s=r.find(({value:d})=>{var p;return d===((p=i()[n])==null?void 0:p.value)}))==null?void 0:s.label)||"Sort By"});function c(s){s?i()[n]={type:"string",value:s}:delete i()[n],a()()}Eo(t,{button:(p,u)=>{let v=()=>u==null?void 0:u().toggle;Ki(p,{variant:"link",get onclick(){return v()},children:(h,m)=>{var b=yv(),g=J(b),y=C(g);ni(y,{direction:"down"}),F(_=>K(g,`${_??""} `),[()=>ee(o(l))]),w(h,b)},$$slots:{default:!0}})},content:p=>{var u=wv();Ce(u,21,()=>r,Ae,(v,h,m,b)=>{let g=()=>o(h).label,y=()=>o(h).value;const _=B(()=>{var I;return y()===((I=i()[n])==null?void 0:I.value)});var x=bv();let S;x.__click=()=>c(y());var L=k(x);F(I=>{S=be(x,1,"option svelte-1ibt2k4",null,S,{active:o(_)}),K(L,I)},[()=>ee(g())]),w(v,x)}),w(p,u)},$$slots:{button:!0,content:!0}}),ne()}de(["click"]);var _v=ot('<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 kv(t){var e=_v();w(t,e)}var Sv=T("<div><!></div>"),Ev=T("<!> <!>",1),Tv=T('<div class="sorting"><!></div>'),Pv=T('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function Cv(t,e){ae(e,!0);const i=U(e,"onchange",3,()=>null),a=U(e,"limit",3,!0),n=U(e,"showSorting",3,!0),r=3,l=[{label:ee("Services"),param:"providers",fetchData:async()=>(await $u()).map(g=>({label:g.name,value:g.slug}))},{label:ee("Genres"),param:"genres",data:$n.map(g=>({label:g.name,value:g.slug}))},{label:ee("IMDb"),param:"imdb_score",range:[0,10]},{label:ee("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:ee("Runtime"),param:"length",range:[0,180],valueAppend:ee("Minutes")},{label:ee("Countries"),param:"country_codes",data:Qu}];let c=G(Me(a()));var s=Pv();let d;var p=k(s);Ce(p,21,()=>o(c)?l.slice(0,r):l,Ae,(g,y)=>{var _=Sv(),x=k(_);mv(x,Pc({get filter(){return e.filter},get onchange(){return i()}},()=>o(y))),qe(3,_,()=>ma,()=>({start:.75,duration:100})),w(g,_)});var u=C(p,2),v=k(u);{var h=g=>{Ki(g,{variant:"link",onclick:()=>q(c,!o(c)),children:(y,_)=>{var x=Ev(),S=J(x);kv(S);var L=C(S),I=C(L);{let j=B(()=>o(c)?"down":"up");ni(I,{get direction(){return o(j)}})}F(j=>K(L,` ${j??""} `),[()=>ee("All Filters")]),w(y,x)},$$slots:{default:!0}})};H(v,g=>{a()&&g(h)})}var m=C(v,2);{var b=g=>{var y=Tv(),_=k(y);xv(_,{get filter(){return e.filter},get onchange(){return i()}}),qe(3,y,()=>ga,()=>({x:5,duration:100})),w(g,y)};H(m,g=>{n()&&g(b)})}F(()=>d=be(s,1,"filter svelte-11dg01g",null,d,{limit:a()})),w(t,s),ne()}var zv=ot('<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 jv(t){var e=zv();w(t,e)}var Iv=T('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Av(t,e){ae(e,!0);let i=G("");var a=Iv(),n=k(a),r=k(n);jv(r);var l=C(n,2);l.__input=()=>e.oninput(o(i)),F(c=>le(l,"placeholder",c),[()=>ee("Search Movies And Shows")]),Ha(l,()=>o(i),c=>q(i,c)),w(t,a),ne()}de(["input"]);var Lv=T(`<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 Mv(t){var e=Lv();w(t,e)}var Dv=T("<!> <!>",1),qv=T('<div class="show-more svelte-ilcedm"><!></div>'),Ov=T("<!> <!>",1),Nv=T("<p>Something went wrong</p>"),Rv=T('<div><div class="header svelte-ilcedm" role="banner"><div><div class="divider svelte-ilcedm"></div> <div class="heading svelte-ilcedm"> </div> <p class="description svelte-ilcedm"> </p></div> <!></div> <div class="titles svelte-ilcedm" role="main"><!> <!></div> <!></div>');function To(t,e){ae(e,!0);const i=Me({});let a=null,n=G(Me([])),r=G(1),l=null,c=0,s=G(""),d=G(Me(g())),p=G(null),u=G(0);const v=B(()=>o(u)>500),h=B(()=>o(u)>1400?8:o(u)>900?6:o(u)>600?4:3),m=B(()=>o(v)?Ku:ko),b=B(()=>o(v)?Yu:Xu);Xe(()=>{var Y;q(p,((Y=a==null?void 0:a.closest(So))==null?void 0:Y.style.height)||null,!0)}),ht(async()=>{var Y;fe(ve.ExplorePageView),(Y=window.PlayPilotLinkInjections.ads)!=null&&Y.length||(window.PlayPilotLinkInjections.ads=await ro())});async function g(){c+=1;const Y=c,O={page_size:24,page:o(r)};o(s)&&(O.search=o(s)),Object.entries(i).forEach(([se,{type:ce,value:pe}])=>{if(ce==="string")O[se]=pe;else if(ce==="array")O[se]=pe.join(",");else if(ce==="range"){const[ue,Te]=pe;O[se+"_min"]=ue,O[se+"_max"]=Te}});const Z=await go(O);return Y===c&&q(n,[...o(n),...Z.results],!0),Z}async function y(Y){q(s,Y,!0),l&&clearTimeout(l),l=setTimeout(()=>{x(),q(d,g(),!0),Y&&(fe(ve.ExploreSearch,null,{query:Y}),gt("pixels")&&Qa(fa.SearchQuery,{query:Y}))},100)}function _(){x(),q(d,g(),!0)}function x(){q(r,1),q(n,[],!0)}function S(){qs(r),q(d,g(),!0),fe(ve.ExploreShowMore,null,{page:o(r)})}function L(Y,O){ri({event:Y,data:O}),fe(ve.ExploreTitleClick,O)}var I=Rv();let j,V;var M=k(I),z=k(M),D=C(k(z),2),A=k(D);jt(D,Y=>ze==null?void 0:ze(Y));var P=C(D,2),N=k(P),R=C(z,2);Ui(R,()=>o(v),Y=>{var O=Dv(),Z=J(O);Av(Z,{oninput:y});var se=C(Z,2);{let ce=B(()=>!o(v)),pe=B(()=>!o(s));Cv(se,{get filter(){return i},get limit(){return o(ce)},onchange:_,get showSorting(){return o(pe)}})}w(Y,O)});var X=C(M,2);let W;var Q=k(X);Ce(Q,17,()=>o(n),Ae,(Y,O)=>{var Z=me(),se=J(Z);Ui(se,()=>o(O).sid,ce=>{var pe=me(),ue=J(pe);Tl(ue,()=>o(m),(Te,Ue)=>{Ue(Te,{get title(){return o(O)},onclick:Le=>L(Le,o(O))})}),w(ce,pe)}),w(Y,Z)});var oe=C(Q,2);Ra(oe,()=>o(d),Y=>{var O=me(),Z=J(O);Ce(Z,16,()=>({length:24}),Ae,(se,ce)=>{var pe=me(),ue=J(pe);Tl(ue,()=>o(b),(Te,Ue)=>{Ue(Te,{})}),w(se,pe)}),w(Y,O)},void 0,Y=>{});var te=C(X,2);Ra(te,()=>o(d),null,(Y,O)=>{var Z=B(()=>{var{next:Le}=o(O);return{next:Le}}),se=B(()=>o(Z).next),ce=Ov(),pe=J(ce);{var ue=Le=>{var Kt=qv(),$=k(Kt);Ki($,{size:"large",onclick:S,children:(we,je)=>{var ia=ei();F(nt=>K(ia,nt),[()=>ee("Show More")]),w(we,ia)},$$slots:{default:!0}}),w(Le,Kt)};H(pe,Le=>{o(se)&&Le(ue)})}var Te=C(pe,2);{var Ue=Le=>{Mv(Le)};H(Te,Le=>{var Kt;!((Kt=o(n))!=null&&Kt.length)&&o(r)===1&&Le(Ue)})}w(Y,ce)},Y=>{var O=Nv();w(Y,O)}),st(I,Y=>a=Y,()=>a),F((Y,O)=>{j=be(I,1,"explore playpilot-styled-scrollbar svelte-ilcedm",null,j,{grid:o(v)}),V=He(I,"",V,{height:o(p)}),K(A,Y),K(N,O),W=He(X,"",W,{"--grid-columns":o(h)})},[()=>ee("Streaming Guide"),()=>ee("Streaming Guide Description")]),ti(I,"clientWidth",Y=>q(u,Y)),w(t,I),ne()}var Bv=T('<div class="content svelte-1t10gn"><!></div>');function Fv(t,e){const i=U(e,"initialScrollPosition",3,0);ar(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,n)=>{var r=Bv(),l=k(r);To(l,{}),w(a,r)},$$slots:{default:!0}})}function Vv(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(n=>{n.style.viewTransitionName=n.dataset.viewTransitionNew||""})})}var Hv=ot('<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 Uv(t){var e=Hv();w(t,e)}var Wv=T('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Gv=T('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Kv=T('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),Zv=T('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function Yv(t,e){ae(e,!0),kn("scope","popover");const i=e.bubble&&tu(dr.TopScrollFormat,1),a=B(()=>({duration:tr.current?0:100,y:10}));let n=G(null),r=G(!1),l=G(!0),c=G(!1),s=G(0),d=G(0),p=G(0);ht(async()=>{await ua(),u(),await h(),e.append&&requestAnimationFrame(()=>{v(),h()}),await ua(),b()});function u(){if(!o(n))return;const{top:D,right:A,bottom:P,height:N}=o(n).getBoundingClientRect(),R=m();q(r,D-R<0&&window.innerHeight-P>D+N,!0);const X=window.innerWidth-A-R;A+R>window.innerWidth&&(o(n).style.left=`${X}px`)}function v(){q(l,o(s)>450)}async function h(){if(q(p,0),await new Promise(W=>requestAnimationFrame(W)),!o(n))return;const{top:D,height:A}=o(n).getBoundingClientRect(),P=m(),N=e.append?parseInt(window.getComputedStyle(o(n)).gap):0,R=o(l)?o(d)+N:0,X=o(r)?window.innerHeight-D-P-R:D+A-R-P;q(p,Math.min(X,window.innerHeight*.8),!0)}function m(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function b(){var R;if(!((R=o(n))!=null&&R.firstChild))return;const D=o(n).firstChild,{offsetHeight:A,scrollHeight:P,scrollTop:N}=D;P<=A?q(c,!1):q(c,N+A<P)}var g=Zv();let y,_;var x=k(g),S=k(x);Ve(S,()=>e.children);var L=C(S,2);{var I=D=>{var A=Wv(),P=k(A),N=k(P);Uv(N),qe(3,A,()=>_i,()=>({duration:100})),w(D,A)};H(L,D=>{o(c)&&D(I)})}var j=C(x,2);{var V=D=>{var A=Gv(),P=k(A);Ve(P,()=>e.bubble),qe(7,A,()=>ga,()=>o(a)),w(D,A)};H(j,D=>{e.bubble&&D(V)})}var M=C(j,2);{var z=D=>{var A=Kv(),P=k(A);Ve(P,()=>e.append),qe(7,A,()=>ga,()=>o(a)),ti(A,"clientHeight",N=>q(d,N)),w(D,A)};H(M,D=>{e.append&&o(l)&&D(z)})}st(g,D=>q(n,D),()=>o(n)),F(()=>{y=be(g,1,"popover svelte-wxwoko",null,y,{flip:o(r),inline:i,"has-bubble":!!e.bubble&&i}),_=He(g,"",_,{"--max-height":o(p)?o(p)+"px":null})}),Se("scroll",x,b),qe(7,x,()=>ga,()=>o(a)),ti(g,"clientHeight",D=>q(s,D)),w(t,g),ne()}var Jv=T('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Xv(t,e){ae(e,!0);const i=p=>{var u=me(),v=J(u);{var h=m=>{wo(m,{get campaign(){return n}})};H(v,m=>{n&&m(h)})}w(p,u)},a=p=>{var u=me(),v=J(u);{var h=m=>{xo(m,{get campaign(){return r},compact:!0})};H(v,m=>{r&&m(h)})}w(p,u)},n=ha("top_scroll"),r=ha("card");let l=G(null);fe(ve.TitlePopoverView,e.title),ht(()=>{c();const p=Date.now();return()=>fe(ve.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=Jv(),d=k(s);{let p=B(()=>r?a:null),u=B(()=>n?i:null);Yv(d,{get append(){return o(p)},get bubble(){return o(u)},children:(v,h)=>{mo(v,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}st(s,p=>q(l,p),()=>o(l)),w(t,s),ne()}let nn=null,ki=null;function Qv(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;ki&&rn();const i=t.currentTarget;nn=i,setTimeout(()=>{nn===i&&(ki=Vt(Xv,{target:fr(),props:{event:t,title:e.title_details}}))},100)}async function rn(t=!0){if(ki){const e=Vi(ki,{outro:t});nn=null,ki=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function $v(t){if(!ki)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(li)||e.closest(Wt)||rn()}function ef(){nn=null}function tf(){return!!ki}const Ke=[];function ri({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:n=0,returnToTitle:r=null}={}){if(e&&io(e))return;e==null||e.preventDefault(),Ke!=null&&Ke.length&&pr();const l=fr(),s=af({type:t,target:l,data:a,props:{initialScrollPosition:n}});r&&Po({type:t,injection:i,data:r}),Po({type:t,injection:i,data:a,scrollPosition:n,component:s})}function af({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Vt(Ru,{target:e,props:{participant:i,...a}}):t==="explore"?Vt(Fv,{target:e,props:{...a}}):Vt(Eu,{target:e,props:{title:i,...a}})}function Po({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:n}){Ke.push({type:t,injection:e,data:i,scrollPosition:a,component:n})}function pr(t=!0){Ke.length&&(lf(),Vi(Ke[Ke.length-1].component,{outro:t}))}function nf(t=!0){pr(t),Ke.pop()}function Co(t=!0){for(pr(t);Ke.length>0;)Ke.pop()}function zo(){return Ke[Ke.length-2]||null}function rf(){if(Ke.length<2)return;nf();const t=Ke.pop();t&&ri({...t})}function lf(){const t=`[data-playpilot-link-injections] ${window.innerWidth>wi?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(Ke[Ke.length-1].scrollPosition=e.scrollTop)}function of(t,e){if(io(t))return;let i=t.target;if(!i||(i.hasAttribute(li)||(i=i.closest(Wt)),!i))return;const a=i.getAttribute(li);if(!a)return;const n=e.find(r=>a===r.key);n&&(t.preventDefault(),Vv(()=>{rn(!1),ri({event:t,injection:n,data:n.title_details})},!tr.current&&window.innerWidth>=wi&&!window.matchMedia("(pointer: coarse)").matches))}var sf=T(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),cf=T('<!> <a target="_blank"> </a>',1),df=T(" <!>.",1),pf=T("<!> <br/>",1),uf=T(" <br/>",1),vf=T('<span class="svelte-1to4glm"><!></span>'),ff=T('<p class="svelte-1to4glm"></p>');function hf(t,e){ae(e,!0);const i=U(e,"onclickmodal",3,()=>null);function a(s,d){fe(ve.AfterArticlePlaylinkClick,s,{playlink:d})}function n(s,d,p){fe(ve.AfterArticleModalButtonClick,d),i()(s,p)}var r=me(),l=J(r);{var c=s=>{var d=ff();Ce(d,21,()=>e.linkInjections,Ae,(p,u)=>{const v=B(()=>{const{key:_,title:x,title_details:S,after_article_style:L}=o(u);return{key:_,title:x,title_details:S,after_article_style:L}}),h=B(()=>{var _;return((_=o(v).title_details)==null?void 0:_.providers)||[]});var m=vf(),b=k(m);{var g=_=>{var x=pf(),S=J(x);{var L=j=>{var V=sf(),M=J(V),z=C(M);z.__click=P=>P.stopPropagation();var D=k(z);D.__click=P=>n(P,o(v).title_details,o(u));var A=k(D);F((P,N)=>{K(M,`"${o(v).title??""}" ${P??""} `),K(A,N)},[()=>ee("Is Available To Stream"),()=>ee("View Streaming Options")]),w(j,V)},I=j=>{var V=df(),M=J(V),z=C(M);Ce(z,17,()=>o(h),Ae,(D,A,P)=>{let N=()=>o(A).name,R=()=>o(A).url;var X=cf(),W=J(X);{var Q=Y=>{var O=ei();F(Z=>K(O,Z),[()=>P===o(h).length-1?`, ${ee("And")}`:","]),w(Y,O)};H(W,Y=>{P&&Y(Q)})}var oe=C(W,2);oe.__click=()=>a(o(v).title_details,N());var te=k(oe);F(()=>{le(oe,"href",R()),K(te,N())}),w(D,X)}),F(D=>K(M,`"${o(v).title??""}" ${D??""} `),[()=>ee("Is Available To Stream On")]),w(j,V)};H(S,j=>{o(v).after_article_style==="modal_button"?j(L):j(I,!1)})}w(_,x)},y=_=>{var x=uf(),S=J(x);F(L=>K(S,`"${o(v).title??""}" ${L??""} `),[()=>ee("Title Unavailable Suffix")]),w(_,x)};H(b,_=>{o(h).length?_(g):_(y,!1)})}F(()=>le(m,"data-playpilot-injection-key",o(v).key)),w(p,m)}),w(s,d)};H(l,s=>{e.linkInjections.length&&s(c)})}w(t,r),ne()}de(["click"]);let ya=null;function gf(t,e){var l,c;if(ya||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,n=(a?document.querySelector(a):null)||t[t.length-1],r=((c=window.PlayPilotLinkInjections)==null?void 0:c.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",n.insertAdjacentElement(r,i),ya=Vt(hf,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>ri({event:s,injection:d,data:d.title_details})}})}function mf(){var t;ya&&(Vi(ya),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),ya=null)}var yf=T('<p class="svelte-1epbbn0"> </p>');function bf(t,e){ae(e,!1),Un();var i=yf(),a=k(i);F(n=>K(a,n),[()=>{var n,r;return((r=(n=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.in_text_disclaimer_text)||ee("In-Text Disclaimer")}]),w(t,i),ne()}let ba=null;function wf(t){var r,l,c,s,d,p;if(!((l=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)!=null&&l.in_text_disclaimer_enabled)||ba)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],n=((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(n,e),ba=Vt(bf,{target:e})}function xf(){var t;ba&&(Vi(ba),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),ba=null)}const li="data-playpilot-injection-key",Wt=`[${li}]`;function _f(t,e={aiInjections:[],manualInjections:[]}){vr(),Cf();const i=zf(e);if(!i.length)return[];const a=ai(t.map(d=>d.innerText).join(" ")),r=If(i).filter(d=>a.includes(ai(d.sentence))),l={};let c=-1;for(const d of Lf(r)){c++;const p=t.findIndex(S=>ai(S.innerText).includes(ai(d.sentence))),u=t[p];if(!u)continue;const v=Ql(d.title,u,["A"]);if(!(v!=null&&v.nodeValue)||$l(v)){const S=Ql(d.title,u);if(S&&$l(S)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:m}=kf(d);let b=-1,g=!1;Ya(u.innerHTML,d.title)===1&&(b=u.innerHTML.indexOf(d.title));const{phrase_before:_,phrase_after:x}=Sf(u,d);if(b===-1&&(_||x)){const S=[_,d.title,x].filter(Boolean).join(" ");if(b=u.innerHTML.indexOf(S),b===-1){const L=Xc(u.innerHTML,d.title,_||"",x||"");if(L){const{leadingSpaces:I,trailingSpaces:j}=Qc(L.match);m.innerHTML=L.match.trim();const V=L.index+I,M=L.index+L.match.length-j;if(u.innerHTML.slice(V,M).includes("href="))continue;ur(u.innerHTML,d.title,u,h,V,M)&&(b=L.index,g=!0)}}}if(b===-1&&(v!=null&&v.nodeValue)){const S=u.innerHTML.indexOf(v.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=Ya(u.innerHTML,j)===1?u.innerHTML.indexOf(j):-1,z=Uc(r.slice(0,c+1),d,["title","sentence"])-1,D=$c(v.nodeValue,u,z);b=Math.max(S,I,D,M,L,0)}if(b!==-1&&!g&&!ur(u.innerHTML,d.title,u,h,b)){const S=td(d.title,u.innerHTML);S>-1?ur(u.innerHTML,d.title,u,h,S):l[d.key]="Injection would have lead to broken HTML."}}Tf(r),Ef();const s=Af(i);return s.length&&gf(t,s),document.querySelector(Wt)&&wf(t),i.filter(d=>d.title_details).map((d,p)=>{const u=!d.manual&&Mf(d,p,i),v=d.duplicate??u;v&&(l[d.key]=u?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${li}="${d.key}"]`),m=Io(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,b=r.find(y=>y.key===d.key),g=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:v,failed:m,failed_message:g}})}function kf(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 ur(t,e,i,a,n,r=-1){const l=p=>Array.from(p.querySelectorAll(`a, ${Wt}`)).filter(u=>!u.innerText).length,c=document.createElement("div");c.innerHTML=t;const s=l(c),d=c.innerText;return r>0?c.innerHTML=Zc(t,a.outerHTML,n,r):c.innerHTML=Kc(t,e,a.outerHTML,n),Math.abs(c.innerText.length-d.length)>1||s!=l(c)?!1:(i.innerHTML=c.innerHTML,!0)}function Sf(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(Ya(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const r=t.innerText.indexOf(e.title),l=Yc(t,r,r+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function Ef(){const t=Array.from(document.querySelectorAll(`${Wt} 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 n of e)a.getPropertyValue(n)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${n}`)}}function Tf(t){window.addEventListener("mousemove",$v),window.addEventListener("click",i=>of(i,t)),document.querySelectorAll(Wt).forEach(i=>{const a=i.dataset.playpilotInjectionKey,n=t.find(r=>a===r.key);n&&(i.addEventListener("mouseenter",r=>{tf()||Qv(r,n)}),i.addEventListener("mouseleave",ef))})}function vr(){document.querySelectorAll(Wt).forEach(e=>Pf(e.getAttribute(li)||"")),mf(),xf(),Co(!1),rn(!1)}function Pf(t){var n;const e=document.querySelector(`[${li}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(r=>r.remove());const a=(n=e.querySelector("a"))==null?void 0:n.innerHTML;e.outerHTML=a||""}function Cf(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(Wt)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function zf({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function jf(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function jo(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&Io(t)}function Io(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function If(t){return Ao(t).filter(e=>e.in_text!==!1&&jo(e))}function Af(t){return Ao(t).filter(e=>e.after_article===!0&&jo(e))}function Ao(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)&&Lo(i,e)))}function Lf(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 Mf(t,e,i){return i.some((a,n)=>e!==n&&a.manual&&Lo(a,t))}function Lo(t,e){return t.title===e.title&&ai(t.sentence)===ai(e.sentence)}function fr(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Df(){const t=ii();if(!t)throw new Error("No token was provided");try{return await await Ut(`/domains/config?api-token=${t}`)||null}catch{return null}}de(["click"]),de(["input"]),de(["click"]),de(["click"]),de(["click"]),de(["mousedown","touchstart"]),de(["mousedown","touchstart"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]);function qf(t,e){ae(e,!0);const i=100;let a=1;n();function n(){if(window.PlayPilotLinkInjections.require_consent===!1){r();return}if(!window.__tcfapi){a<i&&setTimeout(n,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;id({ads:p(1),pixels:p(1)&&p(7),split_tests:p(9)&&p(10),tracking:p(7)&&p(8),affiliate:p(1)&&p(7)}),r()})}function r(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ne()}var Of=T('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Nf=T('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Rf=T('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Bf=T('<button class="svelte-1tp7i1s"></button>'),Ff=T("<small>You are using the beta version of TPI</small>"),Vf=T('<button class="svelte-1tp7i1s">Use beta script</button>'),Hf=T('<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> <!></div>');function Uf(t,e){ae(e,!0);const i=["tpidebug","debugtpi"],a=[],n=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let r=G(Me(s())),l=G(!1),c=null;Wa(()=>{c&&clearInterval(c)});function s(){var S,L,I,j,V,M;const g=window.PlayPilotLinkInjections,y=((S=g.evaluated_link_injections)==null?void 0:S.filter(z=>!z.failed))||[],_=((L=g.evaluated_link_injections)==null?void 0:L.filter(z=>z.failed))||[],x=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(([z,D])=>({label:z,data:D})),[`Succesful injections (${y.length})`]:y.map(z=>({label:z.title,data:z.sentence})),[`Failed injections (${_.length})`]:_.map(z=>({label:z.title,data:`Reason: ${z.failed_message} | Sentence: ${z.sentence}`})),[`Fetched ads (${((I=g.ads)==null?void 0:I.length)||0})`]:(j=g.ads)==null?void 0:j.map(z=>({label:z.campaign_name,data:z})),[`Tracking events (${((V=g.tracked_events)==null?void 0:V.length)||0})`]:(M=g.tracked_events)==null?void 0:M.map(z=>({label:z.event,data:z.payload})),[`Visible pixels (${x.length})`]:x.map((z,D)=>({label:D+1,data:z.src}))}}function d(g){o(l)||(a.push(g.key),q(l,i.some(y=>a.slice(a.length-y.length,a.length).join("")===y),!0),c=setInterval(()=>q(r,s(),!0),200))}function p(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 u(g){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(dr).forEach(({key:y,numberOfVariants:_})=>{const x=1/_;window.PlayPilotLinkInjections.split_test_identifiers[y]=Math.min(x*g,1)})}function v(){var _,x;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(x=(_=window.PlayPilotLinkInjections)==null?void 0:_.destroy)==null||x.call(_);const y=document.createElement("script");for(const S of g.attributes)y.setAttribute(S.name,S.value);y.getAttribute("onload")||y.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),y.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",y),g.remove()}var h=me();Se("keydown",De,d);var m=J(h);{var b=g=>{var y=Hf(),_=C(k(y),4);{var x=N=>{var R=Of();w(N,R)};H(_,N=>{var R,X,W;(R=window.PlayPilotLinkInjections.config)!=null&&R.exclude_urls_pattern&&xi().match((W=(X=window.PlayPilotLinkInjections)==null?void 0:X.config)==null?void 0:W.exclude_urls_pattern)&&N(x)})}var S=C(_,2);Ce(S,17,()=>Object.entries(o(r)),Ae,(N,R)=>{var X=B(()=>Pa(o(R),2));let W=()=>o(X)[0],Q=()=>o(X)[1];var oe=Rf(),te=k(oe),Y=k(te),O=C(te,2);{var Z=ce=>{var pe=me(),ue=J(pe);{var Te=Ue=>{var Le=me(),Kt=J(Le);Ce(Kt,17,Q,Ae,($,we,je,ia)=>{let nt=()=>o(we).label,Jf=()=>o(we).data;var Do=Nf(),qo=k(Do),Xf=k(qo),Qf=C(qo,2),$f=k(Qf);F(eh=>{K(Xf,nt()),K($f,eh)},[()=>JSON.stringify(Jf())]),w($,Do)}),w(Ue,Le)};H(ue,Ue=>{Array.isArray(Q())&&Ue(Te)})}w(ce,pe)},se=ce=>{var pe=ei("No data");w(ce,pe)};H(O,ce=>{var pe;(pe=Q())!=null&&pe.length?ce(Z):ce(se,!1)})}F(()=>K(Y,W())),w(N,oe)});var L=C(S,4);L.__click=()=>p("card");var I=C(L,2);I.__click=()=>p("top_scroll");var j=C(I,6);Ce(j,16,()=>({length:4}),Ae,(N,R,X)=>{var W=Bf();W.__click=()=>u(X),W.textContent=X,w(N,W)});var V=C(j,4);V.__click=()=>console.log(Zn(window.PlayPilotLinkInjections.config));var M=C(V,2);M.__click=()=>console.log(Zn(window.PlayPilotLinkInjections.config).pageText);var z=C(M,4);z.__click=function(...N){var R;(R=e.onrerender)==null||R.apply(this,N)};var D=C(z,2);{var A=N=>{var R=Ff();w(N,R)},P=N=>{var R=Vf();R.__click=v,w(N,R)};H(D,N=>{n?N(A):N(P,!1)})}w(g,y)};H(m,g=>{o(l)&&g(b)})}w(t,h),ne()}de(["click"]);function Wf(t,e){ae(e,!1);const i=Array.from(document.querySelectorAll(Wt)),a=[],n=Date.now();let r=!1,l=null;ht(()=>{Ga()||c()});function c(){l=new IntersectionObserver(s),i.forEach(u=>{l.observe(u)})}function s(u){u.forEach(v=>{if(!v.isIntersecting)return;const h=v.target.getAttribute(li);h&&a.push(h),l.unobserve(v.target)})}function d(){const{scrollHeight:u,scrollTop:v,clientHeight:h}=document.documentElement;return v/(u-h)*100}function p(){var v,h;if(r||document.visibilityState!=="hidden")return;r=!0;const u=Date.now();fe(ve.UserLeft,null,{time_start:n,time_end:u,time_spent:u-n,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(v=window.PlayPilotLinkInjections)==null?void 0:v.tracked_events)==null?void 0:h.map(m=>m.event))||[],scroll_percentage:d()})}Un(),Se("visibilitychange",De,p),ne()}function Gf(t,e){ae(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new Xa,n=.7,r="[data-playpilot-poster]";let l=G(0),c={},s=null;const d=B(()=>o(l)<wi);Wa(h);function p(){var x,S;if((S=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&S.disable_scroll_reveal_posters||!o(d))return;m();const b=window.innerHeight,g=new Xa,y=b*n,_=b-y;for(const L of i){const{top:I}=L.getBoundingClientRect();I<y&&I>_&&g.add(L)}for(const L of g){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,g){const y=document.createElement("img");y.classList.add("playpilot-floating-poster"),y.dataset.playpilotPoster="",y.src=g,y.alt="",y.onload=()=>y.classList.add("loaded"),b.insertAdjacentElement("afterbegin",y)}function v(b){const g=b.querySelector(r);g&&(g.classList.add("animating-out"),setTimeout(()=>g.remove(),500))}function h(){for(const b of Array.from(document.querySelectorAll(r)))b.remove()}function m(){s&&clearTimeout(s),s=setTimeout(()=>{for(const b of a)v(b),a.delete(b),c={}},1e3)}Se("scroll",De,p),Hn("innerWidth",b=>q(l,b,!0)),ne()}var Kf=T("<!> <!>",1),Zf=T('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function Yf(t,e){ae(e,!0);let i=G(Me([])),a=G(null),n=G(Me(Ga()));Wl();let r=G(!1),l=G(!0),c=G(!0),s=G(Me([]));const d=B(()=>o(a)||{}),p=B(()=>Sr(o(d).ai_injections,()=>[],!0)),u=B(()=>Sr(o(d).manual_injections,()=>[],!0)),v=B(()=>Kn(o(i))),h=b();Xe(()=>{o(n)&&!o(l)&&g()}),Fu(),Wa(vr);async function m(){Ja()||(await h,cd(),fe(ve.ArticlePageView),!(!o(p).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await ro())))}async function b(){var A;q(l,!0);try{o(n)&&q(r,await Ul({throwError:!0}),!0)}catch{fe(ve.AuthFailed)}try{const P=window.PlayPilotLinkInjections.config||await Df()||{};if(window.PlayPilotLinkInjections.config=P,P!=null&&P.custom_style&&_(P.custom_style||""),P!=null&&P.explore_navigation_selector&&Hu(),P!=null&&P.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),q(c,Fc(P),!0),o(c))return;P!=null&&P.html_selector&&(window.PlayPilotLinkInjections.selector=P==null?void 0:P.html_selector),q(i,Zn(window.PlayPilotLinkInjections.config).elements,!0)}catch(P){fe(ve.FetchingConfigFailed),console.error("TPI Config failed to fetch",P);return}try{if(q(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),q(a,o(a)||await Jl(o(v),{maxTries:1,runAiWhenRelevant:!Ja()}),!0),q(l,!1),!o(a)||(A=window.PlayPilotLinkInjections.config)!=null&&A.disable_public_injections&&!(o(n)&&o(r)))return;if(od({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){y({aiInjections:o(p),manualInjections:o(u)});return}if(!o(n)||Ja())return;q(a,await Jl(o(v),{requireCompletedResult:!0,onpoll:P=>q(a,P,!0)}),!0),y({aiInjections:o(p),manualInjections:o(u)})}catch(P){console.error(P),fe(ve.InjectionError,null,{message:P.message})}}function g(){y(jf(o(s)))}function y(A={aiInjections:o(p),manualInjections:o(u)}){const P=_f(o(i),A);JSON.stringify(P)!==JSON.stringify(o(s))&&(q(s,P,!0),window.PlayPilotLinkInjections.evaluated_link_injections=P),o(n)||x(P)}function _(A){const P="playpilot-custom-style",N=document.getElementById(P),R=N||document.createElement("style");R.textContent=`body { ${A} }`,R.id=P,N||document.body.appendChild(R)}function x(A){const P=A.filter(R=>!R.failed),N=A.filter(R=>R.failed);if(P.length&&fe(ve.ArticleInjected,null,{manual:P.filter(R=>R.manual).length,ai:P.filter(R=>!R.manual).length}),N.length){const R=X=>N.filter(({failed_message:W})=>W==null?void 0:W.includes(X)).length;fe(ve.FailedInjectionsCount,null,{total:N.length,sentence_not_found:R("sentence was not found"),already_linked:R("already inside of a link"),broken_html:R("broken HTML"),duplicate:R("duplicate"),unknown:R("unknown reasons")})}}var S=Zf(),L=J(S),I=k(L);H(I,A=>{});var j=C(I,2);Uf(j,{onrerender:g});var V=C(L,2);{var M=A=>{rr(A,{get pixels(){return o(a).pixels}})};H(V,A=>{var P,N;(N=(P=o(a))==null?void 0:P.pixels)!=null&&N.length&&A(M)})}var z=C(V,2);Ui(z,()=>o(s),A=>{var P=Kf(),N=J(P);Wf(N,{});var R=C(N,2);Gf(R,{}),w(A,P)});var D=C(z,2);qf(D,{onchange:m}),w(t,S),ne()}window.PlayPilotMount={mount(){window.PlayPilotLinkInjections.app&&this.destroy();const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Vt(Yf,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),vr()}}})();
|
|
10
|
+
`}}var ud=ot('<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 so(t,e){const i=U(e,"size",3,16);var a=ud();F(()=>{le(a,"width",i()),le(a,"height",i())}),w(t,a)}var vd=ot("<title> </title>"),fd=ot('<svg width="16px" height="16px" 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 ni(t,e){const i=U(e,"direction",3,"right"),a=U(e,"title",3,"");var n=fd(),r=k(n);{var l=c=>{var s=vd(),d=k(s);F(()=>K(d,a())),w(c,s)};H(r,c=>{a()&&c(l)})}F(()=>be(n,0,i(),"svelte-1m6nwwy")),w(t,n)}function co(t,e){ae(e,!0);const i=U(e,"size",3,"32px"),a=U(e,"onclick",3,()=>null),n=Ec(e,["$$slots","$$events","$$legacy","children","size","onclick"]);var r=me(),l=J(r);Pl(l,()=>e.href?"a":"button",!1,(c,s)=>{Ml(c,()=>({role:e.href?"link":"button",onclick:a(),class:"button",...n,[Gi]:{"--size":i()}}),void 0,void 0,void 0,"svelte-1ch8qoj");var d=me(),p=J(d);Ve(p,()=>e.children??Dt),w(s,d)}),w(t,r),ne()}var hd=T("<div></div>");function gd(t,e){ae(e,!0);let i=U(e,"threshold",3,100),a=U(e,"isDragging",15,!1),n=U(e,"passedThreshold",15,!1),r=U(e,"onpassed",3,()=>null),l=G(0),c=G(0),s=G(null),d=G(!1);const p=B(()=>Math.max(o(c)-o(l),0));Xe(()=>{n(o(p)>i())});function u(b){if(b){a(!0),q(d,!0),q(l,b.touches[0].pageY,!0);for(const _ of e.targets)_.style.transitionDuration="0ms"}}function v(b){if(b&&a()){b.preventDefault(),q(c,b.touches[0].pageY,!0),o(s).style.transform=`translateY(${o(p)}px)`;for(const _ of e.targets)_.style.top=`${o(p)}px`}}function h(){if(a()){if(a(!1),n())r()();else{o(s).removeAttribute("style");for(const b of e.targets)b.style.removeProperty("transition"),requestAnimationFrame(()=>b.style.top="0px")}q(l,0),q(c,0)}}var m={start:u,move:v,end:h},y=hd();Se("touchmove",De,v,void 0,!0),Se("touchend",De,h);let g;return y.__touchstart=u,st(y,b=>q(s,b),()=>o(s)),F(()=>g=be(y,1,"handle svelte-1xqgdsn",null,g,{dragging:a(),dragged:o(d)})),w(t,y),ne(m)}de(["touchstart"]);var md=["forEach","isDisjointFrom","isSubsetOf","isSupersetOf"],yd=["difference","intersection","symmetricDifference","union"],po=!1;const un=class un extends Set{constructor(i){super();re(this,ta);re(this,ea,new Map);re(this,yt,G(0));re(this,pi,G(0));re(this,pn,Ft||-1);if(i){for(var a of i)super.add(a);E(this,pi).v=super.size}po||Ee(this,ta,Vo).call(this)}has(i){var a=super.has(i),n=E(this,ea),r=n.get(i);if(r===void 0){if(!a)return o(E(this,yt)),!1;r=Ee(this,ta,Fo).call(this,!0),n.set(i,r)}return o(r),a}add(i){return super.has(i)||(super.add(i),q(E(this,pi),super.size),Xt(E(this,yt))),this}delete(i){var a=super.delete(i),n=E(this,ea),r=n.get(i);return r!==void 0&&(n.delete(i),q(r,!1)),a&&(q(E(this,pi),super.size),Xt(E(this,yt))),a}clear(){if(super.size!==0){super.clear();var i=E(this,ea);for(var a of i.values())q(a,!1);i.clear(),q(E(this,pi),0),Xt(E(this,yt))}}keys(){return this.values()}values(){return o(E(this,yt)),super.values()}entries(){return o(E(this,yt)),super.entries()}[Symbol.iterator](){return this.keys()}get size(){return o(E(this,pi))}};ea=new WeakMap,yt=new WeakMap,pi=new WeakMap,pn=new WeakMap,ta=new WeakSet,Fo=function(i){return Ft===E(this,pn)?G(i):Et(i)},Vo=function(){po=!0;var i=un.prototype,a=Set.prototype;for(const n of md)i[n]=function(...r){return o(E(this,yt)),a[n].apply(this,r)};for(const n of yd)i[n]=function(...r){o(E(this,yt));var l=a[n].apply(this,r);return new un(l)}};let Xa=un;class bd{constructor(e,i){re(this,Sa);re(this,Ea);ie(this,Sa,e),ie(this,Ea,Ur(i))}get current(){return E(this,Ea).call(this),E(this,Sa).call(this)}}Sa=new WeakMap,Ea=new WeakMap;const wd=/\(.+\)/,xd=new Set(["all","print","screen","and","or","not","only"]);class _d extends bd{constructor(e,i){let a=wd.test(e)||e.split(/[\s,]+/).some(r=>xd.has(r.trim()))?e:`(${e})`;const n=window.matchMedia(a);super(()=>n.matches,r=>lc(n,"change",r))}}function kd(t){const e=t-1;return e*e*e+1}const tr=new _d("(prefers-reduced-motion: reduce)");function ir(t){function e(){return Array.from(t.querySelectorAll('button:not([disabled]), [href], [tabindex]:not([tabindex="-1"])'))}function i(r){if(r.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];r.shiftKey&&l===s&&(d.focus(),r.preventDefault()),!r.shiftKey&&l===d&&(s.focus(),r.preventDefault())}const a=document.activeElement,[n]=e();return a!=null&&a.matches(":focus-visible")&&(n==null||n.focus()),window.addEventListener("keydown",i),{destroy(){window.removeEventListener("keydown",i),a==null||a.focus()}}}function Sd(){return document.scrollingElement?document.scrollingElement:document.documentElement.scrollTop?document.documentElement:document.body}var Ed=T("<div><!></div>"),Td=T('<div class="prepend svelte-14exe2s" data-view-transition-new="playpilot-title-extra"><!></div>'),Pd=T('<div class="bubble svelte-14exe2s" data-view-transition-new="playpilot-title-extra"><!></div>'),Cd=T('<div class="swipe-handle svelte-14exe2s"><!></div>'),zd=T("<div><!></div>"),jd=T('<div data-testid="modal"><!> <!> <!> <div class="dialog svelte-14exe2s" role="dialog" aria-labelledby="title" data-view-transition-new="playpilot-title-content"><!> <!> <!></div> <!></div>');function ar(t,e){ae(e,!0);const i=O=>{var Z=Ed(),se=k(Z);co(se,{onclick:x,"aria-label":"Close",children:(ce,pe)=>{so(ce,{})},$$slots:{default:!0}}),st(Z,ce=>q(h,ce),()=>o(h)),F(()=>be(Z,1,`close ${r()??""}`,"svelte-14exe2s")),qe(7,Z,()=>_),w(O,Z)},a=U(e,"tall",3,!1),n=U(e,"wide",3,!1),r=U(e,"closeButtonStyle",3,"shadow"),l=U(e,"initialScrollPosition",3,0),c=U(e,"onscroll",3,()=>null),s=U(e,"onclose",3,()=>null),d="#playpilot";let p=G(0),u=G(null),v=G(null),h=G(null),m=G(0),y=G(!1);const g=B(()=>o(p)<wi);Xe(()=>{var O;o(p)&&q(m,((O=o(v))==null?void 0:O.offsetTop)||0,!0)}),Xe(()=>{setTimeout(()=>{var O;return q(m,((O=o(v))==null?void 0:O.offsetTop)||0,!0)})}),kn("scope","modal"),ht(()=>{const O=Sd();return O.classList.add("playpilot-modal-open"),q(y,!!zo()),o(y)||window.history.pushState({modal:!0},"",d),requestAnimationFrame(b),()=>{var Z;O.classList.remove("playpilot-modal-open"),!zo()&&((Z=history.state)!=null&&Z.modal)&&history.back()}});function b(){const O=window.innerWidth>wi?o(u):o(v);O==null||O.scrollTo(0,l())}function _(O){return tr.current?_i(O,{duration:0}):o(g)?ga(O,{duration:250,y:window.innerHeight,opacity:1}):ma(O,{duration:150,start:.85})}function x(){s()(),Co()}function S(O){O.target===o(u)&&x()}var L=jd();Se("keydown",De,({key:O})=>{O==="Escape"&&x()}),Se("hashchange",De,x);let I;L.__click=S;let j;var V=k(L);{var M=O=>{var Z=Td(),se=k(Z);Ve(se,()=>e.prepend),qe(7,Z,()=>_),w(O,Z)};H(V,O=>{e.prepend&&O(M)})}var z=C(V,2);{var D=O=>{var Z=Pd(),se=k(Z);Ve(se,()=>e.bubble),qe(7,Z,()=>_),w(O,Z)};H(z,O=>{e.bubble&&O(D)})}var A=C(z,2);{var P=O=>{var Z=Cd(),se=k(Z);{var ce=pe=>{{let ue=B(()=>[o(v),o(h)]);gd(pe,{get targets(){return o(ue)},onpassed:x})}};H(se,pe=>{o(v)&&o(h)&&pe(ce)})}qe(7,Z,()=>_),w(O,Z)};H(A,O=>{o(g)&&O(P)})}var N=C(A,2),R=k(N);{var X=O=>{var Z=zd(),se=k(Z);co(se,{onclick:()=>rf(),"aria-label":"Back",children:(ce,pe)=>{ni(ce,{direction:"left"})},$$slots:{default:!0}}),F(()=>be(Z,1,`close back ${r()??""}`,"svelte-14exe2s")),w(O,Z)};H(R,O=>{o(y)&&O(X)})}var W=C(R,2);Ve(W,()=>e.children);var Q=C(W,2);{var oe=O=>{i(O)};H(Q,O=>{o(g)||O(oe)})}st(N,O=>q(v,O),()=>o(v));var te=C(N,2);{var Y=O=>{i(O)};H(te,O=>{o(g)&&O(Y)})}st(L,O=>q(u,O),()=>o(u)),jt(L,O=>ir==null?void 0:ir(O)),F(()=>{I=be(L,1,"modal svelte-14exe2s",null,I,{wide:n(),tall:a(),"has-bubble":!!e.bubble,"has-prepend":!!e.prepend}),j=He(L,"",j,{"--dialog-offset":`${o(m)??""}px`})}),Hn("innerWidth",O=>q(p,O,!0)),Se("scroll",N,function(...O){var Z;(Z=c())==null||Z.apply(this,O)}),qe(7,N,()=>_),qe(5,L,()=>_i,()=>({duration:150})),qe(6,L,()=>_i,()=>({duration:150,delay:100})),w(t,L),ne()}de(["click"]);const Id={"Where To Stream Online":{[f.English]:"Where to stream online",[f.Swedish]:"Var kan man streama online",[f.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[f.English]:"We may earn a commission from purchases made through some of the links below.",[f.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[f.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[f.English]:"An error occurred",[f.Swedish]:"Ett fel inträffade",[f.Danish]:"Der opstod en fejl"},Loading:{[f.English]:"Loading",[f.Swedish]:"Laddar",[f.Danish]:"Indlæser"},"Title Unavailable":{[f.English]:"This title is not currently available to stream.",[f.Swedish]:"Den här titeln går inte att streama just nu.",[f.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[f.English]:"is not currently available to stream.",[f.Swedish]:"går inte att streama just nu.",[f.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[f.English]:"is available to stream on",[f.Swedish]:"finns att streama på",[f.Danish]:"kan streames på"},"Is Available To Stream":{[f.English]:"is available to stream.",[f.Swedish]:"finns att streama.",[f.Danish]:"kan streames."},"View Streaming Options":{[f.English]:"View streaming options",[f.Swedish]:"Se streamingalternativ",[f.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[f.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[f.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[f.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[f.English]:"and",[f.Swedish]:"och",[f.Danish]:"og"},Minutes:{[f.English]:"minutes",[f.Swedish]:"minuter",[f.Danish]:"minutter"},"Type: movie":{[f.English]:"Movie",[f.Swedish]:"Film",[f.Danish]:"Film"},"Type: series":{[f.English]:"Series",[f.Swedish]:"Serie",[f.Danish]:"Serie"},Stream:{[f.English]:"Stream",[f.Swedish]:"Streama",[f.Danish]:"Stream"},Buy:{[f.English]:"Buy",[f.Swedish]:"Köp",[f.Danish]:"Køb"},Rent:{[f.English]:"Rent",[f.Swedish]:"Hyr",[f.Danish]:"Lej"},"Rent Or Buy":{[f.English]:"Rent or Buy",[f.Swedish]:"Hyr/köp",[f.Danish]:"Lej eller køb"},Watch:{[f.English]:"Watch",[f.Swedish]:"Titta nu",[f.Danish]:"Se nu"},"Category: AVOD":{[f.English]:"Stream for free",[f.Swedish]:"Streama gratis",[f.Danish]:"Stream gratis"},"Category: SVOD":{[f.English]:"Streaming services",[f.Swedish]:"Streamingtjänster",[f.Danish]:"Streamingtjenester"},"Category: RENT":{[f.English]:"Rent it",[f.Swedish]:"Hyr den",[f.Danish]:"Lej den"},"Category: BUY":{[f.English]:"Buy it",[f.Swedish]:"Köp den",[f.Danish]:"Køb den"},"Category: Other":{[f.English]:"Other",[f.Swedish]:"Annat",[f.Danish]:"Andet"},Share:{[f.English]:"Share",[f.Swedish]:"Dela",[f.Danish]:"Del"},"Copy URL":{[f.English]:"Copy URL",[f.Swedish]:"Kopiera URL",[f.Danish]:"Kopiér URL"},Email:{[f.English]:"Email",[f.Swedish]:"E-post",[f.Danish]:"E-mail"},"Show More":{[f.English]:"Show more",[f.Swedish]:"Visa mer",[f.Danish]:"Vis mere"},Cast:{[f.English]:"Cast",[f.Swedish]:"Rollista",[f.Danish]:"Skuespillere"},"Similar Titles":{[f.English]:"Similar movies & shows",[f.Swedish]:"Liknande filmer och serier",[f.Danish]:"Lignende film og serier"},"Watch Trailer":{[f.English]:"Watch trailer",[f.Swedish]:"Se trailer",[f.Danish]:"Se trailer"},"Streaming Guide":{[f.English]:"Streaming Guide",[f.Swedish]:"Streaming Guide",[f.Danish]:"Streaming Guide"},"Streaming Guide Description":{[f.English]:"Find where to watch movies online - the ultimate guide that helps you find the best movies and shows across streaming services.",[f.Swedish]:"Sök bland alla filmer och serier för att ta reda på var du kan streama dem",[f.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":{[f.English]:"Search movies and shows",[f.Swedish]:"Sök filmer och serier",[f.Danish]:"Søg film og serier"},Services:{[f.English]:"Services",[f.Swedish]:"Tjänster",[f.Danish]:"Tjenester"},Genres:{[f.English]:"Genres",[f.Swedish]:"Genrer",[f.Danish]:"Genrer"},IMDb:{[f.English]:"IMDb",[f.Swedish]:"IMDb",[f.Danish]:"IMDb"},Year:{[f.English]:"Year",[f.Swedish]:"År",[f.Danish]:"År"},Runtime:{[f.English]:"Runtime",[f.Swedish]:"Speltid",[f.Danish]:"Spilletid"},Countries:{[f.English]:"Countries",[f.Swedish]:"Länder",[f.Danish]:"Lande"},"All Filters":{[f.English]:"All filters",[f.Swedish]:"Alla filter",[f.Danish]:"Alle filtre"},"Sort By":{[f.English]:"Sort by",[f.Swedish]:"Sortera efter",[f.Danish]:"Sortér efter"},Popularity:{[f.English]:"Popularity",[f.Swedish]:"Popularitet",[f.Danish]:"Popularitet"},New:{[f.English]:"New",[f.Swedish]:"Nytt",[f.Danish]:"Nyt"},"Top Rated":{[f.English]:"Top Rated",[f.Swedish]:"Toppbetyg",[f.Danish]:"Højst vurderet"},Search:{[f.English]:"Search",[f.Swedish]:"Sök",[f.Danish]:"Søg"},"Born On":{[f.English]:"Born on",[f.Swedish]:"Född den",[f.Danish]:"Født den"},"Died On":{[f.English]:"Died on",[f.Swedish]:"Död den",[f.Danish]:"Død den"},Credits:{[f.English]:"Credits",[f.Swedish]:"Medverkande",[f.Danish]:"Medvirkende"},All:{[f.English]:"All",[f.Swedish]:"Alla",[f.Danish]:"Alle"},Unscripted:{[f.English]:"Unscripted",[f.Swedish]:"Oscripterat",[f.Danish]:"Umanuskriptet"},Independent:{[f.English]:"Independent",[f.Swedish]:"Indie",[f.Danish]:"Indie"},"Game Show":{[f.English]:"Game Show",[f.Swedish]:"Gameshow",[f.Danish]:"Quizshow"},"Film Noir":{[f.English]:"Film Noir",[f.Swedish]:"Film noir",[f.Danish]:"Film noir"},Entertainment:{[f.English]:"Entertainment",[f.Swedish]:"Underhållning",[f.Danish]:"Underholdning"},News:{[f.English]:"News",[f.Swedish]:"Nyheter",[f.Danish]:"Nyheder"},Short:{[f.English]:"Short",[f.Swedish]:"Kortfilm",[f.Danish]:"Kortfilm"},Bollywood:{[f.English]:"Bollywood",[f.Swedish]:"Bollywood",[f.Danish]:"Bollywood"},Concert:{[f.English]:"Concert",[f.Swedish]:"Konsert",[f.Danish]:"Koncert"},Arthouse:{[f.English]:"Arthouse",[f.Swedish]:"Arthouse",[f.Danish]:"Arthouse"},"Alternate Version":{[f.English]:"Alternate Version",[f.Swedish]:"Alternativ version",[f.Danish]:"Alternativ version"},"Reality TV":{[f.English]:"Reality TV",[f.Swedish]:"Reality-TV",[f.Danish]:"Reality-TV"},Culture:{[f.English]:"Culture",[f.Swedish]:"Kultur",[f.Danish]:"Kultur"},Drama:{[f.English]:"Drama",[f.Swedish]:"Drama",[f.Danish]:"Drama"},Crime:{[f.English]:"Crime",[f.Swedish]:"Kriminal",[f.Danish]:"Krimi"},Western:{[f.English]:"Western",[f.Swedish]:"Western",[f.Danish]:"Western"},Thriller:{[f.English]:"Thriller",[f.Swedish]:"Thriller",[f.Danish]:"Thriller"},Animation:{[f.English]:"Animation",[f.Swedish]:"Animerat",[f.Danish]:"Animation"},Mystery:{[f.English]:"Mystery",[f.Swedish]:"Mysterium",[f.Danish]:"Mysterium"},Science:{[f.English]:"Science",[f.Swedish]:"Vetenskap",[f.Danish]:"Videnskab"},Nature:{[f.English]:"Nature",[f.Swedish]:"Natur",[f.Danish]:"Natur"},War:{[f.English]:"War",[f.Swedish]:"Krig",[f.Danish]:"Krig"},"Sci-Fi":{[f.English]:"Sci-Fi",[f.Swedish]:"Sci-fi",[f.Danish]:"Sci-fi"},Documentary:{[f.English]:"Documentary",[f.Swedish]:"Dokumentär",[f.Danish]:"Dokumentar"},"Stand-up":{[f.English]:"Stand-up",[f.Swedish]:"Standup",[f.Danish]:"Stand-up"},"Talk Show":{[f.English]:"Talk Show",[f.Swedish]:"Talkshow",[f.Danish]:"Talkshow"},Fantasy:{[f.English]:"Fantasy",[f.Swedish]:"Fantasy",[f.Danish]:"Fantasy"},History:{[f.English]:"History",[f.Swedish]:"Historia",[f.Danish]:"Historie"},Adventure:{[f.English]:"Adventure",[f.Swedish]:"Äventyr",[f.Danish]:"Eventyr"},Action:{[f.English]:"Action",[f.Swedish]:"Action",[f.Danish]:"Action"},Horror:{[f.English]:"Horror",[f.Swedish]:"Skräck",[f.Danish]:"Gyser"},Comedy:{[f.English]:"Comedy",[f.Swedish]:"Komedi",[f.Danish]:"Komedie"},Biography:{[f.English]:"Biography",[f.Swedish]:"Biografi",[f.Danish]:"Biografi"},Music:{[f.English]:"Music",[f.Swedish]:"Musik",[f.Danish]:"Musik"},Sport:{[f.English]:"Sport",[f.Swedish]:"Sport",[f.Danish]:"Sport"},Romance:{[f.English]:"Romance",[f.Swedish]:"Romantik",[f.Danish]:"Romantik"},Kids:{[f.English]:"Kids",[f.Swedish]:"Barn",[f.Danish]:"Børn"},Lifestyle:{[f.English]:"Lifestyle",[f.Swedish]:"Livsstil",[f.Danish]:"Livsstil"},Musical:{[f.English]:"Musical",[f.Swedish]:"Musikal",[f.Danish]:"Musical"},Anime:{[f.English]:"Anime",[f.Swedish]:"Anime",[f.Danish]:"Anime"},Family:{[f.English]:"Family",[f.Swedish]:"Familj",[f.Danish]:"Familie"}};function ee(t,e=Ka()){var i;return((i=Id[t])==null?void 0:i[e])||t}const Ad="1304688689641511";function Qa(t,e={}){const i=new Image;i.src=Ld(t,e||{})}function Ld(t,e={}){const i=Object.fromEntries(Object.entries(e).map(([r,l])=>[`cd[${r}]`,l])),a={id:Ad,ev:t,...i};return`https://www.facebook.com/tr?${Object.keys(a).map(r=>r+"="+a[r]).join("&")}`}function uo(t,e={}){return()=>{Xe(()=>Qa(t,e))}}function Md(t,e={}){return i=>{const a=()=>Qa(t,e);Xe(()=>(i.addEventListener("click",a),()=>i.removeEventListener("click",a)))}}var Dd=T('<div class="genre svelte-1mphbln"> </div>'),qd=T('<button class="genre expand svelte-1mphbln"> </button>'),Od=T("<!> <!>",1);function Nd(t,e){ae(e,!0);let i=G(!1);const a=B(()=>o(i)?e.genres:[e.genres[0]]);var n=Od(),r=J(n);Ce(r,17,()=>o(a),Ae,(s,d)=>{const p=B(()=>{var m;return(m=$n.find(y=>y.slug===o(d)))==null?void 0:m.name});var u=me(),v=J(u);{var h=m=>{var y=Dd(),g=k(y);Ba(y,()=>no()?uo(fa.GenreInterest,{genre:o(p)}):null),F(b=>K(g,b),[()=>ee(o(p))]),w(m,y)};H(v,m=>{o(p)&&m(h)})}w(s,u)});var l=C(r,2);{var c=s=>{var d=qd();d.__click=()=>q(i,!0);var p=k(d);F(()=>K(p,`+${e.genres.length-1}`)),w(s,d)};H(l,s=>{!o(i)&&e.genres.length>1&&s(c)})}w(t,n),ne()}de(["click"]);function vo(t){const e=t.filter(a=>!!a.logo_url);let i=[];for(const a of e){let n=a;const r=i.find(s=>s.name===n.name),l=r==null?void 0:r.extra_info.category,c=n.extra_info.category;(l==="RENT"&&c==="BUY"||l==="BUY"&&c==="RENT")&&(i=i.filter(s=>s.name!==n.name),n={...n,extra_info:{...n.extra_info,category:"TVOD"}}),i.push(n)}return i}function ze(t,e=1){t.role="heading",t.ariaLevel=e.toString()}var Rd=T('<div class="tooltip-content svelte-1ldthr7" role="paragraph"> </div>'),Bd=T('<button class="tooltip svelte-1ldthr7" data-testid="disclaimer"><div aria-label="Disclaimer">i</div> <!></button>');function nr(t,e){const i=U(e,"small",3,!1);let a=G(!1);function n(p){p.preventDefault(),p.stopPropagation(),q(a,!o(a))}var r=Bd();r.__click=n;var l=k(r);let c;var s=C(l,2);{var d=p=>{var u=Rd(),v=k(u);F(()=>K(v,e.disclaimer)),qe(3,u,()=>_i,()=>({duration:50})),w(p,u)};H(s,p=>{o(a)&&p(d)})}F(()=>c=be(l,1,"disclaimer svelte-1ldthr7",null,c,{small:i()})),w(t,r)}de(["click"]);var Fd=T('<img alt="" data-playpilot-pixel="" class="svelte-16jzx4f"/>');function rr(t,e){ae(e,!0);let i=G(Me(Math.random()));var a=me();Se("updateconsent",De,()=>q(i,Math.random(),!0));var n=J(a);Ui(n,()=>o(i),r=>{var l=me(),c=J(l);{var s=d=>{var p=me(),u=J(p);Ce(u,17,()=>e.pixels,Ae,(v,h)=>{var m=Fd();F(()=>le(m,"src",o(h))),w(v,m)}),w(d,p)};H(c,d=>{gt("pixels")&&d(s)})}w(r,l)}),w(t,a),ne()}function $a(t){return t?t.replace("/src/img",""):null}function fo(t,e=null){return t!=null&&t.length?`${Ac}/${t}?${e?`class=${e}&`:""}optimizer=image`:""}var Vd=T('<span class="category svelte-13ka2ap" data-testid="category"> </span>'),Hd=T('<span class="cta svelte-13ka2ap"> </span>'),Ud=T('<div class="playlink-content svelte-13ka2ap"><img alt="" height="36" width="36" class="svelte-13ka2ap"/> <span class="name svelte-13ka2ap"> </span> <!> <!> <div class="action svelte-13ka2ap"> </div> <!></div> <!>',1);function ho(t,e){ae(e,!0);const i=U(e,"disclaimer",3,""),a=U(e,"hideCategory",3,!1),n=U(e,"onclick",3,()=>null),r=B(()=>e.playlink.name),l=B(()=>e.playlink.url),c=B(()=>e.playlink.logo_url),s=B(()=>e.playlink.highlighted),d=B(()=>e.playlink.cta_text),p=B(()=>e.playlink.action_text),u=B(()=>e.playlink.pixels),v=B(()=>e.playlink.extra_info.category),h=B(()=>no()&&!o(s)),m={AVOD:ee("Stream"),SVOD:ee("Stream"),BUY:ee("Buy"),RENT:ee("Rent"),TVOD:ee("Rent Or Buy")};let y=G(0);var g=me(),b=J(g);Pl(b,()=>{var _,x;return!((x=(_=window.PlayPilotLinkInjections)==null?void 0:_.config)!=null&&x.require_affiliate_consent)||gt("affiliate")?"a":"span"},!1,(_,x)=>{Ba(_,()=>o(h)?uo(fa.ProviderInterest,{provider:e.playlink.slug}):null),Ba(_,()=>o(h)?Md(fa.ProviderClick,{provider:e.playlink.slug}):null),Ml(_,()=>({onclick:n(),href:o(l),target:"_blank",class:"playlink","data-playlink":o(r),rel:"sponsored",[Wi]:{highlighted:o(s),"no-category":a(),"no-subtext":!o(d)&&a()}}),void 0,void 0,void 0,"svelte-13ka2ap");var S=Ud(),L=J(S);let I;var j=k(L),V=C(j,2),M=k(V),z=C(V,2);{var D=te=>{var Y=Vd(),O=k(Y);F(Z=>K(O,Z),[()=>m[o(v)]||ee("Stream")]),w(te,Y)};H(z,te=>{a()||te(D)})}var A=C(z,2);{var P=te=>{var Y=Hd(),O=k(Y);F(()=>K(O,o(d))),w(te,Y)};H(A,te=>{o(d)&&te(P)})}var N=C(A,2),R=k(N),X=C(N,2);{var W=te=>{nr(te,{get disclaimer(){return i()},small:!0})};H(X,te=>{i()&&te(W)})}var Q=C(L,2);{var oe=te=>{rr(te,{get pixels(){return o(u)}})};H(Q,te=>{var Y;(Y=o(u))!=null&&Y.length&&te(oe)})}F((te,Y)=>{I=He(L,"",I,{"--action-width":o(y)?`${o(y)}px`:null}),le(j,"src",te),K(M,o(r)),K(R,Y)},[()=>$a(o(c)),()=>o(p)||ee("Watch")]),ti(N,"clientWidth",te=>q(y,te)),w(x,S)}),w(t,g),ne()}var Wd=T('<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>'),Gd=T('<div class="empty svelte-1fykz2q" data-testid="playlinks-empty"> </div>'),Kd=T('<div class="heading category svelte-1fykz2q"> </div>'),Zd=T("<!> <!>",1),Yd=T("<!> <div></div>",1),Jd=T('<div class="heading svelte-1fykz2q"> </div> <!> <!>',1);function Xd(t,e){var S,L;ae(e,!0);const i=_n("scope")==="modal",a=ha("card"),n=!!((L=(S=window.PlayPilotLinkInjections)==null?void 0:S.config)!=null&&L.categorize_playlinks);let r=G(0);const l=B(()=>vo(e.playlinks)),c=B(()=>u(e.playlinks)),s=B(()=>n?v(o(c)):[["",o(l)]]),d=B(()=>o(r)<500||!!a||o(l).length===1);function p(I){fe(i?ve.TitleModalPlaylinkClick:ve.TitlePopoverPlaylinkClick,e.title,{playlink:I})}function u(I){const j={};for(const V of I){const{category:M}=V.extra_info;M in j||(j[M]=[]),j[M].push(V)}return j}function v(I){const j=["AVOD","SVOD","RENT","BUY"],V=[];for(const z of j)I[z]&&V.push([z,I[z]]);const M=[];for(const z of Object.values(I))for(const D of z)j.includes(D.extra_info.category)||M.push(D);return[...V,["Other",M]]}var h=Jd(),m=J(h),y=k(m);jt(m,(I,j)=>ze==null?void 0:ze(I,j),()=>3);var g=C(m,2);{var b=I=>{var j=Wd(),V=k(j);F(M=>K(V,`${M??""} `),[()=>{var M,z;return((z=(M=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:M.config)==null?void 0:z.playlinks_disclaimer_text)||ee("Commission Disclaimer")}]),w(I,j)},_=I=>{var j=Gd(),V=k(j);F(M=>K(V,M),[()=>ee("Title Unavailable")]),w(I,j)};H(g,I=>{o(l).length?I(b):I(_,!1)})}var x=C(g,2);Ce(x,17,()=>o(s),Ae,(I,j,V,M)=>{var z=B(()=>Pa(o(j),2));let D=()=>o(z)[0],A=()=>o(z)[1];var P=Yd(),N=J(P);{var R=Q=>{var oe=Kd(),te=k(oe);jt(oe,(Y,O)=>ze==null?void 0:ze(Y,O),()=>4),F(Y=>K(te,Y),[()=>ee(`Category: ${D()}`)]),w(Q,oe)};H(N,Q=>{D()&&A().length&&Q(R)})}var X=C(N,2);let W;Ce(X,21,A,Ae,(Q,oe,te)=>{var Y=Zd(),O=J(Y);ho(O,{get playlink(){return o(oe)},onclick:()=>p(o(oe).name)});var Z=C(O,2);{var se=ce=>{{let pe=B(()=>dd(a)),ue=B(()=>a.disclaimer||"");ho(ce,{get playlink(){return o(pe)},onclick:()=>fe(ve.DisplayedAdPlaylickClick,e.title,{campaign_name:a.campaign_name}),hideCategory:!0,get disclaimer(){return o(ue)}})}};H(Z,ce=>{a&&te===0&&ce(se)})}w(Q,Y)}),F(()=>{W=be(X,1,"playlinks svelte-1fykz2q",null,W,{list:o(d)}),le(X,"data-testid",`category-${D()??""}`)}),ti(X,"clientWidth",Q=>q(r,Q)),w(I,P)}),F(I=>K(y,I),[()=>ee("Where To Stream Online")]),w(t,h),ne()}var Qd=T('<button class="show-more svelte-7itcht">Show more</button>'),$d=T('<div class="paragraph svelte-7itcht" role="paragraph"> </div>'),ep=T('<div class="description svelte-7itcht"><span class="paragraph svelte-7itcht" role="paragraph"> <!> <!></span> <!></div>');function tp(t,e){ae(e,!0);const i=U(e,"blurb",3,""),a=U(e,"limit",3,200),n=U(e,"onclick",3,()=>null);let r=G(!1);const l=B(()=>e.text.slice(0,a()));function c(){q(r,!0),n()()}var s=ep(),d=k(s),p=k(d),u=C(p);{var v=b=>{var _=ei("...");w(b,_)};H(u,b=>{!o(r)&&e.text.length>a()&&b(v)})}var h=C(u,2);{var m=b=>{var _=Qd();_.__click=()=>c(),w(b,_)};H(h,b=>{!o(r)&&(e.text.length>a()||i())&&b(m)})}var y=C(d,2);{var g=b=>{var _=$d(),x=k(_);F(()=>K(x,i())),w(b,_)};H(y,b=>{o(r)&&b(g)})}F(()=>K(p,o(r)?e.text:o(l))),w(t,s),ne()}de(["click"]);var ip=ot('<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 lr(t,e){const i=U(e,"size",3,14);var a=ip();F(()=>{le(a,"width",i()),le(a,"height",i())}),w(t,a)}async function or(t=5e3){var i,a,n,r;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"),ap(s),s}catch(l){return fe(ve.RegionRequestFailed,null,{message:l.message}),((r=(n=window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.fallback_region)||""}}function ap(t){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.region=t)}async function np(t,{page:e=1}={}){const i={language:Ka(),region:await or(),include_count:"false",participant_sid:t.sid,page:e};return(await Ut(`/titles/browse?api-token=${ii()}&${Jn(i)}`)).results}async function rp(t){return(await Ut(`/participants/browse?api-token=${ii()}&title_sid=${t.sid}`)).results}var lp=T('<div tabindex="-1"><div tabindex="0" class="slider-content svelte-1gs8ha8"><!></div></div> <!>',1);function op(t,e){ae(e,!0);let i=U(e,"gap",3,"0"),a=U(e,"fill",3,!0),n=U(e,"transitionDuration",3,300),r=U(e,"threshold",3,30),l=U(e,"currentIndex",15,0),c=U(e,"shown",31,()=>Me([])),s=U(e,"sliderWidth",15,0),d=U(e,"currentScrollPosition",15,0),p=U(e,"maxWidth",15,0),u=U(e,"reachedEnd",15,!1),v=U(e,"distanceToEnd",15,0),h=U(e,"allowWheel",3,!1),m=U(e,"end",3,()=>null),y=U(e,"change",3,$=>null),g=U(e,"onend",19,m),b=U(e,"onchange",19,y),_=G(!1),x=G(!1),S=0,L=0,I=G(void 0),j=G(void 0),V=null,M=null;Xe(()=>{o(j)&&Q(),o(j)&&v(p()-d()-s())}),ht(O),Wa(()=>{V&&V.disconnect()});function z($){const we=o(j).children.length,je=Math.max(0,Math.min($,we-1));X({setIndex:je}),Q()}function D($){Z($.target)&&($.preventDefault(),S=oe($),q(_,!0))}function A(){if(o(_)){if(!o(x))X({setIndex:l()});else{const $=d()-L,we=$>0?1:-1;$!=0&&X({direction:we})}q(_,!1),q(x,!1)}}function P($){if(!o(_))return;q(x,Math.abs(d()-L)>r());const we=oe($);W(L+(S-we)),Q()}function N($){if(!h())return;const{deltaX:we,deltaY:je}=$;if(Math.abs(we)<Math.abs(je))return;$.preventDefault();const nt=d()+we*20*.02;W(nt),Q(),M&&clearTimeout(M),M=setTimeout(()=>{X({direction:we>0?1:-1})},100)}function R($){Z(document.activeElement)&&($.key=="ArrowLeft"&&z(l()-1),$.key=="ArrowRight"&&z(l()+1))}function X({setIndex:$=-1,direction:we=1}={}){const je=te(),ia=l();l(0);let nt;for(nt=0;nt<je.length;nt++)if($!=-1){if(nt>=$)break}else if(we>0&&je[nt]>d()||we<0&&je[nt+1]>d())break;l(Math.min(nt,Y().length-1)),W(je[l()],!0),L=d(),b()&&l()!=ia&&b()(l())}function W($,we=!1){d($);const je=p()-s();u(d()>=je),u()&&(g()&&g()(),a()&&we&&d(je))}function Q(){const $=te();Array.from($).forEach((we,je)=>{d()+s()<we||c().includes(je)||c([...c(),je])})}function oe($){var we,je;return $.pageX??((je=(we=$.touches)==null?void 0:we[0])==null?void 0:je.pageX)}function te(){return Y().map($=>$.offsetLeft)}function Y(){return Array.from(o(j).children).filter($=>$ instanceof HTMLElement).filter($=>$.src!="about:blank")}function O(){V=new ResizeObserver($=>{for(const we of $){const je=Array.isArray(we.contentBoxSize)?we.contentBoxSize[0]:we.contentBoxSize;p(je.inlineSize)}}),V.observe(o(j))}function Z($){return $===o(I)||($==null?void 0:$.closest(".slider"))===o(I)}var se={setIndex:z},ce=lp();Se("mousedown",De,D),Se("mouseup",De,A),Se("mousemove",De,P),Se("touchstart",De,D,void 0,!0),Se("touchend",De,A),Se("touchmove",De,P,void 0,!0),Se("keydown",De,R);var pe=J(ce);let ue;var Te=k(pe);let Ue;var Le=k(Te);Ve(Le,()=>e.children??Dt,()=>({sliderWidth:s(),shown:c(),currentIndex:l(),setIndex:z,currentScrollPosition:d(),maxWidth:p(),reachedEnd:u(),distanceToEnd:v()})),st(Te,$=>q(j,$),()=>o(j)),st(pe,$=>q(I,$),()=>o(I));var Kt=C(pe,2);return Ve(Kt,()=>e.controls??Dt,()=>({sliderWidth:s(),shown:c(),currentIndex:l(),setIndex:z,currentScrollPosition:d(),maxWidth:p(),reachedEnd:u(),distanceToEnd:v()})),F($=>{ue=be(pe,1,"slider svelte-1gs8ha8",null,ue,{dragging:o(_),"passed-threshold":o(x)}),Ue=He(Te,"",Ue,$)},[()=>({transform:`translateX(${d()*-1}px)`,"transition-duration":`${(o(_)?0:n())??""}ms`,"--gap":parseFloat(i()||"0")?i():null})]),Se("wheel",pe,N),ti(pe,"clientWidth",s),w(t,ce),ne(se)}var sp=T('<div class="heading svelte-1ayf7b5"> </div>'),cp=T('<button class="arrow left svelte-1ayf7b5" aria-label="Previous" aria-live="polite"><!></button>'),dp=T('<button class="arrow right svelte-1ayf7b5" aria-label="Next" aria-live="polite"><!></button>'),pp=T("<!> <!>",1),up=T('<!> <div class="rail svelte-1ayf7b5"><!></div>',1);function sr(t,e){const i=U(e,"heading",3,"");var a=up(),n=J(a);{var r=s=>{var d=sp(),p=k(d);jt(d,(u,v)=>ze==null?void 0:ze(u,v),()=>2),F(()=>K(p,i())),w(s,d)};H(n,s=>{i()&&s(r)})}var l=C(n,2),c=k(l);op(c,{allowWheel:!0,controls:(d,p)=>{let u=()=>p==null?void 0:p().setIndex,v=()=>p==null?void 0:p().currentIndex,h=()=>p==null?void 0:p().reachedEnd;var m=pp(),y=J(m);{var g=x=>{var S=cp();S.__click=()=>u()(v()-1);var L=k(S);ni(L,{direction:"left",title:"Previous"}),w(x,S)};H(y,x=>{v()>0&&x(g)})}var b=C(y,2);{var _=x=>{var S=dp();S.__click=()=>u()(v()+1);var L=k(S);ni(L,{title:"Next"}),w(x,S)};H(b,x=>{h()||x(_)})}w(d,m)},children:(d,p)=>{var u=me(),v=J(u);Ve(v,()=>e.children),w(d,u)},$$slots:{controls:!0,default:!0}}),w(t,a)}de(["click"]);var vp=T('<div class="character truncate svelte-zy7e3f"> </div>'),fp=T('<button class="participant svelte-zy7e3f" data-testid="participant"><span class="truncate svelte-zy7e3f"> </span> <!></button>'),hp=T('<div class="participant svelte-zy7e3f"></div>');function gp(t,e){ae(e,!0);function i(l){const c=ai(Kn(Kl(Gn()))),s={};for(const p of l){const u=Ya(c,ai(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){ri({event:l,type:"participant",data:c}),fe(ve.ParticipantClick,null,{title_source:e.title.original_title||e.title.title,participant:c.name})}var n=me(),r=J(n);Ra(r,()=>rp(e.title),l=>{{let c=B(()=>ee("Cast"));sr(l,{get heading(){return o(c)},children:(s,d)=>{var p=me(),u=J(p);Ce(u,16,()=>({length:5}),Ae,(v,h)=>{var m=hp();w(v,m)}),w(s,p)},$$slots:{default:!0}})}},(l,c)=>{var s=me(),d=J(s);{var p=u=>{{let v=B(()=>ee("Cast"));sr(u,{get heading(){return o(v)},children:(h,m)=>{var y=me(),g=J(y);Ce(g,17,()=>i(o(c)).slice(0,15),Ae,(b,_)=>{var x=fp();x.__click=V=>a(V,o(_));var S=k(x),L=k(S),I=C(S,2);{var j=V=>{var M=vp(),z=k(M);F(()=>K(z,o(_).character)),w(V,M)};H(I,V=>{o(_).character&&V(j)})}F(()=>K(L,o(_).name)),w(b,x)}),w(h,y)},$$slots:{default:!0}})}};H(d,u=>{var v;(v=o(c))!=null&&v.length&&u(p)})}w(l,s)}),w(t,n),ne()}de(["click"]);async function go(t={}){const e=ii();if(!e)throw new Error("No token was provided");return t={...t,language:Ka(),region:await or(),include_count:"false"},await Ut(`/titles/browse?api-token=${e}&`+Jn(t))}async function mp(t){return(await go({related_to_sid:t.sid})).results}var yp=T('<img class="svelte-p6g2a"/>');function en(t,e){ae(e,!0);const i=U(e,"width",3,96),a=U(e,"height",3,144),n=U(e,"lazy",3,!0),r=U(e,"onload",3,()=>null);var l=yp();F(c=>{le(l,"src",c),le(l,"alt",`Movie poster for '${e.title.title??""}'`),le(l,"width",i()),le(l,"height",a()),le(l,"loading",n()?"lazy":null)},[()=>$a(e.title.standing_poster)]),Se("error",l,({target:c})=>c.src=Lc),Se("load",l,function(...c){var s;(s=r())==null||s.apply(this,c)}),w(t,l),ne()}function cr(t){return`${jc}/${t.type}/${t.slug}/`}var bp=T('<div class="title svelte-12ph9f6" data-testid="title"><a class="poster svelte-12ph9f6"><!></a> <a class="heading svelte-12ph9f6"> </a></div>'),wp=T('<div class="title svelte-12ph9f6" data-testid="skeleton"><div class="poster svelte-12ph9f6"></div> <div class="heading svelte-12ph9f6"><span class="skeleton svelte-12ph9f6"> </span> <span class="skeleton svelte-12ph9f6"> </span></div></div>'),xp=T('<div class="titles"><!></div>');function _p(t,e){ae(e,!0);const i=U(e,"heading",3,""),a=U(e,"onclick",3,()=>null),r=_n("scope")==="popover"?_n("title"):null;function l(d,p){ri({event:d,data:p,returnToTitle:r}),a()(p)}var c=xp(),s=k(c);sr(s,{get heading(){return i()},children:(d,p)=>{var u=me(),v=J(u);Ra(v,()=>e.titles,h=>{var m=me(),y=J(m);Ce(y,16,()=>({length:8}),Ae,(g,b)=>{var _=wp();w(g,_)}),w(h,m)},(h,m)=>{var y=me(),g=J(y);Ce(g,17,()=>o(m),Ae,(b,_)=>{var x=bp(),S=k(x);S.__click=V=>l(V,o(_));var L=k(S);en(L,{get title(){return o(_)},width:96,height:144});var I=C(S,2);I.__click=V=>l(V,o(_));var j=k(I);F((V,M)=>{le(S,"href",V),le(I,"href",M),K(j,o(_).title)},[()=>cr(o(_)),()=>cr(o(_))]),w(b,x)}),w(h,y)}),w(d,u)},$$slots:{default:!0}}),w(t,c),ne()}de(["click"]);function kp(t,e){ae(e,!0);const i=mp(e.title);{let a=B(()=>ee("Similar Titles"));_p(t,{get titles(){return i},get heading(){return o(a)},onclick:n=>fe(ve.SimilarTitleClick,n,{title_source:e.title.original_title||e.title.title})})}ne()}function Sp(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)}ks();var Ep=ot('<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 Tp(t){var e=Ep();w(t,e)}var Pp=ot('<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 Cp(t){var e=Pp();w(t,e)}var zp=ot('<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 jp(t){var e=zp();w(t,e)}var Ip=T("<button><!></button>");function Ki(t,e){const i=U(e,"variant",3,"filled"),a=U(e,"size",3,"base"),n=U(e,"label",3,null),r=U(e,"active",3,!1);var l=Ip();let c;l.__click=function(...d){var p;(p=e.onclick)==null||p.apply(this,d)};var s=k(l);Ve(s,()=>e.children??Dt),F(()=>{c=be(l,1,`button ${i()??""} ${a()??""}`,"svelte-5bqh67",c,{active:r()}),le(l,"aria-label",n())}),w(t,l)}de(["click"]);var Ap=ot('<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 Lp(t){var e=Ap();w(t,e)}var Mp=T('<button class="svelte-827qd7"><!></button>'),Dp=T('<div class="content svelte-827qd7"><!></div>'),qp=T("<div><!> <!></div>");function Op(t,e){const i=U(e,"label",3,""),a=U(e,"align",3,"right");let n=G(!1),r=G(null);function l(h){var y;h.currentTarget===((y=o(r))==null?void 0:y.querySelector("button"))&&h.stopPropagation(),q(n,!o(n))}var c=qp();Se("click",De,()=>q(n,!1));var s=k(c);{var d=h=>{var m=me(),y=J(m);Ve(y,()=>e.button,()=>({toggle:l})),w(h,m)},p=h=>{var m=Mp();m.__click=l;var y=k(m);Lp(y),F(()=>{le(m,"aria-label",i()),le(m,"aria-expanded",o(n))}),w(h,m)};H(s,h=>{e.button?h(d):h(p,!1)})}var u=C(s,2);{var v=h=>{var m=Dp(),y=k(m);Ve(y,()=>e.children),qe(1,m,()=>ma,()=>({duration:50,start:.85})),w(h,m)};H(u,h=>{o(n)&&h(v)})}st(c,h=>q(r,h),()=>o(r)),F(()=>be(c,1,`context-menu ${a()??""}`,"svelte-827qd7")),w(t,c)}de(["click"]);var Np=T("<!> ",1),Rp=T('<button class="item svelte-npfy12"><!> </button> <button class="item svelte-npfy12"><!> </button>',1);function Bp(t,e){ae(e,!0);let i=U(e,"url",7);const n=window.innerWidth<wi&&typeof navigator.share<"u";ht(()=>{i(i()+"?utm_source=tpi")});function r(s,d){if(!n){d(s);return}fe(ve.ShareTitle,null,{title:e.title,url:xi(),method:"native"}),navigator.share({title:e.title,url:i()})}function l(){fe(ve.ShareTitle,null,{title:e.title,url:xi(),method:"copy"}),Sp(i())}function c(){fe(ve.ShareTitle,null,{title:e.title,url:xi(),method:"email"}),window.location.href=`mailto:?body=${i()}`}Op(t,{button:(d,p)=>{let u=()=>p==null?void 0:p().toggle;Ki(d,{onclick:v=>r(v,u()),children:(v,h)=>{var m=Np(),y=J(m);Tp(y);var g=C(y);F(b=>K(g,` ${b??""}`),[()=>ee("Share")]),w(v,m)},$$slots:{default:!0}})},children:(d,p)=>{var u=Rp(),v=J(u);v.__click=l;var h=k(v);Cp(h);var m=C(h),y=C(v,2);y.__click=c;var g=k(y);jp(g);var b=C(g);F((_,x)=>{K(m,` ${_??""}`),K(b,` ${x??""}`)},[()=>ee("Copy URL"),()=>ee("Email")]),w(d,u)},$$slots:{button:!0,default:!0}}),ne()}de(["click"]);var Fp=T('<iframe width="600" height="338" title="YouTube video player" frameborder="0" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen="" class="svelte-f0c4xl"></iframe>'),Vp=T('<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 Hp(t,e){var h;ae(e,!0);const i=U(e,"embeddable_url",3,""),a=B(()=>r(i())),n=((h=window==null?void 0:window.getComputedStyle(document.body).getPropertyValue("--playpilot-primary"))==null?void 0:h.replace("#",""))||"fa548a";function r(m){const y=/^.*((youtu.be\/)|(v\/)|(\/u\/\w\/)|(embed\/)|(watch\?))\??v?=?([^#&?]*).*/,g=m.match(y);return(g==null?void 0:g[7])||null}var l=Vp(),c=k(l);{var s=m=>{var y=Fp();F(()=>le(y,"src",`https://video.playpilot.net/?video_id=${o(a)??""}&color=${n}&autoplay=true&playsinline=true&controls=play,mute,fullscreen,progress,current-time`)),w(m,y)},d=m=>{var y=ei("Something went wrong");w(m,y)};H(c,m=>{o(a)?m(s):m(d,!1)})}var p=C(c,2);p.__click=function(...m){var y;(y=e.onclose)==null||y.apply(this,m)};var u=C(p,2);u.__click=function(...m){var y;(y=e.onclose)==null||y.apply(this,m)};var v=k(u);so(v,{size:24}),qe(3,l,()=>_i,()=>({duration:100})),w(t,l),ne()}de(["click"]);let tn={};function Up(t){const e=fr(),i={onclose:Wp,embeddable_url:t.embeddable_url||""};tn=Vt(Hp,{target:e,props:i})}function Wp(){tn&&(Vi(tn,{outro:!0}),tn=null)}var Gp=ot('<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 Kp(t){var e=Gp();w(t,e)}var Zp=T("<!> ",1);function Yp(t,e){ae(e,!0);function i(){Up(e.title),fe(ve.TrailerClick,e.title)}Ki(t,{onclick:i,children:(a,n)=>{var r=Zp(),l=J(r);Kp(l);var c=C(l);F(s=>K(c,` ${s??""}`),[()=>ee("Watch Trailer")]),w(a,r)},$$slots:{default:!0}}),ne()}var Jp=T("<div> </div>"),Xp=T('<img alt=""/>'),Qp=T('<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 class="background svelte-16ajinh"><!></div>',1);function mo(t,e){var pe;ae(e,!0);const i=U(e,"small",3,!1),a=!!((pe=window.PlayPilotLinkInjections)!=null&&pe.no_affiliate);kn("title",e.title);const n=B(()=>(!i()||a)&&e.title.description);let r=G(!1),l=G(!1),c=G(!1);var s=Qp(),d=J(s);let p;var u=k(d),v=k(u);let h;var m=k(v);en(m,{get title(){return e.title},onload:()=>q(r,!0),lazy:!1});var y=C(v,2);let g;var b=k(y);jt(y,(ue,Te)=>ze==null?void 0:ze(ue,Te),()=>2);var _=C(y,2),x=k(_),S=k(x);lr(S,{});var L=C(S),I=C(x,2);Nd(I,{get genres(){return e.title.genres}});var j=C(I,2),V=k(j),M=C(j,2),z=k(M),D=C(M,2);{var A=ue=>{var Te=Jp(),Ue=k(Te);F(Le=>K(Ue,`${e.title.length??""} ${Le??""}`),[()=>ee("Minutes")]),w(ue,Te)};H(D,ue=>{!i()&&e.title.length&&ue(A)})}var P=C(_,2),N=k(P);{var R=ue=>{Yp(ue,{get title(){return e.title}})};H(N,ue=>{e.title.embeddable_url&&ue(R)})}var X=C(N,2);{let ue=B(()=>cr(e.title));Bp(X,{get title(){return e.title.title},get url(){return o(ue)}})}var W=C(u,2),Q=k(W);{var oe=ue=>{tp(ue,{get text(){return e.title.description},get blurb(){return e.title.blurb},onclick:()=>fe(ve.ExpandTitleDescription,e.title)})};H(Q,ue=>{o(n)&&ue(oe)})}var te=C(Q,2);{var Y=ue=>{Xd(ue,{get playlinks(){return e.title.providers},get title(){return e.title}})};H(te,ue=>{a||ue(Y)})}var O=C(te,2);gp(O,{get title(){return e.title}});var Z=C(O,2);kp(Z,{get title(){return e.title}});var se=C(d,2),ce=k(se);Ui(ce,()=>o(c),ue=>{var Te=Xp();let Ue;F(Le=>{le(Te,"src",Le),Ue=be(Te,1,"svelte-16ajinh",null,Ue,{loaded:o(l),blur:o(c)})},[()=>$a(o(c)?e.title.standing_poster:e.title.medium_poster)]),Se("load",Te,()=>q(l,!0)),Se("error",Te,()=>q(c,!0)),w(ue,Te)}),F(ue=>{p=be(d,1,"content svelte-16ajinh",null,p,{small:i()}),h=be(v,1,"poster svelte-16ajinh",null,h,{loaded:o(r)}),g=be(y,1,"heading svelte-16ajinh",null,g,{truncate:i()}),K(b,e.title.title),K(L,` ${e.title.imdb_score??""}`),K(V,e.title.year),K(z,ue)},[()=>ee(`Type: ${e.title.type}`)]),w(t,s),ne()}function Zi(t,e){const{onclick:i}=e;function a(n){return n.button!==1?null:(i(n),n)}return t.addEventListener("mouseup",a),{destroy(){t.removeEventListener("mouseup",a)}}}const yo={TopScrollBackground:"topscrollBackgroundMobile",TopScrollContent:"8by1x23"},dr={TopScrollFormat:{key:"top_scroll_format",numberOfVariants:2,variantNames:["Separated","Inline"]}};function $p({key:t}){var a,n,r;if(!gt("tracking"))return 0;const e=(n=(a=window.PlayPilotLinkInjections)==null?void 0:a.split_test_identifiers)==null?void 0:n[t];if(e!==void 0)return e;(r=window.PlayPilotLinkInjections)!=null&&r.split_test_identifiers||(window.PlayPilotLinkInjections.split_test_identifiers={});const i=Math.random();return window.PlayPilotLinkInjections.split_test_identifiers[t]=i,i}function bo(t){const e=$p(t);return Math.floor(e*t.numberOfVariants)}function eu(t){var i;const e=bo(t);return((i=t.variantNames)==null?void 0:i[e])||e.toString()}function tu(t,e=1){return gt("tracking")?bo(t)===e:!1}function iu(t){const e=eu(t);fe(ve.SplitTestView,null,{key:t.key,variant:e})}var au=T('<img class="content-image svelte-1mt6g1y" width="728" height="90"/>'),nu=T('<img class="logo svelte-1mt6g1y" alt="" width="50" height="50"/>'),ru=T('<button class="button svelte-1mt6g1y"> </button>'),lu=T('<!> <p class="tagline svelte-1mt6g1y"> </p> <!>',1),ou=T('<div class="background svelte-1mt6g1y"></div>'),su=T("<!> <!>",1),cu=T('<a target="_blank" tabindex="-1" rel="sponsored"><div class="content svelte-1mt6g1y"><!></div> <!></a>');function wo(t,e){ae(e,!0),fe(ve.TopScrollView,null,{campaign_name:e.campaign.campaign_name}),iu(dr.TopScrollFormat);const i=B(()=>e.campaign.disclaimer),a=B(()=>e.campaign.content),n=B(()=>e.campaign.cta),r=B(()=>o(a).format),l=B(()=>o(a).header),c=B(()=>o(a).header_logo),s=B(()=>o(a).image_uuid),d=B(()=>o(n).header),p=B(()=>o(n).url),u=B(()=>o(r)==="large"),v=B(()=>fo(o(s),yo.TopScrollBackground)),h=B(()=>fo(o(s),yo.TopScrollContent));let m=G(0);function y(){fe(ve.TopScrollClick,null,{campaign_name:e.campaign.campaign_name})}var g=cu();g.__click=y;let b,_;var x=k(g),S=k(x);{var L=M=>{var z=au();F(()=>{le(z,"src",o(h)),le(z,"alt",o(l))}),w(M,z)},I=M=>{var z=lu(),D=J(z);{var A=W=>{var Q=nu();F(()=>le(Q,"src",o(c))),w(W,Q)};H(D,W=>{o(c)&&W(A)})}var P=C(D,2),N=k(P),R=C(P,2);{var X=W=>{var Q=ru(),oe=k(Q);F(()=>K(oe,o(d))),w(W,Q)};H(R,W=>{o(d)&&W(X)})}F(()=>K(N,o(l))),w(M,z)};H(S,M=>{o(u)?M(L):M(I,!1)})}var j=C(x,2);{var V=M=>{var z=su(),D=J(z);{var A=R=>{var X=ou();let W;F(()=>W=He(X,"",W,{"--background":`url('${o(v)??""}')`})),w(R,X)};H(D,R=>{o(s)&&R(A)})}var P=C(D,2);{var N=R=>{nr(R,{get disclaimer(){return o(i)}})};H(P,R=>{o(i)&&R(N)})}w(M,z)};H(j,M=>{o(u)||M(V)})}jt(g,(M,z)=>Zi==null?void 0:Zi(M,z),()=>({onclick:y})),yi(()=>ti(g,"clientWidth",M=>q(m,M))),F(()=>{le(g,"href",o(p)),b=be(g,1,"top-scroll svelte-1mt6g1y",null,b,{simple:o(u)}),_=He(g,"",_,{"--width":`${o(m)??""}px`})}),w(t,g),ne()}de(["click"]);var du=T('<div class="content svelte-r7ubzi"><!></div>'),pu=T('<div class="tooltip svelte-r7ubzi" data-testid="tooltip"><!> <!></div>');function uu(t,e){let i=G(!1);var a=pu();a.__touchstart=()=>q(i,!o(i));var n=k(a);Ve(n,()=>e.children);var r=C(n,2);{var l=c=>{var s=du(),d=k(s);Ve(d,()=>e.content),qe(1,s,()=>_i,()=>({duration:100})),w(c,s)};H(r,c=>{o(i)&&c(l)})}Se("mouseenter",a,()=>q(i,!0)),Se("mouseleave",a,()=>q(i,!1)),w(t,a)}de(["touchstart"]);var vu=T('<div class="info svelte-qcpiki"><!></div>'),fu=T('<img class="logo svelte-qcpiki" alt="" height="40" width="40"/>'),hu=T('<span class="name svelte-qcpiki"> </span>'),gu=T('<div class="subheader svelte-qcpiki"> </div>'),mu=T('<div class="action svelte-qcpiki"> </div>'),yu=T('<div class="cta svelte-qcpiki"><!> <div><!> <!></div> <!></div>'),bu=T('<img class="background svelte-qcpiki" alt=""/>'),wu=T('<video class="background svelte-qcpiki" autoplay playsinline="" loop><source type="video/mp4"/> <track kind="captions"/></video>',2),xu=T('<div class="disclaimer svelte-qcpiki"><!></div>'),_u=T('<a target="_blank" rel="sponsored"><!> <!> <!> <!></a>');function xo(t,e){ae(e,!0);const i=U(e,"compact",3,!1),a=B(()=>e.campaign.disclaimer),n=B(()=>e.campaign.content),r=B(()=>e.campaign.cta),l=B(()=>e.campaign.campaign_type),c=B(()=>o(n).header),s=B(()=>o(n).subheader),d=B(()=>o(n).header_logo),p=B(()=>o(n).image),u=B(()=>o(n).video),v=B(()=>o(r).header),h=B(()=>o(r).url),m=B(()=>o(r).subheader);let y=G(0);fe(ve.DisplayAdView,null,{campaign_name:e.campaign.campaign_name});function g(){fe(ve.DisplayAdClick,null,{campaign_name:e.campaign.campaign_name})}var b=_u();let _;b.__click=g;var x=k(b);{var S=A=>{var P=vu(),N=k(P);{var R=W=>{uu(W,{content:oe=>{var te=ei();F(()=>K(te,o(m))),w(oe,te)},children:(oe,te)=>{var Y=ei("Ad");w(oe,Y)},$$slots:{content:!0,default:!0}})},X=W=>{var Q=ei();F(()=>K(Q,o(m))),w(W,Q)};H(N,W=>{i()?W(R):W(X,!1)})}w(A,P)};H(x,A=>{o(m)&&A(S)})}var L=C(x,2);{var I=A=>{var P=yu(),N=k(P);{var R=Z=>{var se=fu();F(()=>le(se,"src",o(d))),w(Z,se)};H(N,Z=>{o(d)&&Z(R)})}var X=C(N,2),W=k(X);{var Q=Z=>{var se=hu(),ce=k(se);F(()=>K(ce,o(c))),w(Z,se)};H(W,Z=>{o(c)&&Z(Q)})}var oe=C(W,2);{var te=Z=>{var se=gu(),ce=k(se);F(()=>K(ce,o(s))),w(Z,se)};H(oe,Z=>{o(s)&&Z(te)})}var Y=C(X,2);{var O=Z=>{var se=mu(),ce=k(se);F(()=>K(ce,o(v))),w(Z,se)};H(Y,Z=>{o(v)&&Z(O)})}ti(P,"clientHeight",Z=>q(y,Z)),w(A,P)};H(L,A=>{(o(d)||o(c)||o(s)||o(v))&&A(I)})}var j=C(L,2);{var V=A=>{var P=bu();F(()=>le(P,"src",o(p))),w(A,P)},M=A=>{var P=me(),N=J(P);{var R=X=>{var W=wu();W.muted=!0;var Q=k(W);F(()=>le(Q,"src",o(u))),w(X,W)};H(N,X=>{o(l)==="video"&&o(u)&&X(R)},!0)}w(A,P)};H(j,A=>{o(l)==="image"&&o(p)?A(V):A(M,!1)})}var z=C(j,2);{var D=A=>{var P=xu();let N;var R=k(P);nr(R,{get disclaimer(){return o(a)}}),F(()=>N=He(P,"",N,{"--offset":`${o(y)??""}px`})),w(A,P)};H(z,A=>{o(a)&&A(D)})}jt(b,(A,P)=>Zi==null?void 0:Zi(A,P),()=>({onclick:g})),F(()=>{le(b,"href",o(h)),_=be(b,1,"display svelte-qcpiki",null,_,{compact:i()})}),w(t,b),ne()}de(["click"]);var ku=T('<button class="call-to-action svelte-1677ll3"><div><strong class="svelte-1677ll3">Looking for something else?</strong> <div>Use our streamingguide</div></div> <div class="arrow svelte-1677ll3"><!></div></button>');function Su(t,e){ae(e,!1),Un();var i=ku();i.__click=()=>ri({type:"explore"});var a=C(k(i),2),n=k(a);ni(n,{}),w(t,i),ne()}de(["click"]);function Eu(t,e){var p,u;ae(e,!0);const i=v=>{var h=me(),m=J(h);{var y=b=>{wo(b,{get campaign(){return r}})},g=b=>{Su(b,{})};H(m,b=>{r?b(y):b(g,!1)})}w(v,h)},a=v=>{var h=me(),m=J(h);{var y=g=>{xo(g,{get campaign(){return l}})};H(m,g=>{l&&g(y)})}w(v,h)},n=U(e,"initialScrollPosition",3,0),r=ha("top_scroll"),l=ha("card"),c=(u=(p=window.PlayPilotLinkInjections)==null?void 0:p.config)==null?void 0:u.explore_insert_cta_in_tpi;let s=!1;fe(ve.TitleModalView,e.title),ht(()=>{const v=Date.now();return()=>fe(ve.TitleModalClose,e.title,{time_spent:Date.now()-v})});function d(){s||(fe(ve.TitleModalScroll,e.title),s=!0)}{let v=B(()=>r||c?i:null),h=B(()=>l?a:null);ar(t,{onscroll:d,get initialScrollPosition(){return n()},get bubble(){return o(v)},get prepend(){return o(h)},tall:!0,children:(m,y)=>{mo(m,{get title(){return e.title}})},$$slots:{default:!0}})}ne()}var Tu=T('<a target="_blank" class="playlink svelte-1tx3tz8" rel="sponsored"><img class="svelte-1tx3tz8"/> <!></a>');function Pu(t,e){ae(e,!0);const i=U(e,"size",3,30),a=U(e,"onclick",3,()=>null),n=B(()=>e.playlink.name),r=B(()=>e.playlink.url),l=B(()=>e.playlink.logo_url),c=B(()=>e.playlink.pixels);var s=Tu();s.__click=function(...h){var m;(m=a())==null||m.apply(this,h)};let d;var p=k(s),u=C(p,2);{var v=h=>{rr(h,{get pixels(){return o(c)}})};H(u,h=>{var m;(m=o(c))!=null&&m.length&&h(v)})}F(h=>{le(s,"href",o(r)),le(s,"data-playlink",o(n)),d=He(s,"",d,{"--size":`${i()??""}px`}),le(p,"src",h),le(p,"alt",o(n)),le(p,"height",i()),le(p,"width",i())},[()=>$a(o(l))]),w(t,s),ne()}de(["click"]);var Cu=T('<span class="more svelte-1plv45z"> </span>'),zu=T('<div class="empty svelte-1plv45z" data-testid="playlinks-empty">Unavailable to stream</div>'),ju=T('<div class="playlinks svelte-1plv45z"><!> <!> <!></div>');function _o(t,e){ae(e,!0);const i=U(e,"size",3,30),a=B(()=>vo(e.playlinks).slice(0,3));function n(u){u.stopPropagation()}var r=ju(),l=k(r);Ce(l,17,()=>o(a),Ae,(u,v)=>{Pu(u,{get playlink(){return o(v)},onclick:n,get size(){return i()}})});var c=C(l,2);{var s=u=>{var v=Cu(),h=k(v);F(()=>K(h,`+${e.playlinks.length-o(a).length}`)),w(u,v)};H(c,u=>{e.playlinks.length>o(a).length&&u(s)})}var d=C(c,2);{var p=u=>{var v=zu();w(u,v)};H(d,u=>{e.playlinks.length||u(p)})}w(t,r),ne()}var Iu=T('<div class="svelte-pkkpyl"> </div>'),Au=T('<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 ko(t,e){var D;ae(e,!0);const i=U(e,"onclick",3,()=>null),a=!!((D=window.PlayPilotLinkInjections)!=null&&D.no_affiliate);var n=Au();n.__click=function(...A){var P;(P=i())==null||P.apply(this,A)};var r=k(n),l=k(r);en(l,{get title(){return e.title},width:30,height:43,lazy:!0});var c=C(r,2),s=k(c),d=k(s),p=C(s,2),u=k(p),v=k(u);lr(v,{size:11});var h=C(v),m=C(u,2),y=k(m),g=C(m,2),b=k(g),_=C(g,2);{var x=A=>{var P=Iu(),N=k(P);F(()=>K(N,`${e.title.length??""} min`)),w(A,P)};H(_,A=>{e.title.length&&A(x)})}var S=C(p,2);let L;var I=k(S),j=C(S,2);{var V=A=>{_o(A,{get playlinks(){return e.title.providers}})};H(j,A=>{a||A(V)})}var M=C(c,2),z=k(M);ni(z,{}),F(A=>{K(d,e.title.title),K(h,` ${e.title.imdb_score||"-"}`),K(y,e.title.year),K(b,A),L=be(S,1,"description svelte-pkkpyl",null,L,{large:a}),K(I,e.title.description)},[()=>ee(`Type: ${e.title.type}`)]),w(t,n),ne()}de(["click"]);var Lu=T(" <strong> </strong>",1),Mu=T('<p class="dates svelte-ke01cs"> <strong> </strong><!></p>'),Du=T('<div class="skeleton svelte-ke01cs" data-testid="skeleton"></div>'),qu=T('<button class="more svelte-ke01cs"> </button>'),Ou=T('<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 Nu(t,e){ae(e,!0);const i=B(()=>e.participant.name),a=B(()=>e.participant.birth_date),n=B(()=>e.participant.death_date),r=30;let l=G(Me([])),c=G(1),s=G(!0),d=G(!0);ht(u),gt("pixels")&&Qa(fa.ParticipantView,{participant:e.participant.name});function p(z){return new Date(z).toLocaleDateString(void 0,{year:"numeric",month:"long",day:"numeric"})}async function u(){q(d,!0);try{const z=await np(e.participant,{page:o(c)});q(l,[...o(l),...z],!0),q(s,(z==null?void 0:z.length)>=r)}catch{q(s,!1)}finally{q(d,!1),q(c,o(c)+1)}}var v=Ou(),h=J(v),m=k(h),y=k(m);jt(m,(z,D)=>ze==null?void 0:ze(z,D),()=>2);var g=C(m,2);{var b=z=>{var D=Mu(),A=k(D),P=C(A),N=k(P),R=C(P);{var X=W=>{var Q=Lu(),oe=J(Q),te=C(oe),Y=k(te);F((O,Z)=>{K(oe,`, ${O??""} `),K(Y,Z)},[()=>ee("Died On"),()=>p(o(n))]),w(W,Q)};H(R,W=>{o(n)&&W(X)})}F((W,Q)=>{K(A,`${W??""} `),K(N,Q)},[()=>ee("Born On"),()=>p(o(a))]),w(z,D)};H(g,z=>{o(a)&&z(b)})}var _=C(h,2),x=k(_),S=k(x);jt(x,(z,D)=>ze==null?void 0:ze(z,D),()=>3);var L=C(x,2),I=k(L);Ce(I,17,()=>o(l),Ae,(z,D)=>{ko(z,{get title(){return o(D)},onclick:A=>ri({event:A,data:o(D)})})});var j=C(I,2);{var V=z=>{var D=me(),A=J(D);Ce(A,16,()=>({length:6}),Ae,(P,N)=>{var R=Du();w(P,R)}),w(z,D)},M=z=>{var D=me(),A=J(D);{var P=N=>{var R=qu();R.__click=u;var X=k(R);F(W=>K(X,W),[()=>ee("Show More")]),w(N,R)};H(A,N=>{o(s)&&N(P)},!0)}w(z,D)};H(j,z=>{o(d)?z(V):z(M,!1)})}F(z=>{K(y,o(i)),K(S,z)},[()=>ee("Credits")]),w(t,v),ne()}de(["click"]);function Ru(t,e){ae(e,!0);const i=U(e,"initialScrollPosition",3,0);let a=G(0);fe(ve.ParticipantModalView,null,{participant:e.participant.name}),ht(()=>{const n=Date.now();return()=>fe(ve.ParticipantModalClose,null,{participant:e.participant.name,time_spent:Date.now()-n})}),ar(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",tall:!0,children:(n,r)=>{Nu(n,{get participant(){return e.participant}})},$$slots:{default:!0}}),Hn("innerWidth",n=>q(a,n,!0)),ne()}const So="[data-playpilot-explore]",Bu="[data-playpilot-pre-consent-explore]";let an=null;function Fu(){var e;const t=document.querySelector(So);t&&(Vu(),(e=document.querySelector(Bu))==null||e.remove(),t.innerHTML="",an=Vt(To,{target:t}))}function Vu(){an&&(Vi(an),an=null)}function Hu(){var s;if(!window.PlayPilotLinkInjections.config)return!1;const{explore_navigation_selector:e,explore_navigation_label:i,explore_navigation_path:a,explore_navigation_insert_position:n}=window.PlayPilotLinkInjections.config;if(!e)return!1;(s=document.querySelector("[data-playpilot-explore-navigation-element]"))==null||s.remove();const r=document.querySelector(e);if(!r)return!1;const l=r.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",r.insertAdjacentElement(n||"afterend",l),!0}var Uu=T("<div>Series</div>"),Wu=T("<div> </div>"),Gu=T('<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 Ku(t,e){ae(e,!0);const i=U(e,"onclick",3,()=>null);var a=Gu();a.__click=function(..._){var x;(x=i())==null||x.apply(this,_)};var n=k(a),r=k(n);en(r,{get title(){return e.title},width:120,height:213,lazy:!0});var l=C(r,2),c=k(l),s=k(c);lr(s,{size:12});var d=C(s),p=C(c,2);{var u=_=>{var x=Uu();w(_,x)};H(p,_=>{e.title.type==="series"&&_(u)})}var v=C(p,2);{var h=_=>{var x=Wu(),S=k(x);F(()=>K(S,`${e.title.length??""} min`)),w(_,x)};H(v,_=>{e.title.length&&_(h)})}var m=C(n,2),y=k(m),g=k(y),b=C(y,2);_o(b,{get playlinks(){return e.title.providers},size:20}),F(()=>{K(d,` ${e.title.imdb_score||"-"}`),K(g,e.title.title)}),w(t,a),ne()}de(["click"]);var Zu=T('<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 Yu(t){var e=Zu(),i=C(k(e),2),a=k(i);He(a,"",{},{width:"60%"}),w(t,e)}var Ju=T('<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 Xu(t){var e=Ju(),i=C(k(e),2),a=k(i);He(a,"",{},{width:"40%"});var n=C(a,2);He(n,"",{},{width:"60%"});var r=C(n,2);He(r,"",{},{width:"80%"}),w(t,e)}const Qu=[{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 $u(){const t=ii();if(!t)throw new Error("No token was provided");const e={region:await or(),page:1,include_count:"false"};return await Ut(`/providers/?api-token=${t}&`+Jn(e))}function ev(t,{from:e,to:i},a={}){var{delay:n=0,duration:r=I=>Math.sqrt(I)*120,easing:l=kd}=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=tv(t),v=t.clientWidth/i.width/u,h=t.clientHeight/i.height/u,m=e.left+e.width*d,y=e.top+e.height*p,g=i.left+i.width*d,b=i.top+i.height*p,_=(m-g)*v,x=(y-b)*h,S=e.width/i.width,L=e.height/i.height;return{delay:n,duration:typeof r=="function"?r(Math.sqrt(_*_+x*x)):r,easing:l,css:(I,j)=>{var V=j*_,M=j*x,z=I+j*S,D=I+j*L;return`transform: ${s} translate(${V}px, ${M}px) scale(${z}, ${D});`}}}function tv(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 iv=T('<div class="icon svelte-dfwzqz"> </div>'),av=T('<div><button> <div class="action svelte-dfwzqz"><!></div></button></div>'),nv=T('<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 rv(t,e){ae(e,!0);let i=U(e,"options",19,()=>[{label:"Label",value:"Value"}]),a=U(e,"selected",23,()=>[]),n=U(e,"placeholder",19,()=>`${ee("Search")}...`),r=U(e,"onchange",3,()=>null),l=G("");const c=B(s);function s(){var m;return(m=i())!=null&&m.length?o(l)?i().filter(({label:y})=>y.toLowerCase().indexOf(o(l).toLowerCase())!==-1):i():[]}function d(m){const y=a().find(g=>g===m);a(y?a().filter(g=>g!==m):[...a(),m]),r()(a())}var p=nv(),u=J(p),v=k(u),h=C(u,2);Ce(h,29,()=>o(c)||[],({label:m,value:y})=>y,(m,y)=>{let g=()=>o(y).label,b=()=>o(y).value;const _=B(()=>!!a().find(M=>M===b()));var x=av(),S=k(x);let L;S.__click=()=>d(b());var I=k(S),j=C(I),V=k(j);Ui(V,()=>o(_),M=>{var z=iv(),D=k(z);F(()=>K(D,o(_)?"-":"+")),qe(3,z,()=>ma,()=>({start:.25,duration:100})),w(M,z)}),F(()=>{L=be(S,1,"option svelte-dfwzqz",null,L,{active:o(_)}),K(I,`${g()??""} `)}),xc(x,()=>ev,()=>({duration:150})),w(m,x)}),F(()=>le(v,"placeholder",n())),Ha(v,()=>o(l),m=>q(l,m)),w(t,p),ne()}de(["click"]);var lv=T('<div class="content playpilot-styled-scrollbar svelte-fg0dzp"><!></div>'),ov=T("<div><!> <!></div>");function Eo(t,e){ae(e,!0);let i=G(!1),a=G(null),n=G(null),r=G("left"),l=G(0),c=G(0);function s(y){const g=y.target;g&&g.closest(".dropdown")!==o(a)&&q(i,!1)}function d(y){q(i,!o(i)),o(i)&&(q(c,0),q(l,0),p(y.target))}async function p(y){if(await ua(),!o(n))return;const g=16,b=200,_=window.innerHeight,x=window.innerWidth,{top:S}=o(n).getBoundingClientRect(),{left:L}=y.getBoundingClientRect();q(r,L<window.innerWidth/2?"left":"right",!0),q(l,Math.max(Math.min(window.innerHeight-S-g,_*.6),b),!0),await ua();const{left:I,right:j}=o(n).getBoundingClientRect(),V=x-j;I-g<0?q(c,V):V-g<0&&q(c,V-g)}var u=ov();Se("click",De,s);var v=k(u);Ve(v,()=>e.button,()=>({toggle:d}));var h=C(v,2);{var m=y=>{var g=lv();let b;var _=k(g);Ve(_,()=>e.content),st(g,x=>q(n,x),()=>o(n)),F(()=>b=He(g,"",b,{"--max-height":o(l)?`${o(l)}px`:null,"--offset":o(c)?`${o(c)}px`:null})),qe(3,g,()=>ma,()=>({start:.85,duration:100})),w(y,g)};H(h,y=>{o(i)&&y(m)})}st(u,y=>q(a,y),()=>o(a)),F(()=>be(u,1,`dropdown ${o(r)??""}`,"svelte-fg0dzp")),w(t,u),ne()}var sv=T('<span class="label svelte-1mfj6k7"> </span>'),cv=T('<div class="active-line svelte-1mfj6k7"></div>'),dv=T('<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 pv(t,e){ae(e,!0);const i=U(e,"range",19,()=>[0,100]),a=U(e,"value",19,i),n=U(e,"label",3,""),r=U(e,"valueAppend",3,""),l=U(e,"formatFunction",3,W=>W.toString()),c=U(e,"onchange",3,()=>null);let s=i(),d=B(()=>Pa(s,2)),p=G(Me(o(d)[0])),u=G(Me(o(d)[1]));const v=B(()=>o(p)!==i()[0]||o(u)!==i()[1]),h=B(()=>100/(i()[1]-i()[0])*(o(p)-i()[0])),m=B(()=>100+100/(i()[1]-i()[0])*(o(u)-i()[1])-o(h)),y=B(()=>Math.abs(i()[0]-i()[1])>10&&Math.abs(o(p)-o(u))<5);Xe(()=>{g(a())}),Xe(()=>{q(u,Math.max(o(u),o(p)+1),!0),q(u,Math.min(o(u),i()[1]),!0),q(p,Math.min(o(p),o(u)-1),!0),q(p,Math.max(o(p),i()[0]),!0)});function g(W){(Q=>{var oe=Pa(Q,2);q(p,oe[0],!0),q(u,oe[1],!0)})(W)}function b(){requestAnimationFrame(()=>c()([o(p),o(u)]))}var _=dv(),x=k(_);{var S=W=>{var Q=sv(),oe=k(Q);F((te,Y)=>K(oe,`${n()??""}: ${te??""}—${Y??""} ${r()??""}`),[()=>l()(o(p)),()=>l()(o(u))]),w(W,Q)};H(x,W=>{n()&&W(S)})}var L=C(x,2);let I;var j=k(L);j.__mouseup=b,j.__touchend=b,j.__input=function(...W){};let V;var M=C(j,2);M.__mouseup=b,M.__touchend=b,M.__input=function(...W){};let z;var D=C(M,2),A=k(D),P=C(D,2),N=k(P),R=C(P,2);{var X=W=>{var Q=cv();let oe;F(()=>oe=He(Q,"",oe,{left:o(h)+"%","--width":o(m)+"%"})),w(W,Q)};H(R,W=>{o(v)&&W(X)})}F(()=>{I=be(L,1,"range svelte-1mfj6k7",null,I,{halved:o(y)}),le(j,"min",i()[0]),le(j,"max",i()[1]),V=be(j,1,"svelte-1mfj6k7",null,V,{active:o(v)}),le(M,"min",i()[0]),le(M,"max",i()[1]),z=be(M,1,"svelte-1mfj6k7",null,z,{active:o(v)}),K(A,o(p)),K(N,o(u))}),Ha(j,()=>o(p),W=>q(p,W)),Ha(M,()=>o(u),W=>q(u,W)),w(t,_),ne()}de(["mouseup","touchend","input"]);var uv=T(" <!>",1),vv=T('<p class="loading"> </p>'),fv=T('<p class="error"> </p>'),hv=T('<div class="content svelte-er0ukh" data-testid="content"><!> <!></div>'),gv=T('<div data-testid="filter-item"><!></div>');function mv(t,e){ae(e,!0);let i=U(e,"filter",7),a=U(e,"onchange",3,()=>null),n=U(e,"data",7,null),r=U(e,"fetchData",3,null),l=U(e,"range",3,null),c=U(e,"valueAppend",3,"");const s=B(()=>{if(!i()[e.param])return!1;const{type:y,value:g}=i()[e.param];return!(y==="array"&&!g.length||y==="range"&&JSON.stringify(g)===JSON.stringify(l()))});let d=G(!!r());Xe(()=>{!n()&&r()&&p()});async function p(){try{q(d,!0),n(await r()())}catch{fe(ve.ExploreFetchProvidersFailed)}finally{q(d,!1)}}function u(y,g){if(fe(ve.ExploreSetFilter,null,{key:e.param,value:y,total_filter:i()}),!y){delete i()[e.param];return}i()[e.param]={type:g,value:y},a()()}var v=gv();let h;var m=k(v);Eo(m,{button:(b,_)=>{let x=()=>_==null?void 0:_().toggle;Ki(b,{variant:"border",size:"large",get active(){return o(s)},get onclick(){return x()},children:(S,L)=>{var I=uv(),j=J(I),V=C(j);ni(V,{direction:"down"}),F(()=>K(j,`${e.label??""} `)),w(S,I)},$$slots:{default:!0}})},content:b=>{var _=hv(),x=k(_);{var S=M=>{var z=vv(),D=k(z);F(A=>K(D,`${A??""}...`),[()=>ee("Loading")]),w(M,z)},L=M=>{var z=me(),D=J(z);{var A=P=>{var N=fv(),R=k(N);F(X=>K(R,X),[()=>ee("An Error Occurred")]),w(P,N)};H(D,P=>{r()&&!n()&&P(A)},!0)}w(M,z)};H(x,M=>{o(d)?M(S):M(L,!1)})}var I=C(x,2);{var j=M=>{const z=B(()=>{var D;return(D=i()[e.param])==null?void 0:D.value});rv(M,{get options(){return n()},get selected(){return o(z)},onchange:D=>u(D,"array")})},V=M=>{var z=me(),D=J(z);{var A=P=>{const N=B(()=>{var R;return(R=i()[e.param])==null?void 0:R.value});pv(P,{get range(){return l()},get value(){return o(N)},get label(){return e.label},get valueAppend(){return c()},onchange:R=>u(R,"range")})};H(D,P=>{l()&&P(A)},!0)}w(M,z)};H(I,M=>{n()?M(j):M(V,!1)})}w(b,_)},$$slots:{button:!0,content:!0}}),F(()=>h=be(v,1,"filter-item svelte-er0ukh",null,h,{active:o(s)})),w(t,v),ne()}var yv=T(" <!>",1),bv=T("<button> </button>"),wv=T('<div class="content svelte-1ibt2k4" data-testid="content"></div>');function xv(t,e){ae(e,!0);const i=U(e,"filter",7),a=U(e,"onchange",3,()=>null),n="ordering",r=[{label:"Popularity",value:"-popularity"},{label:"New",value:"-new"},{label:"Top Rated",value:"-best"}],l=B(()=>{var s;return((s=r.find(({value:d})=>{var p;return d===((p=i()[n])==null?void 0:p.value)}))==null?void 0:s.label)||"Sort By"});function c(s){s?i()[n]={type:"string",value:s}:delete i()[n],a()()}Eo(t,{button:(p,u)=>{let v=()=>u==null?void 0:u().toggle;Ki(p,{variant:"link",get onclick(){return v()},children:(h,m)=>{var y=yv(),g=J(y),b=C(g);ni(b,{direction:"down"}),F(_=>K(g,`${_??""} `),[()=>ee(o(l))]),w(h,y)},$$slots:{default:!0}})},content:p=>{var u=wv();Ce(u,21,()=>r,Ae,(v,h,m,y)=>{let g=()=>o(h).label,b=()=>o(h).value;const _=B(()=>{var I;return b()===((I=i()[n])==null?void 0:I.value)});var x=bv();let S;x.__click=()=>c(b());var L=k(x);F(I=>{S=be(x,1,"option svelte-1ibt2k4",null,S,{active:o(_)}),K(L,I)},[()=>ee(g())]),w(v,x)}),w(p,u)},$$slots:{button:!0,content:!0}}),ne()}de(["click"]);var _v=ot('<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 kv(t){var e=_v();w(t,e)}var Sv=T("<div><!></div>"),Ev=T("<!> <!>",1),Tv=T('<div class="sorting"><!></div>'),Pv=T('<div role="navigation"><div class="items svelte-11dg01g"></div> <div class="actions svelte-11dg01g"><!> <!></div></div>');function Cv(t,e){ae(e,!0);const i=U(e,"onchange",3,()=>null),a=U(e,"limit",3,!0),n=U(e,"showSorting",3,!0),r=3,l=[{label:ee("Services"),param:"providers",fetchData:async()=>(await $u()).map(g=>({label:g.name,value:g.slug}))},{label:ee("Genres"),param:"genres",data:$n.map(g=>({label:g.name,value:g.slug}))},{label:ee("IMDb"),param:"imdb_score",range:[0,10]},{label:ee("Year"),param:"year",range:[1900,new Date().getFullYear()]},{label:ee("Runtime"),param:"length",range:[0,180],valueAppend:ee("Minutes")},{label:ee("Countries"),param:"country_codes",data:Qu}];let c=G(Me(a()));var s=Pv();let d;var p=k(s);Ce(p,21,()=>o(c)?l.slice(0,r):l,Ae,(g,b)=>{var _=Sv(),x=k(_);mv(x,Pc({get filter(){return e.filter},get onchange(){return i()}},()=>o(b))),qe(3,_,()=>ma,()=>({start:.75,duration:100})),w(g,_)});var u=C(p,2),v=k(u);{var h=g=>{Ki(g,{variant:"link",onclick:()=>q(c,!o(c)),children:(b,_)=>{var x=Ev(),S=J(x);kv(S);var L=C(S),I=C(L);{let j=B(()=>o(c)?"down":"up");ni(I,{get direction(){return o(j)}})}F(j=>K(L,` ${j??""} `),[()=>ee("All Filters")]),w(b,x)},$$slots:{default:!0}})};H(v,g=>{a()&&g(h)})}var m=C(v,2);{var y=g=>{var b=Tv(),_=k(b);xv(_,{get filter(){return e.filter},get onchange(){return i()}}),qe(3,b,()=>ga,()=>({x:5,duration:100})),w(g,b)};H(m,g=>{n()&&g(y)})}F(()=>d=be(s,1,"filter svelte-11dg01g",null,d,{limit:a()})),w(t,s),ne()}var zv=ot('<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 jv(t){var e=zv();w(t,e)}var Iv=T('<div class="search svelte-1pnrmr6" role="search"><div class="icon svelte-1pnrmr6"><!></div> <input class="input svelte-1pnrmr6" type="search"/></div>');function Av(t,e){ae(e,!0);let i=G("");var a=Iv(),n=k(a),r=k(n);jv(r);var l=C(n,2);l.__input=()=>e.oninput(o(i)),F(c=>le(l,"placeholder",c),[()=>ee("Search Movies And Shows")]),Ha(l,()=>o(i),c=>q(i,c)),w(t,a),ne()}de(["input"]);var Lv=T(`<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 Mv(t){var e=Lv();w(t,e)}var Dv=T("<!> <!>",1),qv=T('<div class="show-more svelte-ilcedm"><!></div>'),Ov=T("<!> <!>",1),Nv=T("<p>Something went wrong</p>"),Rv=T('<div><div class="header svelte-ilcedm" role="banner"><div><div class="divider svelte-ilcedm"></div> <div class="heading svelte-ilcedm"> </div> <p class="description svelte-ilcedm"> </p></div> <!></div> <div class="titles svelte-ilcedm" role="main"><!> <!></div> <!></div>');function To(t,e){ae(e,!0);const i=Me({});let a=null,n=G(Me([])),r=G(1),l=null,c=0,s=G(""),d=G(Me(g())),p=G(null),u=G(0);const v=B(()=>o(u)>500),h=B(()=>o(u)>1400?8:o(u)>900?6:o(u)>600?4:3),m=B(()=>o(v)?Ku:ko),y=B(()=>o(v)?Yu:Xu);Xe(()=>{var Y;q(p,((Y=a==null?void 0:a.closest(So))==null?void 0:Y.style.height)||null,!0)}),ht(async()=>{var Y;fe(ve.ExplorePageView),(Y=window.PlayPilotLinkInjections.ads)!=null&&Y.length||(window.PlayPilotLinkInjections.ads=await ro())});async function g(){c+=1;const Y=c,O={page_size:24,page:o(r)};o(s)&&(O.search=o(s)),Object.entries(i).forEach(([se,{type:ce,value:pe}])=>{if(ce==="string")O[se]=pe;else if(ce==="array")O[se]=pe.join(",");else if(ce==="range"){const[ue,Te]=pe;O[se+"_min"]=ue,O[se+"_max"]=Te}});const Z=await go(O);return Y===c&&q(n,[...o(n),...Z.results],!0),Z}async function b(Y){q(s,Y,!0),l&&clearTimeout(l),l=setTimeout(()=>{x(),q(d,g(),!0),Y&&(fe(ve.ExploreSearch,null,{query:Y}),gt("pixels")&&Qa(fa.SearchQuery,{query:Y}))},100)}function _(){x(),q(d,g(),!0)}function x(){q(r,1),q(n,[],!0)}function S(){qs(r),q(d,g(),!0),fe(ve.ExploreShowMore,null,{page:o(r)})}function L(Y,O){ri({event:Y,data:O}),fe(ve.ExploreTitleClick,O)}var I=Rv();let j,V;var M=k(I),z=k(M),D=C(k(z),2),A=k(D);jt(D,Y=>ze==null?void 0:ze(Y));var P=C(D,2),N=k(P),R=C(z,2);Ui(R,()=>o(v),Y=>{var O=Dv(),Z=J(O);Av(Z,{oninput:b});var se=C(Z,2);{let ce=B(()=>!o(v)),pe=B(()=>!o(s));Cv(se,{get filter(){return i},get limit(){return o(ce)},onchange:_,get showSorting(){return o(pe)}})}w(Y,O)});var X=C(M,2);let W;var Q=k(X);Ce(Q,17,()=>o(n),Ae,(Y,O)=>{var Z=me(),se=J(Z);Ui(se,()=>o(O).sid,ce=>{var pe=me(),ue=J(pe);Tl(ue,()=>o(m),(Te,Ue)=>{Ue(Te,{get title(){return o(O)},onclick:Le=>L(Le,o(O))})}),w(ce,pe)}),w(Y,Z)});var oe=C(Q,2);Ra(oe,()=>o(d),Y=>{var O=me(),Z=J(O);Ce(Z,16,()=>({length:24}),Ae,(se,ce)=>{var pe=me(),ue=J(pe);Tl(ue,()=>o(y),(Te,Ue)=>{Ue(Te,{})}),w(se,pe)}),w(Y,O)},void 0,Y=>{});var te=C(X,2);Ra(te,()=>o(d),null,(Y,O)=>{var Z=B(()=>{var{next:Le}=o(O);return{next:Le}}),se=B(()=>o(Z).next),ce=Ov(),pe=J(ce);{var ue=Le=>{var Kt=qv(),$=k(Kt);Ki($,{size:"large",onclick:S,children:(we,je)=>{var ia=ei();F(nt=>K(ia,nt),[()=>ee("Show More")]),w(we,ia)},$$slots:{default:!0}}),w(Le,Kt)};H(pe,Le=>{o(se)&&Le(ue)})}var Te=C(pe,2);{var Ue=Le=>{Mv(Le)};H(Te,Le=>{var Kt;!((Kt=o(n))!=null&&Kt.length)&&o(r)===1&&Le(Ue)})}w(Y,ce)},Y=>{var O=Nv();w(Y,O)}),st(I,Y=>a=Y,()=>a),F((Y,O)=>{j=be(I,1,"explore playpilot-styled-scrollbar svelte-ilcedm",null,j,{grid:o(v)}),V=He(I,"",V,{height:o(p)}),K(A,Y),K(N,O),W=He(X,"",W,{"--grid-columns":o(h)})},[()=>ee("Streaming Guide"),()=>ee("Streaming Guide Description")]),ti(I,"clientWidth",Y=>q(u,Y)),w(t,I),ne()}var Bv=T('<div class="content svelte-1t10gn"><!></div>');function Fv(t,e){const i=U(e,"initialScrollPosition",3,0);ar(t,{get initialScrollPosition(){return i()},closeButtonStyle:"flat",wide:!0,children:(a,n)=>{var r=Bv(),l=k(r);To(l,{}),w(a,r)},$$slots:{default:!0}})}function Vv(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(n=>{n.style.viewTransitionName=n.dataset.viewTransitionNew||""})})}var Hv=ot('<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 Uv(t){var e=Hv();w(t,e)}var Wv=T('<div class="scroll-indicator svelte-wxwoko"><div class="scroll-indicator-icon svelte-wxwoko"><!></div></div>'),Gv=T('<div class="bubble svelte-wxwoko" data-view-transition-old=""><!></div>'),Kv=T('<div class="append svelte-wxwoko" data-view-transition-old=""><!></div>'),Zv=T('<div tabindex="-1" aria-hidden="true"><div class="dialog svelte-wxwoko" data-view-transition-old=""><!> <!></div> <!> <!></div>');function Yv(t,e){ae(e,!0),kn("scope","popover");const i=e.bubble&&tu(dr.TopScrollFormat,1),a=B(()=>({duration:tr.current?0:100,y:10}));let n=G(null),r=G(!1),l=G(!0),c=G(!1),s=G(0),d=G(0),p=G(0);ht(async()=>{await ua(),u(),await h(),e.append&&requestAnimationFrame(()=>{v(),h()}),await ua(),y()});function u(){if(!o(n))return;const{top:D,right:A,bottom:P,height:N}=o(n).getBoundingClientRect(),R=m();q(r,D-R<0&&window.innerHeight-P>D+N,!0);const X=window.innerWidth-A-R;A+R>window.innerWidth&&(o(n).style.left=`${X}px`)}function v(){q(l,o(s)>450)}async function h(){if(q(p,0),await new Promise(W=>requestAnimationFrame(W)),!o(n))return;const{top:D,height:A}=o(n).getBoundingClientRect(),P=m(),N=e.append?parseInt(window.getComputedStyle(o(n)).gap):0,R=o(l)?o(d)+N:0,X=o(r)?window.innerHeight-D-P-R:D+A-R-P;q(p,Math.min(X,window.innerHeight*.8),!0)}function m(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}function y(){var R;if(!((R=o(n))!=null&&R.firstChild))return;const D=o(n).firstChild,{offsetHeight:A,scrollHeight:P,scrollTop:N}=D;P<=A?q(c,!1):q(c,N+A<P)}var g=Zv();let b,_;var x=k(g),S=k(x);Ve(S,()=>e.children);var L=C(S,2);{var I=D=>{var A=Wv(),P=k(A),N=k(P);Uv(N),qe(3,A,()=>_i,()=>({duration:100})),w(D,A)};H(L,D=>{o(c)&&D(I)})}var j=C(x,2);{var V=D=>{var A=Gv(),P=k(A);Ve(P,()=>e.bubble),qe(7,A,()=>ga,()=>o(a)),w(D,A)};H(j,D=>{e.bubble&&D(V)})}var M=C(j,2);{var z=D=>{var A=Kv(),P=k(A);Ve(P,()=>e.append),qe(7,A,()=>ga,()=>o(a)),ti(A,"clientHeight",N=>q(d,N)),w(D,A)};H(M,D=>{e.append&&o(l)&&D(z)})}st(g,D=>q(n,D),()=>o(n)),F(()=>{b=be(g,1,"popover svelte-wxwoko",null,b,{flip:o(r),inline:i,"has-bubble":!!e.bubble&&i}),_=He(g,"",_,{"--max-height":o(p)?o(p)+"px":null})}),Se("scroll",x,y),qe(7,x,()=>ga,()=>o(a)),ti(g,"clientHeight",D=>q(s,D)),w(t,g),ne()}var Jv=T('<div class="title-popover svelte-d1moe8" data-playpilot-title-popover="" role="region" aria-labelledby="title"><!></div>');function Xv(t,e){ae(e,!0);const i=p=>{var u=me(),v=J(u);{var h=m=>{wo(m,{get campaign(){return n}})};H(v,m=>{n&&m(h)})}w(p,u)},a=p=>{var u=me(),v=J(u);{var h=m=>{xo(m,{get campaign(){return r},compact:!0})};H(v,m=>{r&&m(h)})}w(p,u)},n=ha("top_scroll"),r=ha("card");let l=G(null);fe(ve.TitlePopoverView,e.title),ht(()=>{c();const p=Date.now();return()=>fe(ve.TitlePopoverClose,e.title,{time_spent:Date.now()-p})});function c(){const p=e.event.target;if(!(p!=null&&p.getClientRects))return;const u=Array.from(p.getClientRects()),h=u.map(y=>y.x).map(y=>Math.abs(y-e.event.clientX)),m=u[h.indexOf(Math.min(...h))];o(l).style.top=m.top+window.scrollY+"px",o(l).style.left=m.left+window.scrollX+"px",o(l).style.height=m.height+"px"}var s=Jv(),d=k(s);{let p=B(()=>r?a:null),u=B(()=>n?i:null);Yv(d,{get append(){return o(p)},get bubble(){return o(u)},children:(v,h)=>{mo(v,{get title(){return e.title},small:!0})},$$slots:{default:!0}})}st(s,p=>q(l,p),()=>o(l)),w(t,s),ne()}let nn=null,ki=null;function Qv(t,e){if(window.matchMedia("(pointer: coarse)").matches)return;ki&&rn();const i=t.currentTarget;nn=i,setTimeout(()=>{nn===i&&(ki=Vt(Xv,{target:fr(),props:{event:t,title:e.title_details}}))},100)}async function rn(t=!0){if(ki){const e=Vi(ki,{outro:t});nn=null,ki=null,await e}document.querySelectorAll("[data-playpilot-title-popover]").forEach(e=>e.remove())}function $v(t){if(!ki)return;const e=t.target;e.hasAttribute("data-playpilot-title-popover")||e.closest("[data-playpilot-title-popover]")||e.hasAttribute(li)||e.closest(Wt)||rn()}function ef(){nn=null}function tf(){return!!ki}const Ke=[];function ri({type:t="title",event:e=null,injection:i=null,data:a=null,scrollPosition:n=0,returnToTitle:r=null}={}){if(e&&io(e))return;e==null||e.preventDefault(),Ke!=null&&Ke.length&&pr();const l=fr(),s=af({type:t,target:l,data:a,props:{initialScrollPosition:n}});r&&Po({type:t,injection:i,data:r}),Po({type:t,injection:i,data:a,scrollPosition:n,component:s})}function af({type:t="title",target:e,data:i,props:a={}}){return t==="participant"?Vt(Ru,{target:e,props:{participant:i,...a}}):t==="explore"?Vt(Fv,{target:e,props:{...a}}):Vt(Eu,{target:e,props:{title:i,...a}})}function Po({type:t="title",injection:e=null,data:i,scrollPosition:a=0,component:n}){Ke.push({type:t,injection:e,data:i,scrollPosition:a,component:n})}function pr(t=!0){Ke.length&&(lf(),Vi(Ke[Ke.length-1].component,{outro:t}))}function nf(t=!0){pr(t),Ke.pop()}function Co(t=!0){for(pr(t);Ke.length>0;)Ke.pop()}function zo(){return Ke[Ke.length-2]||null}function rf(){if(Ke.length<2)return;nf();const t=Ke.pop();t&&ri({...t})}function lf(){const t=`[data-playpilot-link-injections] ${window.innerWidth>wi?".modal":".dialog"}`,e=document.querySelector(t);e!=null&&e.scrollTop&&(Ke[Ke.length-1].scrollPosition=e.scrollTop)}function of(t,e){if(io(t))return;let i=t.target;if(!i||(i.hasAttribute(li)||(i=i.closest(Wt)),!i))return;const a=i.getAttribute(li);if(!a)return;const n=e.find(r=>a===r.key);n&&(t.preventDefault(),Vv(()=>{rn(!1),ri({event:t,injection:n,data:n.title_details})},!tr.current&&window.innerWidth>=wi&&!window.matchMedia("(pointer: coarse)").matches))}var sf=T(' <span class="svelte-1to4glm"><button class="svelte-1to4glm"> </button></span>',1),cf=T('<!> <a target="_blank"> </a>',1),df=T(" <!>.",1),pf=T("<!> <br/>",1),uf=T(" <br/>",1),vf=T('<span class="svelte-1to4glm"><!></span>'),ff=T('<p class="svelte-1to4glm"></p>');function hf(t,e){ae(e,!0);const i=U(e,"onclickmodal",3,()=>null);function a(s,d){fe(ve.AfterArticlePlaylinkClick,s,{playlink:d})}function n(s,d,p){fe(ve.AfterArticleModalButtonClick,d),i()(s,p)}var r=me(),l=J(r);{var c=s=>{var d=ff();Ce(d,21,()=>e.linkInjections,Ae,(p,u)=>{const v=B(()=>{const{key:_,title:x,title_details:S,after_article_style:L}=o(u);return{key:_,title:x,title_details:S,after_article_style:L}}),h=B(()=>{var _;return((_=o(v).title_details)==null?void 0:_.providers)||[]});var m=vf(),y=k(m);{var g=_=>{var x=pf(),S=J(x);{var L=j=>{var V=sf(),M=J(V),z=C(M);z.__click=P=>P.stopPropagation();var D=k(z);D.__click=P=>n(P,o(v).title_details,o(u));var A=k(D);F((P,N)=>{K(M,`"${o(v).title??""}" ${P??""} `),K(A,N)},[()=>ee("Is Available To Stream"),()=>ee("View Streaming Options")]),w(j,V)},I=j=>{var V=df(),M=J(V),z=C(M);Ce(z,17,()=>o(h),Ae,(D,A,P)=>{let N=()=>o(A).name,R=()=>o(A).url;var X=cf(),W=J(X);{var Q=Y=>{var O=ei();F(Z=>K(O,Z),[()=>P===o(h).length-1?`, ${ee("And")}`:","]),w(Y,O)};H(W,Y=>{P&&Y(Q)})}var oe=C(W,2);oe.__click=()=>a(o(v).title_details,N());var te=k(oe);F(()=>{le(oe,"href",R()),K(te,N())}),w(D,X)}),F(D=>K(M,`"${o(v).title??""}" ${D??""} `),[()=>ee("Is Available To Stream On")]),w(j,V)};H(S,j=>{o(v).after_article_style==="modal_button"?j(L):j(I,!1)})}w(_,x)},b=_=>{var x=uf(),S=J(x);F(L=>K(S,`"${o(v).title??""}" ${L??""} `),[()=>ee("Title Unavailable Suffix")]),w(_,x)};H(y,_=>{o(h).length?_(g):_(b,!1)})}F(()=>le(m,"data-playpilot-injection-key",o(v).key)),w(p,m)}),w(s,d)};H(l,s=>{e.linkInjections.length&&s(c)})}w(t,r),ne()}de(["click"]);let ya=null;function gf(t,e){var l,c;if(ya||!e.length)return;const i=document.createElement("div"),a=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,n=(a?document.querySelector(a):null)||t[t.length-1],r=((c=window.PlayPilotLinkInjections)==null?void 0:c.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",n.insertAdjacentElement(r,i),ya=Vt(hf,{target:i,props:{linkInjections:e,onclickmodal:(s,d)=>ri({event:s,injection:d,data:d.title_details})}})}function mf(){var t;ya&&(Vi(ya),(t=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||t.remove(),ya=null)}var yf=T('<p class="svelte-1epbbn0"> </p>');function bf(t,e){ae(e,!1),Un();var i=yf(),a=k(i);F(n=>K(a,n),[()=>{var n,r;return((r=(n=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:n.config)==null?void 0:r.in_text_disclaimer_text)||ee("In-Text Disclaimer")}]),w(t,i),ne()}let ba=null;function wf(t){var r,l,c,s,d,p;if(!((l=(r=window.PlayPilotLinkInjections)==null?void 0:r.config)!=null&&l.in_text_disclaimer_enabled)||ba)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],n=((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(n,e),ba=Vt(bf,{target:e})}function xf(){var t;ba&&(Vi(ba),(t=document.querySelector("[data-playpilot-in-text-disclaimer]"))==null||t.remove(),ba=null)}const li="data-playpilot-injection-key",Wt=`[${li}]`;function _f(t,e={aiInjections:[],manualInjections:[]}){vr(),Cf();const i=zf(e);if(!i.length)return[];const a=ai(t.map(d=>d.innerText).join(" ")),r=If(i).filter(d=>a.includes(ai(d.sentence))),l={};let c=-1;for(const d of Lf(r)){c++;const p=t.findIndex(S=>ai(S.innerText).includes(ai(d.sentence))),u=t[p];if(!u)continue;const v=Ql(d.title,u,["A"]);if(!(v!=null&&v.nodeValue)||$l(v)){const S=Ql(d.title,u);if(S&&$l(S)){l[d.key]="Given text is already inside of a link.";continue}}const{injectionElement:h,linkElement:m}=kf(d);let y=-1,g=!1;Ya(u.innerHTML,d.title)===1&&(y=u.innerHTML.indexOf(d.title));const{phrase_before:_,phrase_after:x}=Sf(u,d);if(y===-1&&(_||x)){const S=[_,d.title,x].filter(Boolean).join(" ");if(y=u.innerHTML.indexOf(S),y===-1){const L=Xc(u.innerHTML,d.title,_||"",x||"");if(L){const{leadingSpaces:I,trailingSpaces:j}=Qc(L.match);m.innerHTML=L.match.trim();const V=L.index+I,M=L.index+L.match.length-j;if(u.innerHTML.slice(V,M).includes("href="))continue;ur(u.innerHTML,d.title,u,h,V,M)&&(y=L.index,g=!0)}}}if(y===-1&&(v!=null&&v.nodeValue)){const S=u.innerHTML.indexOf(v.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=Ya(u.innerHTML,j)===1?u.innerHTML.indexOf(j):-1,z=Uc(r.slice(0,c+1),d,["title","sentence"])-1,D=$c(v.nodeValue,u,z);y=Math.max(S,I,D,M,L,0)}if(y!==-1&&!g&&!ur(u.innerHTML,d.title,u,h,y)){const S=td(d.title,u.innerHTML);S>-1?ur(u.innerHTML,d.title,u,h,S):l[d.key]="Injection would have lead to broken HTML."}}Tf(r),Ef();const s=Af(i);return s.length&&gf(t,s),document.querySelector(Wt)&&wf(t),i.filter(d=>d.title_details).map((d,p)=>{const u=!d.manual&&Mf(d,p,i),v=d.duplicate??u;v&&(l[d.key]=u?"Injection was manually removed.":"Injection was marked as duplicate.");const h=document.querySelector(`[${li}="${d.key}"]`),m=Io(d)&&!d.inactive&&!d.removed&&!d.after_article&&!h,y=r.find(b=>b.key===d.key),g=m?l[d.key]||(y?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...d,inactive:d.inactive??!1,duplicate:v,failed:m,failed_message:g}})}function kf(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 ur(t,e,i,a,n,r=-1){const l=p=>Array.from(p.querySelectorAll(`a, ${Wt}`)).filter(u=>!u.innerText).length,c=document.createElement("div");c.innerHTML=t;const s=l(c),d=c.innerText;return r>0?c.innerHTML=Zc(t,a.outerHTML,n,r):c.innerHTML=Kc(t,e,a.outerHTML,n),Math.abs(c.innerText.length-d.length)>1||s!=l(c)?!1:(i.innerHTML=c.innerHTML,!0)}function Sf(t,e){const{phrase_before:i,phrase_after:a}=e;if(i||a)return{phrase_before:i,phrase_after:a};if(Ya(t.innerText,e.title)!==1)return{phrase_before:null,phrase_after:null};const r=t.innerText.indexOf(e.title),l=Yc(t,r,r+e.title.length);return{phrase_before:l.before,phrase_after:l.after}}function Ef(){const t=Array.from(document.querySelectorAll(`${Wt} 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 n of e)a.getPropertyValue(n)&&(i.dataset.usedCssVariables=`${i.dataset.usedCssVariables||""} ${n}`)}}function Tf(t){window.addEventListener("mousemove",$v),window.addEventListener("click",i=>of(i,t)),document.querySelectorAll(Wt).forEach(i=>{const a=i.dataset.playpilotInjectionKey,n=t.find(r=>a===r.key);n&&(i.addEventListener("mouseenter",r=>{tf()||Qv(r,n)}),i.addEventListener("mouseleave",ef))})}function vr(){document.querySelectorAll(Wt).forEach(e=>Pf(e.getAttribute(li)||"")),mf(),xf(),Co(!1),rn(!1)}function Pf(t){var n;const e=document.querySelector(`[${li}="${t}"]`);if(!e)return;e.querySelectorAll("[data-playpilot-element]").forEach(r=>r.remove());const a=(n=e.querySelector("a"))==null?void 0:n.innerHTML;e.outerHTML=a||""}function Cf(){document.querySelectorAll('a[href*="playpilot.com"]').forEach(e=>{e.closest(Wt)||/\/movie|show\//.test(e.href)&&(e.outerHTML=e.innerHTML)})}function zf({aiInjections:t,manualInjections:e}){return[...e.map(i=>({...i,manual:!0})),...t]}function jf(t){return{aiInjections:t.filter(e=>!e.manual),manualInjections:t.filter(e=>e.manual)}}function jo(t){return!t.inactive&&!t.removed&&!t.duplicate&&!!t.title_details&&Io(t)}function Io(t){return t.in_text||t.in_text===void 0?!0:!!t.after_article}function If(t){return Ao(t).filter(e=>e.in_text!==!1&&jo(e))}function Af(t){return Ao(t).filter(e=>e.after_article===!0&&jo(e))}function Ao(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)&&Lo(i,e)))}function Lf(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 Mf(t,e,i){return i.some((a,n)=>e!==n&&a.manual&&Lo(a,t))}function Lo(t,e){return t.title===e.title&&ai(t.sentence)===ai(e.sentence)}function fr(){return document.querySelector("[data-playpilot-link-injections]")||document.body}async function Df(){const t=ii();if(!t)throw new Error("No token was provided");try{return await await Ut(`/domains/config?api-token=${t}`)||null}catch{return null}}de(["click"]),de(["input"]),de(["click"]),de(["click"]),de(["click"]),de(["mousedown","touchstart"]),de(["mousedown","touchstart"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]),de(["click"]);function qf(t,e){ae(e,!0);const i=100;let a=1;n();function n(){if(window.PlayPilotLinkInjections.require_consent===!1){r();return}if(!window.__tcfapi){a<i&&setTimeout(n,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;id({ads:p(1),pixels:p(1)&&p(7),split_tests:p(9)&&p(10),tracking:p(7)&&p(8),affiliate:p(1)&&p(7)}),r()})}function r(){window.dispatchEvent(new CustomEvent("updateconsent",{bubbles:!0})),e.onchange()}ne()}var Of=T('<span class="error svelte-1tp7i1s">The current URL is excluded via the config</span> <hr class="svelte-1tp7i1s"/>',1),Nf=T('<div class="item svelte-1tp7i1s"><span class="label"> </span>: <span class="data svelte-1tp7i1s"> </span></div>'),Rf=T('<details><summary class="svelte-1tp7i1s"> </summary> <!></details>'),Bf=T('<button class="svelte-1tp7i1s"></button>'),Ff=T("<small>You are using the beta version of TPI</small>"),Vf=T('<button class="svelte-1tp7i1s">Use beta script</button>'),Hf=T('<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> <!></div>');function Uf(t,e){ae(e,!0);const i=["tpidebug","debugtpi"],a=[],n=!!document.querySelector('script[src*="scripts.playpilot.com/link-injection@next"]');let r=G(Me(s())),l=G(!1),c=null;Wa(()=>{c&&clearInterval(c)});function s(){var S,L,I,j,V,M;const g=window.PlayPilotLinkInjections,b=((S=g.evaluated_link_injections)==null?void 0:S.filter(z=>!z.failed))||[],_=((L=g.evaluated_link_injections)==null?void 0:L.filter(z=>z.failed))||[],x=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(([z,D])=>({label:z,data:D})),[`Succesful injections (${b.length})`]:b.map(z=>({label:z.title,data:z.sentence})),[`Failed injections (${_.length})`]:_.map(z=>({label:z.title,data:`Reason: ${z.failed_message} | Sentence: ${z.sentence}`})),[`Fetched ads (${((I=g.ads)==null?void 0:I.length)||0})`]:(j=g.ads)==null?void 0:j.map(z=>({label:z.campaign_name,data:z})),[`Tracking events (${((V=g.tracked_events)==null?void 0:V.length)||0})`]:(M=g.tracked_events)==null?void 0:M.map(z=>({label:z.event,data:z.payload})),[`Visible pixels (${x.length})`]:x.map((z,D)=>({label:D+1,data:z.src}))}}function d(g){o(l)||(a.push(g.key),q(l,i.some(b=>a.slice(a.length-b.length,a.length).join("")===b),!0),c=setInterval(()=>q(r,s(),!0),200))}function p(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 u(g){window.PlayPilotLinkInjections.split_test_identifiers={},Object.values(dr).forEach(({key:b,numberOfVariants:_})=>{const x=1/_;window.PlayPilotLinkInjections.split_test_identifiers[b]=Math.min(x*g,1)})}function v(){var _,x;const g=document.querySelector('script[src*="scripts.playpilot.com/link-injection"]');if(!g)return;(x=(_=window.PlayPilotLinkInjections)==null?void 0:_.destroy)==null||x.call(_);const b=document.createElement("script");for(const S of g.attributes)b.setAttribute(S.name,S.value);b.getAttribute("onload")||b.setAttribute("onload",`window.PlayPilotLinkInjections.initialize({ token: '${window.PlayPilotLinkInjections.token}' })`),b.src=g.src.replace("link-injection","link-injection@next"),g.insertAdjacentElement("afterend",b),g.remove()}var h=me();Se("keydown",De,d);var m=J(h);{var y=g=>{var b=Hf(),_=C(k(b),4);{var x=N=>{var R=Of();w(N,R)};H(_,N=>{var R,X,W;(R=window.PlayPilotLinkInjections.config)!=null&&R.exclude_urls_pattern&&xi().match((W=(X=window.PlayPilotLinkInjections)==null?void 0:X.config)==null?void 0:W.exclude_urls_pattern)&&N(x)})}var S=C(_,2);Ce(S,17,()=>Object.entries(o(r)),Ae,(N,R)=>{var X=B(()=>Pa(o(R),2));let W=()=>o(X)[0],Q=()=>o(X)[1];var oe=Rf(),te=k(oe),Y=k(te),O=C(te,2);{var Z=ce=>{var pe=me(),ue=J(pe);{var Te=Ue=>{var Le=me(),Kt=J(Le);Ce(Kt,17,Q,Ae,($,we,je,ia)=>{let nt=()=>o(we).label,Jf=()=>o(we).data;var Do=Nf(),qo=k(Do),Xf=k(qo),Qf=C(qo,2),$f=k(Qf);F(eh=>{K(Xf,nt()),K($f,eh)},[()=>JSON.stringify(Jf())]),w($,Do)}),w(Ue,Le)};H(ue,Ue=>{Array.isArray(Q())&&Ue(Te)})}w(ce,pe)},se=ce=>{var pe=ei("No data");w(ce,pe)};H(O,ce=>{var pe;(pe=Q())!=null&&pe.length?ce(Z):ce(se,!1)})}F(()=>K(Y,W())),w(N,oe)});var L=C(S,4);L.__click=()=>p("card");var I=C(L,2);I.__click=()=>p("top_scroll");var j=C(I,6);Ce(j,16,()=>({length:4}),Ae,(N,R,X)=>{var W=Bf();W.__click=()=>u(X),W.textContent=X,w(N,W)});var V=C(j,4);V.__click=()=>console.log(Zn(window.PlayPilotLinkInjections.config));var M=C(V,2);M.__click=()=>console.log(Zn(window.PlayPilotLinkInjections.config).pageText);var z=C(M,4);z.__click=function(...N){var R;(R=e.onrerender)==null||R.apply(this,N)};var D=C(z,2);{var A=N=>{var R=Ff();w(N,R)},P=N=>{var R=Vf();R.__click=v,w(N,R)};H(D,N=>{n?N(A):N(P,!1)})}w(g,b)};H(m,g=>{o(l)&&g(y)})}w(t,h),ne()}de(["click"]);function Wf(t,e){ae(e,!1);const i=Array.from(document.querySelectorAll(Wt)),a=[],n=Date.now();let r=!1,l=null;ht(()=>{Ga()||c()});function c(){l=new IntersectionObserver(s),i.forEach(u=>{l.observe(u)})}function s(u){u.forEach(v=>{if(!v.isIntersecting)return;const h=v.target.getAttribute(li);h&&a.push(h),l.unobserve(v.target)})}function d(){const{scrollHeight:u,scrollTop:v,clientHeight:h}=document.documentElement;return v/(u-h)*100}function p(){var v,h;if(r||document.visibilityState!=="hidden")return;r=!0;const u=Date.now();fe(ve.UserLeft,null,{time_start:n,time_end:u,time_spent:u-n,existing_injections_count:i.length,shown_injections_count:a.length,fired_events:((h=(v=window.PlayPilotLinkInjections)==null?void 0:v.tracked_events)==null?void 0:h.map(m=>m.event))||[],scroll_percentage:d()})}Un(),Se("visibilitychange",De,p),ne()}function Gf(t,e){ae(e,!0);const i=Array.from(document.querySelectorAll("[data-playpilot-poster-url]")),a=new Xa,n=.7,r="[data-playpilot-poster]";let l=G(0),c={},s=null;const d=B(()=>o(l)<wi);Wa(h);function p(){var x,S;if((S=(x=window.PlayPilotLinkInjections)==null?void 0:x.config)!=null&&S.disable_scroll_reveal_posters||!o(d))return;m();const y=window.innerHeight,g=new Xa,b=y*n,_=y-b;for(const L of i){const{top:I}=L.getBoundingClientRect();I<b&&I>_&&g.add(L)}for(const L of g){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(y,g){const b=document.createElement("img");b.classList.add("playpilot-floating-poster"),b.dataset.playpilotPoster="",b.src=g,b.alt="",b.onload=()=>b.classList.add("loaded"),y.insertAdjacentElement("afterbegin",b)}function v(y){const g=y.querySelector(r);g&&(g.classList.add("animating-out"),setTimeout(()=>g.remove(),500))}function h(){for(const y of Array.from(document.querySelectorAll(r)))y.remove()}function m(){s&&clearTimeout(s),s=setTimeout(()=>{for(const y of a)v(y),a.delete(y),c={}},1e3)}Se("scroll",De,p),Hn("innerWidth",y=>q(l,y,!0)),ne()}var Kf=T("<!> <!>",1),Zf=T('<div class="playpilot-link-injections svelte-1uha8ag" data-playpilot-link-injections=""><!> <!></div> <!> <!> <!>',1);function Yf(t,e){ae(e,!0);let i=G(Me([])),a=G(null),n=G(Me(Ga()));Wl();let r=G(!1),l=G(!0),c=G(!0),s=G(Me([]));const d=B(()=>o(a)||{}),p=B(()=>Sr(o(d).ai_injections,()=>[],!0)),u=B(()=>Sr(o(d).manual_injections,()=>[],!0)),v=B(()=>Kn(o(i))),h=y();Xe(()=>{o(n)&&!o(l)&&g()}),Fu(),Wa(vr);async function m(){Ja()||(await h,cd(),fe(ve.ArticlePageView),!(!o(p).length&&!o(u).length)&&(window.PlayPilotLinkInjections.no_affiliate||(window.PlayPilotLinkInjections.ads=await ro())))}async function y(){var A;q(l,!0);try{o(n)&&q(r,await Ul({throwError:!0}),!0)}catch{fe(ve.AuthFailed)}try{const P=window.PlayPilotLinkInjections.config||await Df()||{};if(window.PlayPilotLinkInjections.config=P,P!=null&&P.custom_style&&_(P.custom_style||""),P!=null&&P.explore_navigation_selector&&Hu(),P!=null&&P.no_affiliate&&(window.PlayPilotLinkInjections.no_affiliate=!0),q(c,Fc(P),!0),o(c))return;P!=null&&P.html_selector&&(window.PlayPilotLinkInjections.selector=P==null?void 0:P.html_selector),q(i,Zn(window.PlayPilotLinkInjections.config).elements,!0)}catch(P){fe(ve.FetchingConfigFailed),console.error("TPI Config failed to fetch",P);return}try{if(q(a,await window.PlayPilotLinkInjections.initial_link_injections_promise||null,!0),q(a,o(a)||await Jl(o(v),{maxTries:1,runAiWhenRelevant:!Ja()}),!0),q(l,!1),!o(a)||(A=window.PlayPilotLinkInjections.config)!=null&&A.disable_public_injections&&!(o(n)&&o(r)))return;if(od({organizationSid:o(a).organization_sid,domainSid:o(a).domain_sid}),!o(a).ai_running||!o(a).ai_enabled){b({aiInjections:o(p),manualInjections:o(u)});return}if(!o(n)||Ja())return;q(a,await Jl(o(v),{requireCompletedResult:!0,onpoll:P=>q(a,P,!0)}),!0),b({aiInjections:o(p),manualInjections:o(u)})}catch(P){console.error(P),fe(ve.InjectionError,null,{message:P.message})}}function g(){b(jf(o(s)))}function b(A={aiInjections:o(p),manualInjections:o(u)}){const P=_f(o(i),A);JSON.stringify(P)!==JSON.stringify(o(s))&&(q(s,P,!0),window.PlayPilotLinkInjections.evaluated_link_injections=P),o(n)||x(P)}function _(A){const P="playpilot-custom-style",N=document.getElementById(P),R=N||document.createElement("style");R.textContent=`body { ${A} }`,R.id=P,N||document.body.appendChild(R)}function x(A){const P=A.filter(R=>!R.failed),N=A.filter(R=>R.failed);if(P.length&&fe(ve.ArticleInjected,null,{manual:P.filter(R=>R.manual).length,ai:P.filter(R=>!R.manual).length}),N.length){const R=X=>N.filter(({failed_message:W})=>W==null?void 0:W.includes(X)).length;fe(ve.FailedInjectionsCount,null,{total:N.length,sentence_not_found:R("sentence was not found"),already_linked:R("already inside of a link"),broken_html:R("broken HTML"),duplicate:R("duplicate"),unknown:R("unknown reasons")})}}var S=Zf(),L=J(S),I=k(L);H(I,A=>{});var j=C(I,2);Uf(j,{onrerender:g});var V=C(L,2);{var M=A=>{rr(A,{get pixels(){return o(a).pixels}})};H(V,A=>{var P,N;(N=(P=o(a))==null?void 0:P.pixels)!=null&&N.length&&A(M)})}var z=C(V,2);Ui(z,()=>o(s),A=>{var P=Kf(),N=J(P);Wf(N,{});var R=C(N,2);Gf(R,{}),w(A,P)});var D=C(z,2);qf(D,{onchange:m}),w(t,S),ne()}window.PlayPilotMount={mount(){window.PlayPilotLinkInjections.app&&this.destroy();const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),window.PlayPilotLinkInjections.app=Vt(Yf,{target:t})},destroy(){if(!window.PlayPilotLinkInjections)return;window.PlayPilotLinkInjections.app=null;const t=document.getElementById("playpilot-link-injection");t&&t.remove(),vr()}}})();
|