@playpilot/tpi 5.35.0 → 5.35.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/link-injections.js +1 -1
- package/package.json +1 -1
- package/src/lib/api/auth.ts +0 -18
- package/src/lib/api/externalPages.ts +2 -14
- package/src/lib/api/search.ts +0 -3
- package/src/lib/api/session.ts +0 -7
- package/src/lib/array.ts +0 -3
- package/src/lib/crawler.ts +0 -3
- package/src/lib/event.ts +0 -3
- package/src/lib/html.ts +2 -2
- package/src/lib/image.ts +0 -3
- package/src/lib/injection.ts +0 -18
- package/src/lib/localization.ts +0 -3
- package/src/lib/meta.ts +0 -6
- package/src/lib/modal.ts +0 -2
- package/src/lib/popover.ts +0 -3
- package/src/lib/routes.ts +0 -3
- package/src/lib/selection.ts +1 -1
- package/src/lib/splitTest.ts +1 -2
- package/src/lib/text.ts +1 -15
- package/src/lib/tracking.ts +2 -2
- package/src/routes/+page.svelte +1 -13
- package/src/tests/lib/tracking.test.js +2 -4
package/dist/link-injections.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var df=Object.defineProperty;var vo=ke=>{throw TypeError(ke)};var uf=(ke,xe,Ie)=>xe in ke?df(ke,xe,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):ke[xe]=Ie;var po=(ke,xe,Ie)=>uf(ke,typeof xe!="symbol"?xe+"":xe,Ie),ga=(ke,xe,Ie)=>xe.has(ke)||vo("Cannot "+Ie);var nt=(ke,xe,Ie)=>(ga(ke,xe,"read from private field"),Ie?Ie.call(ke):xe.get(ke)),Bt=(ke,xe,Ie)=>xe.has(ke)?vo("Cannot add the same private member more than once"):xe instanceof WeakSet?xe.add(ke):xe.set(ke,Ie),ji=(ke,xe,Ie,zi)=>(ga(ke,xe,"write to private field"),zi?zi.call(ke,Ie):xe.set(ke,Ie),Ie),fo=(ke,xe,Ie)=>(ga(ke,xe,"access private method"),Ie);(function(){"use strict";var It,oi,Ei,rn,ho,Ii,Pi;var ke=document.createElement("style");ke.textContent=`.right.svelte-jna4l3{margin-left:2px}.left.svelte-jna4l3{margin-right:2px;transform:rotate(180deg)}.button.svelte-1qqv88o{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-1qqv88o:hover{filter:brightness(1.2);transform:scale(1.05)}.handle.svelte-1dkwtal{position:relative;width:100%;height:var(--playpilot-drag-handle-height, 48px)}.handle.svelte-1dkwtal: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-1dkwtal{transition:transform .2s}.handle.dragging.svelte-1dkwtal{transition:none}.handle.dragging.svelte-1dkwtal:before{scale:1.5 1;opacity:1}.modal.svelte-2bikkb{--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;overflow:auto;top:0;right:0;bottom:0;left:0;background:var(--playpilot-detail-backdrop, rgba(0, 0, 0, .65))}@media (min-width: 600px){.modal.svelte-2bikkb{padding:32px 0}}.modal.has-bubble.svelte-2bikkb{--playpilot-detail-background-border-radius: 0}.dialog.svelte-2bikkb{z-index:1;position:relative;width:100%;max-width:600px;height:80vh;margin-top:auto;padding-bottom:env(safe-area-inset-bottom);overflow:auto;border-radius:var(--playpilot-detail-border-radius, 16px 16px 0 0);background:var(--playpilot-detail-background, var(--playpilot-light));transition:transform .2s}@supports (height: 1dvh){.dialog.svelte-2bikkb{height:80dvh}}@media (min-width: 600px){.dialog.svelte-2bikkb{height:unset;margin-top:0;padding-bottom:0;overflow:visible;border-radius:var(--playpilot-detail-border-radius, var(--playpilot-border-radius-large))}}@media (max-width: 599px){.dialog.tall.svelte-2bikkb{height:90vh}@supports (height: 1dvh){.dialog.tall.svelte-2bikkb{height:90dvh}}}.has-prepend.svelte-2bikkb .dialog:where(.svelte-2bikkb){margin-top:0}.has-bubble.svelte-2bikkb .dialog:where(.svelte-2bikkb){border-top-left-radius:0;border-top-right-radius:0;margin-top:0}.swipe-handle.svelte-2bikkb{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-2bikkb{--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;top:calc(var(--dialog-offset) + 16px);right:16px}@media (min-width: 600px){.close.svelte-2bikkb{position:absolute;top:16px}}.close.svelte-2bikkb:hover{filter:brightness(1.1)}.close.flat.svelte-2bikkb{--playpilot-button-background: transparent;--playpilot-button-shadow: none}.close.back.svelte-2bikkb{right:auto;left:16px}.close.back.flat.svelte-2bikkb{left:8px}.close.back.flat.svelte-2bikkb svg{margin:0}.transitioning.svelte-2bikkb .close:where(.svelte-2bikkb){top:16px}.prepend.svelte-2bikkb{z-index:1;position:relative;width:calc(100% - 16px);max-width:600px;padding-top:48px;margin:auto auto 8px}@media (min-width: 600px){.prepend.svelte-2bikkb{padding-top:0;margin-top:0}}.bubble.svelte-2bikkb{z-index:1;position:relative;width:calc(100% - 16px);max-width:600px;margin:8px}@media (min-width: 600px){.bubble.svelte-2bikkb{width:100%;margin:0 0 8px}}.bubble.inline.svelte-2bikkb{width:100%;margin:auto 0 0}@media (min-width: 600px){.bubble.inline.svelte-2bikkb{margin-top:0}}.prepend.svelte-2bikkb+.bubble:where(.svelte-2bikkb):not(.inline){margin-top:0}.genre.svelte-awb4w8{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-awb4w8:is(button:where(.svelte-awb4w8)):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-awb4w8{margin-left:-8px}.disclaimer.svelte-1aoli55{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-1aoli55: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-1aoli55{height:16px;width:16px}.tooltip.svelte-1aoli55{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-1aoli55{display:block;z-index:20;position:absolute;right:100%;bottom:4px;width:calc(var(--width, 15rem) * .8);padding:8px;border-radius:8px;background:var(--playpilot-disclaimer-tooltip-background, var(--playpilot-content));box-shadow:var(--playpilot-shadow);font-size:12px;line-height:1.1;text-align:right;white-space:normal}@keyframes svelte-1ganvvq-sheen{0%,20%,60%,80.01%,to{background-position:-100% 0}80%{background-position:100% 0}}img.svelte-1ganvvq{height:36px;width:36px;border-radius:var(--playpilot-playlink-image-border-radius, var(--playpilot-border-radius));background:#00000040}.playlink.svelte-1ganvvq{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-1ganvvq:not(span):hover,.playlink.svelte-1ganvvq: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-1ganvvq{grid-column:span 2}.playlink.highlighted.svelte-1ganvvq: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-1ganvvq:before{animation:svelte-1ganvvq-sheen 4s ease-in-out infinite}}.playlink.highlighted.svelte-1ganvvq: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-1ganvvq img:where(.svelte-1ganvvq){grid-area:image;margin:0}.playlink-content.svelte-1ganvvq{position:relative;z-index:5;display:grid;grid-template-areas:"image name action" "image category action";grid-template-columns:36px auto 96px;align-items:center;gap:0 12px;padding:12px}.highlighted.svelte-1ganvvq .playlink-content:where(.svelte-1ganvvq){grid-template-areas:"image name action" "image category action" "image cta action";gap:4px 12px}.no-category.svelte-1ganvvq .playlink-content:where(.svelte-1ganvvq){grid-template-areas:"image name action" "image cta action"}.name.svelte-1ganvvq{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-1ganvvq{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-1ganvvq{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-1ganvvq{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-1ganvvq .action:where(.svelte-1ganvvq){border:0;background:var(--playpilot-playlinks-action-background-color, white);color:var(--playpilot-playlinks-action-text-color, black)}.heading.svelte-mivaad{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}.playlinks.svelte-mivaad{box-sizing:border-box;display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:8px}.playlinks.list.svelte-mivaad{grid-template-columns:1fr}.playlinks.list.svelte-mivaad .playlink.highlighted{grid-column:span 1}.disclaimer.svelte-mivaad{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-mivaad a:where(.svelte-mivaad){color:inherit;font-size:inherit;font-style:inherit}.disclaimer.svelte-mivaad a:where(.svelte-mivaad):hover{color:var(--playpilot-playlinks-disclaimer-text-color-hover, var(--playpilot-text-color))}.empty.svelte-mivaad{grid-column:span 2;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}.list.svelte-mivaad .empty:where(.svelte-mivaad){grid-column:1}.paragraph.svelte-1rt1t7o{display:block;margin:16px 0 0}.show-more.svelte-1rt1t7o{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-1rt1t7o:hover{text-decoration:underline;text-decoration-thickness:2px;cursor:pointer}.slider.svelte-zli3gi{overflow-x:hidden;touch-action:pan-y}@media (pointer: fine){.slider.passed-threshold.svelte-zli3gi{pointer-events:none}}.slider-content.svelte-zli3gi{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-zli3gi{transition:none}}.heading.svelte-l8rcrc{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-l8rcrc{--gap: 8px;position:relative;width:calc(100% + 32px);margin:0 -16px}.rail.svelte-l8rcrc .slider{padding:0 16px}.rail.svelte-l8rcrc .slider-content>:last-child{margin-right:32px}.arrow.svelte-l8rcrc{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-l8rcrc{display:flex}}.arrow.svelte-l8rcrc:hover{filter:brightness(1.2)}.arrow.right.svelte-l8rcrc{left:auto;right:0}.participant.svelte-twi8bf{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-twi8bf:is(button:where(.svelte-twi8bf)):hover,.participant.svelte-twi8bf:is(button:where(.svelte-twi8bf)):active{filter:brightness(var(--playpilot-cast-hover-filter-brightness, var(--playpilot-hover-filter-brightness)));text-decoration:none!important}.character.svelte-twi8bf{color:var(--playpilot-cast-character-text-color, var(--playpilot-text-color-alt));font-style:italic}.truncate.svelte-twi8bf{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}img.svelte-11kx6oy{display:block;width:100%;height:auto;color:var(--playpilot-detail-text-color, var(--playpilot-text-color-alt))}.title.svelte-78gj1g{width:96px}.title.svelte-78gj1g:hover,.title.svelte-78gj1g:active{filter:brightness(1.1)}.poster.svelte-78gj1g{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))}.heading.svelte-78gj1g{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-78gj1g{display:block;height:1em;width:100%;background:var(--playpilot-detail-background-light, var(--playpilot-lighter));border-radius:32px}.skeleton.svelte-78gj1g:last-child{margin-top:4.8px;width:50%}.button.svelte-1ruoz5a{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;height:100%;align-items: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-1ruoz5a svg{width:1.5em;height:1.5em;opacity:.75}.filled.svelte-1ruoz5a{background:var(--playpilot-button-filled-background, var(--playpilot-content))}.filled.svelte-1ruoz5a:hover,.filled.svelte-1ruoz5a:active{background:var(--playpilot-button-filled-hover-background, var(--playpilot-content-light));color:var(--playpilot-button-filled-hover-text-color, var(--playpilot-text-color))}.border.svelte-1ruoz5a{box-shadow:inset 0 0 0 1px var(--playpilot-button-border-color, var(--playpilot-content-light))}.border.svelte-1ruoz5a:hover,.border.svelte-1ruoz5a:active{background:var(--playpilot-button-border-color, var(--playpilot-content));color:var(--playpilot-button-hover-text-color, var(--playpilot-text-color))}.share.svelte-113frw{position:relative}.context-menu.svelte-113frw{z-index:10;position:absolute;bottom:calc(100% + 8px);left: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)}.context-menu.svelte-113frw: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-113frw{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-113frw:hover{background:var(--playpilot-context-menu-border, rgba(255, 255, 255, .1))}.item.svelte-113frw:first-child{border-radius:var(--playpilot-context-menu-border-radius, 8px) var(--playpilot-context-menu-border-radius, 8px) 0 0}.item.svelte-113frw: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-113frw:not(:hover) svg{opacity:.75}iframe.svelte-b34co4{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-b34co4{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-b34co4{z-index:0;position:fixed;top:0;right:0;bottom:0;left:0}.close.svelte-b34co4{-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-b34co4:hover{transform:scale(1.1)}.close.svelte-b34co4:active{transform:scale(1)}.heading.svelte-1aeecbs{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-1aeecbs .heading:where(.svelte-1aeecbs){font-size:var(--playpilot-detail-title-font-size-small, 18px)}.content.svelte-1aeecbs{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-1aeecbs ::view-transition-old(content),.content.svelte-1aeecbs ::view-transition-new(content){height:100%}.content.small.svelte-1aeecbs{font-size:var(--playpilot-detail-font-size-small, var(--playpilot-font-size-small));line-height:1.45;padding-bottom:16px}.header.svelte-1aeecbs{padding:48px 0 16px;background:transparent}.small.svelte-1aeecbs .header:where(.svelte-1aeecbs){padding-top:16px}.poster.svelte-1aeecbs{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-1aeecbs{opacity:1}.info.svelte-1aeecbs{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px}@media (min-width: 600px){.info.svelte-1aeecbs{gap:8px 16px}}.small.svelte-1aeecbs .info:where(.svelte-1aeecbs){gap:8px 12px}.imdb.svelte-1aeecbs{display:flex;align-items:center;gap:4px}.imdb.svelte-1aeecbs svg{margin-top:-2px}.small.svelte-1aeecbs .imdb:where(.svelte-1aeecbs) svg{margin-top:0;width:12px;height:12px}.actions.svelte-1aeecbs{display:flex;gap:8px;margin-top:8px}.background.svelte-1aeecbs{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-1aeecbs: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-1aeecbs img:where(.svelte-1aeecbs){width:100%;height:100%;object-fit:cover;object-position:center;margin:0;opacity:0;z-index:0}.background.svelte-1aeecbs img.loaded:where(.svelte-1aeecbs){opacity:1}.background.svelte-1aeecbs img.blur:where(.svelte-1aeecbs){opacity:.5;transform:scale(1.1);filter:blur(.75rem)}.capitalize.svelte-1aeecbs{text-transform:capitalize}.truncate.svelte-1aeecbs{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.top-scroll.svelte-1odp00s{position:relative;display:block;width:100%;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large));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}.top-scroll.inline.svelte-1odp00s{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}.content.svelte-1odp00s{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-1odp00s .content:where(.svelte-1odp00s){justify-content:center;min-height:0;padding:0}.logo.svelte-1odp00s{border-radius:var(--playpilot-top-scroll-logo-border-radius, var(--playpilot-border-radius));background:#000}.tagline.svelte-1odp00s{margin:0;text-shadow:var(--playpilot-shadow)}.button.svelte-1odp00s{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-1odp00s: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-1odp00s:active{background:var(--playpilot-top-scroll-button-background, white)}.background.svelte-1odp00s{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));background-image:var(--background);background-position:center;background-size:cover;opacity:.4}.top-scroll.svelte-1odp00s:hover .background:where(.svelte-1odp00s){filter:brightness(1.15)}.inline.svelte-1odp00s .background:where(.svelte-1odp00s){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}.content-image.svelte-1odp00s{display:block;max-width:100%;height:auto;background:#000;border-radius:var(--playpilot-top-scroll-border-radius, var(--playpilot-border-radius-large))}.top-scroll.svelte-1odp00s:hover .content-image:where(.svelte-1odp00s){filter:brightness(1.15)}.inline.svelte-1odp00s .content-image:where(.svelte-1odp00s){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}.tooltip.svelte-fcvpct{position:relative}.content.svelte-fcvpct{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-1jneh2k{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-1jneh2k{position:absolute;top:0;left:0;padding:8px;font-size:12px;text-decoration:underline}@media (min-width: 600px){.info.svelte-1jneh2k{padding:16px}.compact.svelte-1jneh2k .info:where(.svelte-1jneh2k){padding:12px}}.cta.svelte-1jneh2k{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-1jneh2k{padding:16px}.compact.svelte-1jneh2k .cta:where(.svelte-1jneh2k){padding:12px}}.logo.svelte-1jneh2k{border-radius:var(--playpilot-display-ad-border-radius, var(--playpilot-border-radius))}.name.svelte-1jneh2k{font-weight:500}.subheader.svelte-1jneh2k{font-size:12px}.action.svelte-1jneh2k{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-1jneh2k:hover{transform:scale(1.05)}.background.svelte-1jneh2k{display:block;width:100%;height:auto}.disclaimer.svelte-1jneh2k{position:absolute;bottom:calc(var(--offset) + 4px);right:4px}.playlink.svelte-1yskw5v{display:inline-block;width:var(--size);height:var(--size);background:var(--playpilot-playlink-background, var(--playpilot-light));border-radius:var(--playpilot-playlink-border-radius, var(--playpilot-border-radius));overflow:hidden}.playlink.svelte-1yskw5v:hover,.playlink.svelte-1yskw5v: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-1yskw5v img:where(.svelte-1yskw5v){display:block;margin:0;width:auto}.title.svelte-1aq3lk8{-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:8px;border:0;border-radius:var(--playpilot-list-item-border-radius, var(--playpilot-border-radius));text-decoration:none;font-style:normal!important}.title.svelte-1aq3lk8:hover{filter:brightness(var(--playpilot-list-item-hover-filter-brightness, var(--playpilot-hover-filter-brightness)))}.title.svelte-1aq3lk8:last-child{border-bottom:0}.poster.svelte-1aq3lk8{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-1aq3lk8{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-1aq3lk8{padding-right:16px}}.heading.svelte-1aq3lk8{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-1aq3lk8{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-1aq3lk8>div:where(.svelte-1aq3lk8){text-transform:capitalize}.imdb.svelte-1aq3lk8{display:flex;align-items:center;gap:4px}.description.svelte-1aq3lk8{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))}.playlinks.svelte-1aq3lk8{display:flex;flex-wrap:wrap;gap:4px;margin-top:auto}.more.svelte-1aq3lk8{display:flex;align-items:center;padding:0 4px;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))}.empty.svelte-1aq3lk8{margin-top:8px;opacity:.65;font-style:italic;font-size:.85em;white-space:initial}.action.svelte-1aq3lk8{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-1aq3lk8:hover,.action.svelte-1aq3lk8:active{color:var(--playpilot-list-item-action-hover-color, var(--playpilot-text-color))}.header.svelte-1k98u86{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-1k98u86{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-1k98u86{margin:0 0 8px;font-size:var(--playpilot-detail-title-small-font-size, 20px)}.dates.svelte-1k98u86{margin:8px 0 0}.content.svelte-1k98u86{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-1k98u86{display:flex;flex-direction:column;gap:8px}.skeleton.svelte-1k98u86{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-1k98u86{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-1k98u86:hover{filter:brightness(1.2)}@keyframes svelte-9u5ezu-delay-render{0%{opacity:0}to{opacity:1}}.popover.svelte-9u5ezu{--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-9u5ezu-delay-render 0ms 1ms forwards;z-index:2147483647}.popover.flip.svelte-9u5ezu{flex-direction:column;top:auto;bottom:calc(var(--offset) + 1px);transform:translateY(calc(100% + var(--offset)))}.popover.flip.inline.svelte-9u5ezu{flex-direction:column-reverse}.popover.inline.svelte-9u5ezu{gap:0}.dialog.svelte-9u5ezu{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-9u5ezu .dialog:where(.svelte-9u5ezu){border-top-left-radius:0;border-top-right-radius:0}.scroll-indicator.svelte-9u5ezu{z-index:1;position:sticky;bottom:0;pointer-events:none}.scroll-indicator.svelte-9u5ezu: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-9u5ezu{z-index:1;position:absolute;display:flex;bottom:4px;left:50%;transform:translate(-50%);opacity:.75}.scroll-indicator-icon.svelte-9u5ezu svg{fill:var(--playpilot-popover-scroll-indicator-fill, var(--playpilot-text-color))!important}.bubble.svelte-9u5ezu,.append.svelte-9u5ezu{view-transition-name:playpilot-title-extra}img.svelte-j7f9xl{position:absolute;width:1px;height:1px;border:0;opacity:0}.title-popover.svelte-d86q0q{position:absolute}p.svelte-84svc0{font-weight:var(--playpilot-after-article-text-font-weight, var(--playpilot-normal))}span.svelte-84svc0{display:block}button.svelte-84svc0{-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-84svc0: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-dawn4f{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-by11ix{transition:transform .1s}.expanded.svelte-by11ix{transform:rotate(180deg)}.switch.svelte-91s87b{-webkit-appearance:none;-moz-appearance:none;appearance:none;display:flex;align-items:center;border:0;padding:0;background:transparent;cursor:pointer}.fullwidth.svelte-91s87b{width:100%;justify-content:space-between}.label.svelte-91s87b{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-91s87b:hover .label:where(.svelte-91s87b){color:var(--playpilot-text-color)}.track.svelte-91s87b{position:relative;width:32px;height:20px;border-radius:16px;background:var(--playpilot-content);transition:background-color .1s}.active.svelte-91s87b .track:where(.svelte-91s87b){background:var(--playpilot-green)}.knob.svelte-91s87b{position:absolute;top:2px;left:2px;height:16px;width:16px;border-radius:50%;background:#fff;transition:left .1s}.active.svelte-91s87b .knob:where(.svelte-91s87b){left:14px}input.svelte-k0rhfj{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-k0rhfj:focus{background:var(--playpilot-lighter);outline:1px solid white}input.svelte-k0rhfj::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.alert.svelte-df5n87{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)}.alert.warning.svelte-df5n87{border-color:var(--playpilot-warning);background:var(--playpilot-warning-dark)}.alert.fixed.svelte-df5n87{position:fixed;bottom:1rem;right:1rem;width:80%;max-width:25rem}.alert.svelte-df5n87 a{color:currentColor}.switches.svelte-1shw34x{display:flex;flex-direction:column;gap:12px}button.svelte-1shw34x{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-1shw34x:hover,button.active.svelte-1shw34x{color:var(--playpilot-text-color)}.group.svelte-1shw34x{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-1shw34x{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-1shw34x{left:calc(50% + 4px)}.label.svelte-1shw34x{margin:10.8px 0 4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.alert.svelte-1shw34x{margin-top:8px}button.svelte-zpsd2z{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:4px;background:transparent;color:var(--playpilot-text-color-alt)}button.svelte-zpsd2z:hover{cursor:pointer;color:#fff}.context-menu.svelte-zpsd2z{position:relative}.content.svelte-zpsd2z{z-index:1;position:absolute;top:100%;right:0;max-width:240px;border-radius:8px;background:var(--playpilot-lighter)}select.svelte-o5qkco{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-o5qkco:hover,option.svelte-o5qkco:active,option.svelte-o5qkco:checked{background-color:var(--playpilot-content-light);font-weight:700}.form.svelte-o5qkco{padding:32px;font-family:var(--playpilot-font-family);color:var(--playpilot-text-color)}.heading.svelte-o5qkco{font-size:20px}.info.svelte-o5qkco{margin:16px 0;font-size:13.6px;color:var(--playpilot-text-color-alt)}.info.svelte-o5qkco strong:where(.svelte-o5qkco){color:var(--playpilot-text-color)}.submit.svelte-o5qkco{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-o5qkco{background:var(--playpilot-content);color:var(--playpilot-text-color-alt);box-shadow:none;opacity:.5;cursor:default}.sent.svelte-o5qkco{margin-top:16px;padding:8px 0;color:var(--playpilot-green);font-size:13.6px}.item.svelte-lo6h85{padding:16px 8px;border-bottom:1px solid var(--playpilot-lighter);transition:outline-offset .1s}.item.svelte-lo6h85:hover,.item.highlighted.svelte-lo6h85{border-radius:8px;border-color:transparent;outline:2px solid var(--playpilot-content);outline-offset:1px}.item.highlighted.svelte-lo6h85{outline:2px solid var(--playpilot-primary)}.header.svelte-lo6h85{display:flex;gap:16px;width:100%}.poster.svelte-lo6h85{display:block;width:32px;height:48px;border-radius:4px;background:var(--playpilot-content)}.inactive.svelte-lo6h85 .poster:where(.svelte-lo6h85){opacity:.35}.title.svelte-lo6h85{font-size:14px;word-break:break-word}.sentence.svelte-lo6h85{font-size:.7em;line-height:150%;margin-right:-8px;color:var(--playpilot-text-color-alt);opacity:.75}.sentence.svelte-lo6h85 em{color:var(--playpilot-text-color);font-weight:700}.expand-sentence.svelte-lo6h85{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-lo6h85:hover{color:var(--playpilot-text-color)}.content.svelte-lo6h85{padding-top:8px}.inactive.svelte-lo6h85 .info:where(.svelte-lo6h85){opacity:.35}.context-menu.svelte-lo6h85{margin:0 -4px 0 auto}.context-menu-action.svelte-lo6h85{-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-lo6h85:hover{color:var(--playpilot-text-color);background-color:var(--playpilot-content-light)}.context-menu-action.svelte-lo6h85:first-child{margin-top:8px}.context-menu-action.svelte-lo6h85:last-child{margin-bottom:8px}.actions.svelte-lo6h85{display:flex;align-items:center;justify-content:space-between;width:100%}.expand.svelte-lo6h85{-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-lo6h85:hover{filter:brightness(1.2)}.expanded.svelte-lo6h85{padding-top:16px}.type-select.svelte-lo6h85{margin-top:8px}.label.svelte-lo6h85{margin-bottom:4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.offset.svelte-lo6h85{margin-top:12px}.warning.svelte-lo6h85{margin:0 auto 0 8px}.warning.svelte-lo6h85 svg{display:block}.drag-handle.svelte-19mcc5g{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-19mcc5g:hover:before{opacity:.65;transform:scale(1.05)}.drag-handle.svelte-19mcc5g:active:before{opacity:.9;transform:scale(.95)}.drag-handle.svelte-19mcc5g:active{cursor:grabbing}.drag-handle.svelte-19mcc5g: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-sxkuxk{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-sxkuxk:hover:before{opacity:.65;transform:scale(1.05)}.resize-handle.svelte-sxkuxk:active:before{opacity:.9;transform:scale(.95)}.resize-handle.svelte-sxkuxk:active{cursor:grabbing}.resize-handle.svelte-sxkuxk: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-1d1gqdq{-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-1d1gqdq{cursor:pointer}.item.hoverable.svelte-1d1gqdq:hover{background:var(--playpilot-lighter)}.item.svelte-1d1gqdq:last-child{border-bottom:0}.poster.svelte-1d1gqdq{flex:0 0 auto;height:auto;width:28px;aspect-ratio:28/42;border-radius:4px;background:var(--playpilot-content)}.name.svelte-1d1gqdq{color:var(--playpilot-text-color)}.meta.svelte-1d1gqdq{display:flex;flex-wrap:wrap;gap:0 8px;font-size:12px}.imdb.svelte-1d1gqdq{display:flex;align-items:center;gap:4px}.open-in-new-tab.svelte-1d1gqdq{margin-left:auto;color:var(--playpilot-text-color-alt)}.open-in-new-tab.svelte-1d1gqdq:hover{color:var(--playpilot-text-color)}.search.svelte-s0qvcb{position:relative}.results.svelte-s0qvcb{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-s0qvcb{padding:8px;font-size:12px;color:var(--playpilot-text-color-alt)}.selected.svelte-s0qvcb{margin:8px 0;border-radius:.5rem;border:2px solid var(--playpilot-green)}p.svelte-q5prge,label.svelte-q5prge{font-size:12px;max-width:240px;color:var(--playpilot-text-color-alt)}label.svelte-q5prge{display:block;margin-top:16px}.layout.svelte-q5prge{height:100%;display:flex;flex-direction:column;margin:0}.header.svelte-q5prge{display:flex;align-items:center;gap:8px;margin-bottom:16px}.heading.svelte-q5prge{margin:0;color:var(--playpilot-text-color);font-size:16px;line-height:normal;font-weight:400}.error.svelte-q5prge{margin-top:8px}.save.svelte-q5prge{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-q5prge:not([disabled]):hover{outline:2px solid currentColor}.save[disabled].svelte-q5prge{cursor:default;background:var(--playpilot-lighter);opacity:.5;color:var(--playpilot-text-color-alt)}p.svelte-2m2urs{margin:0 0 8px}.alert.svelte-2m2urs{margin:0 8px}.button.svelte-2m2urs{-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-2m2urs:hover{background:#fff}a.svelte-o59195{color:currentColor}p.svelte-o59195{margin:0}.ai-indicator.svelte-o59195{position:relative;margin:0 8px}.content.svelte-o59195{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-o59195{display:flex;margin-top:4px;font-style:italic}.icon.svelte-o59195{color:var(--playpilot-green)}.border.svelte-o59195{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-o59195 .border:where(.svelte-o59195){background:var(--playpilot-light)}@keyframes svelte-o59195-rotate{to{rotate:360deg}}.animator.svelte-o59195{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-o59195-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-o59195{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-o59195{height:.5em;border-radius:.25rem;background:var(--playpilot-lighter)}.loading-bar-fill.svelte-o59195{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-o59195{text-align:right}@keyframes svelte-o59195-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-o59195 span:where(.svelte-o59195){animation:svelte-o59195-fade 2s infinite}.ellipses.svelte-o59195 span:where(.svelte-o59195):nth-child(1){animation-delay:.2s}.ellipses.svelte-o59195 span:where(.svelte-o59195):nth-child(2){animation-delay:.4s}.ellipses.svelte-o59195 span:where(.svelte-o59195):nth-child(3){animation-delay:.6s}.dismiss.svelte-o59195{-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-o59195:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.editor.svelte-1dzk6rn{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-1dzk6rn{overflow:hidden}.loading.svelte-1dzk6rn{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-1dzk6rn,.header.svelte-1dzk6rn{z-index:20;position:sticky;top:-16px;margin:-16px -16px 0}.handle.svelte-1dzk6rn{opacity:0;transition:opacity .15s}.editor.svelte-1dzk6rn:hover .handle:where(.svelte-1dzk6rn){opacity:1}.header.svelte-1dzk6rn{z-index:5;display:flex;align-items:center;padding:16px 16px 16px 24px;margin:0 -16px;border:0;background:var(--playpilot-dark)}.loading.svelte-1dzk6rn .header:where(.svelte-1dzk6rn){margin:-16px}.heading.svelte-1dzk6rn{margin:0 12px 0 0;color:var(--playpilot-text-color);font-size:20px;font-weight:400;line-height:normal}.bubble.svelte-1dzk6rn{-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-1dzk6rn{padding-top:8px;margin-bottom:auto}.empty.svelte-1dzk6rn{padding:8px;font-size:13.6px;font-style:italic;color:var(--playpilot-text-color-alt)}.save.svelte-1dzk6rn{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-1dzk6rn:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.save[disabled].svelte-1dzk6rn{opacity:.75;background:var(--playpilot-lighter);color:var(--playpilot-content-light)}.error.svelte-1dzk6rn{margin-top:8px}.alert.svelte-1dzk6rn{margin:8px 8px 0}.panel.svelte-1dzk6rn{z-index:10;position:absolute;top:0;left:0;width:100%;height:100%;padding:24px;background:var(--playpilot-dark);overflow-y:auto}.trigger.svelte-qee95d{position:fixed;bottom:16px;right:16px}.button.svelte-qee95d{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-qee95d:hover{filter:brightness(1.1);transform:scale(1.05)}.button.svelte-qee95d svg{width:100%}.close.svelte-qee95d{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-qee95d svg{width:12px}summary.svelte-o82u5e{color:var(--playpilot-primary);font-weight:700}hr.svelte-o82u5e{border-color:var(--playpilot-primary)}button.svelte-o82u5e{cursor:pointer;padding:8px;border:1px solid var(--playpilot-primary);background:transparent;color:var(--playpilot-primary);font-family:inherit;font-weight:700}button.svelte-o82u5e:hover{color:#000;background:var(--playpilot-primary)}.debugger.svelte-o82u5e{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-o82u5e{white-space:nowrap;overflow-x:auto;scrollbar-width:thin}.data.svelte-o82u5e{color:gray}.error.svelte-o82u5e{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-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-scrollbed::-webkit-scrollbar{width:12px}.playpilot-styled-scrollbed::-webkit-scrollbar-track{background:var(--playpilot-light)}.playpilot-styled-scrollbed::-webkit-scrollbar-thumb{border:2px solid var(--playpilot-light);border-radius:16px;background:var(--playpilot-lighter)}.playpilot-styled-scrollbed::-webkit-scrollbar-thumb:hover{background:var(--playpilot-content-light)}.playpilot-styled-scrollbed::-webkit-scrollbar-thumb:active{background:var(--playpilot-text-color-alt)}[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%}.playpilot-link-injections.svelte-33g9um *{box-sizing:border-box}.playpilot-link-injections.svelte-33g9um svg{fill:none}.playpilot-link-injections.svelte-33g9um a,.playpilot-link-injections.svelte-33g9um button,.playpilot-link-injections.svelte-33g9um input{transition:outline-offset .1s}.playpilot-link-injections.svelte-33g9um a:focus-visible,.playpilot-link-injections.svelte-33g9um button:focus-visible,.playpilot-link-injections.svelte-33g9um input:focus-visible{outline:2px solid white;outline-offset:2px}
|
|
2
|
-
/*$vite$:1*/`,document.head.appendChild(ke);const xe=!1;var Ie=Array.isArray,zi=Array.prototype.indexOf,sn=Array.from,go=Object.defineProperty,yt=Object.getOwnPropertyDescriptor,ma=Object.getOwnPropertyDescriptors,mo=Object.prototype,yo=Array.prototype,cn=Object.getPrototypeOf;function Ft(e){return typeof e=="function"}const at=()=>{};function _o(e){return typeof(e==null?void 0:e.then)=="function"}function bo(e){return e()}function dn(e){for(var t=0;t<e.length;t++)e[t]()}function qi(e,t,i=!1){return e===void 0?i?t():t:e}const et=2,ya=4,ci=8,Ci=16,tt=32,di=64,Ai=128,jt=256,Li=512,Ke=1024,_t=2048,Mi=4096,rt=8192,Vt=16384,_a=32768,zt=65536,ko=1<<17,ba=1<<19,ka=1<<20,ot=Symbol("$state"),xa=Symbol("legacy props"),un=Symbol("");function wa(e){return e===this.v}function vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function xo(e,t){return e!==t}function pn(e){return!vn(e,this.v)}function wo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function So(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function To(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Eo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Io(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Po(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function jo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function zo(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function qo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Wt=!1,Co=!1;function Ao(){Wt=!0}const fn=1,hn=2,Sa=4,Lo=8,Mo=16,Do=1,No=2,Oo=4,Ro=8,Ho=16,Bo=1,Fo=2,Vo=4,Wo=1,Uo=2,qe=Symbol(),gn="http://www.w3.org/2000/svg";function Me(e,t){var i={f:0,v:e,reactions:null,equals:wa,rv:0,wv:0};return i}function U(e){return Yo(Me(e))}function Di(e,t=!1){var n;const i=Me(e);return t||(i.equals=pn),Wt&&ge!==null&&ge.l!==null&&((n=ge.l).s??(n.s=[])).push(i),i}function Yo(e){return _e!==null&&_e.f&et&&(dt===null?rl([e]):dt.push(e)),e}function q(e,t){return _e!==null&&Xt()&&_e.f&(et|Ci)&&(dt===null||!dt.includes(e))&&qo(),Ut(e,t)}function Ut(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Ya(),Ta(e,_t),Xt()&&ce!==null&&ce.f&Ke&&!(ce.f&tt)&&(Ne!==null&&Ne.includes(e)?(ut(ce,_t),Fi(ce)):bt===null?ol([e]):bt.push(e))),t}function Ta(e,t){var i=e.reactions;if(i!==null)for(var n=Xt(),a=i.length,r=0;r<a;r++){var l=i[r],c=l.f;c&_t||!n&&l===ce||(ut(l,t),c&(Ke|jt)&&(c&et?Ta(l,Mi):Fi(l)))}}let mn=!1;function vf(e){}function le(e,t=null,i){if(typeof e!="object"||e===null||ot in e)return e;const n=cn(e);if(n!==mo&&n!==yo)return e;var a=new Map,r=Ie(e),l=Me(0);r&&a.set("length",Me(e.length));var c;return new Proxy(e,{defineProperty(d,s,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Po();var v=a.get(s);return v===void 0?(v=Me(u.value),a.set(s,v)):q(v,le(u.value,c)),!0},deleteProperty(d,s){var u=a.get(s);if(u===void 0)s in d&&a.set(s,Me(qe));else{if(r&&typeof s=="string"){var v=a.get("length"),p=Number(s);Number.isInteger(p)&&p<v.v&&q(v,p)}q(u,qe),Ea(l)}return!0},get(d,s,u){var y;if(s===ot)return e;var v=a.get(s),p=s in d;if(v===void 0&&(!p||(y=yt(d,s))!=null&&y.writable)&&(v=Me(le(p?d[s]:qe,c)),a.set(s,v)),v!==void 0){var h=o(v);return h===qe?void 0:h}return Reflect.get(d,s,u)},getOwnPropertyDescriptor(d,s){var u=Reflect.getOwnPropertyDescriptor(d,s);if(u&&"value"in u){var v=a.get(s);v&&(u.value=o(v))}else if(u===void 0){var p=a.get(s),h=p==null?void 0:p.v;if(p!==void 0&&h!==qe)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(d,s){var h;if(s===ot)return!0;var u=a.get(s),v=u!==void 0&&u.v!==qe||Reflect.has(d,s);if(u!==void 0||ce!==null&&(!v||(h=yt(d,s))!=null&&h.writable)){u===void 0&&(u=Me(v?le(d[s],c):qe),a.set(s,u));var p=o(u);if(p===qe)return!1}return v},set(d,s,u,v){var I;var p=a.get(s),h=s in d;if(r&&s==="length")for(var y=u;y<p.v;y+=1){var f=a.get(y+"");f!==void 0?q(f,qe):y in d&&(f=Me(qe),a.set(y+"",f))}p===void 0?(!h||(I=yt(d,s))!=null&&I.writable)&&(p=Me(void 0),q(p,le(u,c)),a.set(s,p)):(h=p.v!==qe,q(p,le(u,c)));var b=Reflect.getOwnPropertyDescriptor(d,s);if(b!=null&&b.set&&b.set.call(v,u),!h){if(r&&typeof s=="string"){var g=a.get("length"),k=Number(s);Number.isInteger(k)&&k>=g.v&&q(g,k+1)}Ea(l)}return!0},ownKeys(d){o(l);var s=Reflect.ownKeys(d).filter(p=>{var h=a.get(p);return h===void 0||h.v!==qe});for(var[u,v]of a)v.v!==qe&&!(u in d)&&s.push(u);return s},setPrototypeOf(){jo()}})}function Ea(e,t=1){q(e,e.v+t)}function Ia(e){return e!==null&&typeof e=="object"&&ot in e?e[ot]:e}function Ko(e,t){return Object.is(Ia(e),Ia(t))}var be,Pa,ja;function Zo(){if(be===void 0){be=window;var e=Element.prototype,t=Node.prototype;Pa=yt(t,"firstChild").get,ja=yt(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Yt(e=""){return document.createTextNode(e)}function qt(e){return Pa.call(e)}function Ni(e){return ja.call(e)}function x(e,t){return qt(e)}function X(e,t){{var i=qt(e);return i instanceof Comment&&i.data===""?Ni(i):i}}function S(e,t=1,i=!1){let n=e;for(;t--;)n=Ni(n);return n}function Go(e){e.textContent=""}function F(e){var t=et|_t;ce===null?t|=jt:ce.f|=ka;var i=_e!==null&&_e.f&et?_e:null;const n={children:null,ctx:ge,deps:null,equals:wa,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:i??ce};return i!==null&&(i.children??(i.children=[])).push(n),n}function Xo(e){const t=F(e);return t.equals=pn,t}function za(e){var t=e.children;if(t!==null){e.children=null;for(var i=0;i<t.length;i+=1){var n=t[i];n.f&et?yn(n):Xe(n)}}}function Jo(e){for(var t=e.parent;t!==null;){if(!(t.f&et))return t;t=t.parent}return null}function qa(e){var t,i=ce;De(Jo(e));try{za(e),t=Ka(e)}finally{De(i)}return t}function Ca(e){var t=qa(e),i=(kt||e.f&jt)&&e.deps!==null?Mi:Ke;ut(e,i),e.equals(t)||(e.v=t,e.wv=Ya())}function yn(e){za(e),mi(e,0),ut(e,Vt),e.v=e.children=e.deps=e.ctx=e.reactions=null}function Aa(e){ce===null&&_e===null&&To(),_e!==null&&_e.f&jt&&So(),xn&&wo()}function Qo(e,t){var i=t.last;i===null?t.last=t.first=e:(i.next=e,e.prev=i,t.last=e)}function Kt(e,t,i,n=!0){var a=(e&di)!==0,r=ce,l={ctx:ge,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|_t,first:null,fn:t,last:null,next:null,parent:a?null:r,prev:null,teardown:null,transitions:null,wv:0};if(i){var c=Zt;try{Va(!0),Bi(l),l.f|=_a}catch(u){throw Xe(l),u}finally{Va(c)}}else t!==null&&Fi(l);var d=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&ka)===0;if(!d&&!a&&n&&(r!==null&&Qo(l,r),_e!==null&&_e.f&et)){var s=_e;(s.children??(s.children=[])).push(l)}return l}function $o(){return _e===null?!1:!kt}function La(e){const t=Kt(ci,null,!1);return ut(t,Ke),t.teardown=e,t}function lt(e){Aa();var t=ce!==null&&(ce.f&tt)!==0&&ge!==null&&!ge.m;if(t){var i=ge;(i.e??(i.e=[])).push({fn:e,effect:ce,reaction:_e})}else{var n=pt(e);return n}}function el(e){return Aa(),ui(e)}function tl(e){const t=Kt(di,e,!0);return(i={})=>new Promise(n=>{i.outro?ct(t,()=>{Xe(t),n(void 0)}):(Xe(t),n(void 0))})}function pt(e){return Kt(ya,e,!1)}function ui(e){return Kt(ci,e,!0)}function C(e){return st(e)}function st(e,t=0){return Kt(ci|Ci|t,e,!0)}function We(e,t=!0){return Kt(ci|tt,e,!0,t)}function Ma(e){var t=e.teardown;if(t!==null){const i=xn,n=_e;Wa(!0),Ue(null);try{t.call(null)}finally{Wa(i),Ue(n)}}}function Da(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var i=0;i<t.length;i+=1)yn(t[i])}}function Na(e,t=!1){var i=e.first;for(e.first=e.last=null;i!==null;){var n=i.next;Xe(i,t),i=n}}function il(e){for(var t=e.first;t!==null;){var i=t.next;t.f&tt||Xe(t),t=i}}function Xe(e,t=!0){var i=!1;if((t||e.f&ba)&&e.nodes_start!==null){for(var n=e.nodes_start,a=e.nodes_end;n!==null;){var r=n===a?null:Ni(n);n.remove(),n=r}i=!0}Na(e,t&&!i),Da(e),mi(e,0),ut(e,Vt);var l=e.transitions;if(l!==null)for(const d of l)d.stop();Ma(e);var c=e.parent;c!==null&&c.first!==null&&Oa(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Oa(e){var t=e.parent,i=e.prev,n=e.next;i!==null&&(i.next=n),n!==null&&(n.prev=i),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=i))}function ct(e,t){var i=[];_n(e,i,!0),Ra(i,()=>{Xe(e),t&&t()})}function Ra(e,t){var i=e.length;if(i>0){var n=()=>--i||t();for(var a of e)a.out(n)}else t()}function _n(e,t,i){if(!(e.f&rt)){if(e.f^=rt,e.transitions!==null)for(const l of e.transitions)(l.is_global||i)&&t.push(l);for(var n=e.first;n!==null;){var a=n.next,r=(n.f&zt)!==0||(n.f&tt)!==0;_n(n,t,r?i:!1),n=a}}}function Ct(e){Ha(e,!0)}function Ha(e,t){if(e.f&rt){hi(e)&&Bi(e),e.f^=rt;for(var i=e.first;i!==null;){var n=i.next,a=(i.f&zt)!==0||(i.f&tt)!==0;Ha(i,a?t:!1),i=n}if(e.transitions!==null)for(const r of e.transitions)(r.is_global||t)&&r.in()}}let Oi=!1,bn=[];function Ba(){Oi=!1;const e=bn.slice();bn=[],dn(e)}function At(e){Oi||(Oi=!0,queueMicrotask(Ba)),bn.push(e)}function nl(){Oi&&Ba()}function kn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const Fa=0,al=1;let vi=!1,Ri=Fa,pi=!1,fi=null,Zt=!1,xn=!1;function Va(e){Zt=e}function Wa(e){xn=e}let Lt=[],Gt=0,pf=[],_e=null;function Ue(e){_e=e}let ce=null;function De(e){ce=e}let dt=null;function rl(e){dt=e}let Ne=null,Ze=0,bt=null;function ol(e){bt=e}let Ua=1,wn=0,kt=!1,ge=null;function Hi(e){ge=e}function Ya(){return++Ua}function Xt(){return!Wt||ge!==null&&ge.l===null}function hi(e){var s;var t=e.f;if(t&_t)return!0;if(t&Mi){var i=e.deps,n=(t&jt)!==0;if(i!==null){var a,r,l=(t&Li)!==0,c=n&&ce!==null&&!kt,d=i.length;if(l||c){for(a=0;a<d;a++)r=i[a],(l||!((s=r==null?void 0:r.reactions)!=null&&s.includes(e)))&&(r.reactions??(r.reactions=[])).push(e);l&&(e.f^=Li)}for(a=0;a<d;a++)if(r=i[a],hi(r)&&Ca(r),r.wv>e.wv)return!0}(!n||ce!==null&&!kt)&&ut(e,Ke)}return!1}function ll(e,t){for(var i=t;i!==null;){if(i.f&Ai)try{i.fn(e);return}catch{i.f^=Ai}i=i.parent}throw vi=!1,e}function sl(e){return(e.f&Vt)===0&&(e.parent===null||(e.parent.f&Ai)===0)}function Sn(){vi=!1}function gi(e,t,i,n){if(vi){if(i===null&&(vi=!1),sl(t))throw e;return}i!==null&&(vi=!0);{ll(e,t);return}}function Ka(e){var p;var t=Ne,i=Ze,n=bt,a=_e,r=kt,l=dt,c=ge,d=e.f;Ne=null,Ze=0,bt=null,_e=d&(tt|di)?null:e,kt=!Zt&&(d&jt)!==0,dt=null,ge=e.ctx,wn++;try{var s=(0,e.fn)(),u=e.deps;if(Ne!==null){var v;if(mi(e,Ze),u!==null&&Ze>0)for(u.length=Ze+Ne.length,v=0;v<Ne.length;v++)u[Ze+v]=Ne[v];else e.deps=u=Ne;if(!kt)for(v=Ze;v<u.length;v++)((p=u[v]).reactions??(p.reactions=[])).push(e)}else u!==null&&Ze<u.length&&(mi(e,Ze),u.length=Ze);return s}finally{Ne=t,Ze=i,bt=n,_e=a,kt=r,dt=l,ge=c}}function cl(e,t){let i=t.reactions;if(i!==null){var n=zi.call(i,e);if(n!==-1){var a=i.length-1;a===0?i=t.reactions=null:(i[n]=i[a],i.pop())}}i===null&&t.f&et&&(Ne===null||!Ne.includes(t))&&(ut(t,Mi),t.f&(jt|Li)||(t.f^=Li),mi(t,0))}function mi(e,t){var i=e.deps;if(i!==null)for(var n=t;n<i.length;n++)cl(e,i[n])}function Bi(e){var t=e.f;if(!(t&Vt)){ut(e,Ke);var i=ce,n=ge;ce=e;try{t&Ci?il(e):Na(e),Da(e),Ma(e);var a=Ka(e);e.teardown=typeof a=="function"?a:null,e.wv=Ua;var r=e.deps,l;xe&&Co&&e.f&_t}catch(c){gi(c,e,i,n||e.ctx)}finally{ce=i}}}function Za(){if(Gt>1e3){Gt=0;try{Eo()}catch(e){if(fi!==null)gi(e,fi,null);else throw e}}Gt++}function Ga(e){var t=e.length;if(t!==0){Za();var i=Zt;Zt=!0;try{for(var n=0;n<t;n++){var a=e[n];a.f&Ke||(a.f^=Ke);var r=[];Xa(a,r),dl(r)}}finally{Zt=i}}}function dl(e){var t=e.length;if(t!==0)for(var i=0;i<t;i++){var n=e[i];if(!(n.f&(Vt|rt)))try{hi(n)&&(Bi(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Oa(n):n.fn=null))}catch(a){gi(a,n,null,n.ctx)}}}function ul(){if(pi=!1,Gt>1001)return;const e=Lt;Lt=[],Ga(e),pi||(Gt=0,fi=null)}function Fi(e){Ri===Fa&&(pi||(pi=!0,queueMicrotask(ul))),fi=e;for(var t=e;t.parent!==null;){t=t.parent;var i=t.f;if(i&(di|tt)){if(!(i&Ke))return;t.f^=Ke}}Lt.push(t)}function Xa(e,t){var i=e.first,n=[];e:for(;i!==null;){var a=i.f,r=(a&tt)!==0,l=r&&(a&Ke)!==0,c=i.next;if(!l&&!(a&rt))if(a&ci){if(r)i.f^=Ke;else try{hi(i)&&Bi(i)}catch(v){gi(v,i,null,i.ctx)}var d=i.first;if(d!==null){i=d;continue}}else a&ya&&n.push(i);if(c===null){let v=i.parent;for(;v!==null;){if(e===v)break e;var s=v.next;if(s!==null){i=s;continue e}v=v.parent}}i=c}for(var u=0;u<n.length;u++)d=n[u],t.push(d),Xa(d,t)}function Tn(e){var t=Ri,i=Lt;try{Za();const a=[];Ri=al,Lt=a,pi=!1,Ga(i);var n=e==null?void 0:e();return nl(),(Lt.length>0||a.length>0)&&Tn(),Gt=0,fi=null,n}finally{Ri=t,Lt=i}}async function En(){await Promise.resolve(),Tn()}function o(e){var u;var t=e.f,i=(t&et)!==0;if(i&&t&Vt){var n=qa(e);return yn(e),n}if(_e!==null){dt!==null&&dt.includes(e)&&zo();var a=_e.deps;e.rv<wn&&(e.rv=wn,Ne===null&&a!==null&&a[Ze]===e?Ze++:Ne===null?Ne=[e]:Ne.push(e),bt!==null&&ce!==null&&ce.f&Ke&&!(ce.f&tt)&&bt.includes(e)&&(ut(ce,_t),Fi(ce)))}else if(i&&e.deps===null)for(var r=e,l=r.parent,c=r;l!==null;)if(l.f&et){var d=l;c=d,l=d.parent}else{var s=l;(u=s.deriveds)!=null&&u.includes(c)||(s.deriveds??(s.deriveds=[])).push(c);break}return i&&(r=e,hi(r)&&Ca(r)),e.v}function Ge(e){const t=_e;try{return _e=null,e()}finally{_e=t}}const vl=-7169;function ut(e,t){e.f=e.f&vl|t}function In(e){return Ja().get(e)}function Pn(e,t){return Ja().set(e,t),t}function Ja(e){return ge===null&&kn(),ge.c??(ge.c=new Map(pl(ge)||void 0))}function pl(e){let t=e.p;for(;t!==null;){const i=t.c;if(i!==null)return i;t=t.p}return null}function ie(e,t=!1,i){ge={p:ge,c:null,e:null,m:!1,s:e,x:null,l:null},Wt&&!t&&(ge.l={s:null,u:null,r1:[],r2:Me(!1)})}function ne(e){const t=ge;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var i=ce,n=_e;t.e=null;try{for(var a=0;a<l.length;a++){var r=l[a];De(r.effect),Ue(r.reaction),pt(r.fn)}}finally{De(i),Ue(n)}}ge=t.p,t.m=!0}return e||{}}function Qa(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ot in e)jn(e);else if(!Array.isArray(e))for(let t in e){const i=e[t];typeof i=="object"&&i&&ot in i&&jn(i)}}}function jn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{jn(e[n],t)}catch{}const i=cn(e);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const n=ma(i);for(let a in n){const r=n[a].get;if(r)try{r.call(e)}catch{}}}}}function fl(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const hl=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function gl(e){return hl.includes(e)}const ml={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function yl(e){return e=e.toLowerCase(),ml[e]??e}const _l=["touchstart","touchmove"];function bl(e){return _l.includes(e)}function kl(e,t){if(t){const i=document.body;e.autofocus=!0,At(()=>{document.activeElement===i&&e.focus()})}}let $a=!1;function xl(){$a||($a=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const i of e.target.elements)(t=i.__on_r)==null||t.call(i)})},{capture:!0}))}function wl(e,t,i,n=!0){n&&i();for(var a of t)e.addEventListener(a,i);La(()=>{for(var r of t)e.removeEventListener(r,i)})}function zn(e){var t=_e,i=ce;Ue(null),De(null);try{return e()}finally{Ue(t),De(i)}}function er(e,t,i,n=i){e.addEventListener(t,()=>zn(i));const a=e.__on_r;a?e.__on_r=()=>{a(),n(!0)}:e.__on_r=()=>n(!0),xl()}const tr=new Set,qn=new Set;function Cn(e,t,i,n){function a(r){if(n.capture||yi.call(t,r),!r.cancelBubble)return zn(()=>i.call(this,r))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?At(()=>{t.addEventListener(e,a,n)}):t.addEventListener(e,a,n),a}function Sl(e,t,i,n={}){var a=Cn(t,e,i,n);return()=>{e.removeEventListener(t,a,n)}}function se(e,t,i,n,a){var r={capture:n,passive:a},l=Cn(e,t,i,r);(t===document.body||t===window||t===document)&&La(()=>{t.removeEventListener(e,l,r)})}function fe(e){for(var t=0;t<e.length;t++)tr.add(e[t]);for(var i of qn)i(e)}function yi(e){var k;var t=this,i=t.ownerDocument,n=e.type,a=((k=e.composedPath)==null?void 0:k.call(e))||[],r=a[0]||e.target,l=0,c=e.__root;if(c){var d=a.indexOf(c);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var s=a.indexOf(t);if(s===-1)return;d<=s&&(l=d)}if(r=a[l]||e.target,r!==t){go(e,"currentTarget",{configurable:!0,get(){return r||i}});var u=_e,v=ce;Ue(null),De(null);try{for(var p,h=[];r!==null;){var y=r.assignedSlot||r.parentNode||r.host||null;try{var f=r["__"+n];if(f!==void 0&&!r.disabled)if(Ie(f)){var[b,...g]=f;b.apply(r,[e,...g])}else f.call(r,e)}catch(I){p?h.push(I):p=I}if(e.cancelBubble||y===t||y===null)break;r=y}if(p){for(let I of h)queueMicrotask(()=>{throw I});throw p}}finally{e.__root=t,delete e.currentTarget,Ue(u),De(v)}}}function Tl(e){var t;t=document.head.appendChild(Yt());try{st(()=>e(t),ba)}finally{}}function An(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Mt(e,t){var i=ce;i.nodes_start===null&&(i.nodes_start=e,i.nodes_end=t)}function T(e,t){var i=(t&Wo)!==0,n=(t&Uo)!==0,a,r=!e.startsWith("<!>");return()=>{a===void 0&&(a=An(r?e:"<!>"+e),i||(a=qt(a)));var l=n?document.importNode(a,!0):a.cloneNode(!0);if(i){var c=qt(l),d=l.lastChild;Mt(c,d)}else Mt(l,l);return l}}function je(e,t,i="svg"){var n=!e.startsWith("<!>"),a=`<${i}>${n?e:"<!>"+e}</${i}>`,r;return()=>{if(!r){var l=An(a),c=qt(l);r=qt(c)}var d=r.cloneNode(!0);return Mt(d,d),d}}function Oe(e=""){{var t=Yt(e+"");return Mt(t,t),t}}function ye(){var e=document.createDocumentFragment(),t=document.createComment(""),i=Yt();return e.append(t,i),Mt(t,i),e}function m(e,t){e!==null&&e.before(t)}let Vi=!0;function ir(e){Vi=e}function K(e,t){var i=t==null?"":typeof t=="object"?t+"":t;i!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=i,e.nodeValue=i==null?"":i+"")}function xt(e,t){return El(e,t)}const Jt=new Map;function El(e,{target:t,anchor:i,props:n={},events:a,context:r,intro:l=!0}){Zo();var c=new Set,d=v=>{for(var p=0;p<v.length;p++){var h=v[p];if(!c.has(h)){c.add(h);var y=bl(h);t.addEventListener(h,yi,{passive:y});var f=Jt.get(h);f===void 0?(document.addEventListener(h,yi,{passive:y}),Jt.set(h,1)):Jt.set(h,f+1)}}};d(sn(tr)),qn.add(d);var s=void 0,u=tl(()=>{var v=i??t.appendChild(Yt());return We(()=>{if(r){ie({});var p=ge;p.c=r}a&&(n.$$events=a),Vi=l,s=e(v,n)||{},Vi=!0,r&&ne()}),()=>{var y;for(var p of c){t.removeEventListener(p,yi);var h=Jt.get(p);--h===0?(document.removeEventListener(p,yi),Jt.delete(p)):Jt.set(p,h)}qn.delete(d),v!==i&&((y=v.parentNode)==null||y.removeChild(v))}});return Ln.set(s,u),s}let Ln=new WeakMap;function Qt(e,t){const i=Ln.get(e);return i?(Ln.delete(e),i(t)):Promise.resolve()}const Mn=0,Wi=1,Dn=2;function nr(e,t,i,n,a){var r=e,l=Xt(),c=ge,d=qe,s,u,v,p=(l?Me:Di)(void 0),h=(l?Me:Di)(void 0),y=!1;function f(g,k){y=!0,k&&(De(b),Ue(b),Hi(c));try{g===Mn&&i&&(s?Ct(s):s=We(()=>i(r))),g===Wi&&n&&(u?Ct(u):u=We(()=>n(r,p))),g!==Mn&&s&&ct(s,()=>s=null),g!==Wi&&u&&ct(u,()=>u=null),g!==Dn&&v&&ct(v,()=>v=null)}finally{k&&(Hi(null),Ue(null),De(null),Tn())}}var b=st(()=>{if(d!==(d=t())){if(_o(d)){var g=d;y=!1,g.then(k=>{g===d&&(Ut(p,k),f(Wi,!0))},k=>{if(g===d)throw Ut(h,k),f(Dn,!0),h.v}),At(()=>{y||f(Mn,!0)})}else Ut(p,d),f(Wi,!1);return()=>d=qe}})}function M(e,t,i=!1){var n=e,a=null,r=null,l=qe,c=i?zt:0,d=!1;const s=(v,p=!0)=>{d=!0,u(p,v)},u=(v,p)=>{l!==(l=v)&&(l?(a?Ct(a):p&&(a=We(()=>p(n))),r&&ct(r,()=>{r=null})):(r?Ct(r):p&&(r=We(()=>p(n))),a&&ct(a,()=>{a=null})))};st(()=>{d=!1,t(s),d||u(null,null)},c)}function Nn(e,t,i){var n=e,a=qe,r,l=Xt()?xo:vn;st(()=>{l(a,a=t())&&(r&&ct(r),r=We(()=>i(n)))})}function Ce(e,t){return t}function Il(e,t,i,n){for(var a=[],r=t.length,l=0;l<r;l++)_n(t[l].e,a,!0);var c=r>0&&a.length===0&&i!==null;if(c){var d=i.parentNode;Go(d),d.append(i),n.clear(),wt(e,t[0].prev,t[r-1].next)}Ra(a,()=>{for(var s=0;s<r;s++){var u=t[s];c||(n.delete(u.k),wt(e,u.prev,u.next)),Xe(u.e,!c)}})}function ze(e,t,i,n,a,r=null){var l=e,c={flags:t,items:new Map,first:null},d=(t&Sa)!==0;if(d){var s=e;l=s.appendChild(Yt())}var u=null,v=!1;st(()=>{var p=i(),h=Ie(p)?p:p==null?[]:sn(p),y=h.length;if(!(v&&y===0)){v=y===0;{var f=_e;Pl(h,c,l,a,t,(f.f&rt)!==0,n)}r!==null&&(y===0?u?Ct(u):u=We(()=>r(l)):u!==null&&ct(u,()=>{u=null})),i()}})}function Pl(e,t,i,n,a,r,l,c){var Y,P,H,ee;var d=(a&Lo)!==0,s=(a&(fn|hn))!==0,u=e.length,v=t.items,p=t.first,h=p,y,f=null,b,g=[],k=[],I,j,E,L;if(d)for(L=0;L<u;L+=1)I=e[L],j=l(I,L),E=v.get(j),E!==void 0&&((Y=E.a)==null||Y.measure(),(b??(b=new Set)).add(E));for(L=0;L<u;L+=1){if(I=e[L],j=l(I,L),E=v.get(j),E===void 0){var Z=h?h.e.nodes_start:i;f=zl(Z,t,f,f===null?t.first:f.next,I,j,L,n,a),v.set(j,f),g=[],k=[],h=f.next;continue}if(s&&jl(E,I,L,a),E.e.f&rt&&(Ct(E.e),d&&((P=E.a)==null||P.unfix(),(b??(b=new Set)).delete(E))),E!==h){if(y!==void 0&&y.has(E)){if(g.length<k.length){var A=k[0],w;f=A.prev;var z=g[0],O=g[g.length-1];for(w=0;w<g.length;w+=1)ar(g[w],A,i);for(w=0;w<k.length;w+=1)y.delete(k[w]);wt(t,z.prev,O.next),wt(t,f,z),wt(t,O,A),h=A,f=O,L-=1,g=[],k=[]}else y.delete(E),ar(E,h,i),wt(t,E.prev,E.next),wt(t,E,f===null?t.first:f.next),wt(t,f,E),f=E;continue}for(g=[],k=[];h!==null&&h.k!==j;)(r||!(h.e.f&rt))&&(y??(y=new Set)).add(h),k.push(h),h=h.next;if(h===null)continue;E=h}g.push(E),f=E,h=E.next}if(h!==null||y!==void 0){for(var R=y===void 0?[]:sn(y);h!==null;)(r||!(h.e.f&rt))&&R.push(h),h=h.next;var D=R.length;if(D>0){var V=a&Sa&&u===0?i:null;if(d){for(L=0;L<D;L+=1)(H=R[L].a)==null||H.measure();for(L=0;L<D;L+=1)(ee=R[L].a)==null||ee.fix()}Il(t,R,V,v)}}d&&At(()=>{var Q;if(b!==void 0)for(E of b)(Q=E.a)==null||Q.apply()}),ce.first=t.first&&t.first.e,ce.last=f&&f.e}function jl(e,t,i,n){n&fn&&Ut(e.v,t),n&hn?Ut(e.i,i):e.i=i}function zl(e,t,i,n,a,r,l,c,d,s){var u=(d&fn)!==0,v=(d&Mo)===0,p=u?v?Di(a):Me(a):a,h=d&hn?Me(l):l,y={i:h,v:p,k:r,a:null,e:null,prev:i,next:n};try{return y.e=We(()=>c(e,p,h),mn),y.e.prev=i&&i.e,y.e.next=n&&n.e,i===null?t.first=y:(i.next=y,i.e.next=y.e),n!==null&&(n.prev=y,n.e.prev=y.e),y}finally{}}function ar(e,t,i){for(var n=e.next?e.next.e.nodes_start:i,a=t?t.e.nodes_start:i,r=e.e.nodes_start;r!==n;){var l=Ni(r);a.before(r),r=l}}function wt(e,t,i){t===null?e.first=i:(t.next=i,t.e.next=i&&i.e),i!==null&&(i.prev=t,i.e.prev=t&&t.e)}function ql(e,t,i,n,a){var r=e,l="",c;st(()=>{l!==(l=t()??"")&&(c!==void 0&&(Xe(c),c=void 0),l!==""&&(c=We(()=>{var d=l+"",s=An(d);Mt(qt(s),s.lastChild),r.before(s)})))})}function Re(e,t,...i){var n=e,a=at,r;st(()=>{a!==(a=t())&&(r&&(Xe(r),r=null),r=We(()=>a(n,...i)))},zt)}function rr(e,t,i,n,a,r){var l,c,d=null,s=e,u;st(()=>{const v=t()||null;var p=v==="svg"?gn:null;v!==l&&(u&&(v===null?ct(u,()=>{u=null,c=null}):v===c?Ct(u):(Xe(u),ir(!1))),v&&v!==c&&(u=We(()=>{if(d=p?document.createElementNS(p,v):document.createElement(v),Mt(d,d),n){var h=d.appendChild(Yt());n(d,h)}ce.nodes_end=d,s.before(d)})),l=v,l&&(c=l),ir(!0))},zt)}function it(e,t,i){pt(()=>{var n=Ge(()=>t(e,i==null?void 0:i())||{});if(i&&(n!=null&&n.update)){var a=!1,r={};ui(()=>{var l=i();Qa(l),a&&vn(r,l)&&(r=l,n.update(l))}),a=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}function or(e){var t,i,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=or(e[t]))&&(n&&(n+=" "),n+=i)}else for(i in e)e[i]&&(n&&(n+=" "),n+=i);return n}function Cl(){for(var e,t,i=0,n="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=or(e))&&(n&&(n+=" "),n+=t);return n}function Al(e){return typeof e=="object"?Cl(e):e??""}function Ll(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function oe(e,t,i,n){var a=e.__attributes??(e.__attributes={});a[t]!==(a[t]=i)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[un]=i),i==null?e.removeAttribute(t):typeof i!="string"&&cr(e).includes(t)?e[t]=i:e.setAttribute(t,i))}function lr(e,t,i,n,a=!1,r=!1,l=!1){var c=t||{},d=e.tagName==="OPTION";for(var s in t)s in i||(i[s]=null);i.class&&(i.class=Al(i.class)),n!==void 0&&(i.class=i.class?i.class+" "+n:n);var u=cr(e),v=e.__attributes??(e.__attributes={});for(const g in i){let k=i[g];if(d&&g==="value"&&k==null){e.value=e.__value="",c[g]=k;continue}var p=c[g];if(k!==p){c[g]=k;var h=g[0]+g[1];if(h!=="$$"){if(h==="on"){const I={},j="$$"+g;let E=g.slice(2);var y=gl(E);if(fl(E)&&(E=E.slice(0,-7),I.capture=!0),!y&&p){if(k!=null)continue;e.removeEventListener(E,c[j],I),c[j]=null}if(k!=null)if(y)e[`__${E}`]=k,fe([E]);else{let L=function(Z){c[g].call(this,Z)};c[j]=Cn(E,e,L,I)}else y&&(e[`__${E}`]=void 0)}else if(g==="style"&&k!=null)e.style.cssText=k+"";else if(g==="autofocus")kl(e,!!k);else if(g==="__value"||g==="value"&&k!=null)e.value=e[g]=e.__value=k;else if(g==="selected"&&d)Ll(e,k);else{var f=g;a||(f=yl(f));var b=f==="defaultValue"||f==="defaultChecked";if(k==null&&!r&&!b)if(v[g]=null,f==="value"||f==="checked"){let I=e;if(f==="value"){let j=I.defaultValue;I.removeAttribute(f),I.defaultValue=j}else{let j=I.defaultChecked;I.removeAttribute(f),I.defaultChecked=j}}else e.removeAttribute(g);else b||u.includes(f)&&(r||typeof k!="string")?e[f]=k:typeof k!="function"&&oe(e,f,k)}g==="style"&&"__styles"in e&&(e.__styles={})}}}return c}var sr=new Map;function cr(e){var t=sr.get(e.nodeName);if(t)return t;sr.set(e.nodeName,t=[]);for(var i,n=e,a=Element.prototype;a!==n;){i=ma(n);for(var r in i)i[r].set&&t.push(r);n=cn(n)}return t}function Ml(e){if(e.loading==="lazy"){var t=e.src;e[un]=null,e.loading="eager",e.removeAttribute("src"),requestAnimationFrame(()=>{e[un]!=="eager"&&(e.loading="lazy"),e.src=t})}}function Dl(e,t,i){var n=e.__className,a=dr(t);(n!==a||mn)&&(a===""?e.removeAttribute("class"):e.setAttribute("class",a),e.__className=a)}function Ui(e,t,i){var n=e.__className,a=dr(t);(n!==a||mn)&&(t==null?e.removeAttribute("class"):e.className=a,e.__className=a)}function dr(e,t){return(e??"")+""}function de(e,t,i){if(i){if(e.classList.contains(t))return;e.classList.add(t)}else{if(!e.classList.contains(t))return;e.classList.remove(t)}}function Je(e,t,i,n){var a=e.__styles??(e.__styles={});a[t]!==i&&(a[t]=i,i==null?e.style.removeProperty(t):e.style.setProperty(t,i,""))}const Nl=()=>performance.now(),ft={tick:e=>requestAnimationFrame(e),now:()=>Nl(),tasks:new Set};function ur(){const e=ft.now();ft.tasks.forEach(t=>{t.c(e)||(ft.tasks.delete(t),t.f())}),ft.tasks.size!==0&&ft.tick(ur)}function Ol(e){let t;return ft.tasks.size===0&&ft.tick(ur),{promise:new Promise(i=>{ft.tasks.add(t={c:e,f:i})}),abort(){ft.tasks.delete(t)}}}function Yi(e,t){e.dispatchEvent(new CustomEvent(t))}function Rl(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function vr(e){const t={},i=e.split(";");for(const n of i){const[a,r]=n.split(":");if(!a||r===void 0)break;const l=Rl(a.trim());t[l]=r.trim()}return t}const Hl=e=>e;function Te(e,t,i,n){var a=(e&Bo)!==0,r=(e&Fo)!==0,l=a&&r,c=(e&Vo)!==0,d=l?"both":a?"in":"out",s,u=t.inert,v,p;function h(){var k=_e,I=ce;Ue(null),De(null);try{return s??(s=i()(t,(n==null?void 0:n())??{},{direction:d}))}finally{Ue(k),De(I)}}var y={is_global:c,in(){var k;if(t.inert=u,!a){p==null||p.abort(),(k=p==null?void 0:p.reset)==null||k.call(p);return}r||v==null||v.abort(),Yi(t,"introstart"),v=On(t,h(),p,1,()=>{Yi(t,"introend"),v==null||v.abort(),v=s=void 0})},out(k){if(!r){k==null||k(),s=void 0;return}t.inert=!0,Yi(t,"outrostart"),p=On(t,h(),v,0,()=>{Yi(t,"outroend"),k==null||k()})},stop:()=>{v==null||v.abort(),p==null||p.abort()}},f=ce;if((f.transitions??(f.transitions=[])).push(y),a&&Vi){var b=c;if(!b){for(var g=f.parent;g&&g.f&zt;)for(;(g=g.parent)&&!(g.f&Ci););b=!g||(g.f&_a)!==0}b&&pt(()=>{Ge(()=>y.in())})}}function On(e,t,i,n,a){var r=n===1;if(Ft(t)){var l,c=!1;return At(()=>{if(!c){var b=t({direction:r?"in":"out"});l=On(e,b,i,n,a)}}),{abort:()=>{c=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(t!=null&&t.duration))return a(),{abort:at,deactivate:at,reset:at,t:()=>n};const{delay:d=0,css:s,tick:u,easing:v=Hl}=t;var p=[];if(r&&i===void 0&&(u&&u(0,1),s)){var h=vr(s(0,1));p.push(h,h)}var y=()=>1-n,f=e.animate(p,{duration:d});return f.onfinish=()=>{var b=(i==null?void 0:i.t())??1-n;i==null||i.abort();var g=n-b,k=t.duration*Math.abs(g),I=[];if(k>0){if(s)for(var j=Math.ceil(k/16.666666666666668),E=0;E<=j;E+=1){var L=b+g*v(E/j),Z=s(L,1-L);I.push(vr(Z))}y=()=>{var A=f.currentTime;return b+g*v(A/k)},u&&Ol(()=>{if(f.playState!=="running")return!1;var A=y();return u(A,1-A),!0})}f=e.animate(I,{duration:k,fill:"forwards"}),f.onfinish=()=>{y=()=>n,u==null||u(n,1-n),a()}},{abort:()=>{f&&(f.cancel(),f.effect=null,f.onfinish=at)},deactivate:()=>{a=at},reset:()=>{n===0&&(u==null||u(1,0))},t:()=>y()}}function Bl(e,t,i=t){var n=Xt();er(e,"input",a=>{var r=a?e.defaultValue:e.value;if(r=Rn(e)?Hn(r):r,i(r),n&&r!==(r=t())){var l=e.selectionStart,c=e.selectionEnd;e.value=r??"",c!==null&&(e.selectionStart=l,e.selectionEnd=Math.min(c,e.value.length))}}),Ge(t)==null&&e.value&&i(Rn(e)?Hn(e.value):e.value),ui(()=>{var a=t();Rn(e)&&a===Hn(e.value)||e.type==="date"&&!a&&!e.value||a!==e.value&&(e.value=a??"")})}function Rn(e){var t=e.type;return t==="number"||t==="range"}function Hn(e){return e===""?null:+e}function pr(e,t,i){if(e.multiple)return Wl(e,t);for(var n of e.options){var a=_i(n);if(Ko(a,t)){n.selected=!0;return}}(!i||t!==void 0)&&(e.selectedIndex=-1)}function Fl(e,t){pt(()=>{var i=new MutationObserver(()=>{var n=e.__value;pr(e,n)});return i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{i.disconnect()}})}function Vl(e,t,i=t){var n=!0;er(e,"change",a=>{var r=a?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(r),_i);else{var c=e.querySelector(r)??e.querySelector("option:not([disabled])");l=c&&_i(c)}i(l)}),pt(()=>{var a=t();if(pr(e,a,n),n&&a===void 0){var r=e.querySelector(":checked");r!==null&&(a=_i(r),i(a))}e.__value=a,n=!1}),Fl(e)}function Wl(e,t){for(var i of e.options)i.selected=~t.indexOf(_i(i))}function _i(e){return"__value"in e?e.__value:e.value}const on=class on{constructor(t){Bt(this,rn);Bt(this,It,new WeakMap);Bt(this,oi);Bt(this,Ei);ji(this,Ei,t)}observe(t,i){var n=nt(this,It).get(t)||new Set;return n.add(i),nt(this,It).set(t,n),fo(this,rn,ho).call(this).observe(t,nt(this,Ei)),()=>{var a=nt(this,It).get(t);a.delete(i),a.size===0&&(nt(this,It).delete(t),nt(this,oi).unobserve(t))}}};It=new WeakMap,oi=new WeakMap,Ei=new WeakMap,rn=new WeakSet,ho=function(){return nt(this,oi)??ji(this,oi,new ResizeObserver(t=>{for(var i of t){on.entries.set(i.target,i);for(var n of nt(this,It).get(i.target)||[])n(i)}}))},po(on,"entries",new WeakMap);let Bn=on;var Ul=new Bn({box:"border-box"});function $t(e,t,i){var n=Ul.observe(e,()=>i(e[t]));pt(()=>(Ge(()=>i(e[t])),n))}function fr(e,t){return e===t||(e==null?void 0:e[ot])===t}function vt(e={},t,i,n){return pt(()=>{var a,r;return ui(()=>{a=r,r=[],Ge(()=>{e!==i(...r)&&(t(e,...r),a&&fr(i(...a),e)&&t(null,...a))})}),()=>{At(()=>{r&&fr(i(...r),e)&&t(null,...r)})}}),e}function hr(e,t){wl(window,["resize"],()=>zn(()=>t(window[e])))}function gr(e=!1){const t=ge,i=t.l.u;if(!i)return;let n=()=>Qa(t.s);if(e){let a=0,r={};const l=F(()=>{let c=!1;const d=t.s;for(const s in d)d[s]!==r[s]&&(r[s]=d[s],c=!0);return c&&a++,a});n=()=>o(l)}i.b.length&&el(()=>{mr(t,n),dn(i.b)}),lt(()=>{const a=Ge(()=>i.m.map(bo));return()=>{for(const r of a)typeof r=="function"&&r()}}),i.a.length&<(()=>{mr(t,n),dn(i.a)})}function mr(e,t){if(e.l.s)for(const i of e.l.s)o(i);t()}let Ki=!1;function Yl(e){var t=Ki;try{return Ki=!1,[e(),Ki]}finally{Ki=t}}const Kl={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Zl(e,t,i){return new Proxy({props:e,exclude:t},Kl)}const Gl={get(e,t){let i=e.props.length;for(;i--;){let n=e.props[i];if(Ft(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,i){let n=e.props.length;for(;n--;){let a=e.props[n];Ft(a)&&(a=a());const r=yt(a,t);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(e,t){let i=e.props.length;for(;i--;){let n=e.props[i];if(Ft(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const a=yt(n,t);return a&&!a.configurable&&(a.configurable=!0),a}}},has(e,t){if(t===ot||t===xa)return!1;for(let i of e.props)if(Ft(i)&&(i=i()),i!=null&&t in i)return!0;return!1},ownKeys(e){const t=[];for(let i of e.props){Ft(i)&&(i=i());for(const n in i)t.includes(n)||t.push(n)}return t}};function Xl(...e){return new Proxy({props:e},Gl)}function yr(e){for(var t=ce,i=ce;t!==null&&!(t.f&(tt|di));)t=t.parent;try{return De(t),e()}finally{De(i)}}function N(e,t,i,n){var Z;var a=(i&Do)!==0,r=!Wt||(i&No)!==0,l=(i&Ro)!==0,c=(i&Ho)!==0,d=!1,s;l?[s,d]=Yl(()=>e[t]):s=e[t];var u=ot in e||xa in e,v=l&&(((Z=yt(e,t))==null?void 0:Z.set)??(u&&t in e&&(A=>e[t]=A)))||void 0,p=n,h=!0,y=!1,f=()=>(y=!0,h&&(h=!1,c?p=Ge(n):p=n),p);s===void 0&&n!==void 0&&(v&&r&&Io(),s=f(),v&&v(s));var b;if(r)b=()=>{var A=e[t];return A===void 0?f():(h=!0,y=!1,A)};else{var g=yr(()=>(a?F:Xo)(()=>e[t]));g.f|=ko,b=()=>{var A=o(g);return A!==void 0&&(p=void 0),A===void 0?p:A}}if(!(i&Oo))return b;if(v){var k=e.$$legacy;return function(A,w){return arguments.length>0?((!r||!w||k||d)&&v(w?b():A),A):b()}}var I=!1,j=!1,E=Di(s),L=yr(()=>F(()=>{var A=b(),w=o(E);return I?(I=!1,j=!0,w):(j=!1,E.v=A)}));return a||(L.equals=pn),function(A,w){if(arguments.length>0){const z=w?o(L):r&&l?le(A):A;return L.equals(z)||(I=!0,q(E,z),y&&p!==void 0&&(p=z),Ge(()=>o(L))),A}return o(L)}}function _r(e,t){var i=ce,n=_e,a=ge;De(e),Ue(e),Hi(e.ctx);try{t()}finally{De(i),Ue(n),Hi(a)}}function Jl(e,t,i){var n=e,a;st(()=>{var r=ce,l=!1;r.fn=c=>{var d=t.onerror;let s=t.failed;if(!d&&!s||l)throw c;var u=()=>{ct(a),_r(r,()=>{l=!1,a=We(()=>i(n)),Sn()})};d==null||d(c,u),a&&Xe(a),At(()=>{_r(r,()=>{l=!0;try{a=We(()=>{s(n,()=>c,()=>u)})}catch(v){gi(v,r,null,r.ctx)}Sn(),l=!1})})},a=We(()=>i(n)),Sn()},zt|Ai)}function Fe(e){ge===null&&kn(),Wt&&ge.l!==null?Ql(ge).m.push(e):lt(()=>{const t=Ge(e);if(typeof t=="function")return t})}function Fn(e){ge===null&&kn(),Fe(()=>()=>Ge(e))}function Ql(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const $l="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($l);function St(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}const ue=Object.freeze({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",TrailerClick:"ali_trailer_button_click"});function br(e){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=e)}function Tt(e){var t;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((t=window.PlayPilotLinkInjections.consents)!=null&&t[e])}const kr="https://www.playpilot.com",es="https://partner-api.playpilot.tech/1.0.0",ts="https://img-external.playpilot.tech",Vn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",ei=600;function Zi(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}function Dt(){const e=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+e}const is="https://insights.playpilot.net";async function ve(e,t=null,i={}){var a,r,l,c;if(Zi())return;if(!Tt("tracking")){rs(e,t,i);return}const n=new Headers({"Content-Type":"application/json"});t&&(i={original_title:t.original_title,title_sid:t.sid,title_type:t.type,providers:[...new Set(((a=t.providers)==null?void 0:a.map(d=>d.name))||[])],...i}),i.version="5.35.0",i.url=Dt(),i.organization_sid=(r=window.PlayPilotLinkInjections)==null?void 0:r.organization_sid,i.domain_sid=(l=window.PlayPilotLinkInjections)==null?void 0:l.domain_sid,i.device={type:window.innerWidth>ei?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((c=screen.orientation)==null?void 0:c.type)||"undefined"},fetch(is,{headers:n,method:"POST",body:JSON.stringify({event:e,payload:i,source:"ali",keepalive:!0})}),ns({event:e,payload:i})}function ns(e){var t;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(t=window.PlayPilotLinkInjections.tracked_events)==null||t.push(e)}function as({organizationSid:e=null,domainSid:t=null}){window.PlayPilotLinkInjections.organization_sid=e||null,window.PlayPilotLinkInjections.domain_sid=t||null}function rs(e,t=null,i={}){var n;(n=window.PlayPilotLinkInjections).queued_tracking_events||(n.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:e,title:t,payload:i})}function os(){if(Tt("tracking")){for(const{event:e,title:t,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ve(e,t,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}const Wn={};async function ht(e,{headers:t={},method:i="GET",body:n=null}={}){const a=!Gi()&&i==="GET";if(a&&e in Wn)return Wn[e];const r=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(es+e,{method:i,headers:new Headers({...r,...t}),body:n?JSON.stringify(n):null});if(!(l!=null&&l.ok))throw l;const c=await l.text();let d=c;try{c&&(d=JSON.parse(c))}catch{}return a&&(Wn[e]=d),d}const Un="EncryptedToken",xr="articleReplacementEditToken",wr="playpilot-editorial-mode";async function Sr(e=window.location.href){try{const t=St();if(!t)throw new Error("No token was provided");const i=Yn(e);if(!i)throw new Error("Could not be authenticated");return await ht(`/external-pages/edit-authorization?api-token=${t}`,{method:"POST",body:{private_token:i}}),ls(i),!0}catch(t){console.error(t),ve(ue.AuthFailed)}finally{ds()}return!1}function Yn(e=""){var n,a;const t=(n=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:n.editorial_token;if(t)return t;if(e){const r=new URL(e).searchParams.get(xr);if(r)return decodeURI(r)}return((a=("; "+document.cookie).split(`; ${Un}=`).pop())==null?void 0:a.split(";")[0])||""}function ls(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const n="expires="+t.toUTCString();document.cookie=Un+"="+e+";"+n+";path=/"}function ss(){document.cookie=Un+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function Gi(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(wr)==="true"||!!e}function cs(){const e=new URL(window.location.href);e.searchParams.set(wr,"true"),window.history.replaceState({},"",e)}function ds(){const e=new URL(window.location.href);e.searchParams.delete(xr),window.history.replaceState({},"",e)}function us(e){let t=0;for(let i=0;i<e.length;i++){const n=e.charCodeAt(i);t=t*31+n>>>0}return t.toString(16)}function Tr(){return(Math.random()+1).toString(36).substring(7)}const _=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"}),vs={"Where To Stream Online":{[_.English]:"Where to stream online",[_.Swedish]:"Var kan man streama online",[_.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[_.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[_.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[_.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[_.English]:"We may earn a commission from purchases made through some of the links below.",[_.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[_.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[_.English]:"An error occurred",[_.Swedish]:"Ett fel inträffade",[_.Danish]:"Der opstod en fejl"},"Title Unavailable":{[_.English]:"This title is not currently available to stream.",[_.Swedish]:"Den här titeln går inte att streama just nu.",[_.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[_.English]:"is not currently available to stream.",[_.Swedish]:"går inte att streama just nu.",[_.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[_.English]:"is available to stream on",[_.Swedish]:"finns att streama på",[_.Danish]:"kan streames på"},"Is Available To Stream":{[_.English]:"is available to stream.",[_.Swedish]:"finns att streama.",[_.Danish]:"kan streames."},"View Streaming Options":{[_.English]:"View streaming options",[_.Swedish]:"Se streamingalternativ",[_.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[_.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[_.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[_.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[_.English]:"and",[_.Swedish]:"och",[_.Danish]:"og"},Minutes:{[_.English]:"minutes",[_.Swedish]:"minuter",[_.Danish]:"minutter"},"Type: movie":{[_.English]:"Movie",[_.Swedish]:"Film",[_.Danish]:"Film"},"Type: series":{[_.English]:"Series",[_.Swedish]:"Serie",[_.Danish]:"Serie"},Stream:{[_.English]:"Stream",[_.Swedish]:"Streama",[_.Danish]:"Stream"},Buy:{[_.English]:"Buy",[_.Swedish]:"Köp",[_.Danish]:"Køb"},Rent:{[_.English]:"Rent",[_.Swedish]:"Hyra",[_.Danish]:"Lej"},"Rent Or Buy":{[_.English]:"Rent or Buy",[_.Swedish]:"Hyra",[_.Danish]:"Lej eller køb"},Watch:{[_.English]:"Watch",[_.Swedish]:"Titta nu",[_.Danish]:"Se nu"},Share:{[_.English]:"Share",[_.Swedish]:"Dela",[_.Danish]:"Del"},"Copy URL":{[_.English]:"Copy URL",[_.Swedish]:"Kopiera URL",[_.Danish]:"Kopiér URL"},Email:{[_.English]:"Email",[_.Swedish]:"E-post",[_.Danish]:"E-mail"},"Show More":{[_.English]:"Show more",[_.Swedish]:"Visa mer",[_.Danish]:"Vis mere"},Cast:{[_.English]:"Cast",[_.Swedish]:"Rollista",[_.Danish]:"Skuespillere"},"Similar Titles":{[_.English]:"Similar movies & shows",[_.Swedish]:"Liknande filmer och serier",[_.Danish]:"Lignende film og serier"},"Watch Trailer":{[_.English]:"Watch trailer",[_.Swedish]:"Se trailer",[_.Danish]:"Se trailer"},All:{[_.English]:"All",[_.Swedish]:"Alla",[_.Danish]:"Alle"},Unscripted:{[_.English]:"Unscripted",[_.Swedish]:"Oscripterat",[_.Danish]:"Umanuskriptet"},Independent:{[_.English]:"Independent",[_.Swedish]:"Indie",[_.Danish]:"Indie"},"Game Show":{[_.English]:"Game Show",[_.Swedish]:"Gameshow",[_.Danish]:"Quizshow"},"Film Noir":{[_.English]:"Film Noir",[_.Swedish]:"Film noir",[_.Danish]:"Film noir"},Entertainment:{[_.English]:"Entertainment",[_.Swedish]:"Underhållning",[_.Danish]:"Underholdning"},News:{[_.English]:"News",[_.Swedish]:"Nyheter",[_.Danish]:"Nyheder"},Short:{[_.English]:"Short",[_.Swedish]:"Kortfilm",[_.Danish]:"Kortfilm"},Bollywood:{[_.English]:"Bollywood",[_.Swedish]:"Bollywood",[_.Danish]:"Bollywood"},Concert:{[_.English]:"Concert",[_.Swedish]:"Konsert",[_.Danish]:"Koncert"},Arthouse:{[_.English]:"Arthouse",[_.Swedish]:"Arthouse",[_.Danish]:"Arthouse"},"Alternate Version":{[_.English]:"Alternate Version",[_.Swedish]:"Alternativ version",[_.Danish]:"Alternativ version"},"Reality TV":{[_.English]:"Reality TV",[_.Swedish]:"Reality-TV",[_.Danish]:"Reality-TV"},Culture:{[_.English]:"Culture",[_.Swedish]:"Kultur",[_.Danish]:"Kultur"},Drama:{[_.English]:"Drama",[_.Swedish]:"Drama",[_.Danish]:"Drama"},Crime:{[_.English]:"Crime",[_.Swedish]:"Kriminal",[_.Danish]:"Krimi"},Western:{[_.English]:"Western",[_.Swedish]:"Western",[_.Danish]:"Western"},Thriller:{[_.English]:"Thriller",[_.Swedish]:"Thriller",[_.Danish]:"Thriller"},Animation:{[_.English]:"Animation",[_.Swedish]:"Animerat",[_.Danish]:"Animation"},Mystery:{[_.English]:"Mystery",[_.Swedish]:"Mysterium",[_.Danish]:"Mysterium"},Science:{[_.English]:"Science",[_.Swedish]:"Vetenskap",[_.Danish]:"Videnskab"},Nature:{[_.English]:"Nature",[_.Swedish]:"Natur",[_.Danish]:"Natur"},War:{[_.English]:"War",[_.Swedish]:"Krig",[_.Danish]:"Krig"},"Sci-Fi":{[_.English]:"Sci-Fi",[_.Swedish]:"Sci-fi",[_.Danish]:"Sci-fi"},Documentary:{[_.English]:"Documentary",[_.Swedish]:"Dokumentär",[_.Danish]:"Dokumentar"},"Stand-up":{[_.English]:"Stand-up",[_.Swedish]:"Standup",[_.Danish]:"Stand-up"},"Talk Show":{[_.English]:"Talk Show",[_.Swedish]:"Talkshow",[_.Danish]:"Talkshow"},Fantasy:{[_.English]:"Fantasy",[_.Swedish]:"Fantasy",[_.Danish]:"Fantasy"},History:{[_.English]:"History",[_.Swedish]:"Historia",[_.Danish]:"Historie"},Adventure:{[_.English]:"Adventure",[_.Swedish]:"Äventyr",[_.Danish]:"Eventyr"},Action:{[_.English]:"Action",[_.Swedish]:"Action",[_.Danish]:"Action"},Horror:{[_.English]:"Horror",[_.Swedish]:"Skräck",[_.Danish]:"Gyser"},Comedy:{[_.English]:"Comedy",[_.Swedish]:"Komedi",[_.Danish]:"Komedie"},Biography:{[_.English]:"Biography",[_.Swedish]:"Biografi",[_.Danish]:"Biografi"},Music:{[_.English]:"Music",[_.Swedish]:"Musik",[_.Danish]:"Musik"},Sport:{[_.English]:"Sport",[_.Swedish]:"Sport",[_.Danish]:"Sport"},Romance:{[_.English]:"Romance",[_.Swedish]:"Romantik",[_.Danish]:"Romantik"},Kids:{[_.English]:"Kids",[_.Swedish]:"Barn",[_.Danish]:"Børn"},Lifestyle:{[_.English]:"Lifestyle",[_.Swedish]:"Livsstil",[_.Danish]:"Livsstil"},Musical:{[_.English]:"Musical",[_.Swedish]:"Musikal",[_.Danish]:"Musical"},Anime:{[_.English]:"Anime",[_.Swedish]:"Anime",[_.Danish]:"Anime"},Family:{[_.English]:"Family",[_.Swedish]:"Familj",[_.Danish]:"Familie"}};function we(e,t=Er()){var i;return((i=vs[e])==null?void 0:i[t])||e}function Er(){var n,a;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.language,t=Object.values(_);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const i=(a=document.querySelector("html"))==null?void 0:a.getAttribute("lang");if(i){if(t.includes(i))return i;const r=t.find(l=>l.toLowerCase().startsWith(i+"-"));if(r)return r}return _.English}function ps(e,t,i){return e.filter(n=>i.every(a=>n[a]===t[a])).length}function fs(e,t){return t.some(i=>e>=i.start&&e<i.end)}function hs(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}function Kn(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function Ir(e,t,i=[]){var r,l;const n=document.createTreeWalker(t);let a;for(;(a=n.nextNode())&&!((r=a.nodeValue)!=null&&r.includes(e)&&!i.includes(((l=a.parentNode)==null?void 0:l.nodeName)||"")););return a}function Pr(e){const t=e.parentNode;return t?t.nodeName==="A"||!!t.closest("a"):!1}function gs(e,t,i,n){const a=hs(t),r=Kn(t),l=e.slice(0,n),c=e.slice(n),d=/[-/\\^$*+?.()|[\]{}]/g,s=new RegExp(`${r.replace(d,"\\$&")}|${a.replace(d,"\\$&")}`),u=c.replace(s,i);return l+u}function ms(e,t,i,n){return e.substring(0,i)+t+e.substring(n)}function Qe(e){return Kn(e).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function jr(e,t,i){const a=e.indexOf(t),r=Math.floor((i-t.length)/2);let l=Math.max(0,a-r),c=l+i;c>e.length&&(c=e.length,l=Math.max(0,c-i));let d=e.slice(l,c).trim();return l>0&&(d="…"+d),c<e.length&&(d+="…"),d}function zr(e,t,i){const n=e.nodeType===Node.TEXT_NODE&&e.parentNode?e.parentElement:e;if(!n||!e.textContent)return{before:"",after:""};const a=Math.max(n.innerText.indexOf(e.textContent),0),r=qr(n.innerText.slice(0,t+a)),l=n.innerText.slice(i+a),c=qr(Cr(r,2)),d=Cr(l,2);return{before:c,after:d}}function qr(e){return e.split("").reverse().join("")}function Cr(e,t=1){const i=e.match(/[^\s]+/g);return i?i.slice(0,t).join(" ").replace(/[.,!?;:]+$/u,""):""}function Xi(e,t){let i=0,n=0;for(;(n=e.indexOf(t,n))!==-1;)i++,n+=t.length;return i}function ys(e,t,i){const n=[];let a=0;for(;a<=e.length;){const r=t?e.indexOf(t,a):a;if(r===-1&&t)break;const l=t?r+t.length:r,c=i?e.indexOf(i,l):e.length;if(i&&c===-1)break;const d=e.slice(l,c);n.push({match:d,index:l}),a=i?c+i.length:e.length+1}return n}function _s(e,t,i,n){const r=ys(e,i,n).filter(({match:c})=>Kn(c).includes(t));return r.length?r.reduce((c,d)=>!c||d.match.length<c.match.length?d:c):null}function bs(e){var t,i;return{leadingSpaces:((t=e.match(/^\s*/))==null?void 0:t[0].length)||0,trailingSpaces:((i=e.match(/\s*$/))==null?void 0:i[0].length)||0}}function ks(e,t,i=0){const n=t.innerHTML,a=[],r=xs(t);let l=n.indexOf(e);for(;l!==-1;)fs(l,r)&&a.push(l),l=n.indexOf(e,l+e.length);return a[i]??-1}function xs(e){const t=[],i=e.innerHTML;let n=!1,a=!1,r=!1,l=0;for(let c=0;c<i.length;c++){const d=i[c];if(!a&&!n&&d==="<"){n=!0,r&&(t.push({start:l,end:c}),r=!1);continue}if(n&&d==='"'&&(a=!a),n&&!a&&d===">"){n=!1;continue}!n&&!a&&!r&&(l=c,r=!0)}return!t.length&&e.textContent.length&&t.push({start:l,end:e.innerHTML.length}),t}function ws(e,t){const i=[" ",".",",","<",">"];try{const n=i.map(c=>"\\"+c).join(""),a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`([${n}])${a}([${n}])`),l=t.match(r);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function Ar(e){return e.ctrlKey||e.metaKey||e.button!==0}async function Ss(){if(!Tt("ads"))return[];const e=St();if(!e)throw new Error("No token was provided");try{return await ht(`/ads/browse/?api-token=${e}`)}catch(t){throw ve(ue.AdsFetchFailed,null,{status:t.status}),t}}function bi(e){var t;return Tt("ads")&&(((t=window.PlayPilotLinkInjections)==null?void 0:t.ads)||[]).find(i=>i.campaign_format===e)||null}function Ts(e){return{sid:"",name:e.content.header||"",url:e.cta.url||"",logo_url:e.cta.image||"",highlighted:!0,cta_text:e.content.subheader,action_text:e.cta.header,extra_info:{category:"SVOD"}}}const Es=e=>e;function Zn(e){const t=e-1;return t*t*t+1}function Lr(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function gt(e,{delay:t=0,duration:i=400,easing:n=Es}={}){const a=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:n,css:r=>`opacity: ${r*a}`}}function ti(e,{delay:t=0,duration:i=400,easing:n=Zn,x:a=0,y:r=0,opacity:l=0}={}){const c=getComputedStyle(e),d=+c.opacity,s=c.transform==="none"?"":c.transform,u=d*(1-l),[v,p]=Lr(a),[h,y]=Lr(r);return{delay:t,duration:i,easing:n,css:(f,b)=>`
|
|
2
|
+
/*$vite$:1*/`,document.head.appendChild(ke);const xe=!1;var Ie=Array.isArray,zi=Array.prototype.indexOf,sn=Array.from,go=Object.defineProperty,yt=Object.getOwnPropertyDescriptor,ma=Object.getOwnPropertyDescriptors,mo=Object.prototype,yo=Array.prototype,cn=Object.getPrototypeOf;function Ft(e){return typeof e=="function"}const at=()=>{};function _o(e){return typeof(e==null?void 0:e.then)=="function"}function bo(e){return e()}function dn(e){for(var t=0;t<e.length;t++)e[t]()}function qi(e,t,i=!1){return e===void 0?i?t():t:e}const et=2,ya=4,ci=8,Ci=16,tt=32,di=64,Ai=128,jt=256,Li=512,Ke=1024,_t=2048,Mi=4096,rt=8192,Vt=16384,_a=32768,zt=65536,ko=1<<17,ba=1<<19,ka=1<<20,ot=Symbol("$state"),xa=Symbol("legacy props"),un=Symbol("");function wa(e){return e===this.v}function vn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function xo(e,t){return e!==t}function pn(e){return!vn(e,this.v)}function wo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function So(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function To(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Eo(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Io(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Po(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function jo(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function zo(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function qo(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let Wt=!1,Co=!1;function Ao(){Wt=!0}const fn=1,hn=2,Sa=4,Lo=8,Mo=16,Do=1,No=2,Oo=4,Ro=8,Ho=16,Bo=1,Fo=2,Vo=4,Wo=1,Uo=2,qe=Symbol(),gn="http://www.w3.org/2000/svg";function Me(e,t){var i={f:0,v:e,reactions:null,equals:wa,rv:0,wv:0};return i}function U(e){return Yo(Me(e))}function Di(e,t=!1){var n;const i=Me(e);return t||(i.equals=pn),Wt&&ge!==null&&ge.l!==null&&((n=ge.l).s??(n.s=[])).push(i),i}function Yo(e){return _e!==null&&_e.f&et&&(dt===null?rl([e]):dt.push(e)),e}function q(e,t){return _e!==null&&Xt()&&_e.f&(et|Ci)&&(dt===null||!dt.includes(e))&&qo(),Ut(e,t)}function Ut(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Ya(),Ta(e,_t),Xt()&&ce!==null&&ce.f&Ke&&!(ce.f&tt)&&(Ne!==null&&Ne.includes(e)?(ut(ce,_t),Fi(ce)):bt===null?ol([e]):bt.push(e))),t}function Ta(e,t){var i=e.reactions;if(i!==null)for(var n=Xt(),a=i.length,r=0;r<a;r++){var l=i[r],c=l.f;c&_t||!n&&l===ce||(ut(l,t),c&(Ke|jt)&&(c&et?Ta(l,Mi):Fi(l)))}}let mn=!1;function vf(e){}function le(e,t=null,i){if(typeof e!="object"||e===null||ot in e)return e;const n=cn(e);if(n!==mo&&n!==yo)return e;var a=new Map,r=Ie(e),l=Me(0);r&&a.set("length",Me(e.length));var c;return new Proxy(e,{defineProperty(d,s,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Po();var v=a.get(s);return v===void 0?(v=Me(u.value),a.set(s,v)):q(v,le(u.value,c)),!0},deleteProperty(d,s){var u=a.get(s);if(u===void 0)s in d&&a.set(s,Me(qe));else{if(r&&typeof s=="string"){var v=a.get("length"),p=Number(s);Number.isInteger(p)&&p<v.v&&q(v,p)}q(u,qe),Ea(l)}return!0},get(d,s,u){var y;if(s===ot)return e;var v=a.get(s),p=s in d;if(v===void 0&&(!p||(y=yt(d,s))!=null&&y.writable)&&(v=Me(le(p?d[s]:qe,c)),a.set(s,v)),v!==void 0){var h=o(v);return h===qe?void 0:h}return Reflect.get(d,s,u)},getOwnPropertyDescriptor(d,s){var u=Reflect.getOwnPropertyDescriptor(d,s);if(u&&"value"in u){var v=a.get(s);v&&(u.value=o(v))}else if(u===void 0){var p=a.get(s),h=p==null?void 0:p.v;if(p!==void 0&&h!==qe)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return u},has(d,s){var h;if(s===ot)return!0;var u=a.get(s),v=u!==void 0&&u.v!==qe||Reflect.has(d,s);if(u!==void 0||ce!==null&&(!v||(h=yt(d,s))!=null&&h.writable)){u===void 0&&(u=Me(v?le(d[s],c):qe),a.set(s,u));var p=o(u);if(p===qe)return!1}return v},set(d,s,u,v){var I;var p=a.get(s),h=s in d;if(r&&s==="length")for(var y=u;y<p.v;y+=1){var f=a.get(y+"");f!==void 0?q(f,qe):y in d&&(f=Me(qe),a.set(y+"",f))}p===void 0?(!h||(I=yt(d,s))!=null&&I.writable)&&(p=Me(void 0),q(p,le(u,c)),a.set(s,p)):(h=p.v!==qe,q(p,le(u,c)));var b=Reflect.getOwnPropertyDescriptor(d,s);if(b!=null&&b.set&&b.set.call(v,u),!h){if(r&&typeof s=="string"){var g=a.get("length"),k=Number(s);Number.isInteger(k)&&k>=g.v&&q(g,k+1)}Ea(l)}return!0},ownKeys(d){o(l);var s=Reflect.ownKeys(d).filter(p=>{var h=a.get(p);return h===void 0||h.v!==qe});for(var[u,v]of a)v.v!==qe&&!(u in d)&&s.push(u);return s},setPrototypeOf(){jo()}})}function Ea(e,t=1){q(e,e.v+t)}function Ia(e){return e!==null&&typeof e=="object"&&ot in e?e[ot]:e}function Ko(e,t){return Object.is(Ia(e),Ia(t))}var be,Pa,ja;function Zo(){if(be===void 0){be=window;var e=Element.prototype,t=Node.prototype;Pa=yt(t,"firstChild").get,ja=yt(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function Yt(e=""){return document.createTextNode(e)}function qt(e){return Pa.call(e)}function Ni(e){return ja.call(e)}function x(e,t){return qt(e)}function X(e,t){{var i=qt(e);return i instanceof Comment&&i.data===""?Ni(i):i}}function S(e,t=1,i=!1){let n=e;for(;t--;)n=Ni(n);return n}function Go(e){e.textContent=""}function F(e){var t=et|_t;ce===null?t|=jt:ce.f|=ka;var i=_e!==null&&_e.f&et?_e:null;const n={children:null,ctx:ge,deps:null,equals:wa,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:i??ce};return i!==null&&(i.children??(i.children=[])).push(n),n}function Xo(e){const t=F(e);return t.equals=pn,t}function za(e){var t=e.children;if(t!==null){e.children=null;for(var i=0;i<t.length;i+=1){var n=t[i];n.f&et?yn(n):Xe(n)}}}function Jo(e){for(var t=e.parent;t!==null;){if(!(t.f&et))return t;t=t.parent}return null}function qa(e){var t,i=ce;De(Jo(e));try{za(e),t=Ka(e)}finally{De(i)}return t}function Ca(e){var t=qa(e),i=(kt||e.f&jt)&&e.deps!==null?Mi:Ke;ut(e,i),e.equals(t)||(e.v=t,e.wv=Ya())}function yn(e){za(e),mi(e,0),ut(e,Vt),e.v=e.children=e.deps=e.ctx=e.reactions=null}function Aa(e){ce===null&&_e===null&&To(),_e!==null&&_e.f&jt&&So(),xn&&wo()}function Qo(e,t){var i=t.last;i===null?t.last=t.first=e:(i.next=e,e.prev=i,t.last=e)}function Kt(e,t,i,n=!0){var a=(e&di)!==0,r=ce,l={ctx:ge,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|_t,first:null,fn:t,last:null,next:null,parent:a?null:r,prev:null,teardown:null,transitions:null,wv:0};if(i){var c=Zt;try{Va(!0),Bi(l),l.f|=_a}catch(u){throw Xe(l),u}finally{Va(c)}}else t!==null&&Fi(l);var d=i&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&ka)===0;if(!d&&!a&&n&&(r!==null&&Qo(l,r),_e!==null&&_e.f&et)){var s=_e;(s.children??(s.children=[])).push(l)}return l}function $o(){return _e===null?!1:!kt}function La(e){const t=Kt(ci,null,!1);return ut(t,Ke),t.teardown=e,t}function lt(e){Aa();var t=ce!==null&&(ce.f&tt)!==0&&ge!==null&&!ge.m;if(t){var i=ge;(i.e??(i.e=[])).push({fn:e,effect:ce,reaction:_e})}else{var n=pt(e);return n}}function el(e){return Aa(),ui(e)}function tl(e){const t=Kt(di,e,!0);return(i={})=>new Promise(n=>{i.outro?ct(t,()=>{Xe(t),n(void 0)}):(Xe(t),n(void 0))})}function pt(e){return Kt(ya,e,!1)}function ui(e){return Kt(ci,e,!0)}function C(e){return st(e)}function st(e,t=0){return Kt(ci|Ci|t,e,!0)}function We(e,t=!0){return Kt(ci|tt,e,!0,t)}function Ma(e){var t=e.teardown;if(t!==null){const i=xn,n=_e;Wa(!0),Ue(null);try{t.call(null)}finally{Wa(i),Ue(n)}}}function Da(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var i=0;i<t.length;i+=1)yn(t[i])}}function Na(e,t=!1){var i=e.first;for(e.first=e.last=null;i!==null;){var n=i.next;Xe(i,t),i=n}}function il(e){for(var t=e.first;t!==null;){var i=t.next;t.f&tt||Xe(t),t=i}}function Xe(e,t=!0){var i=!1;if((t||e.f&ba)&&e.nodes_start!==null){for(var n=e.nodes_start,a=e.nodes_end;n!==null;){var r=n===a?null:Ni(n);n.remove(),n=r}i=!0}Na(e,t&&!i),Da(e),mi(e,0),ut(e,Vt);var l=e.transitions;if(l!==null)for(const d of l)d.stop();Ma(e);var c=e.parent;c!==null&&c.first!==null&&Oa(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Oa(e){var t=e.parent,i=e.prev,n=e.next;i!==null&&(i.next=n),n!==null&&(n.prev=i),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=i))}function ct(e,t){var i=[];_n(e,i,!0),Ra(i,()=>{Xe(e),t&&t()})}function Ra(e,t){var i=e.length;if(i>0){var n=()=>--i||t();for(var a of e)a.out(n)}else t()}function _n(e,t,i){if(!(e.f&rt)){if(e.f^=rt,e.transitions!==null)for(const l of e.transitions)(l.is_global||i)&&t.push(l);for(var n=e.first;n!==null;){var a=n.next,r=(n.f&zt)!==0||(n.f&tt)!==0;_n(n,t,r?i:!1),n=a}}}function Ct(e){Ha(e,!0)}function Ha(e,t){if(e.f&rt){hi(e)&&Bi(e),e.f^=rt;for(var i=e.first;i!==null;){var n=i.next,a=(i.f&zt)!==0||(i.f&tt)!==0;Ha(i,a?t:!1),i=n}if(e.transitions!==null)for(const r of e.transitions)(r.is_global||t)&&r.in()}}let Oi=!1,bn=[];function Ba(){Oi=!1;const e=bn.slice();bn=[],dn(e)}function At(e){Oi||(Oi=!0,queueMicrotask(Ba)),bn.push(e)}function nl(){Oi&&Ba()}function kn(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const Fa=0,al=1;let vi=!1,Ri=Fa,pi=!1,fi=null,Zt=!1,xn=!1;function Va(e){Zt=e}function Wa(e){xn=e}let Lt=[],Gt=0,pf=[],_e=null;function Ue(e){_e=e}let ce=null;function De(e){ce=e}let dt=null;function rl(e){dt=e}let Ne=null,Ze=0,bt=null;function ol(e){bt=e}let Ua=1,wn=0,kt=!1,ge=null;function Hi(e){ge=e}function Ya(){return++Ua}function Xt(){return!Wt||ge!==null&&ge.l===null}function hi(e){var s;var t=e.f;if(t&_t)return!0;if(t&Mi){var i=e.deps,n=(t&jt)!==0;if(i!==null){var a,r,l=(t&Li)!==0,c=n&&ce!==null&&!kt,d=i.length;if(l||c){for(a=0;a<d;a++)r=i[a],(l||!((s=r==null?void 0:r.reactions)!=null&&s.includes(e)))&&(r.reactions??(r.reactions=[])).push(e);l&&(e.f^=Li)}for(a=0;a<d;a++)if(r=i[a],hi(r)&&Ca(r),r.wv>e.wv)return!0}(!n||ce!==null&&!kt)&&ut(e,Ke)}return!1}function ll(e,t){for(var i=t;i!==null;){if(i.f&Ai)try{i.fn(e);return}catch{i.f^=Ai}i=i.parent}throw vi=!1,e}function sl(e){return(e.f&Vt)===0&&(e.parent===null||(e.parent.f&Ai)===0)}function Sn(){vi=!1}function gi(e,t,i,n){if(vi){if(i===null&&(vi=!1),sl(t))throw e;return}i!==null&&(vi=!0);{ll(e,t);return}}function Ka(e){var p;var t=Ne,i=Ze,n=bt,a=_e,r=kt,l=dt,c=ge,d=e.f;Ne=null,Ze=0,bt=null,_e=d&(tt|di)?null:e,kt=!Zt&&(d&jt)!==0,dt=null,ge=e.ctx,wn++;try{var s=(0,e.fn)(),u=e.deps;if(Ne!==null){var v;if(mi(e,Ze),u!==null&&Ze>0)for(u.length=Ze+Ne.length,v=0;v<Ne.length;v++)u[Ze+v]=Ne[v];else e.deps=u=Ne;if(!kt)for(v=Ze;v<u.length;v++)((p=u[v]).reactions??(p.reactions=[])).push(e)}else u!==null&&Ze<u.length&&(mi(e,Ze),u.length=Ze);return s}finally{Ne=t,Ze=i,bt=n,_e=a,kt=r,dt=l,ge=c}}function cl(e,t){let i=t.reactions;if(i!==null){var n=zi.call(i,e);if(n!==-1){var a=i.length-1;a===0?i=t.reactions=null:(i[n]=i[a],i.pop())}}i===null&&t.f&et&&(Ne===null||!Ne.includes(t))&&(ut(t,Mi),t.f&(jt|Li)||(t.f^=Li),mi(t,0))}function mi(e,t){var i=e.deps;if(i!==null)for(var n=t;n<i.length;n++)cl(e,i[n])}function Bi(e){var t=e.f;if(!(t&Vt)){ut(e,Ke);var i=ce,n=ge;ce=e;try{t&Ci?il(e):Na(e),Da(e),Ma(e);var a=Ka(e);e.teardown=typeof a=="function"?a:null,e.wv=Ua;var r=e.deps,l;xe&&Co&&e.f&_t}catch(c){gi(c,e,i,n||e.ctx)}finally{ce=i}}}function Za(){if(Gt>1e3){Gt=0;try{Eo()}catch(e){if(fi!==null)gi(e,fi,null);else throw e}}Gt++}function Ga(e){var t=e.length;if(t!==0){Za();var i=Zt;Zt=!0;try{for(var n=0;n<t;n++){var a=e[n];a.f&Ke||(a.f^=Ke);var r=[];Xa(a,r),dl(r)}}finally{Zt=i}}}function dl(e){var t=e.length;if(t!==0)for(var i=0;i<t;i++){var n=e[i];if(!(n.f&(Vt|rt)))try{hi(n)&&(Bi(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Oa(n):n.fn=null))}catch(a){gi(a,n,null,n.ctx)}}}function ul(){if(pi=!1,Gt>1001)return;const e=Lt;Lt=[],Ga(e),pi||(Gt=0,fi=null)}function Fi(e){Ri===Fa&&(pi||(pi=!0,queueMicrotask(ul))),fi=e;for(var t=e;t.parent!==null;){t=t.parent;var i=t.f;if(i&(di|tt)){if(!(i&Ke))return;t.f^=Ke}}Lt.push(t)}function Xa(e,t){var i=e.first,n=[];e:for(;i!==null;){var a=i.f,r=(a&tt)!==0,l=r&&(a&Ke)!==0,c=i.next;if(!l&&!(a&rt))if(a&ci){if(r)i.f^=Ke;else try{hi(i)&&Bi(i)}catch(v){gi(v,i,null,i.ctx)}var d=i.first;if(d!==null){i=d;continue}}else a&ya&&n.push(i);if(c===null){let v=i.parent;for(;v!==null;){if(e===v)break e;var s=v.next;if(s!==null){i=s;continue e}v=v.parent}}i=c}for(var u=0;u<n.length;u++)d=n[u],t.push(d),Xa(d,t)}function Tn(e){var t=Ri,i=Lt;try{Za();const a=[];Ri=al,Lt=a,pi=!1,Ga(i);var n=e==null?void 0:e();return nl(),(Lt.length>0||a.length>0)&&Tn(),Gt=0,fi=null,n}finally{Ri=t,Lt=i}}async function En(){await Promise.resolve(),Tn()}function o(e){var u;var t=e.f,i=(t&et)!==0;if(i&&t&Vt){var n=qa(e);return yn(e),n}if(_e!==null){dt!==null&&dt.includes(e)&&zo();var a=_e.deps;e.rv<wn&&(e.rv=wn,Ne===null&&a!==null&&a[Ze]===e?Ze++:Ne===null?Ne=[e]:Ne.push(e),bt!==null&&ce!==null&&ce.f&Ke&&!(ce.f&tt)&&bt.includes(e)&&(ut(ce,_t),Fi(ce)))}else if(i&&e.deps===null)for(var r=e,l=r.parent,c=r;l!==null;)if(l.f&et){var d=l;c=d,l=d.parent}else{var s=l;(u=s.deriveds)!=null&&u.includes(c)||(s.deriveds??(s.deriveds=[])).push(c);break}return i&&(r=e,hi(r)&&Ca(r)),e.v}function Ge(e){const t=_e;try{return _e=null,e()}finally{_e=t}}const vl=-7169;function ut(e,t){e.f=e.f&vl|t}function In(e){return Ja().get(e)}function Pn(e,t){return Ja().set(e,t),t}function Ja(e){return ge===null&&kn(),ge.c??(ge.c=new Map(pl(ge)||void 0))}function pl(e){let t=e.p;for(;t!==null;){const i=t.c;if(i!==null)return i;t=t.p}return null}function ie(e,t=!1,i){ge={p:ge,c:null,e:null,m:!1,s:e,x:null,l:null},Wt&&!t&&(ge.l={s:null,u:null,r1:[],r2:Me(!1)})}function ne(e){const t=ge;if(t!==null){e!==void 0&&(t.x=e);const l=t.e;if(l!==null){var i=ce,n=_e;t.e=null;try{for(var a=0;a<l.length;a++){var r=l[a];De(r.effect),Ue(r.reaction),pt(r.fn)}}finally{De(i),Ue(n)}}ge=t.p,t.m=!0}return e||{}}function Qa(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(ot in e)jn(e);else if(!Array.isArray(e))for(let t in e){const i=e[t];typeof i=="object"&&i&&ot in i&&jn(i)}}}function jn(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{jn(e[n],t)}catch{}const i=cn(e);if(i!==Object.prototype&&i!==Array.prototype&&i!==Map.prototype&&i!==Set.prototype&&i!==Date.prototype){const n=ma(i);for(let a in n){const r=n[a].get;if(r)try{r.call(e)}catch{}}}}}function fl(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const hl=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function gl(e){return hl.includes(e)}const ml={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function yl(e){return e=e.toLowerCase(),ml[e]??e}const _l=["touchstart","touchmove"];function bl(e){return _l.includes(e)}function kl(e,t){if(t){const i=document.body;e.autofocus=!0,At(()=>{document.activeElement===i&&e.focus()})}}let $a=!1;function xl(){$a||($a=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const i of e.target.elements)(t=i.__on_r)==null||t.call(i)})},{capture:!0}))}function wl(e,t,i,n=!0){n&&i();for(var a of t)e.addEventListener(a,i);La(()=>{for(var r of t)e.removeEventListener(r,i)})}function zn(e){var t=_e,i=ce;Ue(null),De(null);try{return e()}finally{Ue(t),De(i)}}function er(e,t,i,n=i){e.addEventListener(t,()=>zn(i));const a=e.__on_r;a?e.__on_r=()=>{a(),n(!0)}:e.__on_r=()=>n(!0),xl()}const tr=new Set,qn=new Set;function Cn(e,t,i,n){function a(r){if(n.capture||yi.call(t,r),!r.cancelBubble)return zn(()=>i.call(this,r))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?At(()=>{t.addEventListener(e,a,n)}):t.addEventListener(e,a,n),a}function Sl(e,t,i,n={}){var a=Cn(t,e,i,n);return()=>{e.removeEventListener(t,a,n)}}function se(e,t,i,n,a){var r={capture:n,passive:a},l=Cn(e,t,i,r);(t===document.body||t===window||t===document)&&La(()=>{t.removeEventListener(e,l,r)})}function fe(e){for(var t=0;t<e.length;t++)tr.add(e[t]);for(var i of qn)i(e)}function yi(e){var k;var t=this,i=t.ownerDocument,n=e.type,a=((k=e.composedPath)==null?void 0:k.call(e))||[],r=a[0]||e.target,l=0,c=e.__root;if(c){var d=a.indexOf(c);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var s=a.indexOf(t);if(s===-1)return;d<=s&&(l=d)}if(r=a[l]||e.target,r!==t){go(e,"currentTarget",{configurable:!0,get(){return r||i}});var u=_e,v=ce;Ue(null),De(null);try{for(var p,h=[];r!==null;){var y=r.assignedSlot||r.parentNode||r.host||null;try{var f=r["__"+n];if(f!==void 0&&!r.disabled)if(Ie(f)){var[b,...g]=f;b.apply(r,[e,...g])}else f.call(r,e)}catch(I){p?h.push(I):p=I}if(e.cancelBubble||y===t||y===null)break;r=y}if(p){for(let I of h)queueMicrotask(()=>{throw I});throw p}}finally{e.__root=t,delete e.currentTarget,Ue(u),De(v)}}}function Tl(e){var t;t=document.head.appendChild(Yt());try{st(()=>e(t),ba)}finally{}}function An(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Mt(e,t){var i=ce;i.nodes_start===null&&(i.nodes_start=e,i.nodes_end=t)}function T(e,t){var i=(t&Wo)!==0,n=(t&Uo)!==0,a,r=!e.startsWith("<!>");return()=>{a===void 0&&(a=An(r?e:"<!>"+e),i||(a=qt(a)));var l=n?document.importNode(a,!0):a.cloneNode(!0);if(i){var c=qt(l),d=l.lastChild;Mt(c,d)}else Mt(l,l);return l}}function je(e,t,i="svg"){var n=!e.startsWith("<!>"),a=`<${i}>${n?e:"<!>"+e}</${i}>`,r;return()=>{if(!r){var l=An(a),c=qt(l);r=qt(c)}var d=r.cloneNode(!0);return Mt(d,d),d}}function Oe(e=""){{var t=Yt(e+"");return Mt(t,t),t}}function ye(){var e=document.createDocumentFragment(),t=document.createComment(""),i=Yt();return e.append(t,i),Mt(t,i),e}function m(e,t){e!==null&&e.before(t)}let Vi=!0;function ir(e){Vi=e}function K(e,t){var i=t==null?"":typeof t=="object"?t+"":t;i!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=i,e.nodeValue=i==null?"":i+"")}function xt(e,t){return El(e,t)}const Jt=new Map;function El(e,{target:t,anchor:i,props:n={},events:a,context:r,intro:l=!0}){Zo();var c=new Set,d=v=>{for(var p=0;p<v.length;p++){var h=v[p];if(!c.has(h)){c.add(h);var y=bl(h);t.addEventListener(h,yi,{passive:y});var f=Jt.get(h);f===void 0?(document.addEventListener(h,yi,{passive:y}),Jt.set(h,1)):Jt.set(h,f+1)}}};d(sn(tr)),qn.add(d);var s=void 0,u=tl(()=>{var v=i??t.appendChild(Yt());return We(()=>{if(r){ie({});var p=ge;p.c=r}a&&(n.$$events=a),Vi=l,s=e(v,n)||{},Vi=!0,r&&ne()}),()=>{var y;for(var p of c){t.removeEventListener(p,yi);var h=Jt.get(p);--h===0?(document.removeEventListener(p,yi),Jt.delete(p)):Jt.set(p,h)}qn.delete(d),v!==i&&((y=v.parentNode)==null||y.removeChild(v))}});return Ln.set(s,u),s}let Ln=new WeakMap;function Qt(e,t){const i=Ln.get(e);return i?(Ln.delete(e),i(t)):Promise.resolve()}const Mn=0,Wi=1,Dn=2;function nr(e,t,i,n,a){var r=e,l=Xt(),c=ge,d=qe,s,u,v,p=(l?Me:Di)(void 0),h=(l?Me:Di)(void 0),y=!1;function f(g,k){y=!0,k&&(De(b),Ue(b),Hi(c));try{g===Mn&&i&&(s?Ct(s):s=We(()=>i(r))),g===Wi&&n&&(u?Ct(u):u=We(()=>n(r,p))),g!==Mn&&s&&ct(s,()=>s=null),g!==Wi&&u&&ct(u,()=>u=null),g!==Dn&&v&&ct(v,()=>v=null)}finally{k&&(Hi(null),Ue(null),De(null),Tn())}}var b=st(()=>{if(d!==(d=t())){if(_o(d)){var g=d;y=!1,g.then(k=>{g===d&&(Ut(p,k),f(Wi,!0))},k=>{if(g===d)throw Ut(h,k),f(Dn,!0),h.v}),At(()=>{y||f(Mn,!0)})}else Ut(p,d),f(Wi,!1);return()=>d=qe}})}function M(e,t,i=!1){var n=e,a=null,r=null,l=qe,c=i?zt:0,d=!1;const s=(v,p=!0)=>{d=!0,u(p,v)},u=(v,p)=>{l!==(l=v)&&(l?(a?Ct(a):p&&(a=We(()=>p(n))),r&&ct(r,()=>{r=null})):(r?Ct(r):p&&(r=We(()=>p(n))),a&&ct(a,()=>{a=null})))};st(()=>{d=!1,t(s),d||u(null,null)},c)}function Nn(e,t,i){var n=e,a=qe,r,l=Xt()?xo:vn;st(()=>{l(a,a=t())&&(r&&ct(r),r=We(()=>i(n)))})}function Ce(e,t){return t}function Il(e,t,i,n){for(var a=[],r=t.length,l=0;l<r;l++)_n(t[l].e,a,!0);var c=r>0&&a.length===0&&i!==null;if(c){var d=i.parentNode;Go(d),d.append(i),n.clear(),wt(e,t[0].prev,t[r-1].next)}Ra(a,()=>{for(var s=0;s<r;s++){var u=t[s];c||(n.delete(u.k),wt(e,u.prev,u.next)),Xe(u.e,!c)}})}function ze(e,t,i,n,a,r=null){var l=e,c={flags:t,items:new Map,first:null},d=(t&Sa)!==0;if(d){var s=e;l=s.appendChild(Yt())}var u=null,v=!1;st(()=>{var p=i(),h=Ie(p)?p:p==null?[]:sn(p),y=h.length;if(!(v&&y===0)){v=y===0;{var f=_e;Pl(h,c,l,a,t,(f.f&rt)!==0,n)}r!==null&&(y===0?u?Ct(u):u=We(()=>r(l)):u!==null&&ct(u,()=>{u=null})),i()}})}function Pl(e,t,i,n,a,r,l,c){var Y,P,H,ee;var d=(a&Lo)!==0,s=(a&(fn|hn))!==0,u=e.length,v=t.items,p=t.first,h=p,y,f=null,b,g=[],k=[],I,j,E,L;if(d)for(L=0;L<u;L+=1)I=e[L],j=l(I,L),E=v.get(j),E!==void 0&&((Y=E.a)==null||Y.measure(),(b??(b=new Set)).add(E));for(L=0;L<u;L+=1){if(I=e[L],j=l(I,L),E=v.get(j),E===void 0){var Z=h?h.e.nodes_start:i;f=zl(Z,t,f,f===null?t.first:f.next,I,j,L,n,a),v.set(j,f),g=[],k=[],h=f.next;continue}if(s&&jl(E,I,L,a),E.e.f&rt&&(Ct(E.e),d&&((P=E.a)==null||P.unfix(),(b??(b=new Set)).delete(E))),E!==h){if(y!==void 0&&y.has(E)){if(g.length<k.length){var A=k[0],w;f=A.prev;var z=g[0],O=g[g.length-1];for(w=0;w<g.length;w+=1)ar(g[w],A,i);for(w=0;w<k.length;w+=1)y.delete(k[w]);wt(t,z.prev,O.next),wt(t,f,z),wt(t,O,A),h=A,f=O,L-=1,g=[],k=[]}else y.delete(E),ar(E,h,i),wt(t,E.prev,E.next),wt(t,E,f===null?t.first:f.next),wt(t,f,E),f=E;continue}for(g=[],k=[];h!==null&&h.k!==j;)(r||!(h.e.f&rt))&&(y??(y=new Set)).add(h),k.push(h),h=h.next;if(h===null)continue;E=h}g.push(E),f=E,h=E.next}if(h!==null||y!==void 0){for(var R=y===void 0?[]:sn(y);h!==null;)(r||!(h.e.f&rt))&&R.push(h),h=h.next;var D=R.length;if(D>0){var V=a&Sa&&u===0?i:null;if(d){for(L=0;L<D;L+=1)(H=R[L].a)==null||H.measure();for(L=0;L<D;L+=1)(ee=R[L].a)==null||ee.fix()}Il(t,R,V,v)}}d&&At(()=>{var Q;if(b!==void 0)for(E of b)(Q=E.a)==null||Q.apply()}),ce.first=t.first&&t.first.e,ce.last=f&&f.e}function jl(e,t,i,n){n&fn&&Ut(e.v,t),n&hn?Ut(e.i,i):e.i=i}function zl(e,t,i,n,a,r,l,c,d,s){var u=(d&fn)!==0,v=(d&Mo)===0,p=u?v?Di(a):Me(a):a,h=d&hn?Me(l):l,y={i:h,v:p,k:r,a:null,e:null,prev:i,next:n};try{return y.e=We(()=>c(e,p,h),mn),y.e.prev=i&&i.e,y.e.next=n&&n.e,i===null?t.first=y:(i.next=y,i.e.next=y.e),n!==null&&(n.prev=y,n.e.prev=y.e),y}finally{}}function ar(e,t,i){for(var n=e.next?e.next.e.nodes_start:i,a=t?t.e.nodes_start:i,r=e.e.nodes_start;r!==n;){var l=Ni(r);a.before(r),r=l}}function wt(e,t,i){t===null?e.first=i:(t.next=i,t.e.next=i&&i.e),i!==null&&(i.prev=t,i.e.prev=t&&t.e)}function ql(e,t,i,n,a){var r=e,l="",c;st(()=>{l!==(l=t()??"")&&(c!==void 0&&(Xe(c),c=void 0),l!==""&&(c=We(()=>{var d=l+"",s=An(d);Mt(qt(s),s.lastChild),r.before(s)})))})}function Re(e,t,...i){var n=e,a=at,r;st(()=>{a!==(a=t())&&(r&&(Xe(r),r=null),r=We(()=>a(n,...i)))},zt)}function rr(e,t,i,n,a,r){var l,c,d=null,s=e,u;st(()=>{const v=t()||null;var p=v==="svg"?gn:null;v!==l&&(u&&(v===null?ct(u,()=>{u=null,c=null}):v===c?Ct(u):(Xe(u),ir(!1))),v&&v!==c&&(u=We(()=>{if(d=p?document.createElementNS(p,v):document.createElement(v),Mt(d,d),n){var h=d.appendChild(Yt());n(d,h)}ce.nodes_end=d,s.before(d)})),l=v,l&&(c=l),ir(!0))},zt)}function it(e,t,i){pt(()=>{var n=Ge(()=>t(e,i==null?void 0:i())||{});if(i&&(n!=null&&n.update)){var a=!1,r={};ui(()=>{var l=i();Qa(l),a&&vn(r,l)&&(r=l,n.update(l))}),a=!0}if(n!=null&&n.destroy)return()=>n.destroy()})}function or(e){var t,i,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(i=or(e[t]))&&(n&&(n+=" "),n+=i)}else for(i in e)e[i]&&(n&&(n+=" "),n+=i);return n}function Cl(){for(var e,t,i=0,n="",a=arguments.length;i<a;i++)(e=arguments[i])&&(t=or(e))&&(n&&(n+=" "),n+=t);return n}function Al(e){return typeof e=="object"?Cl(e):e??""}function Ll(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function oe(e,t,i,n){var a=e.__attributes??(e.__attributes={});a[t]!==(a[t]=i)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[un]=i),i==null?e.removeAttribute(t):typeof i!="string"&&cr(e).includes(t)?e[t]=i:e.setAttribute(t,i))}function lr(e,t,i,n,a=!1,r=!1,l=!1){var c=t||{},d=e.tagName==="OPTION";for(var s in t)s in i||(i[s]=null);i.class&&(i.class=Al(i.class)),n!==void 0&&(i.class=i.class?i.class+" "+n:n);var u=cr(e),v=e.__attributes??(e.__attributes={});for(const g in i){let k=i[g];if(d&&g==="value"&&k==null){e.value=e.__value="",c[g]=k;continue}var p=c[g];if(k!==p){c[g]=k;var h=g[0]+g[1];if(h!=="$$"){if(h==="on"){const I={},j="$$"+g;let E=g.slice(2);var y=gl(E);if(fl(E)&&(E=E.slice(0,-7),I.capture=!0),!y&&p){if(k!=null)continue;e.removeEventListener(E,c[j],I),c[j]=null}if(k!=null)if(y)e[`__${E}`]=k,fe([E]);else{let L=function(Z){c[g].call(this,Z)};c[j]=Cn(E,e,L,I)}else y&&(e[`__${E}`]=void 0)}else if(g==="style"&&k!=null)e.style.cssText=k+"";else if(g==="autofocus")kl(e,!!k);else if(g==="__value"||g==="value"&&k!=null)e.value=e[g]=e.__value=k;else if(g==="selected"&&d)Ll(e,k);else{var f=g;a||(f=yl(f));var b=f==="defaultValue"||f==="defaultChecked";if(k==null&&!r&&!b)if(v[g]=null,f==="value"||f==="checked"){let I=e;if(f==="value"){let j=I.defaultValue;I.removeAttribute(f),I.defaultValue=j}else{let j=I.defaultChecked;I.removeAttribute(f),I.defaultChecked=j}}else e.removeAttribute(g);else b||u.includes(f)&&(r||typeof k!="string")?e[f]=k:typeof k!="function"&&oe(e,f,k)}g==="style"&&"__styles"in e&&(e.__styles={})}}}return c}var sr=new Map;function cr(e){var t=sr.get(e.nodeName);if(t)return t;sr.set(e.nodeName,t=[]);for(var i,n=e,a=Element.prototype;a!==n;){i=ma(n);for(var r in i)i[r].set&&t.push(r);n=cn(n)}return t}function Ml(e){if(e.loading==="lazy"){var t=e.src;e[un]=null,e.loading="eager",e.removeAttribute("src"),requestAnimationFrame(()=>{e[un]!=="eager"&&(e.loading="lazy"),e.src=t})}}function Dl(e,t,i){var n=e.__className,a=dr(t);(n!==a||mn)&&(a===""?e.removeAttribute("class"):e.setAttribute("class",a),e.__className=a)}function Ui(e,t,i){var n=e.__className,a=dr(t);(n!==a||mn)&&(t==null?e.removeAttribute("class"):e.className=a,e.__className=a)}function dr(e,t){return(e??"")+""}function de(e,t,i){if(i){if(e.classList.contains(t))return;e.classList.add(t)}else{if(!e.classList.contains(t))return;e.classList.remove(t)}}function Je(e,t,i,n){var a=e.__styles??(e.__styles={});a[t]!==i&&(a[t]=i,i==null?e.style.removeProperty(t):e.style.setProperty(t,i,""))}const Nl=()=>performance.now(),ft={tick:e=>requestAnimationFrame(e),now:()=>Nl(),tasks:new Set};function ur(){const e=ft.now();ft.tasks.forEach(t=>{t.c(e)||(ft.tasks.delete(t),t.f())}),ft.tasks.size!==0&&ft.tick(ur)}function Ol(e){let t;return ft.tasks.size===0&&ft.tick(ur),{promise:new Promise(i=>{ft.tasks.add(t={c:e,f:i})}),abort(){ft.tasks.delete(t)}}}function Yi(e,t){e.dispatchEvent(new CustomEvent(t))}function Rl(e){if(e==="float")return"cssFloat";if(e==="offset")return"cssOffset";if(e.startsWith("--"))return e;const t=e.split("-");return t.length===1?t[0]:t[0]+t.slice(1).map(i=>i[0].toUpperCase()+i.slice(1)).join("")}function vr(e){const t={},i=e.split(";");for(const n of i){const[a,r]=n.split(":");if(!a||r===void 0)break;const l=Rl(a.trim());t[l]=r.trim()}return t}const Hl=e=>e;function Te(e,t,i,n){var a=(e&Bo)!==0,r=(e&Fo)!==0,l=a&&r,c=(e&Vo)!==0,d=l?"both":a?"in":"out",s,u=t.inert,v,p;function h(){var k=_e,I=ce;Ue(null),De(null);try{return s??(s=i()(t,(n==null?void 0:n())??{},{direction:d}))}finally{Ue(k),De(I)}}var y={is_global:c,in(){var k;if(t.inert=u,!a){p==null||p.abort(),(k=p==null?void 0:p.reset)==null||k.call(p);return}r||v==null||v.abort(),Yi(t,"introstart"),v=On(t,h(),p,1,()=>{Yi(t,"introend"),v==null||v.abort(),v=s=void 0})},out(k){if(!r){k==null||k(),s=void 0;return}t.inert=!0,Yi(t,"outrostart"),p=On(t,h(),v,0,()=>{Yi(t,"outroend"),k==null||k()})},stop:()=>{v==null||v.abort(),p==null||p.abort()}},f=ce;if((f.transitions??(f.transitions=[])).push(y),a&&Vi){var b=c;if(!b){for(var g=f.parent;g&&g.f&zt;)for(;(g=g.parent)&&!(g.f&Ci););b=!g||(g.f&_a)!==0}b&&pt(()=>{Ge(()=>y.in())})}}function On(e,t,i,n,a){var r=n===1;if(Ft(t)){var l,c=!1;return At(()=>{if(!c){var b=t({direction:r?"in":"out"});l=On(e,b,i,n,a)}}),{abort:()=>{c=!0,l==null||l.abort()},deactivate:()=>l.deactivate(),reset:()=>l.reset(),t:()=>l.t()}}if(i==null||i.deactivate(),!(t!=null&&t.duration))return a(),{abort:at,deactivate:at,reset:at,t:()=>n};const{delay:d=0,css:s,tick:u,easing:v=Hl}=t;var p=[];if(r&&i===void 0&&(u&&u(0,1),s)){var h=vr(s(0,1));p.push(h,h)}var y=()=>1-n,f=e.animate(p,{duration:d});return f.onfinish=()=>{var b=(i==null?void 0:i.t())??1-n;i==null||i.abort();var g=n-b,k=t.duration*Math.abs(g),I=[];if(k>0){if(s)for(var j=Math.ceil(k/16.666666666666668),E=0;E<=j;E+=1){var L=b+g*v(E/j),Z=s(L,1-L);I.push(vr(Z))}y=()=>{var A=f.currentTime;return b+g*v(A/k)},u&&Ol(()=>{if(f.playState!=="running")return!1;var A=y();return u(A,1-A),!0})}f=e.animate(I,{duration:k,fill:"forwards"}),f.onfinish=()=>{y=()=>n,u==null||u(n,1-n),a()}},{abort:()=>{f&&(f.cancel(),f.effect=null,f.onfinish=at)},deactivate:()=>{a=at},reset:()=>{n===0&&(u==null||u(1,0))},t:()=>y()}}function Bl(e,t,i=t){var n=Xt();er(e,"input",a=>{var r=a?e.defaultValue:e.value;if(r=Rn(e)?Hn(r):r,i(r),n&&r!==(r=t())){var l=e.selectionStart,c=e.selectionEnd;e.value=r??"",c!==null&&(e.selectionStart=l,e.selectionEnd=Math.min(c,e.value.length))}}),Ge(t)==null&&e.value&&i(Rn(e)?Hn(e.value):e.value),ui(()=>{var a=t();Rn(e)&&a===Hn(e.value)||e.type==="date"&&!a&&!e.value||a!==e.value&&(e.value=a??"")})}function Rn(e){var t=e.type;return t==="number"||t==="range"}function Hn(e){return e===""?null:+e}function pr(e,t,i){if(e.multiple)return Wl(e,t);for(var n of e.options){var a=_i(n);if(Ko(a,t)){n.selected=!0;return}}(!i||t!==void 0)&&(e.selectedIndex=-1)}function Fl(e,t){pt(()=>{var i=new MutationObserver(()=>{var n=e.__value;pr(e,n)});return i.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["value"]}),()=>{i.disconnect()}})}function Vl(e,t,i=t){var n=!0;er(e,"change",a=>{var r=a?"[selected]":":checked",l;if(e.multiple)l=[].map.call(e.querySelectorAll(r),_i);else{var c=e.querySelector(r)??e.querySelector("option:not([disabled])");l=c&&_i(c)}i(l)}),pt(()=>{var a=t();if(pr(e,a,n),n&&a===void 0){var r=e.querySelector(":checked");r!==null&&(a=_i(r),i(a))}e.__value=a,n=!1}),Fl(e)}function Wl(e,t){for(var i of e.options)i.selected=~t.indexOf(_i(i))}function _i(e){return"__value"in e?e.__value:e.value}const on=class on{constructor(t){Bt(this,rn);Bt(this,It,new WeakMap);Bt(this,oi);Bt(this,Ei);ji(this,Ei,t)}observe(t,i){var n=nt(this,It).get(t)||new Set;return n.add(i),nt(this,It).set(t,n),fo(this,rn,ho).call(this).observe(t,nt(this,Ei)),()=>{var a=nt(this,It).get(t);a.delete(i),a.size===0&&(nt(this,It).delete(t),nt(this,oi).unobserve(t))}}};It=new WeakMap,oi=new WeakMap,Ei=new WeakMap,rn=new WeakSet,ho=function(){return nt(this,oi)??ji(this,oi,new ResizeObserver(t=>{for(var i of t){on.entries.set(i.target,i);for(var n of nt(this,It).get(i.target)||[])n(i)}}))},po(on,"entries",new WeakMap);let Bn=on;var Ul=new Bn({box:"border-box"});function $t(e,t,i){var n=Ul.observe(e,()=>i(e[t]));pt(()=>(Ge(()=>i(e[t])),n))}function fr(e,t){return e===t||(e==null?void 0:e[ot])===t}function vt(e={},t,i,n){return pt(()=>{var a,r;return ui(()=>{a=r,r=[],Ge(()=>{e!==i(...r)&&(t(e,...r),a&&fr(i(...a),e)&&t(null,...a))})}),()=>{At(()=>{r&&fr(i(...r),e)&&t(null,...r)})}}),e}function hr(e,t){wl(window,["resize"],()=>zn(()=>t(window[e])))}function gr(e=!1){const t=ge,i=t.l.u;if(!i)return;let n=()=>Qa(t.s);if(e){let a=0,r={};const l=F(()=>{let c=!1;const d=t.s;for(const s in d)d[s]!==r[s]&&(r[s]=d[s],c=!0);return c&&a++,a});n=()=>o(l)}i.b.length&&el(()=>{mr(t,n),dn(i.b)}),lt(()=>{const a=Ge(()=>i.m.map(bo));return()=>{for(const r of a)typeof r=="function"&&r()}}),i.a.length&<(()=>{mr(t,n),dn(i.a)})}function mr(e,t){if(e.l.s)for(const i of e.l.s)o(i);t()}let Ki=!1;function Yl(e){var t=Ki;try{return Ki=!1,[e(),Ki]}finally{Ki=t}}const Kl={get(e,t){if(!e.exclude.includes(t))return e.props[t]},set(e,t){return!1},getOwnPropertyDescriptor(e,t){if(!e.exclude.includes(t)&&t in e.props)return{enumerable:!0,configurable:!0,value:e.props[t]}},has(e,t){return e.exclude.includes(t)?!1:t in e.props},ownKeys(e){return Reflect.ownKeys(e.props).filter(t=>!e.exclude.includes(t))}};function Zl(e,t,i){return new Proxy({props:e,exclude:t},Kl)}const Gl={get(e,t){let i=e.props.length;for(;i--;){let n=e.props[i];if(Ft(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n)return n[t]}},set(e,t,i){let n=e.props.length;for(;n--;){let a=e.props[n];Ft(a)&&(a=a());const r=yt(a,t);if(r&&r.set)return r.set(i),!0}return!1},getOwnPropertyDescriptor(e,t){let i=e.props.length;for(;i--;){let n=e.props[i];if(Ft(n)&&(n=n()),typeof n=="object"&&n!==null&&t in n){const a=yt(n,t);return a&&!a.configurable&&(a.configurable=!0),a}}},has(e,t){if(t===ot||t===xa)return!1;for(let i of e.props)if(Ft(i)&&(i=i()),i!=null&&t in i)return!0;return!1},ownKeys(e){const t=[];for(let i of e.props){Ft(i)&&(i=i());for(const n in i)t.includes(n)||t.push(n)}return t}};function Xl(...e){return new Proxy({props:e},Gl)}function yr(e){for(var t=ce,i=ce;t!==null&&!(t.f&(tt|di));)t=t.parent;try{return De(t),e()}finally{De(i)}}function N(e,t,i,n){var Z;var a=(i&Do)!==0,r=!Wt||(i&No)!==0,l=(i&Ro)!==0,c=(i&Ho)!==0,d=!1,s;l?[s,d]=Yl(()=>e[t]):s=e[t];var u=ot in e||xa in e,v=l&&(((Z=yt(e,t))==null?void 0:Z.set)??(u&&t in e&&(A=>e[t]=A)))||void 0,p=n,h=!0,y=!1,f=()=>(y=!0,h&&(h=!1,c?p=Ge(n):p=n),p);s===void 0&&n!==void 0&&(v&&r&&Io(),s=f(),v&&v(s));var b;if(r)b=()=>{var A=e[t];return A===void 0?f():(h=!0,y=!1,A)};else{var g=yr(()=>(a?F:Xo)(()=>e[t]));g.f|=ko,b=()=>{var A=o(g);return A!==void 0&&(p=void 0),A===void 0?p:A}}if(!(i&Oo))return b;if(v){var k=e.$$legacy;return function(A,w){return arguments.length>0?((!r||!w||k||d)&&v(w?b():A),A):b()}}var I=!1,j=!1,E=Di(s),L=yr(()=>F(()=>{var A=b(),w=o(E);return I?(I=!1,j=!0,w):(j=!1,E.v=A)}));return a||(L.equals=pn),function(A,w){if(arguments.length>0){const z=w?o(L):r&&l?le(A):A;return L.equals(z)||(I=!0,q(E,z),y&&p!==void 0&&(p=z),Ge(()=>o(L))),A}return o(L)}}function _r(e,t){var i=ce,n=_e,a=ge;De(e),Ue(e),Hi(e.ctx);try{t()}finally{De(i),Ue(n),Hi(a)}}function Jl(e,t,i){var n=e,a;st(()=>{var r=ce,l=!1;r.fn=c=>{var d=t.onerror;let s=t.failed;if(!d&&!s||l)throw c;var u=()=>{ct(a),_r(r,()=>{l=!1,a=We(()=>i(n)),Sn()})};d==null||d(c,u),a&&Xe(a),At(()=>{_r(r,()=>{l=!0;try{a=We(()=>{s(n,()=>c,()=>u)})}catch(v){gi(v,r,null,r.ctx)}Sn(),l=!1})})},a=We(()=>i(n)),Sn()},zt|Ai)}function Fe(e){ge===null&&kn(),Wt&&ge.l!==null?Ql(ge).m.push(e):lt(()=>{const t=Ge(e);if(typeof t=="function")return t})}function Fn(e){ge===null&&kn(),Fe(()=>()=>Ge(e))}function Ql(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const $l="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($l);function St(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}const ue=Object.freeze({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",TrailerClick:"ali_trailer_button_click"});function br(e){window.PlayPilotLinkInjections&&(window.PlayPilotLinkInjections.consents=e)}function Tt(e){var t;return window.PlayPilotLinkInjections.require_consent===!1?!0:!!((t=window.PlayPilotLinkInjections.consents)!=null&&t[e])}const kr="https://www.playpilot.com",es="https://partner-api.playpilot.tech/1.0.0",ts="https://img-external.playpilot.tech",Vn="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",ei=600;function Zi(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}function Dt(){const e=location.pathname.replace(/\/+/g,"/");return location.protocol+"//"+location.host+e}const is="https://insights.playpilot.net";async function ve(e,t=null,i={}){var a,r,l,c;if(Zi())return;if(!Tt("tracking")){rs(e,t,i);return}const n=new Headers({"Content-Type":"application/json"});t&&(i={original_title:t.original_title,title_sid:t.sid,title_type:t.type,providers:[...new Set(((a=t.providers)==null?void 0:a.map(d=>d.name))||[])],...i}),i.version="5.35.1",i.url=Dt(),i.organization_sid=((r=window.PlayPilotLinkInjections)==null?void 0:r.organization_sid)||"undefined",i.domain_sid=((l=window.PlayPilotLinkInjections)==null?void 0:l.domain_sid)||"undefined",i.device={type:window.innerWidth>ei?"desktop":"mobile",width:window.innerWidth,height:window.innerHeight,touch:window.matchMedia("(pointer: coarse)").matches,orientation:((c=screen.orientation)==null?void 0:c.type)||"undefined"},fetch(is,{headers:n,method:"POST",body:JSON.stringify({event:e,payload:i,source:"ali",keepalive:!0})}),ns({event:e,payload:i})}function ns(e){var t;window.PlayPilotLinkInjections.tracked_events||(window.PlayPilotLinkInjections.tracked_events=[]),(t=window.PlayPilotLinkInjections.tracked_events)==null||t.push(e)}function as({organizationSid:e=null,domainSid:t=null}){window.PlayPilotLinkInjections.organization_sid=e||null,window.PlayPilotLinkInjections.domain_sid=t||null}function rs(e,t=null,i={}){var n;(n=window.PlayPilotLinkInjections).queued_tracking_events||(n.queued_tracking_events=[]),window.PlayPilotLinkInjections.queued_tracking_events.push({event:e,title:t,payload:i})}function os(){if(Tt("tracking")){for(const{event:e,title:t,payload:i}of window.PlayPilotLinkInjections.queued_tracking_events||[])ve(e,t,i);window.PlayPilotLinkInjections.queued_tracking_events=[]}}const Wn={};async function ht(e,{headers:t={},method:i="GET",body:n=null}={}){const a=!Gi()&&i==="GET";if(a&&e in Wn)return Wn[e];const r=i==="GET"?{}:{"Content-Type":"application/json"},l=await fetch(es+e,{method:i,headers:new Headers({...r,...t}),body:n?JSON.stringify(n):null});if(!(l!=null&&l.ok))throw l;const c=await l.text();let d=c;try{c&&(d=JSON.parse(c))}catch{}return a&&(Wn[e]=d),d}const Un="EncryptedToken",xr="articleReplacementEditToken",wr="playpilot-editorial-mode";async function Sr(e=window.location.href){try{const t=St();if(!t)throw new Error("No token was provided");const i=Yn(e);if(!i)throw new Error("Could not be authenticated");return await ht(`/external-pages/edit-authorization?api-token=${t}`,{method:"POST",body:{private_token:i}}),ls(i),!0}catch(t){console.error(t),ve(ue.AuthFailed)}finally{ds()}return!1}function Yn(e=""){var n,a;const t=(n=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:n.editorial_token;if(t)return t;if(e){const r=new URL(e).searchParams.get(xr);if(r)return decodeURI(r)}return((a=("; "+document.cookie).split(`; ${Un}=`).pop())==null?void 0:a.split(";")[0])||""}function ls(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const n="expires="+t.toUTCString();document.cookie=Un+"="+e+";"+n+";path=/"}function ss(){document.cookie=Un+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function Gi(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(wr)==="true"||!!e}function cs(){const e=new URL(window.location.href);e.searchParams.set(wr,"true"),window.history.replaceState({},"",e)}function ds(){const e=new URL(window.location.href);e.searchParams.delete(xr),window.history.replaceState({},"",e)}function us(e){let t=0;for(let i=0;i<e.length;i++){const n=e.charCodeAt(i);t=t*31+n>>>0}return t.toString(16)}function Tr(){return(Math.random()+1).toString(36).substring(7)}const _=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"}),vs={"Where To Stream Online":{[_.English]:"Where to stream online",[_.Swedish]:"Var kan man streama online",[_.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[_.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[_.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[_.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"In-Text Disclaimer":{[_.English]:"We may earn a commission from purchases made through some of the links below.",[_.Swedish]:"Vi kan få en provision för köp som görs via några av länkarna nedan.",[_.Danish]:"Vi kan modtage en kommission for køb foretaget gennem nogle af nedenstående links."},"An Error Occurred":{[_.English]:"An error occurred",[_.Swedish]:"Ett fel inträffade",[_.Danish]:"Der opstod en fejl"},"Title Unavailable":{[_.English]:"This title is not currently available to stream.",[_.Swedish]:"Den här titeln går inte att streama just nu.",[_.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[_.English]:"is not currently available to stream.",[_.Swedish]:"går inte att streama just nu.",[_.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[_.English]:"is available to stream on",[_.Swedish]:"finns att streama på",[_.Danish]:"kan streames på"},"Is Available To Stream":{[_.English]:"is available to stream.",[_.Swedish]:"finns att streama.",[_.Danish]:"kan streames."},"View Streaming Options":{[_.English]:"View streaming options",[_.Swedish]:"Se streamingalternativ",[_.Danish]:"Se streamingmuligheder"},"Commission Disclaimer":{[_.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[_.Swedish]:"Vi kan tjäna en provision om du gör ett köp via dessa länkar. I samarbete med",[_.Danish]:"Vi kan tjene en kommission, hvis du foretager et køb via disse links. I samarbejde med"},And:{[_.English]:"and",[_.Swedish]:"och",[_.Danish]:"og"},Minutes:{[_.English]:"minutes",[_.Swedish]:"minuter",[_.Danish]:"minutter"},"Type: movie":{[_.English]:"Movie",[_.Swedish]:"Film",[_.Danish]:"Film"},"Type: series":{[_.English]:"Series",[_.Swedish]:"Serie",[_.Danish]:"Serie"},Stream:{[_.English]:"Stream",[_.Swedish]:"Streama",[_.Danish]:"Stream"},Buy:{[_.English]:"Buy",[_.Swedish]:"Köp",[_.Danish]:"Køb"},Rent:{[_.English]:"Rent",[_.Swedish]:"Hyra",[_.Danish]:"Lej"},"Rent Or Buy":{[_.English]:"Rent or Buy",[_.Swedish]:"Hyra",[_.Danish]:"Lej eller køb"},Watch:{[_.English]:"Watch",[_.Swedish]:"Titta nu",[_.Danish]:"Se nu"},Share:{[_.English]:"Share",[_.Swedish]:"Dela",[_.Danish]:"Del"},"Copy URL":{[_.English]:"Copy URL",[_.Swedish]:"Kopiera URL",[_.Danish]:"Kopiér URL"},Email:{[_.English]:"Email",[_.Swedish]:"E-post",[_.Danish]:"E-mail"},"Show More":{[_.English]:"Show more",[_.Swedish]:"Visa mer",[_.Danish]:"Vis mere"},Cast:{[_.English]:"Cast",[_.Swedish]:"Rollista",[_.Danish]:"Skuespillere"},"Similar Titles":{[_.English]:"Similar movies & shows",[_.Swedish]:"Liknande filmer och serier",[_.Danish]:"Lignende film og serier"},"Watch Trailer":{[_.English]:"Watch trailer",[_.Swedish]:"Se trailer",[_.Danish]:"Se trailer"},All:{[_.English]:"All",[_.Swedish]:"Alla",[_.Danish]:"Alle"},Unscripted:{[_.English]:"Unscripted",[_.Swedish]:"Oscripterat",[_.Danish]:"Umanuskriptet"},Independent:{[_.English]:"Independent",[_.Swedish]:"Indie",[_.Danish]:"Indie"},"Game Show":{[_.English]:"Game Show",[_.Swedish]:"Gameshow",[_.Danish]:"Quizshow"},"Film Noir":{[_.English]:"Film Noir",[_.Swedish]:"Film noir",[_.Danish]:"Film noir"},Entertainment:{[_.English]:"Entertainment",[_.Swedish]:"Underhållning",[_.Danish]:"Underholdning"},News:{[_.English]:"News",[_.Swedish]:"Nyheter",[_.Danish]:"Nyheder"},Short:{[_.English]:"Short",[_.Swedish]:"Kortfilm",[_.Danish]:"Kortfilm"},Bollywood:{[_.English]:"Bollywood",[_.Swedish]:"Bollywood",[_.Danish]:"Bollywood"},Concert:{[_.English]:"Concert",[_.Swedish]:"Konsert",[_.Danish]:"Koncert"},Arthouse:{[_.English]:"Arthouse",[_.Swedish]:"Arthouse",[_.Danish]:"Arthouse"},"Alternate Version":{[_.English]:"Alternate Version",[_.Swedish]:"Alternativ version",[_.Danish]:"Alternativ version"},"Reality TV":{[_.English]:"Reality TV",[_.Swedish]:"Reality-TV",[_.Danish]:"Reality-TV"},Culture:{[_.English]:"Culture",[_.Swedish]:"Kultur",[_.Danish]:"Kultur"},Drama:{[_.English]:"Drama",[_.Swedish]:"Drama",[_.Danish]:"Drama"},Crime:{[_.English]:"Crime",[_.Swedish]:"Kriminal",[_.Danish]:"Krimi"},Western:{[_.English]:"Western",[_.Swedish]:"Western",[_.Danish]:"Western"},Thriller:{[_.English]:"Thriller",[_.Swedish]:"Thriller",[_.Danish]:"Thriller"},Animation:{[_.English]:"Animation",[_.Swedish]:"Animerat",[_.Danish]:"Animation"},Mystery:{[_.English]:"Mystery",[_.Swedish]:"Mysterium",[_.Danish]:"Mysterium"},Science:{[_.English]:"Science",[_.Swedish]:"Vetenskap",[_.Danish]:"Videnskab"},Nature:{[_.English]:"Nature",[_.Swedish]:"Natur",[_.Danish]:"Natur"},War:{[_.English]:"War",[_.Swedish]:"Krig",[_.Danish]:"Krig"},"Sci-Fi":{[_.English]:"Sci-Fi",[_.Swedish]:"Sci-fi",[_.Danish]:"Sci-fi"},Documentary:{[_.English]:"Documentary",[_.Swedish]:"Dokumentär",[_.Danish]:"Dokumentar"},"Stand-up":{[_.English]:"Stand-up",[_.Swedish]:"Standup",[_.Danish]:"Stand-up"},"Talk Show":{[_.English]:"Talk Show",[_.Swedish]:"Talkshow",[_.Danish]:"Talkshow"},Fantasy:{[_.English]:"Fantasy",[_.Swedish]:"Fantasy",[_.Danish]:"Fantasy"},History:{[_.English]:"History",[_.Swedish]:"Historia",[_.Danish]:"Historie"},Adventure:{[_.English]:"Adventure",[_.Swedish]:"Äventyr",[_.Danish]:"Eventyr"},Action:{[_.English]:"Action",[_.Swedish]:"Action",[_.Danish]:"Action"},Horror:{[_.English]:"Horror",[_.Swedish]:"Skräck",[_.Danish]:"Gyser"},Comedy:{[_.English]:"Comedy",[_.Swedish]:"Komedi",[_.Danish]:"Komedie"},Biography:{[_.English]:"Biography",[_.Swedish]:"Biografi",[_.Danish]:"Biografi"},Music:{[_.English]:"Music",[_.Swedish]:"Musik",[_.Danish]:"Musik"},Sport:{[_.English]:"Sport",[_.Swedish]:"Sport",[_.Danish]:"Sport"},Romance:{[_.English]:"Romance",[_.Swedish]:"Romantik",[_.Danish]:"Romantik"},Kids:{[_.English]:"Kids",[_.Swedish]:"Barn",[_.Danish]:"Børn"},Lifestyle:{[_.English]:"Lifestyle",[_.Swedish]:"Livsstil",[_.Danish]:"Livsstil"},Musical:{[_.English]:"Musical",[_.Swedish]:"Musikal",[_.Danish]:"Musical"},Anime:{[_.English]:"Anime",[_.Swedish]:"Anime",[_.Danish]:"Anime"},Family:{[_.English]:"Family",[_.Swedish]:"Familj",[_.Danish]:"Familie"}};function we(e,t=Er()){var i;return((i=vs[e])==null?void 0:i[t])||e}function Er(){var n,a;const e=(n=window.PlayPilotLinkInjections)==null?void 0:n.language,t=Object.values(_);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const i=(a=document.querySelector("html"))==null?void 0:a.getAttribute("lang");if(i){if(t.includes(i))return i;const r=t.find(l=>l.toLowerCase().startsWith(i+"-"));if(r)return r}return _.English}function ps(e,t,i){return e.filter(n=>i.every(a=>n[a]===t[a])).length}function fs(e,t){return t.some(i=>e>=i.start&&e<i.end)}function hs(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}function Kn(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function Ir(e,t,i=[]){var r,l;const n=document.createTreeWalker(t);let a;for(;(a=n.nextNode())&&!((r=a.nodeValue)!=null&&r.includes(e)&&!i.includes(((l=a.parentNode)==null?void 0:l.nodeName)||"")););return a}function Pr(e){const t=e.parentNode;return t?t.nodeName==="A"||!!t.closest("a"):!1}function gs(e,t,i,n){const a=hs(t),r=Kn(t),l=e.slice(0,n),c=e.slice(n),d=/[-/\\^$*+?.()|[\]{}]/g,s=new RegExp(`${r.replace(d,"\\$&")}|${a.replace(d,"\\$&")}`),u=c.replace(s,i);return l+u}function ms(e,t,i,n){return e.substring(0,i)+t+e.substring(n)}function Qe(e){return Kn(e).toLowerCase().normalize("NFD").replace(new RegExp("\\p{Diacritic}","gu"),"").replace(/[^a-z0-9]+/g,"")}function jr(e,t,i){const a=e.indexOf(t),r=Math.floor((i-t.length)/2);let l=Math.max(0,a-r),c=l+i;c>e.length&&(c=e.length,l=Math.max(0,c-i));let d=e.slice(l,c).trim();return l>0&&(d="…"+d),c<e.length&&(d+="…"),d}function zr(e,t,i){const n=e.nodeType===Node.TEXT_NODE&&e.parentNode?e.parentElement:e;if(!n||!e.textContent)return{before:"",after:""};const a=Math.max(n.innerText.indexOf(e.textContent),0),r=qr(n.innerText.slice(0,t+a)),l=n.innerText.slice(i+a),c=qr(Cr(r,2)),d=Cr(l,2);return{before:c,after:d}}function qr(e){return e.split("").reverse().join("")}function Cr(e,t=1){const i=e.match(/[^\s]+/g);return i?i.slice(0,t).join(" ").replace(/[.,!?;:]+$/u,""):""}function Xi(e,t){let i=0,n=0;for(;(n=e.indexOf(t,n))!==-1;)i++,n+=t.length;return i}function ys(e,t,i){const n=[];let a=0;for(;a<=e.length;){const r=t?e.indexOf(t,a):a;if(r===-1&&t)break;const l=t?r+t.length:r,c=i?e.indexOf(i,l):e.length;if(i&&c===-1)break;const d=e.slice(l,c);n.push({match:d,index:l}),a=i?c+i.length:e.length+1}return n}function _s(e,t,i,n){const r=ys(e,i,n).filter(({match:c})=>Kn(c).includes(t));return r.length?r.reduce((c,d)=>!c||d.match.length<c.match.length?d:c):null}function bs(e){var t,i;return{leadingSpaces:((t=e.match(/^\s*/))==null?void 0:t[0].length)||0,trailingSpaces:((i=e.match(/\s*$/))==null?void 0:i[0].length)||0}}function ks(e,t,i=0){const n=t.innerHTML,a=[],r=xs(t);let l=n.indexOf(e);for(;l!==-1;)fs(l,r)&&a.push(l),l=n.indexOf(e,l+e.length);return a[i]??-1}function xs(e){const t=[],i=e.innerHTML;let n=!1,a=!1,r=!1,l=0;for(let c=0;c<i.length;c++){const d=i[c];if(!a&&!n&&d==="<"){n=!0,r&&(t.push({start:l,end:c}),r=!1);continue}if(n&&d==='"'&&(a=!a),n&&!a&&d===">"){n=!1;continue}!n&&!a&&!r&&(l=c,r=!0)}return!t.length&&e.textContent.length&&t.push({start:l,end:e.innerHTML.length}),t}function ws(e,t){const i=[" ",".",",","<",">"];try{const n=i.map(c=>"\\"+c).join(""),a=e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),r=new RegExp(`([${n}])${a}([${n}])`),l=t.match(r);return l!=null&&l.index?l.index+1:-1}catch{return-1}}function Ar(e){return e.ctrlKey||e.metaKey||e.button!==0}async function Ss(){if(!Tt("ads"))return[];const e=St();if(!e)throw new Error("No token was provided");try{return await ht(`/ads/browse/?api-token=${e}`)}catch(t){throw ve(ue.AdsFetchFailed,null,{status:t.status}),t}}function bi(e){var t;return Tt("ads")&&(((t=window.PlayPilotLinkInjections)==null?void 0:t.ads)||[]).find(i=>i.campaign_format===e)||null}function Ts(e){return{sid:"",name:e.content.header||"",url:e.cta.url||"",logo_url:e.cta.image||"",highlighted:!0,cta_text:e.content.subheader,action_text:e.cta.header,extra_info:{category:"SVOD"}}}const Es=e=>e;function Zn(e){const t=e-1;return t*t*t+1}function Lr(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function gt(e,{delay:t=0,duration:i=400,easing:n=Es}={}){const a=+getComputedStyle(e).opacity;return{delay:t,duration:i,easing:n,css:r=>`opacity: ${r*a}`}}function ti(e,{delay:t=0,duration:i=400,easing:n=Zn,x:a=0,y:r=0,opacity:l=0}={}){const c=getComputedStyle(e),d=+c.opacity,s=c.transform==="none"?"":c.transform,u=d*(1-l),[v,p]=Lr(a),[h,y]=Lr(r);return{delay:t,duration:i,easing:n,css:(f,b)=>`
|
|
3
3
|
transform: ${s} translate(${(1-f)*v}${p}, ${(1-f)*h}${y});
|
|
4
4
|
opacity: ${d-u*b}`}}function ki(e,{delay:t=0,duration:i=400,easing:n=Zn,axis:a="y"}={}){const r=getComputedStyle(e),l=+r.opacity,c=a==="y"?"height":"width",d=parseFloat(r[c]),s=a==="y"?["top","bottom"]:["left","right"],u=s.map(g=>`${g[0].toUpperCase()}${g.slice(1)}`),v=parseFloat(r[`padding${u[0]}`]),p=parseFloat(r[`padding${u[1]}`]),h=parseFloat(r[`margin${u[0]}`]),y=parseFloat(r[`margin${u[1]}`]),f=parseFloat(r[`border${u[0]}Width`]),b=parseFloat(r[`border${u[1]}Width`]);return{delay:t,duration:i,easing:n,css:g=>`overflow: hidden;opacity: ${Math.min(g*20,1)*l};${c}: ${g*d}px;padding-${s[0]}: ${g*v}px;padding-${s[1]}: ${g*p}px;margin-${s[0]}: ${g*h}px;margin-${s[1]}: ${g*y}px;border-${s[0]}-width: ${g*f}px;border-${s[1]}-width: ${g*b}px;min-${c}: 0`}}function Mr(e,{delay:t=0,duration:i=400,easing:n=Zn,start:a=0,opacity:r=0}={}){const l=getComputedStyle(e),c=+l.opacity,d=l.transform==="none"?"":l.transform,s=1-a,u=c*(1-r);return{delay:t,duration:i,easing:n,css:(v,p)=>`
|
|
5
5
|
transform: ${d} scale(${1-s*p});
|
package/package.json
CHANGED
package/src/lib/api/auth.ts
CHANGED
|
@@ -7,11 +7,6 @@ const cookieName = 'EncryptedToken'
|
|
|
7
7
|
const urlParam = 'articleReplacementEditToken'
|
|
8
8
|
const editorialParam = 'playpilot-editorial-mode'
|
|
9
9
|
|
|
10
|
-
/**
|
|
11
|
-
* Authorize the user
|
|
12
|
-
* @param href The current window.location.href
|
|
13
|
-
* @returns Whether the user is authorized or not
|
|
14
|
-
*/
|
|
15
10
|
export async function authorize(href: string = window.location.href): Promise<boolean> {
|
|
16
11
|
try {
|
|
17
12
|
const apiToken = getApiToken()
|
|
@@ -41,11 +36,6 @@ export async function authorize(href: string = window.location.href): Promise<bo
|
|
|
41
36
|
return false
|
|
42
37
|
}
|
|
43
38
|
|
|
44
|
-
/**
|
|
45
|
-
* Get the auth token from the URL, a stored cookie, or from the window object
|
|
46
|
-
* @param [href] URL that the param is extracted from
|
|
47
|
-
* @returns Auth token
|
|
48
|
-
*/
|
|
49
39
|
export function getAuthToken(href: string = ''): string {
|
|
50
40
|
// @ts-ignore
|
|
51
41
|
const configToken = window?.PlayPilotLinkInjections?.editorial_token
|
|
@@ -60,10 +50,6 @@ export function getAuthToken(href: string = ''): string {
|
|
|
60
50
|
return cookieToken || ''
|
|
61
51
|
}
|
|
62
52
|
|
|
63
|
-
/**
|
|
64
|
-
* Set auth cookie equal to given value
|
|
65
|
-
* @param value The auth token value
|
|
66
|
-
*/
|
|
67
53
|
function setAuthCookie(value: string): void {
|
|
68
54
|
const time = new Date()
|
|
69
55
|
const days = 30
|
|
@@ -78,10 +64,6 @@ export function removeAuthCookie(): void {
|
|
|
78
64
|
document.cookie = cookieName + '=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/'
|
|
79
65
|
}
|
|
80
66
|
|
|
81
|
-
/**
|
|
82
|
-
* Returns whether or not the user has requested editorial mode to be enabled.
|
|
83
|
-
* This won't enable editorial mode by itself, as that also requires authentication.
|
|
84
|
-
*/
|
|
85
67
|
export function isEditorialModeEnabled(): boolean {
|
|
86
68
|
const windowToken = window?.PlayPilotLinkInjections?.editorial_token
|
|
87
69
|
return new URLSearchParams(window.location.search).get(editorialParam) === 'true' || !!windowToken
|
|
@@ -11,11 +11,6 @@ let pollTimeout: ReturnType<typeof setTimeout> | null = null
|
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Fetch link injections for a URL. This will be either a POST or a GET request depending on whether on not the AI should run.
|
|
14
|
-
* @param pageText Text content of the article
|
|
15
|
-
* @param options
|
|
16
|
-
* @param [options.url] URL of the given article
|
|
17
|
-
* @param [options.hash] unique key to identify the HTML
|
|
18
|
-
* @param [options.params] Any rest params to include in the request body
|
|
19
14
|
*/
|
|
20
15
|
export async function fetchLinkInjections(
|
|
21
16
|
pageText: string | null,
|
|
@@ -41,7 +36,6 @@ export async function fetchLinkInjections(
|
|
|
41
36
|
params.metadata = getPageMetaData()
|
|
42
37
|
}
|
|
43
38
|
|
|
44
|
-
// Always add the given URL, this is used to match the article to the API record
|
|
45
39
|
params.url = url
|
|
46
40
|
|
|
47
41
|
response = await api<LinkInjectionResponse>(apiUrl, {
|
|
@@ -77,11 +71,6 @@ export async function pollLinkInjections(
|
|
|
77
71
|
// This is mostly handy during HMR, but also during navigation changes
|
|
78
72
|
if (pollTimeout) clearTimeout(pollTimeout)
|
|
79
73
|
|
|
80
|
-
/**
|
|
81
|
-
* Polls the endpoint recursively until it is ready.
|
|
82
|
-
* @param resolve Injections are ready and returned as expected
|
|
83
|
-
* @param reject Injections are not yet ready
|
|
84
|
-
*/
|
|
85
74
|
const poll = async (resolve: Function, reject: Function): Promise<void> => {
|
|
86
75
|
let response
|
|
87
76
|
try {
|
|
@@ -134,7 +123,6 @@ export async function pollLinkInjections(
|
|
|
134
123
|
export async function runAiBasedOnResponse(pageText: string, response: LinkInjectionResponse): Promise<LinkInjectionResponse> {
|
|
135
124
|
if (!pageText) return response
|
|
136
125
|
if (!response.ai_enabled) return response
|
|
137
|
-
// Stop if ai is already running, no need to run it while it's already running
|
|
138
126
|
if (response.ai_running) return response
|
|
139
127
|
|
|
140
128
|
const currentModifiedTime = getPageMetaData().content_modified_time
|
|
@@ -149,7 +137,7 @@ export async function runAiBasedOnResponse(pageText: string, response: LinkInjec
|
|
|
149
137
|
export async function saveLinkInjections(linkInjections: LinkInjection[], pageText: string): Promise<LinkInjection[]> {
|
|
150
138
|
const selector = window.PlayPilotLinkInjections?.selector
|
|
151
139
|
|
|
152
|
-
// Only save manual injections, AI injections should be left intact
|
|
140
|
+
// Only save manual injections, AI injections should be left intact and can't be saved over
|
|
153
141
|
const filteredLinkInjections = linkInjections.filter((i: LinkInjection) => i.manual)
|
|
154
142
|
|
|
155
143
|
const newLinkInjections = filteredLinkInjections.map((linkInjection: LinkInjection) => ({
|
|
@@ -180,7 +168,7 @@ export async function saveLinkInjections(linkInjections: LinkInjection[], pageTe
|
|
|
180
168
|
}
|
|
181
169
|
|
|
182
170
|
/**
|
|
183
|
-
*
|
|
171
|
+
* These are used to identify the links on the page.
|
|
184
172
|
* We can't just use SIDs, as a page might include multiple links of the same title
|
|
185
173
|
*/
|
|
186
174
|
function insertRandomKeys(linkInjections: LinkInjection[]): LinkInjection[] {
|
package/src/lib/api/search.ts
CHANGED
|
@@ -2,9 +2,6 @@ import { getApiToken } from '$lib/token'
|
|
|
2
2
|
import type { TitleData } from '../types/title'
|
|
3
3
|
import { api } from './api'
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Search for movies & shows. Requires valid API token.
|
|
7
|
-
*/
|
|
8
5
|
export async function searchTitles(query: string): Promise<TitleData[]> {
|
|
9
6
|
const apiToken = getApiToken()
|
|
10
7
|
|
package/src/lib/api/session.ts
CHANGED
|
@@ -73,17 +73,10 @@ export function isAllowedToEdit(responseSessionId: string | null, responseSessio
|
|
|
73
73
|
return currentSessionId === responseSessionId
|
|
74
74
|
}
|
|
75
75
|
|
|
76
|
-
/**
|
|
77
|
-
* The user's session id is stored in local storage. Of it is not present we generate a new id and store it,
|
|
78
|
-
* returning it immediately.
|
|
79
|
-
*/
|
|
80
76
|
export function getSessionId(): string {
|
|
81
77
|
return sessionStorage.getItem(sessionKey) || setSessionId()
|
|
82
78
|
}
|
|
83
79
|
|
|
84
|
-
/**
|
|
85
|
-
* Store a session id in local storage. If the id is already present in local storage we use that instead.
|
|
86
|
-
*/
|
|
87
80
|
export function setSessionId(): string {
|
|
88
81
|
const id = sessionStorage.getItem(sessionKey) || generateRandomHash()
|
|
89
82
|
sessionStorage.setItem(sessionKey, id)
|
package/src/lib/array.ts
CHANGED
package/src/lib/crawler.ts
CHANGED
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Detect whether the user is a bot or crawler simply by their user agent.
|
|
3
|
-
*/
|
|
4
1
|
export function isCrawler(): boolean {
|
|
5
2
|
const userAgent = navigator.userAgent.toLowerCase()
|
|
6
3
|
return /bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(userAgent)
|
package/src/lib/event.ts
CHANGED
package/src/lib/html.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* For instance & -> &
|
|
3
3
|
*/
|
|
4
4
|
export function encodeHtmlEntities(string: string): string {
|
|
5
5
|
const tempElement = document.createElement('div')
|
|
@@ -9,7 +9,7 @@ export function encodeHtmlEntities(string: string): string {
|
|
|
9
9
|
}
|
|
10
10
|
|
|
11
11
|
/**
|
|
12
|
-
*
|
|
12
|
+
* For instance & -> &
|
|
13
13
|
*/
|
|
14
14
|
export function decodeHtmlEntities(string: string): string {
|
|
15
15
|
const tempElement = document.createElement('div')
|
package/src/lib/image.ts
CHANGED
|
@@ -10,9 +10,6 @@ export function removeImageUrlPrefix(url: string | null): string | null {
|
|
|
10
10
|
return url.replace('/src/img', '')
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
/**
|
|
14
|
-
* Creates a CDN image URL from a UUID.
|
|
15
|
-
*/
|
|
16
13
|
export function imageFromUUID(uuid: string | null, dimensions: (typeof ImageDimensions)[keyof typeof ImageDimensions] | null = null): string {
|
|
17
14
|
if (!uuid?.length) return ''
|
|
18
15
|
|
package/src/lib/injection.ts
CHANGED
|
@@ -420,9 +420,6 @@ function addLinkInjectionEventListeners(injections: LinkInjection[]): void {
|
|
|
420
420
|
})
|
|
421
421
|
}
|
|
422
422
|
|
|
423
|
-
/**
|
|
424
|
-
* Clear link injections from the page
|
|
425
|
-
*/
|
|
426
423
|
export function clearLinkInjections(): void {
|
|
427
424
|
const elements = document.querySelectorAll(keySelector)
|
|
428
425
|
elements.forEach((element) => clearLinkInjection(element.getAttribute(keyDataAttribute) || ''))
|
|
@@ -464,16 +461,10 @@ export function removePlayPilotTitleLinks(): void {
|
|
|
464
461
|
})
|
|
465
462
|
}
|
|
466
463
|
|
|
467
|
-
/**
|
|
468
|
-
* Merge different injection types
|
|
469
|
-
*/
|
|
470
464
|
export function mergeInjectionTypes({ aiInjections, manualInjections }: LinkInjectionTypes): LinkInjection[] {
|
|
471
465
|
return [...manualInjections.map(i => ({ ...i, manual: true })), ...aiInjections]
|
|
472
466
|
}
|
|
473
467
|
|
|
474
|
-
/**
|
|
475
|
-
* Separate an array of flat injections into ai and manual arrays.
|
|
476
|
-
*/
|
|
477
468
|
export function separateLinkInjectionTypes(injections: LinkInjection[]): LinkInjectionTypes {
|
|
478
469
|
return {
|
|
479
470
|
aiInjections: injections.filter(i => !i.manual),
|
|
@@ -481,9 +472,6 @@ export function separateLinkInjectionTypes(injections: LinkInjection[]): LinkInj
|
|
|
481
472
|
}
|
|
482
473
|
}
|
|
483
474
|
|
|
484
|
-
/**
|
|
485
|
-
* Returns whether or not an injection would be valid for any sort of injection, text or after_article
|
|
486
|
-
*/
|
|
487
475
|
export function isValidInjection(injection: LinkInjection): boolean {
|
|
488
476
|
return !injection.inactive && !injection.removed && !injection.duplicate && !!injection.title_details && isValidPlaylinkType(injection)
|
|
489
477
|
}
|
|
@@ -541,18 +529,12 @@ export function sortInjections(injections: LinkInjection[]): LinkInjection[] {
|
|
|
541
529
|
})
|
|
542
530
|
}
|
|
543
531
|
|
|
544
|
-
/**
|
|
545
|
-
* Return whether or not an injection is also available as manual injection
|
|
546
|
-
*/
|
|
547
532
|
export function isAvailableAsManualInjection(injection: LinkInjection, injectionIndex: number, injections: LinkInjection[]): boolean {
|
|
548
533
|
return injections.some((i, index) => {
|
|
549
534
|
return injectionIndex !== index && i.manual && isEquivalentInjection(i, injection)
|
|
550
535
|
})
|
|
551
536
|
}
|
|
552
537
|
|
|
553
|
-
/**
|
|
554
|
-
* Returns whether or not 2 injections match in title and sentence
|
|
555
|
-
*/
|
|
556
538
|
export function isEquivalentInjection(injection1: LinkInjection, injection2: LinkInjection): boolean {
|
|
557
539
|
return injection1.title === injection2.title && cleanPhrase(injection1.sentence) === cleanPhrase(injection2.sentence)
|
|
558
540
|
}
|
package/src/lib/localization.ts
CHANGED
|
@@ -2,9 +2,6 @@ import { translations } from './data/translations'
|
|
|
2
2
|
import { Language } from './enums/Language'
|
|
3
3
|
import type { LanguageCode } from './types/language'
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Super basic implementation to get a string for the given key and language
|
|
7
|
-
*/
|
|
8
5
|
export function t(key: string, language: LanguageCode = getLanguage()): string {
|
|
9
6
|
// @ts-ignore It's fine if it's undefined
|
|
10
7
|
return translations[key]?.[language] || key
|
package/src/lib/meta.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { getLinkInjectionsParentElement } from './injection'
|
|
2
2
|
import type { ArticleMetaData } from './types/injection'
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* Returns meta data to be included with injections.
|
|
6
|
-
*/
|
|
7
4
|
export function getPageMetaData(): ArticleMetaData {
|
|
8
5
|
const parent = getLinkInjectionsParentElement()
|
|
9
6
|
|
|
@@ -62,9 +59,6 @@ export function getPagePublishedTime(parent: HTMLElement): string | null {
|
|
|
62
59
|
return getDatetime(datetime)
|
|
63
60
|
}
|
|
64
61
|
|
|
65
|
-
/**
|
|
66
|
-
* Get datetime string as ISO datetime string
|
|
67
|
-
*/
|
|
68
62
|
export function getDatetime(datetime: string): string | null {
|
|
69
63
|
try {
|
|
70
64
|
return new Date(datetime).toISOString()
|
package/src/lib/modal.ts
CHANGED
|
@@ -10,8 +10,6 @@ import { getPlayPilotWrapperElement, keyDataAttribute, keySelector } from "./inj
|
|
|
10
10
|
import { playFallbackViewTransition } from "./viewTransition"
|
|
11
11
|
import { destroyLinkPopover } from "./popover"
|
|
12
12
|
import { prefersReducedMotion } from "svelte/motion"
|
|
13
|
-
import { trackSplitTestAction } from "./splitTest"
|
|
14
|
-
import { SplitTest } from "./enums/SplitTest"
|
|
15
13
|
|
|
16
14
|
type ModalType = 'title' | 'participant'
|
|
17
15
|
|
package/src/lib/popover.ts
CHANGED
|
@@ -47,9 +47,6 @@ export async function destroyLinkPopover(outro: boolean = true) {
|
|
|
47
47
|
document.querySelectorAll<HTMLElement>('[data-playpilot-title-popover]').forEach(element => element.remove())
|
|
48
48
|
}
|
|
49
49
|
|
|
50
|
-
/**
|
|
51
|
-
* Destroy active the popover when the mouse leaves any popover element
|
|
52
|
-
*/
|
|
53
50
|
export function destroyLinkPopoverOnMouseleave(event: MouseEvent): void {
|
|
54
51
|
if (!activePopoverInsertedComponent) return
|
|
55
52
|
|
package/src/lib/routes.ts
CHANGED
|
@@ -1,9 +1,6 @@
|
|
|
1
1
|
import { playPilotBaseUrl } from "./constants"
|
|
2
2
|
import type { TitleData } from "./types/title"
|
|
3
3
|
|
|
4
|
-
/**
|
|
5
|
-
* @returns Full url to PlayPilot page for the given title
|
|
6
|
-
*/
|
|
7
4
|
export function titleUrl(title: TitleData): string {
|
|
8
5
|
return `${playPilotBaseUrl}/${title.type}/${title.slug}/`
|
|
9
6
|
}
|
package/src/lib/selection.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
2
|
+
* The returned index will be exclusing any leading or trailing spaces. We contain it to actual phrases.
|
|
3
3
|
*/
|
|
4
4
|
export function getIndexOfSelection(selection: Selection, node: Node | null = selection.anchorNode): { start: number, end: number } {
|
|
5
5
|
if (!selection.anchorNode || !node) return { start: -1, end: -1 }
|
package/src/lib/splitTest.ts
CHANGED
|
@@ -54,8 +54,7 @@ export function trackSplitTestView(test: SplitTest): void {
|
|
|
54
54
|
}
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* @param action
|
|
58
|
-
* but will often be as simple as 'click'. Could be any string, though. Whatever fits the use case.
|
|
57
|
+
* @param action This can be just about anything, but will often be as simple as 'click'. Could be any string, though. Whatever fits the use case.
|
|
59
58
|
*/
|
|
60
59
|
export function trackSplitTestAction(test: SplitTest, action: string): void {
|
|
61
60
|
const variant = getSplitTestVariantName(test)
|
package/src/lib/text.ts
CHANGED
|
@@ -20,9 +20,6 @@ export function findTextNodeContaining(text: string, element: HTMLElement, ignor
|
|
|
20
20
|
return node
|
|
21
21
|
}
|
|
22
22
|
|
|
23
|
-
/**
|
|
24
|
-
* Returns whether or not the node itself is a link or is inside of a link tag.
|
|
25
|
-
*/
|
|
26
23
|
export function isNodeInLink(node: Node): boolean {
|
|
27
24
|
const parentNode = node.parentNode as HTMLElement | null
|
|
28
25
|
|
|
@@ -55,9 +52,6 @@ export function replaceBetween(text: string, replacement: string, startIndex: nu
|
|
|
55
52
|
return text.substring(0, startIndex) + replacement + text.substring(endIndex)
|
|
56
53
|
}
|
|
57
54
|
|
|
58
|
-
/**
|
|
59
|
-
* Returns a string for most consistent string comparisons, decoding Html symbols and removing spaces.
|
|
60
|
-
*/
|
|
61
55
|
export function cleanPhrase(phrase: string): string {
|
|
62
56
|
return decodeHtmlEntities(phrase)
|
|
63
57
|
.toLowerCase()
|
|
@@ -117,7 +111,7 @@ export function reverseString(string: string): string {
|
|
|
117
111
|
}
|
|
118
112
|
|
|
119
113
|
/**
|
|
120
|
-
*
|
|
114
|
+
* Only returns full words, but can contain special characters like &, commas, period, etc.
|
|
121
115
|
*/
|
|
122
116
|
export function getFirstNumberOfWordsInString(sentence: string, numberOfWords = 1): string {
|
|
123
117
|
const match = sentence.match(/[^\s]+/g)
|
|
@@ -190,10 +184,6 @@ export function getNumberOfLeadingAndTrailingSpaces(text: string): { leadingSpac
|
|
|
190
184
|
}
|
|
191
185
|
}
|
|
192
186
|
|
|
193
|
-
/**
|
|
194
|
-
* Get the index of a phrase inside of an element based on a specific word boundary. Returns either the first match
|
|
195
|
-
* or the index of the given occurrence.
|
|
196
|
-
*/
|
|
197
187
|
export function getIndexOfPhraseInElement(phrase: string, element: Element, occurrence = 0): number {
|
|
198
188
|
const sentence = element.innerHTML
|
|
199
189
|
const matches = []
|
|
@@ -239,7 +229,6 @@ export function getRangesOfTextNodesInElement(element: Element): Range[] {
|
|
|
239
229
|
continue
|
|
240
230
|
}
|
|
241
231
|
|
|
242
|
-
|
|
243
232
|
// We are inside of an element and a qoute was given, signaling that we're either opening or closing and attribute.
|
|
244
233
|
// We need to keep track of this in case an attribute value contains ">" or "<"
|
|
245
234
|
if (isInsideElement && character === '"') isInsideAttribute = !isInsideAttribute
|
|
@@ -265,9 +254,6 @@ export function getRangesOfTextNodesInElement(element: Element): Range[] {
|
|
|
265
254
|
return ranges
|
|
266
255
|
}
|
|
267
256
|
|
|
268
|
-
/**
|
|
269
|
-
* Attempt to find a phrase inside a word boundary, only matching phrases between given characters.
|
|
270
|
-
*/
|
|
271
257
|
export function getIndexOfPhraseInBoundary(phrase: string, text: string): number {
|
|
272
258
|
const boundaryCharacters = [' ', '.', ',', '<', '>']
|
|
273
259
|
|
package/src/lib/tracking.ts
CHANGED
|
@@ -35,8 +35,8 @@ export async function track(event: string, title: TitleData | null = null, paylo
|
|
|
35
35
|
|
|
36
36
|
payload.version = __SCRIPT_VERSION__
|
|
37
37
|
payload.url = getFullUrlPath()
|
|
38
|
-
payload.organization_sid = window.PlayPilotLinkInjections?.organization_sid
|
|
39
|
-
payload.domain_sid = window.PlayPilotLinkInjections?.domain_sid
|
|
38
|
+
payload.organization_sid = window.PlayPilotLinkInjections?.organization_sid || 'undefined'
|
|
39
|
+
payload.domain_sid = window.PlayPilotLinkInjections?.domain_sid || 'undefined'
|
|
40
40
|
payload.device = {
|
|
41
41
|
type: window.innerWidth > mobileBreakpoint ? 'desktop' : 'mobile',
|
|
42
42
|
width: window.innerWidth,
|
package/src/routes/+page.svelte
CHANGED
|
@@ -9,8 +9,6 @@
|
|
|
9
9
|
import { fetchAds } from '$lib/api/ads'
|
|
10
10
|
import { fetchConfig } from '$lib/api/config'
|
|
11
11
|
import { authorize, getAuthToken, isEditorialModeEnabled, removeAuthCookie, setEditorialParamInUrl } from '$lib/api/auth'
|
|
12
|
-
import { getSplitTestVariantName } from '$lib/splitTest'
|
|
13
|
-
import { SplitTest } from '$lib/enums/SplitTest'
|
|
14
12
|
import type { LinkInjectionResponse, LinkInjection, LinkInjectionTypes } from '$lib/types/injection'
|
|
15
13
|
import Editor from './components/Editorial/Editor.svelte'
|
|
16
14
|
import EditorTrigger from './components/Editorial/EditorTrigger.svelte'
|
|
@@ -36,10 +34,8 @@
|
|
|
36
34
|
|
|
37
35
|
const pageText = $derived(getPageText(elements))
|
|
38
36
|
|
|
39
|
-
// Store initializing promise for later, we'll need that to be awaited after the user has given or refused consent.
|
|
40
37
|
const initializePromise = initialize()
|
|
41
38
|
|
|
42
|
-
// Rerender link injections when linkInjections change. This is only relevant for editiorial mode.
|
|
43
39
|
$effect(() => {
|
|
44
40
|
if (isEditorialMode && !loading) rerender()
|
|
45
41
|
})
|
|
@@ -73,7 +69,6 @@
|
|
|
73
69
|
|
|
74
70
|
window.PlayPilotLinkInjections.config = config
|
|
75
71
|
|
|
76
|
-
// If the URL was marked as being excluded in the config, we stop injections here.
|
|
77
72
|
isUrlExcluded = !!(config?.exclude_urls_pattern && url.match(new RegExp(config.exclude_urls_pattern)))
|
|
78
73
|
if (isUrlExcluded) return
|
|
79
74
|
|
|
@@ -81,7 +76,7 @@
|
|
|
81
76
|
|
|
82
77
|
setElements(config?.html_selector || '', config?.exclude_elements_selector || '')
|
|
83
78
|
} catch(error) {
|
|
84
|
-
// We
|
|
79
|
+
// We return if the config did not get fetched properly, as we can't determine what should and should
|
|
85
80
|
// get injected without it.
|
|
86
81
|
track(TrackingEvent.FetchingConfigFailed)
|
|
87
82
|
console.error('TPI Config failed to fetch', error)
|
|
@@ -99,16 +94,11 @@
|
|
|
99
94
|
|
|
100
95
|
setTrackingSids({ organizationSid: response.organization_sid, domainSid: response.domain_sid })
|
|
101
96
|
|
|
102
|
-
// We only show results once they are fully processed. We only inject if AI is no longer running, or isn't
|
|
103
|
-
// meant to run to begin with.
|
|
104
97
|
if (!response.ai_running || !response.ai_enabled) {
|
|
105
98
|
inject({ aiInjections, manualInjections })
|
|
106
99
|
return
|
|
107
100
|
}
|
|
108
101
|
|
|
109
|
-
// A response was previous returned, but injections were still being generated in the backend.
|
|
110
|
-
// With this second request we wait until AI links are ready. We only do this in editorial
|
|
111
|
-
// so as not to suddenly insert new links while a user is reading the article.
|
|
112
102
|
if (!isEditorialMode || isCrawler()) return
|
|
113
103
|
|
|
114
104
|
response = await pollLinkInjections(pageText, { requireCompletedResult: true, onpoll: (update) => response = update })
|
|
@@ -133,8 +123,6 @@
|
|
|
133
123
|
}
|
|
134
124
|
|
|
135
125
|
function inject(injections: LinkInjectionTypes = { aiInjections, manualInjections }): void {
|
|
136
|
-
// Get filtered injections as they are shown on the page.
|
|
137
|
-
// Only update state if it they are different from current injections.
|
|
138
126
|
const filteredInjections = injectLinksInDocument(elements, injections)
|
|
139
127
|
|
|
140
128
|
if (JSON.stringify(filteredInjections) !== JSON.stringify(linkInjections)) {
|
|
@@ -104,15 +104,13 @@ describe('$lib/tracking', () => {
|
|
|
104
104
|
)
|
|
105
105
|
})
|
|
106
106
|
|
|
107
|
-
it('Should include organization sid
|
|
108
|
-
window.PlayPilotLinkInjections.organization_sid = 'some-organization'
|
|
109
|
-
|
|
107
|
+
it('Should include undefined organization and domain sid if not given', () => {
|
|
110
108
|
track('Some event')
|
|
111
109
|
|
|
112
110
|
expect(global.fetch).toHaveBeenCalledWith(
|
|
113
111
|
expect.any(String),
|
|
114
112
|
expect.objectContaining({
|
|
115
|
-
body: expect.stringContaining('
|
|
113
|
+
body: expect.stringContaining('"organization_sid":"undefined","domain_sid":"undefined"'),
|
|
116
114
|
}),
|
|
117
115
|
)
|
|
118
116
|
})
|