@playpilot/tpi 3.3.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/link-injections.js +8 -8
- package/package.json +1 -1
- package/src/lib/linkInjection.ts +29 -13
- package/src/lib/scss/_mixins.scss +13 -0
- package/src/routes/+page.svelte +1 -23
- package/src/routes/components/AfterArticlePlaylinks.svelte +5 -6
- package/src/routes/components/Editorial/Editor.svelte +1 -0
- package/src/routes/components/Modal.svelte +1 -0
- package/src/routes/components/Popover.svelte +1 -0
- package/src/tests/lib/linkInjection.test.js +51 -56
- package/src/tests/routes/components/Editorial/EditorItem.test.js +7 -7
package/dist/link-injections.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
(() => {
|
|
2
|
-
(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)}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-1kpafo0{color:currentColor}p.svelte-1kpafo0{margin:0}.ai-indicator.svelte-1kpafo0{position:relative;margin:0 8px}.content.svelte-1kpafo0{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-1kpafo0{display:flex;margin-top:4px;font-style:italic}.icon.svelte-1kpafo0{color:var(--playpilot-green)}.border.svelte-1kpafo0{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-1kpafo0 .border:where(.svelte-1kpafo0){background:var(--playpilot-light)}@keyframes svelte-1kpafo0-rotate{to{rotate:360deg}}.animator.svelte-1kpafo0{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-1kpafo0-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-1kpafo0{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-1kpafo0{height:.5em;border-radius:.25rem;background:var(--playpilot-dark)}.loading-bar-fill.svelte-1kpafo0{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-1kpafo0{text-align:right}@keyframes svelte-1kpafo0-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0){animation:svelte-1kpafo0-fade 2s infinite}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0):nth-child(1){animation-delay:.2s}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0):nth-child(2){animation-delay:.4s}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0):nth-child(3){animation-delay:.6s}.dismiss.svelte-1kpafo0{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:4px;padding:4px;border:2px solid var(--playpilot-content-light);border-radius:4px;background:var(--playpilot-light);font-family:inherit;color:var(--playpilot-text-color-alt);font-size:12px;line-height:1;cursor:pointer}.dismiss.svelte-1kpafo0:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.editor.svelte-1ybwhez{z-index:2147483646;display:flex;flex-direction:column;position:fixed;bottom:16px;right:16px;width:100%;max-width:352px;height:min(70vh,640px);min-height:min(25rem,80vh);margin:0;padding:16px;border-radius:24px;background:var(--playpilot-dark);box-shadow:var(--playpilot-shadow-large);color:var(--playpilot-text-color);font-family:var(--playpilot-font-family);transition:border-radius .1s;overflow-y:auto;overflow-x:hidden;line-height:normal}.editor.svelte-1ybwhez svg{fill:none}.panel-open.svelte-1ybwhez{overflow:hidden}.loading.svelte-1ybwhez{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-1ybwhez,.header.svelte-1ybwhez{z-index:20;position:sticky;top:-16px;margin:-16px -16px 0}.handle.svelte-1ybwhez{opacity:0;transition:opacity .15s}.editor.svelte-1ybwhez:hover .handle:where(.svelte-1ybwhez){opacity:1}.header.svelte-1ybwhez{z-index:5;display:flex;align-items:center;padding:16px 16px 16px 24px;margin:0 -16px;border:0;background:var(--playpilot-dark)}.loading.svelte-1ybwhez .header:where(.svelte-1ybwhez){margin:-16px}.heading.svelte-1ybwhez{margin:0 12px 0 0;color:var(--playpilot-text-color);font-size:20px;font-weight:400;line-height:normal}.bubble.svelte-1ybwhez{-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-1ybwhez{padding-top:8px;margin-bottom:auto}.empty.svelte-1ybwhez{padding:8px;font-size:13.6px;font-style:italic;color:var(--playpilot-text-color-alt)}.save.svelte-1ybwhez{z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:sticky;bottom:0;left:0;width:100%;margin-top:16px;padding:8px;border:0;border-radius:32px;background:var(--playpilot-content);box-shadow:0 0 16px 16px var(--playpilot-dark);transition:opacity .1s;font-family:inherit;color:var(--playpilot-text-color-alt);font-size:13.6px;cursor:pointer}.save.svelte-1ybwhez:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.save[disabled].svelte-1ybwhez{opacity:.75;background:var(--playpilot-light);color:var(--playpilot-content-light)}.error.svelte-1ybwhez{margin-top:8px}.alert.svelte-1ybwhez{margin:0 8px 8px}.panel.svelte-1ybwhez{z-index:10;position:absolute;top:0;left:0;width:100%;height:100%;padding:24px;background:var(--playpilot-dark);overflow-y:auto}.trigger.svelte-qee95d{position:fixed;bottom:16px;right:16px}.button.svelte-qee95d{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:48px;height:48px;border:0;padding:12px;border-radius:50%;background:var(--playpilot-light);box-shadow:var(--playpilot-shadow-large);transition:transform 50ms;line-height:24px;text-align:center;font-size:13.6px}.button.svelte-qee95d:hover{filter:brightness(1.1);transform:scale(1.05)}.button.svelte-qee95d svg{width:100%}.close.svelte-qee95d{display:flex;text-align:center;justify-content:center;position:absolute;top:-8px;right:-8px;width:24px;height:24px;padding:4px;background:var(--playpilot-content);color:#fff}.close.svelte-qee95d svg{width:12px}: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}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
3
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();const kn=!1;var Ln=Array.isArray,Pr=Array.prototype.indexOf,Mn=Array.from,jr=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,yi=Object.getOwnPropertyDescriptors,Nr=Object.prototype,Lr=Array.prototype,Dn=Object.getPrototypeOf;function _t(e){return typeof e=="function"}const Le=()=>{};function Mr(e){for(var t=0;t<e.length;t++)e[t]()}function $t(e,t,n=!1){return e===void 0?n?t():t:e}const Me=2,wi=4,Mt=8,Qt=16,Re=32,Dt=64,bn=128,st=256,Zt=512,Se=1024,nt=2048,en=4096,Fe=8192,wt=16384,ki=32768,kt=65536,Dr=1<<17,Or=1<<19,bi=1<<20,et=Symbol("$state"),xi=Symbol("legacy props"),Rr=Symbol("");function Si(e){return e===this.v}function tn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Hr(e,t){return e!==t}function On(e){return!tn(e,this.v)}function Fr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function qr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Br(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Vr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Ur(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function zr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Wr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Kr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Yr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let bt=!1,$r=!1;function Zr(){bt=!0}const Rn=1,Hn=2,Ei=4,Gr=8,Jr=16,Xr=1,Qr=2,ea=4,ta=8,na=16,ia=1,ra=2,aa=4,oa=1,la=2,pe=Symbol(),Ti="http://www.w3.org/2000/svg";function be(e,t){var n={f:0,v:e,reactions:null,equals:Si,rv:0,wv:0};return n}function K(e){return sa(be(e))}function Ai(e,t=!1){var i;const n=be(e);return t||(n.equals=On),bt&&te!==null&&te.l!==null&&((i=te.l).s??(i.s=[])).push(n),n}function sa(e){return Q!==null&&Q.f&Me&&(qe===null?wa([e]):qe.push(e)),e}function P(e,t){return Q!==null&&Ft()&&Q.f&(Me|Qt)&&(qe===null||!qe.includes(e))&&Yr(),xn(e,t)}function xn(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Wi(),Ii(e,nt),Ft()&&z!==null&&z.f&Se&&!(z.f&Re)&&(ge!==null&&ge.includes(e)?(Ue(z,nt),ln(z)):tt===null?ka([e]):tt.push(e))),t}function Ii(e,t){var n=e.reactions;if(n!==null)for(var i=Ft(),r=n.length,a=0;a<r;a++){var o=n[a],l=o.f;l&nt||!i&&o===z||(Ue(o,t),l&(Se|st)&&(l&Me?Ii(o,en):ln(o)))}}let Ci=!1;function G(e,t=null,n){if(typeof e!="object"||e===null||et in e)return e;const i=Dn(e);if(i!==Nr&&i!==Lr)return e;var r=new Map,a=Ln(e),o=be(0);a&&r.set("length",be(e.length));var l;return new Proxy(e,{defineProperty(d,u,v){(!("value"in v)||v.configurable===!1||v.enumerable===!1||v.writable===!1)&&zr();var s=r.get(u);return s===void 0?(s=be(v.value),r.set(u,s)):P(s,G(v.value,l)),!0},deleteProperty(d,u){var v=r.get(u);if(v===void 0)u in d&&r.set(u,be(pe));else{if(a&&typeof u=="string"){var s=r.get("length"),h=Number(u);Number.isInteger(h)&&h<s.v&&P(s,h)}P(v,pe),ei(o)}return!0},get(d,u,v){var m;if(u===et)return e;var s=r.get(u),h=u in d;if(s===void 0&&(!h||(m=Qe(d,u))!=null&&m.writable)&&(s=be(G(h?d[u]:pe,l)),r.set(u,s)),s!==void 0){var g=c(s);return g===pe?void 0:g}return Reflect.get(d,u,v)},getOwnPropertyDescriptor(d,u){var v=Reflect.getOwnPropertyDescriptor(d,u);if(v&&"value"in v){var s=r.get(u);s&&(v.value=c(s))}else if(v===void 0){var h=r.get(u),g=h==null?void 0:h.v;if(h!==void 0&&g!==pe)return{enumerable:!0,configurable:!0,value:g,writable:!0}}return v},has(d,u){var g;if(u===et)return!0;var v=r.get(u),s=v!==void 0&&v.v!==pe||Reflect.has(d,u);if(v!==void 0||z!==null&&(!s||(g=Qe(d,u))!=null&&g.writable)){v===void 0&&(v=be(s?G(d[u],l):pe),r.set(u,v));var h=c(v);if(h===pe)return!1}return s},set(d,u,v,s){var S;var h=r.get(u),g=u in d;if(a&&u==="length")for(var m=v;m<h.v;m+=1){var f=r.get(m+"");f!==void 0?P(f,pe):m in d&&(f=be(pe),r.set(m+"",f))}h===void 0?(!g||(S=Qe(d,u))!=null&&S.writable)&&(h=be(void 0),P(h,G(v,l)),r.set(u,h)):(g=h.v!==pe,P(h,G(v,l)));var p=Reflect.getOwnPropertyDescriptor(d,u);if(p!=null&&p.set&&p.set.call(s,v),!g){if(a&&typeof u=="string"){var y=r.get("length"),w=Number(u);Number.isInteger(w)&&w>=y.v&&P(y,w+1)}ei(o)}return!0},ownKeys(d){c(o);var u=Reflect.ownKeys(d).filter(h=>{var g=r.get(h);return g===void 0||g.v!==pe});for(var[v,s]of r)s.v!==pe&&!(v in d)&&u.push(v);return u},setPrototypeOf(){Wr()}})}function ei(e,t=1){P(e,e.v+t)}var me,Pi,ji;function ca(){if(me===void 0){me=window;var e=Element.prototype,t=Node.prototype;Pi=Qe(t,"firstChild").get,ji=Qe(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 Ot(e=""){return document.createTextNode(e)}function ot(e){return Pi.call(e)}function nn(e){return ji.call(e)}function b(e,t){return ot(e)}function ee(e,t){{var n=ot(e);return n instanceof Comment&&n.data===""?nn(n):n}}function T(e,t=1,n=!1){let i=e;for(;t--;)i=nn(i);return i}function ua(e){e.textContent=""}function U(e){var t=Me|nt;z===null?t|=st:z.f|=bi;var n=Q!==null&&Q.f&Me?Q:null;const i={children:null,ctx:te,deps:null,equals:Si,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??z};return n!==null&&(n.children??(n.children=[])).push(i),i}function da(e){const t=U(e);return t.equals=On,t}function Ni(e){var t=e.children;if(t!==null){e.children=null;for(var n=0;n<t.length;n+=1){var i=t[n];i.f&Me?Fn(i):De(i)}}}function fa(e){for(var t=e.parent;t!==null;){if(!(t.f&Me))return t;t=t.parent}return null}function Li(e){var t,n=z;je(fa(e));try{Ni(e),t=Ki(e)}finally{je(n)}return t}function Mi(e){var t=Li(e),n=(at||e.f&st)&&e.deps!==null?en:Se;Ue(e,n),e.equals(t)||(e.v=t,e.wv=Wi())}function Fn(e){Ni(e),Pt(e,0),Ue(e,wt),e.v=e.children=e.deps=e.ctx=e.reactions=null}function va(e){z===null&&Q===null&&Br(),Q!==null&&Q.f&st&&qr(),Vn&&Fr()}function _a(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function xt(e,t,n,i=!0){var r=(e&Dt)!==0,a=z,o={ctx:te,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|nt,first:null,fn:t,last:null,next:null,parent:r?null:a,prev:null,teardown:null,transitions:null,wv:0};if(n){var l=ht;try{ti(!0),on(o),o.f|=ki}catch(v){throw De(o),v}finally{ti(l)}}else t!==null&&ln(o);var d=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&bi)===0;if(!d&&!r&&i&&(a!==null&&_a(o,a),Q!==null&&Q.f&Me)){var u=Q;(u.children??(u.children=[])).push(o)}return o}function ha(e){const t=xt(Mt,null,!1);return Ue(t,Se),t.teardown=e,t}function rn(e){va();var t=z!==null&&(z.f&Re)!==0&&te!==null&&!te.m;if(t){var n=te;(n.e??(n.e=[])).push({fn:e,effect:z,reaction:Q})}else{var i=Rt(e);return i}}function ga(e){const t=xt(Dt,e,!0);return(n={})=>new Promise(i=>{n.outro?mt(t,()=>{De(t),i(void 0)}):(De(t),i(void 0))})}function Rt(e){return xt(wi,e,!1)}function qn(e){return xt(Mt,e,!0)}function O(e){return ct(e)}function ct(e,t=0){return xt(Mt|Qt|t,e,!0)}function $e(e,t=!0){return xt(Mt|Re,e,!0,t)}function Di(e){var t=e.teardown;if(t!==null){const n=Vn,i=Q;ni(!0),Be(null);try{t.call(null)}finally{ni(n),Be(i)}}}function Oi(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var n=0;n<t.length;n+=1)Fn(t[n])}}function Ri(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var i=n.next;De(n,t),n=i}}function ma(e){for(var t=e.first;t!==null;){var n=t.next;t.f&Re||De(t),t=n}}function De(e,t=!0){var n=!1;if((t||e.f&Or)&&e.nodes_start!==null){for(var i=e.nodes_start,r=e.nodes_end;i!==null;){var a=i===r?null:nn(i);i.remove(),i=a}n=!0}Ri(e,t&&!n),Oi(e),Pt(e,0),Ue(e,wt);var o=e.transitions;if(o!==null)for(const d of o)d.stop();Di(e);var l=e.parent;l!==null&&l.first!==null&&Hi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Hi(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function mt(e,t){var n=[];Bn(e,n,!0),Fi(n,()=>{De(e),t&&t()})}function Fi(e,t){var n=e.length;if(n>0){var i=()=>--n||t();for(var r of e)r.out(i)}else t()}function Bn(e,t,n){if(!(e.f&Fe)){if(e.f^=Fe,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var r=i.next,a=(i.f&kt)!==0||(i.f&Re)!==0;Bn(i,t,a?n:!1),i=r}}}function At(e){qi(e,!0)}function qi(e,t){if(e.f&Fe){qt(e)&&on(e),e.f^=Fe;for(var n=e.first;n!==null;){var i=n.next,r=(n.f&kt)!==0||(n.f&Re)!==0;qi(n,r?t:!1),n=i}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let Gt=!1,Sn=[];function Bi(){Gt=!1;const e=Sn.slice();Sn=[],Mr(e)}function Ht(e){Gt||(Gt=!0,queueMicrotask(Bi)),Sn.push(e)}function pa(){Gt&&Bi()}function Vi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const Ui=0,ya=1;let Wt=!1,Kt=Ui,It=!1,Ct=null,ht=!1,Vn=!1;function ti(e){ht=e}function ni(e){Vn=e}let rt=[],gt=0;let Q=null;function Be(e){Q=e}let z=null;function je(e){z=e}let qe=null;function wa(e){qe=e}let ge=null,ke=0,tt=null;function ka(e){tt=e}let zi=1,En=0,at=!1,te=null;function Wi(){return++zi}function Ft(){return!bt||te!==null&&te.l===null}function qt(e){var u;var t=e.f;if(t&nt)return!0;if(t&en){var n=e.deps,i=(t&st)!==0;if(n!==null){var r,a,o=(t&Zt)!==0,l=i&&z!==null&&!at,d=n.length;if(o||l){for(r=0;r<d;r++)a=n[r],(o||!((u=a==null?void 0:a.reactions)!=null&&u.includes(e)))&&(a.reactions??(a.reactions=[])).push(e);o&&(e.f^=Zt)}for(r=0;r<d;r++)if(a=n[r],qt(a)&&Mi(a),a.wv>e.wv)return!0}(!i||z!==null&&!at)&&Ue(e,Se)}return!1}function ba(e,t){for(var n=t;n!==null;){if(n.f&bn)try{n.fn(e);return}catch{n.f^=bn}n=n.parent}throw Wt=!1,e}function xa(e){return(e.f&wt)===0&&(e.parent===null||(e.parent.f&bn)===0)}function an(e,t,n,i){if(Wt){if(n===null&&(Wt=!1),xa(t))throw e;return}n!==null&&(Wt=!0);{ba(e,t);return}}function Ki(e){var h;var t=ge,n=ke,i=tt,r=Q,a=at,o=qe,l=te,d=e.f;ge=null,ke=0,tt=null,Q=d&(Re|Dt)?null:e,at=!ht&&(d&st)!==0,qe=null,te=e.ctx,En++;try{var u=(0,e.fn)(),v=e.deps;if(ge!==null){var s;if(Pt(e,ke),v!==null&&ke>0)for(v.length=ke+ge.length,s=0;s<ge.length;s++)v[ke+s]=ge[s];else e.deps=v=ge;if(!at)for(s=ke;s<v.length;s++)((h=v[s]).reactions??(h.reactions=[])).push(e)}else v!==null&&ke<v.length&&(Pt(e,ke),v.length=ke);return u}finally{ge=t,ke=n,tt=i,Q=r,at=a,qe=o,te=l}}function Sa(e,t){let n=t.reactions;if(n!==null){var i=Pr.call(n,e);if(i!==-1){var r=n.length-1;r===0?n=t.reactions=null:(n[i]=n[r],n.pop())}}n===null&&t.f&Me&&(ge===null||!ge.includes(t))&&(Ue(t,en),t.f&(st|Zt)||(t.f^=Zt),Pt(t,0))}function Pt(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)Sa(e,n[i])}function on(e){var t=e.f;if(!(t&wt)){Ue(e,Se);var n=z,i=te;z=e;try{t&Qt?ma(e):Ri(e),Oi(e),Di(e);var r=Ki(e);e.teardown=typeof r=="function"?r:null,e.wv=zi;var a=e.deps,o;kn&&$r&&e.f&nt}catch(l){an(l,e,n,i||e.ctx)}finally{z=n}}}function Yi(){if(gt>1e3){gt=0;try{Vr()}catch(e){if(Ct!==null)an(e,Ct,null);else throw e}}gt++}function $i(e){var t=e.length;if(t!==0){Yi();var n=ht;ht=!0;try{for(var i=0;i<t;i++){var r=e[i];r.f&Se||(r.f^=Se);var a=[];Zi(r,a),Ea(a)}}finally{ht=n}}}function Ea(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var i=e[n];if(!(i.f&(wt|Fe)))try{qt(i)&&(on(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?Hi(i):i.fn=null))}catch(r){an(r,i,null,i.ctx)}}}function Ta(){if(It=!1,gt>1001)return;const e=rt;rt=[],$i(e),It||(gt=0,Ct=null)}function ln(e){Kt===Ui&&(It||(It=!0,queueMicrotask(Ta))),Ct=e;for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(n&(Dt|Re)){if(!(n&Se))return;t.f^=Se}}rt.push(t)}function Zi(e,t){var n=e.first,i=[];e:for(;n!==null;){var r=n.f,a=(r&Re)!==0,o=a&&(r&Se)!==0,l=n.next;if(!o&&!(r&Fe))if(r&Mt){if(a)n.f^=Se;else try{qt(n)&&on(n)}catch(s){an(s,n,null,n.ctx)}var d=n.first;if(d!==null){n=d;continue}}else r&wi&&i.push(n);if(l===null){let s=n.parent;for(;s!==null;){if(e===s)break e;var u=s.next;if(u!==null){n=u;continue e}s=s.parent}}n=l}for(var v=0;v<i.length;v++)d=i[v],t.push(d),Zi(d,t)}function Gi(e){var t=Kt,n=rt;try{Yi();const r=[];Kt=ya,rt=r,It=!1,$i(n);var i=e==null?void 0:e();return pa(),(rt.length>0||r.length>0)&&Gi(),gt=0,Ct=null,i}finally{Kt=t,rt=n}}async function ii(){await Promise.resolve(),Gi()}function c(e){var v;var t=e.f,n=(t&Me)!==0;if(n&&t&wt){var i=Li(e);return Fn(e),i}if(Q!==null){qe!==null&&qe.includes(e)&&Kr();var r=Q.deps;e.rv<En&&(e.rv=En,ge===null&&r!==null&&r[ke]===e?ke++:ge===null?ge=[e]:ge.push(e),tt!==null&&z!==null&&z.f&Se&&!(z.f&Re)&&tt.includes(e)&&(Ue(z,nt),ln(z)))}else if(n&&e.deps===null)for(var a=e,o=a.parent,l=a;o!==null;)if(o.f&Me){var d=o;l=d,o=d.parent}else{var u=o;(v=u.deriveds)!=null&&v.includes(l)||(u.deriveds??(u.deriveds=[])).push(l);break}return n&&(a=e,qt(a)&&Mi(a)),e.v}function Ve(e){const t=Q;try{return Q=null,e()}finally{Q=t}}const Aa=-7169;function Ue(e,t){e.f=e.f&Aa|t}function Ia(e){return Xi().get(e)}function Ji(e,t){return Xi().set(e,t),t}function Xi(e){return te===null&&Vi(),te.c??(te.c=new Map(Ca(te)||void 0))}function Ca(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}function re(e,t=!1,n){te={p:te,c:null,e:null,m:!1,s:e,x:null,l:null},bt&&!t&&(te.l={s:null,u:null,r1:[],r2:be(!1)})}function ae(e){const t=te;if(t!==null){const o=t.e;if(o!==null){var n=z,i=Q;t.e=null;try{for(var r=0;r<o.length;r++){var a=o[r];je(a.effect),Be(a.reaction),Rt(a.fn)}}finally{je(n),Be(i)}}te=t.p,t.m=!0}return{}}function Pa(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(et in e)Tn(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&et in n&&Tn(n)}}}function Tn(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 i in e)try{Tn(e[i],t)}catch{}const n=Dn(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=yi(n);for(let r in i){const a=i[r].get;if(a)try{a.call(e)}catch{}}}}}function ja(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Na=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function La(e){return Na.includes(e)}const Ma={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function Da(e){return e=e.toLowerCase(),Ma[e]??e}const Oa=["touchstart","touchmove"];function Ra(e){return Oa.includes(e)}function Ha(e,t){if(t){const n=document.body;e.autofocus=!0,Ht(()=>{document.activeElement===n&&e.focus()})}}let ri=!1;function Fa(){ri||(ri=!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 Qi(e){var t=Q,n=z;Be(null),je(null);try{return e()}finally{Be(t),je(n)}}function qa(e,t,n,i=n){e.addEventListener(t,()=>Qi(n));const r=e.__on_r;r?e.__on_r=()=>{r(),i(!0)}:e.__on_r=()=>i(!0),Fa()}const er=new Set,An=new Set;function tr(e,t,n,i){function r(a){if(i.capture||Tt.call(t,a),!a.cancelBubble)return Qi(()=>n.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Ht(()=>{t.addEventListener(e,r,i)}):t.addEventListener(e,r,i),r}function ie(e,t,n,i,r){var a={capture:i,passive:r},o=tr(e,t,n,a);(t===document.body||t===window||t===document)&&ha(()=>{t.removeEventListener(e,o,a)})}function ve(e){for(var t=0;t<e.length;t++)er.add(e[t]);for(var n of An)n(e)}function Tt(e){var w;var t=this,n=t.ownerDocument,i=e.type,r=((w=e.composedPath)==null?void 0:w.call(e))||[],a=r[0]||e.target,o=0,l=e.__root;if(l){var d=r.indexOf(l);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var u=r.indexOf(t);if(u===-1)return;d<=u&&(o=d)}if(a=r[o]||e.target,a!==t){jr(e,"currentTarget",{configurable:!0,get(){return a||n}});var v=Q,s=z;Be(null),je(null);try{for(var h,g=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var f=a["__"+i];if(f!==void 0&&!a.disabled)if(Ln(f)){var[p,...y]=f;p.apply(a,[e,...y])}else f.call(a,e)}catch(S){h?g.push(S):h=S}if(e.cancelBubble||m===t||m===null)break;a=m}if(h){for(let S of g)queueMicrotask(()=>{throw S});throw h}}finally{e.__root=t,delete e.currentTarget,Be(v),je(s)}}}function Un(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function lt(e,t){var n=z;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function I(e,t){var n=(t&oa)!==0,i=(t&la)!==0,r,a=!e.startsWith("<!>");return()=>{r===void 0&&(r=Un(a?e:"<!>"+e),n||(r=ot(r)));var o=i?document.importNode(r,!0):r.cloneNode(!0);if(n){var l=ot(o),d=o.lastChild;lt(l,d)}else lt(o,o);return o}}function Ee(e,t,n="svg"){var i=!e.startsWith("<!>"),r=`<${n}>${i?e:"<!>"+e}</${n}>`,a;return()=>{if(!a){var o=Un(r),l=ot(o);a=ot(l)}var d=a.cloneNode(!0);return lt(d,d),d}}function Oe(e=""){{var t=Ot(e+"");return lt(t,t),t}}function Ze(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Ot();return e.append(t,n),lt(t,n),e}function k(e,t){e!==null&&e.before(t)}let Jt=!0;function ai(e){Jt=e}function Y(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 zn(e,t){return Ba(e,t)}const ft=new Map;function Ba(e,{target:t,anchor:n,props:i={},events:r,context:a,intro:o=!0}){ca();var l=new Set,d=s=>{for(var h=0;h<s.length;h++){var g=s[h];if(!l.has(g)){l.add(g);var m=Ra(g);t.addEventListener(g,Tt,{passive:m});var f=ft.get(g);f===void 0?(document.addEventListener(g,Tt,{passive:m}),ft.set(g,1)):ft.set(g,f+1)}}};d(Mn(er)),An.add(d);var u=void 0,v=ga(()=>{var s=n??t.appendChild(Ot());return $e(()=>{if(a){re({});var h=te;h.c=a}r&&(i.$$events=r),Jt=o,u=e(s,i)||{},Jt=!0,a&&ae()}),()=>{var m;for(var h of l){t.removeEventListener(h,Tt);var g=ft.get(h);--g===0?(document.removeEventListener(h,Tt),ft.delete(h)):ft.set(h,g)}An.delete(d),s!==n&&((m=s.parentNode)==null||m.removeChild(s))}});return In.set(u,v),u}let In=new WeakMap;function nr(e,t){const n=In.get(e);return n?(In.delete(e),n(t)):Promise.resolve()}function H(e,t,n=!1){var i=e,r=null,a=null,o=pe,l=n?kt:0,d=!1;const u=(s,h=!0)=>{d=!0,v(h,s)},v=(s,h)=>{o!==(o=s)&&(o?(r?At(r):h&&(r=$e(()=>h(i))),a&&mt(a,()=>{a=null})):(a?At(a):h&&(a=$e(()=>h(i))),r&&mt(r,()=>{r=null})))};ct(()=>{d=!1,t(u),d||v(null,null)},l)}function ir(e,t,n){var i=e,r=pe,a,o=Ft()?Hr:tn;ct(()=>{o(r,r=t())&&(a&&mt(a),a=$e(()=>n(i)))})}function pt(e,t){return t}function Va(e,t,n,i){for(var r=[],a=t.length,o=0;o<a;o++)Bn(t[o].e,r,!0);var l=a>0&&r.length===0&&n!==null;if(l){var d=n.parentNode;ua(d),d.append(n),i.clear(),Xe(e,t[0].prev,t[a-1].next)}Fi(r,()=>{for(var u=0;u<a;u++){var v=t[u];l||(i.delete(v.k),Xe(e,v.prev,v.next)),De(v.e,!l)}})}function it(e,t,n,i,r,a=null){var o=e,l={flags:t,items:new Map,first:null},d=(t&Ei)!==0;if(d){var u=e;o=u.appendChild(Ot())}var v=null,s=!1;ct(()=>{var h=n(),g=Ln(h)?h:h==null?[]:Mn(h),m=g.length;if(!(s&&m===0)){s=m===0;{var f=Q;Ua(g,l,o,r,t,(f.f&Fe)!==0,i)}a!==null&&(m===0?v?At(v):v=$e(()=>a(o)):v!==null&&mt(v,()=>{v=null})),n()}})}function Ua(e,t,n,i,r,a,o,l){var N,W,X,le;var d=(r&Gr)!==0,u=(r&(Rn|Hn))!==0,v=e.length,s=t.items,h=t.first,g=h,m,f=null,p,y=[],w=[],S,j,x,A;if(d)for(A=0;A<v;A+=1)S=e[A],j=o(S,A),x=s.get(j),x!==void 0&&((N=x.a)==null||N.measure(),(p??(p=new Set)).add(x));for(A=0;A<v;A+=1){if(S=e[A],j=o(S,A),x=s.get(j),x===void 0){var C=g?g.e.nodes_start:n;f=Wa(C,t,f,f===null?t.first:f.next,S,j,A,i,r),s.set(j,f),y=[],w=[],g=f.next;continue}if(u&&za(x,S,A,r),x.e.f&Fe&&(At(x.e),d&&((W=x.a)==null||W.unfix(),(p??(p=new Set)).delete(x))),x!==g){if(m!==void 0&&m.has(x)){if(y.length<w.length){var E=w[0],L;f=E.prev;var B=y[0],$=y[y.length-1];for(L=0;L<y.length;L+=1)oi(y[L],E,n);for(L=0;L<w.length;L+=1)m.delete(w[L]);Xe(t,B.prev,$.next),Xe(t,f,B),Xe(t,$,E),g=E,f=$,A-=1,y=[],w=[]}else m.delete(x),oi(x,g,n),Xe(t,x.prev,x.next),Xe(t,x,f===null?t.first:f.next),Xe(t,f,x),f=x;continue}for(y=[],w=[];g!==null&&g.k!==j;)(a||!(g.e.f&Fe))&&(m??(m=new Set)).add(g),w.push(g),g=g.next;if(g===null)continue;x=g}y.push(x),f=x,g=x.next}if(g!==null||m!==void 0){for(var M=m===void 0?[]:Mn(m);g!==null;)(a||!(g.e.f&Fe))&&M.push(g),g=g.next;var F=M.length;if(F>0){var V=r&Ei&&v===0?n:null;if(d){for(A=0;A<F;A+=1)(X=M[A].a)==null||X.measure();for(A=0;A<F;A+=1)(le=M[A].a)==null||le.fix()}Va(t,M,V,s)}}d&&Ht(()=>{var ce;if(p!==void 0)for(x of p)(ce=x.a)==null||ce.apply()}),z.first=t.first&&t.first.e,z.last=f&&f.e}function za(e,t,n,i){i&Rn&&xn(e.v,t),i&Hn?xn(e.i,n):e.i=n}function Wa(e,t,n,i,r,a,o,l,d,u){var v=(d&Rn)!==0,s=(d&Jr)===0,h=v?s?Ai(r):be(r):r,g=d&Hn?be(o):o,m={i:g,v:h,k:a,a:null,e:null,prev:n,next:i};try{return m.e=$e(()=>l(e,h,g),Ci),m.e.prev=n&&n.e,m.e.next=i&&i.e,n===null?t.first=m:(n.next=m,n.e.next=m.e),i!==null&&(i.prev=m,i.e.prev=m.e),m}finally{}}function oi(e,t,n){for(var i=e.next?e.next.e.nodes_start:n,r=t?t.e.nodes_start:n,a=e.e.nodes_start;a!==i;){var o=nn(a);r.before(a),a=o}}function Xe(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 Ka(e,t,n,i,r){var a=e,o="",l;ct(()=>{o!==(o=t()??"")&&(l!==void 0&&(De(l),l=void 0),o!==""&&(l=$e(()=>{var d=o+"",u=Un(d);lt(ot(u),u.lastChild),a.before(u)})))})}function St(e,t,...n){var i=e,r=Le,a;ct(()=>{r!==(r=t())&&(a&&(De(a),a=null),a=$e(()=>r(i,...n)))},kt)}function Ya(e,t,n,i,r,a){var o,l,d=null,u=e,v;ct(()=>{const s=t()||null;var h=s==="svg"?Ti:null;s!==o&&(v&&(s===null?mt(v,()=>{v=null,l=null}):s===l?At(v):(De(v),ai(!1))),s&&s!==l&&(v=$e(()=>{d=h?document.createElementNS(h,s):document.createElement(s),lt(d,d);{var g=d.appendChild(Ot());i(d,g)}z.nodes_end=d,u.before(d)})),o=s,o&&(l=o),ai(!0))},kt)}function sn(e,t,n){Rt(()=>{var i=Ve(()=>t(e,n==null?void 0:n())||{});if(n&&(i!=null&&i.update)){var r=!1,a={};qn(()=>{var o=n();Pa(o),r&&tn(a,o)&&(a=o,i.update(o))}),r=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function rr(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=rr(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function $a(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=rr(e))&&(i&&(i+=" "),i+=t);return i}function Za(e){return typeof e=="object"?$a(e):e??""}function Ga(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function ne(e,t,n,i){var r=e.__attributes??(e.__attributes={});r[t]!==(r[t]=n)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[Rr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&ar(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function Ja(e,t,n,i,r=!1,a=!1,o=!1){var l=t||{},d=e.tagName==="OPTION";for(var u in t)u in n||(n[u]=null);n.class&&(n.class=Za(n.class)),n.class=n.class?n.class+" "+i:i;var v=ar(e),s=e.__attributes??(e.__attributes={});for(const w in n){let S=n[w];if(d&&w==="value"&&S==null){e.value=e.__value="",l[w]=S;continue}var h=l[w];if(S!==h){l[w]=S;var g=w[0]+w[1];if(g!=="$$"){if(g==="on"){const j={},x="$$"+w;let A=w.slice(2);var m=La(A);if(ja(A)&&(A=A.slice(0,-7),j.capture=!0),!m&&h){if(S!=null)continue;e.removeEventListener(A,l[x],j),l[x]=null}if(S!=null)if(m)e[`__${A}`]=S,ve([A]);else{let C=function(E){l[w].call(this,E)};var y=C;l[x]=tr(A,e,C,j)}else m&&(e[`__${A}`]=void 0)}else if(w==="style"&&S!=null)e.style.cssText=S+"";else if(w==="autofocus")Ha(e,!!S);else if(w==="__value"||w==="value"&&S!=null)e.value=e[w]=e.__value=S;else if(w==="selected"&&d)Ga(e,S);else{var f=w;r||(f=Da(f));var p=f==="defaultValue"||f==="defaultChecked";if(S==null&&!a&&!p)if(s[w]=null,f==="value"||f==="checked"){let j=e;if(f==="value"){let x=j.defaultValue;j.removeAttribute(f),j.defaultValue=x}else{let x=j.defaultChecked;j.removeAttribute(f),j.defaultChecked=x}}else e.removeAttribute(w);else p||v.includes(f)&&(a||typeof S!="string")?e[f]=S:typeof S!="function"&&ne(e,f,S)}w==="style"&&"__styles"in e&&(e.__styles={})}}}return l}var li=new Map;function ar(e){var t=li.get(e.nodeName);if(t)return t;li.set(e.nodeName,t=[]);for(var n,i=e,r=Element.prototype;r!==i;){n=yi(i);for(var a in n)n[a].set&&t.push(a);i=Dn(i)}return t}function Xa(e,t,n){var i=e.__className,r=Qa(t);(i!==r||Ci)&&(t==null?e.removeAttribute("class"):e.className=r,e.__className=r)}function Qa(e,t){return(e??"")+""}function se(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 cn(e,t,n,i){var r=e.__styles??(e.__styles={});r[t]!==n&&(r[t]=n,n==null?e.style.removeProperty(t):e.style.setProperty(t,n,""))}const eo=()=>performance.now(),Ke={tick:e=>requestAnimationFrame(e),now:()=>eo(),tasks:new Set};function or(){const e=Ke.now();Ke.tasks.forEach(t=>{t.c(e)||(Ke.tasks.delete(t),t.f())}),Ke.tasks.size!==0&&Ke.tick(or)}function to(e){let t;return Ke.tasks.size===0&&Ke.tick(or),{promise:new Promise(n=>{Ke.tasks.add(t={c:e,f:n})}),abort(){Ke.tasks.delete(t)}}}function Ut(e,t){e.dispatchEvent(new CustomEvent(t))}function no(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 si(e){const t={},n=e.split(";");for(const i of n){const[r,a]=i.split(":");if(!r||a===void 0)break;const o=no(r.trim());t[o]=a.trim()}return t}const io=e=>e;function Ie(e,t,n,i){var r=(e&ia)!==0,a=(e&ra)!==0,o=r&&a,l=(e&aa)!==0,d=o?"both":r?"in":"out",u,v=t.inert,s,h;function g(){var w=Q,S=z;Be(null),je(null);try{return u??(u=n()(t,(i==null?void 0:i())??{},{direction:d}))}finally{Be(w),je(S)}}var m={is_global:l,in(){var w;if(t.inert=v,!r){h==null||h.abort(),(w=h==null?void 0:h.reset)==null||w.call(h);return}a||s==null||s.abort(),Ut(t,"introstart"),s=Cn(t,g(),h,1,()=>{Ut(t,"introend"),s==null||s.abort(),s=u=void 0})},out(w){if(!a){w==null||w(),u=void 0;return}t.inert=!0,Ut(t,"outrostart"),h=Cn(t,g(),s,0,()=>{Ut(t,"outroend"),w==null||w()})},stop:()=>{s==null||s.abort(),h==null||h.abort()}},f=z;if((f.transitions??(f.transitions=[])).push(m),r&&Jt){var p=l;if(!p){for(var y=f.parent;y&&y.f&kt;)for(;(y=y.parent)&&!(y.f&Qt););p=!y||(y.f&ki)!==0}p&&Rt(()=>{Ve(()=>m.in())})}}function Cn(e,t,n,i,r){var a=i===1;if(_t(t)){var o,l=!1;return Ht(()=>{if(!l){var p=t({direction:a?"in":"out"});o=Cn(e,p,n,i,r)}}),{abort:()=>{l=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n==null||n.deactivate(),!(t!=null&&t.duration))return r(),{abort:Le,deactivate:Le,reset:Le,t:()=>i};const{delay:d=0,css:u,tick:v,easing:s=io}=t;var h=[];if(a&&n===void 0&&(v&&v(0,1),u)){var g=si(u(0,1));h.push(g,g)}var m=()=>1-i,f=e.animate(h,{duration:d});return f.onfinish=()=>{var p=(n==null?void 0:n.t())??1-i;n==null||n.abort();var y=i-p,w=t.duration*Math.abs(y),S=[];if(w>0){if(u)for(var j=Math.ceil(w/16.666666666666668),x=0;x<=j;x+=1){var A=p+y*s(x/j),C=u(A,1-A);S.push(si(C))}m=()=>{var E=f.currentTime;return p+y*s(E/w)},v&&to(()=>{if(f.playState!=="running")return!1;var E=m();return v(E,1-E),!0})}f=e.animate(S,{duration:w,fill:"forwards"}),f.onfinish=()=>{m=()=>i,v==null||v(i,1-i),r()}},{abort:()=>{f&&(f.cancel(),f.effect=null,f.onfinish=Le)},deactivate:()=>{r=Le},reset:()=>{i===0&&(v==null||v(1,0))},t:()=>m()}}function ro(e,t,n=t){var i=Ft();qa(e,"input",r=>{var a=r?e.defaultValue:e.value;if(a=pn(e)?yn(a):a,n(a),i&&a!==(a=t())){var o=e.selectionStart,l=e.selectionEnd;e.value=a??"",l!==null&&(e.selectionStart=o,e.selectionEnd=Math.min(l,e.value.length))}}),Ve(t)==null&&e.value&&n(pn(e)?yn(e.value):e.value),qn(()=>{var r=t();pn(e)&&r===yn(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function pn(e){var t=e.type;return t==="number"||t==="range"}function yn(e){return e===""?null:+e}function ci(e,t){return e===t||(e==null?void 0:e[et])===t}function Bt(e={},t,n,i){return Rt(()=>{var r,a;return qn(()=>{r=a,a=[],Ve(()=>{e!==n(...a)&&(t(e,...a),r&&ci(n(...r),e)&&t(null,...r))})}),()=>{Ht(()=>{a&&ci(n(...a),e)&&t(null,...a)})}}),e}function ao(e,t,n){if(e==null)return t(void 0),Le;const i=Ve(()=>e.subscribe(t,n));return i.unsubscribe?()=>i.unsubscribe():i}let zt=!1;function oo(e){var t=zt;try{return zt=!1,[e(),zt]}finally{zt=t}}const lo={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 so(e,t,n){return new Proxy({props:e,exclude:t},lo)}const co={get(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(_t(i)&&(i=i()),typeof i=="object"&&i!==null&&t in i)return i[t]}},set(e,t,n){let i=e.props.length;for(;i--;){let r=e.props[i];_t(r)&&(r=r());const a=Qe(r,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(_t(i)&&(i=i()),typeof i=="object"&&i!==null&&t in i){const r=Qe(i,t);return r&&!r.configurable&&(r.configurable=!0),r}}},has(e,t){if(t===et||t===xi)return!1;for(let n of e.props)if(_t(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props){_t(n)&&(n=n());for(const i in n)t.includes(i)||t.push(i)}return t}};function uo(...e){return new Proxy({props:e},co)}function ui(e){for(var t=z,n=z;t!==null&&!(t.f&(Re|Dt));)t=t.parent;try{return je(t),e()}finally{je(n)}}function R(e,t,n,i){var C;var r=(n&Xr)!==0,a=!bt||(n&Qr)!==0,o=(n&ta)!==0,l=(n&na)!==0,d=!1,u;o?[u,d]=oo(()=>e[t]):u=e[t];var v=et in e||xi in e,s=o&&(((C=Qe(e,t))==null?void 0:C.set)??(v&&t in e&&(E=>e[t]=E)))||void 0,h=i,g=!0,m=!1,f=()=>(m=!0,g&&(g=!1,l?h=Ve(i):h=i),h);u===void 0&&i!==void 0&&(s&&a&&Ur(),u=f(),s&&s(u));var p;if(a)p=()=>{var E=e[t];return E===void 0?f():(g=!0,m=!1,E)};else{var y=ui(()=>(r?U:da)(()=>e[t]));y.f|=Dr,p=()=>{var E=c(y);return E!==void 0&&(h=void 0),E===void 0?h:E}}if(!(n&ea))return p;if(s){var w=e.$$legacy;return function(E,L){return arguments.length>0?((!a||!L||w||d)&&s(L?p():E),E):p()}}var S=!1,j=!1,x=Ai(u),A=ui(()=>U(()=>{var E=p(),L=c(x);return S?(S=!1,j=!0,L):(j=!1,x.v=E)}));return r||(A.equals=On),function(E,L){if(arguments.length>0){const B=L?c(A):a&&o?G(E):E;return A.equals(B)||(S=!0,P(x,B),m&&h!==void 0&&(h=B),Ve(()=>c(A))),E}return c(A)}}function ut(e){te===null&&Vi(),bt&&te.l!==null?fo(te).m.push(e):rn(()=>{const t=Ve(e);if(typeof t=="function")return t})}function fo(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const vo="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(vo);const lr="https://www.playpilot.com",un="https://partner-api.playpilot.tech/1.0.0",sr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",xe=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"}),vt=[];function cr(e,t=Le){let n=null;const i=new Set;function r(l){if(tn(e,l)&&(e=l,n)){const d=!vt.length;for(const u of i)u[1](),vt.push(u,e);if(d){for(let u=0;u<vt.length;u+=2)vt[u][0](vt[u+1]);vt.length=0}}}function a(l){r(l(e))}function o(l,d=Le){const u=[l,d];return i.add(u),i.size===1&&(n=t(r,a)||Le),l(e),()=>{i.delete(u),i.size===0&&n&&(n(),n=null)}}return{set:r,update:a,subscribe:o}}function di(e){let t;return ao(e,n=>t=n)(),t}const ur=cr(null),dr=cr(null),_o="https://insights.playpilot.net";async function Ce(e,t=null,n={}){const i=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=di(ur),n.domain_sid=di(dr),fetch(_o,{headers:i,method:"POST",body:JSON.stringify({event:e,payload:n,source:"ali"})})}function ho({organizationSid:e=null,domainSid:t=null}){ur.set(e||null),dr.set(t||null)}const Wn="EncryptedToken",fr="articleReplacementEditToken",vr="playpilot-editorial-mode";async function _r(e=window.location.href){const t=new Headers({"Content-Type":"application/json"});try{const n=_n();if(!n)throw new Error("No token was provided");const i=Kn(e);if(!i)throw new Error("Could not be authenticated");const r=await fetch(un+`/external-pages/edit-authorization?api-token=${n}`,{headers:t,method:"POST",body:JSON.stringify({private_token:i})});if(!r.ok)throw r;return go(i),!0}catch(n){console.error(n),Ce(xe.AuthFailed)}finally{yo()}return!1}function Kn(e=""){var i,r;const t=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(t)return t;if(e){const a=new URL(e).searchParams.get(fr);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${Wn}=`).pop())==null?void 0:r.split(";")[0])||""}function go(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const i="expires="+t.toUTCString();document.cookie=Wn+"="+e+";"+i+";path=/"}function mo(){document.cookie=Wn+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function hr(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(vr)==="true"||!!e}function po(){const e=new URL(window.location.href);e.searchParams.set(vr,"true"),window.history.replaceState({},"",e)}function yo(){const e=new URL(window.location.href);e.searchParams.delete(fr),window.history.replaceState({},"",e)}function gr(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=t*31+i>>>0}return t.toString(16)}const _=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"}),wo={"Where To Stream Online":{[_.English]:"Where to stream online",[_.Swedish]:"Var kan man streama online",[_.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[_.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[_.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[_.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"An Error Occurred":{[_.English]:"An error occurred",[_.Swedish]:"Ett fel inträffade",[_.Danish]:"Der opstod en fejl"},"Title Unavailable":{[_.English]:"This title is not currently available to stream.",[_.Swedish]:"Den här titeln går inte att streama just nu.",[_.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[_.English]:"is not currently available to stream.",[_.Swedish]:"går inte att streama just nu.",[_.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[_.English]:"is available to stream on",[_.Swedish]:"finns att streama på",[_.Danish]:"kan streames på"},"Is Available To Stream":{[_.English]:"is available to stream.",[_.Swedish]:"finns att streama.",[_.Danish]:"kan streames."},"View Streaming Options":{[_.English]:"View streaming options",[_.Swedish]:"Se streamingalternativ",[_.Danish]:"Se streamingmuligheder"},And:{[_.English]:"and",[_.Swedish]:"och",[_.Danish]:"og"},Minutes:{[_.English]:"minutes",[_.Swedish]:"minuter",[_.Danish]:"minutter"},"Type: movie":{[_.English]:"Movie",[_.Swedish]:"Film",[_.Danish]:"Film"},"Type: series":{[_.English]:"Series",[_.Swedish]:"Serie",[_.Danish]:"Serie"},Stream:{[_.English]:"Stream",[_.Swedish]:"Streama",[_.Danish]:"Stream"},Buy:{[_.English]:"Buy",[_.Swedish]:"Köp",[_.Danish]:"Køb"},Rent:{[_.English]:"Rent",[_.Swedish]:"Hyra",[_.Danish]:"Lej"},"Rent Or Buy":{[_.English]:"Rent or Buy",[_.Swedish]:"Hyra",[_.Danish]:"Lej eller køb"},All:{[_.English]:"All",[_.Swedish]:"Alla",[_.Danish]:"Alle"},Unscripted:{[_.English]:"Unscripted",[_.Swedish]:"Oscripterat",[_.Danish]:"Umanuskriptet"},Independent:{[_.English]:"Independent",[_.Swedish]:"Indie",[_.Danish]:"Indie"},"Game Show":{[_.English]:"Game Show",[_.Swedish]:"Gameshow",[_.Danish]:"Quizshow"},"Film Noir":{[_.English]:"Film Noir",[_.Swedish]:"Film noir",[_.Danish]:"Film noir"},Entertainment:{[_.English]:"Entertainment",[_.Swedish]:"Underhållning",[_.Danish]:"Underholdning"},News:{[_.English]:"News",[_.Swedish]:"Nyheter",[_.Danish]:"Nyheder"},Short:{[_.English]:"Short",[_.Swedish]:"Kortfilm",[_.Danish]:"Kortfilm"},Bollywood:{[_.English]:"Bollywood",[_.Swedish]:"Bollywood",[_.Danish]:"Bollywood"},Concert:{[_.English]:"Concert",[_.Swedish]:"Konsert",[_.Danish]:"Koncert"},Arthouse:{[_.English]:"Arthouse",[_.Swedish]:"Arthouse",[_.Danish]:"Arthouse"},"Alternate Version":{[_.English]:"Alternate Version",[_.Swedish]:"Alternativ version",[_.Danish]:"Alternativ version"},"Reality TV":{[_.English]:"Reality TV",[_.Swedish]:"Reality-TV",[_.Danish]:"Reality-TV"},Culture:{[_.English]:"Culture",[_.Swedish]:"Kultur",[_.Danish]:"Kultur"},Drama:{[_.English]:"Drama",[_.Swedish]:"Drama",[_.Danish]:"Drama"},Crime:{[_.English]:"Crime",[_.Swedish]:"Kriminal",[_.Danish]:"Krimi"},Western:{[_.English]:"Western",[_.Swedish]:"Western",[_.Danish]:"Western"},Thriller:{[_.English]:"Thriller",[_.Swedish]:"Thriller",[_.Danish]:"Thriller"},Animation:{[_.English]:"Animation",[_.Swedish]:"Animerat",[_.Danish]:"Animation"},Mystery:{[_.English]:"Mystery",[_.Swedish]:"Mysterium",[_.Danish]:"Mysterium"},Science:{[_.English]:"Science",[_.Swedish]:"Vetenskap",[_.Danish]:"Videnskab"},Nature:{[_.English]:"Nature",[_.Swedish]:"Natur",[_.Danish]:"Natur"},War:{[_.English]:"War",[_.Swedish]:"Krig",[_.Danish]:"Krig"},"Sci-Fi":{[_.English]:"Sci-Fi",[_.Swedish]:"Sci-fi",[_.Danish]:"Sci-fi"},Documentary:{[_.English]:"Documentary",[_.Swedish]:"Dokumentär",[_.Danish]:"Dokumentar"},"Stand-up":{[_.English]:"Stand-up",[_.Swedish]:"Standup",[_.Danish]:"Stand-up"},"Talk Show":{[_.English]:"Talk Show",[_.Swedish]:"Talkshow",[_.Danish]:"Talkshow"},Fantasy:{[_.English]:"Fantasy",[_.Swedish]:"Fantasy",[_.Danish]:"Fantasy"},History:{[_.English]:"History",[_.Swedish]:"Historia",[_.Danish]:"Historie"},Adventure:{[_.English]:"Adventure",[_.Swedish]:"Äventyr",[_.Danish]:"Eventyr"},Action:{[_.English]:"Action",[_.Swedish]:"Action",[_.Danish]:"Action"},Horror:{[_.English]:"Horror",[_.Swedish]:"Skräck",[_.Danish]:"Gyser"},Comedy:{[_.English]:"Comedy",[_.Swedish]:"Komedi",[_.Danish]:"Komedie"},Biography:{[_.English]:"Biography",[_.Swedish]:"Biografi",[_.Danish]:"Biografi"},Music:{[_.English]:"Music",[_.Swedish]:"Musik",[_.Danish]:"Musik"},Sport:{[_.English]:"Sport",[_.Swedish]:"Sport",[_.Danish]:"Sport"},Romance:{[_.English]:"Romance",[_.Swedish]:"Romantik",[_.Danish]:"Romantik"},Kids:{[_.English]:"Kids",[_.Swedish]:"Barn",[_.Danish]:"Børn"},Lifestyle:{[_.English]:"Lifestyle",[_.Swedish]:"Livsstil",[_.Danish]:"Livsstil"},Musical:{[_.English]:"Musical",[_.Swedish]:"Musikal",[_.Danish]:"Musical"},Anime:{[_.English]:"Anime",[_.Swedish]:"Anime",[_.Danish]:"Anime"},Family:{[_.English]:"Family",[_.Swedish]:"Familj",[_.Danish]:"Familie"}};function ye(e,t=mr()){var n;return((n=wo[e])==null?void 0:n[t])||e}function mr(){var i,r;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,t=Object.values(_);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");return n&&t.includes(n)?n:_.English}const ko=e=>e;function Yn(e){const t=e-1;return t*t*t+1}function fi(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function $n(e,{delay:t=0,duration:n=400,easing:i=ko}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function dn(e,{delay:t=0,duration:n=400,easing:i=Yn,x:r=0,y:a=0,opacity:o=0}={}){const l=getComputedStyle(e),d=+l.opacity,u=l.transform==="none"?"":l.transform,v=d*(1-o),[s,h]=fi(r),[g,m]=fi(a);return{delay:t,duration:n,easing:i,css:(f,p)=>`
|
|
4
|
-
transform: ${
|
|
5
|
-
opacity: ${d-
|
|
6
|
-
transform: ${d} scale(${1-
|
|
7
|
-
opacity: ${l-
|
|
8
|
-
`}}var xo=I('<div class="popover svelte-qkpa3e" tabindex="-1" aria-hidden="true"><div class="dialog svelte-qkpa3e"><!></div></div>');function So(e,t){re(t,!0);let n=R(t,"maxHeight",15);Ji("scope","popover");let i=K(null),r=K(!1);ut(async()=>{await ii(),a(),await ii(),o()});function a(){if(!c(i))return;const{top:s,right:h,bottom:g,height:m}=c(i).getBoundingClientRect(),f=l();P(r,G(s-f<0&&window.innerHeight-g>s+m));const p=window.innerWidth-h-f;h+f>window.innerWidth&&(c(i).style.left=`${p}px`)}function o(){if(!c(i))return;const{top:s,height:h}=c(i).getBoundingClientRect(),g=l(),m=c(r)?window.innerHeight-s-g:s+h-g;n(Math.min(m,window.innerHeight*.8))}function l(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}var d=xo(),u=b(d),v=b(u);St(v,()=>t.children),Bt(d,s=>P(i,s),()=>c(i)),O(()=>{se(d,"flip",c(r)),cn(d,"--max-height",n()?n()+"px":null)}),Ie(3,u,()=>dn,()=>({duration:100,y:10})),k(e,d),ae()}const Eo=[{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 To=I('<div class="genre svelte-13nhocm"> </div>'),Ao=(e,t)=>P(t,!0),Io=I('<button class="genre expand svelte-13nhocm"> </button>'),Co=I("<!> <!>",1);function Po(e,t){re(t,!0);let n=K(!1);const i=U(()=>c(n)?t.genres:[t.genres[0]]);var r=Co(),a=ee(r);it(a,17,()=>c(i),pt,(d,u)=>{var v=Ze();const s=U(()=>{var m;return(m=Eo.find(f=>f.slug===c(u)))==null?void 0:m.name});var h=ee(v);{var g=m=>{var f=To(),p=b(f);O(()=>Y(p,ye(c(s)))),k(m,f)};H(h,m=>{c(s)&&m(g)})}k(d,v)});var o=T(a,2);{var l=d=>{var u=Io();u.__click=[Ao,n];var v=b(u);O(()=>Y(v,`+${t.genres.length-1}`)),k(d,u)};H(o,d=>{!c(n)&&t.genres.length>1&&d(l)})}k(e,r),ae()}ve(["click"]);function jo(e){let t=[];for(const n of e){let i=n;const r=t.find(l=>l.name===i.name),a=r==null?void 0:r.extra_info.category,o=i.extra_info.category;(a==="RENT"&&o==="BUY"||a==="BUY"&&o==="RENT")&&(t=t.filter(l=>l.name!==i.name),i={...i,extra_info:{...i.extra_info,category:"TVOD"}}),t.push(i)}return t}function Pe(e,t=1){e.role="heading",e.ariaLevel=t.toString()}Zr();var No=Ee('<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 Lo(e){var t=No();k(e,t)}function Nt(e){return e?e.replace("/src/img",""):null}var Mo=(e,t,n)=>t(n()),Do=I('<div class="arrow svelte-1itidbd"><!></div>'),Oo=I('<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>'),Ro=I('<div class="playlink empty svelte-1itidbd"> </div>'),Ho=I('<div class="heading svelte-1itidbd"> </div> <div class="playlinks svelte-1itidbd"><!> <!></div>',1);function Fo(e,t){re(t,!0);const n=R(t,"list",3,!1),i=Ia("scope")==="modal",r=U(()=>t.playlinks.filter(f=>!!f.logo_url)),a=U(()=>jo(c(r))),o={SVOD:ye("Stream"),BUY:ye("Buy"),RENT:ye("Rent"),TVOD:ye("Rent Or Buy")};function l(f){Ce(i?xe.TitleModalPlaylinkClick:xe.TitlePopoverPlaylinkClick,t.title,{playlink:f})}var d=Ho(),u=ee(d),v=b(u);O(()=>Y(v,ye("Where To Stream Online"))),sn(u,(f,p)=>Pe==null?void 0:Pe(f,p),()=>2);var s=T(u,2),h=b(s);it(h,17,()=>c(a),pt,(f,p)=>{let y=()=>c(p).name,w=()=>c(p).url,S=()=>c(p).logo_url,j=()=>c(p).extra_info.category;var x=Oo();x.__click=[Mo,l,y];var A=b(x);O(()=>ne(A,"src",Nt(S())));var C=T(A,2),E=b(C),L=b(E),B=T(E,2),$=b(B);O(()=>Y($,o[j()]||ye("Stream")));var M=T(C,2);{var F=V=>{var N=Do(),W=b(N);Lo(W),k(V,N)};H(M,V=>{n()&&V(F)})}O(()=>{ne(x,"href",w()),ne(x,"data-playlink",y()),Y(L,y())}),k(f,x)});var g=T(h,2);{var m=f=>{var p=Ro(),y=b(p);O(()=>Y(y,ye("Title Unavailable"))),k(f,p)};H(g,f=>{t.playlinks.length||f(m)})}O(()=>se(s,"list",n())),k(e,d),ae()}ve(["click"]);var qo=(e,t)=>P(t,!0),Bo=I('<button class="show-more svelte-1u3je71">Show more</button>'),Vo=I('<div class="paragraph svelte-1u3je71" role="paragraph"> </div>'),Uo=I('<div><span class="paragraph svelte-1u3je71" role="paragraph"> <!> <!></span> <!></div>');function zo(e,t){re(t,!0);const n=R(t,"blurb",3,""),i=R(t,"limit",3,200);let r=K(!1);const a=U(()=>t.text.slice(0,i()));var o=Uo(),l=b(o),d=b(l),u=T(d);{var v=f=>{var p=Oe("...");k(f,p)};H(u,f=>{!c(r)&&t.text.length>i()&&f(v)})}var s=T(u,2);{var h=f=>{var p=Bo();p.__click=[qo,r],k(f,p)};H(s,f=>{!c(r)&&(t.text.length>i()||n())&&f(h)})}var g=T(l,2);{var m=f=>{var p=Vo(),y=b(p);O(()=>Y(y,n())),k(f,p)};H(g,f=>{c(r)&&f(m)})}O(()=>Y(d,c(r)?t.text:c(a))),k(e,o),ae()}ve(["click"]);var Wo=I('<div class="participant"> <div class="character svelte-15oguej"> <!></div></div>'),Ko=I('<h2 class="svelte-15oguej">Cast</h2> <div class="participants svelte-15oguej"></div>',1);function Yo(e,t){var n=Ko(),i=T(ee(n),2);it(i,21,()=>t.participants,pt,(r,a)=>{var o=Wo(),l=b(o),d=T(l),u=b(d);O(()=>{var h;return Y(u,((h=c(a).character)==null?void 0:h.slice(0,20))||"")});var v=T(u);{var s=h=>{var g=Oe("...");k(h,g)};H(v,h=>{var g;(g=c(a).character)!=null&&g.length&&h(s)})}O(()=>Y(l,`${c(a).name??""} `)),k(r,o)}),k(e,n)}var $o=Ee('<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 pr(e){var t=$o();k(e,t)}var Zo=I('<div class="top svelte-16h1v3j"><img class="poster svelte-16h1v3j"></div>'),Go=I("<div> </div>"),Jo=I("<!> <!>",1),Xo=I('<img alt="" class="svelte-16h1v3j">'),Qo=I('<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 yr(e,t){re(t,!0);const n=R(t,"small",3,!1),i=R(t,"compact",3,!1);let r=K(!1),a=K(!1),o=K(!1);var l=Qo(),d=ee(l),u=b(d),v=b(u);{var s=N=>{var W=Zo(),X=b(W);O(()=>ne(X,"src",Nt(t.title.standing_poster))),O(()=>{ne(X,"alt",`Movie poster for '${t.title.title??""}'`),se(X,"loaded",c(r))}),ie("load",X,()=>P(r,!0)),k(N,W)};H(v,N=>{i()||N(s)})}var h=T(v,2),g=b(h);sn(h,N=>Pe==null?void 0:Pe(N));var m=T(h,2),f=b(m),p=b(f);pr(p);var y=T(p),w=T(f,2);Po(w,{get genres(){return t.title.genres}});var S=T(w,2),j=b(S),x=T(S,2),A=b(x);O(()=>Y(A,ye(`Type: ${t.title.type}`)));var C=T(x,2);{var E=N=>{var W=Go(),X=b(W);O(()=>Y(X,`${t.title.length??""} ${ye("Minutes")??""}`)),k(N,W)};H(C,N=>{!n()&&t.title.length&&N(E)})}var L=T(u,2),B=b(L);Fo(B,{get playlinks(){return t.title.providers},get title(){return t.title},list:!0});var $=T(B,2);{var M=N=>{var W=Jo(),X=ee(W);zo(X,{get text(){return t.title.description},get blurb(){return t.title.blurb}});var le=T(X,2);{var ce=de=>{Yo(de,{get participants(){return t.title.participants}})};H(le,de=>{var _e;(_e=t.title.participants)!=null&&_e.length&&de(ce)})}k(N,W)};H($,N=>{n()||N(M)})}var F=T(d,2),V=b(F);ir(V,()=>c(o),N=>{var W=Xo();O(()=>ne(W,"src",Nt(c(o)?t.title.standing_poster:t.title.medium_poster))),O(()=>{se(W,"loaded",c(a)),se(W,"blur",c(o))}),ie("load",W,()=>P(a,!0)),ie("error",W,()=>P(o,!0)),k(N,W)}),O(()=>{ne(d,"data-playpilot-original-title",t.title.original_title),se(d,"small",n()),se(d,"compact",i()),se(h,"truncate",n()),Y(g,t.title.title),Y(y,` ${t.title.imdb_score??""}`),Y(j,t.title.year),se(F,"faded",i())}),k(e,l),ae()}function el(e,t){re(t,!0);let n=K(0);Ce(xe.TitlePopoverView,t.title),So(e,{get maxHeight(){return c(n)},set maxHeight(i){P(n,G(i))},children:(i,r)=>{var a=U(()=>!!c(n)&&c(n)<250);yr(i,{get title(){return t.title},small:!0,get compact(){return c(a)}})},$$slots:{default:!0}}),ae()}var tl=(e,t,n,i)=>t(c(n).title_details,c(i)),nl=I(' <span class="svelte-pfvkex"><button class="svelte-pfvkex"> </button></span>',1),il=(e,t,n,i)=>t(c(n).title_details,i()),rl=I('<!> <a target="_blank"> </a>',1),al=I(" <!>.",1),ol=I("<!> <br>",1),ll=I(" <br>",1),sl=I('<span class="svelte-pfvkex"><!></span>'),cl=I('<p class="svelte-pfvkex"></p>');function ul(e,t){re(t,!0);const n=R(t,"onclickmodal",3,d=>null);function i(d,u){Ce(xe.AfterArticlePlaylinkClick,d,{playlink:u})}function r(d,u){Ce(xe.AfterArticleModalButtonClick,d),n()(u)}var a=Ze(),o=ee(a);{var l=d=>{var u=cl();it(u,21,()=>t.linkInjections,pt,(v,s)=>{var h=sl();const g=U(()=>{const{key:w,title:S,title_details:j,after_article_style:x}=c(s);return{key:w,title:S,title_details:j,after_article_style:x}}),m=U(()=>{var w;return((w=c(g).title_details)==null?void 0:w.providers)||[]});var f=b(h);{var p=w=>{var S=ol(),j=ee(S);{var x=C=>{var E=nl(),L=ee(E);O(()=>Y(L,`"${c(g).title??""}" ${ye("Is Available To Stream")??""} `));var B=T(L),$=b(B);$.__click=[tl,r,g,s];var M=b($);O(()=>Y(M,ye("View Streaming Options"))),k(C,E)},A=C=>{var E=al(),L=ee(E);O(()=>Y(L,`"${c(g).title??""}" ${ye("Is Available To Stream On")??""} `));var B=T(L);it(B,17,()=>c(m),pt,($,M,F)=>{let V=()=>c(M).name,N=()=>c(M).url;var W=rl(),X=ee(W);{var le=_e=>{var ze=Oe();O(()=>Y(ze,F===c(m).length-1?`, ${ye("And")}`:",")),k(_e,ze)};H(X,_e=>{F&&_e(le)})}var ce=T(X,2);ce.__click=[il,i,g,V];var de=b(ce);O(()=>{ne(ce,"href",N()),Y(de,V())}),k($,W)}),k(C,E)};H(j,C=>{c(g).after_article_style==="modal_button"?C(x):C(A,!1)})}k(w,S)},y=w=>{var S=ll(),j=ee(S);O(()=>Y(j,`"${c(g).title??""}" ${ye("Title Unavailable Suffix")??""} `)),k(w,S)};H(f,w=>{c(m).length?w(p):w(y,!1)})}O(()=>ne(h,"data-playpilot-injection-key",c(g).key)),k(v,h)}),k(d,u)};H(o,d=>{t.linkInjections.length&&d(l)})}k(e,a),ae()}ve(["click"]);function dl(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}function Zn(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function vi(e,t,n=[]){var a,o;const i=document.createTreeWalker(t);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(e)&&!n.includes(((o=r.parentNode)==null?void 0:o.nodeName)||"")););return r}function _i(e){const t=e.parentNode;return t?t.nodeName==="A"||!!t.closest("a"):!1}function fl(e,t,n,i){const r=dl(t),a=Zn(t),o=e.slice(0,i),l=e.slice(i),d=/[-/\\^$*+?.()|[\]{}]/g,u=new RegExp(`${a.replace(d,"\\$&")}|${r.replace(d,"\\$&")}`),v=l.replace(u,n);return o+v}function Ye(e){return Zn(e).toLowerCase().replace(/\s+/g,"")}function vl(e,t,n){const r=e.indexOf(t),a=Math.floor((n-t.length)/2);let o=Math.max(0,r-a),l=o+n;l>e.length&&(l=e.length,o=Math.max(0,l-n));let d=e.slice(o,l).trim();return o>0&&(d="…"+d),l<e.length&&(d+="…"),d}function _l(e){let t=0;for(let n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return t}const Gn="data-playpilot-injection-key",Jn=`[${Gn}]`,yt={};let Pn=null,Yt=null;function wr(e){const t=[],n=[e];for(;n.length>0;){const i=n.pop();if(t.includes(i)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|H[1-6])$/.test(i.tagName))continue;const r=Array.from(i.childNodes).some(o=>{var l;return o.nodeType===Node.TEXT_NODE&&((l=o.nodeValue)==null?void 0:l.trim())!==""});if(r&&i.tagName==="LI"){const o=i.closest("ul, ol");o&&!t.includes(o)&&t.push(o);continue}if(r){t.push(i);continue}const a=Array.from(i.children);for(let o=a.length-1;o>=0;o--)n.push(a[o])}return t}function fn(){var t;const e=(t=window.PlayPilotLinkInjections)==null?void 0:t.selector;if(e){const n=e.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function hl(e,t,n={aiInjections:[],manualInjections:[]}){var v;const i=bl(n);if(!i)return[];const r=Ye(e.map(s=>s.innerText).join(" ")),a=xl(i),o=a.filter(s=>r.includes(Ye(s.sentence))),l={},d={};for(const s of o){const h=e.findIndex(A=>Ye(A.innerText).includes(Ye(s.sentence))),g=e[h];if(!g)continue;const m=vi(s.title,g,["A"]);if(!(m!=null&&m.nodeValue)||_i(m)){const A=vi(s.title,g);A&&_i(A)&&(d[s.key]="Given text is already inside of a link.");continue}const f=document.createElement("span");f.dataset.playpilotInjectionKey=s.key;const p=document.createElement("a");p.innerText=s.title,p.href=s.playpilot_url,p.dataset.playpilotOriginalTitle=(v=s.title_details)==null?void 0:v.original_title,p.target="_blank",p.rel="noopener nofollow noreferrer",f.insertAdjacentElement("beforeend",p);const y=_l(Object.values(l).filter(A=>A.elementIndex===h).map(A=>A.to)),w=g.innerHTML.indexOf(m.nodeValue),S=g.innerHTML.indexOf(s.sentence),j=Math.max(y,w,S,0);g.innerHTML=fl(g.innerHTML,s.title,f.outerHTML,j);const x=g.innerHTML.indexOf(f.outerHTML);l[s.key]={elementIndex:h,from:x,to:x+f.outerHTML.length}}ml(a,t),gl();const u=Sl(i);return u.length&&wl(e,u,t),i.filter(s=>s.title_details).map((s,h)=>{const g=s.duplicate??(!s.manual&&El(s,h,i)),m=document.querySelector(`[${Gn}="${s.key}"]`),f=vn(s)&&!s.inactive&&!s.after_article&&!m,p=f?d[s.key]||(r.includes(Ye(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:g,failed:f,failed_message:p}})}function gl(){const e=Array.from(document.querySelectorAll(`${Jn} 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(i=>{getComputedStyle(n).getPropertyValue(i)&&(n.dataset.usedCssVariables=`${n.dataset.usedCssVariables||""} ${i}`)})})}function ml(e,t){window.addEventListener("click",i=>{const r=i.target;if(!(r!=null&&r.parentElement))return;const a=r.parentElement.getAttribute(Gn);if(!a)return;const o=e.find(l=>a===l.key);o&&pl(i,o,t)}),Array.from(document.querySelectorAll(Jn)).forEach(i=>{const r=i.dataset.playpilotInjectionKey,a=e.find(o=>r===o.key);a&&(i.addEventListener("mouseenter",o=>yl(o,a)),i.addEventListener("mouseleave",()=>Xt(a)))})}function pl(e,t,n){e.ctrlKey||e.metaKey||e.button!==0||(e.preventDefault(),n(t),Xt(t))}function yl(e,t){if(window.matchMedia("(pointer: coarse)").matches)return;const n=e.currentTarget;Pn=n,setTimeout(()=>{if(yt[t.key]||Pn!==n)return;const i=zn(el,{target:n,props:{title:t.title_details}});yt[t.key]={injection:t,component:i}},100)}function Xt(e,t=!0){const n=yt[e.key];Pn=null,n&&(nr(n.component,{outro:t}),delete yt[e.key])}function wl(e,t,n){var l,d;if(!t.length)return;const i=document.createElement("div"),r=(l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_selector,a=(r?document.querySelector(r):null)||e[e.length-1],o=((d=window.PlayPilotLinkInjections)==null?void 0:d.after_article_insert_position)||"afterend";i.dataset.playpilotAfterArticlePlaylinks="true",a.insertAdjacentElement(o,i),Yt=zn(ul,{target:i,props:{linkInjections:t,onclickmodal:n}})}function kl(){var e;Yt&&(nr(Yt),(e=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||e.remove(),Yt=null)}function jn(){Object.values(yt).forEach(t=>Xt(t.injection)),document.querySelectorAll(Jn).forEach(t=>t.outerHTML=t.textContent||""),Object.values(yt).forEach(({injection:t})=>Xt(t,!1)),kl()}function bl({aiInjections:e,manualInjections:t}){return[...t.map(n=>({...n,manual:!0})),...e]}function kr(e){return{aiInjections:e.filter(t=>!t.manual),manualInjections:e.filter(t=>t.manual)}}function br(e){return!e.inactive&&!e.removed&&!e.duplicate&&!!e.title_details&&vn(e)}function vn(e){return e.in_text||e.in_text===void 0?!0:!!e.after_article}function xl(e){return xr(e).filter(t=>t.in_text!==!1&&br(t))}function Sl(e){return xr(e).filter(t=>t.after_article===!0&&br(t))}function xr(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)&&Sr(n,t)))}function El(e,t,n){return n.some((i,r)=>t!==r&&i.manual&&Sr(i,e))}function Sr(e,t){return e.title===t.title&&Ye(e.sentence)===Ye(t.sentence)}function Tl(){const e=fn();return{heading:Al(e),modified_time:Il(e),published_time:Cl(e)}}function Al(e){const t=e.querySelector("h1")||document.querySelector("h1");return(t==null?void 0:t.innerText.trim())||null}function Il(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?Er(n):null}function Cl(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?Er(n):null}function Er(e){try{return new Date(e).toISOString()}catch{return null}}function Tr(){return location.protocol+"//"+location.host+location.pathname}let wn=null;async function Ar(e,t,{hash:n=gr(t),params:i={}}={}){const r=new Headers({"Content-Type":"application/json"}),a=_n(),o=hr()?await _r():!1,l=mr(),d=Tl();if(!a)throw new Error("No token was provided");const u=await fetch(un+`/external-pages/?api-token=${a}&include_title_details=true${o?"&editorial_mode_enabled=true":""}&language=${l}`,{headers:r,method:"POST",body:JSON.stringify({hash:n,url:e,metadata:d,page_text:t,...i})});if(!u.ok)throw u;return await u.json()}async function hi(e,t,{requireCompletedResult:n=!1,pollInterval:i=3e3,maxTries:r=600,onpoll:a=()=>null}={}){let o=gr(t),l=0;wn&&clearTimeout(wn);const d=async(u,v)=>{let s;try{if(s=await Ar(e,t,{hash:o}),n&&s.automation_enabled&&s.ai_running)throw new Error;s.link_injections=gi(s.link_injections||[]),s.ai_injections=gi(s.ai_injections||[]),u(s);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),u();return}s&&a(s),wn=setTimeout(()=>d(u),i)}};return new Promise(d)}async function Pl(e,t){var o;const n=(o=window.PlayPilotLinkInjections)==null?void 0:o.selector,r=e.filter(l=>l.manual).map(l=>({sid:l.sid,title:l.title,sentence:l.sentence,playpilot_url:l.playpilot_url,after_article:!!l.after_article,after_article_style:l.after_article_style||null,in_text:l.in_text??!0,inactive:!!l.inactive,removed:!!l.removed}));if(!await Ar(Tr(),t,{params:{private_token:Kn(),link_injections:r,text_selector:n}}))throw new Error("saveLinkInjections response was faulty");return e}async function jl(){const e=new Headers({"Content-Type":"application/json"}),t=_n();if(!t)throw new Error("No token was provided");const n=await fetch(un+`/domains/config?api-token=${t}`,{headers:e});if(!n.ok)throw n;try{return await n.json()||null}catch{return null}}function gi(e){return e.map(t=>({...t,key:Ir(t.sid)}))}function Ir(e){return e+"-"+(Math.random()+1).toString(36).substring(7)}function _n(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}function Nl(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}var Ll=Ee('<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 Cr(e){var t=Ll();k(e,t)}function Xn(e,t){re(t,!0);const n=R(t,"size",3,"margin(2)"),i=R(t,"onclick",3,()=>null),r=so(t,["$$slots","$$events","$$legacy","children","size","onclick"]);var a=Ze(),o=ee(a);Ya(o,()=>t.href?"a":"button",!1,(l,d)=>{let u;O(()=>{u=Ja(l,u,{role:t.href?"link":"button",onclick:i(),class:"button",...r},"svelte-1qqv88o",l.namespaceURI===Ti,l.nodeName.includes("-")),cn(l,"--size",n())});var v=Ze(),s=ee(v);St(s,()=>t.children??Le),k(d,v)}),k(e,a),ae()}var Ml=(e,t)=>t()(),Dl=I('<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 Ol(e,t){re(t,!0);const n=R(t,"onclose",3,()=>null),i=R(t,"onscroll",3,()=>null);Ji("scope","modal"),ut(()=>{const s=document.body.style.overflowY;return document.body.style.overflowY="hidden",()=>document.body.style.overflowY=s||""});function r(s){return window.innerWidth<600?dn(s,{duration:250,y:window.innerHeight}):bo(s,{duration:150,start:.85})}var a=Dl();ie("keydown",me,({key:s})=>{s==="Escape"&&n()()});var o=b(a),l=b(o),d=b(l);Xn(d,{onclick:()=>n()(),children:(s,h)=>{Cr(s)},$$slots:{default:!0}});var u=T(l,2);St(u,()=>t.children);var v=T(o,2);v.__click=[Ml,n],ie("scroll",o,function(...s){var h;(h=i())==null||h.apply(this,s)}),Ie(3,o,()=>r),Ie(3,a,()=>$n,()=>({duration:150})),k(e,a),ae()}ve(["click"]);function Rl(e,t){re(t,!0),Ce(xe.TitleModalView,t.title);let n=!1;function i(){n||(Ce(xe.TitleModalScroll,t.title),n=!0)}Ol(e,{get onclose(){return t.onclose},onscroll:i,children:(r,a)=>{yr(r,{get title(){return t.title}})},$$slots:{default:!0}}),ae()}var Hl=Ee('<svg width="8" height="4" viewBox="0 0 8 4" fill="none" class="svelte-by11ix"><path d="M1 0.5L4 3.5L7 0.5" stroke="currentColor" stroke-width="0.9975" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Fl(e,t){const n=R(t,"expanded",3,!1);var i=Hl();O(()=>se(i,"expanded",n())),k(e,i)}var ql=Ee('<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="17" r="1" fill="var(--playpilot-warning)"></circle><path d="M12 10L12 14" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.44722 18.1056L10.2111 4.57771C10.9482 3.10361 13.0518 3.10362 13.7889 4.57771L20.5528 18.1056C21.2177 19.4354 20.2507 21 18.7639 21H5.23607C3.7493 21 2.78231 19.4354 3.44722 18.1056Z" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Bl(e){var t=ql();k(e,t)}function Vl(e,t,n){t(!t()),n()(t())}var Ul=I('<button class="switch svelte-91s87b"><div class="label svelte-91s87b"><!></div> <div class="track svelte-91s87b"><div class="knob svelte-91s87b"></div></div></button>');function Nn(e,t){re(t,!0);let n=R(t,"active",15),i=R(t,"fullwidth",3,!1),r=R(t,"label",3,""),a=R(t,"onclick",3,()=>null);var o=Ul();o.__click=[Vl,n,a];var l=b(o),d=b(l);St(d,()=>t.children),O(()=>{ne(o,"aria-label",`Toggle ${r()??""} ${(n()?"off":"on")??""}`),se(o,"active",n()),se(o,"fullwidth",i())}),k(e,o),ae()}ve(["click"]);var zl=I('<input type="text" class="svelte-1vrer3i">');function Qn(e,t){let n=R(t,"value",15),i=R(t,"label",3,""),r=R(t,"name",3,""),a=R(t,"readonly",3,!1),o=R(t,"oninput",3,()=>null);var l=zl();l.__input=function(...d){var u;(u=o())==null||u.apply(this,d)},O(()=>{ne(l,"name",r()),ne(l,"aria-label",i()),ne(l,"placeholder",i()),l.readOnly=a()}),ro(l,n),k(e,l)}ve(["input"]);var Wl=Ee('<path d="M13.5833 13.6667L4.41667 13.6667M5.5 1.5H12.5C13.9001 1.5 14.6002 1.5 15.135 1.77248C15.6054 2.01217 15.9878 2.39462 16.2275 2.86502C16.5 3.3998 16.5 4.09987 16.5 5.5V12.5C16.5 13.9001 16.5 14.6002 16.2275 15.135C15.9878 15.6054 15.6054 15.9878 15.135 16.2275C14.6002 16.5 13.9001 16.5 12.5 16.5H5.5C4.09987 16.5 3.3998 16.5 2.86502 16.2275C2.39462 15.9878 2.01217 15.6054 1.77248 15.135C1.5 14.6002 1.5 13.9001 1.5 12.5V5.5C1.5 4.09987 1.5 3.3998 1.77248 2.86502C2.01217 2.39462 2.39462 2.01217 2.86502 1.77248C3.3998 1.5 4.09987 1.5 5.5 1.5Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),Kl=Ee('<path d="M13.5833 8.58342H4.41667M5.5 1.50009H12.5C13.9001 1.50009 14.6002 1.50009 15.135 1.77258C15.6054 2.01226 15.9878 2.39471 16.2275 2.86512C16.5 3.39989 16.5 4.09996 16.5 5.50009V12.5001C16.5 13.9002 16.5 14.6003 16.2275 15.1351C15.9878 15.6055 15.6054 15.9879 15.135 16.2276C14.6002 16.5001 13.9001 16.5001 12.5 16.5001H5.5C4.09987 16.5001 3.3998 16.5001 2.86502 16.2276C2.39462 15.9879 2.01217 15.6055 1.77248 15.1351C1.5 14.6003 1.5 13.9002 1.5 12.5001V5.50009C1.5 4.09996 1.5 3.39989 1.77248 2.86512C2.01217 2.39471 2.39462 2.01226 2.86502 1.77258C3.3998 1.50009 4.09987 1.50009 5.5 1.50009Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),Yl=Ee('<svg width="18" height="18" viewBox="0 0 18 18" fill="none"><!></svg>');function mi(e,t){const n=R(t,"align",3,"bottom");var i=Yl(),r=b(i);{var a=l=>{var d=Wl();k(l,d)},o=l=>{var d=Ze(),u=ee(d);{var v=s=>{var h=Kl();k(s,h)};H(u,s=>{n()==="center"&&s(v)},!0)}k(l,d)};H(r,l=>{n()==="bottom"?l(a):l(o,!1)})}k(e,i)}var $l=I("<div><!></div>");function Lt(e,t){re(t,!0);const n=R(t,"type",3,"error");var i=$l(),r=b(i);St(r,()=>t.children),O(()=>Xa(i,`alert ${n()??""} svelte-18si0a5`)),k(e,i),ae()}var Zl=I("<!> In-text Playlink",1),Gl=I("<!> Bottom Playlink",1),Jl=I('<div class="alert svelte-1shw34x"><!></div>'),Xl=(e,t)=>t().after_article_style="playlinks",Ql=(e,t)=>t().after_article_style="modal_button",es=I('<div><div class="label svelte-1shw34x">Bottom playlinks style</div> <div class="group svelte-1shw34x" role="listbox" tabindex="0" aria-label="Playlink type"><button role="option" id="playlinks-in-text" class="svelte-1shw34x">Playlinks sentence</button> <button role="option" id="playlinks-after-article" class="svelte-1shw34x">Modal button</button> <div class="active-marker svelte-1shw34x"></div></div></div>'),ts=I('<div class="switches svelte-1shw34x"><!> <!></div> <!> <!>',1);function ns(e,t){re(t,!0);const n=R(t,"linkInjection",7),i=U(()=>n().after_article_style==="modal_button");var r=ts(),a=ee(r),o=b(a),l=U(()=>n().in_text??!0);Nn(o,{fullwidth:!0,get active(){return c(l)},onclick:m=>{n().in_text=m,n().manual=!0},label:"In-text Playlink",children:(m,f)=>{var p=Zl(),y=ee(p);mi(y,{align:"center"}),k(m,p)},$$slots:{default:!0}});var d=T(o,2),u=U(()=>n().after_article??!1);Nn(d,{fullwidth:!0,get active(){return c(u)},onclick:m=>{n().after_article=m,n().manual=!0},label:"Bottom Playlink",children:(m,f)=>{var p=Gl(),y=ee(p);mi(y,{align:"bottom"}),k(m,p)},$$slots:{default:!0}});var v=T(a,2);{var s=m=>{var f=Jl(),p=b(f);Lt(p,{type:"warning",children:(y,w)=>{var S=Oe("At least one layout option must be selected for the playlink to be visible.");k(y,S)},$$slots:{default:!0}}),Ie(3,f,()=>jt,()=>({duration:200})),k(m,f)};H(v,m=>{vn(n())||m(s)})}var h=T(v,2);{var g=m=>{var f=es(),p=T(b(f),2),y=b(p);y.__click=[Xl,n];var w=T(y,2);w.__click=[Ql,n];var S=T(w,2);O(()=>{ne(p,"aria-activedescendant",`playlinks-${(c(i)?"after-article":"in-text")??""}`),ne(y,"aria-selected",!c(i)||null),se(y,"active",!c(i)),ne(w,"aria-selected",c(i)||null),se(w,"active",c(i)),se(S,"right",c(i))}),Ie(3,f,()=>jt,()=>({duration:100})),k(m,f)};H(h,m=>{n().after_article&&m(g)})}k(e,r),ae()}ve(["click"]);var is=Ee('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function rs(e){var t=is();k(e,t)}var as=(e,t)=>P(t,!c(t)),os=I('<div class="content svelte-1fmy0wh"><!></div>'),ls=I('<div class="context-menu svelte-1fmy0wh"><button class="svelte-1fmy0wh"><!></button> <!></div>');function ss(e,t){re(t,!0);let n=K(!1),i=K(null);function r(v){var h;const s=v.target;s===c(i)||(h=c(i))!=null&&h.contains(s)||P(n,!1)}var a=ls();ie("click",me,r);var o=b(a);o.__click=[as,n];var l=b(o);rs(l),Bt(o,v=>P(i,v),()=>c(i));var d=T(o,2);{var u=v=>{var s=os(),h=b(s);St(h,()=>t.children),Ie(1,s,()=>dn,()=>({duration:150,y:5})),k(v,s)};H(d,v=>{c(n)&&v(u)})}O(()=>{ne(o,"aria-label",t.ariaLabel),ne(o,"aria-expanded",c(n))}),k(e,a),ae()}ve(["click"]);function cs(e,t,n){requestAnimationFrame(()=>t());const i=e.target;if(["BUTTON","INPUT"].includes(i.nodeName)||i.closest("button")||i.closest("input"))return;const r=n()[0];r&&r.scrollIntoView({behavior:"smooth"})}var us=(e,t)=>P(t,!c(t)),ds=I('<button class="expand-sentence svelte-8gd2db"> </button>'),fs=I('<button class="context-menu-action svelte-8gd2db">Remove</button>'),vs=(e,t)=>P(t,!c(t)),_s=I('<div class="warning svelte-8gd2db" aria-label="Invalid playlink settings"><!></div>'),hs=I('<div class="actions svelte-8gd2db"><button class="expand svelte-8gd2db" aria-label="Expand"><!></button> <!> <!></div>'),gs=I('<div class="expanded svelte-8gd2db"><div class="label svelte-8gd2db">Link URL</div> <!> <div class="label offset svelte-8gd2db">Layout options</div> <div class="type-select svelte-8gd2db"><!></div></div>'),ms=I('<div class="item svelte-8gd2db"><div class="header svelte-8gd2db"><img class="poster svelte-8gd2db" alt="" width="32" height="48"> <div class="info svelte-8gd2db"><div class="title svelte-8gd2db"> </div> <div class="sentence svelte-8gd2db"><!> <!></div></div> <div class="context-menu svelte-8gd2db"><!></div></div> <div class="content svelte-8gd2db"><!> <!></div></div>');function ps(e,t){re(t,!0);const n=R(t,"linkInjection",15),i=R(t,"onremove",3,()=>null),r=R(t,"onhighlight",3,()=>null),a=U(()=>n()||{}),o=U(()=>c(a).key),l=U(()=>c(a).sentence),d=U(()=>c(a).title_details),u=U(()=>c(a).failed),v=U(()=>c(a).failed_message),s=U(()=>c(a).inactive),h=U(()=>c(d)),g=U(()=>vl(n().sentence,n().title,60));let m=K(!1),f=K(!1),p=K(!1),y=K(null);ut(()=>{c(u)&&Ce(xe.InjectionFailed,c(h),{phrase:n().title,sentence:c(l)})});function w(Z=!0){j().forEach(oe=>{oe.classList.toggle("playpilot-injection-highlight",Z)})}function S(Z){let J=Z.target,oe=J==null?void 0:J.dataset.playpilotInjectionKey;J&&!oe&&(J=J.closest(`[data-playpilot-injection-key="${c(o)}"]`),oe=J==null?void 0:J.dataset.playpilotInjectionKey),P(p,oe===c(o)),c(y)&&c(p)&&r()(c(y))}function j(){const Z=Array.from(document.querySelectorAll(`[data-playpilot-injection-key="${c(o)}"]`));return Z.length?Z:wr(fn()).filter(J=>Ye(J.innerText).includes(Ye(n().sentence)))||[]}var x=ms();ie("mouseover",me,S),x.__click=[cs,w,j];var A=b(x),C=b(A);O(()=>ne(C,"src",Nt(c(h).standing_poster)));var E=T(C,2),L=b(E),B=b(L),$=T(L,2),M=b($);Ka(M,()=>(c(f)?c(l):c(g)).replace(n().title,`<em>${n().title}</em>`));var F=T(M,2);{var V=Z=>{var J=ds();J.__click=[us,f];var oe=b(J);O(()=>Y(oe,c(f)?"Less":"More")),k(Z,J)};H(F,Z=>{c(g).length<c(l).length&&Z(V)})}var N=T(E,2),W=b(N);ss(W,{ariaLabel:"More options",children:(Z,J)=>{var oe=fs();oe.__click=function(...D){var q;(q=i())==null||q.apply(this,D)},k(Z,oe)},$$slots:{default:!0}});var X=T(A,2),le=b(X);{var ce=Z=>{Lt(Z,{children:(J,oe)=>{var D=Oe();O(()=>Y(D,c(v))),k(J,D)},$$slots:{default:!0}})},de=Z=>{var J=hs(),oe=b(J);oe.__click=[vs,m];var D=b(oe);Fl(D,{get expanded(){return c(m)}});var q=T(oe,2);{var ue=fe=>{var Ge=_s(),Je=b(Ge);Bl(Je),Ie(3,Ge,()=>$n,()=>({duration:100})),k(fe,Ge)};H(q,fe=>{vn(n())||fe(ue)})}var Te=T(q,2),Ae=U(()=>c(s)?"Inactive":"Visible"),We=U(()=>!n().inactive);Nn(Te,{get label(){return c(Ae)},get active(){return c(We)},onclick:fe=>{n(n().inactive=!fe,!0),n(n().manual=!0,!0)},children:(fe,Ge)=>{var Je=Oe();O(()=>Y(Je,c(s)?"Inactive":"Visible")),k(fe,Je)},$$slots:{default:!0}}),O(()=>ne(oe,"aria-expanded",c(m))),k(Z,J)};H(le,Z=>{c(u)?Z(ce):Z(de,!1)})}var _e=T(le,2);{var ze=Z=>{var J=gs(),oe=T(b(J),2);Qn(oe,{oninput:()=>n(n().manual=!0,!0),label:"Playlink URL",get value(){return n().playpilot_url},set value(ue){n(n().playpilot_url=ue,!0)}});var D=T(oe,4),q=b(D);ns(q,{get linkInjection(){return n()}}),Ie(3,J,()=>jt,()=>({duration:100})),k(Z,J)};H(_e,Z=>{c(m)&&Z(ze)})}Bt(x,Z=>P(y,Z),()=>c(y)),O(()=>{se(x,"highlighted",c(p)),se(x,"inactive",c(s)),Y(B,c(h).title)}),ie("mouseenter",x,()=>w(!0)),ie("mouseleave",x,()=>w(!1)),ie("error",C,({target:Z})=>Z.src=sr),Ie(6,x,()=>jt,()=>({duration:200})),k(e,x),ae()}ve(["click"]);var ys=I('<button class="drag-handle svelte-19mcc5g" aria-label="Move editor"></button>');function ws(e,t){re(t,!0);let n=R(t,"element",7),i=R(t,"position",23,()=>({x:0,y:0})),r=R(t,"limit",19,()=>({x:0,y:0})),a=R(t,"onchange",3,()=>null),o=!1,l={x:0,y:0},d=i();ut(()=>{u(i().x,i().y)});function u(f,p){const y=window.innerWidth,w=window.innerHeight,S=n().clientWidth,j=n().clientHeight;f=Math.min(Math.max(f,r().x),y-S-r().x),p=Math.min(Math.max(p,r().y),w-j-r().y),n().style.right=f+"px",n().style.bottom=Math.max(p,r().y)+"px",i({x:f,y:p}),a()(i())}function v(f){var p,y;return{x:f.pageX||((p=f.touches)==null?void 0:p[0].pageX)||0,y:f.pageY||((y=f.touches)==null?void 0:y[0].pageY)||0}}function s(f){o=!0,l=v(f),d=i()}function h(f){if(!o)return;const p=v(f),y=p.x-l.x,w=p.y-l.y,S=d.x-y,j=d.y-w;u(S,j)}function g(){o&&(o=!1)}var m=ys();ie("mousemove",me,h),ie("touchmove",me,h,void 0,!0),ie("mouseup",me,g),ie("touchend",me,g),ie("resize",me,()=>u(i().x,i().y)),m.__mousedown=s,m.__touchstart=s,k(e,m),ae()}ve(["mousedown","touchstart"]);var ks=I('<button class="resize-handle svelte-sxkuxk" aria-label="Move editor"></button>');function bs(e,t){re(t,!0);let n=R(t,"element",7),i=R(t,"height",7,200),r=R(t,"onchange",3,()=>null);const a=16;let o=!1,l=0,d=i();ut(()=>{i()&&u(i())});function u(f){const p=window.getComputedStyle(n()).minHeight||"0",y=Math.max(parseInt(p),Math.min(f,g()));n().style.height=`${y}px`,i(y),r()(y)}function v(f){var p,y;o=!0,l=f.pageY||((y=(p=f.touches)==null?void 0:p[0])==null?void 0:y.pageY)||0,d=n().clientHeight}function s(f){var S,j;if(!o)return;const p=f.pageY||((j=(S=f.touches)==null?void 0:S[0])==null?void 0:j.pageY)||0,y=l-p,w=d+y;u(w)}function h(){o=!1}function g(){const f=window.innerHeight-n().getBoundingClientRect().bottom;return Math.max(window.innerHeight-a*2-f,0)}var m=ks();ie("mousemove",me,s),ie("touchmove",me,s,void 0,!0),ie("mouseup",me,h),ie("touchend",me,h),ie("resize",me,()=>{i()&&u(i())}),m.__mousedown=v,m.__touchstart=v,k(e,m),ae()}ve(["mousedown","touchstart"]);var xs=Ee('<svg width="4" height="8" viewBox="0 0 4 8" fill="none"><path d="M3.5 7L0.5 4L3.5 1" stroke="currentcolor" stroke-width="0.9975" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Ss(e){var t=xs();k(e,t)}async function Es(e){const t=new Headers({"Content-Type":"application/json"}),n=_n();if(!n)throw new Error("No token was provided");const i=await fetch(un+`/search/titles/?api-token=${n}&query=${e}`,{headers:t});if(!i.ok)throw i;return await i.json()}var Ts=Ee('<svg viewBox="0 -960 960 960" width="18" height="18"><path fill="currentColor" d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"></path></svg>');function As(e){var t=Ts();k(e,t)}var Is=I("<div> </div>"),Cs=e=>e.stopImmediatePropagation(),Ps=I('<button class="item svelte-rjq94e"><img class="poster svelte-rjq94e" alt="" width="28" height="42"> <div class="content"><div class="name svelte-rjq94e"> </div> <div class="meta svelte-rjq94e"><div class="imdb svelte-rjq94e"><!> </div> <div> </div> <div> </div> <!></div></div> <a target="_blank" class="open-in-new-tab svelte-rjq94e"><!></a></button>');function pi(e,t){re(t,!0);const n=R(t,"hoverable",3,!0),i=R(t,"onclick",3,()=>null);var r=Ps();r.__click=function(...x){var A;(A=i())==null||A.apply(this,x)};var a=b(r);O(()=>ne(a,"src",Nt(t.title.standing_poster)));var o=T(a,2),l=b(o),d=b(l),u=T(l,2),v=b(u),s=b(v);pr(s);var h=T(s),g=T(v,2),m=b(g),f=T(g,2),p=b(f),y=T(f,2);{var w=x=>{var A=Is(),C=b(A);O(()=>Y(C,`${t.title.length??""} min`)),k(x,A)};H(y,x=>{t.title.length&&x(w)})}var S=T(o,2);S.__click=[Cs];var j=b(S);As(j),O(()=>{se(r,"hoverable",n()),Y(d,t.title.title),Y(h,` ${t.title.imdb_score??""}`),Y(m,t.title.year),Y(p,t.title.type),ne(S,"href",`${lr}/${t.title.type??""}/${t.title.slug??""}`)}),ie("error",a,({target:x})=>x.src=sr),k(e,r),ae()}ve(["click"]);var js=I('<em class="empty svelte-1olb8n0">No results found</em>'),Ns=I('<div class="results svelte-1olb8n0" data-testid="search-results"></div>'),Ls=I('<div class="selected svelte-1olb8n0"><!></div>'),Ms=I('<div class="search svelte-1olb8n0"><!> <!> <!></div>');function Ds(e,t){re(t,!0);let n=R(t,"onselect",3,()=>null),i=R(t,"query",15),r=K(G([])),a=K(null),o=K(!1);rn(()=>{i()&&l(i())});async function l(f){P(o,!0);try{P(r,G(await Es(f)))}finally{P(o,!1)}}function d(f){i(f.title),P(a,G(f)),n()(f)}var u=Ms(),v=b(u);Qn(v,{oninput:()=>P(a,null),name:"search",label:"Search...",get value(){return i()},set value(f){i(f)}});var s=T(v,2);{var h=f=>{var p=Ns();it(p,21,()=>c(r),y=>y.sid,(y,w)=>{pi(y,{get title(){return c(w)},onclick:()=>d(c(w))})},y=>{var w=Ze(),S=ee(w);{var j=x=>{var A=js();k(x,A)};H(S,x=>{c(o)||x(j)})}k(y,w)}),k(f,p)};H(s,f=>{i()&&!c(a)&&f(h)})}var g=T(s,2);{var m=f=>{var p=Ls(),y=b(p);pi(y,{get title(){return c(a)},hoverable:!1}),k(f,p)};H(g,f=>{c(a)&&f(m)})}k(e,u),ae()}function Os(e,t,n,i,r,a){if(!c(t)||!c(n))return;const o=c(n).type==="movie"?"movie":"show",l=lr+`/${o}/${c(n).slug}`,d={sid:c(n).sid,title:c(t),sentence:c(i),playpilot_url:l,key:Ir(c(n).sid),title_details:c(n),manual:!0};r.onsave(d),a()()}var Rs=I('<div class="error svelte-1i8p6op"><!></div>'),Hs=I('<label for="text" class="svelte-1i8p6op">Paired title</label> <!>',1),Fs=I('<section class="layout svelte-1i8p6op"><div class="header svelte-1i8p6op"><!> <div class="heading svelte-1i8p6op">Add Playlink manually</div></div> <p class="svelte-1i8p6op">Highlight the text section in your post that you want to turn into a Playlink.</p> <label for="text" class="svelte-1i8p6op">Selected text</label> <!> <!> <!> <button class="save svelte-1i8p6op">Add playlink</button></section>');function qs(e,t){re(t,!0);let n=R(t,"htmlString",3,""),i=R(t,"onclose",3,()=>null),r=K(""),a=K(""),o=K(null),l=K(""),d=K("");ut(u);function u(){const C=window.getSelection();if(!(C!=null&&C.anchorNode)||C.anchorNode.parentElement&&!fn().contains(C.anchorNode.parentElement))return;const E=C.toString().trim();if(!E)return;P(l,""),P(r,G(E));const L=C.getRangeAt(0).cloneContents();if(Array.from(L.childNodes).filter(F=>{var V;return(V=F.textContent)==null?void 0:V.trim()}).length>1){P(l,"Selection contains multiple items. Selection may not contain a mix of styled and non styled text. Please select the text more directly.");return}P(d,G(c(r))),P(a,G(v(C,E)));const $=C.getRangeAt(0).commonAncestorContainer.textContent,M=Zn(n());(!$||!M.includes($))&&P(l,"Selection was not inside of given content")}function v(C,E){const L=C.getRangeAt(0);let B=L.startContainer;for(;(B.textContent||"").length<=E.length*3&&B.parentNode;)B=B.parentNode;if(!B||!B.textContent)return"";const $=B.textContent,M=s(B,L.startContainer,L.startOffset),F=s(B,L.endContainer,L.endOffset),V=$.slice(0,M).lastIndexOf("."),N=$.slice(F).match(/[.!?]/),W=N?F+N.index:$.length,X=V===-1?0:V+1,le=W;return $.slice(X,le+1).trim()}function s(C,E,L){let B=0;const $=C,M=F=>{var V;if(F===E)return B+=L,!0;F.nodeType===Node.TEXT_NODE&&(B+=((V=F.textContent)==null?void 0:V.length)||0);for(let N=F.firstChild;N;N=N.nextSibling)if(M(N))return!0;return!1};return M($),B}function h(C){var E,L;P(o,G(C)),(L=(E=window.getSelection())==null?void 0:E.removeAllRanges)==null||L.call(E)}var g=Fs();ie("mouseup",me,u);var m=b(g),f=b(m);Xn(f,{get onclick(){return i()},size:"24px",children:(C,E)=>{Ss(C)},$$slots:{default:!0}});var p=T(f,2);sn(p,(C,E)=>Pe==null?void 0:Pe(C,E),()=>2);var y=T(m,6);Qn(y,{get value(){return c(r)},label:"Select text on the page",name:"selected-text",readonly:!0});var w=T(y,2);{var S=C=>{var E=Rs(),L=b(E);Lt(L,{children:(B,$)=>{var M=Oe();O(()=>Y(M,c(l))),k(B,M)},$$slots:{default:!0}}),k(C,E)};H(w,C=>{c(l)&&C(S)})}var j=T(w,2);{var x=C=>{var E=Hs(),L=T(ee(E),2);ir(L,()=>c(a)+c(r),B=>{Ds(B,{onselect:h,get query(){return c(d)},set query($){P(d,G($))}})}),k(C,E)};H(j,C=>{c(l)||C(x)})}var A=T(j,2);A.__click=[Os,r,o,a,t,i],O(()=>A.disabled=!c(r)||!c(o)),k(e,g),ae()}ve(["click"]);var Bs=Ee('<svg width="24px" height="24px" viewBox="0 0 64 64" stroke-width="3" stroke="currentColor" fill="none"><circle cx="34.52" cy="11.43" r="5.82"></circle><circle cx="53.63" cy="31.6" r="5.82"></circle><circle cx="34.52" cy="50.57" r="5.82"></circle><circle cx="15.16" cy="42.03" r="5.82"></circle><circle cx="15.16" cy="19.27" r="5.82"></circle><circle cx="34.51" cy="29.27" r="4.7"></circle><line x1="20.17" y1="16.3" x2="28.9" y2="12.93"></line><line x1="38.6" y1="15.59" x2="49.48" y2="27.52"></line><line x1="50.07" y1="36.2" x2="38.67" y2="46.49"></line><line x1="18.36" y1="24.13" x2="30.91" y2="46.01"></line><line x1="20.31" y1="44.74" x2="28.7" y2="48.63"></line><line x1="17.34" y1="36.63" x2="31.37" y2="16.32"></line><line x1="20.52" y1="21.55" x2="30.34" y2="27.1"></line><line x1="39.22" y1="29.8" x2="47.81" y2="30.45"></line><line x1="34.51" y1="33.98" x2="34.52" y2="44.74"></line></svg>');function Vs(e){var t=Bs();k(e,t)}var Us=I('<strong class="svelte-1kpafo0">AI processing is disabled.</strong> Enable AI from the <a href="https://partner.playpilot.net" class="svelte-1kpafo0">Partner Portal</a>',1),zs=I('<span class="svelte-1kpafo0">.</span>'),Ws=I(`<strong class="svelte-1kpafo0">AI links are currently processing.</strong> This can take several minutes. We'll insert all found injections once ready. <div class="message svelte-1kpafo0"> <span class="ellipses svelte-1kpafo0"></span></div> <div class="loading-bar svelte-1kpafo0"><div class="loading-bar-progress svelte-1kpafo0"><div class="loading-bar-fill svelte-1kpafo0" data-testid="loading-bar"></div></div> <div class="loading-bar-label svelte-1kpafo0"> </div></div>`,1),Ks=(e,t)=>P(t,!0),Ys=I('<p class="svelte-1kpafo0"><strong class="svelte-1kpafo0">AI has finished processing.</strong> <br class="svelte-1kpafo0"> <!></p> <button class="dismiss svelte-1kpafo0">Dismiss</button>',1),$s=I('<div class="animator svelte-1kpafo0" data-test-id="animator"></div>'),Zs=I('<div class="ai-indicator svelte-1kpafo0" data-testid="ai-indicator"><div class="content svelte-1kpafo0"><div class="icon svelte-1kpafo0"><!></div> <div class="svelte-1kpafo0"><!></div></div> <div class="border svelte-1kpafo0"><!></div></div>');function Gs(e,t){const n=R(t,"aiRunning",3,!1),i=R(t,"automationEnabled",3,!1),r=R(t,"message",3,""),a=R(t,"percentage",3,0),o=R(t,"aiInjectionsCount",3,0),l=o();let d=K(!1);var u=Ze(),v=ee(u);{var s=h=>{var g=Zs(),m=b(g),f=b(m),p=b(f);Vs(p);var y=T(f,2),w=b(y);{var S=E=>{var L=Us();k(E,L)},j=E=>{var L=Ze(),B=ee(L);{var $=F=>{var V=Ws(),N=T(ee(V),2),W=b(N),X=T(W);it(X,20,()=>({length:3}),pt,(J,oe)=>{var D=zs();k(J,D)});var le=T(N,2),ce=b(le),de=b(ce);const _e=U(()=>`${Math.max(a(),3)??""}%`);O(()=>cn(de,"width",c(_e)));var ze=T(ce,2),Z=b(ze);O(()=>{Y(W,`${r()??""} `),Y(Z,`${a()??""}%`)}),k(F,V)},M=F=>{var V=Ys(),N=ee(V),W=T(b(N),4);{var X=de=>{var _e=Oe("No new injections where found.");k(de,_e)},le=de=>{var _e=Oe();O(()=>Y(_e,`${o()??""} Injections where found and added to the page.`)),k(de,_e)};H(W,de=>{l===o()?de(X):de(le,!1)})}var ce=T(N,2);ce.__click=[Ks,d],k(F,V)};H(B,F=>{n()?F($):F(M,!1)},!0)}k(E,L)};H(w,E=>{i()?E(j,!1):E(S)})}var x=T(m,2),A=b(x);{var C=E=>{var L=$s();k(E,L)};H(A,E=>{n()&&E(C)})}O(()=>se(g,"running",n())),k(h,g)};H(v,h=>{c(d)||h(s)})}k(e,u)}ve(["click"]);async function Js(e,t,n,i,r,a,o){try{P(t,!0),P(n,!1),i(await Pl(i(),r())),P(a,G(c(o)))}catch{P(n,!0)}finally{P(t,!1)}}var Xs=I('<div class="handles svelte-1ybwhez"><div class="handle svelte-1ybwhez"><!></div> <div class="handle svelte-1ybwhez"><!></div></div>'),Qs=I('<div class="loading svelte-1ybwhez">Loading...</div>'),ec=I('<div class="bubble svelte-1ybwhez"> </div> <!>',1),tc=I(`<strong>Playlinks are currently not published.</strong> Visitors to this page will not see any of the injected links.
|
|
9
|
-
Publish playlinks from the <a href="https://partner.playpilot.net">Partner Portal</a>`,1),
|
|
2
|
+
(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";.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-19ba1f5{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-19ba1f5{padding:32px}}.modal.svelte-19ba1f5 svg{fill:none}.modal.svelte-19ba1f5 a,.modal.svelte-19ba1f5 button,.modal.svelte-19ba1f5 input{transition:outline-offset .1s}.modal.svelte-19ba1f5 a:focus-visible,.modal.svelte-19ba1f5 button:focus-visible,.modal.svelte-19ba1f5 input:focus-visible{outline:2px solid white;outline-offset:2px}.dialog.svelte-19ba1f5{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-19ba1f5{margin-top:0;border-radius:var(--playpilot-detail-border-radius, 16px);max-height:100%}}.backdrop.svelte-19ba1f5{position:absolute;top:0;right:0;bottom:0;left:0}.close.svelte-19ba1f5{--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-19ba1f5:hover{filter:brightness(1.1)}.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}.popover.svelte-165x72s{--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-165x72s svg{fill:none}.popover.svelte-165x72s a,.popover.svelte-165x72s button,.popover.svelte-165x72s input{transition:outline-offset .1s}.popover.svelte-165x72s a:focus-visible,.popover.svelte-165x72s button:focus-visible,.popover.svelte-165x72s input:focus-visible{outline:2px solid white;outline-offset:2px}.popover.flip.svelte-165x72s{top:auto;bottom:calc(var(--offset) + 1px);transform:translateY(calc(100% + var(--offset)))}.dialog.svelte-165x72s{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}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))}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-1kpafo0{color:currentColor}p.svelte-1kpafo0{margin:0}.ai-indicator.svelte-1kpafo0{position:relative;margin:0 8px}.content.svelte-1kpafo0{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-1kpafo0{display:flex;margin-top:4px;font-style:italic}.icon.svelte-1kpafo0{color:var(--playpilot-green)}.border.svelte-1kpafo0{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-1kpafo0 .border:where(.svelte-1kpafo0){background:var(--playpilot-light)}@keyframes svelte-1kpafo0-rotate{to{rotate:360deg}}.animator.svelte-1kpafo0{position:absolute;left:50%;top:50%;transform:translateY(-50%);width:100%;height:20rem;background:var(--playpilot-green);transform-origin:left 50%;animation:svelte-1kpafo0-rotate 2s infinite linear;filter:blur(5rem)}.loading-bar.svelte-1kpafo0{display:grid;grid-template-columns:auto 3em;align-items:center}.loading-bar-progress.svelte-1kpafo0{height:.5em;border-radius:.25rem;background:var(--playpilot-dark)}.loading-bar-fill.svelte-1kpafo0{height:100%;border-radius:.25rem;background:var(--playpilot-green);transition:width .2s}.loading-bar-label.svelte-1kpafo0{text-align:right}@keyframes svelte-1kpafo0-fade{0%,to{opacity:0}25%,75%{opacity:1}}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0){animation:svelte-1kpafo0-fade 2s infinite}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0):nth-child(1){animation-delay:.2s}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0):nth-child(2){animation-delay:.4s}.ellipses.svelte-1kpafo0 span:where(.svelte-1kpafo0):nth-child(3){animation-delay:.6s}.dismiss.svelte-1kpafo0{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin-top:4px;padding:4px;border:2px solid var(--playpilot-content-light);border-radius:4px;background:var(--playpilot-light);font-family:inherit;color:var(--playpilot-text-color-alt);font-size:12px;line-height:1;cursor:pointer}.dismiss.svelte-1kpafo0:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.editor.svelte-496y63{z-index:2147483646;display:flex;flex-direction:column;position:fixed;bottom:16px;right:16px;width:100%;max-width:352px;height:min(70vh,640px);min-height:min(25rem,80vh);margin:0;padding:16px;border-radius:24px;background:var(--playpilot-dark);box-shadow:var(--playpilot-shadow-large);color:var(--playpilot-text-color);font-family:var(--playpilot-font-family);transition:border-radius .1s;overflow-y:auto;overflow-x:hidden;line-height:normal}.editor.svelte-496y63 svg{fill:none}.editor.svelte-496y63 a,.editor.svelte-496y63 button,.editor.svelte-496y63 input{transition:outline-offset .1s}.editor.svelte-496y63 a:focus-visible,.editor.svelte-496y63 button:focus-visible,.editor.svelte-496y63 input:focus-visible{outline:2px solid white;outline-offset:2px}.panel-open.svelte-496y63{overflow:hidden}.loading.svelte-496y63{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-496y63,.header.svelte-496y63{z-index:20;position:sticky;top:-16px;margin:-16px -16px 0}.handle.svelte-496y63{opacity:0;transition:opacity .15s}.editor.svelte-496y63:hover .handle:where(.svelte-496y63){opacity:1}.header.svelte-496y63{z-index:5;display:flex;align-items:center;padding:16px 16px 16px 24px;margin:0 -16px;border:0;background:var(--playpilot-dark)}.loading.svelte-496y63 .header:where(.svelte-496y63){margin:-16px}.heading.svelte-496y63{margin:0 12px 0 0;color:var(--playpilot-text-color);font-size:20px;font-weight:400;line-height:normal}.bubble.svelte-496y63{-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-496y63{padding-top:8px;margin-bottom:auto}.empty.svelte-496y63{padding:8px;font-size:13.6px;font-style:italic;color:var(--playpilot-text-color-alt)}.save.svelte-496y63{z-index:1;-webkit-appearance:none;-moz-appearance:none;appearance:none;position:sticky;bottom:0;left:0;width:100%;margin-top:16px;padding:8px;border:0;border-radius:32px;background:var(--playpilot-content);box-shadow:0 0 16px 16px var(--playpilot-dark);transition:opacity .1s;font-family:inherit;color:var(--playpilot-text-color-alt);font-size:13.6px;cursor:pointer}.save.svelte-496y63:hover{background:var(--playpilot-content-light);color:var(--playpilot-text-color)}.save[disabled].svelte-496y63{opacity:.75;background:var(--playpilot-light);color:var(--playpilot-content-light)}.error.svelte-496y63{margin-top:8px}.alert.svelte-496y63{margin:0 8px 8px}.panel.svelte-496y63{z-index:10;position:absolute;top:0;left:0;width:100%;height:100%;padding:24px;background:var(--playpilot-dark);overflow-y:auto}.trigger.svelte-qee95d{position:fixed;bottom:16px;right:16px}.button.svelte-qee95d{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;width:48px;height:48px;border:0;padding:12px;border-radius:50%;background:var(--playpilot-light);box-shadow:var(--playpilot-shadow-large);transition:transform 50ms;line-height:24px;text-align:center;font-size:13.6px}.button.svelte-qee95d:hover{filter:brightness(1.1);transform:scale(1.05)}.button.svelte-qee95d svg{width:100%}.close.svelte-qee95d{display:flex;text-align:center;justify-content:center;position:absolute;top:-8px;right:-8px;width:24px;height:24px;padding:4px;background:var(--playpilot-content);color:#fff}.close.svelte-qee95d svg{width:12px}: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-1morl7q *{box-sizing:border-box}')),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
|
|
3
|
+
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))i(r);new MutationObserver(r=>{for(const a of r)if(a.type==="childList")for(const o of a.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&i(o)}).observe(document,{childList:!0,subtree:!0});function n(r){const a={};return r.integrity&&(a.integrity=r.integrity),r.referrerPolicy&&(a.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?a.credentials="include":r.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function i(r){if(r.ep)return;r.ep=!0;const a=n(r);fetch(r.href,a)}})();const xn=!1;var Mn=Array.isArray,Lr=Array.prototype.indexOf,Dn=Array.from,Mr=Object.defineProperty,Qe=Object.getOwnPropertyDescriptor,ki=Object.getOwnPropertyDescriptors,Dr=Object.prototype,Or=Array.prototype,On=Object.getPrototypeOf;function _t(e){return typeof e=="function"}const Le=()=>{};function Rr(e){for(var t=0;t<e.length;t++)e[t]()}function Zt(e,t,n=!1){return e===void 0?n?t():t:e}const Me=2,bi=4,Ot=8,en=16,Re=32,Rt=64,Sn=128,st=256,Gt=512,Se=1024,nt=2048,tn=4096,Fe=8192,wt=16384,xi=32768,kt=65536,Hr=1<<17,Fr=1<<19,Si=1<<20,et=Symbol("$state"),Ei=Symbol("legacy props"),qr=Symbol("");function Ti(e){return e===this.v}function nn(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Br(e,t){return e!==t}function Rn(e){return!nn(e,this.v)}function Vr(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Ur(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Wr(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Kr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zr(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Yr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function $r(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Zr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Gr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let bt=!1,Jr=!1;function Xr(){bt=!0}const Hn=1,Fn=2,Ai=4,Qr=8,ea=16,ta=1,na=2,ia=4,ra=8,aa=16,oa=1,la=2,sa=4,ca=1,ua=2,pe=Symbol(),Ii="http://www.w3.org/2000/svg";function be(e,t){var n={f:0,v:e,reactions:null,equals:Ti,rv:0,wv:0};return n}function W(e){return da(be(e))}function Ci(e,t=!1){var i;const n=be(e);return t||(n.equals=Rn),bt&&ee!==null&&ee.l!==null&&((i=ee.l).s??(i.s=[])).push(n),n}function da(e){return X!==null&&X.f&Me&&(qe===null?xa([e]):qe.push(e)),e}function N(e,t){return X!==null&&Bt()&&X.f&(Me|en)&&(qe===null||!qe.includes(e))&&Gr(),En(e,t)}function En(e,t){return e.equals(t)||(e.v,e.v=t,e.wv=Yi(),Pi(e,nt),Bt()&&V!==null&&V.f&Se&&!(V.f&Re)&&(ge!==null&&ge.includes(e)?(Ue(V,nt),sn(V)):tt===null?Sa([e]):tt.push(e))),t}function Pi(e,t){var n=e.reactions;if(n!==null)for(var i=Bt(),r=n.length,a=0;a<r;a++){var o=n[a],l=o.f;l&nt||!i&&o===V||(Ue(o,t),l&(Se|st)&&(l&Me?Pi(o,tn):sn(o)))}}let ji=!1;function J(e,t=null,n){if(typeof e!="object"||e===null||et in e)return e;const i=On(e);if(i!==Dr&&i!==Or)return e;var r=new Map,a=Mn(e),o=be(0);a&&r.set("length",be(e.length));var l;return new Proxy(e,{defineProperty(d,s,u){(!("value"in u)||u.configurable===!1||u.enumerable===!1||u.writable===!1)&&Yr();var f=r.get(s);return f===void 0?(f=be(u.value),r.set(s,f)):N(f,J(u.value,l)),!0},deleteProperty(d,s){var u=r.get(s);if(u===void 0)s in d&&r.set(s,be(pe));else{if(a&&typeof s=="string"){var f=r.get("length"),_=Number(s);Number.isInteger(_)&&_<f.v&&N(f,_)}N(u,pe),ni(o)}return!0},get(d,s,u){var m;if(s===et)return e;var f=r.get(s),_=s in d;if(f===void 0&&(!_||(m=Qe(d,s))!=null&&m.writable)&&(f=be(J(_?d[s]:pe,l)),r.set(s,f)),f!==void 0){var g=c(f);return g===pe?void 0:g}return Reflect.get(d,s,u)},getOwnPropertyDescriptor(d,s){var u=Reflect.getOwnPropertyDescriptor(d,s);if(u&&"value"in u){var f=r.get(s);f&&(u.value=c(f))}else if(u===void 0){var _=r.get(s),g=_==null?void 0:_.v;if(_!==void 0&&g!==pe)return{enumerable:!0,configurable:!0,value:g,writable:!0}}return u},has(d,s){var g;if(s===et)return!0;var u=r.get(s),f=u!==void 0&&u.v!==pe||Reflect.has(d,s);if(u!==void 0||V!==null&&(!f||(g=Qe(d,s))!=null&&g.writable)){u===void 0&&(u=be(f?J(d[s],l):pe),r.set(s,u));var _=c(u);if(_===pe)return!1}return f},set(d,s,u,f){var E;var _=r.get(s),g=s in d;if(a&&s==="length")for(var m=u;m<_.v;m+=1){var v=r.get(m+"");v!==void 0?N(v,pe):m in d&&(v=be(pe),r.set(m+"",v))}_===void 0?(!g||(E=Qe(d,s))!=null&&E.writable)&&(_=be(void 0),N(_,J(u,l)),r.set(s,_)):(g=_.v!==pe,N(_,J(u,l)));var p=Reflect.getOwnPropertyDescriptor(d,s);if(p!=null&&p.set&&p.set.call(f,u),!g){if(a&&typeof s=="string"){var y=r.get("length"),w=Number(s);Number.isInteger(w)&&w>=y.v&&N(y,w+1)}ni(o)}return!0},ownKeys(d){c(o);var s=Reflect.ownKeys(d).filter(_=>{var g=r.get(_);return g===void 0||g.v!==pe});for(var[u,f]of r)f.v!==pe&&!(u in d)&&s.push(u);return s},setPrototypeOf(){$r()}})}function ni(e,t=1){N(e,e.v+t)}var me,Ni,Li;function fa(){if(me===void 0){me=window;var e=Element.prototype,t=Node.prototype;Ni=Qe(t,"firstChild").get,Li=Qe(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 Ht(e=""){return document.createTextNode(e)}function ot(e){return Ni.call(e)}function rn(e){return Li.call(e)}function b(e,t){return ot(e)}function Q(e,t){{var n=ot(e);return n instanceof Comment&&n.data===""?rn(n):n}}function T(e,t=1,n=!1){let i=e;for(;t--;)i=rn(i);return i}function va(e){e.textContent=""}function B(e){var t=Me|nt;V===null?t|=st:V.f|=Si;var n=X!==null&&X.f&Me?X:null;const i={children:null,ctx:ee,deps:null,equals:Ti,f:t,fn:e,reactions:null,rv:0,v:null,wv:0,parent:n??V};return n!==null&&(n.children??(n.children=[])).push(i),i}function _a(e){const t=B(e);return t.equals=Rn,t}function Mi(e){var t=e.children;if(t!==null){e.children=null;for(var n=0;n<t.length;n+=1){var i=t[n];i.f&Me?qn(i):De(i)}}}function ha(e){for(var t=e.parent;t!==null;){if(!(t.f&Me))return t;t=t.parent}return null}function Di(e){var t,n=V;je(ha(e));try{Mi(e),t=$i(e)}finally{je(n)}return t}function Oi(e){var t=Di(e),n=(at||e.f&st)&&e.deps!==null?tn:Se;Ue(e,n),e.equals(t)||(e.v=t,e.wv=Yi())}function qn(e){Mi(e),Nt(e,0),Ue(e,wt),e.v=e.children=e.deps=e.ctx=e.reactions=null}function ga(e){V===null&&X===null&&Wr(),X!==null&&X.f&st&&Ur(),Un&&Vr()}function ma(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function xt(e,t,n,i=!0){var r=(e&Rt)!==0,a=V,o={ctx:ee,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|nt,first:null,fn:t,last:null,next:null,parent:r?null:a,prev:null,teardown:null,transitions:null,wv:0};if(n){var l=ht;try{ii(!0),ln(o),o.f|=xi}catch(u){throw De(o),u}finally{ii(l)}}else t!==null&&sn(o);var d=n&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&Si)===0;if(!d&&!r&&i&&(a!==null&&ma(o,a),X!==null&&X.f&Me)){var s=X;(s.children??(s.children=[])).push(o)}return o}function pa(e){const t=xt(Ot,null,!1);return Ue(t,Se),t.teardown=e,t}function an(e){ga();var t=V!==null&&(V.f&Re)!==0&&ee!==null&&!ee.m;if(t){var n=ee;(n.e??(n.e=[])).push({fn:e,effect:V,reaction:X})}else{var i=Ft(e);return i}}function ya(e){const t=xt(Rt,e,!0);return(n={})=>new Promise(i=>{n.outro?mt(t,()=>{De(t),i(void 0)}):(De(t),i(void 0))})}function Ft(e){return xt(bi,e,!1)}function Bn(e){return xt(Ot,e,!0)}function M(e){return ct(e)}function ct(e,t=0){return xt(Ot|en|t,e,!0)}function $e(e,t=!0){return xt(Ot|Re,e,!0,t)}function Ri(e){var t=e.teardown;if(t!==null){const n=Un,i=X;ri(!0),Be(null);try{t.call(null)}finally{ri(n),Be(i)}}}function Hi(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var n=0;n<t.length;n+=1)qn(t[n])}}function Fi(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){var i=n.next;De(n,t),n=i}}function wa(e){for(var t=e.first;t!==null;){var n=t.next;t.f&Re||De(t),t=n}}function De(e,t=!0){var n=!1;if((t||e.f&Fr)&&e.nodes_start!==null){for(var i=e.nodes_start,r=e.nodes_end;i!==null;){var a=i===r?null:rn(i);i.remove(),i=a}n=!0}Fi(e,t&&!n),Hi(e),Nt(e,0),Ue(e,wt);var o=e.transitions;if(o!==null)for(const d of o)d.stop();Ri(e);var l=e.parent;l!==null&&l.first!==null&&qi(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function qi(e){var t=e.parent,n=e.prev,i=e.next;n!==null&&(n.next=i),i!==null&&(i.prev=n),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=n))}function mt(e,t){var n=[];Vn(e,n,!0),Bi(n,()=>{De(e),t&&t()})}function Bi(e,t){var n=e.length;if(n>0){var i=()=>--n||t();for(var r of e)r.out(i)}else t()}function Vn(e,t,n){if(!(e.f&Fe)){if(e.f^=Fe,e.transitions!==null)for(const o of e.transitions)(o.is_global||n)&&t.push(o);for(var i=e.first;i!==null;){var r=i.next,a=(i.f&kt)!==0||(i.f&Re)!==0;Vn(i,t,a?n:!1),i=r}}}function Ct(e){Vi(e,!0)}function Vi(e,t){if(e.f&Fe){Vt(e)&&ln(e),e.f^=Fe;for(var n=e.first;n!==null;){var i=n.next,r=(n.f&kt)!==0||(n.f&Re)!==0;Vi(n,r?t:!1),n=i}if(e.transitions!==null)for(const a of e.transitions)(a.is_global||t)&&a.in()}}let Jt=!1,Tn=[];function Ui(){Jt=!1;const e=Tn.slice();Tn=[],Rr(e)}function qt(e){Jt||(Jt=!0,queueMicrotask(Ui)),Tn.push(e)}function ka(){Jt&&Ui()}function Wi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}const Ki=0,ba=1;let Yt=!1,$t=Ki,Pt=!1,jt=null,ht=!1,Un=!1;function ii(e){ht=e}function ri(e){Un=e}let rt=[],gt=0;let X=null;function Be(e){X=e}let V=null;function je(e){V=e}let qe=null;function xa(e){qe=e}let ge=null,ke=0,tt=null;function Sa(e){tt=e}let zi=1,An=0,at=!1,ee=null;function Yi(){return++zi}function Bt(){return!bt||ee!==null&&ee.l===null}function Vt(e){var s;var t=e.f;if(t&nt)return!0;if(t&tn){var n=e.deps,i=(t&st)!==0;if(n!==null){var r,a,o=(t&Gt)!==0,l=i&&V!==null&&!at,d=n.length;if(o||l){for(r=0;r<d;r++)a=n[r],(o||!((s=a==null?void 0:a.reactions)!=null&&s.includes(e)))&&(a.reactions??(a.reactions=[])).push(e);o&&(e.f^=Gt)}for(r=0;r<d;r++)if(a=n[r],Vt(a)&&Oi(a),a.wv>e.wv)return!0}(!i||V!==null&&!at)&&Ue(e,Se)}return!1}function Ea(e,t){for(var n=t;n!==null;){if(n.f&Sn)try{n.fn(e);return}catch{n.f^=Sn}n=n.parent}throw Yt=!1,e}function Ta(e){return(e.f&wt)===0&&(e.parent===null||(e.parent.f&Sn)===0)}function on(e,t,n,i){if(Yt){if(n===null&&(Yt=!1),Ta(t))throw e;return}n!==null&&(Yt=!0);{Ea(e,t);return}}function $i(e){var _;var t=ge,n=ke,i=tt,r=X,a=at,o=qe,l=ee,d=e.f;ge=null,ke=0,tt=null,X=d&(Re|Rt)?null:e,at=!ht&&(d&st)!==0,qe=null,ee=e.ctx,An++;try{var s=(0,e.fn)(),u=e.deps;if(ge!==null){var f;if(Nt(e,ke),u!==null&&ke>0)for(u.length=ke+ge.length,f=0;f<ge.length;f++)u[ke+f]=ge[f];else e.deps=u=ge;if(!at)for(f=ke;f<u.length;f++)((_=u[f]).reactions??(_.reactions=[])).push(e)}else u!==null&&ke<u.length&&(Nt(e,ke),u.length=ke);return s}finally{ge=t,ke=n,tt=i,X=r,at=a,qe=o,ee=l}}function Aa(e,t){let n=t.reactions;if(n!==null){var i=Lr.call(n,e);if(i!==-1){var r=n.length-1;r===0?n=t.reactions=null:(n[i]=n[r],n.pop())}}n===null&&t.f&Me&&(ge===null||!ge.includes(t))&&(Ue(t,tn),t.f&(st|Gt)||(t.f^=Gt),Nt(t,0))}function Nt(e,t){var n=e.deps;if(n!==null)for(var i=t;i<n.length;i++)Aa(e,n[i])}function ln(e){var t=e.f;if(!(t&wt)){Ue(e,Se);var n=V,i=ee;V=e;try{t&en?wa(e):Fi(e),Hi(e),Ri(e);var r=$i(e);e.teardown=typeof r=="function"?r:null,e.wv=zi;var a=e.deps,o;xn&&Jr&&e.f&nt}catch(l){on(l,e,n,i||e.ctx)}finally{V=n}}}function Zi(){if(gt>1e3){gt=0;try{Kr()}catch(e){if(jt!==null)on(e,jt,null);else throw e}}gt++}function Gi(e){var t=e.length;if(t!==0){Zi();var n=ht;ht=!0;try{for(var i=0;i<t;i++){var r=e[i];r.f&Se||(r.f^=Se);var a=[];Ji(r,a),Ia(a)}}finally{ht=n}}}function Ia(e){var t=e.length;if(t!==0)for(var n=0;n<t;n++){var i=e[n];if(!(i.f&(wt|Fe)))try{Vt(i)&&(ln(i),i.deps===null&&i.first===null&&i.nodes_start===null&&(i.teardown===null?qi(i):i.fn=null))}catch(r){on(r,i,null,i.ctx)}}}function Ca(){if(Pt=!1,gt>1001)return;const e=rt;rt=[],Gi(e),Pt||(gt=0,jt=null)}function sn(e){$t===Ki&&(Pt||(Pt=!0,queueMicrotask(Ca))),jt=e;for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(n&(Rt|Re)){if(!(n&Se))return;t.f^=Se}}rt.push(t)}function Ji(e,t){var n=e.first,i=[];e:for(;n!==null;){var r=n.f,a=(r&Re)!==0,o=a&&(r&Se)!==0,l=n.next;if(!o&&!(r&Fe))if(r&Ot){if(a)n.f^=Se;else try{Vt(n)&&ln(n)}catch(f){on(f,n,null,n.ctx)}var d=n.first;if(d!==null){n=d;continue}}else r&bi&&i.push(n);if(l===null){let f=n.parent;for(;f!==null;){if(e===f)break e;var s=f.next;if(s!==null){n=s;continue e}f=f.parent}}n=l}for(var u=0;u<i.length;u++)d=i[u],t.push(d),Ji(d,t)}function Xi(e){var t=$t,n=rt;try{Zi();const r=[];$t=ba,rt=r,Pt=!1,Gi(n);var i=e==null?void 0:e();return ka(),(rt.length>0||r.length>0)&&Xi(),gt=0,jt=null,i}finally{$t=t,rt=n}}async function ai(){await Promise.resolve(),Xi()}function c(e){var u;var t=e.f,n=(t&Me)!==0;if(n&&t&wt){var i=Di(e);return qn(e),i}if(X!==null){qe!==null&&qe.includes(e)&&Zr();var r=X.deps;e.rv<An&&(e.rv=An,ge===null&&r!==null&&r[ke]===e?ke++:ge===null?ge=[e]:ge.push(e),tt!==null&&V!==null&&V.f&Se&&!(V.f&Re)&&tt.includes(e)&&(Ue(V,nt),sn(V)))}else if(n&&e.deps===null)for(var a=e,o=a.parent,l=a;o!==null;)if(o.f&Me){var d=o;l=d,o=d.parent}else{var s=o;(u=s.deriveds)!=null&&u.includes(l)||(s.deriveds??(s.deriveds=[])).push(l);break}return n&&(a=e,Vt(a)&&Oi(a)),e.v}function Ve(e){const t=X;try{return X=null,e()}finally{X=t}}const Pa=-7169;function Ue(e,t){e.f=e.f&Pa|t}function ja(e){return er().get(e)}function Qi(e,t){return er().set(e,t),t}function er(e){return ee===null&&Wi(),ee.c??(ee.c=new Map(Na(ee)||void 0))}function Na(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}function re(e,t=!1,n){ee={p:ee,c:null,e:null,m:!1,s:e,x:null,l:null},bt&&!t&&(ee.l={s:null,u:null,r1:[],r2:be(!1)})}function ae(e){const t=ee;if(t!==null){const o=t.e;if(o!==null){var n=V,i=X;t.e=null;try{for(var r=0;r<o.length;r++){var a=o[r];je(a.effect),Be(a.reaction),Ft(a.fn)}}finally{je(n),Be(i)}}ee=t.p,t.m=!0}return{}}function La(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(et in e)In(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&et in n&&In(n)}}}function In(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 i in e)try{In(e[i],t)}catch{}const n=On(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const i=ki(n);for(let r in i){const a=i[r].get;if(a)try{a.call(e)}catch{}}}}}function Ma(e){return e.endsWith("capture")&&e!=="gotpointercapture"&&e!=="lostpointercapture"}const Da=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function Oa(e){return Da.includes(e)}const Ra={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};function Ha(e){return e=e.toLowerCase(),Ra[e]??e}const Fa=["touchstart","touchmove"];function qa(e){return Fa.includes(e)}function Ba(e,t){if(t){const n=document.body;e.autofocus=!0,qt(()=>{document.activeElement===n&&e.focus()})}}let oi=!1;function Va(){oi||(oi=!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 tr(e){var t=X,n=V;Be(null),je(null);try{return e()}finally{Be(t),je(n)}}function Ua(e,t,n,i=n){e.addEventListener(t,()=>tr(n));const r=e.__on_r;r?e.__on_r=()=>{r(),i(!0)}:e.__on_r=()=>i(!0),Va()}const nr=new Set,Cn=new Set;function ir(e,t,n,i){function r(a){if(i.capture||Tt.call(t,a),!a.cancelBubble)return tr(()=>n.call(this,a))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?qt(()=>{t.addEventListener(e,r,i)}):t.addEventListener(e,r,i),r}function ie(e,t,n,i,r){var a={capture:i,passive:r},o=ir(e,t,n,a);(t===document.body||t===window||t===document)&&pa(()=>{t.removeEventListener(e,o,a)})}function fe(e){for(var t=0;t<e.length;t++)nr.add(e[t]);for(var n of Cn)n(e)}function Tt(e){var w;var t=this,n=t.ownerDocument,i=e.type,r=((w=e.composedPath)==null?void 0:w.call(e))||[],a=r[0]||e.target,o=0,l=e.__root;if(l){var d=r.indexOf(l);if(d!==-1&&(t===document||t===window)){e.__root=t;return}var s=r.indexOf(t);if(s===-1)return;d<=s&&(o=d)}if(a=r[o]||e.target,a!==t){Mr(e,"currentTarget",{configurable:!0,get(){return a||n}});var u=X,f=V;Be(null),je(null);try{for(var _,g=[];a!==null;){var m=a.assignedSlot||a.parentNode||a.host||null;try{var v=a["__"+i];if(v!==void 0&&!a.disabled)if(Mn(v)){var[p,...y]=v;p.apply(a,[e,...y])}else v.call(a,e)}catch(E){_?g.push(E):_=E}if(e.cancelBubble||m===t||m===null)break;a=m}if(_){for(let E of g)queueMicrotask(()=>{throw E});throw _}}finally{e.__root=t,delete e.currentTarget,Be(u),je(f)}}}function Wn(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function lt(e,t){var n=V;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function A(e,t){var n=(t&ca)!==0,i=(t&ua)!==0,r,a=!e.startsWith("<!>");return()=>{r===void 0&&(r=Wn(a?e:"<!>"+e),n||(r=ot(r)));var o=i?document.importNode(r,!0):r.cloneNode(!0);if(n){var l=ot(o),d=o.lastChild;lt(l,d)}else lt(o,o);return o}}function Ee(e,t,n="svg"){var i=!e.startsWith("<!>"),r=`<${n}>${i?e:"<!>"+e}</${n}>`,a;return()=>{if(!a){var o=Wn(r),l=ot(o);a=ot(l)}var d=a.cloneNode(!0);return lt(d,d),d}}function Oe(e=""){{var t=Ht(e+"");return lt(t,t),t}}function Ze(){var e=document.createDocumentFragment(),t=document.createComment(""),n=Ht();return e.append(t,n),lt(t,n),e}function k(e,t){e!==null&&e.before(t)}let Xt=!0;function li(e){Xt=e}function K(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 Wa(e,t)}const ft=new Map;function Wa(e,{target:t,anchor:n,props:i={},events:r,context:a,intro:o=!0}){fa();var l=new Set,d=f=>{for(var _=0;_<f.length;_++){var g=f[_];if(!l.has(g)){l.add(g);var m=qa(g);t.addEventListener(g,Tt,{passive:m});var v=ft.get(g);v===void 0?(document.addEventListener(g,Tt,{passive:m}),ft.set(g,1)):ft.set(g,v+1)}}};d(Dn(nr)),Cn.add(d);var s=void 0,u=ya(()=>{var f=n??t.appendChild(Ht());return $e(()=>{if(a){re({});var _=ee;_.c=a}r&&(i.$$events=r),Xt=o,s=e(f,i)||{},Xt=!0,a&&ae()}),()=>{var m;for(var _ of l){t.removeEventListener(_,Tt);var g=ft.get(_);--g===0?(document.removeEventListener(_,Tt),ft.delete(_)):ft.set(_,g)}Cn.delete(d),f!==n&&((m=f.parentNode)==null||m.removeChild(f))}});return Pn.set(s,u),s}let Pn=new WeakMap;function Kn(e,t){const n=Pn.get(e);return n?(Pn.delete(e),n(t)):Promise.resolve()}function O(e,t,n=!1){var i=e,r=null,a=null,o=pe,l=n?kt:0,d=!1;const s=(f,_=!0)=>{d=!0,u(_,f)},u=(f,_)=>{o!==(o=f)&&(o?(r?Ct(r):_&&(r=$e(()=>_(i))),a&&mt(a,()=>{a=null})):(a?Ct(a):_&&(a=$e(()=>_(i))),r&&mt(r,()=>{r=null})))};ct(()=>{d=!1,t(s),d||u(null,null)},l)}function rr(e,t,n){var i=e,r=pe,a,o=Bt()?Br:nn;ct(()=>{o(r,r=t())&&(a&&mt(a),a=$e(()=>n(i)))})}function pt(e,t){return t}function Ka(e,t,n,i){for(var r=[],a=t.length,o=0;o<a;o++)Vn(t[o].e,r,!0);var l=a>0&&r.length===0&&n!==null;if(l){var d=n.parentNode;va(d),d.append(n),i.clear(),Xe(e,t[0].prev,t[a-1].next)}Bi(r,()=>{for(var s=0;s<a;s++){var u=t[s];l||(i.delete(u.k),Xe(e,u.prev,u.next)),De(u.e,!l)}})}function it(e,t,n,i,r,a=null){var o=e,l={flags:t,items:new Map,first:null},d=(t&Ai)!==0;if(d){var s=e;o=s.appendChild(Ht())}var u=null,f=!1;ct(()=>{var _=n(),g=Mn(_)?_:_==null?[]:Dn(_),m=g.length;if(!(f&&m===0)){f=m===0;{var v=X;za(g,l,o,r,t,(v.f&Fe)!==0,i)}a!==null&&(m===0?u?Ct(u):u=$e(()=>a(o)):u!==null&&mt(u,()=>{u=null})),n()}})}function za(e,t,n,i,r,a,o,l){var F,$,te,ce;var d=(r&Qr)!==0,s=(r&(Hn|Fn))!==0,u=e.length,f=t.items,_=t.first,g=_,m,v=null,p,y=[],w=[],E,P,x,C;if(d)for(C=0;C<u;C+=1)E=e[C],P=o(E,C),x=f.get(P),x!==void 0&&((F=x.a)==null||F.measure(),(p??(p=new Set)).add(x));for(C=0;C<u;C+=1){if(E=e[C],P=o(E,C),x=f.get(P),x===void 0){var j=g?g.e.nodes_start:n;v=$a(j,t,v,v===null?t.first:v.next,E,P,C,i,r),f.set(P,v),y=[],w=[],g=v.next;continue}if(s&&Ya(x,E,C,r),x.e.f&Fe&&(Ct(x.e),d&&(($=x.a)==null||$.unfix(),(p??(p=new Set)).delete(x))),x!==g){if(m!==void 0&&m.has(x)){if(y.length<w.length){var S=w[0],I;v=S.prev;var H=y[0],R=y[y.length-1];for(I=0;I<y.length;I+=1)si(y[I],S,n);for(I=0;I<w.length;I+=1)m.delete(w[I]);Xe(t,H.prev,R.next),Xe(t,v,H),Xe(t,R,S),g=S,v=R,C-=1,y=[],w=[]}else m.delete(x),si(x,g,n),Xe(t,x.prev,x.next),Xe(t,x,v===null?t.first:v.next),Xe(t,v,x),v=x;continue}for(y=[],w=[];g!==null&&g.k!==P;)(a||!(g.e.f&Fe))&&(m??(m=new Set)).add(g),w.push(g),g=g.next;if(g===null)continue;x=g}y.push(x),v=x,g=x.next}if(g!==null||m!==void 0){for(var Y=m===void 0?[]:Dn(m);g!==null;)(a||!(g.e.f&Fe))&&Y.push(g),g=g.next;var z=Y.length;if(z>0){var U=r&Ai&&u===0?n:null;if(d){for(C=0;C<z;C+=1)(te=Y[C].a)==null||te.measure();for(C=0;C<z;C+=1)(ce=Y[C].a)==null||ce.fix()}Ka(t,Y,U,f)}}d&&qt(()=>{var ve;if(p!==void 0)for(x of p)(ve=x.a)==null||ve.apply()}),V.first=t.first&&t.first.e,V.last=v&&v.e}function Ya(e,t,n,i){i&Hn&&En(e.v,t),i&Fn?En(e.i,n):e.i=n}function $a(e,t,n,i,r,a,o,l,d,s){var u=(d&Hn)!==0,f=(d&ea)===0,_=u?f?Ci(r):be(r):r,g=d&Fn?be(o):o,m={i:g,v:_,k:a,a:null,e:null,prev:n,next:i};try{return m.e=$e(()=>l(e,_,g),ji),m.e.prev=n&&n.e,m.e.next=i&&i.e,n===null?t.first=m:(n.next=m,n.e.next=m.e),i!==null&&(i.prev=m,i.e.prev=m.e),m}finally{}}function si(e,t,n){for(var i=e.next?e.next.e.nodes_start:n,r=t?t.e.nodes_start:n,a=e.e.nodes_start;a!==i;){var o=rn(a);r.before(a),a=o}}function Xe(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 Za(e,t,n,i,r){var a=e,o="",l;ct(()=>{o!==(o=t()??"")&&(l!==void 0&&(De(l),l=void 0),o!==""&&(l=$e(()=>{var d=o+"",s=Wn(d);lt(ot(s),s.lastChild),a.before(s)})))})}function St(e,t,...n){var i=e,r=Le,a;ct(()=>{r!==(r=t())&&(a&&(De(a),a=null),a=$e(()=>r(i,...n)))},kt)}function Ga(e,t,n,i,r,a){var o,l,d=null,s=e,u;ct(()=>{const f=t()||null;var _=f==="svg"?Ii:null;f!==o&&(u&&(f===null?mt(u,()=>{u=null,l=null}):f===l?Ct(u):(De(u),li(!1))),f&&f!==l&&(u=$e(()=>{d=_?document.createElementNS(_,f):document.createElement(f),lt(d,d);{var g=d.appendChild(Ht());i(d,g)}V.nodes_end=d,s.before(d)})),o=f,o&&(l=o),li(!0))},kt)}function un(e,t,n){Ft(()=>{var i=Ve(()=>t(e,n==null?void 0:n())||{});if(n&&(i!=null&&i.update)){var r=!1,a={};Bn(()=>{var o=n();La(o),r&&nn(a,o)&&(a=o,i.update(o))}),r=!0}if(i!=null&&i.destroy)return()=>i.destroy()})}function ar(e){var t,n,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=ar(e[t]))&&(i&&(i+=" "),i+=n)}else for(n in e)e[n]&&(i&&(i+=" "),i+=n);return i}function Ja(){for(var e,t,n=0,i="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=ar(e))&&(i&&(i+=" "),i+=t);return i}function Xa(e){return typeof e=="object"?Ja(e):e??""}function Qa(e,t){t?e.hasAttribute("selected")||e.setAttribute("selected",""):e.removeAttribute("selected")}function ne(e,t,n,i){var r=e.__attributes??(e.__attributes={});r[t]!==(r[t]=n)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[qr]=n),n==null?e.removeAttribute(t):typeof n!="string"&&or(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function eo(e,t,n,i,r=!1,a=!1,o=!1){var l=t||{},d=e.tagName==="OPTION";for(var s in t)s in n||(n[s]=null);n.class&&(n.class=Xa(n.class)),n.class=n.class?n.class+" "+i:i;var u=or(e),f=e.__attributes??(e.__attributes={});for(const w in n){let E=n[w];if(d&&w==="value"&&E==null){e.value=e.__value="",l[w]=E;continue}var _=l[w];if(E!==_){l[w]=E;var g=w[0]+w[1];if(g!=="$$"){if(g==="on"){const P={},x="$$"+w;let C=w.slice(2);var m=Oa(C);if(Ma(C)&&(C=C.slice(0,-7),P.capture=!0),!m&&_){if(E!=null)continue;e.removeEventListener(C,l[x],P),l[x]=null}if(E!=null)if(m)e[`__${C}`]=E,fe([C]);else{let j=function(S){l[w].call(this,S)};var y=j;l[x]=ir(C,e,j,P)}else m&&(e[`__${C}`]=void 0)}else if(w==="style"&&E!=null)e.style.cssText=E+"";else if(w==="autofocus")Ba(e,!!E);else if(w==="__value"||w==="value"&&E!=null)e.value=e[w]=e.__value=E;else if(w==="selected"&&d)Qa(e,E);else{var v=w;r||(v=Ha(v));var p=v==="defaultValue"||v==="defaultChecked";if(E==null&&!a&&!p)if(f[w]=null,v==="value"||v==="checked"){let P=e;if(v==="value"){let x=P.defaultValue;P.removeAttribute(v),P.defaultValue=x}else{let x=P.defaultChecked;P.removeAttribute(v),P.defaultChecked=x}}else e.removeAttribute(w);else p||u.includes(v)&&(a||typeof E!="string")?e[v]=E:typeof E!="function"&&ne(e,v,E)}w==="style"&&"__styles"in e&&(e.__styles={})}}}return l}var ci=new Map;function or(e){var t=ci.get(e.nodeName);if(t)return t;ci.set(e.nodeName,t=[]);for(var n,i=e,r=Element.prototype;r!==i;){n=ki(i);for(var a in n)n[a].set&&t.push(a);i=On(i)}return t}function to(e,t,n){var i=e.__className,r=no(t);(i!==r||ji)&&(t==null?e.removeAttribute("class"):e.className=r,e.__className=r)}function no(e,t){return(e??"")+""}function le(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 dn(e,t,n,i){var r=e.__styles??(e.__styles={});r[t]!==n&&(r[t]=n,n==null?e.style.removeProperty(t):e.style.setProperty(t,n,""))}const io=()=>performance.now(),ze={tick:e=>requestAnimationFrame(e),now:()=>io(),tasks:new Set};function lr(){const e=ze.now();ze.tasks.forEach(t=>{t.c(e)||(ze.tasks.delete(t),t.f())}),ze.tasks.size!==0&&ze.tick(lr)}function ro(e){let t;return ze.tasks.size===0&&ze.tick(lr),{promise:new Promise(n=>{ze.tasks.add(t={c:e,f:n})}),abort(){ze.tasks.delete(t)}}}function Kt(e,t){e.dispatchEvent(new CustomEvent(t))}function ao(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 ui(e){const t={},n=e.split(";");for(const i of n){const[r,a]=i.split(":");if(!r||a===void 0)break;const o=ao(r.trim());t[o]=a.trim()}return t}const oo=e=>e;function Ie(e,t,n,i){var r=(e&oa)!==0,a=(e&la)!==0,o=r&&a,l=(e&sa)!==0,d=o?"both":r?"in":"out",s,u=t.inert,f,_;function g(){var w=X,E=V;Be(null),je(null);try{return s??(s=n()(t,(i==null?void 0:i())??{},{direction:d}))}finally{Be(w),je(E)}}var m={is_global:l,in(){var w;if(t.inert=u,!r){_==null||_.abort(),(w=_==null?void 0:_.reset)==null||w.call(_);return}a||f==null||f.abort(),Kt(t,"introstart"),f=jn(t,g(),_,1,()=>{Kt(t,"introend"),f==null||f.abort(),f=s=void 0})},out(w){if(!a){w==null||w(),s=void 0;return}t.inert=!0,Kt(t,"outrostart"),_=jn(t,g(),f,0,()=>{Kt(t,"outroend"),w==null||w()})},stop:()=>{f==null||f.abort(),_==null||_.abort()}},v=V;if((v.transitions??(v.transitions=[])).push(m),r&&Xt){var p=l;if(!p){for(var y=v.parent;y&&y.f&kt;)for(;(y=y.parent)&&!(y.f&en););p=!y||(y.f&xi)!==0}p&&Ft(()=>{Ve(()=>m.in())})}}function jn(e,t,n,i,r){var a=i===1;if(_t(t)){var o,l=!1;return qt(()=>{if(!l){var p=t({direction:a?"in":"out"});o=jn(e,p,n,i,r)}}),{abort:()=>{l=!0,o==null||o.abort()},deactivate:()=>o.deactivate(),reset:()=>o.reset(),t:()=>o.t()}}if(n==null||n.deactivate(),!(t!=null&&t.duration))return r(),{abort:Le,deactivate:Le,reset:Le,t:()=>i};const{delay:d=0,css:s,tick:u,easing:f=oo}=t;var _=[];if(a&&n===void 0&&(u&&u(0,1),s)){var g=ui(s(0,1));_.push(g,g)}var m=()=>1-i,v=e.animate(_,{duration:d});return v.onfinish=()=>{var p=(n==null?void 0:n.t())??1-i;n==null||n.abort();var y=i-p,w=t.duration*Math.abs(y),E=[];if(w>0){if(s)for(var P=Math.ceil(w/16.666666666666668),x=0;x<=P;x+=1){var C=p+y*f(x/P),j=s(C,1-C);E.push(ui(j))}m=()=>{var S=v.currentTime;return p+y*f(S/w)},u&&ro(()=>{if(v.playState!=="running")return!1;var S=m();return u(S,1-S),!0})}v=e.animate(E,{duration:w,fill:"forwards"}),v.onfinish=()=>{m=()=>i,u==null||u(i,1-i),r()}},{abort:()=>{v&&(v.cancel(),v.effect=null,v.onfinish=Le)},deactivate:()=>{r=Le},reset:()=>{i===0&&(u==null||u(1,0))},t:()=>m()}}function lo(e,t,n=t){var i=Bt();Ua(e,"input",r=>{var a=r?e.defaultValue:e.value;if(a=wn(e)?kn(a):a,n(a),i&&a!==(a=t())){var o=e.selectionStart,l=e.selectionEnd;e.value=a??"",l!==null&&(e.selectionStart=o,e.selectionEnd=Math.min(l,e.value.length))}}),Ve(t)==null&&e.value&&n(wn(e)?kn(e.value):e.value),Bn(()=>{var r=t();wn(e)&&r===kn(e.value)||e.type==="date"&&!r&&!e.value||r!==e.value&&(e.value=r??"")})}function wn(e){var t=e.type;return t==="number"||t==="range"}function kn(e){return e===""?null:+e}function di(e,t){return e===t||(e==null?void 0:e[et])===t}function Ut(e={},t,n,i){return Ft(()=>{var r,a;return Bn(()=>{r=a,a=[],Ve(()=>{e!==n(...a)&&(t(e,...a),r&&di(n(...r),e)&&t(null,...r))})}),()=>{qt(()=>{a&&di(n(...a),e)&&t(null,...a)})}}),e}function so(e,t,n){if(e==null)return t(void 0),Le;const i=Ve(()=>e.subscribe(t,n));return i.unsubscribe?()=>i.unsubscribe():i}let zt=!1;function co(e){var t=zt;try{return zt=!1,[e(),zt]}finally{zt=t}}const uo={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 fo(e,t,n){return new Proxy({props:e,exclude:t},uo)}const vo={get(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(_t(i)&&(i=i()),typeof i=="object"&&i!==null&&t in i)return i[t]}},set(e,t,n){let i=e.props.length;for(;i--;){let r=e.props[i];_t(r)&&(r=r());const a=Qe(r,t);if(a&&a.set)return a.set(n),!0}return!1},getOwnPropertyDescriptor(e,t){let n=e.props.length;for(;n--;){let i=e.props[n];if(_t(i)&&(i=i()),typeof i=="object"&&i!==null&&t in i){const r=Qe(i,t);return r&&!r.configurable&&(r.configurable=!0),r}}},has(e,t){if(t===et||t===Ei)return!1;for(let n of e.props)if(_t(n)&&(n=n()),n!=null&&t in n)return!0;return!1},ownKeys(e){const t=[];for(let n of e.props){_t(n)&&(n=n());for(const i in n)t.includes(i)||t.push(i)}return t}};function _o(...e){return new Proxy({props:e},vo)}function fi(e){for(var t=V,n=V;t!==null&&!(t.f&(Re|Rt));)t=t.parent;try{return je(t),e()}finally{je(n)}}function D(e,t,n,i){var j;var r=(n&ta)!==0,a=!bt||(n&na)!==0,o=(n&ra)!==0,l=(n&aa)!==0,d=!1,s;o?[s,d]=co(()=>e[t]):s=e[t];var u=et in e||Ei in e,f=o&&(((j=Qe(e,t))==null?void 0:j.set)??(u&&t in e&&(S=>e[t]=S)))||void 0,_=i,g=!0,m=!1,v=()=>(m=!0,g&&(g=!1,l?_=Ve(i):_=i),_);s===void 0&&i!==void 0&&(f&&a&&zr(),s=v(),f&&f(s));var p;if(a)p=()=>{var S=e[t];return S===void 0?v():(g=!0,m=!1,S)};else{var y=fi(()=>(r?B:_a)(()=>e[t]));y.f|=Hr,p=()=>{var S=c(y);return S!==void 0&&(_=void 0),S===void 0?_:S}}if(!(n&ia))return p;if(f){var w=e.$$legacy;return function(S,I){return arguments.length>0?((!a||!I||w||d)&&f(I?p():S),S):p()}}var E=!1,P=!1,x=Ci(s),C=fi(()=>B(()=>{var S=p(),I=c(x);return E?(E=!1,P=!0,I):(P=!1,x.v=S)}));return r||(C.equals=Rn),function(S,I){if(arguments.length>0){const H=I?c(C):a&&o?J(S):S;return C.equals(H)||(E=!0,N(x,H),m&&_!==void 0&&(_=H),Ve(()=>c(C))),S}return c(C)}}function ut(e){ee===null&&Wi(),bt&&ee.l!==null?ho(ee).m.push(e):an(()=>{const t=Ve(e);if(typeof t=="function")return t})}function ho(e){var t=e.l;return t.u??(t.u={a:[],b:[],m:[]})}const go="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(go);const sr="https://www.playpilot.com",fn="https://partner-api.playpilot.tech/1.0.0",cr="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFQAAAB+CAMAAACNgsajAAAAb1BMVEU1Q2fI1N5YZoNVYoFndI9qd5JBT3FFU3S8yNS3xNC4xNFBTnDG0t2lscJJV3e9ytaptcWToLOOm6/BzdiZprh3hJ1aaIWJlatte5VPXHx7iJ9zgZlfbYk3RWmNmq5jcY1XZIO2wtCjsMB+i6I9S25IprTeAAABqUlEQVRo3u3W2ZKCMBCF4T5ExRmRVXBfZnn/Z5wKiU5pz1AJ7ZXV/x03HxVCB0jTNE3TNE3TNO0l2rbPNxcFdk8334AINTUD5eSaWbPoQs0qw0CVN98BzNNgE4NVv+ZHsJliuNVt7UgotATAafp/5mZiG4waAB0N5k0kUeg0wMykKDfLvRTl5pxyCFFupjQVo9ykiRTlphzl5nNQNu8C9Hv2lylDT0W2NMyUoeXdLC68KUNLuM7O9HskQ0uLLAEUR2aOQjfORE5LzHP2PMehxpl2k6otM8eh2aQGkBlieyRBYbs3y5Rk6IPZn8mT65XJR6LcROGErwaoxqLm4XvkiTVsy1FoYe5n06zcjazp1Wk0umHz3k9BT6+bXjXR6PnRtKpr755PfRjx4WPz7tXW/26gGYnOvOmrM7xtiK4qYtDOrpGZtnR7JFcSi+Z1XZt7k5d4NCZmcrWxqMzkbRgqN+nAULHpx1RiylFvftJwlxjUz2bWdpPB7NnSxZih5RFrD20Vai4izGOgeenPukMSUE6hte5denI7NMyU1xrSNE3TNE3TNE17hX4ADHsS0j0OCOoAAAAASUVORK5CYII=",xe=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"}),vt=[];function ur(e,t=Le){let n=null;const i=new Set;function r(l){if(nn(e,l)&&(e=l,n)){const d=!vt.length;for(const s of i)s[1](),vt.push(s,e);if(d){for(let s=0;s<vt.length;s+=2)vt[s][0](vt[s+1]);vt.length=0}}}function a(l){r(l(e))}function o(l,d=Le){const s=[l,d];return i.add(s),i.size===1&&(n=t(r,a)||Le),l(e),()=>{i.delete(s),i.size===0&&n&&(n(),n=null)}}return{set:r,update:a,subscribe:o}}function vi(e){let t;return so(e,n=>t=n)(),t}const dr=ur(null),fr=ur(null),mo="https://insights.playpilot.net";async function Ce(e,t=null,n={}){const i=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=vi(dr),n.domain_sid=vi(fr),fetch(mo,{headers:i,method:"POST",body:JSON.stringify({event:e,payload:n,source:"ali"})})}function po({organizationSid:e=null,domainSid:t=null}){dr.set(e||null),fr.set(t||null)}const zn="EncryptedToken",vr="articleReplacementEditToken",_r="playpilot-editorial-mode";async function hr(e=window.location.href){const t=new Headers({"Content-Type":"application/json"});try{const n=gn();if(!n)throw new Error("No token was provided");const i=Yn(e);if(!i)throw new Error("Could not be authenticated");const r=await fetch(fn+`/external-pages/edit-authorization?api-token=${n}`,{headers:t,method:"POST",body:JSON.stringify({private_token:i})});if(!r.ok)throw r;return yo(i),!0}catch(n){console.error(n),Ce(xe.AuthFailed)}finally{bo()}return!1}function Yn(e=""){var i,r;const t=(i=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:i.editorial_token;if(t)return t;if(e){const a=new URL(e).searchParams.get(vr);if(a)return decodeURI(a)}return((r=("; "+document.cookie).split(`; ${zn}=`).pop())==null?void 0:r.split(";")[0])||""}function yo(e){const t=new Date;t.setTime(t.getTime()+30*24*60*60*1e3);const i="expires="+t.toUTCString();document.cookie=zn+"="+e+";"+i+";path=/"}function wo(){document.cookie=zn+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"}function gr(){var t;const e=(t=window==null?void 0:window.PlayPilotLinkInjections)==null?void 0:t.editorial_token;return new URLSearchParams(window.location.search).get(_r)==="true"||!!e}function ko(){const e=new URL(window.location.href);e.searchParams.set(_r,"true"),window.history.replaceState({},"",e)}function bo(){const e=new URL(window.location.href);e.searchParams.delete(vr),window.history.replaceState({},"",e)}function mr(e){let t=0;for(let n=0;n<e.length;n++){const i=e.charCodeAt(n);t=t*31+i>>>0}return t.toString(16)}const h=Object.freeze({English:"en-US",Swedish:"sv-SE",Danish:"da-DK"}),xo={"Where To Stream Online":{[h.English]:"Where to stream online",[h.Swedish]:"Var kan man streama online",[h.Danish]:"Hvor kan man streame online"},"Affiliate Disclaimer":{[h.English]:"We may earn a commission if you make a purchase through these links. In collaboration with",[h.Swedish]:"Vi kan få provision om du gör ett köp via dessa länkar. I samarbete med",[h.Danish]:"Vi kan modtage en kommission, hvis du foretager et køb via disse links. I samarbejde med"},"An Error Occurred":{[h.English]:"An error occurred",[h.Swedish]:"Ett fel inträffade",[h.Danish]:"Der opstod en fejl"},"Title Unavailable":{[h.English]:"This title is not currently available to stream.",[h.Swedish]:"Den här titeln går inte att streama just nu.",[h.Danish]:"Denne titel er i øjeblikket ikke tilgængelig for streaming."},"Title Unavailable Suffix":{[h.English]:"is not currently available to stream.",[h.Swedish]:"går inte att streama just nu.",[h.Danish]:"er i øjeblikket ikke tilgængelig for streaming."},"Is Available To Stream On":{[h.English]:"is available to stream on",[h.Swedish]:"finns att streama på",[h.Danish]:"kan streames på"},"Is Available To Stream":{[h.English]:"is available to stream.",[h.Swedish]:"finns att streama.",[h.Danish]:"kan streames."},"View Streaming Options":{[h.English]:"View streaming options",[h.Swedish]:"Se streamingalternativ",[h.Danish]:"Se streamingmuligheder"},And:{[h.English]:"and",[h.Swedish]:"och",[h.Danish]:"og"},Minutes:{[h.English]:"minutes",[h.Swedish]:"minuter",[h.Danish]:"minutter"},"Type: movie":{[h.English]:"Movie",[h.Swedish]:"Film",[h.Danish]:"Film"},"Type: series":{[h.English]:"Series",[h.Swedish]:"Serie",[h.Danish]:"Serie"},Stream:{[h.English]:"Stream",[h.Swedish]:"Streama",[h.Danish]:"Stream"},Buy:{[h.English]:"Buy",[h.Swedish]:"Köp",[h.Danish]:"Køb"},Rent:{[h.English]:"Rent",[h.Swedish]:"Hyra",[h.Danish]:"Lej"},"Rent Or Buy":{[h.English]:"Rent or Buy",[h.Swedish]:"Hyra",[h.Danish]:"Lej eller køb"},All:{[h.English]:"All",[h.Swedish]:"Alla",[h.Danish]:"Alle"},Unscripted:{[h.English]:"Unscripted",[h.Swedish]:"Oscripterat",[h.Danish]:"Umanuskriptet"},Independent:{[h.English]:"Independent",[h.Swedish]:"Indie",[h.Danish]:"Indie"},"Game Show":{[h.English]:"Game Show",[h.Swedish]:"Gameshow",[h.Danish]:"Quizshow"},"Film Noir":{[h.English]:"Film Noir",[h.Swedish]:"Film noir",[h.Danish]:"Film noir"},Entertainment:{[h.English]:"Entertainment",[h.Swedish]:"Underhållning",[h.Danish]:"Underholdning"},News:{[h.English]:"News",[h.Swedish]:"Nyheter",[h.Danish]:"Nyheder"},Short:{[h.English]:"Short",[h.Swedish]:"Kortfilm",[h.Danish]:"Kortfilm"},Bollywood:{[h.English]:"Bollywood",[h.Swedish]:"Bollywood",[h.Danish]:"Bollywood"},Concert:{[h.English]:"Concert",[h.Swedish]:"Konsert",[h.Danish]:"Koncert"},Arthouse:{[h.English]:"Arthouse",[h.Swedish]:"Arthouse",[h.Danish]:"Arthouse"},"Alternate Version":{[h.English]:"Alternate Version",[h.Swedish]:"Alternativ version",[h.Danish]:"Alternativ version"},"Reality TV":{[h.English]:"Reality TV",[h.Swedish]:"Reality-TV",[h.Danish]:"Reality-TV"},Culture:{[h.English]:"Culture",[h.Swedish]:"Kultur",[h.Danish]:"Kultur"},Drama:{[h.English]:"Drama",[h.Swedish]:"Drama",[h.Danish]:"Drama"},Crime:{[h.English]:"Crime",[h.Swedish]:"Kriminal",[h.Danish]:"Krimi"},Western:{[h.English]:"Western",[h.Swedish]:"Western",[h.Danish]:"Western"},Thriller:{[h.English]:"Thriller",[h.Swedish]:"Thriller",[h.Danish]:"Thriller"},Animation:{[h.English]:"Animation",[h.Swedish]:"Animerat",[h.Danish]:"Animation"},Mystery:{[h.English]:"Mystery",[h.Swedish]:"Mysterium",[h.Danish]:"Mysterium"},Science:{[h.English]:"Science",[h.Swedish]:"Vetenskap",[h.Danish]:"Videnskab"},Nature:{[h.English]:"Nature",[h.Swedish]:"Natur",[h.Danish]:"Natur"},War:{[h.English]:"War",[h.Swedish]:"Krig",[h.Danish]:"Krig"},"Sci-Fi":{[h.English]:"Sci-Fi",[h.Swedish]:"Sci-fi",[h.Danish]:"Sci-fi"},Documentary:{[h.English]:"Documentary",[h.Swedish]:"Dokumentär",[h.Danish]:"Dokumentar"},"Stand-up":{[h.English]:"Stand-up",[h.Swedish]:"Standup",[h.Danish]:"Stand-up"},"Talk Show":{[h.English]:"Talk Show",[h.Swedish]:"Talkshow",[h.Danish]:"Talkshow"},Fantasy:{[h.English]:"Fantasy",[h.Swedish]:"Fantasy",[h.Danish]:"Fantasy"},History:{[h.English]:"History",[h.Swedish]:"Historia",[h.Danish]:"Historie"},Adventure:{[h.English]:"Adventure",[h.Swedish]:"Äventyr",[h.Danish]:"Eventyr"},Action:{[h.English]:"Action",[h.Swedish]:"Action",[h.Danish]:"Action"},Horror:{[h.English]:"Horror",[h.Swedish]:"Skräck",[h.Danish]:"Gyser"},Comedy:{[h.English]:"Comedy",[h.Swedish]:"Komedi",[h.Danish]:"Komedie"},Biography:{[h.English]:"Biography",[h.Swedish]:"Biografi",[h.Danish]:"Biografi"},Music:{[h.English]:"Music",[h.Swedish]:"Musik",[h.Danish]:"Musik"},Sport:{[h.English]:"Sport",[h.Swedish]:"Sport",[h.Danish]:"Sport"},Romance:{[h.English]:"Romance",[h.Swedish]:"Romantik",[h.Danish]:"Romantik"},Kids:{[h.English]:"Kids",[h.Swedish]:"Barn",[h.Danish]:"Børn"},Lifestyle:{[h.English]:"Lifestyle",[h.Swedish]:"Livsstil",[h.Danish]:"Livsstil"},Musical:{[h.English]:"Musical",[h.Swedish]:"Musikal",[h.Danish]:"Musical"},Anime:{[h.English]:"Anime",[h.Swedish]:"Anime",[h.Danish]:"Anime"},Family:{[h.English]:"Family",[h.Swedish]:"Familj",[h.Danish]:"Familie"}};function ye(e,t=pr()){var n;return((n=xo[e])==null?void 0:n[t])||e}function pr(){var i,r;const e=(i=window.PlayPilotLinkInjections)==null?void 0:i.language,t=Object.values(h);if(e){if(t.includes(e))return e;console.warn(`PlayPilot Link Injections: ${e} is not an accepted language`)}const n=(r=document.querySelector("html"))==null?void 0:r.getAttribute("lang");return n&&t.includes(n)?n:h.English}const So=e=>e;function $n(e){const t=e-1;return t*t*t+1}function _i(e){const t=typeof e=="string"&&e.match(/^\s*(-?[\d.]+)([^\s]*)\s*$/);return t?[parseFloat(t[1]),t[2]||"px"]:[e,"px"]}function Zn(e,{delay:t=0,duration:n=400,easing:i=So}={}){const r=+getComputedStyle(e).opacity;return{delay:t,duration:n,easing:i,css:a=>`opacity: ${a*r}`}}function vn(e,{delay:t=0,duration:n=400,easing:i=$n,x:r=0,y:a=0,opacity:o=0}={}){const l=getComputedStyle(e),d=+l.opacity,s=l.transform==="none"?"":l.transform,u=d*(1-o),[f,_]=_i(r),[g,m]=_i(a);return{delay:t,duration:n,easing:i,css:(v,p)=>`
|
|
4
|
+
transform: ${s} translate(${(1-v)*f}${_}, ${(1-v)*g}${m});
|
|
5
|
+
opacity: ${d-u*p}`}}function Lt(e,{delay:t=0,duration:n=400,easing:i=$n,axis:r="y"}={}){const a=getComputedStyle(e),o=+a.opacity,l=r==="y"?"height":"width",d=parseFloat(a[l]),s=r==="y"?["top","bottom"]:["left","right"],u=s.map(y=>`${y[0].toUpperCase()}${y.slice(1)}`),f=parseFloat(a[`padding${u[0]}`]),_=parseFloat(a[`padding${u[1]}`]),g=parseFloat(a[`margin${u[0]}`]),m=parseFloat(a[`margin${u[1]}`]),v=parseFloat(a[`border${u[0]}Width`]),p=parseFloat(a[`border${u[1]}Width`]);return{delay:t,duration:n,easing:i,css:y=>`overflow: hidden;opacity: ${Math.min(y*20,1)*o};${l}: ${y*d}px;padding-${s[0]}: ${y*f}px;padding-${s[1]}: ${y*_}px;margin-${s[0]}: ${y*g}px;margin-${s[1]}: ${y*m}px;border-${s[0]}-width: ${y*v}px;border-${s[1]}-width: ${y*p}px;min-${l}: 0`}}function Eo(e,{delay:t=0,duration:n=400,easing:i=$n,start:r=0,opacity:a=0}={}){const o=getComputedStyle(e),l=+o.opacity,d=o.transform==="none"?"":o.transform,s=1-r,u=l*(1-a);return{delay:t,duration:n,easing:i,css:(f,_)=>`
|
|
6
|
+
transform: ${d} scale(${1-s*_});
|
|
7
|
+
opacity: ${l-u*_}
|
|
8
|
+
`}}Xr();var To=Ee('<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 yr(e){var t=To();k(e,t)}function Gn(e,t){re(t,!0);const n=D(t,"size",3,"margin(2)"),i=D(t,"onclick",3,()=>null),r=fo(t,["$$slots","$$events","$$legacy","children","size","onclick"]);var a=Ze(),o=Q(a);Ga(o,()=>t.href?"a":"button",!1,(l,d)=>{let s;M(()=>{s=eo(l,s,{role:t.href?"link":"button",onclick:i(),class:"button",...r},"svelte-1qqv88o",l.namespaceURI===Ii,l.nodeName.includes("-")),dn(l,"--size",n())});var u=Ze(),f=Q(u);St(f,()=>t.children??Le),k(d,u)}),k(e,a),ae()}var Ao=(e,t)=>t()(),Io=A('<div class="modal svelte-19ba1f5"><div class="dialog svelte-19ba1f5" role="dialog"><div class="close svelte-19ba1f5"><!></div> <!></div> <div class="backdrop svelte-19ba1f5"></div></div>');function Co(e,t){re(t,!0);const n=D(t,"onclose",3,()=>null),i=D(t,"onscroll",3,()=>null);Qi("scope","modal"),ut(()=>{const f=document.body.style.overflowY;return document.body.style.overflowY="hidden",()=>document.body.style.overflowY=f||""});function r(f){return window.innerWidth<600?vn(f,{duration:250,y:window.innerHeight}):Eo(f,{duration:150,start:.85})}var a=Io();ie("keydown",me,({key:f})=>{f==="Escape"&&n()()});var o=b(a),l=b(o),d=b(l);Gn(d,{onclick:()=>n()(),children:(f,_)=>{yr(f)},$$slots:{default:!0}});var s=T(l,2);St(s,()=>t.children);var u=T(o,2);u.__click=[Ao,n],ie("scroll",o,function(...f){var _;(_=i())==null||_.apply(this,f)}),Ie(3,o,()=>r),Ie(3,a,()=>Zn,()=>({duration:150})),k(e,a),ae()}fe(["click"]);const Po=[{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 jo=A('<div class="genre svelte-13nhocm"> </div>'),No=(e,t)=>N(t,!0),Lo=A('<button class="genre expand svelte-13nhocm"> </button>'),Mo=A("<!> <!>",1);function Do(e,t){re(t,!0);let n=W(!1);const i=B(()=>c(n)?t.genres:[t.genres[0]]);var r=Mo(),a=Q(r);it(a,17,()=>c(i),pt,(d,s)=>{var u=Ze();const f=B(()=>{var m;return(m=Po.find(v=>v.slug===c(s)))==null?void 0:m.name});var _=Q(u);{var g=m=>{var v=jo(),p=b(v);M(()=>K(p,ye(c(f)))),k(m,v)};O(_,m=>{c(f)&&m(g)})}k(d,u)});var o=T(a,2);{var l=d=>{var s=Lo();s.__click=[No,n];var u=b(s);M(()=>K(u,`+${t.genres.length-1}`)),k(d,s)};O(o,d=>{!c(n)&&t.genres.length>1&&d(l)})}k(e,r),ae()}fe(["click"]);function Oo(e){let t=[];for(const n of e){let i=n;const r=t.find(l=>l.name===i.name),a=r==null?void 0:r.extra_info.category,o=i.extra_info.category;(a==="RENT"&&o==="BUY"||a==="BUY"&&o==="RENT")&&(t=t.filter(l=>l.name!==i.name),i={...i,extra_info:{...i.extra_info,category:"TVOD"}}),t.push(i)}return t}function Pe(e,t=1){e.role="heading",e.ariaLevel=t.toString()}var Ro=Ee('<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 Ho(e){var t=Ro();k(e,t)}function Mt(e){return e?e.replace("/src/img",""):null}var Fo=(e,t,n)=>t(n()),qo=A('<div class="arrow svelte-1itidbd"><!></div>'),Bo=A('<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>'),Vo=A('<div class="playlink empty svelte-1itidbd"> </div>'),Uo=A('<div class="heading svelte-1itidbd"> </div> <div class="playlinks svelte-1itidbd"><!> <!></div>',1);function Wo(e,t){re(t,!0);const n=D(t,"list",3,!1),i=ja("scope")==="modal",r=B(()=>t.playlinks.filter(v=>!!v.logo_url)),a=B(()=>Oo(c(r))),o={SVOD:ye("Stream"),BUY:ye("Buy"),RENT:ye("Rent"),TVOD:ye("Rent Or Buy")};function l(v){Ce(i?xe.TitleModalPlaylinkClick:xe.TitlePopoverPlaylinkClick,t.title,{playlink:v})}var d=Uo(),s=Q(d),u=b(s);M(()=>K(u,ye("Where To Stream Online"))),un(s,(v,p)=>Pe==null?void 0:Pe(v,p),()=>2);var f=T(s,2),_=b(f);it(_,17,()=>c(a),pt,(v,p)=>{let y=()=>c(p).name,w=()=>c(p).url,E=()=>c(p).logo_url,P=()=>c(p).extra_info.category;var x=Bo();x.__click=[Fo,l,y];var C=b(x);M(()=>ne(C,"src",Mt(E())));var j=T(C,2),S=b(j),I=b(S),H=T(S,2),R=b(H);M(()=>K(R,o[P()]||ye("Stream")));var Y=T(j,2);{var z=U=>{var F=qo(),$=b(F);Ho($),k(U,F)};O(Y,U=>{n()&&U(z)})}M(()=>{ne(x,"href",w()),ne(x,"data-playlink",y()),K(I,y())}),k(v,x)});var g=T(_,2);{var m=v=>{var p=Vo(),y=b(p);M(()=>K(y,ye("Title Unavailable"))),k(v,p)};O(g,v=>{t.playlinks.length||v(m)})}M(()=>le(f,"list",n())),k(e,d),ae()}fe(["click"]);var Ko=(e,t)=>N(t,!0),zo=A('<button class="show-more svelte-1u3je71">Show more</button>'),Yo=A('<div class="paragraph svelte-1u3je71" role="paragraph"> </div>'),$o=A('<div><span class="paragraph svelte-1u3je71" role="paragraph"> <!> <!></span> <!></div>');function Zo(e,t){re(t,!0);const n=D(t,"blurb",3,""),i=D(t,"limit",3,200);let r=W(!1);const a=B(()=>t.text.slice(0,i()));var o=$o(),l=b(o),d=b(l),s=T(d);{var u=v=>{var p=Oe("...");k(v,p)};O(s,v=>{!c(r)&&t.text.length>i()&&v(u)})}var f=T(s,2);{var _=v=>{var p=zo();p.__click=[Ko,r],k(v,p)};O(f,v=>{!c(r)&&(t.text.length>i()||n())&&v(_)})}var g=T(l,2);{var m=v=>{var p=Yo(),y=b(p);M(()=>K(y,n())),k(v,p)};O(g,v=>{c(r)&&v(m)})}M(()=>K(d,c(r)?t.text:c(a))),k(e,o),ae()}fe(["click"]);var Go=A('<div class="participant"> <div class="character svelte-15oguej"> <!></div></div>'),Jo=A('<h2 class="svelte-15oguej">Cast</h2> <div class="participants svelte-15oguej"></div>',1);function Xo(e,t){var n=Jo(),i=T(Q(n),2);it(i,21,()=>t.participants,pt,(r,a)=>{var o=Go(),l=b(o),d=T(l),s=b(d);M(()=>{var _;return K(s,((_=c(a).character)==null?void 0:_.slice(0,20))||"")});var u=T(s);{var f=_=>{var g=Oe("...");k(_,g)};O(u,_=>{var g;(g=c(a).character)!=null&&g.length&&_(f)})}M(()=>K(l,`${c(a).name??""} `)),k(r,o)}),k(e,n)}var Qo=Ee('<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 wr(e){var t=Qo();k(e,t)}var el=A('<div class="top svelte-16h1v3j"><img class="poster svelte-16h1v3j"></div>'),tl=A("<div> </div>"),nl=A("<!> <!>",1),il=A('<img alt="" class="svelte-16h1v3j">'),rl=A('<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 kr(e,t){re(t,!0);const n=D(t,"small",3,!1),i=D(t,"compact",3,!1);let r=W(!1),a=W(!1),o=W(!1);var l=rl(),d=Q(l),s=b(d),u=b(s);{var f=F=>{var $=el(),te=b($);M(()=>ne(te,"src",Mt(t.title.standing_poster))),M(()=>{ne(te,"alt",`Movie poster for '${t.title.title??""}'`),le(te,"loaded",c(r))}),ie("load",te,()=>N(r,!0)),k(F,$)};O(u,F=>{i()||F(f)})}var _=T(u,2),g=b(_);un(_,F=>Pe==null?void 0:Pe(F));var m=T(_,2),v=b(m),p=b(v);wr(p);var y=T(p),w=T(v,2);Do(w,{get genres(){return t.title.genres}});var E=T(w,2),P=b(E),x=T(E,2),C=b(x);M(()=>K(C,ye(`Type: ${t.title.type}`)));var j=T(x,2);{var S=F=>{var $=tl(),te=b($);M(()=>K(te,`${t.title.length??""} ${ye("Minutes")??""}`)),k(F,$)};O(j,F=>{!n()&&t.title.length&&F(S)})}var I=T(s,2),H=b(I);Wo(H,{get playlinks(){return t.title.providers},get title(){return t.title},list:!0});var R=T(H,2);{var Y=F=>{var $=nl(),te=Q($);Zo(te,{get text(){return t.title.description},get blurb(){return t.title.blurb}});var ce=T(te,2);{var ve=ue=>{Xo(ue,{get participants(){return t.title.participants}})};O(ce,ue=>{var _e;(_e=t.title.participants)!=null&&_e.length&&ue(ve)})}k(F,$)};O(R,F=>{n()||F(Y)})}var z=T(d,2),U=b(z);rr(U,()=>c(o),F=>{var $=il();M(()=>ne($,"src",Mt(c(o)?t.title.standing_poster:t.title.medium_poster))),M(()=>{le($,"loaded",c(a)),le($,"blur",c(o))}),ie("load",$,()=>N(a,!0)),ie("error",$,()=>N(o,!0)),k(F,$)}),M(()=>{ne(d,"data-playpilot-original-title",t.title.original_title),le(d,"small",n()),le(d,"compact",i()),le(_,"truncate",n()),K(g,t.title.title),K(y,` ${t.title.imdb_score??""}`),K(P,t.title.year),le(z,"faded",i())}),k(e,l),ae()}function al(e,t){re(t,!0),Ce(xe.TitleModalView,t.title);let n=!1;function i(){n||(Ce(xe.TitleModalScroll,t.title),n=!0)}Co(e,{get onclose(){return t.onclose},onscroll:i,children:(r,a)=>{kr(r,{get title(){return t.title}})},$$slots:{default:!0}}),ae()}var ol=A('<div class="popover svelte-165x72s" tabindex="-1" aria-hidden="true"><div class="dialog svelte-165x72s"><!></div></div>');function ll(e,t){re(t,!0);let n=D(t,"maxHeight",15);Qi("scope","popover");let i=W(null),r=W(!1);ut(async()=>{await ai(),a(),await ai(),o()});function a(){if(!c(i))return;const{top:f,right:_,bottom:g,height:m}=c(i).getBoundingClientRect(),v=l();N(r,J(f-v<0&&window.innerHeight-g>f+m));const p=window.innerWidth-_-v;_+v>window.innerWidth&&(c(i).style.left=`${p}px`)}function o(){if(!c(i))return;const{top:f,height:_}=c(i).getBoundingClientRect(),g=l(),m=c(r)?window.innerHeight-f-g:f+_-g;n(Math.min(m,window.innerHeight*.8))}function l(){return parseFloat(getComputedStyle(document.documentElement).fontSize)}var d=ol(),s=b(d),u=b(s);St(u,()=>t.children),Ut(d,f=>N(i,f),()=>c(i)),M(()=>{le(d,"flip",c(r)),dn(d,"--max-height",n()?n()+"px":null)}),Ie(3,s,()=>vn,()=>({duration:100,y:10})),k(e,d),ae()}function sl(e,t){re(t,!0);let n=W(0);Ce(xe.TitlePopoverView,t.title),ll(e,{get maxHeight(){return c(n)},set maxHeight(i){N(n,J(i))},children:(i,r)=>{var a=B(()=>!!c(n)&&c(n)<250);kr(i,{get title(){return t.title},small:!0,get compact(){return c(a)}})},$$slots:{default:!0}}),ae()}var cl=(e,t,n,i)=>t(e,c(n).title_details,c(i)),ul=A(' <span class="svelte-pfvkex"><button class="svelte-pfvkex"> </button></span>',1),dl=(e,t,n,i)=>t(c(n).title_details,i()),fl=A('<!> <a target="_blank"> </a>',1),vl=A(" <!>.",1),_l=A("<!> <br>",1),hl=A(" <br>",1),gl=A('<span class="svelte-pfvkex"><!></span>'),ml=A('<p class="svelte-pfvkex"></p>');function pl(e,t){re(t,!0);const n=D(t,"onclickmodal",3,()=>null);function i(d,s){Ce(xe.AfterArticlePlaylinkClick,d,{playlink:s})}function r(d,s,u){Ce(xe.AfterArticleModalButtonClick,s),n()(d,u)}var a=Ze(),o=Q(a);{var l=d=>{var s=ml();it(s,21,()=>t.linkInjections,pt,(u,f)=>{var _=gl();const g=B(()=>{const{key:w,title:E,title_details:P,after_article_style:x}=c(f);return{key:w,title:E,title_details:P,after_article_style:x}}),m=B(()=>{var w;return((w=c(g).title_details)==null?void 0:w.providers)||[]});var v=b(_);{var p=w=>{var E=_l(),P=Q(E);{var x=j=>{var S=ul(),I=Q(S);M(()=>K(I,`"${c(g).title??""}" ${ye("Is Available To Stream")??""} `));var H=T(I),R=b(H);R.__click=[cl,r,g,f];var Y=b(R);M(()=>K(Y,ye("View Streaming Options"))),k(j,S)},C=j=>{var S=vl(),I=Q(S);M(()=>K(I,`"${c(g).title??""}" ${ye("Is Available To Stream On")??""} `));var H=T(I);it(H,17,()=>c(m),pt,(R,Y,z)=>{let U=()=>c(Y).name,F=()=>c(Y).url;var $=fl(),te=Q($);{var ce=_e=>{var We=Oe();M(()=>K(We,z===c(m).length-1?`, ${ye("And")}`:",")),k(_e,We)};O(te,_e=>{z&&_e(ce)})}var ve=T(te,2);ve.__click=[dl,i,g,U];var ue=b(ve);M(()=>{ne(ve,"href",F()),K(ue,U())}),k(R,$)}),k(j,S)};O(P,j=>{c(g).after_article_style==="modal_button"?j(x):j(C,!1)})}k(w,E)},y=w=>{var E=hl(),P=Q(E);M(()=>K(P,`"${c(g).title??""}" ${ye("Title Unavailable Suffix")??""} `)),k(w,E)};O(v,w=>{c(m).length?w(p):w(y,!1)})}M(()=>ne(_,"data-playpilot-injection-key",c(g).key)),k(u,_)}),k(d,s)};O(o,d=>{t.linkInjections.length&&d(l)})}k(e,a),ae()}fe(["click"]);function yl(e){const t=document.createElement("div");return t.textContent=e,t.innerHTML}function Jn(e){const t=document.createElement("div");return t.innerHTML=e,t.textContent||""}function hi(e,t,n=[]){var a,o;const i=document.createTreeWalker(t);let r;for(;(r=i.nextNode())&&!((a=r.nodeValue)!=null&&a.includes(e)&&!n.includes(((o=r.parentNode)==null?void 0:o.nodeName)||"")););return r}function gi(e){const t=e.parentNode;return t?t.nodeName==="A"||!!t.closest("a"):!1}function wl(e,t,n,i){const r=yl(t),a=Jn(t),o=e.slice(0,i),l=e.slice(i),d=/[-/\\^$*+?.()|[\]{}]/g,s=new RegExp(`${a.replace(d,"\\$&")}|${r.replace(d,"\\$&")}`),u=l.replace(s,n);return o+u}function Ye(e){return Jn(e).toLowerCase().replace(/\s+/g,"")}function kl(e,t,n){const r=e.indexOf(t),a=Math.floor((n-t.length)/2);let o=Math.max(0,r-a),l=o+n;l>e.length&&(l=e.length,o=Math.max(0,l-n));let d=e.slice(o,l).trim();return o>0&&(d="…"+d),l<e.length&&(d+="…"),d}function bl(e){let t=0;for(let n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return t}const Xn="data-playpilot-injection-key",Qn=`[${Xn}]`,yt={};let Nn=null,At=null,It=null;function br(e){const t=[],n=[e];for(;n.length>0;){const i=n.pop();if(t.includes(i)||/^(A|BUTTON|SCRIPT|NOSCRIPT|STYLE|IFRAME|FIGCAPTION|H[1-6])$/.test(i.tagName))continue;const r=Array.from(i.childNodes).some(o=>{var l;return o.nodeType===Node.TEXT_NODE&&((l=o.nodeValue)==null?void 0:l.trim())!==""});if(r&&i.tagName==="LI"){const o=i.closest("ul, ol");o&&!t.includes(o)&&t.push(o);continue}if(r){t.push(i);continue}const a=Array.from(i.children);for(let o=a.length-1;o>=0;o--)n.push(a[o])}return t}function _n(){var t;const e=(t=window.PlayPilotLinkInjections)==null?void 0:t.selector;if(e){const n=e.replace(/(:)/g,"\\$1"),i=document.querySelector(n);if(i)return i}return document.querySelector("article")||document.querySelector("main")||document.body}function xl(e,t={aiInjections:[],manualInjections:[]}){var s;ei();const n=Cl(t);if(!n)return[];const i=Ye(e.map(u=>u.innerText).join(" ")),r=Pl(n),a=r.filter(u=>i.includes(Ye(u.sentence))),o={},l={};for(const u of a){const f=e.findIndex(x=>Ye(x.innerText).includes(Ye(u.sentence))),_=e[f];if(!_)continue;const g=hi(u.title,_,["A"]);if(!(g!=null&&g.nodeValue)||gi(g)){const x=hi(u.title,_);x&&gi(x)&&(l[u.key]="Given text is already inside of a link.");continue}const m=document.createElement("span");m.dataset.playpilotInjectionKey=u.key;const v=document.createElement("a");v.innerText=u.title,v.href=u.playpilot_url,v.dataset.playpilotOriginalTitle=(s=u.title_details)==null?void 0:s.original_title,v.target="_blank",v.rel="noopener nofollow noreferrer",m.insertAdjacentElement("beforeend",v);const p=bl(Object.values(o).filter(x=>x.elementIndex===f).map(x=>x.to)),y=_.innerHTML.indexOf(g.nodeValue),w=_.innerHTML.indexOf(u.sentence),E=Math.max(p,y,w,0);_.innerHTML=wl(_.innerHTML,u.title,m.outerHTML,E);const P=_.innerHTML.indexOf(m.outerHTML);o[u.key]={elementIndex:f,from:P,to:P+m.outerHTML.length}}El(r),Sl();const d=jl(n);return d.length&&Al(e,d),n.filter(u=>u.title_details).map((u,f)=>{const _=u.duplicate??(!u.manual&&Nl(u,f,n)),g=document.querySelector(`[${Xn}="${u.key}"]`),m=hn(u)&&!u.inactive&&!u.after_article&&!g,v=m?l[u.key]||(i.includes(Ye(u.sentence))?"The link failed to inject for unknown reasons.":"Given sentence was not found in the article."):"";return{...u,inactive:u.inactive??!1,duplicate:_,failed:m,failed_message:v}})}function Sl(){const e=Array.from(document.querySelectorAll(`${Qn} 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(i=>{getComputedStyle(n).getPropertyValue(i)&&(n.dataset.usedCssVariables=`${n.dataset.usedCssVariables||""} ${i}`)})})}function El(e){window.addEventListener("click",n=>{const i=n.target;if(!(i!=null&&i.parentElement))return;const r=i.parentElement.getAttribute(Xn);if(!r)return;const a=e.find(o=>r===o.key);a&&xr(n,a)}),Array.from(document.querySelectorAll(Qn)).forEach(n=>{const i=n.dataset.playpilotInjectionKey,r=e.find(a=>i===a.key);r&&(n.addEventListener("mouseenter",a=>Tl(a,r)),n.addEventListener("mouseleave",()=>Qt(r)))})}function xr(e,t){e.ctrlKey||e.metaKey||e.button!==0||It||(e.preventDefault(),Qt(t),It=cn(al,{target:document.body,props:{title:t.title_details,onclose:Sr}}))}function Sr(e=!0){It&&(Kn(It,{outro:e}),It=null)}function Tl(e,t){if(window.matchMedia("(pointer: coarse)").matches)return;const n=e.currentTarget;Nn=n,setTimeout(()=>{if(yt[t.key]||Nn!==n)return;const i=cn(sl,{target:n,props:{title:t.title_details}});yt[t.key]={injection:t,component:i}},100)}function Qt(e,t=!0){const n=yt[e.key];Nn=null,n&&(Kn(n.component,{outro:t}),delete yt[e.key])}function Al(e,t){var o,l;if(At||!t.length)return;const n=document.createElement("div"),i=(o=window.PlayPilotLinkInjections)==null?void 0:o.after_article_selector,r=(i?document.querySelector(i):null)||e[e.length-1],a=((l=window.PlayPilotLinkInjections)==null?void 0:l.after_article_insert_position)||"afterend";n.dataset.playpilotAfterArticlePlaylinks="true",r.insertAdjacentElement(a,n),At=cn(pl,{target:n,props:{linkInjections:t,onclickmodal:(d,s)=>xr(d,s)}})}function Il(){var e;At&&(Kn(At),(e=document.querySelector("[data-playpilot-after-article-playlinks]"))==null||e.remove(),At=null)}function ei(){Object.values(yt).forEach(t=>Qt(t.injection)),document.querySelectorAll(Qn).forEach(t=>t.outerHTML=t.textContent||""),Object.values(yt).forEach(({injection:t})=>Qt(t,!1)),Il(),Sr()}function Cl({aiInjections:e,manualInjections:t}){return[...t.map(n=>({...n,manual:!0})),...e]}function Er(e){return{aiInjections:e.filter(t=>!t.manual),manualInjections:e.filter(t=>t.manual)}}function Tr(e){return!e.inactive&&!e.removed&&!e.duplicate&&!!e.title_details&&hn(e)}function hn(e){return e.in_text||e.in_text===void 0?!0:!!e.after_article}function Pl(e){return Ar(e).filter(t=>t.in_text!==!1&&Tr(t))}function jl(e){return Ar(e).filter(t=>t.after_article===!0&&Tr(t))}function Ar(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)&&Ir(n,t)))}function Nl(e,t,n){return n.some((i,r)=>t!==r&&i.manual&&Ir(i,e))}function Ir(e,t){return e.title===t.title&&Ye(e.sentence)===Ye(t.sentence)}function Ll(){const e=_n();return{heading:Ml(e),modified_time:Dl(e),published_time:Ol(e)}}function Ml(e){const t=e.querySelector("h1")||document.querySelector("h1");return(t==null?void 0:t.innerText.trim())||null}function Dl(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?Cr(n):null}function Ol(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?Cr(n):null}function Cr(e){try{return new Date(e).toISOString()}catch{return null}}function Pr(){return location.protocol+"//"+location.host+location.pathname}let bn=null;async function jr(e,t,{hash:n=mr(t),params:i={}}={}){const r=new Headers({"Content-Type":"application/json"}),a=gn(),o=gr()?await hr():!1,l=pr(),d=Ll();if(!a)throw new Error("No token was provided");const s=await fetch(fn+`/external-pages/?api-token=${a}&include_title_details=true${o?"&editorial_mode_enabled=true":""}&language=${l}`,{headers:r,method:"POST",body:JSON.stringify({hash:n,url:e,metadata:d,page_text:t,...i})});if(!s.ok)throw s;return await s.json()}async function mi(e,t,{requireCompletedResult:n=!1,pollInterval:i=3e3,maxTries:r=600,onpoll:a=()=>null}={}){let o=mr(t),l=0;bn&&clearTimeout(bn);const d=async(s,u)=>{let f;try{if(f=await jr(e,t,{hash:o}),n&&f.automation_enabled&&f.ai_running)throw new Error;f.link_injections=pi(f.link_injections||[]),f.ai_injections=pi(f.ai_injections||[]),s(f);return}catch{if(l++,l>=r){r>1&&console.error("Max poll limit exceeded. Please return later."),s();return}f&&a(f),bn=setTimeout(()=>d(s),i)}};return new Promise(d)}async function Rl(e,t){var o;const n=(o=window.PlayPilotLinkInjections)==null?void 0:o.selector,r=e.filter(l=>l.manual).map(l=>({sid:l.sid,title:l.title,sentence:l.sentence,playpilot_url:l.playpilot_url,after_article:!!l.after_article,after_article_style:l.after_article_style||null,in_text:l.in_text??!0,inactive:!!l.inactive,removed:!!l.removed}));if(!await jr(Pr(),t,{params:{private_token:Yn(),link_injections:r,text_selector:n}}))throw new Error("saveLinkInjections response was faulty");return e}async function Hl(){const e=new Headers({"Content-Type":"application/json"}),t=gn();if(!t)throw new Error("No token was provided");const n=await fetch(fn+`/domains/config?api-token=${t}`,{headers:e});if(!n.ok)throw n;try{return await n.json()||null}catch{return null}}function pi(e){return e.map(t=>({...t,key:Nr(t.sid)}))}function Nr(e){return e+"-"+(Math.random()+1).toString(36).substring(7)}function gn(){var e;return(e=window.PlayPilotLinkInjections)==null?void 0:e.token}function Fl(){const e=navigator.userAgent.toLowerCase();return/bot|crawl|spider|google|baidu|bing|msn|teoma|slurp|yandex|facebookexternalhit|facebot/i.test(e)}var ql=Ee('<svg width="8" height="4" viewBox="0 0 8 4" fill="none" class="svelte-by11ix"><path d="M1 0.5L4 3.5L7 0.5" stroke="currentColor" stroke-width="0.9975" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Bl(e,t){const n=D(t,"expanded",3,!1);var i=ql();M(()=>le(i,"expanded",n())),k(e,i)}var Vl=Ee('<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none"><circle cx="12" cy="17" r="1" fill="var(--playpilot-warning)"></circle><path d="M12 10L12 14" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3.44722 18.1056L10.2111 4.57771C10.9482 3.10361 13.0518 3.10362 13.7889 4.57771L20.5528 18.1056C21.2177 19.4354 20.2507 21 18.7639 21H5.23607C3.7493 21 2.78231 19.4354 3.44722 18.1056Z" stroke="var(--playpilot-warning)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Ul(e){var t=Vl();k(e,t)}function Wl(e,t,n){t(!t()),n()(t())}var Kl=A('<button class="switch svelte-91s87b"><div class="label svelte-91s87b"><!></div> <div class="track svelte-91s87b"><div class="knob svelte-91s87b"></div></div></button>');function Ln(e,t){re(t,!0);let n=D(t,"active",15),i=D(t,"fullwidth",3,!1),r=D(t,"label",3,""),a=D(t,"onclick",3,()=>null);var o=Kl();o.__click=[Wl,n,a];var l=b(o),d=b(l);St(d,()=>t.children),M(()=>{ne(o,"aria-label",`Toggle ${r()??""} ${(n()?"off":"on")??""}`),le(o,"active",n()),le(o,"fullwidth",i())}),k(e,o),ae()}fe(["click"]);var zl=A('<input type="text" class="svelte-1vrer3i">');function ti(e,t){let n=D(t,"value",15),i=D(t,"label",3,""),r=D(t,"name",3,""),a=D(t,"readonly",3,!1),o=D(t,"oninput",3,()=>null);var l=zl();l.__input=function(...d){var s;(s=o())==null||s.apply(this,d)},M(()=>{ne(l,"name",r()),ne(l,"aria-label",i()),ne(l,"placeholder",i()),l.readOnly=a()}),lo(l,n),k(e,l)}fe(["input"]);var Yl=Ee('<path d="M13.5833 13.6667L4.41667 13.6667M5.5 1.5H12.5C13.9001 1.5 14.6002 1.5 15.135 1.77248C15.6054 2.01217 15.9878 2.39462 16.2275 2.86502C16.5 3.3998 16.5 4.09987 16.5 5.5V12.5C16.5 13.9001 16.5 14.6002 16.2275 15.135C15.9878 15.6054 15.6054 15.9878 15.135 16.2275C14.6002 16.5 13.9001 16.5 12.5 16.5H5.5C4.09987 16.5 3.3998 16.5 2.86502 16.2275C2.39462 15.9878 2.01217 15.6054 1.77248 15.135C1.5 14.6002 1.5 13.9001 1.5 12.5V5.5C1.5 4.09987 1.5 3.3998 1.77248 2.86502C2.01217 2.39462 2.39462 2.01217 2.86502 1.77248C3.3998 1.5 4.09987 1.5 5.5 1.5Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),$l=Ee('<path d="M13.5833 8.58342H4.41667M5.5 1.50009H12.5C13.9001 1.50009 14.6002 1.50009 15.135 1.77258C15.6054 2.01226 15.9878 2.39471 16.2275 2.86512C16.5 3.39989 16.5 4.09996 16.5 5.50009V12.5001C16.5 13.9002 16.5 14.6003 16.2275 15.1351C15.9878 15.6055 15.6054 15.9879 15.135 16.2276C14.6002 16.5001 13.9001 16.5001 12.5 16.5001H5.5C4.09987 16.5001 3.3998 16.5001 2.86502 16.2276C2.39462 15.9879 2.01217 15.6055 1.77248 15.1351C1.5 14.6003 1.5 13.9002 1.5 12.5001V5.50009C1.5 4.09996 1.5 3.39989 1.77248 2.86512C2.01217 2.39471 2.39462 2.01226 2.86502 1.77258C3.3998 1.50009 4.09987 1.50009 5.5 1.50009Z" stroke="currentColor" stroke-width="1.25" stroke-linecap="round" stroke-linejoin="round"></path>'),Zl=Ee('<svg width="18" height="18" viewBox="0 0 18 18" fill="none"><!></svg>');function yi(e,t){const n=D(t,"align",3,"bottom");var i=Zl(),r=b(i);{var a=l=>{var d=Yl();k(l,d)},o=l=>{var d=Ze(),s=Q(d);{var u=f=>{var _=$l();k(f,_)};O(s,f=>{n()==="center"&&f(u)},!0)}k(l,d)};O(r,l=>{n()==="bottom"?l(a):l(o,!1)})}k(e,i)}var Gl=A("<div><!></div>");function Dt(e,t){re(t,!0);const n=D(t,"type",3,"error");var i=Gl(),r=b(i);St(r,()=>t.children),M(()=>to(i,`alert ${n()??""} svelte-18si0a5`)),k(e,i),ae()}var Jl=A("<!> In-text Playlink",1),Xl=A("<!> Bottom Playlink",1),Ql=A('<div class="alert svelte-1shw34x"><!></div>'),es=(e,t)=>t().after_article_style="playlinks",ts=(e,t)=>t().after_article_style="modal_button",ns=A('<div><div class="label svelte-1shw34x">Bottom playlinks style</div> <div class="group svelte-1shw34x" role="listbox" tabindex="0" aria-label="Playlink type"><button role="option" id="playlinks-in-text" class="svelte-1shw34x">Playlinks sentence</button> <button role="option" id="playlinks-after-article" class="svelte-1shw34x">Modal button</button> <div class="active-marker svelte-1shw34x"></div></div></div>'),is=A('<div class="switches svelte-1shw34x"><!> <!></div> <!> <!>',1);function rs(e,t){re(t,!0);const n=D(t,"linkInjection",7),i=B(()=>n().after_article_style==="modal_button");var r=is(),a=Q(r),o=b(a),l=B(()=>n().in_text??!0);Ln(o,{fullwidth:!0,get active(){return c(l)},onclick:m=>{n().in_text=m,n().manual=!0},label:"In-text Playlink",children:(m,v)=>{var p=Jl(),y=Q(p);yi(y,{align:"center"}),k(m,p)},$$slots:{default:!0}});var d=T(o,2),s=B(()=>n().after_article??!1);Ln(d,{fullwidth:!0,get active(){return c(s)},onclick:m=>{n().after_article=m,n().manual=!0},label:"Bottom Playlink",children:(m,v)=>{var p=Xl(),y=Q(p);yi(y,{align:"bottom"}),k(m,p)},$$slots:{default:!0}});var u=T(a,2);{var f=m=>{var v=Ql(),p=b(v);Dt(p,{type:"warning",children:(y,w)=>{var E=Oe("At least one layout option must be selected for the playlink to be visible.");k(y,E)},$$slots:{default:!0}}),Ie(3,v,()=>Lt,()=>({duration:200})),k(m,v)};O(u,m=>{hn(n())||m(f)})}var _=T(u,2);{var g=m=>{var v=ns(),p=T(b(v),2),y=b(p);y.__click=[es,n];var w=T(y,2);w.__click=[ts,n];var E=T(w,2);M(()=>{ne(p,"aria-activedescendant",`playlinks-${(c(i)?"after-article":"in-text")??""}`),ne(y,"aria-selected",!c(i)||null),le(y,"active",!c(i)),ne(w,"aria-selected",c(i)||null),le(w,"active",c(i)),le(E,"right",c(i))}),Ie(3,v,()=>Lt,()=>({duration:100})),k(m,v)};O(_,m=>{n().after_article&&m(g)})}k(e,r),ae()}fe(["click"]);var as=Ee('<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M9.99984 10.8333C10.4601 10.8333 10.8332 10.4602 10.8332 10C10.8332 9.53977 10.4601 9.16668 9.99984 9.16668C9.5396 9.16668 9.1665 9.53977 9.1665 10C9.1665 10.4602 9.5396 10.8333 9.99984 10.8333Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 5.00001C10.4601 5.00001 10.8332 4.62691 10.8332 4.16668C10.8332 3.70644 10.4601 3.33334 9.99984 3.33334C9.5396 3.33334 9.1665 3.70644 9.1665 4.16668C9.1665 4.62691 9.5396 5.00001 9.99984 5.00001Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path><path d="M9.99984 16.6667C10.4601 16.6667 10.8332 16.2936 10.8332 15.8333C10.8332 15.3731 10.4601 15 9.99984 15C9.5396 15 9.1665 15.3731 9.1665 15.8333C9.1665 16.2936 9.5396 16.6667 9.99984 16.6667Z" stroke="currentColor" stroke-width="1.66667" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function os(e){var t=as();k(e,t)}var ls=(e,t)=>N(t,!c(t)),ss=A('<div class="content svelte-1fmy0wh"><!></div>'),cs=A('<div class="context-menu svelte-1fmy0wh"><button class="svelte-1fmy0wh"><!></button> <!></div>');function us(e,t){re(t,!0);let n=W(!1),i=W(null);function r(u){var _;const f=u.target;f===c(i)||(_=c(i))!=null&&_.contains(f)||N(n,!1)}var a=cs();ie("click",me,r);var o=b(a);o.__click=[ls,n];var l=b(o);os(l),Ut(o,u=>N(i,u),()=>c(i));var d=T(o,2);{var s=u=>{var f=ss(),_=b(f);St(_,()=>t.children),Ie(1,f,()=>vn,()=>({duration:150,y:5})),k(u,f)};O(d,u=>{c(n)&&u(s)})}M(()=>{ne(o,"aria-label",t.ariaLabel),ne(o,"aria-expanded",c(n))}),k(e,a),ae()}fe(["click"]);function ds(e,t,n){requestAnimationFrame(()=>t());const i=e.target;if(["BUTTON","INPUT"].includes(i.nodeName)||i.closest("button")||i.closest("input"))return;const r=n()[0];r&&r.scrollIntoView({behavior:"smooth"})}var fs=(e,t)=>N(t,!c(t)),vs=A('<button class="expand-sentence svelte-8gd2db"> </button>'),_s=A('<button class="context-menu-action svelte-8gd2db">Remove</button>'),hs=(e,t)=>N(t,!c(t)),gs=A('<div class="warning svelte-8gd2db" aria-label="Invalid playlink settings"><!></div>'),ms=A('<div class="actions svelte-8gd2db"><button class="expand svelte-8gd2db" aria-label="Expand"><!></button> <!> <!></div>'),ps=A('<div class="expanded svelte-8gd2db"><div class="label svelte-8gd2db">Link URL</div> <!> <div class="label offset svelte-8gd2db">Layout options</div> <div class="type-select svelte-8gd2db"><!></div></div>'),ys=A('<div class="item svelte-8gd2db"><div class="header svelte-8gd2db"><img class="poster svelte-8gd2db" alt="" width="32" height="48"> <div class="info svelte-8gd2db"><div class="title svelte-8gd2db"> </div> <div class="sentence svelte-8gd2db"><!> <!></div></div> <div class="context-menu svelte-8gd2db"><!></div></div> <div class="content svelte-8gd2db"><!> <!></div></div>');function ws(e,t){re(t,!0);const n=D(t,"linkInjection",15),i=D(t,"onremove",3,()=>null),r=D(t,"onhighlight",3,()=>null),a=B(()=>n()||{}),o=B(()=>c(a).key),l=B(()=>c(a).sentence),d=B(()=>c(a).title_details),s=B(()=>c(a).failed),u=B(()=>c(a).failed_message),f=B(()=>c(a).inactive),_=B(()=>c(d)),g=B(()=>kl(n().sentence,n().title,60));let m=W(!1),v=W(!1),p=W(!1),y=W(null);ut(()=>{c(s)&&Ce(xe.InjectionFailed,c(_),{phrase:n().title,sentence:c(l)})});function w(Z=!0){P().forEach(oe=>{oe.classList.toggle("playpilot-injection-highlight",Z)})}function E(Z){let G=Z.target,oe=G==null?void 0:G.dataset.playpilotInjectionKey;G&&!oe&&(G=G.closest(`[data-playpilot-injection-key="${c(o)}"]`),oe=G==null?void 0:G.dataset.playpilotInjectionKey),N(p,oe===c(o)),c(y)&&c(p)&&r()(c(y))}function P(){const Z=Array.from(document.querySelectorAll(`[data-playpilot-injection-key="${c(o)}"]`));return Z.length?Z:br(_n()).filter(G=>Ye(G.innerText).includes(Ye(n().sentence)))||[]}var x=ys();ie("mouseover",me,E),x.__click=[ds,w,P];var C=b(x),j=b(C);M(()=>ne(j,"src",Mt(c(_).standing_poster)));var S=T(j,2),I=b(S),H=b(I),R=T(I,2),Y=b(R);Za(Y,()=>(c(v)?c(l):c(g)).replace(n().title,`<em>${n().title}</em>`));var z=T(Y,2);{var U=Z=>{var G=vs();G.__click=[fs,v];var oe=b(G);M(()=>K(oe,c(v)?"Less":"More")),k(Z,G)};O(z,Z=>{c(g).length<c(l).length&&Z(U)})}var F=T(S,2),$=b(F);us($,{ariaLabel:"More options",children:(Z,G)=>{var oe=_s();oe.__click=function(...L){var q;(q=i())==null||q.apply(this,L)},k(Z,oe)},$$slots:{default:!0}});var te=T(C,2),ce=b(te);{var ve=Z=>{Dt(Z,{children:(G,oe)=>{var L=Oe();M(()=>K(L,c(u))),k(G,L)},$$slots:{default:!0}})},ue=Z=>{var G=ms(),oe=b(G);oe.__click=[hs,m];var L=b(oe);Bl(L,{get expanded(){return c(m)}});var q=T(oe,2);{var se=de=>{var Ge=gs(),Je=b(Ge);Ul(Je),Ie(3,Ge,()=>Zn,()=>({duration:100})),k(de,Ge)};O(q,de=>{hn(n())||de(se)})}var Te=T(q,2),Ae=B(()=>c(f)?"Inactive":"Visible"),Ke=B(()=>!n().inactive);Ln(Te,{get label(){return c(Ae)},get active(){return c(Ke)},onclick:de=>{n(n().inactive=!de,!0),n(n().manual=!0,!0)},children:(de,Ge)=>{var Je=Oe();M(()=>K(Je,c(f)?"Inactive":"Visible")),k(de,Je)},$$slots:{default:!0}}),M(()=>ne(oe,"aria-expanded",c(m))),k(Z,G)};O(ce,Z=>{c(s)?Z(ve):Z(ue,!1)})}var _e=T(ce,2);{var We=Z=>{var G=ps(),oe=T(b(G),2);ti(oe,{oninput:()=>n(n().manual=!0,!0),label:"Playlink URL",get value(){return n().playpilot_url},set value(se){n(n().playpilot_url=se,!0)}});var L=T(oe,4),q=b(L);rs(q,{get linkInjection(){return n()}}),Ie(3,G,()=>Lt,()=>({duration:100})),k(Z,G)};O(_e,Z=>{c(m)&&Z(We)})}Ut(x,Z=>N(y,Z),()=>c(y)),M(()=>{le(x,"highlighted",c(p)),le(x,"inactive",c(f)),K(H,c(_).title)}),ie("mouseenter",x,()=>w(!0)),ie("mouseleave",x,()=>w(!1)),ie("error",j,({target:Z})=>Z.src=cr),Ie(6,x,()=>Lt,()=>({duration:200})),k(e,x),ae()}fe(["click"]);var ks=A('<button class="drag-handle svelte-19mcc5g" aria-label="Move editor"></button>');function bs(e,t){re(t,!0);let n=D(t,"element",7),i=D(t,"position",23,()=>({x:0,y:0})),r=D(t,"limit",19,()=>({x:0,y:0})),a=D(t,"onchange",3,()=>null),o=!1,l={x:0,y:0},d=i();ut(()=>{s(i().x,i().y)});function s(v,p){const y=window.innerWidth,w=window.innerHeight,E=n().clientWidth,P=n().clientHeight;v=Math.min(Math.max(v,r().x),y-E-r().x),p=Math.min(Math.max(p,r().y),w-P-r().y),n().style.right=v+"px",n().style.bottom=Math.max(p,r().y)+"px",i({x:v,y:p}),a()(i())}function u(v){var p,y;return{x:v.pageX||((p=v.touches)==null?void 0:p[0].pageX)||0,y:v.pageY||((y=v.touches)==null?void 0:y[0].pageY)||0}}function f(v){o=!0,l=u(v),d=i()}function _(v){if(!o)return;const p=u(v),y=p.x-l.x,w=p.y-l.y,E=d.x-y,P=d.y-w;s(E,P)}function g(){o&&(o=!1)}var m=ks();ie("mousemove",me,_),ie("touchmove",me,_,void 0,!0),ie("mouseup",me,g),ie("touchend",me,g),ie("resize",me,()=>s(i().x,i().y)),m.__mousedown=f,m.__touchstart=f,k(e,m),ae()}fe(["mousedown","touchstart"]);var xs=A('<button class="resize-handle svelte-sxkuxk" aria-label="Move editor"></button>');function Ss(e,t){re(t,!0);let n=D(t,"element",7),i=D(t,"height",7,200),r=D(t,"onchange",3,()=>null);const a=16;let o=!1,l=0,d=i();ut(()=>{i()&&s(i())});function s(v){const p=window.getComputedStyle(n()).minHeight||"0",y=Math.max(parseInt(p),Math.min(v,g()));n().style.height=`${y}px`,i(y),r()(y)}function u(v){var p,y;o=!0,l=v.pageY||((y=(p=v.touches)==null?void 0:p[0])==null?void 0:y.pageY)||0,d=n().clientHeight}function f(v){var E,P;if(!o)return;const p=v.pageY||((P=(E=v.touches)==null?void 0:E[0])==null?void 0:P.pageY)||0,y=l-p,w=d+y;s(w)}function _(){o=!1}function g(){const v=window.innerHeight-n().getBoundingClientRect().bottom;return Math.max(window.innerHeight-a*2-v,0)}var m=xs();ie("mousemove",me,f),ie("touchmove",me,f,void 0,!0),ie("mouseup",me,_),ie("touchend",me,_),ie("resize",me,()=>{i()&&s(i())}),m.__mousedown=u,m.__touchstart=u,k(e,m),ae()}fe(["mousedown","touchstart"]);var Es=Ee('<svg width="4" height="8" viewBox="0 0 4 8" fill="none"><path d="M3.5 7L0.5 4L3.5 1" stroke="currentcolor" stroke-width="0.9975" stroke-linecap="round" stroke-linejoin="round"></path></svg>');function Ts(e){var t=Es();k(e,t)}async function As(e){const t=new Headers({"Content-Type":"application/json"}),n=gn();if(!n)throw new Error("No token was provided");const i=await fetch(fn+`/search/titles/?api-token=${n}&query=${e}`,{headers:t});if(!i.ok)throw i;return await i.json()}var Is=Ee('<svg viewBox="0 -960 960 960" width="18" height="18"><path fill="currentColor" d="M200-120q-33 0-56.5-23.5T120-200v-560q0-33 23.5-56.5T200-840h280v80H200v560h560v-280h80v280q0 33-23.5 56.5T760-120H200Zm188-212-56-56 372-372H560v-80h280v280h-80v-144L388-332Z"></path></svg>');function Cs(e){var t=Is();k(e,t)}var Ps=A("<div> </div>"),js=e=>e.stopImmediatePropagation(),Ns=A('<button class="item svelte-rjq94e"><img class="poster svelte-rjq94e" alt="" width="28" height="42"> <div class="content"><div class="name svelte-rjq94e"> </div> <div class="meta svelte-rjq94e"><div class="imdb svelte-rjq94e"><!> </div> <div> </div> <div> </div> <!></div></div> <a target="_blank" class="open-in-new-tab svelte-rjq94e"><!></a></button>');function wi(e,t){re(t,!0);const n=D(t,"hoverable",3,!0),i=D(t,"onclick",3,()=>null);var r=Ns();r.__click=function(...x){var C;(C=i())==null||C.apply(this,x)};var a=b(r);M(()=>ne(a,"src",Mt(t.title.standing_poster)));var o=T(a,2),l=b(o),d=b(l),s=T(l,2),u=b(s),f=b(u);wr(f);var _=T(f),g=T(u,2),m=b(g),v=T(g,2),p=b(v),y=T(v,2);{var w=x=>{var C=Ps(),j=b(C);M(()=>K(j,`${t.title.length??""} min`)),k(x,C)};O(y,x=>{t.title.length&&x(w)})}var E=T(o,2);E.__click=[js];var P=b(E);Cs(P),M(()=>{le(r,"hoverable",n()),K(d,t.title.title),K(_,` ${t.title.imdb_score??""}`),K(m,t.title.year),K(p,t.title.type),ne(E,"href",`${sr}/${t.title.type??""}/${t.title.slug??""}`)}),ie("error",a,({target:x})=>x.src=cr),k(e,r),ae()}fe(["click"]);var Ls=A('<em class="empty svelte-1olb8n0">No results found</em>'),Ms=A('<div class="results svelte-1olb8n0" data-testid="search-results"></div>'),Ds=A('<div class="selected svelte-1olb8n0"><!></div>'),Os=A('<div class="search svelte-1olb8n0"><!> <!> <!></div>');function Rs(e,t){re(t,!0);let n=D(t,"onselect",3,()=>null),i=D(t,"query",15),r=W(J([])),a=W(null),o=W(!1);an(()=>{i()&&l(i())});async function l(v){N(o,!0);try{N(r,J(await As(v)))}finally{N(o,!1)}}function d(v){i(v.title),N(a,J(v)),n()(v)}var s=Os(),u=b(s);ti(u,{oninput:()=>N(a,null),name:"search",label:"Search...",get value(){return i()},set value(v){i(v)}});var f=T(u,2);{var _=v=>{var p=Ms();it(p,21,()=>c(r),y=>y.sid,(y,w)=>{wi(y,{get title(){return c(w)},onclick:()=>d(c(w))})},y=>{var w=Ze(),E=Q(w);{var P=x=>{var C=Ls();k(x,C)};O(E,x=>{c(o)||x(P)})}k(y,w)}),k(v,p)};O(f,v=>{i()&&!c(a)&&v(_)})}var g=T(f,2);{var m=v=>{var p=Ds(),y=b(p);wi(y,{get title(){return c(a)},hoverable:!1}),k(v,p)};O(g,v=>{c(a)&&v(m)})}k(e,s),ae()}function Hs(e,t,n,i,r,a){if(!c(t)||!c(n))return;const o=c(n).type==="movie"?"movie":"show",l=sr+`/${o}/${c(n).slug}`,d={sid:c(n).sid,title:c(t),sentence:c(i),playpilot_url:l,key:Nr(c(n).sid),title_details:c(n),manual:!0};r.onsave(d),a()()}var Fs=A('<div class="error svelte-1i8p6op"><!></div>'),qs=A('<label for="text" class="svelte-1i8p6op">Paired title</label> <!>',1),Bs=A('<section class="layout svelte-1i8p6op"><div class="header svelte-1i8p6op"><!> <div class="heading svelte-1i8p6op">Add Playlink manually</div></div> <p class="svelte-1i8p6op">Highlight the text section in your post that you want to turn into a Playlink.</p> <label for="text" class="svelte-1i8p6op">Selected text</label> <!> <!> <!> <button class="save svelte-1i8p6op">Add playlink</button></section>');function Vs(e,t){re(t,!0);let n=D(t,"htmlString",3,""),i=D(t,"onclose",3,()=>null),r=W(""),a=W(""),o=W(null),l=W(""),d=W("");ut(s);function s(){const j=window.getSelection();if(!(j!=null&&j.anchorNode)||j.anchorNode.parentElement&&!_n().contains(j.anchorNode.parentElement))return;const S=j.toString().trim();if(!S)return;N(l,""),N(r,J(S));const I=j.getRangeAt(0).cloneContents();if(Array.from(I.childNodes).filter(z=>{var U;return(U=z.textContent)==null?void 0:U.trim()}).length>1){N(l,"Selection contains multiple items. Selection may not contain a mix of styled and non styled text. Please select the text more directly.");return}N(d,J(c(r))),N(a,J(u(j,S)));const R=j.getRangeAt(0).commonAncestorContainer.textContent,Y=Jn(n());(!R||!Y.includes(R))&&N(l,"Selection was not inside of given content")}function u(j,S){const I=j.getRangeAt(0);let H=I.startContainer;for(;(H.textContent||"").length<=S.length*3&&H.parentNode;)H=H.parentNode;if(!H||!H.textContent)return"";const R=H.textContent,Y=f(H,I.startContainer,I.startOffset),z=f(H,I.endContainer,I.endOffset),U=R.slice(0,Y).lastIndexOf("."),F=R.slice(z).match(/[.!?]/),$=F?z+F.index:R.length,te=U===-1?0:U+1,ce=$;return R.slice(te,ce+1).trim()}function f(j,S,I){let H=0;const R=j,Y=z=>{var U;if(z===S)return H+=I,!0;z.nodeType===Node.TEXT_NODE&&(H+=((U=z.textContent)==null?void 0:U.length)||0);for(let F=z.firstChild;F;F=F.nextSibling)if(Y(F))return!0;return!1};return Y(R),H}function _(j){var S,I;N(o,J(j)),(I=(S=window.getSelection())==null?void 0:S.removeAllRanges)==null||I.call(S)}var g=Bs();ie("mouseup",me,s);var m=b(g),v=b(m);Gn(v,{get onclick(){return i()},size:"24px",children:(j,S)=>{Ts(j)},$$slots:{default:!0}});var p=T(v,2);un(p,(j,S)=>Pe==null?void 0:Pe(j,S),()=>2);var y=T(m,6);ti(y,{get value(){return c(r)},label:"Select text on the page",name:"selected-text",readonly:!0});var w=T(y,2);{var E=j=>{var S=Fs(),I=b(S);Dt(I,{children:(H,R)=>{var Y=Oe();M(()=>K(Y,c(l))),k(H,Y)},$$slots:{default:!0}}),k(j,S)};O(w,j=>{c(l)&&j(E)})}var P=T(w,2);{var x=j=>{var S=qs(),I=T(Q(S),2);rr(I,()=>c(a)+c(r),H=>{Rs(H,{onselect:_,get query(){return c(d)},set query(R){N(d,J(R))}})}),k(j,S)};O(P,j=>{c(l)||j(x)})}var C=T(P,2);C.__click=[Hs,r,o,a,t,i],M(()=>C.disabled=!c(r)||!c(o)),k(e,g),ae()}fe(["click"]);var Us=Ee('<svg width="24px" height="24px" viewBox="0 0 64 64" stroke-width="3" stroke="currentColor" fill="none"><circle cx="34.52" cy="11.43" r="5.82"></circle><circle cx="53.63" cy="31.6" r="5.82"></circle><circle cx="34.52" cy="50.57" r="5.82"></circle><circle cx="15.16" cy="42.03" r="5.82"></circle><circle cx="15.16" cy="19.27" r="5.82"></circle><circle cx="34.51" cy="29.27" r="4.7"></circle><line x1="20.17" y1="16.3" x2="28.9" y2="12.93"></line><line x1="38.6" y1="15.59" x2="49.48" y2="27.52"></line><line x1="50.07" y1="36.2" x2="38.67" y2="46.49"></line><line x1="18.36" y1="24.13" x2="30.91" y2="46.01"></line><line x1="20.31" y1="44.74" x2="28.7" y2="48.63"></line><line x1="17.34" y1="36.63" x2="31.37" y2="16.32"></line><line x1="20.52" y1="21.55" x2="30.34" y2="27.1"></line><line x1="39.22" y1="29.8" x2="47.81" y2="30.45"></line><line x1="34.51" y1="33.98" x2="34.52" y2="44.74"></line></svg>');function Ws(e){var t=Us();k(e,t)}var Ks=A('<strong class="svelte-1kpafo0">AI processing is disabled.</strong> Enable AI from the <a href="https://partner.playpilot.net" class="svelte-1kpafo0">Partner Portal</a>',1),zs=A('<span class="svelte-1kpafo0">.</span>'),Ys=A(`<strong class="svelte-1kpafo0">AI links are currently processing.</strong> This can take several minutes. We'll insert all found injections once ready. <div class="message svelte-1kpafo0"> <span class="ellipses svelte-1kpafo0"></span></div> <div class="loading-bar svelte-1kpafo0"><div class="loading-bar-progress svelte-1kpafo0"><div class="loading-bar-fill svelte-1kpafo0" data-testid="loading-bar"></div></div> <div class="loading-bar-label svelte-1kpafo0"> </div></div>`,1),$s=(e,t)=>N(t,!0),Zs=A('<p class="svelte-1kpafo0"><strong class="svelte-1kpafo0">AI has finished processing.</strong> <br class="svelte-1kpafo0"> <!></p> <button class="dismiss svelte-1kpafo0">Dismiss</button>',1),Gs=A('<div class="animator svelte-1kpafo0" data-test-id="animator"></div>'),Js=A('<div class="ai-indicator svelte-1kpafo0" data-testid="ai-indicator"><div class="content svelte-1kpafo0"><div class="icon svelte-1kpafo0"><!></div> <div class="svelte-1kpafo0"><!></div></div> <div class="border svelte-1kpafo0"><!></div></div>');function Xs(e,t){const n=D(t,"aiRunning",3,!1),i=D(t,"automationEnabled",3,!1),r=D(t,"message",3,""),a=D(t,"percentage",3,0),o=D(t,"aiInjectionsCount",3,0),l=o();let d=W(!1);var s=Ze(),u=Q(s);{var f=_=>{var g=Js(),m=b(g),v=b(m),p=b(v);Ws(p);var y=T(v,2),w=b(y);{var E=S=>{var I=Ks();k(S,I)},P=S=>{var I=Ze(),H=Q(I);{var R=z=>{var U=Ys(),F=T(Q(U),2),$=b(F),te=T($);it(te,20,()=>({length:3}),pt,(G,oe)=>{var L=zs();k(G,L)});var ce=T(F,2),ve=b(ce),ue=b(ve);const _e=B(()=>`${Math.max(a(),3)??""}%`);M(()=>dn(ue,"width",c(_e)));var We=T(ve,2),Z=b(We);M(()=>{K($,`${r()??""} `),K(Z,`${a()??""}%`)}),k(z,U)},Y=z=>{var U=Zs(),F=Q(U),$=T(b(F),4);{var te=ue=>{var _e=Oe("No new injections where found.");k(ue,_e)},ce=ue=>{var _e=Oe();M(()=>K(_e,`${o()??""} Injections where found and added to the page.`)),k(ue,_e)};O($,ue=>{l===o()?ue(te):ue(ce,!1)})}var ve=T(F,2);ve.__click=[$s,d],k(z,U)};O(H,z=>{n()?z(R):z(Y,!1)},!0)}k(S,I)};O(w,S=>{i()?S(P,!1):S(E)})}var x=T(m,2),C=b(x);{var j=S=>{var I=Gs();k(S,I)};O(C,S=>{n()&&S(j)})}M(()=>le(g,"running",n())),k(_,g)};O(u,_=>{c(d)||_(f)})}k(e,s)}fe(["click"]);async function Qs(e,t,n,i,r,a,o){try{N(t,!0),N(n,!1),i(await Rl(i(),r())),N(a,J(c(o)))}catch{N(n,!0)}finally{N(t,!1)}}var ec=A('<div class="handles svelte-496y63"><div class="handle svelte-496y63"><!></div> <div class="handle svelte-496y63"><!></div></div>'),tc=A('<div class="loading svelte-496y63">Loading...</div>'),nc=A('<div class="bubble svelte-496y63"> </div> <!>',1),ic=A(`<strong>Playlinks are currently not published.</strong> Visitors to this page will not see any of the injected links.
|
|
9
|
+
Publish playlinks from the <a href="https://partner.playpilot.net">Partner Portal</a>`,1),rc=A('<div class="alert svelte-496y63"><!></div>'),ac=A('<div class="error svelte-496y63"><!></div>'),oc=A('<div class="empty svelte-496y63">No links available. Add links manually by clicking the + button and select text to add a link to.</div>'),lc=A('<button class="save svelte-496y63"> </button>'),sc=A('<div class="items svelte-496y63"></div> <!>',1),cc=A("<!> <!> <!> <!>",1),uc=A('<div class="panel playpilot-styled-scrollbar svelte-496y63"><!></div>'),dc=A('<section class="editor playpilot-styled-scrollbar svelte-496y63"><!> <header class="header svelte-496y63"><div class="heading svelte-496y63">Playlinks</div> <!></header> <!> <!></section>');function fc(e,t){re(t,!0);let n=D(t,"linkInjections",15),i=D(t,"htmlString",3,""),r=D(t,"loading",3,!1),a=D(t,"injectionsEnabled",3,!1),o=D(t,"aiStatus",19,()=>({}));const l="editor-position",d="editor-height";let s=W(null),u=J(JSON.parse(localStorage.getItem(l)||'{ "x": 0, "y": 0 }')),f=J(parseInt(localStorage.getItem(d)||"0")),_=W(!1),g=W(!1),m=W(!1),v=W(0),p=W("");const y=B(()=>JSON.stringify(n())),w=B(()=>c(p)&&c(p)!==c(y)),E=B(()=>n().filter(L=>L.title_details&&!L.removed&&!L.duplicate&&(L.manual||!L.manual&&!L.failed))),P=B(()=>S(c(E))),x=B(()=>Zt(o().automationEnabled,!1)),C=B(()=>Zt(o().aiRunning,!1)),j=B(()=>!r()&&Ve(()=>o().aiRunning));an(()=>{r()||Ve(()=>{requestAnimationFrame(()=>N(p,J(c(y)))),z()})});function S(L){return L.sort((q,se)=>q.failed!==se.failed?q.failed?1:-1:q.title_details.title.localeCompare(se.title_details.title))}function I(L,q){localStorage.setItem(L,q)}function H(L){const q=n().findIndex(se=>se.key===L);n(n()[q].manual=!0,!0),n(n()[q].removed=!0,!0),n([...n()])}function R(L){if(!c(s))return;const q=L.offsetTop,se=q+L.offsetHeight,Te=c(s).scrollTop,Ae=Te+c(s).clientHeight;q>=Te&&se<=Ae||c(s).scrollTo({top:q-c(s).clientHeight/2,behavior:"smooth"})}function Y(L){const q=L.target;N(v,J(q.scrollTop))}function z(){const L={total:n().length,failed_automatic:n().filter(q=>q.failed&&!q.manual).length,failed_manual:n().filter(q=>q.failed&&q.manual).length,final_injected:c(E).length};Ce(xe.TotalInjectionsCount,null,L)}var U=dc(),F=b(U);{var $=L=>{var q=ec(),se=b(q),Te=b(se);Ss(Te,{get element(){return c(s)},get height(){return f},onchange:de=>I(d,JSON.stringify(de))});var Ae=T(se,2),Ke=b(Ae);bs(Ke,{get element(){return c(s)},get position(){return u},limit:{x:16,y:16},onchange:de=>I(l,JSON.stringify(de))}),k(L,q)};O(F,L=>{c(s)&&!r()&&L($)})}var te=T(F,2),ce=b(te);un(ce,L=>Pe==null?void 0:Pe(L));var ve=T(ce,2);{var ue=L=>{var q=tc();k(L,q)},_e=L=>{var q=Ze(),se=Q(q);{var Te=Ae=>{var Ke=nc(),de=Q(Ke),Ge=b(de),Je=T(de,2);Gn(Je,{onclick:()=>N(_,!0),size:"24px","aria-label":"Add manual injection",children:(mn,he)=>{var Ne=Oe("+");k(mn,Ne)},$$slots:{default:!0}}),M(()=>{ne(de,"aria-label",`${c(E).length??""} found playlinks`),K(Ge,c(E).length)}),k(Ae,Ke)};O(se,Ae=>{c(C)||Ae(Te)},!0)}k(L,q)};O(ve,L=>{r()?L(ue):L(_e,!1)})}var We=T(te,2);{var Z=L=>{var q=cc(),se=Q(q);{var Te=he=>{var Ne=rc(),dt=b(Ne);Dt(dt,{type:"warning",children:(Et,pn)=>{var we=ic();k(Et,we)},$$slots:{default:!0}}),k(he,Ne)};O(se,he=>{a()||he(Te)})}var Ae=T(se,2);{var Ke=he=>{Xs(he,_o(o,{get aiInjectionsCount(){return Er(n()).aiInjections.length}}))};O(Ae,he=>{(c(j)||!c(x))&&he(Ke)})}var de=T(Ae,2);{var Ge=he=>{var Ne=ac(),dt=b(Ne);Dt(dt,{children:(Et,pn)=>{var we=Oe("Something went wrong, check your links below.");k(Et,we)},$$slots:{default:!0}}),Ie(7,Ne,()=>Lt,()=>({duration:150})),k(he,Ne)};O(de,he=>{c(m)&&he(Ge)})}var Je=T(de,2);{var mn=he=>{var Ne=sc(),dt=Q(Ne);it(dt,21,()=>c(P),we=>we.key,(we,He)=>{const Wt=B(()=>n().findIndex(yn=>yn.key===c(He).key));ws(we,{onremove:()=>H(c(He).key),onhighlight:R,get linkInjection(){return n()[c(Wt)]},set linkInjection(yn){n(n()[c(Wt)]=yn,!0)}})},we=>{var He=oc();k(we,He)});var Et=T(dt,2);{var pn=we=>{var He=lc();He.__click=[Qs,g,m,n,i,p,y];var Wt=b(He);M(()=>{He.disabled=c(g),K(Wt,c(g)?"Saving...":"Save links")}),Ie(1,He,()=>Zn,()=>({duration:100})),k(we,He)};O(Et,we=>{c(w)&&n().length&&we(pn)})}k(he,Ne)};O(Je,he=>{c(C)||he(mn)})}k(L,q)};O(We,L=>{r()||L(Z)})}var G=T(We,2);{var oe=L=>{var q=uc(),se=b(q);Vs(se,{get htmlString(){return i()},onclose:()=>N(_,!1),onsave:Te=>n().push(Te)}),M(()=>dn(q,"top",`${c(v)??""}px`)),Ie(3,q,()=>vn,()=>({x:Math.min(window.innerWidth,320),duration:200,opacity:1})),k(L,q)};O(G,L=>{c(_)&&L(oe)})}Ut(U,L=>N(s,L),()=>c(s)),M(()=>{le(U,"panel-open",c(_)),le(U,"loading",r())}),ie("scroll",U,Y),k(e,U),ae()}fe(["click"]);var vc=Ee('<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 _c(e){var t=vc();k(e,t)}var hc=A('<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 gc(e,t){var n=hc(),i=b(n);i.__click=function(...l){var d;(d=t.onclick)==null||d.apply(this,l)};var r=b(i);_c(r);var a=T(i,2);a.__click=function(...l){var d;(d=t.onclose)==null||d.apply(this,l)};var o=b(a);yr(o),k(e,n)}fe(["click"]);var mc=A('<div class="playpilot-link-injections svelte-1morl7q"><!> <!></div>');function pc(e,t){re(t,!0);const n=_n(),i=br(n),r=i.map(S=>S.outerHTML).join("");let a=W(null),o=W(J(gr())),l=W(!!Yn()),d=W(!1),s=W(!0),u=W(J([])),f=W(void 0);const _=B(()=>c(a)||{}),g=B(()=>Zt(c(_).ai_injections,()=>[],!0)),m=B(()=>Zt(c(_).link_injections,()=>[],!0));an(()=>{c(o)&&!c(s)&&p()}),ut(()=>{if(!Fl())return(async()=>(await v(),Ce(xe.ArticlePageView)))(),()=>ei()});async function v(){N(s,!0),c(o)&&N(d,J(await hr()));const S=Pr();try{const I=await Hl();if(!c(o)&&(I!=null&&I.exclude_urls_pattern)&&S.match(I.exclude_urls_pattern))return}catch(I){Ce(xe.FetchingConfigFailed),console.error("TPI Config failed to fetch",I);return}if(N(a,J(await mi(S,r,{maxTries:1}))),N(s,!1),!!c(a)){if(po({organizationSid:c(a).organization_sid,domainSid:c(a).domain_sid}),!c(a).ai_running||!c(a).automation_enabled){y({aiInjections:c(g),manualInjections:c(m)});return}c(o)&&(N(a,J(await mi(S,r,{requireCompletedResult:!0,onpoll:I=>N(a,J(I))}))),y({aiInjections:c(g),manualInjections:c(m)}))}}function p(){y(Er(c(u)))}function y(S={aiInjections:c(g),manualInjections:c(m)}){const I=xl(i,S);JSON.stringify(I)!==JSON.stringify(c(u))&&N(u,J(I));const H=I.filter(R=>!R.failed);H.length&&(c(o)||Ce(xe.ArticleInjected,null,{manual:H.filter(R=>R.manual).length,ai:H.filter(R=>!R.manual).length}))}function w(){N(o,!0),ko(),v()}var E=mc(),P=b(E);{var x=S=>{gc(S,{onclick:w,onclose:()=>{N(l,!1),wo()}})};O(P,S=>{c(l)&&!c(o)&&S(x)})}var C=T(P,2);{var j=S=>{var I=B(()=>{var R;return(R=c(a))==null?void 0:R.injections_enabled}),H=B(()=>{var R,Y,z,U,F;return{automationEnabled:(R=c(a))==null?void 0:R.automation_enabled,aiRunning:((Y=c(a))==null?void 0:Y.ai_running)&&((z=c(a))==null?void 0:z.automation_enabled),message:(U=c(a))==null?void 0:U.ai_progress_message,percentage:(F=c(a))==null?void 0:F.ai_progress_percentage}});Ut(fc(S,{htmlString:r,get loading(){return c(s)},get injectionsEnabled(){return c(I)},get aiStatus(){return c(H)},get linkInjections(){return c(u)},set linkInjections(R){N(u,J(R))}}),R=>N(f,J(R)),()=>c(f))};O(C,S=>{c(o)&&c(d)&&S(j)})}k(e,E),ae()}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(pc,{target:t})},destroy(){if(!this.app)return;this.app=null;const e=document.getElementById("playpilot-link-injection");e&&e.remove(),ei()}};
|
|
10
10
|
|
|
11
11
|
})();
|