1try{!function(){var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},e=(new t.Error).stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="31d3952a-2d57-47cb-9da7-17d8e2134fd1",t._sentryDebugIdIdentifier="sentry-dbid-31d3952a-2d57-47cb-9da7-17d8e2134fd1")}()}catch(t){}"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8645],{46707:function(t,e,n){n.d(e,{k:function(){return r}});let r="CF_DOMAIN"},37697:function(t,e,n){n.d(e,{$M:function(){return s},GJ:function(){return o},Oy:function(){return i}});var r=n(93340);let i=t=>{var e;return t?s(JSON.parse(null!==(e=null==t?void 0:t.clicks)&&void 0!==e?e:"[]").map(e=>{let n=(e.windowOuterWidth-e.windowWidth)/2,i=e.windowOuterHeight-e.windowHeight-n;return{x:(null==t?void 0:t.recordingType)===r.RecordingType.SCREEN?e.screenX/e.screenWidth*100:(null==t?void 0:t.recordingType)===r.RecordingType.WINDOW?(e.x+n)/e.windowOuterWidth*100:(null==t?void 0:t.recordingType)===r.RecordingType.DESKTOP?e.screenX/e.screenWidth*100:e.x/e.documentClientWidth*100,y:(null==t?void 0:t.recordingType)===r.RecordingType.SCREEN?e.screenY/e.screenHeight*100:(null==t?void 0:t.recordingType)===r.RecordingType.WINDOW?(e.y+i)/e.windowOuterHeight*100:(null==t?void 0:t.recordingType)===r.RecordingType.DESKTOP?e.screenY/e.screenHeight*100:e.y/e.documentClientHeight*100,t:e.timestamp}})):[]},o=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=1.1*e,r=t.sort((t,e)=>t.time-e.time),i=[];return r.forEach(t=>{(0===i.length||t.time-i[i.length-1].time>n)&&i.push(t)}),i},s=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:500,n=1.1*e,r=t.sort((t,e)=>t.t-e.t),i=[];return r.forEach(t=>{(0===i.length||t.t-i[i.length-1].t>n)&&i.push(t)}),i}},71075:function(t,e,n){n.d(e,{jZ:function(){return b},ug:function(){return w},w_:function(){return y},Lt:function(){return o},nO:function(){return s},WZ:function(){return S},Vc:function(){return V},De:function(){return x},gW:function(){return f},f_:function(){return Z},Aq:function(){return _},HY:function(){return O},wX:function(){return z},Gg:function(){return D},ZI:function(){return F},yp:function(){return U},ot:function(){return A},hT:function(){return H},Pg:function(){return T},ai:function(){return E},OI:function(){return g},d4:function(){return v},tc:function(){return R},g_:function(){return W},Vs:function(){return k},JD:function(){return K},br:function(){return M},WV:function(){return m}});var r,i,o,s,l=n(94025),a=n(430),d=n(96987),c=n(61427),u=n(37697);let h=t=>{let{clip:e}=t,n=0,r=[];return e.type===l.NJ.MEDIA&&e.source.type===l.Ap.VIDEO&&e.sequences.forEach(t=>{(0,u.$M)(e.source.clicks.filter(e=>e.t>=t.startInMs&&e.t<t.endInMs)).forEach(e=>{let i=n+(e.t-t.startInMs);r.push({x:e.x,y:e.y,t:i})}),n+=t.endInMs-t.startInMs}),r};var p=n(68657),I=n(23503);(r=o||(o={})).CLIP="CLIP",r.ZOOM="ZOOM",r.ELEMENTS="ELEMENTS",r.CLICK_HIGHLIGHT="CLICK_HIGHLIGHT",(i=s||(s={})).VOICE="voice",i.CAPTIONS="captions",i.TEMPLATES="templates",i.MUSIC_AND_SOUND="music_and_sound",i.ELEMENTS="elements",i.MEDIA="media";let M=150,f=375,m=56,g=5,v=.5,y="FIT_TIMELINE_EVENT",b=5,w=160,x={clipsMuted:!1,zoomsHidden:!1,elementRowsHidden:[],audiosMuted:[],clicksHighlightHidden:!1},E=(t,e)=>({...t,clips:t.clips.map(t=>{var n;return{...t,zooms:e.zoomsHidden?[]:t.zooms,elements:t.elements.filter((t,n)=>!e.elementRowsHidden.includes(n)),voiceover:{...t.voiceover,volume:e.clipsMuted?0:null===(n=t.voiceover)||void 0===n?void 0:n.volume}}})}),T=(t,e)=>({...t,clips:t.clips.map(t=>({...t,elements:t.elements.filter(t=>(null==e?void 0:e.id)!==t.id)}))}),O=t=>{let{currentFrame:e,clips:n,fps:r}=t,i=0;for(let t of n){let n=(0,a.I0)(i,r),o=(0,a.I0)(i+t.durationInMs,r);if(e>=n&&e<o)return t;i+=t.durationInMs}return n[0]},S=t=>{let{clipId:e,newClip:n,clips:r}=t,i=r.findIndex(t=>t.id===e);if(-1===i)return r;let o=[...r.slice(0,i+1),n,...r.slice(i+1)];return console.log("newClips in addNewClipAfterClip:",JSON.stringify(o,null,2)),o},D=t=>{let{currentFrame:e,clips:n,fps:r}=t,i=0;for(let t of n){let n=(0,a.I0)(i,r),o=(0,a.I0)(i+t.durationInMs,r);if(e>=n&&e<o)return e-n;i+=t.durationInMs}return 0},H=t=>{var e;let{currentFrame:n,clips:r,fps:i,type:o}=t,s=0;for(let t of r)if(s+=t.durationInMs,n<(0,a.I0)(s,i)&&t.type===o)return t;return null!==(e=r.filter(t=>t.type===o)[0])&&void 0!==e?e:null},A=t=>
1t.hideLayout?{...t,background:{type:l.hH.COLOR,color:"#000000",colorAlpha:1,colorGradientPreset:d.xh},padding:0,shadowAmount:0,border:{borderStyle:l.vy.NONE,borderRadius:0,borderColor:"#000000",borderWidth:0}}:t;function N(t,e){let n=e.reduce((t,e)=>t+(e.endInMs-e.startInMs),0),r=-1,i=t.replace(/<sync-inline\s+syncedatms="(\d+)"><\/sync-inline>/g,(t,e)=>{let i=parseInt(e,10);return i>r&&i>=0&&i<=n?(r=i,t):""});return(i=i.replace(/^((?:\s| |<pause-inline[^>]*><\/pause-inline>|<p>)*)<sync-inline\s+syncedatms="\d+"><\/sync-inline>/,"$1")).replace(/<sync-inline\s+syncedatms="\d+"><\/sync-inline>((?:\s| |<pause-inline[^>]*><\/pause-inline>|<\/p>)*)$/,"$1")}let C=async t=>{if(t.type!==l.NJ.MEDIA||t.source.type!==l.Ap.VIDEO)return{...L({clip:t,newDurationInMs:I.rH}),durationInMs:I.rH,voiceover:{...t.voiceover,charTranscriptFile:null,audioUrl:null,transcript:"",isVoiceoverUpdated:!0}};{var e;let n={...t,isSynced:!1,syncedVideoUrl:null,clicks:h({clip:t}),voiceover:{...t.voiceover,transcript:N(t.voiceover.transcript,null!==(e=t.sequences)&&void 0!==e?e:[]),charTranscriptFile:null,voiceId:null,isVoiceoverUpdated:!0,audioUrl:null},durationInMs:(0,a._9)(t)},r=await (0,c.ai)({clip:t}),i=await (0,c.ai)({clip:n}),o=_(n.zooms.map(t=>({...t,startInMs:(0,c.KZ)(t.startInMs,r,i),endInMs:(0,c.KZ)(t.endInMs,r,i)}))),s=_(n.elements.map(t=>({...t,startInMs:(0,c.KZ)(t.startInMs,r,i),endInMs:(0,c.KZ)(t.endInMs,r,i)}))),l=_(n.clickHighlights.map(t=>({...t,startInMs:(0,c.KZ)(t.startInMs,r,i),endInMs:(0,c.KZ)(t.endInMs,r,i)})));return{...n,zooms:o,elements:s,clickHighlights:l}}},k=async t=>{if(t.type!==l.NJ.MEDIA||t.source.type!==l.Ap.VIDEO)return{...L({clip:t,newDurationInMs:I.rH}),durationInMs:I.rH,voiceover:{...t.voiceover,utterences:[],audioUrl:null,isVoiceoverUpdated:!0}};{var e;let n={...t,isSynced:!1,syncedVideoUrl:null,durationInMs:(0,a._9)(t),clicks:h({clip:t}),voiceover:{...t.voiceover,transcript:N(t.voiceover.transcript,null!==(e=t.sequences)&&void 0!==e?e:[]),charTranscriptFile:null,isVoiceoverUpdated:!0,audioUrl:null}},r=await (0,c.ai)({clip:t}),i=await (0,c.ai)({clip:n}),o=_(n.zooms.map(t=>({...t,startInMs:(0,c.KZ)(t.startInMs,r,i),endInMs:(0,c.KZ)(t.endInMs,r,i)}))),s=_(n.elements.map(t=>({...t,startInMs:(0,c.KZ)(t.startInMs,r,i),endInMs:(0,c.KZ)(t.endInMs,r,i)}))),l=_(n.clickHighlights.map(t=>({...t,startInMs:(0,c.KZ)(t.startInMs,r,i),endInMs:(0,c.KZ)(t.endInMs,r,i)})));return{...n,zooms:o,elements:s,clickHighlights:l}}},W=async t=>{let{clipId:e,videoProps:n}=t;return{...n,clips:await Promise.all(n.clips.map(async t=>t.id===e?await C(t):t))}},R=async t=>{let{clip:e,newSequences:n}=t;if(e.type!==l.NJ.MEDIA||e.source.type!==l.Ap.VIDEO)return e;{let t={...e,sequences:n,durationInMs:(0,a._9)({...e,sequences:n}),clicks:h({clip:{...e,sequences:n}}),voiceover:{...e.voiceover,transcript:N(e.voiceover.transcript,n),charTranscriptFile:null,isVoiceoverUpdated:!0,audioUrl:null}},r=await (0,c.ai)({clip:e}),i=await (0,c.ai)({clip:t}),o=_(t.zooms.map(t=>({...t,startInMs:(0,c.KZ)(t.startInMs,r,i),endInMs:(0,c.KZ)(t.endInMs,r,i)}))),s=_(t.elements.map(t=>({...t,startInMs:(0,c.KZ)(t.startInMs,r,i),endInMs:(0,c.KZ)(t.endInMs,r,i)}))),l=_(t.clickHighlights.map(t=>({...t,startInMs:(0,c.KZ)(t.startInMs,r,i),endInMs:(0,c.KZ)(t.endInMs,r,i)})));return{...t,zooms:o,elements:s,clickHighlights:l}}},_=t=>t.filter(t=>!!t).filter(t=>!((t.startInMs<0||t.endInMs<=0||t.transitionDurationInMs)&&t.endInMs-t.startInMs<2*t.transitionDurationInMs)).filter(t=>t.endInMs-t.startInMs>50),Z=t=>t.filter(t=>!!t).filter(t=>t.durationInMs>50),K=t=>{let{url:e,compressedUrl:n,mode:r}=t;return r===l.Vh.PERFORMANCE&&n&&n.trim().length?n:e},z=t=>{let{clips:e}=t,n=[],r=[],i=[],o=0;for(let t of e)n.push(...t.zooms.map(t=>({...t,startInMs:t.startInMs+o,endInMs:t.endInMs+o}))),r.push(...t.elements.map(t=>({...t,startInMs:t.startInMs+o,endInMs:t.endInMs+o}))),i.push(...t.clickHighlights.map(t=>({...t,startInMs:t.startInMs+o,endInMs:t.endInMs+o}))),o+=t.durationInMs;return{zooms:n,elements:r,clickHighlights:i}},V=t=>{let{clips:e,newClips:n,newZooms:r,newElements:i,newClickHighlights:o}=t;console.log("newZooms in constructClipsFromTimelineState:",JSON.stringify(r,null,2));let s=0;return n.map(t=>{let n=e.find(e=>e.id===t.id),l=_(r.filter(t=>n.zooms.some(e=>e.id===t.id)).map(t=>({...t,startInMs:t.startInMs-s,endInMs:t.endInMs-s}))),a=_(i.filter(t=>n.elements.some(e=>e.id===t.id)).map(t=>({...t,startInMs:t.startInMs-s,endInMs:t.endInMs-s}))),d=_(o.filter(t=>n.clickHighlights.some(e=>e.id===t.id)).map(t=>({...t,startInMs:t.startInMs-s,endInMs:t.endInMs-s}))),c={...n,zooms:l,elements:a,clickHighlights:d},u=L({newDurationInMs:t.durationInMs,clip:c});return s+=n.durationInMs,u})},L=t=>{let{newDurationInMs:e,clip:n}=t,r=_(n.zooms.map(t=>({...t,startInMs:Math.min(Math.max(t.startInMs,0),e),endInMs:Math.min(Math.max(t.endInMs,0),e)}))),i=_(n.elements.map(t=>({...t,startInMs:Math.min(Math.max(t.startInMs,0),e),endInMs:Math.min(Math.max(t.endInMs,0),e)}))),o=_(n.clickHighlights.map(t=>({...t,startInMs:Math.min(Math.max(t.startInMs,0),e),endInMs:Math.min(Math.max(t.endInMs,0),e)}))),s=e>n.durationInMs;return{...n,durationInMs:e,zooms:r.map(t=>{let r=100>Math.abs(n.zooms.find(e=>e.id===t.id).endInMs-n.durationInMs);return s&&r?{...t,endInMs:e}:t}),elements:i.map(t=>{let r=n.elements.find(e=>e.id===t.id);console.log("originalElement in updateClipDurationWithLayersHandling:",JSON.stringify({s:r.startInMs,e:r.endInMs},null,2)),console.log("clip duration in updateClipDurationWithLayersHandling:",n.durationInMs);let i=100>Math.abs(r.endInMs-n.durationInMs);return s&&i?{...t,endInMs:e}:t}),clickHighlights:o.map(t=>{let r=100>Math.abs(n.clickHighlights.find(e=>e.id===t.id).endInMs-n.durationInMs);return s&&r?{...t,endInMs:e}:t})}},U=t=>{let{clipId:e,clips:n}=t,r=0;for(let t of n){if(t.id===e)break;r+=t.durationInMs}return r},F=t=>
1{let{height:e,compositionHeight:n,compositionWidth:r,clip:i,resolution:o}=t,{width:s,height:a}=(0,p.d4)({clip:i,resolution:o,videoCompositionHeight:n,videoCompositionWidth:r});if(i.type===l.NJ.MEDIA&&i.source.type===l.Ap.VIDEO)return{height:e,width:e/100*a/s*100};{let t=e/100*n/r*100;return{height:e,width:t}}}},68657:function(t,e,n){n.d(e,{Cy:function(){return l},TR:function(){return p},WF:function(){return d},bQ:function(){return I},d4:function(){return u},zt:function(){return h}});var r=n(94025),i=n(71075),o=n(2556),s=n(23503);let l=10.8,a=(t,e)=>t/100*e,d={border:{borderStyle:r.vy.NONE,borderColor:"#000000",borderWidth:0,borderRadius:0},horizontalFlip:!1,verticalFlip:!1,padding:0,shadowAmount:0},c=(t,e)=>({width:e.width/100*t.width,height:e.height/100*t.height}),u=t=>{var e,n;let{clip:o,resolution:d,videoCompositionWidth:u,videoCompositionHeight:h}=t;if(o.type!==r.NJ.MEDIA||o.source.type!==r.Ap.VIDEO)return{...c({width:u,height:h},null!==(n=o.source.crop)&&void 0!==n?n:s._o),innerWidth:u,innerHeight:h};{let t=(0,i.ot)(o.layout),n=h-2*a(t.padding,d)-(t.border.borderStyle===r.vy.BROWSER?a(l,d):0),p=u-2*a(t.padding,d),I=c({width:o.source.width,height:o.source.height},null!==(e=o.source.crop)&&void 0!==e?e:s._o),M=I.width/I.height*n,f=o.source.width/o.source.height*n,m=M>p?p:M,g=M>p?p:f,v=I.height/I.width*m,y=o.source.height/o.source.width*g;return{width:m,height:v,innerWidth:g,innerHeight:y}}},h=t=>{let{frame:e,fps:n,clip:s,resolution:d,videoCompositionWidth:c,videoCompositionHeight:h}=t,p=(0,i.ot)(s.layout),{width:I,height:M}=u({clip:s,resolution:d,videoCompositionWidth:c,videoCompositionHeight:h}),f=a(p.border.borderWidth,d)/10,m=n/Math.abs(.3);return{boxShadow:"0 ".concat(2*a(p.shadowAmount,d),"px ").concat(3*a(p.shadowAmount,d),"px -").concat(.5*a(p.shadowAmount,d),"px rgb(0 0 0 / 0.2), 0 ").concat(1*a(p.shadowAmount,d),"px ").concat(2*a(p.shadowAmount,d),"px -").concat(1*a(p.shadowAmount,d),"px rgb(0 0 0 / 0.2)"),borderRadius:"".concat(a(p.border.borderRadius,d),"px"),...p.border.borderStyle===r.vy.SOLID?{width:"".concat(I,"px"),height:"".concat(M,"px"),outline:"".concat(f,"px solid ").concat(p.border.borderColor),outlineOffset:p.border.borderWidth>.2?"-".concat(a(.2,d),"px"):"0px"}:{},...p.border.borderStyle===r.vy.BROWSER?{display:"flex",flexDirection:"column",width:"".concat(I,"px"),height:"".concat(M+a(l,d),"px"),outline:"".concat(2,"px solid hsl(0 0% 100% / 0.7)"),overflow:"hidden"}:{},...p.border.borderStyle===r.vy.GLASS?{width:"".concat(I,"px"),height:"".concat(M,"px"),outline:"".concat(3.5*f,"px solid ").concat((0,o.UU)(p.border.borderColor,.3))}:{},...p.border.borderStyle===r.vy.NONE?{width:"".concat(I,"px"),height:"".concat(M,"px")}:{},...p.border.borderStyle===r.vy.ANIMATED?{width:"".concat(I+2*f,"px"),height:"".concat(M+2*f,"px"),backgroundImage:"conic-gradient(from ".concat(e%m/m*360*Math.sign(.3),"deg, transparent, ").concat(p.border.borderColor,")"),display:"flex",alignItems:"center",justifyContent:"center"}:{}}},p=t=>{let{clip:e,resolution:n,videoCompositionHeight:o,videoCompositionWidth:s}=t,l=(0,i.ot)(e.layout),{width:d,height:c}=u({clip:e,resolution:n,videoCompositionWidth:s,videoCompositionHeight:o});return{width:"".concat(d,"px"),height:"".concat(c,"px"),transformOrigin:"center",scale:"".concat(l.horizontalFlip?-1:1," ").concat(l.verticalFlip?-1:1),...l.border.borderStyle!==r.vy.BROWSER?{borderRadius:"".concat(a(l.border.borderRadius,n),"px")}:{},overflow:"hidden",position:"relative"}},I=t=>{var e;let{clip:n,resolution:r,videoCompositionHeight:i,videoCompositionWidth:o}=t,{width:l,height:a,innerWidth:d,innerHeight:c}=u({clip:n,resolution:r,videoCompositionWidth:o,videoCompositionHeight:i}),h=null!==(e=n.source.crop)&&void 0!==e?e:s._o,p=Math.max(l/(h.width/100*d),a/(h.height/100*c)),I=-(h.x/100*d)*p,M=-(h.y/100*c)*p;return{width:"".concat(d,"px"),height:"".concat(c,"px"),minWidth:"".concat(d,"px"),minHeight:"".concat(c,"px"),position:"absolute",top:0,left:0,transformOrigin:"top left",transform:"translate3d(".concat(I,"px, ").concat(M,"px, 0) scale(").concat(p,")")}}},61427:function(t,e,n){n.d(e,{y5:function(){return d},KZ:function(){return h},ai:function(){return u}});var r=n(40719),i=n(94025),o=n(430),s=n(46707),l=n(83464);let a=async t=>{let{fileUrl:e}=t,n="https://krotonbucket.s3.ap-south-1.amazonaws.com";try{let t=e.replace(s.k,"https://dbgi97grppr1g.cloudfront.net").replace(n,n).trim();return console.log("Fetching transcript JSON from:",t),(await l.Z.get(t)).data}catch(t){return console.log("Error fetching transcript JSON:",t),[]}},d=60;async function c(t,e,n){let i=(0,r.zD)(t),o=e?await a({fileUrl:e}):[],s=[],l="",d=0,c=(t,e)=>{let n=l.slice(d,t).trim();n.length&&s.push({text:n,syncedAtMs:e}),d=t},u=t=>{if(!t)return;let e=t.replace(/\s+/g," ");
1if(!e.trim()){l&&!l.endsWith(" ")&&(l+=" ");return}l&&l.endsWith(" ")&&e.startsWith(" ")?l+=e.slice(1):l+=e},h=t=>{for(let o of t.contents().toArray())if("text"===o.type)u(i(o).text());else if("tag"===o.type){var e,n,r;let t=null===(e=o.name)||void 0===e?void 0:e.toLowerCase();if("sync-inline"===t){let t=Number(null!==(r=null!==(n=i(o).attr("syncedatms"))&&void 0!==n?n:i(o).attr("syncedAtMs"))&&void 0!==r?r:"0");c(l.length,t)}else("br"===t||"p"===t||"div"===t)&&u(" "),h(i(o))}};h(i.root()),d<l.length&&c(l.length,null);let p=n.reduce((t,e)=>t+(e.endInMs-e.startInMs),0),I=0,M=0,f=[];for(let t=0;t<s.length;t++){let e;let n=s[t];if(!n)continue;let{text:r,syncedAtMs:i}=n,l=I,a=l+r.length;I=a;let d=0;if(o.length&&a>l){var m,g,v,y;let t=Math.min(l,o.length-1),e=Math.min(a-1,o.length-1),n=null!==(v=null===(m=o[t])||void 0===m?void 0:m.s)&&void 0!==v?v:M;d=Math.max(0,(null!==(y=null===(g=o[e])||void 0===g?void 0:g.e)&&void 0!==y?y:n)-n)}let c=0===t?0:M;if(null==i){let n=Math.max(0,p-c);Math.max(1,(e=c+n)-c)<d?(f.push({startTime:c,endTime:e,playbackRate:1,textSectionIdx:t}),f.push({startTime:e,endTime:c+d,playbackRate:0,textSectionIdx:t})):f.push({startTime:c,endTime:e,playbackRate:1,textSectionIdx:t})}else{let n=Math.max(1,(e=i)-c)/d;f.push({startTime:c,endTime:e,playbackRate:n,textSectionIdx:t})}M=e}let b=function(t,e){let n=0,r=t.map((t,e)=>{let r=t.endInMs-t.startInMs,i={...t,index:e,duration:r,resStartMs:n,resEndMs:n+r};return n+=r,i}),i=[];return e.forEach(t=>{let{startTime:e,endTime:n,playbackRate:o}=t;for(let t of r){let r=Math.max(e,t.resStartMs),s=Math.min(n,t.resEndMs);if(s>r){let e=r-t.resStartMs,n=t.startInMs+e,l=s-r;i.push({playbackRate:o,startTime:n,duration:l})}}}),i}(n,f);return{resolved:f,mapped:b}}
1async function u(t){let{clip:e}=t,n=[];if(e.type===i.NJ.MEDIA&&e.source.type===i.Ap.VIDEO){if(e.voiceover.voiceId&&e.isSynced){let{resolved:t,mapped:i}=await c(e.voiceover.transcript,e.voiceover.charTranscriptFile,e.sequences),s=e.voiceover.charTranscriptFile?await a({fileUrl:e.voiceover.charTranscriptFile}):[];(function(t,e,n,i){if(0===i.length)return t;let o=function(t){let e=(0,r.zD)(t),n=[],i="",o=0,s=t=>{let e=i.slice(o,t).trim();e.length&&n.push(e),o=t},l=t=>{if(!t)return;let e=t.replace(/\s+/g," ");if(!e.trim()){i&&!i.endsWith(" ")&&(i+=" ");return}i&&i.endsWith(" ")&&e.startsWith(" ")?i+=e.slice(1):i+=e},a=t=>{for(let r of t.contents().toArray())if("text"===r.type)l(e(r).text());else if("tag"===r.type){var n;let t=null===(n=r.name)||void 0===n?void 0:n.toLowerCase();"sync-inline"===t?s(i.length):(("br"===t||"p"===t||"div"===t)&&l(" "),a(e(r)))}};if(a(e.root()),o<i.length){let t=i.slice(o).trim();t.length&&n.push(t)}let d=[],c=0;for(let t of n)d.push({startChar:c,endChar:c+t.length}),c+=t.length;return d}(n),s=[],l=0,a=-1;for(let n of e){let e=n.textSectionIdx,r=o[e];if(r&&i.length>0&&e!==a&&l<t.length){var d,c,u,h,p;let n=null!==(u=null===(d=i[r.startChar])||void 0===d?void 0:d.s)&&void 0!==u?u:0,I=e>0?o[e-1]:null,M=n-(I&&null!==(p=null===(c=i[(null!==(h=I.endChar)&&void 0!==h?h:1)-1])||void 0===c?void 0:c.e)&&void 0!==p?p:0);M>50&&s.push({startTime:t[l].startTime,duration:M,playbackRate:0}),a=e}let I=n.endTime-n.startTime,M=0;for(;l<t.length&&M<I-.5;)s.push(t[l]),M+=t[l].duration,l++}for(;l<t.length;)s.push(t[l]),l++;return s})(i,t,e.voiceover.transcript,s).forEach(t=>{if(t.playbackRate<.001)for(let e=(0,o.I0)(t.startTime,d);e<(0,o.I0)(t.startTime+t.duration,d);e++)n.push(Math.floor((0,o.I0)(t.startTime,d)));else for(let e=(0,o.I0)(t.startTime,d);e<(0,o.I0)(t.startTime+t.duration,d);e+=t.playbackRate)n.push(Math.floor(e))})}else e.sequences.forEach(t=>{for(let e=(0,o.I0)(t.startInMs,d);e<(0,o.I0)(t.endInMs,d);e++)n.push(e)})}else for(let t=0;t<(0,o.I0)(e.durationInMs,d);t+=e.durationInMs)n.push(t);return n}let h=(t,e,n)=>{let r=(0,o.I0)(t,d),i=r>=e.length?Math.max(e.length-1,0):r,s=e[i];if(void 0===s||0===n.length)return -1;let l=n.findIndex((t,e)=>{var r;return t<=s&&(!(e<n.length-1)||(null!==(r=n[e+1])&&void 0!==r?r:1/0)>=s)});return -1===l?-1:(0,o.f5)(l,d)}},430:function(t,e,n){n.d(e,{I0:function(){return o},OM:function(){return l},_9:function(){return u},e_:function(){return c},f5:function(){return s},pX:function(){return a}});var r=n(23503),i=n(94025);let o=(t,e)=>Math.floor(t/1e3*e),s=(t,e)=>Math.floor(t/e*1e3),l=t=>t.reduce((t,e)=>t+e.durationInMs,0),a=(t,e)=>o(l(t),e),d=t=>{let e=0;return t.filter(t=>t.type===i.NJ.MEDIA&&t.source.type===i.Ap.VIDEO).forEach(t=>t.sequences.forEach(t=>{e+=Math.max(t.endInMs-t.startInMs,0)})),e},c=(t,e)=>o(d(t),e),u=t=>t.type!==i.NJ.MEDIA||t.source.type!==i.Ap.VIDEO?r.Oj:t.sequences.reduce((t,e)=>t+(e.endInMs-e.startInMs),0)}}]);
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.