@playpilot/tpi 3.3.0-beta.1 → 3.3.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,3 @@
1
- (() => {
2
1
  (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(`@import"https://fonts.googleapis.com/css?family=Poppins:400,600,700";.popover.svelte-qkpa3e{--offset: 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)));z-index:2147483647}.popover.svelte-qkpa3e svg{fill:none}.popover.flip.svelte-qkpa3e{top:auto;bottom:calc(var(--offset) + 1px);transform:translateY(calc(100% + var(--offset)))}.dialog.svelte-qkpa3e{cursor:default;position:relative;border-radius:var(--playpilot-popover-border-radius, 16px);background:var(--playpilot-popover-background, var(--playpilot-light));box-shadow:var(--playpilot-popover-shadow, var(--playpilot-shadow-large));max-height:min(var(--max-height),560px);scrollbar-width:thin;overflow-y:overlay;overflow-x:hidden}.genre.svelte-13nhocm{display:flex;flex-wrap:wrap;background:var(--playpilot-genre-background, var(--playpilot-content));border:0;border-radius:var(--playpilot-genre-border-radius, 16px);padding:4px 8px;font-family:var(--playpilot-genre-font-family, inherit);font-weight:var(--playpilot-playlink-font-weight, inherit);text-transform:var(--playpilot-genre-text-transform, none);color:var(--playpilot-genre-text-color, var(--playpilot-text-color-alt));line-height:1;font-size:inherit}.genre.svelte-13nhocm:is(button:where(.svelte-13nhocm)):hover{cursor:pointer;filter:var(--playpilot-genre-hover-filter, brightness(1.1));background:var(--playpilot-genre-hover-background, var(--playpilot-genre-background, var(--playpilot-content)))}img.svelte-1itidbd{border-radius:8px;background:#00000040}@media (min-width: 640px){img.svelte-1itidbd{height:40px;width:40px}}.heading.svelte-1itidbd{margin:0;color:var(--playpilot-playlinks-title-color, var(--playpilot-text-color-alt));font-family:var(--playpilot-playlinks-title-font-family, inherit);font-weight:var(--playpilot-playlinks-title-font-weight, lighter);font-size:var(--playpilot-playlinks-title-font-size, 14px);line-height:normal}.playlinks.svelte-1itidbd{box-sizing:border-box;display:flex;gap:8px;width:calc(100% + 32px);padding:8px 16px;margin:0 -16px;overflow:auto;scrollbar-width:none}.playlinks.svelte-1itidbd::-webkit-scrollbar{display:none}.list.svelte-1itidbd{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}@media (min-width: 640px){.list.svelte-1itidbd img:where(.svelte-1itidbd){height:32px;width:32px}}.playlink.svelte-1itidbd{display:flex;align-items:center;gap:12px;padding:12px;background:var(--playpilot-playlink-background, var(--playpilot-lighter));box-shadow:var(--playpilot-playlink-shadow, var(--playpilot-shadow));border-radius:var(--playpilot-playlink-border-radius, 8px);color:var(--playpilot-playlink-text-color, var(--playpilot-text-color-alt))!important;font-weight:var(--playpilot-playlink-font-weight, inherit);font-style:var(--playpilot-playlink-font-style, normal);text-decoration:none!important;white-space:nowrap;font-size:12px;line-height:1}.playlink.svelte-1itidbd:hover,.playlink.svelte-1itidbd:active{filter:var(--playpilot-playlink-hover-filter, brightness(1.1));background:var(--playpilot-playlink-hover-background, var(--playpilot-playlink-background, var(--playpilot-lighter)))!important;text-decoration:none!important}.playlink.svelte-1itidbd img:where(.svelte-1itidbd){margin:0}.list.svelte-1itidbd .playlink:where(.svelte-1itidbd){padding:8px;gap:8px}.name.svelte-1itidbd{font-weight:var(--playpilot-playlink-font-weight, inherit);font-family:var(--playpilot-playlink-font-family, inherit)}.category.svelte-1itidbd{margin-top:8px;font-size:10px;color:var(--playpilot-playlink-category-text-color, var(--playpilot-text-color));font-weight:var(--playpilot-playlink-category-font-weight, inherit);font-family:var(--playpilot-playlink-category-font-family, inherit)}.empty.svelte-1itidbd{white-space:initial;line-height:1.35}.arrow.svelte-1itidbd{margin-left:auto;padding:0 8px}.paragraph.svelte-1u3je71{display:block;margin:16px 0 0}.show-more.svelte-1u3je71{display:inline;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:0;background:transparent;border:0;color:var(--playpilot-read-more-text-color, var(--playpilot-text-color-alt));font-weight:var(--playpilot-read-more-font-weight, inherit);font-family:inherit;font-size:inherit}.show-more.svelte-1u3je71:hover{text-decoration:underline;text-decoration-thickness:2px;cursor:pointer}h2.svelte-15oguej{margin:24px 0 16px;font-size:var(--playpilot-cast-title-font-size, 18px);line-height:normal;font-weight:inherit;color:var(--playpilot-cast-title-text-color, var(--playpilot-text-color))}.participants.svelte-15oguej{display:flex;gap:16px;width:calc(100% + 32px);padding:0 16px;margin:0 -16px;overflow:auto;white-space:nowrap;scrollbar-width:none}.participants.svelte-15oguej::-webkit-scrollbar{display:none}.character.svelte-15oguej{color:var(--playpilot-cast-character-text-color, var(--playpilot-text-color-alt));font-style:italic}.heading.svelte-16h1v3j{margin:8px 0;color:var(--playpilot-detail-title-text-color, #fff);font-family:var(--playpilot-detail-title-font-family, inherit);font-weight:var(--playpilot-detail-title-font-weight, lighter);font-size:var(--playpilot-detail-title-font-size, 24px);line-height:normal;font-style:var(--playpilot-detail-title-font-style, normal)}.small.svelte-16h1v3j .heading:where(.svelte-16h1v3j){font-size:var(--playpilot-detail-title-font-size-small, 18px)}.compact.svelte-16h1v3j .heading:where(.svelte-16h1v3j){margin-top:0}.content.svelte-16h1v3j{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, normal);font-size:var(--playpilot-detail-font-size, 14px);line-height:normal;font-style:normal}.content.small.svelte-16h1v3j{font-size:var(--playpilot-detail-font-size, 12px);line-height:1.45;padding-bottom:8px}.header.svelte-16h1v3j{padding:32px 0 16px;background:transparent}.small.svelte-16h1v3j .header:where(.svelte-16h1v3j){padding-top:16px}.compact.svelte-16h1v3j .header:where(.svelte-16h1v3j){padding:0 0 16px}.top.svelte-16h1v3j{display:flex;justify-content:space-between;align-items:flex-end}.poster.svelte-16h1v3j{display:block;width:72px;margin:0;aspect-ratio:2/3;border-radius:var(--playpilot-detail-image-border-radius, 8px);background:var(--playpilot-detail-image-background, var(--playpilot-content));box-shadow:var(--playpilot-detail-image-shadow, var(--playpilot-shadow));opacity:0}.poster.loaded.svelte-16h1v3j{opacity:1}.info.svelte-16h1v3j{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}.small.svelte-16h1v3j .info:where(.svelte-16h1v3j){gap:8px 12px}.imdb.svelte-16h1v3j{display:flex;align-items:center;gap:4px}.imdb.svelte-16h1v3j svg{margin-top:-2px}.small.svelte-16h1v3j .imdb:where(.svelte-16h1v3j) svg{margin-top:0;width:12px;height:12px}.background.svelte-16h1v3j{position:absolute;top:0;left:0;width:100%;height:192px;overflow:hidden;background:var(--playpilot-detail-background, var(--playpilot-lighter));z-index:0}.background.svelte-16h1v3j: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-16h1v3j img:where(.svelte-16h1v3j){width:100%;height:100%;object-fit:cover;object-position:center;margin:0;opacity:0;z-index:0}.background.svelte-16h1v3j img.loaded:where(.svelte-16h1v3j){opacity:1}.background.svelte-16h1v3j img.blur:where(.svelte-16h1v3j){opacity:.5;transform:scale(1.1);filter:blur(.75rem)}.faded.svelte-16h1v3j{opacity:.15}.capitalize.svelte-16h1v3j{text-transform:capitalize}.truncate.svelte-16h1v3j{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}p.svelte-pfvkex{font-weight:var(--playpilot-after-article-text-font-weight, normal)}span.svelte-pfvkex{display:block}button.svelte-pfvkex{-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, 16px);color:var(--playpilot-after-article-button-text-color, inherit);font-weight:var(--playpilot-after-article-button-font-weight, bold);font-size:var(--playpilot-after-article-button-font-size, 16px);cursor:pointer;transition:all 50ms}button.svelte-pfvkex:hover{background:var(--playpilot-after-article-button-background-hover, transparent);border:var(--playpilot-after-article-button-border-hover, 2px solid currentColor);color:var(--playpilot-after-article-button-text-color-hover, inherit);transform:var(--playpilot-after-article-button-transform-hover, scale(1.02))}.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)}.modal.svelte-wrncjp{z-index:2147483647;position:fixed;display:flex;justify-content:center;align-items:flex-start;top:0;left:0;width:100%;height:100%;background:var(--playpilot-detail-backdrop, rgba(0, 0, 0, .65))}@media (min-width: 600px){.modal.svelte-wrncjp{padding:32px}}.modal.svelte-wrncjp svg{fill:none}.dialog.svelte-wrncjp{position:relative;width:100%;max-width:600px;max-height:80vh;overflow:auto;margin-top:auto;border-radius:var(--playpilot-detail-border-radius, 16px 16px 0 0);background:var(--playpilot-detail-background, var(--playpilot-light))}@media (min-width: 600px){.dialog.svelte-wrncjp{margin-top:0;border-radius:var(--playpilot-detail-border-radius, 16px);max-height:100%}}.backdrop.svelte-wrncjp{position:absolute;top:0;right:0;bottom:0;left:0}.close.svelte-wrncjp{--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, .5rem);--playpilot-button-text-color: var(--playpilot-modal-close-button-text-color, var(--playpilot-text-color-alt));z-index:5;position:absolute;top:16px;right:16px}.close.svelte-wrncjp:hover{filter:brightness(1.1)}.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}:root{--playpilot-primary: #fa548a;--playpilot-dark: #101426;--playpilot-light: #1b2743;--playpilot-lighter: #233257;--playpilot-content: #354367;--playpilot-content-light: #4b5b82;--playpilot-green: #53bca0;--playpilot-font-family: "Poppins", sans-serif;--playpilot-text-color: #fff;--playpilot-text-color-alt: #c8d4de;--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-error: #ea5a5a;--playpilot-error-dark: #442533;--playpilot-warning: #f7c74e;--playpilot-warning-dark: #413c23}[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)}.playpilot-link-injections.svelte-4l9ehd *{box-sizing:border-box}.playpilot-link-injections.svelte-4l9ehd .playpilot-link-injections button,.playpilot-link-injections.svelte-4l9ehd .playpilot-link-injections input{transition:outline-offset .1s}.playpilot-link-injections.svelte-4l9ehd .playpilot-link-injections button:focus-visible,.playpilot-link-injections.svelte-4l9ehd .playpilot-link-injections input:focus-visible{outline:2px solid white;outline-offset:2px}
3
2
  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-1vrer3i{width:100%;padding:8px 16px;border:0;border-radius:32px;background:var(--playpilot-light);color:var(--playpilot-text-color-alt);font-size:12px;font-family:var(--playpilot-font-family)}input.svelte-1vrer3i:focus{background:var(--playpilot-lighter);outline:1px solid white}input.svelte-1vrer3i::placeholder{color:var(--playpilot-text-color-alt);opacity:.75}.alert.svelte-18si0a5{padding:8px;border-radius:8px;border:1px solid var(--playpilot-error);background:var(--playpilot-error-dark);font-size:12px}.alert.warning.svelte-18si0a5{border-color:var(--playpilot-warning);background:var(--playpilot-warning-dark)}.alert.svelte-18si0a5 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-1fmy0wh{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:0;border-radius:4px;background:transparent;color:var(--playpilot-text-color-alt)}button.svelte-1fmy0wh:hover{cursor:pointer;color:#fff}.context-menu.svelte-1fmy0wh{position:relative}.content.svelte-1fmy0wh{z-index:1;position:absolute;top:100%;right:0;max-height:80px;max-width:160px;border-radius:8px;background:var(--playpilot-lighter)}.item.svelte-8gd2db{padding:16px 8px;border-bottom:1px solid var(--playpilot-lighter);transition:outline-offset .1s}.item.svelte-8gd2db:hover,.item.highlighted.svelte-8gd2db{border-radius:8px;border-color:transparent;outline:2px solid var(--playpilot-content);outline-offset:1px}.item.highlighted.svelte-8gd2db{outline:2px solid var(--playpilot-primary)}.header.svelte-8gd2db{display:flex;gap:16px;width:100%}.poster.svelte-8gd2db{display:block;width:32px;height:48px;border-radius:4px;background:var(--playpilot-content)}.inactive.svelte-8gd2db .poster:where(.svelte-8gd2db){opacity:.35}.title.svelte-8gd2db{font-size:14px;word-break:break-word}.sentence.svelte-8gd2db{font-size:.7em;line-height:150%;margin-right:-8px;color:var(--playpilot-text-color-alt);opacity:.75}.sentence.svelte-8gd2db em{color:var(--playpilot-text-color);font-weight:700}.expand-sentence.svelte-8gd2db{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-8gd2db:hover{color:var(--playpilot-text-color)}.content.svelte-8gd2db{padding-top:8px}.inactive.svelte-8gd2db .info:where(.svelte-8gd2db){opacity:.35}.context-menu.svelte-8gd2db{margin:0 -4px 0 auto}.context-menu-action.svelte-8gd2db{-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;padding:16px;font-family:inherit;color:var(--playpilot-text-color-alt);cursor:pointer}.context-menu-action.svelte-8gd2db:hover{color:var(--playpilot-text-color)}.actions.svelte-8gd2db{display:flex;align-items:center;justify-content:space-between;width:100%}.expand.svelte-8gd2db{-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-8gd2db:hover{filter:brightness(1.2)}.expanded.svelte-8gd2db{padding-top:16px}.type-select.svelte-8gd2db{margin-top:8px}.label.svelte-8gd2db{margin-bottom:4px;opacity:.75;font-size:10.8px;color:var(--playpilot-text-color-alt)}.offset.svelte-8gd2db{margin-top:12px}.warning.svelte-8gd2db{margin:0 auto 0 8px}.warning.svelte-8gd2db 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-rjq94e{-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-rjq94e{cursor:pointer}.item.hoverable.svelte-rjq94e:hover{background:var(--playpilot-lighter)}.item.svelte-rjq94e:last-child{border-bottom:0}.poster.svelte-rjq94e{flex:0 0 auto;height:auto;width:28px;aspect-ratio:28/42;border-radius:4px;background:var(--playpilot-content)}.name.svelte-rjq94e{color:var(--playpilot-text-color)}.meta.svelte-rjq94e{display:flex;flex-wrap:wrap;gap:0 8px;font-size:12px}.imdb.svelte-rjq94e{display:flex;align-items:center;gap:4px}.open-in-new-tab.svelte-rjq94e{margin-left:auto;color:var(--playpilot-text-color-alt)}.open-in-new-tab.svelte-rjq94e:hover{color:vaR(--playpilot-text-color)}.search.svelte-1olb8n0{position:relative}.results.svelte-1olb8n0{z-index:1;position:absolute;top:calc(100% + 8px);left:0;right:0;height:30vh;max-height:160px;border-radius:8px;background:var(--playpilot-light);scrollbar-width:thin;overflow:auto}.empty.svelte-1olb8n0{padding:8px;font-size:12px;color:var(--playpilot-text-color-alt)}.selected.svelte-1olb8n0{margin:8px 0;border-radius:.5rem;border:2px solid var(--playpilot-green)}p.svelte-1i8p6op,label.svelte-1i8p6op{font-size:12px;max-width:240px;color:var(--playpilot-text-color-alt)}label.svelte-1i8p6op{display:block;margin-top:16px}.layout.svelte-1i8p6op{height:100%;display:flex;flex-direction:column;margin:0}.header.svelte-1i8p6op{display:flex;align-items:center;gap:8px;margin-bottom:16px}.heading.svelte-1i8p6op{margin:0;color:var(--playpilot-text-color);font-size:16px;line-height:normal;font-weight:400}.error.svelte-1i8p6op{margin-top:8px}.save.svelte-1i8p6op{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-1i8p6op:not([disabled]):hover{outline:2px solid currentColor}.save[disabled].svelte-1i8p6op{cursor:default;background:var(--playpilot-light);opacity:.5;color:var(--playpilot-text-color-alt)}a.svelte-1l4sxuh{color:currentColor}.ai-indicator.svelte-1l4sxuh{position:relative;margin:0 8px}.content.svelte-1l4sxuh{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-1l4sxuh{display:flex;margin-top:4px;font-style:italic}.icon.svelte-1l4sxuh{color:var(--playpilot-green)}.border.svelte-1l4sxuh{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-1l4sxuh .border:where(.svelte-1l4sxuh){background:var(--playpilot-light)}@keyframes svelte-1l4sxuh-rotate{to{rotate:360deg}}.animator.svelte-1l4sxuh{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-1l4sxuh-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-1l4sxuh{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-1l4sxuh{height:.5em;border-radius:.25rem;background:var(--playpilot-dark)}.loading-bar-fill.svelte-1l4sxuh{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-1l4sxuh{text-align:right}@keyframes svelte-1l4sxuh-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-1l4sxuh span:where(.svelte-1l4sxuh){animation:svelte-1l4sxuh-fade 2s infinite}.ellipses.svelte-1l4sxuh span:where(.svelte-1l4sxuh):nth-child(1){animation-delay:.2s}.ellipses.svelte-1l4sxuh span:where(.svelte-1l4sxuh):nth-child(2){animation-delay:.4s}.ellipses.svelte-1l4sxuh span:where(.svelte-1l4sxuh):nth-child(3){animation-delay:.6s}.editor.svelte-1b2vpoj{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:10rem;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}.editor.svelte-1b2vpoj svg{fill:none}.panel-open.svelte-1b2vpoj{overflow:hidden}.loading.svelte-1b2vpoj{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-1b2vpoj,.header.svelte-1b2vpoj{z-index:20;position:sticky;top:-16px;margin:-16px -16px 0}.handle.svelte-1b2vpoj{opacity:0;transition:opacity .15s}.editor.svelte-1b2vpoj:hover .handle:where(.svelte-1b2vpoj){opacity:1}.header.svelte-1b2vpoj{z-index:5;display:flex;align-items:center;padding:16px 16px 16px 24px;margin:0 -16px;border:0;background:var(--playpilot-dark)}.loading.svelte-1b2vpoj .header:where(.svelte-1b2vpoj){margin:-16px}.heading.svelte-1b2vpoj{margin:0 12px 0 0;color:var(--playpilot-text-color);font-size:20px;font-weight:400;line-height:normal}.bubble.svelte-1b2vpoj{-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-1b2vpoj{padding-top:8px;margin-bottom:auto}.empty.svelte-1b2vpoj{padding:8px;font-size:13.6px;font-style:italic;color:var(--playpilot-text-color-alt)}.save.svelte-1b2vpoj{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:.85rem;cursor:pointer}.save.svelte-1b2vpoj:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.save[disabled].svelte-1b2vpoj{opacity:.75;background:var(--playpilot-light);color:var(--playpilot-content-light)}.error.svelte-1b2vpoj{margin-top:8px}.alert.svelte-1b2vpoj{margin:0 8px 8px}.panel.svelte-1b2vpoj{z-index:10;position:absolute;top:0;left:0;width:100%;height:100%;padding:24px;background:var(--playpilot-dark);overflow-y:auto}`)),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
4
3
  (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();const Vt=!1;var $t=Array.isArray,ei=Array.prototype.indexOf,Qt=Array.from,ti=Object.defineProperty,xe=Object.getOwnPropertyDescriptor,Un=Object.getOwnPropertyDescriptors,ni=Object.prototype,ri=Array.prototype,en=Object.getPrototypeOf;function He(e){return typeof e=="function"}const se=()=>{};function ii(e){return typeof(e==null?void 0:e.then)=="function"}function ai(e){for(var t=0;t<e.length;t++)e[t]()}function bn(e,t,n=!1){return e===void 0?n?t():t:e}const ue=2,Hn=4,ct=8,Pt=16,fe=32,ft=64,qt=128,Re=256,Et=512,re=1024,Le=2048,It=4096,he=8192,Qe=16384,Kn=32768,Fe=65536,oi=1<<17,si=1<<19,Wn=1<<20,Pe=Symbol("$state"),zn=Symbol("legacy props"),li=Symbol("");function Gn(e){return e===this.v}function Lt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function ui(e,t){return e!==t}function tn(e){return!Lt(e,this.v)}function ci(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fi(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function di(e){throw new Error("https://svelte.dev/e/effect_orphan")}function vi(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function _i(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function hi(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function mi(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pi(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function gi(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let et=!1,yi=!1;function wi(){et=!0}const nn=1,rn=2,Yn=4,ki=8,bi=16,Ei=1,Si=2,Ti=4,Ai=8,xi=16,Pi=1,Ii=2,Li=4,Ci=1,Di=2,W=Symbol(),Zn="http://www.w3.org/2000/svg";function $(e,t){var n={f:0,v:e,reactions:null,equals:Gn,rv:0,wv:0};return n}function Z(e){return Ni($(e))}function St(e,t=!1){var r;const n=$(e);return t||(n.equals=tn),et&&D!==null&&D.l!==null&&((r=D.l).s??(r.s=[])).push(n),n}function Ni(e){return j!==null&&j.f&ue&&(pe===null?Wi([e]):pe.push(e)),e}function N(e,t){return j!==null&&_t()&&j.f&(ue|Pt)&&(pe===null||!pe.includes(e))&&gi(),Ke(e,t)}function Ke(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=hr(),Jn(e,Le),_t()&&x!==null&&x.f&re&&!(x.f&fe)&&(J!==null&&J.includes(e)?(ke(x,Le),jt(x)):Ie===null?zi([e]):Ie.push(e))),t}function Jn(e,t){var n=e.reactions;if(n!==null)for(var r=_t(),i=n.length,a=0;a<i;a++){var o=n[a],u=o.f;u&Le||!r&&o===x||(ke(o,t),u&(re|Re)&&(u&ue?Jn(o,It):jt(o)))}}let Xn=!1;function z(e,t=null,n){if(typeof e!="object"||e===null||Pe in e)return e;const r=en(e);if(r!==ni&&r!==ri)return e;var i=new Map,a=$t(e),o=$(0);a&&i.set("length",$(e.length));var u;return new Proxy(e,{defineProperty(l,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&hi();var s=i.get(f);return s===void 0?(s=$(d.value),i.set(f,s)):N(s,z(d.value,u)),!0},deleteProperty(l,f){var d=i.get(f);if(d===void 0)f in l&&i.set(f,$(W));else{if(a&&typeof f=="string"){var s=i.get("length"),v=Number(f);Number.isInteger(v)&&v<s.v&&N(s,v)}N(d,W),En(o)}return!0},get(l,f,d){var p;if(f===Pe)return e;var s=i.get(f),v=f in l;if(s===void 0&&(!v||(p=xe(l,f))!=null&&p.writable)&&(s=$(z(v?l[f]:W,u)),i.set(f,s)),s!==void 0){var _=m(s);return _===W?void 0:_}return Reflect.get(l,f,d)},getOwnPropertyDescriptor(l,f){var d=Reflect.getOwnPropertyDescriptor(l,f);if(d&&"value"in d){var s=i.get(f);s&&(d.value=m(s))}else if(d===void 0){var v=i.get(f),_=v==null?void 0:v.v;if(v!==void 0&&_!==W)return{enumerable:!0,configurable:!0,value:_,writable:!0}}return d},has(l,f){var _;if(f===Pe)return!0;var d=i.get(f),s=d!==void 0&&d.v!==W||Reflect.has(l,f);if(d!==void 0||x!==null&&(!s||(_=xe(l,f))!=null&&_.writable)){d===void 0&&(d=$(s?z(l[f],u):W),i.set(f,d));var v=m(d);if(v===W)return!1}return s},set(l,f,d,s){var b;var v=i.get(f),_=f in l;if(a&&f==="length")for(var p=d;p<v.v;p+=1){var h=i.get(p+"");h!==void 0?N(h,W):p in l&&(h=$(W),i.set(p+"",h))}v===void 0?(!_||(b=xe(l,f))!=null&&b.writable)&&(v=$(void 0),N(v,z(d,u)),i.set(f,v)):(_=v.v!==W,N(v,z(d,u)));var w=Reflect.getOwnPropertyDescriptor(l,f);if(w!=null&&w.set&&w.set.call(s,d),!_){if(a&&typeof f=="string"){var g=i.get("length"),y=Number(f);Number.isInteger(y)&&y>=g.v&&N(g,y+1)}En(o)}return!0},ownKeys(l){m(o);var f=Reflect.ownKeys(l).filter(v=>{var _=i.get(v);return _===void 0||_.v!==W});for(var[d,s]of i)s.v!==W&&!(d in l)&&f.push(d);return f},setPrototypeOf(){mi()}})}function En(e,t=1){N(e,e.v+t)}var Bt,$n,Qn;function ji(){if(Bt===void 0){Bt=window;var e=Element.prototype,t=Node.prototype;$n=xe(t,"firstChild").get,Qn=xe(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 dt(e=""){return document.createTextNode(e)}function Ye(e){return $n.call(e)}function Ct(e){return Qn.call(e)}function A(e,t){return Ye(e)}function X(e,t){{var n=Ye(e);return n instanceof Comment&&n.data===""?Ct(n):n}}function C(e,t=1,n=!1){let r=e;for(;t--;)r=Ct(r);return r}function Mi(e){e.textContent=""}function G(e){var t=ue|Le;x===null?t|=Re:x.f|=Wn;var n=j!==null&&j.f&ue?j:null;const r={children:null,ctx:D,deps:null,equals:Gn,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??x};return n!==null&&(n.children??(n.children=[])).push(r),r}function Oi(e){const t=G(e);return t.equals=tn,t}function er(e){var t=e.children;if(t!==null){e.children=null;for(var n=0;n<t.length;n+=1){var r=t[n];r.f&ue?an(r):we(r)}}}function Ri(e){for(var t=e.parent;t!==null;){if(!(t.f&ue))return t;t=t.parent}return null}function tr(e){var t,n=x;te(Ri(e));try{er(e),t=mr(e)}finally{te(n)}return t}function nr(e){var t=tr(e),n=(Me||e.f&Re)&&e.deps!==null?It:re;ke(e,n),e.equals(t)||(e.v=t,e.wv=hr())}function an(e){er(e),st(e,0),ke(e,Qe),e.v=e.children=e.deps=e.ctx=e.reactions=null}function Fi(e){x===null&&j===null&&di(),j!==null&&j.f&Re&&fi(),sn&&ci()}function Vi(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function tt(e,t,n,r=!0){var i=(e&ft)!==0,a=x,o={ctx:D,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|Le,first:null,fn:t,last:null,next:null,parent:i?null:a,prev:null,teardown:null,transitions:null,wv:0};if(n){var u=We;try{Sn(!0),Nt(o),o.f|=Kn}catch(d){throw we(o),d}finally{Sn(u)}}else t!==null&&jt(o);var l=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&Wn)===0;if(!l&&!i&&r&&(a!==null&&Vi(o,a),j!==null&&j.f&ue)){var f=j;(f.children??(f.children=[])).push(o)}return o}function qi(e){const t=tt(ct,null,!1);return ke(t,re),t.teardown=e,t}function rr(e){Fi();var t=x!==null&&(x.f&fe)!==0&&D!==null&&!D.m;if(t){var n=D;(n.e??(n.e=[])).push({fn:e,effect:x,reaction:j})}else{var r=vt(e);return r}}function Bi(e){const t=tt(ft,e,!0);return(n={})=>new Promise(r=>{n.outro?me(t,()=>{we(t),r(void 0)}):(we(t),r(void 0))})}function vt(e){return tt(Hn,e,!1)}function ir(e){return tt(ct,e,!0)}function M(e){return Ce(e)}function Ce(e,t=0){return tt(ct|Pt|t,e,!0)}function ye(e,t=!0){return tt(ct|fe,e,!0,t)}function ar(e){var t=e.teardown;if(t!==null){const n=sn,r=j;Tn(!0),ie(null);try{t.call(null)}finally{Tn(n),ie(r)}}}function or(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var n=0;n<t.length;n+=1)an(t[n])}}function sr(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var r=n.next;we(n,t),n=r}}function Ui(e){for(var t=e.first;t!==null;){var n=t.next;t.f&fe||we(t),t=n}}function we(e,t=!0){var n=!1;if((t||e.f&si)&&e.nodes_start!==null){for(var r=e.nodes_start,i=e.nodes_end;r!==null;){var a=r===i?null:Ct(r);r.remove(),r=a}n=!0}sr(e,t&&!n),or(e),st(e,0),ke(e,Qe);var o=e.transitions;if(o!==null)for(const l of o)l.stop();ar(e);var u=e.parent;u!==null&&u.first!==null&&lr(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function lr(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function me(e,t){var n=[];on(e,n,!0),ur(n,()=>{we(e),t&&t()})}function ur(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var i of e)i.out(r)}else t()}function on(e,t,n){if(!(e.f&he)){if(e.f^=he,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var r=e.first;r!==null;){var i=r.next,a=(r.f&Fe)!==0||(r.f&fe)!==0;on(r,t,a?n:!1),r=i}}}function Ze(e){cr(e,!0)}function cr(e,t){if(e.f&he){ht(e)&&Nt(e),e.f^=he;for(var n=e.first;n!==null;){var r=n.next,i=(n.f&Fe)!==0||(n.f&fe)!==0;cr(n,i?t:!1),n=r}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let Tt=!1,Ut=[];function fr(){Tt=!1;const e=Ut.slice();Ut=[],ai(e)}function nt(e){Tt||(Tt=!0,queueMicrotask(fr)),Ut.push(e)}function Hi(){Tt&&fr()}function dr(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const vr=0,Ki=1;let wt=!1,kt=vr,at=!1,ot=null,We=!1,sn=!1;function Sn(e){We=e}function Tn(e){sn=e}let je=[],ze=0;let j=null;function ie(e){j=e}let x=null;function te(e){x=e}let pe=null;function Wi(e){pe=e}let J=null,ne=0,Ie=null;function zi(e){Ie=e}let _r=1,Ht=0,Me=!1,D=null;function An(e){D=e}function hr(){return++_r}function _t(){return!et||D!==null&&D.l===null}function ht(e){var f;var t=e.f;if(t&Le)return!0;if(t&It){var n=e.deps,r=(t&Re)!==0;if(n!==null){var i,a,o=(t&Et)!==0,u=r&&x!==null&&!Me,l=n.length;if(o||u){for(i=0;i<l;i++)a=n[i],(o||!((f=a==null?void 0:a.reactions)!=null&&f.includes(e)))&&(a.reactions??(a.reactions=[])).push(e);o&&(e.f^=Et)}for(i=0;i<l;i++)if(a=n[i],ht(a)&&nr(a),a.wv>e.wv)return!0}(!r||x!==null&&!Me)&&ke(e,re)}return!1}function Gi(e,t){for(var n=t;n!==null;){if(n.f&qt)try{n.fn(e);return}catch{n.f^=qt}n=n.parent}throw wt=!1,e}function Yi(e){return(e.f&Qe)===0&&(e.parent===null||(e.parent.f&qt)===0)}function Dt(e,t,n,r){if(wt){if(n===null&&(wt=!1),Yi(t))throw e;return}n!==null&&(wt=!0);{Gi(e,t);return}}function mr(e){var v;var t=J,n=ne,r=Ie,i=j,a=Me,o=pe,u=D,l=e.f;J=null,ne=0,Ie=null,j=l&(fe|ft)?null:e,Me=!We&&(l&Re)!==0,pe=null,D=e.ctx,Ht++;try{var f=(0,e.fn)(),d=e.deps;if(J!==null){var s;if(st(e,ne),d!==null&&ne>0)for(d.length=ne+J.length,s=0;s<J.length;s++)d[ne+s]=J[s];else e.deps=d=J;if(!Me)for(s=ne;s<d.length;s++)((v=d[s]).reactions??(v.reactions=[])).push(e)}else d!==null&&ne<d.length&&(st(e,ne),d.length=ne);return f}finally{J=t,ne=n,Ie=r,j=i,Me=a,pe=o,D=u}}function Zi(e,t){let n=t.reactions;if(n!==null){var r=ei.call(n,e);if(r!==-1){var i=n.length-1;i===0?n=t.reactions=null:(n[r]=n[i],n.pop())}}n===null&&t.f&ue&&(J===null||!J.includes(t))&&(ke(t,It),t.f&(Re|Et)||(t.f^=Et),st(t,0))}function st(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Zi(e,n[r])}function Nt(e){var t=e.f;if(!(t&Qe)){ke(e,re);var n=x,r=D;x=e;try{t&Pt?Ui(e):sr(e),or(e),ar(e);var i=mr(e);e.teardown=typeof i=="function"?i:null,e.wv=_r;var a=e.deps,o;Vt&&yi&&e.f&Le}catch(u){Dt(u,e,n,r||e.ctx)}finally{x=n}}}function pr(){if(ze>1e3){ze=0;try{vi()}catch(e){if(ot!==null)Dt(e,ot,null);else throw e}}ze++}function gr(e){var t=e.length;if(t!==0){pr();var n=We;We=!0;try{for(var r=0;r<t;r++){var i=e[r];i.f&re||(i.f^=re);var a=[];yr(i,a),Ji(a)}}finally{We=n}}}function Ji(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var r=e[n];if(!(r.f&(Qe|he)))try{ht(r)&&(Nt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?lr(r):r.fn=null))}catch(i){Dt(i,r,null,r.ctx)}}}function Xi(){if(at=!1,ze>1001)return;const e=je;je=[],gr(e),at||(ze=0,ot=null)}function jt(e){kt===vr&&(at||(at=!0,queueMicrotask(Xi))),ot=e;for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(n&(ft|fe)){if(!(n&re))return;t.f^=re}}je.push(t)}function yr(e,t){var n=e.first,r=[];e:for(;n!==null;){var i=n.f,a=(i&fe)!==0,o=a&&(i&re)!==0,u=n.next;if(!o&&!(i&he))if(i&ct){if(a)n.f^=re;else try{ht(n)&&Nt(n)}catch(s){Dt(s,n,null,n.ctx)}var l=n.first;if(l!==null){n=l;continue}}else i&Hn&&r.push(n);if(u===null){let s=n.parent;for(;s!==null;){if(e===s)break e;var f=s.next;if(f!==null){n=f;continue e}s=s.parent}}n=u}for(var d=0;d<r.length;d++)l=r[d],t.push(l),yr(l,t)}function ln(e){var t=kt,n=je;try{pr();const i=[];kt=Ki,je=i,at=!1,gr(n);var r=e==null?void 0:e();return Hi(),(je.length>0||i.length>0)&&ln(),ze=0,ot=null,r}finally{kt=t,je=n}}async function xn(){await Promise.resolve(),ln()}function m(e){var d;var t=e.f,n=(t&ue)!==0;if(n&&t&Qe){var r=tr(e);return an(e),r}if(j!==null){pe!==null&&pe.includes(e)&&pi();var i=j.deps;e.rv<Ht&&(e.rv=Ht,J===null&&i!==null&&i[ne]===e?ne++:J===null?J=[e]:J.push(e),Ie!==null&&x!==null&&x.f&re&&!(x.f&fe)&&Ie.includes(e)&&(ke(x,Le),jt(x)))}else if(n&&e.deps===null)for(var a=e,o=a.parent,u=a;o!==null;)if(o.f&ue){var l=o;u=l,o=l.parent}else{var f=o;(d=f.deriveds)!=null&&d.includes(u)||(f.deriveds??(f.deriveds=[])).push(u);break}return n&&(a=e,ht(a)&&nr(a)),e.v}function Oe(e){const t=j;try{return j=null,e()}finally{j=t}}const $i=-7169;function ke(e,t){e.f=e.f&$i|t}function Qi(e){return kr().get(e)}function wr(e,t){return kr().set(e,t),t}function kr(e){return D===null&&dr(),D.c??(D.c=new Map(ea(D)||void 0))}function ea(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}function ae(e,t=!1,n){D={p:D,c:null,e:null,m:!1,s:e,x:null,l:null},et&&!t&&(D.l={s:null,u:null,r1:[],r2:$(!1)})}function oe(e){const t=D;if(t!==null){const o=t.e;if(o!==null){var n=x,r=j;t.e=null;try{for(var i=0;i<o.length;i++){var a=o[i];te(a.effect),ie(a.reaction),vt(a.fn)}}finally{te(n),ie(r)}}D=t.p,t.m=!0}return{}}function ta(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(Pe in e)Kt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&Pe in n&&Kt(n)}}}function Kt(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 r in e)try{Kt(e[r],t)}catch{}const n=en(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Un(n);for(let i in r){const a=r[i].get;if(a)try{a.call(e)}catch{}}}}}function na(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const ra=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function ia(e){return ra.includes(e)}const aa={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function oa(e){return e=e.toLowerCase(),aa[e]??e}const sa=["touchstart","touchmove"];function la(e){return sa.includes(e)}function ua(e,t){if(t){const n=document.body;e.autofocus=!0,nt(()=>{document.activeElement===n&&e.focus()})}}let Pn=!1;function ca(){Pn||(Pn=!0,document.addEventListener("reset",e=>{Promise.resolve().then(()=>{var t;if(!e.defaultPrevented)for(const n of e.target.elements)(t=n.__on_r)==null||t.call(n)})},{capture:!0}))}function br(e){var t=j,n=x;ie(null),te(null);try{return e()}finally{ie(t),te(n)}}function ws(e,t,n,r=n){e.addEventListener(t,()=>br(n));const i=e.__on_r;i?e.__on_r=()=>{i(),r(!0)}:e.__on_r=()=>r(!0),ca()}const Er=new Set,Wt=new Set;function Sr(e,t,n,r){function i(a){if(r.capture||rt.call(t,a),!a.cancelBubble)return br(()=>n.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?nt(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function it(e,t,n,r,i){var a={capture:r,passive:i},o=Sr(e,t,n,a);(t===document.body||t===window||t===document)&&qi(()=>{t.removeEventListener(e,o,a)})}function Ve(e){for(var t=0;t<e.length;t++)Er.add(e[t]);for(var n of Wt)n(e)}function rt(e){var y;var t=this,n=t.ownerDocument,r=e.type,i=((y=e.composedPath)==null?void 0:y.call(e))||[],a=i[0]||e.target,o=0,u=e.__root;if(u){var l=i.indexOf(u);if(l!==-1&&(t===document||t===window)){e.__root=t;return}var f=i.indexOf(t);if(f===-1)return;l<=f&&(o=l)}if(a=i[o]||e.target,a!==t){ti(e,"currentTarget",{configurable:!0,get(){return a||n}});var d=j,s=x;ie(null),te(null);try{for(var v,_=[];a!==null;){var p=a.assignedSlot||a.parentNode||a.host||null;try{var h=a["__"+r];if(h!==void 0&&!a.disabled)if($t(h)){var[w,...g]=h;w.apply(a,[e,...g])}else h.call(a,e)}catch(b){v?_.push(b):v=b}if(e.cancelBubble||p===t||p===null)break;a=p}if(v){for(let b of _)queueMicrotask(()=>{throw b});throw v}}finally{e.__root=t,delete e.currentTarget,ie(d),te(s)}}}function Tr(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Je(e,t){var n=x;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function O(e,t){var n=(t&Ci)!==0,r=(t&Di)!==0,i,a=!e.startsWith("<!>");return()=>{i===void 0&&(i=Tr(a?e:"<!>"+e),n||(i=Ye(i)));var o=r?document.importNode(i,!0):i.cloneNode(!0);if(n){var u=Ye(o),l=o.lastChild;Je(u,l)}else Je(o,o);return o}}function Mt(e,t,n="svg"){var r=!e.startsWith("<!>"),i=`<${n}>${r?e:"<!>"+e}</${n}>`,a;return()=>{if(!a){var o=Tr(i),u=Ye(o);a=Ye(u)}var l=a.cloneNode(!0);return Je(l,l),l}}function un(e=""){{var t=dt(e+"");return Je(t,t),t}}function Xe(){var e=document.createDocumentFragment(),t=document.createComment(""),n=dt();return e.append(t,n),Je(t,n),e}function T(e,t){e!==null&&e.before(t)}let At=!0;function In(e){At=e}function B(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=n,e.nodeValue=n==null?"":n+"")}function cn(e,t){return fa(e,t)}const Be=new Map;function fa(e,{target:t,anchor:n,props:r={},events:i,context:a,intro:o=!0}){ji();var u=new Set,l=s=>{for(var v=0;v<s.length;v++){var _=s[v];if(!u.has(_)){u.add(_);var p=la(_);t.addEventListener(_,rt,{passive:p});var h=Be.get(_);h===void 0?(document.addEventListener(_,rt,{passive:p}),Be.set(_,1)):Be.set(_,h+1)}}};l(Qt(Er)),Wt.add(l);var f=void 0,d=Bi(()=>{var s=n??t.appendChild(dt());return ye(()=>{if(a){ae({});var v=D;v.c=a}i&&(r.$$events=i),At=o,f=e(s,r)||{},At=!0,a&&oe()}),()=>{var p;for(var v of u){t.removeEventListener(v,rt);var _=Be.get(v);--_===0?(document.removeEventListener(v,rt),Be.delete(v)):Be.set(v,_)}Wt.delete(l),s!==n&&((p=s.parentNode)==null||p.removeChild(s))}});return zt.set(f,d),f}let zt=new WeakMap;function Ar(e,t){const n=zt.get(e);return n?(zt.delete(e),n(t)):Promise.resolve()}const Ot=0,pt=1,Rt=2;function da(e,t,n,r,i){var a=e,o=_t(),u=D,l=W,f,d,s,v=(o?$:St)(void 0),_=(o?$:St)(void 0),p=!1;function h(g,y){p=!0,y&&(te(w),ie(w),An(u));try{g===pt&&r&&(d?Ze(d):d=ye(()=>r(a,v))),g!==Ot&&f&&me(f,()=>f=null),g!==pt&&d&&me(d,()=>d=null),g!==Rt&&s&&me(s,()=>s=null)}finally{y&&(An(null),ie(null),te(null),ln())}}var w=Ce(()=>{if(l!==(l=t())){if(ii(l)){var g=l;p=!1,g.then(y=>{g===l&&(Ke(v,y),h(pt,!0))},y=>{if(g===l)throw Ke(_,y),h(Rt,!0),_.v}),nt(()=>{p||h(Ot,!0)})}else Ke(v,l),h(pt,!1);return()=>l=W}})}function U(e,t,n=!1){var r=e,i=null,a=null,o=W,u=n?Fe:0,l=!1;const f=(s,v=!0)=>{l=!0,d(v,s)},d=(s,v)=>{o!==(o=s)&&(o?(i?Ze(i):v&&(i=ye(()=>v(r))),a&&me(a,()=>{a=null})):(a?Ze(a):v&&(a=ye(()=>v(r))),i&&me(i,()=>{i=null})))};Ce(()=>{l=!1,t(f),l||d(null,null)},u)}function va(e,t,n){var r=e,i=W,a,o=_t()?ui:Lt;Ce(()=>{o(i,i=t())&&(a&&me(a),a=ye(()=>n(r)))})}function lt(e,t){return t}function _a(e,t,n,r){for(var i=[],a=t.length,o=0;o<a;o++)on(t[o].e,i,!0);var u=a>0&&i.length===0&&n!==null;if(u){var l=n.parentNode;Mi(l),l.append(n),r.clear(),Ae(e,t[0].prev,t[a-1].next)}ur(i,()=>{for(var f=0;f<a;f++){var d=t[f];u||(r.delete(d.k),Ae(e,d.prev,d.next)),we(d.e,!u)}})}function ut(e,t,n,r,i,a=null){var o=e,u={flags:t,items:new Map,first:null},l=(t&Yn)!==0;if(l){var f=e;o=f.appendChild(dt())}var d=null,s=!1;Ce(()=>{var v=n(),_=$t(v)?v:v==null?[]:Qt(v),p=_.length;if(!(s&&p===0)){s=p===0;{var h=j;ha(_,u,o,i,t,(h.f&he)!==0,r)}a!==null&&(p===0?d?Ze(d):d=ye(()=>a(o)):d!==null&&me(d,()=>{d=null})),n()}})}function ha(e,t,n,r,i,a,o,u){var L,V,H,Se;var l=(i&ki)!==0,f=(i&(nn|rn))!==0,d=e.length,s=t.items,v=t.first,_=v,p,h=null,w,g=[],y=[],b,I,k,E;if(l)for(E=0;E<d;E+=1)b=e[E],I=o(b,E),k=s.get(I),k!==void 0&&((L=k.a)==null||L.measure(),(w??(w=new Set)).add(k));for(E=0;E<d;E+=1){if(b=e[E],I=o(b,E),k=s.get(I),k===void 0){var q=_?_.e.nodes_start:n;h=pa(q,t,h,h===null?t.first:h.next,b,I,E,r,i),s.set(I,h),g=[],y=[],_=h.next;continue}if(f&&ma(k,b,E,i),k.e.f&he&&(Ze(k.e),l&&((V=k.a)==null||V.unfix(),(w??(w=new Set)).delete(k))),k!==_){if(p!==void 0&&p.has(k)){if(g.length<y.length){var S=y[0],R;h=S.prev;var K=g[0],ee=g[g.length-1];for(R=0;R<g.length;R+=1)Ln(g[R],S,n);for(R=0;R<y.length;R+=1)p.delete(y[R]);Ae(t,K.prev,ee.next),Ae(t,h,K),Ae(t,ee,S),_=S,h=ee,E-=1,g=[],y=[]}else p.delete(k),Ln(k,_,n),Ae(t,k.prev,k.next),Ae(t,k,h===null?t.first:h.next),Ae(t,h,k),h=k;continue}for(g=[],y=[];_!==null&&_.k!==I;)(a||!(_.e.f&he))&&(p??(p=new Set)).add(_),y.push(_),_=_.next;if(_===null)continue;k=_}g.push(k),h=k,_=k.next}if(_!==null||p!==void 0){for(var P=p===void 0?[]:Qt(p);_!==null;)(a||!(_.e.f&he))&&P.push(_),_=_.next;var F=P.length;if(F>0){var Y=i&Yn&&d===0?n:null;if(l){for(E=0;E<F;E+=1)(H=P[E].a)==null||H.measure();for(E=0;E<F;E+=1)(Se=P[E].a)==null||Se.fix()}_a(t,P,Y,s)}}l&&nt(()=>{var de;if(w!==void 0)for(k of w)(de=k.a)==null||de.apply()}),x.first=t.first&&t.first.e,x.last=h&&h.e}function ma(e,t,n,r){r&nn&&Ke(e.v,t),r&rn?Ke(e.i,n):e.i=n}function pa(e,t,n,r,i,a,o,u,l,f){var d=(l&nn)!==0,s=(l&bi)===0,v=d?s?St(i):$(i):i,_=l&rn?$(o):o,p={i:_,v,k:a,a:null,e:null,prev:n,next:r};try{return p.e=ye(()=>u(e,v,_),Xn),p.e.prev=n&&n.e,p.e.next=r&&r.e,n===null?t.first=p:(n.next=p,n.e.next=p.e),r!==null&&(r.prev=p,r.e.prev=p.e),p}finally{}}function Ln(e,t,n){for(var r=e.next?e.next.e.nodes_start:n,i=t?t.e.nodes_start:n,a=e.e.nodes_start;a!==r;){var o=Ct(a);i.before(a),a=o}}function Ae(e,t,n){t===null?e.first=n:(t.next=n,t.e.next=n&&n.e),n!==null&&(n.prev=t,n.e.prev=t&&t.e)}function fn(e,t,...n){var r=e,i=se,a;Ce(()=>{i!==(i=t())&&(a&&(we(a),a=null),a=ye(()=>i(r,...n)))},Fe)}function ga(e,t,n){var r=e,i,a;Ce(()=>{i!==(i=t())&&(a&&(me(a),a=null),i&&(a=ye(()=>n(r,i))))},Fe)}function ya(e,t,n,r,i,a){var o,u,l=null,f=e,d;Ce(()=>{const s=t()||null;var v=s==="svg"?Zn:null;s!==o&&(d&&(s===null?me(d,()=>{d=null,u=null}):s===u?Ze(d):(we(d),In(!1))),s&&s!==u&&(d=ye(()=>{l=v?document.createElementNS(v,s):document.createElement(s),Je(l,l);{var _=l.appendChild(dt());r(l,_)}x.nodes_end=l,f.before(l)})),o=s,o&&(u=o),In(!0))},Fe)}function xr(e,t,n){vt(()=>{var r=Oe(()=>t(e,n==null?void 0:n())||{});if(n&&(r!=null&&r.update)){var i=!1,a={};ir(()=>{var o=n();ta(o),i&&Lt(a,o)&&(a=o,r.update(o))}),i=!0}if(r!=null&&r.destroy)return()=>r.destroy()})}function Pr(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Pr(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function wa(){for(var e,t,n=0,r="",i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Pr(e))&&(r&&(r+=" "),r+=t);return r}function ka(e){return typeof e=="object"?wa(e):e??""}function ba(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function _e(e,t,n,r){var i=e.__attributes??(e.__attributes={});i[t]!==(i[t]=n)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[li]=n),n==null?e.removeAttribute(t):typeof n!="string"&&Ir(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ea(e,t,n,r,i=!1,a=!1,o=!1){var u=t||{},l=e.tagName==="OPTION";for(var f in t)f in n||(n[f]=null);n.class&&(n.class=ka(n.class)),n.class=n.class?n.class+" "+r:r;var d=Ir(e),s=e.__attributes??(e.__attributes={});for(const g in n){let y=n[g];if(l&&g==="value"&&y==null){e.value=e.__value="",u[g]=y;continue}var v=u[g];if(y!==v){u[g]=y;var _=g[0]+g[1];if(_!=="$$"){if(_==="on"){const b={},I="$$"+g;let k=g.slice(2);var p=ia(k);if(na(k)&&(k=k.slice(0,-7),b.capture=!0),!p&&v){if(y!=null)continue;e.removeEventListener(k,u[I],b),u[I]=null}if(y!=null)if(p)e[`__${k}`]=y,Ve([k]);else{let E=function(q){u[g].call(this,q)};u[I]=Sr(k,e,E,b)}else p&&(e[`__${k}`]=void 0)}else if(g==="style"&&y!=null)e.style.cssText=y+"";else if(g==="autofocus")ua(e,!!y);else if(g==="__value"||g==="value"&&y!=null)e.value=e[g]=e.__value=y;else if(g==="selected"&&l)ba(e,y);else{var h=g;i||(h=oa(h));var w=h==="defaultValue"||h==="defaultChecked";if(y==null&&!a&&!w)if(s[g]=null,h==="value"||h==="checked"){let b=e;if(h==="value"){let I=b.defaultValue;b.removeAttribute(h),b.defaultValue=I}else{let I=b.defaultChecked;b.removeAttribute(h),b.defaultChecked=I}}else e.removeAttribute(g);else w||d.includes(h)&&(a||typeof y!="string")?e[h]=y:typeof y!="function"&&_e(e,h,y)}g==="style"&&"__styles"in e&&(e.__styles={})}}}return u}var Cn=new Map;function Ir(e){var t=Cn.get(e.nodeName);if(t)return t;Cn.set(e.nodeName,t=[]);for(var n,r=e,i=Element.prototype;i!==r;){n=Un(r);for(var a in n)n[a].set&&t.push(a);r=en(r)}return t}function ks(e,t,n){var r=e.__className,i=Sa(t);(r!==i||Xn)&&(t==null?e.removeAttribute("class"):e.className=i,e.__className=i)}function Sa(e,t){return(e??"")+""}function be(e,t,n){if(n){if(e.classList.contains(t))return;e.classList.add(t)}else{if(!e.classList.contains(t))return;e.classList.remove(t)}}function Lr(e,t,n,r){var i=e.__styles??(e.__styles={});i[t]!==n&&(i[t]=n,n==null?e.style.removeProperty(t):e.style.setProperty(t,n,""))}const Ta=()=>performance.now(),Ee={tick:e=>requestAnimationFrame(e),now:()=>Ta(),tasks:new Set};function Cr(){const e=Ee.now();Ee.tasks.forEach(t=>{t.c(e)||(Ee.tasks.delete(t),t.f())}),Ee.tasks.size!==0&&Ee.tick(Cr)}function Aa(e){let t;return Ee.tasks.size===0&&Ee.tick(Cr),{promise:new Promise(n=>{Ee.tasks.add(t={c:e,f:n})}),abort(){Ee.tasks.delete(t)}}}function gt(e,t){e.dispatchEvent(new CustomEvent(t))}function xa(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(n=>n[0].toUpperCase()+n.slice(1)).join("")}function Dn(e){const t={},n=e.split(";");for(const r of n){const[i,a]=r.split(":");if(!i||a===void 0)break;const o=xa(i.trim());t[o]=a.trim()}return t}const Pa=e=>e;function Gt(e,t,n,r){var i=(e&Pi)!==0,a=(e&Ii)!==0,o=i&&a,u=(e&Li)!==0,l=o?"both":i?"in":"out",f,d=t.inert,s,v;function _(){var y=j,b=x;ie(null),te(null);try{return f??(f=n()(t,(r==null?void 0:r())??{},{direction:l}))}finally{ie(y),te(b)}}var p={is_global:u,in(){var y;if(t.inert=d,!i){v==null||v.abort(),(y=v==null?void 0:v.reset)==null||y.call(v);return}a||s==null||s.abort(),gt(t,"introstart"),s=Yt(t,_(),v,1,()=>{gt(t,"introend"),s==null||s.abort(),s=f=void 0})},out(y){if(!a){y==null||y(),f=void 0;return}t.inert=!0,gt(t,"outrostart"),v=Yt(t,_(),s,0,()=>{gt(t,"outroend"),y==null||y()})},stop:()=>{s==null||s.abort(),v==null||v.abort()}},h=x;if((h.transitions??(h.transitions=[])).push(p),i&&At){var w=u;if(!w){for(var g=h.parent;g&&g.f&Fe;)for(;(g=g.parent)&&!(g.f&Pt););w=!g||(g.f&Kn)!==0}w&&vt(()=>{Oe(()=>p.in())})}}function Yt(e,t,n,r,i){var a=r===1;if(He(t)){var o,u=!1;return nt(()=>{if(!u){var w=t({direction:a?"in":"out"});o=Yt(e,w,n,r,i)}}),{abort:()=>{u=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n==null||n.deactivate(),!(t!=null&&t.duration))return i(),{abort:se,deactivate:se,reset:se,t:()=>r};const{delay:l=0,css:f,tick:d,easing:s=Pa}=t;var v=[];if(a&&n===void 0&&(d&&d(0,1),f)){var _=Dn(f(0,1));v.push(_,_)}var p=()=>1-r,h=e.animate(v,{duration:l});return h.onfinish=()=>{var w=(n==null?void 0:n.t())??1-r;n==null||n.abort();var g=r-w,y=t.duration*Math.abs(g),b=[];if(y>0){if(f)for(var I=Math.ceil(y/16.666666666666668),k=0;k<=I;k+=1){var E=w+g*s(k/I),q=f(E,1-E);b.push(Dn(q))}p=()=>{var S=h.currentTime;return w+g*s(S/y)},d&&Aa(()=>{if(h.playState!=="running")return!1;var S=p();return d(S,1-S),!0})}h=e.animate(b,{duration:y,fill:"forwards"}),h.onfinish=()=>{p=()=>r,d==null||d(r,1-r),i()}},{abort:()=>{h&&(h.cancel(),h.effect=null,h.onfinish=se)},deactivate:()=>{i=se},reset:()=>{r===0&&(d==null||d(1,0))},t:()=>p()}}function Nn(e,t){return e===t||(e==null?void 0:e[Pe])===t}function Dr(e={},t,n,r){return vt(()=>{var i,a;return ir(()=>{i=a,a=[],Oe(()=>{e!==n(...a)&&(t(e,...a),i&&Nn(n(...i),e)&&t(null,...i))})}),()=>{nt(()=>{a&&Nn(n(...a),e)&&t(null,...a)})}}),e}function Ia(e,t,n){if(e==null)return t(void 0),se;const r=Oe(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}let yt=!1;function La(e){var t=yt;try{return yt=!1,[e(),yt]}finally{yt=t}}const Ca={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 Da(e,t,n){return new Proxy({props:e,exclude:t},Ca)}const Na={get(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(He(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r)return r[t]}},set(e,t,n){let r=e.props.length;for(;r--;){let i=e.props[r];He(i)&&(i=i());const a=xe(i,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let r=e.props[n];if(He(r)&&(r=r()),typeof r=="object"&&r!==null&&t in r){const i=xe(r,t);return i&&!i.configurable&&(i.configurable=!0),i}}},has(e,t){if(t===Pe||t===zn)return!1;for(let n of e.props)if(He(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props){He(n)&&(n=n());for(const r in n)t.includes(r)||t.push(r)}return t}};function bs(...e){return new Proxy({props:e},Na)}function jn(e){for(var t=x,n=x;t!==null&&!(t.f&(fe|ft));)t=t.parent;try{return te(t),e()}finally{te(n)}}function ce(e,t,n,r){var q;var i=(n&Ei)!==0,a=!et||(n&Si)!==0,o=(n&Ai)!==0,u=(n&xi)!==0,l=!1,f;o?[f,l]=La(()=>e[t]):f=e[t];var d=Pe in e||zn in e,s=o&&(((q=xe(e,t))==null?void 0:q.set)??(d&&t in e&&(S=>e[t]=S)))||void 0,v=r,_=!0,p=!1,h=()=>(p=!0,_&&(_=!1,u?v=Oe(r):v=r),v);f===void 0&&r!==void 0&&(s&&a&&_i(),f=h(),s&&s(f));var w;if(a)w=()=>{var S=e[t];return S===void 0?h():(_=!0,p=!1,S)};else{var g=jn(()=>(i?G:Oi)(()=>e[t]));g.f|=oi,w=()=>{var S=m(g);return S!==void 0&&(v=void 0),S===void 0?v:S}}if(!(n&Ti))return w;if(s){var y=e.$$legacy;return function(S,R){return arguments.length>0?((!a||!R||y||l)&&s(R?w():S),S):w()}}var b=!1,I=!1,k=St(f),E=jn(()=>G(()=>{var S=w(),R=m(k);return b?(b=!1,I=!0,R):(I=!1,k.v=S)}));return i||(E.equals=tn),function(S,R){if(arguments.length>0){const K=R?m(E):a&&o?z(S):S;return E.equals(K)||(b=!0,N(k,K),p&&v!==void 0&&(v=K),Oe(()=>m(E))),S}return m(E)}}function dn(e){D===null&&dr(),et&&D.l!==null?ja(D).m.push(e):rr(()=>{const t=Oe(e);if(typeof t=="function")return t})}function ja(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const Ma="modulepreload",Oa=function(e){return"/"+e},Mn={},Ra=function(t,n,r){let i=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const o=document.querySelector("meta[property=csp-nonce]"),u=(o==null?void 0:o.nonce)||(o==null?void 0:o.getAttribute("nonce"));i=Promise.allSettled(n.map(l=>{if(l=Oa(l),l in Mn)return;Mn[l]=!0;const f=l.endsWith(".css"),d=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const s=document.createElement("link");if(s.rel=f?"stylesheet":Ma,f||(s.as="script"),s.crossOrigin="",s.href=l,u&&s.setAttribute("nonce",u),document.head.appendChild(s),f)return new Promise((v,_)=>{s.addEventListener("load",v),s.addEventListener("error",()=>_(new Error(`Unable to preload CSS for ${l}`)))})}))}function a(o){const u=new Event("vite:preloadError",{cancelable:!0});if(u.payload=o,window.dispatchEvent(u),!u.defaultPrevented)throw o}return i.then(o=>{for(const u of o||[])u.status==="rejected"&&a(u.reason);return t().catch(a)})},Fa="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(Fa);const Es="https://www.playpilot.com",vn="https://partner-api.playpilot.tech/1.0.0",Ss="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",le=Object.freeze({ArticlePageView:"ali_article_page_view",ArticleInjected:"ali_links_injected",TitleModalView:"ali_title_modal_view",TitleModalScroll:"ali_title_modal_scroll",TitleModalPlaylinkClick:"ali_title_modal_playlink_click",TitleModalSaveClick:"ali_title_modal_save_click",TitlePopoverView:"ali_title_popover_view",TitlePopoverSaveClick:"ali_title_popover_save_click",TitlePopoverPlaylinkClick:"ali_title_popover_playlink_click",AfterArticlePlaylinkClick:"ali_after_article_playlink_click",AfterArticleModalButtonClick:"ali_after_article_modal_button_click",InjectionFailed:"ali_injection_failed",TotalInjectionsCount:"ali_injection_count",FetchingConfigFailed:"ali_fetch_config_failed",AuthFailed:"ali_auth_failed"}),Ue=[];function Nr(e,t=se){let n=null;const r=new Set;function i(u){if(Lt(e,u)&&(e=u,n)){const l=!Ue.length;for(const f of r)f[1](),Ue.push(f,e);if(l){for(let f=0;f<Ue.length;f+=2)Ue[f][0](Ue[f+1]);Ue.length=0}}}function a(u){i(u(e))}function o(u,l=se){const f=[u,l];return r.add(f),r.size===1&&(n=t(i,a)||se),u(e),()=>{r.delete(f),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function On(e){let t;return Ia(e,n=>t=n)(),t}const jr=Nr(null),Mr=Nr(null),Va="https://insights.playpilot.net";async function ge(e,t=null,n={}){const r=new Headers({"Content-Type":"application/json"});t&&(n={original_title:t.original_title,title_sid:t.sid,...n}),n.url=window.location.href,n.organization_sid=On(jr),n.domain_sid=On(Mr),fetch(Va,{headers:r,method:"POST",body:JSON.stringify({event:e,payload:n,source:"ali"})})}function qa({organizationSid:e=null,domainSid:t=null}){jr.set(e||null),Mr.set(t||null)}const _n="EncryptedToken",Or="articleReplacementEditToken",Rr="playpilot-editorial-mode";async function Fr(e=window.location.href){const t=new Headers({"Content-Type":"application/json"});try{const n=yn();if(!n)throw new Error("No token was provided");const r=hn(e);if(!r)throw new Error("Could not be authenticated");const i=await fetch(vn+`/external-pages/edit-authorization?api-token=${n}`,{headers:t,method:"POST",body:JSON.stringify({private_token:r})});if(!i.ok)throw i;return Ba(r),!0}catch(n){console.error(n),ge(le.AuthFailed)}finally{Ka()}return!1}function hn(e=""){var r,i;const t=(r=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:r.editorial_token;if(t)return t;if(e){const a=new URL(e).searchParams.get(Or);if(a)return decodeURI(a)}return((i=("; "+document.cookie).split(`; ${_n}=`).pop())==null?void 0:i.split(";")[0])||""}function Ba(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const r="expires="+t.toUTCString();document.cookie=_n+"="+e+";"+r+";path=/"}function Ua(){document.cookie=_n+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function Vr(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(Rr)==="true"||!!e}function Ha(){const e=new URL(window.location.href);e.searchParams.set(Rr,"true"),window.history.replaceState({},"",e)}function Ka(){const e=new URL(window.location.href);e.searchParams.delete(Or),window.history.replaceState({},"",e)}function qr(e){let t=0;for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t=t*31+r>>>0}return t.toString(16)}const c=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"}),Wa={"Where To Stream Online":{[c.English]:"Where to stream online",[c.Swedish]:"Var kan man streama online",[c.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[c.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[c.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[c.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"An Error Occurred":{[c.English]:"An error occurred",[c.Swedish]:"Ett fel inträffade",[c.Danish]:"Der opstod en fejl"},"Title Unavailable":{[c.English]:"This title is not currently available to stream.",[c.Swedish]:"Den här titeln går inte att streama just nu.",[c.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[c.English]:"is not currently available to stream.",[c.Swedish]:"går inte att streama just nu.",[c.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[c.English]:"is available to stream on",[c.Swedish]:"finns att streama på",[c.Danish]:"kan streames på"},"Is Available To Stream":{[c.English]:"is available to stream.",[c.Swedish]:"finns att streama.",[c.Danish]:"kan streames."},"View Streaming Options":{[c.English]:"View streaming options",[c.Swedish]:"Se streamingalternativ",[c.Danish]:"Se streamingmuligheder"},And:{[c.English]:"and",[c.Swedish]:"och",[c.Danish]:"og"},Minutes:{[c.English]:"minutes",[c.Swedish]:"minuter",[c.Danish]:"minutter"},"Type: movie":{[c.English]:"Movie",[c.Swedish]:"Film",[c.Danish]:"Film"},"Type: series":{[c.English]:"Series",[c.Swedish]:"Serie",[c.Danish]:"Serie"},Stream:{[c.English]:"Stream",[c.Swedish]:"Streama",[c.Danish]:"Stream"},Buy:{[c.English]:"Buy",[c.Swedish]:"Köp",[c.Danish]:"Køb"},Rent:{[c.English]:"Rent",[c.Swedish]:"Hyra",[c.Danish]:"Lej"},"Rent Or Buy":{[c.English]:"Rent or Buy",[c.Swedish]:"Hyra",[c.Danish]:"Lej eller køb"},All:{[c.English]:"All",[c.Swedish]:"Alla",[c.Danish]:"Alle"},Unscripted:{[c.English]:"Unscripted",[c.Swedish]:"Oscripterat",[c.Danish]:"Umanuskriptet"},Independent:{[c.English]:"Independent",[c.Swedish]:"Indie",[c.Danish]:"Indie"},"Game Show":{[c.English]:"Game Show",[c.Swedish]:"Gameshow",[c.Danish]:"Quizshow"},"Film Noir":{[c.English]:"Film Noir",[c.Swedish]:"Film noir",[c.Danish]:"Film noir"},Entertainment:{[c.English]:"Entertainment",[c.Swedish]:"Underhållning",[c.Danish]:"Underholdning"},News:{[c.English]:"News",[c.Swedish]:"Nyheter",[c.Danish]:"Nyheder"},Short:{[c.English]:"Short",[c.Swedish]:"Kortfilm",[c.Danish]:"Kortfilm"},Bollywood:{[c.English]:"Bollywood",[c.Swedish]:"Bollywood",[c.Danish]:"Bollywood"},Concert:{[c.English]:"Concert",[c.Swedish]:"Konsert",[c.Danish]:"Koncert"},Arthouse:{[c.English]:"Arthouse",[c.Swedish]:"Arthouse",[c.Danish]:"Arthouse"},"Alternate Version":{[c.English]:"Alternate Version",[c.Swedish]:"Alternativ version",[c.Danish]:"Alternativ version"},"Reality TV":{[c.English]:"Reality TV",[c.Swedish]:"Reality-TV",[c.Danish]:"Reality-TV"},Culture:{[c.English]:"Culture",[c.Swedish]:"Kultur",[c.Danish]:"Kultur"},Drama:{[c.English]:"Drama",[c.Swedish]:"Drama",[c.Danish]:"Drama"},Crime:{[c.English]:"Crime",[c.Swedish]:"Kriminal",[c.Danish]:"Krimi"},Western:{[c.English]:"Western",[c.Swedish]:"Western",[c.Danish]:"Western"},Thriller:{[c.English]:"Thriller",[c.Swedish]:"Thriller",[c.Danish]:"Thriller"},Animation:{[c.English]:"Animation",[c.Swedish]:"Animerat",[c.Danish]:"Animation"},Mystery:{[c.English]:"Mystery",[c.Swedish]:"Mysterium",[c.Danish]:"Mysterium"},Science:{[c.English]:"Science",[c.Swedish]:"Vetenskap",[c.Danish]:"Videnskab"},Nature:{[c.English]:"Nature",[c.Swedish]:"Natur",[c.Danish]:"Natur"},War:{[c.English]:"War",[c.Swedish]:"Krig",[c.Danish]:"Krig"},"Sci-Fi":{[c.English]:"Sci-Fi",[c.Swedish]:"Sci-fi",[c.Danish]:"Sci-fi"},Documentary:{[c.English]:"Documentary",[c.Swedish]:"Dokumentär",[c.Danish]:"Dokumentar"},"Stand-up":{[c.English]:"Stand-up",[c.Swedish]:"Standup",[c.Danish]:"Stand-up"},"Talk Show":{[c.English]:"Talk Show",[c.Swedish]:"Talkshow",[c.Danish]:"Talkshow"},Fantasy:{[c.English]:"Fantasy",[c.Swedish]:"Fantasy",[c.Danish]:"Fantasy"},History:{[c.English]:"History",[c.Swedish]:"Historia",[c.Danish]:"Historie"},Adventure:{[c.English]:"Adventure",[c.Swedish]:"Äventyr",[c.Danish]:"Eventyr"},Action:{[c.English]:"Action",[c.Swedish]:"Action",[c.Danish]:"Action"},Horror:{[c.English]:"Horror",[c.Swedish]:"Skräck",[c.Danish]:"Gyser"},Comedy:{[c.English]:"Comedy",[c.Swedish]:"Komedi",[c.Danish]:"Komedie"},Biography:{[c.English]:"Biography",[c.Swedish]:"Biografi",[c.Danish]:"Biografi"},Music:{[c.English]:"Music",[c.Swedish]:"Musik",[c.Danish]:"Musik"},Sport:{[c.English]:"Sport",[c.Swedish]:"Sport",[c.Danish]:"Sport"},Romance:{[c.English]:"Romance",[c.Swedish]:"Romantik",[c.Danish]:"Romantik"},Kids:{[c.English]:"Kids",[c.Swedish]:"Barn",[c.Danish]:"Børn"},Lifestyle:{[c.English]:"Lifestyle",[c.Swedish]:"Livsstil",[c.Danish]:"Livsstil"},Musical:{[c.English]:"Musical",[c.Swedish]:"Musikal",[c.Danish]:"Musical"},Anime:{[c.English]:"Anime",[c.Swedish]:"Anime",[c.Danish]:"Anime"},Family:{[c.English]:"Family",[c.Swedish]:"Familj",[c.Danish]:"Familie"}};function Q(e,t=Br()){var n;return((n=Wa[e])==null?void 0:n[t])||e}function Br(){var r,i;const e=(r=window.PlayPilotLinkInjections)==null?void 0:r.language,t=Object.values(c);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const n=(i=document.querySelector("html"))==null?void 0:i.getAttribute("lang");return n&&t.includes(n)?n:c.English}const za=e=>e;function mn(e){const t=e-1;return t*t*t+1}function Rn(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function Ga(e,{delay:t=0,duration:n=400,easing:r=za}={}){const i=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:r,css:a=>`opacity: ${a*i}`}}function Ur(e,{delay:t=0,duration:n=400,easing:r=mn,x:i=0,y:a=0,opacity:o=0}={}){const u=getComputedStyle(e),l=+u.opacity,f=u.transform==="none"?"":u.transform,d=l*(1-o),[s,v]=Rn(i),[_,p]=Rn(a);return{delay:t,duration:n,easing:r,css:(h,w)=>`
@@ -7,5 +6,3 @@ svg.svelte-by11ix{transition:transform .1s}.expanded.svelte-by11ix{transform:rot
7
6
  transform: ${l} scale(${1-f*v});
8
7
  opacity: ${u-d*v}
9
8
  `}}var Za=O('<div class="popover svelte-qkpa3e" tabindex="-1" aria-hidden="true"><div class="dialog svelte-qkpa3e"><!></div></div>');function Ja(e,t){ae(t,!0);let n=ce(t,"maxHeight",15);wr("scope","popover");let r=Z(null),i=Z(!1);dn(async()=>{await xn(),a(),await xn(),o()});function a(){if(!m(r))return;const{top:s,right:v,bottom:_,height:p}=m(r).getBoundingClientRect(),h=u();N(i,z(s-h<0&&window.innerHeight-_>s+p));const w=window.innerWidth-v-h;v+h>window.innerWidth&&(m(r).style.left=`${w}px`)}function o(){if(!m(r))return;const{top:s,height:v}=m(r).getBoundingClientRect(),_=u(),p=m(i)?window.innerHeight-s-_:s+v-_;n(Math.min(p,window.innerHeight*.8))}function u(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}var l=Za(),f=A(l),d=A(f);fn(d,()=>t.children),Dr(l,s=>N(r,s),()=>m(r)),M(()=>{be(l,"flip",m(i)),Lr(l,"--max-height",n()?n()+"px":null)}),Gt(3,f,()=>Ur,()=>({duration:100,y:10})),T(e,l),oe()}const Xa=[{slug:"100",name:"All",categories:{movie:100,series:100,documentary:100,kids:100,cinema:100,podcasts:100}},{slug:"999",name:"Unscripted",categories:{},media_format:"video"},{slug:"900",name:"Independent",categories:{},media_format:"video"},{slug:"113",name:"Game Show",categories:{series:36,kids:28},media_format:"video"},{slug:"112",name:"Film Noir",categories:{movie:37},media_format:"video"},{slug:"212",name:"Entertainment",categories:{kids:80,series:42,movie:42},media_format:"video"},{slug:"120",name:"News",categories:{series:26,documentary:36,kids:38},media_format:"video"},{slug:"208",name:"Short",categories:{movie:21,documentary:30,kids:36},media_format:"video"},{slug:"902",name:"Bollywood",categories:{},media_format:"video"},{slug:"240",name:"Concert",categories:{movie:45},media_format:"video"},{slug:"901",name:"Arthouse",categories:{},media_format:"video"},{slug:"903",name:"Alternate Version",categories:{},media_format:"video"},{slug:"121",name:"Reality TV",categories:{series:24},media_format:"video"},{slug:"202",name:"Culture",categories:{kids:40,documentary:84,series:44},media_format:"video"},{slug:"107",name:"Drama",categories:{series:82,movie:82,cinema:88,documentary:44},media_format:"video"},{slug:"105",name:"Crime",categories:{series:84,documentary:86,cinema:64,movie:84},media_format:"video"},{slug:"128",name:"Western",categories:{movie:12,series:12,documentary:24},media_format:"video"},{slug:"127",name:"Thriller",categories:{series:70,documentary:28,cinema:80,movie:70},media_format:"video"},{slug:"102",name:"Animation",categories:{series:50,cinema:50,kids:90,documentary:48,movie:50},media_format:"video"},{slug:"119",name:"Mystery",categories:{movie:76,cinema:70,kids:26,documentary:38,series:76},media_format:"video"},{slug:"227",name:"Science",categories:{series:22,kids:46,documentary:74},media_format:"video"},{slug:"108",name:"Nature",categories:{kids:48,documentary:76,series:28},media_format:"video"},{slug:"116",name:"War",categories:{movie:14,documentary:68,series:14,cinema:66},media_format:"video"},{slug:"123",name:"Sci-Fi",categories:{series:72,movie:72,cinema:68,kids:70,documentary:32},media_format:"video"},{slug:"106",name:"Documentary",categories:{kids:50},media_format:"video"},{slug:"232",name:"Stand-up",categories:{movie:18,series:18},media_format:"video"},{slug:"126",name:"Talk Show",categories:{kids:34,series:16},media_format:"video"},{slug:"111",name:"Fantasy",categories:{kids:78,cinema:74,documentary:42,movie:38,series:38},media_format:"video"},{slug:"114",name:"History",categories:{movie:35,kids:44,cinema:10,series:80,documentary:90},media_format:"video"},{slug:"109",name:"Adventure",categories:{kids:88,cinema:86,documentary:82,series:88,movie:88},media_format:"video"},{slug:"101",name:"Action",categories:{documentary:50,kids:86,series:90,cinema:90,movie:90},media_format:"video"},{slug:"124",name:"Horror",categories:{cinema:76,documentary:40,series:78,movie:80},media_format:"video"},{slug:"115",name:"Comedy",categories:{cinema:84,documentary:46,series:86,kids:82,movie:86},media_format:"video"},{slug:"104",name:"Biography",categories:{series:46,documentary:88,cinema:10,movie:46},media_format:"video"},{slug:"118",name:"Music",categories:{kids:72,cinema:9,documentary:78,movie:32,series:32},media_format:"video"},{slug:"125",name:"Sport",categories:{cinema:7,kids:68,series:20,documentary:70,movie:20},media_format:"video"},{slug:"122",name:"Romance",categories:{documentary:34,cinema:78,movie:74,series:74},media_format:"video"},{slug:"103",name:"Kids",categories:{kids:76},media_format:"video"},{slug:"222",name:"Lifestyle",categories:{documentary:80,kids:74,series:34},media_format:"video"},{slug:"117",name:"Musical",categories:{kids:30,movie:78,cinema:8,series:30},media_format:"video"},{slug:"129",name:"Anime",categories:{cinema:5,movie:48,kids:84,series:48},media_format:"video"},{slug:"110",name:"Family",categories:{series:40,cinema:40,movie:40},media_format:"video"}];var $a=O('<div class="genre svelte-13nhocm"> </div>'),Qa=(e,t)=>N(t,!0),eo=O('<button class="genre expand svelte-13nhocm"> </button>'),to=O("<!> <!>",1);function no(e,t){ae(t,!0);let n=Z(!1);const r=G(()=>m(n)?t.genres:[t.genres[0]]);var i=to(),a=X(i);ut(a,17,()=>m(r),lt,(l,f)=>{var d=Xe();const s=G(()=>{var p;return(p=Xa.find(h=>h.slug===m(f)))==null?void 0:p.name});var v=X(d);{var _=p=>{var h=$a(),w=A(h);M(()=>B(w,Q(m(s)))),T(p,h)};U(v,p=>{m(s)&&p(_)})}T(l,d)});var o=C(a,2);{var u=l=>{var f=eo();f.__click=[Qa,n];var d=A(f);M(()=>B(d,`+${t.genres.length-1}`)),T(l,f)};U(o,l=>{!m(n)&&t.genres.length>1&&l(u)})}T(e,i),oe()}Ve(["click"]);function ro(e){let t=[];for(const n of e){let r=n;const i=t.find(u=>u.name===r.name),a=i==null?void 0:i.extra_info.category,o=r.extra_info.category;(a==="RENT"&&o==="BUY"||a==="BUY"&&o==="RENT")&&(t=t.filter(u=>u.name!==r.name),r={...r,extra_info:{...r.extra_info,category:"TVOD"}}),t.push(r)}return t}function Ge(e,t=1){e.role="heading",e.ariaLevel=t.toString()}wi();var io=Mt('<svg width="6" height="12" viewBox="0 0 6 12" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M0 11L5 6L0 1" stroke="currentColor" stroke-width="1.4" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function ao(e){var t=io();T(e,t)}function Zt(e){return e.replace("/src/img","")}var oo=(e,t,n)=>t(n()),so=O('<div class="arrow svelte-1itidbd"><!></div>'),lo=O('<a target="_blank" class="playlink svelte-1itidbd" rel="sponsored"><img alt="" height="32" width="32" class="svelte-1itidbd"> <div><span class="name svelte-1itidbd"> </span> <div class="category svelte-1itidbd"> </div></div> <!></a>'),uo=O('<div class="playlink empty svelte-1itidbd"> </div>'),co=O('<div class="heading svelte-1itidbd"> </div> <div class="playlinks svelte-1itidbd"><!> <!></div>',1);function fo(e,t){ae(t,!0);const n=ce(t,"list",3,!1),r=Qi("scope")==="modal",i=G(()=>t.playlinks.filter(h=>!!h.logo_url)),a=G(()=>ro(m(i))),o={SVOD:Q("Stream"),BUY:Q("Buy"),RENT:Q("Rent"),TVOD:Q("Rent Or Buy")};function u(h){ge(r?le.TitleModalPlaylinkClick:le.TitlePopoverPlaylinkClick,t.title,{playlink:h})}var l=co(),f=X(l),d=A(f);M(()=>B(d,Q("Where To Stream Online"))),xr(f,(h,w)=>Ge==null?void 0:Ge(h,w),()=>2);var s=C(f,2),v=A(s);ut(v,17,()=>m(a),lt,(h,w)=>{let g=()=>m(w).name,y=()=>m(w).url,b=()=>m(w).logo_url,I=()=>m(w).extra_info.category;var k=lo();k.__click=[oo,u,g];var E=A(k);M(()=>_e(E,"src",Zt(b())));var q=C(E,2),S=A(q),R=A(S),K=C(S,2),ee=A(K);M(()=>B(ee,o[I()]||Q("Stream")));var P=C(q,2);{var F=Y=>{var L=so(),V=A(L);ao(V),T(Y,L)};U(P,Y=>{n()&&Y(F)})}M(()=>{_e(k,"href",y()),_e(k,"data-playlink",g()),B(R,g())}),T(h,k)});var _=C(v,2);{var p=h=>{var w=uo(),g=A(w);M(()=>B(g,Q("Title Unavailable"))),T(h,w)};U(_,h=>{t.playlinks.length||h(p)})}M(()=>be(s,"list",n())),T(e,l),oe()}Ve(["click"]);var vo=(e,t)=>N(t,!0),_o=O('<button class="show-more svelte-1u3je71">Show more</button>'),ho=O('<div class="paragraph svelte-1u3je71" role="paragraph"> </div>'),mo=O('<div><span class="paragraph svelte-1u3je71" role="paragraph"> <!> <!></span> <!></div>');function po(e,t){ae(t,!0);const n=ce(t,"blurb",3,""),r=ce(t,"limit",3,200);let i=Z(!1);const a=G(()=>t.text.slice(0,r()));var o=mo(),u=A(o),l=A(u),f=C(l);{var d=h=>{var w=un("...");T(h,w)};U(f,h=>{!m(i)&&t.text.length>r()&&h(d)})}var s=C(f,2);{var v=h=>{var w=_o();w.__click=[vo,i],T(h,w)};U(s,h=>{!m(i)&&(t.text.length>r()||n())&&h(v)})}var _=C(u,2);{var p=h=>{var w=ho(),g=A(w);M(()=>B(g,n())),T(h,w)};U(_,h=>{m(i)&&h(p)})}M(()=>B(l,m(i)?t.text:m(a))),T(e,o),oe()}Ve(["click"]);var go=O('<div class="participant"> <div class="character svelte-15oguej"> <!></div></div>'),yo=O('<h2 class="svelte-15oguej">Cast</h2> <div class="participants svelte-15oguej"></div>',1);function wo(e,t){var n=yo(),r=C(X(n),2);ut(r,21,()=>t.participants,lt,(i,a)=>{var o=go(),u=A(o),l=C(u),f=A(l);M(()=>{var v;return B(f,((v=m(a).character)==null?void 0:v.slice(0,20))||"")});var d=C(f);{var s=v=>{var _=un("...");T(v,_)};U(d,v=>{var _;(_=m(a).character)!=null&&_.length&&v(s)})}M(()=>B(u,`${m(a).name??""} `)),T(i,o)}),T(e,n)}var ko=Mt('<svg width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M7 0.351929L9.163 4.72803L14 5.43408L10.5 8.8385L11.326 13.648L7 11.3761L2.674 13.648L3.5 8.8385L0 5.43408L4.837 4.72803L7 0.351929Z" fill="#F6C045"></path></svg>');function bo(e){var t=ko();T(e,t)}var Eo=O('<div class="top svelte-16h1v3j"><img class="poster svelte-16h1v3j"></div>'),So=O("<div> </div>"),To=O("<!> <!>",1),Ao=O('<img alt="" class="svelte-16h1v3j">'),xo=O('<div class="content svelte-16h1v3j" data-playpilot-link-injections-title=""><div class="header svelte-16h1v3j"><!> <div class="heading svelte-16h1v3j"> </div> <div class="info svelte-16h1v3j"><div class="imdb svelte-16h1v3j"><!> </div> <!> <div> </div> <div class="capitalize svelte-16h1v3j"> </div> <!></div></div> <div class="main"><!> <!></div></div> <div class="background svelte-16h1v3j"><!></div>',1);function Hr(e,t){ae(t,!0);const n=ce(t,"small",3,!1),r=ce(t,"compact",3,!1);let i=Z(!1),a=Z(!1),o=Z(!1);var u=xo(),l=X(u),f=A(l),d=A(f);{var s=L=>{var V=Eo(),H=A(V);M(()=>_e(H,"src",Zt(t.title.standing_poster))),M(()=>{_e(H,"alt",`Movie poster for '${t.title.title??""}'`),be(H,"loaded",m(i))}),it("load",H,()=>N(i,!0)),T(L,V)};U(d,L=>{r()||L(s)})}var v=C(d,2),_=A(v);xr(v,L=>Ge==null?void 0:Ge(L));var p=C(v,2),h=A(p),w=A(h);bo(w);var g=C(w),y=C(h,2);no(y,{get genres(){return t.title.genres}});var b=C(y,2),I=A(b),k=C(b,2),E=A(k);M(()=>B(E,Q(`Type: ${t.title.type}`)));var q=C(k,2);{var S=L=>{var V=So(),H=A(V);M(()=>B(H,`${t.title.length??""} ${Q("Minutes")??""}`)),T(L,V)};U(q,L=>{!n()&&t.title.length&&L(S)})}var R=C(f,2),K=A(R);fo(K,{get playlinks(){return t.title.providers},get title(){return t.title},list:!0});var ee=C(K,2);{var P=L=>{var V=To(),H=X(V);po(H,{get text(){return t.title.description},get blurb(){return t.title.blurb}});var Se=C(H,2);{var de=De=>{wo(De,{get participants(){return t.title.participants}})};U(Se,De=>{var Te;(Te=t.title.participants)!=null&&Te.length&&De(de)})}T(L,V)};U(ee,L=>{n()||L(P)})}var F=C(l,2),Y=A(F);va(Y,()=>m(o),L=>{var V=Ao();M(()=>_e(V,"src",Zt(m(o)?t.title.standing_poster:t.title.medium_poster))),M(()=>{be(V,"loaded",m(a)),be(V,"blur",m(o))}),it("load",V,()=>N(a,!0)),it("error",V,()=>N(o,!0)),T(L,V)}),M(()=>{_e(l,"data-playpilot-original-title",t.title.original_title),be(l,"small",n()),be(l,"compact",r()),be(v,"truncate",n()),B(_,t.title.title),B(g,` ${t.title.imdb_score??""}`),B(I,t.title.year),be(F,"faded",r())}),T(e,u),oe()}function Po(e,t){ae(t,!0);let n=Z(0);ge(le.TitlePopoverView,t.title),Ja(e,{get maxHeight(){return m(n)},set maxHeight(r){N(n,z(r))},children:(r,i)=>{var a=G(()=>!!m(n)&&m(n)<250);Hr(r,{get title(){return t.title},small:!0,get compact(){return m(a)}})},$$slots:{default:!0}}),oe()}var Io=(e,t,n,r)=>t(m(n).title_details,m(r)),Lo=O(' <span class="svelte-pfvkex"><button class="svelte-pfvkex"> </button></span>',1),Co=(e,t,n,r)=>t(m(n).title_details,r()),Do=O('<!> <a target="_blank"> </a>',1),No=O(" <!>.",1),jo=O("<!> <br>",1),Mo=O(" <br>",1),Oo=O('<span class="svelte-pfvkex"><!></span>'),Ro=O('<p class="svelte-pfvkex"></p>');function Fo(e,t){ae(t,!0);const n=ce(t,"onclickmodal",3,l=>null);function r(l,f){ge(le.AfterArticlePlaylinkClick,l,{playlink:f})}function i(l,f){ge(le.AfterArticleModalButtonClick,l),n()(f)}var a=Xe(),o=X(a);{var u=l=>{var f=Ro();ut(f,21,()=>t.linkInjections,lt,(d,s)=>{var v=Oo();const _=G(()=>{const{key:y,title:b,title_details:I,after_article_style:k}=m(s);return{key:y,title:b,title_details:I,after_article_style:k}}),p=G(()=>{var y;return((y=m(_).title_details)==null?void 0:y.providers)||[]});var h=A(v);{var w=y=>{var b=jo(),I=X(b);{var k=q=>{var S=Lo(),R=X(S);M(()=>B(R,`"${m(_).title??""}" ${Q("Is Available To Stream")??""} `));var K=C(R),ee=A(K);ee.__click=[Io,i,_,s];var P=A(ee);M(()=>B(P,Q("View Streaming Options"))),T(q,S)},E=q=>{var S=No(),R=X(S);M(()=>B(R,`"${m(_).title??""}" ${Q("Is Available To Stream On")??""} `));var K=C(R);ut(K,17,()=>m(p),lt,(ee,P,F)=>{let Y=()=>m(P).name,L=()=>m(P).url;var V=Do(),H=X(V);{var Se=Te=>{var ve=un();M(()=>B(ve,F===m(p).length-1?`, ${Q("And")}`:",")),T(Te,ve)};U(H,Te=>{F&&Te(Se)})}var de=C(H,2);de.__click=[Co,r,_,Y];var De=A(de);M(()=>{_e(de,"href",L()),B(De,Y())}),T(ee,V)}),T(q,S)};U(I,q=>{m(_).after_article_style==="modal_button"?q(k):q(E,!1)})}T(y,b)},g=y=>{var b=Mo(),I=X(b);M(()=>B(I,`"${m(_).title??""}" ${Q("Title Unavailable Suffix")??""} `)),T(y,b)};U(h,y=>{m(p).length?y(w):y(g,!1)})}M(()=>_e(v,"data-playpilot-injection-key",m(_).key)),T(d,v)}),T(l,f)};U(o,l=>{t.linkInjections.length&&l(u)})}T(e,a),oe()}Ve(["click"]);function Vo(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}function Kr(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function Fn(e,t,n=[]){var a,o;const r=document.createTreeWalker(t);let i;for(;(i=r.nextNode())&&!((a=i.nodeValue)!=null&&a.includes(e)&&!n.includes(((o=i.parentNode)==null?void 0:o.nodeName)||"")););return i}function Vn(e){const t=e.parentNode;return t?t.nodeName==="A"||!!t.closest("a"):!1}function qo(e,t,n,r){const i=Vo(t),a=Kr(t),o=e.slice(0,r),u=e.slice(r),l=/[-/\\^$*+?.()|[\]{}]/g,f=new RegExp(`${a.replace(l,"\\$&")}|${i.replace(l,"\\$&")}`),d=u.replace(f,n);return o+d}function Ne(e){return Kr(e).toLowerCase().replace(/\s+/g,"")}function As(e,t,n){const i=e.indexOf(t),a=Math.floor((n-t.length)/2);let o=Math.max(0,i-a),u=o+n;u>e.length&&(u=e.length,o=Math.max(0,u-n));let l=e.slice(o,u).trim();return o>0&&(l="…"+l),u<e.length&&(l+="…"),l}function Bo(e){let t=0;for(let n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return t}const pn="data-playpilot-injection-key",gn=`[${pn}]`,$e={};let Jt=null,bt=null;function Uo(e){const t=[],n=[e];for(;n.length>0;){const r=n.pop();if(t.includes(r)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|H[1-6])$/.test(r.tagName))continue;const i=Array.from(r.childNodes).some(o=>{var u;return o.nodeType===Node.TEXT_NODE&&((u=o.nodeValue)==null?void 0:u.trim())!==""});if(i&&r.tagName==="LI"){const o=r.closest("ul, ol");o&&!t.includes(o)&&t.push(o);continue}if(i){t.push(r);continue}const a=Array.from(r.children);for(let o=a.length-1;o>=0;o--)n.push(a[o])}return t}function Wr(){var t;const e=(t=window.PlayPilotLinkInjections)==null?void 0:t.selector;if(e){const n=e.replace(/(:)/g,"\\$1"),r=document.querySelector(n);if(r)return r}return document.querySelector("article")||document.querySelector("main")||document.body}function Ho(e,t,n={aiInjections:[],manualInjections:[]}){var d;const r=Jo(n);if(!r)return[];const i=Ne(e.map(s=>s.innerText).join(" ")),a=$o(r),o=a.filter(s=>i.includes(Ne(s.sentence))),u={},l={};for(const s of o){const v=e.findIndex(E=>Ne(E.innerText).includes(Ne(s.sentence))),_=e[v];if(!_)continue;const p=Fn(s.title,_,["A"]);if(!(p!=null&&p.nodeValue)||Vn(p)){const E=Fn(s.title,_);E&&Vn(E)&&(l[s.key]="Given text is already inside of a link.");continue}const h=document.createElement("span");h.dataset.playpilotInjectionKey=s.key;const w=document.createElement("a");w.innerText=s.title,w.href=s.playpilot_url,w.dataset.playpilotOriginalTitle=(d=s.title_details)==null?void 0:d.original_title,w.target="_blank",w.rel="noopener nofollow noreferrer",h.insertAdjacentElement("beforeend",w);const g=Bo(Object.values(u).filter(E=>E.elementIndex===v).map(E=>E.to)),y=_.innerHTML.indexOf(p.nodeValue),b=_.innerHTML.indexOf(s.sentence),I=Math.max(g,y,b,0);_.innerHTML=qo(_.innerHTML,s.title,h.outerHTML,I);const k=_.innerHTML.indexOf(h.outerHTML);u[s.key]={elementIndex:v,from:k,to:k+h.outerHTML.length}}Wo(a,t),Ko();const f=Qo(r);return f.length&&Yo(e,f,t),r.filter(s=>s.title_details).map((s,v)=>{const _=s.duplicate??(!s.manual&&es(s,v,r)),p=document.querySelector(`[${pn}="${s.key}"]`),h=Gr(s)&&!s.inactive&&!s.after_article&&!p,w=h?l[s.key]||(i.includes(Ne(s.sentence))?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...s,inactive:s.inactive??!1,duplicate:_,failed:h,failed_message:w}})}function Ko(){const e=Array.from(document.querySelectorAll(`${gn} a`)),t=["--playpilot-injection-text-color","--playpilot-injection-text-color-hover","--playpilot-injection-font-weight","--playpilot-injection-text-decoration","--playpilot-injection-text-decoration-hover","--playpilot-injection-background-color","--playpilot-injection-background-color-hover"];e.forEach(n=>{t.forEach(r=>{getComputedStyle(n).getPropertyValue(r)&&(n.dataset.usedCssVariables=`${n.dataset.usedCssVariables||""} ${r}`)})})}function Wo(e,t){window.addEventListener("click",r=>{const i=r.target;if(!(i!=null&&i.parentElement))return;const a=i.parentElement.getAttribute(pn);if(!a)return;const o=e.find(u=>a===u.key);o&&zo(r,o,t)}),Array.from(document.querySelectorAll(gn)).forEach(r=>{const i=r.dataset.playpilotInjectionKey,a=e.find(o=>i===o.key);a&&(r.addEventListener("mouseenter",o=>Go(o,a)),r.addEventListener("mouseleave",()=>xt(a)))})}function zo(e,t,n){e.ctrlKey||e.metaKey||e.button!==0||(e.preventDefault(),n(t),xt(t))}function Go(e,t){if(window.matchMedia("(pointer: coarse)").matches)return;const n=e.currentTarget;Jt=n,setTimeout(()=>{if($e[t.key]||Jt!==n)return;const r=cn(Po,{target:n,props:{title:t.title_details}});$e[t.key]={injection:t,component:r}},100)}function xt(e,t=!0){const n=$e[e.key];Jt=null,n&&(Ar(n.component,{outro:t}),delete $e[e.key])}function Yo(e,t,n){var u,l;if(!t.length)return;const r=document.createElement("div"),i=(u=window.PlayPilotLinkInjections)==null?void 0:u.after_article_selector,a=(i?document.querySelector(i):null)||e[e.length-1],o=((l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_insert_position)||"afterend";r.dataset.playpilotAfterArticlePlaylinks="true",a.insertAdjacentElement(o,r),bt=cn(Fo,{target:r,props:{linkInjections:t,onclickmodal:n}})}function Zo(){var e;bt&&(Ar(bt),(e=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||e.remove(),bt=null)}function Xt(){Object.values($e).forEach(t=>xt(t.injection)),document.querySelectorAll(gn).forEach(t=>t.outerHTML=t.textContent||""),Object.values($e).forEach(({injection:t})=>xt(t,!1)),Zo()}function Jo({aiInjections:e,manualInjections:t}){return[...t.map(n=>({...n,manual:!0})),...e]}function Xo(e){return{aiInjections:e.filter(t=>!t.manual),manualInjections:e.filter(t=>t.manual)}}function zr(e){return!e.inactive&&!e.removed&&!e.duplicate&&!!e.title_details&&Gr(e)}function Gr(e){return e.in_text||e.in_text===void 0?!0:!!e.after_article}function $o(e){return Yr(e).filter(t=>t.in_text!==!1&&zr(t))}function Qo(e){return Yr(e).filter(t=>t.after_article===!0&&zr(t))}function Yr(e){return e.filter(t=>t.removed||t.inactive?!1:t.manual&&!t.removed&&!t.inactive?!0:!e.some(n=>n.manual&&(n.removed||n.inactive)&&Zr(n,t)))}function es(e,t,n){return n.some((r,i)=>t!==i&&r.manual&&Zr(r,e))}function Zr(e,t){return e.title===t.title&&Ne(e.sentence)===Ne(t.sentence)}function ts(){const e=Wr();return{heading:ns(e),modified_time:rs(e),published_time:is(e)}}function ns(e){const t=e.querySelector("h1")||document.querySelector("h1");return(t==null?void 0:t.innerText.trim())||null}function rs(e){const t=document.querySelector('meta[property*="modified_time"]')||e.querySelector('[itemprop="dateModified"]')||document.querySelector('[itemprop="dateModified"]')||null,n=(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?Jr(n):null}function is(e){const t=document.querySelector('meta[property*="published_time"]')||e.querySelector('[itemprop="datePublished"]')||document.querySelector('[itemprop="datePublished"]')||e.querySelector("time")||document.querySelector("time")||e.querySelector("[datetime]")||document.querySelector("[datetime]")||null,n=(t==null?void 0:t.getAttribute("content"))||(t==null?void 0:t.getAttribute("datetime"))||(t==null?void 0:t.innerText);return n?Jr(n):null}function Jr(e){try{return new Date(e).toISOString()}catch{return null}}function Xr(){return location.protocol+"//"+location.host+location.pathname}let Ft=null;async function $r(e,t,{hash:n=qr(t),params:r={}}={}){const i=new Headers({"Content-Type":"application/json"}),a=yn(),o=Vr()?await Fr():!1,u=Br(),l=ts();if(!a)throw new Error("No token was provided");const f=await fetch(vn+`/external-pages/?api-token=${a}&include_title_details=true${o?"&editorial_mode_enabled=true":""}&language=${u}`,{headers:i,method:"POST",body:JSON.stringify({hash:n,url:e,metadata:l,page_text:t,...r})});if(!f.ok)throw f;return await f.json()}async function qn(e,t,{requireCompletedResult:n=!1,pollInterval:r=3e3,maxTries:i=600}={}){let a=qr(t),o=0;Ft&&clearTimeout(Ft);const u=async(l,f)=>{try{const d=await $r(e,t,{hash:a});if(n&&d.automation_enabled&&d.ai_running)throw new Error;d.link_injections=Bn(d.link_injections||[]),d.ai_injections=Bn(d.ai_injections||[]),l(d);return}catch{if(o++,o>=i){i>1&&console.error("Max poll limit exceeded. Please return later."),l();return}Ft=setTimeout(()=>u(l),r)}};return new Promise(u)}async function xs(e,t){var o;const n=(o=window.PlayPilotLinkInjections)==null?void 0:o.selector,i=e.filter(u=>u.manual).map(u=>({sid:u.sid,title:u.title,sentence:u.sentence,playpilot_url:u.playpilot_url,after_article:!!u.after_article,after_article_style:u.after_article_style||null,in_text:u.in_text??!0,inactive:!!u.inactive,removed:!!u.removed}));if(!await $r(Xr(),t,{params:{private_token:hn(),link_injections:i,text_selector:n}}))throw new Error("saveLinkInjections response was faulty");return e}async function as(){const e=new Headers({"Content-Type":"application/json"}),t=yn();if(!t)throw new Error("No token was provided");const n=await fetch(vn+`/domains/config?api-token=${t}`,{headers:e});if(!n.ok)throw n;try{return await n.json()||null}catch{return null}}function Bn(e){return e.map(t=>({...t,key:os(t.sid)}))}function os(e){return e+"-"+(Math.random()+1).toString(36).substring(7)}function yn(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}function ss(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}var ls=Mt('<svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M14 2L2 14M2 2L14 14" stroke="currentColor" stroke-width="1.33" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Qr(e){var t=ls();T(e,t)}function us(e,t){ae(t,!0);const n=ce(t,"size",3,"margin(2)"),r=ce(t,"onclick",3,()=>null),i=Da(t,["$$slots","$$events","$$legacy","children","size","onclick"]);var a=Xe(),o=X(a);ya(o,()=>t.href?"a":"button",!1,(u,l)=>{let f;M(()=>{f=Ea(u,f,{role:t.href?"link":"button",onclick:r(),class:"button",...i},"svelte-1qqv88o",u.namespaceURI===Zn,u.nodeName.includes("-")),Lr(u,"--size",n())});var d=Xe(),s=X(d);fn(s,()=>t.children??se),T(l,d)}),T(e,a),oe()}var cs=(e,t)=>t()(),fs=O('<div class="modal svelte-wrncjp"><div class="dialog svelte-wrncjp" role="dialog"><div class="close svelte-wrncjp"><!></div> <!></div> <div class="backdrop svelte-wrncjp"></div></div>');function ds(e,t){ae(t,!0);const n=ce(t,"onclose",3,()=>null),r=ce(t,"onscroll",3,()=>null);wr("scope","modal"),dn(()=>{const s=document.body.style.overflowY;return document.body.style.overflowY="hidden",()=>document.body.style.overflowY=s||""});function i(s){return window.innerWidth<600?Ur(s,{duration:250,y:window.innerHeight}):Ya(s,{duration:150,start:.85})}var a=fs();it("keydown",Bt,({key:s})=>{s==="Escape"&&n()()});var o=A(a),u=A(o),l=A(u);us(l,{onclick:()=>n()(),children:(s,v)=>{Qr(s)},$$slots:{default:!0}});var f=C(u,2);fn(f,()=>t.children);var d=C(o,2);d.__click=[cs,n],it("scroll",o,function(...s){var v;(v=r())==null||v.apply(this,s)}),Gt(3,o,()=>i),Gt(3,a,()=>Ga,()=>({duration:150})),T(e,a),oe()}Ve(["click"]);function vs(e,t){ae(t,!0),ge(le.TitleModalView,t.title);let n=!1;function r(){n||(ge(le.TitleModalScroll,t.title),n=!0)}ds(e,{get onclose(){return t.onclose},onscroll:r,children:(i,a)=>{Hr(i,{get title(){return t.title}})},$$slots:{default:!0}}),oe()}var _s=Mt('<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 57.48 62.96"><defs><style>.playpilot-logo{fill:url(#playpilot-linear-gradient);}</style><linearGradient id="playpilot-linear-gradient" x1="-90.03" y1="-40.23" x2="-34.8" y2="-101.48" gradientTransform="translate(74.02 108.65)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#de00b9"></stop><stop offset="0.99" stop-color="#ff557b"></stop></linearGradient></defs><path class="playpilot-logo" d="M57.48,31.48C57.48,22.17,20.85,2.19,9.2.18,7.42-.12,3.78-.37,1.36,2.25-4.32,8.39,9.62,21.5,9.62,31.48S-4.32,54.57,1.36,60.72c2.42,2.61,6.06,2.37,7.84,2.06C20.85,60.78,57.48,40.79,57.48,31.48Z"></path></svg>');function hs(e){var t=_s();T(e,t)}var ms=O('<div class="trigger svelte-qee95d"><button type="button" class="button svelte-qee95d" title="Show PlayPilot TPI editor"><!></button> <button type="button" class="button close svelte-qee95d" title="Close PlayPilot TPI"><!></button></div>');function ps(e,t){var n=ms(),r=A(n);r.__click=function(...u){var l;(l=t.onclick)==null||l.apply(this,u)};var i=A(r);hs(i);var a=C(r,2);a.__click=function(...u){var l;(l=t.onclose)==null||l.apply(this,u)};var o=A(a);Qr(o),T(e,n)}Ve(["click"]);var gs=O('<div class="playpilot-link-injections svelte-4l9ehd"><!> <!> <!></div>');function ys(e,t){ae(t,!0);const n=Wr(),r=Uo(n),i=r.map(P=>P.outerHTML).join("");let a=Z(null),o=Z(null),u=Z(z(Vr())),l=Z(!!hn()),f=Z(!1),d=Z(!0),s=Z(z([])),v=Z(void 0);const _=G(()=>m(a)||{}),p=G(()=>bn(m(_).ai_injections,()=>[],!0)),h=G(()=>bn(m(_).link_injections,()=>[],!0));rr(()=>{m(u)&&!m(d)&&g()}),dn(()=>{if(!ss())return(async()=>(await w(),ge(le.ArticlePageView)))(),()=>Xt()});async function w(){N(d,!0),m(u)&&N(f,z(await Fr()));const P=Xr();try{const F=await as();if(!m(u)&&(F!=null&&F.exclude_urls_pattern)&&P.match(F.exclude_urls_pattern))return}catch(F){ge(le.FetchingConfigFailed),console.error("TPI Config failed to fetch",F);return}if(N(a,z(await qn(P,i,{maxTries:1}))),N(d,!1),!!m(a)){if(qa({organizationSid:m(a).organization_sid,domainSid:m(a).domain_sid}),!m(a).ai_running||!m(a).automation_enabled){y({aiInjections:m(p),manualInjections:m(h)});return}m(u)&&(N(a,z(await qn(P,i,{requireCompletedResult:!0}))),y({aiInjections:m(p),manualInjections:m(h)}))}}function g(){Xt(),y(Xo(m(s)))}function y(P={aiInjections:m(p),manualInjections:m(h)}){const F=Ho(r,b,P);JSON.stringify(F)!==JSON.stringify(m(s))&&N(s,z(F));const Y=F.filter(L=>!L.failed);Y.length&&(m(u)||ge(le.ArticleInjected,null,{manual:Y.filter(L=>L.manual).length,ai:Y.filter(L=>!L.manual).length}))}function b(P){N(o,z(P))}function I(){N(u,!0),Ha(),w()}var k=gs(),E=A(k);{var q=P=>{ps(P,{onclick:I,onclose:()=>{N(l,!1),Ua()}})};U(E,P=>{m(l)&&!m(u)&&P(q)})}var S=C(E,2);{var R=P=>{var F=Xe(),Y=X(F);da(Y,()=>Ra(()=>import("./Editor-vJiCq2Zj.js"),[]),null,(L,V)=>{var H=Xe();const Se=G(()=>m(V).default);var de=X(H),De=G(()=>{var ve;return(ve=m(a))==null?void 0:ve.injections_enabled}),Te=G(()=>{var ve,mt,qe,wn,kn;return{automationEnabled:(ve=m(a))==null?void 0:ve.automation_enabled,aiRunning:((mt=m(a))==null?void 0:mt.ai_running)&&((qe=m(a))==null?void 0:qe.automation_enabled),message:(wn=m(a))==null?void 0:wn.ai_progress_message,percentage:(kn=m(a))==null?void 0:kn.ai_progress_percentage}});ga(de,()=>m(Se),(ve,mt)=>{Dr(mt(ve,{htmlString:i,get loading(){return m(d)},get injectionsEnabled(){return m(De)},get aiStatus(){return m(Te)},get linkInjections(){return m(s)},set linkInjections(qe){N(s,z(qe))}}),qe=>N(v,z(qe)),()=>m(v))}),T(L,H)}),T(P,F)};U(S,P=>{m(u)&&m(f)&&P(R)})}var K=C(S,2);{var ee=P=>{vs(P,{get title(){return m(o).title_details},onclose:()=>N(o,null)})};U(K,P=>{m(o)&&m(o).title_details&&P(ee)})}T(e,k),oe()}window.PlayPilotLinkInjections={token:"",editorial_token:"",selector:"",after_article_selector:"",after_article_insert_position:"",language:null,app:null,initialize(e={token:"",selector:"",after_article_selector:"",language:null,editorial_token:""}){if(!e.token){console.error("An API token is required.");return}this.token=e.token,this.editorial_token=e.editorial_token,this.selector=e.selector,this.after_article_selector=e.after_article_selector,this.after_article_insert_position=e.after_article_insert_position,this.language=e.language,this.app&&this.destroy();const t=document.createElement("div");t.id="playpilot-link-injection",document.body.insertAdjacentElement("beforeend",t),this.app=cn(ys,{target:t})},destroy(){if(!this.app)return;this.app=null;const e=document.getElementById("playpilot-link-injection");e&&e.remove(),Xt()}};export{Bt as $,m as A,C as B,Gr as C,G as D,un as E,Gt as F,Ts as G,it as H,Dr as I,N as J,Z as K,Ur as L,dn as M,ge as N,Zt as O,B as P,Ss as Q,As as R,Uo as S,le as T,Wr as U,Ne as V,Ga as W,yn as X,vn as Y,bo as Z,Es as _,ye as a,z as a0,rr as a1,ut as a2,Kr as a3,us as a4,xr as a5,Ge as a6,os as a7,va as a8,lt as a9,Lr as aa,bn as ab,bs as ac,xs as ad,Ce as b,Tr as c,Je as d,we as e,be as f,Ye as g,T as h,_t as i,Ve as j,ae as k,ws as l,_e as m,Mt as n,oe as o,ce as p,O as q,ir as r,fn as s,M as t,Oe as u,A as v,U as w,Xe as x,X as y,ks as z};
10
-
11
- })();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playpilot/tpi",
3
- "version": "3.3.0-beta.1",
3
+ "version": "3.3.0-beta.2",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite dev",
package/vite.config.js CHANGED
@@ -33,12 +33,10 @@ export default defineConfig(({ command }) => ({
33
33
  const sourcePath = path.join(assetsPath, jsFile)
34
34
  const targetPath = path.join(distPath, 'link-injections.js')
35
35
 
36
- // Read original file and wrap it in a self contained function
36
+ // Read original file and write it to a new file
37
37
  const originalContent = fs.readFileSync(sourcePath, 'utf8')
38
- const wrappedContent = `(() => {\n${originalContent}\n})();\n`
38
+ fs.writeFileSync(targetPath, originalContent)
39
39
 
40
- // Write a new file
41
- fs.writeFileSync(targetPath, wrappedContent)
42
40
  console.log(`Moved and renamed ${jsFile} to link-injections.js`)
43
41
 
44
42
  // Remove original file