1"use strict";(self.webpackChunkeightshift_ui_kit=self.webpackChunkeightshift_ui_kit||[]).push([[3685,27588],{3685(e,t,i){i.d(t,{getVimeoVideoInfo:()=>n,resolveVimeoVideoId:()=>o});let s=/(?:https:\/\/)?(?:player\.)?vimeo(?:\.com)?\/(?:video\/)?(\d+)(?:(?:\?hash=|\?h=|\/)(.*))?/,r=new Map,a=new Map;function o(e){let t=e.match(s);return{videoId:t?.[1],hash:t?.[2]}}async function n(e,t,i){if(r.has(e))return r.get(e);if(a.has(e))return a.get(e);let s=`https://vimeo.com/api/oembed.json?url=https://player.vimeo.com/video/${e}`;i&&(s=s.concat(`?h=${i}`));let o=window.fetch(s,{mode:"cors",signal:t.signal}).then(e=>e.json()).then(t=>{let i={title:t?.title??"",duration:t?.duration??0,poster:function(e){var t;let i,s,r=e?.thumbnail_url??"",a=r.match(/vimeocdn\.com\/video\/([^_/?#]+)_/)?.[1];if(!a)return r;let o=(i=(t=e).width||t.thumbnail_width,s=t.height||t.thumbnail_height,i&&s?i>s?{width:1920,height:Math.round(1920*s/i)}:{width:Math.round(1920*i/s),height:1920}:null);return o?`https://i.vimeocdn.com/video/${a}_${o.width}x${o.height}.webp`:r}(t),pro:"basic"!==t.account_type};return r.set(e,i),i}).finally(()=>a.delete(e));return a.set(e,o),o}},61657(e,t,i){i.d(t,{h:()=>a});var s=i(45026),r=i(94234),a=class{#e;src=(0,s.O)("");referrerPolicy=null;get iframe(){return this.#e}constructor(e){this.#e=e,e.setAttribute("frameBorder","0"),e.setAttribute("aria-hidden","true"),e.setAttribute("allow","autoplay; fullscreen; encrypted-media; picture-in-picture; accelerometer; gyroscope"),null!==this.referrerPolicy&&e.setAttribute("referrerpolicy",this.referrerPolicy)}setup(){(0,s.k6)(window,"message",this.#t.bind(this)),(0,s.k6)(this.#e,"load",this.onLoad.bind(this)),(0,s.QZ)(this.#i.bind(this))}#i(){let e=this.src();if(!e.length)return void this.#e.setAttribute("src","");let t=(0,s.se)(()=>this.buildParams());this.#e.setAttribute("src",(0,r.xF)(e,t))}postMessage(e,t){r.X3||this.#e.contentWindow?.postMessage(JSON.stringify(e),t??"*")}#t(e){let t=this.getOrigin();if((null===e.source||e.source===this.#e?.contentWindow)&&(!(0,s.Kg)(t)||t===e.origin)){try{let t=JSON.parse(e.data);t&&this.onMessage(t,e);return}catch{}e.data&&this.onMessage(e.data,e)}}}},27588(e,t,i){i.r(t),i.d(t,{VimeoProvider:()=>h});var s=i(45026),r=i(94234),a=i(61657),o=i(3685);let n=["bufferend","bufferstart","durationchange","ended","enterpictureinpicture","error","fullscreenchange","leavepictureinpicture","loaded","playProgress","loadProgress","pause","play","playbackratechange","qualitychange","seeked","seeking","timeupdate","volumechange","waiting"];var h=class extends a.h{$$PROVIDER_TYPE="VIMEO";scope=(0,s.Ds)();fullscreen;#s;#r=(0,s.O)("");#a=(0,s.O)(!1);#o=null;#n=null;#h=!1;#c=new r.zJ(0,0);#l=new r.e8(this.#u.bind(this));#d=null;#g=null;#p=new Map;#f=null;constructor(e,t){super(e),this.#s=t;let i=this;this.fullscreen={get active(){return i.#h},supported:!0,enter:()=>this.#m("requestFullscreen"),exit:()=>this.#m("exitFullscreen")}}cookies=!1;title=!0;byline=!0;portrait=!0;color="00ADEF";get type(){return"vimeo"}get currentSrc(){return this.#n}get videoId(){return this.#r()}get hash(){return this.#o}get isPro(){return this.#a()}preconnect(){(0,r.kZ)(this.getOrigin())}setup(){super.setup(),(0,s.QZ)(this.#y.bind(this)),(0,s.QZ)(this.#v.bind(this)),(0,s.QZ)(this.#b.bind(this)),this.#s.notify("provider-setup",this)}destroy(){for(let e of(this.#k(),this.fullscreen=void 0,this.#p.values()))for(let{reject:t}of e)t("provider destroyed");this.#p.clear(),this.#m("destroy")}async play(){return this.#m("play")}async pause(){return this.#m("pause")}setMuted(e){this.#m("setMuted",e)}setCurrentTime(e){this.#m("seekTo",e),this.#s.notify("seeking",e)}setVolume(e){this.#m("setVolume",e),this.#m("setMuted",(0,s.se)(this.#s.$state.muted))}setPlaybackRate(e){this.#m("setPlaybackRate",e)}async loadSource(e){if(!(0,s.Kg)(e.src)){this.#n=null,this.#o=null,this.#r.set("");return}let{videoId:t,hash:i}=(0,o.resolveVimeoVideoId)(e.src);this.#r.set(t??""),this.#o=i??null,this.#n=e}#y(){this.#k();let e=this.#r();e?(this.src.set(`${this.getOrigin()}/video/${e}`),this.#s.notify("load-start")):this.src.set("")}#v(){let e=this.#r();if(!e)return;let t=(0,s.vI)(),i=new AbortController;return this.#f=t,(0,o.getVimeoVideoInfo)(e,i,this.#o).then(e=>{t.resolve(e)}).catch(e=>{t.reject()}),()=>{t.reject(),i.abort()}}#b(){let e=this.#a(),{$state:t,qualities:i}=this.#s;if(t.canSetPlaybackRate.set(e),i[r.jH.setReadonly](!e),e)return(0,s.k6)(i,"change",()=>{if(i.auto)return;let e=i.selected?.id;e&&this.#m("setQuality",e)})}getOrigin(){return"https://player.vimeo.com"}buildParams(){let{keyDisabled:e}
1=this.#s.$props,{playsInline:t,nativeControls:i}=this.#s.$state,s=i();return{title:this.title,byline:this.byline,color:this.color,portrait:this.portrait,controls:s,h:this.hash,keyboard:s&&!e(),transparent:!0,playsinline:t(),dnt:!this.cookies}}#u(){this.#m("getCurrentTime")}#x=!1;#w(e,t){if(this.#x&&0===e)return;let{realCurrentTime:i,paused:s,bufferedEnd:r,seekableEnd:a,live:o}=this.#s.$state;if(i()===e)return;let n=i();this.#s.notify("time-change",e,t),Math.abs(n-e)>1.5&&(this.#s.notify("seeking",e,t),!s()&&r()<e&&this.#s.notify("waiting",void 0,t)),!o()&&a()-e<.01&&(this.#s.notify("end",void 0,t),this.#x=!0,setTimeout(()=>{this.#x=!1},500))}#P(e,t){this.#s.notify("seeked",e,t)}#C(e){let t=this.#r();this.#f?.promise.then(t=>{if(!t)return;let{title:i,poster:s,duration:r,pro:a}=t;this.#a.set(a),this.#s.notify("title-change",i,e),this.#s.notify("poster-change",s,e),this.#s.notify("duration-change",r,e),this.#I(r,e)}).catch(()=>{t===this.#r()&&(this.#m("getVideoTitle"),this.#m("getDuration"))})}#I(e,t){let{nativeControls:i}=this.#s.$state,s=i();this.#c=new r.zJ(0,e);let a={buffered:new r.zJ(0,0),seekable:this.#c,duration:e};this.#s.delegate.ready(a,t),s||this.#m("_hideOverlay"),this.#m("getQualities"),this.#m("getChapters")}#T(e,t,i){switch(e){case"getVideoTitle":this.#s.notify("title-change",t,i);break;case"getDuration":this.#s.$state.canPlay()?this.#s.notify("duration-change",t,i):this.#I(t,i);break;case"getCurrentTime":this.#w(t,i);break;case"getBuffered":(0,s.cy)(t)&&t.length&&this.#M(t[t.length-1][1],i);break;case"setMuted":case"getMuted":this.#V((0,s.se)(this.#s.$state.volume),t,i);break;case"getChapters":this.#R(t);break;case"getQualities":this.#$(t,i)}this.#A(e)?.resolve()}#S(){for(let e of n)this.#m("addEventListener",e)}#Q(e){this.#l.stop(),this.#s.notify("pause",void 0,e)}async #_(e){this.#l.start(),await this.#m("getMuted"),this.#s.notify("play",void 0,e)}#O(e){let{paused:t}=this.#s.$state;t()||this.#x||this.#s.notify("playing",void 0,e)}#M(e,t){let i={buffered:new r.zJ(0,e),seekable:this.#c};this.#s.notify("progress",i,t)}#E(e){this.#s.notify("waiting",void 0,e)}#F(e){let{paused:t}=this.#s.$state;t()||this.#s.notify("playing",void 0,e)}async #L(e){let{paused:t}=this.#s.$state;t()&&(await this.#m("getMuted"),this.#s.notify("play",void 0,e)),this.#s.notify("waiting",void 0,e)}#V(e,t,i){this.#s.notify("volume-change",{volume:e,muted:t},i)}#R(e){if(this.#j(),!e.length)return;let t=new r.to({kind:"chapters",default:!0}),{seekableEnd:i}=this.#s.$state;for(let s=0;s<e.length;s++){let r=e[s],a=e[s+1];t.addCue(new window.VTTCue(r.startTime,a?.startTime??i(),r.title))}this.#g=t,this.#s.textTracks.add(t)}#j(){this.#g&&(this.#s.textTracks.remove(this.#g),this.#g=null)}#$(e,t){for(let i of(this.#s.qualities[r.kW.enableAuto]=e.some(e=>"auto"===e.id)?()=>this.#m("setQuality","auto"):void 0,e)){if("auto"===i.id)continue;let e=+i.id.slice(0,-1);isNaN(e)||this.#s.qualities[r.jH.add]({id:i.id,width:16/9*e,height:e,codec:"avc1,h.264",bitrate:-1},t)}this.#q(e.find(e=>e.active),t)}#q({id:e}={},t){if(!e)return;let i="auto"===e,s=this.#s.qualities.getById(e);i?(this.#s.qualities[r.kW.setAuto](i,t),this.#s.qualities[r.jH.select](void 0,!0,t)):this.#s.qualities[r.jH.select](s??void 0,!0,t)}#J(e,t,i){switch(e){case"ready":this.#S();break;case"loaded":this.#C(i);break;case"play":this.#_(i);break;case"playProgress":this.#O(i);break;case"pause":this.#Q(i);break;case"loadProgress":this.#M(t.seconds,i);break;case"waiting":this.#L(i);break;case"bufferstart":this.#E(i);break;case"bufferend":this.#F(i);break;case"volumechange":this.#V(t.volume,(0,s.se)(this.#s.$state.muted),i);break;case"durationchange":this.#c=new r.zJ(0,t.duration),this.#s.notify("duration-change",t.duration,i);break;case"playbackratechange":this.#s.notify("rate-change",t.playbackRate,i);break;case"qualitychange":this.#q(t,i);break;case"fullscreenchange":this.#h=t.fullscreen,this.#s.notify("fullscreen-change",t.fullscreen,i);break;case"enterpictureinpicture":this.#s.notify("picture-in-picture-change",!0,i);break;case"leavepictureinpicture":this.#s.notify("picture-in-picture-change",!1,i);break;case"ended":this.#s.notify("end",void 0,i);break;case"error":this.#W(t,i);break;case"seek":case"seeked":this.#P(t.seconds,i)}}#W(e,t){let{message:i,method:s}=e;"setPlaybackRate"===s&&this.#a.set(!1),s&&this.#A(s)?.reject(i)}onMessage(e,t){e.event?this.#J(e.event,e.data,t):e.method&&this.#T(e.method,e.value,t)}onLoad(){}async #m(e,t){let i=(0,s.vI)(),r=this.#p.get(e);return r||this.#p.set(e,r=[]),r.push(i),this.postMessage({method:e,value:t}),i.promise}#k(){this.#l.stop(),this.#c=new r.zJ(0,0),this.#f=null,this.#d=null,this.#a.set(!1),this.#j()}#A(e){return this.#p.get(e)?.shift()}}}}]);
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.