1(this["webpackJsonprecast-app"]=this["webpackJsonprecast-app"]||[]).push([[5],{102:function(e,t,n){"use strict";n.d(t,"p",(function(){return w})),n.d(t,"d",(function(){return E})),n.d(t,"f",(function(){return b})),n.d(t,"m",(function(){return v})),n.d(t,"n",(function(){return A})),n.d(t,"o",(function(){return O})),n.d(t,"b",(function(){return S})),n.d(t,"l",(function(){return R})),n.d(t,"e",(function(){return I})),n.d(t,"a",(function(){return k})),n.d(t,"c",(function(){return N})),n.d(t,"g",(function(){return j})),n.d(t,"h",(function(){return L})),n.d(t,"i",(function(){return P})),n.d(t,"j",(function(){return x})),n.d(t,"k",(function(){return M}));var i=n(21),a=n.n(i),r=n(27),o=n(12),s=n(15),l=n(14),c=n(5),d=n(99),u=n(130),f=n(256),h=n(38),p=(n(40),n(141)),m=n(276),g=n(33);function w(e,t,n){let i=t;return"uppercase"==n?i=t.toUpperCase():"lowercase"==n?i=t.toLowerCase():"capitalize"==n&&(i=t.capitalize()),e?(e.set("text",i),e):i}function E(e){let t=parseInt(e.substring(0,2)),n=parseInt(e.substring(3,5)),i=parseInt(e.substring(6,8)),a=parseInt(e.substring(9,11));return 60*t*60+60*n+i+Number((a/100).toFixed(2))}function b(e){let t=e.key,n=e.options;37!==t||n.shiftKey?38!==t||n.shiftKey?39!==t||n.shiftKey?40!==t||n.shiftKey?46===t||8===t?y(c.M.DELETE):90===t&&n.shiftKey&&(n.ctrlKey||n.metaKey)?Object(u.c)():90===t&&(n.ctrlKey||n.metaKey)?Object(u.f)():83===t&&(n.ctrlKey||n.metaKey)?A(e.check):67===t&&(n.ctrlKey||n.metaKey)?function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t=n?Object(l.f)(l.d,n):l.d.getActiveObject();if(!t||"textbox"===t.type&&t.isEditing||["audioWave","audio","videoContainer","videoFrame"].includes(t.type))return;t.clone((function(n){if(t.fabricObject){t.fabricObject.clone((function(i){n.fabricObject=i,window._clipboard=n,e&&e(t)}))}else window._clipboard=n,e&&e(t)}))}():86===t&&(n.ctrlKey||n.metaKey)?function(e){if(!window._clipboard||"textbox"===window._clipboard.type&&window._clipboard.isEditing||["audioWave","audio","videoContainer","videoFrame"].includes(window._clipboard.type))return;window._clipboard.clone((function(t){if(window._clipboard.fabricObject){window._clipboard.fabricObject.clone((function(n){t.fabricObject=n,C(t,e)}))}else C(t,e)}))}((function(e){S(e),Object(s.j)(),Object(l.c)(e,c.a.ADD)})):187===t?n.shiftKey?Object(l.v)(-.1):(n.ctrlKey||n.metaKey)&&Object(l.p)():189===t&&n.shiftKey&&Object(l.v)(.1):n.ctrlKey||n.metaKey?x({action:c.M.DOWN}):y(c.M.DOWN):n.ctrlKey||n.metaKey||y(c.M.RIGHT):n.ctrlKey||n.metaKey?x({action:c.M.UP}):y(c.M.UP):n.ctrlKey||n.metaKey||y(c.M.LEFT),37===t&&n.shiftKey?Object(l.l)(10,0):38===t&&n.shiftKey?Object(l.l)(0,10):39===t&&n.shiftKey?Object(l.l)(-10,0):40===t&&n.shiftKey&&Object(l.l)(0,-10)}function y(e){if(!l.d)return;let t=l.d.getActiveObject(),n=l.d.getObjects("videoFrame");
1if(!t)return;let i=JSON.parse(JSON.stringify(t)),a=!1;if(t){switch(e){case c.M.LEFT:t.left=t.left-c.p;break;case c.M.UP:t.top=t.top-c.p;break;case c.M.RIGHT:t.left=t.left+c.p;break;case c.M.DOWN:t.top=t.top+c.p;break;case c.M.DELETE:if(t.isEditing||"videoFrame"==t.type&&1==n.length)return;R(),a=!0}a||Object(l.c)(t,c.a.UPDATE,i)}else console.log("no object selected")}function v(e,t){let n=!1;t&&("center"===t.originX&&"center"===t.originY||(t.setOriginToCenter&&t.setOriginToCenter(),n=!0),t.set("angle",e),t.setCoords(),n&&t.setCenterToOrigin&&t.setCenterToOrigin())}function _(e){if(!l.d)return Promise.resolve();let t=JSON.parse(localStorage.getItem("recast_user")).token,n=r.b.save_project.format(e,t);l.d.includeDefaultValues=!1;let i=l.d.toJSON().objects;return i=function(e){let t=[],n=!1;for(let i of e){let e=i.recast;[c.D.BACKGROUND_MEDIA,c.D.AUDIO].includes(e.layer)&&[c.f[1],c.f[5]].includes(e.asset)?n||(n=!0,t.push(i)):t.push(i)}return t}(i),a.a.publish("SAVING_PROJECT",!0),window.savingProject=!0,new Promise((t,o)=>{Object(r.c)("POST",n,i,n=>{window.savingProject=!1,localStorage.setItem("dirty_canvas_"+e,!1),a.a.publish("SAVING_PROJECT",!1),t(n)},t=>{window.savingProject=!1,localStorage.setItem("dirty_canvas_"+e,!1),a.a.publish("SAVING_PROJECT",!1),o(t)})})}async function A(e){if(e.includes("transcript")){JSON.parse(localStorage.getItem("dirty_transcript_"+window.project_id))&&await function(e){let t=window.transcript;if(!t)return;let n=t.captions&&t.captions.length,i=t.subtitles&&t.subtitles.length,o=t.action&&"replace"==t.action;if(t.action&&t.action,!(n||i||o))return;let s={transcript:t};return a.a.publish("SAVING_PROJECT",!0),window.savingProject=!0,new Promise((t,n)=>{Object(r.c)("PATCH",r.a.project.format(e),s,n=>{window.savingProject=!1,localStorage.setItem("dirty_transcript_"+e,!1),a.a.publish("SAVING_PROJECT",!1),t(n)},t=>{window.savingProject=!1,localStorage.setItem("dirty_transcript_"+e,!1),a.a.publish("SAVING_PROJECT",!1),n(t)})})}(window.project_id)}if(e.includes("canvas")){if(JSON.parse(localStorage.getItem("dirty_canvas_"+window.project_id))){try{await _(window.project_id)}catch(t){}!function(e){let t=N();t&&Object(f.a)(t,e+"_project_poster.jpg",!1,window.videoDimension)}(window.project_id)}}}function O(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:15e3;return setInterval(()=>{window.savingProject||window.fileUploading||A(e)},t)}function C(e,t){if(l.d&&l.d.discardActiveObject(),!e||!e.hasOwnProperty("recast"))return;let n=e.recast;if(n)if(n.layer!=c.D.BACKGROUND_MEDIA?e.set({left:e.left+20,top:e.top+20,evented:!0}):e.set({evented:!0}),e.setCoords(),"activeSelection"===e.type||"group"===e.type){e.canvas=l.d,e._restoreObjectsState();var i=e.getObjects();let n=0,a=i.length;!function r(){if(n<a){let e=i[n++];"object"==typeof e&&T(e,r)}else window._clipboard.top+=20,window._clipboard.left+=20,t(e)}()}else window._clipboard.top+=20,window._clipboard.left+=20,T(e,t)}function T(e,t){let n=JSON.parse(JSON.stringify(e.recast));const i=function(){let e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){let n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"===t?n:3&n|8).toString(16)}))}();let a=null,r=e.recast.layer;if(r===c.D.BACKGROUND_MEDIA||r===c.D.AUDIO){const{pos:e,idx:t}=function(e){let t=l.d.getObjects("imageContainer");t=t.concat(l.d.getObjects("videoContainer")),t=t.concat(l.d.getObjects("audio"));let n=0,i=1;for(let a=0;a<t.length;a++){let r=t[a].recast;r.layer===e&&(i+=1,r.end>n&&(n=r.end))}return{pos:n,idx:i}}(r);a=t,n.position=e,n.end=e+n.duration}n.refId=i,e.set("recast",n),Object(d.c)(e,a,l.d,(function(e){e&&t(e)}))}function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if(e){n&&!["videoFrame"].includes(e.type)&&(l.d.setActiveObject(e),l.d.requestRenderAll(),Object(o.t)(e)),Object(s.a)(e,t);let i=e.recast,a=s.c.time();(a<i.position||a>i.end)&&(a=i.position+c.O);let r=Object(g.d)();r&&(a+=r),s.c.data.seek=a,s.f.data.seek=a,Object(s.g)(e,c.a.ADD,l.d)}}function R(){let e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(e=t?Object(l.f)(l.d,t.refId):l.d.getActiveObject(),e){let n=e.recast;if(!n||[c.D.BACKGROUND_MEDIA,c.D.AUDIO,c.D.BACKGROUND].includes(n.layer))return;if("activeSelection"==e.type||"group"==e.type)return;a.a.publish("COLORS_UPDATED");let i=e.getZIndex();e.clone((function(n){l.d.remove(e),Object(l.c)(n,c.a.REMOVE,null,i),Object(s.h)(n,l.d),Object(o.t)({...n,delete:!0,source:null===t||void 0===t?void 0:t.source}),D(n)}))}}function D(e){let t=e.recast;[c.f[1],c.f[5]].includes(t.asset)&&window.mediaManager.removeByRefId(t.refId),t.layer!=c.D.INTRO&&t.layer!=c.D.OUTRO||Object(l.j)(e,c.a.REMOVE)}function I(e,t,n){if(Object(o.q)(n,e,t),"fontWeight"===e){let{fw:e,fs:i}=Object(p.b)(t);e&&Object(o.q)(n,"fontWeight",e),i&&Object(o.q)(n,"fontStyle",i)}}function k(e,t){if(!t||!t.getElement())return;let n=e.recast,i="editor_canvas"==t.getElement().id?s.c:s.f;"rect"===e.type&&n.layer===c.D.BACKGROUND&&e.set({selectable:!1,evented:!1}),Object(s.b)(e,i,t)}function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200;try{let t=l.d||l.u,n=t.viewportTransform,i=t.getZoom(),a={format:"jpeg",quality:.8,multiplier:e/(o.w.height*i),enableRetinaScaling:!0,top:n[5],left
1:n[4],width:o.w.width*i,height:o.w.height*i};return t.toDataURL(a)}catch(t){console.log(t.message)}}function j(e){if(!l.d)return[];let t=[],n=l.d.getObjects();for(let i=0;i<n.length;i++){e==n[i].recast.layer&&t.push(n[i])}return t}function L(){if(!l.d&&!l.u)return;let e={},t=(l.d||l.u).getObjects();for(let n=0;n<t.length;n++){let i=t[n].recast;[c.D.TEXT].includes(i.layer)&&i.hasOwnProperty("label")?i.label==c.o.HEADING?e.heading=t[n].text:i.label==c.o.SUB_HEADING&&(e.sub_heading=t[n].text):[c.D.MEDIA].includes(i.layer)&&i.asset==c.f[0]&&i.hasOwnProperty("label")&&i.label==c.o.PODCAST_COVER?e.podcast_cover=Object(h.B)(i.originalUrl)?i.originalUrl:"":[c.D.BACKGROUND_MEDIA,c.D.AUDIO].includes(i.layer)&&[c.f[1],c.f[5]].includes(i.asset)&&(e=Object.assign(e,{asset:i.asset,title:i.title,posterUrl:i.posterUrl,originalUrl:i.originalUrl,previewUrl:i.previewUrl,trim:i.trim,cuts:i.cuts,refId:i.refId,videoDuration:i.videoDuration,audioDuration:i.audioDuration,position:0,end:i.duration,duration:i.duration,videoSrc:i.videoSrc,audioSrc:i.audioSrc,waveDataUrl:i.waveDataUrl,fftDataUrl:i.fftDataUrl||"",transcribe:i.transcribe||{status:"COMPLETED"}}))}return e}function P(){if(!l.d)return;let e=l.d.getObjects("subtitle"),t=null;return e.length&&(t=Object(o.k)(e[0],!1,!1)),t}function x(e){let t=e.action,n=null,i=e.refId;i?n=Object(l.f)(null,i):(n=l.d.getActiveObject(),i=n.recast.refId);let a=l.d.getObjects().length-1;if(!n)return;let r=n.getZIndex(),d=r,u=s.c.data.layers,f=u.findIndex(e=>e.refId==i);t==c.M.UP?(d+=1,u=Object(h.H)(u,f)):t==c.M.DOWN?(d-=1,u=Object(h.G)(u,f)):t==c.M.INDEX&&(d=a-e.newIndex,u=Object(m.arrayMove)(u,f,e.newIndex)),d<1&&(d=1),d>a&&(d=a),function(e,t,n){t!==n&&(l.d.moveTo(l.d.item(t),n),l.d.requestRenderAll(),s.c.data.layers=e,l.u.moveTo(l.u.item(t),n),l.u.requestRenderAll(),Object(l.r)())}(u,r,d),Object(o.p)({initializeTimeline:!0,sceneLayers:u})}const M=(e,t)=>e?t.reduce((t,n)=>(n in e&&(t[n]=e[n]),t),{}):{}},105:function(e,t,n){"use strict";n.d(t,"a",(function(){return i})),n.d(t,"c",(function(){return a})),n.d(t,"d",(function(){return r})),n.d(t,"b",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"f",(function(){return d})),n.d(t,"g",(function(){return h})),n.d(t,"h",(function(){return m}));const i=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;e&&e.forEach((e,i)=>{e.shapes&&e.shapes.forEach((e,a)=>{let r=e.it||[e];r&&r.forEach((e,r)=>{if("fl"===e.ty||"st"===e.ty){const o=e.c.k;let[s,l,u,f]=o;if((s||0===s)&&(l||0===l)&&(u||0===u)){s=c(s),l=c(l),u=c(u);let e=d(s,l,u);const o={i:i,j:a,k:r,r:s,g:l,b:u,a:f,asset:n,color:e,dirty:!1,hex:e,ref:e};t&&t(o)}}})})})},a=(e,t)=>{e&&e.forEach((e,n)=>{e.t&&e.t.d&&e.t.d.k&&e.t.d.k.forEach((e,i)=>{if(e.s&&e.s.t){let[a,r,o]=e.s.fc;a=c(a),r=c(r),o=c(o);let s=d(a,r,o);const l={i:n,j:i,k:0,r:a,g:r,b:o,a:1,asset:-2,color:s,dirty:!1,hex:s,ref:s};t&&t(l)}})})},r=(e,t)=>{e&&e.forEach((e,n)=>{e.t&&e.t.d&&e.t.d.k&&e.t.d.k.forEach((e,i)=>{if(e.s&&e.s.t){const a={i:n,j:i,dirty:!1,t:e.s.t,f:e.s.f,ref:e.s.t};t&&t(a)}})})},o=(e,t)=>{e&&e.list.forEach((e,n)=>{t&&t(e)})},s=e=>{const t=u(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:{r:0,g:0,b:0}},l=e=>Math.round(e/255*1e3)/1e3,c=e=>Math.round(255*e),d=(e,t,n)=>`#${f(e)}${f(t)}${f(n)}`,u=e=>/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),f=e=>{const t=e.toString(16);return 1===t.length?"0"+t:t},h=(e,t,n)=>{let i=JSON.parse(JSON.stringify(t));return i=p(e,i,n),i},p=(e,t,n)=>{const{i:i,j:a,k:r,a:o,asset:c}=n,{r:d,g:u,b:f}=s(e);if(-1===c){if(t&&t.layers){(t.layers[i].shapes[a].it?t.layers[i].shapes[a].it[r]:t.layers[i].shapes[a]).c.k=[l(d),l(u),l(f),o]}}else if(-2===c)t&&t.layers&&(t.layers[i].t.d.k[a].s.fc=[l(d),l(u),l(f),o]);else if(t&&t.assets&&t.assets[c]){(t.assets[c].layers[i].shapes[a].it?t.assets[c].layers[i].shapes[a].it[r]:t.assets[c].layers[i].shapes[a]).c.k=[l(d),l(u),l(f),o]}return t},m=(e,t,n)=>{let i=JSON.parse(JSON.stringify(t));return i=g(e,i,n),i},g=(e,t,n)=>{const{i:i,j:a}=n;return t&&t.layers&&(t.layers[i].t.d.k[a].s.t=e),t}},117:function(e,t,n){"use strict";n.d(t,"f",(function(){return v})),n.d(t,"d",(function(){return T})),n.d(t,"b",(function(){return R})),n.d(t,"c",(function(){return D})),n.d(t,"e",(function(){return I})),n.d(t,"a",(function(){return k})),n.d(t,"g",(function(){return N}));var i=n(40),a=n(60),r=n(15),o=n(14),s=n(12),l=n(99),c=n(102),d=n(5),u=n(98),f=n(38),h=n(33);function p(e,t,n){if(!e.lastExpectedTime||!n||0===n.length)return!1;for(let i=0;i<n.length;i++){const a=n[i];if(void 0!==a.start&&void 0!==a.end){const n=e.lastExpectedTime<a.start,i=t>=a.end;if(n&&i)return!0}}return!1}async function m(e,t,n,i){if(void 0===e.lastExpectedTime&&(e.lastExpectedTime=null),null!==e.lastExpectedTime&&!window.isSeeking){if(p(e,t,n.cuts||[]))return void await async function(e,t,n){window.isSeeking=!0;const i=window.isAnimating;let o=null;try{i&&(o=r.f.time(),a.a.ticker.remove(n),r.f.pause(),window.isAnimating=!1),await e.seekToTime(t),e.render(t),e.lastExpectedTime=t}finally{i&&!window.previewEnded&&(r.f.play(),window.isAnimating=!0,a.a.ticker.add(n)),window.isSeeking=!1}}(e,t,i)}e.lastExpectedTime=t,e.render(t)}async function g(e,t){if(!e)return;window.isSeeking=!0;const n=!e.paused;try{n&&e.pause(),await Object(u.c)(e,t),e.lastExpectedTime=t}finally{n&&e.play().catch(()=>{}),window.isSeeking=!1}}async function w(e,t){const{element:n,trim:i,loop:a,id:r,asset:o}=e;if(!n||o!==d.f[1])return;if(!a||"VIDEO"!==n.tagName)return;if(window.isRecording||n.paused)return;let s=Object(h.d)(),l=JSON.parse(JSON.stringify(e));s>0&&![d.D.INTRO].includes(l.layer)&&(l.position+=s,l.end+=s);let c=Object(u.b)(t,l,null);void 0!==c&&!isNaN(c)&&isFinite(c)&&c<n.currentTime&&(n.currentTime=c)}async function E(e,t){var n,i;const a=null===(n=window.mediaManager)||void 0===n?void 0:n.getPrimaryMedia();if(!a)return;let r=`${a.asset}_${a.refId}`,o=Object(h.d)();const s=JSON.parse(JSON.stringify(a));if(o>0&&![d.D.INTRO].includes(s.layer)&&(s.position+=o,s.end+=o),e<s.position||e>=s.end)return;let l=Object(u.b)(e,s,null);if(void 0==l||isNaN(l)||!isFinite(l))return;const c=window.mediaManager.get(r);if(!c)return;if(window.mediaManager&&window.mediaManager.isRecastVideo(c))return void await m(c,l,a,t);await async function(e,t,n){if(e&&!e.paused){if(void 0===e.lastExpectedTime&&(e.lastExpectedTime=null),null!==e.lastExpectedTime&&!window.isSeeking){var i;if(p(e,t,n.cuts||[]))return void await g(e,t);if(function(e,t,n){if(!e.lastExpectedTime||!n||0===n.length)return!1;for(let i=1;i<n.length;i++){const a=n[i];if(null!=a.start){const n=e.lastExpectedTime<a.start,i=t>=a.start;if(n&&i)return!0}}return!1}(e,t,(null===(i=window.transcript)||void 0===i?void 0:i.scenes)||[]))return void await g(e,t)}e.lastExpectedTime=t}}(c,l,a);const f=null===(i=window.mediaManager)||void 0===i?void 0:i.getActiveOverlaysAtTime(e);
1if(f&&f.length>0)for(const d of f)await w(d,e)}var b=n(251),y=n(260);async function v(){if(!window.isAnimating||window.isRecording||!r.f||!r.f.data)return;let e=r.f.time(),t=Object(h.j)();t&&(e<=t?window.isAnimating&&window.buffering?(await E(e,v),o.u&&o.u.renderAll()):window.isAnimating&&(await E(e,v),Object(s.p)({playingScene:!0,isPlaying:!0,playPos:e}),o.u&&o.u.renderAll()):_())}async function _(){window.previewEnded||(window.previewEnded=!0,window.isAnimating=!1,a.a.ticker.remove(v),window.isRecording?N():await R())}function A(e){let t=0;const{pollUntilReady:n,markFinished:i}=Object(y.a)("preview");let a=o.u.getObjects(),p=a.length;Object(r.e)(a,e);let m=[],g=[],w=[];for(let r=p-1;r>=0;r--)if("audioWave"==a[r].type)m.push({obj:a[r],index:r});else if("subtitle"==a[r].type)g.push({obj:a[r],index:r});else if("videoFrame"==a[r].type)w.push({obj:a[r],index:r});else{let e=a[r].recast;[d.D.BACKGROUND_MEDIA,d.D.AUDIO].includes(e.layer)&&(a[r].recast.cuts=Object(f.E)(e.cuts||[])),Object(l.c)(a[r],r,o.u,(function(e){t+=1,e&&Object(c.a)(e,o.u)}),!0)}let E=m.length,v=g.length,A=w.length;n(()=>t>=p-(E+v+A),()=>{for(let e=0;e<E;e++){let n=m[e];Object(l.c)(n.obj,n.index,o.u,(function(e){t+=1,e&&Object(c.a)(e,o.u)}))}}),n(()=>t>=p-(v+A),()=>{for(let e=0;e<v;e++){let n=g[e];Object(l.c)(n.obj,n.index,o.u,(function(e){t+=1,e&&Object(c.a)(e,o.u)}),!1)}}),n(()=>t>=p-A,()=>{for(let e=0;e<A;e++){let n=w[e];Object(l.c)(n.obj,n.index,o.u,(function(e){t+=1,e&&Object(c.a)(e,o.u)}))}}),n(()=>t>=p,(function(){i()&&function(){r.f.progress(1).progress(0),r.f.eventCallback("onComplete",_),window.isRecording&&r.f.eventCallback("onUpdate",async()=>{let e=r.f.time(),t=Object(h.j)();t&&e<=t&&(await Object(u.a)(!1,o.u,e,[],[],["bodyMoving"]),window.offthreadVideo&&await Object(b.d)(o.u,e),o.u.renderAll())});window.isRecording?(r.f.seek(window.previewStartTime,!1),r.f.data.seek=window.previewStartTime,setTimeout((function(){window.isAnimating=!0}),1e3)):window.isLocalRendering?(r.f.seek(0,!1),r.f.data.seek=0,Object(s.p)({previewLoaded:!0})):(window.isAdvanceEditor&&Object(o.p)(),Object(s.b)(o.u),Object(s.p)({objectLoaded:!0}),Object(s.p)({previewLoaded:!0}),O())}()}))}function O(e){if(window.isAdvanceEditor){let t=document.getElementById("preview_canvas_container"),n=document.getElementById("editor_canvas_container");const i="play"===e;n&&(n.style.display=i?"none":"block"),t&&(t.style.display=i?"block":"none")}}function C(){setTimeout((function(){!async function(){if(!r.f||!r.f.data)return;window.mediaManager&&window.mediaManager.isEnabled()&&await window.mediaManager.whenAllReady();window.buffering=!1,window.previewEnded=!1,window.isAnimating=!0;r.f.data.seek>=Object(h.j)()&&(S(0),await Object(u.a)(!1,null,0));await Object(u.a)(!0),r.f.play(),a.a.ticker.add(v)}()}),0)}function T(e){S(e||r.f.data.seek),C(),O("play")}function S(e){if(void 0!=e){if(r.f){let t=Object(h.j)();e>t&&(e=t),r.f.pause(),r.f.seek(e),r.f.data.seek=e}r.c&&(r.c.pause(),r.c.seek(e),r.c.data.seek=e)}}async function R(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!r.f)return;let n=r.f.time();const i=Object(h.j)();return n>=i&&(n=i),S(n),await N(n),t||O(),o.u&&o.u.requestRenderAll(),o.d&&o.d.requestRenderAll(),!0}function D(e){S(e),N(e),o.u&&o.u.requestRenderAll(),o.d&&o.d.requestRenderAll()}function I(e,t){k(JSON.parse(e),t)}function k(e,t){const n=Object(h.e)(e&&e.objects);o.u.loadFromJSON(JSON.stringify(e),(function(){A(t)}),(function(e,t){if(t&&t.hasOwnProperty("recast")){let e=t.recast;if(e.hasOwnProperty("hide")&&e.hide)t.set({visible:!1});else if(window.isRecording){const i=e.layer;if(i===d.D.BACKGROUND)t.set({visible:!0});else{const a=Number(e.position),r=Number.isFinite(a)?a:0,o=i===d.D.INTRO?r:r+n;Math.abs(o)<1e-6?t.set({visible:!0}):t.set({visible:!1})}}else t.set({visible:!0});o.u.add(t)}})),o.u.clipPath=new i.fabric.Rect({left:0,top:0,width:s.w.width,height:s.w.height,strokeWidth:0})}async function N(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return window.isAnimating=!1,a.a.ticker.remove(v),Object(s.p)({playingScene:!0,isPlaying:!1,playPos:e}),await Object(u.a)(!1,null,e),!0}a.a.ticker.fps(Object(s.f)())},12:function(e,t,n){"use strict";n.d(t,"w",(function(){return l})),n.d(t,"s",(function(){return d})),n.d(t,"r",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"d",(function(){return h})),n.d(t,"q",(function(){return m})),n.d(t,"g",(function(){return g})),n.d(t,"p",(function(){return w})),n.d(t,"i",(function(){return E})),n.d(t,"h",(function(){return b})),n.d(t,"t",(function(){return y}
1)),n.d(t,"k",(function(){return v})),n.d(t,"e",(function(){return A})),n.d(t,"c",(function(){return O})),n.d(t,"v",(function(){return C})),n.d(t,"u",(function(){return T})),n.d(t,"n",(function(){return S})),n.d(t,"l",(function(){return R})),n.d(t,"m",(function(){return D})),n.d(t,"o",(function(){return I})),n.d(t,"b",(function(){return k})),n.d(t,"a",(function(){return N})),n.d(t,"j",(function(){return j}));var i=n(40),a=n(21),r=n.n(a),o=n(5),s=n(31);let l,c;function d(e){window.videoFormat=e;let t=e.width+"X"+e.height;window.videoDimension=t,c=t,l=e}function u(e){window.videoFps=e}function f(){return window.videoFps||o.rb}function h(e,t){if([o.D.MEDIA,o.D.OVERLAY,o.D.BACKGROUND_MEDIA,o.D.AUDIO_WAVE,o.D.PROGRESS_BAR,o.D.INTRO,o.D.OUTRO].includes(e)){let n="image";return[o.D.MEDIA,o.D.INTRO,o.D.OUTRO,o.D.OVERLAY].includes(e)?n=t==o.f[0]?"imageContainer":t==o.f[1]?"videoContainer":t==o.f[4]?"bodyMoving":t==o.f[2]?"rect":"image":e==o.D.BACKGROUND_MEDIA?n=t==o.f[0]?"imageContainer":t==o.f[1]?"videoContainer":t==o.f[5]?"audio":"image":e==o.D.AUDIO_WAVE?n="audioWave":e==o.D.PROGRESS_BAR&&(n="bodyMoving"),{type:n,left:0,top:0,opacity:1,height:0,width:0,scaleX:1,scaleY:1,selectable:!0,src:"",fill:"#808080",crossOrigin:"anonymous",visible:!0,recast:{originalUrl:"",previewUrl:"",posterUrl:"",reposition:{},animationIn:"",animation:"",duration:3,asset:t,layer:e,position:0,end:3,animationOut:"",videoSrc:"",format:1,refId:"",placement:0,dirty:!0,hide:!1,locked:!1}}}return e===o.D.TEXT||e===o.D.SUBTITLE?{top:100,fill:e==o.D.SUBTITLE?"rgba(0, 0, 0, 0.30)":"#000000",left:100,text:"Add a static text",type:e==o.D.SUBTITLE?"subtitle":"textbox",angle:0,width:1080,scaleX:1,scaleY:1,opacity:1,fontSize:48,fontStyle:"normal",textAlign:"center",fontFamily:"Roboto",fontWeight:400,verticalAlign:"middle",recast:{captionStyle:"Normal",originalUrl:"",previewUrl:"",posterUrl:"",reposition:{},animationIn:"",animation:"",duration:3,asset:t,layer:e,position:0,end:3,animationOut:"",videoSrc:"",format:1,refId:"",placement:0,hide:!1,locked:!1}}:[o.D.BACKGROUND,o.D.AUDIO].includes(e)?{type:e==o.D.AUDIO?"audio":"rect",left:0,top:0,scaleX:1,scaleY:1,fill:"#ffffff",selectable:!1,strokeWidth:0,transparentCorners:!1,visible:!0,recast:{originalUrl:"",previewUrl:"",posterUrl:"",reposition:{},animationIn:"",animation:"",duration:3,asset:t,layer:e,position:0,end:3,animationOut:"",videoSrc:"",format:1,refId:"",dirty:!0,hide:!1,locked:!0}}:void 0}function p(e,t){let n;if(e.getSelectionStyles&&e.isEditing&&o.Y.includes(t)){let i=e.getSelectionStyles().find((function(e){return e.hasOwnProperty(t)}));i&&(n=i[t])}return n||(n=e.get(t)),n&&o.l.includes(t)?n=Number(Number(n).toFixed(2)):n&&o.C.includes(t)&&(n=parseInt(n)),n}function m(e,t,n){let a=n&&["fill"].includes(t)&&"object"==typeof n&&n.hasOwnProperty("colorStops");if("textbox"===e.type&&e.getSelectedText()&&e.isEditing&&o.Y.includes(t)&&!a){let i={};i[t]=n,e.setSelectionStyles(i)}else{let r=function(e,t){let n=e.styles;for(let i in n)if(n.hasOwnProperty(i)){let e=n[i];for(let n in e)if(e.hasOwnProperty(n)){let i=e[n];for(let e in i)i.hasOwnProperty(e)&&e===t&&delete i[e];e[n]=i}n[i]=e}return n}(e,t);if(e.set("styles",r),a){let a=new i.fabric.Gradient(n);e.set(t,a)}else e.set(t,n)}return e}function g(){w({initializeEditor:!0,editLayer:""})}function w(e,t){E({data:JSON.stringify(Object.assign(e,{from:"server",auto:t}))})}function E(e){if(e.data&&b(e.data)){let t=JSON.parse(e.data);if("client"===t.from)return;t.initializeEditor||(t.initializeObject?r.a.publish("INITIAL_OBJECT",t):t.initializeTimeline?r.a.publish("INITIAL_TIMELINE",t):t.initializeUndoRedo?r.a.publish("INITIAL_UNDO_REDO",t):t.updatePoster||(t.previewLoaded?r.a.publish("PREVIEW_LOADED",t):t.initializeSave||(t.playingScene?r.a.publish("PLAY_POSITION",t):t.objectLoaded?r.a.publish("OBJECT_LOADED",t):t.canvasZoomed&&r.a.publish("ADJUST_ZOOM",t.value))))}}function b(e){try{return JSON.parse(e)&&!!e}catch(t){return!1}}function y(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e?"textbox"==e.type&&e.isEditing&&!e.getSelectedText()||setTimeout((function(){v(e,t)}),0):w({initializeObject:!0,layer:o.D.BACKGROUND},t)}function v(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2];if("activeSelection"==e.type)return;const i={ease:"Ease",type:"no_animation",speed:.7};let a=e.recast;if(e.delete){let i={initializeObject:!0,refId:a.refId,layer:a.layer,delete:!0,source:e.source};return n&&w(i,t),i}e.setCoords();let r={initializeObject:!0,type:p(e,"type"),width:p(e,"width"),height:p(e,"height"),left:p(e,"left"),top:p(e,"top"),scaleX:p(e,"scaleX"),scaleY:p(e,"scaleY"),angle:p(e,"angle"),opacity:p(e,"opacity"),flipX:p(e,"flipX"),flipY:p(e,"flipY"),fill:e.fill,rx:e.rx,ry:e.ry},s=e.filters||[];if(e.content&&e.content.filters&&e.content.filters.length>0&&(s=e.content.filters),Object.assign(r,{shadow:e.shadow,stroke:e.stroke,strokeWidth:e.strokeWidth,border:a.border||"none",shadowType:a.shadowType,filters:s,asset:a.asset,layer:a.layer,exclude:a.exclude||!1,keepRatio:a.keepRatio,hide:a.hide||!1,locked:a.locked||!1,refId:a.refId,position:a.position,end:a.end,posterUrl:a.posterUrl,gravity:a.gravity||"0",animationIn:a.animationIn||i,animation:a.animation||i,animationOut:a.animationOut||i,fillGradientAngle:a.fillGradientAngle||0,strokeGradientAngle:a.strokeGradientAngle||0,mediaRef:a.mediaRef,label:a.label||"",radiu
1s:a.radius||0,display:a.title||a.layer===o.D.TEXT?"Text":a.asset==o.f[4]?"Overlay":a.asset==o.f[2]?"Shape":(a.asset||e.type).capitalize()}),a.layer===o.D.TEXT||a.layer===o.D.SUBTITLE)Object.assign(r,{text:e.text,fontFamily:p(e,"fontFamily"),fontSize:p(e,"fontSize"),textBackgroundColor:p(e,"textBackgroundColor"),backgroundColor:p(e,"backgroundColor"),textAlign:p(e,"textAlign"),lineHeight:p(e,"lineHeight"),charSpacing:p(e,"charSpacing"),linethrough:p(e,"linethrough"),underline:p(e,"underline"),overline:p(e,"overline"),verticalAlign:e.verticalAlign||"middle",transform:a.transform||"",title:a.title||"",description:a.description||"",captionStyle:a.captionStyle||"",activeColor:a.activeColor,highlightBoxColor:a.highlightBoxColor,activeFill:a.activeFill,activeBackground:a.activeBackground,futureFill:a.futureFill,futureBackground:a.futureBackground,bgCornerRadius:e.bgCornerRadius,emphasize:a.emphasize||!1,wordLimit:a.wordLimit||"auto"}),a.layer===o.D.SUBTITLE&&Object.assign(r,{transcribe:a.transcribe});else if([o.D.MEDIA,o.D.BACKGROUND_MEDIA,o.D.AUDIO].includes(a.layer)){let t=a.trim;t&&t.hasOwnProperty("start")&&t.hasOwnProperty("end")||(t={start:0,end:a.videoDuration||a.audioDuration}),Object.assign(r,{videoDuration:a.videoDuration||0,audioDuration:a.audioDuration||0,videoSrc:a.previewUrl||a.blobUrl,audioSrc:a.previewUrl||a.blobUrl,trim:t,fade:a.fade||{in:0,out:0},cuts:a.cuts||[],posterUrl:a.posterUrl,loop:a.loop||!1,title:a.title||"",description:a.description||"",volume:a.volume||0==a.volume?a.volume:1,playbackSpeed:a.playbackSpeed||1,mute:a.mute||!1,lineWidth:e.lineWidth||0}),[o.f[0],o.f[1]].includes(a.asset)&&Object.assign(r,{scaleType:a.scaleType||"fill",focus:a.focus||{x:.5,y:.5},zoom:a.zoom||0,containerColor:a.containerColor||"transparent",padding:a.padding||0})}else a.layer===o.D.OVERLAY||a.layer===o.D.PROGRESS_BAR||a.layer===o.D.INTRO||a.layer===o.D.OUTRO?Object.assign(r,{title:a.title||"",videoDuration:a.videoDuration||0,videoSrc:a.previewUrl,posterUrl:a.posterUrl,loop:a.loop||!1,broll:a.broll||!1,trim:a.trim||{start:0,end:a.videoDuration||0},rows:_(a.rows||[]),texts:a.texts||[],changeColor:a.changeColor||a.color_changeable||!1}):a.layer===o.D.AUDIO_WAVE&&Object.assign(r,{wave:a.wave||o.sb[0]});return n&&w(r,t),r}function _(e){const t=[],n=[];for(let i=0;i<e.length;i++){let a=e[i];t.includes(a.hex)||(n.push(a),t.push(a.hex))}return n}function A(e){let t=e.recast,n=t.trim;return n&&n.hasOwnProperty("start")&&n.hasOwnProperty("end")||(n={start:0,end:t.videoDuration||t.audioDuration}),{type:e.type,refId:t.refId,posterUrl:t.posterUrl||t.posterDataUrl,previewUrl:t.previewUrl||t.blobUrl,waveDataUrl:t.waveDataUrl||"",title:t.title,frame:t.frame||{},layer:t.layer,asset:t.asset,mediaRef:t.mediaRef,locked:t.locked||!1,start:t.position,end:t.end,trim:n,cuts:t.cuts||[],duration:t.duration,videoDuration:t.videoDuration,audioDuration:t.audioDuration,playbackSpeed:t.playbackSpeed||1,hide:t.hide||!1,zIndex:e.getZIndex(),broll:t.broll||!1}}function O(e,t){if(!e||!t)return!0;const n=(e,t)=>e.length===t.length&&e.every((e,n)=>{return i=e,a=t[n],Object.keys(i).length===Object.keys(a).length&&Object.keys(i).every(e=>i[e]===a[e]);var i,a});var i=n(e.rows||[],t.rows||[]);return n(e.texts||[],t.texts||[])&&i}function C(e,t){let n=t.volume||0==t.volume?t.volume:1,i=t.mute||!1,a=t.playbackSpeed||1,r=t.loop||!1;e.volume=n>1?1:n,e.muted=!!window.isRecording||i,e.playbackRate=a,e.loop=r}function T(e,t){let n=t.volume||0==t.volume?t.volume:1,i=t.mute||!1,a=t.playbackSpeed||1;e.volume=n>1?1:n,e.muted=!!window.isRecording||i,e.playbackRate=a}function S(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=t||l;var a=Math.min((i.width-n)/e.width,(i.height-n)/e.height);return e.scale(a),e.setCoords(),e}function R(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=t||l;if(e.content){var a=Math.min((i.width-n)/e.content.width,(i.height-n)/e.content.height);return e.set({width:e.content.width,height:e.content.height}),e.scale(a),e.setCoords(),e.centerObject(),e}}function D(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t||l;
1if(e&&n){var i=Math.max(n.width/e.width,n.height/e.height);return e.scale(i),e.setCoords(),e}}function I(e){if(!e)return;let t,n=e.recast,i=e.width,a=e.height;t=["imageContainer","videoContainer"].includes(e.type)?e.fabricObject.getElement():e.getElement();try{n.asset===o.f[1]?(i=t.videoWidth,a=t.videoHeight):n.asset===o.f[0]&&(i=t.width,a=t.height)}catch(r){console.log(r.message)}if(["imageContainer","videoContainer"].includes(e.type)?(e.set({height:a,width:i}),e.fabricObject.set({cropX:0,cropY:0,height:a,width:i})):e.set({cropX:0,cropY:0,height:a,width:i}),i<l.width&&a<l.height)e.set({scaleX:1,scaleY:1});else{let t=.7*l.width,n=.7*l.height;e.set({scaleX:t/e.width,scaleY:t/e.width}),e.height*e.scaleY>n&&e.set({scaleX:n/e.height,scaleY:n/e.height})}return e.setCoords(),e}function k(e){if(!l||Object(s.m)())return;let t=l.width;l.height;N("https://recasts.s3.us-east-1.amazonaws.com/manual/recast_watermark_bold.png",{top:150,left:t-478,width:428,height:114,scaleX:1,scaleY:1,opacity:1},e)}function N(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n&&i.fabric.Image.fromURL(e,(function(e){n.setOverlayImage(e,()=>{n.requestRenderAll()})}),{crossOrigin:"anonymous",selectable:!1,evented:!1,excludeFromExport:!0,...t})}function j(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;e&&(e&&e.overlayImage&&(e.overlayImage=null,e.requestRenderAll()),k(e))}window.cancelRequestAnimFrame=window.cancelAnimationFrame||window.webkitCancelRequestAnimationFrame||window.mozCancelRequestAnimationFrame||window.oCancelRequestAnimationFrame||window.msCancelRequestAnimationFrame||clearTimeout},130:function(e,t,n){"use strict";n.d(t,"e",(function(){return E})),n.d(t,"d",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"f",(function(){return _})),n.d(t,"c",(function(){return A})),n.d(t,"a",(function(){return O}));var i=n(40),a=n(102),r=n(99),o=n(12),s=n(15),l=n(14),c=n(5),d=n(21),u=n.n(d),f=n(117);let h=[],p=[];const m="undo",g="redo";function w(e){p=[],Object(o.p)({initializeUndoRedo:!0,dRedo:!0});let t=JSON.stringify(e);t&&(h.push(t),Object(o.p)({initializeUndoRedo:!0,dUndo:!1}))}function E(e,t){w({transcript:!0,current:e,previous:t})}function b(e,t){w({canvas:!0,current:e,previous:t})}function y(e){if(!e)return null;let t={};for(let r=0;r<c.ob.length;r++){var n=c.ob[r];if(e.hasOwnProperty(n)&&!["filters"].includes(n)){let r=e[n];if(["imageContainer","videoContainer"].includes(e.type))if("content"==n){let o={};for(let t=0;t<c.ob.length;t++){var i=c.ob[t];e.fabricObject&&e.fabricObject.hasOwnProperty(i)&&!["filters"].includes(i)?o[i]=e.fabricObject[i]:r&&r.hasOwnProperty(i)&&!["filters"].includes(i)&&(o[i]=r[i])}try{t[n]=JSON.parse(JSON.stringify(o))}catch(a){t[n]=o}}else if("recast"===n&&r&&"object"===typeof r)try{t[n]=JSON.parse(JSON.stringify(r))}catch(a){t[n]=r}else if("styles"===n&&r&&"object"===typeof r)try{t[n]=JSON.parse(JSON.stringify(r))}catch(a){t[n]=r}else t[n]=r;else if("recast"===n&&r&&"object"===typeof r)try{t[n]=JSON.parse(JSON.stringify(r))}catch(a){t[n]=r}else if("styles"===n&&r&&"object"===typeof r)try{t[n]=JSON.parse(JSON.stringify(r))}catch(a){t[n]=r}else t[n]=r}}return t}function v(e,t,n){let i="dRedo",a="dUndo";n==g&&(i="dUndo",a="dRedo");let r=e.pop();if(r&&t.push(JSON.stringify(JSON.parse(r))),r){Object(o.p)({initializeUndoRedo:!0,[i]:!0,[a]:!0});let t=JSON.parse(r);t.canvas?n==g?T(t.current):n==m&&T(t.previous):t.transcript&&(n==g?S(t.current):n==m&&S(t.previous)),Object(o.p)({initializeUndoRedo:!0,[i]:!1}),e.length&&Object(o.p)({initializeUndoRedo:!0,[a]:!1})}}function _(){v(h,p,m)}function A(){v(p,h,g)}function O(){h=[],p=[],Object(o.p)({initializeUndoRedo:!0,dRedo:!0,dUndo:!0})}function C(e,t,n,i){l.d.renderAll(),e||n==c.a.UPDATE?(Object(s.k)(t,l.d),Object(s.j)(),n=c.a.UPDATE):n==c.a.ADD?Object(a.b)(t,i):n==c.a.REMOVE&&Object(s.h)(t,l.d),Object(l.m)(t,n,i),Object(l.t)(t),Object(l.r)(),Object(o.t)(null);let r=s.c&&s.c.data.seek||c.O;Object(f.c)(r),setTimeout(()=>{u.a.publish("COLORS_UPDATED")},1e3)}function T(e){l.d&&l.d.discardActiveObject();let{obj:t,action:n,index:a,refId:d}=e;if(!d)return;let f=Object(l.f)(l.d,d);if(n==c.a.REMOVE)return void(f&&(l.d.remove(f),C(!1,f,n,a)));if(!t||!t.hasOwnProperty("recast"))return;let h=t.recast;if(h)if(n!=c.a.UPDATE){if(n==c.a.ADD){if(f)return void Object(s.j)();if(["audio"].includes(t.type)||h.layer==c.D.BACKGROUND_MEDIA)return;Object(r.c)(t,a,l.d,(function(e){e&&C(!1,e,n,a)}))}}else{if(!f)return;let e=f.recast;if(t.fill&&"object"==typeof t.fill&&t.fill.hasOwnProperty("colorStops")&&(t.fill=new i.fabric.Gradient(t.fill)),h.layer==c.D.BACKGROUND&&f.type!=t.type&&"rect"==t.type?(f.src="",f.content={src:""},f.recast.originalUrl="",f.recast.previewUrl="",f.recast.posterUrl="",f.recast.containerColor=t.fill):f.set(t),f.setCoords(),["imageContainer","videoContainer","videoFrame"].includes(f.type)?(f.fabricObject&&(t.content&&f.fabricObject.
1set(t.content),f.fabricObject._imageElement&&f.fabricObject._imageElement.src!=h.previewUrl?(f.fabricObject._imageElement.onload=function(){l.d.requestRenderAll(),f.fabricObject._imageElement.onload=null},f.fabricObject._imageElement.src=h.previewUrl||c.h):f.fabricObject._videoElement&&"videoFrame"!==f.type&&Object(o.v)(f.fabricObject._videoElement,t.recast)),f.adjustContent()):("bodyMoving"!==f.type||Object(o.c)(e,h))&&"audioWave"==f.type&&(f.updateWaveColor(),f.updateWaveType()),[c.D.BACKGROUND_MEDIA,c.D.AUDIO].includes(h.layer)&&[c.f[1],c.f[5]].includes(h.asset)){let t=JSON.stringify(e.cuts),n=JSON.stringify(h.cuts),i=JSON.stringify(e.trim),a=JSON.stringify(h.trim);t==n&&i==a||(u.a.publish("RESTORE_TRIM_CUTS",{trim:h.trim,cuts:h.cuts}),Object(l.a)(e,h))}C(!0,f,n,a)}}function S(e){u.a.publish("RESTORE_TRANSCRIPT",e)}},14:function(e,t,n){"use strict";n.d(t,"k",(function(){return w})),n.d(t,"d",(function(){return m})),n.d(t,"u",(function(){return g})),n.d(t,"g",(function(){return _})),n.d(t,"i",(function(){return O})),n.d(t,"h",(function(){return C})),n.d(t,"o",(function(){return S})),n.d(t,"n",(function(){return D})),n.d(t,"b",(function(){return I})),n.d(t,"p",(function(){return k})),n.d(t,"q",(function(){return N})),n.d(t,"t",(function(){return j})),n.d(t,"r",(function(){return L})),n.d(t,"c",(function(){return P})),n.d(t,"s",(function(){return x})),n.d(t,"e",(function(){return U})),n.d(t,"f",(function(){return B})),n.d(t,"m",(function(){return F})),n.d(t,"v",(function(){return z})),n.d(t,"l",(function(){return V})),n.d(t,"j",(function(){return H})),n.d(t,"a",(function(){return W}));var i=n(40),a=n(5),r=n(21),o=n.n(r),s=n(60),l=n(12),c=n(99),d=n(130),u=n(15),f=n(102),h=(n(227),n(117)),p=n(33);let m,g,w={},E=!1,b=!1,y=null,v=null;function _(){var e=!("ontouchstart"in window||"onmsgesturechange"in window);let t=null,n=new i.fabric.Canvas("editor_canvas",{preserveObjectStacking:!0,crossOrigin:"anonymous",controlsAboveOverlay:!0,allowTouchScrolling:!e});return n.on("mouse:over",(function(e){let t=this.getActiveObject();e.target&&e.target.recast&&(!t||e.target.recast&&t.recast&&e.target.recast.refId!==t.recast.refId)&&this.contextTop&&e.target._renderControls(this.contextTop,{hasControls:!1,borderDashArray:[2,2]})})),n.on("mouse:out",(function(e){e.target&&this.contextTop&&this.clearContext(this.contextTop)})),n.on("mouse:up",(function(e){b=!1,E=!1,Object(l.t)(e.target)})),n.upperCanvasEl.addEventListener("mousedown",e=>{const t=n.overlayImage;if(!t)return;const r=n.getPointer(e),s=t.toLocalPoint(new i.fabric.Point(r.x,r.y),"left","top");s.x>=0&&s.y>=0&&s.x<=(t.width||0)&&s.y<=(t.height||0)&&(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),n.discardActiveObject(),n.requestRenderAll(),o.a.publish("OPEN_UPGRADE",a.S.RECAST_WATERMARK))},!0),n.on("mouse:down",(function(e){e.target&&this.contextTop&&n.requestRenderAll(),t=e.target?function(e){if(!e)return null;const t=i.fabric.util.object.clone(e);if(t.recast&&"object"===typeof t.recast)try{t.recast=JSON.parse(JSON.stringify(e.recast))}catch(n){t.recast={...e.recast}}if(t.styles&&"object"===typeof t.styles)try{t.styles=JSON.parse(JSON.stringify(e.styles))}catch(n){}if(t.content&&"object"===typeof t.content&&["imageContainer","videoContainer","videoFrame"].includes(e.type))try{t.content=JSON.parse(JSON.stringify(e.content))}catch(n){}return t}(e.target):null})),n.on("selection:cleared",(function(e){Object(l.g)(),o.a.publish("LAYER_SELECTED",{editOptions:null,style:{left:0,top:0}})})),n.on("selection:created",A),n.on("selection:updated",A),n.on("object:modified",(function(e){b=!1,E=!1,e.target&&"subtitle"==e.target.type&&(e.target.set("parts",{}),e.target.animateCaption()),P(e.target,a.a.UPDATE,t)})),n.on("text:editing:exited",(function(e){Object(u.k)(e.target,n),Object(u.j)(),P(e.target,a.a.UPDATE,t),Object(l.p)({objectLoaded:!0})})),n.on("object:scaled",(function(e){E=!1})),n.on("object:scaling",(function(e){E=!0;const t=e.target&&("textbox"==e.target.type||"subtitle"==e.target.type);e.target&&"rect"==e.target.type&&e.target.set({width:e.target.width*(e.target.scaleX||1),height:e.target.height*(e.target.scaleY||1),scaleX:1,scaleY:1}
1),t&&e.transform&&["br","bl","tl","tr"].includes(e.transform.corner)&&(e.target.initDimensions(),e.target.set({width:e.target.width*(e.target.scaleX||1),height:e.target.height*(e.target.scaleY||1),scaleX:1,scaleY:1,fontSize:e.target.fontSize*(e.target.scaleX||1)})),t&&e.transform&&["mb"].includes(e.transform.corner)&&(e.target.initDimensions(),e.target.set({width:e.target.width*(e.target.scaleX||1),height:e.target.height*(e.target.scaleY||1),scaleY:1,scaleX:1}))})),n.on("object:moved",(function(e){b=!1})),n.on("object:moving",(function(e){b=!0})),e||(n.selection=!1),m=n,window.editor_canvas=n,w={},n}function A(e){if(!e.selected.length||e.selected.length>1)return;let t=this.viewportTransform,n=this.getZoom(),i=e.selected[0],a=t[4]+(i.left+i.width/2)*n,r=t[5]+(i.top+Math.max(i.textHeight||0,i.height))*n;o.a.publish("LAYER_SELECTED",{editOptions:Object(l.k)(e.selected[0],!1,!1),style:{top:r,left:a}})}function O(e,t){let n=new i.fabric.StaticCanvas("video_canvas",{backgroundColor:"transparent",enableRetinaScaling:!1});return n.setDimensions({width:e,height:t}),n.setZoom(e/l.w.width),g=n,window.video_canvas=n,n}function C(){if(!document.getElementById("video_canvas"))return console.error("Canvas element #video_canvas not found in DOM!"),null;let e=new i.fabric.StaticCanvas("video_canvas",{preserveObjectStacking:!0});return e.getElement().addEventListener("click",(function(){o.a.publish("PLAY_PREVIEW")})),g=e,window.video_canvas=e,e}function T(){window.mediaManager&&window.mediaManager.clearAll(),document.querySelectorAll("video[id*='video_'], audio[id*='audio_'], lottie-element").forEach(e=>{if(e.id&&window.$wave&&window.$wave[e.id]){let n=window.$wave[e.id].audioCtx;try{n&&n.close()}catch(t){console.warn("Error closing audio context:",t)}}try{e.pause&&e.pause()}catch(t){}try{const t=e.cloneNode(!1);e.parentNode&&e.parentNode.replaceChild(t,e),t.remove()}catch(t){try{e.removeAttribute&&e.removeAttribute("src"),e.load&&e.load()}catch(t){}e.remove()}}),window.$wave&&(window.$wave={})}function S(){v&&(window.cancelAnimationFrame(v),v=null);try{"function"===typeof h.f&&null!==s.a&&void 0!==s.a&&s.a.ticker&&s.a.ticker.remove(h.f);const e=u.f||window.preview_tl;e&&!e._killed&&"function"===typeof e.kill&&e.kill()}catch(e){}if(window.isAnimating=!1,window.buffering=!1,T(),g&&!g._disposed)try{"function"===typeof g.clear&&g.clear(),"function"===typeof g.dispose&&g.dispose(),g._disposed=!0}catch(e){}g=null,window.video_canvas=null}function R(e){if(e&&!e._disposed)try{"function"===typeof e.clear&&e.clear(),"function"===typeof e.dispose&&e.dispose(),e._disposed=!0}catch(t){}}function D(){y&&(window.cancelAnimationFrame(y),y=null),v&&(window.cancelAnimationFrame(v),v=null);try{"function"===typeof h.f&&null!==s.a&&void 0!==s.a&&s.a.ticker&&s.a.ticker.remove(h.f);const e=u.f||window.preview_tl;e&&!e._killed&&"function"===typeof e.kill&&e.kill();const t=u.c||window.editor_tl;t&&!t._killed&&"function"===typeof t.kill&&t.kill()}catch(e){}window.isAnimating=!1,window.buffering=!1,T(),R(m),m=null,window.editor_canvas=null,R(g),g=null,window.video_canvas=null}function I(){y&&(window.cancelAnimationFrame(y),y=null),v&&(window.cancelAnimationFrame(v),v=null);try{if("function"===typeof h.f&&s.a&&s.a.ticker)try{s.a.ticker.remove(h.f)}catch(e){}const n=u.f||window.preview_tl,i=u.c||window.editor_tl;if(n&&!n._killed)try{"function"===typeof n.kill&&n.kill()}catch(t){}if(i&&!i._killed)try{"function"===typeof i.kill&&i.kill()}catch(t){}}catch(n){}if(T(),m&&!m._disposed)try{if("function"===typeof m.clear)try{m.clear()}catch(i){}let e=null,t=null;try{e=m.getElement&&m.getElement(),t=e&&e.parentNode}catch(n){}try{"function"===typeof m.dispose&&m.dispose(),m._disposed=!0}catch(a){}if(e&&t&&e.parentNode===t)try{const n=e.cloneNode(!1);t.replaceChild(n,e),n.remove()}catch(r){}}catch(n){}if(g&&!g._disposed)try{if("function"===typeof g.clear)try{g.clear()}catch(i){}let e=null,t=null;try{e=g.getElement&&g.getElement(),t=e&&e.parentNode}catch(n){}try{"function"===typeof g.dispose&&g.dispose(),g._disposed=!0}catch(a){}if(e&&t&&e.parentNode===t)try{const n=e.cloneNode(!1);t.replaceChild(n,e),n.remove()}catch(r){}}catch(n){}window.editor_canvas=null,window.video_canvas=null,m=null,g=null,w&&"object"===typeof w&&(Object.values(w).forEac
1h(e=>{try{e&&e.destroy&&e.destroy()}catch(n){console.warn("Error destroying lottie animation:",n)}}),w={}),window.preview_tl=null,window.editor_tl=null}function k(){y||(y=window.requestAnimationFrame(()=>{y=null;let e=document.querySelector(".recast-editor-canvas");if(!e||!l.w)return;let t=50,n=document.querySelector(".recast-editor-bottom-bar");n&&(t=n.clientHeight);let r=e.clientWidth,o=window.innerHeight-(a.yb+t);var s=Math.min((r-100)/l.w.width,(o-100)/l.w.height);if(s<.1&&(s=.1),m&&(m.setZoom(s),m.clipPath=new i.fabric.Rect({left:0,top:0,width:l.w.width,height:l.w.height,strokeWidth:0}),m.setDimensions({width:r,height:o}),m.requestRenderAll()),g&&(g.setDimensions({width:r,height:o}),g.requestRenderAll(),m)){var c=m.viewportTransform;c[4]=r/2-l.w.width*s/2,c[5]=o/2-l.w.height*s/2,m.setViewportTransform(c),g.setViewportTransform(c)}Object(l.p)({canvasZoomed:!0,value:100*s})}))}function N(){v||(v=window.requestAnimationFrame(()=>{v=null;let e=document.querySelector(".recast-preview-canvas");if(!e||!l.w||!g)return;let t=e.clientWidth-0,n=e.clientHeight-0,a=t/l.w.width;l.w.height*a>n&&(a=n/l.w.height),g.setZoom(a),g.clipPath=new i.fabric.Rect({left:0,top:0,width:l.w.width,height:l.w.height,strokeWidth:0}),g.setDimensions({width:t,height:n}),g.requestRenderAll();let r=g.viewportTransform;r[4]=t/2-l.w.width*a/2,r[5]=n/2-l.w.height*a/2,g.setViewportTransform(r)}))}function j(e){e.setCoords(),function(e,t){let n=t.recast;if(n){let i={top:t.top,left:t.left,scaleX:t.scaleX,scaleY:t.scaleY,width:t.width,height:t.height,angle:t.angle||0,rx:t.rx||0,ry:t.ry||0};"textbox"!==t.type&&"subtitle"!==t.type||Object.assign(i,{fontSize:t.fontSize,textAlign:t.textAlign,verticalAlign:t.verticalAlign});let a=window.videoDimension,r=B(e,n.refId);r&&r.hasOwnProperty("recast")&&(r.recast.dirty=!0,n.hasOwnProperty("reposition")&&n.reposition?r.recast.reposition[a]=i:r.recast.reposition={[a]:i}),e.requestRenderAll()}}(window.isRecording||!m?g:m,e)}function L(){window.project_id&&localStorage.setItem("dirty_canvas_"+window.project_id,!0),o.a.publish("PROJECT_MODIFIED")}function P(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:a.a.UPDATE,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(m&&m.requestRenderAll(),e){let r=i||e.getZIndex();"activeSelection"===e.type||"group"===e.type?e.clone(e=>{e._restoreObjectsState();let i=e.getObjects();t==a.a.ADD&&i.reverse();let o,s=0,l=i.length;function c(){if(s<l){let e=i[s];if("object"==typeof e){let n=null;o&&(n=o[s]),s++,M(e,t,n,r),c()}}}n&&n.clone&&("activeSelection"===n.type||"group"===n.type)?n.clone(e=>{e._restoreObjectsState(),o=e.getObjects(),c()}):c(),L()}):(M(e,t,n,r),L())}}function x(e,t){if("videoFrame"==e.type&&t==a.a.UPDATE){let t=e.recast,n=window.transcript.scenes||[];if(t.hasOwnProperty("sceneRef")&&t.sceneRef&&n.length){let e=n.find(e=>e.id==t.sceneRef);if(e&&e.layout){let n=m.getObjects("videoFrame").filter(e=>e.recast.sceneRef==t.sceneRef),i=["animationIn","animationOut","border","presetStyle","radius","shadowType","reposition"],a=["content","src","type","fill","version","refColors","selectable","evented","crossOrigin","filters","cropX","cropY","originX","originY","fillRule","flipX","flipY","globalCompositeOperation","paintFirst","skewX","skewY"],r=JSON.parse(JSON.stringify(n)).map(e=>{for(let n of a)delete e[n];e.visible=!0;let t={animationIn:"no_animation",animationOut:"no_animation",border:"none",presetStyle:"Normal",radius:0,shadowType:"none",reposition:{}};return i.forEach(n=>{e.recast[n]&&(t[n]=e.recast[n])}),e.recast=t,e});localStorage.setItem("layout_"+e.layout,JSON.stringify(r))}}}}function M(e,t,n,i){if(j(e),x(e,t),!("videoFrame"==e.type&&(t==a.a.ADD||t==a.a.REMOVE))){let r=e.recast.refId,o=t==a.a.ADD?a.a.REMOVE:t==a.a.REMOVE?a.a.ADD:t,s={obj:Object(d.b)(t==a.a.REMOVE?e:n),action:o,index:i,refId:r},l={obj:Object(d.b)(e),action:t,index:i,refId:r};Object(d.d)(l,s)}F(e,t,i)}function U(e,t){return e||(e=window.isRecording||!m?g:m),e.getObjects(t)}function B(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if(e||(e=window.isRecording||!m?g:m),!t||!e)return;let i=n?e.getObjects(n):e.getObjects(),a=null;for(let r=i.length-1;r>=0;r--){if(!i[r])continue;let e=i[r].recast;if(e&&e.refId===t){a=i[r];break}}return a}function F(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e&&"function"===typeof e.clone&&e.clone(i=>{let r=JSON.parse(JSON.stringify(e.recast));i.recast=r;let o,s=B(g,r.refId);if(t===a.a.UPDATE){if(s)if(o=s.recast,o.layer==a.D.BACKGROUND&&s.type!=i.type&&"imageContainer"==i.type)t=a.a.ADD,s.type="imageContainer",s.src=r.previewUrl,s.recast=r;else if(["imageContainer","videoContainer","videoFrame"].includes(s.type)){const e=["width","height","left","top","scaleX","scaleY","originX","originY","cropX","cropY"],t=["flipX","flipY","angle","opacity","visible","rx","ry","recast","lineWidth","stroke","shadow"];let n=Object(f.k)(i,[...e,...t]),o=Object(f.k)(i.content,[...e,"filters"]);
1s.set(n),s.fabricObject&&s.fabricObject.set(o),s.fabricObject&&s.fabricObject._imageElement&&s.fabricObject._imageElement.src!=n.recast.previewUrl&&(s.fabricObject._imageElement.onload=function(){g.requestRenderAll(),s.fabricObject._imageElement.onload=null},s.fabricObject._imageElement.src=n.recast.previewUrl||a.h),"videoFrame"!=s.type&&s.fabricObject&&s.fabricObject._videoElement&&Object(l.v)(s.fabricObject._videoElement,r);for(const[i,a]of Object.entries(o))s.content[i]=a;s.adjustContent&&s.adjustContent()}else{let e=Object(f.k)(i,a.ob);if(s.set(e),s.setCoords(),s._audioElement&&Object(l.u)(s._audioElement,r),"audioWave"==s.type){s.applyFilterClasses(s),s.updateWaveColor(),o.wave.type!==r.wave.type&&s.updateWaveType()}"subtitle"==s.type&&s.initAttachedMedia()}}else if(t===a.a.REMOVE){if(s&&s.fabricObject&&s.fabricObject._videoElement&&"videoFrame"!=s.type){let e=s.fabricObject._videoElement;setTimeout((function(){try{window.mediaManager&&e&&e.id?window.mediaManager.remove(e.id):e&&(e.pause&&e.pause(),e.remove())}catch(t){}}),100)}g.remove(s)}if(t===a.a.ADD){if(!s||r.layer==a.D.BACKGROUND){if(["audio"].includes(i.type)||r.layer==a.D.BACKGROUND_MEDIA)return;Object(c.c)(r.layer==a.D.BACKGROUND?s:i,n,g,(function(e){e&&(Object(u.g)(e,t,g),g&&g.requestRenderAll())}))}}else s&&t===a.a.UPDATE&&("bodyMoving"!==s.type||Object(l.c)(o,r)?(g.requestRenderAll(),Object(u.g)(s,t,g)):Object(c.a)(s,n,g,(function(e){Object(u.g)(e,t,g)})))})}function z(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t={x:m.width/2,y:m.height/2});let n=m.getZoom();n-=e,l.w.width*n>=100&&l.w.width*n<=5*l.w.width&&(m.zoomToPoint(t,n),g.zoomToPoint(t,n),Object(l.p)({canvasZoomed:!0,value:100*n}))}function V(e,t){var n=m.viewportTransform,i=m.getZoom(),a=l.w.width*i,r=l.w.height*i,o=n[4]-e,s=n[5]-t;o>-(a-200)&&s>-(r-100)&&o<m.width-200&&s<m.height-100&&(n[4]=o,n[5]=s,m.setViewportTransform(n),g.setViewportTransform(n))}function H(e,t){const n=e.recast,i=n.layer;if([a.D.INTRO,a.D.OUTRO].includes(i)){const e=n.duration,r=t==a.a.REMOVE,o=r?-1:1;if(t==a.a.ADD||t==a.a.UPDATE||r){const t=r?0:e;i==a.D.INTRO?Object(p.l)(t):i==a.D.OUTRO&&Object(p.m)(t);const n=Object(p.j)();Object(p.n)(n+o*e)}}const r=m.getObjects();for(let o=0;o<r.length;o++){r[o].recast.layer!=a.D.INTRO&&(Object(u.k)(r[o],m),F(r[o],a.a.UPDATE))}}function W(e,t){let n=m.getObjects(),i=e.end,r=t.end;Object(u.i)({sceneLength:r}),m&&m.requestRenderAll(),g&&g.requestRenderAll();for(let o=0;o<n.length;o++){let e=n[o].recast;e.refId==t.refId||[a.D.AUDIO,a.D.BACKGROUND_MEDIA,a.D.INTRO].includes(e.layer)||"videoFrame"==n[o].type||(e.layer==a.D.OUTRO?(e.position=r,e.end=e.position+e.duration):(e.layer==a.D.BACKGROUND||e.position<=.5&&e.end>=i-.5)&&(e.position=0,e.end=r,e.duration=r-e.position),n[o].recast=e,"subtitle"==n[o].type&&n[o].initAttachedMedia(),e.layer==a.D.PROGRESS_BAR&&n[o]._lottieElement&&n[o]._lottieElement.setSpeed(e.videoDuration/e.duration),Object(u.k)(n[o],m),F(n[o],a.a.UPDATE))}o.a.publish("ADJUST_LAYER_TIME"),L()}},140:function(e,t,n){"use strict";n.d(t,"d",(function(){return i})),n.d(t,"g",(function(){return a})),n.d(t,"b",(function(){return r})),n.d(t,"m",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"h",(function(){return c})),n.d(t,"a",(function(){return d})),n.d(t,"l",(function(){return u})),n.d(t,"f",(function(){return f})),n.d(t,"i",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"n",(function(){return m})),n.d(t,"j",(function(){return g}));const i={PURCHASED:"CHARACTER_SWAP_PURCHASED",STARTED:"CHARACTER_SWAP_STARTED",SUBMITTED:"CHARACTER_SWAP_SUBMITTED",COMPLETED:"CHARACTER_SWAP_COMPLETED",FAILED:"CHARACTER_SWAP_FAILED",TIMEOUT:"CHARACTER_SWAP_TIMEOUT",RESUMED:"CHARACTER_SWAP_RESUMED"},a={PURCHASED:"MOTION_CONTROL_PURCHASED",STARTED:"MOTION_CONTROL_STARTED",SUBMITTED:"MOTION_CONTROL_SUBMITTED",COMPLETED:"MOTION_CONTROL_COMPLETED",FAILED:"MOTION_CONTROL_FAILED",TIMEOUT:"MOTION_CONTROL_TIMEOUT",RESUMED:"MOTION_CONTROL_RESUMED"},r={LOGGED_IN:"AUTH_LOGGED_IN",SIGN_UP:"AUTH_SIGN_UP",ACCOUNT_DELETED:"AUTH_ACCOUNT_DELETED",PROFILE_UPDATED:"AUTH_PROFILE_UPDATED",SERVICE_UNAVAILABLE:"AUTH_SERVICE_UNAVAILABLE"},o={CREATED:"TEAM_CREATED",DELETED:"TEAM_DELETED",UPDATED:"TEAM_UPDATED",MEMBER_ADDED:"TEAM_MEMBER_ADDED",MEMBER_REMOVED:"TEAM_MEMBER_REMOVED"},s={CREATED:"BRAND_CREATED",UPDATED:"BRAND_UPDATED",DELETED:"BRAND_DELETED",MARK_DEFAULT:"BRAND_MARK_DEFAULT"},l={CREATED:"FOLDER_CREATED",RENAMED:"FOLDER_RENAMED",DELETED:"FOLDER_DELET
1ED"},c={CREATED:"PROJECT_CREATED",DELETED:"PROJECT_DELETED",EXPORTED:"PROJECT_EXPORTED",DUPLICATE:"PROJECT_DUPLICATE",CLIP_CREATED:"PROJECT_CLIP_CREATED",CLIP_DELETED:"PROJECT_CLIP_DELETED",ELEMENT_ADDED:"PROJECT_ELEMENT_ADDED",FORMAT_CHANGED:"PROJECT_FORMAT_CHANGED",TEMPLATE_SAVED:"PROJECT_TEMPLATE_SAVED",TEMPLATE_CHANGED:"PROJECT_TEMPLATE_CHANGED",COPY_SHARE_LINK:"PROJECT_COPY_SHARE_LINK",OPEN_TRIM:"PROJECT_OPEN_TRIM",OPEN_TIMELINE:"PROJECT_OPEN_TIMELINE",MOVED:"PROJECT_MOVED",IMAGE_FILTER:"PROJECT_IMAGE_FILTER",AI_CLIPS_ENABLED:"PROJECT_AI_CLIPS_ENABLED"},d={HIGHLIGHT_SAVED:"AI_HIGHLIGHT_SAVED",HIGHLIGHT_DELETED:"AI_HIGHLIGHT_DELETED",FIND_HIGHLIGHTS:"AI_FIND_HIGHLIGHTS",CONTENT_GENERATED:"AI_CONTENT_GENERATED",CUSTOM_CONTENT_GENERATED:"AI_CUSTOM_CONTENT_GENERATED",DOCUMENT_SAVED:"AI_DOCUMENT_SAVED",DOCUMENT_DELETED:"AI_DOCUMENT_DELETED",DOCUMENT_COPY:"AI_DOCUMENT_COPY",VISITED_EXAMPLE_PROMPT:"AI_VISITED_EXAMPLE_PROMPT",REFRAME_SWICTH_TEMPLATE:"AI_REFRAME_SWICTH_TEMPLATE",REFRAME_SWICTH_CLIP:"AI_REFRAME_SWICTH_CLIP",AUTO_REFRAME:"AI_AUTO_REFRAME",REFRAME_ABORTED:"AI_REFRAME_ABORTED",REMOVED_PAUSE:"AI_REMOVED_PAUSE",RESTORE_PAUSE:"AI_REMOVED_PAUSE",REMOVED_FILLER:"AI_REMOVED_FILLER",RESTORE_FILLER:"AI_REMOVED_FILLER"},u={VISITED_PRICING:"SUBSCRIPTION_VISITED_PRICING",VISITED_BILLING:"SUBSCRIPTION_VISITED_BILLING",OPEN_UPGRADE:"SUBSCRIPTION_OPEN_UPGRADE",CANCELLED:"SUBSCRIPTION_CANCELLED",CANCELLED_ERROR:"SUBSCRIPTION_CANCELLED_ERROR"},f={INITIATE:"IMPORT_INITIATE",RESTRICTED:"IMPORT_RESTRICTED",PODCAST_SERACH:"IMPORT_PODCAST_SERACH",SOURCE:"IMPORT_SOURCE",FAILED:"IMPORT_FAILED",TRIM:"IMPORT_TRIM"},h={CREATED:"SCENE_CREATED",REMOVED:"SCENE_REMOVED",LAYOUT_CHANGE:"SCENE_LAYOUT_CHANGE"}
1,p={ADDED:"SPEAKER_ADDED",DELETED:"SPEAKER_DELETED",UPDATED:"SPEAKER_UPDATED",UNTAG:"SPEAKER_UNTAG"},m={GENERATED:"TRANSCRIPT_GENERATED",DOWNLOAD_SRT:"TRANSCRIPT_DOWNLOAD_SRT",DOWNLOAD_TEXT:"TRANSCRIPT_DOWNLOAD_TEXT",REGENERATED:"TRANSCRIPT_REGENERATED"},g={ACCOUNT_CONNECTED:"SOCIAL_ACCOUNT_CONNECTED",ACCOUNT_DISCONNECTED:"SOCIAL_ACCOUNT_DISCONNECTED",POST_DRAFTED:"SOCIAL_POST_DRAFTED",POST_SCHEDULED:"SOCIAL_POST_SCHEDULED",POST_PUBLISHED_NOW:"SOCIAL_POST_PUBLISHED_NOW",POST_UPDATED:"SOCIAL_POST_UPDATED",POST_DELETED:"SOCIAL_POST_DELETED",POST_RETRIED:"SOCIAL_POST_RETRIED",POST_UNPUBLISHED:"SOCIAL_POST_UNPUBLISHED",POST_STATUS_SYNCED:"SOCIAL_POST_STATUS_SYNCED",COMPOSE_OPENED:"SOCIAL_COMPOSE_OPENED",MEDIA_UPLOADED:"SOCIAL_MEDIA_UPLOADED",MEDIA_FROM_DOWNLOADS:"SOCIAL_MEDIA_FROM_DOWNLOADS",OVERRIDE_ENABLED:"SOCIAL_OVERRIDE_ENABLED"}},141:function(e,t,n){"use strict";n.d(t,"b",(function(){return o})),n.d(t,"c",(function(){return s})),n.d(t,"a",(function(){return l}));var i=n(240),a=n.n(i),r=(n(363),n(227));function o(e){let t,n;return e?"regular"===e?(t="400",n="normal"):"italic"===e?(t="400",n="italic"):e.indexOf("italic")>-1?(t=e.replace("italic",""),n="italic"):(t=e,n="normal"):(t="normal",n="normal"),{fw:t,fs:n}}function s(e,t){let n=[],i={};if(e.custom_fonts){var s=document.createElement("style");s.setAttribute("type","text/css");let t=e.custom_fonts.sources;for(let e=0;e<t.length;e++){let{fw:n,fs:a}=o(t[e].variant),r=t[e].font_url;if(window.isRecording&&window.proxyFonts){let e=r.split("/").pop();r=`https://example.com/tmp/worker_${window.workerId}/fonts/${e}`}s.appendChild(document.createTextNode(`\n@font-face {\n font-family: '${t[e].family}';\n src: url(${r}) format('woff2');\n font-weight: ${n};\n font-style: ${a};\n}\n`)),i[t[e].family]={weight:n,style:a}}document.head.appendChild(s),n=e.custom_fonts.families}if(n.length){let e={};n&&n.length&&Object.assign(e,{custom:{families:n}}),a.a.load({...e,active:function(){console.log("active: All fonts have been loaded successfully"),t()},inactive:function(){Object(r.j)(),console.log("inactive: Font loading failed"),t()},fontinactive:function(e,t){console.log("fontinactive: ",e,t)},timeout:2e4})}else t()}function l(e,t){let n="project_font_"+e,i=document.querySelector("div[id*='project_font_']");i||(i=document.createElement("div"),i.id=n),t.forEach(e=>{let t=document.createElement("span"),{fw:n,fs:a}=o(e.variant);t.style.fontFamily=e.family,t.style.fontWeight=n,t.style.fontStyle=a,i.appendChild(t)}),document.body.appendChild(i)}},15:function(e,t,n){"use strict";n.d(t,"c",(function(){return c})),n.d(t,"f",(function(){return d})),n.d(t,"d",(function(){return u})),n.d(t,"e",(function(){return f})),n.d(t,"h",(function(){return p})),n.d(t,"a",(function(){return m})),n.d(t,"k",(function(){return w})),n.d(t,"j",(function(){return E})),n.d(t,"g",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"i",(function(){return A}));var i=n(40),a=n(60),r=n(12),o=n(5);window.isAnimating=!1;var s=n(98),l=n(33);let c,d;function u(e,t){const{intro_duration:n,outro_duration:i,clip_duration:r,duration:o}=Object(l.a)(e,t);let s=a.a.timeline({paused:!0,smoothChildTiming:!0,data:{seek:0,duration:o,clip_duration:r,intro_duration:n,outro_duration:i}});return c=s,window.editor_tl=s,s}function f(e,t){const{intro_duration:n,outro_duration:i,clip_duration:r,duration:o}=Object(l.a)(e,t);let s=a.a.timeline({paused:!0,smoothChildTiming:!0,data:{seek:0,duration:o,clip_duration:r,intro_duration:n,outro_duration:i}});return d=s,window.preview_tl=s,s}function h(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;return n||0===n?t.splice(n,0,e):t.push(e),t}function p(e,t){let n=[e];"activeSelection"!=e.type&&"group"!=e.type||(n=e.getObjects());for(let a=0;a<n.length;a++)"object"==typeof n[a]&&(g(n[a]),b(n[a],o.a.REMOVE,t));let i=c.data.layers;Object(r.p)({initializeTimeline:!0,sceneLayers:i,action:o.a.REMOVE})}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=c.data.layers||[],i=Object(r.e)(e);(t||0==t)&&(t=n.length+1-t),n=h(i,n,t),c.data.layers=n}function g(e){let t=c.data.layers||[],n=e.recast;c.data.layers=t.filter(e=>e.refId!==n.refId)}function w(e,t){e&&e.recast&&c&&(!function(e){if(!c)return;let t=e.recast.refId,n=c.data.layers;for(let i=0;i<n.length;i++)n[i].refId===t&&(n[i]=Object(r.e)(e));c.data.layers=n}(e),b(e,o.a.UPDATE,t))}function E(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!c)return;let t=c.data.layers;Object(r.p)({initializeTimeline:!0,sceneLayers:t,replace:e})}function b(e,t,n){if(!n)return;let i="editor_canvas"==n.getElement().id?c:d;i.killTweensOf(e),e.fabricObject&&i.killTweensOf(e.fabricObject),t!==o.a.REMOVE&&e.recast.layer!==o.D.BACKGROUND&&(e.set({visible:!1}
1),e.fabricObject&&e.fabricObject.set({visible:!1}),y(e,i,n)),function(e){let t="editor_canvas"==e.getElement().id?c:d;t.invalidate().progress(0);let n=t.data.seek;(n||0==n)&&t.seek(n)}(n),n.requestRenderAll()}function y(e,t,n){if(!t)return;let a="editor_canvas"==n.getElement().id,s=JSON.parse(JSON.stringify(e.recast));if(!s||s.layer==o.D.BACKGROUND)return;let c=Object(l.j)();if(0==c)return;let d=Object(l.d)(),u=Object(l.b)();d&&(u+=d,[o.D.INTRO].includes(s.layer)||(s.position=s.position+d,s.end=s.end+d)),[o.D.INTRO,o.D.OUTRO].includes(s.layer)||s.end>u&&(s.end=u,s.duration=s.end-s.position);const f=s.layer!=o.D.OUTRO&&s.position>=u;if(!s.duration||s.duration<0||f)return void t.set(e,{visible:!1},0);if(!(s.hide||!1)){t.set(e,{visible:!0},s.position);let n=s.end;Number(n.toFixed(2))==c&&(n+=o.O),t.set(e,{visible:!1},n)}if(0!==s.position&&t.set(e,{visible:!1},0),!a){"center"===e.originX&&"center"===e.originY||e.setOriginToCenter&&e.setOriginToCenter();let n=s.hasOwnProperty("animationIn")&&s.animationIn&&("string"==typeof s.animationIn&&""!==s.animationIn&&"no_animation"!==s.animationIn||"object"==typeof s.animationIn&&s.animationIn.hasOwnProperty("type")&&s.animationIn.type&&"no_animation"!==s.animationIn.type&&""!==s.animationIn.type),a=s.hasOwnProperty("animation")&&s.animation&&("string"==typeof s.animation&&""!==s.animation&&"no_animation"!==s.animation||"object"==typeof s.animation&&s.animation.hasOwnProperty("type")&&s.animation.type&&"no_animation"!==s.animation.type&&""!==s.animation.type),l=s.hasOwnProperty("animationOut")&&s.animationOut&&("string"==typeof s.animationOut&&""!==s.animationOut&&"no_animation"!==s.animationOut||"object"==typeof s.animationOut&&s.animationOut.hasOwnProperty("type")&&s.animationOut.type&&"no_animation"!==s.animationOut.type&&""!==s.animationOut.type);if((s.asset===o.f[1]&&""!==s.videoSrc||s.asset===o.f[4]&&""!==s.previewUrl||s.asset===o.f[5])&&t.to(e,{duration:s.duration,onComplete:v,onCompleteParams:[e,s.end],onStart:_,onStartParams:[e,s.position]},s.position),n||a||l){let c=JSON.parse(JSON.stringify(e)),d=2*(c.strokeWidth||0)+10,u=new i.fabric.Rect({left:-(c.width+d)/2,top:-(c.height+d)/2,width:c.width+d,height:c.height+d,strokeWidth:0});u.setOriginToCenter&&u.setOriginToCenter();let f,h,p,m,g,w=JSON.parse(JSON.stringify(u)),E={};n&&(h=s.animationIn,"object"==typeof s.animationIn&&(f=s.animationIn.speed,h=s.animationIn.type),f||(f=.7)),l&&(m=s.animationOut,"object"==typeof s.animationOut&&(p=s.animationOut.speed,m=s.animationOut.type),p||(p=.7)),a&&(g=s.animation,"object"==typeof s.animation&&(g=s.animation.type)),h&&(h.indexOf("reveal_")>-1||h.indexOf("toast_")>-1)||m&&(m.indexOf("reveal_")>-1||m.indexOf("toast_")>-1)?e.set("clipPath",u):e.set("clipPath",null),n&&(E=function(e,t,n,i,a,s,l){let c={},d={},u={},f={};const{scaleX:h,scaleY:p,top:m,left:g,width:w,height:E,opacity:b,type:y,angle:v}=n;let _=w*h,A=E*p,O=i.width*i.scaleX,C=i.height*i.scaleY,T=_>r.w.width?h:r.w.width/w,S=A>r.w.height?p:r.w.height/E,R=T;switch(S*E<r.w.height&&(R=S),R+="textbox"==y?5:2,s){case o.fb[0]:d={opacity:0},c={opacity:b,ease:"power1.out"};break;case o.fb[1]:d={opacity:0,left:g-_},c={opacity:b,left:g,ease:"power1.out"};break;case o.fb[2]:d={opacity:0,left:g+_},c={opacity:b,left:g,ease:"power1.out"};break;case o.fb[3]:d={opacity:0,top:m-A},c={opacity:b,top:m,ease:"power1.out"};break;case o.fb[4]:d={opacity:0,top:m+A},c={opacity:b,top:m,ease:"power1.out"};break;case o.fb[5]:d={left:-_/2},c={left:g};break;case o.fb[6]:d={left:r.w.width+_/2},c={left:g};break;case o.fb[7]:d={top:-A/2},c={top:m};break;case o.fb[8]:d={top:r.w.height+A/2},c={top:m};break;case o.fb[9]:u={scaleX:0,scaleY:0},f={scaleX:i.scaleX,scaleY:i.scaleY};break;case o.fb[10]:u={scaleX:0},f={scaleX:i.scaleX};break;case o.fb[11]:u={scaleY:0},f={scaleY:i.scaleY};break;case o.fb[12]:u={left:i.left-O},f={left:i.left};break;case o.fb[13]:u={left:i.left+O},f={left:i.left};break;case o.fb[14]:u={top:i.top-C},f={top:i.top};break;case o.fb[15]:u={top:i.top+C},f={top:i.top};break;case o.fb[16]:d={scaleX:0,scaleY:0},c={scaleX:h,scaleY:p};break;case o.fb[17]:d={scaleX:0,scaleY:0,left:-_/2},c={scaleX:h,scaleY:p,left:g};break;case o.fb[18]:d={scaleX:0,scaleY:0,left:r.w.width+_/2},c={scaleX:h,scaleY:p,left:g};break;case o.fb[19]:d={scaleX:0,scaleY:0,top:-A/2},c={scaleX:h,scaleY:p,top:m};break;case o.fb[20]:d={scaleX:0,scaleY:0,top:r.w.height+A/2},c={scaleX:h,scaleY:p,top:m};break;case o.fb[21]:d={scaleX:R,scaleY:R,opacity:0}
1,c={scaleX:h,scaleY:p,opacity:b};break;case o.fb[22]:d={scaleX:R,scaleY:R,left:0,opacity:0},c={scaleX:h,scaleY:p,left:g,opacity:b};break;case o.fb[23]:d={scaleX:R,scaleY:R,left:r.w.width,opacity:0},c={scaleX:h,scaleY:p,left:g,opacity:b};break;case o.fb[24]:d={scaleX:R,scaleY:R,top:0,opacity:0},c={scaleX:h,scaleY:p,top:m,opacity:b};break;case o.fb[25]:d={scaleX:R,scaleY:R,top:r.w.height,opacity:0},c={scaleX:h,scaleY:p,top:m,opacity:b};break;case o.fb[26]:d={scaleX:0,scaleY:0,opacity:0},c={scaleX:h,scaleY:p,opacity:b,ease:"elastic.out(1, 0.3)"};break;case o.fb[27]:d={left:-_/2,opacity:0},c={left:g,opacity:b,ease:"elastic.out(1, 0.3)"};break;case o.fb[28]:d={left:r.w.width+_/2,opacity:0},c={left:g,opacity:b,ease:"elastic.out(1, 0.3)"};break;case o.fb[29]:d={top:-A/2,opacity:0},c={top:m,opacity:b,ease:"elastic.out(1, 0.3)"};break;case o.fb[30]:d={top:r.w.height+A/2,opacity:0},c={top:m,opacity:b,ease:"elastic.out(1, 0.3)"};break;case o.fb[31]:d={left:g-_},c={left:g},u={left:O},f={left:i.left};break;case o.fb[32]:d={left:g+_},c={left:g},u={left:-O},f={left:i.left};break;case o.fb[33]:d={top:m-A},c={top:m},u={top:C},f={top:i.top};break;case o.fb[34]:d={top:m+A},c={top:m},u={top:-C},f={top:i.top};break;case o.fb[35]:d={angle:v-180,opacity:0},c={angle:v,opacity:b};break;case o.fb[36]:d={left:-_/2,angle:v-180,opacity:0},c={left:g,angle:v,opacity:b};break;case o.fb[37]:d={left:r.w.width+_/2,angle:v+180,opacity:0},c={left:g,angle:v,opacity:b};break;case o.fb[38]:d={top:-A/2,angle:v-180,opacity:0},c={top:m,angle:v,opacity:b};break;case o.fb[39]:d={top:r.w.height+A/2,angle:v+180,opacity:0},c={top:m,angle:v,opacity:b};break;case o.fb[40]:d={left:-_/2,skewX:40},c={left:g,skewX:0,ease:"back.out(1.7)"};break;case o.fb[41]:d={left:r.w.width+_/2,skewX:-40},c={left:g,skewX:0,ease:"back.out(1.7)"}}return d.dirty=!0,c.dirty=!0,0===Object.entries(d).length&&0===Object.entries(c).length||e.fromTo(t,d,{...c,duration:a},l.position),0===Object.entries(u).length&&0===Object.entries(f).length||e.fromTo(t.clipPath,u,{...f,duration:a},l.position),{objF:t,uAnim:c}}(t,e,c,w,f,h,s),e=E.objF),a&&(E=function(e,t,n,i,a,s,l){if(!t)return;let c=.3,d=r.w,u=["imageContainer","videoContainer"].includes(t.type)&&t.fabricObject&&![o.g[6],o.g[7],o.g[8]].includes(s);u&&(n=JSON.parse(JSON.stringify(t.fabricObject)),d={width:t.width,height:t.height});const{scaleX:f,scaleY:h,top:p,left:m,width:g,height:w,angle:E,type:b}=n;"textbox"==b&&(c=1);let y,v,_=g*f,A=w*h,O=(g*(f+c)-_)/2,C=(w*(h+c)-A)/2,T={},S={},R=l.position,D=l.duration;switch(i&&(R+=i,D-=i),a&&(D-=a),u?(y=m,v=p):(y=m-_/2,v=p-A/2),s){case o.g[0]:y+_>d.width+5?(T={left:m},S={left:m-(y+_-d.width),ease:"none"}):y>0&&(T={left:m},S={left:m-y,ease:"none"});break;case o.g[1]:y<0&&y+_>d.width+5?(T={left:m},S={left:m-y,ease:"none"}):y+_<d.width&&(T={left:m},S={left:m+(d.width-(y+_)),ease:"none"});break;case o.g[2]:v+A>d.height+5?(T={top:p},S={top:p-(v+A-d.height),ease:"none"}):v>0&&(T={top:p},S={top:p-v,ease:"none"});break;case o.g[3]:v<0&&v+A>d.height+5?(T={top:p},S={top:p-v,ease:"none"}):v+A<d.height&&(T={top:p},S={top:p+(d.height-(v+A)),ease:"none"});break;case o.g[4]:u?(T={left:m,top:p,scaleX:f,scaleY:h},S={left:m-O,top:p-C,scaleX:f+c,scaleY:h+c,ease:"none"}):(T={scaleX:f,scaleY:h},S={scaleX:f+c,scaleY:h+c,ease:"none"});break;case o.g[5]:u?(T={left:m-O,top:p-C,scaleX:f+c,scaleY:h+c},S={left:m,top:p,scaleX:f,scaleY:h,ease:"none"}):(T={scaleX:f+c,scaleY:h+c},S={scaleX:f,scaleY:h,ease:"none"});break;case o.g[6]:T={left:m-20},S={left:m+20,repeat:parseInt(D/.15),ease:"none",yoyo:!0},D=.15;break;case o.g[7]:T={top:p-20},S={top:p+20,repeat:parseInt(D/.15),ease:"none",yoyo:!0},D=.15;break;case o.g[8]:T={angle:E},S={angle:E+360,repeat:parseInt(D/1.5),ease:"power3.out"},D=1.5}return T.dirty=!0,S.dirty=!0,0===Object.entries(T).length&&0===Object.entries(S).length||(u?(t.clipPath&&e.fromTo(t,{dirty:!0},{dirty:!0,duration:D},R),e.fromTo(t.fabricObject,T,{...S,duration:D},R),S={}):e.fromTo(t,T,{...S,duration:D},R)),{objF:t,uAnim:S}}(t,e,c,f,p,g,s),e=E.objF,c=Object.assign(c,E.uAnim)),l&&function(e,t,n,i,a,s,l){let c={},d={},u={},f={};const{scaleX:h,scaleY:p,top:m,left:g,width:w,height:E,opacity:b,angle:y,type:v}=n;let _=w*h,A=E*p,O=i.width*i.scaleX,C=i.height*i.scaleY,T=_>r.w.width?h:r.w.width/w,S=A>r.w.height?p:r.w.height/E,R=T;switch(S*E<r.w.height&&(R=S),R+="textbox"==v?5:2,s){case o.gb[0]:d={opacity:b},c={opacity:0,ease:"power1.out"};break;case o.gb[1]:d={opacity:b,left:g},c={opacity:0,left:g-_,ease:"power1.out"};break;case o.gb[2]:d={opacity:b,left:g},c={opacity:0,left:g+_,ease:"power1.out"};break;case o.gb[3]:d={opacity:b,top:m},c={opacity:0,top:m-A,ease:"power1.out"};break;case o.gb[4]:d={opacity:b,top:m},c={opacity:0,top:m+A,ease:"power1.out"};break;case o.gb[5]:d={left:g},c={left:-_/2};break;case o.gb[6]:d={left:g},c={left:r.w.width+_/2};break;case o.gb[7]:d={top:m},c={top:-A/2};break;case o.gb[8]:d={top:m},c={top:r.w.height+A/2};break;
1case o.gb[9]:u={scaleX:i.scaleX,scaleY:i.scaleY},f={scaleX:0,scaleY:0};break;case o.gb[10]:u={scaleX:i.scaleX},f={scaleX:0};break;case o.gb[11]:u={scaleY:i.scaleY},f={scaleY:0};break;case o.gb[12]:u={left:i.left},f={left:i.left-O};break;case o.gb[13]:u={left:i.left},f={left:i.left+O};break;case o.gb[14]:u={top:i.top},f={top:i.top-C};break;case o.gb[15]:u={top:i.top},f={top:i.top+C};break;case o.gb[16]:d={scaleX:h,scaleY:p},c={scaleX:0,scaleY:0};break;case o.gb[17]:d={scaleX:h,scaleY:p,left:g},c={scaleX:0,scaleY:0,left:-_/2};break;case o.gb[18]:d={scaleX:h,scaleY:p,left:g},c={scaleX:0,scaleY:0,left:r.w.width+_/2};break;case o.gb[19]:d={scaleX:h,scaleY:p,top:m},c={scaleX:0,scaleY:0,top:-A/2};break;case o.gb[20]:d={scaleX:h,scaleY:p,top:m},c={scaleX:0,scaleY:0,top:r.w.height+A/2};break;case o.gb[21]:d={scaleX:h,scaleY:p,opacity:b},c={scaleX:R,scaleY:R,opacity:0};break;case o.gb[22]:d={scaleX:h,scaleY:p,left:g,opacity:b},c={scaleX:R,scaleY:R,left:0,opacity:0};break;case o.gb[23]:d={scaleX:h,scaleY:p,left:g,opacity:b},c={scaleX:R,scaleY:R,left:r.w.width,opacity:0};break;case o.gb[24]:d={scaleX:h,scaleY:p,top:m,opacity:b},c={scaleX:R,scaleY:R,top:0,opacity:0};break;case o.gb[25]:d={scaleX:h,scaleY:p,top:m,opacity:b},c={scaleX:R,scaleY:R,top:r.w.height,opacity:0}
1;break;case o.gb[26]:d={scaleX:h,scaleY:p,opacity:b},c={scaleX:0,scaleY:0,opacity:0,ease:"elastic.in(1, 0.3)"};break;case o.gb[27]:d={left:g,opacity:b},c={left:-_/2,opacity:0,ease:"elastic.in(1, 0.3)"};break;case o.gb[28]:d={left:g,opacity:b},c={left:r.w.width+_/2,opacity:0,ease:"elastic.in(1, 0.3)"};break;case o.gb[29]:d={top:m,opacity:b},c={top:-A/2,opacity:0,ease:"elastic.in(1, 0.3)"};break;case o.gb[30]:d={top:m,opacity:b},c={top:r.w.height+A/2,opacity:0,ease:"elastic.in(1, 0.3)"};break;case o.gb[31]:d={left:g},c={left:g-_},u={left:i.left},f={left:O};break;case o.gb[32]:d={left:g},c={left:g+_},u={left:i.left},f={left:-O};break;case o.gb[33]:d={top:m},c={top:m-A},u={top:i.top},f={top:C};break;case o.gb[34]:d={top:m},c={top:m+A},u={top:i.top},f={top:-C};break;case o.gb[35]:d={angle:y,opacity:b},c={angle:y-180,opacity:0};break;case o.gb[36]:d={left:g,angle:y,opacity:b},c={left:-_/2,angle:y-180,opacity:0};break;case o.gb[37]:d={left:g,angle:y,opacity:b},c={left:r.w.width+_/2,angle:y-180,opacity:0};break;case o.gb[38]:d={top:m,angle:y,opacity:b},c={top:-A/2,angle:y-180,opacity:0};break;case o.gb[39]:d={top:m,angle:y,opacity:b},c={top:r.w.height+A/2,angle:y-180,opacity:0};break;case o.gb[40]:d={left:g,skewX:0},c={left:-_/2-40,skewX:-40,ease:"back.in(1.7)"};break;case o.gb[41]:d={left:g,skewX:0},c={left:r.w.width+_/2+40,skewX:40,ease:"back.in(1.7)"}}d.dirty=!0,c.dirty=!0,0===Object.entries(d).length&&0===Object.entries(c).length||e.fromTo(t,d,{...c,duration:a},l.end-a),0===Object.entries(u).length&&0===Object.entries(f).length||e.fromTo(t.clipPath,u,{...f,duration:a},l.end-a)}(t,e,c,w,p,m,s)}else if(e.fabricObject&&e.fabricObject.filters&&e.fabricObject.filters.length){let n=e.fabricObject.filters[0];if(o.x.map(e=>e.class).includes(n.type)){let e={progress:0},i={progress:1};t.fromTo(n,i,{...e,duration:1},s.position),t.fromTo(n,e,{...i,duration:1},s.end-1)}}}}async function v(e,t){let n=e.type,i=e.recast;if(["video","videoContainer","audio","bodyMoving"].includes(n)&&window.isAnimating){let e=i.asset+"_"+i.refId;await Object(s.a)(!1,null,t,[],[e],[n])}}async function _(e,t){let n=e.type,i=e.recast;if(["video","videoContainer","audio","bodyMoving"].includes(n)&&window.isAnimating){let e=i.asset+"_"+i.refId;await Object(s.a)(!0,null,t,[],[e],[n])}}function A(e){if(e.sceneLength&&d){let t=d.data.seek;t>e.sceneLength&&(t=e.sceneLength);let n=e.sceneLength,i=n+Object(l.d)()+Object(l.g)();Object(l.n)(i),Object(l.k)(n),d.pause(),d.seek(t),d.data.seek=t,c&&(c.pause(),c.seek(t),c.data.seek=t)}}},181:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(223),a=n(73),r=n(247),o=n(224);class s{constructor(e,t){this.sourceCanvas=e,this.sourceContext=e?e.getContext("2d"):null,this.audioContext=null,this.gainNode=null,this.analyser=null,this.fileLoaded=!1,this.videoSink=null,this.audioSink=null,this.totalDuration=0,this.audioContextStartTime=null,this.playing=!1,this.playbackTimeAtStart=0,this.videoFrameIterator=null,this.audioBufferIterator=null,this.nextFrame=null,this.queuedAudioNodes=new Set,this.asyncId=0,this._listeners=new Map,this.onloadedmetadata=null,this.onplaying=null,this.onseeked=null,this.onpause=null,this.onended=null,this._firedLoadedMetadata=!1,this._hasFiredPlayingSinceResume=!1,this._isWaiting=!1,this._lastActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),this._lastVideoActivityTs=this._lastActivityTs,this._lastAudioActivityTs=this._lastActivityTs,this._waitingThresholdMs=250,this._waitingTimeout=null,this.draggingProgressBar=!1,this._volume=.7,this.draggingVolumeBar=!1,this.volumeMuted=!1,this.hideControlsTimeout=-1,this._loop=!1,this.autoPlay=!1,this.style={},this.videoWidth=0,this.videoHeight=0,this._initing=!1,this._initialized=!1,this._initPromise=null,this.lastPlaybackTime=null,this.currentFrame=null,this.currentFrameTimestamp=null,this._updatePromise=null,this._seekingToSync=!1,this._lastExternalTimestamp=null,this._recoveryAttempts=0,this._maxRecoveryAttempts=3,this._hasDecodeError=!1,this._videoReady=!1,this._audioReady=!1,this.init(t)}async ensureFrame(e){for(this._initing&&this._initPromise&&await this._initPromise;;)if(this._updatePromise&&await this._updatePromise,this.nextFrame&&this.nextFrame.timestamp<=e)this.sourceCanvas&&this.sourceContext&&(this.sourceContext.clearRect(0,0,this.sourceCanvas.width,this.sourceCanvas.height),this.sourceContext.drawImage(this.nextFrame.canvas,0,0,this.sourceCanvas.width,this.sourceCanvas.height)),this.currentFrame=this.nextFrame.canvas,this.currentFrameTimestamp=this.nextFrame.timestamp,this.videoWidth=this.nextFrame.canvas.width,this.videoHeight=this.nextFrame.canvas.height,this.nextFrame=null,this._lastVideoActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),this.updateNextFrame(e);else{if(!this.nextFrame&&!this._updatePromise)break;if(this.nextFrame&&this.nextFrame.timestamp>e)break}}async init(e){if(!this._initialized){if(this._initing&&this._initPromise)return this._initPromise;this._initing=!0,this._initPromise=(async()=>{try{var t;const n=e instanceof File?new i.a(e):new i.c(e);this.src=n;const s=new a.a({source:n,formats:r.a});this.playbackTimeAtStart=0,this.totalDuration=await s.computeDuration();let l=await s.getPrimaryVideoTrack(),c=await s.getPrimaryAudioTrack(),d="";if(l&&(null===l.codec?(d+="Unsupported video codec. ",l=null):await l.canDecode()||(d+="Unable to decode the video track. ",l=null)),c&&(null===c.codec?(d+="Unsupported audio codec. ",c=null):await c.canDecode()||(d+="Unable to decode the audio track. ",c=null)),!l&&!c)throw d||(d="No audio or video track found."),new Error(d);d&&console.warn(d);const u=window.AudioContext||window.webkitAudioContext;this.audioContext=new u({sampleRate:null===(t=c)||void 0===t?void 0:t.sampleRate}),this.gainNode=this.audioContext.createGain(),this.gainNode.connect(this.audioContext.destination),c&&(this.analyser=this.audioContext.createAnalyser(),this.analyser.fftSize=1024,this.analyser.smoothingTimeConstant=.4,this.analyser.connect(this.gainNode)),this.updateVolume();
1const f=!!l&&await l.canBeTransparent();this.videoSink=l&&new o.b(l,{poolSize:4,fit:"contain",alpha:f}),this.audioSink=c&&new o.a(c),this.videoWidth=l?l.displayWidth:0,this.videoHeight=l?l.displayHeight:0,await this.startVideoIterator(),this.fileLoaded=!0,this._firedLoadedMetadata||(this._firedLoadedMetadata=!0,this._dispatch("loadedmetadata")),this.audioContext&&"running"===this.audioContext.state&&this.autoPlay&&await this.play()}catch(n){console.error("RecastVideo initialization error:",n),this._dispatch("error",{error:n}),this.fileLoaded=!1}})();try{await this._initPromise,this._initialized=!0}finally{this._initing=!1}}}async startVideoIterator(){var e;let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!this.videoSink||this._removed)return;if(this._hasDecodeError)return void console.warn("Skipping video iterator start due to previous decode errors");this.asyncId++,await(null===(e=this.videoFrameIterator)||void 0===e?void 0:e.return());const n=Math.max(0,this.getPlaybackTime());try{var i,a;if(!this.videoSink||this._removed)return;if(this.videoFrameIterator=this.videoSink.canvases(n),!this.videoFrameIterator||"function"!==typeof this.videoFrameIterator.next)return void(this.videoFrameIterator=null);const e=null!==(i=(await this.videoFrameIterator.next()).value)&&void 0!==i?i:null,t=null!==(a=(await this.videoFrameIterator.next()).value)&&void 0!==a?a:null;this.nextFrame=t,e&&(this.currentFrame=e.canvas,this.currentFrameTimestamp=e.timestamp,this.videoWidth=e.canvas.width,this.videoHeight=e.canvas.height,this.sourceCanvas&&this.sourceContext&&(this.sourceContext.clearRect(0,0,this.sourceCanvas.width,this.sourceCanvas.height),this.sourceContext.drawImage(e.canvas,0,0,this.sourceCanvas.width,this.sourceCanvas.height)),this._videoReady=!0,this._lastVideoActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now()),this._recoveryAttempts=0,this.playing&&this.updateNextFrame()}catch(r){if(console.error("Error starting video iterator:",r),r instanceof DOMException&&"DataError"===r.name){if(this._recoveryAttempts++,this._recoveryAttempts<=this._maxRecoveryAttempts&&n>0)return console.warn(`Attempting recovery ${this._recoveryAttempts}/${this._maxRecoveryAttempts} by seeking to start...`),this.playbackTimeAtStart=0,this.startVideoIterator(t);if(this._recoveryAttempts>this._maxRecoveryAttempts)return console.error("Max recovery attempts exceeded. Video has unrecoverable decode errors."),this._hasDecodeError=!0,void this._dispatch("error",{error:r,fatal:!0,message:"Video file has encoding issues that prevent playback. Please re-encode the video."})}this._dispatch("error",{error:r})}}render(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this._hasDecodeError&&this.currentFrame)return this.currentFrame;if(this.fileLoaded){const t=null!==e?e:this.getPlaybackTime();if(null!==e&&void 0!==e&&(this._lastExternalTimestamp=e),null!==this.lastPlaybackTime&&this.lastPlaybackTime==t)return this.currentFrame;if(this.lastPlaybackTime=t,t>=this.totalDuration&&(this._loop?this.seekToTime(0):(this.pause(),this.playbackTimeAtStart=this.totalDuration,this._dispatch("ended"))),!this._isWaiting&&this.nextFrame&&this.nextFrame.timestamp<=t?(this.sourceCanvas&&this.sourceContext&&(this.sourceCanvas.width=this.sourceCanvas.width,this.sourceContext.drawImage(this.nextFrame.canvas,0,0,this.sourceCanvas.width,this.sourceCanvas.height)),this.currentFrame=this.nextFrame.canvas,this.currentFrameTimestamp=this.nextFrame.timestamp,this.nextFrame=null,this._lastVideoActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),this.playing&&!this._hasFiredPlayingSinceResume&&this._checkReadyToResume(),this._hasDecodeError||(this._videoReady=!0,this._checkReadyToResume(),this.updateNextFrame(t))):this._isWaiting||this.nextFrame||!this.playing||this._updatePromise||this._hasDecodeError||this.updateNextFrame(t),this.draggingProgressBar||this.updateProgressBarTime(t),this.playing){const e="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),t=!!this.videoSink,n=!!this.audioSink,i=t&&e-this._lastVideoActivityTs>this._waitingThresholdMs,a=n&&e-this._lastAudioActivityTs>this._waitingThresholdMs;this._isWaiting||!i&&!a||(this._isWaiting=!0,i&&(this._videoReady=!1),a&&(this._audioReady=!1),this.audioContext&&"running"===this.audioContext.state&&(this.playbackTimeAtStart=this.getPlaybackTime(),this.audioContext.suspend()),this._dispatch("waiting"))}}return this.currentFrame}_checkReadyToResume(){if(!this._isWaiting&&this._hasFiredPlayingSinceResume)return;const e=!!this.videoSink,t=!!this.audioSink,n=!e||this._videoReady,i=!t||this._audioReady;n&&i&&(this._clearWaitingTimeout(),this.audioContext&&"suspended"===this.audioContext.state&&this.playing&&(this.audioContextStartTime=this.audioContext.currentTime,this.audioContext.resume()),this._isWaiting&&(this._isWaiting=!1,this._dispatch("playing")),this.playing&&!this._hasFiredPlayingSinceResume&&(this._hasFiredPlayingSinceResume=!0,this._dispatch("playing")))}_triggerWaitingWithThreshold(){this._clearWaitingTimeout(),this._waitingTimeout=setTimeout(()=>{this._isWaiting&&this.playing&&this._dispatch("waiting")},this._waitingThresholdMs)}_clearWaitingTimeout(){this._waitingTimeout&&(clearTimeout(this._waitingTimeout),this._waitingTimeout=null)}async updateNextFrame(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;if(this._updatePromise)return this._updatePromise;if(!this.videoFrameIterator)return;if(this._hasDecodeError)return;const t=(async()=>{const t=this.asyncId;try{for(;;){var n,i;const a=null!==(n=(await this.videoFrameIterator.next()).value)&&void 0!==n?n:null;if(!a){this.nextFrame=null;break}if(t!==this.asyncId)break;
1const r=null!==e&&void 0!==e?e:null!==(i=this._lastExternalTimestamp)&&void 0!==i?i:this.getPlaybackTime();if(!(a.timestamp<=r)){this.nextFrame=a,this._videoReady=!0,this._checkReadyToResume();break}this.videoWidth=a.canvas.width,this.videoHeight=a.canvas.height,this.sourceCanvas&&this.sourceContext&&(this.sourceContext.clearRect(0,0,this.sourceCanvas.width,this.sourceCanvas.height),this.sourceContext.drawImage(a.canvas,0,0,this.sourceCanvas.width,this.sourceCanvas.height)),this.currentFrame=a.canvas,this.currentFrameTimestamp=a.timestamp,this._lastVideoActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now()}}catch(r){var a;if(console.error("Error updating next frame:",r),r instanceof DOMException&&"DataError"===r.name)console.warn("Decode error in updateNextFrame - clearing iterator for restart"),this.nextFrame=null,await(null===(a=this.videoFrameIterator)||void 0===a?void 0:a.return()),this.videoFrameIterator=null,this._recoveryAttempts++,this._recoveryAttempts>this._maxRecoveryAttempts&&(console.error("Too many decode errors during playback. Marking video as broken."),this._hasDecodeError=!0,this._dispatch("error",{error:r,fatal:!0,message:"Video playback experiencing too many decode errors."}));else this._dispatch("error",{error:r})}})();this._updatePromise=t;try{await t}catch(n){console.error("Promise error in updateNextFrame:",n)}finally{this._updatePromise=null}}async runAudioIterator(){if(this.audioSink)for await(const{buffer:e,timestamp:t}of this.audioBufferIterator){const n=this.audioContext.createBufferSource();n.buffer=e,n.connect(this.analyser||this.gainNode);const i=this.audioContextStartTime+t-this.playbackTimeAtStart;i>=this.audioContext.currentTime?n.start(i):n.start(this.audioContext.currentTime,this.audioContext.currentTime-i),this.queuedAudioNodes.add(n),n.onended=()=>{this.queuedAudioNodes.delete(n)},this._lastAudioActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),this._audioReady=!0,this._checkReadyToResume(),t-this.getPlaybackTime()>=1&&await new Promise(e=>{const n=setInterval(()=>{t-this.getPlaybackTime()<1&&(clearInterval(n),e())},100)})}}getPlaybackTime(){return this.playing&&this.audioContext?this.audioContext.currentTime-this.audioContextStartTime+this.playbackTimeAtStart:this.playbackTimeAtStart}get duration(){return this.totalDuration}get currentTime(){return this.getPlaybackTime()}set currentTime(e){const t=Math.max(0,Math.min(Number(e)||0,this.totalDuration||0));this.seekToTime(t)}whenReady(){return this._initialized?Promise.resolve():this._initing&&this._initPromise?this._initPromise:Promise.resolve()}get paused(){return!this.playing}get ended(){return!!this.totalDuration&&this.getPlaybackTime()>=this.totalDuration}get volume(){return this._volume}set volume(e){const t=Math.max(0,Math.min(Number(e)||0,1));this._volume=t,this.updateVolume()}get muted(){return this.volumeMuted}set muted(e){this.volumeMuted=!!e,this.updateVolume()}get loop(){return this._loop}set loop(e){this._loop=!!e}get width(){return this.videoWidth||(this.sourceCanvas?this.sourceCanvas.width:0)}set width(e){if(!this.sourceCanvas)return;const t=Math.max(0,Math.floor(Number(e)||0));this.sourceCanvas.width=t}get height(){return this.videoHeight||(this.sourceCanvas?this.sourceCanvas.height:0)}set height(e){if(!this.sourceCanvas)return;const t=Math.max(0,Math.floor(Number(e)||0));this.sourceCanvas.height=t}async play(){if(this._removed)return;if(this.playing)return;if(this._hasDecodeError)return void console.warn("Cannot play - video has unrecoverable decode errors");if(!this.audioContext&&this._initPromise&&await this._initPromise,!this.audioContext)return;if("suspended"===this.audioContext.state)try{await this.audioContext.resume()}catch(o){console.warn("Initial AudioContext resume failed:",o)}if("running"===this.audioContext.state){this.playbackTimeAtStart=this.getPlaybackTime();try{await this.audioContext.suspend()}catch(o){console.warn("Initial AudioContext suspend failed:",o)}}var e,t;(this.getPlaybackTime()===this.totalDuration&&(this.playbackTimeAtStart=0,await this.startVideoIterator()),this.audioContext&&(this.audioContextStartTime=this.audioContext.currentTime),this.playing=!0,this.audioSink)&&(null===(e=this.audioBufferIterator)||void 0===e||e.return(),this.audioBufferIterator=null===(t=this.audioSink)||void 0===t?void 0:t.buffers(this.getPlaybackTime()),this.runAudioIterator());this._hasFiredPlayingSinceResume=!1,this._lastActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),this._lastVideoActivityTs=this._lastActivityTs,this._lastAudioActivityTs=this._lastActivityTs;const n=!!this.videoSink,i=!!this.audioSink,a=!n||this.nextFrame||this._videoReady,r=!i||this._audioReady;a&&r?this._isWaiting=!1:(this._isWaiting=!0,this._videoReady=a,this._audioReady=r),this._checkReadyToResume(),this.nextFrame||this._updatePromise||this._hasDecodeError||this.updateNextFrame(),this._dispatch("play"),this._isWaiting&&this._triggerWaitingWithThreshold()}pause(){var e;this._removed||(this.playbackTimeAtStart=this.getPlaybackTime()),this.playing=!1,null===(e=this.audioBufferIterator)||void 0===e||e.return(),this.audioBufferIterator=null;for(const n of this.queuedAudioNodes)try{n.stop()}catch(t){}this.queuedAudioNodes.clear(),this._isWaiting=!1,this._clearWaitingTimeout(),this._videoReady=!1,this._audioReady=!1,this._lastActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),this._lastVideoActivityTs=this._lastActivityTs,this._lastAudioActivityTs=this._lastActivityTs,this._removed||this._dispatch("pause")}togglePlay(){this.playing?this.pause():this.play()}async seekToTime(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(this._removed)return;if(this._hasDecodeError)return void console.warn("Cannot seek - video has unrecoverable decode errors");this.updateProgressBarTime(e);const n=this.playing;n&&this.pause(),this.playbackTimeAtStart=e,this.lastPlaybackTime=null,this._isWaiting=!0,this._videoReady=!1,this._audioReady=!1,this._lastActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),this._lastVideoActivityTs=this._lastActivityTs,this._lastAudioActivityTs=this._lastActivityTs,this._clearWaitingTimeout(),(n||t)&&this._triggerWaitingWithThreshold();try{await this.startVideoIterator(),this._recoveryAttempts=0,n&&this.playbackTimeAtStart<this.totalDuration&&this.play(),this._lastActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),this._dispatch("seeked")}catch(i){console.error("Error during seek:",i),this._dispatch("error",{error:i})}}updateProgressBarTime(e){}updateVolume(){const e=this.volumeMuted?0:this._volume;this.gainNode&&(this.gainNode.gain.value=e**2)}async replaceResource(e){const t=this._volume,n=this.volumeMuted,i=this._loop,a=this.autoPlay,r=this.sourceCanvas,o=this.sourceContext;this.playing&&this.pause();try{var s,l;null===(s=this.videoFrameIterator)||void 0===s||s.return(),null===(l=this.audioBufferIterator)||void 0===l||l.return(),this.videoFrameIterator=null,this.audioBufferIterator=null;for(const e of this.queuedAudioNodes)try{e.stop()}catch(c){}if(this.queuedAudioNodes.clear(),this.analyser){try{this.analyser.disconnect()}catch{}this.analyser=null}if(this.gainNode){try{this.gainNode.disconnect()}catch{}this.gainNode=null}if(this.audioContext){try{"closed"!==this.audioContext.state&&await this.audioContext.close()}catch{}this.audioContext=null}this.videoSink=null,this.audioSink=null,this.src=null,this.fileLoaded=!1,this.totalDuration=0,this.playbackTimeAtStart=0,this.currentFrame=null,this.currentFrameTimestamp=null,this.nextFrame=null,this.lastPlaybackTime=null,this.videoWidth=0,this.videoHeight=0,this._hasDecodeError=!1,this._recoveryAttempts=0,this._lastExter
1nalTimestamp=null,this._videoReady=!1,this._audioReady=!1,this._lastActivityTs="undefined"!==typeof performance&&performance.now?performance.now():Date.now(),this._lastVideoActivityTs=this._lastActivityTs,this._lastAudioActivityTs=this._lastActivityTs,this._initialized=!1,this._initing=!1,this._initPromise=null,this._firedLoadedMetadata=!1,this.asyncId++}catch(d){console.error("Error cleaning up during resource replacement:",d)}this.sourceCanvas=r,this.sourceContext=o,this._volume=t,this.volumeMuted=n,this._loop=i,this.autoPlay=a,await this.init(e)}remove(){var e,t;this._removed=!0;try{this.pause()}catch{}if(null===(e=this.videoFrameIterator)||void 0===e||e.return(),null===(t=this.audioBufferIterator)||void 0===t||t.return(),this.videoFrameIterator=null,this.audioBufferIterator=null,this.analyser){try{this.analyser.disconnect()}catch{}this.analyser=null}if(this.gainNode){try{this.gainNode.disconnect()}catch{}this.gainNode=null}if(this.audioContext){try{"closed"!==this.audioContext.state&&this.audioContext.close()}catch{}this.audioContext=null}this._listeners.clear(),this.currentFrame=null,this.nextFrame=null,this.sourceCanvas=null,this.sourceContext=null,this.videoSink=null,this.audioSink=null,this.src=null,this.asyncId++,clearTimeout(this.hideControlsTimeout),this._initing=!1,this._initialized=!1,this._initPromise=null}addEventListener(e,t){"function"===typeof t&&(this._listeners.has(e)||this._listeners.set(e,new Set),this._listeners.get(e).add(t))}removeEventListener(e,t){const n=this._listeners.get(e);n&&(n.delete(t),0===n.size&&this._listeners.delete(e))}dispatchEvent(e){return!(!e||!e.type)&&(this._dispatch(e.type,e.detail),!0)}_dispatch(e,t){const n={type:e,target:this,currentTarget:this,detail:t,timeStamp:Date.now()},i=this["on"+e];if("function"===typeof i)try{i.call(this,n)}catch{}const a=this._listeners.get(e);if(a)for(const r of Array.from(a))try{r.call(this,n)}catch{}}setAttribute(e,t){if(!e)return;this[String(e).toLowerCase()]=t}}},227:function(e,t,n){"use strict";n.d(t,"e",(function(){return g})),n.d(t,"a",(function(){return w})),n.d(t,"f",(function(){return E})),n.d(t,"b",(function(){return b})),n.d(t,"g",(function(){return y})),n.d(t,"c",(function(){return v})),n.d(t,"d",(function(){return _})),n.d(t,"j",(function(){return A})),n.d(t,"k",(function(){return O})),n.d(t,"h",(function(){return T})),n.d(t,"i",(function(){return S}));var i=n(181),a=n(33),r=n(5);const o=new class{constructor(){this.registry=new Map,this.videoEnabled=!1,this.audioEnabled=!1}setEnabled(e){this.videoEnabled=!!e,this.audioEnabled=!!e}setEnabledSeparate(e,t){this.videoEnabled=!!e,this.audioEnabled=!!t}isVideoEnabled(){return this.videoEnabled}isAudioEnabled(){return this.audioEnabled}isEnabled(){return this.videoEnabled||this.audioEnabled}shouldCreateRecastVideo(e){if(!("audio"===(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"video")?this.audioEnabled:this.videoEnabled))return!1;return["BACKGROUND_MEDIA","AUDIO"].includes(e)}shouldUseRecastVideo(e){if(!this.videoEnabled&&!this.audioEnabled)return!1;return["BACKGROUND_MEDIA","AUDIO","MEDIA"].includes(e)}createAudioElement(e,t,n){const r=this.shouldCreateRecastVideo(n.layer,"audio");let o;o=r?new i.a(null,t):document.createElement("audio"),o.id=e,o.src=t,o.muted=!!window.isRecording||(n.mute||!1),o.preload="auto",o.crossOrigin="anonymous",r||(o.style.display="none");const s=Object(a.d)(n.layer);return this.setAttribute(o,"data-position",n.position+s),this.setAttribute(o,"data-cuts",JSON.stringify((n.cuts||[]).map(e=>({start:e.start,end:e.end})))),this.setAttribute(o,"data-trim",JSON.stringify(n.trim||{})),o}createVideoElement(e,t,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const o=this.shouldCreateRecastVideo(n.layer,"video");let s;s=o?new i.a(r,t):document.createElement("video"),s.id=e,s.src=t,s.muted=!!window.isRecording||(n.mute||!1),s.preload="auto",s.crossOrigin="anonymous",o||(s.style.display="none",s.style.background="transparent"),s.setAttribute("webkit-playsinline","webkit-playsinline"),s.setAttribute("playsinline","playsinline");const l=Object(a.d)(n.layer);return this.setAttribute(s,"data-position",n.position+l),this.setAttribute(s,"data-cuts",JSON.stringify((n.cuts||[]).map(e=>({start:e.start,end:e.end})))),this.setAttribute(s,"data-trim",JSON.stringify(n.trim||{})),s}createImageElement(e,t,n){const i=document.createElement("img");i.id=e,i.src=t,i.crossOrigin="anonymous",i.style.background="transparent",i.style.display="none";const r=Object(a.d)(n.layer);return void 0!==n.position&&this.setAttribute(i,"data-position",n.position+r),i}_buildMetadataFromProps(e){var t,n;return e&&0!==Object.keys(e).length?{refId:e.refId,url:e.originalUrl,title:e.title,asset:e.asset,position:e.position,end:e.end,duration:e.duration,trim:e.trim||{},videoDuration:e.videoDuration,audioDuration:e.audioDuration,layer:e.layer,cuts:e.cuts||[],playbackSpeed:null!==(t=e.playbackSpeed)&&void 0!==t?t:1,loop:null!==(n=e.loop)&&void 0!==n&&n}:{}}
1register(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const a=this.shouldUseRecastVideo(n),r=this._buildMetadataFromProps(i);return this.registry.set(e,{element:t,useRecast:a,metadata:r}),a||!t||document.body.contains(t)||document.body.appendChild(t),t}updateMetadata(e,t){const n=this.registry.get(e);if(!n)return;const i=this._buildMetadataFromProps(t);n.metadata={...n.metadata,...i},this.registry.set(e,n)}getMetadata(e){const t=this.registry.get(e);return(null===t||void 0===t?void 0:t.metadata)||null}getMediaList(){const e=[];for(const[t,{metadata:n}]of this.registry)n&&Object.keys(n).length>0&&e.push({id:t,...n});return e.sort((e,t)=>(e.position||0)-(t.position||0)),e}getSourceMediaList(){return this.getMediaList().filter(e=>e.layer&&[r.D.BACKGROUND_MEDIA,r.D.AUDIO].includes(e.layer))}getPrimaryMedia(){const e=this.getSourceMediaList();return e.length>0?e[0]:null}getIntroMedia(){return this.getMediaList().find(e=>e.layer===r.D.INTRO)||null}getOutroMedia(){return this.getMediaList().find(e=>e.layer===r.D.OUTRO)||null}hasIntroMedia(){return null!==this.getIntroMedia()}hasOutroMedia(){return null!==this.getOutroMedia()}getOverlayMediaList(){return this.getMediaList().filter(e=>e.layer&&e.layer===r.D.OVERLAY)}getActiveMediaAtTime(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const n=[],i=Object(a.d)();for(const[a,{element:o,metadata:s}]of this.registry){if(!s||void 0===s.position||void 0===s.end)continue;if(t&&!t.includes(s.layer))continue;let l=s.position,c=s.end;s.layer!==r.D.INTRO&&(l+=i,c+=i),e>=l&&e<c&&n.push({elementId:a,element:o,...s})}return n}getActiveOverlaysAtTime(e){return this.getActiveMediaAtTime(e,[r.D.OVERLAY])}removeByRefId(e){for(const[t,{metadata:n}]of this.registry)(null===n||void 0===n?void 0:n.refId)===e&&this.remove(t)}get(e){const t=this.registry.get(e);return t?t.element:document.getElementById(e)||document.querySelector(`audio[id='${e}']`)||document.querySelector(`video[id='${e}']`)||document.querySelector(`img[id='${e}']`)||null}isRecastVideo(e){return e&&e instanceof i.a}setAttribute(e,t,n){e&&(this.isRecastVideo(e)?(e.setAttribute(t,n),e["data-"+t]=n):e.setAttribute(t,n))}getAttribute(e,t){return e?this.isRecastVideo(e)?e["data-"+t]||e[t]||null:e.dataset&&void 0!==e.dataset[t]?e.dataset[t]:e.getAttribute(t):null}async updateSrc(e,t,n,i){let a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!t||!n)return!1;if("MEDIA"===i)return!1;if(t.src===n)return!1;if(this.isRecastVideo(t)){if("function"===typeof t.replaceResource)return await t.replaceResource(n),a&&Object.keys(a).length>0&&this.updateMetadata(e,a),!0}else if(void 0!==t.src)return t.src=n,a&&Object.keys(a).length>0&&this.updateMetadata(e,a),!0;return!1}load(e){const t=this.registry.get(e);if(!t)return;const{element:n,useRecast:i}=t;!i&&n&&"IMG"!==n.tagName&&"function"===typeof n.load&&n.load()}async seekToTime(e,t){e&&(this.isRecastVideo(e)&&"function"===typeof e.seekToTime?await e.seekToTime(t):void 0!==e.currentTime&&(e.currentTime=t))}render(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?this.isRecastVideo(e)&&"function"===typeof e.render?e.render(t):e:null}async whenReady(e){const t=this.get(e);t&&this.isRecastVideo(t)&&"function"===typeof t.whenReady&&await t.whenReady()}async whenAllReady(){const e=[];for(const[t,{element:n}]of this.registry)this.isRecastVideo(n)&&"function"===typeof n.whenReady&&e.push(n.whenReady());e.length>0&&await Promise.all(e)}remove(e){const t=this.registry.get(e);if(!t)return;const{element:n,useRecast:i}=t;try{n&&("function"===typeof n.pause&&n.pause(),i&&"function"===typeof n.remove?n.remove():n.parentNode&&n.parentNode.removeChild(n))}catch(a){console.error("Error removing element:",e,a)}this.registry.delete(e)}clearAll(){const e=Array.from(this.registry.keys());for(const t of e)this.remove(t);this.registry.clear()}getAllIds(){return Array.from(this.registry.keys())}size(){return this.registry.size}getMediaListCount(){let e=0;for(const[t,{metadata:n}]of this.registry)n&&Object.keys(n).length>0&&e++;return e}getRegistryInfo(){const e=[];for(const[n,{element:i,useRecast:a,metadata:r}]of this.registry){var t;e.push({id:n,type:(null===i||void 0===i?void 0:i.tagName)||(null===i||void 0===i||null===(t=i.constructor)||void 0===t?void 0:t.name)||"unknown",useRecast:a,hasMetadata:r&&Object.keys(r).length>0})}return e}};"undefined"!==typeof window&&(window.mediaManager=o);const s={isAnimating:!1,buffering:!1,isSeeking:!1,isRecording:!1,isLocalRendering:!1,mediaList:[],audioData:{},MEDIA_BUNNY_VIDEO_ENABLED:!1,project_id:null,transcript:null},l={isAdvanceEditor:!0,pausesGroup:[],fillerWords:[],$wave:{},fileUploading:!1},c={videoList:[],workerId:null,previewStartTime:null,workerTotalFrames:{},workerStartFrame:{},videoCutSegments:{},workerFrameExtension:null,offthreadVideo:!1,inlineFFT:!1,fftExtension:null,fftStartFrame:0,fftTotalFrames:0,proxyFonts:!1,videoOverlap:{},totalOverlapFrames:{},startOverlapFrame:{},mediaPrefetchPromise:null,videoDimension:null},d={isFontLoadingError:!1,isMediaLoadingError:!1};function u(e){if(e&&"object"===typeof e)for(const t of Object.keys(e))window[t]=e[t]}function f(e){const t={};for(const n of Object.keys(e)){const i=e[n];Array.isArray(i)?t[n]=[]:null===i||"object"!==typeof i||i instanceof Date?t[n]=i:t[n]={...i}}return t}const h={editor:{slices:[s,l],overrides:{isAdvanceEditor:!0,isRecording:!1,isLocalRendering:!1,MEDIA_BUNNY_VIDEO_ENABLED:!1,transcript:null}},preview:{slices:[s],overrides:{isAdvanceEditor:!1,isRecording:!1,isLocalRendering:!1,MEDIA_BUNNY_VIDEO_ENABLED:!1}},recording:{slices:[s,c,d],overrides:{isAdvanceEditor:!1,isFontLoadingError:!1,isMediaLoadingError:!1}}};function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=h[e];if(!n)return console.warn("[globalState] Unknown context: "+e),f(s);const i={};for(const a of n.slices)Object.assign(i,f(a));return Object.assign(i,n.overrides||{},t),i}function m(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=p(e,t);u(n),window.mediaManager&&window.mediaManager.setEnabled(window.MEDIA_BUNNY_VIDEO_ENABLED)}function g(){m("editor")}function w(e){e&&u({project_id:e.project_id,transcript:e.transcript})}function E(){m("preview")}function b(e){e&&u({project_id:e.project_id,transcript:e.transcript})}function y(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];m("recording",{isLocalRendering:e,isRecording:!e,MEDIA_BUNNY_VIDEO_ENABLED:e})}function v(e){e&&"object"===typeof e&&u(e)}function _(e){var t;e&&u({mediaList:[],audioData:{},transcript:null!==(t=e.transcript)&&void 0!==t?t:window.transcript,videoList:Array.isArray(e.videoList)?e.videoList:[]})}function A(){window.isFontLoadingError=!0}function O(){window.isMediaLoadingError=!0}const C=[s,{isAdvanceEditor:!1},l,c,d];function T(){u({isAnimating:!1,buffering:!1,isSeeking:!1,isRecording:!1})}function S(){const e={};for(const t of C)Object.assign(e,f(t));e.isAdvanceEditor=!1,e.isRecording=!1,e.isLocalRendering=!1,u(e)}Object.keys(h)},228:function(e,t,n){"use strict";n.r(t),n.d(t,"default",(function(){return u}));var i=n(428),a=n(0),r=n.n(a),o=n(63),s=n(31),l=n(5);const{Text:c,Title:d}=i.a;function u(e){const[t,n]=Object(a.useState)(!0);return Object(a.useEffect)(()=>{let t=Object(s.i)();if(t&&window.Paddle)if(window.Paddle.Update({eventCallback:function(t){let{name:i,data:a}=t;"checkout.loaded"==i?(n(!1),e.loadCallback&&e.loadCallback()):"checkout.completed"==i?(window.fpr&&window.fpr("referral",{email:a.customer.email,uid:a.customer.id}),e.successCallback&&e.successCallback(a.transaction_id)):"checkout.closed"==i&&e.closeCallback&&e.closeCallback()}}),window.Paddle.Checkout){const n=window.Rewardful&&window.Rewardful.referral;let i={user_id:t.pk};n&&(i.rewardful={referral:n});let a={};e.customer?a.id=e.customer:a.email=t.email;let r={items:[{priceId:e.priceId,quantity:e.quantity||1}],customer:a,discountCode:e.coupon,customData:i};const o=Object(s.k)(l.pb.COUNTRY_CODE);o&&(r.customer.address={countryCode:o}),"inline"==e.method?r.settings={allowLogout:!1,displayMode:"inline"==e.method?"inline":"overlay",frameTarget:"checkout-container",frameInitialHeight:500,frameStyle:"width:400px; min-width:400px; background-color: transparent; border: none;"}:r.settings={allowLogout:!1},window.Paddle.Checkout.open(r)}else Object(o.c)("/pricing")},[]),r.a.createElement("div",{className:"checkout-container"})}},232:function(e,t,n){"use strict";n.d(t,"a",(function(){return s}));var i=n(0),a=n.n(i),r=n(27),o=n(63);function s(e){return a.a.createElement("div",{onClick:()=>{e.isAuthenticated?Object(o.c)("/"):Object(o.d)(r.b.home)},style:{cursor:"pointer",height:e.height||36}},(t=e.width||36,n=e.height||36,a.a.createElement("svg",{width:t,height:n,viewBox:"0 0 250 250",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{width:"250",height:"250",rx:"20",fill:"#FFB923"}),a.a.createElement("g",{clipPath:"url(#clip0)"},a.a.createElement("path",{d:"M40.4583 124.875L115.458 199.874H77.9583H40.4583V162.375V124.875Z",fill:"#262626"}),a.a.createElement("path",{d:"M210.458 169.875H135.458V199.875H210.458V169.875Z",fill:"#262626"}),a.a.createElement("path",{d:"M210.458 109.875H135.458V139.875H210.458V109.875Z",fill:"#262626"}),a.a.createElement("path",{d:"M210.458 49.875H135.458V79.875H210.458V49.875Z",fill:"#262626"}),a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M77.9583 124.875C98.669
1124.875 115.458 108.086 115.458 87.375C115.458 66.6643 98.669 49.875 77.9583 49.875C57.2476 49.875 40.4583 66.6643 40.4583 87.375C40.4583 108.086 57.2476 124.875 77.9583 124.875ZM70.6714 102.059C70.6714 104.731 73.9029 106.07 75.7928 104.18L81.2783 98.6946L89.7633 90.2095C90.9349 89.0379 90.9349 87.1384 89.7633 85.9669L81.278 77.4816L75.7928 71.9963C73.9029 70.1064 70.6714 71.4449 70.6714 74.1176V102.059Z",fill:"#262626"})),a.a.createElement("defs",null,a.a.createElement("clipPath",{id:"clip0"},a.a.createElement("rect",{width:"170",height:"150",fill:"white",transform:"translate(40.4583 49.875)"}))))));var t,n}},241:function(e,t){},251:function(e,t,n){"use strict";n.d(t,"a",(function(){return f})),n.d(t,"c",(function(){return p})),n.d(t,"b",(function(){return m})),n.d(t,"d",(function(){return E}));var i=n(12),a=n(33),r=n(5);const o=new Map;function s(e,t){return`video_${e}_frame_${String(t).padStart(6,"0")}`}function l(e){return o.get(e)}function c(e){e&&(e.onload=null,e.onerror=null,e.removeAttribute("src"),e.parentNode&&e.parentNode.removeChild(e))}function d(e,t){const n=e.loaded.get(t);if(n)return Promise.resolve(n);const i=e.loading.get(t);if(i)return i;const a=new Promise(n=>{const i=String(t).padStart(6,"0"),a=document.createElement("img");a.id=s(e.refId,t),a.crossOrigin="anonymous",a.onload=()=>{e.loading.delete(t),e.loaded.set(t,a),n(a)},a.onerror=a=>{console.error(`Failed to load image frame: ${i}.${window.workerFrameExtension}`,a),window.isMediaLoadingError=!0,e.loading.delete(t),n(null)},a.src=function(e,t){const n=String(t).padStart(6,"0");return`https://example.com/tmp/worker_${window.workerId}/video_${e}/frames/${n}.${window.workerFrameExtension}`}(e.refId,t)});return e.loading.set(t,a),a}async function u(e,t){const n=l(e);if(!n)return;const i=function(e,t){const n=t-2,i=t+6;return e.frameIndices.filter(e=>e>=n&&e<=i)}(n,t);let a=0,r=0;await new Promise(e=>{if(!i.length)return void e();const t=()=>{for(;a<4&&r<i.length;){const e=i[r++];a++,d(n,e).finally(()=>{a--,t()})}r>=i.length&&0===a&&e()};t()}),function(e,t){const n=t-2,i=t+6;for(const[a,r]of e.loaded.entries())(a<n||a>i)&&(c(r),e.loaded.delete(a))}(n,t)}function f(e,t){const n=l(e);return n?n.loaded.get(t)||null:document.getElementById(s(e,t))}async function h(e,t){const n=l(e);if(!n)return document.getElementById(s(e,t));if(!n.frameIndices.includes(t))return null;const i=await d(n,t);return p(e,t),i}function p(e,t){l(e)&&u(e,t).catch(e=>{console.warn("Offthread frame prefetch failed:",e)})}async function m(e){const t=e.refId,n=function(e){const t=new Set,n=window.workerStartFrame[e.refId+"_start_frame"],i=window.workerTotalFrames[e.refId+"_total_frames"],a=window.videoCutSegments[e.refId+"_cut_segments"];let r=window.startOverlapFrame[e.refId+"_start_overlap_frame"];void 0===r&&(r=0);const o=window.totalOverlapFrames[e.refId+"_total_overlap_frames"],s=window.videoOverlap[e.refId+"_video_overlap"];if(void 0===n||void 0===i)return[];if(a&&a.length>0)for(let l=0;l<a.length;l++){const e=a[l];for(let n=e.startFrame;n<e.startFrame+e.totalFrames;n++)t.add(n)}else for(let l=n;l<n+i;l++)t.add(l);if(s)for(let l=r;l<r+o;l++)t.add(l);return Array.from(t).sort((e,t)=>e-t)}(e);if(!n.length)return;o.set(t,{refId:t,frameIndices:n,loaded:new Map,loading:new Map});const i=n[0];await d(l(t),i),await u(t,i),console.log(`Offthread frames: loaded window around frame ${i} (${n.length} total for ${t})`)}function g(e){return e&&e.recast?"videoFrame"===e.type&&e.recast.mediaRef?e.recast.mediaRef:"videoContainer"===e.type&&[r.D.BACKGROUND_MEDIA,r.D.OVERLAY,r.D.INTRO,r.D.OUTRO].includes(e.recast.layer)?e.recast.refId:null:null}function w(e,t){const n=g(e);if(!n)return null;const r=n+"_start_frame";let o,s=window.workerStartFrame[r];if(void 0===s)return null;if("videoContainer"===e.type){const n=`${e.recast.asset}_${e.recast.refId}`;o=Object(a.f)(t,!1,n)}else o=Object(a.f)(t);return Math.max(s,Math.floor(o*Object(i.f)()))}async function E(e,t){if(!window.isRecording||!window.offthreadVideo||!e)return;const n=e.getObjects(),i=new Set;for(const a of n){const e=g(a);if(!e||i.has(e))continue;i.add(e);const n=w(a,t);null!=n&&await h(e,n)}}},256:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));const i=function(e,t){let n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"image/jpeg";const r="https://d1f7tgeg5sk2vt.cloudfront.net/",o="https://c00mkmgavk.execute-api.us-east-1.amazonaws.com/dev/get-s3-path";function s(e){for(var t=atob(e.split(",")[1]),n=[],i=0;i<t.length;i++)n.push(t.charCodeAt(i));return new Blob([new Uint8Array(n)],{type:a})}const l=s(e);function c(e){let t=e.url;const n=new FormData;
1return Object.keys(e.fields).forEach(t=>{n.append(t,e.fields[t])}),n.append("file",l),fetch(t,{method:"post",body:n}).then(t=>{if(t.ok){return r+e.fields.key}return null}).then(e=>e).catch(e=>null)}function d(){return fetch(o,{method:"post",body:JSON.stringify({name:t,unique_name:n,type:l.type,prefix:i}),headers:{accept:"application/json","content-type":"application/json"}}).then(e=>e.json()).then(e=>c(e.data)).catch(e=>(console.log("Fail to fecth upload URL.",e),null))}return d()}},260:function(e,t,n){"use strict";n.d(t,"a",(function(){return i}));function i(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"canvas",t=!1;const n=Date.now();function i(a,r){if(!t){if(!a())return Date.now()-n>=45e3?(console.warn(`[${e}] Asset load timed out; continuing with available elements`),void r()):void setTimeout(()=>i(a,r),100);r()}}function a(){return!t&&(t=!0,!0)}return{pollUntilReady:i,markFinished:a}}},27:function(e,t,n){"use strict";n.d(t,"b",(function(){return u})),n.d(t,"a",(function(){return f})),n.d(t,"d",(function(){return m})),n.d(t,"c",(function(){return g}));var i=n(248),a=n(31),r=n(38),o=n(21),s=n.n(o),l=n(5);let c="https://recast.studio",d="https://api.recast.studio/web";const u={base:d,home:c,forgot_password:d+"/accounts/password/reset/",privacy:c+"/privacy-policy/",terms:c+"/terms-service/",pricing:c+"/pricing/",new_preview:d+"/projects/{0}/new_preview/",record_project:d+"/projects/{0}/exports/{1}/record/",save_project:d+"/projects/{0}/save_project/?token={1}",share_video:"https://share.recast.studio/v/{0}"},f={login:d+"/rest-auth/login/",register:d+"/rest-auth/registration/",register_google:d+"/rest-auth/google/",google_connect:d+"/rest-auth/google_connect/",register_facebook:d+"/rest-auth/facebook/",facebook_connect:d+"/rest-auth/facebook_connect/",social_disconnect:d+"/rest-auth/disconnect/{0}/",profile:d+"/rest-auth/user/",logout:d+"/rest-auth/logout/",projects:d+"/api/projects/?page={0}",project:d+"/api/projects/{0}/",export:d+"/api/projects/{0}/export/",export_render_pipeline:d+"/api/projects/{0}/export-render-pipeline/",apply_all:d+"/api/projects/{0}/apply_all/",check_status:d+"/api/projects/{0}/check_status/",check_clip_status:d+"/api/projects/{0}/check_clip_status/",themes:d+"/api/themes/?type={0}&category__slug={1}&page={2}",theme:d+"/api/themes/{0}/",video_theme:d+"/api/video_themes/{0}/",media:d+"/api/media/?type={0}",assets:d+"/api/assets/?type={0}",get_signed_url:d+"/api/assets/sign_s3_upload/",asset:d+"/api/assets/{0}/",upload_by_url:d+"/api/assets/upload_by_url/",clone:d+"/api/projects/{0}/clone/",create_clip:d+"/api/projects/{0}/create_clip/",check_asset_status:d+"/api/assets/{0}/check_status/",generate_subtitle:d+"/api/assets/generate_subtitle/",user_delete:d+"/users/{0}/delete/",fonts:d+"/api/fonts/",font:d+"/api/fonts/{0}/",get_fonts:d+"/api/fonts/?search={0}&page={1}",add_font:d+"/api/fonts/{0}/add_font/?brand_id={1}",remove_font:d+"/api/fonts/{0}/remove_font/?brand_id={1}",teams:d+"/api/teams/",team:d+"/api/teams/{0}/",switch:d+"/api/teams/{0}/switch/",make_admin:d+"/api/teams/{0}/members/{1}/make_admin/",add_member:d+"/api/teams/{0}/members/invite/",member:d+"/api/teams/{0}/members/{1}/",project_save_as:d+"/api/projects/{0}/project_save_as/",categories:d+"/api/categories/",use_theme:d+"/api/themes/{0}/use_theme/",apply_theme:d+"/video/projects/{0}/apply_theme/",element_categories:d+"/api/element_categories/?page={0}",get_elements:d+"/api/elements/?category={0}&layer={1}",brands:d+"/api/brands/",brand:d+"/api/brands/{0}/",make_default:d+"/api/brands/{0}/make_default/",elements:d+"/api/elements/",formats:d+"/api/formats/",get_export:d+"/api/exports/{0}/",export_status:d+"/api/exports/{0}/check_status/",user_plan_update:d+"/plan/account_update/",template_clone:d+"/api/themes/{0}/clone/",copy_to_project:d+"/api/projects/{0}/copy/",copy_clips:d+"/api/projects/{0}/copy_clips/",manual_content:d+"/api/projects/{0}/content/",update_transcript:d+"/api/projects/{0}/transcript/",automatic_clips:d+"/api/projects/{0}/create_clips_from_transcript/",contents:d+"/api/contents/",content:d+"/api/contents/{0}/",share_project:d+"/video/projects/{0}/",activate_ai_flow:d+"/api/projects/{0}/activate/",content_check_status:d+"/api/contents/{0}/check_status/",exports:d+"/api/exports/?page={0}",send_verification:d+"/users/resend_verify_email/",speakers:d+"/api/speakers/",speaker:d+"/api/speakers/{0}
1/",detect_scene_cuts:d+"/api/assets/detect_scene_cuts/",abort_detect_scene:d+"/api/assets/{0}/abort_detect_scene/",folders:d+"/api/folders/",folder:d+"/api/folders/{0}/",products:d+"/api/products/",subscription:d+"/api/subscriptions/active/",update_subscription:d+"/api/subscriptions/{0}/modify/",cancel_subscription:d+"/api/subscriptions/{0}/cancel/",payment_update:d+"/api/subscriptions/{0}/payment/",transactions:d+"/api/transactions/",invoice:d+"/api/transactions/{0}/invoice/",log_action:d+"/api/teams/log_action/",monthly_consumption:d+"/api/credits/monthly_consumption/",generate_ai_clips:d+"/api/projects/{0}/ai_clips/",social_accounts:d+"/api/social-accounts/",social_accounts_connect:d+"/api/social-accounts/connect/",social_accounts_sync:d+"/api/social-accounts/sync/",social_account_disconnect:d+"/api/social-accounts/{0}/disconnect/",social_posts:d+"/api/social-posts/",social_post:d+"/api/social-posts/{0}/",social_post_retry:d+"/api/social-posts/{0}/retry/",social_post_sync:d+"/api/social-posts/{0}/sync/",social_post_unpublish:d+"/api/social-posts/{0}/unpublish/"};function h(e,t){let n={"Content-Type":"application/json","App-Version":localStorage.getItem("RECAST_APP_VERSION")};return t&&!l.ib.includes(e)&&(n.Authorization="Token "+t),n}function p(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.message=e,this.extra=t}function m(e,t,n){let a={message:"Something went wrong"};try{e.then((function(e){Object.entries(e).forEach(e=>{let[t,n]=e;Array.isArray(n)&&n.length>0?a[!t||["non_field_errors","email","password1"].includes(t)?"message":t]=n[0]:a["detail"==t?"message":t]=n}),a.message.indexOf("E-mail is not verified.")>-1?(Object(r.L)(n.email),t&&t()):a.message.indexOf("Invalid token")>-1?(i.b.info("Session expired"),Object(r.T)({message:"recast_logout_all"})):a.show_upgrade?(s.a.publish("OPEN_UPGRADE",a.key),t&&t()):a.show_notification?(s.a.publish("OPEN_CONTACT",Object.assign(a,{track_event:!0})),t&&t()):t&&t(a)})).catch(e=>{t&&t(a)})}catch(e){t&&t(a)}}function g(e,t,n,i,o,s){let l=Object(a.g)();if(navigator.onLine){const c=function(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;const a={method:t,headers:h(e,n)};return i&&(a.body=JSON.stringify(i)),a}(t,e,l,n);s&&"object"===typeof s&&Object.assign(c,s),fetch(t,c).then(e=>function(e,t){if(e.ok)return 204===e.status?new Promise((function(e,t){return e({success:!0})})):e.json();var n=e.statusText||"Something went wrong",i=new Promise((function(e,t){return e({success:!1,message:n})}));try{i=e.json()}catch(a){console.log("on handling error response",a)}throw new p(n,i)}(e)).then(o=>function(e,t,n,i,o){if(!Array.isArray(n)){if(n.hasOwnProperty("detail")&&"Verification e-mail sent."==n.detail)return Object(r.L)(o.email),void(i&&i());n.hasOwnProperty("plan")&&delete n.plan,e===f.profile&&"GET"===t&&Object(a.r)(n),e===f.products&&"GET"===t&&Object(a.s)(n.results),e===f.subscription&&"GET"===t&&Object(a.q)(n)}i&&i(n)}(t,e.toUpperCase(),o,i,n)).catch(e=>m(e.extra,o,n))}else o&&o({message:"No internet connection"})}p.prototype=new Error},293:function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"c",(function(){return u}));var i=n(21),a=n.n(i);const r={},o="sync_transcript",s=e=>{let t="RECAST_"+e,n=d(t);n.onmessage=c,r[t]=n},l=e=>{let t="RECAST_"+e;d(t).close(),delete r[t]},c=e=>{let t=e.data;if(t.message==o){let e=t.data.transcript;t.data.project_id!=window.project_id&&(e.hasOwnProperty("scenes")&&delete e.scenes,e.hasOwnProperty("detected_scenes")&&delete e.detected_scenes),window.transcript=Object.assign(window.transcript,e),a.a.publish("REFRESH_TRANSCRIPT")}},d=e=>r[e]||new BroadcastChannel(e),u=(e,t)=>{((e,t)=>{let n=d(e);n&&n.postMessage(t)})("RECAST_"+e,{message:o,data:t})}},31:function(e,t,n){"use strict";n.d(t,"t",(function(){return a})),n.d(t,"r",(function(){return r})),n.d(t,"g",(function(){return o})),n.d(t,"b",(function(){return s})),n.d(t,"v",(function(){return l})),n.d(t,"i",(function(){return c})),n.d(t,"q",(function(){return d})),n.d(t,"j",(function(){return u})),n.d(t,"s",(function(){return f})),n.d(t,"e",(function(){return h})),n.d(t,"l",(function(){return p})),n.d(t,"m",(function(){return m})),n.d(t,"n",(function(){return g})),n.d(t,"o",(function(){return w})),n.d(t,"d",(function(){return E})),n.d(t,"h",(function(){return b})),n.d(t,"c",(function(){return y}
1)),n.d(t,"a",(function(){return v})),n.d(t,"f",(function(){return _})),n.d(t,"u",(function(){return A})),n.d(t,"k",(function(){return O})),n.d(t,"p",(function(){return C}));n(21);var i=n(5);function a(e){T("recast_user",{token:e.key||e.token})}function r(e){let t=o();t&&T("recast_user",{...e,token:t})}function o(){let e=S("recast_user");return e&&e.token?e.token:null}function s(){let e=S("recast_user");return e?{id:e.current_team_id,name:e.current_team_name,owner:e.is_team_owner}:null}function l(e){if(!e)return;let t=S("recast_user");t&&T("recast_user",Object.assign(t,{current_team_id:e.id,current_team_name:e.title,is_team_owner:e.is_owner}))}function c(){return S("recast_user")}function d(e){T("recast_plan",e)}function u(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=S("recast_plan");if(!t||!t.products)return;let n=t.products.find(e=>"base"==e.type);n||(n=t.products[0]);let i=t.prices.find(t=>(!e||t.interval==e)&&"base"==t.type);return i||(i=t.prices[0]),t.price=i,t.product=n,t}function f(e){T("recast_plans",e)}function h(){return S("recast_plans")}function p(){return S("recast_user").is_superuser}function m(){let e=u();return e&&"RECURRING"==e.category}function g(){let e=u();return e&&["cancelled","canceled"].includes(e.status)}function w(){let e=u();return e&&"past_due"===e.status}function E(e){let t=null;if(t=e?{products:[e],product:e}:u(),!t)return;if("LTD"==t.category)return null;let n=h();if(!n)return null;let a=t.product.name,r=i.P.findIndex(e=>a.toUpperCase().startsWith(e));if(r<0||r==i.P.length-1)return null;let o=null;for(let s=1;s<i.P.length;s++){let e=i.P[r+s];if(o=n.find(t=>t.name.toUpperCase().startsWith(e)),o)break}return o}function b(){const e=S("recast_plan");return e?e.quotas.filter(e=>e.hasOwnProperty("usage")).reduce((e,t)=>({...e,[t.code]:t.usage}),{}):{}}function y(){const e=S("recast_plan");return e?e.quotas.filter(e=>e.hasOwnProperty("limit")).reduce((e,t)=>({...e,[t.code]:t.limit}),{}):{}}function v(e,t){const n=S("recast_plan");if(!n)return 0;let i=n.credits.find(t=>t.code==e);return i?t/i.quantity*i.cost:0}function _(e,t){const n=S("recast_plan");if(!n)return 0;let i=n.credits.find(t=>t.code==e);return i?t/i.cost*i.quantity:0}function A(e,t){let n=S("user_prefrences");n||(n={}),T("user_prefrences",Object.assign(n,{[e]:t}))}function O(e){let t=S("user_prefrences");return t&&t.hasOwnProperty(e)?t[e]:null}function C(){localStorage.clear()}function T(e,t){localStorage.setItem(e,JSON.stringify(t))}function S(e){let t=localStorage.getItem(e);return t&&(t=JSON.parse(t)),t}},316:function(e,t,n){"use strict";n.d(t,"a",(function(){return f}));var i=n(0),a=n.n(i),r=n(420),o=n(249),s=n(81),l=n(426),c=n(427);const d={twitter:"X (Twitter)",instagram:"Instagram",facebook:"Facebook",linkedin:"LinkedIn",tiktok:"TikTok",youtube:"YouTube",pinterest:"Pinterest",reddit:"Reddit",bluesky:"Bluesky",threads:"Threads",googlebusiness:"Google Business",telegram:"Telegram",snapchat:"Snapchat"};function u(e){return e?d[e.toLowerCase()]||e:"this platform"}function f(){const{search:e}=Object(r.f)(),t=Object(i.useMemo)(()=>new URLSearchParams(e),[e]),n=t.get("error"),d=t.get("platform"),f=t.get("connected"),h=t.get("username"),p="oauth_denied"===n,m=Boolean(f)&&Boolean(t.get("profileId"))&&Boolean(t.get("accountId"));if(p){const e=u(d);return a.a.createElement("div",{style:{position:"fixed",inset:0,display:"flex",alignItems:"center",justifyContent:"center",padding:24}},a.a.createElement(o.a,{status:"error",icon:a.a.createElement(l.a,{style:{color:"#ff4d4f",fontSize:64}}),title:"Connection cancelled",subTitle:`You didn\u2019t authorize ${e}. Close this window and try again if you want to connect.`,extra:a.a.createElement(s.a,{type:"primary",onClick:()=>window.close()},"Close window")}))}if(m){const e=h?"@"+h:h;return a.a.createElement("div",{style:{position:"fixed",inset:0,display:"flex",alignItems:"center",justifyContent:"center",padding:24}},a.a.createElement(o.a,{icon:a.a.createElement(c.a,{style:{color:"#52c41a",fontSize:64}}),title:"Account connected!",subTitle:e?`${e} on ${u(f)} is linked. You can close this window.`:`Your ${u(f)} account has been linked. You can close this window.`,extra:a.a.createElement(s.a,{type:"primary",onClick:()=>window.close()},"Close window")}))}return a.a.createElement("div",{style:{position:"fixed",inset:0,display:"flex",alignItems:"center",justifyContent:"center",padding:24}},a.a.createElement(o.a,{title:"Almost done",subTitle:"You can close this window and return to the app.",extra:a.a.createElement(s.a,{type:"primary",onClick:()=>window.close()},"Close window")}))}},33:function(e,t,n){"use strict";n.d(t,"a",(function(){return r})),n.d(t,"e",(function(){return o}
1)),n.d(t,"d",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"j",(function(){return d})),n.d(t,"l",(function(){return u})),n.d(t,"m",(function(){return f})),n.d(t,"n",(function(){return h})),n.d(t,"k",(function(){return p})),n.d(t,"i",(function(){return m})),n.d(t,"f",(function(){return g})),n.d(t,"h",(function(){return w})),n.d(t,"c",(function(){return E}));var i=n(15),a=n(5);function r(e,t){let n=0,i=0;for(let r=0;r<e.length;r++){let t=e[r].recast;t.layer==a.D.INTRO?n=t.duration:t.layer==a.D.OUTRO&&(i=t.duration)}return{intro_duration:n,outro_duration:i,clip_duration:t,duration:t+n+i}}function o(e){if(!Array.isArray(e))return 0;for(let t=0;t<e.length;t++){const n=e[t],i=n&&n.recast;if(i&&i.layer==a.D.INTRO)return Number(i.duration)||0}return 0}function s(){var e;let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return t===a.D.INTRO?0:(null===(e=i.c||i.f)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.intro_duration)||0}function l(){var e;return(null===(e=i.c||i.f)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.outro_duration)||0}function c(){var e;return(null===(e=i.c||i.f)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.clip_duration)||0}function d(){var e;return Number(((null===(e=i.c||i.f)||void 0===e||null===(e=e.data)||void 0===e?void 0:e.duration)||0).toFixed(2))}function u(e){i.c&&(i.c.data.intro_duration=e),i.f&&(i.f.data.intro_duration=e)}function f(e){i.c&&(i.c.data.outro_duration=e),i.f&&(i.f.data.outro_duration=e)}function h(e){i.c&&(i.c.data.duration=e),i.f&&(i.f.data.duration=e)}function p(e){i.c&&(i.c.data.clip_duration=e),i.f&&(i.f.data.clip_duration=e)}function m(e){var t,n,i,a,r,o;let s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;const l=null!==(t=null===(n=e.trim)||void 0===n?void 0:n.start)&&void 0!==t?t:0,c=null!==(i=null!==(a=null===(r=e.trim)||void 0===r?void 0:r.end)&&void 0!==a?a:e.duration)&&void 0!==i?i:0,d=null===s||void 0===s?c:s,u=null!==(o=e.cuts)&&void 0!==o?o:[];let f=0;for(const p of u){var h;if(null===(null!==(h=p.start)&&void 0!==h?h:null)||!p.end)continue;const e=Math.max(p.start,l),t=Math.min(p.end,d);e<t&&(f+=t-e)}return f}function g(e){var t,n,i,a,r,o,l,c,d,u,f,h,p;let m=arguments.length>1&&void 0!==arguments[1]&&arguments[1],g=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;e<0&&(e=0);const w=g?null===(t=window.mediaManager)||void 0===t?void 0:t.getMetadata(g):null===(n=window.mediaManager)||void 0===n||null===(i=n.getPrimaryMedia)||void 0===i?void 0:i.call(n);if(!w)return e;const E=(null!==(a=w.position)&&void 0!==a?a:0)+(m?0:s(w.layer)),b=null!==(r=w.playbackSpeed)&&void 0!==r?r:1,y=null!==(o=null===(l=w.trim)||void 0===l?void 0:l.start)&&void 0!==o?o:0,v=null!==(c=null!==(d=null!==(u=null!==(f=null===(h=w.trim)||void 0===h?void 0:h.end)&&void 0!==f?f:w.videoDuration)&&void 0!==u?u:w.audioDuration)&&void 0!==d?d:w.duration)&&void 0!==c?c:0,_=null!==(p=w.cuts)&&void 0!==p?p:[],A=e-E;let O=y/b+A;if(w.loop&&v>0){let e=v-y;O-=e*Math.floor(A/e)}for(const s of _)if((s.start||0===s.start)&&s.end){if(s.end<=y||s.start>=v)continue;y>=s.start&&y<s.end?O+=s.end-y:(O>=s.start&&O<=s.end||s.start>=y&&s.end<=O)&&(O+=s.end-s.start)}return Math.max(0,O)}function w(e){var t,n,i,a,r,o,l,c,d,u;let f=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const h=null===(t=window.mediaManager)||void 0===t||null===(n=t.getPrimaryMedia)||void 0===n?void 0:n.call(t);if(!h)return e;const p=null!==(i=null===(a=h.trim)||void 0===a?void 0:a.start)&&void 0!==i?i:0,g=null!==(r=null!==(o=null!==(l=null!==(c=null===(d=h.trim)||void 0===d?void 0:d.end)&&void 0!==c?c:h.videoDuration)&&void 0!==l?l:h.audioDuration)&&void 0!==o?o:h.duration)&&void 0!==r?r:0,w=(null!==(u=h.position)&&void 0!==u?u:0)+(f?0:s()),E=Math.max(p,Math.min(e,g)),b=p+m(h,E),y=E-b;return y+w}function E(){return(null===i.f||void 0===i.f?void 0:i.f.time())||(null===i.c||void 0===i.c?void 0:i.c.time())||0}},349:function(e,t,n){e.exports=n(423)},354:function(e,t,n){},360:function(e,t){},361:function(e,t){},362:function(e,t){},367:function(e,t){},369:function(e,t){},379:function(e,t){},38:function(e,t,n){"use strict";n.d(t,"v",(function(){return G})),n.d(t,"y",(function(){return Y})),n.d(t,"Q",(function(){return J})),n.d(t,"M",(function(){return X})),n.d(t,"B",(function(){return K})),n.d(t,"H",(function(){return Q})),n.d(t,"G",(function(){return Z})),n.d(t,"b",(function(){return q})),n.d(t,"F",(function(){return $})),n.d(t,"S",(function(){return ee})),n.d(t,"j",(function(){return te})),n.d(t,"r",(function(){return ne})),n.d(t,"O",(function(){return ie})),n.d(t,"T",(function(){return ae})),n.d(t,"l",(function(){return re})),n.d(t,"R",(function(){return oe})),n.d(t,"X",(function(){return se})),n.d(t,"a",(function(){return le})),n.d(t,"p",(function(){return ce})),n.d(t,"u",(function(){return de})),n.d(t,"k",(function(){return ue})),n.d(t,"o",(function(){return fe})),n.d(t,"z",(function(){return he})),n.d(t,"f",(function(){return pe})),n.d(t,"s",(function(){return me})),n.d(t,"t",(function(){return ge})),n.d(t,"d",(function(){return we})),n.d(t,"K",(function(){return Ee})),n.d(t,"e",(function(){return be})),n.d(t,"D",(function(){return ye})),n.d(t,"A",(function(){return Oe})),n.d(t,"i",(function(){return Ce})),n.d(t,"E",(function(){return Te})),n.d(t,"C",(function(){return Se})),n.d(t,"P",(function(){return Re})),n.d(t,"x",(function(){return De})),n.d(t,"W",(function(){return Ie})),n.d(t,"I",(function(){return ke})),n.d(t,"U",(function(){return Ne})),n.d(t,"q",(function(){return je})),n.d(t,"h",(function(){return Le})),n.d(t,"c",(function(){return Pe})),n.d(t,"L",(function(){return xe})),n.d(t,"J",(function(){return Me})),n.d(t,"V",(function(){return Ue})),n.d(t,"n",(function(){return Be})),n.d(t,"N",(function(){return Fe})),n.d(t,"g",(function(){return ze})),n.d(t,"w",(function(){return Ve})),n.d(t,"m",(function(){return He}));var i=n(21),a=n.n(i),r=n(0),o=n.n(r),s=n(326),l=n.n(s),c=n(5),d=n(63),u=n(31),f=n(27),h=(n(15),n(240),n(428)),p=n(467),m=n(442),g=n(468),w=n(248),E=n(466),b=n(249),y=n(81),v=(n(277),n(162)),_=n(472),A=n(429),O=n(450),C=n(436),T=n(473),S=n(474),R=n(475),D=n(451),I=n(105),k=n(93),N=n.n(k),j=n(330),L=n.n(j),P=(n(14),n(293)),x=n(66),M=n(433);const{Text:U}=h.a;function B(e){const[t,n]=Object(r.useState)(!1);return o.a.createElement(b.a,{icon:o.a.createElement(M.a,null),title:"Check your inbox, Please!",subTitle:o.a.createElement(m.b,{direction:"vertical",size:0},o.a.createElement(U,{type:"secondary"},"To start using Recast Studio, We need to verify your email."),o.a.createElement(U,{type:"secondary"},"A verification email has been sent to your email. Please check it and confirm it's really you.")),extra:o.a.createElement(m.b,{style:{marginTop:30}},o.a.createElement(U,{strong:!0},"Didn't get email?"),o.a.createElement(y.a,{type:"default",loading:t,onClick:()=>{n(!0),Object(f.c)("POST",f.a.send_verification,{email:e.email},e=>{n(!1),e&&w.b.success(e.message)},e=>{n(!1),e&&w.b.error(e.message)})}},"Send it again"))})}L()(N.a);const{Text:F,Title:z,Paragraph:V,Link:H}=h.a;let W;function G(e){let t=e;switch(e){case"100":t="Thin";break;case"100italic":t="Thin + Italic";break;case"200":t="Extra-Light";break;case"200italic":t="Extra-Light + Italic";break;case"300":t="Light";break;case"300italic":t="Light + Italic";break;case"400":case"regular":t="Regular";break;case"italic":case"400italic":t="Regular + Italic";break;case"500":t="Medium";break;case"500italic":t="Medium + Italic";break;case"600":t="Semi-Bold";break;case"600italic":t="Semi-Bold + Italic";break;case"700":t="Bold";break;case"700italic":t="Bold + Italic";break;case"800":t="Extra-Bold";break;case"800italic":t="Extra-Bold + Italic";break;case"900":t="Black";break;case"900italic":t="Black + Italic"}return t}const Y=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const[n,i,a]=e.match(/\w\w/g).map(e=>parseInt(e,16));return`rgba(${n},${i},${a},${t})`},J=e=>{let t=["r","g","b","a"],n={r:0,g:0,b:0,a:1};if(e.startsWith("#"))n=Object(I.e)(e);else if(e.startsWith("rgb")){let i=e.slice(e.indexOf("(")+1,e.indexOf(")")).split(",");
1n=new Object,i.forEach((e,i)=>{n[t[i]]=parseInt(e)})}return n};function X(e){let t=["media","type","lq_url","poster_url","color_changeable","video_duration","audio_duration","blob_url","poster_data_url","ref_id","media_ref"],n=["layer","duration","loop","loopFrom","json","id","font","wave","title","gravity","subtitles","captions","position","end","touched","mute","trim","broll","sceneRef"],i={originalUrl:e.media,asset:e.type,previewUrl:e.lq_url,posterUrl:e.poster_url,changeColor:e.color_changeable,videoDuration:e.video_duration,audioDuration:e.audio_duration,imageDuration:e.image_duration,blobUrl:e.blob_url,posterDataUrl:e.poster_data_url,refId:e.ref_id,mediaRef:e.media_ref},a=Object.keys(e).filter(i=>n.includes(i)&&e[i]&&!t.includes(i)).reduce((t,n,i)=>({...t,[n]:e[n]}),{});return Object.assign(i,a),i}function K(e){return"string"===typeof e&&null!=e.match(/^http[^\?]*.(jpg|jpeg|png)(\?(.*))?$/gim)}function Q(e,t){var n=t-1;if(-1===t)throw new Error("Element not found in array");n<0&&(n=0);var i=e[t];return e.splice(t,1),e.splice(n,0,i),e}function Z(e,t){var n=t+1;if(-1===t)throw new Error("Element not found in array");n>=e.length&&(n=e.length);var i=e[t];return e.splice(t,1),e.splice(n,0,i),e}function q(e,t,n){if(n>=(e=e.slice()).length)for(var i=n-e.length+1;i--;)e.push(void 0);return e.splice(n,0,e.splice(t,1)[0]),e.filter(Boolean)}function $(e){return Math.round(e/1e3*100)/100}function ee(e){return 1e3*e}const te=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=!(arguments.length>3&&void 0!==arguments[3])||arguments[3],a=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(n)return N.a.duration(e,t).format("hh:mm:ss.SS",{trim:!1});let r=e;return"ms"==t&&(r=$(e)),r>=3600?a?N.a.duration(e,t).format("hh:mm:ss",{trim:!1})+(i?" hr":""):N.a.duration(e,t).format("h:mm:ss",{trim:"small"})+(i?" hr":""):a?N.a.duration(e,t).format("mm:ss",{trim:!1})+(i?" min":""):r>=60?N.a.duration(e,t).format("m:ss",{trim:"small"})+(i?" min":""):N.a.duration(e,t).format("s",{precision:2})+(i?" sec":"")};function ne(e,t){return new URLSearchParams(e).get(t)}function ie(e,t){let n=new URLSearchParams(e);return n.delete(t),n.toString()}function ae(e){"recast_login_all"===e.message?a.a.publish("LOGIN_ALL"):"recast_logout_all"===e.message?a.a.publish("LOGOUT_ALL"):"recast_check_poll_ready"===e.message&&function(e){var t=null,n=e.url;(function(e,t,n){var i=Number(new Date)+(t||3e6);n=n||3e3;var a=function(t,r){e(e=>{"INTERRUPT"===e&&r(new Error("Polling Interrupted.")),e?t(e):Number(new Date)<i?setTimeout(a,n,t,r):r(new Error("Timed out."))})};return new Promise(a)})((function(i){var r=new XMLHttpRequest;r.open("GET",n,!0),r.onreadystatechange=function(){if(4===this.readyState){if(200===this.status){var n=JSON.parse(r.responseText);"object"==typeof n&&"in_progress"==n.status?e.progressKey&&a.a.publish(e.progressKey,n):t=n}else 200!=this.status&&204!==this.status&&(t="INTERRUPT");i(t)}};let o=Object(u.g)();o&&(r.setRequestHeader("Authorization","Token "+o),r.send())})).then((function(t){let i=ne(n,"poll_id");i&&(t.poll_id=i),a.a.publish(e.successKey,t)})).catch((function(t){let i={url:n,error:t};a.a.publish(e.errorKey,i)}))}(e)}function re(){return l()()}const oe=e=>{Object.entries(c.t).forEach(t=>{let[n,i]=t;e.layout&&e.layout.hasOwnProperty(i)?localStorage.setItem("layout_"+n,JSON.stringify(e.layout[i])):localStorage.removeItem("layout_"+i)})};function se(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};window.ga&&window.ga("send",{hitType:"event",eventAction:e}),window.dashly&&window.dashly.track(e,t),window.posthog&&window.posthog.capture(e,t)}function le(e){window.dashly&&window.dashly.identify(e),window.posthog&&window.posthog.setPersonProperties(e)}function ce(e,t){let n={method:"GET"};return fetch(`https://fonts.googleapis.com/css?family=${e.fFamily}&text=${encodeURIComponent(t)}`,n).then(e=>e.text()).then(e=>{const t=/url\((.+?)\)/,i=e.split("@font-face").map(e=>e.trimStart()).filter(e=>"{"===e[0]);return Promise.all(i.map(e=>t.exec(e)).filter(e=>e).map(e=>fetch(e[1],n)))}).then(e=>Promise.all(e.map(e=>e.blob()))).then(e=>Promise.all(e.map(e=>function(e){return new Promise((t,n)=>{const i=new FileReader;i.readAsDataURL(e),i.onloadend=()=>t(i.result),i.onerror=n})}(e))))}
1function de(e){return e.reduce((e,t,n)=>{var i;return e.openSentence?e.data[e.data.length-1].push(t):e.data.push([t]),e.openSentence=!((i=t.text).endsWith(".")||i.endsWith("?")||i.endsWith("!")),e},{data:[],openSentence:!1}).data}const ue=(e,t)=>{let n=document.createElement("video");n.preload="metadata";let i=document.createElement("canvas"),a=i.getContext("2d");n.addEventListener("seeked",(function(){a.drawImage(n,0,0,i.width,i.height);let e=i.toDataURL("image/jpeg",.8);t(e,n.duration,n.videoWidth,n.videoHeight)})),n.addEventListener("loadedmetadata",(function(){var e=200/n.videoHeight;i.width=n.videoWidth*e,i.height=n.videoHeight*e,n.currentTime=0})),n.src=e,n.crossOrigin="anonymous",n.load()},fe=(e,t)=>{let n=document.createElement("video");n.preload="metadata",n.addEventListener("seeked",(function(){t(n.duration,n.videoWidth,n.videoHeight)})),n.addEventListener("loadedmetadata",(function(){n.currentTime=0})),n.src=e,n.crossOrigin="anonymous",n.load()};function he(e){if(e<1024)return e+" bytes";let t=Math.floor(Math.log(e)/Math.log(1024)),n=e/Math.pow(1024,t),i=Math.round(n);return n=i<10?n.toFixed(2):i<100?n.toFixed(1):i,`${n} ${"KMGTPEZY"[t-1]}B`}const pe=e=>{let t=Object(u.c)();return!(!t||!t.hasOwnProperty(e))&&t[e]},me=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",n=Object(u.c)();return n&&n.hasOwnProperty(e)?[c.S.RECAST_CREDIT,c.S.VIDEO_LENGTH,c.S.STORAGE,c.S.UPLOAD_SIZE,c.S.SOCIAL_PROFILES].includes(e)?e==c.S.UPLOAD_SIZE||e==c.S.STORAGE?"display"==t?parseInt(parseInt(n[e])/c.I)+" GB":parseInt(n[e])*c.i:[c.S.VIDEO_LENGTH,c.S.EXPORT_DURATION].includes(e)?60*parseInt(n[e]):parseInt(n[e]):n[e]:0},ge=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"value",n=Object(u.h)();if(!n||!n.hasOwnProperty(e))return 0;if("percent"==t){let t=Object(u.c)();return parseInt(n[e]/t[e]*100)}if("display"==t){if(e==c.S.STORAGE||e==c.S.UPLOAD_SIZE)return he(n[e]*c.i);if(e==c.S.EXPORT_DURATION)return te(n[e],"seconds")}return n[e]},we=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=!0,n=Object(u.h)();if(!n)return!1;if(n.hasOwnProperty(c.S.RECAST_CREDIT)&&e){t=60*Object(u.f)(c.S.UPLOAD_DURATION,ge(c.S.RECAST_CREDIT))+e<=60*Object(u.f)(c.S.UPLOAD_DURATION,me(c.S.RECAST_CREDIT))}return t},Ee=e=>{p.a.info({title:o.a.createElement(z,{style:{textAlign:"center"},level:2},"Congratulations \ud83c\udf89"),icon:null,centered:!0,width:540,zIndex:1001,className:"recast-modal-light",okButtonProps:{style:{display:"none"}},closable:!0,maskClosable:!0,content:o.a.createElement("div",{className:"flex-div-center-column"},o.a.createElement(v.a,{component:x.H,style:{color:"#06C668",fontSize:91}}),o.a.createElement(F,{style:{marginTop:10,textAlign:"center",fontSize:16}},"Your transaction has been completed successfully.")," ",o.a.createElement("br",null),o.a.createElement(F,{style:{marginTop:10,textAlign:"center",fontSize:16}},"It may take a few moments to update your subscription. Please refresh the page if the subscription is not updated.")),afterClose:function(){Fe(e)}})},be=(e,t,n,i,a)=>{let r="downgrade"==(parseInt(n.amount)>=parseInt(i.amount)?"upgrade":"downgrade"),s=t.name+" - "+("month"==n.interval?"Monthly":"Yearly"),l=o.a.createElement(m.b,{direction:"vertical",style:{display:"flex"},size:"large"},o.a.createElement(F,null,"You are changing your plan to ",o.a.createElement(F,{type:"warning",strong:!0},s),". Your payment will be prorated."),r&&o.a.createElement(g.a,{type:"info",showIcon:!0,className:"recast-alert-light",message:"Downgrade not recommended",description:o.a.createElement(F,null,"Plan downgrade will be enabled at the end of your billing cycle, or you can contact us to schedule your downgrade for the end of the billing period.")})),c=N()().format("DD-MM-YYYY"),d=N()(e.next_billing_date).format("DD-MM-YYYY"),u=r&&c!==d;p.a.confirm({title:"Confirm Change Plan",closable:!0,centered:!0,className:"recast-modal-light",content:l,okText:"Continue",okButtonProps:{disabled:u},width:500,zIndex:1001,confirmLoading:!0,onOk:function(){return!!u||new Promise((t,i)=>{Object(f.c)("POST",f.a.update_subscription.format(e.id),{price_ids:[n.remote_id]},e=>{t(!0),Ee(a)},e=>{t(!0),e&&w.b.error(e.message)})})},maskClosable:!0})},ye=(e,t,n)=>{let i=e.start>=t.start&&e.end<=t.end;if(!i){let n=e.end-e.start,a=0;e.start.between(t.start,t.end)?a=e.end-t.end:e.end.between(t.start,t.end)&&(a=t.start-e.start),a>0&&(i=a/n<c.ub)}return i&&(i=!ve(e,n)),i},ve=(e,t)=>
1{let n=!1;for(let i=0;i<(t||[]).length;i++){let a=t[i];if(e.start>=a.start&&e.end<=a.end){n=!0;break}}return n};function _e(e,t,n){var i=[e,t,n].map((function(e){return(e/=255)<=.03928?e/12.92:Math.pow((e+.055)/1.055,2.4)}));return.2126*i[0]+.7152*i[1]+.0722*i[2]}function Ae(e,t){var n=_e(e[0],e[1],e[2]),i=_e(t[0],t[1],t[2]);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function Oe(e){let t=null;const{r:n,g:i,b:a}=J(e);let r=Ae([n,i,a],[255,255,255]),o=Ae([n,i,a],[0,0,0]);return t=r>=4.5||r>o?"#FFFFFF":"#000000",t}const Ce=(e,t)=>{let n=[t.start,t.end],i=[...n],a=[];e.forEach(e=>{let t=[e.start,e.end];(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];const[n,i]=e,[a,r]=t,o=Math.max(n,a),s=Math.min(i,r);return o<=s})(n,t)&&(i.push(...t),a.push(e.id))});let r=e.filter(e=>!a.includes(e.id)),o=Math.min(...i),s=Math.max(...i),l={...t,start:o,end:s};return r.push(l),r.sort((e,t)=>e.start>t.start?1:-1),{cuts:r,new:l}},Te=e=>{if(!e||!e.length)return[];let t=e.filter(e=>(e.start||0===e.start)&&e.end&&e.end>e.start).sort((e,t)=>e.start-t.start);if(!t.length)return[];let n=[t[0]];for(let i=1;i<t.length;i++){let e=t[i],a=n[n.length-1];e.start<a.end?a.end=Math.max(a.end,e.end):n.push(e)}return n},Se=e=>{let t;try{t=new URL(e)}catch(n){return!1}return("http:"===t.protocol||"https:"===t.protocol)&&t},Re=()=>{let e=window.$wave||{};Object.values(e).map((e,t)=>{const n=e.audioCtx;n&&"suspended"==n.state&&n.resume()})},De=(e,t)=>{const n=window.transcript||t;let i=null;if(Object.keys(n||{}).length){i=n.type;let e=n.subtitles||[],t=n.captions||[];i?window.transcript=n:(e.length?i=c.lb.MANUAL:t.length&&(i=c.lb.AUTOMATIC),window.transcript=Object.assign(n,{type:i}))}return i},Ie=(e,t)=>{let n=e.uuid,i=e.parent||e,r=window.transcript||{};window.transcript=Object.assign(r,t),(window.transcript.action==c.kb.REPLACE||window.transcript.captions&&window.transcript.captions.length||window.transcript.subtitles&&window.transcript.subtitles.length)&&localStorage.setItem("dirty_transcript_"+n,!0),a.a.publish("PROJECT_MODIFIED"),W&&(clearTimeout(W),W=null),W=setTimeout(()=>{let e={project_id:n,transcript:JSON.parse(JSON.stringify(window.transcript))};Object(P.c)(i.uuid,e)},1e3)},ke=()=>{p.a.confirm({title:"Email confirmation is required",content:o.a.createElement("div",null,o.a.createElement(F,null,"To complete your registration, please confirm your email address. Click the link in the email we sent you, or visit your profile page and click ",o.a.createElement("b",null,"Resend Email")," to receive a new email.")),okText:"Go to profile",className:"recast-modal-light",closable:!0,maskClosable:!0,okButtonProps:{type:"default"},cancelButtonProps:{type:"transparent"},onOk:e=>{Object(d.c)("/profile"),"function"==typeof e&&e.name&&e()}})},Ne=e=>{Object(u.k)(c.pb.USE_DESKTOP_POPUP)||!Object.keys(e).length||e.lg||e.xl||e.xxl||(Object(u.u)(c.pb.USE_DESKTOP_POPUP,!0),p.a.info({key:"desktop-recommended",title:"Desktop Usage Recommended",content:o.a.createElement("div",null,o.a.createElement(F,null,"For the best experience, it's better to use a desktop. Some features may not work well on phones or tablets.")),className:"recast-modal-light",closable:!0,icon:o.a.createElement(_.a,null),width:500,maskClosable:!0,okButtonProps:{type:"default"}}))};function je(e){return[c.D.BACKGROUND_MEDIA,c.D.AUDIO].includes(e.layer)?{text:e.title,icon:A.a,color:"#e77ac0"}:e.layer===c.D.TEXT?{text:"Text",icon:x.C,color:"#6e6ede"}:e.layer===c.D.INTRO?{text:"Intro",icon:O.a,color:"#6e6ede",rotate:270}:e.layer===c.D.OUTRO?{text:"Outro",icon:C.a,color:"#6e6ede",rotate:90}:e.layer==c.D.PROGRESS_BAR?{text:"Progress Bar",icon:x.k,color:"#247dab"}:e.layer==c.D.AUDIO_WAVE?{text:"Sound Wave",icon:x.m,color:"#e77ac0"}:e.asset==c.f[2]||e.asset==c.f[4]?{text:"Shape",icon:T.a,color:"#f29e5e"}:e.broll?e.asset==c.f[1]?{text:"B-Roll Video",icon:x.i,color:"#68d3cf"}:{text:"B-Roll Image",icon:x.i,color:"#68d3cf"}:"videoFrame"==e.type?{text:"Video Frame",icon:x.j,color:"#68d3cf"}:e.layer==c.D.SUBTITLE?{text:"Caption",icon:x.l,color:"#b37a00"}:e.asset==c.f[0]?{text:e.asset.capitalize(),icon:S.a,color:"#68d3cf"}:e.asset==c.f[1]?{text:e.asset.capitalize(),icon:A.a,color:"#68d3cf"}:{text:e.asset.capitalize(),icon:R.a,color:"#f29e5e"}}const Le=(e,t)=>{let n=t.width+"X"+t.height;return e.filter(e=>!!(e.orientation&&e.orientation[n]&&e.orientation[n].public)||t.id==e.artboard.id).map(e=>(e.orientation&&e.orientation[n]&&(e.orientation[n].thumbnail?e.thumbnail=e.orientation[n].thumbnail:e.orientation[n].poster_url&&(e.thumbnail=e.orientation[n].poster_url)),e))},Pe=()=>o.a.createElement(m.b,{direction:"vertical",style:{width:320}},o.a.createElement(E.a,{width:320,style:{objectFit:"contain",borderRadius:4,pointerEvents:"none"},crossOrigin:"anonymous",src:"https://d1f7tgeg5sk2vt.cloudfront.net/manual/reframe.png",fallback:c.s,preview:!1}),o.a.createElement(F,{strong:!0,type:"secondary",style:{fontSize:10,textTransform:"uppercase"}},"Auto Reframe"),o.a.createElement(F,null,"AI automatically detects scenes and faces in your video, adju
1sting the view to fit them perfectly."),o.a.createElement(F,null,"No need to manually adjust the frame yourself!")),xe=e=>{p.a.info({title:null,content:o.a.createElement(B,{email:e}),bodyStyle:{padding:0},okButtonProps:{style:{display:"none"}},width:500,closable:!0,icon:null,maskClosable:!0})},Me=()=>{let e=p.a.info({title:null,content:o.a.createElement(b.a,{icon:o.a.createElement(D.a,null),title:"Email is Verified!",subTitle:"Your email has been sucessfully verified. You can now login to access the platform.",extra:o.a.createElement(y.a,{type:"primary",onClick:()=>e.destroy()},"Okay")}),bodyStyle:{padding:0},okButtonProps:{style:{display:"none"}},width:500,closable:!0,icon:null,maskClosable:!0})},Ue=e=>{e.preventDefault(),e.stopPropagation()},Be=e=>{if(!e)return"";let t=(e.display_name||e.name).toUpperCase();return(t.startsWith(c.P[1])?"16":t.startsWith(c.P[2])?"30":t.startsWith(c.P[3])?"50":"")+"% off \ud83c\udf89"},Fe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;Object(f.c)("GET",f.a.subscription,null,t=>{e&&e(t),a.a.publish("QUOTA_UPDATED")},null)},ze=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;Object(f.c)("POST",f.a.log_action,{quota:e,quantity:t},e=>{n&&n(e)},null)},Ve=(e,t)=>{var n;const i=null===(n=window.mediaManager)||void 0===n?void 0:n.getPrimaryMedia(),a=i?i.refId:null,r=t=>{let n=e[t];if(!n||"transparent"==n)return null;if(n.startsWith("rgb")){const{r:e,g:t,b:i}=J(n);n=Object(I.f)(e,t,i)}return n};let o=r("fill"),s=r("activeFill"),l=r("stroke"),d=o||s||l||"#ffffff",u={mediaRef:a,presetStyle:t,fill:d,shadow:null,stroke:null,backgroundColor:null,textBackgroundColor:null,border:"none",shadowType:"none",strokeLineCap:"",strokeDashArray:[0,0],strokeWidth:0,strokeUniform:!0,activeFill:null,activeBackground:null,futureFill:null,futureBackground:null,transform:null,lineHeight:1.16,bgCornerRadius:0,textAlign:"center",fontFamily:"Roboto",fontWeight:"400",fontSize:64,emphasize:!1,activeColor:null,activeBackgroundColor:null,highlightBoxColor:null};return t==c.bb.CAP?(d="#ffffff",u={...u,fontFamily:"Raleway",fontWeight:"800",fontStyle:"italic",fontSize:64,fill:d,activeFill:c.q.YELLOW,futureFill:"transparent",strokeWidth:3,border:"line",shadowType:"soft",stroke:Oe(d),shadow:{color:Oe(d),blur:4,offsetX:3,offsetY:3}}):t==c.bb.POP?(d="#000000",u={...u,textBackgroundColor:"#E7E5E7",fontFamily:"TTfors",fontWeight:"700",fontSize:52,bgCornerRadius:20,lineHeight:1.46,fill:d,activeFill:d,activeBackground:c.q.YELLOW}):t==c.bb.REEL?(d="#000000",u={...u,textBackgroundColor:"#E7E5E7",fontFamily:"TTfors",fontWeight:"700",fontSize:52,bgCornerRadius:20,lineHeight:1.46,fill:d,futureFill:Y(d,.35)}):t==c.bb.KAROKE?u={...u,fill:d,futureFill:Y(d,.35)}:t==c.bb.BEAST?(d="#ffffff",u={...u,fontFamily:"KomikaAxis",fontSize:72,fill:d,strokeWidth:12,transform:"uppercase",border:"line",shadowType:"soft",stroke:Oe(d),shadow:{color:d,blur:20,offsetX:0,offsetY:0},activeFill:"#56FDFB"}):t==c.bb.FOCUS?u={...u,activeFill:Oe(d),activeBackground:d,fill:d}:t==c.bb.IMPACT?u={...u,fontFamily:"TheBold",textAlign:"left",fill:d,futureFill:"transparent",futureBackground:"transparent"}:t==c.bb.HORMOZI?(d="#ffffff",u={...u,strokeWidth:12,fill:d,fontFamily:"Montserrat",fontWeight:"800",fontSize:64,stroke:Oe(d),border:"line",shadowType:"soft",transform:"uppercase",shadow:{color:Oe(d),blur:20,offsetX:0,offsetY:0},activeFill:d,emphasize:!0}):t==c.bb.HORMOZI2?(d="#ffffff",u={...u,strokeWidth:12,fill:d,fontFamily:"Montserrat",fontWeight:"800",fontSize:64,stroke:Oe(d),border:"line",shadowType:"soft",transform:"uppercase",shadow:{color:Oe(d),blur:20,offsetX:0,offsetY:0},activeFill:c.q.GREEN,emphasize:!0}):t==c.bb.BLOCK?(d="#ffffff",u={...u,fill:d,fontFamily:"Open Sans",backgroundColor:Y(Oe(d),.65)}):t==c.bb.REVEAL&&(d="#ffffff",u={...u,lineHeight:1.76,textAlign:"left",fill:d,textBackgroundColor:Y(Oe(d),.65),futureFill:"transparent",futureBackground:"transparent"}),u},He=(e,t)=>"#text"==e.nodeName?[]:Array.from(e.classList.entries()).map(e=>{let[,t]=e;return t}).filter(e=>t.some(t=>e.startsWith(t)))},381:function(e,t){},385:function(e,t){},387:function(e,t){},414:function(e,t){},423:function(e,t,n){"use strict";n.r(t);var i=n(0),a=n.n(i),r=n(44),o=n.n(r),s=n(450),l=n(478),c=n(86),d=(n(354),n(428)),u=n(248),f=n(338),h=n(81),p=n(467),m=n(21),g=n.n(m),w=n(420),E=(n(355),n(439)),b=n(454),y=n(476),v=n(477),_=n(455),A=n(445),O=n(444),C=n(453),T=n(469),S=n(313),R=n(468),D=n(470),I=n(257),k=n(27),N=n(38),j=n(452),L=n(436),P=n(465),x=n(464),M=n(308),U=n.n(M),B=n(31),F=n(54),z=n.n(F);function V(e){const[t,n]=z()(!1),[i,r,o]=z()(null),s={accept:".woff,.woff2",onRemove:e=>{r(null)},beforeUpload:e=>
1(r(e),!1),fileList:o.current?[o.current]:[]};return a.a.createElement(P.a,{name:"font-form",onFinish:t=>{const i=new FormData;i.append("family",t.family),o.current&&i.append("font",o.current),n(!0);let a=Object(B.g)();a&&U()({url:k.a.fonts,method:"POST",processData:!1,type:"json",contentType:"application/json",data:i,headers:{Authorization:"Token "+a},success:function(t){n(!1),e.addFontToBrand(t,!0),u.b.success("Uploaded successfully.")},error:function(e){n(!1);var t=new Promise((function(t,n){return t(JSON.parse(e.response))}));Object(k.d)(t,(function(e){e&&u.b.error(e.message)}))}})},layout:"inline",className:"recast-font-form"},a.a.createElement(P.a.Item,{name:"family",rules:[{required:!0,message:"Please enter font name"}]},a.a.createElement(A.a,{prefix:a.a.createElement(j.a,null),placeholder:"Font family name"})),a.a.createElement(P.a.Item,null,a.a.createElement(x.a,s,a.a.createElement(h.a,null,a.a.createElement(L.a,null)," Choose File"))),a.a.createElement(P.a.Item,null,a.a.createElement(h.a,{type:"primary",htmlType:"submit",loading:t,disabled:!i},t?"Uploading...":"Upload")))}var H=n(254),W=n.n(H),G=n(141);const Y=A.a.Search,{Text:J}=(O.a.TabPane,d.a);const X=[{key:"category-1",label:"Categories",options:[{key:"c2",value:"serif",label:"Serif"},{key:"c3",value:"sans-serif",label:"Sans Serif"},{key:"c4",value:"display",label:"Display"},{key:"c5",value:"handwriting",label:"Handwriting"},{key:"c6",value:"monospace",label:"Monospace"}]},{key:"lang-2",label:"Languages",options:[{key:"2",value:"arabic",label:"Arabic"},{key:"3",value:"bengali",label:"Bengali"},{key:"4",value:"chinese-hongkong",label:"Chinese (Hong Kong)"},{key:"5",value:"chinese-simplified",label:"Chinese (Simplified)"},{key:"6",value:"chinese-traditional",label:"Chinese (Traditional)"},{key:"7",value:"cyrillic",label:"Cyrillic"},{key:"8",value:"cyrillic-ext",label:"Cyrillic Extended"},{key:"9",value:"devanagari",label:"Devanagari"},{key:"10",value:"greek",label:"Greek"},{key:"11",value:"greek-ext",label:"Greek Extended"},{key:"12",value:"gujarati",label:"Gujarati"},{key:"13",value:"gurmukhi",label:"Gurmukhi"},{key:"14",value:"hebrew",label:"Hebrew"},{key:"15",value:"japanese",label:"Japanese"},{key:"16",value:"kannada",label:"Kannada"},{key:"17",value:"khmer",label:"Khmer"},{key:"18",value:"korean",label:"Korean"},{key:"19",value:"latin",label:"Latin"},{key:"20",value:"latin-ext",label:"Latin Extended"},{key:"21",value:"malayalam",label:"Malayalam"},{key:"22",value:"myanmar",label:"Myanmar"},{key:"23",value:"oriya",label:"Oriya"},{key:"24",value:"sinhala",label:"Sinhala"},{key:"25",value:"tamil",label:"Tamil"},{key:"26",value:"telugu",label:"Telugu"},{key:"27",value:"thai",label:"Thai"},{key:"28",value:"tibetan",label:"Tibetan"},{key:"29",value:"vietnamese",label:"Vietnamese"}]}];function K(e){const[t,n]=z()(!1),[r,o,s]=z()([]),[l,c]=z()([]),[d,f]=z()([]),[m,w]=z()(!1),[A,j]=z()(!1),[L,P]=z()(!1),[x,M]=z()(null),[U,B,F]=z()(1),[H,K]=z()(X),Q=()=>{if(!L)return;n(!0),B(F.current+1);let e=[...s.current],t=k.a.get_fonts.format(x,F.current);Object(k.c)("GET",t,null,t=>{e=e.concat(t.results),o(e);let i={custom_fonts:{families:t.results.map(e=>e.family),sources:t.results}};Object(G.c)(i,()=>{n(!1)}),t.results.length<10&&P(!1)},e=>{n(!1),P(!1)})},Z=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t){let t=[...l];t.unshift(e),c(t),w(-1)}else{let t={...d},n=t.fonts;n.unshift(e),t.fonts=n,f(t),w(-1)}g.a.publish("FONT_ADDED",e)};Object(i.useEffect)(()=>{const e=g.a.subscribe("ADD_FONT",q);return()=>{g.a.unsubscribe(e)}},[]);const q=(e,t)=>{f(t),j(!0),Object(k.c)("GET",k.a.fonts,null,e=>{c(e.results),n(!1)},(function(e){n(!1),e&&u.b.error(e.message)}))},$=e=>{let t=[...JSON.parse(JSON.stringify(X))].map(t=>(t.options=t.options.filter(t=>t.value.toLowerCase().indexOf(e.toLowerCase())>-1),t.options.length?t:null)).filter(e=>e);if(e){let n={key:"search",value:e,label:`Search for "${e}"`};t.unshift(n)}K(t)},ee=(e,t)=>{e&&(e=>{n(!0),M(e),B(1),Object(k.c)("GET",k.a.get_fonts.format(e,F.current),null,e=>{o(e.results);let t={custom_fonts:{families:e.results.map(e=>e.family),sources:e.results}};Object(G.c)(t,()=>{n(!1)}),e.results.length>9&&P(!0)},e=>{n(!1),e&&u.b.error(e.message)})})(e)};return a.a.createElement(p.a,{title:"Custom Fonts",centered:!0,open:A,closable:!0,width:740,style:{maxWidth:740},footer:null,zIndex:1001,destroyOnClose:!0,onCancel:()=>{j(!1)}},a.a.createElement(O.a,{defaultActiveKey:"1",items:[{key:"1",label:a.a.createElement("span",null,a.a.createElement(E.a,null)," Google Fonts"),children:a.a.createElement("div",null,a.a.createElement(C.a,{dropdownMatchSelectWidth:!1,style:{width:"100%"},options:H,onChange:$,onSelect:ee},a.a.createElement(Y,{size:"large",placeholder:"Search font by name or language",spellCheck:!1})),a.a.createElement("div",{style:{height:400,marginTop:10,overflow:"auto"}},a.a.createElement(W.a,{initialLoad:!1,pageStart:0,loadMore:Q,hasMore:!t&&L,useWindow:!1},a.a.createElement(T.b,{itemLayout:"horizontal",loading:t&&0==r.length,dataSource:r,locale:{emptyText:"Start searching for google fonts..."},renderItem:e=>{let{fw:t,fs:n}=Object(G.b)(e.variant);return a.a.createElement(T.b.Item,{className:"recast-font-list-item",key:e.id,actions:d.fonts.some(t=>t.id==e.id)?[a.a.createElement(h.a,{type:"text",danger:!0,loading:m===e.id,icon:a.a.createElement(b.a,null),onClick:()=>{return t=e.id,w(t),void Object(k.c)("POST",k.a.remove_font.format(t,d.id||""),{},e=>{let n={...d};n.fonts=n.fonts.filter(e=>e.id!=t),f(n),w(-1),u.b.success("Font removed successfully")},e=>{w(-1),e&&u.b.error(e.message)});var t}},"Remove Font")]:[a.a.createElement(h.a,{loading:m===e.id,icon:a.a.createElement(y.a,null),onClick:()=>{return w((t=e).id),void Object(k.c)("POST",k.a.add_font.format(t.id,d.id||""),{},e=>{Z(e),u.b.success("Font added successfully")},e=>{w(-1),e&&u.b.error(e.message)});var t}},"Add Font")]},a.a.createElement(T.b.Item.Meta,{title:a.a.createElement(J,{style:{fontFamily:e.family,fontWeight:t,fontStyle:n,fontSize:16}},e.family),description:Object(N.v)(e.variant)}))}}),t&&L&&a.a.createElement("div",{className:"recast-loading-container"},a.a.createElement(S.a,null)))))},{key:"2",label:a.a.createElement("span",null,a.a.createElement(v.a,null)," Upload Font"),children:a.a.createElement("div",null,a.a.createElement(R.a,{style:{textAlign:"left",marginBottom:5},type:"info",showIcon:!0,closable:!0,message:a.a.createElement("span",null,"Font file extension must be woff or woff2. Don't have? ",a.a.createElement(I.Link,{href:"https://transfonter.org/"},"Convert your font to woff format."))}),a.a.createElement(V,{addFontToBrand:Z}),a.a.createElement("div",{style:{height:350,marginTop:40,overflow:"auto"}},a.a.createElement(T.b,{itemLayout:"horizontal",loading:t,dataSource:l,locale:{emptyText:"Upload your own font file..."},renderItem:e=>a.a.createElement(T.b.Item,{key:e.id,actions:[a.a.createElement(D.a,{placement:"top",title:"Delete font?",onConfirm:()=>{return t=e.id,w(t),void Object(k.c)("DELETE",k.a.font.format(t),{},e=>{c([...l].filter(e=>e.id!=t)),w(-1),u.b.success("Font deleted successfully")},e=>{w(-1),e&&u.b.error(e.message)});var t},okText:"Yes",cancelText:"No"},a.a.createElement(h.a,{danger:!0,type:"text",loading:m===e.id,icon:a.a.createElement(_.a,null)},"Delete"))]},a.a.createElement(T.b.Item.Meta,{title:a.a.createElement(J,{style:{fontFamily:e.family,fontSize:16}},e.family)}))})))}]}))}var Q=n(459),Z=n(460),q=n(162),$=n(442),ee=n(321),te=n(456),ne=n(457),ie=n(458),ae=n(471),re=n(446),oe=n(5),se=n(63),le=n(228),ce=n(232),de=n(66),ue=n(140);const{Text:fe,Title:he}=d.a,pe={[oe.S.RECAST_CREDIT]:"You have run out of your credits",[oe.S.STORAGE]:"You have run out of storage space",[oe.S.VIDEO_QUALITY]:"Download Full-HD(1080p) video clips",[oe.S.EXPORT_DURATION]:"You have run out of rendering minutes",[oe.S.VIDEO_LENGTH]:"Upgrade to render longer videos",[oe.S.CUSTOM_FONT]:"Access all 2500+ Google fonts and upload custom fonts",[oe.S.PROJECT_LOCK_PERIOD]:"Unlock projects older than 7 days",[oe.S.SOCIAL_PROFILES]:"Upgrade to unlock social media publishing",[oe.S.RECAST_WATERMARK]:"Upgrade to remove recast watermark from your videos"};function me(e){const[t,n]=z()(!1),[r,o,s]=z()(null),[c,d,u]=z()(null),[f,m]=z()(!1),[w,E]=z()("year"),[b,y]=z()(null),[v,_]=z()(!1),[A,O]=z()(!1),[C,T]=z()(null),[S,D]=z()(null),I=Object(i.useRef)(null),k=(e,t)=>{let n={};t&&(n="string"==typeof t?{key:t}:t),n.key?o(n.key):o(null),n.metadata?d(n.metadata):d(null),[oe.S.UPLOAD_DURATION,oe.S.AI_ACTION,oe.S.STORAGE].includes(s.current)&&u.current?j():O(!0)},j=()=>{const e=["#52c41a","#1890ff","#ff4d4f"],t=t=>t<40?e[0]:t<80?e[1]:e[2];let n="",i=null;if([oe.S.UPLOAD_DURATION,oe.S.AI_ACTION].includes(s.current)){const e=Object(N.t)(oe.S.RECAST_CREDIT,"percent"),r=Object(N.t)(oe.S.RECAST_CREDIT),o=Object(N.s)(oe.S.RECAST_CREDIT),l=o-r;let c=1;s.current==oe.S.UPLOAD_DURATION?c=u.current.duration/60:s.current==oe.S.AI_ACTION&&(c=1),i=Object(B.a)(s.current,c),n=a.a.createElement($.b,{direction:"vertical",style:{display:"flex"}},a.a.createElement("div",{className:"recast-frame-div"},a.a.createElement("div",{className:"frame-title"},a.a.createElement(fe,null,"Credits")),a.a.createElement("div",{className:"frame-content"},a.a.createElement($.b,{direction:"vertical",size:"small",style:{display:"flex"}},a.a.createElement(fe,null,`${Number(r.toFixed(2)).toString()} out of ${o}`),a.a.createElement(ee.a,{strokeColor:t(e),showInfo:!1,percent:e})))),a.a.createElement(R.a,{message:a.a.createElement("div",null,"You need ",a.a.createElement(fe,{strong:!0},Number(i.toFixed(2)).toString())," credits to perform this action, but you only have ",a.a.createElement(fe,{strong:!0},Number(l.toFixed(2)).toString())," credits remaining."),type:"warning"}))}else if(s.current==oe.S.STORAGE){const e=Object(N.t)(oe.S.STORAGE,"percent"),i=Object(N.s)(oe.S.STORAGE)-Object(N.t)(oe.S.STORAGE);n=a.a.createElement($.b,{direction:"vertical",style:{display:"flex"}},a.a.createElement("div",{className:"recast-frame-div"},a.a.createElement("div",{className:"frame-title"},a.a.createElement(fe,null,"Storage")),a.a.createElement("div",{className:"frame-content"},a.a.createElement($.b,{direction:"vertical",size:"small",style:{display:"flex"}},a.a.createElement(fe,null,`${Object(N.t)(oe.S.STORAGE,"display")} out of ${Object(N.s)(oe.S.STORAGE,"display")}`),a.a.createElement(ee.a,{strokeColor:t(e),showInfo:!1,percent:e})))),a.a.createElement(R.a,{message:a.a.createElement("div",null,"You're attempting to upload a ",a.a.createElement(fe,{strong:!0},Object(N.z)(u.current.file_size))," file, but you only have ",a.a.createElement(fe,{strong:!0},Object(N.z)(i<0?0:i))," remaining."),type:"warning"}))}I.current=p.a.info({title:a.a.createElement(fe,{strong:!0,style:{fontSize:16}},[oe.S.UPLOAD_DURATION,oe.S.AI_ACTION].includes(s.current)?"Insufficient Credits":"Insufficient Storage"),width:500,icon:null,closable:!0,className:"nofooter",maskClosable:!0,okButtonProps:{style:{display:"none"}},content:a.a.createElement($.b,{direction:"vertical",style:{display:"flex",marginTop:16},size:"large"},n,a.a.createElement($.b,{direction:"vertical",style:{display:"flex"}},a.a.createElement(fe,{strong:!0,style:{fontSize:16}},"Whats Next?"),Object(B.m)()&&!Object(B.n)()&&[oe.S.UPLOAD_DURATION,oe.S.AI_ACTION].includes(s.current)?a.a.createElement(a.a.Fragment,null,a.a.createElement(fe,null,"Buy one time credits."),a.a.createElement(h.a,{block:!0,type:"primary",onClick:()=>x(i)},"Buy Credits"),a.a.createElement(te.a,{style:{margin:"6px 0"}},"or")):"",a.a.createElement(fe,null,"Consider upgrading to a higher plan."),a.a.createElement(h.a,{block:!0,type:"primary",onClick:()=>O(!0)},"Upgrade")))})};Object(i.useEffect)(()=>{const e=g.a.subscribe("OPEN_UPGRADE",k);return()=>{g.a.unsubscribe(e)}},[]),Object(i.useEffect)(()=>
1{if(A){var e;let t=Object(B.d)();if(r===oe.S.VIDEO_LENGTH&&null!==(e=u.current)&&void 0!==e&&e.length)for(;t;){const e=t.quotas.find(e=>e.code===oe.S.VIDEO_LENGTH);if(!e||u.current.length/60<=parseInt(e.value))break;t=Object(B.d)(t)}if(r===oe.S.SOCIAL_PROFILES)for(;t;){const e=t.quotas.find(e=>e.code===oe.S.SOCIAL_PROFILES);if(e&&parseInt(e.value)>0)break;t=Object(B.d)(t)}if(t){Object(N.X)(ue.l.OPEN_UPGRADE,{plan:t.name,reason:r}),T(t);let e=t.prices.find(e=>e.interval==w&&"base"==e.type&&"classic"!=e.price_type);y(e)}}},[A]);const L=()=>{O(!1),n(!1),m(!1),o(null),T(null),d(null),y(null),_(!1),D(null)},P=(e,n)=>{let i=Object(B.j)();const a=!["cancelled","canceled"].includes(i.status)&&i.remote_id;"classic"!=i.price.price_type&&a?Object(N.e)(i,e,n,i.price,e=>{Object(se.f)()}):t||m(!0)},x=e=>{let t=Object(B.j)(),n={quantity:Math.min(Math.ceil(e/30),10)};"classic"!=t.subscription_type&&"RECURRING"==t.category&&(n.customer=t.customer),D(n)};return a.a.createElement(a.a.Fragment,null,a.a.createElement(p.a,{title:null,centered:!0,open:A,closable:!0,width:900,zIndex:1001,style:{maxWidth:900},bodyStyle:{padding:0,height:600},footer:null,destroyOnClose:!0,className:"recast-upgrade-modal",onCancel:()=>{L(),Object(N.N)(),[oe.S.RECAST_WATERMARK].includes(s.current)&&window.location.href.includes("/editor")&&Object(se.f)()}},C?a.a.createElement(a.a.Fragment,null,a.a.createElement(ne.a,{justify:"space-between",style:{height:"100%"},align:"middle"},a.a.createElement(ie.a,{span:12,style:{padding:"40px 30px",overflowY:"scroll",height:"100%"}},a.a.createElement(he,{level:3},"Unlock full potential of your content"),r?a.a.createElement(R.a,{className:"recast-alert-light",message:(()=>{let e=[oe.S.UPLOAD_DURATION,oe.S.AI_ACTION].includes(s.current)?oe.S.RECAST_CREDIT:s.current;return pe[e]})(),type:"error"}):a.a.createElement(a.a.Fragment,null,a.a.createElement(fe,null,null===C||void 0===C?void 0:C.description),a.a.createElement("br",null)),a.a.createElement("br",null),a.a.createElement($.b,{direction:"vertical",size:16,style:{display:"flex"}},a.a.createElement(fe,null,"What's included:"),C&&C.quotas.filter(e=>e.show).map((e,t)=>a.a.createElement("div",{key:t},a.a.createElement(Q.a,{style:{color:"#06C668",marginRight:10}}),a.a.createElement(fe,{strong:!0},e.display))))),a.a.createElement(ie.a,{span:12,className:"inline-payment",style:{height:"100%"}},a.a.createElement($.b,{direction:"vertical",size:"large",style:{height:"100%",justifyContent:"center"}},a.a.createElement(ce.a,{width:60,height:60}),a.a.createElement(fe,{style:{fontSize:24}},(null===C||void 0===C?void 0:C.display_name)||(null===C||void 0===C?void 0:C.name)),a.a.createElement($.b,null,a.a.createElement(fe,{strong:!0},"Monthly"),a.a.createElement(ae.a,{onChange:e=>{let t=e?"year":"month";E(t);let i=C.prices.find(e=>e.interval==t&&"base"==e.type&&"classic"!=e.price_type);y(i),n(!1)},checked:"year"==w}),a.a.createElement(fe,{strong:!0},"Yearly")),"year"==w?a.a.createElement(re.a,{color:"lime"},Object(N.n)(C)):"",a.a.createElement("div",null,a.a.createElement(he,null,a.a.createElement(fe,{type:"secondary"},"$"),"year"==w?Math.round(Number(b.amount)/12):Math.floor(b.amount),"/mo"),a.a.createElement(re.a,{color:"gold"},a.a.createElement("strong",null,"$",Math.floor(b.amount))," billed per ",w)),a.a.createElement(h.a,{size:"large",type:"primary",onClick:()=>P(C,b),loading:f},"Upgrade to ",(null===C||void 0===C?void 0:C.display_name)||(null===C||void 0===C?void 0:C.name)),a.a.createElement(h.a,{onClick:()=>{O(!1),Object(se.c)("/pricing/")}},"View all plans")),f||t?a.a.createElement("div",{className:"payment-screen"},v?"":a.a.createElement($.b,{className:"header",style:{width:"400px"}},a.a.createElement(h.a,{type:"text",onClick:()=>{n(!1),m(!1)},icon:a.a.createElement(Z.a,null)}),b?a.a.createElement(fe,{style:{fontSize:24,fontWeight:700}},"Total: $",parseInt(b.amount)," / ",w):""),v?a.a.createElement("div",{className:"flex-div-center-column",style:{height:"calc(100% - 85px)",padding:30}},a.a.createElement(q.a,{component:de.H,style:{color:"#06C668",fontSize:91}}),a.a.createElement(fe,{style:{marginTop:10,color:"#000000"}},"Your transaction has been completed successfully. It may take a few moments to update your subscription. Please refresh the page if the subscription is not updated.")):a.a.createElement(le.default,{loadCallback:()=>{n(!0),m(!1)},successCallback:e=>{e&&_(!0)},priceId:null===b||void 0===b?void 0:b.remote_id,method:"inline"})):""))):a.a.createElement(ne.a,{align:"middle",justify:"center",style:{height:"100%",padding:"40px 80px",textAlign:"center"}},a.a.createElement($.b,{direction:"vertical",size:"large",style:{display:"flex"}},a.a.createElement(ce.a,{width:60,height:60}),a.a.createElement(he,null,"More recast credits & Team members with our custom plan"),a.a.createElement(fe,{type:"secondary",style:{fontSize:18}},"Get more recast credits. Invite team members to collaborate on the projects."),a.a.createElement(h.a,{size:"large",type:"primary",icon:a.a.createElement(l.a,null),onClick:()=>{window.dashly&&window.dashly.open()}},"Need Custom Plan")))),S?a.a.createElement("div",{className:"recast-blur-div",style:{position:"fixed"}},a.a.createElement(le.default,Object.assign({priceId:"pri_01jenz5er5m2xgjea234sf31ac",closeCallback:()=>{L()},successCallback:()=>{D(null),Object(N.K)(e=>{I.current&&I.current.destroy()})}},S))):"")}var ge=n(479),we=n(461);class Ee extends a.a.Component{constructor(e,t){super(e,t),this.handleSubmit=e=>{this.createTeam(e)},this.createTeam=e=>{let t=k.a.teams;this.setState({loading:!0}),Object(k.c)("POST",t,e,this.createTeamSuccess,this.error)},this.createTeamSuccess=e=>{g.a.publish("ADD_WORKSPACE",e),this.setState({loading:!1}
1),this.toggleWorkspace(),setTimeout((function(){Object(se.e)("/team/"+e.id)}),100),Object(N.X)(ue.m.CREATED,{team_id:e.id})},this.error=e=>{this.setState({loading:!1}),e&&u.b.error(e.message)},this.toggleWorkspace=()=>{this.setState({workspace:!this.state.workspace})},this.state={loading:!1,workspace:!1}}componentWillMount(){this.toggleTeam=g.a.subscribe("CREATE_WORKSPACE",this.toggleWorkspace)}componentWillUnmount(){g.a.unsubscribe(this.toggleTeam)}render(){return a.a.createElement(p.a,{title:"Add A Team",open:this.state.workspace,closable:!0,className:"recast-modal-light",footer:null,onCancel:this.toggleWorkspace,destroyOnClose:!0},a.a.createElement(P.a,{name:"team-create",onFinish:this.handleSubmit},a.a.createElement(P.a.Item,{name:"title",rules:[{required:!0,message:"Please enter team title"}]},a.a.createElement(A.a,{prefix:a.a.createElement(ge.a,null),placeholder:"Give a name to your team"})),a.a.createElement(P.a.Item,{style:{textAlign:"center"}},a.a.createElement(h.a,{type:"default",icon:a.a.createElement(we.a,null),htmlType:"submit",loading:this.state.loading},"Create Team"))))}}var be=Ee,ye=n(93),ve=n.n(ye),_e=n(316);const Ae=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return new Promise((i,a)=>{e().then(i).catch(r=>{setTimeout(()=>{1!==t?Ae(e,t-1,n).then(i,a):a(r)},n)})})},Oe=a.a.lazy(()=>Ae(()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(8)]).then(n.bind(null,1484)))),Ce=a.a.lazy(()=>Ae(()=>n.e(13).then(n.bind(null,1489)))),Te=a.a.lazy(()=>Ae(()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(3),n.e(10)]).then(n.bind(null,1483)))),Se=(a.a.lazy(()=>Ae(()=>Promise.resolve().then(n.bind(null,228)))),a.a.lazy(()=>Ae(()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,787))))),Re=a.a.lazy(()=>Ae(()=>Promise.all([n.e(0),n.e(1),n.e(2),n.e(9),n.e(11)]).then(n.bind(null,1490)))),De=a.a.lazy(()=>Ae(()=>Promise.all([n.e(1),n.e(12)]).then(n.bind(null,712)))),{Title:Ie,Text:ke}=d.a;function Ne(e){let{component:t,appProps:n,...i}=e,r=`?next=${i.location.pathname}${i.location.search}`,o="/auth/login/"+r,s=i.location.pathname;return"/pricing/"===s?o="/auth/register/"+r:"/register/"===s&&(o="/auth/register/"+i.location.search),a.a.createElement(w.c,Object.assign({},i,{render:e=>(n.title&&(document.title=n.title),n.isAuthenticated?a.a.createElement(t,Object.assign({},e,n)):a.a.createElement(w.b,{to:""+o}))}))}function je(e){let{component:t,appProps:n,...i}=e,r=i.location.pathname;return a.a.createElement(w.c,Object.assign({},i,{render:e=>(n.title&&(document.title=n.title),r.startsWith("/auth/")&&n.isAuthenticated?a.a.createElement(w.b,{to:"/"+e.location.search}):a.a.createElement(t,Object.assign({},e,n)))}))}function Le(e){const[t,n]=Object(i.useState)(!1),[r,o]=Object(i.useState)(!1),[d,m]=Object(i.useState)(!1),[E,b]=Object(i.useState)(!1);Object(i.useEffect)(()=>{n(!0),u.b.config({duration:5,maxCount:1,top:50}),f.a.config({duration:0});const e=g.a.subscribe("VIDEO_PUBLISHED",y),t=g.a.subscribe("LOGOUT_ALL",v),i=g.a.subscribe("OPEN_CONTACT",T);return Object(B.g)()?(_(),A()):o(!1),()=>{g.a.unsubscribe(e),g.a.unsubscribe(t),g.a.unsubscribe(i)}},[]);const y=(e,t)=>{f.a.success({className:"recast-notification-light",key:"video-ready-"+t,message:"Your video is ready",description:"We have also sent you an email with the download link.",btn:a.a.createElement(h.a,{type:"primary",size:"small",icon:a.a.createElement(s.a,null),href:t,download:!0,target:"_blank"},"Download")}),Object(N.N)()},v=()=>{Object(B.p)(),o(!1),b(!1)},_=e=>{Object(k.c)("GET",k.a.products,null,t=>{Object(N.N)(e)},null)},A=()=>{o(!0),m(Object(B.l)());let e=Object(N.r)(window.location.search,"next");e&&"/"!=e&&Object(se.c)(e),C()},O=(e,t)=>{JSON.parse('["PK", "RU", "LY", "NP"]').includes(e)&&(b(!0),Object(N.X)(ue.b.SERVICE_UNAVAILABLE,{country_code:e,email:t}))},C=()=>{let e=Object(N.r)(window.location.search,"ref");e&&localStorage.setItem("recast_ref",e);let t=Object(B.i)();if(!t)return;let n=Object(B.j)();if(!n)return;const i="FREE"==n.category;let a=Object(B.k)(oe.pb.COUNTRY_CODE);a?i&&O(a,t.email):fetch("https://ip2c.org/s").then(e=>{if(!e.ok)throw new Error("HTTP error! status: "+e.status);return e.text()}).then(e=>{const n=e.split(";")[1];console.log("countryCode: ",n),Object(B.u)(oe.pb.COUNTRY_CODE,n),i&&O(n,t.email)}).catch(e=>{console.error("Error fetching country code:",e)});let r=t.name;r&&(r=r.split(" ")[0]);let o=ve()(n.next_billing_date).format("MMM DD, YYYY, h:mm A");c.c({email:t.email}),window.Paddle&&(window.Paddle.Environment.set("production"),window.Paddle.Initialize({token:"live_6c0c31ac5a39ddc53331535b553"}
1)),window.dashly&&(window.dashly.auth(t.pk,t.hash),window.dashly.identify([{op:"update_or_create",key:"$name",value:r},{op:"update_or_create",key:"$email",value:t.email},{op:"update_or_create",key:"user_name",value:t.username},{op:"update_or_create",key:"signed_up",value:t.date_joined},{op:"update_or_create",key:"plan",value:n.product.name},{op:"update_or_create",key:"plan_expire",value:o},{op:"update_or_create",key:"plan_status",value:n.status},{op:"update_or_create",key:"tool",value:e}])),window.usetifulTags&&(window.usetifulTags={userId:t.pk,email:t.email,name:r,displayName:t.name||t.username,tool:e,signed_up:t.date_joined,plan:n.product.name,plan_expire:o,plan_status:n.status}),window.posthog&&window.posthog.identify(t.pk.toString(),{email:t.email,name:r,displayName:t.name||t.username,plan:n.product.name},{user_name:t.username,tool:e,signed_up:t.date_joined,plan_expire:o,plan_status:n.status}),window.Featurebase&&(window.Featurebase("identify",{organization:"recast",email:t.email,userHash:t.tokenfb,name:r,id:""+t.pk,customFields:{plan:n.product.name,user_name:t.username,tool:e||"no_tool",signed_up:t.date_joined,plan_expire:o,plan_status:n.status}},e=>{e?console.error(e,window.Featurebase("unviewed_changelog_count")):console.log("Data sent successfully!",window.Featurebase("unviewed_changelog_count"))}),window.Featurebase("initialize_portal_widget",{organization:"recast",placement:"left",fullScreen:!0,initialPage:"MainView",metadata:null}),window.Featurebase("init_changelog_widget",{organization:"recast",dropdown:{enabled:!0,placement:"right"},popup:{enabled:!0,usersName:r,autoOpenForNewUpdates:!0},theme:"dark",locale:"en"}),window.Featurebase("initialize_feedback_widget",{organization:"recast",theme:"dark",email:t.email,metadata:null})),window.profitwell&&window.profitwell("start",{user_email:t.email})},T=(e,t)=>{p.a.info({title:"Reach out to our support",className:"recast-modal-light",closable:!0,content:a.a.createElement("div",{dangerouslySetInnerHTML:{__html:t.message}}),okText:"Drop us a message",okButtonProps:{icon:a.a.createElement(l.a,null),type:"default"},onOk:function(){window.dashly&&window.dashly.open()},maskClosable:!0})};return t?a.a.createElement("div",null,a.a.createElement(i.Suspense,{fallback:a.a.createElement("div",null)},a.a.createElement(w.e,null,a.a.createElement(je,{path:"/auth",component:Ce,appProps:{isAuthenticated:r,isAdmin:d,login:A}}),a.a.createElement(je,{path:"/projects/:id/exports/:export_id/record/",component:Se,appProps:{isAuthenticated:!1}}),a.a.createElement(Ne,{path:"/social/connected/",component:_e.a,appProps:{isAuthenticated:r,isAdmin:d,title:"Social Connected - Recast Studio"}}),a.a.createElement(Ne,{path:"/projects/:id/editor/",component:Te,appProps:{isAuthenticated:r,isAdmin:d,title:"Editor - Recast Studio"}}),a.a.createElement(je,{path:"/projects/:id/",component:Re,appProps:{isAuthenticated:r,isAdmin:d,title:"Clips - Recast Studio"}}),a.a.createElement(Ne,{path:"/",component:E?De:Oe,appProps:{isAuthenticated:r,isAdmin:d,logout:()=>{Object(k.c)("POST",k.a.logout,{},e=>{v(),u.b.success("Successfully logged out")},e=>{e&&u.b.error(e.message)})},accessDenied:E}}))),a.a.createElement(K,null),a.a.createElement(be,null),a.a.createElement(me,null)):""}Boolean("localhost"===window.location.hostname||"[::1]"===window.location.hostname||window.location.hostname.match(/^127(?:\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/));var Pe=n(12),xe=n(463),Me=n(269);const Ue=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1e3;return new Promise((i,a)=>{e().then(i).catch(r=>{setTimeout(()=>{1!==t?Ue(e,t-1,n).then(i,a):a(r)},n)})})},Be=a.a.lazy(()=>Ue(()=>Promise.all([n.e(0),n.e(4)]).then(n.bind(null,787))));function Fe(e){let{component:t,appProps:n,...i}=e,r=i.location.pathname;return a.a.createElement(w.c,Object.assign({},i,{render:e=>(n.title&&(document.title=n.title),r.startsWith("/auth/")&&n.isAuthenticated?a.a.createElement(w.b,{to:"/"+e.location.search}):a.a.createElement(t,Object.assign({},e,n)))}))}function ze(e){return Object(i.useEffect)(()=>{},[]),a.a.createElement("div",null,a.a.createElement(i.Suspense,{fallback:a.a.createElement("div",null)},a.a.createElement(w.e,null,a.a.createElement(Fe,{path:"/projects/:id/exports/:export_id/record/",component:Be,appProps:{isAuthenticated:!1}}))))}xe.a({dsn:"https://[email protected]/1108306",ignoreErrors:[/Object Not Found Matching Id:.*MethodName:update.*ParamCount:\d+/i],denyUrls:[/widget\.senja\.io/i],beforeSend(e,t){try{const n=t&&t.originalException||e.exception&&e.exception.values&&e.exception.values[0]&&e.exception.values[0].value||e.message||"",i="string"===typeof n?n:"";if(i.includes("Object Not Found Matching Id")&&i.includes("MethodName:update"))return null}catch(n){}return e}}),String.prototype.format=function(){var e=arguments;return this.replace(/\{\{|\}\}|\{(\d+)\}/g,(function(t,n){return"{{"===t?"{":"}}"===t?"}":e[n]}))},String.prototype.capitalize=function(){return this.toLowerCase().replace(/(?:^|\s)\S/g,(function(e){return e.toUpperCase()}))},String.prototype.trunc=function(e){if(this.length<=e)return this;var t=this.slice(0,e);return t.length<=3?t+"...":t.slice(0,-3)+"..."},window&&window.location&&window.location.href&&window.location.href.includes("/record")?o.a.render(a.a.createElement(w.d,{history:se.a},a.a.createElement(ze,{history:se.a})),document.getElementById("root")):o.a.render(a.a.createElement(w.d,{history:se.a},a.a.createElement(Me.a,{clientId:"692120100885-6837mrhd3khl8dge2d0doioal3jj0e2m.apps.googleusercontent.com"},a.a.createElement(Le,{history:se.a}))),document.getElementById("root")),localStorage.setItem("RECAST_APP_VERSION","0.3.0"),"serviceWorker"
1in navigator&&navigator.serviceWorker.ready.then(e=>{e.unregister()}).catch(e=>{console.error(e.message)}),window.addEventListener("message",Pe.i,!1),Array.prototype.insert=function(e,t){this.splice(e,0,t)},Number.prototype.between=function(e,t){var n=Math.min(e,t),i=Math.max(e,t);return this>=n&&this<=i},Object.filterBy=function(e,t){return Object.entries(e).filter(e=>{let[n,i]=e;return t.includes(n)}).reduce((e,t)=>{let[n,i]=t;return{...e,[n]:i}},{})}},5:function(e,t,n){"use strict";n.d(t,"D",(function(){return v})),n.d(t,"a",(function(){return _})),n.d(t,"f",(function(){return A})),n.d(t,"g",(function(){return O})),n.d(t,"fb",(function(){return C})),n.d(t,"gb",(function(){return T})),n.d(t,"Y",(function(){return S})),n.d(t,"l",(function(){return R})),n.d(t,"C",(function(){return D})),n.d(t,"ob",(function(){return I})),n.d(t,"sb",(function(){return k})),n.d(t,"db",(function(){return N})),n.d(t,"jb",(function(){return j})),n.d(t,"F",(function(){return L})),n.d(t,"lb",(function(){return P})),n.d(t,"yb",(function(){return x})),n.d(t,"Gb",(function(){return M})),n.d(t,"Eb",(function(){return U})),n.d(t,"zb",(function(){return B})),n.d(t,"wb",(function(){return F})),n.d(t,"Db",(function(){return z})),n.d(t,"rb",(function(){return V})),n.d(t,"O",(function(){return H})),n.d(t,"Cb",(function(){return W})),n.d(t,"Bb",(function(){return G})),n.d(t,"xb",(function(){return Y})),n.d(t,"b",(function(){return J})),n.d(t,"V",(function(){return X})),n.d(t,"T",(function(){return K})),n.d(t,"vb",(function(){return Q})),n.d(t,"v",(function(){return Z})),n.d(t,"u",(function(){return q})),n.d(t,"j",(function(){return $})),n.d(t,"W",(function(){return ee})),n.d(t,"z",(function(){return te})),n.d(t,"nb",(function(){return ne})),n.d(t,"mb",(function(){return ie})),n.d(t,"qb",(function(){return ae})),n.d(t,"e",(function(){return re})),n.d(t,"d",(function(){return oe})),n.d(t,"ib",(function(){return se})),n.d(t,"cb",(function(){return le})),n.d(t,"R",(function(){return ce})),n.d(t,"N",(function(){return de})),n.d(t,"eb",(function(){return ue})),n.d(t,"S",(function(){return fe})),n.d(t,"i",(function(){return he})),n.d(t,"I",(function(){return pe})),n.d(t,"n",(function(){return me})),n.d(t,"H",(function(){return ge})),n.d(t,"L",(function(){return we})),n.d(t,"ub",(function(){return Ee})),n.d(t,"o",(function(){return be})),n.d(t,"bb",(function(){return ye})),n.d(t,"tb",(function(){return ve})),n.d(t,"hb",(function(){return _e})),n.d(t,"J",(function(){return Ae})),n.d(t,"Z",(function(){return Oe})),n.d(t,"s",(function(){return Ce})),n.d(t,"Q",(function(){return Te})),n.d(t,"P",(function(){return Se})),n.d(t,"c",(function(){return Re})),n.d(t,"pb",(function(){return De})),n.d(t,"k",(function(){return Ie})),n.d(t,"kb",(function(){return ke})),n.d(t,"X",(function(){return Ne})),n.d(t,"p",(function(){return je})),n.d(t,"M",(function(){return Le})),n.d(t,"q",(function(){return Pe})),n.d(t,"r",(function(){return xe})),n.d(t,"m",(function(){return Me})),n.d(t,"K",(function(){return Ue})),n.d(t,"G",(function(){return Be})),n.d(t,"t",(function(){return Fe})),n.d(t,"E",(function(){return Ve})),n.d(t,"B",(function(){return He})),n.d(t,"A",(function(){return We})),n.d(t,"ab",(function(){return Ge})),n.d(t,"h",(function(){return Ye})),n.d(t,"U",(function(){return Je})),n.d(t,"w",(function(){return Xe})),n.d(t,"y",(function(){return Ke})),n.d(t,"x",(function(){return Qe})),n.d(t,"Ab",(function(){return Ze})),n.d(t,"Fb",(function(){return qe}));var i=n(0),a=n.n(i),r=n(429),o=n(430),s=n(431),l=n(432),c=n(433),d=n(434),u=n(340),f=n(435),h=n(424),p=n(436),m=n(425),g=n(437),w=n(162),E=n(438),b=n(439),y=n(66);const v={BACKGROUND:"BACKGROUND",MEDIA:"MEDIA",BACKGROUND_MEDIA:"BACKGROUND_MEDIA",OVERLAY:"OVERLAY",TEXT:"TEXT",AUDIO:"AUDIO",AUDIO_WAVE:"AUDIO_WAVE",PROGRESS_BAR:"PROGRESS_BAR",SUBTITLE:"SUBTITLE",INTRO:"INTRO",OUTRO:"OUTRO"},_={ADD:"add",REMOVE:"remove",UPDATE:"update"},A=["image","video","svg","json","lottie","audio","wave","text","progress","subtitle"],O=["move_from_right_to_left","move_from_left_to_right","move_from_bottom_to_top","move_from_top_to_bottom","zoom_in","zoom_out","shake_horizontal","shake_vertical","roll_in"],C=["fade_in","fade_in_from_left","fade_in_from_right","fade_in_from_top","fade_in_from_bottom","slide_in_from_left","slide_in_from_right","slide_in_from_top","slide_in_from_bottom","reveal_in","reveal_in_center_horizontal","reveal_in_center_vertical","reveal_in_from_left","reveal_in_from_right","reveal_in_from_top","reveal_in_from_bottom","zoom_in","zoom_in_from_left","zoom_in_from_right","zoom_in_from_top","zoom_in_from_bottom","zoom_out","zoom_out_from_left","zoom_out_from_right","zoom_out_from_top","zoom_out_from_bottom","bounce_in","bounce_in_from_left","bounce_in_from_right","bounce_in_from_top","bounce_in_from_bottom","toast_in_from_left","toast_in_from_right","toast_in_from_top","toast_in_from_bottom","rotate_in","rotate_in_from_left","rotate_in_from_right","rotate_in_from_top","rotate_in_from_bottom","skew_in_from_left","skew_in_from_right"],T=["fade_out","fade_out_to_left","fade_out_to_right","fade_out_to_top","fade_out_to_bottom","slide_out_to_left","slide_out_to_right","slide_out_to_top","slide_out_to_bottom","reveal_out","reveal_out_center_horizontal","reveal_out_center_vertical","reveal_out_to_left","reveal_out_to_right","reveal_out_to_top","reveal_out_to_bottom","zoom_out","zoom_out_to_left","zoom_out_to_right","zoom_out_to_top","zoom_out_to_bottom","zoom_in","zoom_in_to_left","zoom_in_to_right","zoom_in_to_top","zoom_in_to_bottom","bounce_out","bounce_out_to_left","bounce_out_to_right","bounce_out_to_top","bounce_out_to_bottom","toast_out_to_left","toast_out_to_right","toast_out_to_top","toast_out_to_bottom","rotate_out","rotate_out_to_left","rotate_out_to_right","rotate_out_to_top","rotate_out_to_bottom","skew_out_to_left","skew_out_to_right"],S=["fill"],R=["opacity","lineHeight","scaleY","scaleX","strokeWidth"],D=["width","height","fontSize","top","left","charSpacing","angle","bgCornerRadius"],I=["type","rx","ry","originX","originY","fontFamily","fontSize","fontWeight","fontStyle","fill","width","height","top","left","scaleY","scaleX","angle","opacity","lineHeight","stroke","strokeWidth","shadow","lineWidth","flipX","flipY","src","textBackgroun
1dColor","backgroundColor","textAlign","charSpacing","linethrough","underline","overline","recast","evented","selectable","visible","text","styles","cropX","cropY","strokeUniform","filters","crossOrigin","content","strokeDashArray","strokeLineCap","subtitles","captions","verticalAlign","bgCornerRadius"],k=[{type:"bars",colors:new Array(5).fill("#808080"),stroke:6,height:200,width:1080,position:"4",poster:"https://recasts.s3.amazonaws.com/manual/waves/wave/bars.png"},{type:"shine hollow",colors:new Array(5).fill("#808080"),stroke:6,height:720,width:720,position:"0",poster:"https://recasts.s3.amazonaws.com/manual/waves/wave/shine_hollow.png"},{type:"dualbars",colors:new Array(5).fill("#808080"),stroke:6,height:200,width:1080,position:"4",poster:"https://recasts.s3.amazonaws.com/manual/waves/wave/dualbars.png"},{type:"flower",colors:new Array(5).fill("#808080"),stroke:6,height:720,width:720,position:"0",poster:"https://recasts.s3.amazonaws.com/manual/waves/wave/flower.png"},{type:"wave",colors:new Array(5).fill("#808080"),stroke:6,height:200,width:1080,position:"4",poster:"https://recasts.s3.amazonaws.com/manual/waves/wave/wave.png"},{type:"rings",colors:new Array(5).fill("#808080"),stroke:6,height:720,width:720,position:"0",poster:"https://recasts.s3.amazonaws.com/manual/waves/wave/rings.png"},{type:"string",colors:new Array(5).fill("#808080"),stroke:6,height:200,width:1080,position:"4",poster:"https://recasts.s3.amazonaws.com/manual/waves/wave/string.png"},{type:"static",colors:new Array(5).fill("#808080"),stroke:6,height:200,width:1080,position:"4",poster:"https://recasts.s3.amazonaws.com/manual/waves/wave/static.png"}],N={IMAGE:"IMAGE",VIDEO:"VIDEO",ELEMENT:"ELEMENT",TEXT:"TEXT",MUSIC:"MUSIC",UPLOAD:"UPLOAD",MYUPLOAD:"MYUPLOAD",ADD_SCENE:"ADD_SCENE",GIFS:"GIFS",SHAPES:"Shape",EMOJIS:"Emojis",AUDIO_WAVE:"AUDIO_WAVE",PROGRESS_BAR:"PROGRESS BAR",SUBTITLE:"SUBTITLE",STOCK:"STOCK",VIDEO_FRAME:"VIDEO_FRAME"},j={LAYER:"Layer",CLIP:"Clip",TRIM:"Trim",SUBTITLE:"Subtitle",SCENE:"Scene"},L={GENERAL:"GENERAL",UPLOAD:"UPLOAD",HIGHLIGHT:"HIGHLIGHT",REPURPOSE:"REPURPOSE",TEXT:"TEXT",MEDIA:"MEDIA",ELEMENT:"ELEMENT",LAYER:"LAYER",SOUND_WAVE:"SOUND_WAVE",TEMPLATE:"TEMPLATE",BACKGROUND:"BACKGROUND",CAPTION:"CAPTION"},P={MANUAL:"MANUAL",AUTOMATIC:"AUTOMATIC",UPLOAD_SRT:"UPLOAD_SRT"},x=48,M=50,U=30,B=28,F=50,z=100,V=24,H=1/V,W=1,G=130,Y=12,J="Reti",X=["video-cut","scene","layer","layer-group","speaker"],K=200,Q="https://2bjklhhisl5wcz7brjwergn62i0gjhxi.lambda-url.us-east-1.on.aws/",Z="https://c00mkmgavk.execute-api.us-east-1.amazonaws.com/dev/get-s3-path",q="https://v974vhvmbh.execute-api.us-east-1.amazonaws.com/dev/get-upload-credentials",$="https://d1f7tgeg5sk2vt.cloudfront.net/",ee="https://s3.amazonaws.com/recasts/",te=["d1f7tgeg5sk2vt.cloudfront.net"],ne="https://recast.notion.site/Trim-and-cut-the-video-using-the-transcript-7d19a22ff8ec43cda0e4735831800ba7",ie="https://recast.notion.site/How-to-change-the-project-duration-e39937c6f1db49f2848f1794f1d5cc21",ae="https://mykeyvnd7iq4ob7hus3zbcg5ge0rngtp.lambda-url.us-east-1.on.aws/",re="https://sls.recast.studio/ai/",oe=re,se=[Q,"https://us-central1-recast-211805.cloudfunctions.net/function-1"],le={NEW:"NEW",IN_PROGRESS:"IN_PROGRESS",COMPLETED:"COMPLETED",FAILED:"FAILED"},ce={PODCAST_TO_VIDEO:"podcastToVideo",VIDEO_HIGHLIGHT:"videoHighlight",CAPTION_VIDEO:"captionVideo",SCRATCH:"scratch"},de="no_lang",ue={MEME_VIDEO:"meme-videos",PODCAST_VIDEO:"podcast-to-video"},fe=["RECAST_WATERMARK","EXPORT_DURATION","STORAGE","PROJECT_LOCK_PERIOD","VIDEO_QUALITY","VIDEO_LENGTH","CUSTOM_FONT","VIDEO_ORIENTATION","TEAM_MEMBERS","UPLOAD_SIZE","UPLOAD_DURATION","RECAST_CREDIT","AI_ACTION","SOCIAL_PROFILES"].reduce((e,t)=>(e[t]=t,e),{}),he=1048576,pe=1024,me=3,ge=15,we=1,Ee=.7,be={HEADING:"HEADING",SUB_HEADING:"SUB_HEADING",STATIC:"STATIC",PODCAST_COVER:"PODCAST_COVER"},ye={PLAIN:"Plain",KAROKE:"Karoke",FOCUS:"Focus",IMPACT:"Impact",POP:"Pop",REEL:"Reel",BEAST:"Beast",HORMOZI:"Mozi",HORMOZI2:"Mozi-2",BLOCK:"Block",REVEAL:"Reveal",CAP:"Cap"},ve={AUTO:"auto",ONE_WORD:"1_word",ONE_LINE:"1_line",TWO_LINE:"2_line"},_e={NORMAL:"Normal",SHADOW:"Shadow",LIFT:"Lift",OUTLINED:"Outlined",NEON:"Neon",BACKGROUND:"Backgroun
1d",WRAP:"Wrap"},Ae={NORMAL:"Normal",LIFT:"Lift",ROUNDED:"Rounded",CIRCLE:"Circle"},Oe={NORMAL:"Normal",LIFT:"Lift",OUTLINED:"Outlined",HOLLOW:"Hollow"},Ce="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMIAAADDCAYAAADQvc6UAAABRWlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGASSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAwSDCIMogwMCcmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsis7PPOq3QdDFcvjV3jOD1boQVTPQrgSkktTgbSf4A4LbmgqISBgTEFyFYuLykAsTuAbJEioKOA7DkgdjqEvQHEToKwj4DVhAQ5A9k3gGyB5IxEoBmML4BsnSQk8XQkNtReEOBxcfXxUQg1Mjc0dyHgXNJBSWpFCYh2zi+oLMpMzyhRcASGUqqCZ16yno6CkYGRAQMDKMwhqj/fAIcloxgHQqxAjIHBEugw5sUIsSQpBobtQPdLciLEVJYzMPBHMDBsayhILEqEO4DxG0txmrERhM29nYGBddr//5/DGRjYNRkY/l7////39v///y4Dmn+LgeHANwDrkl1AuO+pmgAAADhlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAAqACAAQAAAABAAAAwqADAAQAAAABAAAAwwAAAAD9b/HnAAAHlklEQVR4Ae3dP3PTWBSGcbGzM6GCKqlIBRV0dHRJFarQ0eUT8LH4BnRU0NHR0UEFVdIlFRV7TzRksomPY8uykTk/zewQfKw/9znv4yvJynLv4uLiV2dBoDiBf4qP3/ARuCRABEFAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghggQAQZQKAnYEaQBAQaASKIAQJEkAEEegJmBElAoBEgghgg0Aj8i0JO4OzsrPv69Wv+hi2qPHr0qNvf39+iI97soRIh4f3z58/u7du3SXX7Xt7Z2enevHmzfQe+oSN2apSAPj09TSrb+XKI/f379+08+A0cNRE2ANkupk+ACNPvkSPcAAEibACyXUyfABGm3yNHuAECRNgAZLuYPgEirKlHu7u7XdyytGwHAd8jjNyng4OD7vnz51dbPT8/7z58+NB9+/bt6jU/TI+AGWHEnrx48eJ/EsSmHzx40L18+fLyzxF3ZVMjEyDCiEDjMYZZS5wiPXnyZFbJaxMhQIQRGzHvWR7XCyOCXsOmiDAi1HmPMMQjDpbpEiDCiL358eNHurW/5SnWdIBbXiDCiA38/Pnzrce2YyZ4//59F3ePLNMl4PbpiL2J0L979+7yDtHDhw8vtzzvdGnEXdvUigSIsCLAWavHp/+qM0BcXMd/q25n1vF57TYBp0a3mUzilePj4+7k5KSLb6gt6ydAhPUzXnoPR0dHl79WGTNCfBnn1uvSCJdegQhLI1vvCk+fPu2ePXt2tZOYEV6/fn31dz+shwAR1sP1cqvLntbEN9MxA9xcYjsxS1jWR4AIa2Ibzx0tc44fYX/16lV6NDFLXH+YL32jwiACRBiEbf5KcXoTIsQSpzXx4N28Ja4BQoK7rgXiydbHjx/P25TaQAJEGAguWy0+2Q8PD6/Ki4R8EVl+bzBOnZY95fq9rj9zAkTI2SxdidBHqG9+skdw43borCXO/ZcJdraPWdv22uIEiLA4q7nvvCug8WTqzQveOH26fodo7g6uFe/a17W3+nFBAkRYENRdb1vkkz1CH9cPsVy/jrhr27PqMYvENYNlHAIesRiBYwRy0V+8iXP8+/fvX11Mr7L7ECueb/r48eMqm7FuI2BGWDEG8cm+7G3NEOfmdcTQw4h9/55lhm7DekRYKQPZF2ArbXTAyu4kDYB2YxUzwg0gi/41ztHnfQG26HbGel/crVrm7tNY+/1btkOEAZ2M05r4FB7r9GbAIdxaZYrHdOsgJ/wCEQY0J74TmOKnbxxT9n3FgGGWWsVdowHtjt9Nnvf7yQM2aZU/TIAIAxrw6dOnAWtZZcoEnBpNuTuObWMEiLAx1HY0ZQJEmHJ3HNvGCBBhY6jtaMoEiJB0Z29vL6ls58vxPcO8/zfrdo5qvKO+d3Fx8Wu8zf1dW4p/cPzLly/dtv9Ts/EbcvGAHhHyfBIhZ6NSiIBTo0LNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiECRCjUbEPNCRAhZ6NSiAARCjXbUHMCRMjZqBQiQIRCzTbUnAARcjYqhQgQoVCzDTUnQIScjUohAkQo1GxDzQkQIWejUogAEQo121BzAkTI2agUIkCEQs021JwAEXI2KoUIEKFQsw01J0CEnI1KIQJEKNRsQ80JECFno1KIABEKNdtQcwJEyNmoFCJAhELNNtScABFyNiqFCBChULMNNSdAhJyNSiEC/wGgKKC4YMA4TAAAAABJRU5ErkJggg==",Te={BLOG:"blog",SHOW_NOTES:"show_notes",AUTO_CLIPS:"clips",TITLES:"titles",LINKEDIN:"linkedin",SOCIAL_CAPTIONS:"captions",TWEET:"tweet",EMAIL:"email",QUOTES:"quotes",TRANSCRIPT:"transcript",SUMMARY:"custom_summary",HIGHLIGHT:"highlight",KEY_TAKEAWAY:"takeaway",CUSTOM:"custom"},Se=["FREE","STARTER","PROFESSIONAL","PREMIUM","BUSINESS"],Re=(Te.SUMMARY,Te.AUTO_CLIPS,Te.SHOW_NOTES,Te.BLOG,Te.SOCIAL_CAPTIONS,Te.EMAIL,Te.TITLES,[{key:Te.TRANSCRIPT,icon:y.d,label:"Transcript",description:"Automatically transcribe your media files into text"},{key:Te.AUTO_CLIPS,icon:r.a,label:"Video clips",description:"AI will pick the most engaging moments and create short video clips from your episode"},{key:Te.TITLES,icon:o.a,label:"Titles",description:"Get captivating title suggestions for your episode"},{key:Te.SHOW_NOTES,icon:s.a,label:"Show Notes",description:"Create show notes with topics and timestamps to persuade listeners to tune in"},{key:Te.BLOG,icon:l.a,label:"Blog Post",description:"Automatically turn transcript of spoken words into a well-written blog post"},{key:Te.EMAIL,icon:c.a,label:"Email",description:"Generate an email to announce the release of the new episode to your subscribers"},{key:Te.SOCIAL_CAPTIONS,icon:d.a,label:"Social Post",description:"Generate a LinkedIn / Facebook post optimized for engagement"},{key:Te.LINKEDIN,icon:u.a,label:"Social Post",description:"Generate a LinkedIn post"},{key:Te.TWEET,icon:f.a,label:"Social Post",description:"Generate a Twitter post"}]),De={DRAG_SELECTION:"DRAG_SELECTION",TRANSCRIPT_LANGUAGE:"TRANSCRIPT_LANGUAGE",AUTOMATIC_TRANSCRIPT:"AUTOMATIC_TRANSCRIPT",ADVANCE_SETTINGS:"ADVANCE_SETTINGS",COUNTRY_CODE:"COUNTRY_CODE",USE_DESKTOP_POPUP:"USE_DESKTOP_POPUP",SHOW_DELETED_TEXT:"SHOW_DELETED_TEXT",HIDE_GENERATE_AUDIO:"HIDE_GENERATE_AUDIO",HIDE_PODCAST_MAKER_CARD:"HIDE_PODCAST_MAKER_CARD",HIDE_FACE_SWAP_CARD:"HIDE_FACE_SWAP_CARD",HIDE_SOCIAL_FEATURE_BANNER:"HIDE_SOCIAL_FEATURE_BANNER",HIDE_DASHBOARD_FEATURE_UPDATES_CARD:"HIDE_DASHBOARD_FEATURE_UPDATES_CARD",NOTIFY_ME_FACE_SWAP:"NOTIFY_ME_FACE_SWAP",HIDE_SOCIAL_HERO_BANNER:"HIDE_SOCIAL_HERO_BANNER"},Ie={HOME:"dashboard",TEMPLATES:"templates",DOWNLOADS:"exports",PROFILE:"profile",BRANDS:"brands",AI_VIDEO_TOOLS:"ai-video-tools",SOCIAL:"social",TEAM:"team",BILLING:"pricing",LOGOUT:"logout",UPLOADS:"uploads",SCRIPTS:"scripts",WHATSNEW:"whatsnew"},ke={CORRECT:"correct",MERGE:"merge",SPLIT:"split",EMPHASIZE:"emphasize",UNTAG_SPEAKER:"untag_speaker",SCENE:"scene",NEW:"new",REPLACE:"replace"},Ne={CREATE:"create",REMOVE:"remove",UPDATE:"update"},je=1,Le={LEFT:0,UP:1,RIGHT:2,DOWN:3,DELETE:4,INDEX:5},Pe={GREEN:"#74f669",YELLOW:"#fbfd56",RED:"#d80100"},xe={PRIMARY:"PRIMARY",SECONDARY:"SECONDARY",THIRD:"THIRD"},Me={[xe.PRIMARY]:Pe.GREEN,[xe.SECONDARY]:Pe.YELLOW,[xe.THIRD]:Pe.RED},Ue=15,Be=600,Fe={ORIGINAL:"ORIGINAL",ONE:"ONE",TWO:"TWO",THREE:"THREE",FOUR:"FOUR"},ze=e=>Object.assign({visible:!0,scaleX:1,scaleY:1,stroke:null,shadow:null,recast:{radius:0}},e),Ve={"1080X1920":{[Fe.ORIGINAL]:[{id:"fitoriginal",frameProps:[ze({width:1080,height:1920,left:0,top:0})]}],[Fe.ONE]:[{id:"fullscreen",poster:"https://recasts.s3.amazonaws.com/manual/v_full_1.png",frameProps:[ze({width:1080,height:1920,left:0,top:0})]},{id:"fitcenterscreen",poster:"https://recasts.s3.amazonaws.com/manual/v_fit_1.png",frameProps:[ze({width:1080,height:640,left
1:0,top:640})]}],[Fe.TWO]:[{id:"fullscreen2",poster:"https://recasts.s3.amazonaws.com/manual/v_full_2.png",frameProps:[ze({width:1080,height:960,left:0,top:0}),ze({width:1080,height:960,left:0,top:960})]},{id:"fitcenterscreen2",poster:"https://recasts.s3.amazonaws.com/manual/v_fit_2.png",frameProps:[ze({width:1080,height:640,left:0,top:220}),ze({width:1080,height:640,left:0,top:1060})]}],[Fe.THREE]:[{id:"fullscreen3",poster:"https://recasts.s3.amazonaws.com/manual/v_full_3.png",frameProps:[ze({width:540,height:540,left:0,top:0}),ze({width:540,height:540,left:540,top:0}),ze({width:1080,height:1380,left:0,top:540})]},{id:"fitcenterscreen3",poster:"https://recasts.s3.amazonaws.com/manual/v_fit_3.png",frameProps:[ze({width:480,height:480,left:40,top:460}),ze({width:480,height:480,left:560,top:460}),ze({width:480,height:480,left:300,top:980})]}],[Fe.FOUR]:[{id:"fullscreen4",poster:"https://recasts.s3.amazonaws.com/manual/v_full_4.png",frameProps:[ze({width:540,height:960,left:0,top:0}),ze({width:540,height:960,left:540,top:0}),ze({width:540,height:960,left:0,top:960}),ze({width:540,height:960,left:540,top:960})]},{id:"fitcenterscreen4",poster:"https://recasts.s3.amazonaws.com/manual/v_fit_4.png",frameProps:[ze({width:480,height:480,left:40,top:460}),ze({width:480,height:480,left:560,top:460}),ze({width:480,height:480,left:40,top:980}),ze({width:480,height:480,left:560,top:980})]}]},"1920X1080":{[Fe.ORIGINAL]:[{id:"fitoriginal",frameProps:[ze({width:1920,height:1080,left:0,top:0})]}],[Fe.ONE]:[{id:"fullscreen",poster:"https://recasts.s3.amazonaws.com/manual/l_full_1.png",frameProps:[ze({width:1920,height:1080,left:0,top:0})]},{id:"fitcenterscreen",poster:"https://recasts.s3.amazonaws.com/manual/l_fit_1.png",frameProps:[ze({width:1080,height:1080,left:420,top:0})]}],[Fe.TWO]:[{id:"fullscreen2",poster:"https://recasts.s3.amazonaws.com/manual/l_full_2.png",frameProps:[ze({width:960,height:1080,left:0,top:0}),ze({width:960,height:1080,left:960,top:0})]},{id:"fitcenterscreen2",poster:"https://recasts.s3.amazonaws.com/manual/l_fit_2.png",frameProps:[ze({width:900,height:540,left:40,top:270}),ze({width:900,height:540,left:980,top:270})]}],[Fe.THREE]:[{id:"fullscreen3",poster:"https://recasts.s3.amazonaws.com/manual/l_full_3.png",frameProps:[ze({width:960,height:540,left:0,top:0}),ze({width:960,height:540,left:0,top:540}),ze({width:960,height:1080,left:960,top:0})]},{id:"fitcenterscreen3",poster:"https://recasts.s3.amazonaws.com/manual/l_fit_3.png",frameProps:[ze({width:640,height:640,left:0,top:220}),ze({width:640,height:640,left:640,top:220}),ze({width:640,height:640,left:1280,top:220})]}],[Fe.FOUR]:[{id:"fullscreen4",poster:"https://recasts.s3.amazonaws.com/manual/l_full_4.png",frameProps:[ze({width:960,height:540,left:0,top:0}),ze({width:960,height:540,left:960,top:0}),ze({width:960,height:540,left:0,top:540}),ze({width:960,height:540,left:960,top:540})]},{id:"fitcenterscreen4",poster:"https://recasts.s3.amazonaws.com/manual/l_fit_4.png",frameProps:[ze({width:480,height:480,left:0,top:300}),ze({width:480,height:480,left:480,top:300}),ze({width:480,height:480,left:960,top:300}),ze({width:480,height:480,left:1440,top:300})]}]},"1080X1080":{[Fe.ORIGINAL]:[{id:"fitoriginal",frameProps:[ze({width:1080,height:1080,left:0,top:0})]}],[Fe.ONE]:[{id:"fullscreen",poster:"https://recasts.s3.amazonaws.com/manual/s_full_1.png",frameProps:[ze({width:1080,height:1080,left:0,top:0})]},{id:"fitcenterscreen",poster:"https://recasts.s3.amazonaws.com/manual/s_fit_1.png",frameProps:[ze({width:1080,height:640,left:0,top:220})]}],[Fe.TWO]:[{id:"fullscreen2",poster:"https://recasts.s3.amazonaws.com/manual/s_full_2.png",frameProps:[ze({width:1080,height:540,left:0,top:0}),ze({width:1080,height:540,left:0,top:540})]},{id:"fitcenterscreen2",poster:"https://recasts.s3.amazonaws.com/manual/s_fit_2.png",frameProps:[ze({width:540,height:540,left:270,top:0}),ze({width:540,height:540,left:270,top:540})]}],[Fe.THREE]:[{id:"fullscreen3",poster:"https://recasts.s3.amazonaws.com/manual/s_full_3.png",frameProps:[ze({width:540,height:540,left:0,top:0}),ze({width:540,height:540,left:540,top:0}),ze({width:1080,height:540,left:0,top:540})]},{id:"fitcenterscreen3",poster:"https://recasts.s3.amazonaws.com/manual/s_fit_3.png",frameProps:[ze({width:480,height:480,left:40,top:40}),ze({width:480,height:480,left:560,top:40}),ze({width:480,height:480,left:300,top:560})]}],[Fe.FOUR]:[{id:"fullscreen4",poster:"https://recasts.s3.amazonaws.com/manual/s_full_4.png",frameProps:[ze({width:540,height:540,left:0,top:0}),ze({width:540,height:540,left:540,top:0}),ze({width:540,height:540,left:0,top:540}),ze({width:540,height:540,left:540,top:540})]},{id:"fitcenterscreen4",poster:"https://recasts.s3.amazonaws.com/manual/s_fit_4.png",frameProps:[ze({width:480,height:480,left:40,top:40}),ze({width:480,height:480,left:560,top:40}),ze({width:480,height:480,left:40,top:560}),ze({width:480,height:480,left:560,top:560})]}]}},He={UPLOADS:"uploads",NEW_UPLOAD:"new_upload",PODCAST_SEARCH:"podcast_search"}
1,We={UPLOADS:{key:"uploads",text:"My Uploads",icon:a.a.createElement(h.a,null),tab:He.UPLOADS,visible:!0},LINK:{key:"link",text:"File Upload",label:"Paste a video or audio URL",placeholder:"https://example.com/my-video.mp4",icon:a.a.createElement(p.a,null),input_icon:a.a.createElement(u.a,null),tab:He.NEW_UPLOAD,visible:!0},PODCAST_SEARCH:{key:"search",text:"Search Podcast",label:"Search by podcast name, RSS feed, or Apple podcast URL",placeholder:"Search by podcast name...",icon:a.a.createElement(m.a,null),input_icon:a.a.createElement(g.a,null),tab:He.PODCAST_SEARCH,visible:!0},YOUTUBE:{key:"youtube",text:"Youtube",label:"Paste a valid Youtube video URL",placeholder:"https://www.youtube.com/watch?v=FNL7Bx9YnK4",icon:a.a.createElement(w.a,{component:y.G}),input_icon:a.a.createElement(E.a,null),tab:He.NEW_UPLOAD,visible:!0},RIVERSIDE:{key:"riverside",text:"Riverside",label:"Paste a Riverside share URL",placeholder:"https://riverside.fm/shared/exported-clip/d6c9b92946d966663",icon:a.a.createElement(w.a,{component:y.x}),input_icon:a.a.createElement(w.a,{component:y.x}),tab:He.NEW_UPLOAD,visible:!1,href:"https://youtu.be/bKTFtNII2lg"},DESCRIPT:{key:"descript",text:"Descript",label:"Paste a Descript project share URL",placeholder:"https://share.descript.com/view/0WfBSbh34DFjr",icon:a.a.createElement(w.a,{component:y.e,style:{color:"#0062FF"}}),input_icon:a.a.createElement(w.a,{component:y.e}),tab:He.NEW_UPLOAD,visible:!0,href:"https://youtu.be/BvMM1xNe9nc"},DRIVE:{key:"drive",text:"Google Drive",label:"Paste a public Google Drive file URL",placeholder:"https://drive.google.com/file/d/17kieUPkw8dE8Se7bLzDi87ST15pwnL/view?usp=drive_link",icon:a.a.createElement(w.a,{component:y.g}),input_icon:a.a.createElement(b.a,null),tab:He.NEW_UPLOAD,visible:!0,href:"https://youtu.be/Q9eQCXt93QQ"}},Ge="Recast Studio is an AI-powered video editor that helps marketing teams with no video editing skills to edit and repurpose their video and audio content.",Ye="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Je=["show-notes","summary"],Xe=[{label:"1977",class:"ColorAdjustment",props:{contrast:1.1,saturation:1.25,color:[.953,.416,.737,.4],blendMode:1}},{label:"Aden",class:"ColorAdjustment",props:{contrast:.9,saturation:.85,hue:.1,color:[.258,.039,.054,.3],blendMode:1}},{label:"Amaro",class:"ColorAdjustment",props:{contrast:.9,brightness:1.1,saturation:1.5,hue:-.05}},{label:"Inkwell",class:"ColorAdjustment",props:{contrast:1.1,brightness:1.1,grayscale:1}},{label:"Brooklyn",class:"ColorAdjustment",props:{contrast:.95,brightness:1.1,color:[.67,.819,.611,.4],blendMode:1}},{label:"Clarendon",class:"ColorAdjustment",props:{saturation:1.3,color:[.486,.792,.984,.2],blendMode:2}},{label:"Gingham",class:"ColorAdjustment",props:{brightness:.95,hue:-.05,color:[.42,.062,.062,.2],blendMode:1}}],Ke=[{label:"Vinyl",class:"VinylVisualizer"},{label:"Bar",class:"BarVisualizer"},{label:"Wave",class:"WaveformVisualizer"},{label:"String",class:"StringVisualizer"},{label:"Rays",class:"CircularRaysVisualizer"}],Qe=[{label:"Circle",class:"AlternateCircle"},{label:"Angular",class:"Angular"},{label:"Bounce",class:"Bounce"},{label:"Bow",class:"BowTieHorizontal"},{label:"Bow",class:"BowTieVertical"},{label:"Burn",class:"Burn"},{label:"Scrawler",class:"ButterflyWaveScrawler"},{label:"Hatch",class:"CrossHatch"},{label:"Warp",class:"CrossWarp"},{label:"Zoom",class:"CrossZoom"},{label:"Cube",class:"Cube"},{label:"Directional",class:"Directional"},{label:"Wipe",class:"DirectionalWipe"},{label:"Warp",class:"DirectionalWarp"},{label:"Doom",class:"DoomScreen"},{label:"Doorway",class:"Doorway"},{label:"Dreamy",class:"Dreamy"},{label:"Dreamy Zoom",class:"DreamyZoom"},{label:"Grayscale",class:"FadeGrayscale"},{label:"Flyeye",class:"Flyeye"},{label:"Memories",class:"GlitchMemories"},{label:"Grid",class:"GridFlip"},{label:"Heart",class:"HeartReveal"},{label:"Hexagonalize",class:"Hexagonalize"},{label:"Kaleidoscope",class:"Kaleidoscope"},{label:"Melt",class:"LuminanceMelt"},{label:"Mosaic",class:"Mosaic"},{label:"Parametric",class:"Parametric"},{label:"Perlin",class:"Perlin"},{label:"Pinwheel",class:"Pinwheel"},{label:"Polar",class:"PolarFunction"},{label:"Curtain",class:"PolkaDotsCurtain"},{label:"Radial",class:"Radial"},{label:"Blinds",class:"WindowBlinds"},{label:"Ripple",class:"Ripple"},{label:"Luma",class:"Luma"},{label:"Squares",class:"RandomSquares"},{label:"RotateScaleFade",class:"RotateScaleFade"},{label:"SquaresWire",class:"SquaresWire"},{label:"Squeeze",class:"Squeeze"},{label:"Swap",class:"Swap"},{label:"Wind",class:"Wind"},{label:"Vignette",class:"Vignette"},{label:"BurnOut",class:"UndulatingBurnOut"},{label:"Swirl",class:"Swirl"},{label:"Circles",class:"ZoomInCircles"},{label:"WipeUp",class:"WipeUp"},{label:"WipeDown",class:"WipeDown"},{label:"WipeLeft",class:"WipeLeft"},{label:"WipeRight",class:"WipeRight"},{label:"StereoViewer",class:"StereoViewer"},{label:"Curl",class:"InvertedPageCurl"},{label:"Drop",class:"WaterDrop"},{label:"Simple Zoom",class:"SimpleZoom"},{label:"Slice",class:"WindowSlice"}],Ze=new Image;Ze.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAeCAYAAAAl+Z4RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEZSURBVHgB1ZU/agJBFMa/eRgSiMUWASFNBvYCHsE9Qm6QdOms0ps6geQIgRzAUkIKzQ3EXrBS0MIFFbGZ5+yosOjqzuw0+itmmOL7zZ838AS2cFMGKFMdLGpg1GCJMOGWlCBq66WEI7QZi4UTStwKn/QsURACcR0e6CuIKjwgeHIBgnihEL0O0e2v3AW7cKe3xPPHxE2Q3llWSmg2KvaC/XD7/V7PV3YCl3Cm4LExMuGgTLnhTMHnyx2CW0I8V3j7mSKPA0E1vDY7J5Lvv5l+/bGbwFVytIy2kpMfKS150BXJQvBvyMghKW0icT7BjmNha8EpzkHA6MADLeB/eEC4UV+6Nw1QEBLRIIZSUVGJSC9MlzKNxr5XrAG5qm+4XOHC8gAAAABJRU5ErkJggg==";const qe=new Image;qe.src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAeCAYAAAAl+Z4RAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAEdSURBVHgB1dW/TsJQFAbw7zRojMagDroS3TU+gXRwYJNdo2+Ag7riAzjYN8AXcDcu+AaNO8mdSGBqwv9Ae+kpgYm2p70LfNPJSc8v6WlzL+mfCw1xtIuAHKq0GssOZQNWUQh8mypK5QUWyNC/tpA/JexbzyZAuAC6MQM0ymZAmA0FvEEA+7UNtzVBLsD59tD8H8F+S0fWAvWHEzzeHsLrB6lI7A4aL6ciJHGJEiT1KzBSvtxbIaozzQZ8/fbChY6junZXROlsRw7w8NNHN6rr98d4D5cL6StIhmMB6TCnsK55db6LowMLtWoxcZgTeyLx78xIWmKfkAwnAtJsO0DaNQN8ckwAxVdcXiC62rgoZBrTaELTH8azT6oqj1tz5Np9UntP0VUAAAAASUVORK5CYII="},63:function(e,t,n){"use strict";n.d(t,"a",(function(){return a})),n.d(t,"c",(function(){return r})),n.d(t,"b",(function(){return o}
1)),n.d(t,"g",(function(){return s})),n.d(t,"e",(function(){return l})),n.d(t,"d",(function(){return c})),n.d(t,"f",(function(){return d}));var i=n(114);const a=Object(i.a)();function r(e){a.push(e),window.ga&&window.ga("send",{hitType:"pageview",page:window.location.pathname}),window.posthog&&window.posthog.capture("$pageview")}function o(){a.goBack()}function s(e){a.replace(e)}function l(e){let t=a.location.pathname;a.push("/refresh"),e?a.replace(e):a.replace(t)}function c(e){return window.open(e,"_blank")}function d(e){if(e){let t=window.location.port,n=window.location.protocol+"//"+window.location.hostname;t&&(n+=":"+t),window.location.href=n+e}else window.location.reload()}},66:function(e,t,n){"use strict";n.d(t,"x",(function(){return r})),n.d(t,"e",(function(){return o})),n.d(t,"g",(function(){return s})),n.d(t,"G",(function(){return l})),n.d(t,"O",(function(){return c})),n.d(t,"h",(function(){return d})),n.d(t,"A",(function(){return u})),n.d(t,"K",(function(){return g})),n.d(t,"J",(function(){return w})),n.d(t,"N",(function(){return E})),n.d(t,"M",(function(){return b})),n.d(t,"I",(function(){return y})),n.d(t,"H",(function(){return v})),n.d(t,"B",(function(){return _})),n.d(t,"F",(function(){return A})),n.d(t,"L",(function(){return O})),n.d(t,"d",(function(){return C})),n.d(t,"s",(function(){return T})),n.d(t,"c",(function(){return S})),n.d(t,"i",(function(){return R})),n.d(t,"l",(function(){return D})),n.d(t,"m",(function(){return I})),n.d(t,"k",(function(){return k})),n.d(t,"j",(function(){return N})),n.d(t,"C",(function(){return j})),n.d(t,"E",(function(){return L})),n.d(t,"u",(function(){return P})),n.d(t,"t",(function(){return x})),n.d(t,"b",(function(){return M})),n.d(t,"a",(function(){return U})),n.d(t,"y",(function(){return B})),n.d(t,"w",(function(){return F})),n.d(t,"n",(function(){return z})),n.d(t,"o",(function(){return V})),n.d(t,"q",(function(){return H})),n.d(t,"r",(function(){return W})),n.d(t,"p",(function(){return G})),n.d(t,"v",(function(){return Y})),n.d(t,"z",(function(){return J})),n.d(t,"D",(function(){return X})),n.d(t,"f",(function(){return K}));var i=n(0),a=n.n(i);const r=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M22.14 0H3C1.34 0 0 1.34 0 3V22.14C0 23.8 1.34 25.14 3 25.14H22.14C23.8 25.14 25.14 23.8 25.14 22.14V3C25.14 1.34 23.8 0 22.14 0ZM19 12.79C18.8 13.37 18.46 14.23 17.96 15.04C17.43 15.91 16.84 16.51 16.22 16.81C15.9 16.97 15.57 17.05 15.24 17.05C15.11 17.05 14.98 17.04 14.86 17.01C14.4 16.92 13.96 16.69 13.56 16.3C12.86 15.62 12.26 14.47 11.71 12.77C11.16 11.06 10.66 10.34 10.34 10.03C10.18 9.88 10.08 9.84 10.03 9.83C10 9.83 9.95 9.83 9.85 9.87C9.57 10 9.22 10.38 8.88 10.92C8.55 11.44 8.23 12.1 7.98 12.8C7.8 13.3 7.25 13.56 6.74 13.38C6.49 13.29 6.29 13.12 6.18 12.88C6.07 12.65 6.06 12.39 6.14 12.15C6.35 11.57 6.71 10.71 7.22 9.9C7.77 9.03 8.37 8.44 9 8.14C9.45 7.93 9.91 7.86 10.37 7.94C10.84 8.02 11.28 8.26 11.68 8.64C12.39 9.32 13 10.48 13.55 12.18C14.1 13.89 14.59 14.62 14.91 14.92C15.07 15.08 15.17 15.11 15.2 15.11C15.22 15.11 15.26 15.12 15.35 15.07C15.62 14.94 15.96 14.56 16.28 14.03C16.6 13.51 16.9 12.84 17.14 12.15C17.31 11.65 17.86 11.38 18.37 11.55C18.62 11.63 18.82 11.81 18.94 12.04C19.05 12.27 19.07 12.53 18.99 12.77L19 12.79Z",fill:"currentColor"})),o=()=>a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 17 21",fill:"none"},a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M0 18.6977C0 19.7909 0.709421 20.4999 1.80302 20.4999L7.071 20.5C10.2136 20.5 12.7844 19.4371 14.5322 17.5764H0V18.6977ZM7.071 0.5001L1.80302 0.5C0.709421 0.5 0 1.2091 0 2.30229V3.42359H14.5322C12.7844 1.56289 10.2136 0.5001 7.071 0.5001ZM11.6684 13.3497C11.6684 14.2341 12.2447 14.8079 13.1333 14.8079H16.29C16.6478 13.9203 16.8883 12.9445 17 11.8915H13.1333C12.2447 11.8915 11.6684 12.4652 11.6684 13.3497ZM7.293 7.65746C7.293 8.54196 7.86936 9.11566 8.75797 9.11566H17C16.8882 8.06266 16.6478 7.08687 16.29 6.19927H8.75797C7.86936 6.19927 7.293 6.77297 7.293 7.65746ZM8.75697 13.3497C8.75697 12.4652 8.1806 11.8915 7.292 11.8915H0V14.8079H7.292C8.1806 14.8079 8.75697 14.2342 8.75697 13.3497ZM4.38158 7.65746C4.38158 6.77297 3.80522 6.19927 2.91662 6.19927H0V9.11566H2.91662C3.80522 9.11566 4.38158 8.54196 4.38158 7.65746Z",fill:"currentColor"})),s=()=>a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 87.3 78"},a.a.createElement("path",{d:"m6.6 66.85 3.85 6.65c.8 1.4 1.95 2.5 3.3 3.3l13.75-23.8h-27.5c0 1.55.4 3.1 1.2 4.5z",fill:"#0066da"}
1),a.a.createElement("path",{d:"m43.65 25-13.75-23.8c-1.35.8-2.5 1.9-3.3 3.3l-25.4 44a9.06 9.06 0 0 0 -1.2 4.5h27.5z",fill:"#00ac47"}),a.a.createElement("path",{d:"m73.55 76.8c1.35-.8 2.5-1.9 3.3-3.3l1.6-2.75 7.65-13.25c.8-1.4 1.2-2.95 1.2-4.5h-27.502l5.852 11.5z",fill:"#ea4335"}),a.a.createElement("path",{d:"m43.65 25 13.75-23.8c-1.35-.8-2.9-1.2-4.5-1.2h-18.5c-1.6 0-3.15.45-4.5 1.2z",fill:"#00832d"}),a.a.createElement("path",{d:"m59.8 53h-32.3l-13.75 23.8c1.35.8 2.9 1.2 4.5 1.2h50.8c1.6 0 3.15-.45 4.5-1.2z",fill:"#2684fc"}),a.a.createElement("path",{d:"m73.4 26.5-12.7-22c-.8-1.4-1.95-2.5-3.3-3.3l-13.75 23.8 16.15 28h27.45c0-1.55-.4-3.1-1.2-4.5z",fill:"#ffba00"})),l=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 164 115",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M159.865 17.8497C157.983 10.8201 152.459 5.29593 145.429 3.41421C132.701 0.000245163 81.6391 0.000244141 81.6391 0.000244141C81.6391 0.000244141 30.5776 0.000245163 17.8491 3.41421C10.8196 5.29593 5.29544 10.8201 3.41373 17.8497C-0.000243119 30.5781 -0.000244141 57.1506 -0.000244141 57.1506C-0.000244141 57.1506 -0.000243119 83.7233 3.41373 96.4518C5.29544 103.481 10.8196 109.005 17.8491 110.887C30.5776 114.301 81.6391 114.301 81.6391 114.301C81.6391 114.301 132.701 114.301 145.429 110.887C152.459 109.005 157.983 103.481 159.865 96.4518C163.279 83.7233 163.279 57.1506 163.279 57.1506C163.279 57.1506 163.265 30.5781 159.865 17.8497Z",fill:"#FF0000"}),a.a.createElement("path",{d:"M65.2958 81.6419L107.715 57.1529L65.2958 32.6636V81.6419Z",fill:"white"})),c=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 474 400",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M27 161H79C85.6274 161 91 166.373 91 173V226C91 232.627 85.6274 238 79 238H27C20.3726 238 15 232.627 15 226V173C15 166.373 20.3726 161 27 161Z",stroke:"currentColor",strokeWidth:"30"}),a.a.createElement("path",{d:"M395 161H447C453.627 161 459 166.373 459 173V226C459 232.627 453.627 238 447 238H395C388.373 238 383 232.627 383 226V173C383 166.373 388.373 161 395 161Z",stroke:"currentColor",strokeWidth:"30"}),a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M379 30H99C82.4315 30 69 43.4315 69 60V146H39V60C39 26.8629 65.8629 0 99 0H379C412.137 0 439 26.8629 439 60V146H409V60C409 43.4315 395.569 30 379 30ZM39 253V340C39 373.137 65.8629 400 99 400H379C412.137 400 439 373.137 439 340V253H409V340C409 356.569 395.569 370 379 370H99C82.4315 370 69 356.569 69 340V253H39Z",fill:"currentColor"})),d=()=>a.a.createElement("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 576 512",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M528 448H48c-26.51 0-48-21.49-48-48V112c0-26.51 21.49-48 48-48h480c26.51 0 48 21.49 48 48v288c0 26.51-21.49 48-48 48zM128 180v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm-336 96v-40c0-6.627-5.373-12-12-12H76c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12zm288 0v-40c0-6.627-5.373-12-12-12H172c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h232c6.627 0 12-5.373 12-12zm96 0v-40c0-6.627-5.373-12-12-12h-40c-6.627 0-12 5.373-12 12v40c0 6.627 5.373 12 12 12h40c6.627 0 12-5.373 12-12z"})),u=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 300 400",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"15",y:"15",width:"270",height:"370",rx:"45",stroke:"currentColor",strokeWidth:"30"}),a.a.createElement("line",{y1:"204",x2:"300",y2:"204",stroke:"currentColor",strokeWidth:"30"})),f=a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 7 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"0.5",y:"0.5",width:"6",height:"10",rx:"0.5",stroke:"currentColor"})),h=a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 11 11",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"0.5",y:"0.5",width:"10",height:"10",rx:"0.5",stroke:"currentColor"})),p=a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 11 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"0.5",y:"0.5",width:"10",height:"6",rx:"0.5",stroke:"currentColor"})),m={"1920X1080":p,"16:9":p,"1080X1080":h,"1:1":h,"1080X1920":f,"9:16":f},g=()=>a.a.createElement("svg",{width:"18",height:"18",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("g",{fill:"#000",fillRule:"evenodd"},a.a.createElement("path",{d:"M9 3.48c1.69 0 2.83.73 3.48 1.34l2.54-2.48C13.46.89 11.43 0 9 0 5.48 0 2.44 2.02.96 4.96l2.91 2.26C4.6 5.05 6.62 3.48 9 3.48z",fill:"#EA4335"}),a.a.createElement("path",{d:"M17.64 9.2c0-.74-.06-1.28-.19-1.84H9v3.34h4.96c-.1.83-.64 2.08-1.84 2.92l2.84 2.2c1.7-1.57 2.68-3.88 2.68-6.62z",fill:"#4285F4"}),a.a.createElement("path",{d:"M3.88 10.78A5.54 5.54 0 0 1 3.58 9c0-.62.11-1.22.29-1.78L.96 4.96A9.008 9.008 0 0 0 0 9c0 1.45.35 2.82.96 4.04l2.92-2.26z",fill:"#FBBC05"}),a.a.createElement("path",{d:"M9 18c2.43 0 4.47-.8 5.96-2.18l-2.84-2.2c-.76.53-1.78.9-3.12.9-2.38 0-4.4-1.57-5.12-3.74L.97 13.04C2.45 15.98 5.48 18 9 18z",fill:"#34A853"}),a.a.createElement("path",{fill:"none",d:"M0 0h18v18H0z"}))),w=e=>e?()=>m[e]:null,E=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 839 946"},a.a.createElement("path",{d:"M801 407.182C851.667 436.434 851.667 509.566 801 538.818L114 935.458C63.3333 964.71 -6.75321e-05 928.145 -6.75321e-05 869.64L-6.75321e-05 76.3604C-6.75321e-05 17.8556 63.3333 -18.71 114 10.5424L801 407.182Z",fill:"currentColor"})),b=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 642 940"},a.a.createElement("rect",{width:"180",height:"940",rx:"90",fill:"currentColor"}),a.a.createElement("rect",{x:"462",width:"180",height:"940",rx:"90",fill:"currentColor"})),y=()=>a.a.createElement("svg",{viewBox:"0 0 1024 1024",width:"1em",height:"1em"},a.a.createElement("path",{d:"M682.666667 1024C682.666667 1024 682.666667 1024 682.666667 1024L170.666667 1024c-17.066667 0-29.866667-8.533333-38.4-21.333333-8.533333-12.8-8.533333-29.866667 0-42.666667l256-384c17.066667-25.6 55.466667-25.6 72.533333 0l251.733333 379.733333c8.533333 8.533333 12.8 17.066667 12.8 29.866667C725.333333 1006.933333 708.266667 1024 682.666667 1024zM251.733333 938.666667l354.133333 0L426.666667 674.133333 251.733333 938.666667z",fill:"
1currentColor"}),a.a.createElement("path",{d:"M981.333333 725.333333l-341.333333 0c-25.6 0-42.666667-17.066667-42.666667-42.666667L597.333333 341.333333c0-25.6 17.066667-42.666667 42.666667-42.666667l341.333333 0c25.6 0 42.666667 17.066667 42.666667 42.666667l0 341.333333C1024 708.266667 1006.933333 725.333333 981.333333 725.333333zM682.666667 640l256 0L938.666667 384l-256 0L682.666667 640z",fill:"currentColor"}),a.a.createElement("path",{d:"M277.333333 554.666667C123.733333 554.666667 0 430.933333 0 277.333333S123.733333 0 277.333333 0 554.666667 123.733333 554.666667 277.333333 430.933333 554.666667 277.333333 554.666667zM277.333333 85.333333C170.666667 85.333333 85.333333 170.666667 85.333333 277.333333S170.666667 469.333333 277.333333 469.333333 469.333333 384 469.333333 277.333333 384 85.333333 277.333333 85.333333z",fill:"currentColor"})),v=()=>a.a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 91 91",fill:"none"},a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M88 45.5C88 68.9721 68.9721 88 45.5 88C22.0279 88 3 68.9721 3 45.5C3 22.0279 22.0279 3 45.5 3C68.9721 3 88 22.0279 88 45.5ZM91 45.5C91 70.629 70.629 91 45.5 91C20.371 91 0 70.629 0 45.5C0 20.371 20.371 0 45.5 0C70.629 0 91 20.371 91 45.5ZM67.0607 34.0607C67.6464 33.4749 67.6464 32.5251 67.0607 31.9393C66.4749 31.3536 65.5251 31.3536 64.9393 31.9393L38 58.8787L25.0607 45.9393C24.4749 45.3536 23.5251 45.3536 22.9393 45.9393C22.3536 46.5251 22.3536 47.4749 22.9393 48.0607L36.9393 62.0607C37.5251 62.6464 38.4749 62.6464 39.0607 62.0607L67.0607 34.0607Z",fill:"currentColor"})),_=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M1.23542 3.28086L6 0.575005L10.7646 3.28086L6 6.00298L1.23542 3.28086Z",stroke:"currentColor"}),a.a.createElement("path",{d:"M6.14569 7.91906C6.05509 7.9694 5.94491 7.9694 5.85431 7.91906L1.62253 5.56807C1.54487 5.52493 1.45209 5.51842 1.36917 5.5503L0.815299 5.76327C0.579212 5.85404 0.554522 6.17829 0.774143 6.30377L5.85117 9.2044C5.94339 9.25709 6.0566 9.25709 6.14882 9.2044L11.2258 6.30377C11.4455 6.17829 11.4208 5.85404 11.1847 5.76327L10.6308 5.5503C10.5479 5.51842 10.4551 5.52493 10.3775 5.56807L6.14569 7.91906Z",fill:"currentColor"}),a.a.createElement("path",{d:"M6.16046 10.4191C6.06986 10.4694 5.95968 10.4694 5.86908 10.4191L1.6373 8.06807C1.55964 8.02493 1.46686 8.01842 1.38394 8.0503L0.83007 8.26327C0.593983 8.35404 0.569293 8.67829 0.788914 8.80377L5.86594 11.7044C5.95816 11.7571 6.07137 11.7571 6.16359 11.7044L11.2406 8.80377C11.4602 8.67829 11.4356 8.35404 11.1995 8.26327L10.6456 8.0503C10.5627 8.01842 10.4699 8.02493 10.3922 8.06807L6.16046 10.4191Z",fill:"currentColor"})),A=()=>a.a.createElement("svg",{height:"1em",viewBox:"0 -30 512 512",width:"1em",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M0 160h40v132H0zm79 212h40V80H79zm78 80h40V0h-40zm78-160h40V160h-40zm79 110h40V50h-40zm158-242v142h40V160zm-79 292h40V0h-40zm0 0",fill:"currentColor"})),O=()=>a.a.createElement("svg",{width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false",viewBox:"0 0 1024 1024"},a.a.createElement("path",{d:"M16 512c0 273.932 222.066 496 496 496s496-222.068 496-496S785.932 16 512 16 16 238.066 16 512z m496 368V144c203.41 0 368 164.622 368 368 0 203.41-164.622 368-368 368z"})),C=()=>a.a.createElement("svg",{height:"1.2em",version:"1.1",viewBox:"8 10 20 13",width:"1.2em"},a.a.createElement("path",{d:"M11,11 C9.89,11 9,11.9 9,13 L9,23 C9,24.1 9.89,25 11,25 L25,25 C26.1,25 27,24.1 27,23 L27,13 C27,11.9 26.1,11 25,11 L11,11 Z M17,17 L15.5,17 L15.5,16.5 L13.5,16.5 L13.5,19.5 L15.5,19.5 L15.5,19 L17,19 L17,20 C17,20.55 16.55,21 16,21 L13,21 C12.45,21 12,20.55 12,20 L12,16 C12,15.45 12.45,15 13,15 L16,15 C16.55,15 17,15.45 17,16 L17,17 L17,17 Z M24,17 L22.5,17 L22.5,16.5 L20.5,16.5 L20.5,19.5 L22.5,19.5 L22.5,19 L24,19 L24,20 C24,20.55 23.55,21 23,21 L20,21 C19.45,21 19,20.55 19,20 L19,16 C19,15.45 19.45,15 20,15 L23,15 C23.55,15 24,15.45 24,16 L24,17 L24,17 Z",fill:"currentColor"})),T=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 623 623",fill:"none"},a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M201.28 64.8065C208.249 64.8065 213.723 59.3326 213.723 52.3639V12.6665C213.723 5.82281 208.249 0.223877 201.28 0.223877C194.436 0.223877 188.837 5.82281 188.837 12.6665V52.3639C188.832 59.3327 194.431 64.8065 201.28 64.8065ZM342.907 291.053L303.709 303.251L291.392 342.574L567.658 618.841C570.148 621.205 573.257 622.45 576.492 622.45C579.601 622.45 582.841 621.205 585.325 618.841L619.174 584.867C621.539 582.508 622.784 579.393 622.784 576.034C622.784 572.799 621.539 569.685 619.174 567.32L342.907 291.053ZM52.8227 213.4H13C6.15631 213.4 0.557373 207.801 0.557373 200.952C0.557373 194.108 6.15631 188.51 13 188.51L52.8227 188.515C59.6664 188.515 65.2654 194.114 65.2654 200.957C65.2654 207.801 59.6664 213.4 52.8227 213.4ZM87.5466 104.76C89.9112 107.124 93.1456 108.369 96.2602 108.369C99.4946 108.369 102.729 107.125 105.094 104.76C109.948 99.9058
1109.948 91.9422 105.094 87.088L76.9682 58.9626C72.1141 54.1085 64.2756 54.1085 59.4216 58.9626C54.5676 63.8168 54.5674 71.7803 59.4216 76.6346L87.5466 104.76ZM315.153 104.751C312.789 107.115 309.555 108.36 306.32 108.36C303.206 108.36 299.971 107.115 297.607 104.751C292.753 99.8963 292.753 91.9327 297.607 87.0786L325.732 58.9533C330.586 54.0991 338.425 54.099 343.279 58.9533C348.133 63.8075 348.133 71.7711 343.279 76.6253L315.153 104.751ZM76.9602 342.947L105.085 314.821C109.939 309.967 109.939 302.004 105.085 297.149C100.231 292.295 92.3927 292.295 87.5387 297.149L59.4133 325.275C54.5592 330.129 54.5592 338.092 59.4133 342.947C61.7778 345.311 65.0122 346.556 68.2466 346.556C71.3612 346.556 74.5956 345.311 76.9602 342.947ZM205.14 295.784L140.427 296.653C135.448 296.528 131.344 294.039 129.219 289.809C127.104 285.7 127.474 280.601 130.338 276.742L169.041 224.971L148.26 163.622C146.765 159.143 147.885 154.288 151.244 150.929C154.604 147.57 159.583 146.325 164.062 147.944L225.291 168.726L277.187 130.023C280.922 127.159 286.026 126.789 290.255 128.903C294.484 131.018 297.099 135.372 296.974 140.101L296.229 204.815L348.994 242.148C352.854 244.888 354.843 249.617 354.099 254.221C353.349 258.945 349.989 262.804 345.51 264.174L283.786 283.341L264.499 345.19C263.13 349.674 259.27 353.034 254.666 353.778C253.921 353.903 253.296 353.903 252.676 353.903C248.697 353.903 244.838 351.909 242.473 348.674L205.14 295.784Z",fill:"currentColor"})),S=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 50 49"},a.a.createElement("g",{fill:"currentColor",fillRule:"evenodd"},a.a.createElement("path",{fillRule:"nonzero",d:"M21.976 9.798l1.508-3.016L26.5 5.274l-3.016-1.509L21.976.75l-1.508 3.016-3.016 1.509 3.016 1.508 1.508 3.016zM8.403 15.831l2.513-5.027 5.027-2.514-5.027-2.514L8.403.749 5.89 5.776.862 8.29l5.028 2.514 2.513 5.027zm33.179 12.065l-2.513 5.027-5.028 2.514 5.028 2.514 2.513 5.027 2.513-5.027 5.028-2.514-5.028-2.514-2.513-5.027zM40.53 4.377l4.964 4.964c.943.943.943 2.47 0 3.413L10.748 47.5a2.413 2.413 0 01-3.412 0l-4.964-4.964a2.413 2.413 0 010-3.412L37.118 4.377a2.414 2.414 0 013.413 0zM5.01 40.83l4.033 4.033 33.815-33.816-4.033-4.033L5.01 40.83z"}),a.a.createElement("path",{d:"M30.138 14.77l6.204 6.205-24.818 24.819a2.633 2.633 0 01-3.723 0l-2.482-2.482a2.633 2.633 0 010-3.723L30.138 14.77z"}))),R=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("circle",{cx:"5",cy:"5",r:"4",stroke:"currentColor",strokeWidth:"2"})),D=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{y:"8",width:"10",height:"2",rx:"0.3",fill:"currentColor"}),a.a.createElement("rect",{y:"4",width:"10",height:"2",rx:"0.3",fill:"currentColor"}),a.a.createElement("rect",{width:"5",height:"2",rx:"0.3",fill:"currentColor"})),I=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M9 7.5C8.44772 7.5 8 7.05228 8 6.5V3.5C8 2.94772 8.44772 2.5 9 2.5V2.5C9.55228 2.5 10 2.94772 10 3.5V6.5C10 7.05228 9.55228 7.5 9 7.5V7.5Z",fill:"currentColor"}),a.a.createElement("rect",{x:"4",y:"10",width:"10",height:"2",rx:"1",transform:"rotate(-90 4 10)",fill:"currentColor"}),a.a.createElement("rect",{y:"7.5",width:"5",height:"2",rx:"1",transform:"rotate(-90 0 7.5)",fill:"currentColor"})),k=()=>a.a.createElement("svg",{width:"1em",height:"0.5em",viewBox:"0 0 10 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"1",y:"1",width:"3",height:"3",fill:"
1currentColor"}),a.a.createElement("rect",{width:"10",height:"5",rx:"0.3",stroke:"currentColor",strokeWidth:"3"})),N=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"1",y:"1",width:"12",height:"12",rx:"1.2",stroke:"currentColor",strokeWidth:"2",strokeDasharray:"2 2"})),j=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 8 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M7.82145 0.285706H0.535732C0.476803 0.285706 0.428589 0.33392 0.428589 0.392848V2.10713C0.428589 2.16606 0.476803 2.21428 0.535732 2.21428H1.28573C1.34466 2.21428 1.39287 2.16606 1.39287 2.10713V1.24999H3.64287V8.74999H2.41073C2.3518 8.74999 2.30359 8.79821 2.30359 8.85713V9.60713C2.30359 9.66606 2.3518 9.71428 2.41073 9.71428H5.94645C6.00537 9.71428 6.05359 9.66606 6.05359 9.60713V8.85713C6.05359 8.79821 6.00537 8.74999 5.94645 8.74999H4.7143V1.24999H6.9643V2.10713C6.9643 2.16606 7.01252 2.21428 7.07145 2.21428H7.82145C7.88037 2.21428 7.92859 2.16606 7.92859 2.10713V0.392848C7.92859 0.33392 7.88037 0.285706 7.82145 0.285706Z",fill:"currentColor"})),L=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M1.33301 4.00001H7.583C9.65413 4.00001 11.333 5.67895 11.333 7.75C11.333 9.82113 9.65413 11.5 7.583 11.5H1.33301M1.33301 4.00001L3.83301 1.5M1.33301 4.00001L3.83301 6.50002",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),P=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 13 13",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.3333 3.50007L5.08333 3.50007C3.01219 3.50007 1.33331 5.17901 1.33331 7.25006C1.33331 9.32119 3.01219 11.0001 5.08333 11.0001L11.3333 11.0001M11.3333 3.50007L8.83331 1.00006M11.3333 3.50007L8.83331 6.00008",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),x=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 23 5",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.6668 4.08344C12.3571 4.08344 12.9168 3.52379 12.9168 2.83334C12.9168 2.14301 12.3571 1.58337 11.6668 1.58337C10.9764 1.58337 10.4167 2.14301 10.4167 2.83334C10.4167 3.52379 10.9764 4.08344 11.6668 4.08344Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.a.createElement("path",{d:"M20.4168 4.08344C21.1071 4.08344 21.6668 3.52379 21.6668 2.83334C21.6668 2.14301 21.1071 1.58337 20.4168 1.58337C19.7265 1.58337 19.1669 2.14301 19.1669 2.83334C19.1669 3.52379 19.7265 4.08344 20.4168 4.08344Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"}),a.a.createElement("path",{d:"M2.91674 4.08344C3.6071 4.08344 4.16674 3.52379 4.16674 2.83334C4.16674 2.14301 3.6071 1.58337 2.91674 1.58337C2.22638 1.58337 1.66675 2.14301 1.66675 2.83334C1.66675 3.52379 2.22638 4.08344 2.91674 4.08344Z",fill:"currentColor",stroke:"currentColor",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})),M=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M13 6C12.8011 6 12.6103 5.92098 12.4697 5.78033C12.329 5.63968 12.25 5.44891 12.25 5.25C12.25 4.85218 12.092 4.47064 11.8107 4.18934C11.5294 3.90804 11.1478 3.75 10.75 3.75C10.5511 3.75 10.3603 3.67098 10.2197 3.53033C10.079 3.38968 10 3.19891 10 3C10 2.80109 10.079 2.61032 10.2197 2.46967C10.3603 2.32902 10.5511 2.25 10.75 2.25C11.1478 2.25 11.5294 2.09196 11.8107 1.81066C12.092 1.52936 12.25 1.14782 12.25 0.75C12.25 0.551088 12.329 0.360322 12.4697 0.21967C12.6103 0.0790176 12.8011 0 13 0C13.1989 0 13.3897 0.0790176 13.5303 0.21967C13.671 0.360322 13.75 0.551088 13.75 0.75C13.75 1.14782 13.908 1.52936 14.1893 1.81066C14.4706 2.09196 14.8522 2.25 15.25 2.25C15.4489 2.25 15.6397 2.32902 15.7803 2.46967C15.921 2.61032 16 2.80109 16 3C16 3.19891 15.921 3.38968 15.7803 3.53033C15.6397 3.67098 15.4489 3.75 15.25 3.75C14.8522 3.75 14.4706 3.90804 14.1893 4.18934C13.908 4.47064 13.75 4.85218 13.75 5.25C13.75 5.44891 13.671 5.63968 13.5303 5.78033C13.3897 5.92098 13.1989 6 13 6Z",fill:"currentColor"}),a.a.createElement("path",{d:"M6 16C5.73478 16 5.48043 15.8946 5.29289 15.7071C5.10536 15.5196 5 15.2652 5 15C5 13.9391 4.57857 12.9217 3.82843 12.1716C3.07828 11.4214 2.06087 11 1 11C0.734784 11 0.48043 10.8946 0.292893 10.7071C0.105357 10.5196 0 10.2652 0 10C0 9.73478 0.105357 9.48043 0.292893 9.29289C0.48043 9.10536 0.734784 9 1 9C2.06087 9 3.07828 8.57857 3.82843 7.82843C4.57857 7.07828 5 6.06087 5 5C5 4.73478 5.10536 4.48043 5.29289 4.29289C5.48043 4.10536 5.73478 4 6 4C6.26522 4 6.51957 4.10536 6.70711 4.29289C6.89464 4.48043 7 4.73478 7 5C7 6.06087 7.42143 7.07828 8.17157 7.82843C8.92172 8.57857 9.93913 9 11 9C11.2652 9 11.5196 9.10536 11.7071 9.29289C11.8946 9.48043 12 9.73478 12 10C12 10.2652 11.8946 10.5196 11.7071 10.7071C11.5196 10.8946 11.2652 11 11 11C9.93913 11 8.92172 11.4214 8.17157 12.1716C7.42143 12.9217 7 13.9391 7 15C7 15.2652 6.89464 15.5196 6.70711 15.7071C6.51957 15.8946 6.26522 16 6 16Z",fill:"currentColor"})),U=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M11.9395 7.14645C12.6147 6.47122 12.994 5.55542 12.994 4.60051C12.994 3.64559 12.6147 2.72979 11.9395 2.05456C11.2642 1.37934 10.3484 1 9.3935 1C8.4386 1 7.5228 1.37934 6.84757 2.05456L2.79926 6.10288V11.2008H7.89713L11.9395 7.14645Z",stroke:"currentColor",strokeWidth:"1.1",strokeLinecap:"round",strokeLinejoin:"round"}),a.a.createElement("path",{d:"M9.3965 4.60352L1 13",stroke:"currentColor",strokeWidth:"1.1",strokeLinecap:"round",strokeLinejoin:"round"}),a.a.createElement("path",{d:"M10.2961 8.80176H5.19824",stroke:"currentColor",strokeWidth:"1.1",strokeLinecap:"round",strokeLinejoin:"round"})),B=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 7 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M7 0.2C7 0.0895431 6.91046 0 6.8 0H0.2C0.089543 0 0 0.0895431 0 0.2V8.54603C0 8.71657 0.199756 8.80887 0.329628 8.69833L3.37037 6.11033C3.44509 6.04673 3.55491 6.04673 3.62963 6.11033L6.67037 8.69833C6.80024 8.80887 7 8.71657 7 8.54603V0.2ZM5.94411 1.17889C5.94411 1.06843 5.85457 0.978888 5.74411 0.978888H1.2C1.08954 0.978888 1 1.06843 1 1.17889V6.58388C1 6.75158 1.19399 6.84481 1.32494 6.74005L3.37364 5.10109C3.44733 5.04214 3.5522 5.04272 3.62524 5.10248L5.61
1745 6.7327C5.74803 6.83955 5.94411 6.74665 5.94411 6.57792V1.17889Z",fill:"currentColor"})),F=()=>a.a.createElement("svg",{width:"1.2em",height:"1.2em",viewBox:"0 0 10 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M2.3743 5.06C2.0823 5.06 1.8243 5.022 1.6003 4.946C1.3803 4.87 1.1943 4.758 1.0423 4.61C0.890297 4.458 0.776297 4.27 0.700297 4.046C0.624297 3.822 0.586297 3.562 0.586297 3.266V1.112C0.586297 0.98 0.618297 0.882 0.682297 0.818C0.750297 0.754 0.846297 0.722 0.970297 0.722C1.0943 0.722 1.1883 0.754 1.2523 0.818C1.3203 0.882 1.3543 0.98 1.3543 1.112V3.26C1.3543 3.64 1.4403 3.926 1.6123 4.118C1.7883 4.306 2.0423 4.4 2.3743 4.4C2.7063 4.4 2.9583 4.306 3.1303 4.118C3.3023 3.926 3.3883 3.64 3.3883 3.26V1.112C3.3883 0.98 3.4203 0.882 3.4843 0.818C3.5523 0.754 3.6483 0.722 3.7723 0.722C3.8923 0.722 3.9843 0.754 4.0483 0.818C4.1163 0.882 4.1503 0.98 4.1503 1.112V3.266C4.1503 3.658 4.0823 3.988 3.9463 4.256C3.8143 4.524 3.6163 4.726 3.3523 4.862C3.0883 4.994 2.7623 5.06 2.3743 5.06ZM5.35798 5.048C5.23798 5.048 5.14598 5.016 5.08198 4.952C5.01798 4.884 4.98598 4.788 4.98598 4.664V2.396C4.98598 2.272 5.01798 2.178 5.08198 2.114C5.14598 2.05 5.23598 2.018 5.35198 2.018C5.46798 2.018 5.55798 2.05 5.62198 2.114C5.68598 2.178 5.71798 2.272 5.71798 2.396V2.834L5.65198 2.654C5.73198 2.454 5.85598 2.296 6.02398 2.18C6.19198 2.064 6.39198 2.006 6.62398 2.006C6.85998 2.006 7.05398 2.062 7.20598 2.174C7.35798 2.286 7.46398 2.458 7.52398 2.69H7.43998C7.51998 2.478 7.65198 2.312 7.83598 2.192C8.01998 2.068 8.23198 2.006 8.47198 2.006C8.69598 2.006 8.87998 2.05 9.02398 2.138C9.17198 2.226 9.28198 2.36 9.35398 2.54C9.42598 2.716 9.46198 2.94 9.46198 3.212V4.664C9.46198 4.788 9.42798 4.884 9.35998 4.952C9.29598 5.016 9.20398 5.048 9.08398 5.048C8.96398 5.048 8.87198 5.016 8.80798 4.952C8.74398 4.884 8.71198 4.788 8.71198 4.664V3.242C8.71198 3.018 8.67398 2.854 8.59798 2.75C8.52598 2.646 8.40198 2.594 8.22598 2.594C8.02998 2.594 7.87598 2.664 7.76398 2.804C7.65198 2.94 7.59598 3.13 7.59598 3.374V4.664C7.59598 4.788 7.56398 4.884 7.49998 4.952C7.43598 5.016 7.34398 5.048 7.22398 5.048C7.10398 5.048 7.00998 5.016 6.94198 4.952C6.87798 4.884 6.84598 4.788 6.84598 4.664V3.242C6.84598 3.018 6.80798 2.854 6.73198 2.75C6.65998 2.646 6.53798 2.594 6.36598 2.594C6.16998 2.594 6.01598 2.664 5.90398 2.804C5.79198 2.94 5.73598 3.13 5.73598 3.374V4.664C5.73598 4.92 5.60998 5.048 5.35798 5.048Z",fill:"currentColor"})),z=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"0.5",y:"0.5",width:"9",height:"9",rx:"0.5",stroke:"currentColor"}),a.a.createElement("rect",{x:"1",y:"1",width:"8",height:"8",fill:"#757677"})),V=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"0.5",y:"0.5",width:"9",height:"9",rx:"0.5",stroke:"currentColor"}),a.a.createElement("rect",{x:"3",y:"3",width:"4",height:"4",fill:"#757677"})),H=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"0.5",y:"0.5",width:"9",height:"9",rx:"0.5",stroke:"currentColor"}),a.a.createElement("line",{x1:"1",y1:"5",x2:"9",y2:"5",stroke:"currentColor"}),a.a.createElement("rect",{x:"1",y:"5.5",width:"8",height:"3.5",fill:"#757677"})),W=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"0.5",y:"0.5",width:"9",height:"9",rx:"0.5",stroke:"currentColor"}),a.a.createElement("line",{x1:"1",y1:"5",x2:"9",y2:"5",stroke:"currentColor"}),a.a.createElement("line",{x1:"5",y1:"5",x2:"5",stroke:"currentColor"}),a.a.createElement("rect",{x:"1",y:"1",width:"3.5",height:"3.5",fill:"#757677"})),G=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 10 10",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("rect",{x:"0.5",y:"0.5",width:"9",height:"9",rx:"0.5",stroke:"currentColor"}),a.a.createElement("line",{x1:"1",y1:"5",x2:"9",y2:"5",stroke:"currentColor"}),a.a.createElement("line",{x1:"5",y1:"9",x2:"5",y2:"1",stroke:"currentColor"}),a.a.createElement("rect",{x:"1",y:"5.5",width:"3.5",height:"3.5",fill:"#757677"})),Y=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 84 84",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M18.68 0.26L32.52 24H0V22C0 10.96 8.1 1.84 18.68 0.26ZM58.52 24H37.14L23.14 0H44.52L58.52 24ZM84 22V24H63.14L49.14 0H62C74.16 0 84 9.84 84 22ZM0 28V62C0 74.16 9.84 84 22 84H62C74.16 84 84 74.16 84 62V28H0ZM54 56.38L38.02 65.46C35.36 66.98 32 65.1 32 62.08V43.92C32 40.9 35.36 39.02 38.02 40.54L54 49.62C56.66 51.12 56.66 54.88 54 56.38Z",fill:"currentColor"})),J=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 76 92",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M57.7917 0.166672C54.75 0.166672 51.8734 0.940089 49.3526 2.31513L9.9808 23.0427C4.3558 26.001 0.500004 31.9167 0.500004 38.7084C0.500004 47.4376 6.83596 54.6899 15.1485 56.1482L10.2331 58.3129C4.46226 61.2504 0.500004 67.2292 0.500004 74.1251C0.500004 83.8959 8.43751 91.8334 18.2083 91.8334C21.2708 9
11.8334 24.1475 91.06 26.6475 89.685L65.4577 69.2504C71.3952 66.3962 75.5 60.3126 75.5 53.2917C75.5 44.5626 69.1641 37.3103 60.8516 35.8519L65.767 33.6872C71.5378 30.7497 75.5001 24.7709 75.5001 17.8751C75.5001 8.10422 67.5625 0.166672 57.7917 0.166672ZM31.7581 35.0951C32.1165 35.0951 32.4826 35.1839 32.8242 35.388L47.5215 44.2096C48.8715 45.018 48.8715 46.9739 47.5215 47.7822L32.8242 56.6039C32.4826 56.8122 32.1165 56.9049 31.7581 56.905C30.6706 56.905 29.6667 56.0425 29.6667 54.8216V37.1784C29.6667 35.9617 30.6706 35.0951 31.7581 35.0951Z",fill:"currentColor"})),X=()=>a.a.createElement("svg",{width:"1em",height:"1em",viewBox:"0 0 512 512",xmlns:"http://www.w3.org/2000/svg"},a.a.createElement("path",{d:"M412.19,118.66a109.27,109.27,0,0,1-9.45-5.5,132.87,132.87,0,0,1-24.27-20.62c-18.1-20.71-24.86-41.72-27.35-56.43h.1C349.14,23.9,350,16,350.13,16H267.69V334.78c0,4.28,0,8.51-.18,12.69,0,.52-.05,1-.08,1.56,0,.23,0,.47-.05.71,0,.06,0,.12,0,.18a70,70,0,0,1-35.22,55.56,68.8,68.8,0,0,1-34.11,9c-38.41,0-69.54-31.32-69.54-70s31.13-70,69.54-70a68.9,68.9,0,0,1,21.41,3.39l.1-83.94a153.14,153.14,0,0,0-118,34.52,161.79,161.79,0,0,0-35.3,43.53c-3.48,6-16.61,30.11-18.2,69.24-1,22.21,5.67,45.22,8.85,54.73v.2c2,5.6,9.75,24.71,22.38,40.82A167.53,167.53,0,0,0,115,470.66v-.2l.2.2C155.11,497.78,199.36,496,199.36,496c7.66-.31,33.32,0,62.46-13.81,32.32-15.31,50.72-38.12,50.72-38.12a158.46,158.46,0,0,0,27.64-45.93c7.46-19.61,9.95-43.13,9.95-52.53V176.49c1,.6,14.32,9.41,14.32,9.41s19.19,12.3,49.13,20.31c21.48,5.7,50.42,6.9,50.42,6.9V131.27C453.86,132.37,433.27,129.17,412.19,118.66Z",fill:"currentColor"})),K=()=>a.a.createElement("svg",{width:"1em",height:"1em",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 469.333 469.333"},a.a.createElement("path",{d:"M298.667 384h42.667v42.667h-42.667zM42.667 85.333V384c0 23.573 19.093 42.667 42.667 42.667h85.333V384H85.333V85.333h85.333V42.667H85.333c-23.573 0-42.666 19.093-42.666 42.666zM213.333 0H256v469.333h-42.667zM384 42.667v42.667h42.667c0-23.574-19.094-42.667-42.667-42.667zM384 213.333h42.667V256H384zM298.667 42.667h42.667v42.667h-42.667zM384 128h42.667v42.667H384zM384 298.667h42.667v42.667H384zM384 426.667c23.573 0 42.667-19.093 42.667-42.667H384v42.667z",fill:"currentColor"}))},98:function(e,t,n){"use strict";n.d(t,"a",(function(){return b})),n.d(t,"b",(function(){return y})),n.d(t,"c",(function(){return _}));var i=n(5),a=n(15),r=n(14),o=n(33),s=n(12);function l(e){const t=JSON.parse(JSON.stringify(e)),n=Object(o.d)();return n>0&&![i.D.INTRO].includes(t.layer)&&(t.position+=n,t.end+=n),t}function c(e){var t;return null!=e?e:window.isAnimating?a.f.time():null!==(t=null===a.f||void 0===a.f?void 0:a.f.data.seek)&&void 0!==t?t:0}function d(e,t,n){return!t.includes(e)&&(!n.length||n.includes(e))}function u(e,t){return e<t.position||e>=t.end}function f(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>e.HAVE_CURRENT_DATA}async function h(e){try{const t=e.play();t&&"function"===typeof t.then&&await t.catch(e=>{e&&("AbortError"===e.name||String(e).includes("AbortError"))||console.error(e)})}catch(t){t&&("AbortError"===t.name||String(t).includes("AbortError"))||console.error(t)}}function p(e){return e&&"function"===typeof e.goToAndStop&&null!=e.renderer&&"number"===typeof e.totalFrames&&"number"===typeof e.frameRate}function m(e,t,n){if(!p(n))return;t.playbackSpeed=n.playSpeed;let i=y(e,t);if(void 0!=i&&!isNaN(i)&&isFinite(i)){let e=i*n.frameRate||1;try{e>=n.totalFrames?n.goToAndStop(n.totalFrames-1,!0):e&&n.goToAndStop(e,!0)}catch(a){0}}}async function g(e,t,n,i,a,r){const o=function(e){return"videoContainer"===e.type&&e.fabricObject?e.fabricObject._videoElement:e._videoElement}(e);o&&"Object"!==o.constructor.name&&d(o.id,a,r)&&(n||0===n)&&await async function(e,t,n,i){if(u(n,i))return e.pause(),void await A(n,i,e);t?(await A(n,i,e,!0),f(e)||await h(e)):(e.pause(),await A(n,i,e))}(o,t,n,i)}function w(e,t,n,i){const a=e._lottieElement;a&&p(a)&&(n||0===n)&&function(e,t,n,i){if(p(e))try{if(u(n,i))return e.pause(),void m(n,i,e);t?e.play():(e.pause(),m(n,i,e))}catch(a){0}}(a,t,n,i)}async function E(e,t,n,i,a,r){const o=e._audioElement;o&&d(o.id,a,r)&&(n||0===n)&&await async function(e,t,n,i){if(u(n,i))return e.pause(),void await A(n,i,e);t?(await A(n,i,e,!0),f(e)||await h(e)):(e.pause(),await A(n,i,e))}(o,t,n,i)}async function b(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[],s=arguments.length>5&&void 0!==arguments[5]?arguments[5]:["video","videoContainer","bodyMoving","audio"];const d=t||r.u;if(!d)return!1;const u=s.reduce((e,t)=>
1e.concat(d.getObjects(t)),[]),f=c(n);for(let r=0;r<u.length;r++){const t=l(u[r].recast);t.asset===i.f[1]&&""!==t.videoSrc?await g(u[r],e,f,t,a,o):t.asset===i.f[4]&&""!==t.previewUrl?w(u[r],e,f,t):t.asset===i.f[5]&&""!==t.audioSrc&&await E(u[r],e,f,t,a,o)}return!0}function y(e,t){var n;let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;const{position:r,end:s,layer:l,asset:c,refId:d,duration:u,videoDuration:f,playbackSpeed:h=1}=t,p=t.trim;let m=null!==(n=t.videoDuration)&&void 0!==n?n:t.audioDuration;l===i.D.PROGRESS_BAR&&(m=u),!m&&a&&(m=a.duration);let g=0,w=m;p&&null!=p.start&&null!=p.end&&(g=p.start,w=p.end);const E=e>=r&&e<=s;let b;if(E){if(l==i.D.BACKGROUND_MEDIA||l==i.D.AUDIO||l==i.D.MEDIA&&t.mediaRef)b=Object(o.f)(e);else{let t=`${c}_${d}`;b=Object(o.f)(e,!1,t)}if(l===i.D.OVERLAY&&c===i.f[4]&&Array.isArray(t.texts)&&t.texts.length>0&&null!=f){const t=f/2;if(b>t){b=s-e>t?t:b-(u-f)}}b>w&&(b=w)}else b=e<r?g:w;return b*h}async function v(e,t){let n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(void 0!=t&&!isNaN(t)&&isFinite(t))if(window.mediaManager.isRecastVideo(e))if(window.isLocalRendering){e.playbackTimeAtStart=t;const n=1/Object(s.f)(),i=t-e.lastPlaybackTime;null===e.lastPlaybackTime||Math.abs(i-n)>1e-6?await e.startVideoIterator(!0):"function"===typeof e.ensureFrame&&await e.ensureFrame(t)}else await e.seekToTime(t,n);else window.isLocalRendering?await _(e,t):e.currentTime=t}function _(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2e3;return null==t||isNaN(t)||!isFinite(t)?Promise.resolve():(e.currentTime=t,new Promise((t,i)=>{const a=()=>{s(),t()},r=e=>{s(),i(e)},o=window.setTimeout(()=>{s(),t()},n),s=()=>{e.removeEventListener("seeked",a),e.removeEventListener("error",r),window.clearTimeout(o)};e.addEventListener("seeked",a,{once:!0}),e.addEventListener("error",r,{once:!0})}))}async function A(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],a=y(e,t,n);await v(n,a,i)}},99:function(e,t,n){"use strict";n.d(t,"d",(function(){return c})),n.d(t,"b",(function(){return m})),n.d(t,"a",(function(){return w})),n.d(t,"c",(function(){return y}));var i=n(40),a=n(27),r=n(5),o=n(105),s=n(12);function l(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=JSON.parse(JSON.stringify(e));o.calcDim=r,o.type="video";let s=new i.fabric.Video(o);s.canvas=n,s._drawImage((function(i){i?(n.add(i),r&&"crop_canvas"!=n.getElement().id&&n.centerObject(i),i.setCoords(),n.remove(e),(t||0===t)&&n.moveTo(i,t),a&&a(i)):a&&a()}))}function c(e,t){if(t){let n=t.recast.gravity,i=60,a=t.width*t.scaleX,r=t.height*t.scaleY,o=null;"1"===n?o={left:i}:"2"===n?o={left:s.w.width-(a+i)}:"3"===n?o={top:i}:"4"===n?o={top:s.w.height-(r+i)}:"5"===n?o={left:i,top:i}:"6"===n?o={left:s.w.width-(a+i),top:i}:"7"===n?o={left:i,top:s.w.height-(r+i)}:"8"===n?o={left:s.w.width-(a+i),top:s.w.height-(r+i)}:"9"===n?e.centerObjectH(t):"10"===n&&e.centerObjectV(t),o&&t.set(o)}return t.setCoords(),e.requestRenderAll(),t}function d(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=JSON.parse(JSON.stringify(e));o.type="audioWave";let s=new i.fabric.AudioWave(o);s.canvas=n,s._drawImage((function(i){n.add(i),r&&(n.centerObject(i),c(n,i)),(t||0==t)&&(n.remove(e),n.moveTo(i,t)),n.requestRenderAll(),a(i)}))}function u(e,t,n){let a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,r=JSON.parse(JSON.stringify(e));r.type="audio";let o=new i.fabric.Audio(r);o.canvas=n,o._drawImage((function(i){i?(i.set({hasControls:!1,hasBorders:!1}),n.add(i),(t||0==t)&&(n.remove(e),n.moveTo(i,t)),n.requestRenderAll(),a&&a(i)):a&&a()}))}function f(e,t,n){let a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=JSON.parse(JSON.stringify(e)),d=e.src;if(["videoContainer","imageContainer"].includes(c.type)){let t=e.content||{};c.type="imageContainer",c.content={type:"image",src:d,crossOrigin:"anonymous",...t},a=new i.fabric.ImageContainer(c)}else{let t=e.recast;l&&(t.backgroundColor="transparent");let n=s.w.width,o=s.w.height;t.layer!==r.D.BACKGROUND_MEDIA&&(n*=.5,o*=.5),c.width&&c.height&&(n=c.width*c.scaleX,o=c.height*c.scaleY),a=new i.fabric.ImageContainer({type:"imageContainer",left:c.left||0,top:c.top||0,width:n,height:o,c
1ontent:{type:"image",src:d,crossOrigin:"anonymous"},stroke:c.stroke,strokeWidth:c.strokeWidth||0,strokeUniform:!0,recast:t})}a.canvas=n,a.calDim=l,a._drawImage((function(i){i?(n.add(i),l&&n.centerObject(i),(t||0==t)&&(n.remove(e),n.moveTo(i,t)),i._updateContentCoords(),n.requestRenderAll(),o&&o(i)):o&&o()}))}function h(e,t,n){let a,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,l=arguments.length>4&&void 0!==arguments[4]&&arguments[4],c=JSON.parse(JSON.stringify(e));if(["videoContainer","imageContainer"].includes(c.type))c.type="videoContainer",c.content={type:"video",crossOrigin:"anonymous",...e.content},a=new i.fabric.VideoContainer(c);else{let t=e.recast;l&&(t.backgroundColor="transparent");let n=s.w.width,o=s.w.height;t.layer!==r.D.BACKGROUND_MEDIA&&(n*=.5,o*=.5),c.width&&c.height&&(n=c.width*c.scaleX,o=c.height*c.scaleY),a=new i.fabric.VideoContainer({type:"videoContainer",left:c.left||0,top:c.top||0,width:n,height:o,content:{type:"video",crossOrigin:"anonymous"},stroke:c.stroke,strokeWidth:c.strokeWidth||0,strokeUniform:!0,recast:t})}a.canvas=n,a.calDim=l,a._drawImage((function(i){i?(n.add(i),i.calDim&&n.centerObject(i),(t||0==t)&&(n.remove(e),n.moveTo(i,t)),i._updateContentCoords(),setTimeout(()=>{n.requestRenderAll(),o&&o(i)},250)):o&&o()}))}function p(e,t,n){let a,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4],s=JSON.parse(JSON.stringify(e));["videoFrame"].includes(s.type)&&(s.type="videoFrame",s.content={type:"video",crossOrigin:"anonymous",...e.content},a=new i.fabric.VideoFrame(s)),a.canvas=n,a.calDim=o,a._drawImage((function(i){i?(n.add(i),i.calDim&&n.centerObject(i),(t||0==t)&&(n.remove(e),n.moveTo(i,t)),i._updateContentCoords(),n.requestRenderAll(),r&&r(i)):r&&r()}))}function m(e,t,n){let i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;if(e.src.startsWith("http"))Object(a.c)("GET",e.src,null,(function(a){g(a.svg,e,t,n,i)}));else{g(e.src.replace("data:image/svg+xml;utf8,",""),e,t,n,i)}}function g(e,t,n,a,r){let o=t.recast;i.fabric.loadSVGFromString(e,(function(e,l){var c=i.fabric.util.groupSVGElements(e,l);if("group"==c.type){let e=new i.fabric.Vector,t=c.getObjects();for(let n=0;n<t.length;n++)e.add(t[n]);e.addWithUpdate(),e.setCoords(),c=e}c.set({recast:o,top:t.top||0,left:t.left||0}),a.add(c),(c.width>s.w.width||c.height>s.w.height)&&Object(s.n)(c),a.centerObject(c),a.remove(t),(n||0===n)&&a.moveTo(c,n),a.requestRenderAll(),r&&r(c)}),null,{crossOrigin:"anonymous"})}function w(e,t,n,i){let a=arguments.length>4&&void 0!==arguments[4]&&arguments[4],r=arguments.length>5&&void 0!==arguments[5]&&arguments[5],o=e.recast;o&&o.previewUrl&&fetch(o.previewUrl).then(e=>e.json()).then(o=>{E(e,n,i,o,t,a,r)})}function E(e,t,n,a,r,s,l){let c=e.recast;const{rows:d,texts:u,fonts:f,json:h}=function(e,t){let n=[],i=[],a=[];if(e.hasOwnProperty("rows")&&e.rows.length?n=e.rows:e.hasOwnProperty("changeColor")&&e.changeColor&&(t&&t.layers&&Object(o.a)(t.layers,e=>n.push(e)),t&&t.assets&&t.assets.forEach((e,t)=>{Object(o.a)(e.layers,e=>n.push(e),t)}),t&&t.fonts&&Object(o.c)(t.layers,e=>n.push(e))),e.hasOwnProperty("texts")&&e.texts.length?i=e.texts:t&&t.layers&&Object(o.d)(t.layers,e=>i.push(e)),e.hasOwnProperty("fonts")&&e.fonts.length?a=e.fonts:t&&t.layers&&Object(o.b)(t.fonts,e=>a.push(e)),n.length)for(let r=0;r<n.length;r++){let e=n[r];t=Object(o.g)(e.color,t,e),n[r].dirty=!1}if(i.length)for(let r=0;r<i.length;r++){let e=i[r];t=Object(o.h)(e.t,t,e),i[r].dirty=!1}return{rows:n,texts:i,fonts:a,json:t}}(c,a);c.rows=d,c.texts=u,c.fonts=f,e.recast=c;let p=e;if(!s){let t={...e,recast:c,width:h.w,height:h.h};p=new i.fabric.BodyMoving(t)}p.canvas=t,p._drawImage(s,h,(function(){s||(t.add(p),l&&t.centerObject(p),(r||0===r)&&(t.remove(e),t.moveTo(p,r))),p.drawSvgOnCanvas(),t.requestRenderAll(),n(p)}))}function b(e){let t=e.recast;return"image"===e.type&&t.asset===r.f[0]&&""!==e.src?t.layer===r.D.MEDIA&&(e.type="imageContainer"):"image"===e.type&&t.asset===r.f[1]&&""!==t.videoSrc&&(t.layer===r.D.MEDIA?e.type="videoContainer":e.type="video"),e}function y(e,t,n,a){let r=arguments.length>4&&void 0!==arguments[4]&&arguments[4],o=arguments.length>5&&void 0!==arguments[5]&&arguments[5],s=e.recast;s&&n?"videoContainer"==(e=b(e)).type?h(e,t,n,a,o):"videoFrame"==e.type?p(e,t,n,a):"imageContainer"==e.type?f(e,t,n,a,o):"video"==e.type?l(e,t,n,a,o):"bodyMoving"===e.type?w(e,t,n,a,!1,o):"audioWave"===e.type?d(e,t,n,a,o):"audio"===e.type?u(e,t,n,a):r?a(e):i.fabric.util.enlivenObjects([JSON.parse(JSON.stringify(e))],(function(i){i.forEac
1h((function(i){n.add(i),(t||0==t)&&(n.remove(e),n.moveTo(i,t)),a(i)}))})):a()}}},[[349,6,7]]]);
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.