PageSourceSearch

https://wavevisual.com/_next/static/chunks/6434.529d3b7b4e6d4318.js

js wavevisual.com collected 2026-10-04 13:33:54 UTC 8,250 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6434],{96434:function(t,e,n){n.d(e,{s:function(){return A},z:function(){return m.z}});var i=n(2784),r=n(19458),o=n(27818),l=n(13366),a=n(95669),u=n(28687),d=n(40568),s=n(11080),f=n(16867),h=n(30118),c=n(83096),g=n(14084),v=n(118),p=n(11732),M=n(67638),S=n(34729),m=n(21369),C=n(15343),_=n(3809);function E(t,e){var n;let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4?arguments[4]:void 0,l=arguments.length>5?arguments[5]:void 0,a=arguments.length>6?arguments[6]:void 0,s=(0,d.listCaptionsConfigCues)(t),f=null!=r?s[r]:void 0,h=null!==(n=null==f?void 0:f.text)&&void 0!==n?n:(0,d.previewCaptionsConfigCueText)(t,i),c=C.ReferenceDimensions[e],g=(0,u.isUsableCaptionAuthoredSlot)(o)?o:void 0;return(0,_.captionSlotLayoutPatch)({text:h,canvasWidth:c.width,canvasHeight:c.height,anchorFontSize:l,heldFontSize:a,fontSizeMode:(0,d.captionsFontSizeMode)(t),...g?{slotWidth:g.width,slotHeight:g.height}:{}})}let A=()=>{let{captions:t,canvasAspectRatio:e,status:n,updateEditorState:C}=(0,h._i)(),{textNodes:_,addTextLayer:A,updateTextLayer:x}=(0,f.Gg)(),{audioElement:O,playerStatus:w}=(0,c.FI)(),k=(0,g.s)(t=>{var e,n;return null===(n=t.designDocument)||void 0===n?void 0:null===(e=n.config)||void 0===e?void 0:e.captions}),N=(0,m.z)(t=>t.focusedCueIndex),T=(0,m.z)(t=>t.previewTimeMs),z=(0,m.z)(t=>t.setPreviewTimeMs),F=(0,i.useRef)(void 0),I=(0,i.useRef)(void 0),P=(0,i.useRef)(null),b=(0,v.r)(t=>t.setNotSaved);return(0,i.useEffect)(()=>{if(!O){z(0);return}let t=()=>{let t=Math.max(0,1e3*O.currentTime);z(Number.isFinite(t)?t:0)};t(),O.addEventListener("timeupdate",t),O.addEventListener("seeked",t),O.addEventListener("play",t);let e=0,n=()=>{t(),e=requestAnimationFrame(n)};return w===o.c.playing&&(e=requestAnimationFrame(n)),()=>{cancelAnimationFrame(e),O.removeEventListener("timeupdate",t),O.removeEventListener("seeked",t),O.removeEventListener("play",t)}},[O,w,z]),(0,i.useEffect)(()=>{let e=t=>{let e=(0,p._6)(t);return e!==t&&b(),e};if(F.current===k){if(t&&(0,d.captionsConfigCueCount)(t)>0){let n=e(t);n!==t&&C({captions:n},!1)}return}if(!(0,M.Er)(t,k)){if((0,S.Y)(g.s.getState().subscribedDesignId))return;if((0,M.n)(k)&&I.current!==k&&(I.current=k,b()),t&&(0,d.captionsConfigCueCount)(t)>0){let n=e(t);n!==t&&C({captions:n},!1)}return}F.current=k,C({captions:e((0,l.ff)(k))},!1)},[t,k,b,C]),(0,i.useEffect)(()=>{if(n!==r.EditorStatus.LOADED)return;if(!(0,d.captionsConfigCueCount)(t)){var i;let t=_.find(t=>t.name===s.CAPTION_TEXT_NODE_NAME);t&&(null!==(i=t.text)&&void 0!==i?i:"")!==""&&x(s.CAPTION_TEXT_NODE_NAME,{text:""},!1);return}let o=_.find(t=>t.name===s.CAPTION_TEXT_NODE_NAME),l=(0,a.captionFillOrDefault)(null==o?void 0:o.fillColor);if(!o){A({name:s.CAPTION_TEXT_NODE_NAME,fontFamily:"Open Sans",...E(t,e,T,N),fillColor:l});return}let f=null!=o.captionAnchorFontSize&&o.captionAnchorFontSize>0?o.captionAnchorFontSize:void 0,h=(0,d.isCaptionsFontSizeStable)(t),c=!h&&null!=P.current&&o.width===P.current.width&&o.height===P.current.height,g={...function(t,e){var n,i;let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,d=arguments.length>6?arguments[6]:void 0,s=E(t,e,r,o,l,a,d),f=(0,u.isUsableCaptionAuthoredSlot)(l)?l:void 0;return{text:s.text,fontSize:s.fontSize,width:null!==(n=null==f?void 0:f.width)&&void 0!==n?n:s.width,height:null!==(i=null==f?void 0:f.height)&&void 0!==i?i:s.height,originX:s.originX,originY:s.originY,textAlign:s.textAlign}}(t,e,T,N,!h&&!c&&null==f&&(0,u.isUsableCaptionAuthoredSlot)(o)?{width:o.width,height:o.height}:void 0,f,h&&null!=o.fontSize&&o.fontSize>0?o.fontSize:void 0),fillColor:l};h&&g.width>0&&g.height>0?P.current={width:g.width,height:g.height}:c||(P.current=null),(o.text!==g.text||o.fontSize!==g.fontSize||o.width!==g.width||o.height!==g.height||o.textAlign!==g.textAlign||o.fillColor!==g.fillColor)&&x(s.CAPTION_TEXT_NODE_NAME,g,!1)},[A,e,t,N,T,n,_,x]),null}},11732:function(t,e,n){n.d(e,{Zv:function(){return a},_6:function(){return u}});var i=n(40568);let r="wavevisual:captionDisplayPreferences";function o(t){return void 0===t.karaokeMode&&void 0===t.adaptiveFontSize}function l(){try{let t=window.localStorage.getItem(r);if(!t)return null;let e=JSON.parse(t),n={};
1return"boolean"==typeof(null==e?void 0:e.karaokeMode)&&(n.karaokeMode=e.karaokeMode),"boolean"==typeof(null==e?void 0:e.adaptiveFontSize)&&(n.adaptiveFontSize=e.adaptiveFontSize),o(n)?null:n}catch(t){return null}}function a(t){var e;let n={...null!==(e=l())&&void 0!==e?e:{},...t};if(!o(n))try{window.localStorage.setItem(r,JSON.stringify(n))}catch(t){}}function u(t){let e=l();if(!e)return t;let n={};if(void 0!==e.karaokeMode&&e.karaokeMode!==(0,i.isCaptionsKaraokeModeEnabled)(t)&&(n.karaokeMode=e.karaokeMode),void 0!==e.adaptiveFontSize){let r=e.adaptiveFontSize?"adaptive":"stable";r!==(0,i.captionsFontSizeMode)(t)&&(n.fontSizeMode=r)}return void 0===n.karaokeMode&&void 0===n.fontSizeMode?t:(0,i.updateCaptionsConfigOptions)(t,n)}},57632:function(t,e,n){Object.defineProperty(e,"__esModule",{value:!0}),e.syntheticCaptionWords=u,e.splitSegmentsForCaptions=function(t){return t.flatMap(s)};let i=n(95669),r=[".","!","?","…"],o=[",",";",":"];function l(t){return t.map(t=>t.text).join(" ")}function a(t,e){if(!e)return 100;let n=t.text.replace(/["')\]}>]+$/g,"");return r.some(t=>n.endsWith(t))?90:e.start-t.end>=i.CAPTION_PAUSE_GAP_S?80:o.some(t=>n.endsWith(t))?70:0}function u(t,e,n){let i=t.trim().split(/\s+/).filter(t=>t.length>0);if(!i.length)return[];let r=Math.max(0,n-e),o=i.reduce((t,e)=>t+e.length,0)||1,l=e;return i.map((t,e)=>{let a=t.length/o*r,u=e===i.length-1?n:l+a,d={start:l,end:u,text:t};return l=u,d})}function d(t){let e=t.start,n=t.end<e?e:t.end;return{start:e,end:n,text:(t.text||"").trim()}}function s(t){let e=(t.text||"").trim();if(!e)return[];let n=(t.words||[]).map(d).filter(t=>t.text);return(n.length||(n=u(e,t.start,t.end)),n.length)?function(t,e){let n=t.length-1,i=[];return t.forEach((r,o)=>{let a=0===o?e.start:r[0].start,u=o===n?e.end:r[r.length-1].end;if(o<n){let e=t[o+1][0].start;e-u>=0&&e-u<.08&&(u=e)}o>0&&a<i[i.length-1].end&&(a=i[i.length-1].end),u<a&&(u=a),i.push({start:a,end:u,text:l(r),words:r})}),i}(function(t){let e=t.length,n=0,r=[];for(;n<e;){let o=n+1;for(;o<e&&function(t){if(!t.length)return!0;let e=t[t.length-1].end-t[0].start;return l(t).length<=i.CAPTION_MAX_CUE_CHARS&&t.length<=i.CAPTION_MAX_CUE_WORDS&&e<=i.CAPTION_MAX_CUE_DURATION_S}(t.slice(n,o+1));)o+=1;if(o===e){r.push(t.slice(n,e));break}let u=o,d=-1;for(let r=n+1;r<=o;r+=1){let o=a(t[r-1],r<e?t[r]:void 0);if(o<=0)continue;let l=r-n;o<90&&l<i.CAPTION_MIN_WORDS_FOR_SOFT_BREAK||!(o>=d)||(d=o,u=r)}r.push(t.slice(n,u)),n=u}return function(t){if(t.length<2)return t;let e=[t[0]];return t.slice(1).forEach(t=>{t.length>1&&a(t[0],t[1])>=70?(e.push(t.slice(0,1)),e.push(t.slice(1))):e.push(t)}),e}(r)}(n),t):[]}},13366:function(t,e,n){e.ff=function(t){return{...t,tracks:t.tracks.map(t=>({...t,cues:t.cues.flatMap(o)}))}};let i=n(57632);function r(t){var e;return(null!==(e=t.match(/\S+/g))&&void 0!==e?e:[]).join(" ")}function o(t){if(!t.text.trim())return[t];let e=(0,i.splitSegmentsForCaptions)([{start:t.startMs/1e3,end:t.endMs/1e3,text:t.text,words:function(t){var e;if(null===(e=t.wordTimings)||void 0===e?void 0:e.length){let e=t.wordTimings.map(e=>({start:e.startMs/1e3,end:e.endMs/1e3,text:t.text.slice(e.charStart,e.charEnd).trim()})).filter(t=>t.text);if(r(e.map(t=>t.text).join(" "))===r(t.text))return e}return(0,i.syntheticCaptionWords)(t.text,t.startMs/1e3,t.endMs/1e3)}(t)}]);return e.length?e.map(e=>{let n=e.text.trim(),i=function(t,e){let n=[],i=0;return e.forEach(e=>{let r=e.text.trim();if(!r)return;let o=t.indexOf(r,i);if(-1===o&&(o=t.indexOf(r)),-1===o)return;let l=o+r.length;n.push({startMs:Math.round(1e3*e.start),endMs:Math.round(1e3*e.end),charStart:o,charEnd:l}),i=l}),n}(n,e.words);return{startMs:Math.round(1e3*e.start),endMs:Math.round(1e3*e.end),text:n,fadeInMs:t.fadeInMs,fadeOutMs:t.fadeOutMs,...i.length?{wordTimings:i}:{}}}):[t]}}}]);

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.