"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var b=i=>i===null,u=i=>i===void 0,g=i=>b(i)||u(i),r=i=>!g(i),d=i=>typeof i=="string",f=i=>typeof i=="number",O=i=>r(i)&&typeof i=="function",m=i=>r(i)&&typeof i=="boolean",l=i=>f(i)||d(i)||m(i),v=(i,t,e)=>{var n,s;let a=e;return typeof window=="undefined"||(r((n=window.wistiaOptions)==null?void 0:n._all)&&r(window.wistiaOptions._all[t])&&l(window.wistiaOptions._all[t])&&(a=window.wistiaOptions._all[t]),r((s=window.wistiaOptions)==null?void 0:s[i])&&r(window.wistiaOptions[i])&&l(window.wistiaOptions[i][t])&&(a=window.wistiaOptions[i][t])),a},c=i=>i.replace(/[A-Z]+(?![a-z])|[A-Z]/g,(t,e)=>(e!==0?"-":"")+t.toLowerCase()),$=async i=>{const t=new Image;return t.src=i,await t.decode(),t},p=(i,t)=>`https://${t}/embed/medias/${i}/swatch`,y=async(i,t="fast.wistia.com")=>{const e=await $(p(i,t)),{naturalHeight:a,naturalWidth:n}=e;return n/a},S=({mediaId:i,embedHost:t="fast.wistia.com",aspect:e=1.7,shouldLoadSwatch:a=!0,roundedPlayer:n=0})=>{const s={background:a?`center / contain no-repeat url(${p(i,t)})`:void 0,borderRadius:`${n}px`,display:"block",filter:"blur(5px)",paddingTop:`${100/e}%`};return`
    wistia-player[media-id='${i}']:not(:defined) {
      ${Object.entries(s).map(([o,w])=>`${c(o)}: ${w};`).join(`\r
`)}
    }

    wistia-player[media-id='${i}']:state(--initializing) {
      ${Object.entries(s).map(([o,w])=>`${c(o)}: ${w};`).join(`\r
`)}
    }
  `};/*! Bundled license information:

@wistia/type-guards/dist/index.mjs:
  (*
   * @license @wistia/type-guards v0.9.1
   *
   * Copyright (c) 2023-2025, Wistia, Inc. and its affiliates.
   *
   * This source code is unlicensed, all rights reserved.
   *)
*/exports.camelCaseToKebabCase=c;exports.getMergedEmbedOption=v;exports.getSwatchAspectRatio=y;exports.isFunction=O;exports.isString=d;exports.isValidEmbedOption=l;exports.wistiaPlayerStyleBlock=S;
