1var lt=Object.defineProperty;var G=t=>{throw TypeError(t)};var dt=(t,e,i)=>e in t?lt(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;var x=(t,e,i)=>dt(t,typeof e!="symbol"?e+"":e,i),I=(t,e,i)=>e.has(t)||G("Cannot "+i);var T=(t,e,i)=>(I(t,e,"read from private field"),i?i.call(t):e.get(t)),A=(t,e,i)=>e.has(t)?G("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,i),M=(t,e,i,n)=>(I(t,e,"write to private field"),n?n.call(t,i):e.set(t,i),i),y=(t,e,i)=>(I(t,e,"access private method"),i);import{R as ut}from"./index-FJfYJKRP.js";const ct=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","waitingforkey","resize","enterpictureinpicture","leavepictureinpicture","webkitbeginfullscreen","webkitendfullscreen","webkitpresentationmodechanged"];var V;const B=(V=globalThis.document)==null?void 0:V.createElement("template");B&&(B.innerHTML=` 2 <style> 3 :host { 4 display: inline-block; 5 line-height: 0; 6 } 7 8 video, 9 audio { 10 max-width: 100%; 11 max-height: 100%; 12 min-width: 100%; 13 min-height: 100%; 14 } 15 </style> 16 <slot></slot> 17 `);const tt=(t,{tag:e,is:i})=>{var v,c,b,H,et,P,w,k,L,p,E,l,j,it,st,ot,nt,rt;const n=(v=globalThis.document)==null?void 0:v.createElement(e,{is:i}),h=n?J(n):[];return c=class extends t{constructor(){super();A(this,l);A(this,P);A(this,w);A(this,k,!1);A(this,L,!1);A(this,p);A(this,E);this.shadowRoot||(this.attachShadow({mode:"open"}),this.shadowRoot.append(this.constructor.template.content.cloneNode(!0))),this.load!==c.prototype.load&&(this.loadComplete=new K)}static get observedAttributes(){var o,m;return y(o=c,H,et).call(o),[...((m=n==null?void 0:n.constructor)==null?void 0:m.observedAttributes)??[],"autopictureinpicture","disablepictureinpicture","disableremoteplayback","autoplay","controls","controlslist","crossorigin","loop","muted","playsinline","poster","preload","src"]}get loadComplete(){return T(this,w)}set loadComplete(s){M(this,L,!1),M(this,w,s),s==null||s.then(()=>{M(this,L,!0)})}get isLoaded(){return T(this,L)}get nativeEl(){return T(this,p)??this.shadowRoot.querySelector(e)??this.querySelector(e)}set nativeEl(s){M(this,p,s)}get defaultMuted(){return this.hasAttribute("muted")}set defaultMuted(s){this.toggleAttribute("muted",!!s)}get src(){return this.getAttribute("src")}set src(s){this.setAttribute("src",`${s}`)}get preload(){var s;return this.getAttribute("preload")??((s=this.nativeEl)==null?void 0:s.preload)}set preload(s){this.setAttribute("preload",`${s}`)}attributeChangedCallback(s,o,m){y(this,l,j).call(this),s==="src"&&this.load!==c.prototype.load&&y(this,l,nt).call(this),y(this,l,rt).call(this,s,o,m)}connectedCallback(){y(this,l,j).call(this)}},b=new WeakMap,H=new WeakSet,et=function(){if(T(this,b))return;M(this,b,!0);const s=new Set(this.observedAttributes);s.delete("muted");for(let o of h){if(o in this.prototype)continue;if(typeof n[o]=="function")this.prototype[o]=function(...g){y(this,l,j).call(this);const a=()=>this.call?this.call(o,...g):this.nativeEl[o].apply(this.nativeEl,g);return this.loadComplete&&!this.isLoaded?this.loadComplete.then(a):a()};else{let g={get(){var d,C;y(this,l,j).call(this);let a=o.toLowerCase();if(s.has(a)){const R=this.getAttribute(a);return R===null?!1:R===""?!0:R}return((d=this.get)==null?void 0:d.call(this,o))??((C=this.nativeEl)==null?void 0:C[o])??T(this,E)[o]}};o!==o.toUpperCase()&&(g.set=async function(a){y(this,l,j).call(this);let d=o.toLowerCase();if(s.has(d)){a===!0||a===!1||a==null?this.toggleAttribute(d,!!a):this.setAttribute(d,a);return}if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,this.set){this.set(o,a);return}this.nativeEl[o]=a}),Object.defineProperty(this.prototype,o,g)}}},P=new WeakMap,w=new WeakMap,k=new WeakMap,L=new WeakMap,p=new WeakMap,E=new WeakMap,l=new WeakSet,j=async function(){var m,g;if(T(this,P))return;M(this,P,!0),y(this,l,st).call(this),y(this,l,ot).call(this);for(let a of h)y(this,l,it).call(this,a);const s=new Map,o=this.shadowRoot.querySelector("slot:not([name])");o==null||o.addEventListener("slotchange",()=>{const a=new Map(s);o.assignedElements().filter(d=>
17["track","source"].includes(d.localName)).forEach(async d=>{var R,z;a.delete(d);let C=s.get(d);C||(C=d.cloneNode(),s.set(d,C)),this.loadComplete&&!this.isLoaded&&await this.loadComplete,(z=(R=this.nativeEl).append)==null||z.call(R,C)}),a.forEach(d=>d.remove())});for(let a of this.constructor.Events)(g=(m=this.shadowRoot).addEventListener)==null||g.call(m,a,d=>{d.target===this.nativeEl&&this.dispatchEvent(new CustomEvent(d.type,{detail:d.detail}))},!0)},it=function(s){if(Object.prototype.hasOwnProperty.call(this,s)){const o=this[s];delete this[s],this[s]=o}},st=function(){const s=document.createElement(e,{is:i});s.muted=this.hasAttribute("muted");for(let{name:o,value:m}of this.attributes)s.setAttribute(o,m);M(this,E,{});for(let o of J(s))T(this,E)[o]=s[o];s.removeAttribute("src"),s.load()},ot=async function(){if(this.loadComplete&&!this.isLoaded&&await this.loadComplete,!this.nativeEl){const s=document.createElement(e,{is:i});s.part=e,this.shadowRoot.append(s)}this.nativeEl.muted=this.hasAttribute("muted")},nt=async function(){var s;T(this,k)&&(this.loadComplete=new K),M(this,k,!0),await Promise.resolve(),await this.load(),(s=this.loadComplete)==null||s.resolve(),await this.loadComplete},rt=async function(s,o,m){var g,a,d,C;this.loadComplete&&!this.isLoaded&&await this.loadComplete,!["id","class",...this.constructor.skipAttributes].includes(s)&&(m===null?(a=(g=this.nativeEl).removeAttribute)==null||a.call(g,s):(C=(d=this.nativeEl).setAttribute)==null||C.call(d,s,m))},A(c,H),x(c,"Events",ct),x(c,"template",B),x(c,"skipAttributes",[]),A(c,b),c};function J(t){let e=[];for(let i=Object.getPrototypeOf(t);i&&i!==HTMLElement.prototype;i=Object.getPrototypeOf(i))e.push(...Object.getOwnPropertyNames(i));return e}class K extends Promise{constructor(e=()=>{}){let i,n;super((h,v)=>{e(h,v),i=h,n=v}),this.resolve=i,this.reject=n}}const ht=globalThis.document?tt(HTMLElement,{tag:"video"}):class{};globalThis.document&&tt(HTMLElement,{tag:"audio"});var Q,X;const W=(Q=globalThis.document)==null?void 0:Q.createElement("template");W&&(W.innerHTML=` 18 <div class="wistia_embed"></div> 19 `);const D=(X=globalThis.document)==null?void 0:X.createElement("template");D&&(D.innerHTML=` 20 <style> 21 :host { 22 display: inline-block; 23 min-width: 300px; 24 min-height: 150px; 25 position: relative; 26 } 27 ::slotted(.wistia_embed) { 28 position: absolute; 29 width: 100%; 30 height: 100%; 31 } 32 </style> 33 <slot></slot> 34 `);class N extends ht{get nativeEl(){var e;return((e=this.api)==null?void 0:e.elem())??this.querySelector("video")}async load(){var e;if((e=this.querySelector(".wistia_embed"))==null||e.remove(),!this.src)return;await new Promise(b=>setTimeout(b,50));const i=/(?:wistia\.com|wi\.st)\/(?:medias|embed)\/(.*)$/i,n=this.src.match(i)[1],h={autoPlay:this.autoplay,preload:this.preload??"metadata",playsinline:this.playsInline,endVideoBehavior:this.loop&&"loop",chromeless:!this.controls,playButton:this.controls,muted:this.defaultMuted};this.append(W.content.cloneNode(!0));const v=this.querySelector(".wistia_embed");v.id||(v.id=mt(n)),v.classList.add(`wistia_async_${n}`),await pt("https://fast.wistia.com/assets/external/E-v1.js","Wistia"),this.api=await new Promise(b=>{globalThis._wq.push({id:v.id,onReady:b,options:h})})}async attributeChangedCallback(e,i,n){if(e==="controls"){switch(await this.loadComplete,e){case"controls":this.api.bigPlayButtonEnabled(this.controls),this.controls?this.api.releaseChromeless():this.api.requestChromeless();break}return}super.attributeChangedCallback(e,i,n)}get duration(){var e;return(e=this.api)==null?void 0:e.duration()}async play(){return await this.loadComplete,this.api.play(),new Promise(e=>this.addEventListener("playing",e))}}x(N,"template",D),x(N,"skipAttributes",["src"]);const $={};async function pt(t,e){return e?$[t]?$[t]:self[e]?self[e]:$[t]=new Promise((i,n)=>{const h=document.createElement("script");h.defer=!0,h.src=t,h.onload=()=>i(self[e]),h.onerror=n,document.head.append(h)}):import(t)}let ft=0;function mt(t){const e=++ft;return`${t}${e}`}globalThis.customElements&&!globalThis.customElements.get("wistia-video")&&globalThis.customElements.define("wistia-video",N);var vt=N,yt=new Set(["style","children","ref","key","suppressContentEditableWarning","suppressHydrationWarning","dangerouslySetInnerHTML"]),bt={className:"class",htmlFor:"for"};function at(t){return t.toLowerCase()}function Y(t){if(typeof t=="boolean")return t?"":void 0;if(typeof t!="function"&&!(typeof t=="object"&&t!==null))return t}function wt({react:t,tagName:e,elementClass:i,events:n,displayName:h,defaultProps:v,toAttributeName:c=at,toAttributeValue:b=Y}){const H=Number.parseInt(t.version)>=19,F=t.forwardRef((P,w)=>{var k,L;const p=t.useRef(null),E=t.useRef(new Map),l={},U={},_={},q={};for(const[r,u]of Object.entries(P)){if(yt.has(r)){_[r]=u;continue}const f=c(bt[r]??r);if(i.prototype&&r in i.prototype&&!(r in(((k=globalThis.HTMLElement)==null?void 0:k.prototype)??{}))&&!((L=i.observedAttributes)!=null&&L.some(O=>O===f))){q[r]=u;continue}if(r.startsWith("on")){l[r]=u;continue}const S=b(u);if(f&&S!=null&&(U[f]=String(S),H||(_[f]=S)),f&&H){const O=Y(u);S!==O?_[f]=S:_[f]=u}}if(typeof window<"u"){for(const r in l){const u=l[r],f=r.endsWith("Capture"),S=((n==null?void 0:n[r])??r.slice(2).toLowerCase()).slice(0,f?-7:void 0);t.useLayoutEffect(()=>{const O=p==null?void 0:p.current;if(!(!O||typeof u!="function"))return O.addEventListener(S,u,f),()=>{O.removeEventListener(S,u,f)}},[p==null?void 0:p.current,u])}t.useLayoutEffect(()=>{if(p.current===null)return;const r=new Map;for(const u in q)Z(p.current,u,q[u]),E.current.delete(u),r.set(u,q[u]);for(const[u,f]of E.current)Z(p.current,u,void 0);E.current=r})}if(typeof window>"u"&&(i!=null&&i.getTemplateHTML)&&(i!=null&&i.shadowRootOptions)){const{mode:r,delegatesFocus:u}=i.shadowRootOptions,f=t.createElement("template",{shadowrootmode:r,shadowrootdelegatesfocus:u,dangerouslySetInnerHTML:{__html:i.getTemplateHTML(U,P)},key:"ce-la-react-ssr-template-shadow-root"});_.children=[f,_.children]}return t.createElement(e,{...v,..._,ref:t.useCallback(r=>{p.current=r,typeof w=="function"?w(r):w!==null&&(w.current=r)},[w])},_.children)});return F.displayName=h??i.name,F}
34function Z(t,e,i){var n;t[e]=i,i==null&&e in(((n=globalThis.HTMLElement)==null?void 0:n.prototype)??{})&&t.removeAttribute(e)}var Ct=wt({react:ut,tagName:"wistia-video",elementClass:vt,toAttributeName(t){return t==="muted"?"":t==="defaultMuted"?"muted":at(t)}});/*! Bundled license information: 35 36ce-la-react/dist/ce-la-react.js: 37 (** 38 * @license 39 * Copyright 2018 Google LLC 40 * SPDX-License-Identifier: BSD-3-Clause 41 * 42 * Modified version of `@lit/react` for vanilla custom elements with support for SSR. 43 *) 44*/export{Ct as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.