PageSourceSearch

https://bith.ai/_next/static/chunks/pages/_app-a5816a815b0e8194.js

js bith.ai collected 2026-10-05 11:50:44 UTC 2,211,680 bytes, 4 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[92888],{37811:function(e,t){"use strict";var i=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,o=/\\([\u000b\u0020-\u00ff])/g,n=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;function r(e){this.parameters=Object.create(null),this.type=e}t.Q=function(e){if(!e)throw TypeError("argument string is required");var t,a,l,s="object"==typeof e?function(e){var t;if("function"==typeof e.getHeader?t=e.getHeader("content-type"):"object"==typeof e.headers&&(t=e.headers&&e.headers["content-type"]),"string"!=typeof t)throw TypeError("content-type header is missing from object");return t}(e):e;if("string"!=typeof s)throw TypeError("argument string is required to be a string");var d=s.indexOf(";"),u=-1!==d?s.slice(0,d).trim():s.trim();if(!n.test(u))throw TypeError("invalid media type");var c=new r(u.toLowerCase());if(-1!==d){for(i.lastIndex=d;a=i.exec(s);){if(a.index!==d)throw TypeError("invalid parameter format");d+=a[0].length,t=a[1].toLowerCase(),34===(l=a[2]).charCodeAt(0)&&-1!==(l=l.slice(1,-1)).indexOf("\\")&&(l=l.replace(o,"$1")),c.parameters[t]=l}if(d!==s.length)throw TypeError("invalid parameter format")}return c}},58875:function(e,t,i){var o,n,r;r={canUseDOM:n=!!("undefined"!=typeof window&&window.document&&window.document.createElement),canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:n&&!!(window.addEventListener||window.attachEvent),canUseViewport:n&&!!window.screen},void 0!==(o=(function(){return r}).call(t,i,t,e))&&(e.exports=o)},8679:function(e,t,i){"use strict";var o=i(59864),n={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return o.isMemo(e)?a:l[e.$$typeof]||n}l[o.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[o.Memo]=a;var d=Object.defineProperty,u=Object.getOwnPropertyNames,c=Object.getOwnPropertySymbols,p=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,h=Object.prototype;e.exports=function e(t,i,o){if("string"!=typeof i){if(h){var n=m(i);n&&n!==h&&e(t,n,o)}var a=u(i);c&&(a=a.concat(c(i)));for(var l=s(t),f=s(i),v=0;v<a.length;++v){var g=a[v];if(!r[g]&&!(o&&o[g])&&!(f&&f[g])&&!(l&&l[g])){var y=p(i,g);try{d(t,g,y)}catch(e){}}}}return t}},36808:function(e,t,i){var o,n,r;void 0!==(n="function"==typeof(o=r=function(){function e(){for(var e=0,t={};e<arguments.length;e++){var i=arguments[e];for(var o in i)t[o]=i[o]}return t}function t(e){return e.replace(/(%[0-9A-Z]{2}
1)+/g,decodeURIComponent)}return function i(o){function n(){}function r(t,i,r){if("undefined"!=typeof document){"number"==typeof(r=e({path:"/"},n.defaults,r)).expires&&(r.expires=new Date(new Date*1+864e5*r.expires)),r.expires=r.expires?r.expires.toUTCString():"";try{var a=JSON.stringify(i);/^[\{\[]/.test(a)&&(i=a)}catch(e){}i=o.write?o.write(i,t):encodeURIComponent(String(i)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),t=encodeURIComponent(String(t)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var l="";for(var s in r)r[s]&&(l+="; "+s,!0!==r[s]&&(l+="="+r[s].split(";")[0]));return document.cookie=t+"="+i+l}}function a(e,i){if("undefined"!=typeof document){for(var n={},r=document.cookie?document.cookie.split("; "):[],a=0;a<r.length;a++){var l=r[a].split("="),s=l.slice(1).join("=");i||'"'!==s.charAt(0)||(s=s.slice(1,-1));try{var d=t(l[0]);if(s=(o.read||o)(s,d)||t(s),i)try{s=JSON.parse(s)}catch(e){}if(n[d]=s,e===d)break}catch(e){}}return e?n[e]:n}}return n.set=r,n.get=function(e){return a(e,!1)},n.getJSON=function(e){return a(e,!0)},n.remove=function(t,i){r(t,"",e(i,{expires:-1}))},n.defaults={},n.withConverter=i,n}(function(){})})?o.call(t,i,t,e):o)&&(e.exports=n),e.exports=r()},18552:function(e,t,i){var o=i(10852)(i(55639),"DataView");e.exports=o},1989:function(e,t,i){var o=i(51789),n=i(80401),r=i(57667),a=i(21327),l=i(81866);function s(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=a,s.prototype.set=l,e.exports=s},38407:function(e,t,i){var o=i(27040),n=i(14125),r=i(82117),a=i(67518),l=i(54705);function s(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=a,s.prototype.set=l,e.exports=s},57071:function(e,t,i){var o=i(10852)(i(55639),"Map");e.exports=o},83369:function(e,t,i){var o=i(24785),n=i(11285),r=i(96e3),a=i(49916),l=i(95265);function s(e){var t=-1,i=null==e?0:e.length;for(this.clear();++t<i;){var o=e[t];this.set(o[0],o[1])}}s.prototype.clear=o,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=a,s.prototype.set=l,e.exports=s},53818:function(e,t,i){var o=i(10852)(i(55639),"Promise");e.exports=o},58525:function(e,t,i){var o=i(10852)(i(55639),"Set");e.exports=o},88668:function(e,t,i){var o=i(83369),n=i(90619),r=i(72385);function a(e){var t=-1,i=null==e?0:e.length;for(this.__data__=new o;++t<i;)this.add(e[t])}a.prototype.add=a.prototype.push=n,a.prototype.has=r,e.exports=a},46384:function(e,t,i){var o=i(38407),n=i(37465),r=i(63779),a=i(67599),l=i(44758),s=i(34309);function d(e){var t=this.__data__=new o(e);this.size=t.size}d.prototype.clear=n,d.prototype.delete=r,d.prototype.get=a,d.prototype.has=l,d.prototype.set=s,e.exports=d},62705:function(e,t,i){var o=i(55639).Symbol;e.exports=o},11149:function(e,t,i){var o=i(55639).Uint8Array;e.exports=o},70577:function(e,t,i){var o=i(10852)(i(55639),"WeakMap");e.exports=o},96874:function(e){e.exports=function(e,t,i){switch(i.length){case 0:return e.call(t);case 1:return e.call(t,i[0]);case 2:return e.call(t,i[0],i[1]);case 3:return e.call(t,i[0],i[1],i[2])}return e.apply(t,i)}},44174:function(e){e.exports=function(e,t,i,o){for(var n=-1,r=null==e?0:e.length;++n<r;){var a=e[n];t(o,a,i(a),e)}return o}},34963:function(e){e.exports=function(e,t){for(var i=-1,o=null==e?0:e.length,n=0,r=[];++i<o;){var a=e[i];t(a,i,e)&&(r[n++]=a)}return r}},14636:function(e,t,i){var o=i(22545),n=i(35694),r=i(1469),a=i(44144),l=i(65776),s=i(36719),d=Object.prototype.hasOwnProperty;e.exports=function(e,t){var i=r(e),u=!i&&n(e),c=!i&&!u&&a(e),p=!i&&!u&&!c&&s(e),m=i||u||c||p,h=m?o(e.length,String):[],f=h.length;for(var v in e)(t||d.call(e,v))&&!(m&&("length"==v||c&&("offset"==v||"parent"==v)||p&&("buffer"==v||"byteLength"==v||"byteOffset"==v)||l(v,f)))&&h.push(v);return h}},29932:function(e){e.exports=function(e,t){for(var i=-1,o=null==e?0:e.length,n=Array(o);++i<o;)n[i]=t(e[i],i,e);return n}},62488:function(e){e.exports=function(e,t){for(var i=-1,o=t.length,n=e.length;++i<o;)e[n+i]=t[i];return e}},62663:function(e){e.exports=function(e,t,i,o){var n=-1,r=null==e?0:e.length;for(o&&r&&(i=e[++n]);++n<r;)i=t(i,e[n],n,e);return i}},82908:function(e){e.exports=function(e,t){for(var i=-1,o=null==e?0:e.length;++i<o;)if(t(e[i],i,e))return!0;return!1}},44286:function(e){e.exports=function(e){return e.split("")}},49029:function(e){var t=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;e.exports=function(e){return e.match(t)||[]}},18470:function(e,t,i){var o=i(77813);e.exports=function(e,t){for(var i=e.length;i--;
1)if(o(e[i][0],t))return i;return -1}},81119:function(e,t,i){var o=i(89881);e.exports=function(e,t,i,n){return o(e,function(e,o,r){t(n,e,i(e),r)}),n}},89465:function(e,t,i){var o=i(38777);e.exports=function(e,t,i){"__proto__"==t&&o?o(e,t,{configurable:!0,enumerable:!0,value:i,writable:!0}):e[t]=i}},89881:function(e,t,i){var o=i(47816),n=i(99291)(o);e.exports=n},80760:function(e,t,i){var o=i(89881);e.exports=function(e,t){var i=[];return o(e,function(e,o,n){t(e,o,n)&&i.push(e)}),i}},41848:function(e){e.exports=function(e,t,i,o){for(var n=e.length,r=i+(o?1:-1);o?r--:++r<n;)if(t(e[r],r,e))return r;return -1}},21078:function(e,t,i){var o=i(62488),n=i(37285);e.exports=function e(t,i,r,a,l){var s=-1,d=t.length;for(r||(r=n),l||(l=[]);++s<d;){var u=t[s];i>0&&r(u)?i>1?e(u,i-1,r,a,l):o(l,u):a||(l[l.length]=u)}return l}},28483:function(e,t,i){var o=i(25063)();e.exports=o},47816:function(e,t,i){var o=i(28483),n=i(3674);e.exports=function(e,t){return e&&o(e,t,n)}},97786:function(e,t,i){var o=i(71811),n=i(40327);e.exports=function(e,t){t=o(t,e);for(var i=0,r=t.length;null!=e&&i<r;)e=e[n(t[i++])];return i&&i==r?e:void 0}},68866:function(e,t,i){var o=i(62488),n=i(1469);e.exports=function(e,t,i){var r=t(e);return n(e)?r:o(r,i(e))}},44239:function(e,t,i){var o=i(62705),n=i(89607),r=i(2333),a=o?o.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?n(e):r(e)}},78565:function(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e,i){return null!=e&&t.call(e,i)}},13:function(e){e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:function(e,t,i){var o=i(44239),n=i(37005);e.exports=function(e){return n(e)&&"[object Arguments]"==o(e)}},90939:function(e,t,i){var o=i(2492),n=i(37005);e.exports=function e(t,i,r,a,l){return t===i||(null!=t&&null!=i&&(n(t)||n(i))?o(t,i,r,a,e,l):t!=t&&i!=i)}},2492:function(e,t,i){var o=i(46384),n=i(67114),r=i(18351),a=i(16096),l=i(64160),s=i(1469),d=i(44144),u=i(36719),c="[object Arguments]",p="[object Array]",m="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,f,v,g){var y=s(e),b=s(t),A=y?p:l(e),x=b?p:l(t);A=A==c?m:A,x=x==c?m:x;var w=A==m,_=x==m,S=A==x;if(S&&d(e)){if(!d(t))return!1;y=!0,w=!1}if(S&&!w)return g||(g=new o),y||u(e)?n(e,t,i,f,v,g):r(e,t,A,i,f,v,g);if(!(1&i)){var C=w&&h.call(e,"__wrapped__"),k=_&&h.call(t,"__wrapped__");
vendor: 2,772 bytes, line 1
1if(C||k){var T=C?e.value():e,E=k?t.value():t;return g||(g=new o),v(T,E,i,f,g)}}return!!S&&(g||(g=new o),a(e,t,i,f,v,g))}},2958:function(e,t,i){var o=i(46384),n=i(90939);e.exports=function(e,t,i,r){var a=i.length,l=a,s=!r;if(null==e)return!l;for(e=Object(e);a--;){var d=i[a];if(s&&d[2]?d[1]!==e[d[0]]:!(d[0]in e))return!1}for(;++a<l;){var u=(d=i[a])[0],c=e[u],p=d[1];if(s&&d[2]){if(void 0===c&&!(u in e))return!1}else{var m=new o;if(r)var h=r(c,p,u,e,t,m);if(!(void 0===h?n(p,c,3,r,m):h))return!1}}return!0}},28458:function(e,t,i){var o=i(23560),n=i(15346),r=i(13218),a=i(80346),l=/^\[object .+?Constructor\]$/,s=Object.prototype,d=Function.prototype.toString,u=s.hasOwnProperty,c=RegExp("^"+d.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!r(e)||n(e))&&(o(e)?c:l).test(a(e))}},38749:function(e,t,i){var o=i(44239),n=i(41780),r=i(37005),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return r(e)&&n(e.length)&&!!a[o(e)]}},67206:function(e,t,i){var o=i(91573),n=i(16432),r=i(6557),a=i(1469),l=i(39601);e.exports=function(e){return"function"==typeof e?e:null==e?r:"object"==typeof e?a(e)?n(e[0],e[1]):o(e):l(e)}},280:function(e,t,i){var o=i(25726),n=i(86916),r=Object.prototype.hasOwnProperty;e.exports=function(e){if(!o(e))return n(e);var t=[];for(var i in Object(e))r.call(e,i)&&"constructor"!=i&&t.push(i);return t}},69199:function(e,t,i){var o=i(89881),n=i(98612);e.exports=function(e,t){var i=-1,r=n(e)?Array(e.length):[];return o(e,function(e,o,n){r[++i]=t(e,o,n)}),r}},91573:function(e,t,i){var o=i(2958),n=i(1499),r=i(42634);e.exports=function(e){var t=n(e);return 1==t.length&&t[0][2]?r(t[0][0],t[0][1]):function(i){return i===e||o(i,e,t)}}},16432:function(e,t,i){var o=i(90939),n=i(27361),r=i(79095),a=i(15403),l=i(89162),s=i(42634),d=i(40327);e.exports=function(e,t){return a(e)&&l(t)?s(d(e),t):function(i){var a=n(i,e);return void 0===a&&a===t?r(i,e):o(t,a,3)}}},82689:function(e,t,i){var o=i(29932),n=i(97786),r=i(67206),a=i(69199),l=i(71131),s=i(7518),d=i(85022),u=i(6557),c=i(1469);e.exports=function(e,t,i){t=t.length?o(t,function(e){return c(e)?function(t){return n(t,1===e.length?e[0]:e)}:e}):[u];var p=-1;
1return t=o(t,s(r)),l(a(e,function(e,i,n){return{criteria:o(t,function(t){return t(e)}),index:++p,value:e}}),function(e,t){return d(e,t,i)})}},40371:function(e){e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},79152:function(e,t,i){var o=i(97786);e.exports=function(e){return function(t){return o(t,e)}}},18674:function(e){e.exports=function(e){return function(t){return null==e?void 0:e[t]}}},5976:function(e,t,i){var o=i(6557),n=i(45357),r=i(30061);e.exports=function(e,t){return r(n(e,t,o),e+"")}},56560:function(e,t,i){var o=i(75703),n=i(38777),r=i(6557),a=n?function(e,t){return n(e,"toString",{configurable:!0,enumerable:!1,value:o(t),writable:!0})}:r;e.exports=a},14259:function(e){e.exports=function(e,t,i){var o=-1,n=e.length;t<0&&(t=-t>n?0:n+t),(i=i>n?n:i)<0&&(i+=n),n=t>i?0:i-t>>>0,t>>>=0;for(var r=Array(n);++o<n;)r[o]=e[o+t];return r}},71131:function(e){e.exports=function(e,t){var i=e.length;for(e.sort(t);i--;)e[i]=e[i].value;return e}},22545:function(e){e.exports=function(e,t){for(var i=-1,o=Array(e);++i<e;)o[i]=t(i);return o}},80531:function(e,t,i){var o=i(62705),n=i(29932),r=i(1469),a=i(33448),l=1/0,s=o?o.prototype:void 0,d=s?s.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(r(t))return n(t,e)+"";if(a(t))return d?d.call(t):"";var i=t+"";return"0"==i&&1/t==-l?"-0":i}},27561:function(e,t,i){var o=i(67990),n=/^\s+/;e.exports=function(e){return e?e.slice(0,o(e)+1).replace(n,""):e}},7518:function(e){e.exports=function(e){return function(t){return e(t)}}},74757:function(e){e.exports=function(e,t){return e.has(t)}},71811:function(e,t,i){var o=i(1469),n=i(15403),r=i(55514),a=i(79833);e.exports=function(e,t){return o(e)?e:n(e,t)?[e]:r(a(e))}},40180:function(e,t,i){var o=i(14259);e.exports=function(e,t,i){var n=e.length;return i=void 0===i?n:i,!t&&i>=n?e:o(e,t,i)}},26393:function(e,t,i){var o=i(33448);e.exports=function(e,t){if(e!==t){var i=void 0!==e,n=null===e,r=e==e,a=o(e),l=void 0!==t,s=null===t,d=t==t,u=o(t);if(!s&&!u&&!a&&e>t||a&&l&&d&&!s&&!u||n&&l&&d||!i&&d||!r)return 1;if(!n&&!a&&!u&&e<t||u&&i&&r&&!n&&!a||s&&i&&r||!l&&r||!d)return -1}return 0}},85022:function(e,t,i){var o=i(26393);e.exports=function(e,t,i){for(var n=-1,r=e.criteria,a=t.criteria,l=r.length,s=i.length;++n<l;){var d=o(r[n],a[n]);if(d){if(n>=s)return d;return d*("desc"==i[n]?-1:1)}}return e.index-t.index}},14429:function(e,t,i){var o=i(55639)["__core-js_shared__"];e.exports=o},55189:function(e,t,i){var o=i(44174),n=i(81119),r=i(67206),a=i(1469);e.exports=function(e,t){return function(i,l){var s=a(i)?o:n,d=t?t():{};return s(i,e,r(l,2),d)}}},99291:function(e,t,i){var o=i(98612);e.exports=function(e,t){return function(i,n){if(null==i)return i;if(!o(i))return e(i,n);for(var r=i.length,a=t?r:-1,l=Object(i);(t?a--:++a<r)&&!1!==n(l[a],a,l););return i}}},25063:function(e){e.exports=function(e){return function(t,i,o){for(var n=-1,r=Object(t),a=o(t),l=a.length;l--;){var s=a[e?l:++n];if(!1===i(r[s],s,r))break}return t}}},98805:function(e,t,i){var o=i(40180),n=i(62689),r=i(83140),a=i(79833);e.exports=function(e){return function(t){var i=n(t=a(t))?r(t):void 0,l=i?i[0]:t.charAt(0),s=i?o(i,1).join(""):t.slice(1);return l[e]()+s}}},35393:function(e,t,i){var o=i(62663),n=i(53816),r=i(58748),a=RegExp("['’]","g");e.exports=function(e){return function(t){return o(r(n(t).replace(a,"")),e,"")}}},67740:function(e,t,i){var o=i(67206),n=i(98612),r=i(3674);e.exports=function(e){return function(t,i,a){var l=Object(t);if(!n(t)){var s=o(i,3);t=r(t),i=function(e){return s(l[e],e,l)}}var d=e(t,i,a);return d>-1?l[s?t[d]:d]:void 0}}},69389:function(e,t,i){var o=i(18674)({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"});e.exports=o},38777:function(e,t,i){var o=i(10852),n=function(){try{var e=o(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=n},67114:function(e,t,i){var o=i(88668),n=i(82908),r=i(74757);e.exports=function(e,t,i,a,l,s){var d=1&i,u=e.length,c=t.length;if(u!=c&&!(d&&c>u))return!1;var p=s.get(e),m=s.get(t);if(p&&m)return p==t&&m==e;var h=-1,f=!0,v=2&i?new o:void 0;for(s.set(e,t),s.set(t,e);++h<u;){var g=e[h],y=t[h];if(a)var b=d?a(y,g,h,t,e,s):a(g,y,h,e,t,s);if(void 0!==b){if(b)continue;f=!1;break}if(v){if(!n(t,function(e,t){if(!r(v,t)&&(g===e||l(g,e,i,a,s)))return v.push(t)})){f=!1;break}}else if(!(g===y||l(g,y,i,a,s))){f=!1;break}}return s.delete(e),s.delete(t),f}},18351:function(e,t,i){var o=i(62705),n=i(11149),r=i(77813),a=i(67114),l=i(68776),s=i(21814),d=o?o.prototype:void 0,u=d?d.valueOf
1:void 0;e.exports=function(e,t,i,o,d,c,p){switch(i){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)break;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":if(e.byteLength!=t.byteLength||!c(new n(e),new n(t)))break;return!0;case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=l;case"[object Set]":var h=1&o;if(m||(m=s),e.size!=t.size&&!h)break;var f=p.get(e);if(f)return f==t;o|=2,p.set(e,t);var v=a(m(e),m(t),o,d,c,p);return p.delete(e),v;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},16096:function(e,t,i){var o=i(58234),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,i,r,a,l){var s=1&i,d=o(e),u=d.length;if(u!=o(t).length&&!s)return!1;for(var c=u;c--;){var p=d[c];if(!(s?p in t:n.call(t,p)))return!1}var m=l.get(e),h=l.get(t);if(m&&h)return m==t&&h==e;var f=!0;l.set(e,t),l.set(t,e);for(var v=s;++c<u;){var g=e[p=d[c]],y=t[p];if(r)var b=s?r(y,g,p,t,e,l):r(g,y,p,e,t,l);if(!(void 0===b?g===y||a(g,y,i,r,l):b)){f=!1;break}v||(v="constructor"==p)}if(f&&!v){var A=e.constructor,x=t.constructor;A!=x&&"constructor"in e&&"constructor"in t&&!("function"==typeof A&&A instanceof A&&"function"==typeof x&&x instanceof x)&&(f=!1)}return l.delete(e),l.delete(t),f}},31957:function(e,t,i){var o="object"==typeof i.g&&i.g&&i.g.Object===Object&&i.g;e.exports=o},58234:function(e,t,i){var o=i(68866),n=i(99551),r=i(3674);e.exports=function(e){return o(e,r,n)}},45050:function(e,t,i){var o=i(37019);e.exports=function(e,t){var i=e.__data__;return o(t)?i["string"==typeof t?"string":"hash"]:i.map}},1499:function(e,t,i){var o=i(89162),n=i(3674);e.exports=function(e){for(var t=n(e),i=t.length;i--;){var r=t[i],a=e[r];t[i]=[r,a,o(a)]}return t}},10852:function(e,t,i){var o=i(28458),n=i(47801);e.exports=function(e,t){var i=n(e,t);return o(i)?i:void 0}},89607:function(e,t,i){var o=i(62705),n=Object.prototype,r=n.hasOwnProperty,a=n.toString,l=o?o.toStringTag:void 0;e.exports=function(e){var t=r.call(e,l),i=e[l];try{e[l]=void 0;var o=!0}catch(e){}var n=a.call(e);return o&&(t?e[l]=i:delete e[l]),n}},99551:function(e,t,i){var o=i(34963),n=i(70479),r=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,l=a?function(e){return null==e?[]:o(a(e=Object(e)),function(t){return r.call(e,t)})}:n;e.exports=l},64160:function(e,t,i){var o=i(18552),n=i(57071),r=i(53818),a=i(58525),l=i(70577),s=i(44239),d=i(80346),u="[object Map]",c="[object Promise]",p="[object Set]",m="[object WeakMap]",h="[object DataView]",f=d(o),v=d(n),g=d(r),y=d(a),b=d(l),A=s;(o&&A(new o(new ArrayBuffer(1)))!=h||n&&A(new n)!=u||r&&A(r.resolve())!=c||a&&A(new a)!=p||l&&A(new l)!=m)&&(A=function(e){var t=s(e),i="[object Object]"==t?e.constructor:void 0,o=i?d(i):"";if(o)switch(o){case f:return h;case v:return u;case g:return c;case y:return p;case b:return m}return t}),e.exports=A},47801:function(e){e.exports=function(e,t){return null==e?void 0:e[t]}},222:function(e,t,i){var o=i(71811),n=i(35694),r=i(1469),a=i(65776),l=i(41780),s=i(40327);e.exports=function(e,t,i){t=o(t,e);for(var d=-1,u=t.length,c=!1;++d<u;){var p=s(t[d]);if(!(c=null!=e&&i(e,p)))break;e=e[p]}return c||++d!=u?c:!!(u=null==e?0:e.length)&&l(u)&&a(p,u)&&(r(e)||n(e))}},62689:function(e){var t=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},93157:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},51789:function(e,t,i){var o=i(94536);e.exports=function(){this.__data__=o?o(null):{},this.size=0}},80401:function(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},57667:function(e,t,i){var o=i(94536),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(o){var i=t[e];return"__lodash_hash_undefined__"===i?void 0:i}return n.call(t,e)?t[e]:void 0}},21327:function(e,t,i){var o=i(94536),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return o?void 0!==t[e]:n.call(t,e)}},81866:function(e,t,i){var o=i(94536);e.exports=function(e,t){var i=this.__data__;return this.size+=this.has(e)?0:1,i[e]=o&&void 0===t?"__lodash_hash_undefined__":t,this}},37285:function(e,t,i){var o=i(62705),n=i(35694),r=i(1469),a=o?o.isConcatSpreadable:void 0;e.exports=function(e){return r(e)||n(e)||!!(a&&e&&e[a])}},65776:function(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,i){var o=typeof e;return!!(i=null==i?9007199254740991:i)&&("number"==o||"symbol"!=o&&t.test(e))&&e>-1&&e%1==0&&e<i}},16612:function(e,t,i){var o=i(77813),n=i(98612),r=i(65776),a=i(13218);e.exports=function(e,t,i){if(!a(i))return!1;var l=typeof t;return("number"==l?!!(n(i)&&r(t,i.length)):"string"==l&&t in i)&&o(i[t],e)}},15403:function(e,t,i){var o=i(1469),n=i(33448),r=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;e.exports=function(e,t){if(o(e))return!1;var i=typeof e;return!!("number"==i||"symbol"==i||"boolean"==i||null==e||n(e))||a.test(e)||!r.test(e)||null!=t&&e in Object(t)}},37019:function(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},15346:function(e,t,i){var o,n=i(14429),r=(o=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(sr
1c)_1."+o:"";e.exports=function(e){return!!r&&r in e}},25726:function(e){var t=Object.prototype;e.exports=function(e){var i=e&&e.constructor;return e===("function"==typeof i&&i.prototype||t)}},89162:function(e,t,i){var o=i(13218);e.exports=function(e){return e==e&&!o(e)}},27040:function(e){e.exports=function(){this.__data__=[],this.size=0}},14125:function(e,t,i){var o=i(18470),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,i=o(t,e);return!(i<0)&&(i==t.length-1?t.pop():n.call(t,i,1),--this.size,!0)}},82117:function(e,t,i){var o=i(18470);e.exports=function(e){var t=this.__data__,i=o(t,e);return i<0?void 0:t[i][1]}},67518:function(e,t,i){var o=i(18470);e.exports=function(e){return o(this.__data__,e)>-1}},54705:function(e,t,i){var o=i(18470);e.exports=function(e,t){var i=this.__data__,n=o(i,e);return n<0?(++this.size,i.push([e,t])):i[n][1]=t,this}},24785:function(e,t,i){var o=i(1989),n=i(38407),r=i(57071);e.exports=function(){this.size=0,this.__data__={hash:new o,map:new(r||n),string:new o}}},11285:function(e,t,i){var o=i(45050);e.exports=function(e){var t=o(this,e).delete(e);return this.size-=t?1:0,t}},96e3:function(e,t,i){var o=i(45050);e.exports=function(e){return o(this,e).get(e)}},49916:function(e,t,i){var o=i(45050);e.exports=function(e){return o(this,e).has(e)}},95265:function(e,t,i){var o=i(45050);e.exports=function(e,t){var i=o(this,e),n=i.size;return i.set(e,t),this.size+=i.size==n?0:1,this}},68776:function(e){e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e,o){i[++t]=[o,e]}),i}},42634:function(e){e.exports=function(e,t){return function(i){return null!=i&&i[e]===t&&(void 0!==t||e in Object(i))}}},24523:function(e,t,i){var o=i(88306);e.exports=function(e){var t=o(e,function(e){return 500===i.size&&i.clear(),e}),i=t.cache;return t}},94536:function(e,t,i){var o=i(10852)(Object,"create");e.exports=o},86916:function(e,t,i){var o=i(5569)(Object.keys,Object);e.exports=o},31167:function(e,t,i){e=i.nmd(e);var o=i(31957),n=t&&!t.nodeType&&t,r=n&&e&&!e.nodeType&&e,a=r&&r.exports===n&&o.process,l=function(){try{var e=r&&r.require&&r.require("util").types;if(e)return e;return a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=l},2333:function(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:function(e){e.exports=function(e,t){return function(i){return e(t(i))}}},45357:function(e,t,i){var o=i(96874),n=Math.max;e.exports=function(e,t,i){return t=n(void 0===t?e.length-1:t,0),function(){for(var r=arguments,a=-1,l=n(r.length-t,0),s=Array(l);++a<l;)s[a]=r[t+a];a=-1;for(var d=Array(t+1);++a<t;)d[a]=r[a];return d[t]=i(s),o(e,this,d)}}},55639:function(e,t,i){var o=i(31957),n="object"==typeof self&&self&&self.Object===Object&&self,r=o||n||Function("return this")();e.exports=r},90619:function(e){e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},72385:function(e){e.exports=function(e){return this.__data__.has(e)}},21814:function(e){e.exports=function(e){var t=-1,i=Array(e.size);return e.forEach(function(e){i[++t]=e}),i}},30061:function(e,t,i){var o=i(56560),n=i(21275)(o);e.exports=n},21275:function(e){var t=Date.now;e.exports=function(e){var i=0,o=0;return function(){var n=t(),r=16-(n-o);if(o=n,r>0){if(++i>=800)return arguments[0]}else i=0;return e.apply(void 0,arguments)}}},37465:function(e,t,i){var o=i(38407);e.exports=function(){this.__data__=new o,this.size=0}},63779:function(e){e.exports=function(e){var t=this.__data__,i=t.delete(e);return this.size=t.size,i}},67599:function(e){e.exports=function(e){return this.__data__.get(e)}},44758:function(e){e.exports=function(e){return this.__data__.has(e)}},34309:function(e,t,i){var o=i(38407),n=i(57071),r=i(83369);e.exports=function(e,t){var i=this.__data__;if(i instanceof o){var a=i.__data__;if(!n||a.length<199)return a.push([e,t]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(e,t),this.size=i.size,this}},83140:function(e,t,i){var o=i(44286),n=i(62689),r=i(676);e.exports=function(e){return n(e)?r(e):o(e)}},55514:function(e,t,i){var o=i(24523),n=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,r=/\\(\\)?/g,a=o(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(n,function(e,i,o,n){t.push(o?n.replace(r,"$1"):i||e)}),t});e.exports=a},40327:function(e,t,i){var o=i(33448),n=1/0;e.exports=function(e){if("string"==typeof e||o(e))return e;var t=e+"";return"0"==t&&1/e==-n?"-0":t}},80346:function(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},67990:function(e){var t=/\s/;e.exports=function(e){for(var i=e.length;i--&&t.test(e.charAt(i)););return i}},676:function(e){var t="\ud800-\udfff",i="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",o="\ud83c[\udffb-\udfff]",n="[^"+t+"]",r="(?:\ud83c[\udde6-\uddff]){2}",a="[\ud800-\udbff][\udc00-\udfff]",l="(?:"+i+"|"+o+")?",s="[\\ufe0e\\ufe0f]?",d="(?:\\u200d(?:"+[n,r,a].join("|")+")"+s+l+")*",u=RegExp(o+"(?="+o+")|(?:"+[n+i+"?",i,r,a,"["+t+"]"].join("|")+")"+(s+l+d),"g");e.exports=function(e){return e.match(u)||[]}},2757:function(e){var t="\ud800-\udfff",i="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",r="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",a="['’]",l="["+r+"]",s="["+o+"]",d="[^"+t+r+"\\d+"+i+o+n+"]",u="(?:\ud83c[\udde6-\uddff]){2}",c="[\ud800-\udbff][\udc00-\udfff]",p="["+n+"]",m="(?:"+s+"|"+d+")",h="(?:"+a+"(?:d|ll|m|re|s|t|ve))?",f="(?:"+a+"(?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",g="[\\ufe0e\\ufe0f]?",y="(?:\\u200d(?:"+["[^"+t+"]",u,c].join("|")+")"+g+v+")*",b="(?:"+["["+i+"]",u,c].join("|")+")"+(g+v+y),A=RegExp([p+"?"+s+"+"+h+"(?="+[l,p,"$"].join("|")+")","(?:"+p+"|"+d+")+"+f+"(?="+[l,p+m,"$"].join("|")+")",p+"?"+m+"+"+h,p+"+"+f,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",b].join("|"),"g");e.exports=function(e){return e.match(A)||[]}},68929:function(e,t,i){var o=i(48403),n=i(35393)(function(e,t,i){return t=t.toLowerCase(),e+(i?o(t):t)});e.exports=n},48403:function(e,t,i){var o=i(79833),n=i(11700);e.exports=function(e){return n(o(e).toLowerCase())}},75703:function(e){e.exports=function(e){return function(){return e}}},23279:function(e,t,i){var o=i(13218),n=i(7771),r=i(14841),a=Math.max,l=Math.min;e.exports=function(e,t,i){var s,d,u,c,p,m,h=0,f=!1,v=!1,g=!0;if("function"!=typeof e)throw TypeError("Expected a function");function y(t){var i=s,o=d;return s=d=void 0,h=t,c=e.apply(o,i)}function b(e){var i=e-m,o=e-h;return void 0===m||i>=t||i<0||v&&o>=u}function A(){var e,i,o,r=n();if(b(r))return x(r);p=setTimeout(A,(e=r-m,i=r-h,o=t-e,v?l(o,u-i):o))}function x(e){return(p=void 0,g&&s)?y(e):(s=d=void 0,c)}function w(){var e,i=n(),o=b(i);if(s=arguments,d=this,m=i,o){if(void 0===p)return h=e=m,p=setTimeout(A,t),f?y(e):c;if(v)return clearTimeout(p),p=setTimeout(A,t),y(m)}return void 0===p&&(p=setTimeout(A,t)),c}return t=r(t)||0,o(i)&&(f=!!i.leading,u=(v="maxWait"in i)?a(r(i.maxWait)||0,t):u,g="trailing"in i?!!i.trailing:g),w.cancel=function(){void 0!==p&&clearTimeout(p),h=0,s=m=d=p=void 0},w.flush=function(){return void 0===p?c:x(n())},w}},53816:function(e,t,i){var o=i(69389),n=i(79833),r=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
17f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=n(e))&&e.replace(r,o).replace(a,"")}},77813:function(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},63105:function(e,t,i){var o=i(34963),n=i(80760),r=i(67206),a=i(1469);e.exports=function(e,t){return(a(e)?o:n)(e,r(t,3))}},13311:function(e,t,i){var o=i(67740)(i(30998));e.exports=o},30998:function(e,t,i){var o=i(41848),n=i(67206),r=i(40554),a=Math.max;e.exports=function(e,t,i){var l=null==e?0:e.length;if(!l)return -1;var s=null==i?0:r(i);return s<0&&(s=a(l+s,0)),o(e,n(t,3),s)}},27361:function(e,t,i){var o=i(97786);e.exports=function(e,t,i){var n=null==e?void 0:o(e,t);return void 0===n?i:n}},7739:function(e,t,i){var o=i(89465),n=i(55189),r=Object.prototype.hasOwnProperty,a=n(function(e,t,i){r.call(e,i)?e[i].push(t):o(e,i,[t])});e.exports=a},18721:function(e,t,i){var o=i(78565),n=i(222);e.exports=function(e,t){return null!=e&&n(e,t,o)}},79095:function(e,t,i){var o=i(13),n=i(222);e.exports=function(e,t){return null!=e&&n(e,t,o)}},6557:function(e){e.exports=function(e){return e}},35694:function(e,t,i){var o=i(9454),n=i(37005),r=Object.prototype,a=r.hasOwnProperty,l=r.propertyIsEnumerable,s=o(function(){return arguments}())?o:function(e){return n(e)&&a.call(e,"callee")&&!l.call(e,"callee")};e.exports=s},1469:function(e){var t=Array.isArray;e.exports=t},98612:function(e,t,i){var o=i(23560),n=i(41780);e.exports=function(e){return null!=e&&n(e.length)&&!o(e)}},44144:function(e,t,i){e=i.nmd(e);var o=i(55639),n=i(95062),r=t&&!t.nodeType&&t,a=r&&e&&!e.nodeType&&e,l=a&&a.exports===r?o.Buffer:void 0,s=l?l.isBuffer:void 0;e.exports=s||n},41609:function(e,t,i){var o=i(280),n=i(64160),r=i(35694),a=i(1469),l=i(98612),s=i(44144),d=i(25726),u=i(36719),c=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(l(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||s(e)||u(e)||r(e)))return!e.length;var t=n(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(d(e))return!o(e).length;for(var i in e)if(c.call(e,i))return!1;return!0}},23560:function(e,t,i){var o=i(44239),n=i(13218);e.exports=function(e){if(!n(e))return!1;var t=o(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},41780:function(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7654:function(e,t,i){var o=i(81763);e.exports=function(e){return o(e)&&e!=+e}},45220:function(e){e.exports=function(e){return null===e}},81763:function(e,t,i){var o=i(44239),n=i(37005);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==o(e)}},13218:function(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},33448:function(e,t,i){var o=i(44239),n=i(37005);e.exports=function(e){return"symbol"==typeof e||n(e)&&"[object Symbol]"==o(e)}},36719:function(e,t,i){var o=i(38749),n=i(7518),r=i(31167),a=r&&r.isTypedArray,l=a?n(a):o;e.exports=l},3674:function(e,t,i){var o=i(14636),n=i(280),r=i(98612);e.exports=function(e){return r(e)?o(e):n(e)}},35161:function(e,t,i){var o=i(29932),n=i(67206),r=i(69199),a=i(1469);e.exports=function(e,t){return(a(e)?o:r)(e,n(t,3))}},67523:function(e,t,i){var o=i(89465),n=i(47816),r=i(67206);e.exports=function(e,t){var i={};return t=r(t,3),n(e,function(e,n,r){o(i,t(e,n,r),e)}),i}},66604:function(e,t,i){var o=i(89465),n=i(47816),r=i(67206);e.exports=function(e,t){var i={};return t=r(t,3),n(e,function(e,n,r){o(i,n,t(e,n,r))}),i}},88306:function(e,t,i){var o=i(83369);function n(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw TypeError("Expected a function");var i=function(){var o=arguments,n=t?t.apply(this,o):o[0],r=i.cache;if(r.has(n))return r.get(n);var a=e.apply(this,o);return i.cache=r.set(n,a)||r,a};return i.cache=new(n.Cache||o),i}n.Cache=o,e.exports=n},94885:function(e){e.exports=function(e){if("function"!=typeof e)throw TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},7771:function(e,t,i){var o=i(55639);e.exports=function(){return o.Date.now()}},75472:function(e,t,i){var o=i(82689),n=i(1469);e.exports=function(e,t,i,r){return null==e?[]:(n(t)||(t=null==t?[]:[t]),n(i=r?void 0:i)||(i=null==i?[]:[i]),o(e,t,i))}},39601:function(e,t,i){var o=i(40371),n=i(79152),r=i(15403),a=i(40327);e.exports=function(e){return r(e)?o(a(e)):n(e)}},43063:function(e,t,i){var o=i(34963),n=i(80760),r=i(67206),a=i(1469),l=i(94885);e.exports=function(e,t){return(a(e)?o:n)(e,l(r(t,3)))}},11865:function(e,t,i){var o=i(35393)(function(e,t,i){return e+(i?"_":"")+t.toLowerCase()});e.exports=o},89734:function(e,t,i){var o=i(21078),n=i(82689),r=i(5976),a=i(16612),l=r(function(e,t){if(null==e)return[];var i=t.length;return i>1&&a(e,t[0],t[1])?t=[]:i>2&&a(t[0],t[1],t[2])&&(t=[t[0]]),n(e,o(t,1),[])});e.exports=l},70479:function(e){e.exports=function(){return[]}},95062:function(e){e.exports=function(){return!1}},18601:function(e,t,i){var o=i(14841),n=1/0;e.exports=function(e){return e?(e=o(e))===n||e===-n?(e<0?-1:1)*17976931348623157e292:e==e?e:0:0===e?e:0}},40554:function(e,t,i){var o=i(18601);e.exports=function(e){var t=o(e),i=t%1;return t==t?i?t-i:t:0}},14841:function(e,t,i){var o=i(27561),n=i(13218),r=i(33448),a=0/0,l=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,d=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(r(e))return a;
vendor: 4,924 bytes, line 1
1if(n(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=n(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=o(e);var i=s.test(e);return i||d.test(e)?u(e.slice(2),i?2:8):l.test(e)?a:+e}},79833:function(e,t,i){var o=i(80531);e.exports=function(e){return null==e?"":o(e)}},11700:function(e,t,i){var o=i(98805)("toUpperCase");e.exports=o},58748:function(e,t,i){var o=i(49029),n=i(93157),r=i(79833),a=i(2757);e.exports=function(e,t,i){return(e=r(e),void 0===(t=i?void 0:t))?n(e)?a(e):o(e):e.match(t)||[]}},30867:function(e,t,i){!function(e){"use strict";var t={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},i={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},o=function(e){return 0===e?0:1===e?1:2===e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(e){return function(t,i,r,a){var l=o(t),s=n[e][o(t)];return 2===l&&(s=s[i?0:1]),s.replace(/%d/i,t)}},a=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];e.defineLocale("ar",{months:a,monthsShort:a,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(e){return"م"===e},meridiem:function(e,t,i){return e<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(e){return e.replace(/[١٢٣٤٥٦٧٨٩٠]/g,function(e){return i[e]}).replace(/،/g,",")},postformat:function(e){return e.replace(/\d/g,function(e){return t[e]}).replace(/,/g,"،")},week:{dow:6,doy:12}})}(i(30381))},55655:function(e,t,i){!function(e){"use strict";var t="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),i="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),o=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],n=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;e.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(e,o){return e?/-MMM-/.test(o)?i[e.month()]:t[e.month()]:t},monthsRegex:n,monthsShortRegex:n,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:o,longMonthsParse:o,shortMonthsParse:o,weekdays:"domingo_lunes_martes_mi\xe9rcoles_jueves_viernes_s\xe1bado".split("_"),weekdaysShort:"dom._lun._mar._mi\xe9._jue._vie._s\xe1b.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_s\xe1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[ma\xf1ana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%
1d horas",d:"un d\xeda",dd:"%d d\xedas",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un a\xf1o",yy:"%d a\xf1os"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%d\xba",week:{dow:1,doy:4},invalidDate:"Fecha inv\xe1lida"})}(i(30381))},30381:function(e,t,i){var o;e=i.nmd(e),o=function(){"use strict";function t(){return F.apply(null,arguments)}function i(e){return e instanceof Array||"[object Array]"===Object.prototype.toString.call(e)}function o(e){return null!=e&&"[object Object]"===Object.prototype.toString.call(e)}function n(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e){var t;if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(e).length;for(t in e)if(n(e,t))return!1;return!0}function a(e){return void 0===e}function l(e){return"number"==typeof e||"[object Number]"===Object.prototype.toString.call(e)}function s(e){return e instanceof Date||"[object Date]"===Object.prototype.toString.call(e)}function d(e,t){var i,o=[],n=e.length;for(i=0;i<n;++i)o.push(t(e[i],i));return o}function u(e,t){for(var i in t)n(t,i)&&(e[i]=t[i]);return n(t,"toString")&&(e.toString=t.toString),n(t,"valueOf")&&(e.valueOf=t.valueOf),e}function c(e,t,i,o){return tn(e,t,i,o,!0).utc()}function p(e){return null==e._pf&&(e._pf={empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}),e._pf}function m(e){var t=null,i=!1,o=e._d&&!isNaN(e._d.getTime());return(o&&(t=p(e),i=U.call(t.parsedDateParts,function(e){return null!=e}),o=t.overflow<0&&!t.empty&&!t.invalidEra&&!t.invalidMonth&&!t.invalidWeekday&&!t.weekdayMismatch&&!t.nullInput&&!t.invalidFormat&&!t.userInvalidated&&(!t.meridiem||t.meridiem&&i),e._strict&&(o=o&&0===t.charsLeftOver&&0===t.unusedTokens.length&&void 0===t.bigHour)),null!=Object.isFrozen&&Object.isFrozen(e))?o:(e._isValid=o,e._isValid)}function h(e){var t=c(NaN);return null!=e?u(p(t),e):p(t).userInvalidated=!0,t}U=Array.prototype.some?Array.prototype.some:function(e){var t,i=Object(this),o=i.length>>>0;for(t=0;t<o;t++)if(t in i&&e.call(this,i[t],t,i))return!0;return!1};var f,v,g=t.momentProperties=[],y=!1;function b(e,t){var i,o,n,r=g.length;if(a(t._isAMomentObject)||(e._isAMomentObject=t._isAMomentObject),a(t._i)||(e._i=t._i),a(t._f)||(e._f=t._f),a(t._l)||(e._l=t._l),a(t._strict)||(e._strict=t._strict),a(t._tzm)||(e._tzm=t._tzm),a(t._isUTC)||(e._isUTC=t._isUTC),a(t._offset)||(e._offset=t._offset),a(t._pf)||(e._pf=p(t)),a(t._locale)||(e._locale=t._locale),r>0)for(i=0;i<r;i++)a(n=t[o=g[i]])||(e[o]=n);return e}function A(e){b(this,e),this._d=new Date(null!=e._d?e._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),!1===y&&(y=!0,t.updateOffset(this),y=!1)}function x(e){return e instanceof A||null!=e&&null!=e._isAMomentObject}function w(e){!1===t.suppressDeprecationWarnings&&"undefined"!=typeof console&&console.warn&&console.warn("Deprecation warning: "+e)}function _(e,i){var o=!0;return u(function(){if(null!=t.deprecationHandler&&t.deprecationHandler(null,e),o){var r,a,l,s=[],d=arguments.length;for(a=0;a<d;a++){if(r="","object"==typeof arguments[a]){for(l in r+="\n["+a+"] ",arguments[0])n(arguments[0],l)&&(r+=l+": "+arguments[0][l]+", ");r=r.slice(0,-2)}else r=arguments[a];s.push(r)}w(e+"\nArguments: "+Array.prototype.slice.call(s).join("")+"\n"+Error().stack),o=!1}return i.apply(this,arguments)},i)}var S={};function C(e,i){null!=t.deprecationHandler&&t.deprecationHandler(e,i),S[e]||(w(i),S[e]=!0)}function k(e){return"undefined"!=typeof Function&&e instanceof Function||"[object Function]"===Object.prototype.toString.call(e)}function T(e,t){var i,r=u({},e);for(i in t)n(t,i)&&(o(e[i])&&o(t[i])?(r[i]={},u(r[i],e[i]),u(r[i],t[i])):null!=t[i]?r[i]=t[i]:delete r[i]);for(i in e)n(e,i)&&!n(t,i)&&o(e[i])&&(r[i]=u({},r[i]));return r}function E(e){null!=e&&this.set(e)}function P(e,t,i){var o=""+Math.abs(e);return(e>=0?i?"+":"":"-")+Math.pow(10,Math.max(0,t-o.length)).toString().substr(1)+o}t.suppressDeprecationWarnings=!1,t.deprecationHandler=null,G=Object.keys?Object.keys:function(e){var t,i=[];for(t in e)n(e,t)&&i.push(t);return i};var I=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}
1|x|X|zz?|ZZ?|.)/g,D=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,O={},N={};function j(e,t,i,o){var n=o;"string"==typeof o&&(n=function(){return this[o]()}),e&&(N[e]=n),t&&(N[t[0]]=function(){return P(n.apply(this,arguments),t[1],t[2])}),i&&(N[i]=function(){return this.localeData().ordinal(n.apply(this,arguments),e)})}function M(e,t){return e.isValid()?(O[t=R(t,e.localeData())]=O[t]||function(e){var t,i,o,n=e.match(I);for(i=0,o=n.length;i<o;i++)N[n[i]]?n[i]=N[n[i]]:n[i]=(t=n[i]).match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"");return function(t){var i,r="";for(i=0;i<o;i++)r+=k(n[i])?n[i].call(t,e):n[i];return r}}(t),O[t](e)):e.localeData().invalidDate()}function R(e,t){var i=5;function o(e){return t.longDateFormat(e)||e}for(D.lastIndex=0;i>=0&&D.test(e);)e=e.replace(D,o),D.lastIndex=0,i-=1;return e}var z={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function L(e){return"string"==typeof e?z[e]||z[e.toLowerCase()]:void 0}function V(e){var t,i,o={};for(i in e)n(e,i)&&(t=L(i))&&(o[t]=e[i]);return o}var F,U,G,B,Z={date:9,day:11,weekday:11,isoWeekday:11,dayOfYear:4,hour:13,millisecond:16,minute:14,month:8,quarter:7,second:15,weekYear:1,isoWeekYear:1,week:5,isoWeek:5,year:1},q=/\d/,H=/\d\d/,W=/\d{3}/,Y=/\d{4}/,K=/[+-]?\d{6}/,Q=/\d\d?/,$=/\d\d\d\d?/,X=/\d\d\d\d\d\d?/,J=/\d{1,3}/,ee=/\d{1,4}/,et=/[+-]?\d{1,6}/,ei=/\d+/,eo=/[+-]?\d+/,en=/Z|[+-]\d\d:?\d\d/gi,er=/Z|[+-]\d\d(?::?\d\d)?/gi,ea=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i,el=/^[1-9]\d?/,es=/^([1-9]\d|\d)/;function ed(e,t,i){B[e]=k(t)?t:function(e,o){return e&&i?i:t}}function eu(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function ec(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function ep(e){var t=+e,i=0;return 0!==t&&isFinite(t)&&(i=ec(t)),i}B={};var em={};function eh(e,t){var i,o,n=t;for("string"==typeof e&&(e=[e]),l(t)&&(n=function(e,i){i[t]=ep(e)}),o=e.length,i=0;i<o;i++)em[e[i]]=n}function ef(e,t){eh(e,function(e,i,o,n){o._w=o._w||{},t(e,o._w,o,n)})}function ev(e){return e%4==0&&e%100!=0||e%400==0}function eg(e){return ev(e)?366:365}j("Y",0,0,function(){var e=this.year();return e<=9999?P(e,4):"+"+e}),j(0,["YY",2],0,function(){return this.year()%100}),j(0,["YYYY",4],0,"year"),j(0,["YYYYY",5],0,"year"),j(0,["YYYYYY",6,!0],0,"year"),ed("Y",eo),ed("YY",Q,H),ed("YYYY",ee,Y),ed("YYYYY",et,K),ed("YYYYYY",et,K),eh(["YYYYY","YYYYYY"],0),eh("YYYY",function(e,i){i[0]=2===e.length?t.parseTwoDigitYear(e):ep(e)}),eh("YY",function(e,i){i[0]=t.parseTwoDigitYear(e)}),eh("Y",function(e,t){t[0]=parseInt(e,10)}),t.parseTwoDigitYear=function(e){return ep(e)+(ep(e)>68?1900:2e3)};var ey=eb("FullYear",!0);function eb(e,i){return function(o){return null!=o?(ex(this,e,o),t.updateOffset(this,i),this):eA(this,e)}}function eA(e,t){if(!e.isValid())return NaN;var i=e._d,o=e._isUTC;switch(t){case"Milliseconds":return o?i.getUTCMilliseconds():i.getMilliseconds();case"Seconds":return o?i.getUTCSeconds():i.getSeconds();case"Minutes":return o?i.getUTCMinutes():i.getMinutes();case"Hours":return o?i.getUTCHours():i.getHours();case"Date":return o?i.getUTCDate():i.getDate();case"Day":return o?i.getUTCDay():i.getDay();case"Month":return o?i.getUTCMonth():i.getMonth();case"FullYear":return o?i.getUTCFullYear():i.getFullYear();default:return NaN}}function ex(e,t,i){var o,n,r,a;
1if(!(!e.isValid()||isNaN(i))){switch(o=e._d,n=e._isUTC,t){case"Milliseconds":return void(n?o.setUTCMilliseconds(i):o.setMilliseconds(i));case"Seconds":return void(n?o.setUTCSeconds(i):o.setSeconds(i));case"Minutes":return void(n?o.setUTCMinutes(i):o.setMinutes(i));case"Hours":return void(n?o.setUTCHours(i):o.setHours(i));case"Date":return void(n?o.setUTCDate(i):o.setDate(i));case"FullYear":break;default:return}r=e.month(),a=29!==(a=e.date())||1!==r||ev(i)?a:28,n?o.setUTCFullYear(i,r,a):o.setFullYear(i,r,a)}}function ew(e,t){if(isNaN(e)||isNaN(t))return NaN;var i=(t%12+12)%12;return e+=(t-i)/12,1===i?ev(e)?29:28:31-i%7%2}eG=Array.prototype.indexOf?Array.prototype.indexOf:function(e){var t;for(t=0;t<this.length;++t)if(this[t]===e)return t;return -1},j("M",["MM",2],"Mo",function(){return this.month()+1}),j("MMM",0,0,function(e){return this.localeData().monthsShort(this,e)}),j("MMMM",0,0,function(e){return this.localeData().months(this,e)}),ed("M",Q,el),ed("MM",Q,H),ed("MMM",function(e,t){return t.monthsShortRegex(e)}),ed("MMMM",function(e,t){return t.monthsRegex(e)}),eh(["M","MM"],function(e,t){t[1]=ep(e)-1}),eh(["MMM","MMMM"],function(e,t,i,o){var n=i._locale.monthsParse(e,o,i._strict);null!=n?t[1]=n:p(i).invalidMonth=e});var e_="Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),eS=/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?/;function eC(e,t,i){var o,n,r,a=e.toLocaleLowerCase();if(!this._monthsParse)for(o=0,this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[];o<12;++o)r=c([2e3,o]),this._shortMonthsParse[o]=this.monthsShort(r,"").toLocaleLowerCase(),this._longMonthsParse[o]=this.months(r,"").toLocaleLowerCase();return i?"MMM"===t?-1!==(n=eG.call(this._shortMonthsParse,a))?n:null:-1!==(n=eG.call(this._longMonthsParse,a))?n:null:"MMM"===t?-1!==(n=eG.call(this._shortMonthsParse,a))?n:-1!==(n=eG.call(this._longMonthsParse,a))?n:null:-1!==(n=eG.call(this._longMonthsParse,a))?n:-1!==(n=eG.call(this._shortMonthsParse,a))?n:null}function ek(e,t){if(!e.isValid())return e;if("string"==typeof t){if(/^\d+$/.test(t))t=ep(t);else if(!l(t=e.localeData().monthsParse(t)))return e}var i=t,o=e.date();return o=o<29?o:Math.min(o,ew(e.year(),i)),e._isUTC?e._d.setUTCMonth(i,o):e._d.setMonth(i,o),e}function eT(e){return null!=e?(ek(this,e),t.updateOffset(this,!0),this):eA(this,"Month")}function eE(){function e(e,t){return t.length-e.length}var t,i,o,n,r=[],a=[],l=[];for(t=0;t<12;t++)i=c([2e3,t]),o=eu(this.monthsShort(i,"")),n=eu(this.months(i,"")),r.push(o),a.push(n),l.push(n),l.push(o);r.sort(e),a.sort(e),l.sort(e),this._monthsRegex=RegExp("^("+l.join("|")+")","i"),this._monthsShortRegex=this._monthsRegex,this._monthsStrictRegex=RegExp("^("+a.join("|")+")","i"),this._monthsShortStrictRegex=RegExp("^("+r.join("|")+")","i")}function eP(e,t,i,o,n,r,a){var l;return e<100&&e>=0?isFinite((l=new Date(e+400,t,i,o,n,r,a)).getFullYear())&&l.setFullYear(e):l=new Date(e,t,i,o,n,r,a),l}function eI(e){var t,i;return e<100&&e>=0?(i=Array.prototype.slice.call(arguments),i[0]=e+400,isFinite((t=new Date(Date.UTC.apply(null,i))).getUTCFullYear())&&t.setUTCFullYear(e)):t=new Date(Date.UTC.apply(null,arguments)),t}function eD(e,t,i){var o=7+t-i;return-((7+eI(e,0,o).getUTCDay()-t)%7)+o-1}function eO(e,t,i,o,n){var r,a,l=1+7*(t-1)+(7+i-o)%7+eD(e,o,n);return l<=0?a=eg(r=e-1)+l:l>eg(e)?(r=e+1,a=l-eg(e)):(r=e,a=l),{year:r,dayOfYear:a}}function eN(e,t,i){var o,n,r=eD(e.year(),t,i),a=Math.floor((e.dayOfYear()-r-1)/7)+1;return a<1?o=a+ej(n=e.year()-1,t,i):a>ej(e.year(),t,i)?(o=a-ej(e.year(),t,i),n=e.year()+1):(n=e.year(),o=a),{week:o,year:n}}function ej(e,t,i){var o=eD(e,t,i),n=eD(e+1,t,i);return(eg(e)-o+n)/7}function eM(e,t){return e.slice(t,7).concat(e.slice(0,t))}j("w",["ww",2],"wo","week"),j("W",["WW",2],"Wo","isoWeek"),ed("w",Q,el),ed("ww",Q,H),ed("W",Q,el),ed("WW",Q,H),ef(["w","ww","W","WW"],function(e,t,i,o){t[o.substr(0,1)]=ep(e)}),j("d",0,"do","day"),j("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)}),j("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)}),j("dddd",0,0,function(e){return this.localeData().weekdays(this,e)}),j("e",0,0,"weekday"),j("E",0,0,"isoWeekday"),ed("d",Q),ed("e",Q),ed("E",Q),ed("dd",function(e,t){return t.weekdaysMinRegex(e)}),ed("ddd",function(e,t){return t.weekdaysShortRegex(e)}),ed("dddd",function(e,t){return t.weekdaysRegex(e)}),ef(["dd","ddd","dddd"],function(e,t,i,o){var n=i._locale.weekdaysParse(e,o,i._strict);null!=n?t.d=n:p(i).invalidWeekday=e}),ef(["d","e","E"],function(e,t,i,o){t[o]=ep(e)});var eR="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_");function ez(e,t,i){var o,n,r,a=e.toLocaleLowerCase();if(!this._weekdaysParse)for(o=0,this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[];o<7;++o)r=c([2e3,1]).day(o),this._minWeekdaysParse[o]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[o]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[o]=this.weekdays(r,"").toLocaleLowerCase();return i?"dddd"===t?-1!==(n=eG.call(this._weekdaysParse,a))?n:null:"ddd"===t?-1!==(n=eG.call(this._shortWeekdaysParse,a))?n:null:-1!==(n=eG.call(this._minWeekdaysParse,a))?n:null:"dddd"===t?-1!==(n=eG.call(this._weekdaysParse,a))||-1!==(n=eG.call(this._shortWeekdaysParse,a))?n:-1!==(n=eG.call(this._minWeekdaysParse,a))?n:null:"ddd"===t?-1!==(n=eG.call(this._shortWeekdaysParse,a))||-1!==(n=eG.call(this._weekdaysParse,a))?n:-1!==(n=eG.call(this._minWeekdaysParse,a))?n:null:-1!==(n=eG.call(this._minWeekdaysParse,a))||-1!==(n=eG.call(this._weekdaysParse,a))?n:-1!==(n=eG.call(this._shortWeekdaysParse,a))?n:null}function eL(){function e(e,t){return t.length-e.length}var t,i,o,n,r,a=[],l=[],s=[],d=[];for(t=0;t<7;t++)i=c([2e3,1]).day(t),o=eu(this.weekdaysMin(i,"")),n=eu(this.weekdaysShort(i,"")),r=eu(this.weekdays(i,"")),a.push(o),l.push(n),s.push(r),d.push(o),d.push(n),d.push(r);a.sort(e),l.sort(e),s.sort(e),d.sort(e),this._weekdaysRegex=RegExp("^("+d.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=RegExp("^("+s.join("|")+")","i"),this._weekdaysShortStrictRegex=RegExp("^("+l.join("|")+")","i"),this._weekdaysMinStrictRegex=RegExp("^("+a.join("|")+")","i")}function eV(){return this.hours()%12||12}function eF(e,t){j(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}function eU(e,t){return t._meridiemParse}j("H",["HH",2],0,"hour"),j("h",["hh",2],0,eV),j("k",["kk",2],0,function(){return this.hours()||24}),j("hmm",0,0,function(){return""+eV.apply(this)+P(this.minutes(),2)}
1),j("hmmss",0,0,function(){return""+eV.apply(this)+P(this.minutes(),2)+P(this.seconds(),2)}),j("Hmm",0,0,function(){return""+this.hours()+P(this.minutes(),2)}),j("Hmmss",0,0,function(){return""+this.hours()+P(this.minutes(),2)+P(this.seconds(),2)}),eF("a",!0),eF("A",!1),ed("a",eU),ed("A",eU),ed("H",Q,es),ed("h",Q,el),ed("k",Q,el),ed("HH",Q,H),ed("hh",Q,H),ed("kk",Q,H),ed("hmm",$),ed("hmmss",X),ed("Hmm",$),ed("Hmmss",X),eh(["H","HH"],3),eh(["k","kk"],function(e,t,i){var o=ep(e);t[3]=24===o?0:o}),eh(["a","A"],function(e,t,i){i._isPm=i._locale.isPM(e),i._meridiem=e}),eh(["h","hh"],function(e,t,i){t[3]=ep(e),p(i).bigHour=!0}),eh("hmm",function(e,t,i){var o=e.length-2;t[3]=ep(e.substr(0,o)),t[4]=ep(e.substr(o)),p(i).bigHour=!0}),eh("hmmss",function(e,t,i){var o=e.length-4,n=e.length-2;t[3]=ep(e.substr(0,o)),t[4]=ep(e.substr(o,2)),t[5]=ep(e.substr(n)),p(i).bigHour=!0}),eh("Hmm",function(e,t,i){var o=e.length-2;t[3]=ep(e.substr(0,o)),t[4]=ep(e.substr(o))}),eh("Hmmss",function(e,t,i){var o=e.length-4,n=e.length-2;t[3]=ep(e.substr(0,o)),t[4]=ep(e.substr(o,2)),t[5]=ep(e.substr(n))});var eG,eB,eZ=eb("Hours",!0),eq={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:e_,week:{dow:0,doy:6},weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),weekdaysShort:eR,meridiemParse:/[ap]\.?m?\.?/i},eH={},eW={};function eY(e){return e?e.toLowerCase().replace("_","-"):e}function eK(t){var i=null;if(void 0===eH[t]&&e&&e.exports&&t&&t.match("^[^/\\\\]*$"))try{i=eB._abbr,function(){var e=Error("Cannot find module 'undefined'");throw e.code="MODULE_NOT_FOUND",e}(),eQ(i)}catch(e){eH[t]=null}return eH[t]}function eQ(e,t){var i;return e&&((i=a(t)?eX(e):e$(e,t))?eB=i:"undefined"!=typeof console&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),eB._abbr}function e$(e,t){if(null===t)return delete eH[e],null;var i,o=eq;if(t.abbr=e,null!=eH[e])C("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),o=eH[e]._config;else if(null!=t.parentLocale){if(null!=eH[t.parentLocale])o=eH[t.parentLocale]._config;else{if(null==(i=eK(t.parentLocale)))return eW[t.parentLocale]||(eW[t.parentLocale]=[]),eW[t.parentLocale].push({name:e,config:t}),null;o=i._config}}return eH[e]=new E(T(o,t)),eW[e]&&eW[e].forEach(function(e){e$(e.name,e.config)}),eQ(e),eH[e]}function eX(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return eB;if(!i(e)){if(t=eK(e))return t;e=[e]}return function(e){for(var t,i,o,n,r=0;r<e.length;){for(t=(n=eY(e[r]).split("-")).length,i=(i=eY(e[r+1]))?i.split("-"):null;t>0;){if(o=eK(n.slice(0,t).join("-")))return o;if(i&&i.length>=t&&function(e,t){var i,o=Math.min(e.length,t.length);for(i=0;i<o;i+=1)if(e[i]!==t[i])return i;return o}(n,i)>=t-1)break;t--}r++}return eB}(e)}function eJ(e){var t,i=e._a;return i&&-2===p(e).overflow&&(t=i[1]<0||i[1]>11?1:i[2]<1||i[2]>ew(i[0],i[1])?2:i[3]<0||i[3]>24||24===i[3]&&(0!==i[4]||0!==i[5]||0!==i[6])?3:i[4]<0||i[4]>59?4:i[5]<0||i[5]>59?5:i[6]<0||i[6]>999?6:-1,p(e)._overflowDayOfYear&&(t<0||t>2)&&(t=2),p(e)._overflowWeeks&&-1===t&&(t=7),p(e)._overflowWeekday&&-1===t&&(t=8),p(e).overflow=t),e}var e0=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e1=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,e2=/Z|[+-]\d\d(?::?\d\d)?/,e3=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],e4=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],e5=/^\/?Date\((-?\d+)/i,e6=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,e8={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function e9(e){var t,i,o,n,r,a,l=e._i,s=e0.exec(l)||e1.exec(l),d=e3.length,u=e4.length;if(s){for(t=0,p(e).iso=!0,i=d;t<i;t++)if(e3[t][1].exec(s[1])){n=e3[t][0],o=!1!==e3[t][2];break}if(null==n){e._isValid=!1;return}if(s[3]){for(t=0,i=u;t<i;t++)if(e4[t][1].exec(s[3])){r=(s[2]||" ")+e4[t][0];break}if(null==r){e._isValid=!1;return}}if(!o&&null!=r){e._isValid=!1;return}if(s[4]){if(e2.exec(s[4]))a="Z";else{e._isValid=!1;return}}e._f=n+(r||"")+(a||""),ti(e)}else e._isValid=!1}function e7(e){var t,i,o,n,r,a,l,s,d,u=e6.exec(e._i.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").replace(/^\s\s*/,"").replace(/\s\s*$/,""));if(u){if(i=u[4],o=u[3],n=u[2],r=u[5],a=u[6],l=u[7],s=[(t=parseInt(i,10))<=49?2e3+t:t<=999?1900+t:t,e_.indexOf(o),parseInt(n,10),parseInt(r,10),parseInt(a,10)],l&&s.push(parseInt(l,10)),(d=u[1])&&eR.indexOf(d)!==new Date(s[0],s[1],s[2]).getDay()&&(p(e).weekdayMismatch=!0,e._isValid=!1,1))return;e._a=s,e._tzm=function(e,t,i){if(e)return e8[e];if(t)return 0;var o=parseInt(i,10),n=o%100;return(o-n)/100*60+n}(u[8],u[9],u[10]),e._d=eI.apply(null,e._a),e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),p(e).rfc2822=!0}else e._isValid=!1}function te(e,t,i){return null!=e?e:null!=t?t:i}
1function tt(e){var i,o,n,r,a,l,s,d,u,c,m,h,f,v,g,y=[];if(!e._d){for(c=new Date(t.now()),f=e._useUTC?[c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()]:[c.getFullYear(),c.getMonth(),c.getDate()],e._w&&null==e._a[2]&&null==e._a[1]&&(null!=(i=e._w).GG||null!=i.W||null!=i.E?(a=1,l=4,o=te(i.GG,e._a[0],eN(tr(),1,4).year),n=te(i.W,1),((r=te(i.E,1))<1||r>7)&&(d=!0)):(a=e._locale._week.dow,l=e._locale._week.doy,u=eN(tr(),a,l),o=te(i.gg,e._a[0],u.year),n=te(i.w,u.week),null!=i.d?((r=i.d)<0||r>6)&&(d=!0):null!=i.e?(r=i.e+a,(i.e<0||i.e>6)&&(d=!0)):r=a),n<1||n>ej(o,a,l)?p(e)._overflowWeeks=!0:null!=d?p(e)._overflowWeekday=!0:(s=eO(o,n,r,a,l),e._a[0]=s.year,e._dayOfYear=s.dayOfYear)),null!=e._dayOfYear&&(g=te(e._a[0],f[0]),(e._dayOfYear>eg(g)||0===e._dayOfYear)&&(p(e)._overflowDayOfYear=!0),h=eI(g,0,e._dayOfYear),e._a[1]=h.getUTCMonth(),e._a[2]=h.getUTCDate()),m=0;m<3&&null==e._a[m];++m)e._a[m]=y[m]=f[m];for(;m<7;m++)e._a[m]=y[m]=null==e._a[m]?2===m?1:0:e._a[m];24===e._a[3]&&0===e._a[4]&&0===e._a[5]&&0===e._a[6]&&(e._nextDay=!0,e._a[3]=0),e._d=(e._useUTC?eI:eP).apply(null,y),v=e._useUTC?e._d.getUTCDay():e._d.getDay(),null!=e._tzm&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[3]=24),e._w&&void 0!==e._w.d&&e._w.d!==v&&(p(e).weekdayMismatch=!0)}}function ti(e){if(e._f===t.ISO_8601){e9(e);return}if(e._f===t.RFC_2822){e7(e);return}e._a=[],p(e).empty=!0;var i,o,r,a,l,s,d,u,c,m,h,f=""+e._i,v=f.length,g=0;for(l=0,h=(d=R(e._f,e._locale).match(I)||[]).length;l<h;l++)(u=d[l],(s=(f.match(n(B,u)?B[u](e._strict,e._locale):new RegExp(eu(u.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(e,t,i,o,n){return t||i||o||n}))))||[])[0])&&((c=f.substr(0,f.indexOf(s))).length>0&&p(e).unusedInput.push(c),f=f.slice(f.indexOf(s)+s.length),g+=s.length),N[u])?(s?p(e).empty=!1:p(e).unusedTokens.push(u),null!=s&&n(em,u)&&em[u](s,e._a,e,u)):e._strict&&!s&&p(e).unusedTokens.push(u);p(e).charsLeftOver=v-g,f.length>0&&p(e).unusedInput.push(f),e._a[3]<=12&&!0===p(e).bigHour&&e._a[3]>0&&(p(e).bigHour=void 0),p(e).parsedDateParts=e._a.slice(0),p(e).meridiem=e._meridiem,e._a[3]=(i=e._locale,o=e._a[3],null==(r=e._meridiem)?o:null!=i.meridiemHour?i.meridiemHour(o,r):(null!=i.isPM&&((a=i.isPM(r))&&o<12&&(o+=12),a||12!==o||(o=0)),o)),null!==(m=p(e).era)&&(e._a[0]=e._locale.erasConvertYear(m,e._a[0])),tt(e),eJ(e)}function to(e){var n,r=e._i,c=e._f;return(e._locale=e._locale||eX(e._l),null===r||void 0===c&&""===r)?h({nullInput:!0}):("string"==typeof r&&(e._i=r=e._locale.preparse(r)),x(r))?new A(eJ(r)):(s(r)?e._d=r:i(c)?function(e){var t,i,o,n,r,a,l=!1,s=e._f.length;if(0===s){p(e).invalidFormat=!0,e._d=new Date(NaN);return}for(n=0;n<s;n++)r=0,a=!1,t=b({},e),null!=e._useUTC&&(t._useUTC=e._useUTC),t._f=e._f[n],ti(t),m(t)&&(a=!0),r+=p(t).charsLeftOver+10*p(t).unusedTokens.length,p(t).score=r,l?r<o&&(o=r,i=t):(null==o||r<o||a)&&(o=r,i=t,a&&(l=!0));u(e,i||t)}(e):c?ti(e):a(n=e._i)?e._d=new Date(t.now()):s(n)?e._d=new Date(n.valueOf()):"string"==typeof n?function(e){var i=e5.exec(e._i);if(null!==i){e._d=new Date(+i[1]);return}e9(e),!1===e._isValid&&(delete e._isValid,e7(e),!1===e._isValid&&(delete e._isValid,e._strict?e._isValid=!1:t.createFromInputFallback(e)))}(e):i(n)?(e._a=d(n.slice(0),function(e){return parseInt(e,10)}),tt(e)):o(n)?function(e){if(!e._d){var t=V(e._i),i=void 0===t.day?t.date:t.day;e._a=d([t.year,t.month,i,t.hour,t.minute,t.second,t.millisecond],function(e){return e&&parseInt(e,10)}),tt(e)}}(e):l(n)?e._d=new Date(n):t.createFromInputFallback(e),m(e)||(e._d=null),e)}function tn(e,t,n,a,l){var s,d={};return(!0===t||!1===t)&&(a=t,t=void 0),(!0===n||!1===n)&&(a=n,n=void 0),(o(e)&&r(e)||i(e)&&0===e.length)&&(e=void 0),d._isAMomentObject=!0,d._useUTC=d._isUTC=l,d._l=n,d._i=e,d._f=t,d._strict=a,(s=new A(eJ(to(d))))._nextDay&&(s.add(1,"d"),s._nextDay=void 0),s}function tr(e,t,i,o){return tn(e,t,i,o,!1)}t.createFromInputFallback=_("value provided is not in a recognized RFC2822 or ISO format. moment construction falls back to js Date(), which is not reliable across all browsers and versions. Non RFC2822/ISO date formats are discouraged. Please refer to http://momentjs.com/guides/#/warnings/js-date/ for more info.",function(e){e._d=new Date(e._i+(e._useUTC?" UTC":""))}),t.ISO_8601=function(){},t.RFC_2822=function(){};var ta=_("moment().min is deprecated, use moment.max instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tr.apply(null,arguments);return this.isValid()&&e.isValid()?e<this?this:e:h()}),tl=_("moment().max is deprecated, use moment.min instead. http://momentjs.com/guides/#/warnings/min-max/",function(){var e=tr.apply(null,arguments);return this.isValid()&&e.isValid()?e>this?this:e:h()});function ts(e,t){var o,n;if(1===t.length&&i(t[0])&&(t=t[0]),!t.length)return tr();for(n=1,o=t[0];n<t.length;++n)(!t[n].isValid()||t[n][e](o))&&(o=t[n]);return o}var td=["year","quarter","month","week","day","hour","minute","second","millisecond"];function tu(e){var t=V(e),i=t.year||0,o=t.quarter||0,r=t.month||0,a=t.week||t.isoWeek||0,l=t.day||0,s=t.hour||0,d=t.minute||0,u=t.second||0,c=t.millisecond||0;this._isValid=function(e){var t,i,o=!1,r=td.length;for(t in e)if(n(e,t)&&!(-1!==eG.call(td,t)&&(null==e[t]||!isNaN(e[t]))))return!1;for(i=0;i<r;++i)if(e[td[i]]){if(o)return!1;parseFloat(e[td[i]])!==ep(e[td[i]])&&(o=!0)}return!0}(t),this._milliseconds=+c+1e3*u+6e4*d+36e5*s,this._days=+l+7*a,this._months=+r+3*o+12*i,this._data={},this._locale=eX(),this._bubble()}function tc(e){return e instanceof tu}function tp(e){return e<0?-1*Math.round(-1*e):Math.round(e)}function tm(e,t){j(e,0,0,function(){var e=this.utcOffset(),i="+";return e<0&&(e=-e,i="-"),i+P(~~(e/60),2)+t+P(~~e%60,2)})}tm("Z",":"),tm("ZZ",""),ed("Z",er),ed("ZZ",er),eh(["Z","ZZ"],function(e,t,i){i._useUTC=!0,i._tzm=tf(er,e)});var th=/([\+\-]|\d\d)/gi;function tf(e,t){var i,o,n=(t||"").match(e);return null===n?null:0===(o=+(60*(i=((n[n.length-1]||[])+"").match(th)||["-",0,0])[1])+ep(i[2]))?0:"+"===i[0]?o:-o}function tv(e,i){var o,n;return i._isUTC?(o=i.clone(),n=(x(e)||s(e)?e.valueOf():tr(e).valueOf())-o.valueOf(),o._d.setTime(o._d.valueOf()+n),t.updateOffset(o,!1),o):tr(e).local()}function tg(e){return-Math.round(e._d.getTimezoneOffset())}function ty(){return!!this.isValid()&&this._isUTC&&0===this._offset}t.updateOffset=function(){};var tb=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,tA=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function tx(e,t){var i,o,r,a,s,d,u=e,c=null;return tc(e)?u={ms:e._milliseconds,d:e._days,M:e._months}:l(e)||!isNaN(+e)?(u={},t?u[t]=+e:u.milliseconds=+e):(c=tb.exec(e))?(a="-"===c[1]?-1:1,u={y:0,d:ep(c[2])*a,h:ep(c[3])*a,m:ep(c[4])*a,s:ep(c[5])*a,ms:ep(tp(1e3*c[6]))*a}):(c=tA.exec(e))?(a="-"===c[1]?-1:1,u={y:tw(c[2],a),M:tw(c[3],a),w:tw(c[4],a),d:tw(c[5],a),h:tw(c[6],a),m:tw(c[7],a),s:tw(c[8],a)}):null==u?u={}:"object"==typeof u&&("from"in u||"to"in u)&&(i=tr(u.from),o=tr(u.to),d=i.isValid()&&o.isValid()?(o=tv(o,i),i.isBefore(o)?r=t_(i,o):((r=t_(o,i)).milliseconds=-r.milliseconds,r.months=-r.months),r):{milliseconds:0,months:0},(u={}).ms=d.milliseconds,u.M=d.months),s=new tu(u),tc(e)&&n(e,"_locale")&&(s._locale=e._locale),tc(e)&&n(e,"_isValid")&&(s._isValid=e._isValid),s}function tw(e,t){var i=e&&parseFloat(e.replace(",","."));return(isNaN(i)?0:i)*t}function t_(e,t){var i={};return i.months=t.month()-e.month()+(t.year()-e.year())*12,e.clone().add(i.months,"M").isAfter(t)&&--i.months,i.milliseconds=+t-+e.clone().add(i.months,"M"),i}function tS(e,t){return function(i,o){var n;return null===o||isNaN(+o)||(C(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),n=i,i=o,o=n),tC(this,tx(i,o),e),this}}function tC(e,i,o,n){var r=i._milliseconds,a=tp(i._days),l=tp(i._months);e.isValid()&&(n=null==n||n,l&&ek(e,eA(e,"Month")+l*o),a&&ex(e,"Date",eA(e,"Date")+a*o),r&&e._d.setTime(e._d.valueOf()+r*o),n&&t.updateOffset(e,a||l))}tx.fn=tu.prototype,tx.invalid=function(){return tx(NaN)};var tk=tS(1,"add"),tT=tS(-1,"subtract");function tE(e){return"string"==typeof e||e instanceof String}function tP(e,t){if(e.date()<t.date())return-tP(t,e);var i,o=(t.year()-e.year())*12+(t.month()-e.month()),n=e.clone().add(o,"months");return i=t-n<0?(t-n)/(n-e.clone().add(o-1,"months")):(t-n)/(e.clone().add(o+1,"months")-n),-(o+i)||0}function tI(e){var t;return void 0===e?this._locale._abbr:(null!=(t=eX(e))&&(this._locale=t),this)}t.defaultFormat="YYYY-MM-DDTHH:mm:ssZ",t.defaultFormatUtc="YYYY-MM-DDTHH:mm:ss[Z]";var tD=_("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return void 0===e?this.localeData():this.locale(e)});function tO(){return this._locale}function tN(e,t,i){return e<100&&e>=0?new Date(e+400,t,i)-126227808e5:new Date(e,t,i).valueOf()}function tj(e,t,i){return e<100&&e>=0?Date.UTC(e+400,t,i)-126227808e5:Date.UTC(e,t,i)}function tM(e,t){return t.erasAbbrRegex(e)}function tR(){var e,t,i,o,n,r=[],a=[],l=[],s=[],d=this.eras();for(e=0,t=d.length;e<t;
1++e)i=eu(d[e].name),o=eu(d[e].abbr),n=eu(d[e].narrow),a.push(i),r.push(o),l.push(n),s.push(i),s.push(o),s.push(n);this._erasRegex=RegExp("^("+s.join("|")+")","i"),this._erasNameRegex=RegExp("^("+a.join("|")+")","i"),this._erasAbbrRegex=RegExp("^("+r.join("|")+")","i"),this._erasNarrowRegex=RegExp("^("+l.join("|")+")","i")}function tz(e,t){j(0,[e,e.length],0,t)}function tL(e,t,i,o,n){var r;return null==e?eN(this,o,n).year:(t>(r=ej(e,o,n))&&(t=r),tV.call(this,e,t,i,o,n))}function tV(e,t,i,o,n){var r=eO(e,t,i,o,n),a=eI(r.year,0,r.dayOfYear);return this.year(a.getUTCFullYear()),this.month(a.getUTCMonth()),this.date(a.getUTCDate()),this}j("N",0,0,"eraAbbr"),j("NN",0,0,"eraAbbr"),j("NNN",0,0,"eraAbbr"),j("NNNN",0,0,"eraName"),j("NNNNN",0,0,"eraNarrow"),j("y",["y",1],"yo","eraYear"),j("y",["yy",2],0,"eraYear"),j("y",["yyy",3],0,"eraYear"),j("y",["yyyy",4],0,"eraYear"),ed("N",tM),ed("NN",tM),ed("NNN",tM),ed("NNNN",function(e,t){return t.erasNameRegex(e)}),ed("NNNNN",function(e,t){return t.erasNarrowRegex(e)}),eh(["N","NN","NNN","NNNN","NNNNN"],function(e,t,i,o){var n=i._locale.erasParse(e,o,i._strict);n?p(i).era=n:p(i).invalidEra=e}),ed("y",ei),ed("yy",ei),ed("yyy",ei),ed("yyyy",ei),ed("yo",function(e,t){return t._eraYearOrdinalRegex||ei}),eh(["y","yy","yyy","yyyy"],0),eh(["yo"],function(e,t,i,o){var n;i._locale._eraYearOrdinalRegex&&(n=e.match(i._locale._eraYearOrdinalRegex)),i._locale.eraYearOrdinalParse?t[0]=i._locale.eraYearOrdinalParse(e,n):t[0]=parseInt(e,10)}),j(0,["gg",2],0,function(){return this.weekYear()%100}),j(0,["GG",2],0,function(){return this.isoWeekYear()%100}),tz("gggg","weekYear"),tz("ggggg","weekYear"),tz("GGGG","isoWeekYear"),tz("GGGGG","isoWeekYear"),ed("G",eo),ed("g",eo),ed("GG",Q,H),ed("gg",Q,H),ed("GGGG",ee,Y),ed("gggg",ee,Y),ed("GGGGG",et,K),ed("ggggg",et,K),ef(["gggg","ggggg","GGGG","GGGGG"],function(e,t,i,o){t[o.substr(0,2)]=ep(e)}),ef(["gg","GG"],function(e,i,o,n){i[n]=t.parseTwoDigitYear(e)}),j("Q",0,"Qo","quarter"),ed("Q",q),eh("Q",function(e,t){t[1]=(ep(e)-1)*3}),j("D",["DD",2],"Do","date"),ed("D",Q,el),ed("DD",Q,H),ed("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient}),eh(["D","DD"],2),eh("Do",function(e,t){t[2]=ep(e.match(Q)[0])});var tF=eb("Date",!0);j("DDD",["DDDD",3],"DDDo","dayOfYear"),ed("DDD",J),ed("DDDD",W),eh(["DDD","DDDD"],function(e,t,i){i._dayOfYear=ep(e)}),j("m",["mm",2],0,"minute"),ed("m",Q,es),ed("mm",Q,H),eh(["m","mm"],4);var tU=eb("Minutes",!1);j("s",["ss",2],0,"second"),ed("s",Q,es),ed("ss",Q,H),eh(["s","ss"],5);var tG=eb("Seconds",!1);for(j("S",0,0,function(){return~~(this.millisecond()/100)}),j(0,["SS",2],0,function(){return~~(this.millisecond()/10)}),j(0,["SSS",3],0,"millisecond"),j(0,["SSSS",4],0,function(){return 10*this.millisecond()}),j(0,["SSSSS",5],0,function(){return 100*this.millisecond()}),j(0,["SSSSSS",6],0,function(){return 1e3*this.millisecond()}),j(0,["SSSSSSS",7],0,function(){return 1e4*this.millisecond()}),j(0,["SSSSSSSS",8],0,function(){return 1e5*this.millisecond()}),j(0,["SSSSSSSSS",9],0,function(){return 1e6*this.millisecond()}),ed("S",J,q),ed("SS",J,H),ed("SSS",J,W),f="SSSS";f.length<=9;f+="S")ed(f,ei);function tB(e,t){t[6]=ep(("0."+e)*1e3)}for(f="S";f.length<=9;f+="S")eh(f,tB);v=eb("Milliseconds",!1),j("z",0,0,"zoneAbbr"),j("zz",0,0,"zoneName");var tZ=A.prototype;function tq(e){return e}tZ.add=tk,tZ.calendar=function(e,a){if(1==arguments.length){if(arguments[0]){var d,u,c;(d=arguments[0],x(d)||s(d)||tE(d)||l(d)||(u=i(d),c=!1,u&&(c=0===d.filter(function(e){return!l(e)&&tE(d)}).length),u&&c)||function(e){var t,i,a=o(e)&&!r(e),l=!1,s=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],d=s.length;for(t=0;t<d;t+=1)i=s[t],l=l||n(e,i);return a&&l}(d)||null==d)?(e=arguments[0],a=void 0):function(e){var t,i,a=o(e)&&!r(e),l=!1,s=["sameDay","nextDay","lastDay","nextWeek","lastWeek","sameElse"];for(t=0;t<s.length;t+=1)i=s[t],l=l||n(e,i);return a&&l}(arguments[0])&&(a=arguments[0],e=void 0)}else e=void 0,a=void 0}var p=e||tr(),m=tv(p,this).startOf("day"),h=t.calendarFormat(this,m)||"s
1ameElse",f=a&&(k(a[h])?a[h].call(this,p):a[h]);return this.format(f||this.localeData().calendar(h,this,tr(p)))},tZ.clone=function(){return new A(this)},tZ.diff=function(e,t,i){var o,n,r;if(!this.isValid()||!(o=tv(e,this)).isValid())return NaN;switch(n=(o.utcOffset()-this.utcOffset())*6e4,t=L(t)){case"year":r=tP(this,o)/12;break;case"month":r=tP(this,o);break;case"quarter":r=tP(this,o)/3;break;case"second":r=(this-o)/1e3;break;case"minute":r=(this-o)/6e4;break;case"hour":r=(this-o)/36e5;break;case"day":r=(this-o-n)/864e5;break;case"week":r=(this-o-n)/6048e5;break;default:r=this-o}return i?r:ec(r)},tZ.endOf=function(e){var i,o;if(void 0===(e=L(e))||"millisecond"===e||!this.isValid())return this;switch(o=this._isUTC?tj:tN,e){case"year":i=o(this.year()+1,0,1)-1;break;case"quarter":i=o(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":i=o(this.year(),this.month()+1,1)-1;break;case"week":i=o(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":i=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":i=o(this.year(),this.month(),this.date()+1)-1;break;case"hour":i=this._d.valueOf(),i+=36e5-((i+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5-1;break;case"minute":i=this._d.valueOf(),i+=6e4-(i%6e4+6e4)%6e4-1;break;case"second":i=this._d.valueOf(),i+=1e3-(i%1e3+1e3)%1e3-1}return this._d.setTime(i),t.updateOffset(this,!0),this},tZ.format=function(e){e||(e=this.isUtc()?t.defaultFormatUtc:t.defaultFormat);var i=M(this,e);return this.localeData().postformat(i)},tZ.from=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||tr(e).isValid())?tx({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tZ.fromNow=function(e){return this.from(tr(),e)},tZ.to=function(e,t){return this.isValid()&&(x(e)&&e.isValid()||tr(e).isValid())?tx({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()},tZ.toNow=function(e){return this.to(tr(),e)},tZ.get=function(e){return k(this[e=L(e)])?this[e]():this},tZ.invalidAt=function(){return p(this).overflow},tZ.isAfter=function(e,t){var i=x(e)?e:tr(e);return!!(this.isValid()&&i.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()>i.valueOf():i.valueOf()<this.clone().startOf(t).valueOf())},tZ.isBefore=function(e,t){var i=x(e)?e:tr(e);return!!(this.isValid()&&i.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()<i.valueOf():this.clone().endOf(t).valueOf()<i.valueOf())},tZ.isBetween=function(e,t,i,o){var n=x(e)?e:tr(e),r=x(t)?t:tr(t);return!!(this.isValid()&&n.isValid()&&r.isValid())&&("("===(o=o||"()")[0]?this.isAfter(n,i):!this.isBefore(n,i))&&(")"===o[1]?this.isBefore(r,i):!this.isAfter(r,i))},tZ.isSame=function(e,t){var i,o=x(e)?e:tr(e);return!!(this.isValid()&&o.isValid())&&("millisecond"===(t=L(t)||"millisecond")?this.valueOf()===o.valueOf():(i=o.valueOf(),this.clone().startOf(t).valueOf()<=i&&i<=this.clone().endOf(t).valueOf()))},tZ.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)},tZ.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)},tZ.isValid=function(){return m(this)},tZ.lang=tD,tZ.locale=tI,tZ.localeData=tO,tZ.max=tl,tZ.min=ta,tZ.parsingFlags=function(){return u({},p(this))},tZ.set=function(e,t){if("object"==typeof e){var i,o=function(e){var t,i=[];for(t in e)n(e,t)&&i.push({unit:t,priority:Z[t]});return i.sort(function(e,t){return e.priority-t.priority}),i}(e=V(e)),r=o.length;for(i=0;i<r;i++)this[o[i].unit](e[o[i].unit])}else if(k(this[e=L(e)]))return this[e](t);return this},tZ.startOf=function(e){var i,o;if(void 0===(e=L(e))||"millisecond"===e||!this.isValid())return this;switch(o=this._isUTC?tj:tN,e){case"year":i=o(this.year(),0,1);break;case"quarter":i=o(this.year(),this.month()-this.month()%3,1);break;case"month":i=o(this.year(),this.month(),1);break;case"week":i=o(this.year(),this.month(),this.date()-this.weekday());break;case"isoWeek":i=o(this.year(),this.month(),this.date()-(this.isoWeekday()-1));break;case"day":case"date":i=o(this.year(),this.month(),this.date());break;case"hour":i=this._d.valueOf(),i-=((i+(this._isUTC?0:6e4*this.utcOffset()))%36e5+36e5)%36e5;break;case"minute":i=this._d.valueOf(),i-=(i%6e4+6e4)%6e4;break;case"second":i=this._d.valueOf(),i-=(i%1e3+1e3)%1e3}return this._d.setTime(i),t.updateOffset(this,!0),this},tZ.subtract=tT,tZ.toArray=function(){return[this.year(),this.month(),this.date(),this.hour(),this.minute(),this.second(),this.millisecond()]},tZ.toObject=function(){return{years:this.year(),months:this.month(),date:this.date(),hours:this.hours(),minutes:this.minutes(),seconds:this.seconds(),milliseconds:this.milliseconds()}},tZ.toDate=function(){return new Date(this.valueOf())},tZ.toISOString=function(e){if(!this.isValid())return null;var t=!0!==e,i=t?this.clone().utc():this;return 0>i.year()||i.year()>9999?M(i,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):k(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+6e4*this.utcOffset()).toISOString().replace("Z",M(i,"Z")):M(i,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}
1,tZ.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e,t,i,o,n="moment",r="";return this.isLocal()||(n=0===this.utcOffset()?"moment.utc":"moment.parseZone",r="Z"),e="["+n+'("]',t=0<=this.year()&&9999>=this.year()?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",o=r+'[")]',this.format(e+t+i+o)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(tZ[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),tZ.toJSON=function(){return this.isValid()?this.toISOString():null},tZ.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},tZ.unix=function(){return Math.floor(this.valueOf()/1e3)},tZ.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},tZ.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},tZ.eraName=function(){var e,t,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return o[e].name;return""},tZ.eraNarrow=function(){var e,t,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return o[e].narrow;return""},tZ.eraAbbr=function(){var e,t,i,o=this.localeData().eras();for(e=0,t=o.length;e<t;++e)if(i=this.clone().startOf("day").valueOf(),o[e].since<=i&&i<=o[e].until||o[e].until<=i&&i<=o[e].since)return o[e].abbr;return""},tZ.eraYear=function(){var e,i,o,n,r=this.localeData().eras();for(e=0,i=r.length;e<i;++e)if(o=r[e].since<=r[e].until?1:-1,n=this.clone().startOf("day").valueOf(),r[e].since<=n&&n<=r[e].until||r[e].until<=n&&n<=r[e].since)return(this.year()-t(r[e].since).year())*o+r[e].offset;return this.year()},tZ.year=ey,tZ.isLeapYear=function(){return ev(this.year())},tZ.weekYear=function(e){return tL.call(this,e,this.week(),this.weekday()+this.localeData()._week.dow,this.localeData()._week.dow,this.localeData()._week.doy)},tZ.isoWeekYear=function(e){return tL.call(this,e,this.isoWeek(),this.isoWeekday(),1,4)},tZ.quarter=tZ.quarters=function(e){return null==e?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)},tZ.month=eT,tZ.daysInMonth=function(){return ew(this.year(),this.month())},tZ.week=tZ.weeks=function(e){var t=this.localeData().week(this);return null==e?t:this.add((e-t)*7,"d")},tZ.isoWeek=tZ.isoWeeks=function(e){var t=eN(this,1,4).week;return null==e?t:this.add((e-t)*7,"d")},tZ.weeksInYear=function(){var e=this.localeData()._week;return ej(this.year(),e.dow,e.doy)},tZ.weeksInWeekYear=function(){var e=this.localeData()._week;return ej(this.weekYear(),e.dow,e.doy)},tZ.isoWeeksInYear=function(){return ej(this.year(),1,4)},tZ.isoWeeksInISOWeekYear=function(){return ej(this.isoWeekYear(),1,4)},tZ.date=tF,tZ.day=tZ.days=function(e){if(!this.isValid())return null!=e?this:NaN;var t,i,o=eA(this,"Day");return null==e?o:(t=e,i=this.localeData(),e="string"!=typeof t?t:isNaN(t)?"number"==typeof(t=i.weekdaysParse(t))?t:null:parseInt(t,10),this.add(e-o,"d"))},tZ.weekday=function(e){if(!this.isValid())return null!=e?this:NaN;var t=(this.day()+7-this.localeData()._week.dow)%7;return null==e?t:this.add(e-t,"d")},tZ.isoWeekday=function(e){if(!this.isValid())return null!=e?this:NaN;if(null==e)return this.day()||7;var t,i=(t=this.localeData(),"string"==typeof e?t.weekdaysParse(e)%7||7:isNaN(e)?null:e);return this.day(this.day()%7?i:i-7)},tZ.dayOfYear=function(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return null==e?t:this.add(e-t,"d")},tZ.hour=tZ.hours=eZ,tZ.minute=tZ.minutes=tU,tZ.second=tZ.seconds=tG,tZ.millisecond=tZ.milliseconds=v,tZ.utcOffset=function(e,i,o){var n,r=this._offset||0;if(!this.isValid())return null!=e?this:NaN;if(null==e)return this._isUTC?r:tg(this);if("string"==typeof e){if(null===(e=tf(er,e)))return this}else 16>Math.abs(e)&&!o&&(e*=60);return!this._isUTC&&i&&(n=tg(this)),this._offset=e,this._isUTC=!0,null!=n&&this.add(n,"m"),r===e||(!i||this._changeInProgress?tC(this,tx(e-r,"m"),1,!1):this._changeInProgress||(this._changeInProgress=!0,t.updateOffset(this,!0),this._changeInProgress=null)),this},tZ.utc=function(e){return this.utcOffset(0,e)},tZ.local=function(e){return this._isUTC&&(this.utcOffset(0,e),this._isUTC=!1,e&&this.subtract(tg(this),"m")),this},tZ.parseZone=function(){if(null!=this._tzm)this.utcOffset(this._tzm,!1,!0);else if("string"==typeof this._i){var e=tf(en,this._i);null!=e?this.utcOffset(e):this.utcOffset(0,!0)}return this},tZ.hasAlignedHourOffset=function(e){return!!this.isValid()&&(e=e?tr(e).utcOffset():0,(this.utcOffset()-e)%60==0)},tZ.isDST=function(){return this.utcOffset()>this.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},tZ.isLocal=function(){return!!this.isValid()&&!this._isUTC},tZ.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},tZ.isUtc=ty,tZ.isUTC=ty,tZ.zoneAbbr=function(){return this._isUTC?"UTC":""},tZ.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},tZ.dates=_("dates accessor is deprecated. Use date instead.",tF),tZ.months=_("months accessor is deprecated. Use month instead",eT),tZ.years=_("years accessor is deprecated. Use year instead",ey),tZ.zone=_("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",function(e,t){return null!=e?("string"!=typeof e&&(e=-e),this.utcOffset(e,t),this):-this.utcOffset()}),tZ.isDSTShifted=_("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",function(){if(!a(this._isDSTShifted))return this._isDSTShifted;var e,t={};return b(t,this),(t=to(t))._a?(e=t._isUTC?c(t._a):tr(t._a),this._isDSTShifted=this.isValid()&&function(e,t,i){var o,n=Math.min(e.length,t.length),r=M
vendor: 8,756 bytes, line 1
1ath.abs(e.length-t.length),a=0;for(o=0;o<n;o++)ep(e[o])!==ep(t[o])&&a++;return a+r}(t._a,e.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted});var tH=E.prototype;function tW(e,t,i,o){var n=eX(),r=c().set(o,t);return n[i](r,e)}function tY(e,t,i){if(l(e)&&(t=e,e=void 0),e=e||"",null!=t)return tW(e,t,i,"month");var o,n=[];for(o=0;o<12;o++)n[o]=tW(e,o,i,"month");return n}function tK(e,t,i,o){"boolean"==typeof e||(i=t=e,e=!1),l(t)&&(i=t,t=void 0),t=t||"";var n,r=eX(),a=e?r._week.dow:0,s=[];if(null!=i)return tW(t,(i+a)%7,o,"day");for(n=0;n<7;n++)s[n]=tW(t,(n+a)%7,o,"day");return s}tH.calendar=function(e,t,i){var o=this._calendar[e]||this._calendar.sameElse;return k(o)?o.call(t,i):o},tH.longDateFormat=function(e){var t=this._longDateFormat[e],i=this._longDateFormat[e.toUpperCase()];return t||!i?t:(this._longDateFormat[e]=i.match(I).map(function(e){return"MMMM"===e||"MM"===e||"DD"===e||"dddd"===e?e.slice(1):e}).join(""),this._longDateFormat[e])},tH.invalidDate=function(){return this._invalidDate},tH.ordinal=function(e){return this._ordinal.replace("%d",e)},tH.preparse=tq,tH.postformat=tq,tH.relativeTime=function(e,t,i,o){var n=this._relativeTime[i];return k(n)?n(e,t,i,o):n.replace(/%d/i,e)},tH.pastFuture=function(e,t){var i=this._relativeTime[e>0?"future":"past"];return k(i)?i(t):i.replace(/%s/i,t)},tH.set=function(e){var t,i;for(i in e)n(e,i)&&(k(t=e[i])?this[i]=t:this["_"+i]=t);this._config=e,this._dayOfMonthOrdinalParseLenient=RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},tH.eras=function(e,i){var o,n,r,a=this._eras||eX("en")._eras;for(o=0,n=a.length;o<n;++o)switch("string"==typeof a[o].since&&(r=t(a[o].since).startOf("day"),a[o].since=r.valueOf()),typeof a[o].until){case"undefined":a[o].until=Infinity;break;case"string":r=t(a[o].until).startOf("day").valueOf(),a[o].until=r.valueOf()}return a},tH.erasParse=function(e,t,i){var o,n,r,a,l,s=this.eras();for(o=0,e=e.toUpperCase(),n=s.length;o<n;++o)if(r=s[o].name.toUpperCase(),a=s[o].abbr.toUpperCase(),l=s[o].narrow.toUpperCase(),i)switch(t){case"N":case"NN":case"NNN":if(a===e)return s[o];break;case"NNNN":if(r===e)return s[o];break;case"NNNNN":if(l===e)return s[o]}else if([r,a,l].indexOf(e)>=0)return s[o]},tH.erasConvertYear=function(e,i){var o=e.since<=e.until?1:-1;return void 0===i?t(e.since).year():t(e.since).year()+(i-e.offset)*o},tH.erasAbbrRegex=function(e){return n(this,"_erasAbbrRegex")||tR.call(this),e?this._erasAbbrRegex:this._erasRegex},tH.erasNameRegex=function(e){return n(this,"_erasNameRegex")||tR.call(this),e?this._erasNameRegex:this._erasRegex},tH.erasNarrowRegex=function(e){return n(this,"_erasNarrowRegex")||tR.call(this),e?this._erasNarrowRegex:this._erasRegex},tH.months=function(e,t){return e?i(this._months)?this._months[e.month()]:this._months[(this._months.isFormat||eS).test(t)?"format":"standalone"][e.month()]:i(this._months)?this._months:this._months.standalone},tH.monthsShort=function(e,t){return e?i(this._monthsShort)?this._monthsShort[e.month()]:this._monthsShort[eS.test(t)?"format":"standalone"][e.month()]:i(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},tH.monthsParse=function(e,t,i){var o,n,r;if(this._monthsParseExact)return eC.call(this,e,t,i);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),o=0;o<12;o++)if(n=c([2e3,o]),i&&!this._longMonthsParse[o]&&(this._longMonthsParse[o]=RegExp("^"+this.months(n,"").replace(".","")+"$","i"),this._shortMonthsParse[o]=RegExp("^"+this.monthsShort(n,"").replace(".","")+"$","i")),i||this._monthsParse[o]||(r="^"+this.months(n,"")+"|^"+this.monthsShort(n,""),this._monthsParse[o]=RegExp(r.replace(".",""),"i")),i&&"MMMM"===t&&this._longMonthsParse[o].test(e)||i&&"MMM"===t&&this._shortMonthsParse[o].test(e)||!i&&this._monthsParse[o].test(e))return o},tH.monthsRegex=function(e){return this._monthsParseExact?(n(this,"_monthsRegex")||eE.call(this),e)?this._monthsStrictRegex:this._monthsRegex:(n(this,"_monthsRegex")||(this._monthsRegex=ea),this._monthsStrictRegex&&e?this._monthsStrictRegex:this._monthsRegex)},tH.monthsShortRegex=function(e){return this._monthsParseExact?(n(this,"_monthsRegex")||eE.call(this),e)?this._monthsShortStrictRegex:this._monthsShortRegex:(n(this,"_monthsShortRegex")||(this._monthsShortRegex=ea),this._monthsShortStrictRegex&&e?this._monthsShortStrictRegex:this._monthsShortRegex)},tH.week=function(e){return eN(e,this._week.dow,this._week.doy).week},tH.firstDayOfYear=function(){return this._week.doy},tH.firstDayOfWeek=function(){return this._week.dow},tH.weekdays=function(e,t){var o=i(this._weekdays)?this._weekdays:this._weekdays[e&&!0!==e&&this._weekdays.isFormat.test(t)?"format":"standalone"];return!0===e?eM(o,this._week.dow):e?o[e.day()]:o},tH.weekdaysMin=function(e){return!0===e?eM(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin},tH.weekdaysShort=function(e){return!0===e?eM(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort},tH.weekdaysParse=function(e,t,i){var o,n,r;if(this._weekdaysParseExact)return ez.call(this,e,t,i);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),o=0;o<7;o++){if(n=c([2e3,1]).day(o),i&&!this._fullWeekdaysParse[o]&&(this._fullWeekdaysParse[o]=RegExp("^"+this.weekdays(n,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[o]=RegExp("^"+this.weekdaysShort(n,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[o]=RegExp("^"+this.weekdaysMin(n,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[o]||(r="^"+this.weekdays(n,"")+"|^"+this.weekdaysShort(n,"")+"|^"+this.weekdaysMin(n,""),this._weekdaysParse[o]=RegExp(r.replace(".",""),"i")),i&&"dddd"===t&&this._fullWeekdaysParse[o].test(e)||i&&"ddd"===t&&this._shortWeekdaysParse[o].test(e))return o;if(i&&"dd"===t&&this._minWeekdaysParse[o].test(e))return o;if(!i&&this._weekdaysParse[o].test(e))return o}},tH.weekdaysRegex=function(e){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||eL.call(this),e)?this._weekdaysStrictRegex:this._weekdaysRegex:(n(this,"_weekdaysRegex")||(this._weekdaysRegex=ea),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)},tH.weekdaysShortRegex=function(e){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||eL.call(this),e)?this._weekdaysShortStrictRegex:this._weekdaysShortRegex:(n(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=ea),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},tH.weekdaysMinRegex=function(e){return this._weekdaysParseExact?(n(this,"_weekdaysRegex")||eL.call(this),e)?this._weekdaysMinStrictRegex:this._weekdaysMinRegex:(n(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=ea),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},tH.isPM=function(e){return"p"===(e+"").toLowerCase().charAt(0)},tH.meridiem=function(e,t,i){return e>11?i?"pm":"PM":i?"am":"AM"},eQ("en",{eras:[{since:"0001-01-01",until:Infinity,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(e){var t=e%10,i=1===ep(e%100/10)?"th":1===t?"st":2===t?"nd":3===t?"rd":"th";return e+i}}),t.lang=_("moment.lang is deprecated. Use moment.locale instead.",eQ),t.langData=_("moment.langData is deprecated. Use moment.localeData instead.",eX);var tQ=Math.abs;function t$(e,t,i,o){var n=tx(t,i);return e._milliseconds+=o*n._milliseconds,e._days+=o*n._days,e._months+=o*n._months,e._bubble()}function tX(e){return e<0?Math.floor(e):Math.ceil(e)}function tJ(e){return 4800*e/146097}function t0(e){return 146097*e/4800}function t1(e){return function(){return this.as(e)}}var t2=t1("ms"),t3=t1("s"),t4=t1("m"),t5=t1("h"),t6=t1("d"),t8=t1("w"),t9=t1("M"),t7=t1("Q"),ie=t1("y");function it(e){return function(){return this.isValid()?this._data[e]:NaN}}var ii=it("milliseconds"),io=it("seconds"),ir=it("minutes"),ia=it("hours"),il=it("days"),is=it("months"),id=it("years"),iu=Math.round,ic={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function ip(e,t,i,o,n){return n.relativeTime(t||1,!!i,e,o)}var im=Math.abs;function ih(e){return(e>0)-(e<0)||+e}function iv(){if(!this.isValid())return this.localeData().invalidDate();var e,t,i,o,n,r,a,l,s=im(this._milliseconds)/1e3,d=im(this._days),u=im(this._months),c=this.asSeconds();return c?(e=ec(s/60),t=ec(e/60),s%=60,e%=60,i=ec(u/12),u%=12,o=s?s.toFixed(3).replace(/\.?0+$/,""):"",n=c<0?"-":"",r=ih(this._months)!==ih(c)?"-":"",a=ih(this._days)!==ih(c)?"-":"",l=ih(this._milliseconds)!==ih(c)?"-":"",n+"P"+(i?r+i+"Y":"")+(u?r+u+"M":"")+(d?a+d+"D":"")+(t||e||s?"T":"")+(t?l
vendor: 4,283 bytes, line 1
1+t+"H":"")+(e?l+e+"M":"")+(s?l+o+"S":"")):"P0D"}var ig=tu.prototype;return ig.isValid=function(){return this._isValid},ig.abs=function(){var e=this._data;return this._milliseconds=tQ(this._milliseconds),this._days=tQ(this._days),this._months=tQ(this._months),e.milliseconds=tQ(e.milliseconds),e.seconds=tQ(e.seconds),e.minutes=tQ(e.minutes),e.hours=tQ(e.hours),e.months=tQ(e.months),e.years=tQ(e.years),this},ig.add=function(e,t){return t$(this,e,t,1)},ig.subtract=function(e,t){return t$(this,e,t,-1)},ig.as=function(e){if(!this.isValid())return NaN;var t,i,o=this._milliseconds;if("month"===(e=L(e))||"quarter"===e||"year"===e)switch(t=this._days+o/864e5,i=this._months+tJ(t),e){case"month":return i;case"quarter":return i/3;case"year":return i/12}else switch(t=this._days+Math.round(t0(this._months)),e){case"week":return t/7+o/6048e5;case"day":return t+o/864e5;case"hour":return 24*t+o/36e5;case"minute":return 1440*t+o/6e4;case"second":return 86400*t+o/1e3;case"millisecond":return Math.floor(864e5*t)+o;default:throw Error("Unknown unit "+e)}},ig.asMilliseconds=t2,ig.asSeconds=t3,ig.asMinutes=t4,ig.asHours=t5,ig.asDays=t6,ig.asWeeks=t8,ig.asMonths=t9,ig.asQuarters=t7,ig.asYears=ie,ig.valueOf=t2,ig._bubble=function(){var e,t,i,o,n,r=this._milliseconds,a=this._days,l=this._months,s=this._data;return r>=0&&a>=0&&l>=0||r<=0&&a<=0&&l<=0||(r+=864e5*tX(t0(l)+a),a=0,l=0),s.milliseconds=r%1e3,e=ec(r/1e3),s.seconds=e%60,t=ec(e/60),s.minutes=t%60,i=ec(t/60),s.hours=i%24,a+=ec(i/24),l+=n=ec(tJ(a)),a-=tX(t0(n)),o=ec(l/12),l%=12,s.days=a,s.months=l,s.years=o,this},ig.clone=function(){return tx(this)},ig.get=function(e){return e=L(e),this.isValid()?this[e+"s"]():NaN},ig.milliseconds=ii,ig.seconds=io,ig.minutes=ir,ig.hours=ia,ig.days=il,ig.weeks=function(){return ec(this.days()/7)},ig.months=is,ig.years=id,ig.humanize=function(e,t){if(!this.isValid())return this.localeData().invalidDate();var i,o,n,r,a,l,s,d,u,c,p,m,h,f=!1,v=ic;return"object"==typeof e&&(t=e,e=!1),"boolean"==typeof e&&(f=e),"object"==typeof t&&(v=Object.assign({},ic,t),null!=t.s&&null==t.ss&&(v.ss=t.s-1)),m=this.localeData(),i=!f,o=v,n=tx(this).abs(),r=iu(n.as("s")),a=iu(n.as("m")),l=iu(n.as("h")),s=iu(n.as("d")),d=iu(n.as("M")),u=iu(n.as("w")),c=iu(n.as("y")),p=r<=o.ss&&["s",r]||r<o.s&&["ss",r]||a<=1&&["m"]||a<o.m&&["mm",a]||l<=1&&["h"]||l<o.h&&["hh",l]||s<=1&&["d"]||s<o.d&&["dd",s],null!=o.w&&(p=p||u<=1&&["w"]||u<o.w&&["ww",u]),(p=p||d<=1&&["M"]||d<o.M&&["MM",d]||c<=1&&["y"]||["yy",c])[2]=i,p[3]=+this>0,p[4]=m,h=ip.apply(null,p),f&&(h=m.pastFuture(+this,h)),m.postformat(h)},ig.toISOString=iv,ig.toString=iv,ig.toJSON=iv,ig.locale=tI,ig.localeData=tO,ig.toIsoString=_("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",iv),ig.lang=tD,j("X",0,0,"unix"),j("x",0,0,"valueOf"),ed("x",eo),ed("X",/[+-]?\d+(\.\d{1,3})?/),eh("X",function(e,t,i){i._d=new Date(1e3*parseFloat(e))}),eh("x",function(e,t,i){i._d=new Date(ep(e))}),t.version="2.30.1",F=tr,t.fn=tZ,t.min=function(){var e=[].slice.call(arguments,0);return ts("isBefore",e)},t.max=function(){var e=[].slice.call(arguments,0);return ts("isAfter",e)},t.now=function(){return Date.now?Date.now():+new Date},t.utc=c,t.unix=function(e){return tr(1e3*e)},t.months=function(e,t){return tY(e,t,"months")},t.isDate=s,t.locale=eQ,t.invalid=h,t.duration=tx,t.isMoment=x,t.weekdays=function(e,t,i){return tK(e,t,i,"weekdays")},t.parseZone=function(){return tr.apply(null,arguments).parseZone()},t.localeData=eX,t.isDuration=tc,t.monthsShort=function(e,t){return tY(e,t,"monthsShort")},t.weekdaysMin=function(e,t,i){return tK(e,t,i,"weekdaysMin")},t.defineLocale=e$,t.updateLocale=function(e,t){if(null!=t){var i,o,n=eq;null!=eH[e]&&null!=eH[e].parentLocale?eH[e].set(T(eH[e]._config,t)):(null!=(o=eK(e))&&(n=o._config),t=T(n,t),null==o&&(t.abbr=e),(i=new E(t)).parentLocale=eH[e],eH[e]=i),eQ(e)}else null!=eH[e]&&(null!=eH[e].parentLocale?(eH[e]=eH[e].parentLocale,e===eQ()&&eQ(e)):null!=eH[e]&&delete eH[e]);return eH[e]},t.locales=function(){return G(eH)},t.weekdaysShort=function(e,t,i){return tK(e,t,i,"weekdaysShort")},t.normalizeUnits=L,t.relativeTimeRounding=function(e){return void 0===e?iu:"function"==typeof e&&(iu=e,!0)},t.relativeTimeThreshold=function(e,t){return void 0!==ic[e]&&(void 0===t?ic[e]:(ic[e]=t,"
1s"===e&&(ic.ss=t-1),!0))},t.calendarFormat=function(e,t){var i=e.diff(t,"days",!0);return i<-6?"sameElse":i<-1?"lastWeek":i<0?"lastDay":i<1?"sameDay":i<2?"nextDay":i<7?"nextWeek":"sameElse"},t.prototype=tZ,t.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},t},e.exports=o()},83454:function(e,t,i){"use strict";var o,n;e.exports=(null==(o=i.g.process)?void 0:o.env)&&"object"==typeof(null==(n=i.g.process)?void 0:n.env)?i.g.process:i(77663)},6840:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/_app",function(){return i(92398)}])},86486:function(e,t,i){"use strict";var o=i(85893),n=i(46321),r=i(67294),a=i(5405),l=i(37894),s=i(20468),d=i(85242),u=i(20333),c=i(90549),p=i(91167),m=i(41664),h=i.n(m),f=i(87251),v=i(27524),g=i(6627),y=i(38882);let b=a.ZP.div.withConfig({componentId:"sc-c6edc70d-0"})(["max-width:776px;min-width:776px;padding:40px;border-radius:16px;background-color:var(--shade);@media (max-width:768px){max-width:100%;min-width:100%;padding:24px;}"]),A=a.ZP.span.attrs({className:"heading-5"}).withConfig({componentId:"sc-c6edc70d-1"})(["color:var(--ph-color);"]),x=a.ZP.div.attrs({className:"flex items-center gap-2"}).withConfig({componentId:"sc-c6edc70d-2"})(['cursor:pointer;background:radial-gradient( 30% 85% at 100% 100%,rgba(26,26,26,1) 0,rgba(206,211,251,0.4) 0,rgba(206,211,251,0) 100% );padding:1.5rem;border:2px solid #ced3fb4d;border-radius:1rem;transition:all 0.2s ease-in-out;&[data-selected="true"]{border-color:var(--secondary-color);}@media (max-width:768px){padding:1rem 12px;border-radius:0.625rem;}[lang="ar"] &{background:radial-gradient( 100% 100% at -48% 100%,rgba(26,26,26,1) 0,rgba(206,211,251,0.4) 0,rgba(206,211,251,0) 100% );}']),w=(0,a.ZP)(d.Z).withConfig({componentId:"sc-c6edc70d-3"})(['padding:0px;[data-theme="light"] &{background-color:var(--shade-2) !important;}@media (max-width:768px){width:24px;height:24px;& svg{width:12px !important;height:12px !important;}}']),_=a.ZP.div.withConfig({componentId:"sc-c6edc70d-4"})(["width:280px;height:497px;border-radius:24px;overflow:hidden;background-color:#000000;@media (max-width:768px){aspect-ratio:9/16;width:auto;height:calc(100vh - 500px);}"]),S=(0,a.ZP)(p.Z).withConfig({componentId:"sc-c6edc70d-5"})(["padding:12px 24px;"]),C=(0,a.ZP)(n.Z).withConfig({componentId:"sc-c6edc70d-6"})(["svg{width:24px !important;height:24px !important;}@media (max-width:768px){svg{width:16px !important;height:16px !important;}}"]);t.Z=()=>{let e=(0,f.Z)(),{isSubscribed:t}=(0,c.Z)(),{trackToolFlowSelected:i}=(0,g.G)("ai shorts"),{language:a}=r.useContext(v.AZ),[d,p]=r.useState(l.B.AI_TEXT_TO_VIDEO),m=r.useMemo(()=>s.ZP.videosOptionsPopup.find(e=>e.value===d),[d]),k=r.useCallback(e=>{d!==e&&(p(e),i(e,{entry_point:"popup"}))},[d]),T=r.useCallback(()=>{i(d,{entry_point:"popup_confirmed"})},[d]),E=r.useMemo(()=>{var e,t;return(null==m?void 0:null===(e=m.video)||void 0===e?void 0:e[a])||(null==m?void 0:null===(t=m.video)||void 0===t?void 0:t.en)},[m,a]);return(0,o.jsxs)(b,{children:[(0,o.jsx)(A,{children:e.videosOptionsPopup.title}),(0,o.jsxs)("div",{className:"flex flex-col-reverse  md:flex-row gap-6 md:gap-14 mt-6",children:[(0,o.jsxs)("div",{className:"md:max-w-[360px] w-full flex flex-col",children:[(0,o.jsx)("div",{className:"space-y-5",children:s.ZP.videosOptionsPopup.map(e=>(0,o.jsxs)(x,{"data-selected":d===e.value,onClick:()=>k(e.value),className:"relative",children:[e.isPaid&&!t&&(0,o.jsx)("div",{className:"absolute top-5 md:top-4 right-4 z-20",children:(0,o.jsx)(C,{src:"/icons/crown-gold.svg",width:"24px",height:"24px",stroke:"none"})}),(0,o.jsxs)("div",{className:"flex items-center md:items-start gap-4",children:[(0,o.jsx)(w,{size:"small",type:"shade",style:{padding:"0px",backgroundColor:"#FFFFFF14",borderRadius:8},children:(0,o.jsx)("div",{className:"flex items-center justify-center w-full h-full",children:(0,o.jsx)(n.Z,{src:e.icon,width:20,height:20,fill:"var(--main-tools-color)"})})}),(0,o.jsxs)("div",{className:"flex flex-col gap-1 flex-1",children:[(0,o.jsx)("span",{className:"text-sm md:text-base text-main-tools-color font-bold",dangerouslySetInnerHTML:{__html:e.title[a]}}),(0,o.jsx)("span",{className:"text-xs leading-5 text-main-tools-color md:block hidden",children:e.description[a]})]})]})]},e.value))}),(0,o.jsx)("div",{className:"mt-6 md:mt-auto",children:(0,o.jsx)(h(),{href:(0,y.WB)((null==m?void 0:m.link)||"",y.LK.POPUP),prefetch:!1,onClick:T,children:(0,o.jsx)(S,{size:"small",type:"secondary",className:"ml-auto w-full md:w-auto",children:(0,o.jsx)("span",{className:"text-sm",children:e.global.continue})})})})]}),(0,o.jsx)("div",{className:"flex-1",children:(0,o.jsx)(_,{className:"mx-auto flex items-center justify-center",children:(0,o.jsx)(u.Z,{src:E,type:(null==E?void 0:E.includes("mp4"))?"video/mp4":"video/webm",autoPlay:!0,muted:!0,loop:!0,playsInl
1ine:!0},E)})})]})]})}},68027:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(14869);t.Z=e=>{let{children:t,visible:i=!0,animation:a="fade",duration:l=300,delay:s=0,springConfig:d,className:u="",animateOnMount:c=!0,customFrom:p,customTo:m,style:h}=e,[f,v]=(0,n.useState)(!1);(0,n.useEffect)(()=>{c&&v(!0)},[c]);let g=(()=>{if(p&&m)return{from:p,to:m};switch(a){case"fade":default:return{from:{opacity:0},to:{opacity:1}};case"slideUp":return{from:{opacity:0,transform:"translateY(20px)"},to:{opacity:1,transform:"translateY(0px)"}};case"slideDown":return{from:{opacity:0,transform:"translateY(-20px)"},to:{opacity:1,transform:"translateY(0px)"}};case"slideLeft":return{from:{opacity:0,transform:"translateX(20px)"},to:{opacity:1,transform:"translateX(0px)"}};case"slideRight":return{from:{opacity:0,transform:"translateX(-20px)"},to:{opacity:1,transform:"translateX(0px)"}};case"scale":return{from:{opacity:0,transform:"scale(0.8)"},to:{opacity:1,transform:"scale(1)"}};case"bounce":return{from:{opacity:0,transform:"scale(0.9)"},to:{opacity:1,transform:"scale(1)"}};case"rotate":return{from:{opacity:0,transform:"rotate(-180deg)"},to:{opacity:1,transform:"rotate(0deg)"}};case"fade-low":return{from:{opacity:.5},to:{opacity:1}}}})(),y=(0,r.q_)({...g,config:d||{duration:l},delay:s,immediate:!i&&!f});return f?(0,o.jsx)(r.q.div,{className:u,style:{...y,...h},children:t}):(0,o.jsx)("div",{className:u,children:t})}},34567:function(e,t,i){"use strict";i.d(t,{ZP:function(){return o.Z}});var o=i(68027);i(85893),i(67294),i(14869)},16135:function(e,t,i){"use strict";i.d(t,{Z:function(){return ex}});var o={};i.r(o),i.d(o,{addTrackers:function(){return V},default:function(){return X},event:function(){return W},exception:function(){return Y},ga:function(){return U},initialize:function(){return F},modalview:function(){return q},outboundLink:function(){return Q},pageview:function(){return Z},plugin:function(){return K},send:function(){return B},set:function(){return G},testModeAPI:function(){return $},timing:function(){return H}});var n=i(85893),r=i(67294),a=i(45697),l=i.n(a);function s(e){console.warn("[react-ga]",e)}function d(e){return(d="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var u=["to","target"];function c(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,o)}return i}function p(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?c(Object(i),!0).forEach(function(t){v(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):c(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function m(e,t){return(m=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}function h(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e){return(f=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var g="_blank",y=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m(e,t)}(n,e);var t,i,o=(t=function(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}(),function(){var e,i=f(n);return e=t?Reflect.construct(i,arguments,f(this).constructor):i.apply(this,arguments),function(e,t){if(t&&("object"===d(t)||"function"==typeof t))return t;if(void 0!==t)throw TypeError("Derived constructors may only return object or undefined");return h(e)}(this,e)});function n(){var e;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,n);for(var t=arguments.length,i=Array(t),r=0;r<t;r++)i[r]=arguments[r];return v(h(e=o.call.apply(o,[this].concat(i))),"handleClick",function(t){var i=e.props,o=i.target,r=i.eventLabel,a=i.to,l=i.onClick,s=i.trackerNames,d={label:r},u=!(t.ctrlKey||t.shiftKey||t.metaKey||1===t.button);o!==g&&u?(t.preventDefault(),n.trackLink(d,function(){window.location.href=a}
1,s)):n.trackLink(d,function(){},s),l&&l(t)}),e}return i=[{key:"render",value:function(){var e=this.props,t=e.to,i=e.target,o=p(p({},function(e,t){if(null==e)return{};var i,o,n=function(e,t){if(null==e)return{};var i,o,n={},r=Object.keys(e);for(o=0;o<r.length;o++)i=r[o],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}(e,u)),{},{target:i,href:t,onClick:this.handleClick});return i===g&&(o.rel="".concat(o.rel?o.rel:""," noopener noreferrer").trim()),delete o.eventLabel,delete o.trackerNames,r.createElement("a",o)}}],function(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(n.prototype,i),Object.defineProperty(n,"prototype",{writable:!1}),n}(r.Component);function b(e){return e&&e.toString().replace(/^\s+|\s+$/g,"")}v(y,"trackLink",function(){s("ga tracking not enabled")}),y.propTypes={eventLabel:l().string.isRequired,target:l().string,to:l().string,onClick:l().func,trackerNames:l().arrayOf(l().string)},y.defaultProps={target:null,to:null,onClick:null,trackerNames:null};var A=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i,x=!1;function w(e){console.info("[react-ga]",e)}var _=[],S={calls:_,ga:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];_.push([].concat(t))},resetCalls:function(){_.length=0}},C=["category","action","label","value","nonInteraction","transport"];function k(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,o)}return i}function T(e){return(T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function E(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,o=Array(t);i<t;i++)o[i]=e[i];return o}var P="undefined"==typeof window||"undefined"==typeof document,I=!1,D=!0,O=!1,N=!0,j=!0,M=function(){var e;return O?S.ga.apply(S,arguments):!P&&(window.ga?(e=window).ga.apply(e,arguments):s("ReactGA.initialize must be called first or GoogleAnalytics should be loaded manually"))};function R(e){return function(){var e,t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",o=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=!(arguments.length>2)||void 0===arguments[2]||arguments[2],r=i||"";return o&&(r=b(i).replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(e,t,i){return t>0&&t+e.length!==i.length&&e.search(A)>-1&&":"!==i.charAt(t-2)&&("-"!==i.charAt(t+e.length)||"-"===i.charAt(t-1))&&0>i.charAt(t-1).search(/[^\s-]/)?e.toLowerCase():e.substr(1).search(/[A-Z]|\../)>-1?e:e.charAt(0).toUpperCase()+e.substr(1)})),n&&(r="string"==typeof(t=e=r)&&-1!==t.indexOf("@")?(s("This arg looks like an email address, redacting."),"REDACTED (Potential Email Address)"):e),r}(e,D,j)}function z(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];var n=i[0];if("function"==typeof M){if("string"!=typeof n){s("ga command must be a string");return}(N||!Array.isArray(e))&&M.apply(void 0,i),Array.isArray(e)&&e.forEach(function(e){var t;M.apply(void 0,function(e){if(Array.isArray(e))return E(e)}(t=["".concat(e,".").concat(n)].concat(i.slice(1)))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||function(e,t){if(e){if("string"==typeof e)return E(e,void 0);var i=Object.prototype.toString.call(e).slice(8,-1);if("Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i)return Array.from(e);if("Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i))return E(e,void 0)}}(t)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())})}}function L(e,t){if(!e){s("gaTrackingID is required in initialize()");return}t&&(t.debug&&!0===t.debug&&(I=!0),!1===t.titleCase&&(D=!1),!1===t.redactEmail&&(j=!1),t.useExistingGa)||(t&&t.gaOptions?M("create",e,t.gaOptions):M("create",e,"auto"))}function V(e,t){return Array.isArray(e)?e.forEach(function(e){if("object"!==T(e)){s("All configs must be an object");return}L(e.trackingId,e)}):L(e,t),!0}function F(e,t){if(t&&!0===t.testMode)O=!0;else{if(P)return;t&&!0===t.standardImplementation||function(e){if(!x){x=!0;var t,i,o,n,r,a,l="https://www.google-analytics.com/analytics.js";e&&e.gaAddress?l=e.gaAddress:e&&e.debug&&(l="https://www.google-analytics.com/analytics_debug.js");var s=e&&e.onerror;t=window,i=document,o="script",n=l,t.GoogleAnalyticsObject="ga",t.ga=t.ga||function(){(t.ga.q=t.ga.q||[]).push(arguments)},t.ga.l=1*new Date,r=i.createElement(o),a=i.getElementsByTagName(o)[0],r.async=1,r.src=n,r.onerror=s,a.parentNode.insertBefore(r,a)}}(t)}N=!t||"boolean"!=typeof t.alwaysSendToDefaultTracker||t.alwaysSendToDefaultTracker,V(e,t)}function U(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return t.length>0&&(M.apply(void 0,t),I&&(w("called ga('arguments');"),w("with arguments: ".concat(JSON.stringify(t))))),window.ga}function G(e,t){if(!e){s("`fieldsObject` is required in .set()");return}if("object"!==T(e)){s("Expected `fieldsObject` arg to be an Object");return}0===Object.keys(e).length&&s("empty `fieldsObject` given to .set()"),z(t,"set",e),I&&(w("called ga('set', fieldsObject);"),w("with fieldsObject: ".concat(JSON.stringify(e))))}function B(e,t){z(t,"send",e),I&&(w("called ga('send', fieldObject);"),w("with fieldObject: ".concat(JSON.stringify(e))),w("with trackers: ".concat(JSON.stringify(t))))}function Z(e,t,i){if(!e){s("path is required in .pageview()");return}var o=b(e);if(""===o){s("path cannot be an empty string in .pageview()");return}var n={};if(i&&(n.title=i),z(t,"send",function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?k(Object(i),!0).forEach(function(t){var o;o=i[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):k(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({hitType:"pageview",page:o},n)),I){w("called ga('send', 'pageview', path);");var r="";i&&(r=" and title: ".concat(i)),w("with path: ".concat(o).concat(r))}}function q(e,t){if(!e){s("modalName is required in .modalview(modalName)");return}var i,o="/"===(i=b(e)).substring(0,1)?i.substring(1):i;if(""===o){s("modalName cannot be an empty string or a single / in .modalview()");return}var n="/modal/".concat(o);z(t,"send","pageview",n),I&&(w("called ga('send', 'pageview', path);"),w("with path: ".concat(n)))}function H(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,i=e.variable,o=e.value,n=e.label,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!t||!i||"number"!=typeof o){s("args.category, args.variable AND args.value are required in timing() AND args.value has to be a number");return}var a={hitType:"timing",timingCategory:R(t),timingVar:R(i),timingValue:o};n&&(a.timingLabel=R(n)),B(a,r)}function W(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.category,i=e.action,o=e.label,n=e.value,r=e.nonInteraction,a=e.transport,l=function(e,t){if(null==e)return{};var i,o,n=function(e,t){if(null==e)return{};var i,o,n={},r=Object.keys(e);for(o=0;o<r.length;o++)i=r[o],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}(e,C),d=arguments.length>1&&void 0!==arguments[1]?arguments[1]:void 0;if(!t||!i){s("args.category AND args.action are required in event()");return}var u={hitType:"event",eventCategory:R(t),eventAction:R(i)};o&&(u.eventLabel=R(o)),void 0!==n&&("number"!=typeof n?s("Expected `args.value` arg to be a Number."):u.eventValue=n),void 0!==r&&("boolean"!=typeof r?s("`args.nonInteraction` must be a boolean."):u.nonInteraction=r),void 0!==a&&("string"!=typeof a?s("`args.transport` must be a string."):(-1===["beacon","xhr","image"].indexOf(a)&&s("`args.transport` must be either one of these values: `beacon`, `xhr` or `image`"),u.transport=a)),Object.keys(l).filter(function(e){return"dimension"===e.substr(0,9)}).forEach(function(e){u[e]=l[e]}),Object.keys(l).filter(function(e){return"metric"===e.substr(0,6)}).forEach(function(e){u[e]=l[e]}),B(u,d)}function Y(e,t){var i=e.description,o=e.fatal,n={hitType:"exception"};i&&(n.exDescription=R(i)),void 0!==o&&("boolean"!=typeof o?s("`args.fatal` must be a boolean."):n.exFatal=o),B(n,t)}var K={require:function(e,t,i){if(!e){s("`name` is required in .require()");return}var o=b(e);if(""===o){s("`name` cannot be an empty string in .require()");return}var n=i?"".concat(i,".require"):"require";if(t){if("object"!==T(t)){s("Expected `options` arg to be an Object");return}0===Object.keys(t).length&&s("Empty `options` given to .require()"),U(n,o,t),I&&w("called ga('require', '".concat(o,"', ").concat(JSON.stringify(t)))}else U(n,o),I&&w("called ga('require', '".concat(o,"');"))},execute:function(e,t){for(var i,o,n=arguments.length,r=Array(n>2?n-2:0),a=2;a<n;a++)r[a-2]=arguments[a];if(1===r.length?i=r[0]:(o=r[0],i=r[1]),"string"!=typeof e)s("Expected `pluginName` arg to be a String.");else if("string"!=typeof t)s("Expected `action` arg to be a String.");else{var l="".concat(e,":").concat(t);i=i||null,o&&i?(U(l,o,i),I&&(w("called ga('".concat(l,"');")),w('actionType: "'.concat(o,'" with payload: ').concat(JSON.stringify(i))))):i?(U(l,i),I&&(w("called ga('".concat(l,"');")),w("with payload: ".concat(JSON.stringify(i))))):(U(l),I&&w("called ga('".concat(l,"');")))}}};function Q(e,t,i){if("function"!=typeof t){s("hitCallback function is required");return}if(!e||!e.label){s("args.label is required in outboundLink()");return}var o={hitType:"event",eventCategory:"Outbound",eventAction:"Click",eventLabel:R(e.label)},n=!1,r=setTimeout(function(){n=!0,t()},250);o.hitCallback=function(){clearTimeout(r),n||t()},B(o,i)}var $=S,X={initialize:F,ga:U,set:G,send:B,pageview:Z,modalview:q,timing:H,event:W,exception:Y,plugin:K,outboundLink:Q,testModeAPI:S};function J(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,o)}return i}function ee(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?J(Object(i),!0).forEach(function(t){var o;o=i[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):J(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}y.origTrackLink=y.trackLink,y.trackLink=Q;var et=ee(ee({},o),{},{OutboundLink:y}),ei=i(48421);let eo=i(5405).ZP.input.withConfig({componentId:"sc-7034ddc2-0"})(["padding:0.5em;border:1px solid var(--shade-2);border-radius:8px;width:56px;aspect-ratio:1/1;background-color:var(--shade-2);outline:none;font-size:20px;color:var(--white-80-color);&:focus{border-color:var(--secondary-color);}@media (max-width:425px){width:40px;font-size:16px;}"]);var en=e=>{let{length:t,value:i,onChange:o}=e,[a,l]=r.useState(Array(t).fill("")),s=(e,i)=>{let n=[...a];n[i]=e;let r=n.map(e=>e.toLowerCase());if(l(r),o(r.join("")),e&&i<t-1){let e=document.querySelector("input:nth-of-type(".concat(i+2,")"));e&&(e.focus(),e.select())}},d=e=>{null==e||e.preventDefault(),null==e||e.stopPropagation();let i=e.clipboardData.getData("Text");if(i.length===t){let e=i.split("");l(e),o(e.join(""));let n=document.querySelector("input:nth-of-type(".concat(t,")"));n&&(n.focus(),n.select())}};return r.useEffect(()=>{i||l(Array(t).fill(""))},[i]),(0,n.jsx)("div",{className:"flex gap-2 md:gap-4",dir:"ltr",children:a.map((e,t)=>(0,n.jsx)(eo,{type:"text",maxLength:1,value:e,onChange:e=>s(e.target.value,t),onPaste:d,style:{textAlign:"center"},autoFocus:0===t},t))})},er=i(46321),ea=i(20931),el=i(64242),es=i(87251),ed=i(64125),eu=()=>({verifyEmailAddress:r.useCallback(async e=>new Promise((t,i)=>{ed.i.verification.verify(e,e=>{t(e)},e=>{i(e)})}),[]),resendOtpCode:r.useCallback(async e=>new Promise((t,i)=>{ed.i.verification.resend(e,e=>{t(e)},e=>{i(e)})}),[])}),ec=i(78139),ep=i(11163),em=i(96946),eh=i(82821),ef=i(3174),ev=i(56611),eg=i(90238),ey=i(71494),eb=i(37803),eA=i(27637),ex=e=>{let{email:t,token:i,onVerificationSuccess:o,onSwitchToSignup:a,redirectTo:l}=e,s=(0,ep.useRouter)(),d=(0,es.Z)(),[u,c]=r.useState(Object),[p,m]=r.useState(String),{resendOtpCode:h,verifyEmailAddress:f}=eu(),{loginRegisterSuccess:v}=r.useContext(el.Vo),[g,y]=r.useState(String),[b,A]=r.useState(String),{mutate:x}=(0,ev.K)(),w=r.useRef(Date.now()),_=r.useMemo(()=>(null==b?void 0:b.length)===6,[b]),S=async()=>{var e,n,r;if((null==u||!u.resend)&&(null==u||!u.verify)){g&&y(""),b&&A(""),(0,eb.u)("resend_verification_code",{cta_type:"secondary",button_text:d.verification.resend,page_name:s.pathname}),c(e=>({...e,resend:!0}));try{let r=await h({token:i});m(d.verification.resendSuccess),(null==r?void 0:null===(e=r.data)||void 0===e?void 0:e.token)&&!o&&s.replace({pathname:ea.Z6.VERIFICATION,query:{...(0,eA.Zu)(s.query),email:t,token:null==r?void 0:null===(n=r.data)||void 0===n?void 0:n.token}})}catch(e){p&&m(""),y(null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.message)}finally{c(e=>({...e,resend:!1}))}}},C=async()=>{var e,n,r,a;if((null==u||!u.resend)&&(null==u||!u.verify)&&_){g&&y(""),(0,eb.u)("verify_email_submit",{cta_type:"primary",button_text:d.verification.verify,page_name:s.pathname}),c(e=>({...e,verify:!0}));try{let a=await f({token:i,code:b.toLowerCase()}),d=v(null==a?void 0:a.data);if(ec.Z.identify({customId:t}),null==a?void 0:null===(e=a.data)||void 0===e?void 0:e.user_id){let e=new Date().toISOString(),i=window.innerWidth<768?"mobile":"desktop",o=Math.round((Date.now()-w.current)/1e3);eg.ZP.identify(String(a.data.user_id),{$email:t,signup_method:"email",email_verified:!0,user_type:"new",signup_date:e,subscription_status:"inactive",lifecycle_stage:"pre_subscription",plan_name:"free"}),eg.ZP.setUserPropertyOnce({signup_date:e,signup_method:"email"}),eg.ZP.track(ey.n5.EMAIL_VERIFIED,{method:"otp",user_type:"new",verification_time_sec:o}),eg.ZP.track(ey.n5.SIGN_UP_COMPLETED,{login_method:"email",signup_source:"email",user_type:"new",platform:i,plan_name:"free"})}(null==a?void 0:null===(n=a.data)||void 0===n?void 0:n.user_id)&&x({event_name:"CompleteRegistration",event_id:"signup_".concat(String(a.data.user_id
1))}),ef.Z.track("SIGN_UP"),et.event({category:"User",action:"Created an Account",label:"User created, User_id: ".concat(null==a?void 0:a.data.user_id)}),await d,o?o():(0,eA.oI)(l||(null==s?void 0:null===(r=s.query)||void 0===r?void 0:r.redirectTo),ea.P2.STUDIO_AI_MAIN,s.locale)}catch(e){p&&m(""),y(null==e?void 0:null===(a=e.data)||void 0===a?void 0:a.message)}finally{c(e=>({...e,verify:!1}))}}};return(0,n.jsxs)("div",{className:"flex flex-col gap-14",children:[(0,n.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,n.jsx)(er.Z,{src:"/icons/sms-tracking.svg",width:40,height:40,fill:"var(--custom-white)"}),(0,n.jsx)("h1",{className:"text-[32px] text-center font-barlow-condensed font-semibold uppercase text-custom-white",children:d.verification.title})]}),(0,n.jsxs)("div",{className:"grid gap-10",children:[(0,n.jsxs)("p",{className:"text-t-shade-2 text-center flex flex-col gap-2",children:[(0,n.jsxs)("span",{children:[d.verification.description,(0,n.jsxs)("span",{className:"text-ph-color",children:[t," "]}),(0,n.jsx)("a",{href:(0,eA.mt)(ea.Z6.SIGNUP,{...(0,eA.Zu)(s.query),email:t}),onClick:e=>{e.preventDefault();let i={...(0,eA.Zu)(s.query),email:t};(0,eb.u)("change_email",{cta_type:"secondary",button_text:d.verification.change,page_name:s.pathname,cta_url:(0,eA.mt)(ea.Z6.SIGNUP,i)}),a?a():s.push({pathname:ea.Z6.SIGNUP,query:i})},className:"text-secondary underline cursor-pointer text-sm",children:d.verification.change})]}),(0,n.jsxs)("span",{className:"text-ph-color text-xs opacity-70",children:["(",d.verification.checkSpam,")"]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-8 items-center",children:[(0,n.jsxs)("div",{className:"grid gap-4",children:[(0,n.jsx)(en,{length:6,onChange:e=>{g&&y(""),A(e)},value:b}),p&&(0,n.jsxs)("div",{className:"flex items-center gap-1.5 mx-auto",children:[(0,n.jsx)(er.Z,{src:"/icons/tick-circle.svg",width:16,height:16,stroke:"#4B9631CC"}),(0,n.jsx)("span",{className:"text-[#4B9631CC] text-sm",children:p})]}),g&&(0,n.jsx)(em.Z,{rootClassName:"mt-2 text-center text-sm",errorMessage:g})]}),(0,n.jsxs)("span",{className:"small-text text-white-80 flex flex-wrap items-center justify-center gap-1",children:[(0,n.jsx)("span",{children:d.verification.didntReceive}),(0,n.jsx)("div",{role:"button",onClick:S,children:(0,n.jsx)("span",{className:"text-secondary underline cursor-pointer",children:d.verification.resend})})]})]}),(0,n.jsx)(ei.Z,{type:"secondary",size:"medium",className:"w-full ".concat(!_||(null==u?void 0:u.resend)||(null==u?void 0:u.verify)?"opacity-50":""),btnType:"button",disabled:!_||(null==u?void 0:u.resend)||(null==u?void 0:u.verify),onClick:C,children:(null==u?void 0:u.verify)?(0,n.jsx)(eh.Z,{size:"small"}):d.verification.verify})]})]})}},65183:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(74231),a=i(11163),l=i(87536),s=i(41609),d=i.n(s),u=i(35161),c=i.n(u),p=i(87251),m=i(20931),h=i(84078),f=i(64242),v=i(36808),g=i.n(v),y=i(82821),b=i(96946),A=i(242),x=i(50384),w=i(48421),_=i(64329),S=i(34567),C=i(82935),k=i(37803),T=i(9317),E=i(27637),P=i(5405);let I=(0,P.ZP)(A.Z).withConfig({componentId:"sc-500a7c9b-0"})([""]),D=P.ZP.div.withConfig({componentId:"sc-500a7c9b-1"})(['& > label{background:rgba(255,255,255,0.05);border-radius:12px;min-height:48px;padding:12px;}[data-theme="light"] & > label{background:var(--white);border:1px solid rgba(146,146,146,0.25);}& > label input{font-size:14px;line-height:20px;color:var(--custom-white);}']);t.Z=e=>{var t,i,s,u,v,A,P;let{onLoginSuccess:O,onSwitchToSignup:N,onSwitchToResetPassword:j,redirectTo:M,showSocialAuth:R=!0}=e,{userLogin:z,user:L,loadUserFromCookies:V}=n.useContext(f.Vo),F=(0,p.Z)(),U=(0,a.useRouter)(),[G,B]=(0,n.useState)(!1),Z={...(0,E.Zu)(U.query),...M?{redirectTo:M}:{}},q=(0,n.useMemo)(()=>r.Ry({email:r.Z_().email(F.validations.email.invalid).required(F.login.fields.email.errors.required),password:r.Z_().required(F.login.fields.password.errors.required)}),[F]),H=(0,h.Z)(q),{register:W,handleSubmit:Y,formState:{errors:K,isSubmitting:Q},setError:$}=(0,l.cI)({resolver:H}),X=n.useRef(!1),J=n.useCallback(()=>{var e;if(!X.current){if(X.current=!0,O){O();return}(0,E.oI)((0,T.Ez)()?m.P2.STUDIO_AI_MAIN:M||(null==U?void 0:null===(e=U.query)||void 0===e?void 0:e.redirectTo),m.P2.STUDIO_AI_MAIN,U.locale)}},[O,M,U.locale,null==U?void 0:null===(t=U.query)||void 0===t?void 0:t.redirectTo]);return((0,n.useEffect)(()=>{(null==L?void 0:L.id)&&!G&&J()},[null==L?void 0:L.id,G,J]),O||G||d()(g().get(m.f5.API_TOKEN)))?(0,o.jsx)(S.ZP,{animation:"slideUp",duration:400,className:"w-full",children:(0,o.jsx)("div",{className:"mx-auto w-full max-w-[400px] flex flex-col gap-4",children:(0,o.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,o.jsx)("h3",{className:"text-xl font-bold leading-8 text-center text-custom-white w-full",children:F.login.title}),R&&(0,o.jsx)("div",{children:(0,o.jsx)(C.Z,{variant:"figma"})}),(0,o.jsxs)("form",{autoComplete:"off",className:"flex flex-col gap-3 w-full",onSubmit:Y((e,t)=>
1{t.preventDefault(),t.stopPropagation(),G||Q||((0,k.u)("sign_in_submit",{cta_type:"primary",button_text:F.login.actions.submit,page_name:U.pathname}),(0,_.fJ)()?(V(),J()):(B(!0),z(e,()=>{B(!1),J()},e=>{var t,i,o;B(!1),(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.errors)?c()(null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.errors,(e,t)=>$(t,{message:e})):$("password",{message:null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.message})})))}),children:[(0,o.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[(0,o.jsx)("label",{className:"block text-custom-white text-xs font-medium leading-[18px]",htmlFor:"email",children:F.login.fields.email.label}),(0,o.jsx)(D,{children:(0,o.jsx)(I,{id:"email",type:"text",autoFocus:!0,error:(null==K?void 0:K.email)&&(null==K?void 0:null===(i=K.email)||void 0===i?void 0:i.message),...W("email")})}),(null==K?void 0:null===(s=K.email)||void 0===s?void 0:s.message)?(0,o.jsx)(b.Z,{rootClassName:"mt-1",id:"email-error",errorMessage:null==K?void 0:null===(u=K.email)||void 0===u?void 0:u.message}):null]}),(0,o.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[(0,o.jsx)("label",{className:"block text-custom-white text-xs font-medium leading-[18px]",htmlFor:"password",children:F.login.fields.password.label}),(0,o.jsx)(D,{children:(0,o.jsx)(I,{id:"password",type:"password",error:(null==K?void 0:K.password)&&(null==K?void 0:null===(v=K.password)||void 0===v?void 0:v.message),icon:(0,o.jsx)(x.Z,{inputRef:"password"}),...W("password",{required:F.global.validations.required})})}),(null==K?void 0:null===(A=K.password)||void 0===A?void 0:A.message)?(0,o.jsx)(b.Z,{rootClassName:"mt-1",id:"password-error",errorMessage:null==K?void 0:null===(P=K.password)||void 0===P?void 0:P.message}):null]}),(0,o.jsx)("div",{children:(0,o.jsx)("a",{href:(0,E.mt)(m.Z6.RESET_PASSWORD,Z),onClick:e=>{e.preventDefault();let t=(0,E.mt)(m.Z6.RESET_PASSWORD,Z);(0,k.u)("forgot_password",{cta_type:"secondary",button_text:F.login.forgotPassword,page_name:U.pathname,cta_url:t}),j?j():U.push({pathname:m.Z6.RESET_PASSWORD,query:(0,E.Zu)(Z)})},className:"text-t-shade-2 hover:underline text-xs cursor-pointer",id:"forget-password",children:F.login.forgotPassword})}),(0,o.jsxs)("div",{className:"flex flex-col gap-4 items-center w-full mt-1",children:[(0,o.jsx)(w.Z,{type:"secondary",size:"medium",className:"w-full",id:"submit",btnType:"submit",disabled:G||Q,children:G?(0,o.jsx)(y.Z,{size:"small"}):(0,o.jsx)("p",{className:"text-sm font-medium text-white",children:F.login.actions.submit})}),(0,o.jsxs)("a",{href:(0,E.mt)(m.Z6.SIGNUP,Z),onClick:e=>{e.preventDefault(),(0,k.u)("sign_up_link",{cta_type:"secondary",button_text:F.global.shortSignUp,page_name:U.pathname,cta_url:m.Z6.SIGNUP}),N?N():U.push({pathname:m.Z6.SIGNUP,query:(0,E.Zu)(Z)})},className:"text-sm inline-flex gap-1 items-center justify-center w-full text-center",children:[(0,o.jsx)("span",{className:"text-custom-white font-medium",children:F.login.actions.signUp}),(0,o.jsx)("span",{className:"text-secondary font-semibold",children:F.global.shortSignUp})]})]})]})]})})}):null}},48421:function(e,t,i){"use strict";var o=i(5405),n=i(91167);let r=(0,o.ZP)(n.Z).withConfig({componentId:"sc-72ce6783-0"})(["border:none !important;border-radius:12px !important;min-height:44px;padding:8px 12px !important;color:#ffffff !important;"]);t.Z=r},10751:function(e,t,i){"use strict";var o=i(85893),n=i(87251),r=i(67294),a=i(48421),l=i(74231),s=i(84078),d=i(87536),u=i(64125),c=i(242),p=i(96946),m=i(82821),h=i(46321),f=i(20931),v=i(11163),g=i(37803),y=i(27637);t.Z=e=>{var t,i,b;let{onSwitchToLogin:A,redirectTo:x}=e,w=(0,n.Z)(),_=(0,v.useRouter)(),[S,C]=r.useState(Boolean),[k,T]=r.useState(Boolean),E=r.useMemo(()=>l.Ry({email:l.Z_().required(w.validations.required)}),[w]),P=(0,s.Z)(E),{register:I,handleSubmit:D,formState:{errors:O},setError:N}=(0,d.cI)({resolver:P}),j=e=>{e.preventDefault();let t=(0,y.mt)(f.Z6.LOGIN,_.query);(0,g.u)("back_to_sign_in",{cta_type:"secondary",button_text:w.passwordReco.sendEmail.actions.redirect,page_name:_.pathname,cta_url:t}),A?A():_.push({pathname:f.Z6.LOGIN,query:(0,y.Zu)(_.query)})};return(0,o.jsx)("div",{className:"w-full",children:(0,o.jsxs)("div",{style:{maxWidth:"26.25rem"},className:"mx-auto",children:[(0,o.jsx)("h4",{className:"heading-4 text-center text-white-80",children:(0,o.jsx)("span",{children:w.passwordReco.sendEmail.title})}),(0,o.jsx)("div",{children:k?(0,o.jsxs)("div",{className:"text-base mt-14 text-center flex flex-col items-center ",children:[(0,o.jsx)(h.Z,{src:"/icons/tick-circle.svg",width:"40px",height:"40px",stroke:"var(--secondary-color)"}),(0,o.jsx)("h1",{className:"text-custom-white medium-text mt-10",children:w.passwordReco.sendEmail.success}),(0,o.jsx)("a",{href:(0,y.mt)(f.Z6.LOGIN,_.query),onClick:j,className:"w-full mt-6",children:(0,o.jsx)(a.Z,{type:"secondary",size:"medium",className:"w-full",btnType:"button",children:(0,o.jsx)("p",{className:"text-sm font-medium text-white",children:w.global.backSignIn})})})]}):(0,o.jsxs)("form",{autoComplete:"off",className:"mt-14",onSubmit:D((e,t)=>{t.preventDefault(),t.stopPropagation(),S||((0,g.u)("reset_password_submit",{cta_type:"primary",button_text:w.passwordReco.sendEmail.actions.submit,page_name:_.pathname}),C(!0),u.i.forgotPassword(e,e=>{T(e.success),C(!1)},e=>{var t,i,o,n,r;C(!1),(null==e?void 0:null===(i=e.data)||void 0===i?void 0:null===(t=i.errors)||void 0===t?void 0:t.length)?N("email",{type:"focus",message:null==e?void 0:null===(n=e.data)||void 0===n?void 0:null===(o=n.errors)||void 0===o?void 0:o.email[0]}):N("email",{type:"focus",message:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.message})}))}),children:[(0,o.jsxs)("div",{className:"mt-6",children:[(0,o.jsx)("label",{className:"block text-white-80 medium-text",htmlFor:"username",children:w.passwordReco.sendEmail.formFields.email}),(0,o.jsx)("p",{className:"mt-2",children:(0,o.jsx)(c.Z,{id:"username",type:"text",error:(null==O?void 0:O.email)&&(null==O?void 0:null===(t=O.email)||void 0===t?void 0:t.message),...I("email")})}),(null==O?void 0:null===(i=O.email)||void 0===i?void 0:i.message)?(0,o.jsx)(p.Z,{rootClassName:"mt-2",errorMessage:null==O?void 0:null===(b=O.email)||void 0===b?void 0:b.message}):null]}),(0,o.jsxs)("div",{className:"flex flex-col gap-4 items-center w-full mt-6",children:[(0,o.jsx)(a.Z,{type:"secondary",size:"medium",className:"w-full",id:"submit",btnType:"submit",disabled:S,children:S?(0,o.jsx)(m.Z,{size:"small"}):(0,o.jsx)("p",{className:"text-sm font-medium text-white",children:w.passwordReco.sendEmail.actions.submit})}),(0,o.jsxs)("a",{href:(0,y.mt)(f.Z6.LOGIN,_.query),onClick:j,className:"text-sm inline-flex gap-1 items-center justify-center w-full text-center",children:[(0,o.jsx)("span",{className:"text-custom-white font-medium",children:w.passwordReco.sendEmail.actions.redirectTitle}),(0,o.jsx)("span",{className:"text-secondary font-semibold",children:w.passwordReco.sendEmail.actions.redirect})]})]})]})})]})})}},73246:function(e,t,i){"use strict";i.d(t,{Z:function(){return et}});var o,n,r=i(85893),a=i(67294),l=i(87536),s=i(41609),d=i.n(s),u=i(36808),c=i.n(u),p=i(20931),m=i(11163),h=i(87251),f=i(242),v=i(96946),g=i(48421),y=i(50384),b=i(64242),A=i(35161),x=i.n(A),w=i(82821),_=i(38375),S=i(64329),C=i(25617),k=i(45697),T=i.n(k),E=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function P(){return(P=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}function I(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
1function D(e,t){return(D=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}var O=function(e){function t(){var t;return(t=e.call(this)||this).handleExpired=t.handleExpired.bind(I(t)),t.handleErrored=t.handleErrored.bind(I(t)),t.handleChange=t.handleChange.bind(I(t)),t.handleRecaptchaRef=t.handleRecaptchaRef.bind(I(t)),t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,D(t,e);var i=t.prototype;return i.getCaptchaFunction=function(e){return this.props.grecaptcha?this.props.grecaptcha.enterprise?this.props.grecaptcha.enterprise[e]:this.props.grecaptcha[e]:null},i.getValue=function(){var e=this.getCaptchaFunction("getResponse");return e&&void 0!==this._widgetId?e(this._widgetId):null},i.getWidgetId=function(){return this.props.grecaptcha&&void 0!==this._widgetId?this._widgetId:null},i.execute=function(){var e=this.getCaptchaFunction("execute");if(e&&void 0!==this._widgetId)return e(this._widgetId);this._executeRequested=!0},i.executeAsync=function(){var e=this;return new Promise(function(t,i){e.executionResolve=t,e.executionReject=i,e.execute()})},i.reset=function(){var e=this.getCaptchaFunction("reset");e&&void 0!==this._widgetId&&e(this._widgetId)},i.forceReset=function(){var e=this.getCaptchaFunction("reset");e&&e()},i.handleExpired=function(){this.props.onExpired?this.props.onExpired():this.handleChange(null)},i.handleErrored=function(){this.props.onErrored&&this.props.onErrored(),this.executionReject&&(this.executionReject(),delete this.executionResolve,delete this.executionReject)},i.handleChange=function(e){this.props.onChange&&this.props.onChange(e),this.executionResolve&&(this.executionResolve(e),delete this.executionReject,delete this.executionResolve)},i.explicitRender=function(){var e=this.getCaptchaFunction("render");if(e&&void 0===this._widgetId){var t=document.createElement("div");this._widgetId=e(t,{sitekey:this.props.sitekey,callback:this.handleChange,theme:this.props.theme,type:this.props.type,tabindex:this.props.tabindex,"expired-callback":this.handleExpired,"error-callback":this.handleErrored,size:this.props.size,stoken:this.props.stoken,hl:this.props.hl,badge:this.props.badge,isolated:this.props.isolated}),this.captcha.appendChild(t)}this._executeRequested&&this.props.grecaptcha&&void 0!==this._widgetId&&(this._executeRequested=!1,this.execute())},i.componentDidMount=function(){this.explicitRender()},i.componentDidUpdate=function(){this.explicitRender()},i.handleRecaptchaRef=function(e){this.captcha=e},i.render=function(){var e=this.props,t=(e.sitekey,e.onChange,e.theme,e.type,e.tabindex,e.onExpired,e.onErrored,e.size,e.stoken,e.grecaptcha,e.badge,e.hl,e.isolated,function(e,t){if(null==e)return{};var i,o,n={},r=Object.keys(e);for(o=0;o<r.length;o++)i=r[o],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,E));return a.createElement("div",P({},t,{ref:this.handleRecaptchaRef}))},t}(a.Component);O.displayName="ReCAPTCHA",O.propTypes={sitekey:T().string.isRequired,onChange:T().func,grecaptcha:T().object,theme:T().oneOf(["dark","light"]),type:T().oneOf(["image","audio"]),tabindex:T().number,onExpired:T().func,onErrored:T().func,size:T().oneOf(["compact","normal","invisible"]),stoken:T().string,hl:T().string,badge:T().oneOf(["bottomright","bottomleft","inline"]),isolated:T().bool},O.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var N=i(8679),j=i.n(N);function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}var R={},z=0,L="onloadcallback";function V(){return"undefined"!=typeof window&&window.recaptchaOptions||{}}var F=(o=function(){var e=V(),t=e.useRecaptchaNet?"recaptcha.net":"www.google.com";return e.enterprise?"https://"+t+"/recaptcha/enterprise.js?onload="+L+"&render=explicit":"https://"+t+"/recaptcha/api.js?onload="+L+"&render=explicit"},n=(n={callbackName:L,globalName:"grecaptcha",attributes:V().nonce?{nonce:V().nonce}:{}})||{}
1,function(e){var t=e.displayName||e.name||"Component",i=function(t){function i(e,i){var o;return(o=t.call(this,e,i)||this).state={},o.__scriptURL="",o}i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.__proto__=t;var r=i.prototype;return r.asyncScriptLoaderGetScriptLoaderID=function(){return this.__scriptLoaderID||(this.__scriptLoaderID="async-script-loader-"+z++),this.__scriptLoaderID},r.setupScriptURL=function(){return this.__scriptURL="function"==typeof o?o():o,this.__scriptURL},r.asyncScriptLoaderHandleLoad=function(e){var t=this;this.setState(e,function(){return t.props.asyncScriptOnLoad&&t.props.asyncScriptOnLoad(t.state)})},r.asyncScriptLoaderTriggerOnScriptLoaded=function(){var e=R[this.__scriptURL];if(!e||!e.loaded)throw Error("Script is not loaded.");for(var t in e.observers)e.observers[t](e);delete window[n.callbackName]},r.componentDidMount=function(){var e=this,t=this.setupScriptURL(),i=this.asyncScriptLoaderGetScriptLoaderID(),o=n,r=o.globalName,a=o.callbackName,l=o.scriptId;if(r&&void 0!==window[r]&&(R[t]={loaded:!0,observers:{}}),R[t]){var s=R[t];if(s&&(s.loaded||s.errored)){this.asyncScriptLoaderHandleLoad(s);return}s.observers[i]=function(t){return e.asyncScriptLoaderHandleLoad(t)};return}var d={};d[i]=function(t){return e.asyncScriptLoaderHandleLoad(t)},R[t]={loaded:!1,observers:d};var u=document.createElement("script");for(var c in u.src=t,u.async=!0,n.attributes)u.setAttribute(c,n.attributes[c]);l&&(u.id=l);var p=function(e){if(R[t]){var i=R[t].observers;for(var o in i)e(i[o])&&delete i[o]}};a&&"undefined"!=typeof window&&(window[a]=function(){return e.asyncScriptLoaderTriggerOnScriptLoaded()}),u.onload=function(){var e=R[t];e&&(e.loaded=!0,p(function(t){return!a&&(t(e),!0)}))},u.onerror=function(){var e=R[t];e&&(e.errored=!0,p(function(t){return t(e),!0}))},document.body.appendChild(u)},r.componentWillUnmount=function(){var e=this.__scriptURL;if(!0===n.removeOnUnmount)for(var t=document.getElementsByTagName("script"),i=0;i<t.length;i+=1)t[i].src.indexOf(e)>-1&&t[i].parentNode&&t[i].parentNode.removeChild(t[i]);var o=R[e];o&&(delete o.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===n.removeOnUnmount&&delete R[e])},r.render=function(){var t=n.globalName,i=this.props,o=(i.asyncScriptOnLoad,i.forwardedRef),r=function(e,t){if(null==e)return{};var i,o,n={},r=Object.keys(e);for(o=0;o<r.length;o++)t.indexOf(i=r[o])>=0||(n[i]=e[i]);return n}(i,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!=typeof window&&(r[t]=void 0!==window[t]?window[t]:void 0),r.ref=o,(0,a.createElement)(e,r)},i}(a.Component),r=(0,a.forwardRef)(function(e,t){return(0,a.createElement)(i,M({},e,{forwardedRef:t}))});return r.displayName="AsyncScriptLoader("+t+")",r.propTypes={asyncScriptOnLoad:T().func},j()(r,e)})(O),U=i(27524),G=[{label:{en:"Has at least 8 characters",ar:"يحتوي على 8 أحرف على الأقل",es:"Tiene al menos 8 caracteres",fr:"A au moins 8 caract\xe8res",it:"Ha almeno 8 caratteri",tr:"En az 8 karakter i\xe7ermelidir"},regix:/^(?=.{8,})/},{label:{en:"At least one letter",ar:"حرف واحد على الأقل",es:"Al menos una letra",fr:"Au moins une lettre",it:"Almeno una lettera",tr:"En az bir harf i\xe7ermelidir"},regix:/^(?=.*[a-zA-Z])/},{label:{en:"At least one number",ar:"رقم واحد على الأقل",es:"Al menos un n\xfamero",fr:"Au moins un chiffre",it:"Almeno un numero",tr:"En az bir sayı i\xe7ermelidir"},regix:/^(?=.*\d)/},{label:{en:"At least one special character",ar:"حرف خاص واحد على الأقل",es:"Al menos un car\xe1cter especial",fr:"Au moins un caract\xe8re sp\xe9cial",it:"Almeno un carattere speciale",tr:"En az bir \xf6zel karakter i\xe7ermelidir"},regix:/^(?=.*[!@#$%^&*])/}],B=i(5405);let Z=B.ZP.div.withConfig({componentId:"sc-5130a363-0"})(["width:5px;height:5px;border-radius:9999px;border:1px solid ",";background:",";transition:all 0.2s ease;"],e=>e.$active?"#4B9631":"var(--text-shade-2)",e=>e.$active?"#4B9631":"transparent"),q=B.ZP.span.withConfig({componentId:"sc-5130a363-1"})(["font-size:10px;font-weight:500;color:",";transition:color 0.2s ease;"],e=>e.$active?"#4B9631":"var(--text-shade-2)");var H=e=>{let{control:t}=e,i=(0,l.qo)({control:t,name:"password"}),{language:o}=a.useContext(U.AZ);return(0,r.jsx)("ul",{className:"grid gap-1",children:G.map((e,t)=>{let n=e.regix.test(i||"");return(0,r.jsxs)("li",{className:"flex items-center gap-1",children:[(0,r.jsx)(Z,{$active:n}),(0,r.jsx)(q,{$active:n,children:null==e?void 0:e.label[o]})]},t)})})},W=i(34567),Y=i(82935),K=i(90238),Q=i(71494),$=i(37803),X=i(27637);let J=B.ZP.div.withConfig({componentId:"sc-ca6a8c16-0"})(['& > label{background:rgba(255,255,255,0.05);border-radius:12px;min-height:48px;padding:12px;}[data-theme="light"] & > label{background:var(--white);border:1px solid rgba(146,146,146,0.25);}& > label input{font-size:14px;line-height:20px;color:var(--custom-white);}']),ee=(0,B.ZP)(_.Z).withConfig({componentId:"sc-ca6a8c16-1"})(['width:20px;height:20px;border-radius:6px;background:rgba(255,255,255,0.05) !important;[data-theme="light"] &{background:var(--white) !important;border:1px solid rgba(146,146,146,0.25);}']);var et=e=>{var t,i;let{onSignupSuccess:o,onSwitchToLogin:n,redirectTo:s,showSocialAuth:u=!0}=e,{mode:A}=(0,C.v9)(e=>e.Theme),{language:_}=a.useContext(U.AZ),k=a.useRef(null),T=(0,m.useRouter)(),E=(0,h.Z)(),[P,I]=a.use
1State(Boolean),{userRegister:D,loadUserFromCookies:O}=a.useContext(b.Vo),N={...(0,X.Zu)(T.query),...s?{redirectTo:s}:{}},{register:j,handleSubmit:M,formState:{errors:R},setError:z,setValue:L,control:V}=(0,l.cI)({defaultValues:{email:"".concat((null==T?void 0:null===(t=T.query)||void 0===t?void 0:t.email)||"")||"",terms:!0,is_subscribed_to_newsletter:!1}}),G=e=>L("recaptcha",e);return o||d()(c().get(p.f5.API_TOKEN))?(0,r.jsx)(W.ZP,{animation:"slideUp",duration:400,className:"w-full",children:(0,r.jsx)("div",{className:"mx-auto w-full max-w-[400px] flex flex-col gap-6",children:(0,r.jsxs)("div",{className:"flex flex-col gap-4 w-full",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-6 w-full",children:[(0,r.jsx)("h3",{className:"text-xl font-bold leading-8 text-center text-custom-white w-full",children:E.signUp.title}),u&&(0,r.jsx)(Y.Z,{variant:"figma"}),(0,r.jsxs)("form",{autoComplete:"off",className:"flex flex-col gap-4 w-full",onSubmit:M((e,t)=>{if(t.preventDefault(),t.stopPropagation(),(0,S.fJ)())O();else{var i;(0,$.u)("sign_up_submit",{cta_type:"primary",button_text:E.signUp.actions.submit,page_name:T.pathname}),K.ZP.track(Q.n5.SIGN_UP_STARTED,{login_method:"email",user_type:"new",platform:window.innerWidth<768?"mobile":"desktop",entry_point:(null==T?void 0:null===(i=T.query)||void 0===i?void 0:i.redirectTo)||(null==T?void 0:T.pathname)||"signup"}),I(!0),D({...e,preferred_language:_,recaptcha:e.recaptcha},t=>{I(!1),o?o({email:e.email,token:null==t?void 0:t.token}):T.replace({pathname:p.Z6.VERIFICATION,query:{...(0,X.Zu)(T.query),email:e.email,token:null==t?void 0:t.token}})},e=>{var t,i,o,n,r;I(!1),k&&k.current&&(null===(i=k.current)||void 0===i||i.reset()),(null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.errors)?x()(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.errors,(e,t)=>z(t,{message:e})):500===e.status?z("recaptcha",{message:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.message}):z("password",{message:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.message})})}}),children:[(0,r.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[(0,r.jsx)("label",{className:"block text-custom-white text-xs font-medium leading-[18px]",htmlFor:"email",children:E.signUp.fields.email.label}),(0,r.jsx)(J,{children:(0,r.jsx)(f.Z,{autoComplete:"off",autoCorrect:"off",id:"email",type:"text",error:R.email&&R.email.message,...j("email",{required:E.validations.required,pattern:{value:p._C.email,message:E.validations.email.invalid}})})}),R.email&&R.email.message?(0,r.jsx)(v.Z,{rootClassName:"mt-1",errorMessage:R.email.message}):null]}),(0,r.jsxs)("div",{className:"flex flex-col gap-3 w-full",children:[(0,r.jsx)("label",{className:"block text-custom-white text-xs font-medium leading-[18px]",htmlFor:"password",children:E.signUp.fields.password.label}),(0,r.jsx)(J,{children:(0,r.jsx)(f.Z,{autoComplete:"off",autoCorrect:"off",id:"password",type:"password",icon:(0,r.jsx)(y.Z,{inputRef:"password"}),error:R.password&&(null===(i=R.password)||void 0===i?void 0:i.message),...j("password",{required:E.global.validations.required})})}),R.password&&(0,r.jsx)(v.Z,{rootClassName:"mt-1 text-xs",errorMessage:R.password.message}),(0,r.jsx)("div",{className:"mt-1",children:(0,r.jsx)(H,{control:V})})]}),(0,r.jsxs)("label",{className:"flex items-center gap-2 text-custom-white cursor-pointer w-full",htmlFor:"is_subscribed_to_newsletter",children:[(0,r.jsx)(ee,{type:"checkbox",id:"is_subscribed_to_newsletter",...j("is_subscribed_to_newsletter")}),(0,r.jsx)("span",{className:"flex-1 text-xs font-medium",children:E.signUp.fields.emailMarkiting.label})]}),(0,r.jsx)("input",{type:"checkbox",className:"hidden",...j("terms",{required:E.global.validations.required})}),(0,r.jsxs)("div",{children:[(0,r.jsx)("input",{type:"text",className:"hidden",...j("recaptcha",{required:E.global.validations.required})}),(0,r.jsx)(F,{ref:k,onExpired:()=>{var e;G(null),null===(e=k.current)||void 0===e||e.reset()},sitekey:"6Ld-1aIpAAAAACdUIIydrGn8Xl7T-_Nw3PbORkNA",onChange:G,"data-action":"signup",theme:A}),R.recaptcha&&(0,r.jsx)(v.Z,{rootClassName:"mt-2",errorMessage:R.recaptcha.message})]}),(0,r.jsxs)("div",{className:"flex flex-col gap-4 items-center w-full",children:[(0,r.jsx)(g.Z,{type:"secondary",size:"medium",className:"w-full",btnType:"submit",disabled:P,"data-testid":"submit",children:P?(0,r.jsx)(w.Z,{size:"small"}):(0,r.jsx)("span",{className:"text-sm font-medium text-white",children:E.signUp.actions.submit})}),(0,r.jsxs)("a",{href:(0,X.mt)(p.Z6.LOGIN,N),onClick:e=>{e.preventDefault(),(0,$.u)("sign_in_link",{cta_type:"secondary",button_text:E.signUp.actions.login1,page_name:T.pathname,cta_url:p.Z6.LOGIN}),n?n():T.push({pathname:p.Z6.LOGIN,query:(0,X.Zu)(N)})},className:"text-sm inline-flex gap-1 items-center justify-center w-full text-center",children:[(0,r.jsx)("span",{className:"text-custom-white font-medium",children:E.signUp.actions.login}),(0,r.jsx)("span",{className:"text-secondary font-semibold",children:E.signUp.actions.login1})]})]})]})]}),(0,r.jsxs)("p",{className:"text-t-shade-2 text-[10px] font-medium text-center w-full",children:[E.authFlowLayout.termsNotice," "]})]})})}):null}},49604:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(5405),a=i(87251),l=i(55746),s=i(11163),d=i(90238),u=i(71494),c=i(44272);let p=r.ZP.div.withConfig({componentId:"sc-e3d17b95-0"})(["position:relative;z-index:2;display:flex;flex-wrap:nowrap;align-items:center;justify-content:center;gap:8px;width:fit-content;flex-shrink:0;margin:",";padding:8px;border-radius:32px;",""],e=>{let{$compact:t}=e;return t?"0":"0 auto"},e=>{let{$glass:t}=e;return t?"":'\n    border: 1px solid rgba(146, 146, 146, 0.1);\n    background: rgba(255, 255, 255, 0.05);\n\n    [data-theme="light"] & {\n      background: var(--shade-2);\n    }\n  '}),m=r.ZP.button.withConfig({componentId:"sc-e3d17b95-1"})(["display:inline-flex;box-sizing:border-box;flex-shrink:0;align-items:center;justify-content:center;gap:8px;min-width:104px;min-height:34px;padding:4px 8px;border:",";border-radius:24px;background:",";cursor:pointer;font-size:14px;font-weight:500;line-height:normal;color:",";white-space:nowrap;"],e=>{let{$selected:t}=e;return t?"1px solid rgba(146, 146, 146, 0.1)":"1px solid transparent"},e=>{let{$selected:t}=e;return t?"var(--secondary-color)":"transparent"},e=>{let{$selected:t}=e;return t?"var(--white)":"var(--custom-white)"}),h=r.ZP.span.withConfig({componentId:"sc-e3d17b95-2"})(["background:#ebc350;color:#0c0c0c;padding:2px 8px;border-radius:16px;font-size:12px;font-weight:500;line-height:normal;white-space:nowrap;"]),f=r.ZP.div.withConfig({componentId:"sc-e3d17b95-3"})(["display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;"]),v=r.ZP.div.withConfig({componentId:"sc-e3d17b95-4"})(["display:inline-flex;align-items:center;gap:8px;"]),g=r.ZP.button.withConfig({componentId:"sc-e3d17b95-5"})(['margin:0;padding:0;border:none;background:transparent;font-size:16px;font-weight:500;line-height:normal;color:var(--custom-white);cursor:pointer;white-space:nowrap;[data-theme="light"] &{color:#0c0c0c;}']),y=r.ZP.span.withConfig({componentId:"sc-e3d17b95-6"})(["background:#ebc350;color:#0c0c0c;padding:2px 6px;border-radius:8px;box-shadow:0 8px 20px -6px rgba(84,112,200,0.25);font-size:12px;font-weight:500;line-height:normal;white-space:nowrap;"]),b=r.ZP.button.withConfig({componentId:"sc-e3d17b95-7"})(["position:relative;width:46px;height:24px;flex-shrink:0;padding:0;border:none;border-radius:999px;background:",';cursor:pointer;transition:background-color 0.2s ease;[data-theme="light"] &{background:',';}&::after{content:"";position:absolute;top:2px;inset-inline-start:',";width:20px;height:20px;border-radius:999px;background:#ffffff;transition:inset-inline-start 0.2s ease;}"],e=>{let{$yearly:t}=e;return t?"var(--secondary-color)":"rgba(146, 146, 146, 0.35)"},e=>{let{$yearly:t}=e;return t?"var(--secondary-color)":"rgba(146, 146, 146, 0.25)"},e=>{let{$yearly:t}=e;return t?"24px":"2px"});t.Z=n.memo(e=>{let{value:t,onChange:i,className:n,analyticsPosition:r,compact:A=!1,glass:x=!1}=e,w=(0,a.Z)(),_=(0,s.useRouter)(),{plansForInterval:S}=(0,l.J)({defaultInterval:"month"}),C=S.reduce((e,t)=>
1{var i,o,n;let r=(null==t?void 0:null===(n=t.items)||void 0===n?void 0:null===(o=n.find(e=>{var t;return"year"===e.interval&&(null===(t=e.sale)||void 0===t?void 0:t.amount)}))||void 0===o?void 0:null===(i=o.sale)||void 0===i?void 0:i.amount)||0;return r>e?r:e},0),k=e=>{if(e===t)return;let o="month"===e,n=o?w.pricing.monthly:w.pricing.yearly;d.ZP.track(u.nS.CTA_CLICKED,{cta_name:o?"monthly":"yearly",cta_type:"secondary",button_text:n,page_name:(0,c.j)(_.pathname),page_type:"billing",position:null!=r?r:"billing_interval_toggle"}),i(e)},T="year"===t;return x?(0,o.jsxs)(f,{className:n,children:[(0,o.jsx)(g,{type:"button","aria-pressed":!T,onClick:()=>k("month"),children:w.pricing.monthly}),(0,o.jsx)(b,{type:"button",role:"switch","aria-checked":T,"aria-label":w.pricing.yearly,$yearly:T,onClick:()=>k(T?"month":"year")}),(0,o.jsxs)(v,{children:[(0,o.jsx)(g,{type:"button","aria-pressed":T,onClick:()=>k("year"),children:w.pricing.yearly}),C>0?(0,o.jsx)(y,{children:w.checkoutModal.savePercent(Number(C))}):null]})]}):(0,o.jsxs)(p,{className:n,$compact:A,$glass:x,children:[(0,o.jsx)(m,{type:"button",$selected:!T,"aria-pressed":!T,onClick:()=>k("month"),children:w.pricing.monthly}),(0,o.jsxs)(m,{type:"button",$selected:T,"aria-pressed":T,onClick:()=>k("year"),children:[w.pricing.yearly,C>0?(0,o.jsx)(h,{children:w.checkoutModal.savePercent(Number(C))}):null]})]})})},14427:function(e,t,i){"use strict";var o=i(85893),n=i(67294);let r=i(5405).ZP.div.withConfig({componentId:"sc-dfb42413-0"})([""," ",""],e=>{switch(e.rounded){case"large":return"\nborder-radius: px;\n";case"default":return"\nborder-radius: 8px;\n";default:return""}},e=>"\n    ".concat(e.bgColor?"background-color: ".concat(e.bgColor):"","\n    ")),a=n.forwardRef((e,t)=>(0,o.jsx)(r,{ref:t,...e,children:e.children}));t.Z=a},38375:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(87405),a=i.n(r),l=i(5405),s=i(10847);let d=l.ZP.div.withConfig({componentId:"sc-ec14794c-0"})(['&[data-error="true"]{box-shadow:0px 0px 1px 1px ',';}& input + label{cursor:pointer;&::after{content:" ";background:',";width:0%;height:0%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);border-radius:2px;opacity:0;transition:all 200ms;}}& input:checked + label{&::after{opacity:1;width:50%;height:50%;}}"],s.theme.extend.colors.errorRed,s.theme.extend.colors["secondary-gradient"]),u=n.forwardRef((e,t)=>(0,o.jsxs)(d,{className:"".concat(a().container," ").concat(e.className),"data-error":!!(null==e?void 0:e.error),style:e.style,"data-testid":e.name,children:[(0,o.jsx)("input",{ref:t,...e}),(0,o.jsx)("label",{htmlFor:e.id})]}));t.Z=u},51535:function(e,t,i){"use strict";var o=i(85893);i(67294);var n=i(35158);let r=(e,t)=>"function"==typeof e?e({hasHydrated:t}):e;t.Z=e=>{let{children:t,fallback:i=null}=e,a=(0,n.Z)();return a?(0,o.jsx)(o.Fragment,{children:r(t,a)}):(0,o.jsx)(o.Fragment,{children:r(i,a)})}},86408:function(e,t,i){"use strict";var o=i(85893);i(67294);var n=i(51535);t.Z=e=>{let{condition:t,children:i}=e;return(0,o.jsx)(n.Z,{fallback:null,children:t?i:null})}},74807:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(58558),a=i.n(r),l=i(31155),s=i(46321),d=i(91167),u=i(41614);t.Z=e=>{let{header:t,title:i,actionTitle:r,durationToClose:c,actionAfterDurationEnd:p,actionText:m,onActionClicked:h,icon:f,titleClassName:v,svgSrc:g,iconPath:y}=e,[b,A]=(0,n.useContext)(l.kn),x=()=>{A({type:l.BT.MODAL_STATE_CHANGED,payload:{isOpen:!1,children:null,closable:!1}})};return n.useEffect(()=>{if(c){let e=setTimeout(()=>{x(),p&&p(),clearTimeout(e)},c)}},[]),(0,o.jsx)("div",{className:a()["confirmation-modal"],children:(0,o.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[null!=f?f:(0,o.jsx)(s.Z,{src:y||"/icons/tick-circle.svg",width:"40px",height:"40px",stroke:"var(--secondary-color)"}),t?(0,o.jsx)(u.M,{className:"mt-4 heading-5 text-center",children:t}):null,(0,o.jsx)("span",{className:"".concat(t?"mt-4":"mt-8"," small-text text-white-65 ").concat(v),children:i}),r&&(0,o.jsx)("span",{className:"block mt-2 mb-4 text-base text-center text-white-80 opacity-75",children:r}),m&&(0,o.jsx)(d.Z,{type:"secondary",size:"medium",className:"mt-12",onClick:h,children:(0,o.jsx)("span",{className:"medium-text text-white",children:m})})]})})}},57634:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(94458),a=i.n(r),l=i(5405),s=i(31155),d=i(82821),u=i(87251),c=i(46321),p=i(91167),m=i(41614),h=i(23673),f=i(62554),v=i(46933);let g=l.ZP.div.withConfig({componentId:"sc-e13ec3b9-0"})(["max-width:31.438rem;min-width:555px;border-radius:24px;box-shadow:0px 15px 35px 0px rgba(0,0,0,0.20);background-color:var(--shade);padding:40px;&__submit{font-size:15px !important;padding-left:15px !important;padding-right:15px !important;}@media (max-width:700px){max-width:100%;min-width:100%;padding:40px 24px;}
1@media ( min-width:200px ) and (max-width:320px){max-width:100%;min-width:100%;padding:30px 10px;}"]);t.Z=e=>{let{header:t,title:i,subTitle:r,okText:l,cancelText:y,onOk:b,onCancel:A,icon:x,okButtonProps:w,cancelButtonProps:_,iconProps:S,className:C}=e,k=(0,u.Z)(),[,T]=(0,n.useContext)(s.kn),[E,P]=(0,n.useState)(Boolean),I=()=>{T({type:s.BT.MODAL_STATE_CHANGED,payload:{isOpen:!1,children:null}})};return(0,o.jsx)(g,{className:"".concat(a()["confirmation-modal"]," ").concat(C),children:(0,o.jsxs)("div",{className:"flex flex-col items-center justify-center",children:[x||(0,o.jsx)(c.Z,{src:"/icons/info-circle.svg",stroke:"var(--secondary-color)",width:"32px",height:"32px",...S}),t?(0,o.jsx)(h.Z,{className:"text-center mt-4",children:(0,o.jsx)(m.M,{className:"text-center",children:t})}):null,(0,o.jsx)("span",{className:"mt-3 small-text text-center text-white-80 px-1 !leading-[26px]",children:i}),(0,o.jsxs)("div",{className:"mt-10 flex items-center gap-5",children:[(0,o.jsx)(p.Z,{type:"text",size:"medium",onClick:()=>{A?A():I&&I()},disabled:E,className:"w-auto h-[37px]",..._,children:(0,o.jsx)(f.Z,{textColor:"text-custom-white",children:y||k.global.confirmationAlert.no})}),(0,o.jsxs)(p.Z,{disabled:E,type:"secondary",size:"medium",onClick:()=>{P(!0),b(null,e=>{P(!1),I()},e=>{P(!1)})},autoFocus:!0,className:" h-[37px]",...w,children:[E?(0,o.jsx)(v.Z,{children:(0,o.jsx)(d.Z,{size:"xSmall"})}):null,(0,o.jsx)(f.Z,{textColor:"text-white",children:l||k.global.confirmationAlert.yes})]})]})]})})}},55612:function(e,t,i){"use strict";i.d(t,{b3:function(){return L},r4:function(){return N},ZP:function(){return V}});var o=i(85893),n=i(67294),r=i(6627),a=i(27524),l=i(87162),s=i(84292),d=i(5405),u=i(46321),c=i(87251),p=i(73859),m=i(88349),h=i(60167);let f=d.ZP.img.withConfig({componentId:"sc-d6cc467d-0"})(["width:16px;height:16px;object-fit:contain;"]),v=d.ZP.button.withConfig({shouldForwardProp:e=>"$isSelected"!==e}).withConfig({componentId:"sc-d6cc467d-1"})(["cursor:pointer;",' [data-theme="light"] &{',"}"],e=>{let{$isSelected:t}=e;return!t&&"\n    &:hover {\n      background-color: var(--glass-fill-strong);\n    }\n  "},e=>{let{$isSelected:t}=e;return!t&&"\n      &:hover {\n        background-color: rgba(0, 0, 0, 0.04);\n      }\n    "}),g={speed:{src:"/icons/zap.svg"},quality:{src:"/icons/diamond-02.svg"}},y=e=>{let{filled:t,type:i}=e,{src:n}=g[i];return(0,o.jsx)(u.Z,{src:n,width:"16px",height:"16px",color:"currentColor",stroke:"currentColor",svgProps:{style:{opacity:t?1:.25}}})},b=e=>{let{type:t,value:i,tooltip:n}=e;return(0,o.jsx)(p.Z,{message:(0,o.jsx)(m.Z,{children:n}),position:"top-center",className:"inline-flex",children:(0,o.jsx)("div",{className:"model-selector-rating-row flex items-center p-1 rounded-md text-t-shade-1 ".concat("speed"===t?"gap-0.5":"gap-1"),children:Array.from({length:3},(e,n)=>(0,o.jsx)(y,{filled:n<i,type:t},"".concat(t,"-").concat(n)))})})};var A=e=>{var t,i;let{model:r,isSelected:l=!1,onChange:s,className:d}=e,{language:p}=n.useContext(a.AZ),m=(0,c.Z)(),g=(null===(t=r.display_name)||void 0===t?void 0:t[p])||(null===(i=r.display_name)||void 0===i?void 0:i.en)||r.name,y=(0,h.pd)(r.speed),A=(0,h.pd)(r.quality),x=(0,h.iT)(r,{startFrame:m.sceneGen.selectModelPopup.startFrameBadge,endFrame:m.sceneGen.selectModelPopup.endFrameBadge}),w=(0,h.Zw)(r);return(0,o.jsxs)(v,{type:"button",$isSelected:l,className:"\n        flex w-full flex-col items-start text-start transition-colors duration-200\n        ".concat(l?"model-selector-row--selected gap-3 rounded-[12px] px-4 py-2":"gap-2 rounded-xl bg-transparent px-4 py-3"," ").concat(null!=d?d:"","\n      "),onClick:s,children:[(0,o.jsxs)("div",{className:"relative z-[2] flex w-full items-center gap-2",children:[r.icon_url?(0,o.jsx)(f,{src:r.icon_url,alt:"",className:"shrink-0"}):null,(0,o.jsx)("span",{className:"model-selector-model-name truncate pe-12 text-xs font-medium ".concat(l?"":"model-selector-model-name--idle text-t-shade-1"),children:g}),w?(0,o.jsx)("span",{className:"model-selector-new-badge",children:m.sceneGen.selectModelPopup.newBadge}):null]}),(0,o.jsxs)("div",{className:"relative z-[2] flex w-full flex-col gap-2",children:[x.length>0?(0,o.jsx)("div",{className:"flex flex-wrap items-center gap-1.5",children:x.map(e=>(0,o.jsx)("span",{className:"model-selector-feature-chip relative flex items-center gap-1 rounded-[6px] p-1 text-[8px] font-medium opacity-90 ".concat(l?"studio-glass-chip-subtle text-t-shade-1":"bg-glass-fill text-t-shade-1"),children:(0,o.jsxs)("span",{className:"relative z-[1] flex items-center gap-1",children:[(0,o.jsx)(u.Z,{src:"/icons/image-01.svg",width:"12px",height:"12px",stroke:"currentColor",color:"currentColor"}),e.label]})},e.slug))}):null,(0,o.jsxs)("div",{className:"flex w-full items-center justify-between gap-2",children:[(0,o.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,o.jsx)(b,{type:"speed",value:y,tooltip:m.sceneGen.selectModelPopup.speedTooltip}),(0,o.jsx)(b,{type:"quality",value:A,tooltip:m.sceneGen.selectModelPopup.qualityTooltip})]}),(0,o.jsxs)("div",{className:"model-selector-credits flex shrink-0 items-center gap-1 text-t-shade-1",children:[(0,o.jsx)(u.Z,{src:"/icons/coins-02.svg",width:"16px",height:"16px",color:"currentColor",fill:"
1currentColor"}),(0,o.jsx)("span",{className:"text-xs font-medium",children:r.min_credit_cost})]})]})]})]})},x=i(85518),w=i(73726),_=i(10009),S=i(96928),C=i(10332),k=i(58446),T=i(11163),E=i(47095),P=i(46916),I=i(17111),D=i(44272),O=i(54822);let N=d.ZP.div.withConfig({componentId:"sc-487b5004-0"})(['display:inline-flex;align-items:center;justify-content:flex-start;gap:12px;width:max-content;max-width:100%;height:40px;min-height:40px;max-height:40px;border-radius:12px;color:var(--custom-white);cursor:pointer;transition:background-color 0.2s ease,border-color 0.2s ease,box-shadow 0.2s ease;padding:0 16px;box-sizing:border-box;overflow:hidden;border:1px solid var(--glass-stroke);background:var(--glass-fill);backdrop-filter:blur(var(--figma-glass-frost)) saturate(1.4);-webkit-backdrop-filter:blur(var(--figma-glass-frost)) saturate(1.4);&:focus{outline:none;}&:focus-visible{box-shadow:0 0 0 1px var(--secondary-color);}[data-theme="light"] &{background:rgba(255,255,255,0.6);border-color:transparent;backdrop-filter:none;-webkit-backdrop-filter:none;box-shadow:0 1.272px 15.267px rgba(0,0,0,0.05);}']),j=d.ZP.span.withConfig({componentId:"sc-487b5004-1"})(["min-width:0;overflow:hidden;color:inherit;font-size:14px;font-weight:600;line-height:normal;text-overflow:ellipsis;white-space:nowrap;"]),M=d.ZP.span.withConfig({componentId:"sc-487b5004-2"})(['color:var(--text-shade-2);[data-theme="light"] &{color:var(--custom-white);}']),R=[{pathname:"/ai-studio/image-to-scene",feature:w.u9.IMAGE_TO_SCENE,type:k.Y7.IMAGE_TO_VIDEO},{pathname:"/ai-studio/text-to-scene",feature:w.u9.TEXT_TO_SCENE,type:k.Y7.TEXT_TO_VIDEO},{pathname:"/ai-studio/text-to-image",feature:w.u9.IMAGE_GENERATOR},{pathname:"/ai-studio/image-upscaler",feature:w.u9.IMAGE_UPSCALER},{pathname:"/ai-studio/ai-image-editor",feature:w.u9.IMAGE_EDITOR}],z=e=>R.find(t=>t.pathname===e),L=e=>{var t,i;let{currentTool:n,selectedModelData:r}=e,a=(0,c.Z)(),l=(0,P.Z)();return(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(M,{className:"text-xs font-medium",children:(null==n?void 0:n.title[l])||(null==n?void 0:n.title.en)||a.models.modelsSelector.model}),(0,o.jsx)("div",{className:"flex items-center gap-1 text-maize",children:(0,o.jsx)("span",{className:"text-sm text-ph-color font-medium",children:(null==r?void 0:null===(t=r.model)||void 0===t?void 0:t.display_name[l])||(null==r?void 0:null===(i=r.model)||void 0===i?void 0:i.display_name.en)})})]})};var V=e=>{var t,i,d,p;let{feature:m="",type:f}=e,v=(0,T.useRouter)(),g=z(v.pathname),y=n.useMemo(()=>m||(null==g?void 0:g.feature),[m,null==g?void 0:g.feature]),b=n.useRef(null),{language:w}=n.useContext(a.AZ),{dispatchGlobalState:k}=(0,S.Z)(),[P,M]=n.useState(!1),[R,L]=n.useState(""),[V,F]=n.useState(!1),{data:U}=(0,_.lg)(y),{data:G,isPending:B}=(0,l.t4)(y,null!=f?f:null==g?void 0:g.type),{trackToolConfiguration:Z}=(0,r.G)((null!=y?y:"").replace(/-/g," ")),q=n.useRef(null);n.useEffect(()=>{let e=window.matchMedia("(max-width: 768px)"),t=()=>F(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let H=n.useCallback(()=>{q.current&&clearTimeout(q.current),M(!0)},[]),W=n.useCallback(()=>{q.current=setTimeout(()=>{M(!1)},150)},[]),Y=e=>{var t;(0,_.ck)(e,y),(0,E.m8)({name:"".concat(y,"-selectedModel"),value:JSON.stringify(e)});let i=null!==(t=null==e?void 0:e.slug)&&void 0!==t?t:null==e?void 0:e.name;Z({configuration_type:"ai_model",value:i,model_name:i}),M(!1)},K=(0,c.Z)(),Q=(0,s.Yz)(P,{from:{opacity:0,transform:"translateY(-10px) scale(0.95)"},enter:{opacity:1,transform:"translateY(0px) scale(1)"},leave:{opacity:0,transform:"translateY(-10px) scale(0.95)"},config:{duration:200}}),$=n.useMemo(()=>{var e,t;return null!==(t=null==G?void 0:null===(e=G.data)||void 0===e?void 0:e.models)&&void 0!==t?t:[]},[null==G?void 0:null===(t=G.data)||void 0===t?void 0:t.models]),X=B&&!$.length&&!(null==U?void 0:U.model);n.useEffect(()=>{if(!$.length||!y)return;let e=null==U?void 0:U.model;if(e&&$.some(t=>t.id===e.id||t.slug===e.slug))return;let t=$.find(e=>e.is_featured)||$[0];t&&(0,_.ck)(t,y)},[$,null==U?void 0:U.model,y]);let J=n.useMemo(()=>(0,h.Wr)($,R),[$,R]),ee=n.useMemo(()=>{var e;let t=null==U?void 0:null===(e=U.model)||void 0===e?void 0:e.slug;return(!(R.trim().length>0)&&t?[...J].sort((e,i)=>e.slug===t?-1:i.slug===t?1:0):J).map(e=>({value:e.slug,label:e.display_name[w]||e.display_name.en,model:e}))},[J,w,R,null==U?void 0:null===(i=U.model)||void 0===i?void 0:i.slug]),et=$.length>1,ei=$.length>5,eo=n.useCallback((e,t)=>{(0,I.F)(e,{cta_type:"secondary",button_text:t,page_name:(0,D.j)(v.pathname),tool_name:(null!=y?y:"").replace(/-/g," "),platform:x.tq?"mobile":"desktop",position:"studio_header_model_selector"})},[v.pathname,y]),en=(null==U?void 0:null===(d=U.model)||void 0===d?void 0:d.display_name[w])||(null==U?void 0:null===(p=U.model)||void 0===p?void 0:p.display_name.en)||K.models.modelsSelector.model,er=n.useCallback(e=>{et&&(eo("view_all_models"===e?"view_all_models":"model_selector_open","view_all_models"===e?K.models.modelsSelector.viewAllModels:en),(0,C.H)(k,{feature:y,modelType:null!=f?f:null==g?void 0:g.type,withRedirect:!1}))},[k,null==g?void 0:g.type,f,et,K.models.modelsSelector.viewAllModels,en,eo]);return n.useEffect(()=>{let e=e=>{b.current&&!b.current.contains(e.target)&&M(!1)};return P&&(document.addEventListener("mousedown",e),document.addEventListener("touchstart",e)),()=>{document.removeEventListener("mousedown",e),document.removeEventListener("touchstart",e),q.current&&clearTimeout(q.current)}},[P]),n.useEffect(()=>{P||L("")},[P]),(0,o.jsxs)("div",{ref:b,className:"relative w-max max-w-full",onMouseEnter:x.tq?void 0:H,onMouseLeave:x.tq?void 0:W,children:[P&&ei&&!x.tq&&!V?(0,o.jsxs)(N,{onClick:()=>{er("view_all_models")},children:[(0,o.jsx)(j,{children:K.models.modelsSelector.viewAllModels}),(0,o.jsx)("span",{className:"shrink-0",children:(0,o.jsx)(u.Z,{src:"/icons/add.svg",width:"16px",height:"16px",fill:"var(--custom-white)"})})]}):(0,o.jsxs)(N,{onClick:e=>{if(e.preventDefault(),e.stopPropagation(),x.tq){er("selector");return}P?M(!1):(eo("model_selector_open",en),H())},children:[X?(0,o.jsx)(j,{children:"Loading..."}):(0,o.jsx)(j,{children:(null==U?void 0:U.model)?en:"Select model..."}),et?(0,o.jsx)("span",{className:"shrink-0 transform text-current transition-transform duration-200 ".concat(P?"rotate-180":""),children:(0,o.jsx)(u.Z,{src:"/icons/arrow-down.svg",width:"16px",height:"16px",className:"text-current",color:"currentColor",fill:"
1currentColor"})}):null]}),et&&!x.tq?Q((e,t)=>t?(0,o.jsx)(s.q.div,{style:e,className:"absolute top-full start-0 z-[100] mt-1 w-[266px]",onMouseEnter:H,children:(0,o.jsx)("div",{className:O.d5,style:(0,O.SJ)(),children:(0,o.jsxs)("div",{className:"relative z-[2] flex flex-col gap-4",children:[(0,o.jsxs)("label",{className:"model-selector-search",children:[(0,o.jsx)(u.Z,{src:"/icons/search-normal.svg",width:"16px",height:"16px",fill:"var(--text-shade-3)",color:"var(--text-shade-3)"}),(0,o.jsx)("input",{type:"search",value:R,onChange:e=>L(e.target.value),onClick:e=>e.stopPropagation(),onMouseDown:e=>e.stopPropagation(),placeholder:K.sceneGen.selectModelPopup.searchPlaceholder,className:"model-selector-search-input w-full bg-transparent text-xs font-medium text-t-shade-1 outline-none placeholder:text-text-shade-3"})]}),(0,o.jsx)("div",{className:"hiddenScrollBar -m-1 max-h-[416px] overflow-y-auto p-1",children:ee.length>0?ee.map(e=>{var t;return(0,o.jsx)(A,{model:e.model,isSelected:(null==U?void 0:null===(t=U.model)||void 0===t?void 0:t.slug)===e.value,onChange:()=>Y(e.model)},e.value)}):(0,o.jsx)("div",{className:"px-4 py-3 text-center text-xs text-text-shade-3",children:K.sceneGen.selectModelPopup.noResults})})]})})}):null):null]})}},54822:function(e,t,i){"use strict";i.d(t,{CK:function(){return s},LI:function(){return r},SJ:function(){return d},TT:function(){return h},XJ:function(){return m},Xx:function(){return f},d5:function(){return l},e2:function(){return o},ev:function(){return u},fW:function(){return a},kr:function(){return c}});let o="studio-glass-card studio-dropdown-panel rounded-[16px]",n="animate__animated animate__faster animate__fadeIn dropdown-options relative z-50 ".concat(o),r=o,a=o,l="".concat(o," model-selector-dropdown-panel"),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c(e)},d=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return c({width:266,minWidth:266,maxWidth:266,padding:12,gap:16,...e})},u={boxShadow:"none",backdropFilter:"blur(40px) saturate(1.4)",WebkitBackdropFilter:"blur(40px) saturate(1.4)"},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{...u,display:"flex",flexDirection:"column",padding:16,gap:12,...e}},p=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{className:n,style:c({marginTop:10,width:232,minWidth:232,maxWidth:232,padding:16,gap:0,alignItems:"stretch",...e})}},m=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i="rtl"===e;return{withPortal:!0,position:"bottom-right",portalAlignEnd:!i,portalAlignStart:i,rootClassName:"relative w-fit shrink-0",optionsRootClassName:"w-auto right-0 left-auto h-0 overflow-visible",optionsInnerClassName:"w-full",optionsWrapperStyles:p(t)}},h=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{className:n,style:c(e)}},f=e=>{let{getDirection:t}=e,i="rtl"===t;return{portalAlignStart:i,portalAlignEnd:!i,optionsWrapperStyles:h({margin:0,minWidth:200,zIndex:999999999,direction:t})}}},5785:function(e,t,i){"use strict";i.d(t,{Z:function(){return Z}});var o=i(85893),n=i(83042),r=i(46321),a=i(3258),l=i(31155),s=i(46485),d=i(96928),u=i(87251),c=i(26700),p=i(11163),m=i(67294),h=i(5405),f=i(10847),v=i(54482),g=i(20931),y=i(74807),b=i(25617),A=i(90446),x=i(915),w=i(33443),_=i(68419),S=i(41614),C=i(94214),k=i(73187),T=i(47095),E=i(38715),P=i(54178);let I=e=>{let{file_name:t,type:i,source:o}=e;return new Promise(async(e,n)=>{C.D.init({file_name:t,type:i,source:o},t=>{let{data:i}=t;e(i)},()=>{n()})})},D=e=>new Promise((t,i)=>{C.D.complete(e,()=>{t({})},()=>{})}),O=e=>new Promise(async(t,i)=>{await D({upload_id:e}),t({}),(0,T.bZ)({name:"".concat(e)}),(0,T.bZ)({name:"progress-".concat(e)})}),N=(e,t)=>{let i=t===P.ZP.VIDEO_SOURCES.VIDEO_EDITOR?8388608:52428800;return async(o,n)=>new Promise(async(r,a)=>{let{start:l,end:d,partNumber:u}=n().Upload.files.find(t=>t.id===(null==e?void 0:e.id))||{start:void 0,end:void 0,partNumber:void 0}
1,c=e.file.size,p=l||0,m=d||Math.min(i,c),h=u||1,f=async t=>{let a=new XMLHttpRequest,l=e.file.slice(p,m);a.upload.addEventListener("progress",t=>{if(t.lengthComputable){let i=Math.round((p+t.loaded)/c*100);o(k.Z.uploadProgress(e.id,i))}}),a.onreadystatechange=async function(){if(4===a.readyState){let e=JSON.parse((0,T.PM)({name:"".concat((null==t?void 0:t.upload_id)||(null==t?void 0:t.uploadId))}))||[];e.push({PartNumber:h}),(0,T.m8)({name:"".concat((null==t?void 0:t.upload_id)||(null==t?void 0:t.uploadId)),value:JSON.stringify(e)})}},a.addEventListener("load",async()=>{if(a.status>=200&&a.status<=308){if(308===a.status)(0,s.hn)(e.id,n=>{if(n){h++,p=m,m=Math.min(m+i,c),o(k.Z.updateUploadState(e.id,p,m,h)),f(t);return}(0,E.JQ)("refreshAlertScriptMainVideo"),a.abort()});else if(200===a.status||201===a.status){let i=n().Upload.files.filter(t=>("success"===t.status||"failure"===t.status||100===t.progress)&&t.id===e.id);(null==i?void 0:i.length)?(o(k.Z.uploadSuccess(e.id)),await O((null==t?void 0:t.upload_id)||(null==t?void 0:t.uploadId)),(0,E.JQ)("refreshAlertScriptMainVideo"),r({upload_id:(null==t?void 0:t.upload_id)||(null==t?void 0:t.uploadId),file:e})):o(k.Z.uploadProgress(e.id,100))}}else a.abort(),o(k.Z.uploadFailure(e.id,a.statusText))}),a.addEventListener("error",()=>{a.abort(),o(k.Z.uploadFailure(e.id,a.statusText))}),a.open("PUT",null==t?void 0:t.url,!0),a.setRequestHeader("Content-Type","application/octet-stream"),a.setRequestHeader("Content-Range","bytes ".concat(p,"-").concat(m-1,"/").concat(c)),a.send(l)};if(void 0===l||void 0===d||void 0===u){(0,E.Nr)("refreshAlertScriptMainVideo");let i=await I({file_name:null==e?void 0:e.name,source:t});(0,s.ET)({...e,uploadId:null==i?void 0:i.upload_id,url:null==i?void 0:i.url}),f(i),o(k.Z.uploadStart(e.id))}else(0,E.Nr)("refreshAlertScriptMainVideo"),f(e),o(k.Z.uploadStart(e.id)),o(k.Z.uploadProgress(e.id,Math.round(p/c*100)))})};var j=i(91167),M=i(85518),R=i(82821),z=i(96019),L=i(29618),V=i(38105),F=i(78996);let U=h.ZP.div.withConfig({componentId:"sc-67da4aa3-0"})(["padding-block:80px;display:flex;align-items:center;flex-direction:column;justify-content:center;background-color:",";border-radius:8px;margin-top:16px;",";cursor:pointer;transition:all 300ms;& .toggler-icon{transition:all 300ms;& svg{transition:all 300ms;}}& .toggler{transition:all 300ms;}&:hover{border-color:var(--secondary-color);& .toggler{text-decoration:underline;}& .toggler-icon{opacity:1 !important;& svg{fill:var(--secondary-color) !important;}}}.drop-area-focused{border-color:var(--secondary-color);& .toggler{text-decoration:underline;}& .toggler-icon{opacity:1 !important;& svg{fill:var(--secondary-color) !important;}}}",""],f.theme.extend.colors["shade-2"],e=>"light"===e.$mode?"border: 2px dashed #C2C2C2;\n":"border: 2px dashed rgba(255, 255, 255, 0.7);\n    ",e=>(null==e?void 0:e.canUploadMobile)?"":"\n  @media (max-width: 900px) {\n    display: none;\n  }\n  \n  "),G=h.ZP.p.withConfig({componentId:"sc-67da4aa3-1"})(["@media (max-width:430px){font-size:12px;line-height:18px;}"]),B=h.ZP.div.withConfig({componentId:"sc-67da4aa3-2"})(["display:none;margin-top:24px;",""],e=>(null==e?void 0:e.$showOnMobile)?"\n  @media (max-width: 900px) {\n    display: block;\n  }  \n  ":"");var Z=e=>{let t=(0,b.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.Auth)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.subscription}),i=(0,b.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.Auth)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.storage_used}),{mode:h}=(0,b.v9)(e=>e.Theme),f=(0,b.I0)(),[C,k]=m.useState(""),{isMedia:T,toolFlow:E,isAiStudioFlow:I}=e,D=m.useRef(),O=(0,p.useRouter)(),[Z,q]=(0,m.useState)(Boolean),[H,W]=(0,m.useState)(Boolean),Y=(0,u.Z)(),K=m.useRef(),Q=m.useRef(),{dispatchGlobalState:$}=(0,d.Z)(),{createVideo:X,dispatch:J}=(0,c.Z)(),{toggleProPlanInfoPopup:ee}=(0,w.Z)(),{invalidateStudioVideos:et}=(0,F.useInvalidateQueries)(),{detectMediaAssetsChagnes:ei}=(0,v.Z)(),eo=async e=>{let{upload_id:t,file:i}=e;sessionStorage.removeItem("actionAfterLogin");let o=await X({name:null==i?void 0:i.originalName,upload_id:t,source:I?P.ZP.VIDEO_SOURCES.SMART_CLIPPER:P.ZP.VIDEO_SOURCES.VIDEO_EDITOR});et(),(0,s.ET)({...i,uploadId:t,uploadCompleted:!0,uploadedFileInfo:null==o?void 0:o.data}
1,()=>{var e,n;f(V.ZP.studioStoreVideo({...i,uploadId:t,id:null==o?void 0:null===(e=o.data)||void 0===e?void 0:e.id,uploadCompleted:!0,uploadedFileInfo:null==o?void 0:o.data,isReady:!0})),I||f(A.ZP.updateMainVideoData({video:{...i,id:null==o?void 0:null===(n=o.data)||void 0===n?void 0:n.id,uploadId:t,uploadCompleted:!0,uploadedFileInfo:null==o?void 0:o.data}})),(M.tq||I)&&(W(!1),J(z.ZP.toggleRefresh()),O.asPath.includes("/studio/create-video/[videoId]/publisher")&&O.push(g.P2.STUDIO_AI_MAIN),$({type:l.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}}))})},en=()=>new Promise(e=>{f(A.ZP.clearEditorState()),f(x.ZP.clearResizerState()),f(L.Z.clearVideoAssets()),(0,s.J7)(),e({})}),er=()=>$({type:l.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}}),ea=async e=>{var t,i;M.tq&&W(!0),eo(await f(N(null==e?void 0:e.fileMeta,I?null===(t=P.ZP.VIDEO_SOURCES)||void 0===t?void 0:t.SMART_CLIPPER:null===(i=P.ZP.VIDEO_SOURCES)||void 0===i?void 0:i.VIDEO_EDITOR)))},el=async n=>{if(!(null==t?void 0:t.is_subscribed)&&i>g.zI){ee({trigger_source:"storage_upgrade"});return}q(!0);try{await en();let i=await (0,a.cJ)(n,null,{maxFileSize:I?g.zX:(null==t?void 0:t.is_subscribed)?g.R0:g.cn,aspectRatio:I?["16:9","9:16"]:null});if(await (0,s.pp)(null==i?void 0:i.fileMeta),f(V.ZP.studioStoreVideo({...null==i?void 0:i.fileMeta,isReady:!1})),f((0,_.bG)()),ea(i),E)q(!1),$({type:l.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}});else if(I);else if(M.tq);else{let t=setTimeout(()=>{var o,n,r;(null==i?void 0:null===(o=i.fileMeta)||void 0===o?void 0:o.aspectRatio)===P.ZP.ASPECT_RATIO_VALUES.PORTRAIT?O.push("".concat((null==e?void 0:e.redirectTo)||"/studio/create-video/".concat(null==i?void 0:null===(n=i.fileMeta)||void 0===n?void 0:n.id,"/editor/layers"))):O.push((null==e?void 0:e.redirectTo)||"/studio/create-video/".concat(null==i?void 0:null===(r=i.fileMeta)||void 0===r?void 0:r.id,"/resizer")),clearTimeout(t)})}}catch(e){switch(D.current.value=null,null==e?void 0:e.status){case g.eE.NO_DIMENSIONS:$({type:l.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(y.Z,{header:Y.createVideo.uploadModal.noDimensions.header,title:(0,o.jsxs)(o.Fragment,{children:[Y.createVideo.uploadModal.noDimensions.title," ",(0,o.jsx)("span",{className:"text-secondary",children:Y.createVideo.uploadModal.noDimensions.title1})," ",Y.createVideo.uploadModal.noDimensions.title2]}),actionText:Y.createVideo.uploadModal.noDimensions.close,onActionClicked:er,titleClassName:"text-center",svgSrc:"/icons/info-circle.svg",icon:(0,o.jsx)("span",{style:{fontSize:36},children:"\uD83D\uDE1E"})})}});return;case g.eE.NOT_SUPPORTED:var r;$({type:l.BT.TOAST_STATE_CHANGED,payload:{open:!0,type:"success",position:"right-bottom",message:Y.global.fileTypeNotSupported({videoType:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.type}),time:5e3}});return;case g.eE.NO_AUDIO:$({type:l.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(y.Z,{header:Y.createVideo.uploadModal.errors.header,title:(0,o.jsxs)(o.Fragment,{children:[Y.createVideo.uploadModal.errors.title," ",(0,o.jsx)("span",{className:"text-secondary",children:Y.createVideo.uploadModal.errors.title1})," ",Y.createVideo.uploadModal.errors.title2]}),actionText:Y.createVideo.uploadModal.errors.close,onActionClicked:er,titleClassName:"text-center",svgSrc:"/icons/info-circle.svg",icon:(0,o.jsx)("span",{style:{fontSize:36},children:"\uD83D\uDE1E"})})}});return;case g.eE.ASPECT_RATIO:$({type:l.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(y.Z,{header:Y.createVideo.uploadModal.aspectRatio.header,title:(0,o.jsxs)(o.Fragment,{children:[Y.createVideo.uploadModal.aspectRatio.title," ",Y.createVideo.uploadModal.aspectRatio.title1," ",(0,o.jsx)("span",{className:"text-secondary",children:Y.createVideo.uploadModal.aspectRatio.title2})," "]}),actionText:Y.createVideo.uploadModal.aspectRatio.close,onActionClicked:er,titleClassName:"text-center",iconPath:"/icons/info-circle.svg"})}});return;case g.eE.SIZE_LIMIT:k(I?Y.createVideo.uploadModal.smartClipperSize.message:(null==t?void 0:t.is_subscribed)?Y.createVideo.uploadModal.sizePro.message:Y.createVideo.uploadModal.size.message);return}}finally{q(!1)}},es=async e=>{q(!0);try{let t=await (0,a.cJ)(e,g.Zo);D.current.value=null,(0,s.Zg)(null==t?void 0:t.fileMeta,()=>{ei()})}catch(e){switch(D.current.value=null,null==e?void 0:e.status){case g.eE.NOT_SUPPORTED:var t;$({type:l.BT.TOAST_STATE_CHANGED,payload:{open:!0,type:"success",position:"right-bottom",message:Y.global.fileTypeNotSupported({videoType:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.type}),time:5e3}});case g.eE.SIZE_LIMIT:$({type:l.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(y.Z,{icon:(0,o.jsx)(r.Z,{src:"/icons/info-circle.svg",width:"40px",height:"40px",stroke:"var(--secondary-color)"}),title:(0,o.jsxs)("span",{className:"small-text text-center block",children:[Y.global.sizeLimit,(0,o.jsxs)("span",{className:"block text-center mt-3",children:[Y.global.sizeLimitMaxDescription," ",(0,o.jsx)("span",{className:"text-secondary",children:Y.global.maxSizeLimit})]})]}),actionText:Y.global.close,onActionClicked:er})}})}}finally{q(!1)}};return(0,o.jsxs)(n.Z,{fileInputRef:D,triggerElementRef:K,triggerElementRefForButton:Q,onFileUpload:T?es:el,clear:!0,accept:T?"video/*,image/*,audio/*":"video/*",dropAreaRef:"drop-area",multiple:!1,loading:Z,children:[(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(0,o.jsx)("span",{className:"medium-text text-white-80",children:Y.createVideo.uploadModal.upload.title}),(0,o.jsxs)("span",{className:"x-small-text ".concat(h===g.uX.LIGHT?"text-shade-3":"text-white-65"),children:[I?Y.createVideo.uploadModal.smartClipperSize.title:(null==t?void 0:t.is_subscribed)?Y.createVideo.uploadModal.sizePro.title:Y.createVideo.uploadModal.size.title,"light"===h?(0,o.jsx)("span",{className:"text-secondary",children:I?Y.createVideo.uploadModal.smartClipperSize.title1:(null==t?void 0:t.is_subscribed)?Y.createVideo.uploadModal.sizePro.title1:Y.createVideo.uploadModal.size.title1}):(0,o.jsx)(S.M,{children:I?Y.createVideo.uploadModal.smartClipperSize.title1:(null==t?void 0:t.is_subscribed)?Y.createVideo.uploadModal.sizePro.title1:Y.createVideo.uploadModal.size.title1})]})]}),(0,o.jsx)(B,{$showOnMobile:!I,ref:Q,children:(0,o.jsxs)(j.Z,{type:"secondary",size:"small",className:"w-full animate__animated animate__fadeIn",style:{padding:"11.59px 17.67px"},disabled:H,children:[H&&(0,o.jsx)(R.Z,{size:"xSmall"}),(0,o.jsx)("span",{className:"small-text",children:Y.createVideo.uploadModal.upload.title})]})}),(0,o.jsxs)(U,{$canUploadMobile:I,ref:K,className:"drop-area",$mode:h,children:[(0,o.jsx)("div",{style:{width:32,height:32},children:(0,o.jsx)(r.Z,{src:"/icons/export.svg",width:"32px",height:"32px",fill:"light"===h?"var(--shade-3)":"#fff",className:" toggler-icon"})}),(0,o.jsxs)(G,{className:"mt-4 small-text text-center ".concat(h===g.uX.LIGHT?"text-shade-3":"text-white-80"),children:[(0,o.jsxs)("span",{children:[Y.createVideo.uploadModal.upload.dragBox," ",(0,o.jsx)("br",{}),Y.createVideo.uploadModal.upload.or]}),"light"===h?(0,o.jsx)("span",{className:"text-secondary",children:Y.createVideo.uploadModal.upload.browse}):(0,o.jsx)(S.M,{children:Y.createVideo.uploadModal.upload.browse}),(0,o.jsx)("span",{children:Y.createVideo.uploadModal.upload.dragBox1})]}),C&&(0,o.jsx)("span",{className:"block small-text",style:{color:"#EA3232"},children:C})]})]})}},74439:function(e,t,i){"use strict";var o=i(85893);
1i(67294);var n=i(5405),r=i(5785);let a=n.ZP.div.withConfig({componentId:"sc-5444051b-0"})(["max-width:694px;min-width:694px;width:100%;padding:56px;background:var(--shade);border-radius:16px;@media (max-width:760px){max-width:100%;min-width:100%;padding:40px 24px;}@media ( min-width:200px ) and (max-width:340px){max-width:100%;min-width:100%;padding:40px 10px;}"]);t.Z=e=>{let{toolFlow:t}=e;return(0,o.jsx)(a,{children:(0,o.jsx)(r.Z,{changeState:null==e?void 0:e.changeState,redirectTo:null==e?void 0:e.redirectTo,isMedia:null==e?void 0:e.isMedia,toolFlow:t})})}},61411:function(e,t,i){"use strict";var o=i(85893),n=i(91167),r=i(91729),a=i(93046),l=i(46321),s=i(41614),d=i(20333),u=i(20931),c=i(31155),p=i(27524),m=i(87251),h=i(90549),f=i(90238),v=i(8715),g=i(67294);let y={videos:"ai shorts",avatars:"ai avatar",voiceovers:"text to speech"};t.Z=e=>{let{flow:t,tool_name:i,required_credits:b,requiredCreditsContext:A,proPlanPaymentFlowPopupOptions:x}=e,w=(0,m.Z)(),{language:_}=g.useContext(p.AZ),[,S]=g.useContext(c.kn),{isSubscribed:C,userState:k}=(0,h.Z)();return g.useEffect(()=>{var o,n;let r=Number(null==k?void 0:null===(o=k.credits)||void 0===o?void 0:o.total)-Number(null==k?void 0:null===(n=k.credits)||void 0===n?void 0:n.used),a=null!=i?i:y[t],l=(0,v.P)(null==e?void 0:e.creditLimitError,b,{tool_name:a,context:A});f.ZP.trackCreditLimitHit({tool_name:a,required_credits:l,current_credits:r,trigger_source:"credits_usage_limit_popup"})},[]),(0,o.jsxs)(r.J9,{children:[(0,o.jsx)(d.Z,{src:"".concat(u.TU,"/pro-plan/PaymentFlow_Animation03.mp4"),autoPlay:!0,loop:!0,playsInline:!0}),(0,o.jsxs)("div",{className:"p-16 w-full flex flex-col items-center justify-center gap-6",children:[(0,o.jsx)(l.Z,{src:"/icons/info-circle.svg",width:"40px",height:"40px",stroke:"var(--secondary-color)"}),(0,o.jsxs)("div",{className:"flex flex-col items-center gap-4",children:[(0,o.jsx)(s.M,{className:"text-xl",children:(0,o.jsxs)("div",{style:{lineHeight:"1.95rem"},children:[w.textToVideo.limitationPopup.title," ",_===u.H7.AR.value&&w.textToVideo.limitationPopup.inTitle[t]]})}),(0,o.jsxs)("span",{className:"text-center text-white-65 text-sm",children:[w.textToVideo.limitationPopup.description," ",w.textToVideo.limitationPopup[t]]})]}),(0,o.jsx)(n.Z,{type:"secondary",size:"large",onClick:()=>{S({type:c.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:C?(0,o.jsx)(r.ZP,{paymentFlowProps:{flow:u.SC.UPDATE,currentTab:"oneTimePayment",trigger_source:"credit_limit_hit"}}):(0,o.jsx)(a.ZP,{trigger_source:"credit_limit_hit"}),...x}})},children:(0,o.jsx)("span",{children:w.textToVideo.limitationPopup.addMinutes})})]})]})}},82094:function(e,t,i){"use strict";var o=i(85893),n=i(46321),r=i(90549);t.Z=e=>{let{width:t="16px",height:i="16px"}=e,{isSubscribed:a,hasPaidHistory:l}=(0,r.Z)();return a||l?null:(0,o.jsx)(n.Z,{src:"/icons/crown-gold.svg",width:t,height:i})}},91167:function(e,t,i){"use strict";i(67294);var o=i(5405),n=i(10847);let r="\n    background: ".concat(n.theme.extend.colors.primary,";\n"),a="\n    background: ".concat(n.theme.extend.colors["fire-red"],";\n"),l="\n  background: ".concat(n.theme.extend.colors.accent,";\n"),s="\n  background: ".concat(n.theme.extend.colors["shade-2"],";\n  border: 1px solid ").concat(n.theme.extend.colors["shade-2"],";\n"),d="\n  border: 1px solid ".concat(n.theme.extend.colors["shade-2"],";\n"),u="\n    background-color: ".concat(e=>null==e?void 0:e.bg,";\n"),c=e=>"\n  color: var(--ph-color);\n  background:\n    linear-gradient(0deg, rgba(".concat(e,", 0.2), rgba(").concat(e,", 0.2)),\n    linear-gradient(141.89deg, rgba(0, 0, 0, 0) -27.97%, rgba(").concat(e,', 0.5) 82.62%)\n    padding-box;\n\n  &::after {\n    content: "";\n    position: absolute;\n    inset: 0;\n    width: 100%;\n    height: 100%;\n    background: var(--shade-2) padding-box;\n    border-radius: inherit;\n    border: 1.5px solid transparent;\n    pointer-events: none;\n    z-index: 0;\n  }\n\n  & > * {\n    position: relative;\n    z-index: 1;\n  }\n\n  [data-theme="light"] &::after {\n    background: var(--shade) padding-box;\n  }\n'),p=o.ZP.button.withConfig({shouldForwardProp:e=>"string"==typeof e&&"gradientTint"!==e}).attrs(e=>{var t;return{type:e.btnType,$btnType:e.type,$size:e.size,$outlineGradientBg:e.outlineGradientBg,$bg:e.bg,$shape:e.shape,$gradientTint:null!==(t=e.gradientTint)&&void 0!==t?t:"139, 192, 223"}}).withConfig({componentId:"sc-40c3140c-0"})(["display:flex;flex-direction:row;justify-content:center;align-items:center;color:white;
1transition:box-shadow 300ms,border-color 300ms,background-color 300ms,transform 300ms;position:relative;top:0;"," &:disabled{cursor:not-allowed;opacity:0.7;}"," "," ",";"," &:active:not(:disabled){transform:scale(0.98);}&:hover:not(:disabled){"," ","}"],e=>{switch(e.$shape){case"small":return"\n        border-radius: 6px;\n        ";case"medium":default:return"\n        border-radius: var(--border-radius-2);\n        ";case"large":return"\n        border-radius: var(--border-radius-6);\n        "}},e=>{switch(e.$size){case"x-small":return"\npadding: 6px 10.75px;\ngap: 10px;\n\n@media (max-width: 700px) {\n  padding: 6px 10.75px;\n  gap: 10px;\n}\n";case"small":return"\npadding: 11.59px 17.67px;\ngap: 10px;\n\n@media (max-width: 700px) {\n  padding: 6px 10.75px;\n  gap: 10px;\n}\n";case"medium":default:return"\npadding: 14.73px 35.75px;\ngap: 10px;\n\n@media (max-width: 700px) {\n  padding: 11.59px 17.67px;\n  gap: 10px;\n}\n\n";case"large":return"\npadding: 15px 30px;\ngap: 10px;\n\n@media (max-width: 700px) {\n  padding: 14.73px 35.75px;\n  gap: 10px;\n}\n\n";case"social":return"\npadding: 12px 24px;\ngap: 72px;\n"}},e=>{switch(e.$btnType){case"primary":return r;case"danger":return a;case"secondary":case"lightmode-secondary":default:return'\n  background: var(--cta-gradient);\n  border: none;\n  color: #ffffff;\n\n  [data-theme="light"] & {\n    background: var(--cta-gradient);\n    color: #ffffff;\n  }\n';case"accent":return l;case"shade-2":return s;case"outline":return d;case"outline-gradient":case"outline-secondary":return"\n  border: 1px solid var(--secondary-color);\n";case"text":return"\n";case"social":return u;case"gradient-tint":return c(e.$gradientTint)}},e=>"outline-gradient"===e.$btnType?"\n    &:after{\n      background: ".concat((null==e?void 0:e.$outlineGradientBg)||"var(--primary-color)",";\n      linear-gradient(135deg, #6d5dd3 36.56%, #5da8d3 100%) border-box;\n    }\n\n    &:after , &:before{\n    border-radius: ").concat("small"===e.$shape?"6px":"9999px",";\n    }\n  "):"",e=>{if("social"===e.$btnType)return"\n      background-color: ".concat(e.$bg,";\n      ")},e=>{switch(e.$btnType){case"primary":return'\nbox-shadow: 0px 0px 32px rgba(110, 94, 211, 0.7);\n[data-theme="light"] & {\n  box-shadow: 0px 0px 32px rgba(0,0,0, 0.7);\n}\n';case"secondary":case"lightmode-secondary":return"\n  box-shadow: 0px 0px 32px rgba(81, 113, 207, 0.55);\n  filter: brightness(1.06);\n";case"danger":return"\n  box-shadow: 0px 0px 32px rgba(200, 32, 32, 0.7);\n";case"outline":return d;case"gradient-tint":return"filter: brightness(1.08);";default:return""}},e=>"x-small"===e.$size?"\n        ":"");t.Z=p},3136:function(e,t,i){"use strict";var o=i(85893),n=i(82094),r=i(46321);i(67294);var a=i(5405),l=i(10847);let s=a.ZP.div.withConfig({componentId:"sc-88e3ca20-0"})(["display:flex;flex-direction:row;align-items:center;width:100%;padding:0px;gap:10px;"," & span{transition:all 300ms;}&:not(:first-child){margin-top:4px;}",""],e=>e.$disabled?"\n    user-select: none;\n    pointer-events: none;\n    opacity: 0.1;\n  ":"".concat((null==e?void 0:e.$noInteraction)?"cursor: pointer;":""),e=>(null==e?void 0:e.$noInteraction)?"":"\n    cursor: pointer;\n    &:hover {\n      & span {\n          color: var(--secondary-color);\n          opacity: 1;\n      }\n      & svg {\n        ".concat((null==e?void 0:e.$isStroke)?"stroke: var(--secondary-color) !important;":"fill: var(--secondary-color) !important;","\n      }\n    }"));t.Z=e=>{var t,i,a,d,u;return(0,o.jsxs)(s,{onClick:t=>{!e.disabled&&e.onClick&&e.onClick(t)},$disabled:!!e.disabled,$isStroke:!!(null==e?void 0:null===(t=e.svgOptions)||void 0===t?void 0:t.stroke),$noInteraction:e.noInteraction,className:e.className,style:e.style,children:[e.prefix?e.prefix:null,(null==e?void 0:e.svgSrc)&&(0,o.jsx)(r.Z,{src:e.svgSrc,width:(null===(i=e.svgSize)||void 0===i?void 0:i.width)||"16px",height:(null===(a=e.svgSize)||void 0===a?void 0:a.height)||"16px",...null==e?void 0:e.svgOptions,...(null==e?void 0:null===(d=e.svgOptions)||void 0===d?void 0:d.stroke)?{stroke:!0===e.svgOptions.stroke?l.theme.extend.colors["ph-color"]:e.svgOptions.stroke}:{fill:(null===(u=e.svgOptions)||void 0===u?void 0:u.fill)||l.theme.extend.colors["ph-color"]}}),(0,o.jsx)("span",{className:"small-text ".concat((null==e?void 0:e.isActive)?"text-secondary":"text-ph-color "),style:e.labelStyle,children:e.label}),null==e?void 0:e.children,(null==e?void 0:e.isPaid)&&(0,o.jsx)(n.Z,{width:"14px",height:"14px"})]})}},83953:function(e,t,i){"use strict";i.d(t,{Nc:function(){return d},es:function(){return s},rs:function(){return u},wV:function(){return l}});var o=i(41664),n=i.n(o),r=i(5405);let a=(0,r.iv)(["display:flex;width:100%;align-items:center;padding:0;color:var(--custom-white);text-decoration:none;cursor:pointer;transition:color 0.2s ease;&:hover{color:var(--secondary-color);span{color:inherit !important;}svg{color:inherit;fill:none !important;stroke:currentColor !important;}}"]),l=r.ZP.div.withConfig({componentId:"sc-aa72fad2-0"})(["",""],a),s=(0,r.ZP)(n()).withConfig({componentId:"sc-aa72fad2-1"})(["",""],a),d=r.ZP.button.withConfig({componentId:"sc-aa72fad2-2"})([""," border:none;background:transparent;font:inherit;text-align:inherit;"],a),u=(0,r.ZP)(n()).withConfig({componentId:"sc-aa72fad2-3"})(["",""],a)},25630:function(e,t,i){"use strict";var o=i(85893),n=i(14998),r=i(46321),a=i(94115),l=i(67294),s=i(5405),d=i(10847);let u=s.ZP.div.withConfig({componentId:"sc-f68bcf40-0"})(["position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:12px 16px;gap:10px;background:",";border-radius:8px;transition:all 200ms;& .dropdown-icon{position:relative;}&:hover{background:","}& *:not(.dropdown-options >){user-select:none;}"],e=>e.$bg?e.$bg:d.theme.extend.colors.accent,(0,a.o)(d.theme.extend.colors.accent,"string",.7)),c=s.ZP.div.withConfig({componentId:"sc-f68bcf40-1"})(["display:flex;flex-direction:column;align-items:flex-start;padding:16px;gap:13px;background:var(--shade-2);box-shadow:0px 4px 6px rgba(0,0,0,0.2);border-radius:8px;position:absolute;"," margin-top:10px;top:100%;"],e=>{switch(e.position){case"top-left":case"top-right":return"\n      left: 0;\n      ";case"bottom-right":return'\n      right: 0;\n      [dir="rtl"] & {\n        right: unset;\n        left: 0;\n      }\n      ';case"bottom-left":return'\n      left: 0;\n      [dir="rtl"] & {\n        left: unset;\n        right: 0;\n      }\n      ';default:return""}}),p=s.ZP.div.withConfig({componentId:"sc-f68bcf40-2"})(["position:fixed;left:0;top:0;right:0;bottom:0;z-index:40;cursor:auto;"]),m=s.ZP.div.withConfig({componentId:"sc-f68bcf40-3"})(["",""],e=>{switch(e.$position){case"top-left":return"\n      top: -200%;\n      ".concat("ltr"===e.$dir?"left: 0;":"right: 0;","\n      ");case"top-right":return"\n      top: -200%;\n      ".concat("ltr"===e.$dir?"right: 0;":"left: 0;","\n      ");case"bottom-right":case"bottom-left":return"\n      top: 100%;\n      ".concat("ltr"===e.$dir?"left: 0;":"right: 0;","\n      ");default:return""}});t.Z=e=>{var t,i,a,s,h,f,v;let[g,y]=l.useState(Boolean),b=l.useRef(),A=l.useRef(null),x=l.useRef(),w=l.useRef(),_=t=>{var i;t.stopPropagation(),t.preventDefault();let o=!g;y(o),null===(i=e.onOpenChange)||void 0===i||i.call(e,o);let n=document.querySelector(".".concat(e.containerRoot));b&&b.current&&!b.current.classList.contains("dropdown-open")&&b.current.classList.toggle("dropdown-open"),n&&n.classList.toggle("z-top-important")};return e.useChildren?(0,o.jsxs)("div",{ref:A,className:"dropdown-wrapper  ".concat(null!==(s=e.rootClassName)&&void 0!==s?s:"relative"),onClick:_,onMouseEnter:e=>{e.preventDefault(),e.stopPropagation()},style:null==e?void 0:e.rootStyle,children:[e.children,(0,o.jsx)(m,{ref:w,$dir:e.dir,dir:e.dir,$position:e.position,className:"absolute w-full ".concat(e.optionsRootClassName),style:e.style,children:g&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p,{style:e.overlayStyle}),(null==e?void 0:e.withPortal)?(0,o.jsx)(n.Z,{target:null!==(h=A.current)&&void 0!==h?h:w.current,addToLeft:!e.portalAlignStart&&!e.portalAlignEnd&&"ltr"===e.dir,addToRight:!e.portalAlignStart&&!e.portalAlignEnd&&"rtl"===e.dir,alignStart:e.portalAlignStart,alignEnd:e.portalAlignEnd,children:(0,o.jsx)(c,{ref:x,position:e.position,className:"animate__animated animate__faster animate__fadeIn dropdown-options relative z-50",style:{margin:0,zIndex:999999999,minWidth:200},...null==e?void 0:e.optionsWrapperStyles,children:(0,o.jsx)("div",{className:null!==(f=e.optionsInnerClassName)&&void 0!==f?f:e.withPortal?"w-max":"w-full",children:e.options})})}):(0,o.jsx)(c,{ref:x,position:e.position,className:"animate__animated animate__faster animate__fadeIn dropdown-options relative z-50",style:{margin:0,zIndex:999999999,minWidth:200},...null==e?void 0:e.optionsWrapperStyles,children:(0,o.jsx)("div",{className:"w-full",children:e.options})})]})})]}):(0,o.jsxs)(u,{$bg:e.bg,ref:b,onClick:_,className:"dropdown-wrapper ".concat(e.rootClassName||""),onMouseEnter:e=>{e.preventDefault(),e.stopPropagation()},style:null==e?void 0:e.rootStyle,children:[e.children,(0,o.jsx)(r.Z,{src:(null==e?void 0:null===(t=e.dropDownIcon)||void 0===t?void 0:t.src)||"/icons/arrow-down.svg",className:"dropdown-icon ".concat(null===(i=e.dropDownIcon)||void 0===i?void 0:i.className),..."large"===(v=(null==e?void 0:null===(a=e.dropDownIcon)||void 0===a?void 0:a.size)||"small")?{width:"24px",height:"24px"}:"mid"===v?{width:"20px",height:"20px"}:"x-small"===v?{width:"16px",height:"16px"}:"x-small-2"===v?{width:"12px",height:"12px"}:void 0,fill:d.theme.extend.colors["white-80"]}),(0,o.jsx)("div",{ref:w,className:"absolute top-0 right-0 bottom-0 left-0 cursor-pointer",children:g&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(p,{style:e.overlayStyle}),(null==e?void 0:e.withPortal)?(0,o.jsx)(n.Z,{target:w.current,addToLeft:!0,children:(0,o.jsx)(c,{ref:x,className:"animate__animated animate__faster dropdown-options relative z-50 w-full",children:(0,o.jsx)("div",{children:e.options})})}):(0,o.jsx)(c,{ref:x,...null==e?void 0:e.optionsWrapperStyles,className:"animate__animated animate__faster dropdown-options relative z-50 w-full",children:(0,o.jsx)("div",{children:e.options})})]})})]})}},90310:function(e,t,i){"use strict";var o=i(85893),n=i(67294);class r extends n.Component{static getDerivedStateFromError(e){return{hasError:!0}}componentDidCatch(e,t){}render(){return this.state.hasError?(0,o.jsx)("div",{className:"flex items-center justify-center",children:(0,o.jsx)("h1",{className:"text-white-80 text-lg",children:"Something went wrong. Please try refreshing the page."})}):this.props.children}constructor(...e){super(...e),this.state={hasError:!1}}}t.Z=r},50384:function(e,t,i){"use strict";var o=i(85893),n=i(46321),r=i(67294),a=i(25617),l=i(10847);t.Z=e=>{let[t,i]=r.useState(Boolean),{mode:s}=(0,a.v9)(e=>e.Theme);return(0,o.jsx)("span",{className:"flex justify-center items-center cursor-pointer",onClick:()=>
1{if(e.inputRef){let i=document.getElementById("".concat(e.inputRef));i&&(i.type=t?"password":"text")}i(e=>!e)},id:"show-hide-toggler",children:t?(0,o.jsx)(n.Z,{src:"/icons/eye-slash.svg",width:"24px",height:"24px",stroke:"light"===s?l.theme.extend.colors.black:l.theme.extend.colors["white-80"]}):(0,o.jsx)(n.Z,{src:"/icons/eye.svg",width:"24px",height:"24px",stroke:"light"===s?l.theme.extend.colors.black:l.theme.extend.colors["white-80"]})})}},83042:function(e,t,i){"use strict";i.d(t,{Z:function(){return m}});var o=i(85893),n=i(67294),r=i(73935),a=i(46933),l=i(82821);let s=(0,i(5405).ZP)(a.Z).withConfig({componentId:"sc-34dc6535-0"})(['&::before{content:" ";position:absolute;top:0;right:0;bottom:0;left:0;backdrop-filter:blur(2px);}']);var d=e=>(0,o.jsxs)("div",{className:"".concat(e.className||"relative h-full"),children:[e.children,(null==e?void 0:e.loading)&&(0,o.jsx)(s,{className:"flex items-center justify-center absolute top-0 right-0 bottom-0 left-0",children:(0,o.jsx)(l.Z,{className:"loader",...e.loadingProps})})]}),u=i(52418),c=i(90549);function p(e){e.preventDefault(),e.stopPropagation()}var m=e=>{let t=n.useRef(),i=(null==e?void 0:e.fileInputRef)||n.useRef(),{triggerElementRef:a,triggerElementRefForButton:l,requireAuthGate:s,authGateToolName:m,authGateActionType:h}=e,f=null,{isLoggedIn:v}=(0,c.Z)(),{requireAuth:g,AuthModalComponent:y}=(0,u.ZP)({toolName:null!=m?m:"file-upload",actionType:null!=h?h:"upload",closable:!0}),b=async e=>{if(s){if(v)(null==i?void 0:i.current)&&i.current.click();else try{await g(()=>{(null==i?void 0:i.current)&&i.current.click()})}catch(e){}}else(null==i?void 0:i.current)&&i.current.click()},A=t=>e.onFileUpload(t);function x(e){e.preventDefault(),e.stopPropagation(),f&&f.classList.add("drop-area-focused")}function w(e){e.preventDefault(),e.stopPropagation(),f&&f.classList.remove("drop-area-focused")}function _(e){let t=e.dataTransfer,i=null==t?void 0:t.files;if(null==i?void 0:i.length){if(s)try{g(()=>A(i[0]))}catch(e){}else A(i[0])}}return n.useEffect(()=>{t.current?e.clear&&(i.current.value=null):t.current=!0},[e.clear]),n.useEffect(()=>{if("string"==typeof(null==e?void 0:e.dropAreaRef)){let t=document.getElementsByClassName(null==e?void 0:e.dropAreaRef);(null==t?void 0:t.length)&&(f=t[0])}else(null==e?void 0:e.dropAreaRef)&&(null==e?void 0:e.dropAreaRef.current)&&(f=null==e?void 0:e.dropAreaRef.current);return f&&(["dragleave","drop"].forEach(e=>{f.removeEventListener(e,w,!1)}),["dragenter","dragover"].forEach(e=>{f.removeEventListener(e,x,!1)}),f.removeEventListener("drop",_,!1),["dragenter","dragover","dragleave","drop"].forEach(e=>{f.addEventListener(e,p,!1)}),["dragleave","drop"].forEach(e=>{f.addEventListener(e,w,!1)}),["dragenter","dragover"].forEach(e=>{f.addEventListener(e,x,!1)}),f.addEventListener("drop",_,!1)),()=>{f&&(["dragleave","drop"].forEach(e=>{f.removeEventListener(e,w,!1)}),["dragenter","dragover"].forEach(e=>{f.removeEventListener(e,x,!1)}),f.removeEventListener("drop",_,!1))}},[e.changes,null==e?void 0:e.mediaType,s]),n.useLayoutEffect(()=>(a&&a.current&&(null==a||a.current.addEventListener("click",b,!1)),l&&l.current&&(null==l||l.current.addEventListener("click",b,!1)),()=>{a&&a.current&&(null==a||a.current.removeEventListener("click",b,!1)),l&&l.current&&(null==l||l.current.removeEventListener("click",b,!1))}),[a,l,e]),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(d,{...e.fileUploaderContentWrapperProps,loading:e.loading,loadingProps:e.loadingProps||{},children:e.children}),(0,o.jsx)("input",{ref:i,style:{display:"none"},className:"hidden z-0",type:"file",id:(null==e?void 0:e.id)||"fileUploader",multiple:null==e?void 0:e.multiple,accept:e.accept||"image/*",onChange:function(){i&&i.current&&i.current.files&&i.current.files.length&&(i.current.files.length>1?A(i.current.files):A(i.current.files[0]))},disabled:e.disabled}),s&&"undefined"!=typeof document?r.createPortal(y,document.body):null]})}},91113:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(46321),a=i(5405),l=i(78445),s=i(75446),d=i(96928),u=i(87251),c=i(91369),p=i(10847),m=i(49604),h=i(55746),f=i(90549),v=i(90238),g=i(71494);let y=a.ZP.div.withConfig({componentId:"sc-8ef9c72-0"})(["position:relative;max-width:1392px;width:100%;padding:",";background:",';border-radius:24px;overflow-y:auto;min-height:846px;margin:0 auto;[data-theme="light"] &{background:var(--primary-color);}@media (max-width:768px){padding:24px;}'],e=>{let{$hideBg:t}=e;return t?"0":"40px"},e=>{let{$hideBg:t}=e;return t?"transparent":"var(--shade)"}),b=a.ZP.button.withConfig({componentId:"sc-8ef9c72-1"})(['position:absolute;top:16px;right:16px;background:transparent;border:none;cursor:pointer;z-index:10;display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;transition:background-color 0.2s ease;&:hover{background-color:rgba(255,255,255,0.1);}[lang="ar"] &{left:16px;right:unset;}@media (max-width:768px){top:4px;right:4px;[lang="ar"] &{left:4px;right:unset;}}']),A=a.ZP.h1.withConfig({componentId:"sc-8ef9c72-2"})(["font-size:32px;font-weight:700;text-align:center;color:var(--custom-white);margin-bottom:8px;@media (max-width:768px){font-size:24px;}"]),x=a.ZP.p.withConfig({componentId:"sc-8ef9c72-3"})(['font-size:16px;font-weight:500;text-align:center;color:var(--text-shade-2);margin-bottom:32px;[data-theme="light"] &{color:var(--ph-color);}@media (max-width:768px){font-size:12px;margin-bottom:24px;}']),w=a.ZP.div.withConfig({componentId:"sc-8ef9c72-4"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-top:40px;padding-top:32px;justify-items:stretch;align-items:stretch;@media (max-width:1392px){gap:12px;}@media (max-width:1200px){grid-template-columns:repeat(2,1fr);gap:16px;}@media (max-width:768px){grid-template-columns:1fr;gap:16px;margin-top:24px;}"]),_=a.ZP.div.withConfig({componentId:"sc-8ef9c72-5"})(["margin-top:24px;margin-bottom:0;max-width:100%;@media (max-width:768px){margin-top:16px;}"]),S=a.ZP.div.withConfig({componentId:"sc-8ef9c72-6"})(["display:flex;flex-direction:column;gap:24px;padding:40px 0;"]);t.Z=e=>{let{hideCloseButton:t,trigger_source:i="free_plan_alert"}=e,a=(0,u.Z)("pricing"),{closeModal:C}=(0,d.Z)(),{isClassicSubscriber:k,userState:T}=(0,f.Z)(),{isLoading:E,plansForInterval:P,billingInterval:I,setBillingInterval:D}=(0,h.J)({defaultInterval:"month"}),O=n.useRef(!1);return(n.useEffect(()=>{var e,t;O.current||(O.current=!0,v.ZP.track(g.m_.PAYWALL_VIEWED,{paywall_type:"subscription",trigger_source:i,current_credits:Number(null==T?void 0:null===(e=T.credits)||void 0===e?void 0:e.total)-Number(null==T?void 0:null===(t=T.credits)||void 0===t?void 0:t.used)||void 0,entry_point:"free_plan_alert"}),v.ZP.incrementUserProperty("paywall_view_count"))},[]),E)?(0,o.jsxs)(y,{$hideBg:t,children:[!t&&(0,o.jsx)(b,{onClick:C,children:(0,o.jsx)(r.Z,{src:"/icons/close-circle.svg",width:"24px",height:"24px",stroke:p.theme.extend.colors["white-80"]})}),(0,o.jsx)(A,{className:"font-barlow-condensed",children:(null==a?void 0:a.title)||"Pick a plan that works for you!"}),(0,o.jsx)(x,{children:(null==a?void 0:a.description)||"Create more, in less t
1ime - Pro makes it possible."}),(0,o.jsxs)(S,{children:[(0,o.jsx)(c.Z.SkeletonText,{$width:"100%"}),(0,o.jsx)(c.Z.SkeletonText,{$width:"80%"}),(0,o.jsx)(c.Z.SkeletonText,{$width:"60%"})]})]}):(0,o.jsxs)(y,{$hideBg:t,children:[!t&&(0,o.jsx)(b,{onClick:C,children:(0,o.jsx)(r.Z,{src:"/icons/close-circle.svg",width:"24px",height:"24px",stroke:p.theme.extend.colors["white-80"]})}),(0,o.jsx)(A,{className:"font-barlow-condensed",children:(null==a?void 0:a.title)||"Pick a plan that works for you! gg"}),(0,o.jsx)(x,{children:(null==a?void 0:a.description)||"Create more, in less time - Pro makes it possible."}),!k&&(0,o.jsx)(m.Z,{value:I,onChange:e=>{D(e),v.ZP.track(g.m_.PAYWALL_INTERACTION,{paywall_type:"subscription",action_type:"billing_interval_changed",cta_name:e})},className:"mx-auto",analyticsPosition:"billing_page"}),P.length>0&&(0,o.jsx)(w,{children:P.map(e=>(0,o.jsx)(l.Z,{plan:e,ctaAnalyticsPosition:"billing_page",ctaGradient:!0},null==e?void 0:e.id))}),(0,o.jsx)(_,{children:(0,o.jsx)(s.Z,{disclaimer:a.plansDisclaimer})})]})}},17679:function(e,t,i){"use strict";var o=i(85893),n=i(20931),r=i(45608),a=i(67294),l=i(5405);let s=l.ZP.div.withConfig({componentId:"sc-90d21b34-0"})(["position:relative;"," ",' [data-theme="light"] &{&::before{background:linear-gradient( 270deg,rgba(245,245,245,0) 0%,rgba(245,245,245,0.745) 74.5%,rgb(245,245,245) 100% );}&::after{background:linear-gradient( 90deg,rgba(245,245,245,0) 0%,rgba(245,245,245,0.745) 74.5%,rgb(245,245,245) 100% );}}[dir="rtl"] &{'," ",' [data-theme="light"] &{&::before{background:linear-gradient( 90deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.745) 74.5%,#fff 100% );}&::after{background:linear-gradient( 270deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.745) 74.5%,#fff 100% );}}}'],e=>e.$showStart?(0,l.iv)(['&::before{z-index:9;
1content:"";position:absolute;top:0;bottom:0;left:-1px;width:72px;pointer-events:none;background:linear-gradient( 270deg,rgba(26,26,26,0) 0%,rgba(26,26,26,0.745) 74.5%,rgb(26,26,26) 100% );}@media (max-width:430px){&::before{width:40px;}}']):"",e=>e.$showEnd?(0,l.iv)(['&::after{z-index:9;content:"";position:absolute;top:0;bottom:0;right:-1px;width:72px;pointer-events:none;background:linear-gradient( 90deg,rgba(26,26,26,0) 0%,rgba(26,26,26,0.745) 74.5%,rgb(26,26,26) 100% );}@media (max-width:430px){&::after{width:40px;}}']):"",e=>e.$showStart?(0,l.iv)(["&::before{left:unset;right:-1px;background:linear-gradient( 90deg,rgba(26,26,26,0) 0%,rgba(26,26,26,0.745) 74.5%,rgb(26,26,26) 100% );}"]):"",e=>e.$showEnd?(0,l.iv)(["&::after{right:unset;left:-1px;width:72px;background:linear-gradient( 270deg,rgba(26,26,26,0) 0%,rgba(26,26,26,0.745) 74.5%,rgb(26,26,26) 100% );}"]):""),d=l.ZP.div.withConfig({componentId:"sc-90d21b34-1"})(["display:flex;overflow-x:auto;overflow-y:hidden;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;width:0;height:0;}"]);l.ZP.div.withConfig({componentId:"sc-90d21b34-2"})(["padding:20px 10px;"]),t.Z=e=>{let{direction:t}=e,[i,l]=a.useState(!1),[u,c]=a.useState(!1),p=(null==e?void 0:e.elementRef)||a.useRef();return a.useEffect(()=>{let i=i=>{e.onScroll&&i&&e.onScroll(i);let{scrollWidth:o=0,scrollLeft:a=0,offsetWidth:s=0}=p.current||{},d=Number((0,r.Md)(Math.abs(a),0));t===n.H7.AR.dir?(l(d+s+1<o),c(d>0)):(l(d>0),c(d+s+1<o))};i();let o=p.current;return o.addEventListener("scroll",i),()=>{o.removeEventListener("scroll",i)}},[]),a.useEffect(()=>{if(e.onCanScroll){if(i||u)e.onCanScroll(!0);else{var t;null===(t=e.onCanScroll)||void 0===t||t.call(e,!1)}}},[i,u]),(0,o.jsx)(s,{$showEnd:t===n.H7.AR.dir?i:u,$showStart:t===n.H7.AR.dir?u:i,className:e.className,children:(0,o.jsx)(d,{ref:p,className:e.containerClassName,id:e.id,children:null==e?void 0:e.children})})}},85242:function(e,t,i){"use strict";i(67294);var o=i(5405),n=i(10847);let r="\n    background: ".concat(n.theme.extend.colors.primary,';\n\n    [data-theme="light"] & {\n      background: ').concat(n.theme.extend.colors.accent,";\n    }\n"),a="\n    background: ".concat(n.theme.extend.colors["secondary-gradient"],";\n"),l="\n    background: ".concat(n.theme.extend.colors.shade,";\n"),s="\n    background: ".concat(n.theme.extend.colors["shade-2"],";\n    border: 1px solid ").concat(n.theme.extend.colors["shade-2"],";\n"),d="\n    background: ".concat(n.theme.extend.colors["shade-3"],";\n"),u="\nbackground-color: ".concat(n.theme.extend.colors.accent,";\n"),c="\n    border: 1px solid ".concat(n.theme.extend.colors["shade-2"],";\n"),p=o.ZP.div.attrs(e=>({$type:null==e?void 0:e.type,$size:null==e?void 0:e.size,$effect:null==e?void 0:e.effect,$shape:null==e?void 0:e.shape,$bordered:null==e?void 0:e.bordered,$center:null==e?void 0:e.center,$outlineGradientBg:null==e?void 0:e.outlineGradientBg})).withConfig({componentId:"sc-d72e4ab0-0"})(["display:flex;flex-direction:row;align-items:center;transition:all 500ms;cursor:pointer;& svg{transition:all 0.3s;}"," "," "," "," "," "," "," ",""],e=>(null==e?void 0:e.$noPadding)?"":"\n      padding: 8px;\n      gap: 8px;\n      ",e=>{switch(e.$size){case"x-large":return"\n      width: 50px;\n      height: 50px;\n      ";case"large":return"\n      width: 40px;\n      height: 40px;\n      ";case"medium":return"\n      width: 36px;\n      height: 36px;\n      ";case"small":return"\n      padding: 6px;\n      width: 32px;\n      height: 32px;\n      ";case"x-small":return"\n      padding: 5px ;\n      width: 26px;\n      height: 26px;\n      ";case"xs-small":return"\n      padding: 4px;\n      width: 20px;\n      height: 20px;\n      ";default:return"\n      width: 40px;\n      height: 40px;\n"}},e=>{switch(e.$type){case"primary":return r;case"secondary":return a;case"accent":return u;case"outline":return c;case"outline-gradient":return"\n  position: relative;\n  border: 1px solid var(--secondary-color);\n";case"shade":return l;case"shade-2":return s;case"shade-3":return d;case"eerie-black":return'\n    background: #FFFFFF08;\n    border: 1px solid #9292921A;\n\n    [data-theme="light"] & {\n      background: var(--shade-2);\n    }\n';default:return""}},e=>"hover"===e.$effect?"\n&:hover {\n  & svg {\n    fill: var(--secondary-color) !important;\n  }\n}\n":"",e=>{switch(e.$shape){case"rounded-md":return"\n      border-radius: 0.375rem;\n      ";case"rounded":return"\n      border-radius: var(--border-radius-full);\n      ";case"none":return"\n      border-radius: auto;\n      &:before {\n        border-radius: inherit;\n      }\n      &:after {\n        border-radius: inherit;\n      }\n      ";default:return"\n      border-radius: var(--border-radius-2);\n"}},e=>e.$bordered?"\n    transition: all 100ms;\n  border: 2px solid var(--secondary-color);\n  ":"",e=>
1e.$center?"\n    align-items: center;\n    justify-content: center;\n    ":"",e=>"outline-gradient"===e.$type?"\n    &:after{\n      background: ".concat((null==e?void 0:e.$outlineGradientBg)||"var(--primary-color)",";\n    }\n  "):"");t.Z=p},82029:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(17576),a=i.n(r);let l=n.forwardRef((e,t)=>{var i,r,l,s;let[d,u]=n.useState(()=>!!(e.fallback||e.fallbackElement)&&!e.priority),[c,p]=n.useState(!1),m=n.useRef(null),h=n.useRef(null),f=t||m;return n.useEffect(()=>{e.src&&(u(!!(e.fallback||e.fallbackElement)&&!e.priority),p(!1))},[e.src,e.fallback,e.fallbackElement,e.priority]),n.useEffect(()=>{if(!e.fallbackElement||!e.src||e.priority)return;let t=f.current;if(t)return h.current&&(h.current.disconnect(),h.current=null),h.current=new IntersectionObserver(e=>{e.forEach(e=>{e.isIntersecting&&(u(!1),h.current&&(h.current.unobserve(e.target),h.current.disconnect(),h.current=null))})},e.observerOptions||{threshold:.01,rootMargin:"50px"}),h.current.observe(t),()=>{h.current&&(h.current.disconnect(),h.current=null)}},[e.src,e.fallbackElement,e.observerOptions,e.priority]),e.fallbackElement&&(!e.src||d||c)?(0,o.jsx)("div",{ref:f,className:"w-full h-full ".concat(a().image," ").concat(e.className||""),"data-src":e.src,children:e.fallbackElement}):(0,o.jsx)("img",{...e.imageProps,ref:f,src:d&&e.fallback?e.fallback:e.src,alt:e.alt,onError:()=>p(!0),className:"".concat(a().image," ").concat(e.className||""),onLoad:()=>u(!1),style:e.style,loading:null!==(l=null===(i=e.imageProps)||void 0===i?void 0:i.loading)&&void 0!==l?l:e.priority?"eager":"lazy",decoding:null!==(s=null===(r=e.imageProps)||void 0===r?void 0:r.decoding)&&void 0!==s?s:"async"})});t.Z=n.memo(l)},96946:function(e,t,i){"use strict";var o=i(85893);i(67294);var n=i(45501),r=i.n(n);t.Z=e=>(0,o.jsxs)("div",{className:"animate__animated animate__fadeIn ".concat(r()["input-error-block"]," ").concat(e.rootClassName),id:null==e?void 0:e.id,children:[e.icon&&e.icon,(0,o.jsx)("span",{className:"".concat(r()["input-error-block__error-message"]," ").concat(e.icon?"inline-block ml-2":""," ").concat((null==e?void 0:e.textClassName)||""),children:e.errorMessage})]})},49198:function(e,t,i){"use strict";i.d(t,{Hd:function(){return p},gV:function(){return c},hE:function(){return m}});var o=i(85893),n=i(67294),r=i(11163),a=i(71312),l=i(66381);let s=n.createContext(null),d=n.createContext(null),u=n.createContext(null),c=()=>{let e=n.useContext(s);if(!e)throw Error("useSidebarCollapse must be used within AiStudioShellProvider");return e},p=()=>{let e=n.useContext(d);if(!e)throw Error("useMobileDrawerActions must be used within AiStudioShellProvider");return e},m=()=>{let e=n.useContext(u);if(!e)throw Error("useMobileDrawerState must be used within AiStudioShellProvider");return e};t.ZP=e=>{let{children:t}=e,[i,c]=n.useState(!1),[p,m]=n.useState(!1);n.useEffect(()=>{try{let e=window.localStorage.getItem(a.UH);"true"===e&&c(!0)}catch(e){}},[]);let h=n.useCallback(()=>{c(e=>!e)},[]);n.useEffect(()=>{try{window.localStorage.setItem(a.UH,String(i))}catch(e){}},[i]);let f=n.useCallback(()=>{m(!0)},[]),v=n.useCallback(()=>{m(!1)},[]),g=n.useCallback(()=>{m(!1),c(!0)},[]),y=(0,r.useRouter)();n.useEffect(()=>{(0,l.k)(y.pathname,y.asPath)&&g()},[y.pathname,y.asPath,g]);let b=n.useMemo(()=>({isCollapsed:i,toggleCollapsed:h}),[i,h]),A=n.useMemo(()=>({openMobileDrawer:f,closeMobileDrawer:v,closeSidebar:g}),[f,v,g]),x=n.useMemo(()=>({isMobileDrawerOpen:p}),[p]);return(0,o.jsx)(s.Provider,{value:b,children:(0,o.jsx)(d.Provider,{value:A,children:(0,o.jsx)(u.Provider,{value:x,children:t})})})}},46456:function(e,t,i){"use strict";var o=i(85893);i(67294);var n=i(46321),r=i(98388);t.Z=e=>{let{variant:t,onClick:i,className:a,iconSize:l=24,"aria-label":s}=e;return(0,o.jsx)("button",{type:"button","aria-label":s,onClick:i,className:(0,r.m6)("flex shrink-0 cursor-pointer items-center justify-center text-ph-color transition-opacity hover:opacity-80",a),style:{width:l,height:l},children:(0,o.jsx)(n.Z,{src:"/icons/panel-right.svg",width:"".concat(l,"px"),height:"".concat(l,"px"),className:(0,r.m6)("transition-transform duration-[280ms] ease-[cubic-bezier(0.4,0,0.2,1)]","collapse"===t&&"rotate-180"),stroke:"var(--ph-color)",color:"var(--ph-color)"})})}},19424:function(e,t,i){"use strict";i.d(t,{Z:function(){return e2}});var o=i(85893),n=i(67294),r=i(41664),a=i.n(r),l=i(11163),s=i(5405),d=i(27361),u=i.n(d),c=i(87251),p=i(46916),m=i(20931),h=i(78138),f=i(17111),v=i(46321),g=i(98388),y=i(71312);let b={home:"primary",library:"primary",templates:"templates","create-ugc":"people","ai-influencer":"people","ai-avatars":"people","studio-photoshoot":"product","virtual-try-on":"product","white-background":"product","change-background-color":"product","background-removal":"product","product-recoloring":"product","product-beautifier":"product","flat-lay-outfit":"product","ghost-mannequin":"product","ai-image-editor":"image","ai-text-to-image":"image","ai-image-upscale":"image","image-to-scene":"video","image-to-vi
1deo":"video","text-to-scene":"video","ai-text-to-video":"video","trim-and-edit-your-video":"video","ai-text-to-speech":"audio","text-to-speech":"audio","add-subtitles-to-video":"audio"},A=(e,t)=>e&&b[e]?b[e]:"apps"===t?"product":"image",x={home:{src:"/icons/studio-sidebar-home-04.svg",isStroke:!0},library:{src:"/icons/folder-library.svg",isStroke:!0},templates:{src:"/icons/studio-sidebar-grid-view.svg",isStroke:!0},SP:{src:"/icons/studio-sidebar-camera.svg"},AII:{src:"/icons/studio-sidebar-profile-add.svg"},Virtual:{src:"/icons/studio-sidebar-shirt.svg"},WB:{src:"/icons/studio-sidebar-shirt.svg"},Avatar:{src:"/icons/studio-tool-user-square.svg",isStroke:!0},UGC:{src:"/icons/studio-app-hold-phone.svg",isStroke:!0},AShorts:{src:"/icons/studio-tool-carousel-horizontal.svg",isStroke:!0},IE:{src:"/icons/studio-tool-ai-image-edit.svg",isStroke:!0},I2V:{src:"/icons/studio-tool-image-to-video.svg",isStroke:!0},IG:{src:"/icons/studio-tool-ai-image-01.svg",isStroke:!0},IUP:{src:"/icons/studio-tool-scan-image.svg",isStroke:!0},Voiceover:{src:"/icons/studio-tool-text-to-speach.svg",isStroke:!0},T2V:{src:"/icons/studio-tool-ai-video.svg?v=1",isStroke:!0},Subtitles:{src:"/icons/studio-tool-subtitle.svg",isStroke:!0},VideoEditor:{src:"/icons/studio-tool-scissor.svg",isStroke:!0},more:{src:"/icons/more-horizontal-square-01.svg",isStroke:!0}},w={SP:{src:"/icons/studio-app-ai-camera.svg",isStroke:!0},Virtual:{src:"/icons/studio-app-ai-clothes.svg",isStroke:!0},AII:{src:"/icons/studio-app-ai-user.svg",isStroke:!0},WB:{src:"/icons/studio-app-background.svg",isStroke:!0},CB:{src:"/icons/studio-app-colors.svg",isStroke:!0},BgRemove:{src:"/icons/studio-app-ai-eraser.svg",isStroke:!0},ProdRecolor:{src:"/icons/studio-app-paint-board.svg",isStroke:!0},ProdBeautify:{src:"/icons/studio-app-ai-beautify.svg",isStroke:!0},FlatLay:{src:"/icons/studio-app-hanger.svg",isStroke:!0},GhostMannequin:{src:"/icons/studio-app-long-sleeve-shirt.svg",isStroke:!0},Avatar:{src:"/icons/studio-app-user-square.svg",isStroke:!0},UGC:{src:"/icons/studio-app-hold-phone.svg",isStroke:!0},AShorts:{src:"/icons/studio-app-carousel-horizontal.svg",isStroke:!0},Subtitles:{src:"/icons/studio-app-subtitle.svg",isStroke:!0}},_=(e,t)=>"apps"===t?w[e]||x[e]||{src:"/icons/studio-sidebar-layer.svg"}:x[e]||w[e]||{src:"/icons/studio-sidebar-layer.svg"},S={primary:"var(--sidebar-chip-primary)",people:"var(--sidebar-chip-people)",product:"var(--sidebar-chip-product)",image:"var(--sidebar-chip-image)",video:"var(--sidebar-chip-video)",audio:"var(--sidebar-chip-audio)"},C=(e,t)=>_((0,y.Zx)(e,t),t);var k=e=>{var t;let{variant:i,section:n,itemId:r,iconSrc:a,isStroke:l,size:s=32,className:d}=e,u=_(i,n),c=a||u.src,p=null!==(t=null!=l?l:u.isStroke)&&void 0!==t&&t,m=A(null!=r?r:i,n),h="templates"===m,f=Math.round(.625*s),y="var(--sidebar-chip-glyph)",b=h?void 0:S[m];return(0,o.jsxs)("div",{className:(0,g.m6)("studio-menu-icon-glyph studio-sidebar-chip relative flex shrink-0 items-center justify-center overflow-hidden","rounded-xl",h&&"studio-sidebar-chip--templates",d),"data-paint":p?"stroke":"fill",style:{width:s,height:s,color:y,...b?{"--sidebar-chip-fill":b}:{}},children:[h?(0,o.jsx)("div",{"aria-hidden":!0,className:"pointer-events-none absolute inset-0 size-full rounded-xl",children:(0,o.jsx)("img",{src:"/icons/studio-sidebar-spectrum-bg.jpg",alt:"",className:"absolute inset-0 size-full rounded-xl object-cover"})}):null,(0,o.jsx)(v.Z,{src:c,width:"".concat(f,"px"),height:"".concat(f,"px"),className:(0,g.m6)("relative z-[1]",u.iconClassName),...p?{stroke:y,color:y}:{fill:y,color:y}})]})},T=i(54822);let E=s.ZP.div.withConfig({componentId:"sc-942b1e5e-0"})(['&.studio-dropdown-panel{--studio-dropdown-fill:rgba(40,39,42,0.94);--glass-card-shadow:0 8px 24px rgba(0,0,0,0.35);}[data-theme="light"] &.studio-dropdown-panel{--studio-dropdown-fill:rgba(255,255,255,0.94);--glass-card-shadow:0 4px 12px rgba(0,0,0,0.12);}']);var P=e=>{let{isPinned:t,onPin:i,onUnpin:n,onClose:r}=e,a=(0,c.Z)("studio.shell.sidebar");return(0,o.jsx)(E,{className:(0,g.m6)("absolute z-50 end-0 top-full mt-1 min-w-[140px] p-3",T.e2),onClick:e=>{e.stopPropagation(),e.preventDefault()},children:(0,o.jsxs)("button",{type:"button",className:(0,g.m6)("relative z-[2] flex w-full items-center gap-2 text-xs font-medium leading-4 text-custom-white transition-colors",t?"text-danger-red-1":"hover:text-secondary"),onClick:e=>{e.stopPropagation(),e.preventDefault(),t?n():i(),r()},children:[(0,o.jsx)(v.Z,{src:t?"/icons/close-circle.svg":"/icons/flag.svg",width:"16px",height:"16px",stroke:"currentColor",color:"currentColor",fill:"none"}),(0,o.jsx)("span",{children:t?a.unpin:a.pin})]})})},I=i(38623),D=i(85518),O=i(73859);let N=(0,s.iv)(['content:"";position:absolute;top:50%;transform:translateY(-50%);border-style:solid;',""],e=>{let{$isRtl:t}=e;return t?(0,s.iv)(["right:-6px;border-width:6px 0 6px 8px;border-color:transparent transparent transparent #353535;"]):(0,s.iv)(["left:-6px;border-width:6px 8px 6px 0;border-color:transparent #353535 transparent transparent;"])}),j=s.ZP.div.withConfig({componentId:"sc-5c80651c-0"})(["position:relative;padding:8px;background-color:#353535;border-radius:8px;color:var(--custom-white);font-size:12px;font-weight:500;line-height:normal;white-space:nowrap;&::before{",'}[data-theme="light"] &{background-color:var(--shade-2);color:var(--ph-color);&::before{',"}}"],N,e=>{let{$isRtl:t}=e;return t?(0,s.iv)(["border-color:transparent transparent transparent var(--shade-2);"]):(0,s.iv)(["border-color:transparent var(--shade-2) transparent transparent;"])});var M=i(27524),R=e=>{let{label:t,collapsed:i,className:r,children:a}=e,{getDirection:l}=n.useContext(M.AZ),s=l===m.mQ.RTL;return i?(0,o.jsx)(O.Z,{message:(0,o.jsx)(j,{$isRtl:s,dir:l,children:t}),position:s?"left-center":"right-center",disabled:D.tq||D.Em,className:r,children:a}):(0,o.jsx)(o.Fragment,{children:a})},z=i(56402);let L=(0,s.iv)(['background:rgba(255,255,255,0.05);border-radius:12px;[data-theme="light"] &{background:rgba(0,0,0,0.04);}']),V=s.ZP.div.withConfig({componentId:"sc-c1c08603-0"})(["position:relative;display:flex;min-height:44px;align-items:center;padding:6px;transition:background-color 0.2s ease,box-shadow 0.2s ease,padding-inline-end 0.2s ease;"," "," "," "," @media (prefers-reduced-motion:reduce){transition:none;}"],e=>{let{$collapsed:t}=e;return t?(0,s.iv)(["width:100%;max-width:44px;min-height:44px;padding:6px;flex-shrink:0;justify-content:center;"]):(0,s.iv)(["width:100%;justify-content:flex-start;gap:8px;"])},e=>{let{$menuOpen:t}=e;return t&&(0,s.iv)(["z-index:30;"])},e=>{let{$hovered:t,$active:i,$collapsed:o}=e;return t&&!i&&!o&&L},e=>{let{$hovered:t,$collapsed:i,$pinnable:o}=e;return t&&!i&&o&&(0,s.iv)(["padding-inline-end:28px;"])}),F=s.ZP.div.withConfig({componentId:"sc-c1c08603-1"})(["display:flex;min-width:0;align-items:center;",""],e=>{let{$collapsed:t}=e;return t?(0,s.iv)(["flex-shrink:0;justify-content:center;"]):(0,s.iv)(["width:100%;flex:1;justify-content:flex-start;gap:8px;"])}),U=s.ZP.span.withConfig({componentId:"sc-c1c08603-2"})(["overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px;font-weight:500;line-height:normal;color:var(--custom-white);transition:opacity 0.2s cubic-bezier(0.4,0,0.2,1),max-width 0.2s cubic-bezier(0.4,0,0.2,1);"," @media (prefers-reduced-motion:reduce){transition:none;}"],e=>{let{$collapsed:t}=e;return t?(0,s.iv)(["display:none;"]):(0,s.iv)(["min-width:0;flex:1;
1opacity:1;"])}),G=s.ZP.div.withConfig({componentId:"sc-c1c08603-3"})(["position:absolute;inset-inline-end:6px;top:50%;transform:translateY(-50%);flex-shrink:0;opacity:",";pointer-events:",";transition:opacity 0.2s ease;@media (max-width:768px){display:none;}@media (prefers-reduced-motion:reduce){transition:none;}"],e=>{let{$visible:t}=e;return t?1:0},e=>{let{$visible:t}=e;return t?"auto":"none"}),B=s.ZP.button.withConfig({componentId:"sc-c1c08603-4"})(['display:flex;height:20px;width:20px;align-items:center;justify-content:center;border-radius:6px;color:var(--custom-white);cursor:pointer;@media (hover:hover){&:hover{background:rgba(255,255,255,0.08);}}[data-theme="light"] &{@media (hover:hover){&:hover{background:rgba(0,0,0,0.06);}}}']),Z=(0,s.iv)(["display:block;text-decoration:none;color:inherit;border:none;background:transparent;padding:0;cursor:pointer;",""],e=>{let{$collapsed:t}=e;return t?(0,s.iv)(["display:flex;justify-content:center;width:100%;"]):(0,s.iv)(["width:100%;"])}),q=(0,s.ZP)(a()).withConfig({componentId:"sc-c1c08603-5"})(["",""],Z),H=s.ZP.button.withConfig({componentId:"sc-c1c08603-6"})([""," text-align:inherit;"],Z);var W=n.memo(e=>{let{href:t,onItemClick:i,label:r,iconVariant:a,section:s,itemId:d,iconSrc:u,isStroke:c,isSelected:p,pinnable:m=!1,isPinned:h=!1,onPin:f,onUnpin:v,collapsed:y=!1,onNavigate:b}=e,A=(0,l.useRouter)(),[x,w]=n.useState(!1),[_,S]=n.useState(!1),C=n.useRef(null),T=null!=p?p:!!t&&(0,z.d7)(A.asPath.split("?")[0],t);n.useEffect(()=>{if(!_)return;let e=e=>{C.current&&!C.current.contains(e.target)&&S(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[_]);let E=(0,o.jsxs)(V,{className:(0,g.m6)("studio-glass-nav-item",y?"studio-glass-nav-item--collapsed":"studio-glass-nav-item--expanded",T&&"studio-glass-nav-active"),$active:T,$hovered:x||_,$collapsed:y,$pinnable:m,$menuOpen:_,onMouseEnter:()=>w(!0),onMouseLeave:()=>{w(!1),_||S(!1)},children:[(0,o.jsxs)(F,{$collapsed:y,children:[(0,o.jsx)(k,{variant:a,section:s,itemId:d,iconSrc:u,isStroke:c}),y?(0,o.jsx)(U,{$collapsed:y,"aria-hidden":!0,children:r}):(0,o.jsx)(U,{$collapsed:y,children:r})]}),m&&!y?(0,o.jsxs)(G,{ref:C,$visible:x||_,children:[(0,o.jsx)(B,{type:"button","aria-label":"Item menu",onClick:e=>{e.preventDefault(),e.stopPropagation(),S(e=>!e)},children:(0,o.jsx)(I.Z,{stroke:"currentColor"})}),_&&f&&v?(0,o.jsx)(P,{isPinned:h,onPin:f,onUnpin:v,onClose:()=>S(!1)}):null]}):null]}),D=t?(0,o.jsx)(q,{href:t,onClick:b,"aria-label":y?r:void 0,$collapsed:y,children:E}):(0,o.jsx)(H,{type:"button",onClick:()=>{null==i||i(),null==b||b()},"aria-label":r,$collapsed:y,children:E});return(0,o.jsx)(R,{label:r,collapsed:y,className:y?"flex":void 0,children:D})}),Y=i(7e3),K=i(20703);let Q=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:3,o=new Map(e.map(e=>[(0,K.Z)(e),e])),n=[],r=new Set;for(let e of t){let t=o.get(e);t&&n.length<i&&(n.push(t),r.add(e))}for(let t of e){let e=(0,K.Z)(t);r.has(e)||n.length>=i||(n.push(t),r.add(e))}return n};var $=(e,t)=>Q((0,Y.ZP)(e),t),X=(e,t)=>{let i=new Set($(e,t).map(e=>(0,K.Z)(e)));return(0,Y.ZP)(e).filter(e=>!i.has((0,K.Z)(e)))};let J="bith:studio-sidebar-pins:v1",ee={apps:[],tools:[]},et=()=>{try{let e=window.localStorage.getItem(J);if(!e)return ee;let t=JSON.parse(e);return{apps:Array.isArray(t.apps)?t.apps:[],tools:Array.isArray(t.tools)?t.tools:[]}}catch(e){return ee}},ei=e=>{try{window.localStorage.setItem(J,JSON.stringify(e))}catch(e){}};var eo=i(7899),en=i(55866),er=i(73501),ea=i(25750),el=i(79135),es=i(61051),ed=e=>{var t,i,o;if(!e)return null;let n=null!==(o=(null!==(i=null===(t=e.split("?")[0])||void 0===t?void 0:t.split("#")[0])&&void 0!==i?i:"").split("/").filter(Boolean).pop())&&void 0!==o?o:"";return n?n.replace(/\.[^/.]+$/,""):null},eu=i(90549);let ec={text_to_image:"/ai-studio/text-to-image","text-to-image":"/ai-studio/text-to-image",ai_image_editor:"/ai-studio/ai-image-editor","ai-image-editor":"/ai-studio/ai-image-editor",image_upscaler:"/ai-studio/image-upscaler","image-upscale":"/ai-studio/image-upscaler",text_to_sce
1ne:"/ai-studio/text-to-scene","text-to-scene":"/ai-studio/text-to-scene",image_to_scene:"/ai-studio/image-to-scene","image-to-scene":"/ai-studio/image-to-scene"};var ep=(e,t)=>{let i=e.replaceAll("_","-"),o=ec[e]||ec[i]||"/ai-studio/".concat(i);return"".concat(o,"?sessionId=").concat(t)};let em={image_generator:"/ai-studio/text-to-image",image_editor:"/ai-studio/ai-image-editor",image_upscaler:"/ai-studio/image-upscaler",text_to_scene:"/ai-studio/text-to-scene",image_to_scene:"/ai-studio/image-to-scene","virtual-try-on":"/apps/virtual-try-on","product-shots":"/apps/studio-photoshoot","product-promo-video":"/apps/studio-photoshoot"},eh=e=>{var t;let i=null!==(t=e.tool)&&void 0!==t?t:e.type;return"string"==typeof i&&i.trim().length>0?i:null},ef=e=>{let t=eh(e);if(!t)return null;let i=t.replaceAll("_","-");return em[t]||em[i]||(i.includes("/")?null:i.startsWith("apps/")?"/".concat(i):"/apps/".concat(i))};var ev=e=>{let t=eh(e),i=ef(e)||(t?ep(t,e.id).split("?")[0]:"/ai-studio"),o=new URLSearchParams({sessionId:String(e.id)});return"".concat(i,"?").concat(o.toString())},eg=i(24669),ey=i(73726),eb=i(31978);let eA={"/ai-studio/text-to-image":{toolName:ey.u9.IMAGE_GENERATOR,apiType:"image_generator",routePath:"/ai-studio/text-to-image"},"/ai-studio/ai-image-editor":{toolName:ey.u9.IMAGE_EDITOR,apiType:"image_editor",routePath:"/ai-studio/ai-image-editor"},[m.P2.STUDIO_AI_IMAGE_UPSCALE]:{toolName:ey.u9.IMAGE_UPSCALER,apiType:ey.u9.IMAGE_UPSCALER,routePath:m.P2.STUDIO_AI_IMAGE_UPSCALE},"/ai-studio/text-to-scene":{toolName:ey.u9.TEXT_TO_SCENE,apiType:"text_to_scene",routePath:"/ai-studio/text-to-scene"},"/ai-studio/image-to-scene":{toolName:ey.u9.IMAGE_TO_SCENE,apiType:"image_to_scene",routePath:"/ai-studio/image-to-scene"},"/apps/virtual-try-on":{toolName:"virtual try-on",apiType:"virtual-try-on",routePath:"/apps/virtual-try-on",sessionSource:"resource"},"/apps/studio-photoshoot":{toolName:"studio photoshoot",apiType:"studio-photoshoot",routePath:"/apps/studio-photoshoot",sessionSource:"executions"},"/apps/ai-influencer":{toolName:"ai-influencer",apiType:"ai-influencer",routePath:"/apps/ai-influencer",sessionSource:"influencers"}};var ex=e=>{var t;return null!==(t=eA[(0,eb.NB)(e)])&&void 0!==t?t:null};let ew=e=>{if(null==e)return null;let t=Array.isArray(e)?e[0]:e;return t?String(t):null};var e_=()=>{let{pathname:e,query:t}=(0,l.useRouter)(),i=(0,eb.NB)(e),o=ew(t.sessionId),r=ew(t.executionId),a=ew(t.influencerId),s=n.useMemo(()=>ex(i),[i]);return n.useMemo(()=>({sessionTool:s,sessionId:o,executionId:r,influencerId:a}),[s,o,r,a])},eS=i(89053),eC=i(82029),ek=i(82821),eT=i(46933),eE=i(30035);let eP=new Set(y.LG),eI={"image-generator":"ai-text-to-image","text-to-image":"ai-text-to-image","ai-text-to-image":"ai-text-to-image","image-editor":"ai-image-editor","ai-image-editor":"ai-image-editor","image-upscaler":"ai-image-upscale","image-upscale":"ai-image-upscale","ai-image-upscale":"ai-image-upscale","text-to-scene":"text-to-scene","image-to-scene":"image-to-scene","virtual-try-on":"virtual-try-on","studio-photoshoot":"studio-photoshoot","product-shots":"studio-photoshoot","product-promo-video":"studio-photoshoot","ai-influencer":"ai-influencer",ugc:"create-ugc","ugc-video":"create-ugc","apps/ugc-video":"create-ugc","create-ugc":"create-ugc","text-to-speech":"ai-text-to-speech","ai-text-to-speech":"ai-text-to-speech",voiceover:"ai-text-to-speech"};var eD=e=>{var t;let i="string"==typeof e?e.trim():"";if(!i)return{landingToolId:void 0,section:"tools"};let o=i.replaceAll("_","-"),n=null!==(t=eI[o])&&void 0!==t?t:o,r=eP.has(n)?"apps":"tools";return y.TI[n]||eI[o]?{landingToolId:n,section:r}:{landingToolId:void 0,section:r}};let eO=e=>{var t;let{toolKey:i}=e,{landingToolId:n,section:r}=eD(i),a=C(n,r),l=a.src||"/icons/gallery.svg",s=null!==(t=a.isStroke)&&void 0!==t&&t;return(0,o.jsx)("div",{className:"flex h-full w-full items-center justify-center bg-shade-2",children:(0,o.jsx)(v.Z,{src:l,width:"16px",height:"16px",color:"var(--white-50-color)",...s?{stroke:"var(--white-50-color)"}:{fill:"var(--white-50-color)"}})})},eN=e=>{let{title:t,thumbnail:i,toolKey:n,collapsed:r,isActive:a,isPending:l}=e,s=(null==i?void 0:i.trim())||null,d=(0,g.m6)("relative shrink-0 overflow-hidden rounded-lg bg-shade-2",r?"h-8 w-8 border border-[rgba(255,255,255,0.05)]":"h-10 w-10 border border-[rgba(255,255,255,0.05)]",a&&!r&&"ring-2 ring-secondary");return l?(0,o.jsx)("div",{className:d,children:(0,o.jsx)(eT.Z,{className:"flex h-full w-full items-center justify-center bg-primary",children:(0,o.jsx)(ek.Z,{className:"loader",size:"small"})})}):(0,o.jsx)("div",{className:d,children:s?(0,o.jsx)(eC.Z,{src:s,alt:t,className:"h-full w-full object-cover",priority:!0,fallbackElement:(0,o.jsx)(eO,{toolKey:n})}):(0,o.jsx)(eO,{toolKey:n})})},ej=n.memo(function(e){let{href:t,title:i,thumbnail:n,toolKey:r,isActive:l,collapsed:s,onNavigate:d,isPending:u}=e;return(0,o.jsx)(R,{label:i,collapsed:s,className:s?"flex":void 0,children:(0,o.jsxs)(a(),{href:t,onClick:d,"aria-label":i,className:(0,g.m6)("studio-glass-nav-item flex items-center transition-colors",s?"studio-glass-nav-item--collapsed w-full justify-center p-1":"studio-glass-nav-item--expanded gap-2 p-1.5",l&&"studio-glass-nav-active"),children:[(0,o.jsx)(eN,{title:i,thumbnail:n,toolKey:r,collapsed:s,isActive:l,isPending:u}),s?null:(0,o.jsx)("span",{className:"truncate text-xs font-medium text-custom-white",children:i})]})})}),eM=e=>{let{hasNextPage:t,isFetchingNextPage:i,onLoadMore:n}=e;return t?(0,o.jsx)(eE.Z,{onTrigger:n,loading:i,hasMore:t,threshold:.1,rootMargin:"50px",className:"py-2"}):null},eR=e=>{let{href:t,label:i,isActive:n,collapsed:r,onNavigate:l,onClick:s}=e;return(0,o.jsx)(R,{label:i,collapsed:r,className:r?"flex":void 0,children:(0,o.jsxs)(a(),{href:t,onClick:e=>{null==s||s(e),e.defaultPrevented||null==l||l()},"aria-label":i,className:(0,g.m6)("studio-glass-nav-item flex items-center transition-colors",r?"studio-glass-nav-item--collapsed w-full justify-center p-1":"studio-glass-nav-item--expanded gap-2 p-1.5",n&&"studio-glass-nav-active"),children:[(0,o.jsx)("div",{className:(0,g.m6)("flex shrink-0 items-center justify-center rounded-lg border border-dashed border-[rgba(255,255,255,0.1)] bg-[rgba(255,255,255,0.05)]",r?"h-8 w-8":"h-10 w-10",n&&"border-solid border-secondary"),children:(0,o.jsx)(v.Z,{src:"/icons/add.svg",width:r?"12px":"16px",height:r?"12px":"16px",fill:"var(--text-shade-1)"})}),r?null:(0,o.jsx)("span",{className:"truncate text-xs font-medium text-custom-white",children:i})]})})},ez=e=>{let{title:t,collapsed:i,onNavigate:n,showNewSession:r,newSessionHref:a,isNewSessionActive:l,onNewSessionClick:s,newSessionLabel:d,children:u,pagination:c}=e;return(0,o.jsxs)("div",{className:(0,g.m6)("shrink-0",i?"mt-0 flex w-full flex-col items-center gap-1":"mt-0 flex w-full flex-col gap-1"),children:[(0,o.jsx)("p",{className:(0,g.m6)("overflow-hidden whitespace-nowrap text-xs font-medium text-t-shade-2",i?"sr-only":"mb-3 hidden px-2"),children:t}),r&&a?(0,o.jsx)(eR,{href:a,label:d,isActive:null!=l&&l,collapsed:i,onNavigate:n,onClick:s}):null,(0,o.jsxs)("div",{className:(0,g.m6)("flex w-full flex-col",i?"items-center gap-1":"gap-1"),children:[u,c?(0,o.jsx)(eM,{...c}):null]})]})},eL=(e,t)=>{var i,o,n,r;let a=null===(r=t.session_items)||void 0===r?void 0:null===(n=r[0])||void 0===n?void 0:null===(o=n.item)||void 0===o?void 0:null===(i=o.id)||void 0===i?void 0:i.toString(),l=new URLSearchParams({sessionId:String(t.id)});return a&&l.set("executionId",a),"".concat(e.routePath,"?").concat(l.toString())},eV={per_page:10};function eF(e,t){let i=(0,l.useRouter)();return n.useCallback(o=>{o.preventDefault(),(0,eg.LQ)(t),(0,eg.Tj)(i.query)&&i.replace(e,void 0,{scroll:!1})},[i,e,t])}let eU=n.memo(function(e){let{sessionTool:t,collapsed:i,onNavigate:r,activeExecutionId:a}=e,{isLoggedIn:l}=(0,eu.Z)(),s=(0,c.Z)("studio.shell.sidebar"),d=eF(t.routePath,"executions"),{data:u,fetchNextPage:p,hasNextPage:m,isFetchingNextPage:h}=(0,ea.Y$)(eV,{enabled:l}),f=n.useMemo(()=>{var e,t;return null!==(t=null==u?void 0:null===(e=u.pages)||void 0===e?void 0:e.flatMap(e=>{var t;return null!==(t=e.data)&&void 0!==t?t:[]}).filter(e=>null!=e))&&void 0!==t?t:[]},[u]);return l?0!==f.length||a?0===f.length?null:(0,o.jsx)(ez,{title:s.sessions,collapsed:i,onNavigate:r,showNewSession:!0,newSessionHref:t.routePath,isNewSessionActive:!a,onNewSessionClick:d,newSessionLabel:s.newSession,pagination:{hasNextPage:m,isFetchingNextPage:h,onLoadMore:()=>p()},children:f.map(e=>{var n;let l=String(e.id),s=null!==(n=ed(e.thumbnail_url))&&void 0!==n?n:"#".concat(l.slice(-4));return(0,o.jsx)(ej,{href:"".concat(t.routePath,"?executionId=").concat(l),title:s,thumbnail:e.thumbnail_url,toolKey:t.apiType,isActive:a===l,collapsed:i,onNavigate:r,isPending:(0,es.Z)(e)},e.id)})}):(0,o.jsx)(ez,{title:s.sessions,collapsed:i,onNavigate:r,showNewSession:!0,newSessionHref:t.routePath,isNewSessionActive:!0,onNewSessionClick:d,newSessionLabel:s.newSession,children:null}):null}),eG=n.memo(function(e){let{sessionTool:t,collapsed:i,onNavigate:r,activeSessionId:a,activeExecutionId:l}=e,{isLoggedIn:s}=(0,eu.Z)(),d=(0,c.Z)("studio.shell.sidebar"),p=n.useMemo(()=>({per_page:10,type:t.apiType}),[t.apiType]),m=eF(t.routePath,"resource"),{data:h,fetchNextPage:f,hasNextPage:v,isFetchingNextPage:g}=(0,er.Jn)(p,{enabled:s}),y=n.useMemo(()=>{var e,t;return null!==(t=null==h?void 0:null===(e=h.pages)||void 0===e?void 0:e.flatMap(e=>{var t;return null!==(t=e.data)&&void 0!==t?t:[]}).filter(e=>null!=e))&&void 0!==t?t:[]},[h]);return s?0!==y.length||a||l?0===y.length?null:(0,o.jsx)(ez,{title:d.sessions,collapsed:i,onNavigate:r,showNewSession:!0,newSessionHref:t.routePath,isNewSessionActive:!a&&!l,onNewSessionClick:m,newSessionLabel:d.newSession,pagination:{hasNextPage:v,isFetchingNextPage:g,onLoadMore:()=>f()},children:y.map(e=>{let n="string"==typeof e.name&&e.name.trim().length>0?e.name:d.untitledSession,l=u()(e,"session_items[0].item.status",null);return(0,o.jsx)(ej,{href:eL(t,e),title:n,thumbnail:e.thumbnail,toolKey:t.apiType,isActive:a===String(e.id),collapsed:i,onNavigate:r,isPending:null!=l&&"completed"!==l},e.id)})}):(0,o.jsx)(ez,{title:d.sessions,collapsed:i,onNavigate:r,showNewSession:!0,newSessionHref:t.routePath,isNewSessionActive:!0,onNewSessionClick:m,newSessionLabel:d.newSession,children:null}):null}),eB=n.memo(function(e){let{sessionTool:t,collapsed:i,onNavigate:r,activeInfluencerId:a}=e,{isLoggedIn:l}=(0,eu.Z)(),s=(0,c.Z)("studio.shell.sidebar"),d=eF(t.routePath,"influencers"),{data:u,fetchNextPage:p,hasNextPage:m,isFetchingNextPage:h}=(0,el.rp)({per_page:10,enabled:l}),f=n.useMemo(()=>{var e,t;return null!==(t=null==u?void 0:null===(e=u.pages)||void 0===e?void 0:e.flatMap(e=>{var t;return null!==(t=e.data)&&void 0!==t?t:[]}).filter(e=>null!=e))&&void 0!==t?t:[]},[u]);return l?0!==f.length||a?0===f.length?null:(0,o.jsx)(ez,{title:s.sessions,collapsed:i,onNavigate:r,showNewSession:!0,newSessionHref:t.routePath,isNewSessionActive:!a,onNewSessionClick:d,newSessionLabel:s.newSession,pagination:{hasNextPage:m,isFetchingNextPage:h,onLoadMore:()=>p()},children:f.map(e=>{let n=String(e.id),l="string"==typeof e.name&&e.name.trim().length>0?e.name:s.untitledSession,d=null!=e.status&&"completed"!==e.status&&"failed"!==e.status;return(0,o.jsx)(ej,{href:"".concat(t.routePath,"?influencerId=").concat(n),title:l,thumbnail:e.compressed_image_url,toolKey:t.apiType,isActive:a===n,collapsed:i,onNavigate:r,isPending:d},e.id)})}):(0,o.jsx)(ez,{title:s.sessions,collapsed:i,onNavigate:r,showNewSession:!0,newSessionHref:t.routePath,isNewSessionActive:!0,onNewSessionClick:d,newSessionLabel:s.newSession,children:null}):null}
1),eZ=n.memo(function(e){let{collapsed:t,onNavigate:i,activeSessionId:r}=e,{isLoggedIn:a}=(0,eu.Z)(),l=(0,c.Z)("studio.shell.sidebar"),s=n.useMemo(()=>({limit:3}),[]),{data:d}=(0,en.$p)(s,{enabled:a}),u=n.useMemo(()=>{var e,t;return null!==(t=null==d?void 0:null===(e=d.data)||void 0===e?void 0:e.filter(e=>null!=e))&&void 0!==t?t:[]},[d]);return a&&0!==u.length?(0,o.jsx)(ez,{title:l.recentSessions,collapsed:t,onNavigate:i,newSessionLabel:l.newSession,children:u.map(e=>{var n;let a="string"==typeof e.name&&e.name.trim().length>0?e.name:l.untitledSession;return(0,o.jsx)(ej,{href:ev(e),title:a,thumbnail:e.thumbnail,toolKey:null!==(n=e.tool)&&void 0!==n?n:e.type,isActive:r===String(e.id),collapsed:t,onNavigate:i},e.id)})}):null}),eq=n.memo(function(e){let{sessionTool:t,collapsed:i,onNavigate:r,activeSessionId:a}=e,{isLoggedIn:l}=(0,eu.Z)(),s=(0,c.Z)("studio.shell.sidebar"),d=n.useMemo(()=>({per_page:10,type:t.apiType}),[t.apiType]),{data:p,fetchNextPage:m,hasNextPage:h,isFetchingNextPage:f}=(0,eo.fu)(d,t.toolName,{enabled:l}),v=n.useMemo(()=>{var e,t;return null!==(t=null==p?void 0:null===(e=p.pages)||void 0===e?void 0:e.flatMap(e=>{var t;return null!==(t=e.data)&&void 0!==t?t:[]}).filter(e=>null!=e))&&void 0!==t?t:[]},[p]),g=n.useCallback(()=>{if(eS.Eh.removeQueries({queryKey:["selected-session-item"]}),eS.Eh.setQueryData(["selected-item"],null),"image_editor"===t.apiType){eS.Eh.removeQueries({queryKey:["pre-generation-image",ey.u9.IMAGE_EDITOR]});return}eS.Eh.removeQueries({queryKey:["pre-generation-image",t.apiType.toLowerCase().replaceAll("_","-")]})},[t.apiType]);if(!l)return null;if(0===v.length&&!a)return(0,o.jsx)(ez,{title:s.sessions,collapsed:i,onNavigate:r,showNewSession:!0,newSessionHref:t.routePath,isNewSessionActive:!0,onNewSessionClick:g,newSessionLabel:s.newSession,children:null});if(0===v.length)return null;let y=e=>"".concat(t.routePath,"?sessionId=").concat(e.id);return(0,o.jsx)(ez,{title:s.sessions,collapsed:i,onNavigate:r,showNewSession:!0,newSessionHref:t.routePath,isNewSessionActive:!a,onNewSessionClick:g,newSessionLabel:s.newSession,pagination:{hasNextPage:h,isFetchingNextPage:f,onLoadMore:()=>m()},children:v.map(e=>{var n;let l="string"==typeof e.name?e.name:u()(e.name,"en",s.untitledSession);return(0,o.jsx)(ej,{href:y(e),title:l,thumbnail:e.thumbnail,toolKey:null!==(n=e.type)&&void 0!==n?n:t.apiType,isActive:a===String(e.id),collapsed:i,onNavigate:r},e.id)})})}),eH=n.memo(function(e){let{collapsed:t,onNavigate:i}=e,{sessionTool:n,sessionId:r,executionId:a,influencerId:l}=e_();return(null==n?void 0:n.sessionSource)==="resource"?(0,o.jsx)(eG,{sessionTool:n,collapsed:t,onNavigate:i,activeSessionId:r,activeExecutionId:a}):(null==n?void 0:n.sessionSource)==="executions"?(0,o.jsx)(eU,{sessionTool:n,collapsed:t,onNavigate:i,activeExecutionId:a}):(null==n?void 0:n.sessionSource)==="influencers"?(0,o.jsx)(eB,{sessionTool:n,collapsed:t,onNavigate:i,activeInfluencerId:l}):n?(0,o.jsx)(eq,{sessionTool:n,collapsed:t,onNavigate:i,activeSessionId:r}):(0,o.jsx)(eZ,{collapsed:t,onNavigate:i,activeSessionId:r})});var eW=i(49198),eY=i(24895),eK=i(25310),eQ=i(38882),e$=i(46456),eX=e=>{let{label:t,expanded:i,onToggle:n,collapsed:r,className:a}=e;return r?(0,o.jsx)(R,{label:t,collapsed:!0,className:"flex w-full",children:(0,o.jsx)("button",{type:"button","aria-label":t,"aria-expanded":i,onClick:n,className:(0,g.m6)("flex h-4 w-full items-center justify-center",a),children:(0,o.jsx)(I.Z,{})})}):(0,o.jsxs)("button",{type:"button","aria-expanded":i,onClick:n,className:(0,g.m6)("flex w-full items-center justify-between px-2 py-0 text-xs font-medium text-t-shade-2 transition-colors hover:text-custom-white",a),children:[(0,o.jsx)("span",{children:t}),(0,o.jsx)(I.Z,{})]})};let eJ=e=>{let{href:t,onNavigate:i,children:n}=e;return(0,o.jsx)(a(),{href:t,onClick:i,className:"block px-1.5 text-xs font-medium text-t-shade-1 transition-colors hover:text-t-shade-1",children:n})},e0=s.ZP.div.withConfig({componentId:"sc-1fb4cd7e-0"})(['display:contents;@media (min-width:769px){display:flex;flex:1;flex-direction:column;align-self:stretch;min-width:0;min-height:0;height:100%;border-radius:var(--border-radius-4);[data-theme="light"] &{box-shadow:0 1.272px 15.267px 0 rgba(0,0,0,0.05);}}
1']),e1=s.ZP.aside.withConfig({componentId:"sc-1fb4cd7e-1"})(["position:sticky;top:calc(var(--spacing-6) + var(--studio-shell-header-offset));display:",";flex-direction:column;flex:1;flex-shrink:0;align-items:stretch;justify-content:flex-start;align-self:stretch;width:100%;min-width:0;min-height:0;height:100%;max-height:calc( 100vh - (var(--spacing-6) * 2) - var(--studio-shell-header-offset) );overflow:hidden;border-radius:var(--border-radius-4);padding:",';[data-theme="light"] &{overflow:visible;}@media (prefers-reduced-transparency:reduce){background:var(--shade-2);box-shadow:none;}@media (min-width:769px){display:flex;}@media (max-width:768px){position:static;top:auto;height:100%;contain:none;border-radius:0;',"}"],e=>{let{$forceVisible:t}=e;return t?"flex":"none"},e=>{let{$collapsed:t}=e;return t?"16px 8px":"16px"},e=>{let{$isDrawer:t}=e;return t?"\n      display: flex;\n      width: 100%;\n      height: 100%;\n      max-height: none;\n      padding: 16px;\n      mix-blend-mode: normal;\n      background: transparent;\n      backdrop-filter: blur(40px) saturate(1.4);\n      -webkit-backdrop-filter: blur(40px) saturate(1.4);\n    ":"\n      display: none;\n      padding: 0;\n      background: transparent;\n      border: none;\n      box-shadow: none;\n      backdrop-filter: none;\n    "});var e2=e=>{let{forceExpanded:t=!1,isDrawer:i=!1,onNavigate:r,onAppOrToolNavigate:a}=e,s=(0,l.useRouter)(),{isCollapsed:d,toggleCollapsed:v}=(0,eW.gV)(),{handleClick:b}=(0,eK.Z)({entryPoint:eQ.LK.SIDEBAR}),A=!t&&d,x=(0,c.Z)("studio.shell.sidebar"),w=(0,p.Z)(),{isLoggedIn:_}=(0,eu.Z)(),{pinnedApps:S,pinnedTools:C,pinItem:k,unpinItem:T,isPinned:E}=function(){let[e,t]=n.useState(ee),[i,o]=n.useState(!1);n.useEffect(()=>{t(et()),o(!0)},[]);let r=n.useCallback((e,i)=>{t(t=>{if(t[e].includes(i))return t;let o={...t,[e]:[...t[e],i]};return ei(o),o})},[]),a=n.useCallback((e,i)=>{t(t=>{let o={...t,[e]:t[e].filter(e=>e!==i)};return ei(o),o})},[]),l=n.useCallback((t,i)=>e[t].includes(i),[e]);return{pinnedApps:e.apps,pinnedTools:e.tools,pinItem:r,unpinItem:a,isPinned:l,isHydrated:i}}(),[P,I]=n.useState(!1),[D,O]=n.useState(!1),N=n.useMemo(()=>y.vf.filter(e=>_||"library"!==e.id),[_]),j=null!=r?r:a,M=n.useCallback(()=>{null==r||r(),(0,f.F)("logo",{cta_type:"secondary",page_name:s.pathname,cta_url:m.P2.STUDIO_AI_MAIN})},[r,s.pathname]),R=n.useMemo(()=>{let e=(0,z.ZP)(s.pathname,s.asPath);return e?(0,K.Z)(e):null},[s.pathname,s.asPath]),L=n.useCallback((e,t,i)=>{let n=(0,K.Z)(e),r=(0,eY.Z)(e);if(!r&&!e.action)return null;let a=u()(e.title,w,e.title.en);return(0,o.jsx)(W,{onItemClick:()=>b({action:e.action,tool:r?{...e,link:r}:e}),label:a,iconVariant:(0,y.Zx)(n,t),section:t,itemId:n,isSelected:R===n,pinnable:!0,isPinned:E(t,n),onPin:()=>k(t,n),onUnpin:()=>T(t,n),collapsed:i,onNavigate:j},"".concat(t,"-").concat(n))},[R,b,E,w,j,k,T]),V=n.useMemo(()=>$("apps",S),[S]),F=n.useMemo(()=>$("tools",C),[C]),U=n.useMemo(()=>X("apps",S),[S]),G=n.useMemo(()=>X("tools",C),[C]),B=P?[...V,...U]:V,Z=D?[...F,...G]:F;n.useEffect(()=>{I(!1)},[S]),n.useEffect(()=>{O(!1)},[C]);let q=(0,o.jsxs)("div",{className:(0,g.m6)("flex w-full flex-col gap-2",A&&"items-center"),children:[A?null:(0,o.jsx)(eJ,{href:"/ai-tools",onNavigate:j,children:x.tools}),(0,o.jsx)("div",{className:(0,g.m6)("flex w-full flex-col gap-1",A&&"items-center"),children:Z.map(e=>L(e,"tools",A))}),G.length>0?(0,o.jsx)(eX,{label:D?x.less:x.more,expanded:D,onToggle:()=>{if(A){v(),O(!0);return}O(e=>!e)},collapsed:A}):null]}),H=(0,o.jsxs)("div",{className:(0,g.m6)("flex w-full flex-col gap-2",A&&"items-center"),children:[A?null:(0,o.jsx)(eJ,{href:"/apps",onNavigate:j,children:x.apps}),(0,o.jsx)("div",{className:(0,g.m6)("flex w-full flex-col gap-1",A&&"items-center"),children:B.map(e=>L(e,"apps",A))}),U.length>0?(0,o.jsx)(eX,{label:P?x.less:x.more,expanded:P,onToggle:()=>{if(A){v(),I(!0);return}I(e=>!e)},collapsed:A}):null]});return(0,o.jsx)(e0,{children:(0,o.jsxs)(e1,{className:(0,g.m6)("studio-glass-rail"),$forceVisible:t,$isDrawer:i,$collapsed:A,children:[(0,o.jsx)("div",{className:(0,g.m6)("relative flex w-full shrink-0 items-center",i||!A?"mb-6 justify-between":"justify-center pb-6"),children:i?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Z,{redirectTo:m.P2.STUDIO_AI_MAIN,className:"h-8 w-8 shrink-0",width:"12px",height:"19px",onNavigate:M}),(0,o.jsx)(e$.Z,{variant:"collapse",iconSize:24,onClick:()=>null==r?void 0:r(),"aria-label":"Close menu"})]}):A?(0,o.jsx)(e$.Z,{variant:"expand",iconSize:24,onClick:v,"aria-label":"Expand sidebar"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(h.Z,{redirectTo:m.P2.STUDIO_AI_MAIN,className:"h-8 w-8 shrink-0",width:"12px",height:"19px",onNavigate:M}),(0,o.jsx)(e$.Z,{variant:"collapse",iconSize:24,onClick:v,"aria-label":"Collapse sidebar"})]})}),(0,o.jsx)("nav",{className:(0,g.m6)("hiddenScrollBar min-h-0 flex-1 overflow-y-auto",A&&"w-full"),children:(0,o.jsxs)("div",{className:(0,g.m6)("flex min-h-full w-full flex-col gap-6",A&&"items-center"),children:[(0,o.jsxs)("div",{className:(0,g.m6)("flex w-full flex-col gap-8",A&&"items-center"),children:[(0,o.jsx)("div",{className:(0,g.m6)("flex w-full flex-col gap-1.5",A&&"items-center"),children:N.map(e=>(0,o.jsx)(W,{href:e.href,label:u()(x,e.labelKey,e.labelKey),iconVariant:e.iconVariant,itemId:e.id,collapsed:A,onNavigate:r},e.id))}),(0,o.jsxs)("div",{className:(0,g.m6)("flex w-full flex-col gap-6",A&&"items-center"),children:[H,q]})]}),(0,o.jsx)("div",{className:(0,g.m6)("mt-auto w-full",A&&"flex justify-center"),children:(0,o.jsx)(eH,{collapsed:A,onNavigate:j})})]})})]})})}},38623:function(e,t,i){"use strict";var o=i(85893);
1i(67294);var n=i(46321);t.Z=e=>{let{size:t="16px",stroke:i="var(--text-shade-2)",className:r}=e;return(0,o.jsx)(n.Z,{src:"/icons/more-horizontal-square-01.svg",width:t,height:t,stroke:i,color:i,className:r})}},10663:function(e,t,i){"use strict";i.d(t,{Fx:function(){return n},Mx:function(){return o},Wt:function(){return r},dM:function(){return a}});let o=218,n=60,r=264,a="studio-header-action-icon studio-glass-card rounded-lg flex items-center justify-center"},78138:function(e,t,i){"use strict";var o=i(85893);i(67294);var n=i(46321),r=i(41664),a=i.n(r),l=i(5405),s=i(98388);let d=(0,l.ZP)(a()).withConfig({componentId:"sc-fd9f94f0-0"})(["transition:transform 0.3s ease,background 0.3s ease;user-select:none;&:active{transform:",';}[data-theme="light"] &{background:var(--shade-2);',"}"],e=>{let{$noHover:t}=e;return t?"none":"scale(0.95)"},e=>{let{$noHover:t}=e;return!t&&(0,l.iv)(["&:hover{background:var(--secondary-color);& path{fill:#fff;}}"])}),u=(0,l.ZP)(n.Z).withConfig({componentId:"sc-fd9f94f0-1"})(['& path{fill:#000;}[data-theme="light"] &{& path{fill:var(--custom-white);}}']);t.Z=e=>{let{width:t="15px",height:i="24px",redirectTo:n="/",className:r="",noRedirect:a=!1,noHover:l=!0,onNavigate:c}=e,p=(0,s.m6)("rounded-lg w-10 h-10 flex items-center justify-center bg-white ",r,a?"cursor-default":"cursor-pointer",!a&&!l&&"hover:bg-secondary");return a?(0,o.jsx)("div",{className:p,children:(0,o.jsx)(u,{src:"/logos/bith-logo-small-1.svg",height:i,width:t})}):(0,o.jsx)(d,{href:n,className:p,$noHover:l,onClick:c,children:(0,o.jsx)(u,{src:"/logos/bith-logo-small-1.svg",height:i,width:t})})}},12382:function(e,t,i){"use strict";i.d(t,{Z:function(){return N}});var o=i(85893),n=i(67294),r=i(25630),a=i(91167),l=i(54822),s=i(91729),d=i(93046),u=i(46321),c=i(73859),p=i(20931),m=i(31155),h=i(87251),f=i(90549),v=i(11163),g=i(17111),y=i(25617),b=i(5405),A=i(7654),x=i.n(A),w=i(30381),_=i.n(w);let S=b.ZP.div.withConfig({componentId:"sc-2cda6dd1-0"})(['width:100%;height:100%;background:var(--shade-2);border-radius:4px;animation:pulse 2s cubic-bezier(0.4,0,0.6,1) infinite;[data-theme="light"] &{background:var(--shade);}@keyframes pulse{0%,100%{opacity:1;}50%{opacity:0.5;}}']),C=e=>{if(!e)return null;let t=_()(e,["YYYY-MM-DD",_().ISO_8601]);if(!t.isValid())return null;let i=t.startOf("day").diff(_()().startOf("day"),"days");return i>=0?i:null},k=e=>{let{label:t,remaining:i,total:n,hint:r,tooltip:a}=e,s=n>0?Math.min(100,Math.max(0,i/n*100)):0;return(0,o.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[(0,o.jsxs)("div",{className:"flex w-full items-start justify-between gap-2",children:[(0,o.jsx)("span",{className:"min-w-0 text-[12px] font-medium leading-4 text-custom-white",children:t}),x()(i)?(0,o.jsx)("div",{className:"h-3 w-10",children:(0,o.jsx)(S,{})}):(0,o.jsx)("span",{className:"shrink-0 text-[12px] font-semibold leading-4 text-custom-white",children:i||0})]}),(0,o.jsx)("div",{className:"h-1.5 w-full overflow-hidden rounded bg-glass-fill",children:(0,o.jsx)("div",{className:"h-full rounded-2xl",style:{width:"".concat(s,"%"),background:"linear-gradient(90deg, rgb(147, 195, 225) 0.75%, rgb(81, 113, 207) 66%)"}})}),r?(0,o.jsxs)("div",{className:"flex items-center gap-1",children:[(0,o.jsx)(c.Z,{position:"top-center",className:"inline-flex shrink-0",message:(0,o.jsx)("div",{className:"".concat(l.LI," max-w-[200px] whitespace-normal px-3 py-2 text-[10px] font-normal leading-[14px] text-t-shade-1"),style:l.ev,children:a}),children:(0,o.jsx)("div",{className:"inline-flex cursor-pointer text-t-shade-1",onClick:e=>e.stopPropagation(),children:(0,o.jsx)(u.Z,{src:"/icons/info-circle.svg",width:"12px",height:"12px",stroke:"currentColor",color:"currentColor"})})}),(0,o.jsx)("span",{className:"min-w-0 text-[10px] font-normal leading-[14px] text-t-shade-1",children:r})]}):null]})};var T=e=>{var t,i,r,l,u,c,b,A,x,w,_;let{analyticsPosition:S}=e,T=(0,h.Z)(),E=(0,v.useRouter)(),{isSubscribed:P,userState:I}=(0,f.Z)(),D=(0,y.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.Auth)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.billingInfo}),[,O]=n.useContext(m.kn),N=Number(null!==(A=null!==(b=null==I?void 0:null===(t=I.credits)||void 0===t?void 0:t.subscription_credits_remaining)&&void 0!==b?b:null==D?void 0:null===(i=D.credits)||void 0===i?void 0:i.subscription_credits_remaining)&&void 0!==A?A:0),j=Number(null!==(x=null==I?void 0:null===(r=I.credits)||void 0===r?void 0:r.current_plan_credits_amount)&&void 0!==x?x:N),M=Number(null!==(_=null!==(w=null==I?void 0:null===(l=I.credits)||void 0===l?void 0:l.top_up_credits_remaining)&&void 0!==w?w:null==D?void 0:null===(u=D.credits)||void 0===u?void 0:u.top_up_credits_remaining)&&void 0!==_?_:0),R=C(null==I?void 0:null===(c=I.subscription)||void 0===c?void 0:c.next_payment_on),z=null!=R?T.creditsBalance.expires
1InDays(R):T.creditsBalance.planCreditsSubtitle,L=T.creditsBalance.purchasedCreditsSubtitle;return(0,o.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,o.jsxs)("div",{className:"flex w-full flex-col gap-6",children:[(0,o.jsx)(k,{label:T.creditsBalance.monthlyCredits,remaining:N,total:j,hint:z,tooltip:T.creditsBalance.planCreditsLeft.tooltip}),(0,o.jsx)(k,{label:T.creditsBalance.purchasedCredits,remaining:M,total:M>0?M:1,hint:L,tooltip:T.creditsBalance.topUpCreditsLeft.tooltip})]}),P?(0,o.jsx)(a.Z,{type:"secondary",size:"x-small",onClick:()=>{S&&(0,g.F)("add_credits",{cta_type:"primary",button_text:T.global.addCredits,page_name:E.pathname,position:S}),O({type:m.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,o.jsx)(s.ZP,{paymentFlowProps:{flow:p.SC.UPDATE,currentTab:"oneTimePayment",trigger_source:"remaining_credits_add_credits"}})}})},className:"w-full",style:{height:32,padding:"4px 8px"},children:(0,o.jsx)("span",{className:"text-[12px] font-medium leading-4 text-white",children:T.global.addCredits})}):(0,o.jsx)(a.Z,{type:"secondary",size:"x-small",onClick:e=>{e.stopPropagation(),e.preventDefault(),S&&(0,g.F)("upgrade_plan",{cta_type:"primary",button_text:T.global.upgradePlan,page_name:E.pathname,position:S}),O({type:m.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,o.jsx)(d.ZP,{trigger_source:"remaining_credits"})}})},className:"w-full",style:{height:32,padding:"4px 8px"},children:(0,o.jsx)("span",{className:"text-[12px] font-medium leading-4 text-white",children:T.global.upgradePlan})})]})},E=i(27524);let P={healthy:{background:"var(--credits-pill-bg)",lightBackgroun
1d:"var(--credits-pill-bg)"},warning:{background:"rgba(228, 196, 14, 0.1)",lightBackground:"rgba(228, 196, 14, 0.12)"},critical:{background:"rgba(228, 14, 14, 0.1)",lightBackground:"rgba(228, 14, 14, 0.12)"}},I=b.ZP.div.withConfig({componentId:"sc-8a6fe776-0"})(["background-color:",';border:1px solid var(--credits-pill-border);[data-theme="light"] &{background-color:',";}"],e=>{let{$level:t}=e;return P[t].background},e=>{let{$level:t}=e;return P[t].lightBackground}),D=(e,t)=>{if(!t||t<=0||null==e)return"healthy";let i=100*e/t;return i>=90?"critical":i>=70?"warning":"healthy"};var O=()=>{var e,t,i,r;let{userState:a}=(0,f.Z)(),l=n.useMemo(()=>{var e,t;return(null==a?void 0:null===(e=a.credits)||void 0===e?void 0:e.total)-(null==a?void 0:null===(t=a.credits)||void 0===t?void 0:t.used)},[null==a?void 0:null===(e=a.credits)||void 0===e?void 0:e.total,null==a?void 0:null===(t=a.credits)||void 0===t?void 0:t.used]),s=n.useMemo(()=>{var e,t;return D(null==a?void 0:null===(e=a.credits)||void 0===e?void 0:e.used,null==a?void 0:null===(t=a.credits)||void 0===t?void 0:t.total)},[null==a?void 0:null===(i=a.credits)||void 0===i?void 0:i.used,null==a?void 0:null===(r=a.credits)||void 0===r?void 0:r.total]);return(0,o.jsx)(I,{$level:s,className:"flex h-10 cursor-pointer items-center justify-center rounded-xl px-4",children:(0,o.jsxs)("div",{className:"flex items-center gap-0.5",children:[(0,o.jsx)(u.Z,{src:"/icons/coins-02.svg",width:"16px",height:"16px",fill:"var(--text-shade-1, #cfd2d5)"}),x()(l)?(0,o.jsx)("div",{className:"h-3.5 w-10",children:(0,o.jsx)(S,{})}):(0,o.jsx)("span",{className:"whitespace-nowrap text-sm font-medium text-t-shade-1",children:l||0})]})})},N=e=>{let{analyticsPosition:t}=e,i=(0,v.useRouter)(),{getDirection:a}=n.useContext(E.AZ);return(0,o.jsx)(r.Z,{useChildren:!0,...(0,l.XJ)(a),options:(0,o.jsx)(T,{analyticsPosition:t}),children:(0,o.jsx)("div",{onClick:()=>{t&&(0,g.F)("credits_menu_open",{cta_type:"secondary",page_name:i.pathname,position:t})},children:(0,o.jsx)(O,{})})})}},43649:function(e,t,i){"use strict";i.d(t,{Z:function(){return L}});var o=i(85893),n=i(67294),r=i(25630),a=i(85242),l=i(46321),s=i(20931),d=i(10847),u=i(25617),c=i(5405),p=i(64242),m=i(82029),h=i(3136),f=i(83953),v=i(83186),g=i(83910),y=i(68419),b=e=>{let{onThemeChange:t}=e,i=(0,u.I0)(),{isLoggedIn:r}=n.useContext(p.Vo),{mode:a}=(0,u.v9)(e=>e.Theme),l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a;return document.documentElement.setAttribute("data-theme",e)};return(0,o.jsx)(g.Z,{bgColor:"rgba(255, 255, 255, 0.05)",activeColor:"var(--secondary-color)",defaultValue:"light"===a,onChange:()=>{let e=a===s.uX.LIGHT?s.uX.DARK:s.uX.LIGHT;i(v.Z.changeTheme({mode:e})),r&&i((0,y.gS)({preferred_theme:e})),l(e),null==t||t(e)},lightModeSwitcher:!0})},A=i(94876),x=i(27524),w=i(87251),_=i(11163),S=i(17111);let C="/icons/studio-profile/arrow-down-01.svg",k={marginTop:0,width:"100%",gap:8},T={color:"inherit",fontSize:12,fontWeight:500,lineHeight:"16px",flex:1,minWidth:0},E={color:"currentColor",stroke:"currentColor",fill:"none"},P=e=>{let{children:t}=e;return(0,o.jsx)("div",{className:"studio-profile-menu-expand-panel flex w-full flex-col gap-3",children:t})},I=e=>{let{currentLanguage:t,pageName:i}=e,{language:r,changeLang:a}=n.useContext(x.AZ),[d,u]=n.useState(!1),c=n.useMemo(()=>s.H7[r.toUpperCase()],[r]),p=(e,t)=>{e!==r&&((0,S.F)("language_change",{cta_type:"secondary",button_text:t,page_name:i,position:"studio_header_user_menu"}),a(e)),u(!1)},m=n.useMemo(()=>Object.values(s.H7).filter(e=>e.value!==t),[t]);return(0,o.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,o.jsx)(f.wV,{onClick:()=>{(0,S.F)("language_menu_toggle",{cta_type:"secondary",button_text:c.label,page_name:i,position:"studio_header_user_menu"}),u(!d)},children:(0,o.jsx)(h.Z,{label:c.label,svgSrc:"/icons/studio-profile/global.svg",svgOptions:E,labelStyle:T,noInteraction:!0,children:(0,o.jsx)("div",{className:"ms-auto flex items-center",children:(0,o.jsx)(l.Z,{src:C,width:"16px",height:"16px",className:"transition-transform duration-200 ".concat(d?"rotate-180":""),stroke:"currentColor",fill:"none",color:"currentColor"})}),style:k})}),d?(0,o.jsx)(P,{children:m.map(e=>(0,o.jsx)(f.Nc,{type:"button",onClick:t=>{t.stopPropagation(),p(e.value,e.label)},children:(0,o.jsx)("span",{className:"text-start text-xs font-medium leading-4",children:e.label})},e.value))}):null]})},D=e=>{let{pageName:t}=e,i=(0,w.Z)(),[r,a]=n.useState(!1),s=[{href:"/faqs",label:i.studio.accountDropdown.faqs,cta:"help_faqs"},{href:"/help/terms-and-conditions",label:i.studio.accountDropdown.terms,cta:"help_terms"},{href:"/help/privacy-policy",label:i.studio.accountDropdown.privacy,cta:"help_privacy"}];return(0,o.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,o.jsx)(f.wV,{onClick:()=>{(0,S.F)("help_menu_toggle",{cta_type:"secondary",button_text:i.studio.accountDropdown.help,page_name:t,position:"studio_header_user_menu"}),a(!r)},children:(0,o.jsx)(h.Z,{label:i.studio.accountDropdown.help,svgSrc:"/icons/studio-profile/help-circle.svg",svgOptions:E,labelStyle:T,noInteraction:!0,children:(0,o.jsx)("div",{className:"ms-auto flex items-center",children:(0,o.jsx)(l.Z,{src:C,width:"16px",height:"16px",className:"transition-transform duration-200 ".concat(r?"rotate-180":""),stroke:"currentColor",fill:"none",color:"currentColor"})}),style:k})}),r?(0,o.jsx)(P,{children:s.map(e=>(0,o.jsx)(f.rs,{href:e.href,onClick:()=>(0,S.F)(e.cta,{cta_type:"secondary",button_text:e.label,page_name:t,cta_url:e.href,position:"studio_header_user_menu"}),children:(0,o.jsx)("span",{className:"text-start text-xs font-medium leading-4",children:e.label})},e.href))}):null]})};var O=()=>{let e=(0,_.useRouter)(),{logout:t,isFetchingUserData:i}=n.useContext(p.Vo),{language:r}=n.useContext(x.AZ),a=(0,w.Z)(),l=(0,u.I0)(),s=()=>
1{l(A.Z.changeHamburgerTab({isTabVisible:!1}))},d=o=>{if(!i&&"logout"===o){(0,S.F)("logout",{cta_type:"secondary",button_text:a.studio.accountDropdown.logout,page_name:e.pathname,position:"studio_header_user_menu"}),t(!0),s();return}},c=(t,i,o)=>{(0,S.F)(t,{cta_type:"secondary",button_text:o,page_name:e.pathname,cta_url:i,position:"studio_header_user_menu"})};return(0,o.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,o.jsx)(f.es,{href:"/studio/account",onClick:()=>c("account_settings","/studio/account",a.studio.accountDropdown.settings),children:(0,o.jsx)(h.Z,{label:a.studio.accountDropdown.settings,svgSrc:"/icons/studio-profile/settings-02.svg",svgOptions:E,labelStyle:T,noInteraction:!0,style:k})}),(0,o.jsx)(f.es,{href:"/studio/billing",onClick:()=>c("billing_settings","/studio/billing",a.studio.accountDropdown.billingSettings),children:(0,o.jsx)(h.Z,{label:a.studio.accountDropdown.billingSettings,svgSrc:"/icons/studio-profile/credit-card.svg",svgOptions:E,labelStyle:T,noInteraction:!0,style:k})}),(0,o.jsxs)(f.wV,{onClick:e=>{e.stopPropagation(),e.preventDefault()},children:[(0,o.jsx)(h.Z,{label:a.studio.accountDropdown.lightTheme,svgSrc:"/icons/studio-profile/sun-01.svg",svgOptions:E,labelStyle:T,noInteraction:!0,style:{marginTop:0,flex:1,minWidth:0,width:"auto",gap:8}}),(0,o.jsx)(b,{onThemeChange:t=>(0,S.F)("theme_toggle",{cta_type:"secondary",button_text:t,page_name:e.pathname,position:"studio_header_user_menu"})})]}),(0,o.jsx)("div",{className:"w-full",onClick:e=>e.stopPropagation(),children:(0,o.jsx)(I,{currentLanguage:r,pageName:e.pathname})}),(0,o.jsx)("div",{className:"w-full",onClick:e=>e.stopPropagation(),children:(0,o.jsx)(D,{pageName:e.pathname})}),(0,o.jsx)(f.wV,{onClick:()=>d("logout"),children:(0,o.jsx)(h.Z,{label:a.studio.accountDropdown.logout,svgSrc:"/icons/studio-profile/log-out.svg",svgOptions:E,labelStyle:T,noInteraction:!0,style:k})})]})},N=i(54822),j=i(98388);let M=c.ZP.div.withConfig({componentId:"sc-8ba83910-0"})(["display:block;@media (max-width:1055px){display:flex;justify-content:center;align-items:center;}"]),R=c.ZP.div.withConfig({componentId:"sc-8ba83910-1"})(["margin-top:0px;"]),z=c.ZP.div.withConfig({componentId:"sc-8ba83910-2"})([".studio-header-action-icon--avatar::before{display:none;}"]);var L=e=>{let{triggerClassName:t}=e,{mode:i}=(0,u.v9)(e=>e.Theme),c=(0,_.useRouter)(),{user:h}=n.useContext(p.Vo),{getDirection:f}=n.useContext(x.AZ);return(0,o.jsx)(r.Z,{useChildren:!0,...(0,N.XJ)(f),options:(0,o.jsx)(O,{}),children:(0,o.jsx)(R,{children:(0,o.jsx)("div",{className:"flex items-center cursor-pointer justify-between",onClick:()=>{(0,S.F)("user_menu_open",{cta_type:"secondary",page_name:c.pathname,position:"studio_header_user_menu"})},children:(0,o.jsx)("div",{className:"flex items-center",children:(0,o.jsx)(M,{children:(0,o.jsx)(z,{children:(0,o.jsx)(a.Z,{type:(null==h?void 0:h.profile_picture)?"":"eerie-black",size:"large",className:(0,j.m6)(t,!!(null==h?void 0:h.profile_picture)&&"studio-header-action-icon--avatar !p-0"),$noPadding:!!(null==h?void 0:h.profile_picture),style:(null==h?void 0:h.profile_picture)?{padding:0}:void 0,children:(0,o.jsx)(m.Z,{src:null==h?void 0:h.profile_picture,alt:null==h?void 0:h.name,className:"relative z-[2] h-full w-full object-cover rounded-lg",priority:!!(null==h?void 0:h.profile_picture),fallbackElement:(0,o.jsx)("div",{className:"w-full h-full flex items-center justify-center ",children:(0,o.jsx)(l.Z,{src:"/icons/profile.svg",width:"16px",height:"16px",fill:i===s.uX.DARK?d.theme.extend.colors.white:d.theme.extend.colors.black})})})})})})})})})})}},46933:function(e,t,i){"use strict";let o=i(5405).ZP.div.withConfig({componentId:"sc-b3d0eb1f-0"})([""," ",' [data-theme="light"] &{& .loader{border-color:var(--shade-2);border-top-color:var(--secondary-color);}}'],e=>{let{$forceLight:t}=e;return t&&"\n      & .loader {\n      border-color: var(--shade-2);\n      border-top-color: var(--secondary-color);\n    }\n\n    "},e=>{let{$secoundery:t}=e;return t&&"\n      & .loader {\n      border-color: var(--white);\n      border-top-color: var(--secondary-color);\n    }\n    "});t.Z=o},62554:function(e,t,i){"use strict";var o=i(85893);
1i(67294);let n=i(5405).ZP.span.withConfig({componentId:"sc-d872b8bd-0"})(["font-style:normal;font-weight:500;font-size:14px;line-height:100%;@media (max-width:730px){font-style:normal;font-weight:500;font-size:12px;line-height:21px;}"]);t.Z=e=>(0,o.jsx)(n,{className:e.textColor,children:e.children})},95956:function(e,t,i){"use strict";i.d(t,{Z:function(){return L}});var o=i(85893),n=i(67294),r=i(90549),a=i(43002),l=i(36135),s=i(31155),d=i(91167),u=i(46321),c=i(87251),p=i(10847),m=i(91729),h=i(5152),f=i.n(h),v=i(40198),g=i(11163),y=i(41614),b=i(20931),A=i(91291),x=i(46916);let w=f()(()=>Promise.all([i.e(60296),i.e(79464)]).then(i.bind(i,79464)),{loadableGenerated:{webpack:()=>[79464]},ssr:!1});var _=e=>{var t,i,a;let{subscriptionInfo:l,redirectTo:h}=e,f=(0,c.Z)(),_=(0,x.Z)(),S=(0,g.useRouter)(),{userState:C}=(0,r.Z)(),[,k]=n.useContext(s.kn),T=()=>{k({type:s.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,exitStyle:{display:"none"},children:null}})},E=()=>{if(T(),h){window.location.assign((0,A.kU)(h,S.locale,"new",C));return}S.replace(b.P2.STUDIO_AI_MAIN)},P=n.useMemo(()=>{var e;return!!(null==l?void 0:null===(e=l.details)||void 0===e?void 0:e.number_of_credits)},[null==l?void 0:l.id]),I=(null==l?void 0:l.interval)==="year"?f.paymentFlowPopup.success.yearly:f.paymentFlowPopup.success.monthly,D=_===b.H7.AR.value?null!==(i=null==l?void 0:l.title_ar)&&void 0!==i?i:"":null!==(a=null==l?void 0:l.title)&&void 0!==a?a:"",O=n.useMemo(()=>(null==S?void 0:S.pathname.includes("/ai-studio/text-to-video"))||(null==S?void 0:S.pathname.includes("/studio/create-video"))||(null==S?void 0:S.pathname.includes("/ai-studio/text-to-image")),[]);return(0,o.jsx)(m.J9,{children:(0,o.jsxs)(m.sF,{className:"gap-12 flex items-center justify-center flex-col",children:[(0,o.jsxs)("div",{className:"text-center flex gap-4 flex-col",children:[(0,o.jsx)(w,{options:{loop:!0,autoplay:!0,animationData:v},height:148.8,width:200,isClickToPauseDisabled:!0}),(0,o.jsxs)(y.M,{className:"text-secondary heading-5 text-center",children:[(0,o.jsx)("span",{className:"heading-5",children:f.paymentFlowPopup.success.title1}),(0,o.jsx)("br",{}),P?null:f.paymentFlowPopup.success.subscribedTitle(I,D)]}),P?(0,o.jsx)("span",{className:"text-center small-text text-white-65",children:f.paymentFlowPopup.success.credits((null==l?void 0:l.credits_amount)||(null==l?void 0:null===(t=l.details)||void 0===t?void 0:t.number_of_credits))}):(0,o.jsx)("span",{className:"text-center small-text text-white-65",children:f.paymentFlowPopup.success.subscribedDescription(D)})]}),(0,o.jsx)("div",{className:"flex items-center justify-center",children:P?(0,o.jsxs)(d.Z,{type:"secondary",size:"medium",className:"animate__animated animate__fadeInUp",onClick:O?T:E,children:[(0,o.jsx)(u.Z,{svgProps:{className:"ml-auto"},src:O?"/icons/magic-pen.svg":"/icons/home-2.svg",width:"24px",height:"24px",className:"ml-auto",fill:p.theme.extend.colors.white}),(0,o.jsx)("span",{className:"medium-text",children:O?f.global.close:f.global.backToStudio})]}):(0,o.jsxs)(d.Z,{type:"secondary",size:"medium",className:"animate__animated animate__fadeInUp",onClick:O?T:E,children:[(0,o.jsx)(u.Z,{svgProps:{className:"ml-auto"},src:O?"/icons/video-add.svg":"/icons/home-2.svg",width:"24px",height:"24px",className:"ml-auto",...O?{stroke:p.theme.extend.colors.white}:{fill:p.theme.extend.colors.white}}),(0,o.jsx)("span",{className:"medium-text",children:O?f.global.close:f.global.backToStudio})]})})]})})},S=i(25617),C=i(68419),k=i(3174),T=i(33443),E=i(90238),P=i(3653),I=i(71494),D=i(76776),O=i(56483),N=i(54565),j=i(9317),M=i(48416);let R=e=>{if(null==e)return null;let t=Number(e);return Number.isFinite(t)?t%1==0?String(t):t.toFixed(2):null},z=e=>{var t,i,o,n,r;return{discountWasApplied:!!(null==e?void 0:e.discount)||Number(null!==(n=null==e?void 0:null===(t=e.totals)||void 0===t?void 0:t.discount)&&void 0!==n?n:0)>0,discountedDueToday:R(null!==(r=null==e?void 0:null===(i=e.totals)||void 0===i?void 0:i.total)&&void 0!==r?r:null==e?void 0:null===(o=e.totals)||void 0===o?void 0:o.grand_total)}};var L=e=>{var t,i,d,u,p,m,h,f,v;let{onLoad:y,onCheckoutLoaded:x,onPaymentSuccess:w,isUpdatePayment:R}=e,L=n.useRef(y),V=n.useRef(x),F=n.useRef(w);L.current=y,V.current=x,F.current=w;let{isClassicSubscriber:U,userState:G,fetchUser:B,isNewSubscriber:Z,currentPlanInfo:q,hydrateUser:H}=(0,r.Z)(),{getBillingInfo:W}=(0,T.Z)(),Y=(0,S.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.Auth)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.billingInfo}),K=async()=>{try{let{data:e}=await W()}catch(e){}},Q=n.useContext(a._),$=null!==(h=null==Q?void 0:Q.paymentFlowState)&&void 0!==h?h:null,{displayPrice:X}=(0,N.Z)({isYearlyPlan:(null==$?void 0:null===(t=$.plan)||void 0===t?void 0:t.interval)==="year",plan:null==$?void 0:$.plan,isUpgrade:!!(null==Y?void 0:Y.subscription_plan_id)&&
1(null==$?void 0:null===(i=$.plan)||void 0===i?void 0:i.id)&&"upgrade"===(0,A.pT)(null==$?void 0:$.plan,q),isOneTimePayment:!!(null==$?void 0:null===(u=$.plan)||void 0===u?void 0:null===(d=u.details)||void 0===d?void 0:d.number_of_credits),upgradePreviewGrandTotal:null,isSubscribed:!!(null==G?void 0:null===(p=G.subscription)||void 0===p?void 0:p.is_subscribed)}),[,J]=n.useContext(s.kn),ee=(0,g.useRouter)(),et=n.useMemo(()=>new URLSearchParams(window.location.search).has("_ptxn"),[]),ei=(0,S.I0)(),eo=(0,c.Z)("billing"),en=(0,c.Z)(),er=n.useMemo(()=>{var e,t;return!!(null==$?void 0:null===(t=$.plan)||void 0===t?void 0:null===(e=t.details)||void 0===e?void 0:e.number_of_credits)},[null==$?void 0:null===(m=$.plan)||void 0===m?void 0:m.id]),ea=n.useMemo(()=>{var e;return!!(null==Y?void 0:Y.subscription_plan_id)&&(null==$?void 0:null===(e=$.plan)||void 0===e?void 0:e.id)&&"upgrade"===(0,A.pT)(null==$?void 0:$.plan,q)},[null==$?void 0:$.plan,q,null==Y?void 0:Y.subscription_plan_id]),el=n.useRef({paymentFlowState:$,displayPrice:X,isOneTimePayment:er,isUpgrade:ea,userState:G,isNewSubscriber:Z,currentPlanInfo:q,dispatchPaymentFlowState:null==Q?void 0:Q.dispatchPaymentFlowState,discountInvalid:en.checkoutModal.discountInvalid});el.current={paymentFlowState:$,displayPrice:X,isOneTimePayment:er,isUpgrade:ea,userState:G,isNewSubscriber:Z,currentPlanInfo:q,dispatchPaymentFlowState:null==Q?void 0:Q.dispatchPaymentFlowState,discountInvalid:en.checkoutModal.discountInvalid};let es={settings:{displayMode:"overlay",locale:"en",theme:"light",variant:"one-page"}},ed=()=>{(0,j.O5)(),J({type:s.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}})},eu=()=>{try{ei((0,C.Qm)({...G,subscription:{...null==G?void 0:G.subscription,is_subscribed:!0,new_subscriber:!1}}
1));let e=setTimeout(()=>{ei((0,C.bG)(e=>{ei((0,C.Qm)(e))})),K(),clearTimeout(e)},5e3);J({type:s.BT.TOAST_STATE_CHANGED,payload:{open:!0,type:"success",message:eo.updatePaymentMethodModal.success,time:2e3}}),J({type:s.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}})}catch(e){}},ec=e=>{var t,i,n,r;let{paymentFlowState:a,displayPrice:l,isOneTimePayment:d,isUpgrade:u,userState:c,isNewSubscriber:p,currentPlanInfo:m}=el.current,h=null==a?void 0:a.plan,f=(0,P.ui)(h),v=(0,D.h)({transactionId:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.transaction_id,isOneTimePayment:d,isPlanUpdate:(null==a?void 0:a.flow)===b.SC.UPDATE,planFlowType:(0,A.pT)(h,m)});if(d){let t=setTimeout(()=>{var i,o,n,r;H(),K(),k.Z.track("PURCHASE",{price:l,currency:"USD",transaction_id:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.transaction_id,item_ids:[null==h?void 0:h.id],item_category:"OneTimePurchase",number_items:1,user_email:null==c?void 0:c.email}),E.ZP.track(I.ak.PURCHASE_COMPLETED,{price:l,currency:"USD",transaction_id:null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.transaction_id,plan_name:f,plan_price:null==h?void 0:h.price,item_category:"OneTimePurchase",item_ids:(null==h?void 0:h.id)?[h.id]:void 0,purchase_type:"credits",billing_cycle:"one_time",event_id:v}),E.ZP.track(I.cy.CREDITS_PURCHASE_COMPLETED,{transaction_id:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.transaction_id,credits_package:null==h?void 0:null===(r=h.details)||void 0===r?void 0:r.number_of_credits,package_price:l,plan_name:f,purchase_type:"credits",billing_cycle:"one_time",currency:"USD"}),clearTimeout(t)},5e3)}else{let t=setTimeout(()=>{ei((0,C.Qm)({...c,subscription:{...null==c?void 0:c.subscription,is_subscribed:!0,new_subscriber:!1,subscription_plan_key:f}})),H(),K(),clearTimeout(t)},5e3);k.Z.track("PURCHASE",{price:l,currency:"USD",transaction_id:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.transaction_id,item_ids:[null==h?void 0:h.id],item_category:"Subscription",number_items:1,user_email:null==c?void 0:c.email}),E.ZP.track(I.ak.PURCHASE_COMPLETED,{price:l,currency:"USD",transaction_id:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.transaction_id,plan_name:f,plan_price:null==h?void 0:h.price,item_category:"Subscription",item_ids:(null==h?void 0:h.id)?[h.id]:void 0,purchase_type:"subscription",billing_cycle:(null==h?void 0:h.interval)==="year"?"annual"
1:"monthly",is_upgrade:u,...p||u?{event_id:v}:{}}),E.ZP.track(I.ak.SUBSCRIPTION_STARTED,{transaction_id:null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.transaction_id,plan_name:f,plan_price:null==h?void 0:h.price,item_category:"Subscription",purchase_type:"subscription",billing_cycle:(null==h?void 0:h.interval)==="year"?"annual":"monthly",is_upgrade:u}),E.ZP.setPlan({plan_name:f,plan_price:null==h?void 0:h.price,subscription_status:"active",lifecycle_stage:"active",$isSubscriber:!0})}let g=null==a?void 0:a.redirectTo;J({type:s.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,onClose:ed,children:(0,o.jsx)(_,{subscriptionInfo:{...null==$?void 0:$.plan,flow:null==$?void 0:$.flow},redirectTo:g})}}),(0,A.wq)(g,ed,{locale:ee.locale,user:G})},ep=null!==(v=null!==(f=null==Y?void 0:Y.paddle_customer_id)&&void 0!==f?f:null==G?void 0:G.pc_id)&&void 0!==v?v:null==G?void 0:G.paddle_customer_id,em=n.useMemo(()=>ep&&String(ep).startsWith("ctm_")?{id:ep}:{},[ep]),eh=n.useRef(eu),ef=n.useRef(ec);eh.current=eu,ef.current=ec;let ev=n.useCallback(e=>{var t,i,o,n,r,a,s,d,u;let{paymentFlowState:c,displayPrice:p,isOneTimePayment:m,dispatchPaymentFlowState:h,discountInvalid:f}=el.current,v=null==c?void 0:c.plan,g=(0,P.ui)(v);if("checkout.loaded"!==e.name||R||et||(null===(t=V.current)||void 0===t||t.call(V),E.ZP.track(I.ak.CHECKOUT_STARTED,{transaction_id:null!==(n=null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.transaction_id)&&void 0!==n?n:null==e?void 0:null===(o=e.checkout)||void 0===o?void 0:o.id,plan_name:g,cart_value:null==v?void 0:v.price,plan_price:p,currency:"USD",item_category:m?"OneTimePurchase":"Subscription"})),"checkout.updated"===e.name||"checkout.discount.applied"===e.name||"checkout.discount.removed"===e.name){let t=(0,O.o5)(),i=null!==(a=null!==(r=null==c?void 0:c.discountCode)&&void 0!==r?r:t)&&void 0!==a?a:null;if("checkout.discount.removed"===e.name)(0,O.rv)(),i&&l.Z.setDiscount({discountCode:null,discountedDueToday:null,discountError:null})({paymentFlowState:c,dispatchPaymentFlowState:h});else if(i){let{discountWasApplied:t,discountedDueToday:o}=z(null==e?void 0:e.data);(0,O.rv)(),t&&null!=o?l.Z.setDiscount({discountCode:i,discountedDueToday:o,discountError:null})({paymentFlowState:c,dispatchPaymentFlowState:h}):l.Z.setDiscount({discountCode:i,discountError:f,discountedDueToday:null})({paymentFlowState:c,dispatchPaymentFlowState:h})}}if("checkout.completed"===e.name){if(et)ee.replace("/");else if(R)eh.current();else{let{userState:t,isUpgrade:i,isOneTimePayment:o}=el.current,n=(0,A.O9)(i?"upgrade":"new",t),r=ee.asPath.split("?")[0];r&&ee.replace("".concat(r,"?").concat(n.toString())),o||(0,A.mS)(t)||(0,M.yU)(),F.current?F.
1current(e):ef.current(e)}}"checkout.closed"===e.name&&et&&ee.replace("/"),("checkout.payment.failed"===e.name||"checkout.payment.error"===e.name||"checkout.error"===e.name)&&E.ZP.track(I.ak.CHECKOUT_FAILED,{transaction_id:null!==(u=null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.transaction_id)&&void 0!==u?u:null==e?void 0:null===(d=e.checkout)||void 0===d?void 0:d.id,plan_name:g,cart_value:null==v?void 0:v.price,currency:"USD",item_category:m?"OneTimePurchase":"Subscription",error_type:e.code})},[R,et,ee]),eg=n.useCallback(()=>{var e;let t=window.Paddle;t&&(t.Setup({vendor:Number("165323")}),null===(e=L.current)||void 0===e||e.call(L))},[]),ey=n.useCallback(()=>{var e,t,i;let o=window.Paddle;if(o){if(!0===o.Initialized||(null===(e=o.Status)||void 0===e?void 0:e.initialized)===!0||!0===o.initialized){o.Update({pwCustomer:em,eventCallback:ev}),null===(i=L.current)||void 0===i||i.call(L);return}o.Initialize({token:"live_73c0e97515c4ffb66d4cda9d7bb",eventCallback:ev,pwCustomer:em,...et?{checkout:{...es}}:{}}),null===(t=L.current)||void 0===t||t.call(L)}},[em,ev]);return n.useEffect(()=>{var e,t,i;let o=!(U&&!er),n=document.querySelector('script[src*="paddle.com/paddle"]'),r=null==n?void 0:null===(e=n.src)||void 0===e?void 0:e.includes("v2/paddle"),a=o?r:!!n&&!r,l=window.Paddle,s=(null==l?void 0:l.Initialized)===!0||(null==l?void 0:null===(t=l.Status)||void 0===t?void 0:t.initialized)===!0||(null==l?void 0:l.initialized)===!0;if(o&&n&&l&&s){l.Update({pwCustomer:em,eventCallback:ev}),null===(i=L.current)||void 0===i||i.call(L);return}n&&!a&&(n.remove(),delete window.Paddle);let d=()=>{o?ey():eg()};if(n&&a){d();return}let u=document.createElement("script");u.src=o?"https://cdn.paddle.com/paddle/v2/paddle.js":"https://cdn.paddle.com/paddle/paddle.js",u.onload=d,document.body.appendChild(u)},[U,er,em,ev,eg,ey]),n.useEffect(()=>{var e;let t=window.Paddle;(null==t?void 0:t.Update)&&(!0===t.Initialized||(null===(e=t.Status)||void 0===e?void 0:e.initialized)===!0||!0===t.initialized)&&t.Update({pwCustomer:em})},[em]),null}},78445:function(e,t,i){"use strict";var o=i(85893),n=i(91167),r=i(46321),a=i(67294),l=i(5405),s=i(31155),d=i(27524),u=i(91729),c=i(20931),p=i(90549),m=i(30027),h=i(87251),f=i(25617),v=i(46916),g=i(45608),y=i(24556),b=i(76979),A=i(3653);let x=()=>window.matchMedia("(max-width: 767px)").matches,w=l.ZP.div.withConfig({componentId:"sc-c59b84be-0"})(["position:relative;width:100%;height:100%;display:flex;flex-direction:column;align-items:stretch;@media (max-width:767px){height:auto;}",""],e=>e.$isPopular?'\n    &::before {\n      content: "";\n      position: absolute;\n      inset: -32px -8px -8px;\n      border-radius: 32px;\n      background: linear-gradient(\n        180deg,\n        rgba(102, 129, 211, 0.45) 0%,\n        rgba(102, 129, 211, 0) 30%\n      );\n      pointer-events: none;\n      z-index: 0;\n    }\n\n    [data-theme="light"] &::before {\n      background: linear-gradient(\n        180deg,\n        rgba(102, 129, 211, 0.35) 0%,\n        rgba(102, 129, 211, 0) 30%\n      );\n    }\n\n    @media (max-width: 767px) {\n      margin-top: 32px;\n\n      &::before {\n        inset: -32px -8px -8px;\n      }\n    }\n  ':""),_=l.ZP.div.withConfig({componentId:"sc-c59b84be-1"})(["position:absolute;top:-25px;left:50%;transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:4px;z-index:3;color:#fff;font-size:14px;font-weight:500;line-height:18px;white-space:nowrap;pointer-events:none;"]),S=l.ZP.div.withConfig({componentId:"sc-c59b84be-2"})(["position:relative;width:100%;height:100%;flex:1;z-index:1;overflow:hidden;border-radius:32px;isolation:isolate;&&.studio-glass-card{background:rgba(255,255,255,0.05);}"," @media (max-width:767px){height:auto;flex:none;cursor:pointer;}"],e=>e.$isPopular?"box-shadow: 0px -8px 20px 0px rgba(102, 129, 211, 0.04);":""),C=l.ZP.div.withConfig({componentId:"sc-c59b84be-3"})(['position:absolute;inset:0;z-index:0;overflow:hidden;border-radius:inherit;pointer-events:none;&::before{content:"";position:absolute;width:259.166px;height:259.166px;border-radius:50%;pointer-events:none;background-color:',";filter:blur(59px);opacity:0.3;bottom:-0.75px;",":-258.92px;","}"],e=>{let{$glowColor:t}=e;return t},e=>{let{$isRtl:t}=e;return t?"right":"left"},e=>{let{$isRtl:t}=e;return t?"left: auto;
1":"right: auto;"}),k=l.ZP.div.withConfig({componentId:"sc-c59b84be-4"})(['position:absolute;inset:0;z-index:1;overflow:visible;border-radius:inherit;pointer-events:none;&::before{content:"";position:absolute;width:259.166px;height:259.166px;border-radius:50%;pointer-events:none;background-color:',";filter:blur(59px);opacity:0.6;top:-146.75px;","}"],e=>{let{$glowColor:t}=e;return t},e=>{let{$isRtl:t}=e;return t?"\n      left: calc(50% - 112.42px);\n      right: auto;\n      transform: translateX(-50%);\n    ":"\n      right: calc(50% - 112.42px);\n      left: auto;\n      transform: translateX(50%);\n    "}),T=l.ZP.div.withConfig({componentId:"sc-c59b84be-5"})(["position:absolute;inset:0;z-index:0;border-radius:inherit;background:#212121;box-shadow:",';pointer-events:none;[data-theme="light"] &{background:rgba(255,255,255,0.05);box-shadow:none;}@media (max-width:767px){box-shadow:none;}'],e=>{let{$isRtl:t}=e;return t?"4px 20px 10px rgba(0, 0, 0, 0.15)":"-4px 20px 10px rgba(0, 0, 0, 0.15)"}),E=l.ZP.div.withConfig({componentId:"sc-c59b84be-6"})(["position:relative;z-index:2;display:flex;flex-direction:column;gap:inherit;width:100%;"]),P=l.ZP.div.withConfig({componentId:"sc-c59b84be-7"})(["position:relative;width:100%;height:100%;overflow:hidden;z-index:1;flex:1;border-radius:32px;"," isolation:isolate;"," @media (max-width:767px){height:auto;flex:none;cursor:pointer;}",""],e=>e.$glass?"":"\n    background-color: ".concat(e.$background||"#212121",";\n    background-image: ").concat(e.$overlayColor?"linear-gradient(".concat(e.$overlayColor,", ").concat(e.$overlayColor,")"):"none",";\n  "),e=>!e.$glass&&e.$isPopular?"box-shadow: 0px -8px 20px 0px rgba(102, 129, 211, 0.07);":"",e=>!e.$glass&&e.$glowColor&&"transparent"!==e.$glowColor?'\n    /* Figma plan card orbs — 259px blur ellipses (node 33732:21941) */\n    &::before {\n      content: "";\n      position: absolute;\n      z-index: 0;\n      width: 259.166px;\n      height: 259.166px;\n      border-radius: 50%;\n      pointer-events: none;\n      background-color: '.concat(e.$glowColor,";\n      filter: blur(59px);\n      opacity: 0.3;\n      bottom: -0.75px;\n      ").concat(e.$isRtl?"right":"left",": -258.92px;\n      ").concat(e.$isRtl?"left: auto;":"right: auto;",'\n    }\n\n    &::after {\n      content: "";\n      position: absolute;\n      z-index: 1;\n      width: 259.166px;\n      height: 259.166px;\n      border-radius: 50%;\n      pointer-events: none;\n      background-color: ').concat(e.$glowColor,";\n      filter: blur(59px);\n      opacity: 0.6;\n      top: -146.75px;\n      ").concat(e.$isRtl?"\n      left: calc(50% - 112.42px);\n      right: auto;\n      transform: translateX(-50%);\n    ":"\n      right: calc(50% - 112.42px);\n      left: auto;\n      transform: translateX(50%);\n    ","\n    }\n  "):""),I=l.ZP.div.withConfig({componentId:"sc-c59b84be-8"})(["position:relative;z-index:9;box-sizing:border-box;height:100%;border:",";border-radius:32px;padding:12px;display:flex;flex-direction:column;align-items:stretch;gap:24px;"," @media (max-width:767px){height:auto;padding:",";gap:0;}"],e=>{let{$glass:t}=e;return t?"none":"1.5px solid rgb(255 255 255 / 5%)"},e=>{let{$glass:t,$planType:i}=e;return t?"":'\n    [data-theme="light"] & {\n      border-color: '.concat("basic"===i?"rgba(146, 146, 146, 0.15)":"rgba(146, 146, 146, 0.25)",";\n    }\n  ")},e=>{let{$planType:t}=e;return"pro"===t?"12.75px":"creator"===t||"business"===t?"13.5px":"13px"}),D=l.ZP.div.withConfig({componentId:"sc-c59b84be-9"})(["position:relative;display:flex;flex-direction:column;gap:64px;width:100%;padding:12px 16px;border-radius:24px;box-shadow:",";"," @media (max-width:767px){gap:24px;padding:",";border-radius:24px;box-shadow:none;}"],e=>{let{$isRtl:t,$glass:i}=e;return i?"none":t?"4px 20px 10px rgba(0, 0, 0, 0.15)":"-4px 20px 10px rgba(0, 0, 0, 0.15)"},e=>{let{$glass:t}=e;return t?"\n    overflow: visible;\n  ":'\n    /* The light panel edge comes from its translucent white fill reading\n       against the plan-tinted card, not a shadow. */\n    [data-theme="light"] & {\n      background: rgba(255, 255, 255, 0.05);\n      box-shadow: none;\n    }\n  '},e=>{let{$isPopular:t}=e;return t?"12px 8px":"0 8px"}),O=l.ZP.div.withConfig({componentId:"sc-c59b84be-10"})(["display:flex;flex-direction:column;align-items:stretch;width:100%;gap:8px;@media (min-width:768px){flex-direction:row;align-items:center;justify-content:space-between;gap:12px;}"]),N=l.ZP.div.withConfig({componentId:"sc-c59b84be-11"})(["display:flex;align-items:center;justify-content:space-between;width:100%;gap:12px;"]),j=l.ZP.div.withConfig({componentId:"sc-c59b84be-12"})(["display:none;@media (max-width:767px){display:block;}"]),M=l.ZP.div.withConfig({componentId:"sc-c59b84be-13"})(["@media (max-width:767px){display:none;}"]),R=l.ZP.div.withConfig({componentId:"sc-c59b84be-14"})(["display:flex;flex-direction:column;gap:6px;min-width:0;"]),z=l.ZP.h3.withConfig({componentId:"sc-c59b84be-15"})(['margin:0;font-size:20px;font-weight:600;line-height:30px;color:var(--white);text-align:start;[data-theme="light"] &{color:#0c0c0c;}[lang="ar"] &{font-weight:500;}']),L=l.ZP.p.withConfig({componentId:"sc-c59b84be-16"})(['margin:0;font-size:14px;font-weight:500;line-height:20px;min-height:40px;color:var(--custom-white);[data-theme="light"] &{color:var(--custom-white);}@media (max-width:767px){display:none;}']),V=l.ZP.button.withConfig({componentId:"sc-c59b84be-17"})(["display:none;align-items:center;justify-content:center;background:transparent;border:none;cursor:pointer;padding:0;color:var(--white);transition:transform 0.3s ease;transform:rotate(",');[data-theme="light"] &{color:#0c0c0c;}@media (max-width:767px){display:flex;}'],e=>
1e.$isOpen?"180deg":"0deg"),F=l.ZP.div.withConfig({componentId:"sc-c59b84be-18"})(["display:flex;flex-direction:column;gap:16px;width:100%;"]),U=l.ZP.div.withConfig({componentId:"sc-c59b84be-19"})(['display:flex;align-items:baseline;gap:4px;color:var(--white);[data-theme="light"] &{color:#0c0c0c;}']),G=l.ZP.span.withConfig({componentId:"sc-c59b84be-20"})(['font-size:20px;font-weight:600;line-height:28px;text-decoration:line-through;color:var(--text-shade-2);margin-inline-end:6px;unicode-bidi:isolate;[data-theme="light"] &{color:#878f97;}']),B=l.ZP.span.withConfig({componentId:"sc-c59b84be-21"})(["font-size:36px;font-weight:800;line-height:40px;unicode-bidi:isolate;@media (max-width:767px){font-size:30px;line-height:30px;}"]),Z=l.ZP.span.withConfig({componentId:"sc-c59b84be-22"})(["font-size:12px;font-weight:500;line-height:18px;color:inherit;"]),q=l.ZP.div.withConfig({componentId:"sc-c59b84be-23"})(["display:flex;gap:12px;width:100%;"]),H=l.ZP.div.withConfig({componentId:"sc-c59b84be-24"})(['flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:12px 8px;border-radius:12px;background:rgba(255,255,255,0.05);box-shadow:0px 4px 20px 0px rgba(0,0,0,0.05);[data-theme="light"] &{background:#f2f2f2;box-shadow:0px 4px 10px 0px rgba(0,0,0,0.05);}']),W=l.ZP.span.withConfig({componentId:"sc-c59b84be-25"})(['font-size:16px;font-weight:600;line-height:18px;color:var(--white);unicode-bidi:isolate;[data-theme="light"] &{color:#0c0c0c;}']),Y=l.ZP.span.withConfig({componentId:"sc-c59b84be-26"})(['font-size:12px;font-weight:600;line-height:14px;text-align:center;white-space:nowrap;color:var(--white);unicode-bidi:isolate;[data-theme="light"] &{color:#0c0c0c;}']),K=l.ZP.div.withConfig({componentId:"sc-c59b84be-27"})(["display:flex;flex-direction:column;gap:24px;width:100%;flex:1;@media (max-width:767px){flex:0 0 auto;transition:max-height 0.5s ease,margin-top 0.5s ease;max-height:",";margin-top:",";overflow:hidden;pointer-events:",";gap:",";}"],e=>e.$isOpen?e.$maxHeight||"2000px":"0px",e=>e.$isOpen?"24px":"0",e=>e.$isOpen?"auto":"none",e=>e.$isOpen?"16px":"0"),Q=(0,l.ZP)(n.Z).withConfig({componentId:"sc-c59b84be-28"})(["width:100%;height:48px;min-height:48px;border-radius:12px !important;padding:16px 18px !important;"," &:active:not(:disabled){transform:scale(0.98);}"],e=>e.$glass?"":"\n    &:hover:not(:disabled) {\n      box-shadow: ".concat(e.$buttonColor?"0px 0px 32px "+e.$buttonColor:"none"," !important;\n    }\n  ")),$=l.ZP.ul.withConfig({componentId:"sc-c59b84be-29"})(["list-style:none;margin:0;padding:17px 16px 16px;display:flex;flex-direction:column;gap:8px;width:100%;border-top:1px solid rgba(146,146,146,0.15);border-radius:24px;"]),X=l.ZP.li.withConfig({componentId:"sc-c59b84be-30"})(["display:flex;align-items:flex-start;gap:8px;width:100%;color:var(--text-shade-1);"]),J=l.ZP.span.withConfig({componentId:"sc-c59b84be-31"})(["display:flex;flex-shrink:0;align-items:flex-start;justify-content:center;width:14px;height:14px;overflow:hidden;border-radius:7px;margin-top:1px;"]),ee=l.ZP.span.withConfig({componentId:"sc-c59b84be-32"})(["font-size:12px;font-weight:500;line-height:normal;color:var(--text-shade-1);text-align:",';word-break:break-word;unicode-bidi:isolate;[lang="ar"] &{font-weight:500;}[data-theme="light"] &{color:var(--text-shade-1);}'],e=>{let{$isRtl:t}=e;return t?"right":"start"}),et=l.ZP.div.withConfig({componentId:"sc-c59b84be-33"})(["display:flex;align-items:flex-start;justify-content:center;gap:4px;width:100%;"]);t.Z=a.memo(e=>{var t,i,n,l,ei,eo,en;let{className:er,plan:ea,onPlanSelect:el,actionText:es,isCurrentPlan:ed=!1,isTransitionUnavailable:eu=!1,isByDefaultOpen:ec=!1,customFeatureList:ep,ctaAnalyticsPosition:em,paymentRedirectTo:eh,surface:ef="default",ctaGradient:ev=!1}=e,[eg,ey]=(0,a.useState)(ec),[eb,eA]=(0,a.useState)("0px"),ex=(0,a.useRef)(null),ew=(0,a.useRef)(null),[,e_]=a.useContext(s.kn),{getDirection:eS}=a.useContext(d.AZ),{isClassicSubscriber:eC,billingInfo:ek,isSubscribed:eT}=(0,p.Z)(),eE=(0,v.Z)(),eP="rtl"===eS,eI=(0,h.Z)(),{mode:eD}=(0,f.v9)(e=>e.Theme),eO=(0,a.useCallback)(()=>{x()&&ey(e=>!e)},[]),eN=(0,a.useCallback)(()=>
1{if(ex.current){let e=ex.current.scrollHeight;eA("".concat(e+24,"px"))}},[]);(0,a.useEffect)(()=>{if(!ex.current)return;let e=new ResizeObserver(()=>{if(!ex.current)return;let e=ex.current.scrollHeight;e>0&&eA("".concat(e+24,"px"))});return e.observe(ex.current),ew.current=e,eN(),()=>{ew.current&&ew.current.disconnect()}},[eN,eg]),(0,a.useEffect)(()=>{eg&&requestAnimationFrame(()=>{eN()})},[eg,eN]);let ej=a.useMemo(()=>{var e;let t=null==ek?void 0:ek.scheduled_downgrade_plan_id;return!!t&&null!=ea&&null!==(e=ea.selectedItem)&&void 0!==e&&!!e.id&&Number(t)===Number(ea.selectedItem.id)},[null==ek?void 0:ek.scheduled_downgrade_plan_id,null==ea?void 0:null===(t=ea.selectedItem)||void 0===t?void 0:t.id]),eM=e=>{e.preventDefault(),e.stopPropagation(),e_({type:s.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,o.jsx)(u.ZP,{paymentFlowProps:{plan:ea,flow:eT?c.SC.UPDATE:null,...eh?{redirectTo:eh}:{}}})}})},eR=(null==ea?void 0:ea.title)||"",ez=(null==ea?void 0:ea.price)||0,eL=(0,m.fK)(eR,ez,(null==ea?void 0:ea.interval)==="year"),eV=m.C2[eL]||m.C2.basic,eF=(0,m.uI)(eL,(null==ea?void 0:ea.credits_amount)||0),eU=(null==ep?void 0:ep.length)?ep:(0,m.dO)(eF),eG=(null==ea?void 0:ea.interval)==="year",eB=!!("isPopular"in eV&&eV.isPopular),eZ=(0,m.GR)(eL),eq="description"in eV?(null===(i=eV.description)||void 0===i?void 0:i[eE])||(null===(n=eV.description)||void 0===n?void 0:n.en):"",eH="topCardLabel"in eV?(null===(l=eV.topCardLabel)||void 0===l?void 0:l[eE])||(null===(ei=eV.topCardLabel)||void 0===ei?void 0:ei.en):eI.pricing.planCard.mostChosen,eW=a.useMemo(()=>{var e,t,i;if(!(null==ea?void 0:null===(e=ea.sale)||void 0===e?void 0:e.amount))return null==ea?void 0:ea.price;let o=Number(null==ea?void 0:null===(t=ea.sale)||void 0===t?void 0:t.amount);return(null==ea?void 0:null===(i=ea.sale)||void 0===i?void 0:i.type)==="percentage"?Math.round(((null==ea?void 0:ea.price)-(null==ea?void 0:ea.price)*o/100)*100)/100:Math.round(((null==ea?void 0:ea.price)-o)*100)/100},[null==ea?void 0:ea.price,null==ea?void 0:null===(eo=ea.sale)||void 0===eo?void 0:eo.amount,null==ea?void 0:null===(en=ea.sale)||void 0===en?void 0:en.type]),eY=a.useMemo(()=>{if(!eG)return null;let e=Number(null==ea?void 0:ea.price)||0,t=Number(eW)||0;return{original:(0,g.Md)(e/12,1),afterSale:(0,g.Md)(t/12,1)}},[eG,null==ea?void 0:ea.price,eW]);a.useLayoutEffect(()=>{ec&&eg&&eN()},[ec,eg,eN]);let eK=!eC&&(null==ea?void 0:ea.sale),eQ=eY?eK?eY.afterSale:eY.original:eK?eW:(null==ea?void 0:ea.price)||0,e$=eY?eY.original:(null==ea?void 0:ea.price)||0,eX="glass"===ef,eJ=eB&&(eX||ev),e0=(0,m.pQ)(eV.buttonColor,eD),e1=(0,m.FB)(eV.buttonTextColor,eD),e2=(0,m.dF)(eV.backgroundColor,eD),e3="basic"===eL?"transparent":"glowColor"in eV?eV.glowColor:"transparent",e4="overlayColor"in eV?eV.overlayColor[eD]:void 0,e5=ej?eI.pricing.planCard.scheduledNextCycle:ed?es||eI.pricing.planCard.currentPlan:eu?eI.pricing.planCard.unavailable:es||eI.pricing.planCard.startNow,e6=1===eZ||"ar"===eE&&eZ>10?eI.pricing.planCard.ugcVideoPerMonth:eI.pricing.planCard.ugcVideosPerMonth,e8=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(O,{children:[(0,o.jsxs)(N,{children:[(0,o.jsxs)(R,{children:[(0,o.jsx)(z,{children:"ar"===eE&&(null==ea?void 0:ea.title_ar)||eR}),eq?(0,o.jsx)(L,{children:eq}):null]}),(0,o.jsx)(V,{type:"button",$isOpen:eg,"aria-expanded":eg,"aria-label":eR,children:(0,o.jsx)(r.Z,{src:"/icons/arrow-down.svg",width:"24px",height:"24px",color:"currentColor",fill:"currentColor"})})]}),(0,o.jsx)(j,{children:(0,o.jsxs)(U,{children:[eK?(0,o.jsxs)(G,{children:["$",e$]}):null,(0,o.jsxs)(B,{children:["$",eQ]}),(0,o.jsx)(Z,{children:eI.pricing.planCard.perMonth})]})})]}),(0,o.jsxs)(F,{children:[(0,o.jsx)(M,{children:(0,o.jsxs)(U,{children:[eK?(0,o.jsxs)(G,{children:["$",e$]}):null,(0,o.jsxs)(B,{children:["$",eQ]}),(0,o.jsx)(Z,{children:eI.pricing.planCard.perMonth})]})}),(0,o.jsxs)(q,{children:[(0,o.jsxs)(H,{children:[(0,o.jsx)(W,{children:(0,y.x6)(eZ)}),(0,o.jsx)(Y,{children:e6})]}),(0,o.jsxs)(H,{children:[(0,o.jsx)(W,{children:(0,y.x6)((null==ea?void 0:ea.credits_amount)||0)}),(0,o.jsx)(Y,{children:eI.pricing.planCard.creditsPerMonth})]})]})]})]}),e9=(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(D,{$isRtl:eP,$isPopular:eB,$glass:eX,children:eX?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(T,{$isRtl:eP}),e3&&"transparent"!==e3&&!eB?(0,o.jsx)(k,{$glowColor:e3,$isRtl:eP}):null,(0,o.jsx)(E,{children:e8})]}):e8}),(0,o.jsx)(K,{$isOpen:eg,$maxHeight:eb,children:(0,o.jsxs)("div",{ref:ex,className:"flex flex-col gap-6 w-full",children:[(0,o.jsx)(Q,{type:"secondary",size:"medium",onClick:e=>{if(e.preventDefault(),e.stopPropagation(),!ed&&!ej&&!eu){if(em&&(0,b.j)("choose_plan",{cta_type:"primary",button_text:es||(null==ea?void 0:ea.title),position:em,plan_name:(0,A.cf)(ea),plan_price:null==ea?void 0:ea.price,billing_cycle:(0,A.tF)(null==ea?void 0:ea.interval)}),el){el(ea);return}eM(e)}},style:eJ?eu||ej?{opacity:.5}:void 0:{background:e0,border:"none",color:e1,...eu||ej?{opacity:.5}:{}},disabled:ed||ej||eu,$buttonColor:eJ?void 0:e0,$glass:eJ,children:(0,o.jsx)("span",{className:"text-sm font-medium",children:e5})}),!eu||ed||ej?null:(0,o.jsxs)(et,{children:[(0,o.jsx)(r.Z,{src:"/icons/info-circle.svg",width:"16px",height:"16px",className:"shrink-0 mt-0.5",stroke:"var(--text-shade-2)"}),(0,o.jsx)("span",{className:"text-xs font-medium text-center text-shade-3 leading-snug",children:eI.pricing.planCard.notAvailableFromCurrentPlan})]}),(0,o.jsx)($,{$isRtl:eP,children:eU.map((e,t)=>(0,o.jsxs)(X,{$isRtl:eP,children:[(0,o.jsx)(J,{"aria-hidden":!0,
1children:(0,o.jsx)(r.Z,{src:"/icons/ugc-category-check.svg",width:"14px",height:"14px",fill:"none",stroke:"currentColor",color:"currentColor"})}),(0,o.jsx)(ee,{$isRtl:eP,children:e.text[eE]||e.text.en})]},t))})]})})]});return(0,o.jsxs)(w,{$isPopular:eB,className:er,children:[eB?(0,o.jsxs)(_,{children:[(0,o.jsx)(r.Z,{src:"/icons/magic-star.svg",width:"20px",height:"20px"}),(0,o.jsx)("span",{children:eH})]}):null,eX?(0,o.jsx)(S,{className:"studio-glass-card studio-glass-card--deep",$isPopular:eB,children:(0,o.jsx)(P,{"data-type":eL,dir:eS,$isRtl:eP,$glass:eX,$background:e2,$overlayColor:e4,onClick:eO,children:(0,o.jsxs)(I,{$planType:eL,$glass:eX,children:[e3&&"transparent"!==e3?(0,o.jsx)(C,{$glowColor:e3,$isRtl:eP}):null,e9]})})}):(0,o.jsx)(P,{"data-type":eL,dir:eS,$isRtl:eP,$glass:eX,$background:e2,$glowColor:e3,$overlayColor:e4,$isPopular:eB,onClick:eO,children:(0,o.jsx)(I,{$planType:eL,$glass:eX,children:e9})})]})})},75446:function(e,t,i){"use strict";var o=i(85893),n=i(5405),r=i(46321);let a=n.ZP.div.withConfig({componentId:"sc-193d5524-0"})(["padding:12px 16px;border-radius:",";border:",";background:",";background-clip:padding-box;max-width:1440px;margin:0 auto;display:flex;align-items:start;justify-content:center;gap:8px;color:var(--white);@media (max-width:768px){align-items:flex-start;}"],e=>{let{$glass:t}=e;return t?"12px":"8px"},e=>{let{$glass:t}=e;return t?"none":"1px solid rgba(255, 255, 255, 0.08)"},e=>{let{$glass:t}=e;return t?"transparent":"linear-gradient(90deg, #6681d3 0%, #1b1c21 100%)"}),l=n.ZP.p.withConfig({componentId:"sc-193d5524-1"})(['font-size:14px;line-height:20px;margin:0;@media (max-width:768px){font-size:12px;text-align:left;flex:1;[lang="ar"] &{text-align:right;}}']),s=(0,n.ZP)(r.Z).withConfig({componentId:"sc-193d5524-2"})(["display:block;width:20px !important;height:20px !important;@media (max-width:768px){width:16px !important;height:16px !important;}"]);t.Z=e=>{let{disclaimer:t="",glass:i=!1}=e;return(0,o.jsxs)(a,{$glass:i,className:i?"studio-glass":void 0,children:[(0,o.jsx)(s,{src:"/icons/info-circle.svg",width:"100%",height:"100%",stroke:"currentColor",color:"currentColor"}),(0,o.jsx)(l,{children:t})]})}},23673:function(e,t,i){"use strict";var o=i(85893);i(67294);let n=i(5405).ZP.h1.withConfig({componentId:"sc-1a88381a-0"})(["font-style:normal;font-weight:600;font-size:20px;line-height:30px;@media (max-width:830px){font-style:normal;font-weight:600;font-size:17px;line-height:21px;}"]);t.Z=e=>(0,o.jsx)(n,{className:"text-white-80 ".concat(e.className),children:e.children})},14998:function(e,t,i){"use strict";var o=i(67294),n=i(73935);t.Z=e=>{let{target:t,addToLeft:i,addToRight:r,alignStart:a,alignEnd:l,bottom:s,top:d}=e,u=document.documentElement.clientWidth,c=null==t?void 0:t.getBoundingClientRect();return n.createPortal(o.Children.map(e.children,e=>{var n,p,m,h,f,v,g,y,b,A,x,w;if(!o.isValidElement(e))return e;let _="number"==typeof(null===(n=e.props.style)||void 0===n?void 0:n.width)?e.props.style.width:"number"==typeof(null===(p=e.props.style)||void 0===p?void 0:p.minWidth)?e.props.style.minWidth:0,S=a&&c?(()=>{let e=Math.max(8,c.left),t=Math.max(0,u-e-8);return{left:"".concat(e,"px"),right:"unset",maxWidth:"".concat(t,"px"),..._>0?{width:"".concat(Math.min(_,t),"px")}:{}}})():{},C=l&&c?(()=>{let e=Math.max(0,Math.min(c.right-8,u-16)),t=_>0?Math.min(_,e):0;return{left:"unset",right:"".concat(Math.max(0,u-c.right),"px"),maxWidth:"".concat(e,"px"),...t>0?{width:"".concat(t,"px"),minWidth:"".concat(t,"px")}:{}}})():{};return o.cloneElement(e,{...e.props,className:e.props.className,style:{...e.props.style,position:"absolute",...s?{bottom:(null!==(f=null==t?void 0:t.offsetHeight)&&void 0!==f?f:0)+20}:d?{bottom:null==c?void 0:c.top}:{top:(null!==(v=null==c?void 0:c.top)&&void 0!==v?v:0)+(null!==(g=null==t?void 0:t.offsetHeight)&&void 0!==g?g:0)+10},...a||l?{...S,...C}:{},...a||l||!i?{}:{right:"unset",left:(null!==(y=null==c?void 0:c.right)&&void 0!==y?y:0)-(null!==(b=null===(m=e.props.style)||void 0===m?void 0:m.minWidth)&&void 0!==b?b:0)>0?(null!==(A=null==c?void 0:c.right)&&void 0!==A?A:0)-(null!==(x=null===(h=e.props.style)||void 0===h?void 0:h.minWidth)&&void 0!==x?x:0):10},...a||l||!r?{}:{left:"unset",right:"calc(100% - ".concat(null!==(w=null==c?void 0:c.right)&&void 0!==w?w:0,"px)")}}})}),document.body)}},91729:function(e,t,i){"use strict";i.d(t,{sF:function(){return i0},J9:function(){return iX},ZP:function(){return i3}});var o=i(85893),n=i(46321),r=i(20931),a=i(31155),l=i(67294),s=i(25617),d=i(5405),u=i(43002),c=i(91167),p=i(82821),m=i(68419),h=i(36135),f=i(87251),v=i(33443),g=i(11163),y=i(10847),b=i(5152),A=i.n(b),x=i(40198),w=i(41614),_=i(91291),S=i(90549),C=i(30381),k=i.n(C);let T=A()(()=>Promise.all([i.e(60296),i.e(79464)]).then(i.bind(i,79464)),{loadableGenerated:{webpack:()=>[79464]},ssr:!1});var E=e=>{let{subscriptionInfo:t,isScheduledDowngrade:i,effectiveDate:s,redirectTo:d}=e,u=(0,f.Z)(),p=(0,g.useRouter)(),{userState:m}=(0,S.Z)(),[,h]=l.useContext(a.kn),v=()=>{h({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,exitStyle:{display:"none"},children:null}})},b=l.useMemo(()=>
1(null==p?void 0:p.pathname.includes("/ai-studio/text-to-video"))||(null==p?void 0:p.pathname.includes("/studio/create-video"))||(null==p?void 0:p.pathname.includes("/ai-studio/text-to-image")),[]);return(0,o.jsx)(iX,{children:(0,o.jsxs)(i0,{className:"gap-12 flex items-center justify-center flex-col",children:[(0,o.jsxs)("div",{className:"text-center flex gap-4 flex-col",children:[(0,o.jsx)(T,{options:{loop:!0,autoplay:!0,animationData:x},height:148.8,width:200,isClickToPauseDisabled:!0}),(0,o.jsxs)(w.M,{className:"text-secondary heading-5 text-center",children:[(0,o.jsx)("span",{className:"heading-5",children:u.paymentFlowPopup.success.title1})," ",(0,o.jsx)("br",{}),i?u.paymentFlowPopup.success.scheduledDowngradeTitle:u.paymentFlowPopup.success.upgrade]}),(0,o.jsx)("span",{className:"text-center small-text text-white-65",children:i?u.paymentFlowPopup.success.scheduledDowngradeDescription(null==t?void 0:t.credits_amount,s?k()(s).format("DD MMMM YYYY"):"the end of your current billing cycle"):u.paymentFlowPopup.success.changedPlanDescription(null==t?void 0:t.credits_amount)})]}),(0,o.jsx)("div",{className:"flex items-center justify-center",children:(0,o.jsxs)(c.Z,{type:"secondary",size:"medium",className:"animate__animated animate__fadeInUp",onClick:b?v:()=>{if(v(),d){window.location.assign((0,_.kU)(d,p.locale,"upgrade",m));return}p.replace(r.P2.STUDIO_AI_MAIN)},children:[!b&&(0,o.jsx)(n.Z,{svgProps:{className:"ml-auto"},src:"/icons/home-2.svg",width:"24px",height:"24px",className:"ml-auto",fill:y.theme.extend.colors.white}),(0,o.jsx)("span",{className:"medium-text",children:b?u.global.close:u.global.backToStudio})]})})]})})},P=i(74807),I=i(93046),D=i(3174),O=i(90238),N=i(3653),j=i(71494),M=i(78783),R=i(54565),z=i(6627),L=e=>{var t,i,n,d,y,b,A,x;let{userState:w,isReactivate:C,isSubscribed:k,isPaused:T,billingInfo:L,currentPlanInfo:V,hydrateUser:F}=(0,S.Z)(),U=(0,g.useRouter)(),G=(0,f.Z)(),B=(0,s.I0)(),{trackToolConfiguration:Z}=(0,z.G)("billing"),{paymentFlowState:q,dispatchPaymentFlowState:H}=l.useContext(u._),{displayPrice:W,isMonthlyToMonthlyDowngrade:Y,isAnnualToAnnualDowngrade:K}=(0,R.Z)({isYearlyPlan:(null==q?void 0:null===(t=q.plan)||void 0===t?void 0:t.interval)==="year",plan:null==q?void 0:q.plan,isUpgrade:!!(null==L?void 0:L.subscription_plan_id)&&(null==q?void 0:null===(i=q.plan)||void 0===i?void 0:i.id)&&"upgrade"===(0,_.pT)(null==q?void 0:q.plan,V),isOneTimePayment:!!(null==q?void 0:null===(d=q.plan)||void 0===d?void 0:null===(n=d.details)||void 0===n?void 0:n.number_of_credits),upgradePreviewGrandTotal:null,isSubscribed:!!(null==w?void 0:null===(y=w.subscription)||void 0===y?void 0:y.is_subscribed)}),{updateSubscriptionPlan:Q,reactivateSubscription:$,getBillingInfo:X}=(0,v.Z)(),[,J]=l.useContext(a.kn),[ee,et]=l.useState(!1),ei=l.useMemo(()=>{var e,t;return!!(null==q?void 0:null===(t=q.plan)||void 0===t?void 0:null===(e=t.details)||void 0===e?void 0:e.number_of_credits)},[null==q?void 0:null===(b=q.plan)||void 0===b?void 0:b.id]),eo=(e,t)=>{var i,o,n,r;O.ZP.track(j.m_.PAYWALL_INTERACTION,{paywall_type:ei?"credits":"subscription",action_type:e,plan_name:null!==(r=null==q?void 0:null===(i=q.plan)||void 0===i?void 0:i.key)&&void 0!==r?r:null==q?void 0:null===(o=q.plan)||void 0===o?void 0:o.title,plan_price:null==q?void 0:null===(n=q.plan)||void 0===n?void 0:n.price,cta_name:t})},en=async()=>{try{let{data:e}=await X()}catch(e){}},er=async()=>{var e,t,i,n,r,l;try{et(!0);let l=(0,_.pz)(null==q?void 0:q.plan),{data:s}=await Q({planId:l});B((0,m.bG)(e=>B((0,m.Qm)(e))));let d=setTimeout(()=>{F(),en(),clearTimeout(d)},2e3);U.replace("".concat(U.asPath,"?tab=subscription&type=upgrade&status=success")),D.Z.track("PURCHASE",{price:W,currency:"USD",item_ids:[null==q?void 0:null===(e=q.plan)||void 0===e?void 0:e.id],item_category:"Subscription",number_items:1,user_email:null==w?void 0:w.email});let u=(0,_.pT)(null==q?void 0:q.plan,V),c="upgrade"===u,p=(null==q?void 0:null===(t=q.plan)||void 0===t?void 0:t.interval)==="year"?"annual"
1:"monthly",h=(0,N.ui)(null==q?void 0:q.plan),f=null!==(r=(0,N.ui)(V))&&void 0!==r?r:null==V?void 0:V.title;O.ZP.track(j.ak.PURCHASE_COMPLETED,{transaction_id:null==s?void 0:s.event_id,plan_name:h,plan_price:W,price:W,currency:"USD",item_category:"Subscription",item_ids:(null==q?void 0:null===(i=q.plan)||void 0===i?void 0:i.id)?[q.plan.id]:void 0,purchase_type:"subscription",billing_cycle:p,is_upgrade:c,previous_plan:f,...c?{event_id:(null==s?void 0:s.event_id)||(0,M.P)()}:{}}),O.ZP.setPlan({plan_name:h,plan_price:null==q?void 0:null===(n=q.plan)||void 0===n?void 0:n.price,subscription_status:"active",lifecycle_stage:"active"});let v=null==q?void 0:q.redirectTo;J({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(E,{subscriptionInfo:null==q?void 0:q.plan,isScheduledDowngrade:Y||K,effectiveDate:null==L?void 0:L.next_payment_on,redirectTo:v})}}),(0,_.wq)(v,()=>{J({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}})},{locale:U.locale,paymentType:"upgrade",user:w})}catch(e){O.ZP.track(j.ak.CHECKOUT_FAILED,{plan_name:(0,N.ui)(null==q?void 0:q.plan),cart_value:null==q?void 0:null===(l=q.plan)||void 0===l?void 0:l.price,currency:"USD",item_category:"Subscription",error_type:"insufficient_balance"}),J({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(P.Z,{header:G.paymentFlowPopup.errors.insufficientBalance.title,title:G.paymentFlowPopup.errors.insufficientBalance.description,actionText:G.paymentFlowPopup.errors.insufficientBalance.cancel,onActionClicked:el,titleClassName:"text-center",svgSrc:"/icons/info-circle.svg",icon:(0,o.jsx)("span",{style:{fontSize:36},children:"\uD83D\uDE1E"})})}})}finally{et(!1)}},ea=()=>{J({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,o.jsx)(i3,{paymentFlowProps:{trigger_source:"close_reactivate_success_modal",flow:r.SC.UPDATE}})}})},el=()=>{J({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}})},es=async()=>{try{var e;et(!0),eo("reactivate","reactivate"),await $(),O.ZP.track(j.ak.SUBSCRIPTION_REACTIVATED,{plan_name:null!==(e=null==V?void 0:V.key)&&void 0!==e?e:null==V?void 0:V.title,plan_price:null==V?void 0:V.price,billing_cycle:(null==V?void 0:V.interval)==="year"?"annual"
1:"monthly"}),B((0,m.bG)(e=>{et(!1),B((0,m.Qm)(e)),J({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(P.Z,{header:G.paymentFlowPopup.reActivate.header,title:G.paymentFlowPopup.reActivate.description,actionText:G.global.close,onActionClicked:ea,titleClassName:"text-center",svgSrc:"/icons/info-circle.svg"})}})}))}catch(e){}finally{}};return(0,o.jsxs)("div",{className:"flex items-center justify-between",children:[(null==q?void 0:q.step)===0||C&&(0,o.jsx)(c.Z,{type:"text",size:"small",onClick:el,disabled:ee,children:(0,o.jsx)("span",{className:"text-custom-white small-text",children:G.paymentFlowPopup.navigation.cancel})}),(null==q?void 0:q.step)>0&&!C&&(0,o.jsx)(c.Z,{type:"text",size:"small",onClick:()=>{eo("navigate_back","back"),(null==q?void 0:q.step)===1&&(null==q?void 0:q.flow)!==r.SC.UPDATE?J({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,o.jsx)(I.ZP,{trigger_source:"payment_flow_navigation"})}}):h.Z.prevStep()({paymentFlowState:q,dispatchPaymentFlowState:H})},disabled:ee,children:(0,o.jsx)("span",{className:"text-custom-white small-text",children:G.paymentFlowPopup.navigation.back})}),(null==q?void 0:q.step)<2&&!(null==q?void 0:q.previewFetchError)&&(!T||!k||(null==q?void 0:q.currentTab)==="oneTimePayment"&&!T)&&(0,o.jsxs)(c.Z,{type:"secondary",size:"small",style:{minWidth:99},onClick:()=>{if(eo("continue","next"),(null==q?void 0:q.step)!==1||(null==q?void 0:q.flow)!==r.SC.UPDATE||ei){if((null==q?void 0:q.step)===1){let e=document.getElementById("paymentFlowPersonalInfoForm");null==e||e.dispatchEvent(new Event("submit",{bubbles:!0,cancelable:!0}))}else h.Z.nextStep()({paymentFlowState:q,dispatchPaymentFlowState:H})}else er()},className:"ml-auto !bg-secondary ".concat((null==q?void 0:null===(A=q.plan)||void 0===A?void 0:A.id)?"":"opacity-50"),disabled:!(null==q?void 0:null===(x=q.plan)||void 0===x?void 0:x.id)||ee,children:[ee&&(0,o.jsx)(p.Z,{size:"xSmall"}),(0,o.jsx)("span",{className:"small-text",children:G.paymentFlowPopup.navigation.next})]}),C&&k&&(0,o.jsxs)(c.Z,{type:"secondary",size:"small",style:{minWidth:99},onClick:es,className:"!bg-secondary",disabled:ee,children:[ee&&(0,o.jsx)(p.Z,{size:"xSmall"}),(0,o.jsx)("span",{className:"text-xs",children:G.reactivateFlow.action})]})]})},V=i(85242),F=()=>{let e=(0,f.Z)();return(0,o.jsxs)("div",{className:"flex flex-col items-center gap-4 text-center",children:[(0,o.jsx)(V.Z,{type:"secondary",shape:"rounded",center:!0,size:"large",className:"shrink-0",children:(0,o.jsx)(n.Z,{src:"/icons/crown-03.svg",width:"24px",height:"24px",stroke:"var(--white)"})}),(0,o.jsxs)("div",{className:"flex w-full flex-col items-center gap-2",children:[(0,o.jsx)("h2",{className:"heading-6 text-center text-ph-color",children:e.global.reActivate}),(0,o.jsx)("p",{className:"mx-auto max-w-[420px] text-sm font-medium leading-5 text-center text-white-50",children:e.reactivateFlow.title})]})]})},U=i(46933),G=()=>{let{paymentFlowState:e}=l.useContext(u._),{userState:t,isReactivate:i}=(0,S.Z)();return(null==t?void 0:t.billingInfo)?(null==e?void 0:e.flow)===r.SC.UPDATE&&i?(0,o.jsxs)("div",{className:"mt-6 flex w-full flex-col gap-10",children:[(0,o.jsx)("div",{className:"flex w-full flex-col items-center",children:(0,o.jsx)(F,{})}),(0,o.jsx)(L,{})]}):null:(0,o.jsx)(U.Z,{className:"flex items-center justify-center h-full",children:(0,o.jsx)(p.Z,{className:"loader"})})},B=i(57634),Z=i(7333),q=i(96928),H=i(80533),W=i(11809),Y=i(78445),K=i(75446),Q=i(91369),$=i(46916);let X=d.ZP.div.withConfig({componentId:"sc-4890f715-0"})(["border:1.5px solid rgba(146,146,146,0.1);border-radius:var(--border-radius-4);padding:32px 24px;display:flex;gap:56px;align-items:flex-start;width:100%;margin-bottom:32px;@media (max-width:768px){flex-direction:column;gap:var(--spacing-4);padding:var(--spacing-4);}"]),J=d.ZP.div.withConfig({componentId:"sc-4890f715-1"})(["display:flex;flex-direction:column;gap:16px;flex:1;@media (max-width:768px){gap:12px;width:100%;}"]),ee=d.ZP.p.withConfig({componentId:"sc-4890f715-2"})(["font-weight:600;font-size:24px;line-height:normal;color:var(--custom-white);margin:0;@media (max-width:768px){font-size:16px;}
1"]),et=d.ZP.p.withConfig({componentId:"sc-4890f715-3"})(["font-weight:500;font-size:14px;line-height:24px;color:var(--text-shade-2);margin:0;max-width:438px;white-space:pre-wrap;@media (max-width:768px){font-size:12px;line-height:20px;max-width:100%;}"]),ei=d.ZP.div.withConfig({componentId:"sc-4890f715-4"})(["display:flex;flex-direction:column;gap:32px;flex:1;min-width:0;@media (max-width:768px){gap:24px;width:100%;}"]),eo=d.ZP.div.withConfig({componentId:"sc-4890f715-5"})(["display:flex;flex-direction:column;gap:8px;@media (max-width:768px){flex-direction:row;align-items:center;justify-content:space-between;gap:0;}"]),en=d.ZP.div.withConfig({componentId:"sc-4890f715-6"})(["display:flex;align-items:center;gap:1px;font-weight:700;font-size:24px;line-height:normal;color:var(--ph-color);@media (max-width:768px){font-size:20px;}"]),er=d.ZP.div.withConfig({componentId:"sc-4890f715-7"})(["display:flex;flex-direction:column;gap:8px;@media (max-width:768px){flex-direction:row;gap:4px;}"]),ea=d.ZP.div.withConfig({componentId:"sc-4890f715-8"})(["display:flex;align-items:center;gap:4px;@media (max-width:768px){width:100%;}"]),el=d.ZP.div.withConfig({componentId:"sc-4890f715-9"})(["display:flex;align-items:center;gap:4px;"]),es=d.ZP.p.withConfig({componentId:"sc-4890f715-10"})(["font-weight:600;font-size:16px;line-height:normal;color:var(--ph-color);margin:0;"]),ed=d.ZP.p.withConfig({componentId:"sc-4890f715-11"})(["font-weight:500;font-size:12px;color:var(--custom-white);margin:0;"]),eu=d.ZP.div.withConfig({componentId:"sc-4890f715-12"})(["display:flex;flex-direction:column;gap:16px;width:100%;"]),ec=d.ZP.div.withConfig({componentId:"sc-4890f715-13"})(["display:flex;align-items:center;gap:8px;width:100%;@media (max-width:768px){gap:8px;}"]),ep=d.ZP.div.withConfig({componentId:"sc-4890f715-14"})(["display:flex;gap:32px;align-items:center;width:100%;@media (max-width:768px){flex-direction:column;align-items:flex-start;gap:8px;}"]),em=d.ZP.div.withConfig({componentId:"sc-4890f715-15"})(["display:flex;align-items:center;gap:8px;"]),eh=d.ZP.div.withConfig({componentId:"sc-4890f715-16"})(["display:flex;flex-direction:column;gap:16px;@media (max-width:768px){width:100%;gap:0;}"]),ef=d.ZP.div.withConfig({componentId:"sc-4890f715-17"})(["display:flex;align-items:center;gap:16px;@media (max-width:768px){width:100%;justify-content:space-between;gap:0;}"]),ev=d.ZP.div.withConfig({componentId:"sc-4890f715-18"})(["display:flex;align-items:center;gap:8px;"]),eg=d.ZP.p.withConfig({componentId:"sc-4890f715-19"})(["font-weight:600;font-size:16px;line-height:normal;color:var(--ph-color);margin:0;@media (max-width:768px){font-size:12px;color:var(--text-shade-1);}"]),ey=d.ZP.p.withConfig({componentId:"sc-4890f715-20"})(["font-weight:500;font-size:12px;line-height:normal;color:var(--ph-color);margin:0;@media (max-width:768px){font-size:10px;}"]),eb=d.ZP.div.withConfig({componentId:"sc-4890f715-21"})(["background:var(--shade-2);border-radius:var(--border-radius-2);padding:4px 8px;display:flex;align-items:center;gap:6px;"]),eA=d.ZP.p.withConfig({componentId:"sc-4890f715-22"})(["font-weight:500;font-size:12px;line-height:normal;color:var(--ph-color);margin:0;@media (max-width:768px){font-size:10px;}"]),ex=d.ZP.div.withConfig({componentId:"sc-4890f715-23"})(["width:20px;height:20px;display:flex;align-items:center;justify-content:center;flex-shrink:0;svg{width:100%;height:100%;}@media (max-width:768px){width:16px;height:16px;}"]),ew=d.ZP.div.withConfig({componentId:"sc-4890f715-24"})(["width:16px;height:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;svg{width:100%;height:100%;}"]),e_=d.ZP.div.withConfig({componentId:"sc-4890f715-25"})(["width:16px;height:16px;display:flex;align-items:center;justify-content:center;flex-shrink:0;svg{width:100%;height:100%;}"]);var eS=()=>{let{billingInfo:e}=(0,S.Z)(),{getBillingInfo:t}=(0,v.Z)(),i=(0,f.Z)("pricing"),a=(0,$.Z)(),s=async()=>{try{let{data:e}=await t()}catch(e){}};l.useEffect(()=>{s()},[]);let d=l.useMemo(()=>a===r.H7.AR.value?(null==e?void 0:e.plan_title_ar)||(null==e?void 0:e.plan_title)||"Pro":(null==e?void 0:e.plan_title)||"Pro",[null==e?void 0:e.plan_title,null==e?void 0:e.plan_title_ar,a]),u=i.legacyPlan.title.replace("{planTitle}",d),c=(null==e?void 0:e.price)||10,p=(null==e?void 0:e.credits_amount)||1200;return(null==e?void 0:e.is_legacy)?(0,o.jsxs)(X,{children:[(0,o.jsxs)(J,{children:[(0,o.jsx)(ee,{children:u}),(0,o.jsx)(et,{children:i.legacyPlan.description})]}),(0,o.jsxs)(ei,{children:[(0,o.jsxs)(eo,{children:[(0,o.jsx)(er,{children:(0,o.jsx)(ea,{children:(0,o.jsxs)(el,{children:[(0,o.jsx)(ew,{children:(0,o.jsx)(n.Z,{src:"/icons/coins-02.svg",width:"16px",height:"16px",fill:"var(--ph-color)"})}
1),(0,o.jsx)(es,{children:p.toLocaleString()}),(0,o.jsx)(ed,{children:i.legacyPlan.creditsPerMonth})]})})}),(0,o.jsxs)(en,{children:[(0,o.jsx)("span",{children:"$"}),(0,o.jsx)("span",{children:c})]})]}),(0,o.jsxs)(eu,{children:[(0,o.jsxs)(ec,{children:[(0,o.jsx)(ex,{children:(0,o.jsx)(n.Z,{src:"/icons/magic-pen.svg",width:"20px",height:"20px",fill:"var(--ph-color)"})}),(0,o.jsx)(eg,{children:i.legacyPlan.features.fullAccessToAITools})]}),(0,o.jsxs)(ep,{children:[(0,o.jsxs)(em,{children:[(0,o.jsx)(ex,{children:(0,o.jsx)(n.Z,{src:"/icons/scissor.svg",width:"20px",height:"20px",fill:"var(--ph-color)",stroke:"var(--ph-color)"})}),(0,o.jsx)(eg,{children:i.legacyPlan.features.proAccessToVideoEditor})]}),(0,o.jsx)(eh,{children:(0,o.jsxs)(ef,{children:[(0,o.jsxs)(ev,{children:[(0,o.jsx)(ex,{children:(0,o.jsx)(n.Z,{src:"/icons/tick-circle.svg",width:"20px",height:"20px",stroke:"#4ADE80"})}),(0,o.jsx)(ey,{children:i.legacyPlan.features.aiSubtitleGenerator})]}),(0,o.jsxs)(eb,{children:[(0,o.jsx)(e_,{children:(0,o.jsx)(n.Z,{src:"/icons/clock.svg",width:"16px",height:"16px",fill:"#FFC121"})}),(0,o.jsx)(eA,{children:i.legacyPlan.features.minutes.replace("{minutes}","120")})]})]})})]}),(0,o.jsxs)(ec,{children:[(0,o.jsx)(ex,{children:(0,o.jsx)(n.Z,{src:"/icons/external-drive.svg",width:"20px",height:"20px",stroke:"var(--ph-color)"})}),(0,o.jsx)(eg,{children:i.legacyPlan.features.storage.replace("{storage}","100")})]}),(0,o.jsxs)(ec,{children:[(0,o.jsx)(ex,{children:(0,o.jsx)(n.Z,{src:"/icons/message-question.svg",width:"20px",height:"20px",stroke:"var(--ph-color)"})}),(0,o.jsx)(eg,{children:i.legacyPlan.features.customerSupport})]})]})]})]}):null},eC=i(27524);let ek="#8bc0df",eT=d.ZP.div.withConfig({componentId:"sc-117026ae-0"})(["box-sizing:border-box;position:relative;isolation:isolate;display:flex;width:100%;max-width:","px;min-height:","px;flex-direction:column;align-items:",";gap:16px;overflow:clip;border:1.5px solid ",";border-radius:32px;padding:12.75px;background-color:",";box-shadow:",";color:",';[data-theme="light"] &{background-color:',";color:",';border-color:rgba(139,192,223,0.25);}&::before{content:"";position:absolute;z-index:0;width:259.166px;height:259.166px;border-radius:50%;pointer-events:none;background-color:',";filter:blur(59px);opacity:0.3;bottom:-0.75px;",'}&::after{content:"";position:absolute;z-index:1;width:259.166px;height:259.166px;border-radius:50%;pointer-events:none;background-color:',";filter:blur(59px);opacity:0.6;top:-162.75px;","}"],308,271.5,e=>{let{$isRtl:t}=e;return t?"flex-end":"flex-start"},"rgba(139, 192, 223, 0.2)","#212121","0 -8px 20px rgba(102, 129, 211, 0.07)","#fff","#f6f6f6","#0c0c0c",ek,e=>{let{$isRtl:t}=e;return t?"\n      right: -258.92px;\n      left: auto;\n    ":"\n      left: -258.92px;\n      right: auto;\n    "},ek,e=>{let{$isRtl:t}=e;return t?"\n      left: calc(50% - 136.42px);\n      right: auto;\n      transform: translateX(-50%);\n    ":"\n      right: calc(50% - 136.42px);\n      left: auto;\n      transform: translateX(50%);\n    "}),eE=d.ZP.div.withConfig({componentId:"sc-117026ae-1"})(["position:relative;width:100%;flex-shrink:0;border-radius:24px;background:",';[data-theme="light"] &{background:',";}"],"#212121","#fff"),eP=d.ZP.div.withConfig({componentId:"sc-117026ae-2"})(["position:relative;z-index:2;display:flex;width:100%;flex-direction:column;gap:24px;overflow:clip;border-radius:inherit;padding:12px 16px;"]),eI=d.ZP.div.withConfig({componentId:"sc-117026ae-3"})(["position:relative;display:flex;flex-direction:column;gap:6px;flex-shrink:0;"]),eD=d.ZP.span.withConfig({componentId:"sc-117026ae-4"})(["flex-shrink:0;width:32px;height:32px;color:currentColor;svg{display:block;width:32px;height:32px;}"]),eO=d.ZP.p.withConfig({componentId:"sc-117026ae-5"})(["margin:0;font-size:20px;font-weight:600;line-height:28px;color:currentColor;white-space:nowrap;"]),eN=d.ZP.p.withConfig({componentId:"sc-117026ae-6"})(["margin:0;font-size:36px;font-weight:800;line-height:40px;color:currentColor;white-space:nowrap;"]),ej=d.ZP.div.withConfig({componentId:"sc-117026ae-7"})(["position:absolute;z-index:0;width:120px;height:120px;pointer-events:none;top:-47.75px;left:-219.25px;img{display:block;width:120px;height:120px;",'}[data-theme="light"] &{display:none;}'],e=>{let{$isRtl:t}=e;return t?"":"transform: scaleX(-1);"}),eM=d.ZP.div.withConfig({componentId:"sc-117026ae-8"})(["position:absolute;z-index:0;width:120px;height:120px;pointer-events:none;top:-39.75px;"," svg{stroke:#FFFFFF !important;",'}[data-theme="light"] &{svg{stroke:#000000 !important;}}'],e=>{let{$isRtl:t}=e;return t?"\n    left: -51.75px;\n    right: auto;\n  ":"\n    right: -51.75px;\n    left: auto;\n  "},e=>{let{$isRtl:t}=e;return t?"":"transform: scaleX(-1);"}),eR=d.ZP.div.withConfig({componentId:"sc-117026ae-9"})(["position:relative;z-index:2;width:100%;flex-shrink:0;"]),ez=d.ZP.div.withConfig({componentId:"sc-117026ae-10"})(["display:flex;width:100%;flex-direction:column;align-items:center;gap:8px;"]),eL=d.ZP.button.withConfig({componentId:"sc-117026ae-11"})(["box-sizing:border-box;display:flex;width:100%;height:48px;align-items:center;justify-content:center;border:none;border-radius:12px;background:var(--cta-gradient);padding:17px 19px;font-size:14px;font-weight:500;line-height:normal;color:#fff;cursor:pointer;transition:filter 0.2s ease;&:hover{filter:brightness(1.05);}&:active{filter:brightness(0.95);}"]),eV=d.ZP.div.withConfig({componentId:"sc-117026ae-12"})(["display:inline-flex;max-width:100%;align-items:center;justify-content:center;gap:8px;border-radius:12px;color:",';[data-theme="light"] &{color:',";}"],"#cfd2d5","#929292"),eF=d.ZP.p.withConfig({componentId:"sc-117026ae-13"})(['margin:0;font-size:10px;font-weight:400;line-height:20px;text-align:start;[dir="rtl"] &{text-align:end;}']),eU=e=>{let t=Number(e);return Number.isFinite(t)?t%1==0?String(t):t.toFixed(2):"0"};var eG=e=>{let{creditsAmount:t,price:i,onPurchase:r,purchaseText:a="Purchase",creditsLabel:s="Credits",validityLabel:d,className:u}=e,{getDirection:c}=l.useContext(eC.AZ),p="rtl"===c;return(0,o.jsxs)(eT,{className:u,$isRtl:p,children:[(0,o.jsx)(eE,{children:(0,o.jsxs)(eP,{$isRtl:p,children:[(0,o.jsx)(eM,{$isRtl:p,"aria-hidden":!0,
1children:(0,o.jsx)(n.Z,{src:"/icons/credit-pack-coin-decor-light.svg?V=1",width:"120px",height:"120px"})}),(0,o.jsxs)(eI,{$isRtl:p,children:[(0,o.jsx)(ej,{$isRtl:p,"aria-hidden":!0,children:(0,o.jsx)("img",{src:"/icons/credit-pack-coin-decor.svg",alt:"",width:120,height:120})}),(0,o.jsx)(eD,{"aria-hidden":!0,children:(0,o.jsx)(n.Z,{src:"/icons/coins-02.svg",width:"32px",height:"32px",color:"currentColor"})}),(0,o.jsxs)(eO,{children:[t.toLocaleString()," ",s]})]}),(0,o.jsxs)(eN,{children:["$",eU(i)]})]})}),(0,o.jsx)(eR,{children:(0,o.jsxs)(ez,{children:[(0,o.jsx)(eL,{type:"button",onClick:r,children:a}),d?(0,o.jsxs)(eV,{children:[(0,o.jsx)(n.Z,{src:"/icons/info-circle.svg",width:"16px",height:"16px",color:"currentColor",stroke:"currentColor",className:"shrink-0"}),(0,o.jsx)(eF,{children:d})]}):null]})})]})},eB=i(49604),eZ=i(55746);function eq(e,t){O.ZP.track(j.nS.CTA_CLICKED,{page_name:"payment_flow",page_type:"billing",...t,cta_name:e})}let eH=d.ZP.div.withConfig({componentId:"sc-dbbf3db6-0"})(['position:relative;max-width:1392px;width:100%;padding:40px;background:var(--shade);border-radius:24px;overflow-y:auto;min-height:846px;margin:0 auto;[data-theme="light"] &{background:var(--primary-color);}@media (max-width:768px){padding:24px;}']),eW=d.ZP.button.withConfig({componentId:"sc-dbbf3db6-1"})(['position:absolute;top:16px;right:16px;background:transparent;border:none;cursor:pointer;z-index:10;display:flex;align-items:center;justify-content:center;padding:8px;border-radius:8px;transition:background-color 0.2s ease;&:hover{background-color:rgba(255,255,255,0.1);}[lang="ar"] &{left:16px;right:unset;}@media (max-width:768px){top:4px;right:4px;[lang="ar"] &{left:4px;right:unset;}}']),eY=d.ZP.div.withConfig({componentId:"sc-dbbf3db6-2"})(["display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:32px;@media (max-width:768px){flex-direction:column;gap:16px;margin-bottom:24px;}"]),eK=d.ZP.div.withConfig({componentId:"sc-dbbf3db6-3"})(["display:flex;flex-direction:column;flex:1;@media (max-width:768px){display:none;}"]),eQ=d.ZP.h1.withConfig({componentId:"sc-dbbf3db6-4"})(["font-size:32px;font-weight:700;color:var(--custom-white);margin-bottom:8px;@media (max-width:768px){font-size:24px;}"]),e$=d.ZP.p.withConfig({componentId:"sc-dbbf3db6-5"})(['font-size:16px;font-weight:500;color:var(--text-shade-2);margin-bottom:0;[data-theme="light"] &{color:var(--ph-color);}@media (max-width:768px){font-size:12px;}']),eX=d.ZP.div.withConfig({componentId:"sc-dbbf3db6-6"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:16px;margin-top:40px;padding-top:32px;justify-items:stretch;align-items:stretch;@media (max-width:1392px){gap:12px;}@media (max-width:1200px){grid-template-columns:repeat(2,1fr);gap:16px;}@media (max-width:768px){grid-template-columns:1fr;gap:16px;margin-top:24px;}"]),eJ=d.ZP.div.withConfig({componentId:"sc-dbbf3db6-7"})(["margin-top:32px;margin-bottom:0;max-width:100%;@media (max-width:768px){margin-top:16px;}"]),e0=d.ZP.div.withConfig({componentId:"sc-dbbf3db6-8"})(["display:flex;align-items:flex-end;padding-bottom:0;@media (max-width:768px){width:100%;justify-content:center;}"]),e1=d.ZP.div.withConfig({componentId:"sc-dbbf3db6-9"})(["margin-top:32px;"]),e2=d.ZP.div.withConfig({componentId:"sc-dbbf3db6-10"})(["display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,308px),308px));justify-content:center;justify-items:stretch;gap:16px;margin-top:24px;"]),e3=d.ZP.div.withConfig({componentId:"sc-dbbf3db6-11"})(["display:flex;flex-direction:column;gap:24px;padding:40px 0;"]);var e4=()=>{let{paymentFlowState:e,dispatchPaymentFlowState:t}=l.useContext(u._),i=(0,f.Z)("pricing"),r=(0,f.Z)("global"),a=(0,f.Z)("changePlan"),{closeModal:s}=(0,q.Z)(),{currentPlanInfo:d,isPaused:c,isClassicSubscriber:p,isLoggedIn:m,userState:g}=(0,S.Z)(),[b,A]=l.useState((null==e?void 0:e.currentTab)||"bundles"),{getOneTimePurchaseProducts:x}=(0,v.Z)(),[w,C]=l.useState([]),[k,T]=l.useState(!1),[E,P]=l.useState(!1),{isLoading:I,plansForInterval:D,billingInterval:N,setBillingInterval:M}=(0,eZ.J)({defaultInterval:p?"month":null==d?void 0:d.interval});l.useEffect(()=>{if("oneTimePayment"!==b||E)return;let e=!0;return(async()=>{try{T(!0);let{data:t}=await x({service:"credits"});if(e){let e=(null==t?void 0:t.filter(e=>!(null==e?void 0:e.is_free)))||[];C(e),P(!0)}}catch(t){e&&P(!0)}finally{e&&T(!1)}})(),()=>{e=!1}},[b,E]);let R=l.useRef(!1);l.useEffect(()=>{var i,o,n;!R.current&&(R.current=!0,null!=e&&e.paywallViewedTracked||(h.Z.onChangeGeneralData({paywallViewedTracked:!0})({paymentFlowState:e,dispatchPaymentFlowState:t}),O.ZP.track(j.m_.PAYWALL_VIEWED,{paywall_type:"oneTimePayment"===b?"credits":"subscription",trigger_source:null!==(n=null==e?void 0:e.trigger_source)&&void 0!==n?n:"billing_plans_popup",current_credits:Number(null==g?void 0:null===(i=g.credits)||void 0===i?void 0:i.total)-Number(null==g?void 0:null===(o=g.credits)||void 0===o?void 0:o.used)||void 0,entry_point:"billing_plans_popup"}),O.ZP.incrementUserProperty("paywall_view_count")))},[]);let z=i=>{var o,n,r;let a="oneTimePayment"===b;O.ZP.track(j.m_.PAYWALL_INTERACTION,{paywall_type:a?"credits":"subscription",action_type:a?"credit_pack_selected":"plan_selected",plan_name:null!==(n=null==i?void 0:i.key)&&void 0!==n?n:null==i?void 0:i.title,plan_price:null!==(r=null==i?void 0:null===(o=i.selectedItem)||void 0===o?void 0:o.price)&&void 0!==r?r:null==i?void 0:i.price}),h.Z.onChangeGeneralData({plan:i,step:1})({paymentFlowState:e,dispatchPaymentFlowState:t})},L=l.useMemo(()=>c?a.tabs.oneTimePayment.title:i.title,[c,i]),V=l.useMemo(()=>c?a.tabs.oneTimePayment.description:i.description,[c,i]);return(0,o.jsxs)(eH,{children:[(0,o.jsx)(eW,{onClick:()=>{O.ZP.track(j.m_.PAYWALL_INTERACTION,{paywall_type:"oneTimePayment"===b?"credits":"subscription",action_type:"dismiss",cta_name:"close"}),eq("close",{cta_type:"secondary",button_text:r.close,position:"plan_picker"}),s()},children:(0,o.jsx)(n.Z,{src:"/icons/close-circle.svg",width:"24px",height:"24px",stroke:y.theme.extend.colors["white-80"]})}),(0,o.jsxs)(eY,{children:[(0,o.jsxs)(eK,{children:[(0,o.jsx)(eQ,{className:"font-barlow-condensed",children:L}),(0,o.jsx)(e$,{children:V})]}),!c&&(0,o.jsx)(e0,{children:(0,o.jsxs)(H.Z,{defaultActive:b,onChangeTab:e=>{let{value:t}=e;A(t),O.ZP.track(j.m_.PAYWALL_INTERACTION,{paywall_type:"oneTimePayment"===t?"credits":"subscription",action_type:"tab_switch",cta_name:t})},className:"!border-0",children:[(0,o.jsx)(W.Z,{className:"font-barlow-condensed text-2xl",name:"bundles",activeClassName:"text-custom-white",inactiveClassName:"text-ph-color",activeLineClassName:"bg-custom-white",children:i.tabs.bundles}),(0,o.jsx)(W.Z,{className:"whitespace-nowrap font-barlow-condensed text-2xl",name:"oneTimePayment",activeClassName:"text-custom-white",inactiveClassName:"text-ph-color",activeLineClassName:"bg-custom-white",children:i.tabs.creditsPack})]})})]}),(0,o.jsxs)(e1,{children:["bundles"===b&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(eS,{}),I?(0,o.jsxs)(e3,{children:[(0,o.jsx)(Q.Z.SkeletonText,{$width:"100%"}),(0,o.jsx)(Q.Z.SkeletonText,{$width:"80%"}),(0,o.jsx)(Q.Z.SkeletonText,{$width:"60%"})]}):(0,o.jsxs)(o.Fragment,{children:[!p&&(0,o.jsx)(eB.Z,{value:N,onChange:e=>{M(e),O.ZP.track(j.m_.PAYWALL_INTERACTION,{paywall_type:"subscription",action_type:"billing_interval_changed",cta_name:e})}}),D.length>0&&(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(eX,{children:D.map(e=>{var t;let n=null==e?void 0:null===(t=e.items)||void 0===t?void 0:t.find(e=>e.interval===N),r=m&&(null==d?void 0:d.id)?d:null,a=(0,_.pT)({...e,id:null==n?void 0:n.id},r),l=!!n&&!!r&&(0,_.LJ)({id:r.id,interval:r.interval,credits_amount:r.credits_amount},{id:n.id,interval:n.interval,credits_amount:n.credits_amount});return(0,o.jsx)(Y.Z,{plan:{...e,selectedItem:n},onPlanSelect:z,ctaGradient:!0,actionText:"current"===a?i.planCard.currentPlan:"downgrade"===a?i.planCard.downgrade:"upgrade"===a?i.planCard.upgrade:"switchTo"===a?i.planCard.switchTo:void 0,isCurrentPlan:"current"===a,isTransitionUnavailable:l},null==n?void 0:n.id)})})})]}),(0,o.jsx)(eJ,{children:(0,o.jsx)(K.Z,{disclaimer:i.plansDisclaimer})})]}),"oneTimePayment"===b&&(0,o.jsxs)(o.Fragment,{children:[k?(0,o.jsxs)(e3,{children:[(0,o.jsx)(Q.Z.SkeletonText,{$width:"100%"}),(0,o.jsx)(Q.Z.SkeletonText,{$width:"80%"}),(0,o.jsx)(Q.Z.SkeletonText,{$width:"60%"})]}):w.length>0&&(0,o.jsx)(e2,{children:w.map(e=>{var t;let n=(null==e?void 0:e.credits_amount)||(null==e?void 0:null===(t=e.details)||void 0===t?void 0:t.number_of_credits)||0;return(0,o.jsx)(eG,{id:null==e?void 0:e.id,creditsAmount:n,price:null==e?void 0:e.price,onPurchase:()=>z(e),purchaseText:i.creditPack.purchase,creditsLabel:i.creditPack.credits,validityLabel:i.creditPack.validityNote},null==e?void 0:e.id)})}),(0,o.jsx)("div",{className:"mt-8",children:(0,o.jsx)(K.Z,{disclaimer:i.oneTimePaymentDisclaimer})})]})]})]})},e5=i(9317),e6=i(41664),e8=i.n(e6),e9=i(16135),e7=i(65183),te=i(10751),tt=i(73246),ti=i(82935),to=i(64242),tn=i(88200);let tr=d.ZP.div.withConfig({componentId:"sc-ba2ffb76-0"})(['display:flex;width:100%;min-height:560px;height:100%;flex-direction:column;align-items:center;justify-content:center;gap:12px;overflow:auto;border-radius:24px;background:transparent;padding:16px 24px;color:var(--custom-white);@media (max-width:767px){min-height:0;flex:1;justify-content:center;padding:16px 0;border-radius:0;}[data-theme="light"] &{background:#f1f2f4;color:#0c0c0c;--text-shade-1:#0c0c0c;--shade-3:#0c0c0c;}']),ta=d.ZP.h2.withConfig({componentId:"sc-ba2ffb76-1"})(["margin:0;width:100%;text-align:center;font-size:24px;font-weight:600;line-height:40px;color:inherit;@media (max-width:767px){font-size:20px;line-height:32px;}"]),tl=d.ZP.div.withConfig({componentId:"sc-ba2ffb76-2"})(["display:flex;width:100%;flex-direction:column;gap:16px;"]),ts=d.ZP.button.withConfig({componentId:"sc-ba2ffb76-3"})(["display:flex;width:100%;min-height:44px;align-items:center;justify-content:center;border:1px solid rgba(146,146,146,0.25);border-radius:12px;background:transparent;padding:12px 16px;font-size:14px;font-weight:500;line-height:20px;color:inherit;cursor:pointer;"]),td=d.ZP.p.withConfig({componentId:"sc-ba2ffb76-4"})(["margin:0;width:100%;text-align:center;font-size:10px;font-weight:500;line-height:normal;color:var(--text-shade-1);a{color:#6681d3;}"]);var tu=i(95956),tc=i(54169);let tp={newPlanTotal:null,credit:null,grandTotal:null,loading:!1,error:!1,errorStatus:null,nextBilledAt:null,creditsAfterUpdate:null,isImmediate:null,effectiveAt:null,proratedCredits:null},tm=e=>{if(null==e)return null;let t=Number(e)/100;return t%1==0?String(t):t.toFixed(2)};var th=()=>{var e,t,i,o,n,r,a,d;let c=(0,s.v9)(e=>{var t;return null==e?void 0:null===(t=e.Auth)||void 0===t?void 0:t.user}),p=null==c?void 0:c.billingInfo,m=null==c?void 0:c.subscription,{previewSubscriptionChange:f}=(0,v.Z)(),{paymentFlowState:g,dispatchPaymentFlowState:y}=l.useContext(u._),[b,A]=l.useState(tp),x=null==g?void 0:g.plan,w=(null==x?void 0:x.interval)==="year",S=!!(null==x?void 0:null===(e=x.details)||void 0===e?void 0:e.number_of_credits),C=(0,_.pT)({...x,id:null==x?void 0:null===(t=x.selectedItem)||void 0===t?void 0:t.id},{credits_amount:null==p?void 0:p.credits_amount,price:null==p?void 0:p.price,id:null==p?void 0:p.subscription_plan_id}),{isAnnualToAnnualUpgrade:k,showUpgradePreview:T}=(0,R.Z)({isYearlyPlan:w,plan:x,isUpgrade:"upgrade"===C,isOneTimePayment:S,upgradePreviewGrandTotal:b.grandTotal,isSubscribed:!!(null==m?void 0:m.is_subscribed)});return l.useEffect(()=>{var e,t,i;if(!T)return;let o=null==c?void 0:null===(e=c.subscription)||void 0===e?void 0:e.id,n=null==g?void 0:null===(i=g.plan)||void 0===i?void 0:null===(t=i.selectedItem)||void 0===t?void 0:t.id;o&&n&&(async()=>{var e,t,i,r,a;A(e=>({...e,loading:!0,error:!1,errorStatus:null,creditsAfterUpdate:null}));try{let{data:i}=await f({subscriptionId:o,newPlanId:n}),r=(null==i?void 0:null===(e=i.data)||void 0===e?void 0:e.immediate_transaction)||{total:0,credit:0,grand_total:0},a=null==i?void 0:i.credits_after_update,l=null;if(null!=a&&""!==a){let e=Number(a);Number.isFinite(e)&&(l=e)}A({newPlanTotal:tm(null==r?void 0:r.total),credit:tm(null==r?void 0:r.credit),grandTotal:tm(null==r?void 0:r.grand_total),nextBilledAt:null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.next_billed_at,creditsAfterUpdate:l,loading:!1,error:!1,errorStatus:null,isImmediate:null==i?void 0:i.is_immediate,effectiveAt:null==i?void 0:i.effective_at,proratedCredits:null==i?void 0:i.prorated_credits}),h.Z.onChangeGeneralData({previewFetchError:!1})({paymentFlowState:g,dispatchPaymentFlowState:y})}catch(o){let e=null!==(a=null!==(r=null==o?void 0:null===(i=o.response)||void 0===i?void 0:i.status)&&void 0!==r?r:null==o?void 0:o.status)&&void 0!==a?a:null,t="number"==typeof e?e:null;A(e=>({...e,loading:!1,error:!0,errorStatus:t,creditsAfterUpdate:null})),500===t&&h.Z.onChangeGeneralData({previewFetchError:!0})({paymentFlowState:g,dispatchPaymentFlowState:y})}})()},[k,null==c?void 0:null===(i=c.subscription)||void 0===i?void 0:i.id,null==g?void 0:null===(o=g.plan)||void 0===o?void 0:o.id,null==g?void 0:null===(r=g.plan)||void 0===r?void 0:null===(n=r.selectedItem)||void 0===n?void 0:n.id,null==g?void 0:null===(a=g.plan)||void 0===a?void 0:a.interval,null==g?void 0:null===(d=g.plan)||void 0===d?void 0:d.credits_amount,null==p?void 0:p.credits_amount]),{upgradePreview:b,
1showUpgradePreview:T}},tf=i(18751);let tv=l.createContext(null),tg=d.ZP.div.withConfig({componentId:"sc-84ab35cd-0"})(["position:absolute;inset:0;display:flex;min-width:0;min-height:0;height:100%;width:100%;flex-direction:column;gap:16px;overflow:hidden;border-radius:16px;background:#f1f2f4;padding:24px;@media (max-width:767px){position:relative;inset:auto;flex:1 1 auto;min-height:0;border-radius:24px;padding:16px;gap:24px;}"]),ty=d.ZP.h2.withConfig({componentId:"sc-84ab35cd-1"})(["flex-shrink:0;margin:0;font-size:14px;font-weight:600;color:#0c0c0c;@media (max-width:767px){display:none;}"]),tb=d.ZP.div.withConfig({componentId:"sc-84ab35cd-2"})(["display:flex;flex-shrink:0;align-items:center;gap:8px;@media (max-width:767px){display:none;}"]),tA=d.ZP.button.withConfig({componentId:"sc-84ab35cd-3"})(['display:inline-flex;align-items:center;justify-content:center;border:0;background:transparent;padding:0;color:##0c0c0c;cursor:pointer;[dir="rtl"] & svg{transform:scaleX(-1);}']),tx=d.ZP.span.withConfig({componentId:"sc-84ab35cd-4"})(["font-size:14px;font-weight:600;line-height:normal;color:#0c0c0c;"]),tw=d.ZP.div.withConfig({componentId:"sc-84ab35cd-5"})(["flex-shrink:0;width:100%;@media (min-width:768px){flex:0 0 auto;}"]),t_=d.ZP.div.withConfig({componentId:"sc-84ab35cd-6"})(["display:flex;align-items:center;gap:24px;border:1px solid rgba(146,146,146,0.4);border-radius:12px;background:#fff;padding:12px 16px;box-shadow:0 -1px 10px rgba(255,255,255,0.05);"]),tS=d.ZP.div.withConfig({componentId:"sc-84ab35cd-7"})(["display:flex;min-width:0;flex:1 1 auto;align-items:center;gap:24px;"]),tC=d.ZP.div.withConfig({componentId:"sc-84ab35cd-8"})(["display:flex;width:40px;height:40px;flex-shrink:0;align-items:center;justify-content:center;overflow:hidden;"]),tk=d.ZP.div.withConfig({componentId:"sc-84ab35cd-9"})(["display:flex;min-width:0;flex:1 1 auto;flex-direction:column;justify-content:center;gap:8px;"]),tT=d.ZP.p.withConfig({componentId:"sc-84ab35cd-10"})(["margin:0;font-size:10px;font-weight:400;line-height:12px;letter-spacing:",";color:#0c0c0c;"],e=>{let{$tracked:t}=e;return t?"2.5px":"0"}),tE=d.ZP.p.withConfig({componentId:"sc-84ab35cd-11"})(["margin:0;font-size:10px;font-weight:400;line-height:12px;letter-spacing:2.5px;color:#0c0c0c;"]),tP=d.ZP.button.withConfig({componentId:"sc-84ab35cd-12"})(["flex-shrink:0;border:0;border-radius:8px;background:#f0f0f0;padding:6px 8px;font-size:12px;font-weight:400;line-height:14px;color:#0c0c0c;"]),tI=(0,d.ZP)(tc.Z).withConfig({componentId:"sc-84ab35cd-13"})(["display:flex;min-height:0;flex:1 1 auto;width:100%;overflow:hidden;> div{min-height:0;height:100%;flex:1 1 auto;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;-ms-overflow-style:none;&::-webkit-scrollbar{display:none;}}&::before{background:linear-gradient( 0deg,rgba(241,242,244,0) 0%,rgba(241,242,244,0.745) 74.5%,#f1f2f4 100% ) !important;}&::after{background:linear-gradient( 180deg,rgba(241,242,244,0) 0%,rgba(241,242,244,0.745) 74.5%,#f1f2f4 100% ) !important;}"]),tD=d.ZP.div.withConfig({componentId:"sc-84ab35cd-14"})(["display:block;width:100%;min-width:0;&,& > div{width:100% !important;max-width:100% !important;}iframe{display:block;width:100% !important;max-width:100% !important;min-width:0 !important;border:none !important;}"]),tO=d.ZP.div.withConfig({componentId:"sc-84ab35cd-15"})(["display:flex;width:100%;flex-direction:column;gap:12px;@media (max-width:767px){margin-block-start:auto;flex-shrink:0;}@media (min-width:768px){margin-block-start:auto;}"]),tN=d.ZP.p.withConfig({componentId:"sc-84ab35cd-16"})(["display:flex;margin:0;align-items:center;justify-content:center;gap:4px;text-align:center;font-size:12px;font-weight:500;line-height:16px;color:#6b6b6b;svg{flex-shrink:0;}"]),tj=d.ZP.p.withConfig({componentId:"sc-84ab35cd-17"})(["margin:0;font-size:12px;line-height:18px;color:#ef4444;"]),tM=d.ZP.button.withConfig({componentId:"sc-84ab35cd-18"})(["display:flex;height:48px;width:100%;align-items:center;justify-content:center;gap:8px;border:0;border-radius:12px;background:var(--cta-gradient);font-size:14px;font-weight:600;color:#fff;&:disabled{opacity:0.5;cursor:not-allowed;}"]),tR=d.ZP.div.withConfig({componentId:"sc-aad1b3a3-0"})(['width:100%;max-width:960px;margin-inline:auto;padding:32px;overflow:hidden;border-radius:32px;background:#151515;box-shadow:0 4px 15px rgba(102,129,211,0.15);[data-theme="light"] &{background:var(--shade);}@media (max-width:767px){display:flex;flex-direction:column;width:100%;max-width:358px;height:656px;max-height:min(656px,calc(100dvh - 32px));padding:24px;}']),tz=d.ZP.button.withConfig({componentId:"sc-aad1b3a3-1"})(["position:absolute;inset-block-start:12px;inset-inline-end:12px;z-index:10;display:flex;width:24px;height:24px;align-items:center;justify-content:center;padding:0;border:0;background:transparent;"]),tL=d.ZP.div.withConfig({componentId:"sc-aad1b3a3-2"})(["display:flex;flex-direction:column;gap:32px;@media (min-width:768px){flex-direction:row;align-items:stretch;}@media (max-width:767px){flex:1;min-height:0;gap:0;","}"],e=>{let{$mobileStep:t}=e;return"summary"===t?"\n      [data-checkout-summary] { display: flex; }\n      [data-checkout-payment] { display: none; }\n    ":"\n      [data-checkout-summary] { display: none; }\n      [data-checkout-payment] { display: flex; }\n    "}),tV=(0,d.ZP)(tc.Z).withConfig({componentId:"sc-aad1b3a3-3"})(["display:flex;min-height:0;height:100%;flex:1 1 auto;flex-direction:column;overflow:hidden;> div{display:flex;min-height:0;height:100%;flex:1 1 auto;flex-direction:column;}@media (max-width:767px){",'}&::before{background:linear-gradient( 0deg,rgba(21,21,21,0) 0%,rgba(21,21,21,0.745) 74.5%,#151515 100% ) !important;}&::after{background:linear-gradient( 180deg,rgba(21,21,21,0) 0%,rgba(21,21,21,0.745) 74.5%,#151515 100% ) !important;}[data-theme="light"] &::before{background:linear-gradient( 0deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.745) 74.5%,var(--shade) 100% ) !important;}[data-theme="light"] &::after{background:linear-gradient( 180deg,rgba(255,255,255,0) 0%,rgba(255,255,255,0.745) 74.5%,var(--shade) 100% ) !important;}'],e=>{let{$mobileStep:t}=e;return"summary"===t?"\n      flex: 1 1 auto;\n      min-height: 0;\n\n      > div {\n        min-height: 0;\n      }\n    ":""}),tF=d.ZP.aside.withConfig({componentId:"sc-aad1b3a3-4"})(["display:flex;width:100%;min-height:560px;flex-direction:column;align-self:stretch;overflow:hidden;background:transparent;@media (max-width:767px){flex:1;min-height:0;height:100%;}@media (min-width:768px){width:362px;flex-shrink:0;}"]),tU=d.ZP.section.withConfig({componentId:"sc-aad1b3a3-5"})(["display:flex;position:relative;min-width:0;min-height:560px;width:100%;flex:1 1 auto;flex-direction:column;overflow:hidden;@media (max-width:767px){min-height:0;flex:1;height:100%;gap:",";}@media (min-width:768px){flex:1 1 0;}"],e=>{let{$mobileStep:t}=e;return"payment"===t?"16px":"0"}),tG=d.ZP.button.withConfig({componentId:"sc-aad1b3a3-6"})(["display:none;height:48px;width:100%;flex-shrink:0;margin:0;align-items:center;justify-content:center;border:0;border-radius:12px;background:var(--cta-gradient);font-size:14px;font-weight:600;color:#fff;@media (max-width:767px){display:flex;margin-top:",";}"],e=>{let{$pinToBottom:t}=e;return t?"auto":"32px"}),tB=d.ZP.button.withConfig({componentId:"sc-aad1b3a3-7"})(['display:none;align-self:flex-start;margin:8px 0 12px;border:0;background:transparent;font-size:13px;font-weight:600;color:var(--custom-white);@media (max-width:767px){display:inline-flex;align-items:center;gap:8px;margin:0;padding:0;font-size:14px;font-weight:600;line-height:normal;color:#fff;svg{flex-shrink:0;}
1[dir="rtl"] & svg{transform:scaleX(-1);}}']);var tZ=i(76776),tq=i(99139),tH=i(56611),tW=i(93269);let tY=d.ZP.div.withConfig({componentId:"sc-b920c40a-0"})(["position:absolute;inset:0;display:flex;min-width:0;width:100%;flex-direction:column;border-radius:16px;background:#f1f2f4;padding:24px;overflow:hidden;@media (max-width:767px){position:relative;inset:auto;flex:1 1 auto;min-height:0;border-radius:24px;padding:16px;}"]),tK=d.ZP.h2.withConfig({componentId:"sc-b920c40a-1"})(["flex-shrink:0;margin:0 0 16px;font-size:14px;font-weight:600;line-height:normal;color:#0c0c0c;@media (max-width:767px){display:none;}"]),tQ=(0,d.ZP)(tc.Z).withConfig({componentId:"sc-b920c40a-2"})(["flex:1 1 auto;min-height:0;width:100%;overflow:hidden;&::before{background:linear-gradient( 0deg,rgba(241,242,244,0) 0%,rgba(241,242,244,0.745) 74.5%,#f1f2f4 100% ) !important;}&::after{background:linear-gradient( 180deg,rgba(241,242,244,0) 0%,rgba(241,242,244,0.745) 74.5%,#f1f2f4 100% ) !important;}"]),t$=d.ZP.div.withConfig({componentId:"sc-b920c40a-3"})(["display:block;width:100%;min-width:0;&,& > div{width:100% !important;max-width:100% !important;}iframe{display:block;width:100% !important;max-width:100% !important;min-width:0 !important;border:none !important;}"]),tX=d.ZP.div.withConfig({componentId:"sc-b920c40a-4"})(["position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding-inline:32px;text-align:center;"]);var tJ=i(66381);let t0=d.ZP.div.withConfig({componentId:"sc-6a935c60-0"})(["position:relative;display:flex;width:100%;max-width:480px;margin-inline:auto;flex-direction:column;align-items:center;justify-content:center;gap:32px;overflow:hidden;border-radius:32px;background:var(--shade);padding:32px;box-shadow:0 4px 15px rgba(102,129,211,0.15);"]),t1=d.ZP.button.withConfig({componentId:"sc-6a935c60-1"})(["position:absolute;inset-block-start:16px;inset-inline-end:16px;z-index:2;display:flex;width:24px;height:24px;align-items:center;justify-content:center;padding:0;border:0;background:transparent;"]),t2=d.ZP.div.withConfig({componentId:"sc-6a935c60-2"})(["display:flex;z-index:1;width:100%;flex-direction:column;align-items:center;gap:16px;"]),t3=d.ZP.div.withConfig({componentId:"sc-6a935c60-3"})(['display:flex;width:64px;height:64px;flex-shrink:0;align-items:center;justify-content:center;border-radius:16px;padding:16px;backdrop-filter:blur(10.73px);box-shadow:0 1.788px 12.518px 0 rgba(102,129,211,0.15);background:linear-gradient( 90deg,rgba(102,129,211,0.1) 0%,rgba(102,129,211,0.1) 100% ),linear-gradient(90deg,rgba(26,26,26,0.7) 0%,rgba(26,26,26,0.7) 100%);[data-theme="light"] &{background:linear-gradient( 90deg,rgba(102,129,211,0.2) 0%,rgba(102,129,211,0.2) 100% ),linear-gradient( 90deg,rgba(255,255,255,0.7) 0%,rgba(255,255,255,0.7) 100% );}']),t4=d.ZP.div.withConfig({componentId:"sc-6a935c60-4"})(["display:flex;width:32px;height:32px;flex-shrink:0;align-items:center;justify-content:center;border-radius:24px;background:#1c9c4b;color:#fff;"]),t5=d.ZP.span.withConfig({componentId:"sc-6a935c60-5"})(["display:flex;width:16px;height:16px;flex-shrink:0;align-items:center;justify-content:center;"]),t6=d.ZP.div.withConfig({componentId:"sc-6a935c60-6"})(["display:flex;width:100%;flex-direction:column;align-items:center;gap:8px;text-align:center;"]),t8=d.ZP.h2.withConfig({componentId:"sc-6a935c60-7"})(["margin:0;width:100%;font-size:20px;font-weight:600;line-height:28px;color:var(--custom-white);"]),t9=d.ZP.p.withConfig({componentId:"sc-6a935c60-8"})(["margin:0;font-size:14px;font-weight:500;line-height:normal;color:var(--text-shade-1);"]),t7=(0,d.ZP)(c.Z).withConfig({componentId:"sc-6a935c60-9"})(["z-index:1;height:48px;width:100%;flex-shrink:0;gap:8px;border-radius:12px;padding:12px 56px;font-size:14px;font-weight:400;line-height:18px;"]),ie=d.ZP.div.withConfig({componentId:"sc-6a935c60-10"})(["pointer-events:none;position:absolute;width:259px;height:259px;"," img{position:absolute;inset:-45.19%;width:493px;height:493px;max-width:none;}"],e=>{let{$placement:t}=e;return"end-bottom"===t?"\n    inset-block-end: -104px;\n    inset-inline-end: -128px;\n  ":"\n    inset-block-start: -136px;
1\n    inset-inline-start: -168px;\n  "}),it=["/ai-studio/text-to-video","/studio/create-video","/ai-studio/text-to-image"];var ii=i(30027),io=i(56483);let ir='url("/images/plans/card-glow.svg") center / 100% 100% no-repeat',ia=d.ZP.div.withConfig({componentId:"sc-cebf8b93-0"})(["position:relative;overflow:hidden;isolation:isolate;width:100%;border-radius:",";border:",";padding:9.5px;color:#fff;background-color:#212121;background-image:",';[data-theme="light"] &{color:#0c0c0c;background-color:#fff;',"}",""],e=>{let{$compact:t}=e;return t?"24px":"32px"},e=>{let{$compact:t,$borderColor:i}=e;return t?"1.5px solid ".concat("rgba(146, 146, 146, 0.2)"):"1.5px solid ".concat(i)},e=>{let{$overlayColor:t}=e;return t?"linear-gradient(".concat(t,", ").concat(t,")"):"none"},e=>{let{$compact:t}=e;return t?"border-color: #929292;":""},e=>{let{$glowColor:t,$compact:i,$isRtl:o}=e;return t&&"transparent"!==t?'\n    &::before,\n    &::after {\n      content: "";\n      position: absolute;\n      width: '.concat(i?"259px":"493px",";\n      height: ").concat(i?"259px":"493px",";\n      pointer-events: none;\n      z-index: 0;\n      background-color: ").concat(t,";\n      ").concat(i?"border-radius: 50%; filter: blur(59px);":"-webkit-mask: ".concat(ir,"; mask: ").concat(ir,";"),"\n    }\n    &::before {\n      top: ").concat(i?"-172px":"-264.5px",";\n      ").concat(o?"left":"right",": ").concat(i?"calc(50% - 144px)":"calc(50% - 359px)",";\n      ").concat(o?"right: auto;":"left: auto;","\n      opacity: 0.6;\n    }\n    &::after {\n      ").concat(o?"right":"left",": ").concat(i?"-227px":"-377px",";\n      ").concat(o?"left: auto;":"right: auto;","\n      bottom: ").concat(i?"-130px":"-118.5px",";\n      opacity: 0.3;\n    }\n  "):""}),il=d.ZP.div.withConfig({componentId:"sc-cebf8b93-1"})(["position:relative;z-index:1;width:100%;display:",";align-items:center;border-radius:",';background:rgba(255,255,255,0.05);box-shadow:0 16px 20px rgba(0,0,0,0.15);padding:16px;[data-theme="light"] &{background:rgba(12,12,12,0.03);}'],e=>{let{$compact:t}=e;return t?"flex":"block"},e=>{let{$compact:t}=e;return t?"16px":"24px"}),is=d.ZP.div.withConfig({componentId:"sc-cebf8b93-2"})(["display:flex;width:100%;align-items:center;justify-content:space-between;gap:12px;"]),id=d.ZP.div.withConfig({componentId:"sc-cebf8b93-3"})(["display:flex;min-width:0;align-items:center;gap:6px;"]),iu=d.ZP.span.withConfig({componentId:"sc-cebf8b93-4"})(["font-size:20px;font-weight:600;line-height:28px;color:currentColor;white-space:nowrap;"]),ic=d.ZP.span.withConfig({componentId:"sc-cebf8b93-5"})(["flex-shrink:0;font-size:20px;font-weight:700;line-height:28px;color:currentColor;white-space:nowrap;"]),ip=d.ZP.span.withConfig({componentId:"sc-cebf8b93-6"})(["display:inline-flex;flex-shrink:0;width:16px;height:16px;color:currentColor;svg{display:block;width:16px;height:16px;flex-shrink:0;overflow:visible;}"]);function im(){return(0,o.jsxs)("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg","aria-hidden":!0,children:[(0,o.jsx)("path",{d:"M9.33333 12C12.2789 12 14.6667 9.6122 14.6667 6.66667C14.6667 3.72115 12.2789 1.33333 9.33333 1.33333C6.38781 1.33333 4 3.72115 4 6.66667C4 9.6122 6.38781 12 9.33333 12Z",fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round"}),(0,o.jsx)("path",{d:"M8.77793 13.9792C8.042 14.4159 7.1828 14.6666 6.265 14.6666C3.54131 14.6666 1.33333 12.4586 1.33333 9.73494C1.33333 8.81714 1.58405 7.95794 2.02071 7.22201",fill:"none",stroke:"currentColor",strokeWidth:"1.25",strokeLinecap:"round"})]})}let ih=d.ZP.div.withConfig({componentId:"sc-cebf8b93-7"})(["display:flex;width:100%;flex-direction:column;gap:8px;"]),iv=d.ZP.div.withConfig({componentId:"sc-cebf8b93-8"})(["position:relative;display:flex;width:100%;min-height:44px;align-items:center;border-radius:12px;padding:12px 16px;background:rgba(255,255,255,0.05);border:1px solid transparent;"," ",' [data-theme="light"] &{background:var(--shade-2);',"}"],e=>{let{$state:t}=e;return"success"===t?"\n    border-color: #1c9c4b;\n    background:\n      linear-gradient(90deg, rgba(28, 156, 75, 0.05), rgba(28, 156, 75, 0.05)),\
1n      rgba(255, 255, 255, 0.05);\n  ":""},e=>{let{$state:t}=e;return"error"===t?"\n    border-color: #ff2c2c;\n    background:\n      linear-gradient(90deg, rgba(251, 44, 54, 0.05), rgba(251, 44, 54, 0.05)),\n      rgba(255, 255, 255, 0.05);\n  ":""},e=>{let{$state:t}=e;return"success"===t?"\n      border-color: #1c9c4b;\n      background:\n        linear-gradient(90deg, rgba(28, 156, 75, 0.05), rgba(28, 156, 75, 0.05)),\n        var(--shade-2);\n    ":"error"===t?"\n      border-color: #ff2c2c;\n      background:\n        linear-gradient(90deg, rgba(251, 44, 54, 0.05), rgba(251, 44, 54, 0.05)),\n        var(--shade-2);\n    ":""}),ig=d.ZP.input.withConfig({componentId:"sc-cebf8b93-9"})(["appearance:none;flex:1 1 auto;min-width:0;height:20px;border:0;background:transparent;padding:0;padding-inline-end:72px;font-size:12px;line-height:18px;color:var(--custom-white) !important;outline:none;box-shadow:none;&::placeholder{color:var(--shade-3);}&:-webkit-autofill,&:-webkit-autofill:hover,&:-webkit-autofill:focus{-webkit-text-fill-color:var(--custom-white);box-shadow:0 0 0 1000px transparent inset;}"]),iy=d.ZP.button.withConfig({componentId:"sc-cebf8b93-10"})(['position:absolute;inset-block-start:6px;inset-inline-end:6px;z-index:1;height:32px;border:0;border-radius:8px;background:#1a1a1a;padding-inline:16px;font-size:12px;line-height:16px;color:#fff;white-space:nowrap;&:disabled{opacity:0.5;}[data-theme="light"] &{background:var(--white);color:var(--custom-white);}']),ib=d.ZP.div.withConfig({componentId:"sc-cebf8b93-11"})(["position:absolute;inset-block-start:10px;inset-inline-end:16px;z-index:1;display:flex;width:24px;height:24px;align-items:center;justify-content:center;"]),iA=d.ZP.button.withConfig({componentId:"sc-cebf8b93-12"})(["position:absolute;inset-block-start:11px;inset-inline-end:17px;z-index:1;display:inline-flex;width:20px;height:20px;align-items:center;justify-content:center;border:0;padding:0;background:transparent;color:#fff;cursor:pointer;"]),ix=d.ZP.div.withConfig({componentId:"sc-cebf8b93-13"})(["display:flex;min-width:0;flex:1 1 auto;align-items:center;gap:8px;padding-inline-end:",";"],e=>{let{$locked:t}=e;return t?"0":"36px"}),iw=d.ZP.span.withConfig({componentId:"sc-cebf8b93-14"})(["display:inline-flex;flex-shrink:0;width:16px;height:16px;align-items:center;justify-content:center;border-radius:8px;background:#1c9c4b;color:#fff;"]),i_=d.ZP.span.withConfig({componentId:"sc-cebf8b93-15"})(["font-size:12px;line-height:normal;color:var(--custom-white);white-space:nowrap;"]),iS=d.ZP.p.withConfig({componentId:"sc-cebf8b93-16"})(["margin:0;font-size:12px;line-height:normal;color:#2bd86b;text-align:start;"]),iC=d.ZP.p.withConfig({componentId:"sc-cebf8b93-17"})(["margin:0;font-size:12px;line-height:normal;color:#ff2c2c;text-align:start;"]),ik=d.ZP.div.withConfig({componentId:"sc-cebf8b93-18"})(['display:flex;width:100%;flex-direction:column;gap:8px;border-radius:12px;background:rgba(255,255,255,0.03);padding:8px 16px;[data-theme="light"] &{background:var(--shade-2);}']),iT=d.ZP.button.withConfig({componentId:"sc-cebf8b93-19"})(["display:flex;width:100%;align-items:flex-start;justify-content:space-between;gap:12px;border:0;padding:4px 0;background:transparent;color:inherit;text-align:inherit;cursor:pointer;"]),iE=d.ZP.span.withConfig({componentId:"sc-cebf8b93-20"})(["display:inline-flex;flex-shrink:0;align-items:center;gap:8px;font-size:16px;font-weight:700;line-height:26px;color:var(--custom-white);"]),iP=d.ZP.span.withConfig({componentId:"sc-cebf8b93-21"})(["font-size:10px;font-weight:400;line-height:14px;color:var(--text-shade-2,#abb1b6);"]),iI=d.ZP.span.withConfig({componentId:"sc-cebf8b93-22"})(["display:inline-flex;flex-shrink:0;flex-direction:column;align-items:flex-end;gap:0;font-size:",";font-weight:700;line-height:normal;color:var(--custom-white);"],e=>{let{$discounted:t}=e;return t?"20px":"16px"}),iD=d.ZP.span.withConfig({componentId:"sc-cebf8b93-23"})(["display:inline-flex;width:16px;height:16px;flex-shrink:0;align-items:center;justify-content:center;transform:rotate(",");transition:transform 0.15s ease;color:var(--custom-white);"],e=>{let{$open:t}=e;
1return t?"180deg":"0deg"}),iO=d.ZP.div.withConfig({componentId:"sc-cebf8b93-24"})(["display:flex;flex-direction:column;gap:8px;border-top:1px solid rgba(146,146,146,0.08);padding-top:16px;"]),iN=d.ZP.div.withConfig({componentId:"sc-cebf8b93-25"})(["display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12px;font-weight:600;line-height:18px;color:var(--text-shade-1,#cfd2d5);"]),ij=d.ZP.span.withConfig({componentId:"sc-cebf8b93-26"})(["font-size:14px;font-weight:600;line-height:22px;color:",";"],e=>{let{$positive:t}=e;return t?"#2bd86b":"inherit"}),iM=d.ZP.div.withConfig({componentId:"sc-cebf8b93-27"})(['display:flex;min-height:54px;align-items:center;justify-content:space-between;border-radius:12px;background:rgba(255,255,255,0.03);padding:12px 16px;[data-theme="light"] &{background:var(--shade-2);}']),iR=d.ZP.div.withConfig({componentId:"sc-cebf8b93-28"})(['min-width:0;flex:1 1 0;border-radius:12px;background:rgba(255,255,255,0.03);padding:12px 16px;[data-theme="light"] &{background:var(--shade-2);}']),iz=d.ZP.div.withConfig({componentId:"sc-cebf8b93-29"})(["display:flex;flex-direction:column;gap:12px;@media (max-width:767px){margin-top:8px;}"]),iL=d.ZP.div.withConfig({componentId:"sc-cebf8b93-30"})(["@media (max-width:767px){flex:1 1 auto;min-height:0;overflow-y:auto;}"]),iV=d.ZP.div.withConfig({componentId:"sc-cebf8b93-31"})(["@media (max-width:767px){display:flex;width:100%;min-height:0;height:100%;flex:1 1 auto;flex-direction:column;}@media (min-width:768px){display:contents;}"]),iF=d.ZP.div.withConfig({componentId:"sc-cebf8b93-32"})(["@media (max-width:767px){display:flex;flex:0 0 auto;flex-direction:column;overflow:visible;}@media (min-width:768px){display:contents;}"]),iU=d.ZP.div.withConfig({componentId:"sc-cebf8b93-33"})(["display:flex;width:100%;flex-direction:column;gap:12px;margin-top:40px;"]),iG=d.ZP.div.withConfig({componentId:"sc-cebf8b93-34"})(["display:flex;width:100%;flex-direction:column;gap:8px;@media (max-width:767px){flex-shrink:0;margin-top:auto;padding-top:16px;}@media (min-width:768px){margin-top:auto;}"]),iB=d.ZP.div.withConfig({componentId:"sc-cebf8b93-35"})(["display:flex;width:100%;flex-direction:column;flex-shrink:0;@media (max-width:767px){gap:12px;padding-top:16px;}@media (min-width:768px){margin-top:auto;gap:12px;}"]),iZ=d.ZP.div.withConfig({componentId:"sc-cebf8b93-36"})(["display:flex;width:100%;align-items:center;gap:8px;color:var(--text-shade-1);"]),iq=(0,d.ZP)(iM).withConfig({componentId:"sc-cebf8b93-37"})(["@media (max-width:767px){min-height:60px;}"]),iH=d.ZP.div.withConfig({componentId:"sc-cebf8b93-38"})(["display:flex;width:100%;align-items:center;justify-content:space-between;gap:8px;@media (min-width:768px){flex-wrap:nowrap;}@media (max-width:767px){flex-wrap:wrap;}"]),iW=d.ZP.h2.withConfig({componentId:"sc-cebf8b93-39"})(["min-width:0;margin:0;font-size:14px;font-weight:600;line-height:26px;color:var(--custom-white);@media (min-width:768px){flex:0 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}@media (max-width:767px){flex:1 1 auto;padding-inline-end:40px;}"]),iY=d.ZP.div.withConfig({componentId:"sc-cebf8b93-40"})(["flex-shrink:0;@media (max-width:767px){display:flex;justify-content:center;width:100%;min-width:0;}"]),iK=d.ZP.div.withConfig({componentId:"sc-cebf8b93-41"})(["display:flex;width:100%;min-height:100%;height:100%;flex:1 1 auto;flex-direction:column;@media (max-width:767px){"," .checkout-summary-grow{margin-top:16px !important;}}"],e=>{let{$planChangeMobile:t,$newSubscribeMobile:i}=e;return t||i?"\n      min-height: 0;\n      height: 100%;\n      flex: 1 1 auto;\n    ":"\n      min-height: auto;\n      height: auto;\n      flex: 0 1 auto;\n    "}),iQ={AuthPane:function(){let e=(0,f.Z)(),{isLoggedIn:t}=l.useContext(to.Vo),{paymentFlowState:i,dispatchPaymentFlowState:n}=l.useContext(u._),[r,a]=l.useState("entry"),[s,d]=l.useState(null),c=l.useRef(!1),p=l.useCallback(()=>{c.current||(c.current=!0,(0,e5.O5)(),h.Z.setCheckoutPane("paddle")({paymentFlowState:i,dispatchPaymentFlowState:n}))},[n,i]);l.useEffect(()=>{let e=()=>{t&&p()};e();let i=window.setInterval(e,250);return()=>window.clearInterval(i)},[p,t]);let m=l.useCallback(()=>{let e=null==i?void 0:i.plan;if(!e)return;let t=structuredClone(e);delete t.subPackages,(0,tn.fe)({name:"actionAfterLogin",value:JSON.stringify({action:"cho
1osePlan",details:{plan:t,...i.redirectTo?{redirectTo:i.redirectTo}:{}}})})},[null==i?void 0:i.plan,null==i?void 0:i.redirectTo]),v=l.useCallback(e=>{e.target.closest("#google-social-login")&&m()},[m]);return(0,o.jsxs)(tr,{children:["entry"===r?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,o.jsx)(ta,{children:e.checkoutModal.welcome}),(0,o.jsxs)(tl,{children:[(0,o.jsx)("div",{onClickCapture:v,children:(0,o.jsx)(ti.Z,{variant:"figma"})}),(0,o.jsx)(ts,{type:"button",onClick:()=>a("signup"),children:e.checkoutModal.continueEmail})]})]}),(0,o.jsxs)(td,{children:[e.signUp.fields.terms.label,(0,o.jsx)(e8(),{href:"/help/privacy-policy",target:"_blank",children:e.global.privacy})," ",e.signUp.fields.terms.label2,(0,o.jsx)(e8(),{href:"/help/terms-and-conditions",target:"_blank",children:e.global.terms})]})]}):null,"signup"===r?(0,o.jsx)(tt.Z,{showSocialAuth:!1,onSwitchToLogin:()=>a("login"),onSignupSuccess:e=>{d(e),a("email-verification")}}):null,"login"===r?(0,o.jsx)(e7.Z,{showSocialAuth:!1,onLoginSuccess:p,onSwitchToSignup:()=>a("signup"),onSwitchToResetPassword:()=>a("reset-password")}):null,"reset-password"===r?(0,o.jsx)(te.Z,{onSwitchToLogin:()=>a("login")}):null,"email-verification"===r&&s?(0,o.jsx)(e9.Z,{email:s.email,token:s.token,onVerificationSuccess:p,onSwitchToSignup:()=>{d(null),a("signup")}}):null]})},ChangePlanPane:function(){var e,t,i;let r=(0,f.Z)(),a=(0,s.I0)(),{language:d}=l.useContext(eC.AZ),{updateSubscriptionPlan:c,getBillingInfo:g,updatePaymentMethod:y}=(0,v.Z)(),{userState:b,currentPlanInfo:A,hydrateUser:x,billingInfo:w,isClassicSubscriber:C}=(0,S.Z)(),{paymentFlowState:k,dispatchPaymentFlowState:T}=l.useContext(u._),{upgradePreview:E,showUpgradePreview:P}=th(),[I,z]=l.useState(!1),[L,V]=l.useState(null),[F,U]=l.useState(!1),G=null==k?void 0:k.plan,B=(0,_.pT)(G,A),Z="upgrade"===B,q=(0,_.LJ)(A,{id:null!==(t=(0,_.pz)(G))&&void 0!==t?t:null==G?void 0:G.id,interval:null==G?void 0:G.interval,credits_amount:null==G?void 0:G.credits_amount}),H=r.pricing.planCard,{displayPrice:W,isMonthlyToMonthlyDowngrade:Y,isAnnualToAnnualDowngrade:K}=(0,R.Z)({isYearlyPlan:(null==G?void 0:G.interval)==="year",plan:G,isUpgrade:Z,isOneTimePayment:!1,upgradePreviewGrandTotal:E.grandTotal,isSubscribed:!!(null==b?void 0:null===(e=b.subscription)||void 0===e?void 0:e.is_subscribed)}),Q=null==w?void 0:w.payment_details,$=(null==Q?void 0:Q.payment_method)!=="card",X=async()=>{try{await g()}catch(e){}},J=async()=>{let{data:e}=await y();if(C){window.Paddle.Checkout.open({frameTarget:"checkout-container",frameStyle:"min-width: 100%;background-color:transparent;",frameInitialHeight:500,override:null==e?void 0:e.update_link,method:"inline",displayModeTheme:"light",locale:d,hideTaxLink:!0});return}let t={meta:{}};(0,tf.h)()&&(t.meta.fbc=(0,tf.h)()),(0,tf.M)()&&(t.meta.fbp=(0,tf.M)()),window.Paddle.Checkout.open({settings:{frameTarget:"checkout-container",frameStyle:"min-width: 100%; background-color:transparent;",frameInitialHeight:500,displayMode:"inline",locale:d,theme:"light",showAddTaxId:!1,allowDiscountRemoval:!1},transactionId:null==e?void 0:e.update_link,customData:{user_id:null==b?void 0:b.id,...t}})},ee=async()=>{await X(),U(!1)},et=l.useCallback(()=>{var e,t,i,o;try{null===(o=window.Paddle)||void 0===o||null===(i=o.Checkout)||void 0===i||null===(t=i.close)||void 0===t||t.call(i)}catch(e){}null===(e=document.querySelector(".checkout-container"))||void 0===e||e.replaceChildren(),U(!1)},[]),ei=l.useContext(tv);l.useEffect(()=>{if(F&&(null==ei?void 0:ei.setPaymentBackHandler))return ei.setPaymentBackHandler(et),()=>{ei.setPaymentBackHandler(null)}},[et,F,ei]),l.useEffect(()=>{if(!F)return;let e=document.getElementById("checkout-update-scroll"),t=document.querySelector(".checkout-container");if(!e||!t)return;let i=()=>{e.dispatchEvent(new Event("scroll"))},o=new ResizeObserver(i);o.observe(t);let n=new MutationObserver(()=>{let e=t.querySelector("iframe");e&&o.observe(e),i()});return n.observe(t,{childList:!0,subtree:!0}),i(),()=>{o.disconnect(),n.disconnect()}},[F]);let eo=async()=>{var e,t,i,o,n;if(!I&&!F&&!q)try{z(!0),V(null);let i=(0,_.pz)(G),{data:o}=await c({planId:i});a((0,m.bG)(e=>a((0,m.Qm)(e))));let n=setTimeout(()=>{x(),X(),clearTimeout(n)},2e3),r=Y||K,l=(0,N.ui)(G),s=null!==(t=(0,N.ui)(A))&&void 0!==t?t:null==A?void 0:A.title,d=(null==G?void 0:G.interval)==="year"?"annual"
1:"monthly";D.Z.track("PURCHASE",{price:W,currency:"USD",item_ids:[null==G?void 0:G.id],item_category:"Subscription",number_items:1,user_email:null==b?void 0:b.email}),O.ZP.track(j.ak.PURCHASE_COMPLETED,{transaction_id:null==o?void 0:o.event_id,plan_name:l,plan_price:W,price:W,currency:"USD",item_category:"Subscription",item_ids:(null==G?void 0:G.id)?[G.id]:void 0,purchase_type:"subscription",billing_cycle:d,is_upgrade:Z,previous_plan:s,is_scheduled_downgrade:r,...Z?{event_id:(null==o?void 0:o.event_id)||(0,M.P)()}:{}}),O.ZP.setPlan({plan_name:l,plan_price:null==G?void 0:G.price,subscription_status:"active",lifecycle_stage:"active"}),h.Z.setCheckoutPane("success",{checkoutSuccessKind:(0,_.gm)({isOneTimePayment:!!(null==G?void 0:null===(e=G.details)||void 0===e?void 0:e.number_of_credits),isPlanChange:!0,plan:G,currentPlanInfo:A})})({paymentFlowState:k,dispatchPaymentFlowState:T})}catch(e){O.ZP.track(j.ak.CHECKOUT_FAILED,{plan_name:(0,N.ui)(G),cart_value:null==G?void 0:G.price,currency:"USD",item_category:"Subscription",error_type:q?"unavailable_transition":"insufficient_balance"}),V((null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(i=o.data)||void 0===i?void 0:i.message)||(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.message)||r.paymentFlowPopup.errors.insufficientBalance.description)}finally{z(!1)}},en=q?H.unavailable:"upgrade"===B?H.upgrade:"downgrade"===B?H.downgrade:"switchTo"===B?H.switchTo:H.selectPlan,er=P&&E.error&&500===E.errorStatus;return(0,o.jsxs)(tg,{children:[F?(0,o.jsxs)(tb,{children:[(0,o.jsx)(tA,{type:"button",onClick:et,"aria-label":r.global.back,children:(0,o.jsx)(n.Z,{src:"/icons/arrow-left.svg",width:"16px",height:"16px",stroke:"currentColor",color:"currentColor"})}),(0,o.jsx)(tx,{children:r.checkoutModal.paymentTitle})]}):(0,o.jsx)(ty,{children:r.checkoutModal.paymentTitle}),F?(0,o.jsxs)(tI,{id:"checkout-update-scroll",className:"min-h-0 w-full flex-1 overflow-hidden",containerClassName:"hiddenScrollBar flex h-full min-h-0 w-full flex-col overflow-y-auto",enableScrollToBottom:!0,scrollToBottomLabel:r.checkoutModal.scrollToBottom,children:[(0,o.jsx)(tu.Z,{isUpdatePayment:!0,onLoad:()=>{J()},onPaymentSuccess:()=>{ee()}}),(0,o.jsx)(tD,{className:"checkout-container"})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(tw,{children:(0,o.jsxs)(t_,{children:[(0,o.jsxs)(tS,{children:[(0,o.jsx)(tC,{children:(0,o.jsx)(n.Z,{src:$?"/icons/paypal.svg":"/icons/visa-wordmark.svg",width:$?"24px":"40px",height:$?"24px":"13px",color:"#0C0C0C",stroke:$?"#0C0C0C":void 0})}),(0,o.jsx)(tk,{children:$?(0,o.jsx)(tT,{children:(null==Q?void 0:Q.email)||"PayPal"}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsxs)(tT,{$tracked:!0,children:["**** **** **** ",null!==(i=null==Q?void 0:Q.card_last_four)&&void 0!==i?i:"****"]}),(0,o.jsx)(tE,{children:function(e){if(!e)return"--/--";let t=String(e).match(/(\d{1,2})\s*[/\-]\s*(\d{2,4})/);if(!t)return e;let i=t[1].padStart(2,"0"),o=4===t[2].length?t[2].slice(-2):t[2];return"".concat(i,"/").concat(o)}(null==Q?void 0:Q.card_expiration_date)})]})})]}),(0,o.jsx)(tP,{type:"button",onClick:()=>U(!0),children:r.checkoutModal.update})]})}),(0,o.jsxs)(tO,{children:[q?(0,o.jsxs)(tN,{children:[(0,o.jsx)(n.Z,{src:"/icons/info-circle.svg",width:"16px",height:"16px",stroke:"#6B6B6B"}),(0,o.jsx)("span",{children:H.notAvailableFromCurrentPlan})]}):L?(0,o.jsx)(tj,{role:"alert",children:L}):null,(0,o.jsxs)(tM,{type:"button",onClick:eo,disabled:I||er||q||!(0,_.pz)(G),children:[I?(0,o.jsx)(p.Z,{size:"xSmall"}):null,(0,o.jsx)("span",{children:en})]})]})]})]})},Frame:function(e){let{children:t,summary:i,onClose:r,mobileStep:a="payment",onContinueToPayment:s,onBackToSummary:d,continueLabel:u,backLabel:c,paymentStepTitle:p,mobileSummaryPinContinue:m=!0,mobileSummaryLayout:h="default"}=e,{getDirection:v}=l.useContext(eC.AZ),g=(0,f.Z)(),y=("planChange"===h||"newSubscribe"===h)&&"summary"===a;return(0,o.jsxs)(tR,{className:"relative",dir:v,$mobileStep:a,children:[(0,o.jsx)(tz,{type:"button",onClick:()=>{eq("close",{cta_type:"secondary",button_text:g.global.close,position:"checkout_modal"}),r()},"aria-label":g.global.close,children:(0,o.jsx)(n.Z,{src:"/icons/ugc-cancel-01.svg",width:"24px",height:"24px",color:"var(--text-shade-3)",stroke:"var(--text-shade-3)"})}),(0,o.jsxs)(tL,{$mobileStep:a,children:[(0,o.jsxs)(tF,{"data-checkout-summary":!0,$mobileStep:a,children:[(0,o.jsx)(tV,{$mobileStep:a,className:"min-h-0 w-full flex-1 overflow-hidden",containerClassName:y?"hiddenScrollBar flex h-full min-h-0 w-full flex-col overflow-hidden":"hiddenScrollBar flex h-full min-h-0 w-full flex-col overflow-y-auto",enableScrollToBottom:!y,scrollToBottomLabel:g.checkoutModal.scrollToBottom,children:i}),"summary"===a&&s?(0,o.jsx)(tG,{type:"button",onClick:s,$pinToBottom:m,children:u}):null]}),(0,o.jsxs)(tU,{"data-checkout-payment":!0,$mobileStep:a,children:["payment"===a&&d?(0,o.jsxs)(tB,{type:"button",onClick:d,"aria-label":c,children:[(0,o.jsx)(n.Z,{src:"/icons/arrow-left.svg",width:"24px",height:"24px",stroke:"currentColor"}),null!=p?p:c]}):null,t]}
1)]})]})},PaddlePane:function(){var e,t,i,n;let{createSubscriptionPayLink:d,createOneTimePurchasePayLink:c,getBillingInfo:p}=(0,v.Z)(),{currentPlanInfo:g,hydrateUser:y,isClassicSubscriber:b,isLoggedIn:A,isNewSubscriber:x,userState:w}=(0,S.Z)(),{paymentFlowState:C,dispatchPaymentFlowState:k}=l.useContext(u._),T=(0,f.Z)(),{language:E}=l.useContext(eC.AZ),[,P]=l.useContext(a.kn),z=(0,s.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.Auth)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.billingInfo}),L=(0,s.I0)(),{mutate:V}=(0,tH.K)(),[F,U]=l.useState(!1),G=l.useRef(null),B=l.useRef(!1),Z=null==C?void 0:C.plan,q=(0,_.pz)(Z),H=!!(null==Z?void 0:null===(e=Z.details)||void 0===e?void 0:e.number_of_credits),W=!!(null==z?void 0:z.subscription_plan_id)&&!!(null==Z?void 0:Z.id)&&"upgrade"===(0,_.pT)(Z,g),{displayPrice:Y}=(0,R.Z)({isYearlyPlan:(null==Z?void 0:Z.interval)==="year",plan:Z,isUpgrade:W,isOneTimePayment:H,upgradePreviewGrandTotal:null,isSubscribed:!!(null==w?void 0:null===(t=w.subscription)||void 0===t?void 0:t.is_subscribed)}),K=l.useRef(!1),Q=null!==(n=null==Z?void 0:null===(i=Z.selectedItem)||void 0===i?void 0:i.id)&&void 0!==n?n:null==Z?void 0:Z.id;l.useEffect(()=>{var e,t,i,o,n;if(K.current)return;if(Q&&(null==C?void 0:C.funnelStartTrackedPlanId)===Q){K.current=!0;return}let r=parseFloat(String(Y)),a=Number.isFinite(r)?r:Number(null==Z?void 0:Z.price)||0;if(K.current=!0,Q&&h.Z.onChangeGeneralData({funnelStartTrackedPlanId:Q})({paymentFlowState:C,dispatchPaymentFlowState:k}),D.Z.track("VIEW_CONTENT",{price:a,currency:"USD",user_email:null==w?void 0:w.email}),H&&O.ZP.track(j.cy.CREDITS_PURCHASE_STARTED,{credits_package:null==Z?void 0:null===(e=Z.details)||void 0===e?void 0:e.number_of_credits,package_price:null==Z?void 0:Z.price,currency:"USD",plan_name:null!==(t=null==Z?void 0:Z.key)&&void 0!==t?t:null==Z?void 0:Z.title,trigger_source:"checkout_modal"}),!H&&(x||W)){let e=null!==(i=null==Z?void 0:Z.key)&&void 0!==i?i:null==Z?void 0:Z.title,t=(0,M.P)();t&&V({event_name:"InitiateCheckout",event_id:t}),O.ZP.track(j.ak.CHECKOUT_STARTED,{plan_name:null!==(o=null==Z?void 0:Z.title)&&void 0!==o?o:e,plan_price:a,cart_value:a,billing_cycle:(null==Z?void 0:Z.interval)==="year"?"annual"
1:"monthly",currency:"USD",is_upgrade:!!W,from_plan:null!==(n=null==g?void 0:g.key)&&void 0!==n?n:null==g?void 0:g.title,to_plan:e,item_ids:(null==Z?void 0:Z.id)?[Z.id]:void 0,event_id:t})}},[g,k,Y,x,H,W,C,Z,Q,V,null==w?void 0:w.email]);let $=l.useCallback(()=>{G.current&&(clearTimeout(G.current),G.current=null)},[]);l.useEffect(()=>$,[$]);let X=l.useCallback(()=>{$(),U(!1),G.current=setTimeout(()=>{U(!0),G.current=null},15e3)},[$]),J=l.useCallback(()=>{$(),U(!1)},[$]),ee=l.useCallback(async()=>{try{await p()}catch(e){}},[p]),et=l.useCallback(()=>{let e=(0,_.gm)({isOneTimePayment:H,isPlanChange:(0,_.g2)({isLoggedIn:A,isSubscribed:(0,_.mS)(w),isOneTimePayment:H}),plan:Z,currentPlanInfo:g});h.Z.setCheckoutPane("success",{checkoutSuccessKind:e})({paymentFlowState:C,dispatchPaymentFlowState:k})},[g,k,A,H,C,Z,w]),ei=l.useCallback(e=>{var t,i,o,n,a;$();let l=null!==(n=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.transaction_id)&&void 0!==n?n:null==e?void 0:null===(i=e.checkout)||void 0===i?void 0:i.id,s=(null==e?void 0:e.name)==="checkout.completed"||(null==e?void 0:null===(o=e.checkout)||void 0===o?void 0:o.completed),d=(0,N.ui)(Z),u=(0,tZ.h)({transactionId:l,isOneTimePayment:H,isPlanUpdate:(null==C?void 0:C.flow)===r.SC.UPDATE,planFlowType:(0,_.pT)(Z,g)});if(H){let e=setTimeout(()=>{y(),ee(),clearTimeout(e)},5e3);s&&(D.Z.track("PURCHASE",{price:Y,currency:"USD",transaction_id:l,item_ids:[null==Z?void 0:Z.id],item_category:"OneTimePurchase",number_items:1,user_email:null==w?void 0:w.email}),O.ZP.track(j.ak.PURCHASE_COMPLETED,{transaction_id:l,plan_name:d,plan_price:Y,price:Y,currency:"USD",item_category:"OneTimePurchase",item_ids:(null==Z?void 0:Z.id)?[Z.id]:void 0,purchase_type:"credits",billing_cycle:"one_time",event_id:u}),O.ZP.track(j.cy.CREDITS_PURCHASE_COMPLETED,{transaction_id:l,credits_package:null==Z?void 0:null===(a=Z.details)||void 0===a?void 0:a.number_of_credits,package_price:Y,plan_name:d,purchase_type:"credits",billing_cycle:"one_time",currency:"USD"}))}else{let e=setTimeout(()=>{L((0,m.Qm)({...w,subscription:{...null==w?void 0:w.subscription,is_subscribed:!0,new_subscriber:!1,subscription_plan_key:d}})),y(),ee(),clearTimeout(e)},2e3);s&&(D.Z.track("PURCHASE",{currency:"USD",price:Y,transaction_id:l,item_ids:[null==Z?void 0:Z.id],item_category:"Subscription",number_items:1,user_email:null==w?void 0:w.email}),O.ZP.track(j.ak.PURCHASE_COMPLETED,{price:Y,currency:"USD",transaction_id:l,plan_name:d,plan_price:Y,item_category:"Subscription",item_ids:(null==Z?void 0:Z.id)?[Z.id]:void 0,purchase_type:"subscription",billing_cycle:(null==Z?void 0:Z.interval)==="year"?"annual"
1:"monthly",is_upgrade:W,...x||W?{event_id:u}:{}}),O.ZP.track(j.ak.SUBSCRIPTION_STARTED,{transaction_id:l,plan_name:d,plan_price:null==Z?void 0:Z.price,item_category:"Subscription",purchase_type:"subscription",billing_cycle:(null==Z?void 0:Z.interval)==="year"?"annual":"monthly",is_upgrade:W}),O.ZP.setPlan({plan_name:d,plan_price:null==Z?void 0:Z.price,subscription_status:"active",lifecycle_stage:"active",$isSubscriber:!0}))}et()},[$,g,L,Y,y,x,H,W,null==C?void 0:C.flow,Z,ee,et,w]),eo=l.useCallback(e=>{D.Z.track("ADD_CART",{price:Y,currency:"USD",item_ids:[null==Z?void 0:Z.id],item_category:H?"OneTimePurchase":"Subscription",number_items:1,user_email:null==w?void 0:w.email}),O.ZP.track(j.nS.CTA_CLICKED,{cta_name:"checkout_open",page_name:"payment_flow"});let t=(0,tW.UQ)(w),i={meta:{}},o=(0,tf.h)(),n=(0,tf.M)();o&&(i.meta.fbc=o),n&&(i.meta.fbp=n);let r=(0,tW.JX)(t),a=Object.keys(i.meta).length>0,l=r||a;if(X(),b&&!H){window.Paddle.Checkout.open({frameTarget:"checkout-container",frameStyle:"width: 100%; max-width: 100%; min-width: 0; background-color: transparent; border: none;",frameInitialHeight:450,override:null==e?void 0:e.pay_link,method:"inline",email:null==w?void 0:w.email,locale:E,displayModeTheme:"light",hideTaxLink:!0,loadCallback:J,successCallback:ei,...l?{customData:JSON.stringify({...r&&t&&{utm:t},...a&&i})}:{},passthrough:JSON.stringify((0,tq.sW)({terms:!0,subscription_name:"main",billable_id:null==w?void 0:w.id,billable_type:"Domain\\Users\\Models\\User"}))}),B.current=!0;return}window.Paddle.Checkout.open({settings:{frameTarget:"checkout-container",frameStyle:"width: 100%; max-width: 100%; min-width: 0; background-color: transparent; border: none;",displayMode:"inline",frameInitialHeight:450,locale:E,theme:"light",variant:"one-page",showAddTaxId:!1,showAddDiscounts:!1,allowLogout:!1,allowDiscountRemoval:!1},transactionId:null==e?void 0:e.transaction_id,customData:{user_id:null==w?void 0:w.id,...a&&i,...r&&t&&{utm:t}}}),B.current=!0},[Y,J,b,H,E,ei,q,null==Z?void 0:Z.id,X,w]),en=l.useCallback(async()=>{if(!B.current&&!(!H&&(0,_.mS)(w))){B.current=!0;try{if(H){let{data:e}=await c({product_id:null==Z?void 0:Z.id});eo(e);return}let e=(0,_.pz)(Z),{data:t}=await d({plan_id:null!=e?String(e):void 0});eo(t)}catch(e){B.current=!1,$(),P({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,o.jsx)(I.ZP,{trigger_source:"payment_flow_checkout"})}})}}},[$,c,d,P,H,eo,Z,w]),er=l.useCallback(()=>{var e,t,i,o;$();try{null===(o=window.Paddle)||void 0===o||null===(i=o.Checkout)||void 0===i||null===(t=i.close)||void 0===t||t.call(i)}catch(e){}B.current=!1,null===(e=document.querySelector(".checkout-container"))||void 0===e||e.replaceChildren(),U(!1),en()},[$,en]),ea=l.useRef(q);return l.useEffect(()=>{let e=ea.current;ea.current=q,e!==q&&(null==C?void 0:C.checkoutPane)==="paddle"&&B.current&&er()},[q,null==C?void 0:C.checkoutPane,er]),l.useEffect(()=>{let e=document.getElementById("checkout-paddle-scroll"),t=document.querySelector(".checkout-container");if(!e||!t)return;let i=()=>{e.dispatchEvent(new Event("scroll"))},o=new ResizeObserver(i);o.observe(t);let n=new MutationObserver(()=>{let e=t.querySelector("iframe");e&&o.observe(e),i()});return n.observe(t,{childList:!0,subtree:!0}),i(),()=>{o.disconnect(),n.disconnect()}},[F]),(0,o.jsxs)(tY,{children:[(0,o.jsx)(tK,{children:T.checkoutModal.paymentTitle}),(0,o.jsx)(tu.Z,{onLoad:en,onCheckoutLoaded:J,onPaymentSuccess:ei}),(0,o.jsx)(tQ,{id:"checkout-paddle-scroll",className:"min-h-0 w-full flex-1 overflow-hidden",containerClassName:"hiddenScrollBar flex h-full min-h-0 w-full flex-col overflow-y-auto",enableScrollToBottom:!0,scrollToBottomLabel:T.checkoutModal.scrollToBottom,children:(0,o.jsx)(t$,{className:"checkout-container".concat(F?" invisible":"")})}),F?(0,o.jsx)(tX,{children:(0,o.jsxs)("div",{children:[(0,o.jsx)("p",{className:"mb-4 text-sm text-[#0c0c0c]",children:"Checkout is taking longer than expected."}),(0,o.jsx)("button",{type:"button",className:"rounded-xl bg-secondary px-6 py-3 text-sm font-semibold text-white",onClick:er,children:"Retry"})]})}):null]})}
1,Success:function(e){var t,i,a,s,d,c,p,m,h,v,y,b,A;let{onClose:x}=e,w=(0,f.Z)(),C=(0,g.useRouter)(),{userState:k,isLoggedIn:T,currentPlanInfo:E}=(0,S.Z)(),{getDirection:P}=l.useContext(eC.AZ),{paymentFlowState:I}=l.useContext(u._),D=P===r.H7.AR.dir,O=null==I?void 0:I.plan,N=null==I?void 0:I.redirectTo,j=(null==O?void 0:O.credits_amount)||(null==O?void 0:null===(t=O.details)||void 0===t?void 0:t.number_of_credits)||0,M=!!(null==O?void 0:null===(i=O.details)||void 0===i?void 0:i.number_of_credits),R=it.some(e=>C.pathname.includes(e)),z=(0,tJ.k)(C.pathname,C.asPath),L=null===(a=w.checkoutModal)||void 0===a?void 0:a.success,[V]=l.useState(()=>{var e;return null!==(e=null==I?void 0:I.checkoutSuccessKind)&&void 0!==e?e:(0,_.gm)({isOneTimePayment:M,isPlanChange:(0,_.g2)({isLoggedIn:T,isSubscribed:(0,_.mS)(k),isOneTimePayment:M}),plan:O,currentPlanInfo:E})}),F=null!==(p=null==I?void 0:I.checkoutSuccessKind)&&void 0!==p?p:V,U="credits"===F?null!==(m=null==L?void 0:null===(s=L.title)||void 0===s?void 0:s.call(L,!0))&&void 0!==m?m:"Points are ready":"upgrade"===F?null!==(h=null==L?void 0:L.upgradeTitle)&&void 0!==h?h:"You've upgraded your plan":"changed"===F?null!==(v=null==L?void 0:L.changedPlanTitle)&&void 0!==v?v:"You've changed your plan":null!==(y=null==L?void 0:null===(d=L.title)||void 0===d?void 0:d.call(L,!1))&&void 0!==y?y:"Subscribed successfully",G=null!==(b=null==L?void 0:null===(c=L.body)||void 0===c?void 0:c.call(L,M,j))&&void 0!==b?b:M?"Your ".concat(Number(j).toLocaleString()," points are ready to use."):"Your new points balance is ready to use.",B=null!==(A=null==L?void 0:L.startNow)&&void 0!==A?A:"Start now",Z=!N&&"credits"!==F&&(0,_.NX)(C.pathname),q=l.useRef(!1),H=l.useCallback(()=>{q.current||(q.current=!0,C.push({pathname:r.P2.STUDIO_BILLING,query:(0,_.Q$)("upgrade"===F?"upgrade":"new",k)}))},[C,F,k]);return l.useEffect(()=>{Z&&H()},[H,Z]),(0,o.jsxs)(t0,{dir:P,children:[(0,o.jsx)(ie,{$placement:"end-bottom","aria-hidden":"true",children:(0,o.jsx)("img",{src:"/icons/checkout-success-glow.svg",alt:""})}),(0,o.jsx)(ie,{$placement:"start-top","aria-hidden":"true",children:(0,o.jsx)("img",{src:"/icons/checkout-success-glow.svg",alt:""})}),(0,o.jsx)(t1,{type:"button",onClick:()=>{eq("close",{cta_type:"secondary",button_text:w.global.close,position:"checkout_modal"}),x()},"aria-label":w.global.close,children:(0,o.jsx)(n.Z,{src:"/icons/ugc-cancel-01.svg",width:"24px",height:"24px",color:"var(--text-shade-3)",stroke:"var(--text-shade-3)"})}),(0,o.jsxs)(t2,{children:[(0,o.jsx)(t3,{"aria-hidden":"true",children:(0,o.jsx)(t4,{children:(0,o.jsx)(t5,{children:(0,o.jsx)(n.Z,{src:"/icons/checkout-success-check.svg",width:"16px",height:"16px",color:"#fff",stroke:"#fff"})})})}),(0,o.jsxs)(t6,{children:[(0,o.jsx)(t8,{children:U}),(0,o.jsx)(t9,{children:G})]})]}),(0,o.jsxs)(t7,{type:"secondary",size:"medium",btnType:"button",onClick:()=>{if(M){x();return}if(Z){H();return}if(x(),!(R||z||(0,_.m0)(C.pathname))){if(N){window.location.assign((0,_.kU)(N,C.locale,"upgrade"===F?"upgrade":"new",k));return}C.replace({pathname:r.P2.STUDIO_AI_MAIN,query:(0,_.Q$)("upgrade"===F?"upgrade":"new",k)})}},children:[(0,o.jsx)("span",{children:B}),(0,o.jsx)(n.Z,{src:D?"/icons/auth/arrow-left-02.svg":"/icons/auth/arrow-right-02.svg",width:"24px",height:"24px",color:"#fff",stroke:"#fff"})]})]})},Summary:function(){var e,t,i,a,d,c,m,v,g,y,b,A,x,w,C,T;let E=(0,f.Z)(),[P,I]=l.useState(""),[D,O]=l.useState(!1),[N,j]=l.useState(!1),{language:M,getDirection:z}=l.useContext(eC.AZ),{plansForInterval:L}=(0,eZ.J)({defaultInterval:"month"}),{paymentFlowState:V,dispatchPaymentFlowState:F}=l.useContext(u._),{userState:G,isLoggedIn:B,isClassicSubscriber:Z,currentPlanInfo:q}=(0,S.Z)(),{upgradePreview:H,showUpgradePreview:W}=th(),{mode:Y}=(0,s.v9)(e=>e.Theme),K=null==V?void 0:V.plan,Q=null==G?void 0:G.billingInfo,$=null==G?void 0:G.subscription,X=(null==K?void 0:K.interval)==="year",J=!!(null==K?void 0:null===(e=K.details)||void 0===e?void 0:e.number_of_credits),ee=(null==Q?void 0:Q.subscription_plan_id)?{credits_amount:Q.credits_amount,price:Q.price,id:Q.subscription_plan_id}:null,et="upgrade"===(0,_.pT)({...K,id:null==K?void 0:null===(t=K.selectedItem)||void 0===t?void 0:t.id},ee),ei=(0,_.g2)({isLoggedIn:B,isSubscribed:(0,_.mS)(G),isOneTimePayment:J}),eo=(0,_.LJ)(q,{id:null!==(v=(0,_.pz)(K))&&void 0!==v?v:null==K?void 0:K.id,interval:null==K?void 0:K.interval,credits_amount:null==K?void 0:K.credits_amount}),{price:en,upgradePriceDifference:er,displayPrice:ea,isAnnualToMonthly:el}=(0,R.Z)({isYearlyPlan:X,plan:K,isUpgrade:et,isOneTimePayment:J,upgradePreviewGrandTotal:H.grandTotal,isSubscribed:!!(null==$?void 0:$.is_subscribed)}),es=null!==(g=V.discountedDueToday)&&void 0!==g?g:ea,ed=(null==K?void 0:K.credits_amount)||(null==K?void 0:null===(i=K.details)||void 0===i?void 0:i.number_of_credits)||0,eu=(0,ii.fK)((null==K?void 0:K.title)||"",null==K?void 0:K.price,X),ec=ii.C2[eu],ep=(null==ec?void 0:null===(a=ec.name)||void 0===a?void 0:a[M||"en"])||(null==ec?void 0:null===(d=ec.name)||void 0===d?void 0:d.en)||"",em=M===r.H7.AR.value?(null==K?void 0:K.title_ar)||ep||(null==K?void 0:K.title)||"":ep||(null==K?void 0:K.title)||"",eh=J?E.checkoutModal.creditPackName(ed):em,ef=(0,ii.kJ)((null==ec?void 0:ec.borderColor)||ii.C2.basic.borderColor,Y),ev=J?"#8BC0DF":"glowColor"in(ec||{})?ec.glowColor:"transparent",eg=J?"light"===Y?"rgba(163, 81, 192, 0.03)":"rgba(163, 81, 192, 0.02)":ec&&"overlayColor"in ec?ec.overlayColor[Y]:void 0,ey=l.useMemo(()=>{var e,t;let i=Number(null==G?void 0:null===(e=G.credits)||void 0===e?void 0:e.total),o=Number(null==G?void 0:null===(t=G.credits)||void 0===t?void 0:t.used);return Number.isFinite(i)&&Number.isFinite(o)?Math.max(0,i-o):null},[null==G?void 0:null===(c=G.credits)||void 0===c?void 0:c.total,null==G?void 0:null===(m=G.credits)||void 0===m?void 0:m.used]),eb=W&&!J&&H.error&&500===H.errorStatus,eA=et&&W&&!J&&!!(null==$?void 0:$.id)&&H.loading,ex=H.nextBilledAt||(null==Q?void 0:Q.next_payment_on),ew=(null==Q?void 0:Q.next_payment_on)&&(null==$?void 0:$.is_subscribed)?k()(ex).format("DD MMMM YYYY"):k()().add(1,X?"years":"months").format("DD MMMM YYYY");H.isImmediate?k()().format("DD MMMM YYYY"):k()(ex).format("DD MMMM YYYY"),l.useEffect(()=>{var e;I(null!==(e=V.discountCode)&&void 0!==e?e:"")},[V.discountCode]);let e_=l.useCallback(e=>{h.Z.setDiscount(e)({paymentFlowState:V,dispatchPaymentFlowState:F})},[F,V]),eS=()=>"paddle"===V.checkoutPane&&!!document.querySelector(".checkout-container iframe"),ek=l.useCallback(()=>
1{if(eS()){try{window.Paddle.Checkout.updateCheckout({discountCode:null})}catch(e){}(0,io.rv)(),O(!1),e_({discountCode:null,discountedDueToday:null,discountError:null})}},[V.checkoutPane,e_]),eT=l.useCallback(()=>{I(""),j(!1),ek()},[ek]),eE=(0,_.gq)({plan:K,isOneTimePayment:J,isExistingSubscriber:ei,isClassicSubscriber:Z});l.useEffect(()=>{D&&(null!=V.discountedDueToday||V.discountError)&&O(!1)},[D,V.discountedDueToday,V.discountError]),l.useEffect(()=>{if(!D)return;let e=window.setTimeout(()=>{(0,io.rv)(),O(!1),e_({discountError:E.checkoutModal.discountInvalid})},15e3);return()=>window.clearTimeout(e)},[D,E.checkoutModal.discountInvalid,e_]),l.useEffect(()=>{(!V.discountedDueToday||V.discountError)&&j(!1)},[V.discountedDueToday,V.discountError]);let eP=X?en:null==K?void 0:K.price,eI=X?E.global.perYear:E.global.perMonth,eD=ei&&!J,eO=H.proratedCredits,eN=null==eO?null:eO>0?"+".concat(Number(eO).toLocaleString()):Number(eO).toLocaleString(),ej=(0,o.jsx)(eB.Z,{compact:!0,value:X?"year":"month",onChange:e=>{h.Z.choosePlan((0,_.gl)(K,e))({paymentFlowState:V,dispatchPaymentFlowState:F})},analyticsPosition:"checkout_interval_toggle"}),eM=eD&&!eo,eR=!J&&!ei,ez=e=>{let t=Number(e);return Number.isFinite(t)?t%1==0?String(t):t.toFixed(2):"0"},eL=eE?(0,_.VA)(K):void 0,eV=Number(null!==(y=null==K?void 0:K.price)&&void 0!==y?y:0),eF=Number(null!=en?en:0),eU=!!V.discountedDueToday&&!!V.discountCode&&!V.discountError,eG=eE||eU,eq=!eE&&!!V.discountError,eH=!eE&&D&&!eG&&!eq,eW=eE?eV:Number(null!==(b=null!=ea?ea:eP)&&void 0!==b?b:0),eY=Math.max(0,eW-(eE?eF:Number(null!=es?es:0))),eK=Number(null!==(x=null!==(A=null==eL?void 0:eL.percentage)&&void 0!==A?A:null==eL?void 0:eL.amount)&&void 0!==x?x:0),eQ=eE&&eK>0?Math.round(eK):eW>0?Math.round(eY/eW*100):0,e$=eE?"".concat(eQ,"%"):V.discountCode,eX=eD?E.checkoutModal.amountDueNow:ei&&!J?E.checkoutModal.amountDueToday:E.checkoutModal.total,eJ=!Z&&!ei,e0=(0,o.jsxs)(iU,{children:[eJ?(0,o.jsxs)(ih,{children:[(0,o.jsx)(iv,{$state:eG?"success":eq?"error":eH?"loading":"default",children:eG?(0,o.jsxs)(o.Fragment,{children:[eE?null:(0,o.jsx)(iA,{type:"button",onClick:eT,"aria-label":E.checkoutModal.removeDiscount,children:(0,o.jsx)(n.Z,{src:"/icons/ugc-cancel-01.svg",width:"20px",height:"20px",stroke:"currentColor"})}),(0,o.jsxs)(ix,{$locked:eE,children:[(0,o.jsx)(iw,{"aria-hidden":!0,children:(0,o.jsx)("svg",{width:"8",height:"6",viewBox:"0 0 8 6",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,o.jsx)("path",{d:"M1 3L3 5L7 1",stroke:"currentColor",strokeWidth:"1.2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,o.jsx)(i_,{children:e$})]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(ig,{type:"text",value:P,onChange:e=>{let t=e.target.value;I(t),!t&&V.discountCode&&ek()},placeholder:E.checkoutModal.addDiscount,"aria-label":E.checkoutModal.addDiscount,"aria-invalid":eq,readOnly:eH}),eH?(0,o.jsx)(ib,{"aria-hidden":!0,children:(0,o.jsx)(U.Z,{$forceLight:!0,children:(0,o.jsx)(p.Z,{className:"loader",size:"xSmall"})})}):(0,o.jsx)(iy,{type:"button",onClick:()=>{if(eE||!eS())return;let e=P.trim();if(!e){eT();return}(0,io.B8)(e),O(!0),e_({discountCode:e,discountError:null,discountedDueToday:null});try{window.Paddle.Checkout.updateCheckout({discountCode:e})}catch(e){(0,io.rv)(),O(!1),e_({discountError:E.checkoutModal.discountInvalid})}},disabled:!P.trim(),children:E.checkoutModal.apply})]})}),eG?(0,o.jsx)(iS,{children:E.checkoutModal.discountApplied(ez(eY),eQ)}):null,eq?(0,o.jsx)(iC,{role:"alert",children:V.discountError}):null]}):null,eb?(0,o.jsx)(iM,{children:(0,o.jsxs)("div",{className:"flex items-start gap-2",role:"alert",children:[(0,o.jsx)(n.Z,{src:"/icons/info-circle.svg",width:"16px",height:"16px",stroke:"var(--red-color, #ef4444)",className:"mt-0.5 shrink-0"}),(0,o.jsxs)("p",{className:"text-xs leading-[1.6] text-white-65",children:[E.paymentFlowPopup.review.description.previewFetchError," ",E.paymentFlowPopup.review.description.description2," ",(0,o.jsx)("a",{className:"text-secondary",href:"mailto:[email protected]",children:E.paymentFlowPopup.review.description.contact})]})]})}):eG?(0,o.jsxs)(ik,{children:[(0,o.jsxs)(iT,{type:"button",onClick:()=>j(e=>!e),"aria-expanded":N,children:[(0,o.jsxs)(iE,{children:[(0,o.jsx)("span",{children:eX}),(0,o.jsx)(iD,{$open:N,children:(0,o.jsx)(n.Z,{src:"/icons/arrow-down.svg",width:"16px",height:"16px",stroke:"currentColor"})})]}),(0,o.jsxs)(iI,{$discounted:!0,children:["$",ez(eE?eF:es),(0,o.jsx)(iP,{children:E.checkoutModal.taxIncludedWithDiscount})]})]}),N?(0,o.jsxs)(iO,{children:[(0,o.jsxs)(iN,{children:[(0,o.jsx)("span",{children:E.checkoutModal.planPrice}),(0,o.jsxs)(ij,{children:["$",ez(eW)]})]}),(0,o.jsxs)(iN,{children:[(0,o.jsx)("span",{children:E.checkoutModal.discountValue}),(0,o.jsxs)(ij,{$positive:!0,children:["-$",ez(eY)]})]})]}):null]}):(0,o.jsx)(iM,{children:(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"text-base font-bold leading-[22px] text-custom-white",children:eX}),(0,o.jsxs)("span",{className:"flex flex-col items-end text-base font-bold leading-[22px] text-custom-white",children:[W&&!J&&H.loading?(0,o.jsx)(U.Z,{$forceLight:!0,children:(0,o.jsx)(p.Z,{className:"loader",size:"small"})}):(0,o.jsxs)(o.Fragment,{children:["$",es]}),(0,o.jsx)("span",{className:"text-[10px] font-normal leading-[14px] text-t-shade-2",children:E.checkoutModal.taxIncluded})]})]})})]}),e1=J||eb?null:(0,o.jsxs)(iG,{children:[(0,o.jsxs)("div",{className:"flex items-center gap-1",children:[(0,o.jsx)(n.Z,{src:"/icons/calendar.svg",width:"16px",height:"16px",fill:"currentColor",className:"shrink-0 text-t-shade-1"}),(0,o.jsx)("p",{className:"text-[10px] leading-[14px] text-t-shade-1",children:E.checkoutModal.autoRenew(ew,ed)})]}),ei?null:(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(n.Z,{src:"/icons/info-circle.svg",width:"16px",height:"16px",stroke:"currentColor",className:"shrink-0 text-t-shade-1"}),(0,o.jsx)("p",{className:"text-[10px] leading-[14px] text-t-shade-1",children:E.checkoutModal.payTodayThen(es,eP,eI,ew)})]})]}),e2=(0,o.jsxs)(o.Fragment,{children:[J?(0,o.jsx)("h2",{className:"text-sm font-semibold text-custom-white",children:E.checkoutModal.summaryTitleCredits}):(0,o.jsxs)(iH,{children:[(0,o.jsx)(iW,{children:E.checkoutModal.summaryTitle}),(0,o.jsx)(iY,{"aria-label":E.checkoutModal.subscriptionType,children:ej})]}),(0,o.jsx)(ia,{dir:z,$isRtl:"rtl"===z,$borderColor:ef,$glowColor:ev,$overlayColor:eg,$compact:J,children:(0,o.jsx)(il,{$compact:J,children:J?(0,o.jsxs)(is,{children:[(0,o.jsxs)(id,{children:[(0,o.jsx)(ip,{children:(0,o.jsx)(im,{})}),(0,o.jsx)(iu,{children:eh})]}),(0,o.jsxs)(ic,{children:["$",eP]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("p",{className:"text-xl font-semibold leading-7",children:eh}),(0,o.jsxs)("div",{className:"mt-2 flex items-center justify-between gap-3",children:[(0,o.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,o.jsx)(ip,{children:(0,o.jsx)(im,{})}),(0,o.jsx)("span",{className:"text-sm font-semibold leading-[18px]",children:Number(ed).toLocaleStr
1ing()})]}),(0,o.jsxs)("span",{className:"flex items-baseline gap-0.5",children:[(0,o.jsxs)("span",{className:"text-xl font-bold leading-7",children:["$",eP]}),(0,o.jsx)("span",{className:"text-xs font-medium leading-[18px]",children:eI})]})]})]})})})]}),e3=(0,o.jsxs)(iz,{children:[(0,o.jsxs)("div",{className:"flex items-center justify-between gap-3 text-custom-white",children:[(0,o.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,o.jsx)(ip,{children:(0,o.jsx)(im,{})}),(0,o.jsx)("span",{className:"text-sm font-semibold leading-[22px] text-custom-white",children:E.checkoutModal.totalCreditsAvailable})]}),eA?(0,o.jsx)(p.Z,{className:"loader",size:"small"}):(0,o.jsx)("span",{className:"text-sm font-bold leading-5 text-custom-white",children:(null!==(w=H.creditsAfterUpdate)&&void 0!==w?w:Number(ed)).toLocaleString()})]}),eA?null:(0,o.jsxs)("div",{className:"flex gap-3",children:[(0,o.jsxs)(iR,{children:[(0,o.jsx)("p",{className:"text-xs font-semibold leading-4 text-t-shade-1",children:null!=ey?Number(ey).toLocaleString():"—"}),(0,o.jsx)("p",{className:"mt-2 text-xs font-semibold leading-4 text-t-shade-1",children:E.checkoutModal.creditsFromCurrentPlan})]}),H.isImmediate?(0,o.jsxs)(iR,{children:[(0,o.jsx)("p",{className:"text-xs font-semibold leading-4 ".concat(null!=eO&&eO>0?"text-[#2bd86b]":"text-t-shade-1"),children:null!=eN?eN:"—"}),(0,o.jsx)("p",{className:"mt-2 text-xs font-semibold leading-4 text-t-shade-1",children:E.checkoutModal.extraCreditsFromUpgrade})]}):null]})]}),e4=(0,o.jsxs)(iB,{children:[(0,o.jsx)(iq,{children:eb?(0,o.jsxs)("div",{className:"flex items-start gap-2",role:"alert",children:[(0,o.jsx)(n.Z,{src:"/icons/info-circle.svg",width:"16px",height:"16px",stroke:"var(--red-color, #ef4444)",className:"mt-0.5 shrink-0"}),(0,o.jsxs)("p",{className:"text-xs leading-[1.6] text-white-65",children:[E.paymentFlowPopup.review.description.previewFetchError," ",E.paymentFlowPopup.review.description.description2," ",(0,o.jsx)("a",{className:"text-secondary",href:"mailto:[email protected]",children:E.paymentFlowPopup.review.description.contact})]})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{className:"text-base font-bold leading-[22px] text-custom-white",children:E.checkoutModal.amountDueNow}),(0,o.jsxs)("span",{className:"flex flex-col items-end text-base font-bold leading-[22px] text-custom-white",children:[W&&H.loading?(0,o.jsx)(U.Z,{$forceLight:!0,children:(0,o.jsx)(p.Z,{className:"loader",size:"small"})}):(0,o.jsxs)(o.Fragment,{children:["$",es]}),(0,o.jsx)("span",{className:"text-[10px] font-normal leading-[14px] text-t-shade-2",children:E.checkoutModal.taxIncluded})]})]})}),J||eb?null:(0,o.jsxs)(iZ,{children:[(0,o.jsx)(n.Z,{src:"/icons/info-circle.svg",width:"24px",height:"24px",stroke:"currentColor",color:"currentColor",className:"shrink-0 text-t-shade-1"}),(0,o.jsx)("p",{className:"min-w-0 flex-1 text-[10px] leading-5 text-t-shade-1",children:E.checkoutModal.autoRenew(ew,null!==(C=H.creditsAfterUpdate)&&void 0!==C?C:Number(ed),eP)})]})]});return(0,o.jsx)(iK,{$planChangeMobile:eM,$newSubscribeMobile:eR,children:eM?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(iL,{children:(0,o.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[e2,e3]})}),e4]}):eR?(0,o.jsxs)(iV,{children:[(0,o.jsxs)(iF,{children:[(0,o.jsx)("div",{className:"flex w-full flex-col gap-4",children:e2}),e0]}),e1]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("div",{className:"flex w-full flex-col gap-4",children:e2}),(0,o.jsx)("div",{className:J?"checkout-summary-grow mt-auto flex w-full flex-col gap-3":"checkout-summary-grow mt-10 flex w-full flex-col gap-3",children:e0}),J||eb?null:(0,o.jsxs)("div",{className:eD?"mt-3 flex flex-col gap-3":"checkout-summary-grow mt-auto flex flex-col gap-2",children:[(0,o.jsxs)("div",{className:eD?"flex items-start gap-2":"flex items-center gap-1",children:[(0,o.jsx)(n.Z,{src:eD?"/icons/info-circle.svg":"/icons/calendar.svg",width:eD?"24px":"16px",height:eD?"24px":"16px",...eD?{stroke:"currentColor"}:{fill:"currentColor"},className:"shrink-0 text-t-shade-1"}),(0,o.jsx)("p",{className:eD?"text-[10px] leading-5 text-t-shade-1":"text-[10px] leading-[14px] text-t-shade-1",children:E.checkoutModal.autoRenew(ew,eD?null!==(T=H.creditsAfterUpdate)&&void 0!==T?T:Number(ed):ed,eD?eP:void 0)})]}),ei?null:(0,o.jsxs)("div",{className:"flex items-center gap-2",children:[(0,o.jsx)(n.Z,{src:"/icons/info-circle.svg",width:"16px",height:"16px",stroke:"currentColor",className:"shrink-0 text-t-shade-1"}),(0,o.jsx)("p",{className:"text-[10px] leading-[14px] text-t-shade-1",children:E.checkoutModal.payTodayThen(es,eP,eI,ew)})]})]})]})})}};function i$(e){var t,i;let{onClose:n}=e,r=(0,f.Z)(),{paymentFlowState:a}=l.useContext(u._),{hasToken:s,isLoggedIn:d,userState:c}=(0,S.Z)(),m=!!(null==a?void 0:null===(i=a.plan)||void 0===i?void 0:null===(t=i.details)||void 0===t?void 0:t.number_of_credits),h=(0,_.mS)(c),v=(0,_.g2)({isLoggedIn:d,isSubscribed:h,isOneTimePayment:m}),g="auth"===a.checkoutPane,y=!g&&!m&&(s||d)&&!v&&((null==c?void 0:c.id)==null||(null==c?void 0:c.billingInfo)==null),[b,A]=l.useState(g?"auth":"summary");l.useEffect(()=>{if(g){A("auth");return}A(e=>"auth"===e?"summary":e)},[g]);let x=l.useRef(null),w=l.useCallback(e=>{x.current=e},[]),C=l.useCallback(()=>
1{if(x.current){x.current();return}A("summary")},[]);return"success"===a.checkoutPane?(0,o.jsx)(iQ.Success,{onClose:n}):(0,o.jsx)(tv.Provider,{value:{setPaymentBackHandler:w},children:(0,o.jsx)(iQ.Frame,{onClose:n,summary:(0,o.jsx)(iQ.Summary,{}),mobileStep:b,mobileSummaryPinContinue:m,mobileSummaryLayout:v?"planChange":m?"default":"newSubscribe",onContinueToPayment:()=>A("payment"),onBackToSummary:C,continueLabel:r.checkoutModal.continueToPayment,backLabel:r.global.back,paymentStepTitle:r.checkoutModal.paymentTitle,children:g?(0,o.jsx)(iQ.AuthPane,{}):y?(0,o.jsx)("div",{className:"flex h-full min-h-[240px] w-full items-center justify-center",children:(0,o.jsx)(p.Z,{})}):v?(0,o.jsx)(iQ.ChangePlanPane,{}):(0,o.jsx)(iQ.PaddlePane,{})})})}let iX=d.ZP.div.withConfig({componentId:"sc-e05ec504-0"})(["display:flex;flex-direction:column;align-items:flex-start;isolation:isolate;position:relative;max-width:558px;background:var(--shade);border-radius:24px;overflow:hidden;margin:0 auto;& video{border-radius:24px 24px 0 0;}"]),iJ=d.ZP.button.withConfig({componentId:"sc-e05ec504-1"})(["position:absolute;inset-block-start:24px;inset-inline-end:24px;z-index:20;"]),i0=d.ZP.div.withConfig({componentId:"sc-e05ec504-2"})(["padding:40px;width:100%;display:grid;"," @media (max-width:430px){padding:20px 24px 48px 20px;}"],e=>{let{$revertTheme:t}=e;return t&&"\n        background: #ffffff;\n\n    --accent-color: #f5f5f5;\n    --shade: #ffffff;\n    --shade-2: #f0f0f0;\n    --shade-3: #929292;\n    --white-80-color: #0c0c0c;\n    --white-65-color: #4e4e4e;\n    --white-50-color: #878f97;\n    --white: #ffffff;\n    --custom-white: #0c0c0c;\n    --ph-color: #292929;\n    --select-menu-background: #ffffff;\n\n    \n    & input {\n      color: #000 !important;\n    }\n\n    "}),i1=()=>{let{paymentFlowState:e}=l.useContext(u._),[,t]=l.useContext(a.kn),{isReactivate:i}=(0,S.Z)(),s=(0,f.Z)("global"),d=()=>{(0,e5.O5)(),t({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}})};return(null==e?void 0:e.flow)===r.SC.UPDATE&&i?(0,o.jsxs)(iX,{children:[(0,o.jsx)(iJ,{type:"button",onClick:()=>{eq("close",{cta_type:"secondary",button_text:s.close,position:"reactivate"}),d()},"aria-label":s.close,className:"modal-close-btn cursor-pointer",children:(0,o.jsx)(n.Z,{src:"/icons/close-circle.svg",width:"24px",height:"24px",stroke:"var(--white-65-color)"})}),(0,o.jsx)(i0,{children:(0,o.jsx)(G,{})})]}):(0,o.jsx)(i$,{onClose:d})},i2=()=>{let{paymentFlowState:e}=l.useContext(u._),{isPaused:t,isReactivate:i}=(0,S.Z)();return((null==e?void 0:e.plan)&&(null==e?void 0:e.step)!==0||t)&&((null==e?void 0:e.step)!==0||(null==e?void 0:e.currentTab)!=="oneTimePayment")?(0,o.jsx)(i1,{}):(0,o.jsx)(e4,{})};var i3=e=>{var t,i,d,c,p,m;let[,h]=l.useContext(a.kn),v=(0,s.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.Auth)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.subscription}),g=l.useMemo(()=>(null==v?void 0:v.subscription_status)===r.Ch.PAST_DUE,[null==v?void 0:v.subscription_status]),y=(0,f.Z)();return g?(0,o.jsx)(B.Z,{className:"mx-auto",icon:(0,o.jsx)(n.Z,{src:"/icons/card-gradient.svg",width:"40px",height:"40px"}),title:y.planExpired.popup.title,onOk:()=>{h({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,children:(0,o.jsx)(Z.Z,{})}})},cancelText:y.global.cancel,okText:y.planExpired.popup.submit}):(0,o.jsx)(u.Z,{flow:null==e?void 0:null===(t=e.paymentFlowProps)||void 0===t?void 0:t.flow,plan:null==e?void 0:null===(i=e.paymentFlowProps)||void 0===i?void 0:i.plan,isChangePlan:null==e?void 0:null===(d=e.paymentFlowProps)||void 0===d?void 0:d.isChangePlan,currentTab:null==e?void 0:null===(c=e.paymentFlowProps)||void 0===c?void 0:c.currentTab,trigger_source:null==e?void 0:null===(p=e.paymentFlowProps)||void 0===p?void 0:p.trigger_source,redirectTo:null==e?void 0:null===(m=e.paymentFlowProps)||void 0===m?void 0:m.redirectTo,children:(0,o.jsx)(i2,{})})}},93046:function(e,t,i){"use strict";var o=i(85893),n=i(57634),r=i(91113),a=i(7333),l=i(46321),s=i(20931),d=i(31155),u=i(87251),c=i(67294),p=i(25617),m=i(5405);m.ZP.div.withConfig({componentId:"sc-bb50533f-0"})(["padding:26px 74px 26px 64px;display:flex;flex-direction:column;gap:32px;@media (max-width:830px){padding:32px;background-color:#151515;}"]),m.ZP.h1.withConfig({componentId:"sc-bb50533f-1"})(["font-weight:600;font-size:18px;line-height:27px;color:var(--white-80-color);@media (max-width:830px){font-size:16px;}"]),m.ZP.span.withConfig({componentId:"sc-bb50533f-2"})(["@media (max-width:830px){font-size:12px;}"]),m.ZP.div.withConfig({componentId:"sc-bb50533f-3"})(["@media (max-width:830px){display:none}"]),m.ZP.div.withConfig({componentId:"sc-bb50533f-4"})(["@media (max-width:830px){grid-template-columns:repeat(1,minmax(0,1fr));}"]),t.ZP=e=>{let{trigger_source:t}=e,i=(0,u.Z)(),[,m]=c.useContext(d.kn),h=(0,p.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.Auth)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.subscription});return c.useMemo(()=>(null==h?void 0:h.subscription_status)===s.Ch.PAST_DUE,[null==h?void 0:h.subscription_status])?(0,o.jsx)(n.Z,{icon:(0,o.jsx)(l.Z,{src:"/icons/card-gradient.svg",width:"40px",height:"40px"}),title:i.planExpired.popup.title,onOk:()=>{m({type:d.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,children:(0,o.jsx)(a.Z,{})}})},cancelText:i.global.cancel,okText:i.planExpired.popup.submit,className:"mx-auto"}):(0,o.jsx)(r.Z,{trigger_source:t})}},7333:function(e,t,i){"use strict";var o=i(85893),n=i(95956),r=i(91729),a=i(46321),l=i(68419),s=i(20931),d=i(31155),u=i(27524),c=i(43002),p=i(87251),m=i(33443),h=i(90549),f=i(18751),v=i(67294),g=i(25617),y=i(10847);t.Z=()=>{let[,e]=v.useContext(d.kn),{language:t}=v.useContext(u.AZ),{updatePaymentMethod:i,getBillingInfo:b}=(0,m.Z)(),A=(0,g.I0)(),x=(0,g.v9)(e=>{var t;return null==e?void 0:null===(t=e.Auth)||void 0===t?void 0:t.user}),{isClassicSubscriber:w}=(0,h.Z)(),_=(0,p.Z)("billing"),S=async()=>{try{let{data:e}=await b()}catch(e){}},C=t=>{A((0,l.Qm)({...x,subscription:{...null==x?void 0:x.subscription,is_subscribed:!0,new_subscriber:!1}}
1));let i=setTimeout(()=>{A((0,l.bG)(e=>{A((0,l.Qm)(e))})),S(),clearTimeout(i)},5e3);e({type:d.BT.TOAST_STATE_CHANGED,payload:{open:!0,type:"success",message:_.updatePaymentMethodModal.success,time:2e3}}),e({type:d.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}})},k=async()=>{let{data:e}=await i();if(w)window.Paddle.Checkout.open({frameTarget:"checkout-container",frameStyle:"min-width: 100%;background-color:transparent;",frameInitialHeight:500,override:null==e?void 0:e.update_link,method:"inline",displayModeTheme:"light",locale:t,hideTaxLink:!0,successCallback:e=>C(e)});else{let i={meta:{}};(0,f.h)()&&(i.meta.fbc=(0,f.h)()),(0,f.M)()&&(i.meta.fbp=(0,f.M)()),window.Paddle.Checkout.open({settings:{frameTarget:"checkout-container",frameStyle:"min-width: 100%; background-color:transparent;",frameInitialHeight:500,displayMode:"inline",locale:t,theme:"light",showAddTaxId:!1,allowDiscountRemoval:!1},transactionId:null==e?void 0:e.update_link,customData:{user_id:null==x?void 0:x.id,...i}})}};return(0,o.jsx)(c.Z,{children:(0,o.jsxs)(r.J9,{children:[(0,o.jsx)("video",{autoPlay:!0,loop:!0,src:"".concat(s.TU,"/pro-plan/PaymentFlow_Animation03.mp4"),playsInline:!0,muted:!0}),(0,o.jsx)("div",{onClick:()=>{e({type:d.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}})},"data-testid":"close-popup-icon",children:(0,o.jsx)(a.Z,{className:"absolute cursor-pointer z-20 modal-close-btn right-6 top-6",width:"24px",height:"24px",src:"/icons/close-circle.svg",stroke:"light"===y.theme.mode?y.theme.extend.colors.black:y.theme.extend.colors["white-80"],svgProps:{style:{top:25,right:25}}})}),(0,o.jsxs)(r.sF,{$revertTheme:!0,children:[(0,o.jsx)(n.Z,{onLoad:()=>k(),isUpdatePayment:!0}),(0,o.jsx)("div",{className:"checkout-container"})]})]})})}},82935:function(e,t,i){"use strict";i.d(t,{Z:function(){return P}});var o,n=i(82729),r=i(85893),a=i(67294),l=i(91167),s=i(64242),d=i(3174),u=i(90238),c=i(71494),p=i(56611);let m=null;var h=i(46321),f=i(5405),v=i(87251),g=i(64329),y=i(46933),b=i(82821),A=i(11163),x=i(37803);function w(){let e=(0,n._)(["\n  height: 1px;\n  flex: 1;\n  background-color: var(--shade-3);\n  opacity: 0.25;\n"]);return w=function(){return e},e}function _(){let e=(0,n._)(["\n  padding-inline: 12px;\n  color: var(--text-shade-1);\n  font-size: 14px;\n  line-height: 20px;\n  white-space: nowrap;\n"]);return _=function(){return e},e}function S(){let e=(0,n._)(['\n  border-radius: 12px !important;\n  min-height: 44px;\n  padding: 12px 16px !important;\n  background: var(--white) !important;\n  color: #000 !important;\n  border: 1px solid rgba(146, 146, 146, 0.25) !important;\n\n  [data-theme="light"] & {\n    background: var(--shade-2) !important;\n    color: #0c0c0c !important;\n    border: none !important;\n  }\n']);return S=function(){return e},e}let C=(0,f.ZP)(h.Z).withConfig({componentId:"sc-ff31d916-0"})(["width:24px !important;height:24px !important;@media (max-width:700px){width:16px !important;height:16px !important;}"]),k=f.ZP.div(w()),T=f.ZP.div(_()),E=(0,f.ZP)(l.Z)(S());var P=(o=e=>{let{loading:t,variant:i="default"}=e,o=(0,v.Z)(),n=(0,A.useRouter)(),{loadUserFromCookies:d}=a.useContext(s.Vo),u=t=>{let{driver:i,buttonText:o}=t;if((0,x.u)("social_login_".concat(i),{cta_type:"primary",button_text:o,page_name:n.pathname}),(0,g.fJ)())d();else{var r;null===(r=e.handleLoginClick)||void 0===r||r.call(e,i)}},c=(0,r.jsxs)("div",{className:"flex items-center justify-center gap-2 w-full text-sm",children:[(0,r.jsx)(C,{src:"/icons/google-color-1.svg",width:"100%",height:"100%"}),(0,r.jsx)("div",{children:o.socialAuth.google})]});return"figma"===i?(0,r.jsxs)("div",{className:"relative w-full flex flex-col gap-4",children:[t&&(0,r.jsx)(y.Z,{className:"absolute top-0 right-0 bottom-0 left-0 flex items-center justify-center bg-black bg-opacity-50 z-30 rounded-xl",children:(0,r.jsx)(b.Z,{size:"small",className:"loader"})}),(0,r.jsx)(E,{type:"social",size:"social",className:"w-full",onClick:()=>u({driver:"google",buttonText:o.socialAuth.google}),id:"google-social-login",disabled:t,children:c}),(0,r.jsxs)("div",{className:"flex items-center w-full",children:[(0,r.jsx)(k,{}),(0,r.jsx)(T,{children:o.global.or}),(0,r.jsx)(k,{})]})]}):(0,r.jsxs)("div",{className:"inline-block w-full mt-6 md:mt-10",children:[(0,r.jsxs)("div",{className:"",children:[(0,r.jsx)(l.Z,{type:"social",size:"social",className:"w-full mt-4 ",onClick:()=>u({driver:"google",buttonText:o.socialAuth.google}),bg:"#DD4B39",id:"google-social-login",disabled:t,children:(0,r.jsxs)("div",{className:"flex items-center justify-center gap-3 w-full text-sm md:text-base",children:[(0,r.jsx)(C,{src:"/icons/google-social-auth.svg",width:"100%",height:"100%"}),(0,r.jsx)("div",{className:"",children:o.socialAuth.google})]})}),(0,r.jsx)(l.Z,{type:"social",size:"social",className:"w-full mt-4 ",onClick:()=>u({driver:"twitch",buttonText:o.socialAuth.twitch}),bg:"#6B46B3",id:"twitch-social-login",disabled:t,children:(0,r.jsxs)("div",{className:"flex items-center justify-center gap-3 w-full text-sm md:text-base",children:[(0,r.jsx)(C,{src:"/icons/twitch-social-auth.svg",width:"100%",height:"100%"}),(0,r.jsx)("div",{className:"",children:o.socialAuth.twitch})]})})]}),(0,r.jsxs)("div",{className:"flex items-center mt-8",children:[(0,r.jsx)(k,{}),t&&(0,r.jsx)(y.Z,{className:"absolute top-0 right-0 bottom-0 left-0 flex items-center justify-center bg-black bg-opacity-50 z-30",children:(0,r.jsx)(b.Z,{size:"small",className:"loader"})}),(0,r.jsx)(T,{className:"capitalize",children:o.global.or}),(0,r.jsx)(k,{})]})]})},e=>{let{mutate:t}=(0,p.K)(),{socialUserLogin:i}=(0,a.useContext)(s.Vo),[n,l]=(0,a.useState)(!1),h=(0,a.useRef)(!1),f=(0,a.useRef)(null),v=(0,a.useCallback)(()=>{f.current&&(clearInterval(f.current),f.current=null)},[]),g=(0,a.useCallback)(()=>{window.AppleID&&window.AppleID.auth.signIn()},[]),y=(0,a.useCallback)(e=>{null==m||m.closed?(h.current=!1,l(!0),m=window.open("".concat("https://prod.bith.tv/api","/login/").concat(e),"SocialLoginPopup","toolbar=no,location=no,status=no,menubar=no,width=600,height=800"),v(),f.current=setInterval(()=>{m&&!m.closed||(m=null,v(),h.current||l(!1))},1e3)):m.focus()},[v]),b=(0,a.useCallback)(e=>{i&&(h.current=!0,l(!0),v(),i(e,i=>{let o=!!(null==i?void 0:i.was_recently_created);u.ZP.identify(String(i.id),{$email:i.email,$name:i.username,signup_method:e.driver}),u.ZP.setUserProperties({user_type:o?"new":"returning"}),u.ZP.track(c.n5.SIGN_IN,{login_method:e.driver,user_type:o?"new":"returning",platform:window.innerWidth<768?"mobile":"desktop"}),o&&(u.ZP.setUserPropertyOnce({signup_date:new Date().toISOString(),signup_method:e.driver}),u.ZP.track(c.n5.SIGN_UP_COMPLETED,{login_method:e.driver,user_type:"new",signup_source:e.driver})),d.Z.track("LOGIN"),(null==i?void 0:i.was_recently_created)&&t({event_name:"CompleteRegistration",event_id:"signup_".concat(String(i.id))})},e=>{h.current=!1,l(!1)}))},[i,v,t]);return(0,a.useEffect)(()=>{window.setAuthData=e=>{let t={social_access_token:e.token,driver:null==e?void 0:e.driver};(null==e?void 0:e.driver)==="twitter"&&(t.oauth_token_secret=null==e?void 0:e.token_secret),b(t),m&&(m.close(),m=null),v()}},[b,v]),(0,a.useEffect)(()=>()=>
1{v()},[v]),(0,r.jsx)(o,{...e,handleAppleLogin:g,handleLoginClick:y,loading:n})})},30035:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var o=i(85893),n=i(67294),r=n.memo(e=>{let{onTrigger:t,loading:i=!1,hasMore:r=!0,threshold:a=.1,rootMargin:l="100px",children:s,className:d="",debounceMs:u=100}=e,c=(0,n.useRef)(null),p=(0,n.useRef)(null),m=(0,n.useRef)(null),h=(0,n.useRef)(0),f=(0,n.useCallback)(()=>{let e=Date.now();m.current&&clearTimeout(m.current),e-h.current>=u?(h.current=e,t()):m.current=setTimeout(()=>{h.current=Date.now(),t()},u)},[t,u]),v=(0,n.useCallback)(e=>{let[t]=e;t.isIntersecting&&!i&&r&&f()},[f,i,r]),g=(0,n.useMemo)(()=>({threshold:a,rootMargin:l}),[a,l]);(0,n.useEffect)(()=>{let e=c.current;if(e)return p.current||(p.current=new IntersectionObserver(v,g)),p.current.observe(e),()=>{p.current&&e&&p.current.unobserve(e)}},[v,g]),(0,n.useEffect)(()=>{if(p.current){p.current.disconnect(),p.current=new IntersectionObserver(v,g);let e=c.current;e&&p.current.observe(e)}},[g,v]),(0,n.useEffect)(()=>()=>{p.current&&(p.current.disconnect(),p.current=null),m.current&&(clearTimeout(m.current),m.current=null)},[]);let y=(0,n.useMemo)(()=>"scroll-trigger ".concat(d).trim(),[d]);return(0,o.jsx)("div",{ref:c,className:y,"data-loading":i,"data-has-more":r,children:s})}),a=i(82821),l=i(46933),s=e=>{let{onTrigger:t,loading:i=!1,hasMore:n=!0,threshold:s=.1,rootMargin:d="100px",className:u="",loaderSize:c="small",loadingText:p,endMessage:m,loadingElement:h}=e;return(0,o.jsx)(r,{onTrigger:t,loading:i,hasMore:n,threshold:s,rootMargin:d,className:"flex items-center justify-center py-4 ".concat(u),children:i?h||(0,o.jsxs)(l.Z,{className:"flex items-center justify-center gap-2",children:[(0,o.jsx)(a.Z,{className:"loader",size:c}),p&&(0,o.jsx)("span",{className:"text-sm text-gray-600",children:p})]}):n?(0,o.jsx)("div",{className:"h-4"}):(0,o.jsx)("div",{className:"text-center text-gray-500 text-sm",children:m})})}},23283:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(5405),a=i(80533),l=i(11809),s=i(17679),d=i(46916),u=i(20931);let c=(0,r.ZP)(s.Z).withConfig({componentId:"sc-d30deb94-0"})(["position:sticky;top:0;z-index:99;background-color:var(--primary-color);",""],e=>{let{$marginBottom:t}=e;return t?"margin-bottom: ".concat(t,";"):""}),p=r.ZP.span.withConfig({componentId:"sc-d30deb94-1"})(["color:var(--t-shade-2);",' [data-theme="light"] &{color:var(--custom-white);',"}"],e=>{let{$isActive:t}=e;return t&&"color: var(--custom-white);"},e=>{let{$isActive:t}=e;return t&&"color: var(--custom-white);"});t.Z=e=>{var t,i;let{items:r,activeTabId:s,containerId:m,onTabChange:h,className:f="relative overflow-x-scroll hiddenScrollBar -mx-4",containerClassName:v="hiddenScrollBar px-4",tabClassName:g="text-sm px-0",activeClassName:y="text-custom-white",inactiveClassName:b="text-t-shade-2",activeLineClassName:A="bg-custom-white",marginBottom:x,showBottomBorder:w=!0,scrollOffset:_=20,scrollDelay:S=100,language:C,autoScrollDisabled:k=!1}=e,T=(0,d.Z)(),E=C||T,P=s||(null===(t=r.find(e=>e.isActive))||void 0===t?void 0:t.id)||(null===(i=r[0])||void 0===i?void 0:i.id)||"",I=E===u.H7.AR.value;return n.useEffect(()=>{if(k)return;let e=setTimeout(()=>{let e=document.getElementById(m);if(e){let t=document.querySelector('[data-name="'.concat(P,'"]'));if(t){let i;let o=t.getBoundingClientRect(),n=e.getBoundingClientRect();if(I){let t=Math.max(0,e.scrollWidth-e.clientWidth),r=e.scrollLeft;i=-(t-(o.left-n.left+Math.abs(r)-_)),i=Math.max(-t,Math.min(0,i))}else i=Math.max(0,i=o.left-n.left+e.scrollLeft-_);e.scrollTo({left:i,behavior:"smooth"})}}},S);return()=>clearTimeout(e)},[P,m,_,S,I,k]),(0,o.jsxs)(c,{className:f,containerClassName:v,id:m,direction:E===u.H7.AR.value?u.H7.AR.dir:u.H7.EN.dir,$marginBottom:x,children:[w&&(0,o.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-px bg-shade-2 transition-opacity"}),(0,o.jsx)(a.Z,{defaultActive:P,onChangeTab:e=>{let{value:t}=e;h&&h(t)},className:"relative gap-5 w-full",children:r.map((e,t)=>(0,o.jsx)(l.Z,{name:e.id,className:g,activeClassName:y,activeLineClassName:A,inactiveClassName:b,onClick:e.onClick||(()=>null),children:"string"==typeof e.label?(0,o.jsx)(p,{$isActive:e.isActive,className:"cursor-pointer",children:e.label}):e.label},e.id||t))})]})}},60167:function(e,t,i){"use strict";i.d(t,{Wr:function(){return a},Zw:function(){return r},iT:function(){return n},pd:function(){return o}});let o=e=>Number.isFinite(e)?Math.min(3,Math.max(0,Math.round(e))):0,n=(e,t)=>{let i=[];
1return e.supports_start_frame&&i.push({slug:"start-frame",label:t.startFrame}),e.supports_end_frame&&i.push({slug:"end-frame",label:t.endFrame}),i},r=e=>!0===e.is_new,a=(e,t)=>{let i=t.trim().toLowerCase();return i?e.filter(e=>{var t,o,n,r;return[e.name,null===(t=e.display_name)||void 0===t?void 0:t.en,null===(o=e.display_name)||void 0===o?void 0:o.ar,null===(n=e.description)||void 0===n?void 0:n.en,null===(r=e.description)||void 0===r?void 0:r.ar].filter(Boolean).join(" ").toLowerCase().includes(i)}):e}},10332:function(e,t,i){"use strict";i.d(t,{H:function(){return $},A:function(){return Q}});var o=i(85893),n=i(67294),r=i(85518),a=i(31155),l=i(58446),s=i(73726),d=i(87251),u=i(87162),c=i(5405),p=i(46321),m=i(20333),h=i(82029),f=i(94467),v=i(73859),g=i(88349),y=i(27524),b=i(2416),A=i(60167);let x=c.ZP.button.withConfig({componentId:"sc-1cca208f-0"})([""]),w=c.ZP.div.withConfig({componentId:"sc-1cca208f-1"})(['background-color:#161616;[data-theme="light"] &{background-color:var(--primary-color);}']),_=c.ZP.p.withConfig({componentId:"sc-1cca208f-2"})(['color:var(--text-shade-3);[data-theme="light"] &{color:var(--shade-3);}']),S=c.ZP.img.withConfig({componentId:"sc-1cca208f-3"})(['width:16px;height:16px;object-fit:contain;[data-theme="light"] &{filter:brightness(0.5);}']),C={speed:{src:"/icons/zap.svg",color:"var(--ph-color)"},quality:{src:"/icons/diamond-02.svg",color:"var(--ph-color)"}},k=e=>{let{filled:t,type:i}=e,{src:n,color:r}=C[i];return(0,o.jsx)(p.Z,{src:n,width:"16px",height:"16px",color:r,stroke:r,svgProps:{style:{opacity:t?1:.25}}})},T=e=>{let{previewVideoUrl:t,previewImageUrl:i,displayName:r,featureBadges:a,scrollRoot:l}=e,s=n.useRef(null),[d,u]=n.useState(!1);return(0,b.W)(s,{autoplayTimeout:300,threshold:.25,pauseOnExit:!0,enableAutoplay:!!t,root:l,rootMargin:"50px"}),(0,o.jsxs)("div",{className:"studio-media-well relative aspect-[173/130] w-full shrink-0 overflow-hidden bg-[#161616]",children:[t?(0,o.jsxs)(o.Fragment,{children:[!d&&i?(0,o.jsx)("img",{src:i,alt:"",role:"presentation",loading:"lazy",className:"absolute inset-0 block h-full w-full object-cover"}):null,(0,o.jsx)(m.Z,{ref:s,src:t,type:"video/".concat(t.split(".").pop()||"mp4"),loop:!0,muted:!0,preload:"metadata",width:"100%",height:"100%",onLoadedData:()=>u(!0),className:"absolute inset-0 block h-full w-full object-cover"})]}):(0,o.jsx)(h.Z,{src:i,alt:r,className:"absolute inset-0 block h-full w-full object-cover",fallbackElement:(0,o.jsx)("div",{className:"absolute inset-0 bg-[#161616]"})}),(0,o.jsx)("div",{className:"pointer-events-none absolute inset-0 bg-gradient-to-t from-[#161616] via-[rgba(22,22,22,0)] to-transparent"}),a.length>0&&(0,o.jsx)("div",{className:"absolute left-2.5 top-2.5 flex flex-wrap gap-1.5",children:a.map(e=>(0,o.jsxs)("span",{className:"flex items-center gap-1 rounded-md bg-primary px-1 py-1 text-[8px] font-medium text-ph-color",children:[(0,o.jsx)(p.Z,{src:"/icons/image-01.svg?v=1",width:"12px",height:"12px",stroke:"currentColor",color:"currentColor"}),e.label]},e.slug))})]})},E=e=>{let{type:t,value:i,tooltip:n}=e;return(0,o.jsx)(v.Z,{message:(0,o.jsx)(g.Z,{children:n}),position:"top-center",className:"inline-flex",children:(0,o.jsx)("div",{className:"flex items-center p-1 rounded-md ".concat("speed"===t?"gap-0.5":"gap-1"),children:Array.from({length:3},(e,n)=>(0,o.jsx)(k,{filled:n<i,type:t},"".concat(t,"-").concat(n)))})})};var P=n.memo(e=>{var t,i,r,a;let{model:l,isSelected:s,onSelect:u,scrollRoot:c,className:m}=e,{language:h}=n.useContext(y.AZ),v=(0,d.Z)(),g=(null===(t=l.display_name)||void 0===t?void 0:t[h])||(null===(i=l.display_name)||void 0===i?void 0:i.en)||l.name,b=(null===(r=l.description)||void 0===r?void 0:r[h])||(null===(a=l.description)||void 0===a?void 0:a.en)||"",C=(0,A.pd)(l.speed),k=(0,A.pd)(l.quality),P=(0,A.iT)(l,{startFrame:v.sceneGen.selectModelPopup.startFrameBadge,endFrame:v.sceneGen.selectModelPopup.endFrameBadge}),I=(0,A.Zw)(l),D=l.preview_video_url,O=l.preview_image_url||l.icon_url||"";return(0,o.jsx)(f.Z,{root:c,rootMargin:"120px",minHeight:290,className:"w-full",children:(0,o.jsxs)(x,{type:"button",onClick:()=>u(l.id),className:"relative flex w-full flex-col overflow-hidden rounded-2xl text-left transition-colors border-2 h-full ".concat(s?"border-secondary":"border-[rgba(146,146,146,0.25)] hover:border-secondary/60"," ").concat(null!=m?m:""),children:[(0,o.jsx)(T,{previewVideoUrl:D,previewImageUrl:O,displayName:g,featureBadges:P,scrollRoot:c}
1),(0,o.jsxs)(w,{className:"flex flex-col gap-2 px-4 py-3 flex-1",children:[(0,o.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,o.jsxs)("div",{className:"relative flex items-center gap-2",children:[l.icon_url?(0,o.jsx)(S,{src:l.icon_url,alt:"",className:"shrink-0 object-contain"}):null,(0,o.jsx)("span",{className:"truncate pr-12 text-sm font-semibold text-custom-white",children:g}),I?(0,o.jsx)("span",{className:"absolute right-0 rounded-md bg-[#d14c72] px-1.5 py-0.5 text-xs font-medium text-white",children:v.sceneGen.selectModelPopup.newBadge}):null]}),b?(0,o.jsx)(_,{className:"line-clamp-2 text-[10px] font-medium",children:b}):null]}),(0,o.jsxs)("div",{className:"flex items-center justify-between gap-2 mt-auto",children:[(0,o.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,o.jsx)(E,{type:"speed",value:C,tooltip:v.sceneGen.selectModelPopup.speedTooltip}),(0,o.jsx)(E,{type:"quality",value:k,tooltip:v.sceneGen.selectModelPopup.qualityTooltip})]}),(0,o.jsxs)("div",{className:"flex shrink-0 items-center gap-1 text-white",children:[(0,o.jsx)(p.Z,{src:"/icons/coins-02.svg",width:"16px",height:"16px",color:"currentColor",fill:"currentColor"}),(0,o.jsx)("span",{className:"text-xs font-medium",children:l.min_credit_cost})]})]})]})]})})});let I=c.ZP.img.withConfig({componentId:"sc-a39d27f3-0"})(['width:16px;height:16px;object-fit:contain;[data-theme="light"] &{filter:brightness(0.5);}']),D=c.ZP.button.withConfig({shouldForwardProp:e=>"$isSelected"!==e}).withConfig({componentId:"sc-a39d27f3-1"})(["background-color:",';[data-theme="light"] &{background-color:',";}"],e=>e.$isSelected?"rgba(255, 255, 255, 0.05)":"var(--primary-color)",e=>e.$isSelected?"var(--shade-2)":"var(--primary-color)"),O=c.ZP.span.withConfig({shouldForwardProp:e=>"$isSelected"!==e}).withConfig({componentId:"sc-a39d27f3-2"})(["background-color:",';[data-theme="light"] &{background-color:',";}"],e=>e.$isSelected?"var(--primary-color)":"rgba(255, 255, 255, 0.05)",e=>e.$isSelected?"var(--primary-color)":"var(--shade-2)"),N={speed:{src:"/icons/zap.svg",color:"var(--ph-color)"},quality:{src:"/icons/diamond-02.svg",color:"var(--ph-color)"}},j=e=>{let{filled:t,type:i}=e,{src:n,color:r}=N[i];return(0,o.jsx)(p.Z,{src:n,width:"16px",height:"16px",color:r,stroke:r,svgProps:{style:{opacity:t?1:.25}}})},M=e=>{let{previewVideoUrl:t,previewImageUrl:i,displayName:r,scrollRoot:a}=e,l=n.useRef(null),[s,d]=n.useState(!1);return(0,b.W)(l,{autoplayTimeout:300,threshold:.25,pauseOnExit:!0,enableAutoplay:!!t,root:a,rootMargin:"50px"}),(0,o.jsx)("div",{className:"studio-media-well relative size-24 shrink-0 overflow-hidden rounded-xl bg-[#161616]",children:t?(0,o.jsxs)(o.Fragment,{children:[!s&&i?(0,o.jsx)("img",{src:i,alt:"",role:"presentation",loading:"lazy",className:"absolute inset-0 block h-full w-full object-cover"}):null,(0,o.jsx)(m.Z,{ref:l,src:t,type:"video/".concat(t.split(".").pop()||"mp4"),loop:!0,muted:!0,preload:"metadata",width:"100%",height:"100%",onLoadedData:()=>d(!0),className:"absolute inset-0 block h-full w-full object-cover"})]}):i?(0,o.jsx)("img",{src:i,alt:r,loading:"lazy",className:"absolute inset-0 block h-full w-full object-cover"}):(0,o.jsx)("div",{className:"h-full w-full bg-[#161616]"})})},R=e=>{let{type:t,value:i,tooltip:n}=e;return(0,o.jsx)(v.Z,{message:(0,o.jsx)(g.Z,{children:n}),position:"top-center",className:"inline-flex",children:(0,o.jsx)("div",{className:"flex items-center rounded-md p-1 ".concat("speed"===t?"gap-0.5":"gap-1"),children:Array.from({length:3},(e,n)=>(0,o.jsx)(j,{filled:n<i,type:t},"".concat(t,"-").concat(n)))})})};var z=n.memo(e=>{var t,i;let{model:r,isSelected:a,onSelect:l,scrollRoot:s}=e,{language:u}=n.useContext(y.AZ),c=(0,d.Z)(),m=(null===(t=r.display_name)||void 0===t?void 0:t[u])||(null===(i=r.display_name)||void 0===i?void 0:i.en)||r.name,h=(0,A.pd)(r.speed),f=(0,A.pd)(r.quality),v=(0,A.iT)(r,{startFrame:c.sceneGen.selectModelPopup.startFrameBadge,endFrame:c.sceneGen.selectModelPopup.endFrameBadge}),g=(0,A.Zw)(r),b=r.preview_video_url,x=r.preview_image_url||"";return(0,o.jsxs)(D,{type:"button",$isSelected:a,onClick:()=>l(r.id),className:"flex w-full items-center rounded-xl p-2 text-left transition-colors ".concat(a?"gap-3":"gap-2"),children:[(0,o.jsx)(M,{previewVideoUrl:b,previewImageUrl:x,displayName:m,scrollRoot:null!=s?s:null}),(0,o.jsxs)("div",{className:"flex min-w-0 flex-1 flex-col ".concat(a?"gap-3":"gap-2"),children:[(0,o.jsxs)("div",{className:"relative flex w-full items-center gap-2",children:[r.icon_url?(0,o.jsx)(I,{src:r.icon_url,alt:"",className:"shrink-0"}):null,(0,o.jsx)("span",{className:"truncate pr-12 text-xs font-medium ".concat(a?"text-custom-white":"text-ph-color"),children:m}),g?(0,o.jsx)("span",{className:"absolute right-0 rounded-md bg-[#d14c72] px-1.5 py-0.5 text-[10px] font-medium text-white",children:c.sceneGen.selectModelPopup.newBadge}):null]}),(0,o.jsxs)("div",{className:"flex w-full flex-col gap-2",children:[v.length>0?(0,o.jsx)("div",{className:"flex flex-wrap items-center gap-1.5",children:v.map(e=>(0,o.jsxs)(O,{$isSelected:a,className:"flex items-center gap-1 rounded-md p-1 text-[8px] font-medium text-ph-color opacity-90",children:[(0,o.jsx)(p.Z,{src:"/icons/image-01.svg",width:"12px",height:"12px",stroke:"currentColor",color:"currentColor"}),e.label]},e.slug))}):null,(0,o.jsxs)("div",{className:"flex w-full items-center justify-between gap-2",children:[(0,o.jsxs)("div",{className:"flex items-center gap-1.5",children:[(0,o.jsx)(R,{type:"speed",value:h,tooltip:c.sceneGen.selectModelPopup.speedTooltip}),(0,o.jsx)(R,{type:"quality",value:f,tooltip:c.sceneGen.selectModelPopup.qualityTooltip})]}),(0,o.jsxs)("div",{className:"flex shrink-0 items-center gap-1 text-ph-color",children:[(0,o.jsx)(p.Z,{src:"/icons/coins-02.svg",width:"16px",height:"16px",color:"currentColor",fill:"
1currentColor"}),(0,o.jsx)("span",{className:"text-xs font-medium",children:r.min_credit_cost})]})]})]})]})]})}),L=i(11163),V=i(10009),F=i(96928),U=i(47095),G=i(6627);let B={[s.u9.IMAGE_TO_SCENE]:"/ai-studio/image-to-scene",[s.u9.TEXT_TO_SCENE]:"/ai-studio/text-to-scene",[s.u9.IMAGE_GENERATOR]:"/ai-studio/text-to-image",[s.u9.IMAGE_EDITOR]:"/ai-studio/ai-image-editor",[s.u9.IMAGE_UPSCALER]:"/ai-studio/image-upscaler"},Z=c.ZP.div.withConfig({componentId:"sc-68ee350a-0"})(["position:relative;box-sizing:border-box;width:1160px;min-width:1160px;max-width:1160px;height:min(816px,calc(100dvh - 96px));min-height:min(816px,calc(100dvh - 96px));max-height:min(816px,calc(100dvh - 96px));border-radius:1rem;box-shadow:0px 15px 35px 0px rgba(0,0,0,0.2);background-color:var(--shade);padding:24px;display:flex;flex-direction:column;gap:24px;margin:0 auto;overflow:hidden;@media (max-width:1200px){width:calc(100vw - 48px);min-width:calc(100vw - 48px);max-width:calc(100vw - 48px);}"]),q=c.ZP.div.withConfig({componentId:"sc-68ee350a-1"})(["box-sizing:border-box;width:100%;background-color:transparent;padding:12px;padding-top:24px;display:flex;flex-direction:column;gap:16px;"]),H=c.ZP.label.withConfig({componentId:"sc-68ee350a-2"})(['background-color:rgba(255,255,255,0.03);border-radius:12px;padding:12px 16px;[data-theme="light"] &{background-color:var(--shade-2);}']),W=c.ZP.label.withConfig({componentId:"sc-68ee350a-3"})(['background-color:#262626;border-radius:12px;padding:12px;[data-theme="light"] &{background-color:var(--shade-2);}']);var Y=e=>{var t;let{feature:i,modelType:l,ctaUrl:c,withRedirect:m}=Q(e),h=(0,L.useRouter)(),f=(0,d.Z)(),{trackToolConfiguration:v}=(0,G.G)(i.replace(/-/g," ")),{data:g}=(0,V.lg)(i),{data:y}=(0,u.t4)(i,l),{dispatchGlobalState:b}=(0,F.Z)(),[x,w]=n.useState((null==g?void 0:g.model)||null),[_,S]=n.useState(""),[C,k]=n.useState(null),[T,E]=n.useState(null);n.useEffect(()=>{var e,t,o;if(!(null==y?void 0:null===(t=y.data)||void 0===t?void 0:null===(e=t.models)||void 0===e?void 0:e.length))return;let n=y.data.models;if(!(null==g?void 0:null===(o=g.model)||void 0===o?void 0:o.id)){w(n[0]),(0,V.ck)(n[0],i);return}if(n.some(e=>e.id===g.model.id)){w(g.model);return}w(n[0]),(0,V.ck)(n[0],i)},[y,null==g?void 0:g.model,i]);let I=n.useMemo(()=>{var e,t;return(0,A.Wr)(null!==(t=null==y?void 0:null===(e=y.data)||void 0===e?void 0:e.models)&&void 0!==t?t:[],_)},[null==y?void 0:null===(t=y.data)||void 0===t?void 0:t.models,_]);n.useEffect(()=>{r.tq&&E(document.getElementById("swipeableScrollableContent"))},[I.length,r.tq,_]);let D=n.useMemo(()=>new Map(I.map(e=>[e.id,e])),[I]),O=n.useCallback(e=>{if((0,U.m8)({name:"".concat(i,"-selectedModel"),value:JSON.stringify(e)}),m){if(c){let t=new URL("".concat(window.location.origin).concat(c));t.searchParams.set("m",e.id.toString()),h.push(t.toString());return}let t=B[i];t&&h.push("".concat(t,"?m=").concat(e.id))}else(0,V.ck)(e,i),b({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,type:null}})},[c,b,i,h,m]),N=n.useCallback(e=>{var t;let i=D.get(e);if(!i)return;let o=null!==(t=i.slug)&&void 0!==t?t:i.name;v({configuration_type:"ai_model",value:o,model_name:o,model_selection_type:"popup"}),w(i),O(i)},[O,D,v]),j=i===s.u9.IMAGE_TO_SCENE?f.sceneGen.selectModelPopup.i2vTitle:i===s.u9.TEXT_TO_SCENE?f.sceneGen.selectModelPopup.t2vTitle:f.sceneGen.selectModelPopup.imageGenTitle,M=r.tq?(0,o.jsxs)(W,{className:"flex w-full shrink-0 items-center gap-2",children:[(0,o.jsx)(p.Z,{src:"/icons/search-normal.svg",width:"16px",height:"16px",fill:"var(--text-shade-3)",color:"var(--text-shade-3)"}),(0,o.jsx)("input",{type:"search",value:_,onChange:e=>S(e.target.value),placeholder:f.sceneGen.selectModelPopup.searchPlaceholder,className:"w-full bg-transparent text-xs font-medium text-ph-color outline-none placeholder:text-text-shade-3"})]}):(0,o.jsxs)(H,{className:"flex w-full items-center gap-2 rounded-xl bg-[rgba(255,255,255,0.03)] p-4",children:[(0,o.jsx)(p.Z,{src:"/icons/search-normal.svg",width:"16px",height:"16px",fill:"var(--text-shade-3)",color:"var(--text-shade-3)"}
1),(0,o.jsx)("input",{type:"search",value:_,onChange:e=>S(e.target.value),placeholder:f.sceneGen.selectModelPopup.searchPlaceholder,className:"w-full bg-transparent text-sm font-medium text-ph-color outline-none placeholder:text-text-shade-3"})]});return r.tq?(0,o.jsxs)(q,{children:[M,I.length>0?I.map(e=>(0,o.jsx)(z,{model:e,isSelected:(null==x?void 0:x.id)===e.id,onSelect:N,scrollRoot:T},e.id)):(0,o.jsx)("div",{className:"px-4 py-6 text-center text-xs text-text-shade-3",children:f.sceneGen.selectModelPopup.noResults})]}):(0,o.jsxs)(Z,{children:[(0,o.jsx)("button",{type:"button","aria-label":"Close",onClick:()=>{b({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null,type:null}})},className:"absolute right-4 top-4 z-10 cursor-pointer",children:(0,o.jsx)(p.Z,{src:"/icons/close-circle.svg",width:"24px",height:"24px",stroke:"var(--text-shade-2)"})}),(0,o.jsx)("span",{className:"pr-8 text-base font-semibold text-ph-color",children:j}),(0,o.jsxs)("div",{className:"flex min-h-0 flex-1 flex-col gap-4 sm:gap-6",children:[M,(0,o.jsxs)("div",{ref:k,className:"grid min-h-0 flex-1 auto-rows-min grid-cols-1 gap-4 overflow-y-auto hiddenScrollBar sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4",children:[C?I.map(e=>(0,o.jsx)(P,{model:e,isSelected:(null==x?void 0:x.id)===e.id,onSelect:N,scrollRoot:C},e.id)):null,I.length?null:(0,o.jsx)("div",{className:"col-span-full flex min-h-full flex-1 items-center justify-center text-sm text-t-shade-2",children:f.sceneGen.selectModelPopup.noResults})]})]})]})},K=i(64544);let Q=e=>{var t,i,o;return e.feature?{feature:e.feature,modelType:e.modelType,ctaUrl:e.ctaUrl,withRedirect:null===(t=e.withRedirect)||void 0===t||t}:{feature:e.type===l.Y7.IMAGE_TO_VIDEO?s.u9.IMAGE_TO_SCENE:s.u9.TEXT_TO_SCENE,modelType:null!==(i=e.type)&&void 0!==i?i:l.Y7.TEXT_TO_VIDEO,ctaUrl:e.ctaUrl,withRedirect:null===(o=e.withRedirect)||void 0===o||o}},$=(e,t)=>{e({type:a.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,...r.tq?{type:a.BT.SWIPE_STATE_CHANGED}:{},options:{iconClassName:"hidden",...r.tq?{swipeOpenHeightPercentage:.8,swipeClassName:K.M}:{}},children:(0,o.jsx)(Y,{...t})}})}},46684:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(46321),a=i(91167),l=i(11163),s=i(20931),d=i(31155),u=i(5405),c=i(87251),p=i(73726),m=i(85242),h=i(96928);let f=u.ZP.div.withConfig({componentId:"sc-12760f15-0"})(['max-width:495px;min-width:495px;width:100%;border-radius:24px;box-shadow:0px 15px 35px 0px rgba(0,0,0,0.20);;background-color:var(--shade);padding:40px;flex-direction:column;& [data-direction="row"]{}@media (max-width:768px){max-width:100%;min-width:100%;width:calc(100% - 32px);padding:24px;flex-direction:column;}']);t.Z=e=>{let{tool:t,failure:i}=e,u=(0,l.useRouter)(),v=(0,c.Z)(),g=v.serviceDown.features[t],{dispatchGlobalState:y}=(0,h.Z)(),b=()=>{y({type:d.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1}})};return n.useMemo(()=>(null==i?void 0:i.failure_type)?null==i?void 0:i.failure_type:p.wP.FEATURE_BASED_FAILURE,[null==i?void 0:i.failure_type]),(0,o.jsxs)(f,{className:"flex flex-col items-center justify-center",children:[(0,o.jsx)(m.Z,{type:"primary",size:"large",style:{background:"#D4CFF2"},className:"flex items-center justify-center",children:(0,o.jsx)(r.Z,{src:"/icons/info-circle.svg",width:"20px",height:"20px",stroke:"#402FAC"})}),(0,o.jsx)("span",{className:"heading-5 mt-4 text-center font-semibold text-ph-color",children:(null==i?void 0:i.failure_type)===p.wP.TEMPLATE_EXECUTION_FAILURE?v.serviceDown.templateExecutionFailure.title:(null==i?void 0:i.failure_type)===p.wP.FEATURE_BASED_FAILURE?v.serviceDown.title(null==g?void 0:g.title):(null==i?void 0:i.model)?v.serviceDown.modelDown.title(null==i?void 0:i.model):v.serviceDown.providerDown.title}),(0,o.jsx)("p",{className:"text-sm text-ph-color mt-4 text-center",dangerouslySetInnerHTML:{__html:(null==i?void 0:i.failure_type)===p.wP.TEMPLATE_EXECUTION_FAILURE?v.serviceDown.templateExecutionFailure.description:(null==i?void 0:i.failure_type)===p.wP.FEATURE_BASED_FAILURE?v.serviceDown.description(null==g?void 0:g.description):(null==i?void 0:i.model)?v.
1serviceDown.modelDown.description(null==i?void 0:i.model):v.serviceDown.providerDown.description}}),(null==i?void 0:i.failure_type)===p.wP.TEMPLATE_EXECUTION_FAILURE?(0,o.jsx)(a.Z,{className:"mt-6",size:"sm",type:"secondary",onClick:()=>{"salla-app"===t?b():u.push(s.P2.STUDIO_TEMPLATES)},children:v.serviceDown.templateExecutionFailure.back}):(null==i?void 0:i.failure_type)===p.wP.FEATURE_BASED_FAILURE?(0,o.jsxs)(a.Z,{className:"mt-6",size:"sm",type:"secondary",onClick:()=>{u.push(s.P2.HOME)},children:[(0,o.jsx)(r.Z,{src:"/icons/home-2.svg",width:"24px",height:"24px",fill:"#fff"}),v.serviceDown.action]}):(0,o.jsxs)("div",{className:"flex flex-col md:flex-row gap-6",children:[(0,o.jsx)(a.Z,{className:"mt-6",size:"sm",type:"text",onClick:()=>{u.push(s.P2.HOME)},children:v.serviceDown.action}),(0,o.jsx)(a.Z,{className:"mt-6",size:"sm",type:"secondary",onClick:b,children:v.serviceDown.modelDown.switch})]})]})}},82821:function(e,t,i){"use strict";var o=i(85893);i(67294);var n=i(13478),r=i.n(n);let a=["large","medium","small","xSmall","xsSmall","tiny","fill"],l=e=>"string"==typeof e&&a.includes(e);t.Z=e=>{let{size:t,className:i,onDark:n=!1,circleColor:a,circleFillColor:s,style:d}=e,{borderColor:u,borderTopColor:c,...p}=null!=d?d:{},m=null!=a?a:c,h=null!=s?s:u,f=l(t)?t:void 0,v="number"==typeof t?t:void 0,g={...p,...null!=v?{width:v,height:v}:void 0,...h?{"--simple-loader-track":h}:void 0,...m?{"--simple-loader-arc":m}:void 0};return(0,o.jsx)("div",{style:g,className:"".concat(r()["simple-loader"]," ").concat(f?r()["simple-loader__".concat(f)]:""," ").concat(n?r()["simple-loader--on-dark"]:""," ").concat(i||""),"aria-hidden":!0,children:(0,o.jsxs)("svg",{viewBox:"0 0 24 24",fill:"none",children:[(0,o.jsx)("circle",{className:r()["simple-loader__track"],cx:"12",cy:"12",r:"10",strokeWidth:"3.333"}),(0,o.jsx)("circle",{className:r()["simple-loader__arc"],cx:"12",cy:"12",r:"10",strokeWidth:"3.333",strokeLinecap:"round",pathLength:"100",strokeDasharray:"30 70"})]})})}},91369:function(e,t,i){"use strict";i(67294);var o=i(5405);let n=(0,o.F4)(["0%{background-color:var(--shade-2);}50%{background-color:var(--shade);}100%{background-color:var(--shade-2);}"]),r=(0,o.F4)(["0%{background-color:var(--shade);}50%{background-color:var(--shade-2);}100%{background-color:var(--shade);}"]),a=o.ZP.div.withConfig({componentId:"sc-2eab8493-0"})(["display:inline-block;position:relative;animation:",' 1.5s infinite ease-in-out;[data-theme="light"] &{animation:'," 1.5s infinite ease-in-out;}"],n,r),l=(0,o.ZP)(a).withConfig({componentId:"sc-2eab8493-1"})(["height:",";width:",";border-radius:999px;"],e=>e.$height?e.$height:"1em",e=>e.$width?e.$width:"100%"),s=(0,o.ZP)(a).withConfig({componentId:"sc-2eab8493-2"})(["height:",";width:",";border-radius:50%;"],e=>e.$size?e.$size:"50px",e=>e.$size?e.$size:"50px"),d=(0,o.ZP)(a).withConfig({componentId:"sc-2eab8493-3"})(["height:",";width:100%;border-radius:8px;"],e=>e.$height?e.$height:"138px");t.Z={SkeletonCard:d,SkeletonAvatar:s,SkeletonText:l}},46321:function(e,t,i){"use strict";i.d(t,{Z:function(){return D}});var o=i(85893),n=i(67294),r=i(63366),a=i(87462),l=i(89611),s=i(97582),d=i(37811),u=new Map,c=function(e){return e.cloneNode(!0)},p=function(){return"file:"===window.location.protocol},m=function(e,t,i){var o=new XMLHttpRequest;o.onreadystatechange=function(){try{if(!/\.svg/i.test(e)&&2===o.readyState){var t=o.getResponseHeader("Content-Type");if(!t)throw Error("Content type not found");var n=(0,d.Q)(t).type;if(!("image/svg+xml"===n||"text/plain"===n))throw Error("Invalid content type: ".concat(n))}if(4===o.readyState){if(404===o.status||null===o.responseXML)throw Error(p()?"Note: SVG injection ajax calls do not work locally without adjusting security settings in your browser. Or consider using a local webserver.":"Unable to load SVG file: "+e);if(200===o.status||p()&&0===o.status)i(null,o);else throw Error("There was a problem injecting the SVG: "+o.status+" "+o.statusText)}}catch(e){if(o.abort(),e instanceof Error)i(e,o);else throw e}},o.open("GET",e),o.withCredentials=t,o.overrideMimeType&&o.overrideMimeType("text/xml"),o.send()},h={},f=function(e,t){h[e]=h[e]||[],h[e].push(t)},v=function(e){for(var t=function(t,i){setTimeout(function(){if(Array.isArray(h[e])){var i=u.get(e),o=h[e][t];i instanceof SVGSVGElement&&o(null,c(i)),i instanceof Error&&o(i),t===h[e].length-1&&delete h[e]}},0)},i=0,o=h[e].length;i<o;i++)t(i)},g=function(e,t,i){if(u.has(e)){var o=u.get(e);if(void 0===o){f(e,i);return}if(o instanceof SVGSVGElement){i(null,c(o));return}}u.set(e,void 0),f(e,i),m(e,t,function(t,i){var o;t?u.set(e,t):(null===(o=i.responseXML)||void 0===o?void 0:o.documentElement)instanceof SVGSVGElement&&u.set(e,i.responseXML.documentElement),v(e)})},y=function(e,t,i){m(e,t,function(e,t){var o;e?i(e):(null===(o=t.responseXML)||void 0===o?void 0:o.documentElement)instanceof SVGSVGElement&&i(null,t.responseXML.documentElement)})},b=0,A=[],x={},w="http://www.w3.org/1999/xlink",_=function(e,t,i,o,n,r,a){var l=e.getAttribute("data-src")||e.getAttribute("src");if(!l){a(Error("Invalid data-src or src attribute"));return}if(-1!==A.indexOf(e)){A.splice(A.indexOf(e),1),e=null;return}A.push(e),e.setAttribute("src",""),(o?g:y)(l,n,function(o,n){if(!n){A.splice(A.indexOf(e),1),e=null,a(o);return}var d,u,c=e.getAttribute("id");c&&n.setAttribute("id",c);var p=e.getAttribute("title");p&&n.setAttribute("title",p);var m=e.getAttribute("width");m&&n.setAttribute("width",m);var h=e.getAttribute("height");h&&n.setAttribute("height",h);var f=Array.from(new Set((0,s.ev)((0,s.ev)((0,s.ev)([],(n.getAttribute("class")||"").split(" "),!0),["injected-svg"],!1),(e.getAttribute("class")||"").split(" "),!0))).join(" ").trim();n.setAttribute("class",f);var v=e.getAttribute("style");v&&n.setAttribute("style",v),n.setAttribute("data-src",l);var g=[].filter.call(e.attributes,function(e){return/^data-\w[\w-]*$/.test(e.name)}
1);if(Array.prototype.forEach.call(g,function(e){e.name&&e.value&&n.setAttribute(e.name,e.value)}),i){var y,_,S,C,k,T={clipPath:["clip-path"],"color-profile":["color-profile"],cursor:["cursor"],filter:["filter"],linearGradient:["fill","stroke"],marker:["marker","marker-start","marker-mid","marker-end"],mask:["mask"],path:[],pattern:["fill","stroke"],radialGradient:["fill","stroke"]};Object.keys(T).forEach(function(e){y=e,S=T[e],_=n.querySelectorAll(y+"[id]");for(var t=0,i=_.length;t<i;t++)!function(e,t){k=(C=_[e].id)+"-"+ ++b,Array.prototype.forEach.call(S,function(e){i=n.querySelectorAll("["+e+'*="'+C+'"]');for(var t=0,o=i.length;t<o;t++){var r=i[t].getAttribute(e);(!r||r.match(RegExp('url\\("?#'+C+'"?\\)')))&&i[t].setAttribute(e,"url(#"+k+")")}});for(var i,o=n.querySelectorAll("[*|href]"),r=[],a=0,l=o.length;a<l;a++){var s=o[a].getAttributeNS(w,"href");s&&s.toString()==="#"+_[e].id&&r.push(o[a])}for(var d=0,u=r.length;d<u;d++)r[d].setAttributeNS(w,"href","#"+k);_[e].id=k}(t)})}n.removeAttribute("xmlns:a");for(var E=n.querySelectorAll("script"),P=[],I=0,D=E.length;I<D;I++)(u=E[I].getAttribute("type"))&&"application/ecmascript"!==u&&"application/javascript"!==u&&"text/javascript"!==u||((d=E[I].innerText||E[I].textContent)&&P.push(d),n.removeChild(E[I]));if(P.length>0&&("always"===t||"once"===t&&!x[l])){for(var O=0,N=P.length;O<N;O++)Function(P[O])(window);x[l]=!0}var j=n.querySelectorAll("style");if(Array.prototype.forEach.call(j,function(e){e.textContent+=""}),n.setAttribute("xmlns","http://www.w3.org/2000/svg"),n.setAttribute("xmlns:xlink",w),r(n),!e.parentNode){A.splice(A.indexOf(e),1),e=null,a(Error("Parent node is null"));return}e.parentNode.replaceChild(n,e),A.splice(A.indexOf(e),1),e=null,a(null,n)})},S=function(e,t){var i=void 0===t?{}:t,o=i.afterAll,n=void 0===o?function(){}:o,r=i.afterEach,a=void 0===r?function(){}:r,l=i.beforeEach,s=void 0===l?function(){}:l,d=i.cacheRequests,u=void 0===d||d,c=i.evalScripts,p=void 0===c?"never":c,m=i.httpRequestWithCredentials,h=void 0!==m&&m,f=i.renumerateIRIElements,v=void 0===f||f;if(e&&"length"in e)for(var g=0,y=0,b=e.length;y<b;y++)_(e[y],p,v,u,h,s,function(t,i){a(t,i),e&&"length"in e&&e.length===++g&&n(g)});else e?_(e,p,v,u,h,s,function(t,i){a(t,i),n(1),e=null}):n(0)},C=i(45697),k=function(e,t){for(var i in e)if(!(i in t))return!0;for(var o in t)if(e[o]!==t[o])return!0;return!1},T=["afterInjection","beforeInjection","desc","evalScripts","fallback","httpRequestWithCredentials","loading","renumerateIRIElements","src","title","useRequestCache","wrapper"],E="http://www.w3.org/2000/svg",P="http://www.w3.org/1999/xlink",I=function(e){function t(){for(var t,i=arguments.length,o=Array(i),n=0;n<i;n++)o[n]=arguments[n];return(t=e.call.apply(e,[this].concat(o))||this).initialState={hasError:!1,isLoading:!0},t.state=t.initialState,t._isMounted=!1,t.reactWrapper=void 0,t.nonReactWrapper=void 0,t.refCallback=function(e){t.reactWrapper=e},t}t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,l.Z)(t,e);var i=t.prototype;return i.renderSVG=function(){var e=this;if(this.reactWrapper instanceof(((null==(t=this.reactWrapper)?void 0:t.ownerDocument)||document).defaultView||window).Node){var t,i,o,n=this.props,r=n.desc,a=n.evalScripts,l=n.httpRequestWithCredentials,s=n.renumerateIRIElements,d=n.src,u=n.title,c=n.useRequestCache,p=this.props.onError,m=this.props.beforeInjection,h=this.props.afterInjection,f=this.props.wrapper;"svg"===f?((i=document.createElementNS(E,f)).setAttribute("xmlns",E),i.setAttribute("xmlns:xlink",P),o=document.createElementNS(E,f)):(i=document.createElement(f),o=document.createElement(f)),i.appendChild(o),o.dataset.src=d,this.nonReactWrapper=this.reactWrapper.appendChild(i);var v=function(t){if(e.removeSVG(),!e._isMounted){p(t);return}e.setState(function(){return{hasError:!0,isLoading:!1}},function(){p(t)})};
1S(o,{afterEach:function(t,i){if(t){v(t);return}e._isMounted&&e.setState(function(){return{isLoading:!1}},function(){try{h(i)}catch(e){v(e)}})},beforeEach:function(e){if(e.setAttribute("role","img"),r){var t=e.querySelector(":scope > desc");t&&e.removeChild(t);var i=document.createElement("desc");i.innerHTML=r,e.prepend(i)}if(u){var o=e.querySelector(":scope > title");o&&e.removeChild(o);var n=document.createElement("title");n.innerHTML=u,e.prepend(n)}try{m(e)}catch(e){v(e)}},cacheRequests:c,evalScripts:a,httpRequestWithCredentials:l,renumerateIRIElements:s})}},i.removeSVG=function(){var e;null!=(e=this.nonReactWrapper)&&e.parentNode&&(this.nonReactWrapper.parentNode.removeChild(this.nonReactWrapper),this.nonReactWrapper=null)},i.componentDidMount=function(){this._isMounted=!0,this.renderSVG()},i.componentDidUpdate=function(e){var t=this;k((0,a.Z)({},e),this.props)&&this.setState(function(){return t.initialState},function(){t.removeSVG(),t.renderSVG()})},i.componentWillUnmount=function(){this._isMounted=!1,this.removeSVG()},i.render=function(){var e=this.props;e.afterInjection,e.beforeInjection,e.desc,e.evalScripts;var t=e.fallback;e.httpRequestWithCredentials;var i=e.loading;e.renumerateIRIElements,e.src,e.title,e.useRequestCache;var o=e.wrapper,l=(0,r.Z)(e,T);return n.createElement(o,(0,a.Z)({},l,{ref:this.refCallback},"svg"===o?{xmlns:E,xmlnsXlink:P}:{}),this.state.isLoading&&i&&n.createElement(i,null),this.state.hasError&&t&&n.createElement(t,null))},t}(n.Component);I.defaultProps={afterInjection:function(){},beforeInjection:function(){},desc:"",evalScripts:"never",fallback:null,httpRequestWithCredentials:!1,loading:null,onError:function(){},renumerateIRIElements:!0,title:"",useRequestCache:!0,wrapper:"div"},I.propTypes={afterInjection:C.func,beforeInjection:C.func,desc:C.string,evalScripts:C.oneOf(["always","once","never"]),fallback:C.oneOfType([C.func,C.object,C.string]),httpRequestWithCredentials:C.bool,loading:C.oneOfType([C.func,C.object,C.string]),onError:C.func,renumerateIRIElements:C.bool,src:C.string.isRequired,title:C.string,useRequestCache:C.bool,wrapper:C.oneOf(["div","span","svg"])};var D=e=>{let{src:t,width:i="49px",height:n="49px",className:r="",color:a,fill:l,stroke:s,onClick:d,svgProps:u,wrapper:c="span"}=e,p=null!=a?a:"currentColor"===l||"currentColor"===s?"currentColor":l&&"none"!==l?l:"white";return(0,o.jsx)(I,{src:t,beforeInjection:e=>{(null==u?void 0:u.className)&&u.className.split(" ").forEach(t=>{e.classList.add(t)});let t=Object.entries({color:p,height:n,width:i,fill:l,stroke:s,...null==u?void 0:u.style}).filter(e=>{let[t,i]=e;return void 0!==i}).map(e=>{let[t,i]=e;return"".concat(t.replace(/([A-Z])/g,"-$1").toLowerCase(),":").concat(i,";")}).join(" ");e.setAttribute("style",t),l&&e.querySelectorAll("path, circle, rect, ellipse, polygon, polyline").forEach(e=>{"none"!==e.getAttribute("fill")&&e.setAttribute("fill",l)}),s&&e.querySelectorAll("[stroke], [stroke-linecap], [stroke-width]").forEach(e=>{e.setAttribute("stroke",String(s))})},fallback:()=>(0,o.jsx)("div",{}),loading:()=>(0,o.jsx)("div",{}),renumerateIRIElements:!1,wrapper:c,className:r,onClick:d,onError:e=>console.log("Load SVG Error",{error:e}),useRequestCache:!0},t)}},64544:function(e,t,i){"use strict";i.d(t,{M:function(){return s}});var o=i(85893),n=i(67294),r=i(5405);let a=r.ZP.div.withConfig({componentId:"sc-35bd24bd-0"})(['position:fixed;bottom:0;left:0;right:0;height:100%;box-shadow:0 -5px 10px rgba(0,0,0,0.2);will-change:transform;transition:transform 0.3s ease;z-index:999;display:flex;flex-direction:column;transform:translateY(100%);&.studio-swipe-sheet,&.model-selector-swipe-sheet{background:var(--glass-fill-strong);backdrop-filter:blur(40px) saturate(1.4);-webkit-backdrop-filter:blur(40px) saturate(1.4);[data-theme="light"] &{background:rgba(255,255,255,0.7);}@media (prefers-reduced-transparency:reduce){background:var(--studio-canvas);backdrop-filter:none;-webkit-backdrop-filter:none;}}']),l=r.ZP.div.withConfig({componentId:"sc-35bd24bd-1"})(["flex:1 1 auto;min-height:0;max-height:","px;overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;"],e=>e.$maxHeight||0),s="studio-swipe-sheet",d=(e,t)=>null!=t&&t>0?Math.max(0,window.innerHeight-t):window.innerHeight*(1-e);t.Z=e=>{let{children:t,isOpen:i,className:r,handleClose:s,defaultPosition:u,openHeightPercentage:c=.55,openHeightPx:p}
1=e,m=(0,n.useRef)(),[h,f]=(0,n.useState)(window.innerHeight),v=(0,n.useRef)(null),g=(0,n.useRef)(null),y=(0,n.useRef)(0),b=(0,n.useRef)(0),A=(0,n.useRef)(!1),x=0,w=e=>{let t=document.querySelector("html"),i=document.querySelector("body");t&&i&&(t.style.overflow=e?"hidden":"",i.style.overflow=e?"hidden":"")},_=n.useRef(),S=()=>{w(!0);let e=d(c,p);v.current&&(v.current.style.transition="transform 0.3s ease",v.current.style.transform="translateY(".concat(e,"px)")),f(e)};(0,n.useEffect)(()=>{if(!_.current){_.current=!0;return}if(u&&"top"===u&&i)S();else if(i){w(!0),m.current=!0;let e=d(c,p);v.current&&(v.current.style.transition="transform 0.3s ease",v.current.style.transform="translateY(".concat(e,"px)")),f(e)}else m.current&&(w(!1),m.current=!1),v.current&&(v.current.style.transition="transform 0.3s ease",v.current.style.transform="translateY(".concat(window.innerHeight,"px)")),f(window.innerHeight);return()=>{m.current&&w(!1)}},[i,c,p]),n.useEffect(()=>()=>{v&&v.current&&(v.current.style.transform="translateY(0px)")},[]);let C=n.useMemo(()=>window.innerHeight-h,[h]);return(0,o.jsxs)(a,{ref:v,id:"swipeableContainer",className:"".concat(r," rounded-tr-xl rounded-tl-xl overflow-hidden"),children:[(0,o.jsx)("div",{className:"h-6 w-full absolute z-50 select-none",onTouchStart:e=>{var t,i,o,n,r;e.stopPropagation(),A.current=!0,y.current=e.touches[0].clientY,b.current=(null===(i=v.current)||void 0===i?void 0:null===(t=i.dataset)||void 0===t?void 0:t.currentY)?Number(null===(n=v.current)||void 0===n?void 0:null===(o=n.dataset)||void 0===o?void 0:o.currentY):h,null==v||null===(r=v.current)||void 0===r||r.removeAttribute("data-current-y"),v.current&&(v.current.style.transition="none")},onTouchMove:e=>{if(!A.current)return;e.stopPropagation();let t=e.touches[0].clientY,i=t-y.current,o=Math.max(0,b.current+i);x=t,v.current&&(v.current.style.transform="translateY(".concat(o,"px)"))},onTouchEnd:e=>{let t;e.stopPropagation(),A.current=!1;let i=h-x;i>30?t=d(.8):i<-10&&i>-50?t=d(c,p):i<-10?(t=window.innerHeight,s()):t=d(c,p),v.current&&(v.current.style.transition="transform 0.3s ease",v.current.style.transform="translateY(".concat(t,"px)")),f(t)},children:(0,o.jsx)("div",{className:"w-[60px] h-[4px] bg-gray-300 rounded-full mx-auto absolute z-50 top-2",style:{left:"50%",top:"50%",transform:"translate(-50%, -50%)"}})}),(0,o.jsx)(l,{id:"swipeableScrollableContent",$maxHeight:C,ref:g,children:t})]})}},83910:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(16733),a=i.n(r);t.Z=n.memo(e=>{var t;let i=n.useRef(),r=n.useRef(),l=n.useRef(),s=n.useRef(),{activeColor:d}=e,u=e.accountSwitcher;n.useEffect(()=>{if(i&&i.current&&r&&(null==r?void 0:r.current)){if(i.current.checked=null==e?void 0:e.defaultValue,u){r.current.style.background="";return}(null==e?void 0:e.defaultValue)?r.current.style.background=d||"var(--secondary-color)":r.current.style.background=e.bgColor||null}},[null==e?void 0:e.defaultValue,u]);let c=e.accountSwitcher?a()["bith-switch-account"]:e.lightModeSwitcher?a()["bith-switch-small"]:a()["bith-switch"],p=e.accountSwitcher?a()["bith-switch-account__toggle"]:e.lightModeSwitcher?a()["bith-switch-small__toggle"]:a()["bith-switch__toggle"];return(0,o.jsxs)("div",{className:c,onClick:t=>{null==t||t.stopPropagation(),i&&i.current&&((null==e?void 0:e.notInstantChange)||(i.current.checked=!i.current.checked,!u&&r.current&&(i.current.checked?r.current.style.background=d||"var(--secondary-color)":r.current.style.background=e.bgColor||null)),e.onChange&&e.onChange(i.current.checked))},ref:r,style:e.style,children:[(0,o.jsx)("input",{ref:i,type:"checkbox",value:(null==e?void 0:e.name)||"onoffswitch",name:(null==e?void 0:e.name)||"onoffswitch",className:"hidden",id:"onOffSwitch",tabIndex:0,checked:(null==i?void 0:null===(t=i.current)||void 0===t?void 0:t.checked)||!1,readOnly:!0}),(0,o.jsx)("div",{className:p}),e.firstText&&e.secondText?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{ref:l,className:e.lightModeSwitcher?a()["bith-switch-small__first-text"]:a()["bith-switch__first-text"],children:e.firstText}),(0,o.jsx)("span",{ref:s,className:e.lightModeSwitcher?a()["bith-switch-small__second-text"]:a()["bith-switch__second-text"],children:e.secondText})]}):null]})})},11809:function(e,t,i){"use strict";var o=i(85893);
1i(67294);var n=i(98388);t.Z=e=>{let{isActive:t,name:i,className:r,children:a,activeClassName:l,inactiveClassName:s,activeLineClassName:d}=e,u=(0,n.m6)("relative text-xs text-center flex-1 p-3 px-4 py-3 cursor-pointer font-medium",r,t?"border-b border-shade-2 text-ph-color ".concat(l):s||"text-white-50"),c=(0,n.m6)("absolute bottom-0 left-0 right-0 h-0.5 bg-secondary transition-opacity",t?"".concat(d," opacity-100"):"opacity-0");return(0,o.jsxs)("div",{className:u,style:e.style,"data-name":i,children:[a,(0,o.jsx)("div",{className:c}),(0,o.jsx)("div",{className:"absolute top-0 right-0 bottom-0 left-0","data-name":i,onClick:e.onClick})]})}},80533:function(e,t,i){"use strict";var o=i(85893),n=i(67294);t.Z=e=>{let[t,i]=n.useState(e.defaultActive),r=t=>{let o=t.target.dataset.name;o&&(i(o),e.onChangeTab&&e.onChangeTab({value:o}))};return n.useEffect(()=>{e.defaultActive&&t!==e.defaultActive&&i(e.defaultActive)},[e.defaultActive,t]),(0,o.jsx)("div",{className:"flex ".concat(e.className),style:e.style,children:n.Children.map(e.children,e=>n.isValidElement(e)?n.cloneElement(e,{...e.props,onClick:r,isActive:t===e.props.name}):e)})}},242:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(5405),a=i(10847);let l=r.ZP.label.withConfig({componentId:"sc-f1db1828-0"})(["  display:flex;flex-direction:row;align-items:center;padding:12px 16px;gap:10px;background-color:var(--shade-2);border-radius:8px;width:100%;transition:all 200ms;&:focus-within{box-shadow:0px 0px 1px 1px ",";}"," & input{flex:1;font-weight:500;font-size:16px;line-height:24px;-webkit-text-size-adjust:100%;color:rgba(255,255,255,0.72);background:transparent;@media (max-width:620px){font-size:12px;line-height:18px;}
1@media ( min-width:200px ) and (max-width:320px){font-size:8px;line-height:18px;}&:focus{outline:unset;}&:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px ",' inset !important;-webkit-text-fill-color:rgba(255,255,255,0.72);!important;}}[data-theme="light"] &{& input{color:#4E4E4E;&:-webkit-autofill{-webkit-box-shadow:0 0 0 1000px '," inset !important;-webkit-text-fill-color:rgba(0,0,0,0.72);!important;}}background:#F0F0F0;}"],e=>e.error?a.theme.extend.colors.errorRed:"var(--secondary-color)",e=>e.error?"\nbox-shadow: 0px 0px 1px 1px ".concat(a.theme.extend.colors.errorRed,";\n\nanimation: ","shakeX"," 750ms linear;\n"):"",a.theme.extend.colors.accent,a.theme.extend.colors.accent),s=n.forwardRef((e,t)=>{let i=n.useRef();return(0,o.jsxs)(l,{ref:i,className:"".concat(e.disabled?"disabled-input":""," ").concat(e.inputWrapperClassName||""),error:null==e?void 0:e.error,style:null==e?void 0:e.labelStyle,children:[(0,o.jsx)("input",{ref:t,...e}),(null==e?void 0:e.icon)||(null==e?void 0:e.extra)&&(0,o.jsxs)("div",{className:"flex items-center",children:[null==e?void 0:e.icon,null==e?void 0:e.extra]})]})});t.Z=s},88349:function(e,t,i){"use strict";var o=i(85893);i(67294);var n=i(98388),r=i(54822);t.Z=e=>{let{children:t,className:i}=e;return(0,o.jsx)("div",{className:(0,n.m6)(r.LI,"px-3 py-2 text-start text-[12px] font-normal leading-4 text-custom-white whitespace-nowrap",i),style:r.ev,children:t})}},73859:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(73935),a=i(5405);let l=a.ZP.div.withConfig({componentId:"sc-12098c8f-0"})(["display:inline-block;position:relative;cursor:pointer;"]),s=a.ZP.div.withConfig({componentId:"sc-12098c8f-1"})(["visibility:",";color:#fff;text-align:center;position:fixed;z-index:9999;opacity:",";transition:opacity 0.3s;"],e=>e.$visible?"visible":"hidden",e=>e.$visible?1:0);t.Z=e=>{let{children:t,message:i,position:a="top-center",disabled:d=!1,extraY:u=0,className:c=""}
1=e,[p,m]=(0,n.useState)(!1),[h,f]=(0,n.useState)(!1),[v,g]=(0,n.useState)({top:0,left:0,transform:"translate(-50%, -100%)"}),y=(0,n.useRef)(null),b=(0,n.useRef)(null),A=(0,n.useRef)(a),x=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(d){f(!1);return}x.current&&y.current&&w({currentTarget:y.current})},[d]),(0,n.useEffect)(()=>{if(d)return;let e=e=>{var t,i;let o=null==y?void 0:null===(t=y.current)||void 0===t?void 0:t.contains(e.target),n=null==b?void 0:null===(i=b.current)||void 0===i?void 0:i.contains(e.target);o||n||("function"==typeof e.preventDefault&&e.preventDefault(),"function"==typeof e.stopPropagation&&e.stopPropagation(),f(!1))};return h?(document.addEventListener("touchstart",e,{capture:!0,passive:!1}),document.addEventListener("mousedown",e,!0)):(document.removeEventListener("touchstart",e,!0),document.removeEventListener("mousedown",e,!0)),()=>{document.removeEventListener("touchstart",e,!0),document.removeEventListener("mousedown",e,!0)}},[h,d]),(0,n.useEffect)(()=>{let e=y.current;if(!e)return;let t=t=>{d||(t.preventDefault(),t.stopPropagation(),h?f(!1):w({currentTarget:e}))};return e.addEventListener("touchstart",t,{passive:!1}),()=>{e.removeEventListener("touchstart",t)}},[d,h]);let w=e=>{if(!e.currentTarget||h)return;let t=e.currentTarget.getBoundingClientRect();g({top:-1e3,left:-1e3,transform:"none"}),f(!0),requestAnimationFrame(()=>{let e=b.current;if(!e)return;let i=window.innerWidth,o=window.innerHeight,n=e.getBoundingClientRect(),r=e=>{let r=0,a=0;switch(e){case"top-center":default:r=t.top-n.height-8+u,a=t.left+(t.width-n.width)/2;break;case"top-right":r=t.top-n.height-8+u,a=t.right-n.width;break;case"top-left":r=t.top-n.height-8+u,a=t.left;break;case"bottom-center":r=t.bottom+8+u,a=t.left+(t.width-n.width)/2;break;case"bottom-right":r=t.bottom+8+u,a=t.right-n.width;break;case"bottom-left":r=t.bottom+8+u,a=t.left;break;case"right-center":r=t.top+(t.height-n.height)/2,a=t.right+8;break;case"left-center":r=t.top+(t.height-n.height)/2,a=t.left-n.width-8}return{top:r=Math.min(Math.max(r,8),o-n.height-8),left:a=Math.min(Math.max(a,8),i-n.width-8)}},l=a,{top:s,left:d}=r(l),c=s<=8,p=s+n.height>=o-8,m=d<=8,h=d+n.width>=i-8;l.startsWith("top")&&c?(l=l.replace("top","bottom"),{top:s,left:d}=r(l)):l.startsWith("bottom")&&p?(l=l.replace("bottom","top"),{top:s,left:d}=r(l)):l.startsWith("left")&&m?(l="right-center",{top:s,left:d}=r(l)):l.startsWith("right")&&h&&(l="left-center",{top:s,left:d}=r(l)),A.current=l,g({top:s,left:d,transform:"none"})})};(0,n.useEffect)(()=>{if(!h)return;let e=()=>{let e=y.current,t=b.current;if(!e||!t)return;let i=window.innerWidth,o=window.innerHeight,n=e.getBoundingClientRect(),r=t.getBoundingClientRect(),l=A.current||a,s=0,d=0;switch(l){case"top-center":default:s=n.top-r.height-8+u,d=n.left+(n.width-r.width)/2;break;case"top-right":s=n.top-r.height-8+u,d=n.right-r.width;break;case"top-left":s=n.top-r.height-8+u,d=n.left;break;case"bottom-center":s=n.bottom+8+u,d=n.left+(n.width-r.width)/2;break;case"bottom-right":s=n.bottom+8+u,d=n.right-r.width;break;case"bottom-left":s=n.bottom+8+u,d=n.left;break;case"right-center":s=n.top+(n.height-r.height)/2,d=n.right+8;break;case"left-center":s=n.top+(n.height-r.height)/2,d=n.left-r.width-8}g({top:s=Math.min(Math.max(s,8),o-r.height-8),left:d=Math.min(Math.max(d,8),i-r.width-8),transform:"none"})};return window.addEventListener("scroll",e,!0),window.addEventListener("resize",e),()=>{window.removeEventListener("scroll",e,!0),window.removeEventListener("resize",e)}},[h,a,u]);let _=(0,o.jsx)(s,{$visible:h,style:{top:"".concat(null==v?void 0:v.top,"px"),left:"".concat(null==v?void 0:v.left,"px"),transform:(null==v?void 0:v.transform)?null==v?void 0:v.transform:"translate(-50%, -100%)"},ref:b,children:i});return((0,n.useEffect)(()=>{m(!0)},[]),p)?(0,o.jsxs)(l,{ref:y,onMouseEnter:e=>{x.current=!0,d||w(e)},onMouseLeave:()=>{x.current=!1,d||f(!1)},className:c,children:[t,r.createPortal(_,document.body)]}):(0,o.jsx)("div",{className:c,children:t})}},38526:function(e,t,i){"use strict";var o=i(85893);i(67294);var n=i(83253),r=i.n(n);t.Z=e=>{let{close:t,children:i,isOpen:n,style:a,className:l,modalProps:s,closable:d=!0}=e;return(0,o.jsx)(r(),{centered:!0,shouldCloseOnOverlayClick:d,shouldCloseOnEsc:d,onRequestClose:()=>{d&&t(!1)},style:a,isOpen:n,className:"".concat(l||""),ariaHideApp:!1,...s,children:i})}},41614:function(e,t,i){"use strict";i.d(t,{M:function(){return o}}),i(85893),i(67294);let o=i(5405).ZP.span.attrs(e=>({className:"text-secondary transition-all duration-300 ease-in-out ".concat(null==e?void 0:e.className)})).withConfig({componentId:"sc-794e5fc5-0"})([""])},54169:function(e,t,i){"use strict";
1var o=i(85893),n=i(45608),r=i(67294),a=i(5405),l=i(46321);let s=(0,a.iv)(["background:linear-gradient( 0deg,var(--vss-clear) 0%,var(--vss-mid) 74.5%,var(--vss-solid) 100% );"]),d=a.ZP.div.withConfig({componentId:"sc-2db750a4-0"})(["position:relative;isolation:isolate;--vss-solid:",";--vss-mid:",";--vss-clear:",";"," ",' [data-theme="light"] &{--vss-solid:',";--vss-mid:",";--vss-clear:",";}"],e=>"studio"===e.$fadeSurface?"var(--studio-canvas)":"var(--primary-color)",e=>"studio"===e.$fadeSurface?"color-mix(in srgb, var(--studio-canvas) 74.5%, transparent)":"rgba(16, 16, 16, 0.745)",e=>"studio"===e.$fadeSurface?"transparent":"rgba(16, 16, 16, 0)",e=>e.$showStart?(0,a.iv)(['&::before{z-index:11;content:"";position:absolute;top:0;left:0;right:0;width:100%;height:72px;pointer-events:none;',"}"],s):"",e=>e.$showEnd?(0,a.iv)(['&::after{z-index:11;content:"";position:absolute;bottom:0;left:0;right:0;width:100%;height:72px;pointer-events:none;background:linear-gradient( 180deg,var(--vss-clear) 0%,var(--vss-mid) 74.5%,var(--vss-solid) 100% );}']):"",e=>"studio"===e.$fadeSurface?"var(--studio-canvas)":"#ffffff",e=>"studio"===e.$fadeSurface?"color-mix(in srgb, var(--studio-canvas) 74.5%, transparent)":"rgba(255, 255, 255, 0.745)",e=>"studio"===e.$fadeSurface?"transparent":"rgba(255, 255, 255, 0)"),u=a.ZP.div.withConfig({componentId:"sc-2db750a4-1"})(["display:flex;overflow-x:hidden;overflow-y:auto;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;width:0;height:0;}"]);a.ZP.div.withConfig({componentId:"sc-2db750a4-2"})(["padding:20px 10px;"]);let c=a.ZP.button.withConfig({componentId:"sc-2db750a4-3"})(["position:absolute;z-index:20;bottom:16px;left:50%;display:flex;width:32px;height:32px;transform:translateX(-50%);align-items:center;justify-content:center;padding:0;border:1px solid rgba(146,146,146,0.25);border-radius:999px;background:#fff;box-shadow:0 2px 8px rgba(12,12,12,0.16);pointer-events:auto;cursor:pointer;"]);t.Z=e=>{let[t,i]=r.useState(!1),[a,s]=r.useState(!1),p=r.useRef(),m=r.useRef(e.onScroll);return m.current=e.onScroll,r.useEffect(()=>{let e=e=>{m.current&&e&&m.current(e);let{scrollHeight:t=0,scrollTop:o=0,offsetHeight:r=0}=p.current||{},a=Number((0,n.Md)(Math.abs(o),0));i(a>0),s(a+r+1<t)};e();let t=p.current;if(!t)return;t.addEventListener("scroll",e);let o="undefined"!=typeof ResizeObserver?new ResizeObserver(()=>e()):null,r=()=>{null==o||o.observe(t),t.firstElementChild&&(null==o||o.observe(t.firstElementChild)),t.querySelectorAll("iframe").forEach(e=>{null==o||o.observe(e)})};r();let a="undefined"!=typeof MutationObserver?new MutationObserver(()=>{r(),e()}):null;return null==a||a.observe(t,{childList:!0,subtree:!0}),()=>{t.removeEventListener("scroll",e),null==o||o.disconnect(),null==a||a.disconnect()}},[]),(0,o.jsxs)(d,{$showEnd:a,$showStart:t,$fadeSurface:e.fadeSurface,className:e.className,children:[(0,o.jsx)(u,{ref:p,className:e.containerClassName,id:e.id,children:null==e?void 0:e.children}),e.enableScrollToBottom&&a?(0,o.jsx)(c,{type:"button",onClick:()=>{let e=p.current;e&&e.scrollTo({top:e.scrollHeight,behavior:"smooth"})},"aria-label":e.scrollToBottomLabel||"Scroll to bottom",children:(0,o.jsx)(l.Z,{src:"/icons/arrow-down.svg",width:"16px",height:"16px",color:"#0c0c0c",fill:"#0c0c0c"})}):null]})}},20333:function(e,t,i){"use strict";var o=i(85893);let n=(0,i(67294).forwardRef)((e,t)=>{let{src:i,width:n="640px",height:r="360px",controls:a=!1,autoPlay:l=!1,loop:s=!1,muted:d=!1,className:u,style:c,type:p,...m}=e;return(0,o.jsxs)("video",{ref:t,width:n,height:r,controls:a,autoPlay:l,loop:s,muted:d,className:u,style:c,playsInline:!0,disablePictureInPicture:!0,...m,children:[(0,o.jsx)("source",{src:i,type:p||"video/mp4"}),"Your browser does not support the video tag."]})});t.Z=n},94467:function(e,t,i){"use strict";var o=i(85893),n=i(67294);t.Z=n.memo(e=>{let{children:t,height:i,rootMargin:r="200px",minHeight:a,className:l="",fillContainer:s=!1,root:d}=e,u=void 0!==d,[c,p]=n.useState(!u),m=n.useRef(null),h=n.useRef(null),f=n.useRef(!u),v=n.useRef(null),g=n.useRef(null);n.useEffect(()=>{if(!c)return;let e=m.current;if(!e)return;let t=requestAnimationFrame(()=>{let t=e.getBoundingClientRect();t.height>0&&(v.current=t.height),t.width>0&&(g.current=t.width)});return()=>cancelAnimationFrame(t)},[c]),n.useEffect(()=>{let e=m.current;if(!e)return;if(u&&!d){p(!1),f.current=!1;return}u||(p(!0),f.current=!0);let t=()=>{let t=e.getBoundingClientRect();t.height>0&&(v.current=t.height),t.width>0&&(g.current=t.width)},i=setTimeout(t,100);
1return h.current=new IntersectionObserver(i=>{i.forEach(i=>{let o=i.isIntersecting;if(!o&&f.current&&e){let t=e.getBoundingClientRect();t.height>0&&(v.current=t.height),t.width>0&&(g.current=t.width)}else o&&!f.current&&setTimeout(t,50);o!==f.current&&(f.current=o,p(o))})},{root:u?d:null,rootMargin:r,threshold:0}),h.current.observe(e),()=>{clearTimeout(i),h.current&&(h.current.disconnect(),h.current=null)}},[d,r,u]);let y=v.current||i||a||200,b=g.current;return(0,o.jsx)("div",{ref:m,className:l,style:{...c?s?{display:"block",width:"100%",height:"100%",minHeight:"100%"}:{display:"block",width:"100%",height:"auto",minHeight:"auto"}:{minHeight:y,height:y,width:"100%",...null!=b&&b>0&&!s&&{minWidth:b},aspectRatio:i?"1 / 1":void 0}},"aria-hidden":!c,children:c?(0,o.jsx)("div",{style:{width:"100%",height:"100%"},children:t}):(0,o.jsx)("div",{style:{height:y,width:"100%",minHeight:y,...null!=b&&b>0&&!s&&{minWidth:b}}})})})},52418:function(e,t,i){"use strict";i.d(t,{ZP:function(){return z}});var o=i(85893),n=i(67294),r=i(90549),a=i(38526),l=i(65183),s=i(73246),d=i(10751),u=i(16135),c=i(87251),p=i(82935),m=i(91167),h=i(34567),f=i(64242),v=i(5405),g=i(11163),y=i(37803);let b=(0,v.ZP)(m.Z).withConfig({componentId:"sc-58458539-0"})(["background:transparent !important;border:1px solid rgba(146,146,146,0.25) !important;border-radius:12px !important;min-height:44px;color:var(--custom-white) !important;padding:12px 16px !important;"]);var A=e=>{let{onSwitchToLogin:t,onSwitchToSignup:i,onAuthSuccess:r}=e,a=(0,c.Z)(),l=(0,g.useRouter)(),{user:s,isFetchingUserData:d}=n.useContext(f.Vo);return(0,n.useEffect)(()=>{(null==s?void 0:s.id)&&!d&&r&&r()},[null==s?void 0:s.id,d,r]),(0,o.jsx)(h.ZP,{animation:"slideUp",duration:400,className:"w-full",children:(0,o.jsxs)("div",{className:"mx-auto flex w-full max-w-[400px] flex-col gap-6 items-center justify-center",children:[(0,o.jsx)("h3",{className:"w-full text-center text-xl font-bold leading-8 text-custom-white",children:a.login.socialTitle}),(0,o.jsxs)("div",{className:"flex w-full flex-col gap-4",children:[(0,o.jsx)(p.Z,{variant:"figma"}),(0,o.jsx)(b,{type:"outline",size:"social",className:"w-full",id:"continue-with-email",btnType:"button",onClick:()=>{(0,y.u)("continue_with_email",{cta_type:"secondary",button_text:a.login.actions.continueWithEmail,page_name:l.pathname,position:"auth_modal"}),null==t||t()},children:(0,o.jsx)("p",{className:"text-sm font-medium",children:a.login.actions.continueWithEmail})})]}),(0,o.jsxs)("a",{href:"#",onClick:e=>{e.preventDefault(),(0,y.u)("sign_up_link",{cta_type:"secondary",button_text:a.global.shortSignUp,page_name:l.pathname,position:"auth_modal"}),null==i||i()},className:"inline-block w-full text-center text-sm text-custom-white hover:underline",children:[a.login.actions.signUp," ",(0,o.jsx)("span",{className:"text-secondary",children:a.global.shortSignUp})]}),(0,o.jsx)("p",{className:"w-full text-center text-[10px] font-medium text-t-shade-2",children:a.authFlowLayout.termsNotice})]})})},x=i(46321);let w=v.ZP.div.withConfig({componentId:"sc-f8a6919e-0"})(["max-width:600px;width:100%;margin:0 auto;padding:48px;background-color:var(--shade);border-radius:24px;box-shadow:0 0 10px 0 rgba(0,0,0,0.1);display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;@media (max-width:768px){padding:24px;max-width:90%;width:100%;}"]),_=v.ZP.button.withConfig({componentId:"sc-f8a6919e-1"})(["position:absolute;top:16px;right:16px;background:transparent;border:none;cursor:pointer;"]);var S=e=>{var t;let{isOpen:i,onClose:r,onAuthSuccess:c,initialView:p="social-auth",closable:m=!0}=e,[h,f]=(0,n.useState)(p),[v,b]=(0,n.useState)(null),S=(0,g.useRouter)();(0,n.useEffect)(()=>{i&&(f(p),b(null))},[i,p]);let C=()=>{c&&c(),r()},k=(null==S?void 0:null===(t=S.query)||void 0===t?void 0:t.redirectTo)||void 0;(()=>{let e=new URLSearchParams;return k&&e.set("redirectTo",k),["utm_source","utm_medium","utm_campaign","utm_term","utm_content"].forEach(t=>{var i;let o=null==S?void 0:null===(i=S.query)||void 0===i?void 0:i[t];o&&e.set(t,o)}),e.toString()?"?".concat(e.toString()):""})();let T=()=>{(0,y.u)("close_auth_modal",{cta_type:"secondary",page_name:S.pathname,position:"auth_modal"}),r()};return(0,o.jsx)(a.Z,{isOpen:i,close:T,closable:m,modalProps:{overlayClassName:"overlay",portalClassName:"auth-modal-portal"},style:{portal:{zIndex:99999},content:{background:"transparent",position:"relative",border:"none",padding:0,maxWidth:"100%",width:"100%",inset:0,margin:"auto"},overlay:{background:"rgba(0, 0, 0, 0.7)",zIndex:99999}},children:(0,o.jsxs)(w,{"data-auth-flow":"",onSubmit:e=>e.stopPropagation(),children:[m&&(0,o.jsx)(_,{type:"button",onClick:T,children:(0,o.jsx)(x.Z,{src:"/icons/close-circle.svg",width:"24px",height:"24px",stroke:"var(--ph-color)"})}
1),"social-auth"===h&&(0,o.jsx)(A,{onSwitchToLogin:()=>f("login"),onSwitchToSignup:()=>f("signup"),onAuthSuccess:C,redirectTo:k}),"login"===h&&(0,o.jsx)(l.Z,{onLoginSuccess:C,onSwitchToSignup:()=>f("signup"),onSwitchToResetPassword:()=>f("reset-password"),redirectTo:k,showSocialAuth:!1}),"signup"===h&&(0,o.jsx)(s.Z,{onSignupSuccess:e=>{b(e),f("email-verification")},onSwitchToLogin:()=>f("login"),redirectTo:k,showSocialAuth:!1}),"reset-password"===h&&(0,o.jsx)(d.Z,{onSwitchToLogin:()=>f("login"),redirectTo:k}),"email-verification"===h&&v&&(0,o.jsx)(u.Z,{email:v.email,token:v.token,onVerificationSuccess:()=>{c&&c(),r()},onSwitchToSignup:()=>{b(null),f("signup")},redirectTo:k})]})})};let C="pending_auth_action",k=(e,t,i,o)=>{let n={actionType:e,payload:t,formState:i||{},timestamp:Date.now(),route:o||window.location.pathname};try{sessionStorage.setItem(C,JSON.stringify(n))}catch(e){}},T=()=>{try{let e=sessionStorage.getItem(C);if(!e)return null;let t=JSON.parse(e);if(Date.now()-t.timestamp>18e5)return E(),null;return t}catch(e){return null}},E=()=>{try{sessionStorage.removeItem(C)}catch(e){}};var P=i(90238),I=i(71494);let D=(e,t)=>{P.ZP.track(I.dV.TOOL_OPENED,{tool_name:t,try_mode:!0,action:"gated_click"})},O=e=>{},N=e=>{P.ZP.track(I.n5.SIGN_IN,{login_method:"try_mode",tool_name:e})},j=(e,t)=>{};var M=i(12696);class R extends Error{constructor(){super("Auth modal was closed without logging in"),this.name="AuthGateCancelledError"}}var z=e=>{let{isLoggedIn:t}
1=(0,r.Z)(),[a,l]=(0,n.useState)(!1),[s,d]=(0,n.useState)(null),u=n.useRef(new Map),c=n.useRef(!1),p=n.useRef(!1),m=(0,g.useRouter)(),h=(0,n.useCallback)(async()=>{p.current=!0,l(!1);let t=(null==e?void 0:e.toolName)||"unknown",i=(null==e?void 0:e.actionType)||"generate";N(t),c.current&&T()&&s&&"function"==typeof s&&(E(),await s(),d(null),c.current=!1,j(i,t)),(null==e?void 0:e.onAuthSuccess)&&e.onAuthSuccess(),p.current=!1},[s,e]),f=(0,n.useCallback)(async(o,n)=>{if(t){let t=(null==e?void 0:e.toolName)||"unknown";try{await (0,M.nf)(t);let{getPendingUploadsByTool:e}=await Promise.resolve().then(i.bind(i,88420));(await e(t)).filter(e=>"completed"!==e.status&&"failed"!==e.status)}catch(e){}o&&await o()}else{let t=m.asPath,i=(null==e?void 0:e.actionType)||"generate",r=(null==e?void 0:e.toolName)||"unknown";D(i,r),O("try_mode"),k("user_action",{},n,t);let a="".concat(r,"-").concat(Date.now());return new Promise((e,t)=>{u.current.set(a,{resolve:e,reject:t}),d(()=>async()=>{await new Promise(e=>setTimeout(e,200));try{await (0,M.nf)(r)}catch(e){}o&&await o();let e=u.current.get(a);e&&(u.current.delete(a),e.resolve())}),c.current=!0,l(!0)})}},[t,m.asPath,e]),v=(0,n.useCallback)(()=>{l(!0)},[]),y=(0,n.useCallback)(()=>{if((null==e?void 0:e.closable)!==!1){if(l(!1),p.current){p.current=!1;return}if(!t){var i;let t=new R;u.current.forEach(e=>{let{reject:i}=e;i(t)}),u.current.clear(),E(),d(null),c.current=!1,null==e||null===(i=e.onAuthCancel)||void 0===i||i.call(e)}}},[t,null==e?void 0:e.closable,null==e?void 0:e.onAuthCancel]);return{requireAuth:f,isModalOpen:a,openAuthModal:v,closeAuthModal:y,AuthModalComponent:(0,o.jsx)(S,{isOpen:a,onClose:y,onAuthSuccess:h,closable:(null==e?void 0:e.closable)!==!1})}}},2416:function(e,t,i){"use strict";i.d(t,{W:function(){return n}});var o=i(67294);let n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{autoplayTimeout:i=2e3,threshold:n=.5,pauseOnExit:r=!0,enableAutoplay:a=!0,rootMargin:l="0px",root:s=null}=t,[d,u]=(0,o.useState)(!1),[c,p]=(0,o.useState)(!1),m=(0,o.useRef)(null),h=(0,o.useRef)(null),f=(0,o.useCallback)(()=>{m.current&&(clearTimeout(m.current),m.current=null,p(!1))},[]),v=(0,o.useCallback)(()=>{f()},[f]),g=(0,o.useCallback)(async()=>{if(e.current)try{e.current.muted=!0;let t=e.current.play();void 0!==t&&await t}catch(e){}},[e]),y=(0,o.useCallback)(()=>{if(e.current)try{e.current.pause()}catch(e){}},[e]),b=(0,o.useCallback)(()=>{a&&e.current&&(f(),p(!0),m.current=setTimeout(async()=>{p(!1),m.current=null,d&&e.current&&!e.current.ended&&await g()},i))},[a,e,i,d,f,g]),A=(0,o.useCallback)(t=>{t.forEach(t=>{let i=t.isIntersecting;u(i),i?b():(f(),r&&e.current&&!e.current.paused&&y())})},[b,f,r,y,e]);return(0,o.useEffect)(()=>{let t=e.current;if(t)return h.current=new IntersectionObserver(A,{root:s,threshold:n,rootMargin:l}),h.current.observe(t),()=>{h.current&&h.current.disconnect(),f()}},[e,A,n,l,s,f]),(0,o.useEffect)(()=>()=>{f(),h.current&&h.current.disconnect()},[f]),{isInViewport:d,isAutoplayPending:c,play:g,pause:y,cancelAutoplay:v}}},14798:function(e,t,i){"use strict";i.d(t,{R:function(){return n},Z:function(){return r}});let o={ugc_wizard_order:{enabled:!0,controlOrder:["category","product","character","language","location","script","submit"],variantOrder:["category","character","language","location","product","script","submit"]}};function n(e,t){let i=o[e];return!(null==i?void 0:i.enabled)||null==t||Number.isNaN(Number(t))?{isInTest:!1}:Number(t)%2==0?{isInTest:!0,variant:"character_first",isVariant:!0}:{isInTest:!0,variant:"control",isVariant:!1}}function r(e){let t=o.ugc_wizard_order;return e.isInTest&&e.isVariant?t.variantOrder:t.controlOrder}},21124:function(e,t,i){"use strict";i.d(t,{z:function(){return a}});var o=i(67294),n=i(90549),r=i(14798);function a(e){let{userState:t}=(0,n.Z)(),i=null==t?void 0:t.id,a=null==i||""===i||Number.isNaN(Number(i))?null:Number(i);return(0,o.useMemo)(()=>{let t=(0,r.R)(e,a);return{...t,order:(0,r.Z)(t),userId:a}},[e,a])}},86109:function(e,t,i){"use strict";var o;i.d(t,{W:function(){return o}}),(o||(o={})).DATA_CHANGED="DATA_CHANGED",t.Z={changeSavingProcess:e=>{let{isVisible:t,isSaving:i}=e;return(e,o)=>{e({type:"DATA_CHANGED",payload:{isVisible:t,isSaving:i}})}}}},90446:function(e,t,i){"use strict";i.d(t,{ox:function(){return n}});var o,n,r=i(21012),a=i(20931),l=i(64430),s=i(13311),d=i.n(s),u=i(35161),c=i.n(u),p=i(63105),m=i.n(p),h=i(27361),f=i.n(h),v=i(7739),g=i.n(v),y=i(45220),b=i.n(y),A=i(75472),x=i.n(A),w=i(89734),_=i.n(w),S=i(51348),C=i(45608),k=i(38715),T=i(41894),E=i(46485),P=i(38105),I=i(81387),D=i(50632),O=i(72746),N=i(49355),j=i(915),M=i(63394),R=i(24556),z=i(9827);let L=null;(o=n||(n={})).UPDATE_VIDEO_INPUT_REF="UPDATE_VIDEO_INPUT_REF",o.UPDATE_VIDEO_REF="UPDATE_VIDEO_REF",o.UPDATE_VIDEO_INSTANCE="UPDATE_VIDEO_INSTANCE",o.UPDATE_LAYERR_SOURCE_INFO="UPDATE_LAYERR_SOURCE_INFO",o.UPDATE_LAYERR_DESTINATION_INFO="UPDATE_LAYERR_DESTINATION_INFO",o.UPDATE_LAYERS_INFO="UPDATE_LAYERS_INFO",o.UPDATE_OUTPUT_SETTINGS="UPDATE_OUTPUT_SETTINGS",o.UPDATE_EDITOR_SETTINGS="UPDATE_EDITOR_SETTINGS",o.UPDATE_DURATION="UPDATE_DURATION",o.ADD_LAYER="ADD_LAYER",o.ADD_LAYER_AND_MAKE_ACTIVE="ADD_LAYER_AND_MAKE_ACTIVE",o.UPDATE_GENERAL_DATA="UPDATE_GENERAL_DATA",o.UPDATE_VIDEO_STATE="UPDATE_VIDEO_STATE",o.ACTIVE_LAYER_CHANGED="ACTIVE_LAYER_CHANGED",o.EDITOR_STATE_CHANGED="EDITOR_STATE_CHANGED",o.UPDATE_LAYERS_BULK="UPDATE_LAYERS_BULK",o.CLEAR_STATE="CLEAR_STATE",o.STORE_VIDEO_SUBTITLES="STORE_VIDEO_SUBTITLES",o.REMOVE_VIDEO_SUBTITLES="REMOVE_VIDEO_SUBTITLES",o.UPDATE_PREVIEW_WIDTH_AND_HEIGHT="UPDATE_PREVIEW_WIDTH_AND_HEIGHT";let V=(e,t)=>{var i,o,n,r,a,s,u,c;let p=d()(t,{id:null==e?void 0:e.font_id}),m=d()(l.h,{value:null==e?void 0:null===(i=e.intro_animation)||void 0===i?void 0:i.name}),h=d()(z.Z.subtitlesEffects,{value:null==e?void 0:null===(o=e.text_effect)||void 0===o?void 0:o.value});return{style:{color:null==e?void 0:e.font_color,textAlign:null==e?void 0:e.horizontal_align,WebkitTextColorWidth:"".concat((null==e?void 0:e.outline_width)*3,"px"),WebkitTextStrokeColor:null==e?void 0:e.outline_color,fontSize:null==e?void 0:e.font_size,fontFamily:{value:(null==p?void 0:p.id)||(null==e?void 0:e.font_id),label:null==p?void 0:p.name},backgroundColor:null==e?void 0:null===(n=e.background)||void 0===n?void 0:n.color,borderRadius:null==e?void 0:null===(r=e.background)||void 0===r?void 0:r.border_radius,padding:null==e?void 0:null===(a=e.background)||void 0===a?void 0:a.padding,opacity:null==e?void 0:null===(s=e.background)||void 0===s?void 0:s.opacity},outline:{isOn:!!(null==e?void 0:e.outline_width),width:(null==e?void 0:e.outline_width)||
16,color:(null==e?void 0:e.outline_color)||"#6D5DD3"},effect:m,textEffect:(null==h?void 0:h.value)?{...h,textColor:null==e?void 0:null===(u=e.text_effect)||void 0===u?void 0:u.text_color,highlightColor:null==e?void 0:null===(c=e.text_effect)||void 0===c?void 0:c.highlight_color}:null}},F=e=>{var t;let{layer:i,sharedFonts:o,preview:n,aspectRatio:r,isFocused:l,key:s}=e;return{level:(null==i?void 0:i.level)||s+1,layerData:{...a.uw,text:(null==i?void 0:i.innerHtml)||(null==i?void 0:i.value),innerText:null==i?void 0:null===(t=i.value)||void 0===t?void 0:t.replaceAll("<br/>","\n"),textContent:null==i?void 0:i.value},layerType:(null==i?void 0:i.is_subtitle)?a.QP.SUBTITLE_TEXT:a.QP.TEXT,attributes:V(i,o),position:{x:"".concat((null==i?void 0:i.x)*100/(l?null==r?void 0:r.width:null==n?void 0:n.preview_width),"%"),y:"".concat((null==i?void 0:i.y)*100/(l?null==r?void 0:r.height:null==n?void 0:n.preview_height),"%"),width:"".concat((null==i?void 0:i.box_width)*100/(l?null==r?void 0:r.width:null==n?void 0:n.preview_width),"%"),height:"".concat((null==i?void 0:i.box_height)*100/(l?null==r?void 0:r.height:null==n?void 0:n.preview_height),"%")},duration:{from:null==i?void 0:i.from,to:null==i?void 0:i.to},id:(null==i?void 0:i.id)||"layer-".concat(s+1),order:s+1,...(null==i?void 0:i.is_subtitle)?{relatedLayerId:null==i?void 0:i.relatedLayerId,subtitle:null==i?void 0:i.subtitle,duration:null==i?void 0:i.duration}:{}}},U=e=>new Promise(t=>{(null==e?void 0:e.length)?r.j.videos.list({ids:c()(e,e=>null==e?void 0:e.video_id).join(","),per_page:null==e?void 0:e.length},e=>{let{data:i}=e;t(i)}):t([])}),G=e=>new Promise(t=>{(null==e?void 0:e.length)?r.j.audio.sounds.getSounds({ids:c()(e,e=>null==e?void 0:e.audio_sound_id).join(","),per_page:null==e?void 0:e.length},e=>{let{data:i}=e;t(c()(i,e=>({...e,meta:{duration:Number(null==e?void 0:e.length)}})))}):t([])}),B=async e=>{let{layers:t,mainVideos:i,sharedFonts:o,preview:n,aspectRatio:r,fileData:l,isFocused:s}=e,u=[],p=await m()(t,e=>e.type===a.QP.AUDIO_SOUND);await m()(t,e=>e.type===a.QP.IMAGE),await m()(t,e=>e.type===a.QP.GIFS);let h=await m()(t,e=>e.type===a.QP.VIDEO),f=await G(p),v=await U(h);return c()([...i,...t],(e,t)=>{var i,c,p,m,h,g,y,b,A,x;if((null==e?void 0:e.layerType)===a.QP.VIDEO)u.push({withEdits:s,layerData:l,layerType:a.QP.VIDEO,id:(null==e?void 0:e.id)||"layer-".concat(t),level:1,order:0,attributes:{volume:Number((((null==e?void 0:e.volume)?null==e?void 0:e.volume:1)*100).toFixed())/2},duration:{from:null==e?void 0:e.from,to:null==e?void 0:e.to,trimmedDuration:{from:(null==e?void 0:null===(i=e.trimming)||void 0===i?void 0:i.from)*100/(null==l?void 0:l.duration),to:(null==e?void 0:null===(c=e.trimming)||void 0===c?void 0:c.to)*100/(null==l?void 0:l.duration)}},...(null==e?void 0:e.subtitlesGenerated)?{subtitlesGenerated:!0,subtitlesConfig:null==e?void 0:e.subtitlesConfig,createdTranscription:null==e?void 0:e.createdTranscription}:{}});else if((null==e?void 0:e.type)===a.QP.TEXT)u.push(F({layer:e,sharedFonts:o,preview:n,aspectRatio:r,isFocused:s,key:t}));else if((null==e?void 0:e.type)===a.QP.AUDIO_SOUND||(null==e?void 0:e.type)===a.QP.CUSTOM_AUDIO){if((null==e?void 0:e.type)===a.QP.AUDIO_SOUND){let i=d()(f,{id:null==e?void 0:e.audio_sound_id});u.push({level:(null==e?void 0:e.level)||t+1,layerData:{...d()(f,{id:null==e?void 0:e.audio_sound_id})},layerType:a.QP.AUDIO_SOUND,duration:{from:null==e?void 0:e.from,to:(null==e?void 0:e.trim_to)-(null==e?void 0:e.trim_from)<=Number(null==i?void 0:null===(p=i.meta)||void 0===p?void 0:p.duration)?(null==e?void 0:e.from)+((null==e?void 0:e.trim_to)-(null==e?void 0:e.trim_from)):(null==e?void 0:e.from)+Number(null==i?void 0:null===(m=i.meta)||void 0===m?void 0:m.duration),trimmedDuration:{from:(null==e?void 0:e.trim_from)*100/Number(null==i?void 0:null===(h=i.meta)||void 0===h?void 0:h.duration),to:(null==e?void 0:e.trim_to)*100/Number(null==i?void 0:null===(g=i.meta)||void 0===g?void 0:g.duration)}},attributes:{volume:Number(((null!==(y=null==e?void 0:e.volume)&&void 0!==y?y:1)*100).toFixed())/2},id:(null==e?void 0:e.id)||"layer-".concat(t+1),order:t+1})}else u.push({...null==e?void 0:e.layerClientInfo,id:(null==e?void 0:e.id)||"layer-".concat(t+1)})}else if((null==e?void 0:e.type)===a.QP.IMAGE||(null==e?void 0:e.type)===a.QP.CUSTOM_IMAGE||(null==e?void 0:e.type)===a.QP.GIFS||(null==e?void 0:e.type)===a.QP.CUSTOM_GIFS)null==e||e.type,a.QP.GIFS,u.push({...null==e?void 0:e.layerClientInfo,id:(null==e?void 0:e.id)||"layer-".concat(t+1)});else if((null==e?void 0:e.type)===a.QP.VIDEO||(null==e?void 0:e.type)===a.QP.CUSTOM_VIDEO){if((null==e?void 0:e.type)===a.QP.VIDEO){let i=d()(v,{id:null==e?void 0:e.video_id});u.push({level:(null==e?void 0:e.level)||t+1,layerData:{...d()(v,{id:null==e?void 0:e.video_id}),meta:{hasAudio:null==e?void 0:e.has_audio}},layerType:a.QP.VIDEOS,position:null!==(A=null==e?void 0:null===(b=e.layerClientInfo)||void 0===b?void 0:b.position)&&void 0!==A?A:{x:"".concat((null==e?void 0:e.x)*100/(s?null==r?void 0:r.width:null==n?void 0:n.preview_width),"%"),y:"".concat((null==e?void 0:e.y)*100/(s?null==r?void 0:r.height:null==n?void 0:n.preview_height),"%"),width:"".concat((null==e?void 0:e.width)*100/(s?null==r?void 0:r.width:null==n?void 0:n.preview_width),"%"),height:"".concat((null==e?void 0:e.he
1ight)*100/(s?null==r?void 0:r.height:null==n?void 0:n.preview_height),"%")},attributes:{volume:Number(((null!==(x=null==e?void 0:e.volume)&&void 0!==x?x:1)*100).toFixed())/2},duration:{from:null==e?void 0:e.from,to:(null==e?void 0:e.trim_to)-(null==e?void 0:e.trim_from)<=Number(null==i?void 0:i.length)?(null==e?void 0:e.from)+((null==e?void 0:e.trim_to)-(null==e?void 0:e.trim_from)):(null==e?void 0:e.from)+Number(null==i?void 0:i.length),trimmedDuration:{from:(null==e?void 0:e.trim_from)*100/Number(null==i?void 0:i.length),to:(null==e?void 0:e.trim_to)*100/Number(null==i?void 0:i.length)}},id:(null==e?void 0:e.id)||"layer-".concat(t+1),order:t+1,...(null==e?void 0:e.subtitlesGenerated)?{subtitlesGenerated:!0,subtitlesConfig:null==e?void 0:e.subtitlesConfig,createdTranscription:null==e?void 0:e.createdTranscription}:{}})}else u.push({...null==e?void 0:e.layerClientInfo,id:(null==e?void 0:e.id)||"layer-".concat(t+1)})}}),u},Z=e=>{let{duration:t,otherLayers:i}=e;return new Promise((e,o)=>{let n=c()(g()(i,"level"),e=>e),r=c()(n,(e,i)=>e.filter(e=>{var i,o,n,r,a,l;return(null==t?void 0:t.from)>=(null==e?void 0:null===(i=e.duration)||void 0===i?void 0:i.from)&&(null==t?void 0:t.from)<=(null==e?void 0:null===(o=e.duration)||void 0===o?void 0:o.to)||(null==t?void 0:t.to)>=(null==e?void 0:null===(n=e.duration)||void 0===n?void 0:n.from)&&(null==t?void 0:t.to)<=(null==e?void 0:null===(r=e.duration)||void 0===r?void 0:r.to)||(null==t?void 0:t.from)<=(null==e?void 0:null===(a=e.duration)||void 0===a?void 0:a.from)&&(null==t?void 0:t.to)>=(null==e?void 0:null===(l=e.duration)||void 0===l?void 0:l.to)})),a=null;if(r.some((e,t)=>{if(!(null==e?void 0:e.length))return a=t,!0}),b()(a))e(null);else{var l;e(null===(l=n[a][0])||void 0===l?void 0:l.level)}})},q=e=>{let{layerType:t,duration:i}=e;return async(e,o)=>{var n,r,l;let s=JSON.parse(JSON.stringify(_()((null===(r=o())||void 0===r?void 0:null===(n=r.EditorState)||void 0===n?void 0:n.layers)||[],["level"])));if(t===a.QP.VIDEO)return 1;{let e=_()(m()(s,e=>t===a.QP.IMAGE||t===a.QP.VIDEOS||t===a.QP.GIFS?(null==e?void 0:e.layerType)===a.QP.IMAGE||(null==e?void 0:e.layerType)===a.QP.VIDEOS||(null==e?void 0:e.layerType)===a.QP.VIDEO||(null==e?void 0:e.layerType)===a.QP.GIFS:(null==e?void 0:e.layerType)===t),["level"]),o=await Z({duration:i,otherLayers:e});return o&&(null==e?void 0:e.length)?o:(null===(l=s[(null==s?void 0:s.length)-1])||void 0===l?void 0:l.level)+1}}},H=(e,t)=>{let{layerId:i,values:o,otherValues:n,applyToAllSimilars:r}=e;return async(e,l)=>{var s,u,c,p,m,h,f,v,g,y,b,A,x,w,_;let k=structuredClone(null===(u=l())||void 0===u?void 0:null===(s=u.EditorState)||void 0===s?void 0:s.layers),T=d()(k,{id:i}),E=k.findIndex(e=>e.id===i);(null==T?void 0:T.id)&&(T="object"==typeof T[null==o?void 0:o.name]?{...T,[null==o?void 0:o.name]:{...T[null==o?void 0:o.name],...null==o?void 0:o.values},...n}:(null==o?void 0:o.name)?{...T,[null==o?void 0:o.name]:null==o?void 0:o.values,...n}:{...T,...o,...n});let P=(0,S.yd)(E,k,T);if((null==o?void 0:o.name)==="duration"&&((null==T?void 0:T.layerType)===a.QP.VIDEO||(null==T?void 0:T.layerType)===a.QP.VIDEOS||(null==T?void 0:T.layerType)===a.QP.CUSTOM_VIDEO)&&(null==T?void 0:T.subtitlesGenerated)){let t=await e(et({transcription:null==T?void 0:null===(p=T.createdTranscription)||void 0===p?void 0:p.transcription,layerInfo:T}));P=[...P=P.filter(e=>(null==e?void 0:e.relatedLayerId)!==(null==T?void 0:T.id)),...t]}else if((null==T?void 0:T.layerType)===a.QP.SUBTITLE_TEXT&&(null==o?void 0:o.name)&&(null==o?void 0:o.name)!=="fontSize"&&(null==o?void 0:o.name)!=="duration"||r){let e=structuredClone(T);P=await P.map(t=>{var i,o,n,r,a;return(null==t?void 0:t.relatedLayerId)===(null==e?void 0:e.relatedLayerId)?{...t,attributes:{...null==t?void 0:t.attributes,style:{...null==t?void 0:null===(i=t.attributes)||void 0===i?void 0:i.style,fontSize:null==t?void 0:null===(n=t.attributes)||void 0===n?void 0:null===(o=n.style)||void 0===o?void 0:o.fontSize}},position:{...null==t?void 0:t.position,x:null==e?void 0:null===(r=e.position)||void 0===r?void 0:r.x,y:null==e?void 0:null===(a=e.position)||void 0===a?void 0:a.y}}:t})}else if((null==T?void 0:T.layerType)===a.QP.SUBTITLE_TEXT&&(null==o?void 0:o.name)==="duration"){let t=P.filter(e=>(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT&&(null==e?void 0:e.relatedLayerId)===(null==T?void 0:T.relatedLayerId)),i=P.find(e=>(null==e?void 0:e.id)===(null==T?void 0:T.relatedLayerId)),o=Number((null==i?void 0:null===(m=i.layerData)||void 0===m?void 0:m.duration)||(null==i?void 0:null===(h=i.layerData)||void 0===h?void 0:h.length)),n={from:(0,C.Md)(((null==i?void 0:null===(v=i.duration)||void 0===v?void 0:null===(f=v.trimmedDuration)||void 0===f?void 0:f.from)||0)*o/100,3),to:(0,C.Md)(((null==i?void 0:null===(y=i.duration)||void 0===y?void 0:null===(g=y.trimmedDuration)||void 0===g?void 0:g.to)||100)*o/100,3)};e(D.ZP.updateVideoSubtitle(null==i?void 0:i.id,null==T?void 0:null===(b=T.subtitle)||void 0===b?void 0:b.subtitleId,{start:(0,C.Md)((null==T?void 0:null===(A=T.duration)||void 0===A?void 0:A.from)+(null==n?void 0:n.from),2),end:(0,C.Md)((null==T?void 0:null===(x=T.duration)||void 0===x?void 0:x.to)+(null==n?void 0:n.from),2)})),t=ei({transcriptionsLayers:t,layerDuration:{from:null==i?void 0:null===(w=i.duration)||void 0===w?void 0:w.from,to:null==i?void 0:null===(_=i.duration)||void 0===_?void 0:_.to}}),P=[...P=P.filter(e=>!((null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT&&(null==e?void 0:e.relatedLayerId)===(null==T?void 0:T.relatedLayerId))),...t]}
1let I=structuredClone(null===(c=l())||void 0===c?void 0:c.EditorState);I={...I,layers:P},t&&t(I),e({type:"ADD_LAYER",payload:P})}},W=e=>{let{preview:t,position:i}=e;if(!(0,C.k3)(i.width)){let e={},o=Number(i.width)/Number(i.height);return(null==t?void 0:t.preview_width)>=(null==t?void 0:t.preview_height)?(e.height="".concat(25*(null==t?void 0:t.preview_width)/100/o*100/(null==t?void 0:t.preview_height),"%"),e.width="".concat(25*(null==t?void 0:t.preview_width)/100*100/(null==t?void 0:t.preview_width),"%")):(e.height="".concat(85*(null==t?void 0:t.preview_width)/100/o*100/(null==t?void 0:t.preview_height),"%"),e.width="".concat(85*(null==t?void 0:t.preview_width)/100*100/(null==t?void 0:t.preview_width),"%")),e}return i},Y=(e,t)=>(i,o)=>{var n,r;let{outputSettings:a,layers:l,clientDimensions:s}=null===(n=o())||void 0===n?void 0:n.ResizerState,d=document.getElementById("".concat(e)),u=d.getContext("2d");if(u.clearRect(0,0,d.width,d.height),null==a?void 0:a.blured){let e=l[0],i=(0,C.k3)(e.sourceInfo.width)?e.sourceInfo.width.split("%")[0]/100*(null==s?void 0:s.width):e.sourceInfo.width,o=(0,C.k3)(e.sourceInfo.height)?e.sourceInfo.height.split("%")[0]/100*(null==s?void 0:s.height):e.sourceInfo.height,n=(0,C.k3)(e.sourceInfo.x)?(0,k.dE)(e.sourceInfo.x.split("%")[0],null==s?void 0:s.width):e.sourceInfo.x,a=(0,C.k3)(e.sourceInfo.y)?(0,k.dE)(e.sourceInfo.y.split("%")[0],null==s?void 0:s.height):e.sourceInfo.y;u.filter="blur(4px)",u.drawImage(null==t?void 0:t.current,(null==t?void 0:t.current.videoWidth)*n/(null==s?void 0:s.width),(null==t?void 0:t.current.videoHeight)*a/(null==s?void 0:s.height),(null==t?void 0:t.current.videoWidth)*(100/((null==s?void 0:s.width)/i)/100),(null==t?void 0:null===(r=t.current)||void 0===r?void 0:r.videoHeight)*(100/((null==s?void 0:s.height)/o)/100),0,0,d.width,d.height)}else u.filter="none"},K=(e,t,i,o)=>(n,r)=>{var a;let{outputSettings:l,layers:s,clientDimensions:d,editorSettings:u}=null===(a=r())||void 0===a?void 0:a.ResizerState,p=document.getElementById("".concat(e)),m=document.getElementById(t);if(i&&i.current&&!i.current.ended&&p){let a=p.getContext("2d");a.clearRect(0,0,p.width,p.height),(null==l?void 0:l.blured)&&n(Y(e,i)),c()(s,(e,t)=>{var n,s,c,h,f,v,g,y,b,A,x,w,_,S;let E={source:{width:(0,C.k3)(e.sourceInfo.width)?e.sourceInfo.width:"".concat(e.sourceInfo.width/(null==d?void 0:d.width)*100,"%"),height:(0,C.k3)(e.sourceInfo.height)?e.sourceInfo.height:"".concat(e.sourceInfo.height/(null==d?void 0:d.height)*100,"%"),x:(0,C.k3)(e.sourceInfo.x)?e.sourceInfo.x:"".concat(e.sourceInfo.x/(null==d?void 0:d.width)*100,"%"),y:(0,C.k3)(e.sourceInfo.y)?e.sourceInfo.y:"".concat(e.sourceInfo.y/(null==d?void 0:d.height)*100,"%")},destination:{width:(0,C.k3)(e.destinationInfo.width)?e.destinationInfo.width:"".concat(e.destinationInfo.width/(null==l?void 0:null===(n=l.aspectRatio)||void 0===n?void 0:n.width)*100,"%"),height:(0,C.k3)(e.destinationInfo.height)?e.destinationInfo.height:"".concat(e.destinationInfo.height/(null==l?void 0:null===(s=l.aspectRatio)||void 0===s?void 0:s.height)*100,"%"),x:(0,C.k3)(e.destinationInfo.x)?e.destinationInfo.x:"".concat(e.destinationInfo.x/(null==l?void 0:null===(c=l.aspectRatio)||void 0===c?void 0:c.width)*100,"%"),y:(0,C.k3)(e.destinationInfo.y)?e.destinationInfo.y:"".concat(e.destinationInfo.y/(null==l?void 0:null===(h=l.aspectRatio)||void 0===h?void 0:h.height)*100,"%")}},P=(0,C.k3)(E.source.width)?E.source.width.split("%")[0]/100*(null==p?void 0:p.width):E.source.width,I=(0,C.k3)(E.source.height)?E.source.height.split("%")[0]/100*(null==p?void 0:p.height):E.source.height,D=(0,C.k3)(E.source.x)?(0,k.dE)(E.source.x.split("%")[0],null==p?void 0:p.width):E.source.x,O=(0,C.k3)(E.source.y)?(0,k.dE)(E.source.y.split("%")[0],null==p?void 0:p.height):E.source.y,N=(0,C.k3)(E.destination.width)?E.destination.width.split("%")[0]/100*(null==m?void 0:m.clientWidth):E.destination.width,j=(0,C.k3)(E.destination.height)?E.destination.height.split("%")[0]/100*(null==m?void 0:m.clientHeight):E.destination.height,M=(0,C.k3)(E.destination.x)?(0,k.dE)(E.destination.x.split("%")[0],null==m?void 0:m.clientWidth):E.destination.x,R=(0,C.k3)(E.destination.y)?(0,k.dE)(E.destination.y.split("%")[0],null==m?void 0:m.clientHeight):E.destination.y;a.filter="none";let z=(0,T.TR)((0,C.Md)(M,3),(0,C.Md)(R,3),(0,C.Md)(N,3),(0,C.Md)(j,3),(0,C.Md)((i.current.videoWidth||(null==o?void 0:o.videoWidth))*D/(null==p?void 0:p.width),3),(0,C.Md)((i.current.videoHeight||(null==o?void 0:o.videoHeight))*O/(null==p?void 0:p.height),3),(0,C.Md)((i.current.videoWidth||(null==o?void 0:o.videoWidth))*(100/((null==p?void 0:p.width)/P)/100),3),(0,C.Md)((i.current.videoHeight||(null==o?void 0:o.videoHeight))*(100/((null==p?void 0:p.height)/I)/100),3));if(1===Number(t)&&(null==u?void 0:null===(f=u.faceCam)||void 0===f?void 0:f.value)==="circle"){let e=document.getElementById("circleFaceCamCanvas_".concat(p.getAttribute("id")));e||((L=document.createElement("canvas")).style.position="absolute",L.style.top="0",L.id="circleFaceCamCanvas_".concat(p.getAttribute("id")),e=L,p.parentElement.appendChild(L)),L.width=p.width||(null==d?void 0:d.width),L.height=p.height||(null==d?void 0:d.height);let t=e.getContext("2d");t.clearRect(0,0,1920,1920),t.save(),t.beginPath();let o=(null===(A=r())||void 0===A?void 0:null===(b=A.ResizerState)||void 0===b?void 0:null===(y=b.editorSettings)||void 0===y?void 0:null===(g=y.faceCam)||void 0===g?void 0:null===(v=g.strokeStyle)||void 0===v?void 0:v.value)!=="none",n=(null===(S=r())||void 0===S?void 0:null===(_=S.ResizerState)||void 0===_?void 0:null===(w=_.outputSettings)||void 0===w?void 0:null===(x=w.aspectRatio)||void 0===x?void 0:x.width)*17/1080,a=z.w;t.arc(z.x+z.w/2,z.y+z.h/2,o?a/2-n/2:a/2,0,2*Math.PI),t.clip(),t.drawImage(i.current,o?z.cx-n:z.cx,o?z.cy-n:z.cy,o?z.cw+2*n:z.cw,o?z.ch+2*n:z.ch,z.x,z.y,z.w,z.h),t.restore(
1),t.closePath()}else a.drawImage(i.current,z.cx,z.cy,z.cw,z.ch,z.x,z.y,z.w,z.h)}),window.timeOutRef&&!i.current.paused?window.timeOutRef=setTimeout(()=>K(e,t,i,o),1e3/15):clearTimeout(window.timeOutRef)}},Q=()=>(e,t)=>{var i,o;let n=structuredClone(null===(o=t())||void 0===o?void 0:null===(i=o.EditorState)||void 0===i?void 0:i.layers).filter(e=>e.layerType!==a.QP.SUBTITLE_TEXT).map(e=>{var t;return Number(null==e?void 0:null===(t=e.id)||void 0===t?void 0:t.replace("layer-",""))}).sort((e,t)=>e-t);return n[(null==n?void 0:n.length)-1]},$=e=>{let{newDuration:t,layerInfo:i,dir:o}=e;return(e,n)=>{var r,a;let l=JSON.parse(JSON.stringify(null===(a=n())||void 0===a?void 0:null===(r=a.EditorState)||void 0===r?void 0:r.layers));if("left"===o){let e=l.filter(e=>{var o;return(null==e?void 0:e.level)===(null==i?void 0:i.level)&&(null==e?void 0:e.id)!==(null==i?void 0:i.id)&&(null==e?void 0:null===(o=e.duration)||void 0===o?void 0:o.from)<(null==t?void 0:t.to)}).filter(e=>{var i,o,n,r,a,l;return(null==t?void 0:t.from)<(null==e?void 0:null===(i=e.duration)||void 0===i?void 0:i.to)&&(null==t?void 0:t.from)>(null==e?void 0:null===(o=e.duration)||void 0===o?void 0:o.from)||(null==t?void 0:t.to)>(null==e?void 0:null===(n=e.duration)||void 0===n?void 0:n.from)&&(null==t?void 0:t.to)<(null==e?void 0:null===(r=e.duration)||void 0===r?void 0:r.to)||(null==t?void 0:t.from)<=(null==e?void 0:null===(a=e.duration)||void 0===a?void 0:a.from)&&(null==t?void 0:t.to)>(null==e?void 0:null===(l=e.duration)||void 0===l?void 0:l.to)});return!!(null==e?void 0:e.length)}if("right"===o){let e=l.filter(e=>{var o;return(null==e?void 0:e.level)===(null==i?void 0:i.level)&&(null==e?void 0:e.id)!==(null==i?void 0:i.id)&&(null==e?void 0:null===(o=e.duration)||void 0===o?void 0:o.from)>(null==t?void 0:t.from)}).filter(e=>{var i,o,n,r,a,l;return(null==t?void 0:t.from)<(null==e?void 0:null===(i=e.duration)||void 0===i?void 0:i.to)&&(null==t?void 0:t.from)>(null==e?void 0:null===(o=e.duration)||void 0===o?void 0:o.from)||(null==t?void 0:t.to)>(null==e?void 0:null===(n=e.duration)||void 0===n?void 0:n.from)&&(null==t?void 0:t.to)<(null==e?void 0:null===(r=e.duration)||void 0===r?void 0:r.to)||(null==t?void 0:t.from)<(null==e?void 0:null===(a=e.duration)||void 0===a?void 0:a.from)&&(null==t?void 0:t.to)>=(null==e?void 0:null===(l=e.duration)||void 0===l?void 0:l.to)});return!!(null==e?void 0:e.length)}{let e=l.filter(e=>(null==e?void 0:e.level)===(null==i?void 0:i.level)&&(null==e?void 0:e.id)!==(null==i?void 0:i.id)).filter(e=>{var i,o,n,r,a,l;return(null==t?void 0:t.from)<(null==e?void 0:null===(i=e.duration)||void 0===i?void 0:i.to)&&(null==t?void 0:t.from)>(null==e?void 0:null===(o=e.duration)||void 0===o?void 0:o.from)||(null==t?void 0:t.to)>(null==e?void 0:null===(n=e.duration)||void 0===n?void 0:n.from)&&(null==t?void 0:t.to)<(null==e?void 0:null===(r=e.duration)||void 0===r?void 0:r.to)||(null==t?void 0:t.from)<=(null==e?void 0:null===(a=e.duration)||void 0===a?void 0:a.from)&&(null==t?void 0:t.to)>=(null==e?void 0:null===(l=e.duration)||void 0===l?void 0:l.to)});return!!(null==e?void 0:e.length)}}},X=(e,t)=>{let{after:i,layerInfo:o}=e;return async(e,n)=>{var r,l,s;let d=JSON.parse(JSON.stringify(null===(l=n())||void 0===l?void 0:null===(r=l.EditorState)||void 0===r?void 0:r.layers)),u=structuredClone(d.find(e=>(null==e?void 0:e.id)===(null==o?void 0:o.layerId))),c=[];if(d.map(e=>{if((null==e?void 0:e.id)===(null==o?void 0:o.layerId)){var t,n;u={...e,level:i+1,[null==o?void 0:null===(t=o.values)||void 0===t?void 0:t.name]:null==o?void 0:null===(n=o.values)||void 0===n?void 0:n.values},c.push(u)}else(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT&&(null==e?void 0:e.relatedLayerId)===(null==o?void 0:o.layerId)?c.push({...e,level:i+2}):(null==e?void 0:e.level)>i?c.push({...e,level:(null==u?void 0:u.subtitlesGenerated)?(null==e?void 0:e.level)+2:(null==e?void 0:e.level)+1}):c.push(e)}),null==u?void 0:u.subtitlesGenerated){let t=await Promise.all([u].map(async t=>{var i;return await e(et({transcription:null==t?void 0:null===(i=t.createdTranscription)||void 0===i?void 0:i.transcription,layerInfo:t}))}));c=[...c=c.filter(e=>(null==e?void 0:e.relatedLayerId)!==(null==u?void 0:u.id)),...t.reduce((e,t)=>
1e.concat(t))]}e({type:"UPDATE_LAYERS_BULK",payload:c}),t&&t({...null===(s=n())||void 0===s?void 0:s.EditorState,layers:c})}},J=()=>(e,t)=>new Promise((e,i)=>{var o,n;let r=null===(o=t())||void 0===o?void 0:o.VideoState;I.R.videos.export({videoId:null==r?void 0:null===(n=r.uploadedFileInfo)||void 0===n?void 0:n.id},t=>{e(t)},()=>{i({})})}),ee=e=>{var t,i,o,n,r,l,s,d,u,c,p,m,h,f,v,g,y,b,A,x;let{subtitle:w,layerInfo:_,similarSubtitleLayer:S,previewDimensions:k}=e,T=Number((null==_?void 0:null===(t=_.layerData)||void 0===t?void 0:t.duration)||(null==_?void 0:null===(i=_.layerData)||void 0===i?void 0:i.length)),E={from:(0,C.Md)(((null==_?void 0:null===(n=_.duration)||void 0===n?void 0:null===(o=n.trimmedDuration)||void 0===o?void 0:o.from)||0)*T/100,3),to:(0,C.Md)(((null==_?void 0:null===(l=_.duration)||void 0===l?void 0:null===(r=l.trimmedDuration)||void 0===r?void 0:r.to)||100)*T/100,3)},P=(0,C.Md)((null==w?void 0:w.start)+((null==_?void 0:null===(s=_.duration)||void 0===s?void 0:s.from)-(null==E?void 0:E.from)),3),I=(0,C.Md)((null==w?void 0:w.end)+((null==_?void 0:null===(d=_.duration)||void 0===d?void 0:d.from)-(null==E?void 0:E.from)),3);P=(0,C.Md)((null==E?void 0:E.from)>(null==w?void 0:w.start)&&(null==E?void 0:E.from)<(null==w?void 0:w.end)?(null==E?void 0:E.from)+((null==_?void 0:null===(u=_.duration)||void 0===u?void 0:u.from)-(null==E?void 0:E.from)):P,3),I=(0,C.Md)((null==E?void 0:E.to)>(null==w?void 0:w.start)&&(null==E?void 0:E.to)<(null==w?void 0:w.end)?(null==E?void 0:E.to)+((null==_?void 0:null===(c=_.duration)||void 0===c?void 0:c.from)-(null==E?void 0:E.from)):I,3);let D=(0,a.ut)({name:"Cairo",id:8}),N=structuredClone(S);return{id:"".concat(null==_?void 0:_.id,"-").concat(null==w?void 0:w.subtitleId),layerData:{...a.uw,text:null==w?void 0:w.text,innerText:null==w?void 0:w.text,textContent:null==w?void 0:w.text},layerType:a.QP.SUBTITLE_TEXT,level:(null==_?void 0:_.level)+1,attributes:(null==N?void 0:N.id)?null==N?void 0:N.attributes:{...D,style:{...null==D?void 0:D.style,fontSize:30}},position:(null==N?void 0:N.id)?{...null==N?void 0:N.position,width:null==N?void 0:null===(p=N.position)||void 0===p?void 0:p.width,height:100*(0,M.vG)(Number("".concat((null==N?void 0:null===(h=N.attributes)||void 0===h?void 0:null===(m=h.style)||void 0===m?void 0:m.fontSize)||30).replace("px","")),(null==N?void 0:null===(f=N.attributes)||void 0===f?void 0:f.textEffect)&&(null==N?void 0:null===(g=N.attributes)||void 0===g?void 0:null===(v=g.textEffect)||void 0===v?void 0:v.value)!=="plain"?O.Z.wrapTextWithSpans(null==w?void 0:w.text):null==w?void 0:w.text,Number(Number("".concat(null==N?void 0:null===(y=N.position)||void 0===y?void 0:y.width).replace("%",""))*(null==k?void 0:k.preview_width)/100),null==N?void 0:null===(x=N.attributes)||void 0===x?void 0:null===(A=x.style)||void 0===A?void 0:null===(b=A.fontFamily)||void 0===b?void 0:b.label)/(null==k?void 0:k.preview_height)+"%"}:{x:"10%",y:"80%",width:"80%",height:"8%"},duration:{from:(0,C.Md)(P),to:(0,C.Md)(I)},relatedLayerId:null==_?void 0:_.id,subtitle:w}},et=e=>{let{transcription:t,layerInfo:i,language:o,takeAttributesFromLayer:n,reArrange:r}=e;return async(e,l)=>{var s,d,u,c,p,m,h,f,v,g,y,b,A,x,w,_,S,k,T;let E=structuredClone(null===(d=l())||void 0===d?void 0:null===(s=d.EditorState)||void 0===s?void 0:s.layers),P=null===(c=l())||void 0===c?void 0:null===(u=c.EditorState)||void 0===u?void 0:u.generalDetails.preview,I=null===(p=l())||void 0===p?void 0:p.VideoState,D=[],O=null==E?void 0:E.filter(e=>(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT&&(null==e?void 0:e.relatedLayerId)===(null==i?void 0:i.id)),N=Number((null==i?void 0:null===(m=i.layerData)||void 0===m?void 0:m.duration)||(null==i?void 0:null===(h=i.layerData)||void 0===h?void 0:h.length)),j={from:(0,C.Md)(((null==i?void 0:null===(v=i.duration)||void 0===v?void 0:null===(f=v.trimmedDuration)||void 0===f?void 0:f.from)||0)*N/100,3),to:(0,C.Md)(((null==i?void 0:null===(y=i.duration)||void 0===y?void 0:null===(g=y.trimmedDuration)||void 0===g?void 0:g.to)||100)*N/100,3)};if(null==i?void 0:i.subtitlesGenerated){let e=null===(_=structuredClone((null===(x=l().EditorState)||void 0===x?void 0:x.videosSubtitls)||[]).find(e=>{var t;return(null==e?void 0:e.id)===(null==i?void 0:null===(t=i.layerData)||void 0===t?void 0:t.id)}))||void 0===_?void 0:null===(w=_.createdTranscription)||void 0===w?void 0:w.transcription.filter(e=>!(null==e?void 0:e.deleted)),o=r?t:e.filter(e=>!O.some(t=>{var i;return(null==t?void 0:null===(i=t.subtitle)||void 0===i?void 0:i.subtitleId)===(null==e?void 0:e.subt
1itleId)})),n=E.filter(e=>{var t,o;return(null==e?void 0:null===(t=e.layerData)||void 0===t?void 0:t.id)===(null==i?void 0:null===(o=i.layerData)||void 0===o?void 0:o.id)&&(null==e?void 0:e.layerType)===a.QP.VIDEO}),s=null==E?void 0:E.find(e=>{var t;return(null==e?void 0:e.relatedLayerId)===(null===(t=n[(null==n?void 0:n.length)-1])||void 0===t?void 0:t.id)});o=o.map(e=>ee({subtitle:e,layerInfo:i,similarSubtitleLayer:s||null,previewDimensions:P})),null===(S=r?o:[...o||[],...O])||void 0===S||S.map((t,o)=>{var n,r,a,l,s,d,u,c;if((null==t?void 0:null===(n=t.subtitle)||void 0===n?void 0:n.end)>(null==j?void 0:j.to)&&(null==t?void 0:null===(r=t.subtitle)||void 0===r?void 0:r.start)>(null==j?void 0:j.to)||(null==t?void 0:null===(a=t.subtitle)||void 0===a?void 0:a.start)<(null==j?void 0:j.from)&&(null==t?void 0:null===(l=t.subtitle)||void 0===l?void 0:l.end)<(null==j?void 0:j.from))return;let p=e.find(e=>{var i;return(null==e?void 0:e.subtitleId)===(null==t?void 0:null===(i=t.subtitle)||void 0===i?void 0:i.subtitleId)}),m=(0,C.Md)((null==p?void 0:p.start)+((null==i?void 0:null===(s=i.duration)||void 0===s?void 0:s.from)-(null==j?void 0:j.from)),3),h=(0,C.Md)((null==p?void 0:p.end)+((null==i?void 0:null===(d=i.duration)||void 0===d?void 0:d.from)-(null==j?void 0:j.from)),3);m=(0,C.Md)((null==j?void 0:j.from)>(null==p?void 0:p.start)&&(null==j?void 0:j.from)<(null==p?void 0:p.end)?(null==j?void 0:j.from)+((null==i?void 0:null===(u=i.duration)||void 0===u?void 0:u.from)-(null==j?void 0:j.from)):m,3),h=(0,C.Md)((null==j?void 0:j.to)>(null==p?void 0:p.start)&&(null==j?void 0:j.to)<(null==p?void 0:p.end)?(null==j?void 0:j.to)+((null==i?void 0:null===(c=i.duration)||void 0===c?void 0:c.from)-(null==j?void 0:j.from)):h,3),D.push({...t,level:(null==i?void 0:i.level)+1,duration:{from:(0,C.Md)(m),to:(0,C.Md)(h)}})})}else{let e=null===(T=l())||void 0===T?void 0:null===(k=T.ResizerState)||void 0===k?void 0:k.outputSettings,r=null==E?void 0:E.filter(e=>(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT&&(null==e?void 0:e.relatedLayerId)===(null==i?void 0:i.id)),s={width:(null==I?void 0:I.videoWidth)/(null==I?void 0:I.videoHeight)*150,height:150};null==t||t.map((t,l)=>{var d,u,c,p,m;if((null==t?void 0:t.end)>(null==j?void 0:j.to)&&(null==t?void 0:t.start)>(null==j?void 0:j.to)||(null==t?void 0:t.start)<(null==j?void 0:j.from)&&(null==t?void 0:t.end)<(null==j?void 0:j.from))return;let h=(0,C.Md)((null==t?void 0:t.start)+((null==i?void 0:null===(d=i.duration)||void 0===d?void 0:d.from)-(null==j?void 0:j.from)),3),f=(0,C.Md)((null==t?void 0:t.end)+((null==i?void 0:null===(u=i.duration)||void 0===u?void 0:u.from)-(null==j?void 0:j.from)),3);h=(0,C.Md)((null==j?void 0:j.from)>(null==t?void 0:t.start)&&(null==j?void 0:j.from)<(null==t?void 0:t.end)?(null==j?void 0:j.from)+((null==i?void 0:null===(c=i.duration)||void 0===c?void 0:c.from)-(null==j?void 0:j.from)):h,3),f=(0,C.Md)((null==j?void 0:j.to)>(null==t?void 0:t.start)&&(null==j?void 0:j.to)<(null==t?void 0:t.end)?(null==j?void 0:j.to)+((null==i?void 0:null===(p=i.duration)||void 0===p?void 0:p.from)-(null==j?void 0:j.from)):f,3);let v=(0,a.ut)({name:"en"===o?"Montserrat":"Lalezar",id:"en"===o?5:14});if(n&&(null==r?void 0:r.length)){let e=r[0];D.push({...e,id:"".concat(null==i?void 0:i.id,"-").concat(l),layerData:{...a.uw,text:null==t?void 0:t.text,innerText:null==t?void 0:t.text,textContent:null==t?void 0:t.text},duration:{from:(0,C.Md)(h),to:(0,C.Md)(f)},subtitle:t})}else D.push({id:"".concat(null==i?void 0:i.id,"-").concat(l),layerData:{...a.uw,text:null==t?void 0:t.text,innerText:null==t?void 0:t.text,textContent:null==t?void 0:t.text},layerType:a.QP.SUBTITLE_TEXT,level:(null==i?void 0:i.level)+1,attributes:{...v,style:{...null==v?void 0:v.style,fontSize:(null==P?void 0:P.preview_height)?30:10},textEffect:{value:"word-colored",label:{en:"One Word Highlighted",ar:"تمييز كلمة واحدة"},textColor:"#EB8504"}},position:{x:"10%",y:(null==e?void 0:null===(m=e.aspectRatio)||void 0===m?void 0:m.value)==="16:9"?"80%":"50%",width:"80%",height:"".concat((null==t?void 0:t.height)*100/((null==P?void 0:P.preview_height)||(null==s?void 0:s.height)),"%")},duration:{from:(0,C.Md)(h),to:(0,C.Md)(f)},relatedLayerId:null==i?void 0:i.id,subtitle:t})})}return ei({transcriptionsLayers:D,layerDuration:{from:null==i?void 0:null===(b=i.duration)||void 0===b?void 0:b.from,to:null==i?void 0:null===(A=i.duration)||void 0===A?void 0:A.to}})}},ei=e=>{let{transcriptionsLayers:t,layerDuration:i}=e;return t.sort(function(e,t){var i,o;return(null==e?void 0:null===(i=e.duration)||void 0===i?void 0:i.from)-(null==t?void 0:null===(o=t.duration)||void 0===o?void 0:o.from)}).map((e,o)=>{var n,r,a;return{...e,duration:{...e.duration,start:Number(e.duration.from),end:Number(e.duration.to),startObject:(0,N.Bw)("".concat(e.duration.from)),endObject:(0,N.Bw)("".concat(e.duration.to)),nextStartObject:f()(t,"".concat(o+1))?(0,N.Bw)("".concat(null===(n=f()(t,"".concat(o+1)).duration)||void 0===n?void 0:n.from)):(0,N.Bw)("".concat(null==i?void 0:i.to)),prevEndObject:f()(t,"".concat(o-1))?(0,N.Bw)("".concat(null===(r=f()(t,"".concat(o-1)).duration)||void 0===r?void 0:r.to)):(0,N.Bw)("".concat(null==i?void 0:i.from)),subtitleId:null==e?void 0:null===(a=e.subt
1itle)||void 0===a?void 0:a.id}}})},eo=(e,t,i,o)=>new Promise((n,r)=>{var a=[],l=0;!function r(){var s;if(l>=e.length){n(a);return}let d=null===(s=e[l])||void 0===s?void 0:s.text,u=(0,M.vG)(o,d,t,i);a.push({...e[l],height:u}),l++,setTimeout(r,10)}()}),en=e=>({innerText:(0,R.p_)(null==e?void 0:e.innerText),text:(0,R.p_)(null==e?void 0:e.text),textContent:(0,R.p_)(null==e?void 0:e.textContent)});t.ZP={clearEditorState:()=>e=>{e({type:"CLEAR_STATE"}),e({type:D.qo.STORE_VIDEOS,payload:[]})},resetMainVideoParts:()=>async(e,t)=>{var i,o,n,r,l,s;let d=structuredClone(null===(o=t())||void 0===o?void 0:null===(i=o.EditorState)||void 0===i?void 0:i.layers),u=[],c=d.find(e=>(null==e?void 0:e.id)==="layer-0"),p={...c,duration:{from:0,to:null==c?void 0:null===(n=c.layerData)||void 0===n?void 0:n.duration,trimmedDuration:{from:0,to:0}}};u.push(p),d.map(e=>{(null==e?void 0:e.layerType)!==a.QP.VIDEO&&(null==e?void 0:e.level)!==(null==c?void 0:c.level)&&u.push(e)}),e({type:"UPDATE_LAYERS_BULK",payload:u}),e(j.ZP.updateDuration({duration:{...null==p?void 0:p.duration,to:(null==p?void 0:null===(l=p.duration)||void 0===l?void 0:null===(r=l.trimmedDuration)||void 0===r?void 0:r.to)===0?100:null==p?void 0:null===(s=p.duration)||void 0===s?void 0:s.to}}))},shapeLoadedEdits:B,loadEditorData:e=>t=>{t({type:"EDITOR_STATE_CHANGED",payload:e})},getLayerLevel:q,addLayer:(e,t,i)=>async(o,n)=>{var r,a,l,s,d,u,c,p,m;let h=structuredClone((null===(a=n())||void 0===a?void 0:null===(r=a.EditorState)||void 0===r?void 0:r.layers)||[]),f=null===(s=n())||void 0===s?void 0:null===(l=s.Timeline)||void 0===l?void 0:l.currentTime,v=(0,C.Md)(f,3),g=(null==e?void 0:e.duration)?null==e?void 0:e.duration:{from:(0,C.Md)(v,3),to:(0,C.Md)(v+((null==e?void 0:null===(u=e.layerData)||void 0===u?void 0:null===(d=u.meta)||void 0===d?void 0:d.duration)?null==e?void 0:null===(p=e.layerData)||void 0===p?void 0:null===(c=p.meta)||void 0===c?void 0:c.duration:2),3)},y=0;(null==h?void 0:h.length)>1&&(y=y=o(Q())+1);let b="layer-".concat(y||(null==h?void 0:h.length)),A=y||(null==h?void 0:h.length),x=await o(q({layerType:null==e?void 0:e.layerType,duration:g})),w={...e,duration:g,level:(null==e?void 0:e.level)?null==e?void 0:e.level:x,id:b,order:A};await h.push(w);let _=null===(m=n())||void 0===m?void 0:m.EditorState;i?(_=await {..._,layers:h,activeLayer:b},t&&t(_),o({type:"ADD_LAYER_AND_MAKE_ACTIVE",payload:{copiedLayers:h,layerId:b}})):(_=await {..._,layers:h},t&&t(_),o({type:"ADD_LAYER",payload:h}))},deleteLayer:(e,t)=>async(i,o)=>{if(e){var n,r,l,s,d,u,c;let p=structuredClone(null===(r=o())||void 0===r?void 0:null===(n=r.EditorState)||void 0===n?void 0:n.layers),m=p.find(t=>(null==t?void 0:t.id)===e),h=p.findIndex(t=>t.id===e);if((null==m?void 0:m.layerType)===a.QP.VIDEO){let n=p.filter(e=>(null==e?void 0:e.layerType)===a.QP.VIDEO);if((null==n?void 0:n.length)>1){let n=await (0,S.X3)(p,h),r=n.find(e=>e.layerType===a.QP.VIDEO),s=n.findIndex(e=>e.id===(null==r?void 0:r.id));((null==m?void 0:m.layerType)===a.QP.VIDEO||(null==m?void 0:m.layerType)===a.QP.VIDEOS||(null==m?void 0:m.layerType)===a.QP.CUSTOM_VIDEO&&(null==m?void 0:m.subtitlesGenerated))&&(n=(n=n.filter(t=>(null==t?void 0:t.relatedLayerId)!==e)).map(e=>(null==e?void 0:e.relatedLayerId)===(null==r?void 0:r.id)?{...e,relatedLayerId:"layer-0"}:e)),n[s].id="layer-0";let d=JSON.parse(JSON.stringify(null===(l=o())||void 0===l?void 0:l.EditorState));d={...d,layers:n},t&&t(d),i({type:"ADD_LAYER",payload:n})}}else if((null==m?void 0:m.layerType)===a.QP.SUBTITLE_TEXT){let e=structuredClone(null===(d=o())||void 0===d?void 0:null===(s=d.EditorState)||void 0===s?void 0:s.videosSubtitls)||[],n=p.find(e=>(null==e?void 0:e.id)===(null==m?void 0:m.relatedLayerId)),r=p.filter(e=>{var t,i;return(null==e?void 0:null===(t=e.layerData)||void 0===t?void 0:t.id)===(null==n?void 0:null===(i=n.layerData)||void 0===i?void 0:i.id)&&(null==e?void 0:e.layerType)===a.QP.VIDEO}),l=r.map(e=>null==e?void 0:e.id),c=e.find(e=>{var t;return(null==e?void 0:e.id)===(null==n?void 0:null===(t=n.layerData)||void 0===t?void 0:t.id)}),h={...c,createdTranscription:{...c.createdTranscription,transcription:c.createdTranscription.transcription.map(e=>{var t;
1return(null==e?void 0:e.subtitleId)===(null==m?void 0:null===(t=m.subtitle)||void 0===t?void 0:t.subtitleId)?{...e,deleted:!0}:e})}};i(D.ZP.updateVideo(h));let f=p.filter(e=>{var t,i;return!((null==e?void 0:null===(t=e.subtitle)||void 0===t?void 0:t.subtitleId)===(null==m?void 0:null===(i=m.subtitle)||void 0===i?void 0:i.subtitleId)&&l.includes(null==e?void 0:e.relatedLayerId))});i({type:"ADD_LAYER",payload:f});let v=structuredClone(null===(u=o())||void 0===u?void 0:u.EditorState),g=await Promise.all(r.map(async e=>{var t;return await i(et({transcription:null==e?void 0:null===(t=e.createdTranscription)||void 0===t?void 0:t.transcription,layerInfo:e}))}));f=f.filter(e=>!(l.includes(null==e?void 0:e.relatedLayerId)&&(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT)),v={...v,layers:[...f,...g.reduce((e,t)=>e.concat(t))]},t&&t(v),i({type:"ADD_LAYER",payload:null==v?void 0:v.layers})}else{let n=await (0,S.X3)(p,h);if(((null==m?void 0:m.layerType)===a.QP.VIDEOS||(null==m?void 0:m.layerType)===a.QP.CUSTOM_VIDEO)&&(null==m?void 0:m.subtitlesGenerated)){let t=structuredClone(p.filter(e=>{var t,i,o,n;return(null==e?void 0:null===(t=e.layerData)||void 0===t?void 0:t.id)===(null==m?void 0:null===(i=m.layerData)||void 0===i?void 0:i.id)&&(null==e?void 0:null===(o=e.layerData)||void 0===o?void 0:o.videoCategory)===(null==m?void 0:null===(n=m.layerData)||void 0===n?void 0:n.videoCategory)}));(null==t?void 0:t.length)===1&&i(D.ZP.removeVideo(null==m?void 0:m.layerData)),n=n.filter(t=>(null==t?void 0:t.relatedLayerId)!==e)}let r=JSON.parse(JSON.stringify(null===(c=o())||void 0===c?void 0:c.EditorState));r={...r,layers:n},t&&t(r),i({type:"ADD_LAYER",payload:n})}}},updateLayer:H,updateBulkLayers:(e,t)=>{let{layers:i}=e;return(e,o)=>{var n;e({type:"UPDATE_LAYERS_BULK",payload:i}),t&&t({newState:{...null===(n=o())||void 0===n?void 0:n.EditorState,layers:i}})}},makeLayerActive:e=>async(t,i)=>{var o,n;(null===(n=i())||void 0===n?void 0:null===(o=n.EditorState)||void 0===o?void 0:o.activeLayer)!==e&&t({type:"ACTIVE_LAYER_CHANGED",payload:e})},updateGeneralData:(e,t)=>{let{name:i,value:o}=e;return async(e,n)=>{var r,l;let s=structuredClone(null===(r=n())||void 0===r?void 0:r.EditorState);if("preview"===i){if(null===(l=s.generalDetails.preview)||void 0===l?void 0:l.preview_width){let e=structuredClone(s.generalDetails.preview);s.layers=await s.layers.map(t=>{if((null==t?void 0:t.layerType)===a.QP.TEXT||(null==t?void 0:t.layerType)===a.QP.SUBTITLE_TEXT){var i,n,r,l;let a=null==t?void 0:null===(n=t.attributes)||void 0===n?void 0:null===(i=n.style)||void 0===i?void 0:i.fontSize;a=Number("".concat(a).replace("px",""));let s=Number("".concat(null==t?void 0:null===(r=t.position)||void 0===r?void 0:r.width).replace("%","")),d=Number(s)*(null==o?void 0:o.preview_width)/100,u=Number(s)*(null==e?void 0:e.preview_width)/100;return{...t,attributes:{...null==t?void 0:t.attributes,style:{...null==t?void 0:null===(l=t.attributes)||void 0===l?void 0:l.style,fontSize:Math.round(Number(a*d/u))}}}}if((null==t?void 0:t.layerType)!==a.QP.VIDEOS&&(null==t?void 0:t.layerType)!==a.QP.CUSTOM_VIDEO&&(null==t?void 0:t.layerType)!==a.QP.IMAGE&&(null==t?void 0:t.layerType)!==a.QP.CUSTOM_IMAGE&&(null==t?void 0:t.layerType)!==a.QP.GIFS&&(null==t?void 0:t.layerType)!==a.QP.CUSTOM_GIFS)return t;{let e=W({preview:o,position:null==t?void 0:t.position});return{...t,position:{...null==t?void 0:t.position,...e}}}})}s.generalDetails={...s.generalDetails,[i]:o}}else s.generalDetails={...s.generalDetails,[i]:o};t&&t(s),e({type:"UPDATE_PREVIEW_WIDTH_AND_HEIGHT",payload:{generalDetails:s.generalDetails,layers:s.layers}})}},getActiveLayer:()=>(e,t)=>new Promise(async(e,i)=>{var o,n;let r=structuredClone(null===(n=t())||void 0===n?void 0:null===(o=n.EditorState)||void 0===o?void 0:o.layers);(null==r?void 0:r.length)&&e(r.filter(e=>{var i,o;return(null==e?void 0:e.id)===(null===(o=t())||void 0===o?void 0:null===(i=o.EditorState)||void 0===i?void 0:i.activeLayer)})[0])}),changeLayerOrder:(e,t)=>{let{actionType:i,layer:o}=e;return async(e,n)=>{var r,l,s,d,u,c;let p=await JSON.parse(JSON.stringify(null===(l=n())||void 0===l?void 0:null===(r=l.EditorState)||void 0===r?void 0:r.layers)),m=await p.findIndex(e=>(null==e?void 0:e.order)===(null==o?void 0:o.order)),h=null==o?void 0:o.order,f=JSON.parse(JSON.stringify(x()(p,"order","asc")));if(null==p?void 0:p.length){if(i===a.dU.BACKWARD){let i=f.findIndex(e=>e.order===h);if(f[i-1]){let o=p.findIndex(e=>{var t;return(null==e?void 0:e.order)===(null===(t=f[i-1])||void 0===t?void 0:t.order)});if(-1!==o){p[m].order=p[o].order,p[o].order=h,e({type:"UPDATE_LAYERS_BULK",payload:p});let i=null===(s=n())||void 0===s?void 0:s.EditorState;i=await {...i,layers:p},t&&t(i)}}}else if(i===a.dU.FORWARD){let i=f.findIndex(e=>e.order===h);if(f[i+1]){let o=p.findIndex(e=>{var t;return(null==e?void 0:e.order)===(null===(t=f[i+1])||void 0===t?void 0:t.order)});if(-1!==o){p[m].order=p[o].order,p[o].order=h,e({type:"UPDATE_LAYERS_BULK",payload:p});let i=null===(d=n())||void 0===d?void 0:d.EditorState;i=await {...i,layers:p},t&&t(i)}}}else if(i===a.dU.SEND_TO_BACK){let i=p.map((e,t)=>({...e,order:e.id!==o.id&&0!==t?e.order+1:e.id===o.id?1:e.order}));e({type:"UPDATE_LAYERS_BULK",payload:i});let r=null===(u=n())||void 0===u?void 0:u.EditorState;r=await {...r,layers:i},t&&t(r)}else if(i===a.dU.SEND_TO_FRONT){p[m].order=f[(null==f?void 0:f.length)-1].order+1,e({type:"UPDATE_LAYERS_BULK",payload:p});let i=null===(c=n())||void 0===c?void 0:c.EditorState;i=await {...i,layers:p},t&&t(i)}}}},setupDestinationCanvasToDraw:(e,t)=>{let{destinationCanvasId:i,isEditor:o}=e;return(e,n)=>{var r,a,l,s,d,u,c;let p=null===(a=n())||void 0===a?void 0:null===(r=a.ResizerState)||void 0===r?void 0:r.clientDimensions,m=null===(d=n())||void 0===d?void 0:null===(s=d.EditorState)||void 0===s?void 0:null===(l=s.generalDetails)||void 0===l?void 0:l.preview,h=document.getElementById("".concat(i));if(h){let e=document.getElementById("editing"),i=null===(u=e.style.width)||void 0===u?void 0:u.split("px")[0];i=i&&"auto"!==i?i:0;let n=null===(c=e.style.height)||void 0===c?void 0:c.split("px")[0];n=n&&"auto"!==n?n:0,h.width=i||(o?null==m?void 0:m.preview_width:null==p?void 0:p.width),h.height=n||(o?null==m?void 0:m.preview_height:null==p?void 0:p.height),t&&t()}}},editorDrawFrame:K,handleSplitLayer:(e,t)=>{let{currentTime:i,layer:o}=e;return async(e,n)=>{var r,l,s,d,u,p,m,h,f,v,g,y,b,A,x,w;let _=null===(l=n())||void 0===l?void 0:null===(r=l.EditorState)||void 0===r?void 0:r.layers,S=JSON.parse(JSON.stringify(o)),C=[],k=0;(null==_?void 0:_.length)>1&&(k=e(Q())+1);let T="layer-".concat(k||(null==_?void 0:_.length)),E={};if(c()(_,e=>{if((null==e?void 0:e.id)===(null==o?void 0:o.id)){if((null==e?void 0:e.layerType)===a.QP.VIDEO||(null==e?void 0:e.layerType)===a.QP.VIDEOS||(null==e?void 0:e.layerType)===a.QP.AUDIO_SOUND){var t,n,r,l,s,d,u,c,p,m,h,f;let a=Number(null==e?void 0:null===(n=e.layerData)||void 0===n?void 0:null===(t=n.meta)||void 0===t?void 0:t.duration)||Number(null==e?void 0:null===(r=e.layerData)||void 0===r?void 0:r.length)||Number(null==e?void 0:null===(l=e.layerData)||void 0===l?void 0:l.duration)||Number(null==e?void 0:null===(d=e.layerData)||void 0===d?void 0:null===(s=d.metadata)||void 0===s?void 0:s.duration);E={...null==o?void 0:o.duration,to:i,trimmedDuration:{...null==o?void 0:null===(u=o.duration)||void 0===u?void 0:u.trimmedDuration,from:(null==o?void 0:null===(p=o.duration)||void 0===p?void 0:null===(c=p.trimmedDuration)||void 0===c?void 0:c.from)||
10,to:100*(i-(null==o?void 0:null===(m=o.duration)||void 0===m?void 0:m.from)||0)/a+((null==o?void 0:null===(f=o.duration)||void 0===f?void 0:null===(h=f.trimmedDuration)||void 0===h?void 0:h.from)||0)}},C.push({...e,duration:E})}else C.push({...e,duration:{...null==e?void 0:e.duration,to:i}})}else C.push(e)}),(null==S?void 0:S.layerType)===a.QP.VIDEO||(null==S?void 0:S.layerType)===a.QP.VIDEOS||(null==S?void 0:S.layerType)===a.QP.AUDIO_SOUND){let e=Number(null==S?void 0:null===(u=S.layerData)||void 0===u?void 0:null===(d=u.meta)||void 0===d?void 0:d.duration)||Number(null==S?void 0:null===(p=S.layerData)||void 0===p?void 0:p.length)||Number(null==S?void 0:null===(m=S.layerData)||void 0===m?void 0:m.duration)||Number(null==S?void 0:null===(f=S.layerData)||void 0===f?void 0:null===(h=f.metadata)||void 0===h?void 0:h.duration);S={...S,layerData:{...null==S?void 0:S.layerData,name:"".concat(null==S?void 0:null===(v=S.layerData)||void 0===v?void 0:v.name," (1)")},id:T,duration:{...null==S?void 0:S.duration,from:i,trimmedDuration:{...null==S?void 0:null===(g=S.duration)||void 0===g?void 0:g.trimmedDuration,to:(null==S?void 0:null===(b=S.duration)||void 0===b?void 0:null===(y=b.trimmedDuration)||void 0===y?void 0:y.to)||100,from:100*(i-(null==S?void 0:null===(A=S.duration)||void 0===A?void 0:A.from)||0)/e+((null==S?void 0:null===(w=S.duration)||void 0===w?void 0:null===(x=w.trimmedDuration)||void 0===x?void 0:x.from)||0)||0}}},C.push(S)}else S={...S,id:T,duration:{...null==S?void 0:S.duration,from:i}},C.push(S);if(null==o?void 0:o.subtitlesGenerated){let t=[(C=C.filter(e=>(null==e?void 0:e.relatedLayerId)!==(null==o?void 0:o.id))).find(e=>(null==e?void 0:e.id)===(null==o?void 0:o.id)),S],i=await Promise.all(t.map(async t=>{var i;return await e(et({transcription:null==t?void 0:null===(i=t.createdTranscription)||void 0===i?void 0:i.transcription,layerInfo:t}))}));C=[...C,...i.reduce((e,t)=>e.concat(t))]}e({type:"UPDATE_LAYERS_BULK",payload:C}),t&&t({duration:E,newState:{...null===(s=n())||void 0===s?void 0:s.EditorState,layers:C},layerID:T})}},handleUndoEditor:e=>t=>{t({type:"EDITOR_STATE_CHANGED",payload:e})},onRippleDelete:(e,t)=>{let{deletedDuration:i,rowLevel:o}=e;return async(e,n)=>{var r,l,s;let d=JSON.parse(JSON.stringify(null===(l=n())||void 0===l?void 0:null===(r=l.EditorState)||void 0===r?void 0:r.layers)),u=[],c=[];if(d.map(e=>{var t,n,r;if((null==e?void 0:e.level)===o&&(null==e?void 0:null===(t=e.duration)||void 0===t?void 0:t.from)>=(null==i?void 0:i.from)){let t=(null==i?void 0:i.to)-(null==i?void 0:i.from),o={...e,duration:{...null==e?void 0:e.duration,from:(null==e?void 0:null===(n=e.duration)||void 0===n?void 0:n.from)-t,to:(null==e?void 0:null===(r=e.duration)||void 0===r?void 0:r.to)-t}};u.push(o),((null==e?void 0:e.layerType)===a.QP.VIDEO||(null==e?void 0:e.layerType)===a.QP.VIDEOS||(null==e?void 0:e.layerType)===a.QP.CUSTOM_VIDEO)&&(null==e?void 0:e.subtitlesGenerated)&&c.push(o)}else u.push(e)}),null==c?void 0:c.length){let t=await Promise.all(c.map(async t=>{var i;return await e(et({transcription:null==t?void 0:null===(i=t.createdTranscription)||void 0===i?void 0:i.transcription,layerInfo:t}))})),i=c.map(e=>null==e?void 0:e.id);u=[...u=u.filter(e=>0>i.indexOf(null==e?void 0:e.relatedLayerId)),...t.reduce((e,t)=>e.concat(t))]}e({type:"UPDATE_LAYERS_BULK",payload:u}),t&&t({newState:{...null===(s=n())||void 0===s?void 0:s.EditorState,layers:u}})}},checkIsOverlapDuration:$,addLayerToNewLevel:X,getCopiedLayers:()=>(e,t)=>new Promise(e=>{var i,o;let n=structuredClone(null===(o=t())||void 0===o?void 0:null===(i=o.EditorState)||void 0===i?void 0:i.layers);if(null==n?void 0:n.length){let t=n[0],i=structuredClone(null==n?void 0:n.filter((e,t)=>t>0)),o=[];o.push(t),o=[...o,...JSON.parse(JSON.stringify(i||[]))],e(n)}else e([])}),exportVideo:()=>(e,t)=>new Promise(async(i,o)=>{var n,r;let a=null===(n=t())||void 0===n?void 0:n.VideoState;(null==a?void 0:a.uploadCompleted)||o({status:"pending-video"});let l=(await (0,E.S0)()).filter(e=>!(null==e?void 0:e.uploadCompleted));if(null==l?void 0:l.length)o({status:"pending-assets"});else{let t=await e(P.ZP.shapeEditorData({canValidate:!0}));I.R.videos.saveVideoEdits({videoId:null==a?void 0:null===(r=a.uploadedFileInfo)||void 0===r?void 0:r.id,values:{editor_data:t}},async t=>{await e(J()),i(t)},()=>{o({})})}}),generateSubtitles:(e,t)=>{let{createdTranscription:i,video:o}=e;return async(e,n)=>{var r,a,l,s,d;let u=null===(a=n())||void 0===a?void 0:null===(r=a.EditorState)||void 0===r?void 0:r.generalDetails.preview,c=structuredClone(null===(s=n())||void 0===s?void 0:null===(l=s.EditorState)||void 0===l?void 0:l.layers
1),p=c.filter(e=>{var t;return(null===(t=e.layerData)||void 0===t?void 0:t.id)===(null==i?void 0:i.transcripable_id)}),m=(0,R.HY)(null==i?void 0:i.transcription.map((e,t)=>({...e,start:Number(e.start),end:Number(e.end)})),20,.3).map((e,t)=>({...e,subtitleId:t})),h=await eo(m,(null==u?void 0:u.preview_width)*80/100,(null==i?void 0:i.language)==="en"?"Montserrat":"Lalezar",30),f=await Promise.all(p.map(async t=>await e(et({transcription:h,layerInfo:t,language:null==i?void 0:i.language})))),v=c.map(e=>{var t,n;return(null==e?void 0:e.level)>(null===(t=p[0])||void 0===t?void 0:t.level)?{...e,level:(null==e?void 0:e.level)+1}:(null==e?void 0:null===(n=e.layerData)||void 0===n?void 0:n.id)===(null==i?void 0:i.transcripable_id)?{...e,subtitlesGenerated:!0,transcriptionId:null==i?void 0:i.id,subtitlesConfig:{charactersPerLine:20,stylesOptions:{applyToAll:!0},groupType:"group",...null==o?void 0:o.subtitlesConfig}}:e});e(D.ZP.updateVideo({...o,createdTranscription:{...i,transcription:m},subtitlesGenerated:!0,subtitlesConfig:{charactersPerLine:20,groupType:"group",stylesOptions:{applyToAll:!0},...null==o?void 0:o.subtitlesConfig}}));let g=[...v,...f.reduce((e,t)=>e.concat(t))];e({type:"UPDATE_LAYERS_BULK",payload:g}),t&&t({...structuredClone(null===(d=n())||void 0===d?void 0:d.EditorState),layers:g})}},updateSubtitleText:e=>{let{layerId:t,text:i}=e;return async(e,o)=>{var n,r;e({type:"UPDATE_LAYERS_BULK",payload:JSON.parse(JSON.stringify(null===(r=o())||void 0===r?void 0:null===(n=r.EditorState)||void 0===n?void 0:n.layers)).map(e=>(null==e?void 0:e.id)===t?{...e,layerData:{...null==e?void 0:e.layerData,text:i,innerText:i,textContent:i}}:e)})}},updateMainVideoData:e=>{let{video:t}=e;return async(e,i)=>{var o,n;e({type:"UPDATE_LAYERS_BULK",payload:JSON.parse(JSON.stringify(null===(n=i())||void 0===n?void 0:null===(o=n.EditorState)||void 0===o?void 0:o.layers)).map(e=>(null==e?void 0:e.layerType)===a.QP.VIDEO?{...e,layerData:{...null==e?void 0:e.layerData,...t}}:e)})}},updateSubtitleDuration:(e,t)=>{let{relatedLayerId:i,subtitleId:o,duration:n,sideOfChange:r}=e;return async(e,l)=>{var s,d,u,c,p;let m=structuredClone(null===(d=l())||void 0===d?void 0:null===(s=d.EditorState)||void 0===s?void 0:s.layers),h=m.find(e=>(null==e?void 0:e.id)===i),f=structuredClone(null===(c=l())||void 0===c?void 0:null===(u=c.EditorState)||void 0===u?void 0:u.videosSubtitls).find(e=>{var t;return e.id===(null==h?void 0:null===(t=h.layerData)||void 0===t?void 0:t.id)});await f.createdTranscription.transcription.map(e=>{e.subtitleId===o&&("from"===r?e.start=e.end-((null==n?void 0:n.to)-(null==n?void 0:n.from)):e.end=e.start+((null==n?void 0:n.to)-(null==n?void 0:n.from)))}),e(D.ZP.updateVideo(f));let v=m.filter(e=>{var t,i;return(null===(t=e.layerData)||void 0===t?void 0:t.id)===(null==h?void 0:null===(i=h.layerData)||void 0===i?void 0:i.id)&&(null==e?void 0:e.layerType)===a.QP.VIDEO}),g=await Promise.all(v.map(async t=>await e(et({transcription:f.createdTranscription.transcription,layerInfo:t})))),y=v.map(e=>null==e?void 0:e.id),b=[...m=m.filter(e=>!(y.includes(null==e?void 0:e.relatedLayerId)&&(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT)),...g.reduce((e,t)=>e.concat(t))];t&&t({...structuredClone(null===(p=l())||void 0===p?void 0:p.EditorState),layers:b}),e({type:"UPDATE_LAYERS_BULK",payload:b})}},handleResizeTimeLineLayer:(e,t,i)=>{let{data:o,layer:n}=e;return(e,r)=>{var l,s,d,u,c,p,m,h,f,v,g,y,b,A,x,w,_,S,k,T,E,P,I,D,O,N,M,R,z,L;let V=structuredClone(n),F=null===(s=r())||void 0===s?void 0:null===(l=s.Timeline)||void 0===l?void 0:l.totalDuration,U=null===(u=r())||void 0===u?void 0:null===(d=u.Timeline)||void 0===d?void 0:d.fraction,G=null===(p=r())||void 0===p?void 0:null===(c=p.Timeline)||void 0===c?void 0:c.fractionInPx,B=1e3*F/U*G,Z=structuredClone(null===(h=r())||void 0===h?void 0:null===(m=h.EditorState)||void 0===m?void 0:m.layers),{closestElementPosition:q}=o,W={from:0},Y=0>=Number(null==o?void 0:o.x)?0:Math.round(Number(null==o?void 0:o.x)),K=(null==V?void 0:null===(f=V.duration)||void 0===f?void 0:f.trimmedDuration)||(null==V?void 0:V.trimmedDuration)||{};if([a.QP.AUDIO_SOUND,a.QP.VIDEOS,a.QP.VIDEO].includes(null==V?void 0:V.layerType)){let e=Number(null==V?void 0:null===(g=V.layerData)||void 0===g?void 0:null===(v=g.meta)||void 0===v?void 0:v.duration)||Number(null==V?void 0:null===(y=V.layerData)||void 0===y?void 0:y.duration)||Number(null==V?void 0:null===(b=V.layerData)||void 0===b?void 0:b.length),t=1e3*e/U*G,[i]="".concat(t).split(".");if(Number(i)-Number(null==o?void 0:o.width)<=0)K.from=0,K.to=0;else if((null==o?void 0:o.dir)==="left"){let i=(null==V?void 0:null===(x=V.duration)||void 0===x?void 0:null===(A=x.trimmedDuration)||void 0===A?void 0:A.to)*t/100,n=(t-(Number(null==o?void 0:o.width)+(i>0?t-i:0)))*e/t;K.from=n<0?0:100*n/e}else if((null==o?void 0:o.dir)==="right"){let i=((null==V?void 0:null===(_=V.duration)||void 0===_?void 0:null===(w=_.trimmedDuration)||void 0===w?void 0:w.from)||
10)*t/100,n=t-(Number(null==o?void 0:o.width)+i);if(n<0){K.to=0;let i=(t*K.from/100+n)*e/t;K.from=i<0?0:i}else{let i=(0,C.Md)(e-n*e/t,3);K.to=i<0?0:100*i/e}}}let Q=Z.find(e=>(null==e?void 0:e.id)===(null==q?void 0:q.layerId)),X=0,J=0,ee={};(null==Q?void 0:Q.id)?(null==q?void 0:q.isRight)&&(null==o?void 0:o.dir)==="right"?ee={from:null==V?void 0:null===(S=V.duration)||void 0===S?void 0:S.from,to:null==Q?void 0:null===(k=Q.duration)||void 0===k?void 0:k.to,trimmedDuration:K}:(null==q?void 0:q.isLeftRight)&&(null==o?void 0:o.dir)==="left"?ee={from:null==Q?void 0:null===(T=Q.duration)||void 0===T?void 0:T.to,to:null==V?void 0:null===(E=V.duration)||void 0===E?void 0:E.to,trimmedDuration:K}:(null==q?void 0:q.isRightLeft)&&(null==o?void 0:o.dir)==="right"?ee={from:null==V?void 0:null===(P=V.duration)||void 0===P?void 0:P.from,to:null==Q?void 0:null===(I=Q.duration)||void 0===I?void 0:I.from,trimmedDuration:K}:(null==q?void 0:q.isLeft)&&(null==o?void 0:o.dir)==="left"?ee={from:null==Q?void 0:null===(D=Q.duration)||void 0===D?void 0:D.from,to:null==V?void 0:null===(O=V.duration)||void 0===O?void 0:O.to,trimmedDuration:K}:(null==o?void 0:o.dir)==="left"?(X=100*Y/B<=(null==W?void 0:W.from)?null==W?void 0:W.from:100*Y/B*F/100,J=null==V?void 0:null===(N=V.duration)||void 0===N?void 0:N.to,ee={from:(0,C.Md)(X>=0?X:0,3),to:J,trimmedDuration:K}):(X=null==V?void 0:null===(M=V.duration)||void 0===M?void 0:M.from,J=100*Number(null==o?void 0:o.width)/B*F/100,ee={from:X,to:(0,C.Md)(J+X,3),trimmedDuration:K}):(X=100*Y/B<=(null==W?void 0:W.from)?null==W?void 0:W.from:100*Y/B*F/100,J=100*Number(null==o?void 0:o.width)/B*F/100,ee=(null==o?void 0:o.dir)==="left"?{from:(0,C.Md)(X>=0?X:0,3),to:V.duration.to,trimmedDuration:K}:{from:V.duration.from,to:(0,C.Md)(J+X,3),trimmedDuration:K});let et=e($({newDuration:ee,layerInfo:V,dir:null==o?void 0:o.dir})),ei=(null==K?void 0:K.to)>0&&(null==K?void 0:K.to)-(null==K?void 0:K.from)<0;JSON.stringify(ee)===JSON.stringify(null==V?void 0:V.duration)||et||ei?i&&i({width:1e3*F/U*G*((null===(R=V.duration)||void 0===R?void 0:R.to)*100/F)/100-1e3*F/U*G*((null===(z=V.duration)||void 0===z?void 0:z.from)*100/F)/100,x:1e3*F/U*G*((null===(L=n.duration)||void 0===L?void 0:L.from)*100/F)/100}):((null==V?void 0:V.layerType)===a.QP.VIDEO&&(null==V?void 0:V.id)==="layer-0"&&e(j.ZP.updateDuration({duration:{...K,to:(null==K?void 0:K.to)===0?100:null==K?void 0:K.to}})),e(H({layerId:null==V?void 0:V.id,values:{name:"duration",values:{...ee,trimmedDuration:K}}},e=>{t&&t(e)})))}},hanndleDragTimeLineLayer:(e,t,i)=>{let{data:o,layer:n}=e;return(e,r)=>{var a,l,s,d,u,c,p,m,h,f,v,g,y,b,A,x,w,_,S,k,T;let E=null===(l=r())||void 0===l?void 0:null===(a=l.Timeline)||void 0===a?void 0:a.totalDuration,P=null===(d=r())||void 0===d?void 0:null===(s=d.Timeline)||void 0===s?void 0:s.fraction,I=null===(c=r())||void 0===c?void 0:null===(u=c.Timeline)||void 0===u?void 0:u.fractionInPx,D=1e3*E/P*I,O=structuredClone(null===(m=r())||void 0===m?void 0:null===(p=m.EditorState)||void 0===p?void 0:p.layers),N=structuredClone(null===(f=r())||void 0===f?void 0:null===(h=f.Timeline)||void 0===h?void 0:h.currentTime),{closestRowPosition:j,closestElementPosition:M}=o,R={from:0},z=O.find(e=>(null==e?void 0:e.id)===(null==M?void 0:M.layerId)),L=0,V=0,F={},U=(null==n?void 0:n.duration.to)-(null==n?void 0:null===(v=n.duration)||void 0===v?void 0:v.from);(null==M?void 0:M.isRight)?F=(null==M?void 0:M.layerId)==="seeker"?{...null==n?void 0:n.duration,to:N,from:N-U}:{...null==n?void 0:n.duration,to:null==z?void 0:null===(g=z.duration)||void 0===g?void 0:g.to,from:(null==z?void 0:null===(y=z.duration)||void 0===y?void 0:y.to)-U}:(null==M?void 0:M.isLeftRight)?F=(null==M?void 0:M.layerId)==="seeker"?{...null==n?void 0:n.duration,from:N,to:N+U}:{...null==n?void 0:n.duration,from:null==z?void 0:null===(b=z.duration)||void 0===b?void 0:b.to,to:(null==z?void 0:null===(A=z.duration)||void 0===A?void 0:A.to)+U}:(null==M?void 0:M.isRightLeft)?F=(null==M?void 0:M.layerId)==="seeker"?{...null==n?void 0:n.duration,from:N-U,to:N}:{...null==n?void 0:n.duration,from:(null==z?void 0:null===(x=z.duration)||void 0===x?void 0:x.from)-U,to:null==z?void 0:null===(w=z.duration)||void 0===w?void 0:w.from}:(null==M?void 0:M.isLeft)?F=(null==M?void 0:M.layerId)==="seeker"?{...null==n?void 0:n.duration,to:N+U,from:N}:{...null==n?void 0:n.duration,to:(null==z?void 0:null===(_=z.duration)||void 0===_?void 0:_.from)+U,from:null==z?void 0:null===(S=z.duration)||void 0===S?void 0:S.from}:(L=(null==o?void 0:o.x)*100/D<=(null==R?void 0:R.from)?null==R?void 0:R.from:(null==o?void 0:o.x)*100/D*E/100,V=(null==o?void 0:null===(k=o.node)||void 0===k?void 0:k.clientWidth)*100/D*E/100,F={...null==n?void 0:n.duration,from:(0,C.Md)(L>=0?L:0,3),to:(0,C.Md)(V+L,3)});let G=e($({newDuration:F,layerInfo:{...n,level:((null==j?void 0:j.after)?-1:null)||(null==j?void 0:j.rowLevel)||(null==n?void 0:n.level)}}
1));(JSON.stringify(F)!==JSON.stringify(null==n?void 0:n.duration)||(null==j?void 0:j.after)&&(null==j?void 0:j.after)!==(null==n?void 0:n.level)||(null==j?void 0:j.rowLevel)&&(null==j?void 0:j.rowLevel)!==(null==n?void 0:n.level))&&!G?(null==j?void 0:j.after)?(e(X({after:null==j?void 0:j.after,layerInfo:{layerId:null==n?void 0:n.id,values:{name:"duration",values:F}}},e=>{t&&t(e)})),o.node.style.top="".concat(null==j?void 0:j.height,"px")):e(H({layerId:null==n?void 0:n.id,values:{name:"duration",values:F},otherValues:(null==j?void 0:j.rowLevel)?{level:(null==j?void 0:j.rowLevel)||(null==j?void 0:j.after)+1}:{}},e=>{t&&t(e)})):i&&i({x:1e3*E/P*I*((null===(T=n.duration)||void 0===T?void 0:T.from)*100/E)/100})}},addNewSubtitle:e=>{let{video:t}=e;return async(e,i)=>new Promise(async(o,n)=>{var r,l,s,d,u,c,p,m,h,f,v,g,y,b,A,x;let w=structuredClone(null===(l=i())||void 0===l?void 0:null===(r=l.EditorState)||void 0===r?void 0:r.videosSubtitls)||[],_=null===(u=i())||void 0===u?void 0:null===(d=u.EditorState)||void 0===d?void 0:null===(s=d.layers)||void 0===s?void 0:s.filter(e=>{var i;return(null==e?void 0:null===(i=e.layerData)||void 0===i?void 0:i.id)===(null==t?void 0:t.id)}),S=null==_?void 0:_.slice(-1)[0],k=Number(null==S?void 0:null===(p=S.layerData)||void 0===p?void 0:null===(c=p.meta)||void 0===c?void 0:c.duration)||Number(null==S?void 0:null===(m=S.layerData)||void 0===m?void 0:m.duration)||Number(null==S?void 0:null===(h=S.layerData)||void 0===h?void 0:h.length),T=null==S?void 0:null===(f=S.duration)||void 0===f?void 0:f.trimmedDuration,E={from:(0,C.Md)(((null==T?void 0:T.from)||0)*k/100,3),to:(0,C.Md)(((null==T?void 0:T.to)||100)*k/100,3)},P=w.find(e=>(null==e?void 0:e.id)===(null==t?void 0:t.id)),I=null===(g=(null==P?void 0:null===(v=P.createdTranscription)||void 0===v?void 0:v.transcription.filter(e=>!((null==e?void 0:e.start)>=(null==E?void 0:E.to)||(null==e?void 0:e.deleted)))).sort(function(e,t){return(null==e?void 0:e.end)-(null==t?void 0:t.end)}))||void 0===g?void 0:g.slice(-1)[0],O=Number(null==E?void 0:E.to)-(null==I?void 0:I.end),N={start:null==I?void 0:I.end,end:O>2?(null==I?void 0:I.end)+2:Number(null==E?void 0:E.to),text:"",original:[{start:null==I?void 0:I.end,end:O>2?(null==I?void 0:I.end)+2:Number(null==E?void 0:E.to),text:""}]};if((null==I?void 0:I.end)>=(null==E?void 0:E.to))n({type:"cannotAddAfter"});else if((null==N?void 0:N.end)<=(null==E?void 0:E.to)){e(D.ZP.addNewSubtitle(null==t?void 0:t.id,N));let n=structuredClone(null===(b=i())||void 0===b?void 0:null===(y=b.EditorState)||void 0===y?void 0:y.layers),r=n.filter(e=>{var i;return(null===(i=e.layerData)||void 0===i?void 0:i.id)===(null==t?void 0:t.id)&&(null==e?void 0:e.layerType)===a.QP.VIDEO}),l=await Promise.all(r.map(async i=>await e(et({transcription:t.createdTranscription.transcription,layerInfo:i})))),s=r.map(e=>null==e?void 0:e.id);n=n.filter(e=>!(s.includes(null==e?void 0:e.relatedLayerId)&&(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT));let d=[...l.reduce((e,t)=>e.concat(t))];e({type:"ADD_LAYER_AND_MAKE_ACTIVE",payload:{copiedLayers:[...n,...d],layerId:null===(A=d[(null==d?void 0:d.length)-1])||void 0===A?void 0:A.id}}),o({newState:{...null===(x=i())||void 0===x?void 0:x.EditorState,layers:n}})}})},addNewSubtitleAfter:e=>{let{subtitleId:t,relatedLayerId:i}=e;return async(e,o)=>new Promise(async(n,r)=>{var l,s,d,u,c,p,m,h,f,v,g,y,b,A;let x=structuredClone(null===(s=o())||void 0===s?void 0:null===(l=s.EditorState)||void 0===l?void 0:l.layers),w=null==x?void 0:x.find(e=>(null==e?void 0:e.id)===i),_=(structuredClone(null===(u=o())||void 0===u?void 0:null===(d=u.EditorState)||void 0===d?void 0:d.videosSubtitls)||[]).find(e=>{var t;return(null==e?void 0:e.id)===(null==w?void 0:null===(t=w.layerData)||void 0===t?void 0:t.id)}),S=null==_?void 0:null===(c=_.createdTranscription)||void 0===c?void 0:c.transcription.filter(e=>!(null==e?void 0:e.deleted)).sort(function(e,t){return(null==e?void 0:e.end)-(null==t?void 0:t.end)}),k=S.find(e=>(null==e?void 0:e.subtitleId)===t),T=S.findIndex(e=>(null==e?void 0:e.subtitleId)===t),E=S[T+1],P={};if(E){let e=(null==E?void 0:E.start)-(null==k?void 0:k.end);P={start:null==k?void 0:k.end,end:e>2?(null==k?void 0:k.end)+2:null==E?void 0:E.start,text:"",original:[{start:null==k?void 0:k.end,end:e>2?(null==k?void 0:k.end)+2:null==E?void 0:E.start,text:""}]}}else{let e=x.find(e=>(null==e?void 0:e.id)===i),t=Number((null==e?void 0:null===(h=e.layerData)||void 0===h?void 0:h.duration)||(null==e?void 0:null===(f=e.layerData)||void 0===f?void 0:f.length)),o={from:(0,C.Md)(((null==e?void 0:null===(g=e.duration)||void 0===g?void 0:null===(v=g.trimmedDuration)||void 0===v?void 0:v.from)||0)*t/100,3),to:(0,C.Md)(((null==e?void 0:null===(b=e.duration)||void 0===b?void 0:null===(y=b.trimmedDuration)||void 0===y?void 0:y.to)||100)*t/100,3)},n=(null==o?void 0:o.to)+((null==e?void 0:null===(A=e.duration)||void 0===A?void 0:A.from)-(null==o?void 0:o.from)),r=n-(null==k?void 0:k.end);P={start:null==k?void 0:k.end,end:r>2?(null==k?void 0:k.end)+2:n,text:"",original:[{start:null==k?void 0:k.end,end:r>2?(null==k?void 0:k.end)+2:n,text:""}]}}
1e(D.ZP.addNewSubtitle(null==w?void 0:null===(p=w.layerData)||void 0===p?void 0:p.id,P));let I=x.filter(e=>{var t,i;return(null===(t=e.layerData)||void 0===t?void 0:t.id)===(null==w?void 0:null===(i=w.layerData)||void 0===i?void 0:i.id)&&(null==e?void 0:e.layerType)===a.QP.VIDEO}),O=await Promise.all(I.map(async t=>{var i;return await e(et({transcription:null==_?void 0:null===(i=_.createdTranscription)||void 0===i?void 0:i.transcription,layerInfo:t}))})),N=I.map(e=>null==e?void 0:e.id),j=[...x=x.filter(e=>!(N.includes(null==e?void 0:e.relatedLayerId)&&(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT)),...O.reduce((e,t)=>e.concat(t))];e({type:"UPDATE_LAYERS_BULK",payload:j}),n({newState:{...null===(m=o())||void 0===m?void 0:m.EditorState,layers:j}})})},changeTextLayerAttributes:(e,t)=>{let{layerId:i,key:o,value:n,attribute:r}=e;return async(e,l)=>{var s,u,c,p,m,h,f,v,g;let y=null===(u=l())||void 0===u?void 0:null===(s=u.EditorState)||void 0===s?void 0:s.generalDetails.preview,b=structuredClone(null===(p=l())||void 0===p?void 0:null===(c=p.EditorState)||void 0===c?void 0:c.layers),A=structuredClone(d()(b,{id:i})),x=structuredClone(null===(h=l())||void 0===h?void 0:null===(m=h.EditorState)||void 0===m?void 0:m.videosSubtitls),w=null==b?void 0:b.find(e=>(null==e?void 0:e.id)===(null==A?void 0:A.relatedLayerId)),_=null==x?void 0:x.find(e=>{var t;return(null==e?void 0:e.id)===(null==w?void 0:null===(t=w.layerData)||void 0===t?void 0:t.id)}),S=null==_?void 0:null===(v=_.subtitlesConfig)||void 0===v?void 0:null===(f=v.stylesOptions)||void 0===f?void 0:f.applyToAll;await b.map((e,t)=>{if(((null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT||(null==e?void 0:e.layerType)===a.QP.TEXT)&&(S&&(null==e?void 0:e.relatedLayerId)===(null==A?void 0:A.relatedLayerId)||(null==e?void 0:e.id)===i)){var l,s,d,u,c,p,m,h,f,v,g,x,w,_,C,k,T,E;let i=null;"fontFamily"===o||"fontWeight"===o?i=(0,M.vG)(Number("".concat(null==e?void 0:null===(d=e.attributes)||void 0===d?void 0:null===(s=d.style)||void 0===s?void 0:s.fontSize).replace("px","")),(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT&&(null==e?void 0:null===(u=e.attributes)||void 0===u?void 0:u.textEffect)&&(null==e?void 0:null===(p=e.attributes)||void 0===p?void 0:null===(c=p.textEffect)||void 0===c?void 0:c.value)!=="plain"?O.Z.wrapTextWithSpans(null==e?void 0:null===(m=e.layerData)||void 0===m?void 0:m.text):null==e?void 0:null===(h=e.layerData)||void 0===h?void 0:h.text,(null==y?void 0:y.preview_width)*Number("".concat(null==e?void 0:null===(f=e.position)||void 0===f?void 0:f.width).replace("%",""))/100,null==n?void 0:n.label):"fontSize"===o&&(i=(0,M.vG)(Number("".concat((null==n?void 0:n.value)||n).replace("px","")),(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT&&(null==e?void 0:null===(v=e.attributes)||void 0===v?void 0:v.textEffect)&&(null==e?void 0:null===(x=e.attributes)||void 0===x?void 0:null===(g=x.textEffect)||void 0===g?void 0:g.value)!=="plain"?O.Z.wrapTextWithSpans(null==e?void 0:null===(w=e.layerData)||void 0===w?void 0:w.text):null==e?void 0:null===(_=e.layerData)||void 0===_?void 0:_.text,(null==y?void 0:y.preview_width)*Number("".concat(null==e?void 0:null===(C=e.position)||void 0===C?void 0:C.width).replace("%",""))/100,null==e?void 0:null===(E=e.attributes)||void 0===E?void 0:null===(T=E.style)||void 0===T?void 0:null===(k=T.fontFamily)||void 0===k?void 0:k.label)),b[t]={...e,attributes:{...null==e?void 0:e.attributes,...null==A?void 0:A.attributes,[r]:{..."effect"!==o?{...null==e?void 0:e.attributes[r],...null==A?void 0:A.attributes[r],[o]:"fontSize"===o?null==n?void 0:n.value:n}:n||{}}},position:{...null==e?void 0:e.position,height:i?"".concat(100*i/(null==y?void 0:y.preview_height),"%"):null==e?void 0:null===(l=e.position)||void 0===l?void 0:l.height}}}}),e({type:"UPDATE_LAYERS_BULK",payload:b});let C=structuredClone(null===(g=l())||void 0===g?void 0:g.EditorState);C=await {...C,layers:b},t&&t(C)}},changeTextLayerPositionAndSize:(e,t)=>{let{layerId:i,values:o,newFontSize:n,key:r}=e;return async(e,l)=>{var s,u,c,p,m,h,f,v,g;let y=null===(u=l())||void 0===u?void 0:null===(s=u.EditorState)||void 0===s?void 0:s.generalDetails.preview,b=structuredClone(null===(p=l())||void 0===p?void 0:null===(c=p.EditorState)||void 0===c?void 0:c.layers),A=structuredClone(d()(b,{id:i})),x=structuredClone(null===(h=l())||void 0===h?void 0:null===(m=h.EditorState)||void 0===m?void 0:m.videosSubtitls),w=null==b?void 0:b.find(e=>(null==e?void 0:e.id)===(null==A?void 0:A.relatedLayerId)),_=null==x?void 0:x.find(e=>{var t;return(null==e?void 0:e.id)===(null==w?void 0:null===(t=w.layerData)||void 0===t?void 0:t.id)}),S=null==_?void 0:null===(v=_.subtitlesConfig)||void 0===v?void 0:null===(f=v.stylesOptions)||void 0===f?void 0:f.a
1pplyToAll;await b.map((e,t)=>{if(((null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT||(null==e?void 0:e.layerType)===a.QP.TEXT)&&(S&&(null==e?void 0:e.relatedLayerId)===(null==A?void 0:A.relatedLayerId)||(null==e?void 0:e.id)===i)){var l,s,d,u,c,p,m,h,f,v,g,x,w,_,C,k,T,E,P,I,D,N;let i=(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT?(0,R.Y9)((null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT&&(null==e?void 0:null===(l=e.attributes)||void 0===l?void 0:l.textEffect)&&(null==e?void 0:null===(d=e.attributes)||void 0===d?void 0:null===(s=d.textEffect)||void 0===s?void 0:s.value)!=="plain"?O.Z.wrapTextWithSpans(null==e?void 0:null===(u=e.layerData)||void 0===u?void 0:u.text):null==e?void 0:null===(c=e.layerData)||void 0===c?void 0:c.text,null==e?void 0:null===(h=e.attributes)||void 0===h?void 0:null===(m=h.style)||void 0===m?void 0:null===(p=m.fontFamily)||void 0===p?void 0:p.label,Number("".concat(null==e?void 0:null===(v=e.attributes)||void 0===v?void 0:null===(f=v.style)||void 0===f?void 0:f.fontSize).replace("px",""))):null,S=null;"resize"===r&&(S=(0,M.vG)(Number("".concat(n).replace("px","")),(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT&&(null==e?void 0:null===(_=e.attributes)||void 0===_?void 0:_.textEffect)&&(null==e?void 0:null===(k=e.attributes)||void 0===k?void 0:null===(C=k.textEffect)||void 0===C?void 0:C.value)!=="plain"?O.Z.wrapTextWithSpans(null==e?void 0:null===(T=e.layerData)||void 0===T?void 0:T.text):null==e?void 0:null===(E=e.layerData)||void 0===E?void 0:E.text,(null==y?void 0:y.preview_width)*Number("".concat((null==o?void 0:o.width)||(null==e?void 0:null===(P=e.position)||void 0===P?void 0:P.width)).replace("%",""))/100,null==e?void 0:null===(N=e.attributes)||void 0===N?void 0:null===(D=N.style)||void 0===D?void 0:null===(I=D.fontFamily)||void 0===I?void 0:I.label)),b[t]={...e,attributes:{...null==e?void 0:e.attributes,...null==A?void 0:A.attributes,...n?{style:{...null==e?void 0:null===(g=e.attributes)||void 0===g?void 0:g.style,...null==A?void 0:null===(x=A.attributes)||void 0===x?void 0:x.style,fontSize:n}}:{}},position:{...null==e?void 0:e.position,..."resize"===r?{...o,width:i&&Number(null===(w="".concat(null==o?void 0:o.width))||void 0===w?void 0:w.replace("%",""))<100*i/(null==y?void 0:y.preview_width)?i:null==o?void 0:o.width,height:S?"".concat(100*S/(null==y?void 0:y.preview_height),"%"):o.height}:{x:null==o?void 0:o.x,y:null==o?void 0:o.y}}}}}),e({type:"UPDATE_LAYERS_BULK",payload:b});let C=structuredClone(null===(g=l())||void 0===g?void 0:g.EditorState);C=await {...C,layers:b},t&&t(C)}},updateTranscriptionGroupType:e=>{let{videoId:t,groupType:i}=e;return async(e,o)=>{var n,r,l,s;let d=structuredClone(null===(r=o())||void 0===r?void 0:null===(n=r.EditorState)||void 0===n?void 0:n.layers),u=structuredClone(null===(s=o())||void 0===s?void 0:null===(l=s.EditorState)||void 0===l?void 0:l.videosSubtitls).find(e=>e.id===t);u.subtitlesConfig.groupType=i;let c=d.filter(e=>{var i;return(null===(i=e.layerData)||void 0===i?void 0:i.id)===t&&(null==e?void 0:e.layerType)===a.QP.VIDEO}),p=await O.Z.unmergeTranscriptions(u.createdTranscription.transcription.filter(e=>!(null==e?void 0:e.deleted))),m=(0,R.HY)(p.sort(function(e,t){return(null==e?void 0:e.end)-(null==t?void 0:t.end)}).map((e,t)=>({...e,start:Number(e.start),end:Number(e.end)})),"group"===i?20:"single"===i?3:40,"group"===i?.3:"single"===i?0:.
16).map((e,t)=>({...e,subtitleId:t}));e(D.ZP.updateVideo({...u,createdTranscription:{...u.createdTranscription,transcription:m}}));let h=await Promise.all(c.map(async t=>await e(et({transcription:m,layerInfo:t,reArrange:!0})))),f=c.map(e=>null==e?void 0:e.id);e({type:"UPDATE_LAYERS_BULK",payload:[...d=d.filter(e=>!(f.includes(null==e?void 0:e.relatedLayerId)&&(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT)),...h.reduce((e,t)=>e.concat(t))]})}},deleteSubtitles:(e,t)=>{let{videoId:i}=e;return async(e,o)=>{var n,r,l;let s=structuredClone(null===(r=o())||void 0===r?void 0:null===(n=r.EditorState)||void 0===n?void 0:n.layers),d=s.filter(e=>{var t;return(null==e?void 0:null===(t=e.layerData)||void 0===t?void 0:t.id)===i&&(null==e?void 0:e.layerType)===a.QP.VIDEO}).map(e=>null==e?void 0:e.id),u=s.filter(e=>!(d.includes(null==e?void 0:e.relatedLayerId)&&(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT));e({type:"UPDATE_LAYERS_BULK",payload:u=u.map(e=>{var t;return(null==e?void 0:null===(t=e.layerData)||void 0===t?void 0:t.id)===i?{...e,subtitlesGenerated:!1}:e})});let c=structuredClone(null===(l=o())||void 0===l?void 0:l.EditorState);c=await {...c,layers:u},t&&t(c)}},updateLayerEffect:(e,t)=>{let{layerId:i,textEffect:o}=e;return async(e,n)=>{var r,a,l,s,d,u,c;let p=structuredClone(null===(a=n())||void 0===a?void 0:null===(r=a.EditorState)||void 0===r?void 0:r.layers),m=p.find(e=>(null==e?void 0:e.id)===i),h=structuredClone(null===(s=n())||void 0===s?void 0:null===(l=s.EditorState)||void 0===l?void 0:l.videosSubtitls),f=null==p?void 0:p.find(e=>(null==e?void 0:e.id)===(null==m?void 0:m.relatedLayerId)),v=null==h?void 0:h.find(e=>{var t;return(null==e?void 0:e.id)===(null==f?void 0:null===(t=f.layerData)||void 0===t?void 0:t.id)}),g=null==v?void 0:null===(u=v.subtitlesConfig)||void 0===u?void 0:null===(d=u.stylesOptions)||void 0===d?void 0:d.applyToAll;null==o||o.value;let y={...m,layerData:en(null==m?void 0:m.layerData),attributes:{...null==m?void 0:m.attributes,textEffect:o}},b=p.map(e=>(null==e?void 0:e.id)===i?y:(null==e?void 0:e.relatedLayerId)===(null==y?void 0:y.relatedLayerId)&&g?{...e,layerData:en(null==e?void 0:e.layerData),attributes:{...null==e?void 0:e.attributes,textEffect:o}}:e);e({type:"UPDATE_LAYERS_BULK",payload:b});let A=structuredClone(null===(c=n())||void 0===c?void 0:c.EditorState);A=await {...A,layers:b},t&&t(A)}},getSubtitleRelatedVideoLayer:e=>{let{layerId:t}=e;return(e,i)=>new Promise((e,o)=>{try{var n,r;let o=structuredClone(null===(r=i())||void 0===r?void 0:null===(n=r.EditorState)||void 0===n?void 0:n.layers).find(e=>(null==e?void 0:e.id)===t);e(o)}catch(e){}})},shapeTextTranscriptionDuration:et,getRelatedVideoLayer:e=>{let{layerId:t}=e;return(e,i)=>{var o,n;let r=null===(n=i())||void 0===n?void 0:null===(o=n.EditorState)||void 0===o?void 0:o.layers;return(null==r?void 0:r.length)?r.find(e=>(null==e?void 0:e.id)===t):{}}},getLayerMinMaxDuration:e=>{let{layer:t}=e;return(e,i)=>{var o,n;return function(e,t){var i,o,n,r,a,l,s,d,u,c;let p=e.findIndex(e=>e.id===t);return -1===p?{before:null,after:null}:{before:p>0?{...e[p-1],endObject:(0,N.Bw)(null===(o=e[p-1])||void 0===o?void 0:null===(i=o.duration)||void 0===i?void 0:i.to)}:null,after:p<e.length-1?{...e[p+1],startObject:(0,N.Bw)(null===(r=e[p+1])||void 0===r?void 0:null===(n=r.duration)||void 0===n?void 0:n.from)}:null,current:{...e[p],endObject:(0,N.Bw)(null===(l=e[p])||void 0===l?void 0:null===(a=l.duration)||void 0===a?void 0:a.to),startObject:(0,N.Bw)(null===(d=e[p])||void 0===d?void 0:null===(s=d.duration)||void 0===s?void 0:s.from),maxDuration:(0,N.Bw)(null===(c=e[p])||void 0===c?void 0:null===(u=c.layerData)||void 0===u?void 0:u.duration)}}}(structuredClone(null===(n=i())||void 0===n?void 0:null===(o=n.EditorState)||void 0===o?void 0:o.layers).filter(e=>e.level===(null==t?void 0:t.level)).sort(function(e,t){return(null==e?void 0:e.from)-(null==t?void 0:t.from)}),null==t?void 0:t.id)}},generateSubtitlesTool:(e,t)=>{let{createdTranscription:i,video:o}=e;return async(e,n)=>{var r,a,l,s;let d=structuredClone(null===(a=n())||void 0===a?void 0:null===(r=a.EditorState)||void 0===r?void 0:r.layers)||[],u=null===(l=n())||void 0===l?void 0:l.VideoState,c=(0,R.HY)(null==i?void 0:i.transcription.map((e,t)=>({...e,start:Number(e.start),end:Number(e.end)})),20,.3).map((e,t)=>({...e,subtitleId:t})),p={width:(null==u?void 0:u.videoWidth)/(null==u?void 0:u.videoHeight)*150,height:150},m=await eo(c,80*p.width/100,(null==i?void 0:i.language)==="en"?"Montserrat":"Lalezar",10),h=await Promise.all([u].map(async t=>await e(et({transcription:m,layerInfo:{layerData:{duration:null==t?void 0:t.duration},duration:{from:0,to:null==t?void 0:t.duration},level:1,id:"layer-0"},language:null==i?void 0:i.language})))),f=[{withEdits:!1,layerData:{...u},subtitlesGenerated:!0,transcriptionId:null==i?void 0:i.id,subtitlesConfig:{charactersPerLine:20,stylesOptions:{applyToAll:!0},groupType:"group"},layerType:"video",level:1,attributes:{volume:50},duration:{from:0,to:null==u?void 0:u.duration,trimmedDuration:{from:0,to:100}},id:"layer-0",order:0},...d].map(e=>{var t;return(null==e?void 0:e.level)>0?{...e,level:(null==e?void 0:e.level)+1}:(null==e?void 0:null===(t=e.layerData)||void 0===t?void 0:t.id)===(null==i?void 0:i.transcripable_id)?{...e,subtitlesGenerated:!0,transcriptionId:null==i?void 0:i.id,subtitlesConfig:{charactersPerLine:20,stylesOptions:{applyToAll:!0},groupType:"group",...null==o?void 0:o.subtitlesConfig}}:e});e(D.ZP.updateVideo({...o,createdTranscription:{...i,transcription:c},subtitlesGenerated:!0,subtitlesConfig:{charactersPerLine:20,groupType:"group",stylesOptions:{applyToAll:!0},...null==o?void 0:o.subtitlesConfig}}));let v=[...f,...h.reduce((e,t)=>
1e.concat(t))];e({type:"UPDATE_LAYERS_BULK",payload:v}),t&&t({...structuredClone(null===(s=n())||void 0===s?void 0:s.EditorState),layers:v})}}}},94876:function(e,t,i){"use strict";var o;i.d(t,{n:function(){return o}}),(o||(o={})).TAB_CHANGED="TAB_CHANGED",t.Z={changeHamburgerTab:e=>{let{isTabVisible:t}=e;return(e,i)=>{e({type:"TAB_CHANGED",payload:{isTabVisible:t}})}}}},915:function(e,t,i){"use strict";i.d(t,{gq:function(){return n}});var o,n,r=i(20931),a=i(20533),l=i(51348),s=i(41894),d=i(45608),u=i(38715),c=i(35161),p=i.n(c),m=i(41609),h=i.n(m),f=i(1469),v=i.n(f),g=i(64329),y=i(47095),b=i(63394),A=i(54178);let x=null;(o=n||(n={})).UPDATE_VIDEO_INPUT_REF="UPDATE_VIDEO_INPUT_REF",o.UPDATE_VIDEO_REF="UPDATE_VIDEO_REF",o.UPDATE_VIDEO_INSTANCE="UPDATE_VIDEO_INSTANCE",o.UPDATE_LAYERR_SOURCE_INFO="UPDATE_LAYERR_SOURCE_INFO",o.UPDATE_LAYERR_DESTINATION_INFO="UPDATE_LAYERR_DESTINATION_INFO",o.UPDATE_LAYERS_INFO="UPDATE_LAYERS_INFO",o.UPDATE_LAYERS_INFO_AFTER_ASPECT_RATIO="UPDATE_LAYERS_INFO_AFTER_ASPECT_RATIO",o.UPDATE_OUTPUT_SETTINGS="UPDATE_OUTPUT_SETTINGS",o.UPDATE_EDITOR_SETTINGS="UPDATE_EDITOR_SETTINGS",o.UPDATE_DURATION="UPDATE_DURATION",o.ADD_LAYER="ADD_LAYER",o.UPDATE_VIDEO_STATE="UPDATE_VIDEO_STATE",o.SOURCE_CLIENT_DIMENTIONS="SOURCE_CLIENT_DIMENTIONS",o.SAVE_TO_COMPILE="SAVE_TO_COMPILE",o.CHANGE_FOCUS_STATE="CHANGE_FOCUS_STATE",o.GENERAL_DATA="GENERAL_DATA",o.LOAD_STORED_DATA="LOAD_STORED_DATA",o.RESET_CHANGES="RESET_CHANGES",o.CLEAR_STATE="CLEAR_STATE";let w=e=>{let{layerInfo:t,resizerState:i}=e;return new Promise((e,o)=>{e({layers:[...null==i?void 0:i.layers,t]})})},_=e=>{let{layerKey:t,resizerState:i}=e;return new Promise((e,o)=>{let n=JSON.parse(JSON.stringify(null==i?void 0:i.layers));e({layers:n=(0,l.X3)(n,t)})})},S=e=>{let{faceCamType:t,aspectRatio:i}=e,o=y.ZP.getItemFromLocalStorage({name:"1-".concat(t,"-preference-").concat(i)});return o?JSON.parse(o):null},C=(e,t)=>(t,i)=>{var o,n,r,a,l;let s=document.getElementById("videoElement"),c=document.getElementById("".concat(e)),p=document.getElementById("sourceContainer"),m=c.getContext("2d");if(m.clearRect(0,0,c.width,c.height),null===(r=i())||void 0===r?void 0:null===(n=r.ResizerState)||void 0===n?void 0:null===(o=n.outputSettings)||void 0===o?void 0:o.blured){let e=null===(l=i())||void 0===l?void 0:null===(a=l.ResizerState)||void 0===a?void 0:a.layers[0],t=(0,d.k3)(e.sourceInfo.width)?e.sourceInfo.width.split("%")[0]/100*(null==p?void 0:p.clientWidth):e.sourceInfo.width,o=(0,d.k3)(e.sourceInfo.height)?e.sourceInfo.height.split("%")[0]/100*(null==p?void 0:p.clientHeight):e.sourceInfo.height,n=(0,d.k3)(e.sourceInfo.x)?(0,u.dE)(e.sourceInfo.x.split("%")[0],null==p?void 0:p.clientWidth):e.sourceInfo.x,r=(0,d.k3)(e.sourceInfo.y)?(0,u.dE)(e.sourceInfo.y.split("%")[0],null==p?void 0:p.clientHeight):e.sourceInfo.y;m.filter="blur(4px)",m.drawImage(s,s.videoWidth*n/(null==p?void 0:p.clientWidth),s.videoHeight*r/(null==p?void 0:p.clientHeight),s.videoWidth*(100/((null==p?void 0:p.clientWidth)/t)/100),s.videoHeight*(100/((null==p?void 0:p.clientHeight)/o)/100),0,0,c.width,c.height)}else m.filter="none"},k=e=>(t,i)=>{let o=document.getElementById("videoElement"),n=document.getElementById("".concat(e)),r=document.getElementById("sourceContainer"),a=document.getElementById("destinationContainer");if(o&&!o.ended&&n){var l,c;let e=n.getContext("2d");e.clearRect(0,0,n.width,n.height),t(C("destinationCanvas")),p()(null===(c=i())||void 0===c?void 0:null===(l=c.ResizerState)||void 0===l?void 0:l.layers,(t,l)=>{var c,p,m,h,f,v,g,y,b,A,w,_,S;let C=(0,d.k3)(t.sourceInfo.width)?t.sourceInfo.width.split("%")[0]/100*(null==r?void 0:r.clientWidth):t.sourceInfo.width,k=(0,d.k3)(t.sourceInfo.height)?t.sourceInfo.height.split("%")[0]/100*(null==r?void 0:r.clientHeight):t.sourceInfo.height,T=(0,d.k3)(t.sourceInfo.x)?(0,u.dE)(t.sourceInfo.x.split("%")[0],null==r?void 0:r.clientWidth):t.sourceInfo.x,E=(0,d.k3)(t.sourceInfo.y)?(0,u.dE)(t.sourceInfo.y.split("%")[0],null==r?void 0:r.clientHeight):t.sourceInfo.y,P=(0,d.k3)(t.destinationInfo.width)?t.destinationInfo.width.split("%")[0]/100*(null==a?void 0:a.clientWidth):t.destinationInfo.width,I=(0,d.k3)(t.destinationInfo.height)?t.destinationInfo.height.split("%")[0]/100*(null==a?void 0:a.clientHeight):t.destinationInfo.height,D=(0,d.k3)(t.destinationInfo.x)?(0,u.dE)(t.destinationInfo.x.split("%")[0],null==a?void 0:a.clientWidth):t.destinationInfo.x,O=(0,d.k3)(t.destinationInfo.y)?(0,u.dE)(t.destinationInfo.y.split("%")[0],null==a?void 0:a.clientHeight):t.destinationInfo.y;e.filter="none";let N=(0,s.TR)((0,d.Md)(D,3),(0,d.Md)(O,3),(0,d.Md)(P,3),(0,d.Md)(I,3),(0,d.Md)(o.videoWidth*T/(null==r?void 0:r.clientWidth),3),(0,d.Md)(o.videoHeight*E/(null==r?void 0:r.clientHeight),3),(0,d.Md)(o.videoWidth*(100/((null==r?void 0:r.clientWidth)/C)/100),3),(0,d.Md)(o.videoHeight*(100/((null==r?void 0:r.clientHeight)/k)/100),3));if(1===Number(l)&&(null===(h=i())||void 0===h?void 0:null===(m=h.ResizerState)||void 0===m?void 0:null===(p=m.editorSettings)||void 0===p?void 0:null===(c=p.faceCam)||void 0===c?void 0:c.value)==="circle"){x?document.getElementById("circleFaceCamCanvas")||n.parentElement.appendChild(x):((x=document.createElement("canvas")).width=n.width,x.height=n.height,x.style.position="absolute",x.id="circleFaceCamCanvas",n.parentElement.appendChild(x));let e=x.getContext("2d");e.clearRect(0,0,500,500),e.save(),e.beginPath();let t=(null===(b=i())||void 0===b?void 0:null===(y=b.ResizerState)||void 0===y?void 0:null===(g=y.editorSettings)||void 0===g?void 0:null===(v=g.faceCam)||void 0===v?void 0:null===(f=v.strokeStyle)||void 0===f?void 0:f.value)!=="none",r=(null===(S=i())||void 0===S?void 0:null===(_=S.ResizerState)||void 0===_?void 0:null===(w=_.outputSettings)||void 0===w?void 0:null===(A=w.aspectRatio)||void 0===A?void 0:A.width)*17/1080,a=N.w;e.arc(N.x+N.w/2,N.y+N.h/2,t?a/2-r/2:a/2,0,2*Math.PI),e.clip(),e.drawImage(o,t?N.cx-r:N.cx,t?N.cy-r:N.cy,t?N.cw+2*r:N.cw,t?N.ch+2*r:N.ch,N.x,N.y,N.w,N.h),e.restore(
1),e.closePath()}else x&&(x.remove(),x=null),e.drawImage(o,N.cx,N.cy,N.cw,N.ch,N.x,N.y,N.w,N.h)}),o.paused||(window.timeOutRef=setTimeout(()=>t(k("destinationCanvas")),1e3/30))}},T=e=>(t,i)=>{var o,n;t({type:"UPDATE_LAYERS_INFO",payload:[...null===(n=i())||void 0===n?void 0:null===(o=n.ResizerState)||void 0===o?void 0:o.layers,e]})},E=e=>(t,i)=>{var o,n;let r=JSON.parse(JSON.stringify(null===(n=i())||void 0===n?void 0:null===(o=n.ResizerState)||void 0===o?void 0:o.layers));t({type:"UPDATE_LAYERS_INFO",payload:r=(0,l.X3)(r,e)})},P=e=>{let{layers:t,aspectRatio:i,faceCamType:o}=e;if(null==t?void 0:t.length){let e=JSON.parse(JSON.stringify(t));return e.map(async(t,n)=>{let r=JSON.parse(y.ZP.getItemFromLocalStorage({name:"".concat(n).concat(1===n&&o?"-".concat(o):"","-preference-").concat(i)}));r&&(e[n].sourceInfo=r)}),e}return t},I=()=>A.ZP.faceCameStrokeStyles.map(e=>{var t,i,o;return{...e,colors:(null===(i=y.ZP.getItemFromLocalStorage({name:"".concat(null==e?void 0:e.value,"-color-preference")}))||void 0===i?void 0:null===(t=i.split(","))||void 0===t?void 0:t.length)?null===(o=y.ZP.getItemFromLocalStorage({name:"".concat(null==e?void 0:e.value,"-color-preference")}))||void 0===o?void 0:o.split(","):null==e?void 0:e.colors}});t.ZP={updateOutputSettings:(e,t)=>{let{name:i,value:o,template:n}=e;return(e,r)=>{let{outputSettings:l,layers:s,editorSettings:d}=r().ResizerState,u=JSON.parse(JSON.stringify(l)),c=JSON.parse(JSON.stringify(d)),p=JSON.parse(JSON.stringify((null==s?void 0:s.length)?s:[])),m=[],h=[];if(u[i]=o,"aspectRatio"===i){var f,v;let t=null==u?void 0:u.blured;if(null==n?void 0:null===(f=n.data)||void 0===f?void 0:f.length){let{data:e,key:i}=n,o=JSON.parse(JSON.stringify(e));"circle_facecam"===i?c.faceCam={...c.faceCam,...A.ZP.faceCamOptions[1],strokeStyle:I()[0]}:"box_facecam"===i||"two_camera_split"===i||"split"===i?c.faceCam={...c.faceCam,...A.ZP.faceCamOptions[2],strokeStyle:null}:c.faceCam={...c.faceCam,...A.ZP.faceCamOptions[0],strokeStyle:null},o.map((e,t)=>{var i,o;p[t]?m.push({...p[t],label:e.label||(null===(i=p[t])||void 0===i?void 0:i.label),sourceInfo:e.sourceInfo,destinationInfo:e.destinationInfo,aspectRatioLocked:!!e.aspectRatioLocked}):m.push({...a.FY[t],label:e.label||(null===(o=p[t])||void 0===o?void 0:o.label),sourceInfo:e.sourceInfo,destinationInfo:e.destinationInfo,aspectRatioLocked:!!e.aspectRatioLocked})}),h=P({layers:m,aspectRatio:A.ZP.ASPECT_RATIO_VALUES.RECTANGLE,faceCamType:"circle_facecam"===i?"circle":"rectangle"}),t="background_blurred"===i}e({type:"GENERAL_DATA",payload:{outputSettings:{...u,blured:t},isFocused:!!o&&(null==o?void 0:o.value)!==(null===(v=r().VideoState)||void 0===v?void 0:v.aspectRatio),...(null==m?void 0:m.length)?{layers:h,editorSettings:c}:{editorSettings:{...c,faceCam:(null==s?void 0:s.length)>1?A.ZP.faceCamOptions[2]:null}}}})}else e({type:"UPDATE_OUTPUT_SETTINGS",payload:u});t&&t()}},changeFocusState:()=>e=>{e({type:"CHANGE_FOCUS_STATE",payload:!0})},updateLayerData:e=>{let{layerKey:t,sourceInfo:i,destinationInfo:o}=e;return(e,n)=>{let{layers:r}=n().ResizerState,a=JSON.parse(JSON.stringify(r));try{i&&(a[t].sourceInfo={...i}),o&&(a[t].destinationInfo={...o})}catch(e){}e({type:"UPDATE_LAYERS_INFO",payload:a})}},changeSourceClientDimensions:e=>{let{width:t,height:i}=e;return e=>{e({type:"SOURCE_CLIENT_DIMENTIONS",payload:{width:t,height:i}})}},updateVideoState:e=>{let{name:t,value:i}=e;return e=>{e({type:"UPDATE_VIDEO_STATE",payload:{[t]:i}})}},updateVideoDuration:e=>{let{name:t,value:i}=e;return(e,o)=>{let{duration:n}=o().ResizerState,r=JSON.parse(JSON.stringify(n));v()(t)?p()(t,(e,t)=>{r[e]=i[t]}):r[t]=i,e({type:"UPDATE_DURATION",payload:r})}},changeLayersInfo:e=>{let{layers:t,isAfterAspectRatio:i}=e;return(e,o)=>{if(i){var n;e({type:"UPDATE_LAYERS_INFO_AFTER_ASPECT_RATIO",payload:{layers:t,aspectRatioChanges:(null===(n=o().ResizerState)||void 0===n?void 0:n.aspectRatioChanges)+1}})}else e({type:"UPDATE_LAYERS_INFO",payload:t})}},updateResizerSettings:e=>{let{name:t,value:i}=e;return async(e,o)=>{var n,r,l,s,d,u,c,p,m,h,f,v,g,y;let{editorSettings:b,layers:A}=null===(n=o())||void 0===n?void 0:n.ResizerState,x=null===(l=o())||void 0===l?void 0:null===(r=l.VideoState)||void 0===r?void 0:r.aspectRatio,C=structuredClone(A),k=structuredClone(b);if("faceCam"===t){if(null==i?void 0:i.value){if((null==A?void 0:A.length)>1){let o={width:(null==i?void 0:i.value)==="circle"?null===a.ap||void 0===a.ap?void 0:null===(p=a.ap.destinationInfo)||void 0===p?void 0:p.width:null===a.og||void 0===a.og?void 0:null===(m=a.og.destinationInfo)||void 0===m?void 0:m.width,height:(null==i?void 0:i.value)==="circle"?null===a.ap||void 0===a.ap?void 0:null===(h=a.ap.destinationInfo)||void 0===h?void 0:h.height:null===a.og||void 0===a.og?void 0:null===(f=a.og.destinationInfo)||void 0===f?void 0:f.height};(null==k?void 0:null===(v=k.faceCam)||void 0===v?void 0:v.value)!==(null==i?void 0:i.value)&&(C[1]=(null==i?void 0:i.value)==="circle"?{...a.ap,sourceInfo:null!==(g=S({faceCamType:null==i?void 0:i.value,aspectRatio:x}))&&void 0!==g?g:null===a.ap||void 0===a.ap?void 0:a.ap.sourceInfo,destinationInfo:{...C[1].destinationInfo,...o}}:{...a.og,sourceInfo:null!==(y=S({faceCamType:null==i?void 0:i.value,aspectRatio:x}))&&void 0!==y?y:null===a.og||void 0===a.og?void 0:a.og.sourceInfo}),k[t]=i,e({type:"GENERAL_DATA",payload:{layers:C,editorSettings:k}})}else{let n=await w({layerInfo:(null==i?void 0:i.value)==="circle"?{...a.ap,sourceInfo:null!==(u=S({faceCamType:null==i?void 0:i.value,aspectRatio:x}))&&void 0!==u?u:null===a.ap||void 0===a.ap?void 0:a.ap.sourceInfo}:{...a.og,sourceInfo:null!==(c=S({faceCamType:null==i?void 0:i.value,aspectRatio:x}))&&void 0!==c?c:null===a.og||void 0===a.og?void 0:a.og.sourceInfo},resizerState:null===(d=o())||void 0===d?void 0:d.ResizerState});k[t]=i,e({type:"GENERAL_DATA",payload:{layers:null==n?void 0:n.layers,editorSettings:k}})}}else{let n=await _({layerKey:1,resizerState:null===(s=o())||void 0===s?void 0:s.ResizerState});k[t]=i,e({type:"GENERAL_DATA",payload:{layers:null==n?void 0:n.layers,editorSettings:k}})}}else k[t]=i,e({type:"UPDATE_EDITOR_SETTINGS",payload:k})}},drawFrame:k,updateEditorSettings:e=>{let{name:t,value:i}=e;return(e,o)=>{var n;let{editorSettings:r,layers:l}=null===(n=o())||void 0===n?void 0:n.ResizerState,s=JSON.parse(JSON.stringify(r));s[t]=i,"faceCam"===t&&e((null==l?void 0:l.length)>1?E(1):T(a.og)),e({type:"UPDATE_EDITOR_SETTINGS",payload:s})}},clearResizerState:()=>e=>{e({type:"CLEAR_STATE"})},shapeLoadedLayers:e=>{let{layersValues:t,fileData:i,quality:o,isSubscribed:n}=e;if(h()(t))return[a.j6,a.og];{var l;let{videoWidth:e,videoHeight:a,aspectRatio:s}=i,[u,c]=null==t?void 0:null===(l=t.aspect_ratio)||void 0===l?void 0:l.split(":"),p=(0,b.n3)(e,a),m=(null==o?void 0:o.value)==="auto"?!Object.values(A.ZP.ASPECT_RATIO_VALUES).includes(p)||Object.values(A.ZP.ASPECT_RATIO_VALUES).includes(p)&&!n?720:s===A.ZP.ASPECT_RATIO_VALUES.RECTANGLE?a:e:null==o?void 0:o.value,f=Number(u)>Number(c)?m/Number(c)*Number(u):m,v=Number(u)>
1Number(c)?m:m/Number(u)*Number(c),y={name:"gamePlay",label:(0,g.xQ)()===r.H7.AR.value?"المحتوى":"Content",color:"secondary",sourceInfo:{x:"".concat((0,d.Md)(100*Number(null==t?void 0:t.content_source_x)/e>100?100:100*Number(null==t?void 0:t.content_source_x)/e,3),"%"),y:"".concat((0,d.Md)(100*Number(null==t?void 0:t.content_source_y)/a>100?100:100*Number(null==t?void 0:t.content_source_y)/a,3),"%"),width:"".concat((0,d.Md)(100*Number(null==t?void 0:t.content_source_width)/e>100?100:100*Number(null==t?void 0:t.content_source_width)/e,3),"%"),height:"".concat((0,d.Md)(100*Number(null==t?void 0:t.content_source_height)/a>100?100:100*Number(null==t?void 0:t.content_source_height)/a,3),"%")},destinationInfo:{x:"".concat((0,d.Md)(100*Number(null==t?void 0:t.content_destination_x)/f>100?100:100*Number(null==t?void 0:t.content_destination_x)/f,3),"%"),y:"".concat((0,d.Md)(100*Number(null==t?void 0:t.content_destination_y)/v>100?100:100*Number(null==t?void 0:t.content_destination_y)/v,3),"%"),width:"".concat((0,d.Md)(100*Number(null==t?void 0:t.content_destination_width)/f>100?100:100*Number(null==t?void 0:t.content_destination_width)/f,3),"%"),height:"".concat((0,d.Md)(100*Number(null==t?void 0:t.content_destination_height)/v>100?100:100*Number(null==t?void 0:t.content_destination_height)/v,3),"%")}},x={name:"faceCam",label:(0,g.xQ)()===r.H7.AR.value?"الكاميرا":"Camera",color:"secondary-2",sourceInfo:{x:"".concat((0,d.Md)(100*Number(null==t?void 0:t.face_cam_source_x)/e,3),"%"),y:"".concat((0,d.Md)(100*Number(null==t?void 0:t.face_cam_source_y)/a,3),"%"),width:"".concat((0,d.Md)(100*Number(null==t?void 0:t.face_cam_source_width)/e,3),"%"),height:"".concat((0,d.Md)(100*Number(null==t?void 0:t.face_cam_source_height)/a,3),"%")},destinationInfo:{x:"".concat((0,d.Md)(100*Number(null==t?void 0:t.face_cam_destination_x)/f,3),"%"),y:"".concat((0,d.Md)(100*Number(null==t?void 0:t.face_cam_destination_y)/v,3),"%"),width:"".concat((0,d.Md)(100*Number(null==t?void 0:t.face_cam_destination_width)/f,3),"%"),height:"".concat((0,d.Md)(100*Number(null==t?void 0:t.face_cam_destination_height)/v,3),"%")},aspectRatioLocked:(null==t?void 0:t.face_cam_type)==="circle"};return h()(t)?[]:(null==t?void 0:t.is_face_cam_included)?[y,x]:[y]}},loadResizerData:e=>t=>{t({type:"LOAD_STORED_DATA",payload:e})},updateDuration:e=>{let{duration:t}=e;return e=>{e({type:"UPDATE_DURATION",payload:{start:null==t?void 0:t.from,end:null==t?void 0:t.to}})}},storePreferenceToStorage:e=>{let{boxData:t,layerKey:i}=e;return(e,o)=>{var n,r,a,l,s,d,u,c;if(0===i)y.ZP.saveToLocalStorage({name:"".concat(i,"-preference-").concat(null===(r=o())||void 0===r?void 0:null===(n=r.VideoState)||void 0===n?void 0:n.aspectRatio),value:JSON.stringify(t)});else{let e=null===(d=o())||void 0===d?void 0:null===(s=d.ResizerState)||void 0===s?void 0:null===(l=s.editorSettings)||void 0===l?void 0:null===(a=l.faceCam)||void 0===a?void 0:a.value;y.ZP.saveToLocalStorage({name:"".concat(i).concat(e?"-".concat(e):"","-preference-").concat(null===(c=o())||void 0===c?void 0:null===(u=c.VideoState)||void 0===u?void 0:u.aspectRatio),value:JSON.stringify(t)})}}},loadStoredLayersPreferences:P,storeColorPreferenceToStorage:e=>{let{colors:t,strokeStyleType:i}=e;return y.ZP.saveToLocalStorage({name:"".concat(i,"-color-preference"),value:t})},loadColorPreferenceToStorage:e=>{let{strokeStyleType:t}=e;return JSON.parse(y.ZP.getItemFromLocalStorage({name:"".concat(t,"-color-preference")}))},getStrokeStyles:I}},50632:function(e,t,i){"use strict";i.d(t,{qo:function(){return n}});var o,n,r=i(90446);(o=n||(n={})).STORE_VIDEOS="STORE_VIDEOS",o.REMOVE_VIDEO="REMOVE_VIDEO",t.ZP={storeVideo:e=>(t,i)=>{var o,n;let a=structuredClone(null===(n=i())||void 0===n?void 0:null===(o=n.EditorState)||void 0===o?void 0:o.videosSubtitls)||[];if(a.find(t=>t.id===e.id))return;let l=[...a,e];t({type:r.ox.STORE_VIDEO_SUBTITLES,payload:l})},removeVideo:e=>(t,i)=>{var o,n;let a=(structuredClone(null===(n=i())||void 0===n?void 0:null===(o=n.EditorState)||void 0===o?void 0:o.videosSubtitls)||[]).filter(t=>t.id!==e.id);t({type:r.ox.REMOVE_VIDEO_SUBTITLES,payload:a})},updateVideo:(e,t)=>(i,o)=>{var n,a;let l=(structuredClone(null===(a=o())||void 0===a?void 0:null===(n=a.EditorState)||void 0===n?void 0:n.videosSubtitls)||[]).map(i=>t&&i.id===e?{...i,...t}:i.id===(null==e?void 0:e.id)?e:i);i({type:r.ox.STORE_VIDEO_SUBTITLES,payload:l})},updateVideoSubtitle:(e,t,i)=>(o,n)=>{var a,l;let s=structuredClone(null===(l=n())||void 0===l?void 0:null===(a=l.EditorState)||void 0===a?void 0:a.videosSubtitls)||[],d=o(r.ZP.getRelatedVideoLayer({layerId:e})),u=s.map(e=>{var o,n;if(e.id===(null==d?void 0:null===(o=d.layerData)||void 0===o?void 0:o.id)){let o=null===(n=e.createdTranscription)||void 0===n?void 0:n.transcription.map(e=>{if(e.subtitleId===t){var o;return null==e||null===(o=e.original)||void 0===o||o.length,{...e,...i}}return e});return{...e,createdTranscription:{...e.createdTranscription,transcription:o}}}return e});o({type:r.ox.STORE_VIDEO_SUBTITLES,payload:u})},addNewSubtitle:(e,t)=>
1(i,o)=>{var n,a;let l=(structuredClone(null===(a=o())||void 0===a?void 0:null===(n=a.EditorState)||void 0===n?void 0:n.videosSubtitls)||[]).map(i=>{if(i.id===e){var o,n;let e=null===(o=i.createdTranscription)||void 0===o?void 0:o.transcription;return{...i,createdTranscription:{...i.createdTranscription,transcription:[...e,{subtitleId:(null===(n=e[(null==e?void 0:e.length)-1])||void 0===n?void 0:n.subtitleId)+1,...t}]}}}return i});i({type:r.ox.STORE_VIDEO_SUBTITLES,payload:l})}}},15138:function(e,t,i){"use strict";i.d(t,{v:function(){return n}});var o,n,r=i(47327),a=i(24556),l=i(64430),s=i(13311),d=i.n(s),u=i(27361),c=i.n(u),p=i(18721),m=i.n(p),h=i(13218),f=i.n(h),v=i(45608),g=i(23279),y=i.n(g),b=i(9827),A=i(99139),x=i(58446),w=i(63394);(o=n||(n={})).CHANGE_ACTIVE_SCENE="CHANGE_ACTIVE_SCENE",o.LOAD_T2V_DATA="LOAD_T2V_DATA",o.UPDATE_TEXT_SETTINGS="UPDATE_TEXT_SETTINGS",o.CHANGE_CANVAS_SETTINGS="CHANGE_CANVAS_SETTINGS",o.CHANGE_GENERAL_SETTINGS="CHANGE_GENERAL_SETTINGS",o.CHANGE_SCENE_SETTINGS="CHANGE_SCENE_SETTINGS",o.CLEAR_T2V_STATE="CLEAR_T2V_STATE",o.TOGGLE_SCENES_LOADER="TOGGLE_SCENES_LOADER",o.UPDATE_CANVAS_AND_TEXT_SETTINGS="UPDATE_CANVAS_AND_TEXT_SETTINGS",o.UPDATE_STATIC_OVERLAY="UPDATE_STATIC_OVERLAY",o.UPDATE_SUBTITLE="UPDATE_SUBTITLE",o.UPDATE_EDITOR_DATA="UPDATE_EDITOR_DATA";let _=e=>{var t,i,o,n;let{scene:r}=e,a=l.o.find(e=>(null==e?void 0:e.value)===(null==r?void 0:r.animation)),s=Number(null==r?void 0:r.to)-Number(null==r?void 0:r.from),d=s<=2?1.01:1.2;return{...r,effect:{...a,timing:{duration:1e3*s},webAnimationKeyframes:(null==a?void 0:a.value)==="zoom-in"?[{transform:"scale(1)",offset:0},{transform:"scale(".concat(d,")"),offset:1}]:(null==a?void 0:a.value)==="zoom-out"?[{transform:"scale(".concat(d,")"),offset:0},{transform:"scale(1)",offset:1}]:null==a?void 0:a.webAnimationKeyframes},image:null==r?void 0:r.file_url,images:(null==r?void 0:r.selected_file_url)?(null==r?void 0:r.file_url)?[{image:null==r?void 0:r.file_url,id:null==r?void 0:r.id,type:"image_generated"},{image:(null==r?void 0:null===(t=r.selection_type)||void 0===t?void 0:t.includes("video"))||(null==r?void 0:null===(i=r.selection_type)||void 0===i?void 0:i.includes("scene"))?null==r?void 0:r.selected_video_thumbnail_url:null==r?void 0:r.selected_file_url,id:null==r?void 0:r.selected_type_id,type:null==r?void 0:r.selection_type}]:{image:(null==r?void 0:null===(o=r.selection_type)||void 0===o?void 0:o.includes("video"))||(null==r?void 0:null===(n=r.selection_type)||void 0===n?void 0:n.includes("scene"))?null==r?void 0:r.selected_video_thumbnail_url:null==r?void 0:r.selected_file_url,id:null==r?void 0:r.selected_type_id,type:null==r?void 0:r.selection_type}:{image:null==r?void 0:r.file_url,id:null==r?void 0:r.id,type:"image_generated"},from:Number(null==r?void 0:r.from),to:Number(null==r?void 0:r.to),duration:{start:0===Number(null==r?void 0:r.from)?0:Number(null==r?void 0:r.from)+.01,end:Number(null==r?void 0:r.to)},attributes:{scale:(null==r?void 0:r.image_scale)||"fill"}}},S=e=>{let{sceneId:t}=e;return(e,i)=>{var o,n;let r=structuredClone(null===(n=i())||void 0===n?void 0:null===(o=n.TextToVideo)||void 0===o?void 0:o.activeScene);if((null==r?void 0:r.id)!==(null==t?void 0:t.id))return e({type:"CHANGE_ACTIVE_SCENE",payload:t})}},C=(e,t,i,o,n)=>{var r,a,l,s,d,u,c,p,m,h,f;let v=!!(null==i?void 0:null===(r=i.editorData)||void 0===r?void 0:r.quote),g=(0,w.vG)(o,(0,w.KE)(null==i?void 0:null===(a=i.editorData)||void 0===a?void 0:a.quote),(null==t?void 0:t.width)*85/100,null==n?void 0:n.label,{textTransform:null==i?void 0:null===(l=i.textSettings)||void 0===l?void 0:l.capsStyle,textAlign:"left",padding:"0px ".concat(o,"px"),WebkitTextStrokeWidth:null==i?void 0:null===(s=i.textSettings)||void 0===s?void 0:s.outlineWidth,WebkitTextStrokeColor:null==i?void 0:null===(d=i.textSettings)||void 0===d?void 0:d.outlineColor}),y=!v||(null==i?void 0:null===(u=i.textSettings)||void 0===u?void 0:u.position)?x.ZP.defaultTextPosition:{x:x.ZP.defaultTextPosition.x,y:"".concat(((null==t?void 0:t.height)/2-g/2)*100/(null==t?void 0:t.height),"%")},b={...t};if(!b.height&&(null==i?void 0:null===(c=i.generalDetails)||void 0===c?void 0:c.aspectRatio)){let e=null==i?void 0:null===(f=i.generalDetails)||void 0===f?void 0:f.aspectRatio;"16:9"===e?b.height=b.width*(9/16):"9:16"===e?b.height=b.width*(16/9):b.height=b.width*(9/16)}let A={x:parseFloat(y.x)/100*b.width,y:parseFloat(y.y)/100*b.height},_=(null==i?void 0:null===(p=i.generalDetails)||void 0===p?void 0:p.aspectRatio)==="16:9"?{width:1920,height:1080}:{width:1080,height:1920}
1,S={x:e.x*b.width/_.width,y:e.y*b.height/_.height},C={x:A.x+S.x,y:A.y+S.y},k=(null==i?void 0:null===(m=i.textSettings)||void 0===m?void 0:m.boxWidth)?(null==i?void 0:null===(h=i.textSettings)||void 0===h?void 0:h.boxWidth)*(null==t?void 0:t.width)/_.width:(null==t?void 0:t.width)*85/100;return{textPosition:C,defaultPosition:x.ZP.defaultTextPosition,boxWidth:k}},k=y()((e,t,i)=>{e(T({key:t,value:i}))},1e3),T=e=>{let{key:t,value:i}=e;return(e,o)=>{var n,l,s,d,u;let c=(0,a.O8)(t),p=null===(s=o())||void 0===s?void 0:null===(l=s.TextToVideo)||void 0===l?void 0:null===(n=l.video)||void 0===n?void 0:n.id,m=structuredClone(null===(u=o())||void 0===u?void 0:null===(d=u.TextToVideo)||void 0===d?void 0:d.generalDetails),h=(0,a.eb)({...m,["has_subtitles"===c?"has_subtitle":"has_animation"===c?"animation":c]:i});null==h||delete h.aspect_ratio,null==h||delete h.has_free_voiceover_regeneration,null==h||delete h.has_free_voiceover_regeneration,null==h||delete h.language,null==h||delete h.music_url,null==h||delete h.total_number_of_free_voiceover_regeneration,null==h||delete h.used_number_of_free_voiceover_regeneration,null==h||delete h.voiceover_url,r.x.updateAllScene({videoId:p,values:h},()=>{},()=>{})}},E=(e,t)=>(i,o)=>{var n;let{activeScene:a,video:l,scenes:s}=null===(n=o())||void 0===n?void 0:n.TextToVideo;r.x.updateScene({videoId:null==l?void 0:l.id,sceneId:t||(null==a?void 0:a.id),values:e},e=>{let{data:t}=e},()=>{})};t.Z={changeActiveScene:S,initializeScenes:e=>{let{data:t}=e;return(e,i)=>{var o,n,r,l,s,u,c,p,m,h,f,v,g,y,A;let x=null===(n=i())||void 0===n?void 0:null===(o=n.Shared)||void 0===o?void 0:o.fontFamilies,w=null==t?void 0:null===(r=t.generalDetails)||void 0===r?void 0:r.isQuote,_=(null==t?void 0:null===(l=t.generalDetails)||void 0===l?void 0:l.language)||(0,a.iT)(null==t?void 0:null===(s=t.editorData)||void 0===s?void 0:s.script),S=w?49:7,k=w?50:22,T="ar"===_?d()(x,e=>(null==e?void 0:e.id)===S):d()(x,e=>(null==e?void 0:e.id)===k),E=d()(x,e=>{var i;return(null==e?void 0:e.id)===(null==t?void 0:null===(i=t.textSettings)||void 0===i?void 0:i.fontId)}),P={value:(null==E?void 0:E.id)||(null==T?void 0:T.id),label:(null==E?void 0:E.name)||(null==T?void 0:T.name),isPro:(null==E?void 0:E.is_pro)||(null==T?void 0:T.is_pro),language:(null==E?void 0:E.language)?(null==E?void 0:E.language)==="english"?"EN":"AR":(null==T?void 0:T.language)==="english"?"EN":"AR"},I=(null==t?void 0:null===(u=t.textSettings)||void 0===u?void 0:u.textEffect)?null==t?void 0:null===(c=t.textSettings)||void 0===c?void 0:c.textEffect:w?null===b.Z||void 0===b.Z?void 0:b.Z.subtitlesEffects[0]:null===b.Z||void 0===b.Z?void 0:b.Z.subtitlesEffects[2],D=null===(m=i())||void 0===m?void 0:null===(p=m.TextToVideo)||void 0===p?void 0:p.canvasSettings,{textPosition:O,defaultPosition:N,boxWidth:j}=C((null==t?void 0:null===(h=t.textSettings)||void 0===h?void 0:h.position)||{x:0,y:0},D,t,null==t?void 0:null===(f=t.textSettings)||void 0===f?void 0:f.fontSize,P),M=(null==t?void 0:null===(v=t.generalDetails)||void 0===v?void 0:v.aspectRatio)==="16:9"?{width:1920,height:1080}:{width:1080,height:1920},R=(null==t?void 0:t.background)?{...null==t?void 0:t.background,padding:(null==t?void 0:null===(g=t.background)||void 0===g?void 0:g.padding)*(null==D?void 0:D.width)/M.width}:null;return e({type:"LOAD_T2V_DATA",payload:{activeScene:null,...t,textSettings:{...null==t?void 0:t.textSettings,background:R,position:O,defaultPosition:N,horizontalAlign:!w||(null==t?void 0:null===(y=t.textSettings)||void 0===y?void 0:y.horizontalAlign)?(null==t?void 0:null===(A=t.textSettings)||void 0===A?void 0:A.horizontalAlign)||"center":"ar"===_?"right":"left",textEffect:I,font:P,boxWidth:j}}})}},getNextScene:e=>(t,i)=>{var o,n;if(!e.currentSceneId)return null;let r=structuredClone((null===(n=i())||void 0===n?void 0:null===(o=n.TextToVideo)||void 0===o?void 0:o.scenes)||[]),a=r.findIndex(t=>(null==t?void 0:t.id)===e.currentSceneId);return a<(null==r?void 0:r.length)-1?r[a+1]:null},getPreviousScene:e=>(t,i)=>{var o,n;if(!e.currentSceneId)return null;let r=structuredClone((null===(n=i())||void 0===n?void 0:null===(o=n.TextToVideo)||void 0===o?void 0:o.scenes)||[]),a=r.findIndex(t=>(null==t?void 0:t.id)===e.currentSceneId);return a>=0?r[a-1]:null},updateCanvasSettings:e=>t=>{let{canvasDimension:i,textPosition:o}=e;return t({type:"UPDATE_CANVAS_AND_TEXT_SETTINGS",payload:{textPosition:o,canvasDimension:i}})},updateGeneralSettings:e=>{let{key:t,value:i}=e;return(e,o)=>{var n;let{scenes:r,generalDetails:l}=structuredClone(null===(n=o())||void 0===n?void 0:n.TextToVideo);"animationOverlay"===t?k(e,t,(null==i?void 0:i.id)?{id:null==i?void 0:i.id,opacity:null==i?void 0:i.opacity}:null):k(e,t,i);let s=(0,a.O8)(t);return e({type:"LOAD_T2V_DATA",payload:{scenes:r.map(e=>_({scene:{...e,["has_subtitles"===s?"has_subtitle":"has_animation"===s?"animation":s]:i}})),generalDetails:{...l,[t]:i}}})}},updateSceneDetails:(e,t)=>(i,o)=>{var n;let{activeScene:r,scenes:a,generalDetails:l}=structuredClone(null===(n=o())||void 0===n?void 0:n.TextToVideo),s=a.find(e=>(null==e?void 0:e.id)===t),d=_({scene:(null==s?void 0:s.id)?{...s,...e}:{...r,...e}}),u=a.findIndex(e=>(null==e?void 0:e.id)===((null==s?void 0:s.id)||(null==r?void 0:r.id)));return(-1!==u&&(a[u]=d),delete e.uploads,i(E(e,t)),m()(e,"animation")&&(null==e?void 0:e.animation)&&!(null==l?void 0:l.hasAnimation))?i({type:"LOAD_T2V_DATA",payload:{activeScene:d,scenes:a,generalDetails:{...l,hasAnimation:!0}}}):i({type:"LOAD_T2V_DATA",payload:{activeScene:d,scenes:a}})},sceneObjectTransformation:_,saveSceneDetails:E,getSceneInCurrentTime:()=>(e,t)=>{var i,o,n,r;let a=null===(o=t())||void 0===o?void 0:null===(i=o.TextToVideo)||void 0===i?void 0:i.scenes,l=null===(r=t())||void 0===r?void 0:null===(n=r.Timeline)||void 0===n?void 0:n.currentTime,s=a.filter(e=>{var t,i;return l>=(null==e?void 0:null===(t=e.duration)||void 0===t?void 0:t.start)&&l<=(null==e?void 0:null===(i=e.duration)||void 0===i?void 0:i.end)});(null==s?void 0:s.length)&&e(S({sceneId:s[(null==s?void 0:s.length)-1]}))},updateTextSettings:e=>t=>t({type:"UPDATE_TEXT_SETTINGS",payload:{...e}}),getStateValue:e=>(t,i)=>{var o;return structuredClone(c()(null===(o=i())||void 0===o?void 0:o.TextToVideo,"".concat(e),{}))},resetT2VState:()=>(e,t)=>{e({type:"CLEAR_T2V_STATE"})},updateSceneDuration:(e,t)=>(i,o)=>{var n,r,a,l,s,d,u;let{scenes:c}=structuredClone(null===(n=o())||void 0===n?void 0:n.TextToVideo),p=c.find(e=>(null==e?void 0:e.id)===t),m=c.findIndex(e=>
1(null==e?void 0:e.id)===t),h=structuredClone(null===(a=o())||void 0===a?void 0:null===(r=a.TextToVideo)||void 0===r?void 0:r.activeScene);if(!p||-1===m)return;let f={...p,...e},g=(0,v.Md)(p.to-p.from+(((null==e?void 0:e.to)?(null===(l=c[m+1])||void 0===l?void 0:l.to)-(null===(s=c[m+1])||void 0===s?void 0:s.from):(null===(d=c[m-1])||void 0===d?void 0:d.to)-(null===(u=c[m-1])||void 0===u?void 0:u.from))||0)-.5,2);if(void 0!==e.from){let t=c[m-1],i=Math.max(e.from,t?t.from+.5:e.from);f.from=i,e.from=i,m>0&&(t.to=i,c[m-1]=_({scene:t}))}if(void 0!==e.to&&m<c.length-1){let t=c[m+1],i=Math.min(e.to,t?t.to-.5:e.to);i-f.from<.5?(f.to=f.from+.5,i=f.from+.5):f.to=i,e.to=i,i>p.to?t.from=i:i<p.to&&(t.from=i),c[m+1]=_({scene:t})}return f.to-f.from<.5?f.to=f.from+.5:f.to-f.from>g&&(f.to=f.from+g),c[m]=_({scene:f}),i(E(e,t)),i({type:"LOAD_T2V_DATA",payload:(null==f?void 0:f.id)===(null==h?void 0:h.id)?{activeScene:_({scene:f}),scenes:c}:{scenes:c}})},deleteScene:e=>{let{sceneId:t,makeActive:i}=e;return(e,o)=>{var n;let{scenes:r}=structuredClone(null===(n=o())||void 0===n?void 0:n.TextToVideo);if(r.length<=1)return;let a=r.findIndex(e=>(null==e?void 0:e.id)===t);if(-1===a)return;let l=null;2===r.length?0===a?(r[1].from=0,l=r[1]):(r[0].to=r[1].to,l=r[0]):a>0&&a<r.length-1?(r[a+1].from=r[a].from,(l=r[a+1]).order=a):0===a&&r.length>1?(r[1].from=0,l=r[1]):a===r.length-1&&r.length>1&&(r[a-1].to=r[a].to,l=r[a-1]),r.splice(a,1);let s=r.map((e,t)=>_({scene:{...e,order:t}}));return l=s.find(e=>(null==e?void 0:e.id)===(null==l?void 0:l.id)),e({type:"LOAD_T2V_DATA",payload:{activeScene:i?_({scene:l}):null,scenes:s}})}},splitScene:e=>{let{sceneId:t,newScene:i}=e;return(e,o)=>{var n;let{scenes:r}=structuredClone(null===(n=o())||void 0===n?void 0:n.TextToVideo),a=r.findIndex(e=>(null==e?void 0:e.id)===t);if(-1===a)return;let l=r[a],s=l.to-l.from;if(s<1)return;let d=l.from+s/2,u={...l,to:d},c={...l,from:d,...i,trim_from:0,trim_to:(null==l?void 0:l.to)-d};return r.splice(a,1,u,c),e({type:"LOAD_T2V_DATA",payload:{activeScene:_({scene:c}),scenes:r.map((e,t)=>_({scene:{...e,order:t}}))}})}},toggleScenesLoader:e=>t=>t({type:"TOGGLE_SCENES_LOADER",payload:e}),canDeleteScene:()=>(e,t)=>{var i;let{scenes:o}=structuredClone(null===(i=t())||void 0===i?void 0:i.TextToVideo);return o.length>1},updateStaticOverlay:e=>{let{value:t}=e;return e=>{let i=f()(t)&&m()(t,"opacity");return e((null==t?void 0:t.include)?{type:"UPDATE_STATIC_OVERLAY",payload:{staticOverlay:{...t,opacity:i?null==t?void 0:t.opacity:1}}}:{type:"UPDATE_STATIC_OVERLAY",payload:{staticOverlay:null}})}},updateEditorData:e=>(t,i)=>{var o;let{editorData:n}=structuredClone(null===(o=i())||void 0===o?void 0:o.TextToVideo);return n.quote=e.text,t({type:"UPDATE_EDITOR_DATA",payload:{editorData:n}})},getEditorDataToSave:()=>(e,t)=>{var i,o,n,r,a,l,s,d,u,c,p,m,h,f,g,y,b,x,w,_;let S=structuredClone(null===(o=t())||void 0===o?void 0:null===(i=o.TextToVideo)||void 0===i?void 0:i.editorData),C=structuredClone(null===(r=t())||void 0===r?void 0:null===(n=r.TextToVideo)||void 0===n?void 0:n.canvasSettings),k=structuredClone(null===(l=t())||void 0===l?void 0:null===(a=l.TextToVideo)||void 0===a?void 0:a.textSettings),T={x:null==k?void 0:null===(s=k.position)||void 0===s?void 0:s.x,y:null==k?void 0:null===(d=k.position)||void 0===d?void 0:d.y},E=null===(p=t())||void 0===p?void 0:null===(c=p.TextToVideo)||void 0===c?void 0:null===(u=c.generalDetails)||void 0===u?void 0:u.isQuote,P={x:parseFloat(k.defaultPosition.x)/100*C.width,y:parseFloat(k.defaultPosition.y)/100*C.height},I=(null==S?void 0:S.aspect_ratio)==="16:9"?{width:1920,height:1080}:{width:1080,height:1920},D={x:T.x-P.x,y:T.y-P.y},O={x:(0,v.Md)(D.x*I.width/C.width,2),y:(0,v.Md)(D.y*I.height/C.height,2)},N=structuredClone(null===(f=t())||void 0===f?void 0:null===(h=f.TextToVideo)||void 0===h?void 0:null===(m=h.overlays)||void 0===m?void 0:m.staticOverlay),j=E?(0,v.Md)(I.width*(null==k?void 0:k.fontSize)/C.width,3):70,M=(null==k?void 0:k.boxWidth)&&E?(null==k?void 0:k.boxWidth)*I.width/(null==C?void 0:C.width):85*I.width/100,R=(0,A.UE)({...S,staticOverlay:(null==N?void 0:N.include)?N:null,textSettings:{...k,background:(null==k?void 0:k.background)?{...null==k?void 0:k.background,padding:(null==k?void 0:null===(g=k.background)||void 0===g?void 0:g.padding)*I.width/(null==C?void 0:C.width)}:null,position:(null==O?void 0:O.x)&&(null==O?void 0:O.y)||E?O:null,font_id:null==k?void 0:null===(y=k.font)||void 0===y?void 0:y.value,fontSize:j,boxWidth:M,textEffe
1ct:(null==k?void 0:k.textEffect)||null}},["textEffect","staticOverlay"]);return null===(x=R.textSettings)||void 0===x||null===(b=x.textEffect)||void 0===b||delete b.label,null===(w=R.textSettings)||void 0===w||delete w.font,null===(_=R.textSettings)||void 0===_||delete _.defaultPosition,delete R.text_settings,R}}},83186:function(e,t,i){"use strict";i.d(t,{x:function(){return o}});var o,n=i(90238),r=i(71494);(o||(o={})).THEME_CHANGED="THEME_CHANGED",t.Z={changeTheme:e=>{let{mode:t}=e;return n.ZP.track(r.dV.TOOL_CONFIGURATION,{tool_name:"studio",configuration_type:"theme_changed",value:t}),t&&n.ZP.setUserProperties({theme:String(t)}),(e,i)=>{e({type:"THEME_CHANGED",payload:t})}}}},52456:function(e,t,i){"use strict";i.d(t,{j:function(){return n}});var o,n,r=i(2438),a=i(85518);(o=n||(n={})).CHANGE_CURRENT_TIME="CHANGE_CURRENT_TIME",o.PLAY_PAUSE="PLAY_PAUSE",o.UPDATE_ALL="UPDATE_ALL",o.UPDATE_VALUE="UPDATE_VALUE",o.RESET="RESET",t.Z={changeCurrentTime:e=>(t,i)=>{t({type:"CHANGE_CURRENT_TIME",payload:e})},playPause:e=>(t,i)=>{t({type:"PLAY_PAUSE",payload:e})},updateAll:e=>(t,i)=>{t({type:"UPDATE_ALL",payload:e})}
1,updateValue:e=>{let{key:t,value:i}=e;return(e,o)=>{e({type:"UPDATE_VALUE",payload:{key:t,value:i}})}},resetTimelineState:()=>(e,t)=>{e({type:"RESET",payload:null})},goToFrame:e=>(t,i)=>{var o;let n=structuredClone(null===(o=i())||void 0===o?void 0:o.Timeline);if(e>0){let i=(null==n?void 0:n.currentTime)+e<(null==n?void 0:n.totalDuration)?(null==n?void 0:n.currentTime)+e:null==n?void 0:n.totalDuration;t({type:"CHANGE_CURRENT_TIME",payload:i}),a.tq?(0,r.bE)(i,n.fraction,null==n?void 0:n.fractionInPx):(0,r.lS)(i,n.fraction,null==n?void 0:n.fractionInPx)}else{let i=(null==n?void 0:n.currentTime)+e>0?(null==n?void 0:n.currentTime)+e:0;t({type:"CHANGE_CURRENT_TIME",payload:i}),a.tq?(0,r.bE)(i,n.fraction,null==n?void 0:n.fractionInPx):(0,r.lS)(i,n.fraction,null==n?void 0:n.fractionInPx)}},getTimelineState:()=>(e,t)=>{var i;return null===(i=t())||void 0===i?void 0:i.Timeline}}},73187:function(e,t,i){"use strict";var o,n;i.d(t,{e:function(){return o}}),(n=o||(o={})).UPLOAD_START="UPLOAD_START",n.UPLOAD_PROGRESS="UPLOAD_PROGRESS",n.UPLOAD_SUCCESS="UPLOAD_SUCCESS",n.UPLOAD_FAILURE="UPLOAD_FAILURE",n.UPDATE_UPLOAD_STATE="UPDATE_UPLOAD_STATE",n.CLEAR_UPLOAD_STATE="CLEAR_UPLOAD_STATE",t.Z={uploadStart:e=>({type:"UPLOAD_START",payload:e}),uploadProgress:(e,t)=>({type:"UPLOAD_PROGRESS",payload:{fileId:e,progress:t}}),uploadSuccess:e=>({type:"UPLOAD_SUCCESS",payload:e}),uploadFailure:(e,t)=>({type:"UPLOAD_FAILURE",payload:{fileId:e,error:t}}),updateUploadState:(e,t,i,o)=>({type:"UPDATE_UPLOAD_STATE",payload:{fileId:e,start:t,end:i,partNumber:o}}),clearUploadState:()=>({type:"CLEAR_UPLOAD_STATE"})}},38105:function(e,t,i){"use strict";i.d(t,{lt:function(){return n}});var o,n,r=i(81387),a=i(54178),l=i(20931),s=i(63394),d=i(41894),u=i(45608),c=i(99139),p=i(72746),m=i(38715),h=i(89053),f=i(78996),v=i(63105),g=i.n(v),y=i(13311),b=i.n(y),A=i(27361),x=i.n(A),w=i(45220),_=i.n(w),S=i(35161),C=i.n(S),k=i(75472),T=i.n(k),E=i(89734),P=i.n(E);(o=n||(n={})).STORE_VIDEO="STORE_VIDEO",o.CLEAR_STATE="CLEAR_STATE",o.UPDATE_EXPORT_STATUS="UPDATE_EXPORT_STATUS";let I=()=>(e,t)=>new Promise((e,i)=>{var o,n,r,c,p,h,f;let v=null===(c=t())||void 0===c?void 0:null===(r=c.Auth)||void 0===r?void 0:null===(n=r.user)||void 0===n?void 0:null===(o=n.subscription)||void 0===o?void 0:o.is_subscribed,{outputSettings:g,layers:y,clientDimensions:A}=null===(p=t())||void 0===p?void 0:p.ResizerState,x=null===(h=t())||void 0===h?void 0:h.VideoState,{generalDetails:w}=null===(f=t())||void 0===f?void 0:f.EditorState,_=b()(l.h4,{value:null==w?void 0:w.quality});e(C()(y,(e,t)=>{var i,o,n,r,l;let c=(0,u.k3)(e.sourceInfo.width)?e.sourceInfo.width.split("%")[0]/100*(null==A?void 0:A.width):e.sourceInfo.width,p=(0,u.k3)(e.sourceInfo.height)?e.sourceInfo.height.split("%")[0]/100*(null==A?void 0:A.height):e.sourceInfo.height,h=(0,u.k3)(e.sourceInfo.x)?(0,m.dE)(e.sourceInfo.x.split("%")[0],null==A?void 0:A.width):e.sourceInfo.x,f=(0,u.k3)(e.sourceInfo.y)?(0,m.dE)(e.sourceInfo.y.split("%")[0],null==A?void 0:A.height):e.sourceInfo.y,y=(0,u.k3)(e.destinationInfo.width)?e.destinationInfo.width.split("%")[0]/100*(null==g?void 0:null===(i=g.aspectRatio)||void 0===i?void 0:i.width):e.destinationInfo.width,b=(0,u.k3)(e.destinationInfo.height)?e.destinationInfo.height.split("%")[0]/100*(null==g?void 0:null===(o=g.aspectRatio)||void 0===o?void 0:o.height):e.destinationInfo.height,w=(0,u.k3)(e.destinationInfo.x)?(0,m.dE)(e.destinationInfo.x.split("%")[0],null==g?void 0:null===(n=g.aspectRatio)||void 0===n?void 0:n.width):e.destinationInfo.x,S=(0,u.k3)(e.destinationInfo.y)?(0,m.dE)(e.destinationInfo.y.split("%")[0],null==g?void 0:null===(r=g.aspectRatio)||void 0===r?void 0:r.height):e.destinationInfo.y,C=(0,d.TR)(w,S,y,b,x.videoWidth*h/(null==A?void 0:A.width),x.videoHeight*f/(null==A?void 0:A.height),x.videoWidth*(100/((null==A?void 0:A.width)/c)/100),x.videoHeight*(100/((null==A?void 0:A.height)/p)/100)),[k,T]=null==g?void 0:null===(l=g.aspectRatio)||void 0===l?void 0:l.value.split(":"),E=(0,s.n3)(null==x?void 0:x.videoWidth,x.videoHeight),P=(null==_?void 0:_.value)==="auto"?!Object.values(a.ZP.ASPECT_RATIO_VALUES).includes(E)||Object.values(a.ZP.ASPECT_RATIO_VALUES).includes(E)&&!v?720:(null==x?void 0:x.aspectRatio)===a.ZP.ASPECT_RATIO_VALUES.RECTANGLE?x.videoHeight:x.videoWidth:null==_?void 0:_.value,I=Number(k)>Number(T)?P/Number(T)*Number(k):P,D=Number(k)>Number(T)?P:P/Number(k)*Number(T);return{sourceX:(0,u.Md)(C.cx,3),sourceY:(0,u.Md)(C.cy,3),sourceWidth:(0,u.Md)(C.cw,3),sourceHeight:(0,u.Md)(C.ch,3),destinationX:(0,u.Md)(I*C.x/(null==g?void 0:g.aspectRatio.width),3),destinationY:(0,u.Md)(D*C.y/(null==g?void 0:g.aspectRatio.height),3),destinationWidth:(0,u.Md)(I*C.w/(null==g?void 0:g.aspectRatio.width)>I?I:I*C.w/(null==g?void 0:g.aspectRatio.width),3),destinationHeight:(0,u.Md)(D*C.h/(null==g?void 0:g.aspectRatio.height)>D?D:D*C.h/(null==g?void 0:g.aspectRatio.height),3)}}))}),D=()=>(e,t)=>new Promise(async(i,o)=>{try{let o=t().VideoState,g=t().ResizerState,y={};if(null==g?void 0:g.isFocused){var n,r,a,l,s,d,p,m,h,f,v;let t=await e(I());y={aspect_ratio:null===(n=g.outputSettings)||void 0===n?void 0:n.aspectRatio.value,is_face_cam_included:(null===(a=g.editorSettings)||void 0===a?void 0:null===(r=a.faceCam)||void 0===r?void 0:r.value)?1:0,face_cam_type:null===(s=g.editorSettings)||void 0===s?void 0:null===(l=s.faceCam)||void 0===l?void 0:l.value,face_cam_stroke_type:null===(m=g.editorSettings)||void 0===m?void 0:null===(p=m.faceCam)||void 0===p?void 0:null===(d=p.strokeStyle)||void 0===d?void 0:d.value,face_cam_stroke_color_1:x()(g,"editorSettings.faceCam.strokeStyle.colors.0",null),face_cam_stroke_color_2:x()(g,"editorSettings.faceCam.strokeStyle.colors.1",null),is_blurred:(null===(h=g.outputSettings)||void 0===h?void 0:h.blured)?"1":"0",backgroundColor:(null===(f=g.outputSettings)||void 0===f?void 0:f.blured)?"#000000":null===(v=g.outputSettings)||void 0===v?void 0:v.backgroundColor,content_source_x:x()(t,"0.sourceX")>=0?(0,u.Sw)(x()(t,"0.sourceX")):0>x()(t,"0.sourceX")?0:null,content_source_y:x()(t,"0.sourceY")>=0?(0,u.Sw)(x()(t,"0.sourceY")):0>x()(t,"0.sourceY")?0:null,content_source_width:x()(t,"0.sourceWidth")>=0?(0,u.Sw)(x()(t,"0.sourceWidth"))>o.videoWidth?(0,u.Sw)(o.videoWidth):(0,u.Sw)(x()(t,"0.sourceWidth")):0>x()(t,"0.sourceWidth")?0:null,content_source_height:x()(t,"0.sourceHeight")>=0?(0,u.Sw)(x()(t,"0.sourceHeight"))>o.videoHeight?(0,u.Sw)(o.videoHeight):(0,u.Sw)(x()(t,"0.sourceHeight")):0>x()(t,"0.sourceHeight")?0:null,content_destination_x:x()(t,"0.destinationX")>=0?(0,u.Sw)(x()(t,"0.destinationX")):0>x()(t,"0.destinationX")?0:null,content_destination_y:x()(t,"0.destinationY")>=0?(0,u.Sw)(x()(t,"0.destinationY")):0>x()(t,"0.destinationY")?0:null,content_destination_width:x()(t,"0.destinationWidth")>=0?(0,u.Sw)(x()(t,"0.destinationWidth")):0>x()(t,"0.destinationWidth")?0:null,content_destination_height:x()(t,"0.destinationHeight")>=0?(0,u.Sw)(x()(t,"0.destinationHeight")):0>x()(t,"0.destinationHeight")?0:null,face_cam_source_x:x()(t,"1.sourceX")>=0?(0,u.Sw)(x()(t,"1.sourceX")):0>x()(t,"1.sourceX")?0:null,face_cam_source_y:x()(t,"1.sourceY")>=0?(0,u.Sw)(x()(t,"1.sourceY")):0>x()(t,"1.sourceY")?0:null,face_cam_source_width:x()(t,"1.sourceWidth")>=0?(0,u.Sw)(x()(t,"1.sourceWidth")):0>x()(t,"1.sourceWidth")?0:null,face_cam_source_height:x()(t,"1.sourceHeight")>=0?(0,u.Sw)(x()(t,"1.sourceHeight")):0>x()(t,"1.sourceHeight")?0:null,face_cam_destination_x:x()(t,"1.destinationX")>=0?(0,u.Sw)(x()(t,"1.destinationX")):0>x()(t,"1.destinationX")?0:null,face_cam_destination_y:x()(t,"1.destinationY")>=0?(0,u.Sw)(x()(t,"1.destinationY")):0>x()(t,"1.destinationY")?0:null,face_cam_destination_width:x()(t,"1.destinationWidth")>=0?(0,u.Sw)(x()(t,"1.destinationWidth")):0>x()(t,"1.destinationWidth")?0:null,face_cam_destination_height:x()(t,"1.destinationHeight")>=0?(0,u.Sw)(x()(t,"1.destinationHeight")):0>x()(t,"1.destinationHeight")?0:null}}i((0,c.sW)(y))}catch(e){o(e)}}),O=()=>(e,t)=>new Promise(async(e,i)=>{var o,n;let r=structuredClone(null===(n=t())||void 0===n?void 0:null===(o=n.EditorState)||void 0===o?void 0:o.layers).filter(e=>
1(null==e?void 0:e.layerType)===l.QP.VIDEO).map(e=>{var t,i,o,n,r,a,l,s,d,p,m,h,f,v,g,y;return(0,c.sW)({from:(null==e?void 0:null===(t=e.duration)||void 0===t?void 0:t.from)<0?0:Number((0,u.Md)(null==e?void 0:null===(i=e.duration)||void 0===i?void 0:i.from,3)),to:Number((0,u.Md)(null==e?void 0:null===(o=e.duration)||void 0===o?void 0:o.to,3)),volume:2*Number(null!==(y=null==e?void 0:null===(n=e.attributes)||void 0===n?void 0:n.volume)&&void 0!==y?y:1)/100,subtitlesGenerated:null==e?void 0:e.subtitlesGenerated,subtitlesConfig:null==e?void 0:e.subtitlesConfig,createdTranscription:null==e?void 0:e.createdTranscription,id:null==e?void 0:e.id,trimming:_()(null==e?void 0:null===(a=e.duration)||void 0===a?void 0:null===(r=a.trimmedDuration)||void 0===r?void 0:r.from)||_()(null==e?void 0:null===(s=e.duration)||void 0===s?void 0:null===(l=s.trimmedDuration)||void 0===l?void 0:l.to)?null:{from:Number((0,u.Md)((null==e?void 0:null===(p=e.duration)||void 0===p?void 0:null===(d=p.trimmedDuration)||void 0===d?void 0:d.from)*(null==e?void 0:null===(m=e.layerData)||void 0===m?void 0:m.duration)/100,3))||0,to:Number((0,u.Md)((null==e?void 0:null===(f=e.duration)||void 0===f?void 0:null===(h=f.trimmedDuration)||void 0===h?void 0:h.to)*(null==e?void 0:null===(v=e.layerData)||void 0===v?void 0:v.duration)/100||(null==e?void 0:null===(g=e.layerData)||void 0===g?void 0:g.duration),3))}})});e(P()(r,"from"))}),N=e=>{var t,i,o,n,r,a,l,s,d,c,p,h,f,v,g,y,b,A,x,w;let{layer:_,editingConainer:S,generalDetails:C,videoState:k}=e,T={width:(null==k?void 0:k.videoWidth)/(null==k?void 0:k.videoHeight)*150,height:150},E=(0,u.Md)((0,u.k3)(null==_?void 0:null===(t=_.position)||void 0===t?void 0:t.width)?(0,m.dE)(null==_?void 0:null===(o=_.position)||void 0===o?void 0:null===(i=o.width)||void 0===i?void 0:i.split("%")[0],(null==S?void 0:S.clientWidth)||(null==C?void 0:null===(n=C.preview)||void 0===n?void 0:n.preview_width)||(null==T?void 0:T.width)||(null==k?void 0:k.videoWidth)):null==_?void 0:null===(r=_.position)||void 0===r?void 0:r.width,3);return{boxWidth:E,boxHeight:(0,u.Md)((0,u.k3)(null==_?void 0:null===(a=_.position)||void 0===a?void 0:a.height)?(0,m.dE)(null==_?void 0:null===(s=_.position)||void 0===s?void 0:null===(l=s.height)||void 0===l?void 0:l.split("%")[0],(null==S?void 0:S.clientHeight)||(null==C?void 0:null===(d=C.preview)||void 0===d?void 0:d.preview_height)||(null==T?void 0:T.height)||(null==k?void 0:k.videoHeight)):null==_?void 0:null===(c=_.position)||void 0===c?void 0:c.height,3),boxXAxis:(0,u.Md)((0,u.k3)(null==_?void 0:null===(p=_.position)||void 0===p?void 0:p.x)?(0,m.dE)(null==_?void 0:null===(f=_.position)||void 0===f?void 0:null===(h=f.x)||void 0===h?void 0:h.split("%")[0],(null==S?void 0:S.clientWidth)||(null==C?void 0:null===(v=C.preview)||void 0===v?void 0:v.preview_width)||(null==T?void 0:T.width)||(null==k?void 0:k.videoWidth)):null==_?void 0:null===(g=_.position)||void 0===g?void 0:g.x,3),boxYAxis:(0,u.Md)((0,u.k3)(null==_?void 0:null===(y=_.position)||void 0===y?void 0:y.y)?(0,m.dE)(null==_?void 0:null===(A=_.position)||void 0===A?void 0:null===(b=A.y)||void 0===b?void 0:b.split("%")[0],(null==S?void 0:S.clientHeight)||(null==C?void 0:null===(x=C.preview)||void 0===x?void 0:x.preview_height)||(null==T?void 0:T.height)||(null==k?void 0:k.videoHeight)):null==_?void 0:null===(w=_.position)||void 0===w?void 0:w.y,3)}},j=e=>{let{layer:t,editingConainer:i,canValidate:o}=e;return(e,n)=>{var r,a,d,m,h,f,v,g,y,b,A,x,w,_,S,C,k,T,E,P,I,D,O,j,M,R,z,L,V,F,U,G,B,Z,q,H,W,Y,K,Q,$,X,J,ee,et,ei,eo,en,er,ea,el,es,ed,eu,ec,ep,em,eh,ef;let{generalDetails:ev}=null===(r=n())||void 0===r?void 0:r.EditorState,eg=null===(a=n())||void 0===a?void 0:a.VideoState,{boxHeight:ey,boxWidth:eb,boxXAxis:eA,boxYAxis:ex}=N({layer:t,editingConainer:i,generalDetails:ev,videoState:eg}),ew=Number("".concat(null==t?void 0:null===(m=t.attributes)||void 0===m?void 0:null===(d=m.style)||void 0===d?void 0:d.fontSize).replace("px","")),e_=ew?(0,u.Md)(ew,3):30,eS=null;return!ey&&o&&(eS=(0,u.Md)((0,s.vG)(e_,(null==t?void 0:t.layerType)===l.QP.SUBTITLE_TEXT&&(null==t?void 0:null===(el=t.attributes)||void 0===el?void 0:el.textEffe
1ct)&&(null==t?void 0:null===(ed=t.attributes)||void 0===ed?void 0:null===(es=ed.textEffect)||void 0===es?void 0:es.value)!=="plain"?p.Z.wrapTextWithSpans(null==t?void 0:null===(eu=t.layerData)||void 0===eu?void 0:eu.text):null==t?void 0:null===(ec=t.layerData)||void 0===ec?void 0:ec.text,((null==ev?void 0:null===(ep=ev.preview)||void 0===ep?void 0:ep.preview_width)||(null==eg?void 0:eg.videoWidth))*eb/100,null==t?void 0:null===(ef=t.attributes)||void 0===ef?void 0:null===(eh=ef.style)||void 0===eh?void 0:null===(em=eh.fontFamily)||void 0===em?void 0:em.label),3)),(0,c.sW)({level:null==t?void 0:t.level,type:"text",id:null==t?void 0:t.id,from:t.duration.from?t.duration.from<0?0:(0,u.Md)(null==t?void 0:null===(h=t.duration)||void 0===h?void 0:h.from,3):0,to:(0,u.Md)(t.duration.to,3),value:(null==t?void 0:null===(v=t.layerData)||void 0===v?void 0:null===(f=v.innerText)||void 0===f?void 0:f.trim())||"",innerHtml:null==t?void 0:null===(g=t.layerData)||void 0===g?void 0:g.text,font_id:null==t?void 0:null===(A=t.attributes)||void 0===A?void 0:null===(b=A.style)||void 0===b?void 0:null===(y=b.fontFamily)||void 0===y?void 0:y.value,font_size:e_,font_color:null==t?void 0:null===(w=t.attributes)||void 0===w?void 0:null===(x=w.style)||void 0===x?void 0:x.color,horizontal_align:null==t?void 0:null===(S=t.attributes)||void 0===S?void 0:null===(_=S.style)||void 0===_?void 0:_.textAlign,vertical_align:"center",box_width:eb,from_client_side:!!eS,box_height:ey||eS,x:eA,y:ex,is_subtitle:(null==t?void 0:t.layerType)===(null===l.QP||void 0===l.QP?void 0:l.QP.SUBTITLE_TEXT),rotate:(null==t?void 0:null===(k=t.position)||void 0===k?void 0:null===(C=k.transformObject)||void 0===C?void 0:C.rotate)?Number(null==t?void 0:null===(E=t.position)||void 0===E?void 0:null===(T=E.transformObject)||void 0===T?void 0:T.rotate.replace("deg",""))%360:null,background:(null==t?void 0:null===(I=t.attributes)||void 0===I?void 0:null===(P=I.style)||void 0===P?void 0:P.backgroundColor)?{type:"fill",color:(null==t?void 0:null===(O=t.attributes)||void 0===O?void 0:null===(D=O.style)||void 0===D?void 0:D.backgroundColor)||"#ffffff00",border_radius:(null==t?void 0:null===(M=t.attributes)||void 0===M?void 0:null===(j=M.style)||void 0===j?void 0:j.borderRadius)||0,padding:(null==t?void 0:null===(z=t.attributes)||void 0===z?void 0:null===(R=z.style)||void 0===R?void 0:R.padding)||0,opacity:(null==t?void 0:null===(V=t.attributes)||void 0===V?void 0:null===(L=V.style)||void 0===L?void 0:L.opacity)||0}:null,outline_color:(null==t?void 0:null===(U=t.attributes)||void 0===U?void 0:null===(F=U.outline)||void 0===F?void 0:F.isOn)?null==t?void 0:null===(B=t.attributes)||void 0===B?void 0:null===(G=B.outline)||void 0===G?void 0:G.color:null,outline_width:(null==t?void 0:null===(q=t.attributes)||void 0===q?void 0:null===(Z=q.outline)||void 0===Z?void 0:Z.isOn)?null==t?void 0:null===(W=t.attributes)||void 0===W?void 0:null===(H=W.outline)||void 0===H?void 0:H.width:null,intro_animation:(null==t?void 0:null===(K=t.attributes)||void 0===K?void 0:null===(Y=K.effect)||void 0===Y?void 0:Y.value)?{name:null==t?void 0:null===($=t.attributes)||void 0===$?void 0:null===(Q=$.effect)||void 0===Q?void 0:Q.value,duration:null==t?void 0:null===(J=t.attributes)||void 0===J?void 0:null===(X=J.effect)||void 0===X?void 0:X.duration}:null,...(null==t?void 0:t.layerType)===(null===l.QP||void 0===l.QP?void 0:l.QP.SUBTITLE_TEXT)?{relatedLayerId:null==t?void 0:t.relatedLayerId,subtitle:null==t?void 0:t.subtitle,duration:null==t?void 0:t.duration,text_effect:(null==t?void 0:null===(ee=t.attributes)||void 0===ee?void 0:ee.textEffect)?{value:null==t?void 0:null===(ei=t.attributes)||void 0===ei?void 0:null===(et=ei.textEffect)||void 0===et?void 0:et.value,text_color:null==t?void 0:null===(en=t.attributes)||void 0===en?void 0:null===(eo=en.textEffect)||void 0===eo?void 0:eo.textColor,highlight_color:null==t?void 0:null===(ea=t.attributes)||void 0===ea?void 0:null===(er=ea.textEffect)||void 0===er?void 0:er.highlightColor}:null}:{}})}},M=e=>{var t,i,o,n,r,a,s,d,p,m,h,f,v,g,y,b;let{layer:A}=e;return(0,c.sW)({level:null==A?void 0:A.level,type:(null==A?void 0:null===(t=A.layerData)||void 0===t?void 0:t.isMediaAsset)?l.QP.CUSTOM_AUDIO:l.QP.AUDIO_SOUND,audio_sound_id:null==A?void 0:null===(i=A.layerData)||void 0===i?void 0:i.id,trim_from:(0,u.Md)(Number(null==A?void 0:null===(n=A.duration)||void 0===n?void 0:null===(o=n.trimmedDuration)||void 0===o?void 0:o.from)*Number(null==A?void 0:null===(a=A.layerData)||void 0===a?void 0:null===(r=a.meta)||void 0===r?void 0:r.duration)/100||0,3),trim_to:(null==A?void 0:null===(d=A.duration)||void 0===d?void 0:null===(s=d.trimmedDuration)||void 0===s?void 0:s.to)?(0,u.Md)(Number(Number(null==A?void 0:null===(m=A.duration)||void 0===m?void 0:null===(p=m.trimmedDuration)||void 0===p?void 0:p.to)*Number(null==A?void 0:null===(f=A.layerData)||void 0===f?void 0:null===(h=f.meta)||void 0===h?void 0:h.duration)/100),3):null==A?void 0:null===(g=A.layerData)||void 0===g?void 0:null===(v=g.meta)||void 0===v?void 0:v.duration,volume:2*Number(null!==(b=null==A?void 0:null===(y=A.attributes)||void 0===y?void 0:y.volume)&&void 0!==b?b:1)/100,from:A.duration.from?A.duration.from<0?0:(0,u.Md)(A.duration.from,3):0,layerClientInfo:A,id:null==A?void 0:A.id})},R=e=>{let{layer:t,editingConainer:i}=e;return(e,o)=>{var n,r,a,s,d,p,m,h,f,v;let{generalDetails:g}=null===(n=o())||void 0===n?void 0:n.EditorState,{boxHeight:y,boxWidth:b,boxXAxis:A,boxYAxis:x}=N({layer:t,editingConainer:i,generalDetails:g,videoState:null===(r=o())||void 0===r?void 0:r.VideoState}),w=document.querySelector(".image-".concat(null==t?void 0:null===(a=t.layerData)||void 0===a?void 0:a.id,"-layer")),_=y*(null==t?void 0:null===(s=t.dimensions)||void 0===s?void 0:s.width)/(null==t?void 0:null===(d=t.dimensions)||void 0===d?void 0:d.height);return(0,c.sW)({level:null==t?void 0:t.level,resource_type:null==t?void 0:null===(p=t.layerData)||void 0===p?void 0:p.resource_type,type:(null==t?void 0:null===(m=t.layerData)||void 0===m?void 0:m.isMediaAsset)?(null==t?void 0:t.layerType)===l.QP.GIFS?l.QP.CUSTOM_GIFS:l.QP.CUSTOM_IMAGE:null==t?void 0:t.layerType,...(null==t?void 0:t.layerType)===l.QP.GIFS?{gif_id:null==t?void 0:null===(h=t.layerData)||void 0===h?void 0:h.id,gif_url:null==t?void 0:null===(f=t.layerData)||void 0===f?void 0:f.gif_url}:{image_id:null==t?void 0:null===(v=t.layerData)||void 0===v?void 0:v.id},from:t.duration.from?t.duration.from<0?0:(0,u.Md)(t.duration.from,3):0,to:(0,u.Md)(t.duration.to,3),width:_?(0,u.Md)(_,3):b||(null==w?void 0:w.clientWidth),height:y,x:A,y:x,layerClientInfo:t,id:null==t?void 0:t.id})}},z=e=>{let{layer:t,editingConainer:i}=e;return(e,o)=>{var n,r,a,s,d,p,m,h,f,v,g,y,b,A,x,w,_,S,C,k,T,E,P,I,D,O,j,M,R;let{generalDetails:z}=null===(n=o())||void 0===n?void 0:n.EditorState,L=document.querySelector(".sub-video-".concat(null==t?void 0:null===(r=t.layerData)||void 0===r?void 0:r.id,"-layer")),{boxHeight:V,boxWidth:F,boxXAxis:U,boxYAxis:G}=N({layer:t,editingConainer:i,generalDetails:z,videoState:null===(a=o())||void 0===a?void 0:a.VideoState}),B=V*(null==t?void 0:null===(s=t.dimensions)||void 0===s?void 0:s.width)/(null==t?void 0:null===(d=t.dimensions)||void 0===d?void 0:d.height);return(0,c.sW)({id:null==t?void 0:t.id,level:null==t?void 0:t.level,type:(null==t?void 0:null===(p=t.layerData)||void 0===p?void 0:p.isMediaAsset)?l.QP.CUSTOM_VIDEO:l.QP.VIDEO,video_id:null==t?void 0:null===(m=t.layerData)||void 0===m?void 0:m.id,trim_from:Number((null==t?void 0:null===(f=t.duration)||void 0===f?void 0:null===(h=f.trimmedDuration)||void 0===h?void 0:h.from)*Number((null==t?void 0:null===(v=t.layerData)||void 0===v?void 0:v.length)||(null==t?void 0:null===(g=t.layerData)||void 0===g?void 0:g.duration)||(null==t?void 0:null===(b=t.layerData)||void 0===b?void 0:null===(y=b.meta)||void 0===y?void 0:y.duration))/100)||0,trim_to:(null==t?void 0:null===(x=t.duration)||void 0===x?void 0:null===(A=x.trimmedDuration)||void 0===A?void 0:A.to)?Number((null==t?void 0:null===(_=t.duration)||void 0===_?void 0:null===(w=_.trimmedDuration)||void 0===w?void 0:w.to)*Number((null==t?void 0:null===(S=t.layerData)||void 0===S?void 0:S.length)||(null==t?void 0:null===(C=t.layerData)||void 0===C?void 0:C.duration)||(null==t?void 0:null===(T=t.layerData)||void 0===T?void 0:null===(k=T.meta)||void 0===k?void 0:k.duration))/100):Number((null==t?void 0:null===(E=t.layerData)||void 0===E?void 0:E.length)||(null==t?void 0:null===(P=t.layerData)||void 0===P?void 0:P.duration)||(null==t?void 0:null===(D=t.layerData)||void 0===D?void 0:null===(I=D.meta)||void 0===I?void 0:I.duration)),volume:2*Number(null!==(R=null==t?void 0:null===(O=t.attributes)||void 0===O?void 0:O.volume)&&void 0!==R?R:1)/100,from:t.duration.from<0?0:(0,u.Md)(t.duration.from,3),width:B?(0,u.Md)(B,3):F||L.clientWidth,height:V,x:U,y:G,has_audio:null==t?void 0:null===(M=t.layerData)||void 0===M?void 0:null===(j=M.meta)||void 0===j?void 0:j.hasAudio,layerClientInfo:t,...(null==t?void 0:t.subtitlesGenerated)?{subtitlesGenerated:null==t?void 0:t.subtitlesGenerated,subtitlesConfig:null==t?void 0:t.subtitlesConfig,createdTranscription:null==t?void 0:t.createdTranscription}:{}})}},L=e=>new Promise((t,i)=>{r.R.videos.create(e,e=>{t(e)},()=>{i({})})});t.ZP={clearVideoState:()=>e=>{e({type:"CLEAR_STATE"})},shapeResizerDataToBeCompiled:D,shapeEditorData:e=>{let{canValidate:t,fakePreviewDimensions:i}=e;return async(e,o)=>new Promise(async(n,r)=>
1{try{let r=await e(D()),v=o().EditorState,y=o().VideoState,b=o().ResizerState,A=document.getElementById("editing"),{layers:x,generalDetails:w,videosSubtitls:_}=v,S=Math.max.apply(Math,x.map(function(e){var t;return null==e?void 0:null===(t=e.duration)||void 0===t?void 0:t.to})),k=await e(O());if(y&&(null==y?void 0:y.uploadCompleted)){var a,d,p,m,h,f;let o={meta:{video_width:null==y?void 0:y.videoWidth,video_height:null==y?void 0:y.videoHeight,aspect_ratio:(0,s.n3)(null==y?void 0:y.videoWidth,null==y?void 0:y.videoHeight)},original_video_duration:(0,u.Md)(null==y?void 0:y.duration,3),from_link_url_uuid:(null==y?void 0:y.isFromLink)?null==y?void 0:y.uuid:null,upload_key:(null==y?void 0:y.isFromLink)?null:null==y?void 0:y.videoHash,video_duration:(null==x?void 0:x.length)?(0,u.Md)(S,3):(0,u.Md)(null==y?void 0:y.duration,3),canvas_color:(null==b?void 0:null===(a=b.outputSettings)||void 0===a?void 0:a.backgroundColor)||"#000000",quality:null==v?void 0:null===(d=v.generalDetails)||void 0===d?void 0:d.quality,fps:(null==v?void 0:null===(p=v.generalDetails)||void 0===p?void 0:p.quality)==="auto"?"auto":(null==v?void 0:null===(m=v.generalDetails)||void 0===m?void 0:m.fps)||l.oc[0].value,aspect_ratio_converter:(null==b?void 0:b.isFocused)?r:null,preview_width:((null==A?void 0:A.clientWidth)||(null==A?void 0:A.clientWidth)!=="auto"?null==A?void 0:A.clientWidth:0)||(null==w?void 0:null===(h=w.preview)||void 0===h?void 0:h.preview_width)||(null==i?void 0:i.width),preview_height:((null==A?void 0:A.clientHeight)||(null==A?void 0:A.clientHeight)!=="auto"?null==A?void 0:A.clientHeight:0)||(null==w?void 0:null===(f=w.preview)||void 0===f?void 0:f.preview_height)||(null==i?void 0:i.height),main_video:k,layers:C()(T()(g()(x,e=>e.layerType!==l.QP.VIDEO),"order","asc"),(i,o)=>(null==i?void 0:i.layerType)===l.QP.TEXT||(null==i?void 0:i.layerType)===l.QP.SUBTITLE_TEXT?e(j({layer:i,editingConainer:A,canValidate:t})):(null==i?void 0:i.layerType)===l.QP.AUDIO_SOUND?M({layer:i}):(null==i?void 0:i.layerType)===l.QP.IMAGE||(null==i?void 0:i.layerType)===l.QP.GIFS?e(R({layer:i,editingConainer:A}
1)):(null==i?void 0:i.layerType)===l.QP.VIDEOS?e(z({layer:i,editingConainer:A})):null),videosSubtitls:_};n((0,c.sW)(o))}}catch(e){}})},updateExportStatus:e=>t=>{t({type:"UPDATE_EXPORT_STATUS",payload:"exported"===e})},studioStoreVideo:e=>t=>{t({type:"STORE_VIDEO",payload:e})},videoUploadCompleted:e=>{let{fileId:t,uploadId:i}=e;return(e,o)=>new Promise(async(e,n)=>{let r=(null==o?void 0:o.Upload).find(e=>(null==e?void 0:e.id)===t);await L({name:null==r?void 0:r.name,upload_id:i}),h.ZP.invalidateQueries({queryKey:f.queryKeys.studioVideos(),refetchType:"all"})})}}},29618:function(e,t,i){"use strict";i.d(t,{K:function(){return n}});var o,n,r=i(27361),a=i.n(r);(o=n||(n={})).STORE_VIDEO_ASSET="STORE_VIDEO_ASSET",o.CLEAR_VIDEO_ASSET_STATE="CLEAR_VIDEO_ASSET_STATE",t.Z={storeVideoAsset:e=>{let{videoId:t,assets:i}=e;return(e,o)=>{let n=a()(o(),"".concat(t),{});e({type:"STORE_VIDEO_ASSET",payload:{[t]:{...n,...i}}})}},clearVideoAssets:()=>(e,t)=>{e({type:"CLEAR_VIDEO_ASSET_STATE"})}}},88040:function(e,t,i){"use strict";var o,n;i.d(t,{J:function(){return o}}),(n=o||(o={})).TOGGLE_AUDIO="TOGGLE_AUDIO",n.UPDATE_VOICEOVER_CURRENT_TIME="UPDATE_VOICEOVER_CURRENT_TIME",n.LOAD_VOICEOVER_DATA="LOAD_VOICEOVER_DATA",n.CLEAR_VOICEOVER_PLAYER_STATE="CLEAR_VOICEOVER_PLAYER_STATE",t.Z={toggleAudio:()=>(e,t)=>{var i,o,n;return e({type:"TOGGLE_AUDIO",payload:!(null===(n=t())||void 0===n?void 0:null===(o=n.VoiceoverPlayer)||void 0===o?void 0:null===(i=o.audioState)||void 0===i?void 0:i.playing)})},loadVoiceoverData:e=>(t,i)=>t({type:"LOAD_VOICEOVER_DATA",payload:e}),updateCurrentTime:e=>(t,i)=>t({type:"UPDATE_VOICEOVER_CURRENT_TIME",payload:e}),clearVoiceoverPlayerState:()=>(e,t)=>e({type:"CLEAR_VOICEOVER_PLAYER_STATE"})}},9850:function(e,t,i){"use strict";var o,n;i.d(t,{a_:function(){return o}}),(n=o||(o={})).TOGGLE="TOGGLE",n.NEXT_STEP="NEXT_STEP",n.FINISH="FINISH",n.CHANGE_CAN_START="CHANGE_CAN_START",n.RESET="RESET";let r=[{title:{en:"Welcome to Bith.ai",ar:"مرحبا بك في Bith.ai"},description:{en:"Click here to create your first video",ar:"قم بالنقر هنا لإنشاء اول فيديو خاص بك"},componentDataWizard:"create-video-button",tooltipPosition:"right"},{title:{en:"Import",ar:"استيراد"},description:{en:"Click here to import a sample video",ar:"قم بالنقر هنا لإستيراد فيديو جاهز"},componentDataWizard:"import-video-button",elementIdToBeClicked:"importSampleLink",tooltipPosition:"bottom-right"}],a=()=>(e,t)=>{e({type:"TOGGLE",payload:!1})},l=()=>(e,t)=>{e({type:"FINISH"}),e(a())};t.ZP={toggleWizard:()=>(e,t)=>{var i,o;e({type:"TOGGLE",payload:!(null===(o=t())||void 0===o?void 0:null===(i=o.Wizard)||void 0===i?void 0:i.isOpen)})},nextStep:()=>(e,t)=>{var i,o,n,a;e((null===(o=t())||void 0===o?void 0:null===(i=o.Wizard)||void 0===i?void 0:i.currentStep)+1>(null==r?void 0:r.length)-1?l():{type:"NEXT_STEP",payload:(null===(a=t())||void 0===a?void 0:null===(n=a.Wizard)||void 0===n?void 0:n.currentStep)+1})},finishWizardSteps:l,resetWizard:()=>(e,t)=>{e({type:"RESET"})},openWizard:()=>(e,t)=>{e({type:"TOGGLE",payload:!0})},changeCanStart:()=>(e,t)=>{var i,o;null===(o=t())||void 0===o||null===(i=o.Auth)||void 0===i||i.user,e({type:"CHANGE_CAN_START",payload:!0})}}},68419:function(e,t,i){"use strict";i.d(t,{bG:function(){return c},x4:function(){return l},z2:function(){return u},R5:function(){return d},gS:function(){return s},Qm:function(){return p}});var o=i(64125),n=i(20931),r=i(35084);function a(e){if(!e||"object"!=typeof e||Array.isArray(e))return null;let t=e.data;return t&&"object"==typeof t&&!Array.isArray(t)?{...t,...null!=e.free_eligible_usages&&null==t.free_eligible_usages?{free_eligible_usages:e.free_eligible_usages}:{},...null!=e.freeEligibleUsages&&null==t.freeEligibleUsages?{freeEligibleUsages:e.freeEligibleUsages}:{}}:e}let l=(e,t,i)=>{let{email:n,password:r}=e;return(e,l)=>{o.i.login({email:n,password:r},i=>{let o=a(i);o&&e(p(o)),t&&t(null!=o?o:i)},e=>{i&&i(e)})}},s=(e,t,i)=>n=>{o.i.updateUserInfo(e,e=>{t&&t(e.data)},e=>{i&&i(e)})},d=(e,t,i)=>n=>{o.i.socialAuth(e,e=>{let i=a(e);i&&n(p(i)),t&&t(null!=i?i:e)},e=>{i&&i(e)})},u=(e,t,i)=>n=>{o.i.register(e,e=>{t&&t(e.data)},e=>i&&i(e))},c=(e,t)=>i=>{o.i.userInfo(t=>{let o=a(t);(0,r.x)(o)||i(p(o)),e&&e(o)},e=>{t&&t(e)})},p=e=>(t,i)=>{t({type:n.MF.CURRENT_USER,payload:e})}},21745:function(e,t,i){"use strict";i.d(t,{Dt:function(){return d},QK:function(){return s},c:function(){return l},kg:function(){return u},wb:function(){return a}});var o=i(23117),n=i(20931),r=i(35084);let a=(e,t,i)=>{let{email:n,password:r}=e;return(e,a)=>{o.N.login({email:n,password:r},i=>{e(u(i.data)),t&&t(i.data)},e=>{i&&i(e)})}},l=(e,t,i)=>n=>{o.N.socialAuth(e,e=>{n(u(e.data)),t&&t(e.data)},e=>{i&&i(e)})},s=(e,t,i)=>n=>{o.N.register(e,e=>{t&&t(e.data)},e=>i&&i(e))},d=(e,t)=>i=>{o.N.userInfo(t=>{(0,r.x)(null==t?void 0:t.data)||i(u(null==t?void 0:t.data)),e&&e(null==t?void 0:t.data)},e=>{t&&t(e)})},u=e=>(t,i)=>{t({type:n.MF.SALLA_CURRENT_USER,payload:e})}},363:function(e,t,i){"use strict";i.d(t,{Ss:function(){return a},tr:function(){return r}});var o=i(21012),n=i(20931);let r=()=>(e,t)=>{o.j.getFonts(t=>{let{data:i}=t;e({type:n.MF.FONT_FAMILIES,payload:i})})},a=e=>(t,i)=>{t({type:n.MF.LANGUAGES,payload:e})}},76302:function(e,t){"use strict";t.Z={init(){},identify(){},track(){},setUserProperties(){},setUserPropertyOnce(){},incrementUserProperty(){},registerSuperProperties(){},reset(){}}},67786:function(e,t,i){"use strict";var o=i(14292);
1class n{init(){this.adapters.forEach(e=>e.init()),this.initialized=!0,this.flush()}flush(){this.queue.forEach(e=>{let{method:t,args:i}=e;this.dispatch(t,...i)}),this.queue=[]}dispatch(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];this.adapters.forEach(t=>{try{t[e](...i)}catch(e){}})}enqueueOrDispatch(e){for(var t=arguments.length,i=Array(t>1?t-1:0),o=1;o<t;o++)i[o-1]=arguments[o];if(!this.initialized){this.queue.length<this.maxQueueSize&&this.queue.push({method:e,args:i});return}this.dispatch(e,...i)}identify(e,t){this.enqueueOrDispatch("identify",e,(0,o.tb)(t))}track(e,t){this.enqueueOrDispatch("track",e,(0,o.gl)(t))}setUserProperties(e){this.enqueueOrDispatch("setUserProperties",(0,o.tb)(e))}setUserPropertyOnce(e){this.enqueueOrDispatch("setUserPropertyOnce",(0,o.tb)(e))}incrementUserProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this.enqueueOrDispatch("incrementUserProperty",e,t)}registerSuperProperties(e){this.enqueueOrDispatch("registerSuperProperties",e)}reset(){this.enqueueOrDispatch("reset")}drainQueue(){let e=this.queue;return this.queue=[],e}adoptQueue(e){if(!e.length)return;let t=this.maxQueueSize-this.queue.length;!(t<=0)&&(this.queue.push(...e.slice(0,t)),this.initialized&&this.flush())}constructor({adapters:e,maxQueueSize:t=100}){this.initialized=!1,this.queue=[],this.adapters=e,this.maxQueueSize=t}}t.Z=n},19065:function(e,t,i){"use strict";let o;function n(){return{platform:window.innerWidth<768?"mobile":"desktop",session_id:function(){if(o)return o;if("undefined"==typeof sessionStorage)return"";let e=sessionStorage.getItem("bith_session_id");if(e)return o=e;let t="".concat(Date.now().toString(36),"-").concat(Math.random().toString(36).slice(2,9));return sessionStorage.setItem("bith_session_id",t),o=t}(),plan_name:"free"}}i.d(t,{M:function(){return n}})},71494:function(e,t,i){"use strict";i.d(t,{n5:function(){return o},ak:function(){return n},cy:function(){return r},m_:function(){return a},nS:function(){return s},dV:function(){return l}});let o={PAGE_VIEW:"page view",SESSION_STARTED:"session started",UTM_CAPTURED:"UTM captured",VISITOR_TRACK_FAILED:"visitor track failed",VISITOR_ID_ON_REGISTER:"visitor id on register",SIGN_IN:"sign in",SIGN_UP_STARTED:"sign up started",SIGN_UP_COMPLETED:"sign up completed",EMAIL_VERIFIED:"email verified",ACTIVATION:"activation",PRE_SUBSCRIPTION_FLOW:"pre subscription flow"},n={CHECKOUT_STARTED:"checkout started",CHECKOUT_FAILED:"checkout failed",PURCHASE_COMPLETED:"purchase completed",SUBSCRIPTION_STARTED:"subscription started",SUBSCRIPTION_CANCELLED:"subscription cancelled",SUBSCRIPTION_REACTIVATED:"subscription reactivated",SUBSCRIPTION_PAYMENT_FAILED:"subscription payment failed",CHURNED:"churned"},r={CREDITS_CONSUMED:"credits consumed",MINUTES_CONSUMED:"minutes consumed",CREDITS_PURCHASE_STARTED:"credits purchase started",CREDITS_PURCHASE_COMPLETED:"credits purchase completed"},a={CREDIT_LIMIT_HIT:"credit limit hit",PAYWALL_VIEWED:"paywall flow viewed",PAYWALL_INTERACTION:"paywall interaction",ANNUAL_PLANS_POPUP_VIEWED:"annual plans popup viewed",ANNUAL_PLANS_POPUP_CTA_CLICKED:"annual plans popup cta clicked",ANNUAL_PLANS_POPUP_DISMISSED:"annual plans popup dismissed"},l={TOOL_OPENED:"tool opened",TOOL_FLOW_SELECTED:"tool flow selected",SOURCE_SELECTED:"source selected",TOOL_CONFIGURATION:"tool configuration",GENERATION:"generation",EDITOR_ACTION:"editor action",EXPORT:"export",RESULT_ACTION:"result action",TOOL_TRANSITION:"tool transition",FEEDBACK:"feedback",HISTORY_VIEWED:"history viewed",TEMPLATE_SELECTED:"template selected",UGC_SCENE_EDIT_INTRO_POPUP_VIEWED:"ugc scene edit intro popup viewed",UGC_SCENE_EDIT_INTRO_POPUP_CTA_CLICKED:"ugc scene edit intro popup cta clicked",UGC_SCENE_EDIT_INTRO_POPUP_DISMISSED:"ugc scene edit intro popup dismissed"},s={ERROR_OCCURRED:"error occurred",CTA_CLICKED:"CTA clicked",AB_TEST_ASSIGNED:"ab test assigned"};[...Object.values(o),...Object.values(n),...Object.values(r),...Object.values(a),...Object.values(l),...Object.values(s)]},90238:function(e,t,i){"use strict";i.d(t,{Ns:function(){return f},H5:function(){return p},ZP:function(){return g},uX:function(){return v}});var o=i(67786),n=i(76302),r=i(71494),a=i(85537),l=i(14292),s=i(66464),d=i(37094),u=i(19065);let c=new o.Z({adapters:[n.Z]});function p(e){let t=c.drainQueue();(c=e).adoptQueue(t)}let m=!1,h=new Set;
1function f(){m||(m=!0,h.forEach(e=>e()),h.clear())}function v(e){if(m){e();return}h.add(e)}var g={init(){c.init()},identify(e,t){c.identify(e,t)},track(e,t){let i=(0,l.gl)((0,d.$T)(t));c.track(e,i),function(e,t,i){var o,n,a;switch(t){case r.dV.TOOL_OPENED:{let t=null==i?void 0:i.tool_name;t&&e.setUserProperties({last_tool_used:String(t)});break}case r.dV.EXPORT:(null==i?void 0:i.status)==="completed"&&e.incrementUserProperty("export_count");break;case r.nS.CTA_CLICKED:{let t=null!==(n=null!==(o=null==i?void 0:i.cta_name)&&void 0!==o?o:null==i?void 0:i.button_text)&&void 0!==n?n:null==i?void 0:i.cta_url;t&&e.setUserProperties({last_cta_clicked:String(t)});break}case r.m_.PAYWALL_VIEWED:{let t=null!==(a=null==i?void 0:i.trigger_source)&&void 0!==a?a:null==i?void 0:i.entry_point;t&&e.setUserProperties({paywall_source:String(t)});break}case r.ak.CHECKOUT_FAILED:case r.ak.SUBSCRIPTION_PAYMENT_FAILED:e.incrementUserProperty("failed_checkout_count"),e.setUserProperties({last_failed_payment_date:new Date().toISOString()});break;case r.ak.SUBSCRIPTION_REACTIVATED:e.incrementUserProperty("reactivation_count"),e.setUserProperties({subscription_status:"active"});break;case r.ak.SUBSCRIPTION_CANCELLED:{e.setUserProperties({subscription_status:"inactive"});let t=null==i?void 0:i.cancellation_reason;t&&e.setUserProperties({cancellation_reason:String(t)});break}case r.nS.ERROR_OCCURRED:e.incrementUserProperty("error_frequency")}}(c,e,i)},setUserProperties(e){c.setUserProperties(e)},setPlan(e){c.setUserProperties(e),this.registerSuperProperties({plan_name:e.plan_name,subscription_status:e.subscription_status})},setUserPropertyOnce(e){c.setUserPropertyOnce(e)},incrementUserProperty(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;c.incrementUserProperty(e,t)},registerSuperProperties(e){var t;let i={};for(let[o,n]of Object.entries(null!==(t=(0,l.gl)(e))&&void 0!==t?t:{}))null!=n&&""!==n&&(i[o]=n);Object.keys(i).length>0&&c.registerSuperProperties(i)},reset(){c.reset(),this.registerSuperProperties((0,u.M)())},trackCreditsConsumed(e){let{tool_name:t,generation_id:i,credits_used:o,credits_remaining:n,generation_type:a,entry_point:l}=e,u=(0,s.b)(o),p=(0,s.b)(n);c.track(r.cy.CREDITS_CONSUMED,{tool_name:(0,d.kS)(t),generation_id:i,credits_used:u,credits_remaining:p,generation_type:a,entry_point:l}),"number"==typeof u&&u>0&&c.incrementUserProperty("lifetime_credits_used",u),"number"==typeof p&&c.setUserProperties({current_credits_balance:p})},getCreditsBalance:e=>(0,a.bq)(e),snapshotGenerationCredits(e,t,i){(0,a.uY)(e,t,i)},trackCreditsConsumedAfterRefresh(e){let{tool_name:t,generation_id:i,userCredits:o,fallback_prev_balance:n,explicit_credits_used:l,generation_type:s,entry_point:u}=e,p=(0,a.bq)(o),m=(0,a.Xv)({generationId:i,newBalance:p,fallbackPrevBalance:n,explicitCredits:l});c.track(r.cy.CREDITS_CONSUMED,{tool_name:(0,d.kS)(t),generation_id:i,credits_used:m,credits_remaining:p,generation_type:s,entry_point:u}),"number"==typeof m&&m>0&&c.incrementUserProperty("lifetime_credits_used",m),"number"==typeof p&&c.setUserProperties({current_credits_balance:p})},trackCreditLimitHit(e){c.track(r.m_.CREDIT_LIMIT_HIT,{paywall_expected:!0,...e,...(null==e?void 0:e.tool_name)?{tool_name:(0,d.kS)(e.tool_name)}:{}}),c.incrementUserProperty("total_credit_limit_hits"),c.setUserProperties({last_credit_limit_hit_date:new Date().toISOString()})}}},14292:function(e,t,i){"use strict";i.d(t,{gl:function(){return l},tb:function(){return s}});var o=i(66464);let n=["cart_value","plan_price","price","value","quantity","credits_allocated","credits_package","credits_purchased","package_price","account_age_days","days_since_cancellation","days_inactive","days_since_signup","active_generations_last_30d","total_generations","lifetime_credits_used","total_sessions","credits_used","credits_remaining","required_credits","current_credits","shortfall_credits","minutes_used","minutes_remaining","file_size","duration_sec","generation_time_ms","edit_count","history_item_count","reused_duration","verification_time_sec","ugc_step_number","step_revision_number","script_revision_number","characters_found_count","product_image_count","product_description_length","topic_description_length","custom_location_text_length","product_details_fields_edited_count","script_text_length","hook_text_length","content_text_length","cta_text_length","script_sections_count","script_regeneration_count","estimated_delivery_hours","sce
1ne_index","scene_order","scenes_total","scenes_completed","scenes_failed","scenes_regenerated_count","scene_completion_rate","total_generation_time_ms","version_count","version_number","visible_ugc_count","visible_draft_count","visible_pending_count","visible_completed_count","budget_amount","human_videos","bith_videos","slide_index"],r=["plan_price","cart_value_avg","failed_checkout_count","reactivation_count","total_spend","lifetime_value","days_since_last_active","onboarding_progress_percent","current_credits_balance","lifetime_credits_used","total_credits_used","paywall_view_count","paywall_conversion_rate","total_credit_limit_hits","total_generations","export_count","script_regeneration_count","error_frequency","satisfaction_score","history_usage_frequency"];function a(e,t){let i=!1,n={...e};for(let e of t){if(!(e in n))continue;let t=n[e];if("number"==typeof t&&Number.isFinite(t))continue;let r=(0,o.b)(t);void 0!==r&&(n[e]=r,i=!0)}return i?n:e}function l(e){return e?a(e,n):e}function s(e){return e?a(e,r):e}},6627:function(e,t,i){"use strict";i.d(t,{G:function(){return a}});var o=i(67294),n=i(90238),r=i(71494);function a(e,t){let i={tool_name:e,...t?{entry_point:t}:{}},a=(0,o.useCallback)(e=>{n.ZP.track(r.dV.TOOL_OPENED,{...i,...e})},[e,t]),l=(0,o.useCallback)((e,t)=>{n.ZP.track(r.dV.TOOL_FLOW_SELECTED,{...i,flow_type:e,...t})},[e,t]),s=(0,o.useCallback)((e,t)=>{n.ZP.track(r.dV.SOURCE_SELECTED,{...i,source_type:e,...t})},[e,t]),d=(0,o.useCallback)(e=>{n.ZP.track(r.dV.TOOL_CONFIGURATION,{...i,...e})},[e,t]),u=(0,o.useCallback)((e,t)=>{n.ZP.track(r.dV.GENERATION,{...i,status:e,...t})},[e,t]),c=(0,o.useCallback)((e,t)=>{n.ZP.track(r.dV.EDITOR_ACTION,{...i,action_type:e,...t})},[e,t]),p=(0,o.useCallback)((e,t)=>{n.ZP.track(r.dV.EXPORT,{...i,status:e,...t})},[e,t]),m=(0,o.useCallback)((e,t)=>{n.ZP.track(r.dV.RESULT_ACTION,{...i,action_type:e,...t})},[e,t]);return{trackToolOpened:a,trackToolFlowSelected:l,trackSourceSelected:s,trackToolConfiguration:d,trackGeneration:u,trackEditorAction:c,trackExport:p,trackResultAction:m,trackToolTransition:(0,o.useCallback)((t,i)=>{n.ZP.track(r.dV.TOOL_TRANSITION,{source_tool:e,destination_tool:t,...i})},[e]),trackFeedback:(0,o.useCallback)((e,t)=>{n.ZP.track(r.dV.FEEDBACK,{...i,feedback_type:e,...t})},[e,t]),trackHistoryViewed:(0,o.useCallback)(e=>{n.ZP.track(r.dV.HISTORY_VIEWED,{...i,...e})},[e,t])}}},37094:function(e,t,i){"use strict";i.d(t,{$T:function(){return A},kS:function(){return y}});let o="Image Generator",n="AI Image Editor",r="Image Upscaler",a="Text to Video",l="Image to Video",s="Voiceover",d="Quote to Video",u="AI Shorts",c="AI Avatar",p="Smart Clipper",m="AI Influencer",h="Studio Photoshoot",f="Virtual Try-On",v="Subtitles Generator",g={"image generator":o,"image-generator":o,"text to image":o,"text-to-image":o,"image editor":n,"image-editor":n,"ai image editor":n,"ai-image-editor":n,"image upscaler":r,"image-upscaler":r,"image upscale":r,"text to scene":a,"text-to-scene":a,text_to_scene:a,"text to video":a,"text-to-video":a,"ai-text-to-scene":a,"image to scene":l,"image-to-scene":l,image_to_scene:l,"image to video":l,"image-to-video":l,"text to speech":s,"text-to-speech":s,voiceover:s,"quote to video":d,"quote-to-video":d,"ai-quote-to-video":d,"ai shorts":u,"ai-shorts":u,"ai-text-to-video":u,"ai avatar":c,"ai-avatar":c,"ai avatars":c,"ai-avatars":c,"smart clipper":p,"smart-clipper":p,"ai influencer":m,"ai-influencer":m,"studio photoshoot":h,"studio-photoshoot":h,"virtual try-on":f,"virtual try on":f,"virtual-try-on":f,"subtitles generator":v,"subtitles-generator":v,subtitles:v,"add-subtitles-to-video":v,"add subtitles to video":v,"add subtitles tool":v};function y(e){var t;return e&&null!==(t=g[String(e).trim().toLowerCase()])&&void 0!==t?t:e}let b=["tool_name","destination_tool","source_tool","flow_type","entry_point"];function A(e){let t;if(!e)return e;for(let i of b){let o=e[i];if("string"==typeof o){let n=y(o);n!==o&&((t=null!=t?t:{...e})[i]=n)}}return null!=t?t:e}},8715:function(e,t,i){"use strict";i.d(t,{P:function(){return c}});var o=i(66464),n=i(80961),r=i(48411),a=i(75602),l=i(86278),s=i(20617);let d={"virtual try-on":32,"ai influencer":16,"studio photoshoot":300,"quote to video":25,"promo video":400},u=new Set(["image generator","ai image editor","image upscaler","text to video","image to video"]);function c(e,t,i){if("number"==typeof t&&!Number.isNaN(t))return t;let c=(0,o.b)(t);if(void 0!==c)return c;let p=function(e){var t,i,n,r,a,l,s;let d=null!==(s=null!==(l=null!==(a=null==e?void 0:e.data)&&void 0!==a?a:null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.data)&&void 0!==l?l:null==e?void 0:null===(n=e.response)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:i.data)&&void 0!==s?s:null==e?void 0:null===(r=e.originalError)||void 0===r?void 0:r.data;for(let t of[null==d?void 0:d.required_credits,null==d?void 0:d.credits_required,null==d?void 0:d.requiredCredits,null==d?void 0:d.credit_cost,null==d?void 0:d.credits_cost,null==d?void 0:d.cost,null==d?void 0:d.credits,null==d?void 0:d.credits_needed,null==e?void 0:e.required_credits,null==e?void 0:e.credits_required]){let e=(0,o.b)(t);if(void 0!==e)return e}}(e);return void 0!==p?p:function(e,t){let i=null==e?void 0:e.trim().toLowerCase();if(!i)return;if(u.has(i)){if("text to video"===i||"image to video"===i){let e=(0,a.v)({modelDetails:null==t?void 0:t.modelDetails,formValues:null==t?void 0:t.formValues,selectedModel:null==t?void 0:t.selectedModel});return e>0?e:void 0}if((null==t?void 0:t.legacyImageGeneratorCredits)!=null)return t.legacyImageGeneratorCredits;let e=(0,r.P)({modelDetails:null==t?void 0:t.modelDetails,formValues:null==t?void 0:t.formValues,selectedModel:null==t?void 0:t.selectedModel});return e>0?e:void 0}if("ai shorts"===i&&(null==t?void 0:t.textToVideoValues)){let e=(0,s.w)(t.textToVideoValues);return e>0?e:void 0}if(("text to speech"===i||"voiceover"===i)&&(null==t?void 0:t.ttsScript)!=null){let e=(0,l.S)(t.ttsScript);return e>0?e:void 0}if("ai avatar"===i&&(null==t?void 0:t.avatar)){let{inputType:e,estimatedDurationSeconds:i=0,audioDurationSeconds:o=0}=t.avatar,r=(0,n.U)("upload-audio"===e?"audio":e,i,o);return r>0?r:void 0}if("templates"===i&&(null==t?void 0:t.templateVariantCredits)!=null)return t.templateVariantCredits;let o=d[i];return null!=o?o:void 0}(null==i?void 0:i.tool_name,null==i?void 0:i.context)}},85537:function(e,t,i){"use strict";function o(e){var t,i;let o=Number(null!==(t=null==e?void 0:e.total)&&void 0!==t?t:0),n=Number(null!==(i=null==e?void 0:e.used)&&void 0!==i?i:0);return Number.isNaN(o)||Number.isNaN(n)?0:Math.max(0,o-n)}i.d(t,{Xv:function(){return d},bq:function(){return o},l5:function(){return s},uY:function(){return l}});let n=new Map,r=null;function a(e,t){let i=Math.max(0,e.prevBalance-t);return i>0?i:"number"==typeof e.explicitCredits&&!Number.isNaN(e.explicitCredits)&&e.explicitCredits>0?e.explicitCredits:0}function l(e,t,i){let a={prevBalance:"number"!=typeof(null==i?void 0:i.prevBalance)||Number.isNaN(i.prevBalance)?o(t):i.prevBalance,..."number"!=typeof(null==i?void 0:i.explicitCredits)||Number.isNaN(i.explicitCredits)?{}:{explicitCredits:i.explicitCredits}};for(let t of(r=a,Array.from(new Set((Array.isArray(e)?e:[e]).map(e=>
1null!=e?String(e).trim():"").filter(Boolean)))))n.set(t,a)}function s(e){let t=null!=e?String(e).trim():"";return!!(t&&n.has(t))}function d(e){let{generationId:t,newBalance:i,fallbackPrevBalance:o,explicitCredits:l}=e;if("number"==typeof l&&!Number.isNaN(l)&&l>=0)return l;let s=null!=t?String(t).trim():"";if(s&&n.has(s)){let e=n.get(s);return n.delete(s),r=null,a(e,i)}if("number"==typeof o&&!Number.isNaN(o)){let e=Math.max(0,o-i);if(e>0)return e}if(r){let e=a(r,i);if(e>0)return r=null,e}return 0}},76776:function(e,t,i){"use strict";function o(e){return"signup_".concat(String(e))}function n(e){let{transactionId:t,isOneTimePayment:i,isPlanUpdate:o,planFlowType:n}=e;if(null==t||""===t)return;let r=String(t);return i?"one_time_payment_".concat(r):o?"upgrade"===n?"upgrade_".concat(r):"downgrade_".concat(r):"subscription_".concat(r)}i.d(t,{b:function(){return o},h:function(){return n}})},44272:function(e,t,i){"use strict";i.d(t,{j:function(){return n}});let o={"/":"Home","/home":"Home","/creative-studio":"Creative Studio","/ai-tools":"AI Tools","/tools":"Tools","/tools/[slug]":"Tool Landing Page","/pricing":"Pricing","/learn":"Blog","/learn/[category]":"Blog Category","/learn/[category]/[slug]":"Blog Article","/faqs":"FAQs","/lp/[slug]":"Landing Page","/apps":"AI Apps","/signup":"Sign Up","/signup-social":"Social Sign Up","/login-page":"Login","/login-social":"Social Login","/email-verification":"Email Verification","/connect":"Connect","/ai-studio":"AI Studio","/ai-studio/main":"AI Studio Home","/ai-studio/text-to-image":"Image Generator","/ai-studio/ai-image-editor":"AI Image Editor","/ai-studio/image-upscaler":"Image Upscaler","/ai-studio/text-to-scene":"Text to Video","/ai-studio/image-to-scene":"Image to Video","/ai-studio/text-to-speech":"Voiceover","/ai-studio/text-to-speech/prompt":"Voiceover","/ai-studio/quote-to-video":"Quote to Video","/ai-studio/text-to-video":"AI Shorts","/ai-studio/text-to-video/script":"AI Shorts - Script","/ai-studio/text-to-video/script/edit":"AI Shorts - Edit Script","/ai-studio/text-to-video/generating":"AI Shorts - Generating","/ai-studio/text-to-video/[videoId]":"AI Shorts - Video Scenes","/ai-studio/text-to-video/[videoId]/[t2v-editor-tabs]":"AI Shorts - Editor","/ai-studio/text-to-video/download":"AI Shorts - Download","/ai-studio/ai-avatars":"AI Avatar","/ai-studio/ai-avatars/generating":"AI Avatar - Generating","/ai-studio/ai-avatars/download":"AI Avatar - Download","/ai-studio/smart-clipper":"Smart Clipper","/ai-studio/smart-clipper/upload":"Smart Clipper - Upload","/ai-studio/smart-clipper/generate/[videoId]":"Smart Clipper - Generate","/ai-studio/smart-clipper/clips":"Smart Clipper - Clips","/ai-studio/images":"Images Gallery","/ai-studio/voiceovers":"Voiceovers Gallery","/ai-studio/videos":"Videos Gallery","/ai-studio/[gallery-item]":"Studio Gallery","/apps/ai-influencer":"AI Influencer","/apps/studio-photoshoot":"Studio Photoshoot","/apps/virtual-try-on":"Virtual Try-On","/apps/ugc-video":"UGC Video","/app/[app-landing-page]":"App Landing Page","/template/[slug]":"Template","/templates/[category]":"Templates","/templates/[category]/[subcategory]":"Templates","/studio":"Studio Dashboard","/studio/main":"Studio Home","/studio/videos":"Studio Videos","/studio/videos/deleted":"Studio Deleted Videos","/studio/create-video":"Video Editor","/studio/create-video/[videoId]/editor":"Video Editor","/studio/create-video/[videoId]/editor/[editor-tab]":"Video Editor","/studio/create-video/[videoId]/publisher":"Video Publisher","/studio/create-video/[videoId]/resizer":"Video Resizer","/studio/tools/add-subtitles-to-video":"Subtitles Generator","/studio/folders":"Studio Folders","/studio/watch-and-learn":"Watch & Learn","/studio/account":"Account Settings","/studio/account/ChangePassword":"Change Password","/studio/account/DeleteAccount":"Delete Account","/studio/account/Preferences":"Preferences","/studio/billing":"Billing","/payment":"Payment","/library":"Library","/shorts":"Shorts","/share/[shareKey]":"Shared Video","/help/privacy-policy":"Privacy Policy","/help/terms-and-conditions":"Terms & Conditions","/help/reset-password":"Reset Password","/help/verification":"Email Verification","/maintenance":"Maintenance","/404":"Not Found"};function n(e){var t;if(o[e])return o[e];
1let i=null!==(t=e.split("/").filter(Boolean).pop())&&void 0!==t?t:"";return!i||i.startsWith("[")?e:i.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")}},66464:function(e,t,i){"use strict";function o(e){if("number"==typeof e)return Number.isFinite(e)?e:void 0;if("string"==typeof e&&""!==e.trim()){let t=Number(e);return Number.isFinite(t)?t:void 0}}i.d(t,{b:function(){return o}})},3653:function(e,t,i){"use strict";i.d(t,{cf:function(){return r},tF:function(){return a},ui:function(){return n}});var o=i(30027);function n(e){if(e){if(e.key)return e.key;if(e.title||null!=e.price){var t;return(0,o.fK)(null!==(t=e.title)&&void 0!==t?t:"",e.price,"year"===e.interval)}return e.title}}function r(e){var t,i;if(!e)return;let r=(0,o.fK)(null!==(i=e.title)&&void 0!==i?i:"",e.price,"year"===e.interval),a=o.C2[r];return a&&"name"in a&&(null===(t=a.name)||void 0===t?void 0:t.en)?a.name.en:n(e)}function a(e){if(e)return"year"===e?"annual":"monthly"}},38882:function(e,t,i){"use strict";i.d(t,{LK:function(){return n},WB:function(){return r},iI:function(){return a}});var o=i(79192);let n={DIRECT:"direct",STUDIO:"studio",SIDEBAR:"sidebar",IN_TOOL:"in_tool",TEMPLATE:"template",LIBRARY:"library",APPS:"apps",POPUP:"popup",TOOLS_DROPDOWN:"tools_dropdown"};function r(e,t){if(!e||!t)return e;let i=t.includes(" ")?encodeURIComponent(t):t;return(0,o.vu)(e,{from:i})}function a(e,t,i){if(!e||!t)return e;let n=r(e,t),a=e.startsWith("/apps/"),l=e.startsWith("/template/");if(!a&&!l)return n;let s={tool_name:encodeURIComponent("app: ".concat(i))};return l&&(s.rt="/apps"),(0,o.vu)(n,s)}},37803:function(e,t,i){"use strict";i.d(t,{u:function(){return r}});var o=i(90238),n=i(71494);function r(e,t){o.ZP.track(n.nS.CTA_CLICKED,{page_type:"auth",position:"auth_flow",...t,cta_name:e})}},76979:function(e,t,i){"use strict";i.d(t,{j:function(){return r}});var o=i(90238),n=i(71494);function r(e,t){o.ZP.track(n.nS.CTA_CLICKED,{page_type:"billing",page_name:"Billing",position:"billing_page",...t,cta_name:e})}},17111:function(e,t,i){"use strict";i.d(t,{F:function(){return r}});var o=i(90238),n=i(71494);function r(e,t){o.ZP.track(n.nS.CTA_CLICKED,{page_type:"studio",position:"studio_header",...t,cta_name:e})}},92116:function(e,t,i){"use strict";i.d(t,{G:function(){return n}});var o=i(86120);let n={create:(e,t,i)=>{let n=new FormData;return Object.entries(e).forEach(e=>{let[t,i]=e;null!=i&&n.append(t,String(i))}),o.W.post("ai-influencers",n,t,i)},getAll:(e,t,i)=>o.W.get("ai-influencers",t,i,e),getById:(e,t,i)=>o.W.get("ai-influencers/".concat(e),t,i,null),update:(e,t,i,n)=>o.W.patch("ai-influencers/".concat(e),t,i,n),delete:(e,t,i)=>o.W.delete("ai-influencers/".concat(e),null,t,i),getLooks:(e,t,i,n)=>o.W.get("ai-influencers/".concat(e,"/looks"),i,n,null!=t?t:null),getLookById:(e,t,i,n)=>o.W.get("ai-influencers/".concat(e,"/looks/").concat(t),i,n,null),createLook:(e,t,i,n)=>o.W.post("ai-influencers/".concat(e,"/looks"),t,i,n),getLookPresets:(e,t)=>o.W.get("ai-influencers/look-presets",e,t,null),deleteLook:(e,t,i,n)=>o.W.delete("ai-influencers/".concat(e,"/looks/").concat(t),null,i,n),downloadLook:(e,t,i,n)=>o.W.get("ai-influencers/".concat(e,"/looks/").concat(t,"/download"),i,n,null)}},51726:function(e,t,i){"use strict";i.d(t,{y:function(){return n}});var o=i(86120);let n={getAiModels:(e,t,i)=>{let{feature:n,type:r}=e;return o.W.get("ai-models/feature/".concat(n).concat(r?"/".concat(r):""),t,i)},getAiModel:(e,t,i)=>{let{slug:n}=e;return o.W.get("ai-models/model/".concat(n),t,i)}}},64125:function(e,t,i){"use strict";i.d(t,{i:function(){return l}});var o=i(86120),n=i(15953),r=i(90238),a=i(71494);let l={login:(e,t,i)=>o.W.post("auth",e,t,i),register:(e,t,i)=>{let l=(0,n.e5)(null!=e?e:{}),s="string"==typeof l.visitor_id?l.visitor_id.trim():"";if(s)try{r.ZP.track(a.n5.VISITOR_ID_ON_REGISTER,{visitor_id:s,login_method:"email",platform:window.innerWidth<768?"mobile":"desktop",page_url:"".concat(window.location.pathname).concat(window.location.search)})}catch(e){}return o.W.post("register",l,t,i)},userInfo:(e,t)=>o.W.get("me",e,t),logout:(e,t)=>o.W.post("me/logout",e,t),updateProfilePicture:(e,t,i)=>o.W.post("me/profile-picture",e,t,i),deleteProfilePicture:(e,t,i)=>o.W.delete("me/profile-picture",null,t,i),updateUserInfo:(e,t,i)=>o.W.patch("me",e,t,i),socialAuth:(e,t,i)=>o.W.post("social/login",(0,n.e5)(null!=e?e:{}),t,i),socialConnect:(e,t,i)=>o.W.post("social/connect",e,t,i),changePassword:(e,t,i)=>o.W.patch("me",e,t,i),changeEmail:(e,t,i)=>o.W.patch("me",e,t,i),forgotPassword:(e,t,i)=>o.W.post("forgot-password",e,t,i),forgotPasswordSubmit:(e,t,i)=>o.W.post("forgot-password/reset",e,t,i),deleteAccount:(e,t)=>
1o.W.delete("me",null,e,t),onBoarding:{getOnboardingQuestions:(e,t)=>o.W.get("on-boarding",e,t),answerQuestions:(e,t,i)=>o.W.post("on-boarding",e,t,i)},verification:{verify:(e,t,i)=>o.W.post("email-verification",e,t,i),resend:(e,t,i)=>o.W.post("email-verification/resend",e,t,i)}}},21012:function(e,t,i){"use strict";i.d(t,{j:function(){return n}});var o=i(86120);let n={getFonts:(e,t)=>o.W.get("video-editor/fonts",e,t),editClip:(e,t,i)=>o.W.post("video-editor/new",e,t,i),publishEditClip:(e,t,i)=>{let{values:n,clipId:r}=e;return o.W.post("video-editor/".concat(r,"/publish"),n,t,i)},audio:{sounds:{getSounds:(e,t,i)=>o.W.get("video-editor/audios/sounds",t,i,e),getSoundsTypes:(e,t)=>o.W.get("video-editor/audios/types",e,t)}},uploads:(e,t,i)=>o.W.get("video-editor/uploads",t,i,e),images:{list:(e,t,i)=>o.W.get("video-editor/images",t,i,e),categories:(e,t)=>o.W.get("video-editor/images/categories",e,t)},videos:{list:(e,t,i)=>o.W.get("video-editor/videos",t,i,e),categories:(e,t)=>o.W.get("video-editor/videos/categories",e,t)},gifs:{list:(e,t,i)=>o.W.get("video-editor/gifs",t,i,e),categories:(e,t)=>o.W.get("video-editor/gifs/categories",e,t)},mediaAssets:{create:(e,t,i)=>o.W.post("video-editor/user-assets",e,t,i),list:(e,t,i)=>o.W.get("video-editor/user-assets",t,i,e),update:(e,t,i)=>{let{mediaAssetId:n,values:r}=e;return o.W.patch("video-editor/user-assets/".concat(n),r,t,i)},delete:(e,t,i)=>{let{mediaAssetId:n}=e;return o.W.delete("video-editor/user-assets/".concat(n),null,t,i)}},resizer:{templates:(e,t,i)=>o.W.get("video-editor/resizer/templates",t,i,e)},textTranscription:{createTextTranscription:(e,t,i)=>o.W.post("video-editor/text-transcription",e,t,i),getTextTranscription:(e,t,i)=>o.W.get("video-editor/text-transcription",t,i,e),getTextTranscriptionUsage:(e,t)=>o.W.get("video-editor/text-transcription/usage",e,t),getTextTranscriptionLanguages:(e,t)=>o.W.get("video-editor/text-transcription/languages",e,t),deleteTextTranscription:(e,t,i)=>o.W.delete("video-editor/text-transcription",e,t,i)}}},66954:function(e,t,i){"use strict";i.d(t,{h:function(){return r}});var o=i(2327),n=i(86120);let r={list:(e,t,i)=>{let{filter:o}=e;return n.W.get("t2i",t,i,o)},get:(e,t,i)=>{let{imageId:o}=e;return n.W.get("t2i/".concat(o),t,i)},download:(e,t,i)=>{let{imageId:o,resourceType:r}=e;return n.W.get("t2i/".concat(o,"/download?resource_type=").concat(r),t,i)},getStatus:(e,t,i)=>{let{imageId:o,filter:r}=e;return n.W.get("t2i/".concat(o,"/progress"),t,i,r)},create:(e,t,i)=>n.W.post("t2i",e,t,i),delete:(e,t,i)=>{let{imageId:r,type:a=o._.T2I_GENERATED}=e;return a===o._.T2I_GENERATED?n.W.delete("t2i/".concat(r),null,t,i):a===o._.T2V_GENERATED_IMAGE?n.W.delete("t2v/generated-images/".concat(r),null,t,i):n.W.delete("image-library/".concat(r),{resource_type:a},t,i)}}},86120:function(e,t,i){"use strict";i.d(t,{W:function(){return c}});var o=i(20931),n=i(36808),r=i.n(n),a=i(87066),l=i(35084);let s=e=>(e.includes("featured-sections")||e.includes("templates")||e.includes("ai-models"))&&!e.includes("templates/executions"),d=(e,t)=>"get"===t&&s(e)?"https://prod.bith.tv/static-data":"https://prod.bith.tv/api",u=(e,t,i,n,s,u,c)=>{var p,m;let h=!!r().get(o.f5.API_TOKEN),f={Accept:"application/json","Content-Type":"get"!==s&&t instanceof FormData?"multipart/form-data":"application/json","Accept-Language":r().get(o.f5.LANGUAGE),...h?{Authorization:"Bearer ".concat(r().get(o.f5.API_TOKEN))}:{},...e.includes("subscriptions/change")?{"X-Fbc":null!==(p=r().get("_fbc"))&&void 0!==p?p:"","X-Fbp":null!==(m=r().get("_fbp"))&&void 0!==m?m:""}:{},"ngrok-skip-browser-warning":"true",...c};return(0,a.Z)("".concat(d(e,s),"/").concat(e),{method:(0,l.x)(s)?t?"POST":"GET":s,data:"get"!==s?t instanceof FormData?t:JSON.stringify(t):null,params:"get"===s||"delete"===s?t:null,headers:f,...u?{onUploadProgress:u}:{}}).then(e=>{i&&i(e.data)}).catch(e=>(n&&n(e.response||e.message),Promise.reject(e.response||e.message)))},c={get:(e,t,i,o)=>u(e,o,t,i,"get"),post:(e,t,i,o,n,r)=>u(e,t,i,o,"post",n,r),patch:(e,t,i,o)=>u(e,t,i,o,"patch"),put:(e,t,i,o)=>u(e,t,i,o,"put"),delete:(e,t,i,o)=>u(e,t,i,o,"delete")}},53053:function(e,t,i){"use strict";i.d(t,{Y:function(){return n},d:function(){return r}});var o=i(86120);function n(e,t){return e?"string"==typeof e?e:e[t]||e.en||"":""}let r={run:(e,t,i)=>
1o.W.post("platform-apps/product-shots/run",e,t,i),getExecutions:(e,t,i)=>o.W.get("platform-apps/product-shots/executions",t,i,e),getExecution:(e,t,i)=>o.W.get("platform-apps/product-shots/executions/".concat(e),t,i,null),getMusicProductShots:(e,t)=>o.W.get("music/product-shots",e,t,null),createPromoVideo:(e,t,i,n)=>o.W.post("platform-apps/product-shots/executions/".concat(e,"/create-promo-video"),t,i,n),downloadOutput:(e,t,i,n)=>o.W.get("platform-apps/outputs/".concat(e,"/download"),t,i,n||null)}},23117:function(e,t,i){"use strict";i.d(t,{N:function(){return r}});var o=i(48198),n=i(47713);let r={login:(e,t,i)=>o.v.post("apps/salla-app/login",e,t,i),register:(e,t,i)=>o.v.post("register",e,t,i),userInfo:(e,t)=>o.v.get("apps/me",e,t),oauth2Login:(e,t,i,r)=>{let a=t||(0,n.qB)(window.location.pathname);return o.v.post("apps/".concat(a,"/oauth2-login"),e,i,r)},logout:(e,t)=>o.v.post("me/logout",e,t),updateProfilePicture:(e,t,i)=>o.v.post("me/profile-picture",e,t,i),deleteProfilePicture:(e,t,i)=>o.v.delete("me/profile-picture",null,t,i),updateUserInfo:(e,t,i)=>o.v.patch("me",e,t,i),socialAuth:(e,t,i)=>o.v.post("social/login",e,t,i),socialConnect:(e,t,i)=>o.v.post("social/connect",e,t,i),changePassword:(e,t,i)=>o.v.post("apps/change-password",e,t,i),changeEmail:(e,t,i)=>o.v.patch("me",e,t,i),forgotPassword:(e,t,i)=>o.v.post("forgot-password",e,t,i),forgotPasswordSubmit:(e,t,i)=>o.v.post("forgot-password/reset",e,t,i),deleteAccount:(e,t)=>o.v.delete("me",null,e,t),onBoarding:{getOnboardingQuestions:(e,t)=>o.v.get("on-boarding",e,t),answerQuestions:(e,t,i)=>o.v.post("on-boarding",e,t,i)},verification:{verify:(e,t,i)=>o.v.post("email-verification",e,t,i),resend:(e,t,i)=>o.v.post("email-verification/resend",e,t,i)},sso:{exchangeToken:(e,t,i)=>o.v.post("auth/sso/exchange",e,t,i)}}},48198:function(e,t,i){"use strict";i.d(t,{v:function(){return p}});var o=i(20931),n=i(36808),r=i.n(n),a=i(87066),l=i(35084),s=i(47713);let d=e=>!1,u=(e,t)=>"get"===t&&d(e)?"https://prod.bith.tv/static-data":"https://prod.bith.tv/api",c=(e,t,i,n,c,p)=>{let m=window.location.pathname,h=(0,s.PI)(m),f=!r().get(h)||d(e)&&"get"===c,v={Accept:"application/json","Content-Type":"get"!==c&&t instanceof FormData?"multipart/form-data":"application/json","Accept-Language":r().get(o.f5.LANGUAGE),"X-App-Slug":(0,s.qB)(window.location.pathname),...f?{}:{Authorization:"Bearer ".concat(r().get(h))},"ngrok-skip-browser-warning":"true"};return(0,a.Z)("".concat(u(e,c),"/").concat(e),{method:(0,l.x)(c)?t?"POST":"GET":c,data:"get"!==c?t instanceof FormData?t:JSON.stringify(t):null,params:"get"===c||"delete"===c?t:null,headers:v,...p?{onUploadProgress:p}:{}}).then(e=>{i&&i(e.data)}).catch(e=>(n&&n(e.response||e.message),Promise.reject(e.response||e.message)))},p={get:(e,t,i,o)=>c(e,o,t,i,"get"),post:(e,t,i,o,n)=>c(e,t,i,o,"post",n),patch:(e,t,i,o)=>c(e,t,i,o,"patch"),put:(e,t,i,o)=>c(e,t,i,o,"put"),delete:(e,t,i,o)=>c(e,t,i,o,"delete")}},48184:function(e,t,i){"use strict";i.d(t,{s:function(){return n}});var o=i(48198);let n={getTemplates:(e,t,i)=>o.v.get("apps/templates",t,i,e),getTemplateVariants:(e,t,i,n)=>o.v.get("apps/templates/".concat(e),i,n,t),generateExecution:(e,t,i)=>o.v.post("apps/templates/executions",e,t,i),getExecutionStatus:(e,t,i,n)=>o.v.get("apps/templates/executions/".concat(e),i,n,t),downloadResult:(e,t,i,n)=>o.v.get("apps/templates/executions/node-results/".concat(e,"/download"),i,n,t)}},65659:function(e,t,i){"use strict";i.d(t,{$:function(){return n}});var o=i(86120);let n={getSessions:(e,t,i)=>o.W.get("resource-sessions",t,i,e),getRecentSessions:(e,t,i)=>o.W.get("resource-sessions/recent",t,i,e),getSessionItems:(e,t,i,n)=>o.W.get("resource-sessions/".concat(e,"/items"),i,n,t),editSession:(e,t,i,n)=>o.W.patch("resource-sessions/".concat(e),t,i,n),deleteSession:(e,t,i)=>o.W.delete("resource-sessions/".concat(e),null,t,i),getSessionItem:(e,t,i,n)=>o.W.get("resource-sessions/".concat(e,"/items/").concat(t),i,n)}},78795:function(e,t,i){"use strict";i.d(t,{X:function(){return n}});var o=i(86120);let n={getConfig:(e,t,i)=>o.W.get("config/".concat(e),t,i),privacy:(e,t)=>o.W.get("config/privacy-policy",e,t),terms:(e,t)=>o.W.get("config/terms-and-conditions",e,t),guide:(e,t)=>o.W.get("config/bith-guide",e,t),getSocialProviders:(e,t,i)=>{let{filters:n}=e;
1return o.W.get("social-providers",t,i,n)},getFacts:(e,t)=>o.W.get("facts",e,t),getConfigurations:(e,t)=>o.W.get("configuration",e,t)}},89471:function(e,t,i){"use strict";i.d(t,{B:function(){return n}});var o=i(86120);let n={getClips:(e,t,i)=>{let{videoId:n}=e;return o.W.get("smart-clipper/videos/".concat(n,"/clips"),t,i)},downloadClip:(e,t,i)=>{let{clipId:n}=e;return o.W.get("smart-clipper/clips/".concat(n,"/download"),t,i)},updateClip:(e,t,i)=>{let{clipId:n,values:r}=e;return o.W.patch("smart-clipper/clips/".concat(n),r,t,i)},deleteClip:(e,t,i)=>{let{clipId:n}=e;return o.W.delete("smart-clipper/clips/".concat(n),null,t,i)}}},81387:function(e,t,i){"use strict";i.d(t,{R:function(){return n}});var o=i(86120);let n={folders:{list:(e,t,i)=>{let{filter:n,subFolder:r}=e;return o.W.get("studio/folders".concat(r?"/".concat(r):""),t,i,n)},delete:(e,t,i)=>{let{folderId:n}=e;return o.W.delete("studio/folders/".concat(n),null,t,i)},create:(e,t,i)=>o.W.post("studio/folders",e,t,i),update:(e,t,i)=>{let{folderId:n,values:r}=e;return o.W.patch("studio/folders/".concat(n),r,t,i)},move:(e,t,i)=>{let{folderId:n,values:r}=e;return o.W.post("studio/folders/".concat(n,"/move"),r,t,i)},children:{listFolders:(e,t,i)=>{let{folderId:n,filter:r}=e;return o.W.get("studio/folders/".concat(n,"/folders"),t,i,r)},listVideos:(e,t,i)=>{let{filter:n,subFolder:r}=e;return o.W.get("studio/folders".concat(r),t,i,n)}}},videos:{all:(e,t,i)=>{let{filter:n}=e;return o.W.get("studio/videos/all",t,i,n)},list:(e,t,i)=>{let{filter:n}=e;return o.W.get("studio/videos",t,i,n)},get:(e,t,i)=>{let{videoId:n}=e;return o.W.get("studio/videos/".concat(n),t,i)},download:(e,t,i)=>{let{videoId:n,type:r}=e;return o.W.get("studio/videos/".concat(n,"/download"),t,i,r?{type:r}:void 0)},feedback:(e,t,i)=>{let{videoId:n,...r}=e;return o.W.post("studio/videos/".concat(n,"/feedback"),r,t,i)},getStatus:(e,t,i)=>{let{videoId:n,filter:r}=e;return o.W.get("studio/videos/".concat(n,"/progress"),t,i,r)},create:(e,t,i)=>o.W.post("studio/videos",e,t,i),delete:(e,t,i)=>{let{videoId:n}=e;return o.W.delete("studio/videos/".concat(n),null,t,i)},deletePermanently:(e,t,i)=>{let{videoId:n}=e;return o.W.post("studio/videos/".concat(n,"/delete-permanently"),null,t,i)},restore:(e,t,i)=>{let{videoId:n}=e;return o.W.post("studio/videos/".concat(n,"/restore"),null,t,i)},saveVideoEdits:(e,t,i)=>{let{videoId:n,values:r}=e;return o.W.post("studio/videos/".concat(n,"/edits"),r,t,i)},getVideoEdits:(e,t,i)=>{let{videoId:n}=e;return o.W.get("studio/videos/".concat(n,"/edits"),t,i)},count:(e,t)=>o.W.get("studio/videos/count",e,t),update:(e,t,i)=>{let{videoId:n,values:r}=e;return o.W.patch("studio/videos/".concat(n),r,t,i)},move:(e,t,i)=>{let{videoId:n,values:r}=e;return o.W.post("studio/videos/".concat(n,"/move"),r,t,i)},export:(e,t,i)=>{let{videoId:n,values:r}=e;return o.W.post("studio/videos/".concat(n,"/export"),r,t,i)},duplicate:(e,t,i)=>{let{videoId:n,values:r}=e;return o.W.post("studio/videos/".concat(n,"/duplicate"),r,t,i)},editAgain:(e,t,i)=>{let{videoId:n}=e;return o.W.post("studio/videos/".concat(n,"/edit-again"),{},t,i)},getShareableLink:(e,t,i)=>{let{videoId:n}=e;return o.W.post("studio/videos/".concat(n,"/share"),{},t,i)},getSharedVideo:(e,t,i)=>{let{shareKey:n}=e;return o.W.get("shared/videos/".concat(n),t,i)},getVideoAssets:(e,t,i)=>{let{videoId:n}=e;return o.W.get("studio/videos/".concat(n,"/assets-urls"),t,i)}},stockImages:{get:(e,t,i)=>o.W.get("studio/stock-images",t,i,e)},stockVideos:{get:(e,t,i)=>o.W.get("studio/stock-videos",t,i,e)}}},71951:function(e,t,i){"use strict";i.d(t,{o:function(){return n}});var o=i(86120);let n={getSubscriptionPlans:(e,t)=>o.W.get("subscriptions/plans",e,t),getSubscriptionPlan:(e,t,i,n)=>o.W.get("subscriptions/".concat(e,"/plans/").concat(t),i,n),createSubscriptionPayLink:(e,t,i)=>o.W.post("subscriptions",e,t,i),createUpdatePaymentMethodPayLink:(e,t)=>o.W.post("subscriptions/update-payment-method-url",null,e,t),updateSubscriptionPlan:(e,t,i)=>o.W.post("subscriptions/change",e,t,i),previewSubscriptionChange:(e,t,i,n)=>o.W.post("subscriptions/".concat(e,"/preview"),t,i,n),getBillingInfo:(e,t)=>o.W.get("subscriptions/billing/info",e,t),getBillingHistory:(e,t,i)=>o.W.get("subscriptions/billing/history",t,i),getTransactionReceipt:(e,t,i)=>o.W.get("subscriptions/transactions/".concat(e,"/receipts"),t,i),reactivateSubscription:(e,t)=>o.W.post("subscriptions/reactivate",null,e,t),cancelScheduledDowngrade:(e,t)=>o.W.post("subscriptions/cancel-scheduled-downgrade",null,e,t),getCreditLedger:(e,t,i,n)=>o.W.get("test/subscription/credit-ledger",i,n,{email:e,...t?{type:t}:{}}),cancel:{cancelSubscription:(e,t,i)=>o.W.post("subscriptions/cancel",e,t,i),getFreeSubscription:(e,t)=>o.W.post("subscriptions/cancel/free",null,e,t),getDiscountSubscription:(e,t)=>o.W.post("subscriptions/cancel/discount",null,e,t),getCancelReasons:(e,t)=>o.W.get("subscriptions/cancel-reasons",e,t)},oneTimePurchase:{products:(e,t,i)=>o.W.get("one-time-purchases/products",t,i,e),createSubscriptionPayLink:(e,t,i)=>o.W.post("one-time-purchases/pay-link",e,t,i)}}},78674:function(e,t,i){"use strict";i.d(t,{R:function(){return n}});var o=i(86120);let n={getTemplates:(e,t,i)=>o.W.get("templates",t,i,e),getTemplatesByTag:(e,t,i,n)=>o.W.get("templates/tag/".concat(e),i,n,t),getTemplatesCategories:(e,t,i)=>o.W.get("templates/categories",t,i,e),getTemplate:(e,t,i)=>o.W.get("templates/".concat(e),t,i,null),executeTemplate:(e,t,i)=>o.W.post("templates/executions",e,t,i),getExecutedTemplates:(e,t,i)=>o.W.get("templates/executions/".concat(e),t,i,null),downloadResult:(e,t,i)=>o.W.get("templates/executions/node-results/".concat(e,"/download"),t,i),getCategoryBySlug:(e,t,i)=>o.W.get("templates/categories/".concat(e),t,i,null)}},94214:function(e,t,i){"use strict";i.d(t,{D:function(){return n}});var o=i(86120);let n={init:(e,t,i)=>o.W.post("uploads/init",e,t,i),complete:(e,t,i)=>o.W.post("uploads/complete",e,t,i),getPart:(e,t,i)=>o.W.get("uploads/part",t,i,e)}},5108:function(e,t,i){"use strict";i.d(t,{q:function(){return n}});var o=i(86120);let n={getTextToSceneById:(e,t,i)=>{let{sceneId:n}=e;return o.W.get("t2s/".concat(n),t,i,null)},getScenes:(e,t,i)=>o.W.get("t2s",t,i,e),createTextToScene:(e,t,i)=>{let{values:n}=e;return o.W.post("t2s",n,t,i)},update:(e,t,i)=>{let{sceneId:n,values:r}=e;return o.W.patch("t2s/".concat(n),r,t,i)},download:(e,t,i)=>{let{sceneId:n}=e;return o.W.get("t2s/".concat(n,"/download"),t,i,null)},enhancedPrompts:(e,t,i)=>o.W.post("enhanced-prompts",e,t,i),delete:(e,t,i)=>{let{sceneId:n}=e;return o.W.delete("t2s/".concat(n),null,t,i)},createSceneUsingAiModel:(e,t,i)=>o.W.post("t2s/ai-model",e,t,i)}},48814:function(e,t,i){"use strict";i.d(t,{w:function(){return n}});var o=i(86120);let n={generate:(e,t,i)=>o.W.post("voice-overs",e,t,i),list:(e,t,i)=>{let{filter:n}=e;return o.W.get("voice-overs",t,i,n)},getById:(e,t,i)=>{let{voiceoverId:n}=e;return o.W.get("voice-overs/".concat(n),t,i)},download:(e,t,i)=>{let{voiceoverId:n}=e;return o.W.get("voice-overs/".concat(n,"/download"),t,i)},update:(e,t,i)=>{let{voiceoverId:n,values:r}=e;return o.W.patch("voice-overs/".concat(n),r,t,i)},delete:(e,t,i)=>{let{voiceoverId:n}=e;return o.W.delete("voice-overs/".concat(n),null,t,i)}}},47327:function(e,t,i){"use strict";i.d(t,{x:function(){return n}});var o=i(86120);let n={getVoiceOvers:(e,t,i)=>o.W.get("t2v/voice-overs",t,i,e),getScenes:(e,t,i)=>{let{videoId:n}=e;return o.W.get("t2v/".concat(n,"/scenes"),t,i)},updateScene:(e,t,i)=>{let{videoId:n,sceneId:r,values:a}=e;return o.W.patch("t2v/".concat(n,"/scenes/").concat(r),a,t,i)},updateAllScene:(e,t,i)=>{let{videoId:n,values:r}=e;return o.W.patch("t2v/".concat(n,"/scenes"),r,t,i)},createUploadScene:(e,t,i)=>{let{videoId:n,sceneId:r,values:a}=e;return o.W.post("t2v/".concat(n,"/scenes/").concat(r,"/uploads"),a,t,i)},completeUploadScene:(e,t,i)=>{let{videoId:n,sceneId:r,uploadId:a}=e;return o.W.post("t2v/".concat(n,"/scenes/").concat(r,"/uploads/").concat(a,"/complete"),null,t,i)},deleteSceneImage:(e,t,i)=>{let{videoId:n,sceneId:r,values:a}=e;return o.W.delete("t2v/".concat(n,"/scenes/").concat(r,"/uploads"),a,t,i)},deleteScene:(e,t,i)=>{let{videoId:n,sceneId:r}=e;return o.W.delete("t2v/".concat(n,"/scenes/").concat(r),null,t,i)},splitScene:(e,t,i)=>{let{videoId:n,sceneId:r}=e;return o.W.post("t2v/".concat(n,"/scenes/").concat(r,"/split"),null,t,i)},getVoiceOverStatus:(e,t,i)=>{let{videoId:n,filters:r}=e;return o.W.get("t2v/".concat(n,"/voice-overs"),t,i,r)},regenerateVoiceOver:(e,t,i)=>{let{videoId:n,data:r}=e;return o.W.post("t2v/".concat(n,"/voice-overs/regenerate"),r,t,i)},generateScenes:(e,t,i)=>{let{videoId:n}=e;return o.W.post("t2v/".concat(n,"/generate-scenes"),null,t,i)},overlays:{list:(e,t,i)=>o.W.get("t2v/animation-overlays",t,i,e)}}},40361:function(e,t,i){"use strict";i.d(t,{n:function(){return n}});var o=i(86120);let n={importFromLink:(e,t,i)=>{let{link:n}=e;return o.W.get("studio/video-from-link",t,i,{link:n})}}},99245:function(e,t,i){"use strict";i.d(t,{W:function(){return n}});var o=i(86120);let n={run:(e,t,i)=>o.W.post("platform-apps/virtual-try-on/run",e,t,i),getExecutions:(e,t,i)=>o.W.get("platform-apps/virtual-try-on/executions",t,i,e),getExecution:(e,t,i)=>o.W.get("platform-apps/virtual-try-on/executions/".concat(e),t,i,null),getModels:(e,t,i)=>o.W.get("platform-apps/virtual-try-on/models",t,i,e),createModel:(e,t,i)=>o.W.post("platform-apps/virtual-try-on/models",e,t,i),getResources:(e,t)=>o.W.get("platform-apps/virtual-try-on/assets",e,t,null),createAsset:(e,t,i)=>o.W.post("platform-apps/virtual-try-on/assets",e,t,i),getResourceSessions:(e,t,i)=>o.W.get("resource-sessions",t,i,e),downloadOutput:(e,t,i,n)=>o.W.get("platform-apps/outputs/".concat(e,"/download"),t,i,n||null)}},7437:function(e,t,i){"use strict";i.d(t,{Es:function(){return y},NA:function(){return b},UA:function(){return h},lb:function(){return m}});var o=i(86120),n=i(15953),r=i(76654),a=i(61469),l=i(93269),s=i(48416),d=i(90238),u=i(71494);let c=null,p=e=>{var t,i;let o=null!==(i=null==e?void 0:e.visitor_id)&&void 0!==i?i:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.visitor_id;return(null==o?void 0:o.trim())||void 0},m=e=>(0,a.qD)((0,r.aY)(e)),h=e=>(0,l.JX)(e)||(0,r.oU)((0,r.SY)())||(0,a.dI)((0,a.fU)()),f=()=>h((0,l.R4)(new URLSearchParams(window.location.search)))?"landing":"signup_recovery",v=()=>m((0,l.R4)(new URLSearchParams(window.location.search))),g=(e,t,i,o)=>{var n;let l="string"==typeof i?i:(null==i?void 0:null===(n=i.data)||void 0===n?void 0:n.message)||(null==i?void 0:i.statusText)||"request_failed";d.ZP.track(u.n5.VISITOR_TRACK_FAILED,{source:o,reason:t,error_message:l,page_url:"".concat(window.location.pathname).concat(window.location.search),utm_source:e.utm_source,utm_medium:e.utm_medium,utm_campaign:e.utm_campaign,has_click_id:(0,r.oU)(e),has_campaign:(0,a.dI)(e),platform:window.innerWidth<768?"mobile":"desktop"})},y=async()=>{try{if((0,n.OP)()){c&&await c;return}if(!c){let e=v();if((0,s.Ty)(e))(0,s.pV)(e),b(e,void 0,"landing");else{let e=(0,s.nr)();(0,s.Ty)(e)&&b(e,void 0,"signup_recovery")}}c&&await c}catch(e){}},b=(e,t,i)=>{if(c)return c;let r=null!=i?i:f();return c=new Promise(i=>{o.W.post("v/t",e,t=>{let o=p(t);if(o&&(0,n.IA)(o),i(),!o)try{g(e,"missing_visitor_id_in_response","missing_visitor_id",r)}catch(e){}},t=>{i();try{g(e,"request_error",t,r)}catch(e){}},void 0,t?{"X-Visitor-Id":t}:void 0)}).finally(()=>{c=null})}},94115:function(e,t,i){"use strict";i.d(t,{f:function(){return n},o:function(){return o}});let o=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"object",i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;var o=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return"object"===t?o?{r:parseInt(o[1],16),g:parseInt(o[2],16),b:parseInt(o[3],16),opacity:i}:null:o?"rgba(".concat(parseInt(o[1],16),", ").concat(parseInt(o[2],16),", ").concat(parseInt(o[3],16),", ").concat(i,")"):null},n=(e,t,i,o)=>(e=e.toString(16),t=t.toString(16),i=i.toString(16),o=Math.round(255*o).toString(16),1==e.length&&(e="0"+e),1==t.length&&(t="0"+t),1==i.length&&(i="0"+i),1==o.length&&(o="0"+o),"#"+e+t+i)},1760:function(e,t,i){"use strict";i.d(t,{Aw:function(){return s},E$:function(){return p},Gm:function(){return u},IF:function(){return o},Jl:function(){return l},Nx:function(){return x},P3:function(){return n},RW:function(){return b},V3:function(){return f},VI:function(){return d},Wv:function(){return r},XT:function(){return c},bU:function(){return A},m9:function(){return g},oc:function(){return m},p_:function(){return h},qq:function(){return v},wv:function(){return a},yA:function(){return y}});let o=[{value:"18–24 (Young Adult)",label:{en:"18–24 (Young Adult)",ar:"18–24 (شاب)"}},{value:"25–30 (Adult)",label:{en:"25–30 (Adult)",ar:"25–30 (بالغ)"}},{value:"31–37 (Early Middle Age)",label:{en:"31–37 (Early Middle Age)",ar:"31–37 (منتصف العُمر المبكر)"}},{value:"38–45 (Middle Age)",label:{en:"38–45 (Middle Age)",ar:"38–45 (منتصف العُمر)"}},{value:"46–59 (Late Middle Age)",label:{en:"46–59 (Late Middle Age)",ar:"46–59 (منتصف العُمر المتأخر)"}},{value:"60+ (Senior)",label:{en:"60+ (Senior)",ar:"60+ (كبير سن)"}}],n=[{value:"Male",label:{en:"Male",ar:"ذكر"},icon:"/icons/male.svg"},{value:"Female",label:{en:"Female",ar:"أنثى"},icon:"/icons/female.svg"}],r=[{value:"White",label:{en:"White",ar:"أبيض"}},{value:"Black",label:{en:"Black",ar:"أسود"}},{value:"Arab",label:{en:"Arab",ar:"عربي"}},{value:"East Asian",label:{en:"East Asian",ar:"شرق آسيوي"}},{value:"South East Asian",label:{en:"South East Asian",ar:"جنوب شرق آسيوي"}},{value:"South Asian",label:{en:"South Asian",ar:"جنوب آسيوي"}},{value:"Persian",label:{en:"Persian",ar:"فارسي"}},{value:"Turkish",label:{en:"Turkish",ar:"تركي"}}
1,{value:"Hispanic",label:{en:"Hispanic",ar:"من أصول لاتينية"}}],a={White:[{value:"American",label:{en:"American",ar:"أمريكي"}},{value:"Canadian",label:{en:"Canadian",ar:"كندي"}},{value:"British",label:{en:"British",ar:"بريطاني"}},{value:"German",label:{en:"German",ar:"ألماني"}},{value:"French",label:{en:"French",ar:"فرنسي"}},{value:"Italian",label:{en:"Italian",ar:"إيطالي"}},{value:"Spanish",label:{en:"Spanish",ar:"إسباني"}},{value:"Australian",label:{en:"Australian",ar:"أسترالي"}}],Black:[{value:"African American",label:{en:"African American",ar:"أمريكي من أصل إفريقي"}},{value:"Nigerian",label:{en:"Nigerian",ar:"نيجيري"}},{value:"Kenyan",label:{en:"Kenyan",ar:"كيني"}},{value:"South African",label:{en:"South African",ar:"جنوب إفريقي"}},{value:"Ghanaian",label:{en:"Ghanaian",ar:"غاني"}},{value:"Ethiopian",label:{en:"Ethiopian",ar:"إثيوبي"}}],"East Asian":[{value:"Chinese",label:{en:"Chinese",ar:"صيني"}},{value:"Japanese",label:{en:"Japanese",ar:"ياباني"}},{value:"Korean",label:{en:"Korean",ar:"كوري"}},{value:"Mongolian",label:{en:"Mongolian",ar:"منغولي"}},{value:"Taiwanese",label:{en:"Taiwanese",ar:"تايواني"}}],"South East Asian":[{value:"Indonesian",label:{en:"Indonesian",ar:"إندونيسي"}},{value:"Filipino",label:{en:"Filipino",ar:"فلبيني"}},{value:"Thai",label:{en:"Thai",ar:"تايلاندي"}},{value:"Vietnamese",label:{en:"Vietnamese",ar:"فيتنامي"}},{value:"Malaysian",label:{en:"Malaysian",ar:"ماليزي"}},{value:"Singaporean",label:{en:"Singaporean",ar:"سنغافوري"}}],"South Asian":[{value:"Indian",label:{en:"Indian",ar:"هندي"}},{value:"Pakistani",label:{en:"Pakistani",ar:"باكستاني"}},{value:"Bangladeshi",label:{en:"Bangladeshi",ar:"بنغالي"}},{value:"Sri Lankan",label:{en:"Sri Lankan",ar:"سريلانكي"}},{value:"Nepali",label:{en:"Nepali",ar:"نيبالي"}},{value:"Bhutanese",label:{en:"Bhutanese",ar:"بوتاني"}}],Hispanic:[{value:"Mexican",label:{en:"Mexican",ar:"مكسيكي"}},{value:"Colombian",label:{en:"Colombian",ar:"كولومبي"}},{value:"Argentinian",label:{en:"Argentinian",ar:"أرجنتيني"}},{value:"Chilean",label:{en:"Chilean",ar:"تشيلي"}},{value:"Peruvian",label:{en:"Peruvian",ar:"بيروفي"}},{value:"Venezuelan",label:{en:"Venezuelan",ar:"فنزويلي"}},{value:"Cuban",label:{en:"Cuban",ar:"كوبي"}},{value:"Dominican",label:{en:"Dominican",ar:"دومينيكاني"}},{value:"Puerto Rican",label:{en:"Puerto Rican",ar:"بورتوريكي"}}],Arab:[{value:"Saudi",label:{en:"Saudi",ar:"سعودي"}},{value:"Egyptian",label:{en:"Egyptian",ar:"مصري"}},{value:"Kuwaiti",label:{en:"Kuwaiti",ar:"كويتي"}},{value:"Emirati",label:{en:"Emirati",ar:"إماراتي"}},{value:"Iraqi",label:{en:"Iraqi",ar:"عراقي"}},{value:"Jordanian",label:{en:"Jordanian",ar:"أردني"}},{value:"Palestinian",label:{en:"Palestinian",ar:"فلسطيني"}},{value:"Lebanese",label:{en:"Lebanese",ar:"لبناني"}},{value:"Omani",label:{en:"Omani",ar:"عماني"}},{value:"Bahraini",label:{en:"Bahraini",ar:"بحريني"}},{value:"Qatari",label:{en:"Qatari",ar:"قطري"}},{value:"Yemeni",label:{en:"Yemeni",ar:"يمني"}},{value:"Syrian",label:{en:"Syrian",ar:"سوري"}},{value:"Sudanese",label:{en:"Sudanese",ar:"سوداني"}},{value:"Moroccan",label:{en:"Moroccan",ar:"مغربي"}},{value:"Algerian",label:{en:"Algerian",ar:"جزائري"}},{value:"Tunisian",label:{en:"Tunisian",ar:"تونسي"}},{value:"Libyan",label:{en:"Libyan",ar:"ليبي"}},{value:"Mauritanian",label:{en:"Mauritanian",ar:"موريتاني"}}]},l={Male:[{value:"Slim",label:{en:"Slim",ar:"نحيف"}},{value:"Average",label:{en:"Average",ar:"متوسط"}},{value:"Athletic",label:{en:"Athletic",ar:"رياضي"}},{value:"Heavyset",label:{en:"Heavyset",ar:"ممتلئ"}}],Female:[{value:"Slim",label:{en:"Slim",ar:"نحيف"}},{value:"Average",label:{en:"Average",ar:"متوسط"}},{value:"Curvy",label:{en:"Curvy",ar:"رياضي"}},{value:"Heavyset",label:{en:"Heavyset",ar:"ممتلئ"}}]}
1,s=[{value:"Casually",label:{en:"Casually",ar:"غير رسمي"}},{value:"Formal",label:{en:"Formal",ar:"رسمي"}},{value:"Traditional",label:{en:"Traditional",ar:"تقليدي"}},{value:"Doctor",label:{en:"Doctor",ar:"طبيب"}},{value:"Professional",label:{en:"Professional",ar:"مهني"}}],d=[{value:"With",label:{en:"With",ar:"مع"}},{value:"Without",label:{en:"Without",ar:"بدون"}}],u=[{value:"Black",label:{en:"Black",ar:"أسود"},color:"#000000"},{value:"White",label:{en:"White",ar:"أبيض"},color:"#FFFFFF"},{value:"Navy Blue",label:{en:"Navy Blue",ar:"أزرق غامق"},color:"#000080"},{value:"Dark Green",label:{en:"Dark Green",ar:"أخضر غامق"},color:"#006400"},{value:"Beige",label:{en:"Beige",ar:"بيج"},color:"#F5F5DC"},{value:"Burgundy",label:{en:"Burgundy",ar:"خمري"},color:"#800020"},{value:"Grey",label:{en:"Grey",ar:"رمادي"},color:"#808080"}],c=[{value:"Black",label:{en:"Black",ar:"أسود"},color:"#000000"},{value:"Brown",label:{en:"Brown",ar:"بني"},color:"#8B4513"},{value:"Dark Brown",label:{en:"Dark Brown",ar:"بني غامق"},color:"#654321"},{value:"Blonde",label:{en:"Blonde",ar:"أشقر"},color:"#FAD5A5"},{value:"Auburn",label:{en:"Auburn",ar:"خمري"},color:"#A52A2A"},{value:"Grey",label:{en:"Grey",ar:"رمادي"},color:"#808080"},{value:"White",label:{en:"White",ar:"أبيض"},color:"#FFFFFF"}],p={Male:[{value:"Short classic haircut",label:{en:"Short classic haircut",ar:"قصة كلاسيكية قصيرة"}},{value:"Slicked back",label:{en:"Slicked back",ar:"للخلف"}},{value:"Messy short hair",label:{en:"Messy short hair",ar:"شعر فوضوي قصير"}},{value:"Loose, flowing hair",label:{en:"Loose, flowing hair",ar:"شعر طويل منسدل"}},{value:"Tied back in a ponytail",label:{en:"Tied back in a ponytail",ar:"مربوط بذيل حصان"}}],Female:[{value:"Straight shoulder-length hair",label:{en:"Straight shoulder-length hair",ar:"شعر مستقيم بطول الكتف"}},{value:"Long wavy hair",label:{en:"Long wavy hair",ar:"شعر مموج طويل"}},{value:"Curly short hair",label:{en:"Curly short hair",ar:"شعر مجعد قصير"}},{value:"Pixie cut",label:{en:"Pixie cut",ar:"قصة بيكسي"}},{value:"Bob cut",label:{en:"Bob cut",ar:"قصة بوب"}},{value:"Loose, flowing hair",label:{en:"Loose, flowing hair",ar:"شعر منسدل"}},{value:"Tied back in a ponytail",label:{en:"Tied back in a ponytail",ar:"مربوط بذيل حصان"}},{value:"Styled in soft curls",label:{en:"Styled in soft curls",ar:"بتجعيدات ناعمة"}}]},m=[{value:"Neutral Expression",label:{en:"Neutral Expression",ar:"تعبير محايد"}},{value:"Friendly Smile",label:{en:"Friendly Smile",ar:"ابتسامة لطيفة"}},{value:"Big Confident Smile",label:{en:"Big Confident Smile",ar:"ابتسامة كبيرة وواثقة"}},{value:"Serious/Intense",label:{en:"Serious/Intense",ar:"جدي/مكثف"}},{value:"Calm and Relaxed",label:{en:"Calm and Relaxed",ar:"هادئ ومسترخي"}},{value:"Thoughtful",label:{en:"Thoughtful",ar:"متفكر"}},{value:"Slight Smirk",label:{en:"Slight Smirk",ar:"ابتسامة خفيفة"}},{value:"Stern/Assertive",label:{en:"Stern/Assertive",ar:"صارم/حازم"}}],h=[{value:"City skyline",label:{en:"City skyline",ar:"سماء المدينة"}},{value:"Desert landscape",label:{en:"Desert landscape",ar:"صحراء"}},{value:"Modern office",label:{en:"Modern office",ar:"مكتب معمر"}},{value:"Office space",label:{en:"Office space",ar:"مكتب"}},{value:"Living room",label:{en:"Living room",ar:"غرفة المعيشة"}},{value:"Kitchen",label:{en:"Kitchen",ar:"مطبخ"}},{value:"Hospital",label:{en:"Hospital",ar:"مستشفى"}}],f=[{value:"9:16",label:"9:16",icon:"/icons/slider-horizontal.svg"},{value:"16:9",label:"16:9",icon:"/icons/slider-vertical.svg"}],v={min:25,max:5e3},g=[{key:"gender",title:{en:"What is the Gender?",ar:"ما هو الجنس؟"},required:!0,condition:null},{key:"ageGroup",title:{en:"What is the Age Group?",ar:"ما هي الفئة العمرية؟"},required:!0,condition:null},{key:"ethnicity",title:{en:"What is the Ethnicity?",ar:"ما هو العِرق؟"},required:!0,condition:null},{key:"bodyType",title:{en:"What is the Body Type?",ar:"ما هو نوع الجسم؟"},required:!0,condition:null},{key:"dressedStyle",title:{en:"What is the Dressed Style?",ar:"ما هو نوع اللباس؟"},required:!0,condition:null},{key:"hijab",title:{en:"Would you like the avatar to wear a Hijab?",ar:"هل تريد أن ترتدي الصورة الرقمية حجاب؟"},required:!0,condition:e=>"Female"===e.gender}
1,{key:"hijabColor",title:{en:"What is the Hijab Color?",ar:"ما هو لون الحجاب؟"},required:!0,condition:e=>"Female"===e.gender&&"With"===e.hijab},{key:"hairColor",title:{en:"What is the Hair Color?",ar:"ما هو لون الشعر؟"},required:!0,condition:e=>"Male"===e.gender||"Female"===e.gender&&"Without"===e.hijab},{key:"hairStyle",title:{en:"What is the Hair Style?",ar:"ما هي تسريحة الشعر؟"},required:!0,condition:e=>"Male"===e.gender&&"Traditional"!==e.dressedStyle||"Female"===e.gender&&"Without"===e.hijab},{key:"style",title:{en:"What is the Style?",ar:"ما هو النمط؟"},required:!0,condition:()=>!1},{key:"facialExpression",title:{en:"What is the Facial Expression?",ar:"ما هو تعبير الوجه؟"},required:!0,condition:null},{key:"background",title:{en:"What is the Background?",ar:"ما هي الخلفية؟"},required:!0,condition:null}],y=600,b=18,A={initialDelay:2e3,maxDelay:15e3,backoffMultiplier:1.3,maxAttempts:60},x={autoAdvanceDelay:400,generationSimulationDelay:2500}},54178:function(e,t,i){"use strict";var o,n,r,a;i.d(t,{Vu:function(){return n},l2:function(){return l}}),(r=o||(o={})).PORTRAIT="9:16",r.RECTANGLE="16:9",r.SQUARE="1:1",(a=n||(n={})).VIDEO_EDITOR="video_editor",a.SMART_CLIPPER="smart_clipper",a.TEXT_TO_VIDEO="text_to_video",a.TEXT_TO_SCENES="text_to_scene",a.QUOTE_TO_VIDEO="quote_to_video",a.AVATAR_VIDEO="avatar_video",a.TEMPLATE_VIDEO="template_video",a.PROMO_VIDEO="promo_video",a.PRODUCT_SHOTS_VIDEO="product_shots_video",a.UGC_VIDEO="ugc_video";let l="text_to_video,template_video,video_editor,text_to_scene,quote_to_video,avatar_video,product_shots_video,ugc_video";t.ZP={outputEditorFormatOptions:[{value:"16:9",ratioText:"16:9",label:{en:"Landscape",ar:"بالعرض",es:"Paisaje",fr:"Paysage",it:"Paesaggio",tr:"Manzara"},width:400,height:225,preViewClassName:"w-8 h-5",p:"56.25%",icon:"/icons/Vector.svg"},{value:"9:16",ratioText:"9:16",label:{en:"Portrait",ar:"بالطول",es:"Retrato",fr:"Portrait",it:"Ritratto",tr:"Portre"},width:280,height:498,preViewClassName:"w-5 h-8",p:"177.778%",icon:"/icons/Vector-1.svg"},{value:"1:1",ratioText:"1:1",label:{en:"Square",ar:"مربّع",es:"Cuadrado",fr:"Carr\xe9",it:"Quadrato",tr:"Kare"},width:280,height:280,preViewClassName:"w-5 h-5",p:"100%",icon:"/icons/Vector-2.svg"}],ASPECT_RATIO_VALUES:o,VIDEO_SOURCES:n,studioVideosFilterSourceOptions:[{label:{en:"All",ar:"جميع الفيديوهات",es:"Todos los Videos",fr:"Toutes les",it:"Tutti i Video",tr:"T\xfcm Videolar"},value:"all"},{label:{en:"AI Videos",ar:"فيديوهات بالذكاء الاصطناعي",es:"Videos Generados por IA",fr:"Vid\xe9os g\xe9n\xe9r\xe9es par IA",it:"Video generati da IA",tr:"AI Oluşturulan Videolar"},value:"text_to_video,text_to_scene,quote_to_video,avatar_video",svg:""},{label:{en:"Edited Videos",ar:"الفيديوهات المعدلة",es:"Videos Editados",fr:"Vid\xe9os \xe9dit\xe9es",it:"Video Modificati",tr:"D\xfczenlenmiş Videolar"},value:"video_editor"},{label:{en:"UGC Videos",ar:"فيديوهات UGC",es:"Videos UGC",fr:"Vid\xe9os UGC",it:"Video UGC",tr:"UGC Videoları"},value:"ugc_video"}],studioVideosSortOptions:[{desc:{label:{en:"Name A-Z",ar:"الإسم",es:"Nombre",fr:"Nom",it:"Nome",tr:"İsim"}},asc:{label:{en:"Name Z-A",ar:"الإسم",es:"Nombre",fr:"Nom",it:"Nome",tr:"İsim"}},action:"name",svg:""},{desc:{label:{en:"Date Created (New to Old)",ar:"تاريخ الإنشاء (أحدث للأقدم)",es:"Fecha de Creaci\xf3n",fr:"Date de cr\xe9ation",it:"Data di creazione",tr:"Oluşturulma Tarihi (En Yeniden Eskiye)"}},asc:{label:{en:"Date Created (Old to New)",ar:"تاريخ الإنشاء (أقدم للأحدث)",es:"Fecha de Creaci\xf3n",fr:"Date de cr\xe9ation",it:"Data di creazione",tr:"Oluşturulma Tarihi (En Eskiye Yeniden)"}},action:"created_at",svg:""},{desc:{label:{en:"Date Modified (New to Old)",ar:"تاريخ التعديل (أحدث للأقدم)",es:"Fecha de Modificaci\xf3n",fr:"Date de modification",it:"Data di modifica",tr:"Tarihe G\xf6re D\xfczenleme (En Yeniden Eskiye)"}},asc:{label:{en:"Date Modified (Old to New)",ar:"تاريخ التعديل  (أقدم للأحدث)",es:"Fecha de Modificaci\xf3n",fr:"Date de modification",it:"Data di modifica",tr:"Tarihe G\xf6re D\xfczenleme (En Eskiye Yeniden)"}},action:"updated_at",svg:""}],faceCamOptions:[{value:null,label:{en:"None",ar:"لا شيء",es:"Ninguno",fr:"Aucun",it:"Nessuno",tr:"Hi\xe7biri"},icon:"/icons/forbidden.svg"}
1,{value:"circle",label:{en:"Circle",ar:"دائرة",es:"C\xedrculo",fr:"Cercle",it:"Cerchio",tr:"Daire"},icon:"/icons/circle.svg"},{value:"rectangle",label:{en:"Rectangle",ar:"مستطيل",es:"Rect\xe1ngulo",fr:"Rectangle",it:"Rettangolo",tr:"Dikd\xf6rtgen"},icon:"/icons/rectangle.svg"}],faceCameStrokeStyles:[{name:"None",value:"none"},{name:"Solid",value:"static",colors:["#6D5DD3"],isPro:!0},{name:"Gradient",value:"gradient",colors:["#799F0C","#FFE000"],isPro:!0},{name:"Animated Gradient",value:"animated_gradient",colors:["#EA52F8","#0066FF"],isPro:!0}],studioVideosFilterByOptions:[{label:{en:"All AI Videos",ar:"جميع فيديوهات الذكاء الاصطناعي",es:"Todos los Videos Generados por IA",fr:"Toutes les Vid\xe9os G\xe9n\xe9r\xe9es par IA",it:"Tutti i Video Generati da IA",tr:"T\xfcm AI Oluşturulan Videolar"},value:"text_to_video,text_to_scene,quote_to_video,avatar_video",svg:""},{label:{en:"AI Generated Videos",ar:"فيديوهات بالذكاء الاصطناعي",es:"Videos Generados por IA",fr:"Vid\xe9os g\xe9n\xe9r\xe9es par IA",it:"Video generati da IA",tr:"AI Oluşturulan Videolar"},value:"text_to_video",svg:""},{label:{en:"Quote to Video",ar:"فيديو بالاقتباس",es:"Video de Cita",fr:"Vid\xe9o de Citation",it:"Video di Citazione",tr:"Citation Video"},value:"quote_to_video"},{label:{en:"Avatar Videos",ar:"شخصيات رقمية",es:"Video de Avatar",fr:"Vid\xe9o de Avatar",it:"Video di Avatar",tr:"Avatar Video"},value:"avatar_video"},{label:{en:"AI Scenes",ar:"مشاهد بالذكاء الاصطناعي",es:"Escenas de IA",fr:"Sc\xe8nes IA",it:"Scene IA",tr:"AI Sahneleri"},value:"text_to_scene",svg:""}],studioVideosFilterSourceOptionsMobile:[{label:{en:"All",ar:"جميع الفيديوهات",es:"Todos los Videos",fr:"Toutes les",it:"Tutti i Video",tr:"T\xfcm Videolar"},value:"all"},{label:{en:"AI Videos",ar:"مشاهد بالذكاء الاصطناعي",es:"Escenas de IA",fr:"Sc\xe8nes IA",it:"Scene IA",tr:"AI Sahneleri"},value:"text_to_scene,template_video,product_shots_video",svg:""},{label:{en:"AI Shorts",ar:"فيديوهات بالذكاء الاصطناعي",es:"Videos Generados por IA",fr:"Vid\xe9os g\xe9n\xe9r\xe9es par IA",it:"Video generati da IA",tr:"AI Oluşturulan Videolar"},value:"text_to_video, quote_to_video",svg:""},{label:{en:"Avatar Videos",ar:"شخصيات رقمية",es:"Video de Avatar",fr:"Vid\xe9o de Avatar",it:"Video di Avatar",tr:"Avatar Video"},value:"avatar_video"},{label:{en:"Edited Videos",ar:"الفيديوهات المعدلة",es:"Videos Editados",fr:"Vid\xe9os \xe9dit\xe9es",it:"Video Modificati",tr:"D\xfczenlenmiş Videolar"},value:"video_editor"},{label:{en:"UGC Videos",ar:"فيديوهات UGC",es:"Videos UGC",fr:"Vid\xe9os UGC",it:"Video UGC",tr:"UGC Videoları"},value:"ugc_video"}]}},30027:function(e,t,i){"use strict";i.d(t,{C2:function(){return n},FB:function(){return p},GR:function(){return a},dF:function(){return u},dO:function(){return m},fK:function(){return s},kJ:function(){return c},pQ:function(){return d},uI:function(){return l}});var o=i(24556);let n={basic:{icon:"/icons/stairs.svg",name:{en:"Basic",ar:"أساسي",es:"B\xe1sico",fr:"De base",it:"Base",tr:"Temel"},description:{en:"For those starting their content production journey",ar:"لمن يبدأ رحلته في صناعة المحتوى",es:"Para quienes empiezan su camino en la producci\xf3n de contenido",fr:"Pour ceux qui d\xe9butent dans la production de contenu",it:"Per chi inizia il percorso nella produzione di contenuti",tr:"İ\xe7erik \xfcretiminde yolculuğuna başlayanlar i\xe7in"},textColor:"var(--ph-color)",glowColor:"#929292",buttonColor:{dark:"#FFFFFF",light:"#F2F2F2"},buttonTextColor:{dark:"#0C0C0C",light:"#0C0C0C"},borderColor:{dark:"rgba(146,146,146,0.15)",light:"rgba(146,146,146,0.15)"},backgroundColor:{dark:"#212121",light:"#FFFFFF"},isBasic:!0},pro:{isPopular:!0,icon:"/icons/rocket.svg",name:{en:"Pro",ar:"محترف",es:"Pro",fr:"Pro",it:"Pro",tr:"Pro"},description:{en:"For growing stores and brands",ar:"للمتاجر والعلامات التجارية النامية",es:"Para tiendas y marcas en crecimiento",fr:"Pour les boutiques et marques en croissance",it:"Per negozi e brand in crescita",tr:"B\xfcy\xfcyen mağazalar ve markalar i\xe7in"}
1,glowColor:"#6681D3",overlayColor:{dark:"rgba(102, 129, 211, 0.02)",light:"rgba(102, 129, 211, 0.03)"},buttonColor:{dark:"#6681D3",light:"#6681D3"},buttonTextColor:{dark:"#FFFFFF",light:"#FFFFFF"},borderColor:{dark:"rgba(144, 166, 234, 0.28)",light:"rgba(144, 166, 234, 0.4)"},backgroundColor:{dark:"#212121",light:"#FFFFFF"},topCardLabel:{en:"Most chosen",ar:"الأكثر اختياراً",es:"La m\xe1s elegida",fr:"La plus choisie",it:"La pi\xf9 scelta",tr:"En \xe7ok se\xe7ilen"},saveAmount:24,saveConfig:{bg:{dark:"#8BC0DF12",light:"#8BC0DF"},text:{dark:"#8BC0DF",light:"#fff"}}},creator:{icon:"/icons/award.svg",name:{en:"Creator",ar:"مبدع",es:"Creador",fr:"Cr\xe9ateur",it:"Creatore",tr:"Yaratıcı"},description:{en:"For professional content creators",ar:"لصناع المحتوى المحترفين",es:"Para creadores de contenido profesionales",fr:"Pour les cr\xe9ateurs de contenu professionnels",it:"Per creator di contenuti professionisti",tr:"Profesyonel i\xe7erik \xfcreticileri i\xe7in"},glowColor:"#A351C0",overlayColor:{dark:"rgba(163, 81, 192, 0.02)",light:"rgba(163, 81, 192, 0.03)"},buttonColor:{dark:"#FFFFFF",light:"#F2F2F2"},buttonTextColor:{dark:"#0C0C0C",light:"#0C0C0C"},borderColor:{dark:"rgba(204, 132, 229, 0.28)",light:"rgba(204, 132, 229, 0.4)"},backgroundColor:{dark:"#212121",light:"#FFFFFF"},topCardLabel:{en:"Most Popular",ar:"الأكثر اختياراً",es:"M\xe1s Popular",fr:"Plus Populaire",it:"Pi\xf9 Popolare",tr:"En \xc7ok Pop\xfcler"},saveAmount:47,saveConfig:{bg:{dark:"#BEEA4D12",light:"#BEEA4D"},text:{dark:"#BEEA4D",light:"var(--custom-white)"}}},business:{icon:"/icons/briefcase.svg",name:{en:"Business",ar:"أعمال",es:"Negocio",fr:"Entreprise",it:"Azienda",tr:"İş"},description:{en:"For fast-growing companies and teams",ar:"للشركات والفرق التي تنمو بسرعة",es:"Para empresas y equipos de r\xe1pido crecimiento",fr:"Pour les entreprises et \xe9quipes en forte croissance",it:"Per aziende e team in rapida crescita",tr:"Hızla b\xfcy\xfcyen şirketler ve ekipler i\xe7in"},glowColor:"#3AA37B",overlayColor:{dark:"rgba(47, 198, 139, 0.02)",light:"rgba(47, 198, 139, 0.03)"},buttonColor:{dark:"#FFFFFF",light:"#F2F2F2"},buttonTextColor:{dark:"#0C0C0C",light:"#0C0C0C"},borderColor:{dark:"rgba(47, 198, 139, 0.28)",light:"rgba(47, 198, 139, 0.4)"},backgroundColor:{dark:"#212121",light:"#FFFFFF"},topCardLabel:{en:"Best Value",ar:"الخيار الأمثل",es:"Mejor Valor",fr:"Meilleur Valeur",it:"Miglior Valore",tr:"En İyi Değer"},saveAmount:53,saveConfig:{bg:{dark:"#D14C7212",light:"#D14C72"},text:{dark:"#D14C72",light:"#fff"}}}},r={basic:1,pro:4,creator:12,business:37},a=e=>{var t;return null!==(t=r[e])&&void 0!==t?t:0},l=(e,t)=>{let i={basic:{videoGenerations:12,aiShorts:16,imageGenerations:125,imageEdits:62,subtitleMinutes:120,imageUpscales:1e3},pro:{videoGenerations:28,aiShorts:38,imageGenerations:287,imageEdits:143,subtitleMinutes:360,imageUpscales:2300},creator:{videoGenerations:125,aiShorts:166,imageGenerations:1250,imageEdits:625,subtitleMinutes:720,imageUpscales:1e4},business:{videoGenerations:375,aiShorts:500,imageGenerations:3750,imageEdits:1875,subtitleMinutes:1500,imageUpscales:3e4}};return i[e]||i.basic},s=(e,t,i)=>{if(t){if(i){if(t<300)return"basic";if(t>=300&&t<720)return"pro";if(t>=720&&t<=1080)return"creator";if(t>=1080&&t<=1440||t<=1440)return"business"}if(t<=12)return"basic";if(t>12&&t<=30)return"pro";if(t>=60&&t<100)return"creator";if(t>=100)return"business"}return"basic"},d=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dark";return"object"==typeof e&&null!==e?e[t]||e.dark:e||"#929292"},u=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dark";return"object"==typeof e&&null!==e?e[t]||e.dark:e||""},c=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dark";return"transparent"===e?"transparent":"object"==typeof e&&null!==e?e[t]||e.dark:e||"transparent"},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dark";return"object"==typeof e&&null!==e?e[t]||e.dark:e||"#fff"},m=e=>{let t=(0,o.x6)(e.videoGenerations),i=(0,o.x6)(e.aiShorts),n=(0,o.x6)(e.imageGenerations),r=(0,o.x6)(e.imageEdits),a=(0,o.x6)(e.imageUpscales),l=(0,o.x6)(e.subtitleMinutes);return[{icon:"/icons/video-octagon.svg",text:{en:"Up to ".concat(t," Video Generations depending on the model"),ar:"انشاء حتى ".concat(t," فيديو حسب النموذج"),es:"Hasta ".concat(t," videos (dependiendo del modelo)"),fr:"Jusqu'\xe0 ".concat(t," vid\xe9os (selon le mod\xe8le)"),it:"Fino a ".concat(t," video (a seconda del modello)"),tr:"En fazla ".concat(t," video (modeline g\xf6re)")},isStroke:!0},{icon:"/icons/video-vertical.svg",text:{en:"Up to ".concat(i," AI Shorts"),ar:"انشاء حتى ".concat(i," فيديو قصير"),es:"Hasta ".concat(i," Shorts AI"),fr:"Jusqu'\xe0 ".concat(i," Shorts AI"),it:"Fino a ".concat(i," Shorts AI"),tr:"En fazla ".concat(i," AI Shorts")}},{icon:"/icons/gallery.svg",text:{en:"Up to ".concat(n," Image Generations"),ar:"انشاء حتى ".concat(n," صور"),es:"Hasta ".concat(n," generaciones de imagen"),fr:"Jusqu'\xe0 ".concat(n," g\xe9n\xe9rations d'image"),it:"Fino a ".concat(n," generazioni di immagine"),tr:"En fazla ".concat(n," g\xf6r\xfcnt\xfc oluşturma")}},{icon:"/icons/gallery-edit-outlined.svg",text:{en:"Up to ".concat(r," Image Edits"),ar:"تعديل حتى ".concat(r," صورة"),es:"Hasta ".concat(r," ediciones de imagen"),fr:"Jusqu'\xe0 ".concat(r," modifications d'image"),it:"Fino a ".concat(r," modifiche di immagine"),tr:"En fazla ".concat(r," g\xf6r\xfcnt\xfc d\xfczenlemesi")}},{icon:"/icons/up-scale-outlined.svg",text:{en:"Up to ".concat(a," Image Upscales"),ar:"تحسين حتى ".concat(a," صورة"),es:"Hasta ".concat(a," Ampliaciones de Imagen (dependiendo del modelo)"),fr:"Jusqu'\xe0 ".concat(a," Amplifications d'Image (selon le mod\xe8le)"),it:"Fino a ".concat(a," Ampliamenti di Immagine (a seconda del modello)"),tr:"En fazla ".concat(a," G\xf6r\xfcnt\xfc Y\xfckseltmeleri (modeline g\xf6re)")}},{icon:"/icons/microphone-2.svg",text:{en:"Includes Audio Generation",ar:"يتضمن انشاء الصوت",es:"Incluye generaci\xf3n de audio",fr:"Inclut la g\xe9n\xe9ration audio",it:"Include generazione audio",tr:"Ses oluşturmayı i\xe7erir"}},{icon:"/icons/subtitle.svg",text:{en:"Includes Subtitles generations for ".concat(l," mins"),ar:"يتضمن انشاء الترجمة لمدة ".concat(l," دقيقة"),es:"Incluye Generaciones de Subt\xedtulos para ".concat(l," minutos"),fr:"Inclut les G\xe9n\xe9rations de Sous-titres pour ".concat(l," minutes"),it:"Incluono Generazioni di Sottotitoli per ".concat(l," minuti"),tr:"".concat(l," dakika altyazı oluşturmayı i\xe7erir")},isStroke:!0},{icon:"/icons/customer-support.svg",text:{en:"Direct Access to Support Team",ar:"الوصول المباشر إلى فريق الدعم",es:"Acceso directo al equipo de soporte",fr:"Acc\xe8s direct au support",it:"Acce
1sso diretto al team di supporto",tr:"Destek Ekibine Doğrudan Erişim"},isStroke:!0}]}},20468:function(e,t,i){"use strict";i.d(t,{Fq:function(){return s},RO:function(){return a},JQ:function(){return l},ZP:function(){return x},fb:function(){return b}});var o,n,r,a,l,s,d=i(85893),u=i(67294),c=i(85518),p=i(84292),m=e=>{let{animate:t,className:i}=e,o=(0,p.q_)({d:t||c.tq?"M129.819 33.0905C130.979 30.895 128.301 30.6828 126.828 30.3068C124.466 29.7527 122.072 29.3366 119.715 28.7459C117.585 28.3734 105.025 24.4342 104.377 26.3951C104.27 26.8363 104.669 27.2724 105.112 27.2356C108.406 28.0377 111.569 29.274 114.771 30.378C95.9823 31.8672 82.2379 39.5464 70.3386 54.0015C70.3074 54.0412 70.2762 54.0809 70.2449 54.1206C70.2449 54.1206 70.2506 54.1134 70.2535 54.1098C70.108 54.2874 69.9625 54.4651 69.8134 54.6399C69.8049 54.6507 69.7993 54.6579 69.7907 54.6688C69.7907 54.6688 69.7936 54.6652 69.7964 54.6615C69.7567 54.7121 69.717 54.7626 69.6801 54.8095C67.2394 57.5803 65.3981 60.7698 63.9119 64.139C63.5508 65.0814 62.2727 67.0492 63.0138 67.9413C63.537 66.8225 64.1834 65.7773 64.8399 64.7341C64.8314 64.7449 64.8257 64.7521 64.8172 64.763C71.0751 54.8549 80.2613 46.6004 90.5679 41.066C100.206 36.6416 110.751 33.6421 121.418 33.8158C119.14 34.746 116.835 35.6205 114.578 36.5971C113.433 37.1691 111.476 37.9137 112.147 39.5335C112.71 40.7412 113.93 40.5199 114.941 40.0652C116.175 39.6395 117.352 39.0407 118.539 38.4963C121.43 37.1887 124.299 35.8347 127.189 34.5271C128.063 34.0693 129.15 33.8606 129.816 33.0941L129.819 33.0905Z":"M60.1897 83.4903C59.8266 81.0342 57.542 82.4459 56.131 83.0141C53.8988 83.9636 51.7218 85.0435 49.4723 85.9603C47.5337 86.9196 35.0753 91.1687 35.7122 93.1332C35.8864 93.5525 36.4659 93.6684 36.8019 93.3765C39.9325 92.0759 43.2142 91.203 46.4497 90.1999C32.1772 102.51 25.6328 116.829 24.5827 135.523C24.581 135.573 24.5793 135.624 24.5776 135.674C24.5776 135.674 24.5779 135.665 24.5781 135.66C24.5658 135.89 24.5535 136.119 24.5366 136.348C24.5362 136.362 24.5359 136.371 24.5354 136.385C24.5354 136.385 24.5355 136.38 24.5357 136.376C24.5335 136.44 24.5314 136.504 24.5294 136.564C24.1992 140.241 24.6 143.902 25.3935 147.498C25.6594 148.472 25.7921 150.814 26.9173 151.096C26.6777 149.884 26.581 148.659 26.4937 147.429C26.4932 147.443 26.4929 147.452 26.4924 147.466C25.6813 135.775 28.2094 123.687 33.2494 113.13C38.4068 103.863 45.1377 95.209 53.8431 89.0424C52.5554 91.1399 51.2135 93.2079 49.9709 95.3299C49.386 96.4679 48.2475 98.2258 49.7467 99.1351C50.9149 99.7761 51.7674 98.8768 52.3143 97.9121C53.0577 96.8392 53.6532 95.6602 54.2886 94.5193C55.8468 91.7556 57.3599 88.9675 58.918 86.2039C59.352 85.318 60.105 84.5073 60.1895 83.4949L60.1897 83.4903Z"}),n=(0,u.useRef)(null);return(0,u.useEffect)(()=>{n.current&&(t||c.tq?n.current&&n.current.paused&&n.current.play().catch(e=>console.error("Video playback error:",e)):n.current.pause())},[t]),(0,d.jsxs)("svg",{className:i,width:"289",height:"210",viewBox:"0 0 289 210",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,d.jsx)("defs",{children:(0,d.jsx)("clipPath",{id:"roun
1dedRect",children:(0,d.jsx)("rect",{x:"11.3906",y:"81.4785",width:"116.522",height:"116.522",rx:"11.39",ry:"11.39"})})}),(0,d.jsxs)("g",{filter:"url(#filter0_d_2001_2)",children:[(0,d.jsx)(p.q.path,{d:o.d,fill:"#CED3FB"}),(0,d.jsx)("image",{href:"https://storage.googleapis.com/bith-prod-assets/assets/studio/ai-scenes-image2.png",x:"11.3906",y:"81.4785",width:"116.522",height:"116.522",preserveAspectRatio:"xMidYMid slice","clip-path":"url(#roundedRect)"}),(0,d.jsx)("rect",{x:"161",y:"8.75977",width:"116.522",height:"116.522",rx:"11.39",ry:"11.39",fill:"none"}),(0,d.jsx)("rect",{y:"72.7169",width:"50.1956",height:"20.7173",rx:"3.50442",fill:"#CED3FB"}),(0,d.jsx)("path",{d:"M17.339 77.0764V85.1564C17.339 86.4073 16.984 87.3708 16.2741 88.0469C15.5754 88.7231 14.6288 89.0611 13.4343 89.0611C12.1834 89.0611 11.1805 88.7062 10.4254 87.9962C9.6704 87.2863 9.29288 86.2777 9.29288 84.9704H12.1665C12.1665 85.4663 12.2679 85.8438 12.4708 86.103C12.6736 86.3509 12.9666 86.4749 13.3498 86.4749C13.6991 86.4749 13.9696 86.3622 14.1611 86.1368C14.3527 85.9114 14.4485 85.5846 14.4485 85.1564V77.0764H17.339ZM28.7173 80.8967C28.7173 81.5841 28.5595 82.2152 28.244 82.7899C27.9285 83.3533 27.4439 83.8097 26.7903 84.1591C26.1367 84.5084 25.3253 84.6831 24.3562 84.6831H22.5644V88.9428H19.6738V77.0764H24.3562C25.3028 77.0764 26.1029 77.2398 26.7565 77.5666C27.4101 77.8934 27.9003 78.3442 28.2271 78.9189C28.5539 79.4937 28.7173 80.1529 28.7173 80.8967ZM24.1364 82.3842C24.6886 82.3842 25.0999 82.2546 25.3704 81.9954C25.6408 81.7362 25.7761 81.37 25.7761 80.8967C25.7761 80.4234 25.6408 80.0571 25.3704 79.7979C25.0999 79.5387 24.6886 79.4091 24.1364 79.4091H22.5644V82.3842H24.1364ZM38.0992 80.8291C37.8851 80.4346 37.5752 80.136 37.1695 79.9332C36.7751 79.719 36.3074 79.612 35.7665 79.612C34.8312 79.612 34.0818 79.9219 33.5183 80.5417C32.9549 81.1502 32.6732 81.9672 32.6732 82.9927C32.6732 84.0858 32.9662 84.9423 33.5521 85.5621C34.1494 86.1706 34.9664 86.4749 36.0032 86.4749C36.7131 86.4749 37.3104 86.2946 37.795 85.934C38.2908 85.5733 38.6514 85.055 38.8768 84.3788H35.2087V82.249H41.4969V84.9366C41.2828 85.6579 40.9165 86.3284 40.3981 86.9482C39.891 87.568 39.243 88.0695 38.4542 88.4526C37.6654 88.8358 36.7751 89.0273 35.7834 89.0273C34.6114 89.0273 33.5634 88.7738 32.6393 88.2667C31.7265 87.7483 31.011 87.0327 30.4926 86.1199C29.9855 85.2071 29.7319 84.1647 29.7319 82.9927C29.7319 81.8207 29.9855 80.7783 30.4926 79.8655C31.011 78.9415 31.7265 78.2259 32.6393 77.7188C33.5521 77.2004 34.5945 76.9412 35.7665 76.9412C37.1864 76.9412 38.381 77.2849 39.3501 77.9723C40.3305 78.6597 40.9785 79.612 41.294 80.8291H38.0992Z",fill:"#303030"}
1),(0,d.jsx)("foreignObject",{x:c.tq?"180":"161",y:"8.75977",width:"116.52",height:"116.52",children:(0,d.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:"11.39px",overflow:"hidden",position:"relative",background:"black"},children:(0,d.jsxs)("video",{ref:n,width:"100%",height:"100%",playsInline:!0,muted:!0,loop:!0,autoPlay:c.tq,style:{objectFit:"cover",width:"100%",height:"100%",display:"block"},children:[(0,d.jsx)("source",{src:"https://storage.googleapis.com/bith-prod-assets/assets/studio/ai-resized.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]})})})]}),(0,d.jsx)("rect",{x:"148.062",width:"54.5762",height:"20.7173",rx:"3.50442",fill:"#CED3FB",id:"ai-scenes-illustration-mp4-rect"}),(0,d.jsx)("path",{d:"M171.248 4.35952V16.2259H168.358V9.10945L165.704 16.2259H163.371L160.7 9.09255V16.2259H157.81V4.35952H161.224L164.554 12.5747L167.851 4.35952H171.248ZM182.37 8.17975C182.37 8.86716 182.213 9.49823 181.897 10.073C181.582 10.6364 181.097 11.0928 180.443 11.4422C179.79 11.7915 178.978 11.9662 178.009 11.9662H176.217V16.2259H173.327V4.35952H178.009C178.956 4.35952 179.756 4.52292 180.41 4.84973C181.063 5.17653 181.553 5.62729 181.88 6.20202C182.207 6.77674 182.37 7.43599 182.37 8.17975ZM177.79 9.66727C178.342 9.66727 178.753 9.53768 179.024 9.27849C179.294 9.0193 179.429 8.65305 179.429 8.17975C179.429 7.70645 179.294 7.3402 179.024 7.08101C178.753 6.82182 178.342 6.69223 177.79 6.69223H176.217V9.66727H177.79ZM183.656 14.0284V11.6957L188.997 4.05525H192.226V11.5267H193.612V14.0284H192.226V16.2259H189.335V14.0284H183.656ZM189.538 7.23314L186.698 11.5267H189.538V7.23314Z",fill:"#303030",id:"ai-scenes-illustration-mp4-path"}),(0,d.jsx)("defs",{children:(0,d.jsxs)("filter",{id:"filter0_d_2001_2",x:"0",y:"0",width:"288.031",height:"209.425",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[(0,d.jsx)("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),(0,d.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,d.jsx)("feOffset",{dx:"5.48376",dy:"6.39772"}),(0,d.jsx)("feGaussianBlur",{stdDeviation:"2.51339"}),(0,d.jsx)("feComposite",{in2:"hardAlpha",operator:"out"}),(0,d.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),(0,d.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_2001_2"}),(0,d.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_2001_2",result:"shape"})]})})]})},h=e=>{let{animate:t,className:i}=e,o=(0,p.q_)({d:t||c.tq?"M117.109 75.9665C117.817 74.6263 116.183 74.4967 115.283 74.2672C113.841 73.929 112.38 73.6749 110.941 73.3143C109.641 73.087 101.974 70.6823 101.578 71.8793C101.513 72.1487 101.756 72.4149 102.027 72.3924C104.038 72.882 105.968 73.6367 107.923 74.3107C96.4538 75.2197 88.0637 79.9074 80.7999 88.7314C80.7808 88.7556 80.7618 88.7799 80.7427 88.8041C80.7427 88.8041 80.7462 88.7997 80.7479 88.7975C80.6591 88.9059 80.5703 89.0144 80.4793 89.1211C80.4741 89.1277 80.4706 89.1321 80.4654 89.1387C80.4654 89.1387 80.4672 89.1365 80.4689 89.1343C80.4447 89.1652 80.4204 89.196 80.3979 89.2246C78.908 90.9161 77.784 92.863 76.8768 94.9197C76.6563 95.495 75.8761 96.6962 76.3286 97.2408C76.6479 96.5579 77.0425 95.9198 77.4432 95.283C77.438 95.2896 77.4346 95.294 77.4294 95.3006C81.2495 89.2524 86.8571 84.2134 93.1487 80.835C99.0324 78.1342 105.469 76.3032 111.981 76.4092C110.59 76.9771 109.183 77.5109 107.805 78.1071C107.107 78.4562 105.912 78.9108 106.321 79.8995C106.665 80.6368 107.41 80.5017 108.027 80.2241C108.78 79.9642 109.499 79.5987 110.223 79.2664C111.988 78.4682 113.739 77.6416 115.504 76.8434C116.037 76.564 116.701 76.4366 117.108 75.9687L117.109 75.9665Z":"M87.6547 82.3017C87.4171 80.8048 86.0318 81.6813 85.1742 82.0372C83.8177 82.6312 82.4959 83.3044 81.1286 83.8785C79.9515 84.4766 72.3742 87.1507 72.7757 88.3457C72.8848 88.6005 73.2392 88.6676 73.4424 88.4872C75.345 87.6731 77.3425 87.1191 79.311 86.4859C70.6784 94.0921 66.7761 102.875 66.2558 114.292C66.2551 114.323 66.2544 114.354 66.2537 114.385C66.2537 114.385 66.2538 114.379 66.2539 114.376C66.2479 114.516 66.2418 114.656 66.233 114.796C66.2328 114.805 66.2327 114.81 66.2325 114.819C66.2325 114.819 66.2326 114.816 66.2326 114.813C66.2317 114.852 66.2308 114.892 66.23 114.928C66.0522 117.175 66.3205 119.407 66.828 121.597C66.9966 122.19 67.0927 123.619 67.7814 123.783C67.6273 123.045 67.5604 122.298 67.4991 121.548C6
17.4989 121.556 67.4988 121.562 67.4986 121.57C66.928 114.44 68.3932 107.044 71.4015 100.568C74.4898 94.8777 78.5425 89.552 83.8165 85.7317C83.044 87.0203 82.2383 88.2913 81.4935 89.5946C81.1438 90.293 80.4602 91.3734 81.3812 91.9188C82.0984 92.3025 82.613 91.748 82.9406 91.1556C83.3874 90.4959 83.7433 89.7724 84.1238 89.0719C85.0571 87.3749 85.9627 85.6632 86.8959 83.9662C87.1551 83.4227 87.6095 82.923 87.6546 82.3045L87.6547 82.3017Z",opacity:t||c.tq?"100%":"0%"}),n=(0,u.useRef)(null);return(0,u.useEffect)(()=>{n.current&&(t||c.tq?n.current&&n.current.paused&&n.current.play().catch(e=>console.error("Video playback error:",e)):n.current.pause())},[t]),(0,d.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"277",height:"152",viewBox:"0 0 277 152",fill:"none",children:[(0,d.jsxs)("g",{"clip-path":"url(#clip0_17513_15400)",children:[(0,d.jsx)("foreignObject",{id:"image0_17513_15400",width:"108.77",height:"108.77",preserveAspectRatio:"none",x:c.tq?"180":"122",y:c.tq?"12":"22",children:(0,d.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:"11.39px",overflow:"hidden",position:"relative",background:"black"},children:(0,d.jsxs)("video",{ref:n,width:"100%",height:"100%",playsInline:!0,muted:!0,loop:!0,autoPlay:c.tq,style:{objectFit:"cover",width:"100%",height:"100%",display:"block"},children:[(0,d.jsx)("source",{src:"https://storage.googleapis.com/bith-prod-assets/assets/studio/text_to_video.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]})})}),(0,d.jsx)("rect",{x:"122.585",y:"20.9971",width:"108.773",height:"108.774",rx:"10.6321",fill:"url(#pattern0_17513_15400)"}),(0,d.jsx)("rect",{x:"105.276",y:"14.9126",width:"50.9474",height:"19.3398",rx:"3.27141",fill:"#CED3FB"}),(0,d.jsx)("path",{d:"M127.183 18.78V29.8574H124.485V23.2141L122.007 29.8574H119.83L117.337 23.1984V29.8574H114.638V18.78H117.826L120.934 26.449L124.011 18.78H127.183ZM137.566 22.3463C137.566 22.988 137.418 23.5771 137.124 24.1136C136.829 24.6396 136.377 25.0656 135.767 25.3918C135.157 25.7179 134.399 25.8809 133.495 25.8809H131.822V29.8574H129.124V18.78H133.495C134.378 18.78 135.125 18.9326 135.735 19.2376C136.345 19.5427 136.803 19.9635 137.108 20.5C137.413 21.0365 137.566 21.6519 137.566 22.3463ZM133.289 23.7349C133.805 23.7349 134.189 23.6139 134.441 23.3719C134.694 23.13 134.82 22.7881 134.82 22.3463C134.82 21.9044 134.694 21.5625 134.441 21.3206C134.189 21.0786 133.805 20.9576 133.289 20.9576H131.822V23.7349H133.289ZM138.765 27.8061V25.6284L143.752 18.496H146.766V25.4706H148.06V27.8061H146.766V29.8574H144.067V27.8061H138.765ZM144.257 21.4626L141.606 25.4706H144.257V21.4626Z",fill:"#303030"}),(0,d.jsx)(p.q.path,{d:o.d,opacity:o.opacity,fill:"#CED3FB"}),(0,d.jsx)("rect",{xmlns:"http://www.w3.org/2000/svg",x:"17.3501",y:"98.8779",width:"155.3",height:"25.2442",rx:"4.15412",fill:"#1A1A1A"}),(0,d.jsx)("rect",{xmlns:"http://www.w3.org/2000/svg",x:"17.4431",y:"98.9709",width:"155.114",height:"25.0583",rx:"4.06113",stroke:"url(#paint0_linear_17725_16490)","stroke-opacity":"0.5","stroke-width":"0.185964"}),(0,d.jsx)("path",{xmlns:"http://www.w3.org/2000/svg",d:"M33.4521 106.981L34.2188 107.742L33.4521 108.515L32.6908 107.742L33.4521 106.981ZM31.6337 106.981L32.4005 107.742L31.6337 108.515L30.8725 107.742L31.6337 106.981ZM35.0897 114.588C34.7318 114.588 34.427 114.532 34.175 114.419C33.9267 114.305 33.7259 114.143 33.5726 113.931C33.4229 113.716 33.3188 113.462 33.2604 113.17C33.0486 113.382 32.8186 113.544 32.5703 113.657C32.3257 113.77 32.05 113.827 31.7433 113.827C31.2212 113.827 30.783 113.687 30.4288 113.405C30.0747 113.124 29.8976 112.735 29.8976 112.239C29.8976 111.958 29.9542 111.697 30.0674 111.456C30.1806 111.215 30.354 110.99 30.5877 110.782C30.8213 110.574 31.1171 110.382 31.4749 110.207C31.8364 110.028 32.2636 109.862 32.7565 109.708L32.7182 109.446L33.5945 109.27L34.071 112.633C34.1148 112.954 34.2188 113.195 34.3831 113.356C34.5511 113.513 34.7939 113.592 35.1116 113.592H35.2813V114.588H35.0897ZM33.0413 111.834C33.0413 111.779 33.0395 111.726 33.0358 111.675C33.0322 111.624 33.0267 111.569 33.0194 111.51L32.8825 110.596C32.5283 110.724 32.2216 110.851 31.9624 110.979C31.7068 111.103 31.4968 111.229 31.3325 111.357C31.1682 111.481 31.0459 111.611 30.9656 111.746C30.8889 111.877 30.8506 112.018 30.8506 112.168C30.8506 112.409 30.9327 112.591 31.097 112.715C31.2613 112.839 31.484 112.902 31.7652 112.902C31.9806 112.902 32.1851 112.86 32.3786 112.776C32.5758 112.692 32.7346 112.569 32.8551 112.409C32.9792 112.248 33.0413 112.056 33.0413 111.834ZM35.0513 113.592H35.4895V114.588H35.0513V113.592ZM37.0285 115.459L37.7952 116.22L37.0285 116.993L36.2672 116.22L37.0285 115.459ZM35.2101 115.459L35.9769 116.22L35.2101 116.993L34.4489 116.22L35.2101 115.459ZM36.2508 114.588H35.358V113.592H36.2398C36.6049 113.592 36.8514 113.486 36.9792 113.274C37.1106 113.062 37.1763 112.794 37.1763 112.469C37.1763 112.231 37.1544 111.978 37.1106 111.708C37.0668 111.437 37.0193 111.165 36.9682 110.891L37.9212 110.651C37.9833 110.943 38.0326 111.229 38.0691 111.51C38.1056 111.792 38.1238 112.06 38.1238 112.315C38.1238 112.754 38.0636 113.144 37.9431 113.488C37.8226 113.831 37.6255 114.101 37.3516 114.298C37.0778 114.492 36.7108 114.588 36.2508 114.588ZM40.4515 113.603C40.9262 113.603 41.3187 113.562 41.629 113.482C41.9394 113.398 42.1713 113.276 42.3246 113.115C42.478 112.954 42.5546 112.754 42.5546 112.513C42.5546 112.283 42.478 112.045 42.3246 111.801C42.1713 111.556 41.9284 111.3 41.5962 111.034C41.2639 110.764 40.8276 110.481 40.2872 110.185L40.7199 109.32C41.1872 109.561 41.5944 109.807 41.9412 110.059C42.2917 110.311 42.5802 110.57 42.8066 110.837C43.0366 111.103 43.2082 111.375 43.3214 111.653C43.4346 111.927 43.4912 112.208 43.4912 112.496C43.4912 112.953 43.3871 113.336 43.179 113.646C42.9709 113.957 42.6496 114.19 42.2151 114.347C41.7806 114.501 41.2201 114.577 40.5337 114.577C40.2963 114.577 40.0645 114.566 39.8381 114.545C39.6154 114.523 39.4054 114.49 39.2083 114.446V113.455C39.4456 113.502 39.6665 113.539 39.871 113.564C40.0791 113.59 40.2726 113.603 40.4515 113.603ZM43.4145 117.535L43.0914 116.664C43.6865 116.536 44.1612 116.341 44.5154 116.078C44.8695 115.819 45.1251 115.507 45.2821 115.142C45.4428 114.776 45.5231 114.373 45.5231 113.931C45.5231 113.621 45.4884 113.296 45.419 112.956C45.3533 112.613 45.2602 112.264 45.1397 111.91L46.0489 111.603C46.1767 111.969 46.2734 112.334 46.3392 112.699C46.4085 113.064 46.4432 113.42 46.4432 113.767C46.4432 114.377 46.3355 114.941 46.1201 115.459C45.9
1083 115.981 45.5779 116.423 45.1288 116.785C44.6833 117.15 44.1119 117.4 43.4145 117.535ZM49.3898 110.585C49.6746 110.585 49.9393 110.649 50.1839 110.776C50.4286 110.904 50.644 111.096 50.8302 111.352C51.0164 111.603 51.1625 111.917 51.2683 112.294C51.3742 112.666 51.4308 113.099 51.4381 113.592H52.1008V114.588H51.3505C51.2702 115.008 51.1095 115.414 50.8685 115.804C50.6312 116.199 50.277 116.545 49.806 116.845C49.335 117.148 48.7106 117.374 47.9329 117.524L47.6098 116.653C48.1611 116.547 48.634 116.401 49.0283 116.215C49.4263 116.029 49.7458 115.801 49.9868 115.53C50.2314 115.26 50.3975 114.946 50.4852 114.588H49.6198C48.9261 114.588 48.4058 114.45 48.0589 114.172C47.7157 113.891 47.5441 113.469 47.5441 112.907C47.5441 112.637 47.5842 112.367 47.6646 112.096C47.7485 111.823 47.869 111.572 48.026 111.346C48.1867 111.116 48.3802 110.932 48.6066 110.793C48.8366 110.654 49.0977 110.585 49.3898 110.585ZM49.565 113.592H50.5344C50.5125 113.241 50.4724 112.938 50.414 112.682C50.3555 112.427 50.2789 112.217 50.1839 112.053C50.089 111.888 49.974 111.768 49.8389 111.691C49.7038 111.611 49.5486 111.571 49.3733 111.571C49.1397 111.571 48.9553 111.645 48.8202 111.795C48.6887 111.945 48.5956 112.122 48.5409 112.326C48.4897 112.527 48.4642 112.71 48.4642 112.874C48.4642 113.13 48.55 113.314 48.7216 113.427C48.8969 113.537 49.178 113.592 49.565 113.592ZM51.8872 113.592H52.3473C52.7854 113.592 53.0812 113.467 53.2345 113.219C53.3879 112.971 53.4646 112.661 53.4646 112.288V107.047H54.3902V112.283C54.3902 113.042 54.2259 113.617 53.8972 114.008C53.5686 114.395 53.0502 114.588 52.3418 114.588H51.8872V113.592ZM56.9917 107.047V114.583H56.0661V107.047H56.9917ZM65.9299 115.426L66.7241 116.22L65.9299 117.015L65.1358 116.22L65.9299 115.426ZM69.1449 111.352L70.0595 111.242L70.1526 112.524C70.1745 112.87 70.2731 113.135 70.4484 113.318C70.6273 113.5 70.8938 113.592 71.248 113.592H71.3794V114.588H71.248C70.8354 114.588 70.4958 114.512 70.2293 114.358C69.9664 114.201 69.7492 113.951 69.5775 113.608C69.2745 113.959 68.8856 114.21 68.411 114.364C67.94 114.514 67.2846 114.588 66.4448 114.588H65.5301C64.84 114.588 64.2358 114.545 63.7173 114.457C63.2025 114.369 62.7716 114.229 62.4247 114.035C62.0815 113.838 61.8223 113.581 61.647 113.263C61.4754 112.945 61.3896 112.556 61.3896 112.096C61.3896 111.844 61.417 111.598 61.4718 111.357C61.5302 111.116 61.605 110.884 61.6963 110.661L62.5452 110.979C62.4868 111.14 62.4375 111.311 62.3974 111.494C62.3608 111.677 62.3426 111.85 62.3426 112.014C62.3426 112.336 62.4101 112.598 62.5452 112.803C62.6803 113.007 62.8793 113.168 63.1422 113.285C63.4088 113.398 63.741 113.478 64.139 113.526C64.537 113.57 65.0007 113.592 65.5301 113.592H66.4448C67.0253 113.592 67.5201 113.553 67.929 113.477C68.3416 113.396 68.6556 113.265 68.871 113.082C69.0864 112.896 69.1942 112.642 69.1942 112.321C69.1942 112.171 69.1887 112.011 69.1777 111.839C69.1704 111.667 69.1595 111.505 69.1449 111.352ZM78.3077 111.549V112.496C78.1507 112.511 77.9663 112.551 77.7545 112.617C77.5427 112.679 77.3182 112.766 77.0809 112.88C77.0845 113.08 77.1502 113.232 77.278 113.334C77.4095 113.436 77.5975 113.506 77.8421 113.542C78.0868 113.575 78.3825 113.592 78.7294 113.592H79.0306V114.588H78.7075C78.2109 114.588 77.7983 114.546 77.4697 114.462C77.1411 114.378 76.8873 114.238 76.7084 114.041C76.5332 113.84 76.42 113.57 76.3689 113.23C75.8869 113.493 75.4159 113.727 74.9558 113.931C74.4994 114.136 74.0357 114.296 73.5647 114.413C73.0973 114.53 72.6026 114.588 72.0805 114.588H71.1658V113.592H72.0969C72.5241 113.592 72.9166 113.553 73.2744 113.477C73.6323 113.4 73.981 113.294 74.3205 113.159C74.6637 113.024 75.0216 112.865 75.394 112.682C75.7701 112.496 76.19 112.297 76.6537 112.085C76.3944 111.991 76.1261 111.888 75.8486 111.779C75.5711 111.666 75.3064 111.56 75.0544 111.461C74.8061 111.362 74.5889 111.282 74.4027 111.22C74.2165 111.154 74.085 111.122 74.0083 111.122C73.7856 111.122 73.5884 111.187 73.4168 111.319C73.2489 111.446 73.0937 111.602 72.9513 111.784L72.8034 111.97L71.9655 111.56L72.0476 111.428C72.2886 111.038 72.5679 110.725 72.8856 110.492C73.2069 110.254 73.583 110.136 74.0138 110.136C74.1964 110.136 74.4136 110.181 74.6656 110.273C74.9175 110.364 75.1932 110.479 75.4926 110.618C75.792 110.753 76.1023 110.891 76.4236 111.034C76.7449 111.173 77.0663 111.291 77.3876 111.39C77.7089 111.485 78.0156 111.538 78.3077 111.549ZM85.4988 114.588C85.1483 114.588 84.8653 114.515 84.6499 114.369C84.4345 114.223 84.2592 114.017 84.1241 113.75C83.9197 114.046 83.6914 114.26 83.4395 114.391C83.1912 114.523 82.921 114.588 82.6289 114.588C82.209 114.588 81.8841 114.517 81.654 114.375C81.4277 114.229 81.2469 114.021 81.1118 113.75C80.9402 114.021 80.7212 114.229 80.4546 114.375C80.1881 114.517 79.8083 114.588 79.3154 114.588H78.8116V113.592H79.3264
1C79.6404 113.592 79.896 113.555 80.0931 113.482C80.2903 113.405 80.4364 113.279 80.5313 113.104C80.6262 112.929 80.6737 112.688 80.6737 112.381C80.6737 112.315 80.6719 112.244 80.6682 112.168C80.6646 112.091 80.6591 112 80.6518 111.894C80.6445 111.784 80.6335 111.653 80.6189 111.499L81.5336 111.384L81.6212 112.529C81.6431 112.836 81.7362 113.09 81.9005 113.29C82.0685 113.491 82.3149 113.592 82.6399 113.592C83.0269 113.592 83.2898 113.488 83.4286 113.279C83.5673 113.071 83.6367 112.772 83.6367 112.381C83.6367 112.315 83.6349 112.244 83.6312 112.168C83.6276 112.091 83.6221 112 83.6148 111.894C83.6075 111.784 83.5965 111.653 83.5819 111.499L84.4965 111.384L84.5842 112.529C84.6024 112.825 84.6809 113.077 84.8197 113.285C84.9584 113.489 85.183 113.592 85.4933 113.592C85.6759 113.592 85.8256 113.546 85.9424 113.455C86.0629 113.36 86.1524 113.223 86.2108 113.044C86.2729 112.865 86.3039 112.644 86.3039 112.381C86.3039 112.25 86.2984 112.113 86.2875 111.97C86.2802 111.828 86.2674 111.64 86.2491 111.406L87.1638 111.297L87.2514 112.529C87.2733 112.88 87.3756 113.144 87.5581 113.323C87.7443 113.502 88.0036 113.592 88.3358 113.592H88.5001V114.588H88.3468C87.9634 114.588 87.6439 114.519 87.3883 114.38C87.1328 114.238 86.9575 114.026 86.8626 113.745C86.7092 114.015 86.5321 114.223 86.3313 114.369C86.1341 114.515 85.8566 114.588 85.4988 114.588ZM88.2865 113.592H88.7466C89.1848 113.592 89.4805 113.467 89.6339 113.219C89.7872 112.971 89.8639 112.661 89.8639 112.288V107.047H90.7895V112.283C90.7895 113.042 90.6252 113.617 90.2966 114.008C89.9679 114.395 89.4495 114.588 88.7411 114.588H88.2865V113.592ZM93.391 107.047V114.583H92.4654V107.047H93.391ZM101.541 114.588C101.289 114.588 101.077 114.556 100.905 114.49C100.737 114.42 100.606 114.347 100.511 114.271C100.456 114.749 100.323 115.211 100.111 115.656C99.903 116.105 99.589 116.496 99.1691 116.828C98.7492 117.161 98.1942 117.394 97.5041 117.529L97.181 116.664C97.7761 116.536 98.2508 116.341 98.605 116.078C98.9591 115.819 99.2147 115.507 99.3717 115.142C99.5324 114.776 99.6127 114.373 99.6127 113.931C99.6127 113.621 99.578 113.296 99.5087 112.956C99.4429 112.613 99.3498 112.264 99.2293 111.91L100.139 111.603L100.434 112.748C100.515 113.055 100.642 113.272 100.818 113.4C100.993 113.528 101.214 113.592 101.48 113.592H101.688V114.588H101.541ZM101.469 113.592H101.732V114.588H101.469V113.592ZM102.598 115.426L103.392 116.22L102.598 117.015L101.803 116.22L102.598 115.426ZM103.353 111.352L104.268 111.242L104.356 112.524C104.37 112.757 104.421 112.954 104.509 113.115C104.597 113.272 104.719 113.391 104.876 113.471C105.037 113.551 105.234 113.592 105.468 113.592H105.583V114.588H105.457C105.186 114.588 104.953 114.556 104.756 114.49C104.558 114.424 104.39 114.329 104.252 114.205C104.113 114.081 103.994 113.929 103.896 113.75C103.698 114.039 103.439 114.251 103.118 114.386C102.797 114.521 102.461 114.588 102.11 114.588H101.584V113.592H102.11C102.574 113.592 102.904 113.488 103.101 113.279C103.302 113.071 103.403 112.752 103.403 112.321C103.403 112.146 103.397 111.98 103.386 111.823C103.379 111.666 103.368 111.509 103.353 111.352ZM107.045 113.592C106.935 113.453 106.835 113.294 106.744 113.115C106.656 112.936 106.585 112.746 106.53 112.546C106.479 112.341 106.453 112.14 106.453 111.943C106.453 111.552 106.556 111.198 106.76 110.881C106.965 110.563 107.233 110.311 107.565 110.125C107.897 109.939 108.255 109.845 108.639 109.845C108.927 109.845 109.226 109.902 109.537 110.015C109.851 110.128 110.174 110.298 110.506 110.525L110.139 111.341C109.862 111.176 109.603 111.052 109.362 110.968C109.121 110.881 108.9 110.837 108.699 110.837C108.476 110.837 108.266 110.884 108.069 110.979C107.876 111.074 107.719 111.207 107.598 111.379C107.478 111.547 107.417 111.748 107.417 111.981C107.417 112.252 107.478 112.491 107.598 112.699C107.722 112.907 107.854 113.069 107.992 113.186C108.131 113.299 108.224 113.356 108.272 113.356C108.297 113.356 108.326 113.354 108.359 113.351C108.392 113.347 108.427 113.34 108.463 113.329L110.78 112.776V113.772C110.327 113.911 109.891 114.032 109.471 114.134C109.055 114.236 108.65 114.322 108.255 114.39
11C107.865 114.457 107.479 114.506 107.1 114.539C106.72 114.572 106.34 114.588 105.96 114.588H105.363V113.592H107.045ZM118.628 114.588C118.376 114.588 118.165 114.556 117.993 114.49C117.825 114.42 117.694 114.347 117.599 114.271C117.544 114.749 117.411 115.211 117.199 115.656C116.991 116.105 116.677 116.496 116.257 116.828C115.837 117.161 115.282 117.394 114.592 117.529L114.269 116.664C114.864 116.536 115.339 116.341 115.693 116.078C116.047 115.819 116.303 115.507 116.46 115.142C116.62 114.776 116.701 114.373 116.701 113.931C116.701 113.621 116.666 113.296 116.597 112.956C116.531 112.613 116.438 112.264 116.317 111.91L117.226 111.603L117.522 112.748C117.602 113.055 117.73 113.272 117.905 113.4C118.081 113.528 118.302 113.592 118.568 113.592H118.776V114.588H118.628ZM118.563 113.592H119.39V114.588H118.563V113.592ZM120.912 115.459L121.679 116.22L120.912 116.993L120.151 116.22L120.912 115.459ZM119.094 115.459L119.861 116.22L119.094 116.993L118.333 116.22L119.094 115.459ZM121.011 111.352L121.926 111.242L122.013 112.524C122.028 112.757 122.079 112.954 122.166 113.115C122.254 113.272 122.376 113.391 122.533 113.471C122.694 113.551 122.891 113.592 123.125 113.592H123.24V114.588H123.114C122.844 114.588 122.61 114.556 122.413 114.49C122.216 114.424 122.048 114.329 121.909 114.205C121.77 114.081 121.652 113.929 121.553 113.75C121.356 114.039 121.097 114.251 120.775 114.386C120.454 114.521 120.118 114.588 119.768 114.588H119.242V113.592H119.768C120.231 113.592 120.562 113.488 120.759 113.279C120.96 113.071 121.06 112.752 121.06 112.321C121.06 112.146 121.055 111.98 121.044 111.823C121.036 111.666 121.025 111.509 121.011 111.352ZM127.797 111.171C127.581 111.171 127.359 111.222 127.129 111.324C126.902 111.423 126.668 111.574 126.428 111.779C126.19 111.98 125.947 112.231 125.699 112.535C125.454 112.838 125.204 113.19 124.949 113.592H125.836C126.358 113.592 126.813 113.566 127.2 113.515C127.587 113.464 127.908 113.385 128.164 113.279C128.419 113.174 128.611 113.038 128.739 112.874C128.867 112.71 128.93 112.514 128.93 112.288C128.93 111.967 128.826 111.7 128.618 111.488C128.41 111.277 128.136 111.171 127.797 111.171ZM127.775 110.174C128.187 110.174 128.553 110.265 128.87 110.448C129.191 110.627 129.443 110.871 129.626 111.182C129.809 111.492 129.9 111.843 129.9 112.233C129.896 112.471 129.858 112.693 129.785 112.902C129.715 113.11 129.611 113.305 129.473 113.488C129.542 113.506 129.624 113.524 129.719 113.542C129.818 113.557 129.94 113.57 130.086 113.581C130.236 113.588 130.422 113.592 130.645 113.592H130.809V114.588H130.65C130.186 114.588 129.803 114.541 129.5 114.446C129.201 114.351 128.949 114.22 128.744 114.052C128.445 114.22 128.05 114.351 127.561 114.446C127.072 114.541 126.504 114.588 125.858 114.588H123.021V113.592H123.952C124.021 113.475 124.094 113.36 124.171 113.247C124.248 113.13 124.321 113.015 124.39 112.902V107.047H125.316V111.598C125.513 111.361 125.71 111.154 125.907 110.979C126.104 110.8 126.303 110.652 126.504 110.535C126.709 110.415 126.915 110.326 127.123 110.267C127.335 110.205 127.552 110.174 127.775 110.174ZM130.59 113.592H130.979V114.588H130.59V113.592ZM133 108.159L133.767 108.92L133 109.692L132.238 108.92L133 108.159ZM131.181 108.159L131.948 108.92L131.181 109.692L130.42 108.92L131.181 108.159ZM131.724 114.588H130.831V113.592H131.713C132.078 113.592 132.324 113.486 132.452 113.274C132.584 113.062 132.649 112.794 132.649 112.469C132.649 112.231 132.627 111.978 132.584 111.708C132.54 111.437 132.492 111.165 132.441 110.891L133.394 110.651C133.456 110.943 133.505 111.229 133.542 111.51C133.578 111.792 133.597 112.06 133.597 112.315C133.597 112.754 133.536 113.144 133.416 113.488C133.296 113.831 133.098 114.101 132.824 114.298C132.551 114.492 132.184 114.588 131.724 114.588ZM140.903 112.704C140.903 112.536 140.841 112.365 140.717 112.19C140.596 112.011 140.443 111.834 140.257 111.658C140.074 111.479 139.888 111.308 139.698 111.143C139.475 111.355 139.284 111.552 139.123 111.735C138.962 111.917 138.838 112.095 138.75 112.266C138.666 112.438 138.625 112.617 138.625 112.803C138.625 113.015 138.714 113.199 138.893 113.356C139.072 113.513 139.36 113.592 139.758 113.592C140.16 113.592 140.45 113.519 140.629 113.373C140.812 113.226 140.903 113.004 140.903 112.704ZM139.019 110.535L138.805 110.344L139.386 109.593C139.747 109.893 140.076 110.176 140.372 110.442C140.671 110.709 140.93 110.968 141.149 111.22C141.368 111.472 141.536 111.724 141.653 111.976C141.774 112.224 141.834 112.482 141.834 112.748C141.834 113.121 141.748 113.444 141.577 113.718C141.405 113.988 141.164 114.198 140.854 114.347C140.543 114.493 140.18 114.566 139.764 114.566C139.128 114.566 138.625 114.411 138.252 114.101C137.88 113.787 137.693 113.389 137.693 112.907C137.693 112.483 137.807 112.089 138.033 111.724C138.259 111.355 138.588 110.959 139.019 110.535ZM140.525 107.386L141.292 108.148L140.525 108.92L139.764 108.148L140.525 107.386ZM138.707 107.386L139.473 108.148L138.707 108.92L137.945 108.148L138.707 107.386ZM141.757 117.535L141.434 116.664C142.029 116.536 142.504 116.341 142.858 116.078C143.212 115.819 143.468 115.507 143.625 115.142C143.786 114.776 143.866 114.373 143.866 113.931C143.866 113.621 143.831 113.296 143.762 112.956C143.696 112.613 143.603 112.264 143.482 111.91L144.392 111.603C144.519 111.969 144.616 112.334 144.682 112.699C144.751 113.064 144.786 113.42 144.786 113.767C144.786 114.377 144.678 114.941 144.463 115.459C144.251 115.981 143.921 116.423 143.472 116.785C143.026 117.15 142.455 117.4 141.757 117.535ZM146.183 107.047H147.108V112.283C147.108 112.797 147.203 113.144 147.393 113.323C147.583 113.502 147.869 113.592 148.253 113.592H148.39V114.588H148.253C147.555 114.588 147.035 114.404 146.692 114.035C146.352 113.663 146.183 113.077 146.183 112.277V107.047ZM148.16 113.592H148.598V114.588H148.16V113.592ZM150.137 115.459L150.904 116.22L150.137 116.993L149.376 116.22L150.137 115.459ZM148.319 115.459L149.085 116.22L148.319 116.993L147.557 116.22L148.319 115.459ZM150.23 111.352L151.145 111.242L151.232 112.524C151.247 112.757 151.298 112.954 151.386 113.115C151.473 113.272 151.596 113.391 151.753 113.471C151.913 113.551 152.11 113.592 152.344 113.592H152.459V114.588H152.333C152.063 114.588 151.829 114.556 151.632 114.49C151.435 114.424 151.267 114.329 151.128 114.205C150.989 114.081 150.871 113.929 150.772 113.75C150.575 114.039 150.316 114.251 149.994 114.386C149.673 114.521 149.337 114.588 148.987 114.588H148.461V113.592H148.987C149.45 113.592 149.781 113.488 149.978 113.279C150.179 113.071 150.279 112.752 150.279 112.321C150.279 112.146 150.274 111.98 150.263 111.823C150.256 111.666 150.245 111.509 150.23 111.352ZM156.063 114.588C155.643 114.588 155.318 114.517 155.088 114.375C154.862 114.229 154.681 114.021 154.546 113.75C154.374 114.021 154.155 114.229 153.889 114.375C153.622 114.517 153.242 114.588 152.749 114.588H152.245V113.592H152.76C153.074 113.592 153.33 113.555 153.527 113.482C153.724 113.405 153.87 113.279 153.965 113.104C154.06 112.929 154.108 112.688 154.108 112.381C154.108 112.315 154.106 112.244 154.102 112.168C154.099 112.091 154.093 112 154.086 111.894C154.078 111.784 154.067 111.653 154.053 111.499L154.968 111.384L155.055 112.529C155.077 112.836 155.17 113.09 155.334 113.29C155.502 113.491 155.749 113.592 156.074 113.592C156.461 113.592 156.724 113.488 156.863 
1113.279C157.001 113.071 157.071 112.772 157.071 112.381C157.071 112.315 157.069 112.244 157.065 112.168C157.061 112.091 157.056 112 157.049 111.894C157.041 111.784 157.03 111.653 157.016 111.499L157.93 111.384L158.018 112.529C158.036 112.825 158.115 113.077 158.254 113.285C158.392 113.489 158.617 113.592 158.927 113.592C159.128 113.592 159.285 113.54 159.398 113.438C159.515 113.332 159.597 113.194 159.645 113.022C159.696 112.847 159.721 112.659 159.721 112.458C159.721 112.275 159.709 112.091 159.683 111.905C159.658 111.718 159.628 111.543 159.595 111.379C159.563 111.211 159.532 111.07 159.502 110.957L160.439 110.705C160.505 110.95 160.558 111.211 160.598 111.488C160.638 111.762 160.658 112.036 160.658 112.31C160.658 112.704 160.603 113.075 160.494 113.422C160.384 113.769 160.203 114.05 159.951 114.265C159.703 114.477 159.364 114.585 158.933 114.588C158.582 114.588 158.299 114.515 158.084 114.369C157.868 114.223 157.693 114.017 157.558 113.75C157.354 114.046 157.125 114.26 156.873 114.391C156.625 114.523 156.355 114.588 156.063 114.588Z",fill:"white"})]}),(0,d.jsxs)("defs",{children:[(0,d.jsx)("pattern",{id:"pattern0_17513_15400",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,d.jsx)("use",{xlinkHref:"#image0_17513_15400",transform:"translate(-0.628601) scale(0.000612755)"})}),(0,d.jsxs)("linearGradient",{id:"paint0_linear_17513_15400",x1:"18.6799",y1:"103.339",x2:"174.081",y2:"124.007",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{"stop-color":"#FDFDFD"}),(0,d.jsx)("stop",{offset:"1","stop-color":"#313131"})]}),(0,d.jsx)("clipPath",{id:"clip0_17513_15400",children:(0,d.jsx)("rect",{width:"276.007",height:"151.971",fill:"white",transform:"translate(0.779785)"})})]})]})},f=e=>{let{animate:t,className:i}=e,o=(0,p.q_)({d:t||c.tq?"M117.109 75.9665C117.817 74.6263 116.183 74.4967 115.283 74.2672C113.841 73.929 112.38 73.6749 110.941 73.3143C109.641 73.087 101.974 70.6823 101.578 71.8793C101.513 72.1487 101.756 72.4149 102.027 72.3924C104.038 72.882 105.968 73.6367 107.923 74.3107C96.4538 75.2197 88.0637 79.9074 80.7999 88.7314C80.7808 88.7556 80.7618 88.7799 80.7427 88.8041C80.7427 88.8041 80.7462 88.7997 80.7479 88.7975C80.6591 88.9059 80.5703 89.0144 80.4793 89.1211C80.4741 89.1277 80.4706 89.1321 80.4654 89.1387C80.4654 89.1387 80.4672 89.1365 80.4689 89.1343C80.4447 89.1652 80.4204 89.196 80.3979 89.2246C78.908 90.9161 77.784 92.863 76.8768 94.9197C76.6563 95.495 75.8761 96.6962 76.3286 97.2408C76.6479 96.5579 77.0425 95.9198 77.4432 95.283C77.438 95.2896 77.4346 95.294 77.4294 95.3006C81.2495 89.2524 86.8571 84.2134 93.1487 80.835C99.0324 78.1342 105.469 76.3032 111.981 76.4092C110.59 76.9771 109.183 77.5109 107.805 78.1071C107.107 78.4562 105.912 78.9108 106.321 79.8995C106.665 80.6368 107.41 80.5017 108.027 80.2241C108.78 79.9642 109.499 79.5987 110.223 79.2664C111.988 78.4682 113.739 77.6416 115.504 76.8434C116.037 76.564 116.701 76.4366 117.108 75.9687L117.109 75.9665Z":"M87.6547 82.3017C87.4171 80.8048 86.0318 81.6813 85.1742 82.0372C83.8177 82.6312 82.4959 83.3044 81.1286 83.8785C79.9515 84.4766 72.3742 87.1507 72.7757 88.3457C72.8848 88.6005 73.2392 88.6676 73.4424 88.4872C75.345 87.6731 77.3425 87.1191 79.311 86.4859C70.6784 94.0921 66.7761 102.875 66.2558 114.292C66.2551 114.323 66.2544 114.354 66.2537 114.385C66.2537 114.385 66.2538 114.379 66.2539 114.376C66.2479 114.516 66.2418 114.656 66.233 114.796C66.2328 114.805 66.2327 114.81 66.2325 114.819C66.2325 114.819 66.2326 114.816 66.2326 114.813C66.2317 114.852 66.2308 114.892 66.23 114.928C66.0522 117.175 66.3205 119.407 66.828 121.597C66.9966 122.19 67.0927 123.619 67.7814 123.783C67.6273 123.045 67.5604 122.298 67.4991 121.548C67.4989 121.556 67.4988 121.562 67.4986 121.57C66.928 114.44 68.3932 107.044 71.4015 100.568C74.4898 94.8777 78.5425 89.552 83.8165 85.7317C83.044 87.0203 82.2383 88.2913 81.4935 89.5946C81.1438 90.293 80.4602 91.3734 81.3812 91.9188C82.0984 92.3025 82.613 91.748 82.9406 91.1556C83.3874 90.4959 83.7433 89.7724 84.1238 89.0719C85.0571 87.3749 85.9627 85.6632 86.8959 83.9662C87.1551 83.4227 87.6095 82.923 87.6546 82.3045L87.6547 82.3017Z",opacity:t||c.tq?"100%":"
10%"}),n=(0,u.useRef)(null);return(0,u.useEffect)(()=>{n.current&&(t||c.tq?n.current&&n.current.paused&&n.current.play().catch(e=>console.error("Video playback error:",e)):n.current.pause())},[t]),(0,d.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"277",height:"152",viewBox:"0 0 277 152",fill:"none",children:[(0,d.jsxs)("g",{"clip-path":"url(#clip0_17513_15400)",children:[(0,d.jsx)("foreignObject",{id:"image0_17513_15400",width:"108.77",height:"108.77",preserveAspectRatio:"none",x:c.tq?"180":"122",y:c.tq?"12":"22",children:(0,d.jsx)("div",{style:{width:"100%",height:"100%",borderRadius:"11.39px",overflow:"hidden",position:"relative",background:"black"},children:(0,d.jsxs)("video",{ref:n,width:"100%",height:"100%",playsInline:!0,muted:!0,loop:!0,autoPlay:c.tq,style:{objectFit:"cover",width:"100%",height:"100%",display:"block"},children:[(0,d.jsx)("source",{src:"https://storage.googleapis.com/bith-prod-assets/assets/studio/text_to_video.mp4",type:"video/mp4"}),"Your browser does not support the video tag."]})})}),(0,d.jsx)("rect",{x:"122.585",y:"20.9971",width:"108.773",height:"108.774",rx:"10.6321",fill:"url(#pattern0_17513_15400)"}),(0,d.jsx)("rect",{x:"105.276",y:"14.9126",width:"50.9474",height:"19.3398",rx:"3.27141",fill:"#CED3FB"}),(0,d.jsx)("path",{d:"M127.183 18.78V29.8574H124.485V23.2141L122.007 29.8574H119.83L117.337 23.1984V29.8574H114.638V18.78H117.826L120.934 26.449L124.011 18.78H127.183ZM137.566 22.3463C137.566 22.988 137.418 23.5771 137.124 24.1136C136.829 24.6396 136.377 25.0656 135.767 25.3918C135.157 25.7179 134.399 25.8809 133.495 25.8809H131.822V29.8574H129.124V18.78H133.495C134.378 18.78 135.125 18.9326 135.735 19.2376C136.345 19.5427 136.803 19.9635 137.108 20.5C137.413 21.0365 137.566 21.6519 137.566 22.3463ZM133.289 23.7349C133.805 23.7349 134.189 23.6139 134.441 23.3719C134.694 23.13 134.82 22.7881 134.82 22.3463C134.82 21.9044 134.694 21.5625 134.441 21.3206C134.189 21.0786 133.805 20.9576 133.289 20.9576H131.822V23.7349H133.289ZM138.765 27.8061V25.6284L143.752 18.496H146.766V25.4706H148.06V27.8061H146.766V29.8574H144.067V27.8061H138.765ZM144.257 21.4626L141.606 25.4706H144.257V21.4626Z",fill:"#303030"}),(0,d.jsx)(p.q.path,{d:o.d,opacity:o.opacity,fill:"#CED3FB"}),(0,d.jsx)("rect",{x:"18.6799",y:"103.339",width:"155.297",height:"20.7062",rx:"3.40103",fill:"#1A1A1A"}),(0,d.jsx)("rect",{x:"18.8107",y:"103.47",width:"155.035",height:"20.4446",rx:"3.27022",stroke:"url(#paint0_linear_17513_15400)","stroke-opacity":"0.5","stroke-width":"0.261618"}),(0,d.jsx)("path",{d:"M28.336 113.29C28.336 112.665 28.4768 112.105 28.7584 111.609C29.0401 111.107 29.4227 110.715 29.9063 110.434C30.3961 110.152 30.9379 110.011 31.5318 110.011C32.2297 110.011 32.8388 110.18 33.3592 110.516C33.8796 110.853 34.2592 111.331 34.498 111.949H33.497C33.3194 111.563 33.0623 111.266 32.7256 111.058C32.395 110.85 31.9971 110.746 31.5318 110.746C31.0849 110.746 30.6839 110.85 30.3288 111.058C29.9737 111.266 29.6951 111.563 29.4931 111.949C29.2911 112.329 29.19 112.775 29.19 113.29C29.19 113.798 29.2911 114.245 29.4931 114.63C29.6951 115.01 29.9737 115.304 30.3288 115.512C30.6839 115.72 31.0849 115.824 31.5318 115.824C31.9971 115.824 32.395 115.723 32.7256 115.521C33.0623 115.313 33.3194 115.016 33.497 114.63H34.498C34.2592 115.243 33.8796 115.717 33.3592 116.054C32.8388 116.384 32.2297 116.55 31.5318 116.55C30.9379 116.55 30.3961 116.412 29.9063 116.136C29.4227 115.855 29.0401 115.466 28.7584 114.97C28.4768 114.474 28.336 113.914 28.336 113.29ZM35.4297 113.96C35.4297 113.446 35.5338 112.996 35.7419 112.61C35.9501 112.218 36.2348 111.915 36.596 111.701C36.9633 111.487 37.3704 111.38 37.8173 111.38C38.2581 111.38 38.6408 111.474 38.9652 111.664C39.2897 111.854 39.5315 112.093 39.6907 112.381V111.462H40.5356V116.495H39.6907V115.558C39.5254 115.852 39.2775 116.097 38.9469 116.293C38.6224 116.482 38.2428 116.577 37.8081 116.577C37.3612 116.577 36.9572 116.467 36.596 116.247C36.2348 116.026 35.9501 115.717 35.7419 115.319C35.5338 114.921 35.4297 114.468 35.4297 113.96ZM39.6907 113.969C39.6907 113.59 39.6142 113.259 39.4611 112.977C39.3081 112.696 39.0999 112.482 38.8367 112.335C38.5795 112.182 38.2949 112.105 37.9826 112.105C37.6704 112.105 37.3857 112.179 37.1286 112.325C36.8715 112.472 36.6664 112.687 36.5133 112.968C36.3603 113.25 36.2837 113.58 36.2837 113.96C36.2837 114.346 36.3603 114.682 36.5133 114.97C36.6664 115.252 36.8715 115.469 37.1286 115.622C37.3857 115.769 37.6704 115.843 37.9826 115.843C38.2949 115.843 38.5795 115.769 38.8367 115.622C39.0999 115.469 39.3081 115.252 39.4611 114.97C39.6142 114.682 39.6907 114.349 39.6907 113.969ZM42.7834 112.28C42.9304 111.992 43.1385 111.768 43.4079 111.609C43.6834 111.45 44.0171 111.37 44.4089 111.37V112.234H44.1885C43.2518 112.234 42.7834 112.742 42.7834 113.758V116.495H41.9478V111.462H42.7834V112.28ZM49.8697 112.151H48.8
1136V116.495H47.9779V112.151H47.3259V111.462H47.9779V111.104C47.9779 110.541 48.1218 110.131 48.4095 109.874C48.7034 109.61 49.1717 109.479 49.8146 109.479V110.177C49.4472 110.177 49.187 110.25 49.034 110.397C48.8871 110.538 48.8136 110.773 48.8136 111.104V111.462H49.8697V112.151ZM51.6797 109.699V116.495H50.844V109.699H51.6797ZM57.4384 111.462L54.408 118.864H53.5447L54.5365 116.44L52.507 111.462H53.4345L55.0141 115.54L56.5752 111.462H57.4384ZM58.7101 110.645C58.5509 110.645 58.4162 110.59 58.306 110.48C58.1958 110.369 58.1407 110.235 58.1407 110.076C58.1407 109.916 58.1958 109.782 58.306 109.671C58.4162 109.561 58.5509 109.506 58.7101 109.506C58.8631 109.506 58.9917 109.561 59.0958 109.671C59.206 109.782 59.2611 109.916 59.2611 110.076C59.2611 110.235 59.206 110.369 59.0958 110.48C58.9917 110.59 58.8631 110.645 58.7101 110.645ZM59.1142 111.462V116.495H58.2785V111.462H59.1142ZM62.9903 111.37C63.6025 111.37 64.0984 111.557 64.478 111.931C64.8576 112.298 65.0474 112.831 65.0474 113.528V116.495H64.2209V113.648C64.2209 113.146 64.0954 112.763 63.8444 112.5C63.5934 112.231 63.2505 112.096 62.8159 112.096C62.3751 112.096 62.023 112.234 61.7598 112.509C61.5027 112.785 61.3741 113.186 61.3741 113.712V116.495H60.5384V111.462H61.3741V112.179C61.5394 111.921 61.7628 111.722 62.0445 111.582C62.3322 111.441 62.6475 111.37 62.9903 111.37ZM68.4879 111.38C68.9225 111.38 69.3021 111.474 69.6266 111.664C69.9572 111.854 70.2021 112.093 70.3612 112.381V111.462H71.2061V116.605C71.2061 117.064 71.1081 117.471 70.9122 117.826C70.7163 118.187 70.4347 118.469 70.0674 118.671C69.7062 118.873 69.2837 118.974 68.8001 118.974C68.1389 118.974 67.5879 118.818 67.1471 118.506C66.7063 118.194 66.4461 117.768 66.3665 117.229H67.193C67.2849 117.535 67.4746 117.78 67.7624 117.964C68.0501 118.154 68.396 118.249 68.8001 118.249C69.2592 118.249 69.6327 118.105 69.9204 117.817C70.2143 117.529 70.3612 117.125 70.3612 116.605V115.549C70.1959 115.843 69.951 116.088 69.6266 116.283C69.3021 116.479 68.9225 116.577 68.4879 116.577C68.0409 116.577 67.6338 116.467 67.2665 116.247C66.9053 116.026 66.6206 115.717 66.4124 115.319C66.2043 114.921 66.1002 114.468 66.1002 113.96C66.1002 113.446 66.2043 112.996 66.4124 112.61C66.6206 112.218 66.9053 111.915 67.2665 111.701C67.6338 111.487 68.0409 111.38 68.4879 111.38ZM70.3612 113.969C70.3612 113.59 70.2847 113.259 70.1317 112.977C69.9786 112.696 69.7704 112.482 69.5072 112.335C69.2501 112.182 68.9654 112.105 68.6532 112.105C68.3409 112.105 68.0562 112.179 67.7991 112.325C67.542 112.472 67.3369 112.687 67.1838 112.968C67.0308 113.25 66.9543 113.58 66.9543 113.96C66.9543 114.346 67.0308 114.682 67.1838 114.97C67.3369 115.252 67.542 115.469 67.7991 115.622C68.0562 115.769 68.3409 115.843 68.6532 115.843C68.9654 115.843 69.2501 115.769 69.5072 115.622C69.7704 115.469 69.9786 115.252 70.1317 114.97C70.2847 114.682 70.3612 114.349 70.3612 113.969ZM76.0859 112.151V115.117C76.0859 115.362 76.1379 115.537 76.242 115.641C76.3461 115.739 76.5267 115.788 76.7838 115.788H77.3991V116.495H76.6461C76.1808 116.495 75.8318 116.387 75.5992 116.173C75.3665 115.959 75.2502 115.607 75.2502 115.117V112.151H74.5982V111.462H75.2502V110.195H76.0859V111.462H77.3991V112.151H76.0859ZM80.9095 111.37C81.289 111.37 81.6319 111.453 81.938 111.618C82.2441 111.778 82.4828 112.019 82.6543 112.344C82.8318 112.668 82.9206 113.063 82.9206 113.528V116.495H82.0941V113.648C82.0941 113.146 81.9686 112.763 81.7176 112.5C81.4666 112.231 81.1237 112.096 80.6891 112.096C80.2483 112.096 79.8962 112.234 79.633 112.509C79.3759 112.785 79.2473 113.186 79.2473 113.712V116.495H78.4116V109.699H79.2473V112.179C79.4126 111.921 79.6391 111.722 79.9268 111.582C80.2207 111.441 80.5482 111.37 80.9095 111.37ZM85.1213 112.28C85.2683 111.992 85.4764 111.768 85.7458 111.609C86.0213 111.45 86.3549 111.37 86.7468 111.37V112.234H86.5264C85.5897 112.234 85.1213 112.742 85.1213 113.758V116.495H84.2856V111.462H85.1213V112.28ZM89.9062 116.577C89.4348 116.577 89.0063 116.47 88.6206 116.256C88.241 116.042 87.941 115.739 87.7206 115.347C87.5063 114.949 87.3992 114.49 87.3992 113.969C87.3992 113.455 87.5094 113.002 87.7298 112.61C87.9563 112.212 88.2624 111.909 88.6481 111.701C89.0338 111.487 89.4654 111.38 89.9429 111.38C90.4205 111.38 90.8521 111.487 91.2378 111.701C91.6235 111.909 91.9265 112.209 92.1469 112.601C92.3734 112.993 92.4867 113.449 92.4867 113.969C92.4867 114.49 92.3704 114.949 92.1377 115.347C91.9112 115.739 91.602 116.042 91.2102 116.256C90.8184 116.47 90.3837 116.577 89.9062 116.577ZM89.9062 115.843C90.2062 115.843 90.4878 115.772 90.7511 115.631C91.0143 115.491 91.2255 115.279 91.3847 114.998C91.55 114.716 91.6327 114.373 91.6327 113.969C91.6327 113.565 91.5531 113.222 91.3939 112.941C91.2347 112.659 91.0266 112.451 90.7694 112.316C90.5123 112.175 90.2337 112.105 89.9338 112.105C89.6277 112.105 89.346 112.175 89.0889 112.316C88.8379 112.451 88.6359 112.659 88.4828 112.941C88.3298 113.222 88.2532 113.565 88.2532 113.969C88.2532 114.379 88.3267 114.725 88.4736 115.007C88.6267 115.289 88.8287 115.5 89.0797 115.641C89.3307 115.775 89.6062 115.843 89.9062 115.843ZM98.0485 111.462V116.495H97.2128V115.751C97.0537 116.008 96.8302 116.21 96.5425 116.357C96.2608 116.498 95.9486 116.568 95.6058 116.568C95.2139 116.568 94.8619 116.489 94.5497 116.329C94.2375 116.164 93.9895 115.919 93.8059 115.595C93.6283 115.27 93.5395 114.875 93.5395 114.41V111.462H94.366V114.3C94.366 114.796 94.4915 115.178 94.7425 115.448C94.9936 115.711 95.3364 115.843 95.7711 115.843C96.218 115.843 96.57 115.705 96.8271 115.429C97.0843 115.154 97.2128 114.753 97.2128 114.226V111.462H98.0485ZM101.535 111.38C101.97 111.38 102.349 111.474 102.674 111.664C103.004 111.854 103.249 112.093 103.408 112.381V111.462H104.253V116.605C104.253 117.064 104.155 117.471 103.959 117.826C103.763 118.187 103.482 118.469 103.114 118.671C102.753 118.873 102.331 118.974 101.847 118.974C101.186 118.974 100.635 118.818 100.194 118.506C99.7534 
1118.194 99.4932 117.768 99.4136 117.229H100.24C100.332 117.535 100.522 117.78 100.809 117.964C101.097 118.154 101.443 118.249 101.847 118.249C102.306 118.249 102.68 118.105 102.967 117.817C103.261 117.529 103.408 117.125 103.408 116.605V115.549C103.243 115.843 102.998 116.088 102.674 116.283C102.349 116.479 101.97 116.577 101.535 116.577C101.088 116.577 100.681 116.467 100.314 116.247C99.9523 116.026 99.6676 115.717 99.4595 115.319C99.2513 114.921 99.1473 114.468 99.1473 113.96C99.1473 113.446 99.2513 112.996 99.4595 112.61C99.6676 112.218 99.9523 111.915 100.314 111.701C100.681 111.487 101.088 111.38 101.535 111.38ZM103.408 113.969C103.408 113.59 103.332 113.259 103.179 112.977C103.026 112.696 102.817 112.482 102.554 112.335C102.297 112.182 102.012 112.105 101.7 112.105C101.388 112.105 101.103 112.179 100.846 112.325C100.589 112.472 100.384 112.687 100.231 112.968C100.078 113.25 100.001 113.58 100.001 113.96C100.001 114.346 100.078 114.682 100.231 114.97C100.384 115.252 100.589 115.469 100.846 115.622C101.103 115.769 101.388 115.843 101.7 115.843C102.012 115.843 102.297 115.769 102.554 115.622C102.817 115.469 103.026 115.252 103.179 114.97C103.332 114.682 103.408 114.349 103.408 113.969ZM108.163 111.37C108.543 111.37 108.886 111.453 109.192 111.618C109.498 111.778 109.737 112.019 109.908 112.344C110.086 112.668 110.174 113.063 110.174 113.528V116.495H109.348V113.648C109.348 113.146 109.222 112.763 108.971 112.5C108.72 112.231 108.377 112.096 107.943 112.096C107.502 112.096 107.15 112.234 106.887 112.509C106.63 112.785 106.501 113.186 106.501 113.712V116.495H105.665V109.699H106.501V112.179C106.666 111.921 106.893 111.722 107.181 111.582C107.474 111.441 107.802 111.37 108.163 111.37ZM114.823 112.39C114.989 112.102 115.233 111.863 115.558 111.673C115.889 111.478 116.271 111.38 116.706 111.38C117.153 111.38 117.557 111.487 117.918 111.701C118.285 111.915 118.573 112.218 118.781 112.61C118.989 112.996 119.094 113.446 119.094 113.96C119.094 114.468 118.989 114.921 118.781 115.319C118.573 115.717 118.285 116.026 117.918 116.247C117.557 116.467 117.153 116.577 116.706 116.577C116.277 116.577 115.898 116.482 115.567 116.293C115.243 116.097 114.995 115.855 114.823 115.567V118.882H113.988V111.462H114.823V112.39ZM118.239 113.96C118.239 113.58 118.163 113.25 118.01 112.968C117.857 112.687 117.649 112.472 117.385 112.325C117.128 112.179 116.844 112.105 116.531 112.105C116.225 112.105 115.941 112.182 115.677 112.335C115.42 112.482 115.212 112.699 115.053 112.987C114.9 113.268 114.823 113.596 114.823 113.969C114.823 114.349 114.9 114.682 115.053 114.97C115.212 115.252 115.42 115.469 115.677 115.622C115.941 115.769 116.225 115.843 116.531 115.843C116.844 115.843 117.128 115.769 117.385 115.622C117.649 115.469 117.857 115.252 118.01 114.97C118.163 114.682 118.239 114.346 118.239 113.96ZM120.625 110.645C120.466 110.645 120.331 110.59 120.221 110.48C120.111 110.369 120.056 110.235 120.056 110.076C120.056 109.916 120.111 109.782 120.221 109.671C120.331 109.561 120.466 109.506 120.625 109.506C120.778 109.506 120.907 109.561 121.011 109.671C121.121 109.782 121.176 109.916 121.176 110.076C121.176 110.235 121.121 110.369 121.011 110.48C120.907 110.59 120.778 110.645 120.625 110.645ZM121.029 111.462V116.495H120.193V111.462H121.029ZM124.905 111.37C125.518 111.37 126.013 111.557 126.393 111.931C126.773 112.298 126.962 112.831 126.962 113.528V116.495H126.136V113.648C126.136 113.146 126.01 112.763 125.759 112.5C125.508 112.231 125.166 112.096 124.731 112.096C124.29 112.096 123.938 112.234 123.675 112.509C123.418 112.785 123.289 113.186 123.289 113.712V116.495H122.453V111.462H123.289V112.179C123.454 111.921 123.678 111.722 123.959 111.582C124.247 111.441 124.562 111.37 124.905 111.37ZM131.138 116.495L129.163 114.272V116.495H128.327V109.699H129.163V113.694L131.101 111.462H132.267L129.898 113.969L132.276 116.495H131.138ZM135.19 113.969C135.19 113.449 135.294 112.996 135.502 112.61C135.71 112.218 135.998 111.915 136.365 111.701C136.739 111.487 137.164 111.38 137.642 111.38C138.26 111.38 138.768 111.53 139.166 111.83C139.57 112.13 139.836 112.546 139.965 113.078H139.065C138.979 112.772 138.811 112.531 138.56 112.353C138.315 112.175 138.009 112.087 137.642 112.087C137.164 112.087 136.778 112.252 136.484 112.583C136.191 112.907 136.044 113.369 136.044 113.969C136.044 114.575 136.191 115.044 136.484 115.374C136.778 115.705 137.164 115.87 137.642 115.87C138.009 115.87 138.315 115.784 138.56 115.613C138.805 115.442 138.973 115.197 139.065 114.878H139.965C139.83 115.393 139.561 115.806 139.157 116.118C138.753 116.424 138.248 116.577 137.642 116.577C137.164 116.577 136.739 116.47 136.365 116.256C135.998 116.042 135.71 115.739 135.502 115.347C135.294 114.955 135.19 114.496 135.19 113.969ZM141.916 109.699V116.495H141.08V109.699H141.916ZM145.535 116.577C145.063 116.577 144.635 116.47 144.249 116.256C143.869 116.042 143.569 115.739 143.349 115.347C143.135 114.949 143.028 114.49 143.028 113.969C143.028 113.455 143.138 113.002 143.358 112.61C143.585 112.212 143.891 111.909 144.277 111.701C144.662 111.487 145.094 111.38 145.571 111.38C146.049 111.38 146.48
11 111.487 146.866 111.701C147.252 111.909 147.555 112.209 147.775 112.601C148.002 112.993 148.115 113.449 148.115 113.969C148.115 114.49 147.999 114.949 147.766 115.347C147.54 115.739 147.23 116.042 146.839 116.256C146.447 116.47 146.012 116.577 145.535 116.577ZM145.535 115.843C145.835 115.843 146.116 115.772 146.38 115.631C146.643 115.491 146.854 115.279 147.013 114.998C147.178 114.716 147.261 114.373 147.261 113.969C147.261 113.565 147.182 113.222 147.022 112.941C146.863 112.659 146.655 112.451 146.398 112.316C146.141 112.175 145.862 112.105 145.562 112.105C145.256 112.105 144.974 112.175 144.717 112.316C144.466 112.451 144.264 112.659 144.111 112.941C143.958 113.222 143.882 113.565 143.882 113.969C143.882 114.379 143.955 114.725 144.102 115.007C144.255 115.289 144.457 115.5 144.708 115.641C144.959 115.775 145.235 115.843 145.535 115.843ZM153.677 111.462V116.495H152.841V115.751C152.682 116.008 152.459 116.21 152.171 116.357C151.889 116.498 151.577 116.568 151.234 116.568C150.842 116.568 150.49 116.489 150.178 116.329C149.866 116.164 149.618 115.919 149.434 115.595C149.257 115.27 149.168 114.875 149.168 114.41V111.462H149.994V114.3C149.994 114.796 150.
112 115.178 150.371 115.448C150.622 115.711 150.965 115.843 151.4 115.843C151.846 115.843 152.198 115.705 152.456 115.429C152.713 115.154 152.841 114.753 152.841 114.226V111.462H153.677ZM154.776 113.96C154.776 113.446 154.88 112.996 155.088 112.61C155.296 112.218 155.581 111.915 155.942 111.701C156.309 111.487 156.719 111.38 157.173 111.38C157.564 111.38 157.929 111.471 158.265 111.655C158.602 111.833 158.859 112.068 159.037 112.362V109.699H159.882V116.495H159.037V115.549C158.871 115.849 158.627 116.097 158.302 116.293C157.978 116.482 157.598 116.577 157.163 116.577C156.716 116.577 156.309 116.467 155.942 116.247C155.581 116.026 155.296 115.717 155.088 115.319C154.88 114.921 154.776 114.468 154.776 113.96ZM159.037 113.969C159.037 113.59 158.96 113.259 158.807 112.977C158.654 112.696 158.446 112.482 158.183 112.335C157.926 112.182 157.641 112.105 157.329 112.105C157.016 112.105 156.732 112.179 156.475 112.325C156.217 112.472 156.012 112.687 155.859 112.968C155.706 113.25 155.63 113.58 155.63 113.96C155.63 114.346 155.706 114.682 155.859 114.97C156.012 115.252 156.217 115.469 156.475 115.622C156.732 115.769 157.016 115.843 157.329 115.843C157.641 115.843 157.926 115.769 158.183 115.622C158.446 115.469 158.654 115.252 158.807 114.97C158.96 114.682 159.037 114.349 159.037 113.969ZM163.075 116.577C162.69 116.577 162.344 116.513 162.038 116.384C161.732 116.25 161.49 116.066 161.312 115.833C161.135 115.595 161.037 115.322 161.018 115.016H161.882C161.906 115.267 162.022 115.472 162.23 115.631C162.445 115.791 162.723 115.87 163.066 115.87C163.384 115.87 163.635 115.8 163.819 115.659C164.003 115.518 164.095 115.341 164.095 115.126C164.095 114.906 163.997 114.744 163.801 114.64C163.605 114.529 163.302 114.422 162.892 114.318C162.518 114.22 162.212 114.122 161.973 114.024C161.741 113.92 161.539 113.77 161.367 113.574C161.202 113.372 161.119 113.109 161.119 112.785C161.119 112.527 161.196 112.292 161.349 112.077C161.502 111.863 161.719 111.695 162.001 111.572C162.283 111.444 162.604 111.38 162.965 111.38C163.522 111.38 163.972 111.52 164.315 111.802C164.658 112.084 164.842 112.469 164.866 112.959H164.03C164.012 112.696 163.905 112.485 163.709 112.325C163.519 112.166 163.262 112.087 162.938 112.087C162.638 112.087 162.399 112.151 162.221 112.28C162.044 112.408 161.955 112.576 161.955 112.785C161.955 112.95 162.007 113.088 162.111 113.198C162.221 113.302 162.356 113.388 162.515 113.455C162.68 113.516 162.907 113.587 163.195 113.666C163.556 113.764 163.85 113.862 164.076 113.96C164.303 114.052 164.496 114.193 164.655 114.382C164.82 114.572 164.906 114.82 164.912 115.126C164.912 115.402 164.835 115.65 164.682 115.87C164.529 116.091 164.312 116.265 164.03 116.394C163.755 116.516 163.437 116.577 163.075 116.577Z",fill:"white"})]}),(0,d.jsxs)("defs",{children:[(0,d.jsx)("pattern",{id:"pattern0_17513_15400",patternContentUnits:"objectBoundingBox",width:"1",height:"1",children:(0,d.jsx)("use",{xlinkHref:"#image0_17513_15400",transform:"translate(-0.628601) scale(0.000612755)"})}),(0,d.jsxs)("linearGradient",{id:"paint0_linear_17513_15400",x1:"18.6799",y1:"103.339",x2:"174.081",y2:"124.007",gradientUnits:"userSpaceOnUse",children:[(0,d.jsx)("stop",{"stop-color":"#FDFDFD"}),(0,d.jsx)("stop",{offset:"1","stop-color":"#313131"})]}),(0,d.jsx)("clipPath",{id:"clip0_17513_15400",children:(0,d.jsx)("rect",{width:"276.007",height:"151.971",fill:"white",transform:"translate(0.779785)"})})]})]})},v=i(20931),g=i(37894);(o=a||(a={})).CARD_1="card-1",o.CARD_2="card-2",(n=l||(l={})).VIDEO="video",n.IMAGE="image",n.AUDIO="audio",n.FEATURED="featured",n.OTHER="other";let y=new Set(["ai-quote-video"]),b=e=>!e.landingToolId||!y.has(e.landingToolId),A=[{landingToolId:"ai-text-to-image",icon:{isStroke:!1,src:"/icons/gallery-2.svg"},title:{en:"Image Generator",ar:"إنشاء صورة",fr:"G\xe9n\xe9ration d'images",es:"Generaci\xf3n de im\xe1genes",it:"Generazione di immagini",tr:"G\xf6rsel Oluşturma"},description:{en:"Create stunning visuals with the power of AI",ar:"أنشئ صور مذهلة بقوة الذكاء الاصطناعي",fr:"Cr\xe9ez des visuels \xe9blouissants avec la puissance de l'IA",es:"Crea 
1im\xe1genes impresionantes con la potencia de la IA",it:"Crea immagini impressionanti con la potenza dell'IA",tr:"G\xf6rsel Oluşturma"},shortDescription:{en:"Bring your ideas to life",ar:"حوّل فكرتك إلى صورة مذهلة",fr:"Id\xe9es en visuels",es:"Ideas en im\xe1genes",it:"Idee in immagini",tr:"Fikirler g\xf6rselleşsin"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/gen-image.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/gen-image.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/gen-image.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/gen-image.webp"}},imageStyles:{image:"!-right-16 md:!right-0"},isPaid:!1,category:"image",link:"/ai-studio/text-to-image",cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Image%20Generator.webp",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/gen-image-2.webm"},{landingToolId:"ai-image-editor",icon:{isStroke:!1,src:"/icons/gallery-2.svg"},title:{en:"AI Image Editor",ar:"محرّر الصور",fr:"\xc9diteur d'images IA",es:"Editor de im\xe1genes IA",it:"Editor di immagini IA",tr:"AI G\xf6rsel D\xfczenleyici"},description:{en:"Completely transforms your images with AI",ar:"حوّل نصك إلى صور مذهلة بالذكاء الاصطناعي",fr:"Transformez vos textes en visuels \xe9blouissants avec l'IA",es:"Transforma tus textos en im\xe1genes impresionantes con la IA",it:"Trasforma i tuoi testi in immagini impressionanti con l'IA",tr:"Metinlerinizi AI ile canlı, akıllı g\xf6rseller haline getirin"},shortDescription:{en:"Edit Images in one click",ar:"عدّل صورك بضغطة زر",fr:"\xc9ditez vos images avec un seul clic",es:"Edita im\xe1genes con un solo clic",it:"Modifica immagini con un solo clic",tr:"G\xf6rselleri tek bir tıkla d\xfczenleyin"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/image-editor.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/image-editor.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/image-editor.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/image-editor.webp"}},imageStyles:{image:"!-right-16 md:!right-0"},isPaid:!1,category:"image",link:"/ai-studio/ai-image-editor",cardType:"card-1",isFeatured:!0,supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Image%20Editor.webp",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/image-editor-2.webm"},{isFeatured:!0,landingToolId:"image-to-scene",icon:{isStroke:!1,src:"/icons/video-vertical.svg"},title:{en:"Image to Video",ar:"تحريك الصور",fr:"Image \xe0 vid\xe9o",es:"Imagen a video",it:"Immagine a video",tr:"G\xf6rseli Video'ya \xc7evir"},description:{en:"Turn your images into animated scenes with AI",ar:"حوّل صورك إلى مشاهد متحركة بالذكاء الاصطناعي",fr:"Transformez vos images en sc\xe8nes anim\xe9es avec l'IA",es:"Transforma tus im\xe1genes en escenas animadas con IA",it:"Trasforma le tue immagini in scene animate con l'IA",tr:"G\xf6rselinizi AI ile canlı bir sahne haline getirin"},shortDescription:{en:"Turn an Image to a Video",ar:"مشاهد متحركة",fr:"Sc\xe8nes anim\xe9es IA",es:"Escenas animadas IA",it:"Scene animate IA",tr:"AI sahneleri"},action:"image-to-scene",link:"/ai-studio/image-to-scene",image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/i2v.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/i2v.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/i2v.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/i2v.webp"}}
1,isPaid:!0,category:"video",imageStyles:{image:"relative !h-[calc(100%-24px)] !top-1/2 -translate-y-1/2 scale-75 md:scale-100",className:"!-right-6 md:!right-0",rtlClassName:"".concat(c.Dt?"!-right-0":"!-right-16"," md:!right-0"),secondCardClassName:"!h-full !top-[30px] relative",secondCardStyles:{top:"0 !important",height:"100% !important"}},imageComponent:m,cardType:"card-2",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Image%20to%20Video.webp",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/i2v-2.webm"},{landingToolId:"text-to-scene",icon:{isStroke:!1,src:"/icons/video-vertical.svg"},title:{en:"Text to Video",ar:"نص إلى مشهد",fr:"Texte \xe0 vid\xe9o",es:"Texto a video",it:"Testo a video",tr:"Metin Video'ya \xc7evir"},description:{en:"The most realistic AI video model, now on Bith.AI",ar:"حوّل نصك إلى مشاهد متحركة بالذكاء الاصطناعي",fr:"Transformez vos textes en sc\xe8nes anim\xe9es avec l'IA",es:"Transforma tus textos en escenas animadas con IA",it:"Trasforma i tuoi testi in scene animate con l'IA",tr:"Metinlerinizi AI ile canlı bir sahne haline getirin"},shortDescription:{en:"Turn an Idea to a Video",ar:"حوّل فكرتك إلى فيديو",fr:"Vid\xe9o captivante",es:"Video atractivo",it:"Video coinvolgente",tr:"Etkileyici video"},action:"text-to-scene",link:"/ai-studio/text-to-scene",image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/t2v.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/t2v.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/t2v.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/t2v.webp"}},isPaid:!0,category:"video",imageStyles:{image:"relative !h-[calc(100%-24px)] !top-1/2 -translate-y-1/2 scale-75 md:scale-100",className:"!-right-6 md:!right-0",rtlClassName:"".concat(c.Dt?"!-right-0":"!-right-16"," md:!right-0"),secondCardClassName:"!h-full flex items-center justify-center relative",secondCardStyles:{top:"0 !important",height:"100% !important"}},imageComponent:f,arImageComponent:h,cardType:"card-2",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Text%20to%20Video_1x.webp",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/t2v-2.webm"},{isFeatured:!0,landingToolId:"ai-text-to-video",icon:{isStroke:!0,src:"/icons/video-octagon.svg"},title:{en:"AI Shorts",ar:"فيديو روائي",fr:"Shorts en ligne",es:"Shorts en l\xednea",it:"Shorts online",tr:"Online Shorts"},shortDescription:{en:"Videos ready to share!",ar:"فيديوهات جاهزة للمشاركة!",fr:"Vid\xe9os pr\xeates \xe0 partager !",es:"V\xeddeos listos para compartir!",it:"Video pronti per condividere!",tr:"Paylaşım i\xe7in hazır videolar!"},description:{en:"Create ready-to-share videos and boost reach",ar:"حول فكرتك أو السكربت الخاص بك أو الإقتباسات المفضلة لديك إلى فيديو ممتع بالذكاء الاصطناعي",fr:"Transformez vos id\xe9es, script ou citations favorites en un vid\xe9o captivant avec l'IA",es:"Transforma tus ideas, guion o citas favoritas en un video atractivo con IA",it:"Trasforma le tue idee, script o citazioni favorite in un video coinvolgente con l'IA",tr:"Fikirlerinizi, betiğinizi veya favori alıntılarınızı AI ile etkileyici bir video haline getirin"},action:"ai-videos",image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ai-shorts.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ai-shorts.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ai-shorts.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ai-shorts.webp"}},imageStyles:{className:"right-[-30px] md:right-0",rtlClassName:"right-[-80px] md:right-0"},isPaid:!0,category:"video",cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/AI%20Shorts_1x.webp",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/ai-shorts-2.webm"},{landingToolId:"ai-avatars",isFeatured:!0,icon:{isStroke:!0,isFill:!0,src:"/icons/profile-2user.svg"},beta:!0,title:{en:"AI Avatars",ar:"شخصيات رقمية",fr:"Avatars IA",es:"Avatars IA",it:"Avatars IA",tr:"Avatars IA"},description:{en:"Create your digital twin and use it across your content",ar:"أنشئ شخصيات رقمية افتراضية بالذكاء الاصطناعي تتحدث في فيديوهاتك",fr:"Cr\xe9er des avatars IA r\xe9alistes pour vos vid\xe9os et contenu",es:"Crea avatares IA realistas para tus videos y contenido",it:"Crea avatar IA realistici per i tuoi video e contenuti",tr:"Ger\xe7ek\xe7i AI avatar'lar oluşturun"},shortDescription:{en:"Create your Digital Twin",ar:"أنشئ شخصيتك الرقمية",fr:"Cr\xe9e votre gemme digitale",es:"Crea tu gemelo digital",it:"Crea il tuo gemello digitale",tr:"Diğerliğinizi oluşturun"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp"}},link:"/ai-studio/ai-avatars",isPaid:!0,category:"video",imageStyles:{image:"relative bottom-[-22px] right-[-60px] md:right-0",secondCardClassName:"relative bottom-[-22px] right-0"},cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/AI%20Avatar.webp",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/avatar-2.webm"},{landingToolId:"ai-image-upscale",icon:{isStroke:!1,src:"/icons/up-scale.svg"},title:{en:"Image Upscale",ar:"تحسين الصور",fr:"\xc9largissez vos images",es:"Ampl\xede sus im\xe1genes",it:"Aumenta le immagini",tr:"G\xf6rseli B\xfcy\xfct"},description:{en:"Enhance your images",ar:"تحسين صورك بالذكاء الاصطناعي",fr:"Am\xe9liorez vos images avec l'IA",es:"Mejora tus im\xe1genes con IA",it:"Aumenta le immagini con l'IA",tr:"G\xf6rsellerinizi AI ile geliştirin"},shortDescription:{en:"Enhance your images",ar:"تحسين صورك بالذكاء الإصطناعي",fr:"Am\xe9liorez vos images",es:"Mejora tus im\xe1genes",it:"Aumenta le immagini",tr:"G\xf6rsellerinizi geliştirin"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/iu.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/iu.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/iu.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/iu.webp"}},isPaid:!1,category:"image",link:v.P2.STUDIO_AI_IMAGE_UPSCALE,cardType:"card-2",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Image%20Upscaler.webp",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/iu-2.webm"},{landingToolId:"ai-text-to-speech",icon:{isStroke:!1,src:"/icons/microphone-2.svg",bottomIcon:"/icons/music-track-icon.svg"},title:{en:"Voiceover Generator",ar:"إنشاء صوت",fr:"G\xe9n\xe9ration de voix",es:"Generaci\xf3n de voz",it:"Generazione di voce",tr:"Ses Oluşturma"},description:{en:"Generate voiceovers in multi languages",ar:"أنشئ صوت محترف في العديد من اللغات",fr:"G\xe9n\xe9rez des voix professionnelles dans plusieurs langues",es:"Genera voce profesional en m\xfaltiples idiomas",it:"Genera voce professionale in pi\xf9 lingue",tr:"Profesyonel sesler oluşturun"},shortDescription:{en:"Professional voiceovers",ar:"أصوات احترافية",fr:"Voix professionnelles",es:"Voces profesionales",it:"Voci professionali",tr:"Profesyonel sesler"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/vo.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/vo.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/vo.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/vo.webp"}},imageStyles:{image:"!pt-[24px] !right-[-60px] md:!right-0"},isPaid:!1,category:"audio",link:"/ai-studio/text-to-speech/prompt",cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Voiceover%20Generator.webp"},{landingToolId:"add-subtitles-to-video",icon:{isStroke:!1,src:"/icons/subtitle-filled.svg"},title:{en:"Subtitles Generator",ar:"إنشاء الترجمات",fr:"G\xe9n\xe9rateur de sous-titres",es:"Generador de subt\xedtulos",it:"Generatore di sottotitoli",tr:"Altyazı Oluşturucu"},description:{en:"Convert speech into subtitles and make videos clearer",ar:"حوّل الكلام إلى ترجمات بسهولة واحترافية",fr:"G\xe9n\xe9rez des sous-titres \xe0 partir de vos vid\xe9os avec facilit\xe9",es:"Genera subt\xedtulos a partir de tus videos con facilidad",it:"Genera sottotitoli a partire dai tuoi video con facilit\xe0",tr:"Video'nizi AI ile d\xfczenleyin"},shortDescription:{en:"Speech to subtitles",ar:"تحويل الكلام",fr:"Sous-titres automatiques",es:"Subt\xedtulos autom\xe1ticos",it:"Sottotitoli automatici",tr:"Otomatik altyazı"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/sg.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/sg.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/sg.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/sg.webp"}},isPaid:!1,category:"video",link:"/studio/tools/add-subtitles-to-video",cardType:"card-2",hideOnMobile:!0,supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Subtitle%20Generator.webp"},{landingToolId:"trim-and-edit-your-video",icon:{isStroke:!1,src:"/icons/layer.svg"},title:{en:"Video Editor",ar:"محرر الفيديو",fr:"\xc9diteur de vid\xe9o",es:"Editor de video",it:"Editor video",tr:"Video D\xfczenleyici"},description:{en:"Generate voiceovers in multi languages",ar:"حرر وقص وأضف الترجمة إلى فيديوهاتك بكل سهولة واحترافية",fr:"Editez, redimensionnez et ajoutez des sous-titres \xe0 vos vid\xe9os avec facilit\xe9",es:"Edite, redimensione y agregue subt\xedtulos a sus videos con facilidad",it:"Modifica, ridimensiona e aggiungi sottotitoli ai tuoi video con facilit\xe0",tr:"Video'nizi AI ile d\xfczenleyin"},shortDescription:{en:"Easy video editing",ar:"تعديل الفيديو",fr:"Montage vid\xe9o facile",es:"Edici\xf3n de video",it:"Editing video facile",tr:"Video d\xfczenleme"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ve.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ve.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ve.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ve.webp"}},isPaid:!1,category:"video",action:"uploadVideo",cardType:"card-2",hideOnMobile:!0,supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Video%20Editor.webp"},{landingToolId:"ai-quote-video",icon:{isStroke:!1,src:"/icons/quote-up.svg"},title:{en:"Quote to Video",ar:"اقتباس إلى فيديو",fr:"Citation \xe0 vid\xe9o",es:"Cita a video",it:"Citazione a video",tr:"Video İ\xe7in Alıntı"},description:{en:"Bring your favorite quotes to life",ar:"حوّل اقتباسك إلى فيديو جذاب بسهولة واحترافية",fr:"G\xe9n\xe9rer des vid\xe9os en ligne avec vos citations favorites",es:"Generar videos en l\xednea con tus citas favoritas",it:"Genera video online con le tue citazioni favorite",tr:"Favori tıkızlarınızla canlı bir video oluşturun"},shortDescription:{en:"Quotes to life",ar:"اقتباسات مرئية",fr:"Citations anim\xe9es",es:"
1Citas animadas",it:"Citazioni animate",tr:"Alıntılar canlansın"},link:"/ai-studio/quote-to-video",image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Light/Quote%20to%20Video%20EN.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Light/Quote%20to%20Video%20AR.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Dark/Quote%20to%20Video.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Dark/Quote%20to%20Video%20AR.webp"}},isPaid:!1,cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Quote%20to%20Video.webp"}];(r=s||(s={})).VIDEO="video",r.IMAGE="image",r.AUDIO="audio",r.FEATURED="featured";var x={tools:A,steps:[{type:"featured",title:{en:"Home",ar:"الرئيسية",fr:"Accueil",es:"Inicio",it:"Home",tr:"Ana Sayfa"},icon:"/icons/home-2.svg",bgColor:{dark:"#EBC350",light:"#5D68C4"},bgColorRgb:"235, 195, 80",textColor:{dark:"#0C0C0C",light:"#fff"}},{type:"video",title:{en:"Video",ar:"فيديوهات",fr:"Vid\xe9os",es:"Videos",it:"Video",tr:"Videolar"}
1,icon:"/icons/video.svg",bgColor:{dark:"#CED3FB",light:"#5D68C4"},bgColorRgb:"206, 211, 251",textColor:{dark:"#192054",light:"#fff"}},{type:"image",title:{en:"Image",ar:"صور",fr:"Images",es:"Im\xe1genes",it:"Immagini",tr:"G\xf6rseler"},icon:"/icons/gallery.svg",bgColor:{dark:"#F5C3BD",light:"#D85B4C"},bgColorRgb:"245, 195, 189",textColor:{dark:"#4B152B",light:"#fff"}},{type:"audio",title:{en:"Audio",ar:"صوتيات",fr:"Audios",es:"Audios",it:"Audios",tr:"Sesler"},icon:"/icons/music.svg",bgColor:{dark:"#DFEC9C",light:"#95A447"},bgColorRgb:"223, 236, 156",textColor:{dark:"#2E3607",light:"#fff"}}],videosOptionsPopup:[{title:{en:"Short Video <span class='font-normal text-xs'> (30-180 seconds)</span>",ar:"فيديو قصير <span class='font-normal text-xs'> (30-180 ثانية)</span>",fr:"Shorts en ligne",es:"Shorts en l\xednea",it:"Shorts online",tr:"Online Shorts"},description:{en:"Turn your ideas into an engaging video with AI",ar:"حوّل فكرتك إلى فيديو ممتع بالذكاء الاصطناعي",fr:"Transformez vos id\xe9es en un vid\xe9o captivant avec l'IA",es:"Transforma tus ideas en un video atractivo con IA",it:"Trasforma le tue idee in un video coinvolgente con l'IA"},value:g.B.AI_TEXT_TO_VIDEO,isPaid:!0,icon:"/icons/lamp-on-filled.svg",video:{en:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/English/Egypt's%20Timeless%20Pyramids%20Unveiled-en.mp4",ar:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/Arabic/Egypt's%20Timeless%20Pyramids%20Unveiled-ar.mp4"},link:"/ai-studio/text-to-video/script"},{title:{en:"Short Scene <span class='font-normal text-xs'> (5-10 seconds)</span>",ar:"مشهد قصير <span class='font-normal text-xs'> (5-10 ثوانٍ)</span>",fr:"Shorts en ligne",es:"Shorts en l\xednea",it:"Shorts online",tr:"Online Shorts"},description:{en:"Turn your text into animated scenes ",ar:"حوّل نصك إلى مشاهد متحركة بالذكاء الاصطناعي",fr:"Transformez vos textes en sc\xe8nes anim\xe9es",es:"Transforma tus textos en escenas animadas",it:"Trasforma i tuoi testi in scene animate",tr:"Metinlerinizi AI ile canlı, akıllı g\xf6rseller haline getirin"},value:g.B.AI_TEXT_TO_SCENE,isPaid:!0,icon:"/icons/video-vertical.svg",video:{en:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/Arabic/veo3_matcha_ar.mp4",ar:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/Arabic/veo3_matcha_ar.mp4"},link:"/ai-studio/text-to-scene"}],imageDropdownOptions:[{label:{en:"Download",ar:"تحميل",es:"Descargar",fr:"T\xe9l\xe9charger",it:"Scarica",tr:"İndir"},action:"download",svg:"/icons/import.svg",isPaid:!0},{label:{en:"Edit",ar:"تعديل",es:"Editar",fr:"Modifier",it:"Modifica",tr:"D\xfczenle"},action:"edit",svg:"/icons/edit-2.svg"},{label:{en:"Animate",ar:"تحريك",es:"Animar",fr:"Animer",it:"Animare",tr:"Animasyonlu"},action:"animate",svg:"/icons/animate-icon.svg",svgOptions:{stroke:!0}},{label:{en:"Upscale",ar:"تحسين",es:"Upscale",fr:"Upscale",it:"Upscale",tr:"Upscale"},action:"upscale",svg:"/icons/up-scale-outlined.svg"},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg"}],navigationDropdownOptions:[{isFeatured:!0,icon:{isStroke:!1,src:"/icons/video-vertical.svg"},title:{en:"Image to Video",ar:"صورة إلى فيديو",fr:"Image \xe0 vid\xe9o",es:"Imagen a video",it:"Immagine a video",tr:"G\xf6rseli Video'ya \xc7evir"},description:{en:"Turn your images into animated scenes with AI",ar:"حوّل صورك إلى مشاهد متحركة بالذكاء الاصطناعي",fr:"Transformez vos images en sc\xe8nes anim\xe9es avec l'IA",es:"Transforma tus im\xe1genes en escenas animadas con IA",it:"Trasforma le tue immagini in scene animate con l'IA",tr:"G\xf6rselinizi AI ile canlı bir sahne haline getirin"},shortDescription:{en:"Turn an Image to a Video",ar:"مشاهد متحركة",fr:"Sc\xe8nes anim\xe9es IA",es:"Escenas animadas IA",it:"Scene animate IA",tr:"AI sahneleri"},action:"image-to-scene",link:"/ai-studio/image-to-scene",image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/i2v.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/i2v.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/i2v.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/i2v.webp"}}
1,isPaid:!0,category:"video",imageStyles:{image:"relative !h-[calc(100%-24px)] !top-1/2 -translate-y-1/2 scale-75 md:scale-100",className:"!-right-6 md:!right-0",rtlClassName:"".concat(c.Dt?"!-right-0":"!-right-16"," md:!right-0"),secondCardClassName:"!h-full !top-[30px] relative",secondCardStyles:{top:"0 !important",height:"100% !important"}},imageComponent:m,cardType:"card-2",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Image%20to%20Video.webp"},{icon:{isStroke:!1,src:"/icons/video-vertical.svg"},title:{en:"Text to Video",ar:"نص إلى فيديو",fr:"Texte \xe0 vid\xe9o",es:"Texto a video",it:"Testo a video",tr:"Metin Video'ya \xc7evir"},description:{en:"Turn your text into animated scenes <br/> with AI",ar:"حوّل نصك إلى مشاهد متحركة بالذكاء الاصطناعي",fr:"Transformez vos textes en sc\xe8nes anim\xe9es avec l'IA",es:"Transforma tus textos en escenas animadas con IA",it:"Trasforma i tuoi testi in scene animate con l'IA",tr:"Metinlerinizi AI ile canlı bir sahne haline getirin"},shortDescription:{en:"Turn an Idea to a Video",ar:"حوّل فكرتك إلى فيديو",fr:"Vid\xe9o captivante",es:"Video atractivo",it:"Video coinvolgente",tr:"Etkileyici video"},action:"text-to-scene",link:"/ai-studio/text-to-scene",image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/t2v.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/t2v.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/t2v.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/t2v.webp"}},isPaid:!0,category:"video",imageStyles:{image:"relative !h-[calc(100%-24px)] !top-1/2 -translate-y-1/2 scale-75 md:scale-100",className:"!-right-6 md:!right-0",rtlClassName:"".concat(c.Dt?"!-right-0":"!-right-16"," md:!right-0"),secondCardClassName:"!h-full flex items-center justify-center relative",secondCardStyles:{top:"0 !important",height:"100% !important"}},imageComponent:f,arImageComponent:h,cardType:"card-2",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Text%20to%20Video_1x.webp"},{landingToolId:"ai-text-to-image",icon:{isStroke:!1,src:"/icons/gallery-2.svg"},title:{en:"Image Generator",ar:"إنشاء صورة",fr:"G\xe9n\xe9ration d'images",es:"Generaci\xf3n de im\xe1genes",it:"Generazione di immagini",tr:"G\xf6rsel Oluşturma"},description:{en:"Create stunning visuals with the power of AI",ar:"أنشئ صور مذهلة بقوة الذكاء الاصطناعي",fr:"Cr\xe9ez des visuels \xe9blouissants avec la puissance de l'IA",es:"Crea im\xe1genes impresionantes con la potencia de la IA",it:"Crea immagini impressionanti con la potenza dell'IA",tr:"G\xf6rsel Oluşturma"},shortDescription:{en:"Bring your ideas to life",ar:"حوّل فكرتك إلى صورة مذهلة",fr:"Id\xe9es en visuels",es:"Ideas en im\xe1genes",it:"Idee in immagini",tr:"Fikirler g\xf6rselleşsin"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/gen-image.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/gen-image.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/gen-image.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/gen-image.webp"}},imageStyles:{image:"!-right-16 md:!right-0"},isPaid:!1,category:"image",link:"/ai-studio/text-to-image",cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Image%20Generator.webp"},{landingToolId:"ai-image-editor",icon:{isStroke:!1,src:"/icons/gallery-2.svg"},title:{en:"AI Image Editor",ar:"محرّر الصور",fr:"\xc9diteur d'images IA",es:"Editor de im\xe1genes IA",it:"Editor di immagini IA",tr:"AI G\xf6rsel D\xfczenleyici"},description:{en:"Completely transforms your images with AI",ar:"حوّل نصك إلى صور مذهلة بالذكاء الاصطناعي",fr:"Transformez vos textes en visuels \xe9blouissants avec l'IA",es:"Transforma tus textos en im\xe1genes impresionantes con la IA",it:"Trasforma i tuoi testi in immagini impressionanti con l'IA",tr:"Metinlerinizi AI ile canlı, akıllı g\xf6rseller haline getirin"},shortDescription:{en:"Edit Images in one click",ar:"عدّل صورك بضغطة زر",fr:"\xc9ditez vos images avec un seul clic",es:"Edita im\xe1genes con un solo clic",it:"Modifica immagini con un solo clic",tr:"G\xf6rselleri tek bir tıkla d\xfczenleyin"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/image-editor.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/image-editor.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/image-editor.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/image-editor.webp"}},imageStyles:{image:"!-right-16 md:!right-0"},isPaid:!1,category:"image",link:"/ai-studio/ai-image-editor",cardType:"card-1",is
1Featured:!0,supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Image%20Editor.webp"},{landingToolId:"ai-avatars",isFeatured:!0,icon:{isStroke:!0,isFill:!0,src:"/icons/profile-2user.svg"},beta:!0,title:{en:"AI Avatars",ar:"شخصيات رقمية",fr:"Avatars IA",es:"Avatars IA",it:"Avatars IA",tr:"Avatars IA"},description:{en:"Create your digital twin and use it across your content",ar:"أنشئ شخصيات رقمية افتراضية بالذكاء الاصطناعي تتحدث في فيديوهاتك",fr:"Cr\xe9er des avatars IA r\xe9alistes pour vos vid\xe9os et contenu",es:"Crea avatares IA realistas para tus videos y contenido",it:"Crea avatar IA realistici per i tuoi video e contenuti",tr:"Ger\xe7ek\xe7i AI avatar'lar oluşturun"},shortDescription:{en:"Create your Digital Twin",ar:"أنشئ شخصيتك الرقمية",fr:"Cr\xe9e votre gemme digitale",es:"Crea tu gemelo digital",it:"Crea il tuo gemello digitale",tr:"Diğerliğinizi oluşturun"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp"}},link:"/ai-studio/ai-avatars",isPaid:!0,category:"other",imageStyles:{image:"relative bottom-[-22px] right-[-60px] md:right-0",secondCardClassName:"relative bottom-[-22px] right-0"},cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/AI%20Avatar.webp"},{landingToolId:"ai-image-upscale",icon:{isStroke:!1,src:"/icons/up-scale.svg"},title:{en:"Image Upscale",ar:"تحسين الصور",fr:"\xc9largissez vos images",es:"Ampl\xede sus im\xe1genes",it:"Aumenta le immagini",tr:"G\xf6rseli B\xfcy\xfct"},description:{en:"Enhance your images",ar:"تحسين صورك بالذكاء الاصطناعي",fr:"Am\xe9liorez vos images avec l'IA",es:"Mejora tus im\xe1genes con IA",it:"Aumenta le immagini con l'IA",tr:"G\xf6rsellerinizi AI ile geliştirin"},shortDescription:{en:"Enhance your images",ar:"تحسين صورك بالذكاء الإصطناعي",fr:"Am\xe9liorez vos images",es:"Mejora tus im\xe1genes",it:"Aumenta le immagini",tr:"G\xf6rsellerinizi geliştirin"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/iu.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/iu.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/iu.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/iu.webp"}},isPaid:!1,category:"image",link:v.P2.STUDIO_AI_IMAGE_UPSCALE,cardType:"card-2",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Image%20Upscaler.webp"},{landingToolId:"ai-text-to-speech",icon:{isStroke:!1,src:"/icons/microphone-2.svg",bottomIcon:"/icons/music-track-icon.svg"},title:{en:"Voiceover Generator",ar:"إنشاء صوت",fr:"G\xe9n\xe9ration de voix",es:"Generaci\xf3n de voz",it:"Generazione di voce",tr:"Ses Oluşturma"},description:{en:"Generate voiceovers in multi languages",ar:"أنشئ صوت محترف في العديد من اللغات",fr:"G\xe9n\xe9rez des voix professionnelles dans plusieurs langues",es:"Genera voce profesional en m\xfaltiples idiomas",it:"Genera voce professionale in pi\xf9 lingue",tr:"Profesyonel sesler oluşturun"},shortDescription:{en:"Professional voiceovers",ar:"أصوات احترافية",fr:"Voix professionnelles",es:"Voces profesionales",it:"Voci professionali",tr:"Profesyonel sesler"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/vo.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/vo.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/vo.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/vo.webp"}},imageStyles:{image:"!pt-[24px] !right-[-60px] md:!right-0"},isPaid:!1,category:"audio",link:"/ai-studio/text-to-speech/prompt",cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Voiceover%20Generator.webp"}],apps:[{landingToolId:"studio-photoshoot",icon:{isStroke:!1,src:"/icons/camera.svg"},beta:!0,title:{en:"Studio Photoshoot",ar:"جلسة تصوير المنتج",fr:"Shooting Produit",es:"Sesi\xf3n de Producto",it:"Shooting Prodotto",tr:"\xdcr\xfcn \xc7ekimi"},description:{en:"Generate professional product photos with AI-powered backgrounds and styling",ar:"أنشئ صور منتجات احترافية بخلفيات وتصميمات مدعومة بالذكاء الاصطناعي",fr:"G\xe9n\xe9rez des photos de produits professionnelles avec des arri\xe8re-plans et un style IA",es:"Genera fotos de productos profesionales con fondos y estilos impulsados por IA",it:"Genera foto prodotto professionali con sfondi e stile basati sull'IA",tr:"AI destekli arka plan ve stil ile profesyonel \xfcr\xfcn fotoğrafları oluşturun"},shortDescription:{en:"Turn one photo into 8 scenes with a promo video",ar:"حوّل صورة واحدة إلى عدة صور مع فيديو ترويجي جاهز للنشر",fr:"Transformez une photo en 8 clich\xe9s",es:"Transforma una foto en 8 clich\xe9s",it:"Trasforma una foto in 8 clich\xe9",tr:"Bir fotoğrafı 8 g\xf6r\xfcnt\xfcye d\xf6n\xfcşt\xfcr\xfcn"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product-sh
1ots.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product-shots.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product-shots.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product-shots.webp"}},link:"/apps/studio-photoshoot",isPaid:!0,category:"image",cardType:"card-2"},{landingToolId:"virtual-try-on",icon:{isStroke:!1,src:"/icons/camera.svg"},beta:!0,title:{en:"Virtual Try-on",ar:"تجربة الأزياء",fr:"Essayage Virtuel",es:"Prueba Virtual",it:"Prova Virtuale",tr:"Sanal Deneme"},description:{en:"Generate realistic model try-on visuals with your uploaded clothing items",ar:"أنشئ صور تجربة ملابس واقعية على موديلات باستخدام عناصر الملابس المرفوعة",fr:"G\xe9n\xe9rez des visuels d'essayage r\xe9alistes avec vos v\xeatements t\xe9l\xe9charg\xe9s",es:"Genera im\xe1genes realistas de prueba en modelo con tus prendas subidas",it:"Genera visual realistici di prova su modelli con i tuoi capi caricati",tr:"Y\xfcklediğiniz kıyafetlerle ger\xe7ek\xe7i model deneme g\xf6rselleri oluşturun"},shortDescription:{en:"Try your clothing on AI models",ar:"جرّب ملابسك على موديلات بالذكاء الاصطناعي",fr:"Essayez vos v\xeatements sur des mod\xe8les IA",es:"Prueba tu ropa en modelos IA",it:"Prova i tuoi capi su modelli IA",tr:"Kıyafetlerinizi AI modellerde deneyin"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/virtual_try_on2.png",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/virtual_try_on2.png"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/virtual_try_on2.png",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/virtual_try_on2.png"}},link:"/apps/virtual-try-on",isPaid:!0,category:"image",cardType:"card-2",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/virtual-try-on/virtual_try_on_video.webm"},{landingToolId:"ai-influencer",beta:!0,icon:{isStroke:!0,isFill:!0,src:"/icons/profile-2user.svg"},title:{en:"AI Influencer",ar:"انشاء شخصية",fr:"Influenceur IA",es:"Influencer IA",it:"Influencer IA",tr:"AI Influencer"},description:{en:"Design and build your AI influencer from scratch",ar:"صمم وابنِ مؤثرك الرقمي من الصفر",fr:"Concevez et cr\xe9ez votre influenceur IA de z\xe9ro",es:"Dise\xf1a y crea tu influencer IA desde cero",it:"Progetta e crea il tuo influencer IA da zero",tr:"AI influencer'ınızı sıfırdan tasarlayın ve oluşturun"},shortDescription:{en:"Create a virtual influencer persona",ar:"أنشئ شخصية مؤثر افتراضي",fr:"Cr\xe9ez un personnage d'influenceur virtuel",es:"Crea un personaje de influencer virtual",it:"Crea un personaggio di influencer virtuale",tr:"Sanal bir influencer kişiliği oluşturun"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/AI%20Influencer%20First%20Frame.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/AI%20Influencer%20First%20Frame.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/AI%20Influencer%20First%20Frame.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/AI%20Influencer%20First%20Frame.webp"}},link:"/apps/ai-influencer",isPaid:!0,category:"image",cardType:"card-2",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/AI%20Influencer%20App.mp4"},{landingToolId:"white-background",icon:{isStroke:!1,src:"/icons/camera.svg"},title:{en:"White Background",ar:"خلفية بيضاء للمنتج",fr:"Fond Blanc",es:"Fondo Blanco",it:"Sfondo Bianco",tr:"Beyaz Arka Plan"},description:{en:"Remove any background and replace it with a clean white backdrop for your products",ar:"أزل أي خلفية واستبدلها بخلفية بيضاء نظيفة لمنتجاتك",fr:"Supprimez n'importe quel fond et remplacez-le par un fond blanc propre pour vos produits",es:"Elimina cualquier fondo y reempl\xe1zalo con un fondo blanco limpio para tus productos",it:"Rimuovi qualsiasi sfondo e sostituiscilo con uno sfondo bianco pulito per i tuoi prodotti",tr:"Herhangi bir arka planı kaldırın ve \xfcr\xfcnleriniz i\xe7in temiz beyaz bir arka planla değiştirin"},shortDescription:{en:"Clean images on a white background",ar:"اجعل صورك بخلفية استوديو بيضاء جاهزة للعرض على المتجر",fr:"Images propres sur un fond blanc",es:"Im\xe1genes limpias en un fondo blanco",it:"Immagini pulite su uno sfondo bianco",tr:"Beyaz arka plan \xfczerinde temiz g\xf6rseller"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/white_background.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/white_background.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/white_background.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/white_background.webp"}},link:"/template/white-background",isPaid:!0,category:"image",cardType:"card-2"},{landingToolId:"change-background-color",icon:{isStroke:!1,src:"/icons/camera.svg"}
1,title:{en:"Colored Background",ar:"خلفية ملونة للمنتج",fr:"Fond color\xe9",es:"Fondo colorido",it:"Sfondo colorato",tr:"Renkli Arka Plan"},description:{en:"Instantly swap the background color of your product images with AI precision",ar:"غيّر لون خلفية صور منتجاتك على الفور بدقة الذكاء الاصطناعي",fr:"Changez instantan\xe9ment la couleur de fond de vos photos produits avec l'IA",es:"Cambia al instante el color de fondo de tus fotos de producto con IA",it:"Cambia istantaneamente il colore di sfondo delle foto prodotto con l'IA",tr:"\xdcr\xfcn g\xf6rsellerinizin arka plan rengini anında AI ile değiştirin"},shortDescription:{en:"Clean images on a colored background",ar:"أضف خلفيات ملونة جذابة تناسب صور منتجك",fr:"Changez la couleur de fond instantan\xe9ment",es:"Cambia el color de fondo al instante",it:"Cambia colore sfondo istantaneamente",tr:"Arka plan rengini anında değiştir"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/change_background_color.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/change_background_color.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/change_background_color.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/change_background_color.webp"}},link:"/template/change-background-color",isPaid:!0,category:"image",cardType:"card-2"},{landingToolId:"background-removal",icon:{isStroke:!1,src:"/icons/camera.svg"}
1,title:{en:"Remove Background",ar:"إزالة خلفية المنتج",fr:"Supprimer le fond",es:"Eliminar fondo",it:"Rimuovere sfondo",tr:"Arka planı kaldır"},description:{en:"Recolor your products in any shade with AI, no reshooting required",ar:"أعد تلوين منتجاتك بأي لون باستخدام الذكاء الاصطناعي دون الحاجة إلى إعادة التصوير",fr:"Recolorisez vos produits dans n'importe quelle teinte avec l'IA, sans reshooting",es:"Recolorea tus productos en cualquier tono con IA, sin necesidad de refotos",it:"Ricolora i tuoi prodotti in qualsiasi tonalit\xe0 con l'IA, senza rifotografare",tr:"\xdcr\xfcnlerinizi yeniden \xe7ekim yapmadan AI ile istediğiniz renkte boyayın"},shortDescription:{en:"Remove backgrounds and isolate your subject",ar:"احذف الخلفية و اعزل منتجك بدقة وسرعة",fr:"Supprimez le fond et isolez votre sujet",es:"Elimina el fondo y a\xedsla tu sujeto",it:"Rimuovi il fondo e isola il tuo soggetto",tr:"Arka planı kaldır ve konuyu izole et"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/remove_background.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/remove_background.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/remove_background.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/remove_background.webp"}},link:"/template/background-removal",isPaid:!0,category:"image",cardType:"card-2"},{landingToolId:"product-recoloring",icon:{isStroke:!1,src:"/icons/camera.svg"},title:{en:"Product Recoloring",ar:"تغيير لون المنتج",fr:"Recoloration de Produit",es:"Recoloraci\xf3n de Producto",it:"Ricolorazione Prodotto",tr:"\xdcr\xfcn Yeniden Renklendirme"},description:{en:"Recolor your products in any shade with AI, no reshooting required",ar:"أعد تلوين منتجاتك بأي لون باستخدام الذكاء الاصطناعي دون الحاجة إلى إعادة التصوير",fr:"Recolorisez vos produits dans n'importe quelle teinte avec l'IA, sans reshooting",es:"Recolorea tus productos en cualquier tono con IA, sin necesidad de refotos",it:"Ricolora i tuoi prodotti in qualsiasi tonalit\xe0 con l'IA, senza rifotografare",tr:"\xdcr\xfcnlerinizi yeniden \xe7ekim yapmadan AI ile istediğiniz renkte boyayın"},shortDescription:{en:"Change your product color fully or partially",ar:"غيّر الوان المنتج بالكامل أو أجزاء منه بسهولة",fr:"Recolorisez sans reshooting",es:"Recolorea sin refotos",it:"Ricolora senza rifotografare",tr:"Yeniden \xe7ekim yapmadan yeniden renklendir"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product_recoloring.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product_recoloring.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product_recoloring.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product_recoloring.webp"}},link:"/template/product-recoloring",isPaid:!0,category:"image",cardType:"card-2"},{landingToolId:"product-beautifier",icon:{isStroke:!1,src:"/icons/camera.svg"},title:{en:"Product Beautifier",ar:"تحسين مظهر المنتج",fr:"Embellisseur de Produit",es:"Embellecedor de Producto",it:"Abbellitore di Prodotto",tr:"\xdcr\xfcn G\xfczelleştirici"},description:{en:"Enhance and beautify your product photos with AI-powered retouching and styling",ar:"حسّن وجمّل صور منتجاتك بتقنيات التنقيح والتصميم المدعومة بالذكاء الاصطناعي",fr:"Am\xe9liorez et embellissez vos photos produits avec la retouche et le stylisme IA",es:"Mejora y embellece tus fotos de producto con retoque y estilo impulsados por IA",it:"Migliora e abbellisci le tue foto prodotto con ritocco e styling basati sull'IA",tr:"\xdcr\xfcn fotoğraflarınızı AI destekli r\xf6tuş ve stilizasyonla geliştirin ve g\xfczelleştirin"},shortDescription:{en:"Get a clean polished, professional product image",ar:"احصل على صورة نظيفة و احترافية جاهزة للنشر",fr:"Am\xe9lioration photo produit par IA",es:"Mejora de fotos de producto con IA",it:"Miglioramento foto prodotto con IA",tr:"AI destekli \xfcr\xfcn fotoğrafı geliştirme"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product_beautifier.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product_beautifier.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product_beautifier.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/product_beautifier.webp"}},link:"/template/product-beautifier",isPaid:!0,category:"image",cardType:"card-2"},{landingToolId:"flat-lay-outfit",icon:{isStroke:!1,src:"/icons/camera.svg"},title:{en:"Flat Lay",ar:"تصوير مسطح للمنتج",fr:"Tenue \xe0 plat",es:"Outfit en plano cenital",it:"Outfit Flat Lay",tr:"D\xfcz Yatay Kıyafet"},description:{en:"Show your product laid flat on a clean surface",ar:"اعرض منتجك بشكل مسطح على خلفية نظيفة و جذابة",fr:"Cr\xe9ez de superbes compositions de tenues \xe0 plat pour vos produits mode",es:"Muestra tu producto plano en una superficie limpia",it:"Mostra il tuo prodotto a platto su una superficie pulita",tr:"\xdcr\xfcn\xfcn\xfcz\xfc temiz bir y\xfczeyde d\xfcz yatay olarak g\xf6sterin"},shortDescription:{en:"Show your product laid flat on a clean surface",ar:"اعرض منتجك بشكل مسطح على خلفية نظيفة و جذابة",fr:"Montrez votre produit \xe0 plat sur une surface propre",es:"Muestra tu producto plano en una superficie limpia",it:"Mostra il tuo prodotto a platto su una superficie pulita",tr:"\xdcr\xfcn\xfcn\xfcz\xfc temiz bir y\xfczeyde d\xfcz yatay olarak g\xf6sterin"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/flat_lay_outfit.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/flat_lay_outfit.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/flat_lay_outfit.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/flat_lay_outfit.webp"}},link:"/template/flat-lay-outfit",isPaid:!0,category:"image",cardType:"card-2"},{landingToolId:"ghost-mannequin",icon:{isStroke:!1,src:"/icons/camera.svg"},title:{en:"Ghost Mannequin",ar:"عرض بدون موديل",fr:"Mannequin Fant\xf4me",es:"Maniqu\xed Fantasma",it:"Manichino Fantasma",tr:"Hayalet Manken"},description:{en:"Remove mannequins from clothing photos to create a professional hollow-man effect",ar:"أزل المانيكان من صور الملابس لإنشاء تأثير الإنسان المجوف الاحترافي",fr:"Supprimez les mannequins des photos de v\xeatements pour cr\xe9er un effet mannequin fant\xf4me professionnel",es:"Elimina maniqu\xedes de fotos de ropa para crear un efecto maniqu\xed fantasma profesional",it:"Rimuovi i manichini dalle foto di abbigliamento per 
1creare un effetto manichino fantasma professionale",tr:"Giysi fotoğraflarından mankenleri kaldırarak profesyonel hayalet manken efekti oluşturun"},shortDescription:{en:"Display garments in a clean invisible mannequin style",ar:"اعرض الملابس بشكل احترافي ثلاثي الأبعاد",fr:"Effet v\xeatement mannequin fant\xf4me pro",es:"Efecto ropa maniqu\xed fantasma profesional",it:"Effetto abbigliamento manichino fantasma pro",tr:"Profesyonel hayalet manken efekti"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/ghost_mannequin.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/ghost_mannequin.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/ghost_mannequin.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/ghost_mannequin.webp"}},link:"/template/ghost-mannequin",isPaid:!0,category:"image",cardType:"card-2"},{isFeatured:!0,landingToolId:"ai-text-to-video",icon:{isStroke:!0,src:"/icons/video-octagon.svg"},title:{en:"AI Shorts",ar:"فيديوهات قصيرة",fr:"Shorts en ligne",es:"Shorts en l\xednea",it:"Shorts online",tr:"Online Shorts"},shortDescription:{en:"Create ready-to-share videos and boost reach",ar:"أنشئ فيديوهات قصيرة جاهزة للنشر وزيادة التفاعل",fr:"Vid\xe9os pr\xeates \xe0 partager !",es:"V\xeddeos listos para compartir!",it:"Video pronti per condividere!",tr:"Paylaşım i\xe7in hazır videolar!"},description:{en:"Create ready-to-share videos and boost reach",ar:"حول فكرتك أو السكربت الخاص بك أو الإقتباسات المفضلة لديك إلى فيديو ممتع بالذكاء الاصطناعي",fr:"Transformez vos id\xe9es, script ou citations favorites en un vid\xe9o captivant avec l'IA",es:"Transforma tus ideas, guion o citas favoritas en un video atractivo con IA",it:"Trasforma le tue idee, script o citazioni favorite in un video coinvolgente con l'IA",tr:"Fikirlerinizi, betiğinizi veya favori alıntılarınızı AI ile etkileyici bir video haline getirin"},action:"ai-videos",image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ai-shorts.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ai-shorts.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ai-shorts.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/ai-shorts.webp"}},imageStyles:{className:"right-[-30px] md:right-0",rtlClassName:"right-[-80px] md:right-0"},isPaid:!0,category:"video",cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/AI%20Shorts_1x.webp",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/ai-shorts-3.webm"},{landingToolId:"add-subtitles-to-video",icon:{isStroke:!1,src:"/icons/subtitle-filled.svg"},title:{en:"Subtitles Generator",ar:"ترجمة تلقائية",fr:"G\xe9n\xe9rateur de sous-titres",es:"Generador de subt\xedtulos",it:"Generatore di sottotitoli",tr:"Altyazı Oluşturucu"},description:{en:"Convert speech into subtitles and make videos clearer",ar:"حوّل الصوت إلى نص وأضف ترجمة تلقائية للفيديو",fr:"G\xe9n\xe9rez des sous-titres \xe0 partir de vos vid\xe9os avec facilit\xe9",es:"Genera subt\xedtulos a partir de tus videos con facilidad",it:"Genera sottotitoli a partire dai tuoi video con facilit\xe0",tr:"Video'nizi AI ile d\xfczenleyin"},shortDescription:{en:"Convert speech into subtitles and make videos clearer",ar:"حوّل الصوت إلى نص وأضف ترجمة تلقائية للفيديو",fr:"Sous-titres automatiques",es:"Subt\xedtulos autom\xe1ticos",it:"Sottotitoli automatici",tr:"Otomatik altyazı"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/sg.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/sg.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/sg.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/sg.webp"}},isPaid:!1,category:"video",link:"/studio/tools/add-subtitles-to-video",cardType:"card-2",hideOnMobile:!0,supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/Subtitle%20Generator.webp"},{landingToolId:"ai-avatars",isFeatured:!0,icon:{isStroke:!0,isFill:!0,src:"/icons/profile-2user.svg"},title:{en:"AI Avatars",ar:"شخصيات رقمية",fr:"Avatars IA",es:"Avatars IA",it:"Avatars IA",tr:"Avatars IA"},description:{en:"Create your digital twin and use it across your content",ar:"أنشئ فيديوهات جاهزة للنشر لزيادة التفاعل والوصول",fr:"Cr\xe9er des avatars IA r\xe9alistes pour vos vid\xe9os et contenu",es:"Crea avatares IA realistas para tus videos y contenido",it:"Crea avatar IA realistici per i tuoi video e contenuti",tr:"Ger\xe7ek\xe7i AI avatar'lar oluşturun"},shortDescription:{en:"Create your digital twin and use it across your content",ar:"أنشئ فيديوهات جاهزة للنشر لزيادة التفاعل والوصول",fr:"Cr\xe9e votre gemme digitale",es:"Crea tu gemelo digital",it:"Crea il tuo gemello digitale",tr:"Diğerliğinizi oluşturun"},image:{light:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp"},dark:{en:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/new/imgs/avatar.webp"}},link:"/ai-studio/ai-avatars",isPaid:!0,category:"video",imageStyles:{image:"relative bottom-[-22px] right-[-60px] md:right-0",secondCardClassName:"relative bottom-[-22px] right-0"},cardType:"card-1",supToolImage:"https://storage.googleapis.com/bith-prod-assets/assets/studio/new-tools/AI%20Avatar.webp",videoUrl:"https://storage.googleapis.com/bith-prod-assets/assets/studio/apps/avatar-3.webm"}]}},71312:function(e,t,i){"use strict";i.d(t,{Cu:function(){return p},Jn:function(){return s},LG:function(){return c},OR:function(){return d},TI:function(){return a},UH:function(){return v},Zx:function(){return l},a:function(){return u},dh:function(){return f},h7:function(){return m},vf:function(){return r},zN:function(){return h}});var o=i(20931),n=i(20468);let r=[{id:"home",href:o.P2.HOME,iconVariant:"home",labelKey:"home"},{id:"library",href:o.P2.STUDIO_LIBRARY,iconVariant:"library",labelKey:"library"},{id:"templates",href:"/templates/ads",iconVariant:"templates",labelKey:"templates"}],a={"studio-photoshoot":"SP","create-ugc":"UGC","virtual-try-on":"Virtual","ai-influencer":"AII","ai-avatars":"Avatar","ai-shorts":"AShorts","ai-text-to-vi
1deo":"AShorts","white-background":"WB","change-background-color":"CB","background-removal":"BgRemove","product-recoloring":"ProdRecolor","product-beautifier":"ProdBeautify","flat-lay-outfit":"FlatLay","ghost-mannequin":"GhostMannequin","ai-text-to-image":"IG","ai-image-editor":"IE","ai-image-upscale":"IUP","image-to-video":"I2V","image-upscale":"IUP","text-to-speech":"Voiceover","ai-text-to-speech":"Voiceover","text-to-video":"T2V","text-to-scene":"T2V","image-to-scene":"I2V","quote-to-video":"T2V","add-subtitles-to-video":"Subtitles","trim-and-edit-your-video":"VideoEditor"},l=(e,t)=>e&&a[e]||("apps"===t?"SP":"IE"),s=["create-ugc","studio-photoshoot","ai-image-editor"],d=["studio-photoshoot","product-beautifier","ai-influencer","white-background"],u=["ai-image-editor","image-to-scene","ai-text-to-image","text-to-scene"],c=["create-ugc","studio-photoshoot","ai-influencer","virtual-try-on"],p=["ai-image-editor","image-to-scene","ai-text-to-image","ai-text-to-speech"],m={"studio-photoshoot":{src:"https://storage.googleapis.com/bith-prod-assets/assets/landings/hero/Placeholders/Photoshoot_placeholder.webp",videoSrc:"https://storage.googleapis.com/bith-prod-assets/assets/landings/hero/StudioPhotoshoot_Card_Web.mp4",objectFit:"cover",objectPosition:"center center"},"ai-image-editor":{src:"https://storage.googleapis.com/bith-prod-assets/assets/landings/hero/Placeholders/Placeholders_Image_Editor.webp",videoSrc:"https://storage.googleapis.com/bith-prod-assets/assets/landings/hero/Image_Editor_Card.mp4",objectFit:"cover",objectPosition:"center center"},"create-ugc":{src:"https://storage.googleapis.com/bith-prod-assets/assets/landings/hero/Placeholders/UGC_placeholder.webp",videoSrc:"https://storage.googleapis.com/bith-prod-assets/assets/landings/hero/UGC_Card_Web.mp4",objectFit:"cover",objectPosition:"center center"}},h={enabled:!0,percent:75},f={landingToolId:"create-ugc",icon:{isStroke:!0,isFill:!0,src:"/icons/profile-2user.svg"},title:{en:"UGC Video Generator",ar:"فيديوهات UGC",fr:"G\xe9n\xe9rateur de vid\xe9os UGC",es:"Generador de videos UGC",it:"Generatore video UGC",tr:"UGC Video Oluşturucu"},description:{en:"Generate authentic user-generated content with AI",ar:"أنشئ فيديوهات واقعية وجاهزة للنشر بدون تصوير أو مونتاج",fr:"G\xe9n\xe9rez du contenu utilisateur authentique gr\xe2ce \xe0 l’IA",es:"Genera contenido aut\xe9ntico generado por usuarios con IA",it:"Genera contenuti utente autentici con l’IA",tr:"Yapay zeka ile \xf6zg\xfcn kullanıcı i\xe7eriği oluşturun"},shortDescription:{en:"Avatars presenting product in speech",ar:"أنشئ فيديوهات واقعية ترويجية جاهزة للنشر بدون تصوير أو مونتاج",fr:"Des avatars pr\xe9sentent le produit \xe0 l’oral",es:"Avatares presentan el producto en voz",it:"Avatar che presentano il prodotto a voce",tr:"\xdcr\xfcn\xfc konuşarak sunan avatarlar"},image:{light:{en:"/images/create-ugc-hero.png",ar:"/images/create-ugc-hero.png"},dark:{en:"/images/create-ugc-hero.png",ar:"/images/create-ugc-hero.png"}},isPaid:!1,isSoon:!1,link:"/apps/ugc-video",cardType:n.RO.CARD_1},v="bith:studio-sidebar-collapsed:v1"},9827:function(e,t){"use strict";
1t.Z={subtitlesOptions:[{value:"single",label:{en:"Single",ar:"جملة واحدة",es:"Soltera",fr:"C\xe9libataire",it:"Singolo",tr:"Bekar"}},{value:"group",label:{en:"Group",ar:"مجموعة",es:"Grupo",fr:"Groupe",it:"Gruppo",tr:"Grup"}},{value:"sentence",label:{en:"Sentence",ar:"جملة",es:"Frase",fr:"Phrase",it:"Frase",tr:"C\xfcmle"}}],subtitlesEffects:[{value:"plain",label:{en:"Plain Text",ar:"نص عادي",es:"Texto simple",fr:"Texte simple",it:"Testo semplice",tr:"D\xfcz Metin"}},{value:"word-highlight",label:{en:"One Word Highlighted",ar:"تمييز كلمة واحدة",es:"Una palabra resaltada",fr:"Un mot surlign\xe9",it:"Una parola evidenziata",tr:"Bir Kelime Vurgulandı"},highlightColor:"#6681D3",textColor:"#ffffff"},{value:"word-colored",label:{en:"One Word Highlighted",ar:"تمييز كلمة واحدة",es:"Una palabra resaltada",fr:"Un mot surlign\xe9",it:"Una parola evidenziata",tr:"Bir Kelime Vurgulandı"},textColor:"#6681D3"}],textStylesPresets:[{id:"preset-1",label:{en:"Hello",ar:"القالب 1",es:"Hello",fr:"Pr\xe9r\xe9glage 1",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#6D5DD3",strokeColor:"#ffffff",strokeWidth:3},font:{value:4,label:"LuckiestGuy"}},{id:"preset-2",label:{en:"Hello",ar:"القالب 2",es:"Hello",fr:"Pr\xe9r\xe9glage 2",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#6D5DD3",strokeColor:"#ffffff",strokeWidth:3},font:{value:4,label:"LuckiestGuy"}},{id:"preset-3",label:{en:"Hello",ar:"القالب 3",es:"Hello",fr:"Pr\xe9r\xe9glage 3",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#ffffff",strokeColor:"#6D5DD3",strokeWidth:3},font:{value:4,label:"LuckiestGuy"}},{id:"preset-4",label:{en:"Hello",ar:"القالب 4",es:"Hello",fr:"Pr\xe9r\xe9glage 4",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#FFA800",strokeColor:"#FFD600",strokeWidth:2},font:{value:30,label:"Nunito"}},{id:"preset-5",label:{en:"Hello",ar:"القالب 5",es:"Hello",fr:"Pr\xe9r\xe9glage 5",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#6D5DD3",strokeColor:"#C9A9D1",strokeWidth:2},font:{value:30,label:"Nunito"}},{id:"preset-6",label:{en:"Hello",ar:"القالب 6",es:"Hello",fr:"Pr\xe9r\xe9glage 6",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#CFD2D5",strokeColor:"#000000",strokeWidth:2},font:{value:30,label:"Nunito"}},{id:"preset-6",label:{en:"Hello",ar:"القالب 6",es:"Hello",fr:"Pr\xe9r\xe9glage 6",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#CFD2D5",strokeColor:"#000000",strokeWidth:2},font:{value:30,label:"Nunito"}},{id:"preset-6",label:{en:"Hello",ar:"القالب 6",es:"Hello",fr:"Pr\xe9r\xe9glage 6",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#CFD2D5",strokeColor:"#000000",strokeWidth:2},font:{value:30,label:"Nunito"}},{id:"preset-6",label:{en:"Hello",ar:"القالب 6",es:"Hello",fr:"Pr\xe9r\xe9glage 6",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#CFD2D5",strokeColor:"#000000",strokeWidth:2},font:{value:30,label:"Nunito"}},{id:"preset-6",label:{en:"Hello",ar:"القالب 6",es:"Hello",fr:"Pr\xe9r\xe9glage 6",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#CFD2D5",strokeColor:"#000000",strokeWidth:2},font:{value:30,label:"Nunito"}},{id:"preset-6",label:{en:"Hello",ar:"القالب 6",es:"Hello",fr:"Pr\xe9r\xe9glage 6",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#CFD2D5",strokeColor:"#000000",strokeWidth:2},font:{value:30,label:"Nunito"}},{id:"preset-6",label:{en:"Hello",ar:"القالب 6",es:"Hello",fr:"Pr\xe9r\xe9glage 6",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#CFD2D5",strokeColor:"#000000",strokeWidth:2},font:{value:30,label:"Nunito"}},{id:"preset-6",label:{en:"Hello",ar:"القالب 6",es:"Hello",fr:"Pr\xe9r\xe9glage 6",it:"Ciao",tr:"Merhaba"},stylesProperties:{textColor:"#CFD2D5",strokeColor:"#000000",strokeWidth:2},font:{value:30,label:"Nunito"}}]}},58446:function(e,t,i){"use strict";var o,n,r,a,l,s;i.d(t,{NY:function(){return n},Y7:function(){return o},fS:function(){return r}}),(a=o||(o={})).IMAGE_TO_VIDEO="image_to_scene",a.TEXT_TO_VIDEO="text_to_scene",(l=n||(n={})).STOCK_VIDEOS="stock_videos",l.AI_GENERATED_IMAGES="ai_images",l.STOCK_IMAGES="stock_images",l.AI_GENERATED_VIDEOS="ai_videos",(s=r||(r={})).STOCK_IMAGE="stock_image",s.STOCK_VIDEO="stock_videos",s.AI_GENERATED_IMAGE="ai_generated_image",s.AI_GENERATED_VIDEO="ai_generated_video",t.ZP={videoThemes:[{value:"educational",label:{en:"Educational",ar:"تعليمي",es:"Educativo",fr:"\xc9ducatif",it:"Educativo",tr:"Eğitici"}},{value:"storytelling",label:{en:"Storytelling",ar:"رواية القصص",es:"Narraci\xf3n de cuentos",fr:"R\xe9cit",it:"Narrativa",tr:"Hikaye Anlatımı"}}],videoTones:[{value:"normal",label:{en:"Normal",ar:"طبيعي",es:"Normal",fr:"Normal",it:"Normale",tr:"Normal"}},{value:"mysterious",label:{en:"Mysterious",ar:"غامض",es:"Misterioso",fr:"Myst\xe9rieux",it:"Misterioso",tr:"Gizemli"}},{value:"funny",label:{en:"Funny",ar:"مضحك",es:"Divertido",fr:"Dr\xf4le",it:"Divertente",tr:"Komik"}},{value:"horror",label:{en:"Horror",ar:"رعب",es:"Horror",fr:"Horreur",it:"Orrore",tr:"Korku"}}],videoDurationOptions:[{value:30,credits:60,aiImagesCredits:75,charactersLimit:{ar:384,en:400,es:400,fr:400,pt:400,de:400,tr:400,it:400,ru:400,uk:400,pl:400,ro:400},label:{en:"30 sec.",ar:"30 ثانية",es:"30 seg.",fr:"30 sec.",it:"30 sec.",tr:"30 sn."}},{value:60,credits:80,aiImagesCredits:150,charactersLimit:{ar:700,en:800,es:800,fr:800,pt:800,de:800,tr:800,it:800,ru:800,uk:800,pl:800,ro:800},label:{en:"1 min.",ar:"1 دقيقة",es:"1 min.",fr:"1 min.",it:"1 min.",tr:"1 dk."}},{value:120,charactersLimit:{ar:1600,en:1800,es:1800,fr:1800,pt:1800,de:1800,tr:1800,it:1800,ru:1800,uk:1800,pl:1800,ro:1800},credits:100,aiImagesCredits:250,label:{en:"2 min.",ar:"2 دقائق",es:"2 min.",fr:"2 min.",it:"2 min.",tr:"2 dk."}},{value:180,charactersLimit:{ar:2300,en:2600,es:2600,fr:2600,pt:2600,de:2600,tr:2600,it:2600,ru:2600,uk:2600,pl:2600,ro:2600},credits:120,aiImagesCredits:350,label:{en:"3 min.",ar:"3 دقائق",es:"3 min.",fr:"3 min.",it:"3 min.",tr:"3 dk."}}],t2vAspectRatios:[{value:"9:16",label:{en:"Portrait",ar:"بالطول",es:"Retrato",fr:"Portrait",it:"Ritratto",tr:"Dikey"},icon:"/icons/Vector-1.svg"},{value:"16:9",label:{en:"Landscape",ar:"بالعرض",es:"Paisaje",fr:"Paysage",it:"Paesaggio",tr:"Yatay"},icon:"/icons/Vector.svg"}],scriptLanguageOptions:[{value:"en",label:{en:"English",ar:"الإنجليزية",es:"Ingl\xe9s",fr:"Anglais",it:"Inglese",tr:"İngilizce"}},{value:"ar",label:{en:"Arabic",ar:"العربية",es:"\xc1rabe",fr:"Arabe",it:"Arabo",tr:"Arap\xe7a"}},{value:"es",label:{en:"Espa\xf1ol",ar:"الإسبانية",es:"Espa\xf1ol",fr:"Espagnol",it:"Spagnolo",tr:"İspanyolca"}},{value:"fr",label:{en:"French",ar:"الفرنسية",es:"Franc\xe9s",fr:"Fran\xe7ais",it:"Francese",tr:"Fransızca"}},{value:"pt",label:{en:"Portugese",ar:"البرتغالية",es:"Portugu\xe9s",fr:"Portugais",it:"Portoghese",tr:"Portekizce"}},{value:"de",label:{en:"German",ar:"الألمانية",es:"Alem\xe1n",fr:"Allemand",it:"Tedesco",tr:"Almanca"}},{value:"tr",label:{en:"Turkish",ar:"التركية",es:"Turco",fr:"Turc",it:"Turco",tr:"T\xfcrk\xe7e"}},{value:"it",label:{en:"Italian",ar:"الإيطالية",es:"Italiano",fr:"Italien",it:"Italiano",tr:"İtalyanca"}},{value:"ru",label:{en:"Russian",ar:"الروسية",es:"Ruso",fr:"Russe",it:"Russo",tr:"Rus\xe7a"}},{value:"uk",label:{en:"Ukrainian",ar:"الأوكرانية",es:"Ucraniano",fr:"Ukrainien",it:"Ucraino",tr:"Ukraynaca"}},{value:"pl",label:{en:"Polish",ar:"البولندية",es:"Polaco",fr:"Polonais",it:"Polacco",tr:"Leh\xe7e"}},{value:"ro",label:{en:"Romanian",ar:"الرومانية",es:"Rumano",fr:"Roumain",it:"Rumeno",tr:"Romence"}}],genders:{male:{en:"Male",ar:"ذكر",es:"Masculino",fr:"m\xe2le",it:"Maschio",tr:"Erkek"},female:{en:"Female",ar:"أُنثى",es:"Femenino",fr:"Femelle",it:"Femminile",tr:"Kadın"}},flowSteps:[{title:{en:"Video Settings",ar:"اعدادات الفيديو",es:"
1Configuraci\xf3n de video",fr:"Param\xe8tres de la vid\xe9o",it:"Impostazioni video",tr:"Video Ayarları"},tabTitle:{en:"Script",ar:"النص",es:"Gui\xf3n",fr:"Sc\xe9nario",it:"Script",tr:"Senaryo"},icon:"/icons/note-text.svg"},{title:{en:"Voiceover Settings",ar:"إعدادات التعليق الصوتي",es:"Configuraci\xf3n de locuci\xf3n",fr:"Param\xe8tres de la voix off",it:"Impostazioni della voce",tr:"Seslendirme Ayarları"},tabTitle:{en:"Voiceover",ar:"التعليق الصوتي",es:"Locuci\xf3n",fr:"Voix off",it:"Voce",tr:"Seslendirme"},icon:"/icons/microphone-2.svg"}],imagesStyles:[{value:null,title:{en:"Default style",ar:"النمط إلافتراضي",es:"Estilo predeterminado",fr:"Style par d\xe9faut",it:"Stile predefinito",tr:"Varsayılan stil"},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Default%20Style.webp"},{value:"photorealistic",title:{en:"Photorealistic",ar:"صور واقعية",es:"Fotorrealista",fr:"Photor\xe9aliste",it:"Fotorealistico",tr:"Fotoger\xe7ek\xe7i"},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/new/Default.webp"},{value:"enhance",title:{en:"Enhance",ar:"تحسين",es:"Mejorar",fr:"Am\xe9liorer",it:"Migliorare",tr:"Geliştirmek"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Enhance.webp"},{value:"anime",title:{en:"Anime",ar:"أنمي",es:"Anime",fr:"Anime",it:"Anime",tr:"Anime"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Anime.webp"},{value:"cinematic",title:{en:"Cinematic",ar:"سينمائي",es:"Cinematogr\xe1fico",fr:"Cin\xe9matographique",it:"Cinematografico",tr:"Sinema"},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/new/Cinematic.webp"},{value:"mysterious",title:{en:"Mysterious",ar:"غامض",es:"Misterioso",fr:"Myst\xe9rieux",it:"Misterioso",tr:"Gizemli"},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/new/Mysterious.webp"},{value:"horror",title:{en:"Horror",ar:"رعب",es:"Terror",fr:"Horreur",it:"Orrore",tr:"Korku"},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/new/Horror.webp"},{value:"historical",title:{en:"Historical",ar:"تاريخي",es:"Hist\xf3rico",fr:"Historique",it:"Storico",tr:"Tarihi"},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/new/Historical.webp"},{value:"neon-punk",title:{en:"Neon Punk",ar:"نيون",es:"Punk de ne\xf3n",fr:"N\xe9on punk",it:"Punk al neon",tr:"Neon Punk"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Neon%20Punk.webp"},{value:"photographic",title:{en:"Photographic",ar:"فوتوغرافي",es:"Fotogr\xe1fico",fr:"Photographique",it:"Fotografico",tr:"Fotoğrafik"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Photographic.webp"},{value:"analog-film",title:{en:"Analog Film",ar:"فيلم تناظري (فيلم أنالوج)",es:"Pel\xedcula anal\xf3gica",fr:"Film analogique",it:"Pellicola analogica",tr:"Analog Film"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Analog%20Film.webp"},{value:"vibrant-and-comical",title:{en:"Vibrant Comical",ar:"كوميدي نابض بالحياة",es:"Vibrante y c\xf3mico",fr:"Vibrant et comique",it:"Vibrante e comico",tr:"Canlı ve Komik"},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/new/Vibrant%20%26%20Comical.webp"},{value:"comic-book",title:{en:"Comic Book",ar:"هزلي",es:"C\xf3mic",fr:"Bande dessin\xe9e",it:"Fumetto",tr:"\xc7izgi Roman"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/new/Vibrant%20%26%20Comical.webp"},{value:"digital-art",title:{en:"Digital Art",ar:"فن رقمي",es:"Arte digital",fr:"Art num\xe9rique",it:"Arte digitale",tr:"Dijital Sanat"},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/new/Digital%20Art.webp"},{value:"fantasy-art",title:{en:"Fantasy Art",ar:"فن خيالي",es:"Arte fant\xe1stico",fr:"Art fantastique",it:"Arte fantastica",tr:"Fantastik Sanat"},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/new/Fantasy%20Art.webp"},{value:"isometric",title:{en:"Isometric",ar:"متساوي القياس",es:"Isom\xe9trico",fr:"Isom\xe9trique",it:"Isometrico",tr:"İzometrik"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Isometric.webp"},{value:"line-art",title:{en:"Line Art",ar:"رسم بخظ اليد",es:"Arte lineal",fr:"Art lin\xe9aire",it:"Line Art",tr:"\xc7izgi Sanatı"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Line%20Art.webp"},{value:"low-poly",title:{en:"Low Poly",ar:"مضلع",es:"Bajo poli",fr:"Faible poly",it:"Basso poli",tr:"D\xfcş\xfck Poli"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Low%20Poly.webp"},{value:"modeling-compound",title:{en:"Modeling Compound",ar:"صلصالي",es:"Compuesto de modelado",fr:"Compos\xe9 de mod\xe9lisation",it:"Composto di modellazione",tr:"Modelleme Bileşiği"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Modeling%20Compound.webp"},{value:"origami",title:{en:"Origami",ar:"تشكيل ورقي",es:"Origami",fr:"Origami",
1it:"Origami",tr:"Origami"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Origami.webp"},{value:"pixel-art",title:{en:"Pixel Art",ar:"بكسل",es:"Arte de p\xedxeles",fr:"Art pixelis\xe9",it:"Pixel Art",tr:"Piksel Sanatı"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Pixel%20Art.webp"},{value:"tile-texture",title:{en:"Tile Texture",ar:"فسيفساء",es:"Textura de mosaico",fr:"Texture de tuile",it:"Texture piastrelle",tr:"Karo Dokusu"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Tile%20Texture.webp"},{value:"3d-model",title:{en:"3D Model",ar:"نموذج ثلاثي الأبعاد",es:"Modelo 3D",fr:"Mod\xe8le 3D",it:"Modello 3D",tr:"3D Model"},isDeleted:!0,imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/3D%20Model.webp"}],imagesAspectRatios:[{label:{en:"Square",ar:"مربع",es:"Cuadrado",fr:"Carr\xe9",it:"Quadrato",tr:"Kare"},value:"square",icon:"/icons/square.svg",dimensions:{width:512,height:512}},{label:{en:"Square HD",ar:"مربع HD",es:"Cuadrado HD",fr:"Carr\xe9 HD",it:"Quadrato HD",tr:"Kare HD"},value:"square_hd",icon:"/icons/square.svg",dimensions:{width:1024,height:1024}},{label:{en:"Landscape (4:3)",ar:"بالعرض (4:3)",es:"Paisaje (4:3)",fr:"Paysage (4:3)",it:"Paesaggio (4:3)",tr:"Manzara (4:3)"},value:"landscape_4_3",icon:"/icons/landcape.svg",dimensions:{width:1024,height:768}},{label:{en:"Landscape (16:9)",ar:"بالعرض (16:9)",es:"Paisaje (16:9)",fr:"Paysage (16:9)",it:"Paesaggio (16:9)",tr:"Manzara (16:9)"},value:"landscape_16_9",icon:"/icons/landcape.svg",dimensions:{width:1024,height:576}},{label:{en:"Portrait (3:4)",ar:"بالطول (3:4)",es:"Retrato (3:4)",fr:"Portrait (3:4)",it:"Ritratto (3:4)",tr:"Portre (3:4)"},value:"portrait_3_4",icon:"/icons/portrait.svg",dimensions:{width:768,height:1024}},{label:{en:"Portrait (9:16)",ar:"بالطول (9:16)",es:"Retrato (9:16)",fr:"Portrait (9:16)",it:"Ritratto (9:16)",tr:"Portre (9:16)"},value:"portrait_9_16",icon:"/icons/portrait.svg",dimensions:{width:576,height:1024}}],sceneDropdownOptions:[{value:"delete",label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},svg:"/icons/trash.svg"},{value:"split",label:{en:"Split",ar:"قطع",es:"Dividir",fr:"Diviser",it:"Dividi",tr:"B\xf6l"},svg:"/icons/scissor.svg",svgOptions:{stroke:!0}}],mobileSceneDropdownOptions:[{value:"delete",label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},svg:"/icons/trash.svg"},{value:"split",label:{en:"Split",ar:"قطع",es:"Dividir",fr:"Diviser",it:"Dividi",tr:"B\xf6l"},svg:"/icons/scissor.svg",svgOptions:{stroke:!0}},{value:"edit-scene",label:{en:"Edit Scene",ar:"تحرير المشهد",es:"Editar escena",fr:"Modifier la sc\xe8ne",it:"Modifica scena",tr:"Sahneyi D\xfczenle"},svg:"/icons/edit-2.svg"}],textToSceneGeneratorTypes:[{label:{en:"Image to Scene",ar:"صورة إلى مشهد",es:"Imagen a escena",fr:"Image \xe0 la sc\xe8ne",it:"Immagine a scena",tr:"G\xf6r\xfcnt\xfcden Sahneye"},value:"image_to_scene",icon:"/icons/gallery.svg"},{label:{en:"Text to Scene",ar:"نص إلى مشهد",es:"Texto a escena",fr:"Texte \xe0 la sc\xe8ne",it:"Testo a scena",tr:"Metinden Sahneye"},value:"text_to_scene",icon:"/icons/text.svg"}],sceneDurations:[{label:{en:"5 sec",ar:"5 ثواني",es:"5 seg",fr:"5 sec",it:"5 sec",tr:"5 sn"},value:5},{label:{en:"10 sec",ar:"10 ثواني",es:"10 seg",fr:"10 sec",it:"10 sec",tr:"10 sn"},value:10}],textToSceneGeneratorOptions:o,textToSceneAloowedImageTypes:["image/jpeg","image/png","image/webp"],visualsSources:[{value:"ai_images",title:{en:"AI Generated Images",ar:"صور مولدة بالذكاء الاصطناعي",es:"Im\xe1genes generadas por IA",fr:"Images g\xe9n\xe9r\xe9es par IA",it:"Immagini generate da IA",tr:"AI Oluşturulan G\xf6r\xfcnt\xfcler"},description:{en:"Use AI-generated images for your scenes",ar:"استخدم الصور المولدة بالذكاء الاصطناعي لمشاهدك",es:"Utiliza im\xe1genes generadas por IA para tus escenas",fr:"Utilisez des images g\xe9n\xe9r\xe9es par IA pour vos sc\xe8nes",it:"Utilizza immagini generate da IA per le tue scene",tr:"Sahneleriniz i\xe7in AI tarafından oluşturulan g\xf6r\xfcnt\xfcleri kullanın"},video:{"16:9":{en:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/english/AI%20Images%20EN-Landscape.webm",ar:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/arabic/AI%20Images%20AR-Landscape.webm",thumbnail:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/thumbnails/AI%20Thumb_Landscape.png"},"9:16":{en:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/english/AI%20Images%20EN-Portrait.webm",ar:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/arabic/AI%20Images%20AR-Portrait.webm",thumbnail:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/thumbnails/AI%20Thumb_Portrait.png"}},icon:"/icons/gallery.svg",imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Anime.webp",credits:40},{value:"stock_videos",title:{en:"Stock Videos",ar:"مقاطع فيديو جاهزة",es:"Videos de stock",fr:"Vid\xe9os de stock",it:"Video stock",tr:"Stok Videolar"},description:{en:"Use stock video clips for your scenes",ar:"استخدم مقاطع الفيديو الجاهزة لمشاهدك",es:"Usa clips de video de stock para tus escenas",fr:"Utilisez des clips vid\xe9o de stock pour vos sc\xe8nes",it:"Utilizza clip video di stock  per le tue scene",tr:"Sahneleriniz i\xe7in 
1stok video klipleri kullanın"},video:{"16:9":{en:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/english/Stock%20Video%20EN-Landscape.webm",ar:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/arabic/Stock%20Video%20AR-Landscape.webm",thumbnail:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/thumbnails/Stock%20Thumb_Landscape.jpg"},"9:16":{en:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/english/Stock%20Video%20EN-Portrait.webm",ar:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/arabic/Stock%20Video%20AR-Portrait.webm",thumbnail:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/samples/thumbnails/Stock%20Thumb_Portrait.jpg"}},icon:"/icons/video-octagon.svg",svgProps:{isStroke:!0},imageUrl:"https://storage.googleapis.com/bith-prod-assets/assets/t2v/image-style/Anime.webp",credits:80}],visualsSourcesValues:n,quoteToVideoVisualSources:[{value:"stock_videos",title:{en:"Stock Video",ar:"مقطع فيديو جاهز",es:"Video de stock",fr:"Vid\xe9o de stock",it:"Video stock",tr:"Stok Video"},description:{en:"Use stock video for your quote",ar:"استخدم مقطع فيديو جاهز للاقتباس",es:"Utiliza un video de stock para el gui\xf3n",fr:"Utilisez un vid\xe9o de stock pour le texte",it:"Utilizza un video di stock per il testo",tr:"Stok Video"},image:{en:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/images/English/Stock%20Video.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/images/Arabic/Stock%20Video.webp"},video:{en:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/English/new/Stock%20Video.webm",ar:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/Arabic/new/Stock%20Video.webm"},credits:25},{value:"ai_generated_image",title:{en:"AI Image",ar:"صورة ذكاء اصطناعي",es:"Imagen de IA",fr:"Image de IA",it:"Immagine di IA",tr:"AI Oluşturulan G\xf6r\xfcnt\xfc"},description:{en:"Use AI-generated image for your quote",ar:"استخدم صورة مولدة بالذكاء الاصطناعي للاقتباس",es:"Utiliza una imagen generada por IA para el gui\xf3n",fr:"Utilisez une image g\xe9n\xe9r\xe9e par IA pour le texte",it:"Utilizza un'immagine generate da IA per il testo",tr:"AI Oluşturulan G\xf6r\xfcnt\xfc"},image:{en:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/images/English/AI%20Image.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/images/Arabic/AI%20Image.webp"},video:{en:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/English/new/AI%20Images.webm",ar:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/Arabic/new/AI%20Images.webm"}},{value:"ai_generated_video",title:{en:"AI Video",ar:"مقطع فيديو ذكاء اصطناعي",es:"Video de IA",fr:"Vid\xe9o de IA",it:"Video di IA",tr:"AI Oluşturulan Video"},description:{en:"Use AI-generated video for your quote",ar:"استخدم مقطع فيديو مولد بالذكاء الاصطناعي للاقتباس",es:"Utiliza un video generado por IA para el gui\xf3n",fr:"Utilisez un vid\xe9o g\xe9n\xe9r\xe9 par IA pour le texte",it:"Utilizza un video generato da IA per il testo",tr:"AI Oluşturulan Video"},image:{en:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/images/English/AI%20Video.webp",ar:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/images/Arabic/AI%20Video.webp"},video:{en:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/English/new/AI%20Videos.webm",ar:"https://storage.googleapis.com/bith-prod-assets/assets/q2v/example-videos/Arabic/new/AI%20Videos.webm"}}],defaultTextPosition:{x:"7.5%",y:"50%"},defaultStaticOverlay:{include:1,opacity:.3}}},20931:function(e,t,i){"use strict";var o,n,r,a,l,s,d,u,c,p,m,h,f,v,g,y,b,A,x,w,_,S,C,k,T,E,P,I,D,O,N,j,M,R,z,L,V,F,U,G,B,Z,q,H,W,Y;i.d(t,{$_:function(){return eL},$q:function(){return e4},BZ:function(){return eq},Bz:function(){return eP},CH:function(){return eD},CK:function(){return e3},Ch:function(){return C},Ci:function(){return eJ},DK:function(){return x},Dp:function(){return ed},EU:function(){return es},Fz:function(){return u},Gz:function(){return eQ},H7:function(){return er},J5:function(){return m},Js:function(){return eK},K_:function(){return K},Kt:function(){return eu},LE:function(){return eO},LY:function(){return eG},Lf:function(){return $},M3:function(){return eN},MF:function(){return n},Nm:function(){return r},Ok:function(){return eA},P2:function(){return p},P3:function(){return e5},QP:function(){return f},Qr:function(){return eI},R0:function(){return J},Rr:function(){return y},SC:function(){return S},SX:function(){return ei},TU:function(){return Q},Ti:function(){return eY},UC:function(){return eV},WJ:function(){return ef},WQ:function(){return eB},XJ:function(){return eF},XL:function(){return eZ},XU:function(){return ep},Z6:function(){return g},Zo:function(){return eb},Zs:function(){return eU},_C:function(){return el},_i:function(){return ec},b0:function(){return e_},bt:function(){return eh},c:function(){return eH},cn:function(){return et},dT:function(){return eW},dU:function(){return v},dt:function(){return ea},dw:function(){return eX},eE:function(){return _},eF:function(){return s},f5:function(){return o},fQ:function(){return d},fy:function(){return X},fz:function(){return ej},h4:function(){return ew},hF:function(){return e$},jm:function(){return em},kG:function(){return e2},l1:function(){return w},mQ:function(){return en},oL:function(){return ez},oc:function(){return ex},px:function(){return eM},uX:function(){return a},ut:function(){return eT},uw:function(){return eC},w1:function(){return e0},xP:function(){return e1},xd:function(){return eE},yC:function(){return eR},zI:function(){return eo},zX:function(){return ee},zq:function(){return eS}});let K="YYYY-MM-DD hh:mm:ss",Q="https://storage.googleapis.com/bith-prod-assets/assets",$=250,X=30,J=2048,ee=10240,et=250,ei=8388608,eo=2147483648;(k=o||(o={})).API_TOKEN="API_TOKEN",k.SALLA_API_TOKEN="SALLA_API_TOKEN",k.CURRENT_USER="CURRENT_USER",k.LANGUAGE="LANGUAGE",k.DIRECTION="DIRECTION",k.FCM_TOKEN="FCM_TOKEN",k.VERIFICATION_STATUS="V_S",k.DISTINCT_ID="MP_DI",k.FEATURES_MODAL="FEA_MOD",k.T2V_USAGE="t2v_u",(T=n||(n={})).API_TOKEN="API_TOKEN",T.APP_LOGOUT="APP_LOGOUT",T.CURRENT_USER="CURRENT_USER",T.SALLA_API_TOKEN="SALLA_API_TOKEN",T.SALLA_APP_LOGOUT="SALLA_APP_LOGOUT",T.SALLA_CURRENT_USER="SALLA_CURRENT_USER",T.SWITCH_LANGUAGE="SWITCH_LANGUAGE",T.SO
1CKET="SOCKET",T.SCROLL="SCROLL",T.SOCIAL_PROVIDERS="SOCIAL_PROVIDERS",T.TEAM_MEMBERS_ROLES="TEAM_MEMBERS_ROLES",T.REPORT_REASONS="REPORT_REASONS",T.FONT_FAMILIES="FONT_FAMILIES",T.TOGGLE_SIDE_BAR="TOGGLE_SIDE_BAR",T.CLEAR_EDITING_FLOW="CLEAR_EDITING_FLOW",T.RESIZER_TEMPLATES="RESIZER_TEMPLATES",T.LANGUAGES="LANGUAGES",(E=r||(r={})).LTR="ltr",E.RTL="rtl";let en={LTR:"ltr",RTL:"rtl"},er={AR:{value:"ar",dir:"rtl",label:"عربي"},EN:{value:"en",dir:"ltr",label:"English"},ES:{value:"es",dir:"ltr",label:"Spanish"},FR:{value:"fr",dir:"ltr",label:"French"},IT:{value:"it",dir:"ltr",label:"Italian"},TR:{value:"tr",dir:"ltr",label:"Turkish"}};(P=a||(a={})).LIGHT="light",P.DARK="dark",(I=l||(l={})).FILLED="filled",I.TRANSPARENT="transparent";let ea=[{value:"filled",key:"filled"},{value:"transparent",key:"transparent"}];(D=s||(s={})).AR="terms-and-conditions-ar",D.EN="terms-and-conditions-en",D.ES="terms-and-conditions-es",D.FR="terms-and-conditions-fr",D.IT="terms-and-conditions-it",D.TR="terms-and-conditions-tr",(O=d||(d={})).AR="privacy-policy-ar",O.EN="privacy-policy-en",O.ES="privacy-policy-es",O.FR="privacy-policy-fr",O.IT="privacy-policy-it",O.TR="privacy-policy-tr",(N=u||(u={})).AR="bith-guide-ar",N.EN="bith-guide-en",N.ES="bith-guide-es",N.FR="bith-guide-fr",N.IT="bith-guide-it",N.TR="bith-guide-tr";let el={email:/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9-]+(?:\.[a-zA-Z0-9-]+)*$/,username:/^[^!@#$%^&*]+$/,twitchClipUrl:/^(https:\/\/(.){3,5}\.twitch\.tv\/)(.){1,}/g,facebookVideos:/^https?:\/\/fb\.watch|^https?:\/\/((web\.|www\.)facebook\.com\/|.*\/)(video(s)?|watch|story|\/)(\.php?|\/).+$/,youtubeVideos:/^((?:https?:)?\/\/)?((?:www|m)\.)?((?:youtube(-nocookie)?\.com|youtu.be))(\/(?:[\w\-]+\?v=|embed\/|v\/)?)([\w\-]+)(\S+)?$/g,url:/(https?:\/\/[^\s]+)/};(j=c||(c={})).FACEBOOK="https://www.facebook.com/BithAIArabic?mibextid=ZbWKwL",j.DISCORD="https://discord.gg/aFWB5tkwJh",j.DISCORD_EN="https://discord.gg/WkSnNud87V",j.INSTAGRAM="https://www.instagram.com/bithaiarabic/",j.TWITTER="https://twitter.com/BithTvOfficial",j.TIKTOK="https://www.tiktok.com/@bith.tv",j.LINKDIN="https://www.linkedin.com/company/bithtv/",j.YOUTUBE="https://www.youtube.com/channel/UCLmypjzBNUqV7plyOD1cIqg",j.CONTACT_US="[email protected]";let es={newPlans:"shwy",waitingList:"shw",ugcSceneEditIntro:"ugcSceneEditIntro"},ed={en:"https://www.twitch.tv/shroud/clip/ScrumptiousStrangeAardvarkDansGame-saGWgSaVIlpBVUBV?filter=clips&range=all&sort=time",ar:"https://www.twitch.tv/vipp33r/clip/CallousBashfulBatteryTBTacoLeft-j-pB2mI-IVe-Ihbd?filter=clips&range=all&sort=time",es:"https://www.twitch.tv/shroud/clip/ScrumptiousStrangeAardvarkDansGame-saGWgSaVIlpBVUBV?filter=clips&range=all&sort=time",fr:"https://www.twitch.tv/shroud/clip/ScrumptiousStrangeAardvarkDansGame-saGWgSaVIlpBVUBV?filter=clips&range=all&sort=time",it:"https://www.twitch.tv/shroud/clip/ScrumptiousStrangeAardvarkDansGame-saGWgSaVIlpBVUBV?filter=clips&range=all&sort=time",tr:"https://www.twitch.tv/shroud/clip/ScrumptiousStrangeAardvarkDansGame-saGWgSaVIlpBVUBV?filter=clips&range=all&sort=time"};(M=p||(p={})).HOME="/",M.PRICING="/pricing",M.ACCOUNT="/account",M.STUDIO="/studio/videos",M.STUDIO_VIDEOS="/studio/videos",M.STUDIO_FOLDERS="/studio/folders",M.STUDIO_ACCOUNT="/studio/account",M.STUDIO_CONNECTIONS="/studio/connections",M.STUDIO_BILLING="/studio/billing",M.STUDIO_MAIN="/studio/main",M.NOTIFICATIONS_SETTINGS="/studio/notifications-settings",M.STUDIO_DELETED_VIDEOS="/studio/videos/deleted",M.CREATE_VIDEO_MAIN="/studio/create-video",M.CREATE_VIDEO="/studio/create-video/[videoId]",M.CREATE_VIDEO_RESIZER="/studio/create-video/[videoId]/resizer",M.CREATE_VIDEO_EDITOR="/studio/create-video/[videoId]/editor",M.CREATE_VIDEO_EDITOR_TABS="/studio/create-video/[videoId]/editor/[editor-tab]",M.STUDIO_TOOLS="/studio/tools",M.CREATE_VIDEO_PUBLISHER="/studio/create-video/[videoId]/publisher",M.STUDIO_AI="/ai-studio",M.STUDIO_AI_MAIN="/ai-studio/main",M.STUDIO_AI_VIDEOS="/ai-studio/videos",M.STUDIO_AI_UPLOAD="/ai-studio/smart-clipper/upload",M.STUDIO_AI_GENERATE="/ai-studio/smart-clipper/generate",M.STUDIO_AI_GENERATE_VIDEO="/ai-studio/smart-clipper/generate/[videoId]",M.ST
1UDIO_AI_VIDEO="/ai-studio/videos/video/[videoId]",M.STUDIO_AI_CLIPS="/ai-studio/smart-clipper/clips",M.STUDIO_AI_TEXT_TO_VIDEO="/ai-studio/text-to-video",M.STUDIO_AI_TEXT_TO_VIDEO_SCRIPT="/ai-studio/text-to-video/script",M.STUDIO_AI_TEXT_TO_VIDEO_SCRIPT_EDIT="/ai-studio/text-to-video/script/edit",M.STUDIO_AI_TEXT_TO_VIDEO_GENERATE="/ai-studio/text-to-video/generating",M.STUDIO_AI_TEXT_TO_VIDEO_DOWNLOAD="/ai-studio/text-to-video/download",M.STUDIO_AI_TEXT_TO_VIDEO_EDITOR="/ai-studio/text-to-video/[videoId]",M.STUDIO_AI_TEXT_TO_VIDEO_EDITOR_TABS="/ai-studio/text-to-video/[videoId]/[t2v-editor-tabs]",M.STUDIO_AI_IMAGES="/ai-studio/images",M.STUDIO_LIBRARY="/ai-studio/library",M.STUDIO_AI_TEXT_TO_IMAGE="/ai-studio/text-to-image",M.STUDIO_AI_TEXT_TO_IMAGE_PROMPT="/ai-studio/text-to-image/prompt",M.STUDIO_AI_TEXT_TO_SPEECH="/ai-studio/text-to-speech",M.STUDIO_AI_TEXT_TO_SPEECH_PROMPT="/ai-studio/text-to-speech/prompt",M.WATCH_AND_LEARN="/studio/watch-and-learn",M.STUDIO_AI_VOICEOVERS="/ai-studio/voiceovers",M.STDIO_AI_TEXT_TO_SCENE="/ai-studio/text-to-scene",M.STDIO_AI_TEXT_TO_SCENE_PAGE="/ai-studio/text-to-scene/[sceneId]",M.STUDIO_AI_IMAGE_TO_SCENE="/ai-studio/image-to-scene",M.STUDIO_AI_IMAGE_TO_SCENE_PAGE="/ai-studio/image-to-scene/[sceneId]",M.STUDIO_AI_AVATARS="/ai-studio/ai-avatars",M.LOGIN_SOCIAL="/login-social",M.STUDIO_AI_QUOTE_TO_VIDEO="/ai-studio/quote-to-video",M.STUDIO_AI_AVATARS_GENERATING="/ai-studio/ai-avatars/generating",M.STUDIO_AI_AVATARS_DOWNLOAD="/ai-studio/ai-avatars/download",M.STUDIO_AI_IMAGE_EDITOR="/ai-studio/ai-image-editor",M.STUDIO_AI_IMAGE_UPSCALE="/ai-studio/image-upscaler",M.DOWNLOAD="/download",M.STUDIO_TEMPLATES="/ai-studio/templates",M.STUDIO_TEMPLATES_CATEGORY="/ai-studio/templates/[category]",M.STUDIO_TEMPLATES_TEMPLATE="/ai-studio/templates/[category]/[template]";let eu=["/salla","/salla/*","/salla-*","/salla-*/*"],ec=["/ai-studio/text-to-image","/ai-studio/text-to-video","/ai-studio/ai-image-editor","/ai-studio/image-to-scene","/ai-studio/text-to-scene","/ai-studio/image-upscaler","/ai-studio/ai-avatars","/ai-studio/text-to-speech/prompt","/studio/tools/add-subtitles-to-video","/template/"],ep=["video/mp4","video/3gpp","video/quicktime"],em=["video/mp4","video/avi","video/mov","video/quicktime","video/x-matroska","video/x-flv","video/x-ms-wmv",".mkv","video/mkv","mkv"],eh=["image/jpeg","image/jpg","image/png","image/webp"],ef=["audio/wav","audio/mp3","audio/mpeg"],ev=["image/jpeg","image/jpg","image/png"],eg=["audio/mpeg","audio/wav"],ey=["image/gif"],eb=[...ep,...ev,...eg,...ey],eA={audio:eg,image:ev,video:ep,gif:ey};(R=m||(m={})).AUDIO="audio",R.IMAGE="image",R.VIDEO="video",R.GIF="gif";let ex=[{value:30,label:"30 FPS"},{value:60,label:"60 FPS"}],ew=[{value:"auto",label:{en:"Auto",ar:"تلقائي",es:"Autom\xe1tico",fr:"Automatique",it:"Automatico",tr:"Otomatik"}},{value:720,label:"720p"},{value:1080,label:"1080p",isPro:!0}],e_=-1;(z=h||(h={}))[z.FACEBOOK=2]="FACEBOOK",z[z.TWITTER=4]="TWITTER",z[z.YOUTUBE=7]="YOUTUBE",z[z.INSTAGRAM=9]="INSTAGRAM",z[z.TIKTOK=10]="TIKTOK",z[z.SNAPCHAT=12]="SNAPCHAT",(L=f||(f={})).TEXT="text",L.AUDIO_SOUND="audio_sound",L.VIDEO="video",L.IMAGE="image",L.VIDEOS="videos",L.GIFS="gif",L.CUSTOM_VIDEO="custom_video",L.CUSTOM_IMAGE="custom_image",L.CUSTOM_GIFS="custom_gif",L.CUSTOM_AUDIO="custom_audio_sound",L.SUBTITLE_TEXT="subtitle_text";let eS=["audio_sound","custom_audio_sound","image","custom_gif","gif","custom_image","video","custom_video","videos"],eC={text:"Enter Text"},ek=["#FFFFFF","#000000","#EEEEEE","#BDBDBD","#757575","#B0BEC5","#78909C","#546E7A","#EF9A9A","#EF5350","#E53935","#FF1744","#F48FB1","#EC407A","#D81B60","#F50057","#CE93D8","#AB47BC","#8E24AA","#D500F9","#B39DDB","#7E57C2","#5E35B1","#651FFF","#9FA8DA","#5C6BC0","#3949AB","#3D5AFE","#90CAF9","#42A5F5","#1E88E5","#2979FF","#81D4FA","#29B6F6","#039BE5","#00B0FF","#80DEEA","#26C6DA","#00ACC1","#00E5FF","#80CBC4","#26A69A","#00897B","#1DE9B6","#A5D6A7","#66BB6A","#43A047","#00E676","#C5E1A5","#9CCC65","#7CB342","#76FF03","#E6EE9C","#D4E157","#C0CA33","#C6FF00","#FFF59D","#FFEE58","#FDD835","#FFEA00","#FFE082","#FFCA28","#FFB300","#FFC400","#FFCC80","#FFA726","#FB8C00","#FF9100","#FFAB91","#FF7043","#F4511E","#FF3D00","#BCAAA4","#8D6E63","#6D4C41","#fef7ef","#f7f8ff","#f1fbf1","#fbf1fb"],eT=e=>({style:{color:ek[0],textAlign:"center",WebkitTextColorWidth:"1px",WebkitTextStrokeColor:"#6681D3",padding:10,opacity:1,borderRadius:50,...(null==e?void 0:e.id)?{fontFamily:{value:null==e?void 0:e.id,label:null==e?void 0:e.name}}:{}},outline:{isOn:!0,width:6,color:"#000000"}}),eE=[{x:"25%",y:"37%",width:"60%",height:"25%"},{x:"50%",y:"50%",width:"60%",height:"25%"},{x:"14%",y:"14%",width:"60%",height:"25%"},{x:"50%",y:"14%",width:"60%",height:"25%"},{x:"14%",y:"50%",width:"60%",height:"25%"}],eP=[{x:"25%",y:"37%",width:"60%",height:"8%"},{x:"40%",y:"50%",width:"60%",height:"8%"},{x:"14%",y:"14%",width:"60%",height:"8%"},{x:"40%",y:"14%",width:"60%",height:"8%"},{x:"14%",y:"50%",width:"60%",height:"8%"}],eI=[{x:"25%",y:"0%"},{x:"50%",y:"0%"},{x:"14%",y:"0%"},{x:"50%",y:"0%"},{x:"14%",y:"0%"}],eD=["8","9","10","11","12","14","18","24","36","48","64","72","96","100","125","150"],eO=4,eN=[{indexName:["id","frameTime"],keyPath:["id","frameTime"],indexProps:{unique:!1}}];(V=v||(v={})).FORWARD="FORWARD",V.BACKWARD="BACKWARD",V.SEND_TO_FRONT="SEND_TO_FRONT",V.SEND_TO_BACK="SEND_TO_BACK";let ej="UA-177429513-1";(F=g||(g={})).SIGNUP="/signup",F.SIGNUP_SOCIAL="/signup-social",F.LOGIN="/login-page",F.LOGIN_SOCIAL="/login-social",F.RESET_PASSWORD="/help/reset-password",F.VERIFICATION="/email-verification";let eM=["/login-page","/login-social","/signup","/signup-social","/help/reset-password"],eR=[{label:{en:"Start Edit",ar:"الاستمرار في التعديل",es:"Continuar Edici\xf3n",fr:"Continuer l'\xe9dition",it:"Continua a modificare",tr:"D\xfczenlemeye Başla"},action:"edit-video",svg:"/icons/scissor.svg",svgOptions:{stroke:"var(--custom-white)"}},{label:{en:"Duplicate",ar:"تكرار",es:"Duplicar",fr:"Dupliquer",it:"Duplica",tr:"\xc7oğalt"},action:"duplicate-video",svg:"/icons/copy.svg",svgOptions:{stroke:"var(--custom-white)",fill:"none"}},{label:{en:"Download",ar:"تحميل",es:"Descargar",fr:"T\xe9l\xe9charger",it:"Scarica",tr:"İndir"},action:"download",svg:"/icons/import.svg",isPaid:!0},{label:{en:"Move",ar:"إنقل",es:"Mover",fr:"D\xe9placer",it:"Muovi",tr:"Taşı"},action:"move",svg:"/icons/folder.svg"},{label:{en:"Rename",ar:"تغير الإسم",es:"Cambiar Nombre",fr:"Renommer",it:"Rinomina",tr:"Yeniden Adlandır"},action:"rename",svg:"/icons/edit-2.svg"},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg"}],ez=[{label:{en:"Download",ar:"تحميل",es:"Descargar",fr:"T\xe9l\xe9charger",it:"Scarica",tr:"İndir"},action:"download",svg:"/icons/import.svg",isPaid:!0},{label:{en:"Move",ar:"إنقل",es:"Mover",fr:"D\xe9placer",it:"Muovi",tr:"Taşı"},action:"move",svg:"/icons/folder.svg"},{label:{en:"Rename",ar:"تغير الإسم",es:"Cambiar Nombre",fr:"Renommer",it:"Rinomina",tr:"Yeniden Adlandır"},action:"rename",svg:"/icons/edit-2.svg"},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg"}
1],eL=[{label:{en:"Continue Editing",ar:"الاستمرار في التعديل",es:"Continuar Edici\xf3n",fr:"Continuer l'\xe9dition",it:"Continua a modificare",tr:"D\xfczenlemeye Devam Et"},action:"continue-edit-video",svg:"/icons/scissor.svg",svgOptions:{stroke:"var(--custom-white)"}},{label:{en:"Duplicate",ar:"تكرار",es:"Duplicar",fr:"Dupliquer",it:"Duplica",tr:"\xc7oğalt"},action:"duplicate-video",svg:"/icons/copy.svg",svgOptions:{stroke:"var(--custom-white)",fill:"none"}},{label:{en:"Download",ar:"تحميل",es:"Descargar",fr:"T\xe9l\xe9charger",it:"Scarica",tr:"İndir"},action:"download",svg:"/icons/import.svg",isPaid:!0},{label:{en:"Move",ar:"إنقل",es:"Mover",fr:"D\xe9placer",it:"Muovi",tr:"Taşı"},action:"move",svg:"/icons/folder.svg"},{label:{en:"Rename",ar:"تغير الإسم",es:"Cambiar Nombre",fr:"Renommer",it:"Rinomina",tr:"Yeniden Adlandır"},action:"rename",svg:"/icons/edit-2.svg"},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg"}],eV=[{label:{en:"Download",ar:"تحميل",es:"Descargar",fr:"T\xe9l\xe9charger",it:"Scarica",tr:"İndir"},action:"download",svg:"/icons/import.svg",isPaid:!0},{label:{en:"Move",ar:"إنقل",es:"Mover",fr:"D\xe9placer",it:"Muovi",tr:"Taşı"},action:"move",svg:"/icons/folder.svg"},{label:{en:"Rename",ar:"تغير الإسم",es:"Cambiar Nombre",fr:"Renommer",it:"Rinomina",tr:"Yeniden Adlandır"},action:"rename",svg:"/icons/edit-2.svg"},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg"}],eF=[{label:{en:"Edit",ar:"تعديل",es:"Editar",fr:"\xc9diter",it:"Modifica",tr:"D\xfczenle"},action:"edit",svg:"/icons/scissor.svg",svgOptions:{stroke:"var(--custom-white)",fill:"none"}},{label:{en:"Duplicate and Edit",ar:"تكرار وتعديل",es:"Duplicar y Editar",fr:"Dupliquer et \xe9diter",it:"Duplica e modifica",tr:"\xc7oğalt ve D\xfczenle"},action:"edit-again",svg:"/icons/copy.svg",svgOptions:{stroke:"var(--custom-white)",fill:"none"}},{label:{en:"Download",ar:"تحميل",es:"Descargar",fr:"T\xe9l\xe9charger",it:"Scarica",tr:"İndir"},action:"download",svg:"/icons/import.svg",isPaid:!0},{label:{en:"Share",ar:"مشاركة",es:"Compartir",fr:"Partager",it:"Condividi",tr:"Paylaş"},action:"share",svg:"/icons/share.svg",svgOptions:{stroke:"var(--custom-white)",fill:"none"}},{label:{en:"Move",ar:"إنقل",es:"Mover",fr:"D\xe9placer",it:"Muovi",tr:"Taşı"},action:"move",svg:"/icons/folder.svg"},{label:{en:"Rename",ar:"تغير الإسم",es:"Cambiar Nombre",fr:"Renommer",it:"Rinomina",tr:"Yeniden Adlandır"},action:"rename",svg:"/icons/edit-2.svg"},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg"}],eU=[{label:{en:"Edit",ar:"تعديل",es:"Editar",fr:"\xc9diter",it:"Modifica",tr:"D\xfczenle"},action:"edit",svg:"/icons/scissor.svg",svgOptions:{stroke:"var(--custom-white)",fill:"none"},statuses:[null,"completed"]},{label:{en:"Download",ar:"تحميل",es:"Descargar",fr:"T\xe9l\xe9charger",it:"Scarica",tr:"İndir"},action:"download",svg:"/icons/import.svg",isPaid:!0,statuses:["completed"]},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg",statuses:[null,"completed"]},{label:{en:"Share",ar:"مشاركة",es:"Compartir",fr:"Partager",it:"Condividi",tr:"Paylaş"},action:"share",svg:"/icons/share.svg",svgOptions:{stroke:"var(--custom-white)",fill:"none"},statuses:["completed"]}],eG=[{label:{en:"Download",ar:"تحميل",es:"Descargar",fr:"T\xe9l\xe9charger",it:"Scarica",tr:"İndir"},action:"download",svg:"/icons/import.svg",isPaid:!0},{label:{en:"Share",ar:"مشاركة",es:"Compartir",fr:"Partager",it:"Condividi",tr:"Paylaş"},action:"share",svg:"/icons/share.svg",svgOptions:{stroke:"var(--custom-white)",fill:"none"}},{label:{en:"Move",ar:"إنقل",es:"Mover",fr:"D\xe9placer",it:"Muovi",tr:"Taşı"},action:"move",svg:"/icons/folder.svg"},{label:{en:"Rename",ar:"تغير الإسم",es:"Cambiar Nombre",fr:"Renommer",it:"Rinomina",tr:"Yeniden Adlandır"},action:"rename",svg:"/icons/edit-2.svg"},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg"}],eB=[{label:{en:"Move",ar:"إنقل",es:"Mover",fr:"D\xe9placer",it:"Muovi",tr:"Taşı"},action:"move",svg:"/icons/folder.svg"},{label:{en:"Rename",ar:"تغير الإسم",es:"Cambiar Nombre",fr:"Renommer",it:"Rinomina",tr:"Yeniden Adlandır"},action:"rename",svg:"/icons/edit-2.svg"},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg"}],eZ=[{label:{en:"Restore",ar:"إستعادة",es:"Restaurar",fr:"Restaurer",it:"Ripristina",tr:"Geri Y\xfckle"},action:"restore",svg:"/icons/rotate-left.svg"},{label:{en:"Delete Permanently",ar:"حذف بشكل دائم",es:"Eliminar permanentemente",fr:"Supprimer d\xe9finitivement",it:"Elimina definitivamente",tr:"Kalıcı Olarak Sil"},action:"delete-permanently",svg:"/icons/trash.svg"}],eq=[{value:"social-media",label:{ar:"وسائل التواصل الاجتماعي",en:"Social Media",es:"Redes Sociales",fr:"R\xe9seaux sociaux",it:"Social Media",tr:"Sosyal Medya"},icon:"/icons/like.svg",isFill:!0},{value:"marketing",label:{ar:"تسويق",en:"Marketing",es:"Marketing",fr:"Marketing",it:"Marketing",tr:"Pazarlama"},icon:"/icons/like.svg",isFill:!0}],eH=[{label:{en:"Download",ar:"تحميل",es:"Descargar",fr:"T\xe9l\xe9charger",it:"Scarica",tr:"İndir"},action:"download",svg:"/icons/import.svg",isPaid:!0}],eW=["facebookcareers.com","facebook.co","facebook.com","www.facebook.com","facebook.com.au","facebook.com.mx","facebook-dns.com","facebookenterprise.com","facebook-hardware.com","facebook.it","facebookmail.com","facebook.net","facebookrecruiting.com","facebookstudy.com","facebookvirtualassistant.com","fb.audio","fbcdn.net","fb.com","fbe2e.com","fb.gg","fbinfra.net","fb.me","fbpigeon.com","fbsbx.com","fbthirdpartypixel.com","fb.watch","fbwat.ch"],eY="https://ghost.bith.tv/ghost/api/content",eK="d08d280ea3506a53148e9a5fdd";(U=y||(y={})).facebook="https://www.facebook.com/sharer/sharer.php?u=",U.twitter="https://twitter.com/intent/tweet?text=",(G=b||(b={})).SUPER_WINDOW="SUPER_WINDOW",G.TOOL_DESCRIPTION="TOOL_DESCRIPTION",G.HOW_IT_WORKS="HOW_IT_WORKS",G.WHY_BITH="WHY_BITH",G.VIDEO="VIDEO",G.CALL_TO_ACTION="CALL_TO_ACTION",G.PROMO="PROMO",G.FAQS="FAQS",G.SIGNUP="SIGNUP",G.HOW_BITH_WORKS="HOW_BITH_WORKS",G.CHECK_MORE_TOOLS="CHECK_MORE_TOOLS",(B=A||(A={})).HERO_SECTION="HERO_SECTION",B.TOOL_DESCRIPTION="TOOL_DESCRIPTION",B.VIDEO="VIDEO",B.CALL_TO_ACTION="CALL_TO_ACTION",B.CHECK_MORE_TOOLS="CHECK_MORE_TOOLS";let eQ=600,e$=[{category:"social-media",slug:"how-to-get-followers-on-tiktok-2022-arabic-article",title:"١٠  طرق لزيادة عدد المتابعين على تيك توك عام ٢٠٢٢",link:"https://bith.ai/learn/social-media/how-to-get-followers-on-tiktok-2022-arabic-article",feature_image:"https://ghost.bith.tv/content/images/2022/08/10-Ways-To-Increase-Followers-On-TikTok-2022-14.jpg",feature_image_alt:"١٠  طرق لزيادة عدد المتابعين على تيك توك عام ٢٠٢٢"},{category:"social-media",slug:"how-to-get-on-for-you-page-tiktok-2022",title:'كيفية الظهور على صفحة"من أجلك" أو "لك" على تيك توك',link:"https://bith.ai/learn/social-media/how-to-get-on-for-you-page-tiktok-2022",feature_image:"https://ghost.bith.tv/content/images/2022/08/How-To-Feature-On-TikToks--For-You-Page-05--1-.png",feature_image_alt:'كيفية الظهور على صفحة"من أجلك" أو "لك" على تيك توك'},{category:"social-media",slug:"how-to-increase-tiktok-views-free",title:"كيفية زيادة مشاهدات تيك توك مجانًا",link:"https://bith.ai/learn/social-media/how-to-increase-tiktok-views-free",feature_image:"https://ghost.bith.tv/content/images/2022/08/How-To-Get-More-Views-On-TikTok-08.jpg",feature_image_alt:"كيفية زيادة مشاهدات تيك توك مجانًا"}],eX=[{value:"video",label:{en:"Videos",ar:"فيديوهات",es:"V\xeddeos",fr:"Vid\xe9os",it:"Video",tr:"Videolar"}},{value:"audio",label:{en:"Audios",ar:"أصوات",es:"Audios",fr:"Audios",it:"Audio",tr:"Sesler"}},{value:"image",label:{en:"Images",ar:"صور",es:"Im\xe1genes",fr:"Images",it:"Immagini",tr:"G\xf6r\xfcnt\xfcler"}},{value:"gif",label:{en:"Gifs",ar:"صور متحركة",es:"Gifs",fr:"Gifs",it:"Gif",tr:"Gifler"}}],eJ=[{label:{en:"Rename",ar:"تغير الإسم",es:"Cambiar nombre",fr:"Renommer",it:"Rinomina",tr:"Yeniden Adlandır"},action:"rename",svg:"/icons/edit-2.svg"},{label:{en:"Delete",ar:"حذف",es:"Eliminar",fr:"Supprimer",it:"Elimina",tr:"Sil"},action:"delete",svg:"/icons/trash.svg"}];(Z=x||(x={})).CANVAS="canvas",Z.TIMELINE="timeline",Z.SIDEBAR="sidebar";let e0=[{thumbnail:{dark:{en:"".concat(Q,"/tools-webp/en/add-subtitle.jpg"),ar:"".concat(Q,"/tools-webp/ar/add-subtitle-ar.jpg"),es:"".concat(Q,"/tools-webp/en/add-subtitle.jpg"),fr:"".concat(Q,"/tools-webp/en/add-subtitle.jpg"),it:"".concat(Q,"/tools-webp/en/add-subtitle.jpg"),tr:"".concat(Q,"/tools-webp/en/add-subtitle.jpg")},light:{en:"".concat(Q,"/light-mode/tools-studio-webp/en/add-subtitle.webp"),ar:"".concat(Q,"/light-mode/tools-studio-webp/ar/add-subtitle-ar.webp"),es:"".concat(Q,"/light-mode/tools-studio-webp/en/add-subtitle.webp"),fr:"".concat(Q,"/light-mode/tools-studio-webp/en/add-subtitle.webp"),it:"".concat(Q,"/light-mode/tools-studio-webp/en/add-subtitle.webp"),tr:"".concat(Q,"/light-mode/tools-studio-webp/en/add-subtitle.webp")}},label:{en:"Add Subtitles to Video",ar:"اضف ترجمة للفيديو",es:"Agregar subt\xedtulos al video",fr:"Ajouter des sous-titres \xe0 la vid\xe9o",it:"Aggiungi sottotitoli al video",tr:"Videoya Altyazı Ekle"},desc:{en:"Create eye-catching video subtitles",ar:"قم بعمل ترجمة ملفتة للنظر على الفيديوهات",es:"Cree subt\xedtulos de video llamativos",fr:"Cr\xe9ez des sous-titres vid\xe9o accrocheurs",it:"Crea sottotitoli video accattivanti",tr:"G\xf6z alıcı video altyazıları oluşturun"},svg:"/icons/subtitle-gradient.svg",svg2:"/icons/subtitle-secondary.svg",redirectTo:"/studio/tools/add-subtitles-to-video"},{action:"resizer",thumbnail:{dark:{en:"".concat(Q,"/tools-webp/en/resize-video.jpg"),ar:"".concat(Q,"/tools-webp/en/resize-video.jpg"),es:"".concat(Q,"/tools-webp/en/resize-video.jpg"),fr:"".concat(Q,"/tools-webp/en/resize-video.jpg"),it:"".concat(Q,"/tools-webp/en/resize-video.jpg"),tr:"".concat(Q,"/tools-webp/en/resize-video.jpg")},light:{en:"".concat(Q,"/light-mode/tools-studio-webp/en/resize-video.webp"),ar:"".concat(Q,"/light-mode/tools-studio-webp/en/resize-video.webp"),es:"".concat(Q,"/light-mode/tools-studio-webp/en/resize-video.webp"),fr:"".concat(Q,"/light-mode/tools-studio-webp/en/resize-video.webp"),it:"".concat(Q,"/light-mode/tools-studio-webp/en/resize-video.webp"),tr:"".concat(Q,"/light-mode/tools-studio-webp/en/resize-video.webp")}},link:{en:"https://www.youtube.com/embed/iDJe06uhMf8?autoplay=1",ar:"https://www.youtube.com/embed/4LoNX5l6vSA?autoplay=1",es:"https://www.youtube.com/embed/4LoNX5l6vSA?autoplay=1",fr:"https://www.youtube.com/embed/4LoNX5l6vSA?autoplay=1",it:"https://www.youtube.com/embed/4LoNX5l6vSA?autoplay=1",tr:"https://www.youtube.com/embed/4LoNX5l6vSA?autoplay=1"}
1,label:{en:"Resize Video",ar:"أبعاد الفيديو",es:"Cambiar tama\xf1o del video",fr:"Changer la dimension de la vid\xe9o",it:"Cambia le dimensioni del video",tr:"Videoyu Yeniden Boyutlandır"},desc:{en:"Change video dimension",ar:"قم بتغيير ابعاد الفيديو",es:"Cambia las dimensiones del video",fr:"Changer la dimension de la vid\xe9o",it:"Cambia le dimensioni del video",tr:"Video boyutunu değiştir"},svg:"/icons/scissor-gradient.svg",svg2:"/icons/scissor-secondary.svg"}];(q=w||(w={})).ACTION_CANCEL="cancel",q.ACTION_COUPON="coupon",q.ACTION_FREE="free",(H=_||(_={})).NO_DIMENSIONS="no-dimensions",H.NOT_SUPPORTED="not-supported",H.NO_AUDIO="no-audio",H.SIZE_LIMIT="size-limit",H.ASPECT_RATIO="aspect-ratio",H.DURATION_LIMIT="duration-limit",H.DIMENTIONS_LIMIT="dimentions-limit",H.MIN_DURATION_LIMIT="min-duration-limit",H.MIN_WIDTH_LIMIT="min-width-limit",H.MIN_HEIGHT_LIMIT="min-height-limit",H.MAX_WIDTH_LIMIT="max-width-limit",H.MAX_HEIGHT_LIMIT="max-height-limit";let e1=[{min:0,max:1e11,label:{en:"Auto",ar:"Auto",es:"Auto",fr:"Auto",it:"Auto",tr:"Otomatik"},value:1},{min:0,max:30,duration:0,label:{en:"<30s",ar:"<30s",es:"<30s",fr:"<30s",it:"<30s",tr:"<30s"},value:2},{min:30,max:60,duration:30,label:{en:"30s-60s",ar:"30s-60s",es:"30s-60s",fr:"30s-60s",it:"30s-60s",tr:"30s-60s"},value:3},{min:60,max:90,duration:30,label:{en:"60s-90s",ar:"60s-90s",es:"60s-90s",fr:"60s-90s",it:"60s-90s",tr:"60s-90s"},value:4},{min:90,max:180,duration:90,label:{en:"90s-3m",ar:"90s-3ms",es:"90s-3ms",fr:"90s-3ms",it:"90s-3ms",tr:"90s-3ms"},value:5}];(W=S||(S={})).UPDATE="update",W.ONE_TIME_PURCHASE="one-time-purchase";let e2=[{image:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/thumbnails/Messi%201.webp",video:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/messi-en.mp4",prompt:{en:"Lionel Messi's beautiful career with Barcelona and Argentina",ar:"مسيرة ليونيل ميسي الجميلة مع برشلونة والأرجنتين",es:"La hermosa carrera de Lionel Messi con Barcelona y Argentina",fr:"La belle carri\xe8re de Lionel Messi avec Barcelone et l'Argentine",it:"La bellissima carriera di Lionel Messi con Barcellona e l'Argentina",tr:"Lionel Messi'nin Barcelona ve Arjantin ile g\xfczel kariyeri"},aspectRatio:"9:16",duration:{en:"30 sec.",ar:"30 ثانية",es:"30 seg.",fr:"30 sec.",it:"30 sec.",tr:"30 sn."},language:{value:"en",en:"English",ar:"الإنجليزية",tr:"İngilizce"},voiceover:{en:"Male",ar:"ذكر",es:"Masculino",fr:"Masculin",it:"Maschile",tr:"Erkek"},videoTheme:{en:"Educational",ar:"تعليمي",es:"Educativo",fr:"\xc9ducatif",it:"Educativo",tr:"Eğitici"},videoTone:{en:"Normal",ar:"طبيعي",es:"Normal",fr:"Normale",it:"Normale",tr:"Normal"}},{image:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/thumbnails/Messi%202.webp",video:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/messi-ar.mp4",prompt:{en:"Lionel Messi's career with Barcelona and winning the world cup in Qatar 2022 with Argentina",ar:"مسيرة ليونيل ميسي مع برشلونة وفوزه بكأس العالم في قطر 2022 مع الأرجنتين",es:"La carrera de Lionel Messi con Barcelona y ganar la copa del mundo en Qatar 2022 con Argentina",fr:"La carri\xe8re de Lionel Messi avec Barcelone et la victoire de la coupe du monde au Qatar 2022 avec l'Argentine",it:"La carriera di Lionel Messi con Barcellona e la vittoria della coppa del mondo in Qatar 2022 con l'Argentina",tr:"Lionel Messi'nin Barcelona ile kariyeri ve Arjantin ile 2022 Katar D\xfcnya Kupası'nı kazanması"},aspectRatio:"9:16",duration:{en:"30 sec.",ar:"30 ثانية",es:"30 seg.",fr:"30 sec.",it:"30 sec.",tr:"30 sn."},language:{value:"ar",en:"Arabic",ar:"العربية",tr:"Arap\xe7a"},voiceover:{en:"Male",ar:"ذكر",es:"Masculino",fr:"Masculin",it:"Maschile",tr:"Erkek"},videoTheme:{en:"Educational",ar:"تعليمي",es:"Educativo",fr:"\xc9ducatif",it:"Educativo",tr:"Eğitici"},videoTone:{en:"Normal",ar:"طبيعي",es:"Normal",fr:"Normale",it:"Normale",tr:"Normal"}},{image:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/thumbnails/Red%20Car.webp",video:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/red-car.mp4",prompt:{en:"The red car theory",ar:"نظرية السيارة الحمراء",es:"Teor\xeda del coche rojo",fr:"Th\xe9orie de la voiture rouge",it:"Teoria della macchina rossa",tr:"Kırmızı araba teorisi"},aiModule:{ar:"متقدم",en:"Advanced",es:"Avanzado",fr:"Avanc\xe9",it:"Avanzato",tr:"İleri"},aspectRatio:"9:16",duration:{en:"30 sec.",ar:"30 ثانية",es:"30 seg.",fr:"30 sec.",it:"30 sec.",tr:"30 sn."},language:{value:"en",en:"English",ar:"الإنجليزية",tr:"İngilizce"},voiceover:{en:"Male",ar:"ذكر",es:"Masculino",fr:"Masculin",it:"Maschile",tr:"Erkek"},videoTheme:{en:"Educational",ar:"تعليمي",es:"Educativo",fr:"\xc9ducatif",it:"Educativo",tr:"Eğitici"},videoTone:{en:"Mysterious",ar:"غامض",es:"Misterioso",fr:"Myst\xe9rieux",it:"Misterioso",tr:"Gizemli"}},{image:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/thumbnails/Pyramids%201.webp",video:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/egp-en.mp4",prompt:{en:"The egyptian pyramids",ar:"الأهرامات المصرية",es:"las pir\xe1mides egipcias",fr:"les pyramides \xe9gyptiennes",it:"le piramidi egiziane",tr:"Mısır piramitleri"},aiModule:{ar:"متقدم",en:"Advanced",es:"Avanzado",fr:"Avanc\xe9",it:"Avanzato",tr:"İleri"},aspectRatio:"16:9",duration:{en:"30 sec.",ar:"30 ثانية",es:"30 seg.",fr:"30 sec.",it:"30 sec.",tr:"30 sn."},language:{value:"en",en:"English",ar:"الإنجليزية",tr:"İngilizce"},voiceover:{en:"Female",ar:"أنثى",es:"Femenino",fr:"F\xe9minin",it:"Femminile",tr:"Kadın"},videoTheme:{en:"Educational",ar:"تعليمي",es:"Educativo",fr:"\xc9ducatif",it:"Educativo",tr:"Eğitici"},videoTone:{en:"Normal",ar:"طبيعي",es:"Normal",fr:"Normale",it:"Normale",tr:"Normal"}},{image:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/thumbnails/Cute%20Cat.webp",video:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/cat.mp4",prompt:{en:"Story about a funny cat",ar:"قصة عن قطة مضحكة",es:"historia sobre un gato divertido",fr:"histoire sur un chat dr\xf4le",it:"storia su un gatto divertente",tr:"Komik bir kedi hakkında hikaye"},aiModule:{ar:"متقدم",en:"Advanced",es:"Avanzado",fr:"Avanc\xe9",it:"Avanzato",tr:"İleri"},aspectRatio:"9:16",duration:{en:"1 minute",ar:"1 دقيقة",es:"1 minuto",fr:"1 minute",it:"1 minuto",tr:"1 dakika"},language:{value:"en",en:"English",ar:"الإنجليزية",tr:"İngilizce"},voiceover:{en:"Female",ar:"أنثى",es:"Femenino",fr:"F\xe9minin",it:"Femminile",tr:"Kadın"},videoTheme:{en:"Educational",ar:"تعليمي",es:"Educativo",fr:"\xc9ducatif",it:"Educativo",tr:"Eğitici"},videoTone:{en:"Funny",ar:"مضحك",es:"Divertido",fr:"Dr\xf4le",it:"Divertente",tr:"Komik"}},{image:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/thumbnails/Pyramids%202.webp",video:"https://storage.googleapis.com/bith-prod-assets/assets/ai-studio/ai-videos/egp-ar.mp4",prompt:{en:"The majestic wonder of the world the pyramids in Egypt",ar:"عجائب العالم السبع الأهرامات في مصر",es:"La majestuosa maravilla del mundo las pir\xe1mides en Egipto",fr:"La merveille majestueuse du monde les pyramides en \xc9gypte",it:"La maestosa meraviglia del mondo le piramidi in Egitto",tr:"D\xfcnyanın g\xf6rkemli harikası Mısır'daki piramitler"},aiModule:{ar:"متقدم",en:"Advanced",es:"Avanzado",fr:"Avanc\xe9",it:"Avanzato",tr:"İleri"},aspectRatio:"16:9",duration:{en:"30 sec.",ar:"30 ثانية",es:"30 seg.",fr:"30 sec.",it:"30 sec.",tr:"30 sn."},language:{value:"ar",en:"Arabic",ar:"العربية",tr:"Arap\xe7a"},voiceover:{en:"Female",ar:"أنثى",es:"Femenino",fr:"F\xe9minin",it:"Femminile",tr:"Kadın"},videoTheme:{en:"Educational",ar:"تعليمي",es:"Educativo",fr:"\xc9ducatif",it:"Educativo",tr:"Eğitici"},videoTone:{en:"Mysterious",ar:"غامض",es:"Misterioso",fr:"Myst\xe9rieux",it:"Misterioso",tr:"Gizemli"}}],e3=50;(Y=C||(C={})).DELETED="deleted",Y.PAST_DUE="past_due",Y.PAUSED="paused";let e4={CREDITS_LIMIT_ERROR_STATUS_CODE:469,NOT_PAID:403,SERVICE_DOWN:503};RegExp("^@(?![._])[a-zA-Z0-9._]{2,24}(?<![._])$");let e5=[{value:"male",label:{en:"Male",ar:"ذكر",es:"Masculino",fr:"Masculin",it:"Maschio",tr:"Erkek"},icon:"/icons/male.svg"},{value:"female",label:{en:"Female",ar:"أنثى",es:"Femenino",fr:"F\xe9minin",it:"Femminile",tr:"Kadın"},icon:"/icons/female.svg"}]},93383:function(e,t,i){"use strict";i.d(t,{Z:function(){return l},$:function(){return a}});var o,n,r=i(20931);i(35161),i(13311),i(75472),i(63105),i(27361),i(21012),i(99139),i(46485),i(38715),i(7739),i(45220),i(89734),i(63394),i(64430),i(54178),(o=n||(n={})).UPDATE_VIDEO_INPUT_REF="UPDATE_VIDEO_INPUT_REF",o.UPDATE_VIDEO_REF="UPDATE_VIDEO_REF",o.UPDATE_VIDEO_INSTANCE="UPDATE_VIDEO_INSTANCE",o.UPDATE_LAYERR_SOURCE_INFO="UPDATE_LAYERR_SOURCE_INFO",o.UPDATE_LAYERR_DESTINATION_INFO="UPDATE_LAYERR_DESTINATION_INFO",o.UPDATE_LAYERS_INFO="UPDATE_LAYERS_INFO",o.UPDATE_OUTPUT_SETTINGS="UPDATE_OUTPUT_SETTINGS",o.UPDATE_EDITOR_SETTINGS="UPDATE_EDITOR_SETTINGS",o.UPDATE_DURATION="UPDATE_DURATION",o.ADD_LAYER="ADD_LAYER",o.ADD_LAYER_AND_MAKE_ACTIVE="ADD_LAYER_AND_MAKE_ACTIVE",o.UPDATE_GENERAL_DATA="UPDATE_GENERAL_DATA",o.UPDATE_VIDEO_STATE="UPDATE_VIDEO_STATE",o.ACTIVE_LAYER_CHANGED="ACTIVE_LAYER_CHANGED",o.EDITOR_STATE_CHANGED="EDITOR_STATE_CHANGED",o.UPDATE_LAYERS_BULK="UPDATE_LAYERS_BULK",o.RESET_CHANGES="RESET_CHANGES";let a={fileInputRef:null,layers:[],activeLayer:"layer-0",generalDetails:{quality:r.h4[0].value,fps:r.oc[1].value,canvasBgColor:"#000000"}};var l=(e,t)=>
1{switch(t.type){case n.UPDATE_VIDEO_INPUT_REF:return{...e,fileInputRef:t.payload};case n.ADD_LAYER:return{...e,layers:t.payload};case n.ADD_LAYER_AND_MAKE_ACTIVE:var i,o;return{...e,layers:null===(i=t.payload)||void 0===i?void 0:i.copiedLayers,activeLayer:null==t?void 0:null===(o=t.payload)||void 0===o?void 0:o.layerId};case n.UPDATE_GENERAL_DATA:return{...e,generalDetails:{...null==e?void 0:e.generalDetails,...t.payload}};case n.ACTIVE_LAYER_CHANGED:return{...e,activeLayer:null==t?void 0:t.payload};case n.UPDATE_LAYERS_BULK:return{...e,layers:null==t?void 0:t.payload};case n.EDITOR_STATE_CHANGED:return{...e,...null==t?void 0:t.payload};case n.RESET_CHANGES:return a;default:return e}}},82591:function(e,t,i){"use strict";i.d(t,{YW:function(){return w},ZP:function(){return _}});var o=i(85893),n=i(67294),r=i(51348),a=i(20931),l=function(){let[e,t]=n.useState(Array),i=n.useRef(),[o,l]=n.useState(0),s=n.useRef(),d=async i=>{let{newState:n,videoId:r}=i,l=structuredClone(n);delete l.activeLayer;let s=e.filter((e,t)=>t<=o);await s.map(e=>{var t,i;let o=e.layers.filter(e=>{var t;return(null==e?void 0:null===(t=e.layerData)||void 0===t?void 0:t.id)===r&&(null==e?void 0:e.layerType)===a.QP.VIDEO}).map(e=>null==e?void 0:e.id);e.layers=null==e?void 0:null===(t=e.layers)||void 0===t?void 0:t.filter(e=>!(o.includes(e.relatedLayerId)&&(null==e?void 0:e.layerType)===a.QP.SUBTITLE_TEXT)),e.videosSubtitls=null==e?void 0:null===(i=e.videosSubtitls)||void 0===i?void 0:i.filter(e=>e.id!==r),e.layers=e.layers.map(e=>{var t;return(null===(t=e.layerData)||void 0===t?void 0:t.id)===r?(delete e.subtitlesConfig,{...e,subtitlesGenerated:!1}):e})}),t(Array.from(new Set(s.map(e=>JSON.stringify(e)))).map(e=>JSON.parse(e)))};return n.useEffect(()=>{i.current=e,(null==e?void 0:e.length)>=0&&l((null==e?void 0:e.length)-1)},[e]),{prevValue:e,saveValue:i=>{let n=structuredClone(i);delete n.activeLayer,t([...e.filter((e,t)=>t<=o),n])},saveAfterDeleteSubtitles:d,undoAction:()=>(l(o-1),e[o-1]),redoAction:()=>(l(o+1),e[o+1]),currentStateKey:o,resetPrevState:()=>{t([]),l(-1)},savePrevAndAfterValue:i=>{o<(null==e?void 0:e.length)-1?(s.current=!1,t((0,r.yd)(o,e,i))):t(e=>[...e,i])},updateAssetsIdsAfterUpload:e=>{let{prevId:o,updatedData:n,newState:r}=e,a=JSON.parse(JSON.stringify(i.current));if(null==a?void 0:a.length){let e=[];try{a.map(t=>{(null==t?void 0:t.layers)&&(t.layers.map((e,i)=>{var r;(null===(r=e.layerData)||void 0===r?void 0:r.id)===o&&(t.layers[i].layerData=null==n?void 0:n.layerData)}),e.push(t))}),t(t=>[...e,r])}catch(e){}}}}},s=i(93383),d=i(46485),u=i(38715),c=i(23279),p=i.n(c),m=i(79817),h=i(87251),f=i(15691),v=i(54482),g=i(47095),y=e=>{(0,h.Z)();let{state:t,detectMediaAssetsResumableChagnes:i,detectMediaAssetsChagnes:o}=(0,v.Z)(),{createMediaAsset:r}=(0,f.Z)(),a=async t=>{let{uploadId:o,file:n}=t,a=JSON.parse(JSON.stringify(n));delete a.file,delete a.thumbnail_url;let l=await r({name:null==n?void 0:n.name,type:null==n?void 0:n.mediaType,metadata:a,upload_id:o});e&&e(l),await (0,d.Zg)({...n,uploadId:o,uploadCompleted:!0,uploadedFileInfo:null==l?void 0:l.data}),(0,u.JQ)(),i()},l=n.useCallback(p()(e=>a(e),2e3),[null==t?void 0:t.mediaAssetsChanges]),s=n.useCallback(p()(e=>{let{file:t,uploadId:i,progress:o,uploadStart:n,chunkCounter:r,doneParts:a}=e;return(0,d.Zg)({...t,uploadId:i,progress:o,uploadStart:n,chunkCounter:r,doneParts:a})},2e3),[null==t?void 0:t.mediaAssetsChanges]),{initMediaAssets:c}=(0,m.Z)(async e=>{let{uploadId:t,file:i,newChanges:o}=e;await (0,d.Zg)({...i,uploadId:t})},s,l,{type:"video-editor-user-asset"});return{initMediaUploader:()=>{(0,d.Lr)(e=>{let t=e.filter(e=>(null==e?void 0:e.uploadStatus)==="pending");(null==t?void 0:t.length)&&t.map(async e=>{(0,g.bZ)({name:"".concat(null==e?void 0:e.uploadId)}),(0,g.bZ)({name:"progress-".concat(null==e?void 0:e.uploadId)}),await c(e),(0,u.Nr)(),o()})})}}},b=i(25617),A=i(90446);let x=n.createContext(null),w=n.createContext({});var _=n.memo(e=>{let t=(0,b.v9)(e=>{var t;return null==e?void 0:null===(t=e.Auth)||void 0===t?void 0:t.user}),i=(0,b.I0)(),r=(0,b.v9)(e=>{var t;return null==e?void 0:null===(t=e.EditorState)||void 0===t?void 0:t.layers}),d=n.useRef();d.current=r;let[u,c]=n.useReducer(s.Z,s.$),p=l();n.useEffect(()=>{(null==t?void 0:t.id)||p.resetPrevState()},[null==t?void 0:t.id]);let{initMediaUploader:m}=y(e=>{try{if(null==e?void 0:e.id){var t;let o=[];(null===(t=d.current)||void 0===t?void 0:t.length)&&((null==e?void 0:e.type)===a.J5.IMAGE||(null==e?void 0:e.type)===a.J5.GIF?(d.current.map(t=>{var i,n;(null==t?void 0:null===(i=t.layerData)||void 0===i?void 0:i.id)===(null==e?void 0:null===(n=e.metadata)||void 0===n?void 0:n.id)?o.push({...t,layerData:{...e,image_url:null==e?void 0:e.asset_url,isMediaAsset:!0}}):o.push(t)}),i(A.ZP.updateBulkLayers({layers:[...o]},t=>{var i;let{newState:o}=t;p.updateAssetsIdsAfterUpload({prevId:null==e?void 0:null===(i=e.metadata)||void 0===i?void 0:i.id,updatedData:{layerData:{...e,image_url:null==e?void 0:e.asset_url,isMediaAsset:!0}},newState:o})}))):(null==e?void 0:e.type)===a.J5.AUDIO?(d.current.map(t=>{var i,n;(null==t?void 0:null===(i=t.layerData)||void 0===i?void 0:i.id)===(null==e?void 0:null===(n=e.metadata)||void 0===n?void 0:n.id)?o.push({...t,layerData:{...e,meta:null==e?void 0:e.metadata,sound_url:null==e?void 0:e.asset_url,isMediaAsset:!0}}):o.push(t)}),i(A.ZP.updateBulkLayers({layers:[...o]},t=>{var i;let{newState:o}=t;p.updateAssetsIdsAfterUpload({prevId:null==e?void 0:null===(i=e.metadata)||void 0===i?void 0:i.id,updatedData:{layerData:{...e,meta:null==e?void 0:e.metadata,sound_url:null==e?void 0:e.asset_url,isMediaAsset:!0}},newState:o})}))):(null==e?void 0:e.type)===a.J5.VIDEO&&(d.current.map(t=>{var i,n;(null==t?void 0:null===(i=t.layerData)||void 0===i?void 0:i.id)===(null==e?void 0:null===(n=e.metadata)||void 0===n?void 0:n.id)?o.push({...t,layerData:{...e,meta:null==e?void 0:e.metadata,video_url:null==e?void 0:e.asset_url,thumbnail_url:null==e?void 0:e.thumbnail,isMediaAsset:!0}}):o.push(t)}),i(A.ZP.updateBulkLayers({layers:[...o]},t=>{var i;let{newState:o}=t;p.updateAssetsIdsAfterUpload({prevId:null==e?void 0:null===(i=e.metadata)||void 0===i?void 0:i.id,updatedData:{layerData:{...e,meta:null==e?void 0:e.metadata,video_url:null==e?void 0:e.asset_url,thumbnail_url:null==e?void 0:e.thumbnail,isMediaAsset:!0}},newState:o})}))))}}catch(e){}}),{state:h}=(0,v.Z)();return n.useEffect(()=>{(null==h?void 0:h.database)&&m()},[null==h?void 0:h.database]),(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(x.Provider,{value:{advancedEditorState:u,dispatchAdvancedEditorState:c},children:(0,o.jsx)(w.Provider,{value:p,children:e.children})})})})},64242:function(e,t,i){"use strict";i.d(t,{Vo:function(){return N},Ho:function(){return R}});var o,n=i(85893),r=i(67294),a=i(76425),l=i(68419),s=i(36808),d=i.n(s),u=i(20931),c=i(25617),p=i(11163),m=i(64125),h=i(21242),f=i(9317),v=i(25103),g=i(78139),y=i(31155),b=i(91729),A=i(3174),x=i(90238),w=i(71494),_=i(14292),S=i(85537),C=i(66464);function k(e,t,i){var o,n,r,a,l,s;let d=null!==(o=null==e?void 0:e.subscription)&&void 0!==o?o:{}
1,u=null!==(n=null==e?void 0:e.billingInfo)&&void 0!==n?n:{},c=(null==d?void 0:d.is_subscribed)?"active":"pre_subscription";return(0,_.tb)({$email:null==e?void 0:e.email,$name:null!==(r=null==e?void 0:e.username)&&void 0!==r?r:null==e?void 0:e.name,$language:t,$isSubscriber:!!(null==d?void 0:d.is_subscribed),...i?{theme:i}:{},user_id:(null==e?void 0:e.id)?String(e.id):void 0,email_verified:null!=e&&!!e.email_verified_at||void 0,user_type:(null==e?void 0:e.created_at)?function(e){try{let t=new Date(e).getTime(),i=Date.now()-6048e5;return t>i?"new":"returning"}catch(e){return"returning"}}(e.created_at):void 0,plan_name:null!==(s=null!==(l=null!==(a=null==d?void 0:d.subscription_plan_key)&&void 0!==a?a:null==u?void 0:u.plan_title)&&void 0!==l?l:null==d?void 0:d.plan_name)&&void 0!==s?s:"free",plan_price:(0,C.b)(null==u?void 0:u.price),billing_cycle:(null==u?void 0:u.plan_interval)==="year"?"annual":(null==u?void 0:u.plan_interval)?"monthly":void 0,subscription_status:(null==d?void 0:d.is_subscribed)?"active":"inactive",lifecycle_stage:c,current_credits_balance:(null==e?void 0:e.credits)?(0,S.bq)(e.credits):void 0})}function T(e){let t=k(e);return{user_id:t.user_id,plan_name:t.plan_name,subscription_status:t.subscription_status,user_type:t.user_type}}var E=i(89053),P=i(79192),I=i(33443),D=i(15953),O=i(7437);(o||(o={})).SOCIAL_MEDIA_DISTRIBUTION="SOCIAL_MEDIA_DISTRIBUTION";let N=r.createContext(null),j={connectedStreamAccounts:[],connectedAccounts:[]},M=(e,t)=>(t.type,e),R=e=>{var t,i,o,s;let[_,S]=r.useReducer(M,j),{setLoading:C}=r.useContext(a.pV),[R,z]=r.useState(!0),{getBillingInfo:L}=(0,I.Z)(),V=(0,p.useRouter)(),F=c.oR(),U=c.v9(e=>{var t;return null===(t=e.Auth)||void 0===t?void 0:t.user}),G=c.I0();r.useEffect(()=>{B()},[]);let B=async()=>{try{if(z(!0),!d().get(u.f5.API_TOKEN)){F.dispatch({type:u.MF.APP_LOGOUT}),z(!1);return}G((0,l.bG)(async e=>{var t,i,o,n,r,a;window.hj&&window.hj("identify",null==e?void 0:e.id),g.Z.identify({customId:null==e?void 0:e.email}),z(!1),x.ZP.identify(String(null==e?void 0:e.id),k(e,V.locale,null==F?void 0:null===(i=F.getState())||void 0===i?void 0:null===(t=i.Theme)||void 0===t?void 0:t.mode)),x.ZP.registerSuperProperties(T(e)),G((0,l.Qm)(e));let s=d().get(u.f5.FCM_TOKEN);
1s&&s!==(null==U?void 0:U.fcm_token)&&G((0,l.gS)({fcm_token:d().get(u.f5.FCM_TOKEN),preferred_language:V.locale},e=>{},e=>{e.status&&401===e.status&&W()}));try{await L();let e=null==F?void 0:null===(n=F.getState())||void 0===n?void 0:null===(o=n.Auth)||void 0===o?void 0:o.user;(null==e?void 0:e.id)&&(x.ZP.setUserProperties(k(e,V.locale,null==F?void 0:null===(a=F.getState())||void 0===a?void 0:null===(r=a.Theme)||void 0===r?void 0:r.mode)),x.ZP.registerSuperProperties(T(e)))}catch(e){}},e=>{(null==e?void 0:e.status)&&401===e.status&&W()}))}catch(e){}finally{}},Z=async(e,t)=>{(null==e?void 0:e.access_token)&&d().set(u.f5.API_TOKEN,null==e?void 0:e.access_token,{expires:365,path:"/"}),await K(),await Y(!0),t&&t()},q=(e,t,i)=>{C(!0),(null==U?void 0:U.id)?m.i.socialConnect(e,async()=>{await Y(),C(!1)}):(async()=>{await (0,O.Es)(),G((0,l.R5)(e,async e=>{Z(e,()=>{C(!1),t&&t(e)}),h.l.identify(null==e?void 0:e.email,{UserName:null==e?void 0:e.username}),g.Z.identify({customId:null==e?void 0:e.email})},e=>{i&&i(e),C(!1)}))})()},H=()=>{d().remove(u.f5.API_TOKEN),d().remove(u.f5.FCM_TOKEN),d().remove(u.f5.VERIFICATION_STATUS),(0,f.O5)(),(0,D.eu)(),F.dispatch({type:u.MF.APP_LOGOUT}),E.Eh.removeQueries()},W=async function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(d().get(u.f5.API_TOKEN))try{await m.i.logout(),H()}catch(e){H()}else H();x.ZP.reset(),(!u._i.some(e=>V.asPath.startsWith(e))||e)&&(V.pathname.includes("/studio")||V.pathname.includes("/ai-studio"))&&(window.location.href=(0,P.yF)(u.P2.HOME,V.locale||"en"))},Y=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return d().get(u.f5.API_TOKEN)?(e&&z(!0),new Promise(t=>{let i=()=>{e&&z(!1),t()};G((0,l.bG)(e=>{var t,o,n,r;G((0,l.Qm)(e));let a=null==F?void 0:null===(o=F.getState())||void 0===o?void 0:null===(t=o.Auth)||void 0===t?void 0:t.user,s=(null==a?void 0:a.id)?a:e;x.ZP.setUserProperties(k(s,V.locale,null==F?void 0:null===(r=F.getState())||void 0===r?void 0:null===(n=r.Theme)||void 0===n?void 0:n.mode)),x.ZP.registerSuperProperties(T(s)),i()},()=>{i()}))})):Promise.resolve()},[]),K=r.useCallback(()=>{d().get(u.f5.FCM_TOKEN)?G((0,l.gS)({fcm_token:d().get(u.f5.FCM_TOKEN),preferred_language:V.locale})):G((0,l.gS)({preferred_language:V.locale}))},[U]);r.useEffect(()=>{if(V.query&&V.query.driver){let e={driver:V.query.driver,social_access_token:V.query.token,oauth_token_secret:V.query.token_secret};(null==U?void 0:U.id)||q(e)}},[V.query]);let[Q,$]=r.useContext(y.kn),X=r.useRef(!1),J=r.useCallback(e=>{var t,i,o;$({type:y.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},onClose:f.O5,children:(0,n.jsx)(b.ZP,{paymentFlowProps:Number(null==U?void 0:null===(t=U.billingInfo)||void 0===t?void 0:t.subscription_plan_id)===(null==e?void 0:null===(i=e.plan)||void 0===i?void 0:i.id)?{flow:u.SC.UPDATE,plan:e.plan,redirectTo:null==e?void 0:e.redirectTo}:(null==U?void 0:null===(o=U.subscription)||void 0===o?void 0:o.is_subscribed)?{flow:u.SC.UPDATE,plan:e.plan,redirectTo:null==e?void 0:e.redirectTo}:{plan:e.plan,redirectTo:null==e?void 0:e.redirectTo}})}})},[$,null==U?void 0:null===(t=U.billingInfo)||void 0===t?void 0:t.subscription_plan_id,null==U?void 0:null===(i=U.subscription)||void 0===i?void 0:i.is_subscribed]),ee=r.useCallback(()=>{var e,t,i,o,n,r;let a=(0,f.$u)();if(!a){X.current=!1;return}switch(a.action){case"startFreePhotoshoot":{if((0,f.qg)(V.pathname))return;let i=null!==(t=null===(e=a.details)||void 0===e?void 0:e.redirectTo)&&void 0!==t?t:f.VU;(0,f.O5)(),V.push(i);break}case"choosePlan":if((0,f.qg)(V.pathname)||X.current)return;if((null===(i=a.details)||void 0===i?void 0:i.redirectTo)===f.VU){if((0,v.PB)(U)){(0,f.O5)(),V.push(f.VU);return}if((null==U?void 0:U.id)&&(null==U?void 0:U.free_eligible_usages)==null&&(null==U?void 0:U.freeEligibleUsages)==null)return}if((null==U?void 0:U.id)&&(null==U?void 0:null===(o=U.subscription)||void 0===o?void 0:o.is_subscribed)==null&&(null==U?void 0:null===(n=U.billingInfo)||void 0===n?void 0:n.subscription_plan_id)==null)return;X.current=!0,J(null!==(r=a.details)&&void 0!==r?r:{})}},[J,V,U]);return r.useEffect(()=>{var e;
1(null==U?void 0:U.id)&&(!(!(0,f.qg)(V.pathname)&&(0,f.Ez)())||(null==Q?void 0:null===(e=Q.modal)||void 0===e?void 0:e.isOpen)||(X.current=!1),ee())},[null==U?void 0:U.id,null==U?void 0:U.billingInfo,null==U?void 0:null===(o=U.subscription)||void 0===o?void 0:o.is_subscribed,V.pathname,null==Q?void 0:null===(s=Q.modal)||void 0===s?void 0:s.isOpen,ee]),(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(N.Provider,{value:{user:U,logout:W,userLogin:(e,t,i)=>{C(!0),G((0,l.x4)(e,async e=>{Z(e,i=>{C(!1),t&&t(e)}),h.l.identify(null==e?void 0:e.email,{UserName:null==e?void 0:e.username}),g.Z.identify({customId:null==e?void 0:e.email}),x.ZP.identify(String(e.id),{$email:e.email,$name:e.username,$language:V.locale}),x.ZP.setUserProperties({user_type:"returning"}),x.ZP.registerSuperProperties({user_id:String(e.id),user_type:"returning"}),x.ZP.track(w.n5.SIGN_IN,{login_method:"email",user_type:"returning",platform:window.innerWidth<768?"mobile":"desktop"}),A.Z.track("LOGIN")},e=>{i&&i(e),C(!1)}))},userRegister:(e,t,i)=>{let o=JSON.parse(JSON.stringify(e));delete e.terms,C(!0),(async()=>{await (0,O.Es)(),G((0,l.z2)({...e,password_confirmation:null==e?void 0:e.password},async e=>{h.l.identify(null==e?void 0:e.email,{UserName:null==e?void 0:e.username,opt_in:(null==o?void 0:o.is_subscribed_to_newsletter)?"yes":"no"}),t&&t(e)},e=>{i&&i(e),C(!1)}))})()},socialUserLogin:q,isLoggedIn:!!(null==U?void 0:U.id),rehydrateUserData:Y,isFetchingUserData:R,authState:_,dispatchAuthState:S,loadUserFromCookies:B,loginRegisterSuccess:Z},children:e.children})})};N.Consumer},3258:function(e,t,i){"use strict";i.d(t,{u0:function(){return d},NZ:function(){return u},cJ:function(){return s}});var o=i(20931);i(51348);var n=i(63394);let r=e=>{let{videoType:t}=e;return o.XU.includes(t)};var a=i(30381),l=i.n(a);i(2718),i(75529);let s=(e,t,i,a)=>new Promise(async(s,d)=>{if(null==t?void 0:t.length){let r=a||(0,n.JB)(e);if(r||(r=(null==e?void 0:e.name.split(".").pop())||"unknown"),t.includes(r)){if(r.includes("audio")&&e.size/1e3/1e3>((null==i?void 0:i.maxFileSize)?null==i?void 0:i.maxFileSize:200))d({status:o.eE.SIZE_LIMIT,data:{size:e.size/1e3/1e3}});else if(e.size/1024/1024>((null==i?void 0:i.maxFileSize)?null==i?void 0:i.maxFileSize:200))d({status:o.eE.SIZE_LIMIT,data:{size:e.size/1e3/1e3}});else{let t=URL.createObjectURL(e),[a,C]=r.split("/"),k=C===o.J5.GIF?C:a;try{let r=await (0,n.Tx)(t,null,k);if(null==i?void 0:i.imageValidation){var u,c,p,m,h,f,v,g,y,b,A,x,w,_,S;(null==i?void 0:null===(u=i.imageValidation)||void 0===u?void 0:u.ratioRange)&&((null==r?void 0:r.ratio)<(null==i?void 0:null===(c=i.imageValidation)||void 0===c?void 0:c.ratioRange[0])||(null==r?void 0:r.ratio)>(null==i?void 0:null===(p=i.imageValidation)||void 0===p?void 0:p.ratioRange[1]))?d({status:o.eE.ASPECT_RATIO,data:{file:e,fileMetaData:r}}):(null==i?void 0:null===(m=i.imageValidation)||void 0===m?void 0:m.maxWidth)&&(null==r?void 0:r.videoWidth)>(null==i?void 0:null===(h=i.imageValidation)||void 0===h?void 0:h.maxWidth)?d({status:o.eE.DIMENTIONS_LIMIT,data:{status:o.eE.MAX_WIDTH_LIMIT,required:null==i?void 0:null===(x=i.imageValidation)||void 0===x?void 0:x.maxWidth,width:null==r?void 0:r.videoWidth}}):(null==i?void 0:null===(f=i.imageValidation)||void 0===f?void 0:f.maxHeight)&&(null==r?void 0:r.videoHeight)>(null==i?void 0:null===(v=i.imageValidation)||void 0===v?void 0:v.maxHeight)?d({status:o.eE.DIMENTIONS_LIMIT,data:{status:o.eE.MAX_HEIGHT_LIMIT,required:null==i?void 0:null===(w=i.imageValidation)||void 0===w?void 0:w.maxHeight,height:null==r?void 0:r.videoHeight}}):(null==i?void 0:null===(g=i.imageValidation)||void 0===g?void 0:g.minWidth)&&(null==r?void 0:r.videoWidth)<(null==i?void 0:null===(y=i.imageValidation)||void 0===y?void 0:y.minWidth)?d({status:o.eE.DIMENTIONS_LIMIT,data:{status:o.eE.MIN_WIDTH_LIMIT,required:null==i?void 0:null===(_=i.imageValidation)||void 0===_?void 0:_.minWidth,width:null==r?void 0:r.videoWidth}}):(null==i?void 0:null===(b=i.imageValidation)||void 0===b?void 0:b.minHeight)&&(null==r?void 0:r.videoHeight)<(null==i?void 0:null===(A=i.imageValidation)||void 0===A?void 0:A.minHeight)&&d({status:o.eE.DIMENTIONS_LIMIT,data:{status:o.eE.MIN_HEIGHT_LIMIT,required:null==i?void 0:null===(S=i.imageValidation)||void 0===S?void 0:S.minHeight,height:null==r?void 0:r.videoHeight}})}(null==i?void 0:i.viodeDuration)&&(null==r?void 0:r.duration)>(null==i?void 0:i.viodeDuration)?d({status:o.eE.DURATION_LIMIT,data:{duration:null==r?void 0:r.duration}}):(null==i?void 0:i.minDuration)&&(null==r?void 0:r.duration)<(null==i?void 0:i.minDuration)&&d({status:o.eE.MIN_DURATION_LIMIT,data:{duration:null==r?void 0:r.duration}});let a=null==e?void 0:e.name.replace(/\s/g,"-").replace(/[\u200B-\u200D\uFEFF]/g,"-");s({fileMeta:{...r,file:e,name:l()().locale("en").format("YYYY-MM-DD hh:mm:ss").replace(/\s/g,"-"),originalName:a,size:null==e?void 0:e.size,type:null==e?void 0:e.type,mediaType:k}})}catch(t){d({status:o.eE.NOT_SUPPORTED,data:{type:null==e?void 0:e.type}})}}}else d({status:o.eE.NOT_SUPPORTED,data:{type:r}})}else if(r({videoType:null==e?void 0:e.type}
1)){if(e.size/1024/1024>((null==i?void 0:i.maxFileSize)?null==i?void 0:i.maxFileSize:250))d({status:o.eE.SIZE_LIMIT,data:{size:e.size/1024/1024}});else{let t=URL.createObjectURL(e),r=await (0,n.Tx)(t);if((null==r?void 0:r.videoWidth)&&(null==r?void 0:r.videoHeight)){if((null==i?void 0:i.aspectRatio)&&!(null==i?void 0:i.aspectRatio.includes(r.aspectRatio)))d({status:o.eE.ASPECT_RATIO});else{let t=null==e?void 0:e.name.replace(/\s/g,"-").replace(/[\u200B-\u200D\uFEFF]/g,"-");s({fileMeta:{...r,file:e,name:l()().locale("en").format("YYYY-MM-DD hh:mm:ss").replace(/\s/g,"-"),originalName:t,size:null==e?void 0:e.size,type:null==e?void 0:e.type,mediaType:null==e?void 0:e.type.split("/")[0]}})}}else d({status:o.eE.NO_DIMENSIONS})}}else d({status:o.eE.NOT_SUPPORTED,data:{type:null==e?void 0:e.type}})}),d=e=>new Promise(async(t,i)=>{try{let i=await (0,n.Tx)(null==e?void 0:e.video_url,null==e?void 0:e.uuid);t({fileMeta:{...i,hasAudio:null!=e&&!!e.isSample||(null==i?void 0:i.hasAudio),thumbnail_url:null==e?void 0:e.thumbnail_url,isFromLink:!0,uuid:null==e?void 0:e.uuid,name:l()().locale("en").format("YYYY-MM-DD hh:mm:ss").replace(" ","_"),type:"link"}})}catch(e){i(e)}}),u=e=>new Promise(async(t,i)=>{try{let i=await (0,n.Tx)(null==e?void 0:e.original_file_url);t({fileMeta:{...i,thumbnail_url:null==e?void 0:e.thumbnail_url,isFromLink:!0,name:l()().format("YYYY-MM-DD hh:mm:ss"),type:"link"}})}catch(e){}})},2718:function(e,t,i){"use strict";var o,n;i.d(t,{O:function(){return o}}),(n=o||(o={})).UPDATE_VIDEO_STATE="UPDATE_VIDEO_STATE",n.STORE_VIDEO_DETAILS="STORE_VIDEO_DETAILS",n.CLEAR_STATE="CLEAR_STATE",n.LOAD_STORED_DATA="LOAD_STORED_DATA"},75529:function(e,t,i){"use strict";i.d(t,{fm:function(){return a},vu:function(){return r}});var o=i(93383),n=i(2718);let r={video:{},editor:o.$,publisher:{videoInfo:{title:""}}},a={activeProject:null,videos:[]};t.ZP=(e,t)=>
1{switch(t.type){case n.O.UPDATE_VIDEO_STATE:case n.O.STORE_VIDEO_DETAILS:return{...e,...null==t?void 0:t.payload,changes:(null==e?void 0:e.changes)?(null==e?void 0:e.changes)+1:1};case n.O.LOAD_STORED_DATA:return t.payload;case n.O.CLEAR_STATE:return{...a,...t.payload};default:return e}}},31155:function(e,t,i){"use strict";let o,n,r;i.d(t,{BT:function(){return m},kn:function(){return t6},P0:function(){return t8},ZP:function(){return t7},xP:function(){return t9}});var a,l,s,d,u,c,p,m,h=i(85893),f=i(67294),v=i(83454);let g=function(e){let t=[],i=0;for(let o=0;o<e.length;o++){let n=e.charCodeAt(o);n<128?t[i++]=n:(n<2048?t[i++]=n>>6|192:((64512&n)==55296&&o+1<e.length&&(64512&e.charCodeAt(o+1))==56320?(n=65536+((1023&n)<<10)+(1023&e.charCodeAt(++o)),t[i++]=n>>18|240,t[i++]=n>>12&63|128):t[i++]=n>>12|224,t[i++]=n>>6&63|128),t[i++]=63&n|128)}return t},y=function(e){let t=[],i=0,o=0;for(;i<e.length;){let n=e[i++];if(n<128)t[o++]=String.fromCharCode(n);else if(n>191&&n<224){let r=e[i++];t[o++]=String.fromCharCode((31&n)<<6|63&r)}else if(n>239&&n<365){let r=((7&n)<<18|(63&e[i++])<<12|(63&e[i++])<<6|63&e[i++])-65536;t[o++]=String.fromCharCode(55296+(r>>10)),t[o++]=String.fromCharCode(56320+(1023&r))}else{let r=e[i++],a=e[i++];t[o++]=String.fromCharCode((15&n)<<12|(63&r)<<6|63&a)}}return t.join("")},b={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(e,t){if(!Array.isArray(e))throw Error("encodeByteArray takes an array as a parameter");this.init_();let i=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,o=[];for(let t=0;t<e.length;t+=3){let n=e[t],r=t+1<e.length,a=r?e[t+1]:0,l=t+2<e.length,s=l?e[t+2]:0,d=n>>2,u=(3&n)<<4|a>>4,c=(15&a)<<2|s>>6,p=63&s;l||(p=64,r||(c=64)),o.push(i[d],i[u],i[c],i[p])}return o.join("")},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(g(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):y(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let i=t?this.charToByteMapWebSafe_:this.charToByteMap_,o=[];for(let t=0;t<e.length;){let n=i[e.charAt(t++)],r=t<e.length?i[e.charAt(t)]:0,a=++t<e.length?i[e.charAt(t)]:64,l=++t<e.length?i[e.charAt(t)]:64;if(++t,null==n||null==r||null==a||null==l)throw new A;let s=n<<2|r>>4;if(o.push(s),64!==a){let e=r<<4&240|a>>2;if(o.push(e),64!==l){let e=a<<6&192|l;o.push(e)}}}return o},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}};class A extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}let x=function(e){let t=g(e);return b.encodeByteArray(t,!0)},w=function(e){return x(e).replace(/\./g,"")},_=function(e){try{return b.decodeString(e,!0)}catch(e){console.error("base64Decode failed: ",e)}return null},S=()=>(function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==i.g)return i.g;throw Error("Unable to locate global object.")})().__FIREBASE_DEFAULTS__,C=()=>{if(void 0===v||void 0===v.env)return;let e=v.env.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},k=()=>{let e;if("undefined"==typeof document)return;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch(e){return}let t=e&&_(e[1]);return t&&JSON.parse(t)},T=()=>{try{return S()||C()||k()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},E=()=>{var e;return null===(e=T())||void 0===e?void 0:e.config};class P{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>
1{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,i)=>{t?this.reject(t):this.resolve(i),"function"==typeof e&&(this.promise.catch(()=>{}),1===e.length?e(t):e(t,i))}}}function I(){try{return"object"==typeof indexedDB}catch(e){return!1}}function D(){return new Promise((e,t)=>{try{let i=!0,o="validate-browser-context-for-indexeddb-analytics-module",n=self.indexedDB.open(o);n.onsuccess=()=>{n.result.close(),i||self.indexedDB.deleteDatabase(o),e(!0)},n.onupgradeneeded=()=>{i=!1},n.onerror=()=>{var e;t((null===(e=n.error)||void 0===e?void 0:e.message)||"")}}catch(e){t(e)}})}class O extends Error{constructor(e,t,i){super(t),this.code=e,this.customData=i,this.name="FirebaseError",Object.setPrototypeOf(this,O.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,N.prototype.create)}}class N{constructor(e,t,i){this.service=e,this.serviceName=t,this.errors=i}create(e,...t){let i=t[0]||{},o=`${this.service}/${e}`,n=this.errors[e],r=n?n.replace(j,(e,t)=>{let o=i[t];return null!=o?String(o):`<${t}?>`}):"Error",a=`${this.serviceName}: ${r} (${o}).`;return new O(o,a,i)}}let j=/\{\$([^}]+)}/g;function M(e,t){if(e===t)return!0;let i=Object.keys(e),o=Object.keys(t);for(let n of i){if(!o.includes(n))return!1;let i=e[n],r=t[n];if(R(i)&&R(r)){if(!M(i,r))return!1}else if(i!==r)return!1}for(let e of o)if(!i.includes(e))return!1;return!0}function R(e){return null!==e&&"object"==typeof e}function z(e){return e&&e._delegate?e._delegate:e}class L{constructor(e,t,i){this.name=e,this.instanceFactory=t,this.type=i,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}let V="[DEFAULT]";class F{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new P;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let i=this.getOrInitializeService({instanceIdentifier:t});i&&e.resolve(i)}catch(e){}}return this.instancesDeferred.get(t).promise}getImmediate(e){var t;let i=this.normalizeInstanceIdentifier(null==e?void 0:e.identifier),o=null!==(t=null==e?void 0:e.optional)&&void 0!==t&&t;if(this.isInitialized(i)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:i})}catch(e){if(o)return null;throw e}else{if(o)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if("EAGER"===e.instantiationMode)try{this.getOrInitializeService({instanceIdentifier:V})}catch(e){}for(let[e,t]of this.instancesDeferred.entries()){let i=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:i});t.resolve(e)}catch(e){}}}}clearInstance(e=V){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return null!=this.component}isInitialized(e=V){return this.instances.has(e)}getOptions(e=V){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,i=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(i))throw Error(`${this.name}(${i}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let o=this.getOrInitializeService({instanceIdentifier:i,options:t});for(let[e,t]of this.instancesDeferred.entries())i===this.normalizeInstanceIdentifier(e)&&t.resolve(o);return o}onInit(e,t){var i;let o=this.normalizeInstanceIdentifier(t),n=null!==(i=this.onInitCallbacks.get(o))&&void 0!==i?i:new Set;n.add(e),this.onInitCallbacks.set(o,n);let r=this.instances.get(o);return r&&e(r,o),()=>{n.delete(e)}}invokeOnInitCallbacks(e,t){let i=this.onInitCallbacks.get(t);if(i)for(let o of i)try{o(e,t)}catch(e){}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let i=this.instances.get(e);if(!i&&this.component&&(i=this.component.instanceFactory(this.container,{instanceIdentifier:e===V?void 0:e,options:t}),this.instances.set(e,i),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(i,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,i)}catch(e){}return i||null}normalizeInstanceIdentifier(e=V){return this.component?this.component.multipleInstances?e:V:e}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class U{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new F(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}}let G=[];(a=u||(u={}))[a.DEBUG=0]="DEBUG",a[a.VERBOSE=1]="VERBOSE",a[a.INFO=2]="INFO",a[a.WARN=3]="WARN",a[a.ERROR=4]="ERROR",a[a.S
1ILENT=5]="SILENT";let B={debug:u.DEBUG,verbose:u.VERBOSE,info:u.INFO,warn:u.WARN,error:u.ERROR,silent:u.SILENT},Z=u.INFO,q={[u.DEBUG]:"log",[u.VERBOSE]:"log",[u.INFO]:"info",[u.WARN]:"warn",[u.ERROR]:"error"},H=(e,t,...i)=>{if(t<e.logLevel)return;let o=new Date().toISOString(),n=q[t];if(n)console[n](`[${o}]  ${e.name}:`,...i);else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class W{constructor(e){this.name=e,this._logLevel=Z,this._logHandler=H,this._userLogHandler=null,G.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in u))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel="string"==typeof e?B[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if("function"!=typeof e)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,u.DEBUG,...e),this._logHandler(this,u.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,u.VERBOSE,...e),this._logHandler(this,u.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,u.INFO,...e),this._logHandler(this,u.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,u.WARN,...e),this._logHandler(this,u.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,u.ERROR,...e),this._logHandler(this,u.ERROR,...e)}}let Y=(e,t)=>t.some(t=>e instanceof t),K=new WeakMap,Q=new WeakMap,$=new WeakMap,X=new WeakMap,J=new WeakMap,ee={get(e,t,i){if(e instanceof IDBTransaction){if("done"===t)return Q.get(e);if("objectStoreNames"===t)return e.objectStoreNames||$.get(e);if("store"===t)return i.objectStoreNames[1]?void 0:i.objectStore(i.objectStoreNames[0])}return et(e[t])},set:(e,t,i)=>(e[t]=i,!0),has:(e,t)=>e instanceof IDBTransaction&&("done"===t||"store"===t)||t in e};function et(e){var t;if(e instanceof IDBRequest)return function(e){let t=new Promise((t,i)=>{let o=()=>{e.removeEventListener("success",n),e.removeEventListener("error",r)},n=()=>{t(et(e.result)),o()},r=()=>{i(e.error),o()};e.addEventListener("success",n),e.addEventListener("error",r)});return t.then(t=>{t instanceof IDBCursor&&K.set(t,e)}).catch(()=>{}),J.set(t,e),t}(e);if(X.has(e))return X.get(e);let i="function"==typeof(t=e)?t!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?(n||(n=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])).includes(t)?function(...e){return t.apply(ei(this),e),et(K.get(this))}:function(...e){return et(t.apply(ei(this),e))}:function(e,...i){let o=t.call(ei(this),e,...i);return $.set(o,e.sort?e.sort():[e]),et(o)}:(t instanceof IDBTransaction&&function(e){if(Q.has(e))return;let t=new Promise((t,i)=>{let o=()=>{e.removeEventListener("complete",n),e.removeEventListener("error",r),e.removeEventListener("abort",r)},n=()=>{t(),o()},r=()=>{i(e.error||new DOMException("AbortError","AbortError")),o()};e.addEventListener("complete",n),e.addEventListener("error",r),e.addEventListener("abort",r)});Q.set(e,t)}(t),Y(t,o||(o=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])))?new Proxy(t,ee):t;return i!==e&&(X.set(e,i),J.set(i,e)),i}let ei=e=>J.get(e);function eo(e,t,{blocked:i,upgrade:o,blocking:n,terminated:r}={}){let a=indexedDB.open(e,t),l=et(a);return o&&a.addEventListener("upgradeneeded",e=>{o(et(a.result),e.oldVersion,e.newVersion,et(a.transaction),e)}),i&&a.addEventListener("blocked",e=>i(e.oldVersion,e.newVersion,e)),l.then(e=>{r&&e.addEventListener("close",()=>r()),n&&e.addEventListener("versionchange",e=>n(e.oldVersion,e.newVersion,e))}).catch(()=>{}),l}function en(e,{blocked:t}={}){let i=indexedDB.deleteDatabase(e);return t&&i.addEventListener("blocked",e=>t(e.oldVersion,e)),et(i).then(()=>void 0)}let er=["get","getKey","getAll","getAllKeys","count"],ea=["put","add","delete","clear"],el=new Map;function es(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&"string"==typeof t))return;if(el.get(t))return el.get(t);let i=t.replace(/FromIndex$/,""),o=t!==i,n=ea.includes(i);if(!(i in(o?IDBIndex:IDBObjectStore).prototype)||!(n||er.includes(i)))return;let r=async function(e,...t){let r=this.transaction(e,n?"readwrite":"readonly"),a=r.store;
1return o&&(a=a.index(t.shift())),(await Promise.all([a[i](...t),n&&r.done]))[0]};return el.set(t,r),r}ee={...r=ee,get:(e,t,i)=>es(e,t)||r.get(e,t,i),has:(e,t)=>!!es(e,t)||r.has(e,t)};class ed{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(!function(e){let t=e.getComponent();return(null==t?void 0:t.type)==="VERSION"}(e))return null;{let t=e.getImmediate();return`${t.library}/${t.version}`}}).filter(e=>e).join(" ")}}let eu="@firebase/app",ec="0.10.13",ep=new W("@firebase/app"),em="[DEFAULT]",eh={[eu]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/data-connect":"fire-data-connect","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},ef=new Map,ev=new Map,eg=new Map;function ey(e,t){try{e.container.addComponent(t)}catch(i){ep.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,i)}}function eb(e){let t=e.name;if(eg.has(t))return ep.debug(`There were multiple attempts to register component ${t}.`),!1;for(let i of(eg.set(t,e),ef.values()))ey(i,e);for(let t of ev.values())ey(t,e);return!0}function eA(e,t){let i=e.container.getProvider("heartbeat").getImmediate({optional:!0});return i&&i.triggerHeartbeat(),e.container.getProvider(t)}let ex=new N("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
1d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class ew{constructor(e,t,i){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=i,this.container.addComponent(new L("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw ex.create("app-deleted",{appName:this._name})}}function e_(e,t={}){let i=e;"object"!=typeof t&&(t={name:t});let o=Object.assign({name:em,automaticDataCollectionEnabled:!1},t),n=o.name;if("string"!=typeof n||!n)throw ex.create("bad-app-name",{appName:String(n)});if(i||(i=E()),!i)throw ex.create("no-options");let r=ef.get(n);if(r){if(M(i,r.options)&&M(o,r.config))return r;throw ex.create("duplicate-app",{appName:n})}let a=new U(n);for(let e of eg.values())a.addComponent(e);let l=new ew(i,o,a);return ef.set(n,l),l}function eS(e,t,i){var o;let n=null!==(o=eh[e])&&void 0!==o?o:e;i&&(n+=`-${i}`);let r=n.match(/\s|\//),a=t.match(/\s|\//);if(r||a){let e=[`Unable to register library "${n}" with version "${t}":`];r&&e.push(`library name "${n}" contains illegal characters (whitespace or "/")`),r&&a&&e.push("and"),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),ep.warn(e.join(" "));return}eb(new L(`${n}-version`,()=>({library:n,version:t}),"VERSION"))}let eC="firebase-heartbeat-store",ek=null;function eT(){return ek||(ek=eo("firebase-heartbeat-database",1,{upgrade:(e,t)=>{if(0===t)try{e.createObjectStore(eC)}catch(e){console.warn(e)}}}).catch(e=>{throw ex.create("idb-open",{originalErrorMessage:e.message})})),ek}async function eE(e){try{let t=(await eT()).transaction(eC),i=await t.objectStore(eC).get(eI(e));return await t.done,i}catch(e){if(e instanceof O)ep.warn(e.message);else{let t=ex.create("idb-get",{originalErrorMessage:null==e?void 0:e.message});ep.warn(t.message)}}}async function eP(e,t){try{let i=(await eT()).transaction(eC,"readwrite"),o=i.objectStore(eC);await o.put(t,eI(e)),await i.done}catch(e){if(e instanceof O)ep.warn(e.message);else{let t=ex.create("idb-set",{originalErrorMessage:null==e?void 0:e.message});ep.warn(t.message)}}}function eI(e){return`${e.name}!${e.options.appId}`}class eD{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider("app").getImmediate();this._storage=new eN(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){var e,t;try{let i=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),o=eO();if((null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,(null===(t=this._heartbeatsCache)||void 0===t?void 0:t.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===o||this._heartbeatsCache.heartbeats.some(e=>e.date===o))return;return this._heartbeatsCache.heartbeats.push({date:o,agent:i}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{let t=new Date(e.date).valueOf();return Date.now()-t<=2592e6}),this._storage.overwrite(this._heartbeatsCache)}catch(e){ep.warn(e)}}async getHeartbeatsHeader(){var e;try{if(null===this._heartbeatsCache&&await this._heartbeatsCachePromise,(null===(e=this._heartbeatsCache)||void 0===e?void 0:e.heartbeats)==null||0===this._heartbeatsCache.heartbeats.length)return"";let t=eO(),{heartbeatsToSend:i,unsentEntries:o}=function(e,t=1024){let i=[],o=e.slice();for(let n of e){let e=i.find(e=>e.agent===n.agent);if(e){if(e.dates.push(n.date),ej(i)>t){e.dates.pop();break}}else if(i.push({agent:n.agent,dates:[n.date]}),ej(i)>t){i.pop();break}o=o.slice(1)}return{heartbeatsToSend:i,unsentEntries:o}}(this._heartbeatsCache.heartbeats),n=w(JSON.stringify({version:2,heartbeats:i}));return this._heartbeatsCache.lastSentHeartbeatDate=t,o.length>0?(this._heartbeatsCache.heartbeats=o,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),n}catch(e){return ep.warn(e),""}}}function eO(){return new Date().toISOString().substring(0,10)}class eN{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return!!I()&&D().then(()=>!0).catch(()=>!1)}async read(){if(!await this._canUseIndexedDBPromise)return{heartbeats:[]};{let e=await eE(this.app);return(null==e?void 0:e.heartbeats)?e:{heartbeats:[]}}}async overwrite(e){var t;if(await this._canUseIndexedDBPromise){let i=await this.read();return eP(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:i.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){var t;if(await this._canUseIndexedDBPromise){let i=await this.read();return eP(this.app,{lastSentHeartbeatDate:null!==(t=e.lastSentHeartbeatDate)&&void 0!==t?t:i.lastSentHeartbeatDate,heartbeats:[...i.heartbeats,...e.heartbeats]})}}}function ej(e){return w(JSON.stringify({version:2,heartbeats:e})).length}eb(new L("platform-logger",e=>new ed(e),"PRIVATE")),eb(new L("heartbeat",e=>new eD(e),"PRIVATE")),eS(eu,ec,""),eS(eu,ec,"esm2017"),eS("fire-js","");let eM="@firebase/installations",eR="0.6.9",ez=`w:${eR}`,eL="FIS_v2",eV=new N("installations","Installations",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"not-registered":"Firebase Installation is not registered.","installation-not-found":"Firebase Installation not found.","request-failed":'{$requestName} request failed with error "{$serverCode} {$serverStatus}: {$serverMessage}"',"app-offline":"Could not process request. Application offline.","delete-pending-registration":"Can't delete installation while there is a pending registration request."});function eF(e){return e instanceof O&&e.code.includes("request-failed")}function eU({projectId:e}){return`https://firebaseinstallations.googleapis.com/v1/projects/${e}/installations`}
1function eG(e){return{token:e.token,requestStatus:2,expiresIn:Number(e.expiresIn.replace("s","000")),creationTime:Date.now()}}async function eB(e,t){let i=(await t.json()).error;return eV.create("request-failed",{requestName:e,serverCode:i.code,serverMessage:i.message,serverStatus:i.status})}function eZ({apiKey:e}){return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e})}async function eq(e){let t=await e();return t.status>=500&&t.status<600?e():t}async function eH({appConfig:e,heartbeatServiceProvider:t},{fid:i}){let o=eU(e),n=eZ(e),r=t.getImmediate({optional:!0});if(r){let e=await r.getHeartbeatsHeader();e&&n.append("x-firebase-client",e)}let a={method:"POST",headers:n,body:JSON.stringify({fid:i,authVersion:eL,appId:e.appId,sdkVersion:ez})},l=await eq(()=>fetch(o,a));if(l.ok){let e=await l.json();return{fid:e.fid||i,registrationStatus:2,refreshToken:e.refreshToken,authToken:eG(e.authToken)}}throw await eB("Create Installation",l)}function eW(e){return new Promise(t=>{setTimeout(t,e)})}let eY=/^[cdef][\w-]{21}$/;function eK(e){return`${e.appName}!${e.appId}`}let eQ=new Map;function e$(e,t){let i=eK(e);eX(i,t),function(e,t){let i=(!eJ&&"BroadcastChannel"in self&&((eJ=new BroadcastChannel("[Firebase] FID Change")).onmessage=e=>{eX(e.data.key,e.data.fid)}),eJ);i&&i.postMessage({key:e,fid:t}),0===eQ.size&&eJ&&(eJ.close(),eJ=null)}(i,t)}function eX(e,t){let i=eQ.get(e);if(i)for(let e of i)e(t)}let eJ=null,e0="firebase-installations-store",e1=null;function e2(){return e1||(e1=eo("firebase-installations-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(e0)}})),e1}async function e3(e,t){let i=eK(e),o=(await e2()).transaction(e0,"readwrite"),n=o.objectStore(e0),r=await n.get(i);return await n.put(t,i),await o.done,r&&r.fid===t.fid||e$(e,t.fid),t}async function e4(e){let t=eK(e),i=(await e2()).transaction(e0,"readwrite");await i.objectStore(e0).delete(t),await i.done}async function e5(e,t){let i=eK(e),o=(await e2()).transaction(e0,"readwrite"),n=o.objectStore(e0),r=await n.get(i),a=t(r);return void 0===a?await n.delete(i):await n.put(a,i),await o.done,a&&(!r||r.fid!==a.fid)&&e$(e,a.fid),a}async function e6(e){let t;let i=await e5(e.appConfig,i=>{let o=function(e,t){if(0===t.registrationStatus){if(!navigator.onLine)return{installationEntry:t,registrationPromise:Promise.reject(eV.create("app-offline"))};let i={fid:t.fid,registrationStatus:1,registrationTime:Date.now()},o=e8(e,i);return{installationEntry:i,registrationPromise:o}}return 1===t.registrationStatus?{installationEntry:t,registrationPromise:e9(e)}:{installationEntry:t}}(e,te(i||{fid:function(){try{let e=new Uint8Array(17);(self.crypto||self.msCrypto).getRandomValues(e),e[0]=112+e[0]%16;let t=btoa(String.fromCharCode(...e)).replace(/\+/g,"-").replace(/\//g,"_").substr(0,22);return eY.test(t)?t:""}catch(e){return""}}(),registrationStatus:0}));return t=o.registrationPromise,o.installationEntry});return""===i.fid?{installationEntry:await t}:{installationEntry:i,registrationPromise:t}}async function e8(e,t){try{let i=await eH(e,t);return e3(e.appConfig,i)}catch(i){throw eF(i)&&409===i.customData.serverCode?await e4(e.appConfig):await e3(e.appConfig,{fid:t.fid,registrationStatus:0}),i}}async function e9(e){let t=await e7(e.appConfig);for(;1===t.registrationStatus;)await eW(100),t=await e7(e.appConfig);if(0===t.registrationStatus){let{installationEntry:t,registrationPromise:i}=await e6(e);return i||t}return t}function e7(e){return e5(e,e=>{if(!e)throw eV.create("installation-not-found");return te(e)})}function te(e){return 1===e.registrationStatus&&e.registrationTime+1e4<Date.now()?{fid:e.fid,registrationStatus:0}:e}async function tt({appConfig:e,heartbeatServiceProvider:t},i){let o=function(e,{fid:t}){return`${eU(e)}/${t}/authTokens:generate`}(e,i),n=function(e,{refreshToken:t}){let i=eZ(e);return i.append("Authorization",`${eL} ${t}`),i}(e,i),r=t.getImmediate({optional:!0});if(r){let e=await r.getHeartbeatsHeader();e&&n.append("x-firebase-client",e)}let a={method:"POST",headers:n,body:JSON.stringify({installation:{sdkVersion:ez,appId:e.appId}})},l=await eq(()=>fetch(o,a));if(l.ok)return eG(await l.json());throw await eB("Generate Auth Token",l)}async function ti(e,t=!1){let i;let o=await e5(e.appConfig,o=>{var n;if(!ta(o))throw eV.create("not-registered");let r=o.authToken;if(!t&&2===(n=r).requestStatus&&!function(e){let t=Date.now();
1return t<e.creationTime||e.creationTime+e.expiresIn<t+36e5}(n))return o;if(1===r.requestStatus)return i=to(e,t),o;{if(!navigator.onLine)throw eV.create("app-offline");let t=function(e){let t={requestStatus:1,requestTime:Date.now()};return Object.assign(Object.assign({},e),{authToken:t})}(o);return i=tr(e,t),t}});return i?await i:o.authToken}async function to(e,t){let i=await tn(e.appConfig);for(;1===i.authToken.requestStatus;)await eW(100),i=await tn(e.appConfig);let o=i.authToken;return 0===o.requestStatus?ti(e,t):o}function tn(e){return e5(e,e=>{var t;if(!ta(e))throw eV.create("not-registered");return 1===(t=e.authToken).requestStatus&&t.requestTime+1e4<Date.now()?Object.assign(Object.assign({},e),{authToken:{requestStatus:0}}):e})}async function tr(e,t){try{let i=await tt(e,t),o=Object.assign(Object.assign({},t),{authToken:i});return await e3(e.appConfig,o),i}catch(i){if(eF(i)&&(401===i.customData.serverCode||404===i.customData.serverCode))await e4(e.appConfig);else{let i=Object.assign(Object.assign({},t),{authToken:{requestStatus:0}});await e3(e.appConfig,i)}throw i}}function ta(e){return void 0!==e&&2===e.registrationStatus}async function tl(e){let{installationEntry:t,registrationPromise:i}=await e6(e);return i?i.catch(console.error):ti(e).catch(console.error),t.fid}async function ts(e,t=!1){return await td(e),(await ti(e,t)).token}async function td(e){let{registrationPromise:t}=await e6(e);t&&await t}function tu(e){return eV.create("missing-app-config-values",{valueName:e})}let tc="installations";eb(new L(tc,e=>{let t=e.getProvider("app").getImmediate(),i=function(e){if(!e||!e.options)throw tu("App Configuration");if(!e.name)throw tu("App Name");for(let t of["projectId","apiKey","appId"])if(!e.options[t])throw tu(t);return{appName:e.name,projectId:e.options.projectId,apiKey:e.options.apiKey,appId:e.options.appId}}(t),o=eA(t,"heartbeat");return{app:t,appConfig:i,heartbeatServiceProvider:o,_delete:()=>Promise.resolve()}},"PUBLIC")),eb(new L("installations-internal",e=>{let t=eA(e.getProvider("app").getImmediate(),tc).getImmediate();return{getId:()=>tl(t),getToken:e=>ts(t,e)}},"PRIVATE")),eS(eM,eR),eS(eM,eR,"esm2017");let tp="BDOU99-h67HcA6JeFXHbSNMu7e2yNNu3RzoMj8TM4W88jITfq7ZmPvIM1Iv-4_l2LxQcYwhqby2xGpWwzjfAnG4",tm="google.c.a.c_id";function th(e){return btoa(String.fromCharCode(...new Uint8Array(e))).replace(/=/g,"").replace(/\+/g,"-").replace(/\//g,"_")}(l=c||(c={}))[l.DATA_MESSAGE=1]="DATA_MESSAGE",l[l.DISPLAY_NOTIFICATION=3]="DISPLAY_NOTIFICATION",(s=p||(p={})).PUSH_RECEIVED="push-received",s.NOTIFICATION_CLICKED="notification-clicked";let tf="fcm_token_details_db",tv="fcm_token_object_Store";async function tg(e){if("databases"in indexedDB&&!(await indexedDB.databases()).map(e=>e.name).includes(tf))return null;let t=null;return(await eo(tf,5,{upgrade:async(i,o,n,r)=>{var a;if(o<2||!i.objectStoreNames.contains(tv))return;let l=r.objectStore(tv),s=await l.index("fcmSenderId").get(e);if(await l.clear(),s){if(2===o){if(!s.auth||!s.p256dh||!s.endpoint)return;t={token:s.fcmToken,createTime:null!==(a=s.createTime)&&void 0!==a?a:Date.now(),subscriptionOptions:{auth:s.auth,p256dh:s.p256dh,endpoint:s.endpoint,swScope:s.swScope,vapidKey:"string"==typeof s.vapidKey?s.vapidKey:th(s.vapidKey)}}}else 3===o?t={token:s.fcmToken,createTime:s.createTime,subscriptionOptions:{auth:th(s.auth),p256dh:th(s.p256dh),endpoint:s.endpoint,swScope:s.swScope,vapidKey:th(s.vapidKey)}}:4===o&&(t={token:s.fcmToken,createTime:s.createTime,subscriptionOptions:{auth:th(s.auth),p256dh:th(s.p256dh),endpoint:s.endpoint,swScope:s.swScope,vapidKey:th(s.vapidKey)}})}}})).close(),await en(tf),await en("fcm_vapid_details_db"),await en("undefined"),!function(e){if(!e||!e.subscriptionOptions)return!1;let{subscriptionOptions:t}=e;return"number"==typeof e.createTime&&e.createTime>0&&"string"==typeof e.token&&e.token.length>0&&"string"==typeof t.auth&&t.auth.length>0&&"string"==typeof t.p256dh&&t.p256dh.length>0&&"string"==typeof t.endpoint&&t.endpoint.length>0&&"string"==typeof t.swScope&&t.swScope.length>0&&"string"==typeof t.vapidKey&&t.vapidKey.length>0}(t)?null:t}let ty="firebase-messaging-store",tb=null;function tA(){return tb||(tb=eo("firebase-messaging-database",1,{upgrade:(e,t)=>{0===t&&e.createObjectStore(ty)}})),tb}async function tx(e){let t=function({appConfig:e}){return e.appId}(e),i=await tA(),o=await i.transaction(ty).objectStore(ty).get(t);if(o)return o;{let t=await tg(e.appConfig.senderId);if(t)return await tw(e,t),t}}async function tw(e,t){let i=function({appConfig:e}){return e.appId}(e),o=(await tA()).transaction(ty,"readwrite");return await o.objectStore(ty).put(t,i),await o.done,t}let t_=new N("messaging","Messaging",{"missing-app-config-values":'Missing App configuration value: "{$valueName}"',"only-available-in-window":"This method is available in a Window context.","only-available-in-sw":"This method is available in a service worker context.","permission-default":"The notification permission was not granted and dismissed instead.","permission-blocked":"The notification permission was not granted and blocked instead.","unsupported-browser":"This browser doesn't support the API's required to use the Firebase SDK.","indexed-db-unsupported":"This browser doesn't support indexedDb.open() (ex. Safari iFrame, Firefox Private Browsing, etc)","failed-service-worker-registration":"We are unable to register the default service worker. {$browserErrorMessage}","token-subscribe-failed":"A problem occurred while subscribing the user to FCM: {$errorInfo}","token-subscribe-no-token":"FCM returned no token when subscribing the user to push.","token-unsubscribe-failed":"A problem occurred while unsubscribing the user from FCM: {$errorInfo}","token-update-failed":"A problem occurred while updating the user from FCM: {$errorInfo}","token-update-no-token":"FCM returned no token when updating the user to push.","use-sw-after-get-token":"The useServiceWorker() method may only be called once and must be called before calling getToken() to ensure your service worker is used.","invali
1d-sw-registration":"The input to useServiceWorker() must be a ServiceWorkerRegistration.","invalid-bg-handler":"The input to setBackgroundMessageHandler() must be a function.","invalid-vapid-key":"The public VAPID key must be a string.","use-vapid-key-after-get-token":"The usePublicVapidKey() method may only be called once and must be called before calling getToken() to ensure your VAPID key is used."});async function tS(e,t){let i;let o={method:"POST",headers:await tE(e),body:JSON.stringify(tP(t))};try{let t=await fetch(tT(e.appConfig),o);i=await t.json()}catch(e){throw t_.create("token-subscribe-failed",{errorInfo:null==e?void 0:e.toString()})}if(i.error){let e=i.error.message;throw t_.create("token-subscribe-failed",{errorInfo:e})}if(!i.token)throw t_.create("token-subscribe-no-token");return i.token}async function tC(e,t){let i;let o={method:"PATCH",headers:await tE(e),body:JSON.stringify(tP(t.subscriptionOptions))};try{let n=await fetch(`${tT(e.appConfig)}/${t.token}`,o);i=await n.json()}catch(e){throw t_.create("token-update-failed",{errorInfo:null==e?void 0:e.toString()})}if(i.error){let e=i.error.message;throw t_.create("token-update-failed",{errorInfo:e})}if(!i.token)throw t_.create("token-update-no-token");return i.token}async function tk(e,t){let i=await tE(e);try{let o=await fetch(`${tT(e.appConfig)}/${t}`,{method:"DELETE",headers:i}),n=await o.json();if(n.error){let e=n.error.message;throw t_.create("token-unsubscribe-failed",{errorInfo:e})}}catch(e){throw t_.create("token-unsubscribe-failed",{errorInfo:null==e?void 0:e.toString()})}}function tT({projectId:e}){return`https://fcmregistrations.googleapis.com/v1/projects/${e}/registrations`}async function tE({appConfig:e,installations:t}){let i=await t.getToken();return new Headers({"Content-Type":"application/json",Accept:"application/json","x-goog-api-key":e.apiKey,"x-goog-firebase-installations-auth":`FIS ${i}`})}function tP({p256dh:e,auth:t,endpoint:i,vapidKey:o}){let n={web:{endpoint:i,auth:t,p256dh:e}};return o!==tp&&(n.web.applicationPubKey=o),n}async function tI(e){let t=await tN(e.swRegistration,e.vapidKey),i={vapidKey:e.vapidKey,swScope:e.swRegistration.scope,endpoint:t.endpoint,auth:th(t.getKey("auth")),p256dh:th(t.getKey("p256dh"))},o=await tx(e.firebaseDependencies);if(!o)return tO(e.firebaseDependencies,i);if(function(e,t){let i=t.vapidKey===e.vapidKey,o=t.endpoint===e.endpoint,n=t.auth===e.auth,r=t.p256dh===e.p256dh;return i&&o&&n&&r}(o.subscriptionOptions,i))return Date.now()>=o.createTime+6048e5?tD(e,{token:o.token,createTime:Date.now(),subscriptionOptions:i}):o.token;try{await tk(e.firebaseDependencies,o.token)}catch(e){console.warn(e)}return tO(e.firebaseDependencies,i)}async function tD(e,t){try{let i=await tC(e.firebaseDependencies,t),o=Object.assign(Object.assign({},t),{token:i,createTime:Date.now()});return await tw(e.firebaseDependencies,o),i}catch(e){throw e}}async function tO(e,t){let i={token:await tS(e,t),createTime:Date.now(),subscriptionOptions:t};return await tw(e,i),i.token}async function tN(e,t){return await e.pushManager.getSubscription()||e.pushManager.subscribe({userVisibleOnly:!0,applicationServerKey:function(e){let t="=".repeat((4-e.length%4)%4),i=atob((e+t).replace(/\-/g,"+").replace(/_/g,"/")),o=new Uint8Array(i.length);for(let e=0;e<i.length;++e)o[e]=i.charCodeAt(e);return o}(t)})}function tj(e){let t={from:e.from,collapseKey:e.collapse_key,messageId:e.fcmMessageId};return function(e,t){if(!t.notification)return;e.notification={};let i=t.notification.title;i&&(e.notification.title=i);let o=t.notification.body;o&&(e.notification.body=o);let n=t.notification.image;n&&(e.notification.image=n);let r=t.notification.icon;r&&(e.notification.icon=r)}(t,e),e.data&&(t.data=e.data),function(e,t){var i,o,n,r,a;if(!t.fcmOptions&&!(null===(i=t.notification)||void 0===i?void 0:i.click_action))return;e.fcmOptions={};let l=null!==(n=null===(o=t.fcmOptions)||void 0===o?void 0:o.link)&&void 0!==n?n:null===(r=t.notification)||void 0===r?void 0:r.click_action;l&&(e.fcmOptions.link=l);let s=null===(a=t.fcmOptions)||void 0===a?void 0:a.analytics_label;s&&(e.fcmOptions.analyticsLabel=s)}(t,e),t}function tM(e){return t_.create("missing-app-config-values",{valueName:e})}!function(e,t){let i=[];for(let o=0;o<e.length;o++)i.push(e.charAt(o)),o<t.length&&i.push(t.charAt(o));i.join("")}("AzSCbw63g1R0nCw85jG8","Iaya3yLKwmgvh7cF0q4");class tR{constructor(e,t,i){this.deliveryMetricsExportedToBigQueryEnabled=!1,this.onBackgroun
1dMessageHandler=null,this.onMessageHandler=null,this.logEvents=[],this.isLogServiceStarted=!1;let o=function(e){if(!e||!e.options)throw tM("App Configuration Object");if(!e.name)throw tM("App Name");let{options:t}=e;for(let e of["projectId","apiKey","appId","messagingSenderId"])if(!t[e])throw tM(e);return{appName:e.name,projectId:t.projectId,apiKey:t.apiKey,appId:t.appId,senderId:t.messagingSenderId}}(e);this.firebaseDependencies={app:e,appConfig:o,installations:t,analyticsProvider:i}}_delete(){return Promise.resolve()}}async function tz(e){try{e.swRegistration=await navigator.serviceWorker.register("/firebase-messaging-sw.js",{scope:"/firebase-cloud-messaging-push-scope"}),e.swRegistration.update().catch(()=>{})}catch(e){throw t_.create("failed-service-worker-registration",{browserErrorMessage:null==e?void 0:e.message})}}async function tL(e,t){if(t||e.swRegistration||await tz(e),t||!e.swRegistration){if(!(t instanceof ServiceWorkerRegistration))throw t_.create("invalid-sw-registration");e.swRegistration=t}}async function tV(e,t){t?e.vapidKey=t:e.vapidKey||(e.vapidKey=tp)}async function tF(e,t){if(!navigator)throw t_.create("only-available-in-window");if("default"===Notification.permission&&await Notification.requestPermission(),"granted"!==Notification.permission)throw t_.create("permission-blocked");return await tV(e,null==t?void 0:t.vapidKey),await tL(e,null==t?void 0:t.serviceWorkerRegistration),tI(e)}async function tU(e,t,i){let o=function(e){switch(e){case p.NOTIFICATION_CLICKED:return"notification_open";case p.PUSH_RECEIVED:return"notification_foreground";default:throw Error()}}(t);(await e.firebaseDependencies.analyticsProvider.get()).logEvent(o,{message_id:i[tm],message_name:i["google.c.a.c_l"],message_time:i["google.c.a.ts"],message_device_time:Math.floor(Date.now()/1e3)})}async function tG(e,t){let i=t.data;if(!i.isFirebaseMessaging)return;e.onMessageHandler&&i.messageType===p.PUSH_RECEIVED&&("function"==typeof e.onMessageHandler?e.onMessageHandler(tj(i)):e.onMessageHandler.next(tj(i)));let o=i.data;"object"==typeof o&&o&&tm in o&&"1"===o["google.c.a.e"]&&await tU(e,i.messageType,o)}let tB="@firebase/messaging",tZ="0.12.12";async function tq(){try{await D()}catch(e){return!1}return"undefined"!=typeof window&&I()&&"undefined"!=typeof navigator&&!!navigator.cookieEnabled&&"serviceWorker"in navigator&&"PushManager"in window&&"Notification"in window&&"fetch"in window&&ServiceWorkerRegistration.prototype.hasOwnProperty("showNotification")&&PushSubscription.prototype.hasOwnProperty("getKey")}function tH(e=function(e=em){let t=ef.get(e);if(!t&&e===em&&E())return e_();if(!t)throw ex.create("no-app",{appName:e});return t}()){return tq().then(e=>{if(!e)throw t_.create("unsupported-browser")},e=>{throw t_.create("indexed-db-unsupported")}),eA(z(e),"messaging").getImmediate()}async function tW(e,t){return tF(e=z(e),t)}eb(new L("messaging",e=>{let t=new tR(e.getProvider("app").getImmediate(),e.getProvider("installations-internal").getImmediate(),e.getProvider("analytics-internal"));return navigator.serviceWorker.addEventListener("message",e=>tG(t,e)),t},"PUBLIC")),eb(new L("messaging-internal",e=>{let t=e.getProvider("messaging").getImmediate();return{getToken:e=>tF(t,e)}},"PRIVATE")),eS(tB,tZ),eS(tB,tZ,"esm2017"),eS("firebase","10.14.1","app");var tY=i(36808),tK=i.n(tY),tQ=i(20931);let t$={isSupported:async()=>new Promise(async(e,t)=>{await tq()&&e(!0),t()}),tokenCookie:async()=>tK().get(tQ.f5.FCM_TOKEN),init:async function(e){try{let t=e_({apiKey:"AIzaSyBgbQWg3s96_a0JnVWMmPHV4P2t6lf-7oY",authDomain:"bithlive.firebaseapp.com",databaseURL:"https://bithlive.firebaseio.com",projectId:"bithlive",storageBucket:"bithlive.appspot.com",messagingSenderId:"233113754649",appId:"1:233113754649:web:c93c715f0c2a58ecd71e88",measurementId:"G-SQFDCR5XGF"}),i=await tK().get(tQ.f5.FCM_TOKEN)||await (null===this||void 0===this?void 0:this.tokenCookie());if(i)e&&e(i);else{let i=tH(t),o=await Notification.requestPermission();if(o&&"granted"===o){let t=await tW(i,{vapidKey:"BFG47h6ZA-j5ubEX0B7D4gY9dEisWofpv_ETu8RkPjZXZRtPnRiKcS755aUOCbVbpyN1ZQv_F6c0j9sgH3qTsM8"});t&&e&&e(t)}}}catch(e){}}};var tX=i(27524),tJ=i(54482),t0=i(64329),t1=i(25617),t2=i(68419);let t3=0,t4={feedRefetch:!1,notification:{newNotification:!1,open:!1,duration:0,position:"",message:"",type:""},toast:{open:!1,duration:0,position:"",message:"",type:""},modal:{closable:!0,isOpen:!1,options:{},children:null,exitStyle:{}},flashMessage:{open:!1,message:"",duration:0},streamInstance:null};(d=m||(m={})).NOTIFICATIONS_CHANGED="NOTIFICATIONS_CHANGED",d.MODAL_STATE_CHANGED="MODAL_STATE_CHANGED",d.SWIPE_STATE_CHANGED="SWIPE_
1STATE_CHANGED",d.TOAST_STATE_CHANGED="TOAST_STATE_CHANGED",d.FLASH_MESSAGE_STATE_CHANGED="FLASH_MESSAGE_STATE_CHANGED",d.STREAM_INSTANCE_CHANGED="STREAM_INSTANCE_CHANGED";let t5=(e,t)=>{switch(t.type){case"MODAL_STATE_CHANGED":return{...e,modal:t.payload};case"TOAST_STATE_CHANGED":return{...e,toast:t.payload};case"FLASH_MESSAGE_STATE_CHANGED":return{...e,flashMessage:t.payload};case"NOTIFICATIONS_CHANGED":return{...e,notification:t.payload};case"STREAM_INSTANCE_CHANGED":return{...e,streamInstance:t.payload};default:return e}},t6=f.createContext(t4),t8=f.createContext(()=>void 0),t9=()=>f.useContext(t8);var t7=e=>{let{children:t}=e,i=(0,tJ.Z)(),o=(0,t1.I0)();f.useEffect(()=>{i.setupVideosDatabase()},[]);let[n,r]=f.useReducer(t5,t4),{getDirection:a,language:l}=f.useContext(tX.AZ),[s,d]=f.useState("BithAI");async function u(){try{await t$.init(async e=>{e&&((0,t0.fJ)()&&e!==tK().get(tQ.f5.FCM_TOKEN)&&(tK().set(tQ.f5.FCM_TOKEN,e,{expires:365}),o((0,t2.gS)({fcm_token:e,preferred_language:l}))),"undefined"!=typeof navigator&&navigator.serviceWorker?navigator.serviceWorker.addEventListener("message",e=>{var t;(null===(t=e.data)||void 0===t?void 0:t.backgroundNotification)?(t3+=1,"undefined"!=typeof document&&(document.title="(".concat(t3,") ").concat(s)),window.onfocus=()=>{if(t3>0){var t,i;i=null===(t=e.data)||void 0===t?void 0:t.payload,"undefined"!=typeof document&&(document.title=s),t3=0,p(i)}}):p(e.data)}):tH())})}catch(e){}}f.useEffect(()=>{"undefined"!=typeof document&&d(document.title||"BithAI")},[]);let c=async()=>{try{await t$.isSupported(),u()}catch(e){}};f.useEffect(()=>{c()},[]);let p=e=>{var t,i,o,n,l,s,d,u;r({type:"NOTIFICATIONS_CHANGED",payload:{newNotification:!0,open:!0,message:e,position:a,title:{en:null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.title_en,ar:null==e?void 0:null===(i=e.data)||void 0===i?void 0:i.title_ar},body:{en:null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.body_en,ar:null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.body_ar},img:null==e?void 0:null===(l=e.data)||void 0===l?void 0:l.image_url,user:null==e?void 0:null===(s=e.data)||void 0===s?void 0:s.user,team:null==e?void 0:null===(d=e.data)||void 0===d?void 0:d.team,type:null==e?void 0:null===(u=e.data)||void 0===u?void 0:u.type,duration:5e3}})};return(0,h.jsx)(t8.Provider,{value:r,children:(0,h.jsx)(t6.Provider,{value:[{...n},r],children:t})})}},27524:function(e,t,i){"use strict";i.d(t,{AZ:function(){return A},iL:function(){return x}});var o=i(85893),n=i(67294),r=i(36808),a=i.n(r),l=i(20931),s=i(25617),d=i(11163),u=i(68419),c=i(82821),p=i(64329),m=i(30381),h=i.n(m);i(30867),i(55655);let f=()=>h().updateLocale("en",{relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d mins",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"}}),v={init:e=>{let{language:t}=e;h().locale(t),t===l.H7.EN.value&&f()}};var g=i(89053),y=i(47035);let b=e=>e===l.H7.AR.value,A=(0,n.createContext)(null),x=e=>{let t=(0,s.I0)(),i=(0,d.useRouter)(),[r,m]=(0,n.useState)(!1),h=async e=>{try{"undefined"!=typeof document&&document.documentElement.setAttribute("dir",e);let t=setTimeout(()=>{let i=document.getElementById("css-".concat("rtl"===e?"ltr":"rtl"));i&&(i.setAttribute("id","css-".concat(e)),i.setAttribute("href","/styles/tailwind.".concat(e,".css?v=").concat(1790765071503))),m(!1),clearTimeout(t)},300)}catch(e){}},[f,x]=(0,n.useReducer)((e,t)=>{if("switchLanguage"===t.type){let i=b(t.value)?l.H7.AR.dir:l.H7.EN.dir;return(0,p.B_)(t.value),i!==(null==e?void 0:e.dir)&&h(i),{...e,lang:t.value,dir:b(t.value)?l.H7.AR.dir:l.H7.EN.dir}}},{lang:(null==i?void 0:i.locale)||"en",dir:b((null==i?void 0:i.locale)||"en")?l.H7.AR.dir:l.H7.EN.dir}),w=async e=>{let{pathname:o,asPath:n,query:r}=i;b(e||"")!==b((null==i?void 0:i.locale)||"")&&m(!0),i.push({pathname:o,query:r},n,{locale:e}),a().get(l.f5.API_TOKEN)&&t((0,u.gS)({preferred_language:e}))},_=(null==i?void 0:i.locale)==="ar-sa"?"ar":(null==i?void 0:i.locale)||"en",S=(0,n.useMemo)(()=>({switchLanguage:e=>w(),changeLang:w,language:_,locale:(null==i?void 0:i.locale)||"en",getDirection:f.dir,isAr:()=>b(f.lang),isRtl:()=>f.dir===l.H7.AR.dir,isArabic:f.lang===l.H7.AR.value}),[f,i.pathname,i.query,i.asPath,i.locale]);return n.useEffect(()=>{(null==i?void 0:i.locale)&&(x({type:"switchLanguage",value:null==i?void 0:i.locale}),v.init({language:(0,y.y)(null==i?void 0:i.locale)||"en"}
1),g.ZP.invalidateQueries())},[i.locale]),(0,o.jsx)(A.Provider,{value:{...S},children:r?(0,o.jsx)("div",{className:"flex justify-center items-center h-full w-full",children:(0,o.jsx)(c.Z,{})}):e.children})};A.Consumer},76425:function(e,t,i){"use strict";i.d(t,{PK:function(){return a},pV:function(){return r}});var o=i(85893),n=i(67294);i(82821);let r=(0,n.createContext)({loading:!1,setLoading:e=>null});r.Consumer;let a=e=>{let[t,i]=(0,n.useState)(!1);return(0,o.jsx)(r.Provider,{value:{loading:t,setLoading:e=>i(e)},children:e.children})}},36135:function(e,t,i){"use strict";var o,n;i.d(t,{F:function(){return o}}),(n=o||(o={})).NEXT_STEP="NEXT_STEP",n.PREV_STEP="PREV_STEP",n.CHOOSE_PLAN="CHOOSE_PLAN",n.PAYMENT_PREVIEW_DATA_CHANGE="PAYMENT_PREVIEW_DATA_CHANGE",n.PAYMENT_GENERAL_DATA="PAYMENT_GENERAL_DATA",n.PERSONAL_INFO_CHANGED="PERSONAL_INFO_CHANGED",n.CANCELLATION_ANSWERS_CHANGED="CANCELLATION_ANSWERS_CHANGED",n.SET_CHECKOUT_PANE="SET_CHECKOUT_PANE",n.SET_DISCOUNT="SET_DISCOUNT",t.Z={nextStep:()=>e=>e.dispatchPaymentFlowState({type:"NEXT_STEP"}),prevStep:()=>e=>e.dispatchPaymentFlowState({type:"PREV_STEP"}),choosePlan:e=>t=>{t.dispatchPaymentFlowState({type:"CHOOSE_PLAN",payload:e})},changeSubscribePreviewData:e=>{let{isTermsAccepted:t}=e;return e=>e.dispatchPaymentFlowState({type:"PAYMENT_PREVIEW_DATA_CHANGE",payload:{isTermsAccepted:t}})},onSubmitPersonalInfo:e=>t=>{var i;t.dispatchPaymentFlowState({type:"PERSONAL_INFO_CHANGED",payload:{formData:e,step:(null==t?void 0:null===(i=t.paymentFlowState)||void 0===i?void 0:i.step)+1}})},onChangeCancelationValues:e=>t=>{t.dispatchPaymentFlowState({type:"CANCELLATION_ANSWERS_CHANGED",payload:{data:e}})},onChangeGeneralData:e=>t=>{t.dispatchPaymentFlowState({type:"PAYMENT_GENERAL_DATA",payload:{...e}})},setCheckoutPane:(e,t)=>i=>i.dispatchPaymentFlowState({type:"SET_CHECKOUT_PANE",payload:t?{pane:e,...t}:e}),setDiscount:e=>t=>t.dispatchPaymentFlowState({type:"SET_DISCOUNT",payload:e})}},43002:function(e,t,i){"use strict";i.d(t,{_:function(){return u},Z:function(){return c}});var o=i(85893),n=i(67294),r=i(36135);let a={step:0};var l=(e,t)=>
1{var i,o,n;switch(t.type){case r.F.NEXT_STEP:return{...e,step:(null==e?void 0:e.step)+1};case r.F.PREV_STEP:return{...e,step:(null==e?void 0:e.step)-1};case r.F.CHOOSE_PLAN:return{...e,plan:null==t?void 0:t.payload,discountCode:void 0,discountError:void 0,discountedDueToday:void 0};case r.F.SET_CHECKOUT_PANE:{let i=null==t?void 0:t.payload;if(i&&"object"==typeof i){let{pane:t,...o}=i;return{...e,checkoutPane:t,...o}}return{...e,checkoutPane:i}}case r.F.SET_DISCOUNT:case r.F.PAYMENT_GENERAL_DATA:return{...e,...null==t?void 0:t.payload};case r.F.PAYMENT_PREVIEW_DATA_CHANGE:return{...e,preview:{...null==e?void 0:e.preview,...null==t?void 0:t.payload}};case r.F.PERSONAL_INFO_CHANGED:return{...e,personalInfo:{...null==e?void 0:e.personalInfo,...null==t?void 0:null===(i=t.payload)||void 0===i?void 0:i.formData},step:null==t?void 0:null===(o=t.payload)||void 0===o?void 0:o.step};case r.F.CANCELLATION_ANSWERS_CHANGED:return{...e,cancelation:{...null==e?void 0:e.cancelation,...null==t?void 0:null===(n=t.payload)||void 0===n?void 0:n.data}};default:return a}},s=i(33443),d=i(90549);let u=n.createContext(null);var c=e=>{let{flow:t,plan:i,isChangePlan:r,currentTab:c,trigger_source:p,redirectTo:m}=e,{getBillingInfo:h}=(0,s.Z)(),{userState:f}=(0,d.Z)(),v=async()=>{await h()};n.useEffect(()=>{(null==f?void 0:f.id)&&v()},[null==f?void 0:f.id]);let[g,y]=n.useReducer(l,{...a,flow:t,plan:i,isChangePlan:r,step:1,checkoutPane:(null==f?void 0:f.id)?"paddle":"auth",currentTab:c,trigger_source:p,redirectTo:m});return(0,o.jsx)(u.Provider,{value:{paymentFlowState:g,dispatchPaymentFlowState:y},children:e.children})}},10397:function(e,t,i){"use strict";i.d(t,{Ws:function(){return A},pm:function(){return g}});var o,n=i(85893),r=i(67294),a=i(76425),l=i(21745),s=i(36808),d=i.n(s),u=i(20931),c=i(25617),p=i(11163),m=i(23117),h=i(47713),f=i(88200),v=i(89053);(o||(o={})).SOCIAL_MEDIA_DISTRIBUTION="SOCIAL_MEDIA_DISTRIBUTION";let g=r.createContext(null),y={connectedStreamAccounts:[],connectedAccounts:[]},b=(e,t)=>(t.type,e),A=e=>{let[t,i]=r.useReducer(b,y),{setLoading:o}=r.useContext(a.pV),[s,A]=r.useState(!0),x=(0,p.useRouter)(),w=c.oR(),_=c.v9(e=>{var t;return null===(t=e.SallaAuth)||void 0===t?void 0:t.user}),S=c.I0(),C=x.pathname,k=x.query.locale,T=x.query.driver,E=x.query.token,P=x.query.token_secret,I=x.query.app_slug,D=r.useMemo(()=>(0,h.qB)(C),[C]),O=r.useMemo(()=>(0,h.nG)(C),[C]),N=r.useMemo(()=>(0,h.PI)(C),[C]),j=r.useCallback(()=>{d().remove(N),d().remove(u.f5.VERIFICATION_STATUS),(0,f.gk)({name:"actionAfterLogin"}),w.dispatch({type:u.MF.SALLA_APP_LOGOUT}),v.Eh.removeQueries()},[w,N]),M=r.useCallback(async()=>{if(d().get(N))try{await m.N.logout(),j()}catch(e){j()}else j();if(C.includes("/studio")||C.includes("/ai-studio")){let e="/".concat(k?"".concat(k):"");window.location.href=e}else if(C.includes("/".concat(O))&&!C.includes("/".concat(O,"/login"))){let e=(0,h.kM)(C,"login"),t=k?"/".concat(k):"",i="".concat(t).concat(e);window.location.href=i}},[j,C,k,O]),R=r.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];d().get(N)&&(e&&A(!0),S((0,l.Dt)(t=>{S((0,l.kg)(t)),e&&A(!1)})))},[S,N]),z=r.useCallback(async(e,t,i)=>{let o,n;"string"==typeof t?(o=t,n=i):"function"==typeof t&&(n=t);let r=o?(0,h.gB)(o):N;if((null==e?void 0:e.access_token)&&d().set(r,e.access_token,{expires:365}),o){let e=setTimeout(()=>{d().get(r)&&(A(!0),S((0,l.Dt)(e=>{S((0,l.kg)(e)),A(!1)}))),clearTimeout(e)},300)}else{let e=setTimeout(()=>{R(!0),clearTimeout(e)},300)}n&&n()},[R,N,S]),L=r.useCallback(async()=>{try{A(!0),d().get(N)?S((0,l.Dt)(async e=>{A(!1),S((0,l.kg)(e))},e=>{if(A(!1),(null==e?void 0:e.status)===401&&(j(),C.includes("/".concat(O))&&!C.includes("/".concat(O,"/login"))&&!C.includes("/".concat(O,"/redirect")))){let e=(0,h.kM)(C,"login"),t=k?"/".concat(k):"",i="".concat(t).concat(e);window.location.href=i}})):(j(),A(!1))}catch(e){A(!1)}},[S,j,N,C,k,O]),V=r.useCallback((e,t,i)=>{JSON.parse(JSON.stringify(e)),delete e.terms,o(!0),S((0,l.QK)({...e,password_confirmation:null==e?void 0:e.password},async e=>{t&&t(e),o(!1)},e=>{i&&i(e),o(!1)}))},[S,o]),F=r.useCallback((e,t,i)=>{o(!0),S((0,l.wb)(e,async e=>{z(e,i=>{o(!1),t&&t(e)})},e=>{i&&i(e),o(!1)}))},[S,o,z]),U=r.useCallback((e,t,i)=>{o(!0),(null==_?void 0:_.id)?m.N.socialConnect(e,e=>{let t=setTimeout(()=>{R(),clearTimeout(t)},300);o(!1)}):S((0,l.c)(e,async e=>{o(!1),(null==e?void 0:e.access_token)&&d().set(N,e.access_token,{expires:365});let i=setTimeout(()=>{R(),clearTimeout(i)},300);t&&t(e)},e=>{i&&i(e),o(!1)}))},[null==_?void 0:_.id,o,S,R,N]);r.useEffect(()=>{L()},[]),r.useEffect(()=>{I!==D&&(!T||(null==_?void 0:_.id)||U({driver:T,social_access_token:E,oauth_token_secret:P}))},[I,T,E,P,null==_?void 0:_.id,U]);let G=r.useMemo(()=>({user:_,logout:M,userLogin:F,userRegister:V,socialUserLogin:U,isLoggedIn:!!(null==_?void 0:_.id),rehydrateUserData:R,isFetchingUserData:s,authState:t,dispatchAuthState:i,loadUserFromCookies:L,loginRegisterSuccess:z,sallaAppSlug:D,sallaBasePath:O,sallaTokenName:N}),[_,M,F,V,U,R,s,t,i,L,z,D,O,N]);return(0,n.jsx)(n.Fragment,{children:(0,n.jsx)(g.Provider,{value:G,children:e.children})})};g.Consumer},46485:function(e,t,i){"use strict";var o,n;i.d(t,{ET:function(){return l},J7:function(){return v},Lr:function(){return h},Ot:function(){return o},S0:function(){return f},Zg:function(){return d},hn:function(){return u},lh:function(){return m},mX:function(){return c},nE:function(){return r},pp:function(){return s},sx:function(){return p},ur:function(){return a}}),i(43063),(n=o||(o={})).DATABASE_CHANGED="DATABASE_CHANGED",n.LOCAL_STORAGE_CHANGED="LOCAL_STORAGE_CHANGED",n.DETECT_CHANGES="DETECT_CHANGES",n.DETECT_MEDIA_ASSETS_CHANGES="DETECT_MEDIA_ASSETS_CHANGES",n.DETECT_MEDIA_ASSETS_RESUMABLE_CHANGES="DETECT_MEDIA_ASSETS_RESUMABLE_CHANGES";let r=(e,t,i)=>{let{version:o}=e,n=window.indexedDB.open("BithTV",o);n.onerror=function(e){},n.onsuccess=function(){window.db,window.db=n.result,i&&i(n.result)},n.onupgradeneeded=function(e){let i=e.target.result;t&&t(i),window.db=i}},a=e=>{let{database:t,name:i,keyPath:o,fields:n}=e,r=null;if(o)try{r=t.createObjectStore(i,{keyPath:o})}catch(e){}else try{r=t.createObjectStore(i)}catch(e){}if(null==n?void 0:n.length)try{n.map(e=>{r.createIndex(null==e?void 0:e.indexName,null==e?void 0:e.keyPath,null==e?void 0:e.indexProps)})}catch(e){}},l=(e,t)=>
1{let i=window.db.transaction(["assets"],"readwrite").objectStore("assets");i.get(null==e?void 0:e.id).onsuccess=o=>{if(o.target.result)i.put({...o.target.result,...e}).onsuccess=()=>{t&&t()};else{let o=i.add(e);o.onsuccess=function(){t&&t()},o.onerror=function(){}}}},s=e=>new Promise((t,i)=>{let o=window.db.transaction(["assets"],"readwrite").objectStore("assets");o.get(null==e?void 0:e.id).onsuccess=n=>{if(n.target.result)o.put({...n.target.result,...e}).onsuccess=()=>{t({})};else{let n=o.add(e);n.onsuccess=function(){t({})},n.onerror=function(){i({error:n.error})}}}}),d=(e,t)=>new Promise((i,o)=>{let n=window.db.transaction(["mediaAssets"],"readwrite").objectStore("mediaAssets");n.get(null==e?void 0:e.id).onsuccess=o=>{if(o.target.result)n.put({...o.target.result,...e}).onsuccess=()=>{t&&t(),i({})};else{let o=n.add(e);o.onsuccess=function(){t&&t(),i({})},o.onerror=function(){}}}}),u=(e,t,i)=>{var o=window.db.transaction([(null==i?void 0:i.store)||"assets"],"readwrite");o.oncomplete=function(e){},o.onerror=function(e){};var n=o.objectStore((null==i?void 0:i.store)||"assets").get(e);n.onsuccess=function(e){t&&t(n.result)},n.onerror=function(e){t&&t(null)}},c=(e,t)=>{var i=window.db.transaction(["mediaAssets"],"readwrite");i.oncomplete=function(e){},i.onerror=function(e){},i.objectStore("mediaAssets").delete(e).onsuccess=function(e){t&&t()}},p=e=>{try{var t=window.db.transaction(["assets"],"readwrite");t.oncomplete=function(e){},t.onerror=function(e){};var i=t.objectStore("assets");"getAll"in i?i.getAll().onsuccess=function(e){var t;(null===(t=e.target.result)||void 0===t?void 0:t.length)&&e.target.result.map(e=>{if(null==e?void 0:e.id){var t;(null==e?void 0:e.isFromLink)||(null==e?void 0:null===(t=e.uploadedFileInfo)||void 0===t?void 0:t.id)||!e.file||(URL.revokeObjectURL(e.videoUrl),e.videoUrl=URL.createObjectURL(e.file),i.put(e))}else i.delete(e)})}:i.openCursor().onsuccess=function(e){var t=e.target.result;t&&t.continue()}}catch(e){}},m=e=>{try{var t=window.db.transaction(["mediaAssets"],"readwrite");t.oncomplete=function(e){},t.onerror=function(e){};var i=t.objectStore("mediaAssets");"getAll"in i?i.getAll().onsuccess=function(e){var t;(null===(t=e.target.result)||void 0===t?void 0:t.length)&&e.target.result.map(e=>{(null==e?void 0:e.id)?(null==e?void 0:e.isFromLink)||!e.file||(URL.revokeObjectURL(e.videoUrl),e.videoUrl=URL.createObjectURL(e.file),i.put(e)):i.delete(e)})}:i.openCursor().onsuccess=function(e){var t=e.target.result;t&&t.continue()}}catch(e){}},h=e=>{try{var t=window.db.transaction(["mediaAssets"],"readwrite");t.oncomplete=function(e){},t.onerror=function(e){};var i=t.objectStore("mediaAssets");"getAll"in i?i.getAll().onsuccess=function(t){var i;(null===(i=t.target.result)||void 0===i?void 0:i.length)?e&&e(t.target.result):e&&e([])}:i.openCursor().onsuccess=function(e){var t=e.target.result;t&&t.continue()}}catch(e){}},f=e=>new Promise((e,t)=>{try{var i=window.db.transaction(["mediaAssets"],"readwrite");i.oncomplete=function(e){},i.onerror=function(e){};var o=i.objectStore("mediaAssets");"getAll"in o?o.getAll().onsuccess=function(t){var i;(null===(i=t.target.result)||void 0===i?void 0:i.length)?e(t.target.result):e([])}:o.openCursor().onsuccess=function(e){var t=e.target.result;t&&t.continue()}}catch(e){t(e)}}),v=e=>{try{var t=window.db.transaction(["assets"],"readwrite");t.oncomplete=function(e){},t.onerror=function(e){};var i=t.objectStore("assets");"getAll"in i?i.getAll().onsuccess=function(e){var t;(null===(t=e.target.result)||void 0===t?void 0:t.length)&&e.target.result.map(e=>{i.delete(null==e?void 0:e.id)})}:i.openCursor().onsuccess=function(e){var t=e.target.result;t&&t.continue()}}catch(e){}}},18684:function(e,t,i){"use strict";i.d(t,{Xq:function(){return k},I0:function(){return E},Qq:function(){return T}});var o=i(67294),n=i(63840),r=i(73935);i(83454);let a=Symbol(),l=Symbol(),s="undefined"==typeof window||/ServerSideRendering/.test(window.navigator&&window.navigator.userAgent)?o.useEffect:o.useLayoutEffect,d=n.unstable_runWithPriority?e=>{try{(0,n.unstable_runWithPriority)(n.unstable_NormalPriority,e)}catch(t){if("Not implemented."===t.message)e();else throw t}}:e=>e(),u=e=>({value:t,children:i})=>{let n=(0,o.useRef)(t),l=(0,o.useRef)(0),[u,c]=(0,o.useState)(null);u&&(u(t),c(null));let p=(0,o.useRef)();if(!p.current){let e=new Set;
1p.current={[a]:{v:n,n:l,l:e,u:(t,i)=>{(0,r.unstable_batchedUpdates)(()=>{l.current+=1;let o={n:l.current};null!=i&&i.suspense&&(o.n*=-1,o.p=new Promise(e=>{c(()=>t=>{o.v=t,delete o.p,e(t)})})),e.forEach(e=>e(o)),t()})}}}}return s(()=>{n.current=t,l.current+=1,d(()=>{p.current[a].l.forEach(e=>{e({n:l.current,v:t})})})},[t]),(0,o.createElement)(e,{value:p.current},i)},c=Symbol(),p=Symbol(),m=(e,t)=>new Proxy(e,t),h=Object.getPrototypeOf,f=new WeakMap,v=e=>e&&(f.has(e)?f.get(e):h(e)===Object.prototype||h(e)===Array.prototype),g=e=>"object"==typeof e&&null!==e,y=e=>{if(Array.isArray(e))return Array.from(e);let t=Object.getOwnPropertyDescriptors(e);return Object.values(t).forEach(e=>{e.configurable=!0}),Object.create(h(e),t)},b=e=>e[p]||e,A=(e,t,i,o)=>{if(!v(e))return e;let n=o&&o.get(e);if(!n){let t=b(e);n=Object.values(Object.getOwnPropertyDescriptors(t)).some(e=>!e.configurable&&!e.writable)?[t,y(t)]:[t],null==o||o.set(e,n)}let[r,a]=n,l=i&&i.get(r);return l&&!!a===l[1].f||((l=((e,t)=>{let i={f:t},o=!1,n=(t,n)=>{if(!o){let o=i.a.get(e);if(o||(o={},i.a.set(e,o)),"w"===t)o.w=!0;else{let e=o[t];e||(e=new Set,o[t]=e),e.add(n)}}},r={get:(t,o)=>o===p?e:(n("k",o),A(Reflect.get(t,o),i.a,i.c,i.t)),has:(t,r)=>r===c?(o=!0,i.a.delete(e),!0):(n("h",r),Reflect.has(t,r)),getOwnPropertyDescriptor:(e,t)=>(n("o",t),Reflect.getOwnPropertyDescriptor(e,t)),ownKeys:e=>(n("w"),Reflect.ownKeys(e))};return t&&(r.set=r.deleteProperty=()=>!1),[r,i]})(r,!!a))[1].p=m(a||r,l[0]),i&&i.set(r,l)),l[1].a=t,l[1].c=i,l[1].t=o,l[1].p},x=(e,t,i,o,n=Object.is)=>{if(n(e,t))return!1;if(!g(e)||!g(t))return!0;let r=i.get(b(e));if(!r)return!0;if(o){let i=o.get(e);if(i&&i.n===t)return i.g;o.set(e,{n:t,g:!1})}let a=null;try{for(let i of r.h||[])if(a=Reflect.has(e,i)!==Reflect.has(t,i))return a;if(!0===r.w){if(a=((e,t)=>{let i=Reflect.ownKeys(e),o=Reflect.ownKeys(t);return i.length!==o.length||i.some((e,t)=>e!==o[t])})(e,t))return a}else for(let i of r.o||[])if(a=!!Reflect.getOwnPropertyDescriptor(e,i)!=!!Reflect.getOwnPropertyDescriptor(t,i))return a;for(let l of r.k||[])if(a=x(e[l],t[l],i,o,n))return a;return null===a&&(a=!0),a}finally{o&&o.set(e,{n:t,g:a})}};i(83454);let w=e=>()=>{let[,t]=(0,o.useReducer)(e=>e+1,0),i=new WeakMap,n=(0,o.useRef)(),r=(0,o.useRef)(),a=(0,o.useRef)();return(0,o.useEffect)(()=>{n.current=i,r.current!==a.current&&x(r.current,a.current,i,new WeakMap)&&(r.current=a.current,t())}),A(e((0,o.useCallback)(e=>(a.current=e,r.current&&r.current!==e&&n.current&&!x(r.current,e,n.current,new WeakMap))?r.current:(r.current=e,e),[])),i,(0,o.useMemo)(()=>new WeakMap,[]))};var _=i(46485);let S={database:null,localStorage:null,changes:0,mediaAssetsChanges:0,mediaAssetsResumableChanges:0};var C=(e,t)=>{switch(t.type){case _.Ot.DATABASE_CHANGED:return{...e,database:t.payload};case _.Ot.LOCAL_STORAGE_CHANGED:return{...e,localStorage:t.value};case _.Ot.DETECT_CHANGES:return{...e,changes:t.payload};case _.Ot.DETECT_MEDIA_ASSETS_CHANGES:return{...e,mediaAssetsChanges:t.payload};case _.Ot.DETECT_MEDIA_ASSETS_RESUMABLE_CHANGES:return{...e,mediaAssetsResumableChanges:t.payload};default:return e}};let{Provider:k,useTrackedState:T,useUpdate:E}=((e,t)=>{var i,n;"boolean"==typeof t&&(console.warn("boolean option is deprecated, please specify { concurrentMode: true }"),t={concurrentMode:t});let{stateContextName:r="StateContainer",updateContextName:d="UpdateContainer",concurrentMode:c}=t||{},p=function(e){let t=(0,o.createContext)({[a]:{v:{current:e},n:{current:-1},l:new Set,u:e=>e()}});return t[l]=t.Provider,t.Provider=u(t.Provider),delete t.Consumer,t}(null==(i=t)?void 0:i.defaultState),m=(0,o.createContext)(null==(n=t)?void 0:n.defaultUpdate);p.displayName=r,m.displayName=d;let h=e=>{let t=function(e,t){let{v:{current:i},n:{current:n},l:r}=(0,o.useContext)(e)[a],l=t(i),[d,u]=(0,o.useReducer)((e,o)=>{if(!o)return[i,l];if("p"in o)throw o.p;if(o.n===n)return Object.is(e[1],l)?e:[i,l];try{if("v"in o){if(Object.is(e[0],o.v))return e;let i=t(o.v);if(Object.is(e[1],i))return e;return[o.v,i]}}catch(e){}return[...e]},[i,l]);return Object.is(d[1],l)||u(),s(()=>(r.add(u),()=>{r.delete(u)}),[r]),d[1]}(p,e);return(0,o.useDebugValue)(t),t},f=w(h),v=c?()=>{let e=function(e){let{u:t}=(0,o.useContext)(e)[a];return t}(p),t=(0,o.useContext)(m);return(0,o.useCallback)((...i)=>{let o;return e(()=>{o=t(...i)}),o},[e,t])}:()=>(0,o.useContext)(m);return{Provider:t=>{let[i,n]=e(t);return(0,o.createElement)(m.Provider,{value:n},(0,o.createElement)(p.Provider,{value:i},t.children))},useTrackedState:f,useTracked:()=>[f(),v()],useUpdate:v,useSelector:h}})(()=>o.useReducer(C,S))},96019:function(e,t,i){"use strict";var o,n;i.d(t,{a3:function(){return o}}),(n=o||(o={})).CHANGES="CHANGES",n.REFRESH="REFRESH",t.ZP={toggleRefresh:()=>e=>e.dispatchStudioState({type:"REFRESH"})}},83670:function(e,t,i){"use strict";i.d(t,{u2:function(){return s},LO:function(){return d}});var o=i(85893),n=i(67294),r=i(96019);let a={changes:0,refresh:!1};var l=(e,t)=>
1{switch(t.type){case r.a3.CHANGES:return{...e,changes:(null==e?void 0:e.changes)+1};case r.a3.REFRESH:return{...e,refresh:!(null==e?void 0:e.refresh)};default:return a}};let s=(0,n.createContext)(null),d=e=>{let[t,i]=(0,n.useReducer)(l,a);return(0,o.jsx)(s.Provider,{value:{studioState:t,dispatchStudioState:i},children:e.children})}},73726:function(e,t,i){"use strict";var o,n,r,a,l,s,d,u;i.d(t,{lT:function(){return r},pI:function(){return o},u9:function(){return n},wP:function(){return a}}),(l=o||(o={})).LANDSCAPE="16:9",l.PORTRAIT="9:16",(s=n||(n={})).IMAGE_EDITOR="image-editor",s.SCENE_GENERATOR="scene-generator",s.TEXT_TO_SCENE="text-to-scene",s.IMAGE_TO_SCENE="image-to-scene",s.IMAGE_UPSCALER="image-upscaler",s.IMAGE_GENERATOR="image-generator",s.PRODUCT_PHOTOSHOOT="product-photoshoot",(d=r||(r={})).IMAGE_EDITOR="image-editor",d.IMAGE_UPSCALER="image-upscaler",d.TEMPLATE_EXECUTION="template-execution",d.UGC_PRODUCT_IMAGE="ugc-product-image",d.UGC_LOCATION_REFERENCE="ugc-location-reference",(u=a||(a={})).FEATURE_BASED_FAILURE="feature_based_failure",u.MODEL_PROVIDER_FAILURE="model_provider_failure",u.TEMPLATE_EXECUTION_FAILURE="template_execution_failure"},51348:function(e,t,i){"use strict";i.d(t,{X3:function(){return n},yd:function(){return o}});let o=(e,t,i)=>{let o=[...t],n=o[e];return n={...n,...i},o[e]=n,o},n=(e,t)=>e.filter((e,i)=>i!==t)},27637:function(e,t,i){"use strict";i.d(t,{Zu:function(){return d},mt:function(){return s},oI:function(){return p}});var o=i(79192);let n=new RegExp("^/(".concat("en|ar|fr|es|it|tr",")(?=/|$)")),r=["/login-page","/login-social","/signup","/signup-social","/email-verification","/help/reset-password","/help/verification","/redirect"],a=e=>Array.isArray(e)?e[0]:e,l=e=>r.some(t=>e===t||e.startsWith("".concat(t,"/"))),s=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=new URLSearchParams,o=a(t.redirectTo),n=a(t.from),r=a(t.email);o&&i.set("redirectTo",o),n&&i.set("from",n),r&&i.set("email",r);let l=i.toString();return l?"".concat(e,"?").concat(l):e},d=e=>{let t={},i=a(e.redirectTo),o=a(e.from),n=a(e.email);return i&&(t.redirectTo=i),o&&(t.from=o),n&&(t.email=n),t},u=(e,t)=>{var i;let o=(null===(i=a(e))||void 0===i?void 0:i.trim())||t;if(!o.startsWith("/")||o.startsWith("//")||o.includes("\\")||o.includes("://"))return t;let[r,s=""]=o.split("?"),d=r;try{d=decodeURIComponent(r)}catch(e){d=r}return((d=d.replace(n,"")||"/").startsWith("/")||(d="/".concat(d)),l(d))?t:s?"".concat(d,"?").concat(s):d},c=(e,t)=>u(e,t),p=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en";window.location.href=(0,o.yF)(c(e,t),i)}},80961:function(e,t,i){"use strict";i.d(t,{U:function(){return a},m:function(){return r}});var o=i(4046),n=i(1760);let r=e=>e!==o.C.ACTIVE&&e!==o.C.PENDING,a=(e,t,i)=>Math.max(n.yA/60,n.yA/60*Math.ceil(("script"===e?t:i)||0))},48411:function(e,t,i){"use strict";i.d(t,{P:function(){return n}});var o=i(80620);function n(e){var t,i;let{modelDetails:n,formValues:r={},selectedModel:a}=e,l=null!==(i=null!==(t=null==n?void 0:n.min_credit_cost)&&void 0!==t?t:null==a?void 0:a.min_credit_cost)&&void 0!==i?i:0;if(!(null==n?void 0:n.pricing_rules)||!Array.isArray(n.pricing_rules))return l;let s=(0,o.D)(r,n.fields||[]),d=0;
1if(n.pricing_rules.forEach(e=>{if(!e.conditions||!e.credits)return;let t=!0;Object.entries(e.conditions).forEach(e=>{var i;let[o,n]=e;((i=s[o])&&"object"==typeof i&&"value"in i?i.value:i)!==n&&(t=!1)}),t&&(d+=e.credits)}),0===d&&n.pricing_rules.length>0){let e=n.pricing_rules.find(e=>!e.conditions||0===Object.keys(e.conditions).length);(null==e?void 0:e.credits)&&(d=e.credits)}return d>0?d:l}},75602:function(e,t,i){"use strict";i.d(t,{v:function(){return r}});var o=i(58446),n=i(48411);function r(e){var t;let{modelDetails:i,formValues:r={},selectedModel:a}=e,l=(0,n.P)({modelDetails:i,formValues:r,selectedModel:a});if(l>0&&(null==i?void 0:null===(t=i.pricing_rules)||void 0===t?void 0:t.length))return l;let s=r.sceneGeneratorType,d=r.duration,u=(null==s?void 0:s.value)===o.ZP.textToSceneGeneratorOptions.IMAGE_TO_VIDEO,c=o.ZP.sceneDurations.find(e=>e.value===(null==d?void 0:d.value));return u&&(null==c?void 0:c.value)===5?60:80}},86278:function(e,t,i){"use strict";function o(e){var t,i;let o=null!==(i=null==e?void 0:null===(t=e.trim())||void 0===t?void 0:t.length)&&void 0!==i?i:0;return 0===o?0:Math.round(Math.ceil(.03*o))}i.d(t,{S:function(){return o}})},64329:function(e,t,i){"use strict";i.d(t,{B_:function(){return s},fJ:function(){return a},xQ:function(){return l}});var o=i(36808),n=i.n(o),r=i(20931);let a=()=>n().get(r.f5.API_TOKEN),l=()=>n().get(r.f5.LANGUAGE),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:r.H7.AR.value;return n().set(r.f5.LANGUAGE,e,{expires:365})}},49355:function(e,t,i){"use strict";i.d(t,{Bw:function(){return n},hm:function(){return a},r6:function(){return l}}),i(30381);var o=i(45608);let n=e=>{let[t,i="0"]="".concat((0,o.Md)(Number(e),3)).split("."),n=Number(t),r=Math.sign(n)||1;return{hours:r*Math.floor((n=Math.abs(n))/3600),minutes:r*Math.floor((n%=3600)/60),seconds:n%60*r,milliseconds:r*Number(i)}},r=(e,t)=>t>2?null==e?void 0:e.toString().padEnd(t,"0"):null==e?void 0:e.toString().padStart(t,"0"),a=e=>{let{minutes:t,seconds:i,milliseconds:o}=e;if(t<0||i<0||o<0)return"00:00.000";let n="";return t>=0&&(n+="".concat(r(t,2),":")),i>=0&&(n+="".concat(r(i,2))),o>=0&&(n+=".".concat(r(o,3))),n},l=(e,t)=>{let[i,o]=e.split(":"),[n,r]=o.split("."),[a,l]=t.split(":"),[s,d]=l.split("."),u=new Date;u.setHours(0),u.setMinutes(i),u.setSeconds(o),u.setMilliseconds(r);let c=new Date;return c.setHours(0),c.setMinutes(a),c.setSeconds(l),c.setMilliseconds(d),u>c}},3265:function(e,t,i){"use strict";i.d(t,{zs:function(){return v},sk:function(){return g},iR:function(){return l},ku:function(){return m}});let o=[["instagram",/\binstagram\b/i],["threads",/\bbarcelona\b|\bthreads\b/i],["messenger",/\bmessengerforios\b|\borca-android\b|\bmessenger\b/i],["facebookLite",/\bfblite\b/i],["facebook",/\bfban\b|\bfbav\b|\bfb_iab\b|\bfbios\b|\bfb4a\b/i],["twitter",/\btwitterandroid\b|\btwitter\b|\bx\.com\b/i],["linkedin",/\blinkedinapp\b/i],["tiktok",/\btiktok\b|\bmusical_ly\b|\bbytedancewebview\b|\btrill\b|\baweme\b/i],["whatsapp",/\bwhatsapp\b/i],["telegram",/\btelegram\b/i],["wechat",/\bmicromessenger\b/i],["line",/\bline\//i],["snapchat",/\bsnapchat\b/i],["pinterest",/\bpinterest\b/i],["reddit",/\breddit\b/i]],n=e=>{if(!e)return{isInAppBrowser:!1,platform:"unknown",browserType:null};let t=/ipad|iphone|ipod/i.test(e),i=/android/i.test(e),n=i&&/wv|webview/i.test(e),r=null;for(let[t,i]of o)if(i.test(e)){r=t;break}return r||(n?r="android_webview":!t||/\bcrios\b|\bfxiOS\b|\bedgiOS\b|\bopr\b/i.test(e)||/\bsafari\b/i.test(e)&&!/(\bwv\b|webview)/i.test(e)&&!n||(r="ios_webview")),{isInAppBrowser:!!r,platform:t?"ios":i?"android":"unknown",browserType:r}},r=new Set(["twitter","tiktok","linkedin","snapchat","pinterest","reddit"]),a=e=>{if("undefined"==typeof document)return null;let t=document.cookie.match(new RegExp("(?:^|; )".concat(e.replace(/[$()*+.?[\\\]^{|}]/g,"\\$&"),"=([^;]*)")));return t?decodeURIComponent(t[1]):null},l=()=>{var e;if("undefined"==typeof navigator)return{isInAppBrowser:!1,platform:"unknown",browserType:null,requiresUserGesture:!1};let t=n(navigator.userAgent||navigator.vendor||window.opera||""),i="1"===a("bith_in_app_browser"),o=a("bith_in_app_browser_type"),l=null!==(e=t.browserType)&&void 0!==e?e:o;return{isInAppBrowser:t.isInAppBrowser||i,platform:t.platform,browserType:l,requiresUserGesture:!!l&&r.has(l)}},s=e=>{let t=e.replace(/^https?:\/\//,""),i=encodeURIComponent(e);return"intent://".concat(t,"#Intent;scheme=https;action=android.intent.action.VIEW;category=android.intent.category.BROWSABLE;S.browser_fallback_url=").concat(i,";end")},d=(e,t)=>{let i=encodeURIComponent(e),o=t.browserType;if("android"===t.platform)return s(e);if("ios"!==t.platform)return null;switch(o){case"instagram":case"threads":return"instagram://extbrowser?url=".concat(i);case"facebook":case"messenger":case"facebookLite":return e.replace(/^https:\/\//,"x-safari-https://");case"line":return e.includes("?")?"".concat(e,"&openExternalBrowser=1"):"".concat(e,"?openExternalBrowser=1");case"twitter":case"tiktok":case"linkedin":case"snapchat":case"pinterest":case"reddit":return e;default:return e.replace(/^https:\/\//,"googlechromes://")}},u=e=>{window.location.assign(e)},c=e=>{try{return u(s(e)),!0}catch(e){return!1}},p=(e,t)=>{try{let i=d(e,{platform:"ios",browserType:t});if(!i)return!1;return u(i),i!==e&&"line"!==t&&window.setTimeout(()=>{(window.location.href===e||"visible"===document.visibilityState)&&u(e)},350),!0}catch(e){return!1}},m=(e,t)=>
1{var i;let o=null!==(i=d(e,t))&&void 0!==i?i:e;try{let e=document.createElement("a");return e.href=o,e.rel="noopener noreferrer",e.target="_blank",e.style.display="none",document.body.appendChild(e),e.click(),e.remove(),!0}catch(e){return!1}},h=e=>{try{return u(e),!0}catch(e){return!1}},f="in_app_redirect_attempted",v=(e,t)=>{let i=l();if(!i.isInAppBrowser)return!1;let o=e||window.location.href,n=Date.now();if(!(null==t?void 0:t.force)){let e=sessionStorage.getItem(f);if(e&&n-parseInt(e,10)<5e3)return!1}return(sessionStorage.setItem(f,n.toString()),null==t?void 0:t.useGesture)?m(o,i):("android"===i.platform?c(o):"ios"===i.platform?p(o,i.browserType):h(o),!0)},g=()=>new Promise(e=>{let t=0,i=window.location.href,o=document.hidden,n=window.setInterval(()=>{if(t+=1,document.hidden&&!o||window.location.href!==i){window.clearInterval(n),e(!0);return}t>=8&&(window.clearInterval(n),e(!1))},500)})},80620:function(e,t,i){"use strict";i.d(t,{D:function(){return d},kg:function(){return p},os:function(){return s},u$:function(){return c},uy:function(){return u}});let o={prompt:["promptText","prompt_text","user_prompt","input_prompt"],prompttext:["prompt","prompt_text","user_prompt","input_prompt"],prompt_text:["prompt","promptText"],image:["promptImage","image_url","upload_image","input_image","source_image"],promptimage:["image","image_url","upload_image","input_image"],image_url:["image","promptImage","upload_image","input_image"],upload_image:["image","promptImage","image_url","input_image"],input_image:["image","promptImage","image_url","upload_image"],source_image:["image","promptImage","image_url","upload_image"]},n=e=>e?e.toString().trim().toLowerCase().replace(/[\s_-]/g,""):"",r=e=>e?Object.values(e).filter(e=>"string"==typeof e&&e.trim().length>0).map(e=>e.trim()):[],a=e=>{let t=new Map;return e.forEach(e=>{var i;let a=e.slug,l=a.toLowerCase(),s=new Set([a,l,e.name,null===(i=e.name)||void 0===i?void 0:i.toLowerCase(),...r(e.display_name),...r(e.display_name).map(e=>e.toLowerCase())]),d=o[l];d&&d.forEach(e=>{s.add(e),s.add(e.toLowerCase())}),s.forEach(e=>{let i=n(e);i&&!t.has(i)&&t.set(i,a)})}),t},l=e=>{if(e.name)return e.name;let t=r(e.display_name);return t.length>0?t[0]:e.slug},s=e=>{var t,i,o,n,r;if(e.options&&e.options.length>0){if(e.support_multiple_input){let t=e.options.filter(e=>e.is_default).map(e=>e.value);return t.length>0?t:[]}let t=e.options.find(e=>e.is_default)||e.options[0];return null!==(n=null==t?void 0:t.value)&&void 0!==n?n:null}return void 0!==e.default_value&&null!==e.default_value?e.default_value:(null===(t=e.field_type)||void 0===t?void 0:t.input_type)!=="checkbox"&&((null===(i=e.field_type)||void 0===i?void 0:i.input_type)==="number"||(null===(o=e.field_type)||void 0===o?void 0:o.input_type)==="range"?(null===(r=e.validation_rules)||void 0===r?void 0:r.min)!==void 0?e.validation_rules.min:0:null)},d=(e,t)=>{if(!e||!(null==t?void 0:t.length))return{...e};let i=a(t);return Object.entries(e).reduce((e,o)=>{let[r,a]=o;if("model_id"===r||t.find(e=>e.slug===r))return e[r]=a,e;let l=n(r),s=l?i.get(l):void 0;return s?e[s]=a:e[r]=a,e},{})},u=(e,t)=>{if(!e||!(null==t?void 0:t.length))return{...e};let i=new Map(t.map(e=>[e.slug,e]));return Object.entries(e).reduce((e,t)=>{let[o,n]=t;if("model_id"===o)return e[o]=n,e;let r=i.get(o);return r?e[l(r)]=n:e[o]=n,e},{})},c=e=>e.reduce((e,t)=>(e[t.name]=s(t)||null,e),{}),p=e=>{let t={};return Object.keys(e).forEach(i=>{let o=e[i];if(i.toLowerCase().includes("prompt")){"string"==typeof o?t[i]=o:null==o?t[i]="":"object"==typeof o?t[i]=JSON.stringify(o):t[i]=String(o);return}if("string"==typeof o){o.startsWith('"')&&o.endsWith('"')&&(o=o.slice(1,-1));try{t[i]=JSON.parse(o)}catch(e){t[i]=o}}else t[i]=o}),t}},63394:function(e,t,i){"use strict";i.d(t,{E8:function(){return g},JB:function(){return s},KE:function(){return b},MM:function(){return u},Sv:function(){return f},Tx:function(){return d},YX:function(){return y},bt:function(){return v},fJ:function(){return a},jv:function(){return m},n3:function(){return l},pf:function(){return c},sw:function(){return A},vG:function(){return p}});var o=i(20931),n=i(45608);let r=async e=>e.mozHasAudio||!!e.webkitAudioDecodedByteCount||!!(e.audioTracks&&e.audioTracks.length),a=async(e,t)=>{let i=document.createElement("video");i.src=e;let o=async()=>{i.volume=0,i.play(),await new Promise(e=>setTimeout(e,500)),i.pause()},n=()=>{i.currentTime=.99};i.addEventListener("loadedmetadata",o),i.addEventListener("canplay",n,{once:!0});let a=async()=>{let e=await r(i);t&&t({duration:null==i?void 0:i.duration,hasAudio:e}),i.removeEventListener("loadedmetadata",o),i.removeEventListener("seeked",a),i.removeEventListener("canplay",n),i.remove()};i.addEventListener("seeked",a,{once:!0})},l=(e,t)=>
1{let i=(0,n.aX)(e,t),o=e/i,r=t/i;if(o>50||r>50){let i=e/t,n=[{ratio:16/9,string:"16:9"},{ratio:9/16,string:"9:16"},{ratio:4/3,string:"4:3"},{ratio:3/4,string:"3:4"},{ratio:1,string:"1:1"},{ratio:21/9,string:"21:9"},{ratio:9/21,string:"9:21"},{ratio:1.5,string:"3:2"},{ratio:2/3,string:"2:3"},{ratio:5/4,string:"5:4"},{ratio:.8,string:"4:5"}],a=n[0],l=Math.abs(i-a.ratio);for(let e of n){let t=Math.abs(i-e.ratio);t<l&&(l=t,a=e)}if(l<.05)return a.string;let s=Math.min(o,r);for(let e=Math.floor(s);e>1;e--)if(o%e==0&&r%e==0){o/=e,r/=e;break}if(o>50||r>50){let e=Math.max(o,r)/50;o=Math.round(o/e),r=Math.round(r/e)}}return"".concat(o,":").concat(r)},s=e=>{if(!(null==e?void 0:e.type.split("/")[0])){let t=null==e?void 0:e.name.split(".").pop();return t?"video/".concat(t):"unknown"}return null==e?void 0:e.type},d=async(e,t,i)=>new Promise((o,a)=>{try{if("image"===i||"gif"===i){let i=new Image;i.src=e,i.onload=async()=>{let r=(null==e?void 0:e.indexOf("blob:"))!==-1?e.replace("blob:".concat(window.location.origin,"/"),""):t,a=null==i?void 0:i.width,l=null==i?void 0:i.height,s=await (0,n.aX)(a,l),d=a/s,u=l/s;i=null,o({id:r,aspectRatio:d===u?"1:1":d>u?"16:9":"9:16",videoWidth:a,videoHeight:l,videoUrl:e,ratio:a&&a?a/l:null})}}else{let i=document.createElement("video");i.src=e,i.preload="metadata",i.autoPlay=!1,i.playsInline=!0,i.load(),i.addEventListener("canplaythrough",async a=>{let s=(null==e?void 0:e.indexOf("blob:"))!==-1?e.replace("blob:".concat(window.location.origin,"/"),""):t,d=null==i?void 0:i.duration;if(d==1/0)i.currentTime=1e101,i.ontimeupdate=async function(){if(null==i?void 0:i.duration){i.currentTime=0,i.ontimeupdate=null,i.volume=0;try{await i.play(),await new Promise(e=>setTimeout(e,500)),i.pause();let t=await r(i),n=null==i?void 0:i.videoWidth,a=null==i?void 0:i.videoHeight,u=l(n,a);i.remove(),o({id:s,duration:d,hasAudio:t,aspectRatio:u,videoWidth:n,videoHeight:a,videoUrl:e})}catch(e){}}};else{i.volume=0;try{await i.play(),await new Promise(e=>setTimeout(e,500)),i.pause();let t=await r(i),a=null==i?void 0:i.videoWidth,u=null==i?void 0:i.videoHeight,c=l(a,u);i.remove(),o({id:s,duration:(0,n.Md)(d,3),hasAudio:t,aspectRatio:c,videoWidth:a,videoHeight:u,videoUrl:e})}catch(e){}}}),i.addEventListener("error",e=>{a(e)})}}catch(e){a(e)}}),u=e=>{let{socialDriver:t,link:i}=e,n="".concat(o.Rr[t]).concat(i);window.open(n,"_blank")},c=e=>({minutes:Math.floor(e/60),seconds:Math.floor(e%60)});function p(e,t,i,o,n){let r=document.createElement("div");if(r.style.fontFamily="".concat(o,', Cairo, "Noto Color Emoji"'),r.style.lineHeight="normal",r.style.fontSize="".concat(e,"px"),r.style.width="".concat(i,"px"),r.style.position="absolute",r.style["word-wrap"]="break-word",r.dir="auto",r.style.visibility="hidden",r.style.whiteSpace="pre-wrap",n)for(let[e,t]of Object.entries(n)){let i=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();r.style[i]=t}r.innerHTML=t,document.body.appendChild(r);let a=r.clientHeight;return document.body.removeChild(r),a}function m(e){try{return new URL(e),!0}catch(e){return!1}}let h=e=>{let t=e.match(/filename="([^"]+)"/);return t?t[1]:null},f=e=>{let t=h(new URLSearchParams(e).get("response-content-disposition")),i=document.createElement("a");i.download=t||"video.mp4",i.href=e,document.body.appendChild(i),i.click(),document.body.removeChild(i)},v=e=>{let t=e/800,i=Math.floor(t),o=Math.round((t-i)*60);return{minutes:60===o&&0===i?1:i,seconds:60===o&&0===i?0:o,durationInSeconds:60*i+o}};function g(e){if("string"!=typeof e||0===e.trim().length)return 0;let t=e.trim().split(/\s+/);return t.reduce((e,t)=>e+t.length,0)/t.length}function y(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:165;arguments.length>2&&void 0!==arguments[2]&&arguments[2];let i=e/t*60;return{minutes:Math.floor(i/60),seconds:Math.round(i%60),durationInSeconds:i}}function b(e){let t=document.createElement("div");return t.innerText=e,t.innerHTML}let A=async e=>{try{let t;let i=await fetch(e,{method:"HEAD"}),o=i.headers.get("Content-Length"),n=i.headers.get("Content-Type"),r=i.headers.get("Last-Modified"),a=0;if(o){a=parseInt(o,10);let i=await fetch(e);t=await i.blob()}else{let i=await fetch(e);a=(t=await i.blob()).size}let l=new Image;l.crossOrigin="anonymous";let s=new Promise((e,t)=>
1{l.onload=()=>{e({width:l.naturalWidth,height:l.naturalHeight})},l.onerror=()=>{t(Error("Failed to load image for dimension extraction"))}});l.src=e;let{width:d,height:u}=await s,c=e.split("/"),p=c[c.length-1].split("?")[0],m=new File([t],p||"image",{type:n||t.type||"image/jpeg",lastModified:r?new Date(r).getTime():Date.now()});return{width:d,height:u,fileSize:a,mimeType:n||t.type||"unknown",aspectRatio:Math.round(d/u*100)/100,url:e,fileName:p||void 0,lastModified:r||void 0,file:m}}catch(e){throw Error("Failed to get image metadata")}}},41894:function(e,t,i){"use strict";i.d(t,{QE:function(){return r},TR:function(){return n},pz:function(){return a},v_:function(){return l}});var o=i(45608);function n(e,t,i,n,r,a,l,s,d,u){(d="number"==typeof d?d:.5)<0&&(d=0),(u="number"==typeof u?u:.5)<0&&(u=0),d>1&&(d=1),u>1&&(u=1);let c=l,p=s,m=Math.min(i/c,n/p),h=c*m,f=p*m,v=1;return h<i&&(v=i/h),1e-14>Math.abs(v-1)&&f<n&&(v=n/f),h*=v,f*=v,l=(0,o.Md)(c/(h/i),3),s=(0,o.Md)(p/(f/n),3),r=(0,o.Md)((c-l)*d+r,3),a=(0,o.Md)((p-s)*u+a,3),r<0&&(r=0),a<0&&(a=0),l>c&&(l=c),s>p&&(s=p),{cx:r,cy:a,cw:l,ch:s,x:e,y:t,w:i,h:n}}let r=(e,t)=>new Promise((i,o)=>{try{let o=document.createElement("video");o.src=e,o.preload="metadata",o.loop=!0,o.setAttribute("crossorigin","anonymous"),o.onloadedmetadata=function(){o.currentTime=t},o.onseeked=function(e){let t=document.createElement("canvas"),n=2e4/o.videoWidth*o.videoHeight/100;t.height=n,t.width=200,t.getContext("2d").drawImage(o,0,0,o.videoWidth,o.videoHeight,0,0,200,n);let r=new Image;r.src=t.toDataURL("image/png",.001),o.remove(),i({image:r.src})}}catch(e){}}),a=(e,t)=>{let i=new Image;i.src=e,i.onload=function(){t&&t({width:null==i?void 0:i.width,height:null==i?void 0:i.height}),i=null}},l=e=>new Promise((t,i)=>{let o=new Image;o.src=e,o.onload=()=>{t({width:o.width,height:o.height})},o.onerror=()=>{i(Error("Failed to load image"))}})},45608:function(e,t,i){"use strict";i.d(t,{Hq:function(){return l},Md:function(){return a},Sw:function(){return r},aX:function(){return n},k3:function(){return o}});let o=e=>-1!=="".concat(e).indexOf("%"),n=(e,t)=>0===t?e:n(t,e%t),r=e=>{let[t]="".concat(e).split(".");return Number(t)%2==0?"".concat(e):"".concat(e+1)},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,i=Math.pow(10,t);return Math.trunc(e*i)/i},l=()=>Math.floor(8*Math.random())+3},99139:function(e,t,i){"use strict";i.d(t,{Ch:function(){return s},Mb:function(){return l},UE:function(){return a},sW:function(){return r},ub:function(){return d},xG:function(){return u}});var o=i(1469),n=i.n(o);let r=e=>{for(var t in e)(null===e[t]||void 0===e[t]||"null"===e[t]||""===e[t]||n()(e[t])&&!e[t].length)&&delete e[t];return e},a=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];for(var i in e)!t.includes(i)&&(null===e[i]||void 0===e[i]||"null"===e[i]||""===e[i]?delete e[i]:"object"!=typeof e[i]||Array.isArray(e[i])||(e[i]=a(e[i],t),0!==Object.keys(e[i]).length||delete e[i]));return e},l=e=>new Blob([JSON.stringify(e)],{type:"text/plain"}),s=e=>URL.createObjectURL(e),d=async(e,t)=>{let i=await fetch(e).then(e=>e.blob());t&&t(i)},u=e=>Object.keys(e).map(t=>({key:t,value:e[t]}))},35084:function(e,t,i){"use strict";i.d(t,{x:function(){return n}});let o=Object.prototype.hasOwnProperty,n=function(e){if(null==e||void 0==e)return!0;if(e.length>0)return!1;if(0===e.length)return!0;if("number"==typeof e)return!1;if("object"!=typeof e)return!0;for(var t in e)if(o.call(e,t))return!1;return!0}},91291:function(e,t,i){"use strict";i.d(t,{LJ:function(){return b},NX:function(){return w},O9:function(){return S},Q$:function(){return C},VA:function(){return u},g2:function(){return v},gl:function(){return m},gm:function(){return g},gq:function(){return p},kU:function(){return k},m0:function(){return _},mS:function(){return f},pT:function(){return d},pz:function(){return h},wq:function(){return E}});var o=i(79192),n=i(48416),r=i(93269),a=i(76654),l=i(61469);let s=(e,t)=>t&&0!==t?e/t:1/0,d=(e,t)=>t?null!=e.id&&null!=t.id&&Number(e.id)===Number(t.id)?"current":(s(e.price,e.credits_amount),s(t.price,t.credits_amount),e.credits_amount>t.credits_amount?"upgrade":e.credits_amount<t.credits_amount?"downgrade":"switchTo"):"upgrade",u=e=>{var t,i;return null!==(i=null==e?void 0:e.sale)&&void 0!==i?i:null==e?void 0:null===(t=e.selectedItem)||void 0===t?void 0:t.sale},c=e=>!!e&&!1!==e.is_active&&(null!=e.percentage||null!=e.amount),p=e=>{var t,i;let{plan:o,isOneTimePayment:n,isExistingSubscriber:r,isClassicSubscriber:a}=e;return!n&&!r&&!a&&"year"===(null!==(i=null==o?void 0:o.interval)&&void 0!==i?i:null==o?void 0:null===(t=o.selectedItem)||void 0===t?void 0:t.interval)&&c(u(o))};function m(e,t){var i;let o=null===(i=e.items)||void 0===i?void 0:i.find(e=>e.interval===t);return o?{...e,...o,id:e.id,interval:t,selectedItem:o,items:e.items}:{...e,interval:t}}let h=e=>{var t,i;if(!e)return;if((null===(t=e.selectedItem)||void 0===t?void 0:t.id)!=null)return e.selectedItem.id;let o=e.interval,n=null===(i=e.items)||void 0===i?void 0:i.find(e=>e.interval===o);return(null==n?void 0:n.id)!=null?n.id:e.id},f=e=>{var t,i,o;return(null==e?void 0:null===(t=e.subscription)||void 0===t?void 0:t.is_subscribed)===!0||(null==e?void 0:null===(i=e.subscription)||void 0===i?void 0:i.is_subscribed)!==!1&&(null==e?void 0:null===(o=e.b
1illingInfo)||void 0===o?void 0:o.subscription_plan_id)!=null},v=e=>{let{isLoggedIn:t,isSubscribed:i,isOneTimePayment:o}=e;return t&&i&&!o},g=e=>{let{isOneTimePayment:t,isPlanChange:i,plan:o,currentPlanInfo:n}=e;return t?"credits":i?o&&"upgrade"===d(o,n)?"upgrade":"changed":"new"},y=e=>{if(null==e)return null;let t=String(e).toLowerCase();return"year"===t||"yearly"===t||"annual"===t?"year":"month"===t||"monthly"===t?"month":null},b=(e,t)=>{if(!e||!t||null==e.id||null==t.id||Number.isNaN(Number(e.id))||Number.isNaN(Number(t.id))||Number(e.id)===Number(t.id))return!1;let i=y(e.interval),o=y(t.interval);if(!i||!o)return!1;let n=Number(e.credits_amount)||0,r=Number(t.credits_amount)||0;return"year"===i&&"month"===o?r<=n:"month"===i&&"year"===o&&r<n},A=/^\/(en|ar|fr|es|it|tr)(?=\/|$)/,x=e=>e?e.replace(A,"")||"/":"",w=e=>{let t=x(e);return"/pricing"===t||t.startsWith("/pricing/")},_=e=>{let t=x(e);return"/studio/billing"===t||t.startsWith("/studio/billing/")},S=function(){var e,t,i;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"new",s=arguments.length>1?arguments[1]:void 0,d=new URLSearchParams(window.location.search);d.set("tab","subscription"),d.set("type",o),d.set("status","success");let u=(0,n.nr)(),c=(0,r.ox)(u),p=(0,l.Oq)(u);return(0,r.Rl)(d,null!==(e=(0,r.UQ)(s))&&void 0!==e?e:(0,r.JX)(c)?c:void 0),(0,a.vC)(d,null!==(t=(0,a.Zj)(s))&&void 0!==t?t:(0,a.oU)(u)?u:void 0),(0,l.kI)(d,null!==(i=(0,l.Y0)(s))&&void 0!==i?i:p),d},C=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"new",t=arguments.length>1?arguments[1]:void 0;return Object.fromEntries(S(e,t).entries())},k=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"new",n=arguments.length>3?arguments[3]:void 0,r=(0,o.yF)(e,T(t));return(0,o.vu)(r,C(i,n))},T=e=>{var t,i;if(e)return e;if("undefined"!=typeof document){let e=null===(t=document.cookie.split("; ").find(e=>e.startsWith("NEXT_LOCALE=")))||void 0===t?void 0:t.split("=")[1];if(e)return e}{let e=null===(i=window.location.pathname.match(A))||void 0===i?void 0:i[1];if(e)return e}return"en"},E=(e,t,i)=>{if(!e)return;let{delayMs:o=1500,locale:n,paymentType:r="new",user:a}=null!=i?i:{},l=k(e,n,r,a);window.setTimeout(()=>{null==t||t(),window.location.assign(l)},o)}},56483:function(e,t,i){"use strict";i.d(t,{B8:function(){return n},o5:function(){return r},rv:function(){return a}});let o=null,n=e=>{o=e},r=()=>o,a=()=>{o=null}},47095:function(e,t,i){"use strict";i.d(t,{PM:function(){return r},bZ:function(){return n},m8:function(){return o}});let o=e=>{let{name:t,value:i}=e;return window.localStorage.setItem(t,i),null},n=e=>{let{name:t}=e;return window.localStorage.removeItem(t),null},r=e=>{let{name:t}=e;return window.localStorage.getItem(t)};t.ZP={saveToLocalStorage:o,removeFromLocalStorage:n,getItemFromLocalStorage:r}},9317:function(e,t,i){"use strict";i.d(t,{$u:function(){return s},Ez:function(){return d},O5:function(){return u},VU:function(){return r},qg:function(){return l}});var o=i(88200),n=i(20931);let r="/apps/studio-photoshoot",a=[...n.px,n.Z6.VERIFICATION];function l(e){let t=e.replace(/^\/(en|ar|es|fr|it|tr)(?=\/)/,"")||e;return a.some(e=>t===e||t.startsWith("".concat(e,"/")))}function s(){let e=(0,o.m3)({name:"actionAfterLogin"});if(!e)return null;try{return JSON.parse(e)}catch(e){return null}}function d(){var e;return(null===(e=s())||void 0===e?void 0:e.action)==="choosePlan"}function u(){(0,o.gk)({name:"actionAfterLogin"})}},88200:function(e,t,i){"use strict";i.d(t,{fe:function(){return o},gk:function(){return n},m3:function(){return r}});let o=e=>{let{name:t,value:i}=e;return window.sessionStorage.setItem(t,i)},n=e=>{let{name:t}=e;return window.sessionStorage.removeItem(t)},r=e=>{let{name:t}=e;return window.sessionStorage.getItem(t)}},24556:function(e,t,i){"use strict";i.d(t,{Y9:function(){return s},O8:function(){return c},eb:function(){return p},N4:function(){return m},TE:function(){return u},SH:function(){return g},M_:function(){return f},iT:function(){return y},LU:function(){return a},HY:function(){return l},x6:function(){return o},A2:function(){return b},HH:function(){return r},p_:function(){return d}}),i(3265);let o=e=>{if(null==e||"number"==typeof e&&!Number.isFinite(e))return"0";let t=String(e).trim();if(!t)return"0";let i=t.replace(/,/g,"");if(!/^[-+]?\d*\.?\d+$/.test(i))return t;let o=i.startsWith("-")?"-":i.startsWith("+")?"+":"",[n="0",r]=(o?i.slice(1):i).split("."),a=(""===n?"0":n.replace(/^0+(?=\d)/,"")).replace(/\B(?=(\d{3})+(?!\d))/g,",");return"".concat(o).concat(a).concat(void 0!==r?".".concat(r):"")},n=e=>{let{clientHeight:t,scrollHeight:i,scrollWidth:o,clientWidth:n}=e;return i>t||o>n},r=(e,t)=>{let{element:i,elements:o,minSize:r=0,maxSize:a=1e3,step:l=1,unit:s="px",parentElement:d}=e,u=e=>{let t=r,i=a,o=i,u=d||e.parentNode,c=()=>
1{if(i-t<=l)return;let r=Math.floor((t+i)/2);e.style.fontSize="".concat(r).concat(s),n(u)?i=r:(t=r+l,o=r),c()};c(),e.style.fontSize="".concat(o).concat(s)},c=o||[i],p=()=>{c.forEach(e=>{e.style.fontSize=e.style.fontSize,u(e)}),t&&t()},m=()=>{c.forEach(e=>{u(e)}),p()};return m(),m},a=e=>{var t=parseInt(e,10),i=Math.floor(t/3600),o=Math.floor((t-3600*i)/60),n=t-3600*i-60*o;return o<10&&(o="0"+o),n<10&&(n="0"+n),o+":"+n};function l(e,t,i){let o=[],n="",r=e[0].start,a=e[0].end,l=[];for(let s=0;s<e.length;s++){let d=e[s].text,u=e[s].start,c=e[s].end;u-a<=i&&n.length+d.length+1<=t?(""!==n?n+=" "+d:(n=d,r=u),a=c,l.push({text:d,start:u,end:c})):(""!==n.trim()&&o.push({text:n.trim(),start:r,end:a,original:l}),n=d,r=u,a=c,l=[{text:d,start:u,end:c}])}return""!==n.trim()&&o.push({text:n.trim(),start:r,end:a,original:l}),o}function s(e,t,i){var o;let n=document.createElement("div");n.style.position="fixed",n.style.top="0",n.style.width="100%",document.body.appendChild(n);let r=document.createElement("span");r.style.fontFamily=t,r.style.fontSize=i+"px",r.style.display="inline-block",r.innerHTML=e,n.appendChild(r);let a=r.offsetHeight,l=0,s=r.offsetWidth,d=-1;for(;l<=s;){let e=Math.floor((l+s)/2);r.style.width=e+"px",n.offsetHeight<=a?(d=e,l=e+1):s=e-1}let u=(null===(o=r.querySelector(".mian-subtitles-wrapper"))||void 0===o?void 0:o.clientWidth)||0;return n.remove(),d<u?u:d}let d=e=>e.replace(/<[^>]*>/g,"").replace(/[\n\r]/g," "),u=e=>{try{var t=document.createElement("textarea");t.value=e,document.body.appendChild(t),t.select();var i=document.execCommand("copy");return document.body.removeChild(t),i}catch(e){return!1}},c=e=>e.replace(/[\w]([A-Z])/g,function(e){return e[0]+"_"+e[1].toLowerCase()}).toLowerCase(),p=e=>{let t={};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let o=c(i),n=e[i];"object"!=typeof n||null===n||Array.isArray(n)?t[o]=n:t[o]=p(n)}return t},m=e=>{let t={};for(let i in e)if(Object.prototype.hasOwnProperty.call(e,i)){let o=i.replace(/_([a-z])/g,function(e){return e[1].toUpperCase()}),n=e[i];"object"!=typeof n||null===n||Array.isArray(n)?t[o]=n:t[o]=m(n)}return t},h=/[\u064B-\u0652]/g,f=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e.match(h)||[]},v=/[\u0600-\u06FF]/,g=e=>e.match(v)||[],y=e=>{let t=e.match(/[\u0600-\u06FF]/g)||[],i=e.match(/[A-Za-z]/g)||[],o=e.match(/[A-Za-záéíóúñüÁÉÍÓÚÑÜ]/g)||[],n=e.match(/[A-Za-zéèêëàâîïôùûçÉÈÊËÀÂÎÏÔÙÛÇ]/g)||[],r={ar:t.length,en:i.length,es:o.length,fr:n.length},a=null,l=0;for(let[e,t]of Object.entries(r))t>l&&(l=t,a=e);return a};function b(e){return(e||"").replace(/[^a-zA-Z0-9\u0600-\u06FF\s]/g,"")}},24669:function(e,t,i){"use strict";i.d(t,{LQ:function(){return n},Tj:function(){return a},op:function(){return r}});let o="studio:app-new-session",n=e=>{window.dispatchEvent(new CustomEvent(o,{detail:{source:e}}))},r=(e,t)=>{let i=i=>{var o;(null===(o=i.detail)||void 0===o?void 0:o.source)===e&&t()};return window.addEventListener(o,i),()=>window.removeEventListener(o,i)},a=e=>!!(e.influencerId||e.sessionId||e.executionId)},20703:function(e,t,i){"use strict";t.Z=e=>{if(e.landingToolId)return e.landingToolId;if(e.link){var t;let i=null===(t=e.link.split("?")[0])||void 0===t?void 0:t.split("/").filter(Boolean).pop();if(i)return i}return e.title.en}},7e3:function(e,t,i){"use strict";i.d(t,{ZP:function(){return h},C6:function(){return p},PY:function(){return m}});var o=i(20468),n=i(71312),r=i(24895),a=i(20703);let l=(e,t)=>{let i=new Map(e.map(e=>[(0,a.Z)(e),e])),o=new Set,n=[];for(let e of t){let t=i.get(e);!t||o.has(e)||(n.push(t),o.add(e))}for(let t of e){let e=(0,a.Z)(t);o.has(e)||(n.push(t),o.add(e))}return n},s=e=>!!((0,r.Z)(e)||e.action),d=()=>o.ZP.apps.filter(e=>s(e)&&(0,o.fb)(e)),u=()=>o.ZP.tools.filter(e=>s(e)&&(0,o.fb)(e)),c=()=>l([n.dh,...d().filter(e=>"create-ugc"!==e.landingToolId)],n.LG),p=()=>{let e=d();return[...e.slice(0,3),n.dh,...e.slice(3)]},m=e=>"apps"===e?c():l(u(),n.Cu);var h=m},24895:function(e,t,i){"use strict";var o=i(20468);let n=[...o.ZP.tools,...o.ZP.apps,...o.ZP.navigationDropdownOptions];t.Z=e=>{var t;return e.link?e.link:e.landingToolId?null===(t=n.find(t=>t.landingToolId===e.landingToolId&&t.link))||void 0===t?void 0:t.link:void 0}},60349:function(e,t,i){"use strict";i.d(t,{f4:function(){return a},i_:function(){return l},ih:function(){return n}});var o=i(20468);let n=e=>{var t;if(e)return null===(t=o.ZP.apps)||void 0===t?void 0:t.find(t=>t.link==="/template/".concat(e))},r=e=>{let t=Array.isArray(e)?e[0]:e;if(!t)return"direct";try{return decodeURIComponent(t)}catch(e){return t}},a=(e,t)=>{if(!n(e))return!1;if("/apps"===(Array.isArray(t.rt)?t.rt[0]:t.rt))return!0;let i=r(t.from);return"direct"===i||"apps"===i},l=(e,t)=>
1{var i,o,n,r,a;let l=Array.isArray(t.rt)?t.rt[0]:t.rt;if(l)return l;if((null==e?void 0:null===(i=e.categories)||void 0===i?void 0:i.length)&&(null===(n=e.categories[0])||void 0===n?void 0:null===(o=n.subcategories)||void 0===o?void 0:o.length)){let t=e.categories[0],i=null===(a=t.subcategories)||void 0===a?void 0:a[0];if(i)return"/templates/".concat(t.slug,"/").concat(i.slug)}return(null==e?void 0:null===(r=e.categories)||void 0===r?void 0:r.length)?"/templates/".concat(e.categories[0].slug):null}},31978:function(e,t,i){"use strict";i.d(t,{Aq:function(){return s},NB:function(){return l},fL:function(){return d}});var o=i(20931),n=i(93603),r=i(76560);let a=[o.P2.CREATE_VIDEO,o.P2.CREATE_VIDEO_RESIZER,o.P2.CREATE_VIDEO_EDITOR,o.P2.CREATE_VIDEO_PUBLISHER,o.P2.CREATE_VIDEO_EDITOR_TABS,o.P2.STUDIO_AI_TEXT_TO_VIDEO_EDITOR,o.P2.STUDIO_AI_TEXT_TO_VIDEO_EDITOR_TABS],l=e=>e.replace(/^\/(en|ar|es|fr|it|tr)(?=\/)/,"")||e,s=e=>!!("/pricing"===e||e.startsWith("/pricing/")||"/learn"===e||e.startsWith("/learn/")||"/tools"===e||"/faqs"===e||e.startsWith("/faqs/")||"/salla-faqs"===e||e.startsWith("/salla-faqs/"))||"/help/terms-and-conditions"===e||"/help/privacy-policy"===e,d=e=>{let t=l(e);return!("/404"===t||"/invalid-link"===t||t.startsWith("/share/"))&&(!!(0,n.rw)(t)||!(0,n.V4)(t)&&(!!(0,n.x1)(t)||!a.includes(t)&&(t.startsWith("/apps")?!(0,r.Bw)(t):!!(t.startsWith("/ai-tools")||t.startsWith("/studio/tools/")||"/"===t||t.startsWith("/ai-studio")||t.includes("/studio/videos")||t.includes("/studio/folders")||t.includes("/studio/account")||t.includes("/studio/billing")||t.includes("/studio/notifications-settings")||t.includes("/ai-studio/images")||t.includes("/ai-studio/voiceovers")||s(t)))))}},61051:function(e,t,i){"use strict";t.Z=e=>{let t=null==e?void 0:e.status;return!!t&&"failed"!==t&&"processing_promo_video"!==t&&("processing"===t||"inqueue"===t||"in_queue"===t||"queued"===t)}},66381:function(e,t,i){"use strict";i.d(t,{k:function(){return d}});var o=i(20468),n=i(71312),r=i(31978),a=i(93603);let l=[...o.ZP.tools,...o.ZP.apps,...o.ZP.navigationDropdownOptions,n.dh].map(e=>e.link).filter(Boolean),s=(e,t)=>(0,r.NB)((t||e).split("?")[0]),d=(e,t)=>{let i=s(e,t);return!!("/apps"===i||"/ai-tools"===i||i.startsWith("/apps/")||(0,a.x1)(i)||i.startsWith("/studio/tools/"))||l.some(e=>i===e||i.startsWith("".concat(e,"/")))}},93603:function(e,t,i){"use strict";i.d(t,{V4:function(){return n},rw:function(){return o},x1:function(){return r}});let o=e=>"/templates/[category]"===e||"/templates/[category]/[subcategory]"===e||/^\/templates\/[^/]+$/.test(e)||/^\/templates\/[^/]+\/[^/]+$/.test(e),n=e=>"/templates"===e||e.startsWith("/templates/")||e.startsWith("/ai-studio/templates"),r=e=>"/template/[slug]"===e||/^\/template\/[^/]+$/.test(e)},56402:function(e,t,i){"use strict";i.d(t,{d7:function(){return l},xW:function(){return a}});var o=i(20468),n=i(71312),r=i(20931);let a=(e,t)=>{let i=(t||e).split("?")[0];return i===n.dh.link||e===n.dh.link||i.startsWith("".concat(n.dh.link,"/"))?n.dh:o.ZP.navigationDropdownOptions.find(t=>t.link===i||t.link===e)||o.ZP.tools.find(t=>t.link===i||t.link===e)||o.ZP.apps.find(t=>t.link===i||t.link===e)},l=(e,t)=>{let i=e.split("?")[0];return i===t||("/templates/ads"===t||t.startsWith("/templates/")?i.startsWith("/templates")||i.startsWith("/template/"):"/ai-studio/main"===t||t===r.P2.HOME?"/ai-studio/main"===i||i===r.P2.HOME:"/apps"===t?"/apps"===i:"/ai-tools"===t?"/ai-tools"===i:"/ai-studio/library"===t?"/ai-studio/library"===i||i.startsWith("/ai-studio/library/")||"/ai-studio/images"===i||i.startsWith("/ai-studio/images/")||"/ai-studio/voiceovers"===i||i.startsWith("/ai-studio/voiceovers/")||"/studio/videos"===i||i.startsWith("/studio/videos/")||"/studio/folders"===i||i.startsWith("/studio/folders/"):"/ai-studio/images"===t?"/ai-studio/images"===i||i.startsWith("/ai-studio/images/"):"/studio/videos"===t||"/studio/folders"===t?i.startsWith(t):i.startsWith("".concat(t,"/")))};t.ZP=a},20617:function(e,t,i){"use strict";i.d(t,{w:function(){return a}});var o=i(58446),n=i(63394),r=i(24556);function a(e){if((null==e?void 0:e.textType)==="videoIdeaTab"){var t,i,a,l;return(null==e?void 0:e.visualsSource)===o.ZP.visualsSourcesValues.AI_GENERATED_IMAGES?null!==(a=null==e?void 0:null===(t=e.videoDuration)||void 0===t?void 0:t.aiImagesCredits)&&void 0!==a?a:0:null!==(l=null==e?void 0:null===(i=e.videoDuration)||void 0===i?void 0:i.credits)&&void 0!==l?l:0}let s=(null==e?void 0:e.videoScript)||"",d=(0,r.M_)(s),u=((null==s?void 0:s.length)||0)-(null==d?void 0:d.length),c=(0,n.bt)(u);return Math.max(60,Math.round((null==c?void 0:c.durationInSeconds)/60*((null==e?void 0:e.visualsSource)===o.ZP.visualsSourcesValues.AI_GENERATED_IMAGES?150:80)))}},2438:function(e,t,i){"use strict";i.d(t,{$$:function(){return s},DK:function(){return n},Fc:function(){return l},bE:function(){return a},lS:function(){return r},rd:function(){return d}});var o=i(38715);let n=(e,t,i)=>{let n=document.getElementById("seeker"),r=Math.round(1e3*e)/t*i;if(n){n.style.transform="translate(".concat(r+25,"px, 0px)");let e=document.querySelector("#seekerContainer");if(!(0,o.v4)(n,"seekerContainer")&&e){let t=Number(e.clientWidth)/2;e.scrollTo(r-t,e.scrollTop)}}},r=(e,t,i)=>{let o=document.querySelector("#seeker"),n=Math.round(1e3*e);if(o){let e=Number(o.clientWidth)/2;o.style.transform="translate(".concat(n/t*i-e,"px, 0px)")}},a=(e,t,i)=>
1{let o=document.querySelector("#timeLineScroll"),n=Math.round(1e3*e);o&&o.scrollTo(n/t*i,0)},l=e=>{let t=document.getElementById("subtitle-".concat(e));(0,o.yr)(t,!1,"subtitlesListContainer")||t.scrollIntoView({behavior:"smooth",block:"nearest"})},s=e=>{e.preventDefault()},d=e=>{let t=null;return()=>{e&&(e.setAttribute("data-scrolling","true"),t&&clearTimeout(t),t=setTimeout(function(){e&&e.setAttribute("data-scrolling","false")},66))}}},72746:function(e,t,i){"use strict";var o=i(27361),n=i.n(o),r=i(45608);function a(e){let t=document.createElement("div");t.innerHTML='<span class="mian-subtitles-wrapper">'.concat(e,"</span>"),t.querySelectorAll('*:not(iframe):not(script):not(style):not([class^="ai"])').forEach((e,t)=>{var i;let o=(null===(i=e.textContent)||void 0===i?void 0:i.replace(/\n/g," ").split(" "))||[];e.innerHTML="",o.forEach((t,i)=>{let o=document.createElement("span"),n=document.createElement("span");o.innerText=t,t&&(o.setAttribute("data-effect","word"),n.setAttribute("data-type","word-wrapper")),n.appendChild(o),n.setAttribute("style","position: relative; display: inline-block; height: 100%;"),e.appendChild(n),e.appendChild(document.createTextNode(" "))})});let i=t.innerHTML;return t.remove(),i}function l(e,t){for(let i=0;i<e.length;i++)if(e[i]!==t[i])return i;return null}function s(e,t){for(let i=0;i<t.length;i++)if(i>=e.length||e[i]!==t[i])return i;return null}function d(e,t){for(let i=0;i<e.length;i++)if(i>=t.length||e[i]!==t[i])return i;return null}function u(e){let t=Math.floor(e/3600),i=Math.floor(e%3600/60),o=(e%60).toFixed(3).padStart(6,"0");return"".concat(String(t).padStart(2,"0"),":").concat(String(i).padStart(2,"0"),":").concat(o.replace(".",","))}t.Z={mergeTranscriptions:function(e,t,i){let o=[];for(let r=0;r<e.length;r++){let l=e[r];if(0===o.length)o.push({...l,original:[l]});else{let e=o[o.length-1];if("single"===t){let t=l.text.split(" "),i=(l.end-l.start)/t.length,n=l.start,r=[];for(let e=0;e<t.length;e++){let l=n+i,s=t[e].trim();if(""!==s){let e={start:n,end:l,text:a(s)};r.push(e),o.push(e),n=l}}e.original=[...e.original||[],...r]}else if("sentence"===t||"group"===t){if(!i||l.end-e.start<=i){let i=(e.text+" "+l.text).split(" ").map(e=>e.trim()),r=i.filter(e=>""!==e).join(" ");if("sentence"===t&&i.length<=6||"group"===t&&i.length<=3){var n;e.end=l.end,e.text=a(r),null===(n=e.original)||void 0===n||n.push(l)}else o.push({...l,original:[l]})}else o.push({...l,original:[l]})}}}return o},unmergeTranscriptions:function(e){let t=[];for(let i=0;i<e.length;i++){let o=e[i];if(o.original&&o.original.length>1){let e=o.original,i=o.text,n=0;for(let o=0;o<e.length;o++){let r=e[o],a=r.text,l=i.indexOf(a,n),s=l+a.length;if(-1!==l&&-1!==s){let e={start:r.start,end:r.end,text:a};t.push(e),n=s}}}else t.push(o)}return t},cleanHTML:function(e){var t,i,o;let n=new DOMParser().parseFromString(e,"text/html").body,r=n.getElementsByTagName("script");for(let e=r.length-1;e>=0;e--)null===(t=r[e].parentNode)||void 0===t||t.removeChild(r[e]);let a=n.getElementsByTagName("style");for(let e=a.length-1;e>=0;e--)null===(i=a[e].parentNode)||void 0===i||i.removeChild(a[e]);let l=n.querySelectorAll("address, article, aside, blockquote, dd, div, dl, fieldset, figcaption, figure, footer, form, h1, h2, h3, h4, h5, h6, header, hgroup, hr, main, nav, noscript, ol, p, pre, section, table, tfoot, ul, video"),s=[];if(0===l.length){let e=(null===(o=n.textContent)||void 0===o?void 0:o.trim())||"";""!==e&&s.push(e)}else l.forEach(e=>{var t;let i=(null===(t=e.textContent)||void 0===t?void 0:t.trim())||"";""!==i&&s.push(i)});let d=s.join("\n"),u=document.createElement("div");return u.innerHTML=d.replace(/\n/g,"<br>"),u.innerHTML},wrapTextWithSpans:a,handleSubtitleChange:function(e,t){let i=t.text.split(/\s+/).filter(e=>!!(null==e?void 0:e.replace(/ /g,""))),o=e.split(/\s+/).filter(e=>!!(null==e?void 0:e.replace(/ /g,""))),n=structuredClone(t);if(s(i,o),d(i,o),l(i,o),i.length<o.length){let e,t;let l=s(i,o),d=o.length-i.length,m=!1;if(l>0){let i=n.original[l-1];e=i.end-i.start,i.end=(0,r.Md)(i.start+e/(d+1),2),t=i.end}else if(0===l&&(null==i?void 0:i.length)>0&&(null==o?void 0:o.length)===0){let i=n.original[l+1];e=i.end-i.start,i.end=i.start,t=null==n?void 0:n.start}else{var a,u,c,p;(null===(a=n.original)||void 0===a?void 0:a.length)?(e=(null===(u=n.original[0])||void 0===u?void 0:u.end)-(null===(c=n.original[0])||void 0===c?void 0:c.start),t=null===(p=n.original[0])||void 0===p?void 0:p.start):(e=n.end-n.start,t=null==n?void 0:n.start),n.original=[],m=!0}for(let i=0;i<d;i++){let a={text:o[l+i],start:(0,r.Md)(t,2),end:(0,r.Md)(t+e/(m?d:d+1),2)};n.original.splice(l+i,0,a),t=a.end}l+d<n.original.length&&(n.original[l+d-1].end=n.original[l+d].start)}else if(i.length>o.length){let e=d(i,o),t=i.length-o.length;null!==e&&(e>0&&(n.original[e-1].end=n.original[e+t-1].end),n.original.splice(e,t))}else if(i.length===o.length){let e=l(i,o);null!==e&&(n.original[e].text=o[e])}return n.text=e,n},handleSubtitleChangeTest:function(e,t){let i=t.text.split(/\s+/).filter(e=>!!(null==e?void 0:e.replace(/ /g,""))),o=e.split(/\s+/).filter(e=>!!(null==e?void 0:e.replace(/ /g,""))),n=structuredClone(t),a=s(i,o),u=d(i,o),c=l(i,o);if(null!==u&&(u>0&&(n.original[u-1].end=n.original[u].start),n.original.splice(u,1)),null!==a){let e,t;let l=Math.abs(o.length-i.length);if(a>0){let i=n.original[a-1];e=i.end-i.start,i.end=(0,r.Md)(i.start+e/(l+1),2),t=i.end}else if(0===a&&(null==i?void 0:i.length)>0&&(null==o?void 0:o.length)===0){let i=n.original[a];e=i.end-i.start,i.end=i.start,t=null==n?void 0:n.start}else{var p,m,h,f;(null===(p=n.original)||void 0===p?void 0:p.length)?(e=(null===(m=n.original[0])||void 0===m?void 0:m.end)-(null===(h=n.original[0])||void 0===h?void 0:h.start),t=null===(f=n.original[0])||void 0===f?void 0:f.start):(e=n.end-n.start,t=null==n?void 0:n.start),n.original=[]}for(let i=0;i<l;i++){let s={text:o[a+i],start:(0,r.Md)(t,2),end:(0,r.Md)(t+e/l,2)};n.original.splice(a+i,0,s),t=s.end}a+l<n.original.length&&(n.original[a+l-1].end=n.original[a+l].start)}return null!==c&&(n.original[c].text=o[c]),n.text=e,n},handleSubtitleChangeTest1:function(e,t){try{var i,o,a;let l=t.text.split(/\s+/).filter(e=>!!(null==e?void 0:e.replace(/ /g,""))),s=e.split(/\s+/).filter(e=>!!(null==e?void 0:e.replace(/ /g,""))),d=structuredClone(t),u=(null==s?void 0:s.length)-(null==l?void 0:l.length),c=(null==l?void 0:l.length)-1,p=(0,r.Md)((null===(i=d.original)||void 0===i?void 0:i.length)&&c>=0?(null===(o=d.original[c])||void 0===o?void 0:o.end)-(null===(a=d.original[c])||void 0===a?void 0:a.start):(null==d?void 0:d.end)-(null==d?void 0:d.start),2);for(let e=0;e<(null==s?void 0:s.length);e++){let i=n()(d,"original.".concat(e),null),o=n()(d,"original.".concat(e-1),null),a=(0,r.Md)(i?null==i?void 0:i.start:e>c?o?((null==o?void 0:o.start)||0)+p/(u<(null==s?void 0:s.length)?u+1:u):null==t?void 0:t.start:0,2),l={text:s[e],start:a,end:e>=c?(0,r.Md)(a+p/(u<(null==s?void 0:s.length)?u+1:u),2):e+1===(null==s?void 0:s.length)?Number(n()(d,"original.".concat(e+1,".end"),null==i?void 0:i.end)):(null==i?void 0:i.end)||0};i?d.original[e]=l:d.original.splice(e,0,l)}return(null==l?void 0:l.length)-(null==s?void 0:s.length)>0&&d.original.splice(null==s?void 0:s.length,(null==l?void 0:l.length)-(null==s?void 0:s.length)),d.text=e,d}catch(e){return t}},transcriptionToSRT:e=>{let t="";return e.forEach((e,i)=>{let o=u(e.start),n=u(e.end);t+="".concat(i+1,"\n").concat(o," --> ").concat(n,"\n").concat(e.text,"\n\n")}),t},downloadSRTFile:(e,t)=>
1{let i=new Blob([e],{type:"text/plain"}),o=URL.createObjectURL(i),n=document.createElement("a");n.href=o,n.download=t,document.body.appendChild(n),n.click(),document.body.removeChild(n),URL.revokeObjectURL(o)},wrapTextWithSpans1:function(e){let t=document.createElement("div");t.innerHTML=e,t.querySelectorAll('*:not(iframe):not(script):not(style):not([class^="ai"])').forEach(e=>{var t;let i=(null===(t=e.textContent)||void 0===t?void 0:t.split("\n"))||[];e.innerHTML="",i.forEach((t,o)=>{let n=t.split(/\s+/);n.forEach((t,i)=>{if(t.startsWith("<div>")&&t.endsWith("</div>")){let i=document.createElement("div");i.innerHTML=t,e.appendChild(i)}else{let i=document.createElement("span");i.innerText=t,t&&(i.setAttribute("data-effect","word"),i.setAttribute("data-type","word-wrapper")),e.appendChild(i)}i<n.length-1&&e.appendChild(document.createTextNode(" "))}),o<i.length-1&&e.appendChild(document.createElement("br"))})});let i=t.innerHTML;return t.remove(),i},removeDuplicateSubtitles:e=>{let t=new Set;return e.filter(e=>{let i="".concat(e.start,"-").concat(e.end);return!t.has(i)&&(t.add(i),!0)})}}},79192:function(e,t,i){"use strict";i.d(t,{vu:function(){return r},yF:function(){return n}});let o=new RegExp("^/(".concat("en|ar|fr|es|it|tr",")(?=/|$)")),n=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if(!e)return e;let[i,n=""]=e.split("?"),r=(i.startsWith("/")?i:"/".concat(i)).replace(o,"")||"/",a="en"===t||t.startsWith("en")?r:"/".concat(t).concat(r);return n?"".concat(a,"?").concat(n):a},r=(e,t)=>{if(!e)return e;let[i,o]=e.split("?"),n={};o&&o.split("&").forEach(e=>{let[t,i]=e.split("=");t&&void 0!==i&&(n[t]=i)});let r=Object.entries({...n,...t}).map(e=>{let[t,i]=e;return"".concat(t,"=").concat(i)}).join("&");return"".concat(i,"?").concat(r)}},25103:function(e,t,i){"use strict";i.d(t,{PB:function(){return a}});let o=new Set(["product-shots","studio-photoshoot"]);function n(e){if("string"==typeof e){let t=e.trim().toLowerCase().replace(/_/g,"-");return t.length>0?t:null}if(e&&"object"==typeof e){var t,i,o,r;let a=null!==(r=null!==(o=null!==(i=null!==(t=e.usage)&&void 0!==t?t:e.type)&&void 0!==i?i:e.slug)&&void 0!==o?o:e.name)&&void 0!==r?r:e.key;if("string"==typeof a)return n(a)}return null}function r(e){if("string"==typeof e)try{return r(JSON.parse(e))}catch(i){let t=n(e);return t?[t]:[]}return Array.isArray(e)?e.map(n).filter(e=>!!e):[]}function a(e){var t,i;return(Array.isArray(e)?r(e):!e||"object"!=typeof e||Array.isArray(e)?[]:r(null!==(i=null!==(t=e.free_eligible_usages)&&void 0!==t?t:e.freeEligibleUsages)&&void 0!==i?i:e.free_eligible_usage)).some(e=>o.has(e))}},38715:function(e,t,i){"use strict";i.d(t,{By:function(){return l},H1:function(){return u},JQ:function(){return d},MO:function(){return m},Ms:function(){return h},Nr:function(){return s},dE:function(){return c},e6:function(){return p},ez:function(){return f},q$:function(){return g},v4:function(){return a},yr:function(){return v}});var o=i(35161),n=i.n(o),r=i(85518);let a=(e,t)=>{var i;let o=t||(null===(i=document)||void 0===i?void 0:i.documentElement),n=e.getBoundingClientRect();return r.tq?n.top>=0&&n.top<=(window.innerHeight||(null==o?void 0:o.clientHeight))&&n.left>=0||n.bottom>=0&&n.bottom<=(window.innerHeight||(null==o?void 0:o.clientHeight))&&n.right<=(window.innerWidth||o.clientWidth):n.top>=0&&n.left>=0&&n.bottom<=(window.innerHeight||(null==o?void 0:o.clientHeight))&&n.right<=(window.innerWidth||o.clientWidth)},l=e=>{let t=e.slice(1).split("&"),i={};return n()(t,e=>{let t=e.split("=");i[t[0]]=t[1]}),i},s=async e=>{let t=e||"refreshAlertScript";if(document.getElementById(t));else{var i=document.getElementsByTagName("head").item(0),o=document.createElement("script");o.setAttribute("type","text/javascript"),o.setAttribute("id",t),o.text=await 'window.onbeforeunload = function () {\n        return "Are you really want to perform the action?";\n    }\n    ',i.appendChild(o)}},d=e=>{let t=document.getElementById(e||"refreshAlertScript");t&&(window.onbeforeunload=null,window.onunload=null,t.parentNode.removeChild(t))},u=function(e,t){let i;
1void 0!==e.key?i=e.key:void 0!==e.keyIdentifier?i=e.keyIdentifier:void 0!==e.keyCode&&(i=e.keyCode),t(i)},c=(e,t,i)=>i?100*e/t:e*t/100,p=e=>{if(e.focus(),void 0!==window.getSelection&&void 0!==document.createRange){var t=document.createRange();t.selectNodeContents(e),t.collapse(!1);let i=window.getSelection();i.removeAllRanges(),i.addRange(t)}else if(void 0!==document.body.createTextRange){var i=document.body.createTextRange();i.moveToElementText(e),i.collapse(!1),i.select()}},m=()=>{window.getSelection?window.getSelection().removeAllRanges():document.selection&&document.selection.empty()},h=e=>{var t=document.createRange();t.selectNodeContents(e);var i=window.getSelection();i.removeAllRanges(),i.addRange(t)},f=e=>{let t=window.getComputedStyle(e),i=t.transform||t.webkitTransform||t.mozTransform;if("none"===i||void 0===i)return{x:0,y:0,z:0};let o=i.includes("3d")?"3d":"2d",n=i.match(/matrix.*\((.+)\)/)[1].split(", ");return"2d"===o?{x:n[4],y:n[5],z:0}:"3d"===o?{x:n[12],y:n[13],z:n[14]}:void 0},v=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=arguments.length>2?arguments[2]:void 0,o=i?document.querySelector("#".concat(i)):window,{top:n,left:r,bottom:a,right:l}=e.getBoundingClientRect(),{innerHeight:s,innerWidth:d,clientHeight:u,clientWidth:c}=o,p=d||c,m=s||u;return t?(n>0&&n<m||a>0&&a<m)&&(r>0&&r<p||l>0&&l<p):n>=0&&r>=0&&a<=m&&l<=p},g=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:314,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:250,i=window;return(null==i?void 0:i.innerWidth)>768?Math.min(Math.round(((null==i?void 0:i.innerWidth)-174)/e)*Math.round(((null==i?void 0:i.innerHeight)-174)/t),12):12}},45127:function(e,t,i){"use strict";i.d(t,{Z:function(){return c}});var o,n,r=i(85893),a=i(67294);(o=n||(n={})).NEXT_STEP="NEXT_STEP",o.PREV_STEP="PREV_STEP",o.STORE_STEPS="STORE_STEPS";let l={status:"pending",currentStep:0,steps:[]};var s=(e,t)=>{switch(t.type){case n.NEXT_STEP:return{...e,currentStep:(null==e?void 0:e.currentStep)+1};case n.PREV_STEP:return{...e,currentStep:(null==e?void 0:e.currentStep)-1};case n.STORE_STEPS:return{...e,steps:null==t?void 0:t.payload};default:return l}};let d=(0,a.createContext)(null);var u=e=>{let[t,i]=(0,a.useReducer)(s,{...l});return(0,r.jsx)(d.Provider,{value:{onBoardingState:t,dispatchOnBoardingState:i},children:e.children})},c=e=>t=>(0,r.jsx)(u,{children:(0,r.jsx)(e,{...t})})},64430:function(e,t,i){"use strict";i.d(t,{h:function(){return o},o:function(){return n}});let o=[{value:"pop-in",label:"Pop In",css:"pop-in",duration:150,webAnimationKeyframes:[{transform:"scale(0.5)",offset:0},{transform:"scale(1.15)",offset:.66},{transform:"scale(1)",offset:1}],timing:{duration:150},keyframes:"@keyframes pop-in {0% {transform: scale(0.5);opacity: 0;}66.66666666666667% {transform: scale(1.15);opacity: 1;}100% {transform: scale(1);opacity: 1;}}"}],n=[{value:"zoom-in",label:{ar:"تكبير",en:"Zoom-in",es:"Ampliar",fr:"Zoom avant",it:"Ingrandisci",tr:"Yakınlaştır"},css:"zoom-in",webAnimationKeyframes:[{transform:"scale(1)",offset:0},{transform:"scale(1.2)",offset:1}],timing:{duration:5010},keyframes:"@keyframes zoomIn {0% {transform: scale(1);}100% {transform: scale(1.2);}}"},{value:"zoom-out",label:{en:"Zoom-out",ar:"تصغير",es:"Disminuir",fr:"Zoom arri\xe8re",it:"Riduci",tr:"Uzaklaştır"},css:"zoom-out",webAnimationKeyframes:[{transform:"scale(1.2)",offset:0},{transform:"scale(1)",offset:1}],timing:{duration:5010},keyframes:"@keyframes zoomIn {0% {transform: scale(1.2);}100% {transform: scale(1);}}"}]},55746:function(e,t,i){"use strict";i.d(t,{J:function(){return s}});var o=i(67294);i(36808),i(20931),i(86120);var n=i(78551),r=i(71951);let a=async()=>new Promise((e,t)=>{r.o.getSubscriptionPlans(e,t)}),l=e=>(0,n.a)({queryKey:["subscriptions","plans"],queryFn:a,...e});function s(){let{defaultInterval:e="year"}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{defaultInterval:"month"},{data:t,isLoading:i}=l(),[n,r]=o.useState(e),a=o.useRef(!1),s=o.useMemo(()=>{var e;return null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.filter(e=>{var t;return null==e?void 0:null===(t=e.items)||void 0===t?void 0:t.length})},[null==t?void 0:t.data]);o.useEffect(()=>{!a.current&&s&&e&&(s.some(t=>{var i;return null===(i=t.items)||void 0===i?void 0:i.some(t=>t.interval===e)})&&r(e),a.current=!0)},[s,e]);let d=o.useMemo(()=>s?s.map(e=>{var t;let i=null===(t=e.items)||void 0===t?void 0:t.find(e=>e.interval===n);return i?{...e,...i,id:e.id,items:e.items}:null}).filter(e=>null!==e).sort((e,t)=>
1((null==e?void 0:e.price)||0)-((null==t?void 0:t.price)||0)):[],[s,n]);return{plansResponse:t,isLoading:i,paidPackages:s,plansForInterval:d,billingInterval:n,setBillingInterval:r}}},79817:function(e,t,i){"use strict";var o=i(94214),n=i(20931),r=i(47095),a=i(54482);t.Z=(e,t,i,l)=>{let{state:s}=(0,a.Z)(),d=null,u=null,c=null,p=null,m=0,h=0+n.SX,f=null,v=0,g=e=>{let{file_name:t,type:i}=e;return new Promise(async(e,n)=>{o.D.init({file_name:t,type:i},t=>{let{data:i}=t;e(i)},()=>{n()})})};function y(e,t){m++,h=Math.min(e+n.SX,u.size),b(u.slice(e,h),e,h)}async function b(e,t,i){var o=new XMLHttpRequest;o.upload.addEventListener("progress",function(e){if(e.lengthComputable){var i=Math.round(e.loaded/e.total*100);v=Math.round((m-1)/f*100+i/f);let o=JSON.parse((0,r.PM)({name:"progress-".concat(c)}))||[];(0,r.m8)({name:"progress-".concat(c),value:JSON.stringify({...o,progress:v,uploadStart:t,chunkCounter:m})})}}),o.open("PUT",p,!0),o.open("PUT",p,!0),o.setRequestHeader("Content-Length","".concat(i-t)),o.setRequestHeader("Content-Type","application/octet-stream"),o.setRequestHeader("Content-Range","bytes ".concat(t,"-").concat(i-1,"/").concat(u.size)),o.send(e),o.onreadystatechange=async function(){if(4===o.readyState){let e=o.getResponseHeader("ETag"),t=JSON.parse((0,r.PM)({name:"".concat(c)}))||[];t.push({ETag:e,PartNumber:m}),(0,r.m8)({name:"".concat(c),value:JSON.stringify(t)})}},o.onload=function(e){(t+=n.SX)<u.size?y(t):x()}}let A=e=>new Promise((t,i)=>{o.D.complete(e,()=>{t({})},()=>{})}),x=async()=>{let e=JSON.parse((0,r.PM)({name:"".concat(c)}));e.filter((t,i)=>{let o=JSON.stringify(t);return i===e.findIndex(e=>JSON.stringify(e)===o)}),await A({upload_id:c}),(0,r.bZ)({name:"".concat(c)}),(0,r.bZ)({name:"progress-".concat(c)}),i&&i({uploadId:c,file:d,progress:v})};return{init:async t=>{if(d=t,f=Math.ceil((u=null==t?void 0:t.file).size/n.SX),m=0,u.name,null==t?void 0:t.uploadId){let e=JSON.parse((0,r.PM)({name:"progress-".concat(null==t?void 0:t.uploadId)}));m=(null==e?void 0:e.chunkCounter)-1||0,c=await (null==t?void 0:t.uploadId),y((null==e?void 0:e.uploadStart)||0)}else{let i=await g({...l,file_name:null==t?void 0:t.name});e&&e({uploadId:null==i?void 0:i.upload_id,file:t,newChanges:(null==s?void 0:s.mediaAssetsChanges)+1}),c=await (null==i?void 0:i.upload_id),y(0)}},initMediaAssets:async t=>new Promise(async(i,o)=>{d=t,f=Math.ceil((u=null==t?void 0:t.file).size/n.SX),m=0,u.name;let r=await g({...l,file_name:null==t?void 0:t.name});e&&e({uploadId:null==r?void 0:r.upload_id,url:null==r?void 0:r.url,file:t,newChanges:(null==s?void 0:s.mediaAssetsChanges)+1}),i({uploadId:null==r?void 0:r.upload_id,url:null==r?void 0:r.url}),c=await (null==r?void 0:r.upload_id),p=await (null==r?void 0:r.url),y(0)})}}},78512:function(e,t,i){"use strict";var o=i(363),n=i(78795),r=i(58446),a=i(27361),l=i.n(a),s=i(25617);t.Z=()=>{let e=(0,s.I0)();return{getConfigValue:e=>{let{configKey:t}=e;return new Promise((e,i)=>{n.X.getConfigurations(i=>{e(l()(i,"data.".concat(t),!1))})})},getLanguages:()=>new Promise((t,i)=>{n.X.getConfigurations(i=>{let n=l()(i,"data.languages",[]).map(e=>{var t;return{...e,label:null===(t=r.ZP.scriptLanguageOptions.find(t=>t.value===e.code))||void 0===t?void 0:t.label}});e((0,o.Ss)(n)),t(n)})})}}},3004:function(e,t,i){"use strict";i.d(t,{Z:function(){return s}});var o=i(67294),n=i(63675);i(49617);var r=i(31155),a=i(87251),l=i(34551),s=()=>{let[e,t]=o.useState(!1),[i,s]=o.useState(null),d=o.useMemo(()=>(0,n.x)(),[]),[,u]=o.useContext(r.kn),c=(0,a.Z)(),{handleCommonErrors:p}=(0,l.Z)(),m=o.useCallback(function(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:5e3;u({type:r.BT.TOAST_STATE_CHANGED,payload:{open:!0,type:e,position:"right-bottom",message:t,time:i}})},[u]),h=o.useCallback((e,t)=>{s(e);let i=e.originalError;if(i){let e=null==i?void 0:i.status,t=(null==i?void 0:i.data)||i;if(null==i?void 0:i.originalError){let o=i.originalError;e=(null==o?void 0:o.status)||e,t=(null==o?void 0:o.data)||o||t}if(p({status:e,data:t}))return}m("error",e.message,5e3)},[m,p]),f=o.useCallback(async e=>{t(!0),s(null);try{let i={...e,onSuccess:t=>{var i;s(null);let o={video:c.global.downloadVideoSuccess||"Video download started successfully!",image:c.global.downloadImageSuccess||"Image downloaded successfully!",audio:c.global.downloadVoiceoverSuccess||"Voiceover downloaded successfully!",scene:c.global.downloadSceneSuccess||"Scene download started successfully!",clip:c.global.downloadClipSuccess||"Clip download started successfully!"}[t.mediaType]||"Download started successfully!";m("success",o,3e3),null===(i=e.onSuccess)||void 0===i||i.call(e,t)},onError:t=>{var i;h(t,e.mediaType),null===(i=e.onError)||void 0===i||i.call(e,t)}},o=await d.download(i);return t(!1),o}catch(i){throw t(!1),h(i,e.mediaType),i}},[d,m,h,c]),v=o.useCallback(async e=>{let t=e.videoId||e.mediaId;return f({mediaType:"video",mediaId:t,resourceType:e.resourceType,customFilename:e.customFilename,analyticsMetadata:{video_id:t,...e.analyticsMetadata},onProgress:e.onProgress})},[f]),g=o.useCallback(async e=>{var t,i;let o=e.imageId||(null===(t=e.image)||void 0===t?void 0:t.id)||e.mediaId;return f({mediaType:"image",mediaId:o,resourceType:e.resourceType,customFilename:e.customFilename,strategy:e.strategy,format:e.format,analyticsMetadata:{image_id:o,prompt_text:null===(i=e.image)||void 0===i?void 0:i.prompt,...e.analyticsMetadata},onProgress:e.onProgress,...e})},[f]),y=o.useCallback(async e=>{var t,i;let o=e.voiceoverId||(null===(t=e.voiceover)||void 0===t?void 0:t.id)||e.mediaId;return f({mediaType:"audio",mediaId:o,customFilename:e.customFilename,analyticsMetadata:{voiceover_id:o,text_input:null===(i=e.voiceover)||void 0===i?void 0:i.text,...e.analyticsMetadata},onProgress:e.onProgress})},[f]),b=o.useCallback(async e=>{let t=e.sceneId||e.mediaId;return f({mediaType:"scene",mediaId:t,customFilename:e.customFilename,analyticsMetadata:{scene_id:t,...e.analyticsMetadata},onProgress:e.onProgress})},[f]),A=o.useCallback(async e=>{let t=e.clipId||e.mediaId;return f({mediaType:"clip",mediaId:t,customFilename:e.customFilename,analyticsMetadata:{clip_id:t,...e.analyticsMetadata},onProgress:e.onProgress})},[f]);return{download:f,downloadVideo:v,downloadImage:g,downloadAudio:y,downloadScene:b,downloadClip:A,downloadPublic:o.useCallback(async e=>{t(!0),s(null);try{let i=await d.downloadPublic({...e,onSuccess:t=>{var i;s(null),m("success",c.global.downloadVideoSuccess||"Video download started successfully!",3e3),null===(i=e.onSuccess)||void 0===i||i.call(e,t)},onError:t=>{var i;h(t,"video"),null===(i=e.onError)||void 0===i||i.call(e,t)}});return t(!1),i}catch(e){throw t(!1),h(e,"video"),e}},[d,h,c,m]),isLoading:e,error:i}}},34551:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(31155),a=i(27524),l=i(20931),s=i(61411),d=i(46684),u=i(93046),c=i(73726),p=i(90549),m=i(8715),h=i(90238),f=i(71494);t.Z=e=>{let{flow:t="images",selectedModel:i,toolName:v,requiredCredits:g,requiredCreditsContext:y}=e||{},{isSubscribed:b}=(0,p.Z)(),[,A]=n.useContext(r.kn),{language:x}=n.useContext(a.AZ),w=n.useCallback(e=>{var i,n,a;A({type:r.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(s.Z,{flow:t,tool_name:v,required_credits:(0,m.P)(null==e?void 0:e.error,null!==(i=null==e?void 0:e.required_credits)&&void 0!==i?i:g,{tool_name:v,context:null!==(n=null==e?void 0:e.requiredCreditsContext)&&void 0!==n?n:y}),requiredCreditsContext:null!==(a=null==e?void 0:e.requiredCreditsContext)&&void 0!==a?a:y,creditLimitError:null==e?void 0:e.error})}})},[A,g,y,t,v]),_=n.useCallback(function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"feature_not_available";A({type:r.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,o.jsx)(u.ZP,{trigger_source:e})}})},[A]),S=n.useCallback(e=>{var t,n;A({type:r.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(d.Z,{tool:null==e?void 0:e.feature_key,failure:{...e,model:null==i?void 0:null===(n=i.model)||void 0===n?void 0:null===(t=n.display_name)||void 0===t?void 0:t[x]}})}})},[A,x,i]),C=n.useCallback((e,t)=>{if((null==e?void 0:e.status)===l.$q.CREDITS_LIMIT_ERROR_STATUS_CODE){if(b){var i,o;w({error:e,required_credits:null!==(i=null==t?void 0:t.required_credits)&&void 0!==i?i:g,requiredCreditsContext:null!==(o=null==t?void 0:t.requiredCreditsContext)&&void 0!==o?o:y})}else _();return!0}return(null==e?void 0:e.status)===l.$q.SERVICE_DOWN||(null==e?void 0:e.status)===777?(h.ZP.track(f.nS.ERROR_OCCURRED,{error_type:(null==e?void 0:e.status)===777?"template_execution_failure":"service_down",error_source:"backend",feature_name:v,severity:"high"}),(null==e?void 0:e.status)===777?S({...null==e?void 0:e.data,failure_type:c.wP.TEMPLATE_EXECUTION_FAILURE}):S(null==e?void 0:e.data),!0):(null==e?void 0:e.status)===l.$q.NOT_PAID&&(_(),!0)},[g,y,w,S,b,v]);return{openLimitPopup:w,openServiceDownPopup:S,handleCommonErrors:C,openProPlanPaymentInfoPopup:_}}},96928:function(e,t,i){"use strict";var o=i(67294),n=i(31155);t.Z=()=>{let[e,t]=(0,o.useContext)(n.kn);return{globalState:e,globalStateDispatcher:i=>{i({globalState:e,dispatchGlobalState:t})},dispatchGlobalState:t,closeModal:()=>t({type:n.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!1,children:null}})}}},35158:function(e,t,i){"use strict";var o=i(67294);t.Z=()=>{let[e,t]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{t(!0)},[]),e}},46916:function(e,t,i){"use strict";var o=i(20931),n=i(11163);t.Z=()=>{let{locale:e}=(0,n.useRouter)();return e||o.H7.EN.value}},87251:function(e,t,i){"use strict";var o=i(74037),n=i(27361),r=i.n(n),a=i(11163);t.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",{locale:t}=(0,a.useRouter)();return r()(o.Z,"".concat(t).concat(e?".".concat(e):""),o.Z[t||"en"])}},74037:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var o=i(29242),n={global:{off:"تخفيض",createNew:"إنشاء جديد",backTo:"العودة إلى",viewAll:"عرض جميع",showAll:"عرض الكل",featured:"المميزات",select:"اختر ...",nationality:"ما هي الجنسية؟",cost:"التكلفة",failed:"فشل",characters:"حرف",durationEstimate:"مدة الفيديو المقدرة",gotIt:"فهمت",topUp:"النقاط المضافة",rollover:"النقاط المُرحّلة",plan:"نقاط الخطة",active:"نشط",collapse:"إخفاء التفاصيل",expand:"عرض التفاصيل",rechargesOn:"تاريخ التجديد في",otherPlaceholder:"ادخل الخيار الآخر",featuredTools:"الأدوات المميزة",export:"تصدير",step:"الخطوة",free:"مجاني",thankYou:"شكراً",generatingScenes:"جاري إنشاء المشهد",optional:"اختياري",feedbackSuccess:"شكراً لتعليقك!",noAudio:"لا يوجد صوت",ex:"* أمثلة",comingSoon:"قريبا",comingSoonLong:"قريبا",promptCopySuccess:"تم نسخ النص إلى الحافظة",scriptCopySuccess:"تم نسخ النص إلى الحافظة",quoteCopySuccess:"تم نسخ النص إلى الحافظة",downloadImageSuccess:"تم تحميل الصورة بنجاح",downloadVideoSuccess:"تم تحميل الفيديو بنجاح",downloadVoiceoverSuccess:"تم تحميل ملف الصوت بنجاح",linkCopiedSuccess:"تم نسخ الرابط بنجاح",summerSale:"(40٪ تخفيضات الصيف)",winterSale:"(40٪ تخفيضات الشتاء)",sale:"%",sortby:"ترتيب حسب: ",filterBy:"تصنيف حسب: ",megaByte:"ميغابايت",since:"مشترك منذ",of:"من",gb
1:"جيجابايت",perMonthShort:"/شهرياً",perMonth:"/شهرياً",perMonthYearly:"مدفوعة سنوياً",perYear:"/سنوياً",choosePlan:"اختر الخطة",getStarted:"ابدأ",currentSubscription:"الإشتراك الحالي",currentPlan:"الخطة الحالية",changePlan:"تغير الخطة",reActivate:"إعادة تفعيل الخطة",moreFromBith:"المزيد من BithAI",all:"الكل",studio:"الستوديو",backSignIn:"العودة إلى تسجيل الدخول",back:"رجوع",next:"التالي",backToStudio:"العودة الى الاستوديو",generateAvatar:"إنشاء شخصية",backHome:"العودة إلى الصفحة الرئيسية",createVideo:"عدل فيديو",uploadVideo:"إرفع فيديو",yourAccount:"الحساب الخاص بك",filters:{search:"البحث عن ...",tenorSearch:"البحث عن ...",sort:"ترتيب حسب",filterBy:"تصنيف حسب",pixabaySearchPlaceholder:"ابحث عن الصور من pixabay",pixabaySearchVideosPlaceholder:"ابحث عن مقاطع الفيديو من pexels",poweredBy:"مدعوم بواسطة"},learnHow:"تعلم كيف",done:"تم",bith:"بث",shortSignUp:"أنشئ حساب",shortSignIn:"تسجيل الدخول",language:"EN",en:"EN",ar:"AR",upload:"إرفع",continueEditing:"الاستمرار في التعديل",continue:"متابعة",signup:"أنشاء حساب",login:"تسجيل الدخول",home:"الصفحة الرئيسية",contactUs:"تواصل معنا",terms:"الشروط والأحكام",privacy:"سياسة الخصوصيّة",error_url:"/illustrations/404_Image.svg",home_page:"الصفحة الرئيسية",save:"حفظ",feed:"الصفحة الرئيسية",soon:"قريبا",new:"جديد",or:"أو",socialLabel:"تسجيل الدخول بإستخدام",imagesValidation:{typeNotAllowed:"يمكنك فقط تحميل صور غلاف JPG / PNG",coverLarge:"يجب أن يكون حجم صورة الغلاف أقل من أو يساوي 2 ميغا بايت"},normalImagesValidation:{typeNotAllowed:"يمكنك فقط تحميل صور غلاف JPG / PNG",large:"يجب أن يكون حجم الصورة أقل من أو يساوي 2 ميغا بايت"},showMore:"عرض المزيد",connect:"ربط",connected:"متصل",noResults:"لم يتم العثور على نتائج",validations:{shortRequired:"(إجباري)",required:"هذا الحقل إجباري!",invalidUrl:"رابط غير صالح",invalidSocialMediaHandle:"معرف حساب غير صالح",messageDynamic:e=>"هذا الملف أكبر من ".concat(e," ميغا بايت")},confirmationAlert:{no:"لا",yes:"نعم"},fileTypeNotSupported:e=>{let{videoType:t}=e;return"هذا النوع من المقاطع ".concat(t," غير مدعوم")},sizeLimit:"Sorry, your uploaded media exceeded the file size limit. The maximum size for media upload is",sizeLimitMaxDescription:"The maximum size for media upload is",maxSizeLimit:"200 MB",remove:"حذف",delete:"حذف",cancel:"إلغاء",close:"إغلاق",move:"إنقل",restore:"استرجع",time:{mins:e=>1===e||e>10?"دقيقة":"دقائق",minsMobile:"د",secs:e=>1===e||e>10?"ثانية":"ثواني",hours:e=>1===e||e>10?"ساعة":"ساعات",days:e=>1===e||e>10?"يوم":"أيام"},minutes:e=>1===e||e>10?"دقيقة":"دقائق",seconds:e=>1===e||e>10?"ثانية":"ثواني",credits:e=>1===e||e>10?"نقطة":"نقاط",perEdit:"/تعديل",oneTime:"(مرة واحدة)",upgradeToPro:"ترقية الخطة",upgradePlan:"ترقية الخطة",upgrade:"ترقية",downgrade:"تخفيض",generateClips:"إنشاء",generateAVideo:"إنشاء فيديو",clips:"مقاطع",processing:"قيد المعالجة",continueGenerating:"تعديل النص",editScenes:"تعديل الفيديو",showLess:"عرض القليل",poweredby:"مدعوم من",proceed:"المتابعة",paidFeature:"خاصية مدفوعة",download:"تحميل",generateImage:"إنشاء صورة جديدة",generateImageShort:"إنشاء صورة",generateScene:"إنشاء فيديو",generateVideo:"إنشاء فيديو جديد",generateVideoShort:"إنشاء فيديو",editVideo:"تعديل",share:"مشاركة",copyShared:"نسخ الرابط المشارك",addCredits:"أضف نقاط",images:e=>1===e||e>10?"صورة":"صور",copy:"نسخ",copied:"تم النسخ",creditsUsed:"النقاط المستخدمة",and:"و",backToMenu:"العودة إلى القائمة الرئيسية",videoPopup:{showDetail
1s:"تفاصيل الفيديو",showVideo:"عرض الفيديو"},somethingWentWrong:"حدث خطأ ما",empty:{videos:"لا توجد فيديوهات",scenes:"لا توجد مشاهد",images:"لا توجد صور"},useTemplate:"استخدم القالب"},account:{dropDown:{accountSettings:"اعدادات الحساب",logout:"تسجيل الخروج"}},signUp:{title:"أنشئ حسابك",fields:{username:{label:"اسم المستخدم",illegal_chars:"اسم المستخدم يحتوي على أحرف غير قانونية.",minUserNameMessage:"يجب أن يتكون اسم المستخدم من ٥ أحرف على الأقل.",maxUserNameMessage:"يجب أن يتكون اسم المستخدم من و ٢٤ حرف على الأكثر."},email:{label:"البريد الالكتروني"},password:{label:"كلمة المرور",password_illegal_chars:"يجب أن تتضمن كلمة المرور رقمًا واحدًا و حرفاً واحداً ويجب أن تتكون من ٨ خانات على الأقل.",password_rules:"يجب أن تتضمن كلمة المرور رقمًا واحدًا و حرفاً واحداً ويجب أن تتكون من ٨ خانات على الأقل."},confirm_password:{label:"تأكيد كلمة المرور",password_validation:"كلمة السر غير متطابقة."},emailMarkiting:{label:"أرسل لي أخر التحديثات والعروض الترويجية"},terms:{label:"أقر بأني أوافق على ",label2:"وقد قمت بقراءة "}},actions:{submit:"أنشئ حسابك",login:"هل لديك حساب؟",login1:"تسجيل الدخول",continueWithEmail:"تابع ببريدك الإلكتروني"}},login:{title:"تسجيل الدخول إلى حسابك",socialTitle:"مرحباً بك في Bith.AI",forgotPassword:"نسيت كلمة السر؟",fields:{email:{label:"البريد الالكتروني",errors:{required:"هذا الحقل إجباري!"}},password:{label:"كلمة المرور",errors:{required:"هذا الحقل إجباري!"}}},actions:{submit:"تسجيل دخول",signUp:"قم بالتسجيل الآن",continueWithEmail:"تسجيل الدخول ببريدك الإلكتروني",social:"تسجيل الدخول باستخدام حسابك على وسائل التواصل الاجتماعي"}},contactUs:{info:"معلومات التواصل",email:"البريد الالكتروني",social:"حساباتنا"},help:{layout:{title:"بث",pages:{terms:"الشروط والأحكام",privacy:"سياسة الخصوصية",guide:"دليل بث"}}},validations:{email:{illegal:"البريد الالكتروني المدخل غير صالح",invalid:"البريد الالكتروني المدخل غير صالح"},maxTextLength:"يجب أن يكون طول النص أقل من 255 حرفًا",minTextLength:"يجب أن يكون طول النص اكثر من 5 احرف",required:"هذا الحقل إجباري!",maxTextLengthDynamic:e=>"يجب أن يكون طول النص أقل من ".concat(e," حرفًا"),minTextLengthDynamic:e=>"يجب أن يكون طول النص اكثر من ".concat(e," احرف"),maxNumberDynamic:e=>"الحد الاقصى هو ".concat(e),minNumberDynamic:e=>"الحد الادنى هو ".concat(e),oneFieldIsRequiredAtLeast:"مطلوب حقل واحد على الأقل",textFieldsMin:e=>"يجب أن يكون طول النص أكثر من ".concat(e," لجميع الحقول مجتمعة"),textFieldsMax:e=>"يجب أن يكون طول النص أقل من ".concat(e," حرفًا لجميع الحقول مجتمعة")},socialLogin:{facebook:"Facebook",twitter:"twitter",google:"google",discord:"discord",twitch:"twitch",apple:"Apple"},appBanner:{title:"قم بتحميل تطبيق بث",subTitle:"قم بتحميل تطبيق بث",action:"تحميل"},resizer:{layers:{source:"بعد:",before:"قبل:"},compileActions:{continueEditing:"الاستمرار في التعديل",skip:"تخطي وتحميل",skipDescription:"(من غير تعديل)",compile:"معالجة وتحميل",next:"التالي"},importFaild:{title:"فشل في تحميل الملف",upload:"إرفع فيديو"},editorSettings:{faceCam:"الكاميرا",outlinesBefore:"الحدود:",outlineAfter:"الحدود:",original:"الأصلي",output:"الناتج"},outputSettings:{aspectRatio:"ابعاد الفيديو",fps:"عدد الإطارات في الثانية (FPS):",quality:"الجودة:"},preview:{title:"إضغط هنا",description:"لتعديل ابعاد الفيديو"},templates:{action:"تغيير التصميم",modal:{title:"إختر تصميم:",de
1scription:"قم بتحويل الفيديو الخاص بك إلى البُعد الذي تريده."}},resetChanges:"حذف التعديلات"},socialMediaDistribution:{connectedAccounts:"الحسابات المتصلة",action:"ربط الحساب",disconnect:"افصل الحساب",selectPage:"إختر الحساب",unSelectPage:"عدم إختيار الحساب",tiktokNote:"ستتلقى إشعارًا من تطبيق TikTok على جهازك المحمول لمواصلة عملية النشر.",needMobileInstallation:"بمجرد النشر ، عليك الاستمرار في نشر الفيديو من نفس حسابك على تطبيق BithAI للجوال.",enable:"النشر على هذا الحساب",publish:"إنشر",publishDownload:"إنشر الان وقم بتحميل المقطع",actions:{cancel:"إلغاء",connect:"ربط الحساب"}},advancedEditor:{sideBar:{media:"ملفاتي",layers:"طبقات",text:"نص",audio:"صوت",gifs:"صور متحركة",videos:"فيديوهات",images:"صور",effects:"التأثيرات",subtitles:"ترجمة"},panels:{general:{title:"عام",settings:"الاعدادات الاصلية",quality:"الجودة:",fps:"عدد الإطارات في الثانية (FPS):",bgColor:"لون الخلفية"},texts:{tabs:{textSettings:"خصائص النص",effects:"المؤثرات",timing:"التوقيت"},title:"نص",editText:"تعديل النص",fontFamily:"الخط",lockRatio:"Lock Ratio",color:"لون النص",outline:"مخطط النص",off:"مخفي",on:"ظاهر",stroke:{title:"مخطط النص",width:"عرض",color:"لون المخطط"},background:{title:"خلفية النص",color:"لون",corners:"زوايا الخلفية",padding:"التباعد",opacity:"شفافية"},effect:{textColor:"لون النص",backgroundColor:"لون الخلفية"}},timing:"التوقيت",audio:{title:"صوت",volume:"مستوى الصوت",noAudio:"هذا الفيديو لا يحتوي على صوت"},image:{title:"صور",tabs:{settings:"صور"}},video:{title:"فيديوهات",tabs:{settings:"فيديوهات"}},gifs:{title:"صور متحركة"},shared:{layer:"الطبقة",delete:"حذف",backward:"طبقة إلى الوراء",forward:"طبقة إلى الأمام",sendToFront:"أرسل إلى الأمام",sendToBack:"أرسل إلى الخلف"},effects:{title:"تأثيرات الصندوق"},subtitle:{title:"ترجمة",applyToAll:"تطبيق الخصائص على جميع الترجمات"}},media:{switcher:{myLibrary:"مكتبتي",stock:"عام",aiImages:"صور الذكاء الاصطناعي"}},texts:{tooltip:"هذا الخط يتعامل مع النصوص العربية والانجليزية",actions:{english:"خطوط إنجليزية",arabic:"خطوط عربية"}},subtitles:{title:"ترجمة",generate:"إنشاء ترجمة",selectLanguage:"اختر اللغة",language:"اللغة",original:"اللغة",translate:"ترجمة الى (إختياري)",translatePlaceholder:"بدون ترجمة - استخدم اللغة الأصلية ..",transcriptionLeft:"من الترجمة",transcriptionLeft1:"تبقى ",freeAlert:{outOf:"من",freeMins:"من دقائق مجانية."},selectLanguageError:"الرجاء اختيار اللغة",generating1:"الرجاء الإنتظار",generating:"جاري تحميل الترجمة",noTranscriptionError:"لا يوجد ترجمة لهذا الفيديو",settings:{title:"إعدادات الترجمة",grouped:"مجمعة",single:"منفردة"},addNew:"إضافة ترجمة",addError:"لا يمكنك إضافة الترجمة خارج مدة الفيديو",tabs:{subtitles:"ترجمة",options:"خيارات"},delete:{title:"حذف الترجمة",description:"هل أنت متأكد أنك تريد حذف الترجمة لهذا الفيديو؟"},downloadSrt:"تحميل ملف SRT"},audio:{sound:{title:"أصوات"}},images:{title:"صور",tabs:{filled:"Filled",transparent:"Transparent"}},videos:{title:"فيديو"},gifs:{title:"صور متحركة"},disclaimer:{title:"الفيديو يبدو غامضا ؟!",description:"يقلل من دقة الفيديو في المحرر حتى تتمكن من الاستمتاع بتجربة تحرير وتشغيل أسرع. لا تقلق ، سيتم استخدام الدقة الأصلية للفيديو عند المشاركة.",durationLimitTitle:"الوقت",durationLimit:"يجب ان يكون طول الكليب دقيقة او اقل"},tooltips:{split:{title:"قطع",shortCut:{mac:"S",wind:"S"}},undo:{title:"تراجع",shortCut:{mac:"Cmd + Z",wind:"Ctrl + Z"}},redo:{title:"عودة",shortCut:{mac:"Cmd + Shift + Z",wind:"Ctrl + Shift + Z"}},play:{title:"تشغيل",shortCut:{mac:"Space",wind:"Space"}},pause:{title:"إيقاف",shortCut:{mac:"Space",wind:"Space"}},duplicate:{title:"تكرار"},delete:{title:"حذف",shortCut:{mac:"Backspace",wind:"DEL"}},zoomIn:{title:"تكبير الخط الزمني",shortCut:{mac:"Cmd + Mouse wheel Up",wind:"Ctrl + Mouse wheel Up"}},zoomOut:{title:"تصغير الخط الزمني",shortCut:{mac:"Cmd + Mouse wheel Down",wind:"Ctrl + Mouse wheel Down"}},zoomToFit:{title:"Fit to Screen"}},commingSoon:"قريبا",uploadFlow:{backToMagicResizer:"العودة إلى ال Magic Re
1sizer",steps:{resizer:"مغير الحجم",editor:"المحرر",share:"النشر"},actions:{editAndUpload:"معالجة ونشر"}},timeLine:{openTimeLine:"افتح الجدول الزمني",limitationPopup:{title:'عذراُ, لقد تجاوزت المدة المسموح بها "10 دقائق", اي تعديلات بعد المدة المسموحة لن يتم احتسابها.',actions:{cancel:"العودة للتعديل",ok:"تصدير على أي حال"}}}},homeMobile:{superWindow:{info:"أسهل برنامج مونتاج لمقاطع الفيديوهات",title:"اصنع محتواك",title2:"",title3:"بسهولة",description:"أفضل برنامج مجاني لتعديل المحتوى ونشره على منصات التواصل الإجتماعية المختلفة",description2:"",desktop:"على الكمبيوتر كل الميزات متوفرة",downloadApp:"حمل التطبيق"},resize:{title:"تعديل",description:"استخدم أداة تغيير الحجم السحرية الخاصة ببث لتحويل مقاطع الفيديو الخاصة بك إلى أحجام مناسبة تتناسب مع إنستقرام ويوتيوب وتيكتوك وفيسبوك وجميع منصات التواصل الإجتماعية المختلفة لكي تزيد من فرص المشاهدة في أي منصة مهما كانت. "},edit:{title:"مونتاج",description:"أضف بعض النكهة إلى مقاطعك باستخدام الميزات المختلفة المتوفرة في أداة مونتاج بث. نوفر لك كل ما تحتاجه من نصوص وصور ومقاطع فيديو لكي يلفت محتواك الانتباه. "},publish:{title:"نشر",description:"باستخدام أدوات بث، يمكنك تحميل المحتوى الخاص بك مباشرة إلى جميع منصات التواصل الاجتماعية المفضلة لديك بكبسة زر واحدة فقط!"}},headerLayout:{howItWorks:"كيف يعمل ؟",features:"لماذا بث ؟",apps:"تطبيقاتنا",learn:"تعلم",welcome:"اهلا بك",comma:"،",tools:"الأدوات",pricing:"الأسعار",proCreator:"الخطة الإحترافية",freePlan:"الخطة المجانية",editor:"محرر الفيديو"},home:{hero:{create:"أنشىء",videos:"فيديو",images:"صورة",audios:"صوت",in:"في",seconds:"ثواني",subtitle:"مكان واحد - جميع نماذج الذكاء الاصطناعي",getStarted:"ابدأ الآن"},create:{title:"أنشىء",video:"فيديو",image:"صورة",audio:"صوت"},superWindow:{title:"اصنع محتوى بسهولة باستخدام",title1:"الذكاء الاصطناعي",title2:"صانع محتوى",title3:"",description:"حوّل أفكارك إلى مقاطع فيديو وصور جذابة وغير ذلك الكثير في ثوانٍ",action:"ابدأ الآن",howItWorks:"كيف يعمل بث ؟"},howItWorks:{title:"كيف يعمل بث ؟"},whyBit:{title:"لماذا بث ؟"},signup:{title:"ليس لديك حساب حتى الآن ؟",looking:"تتطلع لتصبح منشئ محتوى؟",start:"ابدأ رحلتك اليوم!",action:"سجل الآن"},downloadApp:{title:"أكمل تجربتك من خلال تطبيقاتنا على الهاتف",description:"هناك حقيقة مثبتة منذ زمن طويل وهي أن المحتوى المقروء لصفحة ما سيلهي القارئ عن التركيز على الشكل الخارجي للنص أو شكل توضع الفقرات في الصفحة التي يقرأها."},creativeStudio:{title:"مجموعتك الإبداعية الكاملة",description:"أطلق العنان لإمكانيات لا حدود لها من خلال منصتنا البديهية، المصممة لتبسيط رحلة تحرير الفيديو الخاصة بك. قم بتغيير حجم أبعاد الفيديو الخاص بك، وأضف الترجمات بسهولة باستخدام الذكاء الاصطناعي، وقم بدمج الصور ومقاطع الفيديو والصوت وملفات GIF بسلاسة ببضع نقرات فقط.",editorText:"محرر الفيديو بيث",disclaimer:"تتوفر هذه الميزة على الشاشات الأكبر حجمًا. يُرجى التبديل إلى كمبيوتر سطح المكتب أو الكمبيوتر المحمول للحصول على أفضل تجربة."},gallery:{title:"معرض الإلهام",exploreMore:"استكشف المزيد"}},pricing:{title:"قم باختيار الخطة التي تناسبك!",popupTitle:"الخطط الجديدة",pricing:"السعر",description:"كل ما تحتاجه لإنشاء محتوى أسرع وأذكى",monthly:"شهري",yearly:"سنوي",saving:"شهرين مجانيان",pro:"محترف",free:"مجاني",aiTools:"الذكاء الاصطناعي",recommended:"موصى به",tabs:{bundles:"الباقات",creditsPack:"حزمة النقاط"},planCard:{popular:"شائع",mostChosen:"الأكثر اختياراً",selectPlan:"اختر الخطة",startNow:"ابدأ الآن",currentPlan:"الخطة الحالية",unavailable:"غير متاح",notAvailableFromCurrentPlan:"غير متاح من خطتك الحالية",upgrade:"ترقية",downgrade:"تخفيض",creditsPerMonth:"نقطة",ugcVideoPerMonth:"فيديو UGC",ugcVideosPerMonth:"فيديوهات UGC",perMonth:"/ شهر",switchTo:"تبديل الخطة",scheduledNext
1Cycle:"مجدول للدورة التالية"},creditPack:{credits:"نقطة",purchase:"شراء",validityNote:"صالحة لمدة 90 يومًا من تاريخ الشراء"},faqs:{title:"الأسئلة الشائعة"},aiTitle:"حدد الحزمة المفضلة لديك:",automateAround:"يمكن القيام بإنشاء",aiVideos:"فيديو",plansDisclaimer:"هذه الأرقام تقديرية فقط، وقد تختلف حسب كيفية استخدامك للنقاط عبر الفيديوهات والصور والصوت.",creditsRolloverNotice:"النقاط لا تُرحّل بين دورات الفوترة",oneTimePaymentDisclaimer:"يرجى ملاحظة أن النقاط المشتراة فقط متاحة طالما أن اشتراكك مستمر.",legacyPlan:{title:"خطتك الحالية هي {planTitle} (قديم)",description:"*هذه خطة قديمة لم تعد متاحة للعملاء الجدد. يمكنك الاحتفاظ بهذه الخطة إلى أجل غير مسمى أو التبديل إلى خططنا الجديدة.",creditsPerMonth:"نقاط/شهر",features:{fullAccessToAITools:"الوصول الكامل إلى أدوات الذكاء الاصطناعي",proAccessToVideoEditor:"الوصول الاحترافي إلى محرر الفيديو",aiSubtitleGenerator:"مولد الترجمة بالذكاء الاصطناعي",minutes:"{minutes} دقيقة",storage:"التخزين ({storage} جيجابايت)",customerSupport:"دعم العملاء"}}},footer:{aboutUs:"من نحن",contactUs:"إتصل بنا",terms:"الشروط والأحكام",privacyPolicy:"سياسة الخصوصيّة",bithGuide:"دليل بث"},footerLayout:{links:{title:"الروابط",about:"عن بث",terms:"الشروط و الأحكام",privacy:"سياسة الخصوصية",pricing:"الأسعار"},help:{title:"مساعدة",learn:"تعلم",tools:"الأدوات",faqs:"الأسئلة الشائعة",contactUs:"تواصل معنا",bithAi:"Bith.AI"},getinTouch:{title:"ابقى على تواصل"},partners:{title:"الشركاء"},rights:"\xa9 جميع الحقوق محفوظة. Bith.AI "},authFlowLayout:{info:{title:"ميزات بث",free:"مجاني",noWatermark:"بدون علامة مائية",online:"متاح دائما",distribution:"مشاركة فى أي منصة"},actions:{back:"العودة إلى الصفحة الرئيسية"},signUp:{action:"أنشئ حساب"},ugc:{title:"فيديوهات UGC",subtitle:"أنشئ فيديوهات واقعية ترويجية جاهزة للنشر بدون تصوير أو مونتاج"},termsNotice:"من خلال المتابعة، فإنك توافق على شروط الاستخدام وسياسة الخصوصية الخاصة بنا."},passwordReco:{sendEmail:{title:"اعد ضبط كلمه السر",formFields:{email:"البريد الالكتروني"},actions:{submit:"إعادة ضبط",redirectTitle:"هل لديك حساب ؟",redirect:"تسجيل الدخول"},success:"يرجى تفقد بريدك الإلكتروني"},reset:{title:"أنشئ كلمة مرور جديدة",formFields:{newPassword:"كلمة المرور الجديدة"},actions:{submit:"تغيير كلمة السر"},success:{title:"لقد تم إعادة تعيين كلمة المرور الخاصة بك بنجاح.",action:"تسجيل الدخول"}}},studio:{sidebars:{images:{title:"الصور"},videos:{all:"جميع الفيديوهات",original:"غير معدل",inProgress:"قيد التعديل",readyToPublish:"جاهز للنشر",published:"تم التصدير",deletedVideos:"المهملات"},account:{title:"الإعدادات",accountSettings:"اعدادات الحساب",notificationsSettings:"إعدادات الإشعارات",billingSettings:"اعدادات الدفع",connectionSettings:"حساباتي"},connections:{title:"المنصات",connect:"ربط"},storage:{storageUsed:"المساحة المستخدمة",storageRemaining:"المساحة",upgrade:"ترقية"},main:{myStudio:"الصفحة الرئيسية",videos:"الفيديوهات",folders:"الملفات",watchAndLearn:"شاهد وتعلم",deleted:"المهملات",aiStudio:"استوديو الذكاء الاصطناعي",mainStudio:"الاستوديو الإبداعي",imageGenerator:"الصور",voiceovers:"الأصوات"},minutes:{title:"النقاط المستخدمة",remaining:"النقاط",upgrade:"أضف نقاط",total:"إجمالى النقاط",add:"إضافة"},helpCenter:{title:"مركز المساعدة"}},shell:{header:{home:"الرئيسية"},sidebar:{home:"الرئيسية",library:"المكتبة",templates:"القوالب",apps:"التطبيقات",tools:"الأدوات",more:"المزيد",less:"أقل",pin:"تثبيت",unpin:"إلغاء التثبيت",re
1centSessions:"الجلسات الأخيرة",sessions:"الجلسات",newSession:"جلسة جديدة",untitledSession:"جلسة بدون عنوان"}},library:{tabs:{videos:"الفيديوهات",images:"الصور",audio:"الصوت",folders:"المجلدات",deleted:"المحذوف"},inProgressAlert:"سنخطرك عبر البريد الإلكتروني عندما يكون الفيديو جاهزاً!"},account:{settings:{title:"إعدادات الحساب"},profilePicture:{title:"الصورة الشخصية"},notifications:{title:"الإشعارات"},info:{title:"معلومات الحساب",changeImage:"تغيير الصورة",remove:"حذف",formFields:{username:{label:"اسم المستخدم"},email:{label:"البريد الإلكتروني"}},action:"حفظ"},changePassword:{title:"تغيير كلمة السر",formFields:{newPassword:{label:"كلمة المرور الجديدة"},confirmNewPassword:{label:"تأكيد كلمة المرور الجديدة"},password:{label:"كلمة المرور الحالية"}},success:{message:"تم تحديث كلمة المرور بنجاح"},action:"تحديث"},preferences:{title:"التفضيلات",theme:"الوضع الفاتح",language:"اللغة"}},videoModal:{actions:{create:"Create a New Edit",continue:"الاستمرار في التعديل",start:"ابدأ التعديل",download:"تحميل",editAgain:"تكرار وتعديل",edit:"تعديل الفيديو"}},videosDropDown:{edit:"تعديل",duplicate:"تكرار",publish:"نشر",schedule:"جدولة",download:"تحميل",move:"نقل",rename:"تغيير الاسم",delete:"حذف"},deletedVideosDropDown:{restore:"استعادة",deletePermanently:"الحذف نهائياً"},sort:{name:"الاسم",dateCreated:"تاريخ الإنشاء",dateModified:"اخر تعديل"},videosDetailsBar:{videoTitle:"عنوان الفيديو",size:"الحجم",status:"الحالة",lastEdited:"آخر تعديل"},empty:{title:"ليس لديك أي مقاطع فيديو حتى الآن!",description:"انقر فوق الزر أدناه لإنشاء مقطع الفيديو الأول الخاص بك",video_editor:{title:"ليس لديك أي مقاطع فيديو حتى الآن!",description:"انقر فوق الزر أدناه لإنشاء مقطع الفيديو الأول الخاص بك"},deleted:{title:"سلة المهملات فارغة",description:"انقر فوق الزر أدناه لإنشاء مقطع فيديو"},audio:{title:"ليس لديك أي مقاطع صوتية حتى الآن!",description:"انقر فوق الزر أدناه لإنشاء مقطع الصوت الأول الخاص بك"},image:{title:"ليس لديك أي صور حتى الآن!",description:"انقر فوق الزر أدناه لإنشاء الصورة الأولى الخاصة بك"},ai:{title:"ليس لديك أي مقاطع فيديو حتى الآن!",description:"انقر فوق الزر أدناه لإنشاء مقطع الفيديو الأول الخاص بك"},text_to_video:{title:"ليس لديك أي مقاطع فيديو حتى الآن!",description:"انقر فوق الزر أدناه لإنشاء مقطع الفيديو الأول الخاص بك"},text_to_scene:{title:"ليس لديك أي مقاطع فيديو حتى الآن!",description:"انقر فوق الزر أدناه لإنشاء مقطع الفيديو الأول الخاص بك"},quote_to_video:{title:"ليس لديك أي مقاطع فيديو حتى الآن!",description:"انقر فوق الزر أدناه لإنشاء مقطع الفيديو الأول الخاص بك"}},createVideo:{headerActions:{continueToEdit:"الإنتقال الى التعديل",publish:"معالجة",exportSettings:{title:"إعدادات التصدير"}}},main:{videos:{title:"الفيديوهات",viewAll:"عرض جميع الفيديوهات",createAVideo:"عدل فيديو"},home:{heroHeadline:"كل ما تحتاجه للإبداع في مكان واحد",appsTitle:"التطبيقات",toolsTitle:"الأدوات",lastVideosTitle:"آخر الفيديوهات",viewAll:"عرض الكل",templatesHeadline:"ابدأ من قوالب مجربة، وليس من الصفر.",browseAllTemplates:"تصفح جميع القوالب"},folders:{title:"الملفات",viewAll:"عرض جميع الملفات",newFolder:"إنشاء ملف جديد"},watchAndLearn:{title:"شاهد و تعلم",viewAll:"عرض جميع الفيديوهات"},tools:{title:"ما الذي ستنشئه اليوم؟",description:"إنشاء الصور وتحرير العناصر المرئية وإنشاء مقاطع الفيديو — كل ذلك باستخدام الذكاء الاصطناعي.",viewAll:"عرض جميع الأدوات",action:"استكشف جميع الأدوات"},apps:{title:"التطبيقات"}},notificationsSettings:{transactionalEmails:"تلقي رسائل البريد الإلكتروني الخاصة بالدفع",promotionalEmails:"تلقي رسائل البريد الإلكتروني الترويجية"},superWindow:{carousel:{title:"اداة تحويل النص الى فيديو بإستخدام",title1:"الذكاء الاصطناعي",description:"اداة تحويل النص الى فيديو , تفتح آفاقاً جديدة لصناع المحتوى دون إظهار وجوههم. حول أفكارك الى فيديوهات بخطÙ
1ˆØ§Øª بسيطة"}},useCases:{title:"ماذا أنشأ المستخدمون",popup:{prompt:"النص الأولي",prefix:"",script:"النص",aiModule:"نموذج إنشاء الصور"}},accountDropdown:{settings:"إعدادات الحساب",notificationSettings:"إعدادات الإشعارات",billingSettings:"إعدادات الدفع",lightTheme:"الوضع الفاتح",language:"اللغة",help:"المساعدة",faqs:"الأسئلة الشائعة",terms:"الشروط والأحكام",privacy:"سياسة الخصوصية",logout:"تسجيل الخروج"},notifications:{title:"الإشعارات"}},studioBreadcrumbs:{studio:"الاستوديو",account:"اعدادات الحساب",billing:"الاعدادات المالية",connections:"حساباتي",videos:"فيديوهاتي",all:"جميع الفيديوهات",original:"غير معدلة","in-progress":"قيد التعديل","ready-to-publish":"جاهزة للنشر",published:"تم تصديرها",deleted:"المهملات",exporting:"قيد المعالجة",completed:"تم تصديرها",processing:"قيد المعالجة","processing-promo-video":"قيد المعالجة"},folders:{new:"ملف جديد",create:{title:"إنشاء ملف",createFolderModal:{title:"إنشاء ملف جديد",fields:{name:"إسم الملف"},actions:{cancel:"إلغاء",create:"انشاء"},success:{title:"لقد تم إنشاء الملف بنجاح"}}},edit:{modal:{title:"تعديل الملف",fields:{name:"إسم الملف"},actions:{cancel:"إلغاء",update:"تعديل"},success:{title:"لقد قمت بتحديث اسم الملف الخاص بك بنجاح"}}},move:{title:'إنقل "',to:'" الى',done:"تم نقل "},delete:{title:"هل أنت متأكد أنك تريد حذف هذا الملف؟"}},videos:{edit:{modal:{title:"تعديل الفيديو",fields:{name:"إسم الفيديو"},actions:{cancel:"إلغاء",update:"تعديل"},success:{title:"لقد قمت بتحديث اسم الفيديو الخاص بك بنجاح"}}},delete:{header:"حذف",title:"هل أنت متأكد أنك تريد حذف هذا الفيديو؟",success:{title:"لقد قمت بحذف الفيديو الخاص بك بنجاح"}},deletePermanently:{header:"حذف",title:"هل تريد حقا حذف هذا الفيديو نهائيا؟",success:{title:"لقد قمت بحذف الفيديو الخاص بك بنجاح"}},restore:{header:"استرجع",title:"هل تريد حقا استرجع هذا الفيديو؟",success:{title:"لقد تم إسترجاع الفيديو بنجاح"}},duplicate:{modal:{title:"تكرار الفيديو",fields:{name:"إسم الفيديو"},actions:{cancel:"إلغاء",update:"تكرار"},success:{title:"لقد تم تكرار الفيديو الخاص بك بنجاح"}}},deletionWithin:"سيتم حذفه خلال:"},createVideo:{uploadModal:{import:{title:"استيراد من رابط",inputPlaceholder:"قم بلصق الرابط الخاص بك من يوتيوب، تويتش، أو فيسبوك هنا...",aiInputPlaceholder:"قم بلصق الرابط الخاص بك من يوتيوب هنا...",action:"لصق",try:"جرب مقطع جاهز !",error:"الرجاء إدخال رابط صالح"},upload:{title:"قم بتحميل ملف",dragBox:"قم بسحب وإسقاط ملفك هنا",or:" أو ",browse:"تصفّح ",dragBox1:" اختيار ملف"},errors:{header:"عذراً",title:"لا يمكننا معالجة الفيديوهات التي",title1:"لا تحتوي على صوت",title2:"في الوقت الحالي, سنقوم بحل هذه المشكلة قريباً. \uD83E\uDD29",close:"إغلاق"},noDimensions:{header:"عذراً",title:"هذا النوع من مقاطع الفيديو غير قابل للتشغيل على هذا المتصفح ، يمكنك استخدام",title1:"متصفح Chrome ",title2:"لتتمكن من تحرير هذا الفيديو. \uD83E\uDD29",close:"إغلاق"},size:{title:"الحد الأقصى لحجم الفيديو : ",title1:"250 ميغا بايت",message:"هذا الملف أكبر من 250 ميغا بايت"},sizePro:{title:"الحد الأقصى لحجم الفيديو : ",title1:"3 جيجا بايت",message:"هذا الملف أكبر من 3 جيجا بايت"},smartClipperSize:{title:"الحد الأقصى لحجم الفيديو : ",title1:"10 جيجا بايت",message:"هذا الملف أكبر من 10 جيجا بايت"},aspectRatio:{header:"عذراً",title:"أبعاد الفيديو غير متوافقة،",t
1itle1:" الأبعاد المسموح بها هي",title2:"16:9 و9:16",close:"إغلاق"}},publisher:{title:"تصدير الفيديو",loading:"يرجى الإنتظار، روبوتات بث تعمل الآن من أجل إضافة جميع التعديلات على الكليب. قد تستغرق العملية بعض الوقت.",videoInfo:{title:{label:"العنوان",placeholder:"ادخل العنوان"}},actions:{download:"تحميل",removeWatermark:"ازالة العلامة المائية",newVideo:"أنشىء فيديو",editAgain:"تكرار وتعديل",editThisVideo:"تعديل الفيديو",back:"العودة الى الاستوديو"},socialMediaDistribution:{title:"Publish To",action:"Publish"},tips:{title:"هل كنت تعلم؟"},help:{title:"هل تواجه أي مشاكل أو لديك أي ملاحظات أو ترغب في البقاء على اطلاع دائم بجميع إعلاناتنا الأخيرة؟",redirect:"انضم إلى خادم Discord الخاص بنا."}},editor:{title:"تعديل"},resizer:{title:"تغيير الأبعاد",description:"يتم استهلاك معظم المحتوى على أجهزة الجوّال ، مما يجعل المحتوى الخاص بك مناسبًا للجوّال من خلال تغيير حجم نسبة العرض إلى الارتفاع.",projectSettings:{title:"الاعدادات",videoSize:{title:"أبعاد الفيديو",reset:"إعادة تعيين"},eligiblePlatforms:{title:"المنصات المتوافقة",and:" و ",more:" آخرين",maxDuration:"الحد الاقصى",unlimited:"غير محدود"},faceCam:{title:"الكاميرا",options:{off:"غير مفعلة",rectangle:"مستطيل",circle:"دائري",rounded:"مستدير"},stroke:{style:"شكل الإطار",color:"لون الإطار",animated:"متحرك"}},background:{title:"خلفية ضبابية",color:"لون الخلفية"},safeZone:{title:"المنطقة الآمنة للفيديو",description:"هذا للإظهار فقط حيث يكون الأيقونات الاجتماعية ولن يكون مرئيا في الفيديو المصدر"}}}},learn:{title:"تعلم",latest:"آخر المقالات",featured:"المفضلة",share:"مشاركة",keywords:"كلمات مفتاحية",createSection:{title:"تريد البدء في صناعة المحتوى؟ ارفع اول فيديو لك!"},relatedArticles:{title:"مقالات ذات صلة"}},socialAuth:{facebook:"المتابعة بإستخدام فيسبوك",google:"المتابعة بإستخدام جوجل",twitch:"المتابعة بإستخدام تويتش",apple:"المتابعة بإستخدام أبل"},exportStatus:{1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",step:e=>"الخطوة ".concat(e,"/٧"),in_queue:"يرجى الانتظار، الفيديو الخاص بك في قائمة الانتظار.",processing:"يرجى الانتظار، الفيديو الخاص بك في قائمة الانتظار.",trimming:"يرجى الإنتظار، روبوتات بث تعمل الآن من أجل تقليص مدة الفيديو",resizing:"لا تذهب بعيداً، روبوتات بث تعمل الآن من أجل تغيير أبعاد الفيديو",adding_layers:"يرجى الإنتظار، روبوتات بث تعمل الآن من أجل إضافة جميع التعديلات على الفيديو",adding_audios:"يرجى الإنتظار، روبوتات بث تعمل الآن من أجل إضافة جميع التعديلات على الفيديو",completed:"يرجى الإنتظار، روبوتات بث تعمل الآن من أجل ضبط جودة الفيديو",info:"إستغل وقتك و ابدأ في تعديل فيديو آخر(او يمكن العودة الى الاستوديو الخاص بك و ترتيب فيديوهاتك)"},back:{title:"هل أنت متأكد أنك تريد العودة؟",description:"ستفقد أي تغييرات قمت بها.",action:"الرجوع إلى مغير الأبعاد"},uploadNotCompleted:{title:"هل أنت متأكد أنك تريد مغادرة هذه الصفحة؟",description:"ستفقد أي تغييرات قمت بها.",action:"نعم"},tools:{title:"الأدوات",description:"إستخدم ادواتنا لإضافة نص, صورة, فيديو و المزيد الى الفيديو الخاص بك",callToAction:{weHope:"نتمنى أنك احببت ادوات BITH",cantWait:"لا يمكننا الإنتظار لرؤية إبداعاتك!"},step:"الخطوة ",moreTools:"جرب أدوات أخرى"},mediaAssets:{asset:{video:" الفيديو ",image:" الصورة ",audio:" الصوت ",gif:"صورة متحركة",empty:{title:"لا يوجد لديك",video:" فيديوهات ",image:" صور ",gif:" صور متحركة ",audio:" اصوات ",title1:"",info:"إستخدم احد ",info1:"Bith او إرفع ",info2:"خاصة بك"},uploadSuccess:{title:"تم رفع ",title1:" بنجاح "},edit:{title:"تعديل ",fields:{name:"إسم "},actions:{cancel:"إلغاء",update:"تعديل"},success:{title:"لقد قمت بتحديث اسم",title1:"  الخاص بك بنجاح"}},delete:{header:"حذف",title:"هل أنت متأكد أنك تريد حذف هذا ",imageTitle:"هل أنت متأكد أنك تريد حذف هذه ",title1:"؟",success:{title:"لقد قمت بحذف ",title1:" الخاص بك بنجاح"}}}},proPlanPopup:{title:"قم بترقية خطتك اليوم واجعلها أكثر سهولة",w
1atermark:"قم بإزالة العلامة المائية بترقية خطتك اليوم"},checkoutModal:{welcome:"مرحباً بك في Bith.AI",continueGoogle:"المتابعة باستخدام Google",continueEmail:"تابع ببريدك الإلكتروني",or:"أو",summaryTitle:"تفاصيل الاشتراك",summaryTitleCredits:"تفاصيل الشراء",creditPackName:e=>"".concat(Number(e).toLocaleString("ar")," نقطة"),creditPackValidityDays:"90",creditPackValidityLabel:"يومًا بعد الشراء",paymentTitle:"بيانات الدفع",scrollToBottom:"الانتقال إلى الأسفل",continueToPayment:"متابعة إلى الدفع",update:"تحديث",upgradeNow:"ترقية الآن",buyNow:"اشتر الآن",amountDueToday:"المبلغ المستحق اليوم",amountDueNow:"المبلغ المستحق الآن",totalCreditsAvailable:"إجمالي النقاط المتاحة",creditsFromCurrentPlan:"نقاط من خطتك الحالية",extraCreditsFromUpgrade:"نقاط إضافية من الترقية",subscriptionType:"نوع الاشتراك",creditsPerInterval:()=>"نقطة شهرياً",ugcPerInterval:e=>"فيديو UGC شهرياً",savePercent:e=>"وفّر ".concat(e,"%"),total:"الإجمالي",taxIncluded:"(شامل الضريبة)",autoRenew:(e,t,i)=>null!=i&&""!==i?"سيتم التجديد تلقائيا في ".concat(e," مقابل $").concat(i," و سيتم تجديد نقاطك الى ").concat(Number(t).toLocaleString("ar")," نقطة"):"سيتم التجديد تلقائيا في ".concat(e," وسيتم تجديد نقاطك الى ").concat(Number(t).toLocaleString("ar")," نقطة"),payTodayThen:(e,t,i,o)=>"ستدفع $".concat(e," اليوم، ثم $").concat(t," ").concat(i," ابتداءً من ").concat(o,"."),addDiscount:"أضف رمز خصم",apply:"تطبيق",discountInvalid:"رمز الخصم غير صالح",discountApplied:(e,t)=>"تم تطبيق الخصم. وفّرت ".concat(e,"$ (").concat(t,"٪) على هذه الخطة."),taxIncludedWithDiscount:"(شامل الضريبة و الخصم)",planPrice:"سعر الخطة",discountValue:"قيمة الخصم",removeDiscount:"إزالة رمز الخصم",subscribeNow:"اشترك الآن",confirmChangeTitle:e=>e?"تأكيد الترقية":"تأكيد تغيير الخطة",confirmChangeBody:"أكّد لتطبيق تغيير الخطة. أي مبلغ مستحق اليوم سيُخصم من وسيلة الدفع المحفوظة.",success:{title:e=>e?"نقاطك جاهزة":"تم الاشتراك بنجاح",body:(e,t)=>e?"نقاطك البالغ عددها ".concat(Number(t).toLocaleString("ar")," جاهزة للاستخدام."):"رصيد نقاطك الجديد جاهز للاستخدام.",upgradeTitle:"لقد رقّيت خطتك",changedPlanTitle:"لقد غيّرت خطتك",startNow:"ابدأ الآن"}},paymentFlowPopup:{totalPayment:"المبلغ الإجمالي",totalWithTax:"الإجمالي (شامل الضريبة)",stepper:{selectPlan:"اختر خطة",selectPackage:"اختر الحزمة",review:"مراجعة",payment:"الدفع"},selectPlan:{title:"اختر واحدة:",saving:"(وفر 17٪)",summerSale:"(40٪ تخفيضات الصيف)",winterSale:"(40٪ تخفيضات الشتاء)"},oneTimePurchase:{title:"زيادة الحد الخاص بك!"},review:{title:"تفاصيل شراء :",description:{description1:"سيتم تجديد اشتراكك لـ",on:"في",reset:"و سيتم تجديد نقاطك الى",description2:"هل لديك أسئلة؟",contact:"يرجى التواصل مع فريق الدعم الخاص بنا.",upgrade:"سيتم خصم مبلغ",upgrade1:"دولار على الفور للمبلغ المناسب نسبياً نظراً لتغيير خطتك.",chargedProrationBeforeAmount:"تم خصم ",chargedProrationAfterAmount:" اليوم كرسوم ترقية بالتناسب.",previewFetchError:"تعذّر تحميل معاينة الترقية."},payBy:"ادفع بإستخدام",ending:"البطاقة تنتهي بـ",creditSummary:{title:"ملخص الرصيد",creditsUsed:"الرصيد المستخدم",creditsAvailable:"الرصيد المتاح",renewsAt:"يتجدد عند",carriedOver:"المتوفر:",fromUpgrade:"من الترقية:"}},payment:{form:{country:{title:"الدولة",placeholder:"الدولة"},address:{title:"العنوان",placeholder:"العنوان"},city:{title:"المدينة",placeholder:"المدينة"}}},navigation:{back:"الرجوع",next:"التالي",cancel:"إلغاء",changePlan:"تغير الخظة",upgrade:"ترقية",downgrade:"تخفيض"},success:{title1:"تهانينا!",title2:"لقد قمت بالترقية الى الخطة الإحترافية",monthly:"الإشتراك الشهري",yearly:"الإشتراك السنوي",subscribedTitle:(e,t)=>
1"لقد اشتركت بنجاح في خطة ".concat(e," ").concat(t,"."),subscribedDescription:e=>"لديك الآن إمكانية الوصول إلى جميع مميزات ".concat(e,". اضغط على الزر أدناه للبدء في الإنشاء والاستمتاع!"),monthlyDescription:"لقد أصبحت صانع محتوى محترف, قم بالضغط على الزر بالأسفل لإنشاء اول فيديو بالمميزات الإحترافية و إستمتع!",pro:"للخطة الإحترافية",credits:e=>"لقد أضفت الآن ".concat(e," نقاط إلى رصيدك."),upgrade:"لقد قمت بتغيير خطتك الاحترافية",upgradeDescription:"أنت الآن لديك",upgradeDescription1:" قم بالضغط على الزر أدناه لمواصلة رحلتك في عالم الذكاء الاصطناعي باستخدام أدوات الذكاء الاصطناعي المذهلة التي لدينا، استمتع بها!",changedPlanDescription:e=>"لديك الآن ".concat(e," نقطة، إضغط على الزر أدناه لمواصلة رحلتك في عالم الذكاء الاصطناعي باستخدام أدوات الذكاء الاصطناعي المذهلة التي لدينا، استمتع!"),scheduledDowngradeTitle:"تم جدولة تغيير خطتك",scheduledDowngradeDescription:(e,t)=>"ستحصل على ".concat(e," نقطة اعتبارًا من ").concat(t," عند انتهاء فترة الفوترة الحالية. حتى ذلك الحين، ستحتفظ بمزايا خطتك الحالية. انقر على الزر أدناه للمتابعة.")},errors:{insufficientBalance:{title:"رصيد غير كافٍ",description:"نعتذر، لكن لا يمكن معالجة عمليتك في الوقت الحالي بسبب عدم توفر الأموال الكافية في حسابك. يرجى التأكد من توافر الأموال الكافية لإتمام العملية. إذا كنت بحاجة إلى مساعدة إضافية، يرجى التواصل مع فريق الدعم الخاص بنا. شكرًا لتفهمك",cancel:"إلغاء"}},reActivate:{header:"تمت العملية بنجاح",description:"تمت إعادة تفعيل اشتراكك بنجاح، ويمكنك إدارة اشتراكك من شاشة إعدادات الدفع."}},billing:{title:"الاشتراك",actions:{cancelPlan:"إلغاء الخطة",changePlan:"تغيير الخطة",cancelScheduledDowngrade:"إلغاء خفض الخطة المجدول",cancelScheduledDowngradeConfirmation:"هل أنت متأكد أنك تريد إلغاء تخفيض خطتك المجدول؟"},nextPaymentOn:"الدفعة التالية في",yourSubscriptionEndsAt:"ينتهي اشتراكك في",scheduledDowngradeEffective:"ساري من",scheduledChange:{title:"تغيير مجدول",downgradeTo:"تخفيض إلى",scheduledFor:"مجدول في"},paymentMethod:"طريقة الدفع",updatePaymentMethod:"تحديث طريقة الدفع",updatePaymentMethodModal:{success:"تم تحديث طريقة الدفع بنجاح."},billingHistory:{title:"تاريخ الفواتير",usd:"دولار أمريكي",table:{date:"التاريخ",description:"الوصف",amount:"المبلغ",receipt:"طباعة الإيصال"}}},cancelSubscription:{title:"نحن آسفون أن نراك تذهب!",description:"إذا كان لديك بعض الوقت ، فنحن نود أن نعرف لماذا قررت التبديل إلى الباقة المجانية.",other:"هل يمكن أن تخبرنا ما هو السبب الآخر لإلغاء اشتراكك؟",actions:{cancel:"إلغاء",submit:"تأكيد الالغاء",continueToCancellation:"تابع إلى الإلغاء",cancelAnyWay:"إلغاء",back:"العودة"},confirm:{title:"قم بتأكيد الإلغاء",description:"ستكون على الخطة ",description2:" حتى",description1:"بعد هذا التاريخ ، لن تتمكن من استخدام الميزات الاحترافية، هل أنت متأكد أنك تريد المتابعة؟"},pastDueConfirmation:{title:"قم بتأكيد الإلغاء",description:"اشتراكك متأخر عن السداد, لم يعد بإمكانك الوصول إلى ميزات النسخة الاحترافية. إلغاء الاشتراك سيؤدي إلى إزالة أي فوائد مرتبطة به بشكل دائم. هل أنت متأكد أنك تريد المتابعة؟"},congrats:"تهانينا!",discount:{title:"احصل على خصم 40% في الشهر القادم!",description:"نحن نقدر عملك! نحن نقدم لك خصمًا حصريًا بنسبة 40% على اشتراكك الشهر المقبل. استمتع بخدمتنا بسعر مخفض!",action:"احصل على الخصم",success:"اشتراكك الشهر القادم سيحصل على خصم 40%"},freeMonth:{title:"احصل على شهرين مجاناََ من أجلك فقط!",description:"نريد أن نقدم لك هذا العرض للبقاء معنا، وسيكون لديك المزيد من الوقت لاكتشاف ميزاتنا الاحترافية وتجربتها أكثر فأكثر!",action:"اقبل العرض",success:"لديك الآن 60 يومًا لتجربة ميزاتنا الاحترافية أكثر فأكثر"},successCancelation:{title:"لقد تم إلغاء اشتراكك",description:"نحن نقدر الوقت الذي قضيته معنا. إذا قررت العودة يومًا ما، فسنكون هنا للترحيب بك مرة أخرى. شكرا لكونك جزءا من رحلتنا!"},preCancelAlert:{title:"لا تفقد نقاطك",description:"إلغاء الاشتراك الآن يعني أن جميع النقاط غير المستخدمة سيتم إزالتها. سيتم إزالة أي نقاط متبقية أيضًا تلقائيًا في نهاية فترة الدفع الخاصة بك في ",description1:"هل أنت متأكد أنك تريد المتابعة؟",actions:{keepCredits:"لا تفقد نقاطك",cancelAnyway:"إلغاء الاشتراك"}}
1},planExpired:{title:"عذراََ! فشل تجديد اشتراكك في الخطة الإحترافية.",description:"نأسف لإبلاغك بفشل تجديد اشتراكك في الخطة الإحترافية.",action:"إضغط هنا لتحديث طريقة الدفع",popup:{title:'يرجى تحديث طريقة الدفع الخاصة بك لمواصلة الاستمتاع بإمكانية الوصول إلى الخطة الإحترافية الخاصة بك. إضغظ "تحديث" الآن.',submit:"تحديث"}},waitlistPopup:{title:"بث يقوم بإنشاء أداة جديدة مدعومة بالذكاء الاصطناعي ستجعل إنشاء الفيديو أسهل.",action:"انضم إلى قائمة الانتظار"},mobileBanner:{title:"متاح على الكمبيوتر فقط"},trafficBanner:{title:"نعتذر عن أي إزعاج قد يحدث، حيث نواجه حاليًا حجمًا غير معتاد من الضغط على موقعنا. نحن نعمل جاهدين لحل هذه المشكلة."},shortCutsModal:{title:"اختصارات لوحة المفاتيح",play:"تشغيل",pause:"إيقاف",delete:"مسح",split:"قطع",undo:"تراجع",redo:"عودة",copy:"نسخ",paste:"لصق",duplicate:"تكرار",zoomIn:"تكبير الخط الزمني",zoomOut:"تصغير الخط الزمني",nextFrame:"الإطار التالي او السابق",prevFrame:"الإطار السابق"},watchAndLearn:{title:"شاهد وتعلم"},summerSale:{title:'وفِر 40% على " الخطط الإحترافية " تخفيضات الصيف, قم بالترقية الى الخطة الإحترافية!',popup:{title:"كل ما تحتاجه هو تسجيل الدخول إلى حسابك  BITH للحصول على هذا الخصم"}},winterSale:{title:'وفِر 40% على " الخطط الإحترافية " تخفيضات الشتاء, قم بالترقية الى الخطة الإحترافية!',popup:{title:"كل ما تحتاجه هو تسجيل الدخول إلى حسابك  BITH للحصول على هذا الخصم"}},editTracker:{saving:" جاري حفظ التعديلات...",finishSaving:"تم حفظ التعديلات"},videosExpires:{title:"مستخدمين Bith.ai الرجاء الإنتباه, أي فيديو تم رفعه قبل 1 اكتوبر سيتم حذفه يوم 15 اكتوبر! اذا كنت لا تريد ان يتم حذف فيديوهاتك ",upgrade:"قم بترقية حسابك",title1:" الى الخطة الإحترافية"},studioTools:{subtitles:{generate:"إنشاء ترجمة",back:"رجوع",uploadingVideo:"جارٍ تحميل الفيديو...",generatingSubtitles:"جاري تحميل الترجمة..."}},notFound:{title:"404 خطأ",description:"عذرا, هذه الصفحة غير موجودة"},backWhileCompiling:{header:"عذراََ",title:"لا يمكنك تحرير الفيديو أثناء عملية التصدير, الرجاء الإنتظار لحين تصدير مقطع الفيديو",goHome:"العودة الى الاستوديو"},smartClipper:{upload:{title:"أداة تقطيع الفيديوهات",description:"أداة فيديو مبتكرة تعمل بالذكاء الاصطناعي تعيد استخدام مقاطع الفيديو الطويلة وتحويلها إلى مقاطع قصيرة بنقرة واحدة."},generate:{title:"الإعدادات",form:{fields:{language:{label:"لغة الفيديو الأصلية",placeholder:"اللغة"},translateTo:{label:"ترجمة الى (إختياري)",placeholder:"بدون ترجمة - استخدم اللغة الأصلية .."},timeframe:{label:"المدة الزمنية للمعالجة"},clipLength:{label:"طول المقطع المفضل"},keywords:{label:"فلترة الموضوع حسب الكلمات الرئيسية (اختياري)",placeholder:"أضف كلمات رئيسية مفصولة بفواصل"}},actions:{back:"رجوع",submit:"انشاء المقاطع"}}},clips:{delete:{header:"حذف",title:"هل أنت متأكد أنك تريد حذف هذا المقطع؟",success:{title:"لقد قمت بحذف المقطع الخاص بك بنجاح"}}},processing:"سنقوم باعلامك عبر البريد الإلكتروني بمجرد الانتهاء من المعالجة"},queueMessage:{you:"أنت رقم",inQueue:"في الطابور",title:"قم بترقية خطتك واستمتع بميزة أولوية التصدير",title1:"أو يمكنك تحرير مقاطع فيديو أخرى أثناء تصدير الفيديو الخاص بك"},textToVideo:{steps:{next:"التالي",back:"رجوع"},script:{title:"تحويل النص الى فيديو",videoAspectRatioTitle:"أبعاد الفيديو",videoAspectRatioSmallTitle:"",videoAspectRatioDesc1:"* 9:16 إنستجرام ريلز/ستوري يوتيوب شورتس و تيك توك ",videoAspectRatioDesc2:"* 16:9 فيديوهات يوتيوب",videoDurationTitle:"مدة الفيديو",scriptLanguageTitle:"لغة السيناريو",voiceoverGenderTitle:"التعليق الصوتي",videoThemeTitle:"نوع الفيديو",videoToneTitle:"أسلوب الفيديو",advancedSettings:"الإعدادات المتقدمة",videoIdeaTitle:"فكرة الفيديو",videoIdeaPlaceholder:"من هم بايبال مافيا؟",videoScriptPlaceholder:"ألصق النص الخاص بك ...",remainingCharacters:"الاحرف",videoIdeaPrefix:"",generateVideoButton:"إنشاء المشاهد",generateScript:"إنشاء النص",backgroundMusic:"الموسيقى",zoomInAndOut:"تأثيرات حركية",aiModule:"نموذج إنشاء الصور",backgroundMusicTooltip:"قم بإلغاء تحديد المربع إذا كنت ترغب في إضافة الموسيقى الشائعة باستخدام منصات الوسائط الاجتماعية المفضلة لديك.",zoomInAndOutTooltip:"حدد المربع إذا كنت تريد تأثيرات الحركة تكبير/تصغير لكل صورة تم إنشاؤها. (الميزة مدفوعة)",zoomInAndOutTooltipFree:"حدد المربع إذا كنت تريد تأثيرات الحركة تكبير/تصغير لكل صورة تم إنشاؤها.",partner:"التعليق الصوتي مدعوم من",durationEstimate:"مدة الفيديو المقدرة",edit:{generating:"جاري إنشاء النص",generatingSubTitle:"يرجى الانتظار بينما نقوم بإنشاء النص الخاص بك.",title:"مراجعة النص",reset:"إعادة النص الأصلي",fields:{hook:{label:"البداية",placeholder:"البداية",tooltip:"بداية الفيديو Ù
1‡ÙŠ ملخص ملفت للنظر في بداية الفيديو ليشوق المشاهدين بمتابعة الفيديو للنهاية."},body:{label:"المحتوى الرئيسي",placeholder:"المحتوى الرئيسي",tooltip:"المحتوى الرئيسي هي الجزء الأكبر بالفيديو و يكون بعد المقدمة و يعرض الفكرة الرئيسية بالفيديو."},conclusion:{label:"النهاية",placeholder:"النهاية",tooltip:"يلخص أهم النقاط التي تم تقديمها في الفيديو."}},resetAlert:{title:"هل أنت متأكد أنك تريد إرجاع النص الاصلي؟",actionText:"نعم"},chartCount:e=>"من ".concat(e," حرف"),loader:{generating:"جاري إنشاء النص ...",description:"قد يستغرق ذلك ما يصل إلى 3 دقائق. شكرا لصبرك!"}},tabs:{prompt:"فكرة الفيديو",script:"ألصق النص الخاص بك"},confirmation:{header:"هل أنت متأكد أنك تريد المتابعة إلى إنشاء الفيديو؟",title:"تبعًا للنص الأولي الذي تختاره، قد تكون مدة الفيديو حوالي ال",prompt:"النص الأولي:",script:"نص الفيديو:",properties:"خصائص الفيديو:"},voiceOverLanguageRequired:"الرجاء تحديد لغة السيناريو",usage:{title:"تكلفة الفيديو : ",disclaimer:"* الأسعار تتغير بناءً على اختيارك"},credits:e=>"".concat(e," نقطة"),visuals:{visualsSource:{title:"اختر المرئيات"},aiImages:{title:"نمط الصور"}},voiceOverSettings:{title:"التعليق الصوتي",gender:"نوع الصوت",male:"ذكر",female:"أنثى"},script:{title:"النص والصور"},imageStyle:{title:"نمط الصور"}},advancedAiModulePopup:{title:"أضف نقاط و إستخدم المزيد من خصايات إنشاء الصور المتقدمة",fast:"أسرع",quality:"جودة أعلى",accurate:"أكثر دقة",noWatermark:"بدون علامة مائية",cancel:"إلغاء",addMins:"إضافة نقاط"},generating:{title:"الفيديو القصير الخاص بك قيد الإنشاء...",info:"قد يستغرق وقت المعالجة ما يصل إلى دقيقتان لإنشاء المشاهد الخاص بك.",exportInfo:"نحن نحول النص الخاص بك إلى صور وصوت، ونجمع كل شيء بشكل متسلسل، وننهي الفيديو الخاص بك.",infoAction:"العودة الى الاستوديو",errors:{idea:{title:"عذرًا، قد تنتهك فكرة الفيديو سياسة المحتوى الخاصة بنا.",action:"جرب فكرة أخرى"}},processingVideo:"جاري معالجة الفيديو...",processingScenes:"جاري إنشاء المشاهد..."},download:{downlaodButton:"تحميل",share:"مشاركة",removeWatermark:"إزالة العلامة المائية",downloadMusicLicense:"تصريح إستخدام الموسيقى",createANewVideoButton:"إنشاء فيديو جديد",editVideo:"تعديل الفيديو",feedback:{title:"نحن نحب أن نسمع ملاحظاتك",description:"ملاحظاتك مهمة جدًا بالنسبة لنا لتحسين خدماتنا لتقديم أفضل تجربة لك!",success:"نحن نقدر ملاحظاتك. شكرًا لك!",form:{fields:{feedback:"اكتب ملاحظاتك..."},submit:"حفظ"}}},limitationPopup:{title:"لا يوجد لديك نقاط تكفي لإنشاء",description:"يرجى إعادة تعبئة حسابك لكي تتمكن من إنشاء المزيد من",addMinutes:"أضف نقاط",videos:"الفيديوهات.",images:"الصور.",voiceovers:"اصوات",inTitle:{videos:"الفيديو",images:"الصورة",voiceovers:"اصوات"}},editor:{sidebar:{scenes:{title:"المشاهد",back:"الرجوع",backToScene:"الرجوع",generalSettings:{animations:{title:"التأثيرات الحركية",tooltip:{title:"التأثيرات الحركية",description:"من خلال إلغاء تحديد هذه الخانة، ستقوم بتصدير الفيديو الخاص بك دون أي تحريكات مثل التكبير/التصغير."}},subtitles:{title:"النصوص",tooltip:{title:"النصوص",de
1scription:"من خلال إلغاء تحديد هذه الخانة، ستقوم بتصدير الفيديو الخاص بك دون أي نصوص."}},backgroundMusic:{title:"الموسيقى الخلفية"}},scene:{title:"مشهد",replaceImage:"تغيير الصورة",editScene:"تغيير المشهد",trim:"تعديل",upload:"إرفع صورة",scale:{fill:"تكبير",fit:"ملاءمة"},deletePopup:{header:"حذف",title:"هل أنت متأكد أنك تريد حذف هذه الصورة؟",success:{title:"لقد قمت بحذف الصورة الخاص بك بنجاح"}},settings:{title:"إعدادات المشهد",animation:{title:"نوع التأثيرات الحركية",none:"لا يوجد"}}},changeImage:{upload:{title:"رفع ملف"},aiImages:{title:"إنشاء",placeholder:"أدخل الإرشادات لإنشاء الصورة",back:"العودة إلى صور/مشاهد الذكاء الاصطناعي"},stock:{title:"المكتبة",images:"الصور",videos:"الفيديوهات",scenes:"المشاهد"}},music:{title:"لقد اخترنا صوتًا رائعًا لفيديوك!"}},texts:{title:"النص",tabs:{settings:"الإعدادات",effects:"التأثيرات",presets:"القوالب"}},settings:{title:"الإعدادات"},subtitles:{title:"الترجمة",voiceOver:{title:"التعليق الصوتي",regenerate:"إعادة إنشاء",freeUsage:e=>"لديك ".concat(e," إعادات مجانية للتعليق الصوتي."),confirmation:{title:"هل تريد إعادة إنشاء التعليق الصوتي؟",description:"سيتم استبدال التعليق الصوتي الحالي بالنص المحدث.",usage:(e,t)=>"رصيدك الحالي هو ".concat(e,". بعد التأكيد، سيكون رصيدك ").concat(t,"."),actionText:"إعادة إنشاء"}}},overlays:{title:"التأثيرات",opacity:{title:"الشفافية"},background:{title:"التأثيرات الخلفية"},animated:{title:"التأثيرات المتحركة"}}},export:"تصدير الفيديو"},disclaimer:"لا يمكننا التحكم في المحتوى الذي تم إنشاؤه. راجعه بعناية واستخدمه وفقًا لتقديرك.",scenes:{delete:{error:"لا يمكنك حذف المشهد الاخير",confirmation:{title:"هل أنت متأكد أنك تريد حذف هذا المشهد؟"}},split:{error:"لقد وصلت إلى الحد الأدنى لمدة المشهد"}}},textToScene:{title:"اداة انشاء المشاهد",textToScene:"نص إلى فيديو",imageToScene:"صورة إلى فيديو",usage:"تكلفة إنشاء المشهد =",usageShort:"تكلفة المشهد =",description:"إنشاء مشهد مدته 5 ثواني",form:{fields:{prompt:{label:"النص",placeholder:"ابدأ الكتابة هنا أو ألصق أي نص تريد تحويله إلى مشهد مليء بالحياة."},aspectRatio:{label:"أبعاد المشهد"},sceneDuration:{label:"مدة المشهد"},advancedSettings:{label:"الإعدادات المتقدمة",loop:"تكرار المشهد"}},imageUploader:{title:"اسحب وأسقط صورتك هنا أو ",browse:"تصفّح",title1:" لاختيار صورة",maxSize:"الحد الأقصى لحجم الملف: 16 ميجابايت",supportedMiemTypes:"الأنواع المدعومة: ",library:{title:"مكتبة الصور",import:"اختر من المكتبة",empty:"ليس لديك أي صور حتى الآن. قم بإنشاء صورة أدناه عن طريق كتابة موضوع بسيط."},swapFields:"تبديل الصور"},submit:"إنشاء فيديو"},modelSelector:{title:"نموذج الفيديو"},historyList:{title:"الفيديوهات التي تم إنشائها",empty:"لم يتم إنشاء أي فيديو حتى الآن!"},preview:{generateNew:"إنشاء مشهد جديد",download:"تحميل"},bottomNav:{settings:"إعدادات المشهد",history:"قائمة المشاهد"},failed:{title:"فشل في إنشاء الفيديو",description:"لم نتمكن من معالجة طلبك لأن الطلب يحتوي على كلمات غير مدعومة.",description1:"لقد تم استرداد رصيدك لهذا المشهد تلقائيًا. يرجى المحاولة مرة أخرى باستخدام نص مختلف.",action:"إنشاء فيديو جديد"},generatePrompt:"إنشاء وصف تلقائي",delete:{header:"حذف",title:"هل أنت متأكد أنك تريد حذف هذا الفيديو؟",success:"تم حذف الفيديو بنجاح"},header:{disclaimer:"* التكلفة تعتمد على اختياراتك"}},quoteToVideo:{title:"اقتباس إلى فيديو",cost:"تكلفة الفيديو",form:{fields:{quote:{label:"الاقتباس",placeholder:"اكتب اقتباسك هنا",remainingCharacters:"حرف"},author:{label:"الكاتب",placeholder:"اسم الكاتب",remainingCharacters:"حرف"},visualStyle:{label:"اختر المرئيات"}},submit:"إنشاء الفيديو"}}
1,textToImage:{title:"تحويل النصوص إلى صور",generate:"إنشاء الصورة",usage:"تكلفة إنشاء الصورة =",credits:e=>"".concat(e," نقطة"),form:{fields:{prompt:{label:"اكتب نصًا",placeholder:"ابدأ التخيل ..."},aspectRatio:{label:"حجم الصورة"},imageStyle:{label:"نمط الصورة"},superPrompt:{label:"تحسين النص (+10 نقاظ)",tooltip:"حدد هذا المربع لتحسين كتابة تلقائيًا للحصول على نتائج أفضل في توليد الصور, التكلفة ستزيد بمقدار",tooltip1:" 10 نقاظ."}}},historyList:{title:"الصور المولّدة",empty:"لم يتم إنشاء أي صور حتى الآن!"},bottomNav:{settings:"إعدادات الصورة",history:"قائمة الصور"}},textToSpeech:{title:"تحويل النصوص إلى صوت",generate:"إنشاء صوت",usage:"تكلفة إنشاء الصوت =",credits:e=>"".concat(e," نقطة"),form:{fields:{prompt:{label:"النص",placeholder:"ابدأ الكتابة هنا أو ألصق أي نص تريد تحويله إلى كلام مليء بالحياة.",maxCharacters:"حرف"}}},empty:{title:"لم يتم إنشاء أي صوت حتى الآن!"},historyList:{title:"الأصوات التي تم إنشاؤها",empty:"لم يتم إنشاء أي صوت حتى الآن!"},bottomNav:{settings:"إعدادات الصوت",history:"قائمة الأصوات"},disclaimer:"يرجى ملاحظة أن التعليقات الصوتية التي تم إنشاؤها بواسطة الذكاء الاصطناعي قد تحتوي على عيوب وأخطاء عرضية.",loading:"قد يستغرق هذا الأمر بضع دقائق إضافية، يرجى الإنتظار.",listHeader:{title:"عنوان الصوت",dateCreated:"تاريخ الإنشاء",duration:"المدة"},voiceoverDetails:{script:{title:"النص"}},deleteConfirmation:{header:"حذف",title:"هل أنت متأكد أنك تريد حذف هذا الصوت؟",success:"لقد قمت بحذف الصوت الخاص بك بنجاح"},feedback:{success:"نحن نقدر ملاحظاتك. شكرًا لك!"}},aiAvatars:{title:"شخصيات رقمية",header:{usage:"التكلفة =",disclaimer:"* تكلفة تعتمد على عدد أحرف النص"},script:{title:"النص",placeholder:"ألصق النص الخاص بك .."},sampleAvatars:"أو اختر شخصية رقمية جاهزة",voiceover:"جنس التعليق الصوتي",videoSettings:{title:"إعدادات الفيديو",dimension:{title:"أبعاد الفيديو"},captionStyles:{title:"أنماط التسمية"},backgroundStyle:{title:"أنماط الخلفية"}},avatar:{title:"اختر روبوت"},language:{title:"لغة النص",placeholder:"اختر لغة"},selectVoiceover:{title:"اختر صوت التعليق",none:"لم يتم الاختيار بعد"},uploadImage:{title:"رفع صورة",dragBox:"اسحب وأسقط صورتك هنا أو ",browse:"تصفّح",chooseFile:"لاختيار صورة",supportedMiemTypes:"الأنواع المدعومة:",disclaimer:"يجب أن تتوافق صورتك مع هذه القواعد.",seeDetails:"عرض التفاصيل",failed:"فشل إنشاء الصورة الرمزية. جرّب صورة أخرى.",maxSizeMessage:"الملف أكبر من 50 ميغا بايت"},uploadVoiceover:{title:"رفع تعليق صوتي",dragBox:"اسحب وأسقط تعليقك الصوتي هنا أو ",browse:"تصفّح",chooseFile:"لاختيار تعليق صوتي",supportedMiemTypes:"الأنواع المدعومة: MP3, WAV",minDurationMessage:"الملف أصغر من ثانية واحدة",maxDurationMessage:"الملف أطول من 10 دقائق",sizeLimitMessage:"الملف أكبر من 50 ميغا بايت"},imageRequirementsPopup:{title:"متطلبات الصورة",reason:"صورتك التي قمت بتحميلها لا تفي بالمتطلبات، يُرجى المحاولة مرة أخرى بصورة مختلفة، وتأكد من اتباع الإرشادات التالية.",goodPhotos:"الصور المقبولة",badPhotos:"الصور غير المقبولة",description:"صور حديثة لك (بمفردك)، تتضمن مزيجًا من اللقطات القريبة وصور الجسم الكامل، بزوايا مختلفة وتعبيرات وجه متنوعة (ابتسامة، محايد، جدي)، وبملابس متنوعة.\nاحرص على أن تكون الصور عالية الدقة وتعكس مظهرك الحالي.",description1:"لا تُقبل الصور الجماعية، أو التي ترتدي فيها قبعة أو نظارات شمسية، أو التي تحتوي على حيوانات أليفة، أو التي تحتوي على فلاتر قوية، أو بجودة منخفضة، أو لقطات شاشة.\nتجنب الصور القديمة جدًا، أو المعدلة بشكل مبالغ فيه، أو التي لا تعكس شكلك الحالي."},avatarsForm:{name:{label:"الاسم"},gender:{label:"الجنس"},ethnicity:{label:"الإثنية"},age:{label:"العمر"},modal:{title:"شخصيتك الرقمية جاهزة!",description:"الآن، دعنا نُضف بعض التفاصيل لإضفاء الحيوية عليها",save:"الاستمرار مع الشخصية",generateNewAvatar:"إنشاء شخصية رقمية جديدة"}},chooseAvatar:{myAvatars:"شخصياتي الرقمية",sampleAvatars:"شخصيات رقمية جاهزة",n
1one:"لم يتم الاختيار بعد"},review:{title:"مراجعة العناصر المرفوعة",description:"تم التأكد من الصورة وهي جاهزة لإستخدامها كشخصية رقمية",failed:"رفع صورة جديدة",reCrop:"إعادة قص الصورة",failedDescription:"لم يتم قبول الصورة. يرجى رفع صورة تتوافق مع هذه القواعد."},generating:{title:"شخصيتك الرقمية قيد الإنشاء...",exportInfo:"قد يستغرق هذا بضع دقائق إضافية، يرجى الإنتظار.",failed:{title:"لم يتم إنشاء الشخصية الرقمية",description:"لم يتم إنشاء الشخصية رقمية، يرجى إعادة المحاولة مرة أخرى بصورة أخرى.",action:"إنشاء شخصية رقمية جديدة"}},customAvatarGenPopup:{background:{suggestions:"اقتراحات",placeholder:"وصف الخلفية أو المشهد لشخصيتك (مثال: 'بيئة مكتب مع الضوء المتعدد، 'بيئة طبيعية خارجية'، 'خلفية محايدة في المختبر')"},confirmation:{title:"هل أنت متأكد أنك تريد المتابعة لإنشاء الشخصية الرقمية؟",properties:"خصائص الشخصية الرقمية:",hijab:"حجاب"},failed:{title:"فشل إنشاء الشخصية الرقمية",description:"لم يتم إنشاء الشخصية الرقمية، يرجى إعادة المحاولة مرة أخرى، سيتم إعادة تسديد النقاط.",action:"إنشاء شخصية رقمية جديدة"}}},maintenancePage:{title:"عذراً، محرر الصور بالذكاء الاصطناعي قيد الصيانة",description:"نقوم حاليًا بإجراء صيانة مجدولة. يرجى التحقق مرة أخرى قريبًا!"},onBoarding:{skip:"تخطي"},aiImagesStudio:{imagePopup:{prompt:"النص",promptPrefix:"",copy:"نسخ",enhancedPrompt:"النص محسّن",animateTooltip:"تريد جعل الصورة مفعمه بالحيوية؟",unlock:"أطلق العنان للإمكانات الكاملة لصورتك",animate:"تحريك",edit:"تحرير",upscale:"تحسين",model:"النموذج:"},delete:{header:"حذف",title:"هل أنت متأكد أنك تريد حذف هذه الصورة؟",success:"تم حذف الصورة بنجاح"}},aiVideoStudio:{videoPopup:{prompt:"نص الفيديو:",properties:"خصائص الفيديو:",promptPrefix:"",copy:"نسخ",emptyPrompt:"لم يتم إدخال نص",quote:"الإقتباس:",videoModel:"نموذج الفيديو:",voiceoverModel:"نموذج التعليق الصوتي:",negativePrompt:"النص التوجيهي السلبي:"}},createImage:{uploadModal:{upload:{title:"تحميل الصورة / الفيديو",dragBox:"قم بسحب وإسقاط الصورة او الفيديو هنا",or:" أو ",browse:"تصفّح ",dragBox1:"",info:"",upload:"تحميل"},size:{title:"الحد الأقصى لحجم الصورة : ",title1:"5 ميغا بايت",message:"هذا الملف أكبر من 5 ميغا بايت",messageDynamic:e=>"هذا الملف أكبر من ".concat(e," ميغا بايت"),videoMessage:"هذا الملف أكبر من 150 ميغا بايت"},duration:{title:"الحد الأقصى لمدة الفيديو : ",title1:"٥ دقائق",message:"هذا الملف أطول من 5 دقائق"}}},creditsBalance:{title:"رصيد النقاط",totalCreditsAvailable:"إجمالي النقاط المتاحة",planCreditsLeft:{title:"الرصيد الشهري المتبقي",tooltip:"الرصيد الشهري المتبقي، متاح حتى نهاية الشهر، ويتم إعادة تعيينه شهريًا"},topUpCreditsLeft:{title:"الرصيد المشتراة المتبقي",tooltip:"النقاط المتبقية المتاحة للاستخدام، والتي تمثل رصيدك غير المستخدم من النقاط المشتراة."},monthlyCredits:"رصيد النقاط الشهرية",purchasedCredits:"رصيد النقاط المشتراة",planCreditsSubtitle:"تتجدد في كل دورة فوترة",purchasedCreditsSubtitle:"من المشتريات لمرة واحدة",expires
1InDays:e=>"تنتهي صلاحيتها بعد ".concat(e," يومًا")},changePlan:{current:"نقاط الخطة الحالية:",tabs:{changeCurrentPlan:{title:"تغيير الخطة الحالية",tooltip:"سيتم إعادة تعيين النقاط في نهاية الإشتراك",description:"حدد أدناه عدد النقاط التي تريدها في الخطة الجديدة:"},oneTimePayment:{title:"دفع لمرة واحدة",tooltip:"سيتم تجديد النقاط",description:"حدد أدناه عدد النقاط التي تريد إضافتها إلى رصيدك:"}}},reactivateFlow:{title:"يبدو أن اشتراكك متوقف حاليًا. لا تقلق، إعادة التفعيل سهلة ولن تتحمل أي تكاليف.",action:"إعادة التفعيل"},yearlyDisclaimer:{title:"هل ترغب في ترقية الخطة الحالية؟ اتصل بفريق الدعم الخاص بنا للمساعدة. ما عليك سوى التواصل معنا. نحن هنا لمساعدتك في تحسين تجربة اشتراكك!"},sharePopup:{confirmation:{title:"هل أنت متأكد أنك تريد مشاركة الفيديو الخاص بك؟",description:"يمكن فقط للأشخاص الذين لديهم الرابط الوصول إلى الفيديو"},title:"مشاركة الرابط",description:"انسخ الرابط أدناه لمشاركة الفيديو الخاص بك"},effects:{title:"المؤثرات الحركية"},highlightEffects:{title:"تأثيرات التحديد"},verification:{title:"التحقق من البريد الإلكتروني",description:"تم إرسال رمز التحقق إلى بريدك الإلكتروني ",change:"تغيير",didntReceive:"لم تستلم الرمز؟",resend:"إعادة إرسال",resendSuccess:"تم إعادة إرسال الرمز بنجاح",verify:"التحقق",checkSpam:"لم تتلق البريد الإلكتروني؟ يرجى التحقق من مجلد الرسائل غير المرغوب فيها وإضافتنا إلى قائمة المرسلين الآمنين لديك."},trimPopup:{title:"قم بقص الفيديو",cancel:"إلغاء",selectVideo:"إختر الفيديو"},invalidLink:{title:"هذا الرابط غير صالح",description:"يبدو أن رابط الفيديو الذي قدمته غير صالح. تحقق مرة أخرى."},creditsSysterm:{title:"نظام النقاط",description:"نظام النقاط هو نظام يستخدم لشراء الخدمات المختلفة",tooltip:e=>"تعود النقاط إلى ".concat(e," كل شهر ابتداءً من تاريخ اشتراكك. قم بشراء المزيد أو الترقية حسب الحاجة.")},serviceDown:{title:e=>"أداة إنشاء ".concat(e," غير متاحة مؤقتا"),description:e=>"لم نتمكن من إنشاء ".concat(e," الخاص بك الآن. يرجى المحاولة مرة أخرى قريبًا"),action:"العودة إلى الاستوديو",features:{image_generation:{title:"الصور",description:"الصورة"},voice_over_generation:{title:"التعليق الصوتي",description:"التعليق الصوتي"},text_to_video_script_generation:{title:"الفيديو",description:"النص"},text_to_video_scene_generation:{title:"الفيديو",description:"الفيديو"},scene_generation_image_to_video:{title:"الفيديو",description:"الفيديو"},scene_generation_text_to_video:{title:"الفيديو",description:"الفيديو"},transcription:{title:"الترجمة",description:"الترجمة"},quote_to_video:{title:"الفيديو",description:"الفيديو"},avatar_photo_generation:{title:"إنشاء الشخصية",description:"الشخصية"},avatar_video_generation:{title:"إنشاء الشخصية",description:"الشخصية"},image_editor:{title:"محرّر الصور",description:"الصورة"},image_upscaler:{title:"تحسين الصورة",description:"الصورة"}},modelDown:{title:e=>"".concat(e," غير متاح مؤقتا"),description:e=>"النموذج ".concat(e," غير متاح حاليا. يرجى التبديل إلى نموذج آخر للمتابعة"),back:"العودة إلى الاستوديو",switch:"تبديل النموذج"},providerDown:{title:"النموذج معطل",description:"النموذج غير متاح حاليا. يرجى المحاولة مرة أخرى قريبًا",back:"العودة إلى الاستوديو",switch:"تبديل النموذج"},templateExecutionFailure:{title:"القالب غير متاح",description:"لا يمكن إنشاء الوسائط الخاصة بك في الوقت الحالي. تعطل محركنا وسيتم توفيره قريبًا.",back:"العودة إلى القوالب"}},videosOptionsPopup:{title:"فيديوهات قصيرة"},serviceDownPopup:{title:"الخدمة معطلة",description:"تخضع ميزة إنشاء النصوص باستخدام الذكاء الاصطناعي (لأفكار الفيديو) للصيانة حاليًا وستكون متاحة قريبًا.",description1:" ميزة الصاق النص الخاص بك متاحة."},aspectRatioAlertPopup:{title:"أبعاد الصورة غير صالحة",description:e=>"الصورة التي تم تحميلها لا تتوافق مع الأبعاد المطلوبة. يرجى التأكد من أن عرض/ارتفاع الصورة لا يتجاوز ".concat(e," بكسل."),description1:e=>"الصورة التي تم تحميلها لا تتوافق مع الأبعاد المطلوبة. يرجى التأكد من أن عرض/ارتفاع الصورة لا يقل عن ".concat(e," بكسل.")},faqs:{title:"الأسئلة الشائعة"}
1,discoverMore:{title:"اكتشف المزيد من أدوات الذكاء الاصطناعي"},imageCropper:{actions:{crop:"قص",cancel:"إلغاء"}},creditsRolloverPopup:{title:"تم إطلاق ميزة ترحيل النقاط!",description:"يتم الآن ترحيل النقاط غير المستخدمة من شهر إلى آخر إلى أجل غير مسمى، ويتم إعطاؤها الأولوية دائمًا قبل نقاط باقتك الشهرية العادية أو أي رصيد إضافي. حافظ على اشتراكك نشطًا للحفاظ على رصيدك المرحل - لا داعي لاتخاذ أي إجراء!"},annualPlansPopup:{title:"الباقات السنوية",discountAmount:"٢٠٪",descriptionPrefix:"احصل على خصم ",descriptionSuffix:" مع باقاتنا السنوية.",descriptionSecondary:"اطّلع على الباقات الجديدة وشروط النقاط المحدثة.",cta:"ترقية الباقة"},musicRemovalConfirmation:{header:"سيتم تصدير الفيديو بدون صوت",title:"هذه الموسيقى هي عرض مسبق ولن يتم تضمينها في تصديرك بسبب القيود الترخيصية. يمكنك إضافة هذه الموسيقى المعينة أو أي آخرى من تطبيق التواصل الاجتماعي الخاص بك"},deleteAccount:{header:"حذف الحساب",title:"هل أنت متأكد أنك تريد حذف حسابك؟",description:"هذا الإجراء غير قابل للتراجع وسيؤدي إلى حذف حسابك و جميع البيانات المرتبطة به بالكامل",action:"حذف الحساب",permanentAction:"حذف الحساب نهائيًا"},useCases:{title:"ما الذي يقوم المستخدمون بإنشاءه"},aiImageEditor:{newProject:"مشروع جديد",newProjectShort:"جديد",prompt:{label:"وصف التعديل",placeholder:"اشرح ما تريد تغييره..."},deleteConfirmation:{header:"هل أنت متأكد أنك تريد حذف هذه الجلسة؟",title:"سيتم حذف الصورة المرفوعة وجميع التعديلات المنجزة خلال هذه الجلسة. لن تتمكن من استرجاعها.",title2:"سيؤدي ذلك إلى حذف جميع التعديلات التي تم إجراؤها خلال هذه الجلسة بشكل نهائي. ستبقى الصورة المستوردة من مكتبتك دون تغيير. لن تتمكن من استعادة التعديلات المحذوفة.",success:"تم حذف الجلسة بنجاح"},editVersionActions:{download:"تحميل",downloading:"جاري التحميل...",zoomIn:"تكبير",zoomOut:"تصغير",fitToCanvas:"ملء اللوحة",animate:"تحريك",upscale:"تكبير",copyLink:"نسخ الرابط",removeImage:"حذف الصورة"},editVersion:{failed:"فشل",failedDescription:"عذرًا، حدث خطأ وفشل الطلب. من فضلك حاول مرة أخرى"},newSession:{title:"محرّر الصور"},uploadImage:{title:"تحميل صورة أو اختر واحدة من مكتبتك",supportedMiemTypes:"يدعم: ",import:{library:"مكتبتك",upload:"تحميل"},maxFilesUpTo:"* أضف حتى ",maxFilesUpToValue:"صور"}},styleExamplesCarousel:{apply:"تطبيق",ariaLabel:"أمثلة الأنماط"},inspirationalGallery:{title:"المعرض",backToGallery:"العودة إلى المعرض",tools:{[o.m.AI_SHORTS]:"فيديوهات قصيرة",[o.m.TEXT_TO_SCENE]:"نص إلى فيديو",[o.m.IMAGE_TO_SCENE]:"صورة إلى فيديو",[o.m.QUOTE_TO_VIDEO]:"اقتباس إلى فيديو",[o.m.AI_AVATAR]:"شخصيات رقمية",[o.m.TEXT_TO_IMAGE]:"نص إلى صورة",[o.m.IMAGE_EDITOR]:"محرّر الصور"},details:{image:"",video:"",tool:"الأداة",prompt:"النص",model:"النموذج:",properties:"الخصائص:",script:"النص",quote:"الاقتباس",usePreset:"استخدام الإعدادات"}},sceneGen:{imageToScene:{newSession:{title:"صورة إلى فيديو"}},textToScene:{newSession:{title:"نص إلى فيديو"}},actions:{generate:"إنشاء",loading:"يتم إنشاء..."},form:{imageUploader:{selectImages:"اختر الصورة",upload:"تحميل"}},selectModelPopup:{i2vTitle:"اختر نموذجًا",t2vTitle:"اختر نموذجًا",imageGenTitle:"اختر نموذجًا",modelsTitle:"النماذج",button:"استخدام النموذج",audioTooltip:"يدعم هذا النموذج الصوت.",searchPlaceholder:"ابحث عن نموذج ...",newBadge:"جديد",noResults:"لا توجد نماذج مطابقة لبحثك.",speedTooltip:"السرعة",qualityTooltip:"الجودة",startFrameBadge:"إطار البداية",endFrameBadge:"إطار النهاية"},sceneItemCard:{reuseParameters:"إعادة استخدام الخصائص",copyPrompt:"نسخ النص",download:"تحميل"}},models:{modelsSelector:{model:"النموذج",viewAllModels:"عرض جميع النماذج"}},sessions:{title:"الجلسات",videoOptions:"خيارات الفيديو",imageOptions:"خيارات الصورة",deleteSession:{sceneGen:{header:"هل أنت متأكد أنك تريد حذف هذه الجلسة؟",t
1itle:"سيتم حذف جميع الفيديوهات المنجزة خلال هذه الجلسة. لن تتمكن من استرجاعها",success:"تم حذف الجلسة بنجاح"},session:{header:"هل أنت متأكد أنك تريد حذف هذه الجلسة؟",title:"سيتم حذف الجلسة وجميع التعديلات المنجزة خلال هذه الجلسة. لن تتمكن من استرجاعها",success:"تم حذف الجلسة بنجاح"}},itemFailed:{title:"عذرًا، فشل هذا الطلب.",description:"يرجى المحاولة مرة أخرى أو تغيير النص أو مزود النموذج.",template:{title:"فشل في الإنشاء",description:"يرجى المحاولة مرة أخرى أو تغيير المدخلات.",reasons:{chargedForFailedJob:{title:"هل يتم خصم نقاط مقابل المهام الفاشلة؟",description:"لا، لن يتم خصم أي رصيد مقابل أي مهمة فاشلة."}}},reasons:{whyFailed:{title:"لماذا تفشل المهام؟",description:"لكل مزود نموذج توفر وقيود مختلفة. حاول استخدام مزود مختلف من خلال تغيير النموذج من الأعلى، أو عدل النص وتجنب استخدام الأسماء أو الإشارات إلى المواد المحمية بحقوق الطبع والنشر. لن يتم خصم أي رصيد مقابل المهام الفاشلة."},chargedForFailedJob:{title:"هل يتم خصم نقاط مقابل المهام الفاشلة؟",description:"لا، لن يتم خصم أي رصيد مقابل أي مهمة فاشلة."}}}},imageUpscaler:{actions:{upscale:"تحسين",loading:"يتم التحسين..."},newSession:{title:"تحسين الصورة"},editActions:{animate:"تحريك",download:"تحميل"},session:{failed:{title:"فشل",reason:"لم نتمكن من تحسين الصورة، سيتم إعادة تسديد النقاط. يرجى المحاولة مرة أخرى."},advancedSettings:"الإعدادات المتقدمة"}},imageGen:{newSession:{title:"إنشاء صورة"},actions:{generate:"إنشاء",loading:"يتم إنشاء..."},imageGenItemCard:{reuseParameters:"إعادة استخدام الخصائص",copyPrompt:"نسخ النص",download:"تحميل",retry:"إعادة المحاولة",upscale:"تحسين",animate:"تحريك",edit:"تعديل"},failed:{title:"لم يتم التعامل مع الصورة",description:"لم نتمكن من التعامل مع طلبك لأن النص يحتوي على كلمات غير مدعومة.",description1:"تم إعادة تسديد النقاط لهذه الصورة. يرجى المحاولة مرة أخرى بنص مختلف.",action:"إنشاء صورة جديدة"}},toolsNavigationDropdown:{video:"فيديو",image:"صورة",audio:"صوت",other:"مزامنة الشفاه"},promptBox:{warning:"أفادت شركة Google بوجود مشاكل تتعلق بشاشة سوداء في نموذجها Veo3 لتحويل الصور إلى فيديو."},templates:{outputType:"اختر نوع الإخراج",uploadFile:{title:"انقر لتحميل",dragBox:"اسحب وأفلت ملفك هنا",or:" أو ",browse:"تصفح ",dragBox1:" لاختيار ملف",supportedMiemTypes:"يدعم: ",removeFile:"حذف الملف"},generate:"إنشاء",generating:"الرجاء الإنتظار"},toolsShortcuts:{edit:"تعديل",upscale:"تكبير",animate:"تحريك",photoshoot:"جلسة تصوير المنتج"},productPhotoshoot:{title:"جلسة تصوير المنتج",history:"السجل",header:{breadcrumbApps:"التطبيقات"},upload:{uploading:"جارٍ الرفع...",dragAndDrop:"قم بسحب وإسقاط صورتك هنا أو",browse:"تصفح",toChoose:"لاختيار صورة",supportedFormats:"(يدعم: PNG, JPG, JPEG, WEBP)",uploadFailed:"فشل الرفع. يرجى المحاولة مرة أخرى."},imagePreview:{altText:"المنتج المرفوع",change:"تغيير"},resultViewer:{noOutput:"لا يوجد مخرجات متاحة",unableToLoad:"تعذر تحميل الصورة",altText:e=>"نتيجة التصوير ".concat(e)},actions:{generating:"جارٍ الإنشاء ...",generateShots:"إنشاء لقطات",downloading:"جارٍ التحميل...",download:"تحميل",downloadWebImage:"تحميل صورة الويب (WEBP)",downloadWebImageDesc:"مثالي للمواقع الإلكترونية",downloadFullQuality:"تحميل الجودة الكاملة (PNG)",downloadFullQualityDesc:"الجودة الأفضل للتعديل أو الطباعة",edit:"تعديل",createNew:"إنشاء جلسة تصوير جديدة",new:"جديد",errorMessage:"حدث خطأ ما. يرجى المحاولة مرة أخرى."},dimensions:{title:"اختر الأبعاد",subtitle:"للإخراج النهائي"},instructions:{step1Title:"تحميل الصورة",step1Description:"قم بتحميل المنتج الذي تريد إنشاء صور له",step2Title:"إنشاء 8 لقطات",
1step2Description:"حمّل 8 صور جاهزة للاستخدام بأنماط ومشاهد مختلفة.",step3Title:"إنشاء فيديو ترويجي",step3Description:"سنختار أفضل الصور وننشئ الفيديو الخاص بك."},outputs:{altText:e=>"المخرج ".concat(e),generatedShots:"اللقطات المولدة",createProductVideo:"إنشاء فيديو ترويجي",downloadAll:"تنزيل الكل"},promo:{title:"إنشاء فيديو ترويجي",selectionTitle:"وضع اختيار الفيديو",selectionDescription:"حدد 5 من اللقطات التي تم إنشاؤها أدناه\nلتحركيها في الفيديو الترويجي",selectShotsTitle:"حدد 5 لقطات لتحريكها في مقطع فيديو",selectMusicTitle:"اختر موسيقى الخلفية",backgroundMusic:"الخلفية الموسيقية",playPreview:"تشغيل",pausePreview:"إيقاف",generatingTitle:"جارٍ إنشاء الفيديو الترويجي",generatingDescription:"نقوم بتحويل اللقطات المختارة إلى فيديو ترويجي قصير. قد يستغرق ذلك ما يصل إلى دقيقة واحدة.",readyTitle:"الفيديو الترويجي جاهز",readyFallback:"تم إنشاء الفيديو الترويجي الخاص بك.",failedTitle:"فشل إنشاء الفيديو الترويجي",failedDescription:"تعذّر علينا إنشاء الفيديو الترويجي. يرجى المحاولة مرة أخرى.",back:"رجوع",generateButton:"إنشاء الفيديو",create:"إنشاء",createNewVideo:"إنشاء فيديو جديد",downloadVideo:"تنزيل الفيديو"}},aiInfluencer:{breadcrumbApps:"التطبيقات",buildYourInfluencer:"إنشاء شخصيتك المؤثرة",new:"جديد",history:"السجل",baseProfile:"الملف الشخصي",physicalFeatures:"السمات الجسدية",styleDetails:"تفاصيل الأسلوب",selectAtLeastOne:"اختر خيارا واحدا على الاقل للمتابعة",next:"التالي",back:"رجوع",generate:"إنشاء",generating:"جاري الإنشاء...",generateLooks:"إنشاء الإطلالات",edit:"تعديل",animate:"تحريك",speak:"تحدث",dressUp:"تلبيس",tryOnOutfits:"تجربة الأزياء",comingSoon:"قريبا",influencerName:"اسم المؤثر",save:"حفظ",generationFailed:"فشل الإنشاء",generationFailedDesc:"حدث خطأ أثناء إنشاء المؤثر الرقمي. يرجى المحاولة مرة أخرى.",tryAgain:"حاول مرة أخرى",emptyStateLine1:"شخصيتك المؤثرة الخاصة بك ستظهر هنا",emptyStateLine2:"ابدأ تصميمها وبنائها من الصفر",emptyStateLine3:" ",influencerLooks:"إطلالات المؤثر",generatedLooks:"الإطلالات المنشأة",loading:"جاري التحميل...",noLooksYet:"لا توجد إطلالات منشأة بعد.",noLooksDesc:"ارفع صورة المنتج أعلاه لإنشاء أول إطلالة.",uploadProductImage:"رفع صورة المنتج",tapToUploadProductImage:"اضغط لرفع صورة المنتج",uploading:"جاري الرفع...",promptOptional:"الوصف (اختياري)",promptPlaceholder:"مثال: اجعلها تمسك بزجاجة العطر",generateLook:"إنشاء إطلالة",generatingLook:"جاري إنشاء الإطلالة…",generateLookFailed:"تعذر إنشاء الإطلالة.",fetchLooksFailed:"تعذر تحميل الإطلالات.",lookStatusCheckFailed:"تعذر التحقق من حالة الإطلالة.",selectLookFirst:"يرجى اختيار إطلالة للإنشاء منها.",selectAtLeastOneField:"يرجى إدخال وصف أو اختيار بيئة أو أسلوب تصوير أو زاوية كاميرا.",describeChange:"قم بوصف ما تريد تغييره...",environment:"البيئة",shotStyle:"أسلوب التصوير",background:"الخلفية",poses:"الوضعيات",cameraAngle:"زاوية الكاميرا",optionalSection:" (اختياري)",productImageAlt:"صورة المنتج",uploadProductImageAlt:"رفع صورة المنتج",styleReferenceImageAlt:"صورة مرجعية للأسلوب",uploadStyleReferenceAlt:"رفع مرجع أسلوب",customBackgroun
1dImageAlt:"معاينة الخلفية المخصصة",uploadFailed:"فشل الرفع. يرجى المحاولة مرة أخرى.",renameInfluencer:"إعادة تسمية المؤثر",influencerNamePlaceholder:"اسم المؤثر",cancel:"إلغاء",close:"إغلاق",download:"تحميل",regenerate:"إعادة الإنشاء",rename:"إعادة تسمية",editAttributes:"تعديل الخصائص",delete:"حذف",newInfluencer:"مؤثر جديد",generatingCharacter:"يتم إنشاء الشخصية، قد يستغرق ذلك حتى <span class='font-bold'>2 دقيقة</span>",actions:"الإجراءات",nationality:"الجنسية",selectNationalityForTraditional:"اختر جنسية لتفعيل الخيار التقليدي.",headCoveringOmittedForAttire:"يتم تجاهل غطاء الرأس لملابس الطبيب والطاهي."},virtualTryOn:{title:"تجربة الأزياء",header:{breadcrumbApps:"التطبيقات"},sessions:"الجلسات",new:"جديد",showHistory:"الجلسات السابقة",newSession:"جلسة جديدة",next:"التالي",modelSelection:{chooseModel:"اختر عارض أزياء",chooseTheModel:"اختر عارض أزياء",male:"ذكر",female:"أنثى",uploadModelImage:"رفع صورة",yourGallery:"معرضك",uploadHint:"شخص واحد، كامل الجسم، والوجه واضح",or:"أو",changeModel:"تغيير",continue:"متابعة",creatingModelFromImage:"جارٍ إنشاء الموديل… قد يستغرق ذلك لحظات."},configPanel:{createLooks:"إنشاء الإطلالات",clothingItems:"الملابس",background:"الخلفية",poses:"الوضعيات",optional:"(اختياري)"},upload:{dragAndDrop:"قم بإسقاط صورك هنا أو ",browse:"تصفح",toChoose:"لاختيار صورة",supportedFormats:"(يدعم: PNG, JPG, JPEG, WEBP)"},actions:{generate:"إنشاء",generating:"جارٍ الإنشاء...",download:"تنزيل",animate:"تحريك",generatingDescription:"قد يستغرق إنشاء الصورة ما يصل إلى <span class='font-bold'>دقيقتين</span>",generationFailedDesc:"حدث خطأ أثناء إنشاء التجربة الافتراضية. يرجى المحاولة مرة أخرى.",downloading:"جارٍ التحميل..."},instructions:{step1Title:"اختر عارضة أزياء",step1Desc:"اختر عارضة أزياء جاهزة أو قم برفع صورة لشخص من اختيارك لاستخدامه",step2Title:"قم بتحميل قطع الملابس الخاصة بك",step2Desc:"قم بتحميل صور لقطع الملابس التي تريد تجربتها",step3Title:"إنشاء صورة جديدة",step3Desc:"يتم إنشاء صورة جديدة تظهر عارضة الأزياء وهي ترتدي قطع الملابس التي قمت بتحميلها"}},generationProcess:{generating:(e,t)=>"إنشاء ".concat("image"===e?"صورة":"video"===e?"فيديو":"audio"===e?"صوت":"product_photoshoot"===e?"لقطات":"virtual_try_on"===e?"تجربة":"مزيج")+' قد يستغرق ذلك <span class="font-bold text-ph-color">'.concat(t," دقيقة.</span>"),pleaseWait:"الرجاء الإنتظار أو يمكنك إنشاء شيء آخر في الوقت الذي يستغرقه الانتظار.",statusLabels:{pending:"في قائمة الانتظار",inqueue:"في قائمة الانتظار",running:"في قائمة الانتظار",processing:"قيد المعالجة",completed:"مكتمل",failed:"فشل"}},ugcVideo:{heroDiscountOff:"خصم",heroDiscountDaysLeft:e=>1===e?"يوم متبقي":"أيام متبقية",title:"إنشاء فيديو UGC",breadcrumbApps:"التطبيقات",steps:{category:"نوع المحتوى",productInfo:"معلومات المنتج",serviceInfo:"معلومات الخدمة",subjectInfo:"معلومات الموضوع",language:"اللغة و اللهجات",character:"الشخصية",location:"اختر مكان الفيديو",script:"نص الفيديو",summary:"معلومات الفيديو"},category:{physical_products:"المنتجات الملموسة",physical_products_desc:"مستحضرات التجميل والإلكترونيات والسلع المادية",fashion_accessories:"الأزياء والإكسسوارات",fashion_accessories_desc:"الملابس والمجوهرات والحقائب والأجهزة القابلة للارتداء",packaged_goods:"المنتجات المعبأة",packaged_goods_desc:"الأطعمة والوجبات الخفيفة والمشروبات",software:"البرمجيات",software_desc:"SaaS والتطبيقات والألعاب الإلكترونية والأدوات الرقمية",service_providers:"خدمات وصنّاع المحتوى",service_providers_desc:"أطباء ومحامون واستشاريون ومدربون ومعلمون ومبدعون متخصصون",subject_matter_experts:"الخبراء وصنّاع المحتوى",subject_matter_experts_desc:"أطباء ومحامون واستشاريون ومدربون ومعلمون ومبدعون متخصصون"},language:{arabic:"العربية",english:"الإنجليزية",french:"الفرنسية",spanish:"الأسبانية",turkish:"التركية"},location:{office:"مكتب",living_room:"غرفة معيشة",bedroom:"غرفة نوم",kitchen:"مطبخ",bathroom:"حمام",car:"سيارة",restaurant:"مطعم",podcast_studio:"استوديو بودكاست",airport:"مطار",other:"آخر"},dialect:{standard_arabic:"العربية الفصحى",najdi:"النجدية",emirati:"الإماراتية",egyptian:"المصرية",jordanian:"الأردنية",kuwaiti:"الكويتية",omani:"العُمانية",iraqi:"العراقية",qatari:"القطرية",bahraini:"البحرينية",syrian:"السورية",lebanese:"اللبنانية",palestinian:"الفلسطينية",moroccan:"المغربية",tunisian:"التونسية",algerian:"الجزائرية",
1yemeni:"اليمنية",american:"الأمريكية",british:"البريطانية",scottish:"الاسكتلندية",irish:"الأيرلندية",australian:"الأسترالية",middle_eastern:"الشرق أوسطية",indian:"الهندية"},placeholders:{brandName:"دار الطيب",productName:"عطر ليالي الشرق",companyName:"عطر ليالي الشرق",productDescription:"عطر شرقي فاخر بنفحات العود والعنبر والمسك الغنية، مصمم ليمنحك رائحة أنيقة تدوم طويلاً.",topicDescription:"اشرح كيف تساعد خدمتك العملاء على توفير الوقت.",targetAudience:"الرجال الذين تتراوح أعمارهم بين 25 و45 عامًا والذين يقدرون العطور العربية المتميزة",offer:"اشتري 1 واحصل على 1 مجانًا أو خصم 20%"},fields:{brandName:"اسم العلامة التجارية",productName:"اسم المنتج",companyName:"اسم الشركة",productDescription:"وصف المنتج",topicDescription:"وصف موضوع الفيديو",targetAudience:"الجمهور المستهدف",offer:"العرض الترويجي"},wizard:{stepLabel:"الخطوة",stepWithCode:e=>"الخطوة ".concat(e),stepProgress:(e,t)=>"الخطوة ".concat(e,"/").concat(t),currentStep:"الخطوة الحالية",back:"الرجوع",next:"التالي",saving:"جارٍ الحفظ…",submitting:"جارٍ الإرسال…",generateCta:"إنشاء الفيديو ({credits} رصيد)",generate:"إنشاء المشاهد",pickDialect:"اختر اللهجة",videoProperties:"تفاصيل الفيديو",scriptPreview:"نص الفيديو",summaryCategory:"نوع المحتوى",summaryLanguageDialect:"اللغة واللهجة",summaryLanguage:"اللغة",summaryLocation:"بيئة الفيديو",summaryCustomLocation:"صورة مرجعية مخصصة",summaryCost:"التكلفة",summaryCredits:"رصيد",summaryBalance:"رصيدك",summaryDelivery:"التسليم خلال {hours} ساعة بعد الإرسال.",summaryInsufficientCredits:"تحتاج إلى المزيد من الرصيد لإنشاء هذا الفيديو.",banner:"سيكون فيديو UGC جاهزاً خلال {hours} ساعة. سنقوم بإبلاغك عبر البريد الإلكتروني فور الانتهاء.",bannerMobile:"سيكون فيديو UGC جاهزاً خلال {hours} ساعة. سنقوم بإبلاغك عبر البريد الإلكتروني فور الانتهاء.",steps:["نوع المحتوى","تفاصيل المنتج","اختر شخصية","اللغة واللهجات","بيئة التصوير","نص الفيديو","إنشاء المشاهد"],loading:"جارٍ تحميل المعالج…",draft:"مسودة",processing:"قيد المعالجة",processingSubmittedTitle:"تم إرسال طلبك!",processingSubmittedDescription:"جارٍ معالجة فيديو UGC الخاص بك. قد يستغرق التوليد حتى {hours} ساعة، وسنرسل لك إشعارًا بالبريد الإلكتروني فور جاهزية الفيديو.",generation:{description:"جارٍ إنشاء فيديو UGC الخاص بك. سنرسل لك بريدًا إلكترونيًا عند الانتهاء.",scenesProgress:(e,t)=>"".concat(e," من ").concat(t," مشاهد"),creatingScene:"جاري إنشاء المشهد ...",waitingScene:"في الانتظار...",sceneFailed:"تعذر إنشاء المشهد",sceneFailedInline:"عذرا، لم نتمكن من إنشاء المشهد، قد يكون السبب أن المشهد يحتوي على محتوى غير مسموح بإنشائه.",retryScene:"إعادة المحاولة",retryingScene:"جارٍ إعادة المحاولة...",failedTitle:"عذرا، لم نتمكن من إنشاء المشاهد",failedTitleWithReasons:"عذرًا، لم نتمكن من إنشاء المشاهد. قد يكون السبب:",failedReasonKnownPerson:"المشهد يحتوي على شخص معروف لا يمكن استخدامه.",failedReasonProhibitedContent:"المشهد يحتوي على محتوى غير مسموح بإنشائه.",failedReasonImageProcessing:"الصورة المرفوعة يتعذّر معالجتها.",failedMessage:"حدثت مشكلة غير متوقعة أثناء عملية إنشاء المشاهد. أعد المحاولة مرة أخرى.",failedMessageCreditsRefunded:"حدثت مشكلة غير متوقعة أثناء عملية إنشاء المشاهد. تم استرداد رصيدك. أعد المحاولة مرة أخرى.",stages:{default:"جارٍ تجÙ
1‡ÙŠØ² الفيديو...",sceneBreakdown:"جارٍ تقسيم النص إلى مشاهد...",referenceImage:"يتم الآن تجهيز الصورة المرجعية ...",scenePrompts:"جارٍ إنشاء أوصاف المشاهد...",sceneGeneration:"جارٍ إنشاء مشاهد الفيديو..."},sceneRoles:{hook:"جذب/لفت الانتباه",pain:"التحدي",problem:"المشكلة",discovery:"الاكتشاف",step:"الخطوة",result:"النتيجة",cta:"دعوة لاتخاذ إجراء"}},createAnotherVideo:"إنشاء فيديو آخر",newVideo:"فيديو جديد",downloadVideo:"تحميل الفيديو",videoUnavailable:"الفيديو غير متاح",orFillManually:"أو أدخل البيانات يدويًا",importProduct:"استيراد البيانات",importData:"استيراد البيانات",importFromUrl:"استيراد البيانات",urlImportTitle:"ابدأ برابط المنتج فقط",urlImportDescription:"أضف رابط المنتج فقط، وسيتم تعبئة الصور وبيانات المنتج تلقائيًا، لتبدأ إنشاء الفيديو مباشرة.",importUrlPlaceholder:"https://example.com/product-page",addProductLinkPlaceholder:"أضف رابط منتجك",pasteUrl:"لصق الرابط",urlImportStarting:"جارٍ البدء…",urlImporting:"جارٍ الاستيراد…",urlImportStarted:"بدأ الاستيراد — ستظهر تفاصيل المنتج قريباً.",urlImportInProgress:"هناك استيراد قيد التنفيذ. انتظر حتى ينتهي أو املأ النموذج يدويًا.",urlImportPhase1:"جارٍ استيراد تفاصيل المنتج من الرابط — قد يستغرق ذلك لحظات.",urlImportFailedHint:"املأ النموذج يدويًا أو جرّب رابطاً مختلفاً.",urlImportSuccess:"تم استيراد بيانات المنتج بنجاح",productImagesLabel:"صور المنتج",maxProductImagesAllowed:"يُسمح بصورة منتج واحدة فقط.",relevantImagesLabel:"الصور ذات الصلة",productDetailsSection:"تفاصيل المنتج",additionalInfoSection:"المعلومات الإضافية",additionalInfoHint:"(أضف تفاصيل تساعد على تحسين الفيديو)",serviceDetailsSection:"تفاصيل الخدمة",subjectDetailsSection:"تفاصيل الموضوع",uploadProductImages:"إرفع صور منتج",dropzoneLead:"قم بسحب وإسقاط صورتك هنا أو ",browse:"تصفح",dropzoneTail:" لاختيار صورة",supportedFormats:"(يدعم: PNG، JPG، JPEG، WEBP)",uploading:"جارٍ الرفع…",generatingScript:"جاري إنشاء نص الفيديو … قد يستغرق ذلك ما يصل إلى دقيقتين",generatingScriptHtml:'جاري إنشاء نص الفيديو … قد يستغرق ذلك ما يصل إلى <span class="font-bold text-ph-color">دقيقتين</span>',scriptConfirmTitle:"تأكيد اختياراتك",scriptConfirmDescription:"راجع اختياراتك قبل أن نبدأ في إنشاء نص الفيديو.",scriptConfirmGenerate:"إنشاء نص الفيديو",scriptInQueue:"في قائمة الانتظار",scriptRegenerate:"إنشاء نص جديد",scriptReset:"إستعادة النص الأصلي",scriptSaveEdits:"حفظ التعديلات",scriptUndo:"تراجع",scriptRedo:"إعادة",scriptVideoDurationHint:"قد تتراوح مدة الفيديو بين 30-45 ثانية.",scriptSectionsRequired:"يجب تعبئة جميع حقول الافتتاحية والمحتوى ودعوة اتخاذ الإجراء.",scriptPastePlaceholder:"الصق أو اكتب النص الخاص بك هنا...",scriptTabs:{generated:"النص الذي تم إنشاؤه",edit:"تعديل",paste:"استخدم النص الخاص بك"},scriptSections:{hook:"الجملة الإفتتاحية",body:"المحتوى",cta:"الإجراء المطلوب"},characterTabs:{bith:"شخصيات جاهزة",user:"مكتبتي"},createAiInfluencer:"إنشاء شخصية",myCharacters:"شخصياتي",readyCharacters:"شخصيات جاهزة",showAll:"عرض الكل",viewCharacterSheet:"عرض صور الشخصية",hideCharacterSheet:"إخفاء صور الشخصية",buildYourInfluencer:"ابنِ شخصيتك",generateCharacter:"إنشاء الشخصية",characterEmpty:"ليس لديك أي شخصيات حالياً. يمكنك إنشاء شخصيتك الخاصة من خلال تطبيق المؤثر بالذكاء الاصطناعي.",sexFilter:{genderLabel:"الجنس",all:"الكل",male:"ذكر",female:"أنثى"},describeLocation:"صف الموقع",locationDescriptionPlaceholder:"عطر شرقي فاخر بنفحات العود والعنبر والمسك الغنية، مصمم ليمنحك رائحة أنيÙ
1‚Ø© تدوم طويلاً.",referenceImage:"صورة مرجعية (اختياري)"},editor:{sceneEditIntro:{badge:"جديد",title:"تحكّم في الفيديو بعد إنشائه",description:"شاهد الفيديو، عدّل نص الحوار، وأعد إنشاء أي مشهد بسهولة حتى تصل إلى النتيجة التي تريدها قبل تصدير الفيديو النهائي.",cta:"ابدأ التعديل"},play:"تشغيل",pause:"إيقاف",noPreview:"المعاينة غير متاحة",expandPanel:"توسيع اللوحة",openMenu:"فتح القائمة",fullscreenPreview:"معاينة ملء الشاشة",exitFullscreenPreview:"الخروج من معاينة ملء الشاشة",videoScenes:"مشاهد الفيديو",dialogueText:"نص الحوار",dialoguePlaceholder:"عدّل حوار المشهد...",dialogueCharacterCount:"{count} من {max} حرف",recreateScene:"إعادة إنشاء المشهد ({credits})",recreateSceneAction:"إعادة إنشاء المشهد",recreatingScene:"جاري إعادة إنشاء المشهد...",recreatingHint:"قد يستغرق ذلك حتى 5 دقائق.",exportVideo:"تصدير الفيديو",exportingVideo:"جاري التصدير...",exportStarted:"بدأ التصدير. سنبلغك عندما يكون جاهزاً.",exportCompleted:"الفيديو جاهز. يمكنك تنزيله من المكتبة.",exportFailed:"تعذر تصدير الفيديو. حاول مرة أخرى.",recreateSceneFailed:"تعذر إعادة إنشاء المشهد. حاول مرة أخرى.",retrySceneFailed:"تعذر إعادة محاولة المشهد. حاول مرة أخرى.",sceneRegenerationFailed:"تعذرت إعادة إنشاء هذا المشهد. حاول مرة أخرى.",restoreVersionFailed:"تعذرت استعادة هذا الإصدار. حاول مرة أخرى.",sceneHistory:"سجل المشهد",sceneVersionLabel:"الإصدار {number}",sceneVersionLabelActive:"الإصدار {number} (نشط)",restoreVersion:"استعادة هذا الإصدار",restoringVersion:"جاري الاستعادة...",smartCutLabel:"ازالة لحظات الصمت",smartCutEnabledHint:"مفعّل لهذا المشهد",smartCutDisabledHint:"غير مفعّل لهذا المشهد",smartCutProcessing:"جاري إزالة لحظات الصمت ...",smartCutFailed:"تعذر بدء ازالة لحظات الصمت. حاول مرة أخرى.",smartCutCompleted:"تم ازالة لحظات الصمت"},exportResult:{videoDetails:"تفاصيل الفيديو",videoScript:"نص الفيديو",contentType:"نوع المحتوى",languageDialect:"اللغة واللهجة",videoEnvironment:"بيئة الفيديو",character:"الشخصية",processingTitle:"الفيديو الخاص بك قيد الإنشاء ...",processingHintPrefix:"قد يستغرق ذلك ما يصل إلى ",processingHintDuration:"10 دقائق",backToStudio:"العودة إلى الاستوديو",createAnotherVideo:"إنشاء فيديو آخر",editVideo:"تعديل الفيديو",downloadVideo:"تحميل الفيديو",downloadingVideo:"جاري التحميل...",feedbackQuestion:"كيف كانت النتيجة؟",feedbackExcellent:"ممتازة",feedbackUnsatisfactory:"غير مرضية",feedbackThanksPositive:"يسعدنا أنها نالت إعجابك",feedbackThanksNegative:"شكراً على ملاحظاتك",feedbackDismiss:"إغلاق"}},ugcVideoLanding:{seo:{title:"إعلانات فيديو UGC عربية — Bith.ai",description:"أنشئ إعلانات فيديو عربية بلمسة محلية: اللهجة المناسبة، الوجوه المألوفة، والإعدادات المحلية. اختبر المزيد من الإعلانات بتكلفة أقل مع مولّد فيديو UGC من Bith.",keywords:"إعلانات فيديو عربية, UGC, فيديو UGC, إعلانات AI, لهجات عربية"},header:{getStarted:"صمم إعلانك"},hero:{eyebrow:"سر الإعلانات التي تحقق النتائج",title:"إعلاناتك بلهجة عملائك",subt
1itle:"الإعلان الناجح يحتاج ٤ أشياء: لهجة صح، وجه مألوف، نص يبيع، وبيئة تناسب براندك. في بِث، نجمعها لك بفيديو جاهز بدون فريق تصوير.",primaryCta:"صمم إعلانك",secondaryCta:"شاهد أمثلة"},sevenSteps:{eyebrow:"كيف تصنع إعلانك مع بِث",title:"من فكرة الى اعلان جاهز في 7 خطوات بسيطة",subtitle:"خيارات واضحة وسريعة، ولا تحتاج أي خبرة تقنية أو مونتاج.",steps:[{title:"اختر نوع الفيديو",description:"تجميل، أغذية، تطبيقات، خدمات، وغيرها"},{title:"ادخل تفاصيل المنتج",description:"ارفع صورة منتجك واكتب وصف بسيط عنه، وهذا كل اللي نحتاجه لنفهم فكرتك."},{title:"أنشئ او اختر شخصية",description:"اختر شخصية من المكتبة، أو أنشئ شخصية خاصة بعلامتك"},{title:"اختر اللغة واللهجة",description:"إعلانك يتكلم لغة جمهورك: عربي، إنجليزي، ولهجات متعددة مثل الخليجي، المصري، والشامي."},{title:"اختر المكان",description:"بيئة تناسب منتجك: منزل، سيارة، متجر، وغيرها."},{title:"أنشئ النص",description:"بِث تكتب لك النص، وتقدر تعدله بسهولة"},{title:"ارسل طلبك",description:"راجع اختياراتك وأرسل الطلب"}]},whyBith:{eyebrow:"لماذا بِث",title:"اعلانات تبدو محلية، بدون تعقيد",cards:[{title:"لغات ولهجات أصلية",description:"إعلانك يتكلم لغة جمهورك: عربي، إنجليزي، وبلهجات محلية مثل الخليجي، المصري، والشامي."},{title:"وجوه مألوفة، وبيئات محلية",description:"شخصيات وأماكن تشبه واقع العميل، ليكون إعلانك مألوف"},{title:"شخصية حصرية لعلامتك الخاصة",description:"اِصنع شخصية تمثل هويتك، تبني الثقة مع عملائك في كل إعلان"},{title:"ما يحتاج خبرة بالمونتاج",description:"الواجهة كلها خيارات واضحة، ما فيها أوامر معقدة ولا تحتاج برامج تصميم."}]},budget:{eyebrow:"لغة الأرقام",title:"بنفس الميزانية: بضعة إعلانات، أم نظام متكامل لاختبار الأداء؟",sliderLabel:"ميزانيتك الشهرية للمحتوى",hint:"حرّك المؤشر لترى كم إعلاناً يمكن لميزانيتك أن تنتج",traditional:{tag:"إعلان تقليدي",videosPerMonth:"فيديو / شهر",perVideo:"~250$ لكل فيديو"},bith:{tag:"مع بث",videosPerMonth:"فيديو / شهر",perVideo:"~25$ لكل فيديو",multiplier:"إبداع أكثر"}},localLayers:{eyebrow:"مصممة للأسواق العربية",title:"الهوية المحلية حاضرة في كل ثانية من الفيديو",subtitle:"بدايةً من النص والوجوه، وصولاً إلى اللهجة والمكان وطريقة استعراض منتجك.. كل تفصيلة مصممة لتبدو محلية 100%",footnote:"العربية هي نقطة قوتنا الأساسية، وندعم أيضاً الإنجليزية ولغات أخرى.",cards:[{title:"لهجات حقيقية",description:"خليجية ومصرية وشامية وغيرها، مع مزامنة شفاه تتوافق مع اللهجة."},{title:"منتجك في قلب الصورة",description:"ارفع صورة منتجك ليظهر بوضوح؛ سواء كان محمولاً باليد، أو قيد الاستخدام، مع الحفاظ على وضوح النص المكتوب على العبوة."},{title:"وجوه وأماكن من المنطقة",description:"شخصيات ومشاهد واقعية تناسب السوق المحلي، من مكتبة إقليمية متجددة باستمرار."},{title:"نص عربي صحيح على الشاشة",description:"النصوص والترجمات تُعرض بالعربية الصحيحة، من اليمين إلى اليسار، في كل مرة."},{title:"اختبر المتغيرات المهمة",description:"أنشئ نسخاً مختلفة للـ hooks والـ CTAs والشخصيات واللهجات والمواقع، ثم احتفظ بما ينجح."},{title:"تسليم خلال 24 ساعة",description:"فيديوهات جاهزة للمراجعة خلال 24 ساعة، لا أياماً أو أسابيع كالتصوير التقليدي."}]},samples:{eyebrow:"أمثلة حقيقية",title:"شاهد ما يمكن لعلامات تجارية تشبهك أن تبدعه",subtitle:"إذا كنت تدير إعلانات ممولة، منصة بِث صممت خصيصا لك: اعلانات حقيقية لمجالات ولهجات مختلفة.",categories:{physicalProduct:"المنتجات المادية",fashionAccessories:"الأزياء والإكسسوارات",packagedGoods:"المنتجات المعبأة",software:"البرمجيات",serviceProviders:"مقدمو الخدمات",subjectMatterExperts:"الخبراء و صناع المحتوى"},items:{physicalProduct:[{title:"المنتجات",subtitle:"العناية بالبشرة"},{title:"المنتجات",subtitle:"العطور"},{title:"المنتجات",subtitle:"مستلزمات يومية"}],fashionAccessories:[{title:"الأزياء",subtitle:"العبايات"},{title:"الأزياء",subtitle:"ملابس رياضية"},{title:"الأزياء",subtitle:"إكسسوارات"}],packagedGoods:[{title:"الأطعمة والمشروبات",subtitle:"المكملات الغذائية"},{title:"الأطعمة والمشروبات",subtitle:"مشروبات الطاقة"},{title:"الأطعمة والمشروبات",subtitle:"الحلويات"}],software:[{title:"البرمجيات",subtitle:"تطبيقات الجوال"},{title:"البرمجيات",subtitle:"SaaS و B2B"},{title:"البرمجيات",subtitle:"قصة المنتج"}],serviceProviders:[{title:"الخدمات",subtitle:"الاتصالات"},{title:"الخدمات",subtitle:"التأمين"},{title:"الخدمات",subtitle:"التوصيل"}],subjectMatterExperts:[{title:"الخبراء",subtitle:"الصحة والعافية"},{title:"الخبراء",subtitle:"المالية"},{title:"الخبراء",subtitle:"التعليم"}]},prev:"السابق",next:"التالي"}
1,pricing:{eyebrow:"خطط شهرية بسيطة",title:"اختر حجم الإعلانات الذي تحتاجه كل شهر",subtitle:"Bith تمنحك حجم اختبار أكبر بجزء بسيط من التكلفة.",perMonth:"/ شهر",videosPerMonth:"إعلان فيديو",singleVideoAd:"إعلان فيديو واحد",creatorVideoAds:"حتى 3 إعلانات فيديو",businessVideoAds:"حتى 9 إعلانات فيديو",perMonthSuffix:"/ شهر",approxPerVideo:"حوالي",perVideo:"للفيديو",startCreating:"صمم إعلانك",mostPopular:"الأكثر طلبا",swipeHint:"اسحب للمقارنة بين الخطط ←",footnote:"تُسلّم الفيديوهات خلال 24 ساعة. يمكنك إلغاء الاشتراك في أي وقت. جودة اللهجة والجانب الثقافي مضمونة في جميع الباقات.",enterprise:{title:"أعمال بلس",headline:"لنتحدث",subtitle:"للفرق التي توسّع إنتاج المحتوى الإبداعي",perVideo:"حجم وتسعير مخصص",cta:"تواصل مع المبيعات",features:["لغات ولهجات متعددة","شخصيات جاهزة بملامح محلية","أنشئ شخصياتك الخاصة","مولّد النصوص","خلفيات ومشاهد جاهزة"]},planFeatures:{pro:["لغات ولهجات متعددة","شخصيات جاهزة بملامح محلية","أنشئ شخصياتك الخاصة","مولّد النصوص","خلفيات ومشاهد جاهزة"],creator:["لغات ولهجات متعددة","شخصيات جاهزة بملامح محلية","أنشئ شخصياتك الخاصة","مولّد النصوص","خلفيات ومشاهد جاهزة"],business:["لغات ولهجات متعددة","شخصيات جاهزة بملامح محلية","أنشئ شخصياتك الخاصة","مولّد النصوص","خلفيات ومشاهد جاهزة"]}},bottomCta:{title:"اصنع اعلانات ناجحة أكثر، وبأسرع وقت، وبلغتك",subtitle:"لا تضيع ميزانيتك، ابدأ بانتاج اعلانات مصممة لتنجح",cta:"ابدأ الآن",footnote:"الفيديوهات تسلم خلال 24 ساعة. يمكنك الالغاء في أي وقت."},footer:{tagline:"منصة UGC العربية بالذكاء الاصطناعي \xb7 [email protected]"}}},r={en:{global:{off:"off",createNew:"Create New",templates:"Templates",backTo:"Back to",viewAll:"View all",showAll:"Show all",featured:"Featured",select:"Select ...",nationality:"What is the Nationality?",cost:"Cost",failed:"Failed",characters:"Characters",durationEstimate:"Estimated Duration",step:"Step",gotIt:"Got it",topUp:"Top Up",rollover:"Rollover",plan:"Plan",active:"Active",collapse:"Collapse",expand:"Expand",rechargesOn:"Resets on",otherPlaceholder:"Enter your other option",featuredTools:"Featured Tools",export:"Export",free:"Free",thankYou:"Thank you",generatingScenes:"Generating Scene...",optional:"Optional",feedbackSuccess:"Thanks for your feedback!",noAudio:"This video has no sound",ex:"* Examples",comingSoon:"Soon",comingSoonLong:"Coming Soon",promptCopySuccess:"Prompt copied to clipboard",scriptCopySuccess:"Script copied to clipboard",quoteCopySuccess:"Quote copied to clipboard",downloadImageSuccess:"Image downloaded successfully",downloadVideoSuccess:"Video downloaded successfully",downloadVoiceoverSuccess:"Voiceover downloaded successfully",linkCopiedSuccess:"Link copied successfully",summerSale:"(40% Summer Sale)",winterSale:"(40% Winter Sale)",sale:"%",sortby:"Sort by :",filterBy:"Filter By :",megaByte:"MB",since:"Subscribed since",of:"of",gb:"GB",perMonthShort:"/mo",perMonth:"/ Month",perMonthYearly:"billed annually",perYear:"/ Year",choosePlan:"Choose Plan",getStarted:"Get Started",currentSubscription:"Current Subscription",currentPlan:"Current Plan",changePlan:"Change Plan",reActivate:"Re-activate Plan",moreFromBith:"More from BithAI",all:"All",studio:"Studio",backSignIn:"Back to Sign In",back:"Back",next:"Next",backToStudio:"Back to Studio",generateAvatar:"Generate Avatar",backHome:"Back to Home",createVideo:"Edit a Video",uploadVideo:"Upload Video",yourAccount:"Your Account",filters:{search:"Search for ...",tenorSearch:"Search Tenor",sort:"Sort By",filterBy:"Filter By",pixabaySearchPlaceholder:"Search images from pixabay",pixabaySearchVideosPlaceholder:"Search videos from pexels",poweredBy:"Powered by"},learnHow:"Learn how",done:"Done",bith:"Bith.ai",shortSignUp:"Sign Up",shortSignIn:"Sign In",language:"عربي",en:"EN",ar:"AR",upload:"Upload",continueEditing:"Continue Editing",continue:"Continue",signup:"Register an Account",login:"Login",home:"Home",contactUs:"Contact Us",terms:"Terms and conditions",privacy:"Privacy policy",error_url:"/illustrations/404_Image.svg",home_page:"Home Page",save:"Save",soon:"Soon",new:"New",or:"or",socialLabel:"Login with",imagesValidation:{typeNotAllowed:"You can only upload JPG/PNG cover photos",coverLarge:"Cover photo size should be less than or equal 2MB"},normalImagesValidation:{typeNotAllowed:"You can only upload JPG/PNG cover photos",large:"Image size should be less than or equal 2MB"},showMore:"Show more",connect:"Connect",connected:"Connected",noResults:"No results found",validations:{shortRequired:"(Required)",required:"This field is required",invali
1dUrl:"Invalid URL",invalidSocialMediaHandle:"Invalid social media handle",messageDynamic:e=>"The file is larger than ".concat(e," MB")},confirmationAlert:{no:"No",yes:"Yes"},fileTypeNotSupported:e=>{let{videoType:t}=e;return"The ".concat(t," file format is not supported.")},sizeLimit:"Sorry, your uploaded media exceeded the file size limit.",sizeLimitMaxDescription:"The maximum size for media upload is",maxSizeLimit:"200 MB",remove:"Remove",delete:"Delete",cancel:"Cancel",close:"Close",move:"Move",restore:"Restore",time:{mins:e=>1===e||e>10?"Min":"Mins",minsMobile:"m",secs:e=>1===e||e>10?"Sec":"Secs",hours:e=>1===e||e>10?"Hour":"Hours",days:e=>1===e||e>10?"Day":"Days"},minutes:e=>1===e||e>10?"Minute":"Minutes",seconds:e=>1===e||e>10?"Second":"Seconds",credits:e=>"Credits",perEdit:"/Edit",oneTime:"(One-Time)",upgradeToPro:"Upgrade to Pro",upgradePlan:"Upgrade Plan",upgrade:"Upgrade",downgrade:"Downgrade",generateClips:"Generate",generateAVideo:"Generate a Video",clips:"Clips",processing:"Processing",continueGenerating:"Edit Script",editScenes:"Edit Video",showLess:"Show Less",poweredby:"Powered by",proceed:"Proceed",paidFeature:"Paid Feature",download:"Download",generateImage:"Generate New Image",generateImageShort:"Generate Image",generateScene:"Generate Video",generateVideo:"Generate New Video",generateVideoShort:"Generate Video",editVideo:"Edit",share:"Share",copyShared:"Copy Shared Link",addCredits:"Add Credits",images:e=>"Images",copy:"Copy",copied:"Copied",creditsUsed:"Credits Used",and:"and",backToMenu:"Back to Main Menu",videoPopup:{showDetails:"Video Details",showVideo:"Show Video"},somethingWentWrong:"Something went wrong",empty:{videos:"No videos created yet!",scenes:"No scenes created yet!",images:"No images created yet!"},useTemplate:"Use Template"},account:{dropDown:{accountSettings:"Account Settings",logout:"Logout"}},signUp:{title:"Create your account",fields:{username:{label:"Username",illegal_chars:"Username contains illegal characters.",minUserNameMessage:"The username must not be less than 5 characters.",maxUserNameMessage:"The username must not exceed 24 characters."},email:{label:"Email"},password:{label:"Password",password_illegal_chars:"Plesae follow the password rules",password_rules:"Plesae follow the password rules"},confirm_password:{label:"Password",password_validation:"Password does not match."},emailMarkiting:{label:"Send me the latest updates and promotional offers"},terms:{label:"I acknowledge that I have read the ",label2:"and agree to the "}},actions:{submit:"Create your account",login:"Do you have an account?",login1:"Sign In",continueWithEmail:"Continue With Email"}},login:{title:"Log in to your account",socialTitle:"Welcome to Bith.AI",forgotPassword:"Forgot your password?",fields:{email:{label:"Email",errors:{required:"This field is required"}},password:{label:"Password",errors:{required:"This field is required."}}},actions:{submit:"Sign In",signUp:"Don’t have an account yet?",social:"Login with your social account",continueWithEmail:"Continue with Email"}},contactUs:{info:"Contact Info",email:"Email",social:"Get Social"},help:{layout:{title:"Bith.ai",pages:{terms:"Terms and Conditions",privacy:"Privacy Policy",guide:"Bith Guide"}}},validations:{email:{illegal:"Email entered is illegal.",invalid:"Email entered is invalid."},required:"This field is required",maxTextLength:"Text length should be less than 255 characters",minTextLength:"Text length should be more than 5 characters",maxTextLengthDynamic:e=>"Text length should be less than ".concat(e," characters"),minTextLengthDynamic:e=>"Text length should be more than ".concat(e," characters"),maxNumberDynamic:e=>"Maximum ".concat(e),minNumberDynamic:e=>"Minimum ".concat(e),oneFieldIsRequiredAtLeast:"At least one field is required",textFieldsMin:e=>"Text length should be more than ".concat(e," characters for all fields combined"),textFieldsMax:e=>"Text length should be less than ".concat(e," characters for all fields combined")},socialLogin:{facebook:"Facebook",twitter:"Twitter",google:"Google",discord:"Discord",twitch:"Twitch",apple:"Apple"},appBanner:{title:"Download BithAI App",subTitle:"Download BithAI App",action:"Install"},resizer:{layers:{source:"After:",before:"Before:"},compileActions:{continueEditing:"Continue Editing",skip:"Skip Edits",skipDescription:"(Without Edits)",compile:"Edit & Upload",next:"Next"},importFaild:{title:"Faild to import file",upload:"Upload"},editorSettings:{faceCam:"FaceCam:",outlinesBefore:"Outlines:",outlineAfter:"Outlines:",original:"Original",output:"Output"},outputSettings:{aspectRatio:"Select size",fps:"Frames Per Second (FPS):",quality:"Quality:"}
1,preview:{title:"Click Here to",description:"Magically Resize"},templates:{action:"Change Layout",modal:{title:"Choose Layout",description:"Convert your video to the video dimension you desire."}},resetChanges:"Reset Changes"},socialMediaDistribution:{connectedAccounts:"Connected Accounts",action:"Connect Accounts",disconnect:"Disconnect account",selectPage:"Select page",unSelectPage:"Unselect page",tiktokNote:"You will receive a notification from the TikTok app on your mobile device to continue the publishing flow from there.",needMobileInstallation:"Once published, you will have to continue posting the video from your same account on the BithAI mobile app.",enable:"Enable publishing on this connected account",publish:"Publish",publishDownload:"Publish & Download",actions:{cancel:"Cancel",connect:"Connect Account"}},advancedEditor:{sideBar:{media:"Media",layers:"Layers",text:"Text",audio:"Audio",gifs:"GIFs",videos:"Videos",images:"Images",effects:"Effects",subtitles:"Subtitles"},panels:{general:{title:"General",settings:"Match Source",quality:"Export Resolution",fps:"Frames Per Second (FPS)",bgColor:"Background Color"},timing:"Timing",texts:{tabs:{textSettings:"Text Settings",effects:"Effects",timing:"Timing"},title:"Text Settings",editText:"Edit Text",fontFamily:"Font",lockRatio:"Lock Ratio",color:"Font Color",outline:"Text Outline",off:"OFF",on:"ON",stroke:{title:"Text Stroke",color:"Stroke Color",width:"Width"},background:{title:"Text Background",color:"Color",corners:"Corners",padding:"Padding",opacity:"Opacity"},effect:{textColor:"Text Color",backgroundColor:"Background Color"}},audio:{title:"Audio",volume:"Volume",noAudio:"This video does not have an audio"},image:{title:"Image",tabs:{settings:"Image"}},video:{title:"Video",tabs:{settings:"Video"}},gifs:{title:"GIFs"},shared:{layer:"Layer",delete:"Delete",backward:"Backward",forward:"Forward",sendToFront:"Send to Front",sendToBack:"Send to Back"},effects:{title:"Box Effects"},subtitle:{title:"Subtitles",applyToAll:"Apply settings to all subtitles"}},media:{switcher:{myLibrary:"My Library",stock:"Stock",aiImages:"AI Images"}},texts:{tooltip:"Font that handles English and Arabic Text",actions:{english:"English",arabic:"Arabic"}},subtitles:{title:"Subtitles",generate:"Generate Subtitles",selectLanguage:"Select Language Manually",language:"Language",original:"Language",translate:"Translate To (Optional)",translatePlaceholder:"No Translation - Use Original Lang..",transcriptionLeft:"of transcription left",selectLanguageError:"Please select a language",generating1:"Please wait",generating:"We are generating your subtitles",noTranscriptionError:"No transcription found",settings:{title:"Subtitles Settings",grouped:"Grouped",single:"Single"},addNew:"Add New Subtitle",addError:"You cannot add subtitle outside video duration",tabs:{subtitles:"Subtitles",options:"Options"},delete:{title:"Delete Subtitles",description:"Are you sure you want to delete subtitles for this video?"},downloadSrt:"Download SRT file"},audio:{sound:{title:"Sounds"}},images:{title:"Images",tabs:{filled:"Filled",transparent:"Transparent"}},videos:{title:"Videos"},gifs:{title:"Gifs"},disclaimer:{title:"Video looking fuzzy?!",description:"reduces the video resolution in the editor so you can enjoy a quicker editing and playback experience. Don't worry, the video’s original resolution will be used when you Share.",durationLimitTitle:"Duration Warning",durationLimit:"Clip must not exceed 1 min"},tooltips:{split:{title:"Split",shortCut:{mac:"S",wind:"S"}},undo:{title:"Undo",shortCut:{mac:"Cmd + Z",wind:"Ctrl + Z"}},redo:{title:"Redo",shortCut:{mac:"Cmd + Shift + Z",wind:"Ctrl + Shift + Z"}},play:{title:"Play",shortCut:{mac:"Space",wind:"Space"}},pause:{title:"Pause",shortCut:{mac:"Space",wind:"Space"}},duplicate:{title:"Duplicate"},delete:{title:"Delete",shortCut:{mac:"Backspace",wind:"DEL"}},zoomIn:{title:"Zoom In",shortCut:{mac:"Cmd + Mouse wheel Up",wind:"Ctrl + Mouse wheel Up"}},zoomOut:{title:"Zoom Out",shortCut:{mac:"Cmd + Mouse wheel Down",wind:"Ctrl + Mouse wheel Down"}},zoomToFit:{title:"Fit to Screen"}},commingSoon:"Coming soon",uploadFlow:{backToMagicResizer:"Back to Magic Re
1sizer",steps:{resizer:"Resizer",editor:"Edit",share:"Share"},actions:{editAndUpload:"Edit & Share"}},timeLine:{openTimeLine:"Open Timeline",limitationPopup:{title:"Sorry, you have exceeded your timeline duration limit of “10 minutes“, any edits made after this duration will not be included in your video.",actions:{cancel:"Back to Edit",ok:"Export Anyway"}}}},homeMobile:{superWindow:{info:"the easiest video editing software",title:"Content Creation ",title2:"Made Easy",title3:" ",description:"BithAI is an all-in-one free video editor to take your content to the next level",description2:"",desktop:"Available on Desktop Only",downloadApp:"Download App"},resize:{title:"Resize",description:"Use BithAI’s magic resizer to convert your videos from 16:9 to any format, convert it to formats suitable for Instagram Reels/Stories/Posts to Youtube Shorts and even TikTok."},edit:{title:"Edit",description:"Add some flavor to your clips by using the various different features available in the Bith Studio, add text/images/videos to your video to make your content standout."},publish:{title:"Publish",description:"By using Bith’s tools you can directly upload your content to all your favorite social media platforms with just a click of a button!"}},headerLayout:{howItWorks:"How it works",features:"Why Bith.ai",apps:"Our Apps",learn:"Learn",welcome:"Welcome ",comma:",",tools:"AI Tools",pricing:"Pricing",proCreator:"Pro Plan",freePlan:"Free Plan",editor:"Video Editor"},home:{hero:{create:"CREATE",videos:"VIDEOS",images:"IMAGES",audios:"AUDIOS",in:"IN",seconds:"SECONDS",subtitle:"One Place - All AI Models",getStarted:"Get Started"},create:{title:"CREATE",video:"Video",image:"Image",audio:"Audio"},superWindow:{title:"Create Content Effortlessly with ",title1:"AI Magic",description:"Transform Your Ideas into Engaging Videos, Images, and More in Seconds",action:"Get Started",howItWorks:"How it Works"},howItWorks:{title:"How it works ?"},whyBit:{title:"Why Bith.ai ?"},signup:{title:"Don’t have an account yet ?",looking:"Looking to become a content creator?",start:"Start your journey today!",action:"Sign Up"},downloadApp:{title:"Complete your experience on our Mobile App",description:"It is a long established fact that a reader will be It is a long  reader will be distracted by the readable content."},creativeStudio:{title:"Your Complete Creative Suite",description:"Unlock limitless possibilities with our intuitive platform, designed to simplify your video editing journey. Resize your video dimensions, effortlessly add subtitles using AI, and seamlessly incorporate images, videos, audio, and GIFs with just a few clicks.",editorText:"Bith Video Editor",disclaimer:"This feature is accessible on larger screens. Please switch to a desktop or laptop for the best experience."},gallery:{title:"Inspirational Gallery",exploreMore:"Explore More"}},pricing:{title:"Pick a plan that works for you!",popupTitle:"New Plans Changes",pricing:"Pricing",description:"Create more, in less time.",monthly:"Monthly",yearly:"Yearly",saving:"2 Months Free",pro:"Pro",free:"Free",aiTools:"AI Tools",recommended:"Recommended",tabs:{bundles:"Bundles",creditsPack:"Credits Pack"},planCard:{popular:"Popular",mostChosen:"Most chosen",selectPlan:"Select Plan",startNow:"Start now",currentPlan:"Current Plan",unavailable:"Unavailable",notAvailableFromCurrentPlan:"Not available from your current plan",upgrade:"Upgrade",downgrade:"Downgrade",creditsPerMonth:"Credits",ugcVideoPerMonth:"UGC video",ugcVideosPerMonth:"UGC videos",perMonth:"/ month",switchTo:"Switch plan",scheduledNextCycle:"Scheduled for next cycle"},creditPack:{credits:"Credits",purchase:"Purchase",validityNote:"Valid for 90 days from the date of purchase"},faqs:{title:"FAQs"},aiTitle:"Select your preferred credit pack size:",automateAround:"Can automate around",aiVideos:"AI videos",oneTimePaymentDisclaimer:"Please note that purchased credits are only accessible while your subscription remains active.",plansDisclaimer:"These numbers are estimates. Actual usage varies based on how you choose to spend your credits across videos, images, and audio.",creditsRolloverNotice:"Credits don’t roll over between b
1illing cycles",legacyPlan:{title:"Your current plan is {planTitle} (Legacy)",description:"*This is a legacy plan that's no longer available to new customers. You can keep this plan indefinitely or switch to our new plans.",creditsPerMonth:"Credits/month",features:{fullAccessToAITools:"Full Access to AI Tools",proAccessToVideoEditor:"Pro Access to Video Editor",aiSubtitleGenerator:"AI Subtitle Generator",minutes:"{minutes} Minutes",storage:"Storage ({storage} GB)",customerSupport:"Customer Support"}}},footer:{aboutUs:"About us",contactUs:"Contact us",terms:"Terms and Conditions",privacyPolicy:"Privacy policy",bithGuide:"Bith’s Guide"},footerLayout:{links:{title:"Links",about:"About Bith.ai",terms:"Terms & Conditions",privacy:"Privacy Policy",pricing:"Pricing"},help:{title:"Help",learn:"Learn",tools:"Tools",faqs:"FAQs",contactUs:"Contact Us",bithAi:"Bith.AI"},getinTouch:{title:"Get in Touch"},partners:{title:"Partners"},rights:"\xa9 All Right Reserved. Bith.ai"},authFlowLayout:{info:{title:"Bith TV Features",free:"Free",noWatermark:"No Watermark",online:"Online",distribution:"Distribution"},actions:{back:"Back to Home"},signUp:{action:"Create account"},ugc:{title:"UGC Videos",subtitle:"Create realistic promotional videos ready to publish — no filming or editing required"},termsNotice:"By continuing, you agree to our Terms of Use and Privacy Policy."},passwordReco:{sendEmail:{title:"Reset Your Password",formFields:{email:"Email"},actions:{submit:"Reset",redirectTitle:"Do you have an account ?",redirect:"Sign In"},success:"Successful! Please check your email now"},reset:{title:"Create a New Password",formFields:{newPassword:"New Password"},actions:{submit:"Change Password"},success:{title:"Your password has been successfully reset.",action:"Login"}}},studio:{sidebars:{images:{title:"Images"},videos:{all:"All videos",original:"Unedited",inProgress:"In Progress",readyToPublish:"Ready to Publish",published:"Exported",deletedVideos:"Deleted Videos"},account:{title:"Settings",accountSettings:"Account Settings",notificationsSettings:"Notifications Settings",billingSettings:"Billing Settings",connectionSettings:"Connection Settings"},connections:{title:"Platforms",connect:"Connect"},storage:{storageUsed:"Storage Used",storageRemaining:"Storage",upgrade:"Upgrade"},main:{myStudio:"Home",library:"Library",videos:"Videos",folders:"Folders",watchAndLearn:"Watch And Learn",deleted:"Deleted",aiStudio:"AI Studio",mainStudio:"Creative Studio",imageGenerator:"Images",voiceovers:"Audios"},minutes:{title:"Credits Used",remaining:"Credits",upgrade:"Add Credits",total:"Total Credits",add:"Add"},helpCenter:{title:"Help Center"}},shell:{header:{home:"Home"},sidebar:{home:"Home",library:"Library",templates:"Templates",apps:"Apps",tools:"Tools",more:"More",less:"Less",pin:"Pin",unpin:"Unpin",recentSessions:"Recent Sessions",sessions:"Sessions",newSession:"New Session",untitledSession:"Untitled session"}},library:{tabs:{videos:"Videos",images:"Images",audio:"Audio",folders:"Folders",deleted:"Deleted"},inProgressAlert:"We'll notify you via email when your video is ready!"},account:{settings:{title:"Account Settings"},profilePicture:{title:"Profile Picture"},notifications:{title:"Notifications"},info:{title:"Account Information",changeImage:"Change Picture",remove:"Remove",formFields:{username:{label:"Username"},email:{label:"Email"}},action:"Save"},changePassword:{title:"Change Password",formFields:{newPassword:{label:"New Password"},confirmNewPassword:{label:"Confirm New Password"},password:{label:"Current Password"}},success:{message:"Password updated successfully"},action:"Update"},preferences:{title:"Preferences",theme:"Light Theme",language:"Language"}},videoModal:{actions:{create:"Create a New Edit",continue:"Continue Editing",start:"Start Editing",download:"Download",editAgain:"Duplicate and Edit",edit:"Edit Video"}},videosDropDown:{edit:"Edit",duplicate:"Duplicate",publish:"Publish",schedule:"Schedule",download:"Download",move:"Move",rename:"Rename",delete:"Delete"},deletedVideosDropDown:{restore:"Restore",deletePermanently:"Delete Permanently"},sort:{name:"Name A-Z",dateCreated:"Date Created",dateModified:"Date Modified"},videosDetailsBar:{videoTitle:"Video Title",size:"Size",status:"Status",lastEdited:"Last Edited"},empty:{title:"You don’t have any videos yet!",description:"Click the button below to create your first video",video_editor:{title:"You don’t have any videos yet!",description:"Click the button below to create your first video"},text_to_video:{title:"You don’t have any videos yet!",description:"Click the button below to generate your first video"}
1,image:{title:"You don’t have any images yet!"},audio:{title:"You don’t have any audio yet!"},deleted:{title:"Recycle Bin is Empty",description:"Click the button below to create a new video"},ai:{title:"You don’t have any videos yet!",description:"Click the button below to generate your first video"},text_to_scene:{title:"You don’t have any scenes yet!",description:"Click the button below to create your first scene"},quote_to_video:{title:"You don’t have any videos yet!",description:"Click the button below to generate your first video"}},createVideo:{headerActions:{continueToEdit:"Continue to Edit",publish:"Export Video",exportSettings:{title:"Export Settings"}}},main:{videos:{title:"Videos",viewAll:"View all Videos",createAVideo:"Edit New Video"},home:{heroHeadline:"Everything you need to create, in one place",appsTitle:"Apps",toolsTitle:"Tools",lastVideosTitle:"Last videos",viewAll:"View All",templatesHeadline:"Start from proven templates, Not from scratch.",browseAllTemplates:"Browse all templates"},folders:{title:"Folders",viewAll:"View all Folders",newFolder:"New Folder"},watchAndLearn:{title:"Watch And Learn",viewAll:"View all Videos"},tools:{title:"WHAT WILL YOU CREATE TODAY?",description:"Generate images, edit visuals, and create videos — all with AI.",viewAll:"View all Tools",action:"Explore All Tools"}
1,apps:{title:"Apps"}},notificationsSettings:{transactionalEmails:"Receive payment-related emails",promotionalEmails:"Receive promotional emails"},superWindow:{carousel:{title:"Text-to-Video",title1:"AI Generator",description:"The revolutionary Text-to-Video AI Generator is designed for the new era of Faceless Creators. Transform your ideas into captivating videos with just a few clicks."}},useCases:{title:"What users are Creating",popup:{prompt:"Prompt:",prefix:"",script:"Script",aiModule:"Image Generation Module:"}},accountDropdown:{settings:"Account Settings",notificationSettings:"Notification Settings",billingSettings:"Billing Settings",lightTheme:"Light Theme",language:"Language",help:"Help",faqs:"FAQs",terms:"Terms & Conditions",privacy:"Privacy Policy",logout:"Logout"},notifications:{title:"Notifications"}},studioBreadcrumbs:{studio:"My Studio",account:"Account Settings",billing:"Billing Settings",connections:"Connection Settings",videos:"Videos",all:"All Videos",original:"Unedited","in-progress":"In Progress","ready-to-publish":"Ready to Publish",published:"Exported",deleted:"Deleted",exporting:"Exporting",completed:"Completed",processing:"Processing","processing-promo-video":"Processing"},folders:{new:"New Folder",create:{title:"New Folder",createFolderModal:{title:"Create a New Folder",fields:{name:"Folder name"},actions:{cancel:"Cancel",create:"Create"},success:{title:"You've successfully created your folder"}}},edit:{modal:{title:"Update Folder",fields:{name:"Folder name"},actions:{cancel:"Cancel",update:"Update"},success:{title:"You've successfully updated your folder name"}}},move:{title:'Move "',to:'" To',done:"Moved to"},delete:{title:"Are you sure you want to delete this folder?"}},videos:{edit:{modal:{title:"Update Video",fields:{name:"Video name"},actions:{cancel:"Cancel",update:"Update"},success:{title:"You've successfully updated your video name"}}},delete:{header:"Delete",title:"Do you really want delete this video ?",success:{title:"You've successfully deleted your video"}},deletePermanently:{header:"Delete",title:"Do you really want delete this video permanently ?",success:{title:"You've successfully deleted your video"}},restore:{header:"Restore",title:"Do you really want restore this video ?",success:{title:"You've successfully restored your video"}},duplicate:{modal:{title:"Duplicate Video",fields:{name:"Video name"},actions:{cancel:"Cancel",update:"Duplicate"},success:{title:"You've successfully duplicated your video"}}},deletionWithin:"Deletion within:"},createVideo:{uploadModal:{import:{title:"Import from a link",inputPlaceholder:"Paste your YouTube, Twitch, or Facebook link here...",aiInputPlaceholder:"Paste your YouTube link here...",action:"Paste",try:"Try Sample Link",error:"Please enter a valid link"},upload:{title:"Upload a file",dragBox:"Drag and drop your file here",or:" Or ",browse:"browse ",dragBox1:" to choose a file"},errors:{header:"Oops",title:"We are not able to handle videos with ",title1:"no audio ",title2:"at the moment. We are working on fixing this issue soon.\uD83E\uDD29",close:"Close"},noDimensions:{header:"Oops",title:"This type of videos is not playable on this browser, you can use",title1:"Chrome browser ",title2:"to be able to edit this video. \uD83E\uDD29",close:"Close"},size:{title:"Max video size : ",title1:"250 MB",message:"The file is larger than 250 MB"},sizePro:{title:"Max video size : ",title1:"2 GB",message:"The file is larger than 2 GB"},smartClipperSize:{title:"Max video size : ",title1:"10 GB",message:"The file is larger than 10 GB"},aspectRatio:{header:"Oops",title:"Video dimensions not compatible, ",title1:"allowed dimensions are",title2:"16:9 and 9:16",close:"Close"}},editor:{title:"Edit"},publisher:{title:"Export",loading:"Please be patient as this process may take several minutes",videoInfo:{title:{label:"Title",placeholder:"Title"}},actions:{download:"Download",removeWatermark:"Download Without Watermark",newVideo:"Create a New Video",editAgain:"Duplicate and Edit",editThisVideo:"Edit This Video",back:"Back to Studio"},socialMediaDistribution:{title:"Publish To",action:"Publish"},tips:{title:"Did you know?"},help:{title:"Facing any issues, have any feedback or want to stay updated with all our latest announcements?",redirect:"Join our Discord Server."}},resizer:{title:"Resize",description:"Most content is consumed on mobile devices, make your content mobile friendly by resizing it’s aspect ratio.",projectSettings:{title:"Settings",videoSize:{title:"Video Dimensions",reset:"Reset"},eligiblePlatforms:{title:"Eligible Platforms",and:" and ",more:" More",maxDuration:"Max Duration:",unlimited:"Unlimited"},faceCam:{title:"Facecam",options:{off:"Off",rectangle:"Rectangle",circle:"Circle",rounded:"Rounded"}
1,stroke:{style:"Stroke Style",color:"Stroke Color",animated:"Animated Stroke"}},background:{title:"Background blurred",color:"Background Color"},safeZone:{title:"Video Safe Zone",description:"This is only to show where social media icons are and won’t be visible in the exported video"}}}},learn:{title:"Learn",latest:"Latest Articles",share:"Share",featured:"المفضلة",keywords:"كلمات مفتاحية",createSection:{title:"Looking to Become a Content Creator? Upload Your First Video!"},relatedArticles:{title:"Related Articles"}},socialAuth:{facebook:"Continue With Facebook",google:"Continue With Google",twitch:"Continue With Twitch",apple:"Continue With Apple"},exportStatus:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",step:e=>"Step ".concat(e,"/7"),in_queue:"Wait, Your Video Is In The Queue",processing:"Wait, Your Video Is In The Queue",trimming:"Our Robots Are Trimming Your Video",resizing:"Our Robots Are Resizing Your Video",adding_layers:"Our Robots Are Adding The Edits To Your Video",adding_audios:"Our Robots Are Adding The Edits To Your Video",completed:"Please Wait While We Finalize The Final Video",info:"You can edit other videos while your video is exporting"},back:{title:"Are you sure you want to go back ?",description:"Any changes you have done will be lost.",action:"Back to Resizer"},uploadNotCompleted:{title:"Are you sure you want to leave?",description:"Any changes you have done will be lost.",action:"Yes"},tools:{title:"Tools",description:"Use our tools to add Text, Images, Videos and more to your videos",callToAction:{weHope:"We hope you like using BITH Tools",cantWait:"Can't wait to see what you come up with!"},step:"Step ",moreTools:"Explore More Tools"},mediaAssets:{asset:{video:"Video",image:"Image",audio:"Audio",gif:"Gif",empty:{title:"You don’t have any",video:" videos ",image:" images ",gif:" gifs ",audio:" audios ",title1:"yet!",info:"Use one of Bith",info1:"or upload your own"},uploadSuccess:{title:"Your ",title1:"has been successfully uploaded"},edit:{title:"Update ",fields:{name:" name"},actions:{cancel:"Cancel",update:"Update"},success:{title:"You've successfully updated your ",title1:" name"}},delete:{header:"Delete",title:"Do you really want delete this ",imageTitle:"Do you really want delete this ",title1:"?",success:{title:"You've successfully deleted your"}}}},proPlanPopup:{title:"Upgrade your plan today and Make it even eaiser",watermark:"Remove the watermark by upgrading your plan today"},checkoutModal:{welcome:"Welcome to Bith",continueGoogle:"Continue With Google",continueEmail:"Continue With Email",or:"or",summaryTitle:"Subscription details",summaryTitleCredits:"Purchase details",creditPackName:e=>"".concat(Number(e).toLocaleString()," Credits"),creditPackValidityDays:"90",creditPackValidityLabel:"days after purchase",paymentTitle:"Payment details",scrollToBottom:"Scroll to bottom",continueToPayment:"Continue to payment",update:"Update",upgradeNow:"Upgrade now",buyNow:"Buy now",amountDueToday:"Amount due today",amountDueNow:"Amount due now",totalCreditsAvailable:"Total credits available",creditsFromCurrentPlan:"Credits from your current plan",extraCreditsFromUpgrade:"Extra credits from upgrade",subscriptionType:"Subscription type",creditsPerInterval:()=>"credits / month",ugcPerInterval:e=>1===e?"UGC video / month":"UGC videos / month",savePercent:e=>"Save ".concat(e,"%"),total:"Total",taxIncluded:"(Tax included)",autoRenew:(e,t,i)=>null!=i&&""!==i?"Your subscription will auto-renew on ".concat(e," for $").concat(i," and your credits will reset to ").concat(Number(t).toLocaleString()," credits"):"Your subscription will auto-renew on ".concat(e," and your credits will reset to ").concat(Number(t).toLocaleString()," credits"),payTodayThen:(e,t,i,o)=>"You'll pay $".concat(e," today, then $").concat(t," ").concat(i," starting ").concat(o,"."),addDiscount:"Add discount code",apply:"Apply",discountInvalid:"Invalid discount code",discountApplied:(e,t)=>"Discount applied. You saved $".concat(e," (").concat(t,"%) on this plan."),taxIncludedWithDiscount:"(Tax included and discount)",planPrice:"Plan price",discountValue:"Discount value",removeDiscount:"Remove discount code",subscribeNow:"Subscribe now",confirmChangeTitle:e=>e?"Confirm upgrade":"Confirm plan change",confirmChangeBody:"Confirm to apply this plan change. Any amount due today will be charged to your saved payment method.",success:{title:e=>e?"Points are ready":"Subscribed successfully",body:(e,t)=>
1e?"Your ".concat(Number(t).toLocaleString()," points are ready to use."):"Your new points balance is ready to use.",upgradeTitle:"You've upgraded your plan",changedPlanTitle:"You've changed your plan",startNow:"Start now"}},paymentFlowPopup:{totalPayment:"Total Payment",totalWithTax:"Total (Tax included)",stepper:{selectPlan:"Select Plan",selectPackage:"Add Credits",review:"Review",payment:"Payment"},selectPlan:{title:"Choose One :",saving:"(save 17%)",summerSale:"(40% Summer Sale)",winterSale:"(40% Winter Sale)"},oneTimePurchase:{title:"Increase Your Limit!"},review:{title:"Purchase Details :",description:{description1:"Your subscription will renew for",on:"on",reset:"and your credits will reset to",description2:"Have questions?",contact:"Contact our support team.",upgrade:"You will be charged",upgrade1:"immediately for the prorated amount due to changing your plan.",chargedProrationBeforeAmount:"Charged ",chargedProrationAfterAmount:" today as prorated upgrade fee.",previewFetchError:"We couldn't load your upgrade preview."},payBy:"Pay By",ending:"Card ending in",creditSummary:{title:"Credit Summary",creditsUsed:"Credits Used",creditsAvailable:"Credits Available",renewsAt:"Renews at",carriedOver:"Carried over",fromUpgrade:"From upgrade"}},payment:{form:{country:{title:"Country",placeholder:"Country"},address:{title:"Address",placeholder:"Address"},city:{title:"City",placeholder:"e.g Amman"}}},navigation:{back:"Back",next:"Next",cancel:"Cancel",changePlan:"Change Plan",upgrade:"Upgrade",downgrade:"Downgrade"},success:{title1:"Congratulations!",title2:"You Have Upgraded to ",monthly:"Monthly",yearly:"Yearly",subscribedTitle:(e,t)=>"You've successfully subscribed to the ".concat(e," ").concat(t," Plan."),subscribedDescription:e=>"You now have access to all ".concat(e," features. Click the button below to start creating and enjoy!"),monthlyDescription:"You are now a pro creator, click on below button to create your first video with pro features and enjoy !",pro:"Pro",credits:e=>"You have now added ".concat(e," credits."),upgrade:"You’ve changed your Plan",upgradeDescription:"You now have",upgradeDescription1:" click on below button to continue your journey in AI world with amazing AI tools we have, enjoy !",changedPlanDescription:e=>"You now have ".concat(e," credits, click on below button to continue your journey in AI world with amazing AI tools we have, enjoy !"),scheduledDowngradeTitle:"Your plan change has been scheduled",scheduledDowngradeDescription:(e,t)=>"You will have ".concat(e," credits starting on ").concat(t,". Until then, you'll keep your current plan benefits. Click the button below to continue."),scheduledUpgradeTitle:"Your plan change has been scheduled",scheduledUpgradeDescription:(e,t)=>"You will have ".concat(e," credits starting on ").concat(t,". Until then, you'll keep your current plan benefits. Click the button below to continue.")},errors:{insufficientBalance:{title:"Insufficient Balance",description:"We're sorry, but your transaction cannot be processed at this time due to insufficient funds in your account. Please ensure that you have enough funds available to complete the transaction. If you need further assistance, please contact our support team. Thank you for your understanding.",cancel:"Cancel"}},reActivate:{header:"Success!",description:"Your subscription plan has reactivated successfully, you can manage your subscription from the billing settings screen."}},billing:{title:"Subscription",actions:{cancelPlan:"Cancel Plan",changePlan:"Change Plan",cancelScheduledDowngrade:"Cancel Scheduled Downgrade",cancelScheduledDowngradeConfirmation:"This will keep your current plan as is. Are you sure you want to cancel the scheduled downgrade?",noActionText:"Keep It"},nextPaymentOn:"Next Payment on",yourSubscriptionEndsAt:"Your subscription ends at",scheduledDowngradeEffective:"Effective",scheduledChange:{title:"Scheduled Change",downgradeTo:"Downgrade to",scheduledFor:"scheduled for"},paymentMethod:"Payment Method",updatePaymentMethod:"Update Payment Method",updatePaymentMethodModal:{success:"Payment method updated successfully."},billingHistory:{title:"Billing History",usd:"USD",table:{date:"Date",description:"Description",amount:"Payment Amount",receipt:"Print Receipt"}}},cancelSubscription:{title:"We're sorry to see you go!",description:"If you have a moment, we would love to know why you decided to switch to the Free plan.",other:"Can you tell us what is the other reason for cancelling your subscription?",actions:{cancel:"Cancel",submit:"Confirm Cancellation",continueToCancellation:"Continue to Cancellation",cancelAnyWay:"Cancel Anyway",back:"Back"},confirm:{title:"Confirm Your Cancellation",description:"You will be on a ",description2:" plan until",description1:"After this date you will not have the ability to use pro features, are you sure you want to continue?"},pastDueConfirmation:{title:"Confirm Your Cancellation",description:"Your subscription is past due, You no longer have access to pro features. Canceling your subscription will permanently remove any associated benefits. Are you sure you want to proceed?"},congrats:"Congratulations!",discount:{title:"Get 40% discount on next month !",description:"We value your business ! we're offering you an exclusive 40% discount for your next month subscription. Enjoy our service at a reduced price !",action:"Redeem now",success:"Your next month subscription will have 40% discount"},freeMonth:{title:"Get 2 months free just for you !",description:"We want to give you this offer to stay with us, you will have more time to discover and try our pro features more and more !",action:"Accept Offer",success:"You are now have 60 days to try our pro features more and more"},successCancelation:{title:"Your subscription has been canceled",description:"We appreciate the time you've spent with us. If you ever decide to return, we'll be here to welcome you back. Thank y
1ou for being a part of our journey!"},preCancelAlert:{title:"Don’t Lose Your Credits",description:"Canceling now means all unused credits will be lost. Any remaining credits will also automatically expire at the end of your billing cycle on ",description1:"Are you sure you want to proceed?",actions:{keepCredits:"Keep Credits",cancelAnyway:"Cancel Anyway"}}},planExpired:{title:"Oops! Your Pro Plan Subscription Renewal Failed.",description:"We're sorry to inform you that your Pro Plan subscription renewal has failed.",action:"Click here to Update Payment Method",popup:{title:"Please update your payment method to continue enjoying your Pro subscription access. Click 'Update' now.",submit:"Update"}},waitlistPopup:{title:"Bith is creating a new AI powered tool that will make video creation even easier.",action:"Join Waitlist For Early Access"},mobileBanner:{title:"Available on Desktop Only"},trafficBanner:{title:"We apologize for any inconvenience caused, as we are currently experiencing an unusually high volume of traffic on our website. We are actively working to resolve this issue."},shortCutsModal:{title:"Keyboard Shortcuts",play:"Play",pause:"Pause",delete:"Delete",split:"Split",undo:"Undo",redo:"Redo",copy:"Copy",paste:"Paste",duplicate:"Duplicate",zoomIn:"Timeline Zoom In",zoomOut:"Timeline Zoom Out",nextFrame:"Next/Prev Frame",prevFrame:"Previous Frame"},summerSale:{title:"Save 40% on “ Pro Plan “ Summer Sale, Upgrade to Pro!",popup:{title:"All you need to do is sign in to your BITH account to claim this discount!"}},winterSale:{title:"Save 40% on “ Pro Plan “ Winter Sale, Upgrade to Pro!",popup:{title:"All you need to do is sign in to your BITH account to claim this discount!"}},editTracker:{saving:"Saving ...",finishSaving:"Video changes are saved."},videosExpires:{title:"Attention Bith.ai users, any videos that have been uploaded before October 1st will be deleted on October 15!  ",upgrade:"Upgrade",title1:"if you don't want your videos to be deleted."},studioTools:{subtitles:{generate:"Generate Subtitles",back:"Back",uploadingVideo:"Uploading Video ...",generatingSubtitles:"Generating Subtitles ..."}},notFound:{title:"404 Error",description:"OOPs, This page does not exist"},backWhileCompiling:{header:"Sorry",title:"You cannot edit the video during the export process, please wait while the video is exported",goHome:"Back to Studio"},smartClipper:{upload:{title:"Highlight Clipper Tool",description:"A generative AI video tool that repurposes long videos into shorts in one click."},generate:{title:"Highlight Clipper Settings",form:{fields:{language:{label:"Video Original Language",placeholder:"Language"},translateTo:{label:"Translate to",placeholder:"No Translation - Use Original Lang.."},timeframe:{label:"Processing Timeframe"},clipLength:{label:"Preferred Clip Length"},keywords:{label:"Topic Filter By Keywords ( Optional )",placeholder:"Add keywords, comma-separated"}},actions:{back:"Back",submit:"Get Clips"}}},clips:{delete:{header:"Delete",title:"Do you really want delete this clip ?",success:{title:"You've successfully deleted your clip"}}},processing:"We'll update you on email once we finish processing"},queueMessage:{you:"You’re",inQueue:"in the queue",title:"Upgrade your plan and enjoy Priority Rendering feature ",title1:"or You can edit other videos while your video is exporting"},textToVideo:{steps:{next:"Next",back:"Back"},script:{title:"Video Generator",videoAspectRatioTitle:"Video Dimensions",videoAspectRatioSmallTitle:"(Aspect Ratio)",videoAspectRatioDesc1:"* 9:16 for Instagram reels/story, Youtube shorts and Tiktok",videoAspectRatioDesc2:"* 16:9 for Youtube videos",videoDurationTitle:"Video Duration",scriptLanguageTitle:"Script Language",voiceoverGenderTitle:"Voiceover Actor",videoThemeTitle:"Video Theme",videoToneTitle:"Video Tone",advancedSettings:"Advanced Settings",videoIdeaTitle:"Video Idea",videoIdeaPlaceholder:"Who are the PayPal Mafia?",videoScriptPlaceholder:"Paste your script ...",videoIdeaPrefix:"",generateVideoButton:"Generate Scenes",generateScript:"Generate a Script",backgroundMusic:"Backgroun
1d music",zoomInAndOut:"Motion Effects",aiModule:"Image Generation Module",remainingCharacters:"Characters",backgroundMusicTooltip:"Uncheck the box if you would like to add the trending music using your preferred social media platforms.",zoomInAndOutTooltip:"Check the box if you want zoom in/out motion effects for each generated image. (Paid feature only)",zoomInAndOutTooltipFree:"Check the box if you want zoom in/out motion effects for each generated image.",partner:"Voice Over Powered by",durationEstimate:"Estimated Duration",edit:{generating:"Generating Script",generatingSubTitle:"Please hold on while we generate your script.",title:"Review Script",reset:"Reset",fields:{hook:{label:"Hook",placeholder:"Hook",tooltip:"The video hook is a brief, attention-grabbing start to a video, enticing viewers to keep watching."},body:{label:"Body",placeholder:"Hook",tooltip:"The video body is the main content following the hook, presenting core information or narrative."},conclusion:{label:"Conclusion",placeholder:"Conclusion",tooltip:"The video conclusion summarizes key points and brings closure to the content."}},resetAlert:{title:"Are you sure you want to reset script changes?",actionText:"Yes"},chartCount:e=>"of ".concat(e," Characters"),loader:{generating:"Generating your script ...",description:"This may take up to 3 minutes. Thank you for your patience!"}},tabs:{prompt:"Video Idea",script:"Paste Your Script"},confirmation:{header:"Are you sure you want to proceed to video generating?",title:"Depending on the prompt you choose the video duration will be around",prompt:"Video Prompt:",script:"Video Script:",properties:"Video Properties:"},voiceOverLanguageRequired:"Please specify script language",usage:{title:"Video Cost : ",disclaimer:"* Prices adjust based on your selection"},credits:e=>
1"".concat(e," Credits"),visuals:{visualsSource:{title:"Choose Visuals"},aiImages:{title:"AI Image Style"}},voiceOverSettings:{title:"Voiceover",gender:"Voice Gender",male:"Male",female:"Female"},script:{title:"Script & Visuals"},imageStyle:{title:"Images Style"}},advancedAiModulePopup:{title:"Add credits and use our more advanced image generation module",fast:"Fast",quality:"High Quality",accurate:"More Accurate",noWatermark:"No Watermark",cancel:"Cancel",addMins:"Add Credits"},generating:{title:"Your AI short video is on the way …",info:"We’re transforming your script into visuals and voice, syncing everything seamlessly, and finalizing your video.",exportInfo:"We’re transforming your script into visuals and voice, syncing everything seamlessly, and finalizing your video.",infoAction:"Back to Studio",errors:{idea:{title:"Sorry, your video idea may violate our content policy.",action:"Try Another Idea"}},processingVideo:"Processing Video ...",processingScenes:"Generating Scenes ..."},download:{downlaodButton:"Download",share:"Share",removeWatermark:"Remove Watermark",downloadMusicLicense:"Download Music License",createANewVideoButton:"Generate New Video",editVideo:"Edit Video",feedback:{title:"We’d love to hear your feedback",description:"Your feedback is very important to us to improve our services to provide the best experience for you!",success:"We appreciate your feedback. Thank you!",form:{fields:{feedback:"Write your feedback ..."},submit:"Submit"}}},limitationPopup:{title:"You’ve Reached Your Limit!",description:"Please top-up your account to be able to generate more",addMinutes:"Add Credits",videos:"Videos.",images:"Images.",voiceovers:"Voiceovers"},editor:{sidebar:{scenes:{title:"Scenes",back:"Back",backToScene:"Back",generalSettings:{animations:{title:"Motion Effects",tooltip:{title:"Motion Effects",description:"By un checking this box, you will export your video without any animations like zoom-in/out."}},subtitles:{title:"Subtitles",tooltip:{title:"Subtitles",description:"By un checking this box, you will export your video without any subtitles."}},backgroundMusic:{title:"Background Music"}},scene:{title:"Scene",replaceImage:"Change Image",editScene:"Change Scene",trim:"Trim",upload:"Upload",scale:{fill:"Scale to Fill",fit:"Scale to Fit"},deletePopup:{header:"Delete",title:"Do you really want delete this Image ?",success:{title:"You've successfully deleted your image"}},settings:{title:"Scene Settings",animation:{title:"Animation Type",none:"None"}}},changeImage:{upload:{title:"Upload File"},aiImages:{title:"Create",placeholder:"Enter prompts to generate image",back:"Back to AI Visuals"},stock:{title:"Stock Library",images:"Images",videos:"Videos",scenes:"Scenes"}},music:{title:"We’ve picked a great track for your video!"}},texts:{title:"Text",tabs:{settings:"Text Settings",effects:"Effects",presets:"Presets"}},settings:{title:"Settings"},subtitles:{title:"Subtitles",voiceOver:{title:"Voiceover",regenerate:"Regenerate",freeUsage:e=>"You have ".concat(e," free voiceover regeneration").concat(e>1?"s":"","."),confirmation:{title:"Regenerate Voiceover?",description:"This will overwrite the existing voiceover with the updated text.",currentCredits:"Your current credits are ",usedCredits:"After confirmation, your credits will be ",actionText:"Regenerate"}}},overlays:{title:"Overlays",opacity:{title:"Opacity"},background:{title:"Background Overlay"},animated:{title:"Animated Overlay"}}},export:"Export Video"},disclaimer:"We cannot control generated content. Review carefully and use at your discretion.",scenes:{delete:{error:"You can't delete the last scene",confirmation:{title:"Are you sure you want to delete this scene?"}},split:{error:"You reached minimum scene duration"}}},textToScene:{title:"Scene Generator",textToScene:"Text to Video",imageToScene:"Image to Video",usage:"Credits Used for Scene =",usageShort:"Scene =",description:"Generate a 5 second scene",form:{fields:{prompt:{label:"Describe Your Shot",placeholder:"Describe your shot, lighting, and how the scene should move ..."},aspectRatio:{label:"Scene Aspect Ratio"},sceneDuration:{label:"Scene Duration"},advancedSettings:{label:"Advanced Settings",loop:"Loop"}},imageUploader:{title:"Drag and drop your image here or ",browse:"Browse",title1:" to choose an image",maxSize:"Maximum File Size : 16MB",supportedMiemTypes:"Supports: ",library:{title:"Image Library",import:"Import from Library",empty:"You don't have any images yet. Generate an image below by writing a simple prompt."},swapFields:"Swap Fields"},submit:"Generate Video"},modelSelector:{title:"Video Model"},historyList:{title:"Generated Video History",empty:"No videos generated yet !"},preview:{generateNew:"Generate New Scene",download:"Download"},bottomNav:{settings:"Scene Settings",history:"History"},failed:{title:"Unable to Process Video",description:"We couldn't process your request because the prompt contains unsupported words.",description1:"Your credits for this video have been automatically refunded. Please try again with a different prompt.",action:"Generate a New Video"},generatePrompt:"Prompt For Me",delete:{header:"Delete",title:"Do you really want delete this video?",success:"Video deleted successfully"},header:{disclaimer:"* Prices adjust based on your selection"}},quoteToVideo:{title:"Quote to Video",cost:"Video Cost",form:{fields:{quote:{label:"Quote",placeholder:"Type your quote here",remainingCharacters:"Characters"},author:{label:"Author",placeholder:"Author's Name"}
1,visualStyle:{label:"Choose Visuals"}},submit:"Generate Video"}},textToImage:{title:"Image Generator",generate:"Generate Image",usage:"Credits Used for Image =",credits:e=>"".concat(e," Credits"),form:{fields:{prompt:{label:"Write a Prompt",placeholder:"Start Imagining..."},aspectRatio:{label:"Image Size"},imageStyle:{label:"Image Style"},superPrompt:{label:"Enhance Prompt (+10 Credits)",tooltip:"Check this box to automatically refine and improve your prompt for a better image generation, Note that the cost will increase by an additional",tooltip1:" 10 credits."}}},historyList:{title:"Generated Images",empty:"No images generated yet !"},bottomNav:{settings:"Image Settings",history:"History"}},textToSpeech:{title:"Voiceover Gen.",generate:"Generate Voiceover",usage:"Credits Used for Voiceover =",credits:e=>"".concat(e," Credits"),form:{fields:{prompt:{label:"Text",placeholder:"Start typing here or paste any text you want to turn into lifelike speech.",maxCharacters:"Characters"}}},empty:{title:"No voiceovers generated yet!"},historyList:{title:"Voiceover Generated History",empty:"No voiceovers generated yet!"},bottomNav:{settings:"Voiceover Settings",history:"History"},disclaimer:"Please note that our AI-generated voiceovers may contain imperfections and occasional errors.",loading:"This may take a few more minutes, please be patient.",listHeader:{title:"Audio Title",dateCreated:"Date Created",duration:"Duration"},voiceoverDetails:{script:{title:"Voice Over Text"}},deleteConfirmation:{header:"Delete",title:"Do you really want delete this voiceover?",success:"Voiceover deleted successfully"},feedback:{success:"We appreciate your feedback. Thank you!"}},aiAvatars:{title:"AI Avatars",header:{usage:"Cost :",disclaimer:"* Cost depends on the script's character count"},script:{title:"Script",placeholder:"Type your script here"},sampleAvatars:"Or choose a sample avatar",voiceover:"Voiceover Gender",videoSettings:{title:"Video Settings",dimension:{title:"Video Dimension"},captionStyles:{title:"Caption Styles"},backgroundStyle:{title:"Background Style"}},avatar:{title:"Choose an Avatar"},language:{title:"Script Language",placeholder:"Select a language"},selectVoiceover:{title:"Select Voiceover",none:"None"},uploadImage:{title:"Upload Image",imageTypeUnknownMessage:"Image type unknown. Please try again with a different image.",description:"Choose an image to convert to an avatar",dragBox:"Drag and drop your image here or",browse:"Browse",chooseFile:"to choose an image",supportedMiemTypes:"Supports:",disclaimer:"Your avatar must follow these rules.",seeDetails:"See Details",failed:"Avatar creation failed. Try a different photo.",maxSizeMessage:"The file is larger than 50 MB"},uploadVoiceover:{title:"Upload Voiceover",description:"Choose a voiceover to convert to an avatar",dragBox:"Drag and drop your voiceover here or",browse:"Browse",chooseFile:"to choose from your library",supportedMiemTypes:"(Supports: MP3, WAV)",minDurationMessage:"The file is smaller than 1 second",maxDurationMessage:"The file is larger than 10 minutes",fileTypeNotSupported:"The file type is not supported",sizeLimitMessage:"The file is larger than 50 MB"},imageRequirementsPopup:{title:"Photo Requirements",reason:"Your uploaded photo does not meet the requirements, please try again with a different photo, and make sure you follow the following guidelines.",goodPhotos:"Good Photos",badPhotos:"Bad Photos",description:"Recent photos of yourself (just you), showing a mix of close-ups and full-body shots, with different angles, expressions (smiling, neutral, serious), and a variety of outfits. Make sure they are High-resolution and reflect your current appearance.",description1:"No group photos, hats, sunglasses, or heavy filters. Avoid photos that are too old, low-resolution, or don't represent your current appearance."},avatarsForm:{name:{label:"Name"},gender:{label:"Gender"},ethnicity:{label:"Ethnicity"},age:{label:"Age"},modal:{title:"Your avatar is ready!",description:"Now, let's add some details to bring your avatar to life",save:"Continue with Avatar",generateNewAvatar:"Generate New Avatar"}},chooseAvatar:{myAvatars:"My Avatars",sampleAvatars:"Sample Avatars"},review:{title:"Review Uploads",description:"Approved photos have been marked and are ready to create a look for your avatar.",failed:"Upload another image",reCrop:"Re-crop Image",failedDescription:"Image not approved. Please upload one that meets the avatar rules. "},generating:{title:"Your Avatar is on the way!",exportInfo:"This may take a few more minutes, please be patient.",failed:{title:"Unable to Process Avatar",description:"We couldn't process your avatar, please try again with a different photo.",action:"Generate a New Avatar"}},customAvatarGenPopup:{background:{suggestions:"Suggestions",placeholder:"Describe the background or scene for your avatar (e.g., 'modern office setting with soft lighting', 'natural outdoor environment', 'neutral studio backdrop')"},confirmation:{title:"Are you sure you want to proceed to avatar generating ?",properties:"Avatar Properties :",hijab:"Hijab"},failed:{title:"Avatar Generation Failed",description:"We couldn’t generate your custom avatar at this time, we will refund your credits.",action:"Generate a New Avatar"}}},maintenancePage:{title:"Sorry, AI Image Editor is Under Maintenance",description:"We are currently performing scheduled maintenance. Please check back soon!"},onBoarding:{skip:"Skip"},aiImagesStudio:{imagePopup:{prompt:"Prompt",promptPrefix:"",copy:"Copy",enhancedPrompt:"Enhanced Prompt",animateTooltip:"Want to bring your image to life?",unlock:"Unlock the Full Potential of Your Image",animate:"Animate",edit:"Edit",upscale:"Upscale",model:"Model:"},delete:{header:"Delete",title:"Are you sure you want to delete this image?",success:"Image deleted successfully"}},aiVideoStudio:{videoPopup:{prompt:"Video Prompt:",properties:"Video Properties:",promptPrefix:"",copy:"Copy",emptyPrompt:"No prompt provided",quote:"Quote:",videoModel:"Video Model:",voiceoverModel:"Voiceover Model:",negativePrompt:"Negative Prompt:"}},createImage:{uploadModal:{upload:{title:"Upload Image / Video",dragBox:"Drag and drop your image or video here",or:" or ",browse:"Browse ",dragBox1:" ",info:"",upload:"Upload"},size:{title:"Max image size : ",title1:"5 MB",message:"The file is larger than 5 MB",messageDynamic:e=>"The file is larger than ".concat(e," MB"),videoMessage:"The file is larger than 150 MB"},duration:{title:"Max image duration : ",title1:"5 Minutes",message:"The file is larger than 5 Minutes"}}},creditsBalance:{title:"Credits Balance",totalCreditsAvailable:"Total Credits Available",planCreditsLeft:{title:"Monthly Credit Left",tooltip:"Remaining monthly credit, available until month-end, and resets monthly"},topUpCreditsLeft:{title:"Purchased Credits Left",tooltip:"Remaining credits available for use, representing your unused balance from your purchased credits."},monthlyCredits:"Monthly credits",purchasedCredits:"Purchased credits",planCreditsSubtitle:"Resets each billing cycle",purchasedCreditsSubtitle:"From one-time purchases",expires
1InDays:e=>1===e?"Expires in 1 day":"Expires in ".concat(e," days")},changePlan:{current:"Current Plan Credits :",tabs:{changeCurrentPlan:{title:"Change Current Plan",tooltip:"Credits will reset end of billing cycle",description:"Select below the number of credits you want in the new plan:"},oneTimePayment:{title:"One-time Payment",tooltip:"Credits will roll-over",description:"Select below the number of credits you want to top up to your account:"}}},reactivateFlow:{title:"It looks like your subscription is currently paused. No worries though, reactivating is easy and won't charge you anything.",action:"Re-activate"},yearlyDisclaimer:{title:"Looking to upgrade your current plan? Contact our support team for assistance. We're here to help enhance your subscription experience!"},sharePopup:{confirmation:{title:"Are you sure you want to share your video?",description:"Only people with link can access the video"},title:"Share Link",description:"Copy the link below to share your video"},effects:{title:"Text Effects"},highlightEffects:{title:"Text Highlight Effects"},verification:{title:"Verify Email Address",description:"We sent an OTP Code to ",change:"Change",didntReceive:"Didn’t receive OTP code ?",resend:"Resend Code",resendSuccess:"A new code has been sent to your email",verify:"Verify",checkSpam:"Didn't receive the email? Please check your spam/junk folder and add us to your safe sender list."},trimPopup:{title:"Trim Your Video",cancel:"Cancel",selectVideo:"Select Video"},invalidLink:{title:"This Video Link Isn’t Valid",description:"It seems the video link you provided isn’t valid. Double-check and try again."},creditsSysterm:{title:"The Credit System",description:"whether you a newbie as a content creator or a pro one, we have a perfect plan for you",tooltip:e=>"Credits reset to ".concat(e," every month starting from your subscription date. Buy more or Upgrade as needed.")},serviceDown:{title:e=>"".concat(e," is Temporarily Unavailable"),description:e=>"We couldn’t generate your ".concat(e," at the moment. <br /> Please try again shortly"),action:"Back to Studio",features:{image_generation:{title:"Image Generator",description:"Image"},voice_over_generation:{title:"Voiceover Gen.",description:"Voice Over"},text_to_video_script_generation:{title:"Video Gen.",description:"Script"},text_to_video_scene_generation:{title:"Video Gen.",description:"video"},scene_generation_text_to_video:{title:"Video Gen.",description:"video"},scene_generation_image_to_video:{title:"Video Gen.",description:"video"},transcription:{title:"Generate Subtitles",description:"subtitles"},quote_to_video:{title:"Quote to Video",description:"video"},avatar_photo_generation:{title:"Avatar Gen.",description:"avatar"},avatar_video_generation:{title:"Avatar Gen.",description:"avatar"},image_editor:{title:"Image Editor",description:"image"},image_upscaler:{title:"Image Upscaler",description:"image"}},modelDown:{title:e=>"".concat(e," Is Unavailable"),description:e=>"The ".concat(e," model is unavailable at the moment. Try switching to another model to continue"),back:"Back to Studio",switch:"Switch Model"},providerDown:{title:"Model Down",description:"The model is down at the moment. Please try again shortly",back:"Back to Studio",switch:"Switch Model"},templateExecutionFailure:{title:"Template Unavailable",description:"Your media can’t be generated at the moment. Our engine is down and will be back shortly.",back:"Back to Templates"}},videosOptionsPopup:{title:"AI Shorts"},serviceDownPopup:{title:"Service Down",description:"Our AI Script Generation (for the Video Idea) is undergoing maintenance and will be up and running soon.",description1:"However, the Paste Your Script feature is available."},aspectRatioAlertPopup:{title:"Invalid Image dimensions",description:e=>"The uploaded image does not meet the required dimensions. Please ensure your image width/height does not exceed ".concat(e,"px"),description1:e=>"The uploaded image does not meet the required dimensions. Please ensure your image width/height is larger than ".concat(e,"px")},faqs:{title:"Frequently Asked Questions"}
1,discoverMore:{title:"Discover More with Bith"},imageCropper:{actions:{crop:"Crop",cancel:"Cancel"}},creditsRolloverPopup:{title:"Credit Rollover is Here!",description:"Your unused credits now roll over month-to-month indefinitely, and they're always prioritized ahead of your regular monthly plan credits or any additional top-ups. Keep your subscription active to maintain your rollover balance — no action needed!"},annualPlansPopup:{title:"Annual Plans",discountAmount:"20%",descriptionPrefix:"Get ",descriptionSuffix:" off with our annual plans.",descriptionSecondary:"See new plans and updated credit terms.",cta:"Upgrade Plan"},musicRemovalConfirmation:{header:"Your video will be exported without music",title:"This track is a preview and won’t be included in your export due to copyright restrictions. You can add this specific music or other from the social media app of your choice"},deleteAccount:{header:"Delete Account",title:"Are you sure you want to delete your account?",description:"This action is irreversible and will permanently delete your account and all associated data.",action:"Delete Account",permanentAction:"Delete account permanently"},useCases:{title:"What users are Creating"},aiImageEditor:{newProject:"New Session",newProjectShort:"New",prompt:{label:"Prompt",placeholder:"Describe what you want to be changed…"},deleteConfirmation:{header:"Are you sure you want to delete this session?",title:"This will permanently delete the uploaded image and all edits made during this session. You won’t be able to recover it.",title2:"This will permanently delete all edits made during this session. The imported image from your library will remain unchanged. You won’t be able to recover the deleted edits",success:"Session deleted successfully"},editVersionActions:{download:"Download",downloading:"Downloading...",zoomIn:"Zoom In",zoomOut:"Zoom Out",fitToCanvas:"Fit to Canvas",animate:"Animate",upscale:"Upscale",copyLink:"Copy Link",removeImage:"Remove Image"},editVersion:{failed:"Failed",failedDescription:"Sorry, something went wrong and your request failed. Please try again"},newSession:{title:"AI Image Editor"},uploadImage:{title:"Upload an image or choose one from your gallery",supportedMiemTypes:"Supports: ",import:{library:"Your Gallery",upload:"Upload"},maxFilesUpTo:"* Add up to ",maxFilesUpToValue:"images"}},styleExamplesCarousel:{apply:"Apply",ariaLabel:"Style examples"},inspirationalGallery:{title:"Inspirational Gallery",backToGallery:"Back to Gallery",tools:{[o.m.AI_SHORTS]:"AI Shorts",[o.m.TEXT_TO_SCENE]:"Text to Video",[o.m.IMAGE_TO_SCENE]:"Image to Video",[o.m.QUOTE_TO_VIDEO]:"Quote to Video",[o.m.AI_AVATAR]:"AI Avatar",[o.m.TEXT_TO_IMAGE]:"Text to Image",[o.m.IMAGE_EDITOR]:"Image Editor"},details:{image:"Image",video:"Video",tool:"Tool",prompt:"Prompt",model:"Model:",properties:"Properties:",script:"Script",quote:"Quote",voiceover:"Voiceover",usePreset:"Use Preset"}},sceneGen:{imageToScene:{newSession:{title:"Image to Video"}},textToScene:{newSession:{title:"Text to Video"}},actions:{generate:"Generate",loading:"Generating..."},form:{imageUploader:{selectImages:"Select Image",upload:"Upload"}},selectModelPopup:{i2vTitle:"Choose a Model",t2vTitle:"Choose a Model",imageGenTitle:"Choose a Model",modelsTitle:"Models",button:"Use Model",audioTooltip:"This model supports audio.",searchPlaceholder:"Search for a model ...",newBadge:"New",noResults:"No models match your search.",speedTooltip:"Speed",qualityTooltip:"Quality",startFrameBadge:"Start Frame",endFrameBadge:"End Frame"},sceneItemCard:{reuseParameters:"Reuse Parameters",copyPrompt:"Copy Prompt",download:"Download"}},models:{modelsSelector:{model:"Model",viewAllModels:"Click to view all models"}},sessions:{title:"Sessions",videoOptions:"Video Options",imageOptions:"Image Options",deleteSession:{sceneGen:{header:"Are you sure you want to delete this session ?",title:"This will permanently delete all videos made during this session. You won’t be able to recover the deleted videos",success:"Session deleted successfully"},session:{header:"Are you sure you want to delete this session?",title:"This will permanently delete the session and all edits made during this session. You won’t be able to re
1cover it.",success:"Session deleted successfully"}},itemFailed:{title:"Sorry, this one failed.",description:"Please try again or change prompt or model provider.",template:{title:"Failed to Generate",description:"Please try again or change the parameters.",reasons:{chargedForFailedJob:{title:"Do I get charged for failed generations?",description:"No, you will not be charged for any failed generation."}}},reasons:{whyFailed:{title:"Why do jobs fail ?",description:"Each model provider has different availability and restrictions. Try a different provider by changing the model from the top, or change your prompt and avoid using names and references to copyrighted material. You will not be charged for any failed job."},chargedForFailedJob:{title:"Do I get charged for failed jobs ?",description:"No, you will not be charged for any failed job."}}}},imageUpscaler:{actions:{upscale:"Upscale",loading:"Upscaling..."},newSession:{title:"Image Upscaler"},editActions:{animate:"Animate",download:"Download"},session:{failed:{title:"Failed",reason:"Upscale attempt failed. Your credits have been returned."},advancedSettings:"Advanced Settings"}},imageGen:{newSession:{title:"Image Generator"},actions:{generate:"Generate",loading:"Generating..."},imageGenItemCard:{reuseParameters:"Reuse Parameters",retry:"Retry",copyPrompt:"Copy Prompt",download:"Download",upscale:"Upscale",animate:"Animate",edit:"Edit"},failed:{title:"Unable to Process Image",description:"We couldn't process your request because the prompt contains unsupported words.",description1:"Your credits for this image have been automatically refunded. Please try again with a different prompt.",action:"Generate a New Image"}},toolsNavigationDropdown:{video:"Video",image:"Image",audio:"Audio",other:"Lip-syncing"},promptBox:{warning:"Google has been reporting black screen issues with their Veo3 image to video model."},templates:{outputType:"Select Output Type",uploadFile:{title:"Click to upload",dragBox:"Drag and drop your file here",or:" or ",browse:"Browse ",dragBox1:" to choose a file",supportedMiemTypes:"Supports: ",removeFile:"Remove file"},generate:"Generate",generating:"Generating..."},toolsShortcuts:{edit:"Edit",upscale:"Upscale",animate:"Animate",photoshoot:"Studio Photoshoot"},productPhotoshoot:{title:"Photoshoot App",history:"History",header:{breadcrumbApps:"Apps"},upload:{uploading:"Uploading...",dragAndDrop:"Drag and drop your image here or",browse:"Browse",toChoose:"to choose an image",supportedFormats:"(Supports: PNG, JPG, JPEG, WEBP)",uploadFailed:"Upload failed. Please try again."},imagePreview:{altText:"Uploaded product",change:"Change"},resultViewer:{noOutput:"No output available",unableToLoad:"Unable to load image",altText:e=>"Photoshoot result ".concat(e)},actions:{generating:"Generating ...",generateShots:"Generate Shots",downloading:"Downloading...",download:"Download",downloadWebImage:"Download Web Image (WEBP)",downloadWebImageDesc:"Optimized for websites",downloadFullQuality:"Download Full Quality (PNG)",downloadFullQualityDesc:"Best quality for editing or print",edit:"Edit",createNew:"Create New Photoshoot",new:"New",errorMessage:"Something went wrong. Please try again."},dimensions:{title:"Choose Dimensions",subtitle:"For Final Output"},instructions:{step1Title:"Upload Image",step1Description:"Upload the product you want to create shots for",step2Title:"Generate 8 Shots",step2Description:"Download 8 ready-to-use visuals in different styles and scenes.",step3Title:"Create Promo Video",step3Description:"We'll pick the best visuals and create your video."},outputs:{altText:e=>"Output ".concat(e),generatedShots:"Generated shots",createProductVideo:"Create Promo Video",downloadAll:"Download All"},promo:{title:"Create Promo Video",selectionTitle:"Video selection mode",selectionDescription:"Select 5 of the generated shots below\nto animate them in the promo video",selectShotsTitle:"Select 5 shots to animate into a video",selectMusicTitle:"Select Backgroun
1d Music",backgroundMusic:"Background music",playPreview:"Play",pausePreview:"Pause",generatingTitle:"Generating promo video",generatingDescription:"We’re turning your selected shots into a short promo video. This may take up to a minute.",readyTitle:"Promo video ready",readyFallback:"Your promo video has been generated.",failedTitle:"Promo video failed",failedDescription:"We couldn’t generate the promo video. Please try again.",back:"Back",generateButton:"Create video",create:"Create",createNewVideo:"Create new video",downloadVideo:"Download Video"}},aiInfluencer:{breadcrumbApps:"Apps",buildYourInfluencer:"Build your Influencer",new:"New",history:"History",baseProfile:"Base Profile",physicalFeatures:"Physical Features",styleDetails:"Style Details",selectAtLeastOne:"Select at least one option to continue",next:"Next",back:"Back",generate:"Generate",generating:"Generating...",generateLooks:"Generate Looks",edit:"Edit",animate:"Animate",speak:"Speak",dressUp:"Dress up",tryOnOutfits:"Try On Outfits",comingSoon:"Coming soon",influencerName:"Influencer Name",save:"Save",generationFailed:"Generation Failed",generationFailedDesc:"Something went wrong while generating your AI influencer. Please try again.",tryAgain:"Try Again",emptyStateLine1:"Your AI influencer lives here.",emptyStateLine2:"Design and build your AI influencer",emptyStateLine3:"from scratch",influencerLooks:"Influencer Looks",generatedLooks:"Generated Looks",loading:"Loading...",noLooksYet:"No looks generated yet.",noLooksDesc:"Upload a product image above to create your first look.",uploadProductImage:"Upload Product Image",tapToUploadProductImage:"Tap to upload product image",uploading:"Uploading...",promptOptional:"Prompt (optional)",promptPlaceholder:"e.g. let her hold the perfume bottle",generateLook:"Generate Look",generatingLook:"Generating your look…",generateLookFailed:"Failed to generate look.",fetchLooksFailed:"Failed to load looks.",lookStatusCheckFailed:"Failed to check look status.",selectLookFirst:"Please select a look to generate from.",selectAtLeastOneField:"Please provide a prompt or select an environment, shot style, or camera angle.",describeChange:"Describe what you want to change…",environment:"Environment",shotStyle:"Shot Style",background:"Backgroun
1d",poses:"Poses",cameraAngle:"Camera Angle",optionalSection:" (Optional)",productImageAlt:"Product image",uploadProductImageAlt:"Upload product image",styleReferenceImageAlt:"Style reference image",uploadStyleReferenceAlt:"Upload style reference",customBackgroundImageAlt:"Custom background preview",uploadFailed:"Upload failed. Please try again.",renameInfluencer:"Rename Influencer",influencerNamePlaceholder:"Influencer name",cancel:"Cancel",close:"Close",download:"Download",regenerate:"Regenerate",rename:"Rename",editAttributes:"Edit attributes",delete:"Delete",newInfluencer:"New influencer",generatingCharacter:"Generating character may take up to <span class='font-bold'>2 mins</span>",actions:"Actions",nationality:"Nationality",selectNationalityForTraditional:"Select a nationality to enable Traditional.",headCoveringOmittedForAttire:"Head covering is omitted for Doctor and Chef attire."},virtualTryOn:{title:"Virtual Try-on",header:{breadcrumbApps:"Apps"},sessions:"Sessions",new:"New",showHistory:"Show History",newSession:"New Session",next:"Next",modelSelection:{chooseModel:"Choose Model",chooseTheModel:"Choose Model",male:"Male",female:"Female",uploadModelImage:"Upload Model",yourGallery:"Your Gallery",uploadHint:"One person, full body, face clearly visible",or:"Or",changeModel:"Change",continue:"Continue",creatingModelFromImage:"Creating your model… This may take a moment."},configPanel:{createLooks:"Create Looks",clothingItems:"Clothing Items",background:"Backgroun
1d",poses:"Poses",optional:"(Optional)"},upload:{dragAndDrop:"Drop your image here or",browse:"Browse",toChoose:"to choose an image",supportedFormats:"(Supports: PNG, JPG, JPEG, WEBP)"},actions:{generate:"Generate",generating:"Generating ...",download:"Download",animate:"Animate",generationFailedDesc:"Something went wrong while generating your try-on. Please try again.",generatingDescription:"Generating image may take up to <span class='font-bold'>2 mins</span>",downloading:"Downloading..."},instructions:{step1Title:"Choose a model",step1Desc:"Select a ready-made model or upload a photo of a person to use for the try-on",step2Title:"Upload your item",step2Desc:"Upload photos of the clothing items you want to try-on",step3Title:"Generate a new image",step3Desc:"A new image is generated showing the model wearing your uploaded items"}},generationProcess:{generating:(e,t)=>"Generating ".concat("image"===e?"Image":"video"===e?"Video":"audio"===e?"Audio":"product_photoshoot"===e?"Shots":"virtual_try_on"===e?"Try-On":"Mixed")+' may take up to <span class="font-bold text-ph-color">'.concat(t," minutes.</span>"),pleaseWait:"Hang tight! You can start another creation while this one processes.",statusLabels:{pending:"In Queue",inqueue:"In Queue",running:"In Queue",processing:"Processing",completed:"Completed",failed:"Failed"}},ugcVideo:{heroDiscountOff:"OFF",heroDiscountDaysLeft:e=>1===e?"day left":"days left",title:"UGC Video Generator",breadcrumbApps:"Apps",steps:{category:"Choose Category",productInfo:"Product Info",serviceInfo:"Service Info",subjectInfo:"Subject Info",language:"Language & Dialects",character:"Character",location:"Choose Location",script:"Script",summary:"Video Summary"},category:{physical_products:"Physical Product",physical_products_desc:"Beauty, electronics, and tangible items.",fashion_accessories:"Fashion & Accessories",fashion_accessories_desc:"Clothing, jewelry, bags & wearables.",packaged_goods:"Packaged Goods",packaged_goods_desc:"Food, snacks, & beverages.",software:"Software",software_desc:"SaaS, apps, games, & digital tools.",service_providers:"Service Providers",service_providers_desc:"Banks, legal firms, agencies, event planning companies, & businesses.",subject_matter_experts:"Subject Matter Experts",subject_matter_experts_desc:"Doctors, lawyers, consultants, coaches, educators & niche creators."},language:{arabic:"Arabic",english:"English",french:"French",spanish:"Spanish",turkish:"Turkish"},location:{office:"Office",living_room:"Living Room",bedroom:"Bedroom",kitchen:"Kitchen",bathroom:"Bathroom",car:"Car",restaurant:"Restaurant",podcast_studio:"Podcast Studio",airport:"Airport",other:"Other"},dialect:{standard_arabic:"Standard Arabic",najdi:"Najdi",emirati:"Emirati",egyptian:"Egyptian",jordanian:"Jordanian",kuwaiti:"Kuwaiti",omani:"Omani",iraqi:"Iraqi",qatari:"Qatari",bahraini:"Bahraini",syrian:"Syrian",lebanese:"Lebanese",palestinian:"Palestinian",moroccan:"Moroccan",tunisian:"Tunisian",algerian:"Algerian",yemeni:"Yemeni",american:"American",british:"British",scottish:"Scottish",irish:"Irish",australian:"Australian",middle_eastern:"Middle Eastern",indian:"Indian"},placeholders:{brandName:"Dar Alteeb",productName:"Layali Al Sharq Eau de Parfum",companyName:"Acme Services Co.",productDescription:"A luxurious oriental fragrance with rich oud, amber, and musk notes, crafted for a long-lasting and elegant scent.",topicDescription:"Explain how your service helps customers save time.",targetAudience:"Men aged 25–45 who appreciate premium Arabic fragrances",offer:"Buy 1 Get 1 Free or 20% Off"},fields:{brandName:"Brand Name",productName:"Product Name",companyName:"Company Name",productDescription:"Product Description",topicDescription:"Video Topic Description",targetAudience:"Target Audience",offer:"Promotional Offer"},wizard:{stepLabel:"Step",stepWithCode:e=>"Step ".concat(e),stepProgress:(e,t)=>"Step ".concat(e,"/").concat(t),currentStep:"Current Step",back:"Back",next:"Next",saving:"Saving…",submitting:"Submitting…",generateCta:"Generate Video ({credits} credits)",generate:"Generate Scenes",pickDialect:"Pick a Dialect",videoProperties:"Video Details",scriptPreview:"Video Script",summaryCategory:"Category",summaryLanguageDialect:"Language & Dialect",summaryLanguage:"Language",summaryLocation:"Location",summaryCustomLocation:"Custom reference image",summaryCost:"Cost",summaryCredits:"credits",summaryBalance:"Your balance",summaryDelivery:"Delivery within {hours} hours after submission.",summaryInsufficientCredits:"You need more credits to generate this video.",banner:"Your UGC video will be ready within {hours} hours. We'll notify you by email once it's done.",bannerMobile:"Your UGC video will be ready within {hours} hours. We'll notify you by email once it's done.",steps:["Category","Product Details","Character","Language & Dialects","Location","Script","Video Scenes"],loading:"Loading wizard…",draft:"Draft",processing:"Processing",processingSubmittedTitle:"Your request has been submitted!",processingSubmittedDescription:"Your UGC video is now being processed. Generation may take up to {hours} hours, and we'll send you an email notification as soon as your video is ready.",generation:{description:"Your UGC video is being generated. We'll email you when it's ready.",scenesProgress:(e,t)=>"".concat(e," of ").concat(t," scenes"),creatingScene:"Creating scene...",waitingScene:"Waiting...",sceneFailed:"Could not create scene",sceneFailedInline:"Sorry, we couldn't create the scene. It may contain content that is not allowed.",retryScene:"Retry",retryingScene:"Retrying...",failedTitle:"Sorry, we couldn't create the scenes",failedTitleWithReasons:"Sorry, we couldn't create the scenes. The reason might be:",failedReasonKnownPerson:"The scene contains a known person who cannot be used.",failedReasonProhibitedContent:"The scene contains content that is not allowed.",failedReasonImageProcessing:"The uploaded image cannot be processed.",failedMessage:"An unexpected problem occurred during scene creation. Please try again.",failedMessageCreditsRefunded:"An unexpected problem occurred during scene creation. Your credits have been refunded. Please try again.",stages:{default:"Preparing your video...",sceneBreakdown:"Breaking down your script into scenes...",referenceImage:"Preparing the reference image...",scenePrompts:"Generating scene prompts...",sceneGeneration:"Rendering your video scenes..."},sceneRoles:{hook:"Hook",pain:"Pain point",problem:"Problem",discovery:"Discovery",step:"Explanation",result:"Result",cta:"Call to action"}},createAnotherVideo:"Create Another Video",newVideo:"New Video",downloadVideo:"Download Video",videoUnavailable:"Video unavailable",orFillManually:"Or fill manually",importProduct:"Import Data",importData:"Import Data",importFromUrl:"Import Data",urlImportTitle:"Start with just a product link",urlImportDescription:"Add your product link only — images and product details fill in automatically, so you can start creating right away.",importUrlPlaceholder:"https://example.com/product-page",addProductLinkPlaceholder:"Add your product link",pasteUrl:"Paste URL",urlImportStarting:"Starting…",urlImporting:"Importing…",urlImportStarted:"Import started — product details will appear shortly.",urlImportInProgress:"An import is already in progress. Wait for it to finish or fill the form manually.",urlImportPhase1:"Importing product details from URL — this may take a moment.",urlImportFailedHint:"Fill the form manually or try a different URL.",urlImportSuccess:"Product imported successfully",productImagesLabel:"Product Images",maxProductImagesAllowed:"Only one product image is allowed.",relevantImagesLabel:"Relevant Images",productDetailsSection:"Product Details",additionalInfoSection:"Additional Information",additionalInfoHint:"(Add details that help improve the video)",serviceDetailsSection:"Service Details",subjectDetailsSection:"Subject Details",uploadProductImages:"Upload product images",dropzoneLead:"Drag and drop your image here or ",browse:"Browse",dropzoneTail:" to choose an image",supportedFormats:"(Supports: PNG, JPG, JPEG, WEBP)",uploading:"Uploading…",generatingScript:"Creating video script… This may take up to 2 mins",generatingScriptHtml:'Creating video script… This may take up to <span class="font-bold text-ph-color">2 mins</span>',scriptConfirmTitle:"Confirm your selections",scriptConfirmDescription:"Review your choices before we generate your script.",scriptConfirmGenerate:"Generate Script",scriptInQueue:"In Queue",scriptRegenerate:"Create new text",scriptReset:"Restore original text",scriptSaveEdits:"Save Edits",scriptUndo:"Undo",scriptRedo:"Redo",scriptVideoDurationHint:"The video may vary between 30-45 seconds.",scriptSectionsRequired:"Hook, Content, and Call to Action are all required.",scriptPastePlaceholder:"Paste or type your script here...",scriptTabs:{generated:"Generated Script",edit:"Edit",paste:"Use your Script"},scriptSections:{hook:"Hook",body:"Content",cta:"Call to Action"},characterTabs:{bith:"Bith Creators",user:"My Creators"},createAiInfluencer:"Create Character",myCharacters:"My characters",readyCharacters:"Ready characters",showAll:"View All",viewCharacterSheet:"View character photos",hideCharacterSheet:"Hide character photos",buildYourInfluencer:"Build your Character",generateCharacter:"Generate Character",characterEmpty:"You don’t have any characters. You can create your character in our AI Influencer app.",sexFilter:{genderLabel:"Gender",all:"All",male:"Male",female:"Female"},describeLocation:"Describe Location",locationDescriptionPlaceholder:"A luxuri
1ous oriental fragrance with rich oud, amber, and musk notes, crafted for a long-lasting and elegant scent.",referenceImage:"Reference Image (Optional)"},editor:{sceneEditIntro:{badge:"New",title:"Control the video after creating it",description:"Watch the video, edit the dialogue text, and recreate any scene easily until you reach the result you want before exporting the final video.",cta:"Start editing"},play:"Play",pause:"Pause",noPreview:"Preview unavailable",expandPanel:"Expand panel",openMenu:"Open menu",fullscreenPreview:"Fullscreen preview",exitFullscreenPreview:"Exit fullscreen preview",videoScenes:"Video scenes",dialogueText:"Dialogue text",dialoguePlaceholder:"Edit scene dialogue...",dialogueCharacterCount:"{count} of {max} characters",recreateScene:"Regenerate scene ({credits})",recreateSceneAction:"Regenerate scene",recreatingScene:"Regenerating scene...",recreatingHint:"This may take up to 5 minutes.",exportVideo:"Export Video",exportingVideo:"Exporting...",exportStarted:"Export started. We'll notify you when it's ready.",exportCompleted:"Your video is ready. Check your library to download it.",exportFailed:"Could not export video. Please try again.",recreateSceneFailed:"Could not regenerate scene. Please try again.",retrySceneFailed:"Could not retry scene. Please try again.",sceneRegenerationFailed:"We couldn't regenerate this scene. Please try again.",restoreVersionFailed:"Could not restore this version. Please try again.",sceneHistory:"Scene history",sceneVersionLabel:"Version {number}",sceneVersionLabelActive:"Version {number} (active)",restoreVersion:"Restore this version",restoringVersion:"Restoring...",smartCutLabel:"Remove Pauses",smartCutEnabledHint:"Enabled for this scene",smartCutDisabledHint:"Disabled for this scene",smartCutProcessing:"Removing pauses periods...",smartCutFailed:"Could not start Remove Pauses. Please try again.",smartCutCompleted:"Pauses have been removed."},exportResult:{videoDetails:"Video Details",videoScript:"Video Script",contentType:"Content Type",languageDialect:"Language & Dialect",videoEnvironment:"Video Environment",character:"Character",processingTitle:"Your video is being export...",processingHintPrefix:"This may take up to ",processingHintDuration:"10 minutes",backToStudio:"Back to Studio",createAnotherVideo:"Create Another Video",editVideo:"Edit Video",downloadVideo:"Download Video",downloadingVideo:"Downloading...",feedbackQuestion:"How was the result?",feedbackExcellent:"Excellent",feedbackUnsatisfactory:"Poor",feedbackThanksPositive:"Glad you liked it!",feedbackThanksNegative:"Thanks for your feedback",feedbackDismiss:"Dismiss"}},ugcVideoLanding:{seo:{title:"Arabic UGC Video Ads — Bith.ai",description:"Create native Arabic video ads with the right dialect, familiar faces, and local settings. Test more ads for less with Bith UGC Video Generator.",keywords:"Arabic UGC video, video ads Arabic, AI video ads, UGC generator, dialect video ads"},header:{getStarted:"Start creating"},hero:{eyebrow:"How winning ads are made",title:"Your ads, in your customers' dialect",subtitle:"A winning ad needs four things: the right dialect, a familiar face, a script that sells, and a setting that fits your brand. Bith brings them together in a ready video—no production crew required.",primaryCta:"Start creating",secondaryCta:"See examples"},sevenSteps:{eyebrow:"How you create with Bith",title:"From idea to ready ad in 7 simple steps",subtitle:"Clear, fast choices—no technical skills or editing experience required.",steps:[{title:"Choose your video type",description:"Beauty, food, apps, services, and more"},{title:"Add product details",description:"Upload a product image and a short description—that's all we need to understand your idea."},{title:"Create or choose a character",description:"Pick from the library or create a character unique to your brand"},{title:"Choose language and dialect",description:"Your ad speaks your audience's language: Arabic, English, and dialects like Khaleeji, Egyptian, and Levantine."},{title:"Choose the setting",description:"An environment that fits your product: home, car, store, and more."},{title:"Generate the script",description:"Bith writes the script for you, and you can edit it easily"},{title:"Submit your request",description:"Review your choices and send the request"}]},whyBith:{eyebrow:"Why Bith",title:"Ads that look local, without the complexity",cards:[{title:"Native languages and dialects",description:"Your ad speaks your audience's language: Arabic, English, and local dialects like Khaleeji, Egyptian, and Levantine."},{title:"Familiar faces, local settings",description:"Characters and places that feel real to your customers, so your ad feels native"},{title:"A character exclusive to your brand",description:"Build a character that represents your identity and builds trust with every ad"},{title:"No editing experience needed",description:"The interface is all clear options—no complex commands or design tools required."}]},budget:{eyebrow:"The math",title:"Same budget: a few ads, or a full testing pipeline",sliderLabel:"Monthly creative budget",hint:"Adjust to see how many ads your budget can produce",traditional:{tag:"Traditional Ad",videosPerMonth:"videos / mo",perVideo:"~$250 per video"},bith:{tag:"With Bith",videosPerMonth:"videos / mo",perVideo:"~$25 per video",multiplier:"more creative"}}
1,localLayers:{eyebrow:"Built for Arabic-speaking markets",title:"Every layer of the video feels local",subtitle:"From the script to the face, dialect, setting, captions, and product scene, every detail is built to feel native.",footnote:"Arabic is our strongest edge. English and other languages are supported too.",cards:[{title:"Real dialects",description:"Khaleeji, Egyptian, Levantine, and more, with lip-syncing that matches the dialect."},{title:"Your product, in frame",description:"Upload your product and show it held, applied, or presented clearly, with pack text kept legible."},{title:"Regional faces & settings",description:"Real-looking characters and scenes that fit your market, from a growing regional library."},{title:"Correct Arabic on-screen text",description:"On-screen text and subtitles are rendered in proper Arabic script, right-to-left, every time."},{title:"Test the variables that matter",description:"Generate variations across hooks, CTAs, characters, dialects, and locations, then keep what performs."},{title:"Next-day, not next-month",description:"Reviewed videos in 24 hours, not the days or weeks a shoot takes."}]},samples:{eyebrow:"Real examples",title:"See what brands like yours can create",subtitle:"If you run paid social, Bith is built for you: real ads for different industries and dialects.",categories:{physicalProduct:"Physical Product",fashionAccessories:"Fashion & Accessories",packagedGoods:"Packaged Goods",software:"Software",serviceProviders:"Service Providers",subjectMatterExperts:"Subject Matter Experts"},items:{physicalProduct:[{title:"Products",subtitle:"Skincare"},{title:"Products",subtitle:"Perfumes"},{title:"Products",subtitle:"Daily essentials"}],fashionAccessories:[{title:"Fashion",subtitle:"Abayas"},{title:"Fashion",subtitle:"Sportswear"},{title:"Fashion",subtitle:"Accessories"}],packagedGoods:[{title:"Food & beverages",subtitle:"Dietary supplements"},{title:"Food & beverages",subtitle:"Energy drinks"},{title:"Food & beverages",subtitle:"Confectionery"}],software:[{title:"Software",subtitle:"Mobile apps"},{title:"Software",subtitle:"SaaS & B2B"},{title:"Software",subtitle:"Product story"}],serviceProviders:[{title:"Services",subtitle:"Telecom"},{title:"Services",subtitle:"Insurance"},{title:"Services",subtitle:"Delivery"}],subjectMatterExperts:[{title:"Experts",subtitle:"Health & wellness"},{title:"Experts",subtitle:"Finance"},{title:"Experts",subtitle:"Education"}]},prev:"Previous",next:"Next"},pricing:{eyebrow:"Simple monthly plans",title:"Choose the ad volume you need each month",subtitle:"Bith gives you more testing volume at a fraction of the cost.",perMonth:"/ month",videosPerMonth:"video ads",singleVideoAd:"1 video ad",creatorVideoAds:"Up to 3 video ads",businessVideoAds:"Up to 9 video ads",perMonthSuffix:"/ month",approxPerVideo:"Approx.",perVideo:"per video",startCreating:"Start creating",mostPopular:"Most popular",swipeHint:"Swipe to compare plans →",footnote:"Videos delivered within 24 hours. Cancel anytime. Dialect and cultural quality included on every plan.",enterprise:{title:"Enterprise",headline:"Let's talk",subtitle:"For teams scaling creative production",perVideo:"Custom volume and pricing",cta:"Let's talk to sales",features:["Multiple languages and dialects","Ready-made characters with local features","Create your own characters","Script generator","Ready backgrounds and scenes"]},planFeatures:{pro:["Multiple languages and dialects","Ready-made characters with local features","Create your own characters","Script generator","Ready backgrounds and scenes"],creator:["Multiple languages and dialects","Ready-made characters with local features","Create your own characters","Script generator","Ready backgrounds and scenes"],business:["Multiple languages and dialects","Ready-made characters with local features","Create your own characters","Script generator","Ready backgrounds and scenes"]}},bottomCta:{title:"Create more winning ads, faster, in your language",subtitle:"Don't waste your budget—start producing ads built to perform",cta:"Start now",footnote:"Videos delivered within 24 hours. Cancel anytime."},footer:{tagline:"The Arabic AI UGC platform \xb7 [email protected]"}}}
1,ar:n,es:{global:{off:"off",createNew:"Crear nuevo",backTo:"Volver a",viewAll:"Ver todos",showAll:"Mostrar todos",featured:"Destacados",select:"Seleccionar ...",nationality:"\xbfCu\xe1l es la nacionalidad?",cost:"Costo",failed:"Fall\xf3",characters:"Caracteres",durationEstimate:"Duraci\xf3n estimada",step:"Paso",gotIt:"Entendido",rechargesOn:"Se recarga el",topUp:"Recargar",rollover:"Transferir",plan:"Plan",active:"Activo",collapse:"Contraer",expand:"Expandir",otherPlaceholder:"Otro",featuredTools:"Herramientas destacadas",export:"Exportar",free:"Gratis",thankYou:"\xa1Gracias!",generatingScenes:"Generando escenas...",optional:"Opcional",feedbackSuccess:"\xa1Gracias por tu feedback!",noAudio:"No audio",ex:"* Ejemplos",comingSoon:"Pr\xf3ximamente",comingSoonLong:"Pr\xf3ximamente",promptCopySuccess:"Solicitud copiada al portapapeles",scriptCopySuccess:"Gui\xf3n copiado con \xe9xito",quoteCopySuccess:"Cita copiada al portapapeles",downloadImageSuccess:"Imagen descargada con \xe9xito",downloadVideoSuccess:"Video descargado con \xe9xito",downloadVoiceoverSuccess:"Narraci\xf3n descargada con \xe9xito",linkCopiedSuccess:"Enlace copiado con \xe9xito",summerSale:"(40% de descuento de verano)",winterSale:"(40% de descuento de invierno)",sale:"%",sortby:"Ordenar por:",filterBy:"Filtrar por:",megaByte:"MB",since:"Suscrito desde",of:"de",gb:"GB",perMonthShort:"/mes",perMonth:"/ Mes",perMonthYearly:"facturado anualmente",perYear:"/ A\xf1o",choosePlan:"Elegir plan",getStarted:"Comenzar",currentSubscription:"Suscripci\xf3n actual",currentPlan:"Plan actual",changePlan:"Cambiar plan",reActivate:"Reactivar plan",moreFromBith:"M\xe1s de BithAI",all:"Todo",studio:"Estudio",backSignIn:"Volver a iniciar sesi\xf3n",back:"Atr\xe1s",next:"Siguiente",backToStudio:"Volver al estudio",generateAvatar:"Generar avatar",backHome:"Volver a la p\xe1gina de inicio",createVideo:"Editar un video",uploadVideo:"Subir video",yourAccount:"Tu cuenta",filters:{search:"Buscar...",tenorSearch:"Buscar en Tenor",sort:"Ordenar por",filterBy:"Filtrar por",pixabaySearchPlaceholder:"Buscar im\xe1genes en pixabay",pixabaySearchVideosPlaceholder:"Buscar videos en pexels",poweredBy:"V\xeddeos proporcionados por"},learnHow:"Aprender c\xf3mo",done:"Hecho",bith:"Bith.ai",shortSignUp:"Registrarse",shortSignIn:"Iniciar sesi\xf3n",language:"العربية",en:"EN",ar:"AR",upload:"Subir",continueEditing:"Continuar editando",continue:"Continuar",signup:"Registrar una cuenta",login:"Iniciar sesi\xf3n",home:"Inicio",contactUs:"Cont\xe1ctanos",terms:"T\xe9rminos y condiciones",privacy:"Pol\xedtica de privacidad",error_url:"/ilustraciones/404_Imagen.svg",home_page:"P\xe1gina principal",save:"Guardar",soon:"Pronto",new:"Nuevo",or:"o",socialLabel:"Iniciar sesi\xf3n con",imagesValidation:{typeNotAllowed:"Solo puedes subir fotos de portada JPG/PNG",coverLarge:"El tama\xf1o de la foto de portada debe ser de 2MB o menos"},normalImagesValidation:{typeNotAllowed:"Solo puedes subir fotos JPG/PNG",large:"El tama\xf1o de la imagen debe ser de 2MB o menos"},showMore:"Mostrar m\xe1s",connect:"Conectar",connected:"Conectado",noResults:"No se encontraron resultados",validations:{shortRequired:"(Obligatorio)",required:"Este campo es obligatorio",invalidUrl:"URL inv\xe1lida",invalidSocialMediaHandle:"Manejo de redes sociales inv\xe1lido",messageDynamic:e=>"El archivo es mayor que ".concat(e," MB")},confirmationAlert:{no:"No",yes:"S\xed"},fileTypeNotSupported:e=>{let{videoType:t}=e;return"El formato de archivo ".concat(t," no es compatible.")},sizeLimit:"Lo sentimos, tu archivo subido excede el l\xedmite de tama\xf1o.",sizeLimitMaxDescription:"El tama\xf1o m\xe1ximo para subir es",maxSizeLimit:"200 MB",remove:"Eliminar",delete:"Borrar",cancel:"Cancelar",close:"Cerrar",move:"Mover",restore:"Restaurar",time:{mins:e=>1===e||e>10?"Minuto":"Minutos",minsMobile:"m",secs:e=>1===e||e>10?"Segundo":"Segundos",hours:e=>1===e||e>10?"Hora":"Horas",days:e=>1===e||e>10?"D\xeda":"D\xedas"},minutes:e=>1===e||e>10?"Minuto":"Minutos",seconds:e=>1===e||e>10?"Segundo":"Segundos",credits:e=>"Cr\xe9ditos",perEdit:"/Editar",oneTime:"(Pago \xfanico)",upgradeToPro:"Actualizar a Pro",upgradePlan:"Actualizar plan",upgrade:"Mejorar",downgrade:"Degradar",generateClips:"Generar",generateAVideo:"Generar un video",clips:"Clips",processing:"Procesando",continueGenerating:"Editar gui\xf3n",editScenes:"Editar video",showLess:"Mostrar menos",poweredby:"Desarrollado por",proceed:"Proceder",paidFeature:"Funci\xf3n de pago",download:"Descargar",generateImage:"Generar nueva imagen",generateImageShort:"Generar imagen",generateScene:"Generar nuevo video",generateVideo:"Generar nuevo video",generateVideoShort:"Generar video",editVideo:"Editar",share:"Compartir",copyShared:"Copiar enlace compartido",addCredits:"Agregar cr\xe9ditos",images:e=>"Im\xe1genes",copy:"Copiar",copied:"Copiado",creditsUsed:"Cr\xe9ditos utilizados",and:"y",backToMenu:"Volver al men\xfa principal",videoPopup:{showDetail
1s:"Detalles del video",showVideo:"Mostrar video"},somethingWentWrong:"Algo sali\xf3 mal",empty:{videos:"No se encontraron videos",scenes:"No se encontraron escenas",images:"No se encontraron im\xe1genes"},useTemplate:"Usar plantilla"},account:{dropDown:{accountSettings:"Configuraci\xf3n de la cuenta",logout:"Cerrar sesi\xf3n"}},signUp:{title:"Crear una nueva cuenta",fields:{username:{label:"Nombre de usuario",illegal_chars:"El nombre de usuario contiene caracteres no permitidos.",minUserNameMessage:"El nombre de usuario debe tener al menos 5 caracteres.",maxUserNameMessage:"El nombre de usuario no debe exceder los 24 caracteres."},email:{label:"Correo electr\xf3nico"},password:{label:"Contrase\xf1a",password_illegal_chars:"La contrase\xf1a debe incluir un n\xfamero y tener al menos 8 caracteres.",password_rules:"La contrase\xf1a debe incluir un n\xfamero y tener al menos 8 caracteres."},confirm_password:{label:"Confirmar contrase\xf1a",password_validation:"Las contrase\xf1as no coinciden."},emailMarkiting:{label:"Quiero recibir noticias, actualizaciones de funciones, descuentos y ofertas de Bith.ai"},terms:{label:"Reconozco que he le\xeddo los ",label2:"y acepto los "}},actions:{submit:"Crear cuenta",login:"\xbfTienes una cuenta?",login1:"Iniciar sesi\xf3n",continueWithEmail:"Continuar con correo electr\xf3nico"}},login:{title:"Iniciar sesi\xf3n en tu cuenta",socialTitle:"Bienvenido a BithAI",forgotPassword:"\xbfOlvidaste tu contrase\xf1a?",fields:{email:{label:"Correo electr\xf3nico",errors:{required:"Este campo es obligatorio"}},password:{label:"Contrase\xf1a",errors:{required:"Este campo es obligatorio."}}},actions:{submit:"Iniciar sesi\xf3n",signUp:"\xbfA\xfan no tienes una cuenta?",social:"Iniciar sesi\xf3n con tu cuenta social",continueWithEmail:"Iniciar sesi\xf3n manualmente"}},contactUs:{info:"Informaci\xf3n de contacto",email:"Correo electr\xf3nico",social:"Con\xe9ctate en redes sociales"},help:{layout:{title:"Bith.ai",pages:{terms:"T\xe9rminos y condiciones",privacy:"Pol\xedtica de privacidad",guide:"Gu\xeda de Bith"}}},validations:{email:{illegal:"El correo electr\xf3nico ingresado no es v\xe1lido.",invalid:"El correo electr\xf3nico ingresado no es v\xe1lido."},required:"Este campo es obligatorio",maxTextLength:"La longitud del texto debe ser menor a 255 caracteres",minTextLength:"La longitud del texto debe ser mayor a 5 caracteres",maxTextLengthDynamic:e=>"La longitud del texto debe ser menor a ".concat(e," caracteres"),minTextLengthDynamic:e=>"La longitud del texto debe ser mayor a ".concat(e," caracteres"),maxNumberDynamic:e=>"M\xe1ximo ".concat(e),minNumberDynamic:e=>"M\xednimo ".concat(e),oneFieldIsRequiredAtLeast:"Se requiere al menos un campo",textFieldsMin:e=>"La longitud del texto debe ser mayor a ".concat(e," caracteres para todos los campos combinados"),textFieldsMax:e=>"La longitud del texto debe ser menor a ".concat(e," caracteres para todos los campos combinados")},socialLogin:{facebook:"Facebook",twitter:"Twitter",google:"Google",discord:"Discord",twitch:"Twitch",apple:"Apple"},appBanner:{title:"Descargar la app de BithAI",subTitle:"Descargar la app de BithAI",action:"Instalar"},resizer:{layers:{source:"Despu\xe9s:",before:"Antes:"},compileActions:{continueEditing:"Continuar editando",skip:"Omitir ediciones",skipDescription:"(Sin ediciones)",compile:"Editar y subir",next:"Siguiente"},importFaild:{title:"Error al importar el archivo",upload:"Subir"},editorSettings:{faceCam:"C\xe1mara frontal:",outlinesBefore:"Contornos:",outlineAfter:"Contornos:",original:"Original",output:"Salida"},outputSettings:{aspectRatio:"Seleccionar tama\xf1o",fps:"Fotogramas por segundo (FPS):",quality:"Calidad:"},preview:{title:"Haz clic aqu\xed para",description:"Redimensionar m\xe1gicamente"},templates:{action:"Cambiar dise\xf1o",modal:{title:"Elegir dise\xf1o",description:"Convierte tu video al tama\xf1o que desees."}},resetChanges:"Restablecer cambios"},socialMediaDistribution:{connectedAccounts:"Cuentas conectadas",action:"Conectar cuentas",disconnect:"Desconectar cuenta",selectPage:"Seleccionar p\xe1gina",unSelectPage:"Deseleccionar p\xe1gina",tiktokNote:"Recibir\xe1s una notificaci\xf3n de la app de TikTok en tu dispositivo m\xf3vil para continuar el proceso de publicaci\xf3n desde all\xed.",needMobileInstallation:"Una vez publicado, deber\xe1s continuar publicando el video desde tu cuenta en la app m\xf3vil de BithAI.",enable:"Habilitar publicaci\xf3n en esta cuenta conectada",publish:"Publicar",publishDownload:"Publicar y descargar"},advancedEditor:{sideBar:{media:"Medios",layers:"Capas",text:"Texto",audio:"Audio",gifs:"GIFs",videos:"Videos",images:"Im\xe1genes",effects:"Efectos",subtitles:"Subt\xedtulos"},panels:{general:{title:"General",settings:"Igualar fuente",quality:"Resoluci\xf3n de exportaci\xf3n",fps:"Fotogramas por segundo (FPS)",bgColor:"Color de fondo"},timing:"Tiempo",texts:{tabs:{textSettings:"Configuraci\xf3n de texto",effects:"Efectos",timing:"Tiempo"},title:"Configuraci\xf3n de texto",editText:"Editar texto",fontFamily:"Fuente",lockRatio:"Bloquear relaci\xf3n",color:"Color de fuente",outline:"Contorno del texto",off:"APAGADO",on:"ENCENDIDO",stroke:{title:"Contorno del texto",color:"Color del c
1ontorno",width:"Ancho"},background:{title:"Fondo del texto",color:"Color",corners:"Esquinas",padding:"Relleno",opacity:"Opacidad"},effect:{textColor:"Color del texto",backgroundColor:"Color de fondo"}},audio:{title:"Audio",volume:"Volumen",noAudio:"Este video no tiene audio"},image:{title:"Imagen",tabs:{settings:"Imagen"}},video:{title:"Video",tabs:{settings:"Video"}},gifs:{title:"GIFs"},shared:{layer:"Capa",delete:"Eliminar",backward:"Hacia atr\xe1s",forward:"Hacia adelante",sendToFront:"Enviar al frente",sendToBack:"Enviar al fondo"},effects:{title:"Efectos de caja"},subtitle:{title:"Subt\xedtulos",applyToAll:"Aplicar configuraci\xf3n a todos los subt\xedtulos"}},media:{switcher:{myLibrary:"Mi biblioteca",stock:"Banco de im\xe1genes",aiImages:"Im\xe1genes AI"}},texts:{tooltip:"Fuente que maneja texto en ingl\xe9s y \xe1rabe",actions:{english:"Ingl\xe9s",arabic:"\xc1rabe"}},subtitles:{title:"Subt\xedtulos",generate:"Generar subt\xedtulos",selectLanguage:"Seleccionar idioma manualmente",language:"Idioma",original:"Idioma original",translate:"Traducir a (opcional)",translatePlaceholder:"Sin traducci\xf3n - Usar idioma original",transcriptionLeft:"transcripci\xf3n restante",selectLanguageError:"Por favor selecciona un idioma",generating1:"Por favor espera",generating:"Estamos generando tus subt\xedtulos",noTranscriptionError:"No se encontr\xf3 transcripci\xf3n",settings:{title:"Configuraci\xf3n de subt\xedtulos",grouped:"Agrupado",single:"\xdanico"},addNew:"Agregar nuevo subt\xedtulo",addError:"No puedes agregar subt\xedtulos fuera de la duraci\xf3n del video",tabs:{subtitles:"Subt\xedtulos",options:"Opciones"},delete:{title:"Eliminar subt\xedtulos",description:"\xbfEst\xe1s seguro de que deseas eliminar los subt\xedtulos de este video?"},downloadSrt:"Descargar archivo SRT"},audio:{sound:{title:"Sonidos"}},images:{title:"Im\xe1genes",tabs:{filled:"Rellenas",transparent:"Transparentes"}},videos:{title:"Videos"},gifs:{title:"GIFs"},disclaimer:{title:"\xbfEl video se ve borroso?",description:"Reduce la resoluci\xf3n del video en el editor para que puedas disfrutar de una experiencia de edici\xf3n y reproducci\xf3n m\xe1s r\xe1pida. No te preocupes, se usar\xe1 la resoluci\xf3n original del video cuando lo compartas.",durationLimitTitle:"Advertencia de duraci\xf3n",durationLimit:"El clip no debe exceder 1 minuto"},tooltips:{split:{title:"Dividir",shortCut:{mac:"S",wind:"S"}},undo:{title:"Deshacer",shortCut:{mac:"Cmd + Z",wind:"Ctrl + Z"}},redo:{title:"Rehacer",shortCut:{mac:"Cmd + Shift + Z",wind:"Ctrl + Shift + Z"}},play:{title:"Reproducir",shortCut:{mac:"Espacio",wind:"Espacio"}},pause:{title:"Pausar",shortCut:{mac:"Espacio",wind:"Espacio"}},duplicate:{title:"Duplicar"},delete:{title:"Eliminar",shortCut:{mac:"Retroceso",wind:"Supr"}},zoomIn:{title:"Acercar",shortCut:{mac:"Cmd + Rueda del rat\xf3n hacia arriba",wind:"Ctrl + Rueda del rat\xf3n hacia arriba"}},zoomOut:{title:"Alejar",shortCut:{mac:"Cmd + Rueda del rat\xf3n hacia abajo",wind:"Ctrl + Rueda del rat\xf3n hacia abajo"}},zoomToFit:{title:"Ajustar a la pantalla"}},commingSoon:"Pr\xf3ximamente",uploadFlow:{backToMagicResizer:"Volver a Magic Resizer",steps:{resizer:"Redimensionador",editor:"Editar",share:"Compartir"},actions:{editAndUpload:"Editar y compartir"}},timeLine:{openTimeLine:"Abrir l\xednea de tiempo",limitationPopup:{title:"Lo sentimos, has excedido el l\xedmite de duraci\xf3n de tu l\xednea de tiempo de '10 minutos', cualquier edici\xf3n hecha despu\xe9s de esta duraci\xf3n no ser\xe1 incluida en tu video.",actions:{cancel:"Volver a editar",ok:"Exportar de todos modos"}}}},homeMobile:{superWindow:{info:"El software de edici\xf3n de video m\xe1s f\xe1cil",title:"Creaci\xf3n de contenido",title2:"Hecha f\xe1cil",title3:" ",description:"BithAI es un editor de video todo en uno gratuito para llevar tu contenido al siguiente nivel",description2:"",desktop:"Disponible solo en escritorio",downloadApp:"Descargar la app"},resize:{title:"Redimensionar",description:"Usa el redimensionador m\xe1gico de BithAI para convertir tus videos de 16:9 a cualquier formato, haci\xe9ndolos adecuados para Instagram Reels/Historias/Publicaciones, Youtube Shorts e incluso TikTok."},edit:{title:"Editar",description:"A\xf1ade algo de estilo a tus clips usando las diversas funciones dis
1ponibles en el estudio Bith. A\xf1ade texto/im\xe1genes/videos a tu video para que tu contenido destaque."},publish:{title:"Publicar",description:"Usando las herramientas de Bith, puedes subir tu contenido directamente a todas tus plataformas de redes sociales favoritas con solo un clic."}},headerLayout:{howItWorks:"C\xf3mo funciona",features:"Por qu\xe9 Bith.ai",apps:"Nuestras Apps",learn:"Aprender",welcome:"Bienvenido",comma:",",tools:"Herramientas AI",pricing:"Precios",proCreator:"Plan Pro",freePlan:"Plan Gratis",editor:"Editor de Video"},home:{hero:{create:"CREAR",videos:"VIDEO",images:"IM\xc1GENE",audios:"AUDIO",in:"EN",seconds:"SEGUNDOS",subtitle:"Un Lugar - Todos los Modelos de IA",getStarted:"Comenzar"},create:{title:"CREAR",video:"Video",image:"Imagen",audio:"Audio"},superWindow:{title:"Crea contenido sin esfuerzo con",title1:"Magia AI",description:"Transforma tus ideas en videos, im\xe1genes y m\xe1s, en segundos",action:"Comenzar",howItWorks:"C\xf3mo Funciona"},howItWorks:{title:"\xbfC\xf3mo funciona?"},whyBit:{title:"\xbfPor qu\xe9 Bith.ai?"},signup:{title:"\xbfA\xfan no tienes una cuenta?",looking:"\xbfBuscas convertirte en creador de contenido?",start:"Comienza tu viaje hoy!",action:"Reg\xedstrate"},downloadApp:{title:"Completa tu experiencia con nuestra App m\xf3vil",description:"Es un hecho conocido que un lector se distraer\xe1 con el contenido legible."},creativeStudio:{title:"Tu suite creativa completa",description:"Desbloquea posibilidades ilimitadas con nuestra plataforma intuitiva, dise\xf1ada para simplificar tu experiencia de edici\xf3n de video. Redimensiona las dimensiones de tu video, a\xf1ade subt\xedtulos con IA y mezcla im\xe1genes, videos, audio y GIFs con solo unos clics.",editorText:"Editor de Videos Bith",disclaimer:"Esta funci\xf3n es accesible en pantallas m\xe1s grandes. Por favor, cambia a una computadora de escritorio o port\xe1til para una mejor experiencia."},gallery:{title:"Galer\xeda Inspiradora",exploreMore:"Explorar m\xe1s"}},pricing:{title:"Elige un plan que funcione para ti",popupTitle:"Nuevos cambios en los planes",pricing:"Precios",description:"Crea m\xe1s, en menos tiempo.",monthly:"Mensual",yearly:"Anual",saving:"2 meses gratis",pro:"Pro",free:"Gratis",aiTools:"Herramientas AI",recommended:"Recomendado",tabs:{bundles:"Paquetes",creditsPack:"Paquete de Cr\xe9ditos"},planCard:{popular:"Popular",mostChosen:"La m\xe1s elegida",selectPlan:"Seleccionar Plan",startNow:"Empezar ahora",currentPlan:"Plan Actual",unavailable:"No disponible",notAvailableFromCurrentPlan:"No disponible desde tu plan actual",upgrade:"Actualizar",downgrade:"Degradar",creditsPerMonth:"cr\xe9ditos",ugcVideoPerMonth:"video UGC",ugcVideosPerMonth:"videos UGC",perMonth:"/ mes",switchTo:"Cambiar de plan",scheduledNextCycle:"Programado para el siguiente ciclo"},creditPack:{credits:"Cr\xe9ditos",purchase:"Comprar",validityNote:"V\xe1lido durante 90 d\xedas desde la fecha de compra"},faqs:{title:"Preguntas frecuentes"},aiTitle:"Selecciona el tama\xf1o de tu paquete de cr\xe9ditos preferido:",automateAround:"Puede automatizar alrededor de",aiVideos:"Videos AI",plansDisclaimer:"Por favor, tenga en cuenta que los cr\xe9ditos comprados solo est\xe1n disponibles mientras su suscripci\xf3n permanece activa.",creditsRolloverNotice:"Los cr\xe9ditos no se transfieren entre ciclos de facturaci\xf3n",oneTimePaymentDisclaimer:"Por favor, tenga en cuenta que los cr\xe9ditos comprados solo est\xe1n disponibles mientras su suscripci\xf3n permanece activa.",legacyPlan:{title:"Tu plan actual es {planTitle} (Legacy)",description:"*Este es un plan heredado que ya no est\xe1 disponible para nuevos clientes. Puede mantener este plan indefinidamente o cambiarse a nuestros nuevos planes.",creditsPerMonth:"Cr\xe9ditos/mes",features:{fullAccessToAITools:"Acceso completo a herramientas de IA",proAccessToVideoEditor:"Acceso Pro al editor de video",aiSubtitleGenerator:"Generador de subt\xedtulos con IA",minutes:"{minutes} Minutos",storage:"Almacenamiento ({storage} GB)",customerSupport:"Atenci\xf3n al cliente"}}},footer:{aboutUs:"Sobre nosotros",contactUs:"Cont\xe1ctanos",terms:"T\xe9rminos y condiciones",privacyPolicy:"Pol\xedtica de privacidad",bithGuide:"Gu\xeda de Bith"},footerLayout:{links:{title:"Enlaces",about:"Sobre Bith.ai",terms:"T\xe9rminos y condiciones",privacy:"Pol\xedtica de privacidad",pricing:"Precios"},help:{title:"Ayuda",learn:"Aprender",tools:"Herramientas",faqs:"Preguntas frecuentes",contactUs:"Cont\xe1ctanos",bithAi:"Bith.AI"},getinTouch:{title:"Ponte en contacto"},partners:{title:"Socios"},rights:"\xa9 Todos los derechos reservados. Bith.ai"},authFlowLayout:{info:{title:"Caracter\xedsticas de Bith TV",free:"Gratis",noWatermark:"Sin marca de agua",online:"En l\xednea",distribution:"Distribuci\xf3n"},actions:{back:"Volver al inicio"},signUp:{action:"Crear cuenta"},ugc:{title:"Videos UGC",subtitle:"Crea videos promocionales realistas listos para publicar, sin grabar ni editar"},termsNotice:"Al continuar, aceptas nuestros T\xe9rminos de uso y Pol\xedtica de privacidad."},passwordReco:{sendEmail:{title:"Restablece tu contrase\xf1a",formFields:{email:"Correo electr\xf3nico"},actions:{submit:"Restablecer",redirectTitle:"\xbfTienes una cuenta?",redirect:"Iniciar sesi\xf3n"},success:"\xa1\xc9xito! Revisa tu correo electr\xf3nico ahora"},reset:{title:"Crea una nueva contrase\xf1a",formFields:{newPassword:"Nueva contrase\xf1a"},actions:{submit:"Cambiar contrase\xf1a"},success:{title:"Tu contrase\xf1a se ha restablecido con \xe9xito.",action:"Iniciar sesi\xf3n"}}},studio:{sidebars:{images:{title:"Im\xe1genes"},videos:{all:"Todos los videos",original:"Sin editar",inProgress:"En progreso",readyToPublish:"Listo para publicar",published:"Exportado",deletedVideos:"Videos eliminados"},account:{title:"Configuraciones",accountSettings:"Configuraci\xf3n de la cuenta",notificationsSettings:"Configuraci\xf3n de notificaciones",billingSettings:"Configuraci\xf3n de facturaci\xf3n",connectionSettings:"Configuraci\xf3n de conexi\xf3n"},connections:{title:"Plataformas",connect:"Conectar"},storage:{storageUsed:"Almacenamiento usado",storageRemaining:"Almacenamiento",upgrade:"Mejorar"},main:{myStudio:"Inicio",videos:"Videos",folders:"Carpetas",watchAndLearn:"Ver y aprender",deleted:"Eliminados",aiStudio:"Estudio AI",mainStudio:"Estudio creativo",imageGenerator:"Im\xe1genes",voiceovers:"Audios"},minutes:{title:"Cr\xe9ditos utilizados",remaining:"Cr\xe9ditos",upgrade:"A\xf1adir cr\xe9ditos",total:"Cr\xe9ditos totales",add:"A\xf1adir"},helpCenter:{title:"Centro de ayuda"}},shell:{header:{home:"Inicio"},sidebar:{home:"Inicio",library:"Biblioteca",templates:"Plantillas",apps:"Apps",tools:"Herramientas",more:"M\xe1s",less:"Menos",pin:"Fijar",unpin:"Desfijar",recentSessions:"Sesiones recientes",sessions:"Sesiones",newSession:"Nueva sesi\xf3n",untitledSession:"Sesi\xf3n sin t\xedtulo"}},library:{tabs:{videos:"Videos",images:"Im\xe1genes",audio:"Audio",folders:"Carpetas",deleted:"Eliminados"},inProgressAlert:"\xa1Te notificaremos por correo electr\xf3nico cuando tu video est\xe9 listo!"},account:{settings:{title:"Configuraci\xf3n de la cuenta"},info:{title:"Informaci\xf3n de la cuenta",changeImage:"Cambiar imagen",remove:"Eliminar",formFields:{username:{label:"Nombre de usuario"},email:{label:"Correo electr\xf3nico"}},action:"Guardar"},changePassword:{title:"Cambiar contrase\xf1a",formFields:{newPassword:{label:"Nueva contrase\xf1a"},confirmNewPassword:{label:"Confirmar nueva contrase\xf1a"},password:{label:"Contrase\xf1a antigua"}},success:{message:"Contrase\xf1a actualizada con \xe9xito"},action:"Guardar"},preferences:{title:"Preferencias",theme:"Tema claro",language:"Idioma"}},videoModal:{actions:{create:"Crear nueva edici\xf3n",continue:"Continuar editando",start:"Comenzar edici\xf3n",download:"Descargar",editAgain:"Duplicar y editar",edit:"Editar video"}},videosDropDown:{edit:"Editar",duplicate:"Duplicar",publish:"Publicar",schedule:"Programar",download:"Descargar",move:"Mover",rename:"Renombrar",delete:"Eliminar"},deletedVideosDropDown:{restore:"Restaurar",deletePermanently:"Eliminar permanentemente"},sort:{name:"Nombre A-Z",dateCreated:"Fecha de creaci\xf3n",dateModified:"Fecha de modificaci\xf3n"},videosDetailsBar:{videoTitle:"T\xedtulo del video",size:"Tama\xf1o",status:"Estado",lastEdited:"\xdaltima edici\xf3n"},empty:{title:"\xa1A\xfan no tienes videos!",description:"Haz clic en el bot\xf3n de abajo para crear tu primer video",video_editor:{title:"\xa1A\xfan no tienes videos!",description:"Haz clic en el bot\xf3n de abajo para crear tu primer video"},audio:{title:"\xa1A\xfan no tienes audios!",description:"Haz clic en el bot\xf3n de abajo para crear tu primer audio"}
1,image:{title:"\xa1A\xfan no tienes im\xe1genes!",description:"Haz clic en el bot\xf3n de abajo para crear tu primer imagen"},deleted:{title:"La papelera est\xe1 vac\xeda",description:"Haz clic en el bot\xf3n de abajo para crear un nuevo video"},ai:{title:"\xa1A\xfan no tienes videos!",description:"Haz clic en el bot\xf3n de abajo para generar tu primer video"},text_to_video:{title:"\xa1A\xfan no tienes videos!",description:"Haz clic en el bot\xf3n de abajo para generar tu primer video"},text_to_scene:{title:"\xa1A\xfan no tienes escenas!",description:"Haz clic en el bot\xf3n de abajo para agregar tu primera escena"},quote_to_video:{title:"\xa1A\xfan no tienes videos!",description:"Haz clic en el bot\xf3n de abajo para generar tu primer video"}},createVideo:{headerActions:{continueToEdit:"Continuar editando",publish:"Exportar video",exportSettings:{title:"Configuraci\xf3n de exportaci\xf3n"}}},main:{videos:{title:"Videos",viewAll:"Ver todos los videos",createAVideo:"Editar nuevo video"},home:{heroHeadline:"Todo lo que necesitas para crear, en un solo lugar",appsTitle:"Ap
1ps",toolsTitle:"Herramientas",lastVideosTitle:"\xdaltimos videos",viewAll:"Ver todo",templatesHeadline:"Empieza con plantillas probadas, no desde cero.",browseAllTemplates:"Explorar todas las plantillas"},folders:{title:"Carpetas",viewAll:"Ver todas las carpetas",newFolder:"Nueva carpeta"},watchAndLearn:{title:"Ver y aprender",viewAll:"Ver todos los videos"},tools:{title:"\xbfQU\xc9 CREAR\xc1S HOY?",description:"Transforma tus im\xe1genes con IA para crear videos cautivadores",viewAll:"Ver todas las herramientas",action:"Explorar todas las herramientas"},apps:{title:"Aplicaciones"}},notificationsSettings:{transactionalEmails:"Recibir correos electr\xf3nicos transaccionales",promotionalEmails:"Recibir correos electr\xf3nicos promocionales"},superWindow:{carousel:{title:"Texto a video",title1:"Generador AI",description:"El revolucionario generador de video de texto a video AI est\xe1 dise\xf1ado para la nueva era de creadores sin rostro. Transforma tus ideas en videos cautivadores con solo unos clics."}},useCases:{title:"Lo que los usuarios est\xe1n creando",popup:{prompt:"Solicitud:",prefix:"",script:"Gui\xf3n",aiModule:"M\xf3dulo de generaci\xf3n de im\xe1genes:"}},accountDropdown:{settings:"Configuraci\xf3n de la cuenta",notificationSettings:"Configuraci\xf3n de notificaciones",billingSettings:"Configuraci\xf3n de facturaci\xf3n",lightTheme:"Tema claro",language:"Idioma",help:"Ayuda",faqs:"Preguntas frecuentes",terms:"T\xe9rminos y condiciones",privacy:"Pol\xedtica de privacidad",logout:"Cerrar sesi\xf3n"},notifications:{title:"Notificaciones"}},studioBreadcrumbs:{studio:"Mi Estudio",account:"Configuraci\xf3n de Cuenta",billing:"Configuraci\xf3n de Facturaci\xf3n",connections:"Configuraci\xf3n de Conexiones",videos:"Videos",all:"Todos los Videos",original:"Sin editar","in-progress":"En progreso","ready-to-publish":"Listo para Publicar",published:"Exportado",deleted:"Eliminado",exporting:"Exportando",completed:"Completado",processing:"Procesando","processing-promo-video":"Procesando"},folders:{new:"Nueva Carpeta",create:{title:"Nueva Carpeta",createFolderModal:{title:"Crear una Nueva Carpeta",fields:{name:"Nombre de la carpeta"},actions:{cancel:"Cancelar",create:"Crear"},success:{title:"Has creado tu carpeta con \xe9xito"}}},edit:{modal:{title:"Actualizar Carpeta",fields:{name:"Nombre de la carpeta"},actions:{cancel:"Cancelar",update:"Actualizar"},success:{title:"Has actualizado el nombre de tu carpeta con \xe9xito"}}},move:{title:'Mover "',to:'" a',done:"Movido a"},delete:{title:"\xbfEst\xe1s seguro de que deseas eliminar esta carpeta?"}},videos:{edit:{modal:{title:"Actualizar Video",fields:{name:"Nombre del video"},actions:{cancel:"Cancelar",update:"Actualizar"},success:{title:"Has actualizado el nombre de tu video con \xe9xito"}}},delete:{header:"Eliminar",title:"\xbfRealmente deseas eliminar este video?",success:{title:"Has eliminado tu video con \xe9xito"}},deletePermanently:{header:"Eliminar",title:"\xbfRealmente deseas eliminar este video permanentemente?",success:{title:"Has eliminado tu video con \xe9xito"}},restore:{header:"Restaurar",title:"\xbfRealmente deseas restaurar este video?",success:{title:"Has restaurado tu video con \xe9xito"}},duplicate:{modal:{title:"Duplicar Video",fields:{name:"Nombre del video"},actions:{cancel:"Cancelar",update:"Duplicar"},success:{title:"Has duplicado tu video con \xe9xito"}}},deletionWithin:"Eliminaci\xf3n dentro de:"},createVideo:{uploadModal:{import:{title:"Importar desde un enlace",inputPlaceholder:"Pega tu enlace de YouTube, Twitch o Facebook aqu\xed...",aiInputPlaceholder:"Pega tu enlace de YouTube aqu\xed...",action:"Pegar",try:"Probar enlace de ejemplo",error:"Por favor ingresa un enlace v\xe1lido"},upload:{title:"Subir un archivo",dragBox:"Arrastra y suelta tu archivo aqu\xed",or:" O ",browse:"navegar ",dragBox1:" para elegir un archivo"},errors:{header:"Vaya",title:"No podemos manejar videos sin",title1:"audio ",title2:"en este momento. Estamos trabajando para solucionar este problema pronto.\uD83E\uDD29",close:"Cerrar"},noDimensions:{header:"Vaya",title:"Este tipo de videos no se puede reproducir en este navegador, puedes usar",title1:"el navegador Chrome ",title2:"para poder editar este video. \uD83E\uDD29",close:"Cerrar"},size:{title:"Tama\xf1o m\xe1ximo del video: ",title1:"250 MB",message:"El archivo es m\xe1s grande de 250 MB"},sizePro:{title:"Tama\xf1o m\xe1ximo del video: ",title1:"2 GB",message:"El archivo es m\xe1s grande de 2 GB"},smartClipperSize:{title:"Tama\xf1o m\xe1ximo del video: ",title1:"10 GB",message:"El archivo es m\xe1s grande de 10 GB"},aspectRatio:{header:"Vaya",title:"Dimensiones de video no compatibles, ",title1:"las dimensiones permitidas son",title2:"16:9 y 9:16",close:"Cerrar"}},editor:{title:"Editar"},publisher:{title:"Exportar",loading:"Por favor, ten paciencia, este proceso puede tardar varios minutos",videoInfo:{title:{label:"T\xedtulo",placeholder:"T\xedtulo"}},actions:{download:"Descargar",removeWatermark:"Descargar sin marca de agua",newVideo:"Crear un nuevo video",editAgain:"Duplicar y editar",editThisVideo:"Editar este video",back:"Volver al Estudio"},socialMediaDistribution:{title:"Publicar en",action:"Publicar"},tips:{title:"\xbfSab\xedas que?"},help:{title:"\xbfTienes problemas, comentarios o quieres estar al tanto de nuestros \xfaltimos anuncios?",redirect:"\xdanete a nuestro servidor de Discord."}},resizer:{title:"Redimensionar",description:"La mayor\xeda del contenido se consume en dispositivos m\xf3viles, haz tu contenido amigable para m\xf3viles redimensionando su proporci\xf3n.",projectSettings:{title:"Configuraciones",videoSize:{title:"Dimensiones del video",reset:"Restablecer"},eligiblePlatforms:{title:"Plataformas elegibles",and:" y ",more:" M\xe1s",maxDuration:"Duraci\xf3n m\xe1xima:",unlimited:"Ilimitada"},faceCam:{title:"C\xe1mara frontal",options:{off:"Apagado",rectangle:"Rect\xe1ngulo",circle:"C\xedrculo",rounded:"Redondeado"},stroke:{style:"Estilo de borde",color:"Color del borde",animated:"Borde animado"}},background:{title:"Fondo desenfocado",color:"Color de fondo"}
1,safeZone:{title:"Zona segura del video",description:"Esto solo muestra d\xf3nde est\xe1n los \xedconos de redes sociales y no ser\xe1 visible en el video exportado."}}}},learn:{title:"Aprender",latest:"\xdaltimos art\xedculos",featured:"Destacados",share:"Compartir",keywords:"Palabras clave",createSection:{title:"\xbfBuscas convertirte en creador de contenido? \xa1Sube tu primer video!"},relatedArticles:{title:"Art\xedculos relacionados"}},socialAuth:{facebook:"Continuar con Facebook",google:"Continuar con Google",twitch:"Continuar con Twitch",apple:"Continuar con Apple"},exportStatus:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",step:e=>"Paso ".concat(e,"/7"),in_queue:"Espera, tu video est\xe1 en cola",processing:"Espera, tu video est\xe1 en cola",trimming:"Nuestros robots est\xe1n recortando tu video",resizing:"Nuestros robots est\xe1n redimensionando tu video",adding_layers:"Nuestros robots est\xe1n agregando las ediciones a tu video",adding_audios:"Nuestros robots est\xe1n agregando las ediciones a tu video",completed:"Espera mientras finalizamos el video",info:"Puedes editar otros videos mientras tu video se exporta"},back:{title:"\xbfEst\xe1s seguro de que deseas volver?",description:"Se perder\xe1n los cambios que hayas realizado.",action:"Volver al Redimensionador"},uploadNotCompleted:{title:"\xbfEst\xe1s seguro de que deseas salir?",description:"Se perder\xe1n los cambios que hayas realizado.",action:"S\xed"},tools:{title:"Herramientas",description:"Usa nuestras herramientas para agregar Texto, Im\xe1genes, Videos y m\xe1s a tus videos",callToAction:{weHope:"Esperamos que disfrutes usando las herramientas de BITH",cantWait:"\xa1No podemos esperar a ver qu\xe9 se te ocurre!"},step:"Paso ",moreTools:"Probar otras herramientas"},mediaAssets:{asset:{video:"Video",image:"Imagen",audio:"Audio",gif:"GIF",empty:{title:"No tienes",video:" videos ",image:" im\xe1genes ",gif:" gifs ",audio:" audios ",title1:"\xa1todav\xeda!",info:"Usa uno de Bith",info1:"o sube el tuyo"},uploadSuccess:{title:"Tu ",title1:"se ha subido con \xe9xito"},edit:{title:"Actualizar ",fields:{name:" nombre"},actions:{cancel:"Cancelar",update:"Actualizar"},success:{title:"Has actualizado el nombre de tu ",title1:" con \xe9xito"}},delete:{header:"Eliminar",title:"\xbfRealmente deseas eliminar este ",imageTitle:"\xbfRealmente deseas eliminar esta ",title1:"?",success:{title:"Has eliminado tu"}}}},proPlanPopup:{title:"\xa1Mejora tu plan hoy y hazlo a\xfan m\xe1s f\xe1cil!",watermark:"Elimina la marca de agua mejorando tu plan hoy"},checkoutModal:{welcome:"Bienvenido a BithAI",continueGoogle:"Continuar con Google",continueEmail:"Continuar con correo electr\xf3nico",or:"o",
1summaryTitle:"Detalles de la suscripci\xf3n",summaryTitleCredits:"Detalles de la compra",creditPackName:e=>"".concat(Number(e).toLocaleString("es")," Cr\xe9ditos"),creditPackValidityDays:"90",creditPackValidityLabel:"d\xedas despu\xe9s de la compra",paymentTitle:"Datos de pago",scrollToBottom:"Ir al final",continueToPayment:"Continuar al pago",update:"Actualizar",upgradeNow:"Mejorar ahora",buyNow:"Comprar ahora",amountDueToday:"Importe a pagar hoy",amountDueNow:"Importe a pagar ahora",totalCreditsAvailable:"Total de cr\xe9ditos disponibles",creditsFromCurrentPlan:"Cr\xe9ditos de tu plan actual",extraCreditsFromUpgrade:"Cr\xe9ditos extra de la mejora",subscriptionType:"Tipo de suscripci\xf3n",creditsPerInterval:()=>"cr\xe9ditos / mes",ugcPerInterval:e=>1===e?"video UGC / mes":"videos UGC / mes",savePercent:e=>"Ahorra ".concat(e,"%"),total:"Total",taxIncluded:"(Impuestos incluidos)",autoRenew:(e,t,i)=>null!=i&&""!==i?"Tu suscripci\xf3n se renovar\xe1 autom\xe1ticamente el ".concat(e," por $").concat(i," y tus cr\xe9ditos se restablecer\xe1n a ").concat(Number(t).toLocaleString("es")," cr\xe9ditos"):"Tu suscripci\xf3n se renovar\xe1 el ".concat(e," y tus cr\xe9ditos se restablecer\xe1n a ").concat(Number(t).toLocaleString("es")," cr\xe9ditos"),payTodayThen:(e,t,i,o)=>"Pagar\xe1s $".concat(e," hoy, luego $").concat(t," ").concat(i," a partir del ").concat(o,"."),addDiscount:"A\xf1adir c\xf3digo de descuento",apply:"Aplicar",discountInvalid:"C\xf3digo de descuento no v\xe1lido",discountApplied:(e,t)=>"Descuento aplicado. Ahorraste $".concat(e," (").concat(t,"%) en este plan."),taxIncludedWithDiscount:"(Impuestos y descuento incluidos)",planPrice:"Precio del plan",discountValue:"Valor del descuento",removeDiscount:"Eliminar c\xf3digo de descuento",subscribeNow:"Suscribirse ahora",confirmChangeTitle:e=>e?"Confirmar mejora":"Confirmar cambio de plan",confirmChangeBody:"Confirma para aplicar este cambio de plan. Cualquier importe vencido hoy se cargar\xe1 a tu m\xe9todo de pago guardado.",success:{title:e=>e?"Tus puntos est\xe1n listos":"Suscripci\xf3n completada",body:(e,t)=>e?"Tus ".concat(Number(t).toLocaleString("es")," puntos est\xe1n listos para usar."):"Tu nuevo saldo de puntos est\xe1 listo para usarse.",upgradeTitle:"Has mejorado tu plan",changedPlanTitle:"Has cambiado tu plan",startNow:"Empezar ahora"}},paymentFlowPopup:{totalPayment:"Pago total",totalWithTax:"Total (Impuestos incluidos)",stepper:{selectPlan:"Seleccionar plan",selectPackage:"A\xf1adir cr\xe9ditos",review:"Revisar",payment:"Pago"},selectPlan:{title:"Elige uno:",saving:"(ahorra un 17%)",summerSale:"(40% de descuento de verano)",winterSale:"(40% de descuento de invierno)"},oneTimePurchase:{title:"\xa1Aumenta tu l\xedmite!"},review:{title:"Detalles de la compra:",description:{description1:"Tu suscripci\xf3n Pro se renovar\xe1 por",on:"en",reset:"y tus cr\xe9ditos se restablecer\xe1n a",description2:"\xbfTienes preguntas?",contact:"Contacta a nuestro equipo de soporte.",upgrade:"Se te cobrar\xe1",upgrade1:"inmediatamente por el monto prorrateado debido al cambio de tu plan.",chargedProrationBeforeAmount:"Se cobrar\xe1n ",chargedProrationAfterAmount:" hoy como tarifa prorrateada por la mejora.",previewFetchError:"No pudimos cargar la vista previa de tu mejora."},payBy:"Pagar con",ending:"Tarjeta que termina en",creditSummary:{title:"Resumen de cr\xe9ditos",creditsUsed:"Cr\xe9ditos usados",creditsAvailable:"Cr\xe9ditos disponibles",renewsAt:"Se renueva a",carriedOver:"Transferido",fromUpgrade:"De la mejora"}},payment:{form:{country:{title:"Pa\xeds",placeholder:"Pa\xeds"},address:{title:"Direcci\xf3n",placeholder:"Direcci\xf3n"},city:{title:"Ciudad",placeholder:"p. ej. Amman"}}},navigation:{back:"Atr\xe1s",next:"Siguiente",cancel:"Cancelar",changePlan:"Cambiar plan",upgrade:"Mejorar",downgrade:"Degradar"},success:{title1:"\xa1Felicidades!",title2:"Te has actualizado al plan Pro",monthly:"Mensual",yearly:"Anual",subscribedTitle:(e,t)=>"Te has suscrito exitosamente al plan ".concat(e," ").concat(t,"."),subscribedDescription:e=>"Ahora tienes acceso a todas las funciones de ".concat(e,". \xa1Haz clic en el bot\xf3n de abajo para comenzar a crear y disfrutar!"),monthlyDescription:"Ahora eres un creador Pro, haz clic en el bot\xf3n de abajo para crear tu primer video con caracter\xedsticas Pro y disfrutar!",pro:"Pro",credits:e=>"Ahora has a\xf1adido ".concat(e," cr\xe9ditos."),upgrade:"Has cambiado tu plan Pro",upgradeDescription:"Ahora tienes",upgradeDescription1:"haz clic en el bot\xf3n de abajo para continuar tu viaje en el mund
1o de la IA con nuestras incre\xedbles herramientas de IA, \xa1disfruta!",changedPlanDescription:e=>"Ahora tienes ".concat(e," cr\xe9ditos, haz clic en el bot\xf3n de abajo para continuar tu viaje en el mundo de la IA con nuestras incre\xedbles herramientas de IA, \xa1disfruta!"),scheduledDowngradeTitle:"Tu cambio de plan ha sido programado",scheduledDowngradeDescription:(e,t)=>"Tendr\xe1s ".concat(e," cr\xe9ditos a partir del ").concat(t," cuando termine tu ciclo de facturaci\xf3n actual. Hasta entonces, conservar\xe1s los beneficios de tu plan actual. Haz clic en el bot\xf3n de abajo para continuar.")},errors:{insufficientBalance:{title:"Saldo insuficiente",description:"Lo sentimos, pero no podemos procesar tu transacci\xf3n en este momento debido a fondos insuficientes en tu cuenta. Aseg\xfarate de tener suficientes fondos disponibles para completar la transacci\xf3n. Si necesitas m\xe1s asistencia, contacta a nuestro equipo de soporte. Gracias por tu comprensi\xf3n.",cancel:"Cancelar"}},reActivate:{header:"\xa1\xc9xito!",description:"Tu plan de suscripci\xf3n se ha reactivado con \xe9xito. Puedes gestionar tu suscripci\xf3n desde la pantalla de configuraci\xf3n de facturaci\xf3n."}},billing:{title:"Suscripci\xf3n",actions:{cancelPlan:"Cancelar plan",changePlan:"Cambiar plan",cancelScheduledDowngrade:"Cancelar cambio de plan programado",cancelScheduledDowngradeConfirmation:"\xbfEst\xe1s seguro de que quieres cancelar tu cambio de plan programado?"},nextPaymentOn:"Pr\xf3ximo pago el",yourSubscriptionEndsAt:"Tu suscripci\xf3n termina el",scheduledDowngradeEffective:"Vigente",scheduledChange:{title:"Cambio programado",downgradeTo:"Cambio a",scheduledFor:"programado para"},paymentMethod:"M\xe9todo de pago",updatePaymentMethod:"Actualizar m\xe9todo de pago",updatePaymentMethodModal:{success:"M\xe9todo de pago actualizado con \xe9xito."},billingHistory:{title:"Historial de facturaci\xf3n",usd:"USD",table:{date:"Fecha",description:"Descripci\xf3n",amount:"Monto del pago",receipt:"Imprimir recibo"}}},cancelSubscription:{title:"\xa1Lamentamos verte partir!",description:"Si tienes un momento, nos encantar\xeda saber por qu\xe9 decidiste cambiar al plan gratuito.",other:"\xbfPuedes contarnos cu\xe1l fue la otra raz\xf3n para cancelar tu suscripci\xf3n?",actions:{cancel:"Cancelar",submit:"Confirmar cancelaci\xf3n",continueToCancellation:"Continuar con la cancelaci\xf3n",cancelAnyWay:"Cancelar de todos modos",back:"Atr\xe1s"},confirm:{title:"Confirma tu cancelaci\xf3n",description:"Estar\xe1s en el plan ",description2:" hasta",description1:"Despu\xe9s de esta fecha no podr\xe1s usar las funciones Pro. \xbfEst\xe1s seguro de que deseas continuar?"},pastDueConfirmation:{title:"Confirma tu cancelaci\xf3n",description:"Tu suscripci\xf3n est\xe1 vencida, Ya no tienes acceso a las funciones pro. Cancelar tu suscripci\xf3n eliminar\xe1 permanentemente cualquier beneficio asociado. \xbfEst\xe1s seguro de que deseas continuar?"},congrats:"\xa1Felicidades!",discount:{title:"\xa1Obt\xe9n un 40% de descuento el pr\xf3ximo mes!",description:"Valoramos tu negocio. Te ofrecemos un 40% de descuento exclusivo para tu pr\xf3xima suscripci\xf3n mensual. \xa1Disfruta de nuestro servicio a un precio reducido!",action:"Canjear ahora",success:"Tu pr\xf3xima suscripci\xf3n tendr\xe1 un 40% de descuento"},freeMonth:{title:"\xa1Obt\xe9n 2 meses gratis solo para ti!",description:"Queremos darte esta oferta para que te quedes con nosotros. Tendr\xe1s m\xe1s tiempo para descubrir y probar nuestras funciones Pro una y otra vez.",action:"Aceptar oferta",success:"Ahora tienes 60 d\xedas para probar nuestras funciones Pro una y otra vez"},successCancelation:{title:"Tu suscripci\xf3n ha sido cancelada",description:"Apreciamos el tiempo que has pasado con nosotros. Si alguna vez decides volver, estaremos aqu\xed para darte la bienvenida. \xa1Gracias por ser parte de nuestro viaje!"},preCancelAlert:{title:"No pierdas tus cr\xe9ditos",description:"Cancelar ahora significa que todas las cr\xe9ditos no utilizados se perder\xe1n. Cualquier cr\xe9dito restante tambi\xe9n caducar\xe1 autom\xe1ticamente al final de tu ciclo de facturaci\xf3n el ",description1:"\xbfEst\xe1s seguro de que quieres proceder?",actions:{keepCredits:"Mantener cr\xe9ditos",cancelAnyway:"Cancelar de todos modos"}}},planExpired:{title:"\xa1Ups! Tu renovaci\xf3n de la suscripci\xf3n Pro fall\xf3.",description:"Lo sentimos, pero tu renovaci\xf3n de la suscripci\xf3n Pro ha fallado.",action:"Haz clic aqu\xed para actualizar el m\xe9todo de pago",popup:{title:"Por favor, actualiza tu m\xe9todo de pago para continuar disfrutando del acceso a tu suscripci\xf3n Pro. Haz clic en 'Actualizar' ahora.",submit:"Actualizar"}},waitlistPopup:{title:"Bith est\xe1 creando una nueva herramienta impulsada por IA que har\xe1 la creaci\xf3n de videos a\xfan m\xe1s f\xe1cil.",action:"\xdanete a la lista de espera para acceso anticipado"},mobileBanner:{title:"Disponible solo en escritorio"},trafficBanner:{title:"Pedimos disculpas por cualquier inconveniente causado, ya que estamos experimentando un volumen de tr\xe1fico inusualmente alto en nuestro sitio web. Estamos trabajando activamente para resolver este problema."},shortCutsModal:{title:"Atajos de teclado",play:"Reproducir",pause:"Pausar",delete:"Eliminar",split:"Dividir",undo:"Deshacer",redo:"Rehacer",copy:"Copiar",paste:"Pegar",duplicate:"Duplicar",zoomIn:"Acercar en la l\xednea de tiempo",zoomOut:"Alejar en la l\xednea de tiempo",nextFrame:"Siguiente fotograma",prevFrame:"Fotograma anterior"},summerSale:{title:"\xa1Ahorra un 40% en el plan Pro con la oferta de verano!",popup:{title:"Todo lo que necesitas hacer es iniciar sesi\xf3n en tu cuenta de BITH para reclamar este descuento."}},winterSale:{title:"\xa1Ahorra un 40% en el plan Pro con la oferta de invierno!",popup:{title:"Todo lo que necesitas hacer es iniciar sesi\xf3n en tu cuenta de BITH para reclamar este descuento."}},editTracker:{saving:"Guardando...",finishSaving:"Los cambios en el video se han guardado."},videosExpires:{title:"Atenci\xf3n usuarios de Bith.ai, todos los videos subidos antes del 1 de octubre ser\xe1n eliminados el 15 de octubre.",upgrade:"Mejorar",title1:"si no quieres que tus videos sean eliminados."},studioTools:{subtitles:{generate:"Generar subt\xedtulos",back:"Atr\xe1s",uploadingVideo:"Subiendo video...",generatingSubtitles:"Generando subt\xedtulos..."}},notFound:{title:"Error 404",description:"Vaya, esta p\xe1gina no existe."},backWhileCompiling:{header:"Lo siento",title:"No puedes editar el video durante el proceso de exportaci\xf3n, por favor espera mientras se exporta el video.",goHome:"Volver al Estudio"},smartClipper:{upload:{title:"Herramienta de recorte destacada",description:"Una herramienta de video generativa de IA que reutiliza videos largos en cortos con un solo clic."},generate:{title:"Configuraci\xf3n del recortador destacado",form:{fields:{language:{label:"Idioma original del video",placeholder:"Idioma"},translateTo:{label:"Traducir a",placeholder:"Sin traducci\xf3n - Usar idioma original..."},timeframe:{label:"Plazo de procesamiento"},clipLength:{label:"Longitud preferida del clip"},keywords:{label:"Filtrar por palabras clave (Opcional)",placeholder:"A\xf1adir palabras clave, separadas por comas"}},actions:{back:"Atr\xe1s",submit:"Obtener clips"}}},clips:{delete:{header:"Eliminar",title:"\xbfRealmente deseas eliminar este clip?",success:{title:"Has eliminado tu clip con \xe9xito"}}},processing:"Te notificaremos por correo cuando hayamos terminado el procesamiento."},queueMessage:{you:"Est\xe1s",inQueue:"en la cola",title:"Mejora tu plan y disfruta de la funci\xf3n de renderizado prioritario",t
1itle1:"o puedes editar otros videos mientras tu video se exporta."},textToVideo:{steps:{next:"Siguiente",back:"Atr\xe1s"},script:{title:"Generador de Video",videoAspectRatioTitle:"Dimensiones del Video",videoAspectRatioSmallTitle:"(Relaci\xf3n de aspecto)",videoAspectRatioDesc1:"* 9:16 para Instagram reels/historias, YouTube shorts y Tiktok",videoAspectRatioDesc2:"* 16:9 para videos de YouTube",videoDurationTitle:"Duraci\xf3n del Video",scriptLanguageTitle:"Idioma del Gui\xf3n",voiceoverGenderTitle:"Actor de Voz",videoThemeTitle:"Tema del Video",videoToneTitle:"Tono del Video",advancedSettings:"Configuraci\xf3n Avanzada",videoIdeaTitle:"Idea del Video",videoIdeaPlaceholder:"\xbfQui\xe9nes son los PayPal Mafia?",videoScriptPlaceholder:"Pega tu gui\xf3n aqu\xed...",videoIdeaPrefix:"",generateVideoButton:"Generar Escenas",generateScript:"Generar un Gui\xf3n",backgroundMusic:"M\xfasica de fondo",zoomInAndOut:"Efectos de movimiento",aiModule:"M\xf3dulo de Generaci\xf3n de Im\xe1genes",remainingCharacters:"caracteres",backgroundMusicTooltip:"Desmarca la casilla si deseas agregar m\xfasica de tendencia usando tus plataformas de redes sociales preferidas.",zoomInAndOutTooltip:"Marca la casilla si deseas efectos de zoom in/out para cada imagen generada. (Funci\xf3n paga)",zoomInAndOutTooltipFree:"Marca la casilla si deseas efectos de zoom in/out para cada imagen generada.",partner:"Voz en off proporcionada por",durationEstimate:"Duraci\xf3n estimada",edit:{generating:"Generando Gui\xf3n",generatingSubTitle:"Por favor espera mientras generamos tu gui\xf3n.",title:"Revisar gui\xf3n",reset:"Restablecer",fields:{hook:{label:"Enganche",placeholder:"Enganche",tooltip:"El gancho del video es un breve inicio que atrae la atenci\xf3n para que los espectadores sigan viendo."},body:{label:"Cuerpo",placeholder:"Cuerpo",tooltip:"El cuerpo del video es el contenido principal que sigue al gancho, presentando la informaci\xf3n clave."},conclusion:{label:"Conclusi\xf3n",placeholder:"Conclusi\xf3n",tooltip:"La conclusi\xf3n resume los puntos clave y da cierre al contenido."}},resetAlert:{title:"\xbfEst\xe1s seguro de que deseas restablecer los cambios del gui\xf3n?",actionText:"S\xed"},chartCount:e=>"de ".concat(e," Caracteres"),loader:{generating:"Generando Gui\xf3n ...",description:"Generar su secuencia de comandos; esto puede demorar hasta 3 minutos. \xa1Gracias por tu paciencia!"}},tabs:{prompt:"Idea del Video",script:"Pegar tu Gui\xf3n"},confirmation:{header:"\xbfEst\xe1s seguro de que deseas proceder a generar el video?",title:"Dependiendo del gui\xf3n que elijas, la duraci\xf3n del video ser\xe1 alrededor de",prompt:"Idea del Video:",script:"Gui\xf3n del Video:",properties:"Propiedades del Video:"},voiceOverLanguageRequired:"Por favor, especifica el idioma del gui\xf3n",usage:{title:"Costo del v\xeddeo : ",disclaimer:"* Los precios se ajustan seg\xfan su selecci\xf3n."},credits:e=>"".concat(e," Cr\xe9ditos"),visuals:{visualsSource:{title:"Elija im\xe1genes"},aiImages:{title:"Estilo de Imagen AI"}},voiceOverSettings:{title:"Voz en Off",gender:"G\xe9nero de Voz",male:"Masculino",female:"Femenino"},script:{title:"Gui\xf3n y Visuales"},imageStyle:{title:"Estilo de im\xe1genes"}},advancedAiModulePopup:{title:"A\xf1ade cr\xe9ditos y usa nuestro m\xf3dulo avanzado de generaci\xf3n de im\xe1genes",fast:"R\xe1pido",quality:"Alta Calidad",accurate:"M\xe1s Preciso",noWatermark:"Sin Marca de Agua",cancel:"Cancelar",addMins:"A\xf1adir Cr\xe9ditos"},generating:{title:"Tu video AI corto est\xe1 en camino...",info:"El tiempo de procesamiento puede tardar hasta 2 minutos para generar tus escenas.",exportInfo:"Estamos transformando tu gui\xf3n en im\xe1genes y voz, sincronizando todo de forma continua y finalizando tu video.",infoAction:"Volver al Estudio",errors:{idea:{title:"Lo sentimos, tu idea de video puede violar nuestra pol\xedtica de contenido.",action:"Prueba con otra idea"}},processingVideo:"Procesando v\xeddeo...",processingScenes:"Generando Escenas ..."},download:{downlaodButton:"Descargar",share:"Compartir",removeWatermark:"Quitar Marca de Agua",downloadMusicLicense:"Descargar Licencia de M\xfasica",createANewVideoButton:"Generar Nuevo Video",editVideo:"Editar Video",feedback:{title:"Nos encantar\xeda conocer tu opini\xf3n",description:"Tu opini\xf3n es muy importante para mejorar nuestros servicios y ofrecerte la mejor experiencia.",success:"\xa1Agradecemos tu comentario! \xa1Gracias!",form:{fields:{feedback:"Escribe tus comentarios..."},submit:"Enviar"}}},limitationPopup:{title:"\xa1Has alcanzado tu l\xedmite!",description:"A\xf1ade m\xe1s cr\xe9ditos para generar m\xe1s",addMinutes:"A\xf1adir Cr\xe9ditos",videos:"Videos.",images:"Im\xe1genes.",voiceovers:"Narraciones"},editor:{sidebar:{scenes:{title:"Escenas",back:"Atr\xe1s",backToScene:"Atr\xe1s",generalSettings:{animations:{title:"Efectos de movimiento",tooltip:{title:"Efectos de movimiento",description:"Al desmarcar esta casilla, exportar\xe1 su video sin ninguna animaci\xf3n como acercar o alejar."}},subtitles:{title:"Subt\xedtulos",tooltip:{title:"Subt\xedtulos",de
1scription:"Al desmarcar esta casilla, exportar\xe1 su video sin subt\xedtulos."}},backgroundMusic:{title:"M\xfasica de fondo"}},scene:{title:"Escena",replaceImage:"Cambiar Imagen",editScene:"Editar Escena",trim:"Recortar",upload:"Subir",scale:{fill:"Escalar para Llenar",fit:"Escalar para Ajustar"},deletePopup:{header:"Eliminar",title:"\xbfRealmente deseas eliminar esta imagen?",success:{title:"Has eliminado tu imagen con \xe9xito"}},settings:{title:"Configuraci\xf3n de Escena",animation:{title:"Tipo de Animaci\xf3n",none:"Ninguna"}}},changeImage:{upload:{title:"Subir"},aiImages:{title:"Im\xe1genes/Videos AI",placeholder:"Introduce solicitudes para generar im\xe1genes",back:"Volver a Visuals AI"},stock:{title:"Biblioteca de Im\xe1genes",images:"Im\xe1genes",videos:"Videos",scenes:"Escenas"}},music:{title:"Hemos seleccionado una canci\xf3n genial para tu video!"}},texts:{title:"Texto",tabs:{settings:"Configuraciones",effects:"Efectos",presets:"Preajustes"}},settings:{title:"Configuraciones"},subtitles:{title:"Subt\xedtulos",voiceOver:{title:"Voz en Off",regenerate:"Regenerar",freeUsage:e=>"Tienes ".concat(e," regeneraci\xf3n de voz en off gratuita."),confirmation:{title:"\xbfRegenerar Voz en Off?",description:"Esto sobrescribir\xe1 la voz en off existente con el texto actualizado.",currentCredits:"Tus cr\xe9ditos actuales son ",usedCredits:"Despu\xe9s de confirmar, tus cr\xe9ditos ser\xe1n ",actionText:"Regenerar"}}},overlays:{title:"Superposiciones",opacity:{title:"Opacidad"},background:{title:"Superposici\xf3n de fondo"},animated:{title:"Superposici\xf3n animada"}}},export:"Exportar Video"},disclaimer:"No podemos controlar el contenido generado. Revisa cuidadosamente y \xfasalo bajo tu responsabilidad.",scenes:{delete:{error:"No puedes eliminar la \xfaltima escena",confirmation:{title:"\xbfRealmente deseas eliminar esta escena?"}},split:{error:"Has alcanzado la duraci\xf3n m\xednima de la escena."}}},textToScene:{title:"Generador de Escenas",textToScene:"Texto a Video",imageToScene:"Imagen a Video",usage:"Cr\xe9ditos Escena =",usageShort:"Cr\xe9ditos =",description:"Generar un sc\xe8nes de 5 segundos",form:{fields:{prompt:{label:"Descripci\xf3n de la Escena",placeholder:"Empieza a imaginar... Escribe una descripci\xf3n de la escena que te gustar\xeda ver en tu sc\xe8nes."},aspectRatio:{label:"Dimensiones de la Escena"},sceneDuration:{label:"Duraci\xf3n de la Escena"},advancedSettings:{label:"Configuraci\xf3n Avanzada",loop:"Repetir Escena"}},imageUploader:{title:"Arrastra y suelta tu imagen aqu\xed o ",browse:"navega ",title1:" para elegir un archivo",maxSize:"Tama\xf1o m\xe1ximo del archivo : 16MB",supportedMiemTypes:" son compatibles",library:{title:"Biblioteca de Im\xe1genes",import:"Importar",empty:"\xa1No se han subido im\xe1genes a\xfan! Sube una imagen o elige una de nuestra biblioteca."},swapFields:"Intercambiar Campos"},submit:"Generar Video"},modelSelector:{title:"Modelo de Video"},historyList:{title:"Videos Generados",empty:"\xa1No se han generado videos a\xfan!"},preview:{generateNew:"Generar Nueva Escena",download:"Descargar"},bottomNav:{settings:"Configuraci\xf3n de Escena",history:"Historial"},failed:{title:"Error al Generar Video",description:"No pudimos procesar su solicitud porque el mensaje contiene palabras no compatibles.",description1:"Tus cr\xe9ditos por esta escena han sido reembolsados ​​autom\xe1ticamente. Vuelve a intentarlo con un mensaje diferente.",action:"Generar un nuevo video"},generatePrompt:"Ind\xedcamelo",delete:{header:"Eliminar",title:"\xbfEst\xe1s seguro de que quieres eliminar este video?",success:"Video eliminado con \xe9xito"},header:{disclaimer:"* Los precios se ajustan seg\xfan su selecci\xf3n."}},quoteToVideo:{title:"Generador de Video de Cita",cost:"Coste del Video",form:{fields:{quote:{label:"Cita",placeholder:"No puedo cambiar la direcci\xf3n del viento, pero puedo ajustar mis velas para llegar siempre a mi destino.",remainingCharacters:"Caracteres"},author:{label:"Autor",placeholder:"Escribe el nombre del autor"},visualStyle:{label:"Elige visuales"}},submit:"Generar Video"}}
1,textToImage:{title:"Generador de Im\xe1genes",generate:"Generar Imagen",usage:"Cr\xe9ditos usados para Imagen =",credits:e=>"".concat(e," Cr\xe9ditos"),form:{fields:{prompt:{label:"Escribe una Solicitud",placeholder:"Empieza a imaginar..."},aspectRatio:{label:"Dimensiones de la Imagen"},imageStyle:{label:"Estilo de la Imagen"},superPrompt:{label:"Mejorar Solicitud (+10 Cr\xe9ditos)",tooltip:"Marca esta casilla para mejorar autom\xe1ticamente tu solicitud y obtener una mejor generaci\xf3n de im\xe1genes. Ten en cuenta que el costo aumentar\xe1 10 cr\xe9ditos adicionales."}}},historyList:{title:"Im\xe1genes Generadas",empty:"\xa1No se han generado im\xe1genes a\xfan!"},bottomNav:{settings:"Configuraci\xf3n de Imagen",history:"Historial"}},textToSpeech:{title:"Generador de Voz en Off",generate:"Generar Voz en Off",usage:"Cr\xe9ditos Usados para Voz en Off =",credits:e=>"".concat(e," Cr\xe9ditos"),form:{fields:{prompt:{label:"Texto",placeholder:"Comienza a escribir aqu\xed o pega cualquier texto que quieras convertir en una voz realista.",maxCharacters:"Characters"}}},empty:{title:"\xa1A\xfan no se han generado voces en off!"},historyList:{title:"Historial de Voces en Off Generadas",empty:"\xa1A\xfan no se han generado voces en off!"},bottomNav:{settings:"Configuraci\xf3n de Voz en Off",history:"Historial"},disclaimer:"Tenga en cuenta que las voces en off generadas por IA pueden contener imperfecciones y errores ocasionales.",loading:"Esto puede tardar unos minutos m\xe1s, por favor sea paciente.",listHeader:{title:"T\xedtulo del Audio",dateCreated:"Fecha de Creaci\xf3n",duration:"Duraci\xf3n"},voiceoverDetails:{script:{title:"Texto de la Voz en Off"}},deleteConfirmation:{header:"Eliminar",title:"\xbfRealmente quieres eliminar esta voz en off?",success:"Voz en off eliminada con \xe9xito"},feedback:{success:"Agradecemos tus comentarios. \xa1Gracias!"}},aiAvatars:{title:"Robots de IA",header:{usage:"Coste del v\xeddeo:",disclaimer:"* El coste depende del n\xfamero de caracteres del gui\xf3n"},script:{title:"Gui\xf3n",placeholder:"Escribe tu gui\xf3n aqu\xed..."},sampleAvatars:"O elige un avatar de ejemplo",voiceover:"G\xe9nero de Voz en Off",videoSettings:{title:"Configuraci\xf3n del Video",dimension:{title:"Dimensiones del Video"},captionStyles:{title:"Estilos de Subt\xedtulos"},backgroundStyle:{title:"Estilo de Fondo"}},avatar:{title:"Elige un Avatar"},language:{title:"Lenguaje del Gui\xf3n",placeholder:"Selecciona un lenguaje"},selectVoiceover:{title:"Selecciona Voz en Off",none:"Ninguno"},uploadImage:{title:"Cargar Imagen",description:"Elige una imagen para convertir en avatar",dragBox:"Arrastra y suelta tu imagen aqu\xed o",browse:"Navegar",chooseFile:"para elegir una imagen",supportedMiemTypes:"Soportados",disclaimer:"Tu avatar debe seguir estas reglas.",seeDetails:"Ver Detalles",failed:"Error al crear el avatar. Prueba con otra foto.",maxSizeMessage:"El archivo es mayor de 50 MB"},uploadVoiceover:{title:"Cargar Voz en Off",description:"Elige una voz en off para convertir en avatar",dragBox:"Arrastra y suelta tu voz en off aqu\xed o",browse:"Navegar",chooseFile:"para elegir una voz en off",supportedMiemTypes:"(Soportados: MP3, WAV)",minDurationMessage:"El archivo es menor de 1 segundo",maxDurationMessage:"El archivo es mayor de 10 minutos",sizeLimitMessage:"El archivo es mayor de 50 MB"},imageRequirementsPopup:{title:"Requisitos de la Imagen",reason:"Tu imagen subida no cumple con los requisitos, por favor intenta con otra foto, y aseg\xfarate de seguir las siguientes gu\xedas.",goodPhotos:"Buenas Im\xe1genes",badPhotos:"Im\xe1genes Malas",description:"Fotos recientes de ti mismo (solo t\xfa), mostrando una mezcla de close-ups y fotos de cuerpo entero, con diferentes \xe1ngulos, expresiones (sonriendo, neutro, serio), y una variedad de ropas. Aseg\xfarate de que sean de alta resoluci\xf3n y reflejen tu apariencia actual.",description1:"No fotos de grupo, gorro, gafas de sol, o filtros pesados. Evita fotos que sean demasiado antiguas, de baja resoluci\xf3n, o no representen tu apariencia actual."},avatarsForm:{name:{label:"Nombre"},gender:{label:"G\xe9nero"},ethnicity:{label:"Etnia"}
1,age:{label:"Edad"},modal:{title:"Tu avatar est\xe1 listo!",description:"Ahora, vamos a agregar algunos detalles para darle vida a tu avatar",save:"Continuar con Avatar",generateNewAvatar:"Generar Nuevo Avatar"}},chooseAvatar:{myAvatars:"Mis Avatars",sampleAvatars:"Avatars de Ejemplo",none:"Ninguno"},review:{title:"Revisi\xf3n de Cargas",description:"Las fotos aprobadas han sido marcadas y est\xe1n listas para crear un aspecto para tu avatar.",failed:"Subir otra imagen",reCrop:"Recortar Imagen",failedDescription:"Imagen no aprobada. Por favor, suba una que cumpla con las reglas de avatar."},generating:{title:"Tu avatar est\xe1 en camino!",exportInfo:"Estamos convirtiendo tu texto en im\xe1genes y voz, y juntando todo en secuencia, y finalizando tu video.",failed:{title:"No se pudo procesar el avatar",description:"No pudimos procesar tu avatar, por favor intenta con una foto diferente.",action:"Generar un nuevo avatar"}},customAvatarGenPopup:{background:{suggestions:"Sugerencias",placeholder:"Describe el fondo o el escenario para tu avatar (por ejemplo, 'escenario de oficina moderna con iluminaci\xf3n suave', 'entorno natural al aire libre', 'fondo neutro en el estudio')"},confirmation:{title:"\xbfEst\xe1s seguro de que quieres proceder con la generaci\xf3n de avatar?",properties:"Propiedades del Avatar:",hijab:"Hijab"},failed:{title:"Error al generar el avatar",description:"No pudimos generar tu avatar en este momento, se te reembolsar\xe1n tus cr\xe9ditos.",action:"Generar un nuevo avatar"}}},maintenancePage:{title:"Lo sentimos, el editor de im\xe1genes con IA est\xe1 en mantenimiento",description:"Actualmente estamos realizando un mantenimiento programado. \xa1Vuelve pronto!"},onBoarding:{skip:"Omitir por Ahora"},aiImagesStudio:{imagePopup:{prompt:"Solicitud",promptPrefix:"",copy:"Copiar",enhancedPrompt:"Solicitud Mejorada",animateTooltip:"\xbfQuieres darle un poco de movimiento a tu imagen?",unlock:"Desbloquea el potencial completo de tu imagen",animate:"Animar",edit:"Editar",upscale:"Upscale",model:"Modelo:"},delete:{header:"Eliminar",title:"\xbfEst\xe1s seguro de que quieres eliminar esta imagen?",success:"Imagen eliminada con \xe9xito"}},aiVideoStudio:{videoPopup:{prompt:"Solicitud de Video:",properties:"Propiedades del Video:",promptPrefix:"",copy:"Copiar",emptyPrompt:"No se proporcion\xf3 ning\xfan mensaje",quote:"Cita:",videoModel:"Modelo de Video:",voiceoverModel:"Modelo de Voz en Off:",negativePrompt:"Prompt Negativo:"}},createImage:{uploadModal:{upload:{title:"Subir Imagen / Video",dragBox:"Arrastra y suelta tu archivo aqu\xed",or:" O ",browse:"navegar ",dragBox1:" para elegir un archivo",info:"( JPG, PNG son compatibles )",upload:"Subir"},size:{title:"Tama\xf1o m\xe1ximo de la imagen : ",title1:"5 MB",message:"El archivo es mayor de 5 MB",messageDynamic:e=>"El archivo es mayor de ".concat(e," MB"),videoMessage:"El archivo es mayor de 150 MB"},duration:{title:"Duraci\xf3n m\xe1xima del video : ",title1:"5 minutos",message:"El video es mayor de 5 minutos"}}},creditsBalance:{title:"Saldo de Cr\xe9ditos",totalCreditsAvailable:"Cr\xe9ditos totales disponibles",planCreditsLeft:{title:"Cr\xe9ditos Mensuales Restantes",tooltip:"Cr\xe9ditos mensuales restantes, disponibles hasta el fin de mes y se reinician mensualmente"},topUpCreditsLeft:{title:"Cr\xe9ditos Comprados Restantes",tooltip:"Cr\xe9ditos restantes disponibles para usar, representando tu saldo no utilizado de los cr\xe9ditos comprados."},monthlyCredits:"Cr\xe9ditos mensuales",purchasedCredits:"Cr\xe9ditos comprados",planCreditsSubtitle:"Se renueva en cada ciclo de facturaci\xf3n",purchasedCreditsSubtitle:"Compras puntuales",expiresInDays:e=>1===e?"Caduca en 1 d\xeda":"Caduca en ".concat(e," d\xedas")},changePlan:{current:"Cr\xe9ditos del Plan Actual :",tabs:{changeCurrentPlan:{title:"Cambiar Plan Actual",tooltip:"Los cr\xe9ditos se restablecer\xe1n al final del ciclo de facturaci\xf3n",description:"Selecciona a continuaci\xf3n el n\xfamero de cr\xe9ditos que deseas en el nuevo plan:"},oneTimePayment:{title:"Pago \xdanico",tooltip:"Los cr\xe9ditos se acumular\xe1n",description:"Selecciona a continuaci\xf3n el n\xfamero de cr\xe9ditos que deseas agregar a tu cuenta:"}}},reactivateFlow:{title:"Parece que tu suscripci\xf3n est\xe1 actualmente en pausa. No te preocupes, reactivarla es f\xe1cil y no te cobrar\xe1 nada.",action:"Reactivar"}
1,yearlyDisclaimer:{title:"\xbfBuscas mejorar tu plan actual? Contacta a nuestro equipo de soporte para recibir asistencia. \xa1Estamos aqu\xed para ayudarte a mejorar tu experiencia de suscripci\xf3n!"},sharePopup:{confirmation:{title:"\xbfEst\xe1s seguro de que quieres compartir tu video?",description:"Solo las personas con el enlace pueden acceder al video"},title:"Compartir Enlace",description:"Copia el enlace a continuaci\xf3n para compartir tu video"},effects:{title:"Efectos de Texto"},highlightEffects:{title:"Efectos de Resaltado"},verification:{title:"Verificaci\xf3n de Correo Electr\xf3nico",description:"Por favor, verifica tu correo electr\xf3nico para continuar.",change:"Cambiar",didntReceive:"\xbfNo recibiste el correo?",resend:"Reenviar",resendSuccess:"Correo reenviado con \xe9xito",verify:"Verificar",checkSpam:"\xbfNo recibiste el correo electr\xf3nico? Por favor revise su carpeta de spam/basura y agr\xe9guenos a su lista de remitentes seguros."},trimPopup:{title:"Recortar Video",cancel:"Cancelar",selectVideo:"Seleccionar Video"},invalidLink:{title:"Este video no es v\xe1lido",description:"Parece que el enlace de video que proporcionaste no es v\xe1lido."},creditsSysterm:{title:"Sistema de Cr\xe9ditos",description:"Los cr\xe9ditos se utilizan para generar contenido en Bith.ai",tooltip:e=>"Los cr\xe9ditos se restablecen a ".concat(e," cada mes a partir de la fecha de suscripci\xf3n. Compra m\xe1s o actualiza seg\xfan sea necesario.")},serviceDown:{title:e=>"Herramienta ".concat(e," Temporalmente No Disponible"),description:e=>"No pudimos generar tu ".concat(e," en este momento. Por favor, int\xe9ntalo de nuevo m\xe1s tarde"),action:"Volver al Estudio",features:{image_generation:{title:"Generador de Im\xe1genes",description:"Imagen"},voice_over_generation:{title:"Generador de Voz",description:"Voz en Off"},text_to_video_script_generation:{title:"Generador de Video",description:"Gui\xf3n"},text_to_video_scene_generation:{title:"Generador de Video",description:"video"},scene_generation_text_to_video:{title:"Generador de Video",description:"video"},scene_generation_image_to_video:{title:"Generador de Video",description:"video"},transcription:{title:"Generar Subt\xedtulos",description:"subt\xedtulos"},quote_to_video:{title:"Generador de Video de Cita",description:"video"},avatar_photo_generation:{title:"Generador de Avatar",description:"avatar"},avatar_video_generation:{title:"Generador de Avatar",description:"avatar"},image_editor:{title:"Editor de Im\xe1genes",description:"imagen"},image_upscaler:{title:"Upscale de Im\xe1genes",description:"imagen"}},modelDown:{title:e=>"".concat(e," No Disponible Temporariamente"),description:e=>"El modelo ".concat(e," no est\xe1 disponible en este momento. Intenta cambiar a otro modelo para continuar"),back:"Volver al Estudio",switch:"Cambiar Modelo"},providerDown:{title:"Modelo Inactivo",description:"El modelo no est\xe1 disponible en este momento. Intenta cambiar a otro modelo para continuar",back:"Volver al Estudio",switch:"Cambiar Modelo"},templateExecutionFailure:{title:"Template No Disponible",description:"El template no est\xe1 disponible en este momento. Intenta cambiar a otro template para continuar",back:"Volver a Templates"}},videosOptionsPopup:{title:"Video Corto"},serviceDownPopup:{title:"Servicio inactivo",description:"Nuestra generaci\xf3n de guiones con IA (para la idea del video) est\xe1 en mantenimiento y pronto estar\xe1 operativa.",description1:'Sin embargo, la funci\xf3n "Pega tu guion" est\xe1 disponible.'},aspectRatioAlertPopup:{title:"Dimensiones de imagen no v\xe1lidas",description:e=>"La imagen cargada no cumple con las dimensiones requeridas. Aseg\xfarate de que el ancho/alto de tu imagen no supere los ".concat(e,"px."),description1:e=>"La imagen cargada no cumple con las dimensiones requeridas. Aseg\xfarate de que el ancho/alto de tu imagen sea mayor que ".concat(e,"px.")},faqs:{title:"Preguntas Frecuentes"},discoverMore:{title:"Descubre m\xe1s con Bith"},imageCropper:{actions:{crop:"Cortar",cancel:"Cancelar"}},creditsRolloverPopup:{title:"\xa1Se ha lanzado el rollover de cr\xe9ditos!",description:"Tus cr\xe9ditos no utilizados ahora se acumulan mes a mes de forma indefinida y siempre se utilizan antes que los cr\xe9ditos mensuales normales o cualquier recarga adicional. Mant\xe9n activa tu suscripci\xf3n para conservar tu saldo acumulado — \xa1no necesitas hacer nada!"},annualPlansPopup:{title:"Planes anuales",discountAmount:"20%",descriptionPrefix:"Obt\xe9n un ",descriptionSuffix:" de descuento con nuestros planes anuales.",descriptionSecondary:"Consulta los nuevos planes y las condiciones de cr\xe9ditos actualizadas.",cta:"Mejorar plan"},musicRemovalConfirmation:{header:"Tu video se exportar\xe1 sin m\xfasica",title:"Esta pista es una vista previa y no se incluir\xe1 en tu exportaci\xf3n debido a restricciones de copyright. Puedes agregar esta m\xfasica espec\xedfica o cualquier otra de la aplicaci\xf3n de redes sociales de tu elecci\xf3n"},deleteAccount:{header:"Eliminar Cuenta",title:"\xbfEst\xe1s seguro de que quieres eliminar tu cuenta?",description:"Esta acci\xf3n es irreversible y eliminar\xe1 tu cuenta por completo. Todas las asociaciones de datos se eliminar\xe1n permanentemente.",action:"Eliminar Cuenta"},useCases:{title:"Lo que los usuarios est\xe1n creando"},aiImageEditor:{newProject:"Nuevo Proyecto",newProjectShort:"Nuevo",prompt:{label:"Texto",placeholder:"Describe lo que quieres cambiar…"},deleteConfirmation:{header:"\xbfEst\xe1s seguro de que quieres eliminar esta sesi\xf3n?",title:"Esto eliminar\xe1 permanentemente la imagen cargada y todas las ediciones realizadas durante esta sesi\xf3n. No podr\xe1s recuperarlas.",title2:"Esto eliminar\xe1 permanentemente todas las ediciones realizadas durante esta sesi\xf3n. La imagen importada desde tu biblioteca permanecer\xe1 sin cambios. No podr\xe1s recuperar las ediciones eliminadas.",success:"Sesi\xf3n eliminada con \xe9xito"},editVersionActions:{download:"Descargar",downloading:"Descargando...",zoomIn:"Zoom In",zoomOut:"Zoom Out",fitToCanvas:"Ajustar a la Canva",animate:"Animar",upscale:"Upscale",copyLink:"Copiar Link",removeImage:"Eliminar Imagen"},editVersion:{failed:"Fallo",failedDescription:"Lo sentimos, algo sali\xf3 mal y tu solicitud fall\xf3. Por favor, int\xe9ntalo de nuevo"},newSession:{title:"Editor de Imagen"}
1,uploadImage:{title:"Cargar Imagen",supportedMiemTypes:"Soportados: ",import:{library:"Tu Biblioteca",upload:"Subir"},maxFilesUpTo:"* A\xf1adir hasta ",maxFilesUpToValue:"im\xe1genes"}},styleExamplesCarousel:{apply:"Aplicar",ariaLabel:"Ejemplos de estilo"},inspirationalGallery:{title:"Galer\xeda Inspiracional",backToGallery:"Volver a la Galer\xeda",tools:{[o.m.AI_SHORTS]:"Shorts IA",[o.m.TEXT_TO_SCENE]:"Texto a Video",[o.m.IMAGE_TO_SCENE]:"Imagen a Video",[o.m.QUOTE_TO_VIDEO]:"Cita a Video",[o.m.AI_AVATAR]:"Avatar IA",[o.m.TEXT_TO_IMAGE]:"Texto a Imagen",[o.m.IMAGE_EDITOR]:"Editor de Imagen"},details:{image:"Imagen",video:"Video",tool:"Herramienta",prompt:"Prompt",model:"Modelo:",properties:"Propiedades:",script:"Script",quote:"Cita",usePreset:"Usar Preset"}},sceneGen:{imageToScene:{newSession:{title:"Imagen a Video"}},textToScene:{newSession:{title:"Texto a Video"}},actions:{generate:"Generar",loading:"Generando..."},form:{imageUploader:{selectImages:"Seleccionar Imagen",upload:"Subir"}},selectModelPopup:{i2vTitle:"Elige un modelo",t2vTitle:"Elige un modelo",imageGenTitle:"Elige un modelo",modelsTitle:"Modelos",button:"Usar Modelo",audioTooltip:"Este modelo soporta audio.",searchPlaceholder:"Buscar un modelo ...",newBadge:"Nuevo",noResults:"Ning\xfan modelo coincide con tu b\xfasqueda.",speedTooltip:"Velocidad",qualityTooltip:"Calidad",startFrameBadge:"Fotograma inicial",endFrameBadge:"Fotograma final"},sceneItemCard:{reuseParameters:"Reusar Par\xe1metros",copyPrompt:"Copiar Prompt",download:"Descargar"}},models:{modelsSelector:{model:"Modelo",viewAllModels:"Ver Todos los Modelos"}},sessions:{title:"Sesiones",videoOptions:"Opciones de Video",imageOptions:"Opciones de Imagen",deleteSession:{sceneGen:{header:"\xbfEst\xe1s seguro de que quieres eliminar esta sesi\xf3n?",title:"Esto eliminar\xe1 permanentemente todas las escenas generadas durante esta sesi\xf3n. No podr\xe1s recuperarlas",success:"Sesi\xf3n eliminada con \xe9xito"},session:{header:"\xbfEst\xe1s seguro de que quieres eliminar esta sesi\xf3n?",title:"Esto eliminar\xe1 permanentemente la sesi\xf3n y todas las ediciones realizadas durante esta sesi\xf3n. No podr\xe1s recuperarlas",success:"Sesi\xf3n eliminada con \xe9xito"}},itemFailed:{title:"Lo sentimos, este fall\xf3.",description:"Intenta nuevamente o cambia el prompt o el proveedor del modelo.",template:{title:"Fallo al Generar",description:"Intenta nuevamente o cambia las entradas.",reasons:{chargedForFailedJob:{title:"\xbfSe me cobra por los trabajos fallidos?",description:"No, no se te cobrar\xe1 por ning\xfan trabajo fallido."}}},reasons:{whyFailed:{title:"\xbfPor qu\xe9 fallan los trabajos?",description:"Cada proveedor de modelo tiene diferentes disponibilidades y restricciones. Prueba con otro proveedor cambiando el modelo en la parte superior, o modifica tu prompt y evita usar nombres o referencias a material con derechos de autor. No se te cobrar\xe1 por ning\xfan trabajo fallido."},chargedForFailedJob:{title:"\xbfSe me cobra por los trabajos fallidos?",description:"No, no se te cobrar\xe1 por ning\xfan trabajo fallido."}}}},imageUpscaler:{actions:{upscale:"Upscale",loading:"Upscaling..."},newSession:{title:"Image Upscaler"},editActions:{animate:"Animar",download:"Descargar"},session:{failed:{title:"Fallo",reason:"No pudimos escalar tu imagen, se te reembolsar\xe1n tus cr\xe9ditos. Por favor, int\xe9ntalo de nuevo."},advancedSettings:"Configuraci\xf3n Avanzada"}},imageGen:{newSession:{title:"Generador de Im\xe1genes"},actions:{generate:"Generar",loading:"Generando..."},imageGenItemCard:{reuseParameters:"Reusar Par\xe1metros",copyPrompt:"Copiar Prompt",download:"Descargar",retry:"Reintentar",upscale:"Upscale",animate:"Animar",edit:"Editar"},failed:{title:"No se pudo procesar la imagen",description:"No pudimos procesar tu imagen, por favor intenta con una imagen diferente.",description1:"Se te reembolsar\xe1n tus cr\xe9ditos para esta imagen. Por favor, int\xe9ntalo de nuevo con un prompt diferente.",action:"Generar una nueva imagen"}},toolsNavigationDropdown:{video:"Video",image:"Imagen",audio:"Audio",other:"Lip-syncing"},promptBox:{warning:"Google has been reporting black screen issues with their Veo3 image to video model."},templates:{outputType:"Tipo de salida",uploadFile:{title:"Clic para cargar",dragBox:"Arrastra y suelta tu archivo aqu\xed",or:" o ",browse:"explorar ",dragBox1:" para elegir un archivo",supp
1ortedMiemTypes:"Soportados: ",removeFile:"Eliminar archivo"},generate:"Generar",generating:"Generando..."},toolsShortcuts:{edit:"Editar",upscale:"Upscale",animate:"Animar",photoshoot:"Sesi\xf3n de estudio"},productPhotoshoot:{title:"Sesi\xf3n de Fotos de Producto",history:"Historial",header:{breadcrumbApps:"Aplicaciones"},upload:{uploading:"Subiendo...",dragAndDrop:"Arrastra y suelta tu imagen aqu\xed o",browse:"Explorar",toChoose:"para elegir una imagen",supportedFormats:"(Soporta: PNG, JPG, JPEG, WEBP)",uploadFailed:"Error al subir. Por favor, int\xe9ntalo de nuevo."},imagePreview:{altText:"Producto subido",change:"Cambiar"},resultViewer:{noOutput:"Sin resultados disponibles",unableToLoad:"No se pudo cargar la imagen",altText:e=>"Resultado de sesi\xf3n ".concat(e)},actions:{generating:"Generando ...",generateShots:"Generar fotos",downloading:"Descargando...",download:"Descargar",downloadWebImage:"Descargar Imagen Web (WEBP)",downloadWebImageDesc:"Optimizado para sitios web",downloadFullQuality:"Descargar Imagen de Calidad (PNG)",downloadFullQualityDesc:"Mejor calidad para edici\xf3n o impresi\xf3n",edit:"Editar",createNew:"Nueva sesi\xf3n de fotos",new:"Nuevo",errorMessage:"Algo sali\xf3 mal. Por favor, int\xe9ntalo de nuevo."},dimensions:{title:"Elegir dimensiones",subtitle:"Para el resultado final"},instructions:{step1Title:"Subir imagen",step1Description:"Sube la imagen que deseas editar",step2Title:"Generar 8 fotos",step2Description:"Descarga 8 im\xe1genes listas para usar en diferentes estilos y escenas.",step3Title:"Crear video promocional",step3Description:"Elegiremos las mejores im\xe1genes y crearemos tu video."},outputs:{altText:e=>"Resultado ".concat(e),generatedShots:"Tomas generadas",createProductVideo:"Crear Video de Producto",downloadAll:"Descargar Todo"},promo:{title:"Crear Video Promocional",selectionTitle:"Modo de selecci\xf3n de video",selectionDescription:"Selecciona 5 de las fotos generadas abajo\npara animarlas en el video promocional",selectShotsTitle:"Selecciona 5 fotos para animar en un video",selectMusicTitle:"Seleccionar M\xfasica de Fondo",backgroundMusic:"M\xfasica de fondo",playPreview:"Reproducir",pausePreview:"Pausar",generatingTitle:"Generando video promocional",generatingDescription:"Estamos convirtiendo las fotos seleccionadas en un breve video promocional. Esto puede tardar hasta un minuto.",readyTitle:"Video promocional listo",readyFallback:"Tu video promocional ha sido generado.",failedTitle:"Error en el video promocional",failedDescription:"No pudimos generar el video promocional. Por favor, int\xe9ntalo de nuevo.",back:"Volver",generateButton:"Crear video",create:"Crear",createNewVideo:"Crear video nuevo",downloadVideo:"Descargar Video"}},aiInfluencer:{breadcrumbApps:"Aplicaciones",buildYourInfluencer:"Crea tu Influencer",new:"Nuevo",history:"Historial",baseProfile:"Perfil Base",physicalFeatures:"Rasgos F\xedsicos",styleDetails:"Detalles de Estilo",selectAtLeastOne:"Selecciona al menos una opci\xf3n para continuar",next:"Siguiente",back:"Atr\xe1s",generate:"Generar",generating:"Generando...",generateLooks:"Generar Looks",edit:"Editar",animate:"Animar",speak:"Hablar",dressUp:"Vestir",tryOnOutfits:"Probar outfits",comingSoon:"Pr\xf3ximamente",influencerName:"Nombre del Influencer",save:"Guardar",generationFailed:"Error de Generaci\xf3n",generationFailedDesc:"Algo sali\xf3 mal al generar tu influencer IA. Por favor, int\xe9ntalo de nuevo.",tryAgain:"Intentar de nuevo",emptyStateLine1:"Tu influencer IA vive aqu\xed.",emptyStateLine2:"Dise\xf1a y construye tu influencer IA",emptyStateLine3:"desde cero",influencerLooks:"Looks del Influencer",generatedLooks:"Looks Generados",loading:"Cargando...",noLooksYet:"A\xfan no se han generado looks.",noLooksDesc:"Sube una imagen de producto arriba para crear tu primer look.",uploadProductImage:"Subir Imagen de Producto",tapToUploadProductImage:"Toca para subir imagen de producto",uploading:"Subiendo...",promptOptional:"Descripci\xf3n (opcional)",promptPlaceholder:"ej. que sostenga el frasco de perfume",generateLook:"Generar Look",generatingLook:"Generando tu look…",generateLookFailed:"Error al generar el look.",fetchLooksFailed:"Error al cargar los looks.",lookStatusCheckFailed:"Error al comprobar el estado del look.",selectLookFirst:"Selecciona un look para generar.",selectAtLeastOneField:"Proporciona una descripci\xf3n o selecciona un entorno, estilo de toma o \xe1ngulo de c\xe1mara.",describeChange:"Describe lo que quieres cambiar…",environment:"Entorno",shotStyle:"Estilo de toma",background:"Fondo",poses:"Poses",cameraAngle:"\xc1ngulo de c\xe1mara",optionalSection:" (Opcional)",productImageAlt:"Imagen del producto",uploadProductImageAlt:"Subir imagen del producto",styleReferenceImageAlt:"Imagen de referencia de estilo",uploadStyleReferenceAlt:"Subir referencia de estilo",customBackgroun
1dImageAlt:"Vista previa del fondo personalizado",uploadFailed:"Error al subir. Por favor, int\xe9ntalo de nuevo.",renameInfluencer:"Renombrar Influencer",influencerNamePlaceholder:"Nombre del influencer",cancel:"Cancelar",close:"Cerrar",download:"Descargar",regenerate:"Regenerar",rename:"Renombrar",editAttributes:"Editar atributos",delete:"Eliminar",newInfluencer:"Nuevo influencer",generatingCharacter:"Generar personaje puede tomar hasta <span class='font-bold'>2 minutos</span>",actions:"Acciones",nationality:"Nacionalidad",selectNationalityForTraditional:"Selecciona una nacionalidad para habilitar Tradicional.",headCoveringOmittedForAttire:"Se omite la cobertura de cabeza para atuendos de Doctor y Chef."},virtualTryOn:{title:"Prueba virtual",header:{breadcrumbApps:"Aplicaciones"},modelSelection:{chooseModel:"Elegir modelo",chooseTheModel:"Elige el modelo",male:"Hombre",female:"Mujer",uploadModelImage:"Subir imagen de modelo",yourGallery:"Tu galer\xeda",uploadHint:"Una persona, cuerpo completo, rostro claramente visible",or:"O",changeModel:"Cambiar modelo",creatingModelFromImage:"Creando tu modelo… Esto puede tardar un momento."},configPanel:{createLooks:"Crear looks",clothingItems:"Prendas",background:"Fondo",poses:"Poses",optional:"(Opcional)"},upload:{dragAndDrop:"Arrastra tus im\xe1genes aqu\xed o",browse:"Examinar",toChoose:"para elegir una imagen",supportedFormats:"(Formatos compatibles: PNG, JPG, JPEG, WEBP)"},actions:{generate:"Generar",generating:"Generando...",download:"Descargar",animate:"Animar",generatingDescription:"Generar la imagen puede tardar hasta <span class='font-bold'>2 minutos</span>"},instructions:{step1Title:"Elige un modelo",step1Desc:"Selecciona un modelo listo para usar o sube la foto de una persona para la prueba",step2Title:"Sube tu prenda",step2Desc:"Sube fotos de las prendas que quieres probar",step3Title:"Genera una nueva imagen",step3Desc:"Se genera una nueva imagen mostrando al modelo con las prendas que subiste"}},generationProcess:{generating:(e,t)=>"Generando ".concat("image"===e?"imagen":"video"===e?"video":"audio"===e?"audio":"product_photoshoot"===e?"fotos":"virtual_try_on"===e?"try-on":"mezcla")+' puede tardar hasta <span class="font-bold text-ph-color">'.concat(t," minutos.</span>"),pleaseWait:"Por favor, espera o puedes generar algo m\xe1s mientras esperas.",statusLabels:{pending:"En cola",inqueue:"En cola",running:"En cola",processing:"Procesando",completed:"Completado",failed:"Fallido"}},ugcVideo:{editor:{sceneEditIntro:{badge:"Nuevo",title:"Controla el v\xeddeo despu\xe9s de crearlo",description:"Mira el v\xeddeo, edita el texto del di\xe1logo y recrea cualquier escena f\xe1cilmente hasta que obtengas el resultado que deseas antes de exportar el v\xeddeo final.",cta:"Comenzar a editar"}}}},fr:{global:{off:"off",createNew:"Cr\xe9er nouveau",backTo:"Retour \xe0",viewAll:"Voir tous",showAll:"Afficher tous",featured:"En vedette",select:"S\xe9lectionner ...",nationality:"Quelle est la nationalit\xe9 ?",cost:"Co\xfbt",failed:"\xc9chec",characters:"Caract\xe8res",durationEstimate:"Dur\xe9e estim\xe9e",step:"\xc9tape",gotIt:"Compris",rechargesOn:"Se recharge le",topUp:"Recharger",rollover:"Reporter",plan:"Forfait",active:"Actif",collapse:"R\xe9duire",expand:"D\xe9velopper",otherPlaceholder:"Autre",featuredTools:"Outils en vedette",export:"Exporter",free:"Gratuit",thankYou:"Merci",generatingScenes:"G\xe9n\xe9ration des sc\xe8nes...",optional:"Optionnel",feedbackSuccess:"Merci pour votre feedback !",noAudio:"No audio",ex:"* Exemples",comingSoon:"Bient\xf4t",comingSoonLong:"Bient\xf4t disponible",promptCopySuccess:"Invite copi\xe9e dans le presse-papiers",scriptCopySuccess:"Script copi\xe9 dans le presse-papiers",quoteCopySuccess:"Citation copi\xe9e dans le presse-papiers",downloadImageSuccess:"Image t\xe9l\xe9charg\xe9e avec succ\xe8s",downloadVideoSuccess:"Vid\xe9o t\xe9l\xe9charg\xe9e avec succ\xe8s",downloadVoiceoverSuccess:"Narration t\xe9l\xe9charg\xe9e avec succ\xe8s",linkCopiedSuccess:"Lien copi\xe9 avec succ\xe8s",summerSale:"(40% Vente d'\xe9t\xe9)",winterSale:"(40% Vente d'hiver)",sale:"%",sortby:"Trier par :",filterBy:"Filtrer par :",megaByte:"Mo",since:"Suscrit depuis",of:"de",gb:"Go",perMonthShort:"/mois",perMonth:"/ Mois",perMonthYearly:"factur\xe9 annuellement",perYear:"/ Ann\xe9e",choosePlan:"Choisir un plan",getStarted:"Commencer",currentSubscription:"Abonnement actuel",currentPlan:"Plan actuel",changePlan:"Changer de plan",reActivate:"R\xe9activer le plan",moreFromBith:"Plus de BithAI",all:"Tout",studio:"Studio",backSignIn:"Retour \xe0 la connexion",back:"Retour",next:"Suivant",backToStudio:"Retour au studio",generateAvatar:"G\xe9n\xe9rer un avatar",backHome:"Retour \xe0 la page principale",createVideo:"\xc9diter une vid\xe9o",uploadVideo:"T\xe9l\xe9verser une vid\xe9o",yourAccount:"Votre compte",filters:{search:"Rechercher...",tenorSearch:"Rechercher sur Tenor",sort:"Trier par",filterBy:"Filtrer par",pixabaySearchPlaceholder:"Rechercher des images sur pixabay",pixabaySearchVideosPlaceholder:"Rechercher des vid\xe9os sur pexels",poweredBy:"Vid\xe9os fournies par"},learnHow:"Apprendre comment",done:"Fait",bith:"Bith.ai",shortSignUp:"S'inscrire",shortSignIn:"Connexion",language:"عربي",en:"EN",ar:"AR",upload:"T\xe9l\xe9verser",continueEditing:"Continuer l'\xe9dition",continue:"Continuer",signup:"Cr\xe9er un compte",login:"Connexion",home:"Accueil",contactUs:"Contactez-nous",terms:"Conditions g\xe9n\xe9rales",privacy:"Politique de confidentialit\xe9",error_url:"/illustrations/404_Image.svg",home_page:"Page d'accueil",save:"Enregistrer",soon:"Bient\xf4t",new:"Nouveau",or:"ou",socialLabel:"Connexion avec",imagesValidation:{typeNotAllowed:"Vous ne pouvez t\xe9l\xe9verser que des photos de couverture JPG/PNG",coverLarge:"La taille de la photo de couverture doit \xeatre inf\xe9rieure ou \xe9gale \xe0 2 Mo"},normalImagesValidation:{typeNotAllowed:"Vous ne pouvez t\xe9l\xe9verser que des photos de couverture JPG/PNG",large:"La taille de l'image doit \xeatre inf\xe9rieure ou \xe9gale \xe0 2 Mo"},showMore:"Voir plus",connect:"Connecter",connected:"Connect\xe9",noResults:"Aucun r\xe9sultat trouv\xe9",validations:{shortRequired:"(Obligatoire)",required:"Ce champ est requis",invali
1dUrl:"URL invalide",invalidSocialMediaHandle:"Manejo de r\xe9seaux sociaux invalide",messageDynamic:e=>"Le fichier est plus grand que ".concat(e," MB")},confirmationAlert:{no:"Non",yes:"Oui"},fileTypeNotSupported:e=>{let{videoType:t}=e;return"Le format de fichier ".concat(t," n'est pas pris en charge.")},sizeLimit:"D\xe9sol\xe9, votre m\xe9dia t\xe9l\xe9vers\xe9 d\xe9passe la limite de taille de fichier.",sizeLimitMaxDescription:"La taille maximale pour le t\xe9l\xe9versement de m\xe9dia est",maxSizeLimit:"200 Mo",remove:"Retirer",delete:"Supprimer",cancel:"Annuler",close:"Fermer",move:"D\xe9placer",restore:"Restaurer",time:{mins:e=>1===e||e>10?"Min":"Mins",minsMobile:"m",secs:e=>1===e||e>10?"Sec":"Secs",hours:e=>1===e||e>10?"Heure":"Heures",days:e=>1===e||e>10?"Jour":"Jours"},minutes:e=>1===e||e>10?"Minute":"Minutes",seconds:e=>1===e||e>10?"Seconde":"Secondes",credits:e=>"Cr\xe9dits",perEdit:"/\xc9diter",oneTime:"(Une fois)",upgradeToPro:"Passer \xe0 Pro",upgradePlan:"Changer de plan",upgrade:"Am\xe9liorer",downgrade:"R\xe9trograder",generateClips:"G\xe9n\xe9rer",generateAVideo:"G\xe9n\xe9rer une vid\xe9o",clips:"Clips",processing:"Traitement",continueGenerating:"\xc9diter le script",editScenes:"\xc9diter la vid\xe9o",showLess:"Voir moins",poweredby:"Propuls\xe9 par",proceed:"Continuer",paidFeature:"Fonctionnalit\xe9 payante",download:"T\xe9l\xe9charger",generateImage:"G\xe9n\xe9rer une nouvelle image",generateImageShort:"G\xe9n\xe9rer une image",generateScene:"G\xe9n\xe9rer une nouvelle vid\xe9o",generateVideo:"G\xe9n\xe9rer une nouvelle vid\xe9o",generateVideoShort:"G\xe9n\xe9rer une vid\xe9o",editVideo:"\xc9diter",share:"Partager",copyShared:"Copier le lien partag\xe9",addCredits:"Ajouter des cr\xe9dits",images:e=>"Images",copy:"Copier",copied:"Copi\xe9",creditsUsed:"Cr\xe9dits utilis\xe9s",and:"et",backToMenu:"Retour au menu principal",videoPopup:{showDetails:"D\xe9tails de la vid\xe9o",showVideo:"Voir la vid\xe9o"},somethingWentWrong:"Une erreur s'est produite",empty:{videos:"Aucune vid\xe9o trouv\xe9e",scenes:"Aucune sc\xe8ne trouv\xe9e",images:"Aucune image trouv\xe9e"},useTemplate:"Utiliser le mod\xe8le"},account:{dropDown:{accountSettings:"Param\xe8tres du compte",logout:"D\xe9connexion"}},signUp:{title:"Cr\xe9er un nouveau compte",fields:{username:{label:"Nom d'utilisateur",illegal_chars:"Le nom d'utilisateur contient des caract\xe8res ill\xe9gaux.",minUserNameMessage:"Le nom d'utilisateur doit comporter au moins 5 caract\xe8res.",maxUserNameMessage:"Le nom d'utilisateur ne doit pas d\xe9passer 24 caract\xe8res."},email:{label:"Email"},password:{label:"Mot de passe",password_illegal_chars:"Le mot de passe doit contenir un chiffre et faire au moins 8 caract\xe8res.",password_rules:"Le mot de passe doit contenir un chiffre et faire au moins 8 caract\xe8res."},confirm_password:{label:"Confirmer le mot de passe",password_validation:"Les mots de passe ne correspondent pas."},emailMarkiting:{label:"Je souhaite recevoir des nouvelles, des mises \xe0 jour de fonctionnalit\xe9s, des r\xe9ductions et des offres de Bith.ai"},terms:{label:"Je reconnais avoir lu le ",label2:"et j'accepte les "}},actions:{submit:"Cr\xe9er un compte",login:"Vous avez un compte ?",login1:"Connexion",continueWithEmail:"Continuer avec l'email"}},login:{title:"Connectez-vous \xe0 votre compte",socialTitle:"Bienvenue chez BithAI",forgotPassword:"Mot de passe oubli\xe9 ?",fields:{email:{label:"Email",errors:{required:"Ce champ est requis."}},password:{label:"Mot de passe",errors:{required:"Ce champ est requis."}}},actions:{submit:"Connexion",signUp:"Vous n'avez pas encore de compte ?",social:"Connectez-vous avec votre compte social",continueWithEmail:"Continuer avec l'e-mail"}},contactUs:{info:"Informations de contact",email:"Email",social:"R\xe9seaux sociaux"},help:{layout:{title:"Bith.ai",pages:{terms:"Conditions g\xe9n\xe9rales",privacy:"Politique de confidentialit\xe9",guide:"Guide Bith"}}},validations:{email:{illegal:"L'email saisi est ill\xe9gal.",invalid:"L'email saisi est invalide."},required:"Ce champ est requis",maxTextLength:"La longueur du texte doit \xeatre inf\xe9rieure \xe0 255 caract\xe8res",minTextLength:"La longueur du texte doit \xeatre sup\xe9rieure \xe0 5 caract\xe8res",maxTextLengthDynamic:e=>"La longueur du texte doit \xeatre inf\xe9rieure \xe0 ".concat(e," caract\xe8res"),minTextLengthDynamic:e=>"La longueur du texte doit \xeatre sup\xe9rieure \xe0 ".concat(e," caract\xe8res"),maxNumberDynamic:e=>"Maximum ".concat(e),minNumberDynamic:e=>"Minimum ".concat(e),oneFieldIsRequiredAtLeast:"Au moins un champ est requis",textFieldsMin:e=>"La longueur du texte doit \xeatre sup\xe9rieure \xe0 ".concat(e," caract\xe8res pour tous les champs combin\xe9s"),textFieldsMax:e=>"La longueur du texte doit \xeatre inf\xe9rieure \xe0 ".concat(e," caract\xe8res pour tous les champs combin\xe9s")},socialLogin:{facebook:"Facebook",twitter:"Twitter",google:"Google",discord:"Discord",twitch:"Twitch",apple:"Apple"},appBanner:{title:"T\xe9l\xe9chargez l'application BithAI",subTitle:"T\xe9l\xe9chargez l'application BithAI",action:"Installer"},resizer:{layers:{source:"Apr\xe8s :",before:"Avant :"},compileActions:{continueEditing:"Continuer l'\xe9dition",skip:"Passer les modifications",skipDescription:"(Sans modifications)",compile:"\xc9diter et t\xe9l\xe9verser",next:"Suivant"},importFaild:{title:"\xc9chec de l'importation du fichier",upload:"T\xe9l\xe9verser"},editorSettings:{faceCam:"Cam\xe9ra frontale :",outlinesBefore:"Contours :",outlineAfter:"Contours :",original:"Original",output:"Sortie"},outputSettings:{aspectRatio:"S\xe9lectionnez la taille",fps:"Images par seconde (IPS) :",quality:"Qualit\xe9 :"},preview:{title:"Cliquez ici pour",description:"Redimensionner magiquement"},templates:{action:"Changer la mise en page",modal:{title:"Choisir une mise en page",description:"Convertissez votre vid\xe9o aux dimensions souhait\xe9es."}},resetChanges:"R\xe9initialiser les modifications"},socialMediaDistribution:{connectedAccounts:"Comptes connect\xe9s",action:"Connecter des comptes",disconnect:"D\xe9connecter le compte",selectPage:"S\xe9lectionner la page",unSelectPage:"D\xe9s\xe9lectionner la page",tiktokNote:"Vous recevrez une notification depuis l'application TikTok sur votre appareil mobile pour continuer le processus de publication.",needMobileInstallation:"Une fois publi\xe9, vous devrez continuer \xe0 poster la vid\xe9o depuis votre compte sur l'application mobile BithAI.",enable:"Activer la publication sur ce compte connect\xe9",publish:"Publier",publishDownload:"Publier et t\xe9l\xe9charger",actions:{cancel:"Annuler",connect:"Connecter un compte"}},advancedEditor:{sideBar:{media:"M\xe9dias",layers:"Calques",text:"Texte",audio:"Audio",gifs:"GIFs",videos:"Vid\xe9os",images:"Images",effects:"Effets",subtitles:"Sous-titres"},panels:{general:{title:"G\xe9n\xe9ral",settings:"Correspondre \xe0 la source",quality:"R\xe9solution d'exportation",fps:"Images par seconde (IPS)",bgColor:"Couleur de fond"},timing:"Chronom\xe9trage",texts:{tabs:{textSettings:"Param\xe8tres du texte",effects:"Effets",timing:"Chronom\xe9trage"},title:"Param\xe8tres du texte",editText:"Modifier le texte",fontFamily:"Police",lockRatio:"Verrouiller le ratio",color:"Couleur de la police",outline:"Contour du texte",off:"D\xc9SACTIV\xc9",on:"ACTIV\xc9",stroke:{title:"Contour du texte",color:"Couleur du contour",width:"Largeur"},background:{title:"Arri\xe8re-plan du texte",color:"Couleur",corners:"Coins",padding:"Marge int\xe9rieure",opacity:"Opacit\xe9"},effect:{textColor:"Couleur du texte",backgroundColor:"Couleur de l'arri\xe8re-plan"}},audio:{title:"Audio",volume:"Volume",noAudio:"Cette vid\xe9o n'a pas de son"}
1,image:{title:"Image",tabs:{settings:"Image"}},video:{title:"Vid\xe9o",tabs:{settings:"Vid\xe9o"}},gifs:{title:"GIFs"},shared:{layer:"Calque",delete:"Supprimer",backward:"Vers l'arri\xe8re",forward:"Vers l'avant",sendToFront:"Envoyer au premier plan",sendToBack:"Envoyer \xe0 l'arri\xe8re-plan"},effects:{title:"Effets de bo\xeete"},subtitle:{title:"Sous-titres",applyToAll:"Appliquer les param\xe8tres \xe0 tous les sous-titres"}},media:{switcher:{myLibrary:"Ma biblioth\xe8que",stock:"Stock",aiImages:"Images IA"}},texts:{tooltip:"Police compatible avec les textes anglais et arabes",actions:{english:"Anglais",arabic:"Arabe"}},subtitles:{title:"Sous-titres",generate:"G\xe9n\xe9rer des sous-titres",selectLanguage:"S\xe9lectionner la langue manuellement",language:"Langue",original:"Langue",translate:"Traduire en (optionnel)",translatePlaceholder:"Pas de traduction - Utiliser la langue d'origine",transcriptionLeft:"de la transcription restante",selectLanguageError:"Veuillez s\xe9lectionner une langue",generating1:"Veuillez patienter",generating:"Nous g\xe9n\xe9rons vos sous-titres",noTranscriptionError:"Aucune transcription trouv\xe9e",settings:{title:"Param\xe8tres des sous-titres",grouped:"Group\xe9",single:"Simple"},addNew:"Ajouter un nouveau sous-titre",addError:"Vous ne pouvez pas ajouter un sous-titre en dehors de la dur\xe9e de la vid\xe9o",tabs:{subtitles:"Sous-titres",options:"Options"},delete:{title:"Supprimer les sous-titres",description:"\xcates-vous s\xfbr de vouloir supprimer les sous-titres pour cette vid\xe9o ?"},downloadSrt:"T\xe9l\xe9charger le fichier SRT"},audio:{sound:{title:"Sons"}},images:{title:"Images",tabs:{filled:"Rempli",transparent:"Transparent"}},videos:{title:"Vid\xe9os"},gifs:{title:"GIFs"},disclaimer:{title:"Votre vid\xe9o semble floue ?!",description:"Nous r\xe9duisons la r\xe9solution de la vid\xe9o dans l'\xe9diteur pour que vous puissiez profiter d'une exp\xe9rience d'\xe9dition et de lecture plus rapide. Ne vous inqui\xe9tez pas, la r\xe9solution originale de la vid\xe9o sera utilis\xe9e lorsque vous partagerez.",durationLimitTitle:"Avertissement de dur\xe9e",durationLimit:"Le clip ne doit pas d\xe9passer 1 minute"},tooltips:{split:{title:"Diviser",shortCut:{mac:"S",wind:"S"}},undo:{title:"Annuler",shortCut:{mac:"Cmd + Z",wind:"Ctrl + Z"}},redo:{title:"R\xe9tablir",shortCut:{mac:"Cmd + Shift + Z",wind:"Ctrl + Shift + Z"}},play:{title:"Lire",shortCut:{mac:"Espace",wind:"Espace"}},pause:{title:"Pause",shortCut:{mac:"Espace",wind:"Espace"}},duplicate:{title:"Dupliquer"},delete:{title:"Supprimer",shortCut:{mac:"Retour arri\xe8re",wind:"DEL"}},zoomIn:{title:"Zoom avant",shortCut:{mac:"Cmd + Molette vers le haut",wind:"Ctrl + Molette vers le haut"}},zoomOut:{title:"Zoom arri\xe8re",shortCut:{mac:"Cmd + Molette vers le bas",wind:"Ctrl + Molette vers le bas"}},zoomToFit:{title:"Ajuster \xe0 l'\xe9cran"}},commingSoon:"Bient\xf4t disponible",uploadFlow:{backToMagicResizer:"Retour \xe0 Magic Resizer",steps:{resizer:"Redimensionner",editor:"\xc9diter",share:"Partager"},actions:{editAndUpload:"\xc9diter et partager"}},timeLine:{openTimeLine:"Ouvrir la chronologie",limitationPopup:{title:"D\xe9sol\xe9, vous avez d\xe9pass\xe9 la limite de dur\xe9e de la chronologie de \xab 10 minutes \xbb, toute modification effectu\xe9e apr\xe8s cette dur\xe9e ne sera pas incluse dans votre vid\xe9o.",actions:{cancel:"Retour \xe0 l'\xe9dition",ok:"Exporter quand m\xeame"}}}},homeMobile:{superWindow:{info:"le logiciel de montage vid\xe9o le plus simple",title:"Cr\xe9ation de contenu",title2:"Facilit\xe9",title3:" ",description:"BithAI est un \xe9diteur vid\xe9o tout-en-un gratuit pour amener votre contenu au niveau sup\xe9rieur",description2:"",desktop:"Disponible uniquement sur ordinateur",downloadApp:"T\xe9l\xe9charger l'application"},resize:{title:"Redimensionner",description:"Utilisez le redimensionneur magique de BithAI pour convertir vos vid\xe9os de 16:9 \xe0 tout format, les convert
1ir aux formats adapt\xe9s aux Reels/Stories/Posts Instagram, Shorts YouTube, et m\xeame TikTok."},edit:{title:"\xc9diter",description:"Ajoutez une touche \xe0 vos clips en utilisant les diff\xe9rentes fonctionnalit\xe9s disponibles dans le Bith Studio, ajoutez du texte/des images/des vid\xe9os \xe0 votre vid\xe9o pour rendre votre contenu exceptionnel."},publish:{title:"Publier",description:"En utilisant les outils de Bith, vous pouvez t\xe9l\xe9verser directement votre contenu sur toutes vos plateformes sociales pr\xe9f\xe9r\xe9es d'un simple clic !"}},headerLayout:{howItWorks:"Comment \xe7a fonctionne",features:"Pourquoi Bith.ai",apps:"Nos applications",learn:"Apprendre",welcome:"Bienvenue",comma:",",tools:"Outils IA",pricing:"Tarification",proCreator:"Plan Pro",freePlan:"Plan gratuit",editor:"\xc9diteur vid\xe9o"},home:{hero:{create:"CR\xc9ER",videos:"VID\xc9OS",images:"IMAGES",audios:"AUDIOS",in:"EN",seconds:"SECONDES",subtitle:"Un Endroit - Tous les Mod\xe8les IA",getStarted:"Commencer"},create:{title:"CR\xc9ER",video:"Vid\xe9o",image:"Image",audio:"Audio"},superWindow:{title:"Cr\xe9ez du contenu sans effort avec ",title1:"la magie de l'IA",description:"Transformez vos id\xe9es en vid\xe9os, images et bien plus encore en quelques secondes",action:"Commencer",howItWorks:"Comment \xe7a fonctionne"},howItWorks:{title:"Comment \xe7a fonctionne ?"},whyBit:{title:"Pourquoi Bith.ai ?"},signup:{title:"Vous n'avez pas encore de compte ?",looking:"Vous cherchez \xe0 devenir cr\xe9ateur de contenu ?",start:"Commencez votre voyage aujourd'hui !",action:"Inscrivez-vous"},downloadApp:{title:"Compl\xe9tez votre exp\xe9rience sur notre application mobile",description:"C'est un fait \xe9tabli que le lecteur sera distrait par le contenu lisible."},creativeStudio:{title:"Votre suite cr\xe9ative compl\xe8te",description:"D\xe9bloquez des possibilit\xe9s infinies avec notre plateforme intuitive, con\xe7ue pour simplifier votre parcours de montage vid\xe9o. Redimensionnez vos vid\xe9os, ajoutez facilement des sous-titres avec l'IA, et incorporez des images, des vid\xe9os, de l'audio et des GIFs en quelques clics.",editorText:"\xc9diteur vid\xe9o Bith",disclaimer:"Cette fonctionnalit\xe9 est accessible sur des \xe9crans plus grands. Veuillez passer \xe0 un ordinateur ou un portable pour une meilleure exp\xe9rience."},gallery:{title:"Galerie Inspirante",exploreMore:"Explorer plus"}},pricing:{title:"Choisissez un plan qui vous convient !",popupTitle:"Modifications des nouveaux plans",pricing:"Tarification",description:"Cr\xe9ez plus, en moins de temps.",monthly:"Mensuel",yearly:"Annuel",saving:"2 mois gratuits",pro:"Pro",free:"Gratuit",aiTools:"Outils IA",recommended:"Recommand\xe9",tabs:{bundles:"Forfaits",creditsPack:"Pack de Cr\xe9dits"},planCard:{popular:"Populaire",mostChosen:"La plus choisie",selectPlan:"S\xe9lectionner le Plan",startNow:"Commencer maintenant",currentPlan:"Plan Actuel",unavailable:"Indisponible",notAvailableFromCurrentPlan:"Indisponible depuis votre formule actuelle",upgrade:"Mettre \xe0 Niveau",downgrade:"R\xe9trograder",creditsPerMonth:"cr\xe9dits",ugcVideoPerMonth:"vid\xe9o UGC",ugcVideosPerMonth:"vid\xe9os UGC",perMonth:"/ mois",switchTo:"Changer de plan",scheduledNextCycle:"Pr\xe9vu pour le prochain cycle"},creditPack:{credits:"Cr\xe9dits",purchase:"Acheter",validityNote:"Valable 90 jours \xe0 compter de la date d’achat"},faqs:{title:"Questions fr\xe9quemment pos\xe9es"},aiTitle:"S\xe9lectionnez la taille de votre pack de cr\xe9dits pr\xe9f\xe9r\xe9 :",automateAround:"Peut automatiser autour de",aiVideos:"vid\xe9os IA",plansDisclaimer:"Veuillez noter que les cr\xe9dits achet\xe9s ne sont accessibles que tant que votre abonnement reste actif.",creditsRolloverNotice:"Les cr\xe9dits ne sont pas report\xe9s d’un cycle de facturation \xe0 l’autre",oneTimePaymentDisclaimer:"Veuillez noter que les cr\xe9dits achet\xe9s ne sont accessibles que tant que votre abonnement reste actif.",legacyPlan:{title:"Votre plan actuel est {planTitle} (Legacy)",description:"*Il s'agit d'une offre h\xe9rit\xe9e qui n'est plus disponible pour les nouveaux clients. Vous pouvez conserver cette offre ind\xe9finiment ou passer \xe0 nos nouvelles offres.",creditsPerMonth:"Cr\xe9dits/mois",features:{fullAccessToAITools:"Acc\xe8s complet aux outils IA",proAccessToVideoEditor:"Acc\xe8s Pro \xe0 l'\xe9diteur vid\xe9o",aiSubtitleGenerator:"G\xe9n\xe9rateur de sous-titres IA",minutes:"{minutes} Minutes",storage:"Stockage ({storage} Go)",customerSupport:"Support client"}}},footer:{aboutUs:"\xc0 propos de nous",contactUs:"Contactez-nous",terms:"Conditions g\xe9n\xe9rales",privacyPolicy:"Politique de confidentialit\xe9",bithGuide:"Guide Bith"},footerLayout:{links:{title:"Liens",about:"\xc0 propos de Bith.ai",terms:"Conditions g\xe9n\xe9rales",privacy:"Politique de confidentialit\xe9",pricing:"Tarification"},help:{title:"Aide",learn:"Apprendre",tools:"Outils",faqs:"Questions fr\xe9quemment pos\xe9es",contactUs:"Nous contacter",bithAi:"Bith.AI"},getinTouch:{title:"Entrer en contact"},partners:{title:"Partenaires"},rights:"\xa9 Tous droits r\xe9serv\xe9s. Bith.ai"},authFlowLayout:{info:{title:"Fonctionnalit\xe9s de Bith TV",free:"Gratuit",n
1oWatermark:"Sans filigrane",online:"En ligne",distribution:"Distribution"},actions:{back:"Retour \xe0 l'accueil"},signUp:{action:"Cr\xe9er un compte"},ugc:{title:"Vid\xe9os UGC",subtitle:"Cr\xe9ez des vid\xe9os promotionnelles r\xe9alistes pr\xeates \xe0 publier — sans tournage ni montage"},termsNotice:"En continuant, vous acceptez nos Conditions d'utilisation et notre Politique de confidentialit\xe9."},passwordReco:{sendEmail:{title:"R\xe9initialisez votre mot de passe",formFields:{email:"Email"},actions:{submit:"R\xe9initialiser",redirectTitle:"Vous avez un compte ?",redirect:"Connexion"},success:"R\xe9ussi ! Veuillez v\xe9rifier votre email maintenant"},reset:{title:"Cr\xe9er un nouveau mot de passe",formFields:{newPassword:"Nouveau mot de passe"},actions:{submit:"Changer le mot de passe"},success:{title:"Votre mot de passe a \xe9t\xe9 r\xe9initialis\xe9 avec succ\xe8s.",action:"Connexion"}}},studio:{sidebars:{images:{title:"Images"},videos:{all:"Toutes les vid\xe9os",original:"Non \xe9dit\xe9",inProgress:"En cours",readyToPublish:"Pr\xeat \xe0 publier",published:"Export\xe9",deletedVideos:"Vid\xe9os supprim\xe9es"},account:{title:"Param\xe8tres",accountSettings:"Param\xe8tres du compte",notificationsSettings:"Param\xe8tres de notification",billingSettings:"Param\xe8tres de facturation",connectionSettings:"Param\xe8tres de connexion"},connections:{title:"Plateformes",connect:"Connecter"},storage:{storageUsed:"Stockage utilis\xe9",storageRemaining:"Stockage",upgrade:"Mettre \xe0 niveau"},main:{myStudio:"Accueil",videos:"Vid\xe9os",folders:"Dossiers",watchAndLearn:"Regarder et apprendre",deleted:"Supprim\xe9",aiStudio:"Studio IA",mainStudio:"Studio cr\xe9atif",imageGenerator:"Images",voiceovers:"Audios"},minutes:{title:"Cr\xe9dits utilis\xe9s",remaining:"Cr\xe9dits",upgrade:"Ajouter des cr\xe9dits",total:"Cr\xe9dits",add:"Ajouter"},helpCenter:{title:"Centre d'aide"}},shell:{header:{home:"Accueil"},sidebar:{home:"Accueil",library:"Biblioth\xe8que",templates:"Mod\xe8les",apps:"Applications",tools:"Outils",more:"Plus",less:"Moins",pin:"\xc9pingler",unpin:"D\xe9s\xe9pingler",recentSessions:"Sessions r\xe9centes",sessions:"Sessions",newSession:"Nouvelle session",untitledSession:"Session sans titre"}},library:{tabs:{videos:"Vid\xe9os",images:"Images",audio:"Audio",folders:"Dossiers",deleted:"Supprim\xe9s"},inProgressAlert:"Nous vous informerons par e-mail lorsque votre vid\xe9o sera pr\xeate !"},account:{settings:{title:"Param\xe8tres du compte"},info:{title:"Informations sur le compte",changeImage:"Changer l'image",remove:"Supprimer",formFields:{username:{label:"Nom d'utilisateur"},email:{label:"Email"}},action:"Enregistrer"},changePassword:{title:"Changer le mot de passe",formFields:{newPassword:{label:"Nouveau mot de passe"},confirmNewPassword:{label:"Confirmer le nouveau mot de passe"},password:{label:"Ancien mot de passe"}},success:{message:"Mot de passe mis \xe0 jour avec succ\xe8s"},action:"Enregistrer"},preferences:{title:"Pr\xe9f\xe9rences",theme:"Th\xe8me clair",language:"Langue"}},videoModal:{actions:{create:"Cr\xe9er une nouvelle \xe9dition",continue:"Continuer l'\xe9dition",start:"Commencer l'\xe9dition",download:"T\xe9l\xe9charger",editAgain:"Dupliquer et \xe9diter",edit:"\xc9diter la vid\xe9o"}},videosDropDown:{edit:"\xc9diter",duplicate:"Dupliquer",publish:"Publier",schedule:"Programmer",download:"T\xe9l\xe9charger",move:"D\xe9placer",rename:"Renommer",delete:"Supprimer"},deletedVideosDropDown:{restore:"Restaurer",deletePermanently:"Supprimer d\xe9finitivement"},sort:{name:"Nom A-Z",dateCreated:"Date de cr\xe9ation",dateModified:"Date de modification"},videosDetailsBar:{videoTitle:"Titre de la vid\xe9o",size:"Taille",status:"Statut",lastEdited:"Derni\xe8re modification"},empty:{title:"Vous n'avez pas encore de vid\xe9os !",description:"Cliquez sur le bouton ci-dessous pour cr\xe9er votre premi\xe8re vid\xe9o",video_editor:{title:"Vous n'avez pas encore de vid\xe9os !",description:"Cliquez sur le bouton ci-dessous pour cr\xe9er votre premi\xe8re vid\xe9o"},deleted:{title:"La corbeille est vide",description:"Cliquez sur le bouton ci-dessous pour cr\xe9er une nouvelle vid\xe9o"},audio:{title:"Vous n'avez pas encore de audios !",description:"Cliquez sur le bouton ci-dessous pour cr\xe9er votre premier audio"}
1,image:{title:"Vous n'avez pas encore de images !",description:"Cliquez sur le bouton ci-dessous pour cr\xe9er votre premi\xe8re image"},ai:{title:"Vous n'avez pas encore de vid\xe9os !",description:"Cliquez sur le bouton ci-dessous pour g\xe9n\xe9rer votre premi\xe8re vid\xe9o"},text_to_video:{title:"Vous n'avez pas encore de vid\xe9os !",description:"Cliquez sur le bouton ci-dessous pour g\xe9n\xe9rer votre premi\xe8re vid\xe9o"},text_to_scene:{title:"Vous n'avez pas encore de sc\xe8nes !",description:"Cliquez sur le bouton ci-dessous pour ajouter une nouvelle sc\xe8ne"},quote_to_video:{title:"Vous n'avez pas encore de vid\xe9os !",description:"Cliquez sur le bouton ci-dessous pour g\xe9n\xe9rer votre premi\xe8re vid\xe9o"}},createVideo:{headerActions:{continueToEdit:"Continuer l'\xe9dition",publish:"Exporter la vid\xe9o",exportSettings:{title:"Param\xe8tres d'exportation"}}},main:{videos:{title:"Vid\xe9os",viewAll:"Voir toutes les vid\xe9os",createAVideo:"\xc9diter une nouvelle vid\xe9o"},home:{heroHeadline:"Tout ce dont vous avez besoin pour cr\xe9er, en un seul endroit",appsTitle:"Ap
1plications",toolsTitle:"Outils",lastVideosTitle:"Derni\xe8res vid\xe9os",viewAll:"Voir tout",templatesHeadline:"Partez de mod\xe8les \xe9prouv\xe9s, pas de z\xe9ro.",browseAllTemplates:"Parcourir tous les mod\xe8les"},folders:{title:"Dossiers",viewAll:"Voir tous les dossiers",newFolder:"Nouveau dossier"},watchAndLearn:{title:"Regarder et apprendre",viewAll:"Voir toutes les vid\xe9os"},tools:{title:"QU'ALLEZ-VOUS CR\xc9ER AUJOURD'HUI ?",description:"Transformez vos images avec l'IA pour cr\xe9er des vid\xe9os captivantes",viewAll:"Voir tous les outils",action:"Explorer tous les outils"},apps:{title:"Applications"}},notificationsSettings:{transactionalEmails:"Recevoir des emails transactionnels",promotionalEmails:"Recevoir des emails promotionnels"},superWindow:{carousel:{title:"Texte \xe0 vid\xe9o",title1:"G\xe9n\xe9rateur IA",description:"Le g\xe9n\xe9rateur IA r\xe9volutionnaire de Texte \xe0 Vid\xe9o est con\xe7u pour la nouvelle \xe8re des cr\xe9ateurs sans visage. Transformez vos id\xe9es en vid\xe9os captivantes en quelques clics."}},useCases:{title:"Ce que les utilisateurs cr\xe9ent",popup:{prompt:"Invite :",prefix:"",script:"Script",aiModule:"Module de g\xe9n\xe9ration d'images :"}},accountDropdown:{settings:"Param\xe8tres du compte",notificationSettings:"Param\xe8tres de notification",billingSettings:"Param\xe8tres de facturation",lightTheme:"Th\xe8me clair",language:"Langue",help:"Aide",faqs:"FAQ",terms:"Conditions g\xe9n\xe9rales",privacy:"Politique de confidentialit\xe9",logout:"D\xe9connexion"},notifications:{title:"Notifications"}},studioBreadcrumbs:{studio:"Mon studio",account:"Param\xe8tres du compte",billing:"Param\xe8tres de facturation",connections:"Param\xe8tres de connexion",videos:"Vid\xe9os",all:"Toutes les vid\xe9os",original:"Non \xe9dit\xe9","in-progress":"En cours","ready-to-publish":"Pr\xeat \xe0 publier",published:"Export\xe9",deleted:"Supprim\xe9",exporting:"Exportation en cours",completed:"Export\xe9",processing:"En cours","processing-promo-video":"En cours"},folders:{new:"Nouveau dossier",create:{title:"Nouveau dossier",createFolderModal:{title:"Cr\xe9er un nouveau dossier",fields:{name:"Nom du dossier"},actions:{cancel:"Annuler",create:"Cr\xe9er"},success:{title:"Vous avez cr\xe9\xe9 votre dossier avec succ\xe8s"}}}
1,edit:{modal:{title:"Mettre \xe0 jour le dossier",fields:{name:"Nom du dossier"},actions:{cancel:"Annuler",update:"Mettre \xe0 jour"},success:{title:"Vous avez mis \xe0 jour le nom du dossier avec succ\xe8s"}}},move:{title:'D\xe9placer "',to:'" vers',done:"D\xe9plac\xe9 vers"},delete:{title:"\xcates-vous s\xfbr de vouloir supprimer ce dossier ?"}},videos:{edit:{modal:{title:"Mettre \xe0 jour la vid\xe9o",fields:{name:"Nom de la vid\xe9o"},actions:{cancel:"Annuler",update:"Mettre \xe0 jour"},success:{title:"Vous avez mis \xe0 jour le nom de la vid\xe9o avec succ\xe8s"}}},delete:{header:"Supprimer",title:"Voulez-vous vraiment supprimer cette vid\xe9o ?",success:{title:"Vous avez supprim\xe9 votre vid\xe9o avec succ\xe8s"}},deletePermanently:{header:"Supprimer",title:"Voulez-vous vraiment supprimer cette vid\xe9o d\xe9finitivement ?",success:{title:"Vous avez supprim\xe9 votre vid\xe9o d\xe9finitivement"}},restore:{header:"Restaurer",title:"Voulez-vous vraiment restaurer cette vid\xe9o ?",success:{title:"Vous avez restaur\xe9 votre vid\xe9o avec succ\xe8s"}},duplicate:{modal:{title:"Dupliquer la vid\xe9o",fields:{name:"Nom de la vid\xe9o"},actions:{cancel:"Annuler",update:"Dupliquer"},success:{title:"Vous avez dupliqu\xe9 votre vid\xe9o avec succ\xe8s"}}},deletionWithin:"Suppression dans :"},createVideo:{uploadModal:{import:{title:"Importer depuis un lien",inputPlaceholder:"Collez ici votre lien YouTube, Twitch ou Facebook...",aiInputPlaceholder:"Collez ici votre lien YouTube...",action:"Coller",try:"Essayer un lien d'exemple",error:"Veuillez entrer un lien valide"},upload:{title:"T\xe9l\xe9verser un fichier",dragBox:"Glissez et d\xe9posez votre fichier ici",or:" Ou ",browse:"parcourir ",dragBox1:" pour choisir un fichier"},errors:{header:"Oups",title:"Nous ne sommes pas en mesure de g\xe9rer les vid\xe9os sans ",title1:"audio",title2:" pour le moment. Nous travaillons \xe0 r\xe9soudre ce probl\xe8me bient\xf4t. \uD83E\uDD29",close:"Fermer"},noDimensions:{header:"Oups",title:"Ce type de vid\xe9os n'est pas lisible sur ce navigateur, vous pouvez utiliser",title1:"le navigateur Chrome",title2:" pour pouvoir \xe9diter cette vid\xe9o. \uD83E\uDD29",close:"Fermer"},size:{title:"Taille maximale de la vid\xe9o : ",title1:"250 Mo",message:"Le fichier est plus grand que 250 Mo"},sizePro:{title:"Taille maximale de la vid\xe9o : ",title1:"2 Go",message:"Le fichier est plus grand que 2 Go"},smartClipperSize:{title:"Taille maximale de la vid\xe9o : ",title1:"10 Go",message:"Le fichier est plus grand que 10 Go"},aspectRatio:{header:"Oups",title:"Les dimensions de la vid\xe9o ne sont pas compatibles,",title1:"les dimensions autoris\xe9es sont",title2:"16:9 et 9:16",close:"Fermer"}},editor:{title:"\xc9diter"},publisher:{title:"Exporter",loading:"Veuillez patienter, car ce processus peut prendre plusieurs minutes",videoInfo:{title:{label:"Titre",placeholder:"Titre"}},actions:{download:"T\xe9l\xe9charger",removeWatermark:"T\xe9l\xe9charger sans filigrane",newVideo:"Cr\xe9er une nouvelle vid\xe9o",editAgain:"Dupliquer et \xe9diter",editThisVideo:"\xc9diter cette vid\xe9o",back:"Retour au studio"},socialMediaDistribution:{title:"Publier sur",action:"Publier"},tips:{title:"Le saviez-vous ?"},help:{title:"Rencontrez-vous des probl\xe8mes, avez-vous des commentaires ou souhaitez-vous rester inform\xe9 de toutes nos derni\xe8res annonces ?",redirect:"Rejoignez notre serveur Discord."}},resizer:{title:"Redimensionner",description:"La plupart du contenu est consomm\xe9 sur des appareils mobiles, rendez votre contenu adapt\xe9 au mobile en redimensionnant son format.",projectSettings:{title:"Param\xe8tres",videoSize:{title:"Dimensions de la vid\xe9o",reset:"R\xe9initialiser"},eligiblePlatforms:{title:"Plateformes \xe9ligibles",and:" et ",more:" Plus",maxDuration:"Dur\xe9e maximale :",unlimited:"Illimit\xe9"},faceCam:{title:"Cam\xe9ra frontale",options:{off:"D\xe9sactiv\xe9",rectangle:"Rectangle",circle:"Cercle",rounded:"Arrondi"},stroke:{style:"Style du contour",color:"Couleur du contour",animated:"Contour anim\xe9"}},background:{title:"Arri\xe8re-plan flou",color:"Couleur de fond"},safeZone:{title:"Zone de s\xe9curit\xe9 vid\xe9o",description:"Ceci sert uniquement \xe0 montrer o\xf9 se trouvent les ic\xf4nes des r\xe9seaux sociaux et ne sera pas visible dans la vid\xe9o export\xe9e."}}}}
1,learn:{title:"Apprendre",latest:"Derniers articles",featured:"S\xe9lectionn\xe9",share:"Partager",keywords:"Mots-cl\xe9s",createSection:{title:"Vous souhaitez devenir cr\xe9ateur de contenu ? T\xe9l\xe9chargez votre premi\xe8re vid\xe9o !"},relatedArticles:{title:"Articles connexes"}},socialAuth:{facebook:"Continuer avec Facebook",google:"Continuer avec Google",twitch:"Continuer avec Twitch",apple:"Continuer avec Apple"},exportStatus:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",step:e=>"\xc9tape ".concat(e,"/7"),in_queue:"Attendez, votre vid\xe9o est dans la file d'attente",processing:"Attendez, votre vid\xe9o est dans la file d'attente",trimming:"Nos robots coupent votre vid\xe9o",resizing:"Nos robots redimensionnent votre vid\xe9o",adding_layers:"Nos robots ajoutent les modifications \xe0 votre vid\xe9o",adding_audios:"Nos robots ajoutent les modifications \xe0 votre vid\xe9o",completed:"Veuillez patienter pendant que nous finalisons la vid\xe9o",info:"Vous pouvez \xe9diter d'autres vid\xe9os pendant l'exportation de votre vid\xe9o"},back:{title:"\xcates-vous s\xfbr de vouloir revenir en arri\xe8re ?",description:"Toutes les modifications effectu\xe9es seront perdues.",action:"Retour au redimensionneur"},uploadNotCompleted:{title:"\xcates-vous s\xfbr de vouloir quitter ?",description:"Toutes les modifications effectu\xe9es seront perdues.",action:"Oui"},tools:{title:"Outils",description:"Utilisez nos outils pour ajouter du texte, des images, des vid\xe9os et plus \xe0 vos vid\xe9os",callToAction:{weHope:"Nous esp\xe9rons que vous aimez utiliser les outils BITH",cantWait:"Nous avons h\xe2te de voir ce que vous allez cr\xe9er !"},step:"\xc9tape",moreTools:"Essayer d'autres outils"},mediaAssets:{asset:{video:"Vid\xe9o",image:"Image",audio:"Audio",gif:"Gif",empty:{title:"Vous n'avez pas encore de",video:" vid\xe9os",image:" images",gif:" gifs",audio:" audios",title1:"!",info:"Utilisez l'un des outils Bith",info1:"ou t\xe9l\xe9chargez les v\xf4tres"},uploadSuccess:{title:"Votre",title1:"a \xe9t\xe9 t\xe9l\xe9charg\xe9 avec succ\xe8s"}
1,edit:{title:"Mettre \xe0 jour",fields:{name:" nom"},actions:{cancel:"Annuler",update:"Mettre \xe0 jour"},success:{title:"Vous avez mis \xe0 jour le",title1:" avec succ\xe8s"}},delete:{header:"Supprimer",title:"Voulez-vous vraiment supprimer ce",imageTitle:"Voulez-vous vraiment supprimer cette",title1:" ?",success:{title:"Vous avez supprim\xe9 avec succ\xe8s votre"}}}},proPlanPopup:{title:"Mettez \xe0 niveau votre plan aujourd'hui et facilitez encore plus les choses",watermark:"Supprimez l'\xe9tiquette d'eau en mettant \xe0 niveau votre plan aujourd'hui"},checkoutModal:{welcome:"Bienvenue chez BithAI",continueGoogle:"Continuer avec Google",continueEmail:"Continuer avec l'email",or:"ou",summaryTitle:"D\xe9tails de l'abonnement",summaryTitleCredits:"D\xe9tails de l'achat",creditPackName:e=>"".concat(Number(e).toLocaleString("fr")," Cr\xe9dits"),creditPackValidityDays:"90",creditPackValidityLabel:"jours apr\xe8s l’achat",paymentTitle:"D\xe9tails du paiement",scrollToBottom:"Aller en bas",continueToPayment:"Continuer vers le paiement",update:"Mettre \xe0 j
1our",upgradeNow:"Mettre \xe0 niveau maintenant",buyNow:"Acheter maintenant",amountDueToday:"Montant d\xfb aujourd'hui",amountDueNow:"Montant d\xfb maintenant",totalCreditsAvailable:"Total des cr\xe9dits disponibles",creditsFromCurrentPlan:"Cr\xe9dits de votre forfait actuel",extraCreditsFromUpgrade:"Cr\xe9dits suppl\xe9mentaires de la mise \xe0 niveau",subscriptionType:"Type d'abonnement",creditsPerInterval:()=>"cr\xe9dits / mois",ugcPerInterval:e=>1===e?"vid\xe9o UGC / mois":"vid\xe9os UGC / mois",savePercent:e=>"\xc9conomisez ".concat(e,"%"),total:"Total",taxIncluded:"(Taxes incluses)",autoRenew:(e,t,i)=>null!=i&&""!==i?"Votre abonnement se renouvellera automatiquement le ".concat(e," pour $").concat(i," et vos cr\xe9dits seront r\xe9initialis\xe9s \xe0 ").concat(Number(t).toLocaleString("fr")," cr\xe9dits"):"Votre abonnement se renouvellera le ".concat(e," et vos cr\xe9dits seront r\xe9initialis\xe9s \xe0 ").concat(Number(t).toLocaleString("fr")," cr\xe9dits"),payTodayThen:(e,t,i,o)=>"Vous paierez $".concat(e," aujourd'hui, puis $").concat(t," ").concat(i," \xe0 partir du ").concat(o,"."),addDiscount:"Ajouter un code de r\xe9duction",apply:"Appliquer",discountInvalid:"Code de r\xe9duction invalide",discountApplied:(e,t)=>"R\xe9duction appliqu\xe9e. Vous avez \xe9conomis\xe9 ".concat(e," $ (").concat(t," %) sur ce plan."),taxIncludedWithDiscount:"(Taxes et r\xe9duction incluses)",planPrice:"Prix du plan",discountValue:"Montant de la r\xe9duction",removeDiscount:"Supprimer le code de r\xe9duction",subscribeNow:"S'abonner maintenant",confirmChangeTitle:e=>e?"Confirmer la mise \xe0 niveau":"Confirmer le changement de plan",confirmChangeBody:"Confirmez pour appliquer ce changement de plan. Tout montant d\xfb aujourd'hui sera d\xe9bit\xe9 de votre moyen de paiement enregistr\xe9.",success:{title:e=>e?"Vos points sont pr\xeats":"Abonnement r\xe9ussi",body:(e,t)=>e?"Vos ".concat(Number(t).toLocaleString("fr")," points sont pr\xeats \xe0 \xeatre utilis\xe9s."):"Votre nouveau solde de points est pr\xeat \xe0 \xeatre utilis\xe9.",upgradeTitle:"Vous avez mis \xe0 niveau votre forfait",changedPlanTitle:"Vous avez chang\xe9 de forfait",startNow:"Commencer maintenant"}},paymentFlowPopup:{totalPayment:"Paiement total",totalWithTax:"Total (Taxes incluses)",stepper:{selectPlan:"S\xe9lectionner le plan",selectPackage:"Ajouter des cr\xe9dits",review:"Revoir",payment:"Paiement"},selectPlan:{title:"Choisissez-en un :",saving:"(\xe9conomisez 17 %)",summerSale:"(40% Vente d'\xe9t\xe9)",winterSale:"(40% Vente d'hiver)"},oneTimePurchase:{title:"Augmentez votre limite !"},review:{title:"D\xe9tails de l'achat :",description:{description1:"Votre abonnement pro sera renouvel\xe9 pour",on:"le",reset:"et vos cr\xe9dits seront r\xe9initialis\xe9s \xe0",description2:"Vous avez des questions ?",contact:"Contactez notre \xe9quipe d'assistance.",upgrade:"Vous serez factur\xe9",upgrade1:"imm\xe9diatement pour le montant au prorata d\xfb au changement de votre plan.",chargedProrationBeforeAmount:"Facturation de ",chargedProrationAfterAmount:" aujourd'hui au titre des frais d'am\xe9lioration au prorata.",previewFetchError:"Impossible de charger l'aper\xe7u de votre mise \xe0 niveau."},payBy:"Payer par",ending:"Carte se terminant par",creditSummary:{title:"R\xe9sum\xe9 des cr\xe9dits",creditsUsed:"Cr\xe9dits utilis\xe9s",creditsAvailable:"Cr\xe9dits disponibles",renewsAt:"Renouvellement \xe0",carriedOver:"Report\xe9s",fromUpgrade:"De la mise \xe0 niveau"}},payment:{form:{country:{title:"Pays",placeholder:"Pays"},address:{title:"Adresse",placeholder:"Adresse"},city:{title:"Ville",placeholder:"ex. Amman"}}},navigation:{back:"Retour",next:"Suivant",cancel:"Annuler",changePlan:"Changer de plan",upgrade:"Am\xe9liorer",downgrade:"R\xe9trograder"},success:{title1:"F\xe9licitations !",title2:"Vous \xeates pass\xe9 au plan Pro",monthly:"Mensuel",yearly:"Annuel",subscribedTitle:(e,t)=>"Vous vous \xeates abonn\xe9 avec succ\xe8s au forfait ".concat(e," ").concat(t,"."),subscribedDescription:e=>"Vous avez maintenant acc\xe8s \xe0 toutes les fonctionnalit\xe9s ".concat(e,". Cliquez sur le bouton ci-dessous pour commencer \xe0 cr\xe9er et profiter !"),monthlyDescription:"Vous \xeates maintenant un cr\xe9ateur pro, cliquez sur le bouton ci-dessous pour cr\xe9er votre premi\xe8re vid\xe9o avec des fonctionnalit\xe9s pro et profitez-en !",pro:"Pro",credits:e=>"Vous avez maintenant ajout\xe9 ".concat(e," cr\xe9dits."),upgrade:"Vous avez chang\xe9 de plan Pro",upgradeDescription:"Vous avez maintenant",upgradeDescription1:" cliquez sur le bouton ci-dessous pour continuer votre aventure dans le monde de l'IA avec les outils IA incroyables que nous avons, profitez-en !",changedPlanDescription:e=>"Vous avez maintenant ".concat(e," cr\xe9dits, cliquez sur le bouton ci-dessous pour continuer votre aventure dans le monde de l'IA avec les outils IA incroyables que nous avons, profitez-en !"),scheduledDowngradeTitle:"Votre changement de forfait a \xe9t\xe9 planifi\xe9",sc
1heduledDowngradeDescription:(e,t)=>"Vous aurez ".concat(e," cr\xe9dits \xe0 compter du ").concat(t," \xe0 la fin de votre cycle de facturation actuel. Jusque-l\xe0, vous conserverez les avantages de votre forfait actuel. Cliquez sur le bouton ci-dessous pour continuer.")},errors:{insufficientBalance:{title:"Solde insuffisant",description:"Nous sommes d\xe9sol\xe9s, mais votre transaction ne peut pas \xeatre trait\xe9e en raison de fonds insuffisants sur votre compte. Veuillez vous assurer que vous disposez de fonds suffisants pour compl\xe9ter la transaction. Si vous avez besoin d'aide, veuillez contacter notre \xe9quipe d'assistance. Merci pour votre compr\xe9hension.",cancel:"Annuler"}},reActivate:{header:"Succ\xe8s !",description:"Votre plan d'abonnement a \xe9t\xe9 r\xe9activ\xe9 avec succ\xe8s, vous pouvez g\xe9rer votre abonnement \xe0 partir de l'\xe9cran des param\xe8tres de facturation."}},billing:{title:"Abonnement",actions:{cancelPlan:"Annuler le plan",changePlan:"Changer de plan",cancelScheduledDowngrade:"Annuler la modification planifi\xe9e",cancelScheduledDowngradeConfirmation:"\xcates-vous s\xfbr de vouloir annuler votre modification de plan programm\xe9e ?"},nextPaymentOn:"Prochain paiement le",yourSubscriptionEndsAt:"Votre abonnement se termine le",scheduledDowngradeEffective:"Effectif",scheduledChange:{title:"Changement programm\xe9",downgradeTo:"R\xe9trograder vers",scheduledFor:"pr\xe9vu pour"},paymentMethod:"Moyen de paiement",updatePaymentMethod:"Mettre \xe0 j
1our le moyen de paiement",updatePaymentMethodModal:{success:"Moyen de paiement mis \xe0 jour avec succ\xe8s."},billingHistory:{title:"Historique de facturation",usd:"USD",table:{date:"Date",description:"Description",amount:"Montant du paiement",receipt:"Imprimer le re\xe7u"}}},cancelSubscription:{title:"Nous sommes d\xe9sol\xe9s de vous voir partir !",description:"Si vous avez un moment, nous aimerions savoir pourquoi vous avez d\xe9cid\xe9 de passer au plan gratuit.",other:"Pouvez-vous nous dire quelle est l'autre raison de l'annulation de votre abonnement ?",actions:{cancel:"Annuler",submit:"Confirmer l'annulation",continueToCancellation:"Continuer vers l'annulation",cancelAnyWay:"Annuler quand m\xeame",back:"Retour"},confirm:{title:"Confirmez votre annulation",description:"Vous resterez sur le plan ",description2:" jusqu'au",description1:"Apr\xe8s cette date, vous ne pourrez plus utiliser les fonctionnalit\xe9s pro, \xeates-vous s\xfbr de vouloir continuer ?"},pastDueConfirmation:{title:"Confirmez votre annulation",description:"Votre abonnement est en retard de paiement, Vous n'avez plus acc\xe8s aux fonctionnalit\xe9s pro. Annuler votre abonnement supprimera d\xe9finitivement tous les avantages associ\xe9s. \xcates-vous s\xfbr de vouloir continuer ?"},congrats:"F\xe9licitations !",discount:{title:"Obtenez une r\xe9duction de 40 % sur le mois prochain !",description:"Nous appr\xe9cions votre entreprise ! Nous vous offrons une r\xe9duction exclusive de 40 % pour votre prochain mois d'abonnement. Profitez de notre service \xe0 prix r\xe9duit !",action:"Profitez-en maintenant",success:"Votre abonnement du mois prochain b\xe9n\xe9ficiera d'une r\xe9duction de 40 %"},freeMonth:{title:"Obtenez 2 mois gratuits rien que pour vous !",description:"Nous voulons vous offrir cette offre pour rester avec nous, vous aurez plus de temps pour d\xe9couvrir et essayer encore plus nos fonctionnalit\xe9s pro !",action:"Accepter l'offre",success:"Vous avez maintenant 60 jours pour essayer encore plus nos fonctionnalit\xe9s pro"},successCancelation:{title:"Votre abonnement a \xe9t\xe9 annul\xe9",description:"Nous vous remercions pour le temps que vous avez pass\xe9 avec nous. Si jamais vous d\xe9cidez de revenir, nous serons l\xe0 pour vous accueillir \xe0 nouveau. Merci d'avoir fait partie de notre aventure !"},preCancelAlert:{title:"Ne perdez pas vos cr\xe9dits",description:"Annuler maintenant signifie que tous les cr\xe9dits non utilis\xe9s seront perdus. Tous les cr\xe9dits restants expireront \xe9galement automatiquement \xe0 la fin de votre cycle de facturation le ",description1:"\xcates-vous s\xfbr de vouloir continuer ?",actions:{keepCredits:"Conserver les cr\xe9dits",cancelAnyway:"Annuler quand m\xeame"}}},planExpired:{title:"Oups ! Le renouvellement de votre abonnement Pro a \xe9chou\xe9.",description:"Nous sommes d\xe9sol\xe9s de vous informer que le renouvellement de votre abonnement Pro a \xe9chou\xe9.",action:"Cliquez ici pour mettre \xe0 jour le moyen de paiement",popup:{title:"Veuillez mettre \xe0 jour votre moyen de paiement pour continuer \xe0 profiter de votre acc\xe8s \xe0 l'abonnement Pro. Cliquez sur 'Mettre \xe0 j
1our' maintenant.",submit:"Mettre \xe0 jour"}},waitlistPopup:{title:"Bith cr\xe9e un nouvel outil aliment\xe9 par l'IA qui rendra la cr\xe9ation de vid\xe9os encore plus facile.",action:"Rejoignez la liste d'attente pour un acc\xe8s anticip\xe9"},mobileBanner:{title:"Disponible uniquement sur ordinateur"},trafficBanner:{title:"Nous nous excusons pour tout d\xe9sagr\xe9ment caus\xe9, car nous connaissons actuellement un volume de trafic inhabituellement \xe9lev\xe9 sur notre site. Nous travaillons activement \xe0 r\xe9soudre ce probl\xe8me."},shortCutsModal:{title:"Raccourcis clavier",play:"Lire",pause:"Pause",delete:"Supprimer",split:"Diviser",undo:"Annuler",redo:"R\xe9tablir",copy:"Copier",paste:"Coller",duplicate:"Dupliquer",zoomIn:"Zoom avant sur la chronologie",zoomOut:"Zoom arri\xe8re sur la chronologie",nextFrame:"Image suivante",prevFrame:"Image pr\xe9c\xe9dente"},summerSale:{title:"\xc9conomisez 40 % sur le plan Pro - Vente d'\xe9t\xe9, passez au Pro !",popup:{title:"Tout ce que vous avez \xe0 faire est de vous connecter \xe0 votre compte BITH pour b\xe9n\xe9ficier de cette remise !"}},winterSale:{title:"\xc9conomisez 40 % sur le plan Pro - Vente d'hiver, passez au Pro !",popup:{title:"Tout ce que vous avez \xe0 faire est de vous connecter \xe0 votre compte BITH pour b\xe9n\xe9ficier de cette remise !"}},editTracker:{saving:"Sauvegarde en cours...",finishSaving:"Les modifications de la vid\xe9o sont enregistr\xe9es."},videosExpires:{title:"Attention, utilisateurs de Bith.ai : toutes les vid\xe9os t\xe9l\xe9charg\xe9es avant le 1er octobre seront supprim\xe9es le 15 octobre !",upgrade:"Passer \xe0 la version sup\xe9rieure",title1:"si vous ne voulez pas que vos vid\xe9os soient supprim\xe9es."},studioTools:{subtitles:{generate:"G\xe9n\xe9rer des sous-titres",back:"Retour",uploadingVideo:"T\xe9l\xe9chargement de la vid\xe9o en cours ...",generatingSubtitles:"G\xe9n\xe9ration des sous-titres ..."}},notFound:{title:"Erreur 404",description:"Oups, cette page n'existe pas"},backWhileCompiling:{header:"D\xe9sol\xe9",title:"Vous ne pouvez pas \xe9diter la vid\xe9o pendant le processus d'exportation, veuillez attendre que la vid\xe9o soit export\xe9e",goHome:"Retour au studio"},smartClipper:{upload:{title:"Outil de d\xe9coupe de clips",description:"Un outil vid\xe9o g\xe9n\xe9ratif IA qui repurpose de longues vid\xe9os en courts-m\xe9trages en un clic."},generate:{title:"Param\xe8tres du d\xe9coupeur de clips",form:{fields:{language:{label:"Langue originale de la vid\xe9o",placeholder:"Langue"},translateTo:{label:"Traduire en",placeholder:"Pas de traduction - Utiliser la langue d'origine"},timeframe:{label:"Plage horaire de traitement"},clipLength:{label:"Dur\xe9e pr\xe9f\xe9r\xe9e du clip"},keywords:{label:"Filtrer par mots-cl\xe9s (facultatif)",placeholder:"Ajouter des mots-cl\xe9s, s\xe9par\xe9s par des virgules"}},actions:{back:"Retour",submit:"Obtenir des clips"}}},clips:{delete:{header:"Supprimer",title:"Voulez-vous vraiment supprimer ce clip ?",success:{title:"Vous avez supprim\xe9 votre clip avec succ\xe8s"}}},processing:"Nous vous informerons par email une fois le traitement termin\xe9"},queueMessage:{you:"Vous \xeates",inQueue:"dans la file d'attente",title:"Passez \xe0 la version sup\xe9rieure pour profiter de la fonctionnalit\xe9 de rendu prioritaire",title1:"ou vous pouvez \xe9diter d'autres vid\xe9os pendant l'exportation de votre vid\xe9o"},textToVideo:{steps:{next:"Suivant",back:"Retour"},script:{title:"G\xe9n\xe9rateur de vid\xe9os",videoAspectRatioTitle:"Dimensions de la vid\xe9o",videoAspectRatioSmallTitle:"(Rapport d'aspect)",videoAspectRatioDesc1:"* 9:16 pour les reels/histoires Instagram, shorts YouTube et TikTok",videoAspectRatioDesc2:"* 16:9 pour les vid\xe9os YouTube",videoDurationTitle:"Dur\xe9e de la vid\xe9o",scriptLanguageTitle:"Langue du script",voiceoverGenderTitle:"Acteur de la voix off",videoThemeTitle:"Th\xe8me de la vid\xe9o",videoToneTitle:"Ton de la vid\xe9o",advancedSettings:"Param\xe8tres avanc\xe9s",videoIdeaTitle:"Id\xe9e de vid\xe9o",videoIdeaPlaceholder:"Qui sont les PayPal Mafia ?",videoScriptPlaceholder:"Collez votre script ...",videoIdeaPrefix:"",generateVideoButton:"G\xe9n\xe9rer des sc\xe8nes",generateScript:"G\xe9n\xe9rer un script",backgroundMusic:"Musique de fond",zoomInAndOut:"Effets de zoom",aiModule:"Module de g\xe9n\xe9ration d'images",remainingCharacters:"caract\xe8res restants",backgroundMusicTooltip:"D\xe9cochez la case si vous souhaitez ajouter de la musique tendance \xe0 l'aide de vos plateformes de r\xe9seaux sociaux pr\xe9f\xe9r\xe9es.",zoomInAndOutTooltip:"
1Cochez la case si vous souhaitez des effets de zoom avant/arri\xe8re pour chaque image g\xe9n\xe9r\xe9e. (Fonctionnalit\xe9 payante uniquement)",zoomInAndOutTooltipFree:"Cochez la case si vous souhaitez des effets de zoom avant/arri\xe8re pour chaque image g\xe9n\xe9r\xe9e.",partner:"Voix off propuls\xe9e par",durationEstimate:"Dur\xe9e estim\xe9e",edit:{generating:"G\xe9n\xe9ration du script en cours",generatingSubTitle:"Veuillez patienter pendant que nous g\xe9n\xe9rons votre script.",title:"R\xe9viser le script",reset:"R\xe9initialiser",fields:{hook:{label:"Accroche",placeholder:"Accroche",tooltip:"L'accroche vid\xe9o est un d\xe9but bref et accrocheur qui incite les spectateurs \xe0 continuer \xe0 regarder."},body:{label:"Corps",placeholder:"Corps",tooltip:"Le corps de la vid\xe9o est le contenu principal qui suit l'accroche, pr\xe9sentant les informations ou le r\xe9cit principal."},conclusion:{label:"Conclusion",placeholder:"Conclusion",tooltip:"La conclusion de la vid\xe9o r\xe9sume les points cl\xe9s et cl\xf4t le contenu."}},resetAlert:{title:"\xcates-vous s\xfbr de vouloir r\xe9initialiser les modifications du script ?",actionText:"Oui"},chartCount:e=>"sur ".concat(e," caract\xe8res"),loader:{generating:"G\xe9n\xe9ration du script...",description:"G\xe9n\xe9ration de votre script : cela peut prendre jusqu'\xe0 3 minutes. Merci pour votre patience !"}},tabs:{prompt:"Id\xe9e de vid\xe9o",script:"Collez votre script"},confirmation:{header:"\xcates-vous s\xfbr de vouloir passer \xe0 la g\xe9n\xe9ration vid\xe9o ?",title:"En fonction de l'invite que vous choisissez, la dur\xe9e de la vid\xe9o sera d'environ",prompt:"Invite de la vid\xe9o :",script:"Script de la vid\xe9o :",properties:"Propri\xe9t\xe9s de la vid\xe9o :"},voiceOverLanguageRequired:"Veuillez sp\xe9cifier la langue du script",usage:{title:"Co\xfbt vid\xe9o :",disclaimer:"* Les prix s'ajustent en fonction de votre s\xe9lection"},credits:e=>
1"".concat(e," Cr\xe9dits"),visuals:{visualsSource:{title:"Choisissez les visuels"},aiImages:{title:"Style d'image IA"}},voiceOverSettings:{title:"Voix off",gender:"Genre de la voix off",male:"Homme",female:"Femme"},script:{title:"Sc\xe9nario et visuels"},imageStyle:{title:"Style des images"}},advancedAiModulePopup:{title:"Ajoutez des cr\xe9dits et utilisez notre module de g\xe9n\xe9ration d'images plus avanc\xe9",fast:"Rapide",quality:"Haute qualit\xe9",accurate:"Plus pr\xe9cis",noWatermark:"Sans filigrane",cancel:"Annuler",addMins:"Ajouter des cr\xe9dits"},generating:{title:"Votre vid\xe9o AI courte est en cours de g\xe9n\xe9ration...",info:"Le temps de traitement peut prendre jusqu'\xe0 2 minutes pour g\xe9n\xe9rer vos sc\xe8nes.",exportInfo:"Nous transformons votre script en images et voix, synchronisons tout cela de mani\xe8re continue et finalisons votre vid\xe9o.",infoAction:"Retour au studio",errors:{idea:{title:"D\xe9sol\xe9, votre id\xe9e de vid\xe9o peut violer notre politique de contenu.",action:"Essayez une autre id\xe9e"}},processingVideo:"Traitement de la vid\xe9o...",processingScenes:"G\xe9n\xe9ration des sc\xe8nes ..."},download:{downlaodButton:"T\xe9l\xe9charger",share:"Partager",removeWatermark:"Supprimer l'\xe9tiquette",downloadMusicLicense:"T\xe9l\xe9charger la licence de la musique",createANewVideoButton:"G\xe9n\xe9rer une nouvelle vid\xe9o",editVideo:"\xc9diter la vid\xe9o",feedback:{title:"Nous aimerions avoir vos retours",description:"Vos commentaires sont tr\xe8s importants pour nous afin d'am\xe9liorer nos services et de vous offrir la meilleure exp\xe9rience !",success:"Nous appr\xe9cions vos retours. Merci !",form:{fields:{feedback:"\xc9crivez vos retours ..."},submit:"Envoyer"}}},limitationPopup:{title:"Vous avez atteint votre limite !",description:"Veuillez recharger votre compte pour pouvoir g\xe9n\xe9rer plus de",addMinutes:"Ajouter des cr\xe9dits",videos:"Vid\xe9os.",images:"Images.",voiceovers:"Narrations"},editor:{sidebar:{scenes:{title:"Sc\xe8nes",back:"Dos",backToScene:"Dos",generalSettings:{animations:{title:"Efectos de movimiento",tooltip:{title:"Efectos de movimiento",description:"En d\xe9cochant cette case, vous exporterez votre vid\xe9o sans aucune animation de type zoom avant/arri\xe8re."}},subtitles:{title:"Sous-titres",tooltip:{title:"Sous-titres",description:"En d\xe9cochant cette case, vous exporterez votre vid\xe9o sans aucun sous-titre."}},backgroundMusic:{title:"Musique de fond"}},scene:{title:"Sc\xe8ne",replaceImage:"Changer d'image",editScene:"\xc9diter la sc\xe8ne",trim:"Rogner",upload:"T\xe9l\xe9verser",scale:{fill:"Remplir",fit:"Adapter"},deletePopup:{header:"Supprimer",title:"Voulez-vous vraiment supprimer cette image ?",success:{title:"Vous avez supprim\xe9 votre image avec succ\xe8s"}},settings:{title:"Param\xe8tres de la sc\xe8ne",animation:{title:"Type d'animation",none:"Aucun"}}},changeImage:{upload:{title:"T\xe9l\xe9verser"},aiImages:{title:"Images/Vid\xe9os IA",placeholder:"Saisissez des invites pour g\xe9n\xe9rer une image",back:"Retour aux Visuals IA"},stock:{title:"Biblioth\xe8que de stock",images:"Images",videos:"Vid\xe9os",scenes:"Sc\xe8nes"}},music:{title:"Nous avons s\xe9lectionn\xe9 une piste g\xe9niale pour votre vid\xe9o !"}},texts:{title:"Texte",tabs:{settings:"Param\xe8tres",effects:"Effets",presets:"Pr\xe9r\xe9glages"}},settings:{title:"Param\xe8tres"},subtitles:{title:"Sous-titres",voiceOver:{title:"Voix off",regenerate:"R\xe9g\xe9n\xe9rer",freeUsage:e=>"Il vous reste ".concat(e," r\xe9g\xe9n\xe9rations de voix off gratuites."),confirmation:{title:"R\xe9g\xe9n\xe9rer la voix off ?",description:"Cela \xe9crasera la voix off existante avec le texte mis \xe0 jour.",currentCredits:"Vos cr\xe9dits actuels sont",usedCredits:"Apr\xe8s confirmation, vos cr\xe9dits seront",actionText:"R\xe9g\xe9n\xe9rer"}}},overlays:{title:"Superpositions",opacity:{title:"Opacit\xe9"},background:{title:"Superposition de fond"},animated:{title:"Superposition anim\xe9e"}}},export:"Exporter la vid\xe9o"},disclaimer:"Nous ne pouvons pas contr\xf4ler le contenu g\xe9n\xe9r\xe9. Examinez-le attentivement et utilisez-le \xe0 votre discr\xe9ti
1on.",scenes:{delete:{error:"Vous ne pouvez pas supprimer la derni\xe8re sc\xe8ne.",confirmation:{title:"\xcates-vous s\xfbr de vouloir supprimer cette sc\xe8ne ?"}},split:{error:"Vous avez atteint la dur\xe9e minimale de la sc\xe8ne."}}},textToScene:{title:"G\xe9n\xe9rateur de sc\xe8nes",textToScene:"Texte \xe0 Video",imageToScene:"Image \xe0 Video",usage:"sc\xe8ne =",usageShort:"sc\xe8ne =",description:"G\xe9n\xe9rer une sc\xe8nes de 5 secondes",form:{fields:{prompt:{label:"D\xe9crire la sc\xe8ne",placeholder:"D\xe9crivez la sc\xe8ne que vous souhaitez g\xe9n\xe9rer en quelques mots"},aspectRatio:{label:"Dimensions de la sc\xe8nes"},sceneDuration:{label:"Dur\xe9e de la sc\xe8ne"},advancedSettings:{label:"Param\xe8tres avanc\xe9s",loop:"Boucle"}},imageUploader:{title:"Glissez et d\xe9posez votre image ici ou ",browse:"parcourir",title1:" pour choisir un fichier",maxSize:"Taille maximale du fichier : 16MB",supportedMiemTypes:"Types de fichiers pris en charge :",library:{title:"Biblioth\xe8que",import:"Importer",empty:"Vous n'avez pas encore d'images dans votre biblioth\xe8que. Cliquez sur le bouton ci-dessus pour importer des images."},swapFields:"Interchanger les champs"},submit:"G\xe9n\xe9rer la vid\xe9o"},modelSelector:{title:"Mod\xe8le de vid\xe9o"},historyList:{title:"Vid\xe9os g\xe9n\xe9r\xe9es",empty:"Aucune vid\xe9o g\xe9n\xe9r\xe9e pour l'instant !"},preview:{generateNew:"G\xe9n\xe9rer une nouvelle sc\xe8ne",download:"T\xe9l\xe9charger"},bottomNav:{settings:"Param\xe8tres de la sc\xe8ne",history:"Historique"},failed:{title:"Impossible de traiter la vid\xe9o",description:"Nous n'avons pas pu traiter votre demande car l'invite contient des mots non pris en charge.",description1:"Vos cr\xe9dits pour cette vid\xe9o ont \xe9t\xe9 automatiquement rembours\xe9s. Veuillez r\xe9essayer avec une invite diff\xe9rente.",action:"G\xe9n\xe9rer une nouvelle vid\xe9o"},generatePrompt:"Demande pour moi",delete:{header:"Supprimer",title:"\xcates-vous s\xfbr de vouloir supprimer cette vid\xe9o ?",success:"Vid\xe9o supprim\xe9e avec succ\xe8s"},header:{disclaimer:"* Les prix s'ajustent en fonction de votre s\xe9lection"}},quoteToVideo:{title:"G\xe9n\xe9rateur de vid\xe9o \xe0 partir d'une citation",cost:"Co\xfbt de la vid\xe9o",form:{fields:{quote:{label:"Citation",placeholder:"Je ne peux pas changer la direction du vent, mais je peux ajuster mes voiles pour toujours atteindre ma destination.",remainingCharacters:"Caract\xe8res"},author:{label:"Auteur",placeholder:"Saisissez le nom de l'auteur"},visualStyle:{label:"Choisissez des visuels"}},submit:"G\xe9n\xe9rer une vid\xe9o"}},textToImage:{title:"G\xe9n\xe9ration d'image",generate:"G\xe9n\xe9rer une image",usage:"Cr\xe9dits utilis\xe9s pour l'image =",credits:e=>"".concat(e," Cr\xe9dits"),form:{fields:{prompt:{label:"\xc9crire une invite",placeholder:"Commencez \xe0 imaginer ..."},aspectRatio:{label:"Dimensions de l'image"},imageStyle:{label:"Style de l'image"},superPrompt:{label:"Am\xe9liorer l'invite (+10 cr\xe9dits)",tooltip:"Cochez cette case pour affiner et am\xe9liorer automatiquement votre invite pour une meilleure g\xe9n\xe9ration d'image. Notez que le co\xfbt augmentera de",tooltip1:" 10 cr\xe9dits suppl\xe9mentaires."}}},historyList:{title:"Images g\xe9n\xe9r\xe9es",empty:"Aucune image g\xe9n\xe9r\xe9e pour l'instant !"},bottomNav:{settings:"Param\xe8tres de l'image",history:"Historique"}},textToSpeech:{title:"G\xe9n\xe9ration de voix off",generate:"G\xe9n\xe9rer une voix off",usage:"Cr\xe9dits utilis\xe9s pour la voix off =",credits:e=>"".concat(e," Cr\xe9dits"),form:{fields:{prompt:{label:"Texte",placeholder:"Commencez \xe0 taper ici ou collez n'importe quel texte que vous souhaitez transformer en parole r\xe9aliste.",maxCharacters:"Characters"}}},empty:{title:"Aucune voix off g\xe9n\xe9r\xe9e pour l'instant !"},historyList:{title:"Historique des voix off g\xe9n\xe9r\xe9es",empty:"Aucune voix off g\xe9n\xe9r\xe9e pour l'instant !"},bottomNav:{settings:"Param\xe8tres de la voix off",history:"Historique"},disclaimer:"Veuillez noter que nos voix off g\xe9n\xe9r\xe9es par IA peuvent contenir des imperfections et des erreurs occasionnelles.",loading:"Cela peut prendre encore quelques minutes, veuillez patienter.",listHeader:{title:"Titre de l'audio",dateCreated:"Date de cr\xe9ation",duration:"Dur\xe9e"},voiceoverDetails:{script:{title:"Texte de la voix off"}},deleteConfirmation:{header:"Supprimer",title:"Voulez-vous vraiment supprimer cette voix off ?",success:"Voix off supprim\xe9e avec succ\xe8s"},feedback:{success:"Nous appr\xe9cions vos retours. Merci !"}},aiAvatars:{title:"Robots de IA",header:{usage:"Co\xfbt de la vid\xe9o :",disclaimer:"* Le co\xfbt d\xe9pend du nombre de caract\xe8res du script"},script:{title:"Script",placeholder:"\xc9crivez votre script ici..."},sampleAvatars:"Ou choisissez un avatar de exemple",voiceover:"Genre de voix off",videoSettings:{title:"Param\xe8tres de la vid\xe9o",dimension:{title:"Dimensions de la vid\xe9o"},captionStyles:{title:"Styles de sous-titres"},backgroundStyle:{title:"Style de l'image de fond"}},avatar:{title:"Choisissez un avatar"},language:{title:"Langue du script",placeholder:"S\xe9lectionnez une langue"},selectVoiceover:{title:"S\xe9lectionner la voix off",none:"Aucun"}
1,uploadImage:{title:"T\xe9l\xe9verser une image",description:"Choisissez une image pour convertir en avatar",dragBox:"Glissez et d\xe9posez votre image ici ou",browse:"Parcourir",chooseFile:"pour choisir une image",supportedMiemTypes:"Support\xe9s:",disclaimer:"Votre avatar doit suivre ces r\xe8gles.",seeDetails:"Voir les d\xe9tails",failed:"\xc9chec de cr\xe9ation de l’avatar. Essayez une autre photo.",maxSizeMessage:"Le fichier est plus grand que 50 MB"},uploadVoiceover:{title:"T\xe9l\xe9verser une voix off",description:"Choisissez une voix off pour convertir en avatar",dragBox:"Glissez et d\xe9posez votre voix off ici ou",browse:"Parcourir",chooseFile:"pour choisir une voix off",supportedMiemTypes:"(Support\xe9s: MP3, WAV)",minDurationMessage:"Le fichier est plus petit que 1 seconde",maxDurationMessage:"Le fichier est plus grand que 10 minutes",sizeLimitMessage:"Le fichier est plus grand que 50 MB"},imageRequirementsPopup:{title:"Exigences de la photo",reason:"Votre photo t\xe9l\xe9charg\xe9e ne respecte pas les exigences, veuillez r\xe9essayer avec une autre photo et veillez \xe0 suivre les instructions suivantes.",goodPhotos:"Photos de qualit\xe9",badPhotos:"Photos de mauvaise qualit\xe9",description:"Photos r\xe9centes de vous-m\xeame (juste vous), montrant un m\xe9lange de clich\xe9s de face et de clich\xe9s de corps entier, avec diff\xe9rents angles, expressions (souriant, neutre, s\xe9rieux), et une vari\xe9t\xe9 de tenues. Assurez-vous qu'elles sont de haute r\xe9solution et refl\xe8tent votre apparence actuelle.",description1:"Pas de photos de groupe, de chapeaux, de lunettes de soleil ou de filtres lourds. \xc9vitez les photos qui sont trop anciennes, de faible r\xe9solution ou ne repr\xe9sentent pas votre apparence actuelle."},avatarsForm:{name:{label:"Nom"},gender:{label:"Genre"},ethnicity:{label:"Ethnie"},age:{label:"Age"},modal:{title:"Votre avatar est pr\xeat !",description:"Maintenant, ajoutons quelques d\xe9tails pour donner vie \xe0 votre avatar",save:"Continuer avec Avatar",generateNewAvatar:"G\xe9n\xe9rer un nouvel avatar"}},chooseAvatar:{myAvatars:"Mes Avatars",sampleAvatars:"Avatars de Exemple",none:"Aucun"},review:{title:"Revoir les t\xe9l\xe9chargements",description:"Les photos approuv\xe9es ont \xe9t\xe9 marqu\xe9es et sont pr\xeates \xe0 cr\xe9er un look pour votre avatar.",failed:"T\xe9l\xe9verser une autre image",reCrop:"Recadrer l'image",failedDescription:"Image non approuv\xe9e. Veuillez t\xe9l\xe9verser une autre image qui respecte les r\xe8gles d'avatar."},generating:{title:"Votre avatar est en route !",exportInfo:"Nous convertissons votre texte en images et en voix, et nous mettons tout en s\xe9quence, et nous terminons votre vid\xe9o.",failed:{title:"Impossible de traiter l'avatar",description:"Nous n'avons pas pu traiter votre avatar, veuillez r\xe9essayer avec une autre photo.",action:"G\xe9n\xe9rer un nouvel avatar"}},customAvatarGenPopup:{background:{suggestions:"Suggestions",placeholder:"D\xe9crivez le fond ou le sc\xe8ne pour votre avatar (par exemple, 'sc\xe8ne d'office moderne avec lumi\xe8re douce', 'environnement naturel \xe0 l'air libre', 'fond neutre dans le studio')"},confirmation:{title:"\xcates-vous s\xfbr de vouloir proc\xe9der \xe0 la g\xe9n\xe9ration de l'avatar ?",properties:"Propri\xe9t\xe9s de l'avatar :",hijab:"Hijab"},failed:{title:"Erreur lors de la g\xe9n\xe9ration de l'avatar",description:"Nous n'avons pas pu g\xe9n\xe9rer votre avatar en ce moment, nous vous rembourserons vos cr\xe9dits.",action:"G\xe9n\xe9rer un nouvel avatar"}}},maintenancePage:{title:"D\xe9sol\xe9, l'\xe9diteur d'images IA est en cours de maintenance",description:"Nous effectuons actuellement une maintenance programm\xe9e. Veuillez revenir bient\xf4t !"},onBoarding:{skip:"Passer pour l'instant"},aiImagesStudio:{imagePopup:{prompt:"Invite",promptPrefix:"",copy:"Copier",enhancedPrompt:"Invite am\xe9lior\xe9e",animateTooltip:"Voulez-vous donner \xe0 votre image un peu de mouvement ?",unlock:"D\xe9verrouiller le potentiel complet de votre image",animate:"Animer",edit:"Modifier",upscale:"Upscale",model:"Mod\xe8le:"},delete:{header:"Supprimer",title:"\xcates-vous s\xfbr de vouloir supprimer cette image ?",success:"Image supprim\xe9e avec succ\xe8s"}},aiVideoStudio:{videoPopup:{prompt:"Invite de la vid\xe9o :",properties:"Propri\xe9t\xe9s de la vid\xe9o :",promptPrefix:"",copy:"Copier",emptyPrompt:"Aucune inv
1ite fournie",quote:"Citation :",videoModel:"Mod\xe8le de vid\xe9o :",voiceoverModel:"Mod\xe8le de voix off :",negativePrompt:"Prompt n\xe9gatif :"}},createImage:{uploadModal:{upload:{title:"T\xe9l\xe9verser une image / vid\xe9o",dragBox:"Glissez et d\xe9posez votre fichier ici",or:" Ou ",browse:"parcourir ",dragBox1:" pour choisir un fichier",info:"(JPG, PNG sont support\xe9s)",upload:"T\xe9l\xe9verser"},size:{title:"Taille maximale de l'image : ",title1:"5 Mo",message:"Le fichier est plus grand que 5 Mo",messageDynamic:e=>"Le fichier est plus grand que ".concat(e," Mo"),videoMessage:"Le fichier est plus grand que 150 Mo"},duration:{title:"Dur\xe9e maximale de la vid\xe9o : ",title1:"5 minutes",message:"La vid\xe9o est plus longue que 5 minutes"}}},creditsBalance:{title:"Solde des cr\xe9dits",totalCreditsAvailable:"Total des cr\xe9dits disponibles",planCreditsLeft:{title:"Cr\xe9dits mensuels restants",tooltip:"Cr\xe9dits mensuels restants, disponibles jusqu'\xe0 la fin du mois, et r\xe9initialis\xe9s mensuellement"},topUpCreditsLeft:{title:"Cr\xe9dits achet\xe9s restants",tooltip:"Cr\xe9dits restants disponibles, repr\xe9sentant votre solde inutilis\xe9 de vos cr\xe9dits achet\xe9s."},monthlyCredits:"Cr\xe9dits mensuels",purchasedCredits:"Cr\xe9dits achet\xe9s",planCreditsSubtitle:"Renouvel\xe9 \xe0 chaque cycle de facturation",purchasedCreditsSubtitle:"Achats ponctuels",expiresInDays:e=>1===e?"Expire dans 1 jour":"Expire dans ".concat(e," jours")},changePlan:{current:"Cr\xe9dits du plan actuel :",tabs:{changeCurrentPlan:{title:"Changer de plan actuel",tooltip:"Les cr\xe9dits seront r\xe9initialis\xe9s \xe0 la fin du cycle de facturation",description:"S\xe9lectionnez ci-dessous le nombre de cr\xe9dits que vous souhaitez pour le nouveau plan :"},oneTimePayment:{title:"Paiement unique",tooltip:"Les cr\xe9dits seront report\xe9s",description:"S\xe9lectionnez ci-dessous le nombre de cr\xe9dits que vous souhaitez ajouter \xe0 votre compte :"}}},reactivateFlow:{title:"Il semble que votre abonnement soit actuellement en pause. Pas de souci, la r\xe9activation est simple et ne vous facturera rien.",action:"R\xe9activer"},yearlyDisclaimer:{title:"Vous cherchez \xe0 mettre \xe0 niveau votre plan actuel ? Contactez notre \xe9quipe d'assistance pour obtenir de l'aide. Nous sommes l\xe0 pour am\xe9liorer votre exp\xe9rience d'abonnement !"},sharePopup:{confirmation:{title:"\xcates-vous s\xfbr de vouloir partager votre vid\xe9o ?",description:"Seules les personnes avec le lien peuvent acc\xe9der \xe0 la vid\xe9o"},title:"Partager le lien",description:"Copiez le lien ci-dessous pour partager votre vid\xe9o"},effects:{title:"Effets de texte"},highlightEffects:{title:"Effets de surlignage de texte"},verification:{title:"V\xe9rification",description:"Veuillez v\xe9rifier votre adresse e-mail pour continuer",change:"Changer",didntReceive:"Vous n'avez pas re\xe7u l'e-mail ?",resend:"Renvoyer",resendSuccess:"E-mail renvoy\xe9 avec succ\xe8s",verify:"V\xe9rifier",checkSpam:"Vous n'avez pas re\xe7u l'e-mail ? Veuillez v\xe9rifier votre dossier spam/ind\xe9sirable et nous ajouter \xe0 votre liste d'exp\xe9diteurs approuv\xe9s."},trimPopup:{title:"D\xe9couper la vid\xe9o",cancel:"Annuler",selectVideo:"S\xe9lectionner la vid\xe9o"},invalidLink:{title:"Ce lien de vid\xe9o n'est pas valide",description:"Il semble que le lien de vid\xe9o que vous avez fourni ne soit pas valide. Veuillez v\xe9rifier et r\xe9essayer."},creditsSysterm:{title:"Syst\xe8me de cr\xe9dits",description:"Les cr\xe9dits sont utilis\xe9s pour g\xe9n\xe9rer des vid\xe9os, des images, des voix off et des sc\xe8nes. Les cr\xe9dits sont r\xe9initialis\xe9s mensuellement pour les cr\xe9dits mensuels et report\xe9s pour les cr\xe9dits achet\xe9s.",tooltip:e=>"Les cr\xe9dits sont r\xe9initialis\xe9s \xe0 ".concat(e," chaque mois \xe0 partir de la date de votre abonnement. Achetez plus ou mettez \xe0 niveau selon vos besoins.")},serviceDown:{title:e=>"Outil ".concat(e," temporairement indisponible"),description:e=>"Nous n'avons pas pu g\xe9n\xe9rer votre ".concat(e," pour le moment. Veuillez r\xe9essayer ult\xe9rieurement"),action:"Retour au Studio",features:{image_generation:{title:"G\xe9n\xe9ration d'image",description:"Image"},voice_over_generation:{title:"G\xe9n\xe9ration de voix off",description:"Voix off"},text_to_video_script_generation:{title:"G\xe9n\xe9ration de vid\xe9o",description:"Script"}
1,text_to_video_scene_generation:{title:"G\xe9n\xe9ration de vid\xe9o",description:"vid\xe9o"},scene_generation_text_to_video:{title:"G\xe9n\xe9ration de vid\xe9o",description:"video"},scene_generation_image_to_video:{title:"G\xe9n\xe9ration de vid\xe9o",description:"video"},transcription:{title:"G\xe9n\xe9rer des sous-titres",description:"sous-titres"},quote_to_video:{title:"G\xe9n\xe9rer une vid\xe9o \xe0 partir d'une citation",description:"vid\xe9o"},avatar_photo_generation:{title:"G\xe9n\xe9rer un avatar",description:"avatar"},avatar_video_generation:{title:"G\xe9n\xe9rer un avatar",description:"avatar"},image_editor:{title:"\xc9diteur d'image",description:"image"},image_upscaler:{title:"Upscale d'image",description:"image"}},modelDown:{title:e=>"".concat(e," Non Disponible Temporairement"),description:e=>"Le mod\xe8le ".concat(e," n'est pas disponible en ce moment. Essayez de changer de mod\xe8le pour continuer"),back:"Retour au Studio",switch:"Changer de Mod\xe8le"},providerDown:{title:"Mod\xe8le Inactif",description:"Le mod\xe8le n'est pas disponible en ce moment. Essayez de changer de mod\xe8le pour continuer",back:"Retour au Studio",switch:"Changer de Mod\xe8le"},templateExecutionFailure:{title:"Template Non Disponible",description:"Le template n'est pas disponible en ce moment. Essayez de changer de template pour continuer",back:"Retour aux Templates"}},videosOptionsPopup:{title:"Vid\xe9os courtes"},serviceDownPopup:{title:"Service en panne",description:"Notre g\xe9n\xe9ration de script par IA (pour l'id\xe9e de vid\xe9o) est en maintenance et sera de nouveau op\xe9rationnelle bient\xf4t.",description1:'Cependant, la fonctionnalit\xe9 "Collez votre script" est disponible.'},aspectRatioAlertPopup:{title:"Dimensions de l'image invalides",description:e=>"L'image t\xe9l\xe9charg\xe9e ne respecte pas les dimensions requises. Veuillez vous assurer que la largeur/hauteur de votre image ne d\xe9passe pas ".concat(e,"px."),description1:e=>"L'image t\xe9l\xe9charg\xe9e ne respecte pas les dimensions requises. Veuillez vous assurer que la largeur/hauteur de votre image est sup\xe9rieure \xe0 ".concat(e,"px.")},faqs:{title:"Questions fr\xe9quentes"},discoverMore:{title:"D\xe9couvrez plus avec Bith"},imageCropper:{actions:{crop:"Recadrer",cancel:"Annuler"}},creditsRolloverPopup:{title:"Le retournement des cr\xe9dits vient de d\xe9marrer !",description:"Vos cr\xe9dits inutilis\xe9s sont d\xe9sormais report\xe9s d’un mois sur l’autre ind\xe9finiment, et ils sont toujours utilis\xe9s en priorit\xe9 avant vos cr\xe9dits mensuels habituels ou toute recharge suppl\xe9mentaire. Gardez votre abonnement actif pour conserver votre solde report\xe9 — aucune action n’est requise !"},annualPlansPopup:{title:"Abonnements annuels",discountAmount:"20 %",descriptionPrefix:"Profitez de ",descriptionSuffix:" de r\xe9duction avec nos abonnements annuels.",descriptionSecondary:"D\xe9couvrez les nouveaux abonnements et les conditions de cr\xe9dits mises \xe0 jour.",cta:"Passer \xe0 l’annuel"},musicRemovalConfirmation:{header:"Votre vid\xe9o sera export\xe9e sans musique",title:"Cette piste est une vue pr\xe9liminaire et ne sera pas incluse dans votre exportation en raison de restrictions de copyright. Vous pouvez ajouter cette musique sp\xe9cifique ou toute autre de l'application de r\xe9seaux sociaux de votre choix"},deleteAccount:{header:"Supprimer le compte",title:"\xcates-vous s\xfbr de vouloir supprimer votre compte ?",description:"Cette action est irr\xe9versible et supprimera votre compte parfaitement. Toutes les donn\xe9es associ\xe9es seront d\xe9finitivement supprim\xe9es.",action:"Supprimer le compte"},useCases:{title:"Ce que les utilisateurs cr\xe9ent"},aiImageEditor:{newProject:"Nouveau projet",newProjectShort:"Nouveau",prompt:{label:"Texte",placeholder:"D\xe9crivez ce que vous souhaitez changer…"},deleteConfirmation:{header:"\xcates-vous s\xfbr de vouloir supprimer cette session ?",title:"Cette action supprimera d\xe9finitivement l'image t\xe9l\xe9charg\xe9e et toutes les modifications effectu\xe9es pendant cette session. Vous ne pourrez pas la r\xe9cup\xe9rer.",title2:"Cela supprimera d\xe9finitivement toutes les modifications apport\xe9es au cours de cette session. L'image import\xe9e depuis votre biblioth\xe8que restera inchang\xe9e. Vous ne pourrez pas r\xe9cup\xe9rer les modifications supprim\xe9es.",success:"Session supprim\xe9e avec succ\xe8s"},editVersionActions:{download:"T\xe9l\xe9charger",downloading:"T\xe9l\xe9chargement...",zoomIn:"Zoomer",zoomOut:"D\xe9zoomer",fitToCanvas:"Ajuster \xe0 la Canva",animate:"Animer",upscale:"Upscale",copyLink:"Copier le lien",removeImage:"Supprimer l'image"},editVersion:{failed:"\xc9chec",failedDescription:"D\xe9sol\xe9, quelque chose s'est mal pass\xe9 et votre demande a \xe9chou\xe9. Veuillez r\xe9essayer"},newSession:{title:"\xc9diteur d'image"}
1,uploadImage:{title:"T\xe9l\xe9verser une image ou choisir une image depuis votre biblioth\xe8que",supportedMiemTypes:"Supports: ",import:{library:"Votre Biblioth\xe8que",upload:"T\xe9l\xe9charger"},maxFilesUpTo:"* Ajouter jusqu'\xe0 ",maxFilesUpToValue:"images"}},styleExamplesCarousel:{apply:"Appliquer",ariaLabel:"Exemples de style"},inspirationalGallery:{title:"Galerie Inspirante",backToGallery:"Retour \xe0 la Galerie",tools:{[o.m.AI_SHORTS]:"Shorts IA",[o.m.TEXT_TO_SCENE]:"Texte \xe0 Video",[o.m.IMAGE_TO_SCENE]:"Image \xe0 Video",[o.m.QUOTE_TO_VIDEO]:"Citation \xe0 Video",[o.m.AI_AVATAR]:"Avatar IA",[o.m.TEXT_TO_IMAGE]:"Text to Image",[o.m.IMAGE_EDITOR]:"\xc9diteur d'image"},details:{image:"Image",video:"Video",tool:"Outil",prompt:"Invite",model:"Mod\xe8le:",properties:"Propri\xe9t\xe9s:",script:"Script",quote:"Citation",usePreset:"Utiliser le Preset"}},sceneGen:{imageToScene:{newSession:{title:"Image \xe0 Video"}},textToScene:{newSession:{title:"Texte \xe0 Video"}},actions:{generate:"G\xe9n\xe9rer",loading:"G\xe9n\xe9ration..."},form:{imageUploader:{selectImages:"S\xe9lectionner une image",upload:"T\xe9l\xe9charger"}},selectModelPopup:{i2vTitle:"Choisir un mod\xe8le",t2vTitle:"Choisir un mod\xe8le",imageGenTitle:"Choisir un mod\xe8le",modelsTitle:"Mod\xe8les",button:"Utiliser le mod\xe8le",audioTooltip:"Ce mod\xe8le supporte l'audio.",searchPlaceholder:"Rechercher un mod\xe8le ...",newBadge:"Nouveau",noResults:"Aucun mod\xe8le ne correspond \xe0 votre recherche.",speedTooltip:"Vitesse",qualityTooltip:"Qualit\xe9",startFrameBadge:"Image de d\xe9part",endFrameBadge:"Image de fin"},sceneItemCard:{reuseParameters:"R\xe9utiliser les param\xe8tres",copyPrompt:"Copier le prompt",download:"T\xe9l\xe9charger"}},models:{modelsSelector:{model:"Mod\xe8le",viewAllModels:"Voir tous les mod\xe8les"}},sessions:{title:"Sessions",videoOptions:"Options de vid\xe9o",imageOptions:"Options d'image",deleteSession:{sceneGen:{header:"\xcates-vous s\xfbr de vouloir supprimer cette session ?",title:"Cette action supprimera d\xe9finitivement toutes les vid\xe9os g\xe9n\xe9r\xe9es pendant cette session. Vous ne pourrez pas les r\xe9cup\xe9rer",success:"Session supprim\xe9e avec succ\xe8s"},session:{header:"\xcates-vous s\xfbr de vouloir supprimer cette session ?",title:"Cette action supprimera d\xe9finitivement la session et toutes les modifications effectu\xe9es pendant cette session. Vous ne pourrez pas les r\xe9cup\xe9rer",success:"Session supprim\xe9e avec succ\xe8s"}},itemFailed:{title:"D\xe9sol\xe9, celui-ci a \xe9chou\xe9.",description:"Veuillez r\xe9essayer ou modifier le prompt ou le fournisseur de mod\xe8le.",template:{title:"\xc9chec de la G\xe9n\xe9ration",description:"Veuillez r\xe9essayer ou modifier les entr\xe9es.",reasons:{chargedForFailedJob:{title:"Suis-je factur\xe9 pour les t\xe2ches \xe9chou\xe9es ?",description:"Non, vous ne serez pas factur\xe9 pour une t\xe2che \xe9chou\xe9e."}}},reasons:{whyFailed:{title:"Pourquoi les t\xe2ches \xe9chouent-elles ?",description:"Chaque fournisseur de mod\xe8le a des disponibilit\xe9s et des restrictions diff\xe9rentes. Essayez un autre fournisseur en changeant le mod\xe8le en haut, ou modifiez votre prompt et \xe9vitez d’utiliser des noms ou des r\xe9f\xe9rences \xe0 du mat\xe9riel prot\xe9g\xe9 par le droit d’auteur. Aucun frais ne sera appliqu\xe9 pour les t\xe2ches \xe9chou\xe9es."},chargedForFailedJob:{title:"Suis-je factur\xe9 pour les t\xe2ches \xe9chou\xe9es ?",description:"Non, vous ne serez pas factur\xe9 pour une t\xe2che \xe9chou\xe9e."}}}},imageUpscaler:{actions:{upscale:"Upscale",loading:"Upscaling..."},newSession:{title:"Image Upscaler"},editActions:{animate:"Animer",download:"T\xe9l\xe9charger"},session:{failed:{title:"\xc9chec",reason:"Nous n'avons pas pu escaler votre image, nous vous rembourserons vos cr\xe9dits. Veuillez r\xe9essayer."},advancedSettings:"Param\xe8tres Avanc\xe9s"}},imageGen:{newSession:{title:"G\xe9n\xe9rateur d'images"},actions:{generate:"G\xe9n\xe9rer",loading:"G\xe9n\xe9ration..."},imageGenItemCard:{reuseParameters:"R\xe9utiliser les param\xe8tres",copyPrompt:"Copier le prompt",download:"T\xe9l\xe9charger",retry:"R\xe9essayer",upscale:"Upscale",animate:"Anim\xe9",edit:"Modifier"},failed:{title:"Impossible de traiter l'image",description:"Nous n'avons pas pu traiter votre demande car le prompt contient des mots non pris en charge.",description1:"Vos cr\xe9dits pour cette image ont \xe9t\xe9 automatiquement rembours\xe9s. Veuillez r\xe9essayer avec un prompt diff\xe9rent.",action:"G\xe9n\xe9rer une nouvelle image"}},toolsNavigationDropdown:{video:"Vid\xe9o",image:"Image",audio:"Audio",other:"Lip-syncing"},promptBox:{warning:"Google has been reporting black screen issues with their Veo3 image to video model."},templates:{outputType:"Type de sortie",uploadFile:{title:"Cliquez pour t\xe9l\xe9charger",dragBox:"Faites glisser et d\xe9posez votre fichier ici",or:" ou ",browse:"explorer ",dragBox1:" pour choisir un fichier",supportedMiemTypes:"Supports: ",removeFile:"Supprimer le fichier"},generate:"G\xe9n\xe9rer",generating:"G\xe9n\xe9ration..."},toolsShortcuts:{edit:"Modifier",upscale:"Upscale",animate:"Anim\xe9",photoshoot:"Studio Photoshoot"},productPhotoshoot:{title:"S\xe9ance Photo Produit",history:"Historique",header:{breadcrumbApps:"Applications"},upload:{uploading:"T\xe9l\xe9chargement...",dragAndDrop:"Glissez-d\xe9posez votre image ici ou",browse:"Parcourir",toChoose:"pour choisir une image",supportedFormats:"(Formats : PNG, JPG, JPEG, WEBP)",uploadFailed:"\xc9chec du t\xe9l\xe9chargement. Veuillez r\xe9essayer."},imagePreview:{altText:"Produit t\xe9l\xe9charg\xe9",change:"Modifier"},resultViewer:{noOutput:"Aucun r\xe9sultat disponible",unableToLoad:"Impossible de charger l'image",altText:e=>"R\xe9sultat photo ".concat(e)},actions:{generating:"G\xe9n\xe9ration ...",generateShots:"G\xe9n\xe9rer les photos",downloading:"T\xe9l\xe9chargement...",download:"T\xe9l\xe9charger",downloadWebImage:"T\xe9l\xe9charger l'Image Web (WEBP)",downloadWebImageDesc:"Optimis\xe9 pour les sites web",downloadFullQuality:"T\xe9l\xe9charger l'Image de Qualit\xe9 (PNG)",downloadFullQualityDesc:"Meilleure qualit\xe9 pour l'\xe9dition ou l'impression",edit:"Modifier",createNew:"Nouveau shooting",new:"Nouveau",errorMessage:"Une erreur est survenue. Veuillez r\xe9essayer."},dimensions:{title:"Choisir les dimensions",subtitle:"Pour le r\xe9sultat final"},instructions:{step1Title:"T\xe9l\xe9charger l'image",step1Description:"T\xe9l\xe9chargez l'image que vous souhaitez modifier",step2Title:"G\xe9n\xe9rer 8 photos",step2Description:"T\xe9l\xe9chargez 8 visuels pr\xeats \xe0 l'emploi dans diff\xe9rents styles et sc\xe8nes.",step3Title:"Cr\xe9er une vid\xe9o promo",step3Description:"Nous s\xe9lectionnerons les meilleurs visuels et cr\xe9erons votre vid\xe9o."},outputs:{altText:e=>"R\xe9sultat ".concat(e),generatedShots:"Prises g\xe9n\xe9r\xe9es",createProductVideo:"Cr\xe9er une Vid\xe9o Produit",downloadAll:"Tout T\xe9l\xe9charger"},promo:{title:"Cr\xe9er une Vid\xe9o Promo",selectionTitle:"Mode de s\xe9lection vid\xe9o",selectionDescription:"S\xe9lectionnez 5 des photos g\xe9n\xe9r\xe9es ci-dessous\npour les animer dans la vid\xe9o promo",selectShotsTitle:"S\xe9lectionnez 5 photos \xe0 animer en vid\xe9o",selectMusicTitle:"S\xe9lectionner la Musique de Fond",backgroundMusic:"Musique de fond",playPreview:"Lecture",pausePreview:"Pause",generatingTitle:"G\xe9n\xe9ration de la vid\xe9o promo",generatingDescription:"Nous transformons vos photos s\xe9lectionn\xe9es en une courte vid\xe9o promo. Cela peut prendre jusqu'\xe0 une minute.",readyTitle:"Vid\xe9o promo pr\xeate",readyFallback:"Votre vid\xe9o promo a \xe9t\xe9 g\xe9n\xe9r\xe9e.",failedTitle:"\xc9chec de la vid\xe9o promo",failedDescription:"Nous n'avons pas pu g\xe9n\xe9rer la vid\xe9o promo. Veuillez r\xe9essayer.",back:"Retour",generateButton:"Cr\xe9er la vid\xe9o",create:"Cr\xe9er",createNewVideo:"Cr\xe9er une nouvelle vid\xe9o",downloadVideo:"T\xe9l\xe9charger la Vid\xe9o"}},aiInfluencer:{breadcrumbApps:"Applications",buildYourInfluencer:"Cr\xe9ez votre Influenceur",new:"Nouveau",history:"Historique",baseProfile:"Profil de Base",physicalFeatures:"Caract\xe9ristiques Physiques",styleDetails:"D\xe9tails du Style",selectAtLeastOne:"S\xe9lectionnez au moins une option pour continuer",next:"Suivant",back:"Retour",generate:"G\xe9n\xe9rer",generating:"G\xe9n\xe9ration en cours...",generateLooks:"G\xe9n\xe9rer des Looks",edit:"Modifier",animate:"Animer",speak:"Parler",dressUp:"Habiller",tryOnOutfits:"Essayer des tenues",comingSoon:"Bient\xf4t disponible",influencerName:"Nom de l'Influenceur",save:"Enregistrer",generationFailed:"\xc9chec de la G\xe9n\xe9ration",generationFailedDesc:"Une erreur s'est produite lors de la g\xe9n\xe9ration de votre influenceur IA. Veuillez r\xe9essayer.",tryAgain:"R\xe9essayer",emptyStateLine1:"Votre influenceur IA se trouve ici.",emptyStateLine2:"Concevez et construisez votre influenceur IA",emptyStateLine3:"de z\xe9ro",influencerLooks:"Looks de l'Influenceur",generatedLooks:"Looks G\xe9n\xe9r\xe9s",loading:"Chargement...",noLooksYet:"Aucun look g\xe9n\xe9r\xe9 pour l'instant.",noLooksDesc:"T\xe9l\xe9chargez une image produit ci-dessus pour cr\xe9er votre premier look.",uploadProductImage:"T\xe9l\xe9charger une Image Produit",tapToUploadProductImage:"Appuyez pour t\xe9l\xe9charger une image produit",uploading:"T\xe9l\xe9chargement...",promptOptional:"Description (optionnel)",promptPlaceholder:"ex. qu'elle tienne le flacon de parfum",generateLook:"G\xe9n\xe9rer un Look",generatingLook:"G\xe9n\xe9ration de votre look…",generateLookFailed:"\xc9chec de la g\xe9n\xe9ration du look.",fetchLooksFailed:"\xc9chec du chargement des looks.",lookStatusCheckFailed:"\xc9chec de la v\xe9rification du statut du look.",selectLookFirst:"Veuillez s\xe9lectionner un look pour g\xe9n\xe9rer.",selectAtLeastOneField:"Veuillez fournir une description ou s\xe9lectionner un environnement, un style de prise de vue ou un angle de cam\xe9ra.",describeChange:"D\xe9crivez ce que vous souhaitez modifier…",environment:"Environnement",shotStyle:"Style de prise de vue",background:"Arri\xe8re-plan",poses:"Poses",cameraAngle:"Angle de cam\xe9ra",optionalSection:" (Optionnel)",productImageAlt:"Image produit",uploadProductImageAlt:"T\xe9l\xe9verser une image produit",styleReferenceImageAlt:"Image de r\xe9f\xe9rence de style",uploadStyleReferenceAlt:"T\xe9l\xe9verser une r\xe9f\xe9rence de style",customBackgroun
1dImageAlt:"Aper\xe7u de l'arri\xe8re-plan personnalis\xe9",uploadFailed:"\xc9chec du t\xe9l\xe9chargement. Veuillez r\xe9essayer.",renameInfluencer:"Renommer l'Influenceur",influencerNamePlaceholder:"Nom de l'influenceur",cancel:"Annuler",close:"Fermer",download:"T\xe9l\xe9charger",regenerate:"R\xe9g\xe9n\xe9rer",rename:"Renommer",editAttributes:"Modifier les attributs",delete:"Supprimer",newInfluencer:"Nouvel influenceur",generatingCharacter:"G\xe9n\xe9ration du personnage peut prendre jusqu'\xe0 <span class='font-bold'>2 minutes</span>",actions:"Actions",nationality:"Nationalit\xe9",selectNationalityForTraditional:"S\xe9lectionnez une nationalit\xe9 pour activer Traditionnel.",headCoveringOmittedForAttire:"La couverture de t\xeate est omise pour les tenues de m\xe9decin et de chef."},virtualTryOn:{title:"Essayage virtuel",header:{breadcrumbApps:"Applications"},modelSelection:{chooseModel:"Choisir un mod\xe8le",chooseTheModel:"Choisissez le mod\xe8le",male:"Homme",female:"Femme",uploadModelImage:"T\xe9l\xe9charger une image de mod\xe8le",yourGallery:"Votre galerie",uploadHint:"Une seule personne, corps entier, visage clairement visible",or:"Ou",changeModel:"Changer de mod\xe8le",creatingModelFromImage:"Cr\xe9ation de votre mod\xe8le… Cela peut prendre un instant."},configPanel:{createLooks:"Cr\xe9er des looks",clothingItems:"V\xeatements",background:"Arri\xe8re-plan",poses:"Poses",optional:"(Optionnel)"},upload:{dragAndDrop:"D\xe9posez vos images ici ou",browse:"Parcourir",toChoose:"pour choisir une image",supportedFormats:"(Formats pris en charge : PNG, JPG, JPEG, WEBP)"},actions:{generate:"G\xe9n\xe9rer",generating:"G\xe9n\xe9ration en cours...",download:"T\xe9l\xe9charger",animate:"Animer",generatingDescription:"La g\xe9n\xe9ration de l'image peut prendre jusqu'\xe0 <span class='font-bold'>2 minutes</span>"},instructions:{step1Title:"Choisissez un mod\xe8le",step1Desc:"S\xe9lectionnez un mod\xe8le pr\xeat \xe0 l'emploi ou t\xe9l\xe9chargez la photo d'une personne pour l'essayage",step2Title:"T\xe9l\xe9chargez votre v\xeatement",step2Desc:"T\xe9l\xe9chargez les photos des v\xeatements que vous voulez essayer",step3Title:"G\xe9n\xe9rez une nouvelle image",step3Desc:"Une nouvelle image est g\xe9n\xe9r\xe9e montrant le mod\xe8le portant vos v\xeatements t\xe9l\xe9charg\xe9s"}},generationProcess:{generating:(e,t)=>"G\xe9n\xe9ration ".concat("image"===e?"image":"video"===e?"vid\xe9o":"audio"===e?"audio":"product_photoshoot"===e?"photos":"virtual_try_on"===e?"try-on":"mixte")+' peut prendre jusqu\'\xe0 <span class="font-bold text-ph-color">'.concat(t," minutes.</span>"),pleaseWait:"Veuillez attendre ou vous pouvez g\xe9n\xe9rer quelque chose d'autre pendant l'attente.",statusLabels:{pending:"En file d'attente",inqueue:"En file d'attente",running:"En file d'attente",processing:"Traitement",completed:"Termin\xe9",failed:"\xc9chec"}},ugcVideo:{editor:{sceneEditIntro:{badge:"Nouveau",title:"Contr\xf4lez la vid\xe9o apr\xe8s l'avoir cr\xe9\xe9e",description:"Regardez la vid\xe9o, modifiez le texte des dialogues et recr\xe9ez facilement n'importe quelle sc\xe8ne jusqu'\xe0 obtenir le r\xe9sultat souhait\xe9 avant d'exporter la vid\xe9o finale.",cta:"Commencer l'\xe9dition"}}}},it:{global:{off:"off",createNew:"Crea nuovo",backTo:"Torna a",viewAll:"Vedi tutti",showAll:"Mostra tutti",featured:"In evidenza",select:"Seleziona ...",nationality:"Qual \xe8 la nazionalit\xe0?",cost:"Costo",failed:"Fallito",characters:"Caratteri",durationEstimate:"Durata stimata",step:"Passo",gotIt:"Ho capito",rechargesOn:"Si ricarica il",topUp:"Ricarica",rollover:"Trasferisci",plan:"Piano",active:"Attivo",collapse:"Comprimi",expand:"Espandi",otherPlaceholder:"Altro",featuredTools:"Strumenti in evidenza",export:"Esporta",free:"Gratuito",thankYou:"Grazie",generatingScenes:"Generazione della scena...",optional:"Opzionale",feedbackSuccess:"Grazie per il tuo feedback!",noAudio:"Questo video non ha audio",ex:"* Esempi",comingSoon:"Presto",comingSoonLong:"In arrivo",promptCopySuccess:"Prompt copiato negli appunti",scriptCopySuccess:"Script copiato negli appunti",quoteCopySuccess:"Citazione copiata negli appunti",downloadImageSuccess:"Immagine scaricata con successo",downloadVideoSuccess:"Video scaricato con successo",downloadVoiceoverSuccess:"Voiceover scaricato con successo",linkCopiedSuccess:"Link copiato con successo",summerSale:"(Saldi estivi 40%)",winterSale:"(Saldi invernali 40%)",sale:"%",sortby:"Ordina per:",filterBy:"Filtra per:",megaByte:"MB",since:"Sottoscritto da",of:"di",gb:"GB",perMonthShort:"/mese",perMonth:"/ Mese",perMonthYearly:"fatturato annualmente",perYear:"/ Anno",choosePlan:"Scegli il piano",getStarted:"Inizia",currentSubscription:"Abbonamento attuale",currentPlan:"Piano attuale",changePlan:"Cambia piano",reActivate:"Riattiva piano",moreFromBith:"Altro da BithAI",all:"Tutti",studio:"Studio",backSignIn:"Torna al login",back:"Indietro",next:"Avanti",backToStudio:"Torna allo studio",generateAvatar:"Genera avatar",backHome:"Torna alla home",createVideo:"Modifica un video",uploadVideo:"Carica video",yourAccount:"Il tuo account",filters:{search:"
1Cerca...",tenorSearch:"Cerca Tenor",sort:"Ordina per",filterBy:"Filtra per",pixabaySearchPlaceholder:"Cerca immagini su pixabay",pixabaySearchVideosPlaceholder:"Cerca video su pexels",poweredBy:"Video forniti da"},learnHow:"Scopri come",done:"Fatto",bith:"Bith.ai",shortSignUp:"Registrati",shortSignIn:"Accedi",language:"عربي",en:"EN",ar:"AR",upload:"Carica",continueEditing:"Continua a modificare",continue:"Continua",signup:"Registra un account",login:"Accedi",home:"Home",contactUs:"Contattaci",terms:"Termini e condizioni",privacy:"Politica sulla privacy",error_url:"/illustrazioni/404_Immagine.svg",home_page:"Pagina iniziale",save:"Salva",soon:"Presto",new:"Nuovo",or:"o",socialLabel:"Accedi con",imagesValidation:{typeNotAllowed:"Puoi caricare solo foto di copertina JPG/PNG",coverLarge:"La dimensione della foto di copertina deve essere inferiore o uguale a 2MB"},normalImagesValidation:{typeNotAllowed:"Puoi caricare solo foto di copertina JPG/PNG",large:"La dimensione dell'immagine deve essere inferiore o uguale a 2MB"},showMore:"Mostra di pi\xf9",connect:"Connetti",connected:"Connesso",noResults:"Nessun risultato trovato",validations:{shortRequired:"(Obbligatorio)",required:"Questo campo \xe8 obbligatorio",invalidUrl:"URL non valido",invalidSocialMediaHandle:"Manejo di rete sociale non valido",messageDynamic:e=>"Il file \xe8 pi\xf9 grande di ".concat(e," MB")},confirmationAlert:{no:"No",yes:"S\xec"},fileTypeNotSupported:e=>{let{videoType:t}=e;return"Il formato del file ".concat(t," non \xe8 supportato.")},sizeLimit:"Spiacenti, il file caricato ha superato il limite di dimensione.",sizeLimitMaxDescription:"La dimensione massima per il caricamento dei media \xe8",maxSizeLimit:"200 MB",remove:"Rimuovi",delete:"Elimina",cancel:"Annulla",close:"Chiudi",move:"Sposta",restore:"Ripristina",time:{mins:e=>1===e||e>10?"Min":"Minuti",minsMobile:"m",secs:e=>1===e||e>10?"Sec":"Secondi",hours:e=>1===e||e>10?"Ora":"Ore",days:e=>1===e||e>10?"Giorno":"Giorni"},minutes:e=>1===e||e>10?"Minuto":"Minuti",seconds:e=>1===e||e>10?"Secondo":"Secondi",credits:e=>"Crediti",perEdit:"/Modifica",oneTime:"(Una tantum)",upgradeToPro:"Passa a Pro",upgradePlan:"Aggiorna piano",upgrade:"Aggiorna",downgrade:"Declassa",generateClips:"Genera",generateAVideo:"Genera un video",clips:"Clip",processing:"Elaborazione",continueGenerating:"Modifica script",editScenes:"Modifica video",showLess:"Mostra meno",poweredby:"Offerto da",proceed:"Procedi",paidFeature:"Funzione a pagamento",download:"Scarica",generateImage:"Genera nuova immagine",generateImageShort:"Genera immagine",generateScene:"Genera video",generateVideo:"Genera nuovo video",generateVideoShort:"Genera video",editVideo:"Modifica",share:"Condividi",copyShared:"Copia link condiviso",addCredits:"Aggiungi crediti",images:e=>"Immagini",copy:"Copia",copied:"Copiato",creditsUsed:"Crediti utilizzati",and:"e",backToMenu:"Torna al menu principale",videoPopup:{showDetails:"Dettagli video",showVideo:"Mostra video"},somethingWentWrong:"Qualcosa \xe8 andato storto",empty:{videos:"Nessun video creato ancora!",scenes:"Nessuna scena creata ancora!",images:"Nessuna immagine creata ancora!"},useTemplate:"Usa modello"},account:{dropDown:{accountSettings:"Impostazioni account",logout:"Logout"}},signUp:{title:"Crea un nuovo account",fields:{username:{label:"Nome utente",illegal_chars:"Il nome utente contiene caratteri illegali.",minUserNameMessage:"Il nome utente non deve essere inferiore a 5 caratteri.",maxUserNameMessage:"Il nome utente non deve superare i 24 caratteri."},email:{label:"Email"},password:{label:"Password",password_illegal_chars:"Si prega di seguire le regole della password",password_rules:"Si prega di seguire le regole della password"},confirm_password:{label:"Password",password_validation:"La password non corrisponde."},emailMarkiting:{label:"Voglio ricevere notizie, aggiornamenti sulle funzionalit\xe0, sconti e offerte da Bith.AI"},terms:{label:"Riconosco di aver letto il ",label2:"e accetto il "}},actions:{submit:"Crea account",login:"Hai gi\xe0 un account?",login1:"Accedi",continueWithEmail:"Continua con l'email"}},login:{title:"Accedi al tuo account",socialTitle:"Benvenuto su BithAI",forgotPassword:"Hai dimenticato la password?",fields:{email:{label:"Email",errors:{required:"Questo campo \xe8 obbligatorio"}},password:{label:"Password",errors:{required:"Questo campo \xe8 obbligatorio."}}},actions:{submit:"Accedi",signUp:"Non hai ancora un account?",social:"Accedi con il tuo account social",continueWithEmail:"Accedi manualmente"}},contactUs:{info:"Informazioni di contatto",email:"Email",social:"Resta sociale"},help:{layout:{title:"Bith.ai",pages:{terms:"Termini e condizioni",privacy:"Politica sulla privacy",guide:"Guida Bith"}}},validations:{email:{illegal:"L'email inserita \xe8 illegale.",invalid:"L'email inserita non \xe8 valida."},required:"Questo campo \xe8 obbligatorio",maxTextLength:"La lunghezza del testo deve essere inferiore a 255 caratteri",minTextLength:"La lunghezza del testo deve essere superiore a 5 caratteri",maxTextLengthDynamic:e=>"La lunghezza del testo deve essere inferiore a ".concat(e," caratteri"),minTextLengthDynamic:e=>"La lunghezza del testo deve essere superiore a ".concat(e," caratteri"),maxNumberDynamic:e=>"Massimo ".concat(e),minNumberDynamic:e=>"Minimo ".concat(e),oneFieldIsRequiredAtLeast:"\xc8 richiesto almeno un campo",textFieldsMin:e=>"La lunghezza del testo deve essere superiore a ".concat(e," caratteri per tutti i campi combinati"),textFieldsMax:e=>"La lunghezza del testo deve essere inferiore a ".concat(e," caratteri per tutti i campi combinati")},socialLogin:{facebook:"Facebook",twitter:"Twitter",google:"Google",discord:"Discord",twitch:"Twitch",apple:"Apple"},appBanner:{title:"Scarica l'app BithAI",subTitle:"Scarica l'app BithAI",action:"Installa"},resizer:{layers:{source:"Dopo:",before:"Prima:"}
1,compileActions:{continueEditing:"Continua a modificare",skip:"Salta modifiche",skipDescription:"(Senza modifiche)",compile:"Modifica e carica",next:"Avanti"},importFaild:{title:"Importazione del file non riuscita",upload:"Carica"},editorSettings:{faceCam:"FaceCam:",outlinesBefore:"Contorni:",outlineAfter:"Contorni:",original:"Originale",output:"Output"},outputSettings:{aspectRatio:"Seleziona dimensione",fps:"Frame per secondo (FPS):",quality:"Qualit\xe0:"},preview:{title:"Clicca qui per",description:"Ridimensiona magicamente"},templates:{action:"Cambia layout",modal:{title:"Scegli layout",description:"Converti il tuo video nelle dimensioni desiderate."}},resetChanges:"Reimposta modifiche"},socialMediaDistribution:{connectedAccounts:"Account connessi",action:"Connetti account",disconnect:"Disconnetti account",selectPage:"Seleziona pagina",unSelectPage:"Deseleziona pagina",tiktokNote:"Riceverai una notifica dall'app TikTok sul tuo dispositivo mobile per continuare il flusso di pubblicazione da l\xec.",needMobileInstallation:"Una volta pubblicato, dovrai continuare a pubblicare il video dal tuo stesso account sull'app mobile BithAI.",enable:"Abilita la pubblicazione su questo account connesso",publish:"Pubblica",publishDownload:"Pubblica e scarica",actions:{cancel:"Annulla",connect:"Connetti account"}},advancedEditor:{sideBar:{media:"Media",layers:"Livelli",text:"Testo",audio:"Audio",gifs:"GIF",videos:"Video",images:"Immagini",effects:"Effetti",subtitles:"Sottotitoli"},panels:{general:{title:"Generale",settings:"Corrispondenza sorgente",quality:"Risoluzione di esportazione",fps:"Frame per secondo (FPS)",bgColor:"Colore di sfondo"},timing:"Tempi",texts:{tabs:{textSettings:"Impostazioni testo",effects:"Effetti",timing:"Tempi"},title:"Impostazioni testo",editText:"Modifica testo",fontFamily:"Font",lockRatio:"Blocca rapporto",color:"Colore del font",outline:"Contorno del testo",off:"OFF",on:"ON",stroke:{title:"Tratto del testo",color:"Colore del tratto",width:"Larghezza"},background:{title:"Sfondo del testo",color:"Colore",corners:"Angoli",padding:"Padding",opacity:"Opacit\xe0"},effect:{textColor:"Colore del testo",backgroundColor:"Colore di sfondo"}},audio:{title:"Audio",volume:"Volume",noAudio:"Questo video non ha audio"},image:{title:"Immagine",tabs:{settings:"Immagine"}},video:{title:"Video",tabs:{settings:"Video"}},gifs:{title:"GIF"},shared:{layer:"Livello",delete:"Elimina",backward:"Indietro",forward:"Avanti",sendToFront:"Porta in primo piano",sendToBack:"Porta in secondo piano"},effects:{title:"Effetti box"},subtitle:{title:"Sottotitoli",applyToAll:"Applica impostazioni a tutti i sottotitoli"}},media:{switcher:{myLibrary:"La mia libreria",stock:"Stock",aiImages:"Immagini AI"}},texts:{tooltip:"Font che gestisce testo in inglese e arabo",actions:{english:"Inglese",arabic:"Arabo"}},subtitles:{title:"Sottotitoli",generate:"Genera sottotitoli",selectLanguage:"Seleziona lingua manualmente",language:"Lingua",original:"Lingua",translate:"Traduci in (opzionale)",translatePlaceholder:"Nessuna traduzione - Usa lingua originale...",transcriptionLeft:"di trascrizione rimanente",selectLanguageError:"Si prega di selezionare una lingua",generating1:"Attendere prego",generating:"Stiamo generando i tuoi sottotitoli",noTranscriptionError:"Nessuna trascrizione trovata",settings:{title:"Impostazioni sottotitoli",grouped:"Raggruppati",single:"Singolo"},addNew:"Aggiungi nuovo sottotitolo",addError:"Non puoi aggiungere sottotitoli fuori dalla durata del video",tabs:{subtitles:"Sottotitoli",options:"Opzioni"},delete:{title:"Elimina sottotitoli",description:"Sei sicuro di voler eliminare i sottotitoli per questo video?"},downloadSrt:"Scarica file SRT"},audio:{sound:{title:"Suoni"}},images:{title:"Immagini",tabs:{filled:"Pieno",transparent:"Trasparente"}},videos:{title:"Video"},gifs:{title:"GIF"},disclaimer:{title:"Il video sembra sfocato?!",description:"riduce la risoluzione del video nell'editor in modo da poter godere di un'esperienza di modifica e riproduzione pi\xf9 veloce. Non preoccuparti, la risoluzione originale del video verr\xe0 utilizzata quando condividerai.",durationLimitTitle:"Avviso di durata",durationLimit:"Il clip non deve superare 1 minuto"},tooltips:{split:{title:"Dividi",shortCut:{mac:"S",wind:"S"}},undo:{title:"Annulla",shortCut:{mac:"Cmd + Z",wind:"Ctrl + Z"}},redo:{title:"Ripeti",shortCut:{mac:"Cmd + Shift + Z",wind:"Ctrl + Shift + Z"}},play:{title:"Riproduci",shortCut:{mac:"Spazio",wind:"Spazio"}},pause:{title:"Pausa",shortCut:{mac:"Spazio",wind:"Spazio"}},duplicate:{title:"Duplica"},delete:{title:"Elimina",shortCut:{mac:"Backspace",wind:"DEL"}},zoomIn:{title:"Ingrandisci",shortCut:{mac:"Cmd + Rotellina su",wind:"Ctrl + Rotellina su"}},zoomOut:{title:"Riduci",shortCut:{mac:"Cmd + Rotellina gi\xf9",wind:"Ctrl + Rotellina gi\xf9"}},zoomToFit:{title:"Adatta allo schermo"}},commingSoon:"Presto",uploadFlow:{backToMagicResizer:"Torna al ridimensionatore magico",steps:{resizer:"Ridimensionatore",editor:"Modifica",share:"Condividi"},actions:{editAndUpload:"Modifica e condividi"}},timeLine:{openTimeLine:"Apri la linea temporale",limitationPopup:{title:'Spiacenti, hai superato il limite di durata della timeline di "10 minuti", eventuali modifiche apportate dopo questa durata non saranno incluse nel tuo video.',actions:{cancel:"Torna alla modifica",ok:"Esporta comunque"}}}},homeMobile:{superWindow:{info:"il software di editing video pi\xf9 semplice",title:"Creazione di contenuti ",title2:"Resa facile",title3:" ",description:"BithAI \xe8 un editor video gratuito all-in-one per portare i tuoi contenuti al livello successivo",description2:"",desktop:"Disponibile solo su desktop",downloadApp:"Scarica l'app"},resize:{title:"Ridimensiona",description:"Usa il ridimensionatore magico di BithAI per convertire i tuoi video da 16:9 a qualsiasi formato, convertirli in formati adatti per Instagram Reels/Stories/Post a Youtube Shorts e persino TikTok."},edit:{title:"Modifica",description:"Aggiungi un tocco ai tuoi clip utilizzando le varie funzionalit\xe0 disponibili nello Studio Bith, aggiungi testo/immagini/video al tuo video per far risaltare i tuoi contenuti."},publish:{title:"Pubblica",description:"Utilizzando gli strumenti di Bith puoi caricare direttamente i tuoi contenuti su tutte le tue piattaforme di social media preferite con un solo clic!"}},headerLayout:{howItWorks:"Come funziona",features:"Perch\xe9 Bith.ai",apps:"Le nostre app",learn:"Impara",welcome:"Benvenuto ",comma:",",tools:"Strumenti AI",pricing:"Prezzi",proCreator:"Piano Pro",freePlan:"Piano gratuito",editor:"Editor video"},home:{hero:{create:"CREA",videos:"VIDEO",images:"IMMAGINI",audios:"AUDIO",in:"IN",seconds:"SECONDI",subtitle:"Un Posto - Tutti i Modelli IA",getStarted:"Inizia"},create:{title:"CREA",video:"Video",image:"Immagine",audio:"Audio"},superWindow:{title:"Crea contenuti senza sforzo con ",title1:"Magia AI",description:"Trasforma le tue idee in video coinvolgenti, immagini e altro in pochi secondi",action:"Inizia",howItWorks:"Come funziona"},howItWorks:{title:"Come funziona?"}
1,whyBit:{title:"Perch\xe9 Bith.ai?"},signup:{title:"Non hai ancora un account?",looking:"Vuoi diventare un creatore di contenuti?",start:"Inizia oggi stessa la tua avventura!",action:"Registrati"},downloadApp:{title:"Completa la tua esperienza sulla nostra app mobile",description:"\xc8 un fatto noto che un lettore sar\xe0 distratto dal contenuto leggibile."},creativeStudio:{title:"La tua suite creativa completa",description:"Sblocca infinite possibilit\xe0 con la nostra piattaforma intuitiva, progettata per semplificare il tuo percorso di editing video. Ridimensiona le dimensioni del tuo video, aggiungi sottotitoli utilizzando l'AI e incorpora facilmente immagini, video, audio e GIF con pochi clic.",editorText:"Editor video Bith",disclaimer:"Questa funzione \xe8 accessibile su schermi pi\xf9 grandi. Passa a un desktop o laptop per la migliore esperienza."},gallery:{title:"Galer\xeda Inspiradora",exploreMore:"Explorar m\xe1s"}},pricing:{title:"Scegli un piano che fa per te!",popupTitle:"Nuove modifiche ai piani",pricing:"Prezzi",description:"Crea pi\xf9, in meno tempo.",monthly:"Mensile",yearly:"Annuale",saving:"2 mesi gratuiti",pro:"Pro",free:"Gratuito",aiTools:"Strumenti AI",recommended:"Consigliato",tabs:{bundles:"Pacchetti",creditsPack:"Pacchetto Crediti"},planCard:{popular:"Popolare",mostChosen:"La pi\xf9 scelta",selectPlan:"Seleziona Piano",startNow:"Inizia ora",currentPlan:"Piano Corrente",unavailable:"Non disponibile",notAvailableFromCurrentPlan:"Non disponibile dal tuo piano attuale",upgrade:"Aggiorna",downgrade:"Declassa",creditsPerMonth:"crediti",ugcVideoPerMonth:"video UGC",ugcVideosPerMonth:"video UGC",perMonth:"/ mese",switchTo:"Cambia piano",scheduledNextCycle:"Pianificato per il prossimo ciclo"},creditPack:{credits:"Crediti",purchase:"Acquista",validityNote:"Validi per 90 giorni dalla data di acquisto"},faqs:{title:"Domande frequenti"},aiTitle:"Seleziona la dimensione del pacchetto di crediti preferita:",automateAround:"Pu\xf2 automatizzare circa",aiVideos:"video AI",plansDisclaimer:"Si prega di notare che i crediti acquistati sono accessibili solo finch\xe9 la tua abbonamento rimane attivo.",creditsRolloverNotice:"I crediti non vengono trasferiti tra i cicli di fatturazione",oneTimePaymentDisclaimer:"Si prega di notare che i crediti acquistati sono accessibili solo finch\xe9 la tua abbonamento rimane attivo.",legacyPlan:{title:"Il tuo piano attuale \xe8 {planTitle} (Legacy)",description:"*Questo \xe8 un piano legacy che non \xe8 pi\xf9 disponibile per i nuovi clienti. Puoi mantenere questo piano a tempo indeterminato o passare ai nostri nuovi piani.",creditsPerMonth:"Crediti/mese",features:{fullAccessToAITools:"Accesso completo agli strumenti IA",proAccessToVideoEditor:"Accesso Pro all'editor video",aiSubtitleGenerator:"Generatore di sottotitoli IA",minutes:"{minutes} Minuti",storage:"Archiviazione ({storage} GB)",customerSupport:"Supporto clienti"}}},footer:{aboutUs:"Chi siamo",contactUs:"Contattaci",terms:"Termini e condizioni",privacyPolicy:"Politica sulla privacy",bithGuide:"Guida di Bith"},footerLayout:{links:{title:"Link",about:"Informazioni su Bith.ai",terms:"Termini e condizioni",privacy:"Politica sulla privacy",pricing:"Prezzi"},help:{title:"Aiuto",learn:"Impara",tools:"Strumenti",faqs:"Domande frequenti",contactUs:"Contattaci",bithAi:"Bith.AI"},getinTouch:{title:"Mettiti in contatto"},partners:{title:"Partner"},rights:"\xa9 Tutti i diritti riservati. Bith.ai"},authFlowLayout:{info:{title:"Funzionalit\xe0 di Bith TV",free:"Gratuito",noWatermark:"Senza filigrana",online:"Online",distribution:"Distribuzione"},actions:{back:"Torna alla home"},signUp:{action:"Crea account"},ugc:{title:"Video UGC",subtitle:"Crea video promozionali realistici pronti da pubblicare — senza riprese o montaggio"},termsNotice:"Continuando, accetti i nostri Termini di utilizzo e l'Informativa sulla privacy."},passwordReco:{sendEmail:{title:"Reimposta la tua password",formFields:{email:"Email"},actions:{submit:"Reimposta",redirectTitle:"Hai un account?",redirect:"Accedi"},success:"Successo! Controlla ora la tua email"},reset:{title:"Crea una nuova password",formFields:{newPassword:"Nuova password"},actions:{submit:"Cambia password"},success:{title:"La tua password \xe8 stata reimpostata con successo.",action:"Accedi"}}},studio:{sidebars:{images:{title:"Immagini"},videos:{all:"Tutti i video",original:"Non modificati",inProgress:"In corso",readyToPublish:"Pronto per la pubblicazione",published:"Esp
1ortato",deletedVideos:"Video eliminati"},account:{title:"Impostazioni",accountSettings:"Impostazioni account",notificationsSettings:"Impostazioni notifiche",billingSettings:"Impostazioni di fatturazione",connectionSettings:"Impostazioni di connessione"},connections:{title:"Piattaforme",connect:"Connetti"},storage:{storageUsed:"Spazio utilizzato",storageRemaining:"Spazio",upgrade:"Aggiorna"},main:{myStudio:"Home",videos:"Video",folders:"Cartelle",watchAndLearn:"Guarda e impara",deleted:"Eliminati",aiStudio:"AI Studio",mainStudio:"Studio creativo",imageGenerator:"Immagini",voiceovers:"Audio"},minutes:{title:"Crediti utilizzati",remaining:"Crediti",upgrade:"Aggiungi crediti",total:"Crediti totali",add:"Aggiungi"},helpCenter:{title:"Centro assistenza"}},shell:{header:{home:"Home"},sidebar:{home:"Home",library:"Libreria",templates:"Modelli",apps:"App",tools:"Strumenti",more:"Altro",less:"Meno",pin:"Fissa",unpin:"Rimuovi",recentSessions:"Sessioni recenti",sessions:"Sessioni",newSession:"Nuova sessione",untitledSession:"Sessione senza titolo"}},library:{tabs:{videos:"Video",images:"Immagini",audio:"Audio",folders:"Cartelle",deleted:"Eliminati"},inProgressAlert:"Ti avviseremo via email quando il tuo video sar\xe0 pronto!"},account:{settings:{title:"Impostazioni account"},info:{title:"Informazioni account",changeImage:"Cambia immagine",remove:"Rimuovi",formFields:{username:{label:"Nome utente"},email:{label:"Email"}},action:"Salva"},changePassword:{title:"Cambia password",formFields:{newPassword:{label:"Nuova password"},confirmNewPassword:{label:"Conferma nuova password"},password:{label:"Vecchia password"}},success:{message:"Password aggiornata con successo"},action:"Salva"},preferences:{title:"Preferenze",theme:"Tema chiaro",language:"Lingua"}},videoModal:{actions:{create:"Crea una nuova modifica",continue:"Continua a modificare",start:"Inizia a modificare",download:"Scarica",editAgain:"Duplica e modifica",edit:"Modifica video"}},videosDropDown:{edit:"Modifica",duplicate:"Duplica",publish:"Pubblica",schedule:"Pianifica",download:"Scarica",move:"Sposta",rename:"Rinomina",delete:"Elimina"},deletedVideosDropDown:{restore:"Ripristina",deletePermanently:"Elimina definitivamente"},sort:{name:"Nome A-Z",dateCreated:"Data di creazione",dateModified:"Data di modifica"},videosDetailsBar:{videoTitle:"Titolo del video",size:"Dimensione",status:"Stato",lastEdited:"Ultima modifica"},empty:{title:"Non hai ancora video!",description:"Clicca il pulsante qui sotto per creare il tuo primo video",video_editor:{title:"Non hai ancora video!",description:"Clicca il pulsante qui sotto per creare il tuo primo video"},audio:{title:"Non hai ancora audio!",description:"Clicca il pulsante qui sotto per creare il tuo primo audio"},image:{title:"Non hai ancora immagini!",description:"Clicca il pulsante qui sotto per creare la tua prima immagine"},text_to_video:{title:"Non hai ancora video!",description:"Clicca il pulsante qui sotto per generare il tuo primo video"},deleted:{title:"Il cestino \xe8 vuoto",description:"Clicca il pulsante qui sotto per creare un nuovo video"},ai:{title:"Non hai ancora video!",description:"Clicca il pulsante qui sotto per generare il tuo primo video"},text_to_scene:{title:"Non hai ancora video!",description:"Clicca il pulsante qui sotto per creare la tua prima scena"},quote_to_video:{title:"Non hai ancora video!",description:"Clicca il pulsante qui sotto per generare il tuo primo video"}},createVideo:{headerActions:{continueToEdit:"Continua a modificare",publish:"Esporta video",exportSettings:{title:"Impostazioni di esportazione"}}},main:{videos:{title:"Video",viewAll:"Visualizza tutti i video",createAVideo:"Modifica nuovo video"}
1,home:{heroHeadline:"Tutto ci\xf2 che ti serve per creare, in un unico posto",appsTitle:"App",toolsTitle:"Strumenti",lastVideosTitle:"Ultimi video",viewAll:"Vedi tutto",templatesHeadline:"Parti da modelli collaudati, non da zero.",browseAllTemplates:"Sfoglia tutti i modelli"},folders:{title:"Cartelle",viewAll:"Visualizza tutte le cartelle",newFolder:"Nuova cartella"},watchAndLearn:{title:"Guarda e impara",viewAll:"Visualizza tutti i video"},tools:{title:"COSA CREERAI OGGI?",description:"Trasforma le tue immagini con IA per creare video accattivanti",viewAll:"Visualizza tutti gli strumenti",action:"Esplora tutti gli strumenti"},apps:{title:"App"}},notificationsSettings:{transactionalEmails:"Ricevi email transazionali",promotionalEmails:"Ricevi email promozionali"},superWindow:{carousel:{title:"Testo a video",title1:"Generatore AI",description:"Il rivoluzionario generatore di video AI da testo \xe8 progettato per la nuova era dei creatori senza volto. Trasforma le tue idee in video accattivanti con pochi clic."}},useCases:{title:"Cosa stanno creando gli utenti",popup:{prompt:"Prompt:",prefix:"",script:"Script",aiModule:"Modulo di generazione immagini:"}},accountDropdown:{settings:"Impostazioni account",notificationSettings:"Impostazioni notifiche",billingSettings:"Impostazioni di fatturazione",lightTheme:"Tema chiaro",language:"Lingua",help:"Aiuto",faqs:"FAQ",terms:"Termini e condizioni",privacy:"Informativa sulla privacy",logout:"Logout"},notifications:{title:"Notifiche"}},studioBreadcrumbs:{studio:"Il mio studio",account:"Impostazioni account",billing:"Impostazioni di fatturazione",connections:"Impostazioni di connessione",videos:"Video",all:"Tutti i video",original:"Non modificati","in-progress":"In corso","ready-to-publish":"Pronto per la pubblicazione",published:"Esportato",deleted:"Eliminati",exporting:"Esportazione",completed:"Completato",processing:"In corso","processing-promo-video":"In corso"},folders:{new:"Nuova cartella",create:{title:"Nuova cartella",createFolderModal:{title:"Crea una nuova cartella",fields:{name:"Nome cartella"},actions:{cancel:"Annulla",create:"Crea"},success:{title:"Hai creato con successo la tua cartella"}}},edit:{modal:{title:"Aggiorna cartella",fields:{name:"Nome cartella"},actions:{cancel:"Annulla",update:"Aggiorna"},success:{title:"Hai aggiornato con successo il nome della tua cartella"}}},move:{title:'Sposta "',to:'" a',done:"Spostato a"},delete:{title:"Sei sicuro di voler eliminare questa cartella?"}},videos:{edit:{modal:{title:"Aggiorna video",fields:{name:"Nome video"},actions:{cancel:"Annulla",update:"Aggiorna"},success:{title:"Hai aggiornato con successo il nome del tuo video"}}},delete:{header:"Elimina",title:"Vuoi davvero eliminare questo video?",success:{title:"Hai eliminato con successo il tuo video"}},deletePermanently:{header:"Elimina",title:"Vuoi davvero eliminare definitivamente questo video?",success:{title:"Hai eliminato con successo il tuo video"}},restore:{header:"Ripristina",title:"Vuoi davvero ripristinare questo video?",success:{title:"Hai ripristinato con successo il tuo video"}},duplicate:{modal:{title:"Duplica video",fields:{name:"Nome video"},actions:{cancel:"Annulla",update:"Duplica"},success:{title:"Hai duplicato con successo il tuo video"}}},deletionWithin:"Eliminazione entro:"},createVideo:{uploadModal:{import:{title:"Importa da un link",inputPlaceholder:"Incolla qui il tuo link YouTube, Twitch o Facebook...",aiInputPlaceholder:"Incolla qui il tuo link YouTube...",action:"Incolla",try:"Prova link di esempio",error:"Inserisci un link valido"},upload:{title:"Carica un file",dragBox:"Trascina e rilascia il tuo file qui",or:" O ",browse:"sfoglia ",dragBox1:" per scegliere un file"},errors:{header:"Oops",title:"Non siamo in grado di gestire video senza ",title1:"audio ",title2:"al momento. Stiamo lavorando per risolvere questo problema presto.\uD83E\uDD29",close:"Chiudi"},noDimensions:{header:"Oops",title:"Questo tipo di video non \xe8 riproducibile su questo browser, puoi usare",title1:"il browser Chrome ",title2:"per poter modificare questo video. \uD83E\uDD29",close:"Chiudi"},size:{title:"Dimensione massima del video: ",title1:"250 MB",message:"Il file \xe8 pi\xf9 grande di 250 MB"},sizePro:{title:"Dimensione massima del video: ",title1:"2 GB",message:"Il file \xe8 pi\xf9 grande di 2 GB"},smartClipperSize:{title:"Dimensione massima del video: ",title1:"10 GB",message:"Il file \xe8 pi\xf9 grande di 10 GB"},aspectRatio:{header:"Oops",title:"Dimensioni del video non compatibili, ",title1:"le dimensioni consentite sono",title2:"16:9 e 9:16",close:"Chiudi"}},editor:{title:"Modifica"},publisher:{title:"Esporta",loading:"Si prega di essere pazienti poich\xe9 questo processo potrebbe richiedere diversi minuti",videoInfo:{title:{label:"Titolo",placeholder:"Titolo"}},actions:{download:"Scarica",removeWatermark:"Scarica senza filigrana",newVideo:"Crea un nuovo video",editAgain:"Duplica e modifica",editThisVideo:"Modifica questo video",back:"Torna allo studio"},socialMediaDistribution:{title:"Pubblica su",action:"Pubblica"},tips:{title:"Lo sapevi?"},help:{title:"Hai problemi, hai feedback o vuoi rimanere aggiornato con tutti i nostri ultimi annunci?",redirect:"Unisciti al nostro 
1server Discord."}},resizer:{title:"Ridimensiona",description:"La maggior parte dei contenuti viene consumata su dispositivi mobili, rendi i tuoi contenuti adatti ai dispositivi mobili ridimensionando il loro rapporto d'aspetto.",projectSettings:{title:"Impostazioni",videoSize:{title:"Dimensioni video",reset:"Reimposta"},eligiblePlatforms:{title:"Piattaforme idonee",and:" e ",more:" Altro",maxDuration:"Durata massima:",unlimited:"Illimitato"},faceCam:{title:"Facecam",options:{off:"Off",rectangle:"Rettangolo",circle:"Cerchio",rounded:"Arrotondato"},stroke:{style:"Stile del tratto",color:"Colore del tratto",animated:"Tratto animato"}},background:{title:"Sfondo sfocato",color:"Colore di sfondo"},safeZone:{title:"Zona sicura del video",description:"Questo serve solo a mostrare dove si trovano le icone dei social media e non sar\xe0 visibile nel video esportato"}}}},learn:{title:"Impara",latest:"Ultimi articoli",featured:"In primo piano",share:"Condividi",keywords:"Parole chiave",createSection:{title:"Vuoi diventare un creatore di contenuti? Carica il tuo primo video!"},relatedArticles:{title:"Articoli correlati"}},socialAuth:{facebook:"Continua con Facebook",google:"Continua con Google",twitch:"Continua con Twitch",apple:"Continua con Apple"},exportStatus:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",step:e=>"Passo ".concat(e,"/7"),in_queue:"Attendi, il tuo video \xe8 in coda",processing:"Attendi, il tuo video \xe8 in coda",trimming:"I nostri robot stanno tagliando il tuo video",resizing:"I nostri robot stanno ridimensionando il tuo video",adding_layers:"I nostri robot stanno aggiungendo le modifiche al tuo video",adding_audios:"I nostri robot stanno aggiungendo le modifiche al tuo video",completed:"Attendi mentre finalizziamo il video finale",info:"Puoi modificare altri video mentre il tuo video viene esportato"},back:{title:"Sei sicuro di voler tornare indietro?",description:"Eventuali modifiche apportate andranno perse.",action:"Torna al ridimensionatore"},uploadNotCompleted:{title:"Sei sicuro di voler lasciare?",description:"Eventuali modifiche apportate andranno perse.",action:"S\xec"},tools:{title:"Strumenti",description:"Usa i nostri strumenti per aggiungere testo, immagini, video e altro ai tuoi video",callToAction:{weHope:"Speriamo che ti piaccia usare gli strumenti BITH",cantWait:"Non vediamo l'ora di vedere cosa inventerai!"},step:"Passo ",moreTools:"Prova altri strumenti"},mediaAssets:{asset:{video:"Video",image:"Immagine",audio:"Audio",gif:"Gif",empty:{title:"Non hai ancora",video:" video ",image:" immagini ",gif:" gif ",audio:" audio ",title1:"!",info:"Usa uno dei Bith",info1:"o carica il tuo"},uploadSuccess:{title:"Il tuo ",title1:"\xe8 stato caricato con successo"},edit:{title:"Aggiorna ",fields:{name:" nome"},actions:{cancel:"Annulla",update:"Aggiorna"},success:{title:"Hai aggiornato con successo il tuo ",title1:" nome"}},delete:{header:"Elimina",title:"Vuoi davvero eliminare questo ",imageTitle:"Vuoi davvero eliminare questa ",title1:"?",success:{title:"Hai eliminato con successo il tuo"}}}},proPlanPopup:{title:"Aggiorna il tuo piano oggi e rendilo ancora pi\xf9 facile",watermark:"Rimuovi l'etichetta d'acqua aggiornando il tuo piano oggi"},checkoutModal:{welcome:"Benvenuto su BithAI",continueGoogle:"Continua con Google",continueEmail:"Continua con l'email",or:"o",summaryTitle:"Dettagli dell'abbonamento",summaryTitleCredits:"Dettagli dell'acquisto",creditPackName:e=>"".concat(Number(e).toLocaleString("it")," Crediti"),creditPackValidityDays:"90",creditPackValidityLabel:"giorni dopo l’acquisto",paymentTitle:"Dettagli di pagamento",scrollToBottom:"Scorri in basso",continueToPayment:"Continua al pagamento",update:"Aggiorna",upgradeNow:"Passa al piano superiore",buyNow:"Acquista ora",amountDueToday:"Importo dovuto oggi",amountDueNow:"Importo dovuto ora",totalCreditsAvailable:"Totale crediti disponibili",creditsFromCurrentPlan:"Crediti del tuo piano attuale",extraCreditsFromUpgrade:"Crediti extra dall'upgrade",subscriptionType:"Tipo di abbonamento",creditsPerInterval:()=>"crediti / mese",ugcPerInterval:e=>"video UGC / mese",savePercent:e=>"Risparmia ".concat(e,"%"),total:"Totale",taxIncluded:"(Tasse incluse)",autoRenew:(e,t,i)=>null!=i&&""!==i?"Il tuo abbonamento si rinnover\xe0 automaticamente il ".concat(e," per $").concat(i," e i tuoi crediti torneranno a ").concat(Number(t).toLocaleStr
1ing("it")," crediti"):"Il tuo abbonamento si rinnover\xe0 il ".concat(e," e i tuoi crediti torneranno a ").concat(Number(t).toLocaleString("it")," crediti"),payTodayThen:(e,t,i,o)=>"Oggi pagherai $".concat(e,", poi $").concat(t," ").concat(i," a partire dal ").concat(o,"."),addDiscount:"Aggiungi codice sconto",apply:"Applica",discountInvalid:"Codice sconto non valido",discountApplied:(e,t)=>"Sconto applicato. Hai risparmiato $".concat(e," (").concat(t,"%) su questo piano."),taxIncludedWithDiscount:"(Tasse e sconto inclusi)",planPrice:"Prezzo del piano",discountValue:"Valore dello sconto",removeDiscount:"Rimuovi codice sconto",subscribeNow:"Abbonati ora",confirmChangeTitle:e=>e?"Conferma l’upgrade":"Conferma il cambio di piano",confirmChangeBody:"Conferma per applicare questo cambio di piano. Qualsiasi importo dovuto oggi verr\xe0 addebitato sul metodo di pagamento salvato.",success:{title:e=>e?"I tuoi punti sono pronti":"Abbonamento completato",body:(e,t)=>e?"I tuoi ".concat(Number(t).toLocaleString("it")," punti sono pronti per essere utilizzati."):"Il tuo nuovo saldo punti \xe8 pronto all'uso.",upgradeTitle:"Hai aggiornato il tuo piano",changedPlanTitle:"Hai cambiato piano",startNow:"Inizia ora"}},paymentFlowPopup:{totalPayment:"Pagamento totale",totalWithTax:"Totale (tasse incluse)",stepper:{selectPlan:"Seleziona piano",selectPackage:"Aggiungi crediti",review:"Rivedi",payment:"Pagamento"},selectPlan:{title:"Scegli uno:",saving:"(risparmia 17%)",summerSale:"(Saldi estivi 40%)",winterSale:"(Saldi invernali 40%)"},oneTimePurchase:{title:"Aumenta il tuo limite!"},review:{title:"Dettagli dell'acquisto:",description:{description1:"Il tuo abbonamento pro si rinnover\xe0 per",on:"il",reset:"e i tuoi crediti verranno reimpostati a",description2:"Hai domande?",contact:"Contatta il nostro team di supporto.",upgrade:"Sarai addebitato",upgrade1:"immediatamente per l'importo proporzionale dovuto al cambio del piano.",chargedProrationBeforeAmount:"Addebito di ",chargedProrationAfterAmount:" oggi come commissione di upgrade rateizzata.",previewFetchError:"Impossibile caricare l'anteprima dell'upgrade."},payBy:"Paga con",ending:"Carta che termina con",creditSummary:{title:"Riepilogo crediti",creditsUsed:"Crediti utilizzati",creditsAvailable:"Crediti disponibili",renewsAt:"Si rinnova a",carriedOver:"Riportati",fromUpgrade:"Dall'upgrade"}},payment:{form:{country:{title:"Paese",placeholder:"Paese"},address:{title:"Indirizzo",placeholder:"Indirizzo"},city:{title:"Citt\xe0",placeholder:"es. Amman"}}},navigation:{back:"Indietro",next:"Avanti",cancel:"Annulla",changePlan:"Cambia piano",upgrade:"Aggiorna",downgrade:"Declassa"},success:{title1:"Congratulazioni!",title2:"Hai aggiornato al piano Pro",monthly:"Mensile",yearly:"Annuale",subscribedTitle:(e,t)=>"Ti sei abbonato con successo al piano ".concat(e," ").concat(t,"."),subscribedDescription:e=>"Ora hai accesso a tutte le funzionalit\xe0 di ".concat(e,". Clicca il pulsante qui sotto per iniziare a creare e divertirti!"),monthlyDescription:"Ora sei un creatore pro, clicca sul pulsante qui sotto per creare il tuo primo video con funzionalit\xe0 pro e divertiti!",pro:"Pro",credits:e=>"Hai ora aggiunto ".concat(e," crediti."),upgrade:"Hai cambiato il tuo piano Pro",upgradeDescription:"Ora hai",upgradeDescription1:" clicca sul pulsante qui sotto per continuare il tuo viaggio nel mondo dell'AI con gli incredibili strumenti AI che abbiamo, divertiti!",changedPlanDescription:e=>"Ora hai ".concat(e," crediti, clicca sul pulsante qui sotto per continuare il tuo viaggio nel mondo dell'AI con gli incredibili strumenti AI che abbiamo, divertiti!"),scheduledDowngradeTitle:"Il cambio di piano \xe8 stato programmato",scheduledDowngradeDescription:(e,t)=>"Avrai ".concat(e," crediti a partire dal ").concat(t," alla fine del tuo ciclo di fatturazione attuale. Fino ad allora, manterrai i vantaggi del tuo piano attuale. Clicca sul pulsante qui sotto per continuare.")},errors:{insufficientBalance:{title:"Saldo insufficiente",description:"Siamo spiacenti, ma la tua transazione non pu\xf2 essere elaborata in questo momento a causa di fondi insufficienti nel tuo account. Assicurati di avere fondi sufficienti disponibili per completare la transazione. Se hai bisogno di ulteriore assistenza, contatta il nostro team di supp
1orto. Grazie per la tua comprensione.",cancel:"Annulla"}},reActivate:{header:"Successo!",description:"Il tuo piano di abbonamento \xe8 stato riattivato con successo, puoi gestire il tuo abbonamento dalla schermata delle impostazioni di fatturazione."}},billing:{title:"Abbonamento",actions:{cancelPlan:"Annulla piano",changePlan:"Cambia piano",cancelScheduledDowngrade:"Annulla downgrade pianificato",cancelScheduledDowngradeConfirmation:"Sei sicuro di voler annullare il downgrade pianificato?"},nextPaymentOn:"Prossimo pagamento il",yourSubscriptionEndsAt:"Il tuo abbonamento termina il",scheduledDowngradeEffective:"Effettivo",scheduledChange:{title:"Cambio pianificato",downgradeTo:"Passaggio a",scheduledFor:"programmato per"},paymentMethod:"Metodo di pagamento",updatePaymentMethod:"Aggiorna metodo di pagamento",updatePaymentMethodModal:{success:"Metodo di pagamento aggiornato con successo."},billingHistory:{title:"Storico fatturazione",usd:"USD",table:{date:"Data",description:"Descrizione",amount:"Importo del pagamento",receipt:"Stampa ricevuta"}}},cancelSubscription:{title:"Ci dispiace vederti andare!",description:"Se hai un momento, ci piacerebbe sapere perch\xe9 hai deciso di passare al piano gratuito.",other:"Puoi dirci qual \xe8 l'altro motivo per cui stai annullando il tuo abbonamento?",actions:{cancel:"Annulla",submit:"Conferma annullamento",continueToCancellation:"Continua all'annullamento",cancelAnyWay:"Annulla comunque",back:"Indietro"},confirm:{title:"Conferma il tuo annullamento",description:"Sarai su un piano ",description2:" fino al",description1:"Dopo questa data non avrai la possibilit\xe0 di utilizzare le funzionalit\xe0 pro, sei sicuro di voler continuare?"},pastDueConfirmation:{title:"Conferma il tuo annullamento",description:"Il tuo abbonamento \xe8 scaduto, Non hai pi\xf9 accesso alle funzionalit\xe0 pro. Annullare l'abbonamento rimuover\xe0 in modo permanente tutti i benefici associati. Sei sicuro di voler procedere?"},congrats:"Congratulazioni!",discount:{title:"Ottieni uno sconto del 40% sul prossimo mese!",description:"Apprezziamo il tuo business! Ti offriamo uno sconto esclusivo del 40% per il tuo prossimo abbonamento mensile. Goditi il nostro servizio a un prezzo ridotto!",action:"Riscatta ora",success:"Il tuo prossimo abbonamento mensile avr\xe0 uno sconto del 40%"},freeMonth:{title:"Ottieni 2 mesi gratuiti solo per te!",description:"Vogliamo offrirti questa offerta per rimanere con noi, avrai pi\xf9 tempo per scoprire e provare le nostre funzionalit\xe0 pro sempre di pi\xf9!",action:"Accetta l'offerta",success:"Ora hai 60 giorni per provare le nostre funzionalit\xe0 pro sempre di pi\xf9"},successCancelation:{title:"Il tuo abbonamento \xe8 stato annullato",description:"Apprezziamo il tempo che hai trascorso con noi. Se decidi di tornare, saremo qui per darti il benvenuto. Grazie per aver fatto parte del nostro viaggio!"},preCancelAlert:{title:"Non perdere i tuoi crediti",description:"Annullare ora significa che tutti i crediti non utilizzati verranno persi. Tutti i crediti rimanenti scadranno anche automaticamente alla fine del tuo ciclo di fatturazione il ",description1:"Sei sicuro di voler procedere?",actions:{keepCredits:"Mantenere i crediti",cancelAnyway:"Annulla comunque"}}},planExpired:{title:"Oops! Il rinnovo del tuo abbonamento Pro Plan \xe8 fallito.",description:"Siamo spiacenti di informarti che il rinnovo del tuo abbonamento Pro Plan \xe8 fallito.",action:"Clicca qui per aggiornare il metodo di pagamento",popup:{title:"Aggiorna il tuo metodo di pagamento per continuare a godere dell'accesso al tuo abbonamento Pro. Clicca su 'Aggiorna' ora.",submit:"Aggiorna"}},waitlistPopup:{title:"Bith sta creando un nuovo strumento AI che render\xe0 la creazione di video ancora pi\xf9 semplice.",action:"Unisciti alla lista d'attesa per l'accesso anticipato"},mobileBanner:{title:"Disponibile solo su desktop"},trafficBanner:{title:"Ci scusiamo per eventuali disagi causati, poich\xe9 stiamo attualmente riscontrando un volume di traffico insolitamente elevato sul nostro sito web. Stiamo lavorando attivamente per risolvere questo problema."},shortCutsModal:{title:"Scorciatoie da tastiera",play:"Riproduci",pause:"Pausa",delete:"Elimina",split:"Dividi",undo:"Annulla",redo:"Ripeti",copy:"Copia",paste:"Incolla",duplicate:"Duplica",zoomIn:"Ingrandisci timeline",zoomOut:"Riduci timeline",nextFrame:"Fotogramma successivo",prevFrame:"Fotogramma precedente"},summerSale:{title:'Risparmia il 40% sul "Piano Pro" Saldi estivi, passa a Pro!',popup:{title:"Tutto ci\xf2 
1che devi fare \xe8 accedere al tuo account BITH per richiedere questo sconto!"}},winterSale:{title:'Risparmia il 40% sul "Piano Pro" Saldi invernali, passa a Pro!',popup:{title:"Tutto ci\xf2 che devi fare \xe8 accedere al tuo account BITH per richiedere questo sconto!"}},editTracker:{saving:"Salvataggio in corso...",finishSaving:"Le modifiche al video sono state salvate."},videosExpires:{title:"Attenzione utenti di Bith.ai, tutti i video caricati prima del 1 ottobre verranno eliminati il 15 ottobre!",upgrade:"Aggiorna",title1:"se non vuoi che i tuoi video vengano eliminati."},studioTools:{subtitles:{generate:"Genera sottotitoli",back:"Indietro",uploadingVideo:"Caricamento video in corso...",generatingSubtitles:"Generazione sottotitoli in corso..."}},notFound:{title:"Errore 404",description:"OOPs, questa pagina non esiste"},backWhileCompiling:{header:"Spiacenti",title:"Non puoi modificare il video durante il processo di esportazione, attendi mentre il video viene esportato",goHome:"Torna allo studio"},smartClipper:{upload:{title:"Strumento di ritaglio dei momenti salienti",description:"Uno strumento video AI generativo che riutilizza video lunghi in cortometraggi con un solo clic."},generate:{title:"Impostazioni del ritaglio dei momenti salienti",form:{fields:{language:{label:"Lingua originale del video",placeholder:"Lingua"},translateTo:{label:"Traduci in",placeholder:"Nessuna traduzione - Usa lingua originale..."},timeframe:{label:"Intervallo di tempo di elaborazione"},clipLength:{label:"Lunghezza preferita del clip"},keywords:{label:"Filtro per parole chiave (opzionale)",placeholder:"Aggiungi parole chiave, separate da virgole"}},actions:{back:"Indietro",submit:"Ottieni clip"}}},clips:{delete:{header:"Elimina",title:"Vuoi davvero eliminare questo clip?",success:{title:"Hai eliminato con successo il tuo clip"}}},processing:"Ti aggiorneremo via email una volta terminata l'elaborazione"},queueMessage:{you:"Sei",inQueue:"in coda",title:"Aggiorna il tuo piano e goditi la funzione di rendering prioritario",title1:"o puoi modificare altri video mentre il tuo video viene esportato"},textToVideo:{steps:{next:"Avanti",back:"Indietro"},script:{title:"Generatore di video",videoAspectRatioTitle:"Dimensioni video",videoAspectRatioSmallTitle:"(Rapporto d'aspetto)",videoAspectRatioDesc1:"* 9:16 per Instagram reels/story, Youtube shorts e Tiktok",videoAspectRatioDesc2:"* 16:9 per video YouTube",videoDurationTitle:"Durata del video",scriptLanguageTitle:"Lingua dello script",voiceoverGenderTitle:"Attore del voiceover",videoThemeTitle:"Tema del video",videoToneTitle:"Tono del video",advancedSettings:"Impostazioni avanzate",videoIdeaTitle:"Idea del video",videoIdeaPlaceholder:"Chi sono i PayPal Mafia?",videoScriptPlaceholder:"Incolla il tuo script...",videoIdeaPrefix:"",generateVideoButton:"Genera scene",generateScript:"Genera uno script",backgroundMusic:"Musica di sottofondo",zoomInAndOut:"Effetti di movimento",aiModule:"Modulo di generazione immagini",remainingCharacters:"caratteri rimanenti",backgroundMusicTooltip:"Deseleziona la casella se desideri aggiungere la musica di tendenza utilizzando le tue piattaforme di social media preferite.",zoomInAndOutTooltip:"Seleziona la casella se desideri effetti di movimento zoom in/out per ogni immagine generata. (Funzione a pagamento solo)",zoomInAndOutTooltipFree:"Seleziona la casella se desideri effetti di movimento zoom in/out per ogni immagine generata.",partner:"Voice Over offerto da",durationEstimate:"Durata stimata",edit:{generating:"Generazione dello script",generatingSubTitle:"Attendere prego mentre generiamo il tuo script.",title:"Rivedi la sceneggiatura",reset:"Reimposta",fields:{hook:{label:"Hook",placeholder:"Hook",tooltip:"L'hook del video \xe8 un breve inizio accattivante che invita gli spettatori a continuare a guardare."},body:{label:"Corpo",placeholder:"Hook",tooltip:"Il corpo del video \xe8 il contenuto principale che segue l'hook, presentando informazioni o narrazioni principali."},conclusion:{label:"Conclusione",placeholder:"Conclusione",tooltip:"La conclusione del video riassume i punti chiave e porta a termine il contenuto."}}
1,resetAlert:{title:"Sei sicuro di voler reimpostare le modifiche allo script?",actionText:"S\xec"},chartCount:e=>"di ".concat(e," caratteri"),loader:{generating:"Generazione del tuo script...",description:"questo potrebbe richiedere fino a 3 minuti. Grazie per la tua pazienza!"}},tabs:{prompt:"Idea del video",script:"Incolla il tuo script"},confirmation:{header:"Sei sicuro di voler procedere alla generazione del video?",title:"A seconda del prompt scelto, la durata del video sar\xe0 di circa",prompt:"Prompt del video:",script:"Script del video:",properties:"Propriet\xe0 del video:"},voiceOverLanguageRequired:"Si prega di specificare la lingua dello script",usage:{title:"Costo video:",disclaimer:"*I prezzi variano in base alla selezione"},credits:e=>"".concat(e," crediti"),visuals:{visualsSource:{title:"Scegli Immagini"},aiImages:{title:"Stile immagine AI"}},voiceOverSettings:{title:"Voce fuori campo",gender:"Genere della voce",male:"Maschio",female:"Femmina"},script:{title:"Sceneggiatura e immagini"},imageStyle:{title:"Stile delle immagini"}},advancedAiModulePopup:{title:"Aggiungi crediti e utilizza il nostro modulo di generazione immagini pi\xf9 avanzato",fast:"Veloce",quality:"Alta qualit\xe0",accurate:"Pi\xf9 accurato",noWatermark:"Senza filigrana",cancel:"Annulla",addMins:"Aggiungi crediti"},generating:{title:"Il tuo video AI corto \xe8 in arrivo...",info:"Il tempo di elaborazione potrebbe richiedere fino a 2 minuti per generare le tue scene.",exportInfo:"Stiamo trasformando il tuo script in immagini e voce, sincronizzando tutto in modo continuo e finalizzando il tuo video.",infoAction:"Torna allo studio",errors:{idea:{title:"Spiacenti, la tua idea di video potrebbe violare la nostra politica sui contenuti.",action:"Prova un'altra idea"}},processingVideo:"Elaborazione video in corso...",processingScenes:"Generazione scene in corso..."},download:{downlaodButton:"Scarica",share:"Condividi",removeWatermark:"Rimuovi filigrana",downloadMusicLicense:"Scarica licenza musicale",createANewVideoButton:"Genera nuovo video",editVideo:"Modifica video",feedback:{title:"Ci piacerebbe sentire il tuo feedback",description:"Il tuo feedback \xe8 molto importante per noi per migliorare i nostri servizi e offrire la migliore esperienza per te!",success:"Apprezziamo il tuo feedback. Grazie!",form:{fields:{feedback:"Scrivi il tuo feedback..."},submit:"Invia"}}},limitationPopup:{title:"Hai raggiunto il tuo limite!",description:"Si prega di ricaricare il tuo account per poter generare di pi\xf9",addMinutes:"Aggiungi crediti",videos:"Video.",images:"Immagini.",voiceovers:"Voiceovers"},editor:{sidebar:{scenes:{title:"Scene",back:"Indietro",backToScene:"Indietro",generalSettings:{animations:{title:"Effetti di movimento",tooltip:{title:"Effetti di movimento",description:"Deselezionando questa casella, esporterai il video senza animazioni come zoom avanti/indietro."}},subtitles:{title:"Sottotitoli",tooltip:{title:"Sottotitoli",description:"Deselezionando questa casella, esporterai il video senza sottotitoli."}},backgroundMusic:{title:"Musica di sottofondo"}},scene:{title:"Scena",replaceImage:"Cambia immagine",editScene:"Cambia scena",trim:"Taglia",upload:"Carica",scale:{fill:"Scala per riempire",fit:"Scala per adattare"},deletePopup:{header:"Elimina",title:"Vuoi davvero eliminare questa immagine?",success:{title:"Hai eliminato con successo la tua immagine"}},settings:{title:"Impostazioni scena",animation:{title:"Tipo di animazione",none:"Nessuna"}}},changeImage:{upload:{title:"Carica file"},aiImages:{title:"Crea",placeholder:"Inserisci prompt per generare immagine",back:"Torna a AI Visuals"},stock:{title:"Libreria stock",images:"Immagini",videos:"Video",scenes:"Scene"}},music:{title:"Abbiamo selezionato una canzone geniale per il tuo video!"}},texts:{title:"Testo",tabs:{settings:"Impostazioni testo",effects:"Effetti",presets:"Preimpostazioni"}},settings:{title:"Impostazioni"},subtitles:{title:"Sottotitoli",voiceOver:{title:"Voiceover",regenerate:"Rigenera",freeUsage:e=>"Hai ".concat(e," rigenerazioni di voiceover gratuite rimanenti."),confirmation:{title:"Rigenerare il voiceover?",description:"Questo sovrascriver\xe0 il voiceover esistente con il testo aggiornato.",currentCredits:"I tuoi crediti attuali sono ",usedCredits:"Dopo la conferma, i tuoi crediti saranno ",actionText:"Rigenera"}}},overlays:{title:"Sovrapposizioni",opacity:{title:"Opacit\xe0"},background:{title:"Sovrapposizione di sfondo"},animated:{title:"Sovrapposizione animata"}}},export:"Esporta video"},disclaimer:"Non possiamo controllare i contenuti generati. Rivedi attentamente e usali a tua discrezione.",scenes:{delete:{error:"Non puoi eliminare l'ultima sce
1na",confirmation:{title:"Sei sicuro di voler eliminare questa scena?"}},split:{error:"Hai raggiunto la durata minima della scena"}}},textToScene:{title:"Generatore di scene",textToScene:"Testo a Video",imageToScene:"Immagine a Video",usage:"Crediti utilizzati per la scena =",usageShort:"Scena =",description:"Genera una scena di 5 secondi",form:{fields:{prompt:{label:"Descrivi la tua ripresa",placeholder:"Descrivi la tua ripresa, l'illuminazione e come dovrebbe muoversi la scena..."},aspectRatio:{label:"Rapporto d'aspetto della scena"},sceneDuration:{label:"Durata della scena"},advancedSettings:{label:"Impostazioni avanzate",loop:"Loop"}},imageUploader:{title:"Trascina e rilascia la tua immagine qui o ",browse:"Sfoglia",title1:" per scegliere un'immagine",maxSize:"Dimensione massima del file: 16 MB",supportedMiemTypes:"Supporta: ",library:{title:"Libreria di immagini",import:"Importa dalla libreria",empty:"Non hai ancora immagini. Genera un'immagine qui sotto scrivendo un semplice prompt."},swapFields:"Scambia campi"},submit:"Genera video"},modelSelector:{title:"Modello di video"},historyList:{title:"Cronologia dei video generate",empty:"Nessun video generato ancora!"},preview:{generateNew:"Genera nuova scena",download:"Scarica"},bottomNav:{settings:"Impostazioni scena",history:"Cronologia"},failed:{title:"Impossibile elaborare il video",description:"Non siamo riusciti a elaborare la tua ric
1hiesta perch\xe9 il prompt contiene parole non supportate.",description1:"I tuoi crediti per questo video sono stati automaticamente rimborsati. Riprova con un prompt diverso.",action:"Genera un nuovo video"},generatePrompt:"Chiedimi",delete:{header:"Elimina",title:"Sei sicuro di voler eliminare questo video?",success:"Video eliminato con successo"},header:{disclaimer:"* I prezzi variano in base alla selezione"}},quoteToVideo:{title:"Generatore di video da citazione",cost:"Costo del video",form:{fields:{quote:{label:"Citazione",placeholder:"Non posso cambiare la direzione del vento, ma posso regolare le vele per raggiungere sempre la mia destinazione.",remainingCharacters:"Caratteri"},author:{label:"Autore",placeholder:"Inserisci il nome dell'autore"},visualStyle:{label:"Scegli i visual"}},submit:"Genera video"}},textToImage:{title:"Generazione di immagini",generate:"Genera immagine",usage:"Crediti utilizzati per l'immagine =",credits:e=>"".concat(e," crediti"),form:{fields:{prompt:{label:"Scrivi un prompt",placeholder:"Inizia a immaginare..."},aspectRatio:{label:"Dimensioni dell'immagine"},imageStyle:{label:"Stile dell'immagine"},superPrompt:{label:"Migliora il prompt (+10 crediti)",tooltip:"Seleziona questa casella per affinare e migliorare automaticamente il tuo prompt per una migliore generazione dell'immagine. Nota che il costo aumenter\xe0 di ulteriori",tooltip1:" 10 crediti."}}},historyList:{title:"Immagini generate",empty:"Nessuna immagine generata ancora!"},bottomNav:{settings:"Impostazioni immagine",history:"Cronologia"}},textToSpeech:{title:"Generazione di voiceover",generate:"Genera voiceover",usage:"Crediti utilizzati per il voiceover =",credits:e=>"".concat(e," crediti"),form:{fields:{prompt:{label:"Testo",placeholder:"Inizia a digitare qui o incolla qualsiasi testo che desideri trasformare in un discorso realistico.",maxCharacters:"Characters"}}},empty:{title:"Nessun voiceover generato ancora!"},historyList:{title:"Cronologia dei voiceover generati",empty:"Nessun voiceover generato ancora!"},bottomNav:{settings:"Impostazioni voiceover",history:"Cronologia"},disclaimer:"Si prega di notare che i nostri voiceover generati dall'AI possono contenere imperfezioni ed errori occasionali.",loading:"Questo potrebbe richiedere qualche minuto in pi\xf9, si prega di essere pazienti.",listHeader:{title:"Titolo audio",dateCreated:"Data di creazione",duration:"Durata"},voiceoverDetails:{script:{title:"Testo del voiceover"}},deleteConfirmation:{header:"Elimina",title:"Vuoi davvero eliminare questo voiceover?",success:"Voiceover eliminato con successo"},feedback:{success:"Apprezziamo il tuo feedback. Grazie!"}},aiAvatars:{title:"Robot di IA",header:{usage:"Costo del video:",disclaimer:"* Il costo dipende dal numero di caratteri dello script"},script:{title:"Script",placeholder:"Scrivi il tuo script qui..."},sampleAvatars:"Oppure scegli un avatar di esempio",voiceover:"Genere di voce off",videoSettings:{title:"Impostazioni video",dimension:{title:"Dimensioni del video"},captionStyles:{title:"Stili dei sottotitoli"},backgroundStyle:{title:"Stile dell'immagine di sfondo"}},avatar:{title:"Scegli un avatar"},language:{title:"Lingua dello script",placeholder:"Seleziona una lingua"},selectVoiceover:{title:"Seleziona Voiceover",none:"Nessuno"},uploadImage:{title:"Carica Immagine",description:"Scegli un'immagine per convertire in avatar",dragBox:"Trascina e rilascia la tua immagine qui o",browse:"Sfoglia",chooseFile:"per scegliere un'immagine",supportedMiemTypes:"Supporta:",disclaimer:"Il tuo avatar deve seguire queste regole.",seeDetails:"Vedi Dettagli",failed:"Creazione avatar fallita. Prova un’altra foto.",maxSizeMessage:"Il file \xe8 pi\xf9 grande di 50 MB"},uploadVoiceover:{title:"Carica Voiceover",description:"Scegli un voiceover per convertire in avatar",dragBox:"Trascina e rilascia il tuo voiceover qui o",browse:"Sfoglia",chooseFile:"per scegliere un voiceover",supportedMiemTypes:"(Supporta: MP3, WAV)",minDurationMessage:"Il file \xe8 pi\xf9 piccolo di 1 secondo",maxDurationMessage:"Il file \xe8 pi\xf9 grande di 10 minuti",sizeLimitMessage:"Il file \xe8 pi\xf9 grande di 50 MB"},imageRequirementsPopup:{title:"Fotoğraf Gereksinimleri",reason:"Y\xfcklediğiniz fotoğraf gereksinimleri karşılamıyor, l\xfctfen farklı bir fotoğraf deneyin ve aşağıdaki kılavuzlara uyun.",goodPhotos:"İyi Fotoğraflar",badPhotos:"K\xf6t\xfc Fotoğraflar",description:"Son fotoğraflarınız (sadece sen), yakın \xe7ekimler ve tam g\xf6vde \xe7ekimlerinin bir karışımı, farklı a\xe7ılardan, ifadeler (g\xfcl\xfcmseme, n\xf6tr, y\xfcksek sesle konuşma), ve bir \xe7eşit kıyafetler. Y\xfcksek \xe7\xf6z\xfcn\xfcrl\xfckte ve mevcut g\xf6r\xfcn\xfcm\xfcn\xfcz\xfc yansıtan fotoğraflar yapın.",description1:"Grup fotoğrafları, şapkalar, g\xf6zl\xfckler ve ağır filtreler. \xc7
1ok eski, d\xfcş\xfck \xe7\xf6z\xfcn\xfcrl\xfckte veya mevcut g\xf6r\xfcn\xfcm\xfcn\xfcz\xfc yansıtmayan fotoğrafları ka\xe7ının."},avatarsForm:{name:{label:"Nome"},gender:{label:"Genere"},ethnicity:{label:"Etnia"},age:{label:"Et\xe0"},modal:{title:"Il tuo avatar \xe8 pronto!",description:"Ora, aggiungiamo qualche dettaglio per dare vita al tuo avatar",save:"Continua con Avatar",generateNewAvatar:"Genera un nuovo avatar"}},chooseAvatar:{myAvatars:"I miei Avatar",sampleAvatars:"Avatar di esempio",none:"Nessuno"},review:{title:"Revisione dei caricamenti",description:"Le foto approvate sono state marcate e sono pronte per creare un look per il tuo avatar.",failed:"Carica un'altra immagine",reCrop:"Ritaglia immagine",failedDescription:"Immagine non approvata. Per favore, carica un'altra immagine che soddisfi i requisiti."},generating:{title:"Il tuo avatar \xe8 in arrivo!",exportInfo:"Stiamo convertendo il tuo testo in immagini e voce, e mettendo tutto in sequenza, e terminando il tuo video.",failed:{title:"Impossibile elaborare l'avatar",description:"Non siamo riusciti a elaborare il tuo avatar, per favore prova con un'altra foto.",action:"Genera un nuovo avatar"}},customAvatarGenPopup:{background:{suggestions:"Suggerimenti",placeholder:"Descrivi il fondo o la scena per il tuo avatar (ad esempio, 'scena di ufficio moderna con illuminazione morbida', 'ambiente naturale all'aria aperta', 'sfondo neutro nello studio')"},confirmation:{title:"Sei sicuro di voler procedere con la generazione dell'avatar?",properties:"Propriet\xe0 dell'avatar:",hijab:"Hijab"},failed:{title:"Errore nella generazione dell'avatar",description:"Non siamo riusciti a generare il tuo avatar in questo momento, siamo spiacenti per il disagio.",action:"Genera un nuovo avatar"}}},maintenancePage:{title:"Ci dispiace, AI Image Editor \xe8 in fase di manutenzione",description:"Stiamo attualmente eseguendo una manutenzione programmata. Torna presto!"},onBoarding:{skip:"Salta per ora"},aiImagesStudio:{imagePopup:{prompt:"Prompt",promptPrefix:"",copy:"Copia",enhancedPrompt:"Prompt migliorato",animateTooltip:"Vuoi dare un po' di movimento alla tua immagine?",unlock:"Sblocca il potenziale completo della tua immagine",animate:"Animazione",edit:"Modifica",upscale:"Upscale",model:"Modello:"},delete:{header:"Elimina",title:"Sei sicuro di voler eliminare questa immagine?",success:"Immagine eliminata con successo"}},aiVideoStudio:{videoPopup:{prompt:"Prompt del video:",properties:"Propriet\xe0 del video:",promptPrefix:"",copy:"Copia",emptyPrompt:"Nessun prompt fornito",quote:"Citazione:",videoModel:"Modello di video:",voiceoverModel:"Modello di voce fuori campo:",negativePrompt:"Prompt negativo:"}},createImage:{uploadModal:{upload:{title:"Carica immagine / video",dragBox:"Trascina e rilascia la tua immagine o video qui",or:" o ",browse:"Sfoglia ",dragBox1:" ",info:"",upload:"Carica"},size:{title:"Dimensione massima dell'immagine: ",title1:"5 MB",message:"Il file \xe8 pi\xf9 grande di 5 MB",messageDynamic:e=>"Il file \xe8 pi\xf9 grande di ".concat(e," MB"),videoMessage:"Il file \xe8 pi\xf9 grande di 150 MB"},duration:{title:"Durata massima dell'immagine: ",title1:"5 minuti",message:"Il file \xe8 pi\xf9 grande di 5 minuti"}}},creditsBalance:{title:"Saldo crediti",totalCreditsAvailable:"Crediti totali disponibili",planCreditsLeft:{title:"Crediti mensili rimanenti",tooltip:"Credito mensile rimanente, disponibile fino alla fine del mese, e si reimposta mensilmente"},topUpCreditsLeft:{title:"Crediti acquistati rimanenti",tooltip:"Crediti rimanenti disponibili per l'uso, rappresentano il tuo saldo inutilizzato dai crediti acquistati."},monthlyCredits:"Crediti mensili",purchasedCredits:"Crediti acquistati",planCreditsSubtitle:"Si rinnova a ogni ciclo di fatturazione",purchasedCreditsSubtitle:"Acquisti una tantum",expiresInDays:e=>1===e?"Scade tra 1 giorno":"Scade tra ".concat(e," giorni")},changePlan:{current:"Crediti del piano attuale:",tabs:{changeCurrentPlan:{title:"Cambia piano attuale",tooltip:"I crediti si reimposteranno alla fine del ciclo di fatturazione",description:"Seleziona di seguito il numero di crediti che desideri nel nuovo piano:"},oneTimePayment:{title:"Pagamento una tantum",tooltip:"I crediti si accumuleranno",description:"Seleziona di seguito il numero di crediti che desideri aggiungere al tuo account:"}}},reactivateFlow:{title:"Sembra che il tuo abbonamento sia attualmente in pausa. Nessun problema, riattivarlo \xe8 facile e non ti addebiter\xe0 nulla.",action:"Riattiva"}
1,yearlyDisclaimer:{title:"Vuoi aggiornare il tuo piano attuale? Contatta il nostro team di supporto per assistenza. Siamo qui per aiutarti a migliorare la tua esperienza di abbonamento!"},sharePopup:{confirmation:{title:"Sei sicuro di voler condividere il tuo video?",description:"Solo le persone con il link possono accedere al video"},title:"Condividi link",description:"Copia il link qui sotto per condividere il tuo video"},effects:{title:"Effetti di testo"},highlightEffects:{title:"Effetti di evidenziazione del testo"},verification:{title:"Verifica indirizzo email",description:"Abbiamo inviato un codice OTP a ",change:"Cambia",didntReceive:"Non hai ricevuto il codice OTP?",resend:"Reinvia codice",resendSuccess:"Un nuovo codice \xe8 stato inviato alla tua email",verify:"Verifica",checkSpam:"Non hai ricevuto l'email? Controlla la cartella spam/posta indesiderata e aggiungici alla tua lista di mittenti sicuri."},trimPopup:{title:"Taglia il tuo video",cancel:"Annulla",selectVideo:"Seleziona video"},invalidLink:{title:"Questo video non \xe8 valido",description:"Sembra che il video link che hai fornito non sia valido. Controlla e riprova."},creditsSysterm:{title:"Il sistema di crediti",description:"che tu sia un principiante come creatore di contenuti o un professionista, abbiamo un piano perfetto per te",tooltip:e=>"I crediti si reimpostano a ".concat(e," ogni mese a partire dalla data di abbonamento. Acquista di pi\xf9 o aggiorna secondo necessit\xe0.")},serviceDown:{title:e=>"Strumento ".concat(e," temporaneamente non disponibile"),description:e=>"Non \xe8 stato possibile generare il tuo ".concat(e," al momento. Riprova tra poco"),action:"Torna allo Studio",features:{image_generation:{title:"Generatore Immagini",description:"Immagine"},voice_over_generation:{title:"Generatore Voce",description:"Voce Fuori Campo"},text_to_video_script_generation:{title:"Generatore Video",description:"Script"},text_to_video_scene_generation:{title:"Generatore Video",description:"video"},scene_generation_text_to_video:{title:"Generatore Video",description:"video"},scene_generation_image_to_video:{title:"Generatore Video",description:"video"},transcription:{title:"Genera Sottotitoli",description:"sottotitoli"},quote_to_video:{title:"Generatore Video da Citazione",description:"video"},avatar_photo_generation:{title:"Generatore Avatar",description:"avatar"},avatar_video_generation:{title:"Generatore Avatar",description:"avatar"},image_editor:{title:"Editor di Immagini",description:"immagine"},image_upscaler:{title:"Upscale di Immagini",description:"immagine"}},modelDown:{title:e=>"".concat(e," Non Disponibile Temporaneamente"),description:e=>"Il modello ".concat(e," non \xe8 disponibile in questo momento. Prova a cambiare modello per continuare"),back:"Torna allo Studio",switch:"Cambia Modello"},providerDown:{title:"Modello Inattivo",description:"Il modello non \xe8 disponibile in questo momento. Prova a cambiare modello per continuare",back:"Torna allo Studio",switch:"Cambia Modello"},templateExecutionFailure:{title:"Template Non Disponibile",description:"Il template non \xe8 disponibile in questo momento. Prova a cambiare template per continuare",back:"Torna a Templates"}},videosOptionsPopup:{title:"Video Corti"},serviceDownPopup:{title:"Servizio inattivo",description:"La generazione di script AI (per l'idea video) \xe8 in manutenzione e sar\xe0 presto di nuovo operativa.",description1:'Tuttavia, la funzione "Incolla il tuo script" \xe8 disponibile.'},aspectRatioAlertPopup:{title:"Dimensioni immagine non valide",description:e=>"L'immagine caricata non rispetta le dimensioni richieste. Assicurati che la larghezza/altezza dell'immagine non superi ".concat(e,"px."),description1:e=>"L'immagine caricata non rispetta le dimensioni richieste. Assicurati che la larghezza/altezza dell'immagine sia maggiore di ".concat(e,"px.")},faqs:{title:"Domande frequenti"},discoverMore:{title:"Scopri di pi\xf9 con Bith"},imageCropper:{actions:{crop:"Raccolto",cancel:"Cancellare"}},creditsRolloverPopup:{title:"Il rollover dei crediti \xe8 stato lanciato!",description:"I tuoi crediti inutilizzati ora vengono trasferiti di mese in mese indef
1initamente e vengono sempre utilizzati prima dei crediti mensili regolari o di eventuali ricariche aggiuntive. Mantieni attivo il tuo abbonamento per conservare il saldo accumulato — nessuna azione richiesta!"},annualPlansPopup:{title:"Piani annuali",discountAmount:"20%",descriptionPrefix:"Ottieni il ",descriptionSuffix:" di sconto con i nostri piani annuali.",descriptionSecondary:"Scopri i nuovi piani e le condizioni aggiornate dei crediti.",cta:"Aggiorna piano"},musicRemovalConfirmation:{header:"Il tuo video sar\xe0 esportato senza musica",title:"Questa canzone \xe8 una preview e non sar\xe0 inclusa nell'esportazione a causa delle restrizioni di copyright. Puoi aggiungere questa canzone specifica o qualsiasi altra dall'app di social media di tua scelta"},deleteAccount:{header:"Elimina account",title:"Sei sicuro di voler eliminare il tuo account?",description:"Questo elimina il tuo account in modo permanente. Tutti i dati associati verranno eliminati definitivamente.",action:"Elimina account"},useCases:{title:"Cosa stanno creando gli utenti"},aiImageEditor:{newProject:"Nuovo progetto",newProjectShort:"Nuovo",prompt:{label:"Testo",placeholder:"Descrivi ci\xf2 che vuoi cambiare…"},deleteConfirmation:{header:"Sei sicuro di voler eliminare questa sessione?",title:"Questo eliminer\xe0 definitivamente l'immagine caricata e tutte le modifiche effettuate durante questa sessione. Non sarai in grado di recuperarla.",title2:"Questo canceller\xe0 definitivamente tutte le modifiche apportate durante questa sessione. L'immagine importata dalla tua libreria rimarr\xe0 invariata. Non sar\xe0 possibile recuperare le modifiche cancellate.",success:"Sessione eliminata con successo"},editVersionActions:{download:"Scarica",downloading:"Download in corso...",zoomIn:"Ingrandisci",zoomOut:"Riduci",fitToCanvas:"Adatta al Canvas",animate:"Animare",upscale:"Upscale",copyLink:"Copia Link",removeImage:"Elimina Immagine"},editVersion:{failed:"Fallito",failedDescription:"Siamo spiacenti, qualcosa \xe8 andato storto e la tua ric
1hiesta \xe8 fallita. Per favore, riprova"},newSession:{title:"Editor di Immagini"},uploadImage:{title:"Carica Immagine",supportedMiemTypes:"Supportati: ",import:{library:"Tua Biblioteca",upload:"Carica"},maxFilesUpTo:"* Aggiungere fino a ",maxFilesUpToValue:"immagini"}},styleExamplesCarousel:{apply:"Applica",ariaLabel:"Esempi di stile"},inspirationalGallery:{title:"Galleria Inspirativa",backToGallery:"Torna alla Galleria",tools:{[o.m.AI_SHORTS]:"Video Corti",[o.m.TEXT_TO_SCENE]:"Testo a Video",[o.m.IMAGE_TO_SCENE]:"Immagine a Video",[o.m.QUOTE_TO_VIDEO]:"Citazione a Video",[o.m.AI_AVATAR]:"Avatar",[o.m.TEXT_TO_IMAGE]:"Testo a Immagine",[o.m.IMAGE_EDITOR]:"Editor di Immagini"},details:{image:"Immagine",video:"Video",tool:"Strumento",prompt:"Prompt",model:"Modello:",properties:"Propriet\xe0:",script:"Script",quote:"Citazione",usePreset:"Usare il Preset"}},sceneGen:{imageToScene:{newSession:{title:"Immagine a Video"}},textToScene:{newSession:{title:"Testo a Video"}},actions:{generate:"Genera",loading:"Generazione..."},form:{imageUploader:{selectImages:"Seleziona Immagine",upload:"Carica"}},selectModelPopup:{i2vTitle:"Scegli un modello",t2vTitle:"Scegli un modello",imageGenTitle:"Scegli un modello",modelsTitle:"Modelli",audioTooltip:"Questo modello supporta l'audio.",button:"Usare il Modello",searchPlaceholder:"Cerca un modello ...",newBadge:"Nuovo",noResults:"Nessun modello corrisponde alla ricerca.",speedTooltip:"Velocit\xe0",qualityTooltip:"Qualit\xe0",startFrameBadge:"Fotogramma iniziale",endFrameBadge:"Fotogramma finale"},sceneItemCard:{reuseParameters:"Reusare i Parametri",copyPrompt:"Copiare il Prompt",download:"Scaricare"}},models:{modelsSelector:{model:"Modello",viewAllModels:"Visualizza tutti i modelli"}},sessions:{title:"Sessioni",videoOptions:"Opzioni Video",imageOptions:"Opzioni Immagine",deleteSession:{sceneGen:{header:"Sei sicuro di voler eliminare questa sessione?",title:"Questo eliminer\xe0 permanentemente tutti i video generati durante questa sessione. Non sarai in grado di recuperarli",success:"Sessione eliminata con successo"},session:{header:"Sei sicuro di voler eliminare questa sessione?",title:"Questo eliminer\xe0 permanentemente la sessione e tutte le modifiche effettuate durante questa sessione. Non sarai in grado di recuperarle",success:"Sessione eliminata con successo"}},itemFailed:{title:"Spiacenti, questo \xe8 fallito.",description:"Riprova o cambia il prompt o il provider del modello.",template:{title:"Fallito",description:"Riprova o cambia le entrate.",reasons:{chargedForFailedJob:{title:"Vengo addebitato per i lavori falliti?",description:"No, non ti verr\xe0 addebitato alcun costo per i lavori falliti."}}},reasons:{whyFailed:{title:"Perch\xe9 i lavori falliscono?",description:"Ogni provider di modelli ha disponibilit\xe0 e restrizioni diverse. Prova con un provider diverso cambiando il modello in alto o modifica il prompt evitando nomi e riferimenti a materiale protetto da copyright. Non ti verr\xe0 addebitato alcun costo per i lavori falliti."},chargedForFailedJob:{title:"Vengo addebitato per i lavori falliti?",description:"No, non ti verr\xe0 addebitato alcun costo per i lavori falliti."}}}},imageUpscaler:{actions:{upscale:"Upscale",loading:"Upscaling..."},newSession:{title:"Image Upscaler"},editActions:{animate:"Animare",download:"Scaricare"},session:{failed:{title:"Fallito",reason:"Non siamo stati in grado di scalare la tua immagine, ti verranno rimborsati i tuoi crediti. Per favore, riprova."},advancedSettings:"Impostazioni Avanzate"}},imageGen:{newSession:{title:"Generatore di Immagini"},actions:{generate:"Genera",loading:"Generazione..."},imageGenItemCard:{reuseParameters:"Reusare i Parametri",copyPrompt:"Copiare il Prompt",download:"Scaricare",retry:"Riavviare",upscale:"Upscale",animate:"Animare",edit:"Modificare"},failed:{title:"Impossibile elaborare l'immagine",description:"Non siamo stati in grado di elaborare la tua ric
1hiesta perch\xe9 il prompt contiene parole non supportate.",description1:"I tuoi crediti per questa immagine sono stati automaticamente rimborsati. Per favore, riprova con un prompt diverso.",action:"Genera una nuova immagine"}},toolsNavigationDropdown:{video:"Video",image:"Immagine",audio:"Audio",other:"Lip-syncing"},promptBox:{warning:"Google has been reporting black screen issues with their Veo3 image to video model."},templates:{outputType:"Tipo di output",uploadFile:{title:"Clicca per caricare",dragBox:"Trascina e rilascia il tuo file qui",or:" o ",browse:"esplora ",dragBox1:" per scegliere un file",supportedMiemTypes:"Supportati: ",removeFile:"Rimuovi file"},generate:"Genera",generating:"Generazione..."},toolsShortcuts:{edit:"Modificare",upscale:"Upscale",animate:"Animare",photoshoot:"Studio Photoshoot"},productPhotoshoot:{title:"Servizio Fotografico Prodotto",history:"Cronologia",header:{breadcrumbApps:"Applicazioni"},upload:{uploading:"Caricamento...",dragAndDrop:"Trascina e rilascia la tua immagine qui o",browse:"Sfoglia",toChoose:"per scegliere un'immagine",supportedFormats:"(Supporta: PNG, JPG, JPEG, WEBP)",uploadFailed:"Caricamento fallito. Riprova."},imagePreview:{altText:"Prodotto caricato",change:"Cambia"},resultViewer:{noOutput:"Nessun risultato disponibile",unableToLoad:"Impossibile caricare l'immagine",altText:e=>"Risultato foto ".concat(e)},actions:{generating:"Generazione ...",generateShots:"Genera foto",downloading:"Download...",download:"Scarica",downloadWebImage:"Scarica Immagine Web (WEBP)",downloadWebImageDesc:"Optimizzato per siti web",downloadFullQuality:"Scarica Immagine di Qualit\xe0 (PNG)",downloadFullQualityDesc:"Migliore qualit\xe0 per la modifica o la stampa",edit:"Modifica",createNew:"Nuovo shooting",new:"Nuovo",errorMessage:"Qualcosa \xe8 andato storto. Riprova."},dimensions:{title:"Scegli dimensioni",subtitle:"Per il risultato finale"},instructions:{step1Title:"Carica immagine",step1Description:"Carica l'immagine che vuoi modificare",step2Title:"Genera 8 foto",step2Description:"Scarica 8 immagini pronte all'uso in diversi stili e scene.",step3Title:"Crea video promozionale",step3Description:"Sceglieremo le migliori immagini e creeremo il tuo video."},outputs:{altText:e=>"Risultato ".concat(e),generatedShots:"Scatti generati",createProductVideo:"Crea Video Prodotto",downloadAll:"Scarica Tutto"},promo:{title:"Crea Video Promozionale",selectionTitle:"Modalit\xe0 selezione video",selectionDescription:"Seleziona 5 delle foto generate qui sotto\nper animarle nel video promozionale",selectShotsTitle:"Seleziona 5 foto da animare in un video",selectMusicTitle:"Seleziona Musica di Sottofondo",backgroundMusic:"Musica di sottofondo",playPreview:"Riproduci",pausePreview:"Pausa",generatingTitle:"Generazione video promozionale",generatingDescription:"Stiamo trasformando le foto selezionate in un breve video promozionale. Questo potrebbe richiedere fino a un minuto.",readyTitle:"Video promozionale pronto",readyFallback:"Il tuo video promozionale \xe8 stato generato.",failedTitle:"Video promozionale fallito",failedDescription:"Non siamo riusciti a generare il video promozionale. Riprova.",back:"Indietro",generateButton:"Crea video",create:"Crea",createNewVideo:"Crea un nuovo video",downloadVideo:"Scarica Video"}},aiInfluencer:{breadcrumbApps:"App",buildYourInfluencer:"Crea il tuo Influencer",new:"Nuovo",history:"Cronologia",baseProfile:"Profilo Base",physicalFeatures:"Caratteristiche Fisiche",styleDetails:"Dettagli dello Stile",selectAtLeastOne:"Seleziona almeno un'opzione per continuare",next:"Avanti",back:"Indietro",generate:"Genera",generating:"Generazione in corso...",generateLooks:"Genera Look",edit:"Modifica",animate:"Anima",speak:"Parla",dressUp:"Vesti",tryOnOutfits:"Prova outfit",comingSoon:"Prossimamente",influencerName:"Nome dell'Influencer",save:"Salva",generationFailed:"Generazione Fallita",generationFailedDesc:"Si \xe8 verificato un errore durante la generazione del tuo influencer IA. Riprova.",tryAgain:"Riprova",emptyStateLine1:"Il tuo influencer IA si trova qui.",emptyStateLine2:"Progetta e crea il tuo influencer IA",emptyStateLine3:"da zero",influencerLooks:"Look dell'Influencer",generatedLooks:"Look Generati",loading:"Caricamento...",noLooksYet:"Nessun look generato ancora.",noLooksDesc:"Carica un'immagine prodotto sopra per creare il tuo primo look.",uploadProductImage:"Carica Immagine Prodotto",tapToUploadProductImage:"Tocca per caricare immagine prodotto",uploading:"Caricamento...",promptOptional:"Descrizione (opzionale)",promptPlaceholder:"es. che tenga la bottiglia di profumo",generateLook:"Genera Look",generatingLook:"Generazione del look in corso…",generateLookFailed:"Impossibile generare il look.",fetchLooksFailed:"Impossibile caricare i look.",lookStatusCheckFailed:"Impossibile verificare lo stato del look.",selectLookFirst:"Seleziona un look da cui generare.",selectAtLeastOneField:"Fornisci una descrizione o seleziona un ambiente, uno stile di ripresa o un angolo della fotocamera.",describeChange:"Descrivi cosa vuoi cambiare…",environment:"Ambiente",shotStyle:"Stile di ripresa",background:"Sfondo",poses:"Pose",cameraAngle:"Angolo della fotocamera",optionalSection:" (Opzionale)",productImageAlt:"Immagine prodotto",uploadProductImageAlt:"Carica immagine prodotto",styleReferenceImageAlt:"Immagine di riferimento stile",uploadStyleReferenceAlt:"Carica riferimento stile",customBackgroun
1dImageAlt:"Anteprima sfondo personalizzato",uploadFailed:"Caricamento fallito. Riprova.",renameInfluencer:"Rinomina Influencer",influencerNamePlaceholder:"Nome dell'influencer",cancel:"Annulla",close:"Chiudi",download:"Scarica",regenerate:"Rigenera",rename:"Rinomina",editAttributes:"Modifica attributi",delete:"Elimina",newInfluencer:"Nuovo influencer",generatingCharacter:"Generazione del personaggio pu\xf2 richiedere fino a <span class='font-bold'>2 minuti</span>",actions:"Azioni",nationality:"Nazionalit\xe0",selectNationalityForTraditional:"Seleziona una nazionalit\xe0 per abilitare Tradizionale.",headCoveringOmittedForAttire:"La copertura della testa \xe8 omessa per abiti da medico e chef."},virtualTryOn:{title:"Prova virtuale",header:{breadcrumbApps:"App"},modelSelection:{chooseModel:"Scegli modello",chooseTheModel:"Scegli il modello",male:"Uomo",female:"Donna",uploadModelImage:"Carica immagine modello",yourGallery:"La tua galleria",uploadHint:"Una persona, corpo intero, viso chiaramente visibile",or:"Oppure",changeModel:"Cambia modello",creatingModelFromImage:"Creazione del modello in corso… Potrebbe richiedere un attimo."},configPanel:{createLooks:"Crea look",clothingItems:"Capi di abbigliamento",background:"Sfondo",poses:"Pose",optional:"(Opzionale)"},upload:{dragAndDrop:"Trascina qui le tue immagini oppure",browse:"Sfoglia",toChoose:"per scegliere un'immagine",supportedFormats:"(Formati supportati: PNG, JPG, JPEG, WEBP)"},actions:{generate:"Genera",generating:"Generazione in corso...",download:"Scarica",animate:"Anima",generatingDescription:"La generazione dell'immagine pu\xf2 richiedere fino a <span class='font-bold'>2 minuti</span>"},instructions:{step1Title:"Scegli un modello",step1Desc:"Seleziona un modello pronto o carica la foto di una persona da usare per la prova",step2Title:"Carica il tuo capo",step2Desc:"Carica le foto dei capi che vuoi provare",step3Title:"Genera una nuova immagine",step3Desc:"Verr\xe0 generata una nuova immagine con il modello che indossa i capi caricati"}},generationProcess:{generating:(e,t)=>"Generazione ".concat("image"===e?"immagine":"video"===e?"video":"audio"===e?"audio":"product_photoshoot"===e?"foto":"virtual_try_on"===e?"try-on":"mixto")+' pu\xf2 richiedere fino a <span class="font-bold text-ph-color">'.concat(t," minuti.</span>"),pleaseWait:"Per favore, attendi o puoi generare qualcos'altro mentre aspetti.",statusLabels:{pending:"In coda",inqueue:"In coda",running:"In coda",processing:"Elaborazione",completed:"Completato",failed:"Non riuscito"}},ugcVideo:{editor:{sceneEditIntro:{badge:"Nuovo",title:"Controlla il video dopo averlo creato",description:"Guarda il video, modifica il testo del dialogo e ricrea facilmente qualsiasi scena finch\xe9 non ottieni il risultato desiderato prima di esportare il video finale.",cta:"Inizia a modificare"}}}},tr:{global:{off:"off",createNew:"Yeni Oluştur",backTo:"Geri D\xf6n",viewAll:"T\xfcm\xfcn\xfc G\xf6r",showAll:"T\xfcm\xfcn\xfc G\xf6r",featured:"\xd6ne \xc7ıkanlar",select:"Se\xe7 ...",nationality:"Milliyeti Nedir?",cost:"Maliyet",failed:"Başarısız",characters:"Karakter",durationEstimate:"Tahmini S\xfcre",step:"Adım",gotIt:"Anladım",rechargesOn:"Tekrar y\xfckleniyor",topUp:"Y\xfckle",rollover:"Transfer",plan:"Plan",active:"Aktif",collapse:"Kıs",expand:"Genişlet",otherPlaceholder:"Diğer",featuredTools:"\xd6ne \xc7ıkan Ara\xe7lar",export:"Dışa Aktar",free:"\xdccretsiz",thankYou:"Teşekk\xfcrler",generatingScenes:"Sahne Oluşturuluyor...",optional:"İsteğe Bağlı",feedbackSuccess:"Geri bildiriminiz i\xe7in teşekk\xfcrler!",noAudio:"Bu videoda ses yok",ex:"* \xd6rnekler",comingSoon:"Yakında",comingSoonLong:"Yakında",promptCopySuccess:"Komut panoya kopyalandı",scriptCopySuccess:"Senaryo panoya kopyalandı",quoteCopySuccess:"C\xfcmle panoya kopyalandı",downloadImageSuccess:"Resim başarıyla indirildi",downloadVideoSuccess:"Video başarıyla indirildi",downloadVoiceoverSuccess:"Seslendirme başarıyla indirildi",linkCopiedSuccess:"Bağlantı başarıyla kopyalandı",summerSale:"(%40 Yaz İndirimi)",winterSale:"(%40 Kış İndirimi)",sale:"%",sortby:"Sırala :",filterBy:"Filtrele :",megaByte:"MB",since:"Abonelik tarihinden itibaren",of:"nin",gb:"GB",perMonthShort:"/ay",perMonth:"/ Ay",perMonthYearly:"yıllık faturalandırılır",perYear:"/ Yıl",choosePlan:"Plan Se\xe7",getStarted:"Başlayın",currentSubscription:"Mevcut Abonelik",currentPlan:"Mevcut Plan",changePlan:"Planı Değiştir",reActivate:"Planı Yeniden Aktive Et",moreFromBith:"BithAI'den Daha Fazlası",all:"Hepsi",studio:"St\xfcdyo",backSignIn:"Girişe Geri D\xf6n",back:"Geri",next:"İleri",backToStudio:"St\xfcdyoya Geri D\xf6n",generateAvatar:"Avatar Oluştur",backHome:"Ana Sayfaya Geri D\xf6n",createVideo:"Video D\xfczenle",uploadVideo:"Video Y\xfckle",yourAccount:"Hesabınız",filters:{search:"Ara ...",tenorSearch:"Tenor'da Ara",sort:"Sırala",filterBy:"Filtrele",pixabaySearchPlaceholder:"Pixabay'dan resim ara",pixabaySearchVideosPlaceholder:"Pexels'dan video ara",poweredBy:"Tarafından desteklenmektedir"},learnHow:"Nasıl yapılır",done:"Tamam",bith:"Bith.ai",shortSignUp:"Kaydol",shortSignIn:"Giriş Yap",language:"عربي",en:"EN",ar:"AR",upload:"Y\xfckle",continueEditing:"D\xfczenlemeye Devam Et",continue:"Devam Et",signup:"Hesap Oluştur",login:"Giriş Yap",home:"Ana Sayfa",contactUs:"Bize Ulaşın",terms:"Şartlar ve Koşullar",privacy:"Gizlilik Politikası",error_url:"/illustrations/404_Image.svg",home_page:"Ana Sayfa",save:"Kaydet",soon:"Yakında",new:"Yeni",or:"veya",socialLabel:"Sosyal Medya ile Giriş Yap",imagesValidation:{typeNotAllowed:"Yalnızca JPG/PNG kapak fotoğrafları y\xfckleyebilirsiniz",coverLarge:"Kapak fotoğrafı boyutu 2MB veya daha k\xfc\xe7\xfck olmalıdır"},normalImagesValidation:{typeNotAllowed:"Yalnızca JPG/PNG kapak fotoğrafları y\xfckleyebilirsiniz",large:"Resim boyutu 2MB veya daha k\xfc\xe7\xfck olmalıdır"},showMore:"Daha fazla g\xf6ster",connect:"Bağlan",connected:"Bağlı",noResults:"Sonu\xe7 bulunamadı",validations:{shortRequired:"(Gereklidir)",required:"Bu alan gereklidir",invalidUrl:"Ge\xe7ersiz URL",invali
1dSocialMediaHandle:"Ge\xe7ersiz sosyal medya hesabı",messageDynamic:e=>"Dosya ".concat(e," MB'den b\xfcy\xfck olmalıdır")},confirmationAlert:{no:"Hayır",yes:"Evet"},fileTypeNotSupported:e=>{let{videoType:t}=e;return"".concat(t," dosya formatı desteklenmiyor.")},sizeLimit:"\xdczg\xfcn\xfcz, y\xfcklediğiniz medya dosya boyutu sınırını aştı.",sizeLimitMaxDescription:"Medya y\xfckleme i\xe7in maksimum boyut",maxSizeLimit:"200 MB",remove:"Kaldır",delete:"Sil",cancel:"İptal",close:"Kapat",move:"Taşı",restore:"Geri Y\xfckle",time:{mins:e=>1===e||e>10?"Dakika":"Dakikalar",minsMobile:"d",secs:e=>1===e||e>10?"Saniye":"Saniyeler",hours:e=>1===e||e>10?"Saat":"Saatler",days:e=>1===e||e>10?"G\xfcn":"G\xfcnler"},minutes:e=>1===e||e>10?"Dakika":"Dakikalar",seconds:e=>1===e||e>10?"Saniye":"Saniyeler",credits:e=>"Krediler",perEdit:"/D\xfczenle",oneTime:"(Tek Seferlik)",upgradeToPro:"Pro'ya Y\xfckselt",upgradePlan:"Planı Y\xfckselt",upgrade:"Y\xfckselt",downgrade:"D\xfcş\xfcr",generateClips:"Oluştur",generateAVideo:"Bir Video Oluştur",clips:"Klipler",processing:"İşleniyor",continueGenerating:"Senaryoyu D\xfczenle",editScenes:"Videoyu D\xfczenle",showLess:"Daha Az G\xf6ster",poweredby:"Tarafından desteklenmektedir",proceed:"Devam Et",paidFeature:"\xdccretli \xd6zellik",download:"İndir",generateImage:"Yeni Resim Oluştur",generateImageShort:"Resim Oluştur",generateScene:"Video Oluştur",generateVideo:"Yeni Video Oluştur",generateVideoShort:"Video Oluştur",editVideo:"D\xfczenle",share:"Paylaş",copyShared:"Paylaşılan Bağlantıyı Kopyala",addCredits:"Kredi Ekle",images:e=>"Resimler",copy:"Kopyala",copied:"Kopyalandı",creditsUsed:"Kullanılan Krediler",and:"ve",backToMenu:"Ana Men\xfcye Geri D\xf6n",videoPopup:{showDetails:"Video Detayları",showVideo:"Videoyu G\xf6ster"},somethingWentWrong:"Bir şeyler ters gitti",empty:{videos:"Hen\xfcz oluşturulmuş video yok!",scenes:"Hen\xfcz oluşturulmuş sahne yok!",images:"Hen\xfcz oluşturulmuş resim yok!"},useTemplate:"Şablonu Kullan"},account:{dropDown:{accountSettings:"Hesap Ayarları",logout:"\xc7ıkış Yap"}},signUp:{title:"Yeni bir hesap oluştur",fields:{username:{label:"Kullanıcı Adı",illegal_chars:"Kullanıcı adı yasaklı karakterler i\xe7eriyor.",minUserNameMessage:"Kullanıcı adı en az 5 karakter olmalıdır.",maxUserNameMessage:"Kullanıcı adı 24 karakteri ge\xe7memelidir."},email:{label:"E-posta"},password:{label:"Şifre",password_illegal_chars:"L\xfctfen şifre kurallarına uyun",password_rules:"L\xfctfen şifre kurallarına uyun"},confirm_password:{label:"Şifre",password_validation:"Şifreler uyuşmuyor."},emailMarkiting:{label:"Bith.AI'den haberler, \xf6zellik g\xfcncellemeleri, indirimler ve teklifler almak istiyorum"},terms:{label:"Okuduğumu kabul ediyorum ",label2:"ve kabul ediyorum "}},actions:{submit:"Hesap oluştur",login:"Hesabınız var mı ?",login1:"Giriş Yap",continueWithEmail:"E-posta ile Devam Et"}},login:{title:"Hesabınıza giriş yapın",socialTitle:"BithAI'ye Hoş Geldiniz",forgotPassword:"Şifrenizi mi unuttunuz?",fields:{email:{label:"E-posta",errors:{required:"Bu alan gereklidir"}},password:{label:"Şifre",errors:{required:"Bu alan gereklidir."}}},actions:{submit:"Giriş Yap",signUp:"Hen\xfcz bir hesabınız yok mu ?",social:"Sosyal medya hesabınızla giriş yapın",continueWithEmail:"Manuel Giriş Yap"}},contactUs:{info:"İletişim Bilgileri",email:"E-posta",social:"Sosyal Medya"},help:{layout:{title:"Bith.ai",pages:{terms:"Şartlar ve Koşullar",privacy:"Gizlilik Politikası",guide:"Bith Rehberi"}}},validations:{email:{illegal:"Girilen e-posta yasadışıdır.",invalid:"Girilen e-posta ge\xe7ersizdir."},required:"Bu alan gereklidir",maxTextLength:"Metin uzunluğu 255 karakterden az olmalıdır",minTextLength:"Metin uzunluğu 5 karakterden fazla olmalıdır",maxTextLengthDynamic:e=>"Metin uzunluğu ".concat(e," karakterden az olmalıdır"),minTextLengthDynamic:e=>"Metin uzunluğu ".concat(e," karakterden fazla olmalıdır"),maxNumberDynamic:e=>"En fazla ".concat(e),minNumberDynamic:e=>"En az ".concat(e),oneFieldIsRequiredAtLeast:"En az bir alan gereklidir",textFieldsMin:e=>"T\xfcm alanlar i\xe7in metin uzunluğu ".concat(e," karakterden fazla olmalıdır"),textFieldsMax:e=>"T\xfcm alanlar i\xe7in metin uzunluğu ".concat(e," karakterden az olmalıdır")},socialLogin:{facebook:"Facebook",twitter:"Twitter",google:"Google",discord:"Discord",twitch:"Twitch",apple:"Apple"},appBanner:{title:"BithAI Uygulamasını İndirin",subTitle:"BithAI Uygulamasını İndirin",action:"Y\xfckle"},resizer:{layers:{source:"Sonra:",before:"\xd6nce:"},compileActions:{continueEditing:"D\xfczenlemeye Devam Et",skip:"D\xfczenlemeleri Atla",
1skipDescription:"(D\xfczenlemeler Olmadan)",compile:"D\xfczenle ve Y\xfckle",next:"Sonraki"},importFaild:{title:"Dosya i\xe7e aktarılamadı",upload:"Y\xfckle"},editorSettings:{faceCam:"Y\xfcz Kamerası:",outlinesBefore:"Ana Hatlar:",outlineAfter:"Ana Hatlar:",original:"Orijinal",output:"\xc7ıktı"},outputSettings:{aspectRatio:"Boyut Se\xe7",fps:"Saniye Başına Kare (FPS):",quality:"Kalite:"},preview:{title:"Buraya Tıklayın",description:"Sihirli Bir Şekilde Yeniden Boyutlandırın"},templates:{action:"D\xfczeni Değiştir",modal:{title:"D\xfczen Se\xe7in",description:"Videonuzu istediğiniz boyuta d\xf6n\xfcşt\xfcr\xfcn."}},resetChanges:"Değişiklikleri Sıfırla"},socialMediaDistribution:{connectedAccounts:"Bağlı Hesaplar",action:"Hesapları Bağla",disconnect:"Hesabı Bağlantısını Kes",selectPage:"Sayfa Se\xe7",unSelectPage:"Sayfayı Se\xe7me",tiktokNote:"Yayın akışına devam etmek i\xe7in mobil cihazınızdaki TikTok uygulamasından bir bildirim alacaksınız.",needMobileInstallation:"Yayınlandıktan sonra, videoyu aynı hesabınızdan BithAI mobil uygulamasında yayınlamaya devam etmeniz gerekecek.",enable:"Bu bağlı hesapta yayınlamayı etkinleştir",publish:"Yayınla",publishDownload:"Yayınla ve İndir",actions:{cancel:"İptal",connect:"Hesabı Bağla"}},advancedEditor:{sideBar:{media:"Medya",layers:"Katmanlar",text:"Metin",audio:"Ses",gifs:"GIF'ler",videos:"Videolar",images:"Resimler",effects:"Efektler",subtitles:"Altyazılar"},panels:{general:{title:"Genel",settings:"Kaynağı Eşleştir",quality:"\xc7\xf6z\xfcn\xfcrl\xfck",fps:"Saniye Başına Kare (FPS)",bgColor:"Arka Plan Rengi"},timing:"Zamanlama",texts:{tabs:{textSettings:"Metin Ayarları",effects:"Efektler",timing:"Zamanlama"},title:"Metin Ayarları",editText:"Metni D\xfczenle",fontFamily:"Yazı Tipi",lockRatio:"Oranı Kilitle",color:"Yazı Rengi",outline:"Metin Ana Hattı",off:"KAPALI",on:"A\xc7IK",stroke:{title:"Metin \xc7izgisi",color:"\xc7izgi Rengi",width:"Genişlik"},background:{title:"Metin Arka Planı",color:"Renk",corners:"K\xf6şeler",padding:"Dolgu",opacity:"Opaklık"},effect:{textColor:"Metin Rengi",backgroundColor:"Arka Plan Rengi"}},audio:{title:"Ses",volume:"Ses",noAudio:"Bu videoda ses yok"},image:{title:"Resim",tabs:{settings:"Resim"}},video:{title:"Video",tabs:{settings:"Video"}},gifs:{title:"GIF'ler"},shared:{layer:"Katman",delete:"Sil",backward:"Geri",forward:"İleri",sendToFront:"\xd6ne G\xf6nder",sendToBack:"Arkaya G\xf6nder"},effects:{title:"Kutu Efektleri"},subtitle:{title:"Altyazılar",applyToAll:"Ayarları t\xfcm altyazılara uygula"}},media:{switcher:{myLibrary:"K\xfct\xfcphanem",stock:"Stok",aiImages:"AI Resimleri"}},texts:{tooltip:"İngilizce ve Arap\xe7a Metinleri İşleyen Yazı Tipi",actions:{english:"İngilizce",arabic:"Arap\xe7a"}},subtitles:{title:"Altyazılar",generate:"Altyazı Oluştur",selectLanguage:"Dili Manuel Se\xe7",language:"Dil",original:"Dil",translate:"\xc7evir (İsteğe Bağlı)",translatePlaceholder:"\xc7eviri Yok - Orijinal Dili Kullan..",transcriptionLeft:"transkripsiyon kaldı",selectLanguageError:"L\xfctfen bir dil se\xe7in",generating1:"L\xfctfen bekleyin",generating:"Altyazılarınız oluşturuluyor",noTranscriptionError:"Transkripsiyon bulunamadı",settings:{title:"Altyazı Ayarları",grouped:"Gruplandırılmış",single:"Tek"},addNew:"Yeni Altyazı Ekle",addError:"Videonun s\xfcresi dışında altyazı ekleyemezsiniz",tabs:{subtitles:"Altyazılar",options:"Se\xe7enekler"},delete:{title:"Altyazıları Sil",description:"Bu video i\xe7in altyazıları silmek istediğinizden emin misiniz?"},downloadSrt:"SRT dosyasını indir"},audio:{sound:{title:"Sesler"}},images:{title:"Resimler",tabs:{filled:"Dolu",transparent:"Şeffaf"}},videos:{title:"Videolar"},gifs:{title:"GIF'ler"},disclaimer:{title:"Video bulanık mı g\xf6r\xfcn\xfcyor?!",description:"edit\xf6rde video \xe7\xf6z\xfcn\xfcrl\xfcğ\xfcn\xfc d\xfcş\xfcr\xfcr, b\xf6ylece daha hızlı bir d\xfczenleme ve oynatma deneyimi yaşayabilirsiniz. Endişelenmeyin, videonun orijinal \xe7\xf6z\xfcn\xfcrl\xfcğ\xfc Paylaşırken kullanılacaktır.",durationLimitTitle:"S\xfcre Uyarısı",durationLimit:"Klip 1 dakikayı ge\xe7memelidir"},tooltips:{split:{title:"B\xf6l",shortCut:{mac:"S",wind:"S"}},undo:{title:"Geri Al",shortCut:{mac:"Cmd + Z",wind:"Ctrl + Z"}},redo:{title:"Yinele",shortCut:{mac:"Cmd + Shift + Z",wind:"Ctrl + Shift + Z"}},play:{title:"Oynat",shortCut:{mac:"Boşluk",wind:"Boşluk"}},pause:{title:"Duraklat",shortCut:{mac:"Boşluk",wind:"Boşluk"}}
1,duplicate:{title:"\xc7oğalt"},delete:{title:"Sil",shortCut:{mac:"Geri Al",wind:"DEL"}},zoomIn:{title:"Yakınlaştır",shortCut:{mac:"Cmd + Fare tekerleği Yukarı",wind:"Ctrl + Fare tekerleği Yukarı"}},zoomOut:{title:"Uzaklaştır",shortCut:{mac:"Cmd + Fare tekerleği Aşağı",wind:"Ctrl + Fare tekerleği Aşağı"}},zoomToFit:{title:"Ekrana Sığdır"}},commingSoon:"Yakında",uploadFlow:{backToMagicResizer:"Sihirli Yeniden Boyutlandırıcıya Geri D\xf6n",steps:{resizer:"Yeniden Boyutlandırıcı",editor:"D\xfczenle",share:"Paylaş"},actions:{editAndUpload:"D\xfczenle ve Paylaş"}},timeLine:{openTimeLine:"Zaman \xc7izelgesini A\xe7",limitationPopup:{title:"\xdczg\xfcn\xfcz, zaman \xe7izelgesi s\xfcresi sınırınızı aştınız “10 dakika“, bu s\xfcreden sonra yapılan d\xfczenlemeler videonuza dahil edilmeyecektir.",actions:{cancel:"D\xfczenlemeye Geri D\xf6n",ok:"Yine de Dışa Aktar"}}}},homeMobile:{superWindow:{info:"en kolay video d\xfczenleme yazılımı",title:"İ\xe7erik Oluşturma ",title2:"Kolaylaştırıldı",title3:" ",description:"BithAI, i\xe7eriğinizi bir sonraki seviyeye taşımak i\xe7in hepsi bir arada \xfccretsiz bir video d\xfczenleyicidir",description2:"",desktop:"Yalnızca Masa\xfcst\xfcnde Mevcut",downloadApp:"Uygulamayı İndir"},resize:{title:"Yeniden Boyutlandır",description:"BithAI'nin sihirli yeniden boyutlandırıcısını kullanarak videolarınızı 16:9'dan herhangi bir formata d\xf6n\xfcşt\xfcr\xfcn, Instagram Reels/Hikayeler/G\xf6nderiler i\xe7in uygun formatlara, Youtube Shorts ve hatta TikTok'a d\xf6n\xfcşt\xfcr\xfcn."},edit:{title:"D\xfczenle",description:"Bith St\xfcdyosunda bulunan \xe7eşitli \xf6zellikleri kullanarak kliplerinize biraz lezzet katın, i\xe7eriğinizi \xf6ne \xe7ıkarmak i\xe7in videonuza metin/resim/video ekleyin."},publish:{title:"Yayınla",description:"Bith'in ara\xe7larını kullanarak i\xe7eriğinizi tek bir tıklama ile t\xfcm favori sosyal medya platformlarınıza doğrudan y\xfckleyebilirsiniz!"}},headerLayout:{howItWorks:"Nasıl \xe7alışır",features:"Neden Bith.ai",apps:"Uygulamalarımız",learn:"\xd6ğren",welcome:"Hoş Geldiniz ",comma:",",tools:"AI Ara\xe7ları",pricing:"Fiyatlandırma",proCreator:"Pro Plan",freePlan:"\xdccretsiz Plan",editor:"Video D\xfczenleyici"},home:{hero:{create:"OLUŞTUR",videos:"VİDEOLAR",images:"G\xd6RSELLER",audios:"SESLER",in:"İ\xc7İNDE",seconds:"SANİYE",subtitle:"Tek Yer - T\xfcm AI Modelleri",getStarted:"Başlayın"},create:{title:"OLUŞTUR",video:"Video",image:"G\xf6rsel",audio:"Ses"},superWindow:{title:"İ\xe7eriği Kolayca Oluşturun ",title1:"AI B\xfcy\xfcs\xfc ile",description:"Fikirlerinizi Saniyeler İ\xe7inde İlgi \xc7ekici Videolara, G\xf6rsellere ve Daha Fazlasına D\xf6n\xfcşt\xfcr\xfcn",action:"Başlayın",howItWorks:"Nasıl \xc7alışır"},howItWorks:{title:"Nasıl \xe7alışır ?"},whyBit:{title:"Neden Bith.ai ?"},signup:{title:"Hen\xfcz bir hesabınız yok mu ?",looking:"İ\xe7erik oluşturucu olmak mı istiyorsunuz?",start:"Yolculuğunuza bug\xfcn başlayın!",action:"Kaydol"},downloadApp:{title:"Deneyiminizi Mobil Uygulamamızda Tamamlayın",description:"Bir okuyucunun dikkatini dağıtacak okunabilir i\xe7erik tarafından uzun s\xfcredir kurulmuş bir ger\xe7ektir."},creativeStudio:{title:"Tam Yaratıcı S\xfcitiniz",description:"Video d\xfczenleme yolculuğunuzu basitleştirmek i\xe7in tasarlanmış sezgisel platformumuzla sınırsız olasılıkların kilidini a\xe7ın. Video boyutlarınızı yeniden boyutlandırın, AI kullanarak altyazıları zahmetsizce ekleyin ve sadece birka\xe7 tıklama ile resimler, videolar, sesler ve GIF'ler ekleyin.",editorText:"Bith Video D\xfczenleyici",disclaimer:"Bu \xf6zellik daha b\xfcy\xfck ekranlarda erişilebilir. En iyi deneyim i\xe7in l\xfctfen bir masa\xfcst\xfc veya diz\xfcst\xfc bilgisayara ge\xe7in."},gallery:{title:"İnspiration Gallery",exploreMore:"Daha Fazla Keşfet"}},pricing:{title:"Size uygun bir plan se\xe7in!",popupTitle:"Yeni Plan Değişiklikleri",pricing:"Fiyatlandırma",description:"Daha fazla oluştur, daha az zaman.",monthly:"Aylık",yearly:"Yıllık",saving:"2 Ay Bedava",pro:"Pro",free:"\xdccretsiz",aiTools:"AI Ara\xe7ları",re
1commended:"\xd6nerilen",tabs:{bundles:"Paketler",creditsPack:"Kredi Paketi"},planCard:{popular:"Pop\xfcler",mostChosen:"En \xe7ok se\xe7ilen",selectPlan:"Plan Se\xe7",startNow:"Şimdi başla",currentPlan:"Mevcut Plan",unavailable:"Kullanılamıyor",notAvailableFromCurrentPlan:"Mevcut planınızdan kullanılamıyor",upgrade:"Y\xfckselt",downgrade:"D\xfcş\xfcr",creditsPerMonth:"kredi",ugcVideoPerMonth:"UGC videosu",ugcVideosPerMonth:"UGC videosu",perMonth:"/ ay",switchTo:"Planı Değiştir",scheduledNextCycle:"Sonraki d\xf6ng\xfc i\xe7in planlandı"},creditPack:{credits:"Krediler",purchase:"Satın Al",validityNote:"Satın alma tarihinden itibaren 90 g\xfcn ge\xe7erlidir"},faqs:{title:"Sık\xe7a Sorulan Sorular"},aiTitle:"Tercih ettiğiniz kredi paketi boyutunu se\xe7in:",automateAround:"Otomatikleştirebilir",aiVideos:"AI videoları",plansDisclaimer:"L\xfctfen not edin ki satın alınan krediler sadece abonelik s\xfcresi boyunca erişilebilir.",creditsRolloverNotice:"Krediler faturalama d\xf6nemleri arasında devredilmez",oneTimePaymentDisclaimer:"L\xfctfen not edin ki satın alınan krediler sadece abonelik s\xfcresi boyunca erişilebilir.",legacyPlan:{title:"Mevcut planınız {planTitle} (Legacy)",description:"*Bu, yeni m\xfcşteriler i\xe7in artık ge\xe7erli olmayan eski bir plandır. Bu planı s\xfcresiz olarak kullanmaya devam edebilir veya yeni planlarımıza ge\xe7ebilirsiniz.",creditsPerMonth:"Kredi/ay",features:{fullAccessToAITools:"AI Ara\xe7larına Tam Erişim",proAccessToVideoEditor:"Video Edit\xf6re Pro Erişim",aiSubtitleGenerator:"AI Altyazı Oluşturucu",minutes:"{minutes} Dakika",storage:"Depolama ({storage} GB)",customerSupport:"M\xfcşteri Desteği"}}},footer:{aboutUs:"Hakkımızda",contactUs:"Bize Ulaşın",terms:"Şartlar ve Koşullar",privacyPolicy:"Gizlilik Politikası",bithGuide:"Bith Rehberi"},footerLayout:{links:{title:"Bağlantılar",about:"Bith.ai Hakkında",terms:"Şartlar ve Koşullar",privacy:"Gizlilik Politikası",pricing:"Fiyatlandırma"},help:{title:"Yardım",learn:"\xd6ğren",tools:"Ara\xe7lar",faqs:"Sık\xe7a Sorulan Sorular",contactUs:"Bize Ulaşın",bithAi:"Bith.AI"},getinTouch:{title:"İletişime Ge\xe7in"},partners:{title:"Ortaklar"},rights:"\xa9 T\xfcm Hakları Saklıdır. Bith.ai"},authFlowLayout:{info:{title:"Bith TV \xd6zellikleri",free:"\xdccretsiz",noWatermark:"Filigran Yok",online:"\xc7evrimi\xe7i",distribution:"Dağıtım"},actions:{back:"Ana Sayfaya D\xf6n"},signUp:{action:"Hesap oluştur"},ugc:{title:"UGC Videoları",subtitle:"\xc7ekim veya montaj olmadan yayına hazır ger\xe7ek\xe7i tanıtım videoları oluşturun"},termsNotice:"Devam ederek Kullanım Şartlarımızı ve Gizlilik Politikamızı kabul etmiş olursunuz."},passwordReco:{sendEmail:{title:"Şifrenizi Sıfırlayın",formFields:{email:"E-posta"},actions:{submit:"Sıfırla",redirectTitle:"Hesabınız var mı ?",redirect:"Giriş Yap"},success:"Başarılı! L\xfctfen şimdi e-postanızı kontrol edin"},reset:{title:"Yeni Bir Şifre Oluşturun",formFields:{newPassword:"Yeni Şifre"},actions:{submit:"Şifreyi Değiştir"},success:{title:"Şifreniz başarıyla sıfırlandı.",action:"Giriş Yap"}}},studio:{sidebars:{images:{title:"Resimler"},videos:{all:"T\xfcm videolar",original:"D\xfczenlenmemiş",inProgress:"Devam Ediyor",readyToPublish:"Yayınlanmaya Hazır",published:"Dışa Aktarıldı",deletedVideos:"Silinmiş Videolar"},account:{title:"Ayarlar",accountSettings:"Hesap Ayarları",notificationsSettings:"Bildirim Ayarları",billingSettings:"Faturalandırma Ayarları",connectionSettings:"Bağlantı Ayarları"},connections:{title:"Platformlar",connect:"Bağlan"},storage:{storageUsed:"Kullanılan Depolama",storageRemaining:"Depolama",upgrade:"Y\xfckselt"},main:{myStudio:"Ana Sayfa",videos:"Videolar",folders:"Klas\xf6rler",watchAndLearn:"İzle ve \xd6ğren",deleted:"Silinmiş",aiStudio:"AI St\xfcdyosu",mainStudio:"Yaratıcı St\xfcdyo",imageGenerator:"Resimler",voiceovers:"Seslendirmeler"},minutes:{title:"Kullanılan Krediler",remaining:"Krediler",upgrade:"Kredi Ekle",total:"Krediler",add:"Ekle"},helpCenter:{title:"Yardım Merkezi"}},shell:{header:{home:"Ana Sayfa"},sidebar:{home:"Ana Sayfa",library:"K\xfct\xfcphane",templates:"Şablonlar",apps:"Uygulamalar",tools:"Ara\xe7lar",more:"Daha fazla",less:"Daha az",pin:"Sabitle",unpin:"Sabitlemeyi kaldır",recentSessions:"Son oturumlar",sessions:"Oturumlar",newSession:"Yeni oturum",untitledSession:"Başlıksız oturum"}},library:{tabs:{videos:"Videolar",images:"G\xf6rseller",audio:"Ses",folders:"Klas\xf6rler",deleted:"Silinen"},inProgressAlert:"Videonuz hazır olduğunda size e-posta ile bildireceğiz!"},account:{settings:{title:"Hesap Ayarları"},info:{title:"Hesap Bilgileri",changeImage:"Resmi Değiştir",remove:"Kaldır",formFields:{username:{label:"Kullanıcı Adı"},email:{label:"E-posta"}},action:"Kaydet"},changePassword:{title:"Şifreyi Değiştir",formFields:{newPassword:{label:"Yeni Şifre"},confirmNewPassword:{label:"Yeni Şifreyi Onayla"},password:{label:"Eski Şifre"}},success:{message:"Şifre başarıyla g\xfcncellendi"},action:"Kaydet"},preferences:{title:"Tercihler",theme:"A\xe7ık Tema",language:"Dil"}},videoModal:{actions:{create:"Yeni Bir D\xfczenleme Oluştur",continue:"D\xfczenlemeye Devam Et",start:"D\xfczenlemeye Başla",download:"İndir",editAgain:"\xc7oğalt ve D\xfczenle",edit:"Videoyu D\xfczenle"}}
1,videosDropDown:{edit:"D\xfczenle",duplicate:"\xc7oğalt",publish:"Yayınla",schedule:"Planla",download:"İndir",move:"Taşı",rename:"Yeniden Adlandır",delete:"Sil"},deletedVideosDropDown:{restore:"Geri Y\xfckle",deletePermanently:"Kalıcı Olarak Sil"},sort:{name:"Ad A-Z",dateCreated:"Oluşturulma Tarihi",dateModified:"Değiştirilme Tarihi"},videosDetailsBar:{videoTitle:"Video Başlığı",size:"Boyut",status:"Durum",lastEdited:"Son D\xfczenleme"},empty:{title:"Hen\xfcz videonuz yok!",description:"İlk videonuzu oluşturmak i\xe7in aşağıdaki butona tıklayın",video_editor:{title:"Hen\xfcz videonuz yok!",description:"İlk videonuzu oluşturmak i\xe7in aşağıdaki butona tıklayın"},audio:{title:"Hen\xfcz sesiniz yok!",description:"İlk sesinizi oluşturmak i\xe7in aşağıdaki butona tıklayın"},image:{title:"Hen\xfcz g\xf6rseliniz yok!",description:"İlk g\xf6rselinizi oluşturmak i\xe7in aşağıdaki butona tıklayın"},text_to_video:{title:"Hen\xfcz videonuz yok!",description:"İlk videonuzu oluşturmak i\xe7in aşağıdaki butona tıklayın"},deleted:{title:"Geri D\xf6n\xfcş\xfcm Kutusu Boş",description:"Yeni bir video oluşturmak i\xe7in aşağıdaki butona tıklayın"},ai:{title:"Hen\xfcz videonuz yok!",description:"İlk videonuzu oluşturmak i\xe7in aşağıdaki butona tıklayın"},text_to_scene:{title:"Hen\xfcz videonuz yok!",description:"İlk sahnenizi oluşturmak i\xe7in aşağıdaki butona tıklayın"},quote_to_video:{title:"Hen\xfcz videonuz yok!",description:"İlk videonuzu oluşturmak i\xe7in aşağıdaki butona tıklayın"}},createVideo:{headerActions:{continueToEdit:"D\xfczenlemeye Devam Et",publish:"Videoyu Dışa Aktar",exportSettings:{title:"Dışa Aktarma Ayarları"}}},main:{videos:{title:"Videolar",viewAll:"T\xfcm Videoları G\xf6r\xfcnt\xfcle",createAVideo:"Yeni Video D\xfczenle"},home:{heroHeadline:"Yaratmak i\xe7in ihtiyacınız olan her şey tek yerde",appsTitle:"Uygulamalar",toolsTitle:"Ara\xe7lar",lastVideosTitle:"Son videolar",viewAll:"T\xfcm\xfcn\xfc g\xf6r",templatesHeadline:"Sıfırdan değil, kanıtlanmış şablonlardan başlayın.",browseAllTemplates:"T\xfcm şablonlara g\xf6z at"},folders:{title:"Klas\xf6rler",viewAll:"T\xfcm Klas\xf6rleri G\xf6r\xfcnt\xfcle",newFolder:"Yeni Klas\xf6r"},watchAndLearn:{title:"İzle ve \xd6ğren",viewAll:"T\xfcm Videoları G\xf6r\xfcnt\xfcle"},tools:{title:"BUG\xdcN NELER OLUŞTURACAKSIN?",description:"G\xf6rselinizi AI ile video \xe7evirin",viewAll:"T\xfcm Ara\xe7ları G\xf6r\xfcnt\xfcle"},apps:{title:"Uygulamalar"}},notificationsSettings:{transactionalEmails:"İşlem e-postalarını alın",promotionalEmails:"Promosyon e-postalarını alın"},superWindow:{carousel:{title:"Metin-Videoya",title1:"AI Oluşturucu",description:"Yeni Nesil Y\xfczs\xfcz İ\xe7erik Oluşturucular i\xe7in Tasarlanmış Devrim Niteliğindeki Metin-Videoya AI Oluşturucu. Fikirlerinizi sadece birka\xe7 tıklama ile ilgi \xe7ekici videolara d\xf6n\xfcşt\xfcr\xfcn."}},useCases:{title:"Kullanıcılar Ne Oluşturuyor",popup:{prompt:"Komut:",prefix:"",script:"Senaryo",aiModule:"G\xf6rsel Oluşturma Mod\xfcl\xfc:"}},accountDropdown:{settings:"Hesap Ayarları",notificationSettings:"Bildirim Ayarları",billingSettings:"Faturalandırma Ayarları",lightTheme:"A\xe7ık Tema",language:"Dil",help:"Yardım",faqs:"SSS",terms:"Şartlar ve Koşullar",privacy:"Gizlilik Politikası",logout:"\xc7ıkış Yap"},notifications:{title:"Bildirimler"}},studioBreadcrumbs:{studio:"St\xfcdyom",account:"Hesap Ayarları",billing:"Faturalandırma Ayarları",connections:"Bağlantı Ayarları",videos:"Videolar",all:"T\xfcm Videolar",original:"D\xfczenlenmemiş","in-progress":"Devam Ediyor","ready-to-publish":"Yayınlanmaya Hazır",published:"Dışa Aktarıldı",deleted:"Silinmiş",exporting:"Dışa Aktarılıyor",completed:"Tamamlandı",processing:"İşleniyor","processing-promo-video":"İşleniyor"},folders:{new:"Yeni Klas\xf6r",create:{title:"Yeni Klas\xf6r",createFolderModal:{title:"Yeni Bir Klas\xf6r Oluştur",fields:{name:"Klas\xf6r adı"},actions:{cancel:"İptal",create:"Oluştur"},success:{title:"Klas\xf6r\xfcn\xfcz başarıyla oluşturuldu"}}},edit:{modal:{title:"Klas\xf6r\xfc G\xfcncelle",fields:{name:"Klas\xf6r adı"},actions:{cancel:"İptal",update:"G\xfcncelle"},success:{title:"Klas\xf6r adınız başarıyla g\xfcncellendi"}}},move:{title:'Taşı "',to:'" To',done:"Taşındı"},delete:{title:"Bu klas\xf6r\xfc silmek istediğinizden emin misiniz?"}},videos:{edit:{modal:{title:"Videoyu G\xfcncelle",fields:{name:"Video adı"},actions:{cancel:"İptal",update:"G\xfcncelle"},success:{title:"Video adınız başarıyla g\xfcncellendi"}}},delete:{header:"Sil",title:"Bu videoyu ger\xe7ekten silmek istiyor musunuz?",success:{title:"Videonuz başarıyla silindi"}},deletePermanently:{header:"Sil",title:"Bu videoyu kalıcı olarak silmek istiyor musunuz?",success:{title:"Videonuz başarıyla silindi"}},restore:{header:"Geri Y\xfckle",title:"Bu videoyu ger\xe7ekten geri y\xfcklemek istiyor musunuz?",success:{title:"Videonuz başarıyla ger
1i y\xfcklendi"}},duplicate:{modal:{title:"Videoyu \xc7oğalt",fields:{name:"Video adı"},actions:{cancel:"İptal",update:"\xc7oğalt"},success:{title:"Videonuz başarıyla \xe7oğaltıldı"}}},deletionWithin:"Silme s\xfcresi:"},createVideo:{uploadModal:{import:{title:"Bir bağlantıdan i\xe7e aktar",inputPlaceholder:"YouTube, Twitch veya Facebook bağlantınızı buraya yapıştırın...",aiInputPlaceholder:"YouTube bağlantınızı buraya yapıştırın...",action:"Yapıştır",try:"\xd6rnek Bağlantıyı Deneyin",error:"L\xfctfen ge\xe7erli bir bağlantı girin"},upload:{title:"Bir dosya y\xfckle",dragBox:"Dosyanızı buraya s\xfcr\xfckleyip bırakın",or:" Veya ",browse:"g\xf6z at ",dragBox1:" bir dosya se\xe7mek i\xe7in"},errors:{header:"Hata",title:"Videoları işleyemiyoruz ",title1:"şu anda ses yok ",title2:"sorunu yakında d\xfczelteceğiz.\uD83E\uDD29",close:"Kapat"},noDimensions:{header:"Hata",title:"Bu t\xfcr videolar bu tarayıcıda oynatılamaz, kullanabilirsiniz",title1:"Chrome tarayıcısı ",title2:"bu videoyu d\xfczenleyebilmek i\xe7in. \uD83E\uDD29",close:"Kapat"},size:{title:"Maksimum video boyutu : ",title1:"250 MB",message:"Dosya 250 MB'den b\xfcy\xfck"},sizePro:{title:"Maksimum video boyutu : ",title1:"2 GB",message:"Dosya 2 GB'den b\xfcy\xfck"},smartClipperSize:{title:"Maksimum video boyutu : ",title1:"10 GB",message:"Dosya 10 GB'den b\xfcy\xfck"},aspectRatio:{header:"Hata",title:"Video boyutları uyumlu değil, ",title1:"izin verilen boyutlar",title2:"16:9 ve 9:16",close:"Kapat"}},editor:{title:"D\xfczenle"},publisher:{title:"Dışa Aktar",loading:"Bu işlem birka\xe7 dakika s\xfcrebilir, l\xfctfen sabırlı olun",videoInfo:{title:{label:"Başlık",placeholder:"Başlık"}},actions:{download:"İndir",removeWatermark:"Filigransız İndir",newVideo:"Yeni Bir Video Oluştur",editAgain:"\xc7oğalt ve D\xfczenle",editThisVideo:"Bu Videoyu D\xfczenle",back:"St\xfcdyoya Geri D\xf6n"},socialMediaDistribution:{title:"Yayınla",action:"Yayınla"},tips:{title:"Biliyor muydunuz?"},help:{title:"Herhangi bir sorunla karşılaşıyor musunuz, geri bildirimde bulunmak mı istiyorsunuz veya en son duyurularımızdan haberdar olmak mı istiyorsunuz?",redirect:"Discord Sunucumuza Katılın."}},resizer:{title:"Yeniden Boyutlandır",description:"\xc7oğu i\xe7erik mobil cihazlarda t\xfcketilir, i\xe7eriğinizi yeniden boyutlandırarak mobil uyumlu hale getirin.",projectSettings:{title:"Ayarlar",videoSize:{title:"Video Boyutları",reset:"Sıfırla"},eligiblePlatforms:{title:"Uygun Platformlar",and:" ve ",more:" Daha Fazla",maxDuration:"Maksimum S\xfcre:",unlimited:"Sınırsız"},faceCam:{title:"Y\xfcz Kamerası",options:{off:"Kapalı",rectangle:"Dikd\xf6rtgen",circle:"Daire",rounded:"Yuvarlak"},stroke:{style:"\xc7izgi Stili",color:"\xc7izgi Rengi",animated:"Animasyonlu \xc7izgi"}},background:{title:"Arka Plan Bulanıklaştırma",color:"Arka Plan Rengi"},safeZone:{title:"Video G\xfcvenli B\xf6lgesi",description:"Bu sadece sosyal medya simgelerinin nerede olduğunu g\xf6stermek i\xe7indir ve dışa aktarılan videoda g\xf6r\xfcnmeyecektir"}}}},learn:{title:"\xd6ğren",latest:"Son Makaleler",share:"Paylaş",featured:"\xd6ne \xc7ıkanlar",keywords:"Anahtar Kelimeler",createSection:{title:"İ\xe7erik Oluşturucu Olmak mı İstiyorsunuz? İlk Videonuzu Y\xfckleyin!"},relatedArticles:{title:"İlgili Makaleler"}},socialAuth:{facebook:"Facebook ile Devam Et",google:"Google ile Devam Et",twitch:"Twitch ile Devam Et",apple:"Apple ile Devam Et"},exportStatus:{1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",step:e=>"Adım ".concat(e,"/7"),in_queue:"Bekleyin, Videonuz Kuyrukta",processing:"Bekleyin, Videonuz Kuyrukta",trimming:"Robotlarımız Videonuzu Kırpıyor",resizing:"Robotlarımız Videonuzu Yeniden Boyutlandırıyor",adding_layers:"Robotlarımız Videonuza D\xfczenlemeleri Ekliyor",adding_audios:"Robotlarımız Videonuza D\xfczenlemeleri Ekliyor",completed:"Son Videoyu Tamamlarken L\xfctfen Bekleyin",info:"Videonuz dışa aktarılırken diğer videoları d\xfczenleyebilirsiniz"},back:{title:"Geri d\xf6nmek istediğinizden emin misiniz?",description:"Yaptığınız değişiklikler kaybolacak.",action:"Yeniden Boyutlandırıcıya Geri D\xf6n"},uploadNotCompleted:{title:"Ayrılmak istediğinizden emin misiniz?",description:"Yaptığınız değişiklikler kaybolacak.",action:"Evet"},tools:{title:"Ara\xe7lar",description:"Videolarınıza Metin, Resimler, Videolar ve daha fazlasını eklemek i\xe7in ara\xe7larımızı kullanın",callToAction:{weHope:"BITH Ara\xe7larını kullanmaktan keyif almanızı umuyoruz",cantWait:"Neler yapacağınızı g\xf6rme
1k i\xe7in sabırsızlanıyoruz!"},step:"Adım ",moreTools:"Diğer Ara\xe7ları Deneyin"},mediaAssets:{asset:{video:"Video",image:"Resim",audio:"Ses",gif:"Gif",empty:{title:"Hen\xfcz",video:" video ",image:" resim ",gif:" gif ",audio:" ses ",title1:"yok!",info:"Bith'in birini kullanın",info1:"veya kendi y\xfckleyin"},uploadSuccess:{title:"Başarıyla y\xfcklendi",title1:"başarıyla y\xfcklendi"},edit:{title:"G\xfcncelle ",fields:{name:" adı"},actions:{cancel:"İptal",update:"G\xfcncelle"},success:{title:"Başarıyla g\xfcncellendi",title1:" adı başarıyla g\xfcncellendi"}},delete:{header:"Sil",title:"Ger\xe7ekten silmek istiyor musunuz?",imageTitle:"Ger\xe7ekten silmek istiyor musunuz?",title1:"?",success:{title:"Başarıyla silindi"}}}},proPlanPopup:{title:"Planınızı bug\xfcn y\xfckseltin ve daha da kolaylaştırın",watermark:"Bug\xfcn planınızı y\xfckseltin ve filigransı kaldırın"},checkoutModal:{welcome:"BithAI'ye Hoş Geldiniz",continueGoogle:"Google ile Devam Et",continueEmail:"E-posta ile Devam Et",or:"veya",summaryTitle:"Abonelik ayrıntıları",summaryTitleCredits:"Satın alma ayrıntıları",creditPackName:e=>"".concat(Number(e).toLocaleString("tr")," Kredi"),creditPackValidityDays:"90",creditPackValidityLabel:"g\xfcn ge\xe7erli",paymentTitle:"\xd6deme bilgileri",scrollToBottom:"Alta kaydır",continueToPayment:"\xd6demeye devam et",update:"G\xfcncelle",upgradeNow:"Şimdi y\xfckselt",buyNow:"Şimdi satın al",amountDueToday:"Bug\xfcn \xf6denecek tutar",amountDueNow:"Şimdi \xf6denecek tutar",totalCreditsAvailable:"Toplam kullanılabilir kredi",creditsFromCurrentPlan:"Mevcut planındaki krediler",extraCreditsFromUpgrade:"Y\xfckseltmeden ekstra krediler",subscriptionType:"Abonelik t\xfcr\xfc",creditsPerInterval:()=>"kredi / ay",ugcPerInterval:e=>"UGC videosu / ay",savePercent:e=>"%".concat(e," tasarruf"),total:"Toplam",taxIncluded:"(Vergi dahil)",autoRenew:(e,t,i)=>null!=i&&""!==i?"Aboneliğiniz ".concat(e," tarihinde $").concat(i," karşılığında otomatik yenilenecek ve kredileriniz ").concat(Number(t).toLocaleString("tr")," krediye sıfırlanacak"):"Aboneliğiniz ".concat(e," tarihinde yenilenecek ve kredileriniz ").concat(Number(t).toLocaleString("tr")," krediye sıfırlanacak"),payTodayThen:(e,t,i,o)=>"Bug\xfcn $".concat(e," \xf6deyeceksiniz, ardından ").concat(o," itibarıyla $").concat(t," ").concat(i,"."),addDiscount:"İndirim kodu ekle",apply:"Uygula",discountInvalid:"Ge\xe7ersiz indirim kodu",discountApplied:(e,t)=>"İndirim uygulandı. Bu planda $".concat(e," (%").concat(t,") tasarruf ettiniz."),taxIncludedWithDiscount:"(Vergi ve indirim dahil)",planPrice:"Plan fiyatı",discountValue:"İndirim tutarı",removeDiscount:"İndirim kodunu kaldır",subscribeNow:"Şimdi abone ol",confirmChangeTitle:e=>e?"Y\xfckseltmeyi onayla":"Plan değişikliğini onayla",confirmChangeBody:"Plan değişikliğini uygulamak i\xe7in onaylayın. Bug\xfcn \xf6denmesi gereken tutar kayıtlı \xf6deme y\xf6nteminizden tahsil edilir.",success:{title:e=>e?"Puanlarınız hazır":"Abonelik başarıyla tamamlandı",body:(e,t)=>e?"".concat(Number(t).toLocaleString("tr")," puanınız kullanıma hazır."):"Yeni puan bakiyeniz kullanıma hazır.",upgradeTitle:"Planınızı y\xfckselttiniz",changedPlanTitle:"Planınızı değiştirdiniz",startNow:"Şimdi başla"}},paymentFlowPopup:{totalPayment:"Toplam \xd6deme",totalWithTax:"Toplam (Vergi Dahil)",stepper:{selectPlan:"Plan Se\xe7",selectPackage:"Kredi Ekle",review:"G\xf6zden Ge\xe7ir",payment:"\xd6deme"},selectPlan:{title:"Birini Se\xe7in :",saving:"(%17 tasarruf edin)",summerSale:"(%40 Yaz İndirimi)",winterSale:"(%40 Kış İndirimi)"},oneTimePurchase:{title:"Limitinizi Artırın!"},review:{title:"Satın Alma Detayları :",description:{description1:"Pro aboneliğiniz yenilenecek",on:"tarihinde",reset:"ve kredileriniz sıfırlanacak",description2:"Sorularınız mı var?",contact:"Destek ekibimizle iletişime ge\xe7in.",upgrade:"Planınızı değiştirmeniz nedeniyle hemen",upgrade1:"tahsil edilecektir.",chargedProrationBeforeAmount:"Bug\xfcn orantılı y\xfckseltme \xfccreti olarak ",chargedProrationAfterAmount:" tahsil edilecektir.",previewFetchError:"Y\xfckseltme \xf6nizlemeniz y\xfcklenemedi."},payBy:"\xd6deme Y\xf6ntemi",ending:"Kart sonu",creditSummary:{title:"Kredi \xf6zeti",creditsUsed:"Kullanılan krediler",creditsAvailable:"Kullanılabilir krediler",renewsAt:"Yenilenir:",carriedOver:"Devreden",fromUpgrade:"Y\xfckseltmeden"}},payment:{form:{country:{title:"\xdclke",placeholder:"\xdclke"},address:{title:"Adres",placeholder:"Adres"},city:{title:"Şehir",placeholder:"\xf6r. İstanbul"}}},navigation:{back:"Geri",next:"İleri",cancel:"İptal",changePlan:"Planı Değiştir",upgrade:"Y\xfckselt",downgrade:"D\xfcş\xfcr"},success:{title1:"Tebrikler!",title2:"Pro Planına Y\xfckseltildiniz",monthly:"Aylık",yearly:"Yıllık",subscribedTitle:(e,t)=>
1"".concat(e," ").concat(t," Planına başarıyla abone oldunuz."),subscribedDescription:e=>"Artık t\xfcm ".concat(e," \xf6zelliklerine erişiminiz var. Oluşturmaya başlamak ve keyfini \xe7ıkarmak i\xe7in aşağıdaki d\xfcğmeye tıklayın!"),monthlyDescription:"Artık bir pro i\xe7erik oluşturucusunuz, pro \xf6zelliklerle ilk videonuzu oluşturmak ve keyfini \xe7ıkarmak i\xe7in aşağıdaki butona tıklayın!",pro:"Pro",credits:e=>"Artık ".concat(e," kredi eklediniz."),upgrade:"Pro Planınızı Değiştirdiniz",upgradeDescription:"Artık",upgradeDescription1:"AI d\xfcnyasında yolculuğunuza devam etmek i\xe7in aşağıdaki butona tıklayın ve sahip olduğumuz harika AI ara\xe7larının keyfini \xe7ıkarın!",changedPlanDescription:e=>"Artık ".concat(e," krediniz var, AI d\xfcnyasında yolculuğunuza devam etmek i\xe7in aşağıdaki butona tıklayın ve sahip olduğumuz harika AI ara\xe7larının keyfini \xe7ıkarın!"),scheduledDowngradeTitle:"Plan değişikliğiniz planlandı",scheduledDowngradeDescription:(e,t)=>"Mevcut faturalama d\xf6neminiz sona erdiğinde ".concat(t," tarihinden itibaren ").concat(e," krediniz olacak. O zamana kadar mevcut plan avantajlarınızı koruyacaksınız. Devam etmek i\xe7in aşağıdaki d\xfcğmeye tıklayın.")},errors:{insufficientBalance:{title:"Yetersiz Bakiye",description:"\xdczg\xfcn\xfcz, hesabınızdaki yetersiz bakiye nedeniyle işleminiz şu anda ger\xe7ekleştirilemiyor. İşlemi tamamlamak i\xe7in yeterli bakiyenizin olduğundan emin olun. Daha fazla yardıma ihtiyacınız varsa, l\xfctfen destek ekibimizle iletişime ge\xe7in. Anlayışınız i\xe7in teşekk\xfcr ederiz.",cancel:"İptal"}},reActivate:{header:"Başarılı!",description:"Abonelik planınız başarıyla yeniden etkinleştirildi, aboneliğinizi faturalandırma ayarları ekranından y\xf6netebilirsiniz."}},billing:{title:"Abonelik",actions:{cancelPlan:"Planı İptal Et",changePlan:"Planı Değiştir",cancelScheduledDowngrade:"Plan d\xfcş\xfcrmeyi iptal et",cancelScheduledDowngradeConfirmation:"Plan d\xfcş\xfcrmeyi iptal etmek istediğinizden emin misiniz?"},nextPaymentOn:"Sonraki \xd6deme Tarihi",yourSubscriptionEndsAt:"Aboneliğiniz şu tarihte sona eriyor",scheduledDowngradeEffective:"Ge\xe7erli",scheduledChange:{title:"Planlanmış Değişiklik",downgradeTo:"Şu plana ge\xe7iş",scheduledFor:"planlandığı tarih"},paymentMethod:"\xd6deme Y\xf6ntemi",updatePaymentMethod:"\xd6deme Y\xf6ntemini G\xfcncelle",updatePaymentMethodModal:{success:"\xd6deme y\xf6ntemi başarıyla g\xfcncellendi."},billingHistory:{title:"Faturalandırma Ge\xe7mişi",usd:"USD",table:{date:"Tarih",description:"A\xe7ıklama",amount:"\xd6deme Tutarı",receipt:"Makbuz Yazdır"}}},cancelSubscription:{title:"Sizi kaybettiğimiz i\xe7in \xfczg\xfcn\xfcz!",description:"\xdccretsiz plana ge\xe7meye karar verdiğinizde nedenini bilmek isteriz.",other:"Aboneliğinizi iptal etme nedeninizi bize s\xf6yleyebilir misiniz?",actions:{cancel:"İptal",submit:"İptali Onayla",continueToCancellation:"İptale Devam Et",cancelAnyWay:"Yine de İptal Et",back:"Geri"},confirm:{title:"İptalinizi Onaylayın",description:"Sen ",description2:" planında kalacaksınız",description1:"Bu tarihten sonra pro \xf6zellikleri kullanma yeteneğiniz olmayacak, devam etmek istediğinizden emin misiniz?"},pastDueConfirmation:{title:"İptalinizi Onaylayın",description:"Aboneliğinizin s\xfcresi ge\xe7miş durumda, Artık pro \xf6zelliklere erişiminiz yok. Aboneliğinizi iptal etmek, ilgili avantajları kalıcı olarak kaldıracaktır. Devam etmek istediğinizden emin misiniz?"},congrats:"Tebrikler!",discount:{title:"Gelecek ay %40 indirim kazanın!",description:"İşinizi \xf6nemsiyoruz! Gelecek ay aboneliğiniz i\xe7in size \xf6zel %40 indirim sunuyoruz. Hizmetimizin keyfini indirimli fiyata \xe7ıkarın!",action:"Şimdi Al",success:"Gelecek ay aboneliğiniz %40 indirimli olacak"},freeMonth:{title:"Sadece sizin i\xe7in 2 ay \xfccretsiz!",description:"Sizinle kalmanız i\xe7in bu teklifi vermek istiyoruz, pro \xf6zelliklerimizi daha fazla keşfetmek ve denemek i\xe7in daha fazla zamanınız olacak!",action:"Teklifi Kabul Et",success:"Artık pro \xf6zelliklerimizi daha fazla denemek i\xe7in 60 g\xfcn\xfcn\xfcz var"},successCancelation:{title:"Aboneliğiniz iptal edildi",description:"Bizimle ge\xe7irdiğiniz zaman i\xe7in teşekk\xfcr ederiz. Geri d\xf6nmeye karar verirseniz, sizi tekrar ağırlamaktan mutluluk duyarız. Yolculuğumuzun bir par\xe7ası olduğunuz i\xe7in teşekk\xfcr ederiz!"}
1,preCancelAlert:{title:"Kredilerinizi Kaybetmeyin",description:"Aboneliği iptal etmek anlamına gelir ki, kullanılmayan t\xfcm krediler kaybolacak. Kalan krediler de faturalandırma d\xf6ng\xfcn\xfcz\xfcn sonunda otomatik olarak s\xfcresi dolacak.",description1:"Devam etmek istediğinizden emin misiniz?",actions:{keepCredits:"Kredileri Koru",cancelAnyway:"Yine de İptal Et"}}},planExpired:{title:"\xdczg\xfcn\xfcz! Pro Plan Abonelik Yenilemeniz Başarısız Oldu.",description:"Pro Plan abonelik yenilemenizin başarısız olduğunu bildirmekten \xfcz\xfcnt\xfc duyuyoruz.",action:"\xd6deme Y\xf6ntemini G\xfcncellemek İ\xe7in Tıklayın",popup:{title:"Pro abonelik erişiminizin devam etmesi i\xe7in \xf6deme y\xf6ntemini g\xfcncelleyin. Şimdi 'G\xfcncelle'ye tıklayın.",submit:"G\xfcncelle"}},waitlistPopup:{title:"Bith, video oluşturmayı daha da kolaylaştıracak yeni bir AI destekli ara\xe7 oluşturuyor.",action:"Erken Erişim İ\xe7in Bekleme Listesine Katılın"},mobileBanner:{title:"Yalnızca Masa\xfcst\xfcnde Mevcut"},trafficBanner:{title:"Web sitemizde şu anda alışılmadık derecede y\xfcksek bir trafik hacmi yaşadığımız i\xe7in verdiğimiz rahatsızlıktan dolayı \xf6z\xfcr dileriz. Bu sorunu \xe7\xf6zmek i\xe7in aktif olarak \xe7alışıyoruz."},shortCutsModal:{title:"Klavye Kısayolları",play:"Oynat",pause:"Duraklat",delete:"Sil",split:"B\xf6l",undo:"Geri Al",redo:"Yinele",copy:"Kopyala",paste:"Yapıştır",duplicate:"\xc7oğalt",zoomIn:"Zaman \xc7izelgesini Yakınlaştır",zoomOut:"Zaman \xc7izelgesini Uzaklaştır",nextFrame:"Sonraki/\xd6nceki Kare",prevFrame:"\xd6nceki Kare"},summerSale:{title:"%40 İndirimle “Pro Plan“ Yaz İndirimi, Pro'ya Y\xfckseltin!",popup:{title:"Bu indirimi almak i\xe7in BITH hesabınıza giriş yapmanız yeterlidir!"}},winterSale:{title:"%40 İndirimle “Pro Plan“ Kış İndirimi, Pro'ya Y\xfckseltin!",popup:{title:"Bu indirimi almak i\xe7in BITH hesabınıza giriş yapmanız yeterlidir!"}},editTracker:{saving:"Kaydediliyor ...",finishSaving:"Video değişiklikleri kaydedildi."},videosExpires:{title:"Dikkat Bith.ai kullanıcıları, 1 Ekim'den \xf6nce y\xfcklenen t\xfcm videolar 15 Ekim'de silinecektir!",upgrade:"Y\xfckselt",title1:"videolarınızın silinmesini istemiyorsanız."},studioTools:{subtitles:{generate:"Altyazı Oluştur",back:"Geri",uploadingVideo:"Video Y\xfckleniyor ...",generatingSubtitles:"Altyazılar Oluşturuluyor ..."}},notFound:{title:"404 Hatası",description:"OOPs, Bu sayfa mevcut değil"},backWhileCompiling:{header:"\xdczg\xfcn\xfcz",title:"Dışa aktarma işlemi sırasında videoyu d\xfczenleyemezsiniz, l\xfctfen video dışa aktarılırken bekleyin",goHome:"St\xfcdyoya Geri D\xf6n"},smartClipper:{upload:{title:"\xd6ne \xc7ıkan Klip Aracı",description:"Uzun videoları tek tıklamayla kısa videolara d\xf6n\xfcşt\xfcren bir \xfcretken AI video aracı."},generate:{title:"\xd6ne \xc7ıkan Klip Ayarları",form:{fields:{language:{label:"Videonun Orijinal Dili",placeholder:"Dil"},translateTo:{label:"\xc7evir",placeholder:"\xc7eviri Yok - Orijinal Dili Kullan.."},timeframe:{label:"İşleme Zaman \xc7er\xe7evesi"},clipLength:{label:"Tercih Edilen Klip Uzunluğu"},keywords:{label:"Anahtar Kelimelerle Konu Filtresi (İsteğe Bağlı)",placeholder:"Anahtar kelimeler ekleyin, virg\xfclle ayrılmış"}},actions:{back:"Geri",submit:"Klipleri Al"}}},clips:{delete:{header:"Sil",title:"Bu klibi ger\xe7ekten silmek istiyor musunuz?",success:{title:"Klibiniz başarıyla silindi"}}},processing:"İşlem tamamlandığında size e-posta ile bildireceğiz"},queueMessage:{you:"Siz",inQueue:"kuyruktasınız",title:"Planınızı y\xfckseltin ve \xd6ncelikli İşleme \xf6zelliğinin keyfini \xe7ıkarın",title1:"veya videonuz dışa aktarılırken diğer videoları d\xfczenleyebilirsiniz"},textToVideo:{steps:{next:"İleri",back:"Geri"},script:{title:"Video Oluşturucu",videoAspectRatioTitle:"Video Boyutları",videoAspectRatioSmallTitle:"(En Boy Oranı)",videoAspectRatioDesc1:"* Instagram reels/hikaye, Youtube shorts ve Tiktok i\xe7in 9:16",videoAspectRatioDesc2:"* Youtube videoları i\xe7in 16:9",videoDurationTitle:"Video S\xfcresi",scriptLanguageTitle:"Senaryo Dili",voiceoverGenderTitle:"Seslendirme Akt\xf6r\xfc",videoThemeTitle:"Video Teması",videoToneTitle:"Video Tonu",advancedSettings:"Gelişmiş Ayarlar",videoIdeaTitle:"Video Fikri",videoIdeaPlaceholder:"PayPal Mafyası kimdir?",videoScriptPlaceholder:"Senaryonuzu buraya yapıştırın ...",videoIdeaPrefix:"",generateVideoButton:"Sahneleri Oluştur",generateScript:"Senaryo Oluştur",backgroundMusic:"Arka plan m\xfcziği",zoomInAndOut:"Hareket Efektleri",aiModule:"G\xf6rsel Oluşturma Mod\xfcl\xfc",remainingCharacters:"karakter",backgroundMusicTooltip:"Trend m\xfczik eklemek istemiyorsanız kutuyu işaretleyin.",zoomInAndOutTooltip:"Her oluşturulan g\xf6rsel i\xe7in yakınlaştırma/uzaklaştırma hareket efektleri istiyorsanız kutuyu işaretleyin. (\xdccretli \xf6zellik)",zoomInAndOutTooltipFree:"Her oluşturulan g\xf6rsel i\xe7in yakınlaştırma/uzaklaştırma hareket efektleri istiyorsanız kutuyu işaretleyin.",partner:"Seslendirme Tarafından Desteklenmektedir",durationEstimate:"Tahmini S\xfcre",edit:{generating:"Senaryo Oluşturuluyor",generatingSubTitle:"Senaryonuzu oluştururken l\xfctfen bekleyin.",title:"Komut Dosyasını İncele",reset:"Sıfırla",fields:{hook:{label:"Kanca",placeholder:"Kanca",tooltip:"Video kancası, izleyicilerin izlemeye devam etmesini sağlamak i\xe7in kısa ve dikkat \xe7ekici bir başlangı\xe7tır."},body:{label:"G\xf6vde",placeholder:"Kanca",tooltip:"Video g\xf6vdesi, kancadan sonra gelen ana i\xe7eriktir ve temel bilgileri veya anlatıyı sunar."},conclusion:{label:"Sonu\xe7",placeholder:"Sonu\xe7",tooltip:"Video sonucu, ana noktaları \xf6zetler ve i\xe7eriğe kapanış getirir."}},resetAlert:{title:"Senaryo değişikliklerini sıfırlamak istediğinizden emin misiniz?",actionText:"Evet"},chartCount:e=>"".concat(e," Karakter"),loader:{generating:"Senaryonuz oluşturuluyor ...",description:"bu işlem 3 dakikaya kadar s\xfcrebilir. Sabırlı olduğunuz i\xe7in teşekk\xfcr ederiz!"}},tabs:{prompt:"Video Fikri",script:"Senaryonuzu Yapıştırın"},confirmation:{header:"Video oluşturma işlemine devam etmek istediğinizden emin misiniz?",title:"Se\xe7tiğiniz komuta bağlı olarak video s\xfcresi yaklaşık olarak",prompt:"Video Komutu:",script:"Video Senaryosu:",properties:"Video \xd6zellikleri:"},voiceOverLanguageRequired:"L\xfctfen senaryo dilini belirtin",usage:{title:"Video Maliyeti:",disclaimer:"* Fiyatlar se\xe7iminize g\xf6re ayarlanır"},credits:e=>
1"".concat(e," Kredi"),visuals:{visualsSource:{title:"G\xf6rselleri Se\xe7in"},aiImages:{title:"AI G\xf6r\xfcnt\xfc Stili"}},voiceOverSettings:{title:"Seslendirme",gender:"Ses Cinsiyeti",male:"Erkek",female:"Kadın"},script:{title:"Senaryo ve G\xf6rseller"},imageStyle:{title:"G\xf6r\xfcnt\xfc Stili"}},advancedAiModulePopup:{title:"Daha gelişmiş g\xf6rsel oluşturma mod\xfcl\xfcm\xfcz\xfc kullanmak i\xe7in kredi ekleyin",fast:"Hızlı",quality:"Y\xfcksek Kalite",accurate:"Daha Doğru",noWatermark:"Filigran Yok",cancel:"İptal",addMins:"Kredi Ekle"},generating:{title:"AI kısa video senin i\xe7in yolunda ...",info:"Sahnelerinizi oluşturmak i\xe7in işlem s\xfcresi 2 dakikaya kadar s\xfcrebilir.",exportInfo:"Senaryonuzu g\xf6rsellere ve sesle d\xf6n\xfcşt\xfcr\xfcyoruz, her şeyi sorunsuz bir şekilde entegre ediyoruz ve videonuzu tamamlıyoruz.",infoAction:"St\xfcdyoya Geri D\xf6n",errors:{idea:{title:"\xdczg\xfcn\xfcz, video fikriniz i\xe7erik politikamıza aykırı olabilir.",action:"Başka Bir Fikir Deneyin"}},processingVideo:"Video İşleniyor ...",processingScenes:"Sahneler Oluşturuluyor ..."},download:{downlaodButton:"İndir",share:"Paylaş",removeWatermark:"Filigranı Kaldır",downloadMusicLicense:"M\xfczik Lisansını İndir",createANewVideoButton:"Yeni Video Oluştur",editVideo:"Videoyu D\xfczenle",feedback:{title:"Geri bildiriminizi duymak isteriz",description:"Geri bildiriminiz, hizmetlerimizi geliştirmek ve size en iyi deneyimi sunmak i\xe7in \xe7ok \xf6nemlidir!",success:"Geri bildiriminiz i\xe7in teşekk\xfcr ederiz!",form:{fields:{feedback:"Geri bildiriminizi yazın ..."},submit:"G\xf6nder"}}},limitationPopup:{title:"Sınırınıza Ulaştınız!",description:"Daha fazla oluşturabilmek i\xe7in hesabınızı doldurun",addMinutes:"Kredi Ekle",videos:"Videolar.",images:"G\xf6rseller.",voiceovers:"Seslendirmeler"},editor:{sidebar:{scenes:{title:"Sahneler",back:"Geri",backToScene:"Geri",generalSettings:{animations:{title:"Hareket Efektleri",tooltip:{title:"Hareket Efektleri",description:"Bu kutucuğun işaretini kaldırdığınızda, videonuzu yakınlaştırma/uzaklaştırma gibi herhangi bir animasyon olmadan dışarı aktaracaksınız."}},subtitles:{title:"Altyazılar",tooltip:{title:"Altyazılar",description:"Bu kutucuğun işaretini kaldırdığınızda videonuzu altyazısız olarak dışarı aktaracaksınız."}},backgroundMusic:{title:"Arkaplan M\xfcziği"}},scene:{title:"Sahne",replaceImage:"G\xf6rseli Değiştir",editScene:"Sahneyi Değiştir",trim:"Kırp",upload:"Y\xfckle",scale:{fill:"Doldurmak İ\xe7in \xd6l\xe7ekle",fit:"Sığdırmak İ\xe7in \xd6l\xe7ekle"},deletePopup:{header:"Sil",title:"Bu g\xf6rseli ger\xe7ekten silmek istiyor musunuz?",success:{title:"G\xf6rseliniz başarıyla silindi"}},settings:{title:"Sahne Ayarları",animation:{title:"Animasyon T\xfcr\xfc",none:"Yok"}}},changeImage:{upload:{title:"Dosya Y\xfckle"},aiImages:{title:"Oluştur",placeholder:"G\xf6rsel oluşturmak i\xe7in komut girin",back:"AI G\xf6rsellere Geri D\xf6n"},stock:{title:"Stok K\xfct\xfcphanesi",images:"G\xf6rseller",videos:"Videolar",scenes:"Sahneler"}},music:{title:"Bir g\xfczel par\xe7a se\xe7tik senin i\xe7in!"}},texts:{title:"Metin",tabs:{settings:"Metin Ayarları",effects:"Efektler",presets:"\xd6n Ayarlar"}},settings:{title:"Ayarlar"},subtitles:{title:"Altyazılar",voiceOver:{title:"Seslendirme",regenerate:"Yeniden Oluştur",freeUsage:e=>"Kalan ".concat(e," \xfccretsiz seslendirme yeniden oluşturmanız var."),confirmation:{title:"Seslendirmeyi Yeniden Oluştur?",description:"Bu, mevcut seslendirmeyi g\xfcncellenmiş metinle değiştirecektir.",currentCredits:"Mevcut kredileriniz ",usedCredits:"Onaydan sonra kredileriniz ",actionText:"Yeniden Oluştur"}}},overlays:{title:"Kaplamalar",opacity:{title:"Opaklık"},background:{title:"Arkaplan Kaplaması"},animated:{title:"Kaplamalar Animasyonlu"}}},export:"Videoyu Dışa Aktar"},disclaimer:"Oluşturulan i\xe7eriği kontrol edemeyiz. Dikkatlice inceleyin ve kendi takdirinize g\xf6re kullanın.",scenes:{delete:{error:"Son sahneyi silemezsiniz",confirmation:{title:"Bu sahneyi silmek istediğinizden emin misiniz?"}},split:{error:"Minimum sahne s\xfcresine ulaştınız"}}},textToScene:{title:"Sahne Oluşturucu",textToScene:"Metin Video",imageToScene:"G\xf6rsel Video",usage:"Sahne i\xe7in Kullanılan Krediler =",usageShort:"Sahne =",description:"5 saniyelik bir sahne oluşturun",form:{fields:{prompt:{label:"\xc7ekiminizi Tanımlayın",placeholder:"\xc7ekiminizi, ışıklandırmayı ve sahnenin nasıl hareket etmesi gerektiğini tanımlayın ..."},aspectRatio:{label:"Sahne En Boy Oranı"},sceneDuration:{label:"Sahne S\xfcresi"},advancedSettings:{label:"Gelişmiş Ayarlar",loop:"D\xf6ng\xfc"}},imageUploader:{title:"G\xf6rselinizi buraya s\xfcr\xfckleyip bırakın veya ",browse:"G\xf6z at",title1:" bir g\xf6rsel se\xe7mek i\xe7in",maxSize:"Maksimum Dosya Boyutu : 16MB",supportedMiemTypes:"Desteklenen: ",library:{title:"G\xf6rsel K\xfct\xfcphanesi",import:"K\xfct\xfcphaneden İ\xe7e Aktar",empty:"Hen\xfcz g\xf6rseliniz yok. Basit bir komut yazarak aşağıda bir g\xf6rsel oluşturun."},swapFields:"Alanları Değiştir"},submit:"Video Oluştur"},modelSelector:{title:"Video Modeli"},historyList:{title:"Oluşturulan Video Ge\xe7mişi",empty:"Hen\xfcz video oluşturulmadı!"},preview:{generateNew:"Yeni Sahne Oluştur",download:"İndir"},bottomNav:{settings:"Sahne Ayarları",history:"Ge\xe7miş"},failed:{title:"Video İşlenemedi",description:"Komut, desteklenmeyen kelimeler i\xe7erdiği i\xe7in isteğinizi işleyemedik.",description1:"Bu video i\xe7in kredileriniz otomatik olarak iade edilmiştir. L\xfctfen farklı bir komutla tekrar deneyin.",action:"Yeni Bir Video Oluştur"},generatePrompt:"Bana Bir İstem",delete:{header:"Sil",title:"Bu video'yı ger\xe7ekten silmek istediğinizden emin misiniz?",success:"Video başarıyla silindi"},header:{disclaimer:"* Fiyatlar se\xe7iminize g\xf6re ayarlanır"}},quoteToVideo:{title:"Cite to Video",cost:"Video Maliyeti",form:{fields:{quote:{label:"Cite",placeholder:"R\xfczg\xe2rın y\xf6n\xfcn\xfc değiştiremem ama yelkenlerimi ayarlayarak her zaman hedefime ulaşabilirim.",remainingCharacters:"Karakterler"},author:{label:"Yazar",placeholder:"Yazarın Adını Yazın"},visualStyle:{label:"G\xf6rsel Stili"}},submit:"Video Oluştur"}}
1,textToImage:{title:"G\xf6rsel Oluşturucu",generate:"G\xf6rsel Oluştur",usage:"G\xf6rsel i\xe7in Kullanılan Krediler =",credits:e=>"".concat(e," Kredi"),form:{fields:{prompt:{label:"Komut Yazın",placeholder:"Hayal Etmeye Başlayın ..."},aspectRatio:{label:"G\xf6rsel Boyutu"},imageStyle:{label:"G\xf6rselleri se\xe7in"},superPrompt:{label:"Komutu Geliştir (+10 Kredi)",tooltip:"Daha iyi bir g\xf6rsel oluşturma i\xe7in komutunuzu otomatik olarak iyileştirmek ve geliştirmek i\xe7in bu kutuyu işaretleyin, Unutmayın ki maliyet ek olarak",tooltip1:" 10 kredi artacaktır."}}},historyList:{title:"Oluşturulan G\xf6rseller",empty:"Hen\xfcz g\xf6rsel oluşturulmadı!"},bottomNav:{settings:"G\xf6rsel Ayarları",history:"Ge\xe7miş"}},textToSpeech:{title:"Seslendirme Oluşturucu",generate:"Seslendirme Oluştur",usage:"Seslendirme i\xe7in Kullanılan Krediler =",credits:e=>"".concat(e," Kredi"),form:{fields:{prompt:{label:"Metin",placeholder:"Buraya yazmaya başlayın veya konuşmaya d\xf6n\xfcşt\xfcrmek istediğiniz herhangi bir metni yapıştırın.",maxCharacters:"Characters"}}},empty:{title:"Hen\xfcz seslendirme oluşturulmadı!"},historyList:{title:"Oluşturulan Seslendirme Ge\xe7mişi",empty:"Hen\xfcz seslendirme oluşturulmadı!"},bottomNav:{settings:"Seslendirme Ayarları",history:"Ge\xe7miş"},disclaimer:"AI tarafından oluşturulan seslendirmelerimizde kusurlar ve ara sıra hatalar olabileceğini l\xfctfen unutmayın.",loading:"Bu birka\xe7 dakika s\xfcrebilir, l\xfctfen sabırlı olun.",listHeader:{title:"Ses Başlığı",dateCreated:"Oluşturulma Tarihi",duration:"S\xfcre"},voiceoverDetails:{script:{title:"Seslendirme Metni"}},deleteConfirmation:{header:"Sil",title:"Bu seslendirmeyi ger\xe7ekten silmek istiyor musunuz?",success:"Seslendirme başarıyla silindi"},feedback:{success:"Geri bildiriminiz i\xe7in teşekk\xfcr ederiz!"}},aiAvatars:{title:"AI Avatarlar",header:{usage:"Video Maliyeti:",disclaimer:"* Maliyet, komutun karakter sayısına bağlıdır"},script:{title:"Komut",placeholder:"Komutunuzu buraya yazın ..."},sampleAvatars:"Ya da bir \xf6rnek avatar se\xe7in",voiceover:"Seslendirme Cinsiyeti",videoSettings:{title:"Video Ayarları",dimension:{title:"Video Boyutu"},captionStyles:{title:"Altyazı Stilleri"},backgroundStyle:{title:"Arkaplan Stili"}},avatar:{title:"Bir Avatar Se\xe7in"},language:{title:"Komut Dili",placeholder:"Dil Se\xe7in"},selectVoiceover:{title:"Seslendirme Se\xe7in",none:"Yok"},uploadImage:{title:"G\xf6rsel Y\xfckle",description:"Bir g\xf6rsel se\xe7in ve avatar'a d\xf6n\xfcşt\xfcr\xfcn",dragBox:"G\xf6rselinizi buraya s\xfcr\xfckleyip bırakın veya",browse:"G\xf6z at",chooseFile:"bir g\xf6rsel se\xe7mek i\xe7in",supportedMiemTypes:"Desteklenen:",disclaimer:"Avatar'ınız bu kurallara uymalıdır.",seeDetails:"Detayları G\xf6r\xfcnt\xfcle",failed:"Avatar oluşturulamadı. Farklı bir fotoğraf deneyin.",maxSizeMessage:"Dosya 50 MB'den b\xfcy\xfck"},uploadVoiceover:{title:"Upload Voiceover",description:"Choose a voiceover to convert to an avatar",dragBox:"Drag and drop your voiceover here or",browse:"Browse",chooseFile:"to choose a voiceover",supportedMiemTypes:"(Supports: MP3, WAV)",minDurationMessage:"Dosya 1 saniyeden k\xfc\xe7\xfck",maxDurationMessage:"Dosya 10 dakikadan b\xfcy\xfck",sizeLimitMessage:"Dosya 50 MB'den b\xfcy\xfck"},imageRequirementsPopup:{title:"Fotoğraf Gereksinimleri",reason:"Y\xfcklediğiniz fotoğraf gereksinimleri karşılamıyor, l\xfctfen farklı bir fotoğraf deneyin ve aşağıdaki kılavuzlara uyun.",goodPhotos:"İyi Fotoğraflar",badPhotos:"K\xf6t\xfc Fotoğraflar",description:"Son fotoğraflarınız (sadece sen), yakın \xe7ekimler ve tam g\xf6vde \xe7ekimlerinin bir karışımı, farklı a\xe7ılardan, ifadeler (g\xfcl\xfcmseme, n\xf6tr, y\xfcksek sesle konuşma), ve bir \xe7eşit kıyafetler. Y\xfcksek \xe7\xf6z\xfcn\xfcrl\xfckte ve mevcut g\xf6r\xfcn\xfcm\xfcn\xfcz\xfc yansıtan fotoğraflar yapın.",description1:"Grup fotoğrafları, şapkalar, g\xf6zl\xfckler ve ağır filtreler. \xc7ok eski, d\xfcş\xfck \xe7\xf6z\xfcn\xfcrl\xfckte veya mevcut g\xf6r\xfcn\xfcm\xfcn\xfcz\xfc yansıtmayan fotoğrafları ka\xe7ının."},avatarsForm:{name:{label:"Ad"},gender:{label:"Cinsiyet"},ethnicity:{label:"Etniklik"},age:{label:"Yaş"},modal:{title:"Avatarınız hazır!",description:"Şimdi, avatarınıza biraz detay ekleyerek canlandıralım",save:"Avatar ile Devam Et",generateNewAvatar:"Yeni Avatar Oluştur"}},chooseAvatar:{myAvatars:"Benim Avatarlarım",sampleAvatars:"\xd6rnek Avatarlar",none:"Yok"},review:{title:"Y\xfcklenenleri İncele",description:"Onaylanmış fotoğraflar işaretlendi ve avatarınız i\xe7in bir g\xf6r\xfcn\xfcm oluşturmaya hazır.",failed:"Başka bir g\xf6rsel y\xfckle",reCrop:"G\xf6rseli Yeniden Kırp",failedDescription:"G\xf6rsel onaylanmadı. L\xfctfen avatar kurallarına uygun bir g\xf6rsel y\xfckleyin."}
1,generating:{title:"Avatarınız yolunda!",exportInfo:"Neredeyse tamamlandı, l\xfctfen y\xfckleme butonuna tıklayın.",failed:{title:"Avatar İşlenemedi",description:"Avatarınızı işleyemedik, l\xfctfen farklı bir fotoğraf deneyin.",action:"Yeni Bir Avatar Oluştur"}},customAvatarGenPopup:{background:{suggestions:"\xd6neriler",placeholder:"Avatarınız i\xe7in arkaplan veya sahne a\xe7ıklaması (\xf6rneğin, 'yazılım geliştirme ortamında soft lighting', 'doğal dış ortam', 'n\xf6tr \xe7ekim odası arkaplanı')"},confirmation:{title:"Avatar oluşturmak i\xe7in devam etmek istediğinizden emin misiniz?",properties:"Avatar \xd6zellikleri:",hijab:"Hijab"},failed:{title:"Avatar Oluşturulamadı",description:"Avatar oluşturulamadı, l\xfctfen farklı bir fotoğraf deneyin. Kredileriniz otomatik olarak iade edilecektir.",action:"Yeni Bir Avatar Oluştur"}}},maintenancePage:{title:"\xdczg\xfcn\xfcz, AI Image Editor bakım aşamasındadır",description:"Şu anda planlı bakım yapıyoruz. L\xfctfen yakında tekrar kontrol edin!"},onBoarding:{skip:"Şimdilik Atla"},aiImagesStudio:{imagePopup:{prompt:"Komut",promptPrefix:"",copy:"Kopyala",enhancedPrompt:"Geliştirilmiş Komut",animateTooltip:"G\xf6rselinize biraz hareket vermek ister misiniz?",unlock:"G\xf6rselinizin tam potansiyelini a\xe7",animate:"Animasyon",edit:"D\xfczenle",upscale:"B\xfcy\xfct",model:"Model:"},delete:{header:"Sil",title:"Bu g\xf6rseli ger\xe7ekten silmek istediğinizden emin misiniz?",success:"G\xf6rsel başarıyla silindi"}},aiVideoStudio:{videoPopup:{prompt:"Video Komutu:",properties:"Video \xd6zellikleri:",promptPrefix:"",copy:"Kopyala",emptyPrompt:"Komut verilmedi",quote:"C\xfcmle:",videoModel:"Video Modeli:",voiceoverModel:"Seslendirme Modeli:",negativePrompt:"Negatif Komut:"},delete:{header:"Sil",title:"Bu videoyi ger\xe7ekten silmek istediğinizden emin misiniz?",success:"Video başarıyla silindi"}},createImage:{uploadModal:{upload:{title:"G\xf6rsel / Video Y\xfckle",dragBox:"G\xf6rselinizi veya videonuzu buraya s\xfcr\xfckleyip bırakın",or:" veya ",browse:"G\xf6z at ",dragBox1:" ",info:"",upload:"Y\xfckle"},size:{title:"Maksimum g\xf6rsel boyutu : ",title1:"5 MB",message:"Dosya 5 MB'den b\xfcy\xfck",messageDynamic:e=>"Dosya ".concat(e," MB'den b\xfcy\xfck"),videoMessage:"Dosya 150 MB'den b\xfcy\xfck"},duration:{title:"Maksimum g\xf6rsel s\xfcresi : ",title1:"5 Dakika",message:"Dosya 5 Dakikadan b\xfcy\xfck"}}},creditsBalance:{title:"Kredi Bakiyesi",totalCreditsAvailable:"Toplam Kullanılabilir Kredi",planCreditsLeft:{title:"Kalan Aylık Kredi",tooltip:"Aylık kredi, ay sonuna kadar kullanılabilir ve her ay sıfırlanır"},topUpCreditsLeft:{title:"Kalan Satın Alınan Krediler",tooltip:"Kalan krediler, satın aldığınız kredilerden kullanılmamış bakiyenizi temsil eder."},monthlyCredits:"Aylık krediler",purchasedCredits:"Satın alınan krediler",planCreditsSubtitle:"Her fatura d\xf6neminde yenilenir",purchasedCreditsSubtitle:"Tek seferlik satın alımlar",expiresInDays:e=>1===e?"1 g\xfcn i\xe7inde sona erer":"".concat(e," g\xfcn i\xe7inde sona erer")},changePlan:{current:"Mevcut Plan Kredileri :",tabs:{changeCurrentPlan:{title:"Mevcut Planı Değiştir",tooltip:"Krediler fatura d\xf6nemi sonunda sıfırlanacak",description:"Yeni planda istediğiniz kredi sayısını aşağıdan se\xe7in:"},oneTimePayment:{title:"Tek Seferlik \xd6deme",tooltip:"Krediler devredilecek",description:"Hesabınıza eklemek istediğiniz kredi sayısını aşağıdan se\xe7in:"}}},reactivateFlow:{title:"G\xf6r\xfcn\xfcşe g\xf6re aboneliğiniz şu anda duraklatılmış. Endişelenmeyin, yeniden etkinleştirmek kolaydır ve size hi\xe7bir şey \xf6demez.",action:"Yeniden Etkinleştir"},yearlyDisclaimer:{title:"Mevcut planınızı y\xfckseltmek mi istiyorsunuz? Yardım i\xe7in destek ekibimizle iletişime ge\xe7in. Abonelik deneyiminizi geliştirmek i\xe7in buradayız!"},sharePopup:{confirmation:{title:"Videonuzu paylaşmak istediğinizden emin misiniz?",description:"Bağlantıya sahip olanlar videoya erişebilir"},title:"Bağlantıyı Paylaş",description:"Videonuzu paylaşmak i\xe7in aşağıdaki bağlantıyı kopyalayın"},effects:{title:"Metin Efektleri"},highlightEffects:{title:"Metin Vurgulama Efektleri"},verification:{title:"E-posta Adresini Doğrula",description:" size bir OTP Kodu g\xf6nderdik",change:"Değiştir",didntReceive:"OTP kodunu almadınız mı?",resend:"Kodu Yeniden G\xf6nder",resendSuccess:"Yeni bir 
1kod e-posta adresinize g\xf6nderildi",verify:"Doğrula",checkSpam:"E-postayı almadınız mı? L\xfctfen spam/junk klas\xf6r\xfcn\xfcz\xfc kontrol edin ve bizi g\xfcvenli g\xf6nderici listenize ekleyin."},trimPopup:{title:"Videonuzu Kırpın",cancel:"İptal",selectVideo:"Videoyu Se\xe7"},invalidLink:{title:"Bu Video Linki Ge\xe7ersiz",description:"G\xf6r\xfcn\xfcşe g\xf6re videonuzun linki ge\xe7ersiz. L\xfctfen tekrar kontrol edin."},creditsSysterm:{title:"Kredi Sistemi",description:"İster yeni bir i\xe7erik oluşturucu olun, ister profesyonel bir i\xe7erik oluşturucu olun, sizin i\xe7in m\xfckemmel bir planımız var",tooltip:e=>"Krediler, abonelik tarihinizden itibaren her ay ".concat(e," olarak sıfırlanır. Gerektiğinde daha fazla satın alın veya Y\xfckseltin.")},serviceDown:{title:e=>"".concat(e," Aracı Ge\xe7ici Olarak Kullanılamıyor"),description:e=>"".concat(e," şu anda oluşturulamadı. L\xfctfen kısa bir s\xfcre sonra tekrar deneyin"),action:"St\xfcdyoya D\xf6n",features:{image_generation:{title:"G\xf6rsel Oluşturucu",description:"G\xf6rsel"},voice_over_generation:{title:"Seslendirme Oluşturucu",description:"Seslendirme"},text_to_video_script_generation:{title:"Video Oluşturucu",description:"Senaryo"},text_to_video_scene_generation:{title:"Video Oluşturucu",description:"video"},scene_generation_text_to_video:{title:"Video Oluşturucu",description:"video"},scene_generation_image_to_video:{title:"Video Oluşturucu",description:"video"},transcription:{title:"Altyazı Oluştur",description:"altyazılar"},quote_to_video:{title:"Cite to Video",description:"video"},avatar_photo_generation:{title:"Avatar Oluşturucu",description:"avatar"},avatar_video_generation:{title:"Avatar Oluşturucu",description:"avatar"},image_editor:{title:"G\xf6rsel D\xfczenleyici",description:"g\xf6rsel"},image_upscaler:{title:"G\xf6rsel B\xfcy\xfct\xfcc\xfc",description:"g\xf6rsel"}},modelDown:{title:e=>"".concat(e," Ge\xe7ici Olarak Kullanılamıyor"),description:e=>"The ".concat(e," model is unavailable at the moment. Try switching to another model to continue"),back:"St\xfcdyoya D\xf6n",switch:"Modeli Değiştir"},providerDown:{title:"Model Kapatıldı",description:"Model ge\xe7ici olarak kullanılamıyor. L\xfctfen başka bir model deneyin.",back:"St\xfcdyoya D\xf6n",switch:"Modeli Değiştir"},templateExecutionFailure:{title:"Template Kapatıldı",description:"Template ge\xe7ici olarak kullanılamıyor. L\xfctfen başka bir template deneyin.",back:"St\xfcdyoya D\xf6n"}},videosOptionsPopup:{title:"Kısa Video"},serviceDownPopup:{title:"Servis Kapatıldı",description:"Yapay Zeka Destekli Senaryo Oluşturma (Video Fikri i\xe7in) bakımda ve yakında tekrar kullanıma sunulacak.",description1:"Ancak, “Senaryonuzu Yapıştırın” \xf6zelliği kullanılabilir durumda."},aspectRatioAlertPopup:{title:"Ge\xe7ersiz G\xf6r\xfcnt\xfc Boyutları",description:e=>"Y\xfcklenen g\xf6r\xfcnt\xfc gerekli boyutlara uymuyor. L\xfctfen g\xf6r\xfcnt\xfcn\xfcn genişlik/y\xfcksekliğinin ".concat(e," pikseli aşmadığından emin olun."),description1:e=>"Y\xfcklenen g\xf6r\xfcnt\xfc gerekli boyutlara uymuyor. L\xfctfen g\xf6r\xfcnt\xfcn\xfcn genişlik/y\xfcksekliğinin ".concat(e," pikseli aşmadığından emin olun.")},faqs:{title:"Sık\xe7a Sorulan Sorular"},discoverMore:{title:"Bith ile Daha Fazla Keşfet"},imageCropper:{actions:{crop:"Mahsul",cancel:"İptal etmek"}},creditsRolloverPopup:{title:"Kredi D\xf6n\xfcş\xfcm\xfc Başladı",description:"Kullanılmayan kredileriniz artık s\xfcresiz olarak her aya devredilir ve her zaman aylık plan kredilerinizden veya ek y\xfcklemelerinizden \xf6nce kullanılır. Devreden bakiyenizi korumak i\xe7in aboneliğinizi aktif tutun — herhangi bir işlem yapmanıza gerek yok!"},annualPlansPopup:{title:"Yıllık Planlar",discountAmount:"%20",descriptionPrefix:"Yıllık planlarımızla ",descriptionSuffix:" indirim kazanın.",descriptionSecondary:"Yeni planları ve g\xfcncellenmiş kredi koşullarını inceleyin.",cta:"Planı Y\xfckselt"},musicRemovalConfirmation:{header:"Videonuzunuz m\xfczik olmadan dışa aktarılacak",title:"Bu par\xe7a, telif hakkı sınırlamaları nedeniyle dışa aktarımınızda dahil edilmeyecektir. Bu \xf6zel m\xfczik veya se\xe7tiğiniz sosyal medya uygulamasından herhangi bir şey ekleyebilirsiniz"},deleteAccount:{header:"Hesabınızı Sil",title:"Hesabınızı silmek istediğinize emin misiniz?",description:"Bu işlem geri alınamaz ve hesabınızın tamamını silinecektir. T\xfcm ilişkili verileriniz kalıcı olarak silinecektir.",action:"Hesabı Sil"},useCases:{title:"Kullanıcıların Neler Yapıyor"},aiImageEditor:{newProject:"Yeni Proje",newProjectShort:"Yeni",prompt:{label:"Komut",placeholder:"Değiştirmek istediğiniz şeyi a\xe7ıklayın…"},deleteConfirmation:{header:"Bu oturumu ger\xe7ekten silmek istediğinize emin misiniz?",title:"Bu, y\xfcklenen g\xf6rseli ve bu oturum sırasında yapılan t\xfcm d\xfczenlemeleri kalıcı olarak silinecektir. Geri alamazsınız.",title2:"Bu, bu oturumda yapılan t\xfcm d\xfczenlemeleri kalıcı olarak silecektir. Kitaplığınızdan i\xe7e aktarılan g\xf6r\xfcnt\xfc değişmeden kalacaktır. Silinen d\xfczenlemeleri geri alamayacaksınız.",success:"Oturum başarıyla silindi"},editVersionActions:{download:"İndir",downloading:"İndiriliyor...",zoomIn:"Yakınlaştır",zoomOut:"Uzaklaştır",fitToCanvas:"Canvas'a Uygun",animate:"Animasyon Oluştur",upscale:"Upscale",copyLink:"Linki Kopyala",removeImage:"G\xf6rseli Sil"},editVersion:{failed:"Başarısız",failedDescription:"\xdczg\xfcn\xfcz, bir hata oluştu ve isteğiniz başarısız oldu. L\xfctfen tekrar deneyin"},newSession:{title:"G\xf6rsel D\xfczenleyici"}
1,uploadImage:{title:"G\xf6rsel Y\xfckle",supportedMiemTypes:"Desteklenen Dosya T\xfcrleri: ",import:{library:"Galeri",upload:"Y\xfckle"},maxFilesUpTo:"* En fazla ",maxFilesUpToValue:"g\xf6rsel"}},styleExamplesCarousel:{apply:"Uygula",ariaLabel:"Stil \xf6rnekleri"},inspirationalGallery:{title:"İnspiration Gallery",backToGallery:"Galeriye D\xf6n",tools:{[o.m.AI_SHORTS]:"Kısa Videolar",[o.m.TEXT_TO_SCENE]:"Metin to Video",[o.m.IMAGE_TO_SCENE]:"G\xf6rsel to Video",[o.m.QUOTE_TO_VIDEO]:"C\xfcmle to Video",[o.m.AI_AVATAR]:"Avatar",[o.m.TEXT_TO_IMAGE]:"Metin to G\xf6rsel",[o.m.IMAGE_EDITOR]:"G\xf6rsel D\xfczenleyici"},details:{image:"G\xf6rsel",video:"Video",tool:"Ara\xe7",prompt:"Komut",model:"Model:",properties:"\xd6zellikler:",script:"Script",quote:"C\xfcmle",usePreset:"\xd6n Ayarı Kullan"}},sceneGen:{imageToScene:{newSession:{title:"G\xf6rsel to Video"}},textToScene:{newSession:{title:"Metin to Video"}},actions:{generate:"Oluştur",loading:"Oluşturuluyor..."},form:{imageUploader:{selectImages:"G\xf6rsel Se\xe7",upload:"Y\xfckle"}},selectModelPopup:{i2vTitle:"Bir model se\xe7in",t2vTitle:"Bir model se\xe7in",imageGenTitle:"Bir model se\xe7in",modelsTitle:"Modeller",audioTooltip:"Bu model ses destekli.",button:"Modeli Kullan",searchPlaceholder:"Model ara ...",newBadge:"Yeni",noResults:"Aramanızla eşleşen model bulunamadı.",speedTooltip:"Hız",qualityTooltip:"Kalite",startFrameBadge:"Başlangı\xe7 Karesi",endFrameBadge:"Bitiş Karesi"},sceneItemCard:{reuseParameters:"Parametreleri Tekrar Kullan",copyPrompt:"Prompti Kopyala",download:"İndir"}},models:{modelsSelector:{model:"Model",viewAllModels:"T\xfcm Modelleri G\xf6r\xfcnt\xfcle"}},sessions:{title:"Oturumlar",videoOptions:"Video Se\xe7enekleri",imageOptions:"G\xf6rsel Se\xe7enekleri",deleteSession:{sceneGen:{header:"Bu oturumu ger\xe7ekten silmek istediğinize emin misiniz?",title:"Bu, y\xfcklenen g\xf6rseli ve bu oturum sırasında yapılan t\xfcm d\xfczenlemeleri kalıcı olarak silinecektir. Geri alamazsınız.",success:"Oturum başarıyla silindi"},session:{header:"Bu oturumu ger\xe7ekten silmek istediğinize emin misiniz?",title:"Bu, y\xfcklenen g\xf6rseli ve bu oturum sırasında yapılan t\xfcm d\xfczenlemeleri kalıcı olarak silinecektir. Geri alamazsınız.",success:"Oturum başarıyla silindi"}},itemFailed:{title:"\xdczg\xfcn\xfcz, bu işlem başarısız oldu.",description:"L\xfctfen tekrar deneyin veya istemi ya da model sağlayıcısını değiştirin.",template:{title:"Oluşturulamadı",description:"L\xfctfen tekrar deneyin veya parametreleri değiştirin.",reasons:{chargedForFailedJob:{title:"Başarısız işler i\xe7in \xfccret alınır mı?",description:"Hayır, başarısız olan hi\xe7bir işlem i\xe7in \xfccret alınmaz."}}},reasons:{whyFailed:{title:"Neden işler başarısız olur?",description:"Her model sağlayıcısının farklı kullanılabilirlik ve kısıtlamaları vardır. Yukarıdan modeli değiştirerek farklı bir sağlayıcı deneyin veya isteminizi değiştirip telif hakkı i\xe7eren ad ve referanslardan ka\xe7ının. Başarısız olan işlemler i\xe7in \xfccret alınmaz."},chargedForFailedJob:{title:"Başarısız işler i\xe7in \xfccret alınır mı?",description:"Hayır, başarısız olan hi\xe7bir işlem i\xe7in \xfccret alınmaz."}}}},imageUpscaler:{actions:{upscale:"Upscale",loading:"Upscaling..."},newSession:{title:"Image Upscaler"},editActions:{animate:"Animasyon Oluştur",download:"İndir"},session:{failed:{title:"Başarısız",reason:"G\xf6rselinizi b\xfcy\xfctemedik, kredileriniz otomatik olarak iade edilecektir. L\xfctfen tekrar deneyin."},advancedSettings:"Gelişmiş Ayarlar"}},imageGen:{newSession:{title:"G\xf6rsel Oluşturucu"},actions:{generate:"Oluştur",loading:"Oluşturuluyor..."},imageGenItemCard:{reuseParameters:"Parametreleri Tekrar Kullan",copyPrompt:"Prompti Kopyala",download:"İndir",retry:"Tekrar Dene",upscale:"Upscale",animate:"Animasyon Oluştur",edit:"D\xfczenle"},failed:{title:"G\xf6rsel Oluşturulamadı",description:"G\xf6rsel oluşturulamadı, kredileriniz otomatik olarak iade edilecektir. L\xfctfen tekrar deneyin.",description1:"G\xf6rsel oluşturulamadı, kredileriniz otomatik olarak iade edilecektir. L\xfctfen tekrar deneyin.",action:"Yeni G\xf6rsel Oluştur"}},toolsNavigationDropdown:{video:"Video",image:"G\xf6rsel",audio:"Ses",other:"Lip-syncing"},promptBox:{warning:"Google has been reporting black screen issues with their Veo3 image to video model."},templates:{outputType:"\xc7ıktı Tipi",uploadFile:{title:"Y\xfcklemek i\xe7in tıklayın",dragBox:"Dosyanızı buraya s\xfcr\xfckleyin",or:" veya ",browse:"g\xf6zat ",dragBox1:" dosyasını se\xe7in",supp
1ortedMiemTypes:"Desteklenen Dosya T\xfcrleri: ",removeFile:"Dosyayı Kaldır"},generate:"Oluştur",generating:"Oluşturuluyor..."},toolsShortcuts:{edit:"D\xfczenle",upscale:"Upscale",animate:"Animasyonlu",photoshoot:"St\xfcdyo Fotoğraf"},productPhotoshoot:{title:"\xdcr\xfcn Fotoğraf \xc7ekimi",history:"Ge\xe7miş",header:{breadcrumbApps:"Uygulamalar"},upload:{uploading:"Y\xfckleniyor...",dragAndDrop:"Resminizi buraya s\xfcr\xfckleyip bırakın veya",browse:"G\xf6z at",toChoose:"bir resim se\xe7mek i\xe7in",supportedFormats:"(Desteklenen: PNG, JPG, JPEG, WEBP)",uploadFailed:"Y\xfckleme başarısız. L\xfctfen tekrar deneyin."},imagePreview:{altText:"Y\xfcklenen \xfcr\xfcn",change:"Değiştir"},resultViewer:{noOutput:"Sonu\xe7 bulunamadı",unableToLoad:"G\xf6rsel y\xfcklenemedi",altText:e=>"\xc7ekim sonucu ".concat(e)},actions:{generating:"Oluşturuluyor ...",generateShots:"Fotoğraf Oluştur",downloading:"İndiriliyor...",download:"İndir",downloadWebImage:"Web G\xf6rselini İndir (WEBP)",downloadWebImageDesc:"Web sitesi i\xe7in optimize edilmiş",downloadFullQuality:"Tam Kalite G\xf6rseli İndir (PNG)",downloadFullQualityDesc:"D\xfczenleme veya baskı i\xe7in en iyi kalite",edit:"D\xfczenle",createNew:"Yeni \xc7ekim Oluştur",new:"Yeni",errorMessage:"Bir şeyler ters gitti. L\xfctfen tekrar deneyin."},dimensions:{title:"Boyut Se\xe7in",subtitle:"Son \xc7ıktı İ\xe7in"},instructions:{step1Title:"G\xf6rsel Y\xfckle",step1Description:"D\xfczenlemek istediğiniz g\xf6rseli y\xfckleyin",step2Title:"8 Fotoğraf Oluştur",step2Description:"Farklı stil ve sahnelerde kullanıma hazır 8 g\xf6rsel indirin.",step3Title:"Tanıtım Videosu Oluştur",step3Description:"En iyi g\xf6rselleri se\xe7ip videonuzu oluşturacağız."},outputs:{altText:e=>"\xc7ıktı ".concat(e),generatedShots:"Oluşturulan \xe7ekimler",createProductVideo:"\xdcr\xfcn Videosu Oluştur",downloadAll:"T\xfcm\xfcn\xfc İndir"},promo:{title:"Tanıtım Videosu Oluştur",selectionTitle:"Video se\xe7im modu",selectionDescription:"Aşağıda oluşturulan \xe7ekimlerden 5 tanesini se\xe7in\nve tanıtım videosunda canlandırın",selectShotsTitle:"Videoya d\xf6n\xfcşt\xfcrmek i\xe7in 5 \xe7ekim se\xe7in",selectMusicTitle:"Arka Plan M\xfcziği Se\xe7in",backgroundMusic:"Arka plan m\xfcziği",playPreview:"Oynat",pausePreview:"Duraklat",generatingTitle:"Tanıtım videosu oluşturuluyor",generatingDescription:"Se\xe7tiğiniz \xe7ekimleri kısa bir tanıtım videosuna d\xf6n\xfcşt\xfcr\xfcyoruz. Bu bir dakika kadar s\xfcrebilir.",readyTitle:"Tanıtım videosu hazır",readyFallback:"Tanıtım videonuz oluşturuldu.",failedTitle:"Tanıtım videosu başarısız",failedDescription:"Tanıtım videosu oluşturulamadı. L\xfctfen tekrar deneyin.",back:"Geri",generateButton:"Video oluştur",create:"Oluştur",createNewVideo:"Yeni video oluştur",downloadVideo:"Videoyu İndir"}},aiInfluencer:{breadcrumbApps:"Uygulamalar",buildYourInfluencer:"Influencer'ını Oluştur",new:"Yeni",history:"Ge\xe7miş",baseProfile:"Temel Profil",physicalFeatures:"Fiziksel \xd6zellikler",styleDetails:"Stil Detayları",selectAtLeastOne:"Devam etmek i\xe7in en az bir se\xe7enek se\xe7in",next:"İleri",back:"Geri",generate:"Oluştur",generating:"Oluşturuluyor...",generateLooks:"G\xf6r\xfcn\xfcmler Oluştur",edit:"D\xfczenle",animate:"Canlandır",speak:"Konuş",dressUp:"Giydir",tryOnOutfits:"Kıyafetleri Dene",comingSoon:"\xc7ok Yakında",influencerName:"Influencer Adı",save:"Kaydet",generationFailed:"Oluşturma Başarısız",generationFailedDesc:"Yapay zeka influencer'ınız oluşturulurken bir sorun oluştu. L\xfctfen tekrar deneyin.",tryAgain:"Tekrar Dene",emptyStateLine1:"Yapay zeka influencer'ınız burada yaşıyor.",emptyStateLine2:"Yapay zeka influencer'ınızı tasarlayın ve oluşturun",emptyStateLine3:"sıfırdan",influencerLooks:"Influencer G\xf6r\xfcn\xfcmleri",generatedLooks:"Oluşturulan G\xf6r\xfcn\xfcmler",loading:"Y\xfckleniyor...",noLooksYet:"Hen\xfcz g\xf6r\xfcn\xfcm oluşturulmadı.",noLooksDesc:"İlk g\xf6r\xfcn\xfcm\xfcn\xfcz\xfc oluşturmak i\xe7in yukarıya bir \xfcr\xfcn resmi y\xfckleyin.",uploadProductImage:"\xdcr\xfcn Resmi Y\xfckle",tapToUploadProductImage:"\xdcr\xfcn resmi y\xfcklemek i\xe7in dokunun",uploading:"Y\xfckleniyor...",promptOptional:"A\xe7ıklama (isteğe bağlı)",promptPlaceholder:"\xf6r. parf\xfcm şişesini tutsun",generateLook:"G\xf6r\xfcn\xfcm Oluştur",generatingLook:"G\xf6r\xfcn\xfcm\xfcn\xfcz oluşturuluyor…",generateLookFailed:"G\xf6r\xfcn\xfcm oluşturulamadı.",fetchLooksFailed:"G\xf6r\xfcn\xfcmler y\xfcklenemedi.",lookStatusCheckFailed:"G\xf6r\xfcn\xfcm durumu kontrol edilemedi.",selectLookFirst:"L\xfctfen oluşturmak i\xe7in bir g\xf6r\xfcn\xfcm se\xe7in.",selectAtLeastOneField:"L\xfctfen b
1ir a\xe7ıklama girin veya ortam, \xe7ekim stili veya kamera a\xe7ısı se\xe7in.",describeChange:"Ne değiştirmek istediğinizi a\xe7ıklayın…",environment:"Ortam",shotStyle:"\xc7ekim Stili",background:"Arka plan",poses:"Pozlar",cameraAngle:"Kamera a\xe7ısı",optionalSection:" (Opsiyonel)",productImageAlt:"\xdcr\xfcn g\xf6rseli",uploadProductImageAlt:"\xdcr\xfcn g\xf6rseli y\xfckle",styleReferenceImageAlt:"Stil referans g\xf6rseli",uploadStyleReferenceAlt:"Stil referansı y\xfckle",customBackgroundImageAlt:"\xd6zel arka plan \xf6nizlemesi",uploadFailed:"Y\xfckleme başarısız. L\xfctfen tekrar deneyin.",renameInfluencer:"Influencer'ı Yeniden Adlandır",influencerNamePlaceholder:"Influencer adı",cancel:"İptal",close:"Kapat",download:"İndir",regenerate:"Yeniden Oluştur",rename:"Yeniden Adlandır",editAttributes:"Nitelikleri d\xfczenle",delete:"Sil",newInfluencer:"Yeni influencer",generatingCharacter:"Karakter oluşturuluyor, bu işlem <span class='font-bold'>2 dakika</span> s\xfcrebilir",actions:"İşlemler",nationality:"Milliyet",selectNationalityForTraditional:"Geleneksel se\xe7eneğini etkinleştirmek i\xe7in bir milliyet se\xe7in.",headCoveringOmittedForAttire:"Doktor ve şef kıyafetleri i\xe7in baş \xf6rt\xfcs\xfc hari\xe7 tutulur."},virtualTryOn:{title:"Sanal deneme",header:{breadcrumbApps:"Uygulamalar"},modelSelection:{chooseModel:"Model se\xe7",chooseTheModel:"Modeli se\xe7in",male:"Erkek",female:"Kadın",uploadModelImage:"Model g\xf6rseli y\xfckle",yourGallery:"Galeriniz",uploadHint:"Tek kişi, tam boy, y\xfcz net şekilde g\xf6r\xfcn\xfcr",or:"Veya",changeModel:"Modeli değiştir",creatingModelFromImage:"Modeliniz oluşturuluyor… Bu biraz s\xfcrebilir."},configPanel:{createLooks:"G\xf6r\xfcn\xfcm oluştur",clothingItems:"Kıyafetler",background:"Arka plan",poses:"Pozlar",optional:"(Opsiyonel)"},upload:{dragAndDrop:"G\xf6rsellerinizi buraya s\xfcr\xfckleyin veya",browse:"G\xf6zat",toChoose:"bir g\xf6rsel se\xe7in",supportedFormats:"(Desteklenen formatlar: PNG, JPG, JPEG, WEBP)"},actions:{generate:"Oluştur",generating:"Oluşturuluyor...",download:"İndir",animate:"Canlandır",generatingDescription:"G\xf6r\xfcnt\xfc oluşturma <span class='font-bold'>2 dakikaya</span> kadar s\xfcrebilir"},instructions:{step1Title:"Bir model se\xe7in",step1Desc:"Hazır bir model se\xe7in veya denemede kullanmak i\xe7in bir kişinin fotoğrafını y\xfckleyin",step2Title:"\xdcr\xfcn\xfcn\xfcz\xfc y\xfckleyin",step2Desc:"Denemek istediğiniz kıyafetlerin fotoğraflarını y\xfckleyin",step3Title:"Yeni bir g\xf6rsel oluşturun",step3Desc:"Y\xfcklediğiniz kıyafetleri modelin \xfczerinde g\xf6steren yeni bir g\xf6rsel oluşturulur"}},generationProcess:{generating:(e,t)=>"Oluşturuluyor ".concat("image"===e?"g\xf6rsel":"video"===e?"video":"audio"===e?"ses":"product_photoshoot"===e?"fotoğraf":"virtual_try_on"===e?"try-on":"karışık")+' s\xfcrecek <span class="font-bold text-ph-color">'.concat(t," dakika.</span>"),pleaseWait:"L\xfctfen bekleyin veya beklerken başka bir şey oluşturabilirsiniz.",statusLabels:{pending:"Kuyrukta",inqueue:"Kuyrukta",running:"Kuyrukta",processing:"İşleniyor",completed:"Tamamlandı",failed:"Başarısız"}},ugcVideo:{editor:{sceneEditIntro:{badge:"Yeni",title:"Videoyu oluşturduktan sonra kontrol edin",description:"Videoyu izleyin, diyalog metnini d\xfczenleyin ve son videoyu dışa aktarmadan \xf6nce istediğiniz sonuca ulaşana kadar herhangi bir sahneyi kolayca yeniden oluşturun.",cta:"D\xfczenlemeye başla"}}}}}},15691:function(e,t,i){"use strict";var o=i(21012),n=i(67294);t.Z=e=>{let[t,i]=n.useState(Boolean),[r,a]=n.useState(null==e?void 0:e.initialFilter),[l,s]=n.useState({});return{mediaAssetsData:l,deleteMediaAsset:e=>{let{mediaAssetId:t}=e;return new Promise((e,i)=>{o.j.mediaAssets.delete({mediaAssetId:t},()=>{e({})},()=>{i({})})})},showMore:()=>{a(e=>{var t;return{...e,page:(null==l?void 0:null===(t=l.meta)||void 0===t?void 0:t.current_page)+1}})},handleFilter:e=>{let{name:t,value:i}=e;"query"===t||"type"===t?"type"===t?(s({}),a(e=>({...e,[t]:i,page:1,query:""}))):a(e=>({...e,[t]:i,page:1})):a(e=>({...e,[t]:i}))},createMediaAsset:async e=>new Promise(async(t,i)=>{try{o.j.mediaAssets.create(e,e=>{t({...null==e?void 0:e.data})})}catch(e){i()}}),editMediaAsset:e=>{let{values:t,mediaAssetId:i}=e;
1return new Promise((e,n)=>{o.j.mediaAssets.update({mediaAssetId:i,values:t},()=>{e({})},()=>{n({})})})},getMediaAssets:e=>{let{mediaAssets:t}=e;i(!0),(null==t?void 0:t.type)==="image"?o.j.uploads({type:"image",...r},e=>{let t={...e,data:null==e?void 0:e.data.map(e=>({...e,mediaType:"image"}))};(null==r?void 0:r.page)===1?s(t):s(e=>({...t,data:[...null==e?void 0:e.data,...null==t?void 0:t.data]})),i(!1)}):o.j.mediaAssets.list({...r,...t},e=>{let t={...e,data:null==e?void 0:e.data.map(e=>({...e,mediaType:null==e?void 0:e.type}))};(null==r?void 0:r.page)===1?s(t):s(e=>({...t,data:[...null==e?void 0:e.data,...null==t?void 0:t.data]})),i(!1)})},filter:r,loading:t}}},54565:function(e,t,i){"use strict";var o=i(67294),n=i(25617),r=i(90549);t.Z=e=>{var t;let{isYearlyPlan:i,plan:a,isUpgrade:l,isOneTimePayment:s,upgradePreviewGrandTotal:d,isSubscribed:u}=e,c=(0,n.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.Auth)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.billingInfo}),{isBasicOrProSubscriber:p,isNewSubscriber:m,isLoggedIn:h,isClassicSubscriber:f}=(0,r.Z)(),v=!h||m||p||i,g=o.useMemo(()=>{var e,t;return i&&(null==c?void 0:c.plan_interval)==="year"&&!!(null==c?void 0:c.subscription_plan_id)&&(null!==(e=null==a?void 0:a.credits_amount)&&void 0!==e?e:0)>(null!==(t=null==c?void 0:c.credits_amount)&&void 0!==t?t:0)},[i,c,null==a?void 0:a.price]),y=o.useMemo(()=>{var e,t;return i&&(null==c?void 0:c.plan_interval)==="year"&&!!(null==c?void 0:c.subscription_plan_id)&&(null!==(e=null==a?void 0:a.credits_amount)&&void 0!==e?e:0)<(null!==(t=null==c?void 0:c.credits_amount)&&void 0!==t?t:0)},[i,c,null==a?void 0:a.credits_amount]),b=o.useMemo(()=>{var e,t;return!i&&(null==c?void 0:c.plan_interval)==="year"&&!!(null==c?void 0:c.subscription_plan_id)&&(null!==(e=null==a?void 0:a.credits_amount)&&void 0!==e?e:0)>(null!==(t=null==c?void 0:c.credits_amount)&&void 0!==t?t:0)},[i,c,null==a?void 0:a.price]),A=o.useMemo(()=>{var e,t;return!i&&(null==c?void 0:c.plan_interval)==="month"&&!!(null==c?void 0:c.subscription_plan_id)&&(null!==(e=null==a?void 0:a.credits_amount)&&void 0!==e?e:0)>(null!==(t=null==c?void 0:c.credits_amount)&&void 0!==t?t:0)},[i,c,null==a?void 0:a.price]),x=o.useMemo(()=>{var e,t;return!i&&(null==c?void 0:c.plan_interval)==="month"&&!!(null==c?void 0:c.subscription_plan_id)&&(null!==(e=null==a?void 0:a.credits_amount)&&void 0!==e?e:0)<(null!==(t=null==c?void 0:c.credits_amount)&&void 0!==t?t:0)},[i,c,null==a?void 0:a.credits_amount]),w=o.useMemo(()=>{var e,t;return i&&(null==c?void 0:c.plan_interval)==="month"&&!!(null==c?void 0:c.subscription_plan_id)&&(null!==(e=null==a?void 0:a.price)&&void 0!==e?e:0)<(null!==(t=null==c?void 0:c.price)&&void 0!==t?t:0)},[i,c,null==a?void 0:a.price]),_=o.useMemo(()=>!i&&(null==c?void 0:c.plan_interval)==="year"&&!!(null==c?void 0:c.subscription_plan_id),[i,c]),S=o.useMemo(()=>{var e,t;return i&&(null==c?void 0:c.plan_interval)==="month"&&!!(null==c?void 0:c.subscription_plan_id)&&(null!==(e=null==a?void 0:a.credits_amount)&&void 0!==e?e:0)===(null!==(t=null==c?void 0:c.credits_amount)&&void 0!==t?t:0)},[i,c,null==a?void 0:a.credits_amount]),C=o.useMemo(()=>{var e,t;return!i&&!!(null==c?void 0:c.subscription_plan_id)&&(null!==(e=null==a?void 0:a.credits_amount)&&void 0!==e?e:0)===(null!==(t=null==c?void 0:c.credits_amount)&&void 0!==t?t:0)},[i,c,null==a?void 0:a.credits_amount]),k=o.useMemo(()=>{var e,t;return i&&(null==c?void 0:c.plan_interval)==="month"&&!!(null==c?void 0:c.subscription_plan_id)&&(null!==(e=null==a?void 0:a.credits_amount)&&void 0!==e?e:0)<(null!==(t=null==c?void 0:c.credits_amount)&&void 0!==t?t:0)},[i,c,null==a?void 0:a.credits_amount]),T=o.useMemo(()=>!f,[A,null==a?void 0:a.credits_amount,null==a?void 0:null===(t=a.details)||void 0===t?void 0:t.number_of_credits,c,C,f]),E=o.useCallback(e=>{var t,i,o;if((null==e?void 0:e.price)==null)return 0;let n=null!==(t=e.price)&&void 0!==t?t:0,r=e.sale;return v&&((null==r?void 0:r.percentage)!=null||(null==r?void 0:r.amount)!=null)?Math.round((n-n*(null!==(o=null!==(i=null==r?void 0:r.percentage)&&void 0!==i?i:null==r?void 0:r.amount)&&void 0!==o?o:0)/100)
1*100)/100:n},[v]),P=o.useMemo(()=>{var e,t;return null!==(t=null!==(e=E(a))&&void 0!==e?e:null==a?void 0:a.price)&&void 0!==t?t:0},[a,E]),I=o.useMemo(()=>{if(!l)return 0;let e=E({price:null==c?void 0:c.price}),t=E(a)-e;return t<0?0:Math.round(100*t)/100},[l,null==c?void 0:c.price,a,E]),D=o.useMemo(()=>T&&!s&&null!==d?d:l&&!s?I:u&&!s?0:P,[T,s,d,l,I,u,P]);return{isEligibleForDiscount:v,isAnnualToAnnualUpgrade:g,isMonthlyToMonthlyUpgrade:A,isMonthlyToMonthlyDowngrade:x,isMonthlyToAnnualDowngrade:k,isAnnualToMonthlyDowngrade:w,getEffectivePlanPrice:E,price:P,upgradePriceDifference:I,displayPrice:D,showUpgradePreview:T,isAnnualToMonthlySwitch:S,isAnnualToMonthly:_,isAnnualToMonthlyUpgrade:b,isAnnualToAnnualDowngrade:y}}},9242:function(e,t,i){"use strict";var o=i(29618),n=i(81387),r=i(20931),a=i(43079),l=i(67294),s=i(25617);t.Z=()=>{let e=null,t=null,i=0,d=(0,a.useRouter)();null==d||d.pathname;let u=(0,s.I0)(),c=async e=>{let{previewLink:t}=e;return new Promise((e,i)=>{fetch(t).then(t=>{200===t.status?e({}):i({})}).catch(()=>{i({})})})},p=e=>{let{previewLink:o}=e;return new Promise(async(e,n)=>{try{await c({previewLink:o}),e({})}catch(n){i<=120?t=setTimeout(()=>{i+=5,p({previewLink:o}).then(()=>{e({})}),clearTimeout(t)},1e4):(i=0,clearTimeout(t))}})},m=t=>{var i;let{videoId:a}=t,l=null===(i=window.location)||void 0===i?void 0:i.pathname;return new Promise(async(t,i)=>{try{n.R.videos.getVideoAssets({videoId:a},async t=>{let{data:i}=t;((null==i?void 0:i.filmstrip_url)||(null==i?void 0:i.audio_url)||(null==i?void 0:i.preview_url))&&u(o.Z.storeVideoAsset({videoId:a,assets:i}));let n=(null==i?void 0:i.has_audio)===0,s=(null==i?void 0:i.preview_url)&&(null==i?void 0:i.filmstrip_url);(!n||!s)&&Object.values(i).some(e=>!e)&&(e=setTimeout(async()=>{if(l.includes(r.P2.CREATE_VIDEO_MAIN)){let e=await m({videoId:a});u(o.Z.storeVideoAsset({videoId:a,assets:e}))}clearTimeout(e)},1e4))},()=>{})}catch(e){}})};return l.useEffect(()=>()=>{t&&(clearTimeout(t),i=0)},[]),l.useEffect(()=>{![r.P2.CREATE_VIDEO_RESIZER,r.P2.CREATE_VIDEO_EDITOR,r.P2.CREATE_VIDEO_PUBLISHER,r.P2.CREATE_VIDEO_EDITOR_TABS].includes(d.pathname)&&e&&clearTimeout(e)},[d.pathname]),{getPreviewLink:p,getVideoAssets:m}}},87959:function(e,t,i){"use strict";var o=i(23117),n=i(20931),r=i(67294),a=i(10397),l=i(11163),s=i.n(l),d=i(90238),u=i(88200),c=i(36808),p=i.n(c),m=i(25617);t.Z=()=>{var e,t,i,l,c;let h=r.useContext(a.pm),f=(0,m.v9)(e=>{var t;return null==e?void 0:null===(t=e.SallaAuth)||void 0===t?void 0:t.user}),v=(0,m.I0)(),g=r.useMemo(()=>{var e;return null==f?void 0:null===(e=f.subscription)||void 0===e?void 0:e.is_subscribed},[null==f?void 0:null===(e=f.subscription)||void 0===e?void 0:e.is_subscribed]),y=r.useMemo(()=>{var e;return(null==f?void 0:null===(e=f.subscription)||void 0===e?void 0:e.subscription_status)===n.Ch.PAUSED},[null==f?void 0:null===(t=f.subscription)||void 0===t?void 0:t.subscription_status]),b=r.useMemo(()=>{var e;return(null==f?void 0:null===(e=f.subscription)||void 0===e?void 0:e.subscription_status)===n.Ch.PAST_DUE},[null==f?void 0:null===(i=f.subscription)||void 0===i?void 0:i.subscription_status]),A=r.useMemo(()=>{var e;return(null==f?void 0:null===(e=f.subscription)||void 0===e?void 0:e.subscription_status)===n.Ch.DELETED},[null==f?void 0:null===(l=f.subscription)||void 0===l?void 0:l.subscription_status]),x=r.useMemo(()=>{var e,t;return(null==f?void 0:null===(e=f.credits)||void 0===e?void 0:e.total)>(null==f?void 0:null===(t=f.credits)||void 0===t?void 0:t.used)},[null==f?void 0:f.credits]),w=r.useMemo(()=>!!(null==f?void 0:f.id),[null==f?void 0:f.id]),_=r.useCallback(async()=>{null==h||h.rehydrateUserData()},[h]),S=r.useCallback(()=>{(null==h?void 0:h.loadUserFromCookies)?h.loadUserFromCookies():null==h||h.rehydrateUserData()},[h]),C=r.useCallback(async e=>new Promise((t,i)=>{o.N.updateUserInfo(e,e=>{null==h||h.rehydrateUserData(),t(e)},e=>{i(e)})}),[h]),k=()=>{let e=(null==h?void 0:h.sallaTokenName)||"SALLA_API_TOKEN";p().remove(e),p().remove(n.f5.FCM_TOKEN),p().remove(n.f5.VERIFICATION_STATUS),(0,u.gk)({name:"actionAfterLogin"}),v({type:n.MF.SALLA_APP_LOGOUT})},T=async()=>{let e=(null==h?void 0:h.sallaTokenName)||"SALLA_API_TOKEN";if(p().get(e))try{await o.N.logout(),k()}catch(e){k()}else k();d.ZP.reset(),(s().pathname.includes("/".concat((null==h?void 0:h.sallaBasePath)||"salla"))||s().pathname.includes("/studio")||s().pathname.includes("/ai-studio"))&&s().replace({pathname:"/"},"/",{locale:s().query.locale?"".concat(s().query.locale):""})},E=r.useCallback(async()=>new Promise(async(e,t)=>
1{try{await o.N.deleteAccount(e,t),d.ZP.reset(),T(),e(!0)}catch(e){t(e)}}),[]),P=r.useMemo(()=>{var e,t,i,o,n,r;return{id:Number(null==f?void 0:null===(e=f.billingInfo)||void 0===e?void 0:e.subscription_plan_id),title:null==f?void 0:null===(t=f.billingInfo)||void 0===t?void 0:t.plan_title,title_ar:null==f?void 0:null===(i=f.billingInfo)||void 0===i?void 0:i.plan_title_ar,price:null==f?void 0:null===(o=f.billingInfo)||void 0===o?void 0:o.price,interval:null==f?void 0:null===(n=f.billingInfo)||void 0===n?void 0:n.plan_interval,credits_amount:null==f?void 0:null===(r=f.billingInfo)||void 0===r?void 0:r.credits_amount}},[null==f?void 0:f.billingInfo]),I=r.useMemo(()=>{var e;return(null==f?void 0:null===(e=f.billingInfo)||void 0===e?void 0:e.plan_interval)==="year"},[null==f?void 0:f.billingInfo]),D=r.useMemo(()=>null==f?void 0:f.is_verified,[f]),O=r.useMemo(()=>!!(null==f?void 0:f.classic_subscriber),[null==f?void 0:f.classic_subscriber]),N=r.useMemo(()=>!A&&!y,[null==f?void 0:null===(c=f.subscription)||void 0===c?void 0:c.subscription_status]);return{isSubscribed:g,hasCredits:x,userState:f,isPaused:y,isSubscriptionPastDue:b,isSubscriptionDeleted:A,canCancelSubscription:N,fetchUser:_,currentPlanInfo:P,isYearly:I,isVerified:D,isClassicSubscriber:O,isLoggedIn:w,updateUser:C,deleteAccount:E,hydrateUser:S,logout:T,userLogin:null==h?void 0:h.userLogin,userRegister:null==h?void 0:h.userRegister,socialUserLogin:null==h?void 0:h.socialUserLogin,rehydrateUserData:null==h?void 0:h.rehydrateUserData,isFetchingUserData:null==h?void 0:h.isFetchingUserData,loadUserFromCookies:null==h?void 0:h.loadUserFromCookies}}},54482:function(e,t,i){"use strict";var o=i(20931),n=i(18684),r=i(46485);t.Z=()=>{let e=(0,n.I0)(),t=(0,n.Qq)();return{setupVideosDatabase:()=>{(0,r.nE)({version:o.LE},e=>{(0,r.ur)({database:e,name:"assets",keyPath:"id"}),(0,r.ur)({database:e,name:"mediaAssets",keyPath:"id"}),(0,r.ur)({database:e,name:"thumbnails",fields:o.M3}),(0,r.ur)({database:e,name:"pendingUploads",keyPath:"id"})},t=>{(0,r.sx)(),(0,r.lh)(),e({type:r.Ot.DATABASE_CHANGED,payload:t})})},state:t,detectChagnes:()=>{e({type:r.Ot.DETECT_CHANGES,payload:(null==t?void 0:t.changes)+1})},detectMediaAssetsChagnes:i=>e({type:r.Ot.DETECT_MEDIA_ASSETS_CHANGES,payload:i||(null==t?void 0:t.mediaAssetsChanges)+1}),detectMediaAssetsResumableChagnes:()=>e({type:r.Ot.DETECT_MEDIA_ASSETS_RESUMABLE_CHANGES,payload:(null==t?void 0:t.mediaAssetsChanges)+1}),getLatestMediaAssetChangesState:()=>t.mediaAssetsChanges}}},26700:function(e,t,i){"use strict";var o=i(21012),n=i(81387),r=i(40361),a=i(54178),l=i(64242),s=i(83670),d=i(96019),u=i(99139),c=i(89053),p=i(21242),m=i(78996),h=i(11163),f=i(67294),v=i(2327),g=i(3004),y=i(6627);t.Z=e=>{let t=(0,h.useRouter)(),{trackGeneration:i,trackResultAction:b,trackSourceSelected:A,trackToolOpened:x,trackToolConfiguration:w}=(0,y.G)("studio"),{studioState:_,dispatchStudioState:S}=f.useContext(s.u2),{user:C}=f.useContext(l.Vo),k=e=>e({studioState:_,dispatchStudioState:S}),[T,E]=f.useState(null==e?void 0:e.generalFilter),[P,I]=f.useState({per_page:10,page:1,...null==e?void 0:e.defaultFoldersFilter}),[D,O]=f.useState({per_page:10,page:1,...null==e?void 0:e.defaultVideosFilter}),[N,j]=f.useState({loading:!0}),[M,R]=f.useState({loading:!0}),{downloadVideo:z}=(0,g.Z)();return{foldersData:N,videosData:M,getFolders:i=>{var o,r;j(e=>({...e,loading:!0}));let a=(null==t?void 0:null===(o=t.query)||void 0===o?void 0:o.slug)?JSON.parse(JSON.stringify(null==t?void 0:null===(r=t.query)||void 0===r?void 0:r.slug)):[""],l=((null==a?void 0:a.length)>0?a.slice(a.length-1).join("/folders"):"").split("{-}"),s=(null==e?void 0:e.isWithoutRouter)?null:i||((null==l?void 0:l.length)?l[1]:null);n.R.folders.list({filter:(0,u.sW)({...T,...P}),subFolder:s?"".concat(s,"/folders"):""},e=>{var t;(null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.current_page)>1?j(t=>({...t,loading:!1,...e,data:[...null==t?void 0:t.data,...null==e?void 0:e.data],meta:null==e?void 0:e.meta})):j(t=>({...t,loading:!1,...e}))},()=>{})},getVideos:()=>{try{var e,i,o,r,a;R(e=>({...e,loading:!0}));let[l]=(null==t?void 0:null===(e=t.query)||void 0===e?void 0:e.category)||[""],s=(null==t?void 0:null===(i=t.query)||void 0===i?void 0:i.slug)?JSON.parse(JSON.stringify(null==t?void 0:null===(o=t.query)||void 0===o?void 0:o.slug)):[""],d=((null==s?void 0:s.length)>0?s.slice(s.length-1).join("/videos"):"").split("{-}"),c=(null==d?void 0:d.length)?d[1]:null;c?n.R.folders.list({filter:(0,u.sW)({...T,...D,status:l&&"all"!==l&&"deleted"!==l?null===(r="".concat(l))||void 0===r?void 0:r.replaceAll("-","_"):null}),subFolder:c?"".concat(c,"/videos"):""},e=>{var t;(null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.current_page)>1?R(t=>({...t,loading:!1,...e,data:[...null==t?void 0:t.data,...null==e?void 0:e.data],meta:null==e?void 0:e.meta})):R(t=>({...t,loading:!1,...e}))},()=>{}):n.R.videos.list({filter:(0,u.sW)({...T,...D,status:l&&"all"!==l&&"deleted"!==l?null===(a="".concat(l))||void 0===a?void 0:a.replaceAll("-","_"):null})},e=>{var t;(null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.current_page)>1?R(t=>({...t,loading:!1,...e,data:[...null==t?void 0:t.data,...null==e?void 0:e.data],meta:null==e?void 0:e.meta})):R(t=>({...t,loading:!1,...e}))},()=>{})}catch(e){}},handleFilter:e=>{let{name:t,value:i}=e;"sort"===t?(E(e=>({...e,...i})),w({configuration_type:"sort_videos"})):E(e=>({...e,[t]:i}))},createFolder:e=>new Promise((t,i)=>{n.R.folders.create(e,e=>{t(e),w({configuration_type:"folder_created"})},()=>{i({})})}),moveFolder:e=>{let{folderId:t,values:i}=e;return new Promise((e,o)=>{n.R.folders.move({folderId:t,values:i},()=>{e({}),w({configuration_type:"folder_moved"})},()=>{o({})})})},editFolder:e=>{let{values:t,folderId:i}=e;return new Promise((e,o)=>{n.R.folders.update({folderId:i,values:t},()=>{e({}),w({configuration_type:"folder_updated"})},()=>{o({})})})},deleteFolder:e=>{let{folderId:t}=e;return new Promise((e,i)=>{n.R.folders.delete({folderId:t},()=>{e({}),k(d.ZP.toggleRefresh()),w({configuration_type:"folder_deleted"})},()=>{i({})})})},createVideo:e=>new Promise((t,i)=>{n.R.videos.create(e,e=>{c.Eh.invalidateQueries({queryKey:m.queryKeys.studioVideos(),refetchType:"all"}),t(e)},e=>{i(e)})}),deleteVideo:e=>{let{videoId:t}=e;return new Promise((e,i)=>{n.R.videos.delete({videoId:t},()=>{let i=c.Eh.getQueriesData({queryKey:m.queryKeys.studioVideos()});if(!i.length){e({});return}
1i.forEach(e=>{let i=e[1],o=i.pages.map(e=>({...e,data:e.data.filter(e=>e.id!==t)}));c.Eh.setQueryData(e[0],{...i,pages:o})}),w({configuration_type:"video_deleted"}),e({})},()=>{i({})})})},deleteVideoPermanently:e=>{let{videoId:t}=e;return new Promise((e,i)=>{n.R.videos.deletePermanently({videoId:t},()=>{k(d.ZP.toggleRefresh()),c.Eh.invalidateQueries({queryKey:m.queryKeys.studioVideos(),refetchType:"all"}),e({}),w({configuration_type:"video_permanently_deleted"})},()=>{i({})})})},restoreDeletedVideo:e=>{let{videoId:t}=e;return new Promise((e,i)=>{n.R.videos.restore({videoId:t},()=>{k(d.ZP.toggleRefresh()),c.Eh.invalidateQueries({queryKey:m.queryKeys.studioVideos(),refetchType:"all"}),e({}),w({configuration_type:"video_restored"})},e=>{i(e)})})},editVideo:e=>{let{values:t,videoId:i}=e;return new Promise((e,o)=>{n.R.videos.update({videoId:i,values:t},()=>{e({}),w({configuration_type:"video_edited"})},()=>{o({})})})},downloadVideo:async e=>{let{videoId:t,name:i,type:o,analyticsMetadata:n}=e;try{let e=o===a.Vu.TEMPLATE_VIDEO?v._.EXECUTION_NODE_RESULT:o===a.Vu.UGC_VIDEO?a.Vu.UGC_VIDEO:void 0;return await z({videoId:t,resourceType:e,customFilename:i,analyticsMetadata:{video_id:t,...n}}),Promise.resolve({})}catch(e){return Promise.reject(e)}},exportVideo:e=>{let{videoId:t}=e;return new Promise((e,i)=>{n.R.videos.export({videoId:t},i=>{e(i),p.l.trackEvent(p.p.VIDEO_EXPORTED,{email:null==C?void 0:C.email},{id:t,status:"Exported"}),w({configuration_type:"video_exported"})},()=>{i({})})})},getVideoStatus:e=>{let{videoId:t}=e;return new Promise((e,i)=>{n.R.videos.getStatus({videoId:t,filter:{user_id:null==C?void 0:C.id}},t=>{e(t)},()=>{i({})})})},getVideoById:e=>{let{videoId:t}=e;return new Promise((e,i)=>{n.R.videos.get({videoId:t},t=>{e(t)},e=>{i({error:e})})})},importVideoFromLink:e=>{let{link:t}=e;return new Promise((e,i)=>{r.n.importFromLink({link:t},t=>{e(t),w({configuration_type:"import_video_from_link"})},e=>{i(e)})})},showMoreFolders:()=>{I(e=>{var t;return{...e,page:(null==N?void 0:null===(t=N.meta)||void 0===t?void 0:t.current_page)+1}})},loadMoreVideos:()=>{var e,t;(null==M?void 0:null===(e=M.meta)||void 0===e?void 0:e.current_page)+1<=(null==M?void 0:null===(t=M.meta)||void 0===t?void 0:t.last_page)&&O(e=>{var t;return{...e,page:(null==M?void 0:null===(t=M.meta)||void 0===t?void 0:t.current_page)+1}})},handleVideosFilter:e=>{let{name:t,value:i}=e;O(e=>({...e,[t]:i}))},handleFoldersFilter:e=>{let{name:t,value:i}=e;I(e=>({...e,[t]:i}))},handleMoveVideo:e=>{let{videoId:t,folderId:i}=e;return new Promise((e,o)=>{n.R.videos.move({videoId:t,values:{folder_id:i}},t=>{e(t),w({configuration_type:"video_moved"})},()=>{o({})})})},handleMoveFolder:e=>{let{folderId:t,parentId:i}=e;return new Promise((e,o)=>{n.R.folders.move({folderId:t,values:{parent_id:i}},t=>{e(t),w({configuration_type:"folder_moved"})},()=>{o({})})})},getVideoEdits:e=>{let{videoId:t}=e;return new Promise((e,i)=>{n.R.videos.getVideoEdits({videoId:t},t=>{e(t)},()=>{i({})})})},filter:T,foldersFilter:P,videosFilter:D,studioState:_,dispatch:k,duplicateVideo:e=>{let{videoId:t,values:i}=e;return new Promise((e,o)=>{n.R.videos.duplicate({videoId:t,values:i},t=>{e(t),c.Eh.invalidateQueries({queryKey:m.queryKeys.studioVideos(),refetchType:"all"}),w({configuration_type:"video_duplicated"})},e=>{o(e)})})},getVideosCount:()=>new Promise((e,t)=>{n.R.videos.count(t=>{e(t)},()=>{t({})})}),editVideoAgain:e=>{let{videoId:t}=e;return new Promise((e,i)=>{n.R.videos.editAgain({videoId:t},t=>{e(t),w({configuration_type:"edit_video_again"})},e=>{i(e)})})},createMediaAsset:async e=>new Promise(async(t,i)=>{try{o.j.mediaAssets.create(e,e=>{t({...null==e?void 0:e.data})})}catch(e){i()}}),getVideosByUploadId:async e=>{let{uploadId:t}=e;return new Promise(async(e,i)=>{try{n.R.videos.list({filter:{upload_id:t}},t=>{e(t)})}catch(e){i()}})},getResizerTemplates:e=>{let{aspectRatio:t}=e;return new Promise((e,i)=>{o.j.resizer.templates({filter:{aspect_ratio:t}},t=>{e(t),w({configuration_type:"get_resizer_templates"})},()=>{i({})})})},saveVideoEdits:e=>{let{videoId:t,edits:i}=e;return new Promise((e,o)=>{n.R.videos.saveVideoEdits({videoId:t,values:i},t=>{e(t)},()=>{o({})})})},feedbackVideo:e=>{let{videoId:t,...i}=e;return new Promise((e,o)=>{n.R.videos.feedback({videoId:t,...i},t=>{e(t)},()=>{o({})})})},getShareableLink:e=>{let{videoId:t,toolName:i}=e;return new Promise((e,o)=>
1{n.R.videos.getShareableLink({videoId:t},t=>{e(t),w({configuration_type:"get_shareable_link",...i?{tool_name:i}:{}})},()=>{o({})})})},getSharedVideoData:e=>{let{shareKey:t}=e;return new Promise((e,i)=>{n.R.videos.getSharedVideo({shareKey:t},t=>{e(t)},()=>{i({})})})}}}},25310:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(11163),a=i(64242),l=i(31155),s=i(74439),d=i(86486),u=i(38882);t.Z=function(){let{onToolClick:e,entryPoint:t=u.LK.STUDIO}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=(0,r.useRouter)(),{isLoggedIn:c}=n.useContext(a.Vo),[,p]=n.useContext(l.kn),m=(e,i)=>{let o=i.title.en||"";return(t===u.LK.DIRECT||t===u.LK.APPS)&&(e.startsWith("/apps/")||e.startsWith("/template/"))?(0,u.iI)(e,t,o):(0,u.WB)(e,t)},h=t=>{null==e||e(t)};return{handleClick:e=>{let{action:t,tool:n}=e;if("uploadVideo"===t){if(!c){i.push("/login-social");return}p({type:l.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(s.Z,{})}})}else"ai-videos"===t?p({type:l.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,o.jsx)(d.Z,{})}}):n.link&&i.push(m(n.link,n));h(n)}}}},33443:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(68419),a=i(71951),l=i(99139),s=i(25617),d=i(31155),u=i(93046);t.Z=()=>{let e=(0,s.I0)(),[,t]=n.useContext(d.kn);return{getSubscriptionsPlans:()=>new Promise((e,t)=>{a.o.getSubscriptionPlans(t=>{try{var i;let o=[];(null==t?void 0:null===(i=t.data)||void 0===i?void 0:i.length)||e({data:[]});let n=null==t?void 0:t.data;null==n||n.map(e=>{let t=o.findIndex(t=>(null==t?void 0:t.id)===(null==e?void 0:e.id));if(-1!==t)o[t].subPackages.push(e);else{o.push(e);let t=o.findIndex(t=>(null==t?void 0:t.id)===(null==e?void 0:e.id));o[t].subPackages=[e]}}),e({data:o})}catch(e){}})}),createSubscriptionPayLink:e=>new Promise((t,i)=>{a.o.createSubscriptionPayLink(e,e=>{t({data:null==e?void 0:e.data})},e=>{i(e)})}),getBillingInfo:()=>new Promise(t=>{a.o.getBillingInfo(i=>{e((0,r.Qm)({billingInfo:null==i?void 0:i.data})),t({data:null==i?void 0:i.data})})}),updatePaymentMethod:()=>new Promise((e,t)=>{a.o.createUpdatePaymentMethodPayLink(t=>{e({data:null==t?void 0:t.data})})}),updateSubscriptionPlan:e=>{let{planId:t}=e;return new Promise((e,i)=>{a.o.updateSubscriptionPlan({plan_id:t},t=>{e({data:null==t?void 0:t.data})},e=>{i(e)})})},getCancelReasons:()=>new Promise((e,t)=>{a.o.cancel.getCancelReasons(t=>{e({data:null==t?void 0:t.data})})}),cancelSubscription:e=>{let{reasonId:t,action:i,questions:o,otherReason:n}=e;return new Promise((e,r)=>{a.o.cancel.cancelSubscription({...(0,l.sW)({reason_id:t,action:i,questions:o,reason_text:n})},t=>{e({data:null==t?void 0:t.data})})})},getBillingHistory:async e=>new Promise((t,i)=>{a.o.getBillingHistory(e,e=>{t({data:null==e?void 0:e.data})})}),toggleProPlanInfoPopup:e=>{let{trigger_source:i}=e;t({type:d.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,o.jsx)(u.ZP,{trigger_source:i})}})},getFreeSubscription:()=>new Promise((e,t)=>{a.o.cancel.getFreeSubscription(t=>{e({data:null==t?void 0:t.data})})}),getDiscountSubscription:()=>new Promise((e,t)=>{a.o.cancel.getDiscountSubscription(t=>{e({data:null==t?void 0:t.data})})}),getOneTimePurchaseProducts:e=>new Promise((t,i)=>{a.o.oneTimePurchase.products(e,e=>{t({data:null==e?void 0:e.data})})}),createOneTimePurchasePayLink:e=>new Promise((t,i)=>{a.o.oneTimePurchase.createSubscriptionPayLink(e,e=>{t({data:null==e?void 0:e.data})})}),reactivateSubscription:()=>new Promise((e,t)=>{a.o.reactivateSubscription(()=>{e({})},e=>{t(e)})}),geTransactionReceipt:e=>new Promise((t,i)=>{a.o.getTransactionReceipt(e,e=>{t({data:null==e?void 0:e.data})},e=>{i(e)})}),previewSubscriptionChange:e=>{let{subscriptionId:t,newPlanId:i}=e;return new Promise((e,o)=>{a.o.previewSubscriptionChange(t,{new_plan_id:i},t=>{e({data:t})},e=>{o(e)})})}}}},30699:function(e,t,i){"use strict";var o=i(85893),n=i(67294),r=i(81387),a=i(47327),l=i(25617),s=i(15138),d=i(26700),u=i(4270),c=i(52456),p=i(72746),m=i(85518),h=i(2438),f=i(31155),v=i(87251),g=i(57634),y=i(46321),b=i(24556),A=i(99139),x=i(58446),w=i(18721),_=i.n(w);t.Z=()=>{let e=(0,v.Z)(),t=(0,l.v9)(e=>{var t;return null==e?void 0:null===(t=e.Timeline)||void 0===t?void 0:t.fraction}),i=(0,l.v9)(e=>{var t;return null==e?void 0:null===(t=e.Timeline)||void 0===t?void 0:t.fractionInPx}
1),w=(0,l.I0)(),{getVideoEdits:S}=(0,d.Z)(),[,C]=n.useContext(f.kn),k=(0,l.v9)(e=>{var t;return null==e?void 0:null===(t=e.TextToVideo)||void 0===t?void 0:t.video}),T=(0,l.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.TextToVideo)||void 0===i?void 0:null===(t=i.generalDetails)||void 0===t?void 0:t.isQuote}),E=(0,l.v9)(e=>{var t;return null==e?void 0:null===(t=e.TextToVideo)||void 0===t?void 0:t.canvasSettings}),P=n.useCallback(e=>{var t,i,o,n,r,a,l,s;return{tone:null==e?void 0:null===(t=e.videoTone)||void 0===t?void 0:t.value,voiceover_id:null==e?void 0:null===(i=e.voiceoverGender)||void 0===i?void 0:i.value,include_background_music:(null==e?void 0:e.backgroundMusic)?1:0,aspect_ratio:null==e?void 0:null===(o=e.aspectRatio)||void 0===o?void 0:o.value,motion_effects:(null==e?void 0:e.motionEffects)?1:0,...(null==e?void 0:e.textType)==="videoIdeaTab"?{topic:null==e?void 0:e.videoIdea,theme:x.ZP.videoThemes[1].value,duration:null==e?void 0:null===(n=e.videoDuration)||void 0===n?void 0:n.value,language:(null==e?void 0:null===(a=e.language)||void 0===a?void 0:null===(r=a.language)||void 0===r?void 0:r.code)||(null==e?void 0:null===(l=e.language)||void 0===l?void 0:l.value)}:{script:null==e?void 0:null===(s=e.videoScript)||void 0===s?void 0:s.replace(/(?:\r\n|\r|\n)/g," ")},assets_type:null==e?void 0:e.visualsSource,...(null==e?void 0:e.visualsSource)===x.NY.AI_GENERATED_IMAGES&&(null==e?void 0:e.videoVisual)?{image_style:null==e?void 0:e.videoVisual}:{}}},[]),I=n.useCallback(e=>{let{currentSceneId:t}=e;return w(s.Z.getNextScene({currentSceneId:t}))},[]),D=n.useCallback(e=>{let{currentSceneId:t}=e;return w(s.Z.getPreviousScene({currentSceneId:t}))},[]),O=e=>{var t,i;let o=!!(null==e?void 0:e.quote),n=(null==e?void 0:e.aspect_ratio)==="16:9"?1920:1080;return(null==e?void 0:null===(t=e.text_settings)||void 0===t?void 0:t.font_size)&&o?(null==E?void 0:E.width)*(null==e?void 0:null===(i=e.text_settings)||void 0===i?void 0:i.font_size)/n:(null==E?void 0:E.width)*70/n},N=n.useCallback(e=>{let{key:t,value:i}=e;w(s.Z.updateGeneralSettings({key:t,value:i}))},[]),j=n.useCallback(e=>{let{value:t}=e;w(s.Z.updateStaticOverlay({value:t}))},[]),M=n.useCallback((e,t)=>{w(s.Z.updateSceneDetails(e,t))},[]),R=n.useCallback((e,t)=>{w(s.Z.updateSceneDuration(e,t))},[]),z=n.useCallback(e=>{let{videoId:t,sceneId:i,values:o}=e;return new Promise((e,n)=>{try{a.x.deleteSceneImage({videoId:t,sceneId:i,values:o},t=>{e({}),M({selection_type:"image_generated",selected_type_id:null,image_scale:"fill",uploads:[]})},e=>{n(e)})}catch(e){n({})}})},[]),L=async e=>{let{file_name:t,type:i,videoId:o,sceneId:n,file:r}=e;return new Promise((e,l)=>{a.x.createUploadScene({videoId:o,sceneId:n,values:{file_name:t,type:i}},async t=>{let{data:i}=t;try{var s;await (s=null==i?void 0:i.url,new Promise((e,t)=>{let i=new XMLHttpRequest;i.open("PUT",s,!0),i.setRequestHeader("Content-Type",r.type),i.onload=function(o){200===i.status?e({message:"File uploaded successfully!"}):t(Error("Upload failed with status: ".concat(i.status)))},i.onerror=function(e){t(Error("Network error occurred during upload"))},i.upload.addEventListener("progress",function(e){e.lengthComputable&&(e.loaded,e.total)}),i.send(r)})),a.x.completeUploadScene({videoId:o,sceneId:n,uploadId:null==i?void 0:i.upload_id},t=>{let{data:i}=t;e({})},e=>{l(e)})}catch(e){l(e)}},e=>{l(e)})})},V=n.useCallback(e=>{let{values:t}=e;w(s.Z.updateTextSettings(t))},[]),F=n.useCallback(e=>{let{sceneId:t,videoId:i}=e;return new Promise((e,o)=>{a.x.deleteScene({sceneId:t,videoId:i},t=>{e(t)},e=>{o(e)})})},[]),U=t=>{C({type:f.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,exitStyle:{display:"none"},children:(0,o.jsx)(g.Z,{icon:(0,o.jsx)(y.Z,{src:"/icons/trash.svg",fill:"var(--secondary-color)",width:"40px",height:"40px"}),header:e.textToSpeech.deleteConfirmation.header,title:"".concat(e.textToVideo.scenes.delete.confirmation.title),onOk:(e,i)=>{t(),i()},cancelText:e.global.cancel,okText:e.global.delete})}})},G=n.useCallback(async t=>{let{sceneId:i}=t;w(s.Z.canDeleteScene())?U(async()=>{w(s.Z.deleteScene({sceneId:i,makeActive:!m.tq}));try{await F({sceneId:i,videoId:null==k?void 0:k.id})}catch(e){}}):C({type:f.BT.TOAST_STATE_CHANGED,payload:{open:!0,type:"warning",position:"right-bottom",message:e.textToVideo.scenes.delete.error,time:5e3}})},[null==k?void 0:k.id]),B=n.useCallback(async e=>{let{sceneId:t,videoId:i}=e;return new Promise((e,o)=>{a.x.splitScene({sceneId:t,videoId:i},t=>{e(t)},e=>{o(e)})})},[]);return{exportVideo:e=>{let{videoId:t}=e;return new Promise(async(e,i)=>{r.R.videos.export({videoId:t},()=>{e({})},e=>{i(e)})})},shapeExportValues:P,getVoiceOvers:e=>
1new Promise(async(t,i)=>{a.x.getVoiceOvers(e,e=>{t(e)},e=>{i(e)})}),changeActiveScene:e=>{let{sceneId:t}=e;return w(s.Z.changeActiveScene({sceneId:t}))},loadScenes:e=>{let{videoId:t}=e;return new Promise(async e=>{w(c.Z.changeCurrentTime(0));try{let{editor_data:i}=await S({videoId:t});a.x.getScenes({videoId:t},o=>{var n,r,a,l,d,c,m,h,f,v,g,y,S,C,k,T,E,P,I,D;let N=!!(null==i?void 0:i.quote),j=N?[null==o?void 0:null===(n=o.data)||void 0===n?void 0:n.scenes[0]]:null==o?void 0:null===(r=o.data)||void 0===r?void 0:r.scenes,M=null==j?void 0:j.map(e=>s.Z.sceneObjectTransformation({scene:e})),R=O(i),z=_()(i,"static_overlay");w(s.Z.initializeScenes({data:{scenes:M,subtitles:(null==o?void 0:null===(a=o.data)||void 0===a?void 0:a.text_transcription)?p.Z.removeDuplicateSubtitles(null==o?void 0:null===(l=o.data)||void 0===l?void 0:l.text_transcription).map((e,t)=>({...e,id:t})):N?[{text:null==i?void 0:i.quote,start:0,end:null===(d=M[(null==M?void 0:M.length)-1])||void 0===d?void 0:d.to,id:0}]:null,generalDetails:{isQuote:N,animationOverlay:(null==o?void 0:null===(c=o.data)||void 0===c?void 0:c.animation_overlay)||null,voiceoverUrl:null==o?void 0:null===(m=o.data)||void 0===m?void 0:m.voiceover_url,musicUrl:null==o?void 0:null===(h=o.data)||void 0===h?void 0:h.music_url,musicName:null==o?void 0:null===(f=o.data)||void 0===f?void 0:f.music_name,hasAnimation:null==o?void 0:null===(v=o.data)||void 0===v?void 0:v.has_animation,hasSubtitles:null==o?void 0:null===(g=o.data)||void 0===g?void 0:g.has_subtitles,hasBackgroundMusic:null==o?void 0:null===(y=o.data)||void 0===y?void 0:y.has_background_music,hasFreeVoiceoverRegeneration:null==o?void 0:null===(S=o.data)||void 0===S?void 0:S.has_free_voiceover_regeneration,totalNumberOfFreeVoiceoverRegeneration:(null==o?void 0:null===(C=o.data)||void 0===C?void 0:C.total_number_of_free_voiceover_regeneration)||0,usedNumberOfFreeVoiceoverRegeneration:(null==o?void 0:null===(k=o.data)||void 0===k?void 0:k.used_number_of_free_voiceover_regeneration)||0,language:(null==i?void 0:i.language)||(0,b.iT)(null==i?void 0:i.script)||"en",aspectRatio:(null==i?void 0:i.aspect_ratio)||"9:16"},textSettings:(0,A.UE)((0,b.N4)({...u.o.textSettings,...null==i?void 0:i.text_settings,fontSize:R,background:(null==i?void 0:null===(T=i.text_settings)||void 0===T?void 0:T.background)?{...null==i?void 0:null===(E=i.text_settings)||void 0===E?void 0:E.background,padding:Number(null==i?void 0:null===(I=i.text_settings)||void 0===I?void 0:null===(P=I.background)||void 0===P?void 0:P.padding)}:null})),video:{id:t,duration:Number(null===(D=M[(null==M?void 0:M.length)-1])||void 0===D?void 0:D.to)},editorData:{...i,aspect_ratio:(null==i?void 0:i.aspect_ratio)||"9:16"},activeScene:N?M[0]:null,overlays:{staticOverlay:z?null==i?void 0:i.static_overlay:x.ZP.defaultStaticOverlay}}})),e({})})}catch(e){}})},getNextScene:I,getPreviousScene:D,updateGeneralSettings:N,updateScene:M,createUploadUrl:L,onDeleteSceneImage:z,getSce
1neInCurrentTime:()=>w(s.Z.getSceneInCurrentTime()),onUpdateTextSettings:V,getVoiceOverStatus:e=>{let{videoId:t}=e;return new Promise((e,i)=>{try{a.x.getVoiceOverStatus({videoId:t,filters:{latest:1}},t=>{e(t)},e=>{i(e)})}catch(e){i(e)}})},regenerateVoiceOver:e=>{let{videoId:t,data:i}=e;return new Promise((e,o)=>{try{a.x.regenerateVoiceOver({videoId:t,data:i},t=>{e(t)},e=>{o(e)})}catch(e){o(e)}})},generateScenes:e=>{let{videoId:t}=e;return new Promise(async(e,i)=>{a.x.generateScenes({videoId:t},()=>{e({})},e=>{i(e)})})},updateSceneDuration:R,deleteScene:G,splitScene:n.useCallback(async o=>{let{sceneId:n}=o;w(s.Z.toggleScenesLoader(!0));try{let{data:e}=await B({sceneId:n,videoId:null==k?void 0:k.id});w(s.Z.toggleScenesLoader(!1)),w(c.Z.changeCurrentTime(Number(null==e?void 0:e.from))),m.tq?(0,h.bE)(Number(null==e?void 0:e.from),t,i):(0,h.lS)(Number(null==e?void 0:e.from),t,i),w(s.Z.splitScene({sceneId:n,newScene:e}))}catch(t){C({type:f.BT.TOAST_STATE_CHANGED,payload:{open:!0,type:"warning",position:"right-bottom",message:e.textToVideo.scenes.split.error,time:5e3}})}finally{w(s.Z.toggleScenesLoader(!1))}},[null==k?void 0:k.id,t,i]),listOverlays:n.useCallback(e=>new Promise((t,i)=>{a.x.overlays.list(e,e=>{t(e)},e=>{i(e)})}),[]),updateStaticOverlay:j,updateEditorData:n.useCallback(e=>{let{values:t}=e;w(s.Z.updateEditorData(t))},[]),isQuote:T}}},90549:function(e,t,i){"use strict";var o=i(68419),n=i(20931),r=i(64125),a=i(67294),l=i(25617),s=i(11163),d=i.n(s),u=i(90238),c=i(88200),p=i(36808),m=i.n(p),h=i(64329),f=i(15953),v=i(25103);t.Z=()=>{var e,t,i,s,p,g,y;let b=(0,l.v9)(e=>{var t;return null==e?void 0:null===(t=e.Auth)||void 0===t?void 0:t.user}),A=(0,l.I0)(),x=a.useMemo(()=>{var e;return null==b?void 0:null===(e=b.subscription)||void 0===e?void 0:e.is_subscribed},[null==b?void 0:null===(e=b.subscription)||void 0===e?void 0:e.is_subscribed]),w=a.useMemo(()=>{var e;return!!(null==b?void 0:null===(e=b.subscription)||void 0===e?void 0:e.new_subscriber)},[null==b?void 0:null===(t=b.subscription)||void 0===t?void 0:t.new_subscriber]),_=a.useMemo(()=>{var e,t;return(null==b?void 0:null===(e=b.subscription)||void 0===e?void 0:e.subscription_plan_key)==="pro"||(null==b?void 0:null===(t=b.subscription)||void 0===t?void 0:t.subscription_plan_key)==="basic"},[null==b?void 0:null===(i=b.subscription)||void 0===i?void 0:i.plan_id]),S=a.useMemo(()=>null==b?void 0:b.has_paid_history,[null==b?void 0:b.has_paid_history]),C=a.useMemo(()=>{var e;return(null==b?void 0:null===(e=b.subscription)||void 0===e?void 0:e.subscription_status)===n.Ch.PAUSED},[null==b?void 0:null===(s=b.subscription)||void 0===s?void 0:s.subscription_status]),k=a.useMemo(()=>{var e;return(null==b?void 0:null===(e=b.subscription)||void 0===e?void 0:e.subscription_status)===n.Ch.PAST_DUE},[null==b?void 0:null===(p=b.subscription)||void 0===p?void 0:p.subscription_status]),T=a.useMemo(()=>{var e;return(null==b?void 0:null===(e=b.subscription)||void 0===e?void 0:e.subscription_status)===n.Ch.DELETED},[null==b?void 0:null===(g=b.subscription)||void 0===g?void 0:g.subscription_status]),E=a.useMemo(()=>{var e,t;return(null==b?void 0:null===(e=b.credits)||void 0===e?void 0:e.total)>(null==b?void 0:null===(t=b.credits)||void 0===t?void 0:t.used)},[null==b?void 0:b.credits]),P=a.useMemo(()=>!!(null==b?void 0:b.id),[null==b?void 0:b.id]),I=!!(0,h.fJ)(),D=a.useCallback(async()=>{A((0,o.bG)())},[A]),O=a.useCallback(()=>{A((0,o.bG)(e=>{A((0,o.Qm)(e))}))},[A]),N=a.useCallback(async e=>{A((0,o.gS)(e,()=>{A((0,o.Qm)(e))}))},[A,D]),j=()=>{m().remove(n.f5.API_TOKEN),m().remove(n.f5.FCM_TOKEN),m().remove(n.f5.VERIFICATION_STATUS),(0,c.gk)({name:"actionAfterLogin"}),(0,f.eu)(),A({type:n.MF.APP_LOGOUT})},M=async()=>{if(m().get(n.f5.API_TOKEN))try{await r.i.logout(),j()}catch(e){j()}else j();u.ZP.reset(),(d().pathname.includes("/studio")||d().pathname.includes("/ai-studio"))&&d().replace({pathname:n.P2.HOME},n.P2.HOME,{locale:d().query.locale?"".concat(d().query.locale):""})},R=a.useCallback(async()=>new Promise(async(e,t)=>{try{await r.i.deleteAccount(e,t),u.ZP.reset(),M(),e(!0)}catch(e){t(e)}}),[]),z=a.useMemo(()=>{var e,t,i,o,n,r;return{id:Number(null==b?void 0:null===(e=b.billingInfo)||void 0===e?void 0:e.subscription_plan_id),title:null==b?void 0:null===(t=b.billingInfo)||void 0===t?void 0:t.plan_title,title_ar:null==b?void 0:null===(i=b.billingInfo)||void 0===i?void 0:i.plan_title_ar,price:null==b?void 0:null===(o=b.billingInfo)||void 0===o?void 0:o.price,interval:null==b?void 0:null===(n=b.billingInfo)||void 0===n?void 0:n.plan_interval,credits_amount:null==b?void 0:null===(r=b.billingInfo)||void 0===r?void 0:r.credits_amount}},[null==b?void 0:b.billingInfo]),L=a.useMemo(()=>(null==b?void 0:b.id)?null==b?void 0:b.billingInfo:null,[null==b?void 0:b.id,null==b?void 0:b.billingInfo]),V=a.useMemo(()=>{var e;return(null==b?void 0:null===(e=b.billingInfo)||void 0===e?void 0:e.plan_interval)==="year"},[null==b?void 0:b.billingInfo]),F=a.useMemo(()=>null==b?void 0:b.is_verified,[b]),U=a.useMemo(()=>!!(null==b?void 0:b.classic_subscriber),[null==b?void 0:b.classic_subscriber]),G=a.useMemo(()=>!T&&!C,[null==b?void 0:null===(y=b.subscription)||void 0===y?void 0:y.subscription_status]),B=a.useMemo(()=>U?C&&!V:C,[C,V,U]),Z=a.useMemo(()=>(0,v.PB)(b),[b,null==b?void 0:b.free_eligible_usages,null==b?void 0:b.freeEligibleUsages]);
1return{isSubscribed:x,hasCredits:E,userState:b,isPaused:C,isSubscriptionPastDue:k,isSubscriptionDeleted:T,canCancelSubscription:G,fetchUser:D,currentPlanInfo:z,isYearly:V,isVerified:F,isClassicSubscriber:U,isLoggedIn:P,updateUser:N,deleteAccount:R,hydrateUser:O,billingInfo:L,hasToken:I,hasPaidHistory:S,isNewSubscriber:w,isBasicOrProSubscriber:_,isReactivate:B,hasFreeProductShotsEligibility:Z}}},84078:function(e,t,i){"use strict";var o=i(67294);t.Z=e=>(0,o.useCallback)(async t=>{try{return{values:await e.validate(t,{abortEarly:!1}),errors:{}}}catch(e){var i;return{values:{},errors:null==e?void 0:null===(i=e.inner)||void 0===i?void 0:i.reduce((e,t)=>{var i;return{...e,[t.path]:{type:null!==(i=t.type)&&void 0!==i?i:"validation",message:t.message}}},{})}}},[e])},89053:function(e,t,i){"use strict";i.d(t,{ZP:function(){return f},Eh:function(){return h}});var o=i(24139),n=i(56888),r=i(27037),a=i(7506),l=class extends a.l{constructor(e={}){super(),this.config=e,this.#e=new Map}#e;build(e,t,i){let r=t.queryKey,a=t.queryHash??(0,o.Rm)(r,t),l=this.get(a);return l||(l=new n.A({client:e,queryKey:r,queryHash:a,options:e.defaultQueryOptions(t),state:i,defaultOptions:e.getQueryDefaults(r)}),this.add(l)),l}add(e){this.#e.has(e.queryHash)||(this.#e.set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){let t=this.#e.get(e.queryHash);t&&(e.destroy(),t===e&&this.#e.delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){r.Vr.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return this.#e.get(e)}getAll(){return[...this.#e.values()]}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,o._x)(t,e))}findAll(e={}){let t=this.getAll();return Object.keys(e).length>0?t.filter(t=>(0,o._x)(e,t)):t}notify(e){r.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){r.Vr.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){r.Vr.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},s=i(59289),d=class extends a.l{constructor(e={}){super(),this.config=e,this.#t=new Set,this.#i=new Map,this.#o=0}#t;#i;#o;build(e,t,i){let o=new s.m({mutationCache:this,mutationId:++this.#o,options:e.defaultMutationOptions(t),state:i});return this.add(o),o}add(e){this.#t.add(e);let t=u(e);if("string"==typeof t){let i=this.#i.get(t);i?i.push(e):this.#i.set(t,[e])}this.notify({type:"added",mutation:e})}remove(e){if(this.#t.delete(e)){let t=u(e);if("string"==typeof t){let i=this.#i.get(t);if(i){if(i.length>1){let t=i.indexOf(e);-1!==t&&i.splice(t,1)}else i[0]===e&&this.#i.delete(t)}}}this.notify({type:"removed",mutation:e})}canRun(e){let t=u(e);if("string"!=typeof t)return!0;{let i=this.#i.get(t),o=i?.find(e=>"pending"===e.state.status);return!o||o===e}}runNext(e){let t=u(e);if("string"!=typeof t)return Promise.resolve();{let i=this.#i.get(t)?.find(t=>
1t!==e&&t.state.isPaused);return i?.continue()??Promise.resolve()}}clear(){r.Vr.batch(()=>{this.#t.forEach(e=>{this.notify({type:"removed",mutation:e})}),this.#t.clear(),this.#i.clear()})}getAll(){return Array.from(this.#t)}find(e){let t={exact:!0,...e};return this.getAll().find(e=>(0,o.X7)(t,e))}findAll(e={}){return this.getAll().filter(t=>(0,o.X7)(e,t))}notify(e){r.Vr.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){let e=this.getAll().filter(e=>e.state.isPaused);return r.Vr.batch(()=>Promise.all(e.map(e=>e.continue().catch(o.ZT))))}};function u(e){return e.options.scope?.id}var c=i(66474),p=i(14304),m=i(54948);let h=new class{#n;#r;#a;#l;#s;#d;#u;#c;constructor(e={}){this.#n=e.queryCache||new l,this.#r=e.mutationCache||new d,this.#a=e.defaultOptions||{},this.#l=new Map,this.#s=new Map,this.#d=0}mount(){this.#d++,1===this.#d&&(this.#u=c.j.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onFocus())}),this.#c=p.N.subscribe(async e=>{e&&(await this.resumePausedMutations(),this.#n.onOnline())}))}unmount(){this.#d--,0===this.#d&&(this.#u?.(),this.#u=void 0,this.#c?.(),this.#c=void 0)}isFetching(e){return this.#n.findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return this.#r.findAll({...e,status:"pending"}).length}getQueryData(e){let t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state.data}ensureQueryData(e){let t=this.defaultQueryOptions(e),i=this.#n.build(this,t),n=i.state.data;return void 0===n?this.fetchQuery(e):(e.revalidateIfStale&&i.isStaleByTime((0,o.KC)(t.staleTime,i))&&this.prefetchQuery(t),Promise.resolve(n))}getQueriesData(e){return this.#n.findAll(e).map(({queryKey:e,state:t})=>[e,t.data])}setQueryData(e,t,i){let n=this.defaultQueryOptions({queryKey:e}),r=this.#n.get(n.queryHash),a=r?.state.data,l=(0,o.SE)(t,a);if(void 0!==l)return this.#n.build(this,n).setData(l,{...i,manual:!0})}setQueriesData(e,t,i){return r.Vr.batch(()=>this.#n.findAll(e).map(({queryKey:e})=>[e,this.setQueryData(e,t,i)]))}getQueryState(e){let t=this.defaultQueryOptions({queryKey:e});return this.#n.get(t.queryHash)?.state}removeQueries(e){let t=this.#n;r.Vr.batch(()=>{t.findAll(e).forEach(e=>{t.remove(e)})})}resetQueries(e,t){let i=this.#n;return r.Vr.batch(()=>(i.findAll(e).forEach(e=>{e.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){let i={revert:!0,...t};return Promise.all(r.Vr.batch(()=>this.#n.findAll(e).map(e=>e.cancel(i)))).then(o.ZT).catch(o.ZT)}invalidateQueries(e,t={}){return r.Vr.batch(()=>(this.#n.findAll(e).forEach(e=>{e.invalidate()}),e?.refetchType==="none")?Promise.resolve():this.refetchQueries({...e,type:e?.refetchType??e?.type??"active"},t))}refetchQueries(e,t={}){let i={...t,cancelRefetch:t.cancelRefetch??!0};return Promise.all(r.Vr.batch(()=>this.#n.findAll(e).filter(e=>!e.isDisabled()&&!e.isStatic()).map(e=>{let t=e.fetch(void 0,i);return i.throwOnError||(t=t.catch(o.ZT)),"paused"===e.state.fetchStatus?Promise.resolve():t}))).then(o.ZT)}fetchQuery(e){let t=this.defaultQueryOptions(e);void 0===t.retry&&(t.retry=!1);let i=this.#n.build(this,t);return i.isStaleByTime((0,o.KC)(t.staleTime,i))?i.fetch(t):Promise.resolve(i.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(o.ZT).catch(o.ZT)}fetchInfiniteQuery(e){return e.behavior=(0,m.Gm)(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(o.ZT).catch(o.ZT)}ensureInfiniteQueryData(e){return e.behavior=(0,m.Gm)(e.pages),this.ensureQueryData(e)}resumePausedMutations(){return p.N.isOnline()?this.#r.resumePausedMutations():Promise.resolve()}getQueryCache(){return this.#n}getMutationCache(){return this.#r}getDefaultOptions(){return this.#a}setDefaultOptions(e){this.#a=e}setQueryDefaults(e,t){this.#l.set((0,o.Ym)(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){let t=[...this.#l.values()],i={};return t.forEach(t=>{(0,o.to)(e,t.queryKey)&&Object.assign(i,t.defaultOptions)}),i}setMutationDefaults(e,t){this.#s.set((0,o.Ym)(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){let t=[...this.#s.values()],i={};return t.forEach(t=>{(0,o.to)(e,t.mutationKey)&&Object.assign(i,t.defaultOptions)}),i}defaultQueryOptions(e){if(e._defaulted)return e;let t={...this.#a.queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=(0,o.Rm)(t.queryKey,t)),void 0===t.refetchOnReconnect&&(t.refetchOnReconnect="always"!==t.networkMode),void 0===t.throwOnError&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===o.CN&&(t.enabled=!1),t}defaultMutationOptions(e){return e?._defaulted?e:{...this.#a.mutations,...e?.mutationKey&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){this.#n.clear(),this.#r.clear()}}({defaultOptions:{queries:{structuralSharing:!0,staleTime:3e5,gcTime:6e3,retry:!1,refetchOnWindowFocus:!1,refetchOnReconnect:"always",networkMode:"online"},mutations:{retry:3,networkMode:"online"}}});var f=h},79135:function(e,t,i){"use strict";i.d(t,{bQ:function(){return o},xK:function(){return n},h2:function(){return r},f7:function(){return c},rJ:function(){return x},bx:function(){return g},XT:function(){return k},N$:function(){return p},rp:function(){return d},jW:function(){return E},iJ:function(){return w},xG:function(){return m},G7:function(){return S},kz:function(){return b}});let o="ai-influencers",n="ai-influencer",r="ai-influencer-looks";var a=i(29726),l=i(92116);let s=async e=>new Promise((t,i)=>{l.G.getAll(e,t,i)}),d=e=>{let{per_page:t=10,...i}=e||{};return(0,a.N)({queryKey:[o,{per_page:t}],queryFn:e=>{let{pageParam:i}=e;return s({per_page:t,cursor:i||void 0})},initialPageParam:"",getNextPageParam:e=>{var t;let i=null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.next_cursor;return null!=i?i:void 0},retry:!1,staleTime:3e4,refetchOnWindowFocus:!1,...i})};var u=i(78551);let c=async e=>new Promise((t,i)=>{l.G.getById(e,t,i)}),p=(e,t)=>(0,u.a)({queryKey:[n,e],queryFn:()=>c(e),enabled:!!e,retry:!1,staleTime:3e4,refetchOnWindowFocus:!1,...t}),m=(e,t)=>
1(0,u.a)({queryKey:[n,e],queryFn:()=>c(e),enabled:!!e&&t,refetchInterval:e=>{var t,i;let o=null===(i=e.state.data)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.status;return"completed"!==o&&"failed"!==o&&3e3},retry:!1,refetchOnWindowFocus:!1});var h=i(30202),f=i(98029);let v=async e=>new Promise((t,i)=>{l.G.create(e,t,i)}),g=e=>{let t=(0,h.NL)();return(0,f.D)({mutationFn:v,onSuccess:()=>{t.invalidateQueries({queryKey:[o]})},retry:!1,...e})},y=async e=>{let{id:t,data:i}=e;return new Promise((e,o)=>{l.G.update(t,i,e,o)})},b=e=>{let t=(0,h.NL)();return(0,f.D)({mutationFn:y,onSuccess:(e,i)=>{t.invalidateQueries({queryKey:[o]}),t.invalidateQueries({queryKey:[n,i.id]})},retry:!1,...e})},A=async(e,t)=>new Promise((i,o)=>{l.G.getLooks(e,t,i,o)}),x=e=>"completed"!==e&&"active"!==e&&"failed"!==e,w=(e,t)=>{let{per_page:i=10,...o}=t||{};return(0,a.N)({queryKey:[r,e,{per_page:i}],queryFn:t=>{let{pageParam:o}=t;return A(e,{per_page:i,cursor:o||void 0})},initialPageParam:"",getNextPageParam:e=>{var t;let i=null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.next_cursor;return null!=i?i:void 0},enabled:!!e,retry:!1,staleTime:15e3,refetchOnWindowFocus:!1,...o})},_=async(e,t)=>new Promise((i,o)=>{l.G.getLookById(e,t,i,o)}),S=(e,t)=>(0,u.a)({queryKey:["ai-influencer-look",e,t],queryFn:()=>_(e,t),enabled:!!e&&null!=t&&t>0,refetchInterval:e=>{var t,i;if("error"===e.state.status)return!1;let o=null===(i=e.state.data)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.status;return null==o?3e3:!!x(o)&&3e3},retry:!1,refetchOnWindowFocus:!1}),C=async e=>{let{influencerId:t,data:i}=e;return new Promise((e,o)=>{l.G.createLook(t,i,e,o)})},k=e=>{let t=(0,h.NL)(),{onSuccess:i,...o}=null!=e?e:{};return(0,f.D)({mutationFn:C,onMutate:async e=>{var i,o,n,a,l,s;let d=[r,e.influencerId];await t.cancelQueries({queryKey:d});let u=t.getQueriesData({queryKey:d}),c={id:-Date.now(),ai_influencer_id:e.influencerId,upload_ids:null!==(i=e.data.upload_ids)&&void 0!==i?i:null,prompt:null!==(o=e.data.prompt)&&void 0!==o?o:null,status:"pending",image_url:null,compressed_image_url:null,name:null,is_default:!1,credits:0,sort_order:0,reference_look_id:null!==(n=e.data.reference_look_id)&&void 0!==n?n:null,environment_preset:null!==(a=e.data.environment_preset)&&void 0!==a?a:null,shot_style_preset:null!==(l=e.data.shot_style_preset)&&void 0!==l?l:null,camera_angle_preset:null!==(s=e.data.camera_angle_preset)&&void 0!==s?s:null,created_at:new Date().toISOString()};return t.setQueriesData({queryKey:d},e=>{var t,i;if(!(null==e?void 0:null===(t=e.pages)||void 0===t?void 0:t.length))return e;let[o,...n]=e.pages;return{...e,pages:[{...o,data:[c,...null!==(i=o.data)&&void 0!==i?i:[]]},...n]}}),{previousData:u}},onError:(e,i,o)=>{var n;null==o||null===(n=o.previousData)||void 0===n||n.forEach(e=>{let[i,o]=e;t.setQueryData(i,o)})},onSuccess:(e,o,n)=>{t.invalidateQueries({queryKey:[r,o.influencerId]}),null==i||i(e,o,n)},retry:!1,...o})},T=()=>new Promise((e,t)=>{l.G.getLookPresets(e,t)}),E=()=>(0,u.a)({queryKey:["ai-influencer-look-presets"],queryFn:T,staleTime:36e5})},10009:function(e,t,i){"use strict";i.d(t,{L6:function(){return p},ck:function(){return c},dY:function(){return m},lg:function(){return u},nn:function(){return h}});var o=i(67294),n=i(30202),r=i(78551),a=i(89053),l=i(87162);let s=(e,t)=>{for(let i of t?a.Eh.getQueriesData({queryKey:["ai-models",t]}).map(e=>{let[t]=e;return t}):a.Eh.getQueriesData({queryKey:["ai-models"]}).map(e=>{let[t]=e;return t})){let t=(0,l.G_)(a.Eh.getQueryData(i));if(!t.length)continue;let o=t.find(t=>t.id===e.id||t.slug===e.slug);if(o)return o}return e},d=(e,t)=>{for(let[,i]of e.getQueriesData({queryKey:["ai-models",t]})){let e=(0,l.G_)(i);if(e.length)return{model:e.find(e=>e.is_featured)||e[0]}}},u=e=>{let t=(0,n.NL)(),i=o.useCallback(e=>{if(!e)return;let i=t.getQueryData(["selected-model",e]);return(null==i?void 0:i.model)?i:void 0},[t]),a=o.useMemo(()=>i(e),[i,e]),l=t.getQueryState(["selected-model",e]),s=(null==l?void 0:l.status)==="success"&&!!(null==a?void 0:a.model);return(0,r.a)({queryKey:["selected-model",e],queryFn:()=>{let o=i(e);return(null==o?void 0:o.model)?o:d(t,e)},initialData:a,refetchOnMount:!s,refetchOnWindowFocus:!1,retry:!1,enabled:!!e,staleTime:3e5,gcTime:36e5})},c=(e,t)=>{let i=s(e,t);a.Eh.setQueryData(["selected-model",t],{model:i})},p=(e,t,i)=>{let o=s(e,i);a.Eh.setQueryData(["selected-model",i],{model:o}),a.Eh.setQueryData(["pending-form-parameters"],{parameters:t,modelId:o.id,timestamp:Date.now()})},m=()=>(0,r.a)({queryKey:["pending-form-parameters"],queryFn:()=>a.Eh.getQueryData(["pending-form-parameters"]),retry:!1}),h=()=>{a.Eh.removeQueries({queryKey:["pending-form-parameters"]})}},87162:function(e,t,i){"use strict";i.d(t,{G_:function(){return l},t4:function(){return p}});var o=i(51726),n=i(30202),r=i(78551),a=i(73726);let l=e=>{var t,i;return e?"models"in e&&Array.isArray(e.models)?e.models:null!==(i=null===(t=e.data)||void 0===t?void 0:t.models)&&void 0!==i?i:[]:[]},s=e=>({data:{models:l(e)}}),d=e=>e===a.u9.TEXT_TO_SCENE||e===a.u9.IMAGE_TO_SCENE?a.u9.SCENE_GENERATOR:e||a.u9.IMAGE_EDITOR,u=(e,t)=>
1{let i=e||a.u9.IMAGE_EDITOR;return t?["ai-models",i,t]:["ai-models",i]},c=async(e,t)=>new Promise((i,n)=>{o.y.getAiModels({feature:d(e),type:t},e=>i(s(e)),n)}),p=(e,t)=>{let i=(0,n.NL)(),o=u(e,t);return(0,r.a)({queryKey:o,queryFn:()=>c(e,t),enabled:!!e,retry:!1,refetchOnWindowFocus:!1,refetchOnMount:e=>void 0===e.state.data,placeholderData:()=>i.getQueryData(o)})}},25750:function(e,t,i){"use strict";i.d(t,{JX:function(){return r},wI:function(){return d},GV:function(){return c},Y$:function(){return l},nf:function(){return y},vh:function(){return v},YU:function(){return A},vs:function(){return p}});var o=i(29726),n=i(53053);let r="photoshoot-executions",a=async e=>new Promise((t,i)=>{n.d.getExecutions(e,t,i)}),l=(e,t)=>(0,o.N)({queryKey:[r,e],queryFn:t=>{let{pageParam:i}=t;return a({...e,cursor:i})},initialPageParam:"",getNextPageParam:e=>{var t;let i=null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.next_cursor;return null!=i?i:void 0},retry:!1,refetchOnWindowFocus:!1,...t});var s=i(78551);let d="photoshoot-execution",u=async e=>new Promise((t,i)=>{n.d.getExecution(e,t,i)}),c=(e,t)=>{var i;return(0,s.a)({queryKey:[d,null!=e?e:null],queryFn:()=>u(e),enabled:!!e&&(null===(i=null==t?void 0:t.enabled)||void 0===i||i),retry:!1,...t})},p=(e,t)=>(0,s.a)({queryKey:[d,e],queryFn:()=>u(e),enabled:!!e&&t,refetchInterval:e=>{var t,i;let o=null===(i=e.state.data)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.status;return"completed"!==o&&"failed"!==o&&3e3},retry:!1,refetchOnWindowFocus:!1});var m=i(30202),h=i(98029);let f=async e=>new Promise((t,i)=>{n.d.run(e,t,i)}),v=e=>{let t=(0,m.NL)();return(0,h.D)({mutationFn:e=>f(e),onSuccess:()=>{t.invalidateQueries({queryKey:[r]})},retry:!1,...e})},g=async()=>new Promise((e,t)=>{n.d.getMusicProductShots(e,t)}),y=e=>(0,s.a)({queryKey:["photoshoot-music"],queryFn:()=>g(),retry:!1,...e}),b=async e=>{let{executionId:t,payload:i}=e;return new Promise((e,o)=>{n.d.createPromoVideo(t,i,e,o)})},A=e=>(0,h.D)({mutationFn:e=>b(e),retry:!1,...e})},55866:function(e,t,i){"use strict";i.d(t,{$p:function(){return a}});var o=i(78551),n=i(65659);let r=async e=>new Promise((t,i)=>{n.$.getRecentSessions(e,t,i)}),a=(e,t)=>(0,o.a)({queryKey:["recent-resource-sessions",e],queryFn:()=>r(e),retry:!1,staleTime:3e4,refetchOnWindowFocus:!1,...t})},7899:function(e,t,i){"use strict";i.d(t,{fu:function(){return a}});var o=i(29726),n=i(65659);i(36808),i(20931);let r=async e=>new Promise((t,i)=>{n.$.getSessions(e,t,i)}),a=(e,t,i)=>{let n=t?["sessions",t,e]:["sessions",e];return(0,o.N)({queryKey:n,queryFn:t=>{let{pageParam:i}=t;return r({...e,cursor:i})},initialPageParam:"",getNextPageParam:e=>{var t;let i=null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.next_cursor;return null!=i?i:void 0},retry:!1,refetchOnWindowFocus:!1,...i})}},63727:function(e,t,i){"use strict";i.d(t,{Y:function(){return l},_:function(){return a}});var o=i(66954),n=i(29726),r=i(78996);let a=async e=>new Promise((t,i)=>{o.h.list({filter:e},t,i)}),l=(e,t)=>(0,n.N)({queryKey:r.queryKeys.studioImages(e),queryFn:t=>{let{pageParam:i}=t;return a({...e,cursor:i})},getNextPageParam:e=>{var t;let i=null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.next_cursor;return null!=i?i:void 0},initialPageParam:"",staleTime:0,gcTime:0,...t})},64814:function(e,t,i){"use strict";i.d(t,{w:function(){return a}});var o=i(78551),n=i(78674);let r=async e=>new Promise((t,i)=>{n.R.getTemplate(e,t,i)}),a=(e,t)=>(0,o.a)({queryKey:["template",e],queryFn:()=>r(e),enabled:!!e,...t})},32324:function(e,t,i){"use strict";i.d(t,{S5:function(){return c},nq:function(){return l},qz:function(){return d}});var o=i(78674),n=i(78551),r=i(89053);let a=async e=>new Promise((t,i)=>{o.R.getTemplatesCategories(e,t,i)}),l=(e,t)=>(0,n.a)({queryKey:["templates","categories"],queryFn:()=>a(e),staleTime:0,gcTime:0,...t}),s=e=>new Promise((t,i)=>{var o,n,a;let l=r.Eh.getQueryData(["templates","categories"]);(null==l?void 0:null===(o=l.data)||void 0===o?void 0:o.length)||i(Error("No categories found"));let s=null==l?void 0:null===(n=l.data)||void 0===n?void 0:n.find(t=>t.slug===e);s&&(s.subcategories=null===(a=s.subcategories)||void 0===a?void 0:a.filter(e=>{var t;return((null==e?void 0:null===(t=e.template_groups)||void 0===t?void 0:t.length)||0)>0})),s?t(s):i(Error("Category not found"))}),d=(e,t)=>(0,n.a)({queryKey:["templates","categories",e],queryFn:()=>s(e||""),enabled:!!e||(null==t?void 0:t.enabled),staleTime:0,gcTime:0,...t}),u=(e,t)=>
1new Promise((i,o)=>{var n,a,l;let s=r.Eh.getQueryData(["templates","categories"]);(null==s?void 0:null===(n=s.data)||void 0===n?void 0:n.length)||o(Error("No categories found"));let d=null==s?void 0:null===(a=s.data)||void 0===a?void 0:a.find(t=>t.slug===e),u=null==d?void 0:null===(l=d.subcategories)||void 0===l?void 0:l.find(e=>e.slug===t);u?i({...u,category:d}):o(Error("Subcategory not found"))}),c=(e,t,i)=>(0,n.a)({queryKey:["templates","categories",e,t],queryFn:()=>u(e,t),enabled:!!e&&!!t,staleTime:0,gcTime:0,...i})},56611:function(e,t,i){"use strict";i.d(t,{K:function(){return d}});var o=i(98029),n=i(86120);let r=async e=>new Promise((t,i)=>{n.W.post("track",e,e=>{t(e)},e=>{i(e)})});var a=i(78783),l=i(18751);let s=(e,t)=>{let i={event_name:e,event_id:t};{let e=(0,a.P)(),t=(0,l.h)(),o=(0,l.M)();e&&(i.uuid=e),t&&(i.fbc=t),o&&(i.fbp=o)}return i},d=e=>(0,o.D)({mutationFn:async e=>{let{event_name:t,event_id:i}=e;return r(s(t,i))},retry:!1,onError:e=>{},...e})},73501:function(e,t,i){"use strict";i.d(t,{YY:function(){return r},fA:function(){return C.fA},kg:function(){return C.kg},ms:function(){return p},av:function(){return w},GV:function(){return l},t4:function(){return y},ii:function(){return S},Jn:function(){return h},fn:function(){return v},vs:function(){return s}});var o=i(99245),n=i(78551);let r="virtual-try-on-execution",a=async e=>new Promise((t,i)=>{o.W.getExecution(e,t,i)}),l=(e,t)=>(0,n.a)({queryKey:[r,e],queryFn:()=>a(e),enabled:!!e,retry:!1,...t}),s=(e,t)=>(0,n.a)({queryKey:[r,e],queryFn:()=>a(e),enabled:!!e&&t,refetchInterval:e=>{var t,i;let o=null===(i=e.state.data)||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:t.status;return"completed"!==o&&"failed"!==o&&3e3},retry:!1,refetchOnWindowFocus:!1});var d=i(30202),u=i(98029),c=i(29726);let p="virtual-try-on-resource-sessions",m=async e=>new Promise((t,i)=>{o.W.getResourceSessions(e,t,i)}),h=(e,t)=>(0,c.N)({queryKey:[p,e],queryFn:t=>{let{pageParam:i}=t;return m({...e,cursor:i})},initialPageParam:"",getNextPageParam:e=>{var t,i;let o=null==e?void 0:null===(t=e.meta)||void 0===t?void 0:t.next_cursor;if(null!=o)return o;let n=null==e?void 0:null===(i=e.links)||void 0===i?void 0:i.next;if(n)try{let e=new URL(n).searchParams.get("cursor");return null!=e?e:void 0}catch(e){return}},retry:!1,...t}),f=async e=>new Promise((t,i)=>{o.W.run(e,t,i)}),v=e=>{let t=(0,d.NL)(),{onSuccess:i,...o}=e||{};return(0,u.D)({...o,mutationFn:e=>f(e),onSuccess:(e,o,n)=>{t.invalidateQueries({queryKey:[p]}),"function"==typeof i&&i(e,o,n)},retry:!1})},g=async e=>{let t=await new Promise((t,i)=>{o.W.getModels(e,t,i)});return{data:((null==t?void 0:t.data)||[]).map(e=>({id:String(e.id),name:e.name,gender:e.gender,thumbnail_url:e.image_url}))}},y=(e,t)=>(0,n.a)({queryKey:["virtual-try-on-models",e],queryFn:()=>g(e),retry:!1,...t}),b="virtual-try-on-resources",A=async()=>new Promise((e,t)=>{o.W.getResources(e,t)}),x=async()=>{var e;let t=await A();return{data:((null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.backgrounds)||[]).map(e=>({id:String(e.id),name:e.name,thumbnail_url:e.image_url}))}},w=e=>(0,n.a)({queryKey:[b,"virtual-try-on-backgrounds"],queryFn:()=>x(),retry:!1,...e}),_=async()=>{var e;let t=await A();return{data:((null==t?void 0:null===(e=t.data)||void 0===e?void 0:e.poses)||[]).map(e=>({id:String(e.id),name:e.name,thumbnail_url:e.image_url}))}},S=e=>(0,n.a)({queryKey:[b,"virtual-try-on-poses"],queryFn:()=>_(),retry:!1,...e});var C=i(33778)},33778:function(e,t,i){"use strict";i.d(t,{CG:function(){return l},fA:function(){return r},kg:function(){return a}});var o=i(78551),n=i(89053);let r="pre-generation-model",a="virtual-try-on",l=e=>(0,o.a)({queryKey:[r,a],queryFn:()=>n.Eh.getQueryData([r,a])||{},refetchOnWindowFocus:!1,gcTime:0,staleTime:0,...e})},20533:function(e,t,i){"use strict";i.d(t,{FY:function(){return p},Rn:function(){return u},ap:function(){return d},bv:function(){return c},j6:function(){return l},og:function(){return s},rH:function(){return h},x1:function(){return m}});var o=i(915),n=i(54178),r=i(64329),a=i(20931);let l={name:"gamePlay",label:(0,r.xQ)()===a.H7.AR.value?"المحتوى":"Content",color:"secondary",sourceInfo:{x:"25%",y:"0%",width:"50%",height:"100%"},destinationInfo:{x:"0%",y:"0%",width:"100%",height:"100%"}},s={name:"faceCam",label:(0,r.xQ)()===a.H7.AR.value?"الكاميرا":"Camera",color:"secondary-2",sourceInfo:{x:"1%",y:"1%",width:"25%",height:"25%"},destinationInfo:{x:"12%",y:"10%",width:"75%",height:"25%"}},d={name:"faceCam",label:(0,r.xQ)()===a.H7.AR.value?"الكاميرا":"Camera",color:"secondary-2",sourceInfo:{x:"1%",y:"1%",width:120,height:120},destinationInfo:{x:"29%",y:"10%",width:120,height:120},aspectRatioLocked:!0},u={name:"faceCam",label:(0,r.xQ)()===a.H7.AR.value?"الكاميرا":"Camera",color:"secondary-2",sourceInfo:{x:"5%",y:"5%",width:"25%",height:"25%"},destinationInfo:{x:"75%",y:"0%",width:"25%",height:"25%"}},c={name:"gamePlay",label:(0,r.xQ)()===a.H7.AR.value?"المحتوى":"Content",color:"secondary",sourceInfo:{x:"35%",y:"0%",width:"50%",height:"100%"},destinationInfo:{x:"0%",y:"0%",width:"100%",height:"100%"}},p=[l,d],m={start:0,end:100},h={videoInstance:null,isFocused:!1,outputSettings:{blured:!1,backgroundColor:"#000000",aspectRatio:n.ZP.outputEditorFormatOptions[1],fbs:a.oc[0],quality:a.h4[0]},editorSettings:{inputBordersVisible:!0,outputBordersVisible:!0,faceCam:{...n.ZP.faceCamOptions[1],strokeStyle:n.ZP.faceCameStrokeStyles[0]}},layers:[l,d],duration:m,aspectRatioChanges:0,videoState:{currentTime:0,playing:!0}};t.ZP=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:h,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case o.gq.UPDATE_OUTPUT_SETTINGS:return{...e,outputSettings:t.payload};case o.gq.GENERAL_DATA:return{...e,...t.payload};case o.gq.UPDATE_LAYERS_INFO:return{...e,layers:t.payload};case o.gq.UPDATE_VIDEO_STATE:return{...e,videoState:{...null==e?void 0:e.videoState,...t.payload}};case o.gq.UPDATE_DURATION:return{...e,duration:{...null==e?void 0:e.duration,...t.payload}};case o.gq.UPDATE_EDITOR_SETTINGS:return{...e,editorSettings:{...null==e?void 0:e.editorSettings,...t.payload}};case o.gq.SOURCE_CLIENT_DIMENTIONS:return{...e,clientDimensions:t.payload};case o.gq.LOAD_STORED_DATA:return t.payload;case o.gq.CLEAR_STATE:return h;default:return e}}},4270:function(e,t,i){"use strict";i.d(t,{o:function(){return a}});var o=i(15138),n=i(45608),r=i(38715);let a={scenes:[],subtitles:[],activeScene:null,history:{prevState:[],redoState:[]},generalDetails:{removeSubtitles:!1,removeAnimations:!1},video:{duration:60},canvasSettings:{width:1080},textSettings:{font:null,capsStyle:"capitalize",color:"#FFFFFF",outlineColor:"#000000",outlineWidth:5},overlays:{staticOverlay:null},loading:!1};t.Z=function(){var e,t,i,l,s,d,u,c,p,m,h,f,v,g,y,b,A,x,w,_,S,C,k,T,E,P,I,D,O,N,j,M,R,z,L,V,F,U,G,B,Z,q,H;let W=arguments.length>0&&void 0!==arguments[0]?arguments[0]:a,Y=arguments.length>1?arguments[1]:void 0;if(W.loading&&Y.type!==o.v.TOGGLE_SCENES_LOADER)return W;switch(Y.type){case o.v.CHANGE_ACTIVE_SCENE:return{...W,activeScene:null==Y?void 0:Y.payload};case o.v.LOAD_T2V_DATA:return{...W,...Y.payload};case o.v.CHANGE_CANVAS_SETTINGS:return{...W,canvasSettings:{...null==W?void 0:W.canvasSettings,...null===(e=Y.payload)||void 0===e?void 0:e.previewDimension}};case o.v.UPDATE_CANVAS_AND_TEXT_SETTINGS:if(null==Y?void 0:null===(i=Y.payload)||void 0===i?void 0:null===(t=i.canvasDimension)||void 0===t?void 0:t.height){let e={x:null==W?void 0:null===(d=W.textSettings)||void 0===d?void 0:null===(s=d.position)||void 0===s?void 0:s.x,y:null==W?void 0:null===(c=W.textSettings)||void 0===c?void 0:null===(u=c.position)||void 0===u?void 0:u.y},t={x:(0,n.k3)(null==W?void 0:null===(m=W.textSettings)||void 0===m?void 0:null===(p=m.position)||void 0===p?void 0:p.x)?(0,r.dE)(null==W?void 0:null===(v=W.textSettings)||void 0===v?void 0:null===(f=v.position)||void 0===f?void 0:null===(h=f.x)||void 0===h?void 0:h.split("%")[0],(null==W?void 0:null===(g=W.canvasSettings)||void 0===g?void 0:g.width)||1080):Number(null==W?void 0:null===(b=W.textSettings)||void 0===b?void 0:null===(y=b.position)||void 0===y?void 0:y.x)||0,y:(0,n.k3)(null==W?void 0:null===(x=W.textSettings)||void 0===x?void 0:null===(A=x.position)||void 0===A?void 0:A.y)?(0,r.dE)(null==W?void 0:null===(S=W.textSettings)||void 0===S?void 0:null===(_=S.position)||void 0===_?void 0:null===(w=_.y)||void 0===w?void 0:w.split("%")[0],(null==W?void 0:null===(C=W.canvasSettings)||void 0===C?void 0:C.height)||1920):Number(null==W?void 0:null===(T=W.textSettings)||void 0===T?void 0:null===(k=T.position)||void 0===k?void 0:k.y)||0},i=Number(null==W?void 0:null===(E=W.canvasSettings)||void 0===E?void 0:E.width)||1080,o=Number(null==W?void 0:null===(P=W.canvasSettings)||void 0===P?void 0:P.height)||1920,a=Number(null===(D=Y.payload)||void 0===D?void 0:null===(I=D.canvasDimension)||void 0===I?void 0:I.width)||1080,l=Number(null===(N=Y.payload)||void 0===N?void 0:null===(O=N.canvasDimension)||void 0===O?void 0:O.height)||1920,Z={x:(0,n.k3)(e.x)?(0,r.dE)(null===(j=e.x)||void 0===j?void 0:j.split("%")[0],a):Number(t.x)/i*a,y:(0,n.k3)(e.y)?(0,r.dE)(null===(M=e.y)||void 0===M?void 0:M.split("%")[0],l):Number(t.y)
1/o*l},q=(null==W?void 0:null===(R=W.generalDetails)||void 0===R?void 0:R.aspectRatio)==="16:9"?1920:1080,H=(null==W?void 0:null===(z=W.textSettings)||void 0===z?void 0:z.fontSize)*q/(null==W?void 0:null===(L=W.canvasSettings)||void 0===L?void 0:L.width),K=!!(null==W?void 0:null===(V=W.generalDetails)||void 0===V?void 0:V.isQuote),Q=(null===(U=Y.payload)||void 0===U?void 0:null===(F=U.canvasDimension)||void 0===F?void 0:F.width)*(K?H:70)/q,$=(null==W?void 0:null===(G=W.textSettings)||void 0===G?void 0:G.boxWidth)*a/i;return{...W,canvasSettings:{...null==W?void 0:W.canvasSettings,...null===(B=Y.payload)||void 0===B?void 0:B.canvasDimension},textSettings:{...null==W?void 0:W.textSettings,position:Z,fontSize:Q,boxWidth:$}}}return{...W,canvasSettings:{...null==W?void 0:W.canvasSettings,...null===(l=Y.payload)||void 0===l?void 0:l.canvasDimension}};case o.v.UPDATE_TEXT_SETTINGS:return{...W,textSettings:{...null==W?void 0:W.textSettings,...Y.payload}};case o.v.CHANGE_GENERAL_SETTINGS:return{...W,generalDetails:{...null==W?void 0:W.generalDetails,...Y.payload}};case o.v.CLEAR_T2V_STATE:return a;case o.v.UPDATE_STATIC_OVERLAY:return{...W,overlays:{...null==W?void 0:W.overlays,staticOverlay:null===(Z=Y.payload)||void 0===Z?void 0:Z.staticOverlay}};case o.v.UPDATE_SUBTITLE:return{...W,subtitles:null==Y?void 0:null===(q=Y.payload)||void 0===q?void 0:q.subtitles};case o.v.TOGGLE_SCENES_LOADER:return{...W,loading:Y.payload};case o.v.UPDATE_EDITOR_DATA:return{...W,editorData:null===(H=Y.payload)||void 0===H?void 0:H.editorData};default:return W}}},78139:function(e,t){"use strict";t.Z={identify:async e=>{let{customId:t}=e;try{var i;let e=null===(i=window)||void 0===i?void 0:i.clarity;e&&(await e("identify",t),e("set","email",t))}catch(e){}},set:async e=>{let{key:t,value:i}=e;try{var o;let e=null===(o=window)||void 0===o?void 0:o.clarity;e&&e("set",t,i)}catch(e){}}}},63675:function(e,t,i){"use strict";i.d(t,{x:function(){return R}});var o=i(49617);class n{static extractFromUrl(e){try{let t=new URLSearchParams(e).get("response-content-disposition");if(t){let e=t.match(/filename="([^"]+)"/);return e?e[1]:null}}catch(e){}return null}static generateDefault(e,t){let i=o.NX[e];return"".concat(t,"_").concat(Math.floor(99e4*Math.random())+1e4,".").concat(i)}static getFilename(e,t,i,o){return o?o:this.extractFromUrl(e)||this.generateDefault(t,i)}}class r{async download(e,t){return new Promise((i,o)=>{var r,a;try{let o=n.getFilename(e,t.mediaType,t.mediaId,t.customFilename),a=document.createElement("a");a.download=o,a.href=e,document.body.appendChild(a),a.click(),document.body.removeChild(a),i({success:!0,downloadUrl:e,filename:o,mediaType:t.mediaType,mediaId:t.mediaId}),null===(r=t.onSuccess)||void 0===r||r.call(t,{success:!0,downloadUrl:e,filename:o,mediaType:t.mediaType,mediaId:t.mediaId})}catch(i){let e={code:"DOWNLOAD_FAILED",message:"Failed to trigger download",originalError:i,retryable:!1};o(e),null===(a=t.onError)||void 0===a||a.call(t,e)}})}}var a=i(87066);class l{static handle(e,t){var i,o,n,r,a,l;if((null==e?void 0:e.code)==="NETWORK_ERROR"||(null==e?void 0:null===(i=e.message)||void 0===i?void 0:i.includes("Network")))return{code:"NETWORK_ERROR",message:"Network connection failed. Please check your internet connection.",originalError:e,retryable:!0};if((null==e?void 0:e.status)===404)return{code:"NOT_FOUND",message:"Media not found. It may have been deleted.",originalError:e,retryable:!1};if((null==e?void 0:e.status)===403){let t=(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.message)||(null==e?void 0:e.message)||(null==e?void 0:null===(a=e.originalError)||void 0===a?void 0:null===(r=a.data)||void 0===r?void 0:r.message)||"";return t.toLowerCase().includes("payment")||t.toLowerCase().includes("paid")||t.toLowerCase().includes("subscription")||t.toLowerCase().includes("payment history")?{code:"NOT_PAID",message:t||"This feature requires a paid plan.",originalError:e,retryable:!1}:{code:"FORBIDDEN",message:"You don't have permission to download this media.",originalError:e,retryable:!1}}return(null==e?void 0:e.status)===401?{code:"UNAUTHORIZED",message:"Authentication required. Please log in again.",originalError:e,retryable:!1}:(null==e?void 0:e.status)>=500?{code:"SERVER_ERROR",message:"Server error. Please try again later.",originalError:e,retryable:!0}:{code:"UNKNOWN_ERROR",message:(null==e?void 0:e.message)||(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.message)||"Download failed. Please try again.",originalError:e,retryable:null!==(l=null==t?void 0:t.retryable)&&void 0!==l&&l}}}let s=a.Z.create();class d{async download(e,t){var i,o,a;try{let o=await s({method:"GET",url:e,responseType:"blob",timeout:t.timeout||3e4,onDownloadProgress:e=>{if(e.total&&t.onProgress){let i=Math.round(100*e.loaded/e.total);t.onProgress(i)}}}),r=o.headers["content-type"],a=t.customFilename;!a&&(a=n.extractFromUrl(e)||n.generateDefault(t.mediaType,t.mediaId));let l=new Blob([o.data],{type:r}),d=window.URL.createObjectURL(l),u=document.createElement("a");u.href=d,u.setAttribute("download",a),document.body.appendChild(u),u.click(),u.remove(),window.URL.revokeObjectURL(d);let c={success:!0,downloadUrl:e,filename:a,fileSize:o.data.size,mediaType:t.mediaType,mediaId:t.mediaId};return null===(i=t.onSuccess)||void 0===i||i.call(t,c),c}catch(n){if(!(null==n?void 0:n.response)&&((null==n?void 0:n.code)==="ERR_NETWORK"||(null==n?void 0:n.code)==="NETWORK_E
1RROR"||(null==n?void 0:n.message)==="Network Error"||(null==n?void 0:null===(a=n.message)||void 0===a?void 0:a.includes("Network"))))return new r().download(e,t);let i=l.handle(n,{retryable:(null==n?void 0:n.code)!=="ECONNABORTED"});throw null===(o=t.onError)||void 0===o||o.call(t,i),i}}}class u{async download(e,t){return new Promise((i,o)=>{var n,r;try{let r=window.open("","_blank");if(!r){let e=l.handle({code:"POPUP_BLOCKED",message:"Popup blocked. Please allow popups for this site."},{retryable:!1});o(e),null===(n=t.onError)||void 0===n||n.call(t,e);return}r.location.href=e,setTimeout(()=>{var o;setTimeout(()=>{try{r.close()}catch(e){}},1e3);let n={success:!0,downloadUrl:e,mediaType:t.mediaType,mediaId:t.mediaId};i(n),null===(o=t.onSuccess)||void 0===o||o.call(t,n)},100)}catch(i){let e=l.handle(i,{retryable:!1});o(e),null===(r=t.onError)||void 0===r||r.call(t,e)}})}}var c=i(81387),p=i(78674),m=i(54178),h=i(2327);class f{async getDownloadUrl(e){return new Promise((t,i)=>{if(e.resourceType===h._.EXECUTION_NODE_RESULT)p.R.downloadResult(Number(e.mediaId),e=>{var o;let n=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:e.download_link);n?t(n):i(Error("Download link not found in response"))},e=>{i(e)});else{let o=e.resourceType===m.Vu.UGC_VIDEO?m.Vu.UGC_VIDEO:void 0;c.R.videos.download({videoId:Number(e.mediaId),type:o},e=>{var o;let n=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:e.download_link);n?t(n):i(Error("Download link not found in response"))},e=>{i(e)})}})}}var v=i(66954),g=i(48184),y=i(53053),b=i(92116),A=i(99245);class x{async getDownloadUrl(e){return new Promise((t,i)=>{if(e.resourceType===h._.VIRTUAL_TRY_ON){A.W.downloadOutput(e.mediaId,e=>{var o,n;let r=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.download_url)||(null==e?void 0:e.download_link)||(null==e?void 0:e.download_url);r?t(r):i(Error("Download link not found in virtual try-on response"))},e=>i(e));return}if(e.resourceType===h._.AI_INFLUENCER_LOOK){let{influencerId:o,mediaId:n}=e;b.G.downloadLook(Number(o),Number(n),e=>{var o,n;let r=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.download_url)||(null==e?void 0:e.download_link)||(null==e?void 0:e.download_url);r?t(r):i(Error("Download link not found in AI influencer look response"))},e=>i(e));return}if(e.resourceType===h._.PRODUCT_PHOTOSHOOT_OUTPUT){y.d.downloadOutput(e.mediaId,e=>{var o,n;let r=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.download_url)||(null==e?void 0:e.download_link)||(null==e?void 0:e.download_url);r?t(r):i(Error("Download link not found in photoshoot response"))},e=>{i(e)},e.format?{format:e.format}:null);return}e.resourceType===h._.EXECUTION_NODE_RESULT||e.resourceType===h._.SALLATEMPLATE_EXECUTION_NODE_RESULT?!0===e.isSallaTemplate||e.resourceType===h._.SALLATEMPLATE_EXECUTION_NODE_RESULT?g.s.downloadResult(Number(e.mediaId),{},e=>{var o,n;let r=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_url)||(null==e?void 0:null===(n=e.data)||void 0===n?void 0:n.download_link)||(null==e?void 0:e.download_url)||(null==e?void 0:e.download_link)||("string"==typeof(null==e?void 0:e.data)?e.data:null);r?t(r):"string"==typeof(null==e?void 0:e.data)?t(e.data):i(Error("Download link not found in Salla response"))},e=>{i(e)}):p.R.downloadResult(Number(e.mediaId),e=>{var o;let n=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:e.download_link);n?t(n):i(Error("Download link not found in response"))},e=>{i(e)}):v.h.download({imageId:Number(e.mediaId),resourceType:e.resourceType},e=>{var o;let n=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:e.download_link);n?t(n):i(Error("Download link not found in response"))},e=>{i(e)})})}}var w=i(48814);class _{async getDownloadUrl(e){return new Promise((t,i)=>{w.w.download({voiceoverId:Number(e.mediaId)},e=>{var o;let n=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:e.download_link);n?t(n):i(Error("Download link not found in response"))},e=>{i(e)})})}}var S=i(5108);class C{async getDownloadUrl(e){return new Promise((t,i)=>{S.q.download({sceneId:Number(e.mediaId)},e=>{var o;let n=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:e.download_link);n?t(n):i(Error("Download link not found in response"))},e=>{i(e)})})}}var k=i(89471);class T{async getDownloadUrl(e){return new Promise((t,i)=>
1{k.B.downloadClip({clipId:Number(e.mediaId)},e=>{var o;let n=(null==e?void 0:null===(o=e.data)||void 0===o?void 0:o.download_link)||(null==e?void 0:e.download_link);n?t(n):i(Error("Download link not found in response"))},e=>{i(e)})})}}var E=i(86120);let P=(e,t,i)=>{let{type:o,id:n}=e;return E.W.get("public/downloads/".concat(o,"/").concat(n),t,i)};class I{async getDownloadUrl(e){let{publicType:t}=e;if(!t)throw Error("Public download requires type");return new Promise((i,o)=>{P({type:t,id:e.mediaId},e=>{var t,n;let r=null!==(n=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.download_link)&&void 0!==n?n:null==e?void 0:e.download_link;if(r){i(r);return}o(Error("Download link not found in response"))},e=>{o(e)})})}}var D=i(90238),O=i(71494);class N{static trackDownload(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{D.ZP.track(O.dV.RESULT_ACTION,{action_type:"download",output_type:e,...t})}catch(e){}}}class j{selectStrategy(e,t){return t.strategy?t.strategy:o.wK[e]}async getDownloadUrl(e){let t=this.handlers.get(e.mediaType);if(!t)throw Error("No handler found for media type: ".concat(e.mediaType));try{return await t.getDownloadUrl(e)}catch(e){throw l.handle(e)}}async download(e){var t,i,n;let{mediaType:r,mediaId:a,retryCount:s=o.VP}=e,d=this.selectStrategy(r,e),u=this.strategies.get(d);if(!u){let t={code:"INVALID_STRATEGY",message:"Invalid download strategy: ".concat(d),retryable:!1};throw null===(i=e.onError)||void 0===i||i.call(e,t),t}let c=null,p=s+1;for(let t=1;t<=p;t++)try{let t={mediaType:r,mediaId:a,resourceType:e.resourceType,...e},i=await this.getDownloadUrl(t),o=await u.download(i,e);return N.trackDownload(r,{media_id:a,...e.analyticsMetadata}),o}catch(e){if(!(c=l.handle(e)).retryable||t===p)break;await new Promise(e=>setTimeout(e,1e3*Math.pow(2,t-1)))}if(c)throw null===(n=e.onError)||void 0===n||n.call(e,c),c;let m={code:"DOWNLOAD_FAILED",message:"Download failed after all retry attempts",retryable:!1};throw null===(t=e.onError)||void 0===t||t.call(e,m),m}async downloadPublic(e){var t,i,n;let{type:r,id:a,retryCount:s=o.VP}=e,d=this.strategies.get("direct");if(!d){let t={code:"INVALID_STRATEGY",message:"Direct download strategy is unavailable",retryable:!1};throw null===(i=e.onError)||void 0===i||i.call(e,t),t}let u={mediaType:"video",mediaId:a,customFilename:e.customFilename,analyticsMetadata:{public_download_type:r,...e.analyticsMetadata},onProgress:e.onProgress,onSuccess:e.onSuccess,onError:e.onError,retryCount:e.retryCount},c=null,p=s+1;for(let t=1;t<=p;t++)try{let t=await this.publicDownloadHandler.getDownloadUrl({mediaType:"video",mediaId:a,publicType:r}),i=await d.download(t,u);return N.trackDownload("video",{media_id:a,public_download_type:r,...e.analyticsMetadata}),i}catch(e){if(!(c=l.handle(e)).retryable||t===p)break;await new Promise(e=>setTimeout(e,1e3*Math.pow(2,t-1)))}if(c)throw null===(n=e.onError)||void 0===n||n.call(e,c),c;let m={code:"DOWNLOAD_FAILED",message:"Public download failed after all retry attempts",retryable:!1};throw null===(t=e.onError)||void 0===t||t.call(e,m),m}constructor(){this.publicDownloadHandler=new I,this.handlers=new Map([["video",new f],["image",new x],["audio",new _],["scene",new C],["clip",new T]]),this.strategies=new Map([["direct",new r],["blob",new d],["popup",new u]])}}let M=null,R=()=>(M||(M=new j),M)},49617:function(e,t,i){"use strict";i.d(t,{NX:function(){return o},VP:function(){return r},wK:function(){return n}});let o={video:"mp4",image:"png",audio:"mp3",scene:"mp4",clip:"mp4"},n={video:"direct",image:"blob",audio:"blob",scene:"direct",clip:"popup"},r=0},21242:function(e,t,i){"use strict";i.d(t,{l:function(){return l},p:function(){return n}});var o,n,r=i(36808),a=i.n(r);(o=n||(n={})).VIDEO_UPLOADED="video_uploaded",o.VIDEO_UPDATED="video_updated",o.VIDEO_EXPORTED="video_exported";let l={identify:(e,t)=>{var i,o;let n=null===(i=window.CookieConsentApi)||void 0===i?void 0:i.getUserPreferences();(null==n?void 0:n.accept_type)==="accept_all"&&(null===(o=window)||void 0===o?void 0:o.sendinblue).identify(e,t)},trackEvent:(e,t,i)=>{var o,n;let r=null===(o=window.CookieConsentApi)||void 0===o?void 0:o.getUserPreferences();(null==r?void 0:r.accept_type)==="accept_all"&&(null===(n=window)||void 0===n?void 0:n.sendinblue).track(e,{...t,language:a().get("LANGUAGE")},i)}}},3174:function(e,t){"use strict";t.Z={init:e=>{try{let t=window.snaptr;if(!t)return;t("init","da622818-8a73-4e01-b840-3348460c5ba6",e||{})}catch(e){}},track:(e,t)=>{try{let i=window.snaptr;if(!i)return;t?i("track",e,t):i("track",e)}catch(e){}}}},76560:function(e,t,i){"use strict";i.d(t,{Ao:function(){return l},Bw:function(){return m},ID:function(){return s},KW:function(){return a},Wm:function(){return h},Zd:function(){return r},j$:function(){return n}});var o=i(55636);let n=(e,t)=>{if(null==e||""===e)return"/apps/ugc-video";let i=new URLSearchParams({id:String(e)});return t&&i.set("step",t),"/apps/ugc-video?".concat(i.toString())},r=e=>{var t;let[i,n=""]=e.split("?"),r=c(null!=i?i:""),a=new URLSearchParams(n.split("#")[0]);return{isWizard:"/apps/ugc-video"===r||"/apps/ugc-video/"===r,id:h(null!==(t=a.get("id"))&&void 0!==t?t:void 0),step:(0,o.LA)(a.get("step"))}},a=e=>{let{currentStepIndex:t,destinationAs:i,currentUgcId:o}=e;if(t<=0)return!0;let n=r(i);return!!n.isWizard&&(null==o||n.id===o)},l=e=>"/apps/ugc-video/".concat(e),s=e=>"/apps/ugc-video/".concat(e,"/result"),d=/^\/apps\/ugc-video\/(?:\d+|\[ugcId\])\/?$/,u=/^\/apps\/ugc-video\/(?:\d+|\[ugcId\])\/result\/?$/,c=e=>e.replace(/^\/(en|ar|es|fr|it|tr)(?=\/)/,"")||e,p=e=>{let t=c(e);return"/apps/ugc-video/[ugcId]/result"===t||u.test(t)},m=e=>{let t=c(e);return!p(t)&&("/apps/ugc-video/[ugcId]"===t||d.test(t))}
1,h=e=>{let t=Array.isArray(e)?e[0]:e;if(!(null==t?void 0:t.length))return null;let i=Number.parseInt(t,10);return Number.isFinite(i)&&i>0?i:null}},55636:function(e,t,i){"use strict";i.d(t,{GS:function(){return p},LA:function(){return d},Qg:function(){return s},TW:function(){return o},kN:function(){return u},mC:function(){return l}});let o=["category","product","character","language","location","script","submit"],n={1:"category",2:"product",3:"character",4:"language",5:"location",6:"script",7:"submit"},r=new Set(o),a=e=>r.has(e),l=e=>{if(null==e)return null;if("number"==typeof e){var t;return null!==(t=n[e])&&void 0!==t?t:null}return a(e)?e:null},s=e=>{let t=l(e);if(!t)return 0;let i=o.indexOf(t);return i>=0?i:0},d=e=>{let t=Array.isArray(e)?e[0]:e;return t&&a(t)?t:null},u=(e,t)=>Math.max(0,Math.min(e,Math.min(t,o.length-1))),c={category:1,product:2,character:3,language:4,location:5,script:6,submit:7},p=e=>c[e]},61469:function(e,t,i){"use strict";i.d(t,{Oq:function(){return s},Y0:function(){return d},dI:function(){return l},fU:function(){return a},kI:function(){return u},qD:function(){return c}});let o=["campaign_id","campaign_name","adset_id","adset_name","ad_id","ad_name"],n=e=>{if(null==e)return;let t=Array.isArray(e)?e[0]:e;return(null==t?void 0:t.trim())||void 0},r=e=>{let t={};for(let n of o){var i;let o=null===(i=e.get(n))||void 0===i?void 0:i.trim();o&&(t[n]=o)}return t},a=()=>r(new URLSearchParams(window.location.search)),l=e=>!!e&&o.some(t=>{var i;return!!(null===(i=e[t])||void 0===i?void 0:i.trim())}),s=e=>{if(!e||"object"!=typeof e)return{};let t={};for(let i of o){let o=n(e[i]);o&&(t[i]=o)}return t},d=e=>{let t=s(null==e?void 0:e.campaign);return l(t)?t:void 0},u=(e,t)=>{if(l(t))for(let n of o){var i;let o=null==t?void 0:null===(i=t[n])||void 0===i?void 0:i.trim();o&&e.set(n,o)}},c=e=>{let t=a(),i={...e};for(let e of o){var n;let o=null===(n=t[e])||void 0===n?void 0:n.trim();o&&(i[e]=o)}return i}},76654:function(e,t,i){"use strict";i.d(t,{SY:function(){return a},Zj:function(){return s},aY:function(){return u},oU:function(){return l},vC:function(){return d}});let o=[{key:"gclid",stateKey:"gclid"},{key:"fbclid",stateKey:"fbclid"},{key:"ScCid",stateKey:"sccid",urlAliases:["sccid"]},{key:"gbraid",stateKey:"gbraid"},{key:"wbraid",stateKey:"wbraid"},{key:"ttclid",stateKey:"ttclid"},{key:"msclkid",stateKey:"msclkid"},{key:"li_fat_id",stateKey:"li_fat_id"},{key:"epik",stateKey:"epik"}],n=e=>{if(null==e)return;let t=Array.isArray(e)?e[0]:e;return(null==t?void 0:t.trim())||void 0},r=e=>{let t={};for(let{key:n,urlAliases:r}of o)for(let o of[n,...null!=r?r:[]]){var i;let r=null===(i=e.get(o))||void 0===i?void 0:i.trim();if(r){t[n]=r;break}}return t},a=()=>r(new URLSearchParams(window.location.search)),l=e=>!!e&&o.some(t=>{var i;let{key:o}=t;return!!(null===(i=e[o])||void 0===i?void 0:i.trim())}),s=e=>{let t=null==e?void 0:e.click_ids;if(!t||"object"!=typeof t)return;let i={};for(let{key:e,stateKey:r}of o){let o=n(t[r]);o&&(i[e]=o)}return l(i)?i:void 0},d=(e,t)=>{if(l(t))for(let{key:n}of o){var i;let o=null==t?void 0:null===(i=t[n])||void 0===i?void 0:i.trim();o&&e.set(n,o)}},u=e=>{let t=a(),i={...e};for(let{key:e}of o){var n;let o=null===(n=t[e])||void 0===n?void 0:n.trim();o&&(i[e]=o)}return i}},18751:function(e,t,i){"use strict";i.d(t,{M:function(){return a},h:function(){return r}});var o=i(36808),n=i.n(o);let r=()=>{try{let e=n().get("_fbc");if(e)return e;return}catch(e){return}},a=()=>{try{return n().get("_fbp")||void 0}catch(e){return}}},12696:function(e,t,i){"use strict";i.d(t,{ZN:function(){return a},eT:function(){return l},nf:function(){return d}});var o=i(88420);let n={},r=(e,t)=>{n[e]={isRestoring:!0,restoredUploads:new Set,totalUploads:t}},a=(e,t)=>{n[e]||(n[e]={isRestoring:!1,restoredUploads:new Set,totalUploads:0}),n[e].restoredUploads.add(t);let{restoredUploads:i,totalUploads:o}=n[e];i.size>=o&&(n[e].isRestoring=!1)},l=e=>{n[e]&&(n[e].isRestoring=!1)},s=async e=>{let t=n[e];if(t&&t.isRestoring)return;let i=await (0,o.getPendingUploadsByTool)(e);if(0===i.length||i.every(e=>"completed"===e.status))return;r(e,i.length);let a=new CustomEvent("restorePendingUploads",{detail:{toolName:e,uploads:i}});window.dispatchEvent(a)},d=async e=>{let t=await (0,o.getPendingUploadsByTool)(e);if(0===t.length||t.every(e=>"completed"===e.status||"failed"===e.status))return;await s(e);let i=!1,r=0;for(;!i&&r<10;){let t=n[e];if(t&&t.isRestoring){i=!0;break}await new Promise(e=>setTimeout(e,100)),r++}return new Promise(t=>{let i=null,n=!1,r=()=>{n||(n=!0,i&&(clearInterval(i),i=null),window.removeEventListener("pendingUploadsReady",a))},a=async i=>{let{toolName:a}=i.detail;if(a!==e||n)return;let s=await (0,o.getPendingUploadsByTool)(e),d=s.every(e=>"completed"===e.status);if(d&&s.length>0){r(),l(e),t();return}d&&s.length};window.addEventListener("pendingUploadsReady",a),(async()=>{let i=await (0,o.getPendingUploadsByTool)(e),a=i.every(e=>"completed"===e.status);if(0===i.length&&!n||a&&i.length>0&&!n){r(),l(e),t();return}})(),i=setInterval(async()=>
1{if(n)return;let i=await (0,o.getPendingUploadsByTool)(e),a=i.every(e=>"completed"===e.status);if(0===i.length||a&&i.length>0){r(),l(e),t();return}},50)})}},88420:function(e,t,i){"use strict";i.d(t,{getPendingUploadsByTool:function(){return s},removePendingUpload:function(){return u},storePendingUpload:function(){return a},updatePendingUploadStatus:function(){return d}});var o=i(20931);let n="pendingUploads",r=()=>new Promise((e,t)=>{let i=window.db;if(i&&i.objectStoreNames.contains(n)){e(i);return}let r=indexedDB.open("BithTV",o.LE);r.onerror=()=>{t(r.error)},r.onsuccess=()=>{let t=r.result;window.db=t,e(t)},r.onupgradeneeded=e=>{let t=e.target.result;t.objectStoreNames.contains(n)||t.createObjectStore(n,{keyPath:"id"})}}),a=async e=>{try{let t=(await r()).transaction([n],"readwrite").objectStore(n),i={...e,id:"".concat(e.toolName,"-").concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9)),timestamp:Date.now(),fileName:e.file.name,fileType:e.file.type,fileSize:e.file.size,status:"pending"};return new Promise((e,o)=>{let n=t.add(i);n.onsuccess=()=>e(),n.onerror=()=>o(n.error)})}catch(e){throw e}},l=async()=>{try{let e=(await r()).transaction([n],"readonly").objectStore(n);return new Promise((t,i)=>{let o=e.getAll();o.onsuccess=()=>{t(o.result||[])},o.onerror=()=>i(o.error)})}catch(e){return[]}},s=async e=>(await l()).filter(t=>t.toolName===e),d=async(e,t,i)=>{try{let o=(await r()).transaction([n],"readwrite").objectStore(n),a=o.get(e);return new Promise((n,r)=>{a.onsuccess=()=>{let l=a.result;if(!l){r(Error("Upload ".concat(e," not found")));return}l.status=t,i&&(l.uploadId=i);let s=o.put(l);s.onsuccess=()=>n(),s.onerror=()=>r(s.error)},a.onerror=()=>r(a.error)})}catch(e){throw e}},u=async e=>{try{let t=(await r()).transaction([n],"readwrite").objectStore(n);return new Promise((i,o)=>{let n=t.delete(e);n.onsuccess=()=>i(),n.onerror=()=>o(n.error)})}catch(e){throw e}}},78996:function(e,t,i){"use strict";i.r(t),i.d(t,{clearQueries:function(){return p},handleQueryError:function(){return c},queryKeys:function(){return l},queryOptions:function(){return s},useInvalidateQueries:function(){return d},usePrefetchQueries:function(){return u}});var o=i(30202),n=i(73726),r=i(89053),a=i(63727);let l={user:e=>["user",e].filter(Boolean),userProfile:e=>[...l.user(e),"profile"],posts:()=>["posts"],post:e=>["post",e].filter(Boolean),list:(e,t)=>["list",e,t].filter(Boolean),search:(e,t)=>["search",e,t].filter(Boolean),studioVideos:()=>["studio-videos"],studioImages:function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return["studio-images",...t]},studioScripts:()=>["studio-scripts"],studioQuotes:()=>["studio-quotes"],studioTextToImage:()=>["studio-text-to-image"],studioTextToVideo:()=>["studio-text-to-video"],studioQuoteToVideo:()=>["studio-quote-to-video"],selectedSessionItem:()=>["selected-session-item"]},s={realtime:{staleTime:3e4,refetchInterval:6e4},stable:{staleTime:9e5,gcTime:36e5},user:{staleTime:3e5,gcTime:18e5},static:{staleTime:36e5,gcTime:864e5}};function d(){let e=(0,o.NL)();return{invalidateUser:t=>e.invalidateQueries({queryKey:l.user(t)}),invalidatePosts:()=>e.invalidateQueries({queryKey:l.posts()}),invalidatePost:t=>e.invalidateQueries({queryKey:l.post(t)}),invalidateByPattern:t=>e.invalidateQueries({queryKey:t}),removeQuery:t=>e.removeQueries({queryKey:t}),invalidateStudioVideos:t=>e.invalidateQueries({queryKey:l.studioVideos(),refetchType:"all",...t}),invalidateStudioImages:t=>e.invalidateQueries({queryKey:l.studioImages(),refetchType:"active",...t}),invalidateFirstPage:async t=>{let i=e.getQueriesData({queryKey:l.studioImages()}),o=new Map;for(let[e,t]of i){if(!t)continue;let i=JSON.stringify(e);o.has(i)||o.set(i,{key:e,data:t})}let n=Array.from(o.values()).map(async t=>{let{key:i,data:o}=t,[,n]=i,r=await (0,a._)({...n,cursor:""});e.setQueryData(i,{...o,pages:[r,...o.pages.slice(1)],pageParams:["",...o.pageParams.slice(1)]})});await Promise.all(n)}}}function u(){let e=(0,o.NL)();return{prefetchUser:async(t,i)=>e.prefetchQuery({queryKey:l.user(t),queryFn:i,...s.user}),prefetchPosts:async t=>e.prefetchQuery({queryKey:l.posts(),queryFn:t,...s.stable}),prefetch:async function(t,i){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:s.stable;return e.prefetchQuery({queryKey:t,queryFn:i,...o})}}}let c=e=>e instanceof Error?e.message:"string"==typeof e?e:"An unexpected error occurred",p={clearSceneGenQueries:()=>{r.Eh.removeQueries({queryKey:["prompt-box-loading"]}),r.Eh.removeQueries({queryKey:["session-items"]}),r.Eh.removeQueries({queryKey:["sessions"]}),r.Eh.removeQueries({queryKey:["pending-form-parameters"]})},clearImageGenQueries:()=>{r.Eh.removeQueries({queryKey:["ai-models",n.u9.IMAGE_GENERATOR]}),r.Eh.removeQueries({queryKey:["prompt-box-loading"]}),r.Eh.removeQueries({queryKey:["session-items"]}),r.Eh.removeQueries({queryKey:["sessions"]}),r.Eh.removeQueries({queryKey:["pending-form-parameters"]})},clearUpscalerQueries:()=>{r.Eh.removeQueries({queryKey:["ai-models",n.u9.IMAGE_UPSCALER]}),r.Eh.removeQueries({queryKey:["session-items"]}),r.Eh.removeQueries({queryKey:["sessions"]}),r.Eh.removeQueries({queryKey:["pending-form-parameters"]}),r.Eh.removeQueries({queryKey:["prompt-box-loading"]}),r.Eh.removeQueries({queryKey:["selected-session-item"]})},changeUpscalerSessionClearQueries:()=>{r.Eh.removeQueries({queryKey:["selected-session-item"]}),r.Eh.removeQueries({queryKey:["prompt-box-loading"]})}};t.default={queryKeys:l,queryOptions:s,useInvalidateQueries:d,usePrefetchQueries:u,handleQueryError:c,clearQueries:p}},47035:function(e,t,i){"use strict";i.d(t,{y:function(){return n}});let o={"ar-sa":"ar"},n=e=>o[e]||e},47713:function(e,t,i){"use strict";i.d(t,{PI:function(){return l},gB:function(){return s},kM:function(){return a},nG:function(){return r},qB:function(){return n},te:function(){return u}});let o=[{basePath:"salla",slug:"salla-app"},{basePath:"salla-white-background",slug:"salla-white-background"}],n=e=>{if(!e)return"salla-app";let t=e.replace(/^\/(en|ar|es|fr|it|tr)\//,"/").split("/").filter(
1Boolean)[0],i=o.find(e=>e.basePath===t);return i?i.slug:"salla-app"},r=e=>{if(!e)return"salla";let t=e.replace(/^\/(en|ar|es|fr|it|tr)\//,"/").split("/").filter(Boolean)[0],i=o.find(e=>e.basePath===t);return i?i.basePath:"salla"},a=(e,t)=>{let i=r(e);return"/".concat(i,"/").concat(t)},l=e=>{let t=n(e);return"salla-app"===t?"SALLA_API_TOKEN":"SALLA_API_TOKEN_".concat(t)},s=e=>e&&"salla-app"!==e?"SALLA_API_TOKEN_".concat(e):"SALLA_API_TOKEN",d=e=>{if(!e)return"salla";let t=o.find(t=>t.slug===e);return t?t.basePath:"salla"},u=(e,t)=>{let i=d(e);return"/".concat(i,"/").concat(t)}},78783:function(e,t,i){"use strict";i.d(t,{P:function(){return n}});let o="bith_track_uuid",n=()=>{try{let e=localStorage.getItem(o);if(e)return e;let t=crypto.randomUUID();return localStorage.setItem(o,t),t}catch(e){return}}},93269:function(e,t,i){"use strict";i.d(t,{JX:function(){return a},MV:function(){return s},R4:function(){return l},Rl:function(){return u},UQ:function(){return d},ox:function(){return r}});let o=["utm_source","utm_medium","utm_campaign","utm_term","utm_content","utm_id"],n=e=>{if(null==e)return;let t=Array.isArray(e)?e[0]:e;return(null==t?void 0:t.trim())||void 0},r=e=>{if(!e||"object"!=typeof e)return{};let t={};for(let i of o){let o=n(e[i]);o&&(t[i]=o)}return t},a=e=>!!e&&o.some(t=>{var i;return!!(null===(i=e[t])||void 0===i?void 0:i.trim())}),l=e=>{let t={};for(let n of o){var i;let o=null===(i=e.get(n))||void 0===i?void 0:i.trim();o&&(t[n]=o)}return t},s=e=>r(e),d=e=>{let t=r(null==e?void 0:e.utm);return a(t)?t:void 0},u=(e,t)=>{if(a(t))for(let n of o){var i;let o=null==t?void 0:null===(i=t[n])||void 0===i?void 0:i.trim();o&&e.set(n,o)}}},48416:function(e,t,i){"use strict";i.d(t,{JE:function(){return v},Ty:function(){return u},ZP:function(){return b},bB:function(){return d},gH:function(){return y},nr:function(){return m},pV:function(){return f},yU:function(){return g}});var o=i(76654),n=i(61469),r=i(93269);let a="bith_visitor_attribution",l="utmData",s="bith_visitor_last_tracked",d=e=>JSON.stringify(e,Object.keys(e).sort()),u=e=>(0,r.JX)(e)||(0,o.oU)(e)||(0,n.dI)(e),c=e=>{try{let t=localStorage.getItem(e);if(!t)return{};let i=JSON.parse(t);if(!i||"object"!=typeof i)return{};return i}catch(e){return{}}},p=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(e){}},m=()=>c(a),h=e=>{u(e)&&p(a,e)},f=e=>{if(!u(e))return;d(m())!==d(e)&&h(e);let t=(0,r.ox)(e);(0,r.JX)(t)&&d((0,r.ox)(c(l)))!==d(t)&&p(l,t)},v=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.location.search,t=new URLSearchParams(e);return"success"===t.get("status")&&"subscription"===t.get("tab")},g=()=>{try{localStorage.removeItem(l),localStorage.removeItem(a)}catch(e){}A()},y=()=>{try{return sessionStorage.getItem(s)}catch(e){return null}},b=e=>{try{sessionStorage.setItem(s,e)}catch(e){}},A=()=>{try{sessionStorage.removeItem(s)}catch(e){}}},15953:function(e,t,i){"use strict";i.d(t,{IA:function(){return a},OP:function(){return r},e5:function(){return s},eu:function(){return l},lw:function(){return n}});let o="bith_visitor_id",n="bith:visitor-id-changed",r=()=>{try{let e=localStorage.getItem(o);return(null==e?void 0:e.trim())||void 0}catch(e){return}},a=e=>{let t=null==e?void 0:e.trim();if(t)try{localStorage.setItem(o,t),window.dispatchEvent(new CustomEvent(n,{detail:t}))}catch(e){}},l=()=>{try{localStorage.removeItem(o),window.dispatchEvent(new CustomEvent(n,{detail:null}))}catch(e){}},s=e=>{let t=r();return t?{...e,visitor_id:t}:e}},38199:function(e,t){"use strict";var i,o,n,r;Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{ACTION_FAST_REFRESH:function(){return c},ACTION_NAVIGATE:function(){return l},ACTION_PREFETCH:function(){return u},ACTION_REFRESH:function(){return a},ACTION_RESTORE:function(){return s},ACTION_SERVER_ACTION:function(){return p},ACTION_SERVER_PATCH:function(){return d},PrefetchCacheEntryStatus:function(){return o},PrefetchKind:function(){return i},isThenable:function(){return m}});let a="refresh",l="navigate",s="restore",d="server-patch",u="prefetch",c="fast-refresh",p="server-action";function m(e){return e&&("object"==typeof e||"function"==typeof e)&&"function"==typeof e.then}(n=i||(i={})).AUTO="auto",n.FULL="full",n.TEMPORARY="temporary",(r=o||(o={})).fresh="fresh",r.reusable="reusable",r.expired="expired",r.stale="stale",("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esMo
1dule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},87195:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"getDomainLocale",{enumerable:!0,get:function(){return n}});let o=i(98337);function n(e,t,n,r){{let a=i(15183).normalizeLocalePath,l=i(4166).detectDomainLocale,s=t||a(e,n).detectedLocale,d=l(r,void 0,s);if(d){let t="http"+(d.http?"":"s")+"://",i=s===d.defaultLocale?"":"/"+s;return""+t+d.domain+(0,o.normalizePathTrailingSlash)(""+i+e)}return!1}}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},98342:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return A}});let o=i(38754),n=i(85893),r=o._(i(67294)),a=i(36075),l=i(53955),s=i(48041),d=i(99903),u=i(65490),c=i(81928),p=i(60257),m=i(84229),h=i(87195),f=i(89470),v=i(38199),g=new Set;function y(e,t,i,o,n,r){if(r||(0,l.isLocalURL)(t)){if(!o.bypassPrefetchedCheck){let n=t+"%"+i+"%"+(void 0!==o.locale?o.locale:"locale"in e?e.locale:void 0);if(g.has(n))return;g.add(n)}(async()=>r?e.prefetch(t,n):e.prefetch(t,i,o))().catch(e=>{})}}function b(e){return"string"==typeof e?e:(0,s.formatUrl)(e)}let A=r.default.forwardRef(function(e,t){let i,o;let{href:s,as:g,children:A,prefetch:x=null,passHref:w,replace:_,shallow:S,scroll:C,locale:k,onClick:T,onMouseEnter:E,onTouchStart:P,legacyBehavior:I=!1,...D}=e;i=A,I&&("string"==typeof i||"number"==typeof i)&&(i=(0,n.jsx)("a",{children:i}));let O=r.default.useContext(c.RouterContext),N=r.default.useContext(p.AppRouterContext),j=null!=O?O:N,M=!O,R=!1!==x,z=null===x?v.PrefetchKind.AUTO:v.PrefetchKind.FULL,{href:L,as:V}=r.default.useMemo(()=>{if(!O){let e=b(s);return{href:e,as:g?b(g):e}}let[e,t]=(0,a.resolveHref)(O,s,!0);return{href:e,as:g?(0,a.resolveHref)(O,g):t||e}},[O,s,g]),F=r.default.useRef(L),U=r.default.useRef(V);I&&(o=r.default.Children.only(i));let G=I?o&&"object"==typeof o&&o.ref:t,[B,Z,q]=(0,m.useIntersection)({rootMargin:"200px"}),H=r.default.useCallback(e=>{(U.current!==V||F.current!==L)&&(q(),U.current=V,F.current=L),B(e),G&&("function"==typeof G?G(e):"object"==typeof G&&(G.current=e))},[V,G,L,q,B]);r.default.useEffect(()=>{j&&Z&&R&&y(j,L,V,{locale:k},{kind:z},M)},[V,L,Z,k,R,null==O?void 0:O.locale,j,M,z]);let W={ref:H,onClick(e){I||"function"!=typeof T||T(e),I&&o.props&&"function"==typeof o.props.onClick&&o.props.onClick(e),j&&!e.defaultPrevented&&function(e,t,i,o,n,a,s,d,u){let{nodeName:c}=e.currentTarget;if("A"===c.toUpperCase()&&(function(e){let t=e.currentTarget.getAttribute("target");return t&&"_self"!==t||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which}(e)||!u&&!(0,l.isLocalURL)(i)))return;e.preventDefault();let p=()=>{let e=null==s||s;"beforePopState"in t?t[n?"replace":"push"](i,o,{shallow:a,locale:d,scroll:e}):t[n?"replace":"push"](o||i,{scroll:e})};u?r.default.startTransition(p):p()}(e,j,L,V,_,S,C,k,M)},onMouseEnter(e){I||"function"!=typeof E||E(e),I&&o.props&&"function"==typeof o.props.onMouseEnter&&o.props.onMouseEnter(e),j&&(R||!M)&&y(j,L,V,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:z},M)},onTouchStart:function(e){I||"function"!=typeof P||P(e),I&&o.props&&"function"==typeof o.props.onTouchStart&&o.props.onTouchStart(e),j&&(R||!M)&&y(j,L,V,{locale:k,priority:!0,bypassPrefetchedCheck:!0},{kind:z},M)}};if((0,d.isAbsoluteUrl)(V))W.href=V;else if(!I||w||"a"===o.type&&!("href"in o.props)){let e=void 0!==k?k:null==O?void 0:O.locale,t=(null==O?void 0:O.isLocaleDomain)&&(0,h.getDomainLocale)(V,e,null==O?void 0:O.locales,null==O?void 0:O.domainLocales);W.href=t||(0,f.addBasePath)((0,u.addLocale)(V,e,null==O?void 0:O.defaultLocale))}return I?r.default.cloneElement(o,W):(0,n.jsx)("a",{...D,...W,children:i})});("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},15183:function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"normalizeLocalePath",{enumerable:!0,get:function(){return o}});let o=(e,t)=>i(54165).normalizeLocalePath(e,t);("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},84229:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"useIntersection",{enumerable:!0,get:function(){return s}});let o=i(67294),n=i(84474),r="function"==typeof IntersectionObserver,a=new Map,l=[];function s(e){let{rootRef:t,rootMargin:i,disabled:s}=e,d=s||!r,[u,c]=(0,o.useState)(!1),p=(0,o.useRef)(null),m=(0,o.useCallback)(e=>{p.current=e},[]);return(0,o.useEffect)(()=>{if(r){if(d||u)return;let e=p.current;if(e&&e.tagName)return function(e,t,i){let{id:o,observer:n,elements:r}=function(e){let t;let i={root:e.root||null,margin:e.rootMargin||""},o=l.find(e=>e.root===i.root&&e.margin===i.margin);if(o&&(t=a.get(o)))return t;let n=new Map;return t={id:i,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=n.get(e.target),i=e.isIntersecting||e.intersectionRatio>0;t&&i&&t(i)})},e),elements:n},l.push(i),a.set(i,t),t}(i);return r.set(e,t),n.observe(e),function(){if(r.delete(e),n.unobserve(e),0===r.size){n.disconnect(),a.delete(o);let e=l.findIndex(e=>e.root===o.root&&e.margin===o.margin);e>-1&&l.splice(e,1)}}}(e,e=>e&&c(e),{root:null==t?void 0:t.current,rootMargin:i})}else if(!u){let e=(0,n.requestIdleCallback)(()=>c(!0));return()=>(0,n.cancelIdleCallback)(e)}},[d,i,t,u,p.current]),[m,u,(0,o.useCallback)(()=>{c(!1)},[])]}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},32602:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{default:function(){return l},noSSR:function(){return a}});let o=i(38754);i(85893),i(67294);let n=o._(i(35491));function r(e){return{default:(null==e?void 0:e.default)||e}}function a(e,t){return delete t.webpack,delete t.modules,e(t)}function l(e,t){let i=n.default,o={loading:e=>{let{error:t,isLoading:i,pastDelay:o}=e;return null}};e instanceof Promise?o.loader=()=>e:"function"==typeof e?o.loader=e:"object"==typeof e&&(o={...o,...e});let l=(o={...o,...t}).loader;return(o.loadableGenerated&&(o={...o,...o.loadableGenerated},delete o.loadableGenerated),"boolean"!=typeof o.ssr||o.ssr)?i({...o,loader:()=>null!=l?l().then(r):Promise.resolve(r(()=>null))}):(delete o.webpack,delete o.modules,a(i,o))}("function"==typeof t.default||"object"==typeof t.default&&null!==t.default)&&void 0===t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},1159:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"LoadableContext",{enumerable:!0,get:function(){return o}});let o=i(38754)._(i(67294)).default.createContext(null)},35491:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return p}});let o=i(38754)._(i(67294)),n=i(1159),r=[],a=[],l=!1;function s(e){let t=e(),i={loading:!0,loaded:null,error:null};return i.promise=t.then(e=>(i.loading=!1,i.loaded=e,e)).catch(e=>{throw i.loading=!1,i.error=e,e}),i}class d{promise(){return this._res.promise}retry(){this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};let{_res:e,_opts:t}=this;e.loading&&("number"==typeof t.delay&&(0===t.delay?this._state.pastDelay=!0:this._delay=setTimeout(()=>{this._update({pastDelay:!0})},t.delay)),"number"==typeof t.timeout&&(this._timeout=setTimeout(()=>{this._update({timedOut:!0})},t.timeout))),this._res.promise.then(()=>{this._update({}),this._clearTimeouts()}).catch(e=>{this._update({}),this._clearTimeouts()}),this._update({})}_update(e){this._state={...this._state,error:this._res.error,loaded:this._res.loaded,loading:this._res.loading,...e}
1,this._callbacks.forEach(e=>e())}_clearTimeouts(){clearTimeout(this._delay),clearTimeout(this._timeout)}getCurrentValue(){return this._state}subscribe(e){return this._callbacks.add(e),()=>{this._callbacks.delete(e)}}constructor(e,t){this._loadFn=e,this._opts=t,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}}function u(e){return function(e,t){let i=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null},t),r=null;function s(){if(!r){let t=new d(e,i);r={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return r.promise()}if(!l){let e=i.webpack?i.webpack():i.modules;e&&a.push(t=>{for(let i of e)if(t.includes(i))return s()})}function u(e,t){!function(){s();let e=o.default.useContext(n.LoadableContext);e&&Array.isArray(i.modules)&&i.modules.forEach(t=>{e(t)})}();let a=o.default.useSyncExternalStore(r.subscribe,r.getCurrentValue,r.getCurrentValue);return o.default.useImperativeHandle(t,()=>({retry:r.retry}),[]),o.default.useMemo(()=>{var t;return a.loading||a.error?o.default.createElement(i.loading,{isLoading:a.loading,pastDelay:a.pastDelay,timedOut:a.timedOut,error:a.error,retry:r.retry}):a.loaded?o.default.createElement((t=a.loaded)&&t.default?t.default:t,e):null},[e,a])}return u.preload=()=>s(),u.displayName="LoadableComponent",o.default.forwardRef(u)}(s,e)}function c(e,t){let i=[];for(;e.length;){let o=e.pop();i.push(o(t))}return Promise.all(i).then(()=>{if(e.length)return c(e,t)})}u.preloadAll=()=>new Promise((e,t)=>{c(r).then(e,t)}),u.preloadReady=e=>(void 0===e&&(e=[]),new Promise(t=>{let i=()=>(l=!0,t());c(a,e).then(i,i)})),window.__NEXT_PRELOADREADY=u.preloadReady;let p=u},13246:function(e,t,i){"use strict";i.d(t,{IEK:function(){return a},KP3:function(){return n},oHP:function(){return r},ocf:function(){return l}});var o=i(56771);function n(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0 0 51.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]})(e)}function r(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024",fill:"currentColor",fillRule:"evenodd"},child:[{tag:"path",attr:{d:"M799.855 166.312c.023.007.043.018.084.059l57.69 57.69c.041.041.052.06.059.084a.118.118 0 0 1 0 .069c-.007.023-.018.042-.059.083L569.926 512l287.703 287.703c.041.04.052.06.059.083a.118.118 0 0 1 0 .07c-.007.022-.018.042-.059.083l-57.69 57.69c-.041.041-.06.052-.084.059a.118.118 0 0 1-.069 0c-.023-.007-.042-.018-.083-.059L512 569.926 224.297 857.629c-.04.041-.06.052-.083.059a.118.118 0 0 1-.07 0c-.022-.007-.042-.018-.083-.059l-57.69-57.69c-.041-.041-.052-.06-.059-.084a.118.118 0 0 1 0-.069c.007-.023.018-.042.059-.083L454.073 512 166.371 224.297c-.041-.04-.052-.06-.059-.083a.118.118 0 0 1 0-.07c.007-.022.018-.042.059-.083l57.69-57.69c.041-.041.06-.052.084-.059a.118.118 0 0 1 .069 0c.023.007.042.018.083.059L512 454.073l287.703-287.702c.04-.041.06-.052.083-.059a.118.118 0 0 1 .07 0Z"}}]})(e)}function a(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M518.3 459a8 8 0 0 0-12.6 0l-112 141.7a7.98 7.98 0 0 0 6.3 12.9h73.9V856c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V613.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 459z"}},{tag:"path",attr:{d:"M811.4 366.7C765.6 245.9 648.9 160 512.2 160S258.8 245.8 213 366.6C127.3 389.1 64 467.2 64 560c0 110.5 89.5 200 199.9 200H304c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8h-40.1c-33.7 0-65.4-13.4-89-37.7-23.5-24.2-36-56.8-34.9-90.6.9-26.4 9.9-51.2 26.2-72.1 16.7-21.3 40.1-36.8 66.1-43.7l37.9-9.9 13.9-36.6c8.6-22.8 20.6-44.1 35.7-63.4a245.6 245.6 0 0 1 52.4-49.9c41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.2c19.9 14 37.5 30.8 52.4 49.9 15.1 19.3 27.1 40.7 35.7 63.4l13.8 36.5 37.8 10C846.1 454.5 884 503.8 884 560c0 33.1-12.9 64.3-36.3 87.7a123.07 123.07 0 0 1-87.6 36.3H720c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h40.1C870.5 760 960 670.5 960 560c0-92.7-63.1-170.7-148.6-193.3z"}}]})(e)}function l(e){return(0,o.w_)({tag:"svg",attr:{viewBox:"0 0 1024 1024"},child:[{tag:"path",attr:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attr:{d:"M464 336a48 48 0 1 0 96 0 48 48 0 1 0-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]})(e)}},56771:function(e,t,i){"use strict";i.d(t,{w_:function(){return s}});var o=i(67294),n={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},r=o.createContext&&o.createContext(n),a=function(){return(a=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)},l=function(e,t){var i={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&0>t.indexOf(o)&&(i[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var n=0,o=Object.getOwnPropertySymbols(e);n<o.length;n++)0>t.indexOf(o[n])&&Object.prototype.propertyIsEnumerable.call(e,o[n])&&(i[o[n]]=e[o[n]]);return i};function s(e){return function(t){return o.createElement(d,a({attr:a({},e.attr)},t),function e(t){return t&&t.map(function(t,i){return o.createElement(t.tag,a({key:i},t.attr),e(t.child))})}(e.child))}}function d(e){var t=function(t){var i,n=e.attr,r=e.size,s=e.title,d=l(e,["attr","size","title"]),u=r||t.size||"1em";return t.className&&(i=t.className),e.className&&(i=(i?i+" ":"")+e.className),o.createElement("svg",a({stroke:"currentColor",fill:"
1currentColor",strokeWidth:"0"},t.attr,n,d,{className:i,style:a(a({color:e.color||t.color},t.style),e.style),height:u,width:u,xmlns:"http://www.w3.org/2000/svg"}),s&&o.createElement("title",null,s),e.children)};return void 0!==r?o.createElement(r.Consumer,null,function(e){return t(e)}):t(n)}},7443:function(e,t,i){"use strict";var o=i(83454);i(91479);var n=i(67294),r=n&&"object"==typeof n&&"default"in n?n:{default:n},a=void 0!==o&&o.env&&!0,l=function(e){return"[object String]"===Object.prototype.toString.call(e)},s=function(){function e(e){var t=void 0===e?{}:e,i=t.name,o=void 0===i?"stylesheet":i,n=t.optimizeForSpeed,r=void 0===n?a:n;d(l(o),"`name` must be a string"),this._name=o,this._deletedRulePlaceholder="#"+o+"-deleted-rule____{}",d("boolean"==typeof r,"`optimizeForSpeed` must be a boolean"),this._optimizeForSpeed=r,this._serverSheet=void 0,this._tags=[],this._injected=!1,this._rulesCount=0;var s=document.querySelector('meta[property="csp-nonce"]');this._nonce=s?s.getAttribute("content"):null}var t=e.prototype;return t.setOptimizeForSpeed=function(e){d("boolean"==typeof e,"`setOptimizeForSpeed` accepts a boolean"),d(0===this._rulesCount,"optimizeForSpeed cannot be when rules have already been inserted"),this.flush(),this._optimizeForSpeed=e,this.inject()},t.isOptimizeForSpeed=function(){return this._optimizeForSpeed},t.inject=function(){var e=this;if(d(!this._injected,"sheet already injected"),this._injected=!0,this._optimizeForSpeed){this._tags[0]=this.makeStyleTag(this._name),this._optimizeForSpeed="insertRule"in this.getSheet(),this._optimizeForSpeed||(this.flush(),this._injected=!0);return}this._serverSheet={cssRules:[],insertRule:function(t,i){return"number"==typeof i?e._serverSheet.cssRules[i]={cssText:t}:e._serverSheet.cssRules.push({cssText:t}),i},deleteRule:function(t){e._serverSheet.cssRules[t]=null}}},t.getSheetForTag=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]},t.getSheet=function(){return this.getSheetForTag(this._tags[this._tags.length-1])},t.insertRule=function(e,t){if(d(l(e),"`insertRule` accepts only strings"),this._optimizeForSpeed){var i=this.getSheet();"number"!=typeof t&&(t=i.cssRules.length);try{i.insertRule(e,t)}catch(e){return -1}}else{var o=this._tags[t];this._tags.push(this.makeStyleTag(this._name,e,o))}return this._rulesCount++},t.replaceRule=function(e,t){if(this._optimizeForSpeed){var i=this.getSheet();if(t.trim()||(t=this._deletedRulePlaceholder),!i.cssRules[e])return e;i.deleteRule(e);try{i.insertRule(t,e)}catch(t){i.insertRule(this._deletedRulePlaceholder,e)}}else{var o=this._tags[e];d(o,"old rule at index `"+e+"` not found"),o.textContent=t}return e},t.deleteRule=function(e){if(this._optimizeForSpeed)this.replaceRule(e,"");else{var t=this._tags[e];d(t,"rule at index `"+e+"` not found"),t.parentNode.removeChild(t),this._tags[e]=null}},t.flush=function(){this._injected=!1,this._rulesCount=0,this._tags.forEac
1h(function(e){return e&&e.parentNode.removeChild(e)}),this._tags=[]},t.cssRules=function(){var e=this;return this._tags.reduce(function(t,i){return i?t=t.concat(Array.prototype.map.call(e.getSheetForTag(i).cssRules,function(t){return t.cssText===e._deletedRulePlaceholder?null:t})):t.push(null),t},[])},t.makeStyleTag=function(e,t,i){t&&d(l(t),"makeStyleTag accepts only strings as second parameter");var o=document.createElement("style");this._nonce&&o.setAttribute("nonce",this._nonce),o.type="text/css",o.setAttribute("data-"+e,""),t&&o.appendChild(document.createTextNode(t));var n=document.head||document.getElementsByTagName("head")[0];return i?n.insertBefore(o,i):n.appendChild(o),o},function(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(e.prototype,[{key:"length",get:function(){return this._rulesCount}}]),e}();function d(e,t){if(!e)throw Error("StyleSheet: "+t+".")}var u=function(e){for(var t=5381,i=e.length;i;)t=33*t^e.charCodeAt(--i);return t>>>0},c={};function p(e,t){if(!t)return"jsx-"+e;var i=String(t),o=e+i;return c[o]||(c[o]="jsx-"+u(e+"-"+i)),c[o]}function m(e,t){var i=e+t;return c[i]||(c[i]=t.replace(/__jsx-style-dynamic-selector/g,e)),c[i]}var h=function(){function e(e){var t=void 0===e?{}:e,i=t.styleSheet,o=void 0===i?null:i,n=t.optimizeForSpeed,r=void 0!==n&&n;this._sheet=o||new s({name:"styled-jsx",optimizeForSpeed:r}),this._sheet.inject(),o&&"boolean"==typeof r&&(this._sheet.setOptimizeForSpeed(r),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer=void 0,this._indices={},this._instancesCounts={}}var t=e.prototype;return t.add=function(e){var t=this;void 0===this._optimizeForSpeed&&(this._optimizeForSpeed=Array.isArray(e.children),this._sheet.setOptimizeForSpeed(this._optimizeForSpeed),this._optimizeForSpeed=this._sheet.isOptimizeForSpeed()),this._fromServer||(this._fromServer=this.selectFromServer(),this._instancesCounts=Object.keys(this._fromServer).reduce(function(e,t){return e[t]=0,e},{}));var i=this.getIdAndRules(e),o=i.styleId,n=i.rules;if(o in this._instancesCounts){this._instancesCounts[o]+=1;return}var r=n.map(function(e){return t._sheet.insertRule(e)}).filter(function(e){return -1!==e});this._indices[o]=r,this._instancesCounts[o]=1},t.remove=function(e){var t=this,i=this.getIdAndRules(e).styleId;if(function(e,t){if(!e)throw Error("StyleSheetRegistry: "+t+".")}(i in this._instancesCounts,"styleId: `"+i+"` not found"),this._instancesCounts[i]-=1,this._instancesCounts[i]<1){var o=this._fromServer&&this._fromServer[i];o?(o.parentNode.removeChild(o),delete this._fromServer[i]):(this._indices[i].forEac
1h(function(e){return t._sheet.deleteRule(e)}),delete this._indices[i]),delete this._instancesCounts[i]}},t.update=function(e,t){this.add(t),this.remove(e)},t.flush=function(){this._sheet.flush(),this._sheet.inject(),this._fromServer=void 0,this._indices={},this._instancesCounts={}},t.cssRules=function(){var e=this,t=this._fromServer?Object.keys(this._fromServer).map(function(t){return[t,e._fromServer[t]]}):[],i=this._sheet.cssRules();return t.concat(Object.keys(this._indices).map(function(t){return[t,e._indices[t].map(function(e){return i[e].cssText}).join(e._optimizeForSpeed?"":"\n")]}).filter(function(e){return!!e[1]}))},t.styles=function(e){var t,i;return t=this.cssRules(),void 0===(i=e)&&(i={}),t.map(function(e){var t=e[0],o=e[1];return r.default.createElement("style",{id:"__"+t,key:"__"+t,nonce:i.nonce?i.nonce:void 0,dangerouslySetInnerHTML:{__html:o}})})},t.getIdAndRules=function(e){var t=e.children,i=e.dynamic,o=e.id;if(i){var n=p(o,i);return{styleId:n,rules:Array.isArray(t)?t.map(function(e){return m(n,e)}):[m(n,t)]}}return{styleId:p(o),rules:Array.isArray(t)?t:[t]}},t.selectFromServer=function(){return Array.prototype.slice.call(document.querySelectorAll('[id^="__jsx-"]')).reduce(function(e,t){return e[t.id.slice(2)]=t,e},{})},e}(),f=n.createContext(null);f.displayName="StyleSheetContext";var v=r.default.useInsertionEffect||r.default.useLayoutEffect,g=new h;function y(e){var t=g||n.useContext(f);return t&&v(function(){return t.add(e),function(){t.remove(e)}},[e.id,String(e.dynamic)]),null}y.dynamic=function(e){return e.map(function(e){return p(e[0],e[1])}).join(" ")},t.style=y},40645:function(e,t,i){"use strict";e.exports=i(7443).style},92398:function(e,t,i){"use strict";let o,n,r;i.r(t),i.d(t,{default:function(){return rK},reportWebVitals:function(){return rQ}});var a,l,s,d,u,c,p,m,h,f,v,g,y,b,A,x,w,_=i(85893),S=i(40645),C=i.n(S),k=i(67294),T=i(9008),E=i.n(T);let P=new String('@font-face{font-family:"Cairo";src:url(/fonts/Cairo-Bold.ttf);src:url(/fonts/Cairo-Bold.ttf)format("truetype");font-weight:700;font-display:swap}@font-face{font-family:"Cairo";src:url(/fonts/Cairo-SemiBold.ttf);src:url(/fonts/Cairo-SemiBold.ttf)format("truetype");font-weight:600;font-display:swap}@font-face{font-family:"Cairo";src:url(/fonts/Cairo-Regular.ttf);src:local("Cairo"),url(/fonts/Cairo-Regular.ttf)format("truetype");font-display:swap}@font-face{font-family:"Poppins";src:url(/fonts/Poppins-Bold.ttf);unicode-range:u+00-FF,u+980-9FF;font-weight:700;font-display:swap}@font-face{font-family:"Poppins";src:url(/fonts/Poppins-ExtraBold.ttf);unicode-range:u+00-FF,u+980-9FF;font-weight:900;font-display:swap}@font-face{font-family:"Poppins";src:url(/fonts/Poppins-Medium.ttf);unicode-range:u+00-FF,u+980-9FF;font-weight:500;font-display:swap}@font-face{font-family:"Poppins";src:url(/fonts/Poppins-SemiBold.ttf);unicode-range:u+00-FF,u+980-9FF;font-weight:600;font-display:swap}@font-face{font-family:"BarlowCondensed";src:url(/fonts/BarlowCondensed-SemiBold.ttf);unicode-range:u+00-FF,u+980-9FF;font-weight:600;font-display:swap}@font-face{font-family:"BarlowCondensed";src:url(/fonts/BarlowCondensed-Bold.ttf);unicode-range:u+00-FF,u+980-9FF;font-weight:700;font-display:swap}@font-face{font-family:"Poppins";src:url(/fonts/Poppins-Regular.ttf);unicode-range:u+00-FF,u+980-9FF;font-weight:400;font-display:swap}@font-face{font-family:"Redaction20";src:url(/fonts/Redaction20-Italic.otf);src:local("Redaction20-Italic"),url(/fonts/Redaction20-Italic.otf)format("opentype");font-style:italic;font-weight:400;font-display:swap}');P.__hash="ab1ff642834a1863",i(98975),i(24142),i(61020);var I=i(25617),D=i(1413);function O(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var N="function"==typeof Symbol&&Symbol.observable||"@@observable",j=function(){return Math.random().toString(36).substring(7).split("").join(".")},M={INIT:"@@redux/INIT"+j(),REPLACE:"@@redux/REPLACE"+j(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+j()}};function R(e,t,i){if("function"==typeof t&&"function"==typeof i||"function"==typeof i&&"function"==typeof arguments[3])throw Error(O(0));if("function"==typeof t&&void 0===i&&(i=t,t=void 0),void 0!==i){if("function"!=typeof i)throw Error(O(1));return i(R)(e,t)}if("function"!=typeof e)throw Error(O(2));var o,n=e,r=t,a=[],l=a,s=!1;function d(){l===a&&(l=a.slice())}function u(){if(s)throw Error(O(3));return r}function c(e){if("function"!=typeof e)throw Error(O(4));if(s)throw Error(O(5));var t=!0;return d(),l.push(e),function(){if(t){if(s)throw Error(O(6));t=!1,d();var i=l.indexOf(e);l.splice(i,1),a=null}}}function p(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw Error(O(7));if(void 0===e.type)throw Error(O(8));if(s)throw Error(O(9));try{s=!0,r=n(r,e)}finally{s=!1}for(var t=a=l,i=0;i<t.length;i++)(0,t[i])();return e}return p({type:M.INIT}),(o={dispatch:p,subscribe:c,getState:u,replaceReducer:function(e){if("function"!=typeof e)throw Error(O(10));n=e,p({type:M.REPLACE})}})[N]=function(){var e;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw Error(O(11));function t(){e.next&&e.next(u())}return t(),{unsubscribe:c(t)}}})[N]=function(){return this},e},o}function z(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}function L(e){return function(t){var i=t.dispatch,o=t.getState;return function(t){return function(n){return"function"==typeof n?n(i,o,e):t(n)}}}}var V=L();V.withExtraArgument=L;var F=i(20931);let U={user:{}},G={user:{}},B={language:"ar",direction:"rtl"},Z={reportReasons:[],resizerTemplates:[]};var q=i(20533),H=i(90446);let W={layers:[],activeLayer:"layer-0",generalDetails:{quality:F.h4[0].value,fps:F.oc[1].value,canvasBgColor:"#000000"}};var Y=i(38105);let K={};var Q=i(9850);let $={isOpen:!1,currentStep:0,canStartWizard:!1};var X=i(52456);
1let J={currentTime:0,playing:!1,controller:7,fraction:1e3,duration:0,totalDuration:0,zoomLevel:1,fractionInPx:130};var ee=i(73187);let et={files:[]};var ei=i(86109);let eo={isVisible:!1,isSaving:!1};var en=i(94876);let er={isTabVisible:!1};var ea=i(83186);let el={mode:"dark"};var es=i(29618);let ed={};var eu=i(4270),ec=i(88040);let ep={audioState:{playing:!1,currentTime:0},voiceover:{}};var em=i(20468);let eh={selectedTool:em.Fq.FEATURED};var ef=function(e){for(var t,i=Object.keys(e),o={},n=0;n<i.length;n++){var r=i[n];"function"==typeof e[r]&&(o[r]=e[r])}var a=Object.keys(o);try{!function(e){Object.keys(e).forEach(function(t){var i=e[t];if(void 0===i(void 0,{type:M.INIT}))throw Error(O(12));if(void 0===i(void 0,{type:M.PROBE_UNKNOWN_ACTION()}))throw Error(O(13))})}(o)}catch(e){t=e}return function(e,i){if(void 0===e&&(e={}),t)throw t;for(var n=!1,r={},l=0;l<a.length;l++){var s=a[l],d=o[s],u=e[s],c=d(u,i);if(void 0===c)throw i&&i.type,Error(O(14));r[s]=c,n=n||c!==u}return(n=n||a.length!==Object.keys(e).length)?r:e}}({Auth:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:U,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case F.MF.API_TOKEN:return{...e,apiToken:t.payload};case F.MF.CURRENT_USER:return{...e,user:{...e.user,...t.payload}};case F.MF.APP_LOGOUT:return{apiToken:null,user:{}};default:return e}},SallaAuth:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:G,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case F.MF.SALLA_API_TOKEN:return{...e,apiToken:t.payload};case F.MF.SALLA_CURRENT_USER:return{...e,user:{...e.user,...t.payload}};case F.MF.SALLA_APP_LOGOUT:return{apiToken:null,user:{}};default:return e}},VoiceoverPlayer:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ep,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ec.J.TOGGLE_AUDIO:return{...e,audioState:{...null==e?void 0:e.audioState,playing:null==t?void 0:t.payload}};case ec.J.UPDATE_VOICEOVER_CURRENT_TIME:return{...e,audioState:{...null==e?void 0:e.audioState,currentTime:null==t?void 0:t.payload}};case ec.J.LOAD_VOICEOVER_DATA:return{...e,audioState:ep.audioState,voiceover:null==t?void 0:t.payload};case ec.J.CLEAR_VOICEOVER_PLAYER_STATE:case F.MF.APP_LOGOUT:return{...e,...ep};default:return e}},Language:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:B,t=arguments.length>1?arguments[1]:void 0;return t.type===F.MF.SWITCH_LANGUAGE?{...e,language:t.value}:e},Shared:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Z,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case F.MF.REPORT_REASONS:return{...e,reportReasons:t.payload};case F.MF.FONT_FAMILIES:return{...e,fontFamilies:t.payload};case F.MF.RESIZER_TEMPLATES:return{...e,resizerTemplates:t.payload};case F.MF.LANGUAGES:return{...e,languages:t.payload};default:return e}},Wizard:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:$,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Q.a_.TOGGLE:return{...e,isOpen:t.payload};case Q.a_.NEXT_STEP:return{...e,currentStep:t.payload};case Q.a_.FINISH:return{...$,isFinished:!0};case Q.a_.CHANGE_CAN_START:return{...$,canStartWizard:null==t?void 0:t.payload};case Q.a_.RESET:return $;default:return e}},HamburgerTab:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:er,t=arguments.length>1?arguments[1]:void 0;return t.type===en.n.TAB_CHANGED?{...e,...t.payload}:e},Theme:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:el,t=arguments.length>1?arguments[1]:void 0;return t.type===ea.x.THEME_CHANGED?{...e,mode:t.payload}:e},ResizerState:q.ZP,EditorState:function(){var e,t,i,o,n,r;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:W,l=arguments.length>1?arguments[1]:void 0;switch(l.type){case H.ox.UPDATE_OUTPUT_SETTINGS:return{...a,outputSettings:l.payload};case H.ox.CLEAR_STATE:return W;case H.ox.UPDATE_LAYERS_BULK:return{...a,layers:null==l?void 0:l.payload};case H.ox.EDITOR_STATE_CHANGED:return null==l?void 0:l.payload;case H.ox.ADD_LAYER_AND_MAKE_ACTIVE:return{...a,layers:null===(e=l.payload)||void 0===e?void 0:e.copiedLayers,activeLayer:null==l?void 0:null===(t=l.payload)||void 0===t?void 0:t.layerId};case H.ox.ADD_LAYER:return{...a,layers:l.payload};case H.ox.ADD_LAYER_AND_MAKE_ACTIVE:return{...a,layers:null===(i=l.payload)||void 0===i?void 0:i.copiedLayers,activeLayer:null==l?void 0:null===(o=l.payload)||void 0===o?void 0:o.layerId};case H.ox.UPDATE_GENERAL_DATA:return{...a,generalDetails:{...null==a?void 0:a.generalDetails,...l.payload}};case H.ox.ACTIVE_LAYER_CHANGED:return{...a,activeLayer:null==l?void 0:l.payload};case H.ox.UPDATE_PREVIEW_WIDTH_AND_HEIGHT:return{...a,generalDetails:null==l?void 0:null===(n=l.payload)||void 0===n?void 0:n.generalDetails,layers:null==l?void 0:null===(r=l.payload)||void 0===r?void 0:r.layers};case H.ox.STORE_VIDEO_SUBTITLES:case H.ox.REMOVE_VIDEO_SUBTITLES:return{...a,videosSubtitls:l.payload};default:return a}},VideoState:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:K,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case Y.lt.STORE_VIDEO:return t.payload;case Y.lt.UPDATE_EXPORT_STATUS:return{...e,exported:t.payload};case Y.lt.CLEAR_STATE:return K;default:return e}},Timeline:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:J,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case X.j.CHANGE_CURRENT_TIME:return{...e,currentTime:t.payload};case X.j.PLAY_PAUSE:return{...e,playing:t.payload};case X.j.UPDATE_ALL:return{...e,...t.payload};case X.j.UPDATE_VALUE:return{...e,[t.payload.key]:t.payload.value};case X.j.RESET:return J;default:return e}},Upload:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:et,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ee.e.UPLOAD_START:let i={id:t.payload,file:null,progress:0,status:"uploading",error:null,start:0,end:0,partNumber:0};return{...e,files:[...e.files,i]};case ee.e.UPLOAD_PROGRESS:return{...e,files:e.files.map(e=>e.id===t.payload.fileId?{...e,progress:t.payload.progress}:e)};case ee.e.UPLOAD_SUCCESS:return{...e,files:e.files.map(e=>e.id===t.payload?{...e,progress:100,status:"success"}:e)};case ee.e.UPLOAD_FAILURE:return{...e,files:e.files.map(e=>e.id===t.payload.fileId?{...e,status:"failure",error:t.payload.error}:e)};case ee.e.UPDATE_UPLOAD_STATE:return{...e,files:e.files.map(e=>e.id===t.payload.fileId?{...e,start:t.payload.start,end:t.payload.end,partNumber:t.payload.partNumber}:e)};case ee.e.CLEAR_UPLOAD_STATE:return et;default:return e}},EditTracker:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eo,t=arguments.length>1?arguments[1]:void 0;return t.type===ei.W.DATA_CHANGED?{...e,...t.payload}:e},VideoAssets:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ed,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case es.K.STORE_VIDEO_ASSET:return{...e,...t.payload};case es.K.CLEAR_VIDEO_ASSET_STATE:return ed;default:return e}},TextToVideo:eu.Z,SelectedTool:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eh,t=arguments.length>1?arguments[1]:void 0;return"SET_SELECTED_TOOL"===t.type?{...e,selectedTool:t.payload}:e}}),ev="persist:",eg="persist/FLUSH",ey="persist/REHYDRATE",eb="persist/PAUSE",eA="persist/PERSIST",ex="persist/PURGE",ew="persist/REGISTER";function e_(e){return(e_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function eS(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,o)}return i}function eC(e){return JSON.stringify(e)}function ek(e){return JSON.parse(e)}function eT(e){}function eE(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,o)}return i}function eP(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
1t%2?eE(i,!0).forEach(function(t){var o;o=i[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):eE(i).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}function eI(e){return function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw TypeError("Invalid attempt to spread non-iterable instance")}()}function eD(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,o)}return i}function eO(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?eD(i,!0).forEach(function(t){var o;o=i[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):eD(i).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}var eN={registry:[],bootstrapped:!1};i(94500);let{store:ej,persistor:eM}=(f=r=R((l=void 0!==(a={key:"root",storage:i(62168).Z,blacklist:["Session","VoiceoverPlayer"]}).version?a.version:-1,a.debug,s=void 0===a.stateReconciler?function(e,t,i,o){o.debug;var n=function(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?eS(i,!0).forEach(function(t){var o;o=i[t],t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):eS(i).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}({},i);return e&&"object"===e_(e)&&Object.keys(e).forEach(function(o){"_persist"!==o&&t[o]===i[o]&&(n[o]=e[o])}),n}:a.stateReconciler,d=a.getStoredState||function(e){var t,i=e.transforms||[],o="".concat(void 0!==e.ke
1yPrefix?e.keyPrefix:ev).concat(e.key),n=e.storage;return e.debug,t=!1===e.deserialize?function(e){return e}:"function"==typeof e.deserialize?e.deserialize:ek,n.getItem(o).then(function(e){if(e)try{var o={},n=t(e);return Object.keys(n).forEach(function(e){o[e]=i.reduceRight(function(t,i){return i.out(t,e,n)},t(n[e]))}),o}catch(e){throw e}})},u=void 0!==a.timeout?a.timeout:5e3,c=null,p=!1,m=!0,h=function(e){return e._persist.rehydrated&&c&&!m&&c.update(e),e},function(e,t){var i,o,n=e||{},r=n._persist,f=function(e,t){if(null==e)return{};var i,o,n=function(e,t){if(null==e)return{};var i,o,n={},r=Object.keys(e);for(o=0;o<r.length;o++)i=r[o],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(e,i)&&(n[i]=e[i])}return n}(n,["_persist"]);if(t.type===eA){var v=!1,g=function(e,i){v||(t.rehydrate(a.key,e,i),v=!0)};if(u&&setTimeout(function(){v||g(void 0,Error('redux-persist: persist timed out for persist key "'.concat(a.key,'"')))},u),m=!1,c||(c=function(e){var t,i=e.blacklist||null,o=e.whitelist||null,n=e.transforms||[],r=e.throttle||0,a="".concat(void 0!==e.ke
1yPrefix?e.keyPrefix:ev).concat(e.key),l=e.storage;t=!1===e.serialize?function(e){return e}:"function"==typeof e.serialize?e.serialize:eC;var s=e.writeFailHandler||null,d={},u={},c=[],p=null,m=null;function h(){if(0===c.length){p&&clearInterval(p),p=null;return}var e=c.shift(),i=n.reduce(function(t,i){return i.in(t,e,d)},d[e]);if(void 0!==i)try{u[e]=t(i)}catch(e){console.error("redux-persist/createPersistoid: error serializing state",e)}else delete u[e];0===c.length&&(Object.keys(u).forEach(function(e){void 0===d[e]&&delete u[e]}),m=l.setItem(a,t(u)).catch(v))}function f(e){return(!o||-1!==o.indexOf(e)||"_persist"===e)&&(!i||-1===i.indexOf(e))}function v(e){s&&s(e)}return{update:function(e){Object.keys(e).forEach(function(t){f(t)&&d[t]!==e[t]&&-1===c.indexOf(t)&&c.push(t)}),Object.keys(d).forEach(function(t){void 0===e[t]&&f(t)&&-1===c.indexOf(t)&&void 0!==d[t]&&c.push(t)}),null===p&&(p=setInterval(h,r)),d=e},flush:function(){for(;0!==c.length;)h();return m||Promise.resolve()}}}(a)),r)return eP({},ef(f,t),{_persist:r});if("function"!=typeof t.rehydrate||"function"!=typeof t.register)throw Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return t.register(a.key),d(a).then(function(e){(a.migrate||function(e,t){return Promise.resolve(e)})(e,l).then(function(e){g(e)},function(e){g(void 0,e)})},function(e){g(void 0,e)}),eP({},ef(f,t),{_persist:{version:l,rehydrated:!1}})}if(t.type===ex)return p=!0,t.result((i=a.storage,o="".concat(void 0!==a.keyPrefix?a.keyPrefix:ev).concat(a.key),i.removeItem(o,eT))),eP({},ef(f,t),{_persist:r});if(t.type===eg)return t.result(c&&c.flush()),eP({},ef(f,t),{_persist:r});if(t.type===eb)m=!0;else if(t.type===ey){if(p)return eP({},f,{_persist:eP({},r,{rehydrated:!0})});if(t.key===a.key){var y=ef(f,t),b=t.payload;return h(eP({},!1!==s&&void 0!==b?s(b,e,y,a):y,{_persist:eP({},r,{rehydrated:!0})}))}}if(!r)return ef(e,t);var A=ef(f,t);return A===f?e:h(eP({},A,{_persist:r}))}),function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return function(e){return function(){var i=e.apply(void 0,arguments),o=function(){throw Error(O(15))},n={getState:i.getState,dispatch:function(){return o.apply(void 0,arguments)}},r=t.map(function(e){return e(n)});return o=z.apply(void 0,r)(i.dispatch),(0,D.Z)((0,D.Z)({},i),{},{dispatch:o})}}}(V)),g=!1,y=R(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:eN,t=arguments.length>1?arguments[1]:void 0;switch(t.type){case ew:return eO({},e,{registry:[].concat(eI(e.registry),[t.key])});case ey:var i=e.registry.indexOf(t.key),o=eI(e.registry);return o.splice(i,1),eO({},e,{registry:o,bootstrapped:0===o.length});default:return e}},eN,void 0),b=function(e){y.dispatch({type:ew,key:e})},A=function(e,t,i){var o={type:ey,payload:t,err:i,key:e};f.dispatch(o),y.dispatch(o),g&&x.getState().bootstrapped&&(g(),g=!1)},x=eO({},y,{purge:function(){var e=[];return f.dispatch({type:ex,result:function(t){e.push(t)}}),Promise.all(e)},flush:function(){var e=[];return f.dispatch({type:eg,result:function(t){e.push(t)}}),Promise.all(e)},pause:function(){f.dispatch({type:eb})},persist:function(){f.dispatch({type:eA,register:b,rehydrate:A})}}),v&&v.manualPersist||x.persist(),{store:r,persistor:x});var eR=i(5152),ez=i.n(eR),eL=i(11163),eV=i.n(eL),eF=i(82591),eU=i(18684),eG=i(64242),eB=i(27524),eZ=i(83670),eq=i(76425),eH=i(75529);let eW=k.createContext(null),eY=e=>{let[t,i]=k.useReducer(eH.ZP,eH.fm);return(0,_.jsx)(eW.Provider,{value:{createVideoState:t,dispatchCreateVideoState:i},children:e.children})};var eK=i(31155),eQ=k.memo(e=>{let{children:t}=e;return(0,_.jsx)(eU.Xq,{children:(0,_.jsx)(eB.iL,{children:(0,_.jsx)(eK.ZP,{children:(0,_.jsx)(eq.PK,{children:(0,_.jsx)(eG.Ho,{children:(0,_.jsx)(eZ.LO,{children:(0,_.jsx)(eY,{children:(0,_.jsx)(eF.ZP,{children:t})})})})})})})})}),e$=i(10397),eX=k.memo(e=>{let{children:t}=e;return(0,_.jsx)(eU.Xq,{children:(0,_.jsx)(eB.iL,{children:(0,_.jsx)(eK.ZP,{children:(0,_.jsx)(eq.PK,{children:(0,_.jsxs)(e$.Ws,{children:[t," "]})})})})})});let eJ=e=>{if(!e||e.includes("/salla-faqs"))return!1;let t=e.replace(/^\/(en|ar|es|fr|it|tr)\//,"/");return F.Kt.some(e=>{let i=e.replace(/\//g,"\\/").replace(/\*/g,"[^\\/]+");if(e.endsWith("/*")){let i=e.slice(0,-2).replace(/\//g,"\\/").replace(/\*/g,"[^\\/]+");return new RegExp("^".concat(i,"(\\/.*)?$")).test(t)}return new RegExp("^".concat(i,"$")).test(t)})},e0=e=>eJ(e)?"salla":"regular",e1=new Set(["bith-main"]),e2=(e,t)=>{var i;if(e.startsWith("/app/"))return!0;let o=null===(i=t.split("?")[0].match(/\/lp\/([^/]+)\/?$/))||void 0===i?void 0:i[1];return null!=o&&e1.has(o)};var e3=e=>{let{children:t}=e,i=(0,I.I0)(),o=(0,eL.useRouter)(),n=e0(o.pathname),r=e2(o.pathname,o.asPath),a=k.useRef(null),{mode:l}=(0,I.v9)(e=>e.Theme),s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l;document.documentElement.setAttribute("data-theme",e)},d=k.useContext(eG.Vo),u=k.useContext(e$.pm),c="salla"===n?u:d,p=(null==c?void 0:c.isLoggedIn)||!1,m=(0,I.v9)(e=>{var t;return null==e?void 0:null===(t=e.Auth)||void 0===t?void 0:t.user}),h="salla"===n?(null==c?void 0:c.user)||null:m;return k.useEffect(()=>{if(r)return null===a.current&&(a.current=l),i(ea.Z.changeTheme({mode:F.uX.LIGHT})),s(F.uX.LIGHT),()=>{a.current===F.uX.DARK&&(i(ea.Z.changeTheme({mode:F.uX.DARK})),s(F.uX.DARK)),a.current=null}},[r]),k.useEffect(()=>{if(r)return;let e=window.matchMedia("(prefers-color-scheme: dark)").matches;!l||(null==h?void 0:h.preferred_theme)?p?h.preferred_theme?(i(ea.Z.changeTheme({mode:h.preferred_theme})),s(h.preferred_theme)):s(l):(s(e?"dark":"light"),i(ea.Z.changeTheme({mode:e?"dark":"light"}))):(s(l),i(ea.Z.changeTheme({mode:l})))},[p,null==h?void 0:h.preferred_theme,r]),(0,_.jsx)(_.Fragment,{children:t})},e4=i(90310),e5=(e,t)=>{(0,k.useEffect)(()=>
1{if("undefined"!=typeof navigator&&navigator.mediaSession)return navigator.mediaSession.setActionHandler(e,t),()=>{navigator.mediaSession.setActionHandler(e,null)}},[e,t])};function e6(e){return(e6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function e8(e){return(e8=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function e9(e){if(void 0===e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function e7(e,t){return(e7=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function te(e,t,i){return t in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}var tt=function(e){var t;function i(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,i);for(var e,t,o,n=arguments.length,r=Array(n),a=0;a<n;a++)r[a]=arguments[a];return o=(e=(t=e8(i)).call.apply(t,[this].concat(r)))&&("object"===e6(e)||"function"==typeof e)?e:e9(this),te(e9(o),"state",{bootstrapped:!1}),te(e9(o),"_unsubscribe",void 0),te(e9(o),"handlePersistorState",function(){o.props.persistor.getState().bootstrapped&&(o.props.onBeforeLift?Promise.resolve(o.props.onBeforeLift()).finally(function(){return o.setState({bootstrapped:!0})}):o.setState({bootstrapped:!0}),o._unsubscribe&&o._unsubscribe())}),o}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&e7(e,t)}(i,e),t=[{key:"componentDidMount",value:function(){this._unsubscribe=this.props.persistor.subscribe(this.handlePersistorState),this.handlePersistorState()}},{key:"componentWillUnmount",value:function(){this._unsubscribe&&this._unsubscribe()}},{key:"render",value:function(){return"function"==typeof this.props.children?this.props.children(this.state.bootstrapped):this.state.bootstrapped?this.props.children:this.props.loading}}],function(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}(i.prototype,t),i}(k.PureComponent);function ti(e){let{children:t}=e;return(0,_.jsx)(tt,{persistor:eM,loading:null,children:t})}te(tt,"defaultProps",{children:null,loading:null});var to=i(74865),tn=i.n(to);function tr(){n="stop",clearTimeout(o),tn().done()}tn().configure({minimum:.08,easing:"linear",positionUsing:"",speed:200,trickle:!0,trickleSpeed:200,showSpinner:!1,barSelector:'[role="bar"]',parent:"body",template:'<div class="nprogress bar" role="bar"><div class=""></div></div>'}),eV().events.on("routeChangeStart",function(){"loading"!==n&&(n="loading",o=setTimeout(function(){tn().start()},250))}),eV().events.on("routeChangeComplete",tr),eV().events.on("routeChangeError",tr);var ta=()=>null,tl=i(13820);function ts(e){return e}
1function td(e){return e.state.isPaused}function tu(e){return"success"===e.state.status}function tc(e){return!0}function tp(e,t,i){if("object"!=typeof t||null===t)return;let o=e.getMutationCache(),n=e.getQueryCache(),r=i?.defaultOptions?.deserializeData??e.getDefaultOptions().hydrate?.deserializeData??ts,a=t.mutations||[],l=t.queries||[];a.forEach(({state:t,...n})=>{o.build(e,{...e.getDefaultOptions().hydrate?.mutations,...i?.defaultOptions?.mutations,...n},t)}),l.forEach(({queryKey:t,state:o,queryHash:a,meta:l,promise:s,dehydratedAt:d})=>{let u=s?(0,tl.g)(s):void 0,c=void 0===o.data?u?.data:o.data,p=void 0===c?c:r(c),m=n.get(a),h=m?.state.status==="pending",f=m?.state.fetchStatus==="fetching";if(m){let e=u&&void 0!==d&&d>m.state.dataUpdatedAt;if(o.dataUpdatedAt>m.state.dataUpdatedAt||e){let{fetchStatus:e,...t}=o;m.setState({...t,data:p})}}else m=n.build(e,{...e.getDefaultOptions().hydrate?.queries,...i?.defaultOptions?.queries,queryKey:t,queryHash:a,meta:l},{...o,data:p,fetchStatus:"idle",status:void 0!==p?"success":o.status});s&&!h&&!f&&(void 0===d||d>m.state.dataUpdatedAt)&&m.fetch(void 0,{initialPromise:Promise.resolve(s).then(r)})})}var tm=i(30202),th=({children:e,options:t={},state:i,queryClient:o})=>{let n=(0,tm.NL)(o),r=k.useRef(t);r.current=t;let a=k.useMemo(()=>{if(i){if("object"!=typeof i)return;let e=n.getQueryCache(),t=i.queries||[],o=[],a=[];for(let i of t){let t=e.get(i.queryHash);t?(i.state.dataUpdatedAt>t.state.dataUpdatedAt||i.promise&&"pending"!==t.state.status&&"fetching"!==t.state.fetchStatus&&void 0!==i.dehydratedAt&&i.dehydratedAt>t.state.dataUpdatedAt)&&a.push(i):o.push(i)}if(o.length>0&&tp(n,{queries:o},r.current),a.length>0)return a}},[n,i]);return k.useEffect(()=>{a&&tp(n,{queries:a},r.current)},[n,a]),e},tf=i(93603),tv=i(95956),tg=i(7437),ty=i(15953),tb=i(48416),tA=i(93269);let tx=null;var tw=()=>{let e=(0,eL.useRouter)(),t=k.useCallback(e=>{if(!(0,tg.UA)(e))return;let t=(0,tg.lb)(e),i=(0,tb.bB)(t);if((0,tb.JE)()){if(tx===i)return;tx=i,(0,tg.NA)(t,(0,ty.OP)(),"landing");return}(0,tb.gH)()!==i&&((0,tb.ZP)(i),(0,tb.pV)(t),(0,tg.NA)(t,(0,ty.OP)(),"landing"))},[]);return k.useEffect(()=>{t((0,tA.R4)(new URLSearchParams(window.location.search)))},[]),k.useEffect(()=>{e.isReady&&t((0,tA.MV)(e.query))},[e.isReady,e.query.utm_source,e.query.utm_medium,e.query.utm_campaign,e.query.utm_term,e.query.utm_content,e.query.utm_id,e.query.gclid,e.query.fbclid,e.query.ScCid,e.query.gbraid,e.query.wbraid,e.query.ttclid,e.query.msclkid,e.query.li_fat_id,e.query.epik,e.query.campaign_id,e.query.campaign_name,e.query.adset_id,e.query.adset_name,e.query.ad_id,e.query.ad_name,t]),null};let t_=ez()(()=>i.e(14593).then(i.bind(i,14593)),{loadableGenerated:{webpack:()=>[14593]},ssr:!1}),tS=ez()(()=>i.e(72654).then(i.bind(i,72654)),{loadableGenerated:{webpack:()=>[72654]},ssr:!1}),tC=ez()(()=>i.e(51312).then(i.bind(i,51312)),{loadableGenerated:{webpack:()=>[51312]},ssr:!1}),tk=ez()(()=>i.e(62927).then(i.bind(i,62927)),{loadableGenerated:{webpack:()=>[62927]},ssr:!1}),tT=ez()(()=>i.e(63722).then(i.bind(i,63722)),{loadableGenerated:{webpack:()=>[63722]},ssr:!1}),tE=ez()(()=>i.e(43586).then(i.bind(i,43586)),{loadableGenerated:{webpack:()=>[43586]},ssr:!1}),tP=ez()(()=>Promise.all([i.e(99760),i.e(79658)]).then(i.bind(i,79658)),{loadableGenerated:{webpack:()=>[79658]},ssr:!1}),tI=ez()(()=>i.e(20198).then(i.bind(i,20198)),{loadableGenerated:{webpack:()=>[20198]},ssr:!1}),tD=ez()(()=>Promise.all([i.e(65825),i.e(4981)]).then(i.bind(i,4981)),{loadableGenerated:{webpack:()=>[4981]},ssr:!1});ez()(()=>i.e(80308).then(i.bind(i,80308)),{loadableGenerated:{webpack:()=>[80308]},ssr:!1}),ez()(()=>i.e(36891).then(i.bind(i,36891)),{loadableGenerated:{webpack:()=>[36891]},ssr:!1});let tO=e=>e.startsWith("/login")||e.startsWith("/signup")||e.startsWith("/email-verification")||e.startsWith("/help/reset-password")||e.startsWith("/help/verification");var tN=e=>{let{children:t,dehydratedState:i}=e,o=(0,eL.useRouter)(),n=e0(o.pathname),[r,a]=k.useState(!1);k.useEffect(()=>{let e=window.matchMedia("(max-width: 1023px)"),t=()=>a(e.matches);return t(),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let l=!o.pathname.startsWith("/lp/")&&!o.pathname.startsWith("/app/")&&!(0,tf.x1)(o.pathname)&&!(tO(o.pathname)&&r);return e5("play",()=>{}),k.useEffect(()=>{let e=()=>{document.documentElement.style.setProperty("--doc-height","".concat(window.innerHeight,"px"))};return window.addEventListener("resize",e),e(),()=>{window.removeEventListener("resize",e)}},[]),(0,_.jsxs)(th,{state:i,children:[(0,_.jsx)(k.Suspense,{fallback:(0,_.jsx)("div",{}),children:(0,_.jsx)(ta,{})}),(0,_.jsx)(tS,{}),(0,_.jsx)(I.zt,{store:ej,children:(0,_.jsx)(ti,{children:(0,_.jsxs)("salla"===n?eX:eQ,{children:["salla"!==n&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(tv.Z,{}),(0,_.jsx)(tE,{}),(0,_.jsx)(tC,{enabled:l}),(0,_.jsx)(tk,{}),(0,_.jsx)(tT,{}),(0,_.jsx)(tw,{}),null]}),(0,_.jsx)(e4.Z,{children:(0,_.jsxs)(e3,{children:[t,(0,_.jsx)(tD,{}),(0,_.jsx)(tI,{}),(0,_.jsx)(tP,{}),(0,_.jsx)(t_,{})]})})]})})})]})},tj=["added","removed","updated"];function tM(e){return tj.includes(e)}async function tR({queryClient:e,persister:t,maxAge:i=864e5,buster:o="",hydrateOptions:n}){try{let r=await t.restoreClient();if(r){if(!r.timestamp)return t.removeClient();{let a=Date.now()-r.timestamp>i,l=r.buster!==o;if(a||l)return t.removeClient();tp(e,r.clientState,n)}}}catch(e){throw await t.removeClient(),e}}async function tz({queryClient:e,persister:t,buster:i="",dehydrateOptions:o}){let n={buster:i,timestamp:Date.now(),clientState:function(e,t={}){let i=t.shouldDehydrateMutation??e.getDefaultOptions().dehydrate?.shouldDehydrateMutation??td,o=e.getMutationCache().getAll().flatMap(e=>i(e)?[{mutationKey:e.options.mutationKey,state:e.state,...e.options.scope&&{scope:e.options.scope},...e.meta&&{meta:e.meta}}]:[]),n=t.shouldDehydrateQuery??e.getDefaultOptions().dehydrate?.shouldDehydrateQuery??tu,r=t.shouldRedactErrors??e.getDefaultOptions().dehydrate?.shouldRedactErrors??tc,a=t.serializeData??e.getDefaultOptions().dehydrate?.serializeData??ts;return{mutations:o,queries:e.getQueryCache().getAll().flatMap(e=>n(e)?[{dehydratedAt:Date.now(),state:{...e.state,...void 0!==e.state.data&&{data:a(e.state.data)}},queryKey:e.queryKey,queryHash:e.queryHash,..."pending"===e.state.status&&{promise:e.promise?.then(a).catch(e=>r(e)?Promise.reject(Error("redacted")):Promise.reject(e))},...e.meta&&{meta:e.meta}}]:[])}}(e,o)};await t.persistClient(n)}Promise.resolve(!1),Promise.resolve(!0);var tL=Promise.resolve();function tV(e,t){return e||(e=0),new Promise(function(i){return setTimeout(function(){return i(t)},e)})}function tF(){return Math.random().toString(36).substring(2)}var tU=0;function tG(){var e=1e3*Date.now();return e<=tU&&(e=tU+1),tU=e,e}class tB{ttl;map=new Map;_to=!1;constructor(e){this.ttl=e}has(e){return this.map.has(e)}add(e){this.map.set(e,tZ()),this._to||(this._to=!0,setTimeout(()=>{this._to=!1,function(e){let t=tZ()-e.ttl,i=e.map[Symbol.iterator]();for(;;){let o=i.next().value;if(!o)return;let n=o[0];if(!(o[1]<t))return;e.map.delete(n)}}(this)},0))}clear(){this.map.clear()}}function tZ(){return Date.now()}function tq(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=JSON.parse(JSON.stringify(e));
1return void 0===t.webWorkerSupport&&(t.webWorkerSupport=!0),t.idb||(t.idb={}),t.idb.ttl||(t.idb.ttl=45e3),t.idb.fallbackInterval||(t.idb.fallbackInterval=150),e.idb&&"function"==typeof e.idb.onclose&&(t.idb.onclose=e.idb.onclose),t.localstorage||(t.localstorage={}),t.localstorage.removeTimeout||(t.localstorage.removeTimeout=6e4),e.methods&&(t.methods=e.methods),t.node||(t.node={}),t.node.ttl||(t.node.ttl=12e4),t.node.maxParallelWrites||(t.node.maxParallelWrites=2048),void 0===t.node.useFastPath&&(t.node.useFastPath=!0),t}var tH="messages",tW={durability:"relaxed"};function tY(){if("undefined"!=typeof indexedDB)return indexedDB;if("undefined"!=typeof window){if(void 0!==window.mozIndexedDB)return window.mozIndexedDB;if(void 0!==window.webkitIndexedDB)return window.webkitIndexedDB;if(void 0!==window.msIndexedDB)return window.msIndexedDB}return!1}function tK(e){e.commit&&e.commit()}function tQ(e){return e.closed||!e.messagesCallback?tL:(function(e,t){var i=e.transaction(tH,"readonly",tW),o=i.objectStore(tH),n=[],r=IDBKeyRange.bound(t+1,1/0);if(o.getAll){var a=o.getAll(r);return new Promise(function(e,t){a.onerror=function(e){return t(e)},a.onsuccess=function(t){e(t.target.result)}})}return new Promise(function(e,a){var l=function(){try{return r=IDBKeyRange.bound(t+1,1/0),o.openCursor(r)}catch(e){return o.openCursor()}}();l.onerror=function(e){return a(e)},l.onsuccess=function(o){var r=o.target.result;r?r.value.id<t+1?r.continue(t+1):(n.push(r.value),r.continue()):(tK(i),e(n))}})})(e.db,e.lastCursorId).then(function(t){return t.filter(function(e){return!!e}).map(function(t){return t.id>e.lastCursorId&&(e.lastCursorId=t.id),t}).filter(function(t){return!(t.uuid===e.uuid||e.eMIs.has(t.id))&&!(t.data.time<e.messagesCallbackTime)}).sort(function(e,t){return e.time-t.time}).forEach(function(t){e.messagesCallback&&(e.eMIs.add(t.id),e.messagesCallback(t.data))}),tL})}function t$(){var e;if("undefined"==typeof window)return null;try{e=window.localStorage,e=window["ie8-eventlistener/storage"]||window.localStorage}catch(e){}return e}function tX(e){return"pubkey.broadcastChannel-"+e}function tJ(){var e=t$();if(!e)return!1;try{var t="__broadcastchannel_check";e.setItem(t,"works"),e.removeItem(t)}catch(e){return!1}return!0}var t0=new Set,t1={create:function(e){var t={time:tG(),name:e,messagesCallback:null};return t0.add(t),t},close:function(e){t0.delete(e)},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){return new Promise(function(i){return setTimeout(function(){Array.from(t0).forEach(function(i){i.name===e.name&&i!==e&&i.messagesCallback&&i.time<t.time&&i.messagesCallback(t)}),i()},5)})},canBeUsed:function(){return!0},type:"simulate",averageResponseTime:function(){return 5},microSeconds:tG},t2=[{create:function(e){var t={time:tG(),messagesCallback:null,bc:new BroadcastChannel(e),subFns:[]};return t.bc.onmessage=function(e){t.messagesCallback&&t.messagesCallback(e.data)},t},close:function(e){e.bc.close(),e.subFns=[]},onMessage:function(e,t){e.messagesCallback=t},postMessage:function(e,t){try{return e.bc.postMessage(t,!1),tL}catch(e){return Promise.reject(e)}},canBeUsed:function(){if("undefined"!=typeof globalThis&&globalThis.Deno&&globalThis.Deno.args)return!0;if("undefined"==typeof window&&"undefined"==typeof self||"function"!=typeof BroadcastChannel)return!1;if(BroadcastChannel._pubkey)throw Error("BroadcastChannel: Do not overwrite window.BroadcastChannel with this module, this is not a polyfill");return!0},type:"native",averageResponseTime:function(){return 150},microSeconds:tG},{create:function(e,t){var i;return t=tq(t),((i=tY().open("pubkey.broadcast-channel-0-"+e)).onupgradeneeded=function(e){e.target.result.createObjectStore(tH,{keyPath:"id",autoIncrement:!0})},new Promise(function(e,t){i.onerror=function(e){return t(e)},i.onsuccess=function(){e(i.result)}})).then(function(i){var o={closed:!1,lastCursorId:0,channelName:e,options:t,uuid:tF(),eMIs:new tB(2*t.idb.ttl),writeBlockPromise:tL,messagesCallback:null,readQueuePromises:[],db:i};return i.onclose=function(){o.closed=!0,t.idb.onclose&&t.idb.onclose()},function e(t){t.closed||tQ(t).then(function(){return tV(t.options.idb.fallbackInterval)}).then(function(){return e(t)})}(o),o})},close:function(e){e.closed=!0,e.db.close()},onMessage:function(e,t,i){e.messagesCallbackTime=i,e.messagesCallback=t,tQ(e)},postMessage:function(e,t){return e.writeBlockPromise=e.writeBlockPromise.then(function(){var i,o,n;return i=e.db,o={uuid:e.uuid,time:Date.now(),data:t},n=i.transaction([tH],"readwrite",tW),new Promise(function(e,t){n.oncomplete=function(){return e()},n.onerror=function(e){return t(e)},n.objectStore(tH).add(o),tK(n)})}).then(function(){var t,i,o,n,r,a;0===Math.floor(11*Math.random()+0)&&(t=e.db,i=e.options.idb.ttl,o=Date.now()-i,r=(n=t.transaction(tH,"readonly",tW)).objectStore(tH),a=[],new Promise(function(e){r.openCursor().onsuccess=function(t){var i=t.target.result;if(i){var r=i.value;r.time<o?(a.push(r),i.continue()):(tK(n),e(a))}else e(a)}})).then(function(t){return function(e,t){if(e.closed)return Promise.resolve([]);var i=e.db.transaction(tH,"readwrite",tW).objectStore(tH);return Promise.all(t.map(function(e){var t=i.delete(e);return new Promise(function(e){t.onsuccess=function(){return e()}})}))}(e,t.map(function(e){return e.id}))})}),e.writeBlockPromise},canBeUsed:function(){return!!tY()},type:"idb",averageResponseTime:function(e){return 2*e.idb.fallbackInterval},microSeconds:tG},{create:function(e,t){if(t=tq(t),!tJ())throw Error("BroadcastChannel: localstorage c
1annot be used");var i,o,n,r=tF(),a=new tB(t.localstorage.removeTimeout),l={channelName:e,uuid:r,eMIs:a};return l.listener=(i=function(e){!(!l.messagesCallback||e.uuid===r||!e.token||a.has(e.token))&&(e.data.time&&e.data.time<l.messagesCallbackTime||(a.add(e.token),l.messagesCallback(e.data)))},o=tX(e),n=function(e){e.key===o&&i(JSON.parse(e.newValue))},window.addEventListener("storage",n),n),l},close:function(e){var t;t=e.listener,window.removeEventListener("storage",t)},onMessage:function(e,t,i){e.messagesCallbackTime=i,e.messagesCallback=t},postMessage:function(e,t){return new Promise(function(i){tV().then(function(){var o=tX(e.channelName),n=JSON.stringify({token:tF(),time:Date.now(),data:t,uuid:e.uuid});t$().setItem(o,n);var r=document.createEvent("Event");r.initEvent("storage",!0,!0),r.key=o,r.newValue=n,window.dispatchEvent(r),i()})})},canBeUsed:tJ,type:"localstorage",averageResponseTime:function(){var e=navigator.userAgent.toLowerCase();return e.includes("safari")&&!e.includes("chrome")?240:120},microSeconds:tG}],t3=new Set,t4=0,t5=function(e,t){var i,o;this.id=t4++,t3.add(this),this.name=e,w&&(t=w),this.options=tq(t),this.method=function(e){var t=[].concat(e.methods,t2).filter(Boolean);if(e.type){if("simulate"===e.type)return t1;var i=t.find(function(t){return t.type===e.type});if(i)return i;throw Error("method-type "+e.type+" not found")}e.webWorkerSupport||(t=t.filter(function(e){return"idb"!==e.type}));var o=t.find(function(e){return e.canBeUsed()});if(o)return o;throw Error("No usable method found in "+JSON.stringify(t2.map(function(e){return e.type})))}(this.options),this._iL=!1,this._onML=null,this._addEL={message:[],internal:[]},this._uMP=new Set,this._befC=[],this._prepP=null,i=this,(o=i.method.create(i.name,i.options))&&"function"==typeof o.then?(i._prepP=o,o.then(function(e){i._state=e})):i._state=o};function t6(e,t,i){var o={time:e.method.microSeconds(),type:t,data:i};return(e._prepP?e._prepP:tL).then(function(){var t=e.method.postMessage(e._state,o);return e._uMP.add(t),t.catch().then(function(){return e._uMP.delete(t)}),t})}function t8(e){return e._addEL.message.length>0||e._addEL.internal.length>0}function t9(e,t,i){e._addEL[t].push(i),function(e){if(!e._iL&&t8(e)){var t=function(t){e._addEL[t.type].forEach(function(e){t.time>=e.time&&e.fn(t.data)})},i=e.method.microSeconds();e._prepP?e._prepP.then(function(){e._iL=!0,e.method.onMessage(e._state,t,i)}):(e._iL=!0,e.method.onMessage(e._state,t,i))}}(e)}function t7(e,t,i){e._addEL[t]=e._addEL[t].filter(function(e){return e!==i}),function(e){if(e._iL&&!t8(e)){e._iL=!1;var t=e.method.microSeconds();e.method.onMessage(e._state,null,t)}}(e)}t5._pubkey=!0,t5.prototype={postMessage:function(e){if(this.closed)throw Error("BroadcastChannel.postMessage(): Cannot post message after channel has closed "+JSON.stringify(e));return t6(this,"message",e)},postInternal:function(e){return t6(this,"internal",e)},set onmessage(fn){var ie={time:this.method.microSeconds(),fn:fn};t7(this,"message",this._onML),fn&&"function"==typeof fn?(this._onML=ie,t9(this,"message",ie)):this._onML=null},addEventListener:function(e,t){t9(this,e,{time:this.method.microSeconds(),fn:t})},removeEventListener:function(e,t){var i=this._addEL[e].find(function(e){return e.fn===t});t7(this,e,i)},close:function(){var e=this;if(!this.closed){t3.delete(this),this.closed=!0;var t=this._prepP?this._prepP:tL;return this._onML=null,this._addEL.message=[],t.then(function(){return Promise.all(Array.from(e._uMP))}).then(function(){return Promise.all(e._befC.map(function(e){return e()}))}).then(function(){return e.method.close(e._state)})}},get type(){return this.method.type},get isClosed(){return this.closed}};var it=i(89053);function ii(){}let io={persister:function({storage:e,key:t="REACT_QUERY_OFFLINE_CACHE",throttleTime:i=1e3,serialize:o=JSON.stringify,deserialize:n=JSON.parse,retry:r}){if(e){let a=i=>{try{e.setItem(t,o(i));return}catch(e){return e}};return{persistClient:function(e,t=100){let i,o=null;return function(...n){i=n,null===o&&(o=setTimeout(()=>{e(...i),o=null},t))}}(e=>{let t=e,i=a(t),o=0;for(;i&&t;)o++,(t=r?.({persistedClient:t,error:i,errorCount:o}))&&(i=a(t))},i),restoreClient:()=>{let i=e.getItem(t);if(i)return n(i)},removeClient:()=>{e.removeItem(t)}}}return{persistClient:ii,restoreClient:ii,removeClient:ii}}({storage:window.localStorage,key:"REACT_QUERY_OFFLINE_CACHE",serialize:JSON.stringify,deserialize:JSON.parse}),maxAge:864e5,buster:"",dehydrateOptions:{shouldDehydrateQuery:e=>"ai-models"!==e.queryKey[0]&&"selected-model"!==e.queryKey[0]&&"selected-tool"!==e.queryKey[0]&&"inspirational-gallery-item"!==e.queryKey[0]&&"ugc-request"!==e.queryKey[0]&&"success"===e.state.status}};var ir=function(e){let{children:t}=e,[i,o]=k.useState(!1);return k.useEffect(()=>{var e;let t,i;e={queryClient:it.Eh,...io},i=!1,tR(e).then(()=>{i||(t=function(e){let t=e.queryClient.getQueryCache().subscribe(t=>{tM(t.type)&&tz(e)}),i=e.queryClient.getMutationCache().subscribe(t=>{tM(t.type)&&tz(e)});return()=>{t(),i()}}(e))});let o=function({queryClient:e,broadcastChannel:t="tanstack-query",o
1ptions:i}){let o=!1,n=e=>{o=!0,e(),o=!1},r=new t5(t,{webWorkerSupport:!1,...i}),a=e.getQueryCache(),l=e.getQueryCache().subscribe(e=>{if(o)return;let{query:{queryHash:t,queryKey:i,state:n,observers:a}}=e;"updated"===e.type&&"success"===e.action.type&&r.postMessage({type:"updated",queryHash:t,queryKey:i,state:n}),"removed"===e.type&&a.length>0&&r.postMessage({type:"removed",queryHash:t,queryKey:i}),"added"===e.type&&r.postMessage({type:"added",queryHash:t,queryKey:i})});return r.onmessage=t=>{t?.type&&n(()=>{let{type:i,queryHash:o,queryKey:n,state:r}=t,l=a.get(o);if("updated"===i){if(l){l.setState(r);return}a.build(e,{queryKey:n,queryHash:o},r)}else if("removed"===i)l&&a.remove(l);else if("added"===i){if(l){l.setState(r);return}a.build(e,{queryKey:n,queryHash:o},r)}})},()=>{l(),r.close()}}({queryClient:it.Eh,broadcastChannel:"bith-query"});return()=>{null==o||o()}},[]),(0,_.jsxs)(tm.aH,{client:it.Eh,children:[t,!1]})};function ia(){return(ia=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}var il=["keyOverride"],is={templateTitle:"",noindex:!1,nofollow:!1,defaultOpenGraphImageWidth:0,defaultOpenGraphImageHeight:0,defaultOpenGraphVideoWidth:0,defaultOpenGraphVideoHeight:0},id=function(e,t,i){void 0===t&&(t=[]);var o=void 0===i?{}:i,n=o.defaultWidth,r=o.defaultHeight;return t.reduce(function(t,i,o){return t.push(k.createElement("meta",{key:"og:"+e+":0"+o,property:"og:"+e,content:i.url})),i.alt&&t.push(k.createElement("meta",{key:"og:"+e+":alt0"+o,property:"og:"+e+":alt",content:i.alt})),i.secureUrl&&t.push(k.createElement("meta",{key:"og:"+e+":secure_url0"+o,property:"og:"+e+":secure_url",content:i.secureUrl.toString()})),i.type&&t.push(k.createElement("meta",{key:"og:"+e+":type0"+o,property:"og:"+e+":type",content:i.type.toString()})),i.width?t.push(k.createElement("meta",{key:"og:"+e+":width0"+o,property:"og:"+e+":width",content:i.width.toString()})):n&&t.push(k.createElement("meta",{key:"og:"+e+":width0"+o,property:"og:"+e+":width",content:n.toString()})),i.height?t.push(k.createElement("meta",{key:"og:"+e+":height"+o,property:"og:"+e+":height",content:i.height.toString()})):r&&t.push(k.createElement("meta",{key:"og:"+e+":height"+o,property:"og:"+e+":height",content:r.toString()})),t},[])},iu=function(e){var t,i,o,n,r,a=[];e.titleTemplate&&(is.templateTitle=e.titleTemplate);var l="";e.title?(l=e.title,is.templateTitle&&(l=is.templateTitle.replace(/%s/g,function(){return l}))):e.defaultTitle&&(l=e.defaultTitle),l&&a.push(k.createElement("title",{key:"title"},l));var s=e.noindex||is.noindex||e.dangerouslySetAllPagesToNoIndex,d=e.nofollow||is.nofollow||e.dangerouslySetAllPagesToNoFollow,u="";if(e.robotsProps){var c=e.robotsProps,p=c.nosnippet,m=c.maxSnippet,h=c.maxImagePreview,f=c.maxVideoPreview,v=c.noarchive,g=c.noimageindex,y=c.notranslate,b=c.unavailableAfter;u=(p?",nosnippet":"")+(m?",max-snippet:"+m:"")+(h?",max-image-preview:"+h:"")+(v?",noarchive":"")+(b?",unavailable_after:"+b:"")+(g?",noimageindex":"")+(f?",max-video-preview:"+f:"")+(y?",notranslate":"")}if(s||d?(e.dangerouslySetAllPagesToNoIndex&&(is.noindex=!0),e.dangerouslySetAllPagesToNoFollow&&(is.nofollow=!0),a.push(k.createElement("meta",{key:"robots",name:"robots",content:(s?"noindex":"index")+","+(d?"nofollow":"follow")+u}))):a.push(k.createElement("meta",{key:"robots",name:"robots",content:"index,follow"+u})),e.description&&a.push(k.createElement("meta",{key:"description",name:"description",content:e.description})),e.themeColor&&a.push(k.createElement("meta",{key:"theme-color",name:"theme-color",content:e.themeColor})),e.mobileAlternate&&a.push(k.createElement("link",{rel:"alternate",key:"mobileAlternate",media:e.mobileAlternate.media,href:e.mobileAlternate.href})),e.languageAlternates&&e.languageAlternates.length>0&&e.languageAlternates.forEach(function(e){a.push(k.createElement("link",{rel:"alternate",key:"languageAlternate-"+e.hrefLang,hrefLang:e.hrefLang,href:e.href}))}),e.twitter&&(e.twitter.cardType&&a.push(k.createElement("meta",{key:"twitter:card",name:"twitter:card",content:e.twitter.cardType})),e.twitter.site&&a.push(k.createElement("meta",{key:"twitter:site",name:"twitter:site",content:e.twitter.site})),e.twitter.handle&&a.push(k.createElement("meta",{key:"twitter:creator",name:"twitter:creator",content:e.twitter.handle}))),e.facebook&&e.facebook.appId&&a.push(k.createElement("meta",{key:"fb:app_id",property:"fb:app_id",content:e.facebook.appId})),(null!=(t=e.openGraph)&&t.title||l)&&a.push(k.createElement("meta",{key:"og:title",property:"og:title",content:(null==(n=e.openGraph)?void 0:n.title)||l})),(null!=(i=e.openGraph)&&i.description||e.description)&&a.push(k.createElement("meta",{key:"og:description",property:"og:description",content:(null==(r=e.openGraph)?void 0:r.description)||e.description})),e.openGraph){if((e.openGraph.url||e.canonical)&&a.push(k.createElement("meta",{key:"og:url",property:"og:url",content:e.openGraph.url||e.canonical})),e.openGraph.type){var A=e.openGraph.type.toLowerCase();a.push(k.createElement("meta",{key:"og:type",property:"og:type",content:A})),"profile"===A&&e.openGraph.profile?(e.openGraph.profile.firstName&&a.push(k.createElement("meta",{key:"profile:first_name",property:"profile:first_name",content:e.openGraph.profile.firstName})),e.openGraph.profile.lastName&&a.push(k.createElement("meta",{key:"profile:last_name",property:"profile:last_name",content:e.openGraph.profile.lastName})),e.openGraph.profile.username&&a.push(k.createElement("meta",{key:"profile:username",property:"profile:username",content:e.openGraph.profile.username})),e.openGraph.profile.gender&&a.push(k.createElement("meta",{key:"profile:gender",property:"profile:gender",content:e.openGraph.profile.gender}))):"book"===A&&e.openGraph.book?(e.openGraph.book.authors&&e.openGraph.book.authors.length&&e.openGraph.book.authors.forEac
1h(function(e,t){a.push(k.createElement("meta",{key:"book:author:0"+t,property:"book:author",content:e}))}),e.openGraph.book.isbn&&a.push(k.createElement("meta",{key:"book:isbn",property:"book:isbn",content:e.openGraph.book.isbn})),e.openGraph.book.releaseDate&&a.push(k.createElement("meta",{key:"book:release_date",property:"book:release_date",content:e.openGraph.book.releaseDate})),e.openGraph.book.tags&&e.openGraph.book.tags.length&&e.openGraph.book.tags.forEach(function(e,t){a.push(k.createElement("meta",{key:"book:tag:0"+t,property:"book:tag",content:e}))})):"article"===A&&e.openGraph.article?(e.openGraph.article.publishedTime&&a.push(k.createElement("meta",{key:"article:published_time",property:"article:published_time",content:e.openGraph.article.publishedTime})),e.openGraph.article.modifiedTime&&a.push(k.createElement("meta",{key:"article:modified_time",property:"article:modified_time",content:e.openGraph.article.modifiedTime})),e.openGraph.article.expirationTime&&a.push(k.createElement("meta",{key:"article:expiration_time",property:"article:expiration_time",content:e.openGraph.article.expirationTime})),e.openGraph.article.authors&&e.openGraph.article.authors.length&&e.openGraph.article.authors.forEach(function(e,t){a.push(k.createElement("meta",{key:"article:author:0"+t,property:"article:author",content:e}))}),e.openGraph.article.section&&a.push(k.createElement("meta",{key:"article:section",property:"article:section",content:e.openGraph.article.section})),e.openGraph.article.tags&&e.openGraph.article.tags.length&&e.openGraph.article.tags.forEach(function(e,t){a.push(k.createElement("meta",{key:"article:tag:0"+t,property:"article:tag",content:e}))})):("video.movie"===A||"video.episode"===A||"video.tv_show"===A||"video.other"===A)&&e.openGraph.video&&(e.openGraph.video.actors&&e.openGraph.video.actors.length&&e.openGraph.video.actors.forEach(function(e,t){e.profile&&a.push(k.createElement("meta",{key:"video:actor:0"+t,property:"video:actor",content:e.profile})),e.role&&a.push(k.createElement("meta",{key:"video:actor:role:0"+t,property:"video:actor:role",content:e.role}))}),e.openGraph.video.directors&&e.openGraph.video.directors.length&&e.openGraph.video.directors.forEach(function(e,t){a.push(k.createElement("meta",{key:"video:director:0"+t,property:"video:director",content:e}))}),e.openGraph.video.writers&&e.openGraph.video.writers.length&&e.openGraph.video.writers.forEach(function(e,t){a.push(k.createElement("meta",{key:"video:writer:0"+t,property:"video:writer",content:e}))}),e.openGraph.video.duration&&a.push(k.createElement("meta",{key:"video:duration",property:"video:duration",content:e.openGraph.video.duration.toString()})),e.openGraph.video.releaseDate&&a.push(k.createElement("meta",{key:"video:release_date",property:"video:release_date",content:e.openGraph.video.releaseDate})),e.openGraph.video.tags&&e.openGraph.video.tags.length&&e.openGraph.video.tags.forEac
1h(function(e,t){a.push(k.createElement("meta",{key:"video:tag:0"+t,property:"video:tag",content:e}))}),e.openGraph.video.series&&a.push(k.createElement("meta",{key:"video:series",property:"video:series",content:e.openGraph.video.series})))}e.defaultOpenGraphImageWidth&&(is.defaultOpenGraphImageWidth=e.defaultOpenGraphImageWidth),e.defaultOpenGraphImageHeight&&(is.defaultOpenGraphImageHeight=e.defaultOpenGraphImageHeight),e.openGraph.images&&e.openGraph.images.length&&a.push.apply(a,id("image",e.openGraph.images,{defaultWidth:is.defaultOpenGraphImageWidth,defaultHeight:is.defaultOpenGraphImageHeight})),e.defaultOpenGraphVideoWidth&&(is.defaultOpenGraphVideoWidth=e.defaultOpenGraphVideoWidth),e.defaultOpenGraphVideoHeight&&(is.defaultOpenGraphVideoHeight=e.defaultOpenGraphVideoHeight),e.openGraph.videos&&e.openGraph.videos.length&&a.push.apply(a,id("video",e.openGraph.videos,{defaultWidth:is.defaultOpenGraphVideoWidth,defaultHeight:is.defaultOpenGraphVideoHeight})),e.openGraph.audio&&a.push.apply(a,id("audio",e.openGraph.audio)),e.openGraph.locale&&a.push(k.createElement("meta",{key:"og:locale",property:"og:locale",content:e.openGraph.locale})),(e.openGraph.siteName||e.openGraph.site_name)&&a.push(k.createElement("meta",{key:"og:site_name",property:"og:site_name",content:e.openGraph.siteName||e.openGraph.site_name}))}return e.canonical&&a.push(k.createElement("link",{rel:"canonical",href:e.canonical,key:"canonical"})),e.additionalMetaTags&&e.additionalMetaTags.length>0&&e.additionalMetaTags.forEach(function(e){var t,i,o=e.keyOverride,n=function(e,t){if(null==e)return{};var i,o,n={},r=Object.keys(e);for(o=0;o<r.length;o++)i=r[o],t.indexOf(i)>=0||(n[i]=e[i]);return n}(e,il);a.push(k.createElement("meta",ia({key:"meta:"+(null!=(t=null!=(i=null!=o?o:n.name)?i:n.property)?t:n.httpEquiv)},n)))}),null!=(o=e.additionalLinkTags)&&o.length&&e.additionalLinkTags.forEach(function(e){var t;a.push(k.createElement("link",ia({key:"link"+(null!=(t=e.keyOverride)?t:e.href)+e.rel},e)))}),a},ic=function(e){return k.createElement(E(),null,iu(e))},ip=function(e){var t=e.title,i=e.themeColor,o=e.noindex,n=void 0!==o&&o,r=e.nofollow,a=e.robotsProps,l=e.description,s=e.canonical,d=e.openGraph,u=e.facebook,c=e.twitter,p=e.additionalMetaTags,m=e.titleTemplate,h=e.defaultTitle,f=e.mobileAlternate,v=e.languageAlternates,g=e.additionalLinkTags,y=e.useAppDir;return k.createElement(k.Fragment,null,void 0!==y&&y?iu({title:t,themeColor:i,noindex:n,nofollow:r,robotsProps:a,description:l,canonical:s,facebook:u,openGraph:d,additionalMetaTags:p,twitter:c,titleTemplate:m,defaultTitle:h,mobileAlternate:f,languageAlternates:v,additionalLinkTags:g}):k.createElement(ic,{title:t,themeColor:i,noindex:n,nofollow:r,robotsProps:a,description:l,canonical:s,facebook:u,openGraph:d,additionalMetaTags:p,twitter:c,titleTemplate:m,defaultTitle:h,mobileAlternate:f,languageAlternates:v,additionalLinkTags:g}))};RegExp("["+Object.keys(Object.freeze({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&apos;"})).join("")+"]","g");var im=e=>{let{SEO:t}=e;return(0,_.jsx)(ip,{title:"Bith.ai".concat(""," ").concat((null==t?void 0:t.title)?" | ".concat(null==t?void 0:t.title.substring(0,56)):""),description:(null==t?void 0:t.description)?null==t?void 0:t.description:"Bith.ai",canonical:(null==t?void 0:t.canonical)?null==t?void 0:t.canonical:"".concat((null==t?void 0:t.url)?null==t?void 0:t.url:"https://bith.ai/"),openGraph:{url:"".concat((null==t?void 0:t.url)?null==t?void 0:t.url:"https://bith.ai/"),title:"Bith.ai ".concat((null==t?void 0:t.title)?" | ".concat(null==t?void 0:t.title.substring(0,56)):""),description:"".concat((null==t?void 0:t.description)?null==t?void 0:t.description:"كن صانع محتوى بسهولة باستخدام أدوات المونتاج والتعديل المجاني للفيديوهات."),images:[{url:(null==t?void 0:t.image)||"".concat(F.TU,"/bith-logo.png"),width:290,height:290,type:"",alt:(null==t?void 0:t.image)||"".concat(F.TU,"/bith-logo.png")}],site_name:"Bith.tv"},twitter:{handle:"@BithTvOfficial",site:"".concat((null==t?void 0:t.url)?"".concat(null==t?void 0:t.url):""),cardType:"summary_large_image"},languageAlternates:[{href:"".concat("https://bith.ai/","ar"),hrefLang:"ar"}],additionalMetaTags:[{name:"keywords",content:null==t?void 0:t.keywords}]})},ih=i(46321),iv=i(5405),ig=i(45127);let iy=iv.ZP.div.withConfig({componentId:"sc-1e4c45c1-0"})(["width:40px;height:40px;flex-shrink:0;@media (max-width:1023px){width:32px;height:32px;}"]);var ib=e=>{let{className:t=""}=e;
1return(0,_.jsx)(iy,{className:t,"aria-hidden":!0,children:(0,_.jsx)(ih.Z,{src:"/icons/auth/logo-mark-dark.svg",width:"100%",height:"100%"})})};let iA=iv.ZP.div.withConfig({componentId:"sc-a532cf4c-0"})(['width:48px;height:48px;flex-shrink:0;border-radius:10px;[data-theme="light"] &{box-shadow:0px 4px 12px rgba(0,0,0,0.08);}@media (min-width:1024px){display:none;}']);var ix=()=>(0,_.jsx)(iA,{"aria-hidden":!0,children:(0,_.jsx)(ih.Z,{src:"/icons/auth/logo-mark-dark.svg",width:"100%",height:"100%"})});let iw=ez()(()=>i.e(45846).then(i.bind(i,45846)),{loadableGenerated:{webpack:()=>[45846]},ssr:!1}),i_=iv.ZP.div.withConfig({componentId:"sc-8d8071aa-0"})(['display:flex;flex-direction:column;height:100dvh;max-height:100dvh;overflow:hidden;background:var(--primary-color);padding:0;@supports not (height:100dvh){height:100vh;max-height:100vh;}[data-theme="light"] &{background:#f6f6f6;}@media (min-width:1024px){flex-direction:row;gap:72px;padding:40px;[data-theme="light"] &{background:var(--primary-color);}}']),iS=iv.ZP.div.withConfig({componentId:"sc-8d8071aa-1"})(["display:flex;flex:1;flex-direction:column;min-height:0;min-width:0;width:100%;position:relative;overflow:hidden;"]),iC=iv.ZP.div.withConfig({componentId:"sc-8d8071aa-2"})(['display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:8px;background:rgba(255,255,255,0.03);transition:background-color 0.2s ease;[data-theme="light"] &{background:rgba(0,0,0,0.03);}@media (max-width:1023px){width:32px;height:32px;[data-theme="light"] &{background:var(--white);}}']),ik=iv.ZP.div.withConfig({componentId:"sc-8d8071aa-3"})(["position:absolute;top:16px;inset-inline:16px;z-index:10;display:flex;align-items:center;justify-content:space-between;@media (min-width:1024px){position:static;width:100%;flex-shrink:0;}"]),iT=iv.ZP.div.withConfig({componentId:"sc-8d8071aa-4"})(["display:none;@media (min-width:1024px){display:block;}"]),iE=iv.ZP.div.withConfig({componentId:"sc-8d8071aa-5"})(["position:relative;z-index:1;display:flex;flex:1 1 auto;flex-direction:column;min-height:0;width:100%;padding:64px 16px 32px;overflow-x:hidden;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;@media (min-width:1024px){padding:0;overflow:visible;align-items:center;justify-content:center;}"]),iP=iv.ZP.div.withConfig({componentId:"sc-8d8071aa-6"})(["display:flex;flex-direction:column;align-items:center;gap:40px;width:100%;max-width:400px;margin:auto;@media (min-width:1024px){gap:0;max-width:none;margin:0;}"]),iI=iv.ZP.div.withConfig({componentId:"sc-8d8071aa-7"})(["display:none;@media (min-width:1024px){display:block;position:relative;width:48%;max-width:656px;flex:0 0 auto;align-self:stretch;min-height:0;}"]),iD=()=>{let[e,t]=k.useState(!1);return k.useEffect(()=>{let e=window.matchMedia("(min-width: 1024px)"),i=()=>t(e.matches);return i(),e.addEventListener("change",i),()=>e.removeEventListener("change",i)},[]),e};var iO=(0,ig.Z)(e=>{let{getDirection:t}=k.useContext(eB.AZ),i=(0,eL.useRouter)(),o=i.pathname.includes(F.Z6.VERIFICATION)||i.pathname.includes("/help/verification"),n=iD();return k.useEffect(()=>{let{style:e}=document.documentElement,{style:t}=document.body,i=e.overflow,o=t.overflow,n=t.height;return e.overflow="hidden",t.overflow="hidden",t.height="100%",()=>{e.overflow=i,t.overflow=o,t.height=n}},[]),(0,_.jsxs)(i_,{dir:t,"data-auth-flow":"",children:[n?(0,_.jsx)(iI,{children:(0,_.jsx)(iw,{})}):null,(0,_.jsxs)(iS,{children:[(0,_.jsxs)(ik,{children:[o?(0,_.jsx)("div",{className:"w-10 h-10","aria-hidden":!0}):(0,_.jsx)("button",{type:"button",id:"back-to-previous","aria-label":"Back",onClick:e=>{if(e.preventDefault(),window.history.length>1){i.back();return}let t=i.query.redirectTo,o=Array.isArray(t)?t[0]:t;if("string"==typeof o&&o.startsWith("/")&&!o.startsWith("//")){i.push(o);return}i.push(F.P2.HOME)},className:"p-0 border-0 bg-transparent cursor-pointer",children:(0,_.jsx)(iC,{children:(0,_.jsx)(ih.Z,{src:t===F.H7.EN.dir?"/icons/auth/arrow-left-02.svg":"/icons/auth/arrow-right-02.svg",width:"16px",height:"16px",color:"var(--custom-white)",stroke:"var(--custom-white)",fill:"none"})})}),(0,_.jsx)(iT,{children:(0,_.jsx)(ib,{})})]}),(0,_.jsx)(iE,{children:(0,_.jsxs)(iP,{children:[(0,_.jsx)(ix,{}),(0,_.jsx)("main",{role:"main",className:"w-full flex items-start justify-center",children:e.children})]})})]})]})}),iN=i(87251),ij=i(41664),iM=i.n(ij),iR=i(30381),iz=i.n(iR);let iL=iv.ZP.span.withConfig({componentId:"sc-88be24c3-0"})(['font-weight:500;font-size:12px;color:var(--text-shade-2);[data-theme="light"] &{color:#929292;}']),iV=iv.ZP.span.withConfig({componentId:"sc-88be24c3-1"})(["color:var(--ph-color);transition:color 0.3s ease;font-weight:500;font-size:12px;&:hover{color:var(--secondary-color);}"]);var iF=()=>{let e=(0,iN.Z)("footerLayout"),{mode:t}=(0,I.v9)(e=>e.Theme);return(0,_.jsx)("div",{className:"relative pb-6 px-4 md:px-0 mt-10",children:(0,_.jsx)("footer",{className:"rounded-2xl mx-auto px-6 relative z-10",children:(0,_.jsxs)("div",{className:"grid md:grid-cols-3 gap-14",children:[(0,_.jsxs)("div",{className:"flex items-center justify-center md:justify-start gap-3",children:[(0,_.jsx)("a",{href:"https://elevenlabs.io/text-to-speech",target:"_blank",className:"flex items-center gap-3","aria-label":"elevenlabs text to speech",children:(0,_.jsx)("img",{src:"light"===t?"/icons/elevenlaps-black.svg":"/icons/eleven-laps.svg",alt:"Speech to text",loading:"lazy",style:{width:"110px",height:"20px"}})}),(0,_.jsx)("a",{href:"https://deepgram.com/",target:"_blank",className:"flex items-center gap-3",children:(0,_.jsx)("img",{src:"light"===t?"/icons/deepgram-black.svg":"/icons/deepgram.svg",alt:"Speech to text",loading:"lazy",style:{width:"87px",height:"20px"}})}),(0,_.jsx)("a",{href:"https://runwayml.com",target:"_blank",className:"flex items-center gap-3","aria-label":"runwayml",children:(0,_.jsx)("img",{src:"light"===t?"/powered-by-icons/Runway_Black_Logo_SVG.svg":"/powered-by-icons/Runway_White_Logo_SVG.svg",alt:"image generation ai",loading:"lazy",style:{width:"72px",height:"16px"}})})]}),(0,_.jsxs)(iL,{className:"block text-center",children:[e.rights," ",iz()().format("YYYY")]}),(0,_.jsxs)("div",{className:"flex gap-3 md:gap-4 items-center justify-center",children:[(0,_.jsx)(iM(),{href:"/learn",prefetch:!1,children:(0,_.jsx)(iV,{children:e.help.learn})}),(0,_.jsx)(iM(),{href:"/tools",prefetch:!1,children:(0,_.jsx)(iV,{children:e.help.tools})}),(0,_.jsx)(iM(),{href:"/faqs",prefetch:!1,children:(0,_.jsx)(iV,{children:e.help.faqs})}),(0,_.jsx)(iM(),{href:"/help/terms-and-conditions",prefetch:!1,children:(0,_.jsx)(iV,{children:e.links.terms})}),(0,_.jsx)(iM(),{href:"/help/privacy-policy",prefetch:!1,children:(0,_.jsx)(iV,{children:e.links.privacy})})]})]})})})};let iU=iv.ZP.div.withConfig({componentId:"sc-149569e0-0"}
1)(["height:100%;"]);var iG=e=>{let{getDirection:t}=k.useContext(eB.AZ),i=k.useRef();return(0,_.jsx)(iU,{className:"w-full h-full ".concat(e.className||""),id:"layoutWrapper",dir:t,ref:i,style:{height:"calc(100%-41px)"},children:e.children})},iB=e=>{let{mode:t}=(0,I.v9)(e=>e.Theme),{noRedirect:i,logoPlace:o}=e;return i?(0,_.jsxs)("div",{className:"relative ".concat(e.className),children:[(0,_.jsx)(ih.Z,{src:"light"==t?"/icons/new-english-logo-light-mode.svg":"/icons/new-english-logo.svg",height:e.height||"38px",width:(null==e?void 0:e.width)||"122.39px"}),(0,_.jsx)("div",{className:"absolute top-0 right-0 bottom-0 left-0",onDragStart:e=>e.preventDefault()})]}):(null==e?void 0:e.redirectOnClick)?(0,_.jsxs)("div",{className:"relative cursor-pointer flex items-baseline ".concat(e.className),onDragStart:e=>e.preventDefault(),onClick:null==e?void 0:e.redirectOnClick,role:"button",children:[(0,_.jsx)(ih.Z,{src:"light"==t?"/icons/new-english-logo-light-mode.svg":"/icons/new-english-logo.svg",height:e.height||"38px",width:(null==e?void 0:e.width)||"122.39px"}),(0,_.jsx)("div",{className:"absolute top-0 right-0 bottom-0 left-0",onDragStart:e=>e.preventDefault()})]}):(0,_.jsx)(iM(),{href:e.link||"/",className:"cursor-pointer flex items-baseline ".concat(e.className),"aria-label":"BithAI Home",onDragStart:e=>e.preventDefault(),children:(0,_.jsxs)("div",{className:"relative",children:[(0,_.jsx)(ih.Z,{src:"light"==t?"/icons/new-english-logo-light-mode.svg":"/icons/new-english-logo.svg",height:e.height||"38px",width:(null==e?void 0:e.width)||"122.39px"}),(0,_.jsx)("div",{className:"absolute top-0 right-0 bottom-0 left-0",onDragStart:e=>e.preventDefault()})]})})},iZ=i(54482),iq=i(26700),iH=i(10847),iW=i(91167),iY=i(63105),iK=i.n(iY),iQ=i(35161),i$=i.n(iQ),iX=i(73935),iJ=i(57634),i0=i(82821),i1=i(46485),i2=i(13246);let i3=null;var i4=e=>{let{isMediaAssets:t}=e,i=(0,I.v9)(e=>null==e?void 0:e.VideoState),o=(t,i)=>{i3=setInterval(async()=>{(0,i1.hn)(null==t?void 0:t.id,t=>{var i;(t&&(null==t?void 0:null===(i=t.uploadedFileInfo)||void 0===i?void 0:i.id)||!t)&&(clearInterval(i3),(null==e?void 0:e.done)&&(null==e||e.done()))},{store:i?"mediaAssets":"assets"})},2e3)};return k.useEffect(()=>(t?(0,i1.Lr)(e=>{let t=e.filter(e=>!(null==e?void 0:e.uploadCompleted));(null==t?void 0:t.length)&&o(t[0],!0)}):(null==i?void 0:i.id)&&(0,i1.hn)(null==i?void 0:i.id,e=>{e&&o(e)}),()=>{i3&&clearInterval(i3)}),[]),k.useEffect(()=>()=>{i3&&clearInterval(i3)},[]),(0,_.jsxs)("div",{className:"modal-container flex flex-col items-center justify-center",children:[(0,_.jsx)("div",{className:"w-14 h-14 rounded-full p-1 bg-accent flex items-center justify-center",children:(0,_.jsx)(i2.IEK,{className:"text-secondary",size:"85%"})}),(0,_.jsx)("div",{className:"mt-2 text-white-80 text-lg",children:"Uploading...."}),(0,_.jsx)("div",{className:"text-white-50 small-text",children:t?"Please wait we are uploading your media file":"Please wait we are uploading your file"}),(0,_.jsx)("div",{className:"mt-6 w-full flex flex-col items-center",children:(0,_.jsx)(i0.Z,{})})]})},i5=()=>{let e=(0,I.v9)(e=>{var t;return null==e?void 0:null===(t=e.Timeline)||void 0===t?void 0:t.duration}),{language:t}=k.useContext(eB.AZ),[i,o]=k.useState(Boolean),n=(0,iN.Z)(),[r,a]=k.useState(Boolean),l=(0,I.I0)(),s=(0,I.v9)(e=>e.VideoState),d=(0,eL.useRouter)(),[,u]=k.useContext(eK.kn);k.useEffect(()=>{r&&(a(!1),m())},[r]);let c=()=>{u({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,_.jsx)(iJ.Z,{icon:(0,_.jsx)(ih.Z,{src:"/icons/limitations-icon.svg",fill:"var(--secondary-color)",width:"94.02px",height:"56px"}),title:n.advancedEditor.timeLine.limitationPopup.title,onOk:p,cancelText:n.advancedEditor.timeLine.limitationPopup.actions.cancel,okText:n.advancedEditor.timeLine.limitationPopup.actions.ok})}})},p=async()=>{l(Y.ZP.studioStoreVideo({...s,exported:!1})),o(!0);try{var e;await l(H.ZP.exportVideo()),d.push("/studio/create-video/".concat(null===(e=d.query)||void 0===e?void 0:e.videoId,"/publisher").concat(t===F.H7.AR.value?"?lang=ar":""))}catch(e){("pending-assets"===e.status||"pending-video"===e.status)&&u({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,_.jsx)(i4,{isMediaAssets:(null==e?void 0:e.status)==="pending-assets",done:()=>a(!0)})}})}finally{o(!1)}},m=async()=>{e>F.Gz?c():(null==s?void 0:s.id)&&p()};return(0,_.jsxs)("div",{className:"w-full",children:[(0,_.jsx)("div",{className:"outline-transparent outline-secondary border-transparent outline-none outline-secondary-2 border-secondary-2 bg-transparent bg-secondary-2 hidden"}),(0,_.jsxs)(iW.Z,{size:"small",type:"secondary",className:"w-full ".concat(i?"relative":""),style:{zIndex:i?"999":""},onClick:m,disabled:i,"data-testid":"exportButton",children:[i?(0,_.jsx)(_.Fragment,{children:(0,_.jsx)(i0.Z,{size:"xSmall"})}):null,(0,_.jsx)(ih.Z,{src:"/icons/export.svg",width:"24px",height:"24px",fill:"#fff"}),(0,_.jsx)("span",{className:"small-text",children:n.studio.createVideo.headerActions.publish})]}),i?(0,_.jsx)("div",{className:"back-drop"}):null]})},i6=i(83910),i8=i(85242),i9=i(93046);let i7=iv.ZP.div.withConfig({componentId:"sc-2bbbb0da-0"})(["width:320px;padding:24px;display:flex;flex-direction:column;gap:24px;position:absolute;top:70px;z-index:99999;background-color:var(--shade);border:1px solid var(--secondary-color);border-radius:8px;",""],e=>"\n        left: ".concat("".concat(null==e?void 0:e.$rightPosition,"px")||0,";\n    ")),oe=iv.ZP.div.withConfig({componentId:"sc-2bbbb0da-1"})(["position:relative;display:flex;justify-content:center;align-items:center;padding:4px 10px;cursor:pointer;transition:all 0.3s;height:34px;background:",";"," border-radius:9999px;flex:1;"],iH.theme.extend.colors["shade-2"],e=>e.$active?"\n    border: 2px solid ".concat(iH.theme.extend.colors["shade-2"],';\n    &:before {\n      content: "";\n        position: absolute;\n        background: var(--secondary-color);\n        z-index: 0;\n        left: -2px;\n        top: -2px;\n        right: -2px;\n        border-radius: 9999px;\n        bottom: -2px;\n        transition: all 300ms;\n    }\n    \n    &:after {\n      content: "";\n      position: absolute;\n      top: 0;\n      left: 0;\n      right: 0;\n      bottom: 0;\n      z-index: 0;\n      border-radius: 9999px;\n      background: var(--shade-2);\n    }\n'):"\n  border: 2px solid ".concat(iH.theme.extend.colors.accent,";\n  &:hover {\n    border: 2px solid var(--secondary-color)\n  }\n  \n"));var ot=e=>{var t;let{handleClose:i}=e,o=(0,iN.Z)(),n=(0,I.I0)(),r=document.querySelector("#exportButton"),a=null==r?void 0:r.getBoundingClientRect(),{mode:l}=(0,I.v9)(e=>e.Theme),{language:s,getDirection:d}=k.useContext(eB.AZ),u=(0,I.v9)(e=>{var t,i,o;return null==e?void 0:null===(o=e.Auth)||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:null===(t=i.subscription)||void 0===t?void 0:t.is_subscribed}),{saveValue:c}=k.useContext(eF.YW),p=(0,I.v9)(e=>{var t;return null==e?void 0:null===(t=e.EditorState)||void 0===t?void 0:t.generalDetails}),[m,h]=k.useContext(eK.kn),f=e=>{let{name:t,value:o,isPro:r}=e;if(r&&!u){i(),h({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,_.jsx)(i9.ZP,{trigger_source:"export_settings"})}});return}p[t]!==o&&n(H.ZP.updateGeneralData({name:t,value:o},e=>{c(e)}))};return iX.createPortal((0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(i7,{$rightPosition:s===F.H7.AR.value?null==a?void 0:a.left:(null==a?void 0:a.left)-320+(null==a?void 0:a.width),children:[(0,_.jsx)("span",{className:"".concat("light"===l?"text-black":"text-white-70","  heading-6"),children:o.studio.createVideo.headerActions.exportSettings.title}),(0,_.jsxs)("div",{children:[(0,_.jsx)("span",{className:"small-text text-white-80",children:o.advancedEditor.panels.general.quality}),(0,_.jsx)("div",{className:"flex items-center rounded-md gap-2 mt-2",children:F.h4.map((e,t)=>(null==e?void 0:e.value)!=="auto"?(0,_.jsxs)(oe,{$active:(null==p?void 0:p.quality)===(null==e?void 0:e.value),onClick:()=>f({name:"quality",value:null==e?void 0:e.value,isPro:null==e?void 0:e.isPro}),"data-name":"Editor change video quality",children:[(0,_.jsxs)("p",{className:"x-small-text text-white-80 z-10",children:[e.value,"p"]}),(null==e?void 0:e.isPro)&&(0,_.jsx)("div",{className:"absolute right-2 flex items-center z-10",children:(0,_.jsx)(i8.Z,{type:"secondary",size:"xs-small",className:"flex items-center justify-center",children:(0,_.jsx)(ih.Z,{src:"/icons/crown-outlined.svg",fill:iH.theme.extend.colors.white,width:"12px",height:"10px"})})})]},t):null)})]}),(0,_.jsxs)("div",{className:" relative",children:[(null==p?void 0:p.quality)==="auto"?(0,_.jsx)("div",{className:"absolute top-0 right-0 bottom-0 left-0"}):null,(0,_.jsx)("span",{className:"small-text text-white-80",children:o.advancedEditor.panels.general.fps}),(0,_.jsx)("div",{className:"flex items-center gap-2 mt-2",children:F.oc.map((e,t)=>(0,_.jsx)(oe,{$active:(null==p?void 0:p.fps)===(null==e?void 0:e.value)&&(null==p?void 0:p.quality)!=="auto",onClick:()=>f({name:"fps",value:null==e?void 0:e.value}),"data-name":"Editor change frames per seconds",children:(0,_.jsx)("p",{className:"x-small-text text-white-80 z-10",children:e.value})},t))})]}),(0,_.jsxs)("div",{className:"flex items-center justify-between",children:[(0,_.jsx)("span",{className:"small-text ".concat("light"===l?"text-black":"text-white-70"," "),children:o.advancedEditor.panels.general.settings}),(0,_.jsx)(i6.Z,{bgColor:iH.theme.extend.colors["shade-2"],defaultValue:(null==p?void 0:p.quality)==="auto",onChange:e=>{var t;return f({name:"quality",value:e?"auto":null===(t=F.h4[1])||void 0===t?void 0:t.value,isPro:!1})}})]}),(0,_.jsx)(i5,{})]}),(0,_.jsx)("div",{className:"fixed top-0 right-0 left-0 bottom-0 z-20",onClick:i})]}),null===(t=document)||void 0===t?void 0:t.body)},oi=()=>{k.useRef(null);let[e,t]=k.useState(!1),i=(0,iN.Z)();return(0,_.jsxs)("div",{className:"ml-auto",children:[(0,_.jsxs)(iW.Z,{size:"x-small",type:"secondary",onClick:()=>{t(!e)},style:{gap:8,padding:"8px 16px 8px 16px",height:36},id:"exportButton","data-textid":"exportOptions",children:[(0,_.jsx)(ih.Z,{src:"/icons/export.svg",width:"20px",height:"20px",fill:"#fff"}),(0,_.jsx)("span",{className:"x-small-text",children:i.studio.createVideo.headerActions.publish})]}),e&&(0,_.jsx)(ot,{handleClose:()=>{t(!1)}})]})},oo=i(45608);let on=e=>{let{preview:t,position:i}=e;return{width:(0,oo.k3)(i.width)?Number("".concat(i.width).replace("%",""))*(null==t?void 0:t.preview_width)/100:i.width,height:(0,oo.k3)(i.height)?Number(i.height.replace("%",""))*(null==t?void 0:t.preview_height)/100:i.height}};var or=()=>{let e=(0,I.I0)(),t=(0,I.v9)(e=>{var t;return null===(t=e.ResizerState)||void 0===t?void 0:t.isFocused}),i=(0,I.v9)(e=>{var t;return null===(t=e.EditorState)||void 0===t?void 0:t.layers}),o=(0,I.v9)(e=>{var t,i;return null===(i=e.EditorState)||void 0===i?void 0:null===(t=i.generalDetails)||void 0===t?void 0:t.preview}),n=(0,I.v9)(e=>{var t;return null===(t=e.ResizerState)||void 0===t?void 0:t.duration}),r=(0,I.v9)(e=>e.VideoState),a=(0,iN.Z)(),l=(0,eL.useRouter)(),{saveValue:s,resetPrevState:d}=k.useContext(eF.YW),u=async()=>{try{let h=iK()(i,{layerType:F.QP.VIDEO});if(null==h?void 0:h.length){var a,d,u,c,p,m;let s=[];i$()(i,e=>{var i,a,l,d;if((null==e?void 0:e.layerType)===F.QP.VIDEO){let o=(null==e?void 0:null===(i=e.duration)||void 0===i?void 0:i.from)||
10,d={from:o,to:o+(n.end-n.start)*(null==r?void 0:r.duration)/100},u={from:n.start,to:n.end};s.push({...h[0],withEdits:t,layerData:r,attributes:{volume:(null==e?void 0:null===(a=e.attributes)||void 0===a?void 0:a.volume)?null==e?void 0:null===(l=e.attributes)||void 0===l?void 0:l.volume:50},duration:{...d,trimmedDuration:u}})}else if([F.QP.VIDEOS,F.QP.CUSTOM_VIDEO,F.QP.IMAGE,F.QP.CUSTOM_IMAGE,F.QP.GIFS,F.QP.CUSTOM_GIFS].includes(null==e?void 0:e.layerType)){let t=on({preview:o,position:null==e?void 0:e.position});s.push({...e,position:{...null==e?void 0:e.position,x:"0%",y:null==e?void 0:null===(d=e.position)||void 0===d?void 0:d.y,...t}})}else s.push(e)});let f=[];if(((null===(a=h[0])||void 0===a?void 0:a.layerType)===F.QP.VIDEO||(null===(d=h[0])||void 0===d?void 0:d.layerType)===F.QP.VIDEOS||(null===(u=h[0])||void 0===u?void 0:u.layerType)===F.QP.CUSTOM_VIDEO)&&(null===(c=h[0])||void 0===c?void 0:c.subtitlesGenerated)){let t=await e(H.ZP.shapeTextTranscriptionDuration({transcription:null===(m=h[0])||void 0===m?void 0:null===(p=m.createdTranscription)||void 0===p?void 0:p.transcription,layerInfo:s[0]}));f=[...f=s.filter(e=>{var t;return(null==e?void 0:e.relatedLayerId)!==(null===(t=h[0])||void 0===t?void 0:t.id)}),...t]}else f=[...s];e(H.ZP.updateBulkLayers({layers:[...f]})),l.push("".concat(F.P2.CREATE_VIDEO_MAIN,"/").concat(null==r?void 0:r.id,"/editor/layers"))}else e(H.ZP.addLayer({withEdits:t,layerData:r,layerType:F.QP.VIDEO,level:await e(H.ZP.getLayerLevel({layerType:F.QP.VIDEO})),attributes:{volume:50},duration:{from:0,to:(n.end-n.start)*(null==r?void 0:r.duration)/100,trimmedDuration:{from:n.start,to:n.end}}},e=>{s(e)})),l.push("".concat(F.P2.CREATE_VIDEO_MAIN,"/").concat(null==r?void 0:r.id,"/editor/layers"))}catch(e){}};return k.useEffect(()=>()=>{d()},[]),(null==r?void 0:r.id)?(0,_.jsx)("div",{className:"flex items-center w-40 ml-auto",children:l.pathname===F.P2.CREATE_VIDEO_RESIZER?(0,_.jsx)(_.Fragment,{children:(0,_.jsxs)(iW.Z,{onClick:u,size:"x-small",type:"secondary",className:"ml-auto","data-testid":"continue",children:[(0,_.jsx)(ih.Z,{src:"/icons/scissor.svg",stroke:"#fff",width:"20px",height:"20px"}),(0,_.jsx)("span",{className:"x-small-text",children:a.studio.createVideo.headerActions.continueToEdit})]})}):[F.P2.CREATE_VIDEO_EDITOR,F.P2.CREATE_VIDEO_EDITOR_TABS].includes(l.pathname)?(0,_.jsx)(oi,{}):null}):null},oa=i(41614);let ol=iv.ZP.div.withConfig({componentId:"sc-7153be88-0"})(["width:25px;height:4px;border-radius:9999px;background-color:",";"],iH.theme.extend.colors["shade-2"]),os=iv.ZP.div.withConfig({componentId:"sc-7153be88-1"})(["display:flex;align-items:center;transition:opacity 300ms;",""],e=>e.active?"opacity: 1;":"opacity: 0.3;"),od=e=>{let{active:t,icon:i,label:o}=e;return(0,_.jsxs)(os,{active:t,children:[(0,_.jsx)(i8.Z,{type:t?"outline-gradient":"shade-2",size:"small",style:{cursor:"auto"},outlineGradientBg:iH.theme.extend.colors.shade,className:"flex items-center justify-center",children:i}),t&&(0,_.jsx)(oa.M,{className:"x-small-text ml-2",children:o})]})};var ou=()=>{let e=(0,iN.Z)("createVideo"),t=(0,eL.useRouter)(),{mode:i}=(0,I.v9)(e=>e.Theme),o=e=>Array.isArray(e)?e.includes(t.pathname):[e].includes(t.pathname);return(0,_.jsxs)("div",{className:"flex items-center",children:[(0,_.jsx)(od,{active:o(F.P2.CREATE_VIDEO_RESIZER),icon:(0,_.jsx)(ih.Z,{src:"/icons/maximize".concat(o(F.P2.CREATE_VIDEO_RESIZER)&&"dark"===i?"-gradient":o(F.P2.CREATE_VIDEO_RESIZER)&&"light"===i?"-secondary":"",".svg"),fill:"light"===i?"#878F97":"#fff",width:"16px",height:"16px",className:"z-10"}),label:e.resizer.title}),(0,_.jsx)(ol,{className:"mx-4"}),(0,_.jsx)(od,{active:o([F.P2.CREATE_VIDEO_EDITOR,F.P2.CREATE_VIDEO_EDITOR_TABS]),icon:o([F.P2.CREATE_VIDEO_EDITOR,F.P2.CREATE_VIDEO_EDITOR_TABS])?(0,_.jsx)(ih.Z,{src:"/icons/layer".concat(o([F.P2.CREATE_VIDEO_EDITOR,F.P2.CREATE_VIDEO_EDITOR_TABS])?"-gradient":"",".svg"),width:"16px",height:"16px",className:"z-10"}):(0,_.jsx)(ih.Z,{src:"/icons/layer.svg",fill:"light"===i?"#878F97":"#fff",stroke:"light"===i?"#878F97":"#fff",width:"16px",height:"16px",className:"z-10"}),label:e.editor.title}),(0,_.jsx)(ol,{className:"mx-4"}),(0,_.jsx)(od,{active:o(F.P2.CREATE_VIDEO_PUBLISHER),icon:(0,_.jsx)(ih.Z,{src:"/icons/send-2".concat(o(F.P2.CREATE_VIDEO_PUBLISHER)&&"dark"===i?"-gradient":o(F.P2.CREATE_VIDEO_PUBLISHER)&&"light"===i?"-secondary":"",".svg"),fill:"light"===i?"#878F97":"#fff",width:"16px",height:"16px",className:"z-10"}),label:e.publisher.title})]})},oc=i(3258),op=i(13311),om=i.n(op),oh=i(27361),of=i.n(oh),ov=i(41609),og=i.n(ov),oy=i(7654),ob=i.n(oy),oA=i(915),ox=i(9242),ow=i(363),o_=()=>{let{isVisible:e,isSaving:t}=(0,I.v9)(e=>e.EditTracker),{mode:i}=(0,I.v9)(e=>e.Theme),o=(0,iN.Z)();return(0,_.jsxs)(_.Fragment,{children:[e&&t&&(0,_.jsxs)("div",{className:"flex justify-center items-center gap-2 ",children:[(0,_.jsx)(ih.Z,{src:"light"===i?"/icons/cloud-change-secondary.svg":"/icons/cloud-change.svg",width:"20px",height:"20px"}),(0,_.jsx)("span",{className:"x-small-text text-white-50",children:o.editTracker.saving})]}),e&&!t&&(0,_.jsxs)("div",{className:"flex justify-center items-center gap-2",children:[(0,_.jsx)(ih.Z,{src:"light"===i?"/icons/cloud-add-secondary.svg":"/icons/cloud-add.svg",width:"20px",height:"20px"}),(0,_.jsx)("span",{className:"x-small-text text-white-50",children:o.editTracker.finishSaving})]})]})},oS=i(85518),oC=i(38715),ok=i(54178);let oT=iv.ZP.div.withConfig({componentId:"sc-64b69905-0"})(["padding:18px 32px;height:68px;position:relative;z-index:10;background:",";"],iH.theme.extend.colors.shade),oE=iv.ZP.div.withConfig({componentId:"sc-64b69905-1"})(["display:grid;grid-template-columns:1fr 1fr 1fr;margin:0 auto;height:100%;"]),oP=iv.ZP.div.withConfig({componentId:"sc-64b69905-2"})(["transition:all 0.3s;"]),oI=iv.ZP.div.withConfig({componentId:"sc-64b69905-3"})(["width:0px;height:30px;background-color:#fff;opacity:0.03;"]),oD=iv.ZP.div.withConfig({componentId:"sc-64b69905-4"})(["&:hover{& .icon-wrapper{background-color:",";transform:scale(1.2);}}"],iH.theme.extend.colors["shade-2"]);var oO=()=>{var e,t;let i=(0,I.I0)(),o=k.useRef(),{getDirection:n}=k.useContext(eB.AZ),{isLoggedIn:r}=k.useContext(eG.Vo),a=(0,I.v9)(e=>{var t;return null==e?void 0:null===(t=e.EditorState)||void 0===t?void 0:t.layers}),l=(0,I.v9)(e=>e.VideoState),s=(0,eL.useRouter)(),d=s.pathname.includes(F.P2.STUDIO_TOOLS),u=(0,iN.Z)(),[,c]=k.useContext(eK.kn),{getVideoAssets:p}=(0,ox.Z)(),{getVideoById:m,getVideoEdits:h}=(0,iq.Z)(),f=(0,I.v9)(e=>{var t;return null==e?void 0:null===(t=e.Shared)||void 0===t?void 0:t.fontFamilies}),v=(0,I.v9)(e=>{var t,i,o;return null==e?void 0:null===(o=e.Auth)||void 0===o?void 0:null===(i=o.user)||void 0===i?void 0:null===(t=i.subscription)||void 0===t?void 0:t.is_subscribed}),{saveValue:g}=k.useContext(eF.YW),{state:y}=(0,iZ.Z)(),b=()=>{var e;i(H.ZP.resetMainVideoParts()),s.push("/studio/create-video/".concat(null==s?void 0:null===(e=s.query)||void 0===e?void 0:e.videoId,"/resizer"))},A=()=>{(0,oC.JQ)("refreshAlertScriptMainVideo"),(0,i1.J7)(),i(ee.Z.clearUploadState()),s.push(F.P2.STUDIO_AI_MAIN)},x=()=>{c({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,_.jsx)(iJ.Z,{header:u.back.title,title:u.back.description,onOk:b,cancelText:u.global.cancel,okText:u.back.action})}})},w=()=>{c({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,_.jsx)(iJ.Z,{header:u.uploadNotCompleted.title,title:u.uploadNotCompleted.description,onOk:A,cancelText:u.global.cancel,okText:u.uploadNotCompleted.action})}})};k.useEffect(()=>(s.beforePopState(e=>{var t;let{as:i,url:o}=e,n=a.filter(e=>
1(null==e?void 0:e.layerType)===F.QP.VIDEO),[d]=null==o?void 0:o.split("?");if(!r){let e=s.locale||"en";return window.location.replace("default"===e?"/":"/".concat(e)),!1}return(null==l?void 0:l.uploadCompleted)&&(null==l?void 0:null===(t=l.uploadedFileInfo)||void 0===t?void 0:t.id)||[F.P2.CREATE_VIDEO_RESIZER,F.P2.CREATE_VIDEO_EDITOR,F.P2.CREATE_VIDEO_EDITOR_TABS].includes("".concat(d))?d!==F.P2.CREATE_VIDEO_RESIZER||!((null==n?void 0:n.length)>1)||(x(),s.replace(s.asPath),!1):(w(),s.replace(s.asPath),!1)}),()=>{s.beforePopState(e=>{let{as:t,url:i}=e;return!0})}),[a,null==l?void 0:l.uploadCompleted]);let S=e=>{let{options:t,value:i}=e;return om()(t,{value:i})||null},C=e=>{let{fileId:t,fileData:i}=e;return new Promise(async(e,o)=>{let{editor_data:n}=await h({videoId:t});if(n&&!og()(n)){var r,a,l,s,d,u,c,p,m,g,y,b,A;let t=S({options:F.h4,value:Number(null==n?void 0:n.quality)||"auto"}),o=S({options:F.oc,value:(null==n?void 0:n.quality)==="auto"?F.oc[0].value:Number(null==n?void 0:n.fps)||F.oc[0].value}),h=S({options:ok.ZP.outputEditorFormatOptions,value:(null==n?void 0:null===(r=n.aspect_ratio_converter)||void 0===r?void 0:r.aspect_ratio)||(null==i?void 0:i.aspectRatio)}),x=!og()(null==n?void 0:n.aspect_ratio_converter),w=of()(n,"main_video.0"),_={isFocused:x,outputSettings:{backgroundColor:(null==n?void 0:n.canvas_color)||"#000000",blured:(null==n?void 0:null===(a=n.aspect_ratio_converter)||void 0===a?void 0:a.is_blurred)!=="0",aspectRatio:h,fbs:o,quality:t},editorSettings:{inputBordersVisible:!0,outputBordersVisible:!0,faceCam:og()(null==n?void 0:n.aspect_ratio_converter)?S({options:ok.ZP.faceCamOptions,value:null}):(null==n?void 0:null===(l=n.aspect_ratio_converter)||void 0===l?void 0:l.is_face_cam_included)?{...S({options:ok.ZP.faceCamOptions,value:(null==n?void 0:null===(s=n.aspect_ratio_converter)||void 0===s?void 0:s.face_cam_type)||"rectangle"}),...(null==n?void 0:null===(d=n.aspect_ratio_converter)||void 0===d?void 0:d.face_cam_type)==="circle"?{strokeStyle:{...S({options:oA.ZP.getStrokeStyles(),value:null==n?void 0:null===(u=n.aspect_ratio_converter)||void 0===u?void 0:u.face_cam_stroke_type}),colors:[null==n?void 0:null===(c=n.aspect_ratio_converter)||void 0===c?void 0:c.face_cam_stroke_color_1,null==n?void 0:null===(p=n.aspect_ratio_converter)||void 0===p?void 0:p.face_cam_stroke_color_2].filter(e=>e)}}:{}}:S({options:ok.ZP.faceCamOptions,value:null})},layers:oA.ZP.shapeLoadedLayers({layersValues:x?null==n?void 0:n.aspect_ratio_converter:{},fileData:i,quality:t,isSubscribed:v}),duration:w?{start:100*((null==w?void 0:null===(m=w.trimming)||void 0===m?void 0:m.from)||0)/(null==i?void 0:i.duration),end:100*((null==w?void 0:null===(g=w.trimming)||void 0===g?void 0:g.to)||(null==i?void 0:i.duration))/(null==i?void 0:i.duration)}:q.x1,aspectRatioChanges:0,video:i,clientDimensions:{height:null==i?void 0:i.videoHeight,width:null==i?void 0:i.videoWidth},videoState:{playing:!0}},C=await H.ZP.shapeLoadedEdits({layers:(null==n?void 0:n.layers)||[],mainVideos:(null==n?void 0:null===(y=n.main_video)||void 0===y?void 0:y.length)?null==n?void 0:null===(b=n.main_video)||void 0===b?void 0:b.map(e=>({...e,layerType:F.QP.VIDEO})):[],sharedFonts:f,aspectRatio:h,preview:{preview_height:(null==n?void 0:n.preview_height)||(null==i?void 0:i.videoHeight),preview_width:(null==n?void 0:n.preview_width)||(null==i?void 0:i.videoWidth)},fileData:i,isFocused:x});e({resizer:_,editor:await {fileInputRef:null,layers:C,activeLayer:"layer-0",generalDetails:{quality:null==t?void 0:t.value,fps:null==o?void 0:o.value,canvasBgColor:(null==n?void 0:n.canvas_color)||"#000000",preview:{preview_height:(null==n?void 0:n.preview_height)||(null==i?void 0:i.videoHeight),preview_width:(null==n?void 0:n.preview_width)||(null==i?void 0:i.videoWidth)}},videosSubtitls:(null==n?void 0:null===(A=n.videosSubtitls)||void 0===A?void 0:A.length)?null==n?void 0:n.videosSubtitls.map(e=>{var t;return(null==e?void 0:null===(t=e.createdTranscription)||void 0===t?void 0:t.type)==="video"?{...e,...null==i?void 0:i.uploadedFileInfo}:e}):[]}})}else o({})})};return k.useLayoutEffect(()=>{var e;let t=null==s?void 0:null===(e=s.query)||void 0===e?void 0:e.videoId;oS.tq&&[F.P2.CREATE_VIDEO,F.P2.CREATE_VIDEO_RESIZER,F.P2.CREATE_VIDEO_EDITOR,F.P2.CREATE_VIDEO_EDITOR_TABS].includes(s.pathname)?s.replace(F.P2.
1STUDIO_AI_MAIN):((null==y?void 0:y.database)||(null==l?void 0:l.id)&&(null==y?void 0:y.database))&&(null==f?void 0:f.length)&&t&&(i(Y.ZP.studioStoreVideo({...l,isReady:!1})),i(X.Z.resetTimelineState()),(0,i1.hn)(ob()(Number(t))?t:Number(t),async e=>{var o,n,r,a;if(!e||(null==e?void 0:e.uploadCompleted)){if(!ob()(Number(t))||(null==e?void 0:null===(o=e.uploadedFileInfo)||void 0===o?void 0:o.id))try{let o=null==e?void 0:null===(n=e.uploadedFileInfo)||void 0===n?void 0:n.id,l=await m({videoId:o||t}),s=await (0,oc.NZ)(null==l?void 0:l.data),d={...null==s?void 0:s.fileMeta,id:null==l?void 0:null===(r=l.data)||void 0===r?void 0:r.id,uploadId:null==s?void 0:null===(a=s.fileMeta)||void 0===a?void 0:a.id,uploadCompleted:!0,uploadedFileInfo:null==l?void 0:l.data,previewLink:null==e?void 0:e.previewLink};await (0,i1.pp)(d);try{let e=await C({fileId:o||t,fileData:d});i(oA.ZP.loadResizerData(null==e?void 0:e.resizer)),i(H.ZP.loadEditorData(null==e?void 0:e.editor)),i(Y.ZP.studioStoreVideo({...d,isReady:!0})),g(null==e?void 0:e.editor)}catch(t){try{let t=S({options:ok.ZP.outputEditorFormatOptions,value:null==e?void 0:e.aspectRatio});i(oA.ZP.loadResizerData({...q.rH,layers:oA.ZP.loadStoredLayersPreferences({layers:q.rH.layers,aspectRatio:t}),outputSettings:{...q.rH.outputSettings,aspectRatio:t}})),i(Y.ZP.studioStoreVideo({...d,isReady:!0}))}catch(e){}}}catch(e){s.replace(F.P2.STUDIO_AI_MAIN)}else s.replace(F.P2.STUDIO_AI_MAIN)}else{let t=S({options:ok.ZP.outputEditorFormatOptions,value:null==e?void 0:e.aspectRatio});i(H.ZP.loadEditorData({...W,layers:[{layerData:e,layerType:F.QP.VIDEO,level:await i(H.ZP.getLayerLevel({layerType:F.QP.VIDEO})),id:"layer-0",order:0,attributes:{volume:50},duration:{from:0,to:null==e?void 0:e.duration}}]})),i(oA.ZP.loadResizerData({...q.rH,layers:oA.ZP.loadStoredLayersPreferences({layers:q.rH.layers,aspectRatio:t}),outputSettings:{...q.rH.outputSettings,aspectRatio:t}})),i(Y.ZP.studioStoreVideo({...e,isReady:!0}))}}))},[null==y?void 0:y.database,null==f?void 0:f.length,null==s?void 0:null===(e=s.query)||void 0===e?void 0:e.videoId]),k.useEffect(()=>{o&&(null==o?void 0:o.current)&&("/studio/create-video/[videoId]/resizer"===s.pathname?o.current.style.maxWidth="1250px":o.current.style.maxWidth&&(o.current.style.maxWidth=null))},[s.pathname]),k.useEffect(()=>{var e,t;(null==l?void 0:null===(e=l.uploadedFileInfo)||void 0===e?void 0:e.id)&&p({videoId:null==l?void 0:null===(t=l.uploadedFileInfo)||void 0===t?void 0:t.id})},[null==l?void 0:null===(t=l.uploadedFileInfo)||void 0===t?void 0:t.id]),k.useEffect(()=>(i((0,ow.tr)()),()=>{i(Y.ZP.clearVideoState()),i(X.Z.resetTimelineState())}),[]),(0,_.jsx)(oT,{children:(0,_.jsxs)(oE,{ref:o,children:[(0,_.jsxs)("div",{className:"flex items-center",children:[(0,_.jsx)(iB,{height:"33px",width:"70.93px",link:r?F.P2.STUDIO_AI_MAIN:F.P2.HOME,labelStyle:{fontSize:"0.7rem"},redirectOnClick:()=>{var e;if(!((null==l?void 0:l.uploadCompleted)&&(null==l?void 0:null===(e=l.uploadedFileInfo)||void 0===e?void 0:e.id)))return w(),!1;s.push(r?F.P2.STUDIO_AI_MAIN:F.P2.HOME)}}),s.pathname.split("/").includes("editor")||s.pathname.split("/").includes("resizer")?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(oD,{className:"flex items-center cursor-pointer mx-8",onClick:()=>{var e,t;if(s.pathname.split("/").includes("editor")){let t=a.filter(e=>(null==e?void 0:e.layerType)===F.QP.VIDEO);(null==t?void 0:t.length)>1?x():s.push("/studio/create-video/".concat(null==s?void 0:null===(e=s.query)||void 0===e?void 0:e.videoId,"/resizer"))}else s.pathname.split("/").includes("resizer")?s.push(r?F.P2.STUDIO:F.P2.HOME):s.push("/studio/create-video/".concat(null==s?void 0:null===(t=s.query)||void 0===t?void 0:t.videoId,"/editor/layers"))},children:[(0,_.jsx)(oP,{className:"icon-wrapper rounded-full p-2",children:(0,_.jsx)(ih.Z,{src:n===F.H7.EN.dir?"/icons/arrow-left.svg":"/icons/arrow-right.svg",width:"16px",height:"16px",fill:iH.theme.extend.colors["white-50"]})}),(0,_.jsx)("span",{className:"ml-2.5 x-small-text text-white-50",children:u.global.back})]}),(0,_.jsx)(oI,{})]}):null]}),oS.tq||d?null:(0,_.jsx)("div",{className:"flex justify-center",children:(0,_.jsx)(ou,{})}),(0,_.jsx)("div",{className:"flex justify-end",children:(0,_.jsxs)("div",{className:"flex justify-center items-center",children:[(0,_.jsx)(o_,{}),(0,_.jsx)(or,{})]})})]})})},oN=i(43649),oj=i(12382),oM=i(30699),oR=i(6627),oz=()=>{let e=(0,iN.Z)(),[t,i]=k.useState(Boolean),o=(0,I.v9)(e=>{var t;return null==e?void 0:null===(t=e.TextToVideo)||void 0===t?void 0:t.video}),n=(0,I.v9)(e=>{var t,i;return null==e?void 0:null===(i=e.TextToVideo)||void 0===i?void 0:null===(t=i.generalDetails)||void 0===t?void 0:t.isQuote}),r=(0,eL.useRouter)(),{exportVideo:a}=(0,oM.Z)(),{trackExport:l}=(0,oR.G)("ai shorts"),s=async()=>{try{var e;i(!0),l("started",{generation_id:String(null!==(e=null==o?void 0:o.id)&&void 0!==e?e:""),export_type:"video"}),await a({videoId:null==o?void 0:o.id}
1),r.replace("/ai-studio/text-to-video/generating?videoId=".concat(null==o?void 0:o.id,"&exporting=1"))}catch(e){}finally{i(!1)}},[,d]=k.useContext(eK.kn);return(0,_.jsx)("div",{children:(0,_.jsxs)(iW.Z,{size:"x-small",type:"secondary",style:{padding:"8px 16px",gap:8},disabled:t,onClick:()=>{n?d({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!0,isOpen:!0,children:(0,_.jsx)(iJ.Z,{header:e.musicRemovalConfirmation.header,title:e.musicRemovalConfirmation.title,onOk:(e,t,i)=>{s(),t()},cancelText:e.global.cancel,okText:e.global.export})}}):s()},"data-name":"export-video",children:[t?(0,_.jsx)(i0.Z,{size:"xSmall"}):(0,_.jsx)(ih.Z,{src:"/icons/export.svg",width:"20px",height:"20px",fill:"#fff"}),(0,_.jsx)("span",{className:"text-white text-xs font-light",children:e.textToVideo.editor.export})]})})},oL=i(55612),oV=i(31978);function oF(){let e=(0,eL.useRouter)(),t=k.useMemo(()=>(0,oV.fL)(e.pathname),[e.pathname]),i=k.useMemo(()=>{let t=e.pathname.replace(/^\/(en|ar|es|fr|it|tr)(?=\/)/,"")||e.pathname;return t===F.P2.STUDIO_AI_MAIN||t===F.P2.HOME},[e.pathname]),o=k.useMemo(()=>[F.P2.CREATE_VIDEO,F.P2.CREATE_VIDEO_RESIZER,F.P2.CREATE_VIDEO_EDITOR,F.P2.CREATE_VIDEO_PUBLISHER,F.P2.CREATE_VIDEO_EDITOR_TABS].includes(e.pathname),[e.pathname]),n=k.useMemo(()=>[F.P2.STUDIO_AI_UPLOAD,F.P2.STUDIO_AI_GENERATE,F.P2.STUDIO_AI_GENERATE_VIDEO,F.P2.STUDIO_AI_CLIPS,F.P2.STUDIO_AI_TEXT_TO_VIDEO_EDITOR,F.P2.STUDIO_AI_TEXT_TO_VIDEO_EDITOR_TABS,F.P2.STUDIO_AI_TEXT_TO_IMAGE,F.P2.STUDIO_AI_TEXT_TO_IMAGE_PROMPT,F.P2.STUDIO_AI_TEXT_TO_SPEECH,F.P2.STUDIO_AI_TEXT_TO_SPEECH_PROMPT,F.P2.STDIO_AI_TEXT_TO_SCENE,F.P2.STDIO_AI_TEXT_TO_SCENE_PAGE,F.P2.STUDIO_AI_IMAGE_TO_SCENE,F.P2.STUDIO_AI_IMAGE_TO_SCENE_PAGE,F.P2.STUDIO_AI_AVATARS,F.P2.STUDIO_AI_QUOTE_TO_VIDEO,F.P2.STUDIO_AI_AVATARS_GENERATING,F.P2.STUDIO_AI_AVATARS_DOWNLOAD,F.P2.STUDIO_AI_IMAGE_EDITOR,F.P2.STUDIO_AI_IMAGE_UPSCALE].includes(e.pathname),[e.pathname]),r=k.useMemo(()=>e.pathname.includes(F.P2.STUDIO_AI_TEXT_TO_VIDEO)||e.pathname.includes(F.P2.STUDIO_AI_QUOTE_TO_VIDEO),[e.pathname]);return{isEditorFlow:o,isAiStudioFlow:n,isSessionBasedToolFlow:k.useMemo(()=>[F.P2.STDIO_AI_TEXT_TO_SCENE,F.P2.STUDIO_AI_IMAGE_TO_SCENE,F.P2.STUDIO_AI_IMAGE_EDITOR,F.P2.STUDIO_AI_IMAGE_UPSCALE,F.P2.STUDIO_AI_TEXT_TO_IMAGE].includes(e.pathname),[e.pathname]),isAvatarGenFlow:k.useMemo(()=>e.pathname.includes("/ai-studio/ai-avatars"),[e.pathname]),isAIShortFlow:r,isAppsFlow:k.useMemo(()=>e.pathname.startsWith("/apps/")&&"/apps"!==e.pathname,[e.pathname]),isNewStudioShell:t,isStudioHubPage:i}}var oU=i(78138),oG=i(86408);let oB=iv.ZP.div.withConfig({componentId:"sc-ea1f226c-0"})(['padding:16px 32px;height:var(--t2v-header-height);position:relative;z-index:10;border-bottom:1px solid rgba(255,255,255,0.03);[data-theme="light"] &{background-color:white;}&[data-size="small"]{height:var(--t2v-header-height);}@media (max-width:768px){background-color:var(--shade);',"}"],e=>{let{$isSessionBasedToolFlow:t}=e;return t&&"\n  padding: 0px 10px;\n  background-color: transparent;\n  border-bottom: none;\n  "}),oZ=iv.ZP.div.withConfig({componentId:"sc-ea1f226c-1"})(["display:grid;grid-template-columns:1fr;margin:0 auto;height:100%;"]);var oq=()=>{let{isLoggedIn:e}=k.useContext(eG.Vo),t=(0,eL.useRouter)(),i=(0,I.I0)(),{isSessionBasedToolFlow:o,isAvatarGenFlow:n}=oF(),r=k.useMemo(()=>em.ZP.navigationDropdownOptions.find(e=>e.link===t.pathname),[t.pathname]);k.useEffect(()=>()=>{i(Y.ZP.clearVideoState())},[]);let a=k.useMemo(()=>t.pathname.includes(F.P2.STUDIO_AI_TEXT_TO_VIDEO_EDITOR),[t.pathname]),l=k.useMemo(()=>t.pathname.includes(F.P2.STUDIO_AI_TEXT_TO_VIDEO_DOWNLOAD),[t.pathname]),s=k.useMemo(()=>!!oS.tq&&(oS.tq?oS.tq&&(t.pathname.includes(F.P2.STUDIO_AI_VOICEOVERS)||t.pathname.includes(F.P2.STUDIO_AI_TEXT_TO_SPEECH)):void 0),[oS.tq,t.pathname]);return k.useEffect(()=>{if("undefined"==typeof document)return;let e=document.querySelector("main");a||l?(document.body.setAttribute("data-flow","editor"),e.style.padding="0px"):document.body.hasAttribute("data-flow")&&(document.body.removeAttribute("data-flow"),e.style.removeProperty("padding"))},[a,l]),k.useEffect(()=>{a||l||(s?document.body.setAttribute("data-flow","voiceovers"):document.body.hasAttribute("data-flow")&&document.body.removeAttribute("data-flow"))},[s]),k.useEffect(()=>()=>{let e=document.querySelector("main");
1e&&document.body.hasAttribute("data-flow")&&(document.body.removeAttribute("data-flow"),e.style.removeProperty("padding"))},[]),(0,_.jsx)(oB,{"data-size":a||l?"small":"default",$isSessionBasedToolFlow:o,children:(0,_.jsx)(oZ,{children:(0,_.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,_.jsx)(oU.Z,{}),o?(0,_.jsx)("div",{className:"flex items-center gap-4 flex-1 max-w-[360px]",children:(0,_.jsx)(oL.ZP,{})}):n&&!oS.tq?(0,_.jsx)("div",{className:"flex items-center gap-4 w-full max-w-[360px]",children:(0,_.jsx)("div",{className:"flex items-center gap-4 flex-1",children:(0,_.jsx)(oL.r4,{className:"w-full h-full cursor-pointer flex items-center justify-between rounded-lg min-h-[45px] text-sm text-[#CFD2D5]",children:(0,_.jsx)("div",{className:"flex items-center justify-between w-full py-3 px-4",children:(0,_.jsx)(oL.b3,{currentTool:r,selectedModelData:{model:{display_name:{en:"Model IV",ar:"Model IV"}}}})})})})}):null,(0,_.jsx)("div",{className:"flex items-center gap-4",children:(0,_.jsxs)(oG.Z,{condition:e&&!(o&&oS.tq),children:[a?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(oz,{}),(0,_.jsx)(oj.Z,{})]}):l?null:(0,_.jsx)(oj.Z,{}),(0,_.jsx)("div",{className:"hidden sm:block",children:(0,_.jsx)(oN.Z,{})})]})})]})})})};let oH=iv.ZP.header.withConfig({componentId:"sc-378b7579-0"})(['position:fixed;inset:0;padding:16px 24px;height:var(--t2v-header-height);z-index:10;[data-theme="light"] &{background-color:white;}@media (max-width:768px){padding:12px 16px;}']),oW=(0,iv.ZP)(iM()).withConfig({componentId:"sc-378b7579-1"})(["color:var(--text-shade-2,#abb1b6);transition:color 0.15s ease;&:hover{color:var(--text-shade-1,#cfd2d5);}"]);var oY=()=>{var e;let{isLoggedIn:t}=k.useContext(eG.Vo),i=(0,eL.useRouter)(),o=(0,iN.Z)(),n=null==o?void 0:null===(e=o.productPhotoshoot)||void 0===e?void 0:e.header,{locale:r}=i,a=k.useMemo(()=>{var e,t,o,n;let a=null===(e=em.ZP.apps)||void 0===e?void 0:e.find(e=>e.link===i.pathname);return a?(null===(o=a.title)||void 0===o?void 0:o[r||"en"])||(null===(n=a.title)||void 0===n?void 0:n.en)||a.title:((null===(t=i.pathname.split("/apps/")[1])||void 0===t?void 0:t.split("/")[0])||"").split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(" ")},[i.pathname,r]);return(0,_.jsx)(oH,{children:(0,_.jsxs)("div",{className:"flex items-center justify-between h-full",children:[(0,_.jsxs)("div",{className:"flex items-center gap-6",children:[(0,_.jsx)(oU.Z,{}),(0,_.jsxs)("nav",{className:"hidden md:flex items-center gap-1 text-xs font-medium font-poppins",children:[(0,_.jsx)(oW,{href:"/apps",children:null==n?void 0:n.breadcrumbApps}),(0,_.jsx)("span",{className:"text-t-shade-2",children:"/"}),(0,_.jsx)("span",{className:"text-custom-white",children:a})]})]}),(0,_.jsx)("div",{className:"flex items-center gap-4",children:(0,_.jsxs)(oG.Z,{condition:t,children:[(0,_.jsx)(oj.Z,{}),(0,_.jsx)("div",{className:"hidden sm:block",children:(0,_.jsx)(oN.Z,{})})]})})]})})},oK=i(25630),oQ=i(83953),o$=i(90238),oX=i(17111),oJ=k.memo(e=>{let{analyticsPosition:t}=e,i=(0,eL.useRouter)(),{changeLang:o,language:n}=k.useContext(eB.AZ),r=e=>{e.value!==n&&(t&&(0,oX.F)("language_change",{cta_type:"secondary",button_text:e.label,page_name:i.pathname,position:t}),o(e.value),o$.ZP.setUserProperties({$language:e.value}))};return(0,_.jsx)("ul",{className:"flex w-full flex-col gap-3",children:Object.values(F.H7).map((e,t)=>(0,_.jsx)("li",{className:"w-full",children:(0,_.jsxs)(oQ.Nc,{type:"button",onClick:()=>r(e),children:[(0,_.jsx)("span",{className:"min-w-0 flex-1 text-start text-xs font-medium leading-4",children:e.label}),n===e.value?(0,_.jsx)(ih.Z,{src:"/icons/tick-circle-gradient-fill.svg",width:"15px",height:"15px"}):null]})},t))})}),o0=i(54822),o1=e=>{let{iconProps:t,analyticsPosition:i}=e,o=(0,eL.useRouter)(),{getDirection:n}=k.useContext(eB.AZ);return(0,_.jsx)(oK.Z,{useChildren:!0,...(0,o0.XJ)(n,{width:160,minWidth:160,maxWidth:160}),options:(0,_.jsx)(oJ,{analyticsPosition:i}),children:(0,_.jsx)(i8.Z,{type:"eerie-black",className:"flex items-center justify-center",...t,size:"large",onClick:i?()=>{i&&(0,oX.F)("language_menu_open",{cta_type:"secondary",page_name:o.pathname,position:i})}:void 0,children:(0,_.jsx)(ih.Z,{src:"/icons/studio-profile/global.svg",width:"16px",height:"16px",stroke:"currentColor",fill:"none",color:"var(--ph-color)",className:"cursor-pointer"})})})},o2=i(23279),o3=i.n(o2),o4=i(46933),o5=i(54169);let o6=iv.ZP.div.withConfig({componentId:"sc-471052bc-0"})(["display:flex;flex-direction:row;align-items:flex-start;padding:8px 16px;gap:16px;width:100%;flex:none;order:0;align-self:stretch;flex-grow:0;"]),o8=iv.ZP.div.withConfig({componentId:"sc-471052bc-1"})(["min-width:32px;height:32px;left:0px;top:0px;background:var(--secondary-color);border-radius:var(--border-radius-2);display:flex;align-items:center;justify-content:center;"]);var o9=e=>{var t;let{notification:i}=e,{language:o}=k.useContext(eB.AZ),{mode:n}=(0,I.v9)(e=>e.Theme),r=k.useMemo(()=>{var e,t,n,r;return(null==i?void 0:null===(e=i.data)||void 0===e?void 0:e.title[o])?null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.t
1itle[o]:null==i?void 0:null===(r=i.data)||void 0===r?void 0:null===(n=r.title)||void 0===n?void 0:n.en},[null==i?void 0:null===(t=i.data)||void 0===t?void 0:t.title,o]);return(0,_.jsxs)(o6,{children:[(0,_.jsx)(o8,{children:(null==i?void 0:i.type)==="video-is-ready"?(0,_.jsx)(ih.Z,{src:"/icons/send-2.svg",width:"16px",height:"16px",fill:iH.theme.extend.colors.white}):(null==i?void 0:i.type)==="user-update-email"||(null==i?void 0:i.type)==="user-welcome"?(0,_.jsx)(ih.Z,{src:"/icons/tick-circle.svg",width:"16px",height:"16px",stroke:iH.theme.extend.colors.white}):(null==i?void 0:i.type)==="user-update-password"?(0,_.jsx)(ih.Z,{src:"/icons/lock.svg",width:"16px",height:"16px",stroke:iH.theme.extend.colors.white}):null}),(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"text-xs text-white-80 break-all leading-5",children:r}),(null==i?void 0:i.created_at)?(0,_.jsxs)("div",{className:"flex mt-1.5 text-white-50",children:[(0,_.jsx)(ih.Z,{src:"/icons/clock.svg",width:"16px",height:"16px",color:"currentColor",fill:"currentColor"}),(0,_.jsx)("span",{className:"x-small-text ml-1.5",children:(null==i?void 0:i.created_at)?iz().utc(null==i?void 0:i.created_at,F.K_).fromNow():"-"})]}):null]})]})};let o7="".concat(F.P2.STUDIO_ACCOUNT,"#notifications");var ne=()=>{let e=(0,iN.Z)(),t=(0,eL.useRouter)();return(0,_.jsxs)("div",{className:"flex items-center justify-between text-ph-color w-full p-4",children:[(0,_.jsx)("span",{className:"heading-6 font-semibold",children:e.studio.notifications.title}),(0,_.jsx)(iM(),{href:o7,onClick:()=>(0,oX.F)("notification_settings",{cta_type:"secondary",page_name:t.pathname,cta_url:o7}),children:(0,_.jsx)("div",{className:"cursor-pointer hover:rotate-180 transition-transform duration-300",children:(0,_.jsx)(ih.Z,{src:"/icons/setting-2.svg",width:"20px",height:"20px",color:"currentColor",fill:"currentColor"})})})]})},nt=e=>{let{notifications:t,isLoadingMore:i,hasMore:o}=e,n=k.useRef(null),r=k.useRef({isLoadingMore:i,hasMore:o,loadMore:e.loadMore});r.current={isLoadingMore:i,hasMore:o,loadMore:e.loadMore};let a=k.useMemo(()=>o3()((e,t,i)=>{let{isLoadingMore:o,hasMore:n,loadMore:a}=r.current;!o&&n&&t+e>=i-10&&a()},500),[]),l=k.useCallback(e=>{let t=null==e?void 0:e.currentTarget;t&&a(t.scrollTop,t.clientHeight,t.scrollHeight)},[a]);return k.useEffect(()=>()=>a.cancel(),[a]),k.useEffect(()=>{var e;i&&(null===(e=n.current)||void 0===e||e.scrollIntoView({block:"nearest"}))},[i]),(0,_.jsxs)(o5.Z,{className:"flex min-h-0 w-full flex-1 flex-col",containerClassName:"flex min-h-0 w-full max-h-[inherit] flex-1 flex-col overflow-y-auto hiddenScrollBar overscroll-contain",onScroll:l,children:[(0,_.jsx)(ne,{}),i$()(null==t?void 0:t.data,(e,t)=>(0,_.jsx)(k.Fragment,{children:(0,_.jsx)(o9,{notification:e})},t)),o||i?(0,_.jsx)("div",{ref:n,className:"flex shrink-0 items-center justify-center py-4",children:i?(0,_.jsx)(o4.Z,{className:"flex items-center justify-center",children:(0,_.jsx)(i0.Z,{className:"loader",size:"small"})}):(0,_.jsx)("div",{className:"h-4 w-full","aria-hidden":!0})}):null]})},ni=i(86120);let no=(e,t,i)=>ni.W.get("me/notifications",t,i,e),nn=(e,t,i)=>ni.W.patch("me/notifications",e,t,i);var nr=()=>{let[e,t]=k.useState(null),[i,o]=k.useState(!1),[n,r]=k.useState({per_page:10,page:1}),a=!!(null==e?void 0:e.meta)&&e.meta.current_page<e.meta.last_page;return{notificationsData:e,fetchNotifications:()=>(n.page>1&&o(!0),new Promise(async e=>{no({...n},i=>{var n;(null==i?void 0:null===(n=i.meta)||void 0===n?void 0:n.current_page)>1?t(e=>{var t;return{...e,...i,data:[...null!==(t=null==e?void 0:e.data)&&void 0!==t?t:[],...null==i?void 0:i.data],meta:null==i?void 0:i.meta}}):t(i),o(!1),e(i)})})),markAsSeen:()=>new Promise(async e=>{nn({update_type:"all",mark_as_seen:1},()=>{e({})})}),handleLoadMore:()=>{!i&&a&&r(t=>({...t,page:e.meta.current_page+1}))},notificationsFilter:n,isLoadingMore:i,hasMore:a}},na=i(98388);let nl=iv.ZP.div.withConfig({componentId:"sc-d8f4fc68-0"})(["position:absolute;width:5px;height:5px;right:2.67px;top:2px;border-radius:9999px;background:var(--secondary-color);"]);var ns=e=>{let{triggerClassName:t}=e,i=(0,eL.useRouter)(),[o,n]=k.useState(!1),{mode:r}=(0,I.v9)(e=>e.Theme),{getDirection:a}=k.useContext(eB.AZ),{notificationsData:l,fetchNotifications:s,markAsSeen:d,handleLoadMore:u,notificationsFilter:c,isLoadingMore:p,hasMore:m}=nr(),h=e=>{let t=document.querySelector("#studioLayoutChildrenWrapper");
1null==t||t.classList.toggle("overflow-hidden-important",e)},f=async e=>{if(e){(0,oX.F)("notifications_open",{cta_type:"secondary",page_name:i.pathname}),o&&(await d(),n(!1)),h(!0);return}(0,oX.F)("notifications_close",{cta_type:"secondary",page_name:i.pathname}),h(!1)};return k.useEffect(()=>{s()},[null==c?void 0:c.page]),k.useEffect(()=>{var e;if(null==l?void 0:null===(e=l.data)||void 0===e?void 0:e.length){let e=iK()(null==l?void 0:l.data,e=>!(null==e?void 0:e.is_seen));(null==e?void 0:e.length)?n(!0):o&&n(!1)}},[null==l?void 0:l.data]),k.useEffect(()=>{h(!1)},[i.pathname]),(0,_.jsx)(oK.Z,{useChildren:!0,...(0,o0.XJ)(a,{width:358,minWidth:358,maxWidth:358,padding:0,height:"auto",maxHeight:"min(500px, calc(100dvh - 5.5rem))",display:"flex",flexDirection:"column",alignItems:"stretch",overflow:"hidden"}),optionsInnerClassName:"flex min-h-0 w-full max-h-full flex-1 flex-col",onOpenChange:f,options:(0,_.jsx)(nt,{notifications:l,loadMore:u,filters:c,isLoadingMore:p,hasMore:m}),children:(0,_.jsx)(i8.Z,{type:"eerie-black",className:(0,na.m6)("flex items-center justify-center",t),size:"large",children:(0,_.jsxs)("div",{className:"relative cursor-pointer",children:[(0,_.jsx)("div",{className:"flex h-full w-full items-center justify-center",children:(0,_.jsx)(ih.Z,{src:"/icons/notification.svg",width:"16px",height:"16px",fill:"light"===r?"black":"white"})}),o?(0,_.jsx)(nl,{}):null]})})},i.pathname)},nd=e=>{let{buttonType:t,size:i}=e,o=(0,iN.Z)("global"),n=(0,eL.useRouter)(),[,r]=k.useContext(eK.kn);return(0,_.jsx)("div",{className:" relative",children:(0,_.jsx)(iW.Z,{type:t,size:i,onClick:e=>{e.stopPropagation(),e.preventDefault(),(0,oX.F)("upgrade_plan",{cta_type:"secondary"===t?"secondary":"primary",button_text:o.upgradePlan,page_name:n.pathname}),r({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,_.jsx)(i9.ZP,{trigger_source:"header_upgrade_button"})}})},children:(0,_.jsx)("span",{className:"x-small-text",children:o.upgradePlan})})})},nu=i(90549),nc=i(91729),np=i(35158),nm=e=>{let{subscribed:t,notSubscribed:i,paused:o,pastDue:n,deleted:r,fallback:a,subscribedOnly:l=!1,notSubscribedOnly:s=!1,customCheck:d,children:u}=e,{isSubscribed:c,userState:p,isPaused:m,isSubscriptionPastDue:h,isSubscriptionDeleted:f}=(0,nu.Z)();return(0,np.Z)()?d?d(p)?(0,_.jsx)(_.Fragment,{children:t||u}):(0,_.jsx)(_.Fragment,{children:i||a}):l?c?(0,_.jsx)(_.Fragment,{children:u}):null:s?c?null:(0,_.jsx)(_.Fragment,{children:u}):f&&r?(0,_.jsx)(_.Fragment,{children:r}):h&&n?(0,_.jsx)(_.Fragment,{children:n}):m&&o?(0,_.jsx)(_.Fragment,{children:o}):c?(0,_.jsx)(_.Fragment,{children:t||u}):(0,_.jsx)(_.Fragment,{children:i||a||u}):(0,_.jsx)(_.Fragment,{children:u})},nh=e=>{let{children:t,pages:i=[],patterns:o=[],match:n,noMatch:r,exact:a=!1,includeQuery:l=!1,customCheck:s,invert:d=!1,onlyOn:u=[],hideOn:c=[]}=e,p=(0,eL.useRouter)(),{pathname:m,query:h}=p,f=l?"".concat(m).concat(p.asPath.split("?")[1]?"?"+p.asPath.split("?")[1]:""):m;if(s){let e=s(m,h);return(d?!e:e)?(0,_.jsx)(_.Fragment,{children:n||t}):(0,_.jsx)(_.Fragment,{children:r})}if(u.length>0)return u.some(e=>a?f===e:f.startsWith(e))?(0,_.jsx)(_.Fragment,{children:t}):null;if(c.length>0)return c.some(e=>a?f===e:f.startsWith(e))?null:(0,_.jsx)(_.Fragment,{children:t});if(i.length>0){let e=i.some(e=>a?f===e:f.startsWith(e));return(d?!e:e)?(0,_.jsx)(_.Fragment,{children:n||t}):(0,_.jsx)(_.Fragment,{children:r})}if(o.length>0){let e=o.some(e=>{if(e instanceof RegExp)return e.test(f);if(e.includes("*")){let t=e.replace(/\*/g,".*");return new RegExp("^".concat(t,"$")).test(f)}return a?f===e:f.startsWith(e)});return(d?!e:e)?(0,_.jsx)(_.Fragment,{children:n||t}):(0,_.jsx)(_.Fragment,{children:r})}return(0,_.jsx)(_.Fragment,{children:t})},nf=i(46916),nv=i(68027),ng=i(32324),ny=i(64814),nb=i(51535);let nA=(0,iv.ZP)(iW.Z).withConfig({componentId:"sc-c56cadf-0"})(["padding:8px 12px;color:var(--text-shade-2);font-weight:500;transition:color 0.3s ease;",' &:hover{color:var(--custom-white) !important;}[data-theme="light"] &{color:#929292;}'],e=>e.$isActive?"\n  color: var(--custom-white) !important;\n  font-weight: 600;\n  ":"\n      "),nx=[{id:0,slug:"home",pathname:"/",icon_url:"/icons/home-2.svg",name:{en:"Home",es:"Inicio",fr:"Accueil",it:"Home",ar:"الرئيسية",tr:"Ana Sayfa"},template_groups:[]},{id:1,slug:"apps",pathname:"/apps",icon_url:"/icons/apps.svg",name:{en:"Apps",ar:"التطبيقات",es:"Aplicaciones",fr:"Applications",it:"Applicazioni",tr:"Uygulamalar"},template_groups:[]},{id:1,slug:"tools",pathname:"/ai-tools",icon_url:"/icons/home-2.svg",name:{en:"Tools",es:"Herramientas",fr:"Outils",it:"Strumenti",ar:"الأدوات",tr:"Ara\xe7lar"},template_groups:[]},{id:1e4,slug:"library",pathname:"/studio/videos",icon_url:"/icons/folder-library.svg",name:{en:"Library",es:"Biblioteca",fr:"Biblioth\xe8que",it:"Biblioteca",ar:"المكتبة",tr:"K\xfct\xfcphane"},svggOptions:{isStroke:!0},isAuthRequired:!0,template_groups:[]}];var nw=()=>{let e=(0,nf.Z)(),t=(0,eL.useRouter)(),{isLoggedIn:i}=(0,nu.Z)(),{data:o}=(0,ng.nq)(),{data:n}=(0,ny.w)(t.query.slug||""),r=e=>{if("/"===e||e===F.P2.STUDIO_AI_MAIN)return"/"===t.pathname||t.pathname===F.P2.STUDIO_AI_MAIN;if(e===F.P2.STUDIO_VIDEOS||e===F.P2.STUDIO_FOLDERS||e===F.P2.STUDIO_CONNECTIONS||e===F.P2.STUDIO_AI_IMAGES||e===F.P2.STUDIO_AI_VOICEOVERS||e===F.P2.STUDIO_DELETED_VIDEOS)return t.pathname===F.P2.STUDIO_VIDEOS||t.pathname===F.P2.STUDIO_FOLDERS||t.pathname===F.P2.STUDIO_CONNECTIONS||t.pathname===F.P2.STUDIO_AI_IMAGES||t.pathname===F.P2.STUDIO_AI_VOICEOVERS||t.pathname===F.P2.STUDIO_DELETED_VIDEOS;if(e.includes("/templates/")){var i,o,r;return(null==n?void 0:null===(r=n.data)||void 0===r?void 0:null===(o=r.categories)||void 0===o?void 0:null===(i=o[0])||void 0===i?void 0:i.slug)===e.split("/")[2]||t.asPath.includes(e)}return e.includes("/shorts")?!!(t.pathname.includes("/text-to-vi
1deo")||t.pathname.includes("/shorts")):t.pathname.includes(e)},a=k.useMemo(()=>{var e,t;return[...nx,...(null==o?void 0:null===(t=o.data)||void 0===t?void 0:null===(e=t.filter(e=>"ads"===e.slug))||void 0===e?void 0:e.map(e=>({...e,icon_url:(null==e?void 0:e.slug)==="ads"?"/icons/megaphone-01.svg":"/icons/play-list.svg",pathname:(null==e?void 0:e.slug)==="shorts"?"/shorts":void 0,svggOptions:{isStroke:!0}})))||[]].sort((e,t)=>e.id-t.id)},[o]),l=k.useMemo(()=>a.filter(e=>null==e||!e.isAuthRequired||i),[null==a?void 0:a.length,i]);return(0,_.jsx)(nb.Z,{fallback:(0,_.jsx)("div",{className:"flex items-center gap-2"}),children:(0,_.jsx)("div",{className:"flex items-center gap-2",children:l.map((i,o)=>{var n,a;let l=(null==i?void 0:i.pathname)||"/templates/".concat(null==i?void 0:i.slug),s=(null===(n=i.name)||void 0===n?void 0:n[e])||(null===(a=i.name)||void 0===a?void 0:a.en)||"";return(0,_.jsx)(iM(),{href:l,onClick:()=>(0,oX.F)("nav_".concat(i.slug),{cta_type:"secondary",button_text:s,page_name:t.pathname,cta_url:l,position:"studio_header_nav"}),children:(0,_.jsx)(nv.Z,{animation:"bounce",duration:200,delay:100*o,className:"stacked-box",children:(0,_.jsx)(nA,{$isActive:r((null==i?void 0:i.pathname)||"/templates/".concat(null==i?void 0:i.slug)),type:"text",children:(0,_.jsx)("div",{className:"flex items-center gap-2",children:(0,_.jsx)("span",{className:"text-sm",children:s})})})})},o)})})})};let n_=(0,iv.ZP)(iW.Z).withConfig({componentId:"sc-476e679f-0"})(["padding:8px 12px;color:var(--ph-color);font-weight:500;transition:color 0.3s ease;"," &:hover{color:var(--custom-white);}"],e=>e.$isActive?"\n  color: var(--custom-white);\n  ":"\n      "),nS=[{id:0,slug:"home",pathname:"/",icon_url:"/icons/home-2.svg",name:{en:"Home",es:"Inicio",fr:"Accueil",it:"Home",ar:"الرئيسية",tr:"Ana Sayfa"},template_groups:[]},{id:1,slug:"apps",pathname:"/apps",icon_url:"/icons/apps.svg?v=1",name:{en:"Apps",ar:"التطبيقات",es:"Aplicaciones",fr:"Applications",it:"Applicazioni",tr:"Uygulamalar"},template_groups:[],svggOptions:{isStroke:!0}},{id:2,slug:"tools",pathname:"/ai-tools",icon_url:"/icons/magic-pen.svg",name:{en:"Tools",es:"Herramientas",fr:"Outils",it:"Strumenti",ar:"الأدوات",tr:"Ara\xe7lar"},template_groups:[]},{id:1e4,slug:"library",pathname:"/studio/videos",icon_url:"/icons/folder-library.svg",name:{en:"Library",es:"Biblioteca",fr:"Biblioth\xe8que",it:"Biblioteca",ar:"المكتبة",tr:"K\xfct\xfcphane"},svggOptions:{isStroke:!0},template_groups:[],isAuthRequired:!0}];var nC=()=>{let e=(0,eL.useRouter)(),t=(0,nf.Z)(),{isLoggedIn:i}=(0,nu.Z)(),{data:o}=(0,ny.w)(e.query.slug||""),n=t=>{if("/"===t||t===F.P2.STUDIO_AI_MAIN)return"/"===e.pathname||e.pathname===F.P2.STUDIO_AI_MAIN;if(t===F.P2.STUDIO_VIDEOS||t===F.P2.STUDIO_FOLDERS||t===F.P2.STUDIO_ACCOUNT||t===F.P2.STUDIO_CONNECTIONS||t===F.P2.STUDIO_BILLING||t===F.P2.NOTIFICATIONS_SETTINGS||t===F.P2.STUDIO_AI_IMAGES||t===F.P2.STUDIO_AI_VOICEOVERS||t===F.P2.STUDIO_DELETED_VIDEOS)return e.pathname===F.P2.STUDIO_VIDEOS||e.pathname===F.P2.STUDIO_FOLDERS||e.pathname===F.P2.STUDIO_ACCOUNT||e.pathname===F.P2.STUDIO_CONNECTIONS||e.pathname===F.P2.STUDIO_BILLING||e.pathname===F.P2.NOTIFICATIONS_SETTINGS||e.pathname===F.P2.STUDIO_AI_IMAGES||e.pathname===F.P2.STUDIO_AI_VOICEOVERS||e.pathname===F.P2.STUDIO_DELETED_VIDEOS;if(t.includes("/templates/")){var i,n,r;return(null==o?void 0:null===(r=o.data)||void 0===r?void 0:null===(n=r.categories)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:i.slug)===t.split("/")[2]||e.asPath.includes(t)}return t.includes("/shorts")?!!(e.pathname.includes("/text-to-video")||e.pathname.includes("/shorts")):e.pathname.includes(t)};return(0,_.jsx)("div",{className:"flex items-center justify-between",children:nS.filter(e=>!!i||!e.isAuthRequired).map((i,o)=>{var r,a,l;let s=(null==i?void 0:i.pathname)||"/templates/".concat(null==i?void 0:i.slug),d=(null===(r=i.name)||void 0===r?void 0:r[t])||(null===(a=i.name)||void 0===a?void 0:a.en)||"";return(0,_.jsx)(iM(),{href:s,onClick:()=>(0,oX.F)("nav_".concat(i.slug),{cta_type:"secondary",button_text:d,page_name:e.pathname,cta_url:s,position:"studio_bottom_nav"}),children:(0,_.jsx)(nv.Z,{animation:"bounce",duration:200,delay:100*o,className:"stacked-box",children:(0,_.jsx)(n_,{$isActive:n((null==i?void 0:i.pathname)||"/templates/".concat(null==i?void 0:i.slug)),type:"text",children:(0,_.jsxs)("div",{className:"flex flex-col items-center gap-2",children:[i.icon_url&&(0,_.jsx)(ih.Z,{src:i.icon_url,width:"20px",height:"20px",...(null===(l=i.svggOptions)||void 0===l?void 0:l.isStroke)?{stroke:"currentColor",color:"currentColor"}
1:{fill:"currentColor",color:"currentColor"}}),(0,_.jsx)("span",{className:"text-xs",children:d})]})})},o)},o)})})};let nk=iv.ZP.div.withConfig({componentId:"sc-c2736d9f-0"})(["display:flex;cursor:pointer;padding:12px 16px;--banner-height:40px;@media (max-width:768px){--banner-height:68px;flex-direction:column;}"]),nT=iv.ZP.button.withConfig({componentId:"sc-c2736d9f-1"})(['position:absolute;right:8px;top:50%;transform:translateY(-50%);cursor:pointer;padding:4px;opacity:0.8;[dir="rtl"] &{right:unset;left:8px;}']),nE=e=>{let{link:t,onClick:i,onNavigate:o,children:n}=e;return t?(0,_.jsx)(iM(),{href:t,onClick:()=>null==o?void 0:o(),children:n}):(0,_.jsx)("div",{role:"button",onClick:i,children:n})};var nP=e=>{let{title:t,callToAction:i,link:o,onClick:n,onNavigate:r,className:a,callToActionClassName:l,showCloseButton:s,onClose:d}=e,{getDirection:u}=k.useContext(eB.AZ),c=k.useRef(null),p=(0,na.m6)("flex text-center items-center justify-center gap-2 bg-secondary text-white select-none hover:underline relative",e.className);k.useEffect(()=>{let e=()=>{if(c.current){let e=c.current.offsetHeight;document.documentElement.style.setProperty("--banner-height","".concat(e,"px"))}},t=requestAnimationFrame(()=>{e()});return window.addEventListener("resize",e),()=>{cancelAnimationFrame(t),window.removeEventListener("resize",e),document.documentElement.style.setProperty("--banner-height","0px")}},[t,i]);let m=(0,na.m6)("font-medium text-base",a),h=(0,na.m6)("font-bold underline text-xs md:text-base",l);return(0,_.jsx)(nE,{link:o,onClick:n,onNavigate:r,children:(0,_.jsxs)(nk,{ref:c,className:p,style:{background:null==e?void 0:e.bg},dir:u,children:[(0,_.jsx)("span",{className:m,children:t}),i&&(o?(0,_.jsx)(iM(),{href:o,children:(0,_.jsx)("span",{className:h,children:i})}):(0,_.jsx)("button",{onClick:n,children:(0,_.jsx)("span",{className:h,children:i})})),s&&(0,_.jsx)(nT,{onClick:e=>{e.stopPropagation(),e.preventDefault(),null==d||d()},"aria-label":"Close banner",children:(0,_.jsx)(ih.Z,{src:"/icons/close-circle.svg",width:"20px",height:"20px",stroke:"currentColor"})})]})})},nI=i(78512);let nD=e=>!!e&&"paywall"===String(e).toLowerCase();var nO=e=>{let{isScrolled:t}=e,{getConfigValue:i}=(0,nI.Z)(),o=(0,eL.useRouter)(),n=o.locale||"en",{isLoggedIn:r,isNewSubscriber:a,isBasicOrProSubscriber:l,isSubscribed:s}=(0,nu.Z)(),[d,u]=k.useState(null),[,c]=k.useContext(eK.kn);k.useEffect(()=>{(async()=>{try{let e=await i({configKey:"banners"});e&&"object"==typeof e&&"title"in e&&u(e)}catch(e){}})()},[]);let p=e=>{var t,i;let r=(null==d?void 0:null===(t=d.call_to_action)||void 0===t?void 0:t[n])||(null==d?void 0:null===(i=d.call_to_action)||void 0===i?void 0:i.en);(0,oX.F)("studio_banner",{cta_type:"primary",button_text:r,page_name:o.pathname,cta_url:e,position:"studio_header_banner"})};if(!d)return null;let m=nD(d.popup_id),h="/pricing"===o.pathname||"/studio/billing"===o.pathname;if(m&&h||m&&r&&!a&&!l)return null;let f=d.title[n]||d.title.en,v=d.call_to_action[n]||d.call_to_action.en,g=m&&r?void 0:d.redirect_url||void 0;return t?null:(0,_.jsx)(nP,{title:f,callToAction:v,link:g,onClick:m&&r?()=>{p(),d&&nD(d.popup_id)&&c({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:s?(0,_.jsx)(nc.ZP,{paymentFlowProps:{trigger_source:"studio_banner"}}):(0,_.jsx)(i9.ZP,{trigger_source:"studio_banner"})}})}:void 0,onNavigate:g?()=>p(g):void 0,showCloseButton:!0,onClose:()=>{(0,oX.F)("studio_banner_close",{cta_type:"secondary",page_name:o.pathname,position:"studio_header_banner"}),u(null)},className:"font-medium text-xs md:text-base text-white-80 hover:no-underline"})};let nN=iv.ZP.div.withConfig({componentId:"sc-640d6b7b-0"})(["position:fixed;top:0;left:0;right:0;z-index:1000;background-color:",";transition:background-color 0.3s ease;"],e=>{let{$isScrolled:t}=e;return t?"var(--primary-color)":"transparent"}),nj=iv.ZP.div.withConfig({componentId:"sc-640d6b7b-1"})(["display:flex;align-items:center;justify-content:space-between;padding:24px;@media (max-width:768px){padding:16px;}"]),nM=iv.ZP.div.withConfig({componentId:"sc-640d6b7b-2"})(["padding:8px 16px;position:fixed;bottom:0;left:0;right:0;z-index:1000;background-color:var(--primary-color);"]);var nR=()=>{let e=(0,iN.Z)(),t=(0,eL.useRouter)(),{isReactivate:i,isLoggedIn:o}=(0,nu.Z)(),[,n]=k.useContext(eK.kn),[r,a]=k.useState(!1);return k.useEffect(()=>{let e=()=>{let e=document.getElementById("studioLayoutChildrenWrapper");a((e?e.scrollTop:window.scrollY)>0)};e();let t=document.getElementById("studioLayoutChildrenWrapper");return t?(t.addEventListener("scroll",e),()=>{t.removeEventListener("scroll",e)}):(window.addEventListener("scroll",e),()=>{window.removeEventListener("scroll",e)})},[]),(0,_.jsxs)(nb.Z,{fallback:null,children:[(0,_.jsxs)(nN,{$isScrolled:r,children:[(0,_.jsx)(nO,{isScrolled:r}),(0,_.jsxs)(nj,{className:"flex items-center",children:[(0,_.jsxs)("div",{className:"flex items-center gap-6",children:[(0,_.jsx)(oU.Z,{onNavigate:()=>(0,oX.F)("logo",{cta_type:"secondary",page_name:t.pathname,cta_url:"/"})}),(0,_.jsx)("div",{className:"hidden md:block",children:(0,_.jsx)(nw,{})})]}),(0,_.jsxs)("div",{className:"flex items-center ml-auto gap-4",children:[(0,_.jsxs)(oG.Z,{condition:!!o,children:[(0,_.jsx)(nh,{hideOn:[F.P2.STUDIO_BILLING],children:(0,_.jsx)(nm,{subscribed:(0,_.jsx)(iW.Z,{type:"secondary",size:"small",style:{gap:4},onClick:()=>{(0,oX.F)(i?"re_activate_plan":"change_plan",{cta_type:"secondary",button_text:i?e.global.reActivate:e.global.changePlan,page_name:t.pathname}),n({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,_.jsx)(nc.ZP,{paymentFlowProps:{flow:F.SC.UPDATE,trigger_source:"header_upgrade_button"}})}})},children:(0,_.jsx)("span",{className:"text-xs font-medium",children:i?e.global.reActivate:e.global.changePlan})}),notSubscribed:(0,_.jsx)(nd,{buttonType:"secondary",size:"small"})})}),(0,_.jsx)(oj.Z,{analyticsPosition:"studio_header"}),(0,_.jsx)(o1,{iconProps:{size:"small"},analyticsPosition:"studio_header"}),(0,_.jsx)("div",{className:"hidden sm:block",children:(0,_.jsx)(ns,{})}),(0,_.jsx)("div",{children:(0,_.jsx)(oN.Z,{})})]}),(0,_.jsxs)(oG.Z,{condition:!o,children:[(0,_.jsx)(iM(),{href:"/pricing",onClick:()=>(0,oX.F)("pricing",{cta_type:"secondary",button_text:e.headerLayout.pricing,page_name:t.pathname,cta_url:"/pricing"}),children:(0,_.jsx)("span",{className:"text-xs text-ph-color font-medium hover:text-secondary transition-colors duration-300",children:e.headerLayout.pricing})}),(0,_.jsxs)("div",{className:"flex items-center gap-3",children:[(0,_.jsx)(o1,{analyticsPosition:"studio_header"}),(0,_.jsx)(iM(),{href:"/login-social",onClick:()=>(0,oX.F)("sign_in",{cta_type:"secondary",button_text:e.global.shortSignIn,page_name:t.pathname,cta_url:"/login-social"}),children:(0,_.jsx)(iW.Z,{type:"secondary",size:"small",style:{height:"40px"},children:(0,_.jsx)("span",{className:"text-xs sm:text-sm font-medium",children:e.global.shortSignIn})})})]})]})]})]})]}),o&&(0,_.jsx)(nM,{className:"block md:hidden",children:(0,_.jsx)(nC,{})})]})},nz=()=>{let e=(0,eL.useRouter)(),{isEditorFlow:t,isAiStudioFlow:i,isSessionBasedToolFlow:o,isAppsFlow:n}=oF(),r=k.useMemo(()=>"/404"===e.pathname||"/invalid-link"===e.pathname,[e.pathname]),a=k.useMemo(()=>"/share/[shareKey]"===e.pathname,[e.pathname]);return t||e.pathname.includes(F.P2.STUDIO_TOOLS)?(0,_.jsx)(oO,{}):n?(0,_.jsx)(oY,{}):i||a||r?(0,_.jsx)(oq,{}):(0,_.jsx)(nR,{})},nL=i(49198),nV=i(19424),nF=i(46456),nU=i(10663),nG=i(56402),nB=i(60349),nZ=()=>{let e=(0,eL.useRouter)(),t=(0,nf.Z)(),i=(0,iN.Z)("studio.shell.sidebar"),o="string"==typeof e.query.slug?e.query.slug:"",{data:n}=(0,ny.w)(o),r=null==n?void 0:n.data,a=k.useMemo(()=>(0,nB.ih)(o),[o]),l=k.useMemo(()=>(0,nB.f4)(o,e.query),[o,e.query]),s=k.useMemo(()=>l?"/apps":(0,nB.i_)(r,e.query)||"/templates",[l,r,e.query]),d=l?i.apps:i.templates,u=k.useMemo(()=>{var i,o;return l&&a?of()(a.title,e.locale||"en",a.title.en):(null==r?void 0:null===(i=r.display_name)||void 0===i?void 0:i[t])||(null==r?void 0:null===(o=r.display_name)||void 0===o?void 0:o.en)||(null==r?void 0:r.name)||""},[l,a,r,t,e.locale]);return o?(0,_.jsxs)("nav",{"aria-label":"Breadcrumb",className:"hidden min-w-0 items-center gap-1 text-xs font-medium font-poppins md:flex",children:[(0,_.jsx)(iM(),{href:s,className:"shrink-0 text-t-shade-2 transition-colors hover:text-t-shade-1",children:d}),(0,_.jsx)("span",{className:"shrink-0 text-t-shade-2",children:"/"}),(0,_.jsx)("span",{className:"truncate text-custom-white",children:u})]}):null},nq=i(73859),nH=i(88349);i(21124);let nW=iv.ZP.header.withConfig({componentId:"sc-631a281b-0"})(['display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;[data-theme="light"] &{color:var(--custom-black);}@media (min-width:769px){padding-bottom:16px;}']);var nY=k.memo(()=>{let e=(0,eL.useRouter)(),t=(0,iN.Z)("global"),i=(0,iN.Z)("headerLayout"),{isLoggedIn:o,isReactivate:n}=(0,nu.Z)(),[,r]=k.useContext(eK.kn),{openMobileDrawer:a}=(0,nL.Hd)(),{isCollapsed:l}=(0,nL.gV)(),{isSessionBasedToolFlow:s,isAvatarGenFlow:d}=oF(),u=k.useMemo(()=>(0,oV.NB)(e.pathname),[e.pathname]),c=k.useMemo(()=>(0,nG.xW)(u,e.asPath),[u,e.asPath]),p=(0,tf.x1)(u),m=s||d;return(0,_.jsxs)(nW,{className:(0,na.m6)(m&&oS.tq&&"gap-2"),children:[(0,_.jsxs)("div",{className:(0,na.m6)("flex min-w-0 items-center",oS.tq&&m?"gap-2":"min-w-0 flex-1 gap-4",m&&!oS.tq&&"overflow-visible"),children:[o?(0,_.jsx)(nF.Z,{variant:"expand",iconSize:32,onClick:a,"aria-label":"Open menu",className:"md:hidden"}
1):null,p&&!m&&(0,_.jsx)(nZ,{}),!p&&!m&&(0,_.jsx)(oU.Z,{redirectTo:F.P2.STUDIO_AI_MAIN,className:(0,na.m6)("shrink-0",o?"hidden md:flex":"flex",!l&&"md:hidden"),onNavigate:()=>(0,oX.F)("logo",{cta_type:"secondary",page_name:e.pathname,cta_url:F.P2.STUDIO_AI_MAIN})}),m&&(0,_.jsx)("div",{className:(0,na.m6)("min-w-0 items-center",s?"hidden md:flex":"flex",oS.tq?"overflow-hidden":"overflow-visible",oS.tq?o?"max-w-[calc(100vw-10.5rem)]":m?"max-w-[calc(100vw-7.5rem)]":"min-w-0 flex-1":"w-max max-w-[360px]"),children:s?(0,_.jsx)(oL.ZP,{}):d&&!oS.tq?(0,_.jsx)(oL.r4,{className:"flex h-full min-h-[45px] w-full cursor-default items-center justify-between rounded-lg text-sm text-[#CFD2D5]",children:(0,_.jsx)("div",{className:"flex w-full items-center justify-between px-4 py-3 gap-2",children:(0,_.jsx)(oL.b3,{currentTool:c,selectedModelData:{model:{display_name:{en:"Model IV",ar:"Model IV"}}}})})}):null})]}),(0,_.jsxs)("div",{className:(0,na.m6)("flex shrink-0 items-center gap-2 md:gap-4",oS.tq&&"ms-auto"),children:[null,s?(0,_.jsx)("div",{className:"h-10 min-w-0 max-w-[min(14rem,calc(100vw-11rem))] overflow-visible md:hidden",children:(0,_.jsx)(oL.ZP,{})}):null,(0,_.jsxs)(oG.Z,{condition:o,children:[s?null:(0,_.jsx)(nh,{hideOn:[F.P2.STUDIO_BILLING],children:(0,_.jsx)("div",{className:"hidden md:block",children:(0,_.jsx)(nm,{subscribed:(0,_.jsx)(iW.Z,{type:"secondary",size:"small",style:{gap:4},onClick:()=>{(0,oX.F)(n?"re_activate_plan":"change_plan",{cta_type:"secondary",button_text:n?t.reActivate:t.changePlan,page_name:e.pathname}),r({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,options:{rootClassName:"w-full"},children:(0,_.jsx)(nc.ZP,{paymentFlowProps:{flow:F.SC.UPDATE,trigger_source:"header_upgrade_button"}})}})},children:(0,_.jsx)("span",{className:"text-xs font-medium",children:n?t.reActivate:t.changePlan})}),notSubscribed:(0,_.jsx)(nd,{buttonType:"secondary",size:"small"})})})}),(0,_.jsx)(oj.Z,{}),s?null:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("div",{className:"md:hidden",children:(0,_.jsx)(ns,{triggerClassName:nU.dM})}),(0,_.jsx)(o1,{analyticsPosition:"studio_header",iconProps:{className:nU.dM}}),(0,_.jsx)("div",{className:"hidden md:block",children:(0,_.jsx)(ns,{triggerClassName:nU.dM})})]}),(0,_.jsx)("div",{className:"shrink-0 overflow-visible",children:(0,_.jsx)(oN.Z,{triggerClassName:nU.dM})})]}),(0,_.jsx)(oG.Z,{condition:!o,children:(0,_.jsxs)("div",{className:"flex shrink-0 items-center gap-1.5 md:gap-4",children:[m?null:(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(iM(),{href:"/pricing",prefetch:!1,className:"studio-glass-card flex h-10 shrink-0 items-center justify-center rounded-xl px-4",onClick:()=>(0,oX.F)("pricing",{cta_type:"secondary",button_text:i.pricing,page_name:e.pathname,cta_url:"/pricing"}),children:(0,_.jsx)("span",{className:"whitespace-nowrap text-sm font-medium text-custom-white",children:i.pricing})}),(0,_.jsx)(o1,{analyticsPosition:"studio_header",iconProps:{className:nU.dM}})]}),(0,_.jsx)(iM(),{href:"/login-social",prefetch:!1,className:"shrink-0",onClick:()=>(0,oX.F)("sign_in",{cta_type:"secondary",button_text:t.shortSignIn,page_name:e.pathname,cta_url:"/login-social"}),children:(0,_.jsx)(iW.Z,{type:"secondary",size:"small",className:"![background:var(--cta-gradient)]",style:{height:m&&oS.tq?"36px":"40px",paddingLeft:m&&oS.tq?"10px":void 0,paddingRight:m&&oS.tq?"10px":void 0},children:(0,_.jsx)("span",{className:"whitespace-nowrap text-xs font-medium sm:text-sm",children:t.shortSignIn})})})]})})]})]})});let nK="cubic-bezier(0.4, 0, 0.2, 1)",nQ="0.28s",n$=iv.ZP.div.withConfig({componentId:"sc-f9d6b0dd-0"})(["position:relative;display:grid;grid-template-columns:"," minmax(0,1fr);gap:32px;width:100%;height:100%;min-height:0;padding:var(--spacing-6);transition:grid-template-columns 0.2s ",';background-color:var(--studio-canvas);&::before{content:"";position:absolute;inset:0;z-index:0;pointer-events:none;background-image:var(--studio-canvas-texture);background-size:cover;background-position:center;opacity:var(--studio-canvas-texture-opacity);transform:scaleX(-1);}[dir="rtl"] &::before{transform:none;}& > *:not([data-studio-mobile-overlay]){position:relative;z-index:1;}@media (prefers-reduced-transparency:reduce){&::before{display:none;}}@media (max-width:768px){display:flex;flex-direction:row;gap:0;padding:0;overflow:hidden;width:100%;max-width:100vw;}@media (prefers-reduced-motion:reduce){transition:none;}[data-theme="light"] &{background-color:var(--studio-canvas);}'],e=>{let{$collapsed:t}=e;return t?"".concat(nU.Fx,"px"):"".concat(nU.Mx,"px")},nK),nX=iv.ZP.div.withConfig({componentId:"sc-f9d6b0dd-1"})(["display:none;min-height:0;height:100%;flex-direction:column;@media (min-width:769px){display:flex;padding-top:var(--studio-shell-header-offset);overflow:visible;}"]),nJ=iv.ZP.div.withConfig({componentId:"sc-f9d6b0dd-2"})(["display:none;@media (max-width:768px){display:flex;position:fixed;inset-block:0;inset-inline-start:0;isolation:isolate;z-index:60;width:","px;height:100dvh;max-height:100dvh;overflow:hidden;transform:",";pointer-events:",";transition:transform "," ",';[dir="rtl"] &{transform:',";}@media (prefers-reduced-motion:reduce){transition:none;}}"],nU.Wt,e=>{let{$open:t}=e;return t?"translateX(0)":"translateX(-100%)"},e=>{let{$open:t}=e;return t?"auto":"none"},nQ,nK,e=>{let{$open:t}=e;return t?"translateX(0)":"translateX(100%)"}),n0=iv.ZP.div.withConfig({componentId:"sc-f9d6b0dd-3"})(["position:relative;flex:1;min-width:0;min-height:0;height:100%;display:flex;flex-direction:column;@media (max-width:768px){width:100%;overflow:hidden;}"]),n1=iv.ZP.div.withConfig({componentId:"sc-f9d6b0dd-4"})(["display:flex;flex-direction:column;min-height:0;height:100%;width:100%;"]),n2=iv.ZP.button.withConfig({componentId:"sc-f9d6b0dd-5"})(["display:none;@media (max-width:768px){display:block;position:fixed;inset:0;z-index:40;padding:0;border:none;cursor:pointer;background:rgba(0,0,0,0.5);opacity:",";pointer-events:",";transition:opacity "," ",";@media (prefers-reduced-motion:reduce){transition:none;}}"],e=>{let{$open:t}=e;return t?1:0},e=>{let{$open:t}=e;return t?"auto":"none"},nQ,nK),n3=iv.ZP.div.withConfig({componentId:"sc-f9d6b0dd-6"})(["position:relative;z-index:30;flex-shrink:0;overflow:visible;background-color:transparent;@media (max-width:768px){position:sticky;top:0;background-color:transparent;transition:background-color 0.15s ease,backdrop-filter 0.15s ease;"," "," padding:12px 16px;@media (prefers-reduced-motion:reduce){transition:none;}}"],e=>{let{$scrolled:t}=e;return t&&(0,iv.iv)(['background:var(--glass-fill-strong);backdrop-filter:blur(40px) saturate(1.4);-webkit-backdrop-filter:blur(40px) saturate(1.4);[data-theme="light"] &{background:rgba(255,255,255,0.7);}@media (prefers-reduced-transparency:reduce){background:var(--studio-canvas);backdrop-filter:none;-webkit-backdrop-filter:none;}'])},e=>{let{$hiddenOnMobile:t}=e;return t&&(0,iv.iv)(["display:none;"])}),n4=iv.ZP.div.withConfig({componentId:"sc-f9d6b0dd-7"})(["flex:1;min-height:0;overflow:auto;display:flex;flex-direction:column;-ms-overflow-style:none;scrollbar-width:none;&::-webkit-scrollbar{display:none;width:0;height:0;}"]),n5=e=>{let{children:t}=e,{isCollapsed:i}=(0,nL.gV)(),{isMobileDrawerOpen:o}=(0,nL.hE)(),{closeSidebar:n,closeMobileDrawer:r}=(0,nL.Hd)(),a=(0,eL.useRouter)(),l=(0,tf.x1)((0,oV.NB)(a.pathname)),[s,d]=k.useState(!1);return k.useEffect(()=>{var e;let t=document.getElementById("studioShellMainContent");d((null!==(e=null==t?void 0:t.scrollTop)&&void 0!==e?e:0)>0)},[a.pathname]),k.useEffect(()=>{if(!o)return;let e=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.body.style.overflow=e}},[o]),(0,_.jsxs)(n$,{"data-studio-shell":"",$collapsed:i,children:[(0,_.jsx)(nX,{children:(0,_.jsx)(nV.Z,{onAppOrToolNavigate:n})}),(0,_.jsx)(n0,{children:(0,_.jsx)(n1,{children:(0,_.jsxs)(n4,{id:"studioShellMainContent",className:"hiddenScrollBar",onScroll:e=>{let t=e.currentTarget.scrollTop>0;d(e=>e===t?e:t)},children:[(0,_.jsx)(n3,{$hiddenOnMobile:l,$scrolled:s,children:(0,_.jsx)(nY,{})}),t]})})}),(0,_.jsx)(n2,{type:"button","data-studio-mobile-overlay":"","aria-label":"Close menu","aria-hidden":!o,tabIndex:o?0:-1,$open:o,onClick:r}),(0,_.jsx)(nJ,{"data-studio-mobile-overlay":"",$open:o,children:(0,_.jsx)(nV.Z,{forceExpanded:!0,isDrawer:!0,onNavigate:n})})]})},n6=e=>{let{children:t}=e;return(0,_.jsx)(n5,{children:t})};var n8=e=>{let{children:t}=e;return(0,_.jsx)(nL.ZP,{children:(0,_.jsx)(n6,{children:t})})};let n9=iv.ZP.div.withConfig({componentId:"sc-3a1315c9-0"})([""," @media (max-width:768px){padding:0;","}flex:1;min-height:0;overflow:",";",' [data-theme="light"] &{background-color:var(--primary-color);',"}& span,h1,h2,h3,h,h5,h6,p,div,a,button,input{user-select:none;}"],e=>(null==e?void 0:e.$noSpacing)?"":"\n    padding: 24px;\n    padding-top: calc(88px + var(--banner-height, 0px));\n    ",e=>(null==e?void 0:e.$noSpacing)?"":"\n    padding-top: calc(72px + var(--banner-height, 0px));\n    ".concat(e=>(null==e?void 0:e.$bottomPadding)?"\n        padding-bottom: 76px;\n        ":"\n        padding-bottom: 0;\n        ","\n    "),e=>e.$shellLayout?"hidden":"auto",e=>e.$shellLayout?"\n    height: 100%;\n    display: flex;\n    flex-direction: column;\n  ":"",e=>(null==e?void 0:e.$bgOld)?"\n        background-color: rgb(245, 245, 245);\n        ":"");var n7=k.memo(e=>{let t=(0,eL.useRouter)(),{isAiStudioFlow:i,isSessionBasedToolFlow:o,isEditorFlow:n,isAIShortFlow:r,isAppsFlow:a,isNewStudioShell:l}=oF(),{isLoggedIn:s}=(0,nu.Z)(),d=k.useMemo(()=>{let e=t.pathname.replace(/^\/(en|ar|es|fr|it|tr)\//,"/");return F._i.some(t=>e.startsWith(t))},[t.pathname]),u=s||d,c=k.useMemo(()=>"/404"===t.pathname||"/invalid-link"===t.pathname,[t.pathname]),p=k.useMemo(()=>"/share/[shareKey]"===t.pathname,[t.pathname]);return l?(0,_.jsx)(iG,{className:"flex",children:(0,_.jsx)(n9,{className:"hiddenScrollBar",id:"studioLayoutChildrenWrapper",$noSpacing:!0,$shellLayout:!0,$bgOld:i||n,$bottomPadding:u,children:(0,_.jsx)(n8,{children:e.children})})}):(0,_.jsx)(iG,{className:"flex",children:(0,_.jsx)(n9,{className:"hiddenScrollBar ",id:"studioLayoutChildrenWrapper",$bgOld:i||n,$bottomPadding:u,$noSpacing:[F.P2.CREATE_VIDEO,F.P2.CREATE_VIDEO_RESIZER,F.P2.CREATE_VIDEO_EDITOR,F.P2.CREATE_VIDEO_PUBLISHER,F.P2.CREATE_VIDEO_EDITOR_TABS].includes(t.pathname)||t.pathname.includes(F.P2.STUDIO_TOOLS)||i||p||c,children:(0,_.jsxs)("div",{className:"".concat(o||r||a?"h-full":"md:h-full"),children:[(0,_.jsx)(nz,{}),e.children]})})})}),re=i(7333);let rt=iv.ZP.div.withConfig({componentId:"sc-b033084-0"})(["display:flex;flex-direction:row;align-items:flex-start;padding:24px;gap:16px;border:2px solid rgba(255,255,255,0.1);border-radius:8px;"]);var ri=()=>{var e;let t=(0,iN.Z)("planExpired"),i=(0,I.v9)(e=>{var t;return null==e?void 0:null===(t=e.Auth)||void 0===t?void 0:t.user}),o=k.useMemo(()=>{var e;return(null==i?void 0:null===(e=i.subscription)||void 0===e?void 0:e.subscription_status)===F.Ch.PAST_DUE},[null==i?void 0:null===(e=i.subscription)||void 0===e?void 0:e.subscription_status]),[n,r]=k.useContext(eK.kn);return o?(0,_.jsxs)(rt,{className:"mb-8",children:[(0,_.jsx)(ih.Z,{src:"/icons/info-circle.svg",width:"24px",height:"24px",stroke:"var(--secondary-color)"}),(0,_.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,_.jsx)("span",{className:"text-secondary heading-6",children:t.title}),(0,_.jsxs)("div",{className:"flex flex-col items-start gap-1 x-small-text",children:[(0,_.jsx)("span",{className:"text-white-80",children:t.description}),(0,_.jsx)("span",{onClick:()=>{r({type:eK.BT.MODAL_STATE_CHANGED,payload:{closable:!1,isOpen:!0,children:(0,_.jsx)(re.Z,{})}})},className:"text-secondary hover:underline hover:text-secondary cursor-pointer inline-block",children:t.action})]})]})]}):null},ro=i(36808),rn=i.n(ro);let rr=()=>{var e;return null!==(e=document.querySelector("#studioShellMainContent"))&&void 0!==e?e:document.querySelector("#studioLayoutChildrenWrapper")},ra=iv.ZP.main.withConfig({componentId:"sc-9a3aba38-0"})([""," outline:unset;"," @media (max-width:768px){"," ","}"],e=>e.$noSpacing?"":"\n    margin-top: 16px;\n  ",e=>{let{$includeHeight:t}=e;return t?"\n    height: var(--main-wrapper-height, calc(100% - 72px) + var(--banner-height, 0px));\n  ":""},e=>{let{$shellLayout:t}=e;return t?"\n    padding: 0;\n  ":"\n    padding: 0px 16px 16px 16px;\n    padding-bottom: 80px;\n  "},e=>{let{$includeHeight:t}=e;return t?"\n    height: var(--main-wrapper-height, calc(100% - 88px) + var(--banner-height, 0px));\n  ":""}),rl=[F.P2.CREATE_VIDEO,F.P2.CREATE_VIDEO_RESIZER,F.P2.CREATE_VIDEO_EDITOR,F.P2.CREATE_VIDEO_PUBLISHER,F.P2.CREATE_VIDEO_EDITOR_TABS,F.P2.STUDIO_AI_IMAGE_TO_SCENE,F.P2.STDIO_AI_TEXT_TO_SCENE,F.P2.STUDIO_AI_IMAGE_EDITOR],rs=()=>{let e=(0,eL.useRouter)(),{isEditorFlow:t,isAiStudioFlow:i,isSessionBasedToolFlow:o,isAppsFlow:n}=oF(),[r,a]=k.useState(0);k.useEffect(()=>{var t,i;let o=t=>{if(rl.some(e=>t.includes(e)))return;let i=rr();i&&sessionStorage.setItem("scroll-".concat(e.asPath),i.scrollTop.toString())},n=e=>{a(e=>e+1);let t=sessionStorage.getItem("scroll-".concat(e)),i=rr();t?i&&(i.scrollTo(0,parseInt(t)),sessionStorage.removeItem("scroll-".concat(e))):i&&i.scrollTo(0,0)};return null===(t=e.events)||void 0===t||t.on("routeChangeStart",o),null===(i=e.events)||void 0===i||i.on("routeChangeComplete",n),()=>{var t,i;null===(t=e.events)||void 0===t||t.off("routeChangeStart",o),null===(i=e.events)||void 0===i||i.off("routeChangeComplete",n)}},[e.events,e.asPath]);let l=k.useMemo(()=>e.pathname.includes(F.P2.STUDIO_TOOLS),[e.pathname,r]),s=k.useMemo(()=>"/404"===e.pathname||"/invalid-link"===e.pathname,[e.pathname,r]),d=k.useMemo(()=>"/share/[shareKey]"===e.pathname,[e.pathname,r]),u=k.useMemo(()=>t||l||i||n||d||s||e.pathname.includes("/template/")||e.pathname.includes("/studio-photoshoot"),[t,l,i,n,d,s,r]);return k.useEffect(()=>{let e;"undefined"!=typeof document&&(e=(i||d||l)&&oS.tq&&!o?"calc(100% - var(--t2v-header-height))":l?"calc(100% - 72px + var(--banner-height, 0px))":o?"100%":oS.tq?"calc(100% - 88px + var(--banner-height, 0px))":"calc(100% - 72px + var(--banner-height, 0px))",document.documentElement.style.setProperty("--main-wrapper-height",e))},[i,d,l,e.pathname,r]),{shouldHaveNoSpacing:u,isToolFlow:l,isShareFlow:d,isInvalidLinkFlow:s,routeKey:r}};var rd=(0,ig.Z)(e=>{let t=(0,eL.useRouter)(),{isLoggedIn:i}=k.useContext(eG.Vo),{isEditorFlow:o,isAiStudioFlow:n,isSessionBasedToolFlow:r,isAppsFlow:a,isNewStudioShell:l}=oF(),{shouldHaveNoSpacing:s,isToolFlow:d,isShareFlow:u,isInvalidLinkFlow:c}=rs(),p=k.useMemo(()=>rn().get("API_TOKEN"),[i]),m=k.useMemo(()=>{let e=t.pathname.replace(/^\/(en|ar|es|fr|it|tr)\//,"/");return F._i.some(t=>e.startsWith(t))},[t.pathname]),h=i||m,f=k.useMemo(()=>t.pathname.includes("/templates/")||t.pathname.includes("/template/")||t.pathname.includes("/apps"),[t.pathname]),v=k.useMemo(()=>t.pathname.includes("/template/")||t.pathname.includes("/apps"),[t.pathname]),g=!p&&!u&&!c&&!v&&!m;return(0,_.jsxs)(n7,{children:[(0,_.jsxs)(ra,{$noSpacing:s,$shellLayout:l,$includeHeight:!g&&(l||h&&!f),role:"main",className:"w-full ".concat(g?"":"flex-1 min-h-0"," ").concat(v?oS.tq?"!h-full !p-0":"!h-full":""),style:r||a?{paddingBottom:0}:void 0,children:[o||d||n||c||t.pathname.includes("/ai-studio")?null:(0,_.jsx)(ri,{}),e.children]}),g?(0,_.jsx)(iF,{}):null]})});let ru=iv.ZP.div.withConfig({componentId:"sc-cea824a7-0"})(["cursor:pointer;display:flex;align-items:center;padding:12px;gap:8px;@media (max-width:769px){padding:8px;width:32px;height:32px;}transition:background 0.3s ease;",' &:hover{background:var(--eerie-black);}&[data-active="true"]{background:linear-gradient(#151515,#151515) padding-box,linear-gradient(135deg,#6d5dd3 36.56%,#5da8d3 100%) border-box;}border-radius:10px;border:1px solid transparent;[data-theme="light"] &{&:hover{background:#F0F0F0;}&[data-active="true"]{background:#F0F0F0;}}'],e=>(null==e?void 0:e.$isActive)?"\n  background: var(--eerie-black);\n  ":"");iv.ZP.span.attrs({className:"sidebar-title"}).withConfig({componentId:"sc-cea824a7-1"})(["",""],e=>e.isActive?"color: var(--secondary-color)":"color: rgba(255,255,255,0.65)");var rc=i(14427),rp=()=>{let e=(0,iN.Z)("studio.sidebars.account"),t=(0,eL.useRouter)(),i=(0,I.I0)(),o=e=>t.asPath.includes(e);return(0,_.jsxs)(rc.Z,{className:"flex flex-row lg:flex-
1col gap-2",children:[(0,_.jsx)(iM(),{href:"/studio/account",children:(0,_.jsx)(nq.Z,{message:(0,_.jsx)(nH.Z,{children:e.accountSettings}),position:"right-center",disabled:oS.tq||oS.Em,children:(0,_.jsx)(ru,{className:"flex",$isActive:o("/studio/account"),onClick:()=>{i(en.Z.changeHamburgerTab({isTabVisible:!1}))},children:(0,_.jsx)(ih.Z,{src:"/icons/profile.svg",width:"16px",height:"16px",fill:iH.theme.extend.colors["white-80"]})})})}),(0,_.jsx)(iM(),{href:"/studio/billing",children:(0,_.jsx)(nq.Z,{message:(0,_.jsx)(nH.Z,{children:e.billingSettings}),position:"right-center",disabled:oS.tq||oS.Em,children:(0,_.jsx)(ru,{className:"flex",$isActive:o("/studio/billing"),onClick:()=>{i(en.Z.changeHamburgerTab({isTabVisible:!1}))},children:(0,_.jsx)(ih.Z,{src:"/icons/card.svg",svgProps:{className:"not-path"},width:"16px",height:"16px",stroke:iH.theme.extend.colors["white-80"]})})})})]})};let rm=iv.ZP.div.withConfig({componentId:"sc-ff8a5906-0"})(["gap:8px;"]),rh=iv.ZP.div.withConfig({componentId:"sc-ff8a5906-1"})(["cursor:pointer;display:flex;align-items:center;padding:12px;gap:8px;transition:background 0.3s ease;@media (max-width:769px){padding:8px;width:32px;height:32px;}",' &:hover{background:var(--eerie-black);}&[data-active="true"]{background:linear-gradient(#151515,#151515) padding-box,linear-gradient(135deg,#6d5dd3 36.56%,#5da8d3 100%) border-box;}border-radius:10px;border:1px solid transparent;[data-theme="light"] &{',' &:hover{background:#f0f0f0;}&[data-active="true"]{background:#f0f0f0;}}'],e=>(null==e?void 0:e.$isActive)?"\n  background: var(--eerie-black);\n  ":"",e=>(null==e?void 0:e.$isActive)?"\n  background: var(--shade-2);\n  ":"");var rf=()=>{let e=(0,iN.Z)("studio.sidebars.main"),t=(0,eL.useRouter)(),i=(0,I.I0)(),o=e=>t.asPath.includes(e),n=()=>{i(en.Z.changeHamburgerTab({isTabVisible:!1}))};return(0,_.jsxs)(rm,{className:"flex flex-row lg:flex-col relative",children:[(0,_.jsx)(nq.Z,{message:(0,_.jsx)(nH.Z,{children:e.videos}),position:"right-center",disabled:oS.tq||oS.Em,children:(0,_.jsx)(iM(),{href:"/studio/videos",children:(0,_.jsx)(rh,{className:"flex items-center justify-center",$isActive:o("/studio/videos")&&!o("/studio/videos/deleted"),onClick:n,children:(0,_.jsx)("div",{className:"w-4 h-4",children:(0,_.jsx)(ih.Z,{src:"/icons/video-octagon2.svg",width:"16px",height:"16px",stroke:iH.theme.extend.colors["ph-color"]})})})})}),(0,_.jsx)(nq.Z,{message:(0,_.jsx)(nH.Z,{children:e.imageGenerator}),position:"right-center",disabled:oS.tq||oS.Em,children:(0,_.jsx)(iM(),{href:"/ai-studio/images",children:(0,_.jsx)(rh,{className:"flex items-center justify-center",$isActive:o("/ai-studio/images")&&!o("/ai-studio/images/deleted"),onClick:n,children:(0,_.jsx)("div",{className:"w-4 h-4",children:(0,_.jsx)(ih.Z,{src:"/icons/gallery.svg",width:"16px",height:"16px",fill:iH.theme.extend.colors["ph-color"]})})})})}),(0,_.jsx)(nq.Z,{message:(0,_.jsx)(nH.Z,{children:e.voiceovers}),position:"right-center",disabled:oS.tq||oS.Em,children:(0,_.jsx)(iM(),{href:"/ai-studio/voiceovers",children:(0,_.jsx)(rh,{className:"flex items-center justify-center",$isActive:o("/ai-studio/voiceovers"),onClick:n,children:(0,_.jsx)("div",{className:"w-4 h-4",children:(0,_.jsx)(ih.Z,{src:"/icons/microphone-2.svg",width:"16px",height:"16px",fill:iH.theme.extend.colors["ph-color"]})})})})}),(0,_.jsx)(nq.Z,{message:(0,_.jsx)(nH.Z,{children:e.folders}),position:"right-center",disabled:oS.tq||oS.Em,children:(0,_.jsx)(iM(),{href:"/ai-studio/library?tab=folders",children:(0,_.jsx)(rh,{className:"flex items-center justify-center",$isActive:o("/studio/folders")||o("tab=folders"),onClick:n,children:(0,_.jsx)("div",{className:"w-4 h-4",children:(0,_.jsx)(ih.Z,{src:"/icons/folder.svg",width:"16px",height:"16px",fill:iH.theme.extend.colors["ph-color"]})})})})}),(0,_.jsx)(nq.Z,{message:(0,_.jsx)(nH.Z,{children:e.deleted}),position:"right-center",disabled:oS.tq||oS.Em,children:(0,_.jsx)(iM(),{href:"/ai-studio/library?tab=deleted",onClick:n,children:(0,_.jsx)(rh,{className:"flex items-center justify-center",$isActive:o("/studio/videos/deleted")||o("tab=deleted"),onClick:n,children:(0,_.jsx)("div",{className:"w-4 h-4",children:(0,_.jsx)(ih.Z,{src:"/icons/trash.svg",width:"16px",height:"16px",fill:iH.theme.extend.colors["ph-color"]})})})})})]})},rv=i(34567);let rg=iv.ZP.div.withConfig({componentId:"sc-a7b7e5a8-0"})(['padding:16px 12px;border:1px solid #ffffff1a;border-radius:16px;backdrop-filter:blur(4px);@media (max-width:768px){padding:8px;}[data-theme="light"] &{border:1px solid #0000001a;box-shadow:0px 4px 24px 0px #e4e8f7cc;}']);var ry=()=>{let e=(0,eL.useRouter)(),{getDirection:t}=k.useContext(eB.AZ),i=k.useMemo(()=>[F.P2.STUDIO_ACCOUNT,F.P2.STUDIO_CONNECTIONS,F.P2.STUDIO_BILLING,F.P2.NOTIFICATIONS_SETTINGS].includes(e.pathname),[e.pathname]);return(0,_.jsx)(rv.ZP,{animation:t===F.mQ.LTR?"slideRight":"slideLeft",duration:300,delay:100,className:"lg:h-full",children:(0,_.jsx)(rg,{children:i?(0,_.jsx)(rp,{}):(0,_.jsx)(rf,{})})})},rb=i(23283),rA=()=>{let e=(0,eL.useRouter)(),t=(0,I.I0)(),i=k.useMemo(()=>[F.P2.STUDIO_ACCOUNT,F.P2.STUDIO_CONNECTIONS,F.P2.STUDIO_BILLING,F.P2.NOTIFICATIONS_SETTINGS].includes(e.pathname),[e.pathname]),o=(0,iN.Z)("studio.sidebars.account"),n=(0,iN.Z)("studio.sidebars.main"),r=()=>{t(en.Z.changeHamburgerTab({isTabVisible:!1}))},a=[{id:"account",href:"/studio/account",label:o.accountSettings,isActive:e=>e.includes("/studio/account")},{id:"billing",href:"/studio/billing",label:o.billingSettings,isActive:e=>e.includes("/studio/billing")}],l=[{id:"videos",href:"/ai-studio/library",label:n.videos,isActive:e=>e.includes("/ai-studio/library")&&!e.includes("tab=folders")&&!e.includes("tab=deleted")&&!e.includes("tab=images")&&!e.includes("tab=audio")},{id:"images",href:"/ai-studio/library?tab=images",label:n.imageGenerator,isActive:e=>e.includes("/ai-studio/images")||e.includes("tab=images")},{id:"voiceovers",href:"/ai-studio/library?tab=audio",label:n.voiceovers,isActive:e=>e.includes("/ai-studio/voiceovers")||e.includes("tab=audio")},{id:"folders",href:"/ai-studio/library?tab=folders",label:n.folders,isActive:e=>e.includes("/studio/folders")||e.includes("tab=folders")},{id:"deleted",href:"/ai-studio/library?tab=deleted",label:n.deleted,isActive:e=>e.includes("/studio/videos/deleted")||e.includes("tab=deleted")}],s=i?a:l,d=k.useMemo(()=>s.map(t=>({id:t.id,label:t.label,isActive:t.isActive(e.asPath),onClick:()=>(e.push(t.href),r(),null)})),[s,e,r]),u=k.useMemo(()=>{var t;let i=s.find(t=>t.isActive(e.asPath));return(null==i?void 0:i.id)||(null===(t=s[0])||void 0===t?void 0:t.id)||""},[s,e.asPath]);return(0,_.jsx)(rb.Z,{items:d,activeTabId:u,containerId:"library-mobile-navigation-container",onTabChange:t=>{let i=s.find(e=>e.id===t);i&&(e.push(i.href),r())},className:"relative overflow-x-scroll hiddenScrollBar -mx-4",containerClassName:"hiddenScrollBar px-4",tabClassName:"text-sm px-0",activeClassName:"text-custom-white",inactiveClassName:"text-t-shade-2",activeLineClassName:"bg-custom-white",marginBottom:"24px"})};let rx=iv.ZP.div.withConfig({componentId:"sc-aeacaf50-0"})(['position:absolute;top:50%;left:24px;transform:translateY(-50%);display:flex;align-items:center;justify-content:center;@media (max-width:769px){display:none;}[dir="rtl"] &{left:auto;right:24px;}']),rw=iv.ZP.div.withConfig({componentId:"sc-aeacaf50-1"})(['padding-left:88px;[dir="rtl"] &{padding-left:0;padding-right:88px;}@media (max-width:769px){padding-inline:0 !important;}']),r_=e=>(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(rx,{"data-name":"library-sidebar-wrapper",children:(0,_.jsx)(ry,{})}),(0,_.jsxs)(rw,{className:"h-full w-full",children:[oS.tq&&(0,_.jsx)(rA,{}),e.children]})]});var rS=i(87959),rC=i(56771);function rk(e){return(0,rC.w_)({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 11.16c.887-.933 1.813-1.865 2.78-2.6C15.952 7.668 17.267 7 18.75 7 21.657 7 24 9.615 24 12.25s-2.343 5.25-5.25 5.25c-1.483 0-2.798-.668-3.97-1.56-.967-.735-1.893-1.667-2.78-2.6-.887.933-1.813 1.865-2.78 2.6-1.172.892-2.487 1.56-3.97 1.56C2.343 17.5 0 14.885 0 12.25S2.343 7 5.25 7c1.483 0 2.798.667 3.97 1.56.967.735 1.893 1.667 2.78 2.6Z
1M5.25 8.5c-2.032 0-3.75 1.895-3.75 3.75S3.218 16 5.25 16c1.017 0 2.014-.457 3.062-1.253.89-.678 1.758-1.554 2.655-2.497-.897-.943-1.765-1.82-2.655-2.497C7.264 8.957 6.267 8.5 5.25 8.5Zm7.783 3.75c.897.943 1.765 1.82 2.655 2.497C16.736 15.543 17.733 16 18.75 16c2.032 0 3.75-1.895 3.75-3.75S20.782 8.5 18.75 8.5c-1.017 0-2.014.457-3.062 1.253-.89.678-1.758 1.554-2.655 2.497Z"}}]})(e)}var rT=i(47713);let rE=iv.ZP.div.withConfig({componentId:"sc-16d2a3c2-0"})(["background:#0c0c0c;border-bottom:1px solid rgba(255,255,255,0.05);display:flex;align-items:center;justify-content:space-between;padding:16px 32px;width:100%;"]),rP=iv.ZP.div.withConfig({componentId:"sc-16d2a3c2-1"})(["display:flex;flex-direction:column;gap:6px;align-items:flex-end;width:204px;"]),rI=iv.ZP.div.withConfig({componentId:"sc-16d2a3c2-2"})(["display:flex;align-items:center;justify-content:space-between;width:100%;"]),rD=iv.ZP.p.withConfig({componentId:"sc-16d2a3c2-3"})(['font-family:"Cairo",sans-serif;font-weight:500;font-size:12px;line-height:normal;color:#6681d3;text-align:right;margin:0;']),rO=iv.ZP.div.withConfig({componentId:"sc-16d2a3c2-4"})(["display:flex;gap:4px;align-items:center;justify-content:flex-end;"]),rN=iv.ZP.p.withConfig({componentId:"sc-16d2a3c2-5"})(['font-family:"Cairo",sans-serif;font-weight:500;font-size:12px;line-height:normal;color:#cfd2d5;text-align:right;direction:rtl;margin:0;']),rj=iv.ZP.div.withConfig({componentId:"sc-16d2a3c2-6"})(["display:inline-grid;grid-template-columns:max-content;grid-template-rows:max-content;justify-items:start;line-height:0;width:100%;"]),rM=iv.ZP.div.withConfig({componentId:"sc-16d2a3c2-7"})(["background:#cfd2d5;height:6px;border-radius:4px;width:202.019px;grid-column:1;grid-row:1;"]),rR=iv.ZP.div.withConfig({componentId:"sc-16d2a3c2-8"})(["background:#6681d3;height:6px;border-radius:4px;width:","px;grid-column:1;grid-row:1;margin-left:","px;"],e=>e.progress,e=>202.019-e.progress),rz=iv.ZP.div.withConfig({componentId:"sc-16d2a3c2-9"})(["display:flex;gap:24px;align-items:center;justify-content:flex-end;"]),rL=iv.ZP.p.withConfig({componentId:"sc-16d2a3c2-10"})(['font-family:"Cairo",sans-serif;font-weight:500;font-size:16px;line-height:normal;color:#cfd2d5;text-align:right;margin:0;transition:color 0.3s ease;&:hover{color:var(--secondary-color);}@media (max-width:768px){display:none;}']);iv.ZP.div.withConfig({componentId:"sc-16d2a3c2-11"})(["height:40px;width:39px;position:relative;flex-shrink:0;img{display:block;max-width:none;width:100%;height:100%;}"]);var rV=k.memo(e=>{var t,i,o,n;let{usedImages:r,totalImages:a}=e,{userState:l}=(0,rS.Z)(),s=null!==(o=null==l?void 0:null===(t=l.credits)||void 0===t?void 0:t.used)&&void 0!==o?o:0,d=null!==(n=null==l?void 0:null===(i=l.credits)||void 0===i?void 0:i.total)&&void 0!==n?n:50,u=Math.min(s/d*100,100),c=(0,eL.useRouter)(),p=k.useMemo(()=>c.pathname===(0,rT.kM)(c.pathname,"library")?(0,rT.kM)(c.pathname,"app"):(0,rT.kM)(c.pathname,"library"),[c.pathname]);return(0,_.jsxs)(rE,{children:[(0,_.jsxs)(rz,{children:[(0,_.jsx)(oU.Z,{width:"15px",height:"24px",className:"w-[39px] h-[40px]",redirectTo:p}),(null==c?void 0:c.pathname)!==p&&(0,_.jsx)(iM(),{href:p,children:(0,_.jsx)(rL,{children:"مكتبة الصور"})})]}),(0,_.jsxs)(rP,{children:[(0,_.jsxs)(rI,{children:[(0,_.jsxs)(rO,{children:[(0,_.jsx)(ih.Z,{src:"/icons/gallery.svg",width:"16px",height:"16px",fill:"#cfd2d5"}),(0,_.jsx)(rN,{children:"الصور المستخدمة"})]}),d>=1e4?(0,_.jsx)(rk,{size:18,color:"#6681d3"}):(0,_.jsxs)(rD,{children:[d,"/",s]})]}),(0,_.jsxs)(rj,{children:[(0,_.jsx)(rM,{}),(0,_.jsx)(rR,{progress:u/100*202.019})]})]})]})}),rF=k.memo(e=>{let t=(0,eL.useRouter)().pathname.replace(/^\/(en|ar|es|fr|it|tr)\//,"/"),i=(0,rT.nG)(t),o=t==="/".concat(i,"/login")||t==="/".concat(i,"/redirect")||t==="/".concat(i,"/change-password");return(0,_.jsxs)(iG,{className:"flex flex-col",children:[!o&&(0,_.jsx)(rV,{}),(0,_.jsx)("div",{className:"w-full flex-1 overflow-auto",children:e.children})]})}),rU=e=>{let{children:t}=e;return(0,_.jsx)(_.Fragment,{children:t})},rG=i(76560);let rB={auth:iO,salla:rF,studio:rd,landing:rd,library:e=>(0,_.jsx)(rd,{children:(0,_.jsx)(r_,{children:e.children})})},rZ=e=>
1(e.split("/").filter(Boolean),"/salla-faqs"!==e.replace(/^\/(en|ar|es|fr|it|tr)\//,"/")&&eJ(e)?rB.salla:e.startsWith("/login")||e.startsWith("/signup")||e.startsWith("/email-verification")||e.startsWith("/help/verification")||e.startsWith("/help/reset-password")?rB.auth:e.includes("/studio/videos")||e.includes("/studio/folders")||e.includes("/studio/account")||e.includes("/studio/billing")||e.includes("/studio/notifications-settings")||e.includes("/ai-studio/images")||e.includes("/ai-studio/voiceovers")?rB.studio:e.startsWith("/app/")||"/download"===e||e.startsWith("/lp/")||e.startsWith("/admin")||(0,rG.Bw)(e)?rU:e.startsWith("/studio")||e.startsWith("/ai-studio")||e.startsWith("/apps")||e.startsWith("/ai-tools")||"/"===e||(0,oV.Aq)((0,oV.NB)(e))?rB.studio:(e.startsWith("/home")||e.startsWith("/help")||e.startsWith("/connect")||e.startsWith("/creative-studio")||e.startsWith("/tools/"),rB.landing)),rq=e=>{let t=rZ(e);return t===rB.library?{OuterLayout:rB.studio,InnerLayout:r_}:{OuterLayout:t,InnerLayout:null}};var rH=i(4298),rW=i.n(rH),rY=()=>{let[e,t]=k.useState(!1);return(k.useEffect(()=>{let e=()=>{try{var e,t,i,o,n,r;let a=null===(e=window)||void 0===e?void 0:e.CookieConsentApi,l=null==a?void 0:null===(t=a.getUserPreferences)||void 0===t?void 0:t.call(a),s=null!==(n=null!==(o=null!==(i=null==l?void 0:l.accepted_categories)&&void 0!==i?i:null==l?void 0:l.acceptedCategories)&&void 0!==o?o:null==l?void 0:l.categories)&&void 0!==n?n:null==l?void 0:l.accepted_categories;if(Array.isArray(s))return s.includes("analytics");if((null==l?void 0:l.accept_type)==="accept_all")return!0;let d=rn().get("cc_cookie");if(!d)return!1;let u=JSON.parse(d),c=null!==(r=null==u?void 0:u.categories)&&void 0!==r?r:null==u?void 0:u.accepted_categories;if(Array.isArray(c))return c.includes("analytics");if((null==u?void 0:u.accept_type)==="accept_all")return!0}catch(e){}return!1},i=()=>t(e());return i(),window.addEventListener("bith:cookieconsent",i),()=>window.removeEventListener("bith:cookieconsent",i)},[]),e)?(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)(rW(),{id:"clarity-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:'(function(c,l,a,r,i,t,y){c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};t=l.createElement(r);t.async=1;t.src="https://www.clarity.ms/tag/"+i;y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);})(window,document,"clarity","script","j4qmr8vzvb");'}}),(0,_.jsx)(rW(),{id:"hot-jar-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n            (function(h,o,t,j,a,r){\n              h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments);};\n              h._hjSettings={hjid:".concat("3289487",",hjsv:6};\n              a=o.getElementsByTagName('head')[0];\n              r=o.createElement('script');r.async=1;\n              r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\n              a.appendChild(r);\n            })(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');\n          ")}}),(0,_.jsx)(rW(),{id:"sendinblue-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:'\n            (function() {\n              window.sib = {\n                  equeue: [],\n                  client_key: "1nkuwlp75pcb96ch6ec1jpws"\n              };\n              window.sendinblue = {};\n              for (var j = ["track", "identify", "trackLink", "page"], i = 0; i < j.length; i++) {\n              (function(k) {\n                  window.sendinblue[k] = function() {\n                      var arg = Array.prototype.slice.call(arguments);\n                      (window.sib[k] || function() {\n                              var t = {};\n                              t[k] = arg;\n                              window.sib.equeue.push(t);\n                          })(arg[0], arg[1], arg[2], arg[3]);\n                      };\n                  })(j[i]);\n              }\n              var n = document.createElement("script"),\n                  i = document.getElementsByTagName("script")[0];\n              n.type = "text/javascript", n.id = "sendinblue-js", n.async = !0, n.src = "https://sibautomation.com/sa.js?key=" + window.sib.client_key, i.parentNode.insertBefore(n, i), window.sendinblue.page();\n            })();\n          '}}),(0,_.jsx)(rW(),{id:"google-analytics-script",strategy:"lazyOnload",dangerouslySetInnerHTML:{__html:"\n            (function (i, s, o, g, r, a, m) {\n              i['GoogleAnalyticsObject'] = r;\n              (i[r] =\n                i[r] ||\n                function () {\n                  (i[r].q = i[r].q || []).push(arguments);\n                }),\n                (i[r].l = 1 * new Date());\n              (a = s.createElement(o)), (m = s.getElementsByTagName(o)[0]);\n              a.async = 1;\n              a.src = g;\n              m.parentNode.insertBefore(a, m);\n            })(\n              window,\n              document,\n              'script',\n              'https://www.google-analytics.com/analytics.js',\n              'ga'\n            );\n            ga('create', '".concat(F.fz,"', 'auto');\n            ga('send', 'pageview');\n          ")}})]}):null},rK=function(e){var t;let{Component:i,pageProps:o,router:n}=e,{OuterLayout:r,InnerLayout:a}=rq(n.pathname),l=null!==(t=i.getLayout)&&void 0!==t?t:e=>e,s=a?(0,_.jsx)(a,{children:(0,_.jsx)(i,{...o})}):(0,_.jsx)(i,{...o});return(0,_.jsxs)(_.Fragment,{children:[(0,_.jsxs)(E(),{children:[(0,_.jsx)("link",{rel:"manifest",href:"/manifest.json"}),(0,_.jsx)("link",{rel:"icon",href:"/favicon.ico",sizes:"32x32"}),(0,_.jsx)("meta",{name:"theme-color",content:"#0c0c0c"}),(0,_.jsx)("meta",{name:"mobile-web-app-capable",content:"yes"}),(0,_.jsx)("link",{rel:"apple-touch-icon",href:"/logos/bith-logo.png"}),(0,_.jsx)("meta",{name:"apple-mobile-web-app-status-bar",content:"#0c0c0c"}),(0,_.jsx)("meta",{name:"viewport",content:"width=device-width, initial-scale=1.0, viewport-fit=cover, user-scalable=no"})]}),(0,_.jsx)(im,{SEO:null==o?void 0:o.SEO}),(0,_.jsx)(rY,{}),(0,_.jsx)(ir,{children:(0,_.jsx)(tN,{dehydratedState:null==o?void 0:o.dehydratedState,children:l((0,_.jsx)(r,{children:s}))})}),(0,_.jsx)(C(),{id:P.__hash,children:P})]})};function rQ(e){}},10847:function(e,t,i){"use strict";let o=i(69808);e.exports={content:["./pages/**/*.{js,ts,jsx,tsx}","./components/**/*.{js,ts,jsx,tsx}","./public/**/*.{js,ts,jsx,tsx}","./lib/**/*.{js,ts,jsx,tsx}"],theme:{extend:{colors:{primary:"var(--primary-color)",secondary:"rgb(var(--secondary-color-rgb) / <alpha-value>)","secondary-2":"var(--secondary-color-2)","secondary-3":"rgb(var(--secondary-color-3-rgb) / <alpha-value>)","secondary-gradient":"var(--secondary-color)",accent:"var(--accent-color)","outer-space":"var(--outer-space)","roman-silver":"var(--roman-silver)",white:"var(--white)","earth-yellow":"var(--earth-yellow)","electric-green":"#00FF00","white-80":"var(--white-80-color)","white-70":"rgba(255,255,255,0.7)","white-65":"var(--white-65-color)","white-60":"rgba(255,255,255,0.6)","white-50":"var(--white-50-color)","white-30":"rgba(255, 255, 255, 0.3)",shade:"var(--shade)","shade-2":"var(--shade-2)","
1shade-3":"rgb(var(--shade-3-rgb) / <alpha-value>)","t-shade-1":"var(--text-shade-1)","t-shade-2":"var(--text-shade-2)","gray-light-shade":"var(--gray-light-shade)",boulder:"#777777","bt-gray":"#C4C4C4",green:o.emerald,yellow:o.amber,purple:o.violet,gray:o.neutral,maize:"var(--maize)",errorRed:"#EF2940","danger-red-1":"var(--danger-red-1)","fire-red":"var(--fire-red)","nile-blue":"#1C324E","light-background":"#243e59",third_bg:"#182c41",card:"#15273a",grey:"#949494",pink:"#ff0165",hover:"rgba(242, 107, 50, 0.75)",black:"#000","registration-form-bg":"#243e59","google-brand":"#de5247","cyan-blue":"#a5bcd5","light-blue":"#213c59","transparent-black":"rgba(0, 0, 0, 0.3)",teal:"#008080",success:"#32bea6",tangaroa:"#162839","apple-brand":"#555555",arapawa:"#223c54","blue-whale":"#192e44",turquoise:"#30D5C8",twitch:"#6441a5","regal-blue":"#273f56","gray-medium-dark":"#444444","image-layer":"#63B0E9","text-layer":"#E96B63","audio-layer":"#AE63E9",pending:"var(--pending)","gray-80":"#4E4E4E","custom-white":"var(--custom-white)","neutral-n-300":"var(--neutral-n-300)","ph-color":"var(--ph-color)","blueberry-color":"var(--blueberry-color)","blue-haze-color":"var(--blue-haze-color)","eerie-black":"var(--eerie-black)","main-tools-color":"var(--main-tools-color)","text-shade-3":"var(--text-shade-3)","dark-jungle-green":"var(--dark-jungle-green)","banner-bg":"var(--banner-bg)","field-bg":"var(--field-bg)","ugc-step2-dropzone-bg":"var(--ugc-step2-dropzone-bg)","segmented-control-bg":"var(--segmented-control-bg)"},keyframes:{fadeInAndOut:{"0%, 100%":{opacity:"0"},"50%":{opacity:"1"}},"fade-out-down":{from:{opacity:"1",transform:"translateY(0)"},to:{opacity:"0",transform:"translateY(40%)"}},"make-it-bigger":{"0%":{transform:"translateY(0%)"},"80%":{transform:"translateY(-30%)"},"90%":{transform:"translateY(-10%) scale(1.75)"},"100%":{transform:"translateY(0%) scale(2)",opacity:.3,zIndex:-1}}},animation:{"fade-out-down":"fade-out-down linear forwards","make-it-bigger":"make-it-bigger linear forwards"},supports:{"no-scroll-driven-animations":"not(animation-timeline: scroll())"}},fontFamily:{sans:["Poppins","Cairo","sans-serif","Helvetica"],"barlow-condensed":["BarlowCondensed","Poppins","Cairo","sans-serif","Helvetica"],redaction:["Redaction20","Poppins","Cairo","sans-serif","Helvetica"]},fontWeight:{hairline:"100",extralight:"200",light:"300",normal:"400",medium:"500",semibold:"600",bold:"700","extra-bold":"800",black:"900"}},variants:{},plugins:[]}},4046:function(e,t,i){"use strict";var o,n;i.d(t,{C:function(){return o}}),(n=o||(o={})).PENDING="pending",n.FAILED="failed",n.ACTIVE="active",n.MODERATION_REJECTED="moderation_rejected"},2327:function(e,t,i){"use strict";var o,n;i.d(t,{_:function(){return o}}),(n=o||(o={})).T2I_GENERATED="t2i_generated",n.T2V_GENERATED_IMAGE="t2v_generated_image",n.AVATAR_GENERATED_IMAGE="avatar_generated_image",n.IMAGE_EDITOR="image_editor",n.UPSCALE_IMAGE="upscale_image",n.EXECUTION_NODE_RESULT="execution_node_result",n.SALLATEMPLATE_EXECUTION_NODE_RESULT="salla_execution_node_result",n.PRODUCT_PHOTOSHOOT_OUTPUT="product_shot",n.AI_INFLUENCER_LOOK="ai_influencer_look",n.VIRTUAL_TRY_ON="virtual_try_on"},29242:function(e,t,i){"use strict";var o,n;i.d(t,{m:function(){return o}}),(n=o||(o={})).AI_SHORTS="ai_shorts",n.TEXT_TO_SCENE="text_to_scene",n.IMAGE_TO_SCENE="image_to_scene",n.QUOTE_TO_VIDEO="quote_to_video",n.AI_AVATAR="ai_avatar",n.TEXT_TO_IMAGE="text_to_image",n.IMAGE_EDITOR="image_editor"},37894:function(e,t,i){"use strict";var o,n;i.d(t,{B:function(){return o}}),(n=o||(o={})).AI_TEXT_TO_VIDEO="ai-text-to-video",n.AI_QUOTE_TO_VIDEO="ai-quote-to-video",n.AI_TEXT_TO_SCENE="ai-text-to-scene"},21876:function(e){!function(){var t={675:function(e,t){"use strict";t.byteLength=function(e){var t=s(e),i=t[0],o=t[1];return(i+o)*3/4-o},t.toByteArray=function(e){var t,i,r=s(e),a=r[0],l=r[1],d=new n((a+l)*3/4-l),u=0,c=l>0?a-4:a;for(i=0;i<c;i+=4)t=o[e.charCodeAt(i)]<<18|o[e.charCodeAt(i+1)]<<12|o[e.charCodeAt(i+2)]<<6|o[e.charCodeAt(i+3)],d[u++]=t>>16&255,d[u++]=t>>8&255,d[u++]=255&t;return 2===l&&(t=o[e.charCodeAt(i)]<<2|o[e.charCodeAt(i+1)]>>4,d[u++]=255&t),1===l&&(t=o[e.charCodeAt(i)]<<10|o[e.charCodeAt(i+1)]<<4|o[e.charCodeAt(i+2)]>>2,d[u++]=t>>8&255,d[u++]=255&t),d},t.fromByteArray=function(e){for(var t,o=e.length,n=o%3,r=[],a=0,l=o-n;a<l;a+=16383)r.push(function(e,t,o){for(var n,r=[],a=t;a<o;a+=3)r.push(i[(n=(e[a]<<16&16711680)+(e[a+1]<<8&65280)+(255&e[a+2]))>>18&63]+i[n>>12&63]+i[n>>6&63]+i[63&n]);return r.join("")}(e,a,a+16383>l?l:a+16383));return 1===n?r.push(i[(t=e[o-1])>>2]+i[t<<4&63]+"=="):2===n&&r.push(i[(t=(e[o-2]<<8)+e[o-1])>>10]+i[t>>4&63]+i[t<<2&63]+"="),r.join("")};for(var i=[],o=[],n="undefined"!=typeof Uint8Array?Uint8Array:Array,r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",a=0,l=r.length;a<l;++a)i[a]=r[a],o[r.charCodeAt(a)]=a;function s(e){var t=e.length;if(t%4>0)throw Error("Invalid string. Length must be a multiple of 4");var i=e.indexOf("=");-1===i&&(i=t);var o=i===t?0:4-i%4;return[i,o]}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},72:function(e,t,i){"use strict";var o=i(675),n=i(783),r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function a(e){if(e>2147483647)throw RangeError('The value "'+e+'" is invalid for option "size"');var t=new Uint8Array(e);return Object.setPrototypeOf(t,l.prototype),t}function l(e,t,i){if("number"==typeof e){if("string"==typeof t)throw TypeError('The "string" argument must be of type string. Received type number');return u(e)}return s(e,t,i)}function s(e,t,i){if("string"==typeof e)return function(e,t){if(("string"!=typeof t||""===t)&&(t="utf8"),!l.isEncoding(t))throw TypeError("Unknown encoding: "+t);var i=0|m(e,t),o=a(i),n=o.write(e,t);return n!==i&&(o=o.slice(0,n)),o}(e,t);if(ArrayBuffer.isView(e))return c(e);if(null==e)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e);if(P(e,ArrayBuffer)||e&&P(e.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(P(e,SharedArrayBuffer)||e&&P(e.buffer,SharedArrayBuffer)))return function(e,t,i){var o;if(t<0||e.byteLength<t)throw RangeError('"offset" is outside of buffer bounds');if(e.byteLength<t+(i||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(o=void 0===t&&void 0===i?new Uint8Array(e):void 0===i?new Uint8Array(e,t):new Uint8Array(e,t,i),l.prototype),o}(e,t,i);if("number"==typeof e)throw TypeError('The "value" argument must not be of type number. Received type number');var o=e.valueOf&&e.valueOf();if(null!=o&&o!==e)return l.from(o,t,i);var n=function(e){if(l.isBuffer(e)){var t,i=0|p(e.length),o=a(i);return 0===o.length||e.copy(o,0,0,i),o}return void 0!==e.length?"number"!=typeof e.length||(t=e.length)!=t?a(0):c(e):"Buffer"===e.type&&Array.isArray(e.data)?c(e.data):void 0}(e);if(n)return n;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof e[Symbol.toPrimitive])return l.from(e[Symbol.toPrimitive]("string"),t,i);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof e)}function d(e){if("number"!=typeof e)throw TypeError('"size" argument must be of type number');if(e<0)throw RangeError('The value "'+e+'" is invalid for option "size"')}function u(e){return d(e),a(e<0?0:0|p(e))}function c(e){for(var t=e.length<0?0:0|p(e.length),i=a(t),o=0;o<t;o+=1)i[o]=255&e[o];return i}function p(e){if(e>=2147483647)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|e}function m(e,t){if(l.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||P(e,ArrayBuffer))return e.byteLength;if("string"!=typeof e)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);var i=e.length,o=arguments.length>2&&!0===arguments[2];if(!o&&0===i)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return i;case"utf8":case"utf-8":return C(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*i;case"hex":return i>>>1;case"base64":return T(e).length;default:if(n)return o?-1:C(e).length;t=(""+t).toLowerCase(),n=!0}}function h(e,t,i){var n,r,a=!1;if((void 0===t||t<0)&&(t=0),t>this.length||((void 0===i||i>this.length)&&(i=this.length),i<=0||(i>>>=0)<=(t>>>=0)))return"";for(e||(e="utf8");;)switch(e){case"hex":return function(e,t,i){var o=e.length;(!t||t<0)&&(t=0),(!i||i<0||i>o)&&(i=o);for(var n="",r=t;r<i;++r)n+=I[e[r]];return n}(this,t,i);case"utf8":case"utf-8":return y(this,t,i);case"ascii":return function(e,t,i){var o="";i=Math.min(e.length,i);for(var n=t;n<i;++n)o+=String.fromCharCode(127&e[n]);return o}(this,t,i);case"latin1":case"binary":return function(e,t,i){var o="";i=Math.min(e.length,i);for(var n=t;n<i;++n)o+=String.fromCharCode(e[n]);return o}(this,t,i);case"base64":return n=t,r=i,0===n&&r===this.length?o.fromByteArray(this):o.fromByteArray(this.slice(n,r));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(e,t,i){for(var o=e.slice(t,i),n="",r=0;r<o.length;r+=2)n+=String.fromCharCode(o[r]+256*o[r+1]);return n}(this,t,i);default:if(a)throw TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),a=!0}}function f(e,t,i){var o=e[t];e[t]=e[i],e[i]=o}function v(e,t,i,o,n){var r;if(0===e.length)return -1;if("string"==typeof i?(o=i,i=0):i>2147483647?i=2147483647:i<-2147483648&&(i=-2147483648),(r=i=+i)!=r&&(i=n?0:e.length-1),i<0&&(i=e.length+i),i>=e.length){if(n)return -1;i=e.length-1}else if(i<0){if(!n)return -1;i=0}if("string"==typeof t&&(t=l.from(t,o)),l.isBuffer(t))return 0===t.length?-1:g(e,t,i,o,n);if("number"==typeof t)return(t&=255,"function"==typeof Uint8Array.prototype.indexOf)?n?Uint8Array.prototype.indexOf.call(e,t,i):Uint8Array.prototype.lastIndexOf.call(e,t,i):g(e,[t],i,o,n);throw TypeError("val must be string, number or Buffer")}function g(e,t,i,o,n){var r,a=1,l=e.length,s=t.length;if(void 0!==o&&("ucs2"===(o=String(o).toLowerCase())||"ucs-2"===o||"utf16le"===o||"utf-16le"===o)
vendor: 10,950 bytes, line 1
1){if(e.length<2||t.length<2)return -1;a=2,l/=2,s/=2,i/=2}function d(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(n){var u=-1;for(r=i;r<l;r++)if(d(e,r)===d(t,-1===u?0:r-u)){if(-1===u&&(u=r),r-u+1===s)return u*a}else -1!==u&&(r-=r-u),u=-1}else for(i+s>l&&(i=l-s),r=i;r>=0;r--){for(var c=!0,p=0;p<s;p++)if(d(e,r+p)!==d(t,p)){c=!1;break}if(c)return r}return -1}function y(e,t,i){i=Math.min(e.length,i);for(var o=[],n=t;n<i;){var r,a,l,s,d=e[n],u=null,c=d>239?4:d>223?3:d>191?2:1;if(n+c<=i)switch(c){case 1:d<128&&(u=d);break;case 2:(192&(r=e[n+1]))==128&&(s=(31&d)<<6|63&r)>127&&(u=s);break;case 3:r=e[n+1],a=e[n+2],(192&r)==128&&(192&a)==128&&(s=(15&d)<<12|(63&r)<<6|63&a)>2047&&(s<55296||s>57343)&&(u=s);break;case 4:r=e[n+1],a=e[n+2],l=e[n+3],(192&r)==128&&(192&a)==128&&(192&l)==128&&(s=(15&d)<<18|(63&r)<<12|(63&a)<<6|63&l)>65535&&s<1114112&&(u=s)}null===u?(u=65533,c=1):u>65535&&(u-=65536,o.push(u>>>10&1023|55296),u=56320|1023&u),o.push(u),n+=c}return function(e){var t=e.length;if(t<=4096)return String.fromCharCode.apply(String,e);for(var i="",o=0;o<t;)i+=String.fromCharCode.apply(String,e.slice(o,o+=4096));return i}(o)}function b(e,t,i){if(e%1!=0||e<0)throw RangeError("offset is not uint");if(e+t>i)throw RangeError("Trying to access beyond buffer length")}function A(e,t,i,o,n,r){if(!l.isBuffer(e))throw TypeError('"buffer" argument must be a Buffer instance');if(t>n||t<r)throw RangeError('"value" argument is out of bounds');if(i+o>e.length)throw RangeError("Index out of range")}function x(e,t,i,o,n,r){if(i+o>e.length||i<0)throw RangeError("Index out of range")}function w(e,t,i,o,r){return t=+t,i>>>=0,r||x(e,t,i,4,34028234663852886e22,-34028234663852886e22),n.write(e,t,i,o,23,4),i+4}function _(e,t,i,o,r){return t=+t,i>>>=0,r||x(e,t,i,8,17976931348623157e292,-17976931348623157e292),n.write(e,t,i,o,52,8),i+8}t.Buffer=l,t.SlowBuffer=function(e){return+e!=e&&(e=0),l.alloc(+e)},t.INSPECT_MAX_BYTES=50,t.kMaxLength=2147483647,l.TYPED_ARRAY_SUPPORT=function(){try{var e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(e,t,i){return s(e,t,i)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(e,t,i){return(d(e),e<=0)?a(e):void 0!==t?"string"==typeof i?a(e).fill(t,i):a(e).fill(t):a(e)},l.allocUnsafe=function(e){return u(e)},l.allocUnsafeSlow=function(e){return u(e)},l.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==l.prototype},l.compare=function(e,t){if(P(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),P(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(e)||!l.isBuffer(t))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;for(var i=e.length,o=t.length,n=0,r=Math.min(i,o);n<r;++n)if(e[n]!==t[n]){i=e[n],o=t[n];break}return i<o?-1:o<i?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!Array.isArray(e))throw TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);if(void 0===t)for(i=0,t=0;i<e.length;++i)t+=e[i].length;var i,o=l.allocUnsafe(t),n=0;for(i=0;i<e.length;++i){var r=e[i];if(P(r,Uint8Array)&&(r=l.from(r)),!l.isBuffer(r))throw TypeError('"list" argument must be an Array of Buffers');r.copy(o,n),n+=r.length}return o},l.byteLength=m,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)f(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)f(this,t,t+3),f(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)f(this,t,t+7),f(this,t+1,t+6),f(this,t+2,t+5),f(this,t+3,t+4);return this},l.prototype.toString=function(){var e=this.length;return 0===e?"":0==arguments.length?y(this,0,e):h.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(e){if(!l.isBuffer(e))throw TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",i=t.INSPECT_MAX_BYTES;return e=this.toString("hex",0,i).replace(/(.{2})/g,"$1 ").trim(),this.length>i&&(e+=" ... "),"<Buffer "+e+">"},r&&(l.prototype[r]=l.prototype.inspect),l.prototype.compare=function(e,t,i,o,n){if(P(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(e))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===i&&(i=e?e.length:0),void 0===o&&(o=0),void 0===n&&(n=this.length),t<0||i>e.length||o<0||n>this.length)throw RangeError("out of range index");if(o>=n&&t>=i)return 0;if(o>=n)return -1;if(t>=i)return 1;if(t>>>=0,i>>>=0,o>>>=0,n>>>=0,this===e)return 0;for(var r=n-o,a=i-t,s=Math.min(r,a),d=this.slice(o,n),u=e.slice(t,i),c=0;c<s;++c)if(d[c]!==u[c]){r=d[c],a=u[c];break}return r<a?-1:a<r?1:0},l.prototype.includes=function(e,t,i){return -1!==this.indexOf(e,t,i)},l.prototype.indexOf=function(e,t,i){return v(this,e,t,i,!0)},l.prototype.lastIndexOf=function(e,t,i){return v(this,e,t,i,!1)},l.prototype.write=function(e,t,i,o){if(void 0===t)o="utf8",i=this.length,t=0;else if(void 0===i&&"string"==typeof t)o=t,i=this.length,t=0;else if(isFinite(t))t>>>=0,isFinite(i)?(i>>>=0,void 0===o&&(o="utf8")):(o=i,i=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var n,r,a,l,s,d,u,c,p,m,h,f,v=this.length-t;if((void 0===i||i>v)&&(i=v),e.length>0&&(i<0||t<0)||t>this.length)throw RangeError("Attempt to write outside buffer bounds");o||(o="utf8");for(var g=!1;;)switch(o){case"hex":return function(e,t,i,o){i=Number(i)||0;var n=e.length-i;o?(o=Number(o))>n&&(o=n):o=n;var r=t.length;o>r/2&&(o=r/2);for(var a=0;a<o;++a){var l=parseInt(t.substr(2*a,2),16);if(l!=l)break;e[i+a]=l}return a}(this,e,t,i);case"utf8":case"utf-8":return s=t,d=i,E(C(e,this.length-s),this,s,d);case"ascii":return u=t,c=i,E(k(e),this,u,c);case"latin1":case"binary":return n=this,r=e,a=t,l=i,E(k(r),n,a,l);case"base64":return p=t,m=i,E(T(e),this,p,m);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=t,f=i,E(function(e,t){for(var i,o,n=[],r=0;r<e.length&&!((t-=2)<0);++r)o=(i=e.charCodeAt(r))>>8,n.push(i%256),n.push(o);return n}(e,this.length-h),this,h,f);default:if(g)throw TypeError("Unknown encoding: "+o);o=(""+o).toLowerCase(),g=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(e,t){var i=this.length;e=~~e,t=void 0===t?i:~~t,e<0?(e+=i)<0&&(e=0):e>i&&(e=i),t<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e);var o=this.subarray(e,t);return Object.setPrototypeOf(o,l.prototype),o},l.prototype.readUIntLE=function(e,t,i){e>>>=0,t>>>=0,i||b(e,t,this.length);for(var o=this[e],n=1,r=0;++r<t&&(n*=256);)o+=this[e+r]*n;return o},l.prototype.readUIntBE=function(e,t,i){e>>>=0,t>>>=0,i||b(e,t,this.length);for(var o=this[e+--t],n=1;t>0&&(n*=256);)o+=this[e+--t]*n;return o},l.prototype.readUInt8=function(e,t){return e>>>=0,t||b(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return e>>>=0,t||b(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,i){e>>>=0,t>>>=0,i||b(e,t,this.length);for(var o=this[e],n=1,r=0;++r<t&&(n*=256);)o+=this[e+r]*n;return o>=(n*=128)&&(o-=Math.pow(2,8*t)),o},l.prototype.readIntBE=function(e,t,i){e>>>=0,t>>>=0,i||b(e,t,this.length);for(var o=t,n=1,r=this[e+--o];o>0&&(n*=256);)r+=this[e+--o]*n;return r>=(n*=128)&&(r-=Math.pow(2,8*t)),r},l.prototype.readInt8=function(e,t){return(e>>>=0,t||b(e,1,this.length),128&this[e])?-((255-this[e]+1)*1):this[e]},l.prototype.readInt16LE=function(e,t){e>>>=0,t||b(e,2,this.length);var i=this[e]|this[e+1]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt16BE=function(e,t){e>>>=0,t||b(e,2,this.length);var i=this[e+1]|this[e]<<8;return 32768&i?4294901760|i:i},l.prototype.readInt32LE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return e>>>=0,t||b(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return e>>>=0,t||b(e,4,this.length),n.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return e>>>=0,t||b(e,8,this.length),n.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,i,o){if(e=+e,t>>>=0,i>>>=0,!o){var n=Math.pow(2,8*i)-1;A(this,e,t,i,n,0)}var r=1,a=0;for(this[t]=255&e;++a<i&&(r*=256);)this[t+a]=e/r&255;return t+i},l.prototype.writeUIntBE=function(e,t,i,o){if(e=+e,t>>>=0,i>>>=0,!o){var n=Math.pow(2,8*i)-1;A(this,e,t,i,n,0)}var r=i-1,a=1;for(this[t+r]=255&e;--r>=0&&(a*=256);)this[t+r]=e/a&255;return t+i},l.prototype.writeUInt8=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,1,255,0),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeUInt16BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeUInt32LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},l.prototype.writeUInt32BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeIntLE=function(e,t,i,o){if(e=+e,t>>>=0,!o){var n=Math.pow(2,8*i-1);A(this,e,t,i,n-1,-n)}
1var r=0,a=1,l=0;for(this[t]=255&e;++r<i&&(a*=256);)e<0&&0===l&&0!==this[t+r-1]&&(l=1),this[t+r]=(e/a>>0)-l&255;return t+i},l.prototype.writeIntBE=function(e,t,i,o){if(e=+e,t>>>=0,!o){var n=Math.pow(2,8*i-1);A(this,e,t,i,n-1,-n)}var r=i-1,a=1,l=0;for(this[t+r]=255&e;--r>=0&&(a*=256);)e<0&&0===l&&0!==this[t+r+1]&&(l=1),this[t+r]=(e/a>>0)-l&255;return t+i},l.prototype.writeInt8=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},l.prototype.writeInt16BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},l.prototype.writeInt32LE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},l.prototype.writeInt32BE=function(e,t,i){return e=+e,t>>>=0,i||A(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},l.prototype.writeFloatLE=function(e,t,i){return w(this,e,t,!0,i)},l.prototype.writeFloatBE=function(e,t,i){return w(this,e,t,!1,i)},l.prototype.writeDoubleLE=function(e,t,i){return _(this,e,t,!0,i)},l.prototype.writeDoubleBE=function(e,t,i){return _(this,e,t,!1,i)},l.prototype.copy=function(e,t,i,o){if(!l.isBuffer(e))throw TypeError("argument should be a Buffer");if(i||(i=0),o||0===o||(o=this.length),t>=e.length&&(t=e.length),t||(t=0),o>0&&o<i&&(o=i),o===i||0===e.length||0===this.length)return 0;if(t<0)throw RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw RangeError("Index out of range");if(o<0)throw RangeError("sourceEnd out of bounds");o>this.length&&(o=this.length),e.length-t<o-i&&(o=e.length-t+i);var n=o-i;if(this===e&&"function"==typeof Uint8Array.prototype.copyWithin)this.copyWithin(t,i,o);else if(this===e&&i<t&&t<o)for(var r=n-1;r>=0;--r)e[r+t]=this[r+i];else Uint8Array.prototype.set.call(e,this.subarray(i,o),t);return n},l.prototype.fill=function(e,t,i,o){if("string"==typeof e){if("string"==typeof t?(o=t,t=0,i=this.length):"string"==typeof i&&(o=i,i=this.length),void 0!==o&&"string"!=typeof o)throw TypeError("encoding must be a string");if("string"==typeof o&&!l.isEncoding(o))throw TypeError("Unknown encoding: "+o);if(1===e.length){var n,r=e.charCodeAt(0);("utf8"===o&&r<128||"latin1"===o)&&(e=r)}}else"number"==typeof e?e&=255:"boolean"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<i)throw RangeError("Out of range index");if(i<=t)return this;if(t>>>=0,i=void 0===i?this.length:i>>>0,e||(e=0),"number"==typeof e)for(n=t;n<i;++n)this[n]=e;else{var a=l.isBuffer(e)?e:l.from(e,o),s=a.length;if(0===s)throw TypeError('The value "'+e+'" is invalid for argument "value"');for(n=0;n<i-t;++n)this[n+t]=a[n%s]}return this};var S=/[^+/0-9A-Za-z-_]/g;function C(e,t){t=t||1/0;for(var i,o=e.length,n=null,r=[],a=0;a<o;++a){if((i=e.charCodeAt(a))>
155295&&i<57344){if(!n){if(i>56319||a+1===o){(t-=3)>-1&&r.push(239,191,189);continue}n=i;continue}if(i<56320){(t-=3)>-1&&r.push(239,191,189),n=i;continue}i=(n-55296<<10|i-56320)+65536}else n&&(t-=3)>-1&&r.push(239,191,189);if(n=null,i<128){if((t-=1)<0)break;r.push(i)}else if(i<2048){if((t-=2)<0)break;r.push(i>>6|192,63&i|128)}else if(i<65536){if((t-=3)<0)break;r.push(i>>12|224,i>>6&63|128,63&i|128)}else if(i<1114112){if((t-=4)<0)break;r.push(i>>18|240,i>>12&63|128,i>>6&63|128,63&i|128)}else throw Error("Invalid code point")}return r}function k(e){for(var t=[],i=0;i<e.length;++i)t.push(255&e.charCodeAt(i));return t}function T(e){return o.toByteArray(function(e){if((e=(e=e.split("=")[0]).trim().replace(S,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function E(e,t,i,o){for(var n=0;n<o&&!(n+i>=t.length)&&!(n>=e.length);++n)t[n+i]=e[n];return n}function P(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}var I=function(){for(var e="0123456789abcdef",t=Array(256),i=0;i<16;++i)for(var o=16*i,n=0;n<16;++n)t[o+n]=e[i]+e[n];return t}()},783:function(e,t){t.read=function(e,t,i,o,n){var r,a,l=8*n-o-1,s=(1<<l)-1,d=s>>1,u=-7,c=i?n-1:0,p=i?-1:1,m=e[t+c];for(c+=p,r=m&(1<<-u)-1,m>>=-u,u+=l;u>0;r=256*r+e[t+c],c+=p,u-=8);for(a=r&(1<<-u)-1,r>>=-u,u+=o;u>0;a=256*a+e[t+c],c+=p,u-=8);if(0===r)r=1-d;else{if(r===s)return a?NaN:1/0*(m?-1:1);a+=Math.pow(2,o),r-=d}return(m?-1:1)*a*Math.pow(2,r-o)},t.write=function(e,t,i,o,n,r){var a,l,s,d=8*r-n-1,u=(1<<d)-1,c=u>>1,p=23===n?5960464477539062e-23:0,m=o?0:r-1,h=o?1:-1,f=t<0||0===t&&1/t<0?1:0;for(isNaN(t=Math.abs(t))||t===1/0?(l=isNaN(t)?1:0,a=u):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),a+c>=1?t+=p/s:t+=p*Math.pow(2,1-c),t*s>=2&&(a++,s/=2),a+c>=u?(l=0,a=u):a+c>=1?(l=(t*s-1)*Math.pow(2,n),a+=c):(l=t*Math.pow(2,c-1)*Math.pow(2,n),a=0));n>=8;e[i+m]=255&l,m+=h,l/=256,n-=8);for(a=a<<n|l,d+=n;d>0;e[i+m]=255&a,m+=h,a/=256,d-=8);e[i+m-h]|=128*f}}},i={};function o(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}},a=!0;try{t[e](r,r.exports,o),a=!1}finally{a&&delete i[e]}return r.exports}o.ab="//";var n=o(72);e.exports=n}()},91479:function(){},87405:function(e){e.exports={container:"CheckBox_container__W2J7O",checkmark:"CheckBox_checkmark__nFYDB"}},58558:function(e){e.exports={"confirmation-modal":"Confirmation_confirmation-modal__m1335","confirmation-modal__submit":"Confirmation_confirmation-modal__submit__exH_N"}},94458:function(e){e.exports={"confirmation-modal":"ConfirmationAlert_confirmation-modal__xtvZM","confirmation-modal__submit":"ConfirmationAlert_confirmation-modal__submit__l_tSU"}},17576:function(e){e.exports={image:"Image_image__jXVWL"}},45501:function(e){e.exports={"input-error-block":"InputErrorBlock_input-error-block__26LFQ","input-error-block__error-message":"InputErrorBlock_input-error-block__error-message__4HBic"}},13478:function(e){e.exports={"simple-loader":"SimpleLoader_simple-loader__awyc6",spin:"SimpleLoader_spin__QveLK","simple-loader--on-dark":"SimpleLoader_simple-loader--on-dark__sEw_p","simple-loader__track":"SimpleLoader_simple-loader__track__hGoE2","simple-loader__arc":"SimpleLoader_simple-loader__arc__YkFRp","simple-loader__large":"SimpleLoader_simple-loader__large__UNube","simple-loader__medium":"SimpleLoader_simple-loader__medium__oqWsT","simple-loader__small":"SimpleLoader_simple-loader__small__PNbSt","simple-loader__xSmall":"SimpleLoader_simple-loader__xSmall__lXD_W","simple-loader__xsSmall":"SimpleLoader_simple-loader__xsSmall__CQupD","simple-loader__tiny":"SimpleLoader_simple-loader__tiny__lc8P9","simple-loader__fill":"SimpleLoader_simple-loader__fill__BrlO1"}},16733:function(e){e.exports={"bith-switch":"Switch_bith-switch__MOnVe","bith-switch__toggle":"Switch_bith-switch__toggle__nae3I","bith-switch__first-text":"Switch_bith-switch__first-text__p0FF1","bith-switch__second-text":"Switch_bith-switch__second-text__GhX1W","bith-switch-small":"Switch_bith-switch-small___a5md","bith-switch-small__toggle":"Switch_bith-switch-small__toggle__kgLKX","bith-switch-small__first-text":"Switch_bith-switch-small__first-text__7pSA0","bith-switch-small__second-text":"Switch_bith-switch-small__second-text__drW_X","bith-switch-account":"Switch_bith-switch-account__1Lbxs","bith-switch-account__toggle":"Switch_bith-switch-account__toggle__TW2Pb"}},61020:function(){},98975:function(){},24142:function(){},77663:function(e){!function(){var t={229:function(e){var t,i,o,n=e.exports={};function r(){throw Error("setTimeout has not been defined")}function a(){throw Error("clearTimeout has not been defined")}function l(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(i){try{return t.call(null,e,0)}catch(i){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var s=[],d=!1,u=-1;
1function c(){d&&o&&(d=!1,o.length?s=o.concat(s):u=-1,s.length&&p())}function p(){if(!d){var e=l(c);d=!0;for(var t=s.length;t;){for(o=s,s=[];++u<t;)o&&o[u].run();u=-1,t=s.length}o=null,d=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function m(e,t){this.fun=e,this.array=t}function h(){}n.nextTick=function(e){var t=Array(arguments.length-1);if(arguments.length>1)for(var i=1;i<arguments.length;i++)t[i-1]=arguments[i];s.push(new m(e,t)),1!==s.length||d||l(p)},m.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=h,n.addListener=h,n.once=h,n.off=h,n.removeListener=h,n.removeAllListeners=h,n.emit=h,n.prependListener=h,n.prependOnceListener=h,n.listeners=function(e){return[]},n.binding=function(e){throw Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw Error("process.chdir is not supported")},n.umask=function(){return 0}}},i={};function o(e){var n=i[e];if(void 0!==n)return n.exports;var r=i[e]={exports:{}},a=!0;try{t[e](r,r.exports,o),a=!1}finally{a&&delete i[e]}return r.exports}o.ab="//";var n=o(229);e.exports=n}()},5152:function(e,t,i){e.exports=i(32602)},9008:function(e,t,i){e.exports=i(23867)},41664:function(e,t,i){e.exports=i(98342)},11163:function(e,t,i){e.exports=i(43079)},4298:function(e,t,i){e.exports=i(23381)},74865:function(e,t,i){var o,n;void 0!==(n="function"==typeof(o=function(){var e,t,i,o={};o.version="0.2.0";var n=o.settings={minimum:.08,easing:"ease",positionUsing:"",speed:200,trickle:!0,trickleRate:.02,trickleSpeed:800,showSpinner:!0,barSelector:'[role="bar"]',spinnerSelector:'[role="spinner"]',parent:"body",template:'<div class="bar" role="bar"><div class="peg"></div></div><div class="spinner" role="spinner"><div class="spinner-icon"></div></div>'};function r(e,t,i){return e<t?t:e>i?i:e}o.configure=function(e){var t,i;for(t in e)void 0!==(i=e[t])&&e.hasOwnProperty(t)&&(n[t]=i);return this},o.status=null,o.set=function(e){var t=o.isStarted();e=r(e,n.minimum,1),o.status=1===e?null:e;var i=o.render(!t),s=i.querySelector(n.barSelector),d=n.speed,u=n.easing;return i.offsetWidth,a(function(t){var r,a;""===n.positionUsing&&(n.positionUsing=o.getPositioningCSS()),l(s,(r=e,(a="translate3d"===n.positionUsing?{transform:"translate3d("+(-1+r)*100+"%,0,0)"}:"translate"===n.positionUsing?{transform:"translate("+(-1+r)*100+"%,0)"}:{"margin-left":(-1+r)*100+"%"}).transition="all "+d+"ms "+u,a)),1===e?(l(i,{transition:"none",opacity:1}),i.offsetWidth,setTimeout(function(){l(i,{transition:"all "+d+"ms linear",opacity:0}),setTimeout(function(){o.remove(),t()},d)},d)):setTimeout(t,d)}),this},o.isStarted=function(){return"number"==typeof o.status},o.start=function(){o.status||o.set(0);var e=function(){setTimeout(function(){o.status&&(o.trickle(),e())},n.trickleSpeed)};return n.trickle&&e(),this},o.done=function(e){return e||o.status?o.inc(.3+.5*Math.random()).set(1):this},o.inc=function(e){var t=o.status;return t?("number"!=typeof e&&(e=(1-t)*r(Math.random()*t,.1,.95)),t=r(t+e,0,.994),o.set(t)):o.start()},o.trickle=function(){return o.inc(Math.random()*n.trickleRate)},e=0,t=0,o.promise=function(i){return i&&"resolved"!==i.state()&&(0===t&&o.start(),e++,t++,i.always(function(){0==--t?(e=0,o.done()):o.set((e-t)/e)})),this},o.render=function(e){if(o.isRendered())return document.getElementById("nprogress");d(document.documentElement,"nprogress-busy");var t=document.createElement("div");t.id="nprogress",t.innerHTML=n.template;var i,r=t.querySelector(n.barSelector),a=e?"-100":(-1+(o.status||0))*100,s=document.querySelector(n.parent);return l(r,{transition:"all 0 linear",transform:"translate3d("+a+"%,0,0)"}),!n.showSpinner&&(i=t.querySelector(n.spinnerSelector))&&p(i),s!=document.body&&d(s,"nprogress-custom-parent"),s.appendChild(t),t},o.remove=function(){u(document.documentElement,"nprogress-busy"),u(document.querySelector(n.parent),"nprogress-custom-parent");var e=document.getElementById("nprogress");e&&p(e)},o.isRendered=function(){return!!document.getElementById("nprogress")},o.getPositioningCSS=function(){var e=document.body.style,t="WebkitTransform"in e?"Webkit":"MozTransform"in e?"Moz":"msTransform"in e?"ms":"OTransform"in e?"O":"";return t+"Perspective" in e?"translate3d":t+"Transform" in e?"translate":"margin"};var a=(i=[],function(e){i.push(e),1==i.length&&function e(){var t=i.shift();t&&t(e)}()}),l=function(){var e=["Webkit","O","Moz","ms"],t={};function i(i,o,n){var r;o=t[r=(r=o).replace(/^-ms-/,"ms-").replace(/-([\da-z])/gi,function(e,t){return t.toUpperCase()})]||(t[r]=function(t){var i=document.body.style;if(t in i)return t;for(var o,n=e.length,r=t.charAt(0).toUpperCase()+t.slice(1);n--;)if((o=e[n]+r)in i)return o;return t}(r)),i.style[o]=n}return function(e,t){var o,n,r=arguments;if(2==r.length)for(o in t)void 0!==(n=t[o])&&t.hasOwnProperty(o)&&i(e,o,n);else i(e,r[1],r[2])}}();function s(e,t){return("string"==typeof e?e:c(e)).indexOf(" "+t+" ")>=0}function d(e,t){var i=c(e),o=i+t;s(i,t)||(e.className=o.substring(1))}function u(e,t){var i,o=c(e);s(e,t)&&(i=o.replace(" "+t+" "," "),e.className=i.substring(1,i.length-1))}function c(e){return(" "+(e.className||"")+" ").replace(/\s+/gi," ")}function p(e){e&&e.parentNode&&e.parentNode.removeChild(e)}return o}
1)?o.call(t,i,t,e):o)&&(e.exports=n)},74241:function(e){var t=String,i=function(){return{isColorSupported:!1,reset:t,bold:t,dim:t,italic:t,underline:t,inverse:t,hidden:t,strikethrough:t,black:t,red:t,green:t,yellow:t,blue:t,magenta:t,cyan:t,white:t,gray:t,bgBlack:t,bgRed:t,bgGreen:t,bgYellow:t,bgBlue:t,bgMagenta:t,bgCyan:t,bgWhite:t,blackBright:t,redBright:t,greenBright:t,yellowBright:t,blueBright:t,magentaBright:t,cyanBright:t,whiteBright:t,bgBlackBright:t,bgRedBright:t,bgGreenBright:t,bgYellowBright:t,bgBlueBright:t,bgMagentaBright:t,bgCyanBright:t,bgWhiteBright:t}};e.exports=i(),e.exports.createColors=i},92703:function(e,t,i){"use strict";var o=i(50414);function n(){}function r(){}r.resetWarningCache=n,e.exports=function(){function e(e,t,i,n,r,a){if(a!==o){var l=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var i={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:n};return i.PropTypes=i,i}},45697:function(e,t,i){e.exports=i(92703)()},50414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},55760:function(e){"use strict";function t(e){this._maxSize=e,this.clear()}t.prototype.clear=function(){this._size=0,this._values=Object.create(null)},t.prototype.get=function(e){return this._values[e]},t.prototype.set=function(e,t){return this._size>=this._maxSize&&this.clear(),!(e in this._values)&&this._size++,this._values[e]=t};var i=/[^.^\]^[]+|(?=\[\]|\.\.)/g,o=/^\d+$/,n=/^\d/,r=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,a=/^\s*(['"]?)(.*?)(\1)\s*$/,l=new t(512),s=new t(512),d=new t(512);function u(e){return l.get(e)||l.set(e,c(e).map(function(e){return e.replace(a,"$2")}))}function c(e){return e.match(i)||[""]}function p(e){return"string"==typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}e.exports={Cache:t,split:c,normalizePath:u,setter:function(e){var t=u(e);return s.get(e)||s.set(e,function(e,i){for(var o=0,n=t.length,r=e;o<n-1;){var a=t[o];if("__proto__"===a||"constructor"===a||"prototype"===a)return e;r=r[t[o++]]}r[t[o]]=i})},getter:function(e,t){var i=u(e);return d.get(e)||d.set(e,function(e){for(var o=0,n=i.length;o<n;){if(null==e&&t)return;e=e[i[o++]]}return e})},join:function(e){return e.reduce(function(e,t){return e+(p(t)||o.test(t)?"["+t+"]":(e?".":"")+t)},"")},forEach:function(e,t,i){!function(e,t,i){var a,l,s,d,u,c=e.length;for(s=0;s<c;s++){(l=e[s])&&(!p(a=l)&&(a.match(n)&&!a.match(o)||r.test(a))&&(l='"'+l+'"'),d=!(u=p(l))&&/^\d+$/.test(l),t.call(i,l,u,d,s,e))}}(Array.isArray(e)?e:c(e),t,i)}}},85518:function(e,t,i){"use strict";var o,n,r,a,l,s,d=i(67294);d&&"object"==typeof d&&"default"in d&&d.default;var u=i(23451),c=new u,p=c.getBrowser(),m=c.getCPU(),h=c.getDevice(),f=c.getEngine(),v=c.getOS(),g=c.getUA(),y={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},b={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},A=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"none";return e||t},x=function(){return!!("undefined"!=typeof window&&(window.navigator||navigator))&&(window.navigator||navigator)},w=function(e){var t=x();return t&&t.platform&&(-1!==t.platform.indexOf(e)||"MacIntel"===t.platform&&t.maxTouchPoints>1&&!window.MSStream)},_=function(e){return e.type===y.Browser},S=function(e){return e.name===b.Edge},C=function(e){return"string"==typeof e&&-1!==e.indexOf("Edg/")},k=function(){return w("iPad")};h.type,y.SmartTv,h.type,y.Console,h.type,y.Wearable,h.type,y.Embedded,p.name===b.MobileSafari||k(),p.name,b.Chromium;var T=(o=h.type)===y.Mobile||o===y.Tablet||k(),E=h.type===y.Mobile,P=h.type===y.Tablet||k(),I=(_(h),_(h),"Android"===v.name),D=(v.name,"iOS"===v.name||k(),p.name,b.Chrome,p.name,b.Firefox,(n=p.name)===b.Safari||b.MobileSafari,p.name,b.Opera,(r=p.name)===b.InternetExplorer||b.Ie,A(v.version),A(v.name),A(p.version),A(p.major),A(p.name),A(h.vendor),A(h.model),A(f.name),A(f.version),A(g),S(p)||C(g),p.name,b.Yandex,A(h.type,"browser"),(a=x())&&(/iPad|iPhone|iPod/.test(a.platform)||"MacIntel"===a.platform&&a.maxTouchPoints>1)&&window.MSStream,k(),w("iPhone"),w("iPod"),"string"==typeof(s=(l=x())&&l.userAgent&&l.userAgent.toLowerCase())&&/electron/.test(s),C(g),S(p)&&C(g),v.name,"Mac OS"===v.name);p.name,b.MIUI,p.name,b.SamsungBrowser,t.Dt=I,t.Q5=D,t.tq=T,t.UA=E,t.Em=P},69921:function(e,t){"use strict";var i="function"==typeof Symbol&&Symbol.for,o=i?Symbol.for("react.element"):60103,n=i?Symbol.for("react.portal"):60106,r=i?Symbol.for("react.fragment"):60107,a=i?Symbol.for("react.strict_mode"):60108,l=i?Symbol.for("react.profiler"):60114,s=i?Symbol.for("react.provider"):60109,d=i?Symbol.for("react.context"):60110,u=i?Symbol.for("react.async_mode"):60111,c=i?Symbol.for("react.concurrent_mode"):60111,p=i?Symbol.for("react.forward_ref"):60112,m=i?Symbol.for("react.suspense"):60113,h=i?Symbol.for("react.suspense_list"):60120,f=i?Symbol.for("react.memo"):60115,v=i?Symbol.for("react.lazy"):60116,g=i?Symbol.for("react.block"):60121,y=i?Symbol.for("react.fundamental"):60117,b=i?Symbol.for("react.responder"):60118,A=i?Symbol.for("react.scope"):60119;function x(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case o:switch(e=e.type){case u:case c:case r:case l:case a:case m:return e;default:switch(e=e&&e.$$typeof){case d:case p:case v:case f:case s:return e;default:return t}}case n:return t}}}function w(e){return x(e)===c}t.AsyncMode=u,t.ConcurrentMode=c,t.ContextConsumer=d,t.ContextProvider=s,t.Element=o,t.ForwardRef=p,t.Fragment=r,t.Lazy=v,t.Memo=f,t.Portal=n,t.Profiler=l,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return w(e)||x(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return x(e)===d},t.isContextProvider=function(e){return x(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===o},t.isForwardRef=function(e){return x(e)===p},t.isFragment=function(e){return x(e)===r},t.isLazy=function(e){return x(e)===v},t.isMemo=function(e){return x(e)===f},t.isPortal=function(e){return x(e)===n},t.isProfiler=function(e){return x(e)===l},t.isStrictMode=function(e){return x(e)===a},t.isSuspense=function(e){return x(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===c||e===l||e===a||e===m||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===v||e.$$typeof===f||e.$$typeof===s||e.$$typeof===d||e.$$typeof===p||e.$$typeof===y||e.$$typeof===b||e.$$typeof===A||e.$$typeof===g)},t.typeOf=x},59864:function(e,t,i){"use strict";e.exports=i(69921)},46871:function(e,t,i){"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function n(e){this.setState((function(t){var i=this.constructor.getDerivedStateFromProps(e,t);return null!=i?i:null}).bind(this))}function r(e,t){try{var i=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(i,o)}finally{this.props=i,this.state=o}}function a(e){var t=e.prototype;if(!t||!t.isReactComponent)throw Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var i=null,a=null,l=null;if("function"==typeof t.componentWillMount?i="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(i="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?a="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(a="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?l="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(l="UNSAFE_componentWillUpdate"),null!==i||null!==a||null!==l)throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+(e.displayName||e.name)+" uses "+("function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()")+" but also contains the following legacy lifecycles:"+(null!==i?"\n  "+i:"")+(null!==a?"\n  "+a:"")+(null!==l?"\n  "+l:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks");if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=n),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=r;var s=t.componentDidUpdate;t.componentDidUpdate=function(e,t,i){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:i;s.call(this,e,t,o)}}return e}
1i.r(t),i.d(t,{polyfill:function(){return a}}),o.__suppressDeprecationWarning=!0,n.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0},29983:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bodyOpenClassName=t.portalClassName=void 0;var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},n=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,i,o){return i&&e(t.prototype,i),o&&e(t,o),t}}(),r=i(67294),a=h(r),l=h(i(73935)),s=h(i(45697)),d=h(i(28747)),u=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}(i(57149)),c=i(51112),p=h(c),m=i(46871);function h(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}var v=t.portalClassName="ReactModalPortal",g=t.bodyOpenClassName="ReactModal__Body--open",y=c.canUseDOM&&void 0!==l.default.createPortal,b=function(e){return document.createElement(e)},A=function(){return y?l.default.createPortal:l.default.unstable_renderSubtreeIntoContainer},x=function(e){function t(){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);for(var e,i,n,r=arguments.length,s=Array(r),u=0;u<r;u++)s[u]=arguments[u];return i=n=f(this,(e=t.__proto__||Object.getPrototypeOf(t)).call.apply(e,[this].concat(s))),n.removePortal=function(){y||l.default.unmountComponentAtNode(n.node);var e=(0,n.props.parentSelector)();e&&e.contains(n.node)?e.removeChild(n.node):console.warn('React-Modal: "parentSelector" prop did not returned any DOM element. Make sure that the parent element is unmounted to avoid any memory leaks.')},n.portalRef=function(e){n.portal=e},n.renderPortal=function(e){var i=A()(n,a.default.createElement(d.default,o({defaultStyles:t.defaultStyles},e)),n.node);n.portalRef(i)},f(n,i)}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),n(t,[{key:"componentDidMount",value:function(){c.canUseDOM&&(y||(this.node=b("div")),this.node.className=this.props.portalClassName,(0,this.props.parentSelector)().appendChild(this.node),y||this.renderPortal(this.props))}},{key:"getSnapshotBeforeUpdate",value:function(e){return{prevParent:(0,e.parentSelector)(),nextParent:(0,this.props.parentSelector)()}}},{key:"componentDidUpdate",value:function(e,t,i){if(c.canUseDOM){var o=this.props,n=o.isOpen,r=o.portalClassName;e.portalClassName!==r&&(this.node.className=r);var a=i.prevParent,l=i.nextParent;l!==a&&(a.removeChild(this.node),l.appendChild(this.node)),(e.isOpen||n)&&(y||this.renderPortal(this.props))}}},{key:"componentWillUnmount",value:function(){if(c.canUseDOM&&this.node&&this.portal){var e=this.portal.state,t=Date.now(),i=e.isOpen&&this.props.closeTimeoutMS&&(e.closesAt||t+this.props.closeTimeoutMS);i?(e.beforeClose||this.portal.closeWithTimeout(),setTimeout(this.removePortal,i-t)):this.removePortal()}}},{key:"render",value:function(){return c.canUseDOM&&y?(!this.node&&y&&(this.node=b("div")),A()(a.default.createElement(d.default,o({ref:this.portalRef,defaultStyles:t.defaultStyles},this.props)),this.node)):null}}],[{key:"setAppElement",value:function(e){u.setElement(e)}}]),t}(r.Component);x.propTypes={isOpen:s.default.bool.isRequired,style:s.default.shape({content:s.default.object,overlay:s.default.object}),portalClassName:s.default.string,bodyOpenClassName:s.default.string,htmlOpenClassName:s.default.string,className:s.default.oneOfType([s.default.string,s.default.shape({base:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),overlayClassName:s.default.oneOfType([s.default.string,s.default.shape({base
vendor: 9,617 bytes, line 1
1:s.default.string.isRequired,afterOpen:s.default.string.isRequired,beforeClose:s.default.string.isRequired})]),appElement:s.default.oneOfType([s.default.instanceOf(p.default),s.default.instanceOf(c.SafeHTMLCollection),s.default.instanceOf(c.SafeNodeList),s.default.arrayOf(s.default.instanceOf(p.default))]),onAfterOpen:s.default.func,onRequestClose:s.default.func,closeTimeoutMS:s.default.number,ariaHideApp:s.default.bool,shouldFocusAfterRender:s.default.bool,shouldCloseOnOverlayClick:s.default.bool,shouldReturnFocusAfterClose:s.default.bool,preventScroll:s.default.bool,parentSelector:s.default.func,aria:s.default.object,data:s.default.object,role:s.default.string,contentLabel:s.default.string,shouldCloseOnEsc:s.default.bool,overlayRef:s.default.func,contentRef:s.default.func,id:s.default.string,overlayElement:s.default.func,contentElement:s.default.func},x.defaultProps={isOpen:!1,portalClassName:v,bodyOpenClassName:g,role:"dialog",ariaHideApp:!0,closeTimeoutMS:0,shouldFocusAfterRender:!0,shouldCloseOnEsc:!0,shouldCloseOnOverlayClick:!0,shouldReturnFocusAfterClose:!0,preventScroll:!1,parentSelector:function(){return document.body},overlayElement:function(e,t){return a.default.createElement("div",e,t)},contentElement:function(e,t){return a.default.createElement("div",e,t)}},x.defaultStyles={overlay:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(255, 255, 255, 0.75)"},content:{position:"absolute",top:"40px",left:"40px",right:"40px",bottom:"40px",border:"1px solid #ccc",background:"#fff",overflow:"auto",WebkitOverflowScrolling:"touch",borderRadius:"4px",outline:"none",padding:"20px"}},(0,m.polyfill)(x),t.default=x},28747:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e},n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r=function(){function e(e,t){for(var i=0;i<t.length;i++){var o=t[i];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,i,o){return i&&e(t.prototype,i),o&&e(t,o),t}}(),a=i(67294),l=v(i(45697)),s=f(i(99685)),d=v(i(88338)),u=f(i(57149)),c=f(i(32409)),p=i(51112),m=v(p),h=v(i(89623));function f(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t.default=e,t}function v(e){return e&&e.__esModule?e:{default:e}}i(35063);var g={overlay:"ReactModal__Overlay",content:"ReactModal__Content"},y=0,b=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t);var i=function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return i.setOverlayRef=function(e){i.overlay=e,i.props.overlayRef&&i.props.overlayRef(e)},i.setContentRef=function(e){i.content=e,i.props.contentRef&&i.props.contentRef(e)},i.afterClose=function(){var e=i.props,t=e.appElement,o=e.ariaHideApp,n=e.htmlOpenClassName,r=e.bodyOpenClassName,a=e.parentSelector,l=a&&a().ownerDocument||document;r&&c.remove(l.body,r),n&&c.remove(l.getElementsByTagName("html")[0],n),o&&y>0&&0==(y-=1)&&u.show(t),i.props.shouldFocusAfterRender&&(i.props.shouldReturnFocusAfterClose?(s.returnFocus(i.props.preventScroll),s.teardownScopedFocus()):s.popWithoutFocus()),i.props.onAfterClose&&i.props.onAfterClose(),h.default.deregister(i)},i.open=function(){i.beforeOpen(),i.state.afterOpen&&i.state.beforeClose?(clearTimeout(i.closeTimer),i.setState({beforeClose:!1})):(i.props.shouldFocusAfterRender&&(s.setupScopedFocus(i.node),s.markForFocusLater()),i.setState({isOpen:!0},function(){i.openAnimationFrame=requestAnimationFrame(function(){i.setState({afterOpen:!0}),i.props.isOpen&&i.props.onAfterOpen&&i.props.onAfterOpen({overlayEl:i.overlay,contentEl:i.content})})}))},i.close=function(){i.props.closeTimeoutMS>0?i.closeWithTimeout():i.closeWithoutTimeout()},i.focusContent=function(){return i.content&&!i.contentHasFocus()&&i.content.focus({preventScroll:!0})},i.closeWithTimeout=function(){var e=Date.now()+i.props.closeTimeoutMS;i.setState({beforeClose:!0,closesAt:e},function(){i.closeTimer=setTimeout(i.closeWithoutTimeout,i.state.closesAt-Date.now())})},i.closeWithoutTimeout=function(){i.setState({beforeClose:!1,isOpen:!1,afterOpen:!1,closesAt:null},i.afterClose)},i.handleKeyDown=function(e){("Tab"===e.code||9===e.keyCode)&&(0,d.default)(i.content,e),i.props.shouldCloseOnEsc&&("Escape"===e.code||27===e.keyCode)&&(e.stopPropagation(),i.requestClose(e))},i.handleOverlayOnClick=function(e){null===i.shouldClose&&(i.shouldClose=!0),i.shouldClose&&i.props.shouldCloseOnOverlayClick&&(i.ownerHandlesClose()?i.requestClose(e):i.focusContent()),i.shouldClose=null},i.handleContentOnMouseUp=function(){i.shouldClose=!1},i.handleOverlayOnMouseDown=function(e){i.props.shouldCloseOnOverlayClick||e.target!=i.overlay||e.preventDefault()},i.handleContentOnClick=function(){i.shouldClose=!1},i.handleContentOnMouseDown=function(){i.shouldClose=!1},i.requestClose=function(e){return i.ownerHandlesClose()&&i.props.onRequestClose(e)},i.ownerHandlesClose=function(){return i.props.onRequestClose},i.shouldBeClosed=function(){return!i.state.isOpen&&!i.state.beforeClose},i.contentHasFocus=function(){return document.activeElement===i.content||i.content.contains(document.activeElement)},i.buildClassName=function(e,t){var o=(void 0===t?"undefined":n(t))==="object"?t:{base:g[e],afterOpen:g[e]+"--after-open",beforeClose:g[e]+"--before-close"},r=o.base;return i.state.afterOpen&&(r=r+" "+o.afterOpen),i.state.beforeClose&&(r=r+" "+o.beforeClose),"string"==typeof t&&t?r+" "+t:r},i.attributesFromObject=function(e,t){return Object.keys(t).reduce(function(i,o){return i[e+"-"+o]=t[o],i},{})},i.state={afterOpen:!1,beforeClose:!1},i.shouldClose=null,i.moveFromContentToOverlay=null,i}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"componentDidMount",value:function(){this.props.isOpen&&this.open()}},{key:"componentDidUpdate",value:function(e,t){this.props.isOpen&&!e.isOpen?this.open():!this.props.isOpen&&e.isOpen&&this.close(),this.props.shouldFocusAfterRender&&this.state.isOpen&&!t.isOpen&&this.focusContent()}},{key:"componentWillUnmount",value:function(){this.state.isOpen&&this.afterClose(),clearTimeout(this.closeTimer),cancelAnimationFrame(this.openAnimationFrame)}},{key:"beforeOpen",value:function(){var e=this.props,t=e.appElement,i=e.ariaHideApp,o=e.htmlOpenClassName,n=e.bodyOpenClassName,r=e.parentSelector,a=r&&r().ownerDocument||document;n&&c.add(a.body,n),o&&c.add(a.getElementsByTagName("html")[0],o),i&&(y+=1,u.hide(t)),h.default.register(this)}},{key:"render",value:function(){var e=this.props,t=e.id,i=e.className,n=e.overlayClassName,r=e.defaultStyles,a=e.children,l=i?{}:r.content,s=n?{}:r.overlay;if(this.shouldBeClosed())return null;var d={ref:this.setOverlayRef,className:this.buildClassName("overlay",n),style:o({},s,this.props.style.overlay),onClick:this.handleOverlayOnClick,onMouseDown:this.handleOverlayOnMouseDown},u=o({id:t,ref:this.setContentRef,style:o({},l,this.props.style.content),className:this.buildClassName("content",i),tabIndex:"-1",onKeyDown:this.handleKeyDown,onMouseDown:this.handleContentOnMouseDown,onMouseUp:this.handleContentOnMouseUp,onClick:this.handleContentOnClick,role:this.props.role,"aria-label":this.props.contentLabel},this.attributesFromObject("aria",o({modal:!0},this.props.aria)),this.attributesFromObject("data",this.props.data||{}),{"data-testid":this.props.testId}),c=this.props.contentElement(u,a);return this.props.overlayElement(d,c)}}]),t}(a.Component);b.defaultProps={style:{overlay:{},content:{}},defaultStyles:{}},b.propTypes={isOpen:l.default.bool.isRequired,defaultStyles:l.default.shape({content:l.default.object,overlay:l.default.object}),style:l.default.shape({content:l.default.object,overlay:l.default.object}),className:l.default.oneOfType([l.default.string,l.default.object]),overlayClassName:l.default.oneOfType([l.default.string,l.default.object]),parentSelector:l.default.func,bodyOpenClassName:l.default.string,htmlOpenClassName:l.default.string,ariaHideApp:l.default.bool,appElement:l.default.oneOfType([l.default.instanceOf(m.default),l.default.instanceOf(p.SafeHTMLCollection),l.default.instanceOf(p.SafeNodeList),l.default.arrayOf(l.default.instanceOf(m.default))]),onAfterOpen:l.default.func,onAfterClose:l.default.func,onRequestClose:l.default.func,closeTimeoutMS:l.default.number,shouldFocusAfterRender:l.default.bool,shouldCloseOnOverlayClick:l.default.bool,shouldReturnFocusAfterClose:l.default.bool,preventScroll:l.default.bool,role:l.default.string,contentLabel:l.default.string,aria:l.default.object,data:l.default.object,children:l.default.node,shouldCloseOnEsc:l.default.bool,overlayRef:l.default.func,contentRef:l.default.func,id:l.default.string,overlayElement:l.default.func,contentElement:l.default.func,testId:l.default.string},t.default=b,e.exports=t.default},57149:function(e,t,i){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){a&&(a.removeAttribute?a.removeAttribute("aria-hidden"):null!=a.length?a.forEach(function(e){return e.removeAttribute("aria-hidden")}):document.querySelectorAll(a).forEach(function(e){return e.removeAttribute("aria-hidden")})),a=null},t.log=function(){},t.assertNodeList=l,t.setElement=function(e){var t=e;if("string"==typeof t&&r.canUseDOM){var i=document.querySelectorAll(t);l(i,t),t=i}return a=t||a},t.validateElement=s,t.hide=function(e){var t=!0,i=!1,o=void 0;try{for(var n,r=s(e)[Symbol.iterator]();!(t=(n=r.next()).done);t=!0)n.value.setAttribute("aria-hidden","true")}catch(e){i=!0,o=e}finally{try{!t&&r.return&&r.return()}finally{if(i)throw o}}},t.show=function(e){var t=!0,i=!1,o=void 0;try{for(var n,r=s(e)[Symbol.iterator]();!(t=(n=r.next()).done);t=!0)n.value.removeAttribute("aria-hidden")}catch(e){i=!0,o=e}finally{try{!t&&r.return&&r.return()}finally{if(i)throw o}}},t.documentNotReadyOrSSRTesting=function(){a=null};var o,n=(o=i(42473))&&o.__esModule?o:{default:o},r=i(51112),a=null;function l(e,t){if(!e||!e.length)throw Error("react-modal: No elements were found for selector "+t+".")}function s(e){var t=e||a;return t?Array.isArray(t)||t instanceof HTMLCollection||t instanceof NodeList?t:[t]:((0,n.default)(!1,"react-modal: App element is not defined. Please use `Modal.setAppElement(el)` or set `appElement={el}`. This is needed so screen readers don't see main content when modal is opened. It is not recommended, but you can opt-out by setting `ariaHideApp={false}`."),[])}},35063:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){for(var e=[r,a],t=0;t<e.length;t++){var i=e[t];i&&i.parentNode&&i.parentNode.removeChild(i)}r=a=null,l=[]},t.log=function(){console.log("bodyTrap ----------"),console.log(l.length);for(var e=[r,a],t=0;t<e.length;t++){var i=e[t]||{};console.log(i.nodeName,i.className,i.id)}console.log("edn bodyTrap ----------")};var o,n=(o=i(89623))&&o.__esModule?o:{default:o},r=void 0,a=void 0,l=[];function s(){0!==l.length&&l[l.length-1].focusContent()}n.default.subscribe(function(e,t){r||a||((r=document.createElement("div")).setAttribute("data-react-modal-body-trap",""),r.style.position="absolute",r.style.opacity="0",r.setAttribute("tabindex","0"),r.addEventListener("focus",s),(a=r.cloneNode()).addEventListener("focus",s)),(l=t).length>0?(document.body.firstChild!==r&&document.body.insertBefore(r,document.body.firstChild),document.body.lastChild!==a&&document.body.appendChild(a)):(r.parentElement&&r.parentElement.removeChild(r),a.parentElement&&a.parentElement.removeChild(a))})},32409:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){var e=document.getElementsByTagName("html")[0];for(var t in i)n(e,i[t]);var r=document.body;for(var a in o)n(r,o[a]);i={},o={}},t.log=function(){};var i={},o={};function n(e,t){e.classList.remove(t)}var r=function(e,t,i){i.forEach(function(i){t[i]||(t[i]=0),t[i]+=1,e.add(i)})},a=function(e,t,i){i.forEach(function(i){t[i]&&(t[i]-=1),0===t[i]&&e.remove(i)})};t.add=function(e,t){return r(e.classList,"html"==e.nodeName.toLowerCase()?i:o,t.split(" "))},t.remove=function(e,t){return a(e.classList,"html"==e.nodeName.toLowerCase()?i:o,t.split(" "))}},99685:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resetState=function(){r=[]},t.log=function(){},t.handleBlur=s,t.handleFocus=d,t.markForFocusLater=function(){r.push(document.activeElement)},t.returnFocus=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=null;try{0!==r.length&&(t=r.pop()).focus({preventScroll:e});return}catch(e){console.warn(["You tried to return focus to",t,"but it is not in the DOM anymore"].join(" "))}},t.popWithoutFocus=function(){r.length>0&&r.pop()},t.setupScopedFocus=function(e){a=e,window.addEventListener?(window.addEventListener("blur",s,!1),document.addEventListener("focus",d,!0)):(window.attachEvent("onBlur",s),document.attachEvent("onFocus",d))},t.teardownScopedFocus=function(){a=null,window.addEventListener?(window.removeEventListener("blur",s),document.removeEventListener("focus",d)):(window.detachEvent("onBlur",s),document.detachEvent("onFocus",d))};var o,n=(o=i(37845))&&o.__esModule?o:{default:o},r=[],a=null,l=!1;function s(){l=!0}function d(){l&&(l=!1,a&&setTimeout(function(){a.contains(document.activeElement)||((0,n.default)(a)[0]||a).focus()},0))}},89623:function(e,t){"use strict";
1Object.defineProperty(t,"__esModule",{value:!0}),t.log=function(){console.log("portalOpenInstances ----------"),console.log(o.openInstances.length),o.openInstances.forEach(function(e){return console.log(e)}),console.log("end portalOpenInstances ----------")},t.resetState=function(){o=new i};var i=function e(){var t=this;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.register=function(e){-1===t.openInstances.indexOf(e)&&(t.openInstances.push(e),t.emit("register"))},this.deregister=function(e){var i=t.openInstances.indexOf(e);-1!==i&&(t.openInstances.splice(i,1),t.emit("deregister"))},this.subscribe=function(e){t.subscribers.push(e)},this.emit=function(e){t.subscribers.forEach(function(i){return i(e,t.openInstances.slice())})},this.openInstances=[],this.subscribers=[]},o=new i;t.default=o},51112:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canUseDOM=t.SafeNodeList=t.SafeHTMLCollection=void 0;var o,n=((o=i(58875))&&o.__esModule?o:{default:o}).default,r=n.canUseDOM?window.HTMLElement:{};t.SafeHTMLCollection=n.canUseDOM?window.HTMLCollection:{},t.SafeNodeList=n.canUseDOM?window.NodeList:{},t.canUseDOM=n.canUseDOM,t.default=r},88338:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var i=(0,n.default)(e);if(!i.length){t.preventDefault();return}var o=void 0,r=t.shiftKey,a=i[0],l=i[i.length-1],s=function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;return t.activeElement.shadowRoot?e(t.activeElement.shadowRoot):t.activeElement}();if(e===s){if(!r)return;o=l}if(l!==s||r||(o=a),a===s&&r&&(o=l),o){t.preventDefault(),o.focus();return}var d=/(\bChrome\b|\bSafari\b)\//.exec(navigator.userAgent);if(null!=d&&"Chrome"!=d[1]&&null==/\biPod\b|\biPad\b/g.exec(navigator.userAgent)){var u=i.indexOf(s);if(u>-1&&(u+=r?-1:1),void 0===(o=i[u])){t.preventDefault(),(o=r?l:a).focus();return}t.preventDefault(),o.focus()}};var o,n=(o=i(37845))&&o.__esModule?o:{default:o};e.exports=t.default},37845:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){return[].slice.call(t.querySelectorAll("*"),0).reduce(function(t,i){return t.concat(i.shadowRoot?e(i.shadowRoot):[i])},[]).filter(o)};var i=/input|select|textarea|button|object|iframe/;function o(e){var t,o,n=e.getAttribute("tabindex");null===n&&(n=void 0);var r=isNaN(n);return(r||n>=0)&&(t=!r,o=e.nodeName.toLowerCase(),(i.test(o)&&!e.disabled||"a"===o&&e.href||t)&&function(e){for(var t=e,i=e.getRootNode&&e.getRootNode();t&&t!==document.body;){if(i&&t===i&&(t=i.host.parentNode),function(e){var t=e.offsetWidth<=0&&e.offsetHeight<=0;if(t&&!e.innerHTML)return!0;try{var i=window.getComputedStyle(e),o=i.getPropertyValue("display");return t?"contents"!==o&&("visible"!==i.getPropertyValue("overflow")||e.scrollWidth<=0&&e.scrollHeight<=0):"none"===o}catch(e){return console.warn("Failed to inspect element style"),!1}}(t))return!1;t=t.parentNode}return!0}(e))}e.exports=t.default},83253:function(e,t,i){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,n=(o=i(29983))&&o.__esModule?o:{default:o};t.default=n.default,e.exports=t.default},25617:function(e,t,i){"use strict";i.d(t,{zt:function(){return m},I0:function(){return g},v9:function(){return b},oR:function(){return v}});var o,n,r,a,l=i(67294),s=l.createContext(null),d=function(e){e()},u={notify:function(){},get:function(){return[]}};function c(e,t){var i,o=u;function n(){a.onStateChange&&a.onStateChange()}function r(){if(!i){var r,a,l;i=t?t.addNestedSub(n):e.subscribe(n),r=d,a=null,l=null,o={clear:function(){a=null,l=null},notify:function(){r(function(){for(var e=a;e;)e.callback(),e=e.next})},get:function(){for(var e=[],t=a;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,i=l={callback:e,next:null,prev:l};return i.prev?i.prev.next=i:a=i,function(){t&&null!==a&&(t=!1,i.next?i.next.prev=i.prev:l=i.prev,i.prev?i.prev.next=i.next:a=i.next)}}}}}var a={addNestedSub:function(e){return r(),o.subscribe(e)},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:n,isSubscribed:function(){return!!i},trySubscribe:r,tryUnsubscribe:function(){i&&(i(),i=void 0,o.clear(),o=u)},getListeners:function(){return o}};return a}var p="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?l.useLayoutEffect:l.useEffect,m=function(e){var t=e.store,i=e.context,o=e.children,n=(0,l.useMemo)(function(){var e=c(t);return{store:t,subscription:e}},[t]),r=(0,l.useMemo)(function(){return t.getState()},[t]);p(function(){var e=n.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),r!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}},[n,r]);var a=i||s;return l.createElement(a.Provider,{value:n},o)};function h(){return(0,l.useContext)(s)}function f(e){void 0===e&&(e=s);var t=e===s?h:function(){return(0,l.useContext)(e)};return function(){return t().store}}
1i(8679),i(72973),i(87462);var v=f(),g=(void 0===o&&(o=s),n=o===s?v:f(o),function(){return n().dispatch}),y=function(e,t){return e===t},b=(void 0===r&&(r=s),a=r===s?h:function(){return(0,l.useContext)(r)},function(e,t){void 0===t&&(t=y);var i=a(),o=function(e,t,i,o){var n,r=(0,l.useReducer)(function(e){return e+1},0)[1],a=(0,l.useMemo)(function(){return c(i,o)},[i,o]),s=(0,l.useRef)(),d=(0,l.useRef)(),u=(0,l.useRef)(),m=(0,l.useRef)(),h=i.getState();try{if(e!==d.current||h!==u.current||s.current){var f=e(h);n=void 0!==m.current&&t(f,m.current)?m.current:f}else n=m.current}catch(e){throw s.current&&(e.message+="\nThe error may be correlated with this previous error:\n"+s.current.stack+"\n\n"),e}return p(function(){d.current=e,u.current=h,m.current=n,s.current=void 0}),p(function(){function e(){try{var e=i.getState();if(e===u.current)return;var o=d.current(e);if(t(o,m.current))return;m.current=o,u.current=e}catch(e){s.current=e}r()}return a.onStateChange=e,a.trySubscribe(),e(),function(){return a.tryUnsubscribe()}},[i,a]),n}(e,t,i.store,i.subscription);return(0,l.useDebugValue)(o),o});d=i(73935).unstable_batchedUpdates},88359:function(e,t){"use strict";var i=60103,o=60106,n=60107,r=60108,a=60114,l=60109,s=60110,d=60112,u=60113,c=60120,p=60115,m=60116;if("function"==typeof Symbol&&Symbol.for){var h=Symbol.for;h("react.element"),h("react.portal"),h("react.fragment"),h("react.strict_mode"),h("react.profiler"),h("react.provider"),h("react.context"),h("react.forward_ref"),h("react.suspense"),h("react.suspense_list"),h("react.memo"),h("react.lazy"),h("react.block"),h("react.server.block"),h("react.fundamental"),h("react.debug_trace_mode"),h("react.legacy_hidden")}},72973:function(e,t,i){"use strict";i(88359)},94500:function(e,t,i){!function(e){"use strict";function t(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function o(e,t){Object.defineProperty(this,"kind",{value:e,enumerable:!0}),t&&t.length&&Object.defineProperty(this,"path",{value:t,enumerable:!0})}function n(e,t,i){n.super_.call(this,"E",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0}),Object.defineProperty(this,"rhs",{value:i,enumerable:!0})}function r(e,t){r.super_.call(this,"N",e),Object.defineProperty(this,"rhs",{value:t,enumerable:!0})}function a(e,t){a.super_.call(this,"D",e),Object.defineProperty(this,"lhs",{value:t,enumerable:!0})}function l(e,t,i){l.super_.call(this,"A",e),Object.defineProperty(this,"index",{value:t,enumerable:!0}),Object.defineProperty(this,"item",{value:i,enumerable:!0})}function s(e,t,i){var o=e.slice((i||t)+1||e.length);return e.length=t<0?e.length+t:t,e.push.apply(e,o),e}function d(e){var t=void 0===e?"undefined":A(e);return"object"!==t?t:e===Math?"math":null===e?"null":Array.isArray(e)?"array":"[object Date]"===Object.prototype.toString.call(e)?"date":"function"==typeof e.toString&&/^\/.*\//.test(e.toString())?"regexp":"object"}function u(e,t,i,o,c,p,m){c=c||[],m=m||[];var h,f=c.slice(0);if(void 0!==p){if(o){if("function"==typeof o&&o(f,p))return;if("object"===(void 0===o?"undefined":A(o))){if(o.prefilter&&o.prefilter(f,p))return;if(o.normalize){var v=o.normalize(f,p,e,t);v&&(e=v[0],t=v[1])}}}f.push(p)}"regexp"===d(e)&&"regexp"===d(t)&&(e=e.toString(),t=t.toString());var g=void 0===e?"undefined":A(e),y=void 0===t?"undefined":A(t),b="undefined"!==g||m&&m[m.length-1].lhs&&m[m.length-1].lhs.hasOwnProperty(p),x="undefined"!==y||m&&m[m.length-1].rhs&&m[m.length-1].rhs.hasOwnProperty(p);if(!b&&x)i(new r(f,t));else if(!x&&b)i(new a(f,e));else if(d(e)!==d(t))i(new n(f,e,t));else if("date"===d(e)&&e-t!=0)i(new n(f,e,t));else if("object"===g&&null!==e&&null!==t){if(m.filter(function(t){return t.lhs===e}).length)e!==t&&i(new n(f,e,t));else{if(m.push({lhs:e,rhs:t}),Array.isArray(e)){for(e.length,h=0;h<e.length;h++)h>=t.length?i(new l(f,h,new a(void 0,e[h]))):u(e[h],t[h],i,o,f,h,m);for(;h<t.length;)i(new l(f,h,new r(void 0,t[h++])))}else{var w=Object.keys(e),_=Object.keys(t);w.forEach(function(n,r){var a=_.indexOf(n);a>=0?(u(e[n],t[n],i,o,f,n,m),_=s(_,a)):u(e[n],void 0,i,o,f,n,m)}),_.forEach(function(e){u(void 0,t[e],i,o,f,e,m)})}m.length=m.length-1}}else e!==t&&("number"===g&&isNaN(e)&&isNaN(t)||i(new n(f,e,t)))}function c(e,t,i,o){return o=o||[],u(e,t,function(e){e&&o.push(e)},i),o.length?o:void 0}function p(e,t,i){if(e&&t&&i&&i.kind){for(var o=e,n=-1,r=i.path?i.path.length-1:0;++n<r;)void 0===o[i.path[n]]&&(o[i.path[n]]="number"==typeof i.path[n]?[]:{}),o=o[i.path[n]];switch(i.kind){case"A":!function e(t,i,o){if(o.path&&o.path.length){var n,r=t[i],a=o.path.length-1;for(n=0;n<a;n++)r=r[o.path[n]];switch(o.kind){case"A":e(r[o.path[n]],o.index,o.item);break;case"D":delete r[o.path[n]];break;case"E":case"N":r[o.path[n]]=o.rhs}}else switch(o.kind){case"A":e(t[i],o.index,o.item);break;case"D":t=s(t,i);break;case"E":case"N":t[i]=o.rhs}return t}(i.path?o[i.path[n]]:o,i.index,i.item);break;case"D":delete o[i.path[n]];break;case"E":case"N":o[i.path[n]]=i.rhs}}}function m(e,t,i,o){switch(void 0===e?"undefined":A(e)){case"object":return"function"==typeof e[o]?e[o].apply(e,x(i)):e[o];case"function":return e(t);default:return e}}function h(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=Object.assign({},S,e),i=t.logger,o=t.stateTransformer,n=t.errorTransformer,r=t.predicate,a=t.logErrors,l=t.diffPredicate;if(void 0===i)return function(){return function(e){return function(t){return e(t)}}};if(e.getState&&e.dispatch)return console.error("[redux-logger] redux-logger not installed. Make sure to pass logger instance as middleware:\n// Logger with default options\nimport { logger } from 'redux-logger'\nconst store = createStore(\n  reducer,\n  applyMiddleware(logger)\n)\n// Or you can create your own logger with custom options http://bit.ly/redux-logger-options\nimport createLogger from 'redux-logger'\nconst logger = createLogger({\n  // ...options\n});\nconst store = createStore(\n  reducer,\n  applyMiddleware(logger)\n)\n"),function(){return function(e){return function(t){return e(t)}}};var s=[];return function(e){var i=e.getState;return function(e){return function(d){if("function"==typeof r&&!r(i,d))return e(d);var u={};s.push(u),u.started=b.now(),u.startedTime=new Date,u.prevState=o(i()),u.action=d;var p=void 0;if(a)try{p=e(d)}catch(e){u.error=n(e)}else p=e(d);u.took=b.now()-u.started,u.nextState=o(i());var h=t.diff&&"function"==typeof l?l(i,d):t.diff;if(function(e,t){var i,o,n=t.logger,r=t.actionTransformer,a=t.titleFormatter,l=void 0===a?(i=t.timestamp,o=t.duration,function(e,t,n){var r=["action"];
1return r.push("%c"+String(e.type)),i&&r.push("%c@ "+t),o&&r.push("%c(in "+n.toFixed(2)+" ms)"),r.join(" ")}):a,s=t.collapsed,d=t.colors,u=t.level,p=t.diff,h=void 0===t.titleFormatter;e.forEach(function(i,o){var a=i.started,f=i.startedTime,v=i.action,g=i.prevState,b=i.error,A=i.took,w=i.nextState,S=e[o+1];S&&(w=S.prevState,A=S.started-a);var C=r(v),k="function"==typeof s?s(function(){return w},v,i):s,T=y(f),E=d.title?"color: "+d.title(C)+";":"",P=["color: gray; font-weight: lighter;"];P.push(E),t.timestamp&&P.push("color: gray; font-weight: lighter;"),t.duration&&P.push("color: gray; font-weight: lighter;");var I=l(C,T,A);try{k?d.title&&h?n.groupCollapsed.apply(n,["%c "+I].concat(P)):n.groupCollapsed(I):d.title&&h?n.group.apply(n,["%c "+I].concat(P)):n.group(I)}catch(e){n.log(I)}var D=m(u,C,[g],"prevState"),O=m(u,C,[C],"action"),N=m(u,C,[b,g],"error"),j=m(u,C,[w],"nextState");if(D){if(d.prevState){var M="color: "+d.prevState(g)+"; font-weight: bold";n[D]("%c prev state",M,g)}else n[D]("prev state",g)}if(O){if(d.action){var R="color: "+d.action(C)+"; font-weight: bold";n[O]("%c action    ",R,C)}else n[O]("action    ",C)}if(b&&N){if(d.error){var z="color: "+d.error(b,g)+"; font-weight: bold;";n[N]("%c error     ",z,b)}else n[N]("error     ",b)}if(j){if(d.nextState){var L="color: "+d.nextState(w)+"; font-weight: bold";n[j]("%c next state",L,w)}else n[j]("next state",w)}p&&function(e,t,i,o){var n=c(e,t);try{o?i.groupCollapsed("diff"):i.group("diff")}catch(e){i.log("diff")}n?n.forEach(function(e){var t=e.kind,o=function(e){var t=e.kind,i=e.path,o=e.lhs,n=e.rhs,r=e.index,a=e.item;switch(t){case"E":return[i.join("."),o,"→",n];case"N":return[i.join("."),n];case"D":return[i.join(".")];case"A":return[i.join(".")+"["+r+"]",a];default:return[]}}(e);i.log.apply(i,["%c "+_[t].text,"color: "+_[t].color+"; font-weight: bold"].concat(x(o)))}):i.log("—— no diff ——");try{i.groupEnd()}catch(e){i.log("—— diff end —— ")}}(g,w,n,k);try{n.groupEnd()}catch(e){n.log("—— log end ——")}})}(s,Object.assign({},t,{diff:h})),s.length=0,u.error)throw u.error;return p}}}}var f,v,g=function(e,t){return Array(t-e.toString().length+1).join("0")+e},y=function(e){return g(e.getHours(),2)+":"+g(e.getMinutes(),2)+":"+g(e.getSeconds(),2)+"."+g(e.getMilliseconds(),3)},b="undefined"!=typeof performance&&null!==performance&&"function"==typeof performance.now?performance:Date,A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},x=function(e){if(Array.isArray(e)){for(var t=0,i=Array(e.length);t<e.length;t++)i[t]=e[t];return i}return Array.from(e)},w=[];(v=(f="object"===(void 0===i.g?"undefined":A(i.g))&&i.g?i.g:"undefined"!=typeof window?window:{}).DeepDiff)&&w.push(function(){void 0!==v&&f.DeepDiff===c&&(f.DeepDiff=v,v=void 0)}),t(n,o),t(r,o),t(a,o),t(l,o),Object.defineProperties(c,{diff:{value:c,enumerable:!0},observableDiff:{value:u,enumerable:!0},applyDiff:{value:function(e,t,i){e&&t&&u(e,t,function(o){i&&!i(e,t,o)||p(e,t,o)})},enumerable:!0},applyChange:{value:p,enumerable:!0},revertChange:{value:function(e,t,i){if(e&&t&&i&&i.kind){var o,n,r=e;for(n=i.path.length-1,o=0;o<n;o++)void 0===r[i.path[o]]&&(r[i.path[o]]={}),r=r[i.path[o]];switch(i.kind){case"A":!function e(t,i,o){if(o.path&&o.path.length){var n,r=t[i],a=o.path.length-1;for(n=0;n<a;n++)r=r[o.path[n]];switch(o.kind){case"A":e(r[o.path[n]],o.index,o.item);break;case"D":case"E":r[o.path[n]]=o.lhs;break;case"N":delete r[o.path[n]]}}else switch(o.kind){case"A":e(t[i],o.index,o.item);break;case"D":case"E":t[i]=o.lhs;break;case"N":t=s(t,i)}return t}(r[i.path[o]],i.index,i.item);break;case"D":case"E":r[i.path[o]]=i.lhs;break;case"N":delete r[i.path[o]]}}},enumerable:!0},isConflict:{value:function(){return void 0!==v},enumerable:!0},noConflict:{value:function(){return w&&(w.forEach(function(e){e()}),w=null),c},enumerable:!0}});var _={E:{color:"#2196F3",text:"CHANGED:"},N:{color:"#4CAF50",text:"ADDED:"},D:{color:"#F44336",text:"DELETED:"},A:{color:"#2196F3",text:"ARRAY:"}},S={level:"log",logger:console,logErrors:!0,collapsed:void 0,predicate:void 0,duration:!1,timestamp:!0,stateTransformer:function(e){return e},actionTransformer:function(e){return e},errorTransformer:function(e){return e},colors:{title:function(){return"inherit"},prevState:function(){return"#9E9E9E"},action:function(){return"#03A9F4"},nextState:function(){return"#4CAF50"},error:function(){return"#F20404"}},diff:!1,diffPredicate:void 0,transformer:void 0},C=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}
1,t=e.dispatch,i=e.getState;return"function"==typeof t||"function"==typeof i?h()({dispatch:t,getState:i}):void console.error("\n[redux-logger v3] BREAKING CHANGE\n[redux-logger v3] Since 3.0.0 redux-logger exports by default logger with default settings.\n[redux-logger v3] Change\n[redux-logger v3] import createLogger from 'redux-logger'\n[redux-logger v3] to\n[redux-logger v3] import { createLogger } from 'redux-logger'\n")};e.defaults=S,e.createLogger=h,e.logger=C,e.default=C,Object.defineProperty(e,"__esModule",{value:!0})}(t)},23488:function(e,t,i){"use strict";t.__esModule=!0,t.default=function(e){var t=(0,n.default)(e);return{getItem:function(e){return new Promise(function(i,o){i(t.getItem(e))})},setItem:function(e,i){return new Promise(function(o,n){o(t.setItem(e,i))})},removeItem:function(e){return new Promise(function(i,o){i(t.removeItem(e))})}}};var o,n=(o=i(77290))&&o.__esModule?o:{default:o}},77290:function(e,t){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(){}t.__esModule=!0,t.default=function(e){var t="".concat(e,"Storage");return!function(e){if(("undefined"==typeof self?"undefined":i(self))!=="object"||!(e in self))return!1;try{var t=self[e],o="redux-persist ".concat(e," test");t.setItem(o,"test"),t.getItem(o),t.removeItem(o)}catch(e){return!1}return!0}(t)?n:self[t]};var n={getItem:o,setItem:o,removeItem:o}},62168:function(e,t,i){"use strict";t.Z=void 0;var o,n=(0,((o=i(23488))&&o.__esModule?o:{default:o}).default)("session");t.Z=n},96774:function(e){e.exports=function(e,t,i,o){var n=i?i.call(o,e,t):void 0;if(void 0!==n)return!!n;if(e===t)return!0;if("object"!=typeof e||!e||"object"!=typeof t||!t)return!1;var r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(var l=Object.prototype.hasOwnProperty.bind(t),s=0;s<r.length;s++){var d=r[s];if(!l(d))return!1;var u=e[d],c=t[d];if(!1===(n=i?i.call(o,u,c,d):void 0)||void 0===n&&u!==c)return!1}return!0}},5405:function(e,t,i){"use strict";i.d(t,{iv:function(){return ts},ZP:function(){return tu},F4:function(){return tc},zo:function(){return tu}});var o=i(97582),n=i(67294),r=i(96774),a=i.n(r),l="-ms-",s="-moz-",d="-webkit-",u="comm",c="rule",p="decl",m="@keyframes",h=Math.abs,f=String.fromCharCode,v=Object.assign;function g(e,t){return(e=t.exec(e))?e[0]:e}function y(e,t,i){return e.replace(t,i)}function b(e,t,i){return e.indexOf(t,i)}function A(e,t){return 0|e.charCodeAt(t)}function x(e,t,i){return e.slice(t,i)}function w(e){return e.length}function _(e,t){return t.push(e),e}function S(e,t){return e.filter(function(e){return!g(e,t)})}var C=1,k=1,T=0,E=0,P=0,I="";function D(e,t,i,o,n,r,a,l){return{value:e,root:t,parent:i,type:o,props:n,children:r,line:C,column:k,length:a,return:"",siblings:l}}function O(e,t){return v(D("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function N(e){for(;e.root;)e=O(e.root,{children:[e]});_(e,e.siblings)}function j(){return P=E<T?A(I,E++):0,k++,10===P&&(k=1,C++),P}function M(){return A(I,E)}function R(e){switch(e){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function z(e){var t,i;return(t=E-1,i=function e(t){for(;j();)switch(P){case t:return E;case 34:case 39:34!==t&&39!==t&&e(P);break;case 40:41===t&&e(t);break;case 92:j()}return E}(91===e?e+2:40===e?e+1:e),x(I,t,i)).trim()}function L(e,t){for(var i="",o=0;o<e.length;o++)i+=t(e[o],o,e,t)||"";return i}function V(e,t,i,o){switch(e.type){case"@layer":if(e.children.length)break;case"@import":case p:return e.return=e.return||e.value;case u:return"";case m:return e.return=e.value+"{"+L(e.children,o)+"}";case c:if(!w(e.value=e.props.join(",")))return""}return w(i=L(e.children,o))?e.return=e.value+"{"+i+"}":""}function F(e,t,i,o){if(e.length>-1&&!e.return)switch(e.type){case p:e.return=function e(t,i,o){var n;switch(n=i,45^A(t,0)?(((n<<2^A(t,0))<<2^A(t,1))<<2^A(t,2))<<2^A(t,3):0){case 5103:return d+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return d+t+t;case 4789:return s+t+t;
vendor: 9,483 bytes, line 1
1case 5349:case 4246:case 4810:case 6968:case 2756:return d+t+s+t+l+t+t;case 5936:switch(A(t,i+11)){case 114:return d+t+l+y(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return d+t+l+y(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return d+t+l+y(t,/[svh]\w+-[tblr]{2}/,"lr")+t}case 6828:case 4268:case 2903:return d+t+l+t+t;case 6165:return d+t+l+"flex-"+t+t;case 5187:return d+t+y(t,/(\w+).+(:[^]+)/,d+"box-$1$2"+l+"flex-$1$2")+t;case 5443:return d+t+l+"flex-item-"+y(t,/flex-|-self/g,"")+(g(t,/flex-|baseline/)?"":l+"grid-row-"+y(t,/flex-|-self/g,""))+t;case 4675:return d+t+l+"flex-line-pack"+y(t,/align-content|flex-|-self/g,"")+t;case 5548:return d+t+l+y(t,"shrink","negative")+t;case 5292:return d+t+l+y(t,"basis","preferred-size")+t;case 6060:return d+"box-"+y(t,"-grow","")+d+t+l+y(t,"grow","positive")+t;case 4554:return d+y(t,/([^-])(transform)/g,"$1"+d+"$2")+t;case 6187:return y(y(y(t,/(zoom-|grab)/,d+"$1"),/(image-set)/,d+"$1"),t,"")+t;case 5495:case 3959:return y(t,/(image-set\([^]*)/,d+"$1$`$1");case 4968:return y(y(t,/(.+:)(flex-)?(.*)/,d+"box-pack:$3"+l+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+d+t+t;case 4200:if(!g(t,/flex-|baseline/))return l+"grid-column-align"+x(t,i)+t;break;case 2592:case 3360:return l+y(t,"template-","")+t;case 4384:case 3616:if(o&&o.some(function(e,t){return i=t,g(e.props,/grid-\w+-end/)}))return~b(t+(o=o[i].value),"span",0)?t:l+y(t,"-start","")+t+l+"grid-row-span:"+(~b(o,"span",0)?g(o,/\d+/):+g(o,/\d+/)-+g(t,/\d+/))+";";return l+y(t,"-start","")+t;case 4896:case 4128:return o&&o.some(function(e){return g(e.props,/grid-\w+-start/)})?t:l+y(y(t,"-end","-span"),"span ","")+t;case 4095:case 3583:case 4068:case 2532:return y(t,/(.+)-inline(.+)/,d+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(w(t)-1-i>6)switch(A(t,i+1)){case 109:if(45!==A(t,i+4))break;case 102:return y(t,/(.+:)(.+)-([^]+)/,"$1"+d+"$2-$3$1"+s+(108==A(t,i+3)?"$3":"$2-$3"))+t;case 115:return~b(t,"stretch",0)?e(y(t,"stretch","fill-available"),i,o)+t:t}break;case 5152:case 5920:return y(t,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(e,i,o,n,r,a,s){return l+i+":"+o+s+(n?l+i+"-span:"+(r?a:+a-+o)+s:"")+t});case 4949:if(121===A(t,i+6))return y(t,":",":"+d)+t;break;case 6444:switch(A(t,45===A(t,14)?18:11)){case 120:return y(t,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+d+(45===A(t,14)?"inline-":"")+"box$3$1"+d+"$2$3$1"+l+"$2box$3")+t;case 100:return y(t,":",":"+l)+t}break;case 5719:case 2647:case 2135:case 3927:case 2391:return y(t,"scroll-","scroll-snap-")+t}return t}(e.value,e.length,i);return;case m:return L([O(e,{value:y(e.value,"@","@"+d)})],o);case c:if(e.length){var n,r;return n=i=e.props,r=function(t){switch(g(t,o=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":N(O(e,{props:[y(t,/:(read-\w+)/,":"+s+"$1")]})),N(O(e,{props:[t]})),v(e,{props:S(i,o)});break;case"::placeholder":N(O(e,{props:[y(t,/:(plac\w+)/,":"+d+"input-$1")]})),N(O(e,{props:[y(t,/:(plac\w+)/,":"+s+"$1")]})),N(O(e,{props:[y(t,/:(plac\w+)/,l+"input-$1")]})),N(O(e,{props:[t]})),v(e,{props:S(i,o)})}return""},n.map(r).join("")}}}function U(e,t,i,o,n,r,a,l,s,d,u,p){for(var m=n-1,f=0===n?r:[""],v=f.length,g=0,b=0,A=0;g<o;++g)for(var w=0,_=x(e,m+1,m=h(b=a[g])),S=e;w<v;++w)(S=(b>0?f[w]+" "+_:y(_,/&\f/g,f[w])).trim())&&(s[A++]=S);return D(e,t,i,0===n?c:l,s,d,u,p)}function G(e,t,i,o,n){return D(e,t,i,p,x(e,0,o),x(e,o+1,-1),o,n)}var B={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},Z=i(83454),q=void 0!==Z&&void 0!==Z.env&&(Z.env.REACT_APP_SC_ATTR||Z.env.SC_ATTR)||"data-styled",H="active",W="data-styled-version",Y="6.1.13",K="/*!sc*/\n",Q="undefined"!=typeof window&&"HTMLElement"in window,$=!!("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:void 0!==Z&&void 0!==Z.env&&void 0!==Z.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==Z.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==Z.env.REACT_APP_SC_DISABLE_SPEEDY&&Z.env.REACT_APP_SC_DISABLE_SPEEDY:void 0!==Z&&void 0!==Z.env&&void 0!==Z.env.SC_DISABLE_SPEEDY&&""!==Z.env.SC_DISABLE_SPEEDY&&"false"!==Z.env.SC_DISABLE_SPEEDY&&Z.env.SC_DISABLE_SPEEDY),X=Object.freeze([]),J=Object.freeze({}),ee=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),et=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,ei=/(^-|-$)/g;function eo(e){return e.replace(et,"-").replace(ei,"")}var en=/(a)(d)/gi,er=function(e){return String.fromCharCode(e+(e>25?39:97))};function ea(e){var t,i="";for(t=Math.abs(e);t>52;t=t/52|0)i=er(t%52)+i;return(er(t%52)+i).replace(en,"$1-$2")}var el,es=function(e,t){for(var i=t.length;i;)e=33*e^t.charCodeAt(--i);return e},ed=function(e){return es(5381,e)};function eu(e){return"string"==typeof e}var ec="function"==typeof Symbol&&Symbol.for,ep=ec?Symbol.for("react.memo"):60115,em=ec?Symbol.for("react.forward_ref"):60112,eh={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},ef={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},ev={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},eg=((el={})[em]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},el[ep]=ev,el);function ey(e){return("type"in e&&e.type.$$typeof)===ep?ev:"$$typeof"in e?eg[e.$$typeof]:eh}var eb=Object.defineProperty,eA=Object.getOwnPropertyNames,ex=Object.getOwnPropertySymbols,ew=Object.getOwnPropertyDescriptor,e_=Object.getPrototypeOf,eS=Object.prototype;function eC(e){return"function"==typeof e}function ek(e){return"object"==typeof e&&"styledComponentId"in e}function eT(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function eE(e,t){if(0===e.length)return"";for(var i=e[0],o=1;o<e.length;o++)i+=t?t+e[o]:e[o];return i}function eP(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function eI(e,t){Object.defineProperty(e,"toString",{value:t})}function eD(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(e," for more information.").concat(t.length>0?" Args: ".concat(t.join(", ")):""))}var eO=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return e.prototype.indexOfGroup=function(e){for(var t=0,i=0;i<e;i++)t+=this.groupSizes[i];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var i=this.groupSizes,o=i.length,n=o;e>=n;)if((n<<=1)<0)throw eD(16,"".concat(e));this.groupSizes=new Uint32Array(n),this.groupSizes.set(i),this.length=n;for(var r=o;r<n;r++)this.groupSizes[r]=0}for(var a=this.indexOfGroup(e+1),l=(r=0,t.length);r<l;r++)this.tag.insertRule(a,t[r])&&(this.groupSizes[e]++,a++)},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],i=this.indexOfGroup(e),o=i+t;this.groupSizes[e]=0;for(var n=i;n<o;n++)this.tag.deleteRule(i)}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var i=this.groupSizes[e],o=this.indexOfGroup(e),n=o+i,r=o;r<n;r++)t+="".concat(this.tag.getRule(r)).concat(K);return t},e}(),eN=new Map,ej=new Map,eM=1,eR=function(e){if(eN.has(e))return eN.get(e);for(;ej.has(eM);)eM++;var t=eM++;return eN.set(e,t),ej.set(t,e),t},ez=function(e,t){eM=t+1,eN.set(e,t),ej.set(t,e)},eL="style[".concat(q,"][").concat(W,'="').concat(Y,'"]'),eV=new RegExp("^".concat(q,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),eF=function(e,t,i){for(var o,n=i.split(","),r=0,a=n.length;r<a;r++)(o=n[r])&&e.registerName(t,o)},eU=function(e,t){for(var i,o=(null!==(i=t.textContent)&&void 0!==i?i:"").split(K),n=[],r=0,a=o.length;r<a;r++){var l=o[r].trim();if(l){var s=l.match(eV);if(s){var d=0|parseInt(s[1],10),u=s[2];0!==d&&(ez(u,d),eF(e,u,s[3]),e.getTag().insertRules(d,n)),n.length=0}else n.push(l)}}}
1,eG=function(e){for(var t=document.querySelectorAll(eL),i=0,o=t.length;i<o;i++){var n=t[i];n&&n.getAttribute(q)!==H&&(eU(e,n),n.parentNode&&n.parentNode.removeChild(n))}},eB=function(e){var t,o=document.head,n=e||o,r=document.createElement("style"),a=(t=Array.from(n.querySelectorAll("style[".concat(q,"]"))))[t.length-1],l=void 0!==a?a.nextSibling:null;r.setAttribute(q,H),r.setAttribute(W,Y);var s=i.nc;return s&&r.setAttribute("nonce",s),n.insertBefore(r,l),r},eZ=function(){function e(e){this.element=eB(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,i=0,o=t.length;i<o;i++){var n=t[i];if(n.ownerNode===e)return n}throw eD(17)}(this.element),this.length=0}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return!1}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),eq=function(){function e(e){this.element=eB(e),this.nodes=this.element.childNodes,this.length=0}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var i=document.createTextNode(t);return this.element.insertBefore(i,this.nodes[e]||null),this.length++,!0}return!1},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),eH=function(){function e(e){this.rules=[],this.length=0}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),eW=Q,eY={isServer:!Q,useCSSOMInjection:!$},eK=function(){function e(e,t,i){void 0===e&&(e=J),void 0===t&&(t={});var n=this;this.options=(0,o.pi)((0,o.pi)({},eY),e),this.gs=t,this.names=new Map(i),this.server=!!e.isServer,!this.server&&Q&&eW&&(eW=!1,eG(this)),eI(this,function(){return function(e){for(var t=e.getTag(),i=t.length,o="",n=0;n<i;n++)(function(i){var n=ej.get(i);if(void 0!==n){var r=e.names.get(n),a=t.getGroup(i);if(void 0!==r&&r.size&&0!==a.length){var l="".concat(q,".g").concat(i,'[id="').concat(n,'"]'),s="";void 0!==r&&r.forEach(function(e){e.length>0&&(s+="".concat(e,","))}),o+="".concat(a).concat(l,'{content:"').concat(s,'"}').concat(K)}}})(n);return o}(n)})}return e.registerId=function(e){return eR(e)},e.prototype.rehydrate=function(){!this.server&&Q&&eG(this)},e.prototype.reconstructWithOptions=function(t,i){return void 0===i&&(i=!0),new e((0,o.pi)((0,o.pi)({},this.options),t),this.gs,i&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){var e,t,i;return this.tag||(this.tag=(t=(e=this.options).useCSSOMInjection,i=e.target,new eO(e.isServer?new eH(i):t?new eZ(i):new eq(i))))},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(eR(e),this.names.has(e))this.names.get(e).add(t);else{var i=new Set;i.add(t),this.names.set(e,i)}},e.prototype.insertRules=function(e,t,i){this.registerName(e,t),this.getTag().insertRules(eR(e),i)},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},e.prototype.clearRules=function(e){this.getTag().clearGroup(eR(e)),this.clearNames(e)},e.prototype.clearTag=function(){this.tag=void 0},e}(),eQ=/&/g,e$=/^\s*\/\/.*$/gm;function eX(e){var t,i,o,n=void 0===e?J:e,r=n.options,a=void 0===r?J:r,l=n.plugins,s=void 0===l?X:l,d=function(e,o,n){return n.startsWith(i)&&n.endsWith(i)&&n.replaceAll(i,"").length>0?".".concat(t):e},p=s.slice();p.push(function(e){e.type===c&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(eQ,i).replace(o,d))}),a.prefix&&p.push(F),p.push(V);var m=function(e,n,r,l){void 0===n&&(n=""),void 0===r&&(r=""),void 0===l&&(l="&"),t=l,i=n,o=RegExp("\\".concat(i,"\\b"),"g");var s,d,c,m,v,g,S=e.replace(e$,""),O=(v=function e(t,i,o,n,r,a,l,s,d){for(var c,p=0,m=0,v=l,g=0,S=0,T=0,O=1,N=1,L=1,V=0,F="",B=r,Z=a,q=n,H=F;N;)switch(T=V,V=j()){case 40:if(108!=T&&58==A(H,v-1)){-1!=b(H+=y(z(V),"&","&\f"),"&\f",h(p?s[p-1]:0))&&(L=-1);break}case 34:case 39:case 91:H+=z(V);break;case 9:case 10:case 13:case 32:H+=function(e){for(;P=M();)if(P<33)j();else break;return R(e)>2||R(P)>3?"":" "}(T);break;case 92:H+=function(e,t){for(var i;--t&&j()&&!(P<48)&&!(P>102)&&(!(P>
157)||!(P<65))&&(!(P>70)||!(P<97)););return i=E+(t<6&&32==M()&&32==j()),x(I,e,i)}(E-1,7);continue;case 47:switch(M()){case 42:case 47:_(D(c=function(e,t){for(;j();)if(e+P===57)break;else if(e+P===84&&47===M())break;return"/*"+x(I,t,E-1)+"*"+f(47===e?e:j())}(j(),E),i,o,u,f(P),x(c,2,-2),0,d),d);break;default:H+="/"}break;case 123*O:s[p++]=w(H)*L;case 125*O:case 59:case 0:switch(V){case 0:case 125:N=0;case 59+m:-1==L&&(H=y(H,/\f/g,"")),S>0&&w(H)-v&&_(S>32?G(H+";",n,o,v-1,d):G(y(H," ","")+";",n,o,v-2,d),d);break;case 59:H+=";";default:if(_(q=U(H,i,o,p,m,r,s,F,B=[],Z=[],v,a),a),123===V){if(0===m)e(H,i,q,q,B,a,v,s,Z);else switch(99===g&&110===A(H,3)?100:g){case 100:case 108:case 109:case 115:e(t,q,q,n&&_(U(t,q,q,0,0,r,s,F,r,B=[],v,Z),Z),r,Z,v,s,n?B:Z);break;default:e(H,q,q,q,[""],Z,0,s,Z)}}}p=m=S=0,O=L=1,F=H="",v=l;break;case 58:v=1+w(H),S=T;default:if(O<1){if(123==V)--O;else if(125==V&&0==O++&&125==(P=E>0?A(I,--E):0,k--,10===P&&(k=1,C--),P))continue}switch(H+=f(V),V*O){case 38:L=m>0?1:(H+="\f",-1);break;case 44:s[p++]=(w(H)-1)*L,L=1;break;case 64:45===M()&&(H+=z(j())),g=M(),m=v=w(F=H+=function(e){for(;!R(M());)j();return x(I,e,E)}(E)),V++;break;case 45:45===T&&2==w(H)&&(O=0)}}return a}("",null,null,null,[""],(m=c=r||n?"".concat(r," ").concat(n," { ").concat(S," }"):S,C=k=1,T=w(I=m),E=0,c=[]),0,[0],c),I="",v);a.namespace&&(O=function e(t,i){return t.map(function(t){return"rule"===t.type&&(t.value="".concat(i," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(i," ")),t.props=t.props.map(function(e){return"".concat(i," ").concat(e)})),Array.isArray(t.children)&&"@keyframes"!==t.type&&(t.children=e(t.children,i)),t})}(O,a.namespace));var N=[];return L(O,(d=(s=p.concat((g=function(e){return N.push(e)},function(e){!e.root&&(e=e.return)&&g(e)}))).length,function(e,t,i,o){for(var n="",r=0;r<d;r++)n+=s[r](e,t,i,o)||"";return n})),N};return m.hash=s.length?s.reduce(function(e,t){return t.name||eD(15),es(e,t.name)},5381).toString():"",m}var eJ=new eK,e0=eX(),e1=n.createContext({shouldForwardProp:void 0,styleSheet:eJ,stylis:e0}),e2=(e1.Consumer,n.createContext(void 0));function e3(){return(0,n.useContext)(e1)}function e4(e){var t=(0,n.useState)(e.stylisPlugins),i=t[0],o=t[1],r=e3().styleSheet,l=(0,n.useMemo)(function(){var t=r;return e.sheet?t=e.sheet:e.target&&(t=t.reconstructWithOptions({target:e.target},!1)),e.disableCSSOMInjection&&(t=t.reconstructWithOptions({useCSSOMInjection:!1})),t},[e.disableCSSOMInjection,e.sheet,e.target,r]),s=(0,n.useMemo)(function(){return eX({options:{namespace:e.namespace,prefix:e.enableVendorPrefixes},plugins:i})},[e.enableVendorPrefixes,e.namespace,i]);(0,n.useEffect)(function(){a()(i,e.stylisPlugins)||o(e.stylisPlugins)},[e.stylisPlugins]);var d=(0,n.useMemo)(function(){return{shouldForwardProp:e.shouldForwardProp,styleSheet:l,stylis:s}},[e.shouldForwardProp,l,s]);return n.createElement(e1.Provider,{value:d},n.createElement(e2.Provider,{value:s},e.children))}var e5=function(){function e(e,t){var i=this;this.inject=function(e,t){void 0===t&&(t=e0);var o=i.name+t.hash;e.hasNameForId(i.id,o)||e.insertRules(i.id,o,t(i.rules,o,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,eI(this,function(){throw eD(12,String(i.name))})}return e.prototype.getName=function(e){return void 0===e&&(e=e0),this.name+e.hash},e}();function e6(e){for(var t="",i=0;i<e.length;i++){var o=e[i];if(1===i&&"-"===o&&"-"===e[0])return e;o>="A"&&o<="Z"?t+="-"+o.toLowerCase():t+=o}return t.startsWith("ms-")?"-"+t:t}var e8=function(e){return null==e||!1===e||""===e},e9=function(e){var t=[];for(var i in e){var n=e[i];e.hasOwnProperty(i)&&!e8(n)&&(Array.isArray(n)&&n.isCss||eC(n)?t.push("".concat(e6(i),":"),n,";"):eP(n)?t.push.apply(t,(0,o.ev)((0,o.ev)(["".concat(i," {")],e9(n),!1),["}"],!1)):t.push("".concat(e6(i),": ").concat(null==n||"boolean"==typeof n||""===n?"":"number"!=typeof n||0===n||i in B||i.startsWith("--")?String(n).trim():"".concat(n,"px"),";")))}return t};function e7(e,t,i,o){return e8(e)?[]:ek(e)?[".".concat(e.styledComponentId)]:eC(e)?!eC(e)||e.prototype&&e.prototype.isReactComponent||!t?[e]:e7(e(t),t,i,o):e instanceof e5?i?(e.inject(i,o),[e.getName(o)]):[e]:eP(e)?e9(e):Array.isArray(e)?Array.prototype.concat.apply(X,e.map(function(e){return e7(e,t,i,o)})):[e.toString()]}function te(e){for(var t=0;t<e.length;t+=1){var i=e[t];if(eC(i)&&!ek(i))return!1}return!0}var tt=ed(Y),ti=function(){function e(e,t,i){this.rules=e,this.staticRulesId="",this.isStatic=(void 0===i||i.isStatic)&&te(e),this.componentId=t,this.baseHash=es(tt,t),this.baseStyle=i,eK.registerId(t)}return e.prototype.generateAndInjectStyles=function(e,t,i){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,i):"";if(this.isStatic&&!i.hash){if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=eT(o,this.staticRulesId);else{var n=eE(e7(this.rules,e,t,i)),r=ea(es(this.baseHash,n)>>>0);if(!t.hasNameForId(this.componentId,r)){var a=i(n,".".concat(r),void 0,this.componentId);t.insertRules(this.componentId,r,a)}o=eT(o,r),this.staticRulesId=r}}else{for(var l=es(this.baseHash,i.hash),s="",d=0;d<this.rules.length;d++){var u=this.rules[d];if("string"==typeof u)s+=u;else if(u){var c=eE(e7(u,e,t,i));l=es(l,c+d),s+=c}}if(s){var p=ea(l>>>0);t.hasNameForId(this.componentId,p)||t.insertRules(this.componentId,p,i(s,".".concat(p),void 0,this.componentId)),o=eT(o,p)}}return o},e}(),to=n.createContext(void 0);to.Consumer;var tn={};function tr(e,t,i){var r,a,l,s,d=ek(e),u=!eu(e),c=t.attrs,p=void 0===c?X:c,m=t.componentId,h=void 0===m?(r=t.displayName,a=t.parentComponentId,tn[l="string"!=typeof r?"sc":eo(r)]=(tn[l]||0)+1,s="".concat(l,"-").concat(ea(ed(Y+l+tn[l])>>>0)),a?"".concat(a,"-").concat(s):s):m,f=t.displayName,v=void 0===f?eu(e)?"styled.".concat(e):"Styled(".concat(e.displayName||e.name||"Component",")"):f,g=t.displayName&&t.componentId?"".concat(eo(t.displayName),"-").concat(t.componentId):t.componentId||h,y=d&&e.attrs?e.attrs.concat(p).filter(
1Boolean):p,b=t.shouldForwardProp;if(d&&e.shouldForwardProp){var A=e.shouldForwardProp;if(t.shouldForwardProp){var x=t.shouldForwardProp;b=function(e,t){return A(e,t)&&x(e,t)}}else b=A}var w=new ti(i,g,d?e.componentStyle:void 0);function _(e,t){return function(e,t,i){var r,a,l=e.attrs,s=e.componentStyle,d=e.defaultProps,u=e.foldedComponentIds,c=e.styledComponentId,p=e.target,m=n.useContext(to),h=e3(),f=e.shouldForwardProp||h.shouldForwardProp,v=(void 0===(r=d)&&(r=J),t.theme!==r.theme&&t.theme||m||r.theme||J),g=function(e,t,i){for(var n,r=(0,o.pi)((0,o.pi)({},t),{className:void 0,theme:i}),a=0;a<e.length;a+=1){var l=eC(n=e[a])?n(r):n;for(var s in l)r[s]="className"===s?eT(r[s],l[s]):"style"===s?(0,o.pi)((0,o.pi)({},r[s]),l[s]):l[s]}return t.className&&(r.className=eT(r.className,t.className)),r}(l,t,v),y=g.as||p,b={};for(var A in g)void 0===g[A]||"$"===A[0]||"as"===A||"theme"===A&&g.theme===v||("forwardedAs"===A?b.as=g.forwardedAs:f&&!f(A,y)||(b[A]=g[A]));var x=(a=e3(),s.generateAndInjectStyles(g,a.styleSheet,a.stylis)),w=eT(u,c);return x&&(w+=" "+x),g.className&&(w+=" "+g.className),b[eu(y)&&!ee.has(y)?"class":"className"]=w,b.ref=i,(0,n.createElement)(y,b)}(S,e,t)}_.displayName=v;var S=n.forwardRef(_);return S.attrs=y,S.componentStyle=w,S.displayName=v,S.shouldForwardProp=b,S.foldedComponentIds=d?eT(e.foldedComponentIds,e.styledComponentId):"",S.styledComponentId=g,S.target=d?e.target:e,Object.defineProperty(S,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(t){this._foldedDefaultProps=d?function(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];for(var o=0;o<t.length;o++)(function e(t,i,o){if(void 0===o&&(o=!1),!o&&!eP(t)&&!Array.isArray(t))return i;if(Array.isArray(i))for(var n=0;n<i.length;n++)t[n]=e(t[n],i[n]);else if(eP(i))for(var n in i)t[n]=e(t[n],i[n]);return t})(e,t[o],!0);return e}({},e.defaultProps,t):t}}),eI(S,function(){return".".concat(S.styledComponentId)}),u&&function e(t,i,o){if("string"!=typeof i){if(eS){var n=e_(i);n&&n!==eS&&e(t,n,o)}var r=eA(i);ex&&(r=r.concat(ex(i)));for(var a=ey(t),l=ey(i),s=0;s<r.length;++s){var d=r[s];if(!(d in ef||o&&o[d]||l&&d in l||a&&d in a)){var u=ew(i,d);try{eb(t,d,u)}catch(e){}}}}return t}(S,e,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),S}function ta(e,t){for(var i=[e[0]],o=0,n=t.length;o<n;o+=1)i.push(t[o],e[o+1]);return i}var tl=function(e){return Object.assign(e,{isCss:!0})};function ts(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];return eC(e)||eP(e)?tl(e7(ta(X,(0,o.ev)([e],t,!0)))):0===t.length&&1===e.length&&"string"==typeof e[0]?e7(e):tl(e7(ta(e,t)))}var td=function(e){return function e(t,i,n){if(void 0===n&&(n=J),!i)throw eD(1,i);var r=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return t(i,n,ts.apply(void 0,(0,o.ev)([e],r,!1)))};return r.attrs=function(r){return e(t,i,(0,o.pi)((0,o.pi)({},n),{attrs:Array.prototype.concat(n.attrs,r).filter(Boolean)}))},r.withConfig=function(r){return e(t,i,(0,o.pi)((0,o.pi)({},n),r))},r}(tr,e)},tu=td;function tc(e){for(var t=[],i=1;i<arguments.length;i++)t[i-1]=arguments[i];var n=eE(ts.apply(void 0,(0,o.ev)([e],t,!1)));return new e5(ea(ed(n)>>>0),n)}ee.forEach(function(e){tu[e]=td(e)}),function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=te(e),eK.registerId(this.componentId+1)}e.prototype.createStyles=function(e,t,i,o){var n=o(eE(e7(this.rules,t,i,o)),""),r=this.componentId+e;i.insertRules(r,r,n)},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e)},e.prototype.renderStyles=function(e,t,i,o){e>2&&eK.registerId(this.componentId+e),this.removeStyles(e,i),this.createStyles(e,t,i,o)}}(),function(){function e(){var e=this;this._emitSheetCSS=function(){var t=e.instance.toString();if(!t)return"";var o=i.nc,n=eE([o&&'nonce="'.concat(o,'"'),"".concat(q,'="true"'),"".concat(W,'="').concat(Y,'"')].filter(Boolean)," ");return"<style ".concat(n,">").concat(t,"</style>")},this.getStyleTags=function(){if(e.sealed)throw eD(2);return e._emitSheetCSS()}
1,this.getStyleElement=function(){if(e.sealed)throw eD(2);var t,r=e.instance.toString();if(!r)return[];var a=((t={})[q]="",t[W]=Y,t.dangerouslySetInnerHTML={__html:r},t),l=i.nc;return l&&(a.nonce=l),[n.createElement("style",(0,o.pi)({},a,{key:"sc-0-0"}))]},this.seal=function(){e.sealed=!0},this.instance=new eK({isServer:!0}),this.sealed=!1}e.prototype.collectStyles=function(e){if(this.sealed)throw eD(2);return n.createElement(e4,{sheet:this.instance},e)},e.prototype.interleaveWithNodeStream=function(e){throw eD(3)}}()},69808:function(e,t,i){let o=i(14921);e.exports=(o.__esModule?o:{default:o}).default},14921:function(e,t,i){"use strict";var o;Object.defineProperty(t,"__esModule",{value:!0}),Object.defineProperty(t,"default",{enumerable:!0,get:function(){return a}});let n=(o=i(51679))&&o.__esModule?o:{default:o};function r({version:e,from:t,to:i}){n.default.warn(`${t}-color-renamed`,[`As of Tailwind CSS ${e}, \`${t}\` has been renamed to \`${i}\`.`,"Update your configuration file to silence this warning."])}let a={inherit:"inherit",current:"currentColor",transparent:"transparent",black:"#000",white:"#fff",slate:{50:"#f8fafc",100:"#f1f5f9",200:"#e2e8f0",300:"#cbd5e1",400:"#94a3b8",500:"#64748b",600:"#475569",700:"#334155",800:"#1e293b",900:"#0f172a",950:"#020617"},gray:{50:"#f9fafb",100:"#f3f4f6",200:"#e5e7eb",300:"#d1d5db",400:"#9ca3af",500:"#6b7280",600:"#4b5563",700:"#374151",800:"#1f2937",900:"#111827",950:"#030712"},zinc:{50:"#fafafa",100:"#f4f4f5",200:"#e4e4e7",300:"#d4d4d8",400:"#a1a1aa",500:"#71717a",600:"#52525b",700:"#3f3f46",800:"#27272a",900:"#18181b",950:"#09090b"},neutral:{50:"#fafafa",100:"#f5f5f5",200:"#e5e5e5",300:"#d4d4d4",400:"#a3a3a3",500:"#737373",600:"#525252",700:"#404040",800:"#262626",900:"#171717",950:"#0a0a0a"},stone:{50:"#fafaf9",100:"#f5f5f4",200:"#e7e5e4",300:"#d6d3d1",400:"#a8a29e",500:"#78716c",600:"#57534e",700:"#44403c",800:"#292524",900:"#1c1917",950:"#0c0a09"},red:{50:"#fef2f2",100:"#fee2e2",200:"#fecaca",300:"#fca5a5",400:"#f87171",500:"#ef4444",600:"#dc2626",700:"#b91c1c",800:"#991b1b",900:"#7f1d1d",950:"#450a0a"},orange:{50:"#fff7ed",100:"#ffedd5",200:"#fed7aa",300:"#fdba74",400:"#fb923c",500:"#f97316",600:"#ea580c",700:"#c2410c",800:"#9a3412",900:"#7c2d12",950:"#431407"},amber:{50:"#fffbeb",100:"#fef3c7",200:"#fde68a",300:"#fcd34d",400:"#fbbf24",500:"#f59e0b",600:"#d97706",700:"#b45309",800:"#92400e",900:"#78350f",950:"#451a03"},yellow:{50:"#fefce8",100:"#fef9c3",200:"#fef08a",300:"#fde047",400:"#facc15",500:"#eab308",600:"#ca8a04",700:"#a16207",800:"#854d0e",900:"#713f12",950:"#422006"},lime:{50:"#f7fee7",100:"#ecfccb",200:"#d9f99d",300:"#bef264",400:"#a3e635",500:"#84cc16",600:"#65a30d",700:"#4d7c0f",800:"#3f6212",900:"#365314",950:"#1a2e05"},green:{50:"#f0fdf4",100:"#dcfce7",200:"#bbf7d0",300:"#86efac",400:"#4ade80",500:"#22c55e",600:"#16a34a",700:"#15803d",800:"#166534",900:"#14532d",950:"#052e16"},emerald:{50:"#ecfdf5",100:"#d1fae5",200:"#a7f3d0",300:"#6ee7b7",400:"#34d399",500:"#10b981",600:"#059669",700:"#047857",800:"#065f46",900:"#064e3b",950:"#022c22"},teal:{50:"#f0fdfa",100:"#ccfbf1",200:"#99f6e4",300:"#5eead4",400:"#2dd4bf",500:"#14b8a6",600:"#0d9488",700:"#0f766e",800:"#115e59",900:"#134e4a",950:"#042f2e"},cyan:{50:"#ecfeff",100:"#cffafe",200:"#a5f3fc",300:"#67e8f9",400:"#22d3ee",500:"#06b6d4",600:"#0891b2",700:"#0e7490",800:"#155e75",900:"#164e63",950:"#083344"},sky:{50:"#f0f9ff",100:"#e0f2fe",200:"#bae6fd",300:"#7dd3fc",400:"#38bdf8",500:"#0ea5e9",600:"#0284c7",700:"#0369a1",800:"#075985",900:"#0c4a6e",950:"#082f49"},blue:{50:"#eff6ff",100:"#dbeafe",200:"#bfdbfe",300:"#93c5fd",400:"#60a5fa",500:"#3b82f6",600:"#2563eb",700:"#1d4ed8",800:"#1e40af",900:"#1e3a8a",950:"#172554"},indigo:{50:"#eef2ff",100:"#e0e7ff",200:"#c7d2fe",300:"#a5b4fc",400:"#818cf8",500:"#6366f1",600:"#4f46e5",700:"#4338ca",800:"#3730a3",900:"#312e81",950:"#1e1b4b"},violet:{50:"#f5f3ff",100:"#ede9fe",200:"#ddd6fe",300:"#c4b5fd",400:"#a78bfa",500:"#8b5cf6",600:"#7c3aed",700:"#6d28d9",800:"#5b21b6",900:"#4c1d95",950:"#2e1065"},purple:{50:"#faf5ff",100:"#f3e8ff",200:"#e9d5ff",300:"#d8b4fe",400:"#c084fc",500:"#a855f7",600:"#9333ea",700:"#7e22ce",800:"#6b21a8",900:"#581c87",950:"#3b0764"},fuchsia:{50:"#fdf4ff",100:"#fae8ff",200:"#f5d0fe",300:"#f0abfc",400:"#e879f9",500:"#d946ef",600:"#c026d3",700:"#a21caf",800:"#86198f",900:"#701a75",950:"#4a044e"},pink:{50:"#fdf2f8",100:"#fce7f3",200:"#fbcfe8",300:"#f9a8d4",400:"#f472b6",500:"#ec4899",600:"#db2777",700:"#be185d",800:"#9d174d",900:"#831843",950:"#500724"},rose:{50:"#fff1f2",100:"#ffe4e6",200:"#fecdd3",300:"#fda4af",400:"#fb7185",500:"#f43f5e",600:"#e11d48",700:"#be123c",800:"#9f1239",900:"#881337",950:"#4c0519"},get lightBlue(){return r({version:"v2.2",from:"lightBlue",to:"sky"}),this.sky},get warmGray(){return r({version:"v3.0",from:"warmGray",to:"stone"}),this.stone},get trueGray(){return r({version:"v3.0",from:"trueGray",to:"neutral"}),this.neutral},get coolGray(){return r({version:"v3.0",from:"coolGray",to:"gray"}),this.gray},get blueGray(){return r({version:"v3.0",from:"blueGray",to:"slate"}),this.slate}}},51679:function(e,t,i){"use strict";var o,n=i(83454);
1Object.defineProperty(t,"__esModule",{value:!0}),function(e,t){for(var i in t)Object.defineProperty(e,i,{enumerable:!0,get:t[i]})}(t,{dim:function(){return s},default:function(){return d}});let r=(o=i(74241))&&o.__esModule?o:{default:o},a=new Set;function l(e,t,i){(void 0===n||!n.env.JEST_WORKER_ID)&&(i&&a.has(i)||(i&&a.add(i),console.warn(""),t.forEach(t=>console.warn(e,"-",t))))}function s(e){return r.default.dim(e)}let d={info(e,t){l(r.default.bold(r.default.cyan("info")),...Array.isArray(e)?[e]:[t,e])},warn(e,t){l(r.default.bold(r.default.yellow("warn")),...Array.isArray(e)?[e]:[t,e])},risk(e,t){l(r.default.bold(r.default.magenta("risk")),...Array.isArray(e)?[e]:[t,e])}}},94633:function(e){function t(e,t){var i=e.length,o=Array(i),n={},r=i,a=function(e){for(var t=new Map,i=0,o=e.length;i<o;i++){var n=e[i];t.has(n[0])||t.set(n[0],new Set),t.has(n[1])||t.set(n[1],new Set),t.get(n[0]).add(n[1])}return t}(t),l=function(e){for(var t=new Map,i=0,o=e.length;i<o;i++)t.set(e[i],i);return t}(e);for(t.forEach(function(e){if(!l.has(e[0])||!l.has(e[1]))throw Error("Unknown node. There is an unknown node in the supplied edges.")});r--;)n[r]||function e(t,r,s){if(s.has(t)){var d;try{d=", node was:"+JSON.stringify(t)}catch(e){d=""}throw Error("Cyclic dependency"+d)}if(!l.has(t))throw Error("Found unknown node. Make sure to provided all involved nodes. Unknown node: "+JSON.stringify(t));if(!n[r]){n[r]=!0;var u=a.get(t)||new Set;if(r=(u=Array.from(u)).length){s.add(t);do{var c=u[--r];e(c,l.get(c),s)}while(r);s.delete(t)}o[--i]=t}}(e[r],r,new Set);return o}e.exports=function(e){return t(function(e){for(var t=new Set,i=0,o=e.length;i<o;i++){var n=e[i];t.add(n[0]),t.add(n[1])}return Array.from(t)}(e),e)},e.exports.array=t},23451:function(e,t,i){var o;!function(n,r){"use strict";var a="function",l="undefined",s="object",d="string",u="major",c="model",p="name",m="type",h="vendor",f="version",v="architecture",g="console",y="mobile",b="tablet",A="smarttv",x="wearable",w="embedded",_="Amazon",S="Apple",C="ASUS",k="BlackBerry",T="Browser",E="Chrome",P="Firefox",I="Google",D="Huawei",O="Microsoft",N="Motorola",j="Opera",M="Samsung",R="Sharp",z="Sony",L="Xiaomi",V="Zebra",F="Facebook",U="Chromium OS",G="Mac OS",B=" Browser",Z=function(e,t){var i={};for(var o in e)t[o]&&t[o].length%2==0?i[o]=t[o].concat(e[o]):i[o]=e[o];return i},q=function(e){for(var t={},i=0;i<e.length;i++)t[e[i].toUpperCase()]=e[i];return t},H=function(e,t){return typeof e===d&&-1!==W(t).indexOf(W(e))},W=function(e){return e.toLowerCase()},Y=function(e,t){if(typeof e===d)return e=e.replace(/^\s\s*/,""),typeof t===l?e:e.substring(0,500)},K=function(e,t){for(var i,o,n,l,d,u,c=0;c<t.length&&!d;){var p=t[c],m=t[c+1];for(i=o=0;i<p.length&&!d&&p[i];)if(d=p[i++].exec(e))for(n=0;n<m.length;n++)u=d[++o],typeof(l=m[n])===s&&l.length>0?2===l.length?typeof l[1]==a?this[l[0]]=l[1].call(this,u):this[l[0]]=l[1]:3===l.length?typeof l[1]!==a||l[1].exec&&l[1].test?this[l[0]]=u?u.replace(l[1],l[2]):void 0:this[l[0]]=u?l[1].call(this,u,l[2]):void 0:4===l.length&&(this[l[0]]=u?l[3].call(this,u.replace(l[1],l[2])):void 0):this[l]=u||r;c+=2}},Q=function(e,t){for(var i in t)if(typeof t[i]===s&&t[i].length>0){for(var o=0;o<t[i].length;o++)if(H(t[i][o],e))return"?"===i?r:i}else if(H(t[i],e))return"?"===i?r:i;return t.hasOwnProperty("*")?t["*"]:e},$={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},X={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[f,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[f,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,f],[/opios[\/ ]+([\w\.]+)/i],[f,[p,j+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[f,[p,j+" GX"]],[/\bopr\/([\w\.]+)/i],[f,[p,j]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[f,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,f],[/quark(?:pc)?\/([-\w\.]+)/i],[f,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[f,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[f,[p,"UC"+T]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[f,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[f,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[f,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[f,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[f,[p,"Smart Lenovo "+T]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+T],f],[/\bfocus\/([\w\.]+)/i],[f,[p,P+" Focus"]],[/\bopt\/([\w\.]+)/i],[f,[p,j+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[f,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[f,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[f,[p,j+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[f,[p,"MIUI "+T]],[/fxios\/([-\w\.]+)/i],[f,[p,P]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360"+B]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],f],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+B],f],[/samsungbrowser\/([\w\.]+)/i],[f,[p,M+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],f],[/metasr[\/ ]?([\d\.]+)/i],[f,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],f],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,f],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,F],f],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,f],[/\bgsa\/([\w\.]+) .*safari\//i],[f,[p,"GSA"]],[/musical_ly(?:.
vendor: 4,530 bytes, line 1
1+app_?version\/|_)([\w\.]+)/i],[f,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[f,[p,E+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,E+" WebView"],f],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[f,[p,"Android "+T]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,f],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[f,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[f,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[f,Q,{"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"}]],[/(webkit|khtml)\/([\w\.]+)/i],[p,f],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],f],[/(wolvic)\/([\w\.]+)/i],[p,f],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[f,[p,P+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,[f,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[f,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,W]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,"",W]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,W]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[c,[h,M],[m,b]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[c,[h,M],[m,y]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[c,[h,S],[m,y]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[c,[h,S],[m,b]],[/(macintosh);/i],[c,[h,S]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[c,[h,R],[m,y]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[c,[h,D],[m,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[c,[h,D],[m,y]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[c,/_/g," "],[h,L],[m,y]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[c,/_/g," "],[h,L],[m,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[c,[h,"OPPO"],[m,y]],[/\b(opd2\d{3}a?) bui/i],[c,[h,"OPPO"],[m,b]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[c,[h,"Vivo"],[m,y]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[c,[h,"Realme"],[m,y]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[c,[h,N],[m,y]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[c,[h,N],[m,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[c,[h,"LG"],[m,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[c,[h,"LG"],[m,y]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[c,[h,"Lenovo"],[m,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[c,/_/g," "],[h,"Nokia"],[m,y]],[/(pixel c)\b/i],[c,[h,I],[m,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[c,[h,I],[m,y]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[c,[h,z],[m,y]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[c,"Xperia Tablet"],[h,z],[m,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[c,[h,"OnePlus"],[m,y]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[c,[h,_],[m,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[c,/(.+)
vendor: 7,051 bytes, line 1
1/g,"Fire Phone $1"],[h,_],[m,y]],[/(playbook);[-\w\),; ]+(rim)/i],[c,h,[m,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[c,[h,k],[m,y]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[c,[h,C],[m,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[c,[h,C],[m,y]],[/(nexus 9)/i],[c,[h,"HTC"],[m,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[h,[c,/_/g," "],[m,y]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[c,[h,"TCL"],[m,b]],[/(itel) ((\w+))/i],[[h,W],c,[m,Q,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[c,[h,"Acer"],[m,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[c,[h,"Meizu"],[m,y]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[c,[h,"Ulefone"],[m,y]],[/droid.+; (a(?:015|06[35]|142p?))/i],[c,[h,"Nothing"],[m,y]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[h,c,[m,y]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[h,c,[m,b]],[/(surface duo)/i],[c,[h,O],[m,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[c,[h,"Fairphone"],[m,y]],[/(u304aa)/i],[c,[h,"AT&T"],[m,y]],[/\bsie-(\w*)/i],[c,[h,"Siemens"],[m,y]],[/\b(rct\w+) b/i],[c,[h,"RCA"],[m,b]],[/\b(venue[\d ]{2,7}) b/i],[c,[h,"Dell"],[m,b]],[/\b(q(?:mv|ta)\w+) b/i],[c,[h,"Verizon"],[m,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[c,[h,"Barnes & Noble"],[m,b]],[/\b(tm\d{3}\w+) b/i],[c,[h,"NuVision"],[m,b]],[/\b(k88) b/i],[c,[h,"ZTE"],[m,b]],[/\b(nx\d{3}j) b/i],[c,[h,"ZTE"],[m,y]],[/\b(gen\d{3}) b.+49h/i],[c,[h,"Swiss"],[m,y]],[/\b(zur\d{3}) b/i],[c,[h,"Swiss"],[m,b]],[/\b((zeki)?tb.*\b) b/i],[c,[h,"Zeki"],[m,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[h,"Dragon Touch"],c,[m,b]],[/\b(ns-?\w{0,9}) b/i],[c,[h,"Insignia"],[m,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[c,[h,"NextBook"],[m,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[h,"Voice"],c,[m,y]],[/\b(lvtel\-)?(v1[12]) b/i],[[h,"LvTel"],c,[m,y]],[/\b(ph-1) /i],[c,[h,"Essential"],[m,y]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[c,[h,"Envizen"],[m,b]],[/\b(trio[-\w\. ]+) b/i],[c,[h,"MachSpeed"],[m,b]],[/\btu_(1491) b/i],[c,[h,"Rotor"],[m,b]],[/(shield[\w ]+) b/i],[c,[h,"Nvidia"],[m,b]],[/(sprint) (\w+)/i],[h,c,[m,y]],[/(kin\.[onetw]{3})/i],[[c,/\./g," "],[h,O],[m,y]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[c,[h,V],[m,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[c,[h,V],[m,y]],[/smart-tv.+(samsung)/i],[h,[m,A]],[/hbbtv.+maple;(\d+)/i],[[c,/^/,"SmartTV"],[h,M],[m,A]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[h,"LG"],[m,A]],[/(apple) ?tv/i],[h,[c,S+" TV"],[m,A]],[/crkey/i],[[c,E+"cast"],[h,I],[m,A]],[/droid.+aft(\w+)( bui|\))/i],[c,[h,_],[m,A]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[c,[h,R],[m,A]],[/(bravia[\w ]+)( bui|\))/i],[c,[h,z],[m,A]],[/(mitv-\w{5}) bui/i],[c,[h,L],[m,A]],[/Hbbtv.*(technisat) (.*);/i],[h,c,[m,A]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[h,Y],[c,Y],[m,A]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,A]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[h,c,[m,g]],[/droid.+; (shield) bui/i],[c,[h,"Nvidia"],[m,g]],[/(playstation [345portablevi]+)/i],[c,[h,z],[m,g]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[c,[h,O],[m,g]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[c,[h,M],[m,x]],[/((pebble))app/i],[h,c,[m,x]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[c,[h,S],[m,x]],[/droid.+; (glass) \d/i],[c,[h,I],[m,x]],[/droid.+; (wt63?0{2,3})\)/i],[c,[h,V],[m,x]],[/(quest( \d| pro)?)/i],[c,[h,F],[m,x]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[h,[m,w]],[/(aeobc)\b/i],[c,[h,_],[m,w]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[c,[m,y]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[c,[m,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,y]],[/(android[-\w\. ]{0,9});.+buil/i],[c,[h,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[f,[p,"EdgeHTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[f,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,f],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[f,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,f],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[f,Q,$]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[f,Q,$],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[f,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,G],[f,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[f,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,f],[/\(bb(10);/i],[f,[p,k]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[f,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[f,[p,P+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[f,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[f,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[f,[p,E+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,U],f],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,f],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],f],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,f]]},J=function(e,t){if(typeof e===s&&(t=e,e=r),!(this instanceof J))return new J
vendor: 1,230 bytes, line 1
1(e,t).getResult();var i=typeof n!==l&&n.navigator?n.navigator:r,o=e||(i&&i.userAgent?i.userAgent:""),g=i&&i.userAgentData?i.userAgentData:r,A=t?Z(X,t):X,x=i&&i.userAgent==o;return this.getBrowser=function(){var e,t={};return t[p]=r,t[f]=r,K.call(t,o,A.browser),t[u]=typeof(e=t[f])===d?e.replace(/[^\d\.]/g,"").split(".")[0]:r,x&&i&&i.brave&&typeof i.brave.isBrave==a&&(t[p]="Brave"),t},this.getCPU=function(){var e={};return e[v]=r,K.call(e,o,A.cpu),e},this.getDevice=function(){var e={};return e[h]=r,e[c]=r,e[m]=r,K.call(e,o,A.device),x&&!e[m]&&g&&g.mobile&&(e[m]=y),x&&"Macintosh"==e[c]&&i&&typeof i.standalone!==l&&i.maxTouchPoints&&i.maxTouchPoints>2&&(e[c]="iPad",e[m]=b),e},this.getEngine=function(){var e={};return e[p]=r,e[f]=r,K.call(e,o,A.engine),e},this.getOS=function(){var e={};return e[p]=r,e[f]=r,K.call(e,o,A.os),x&&!e[p]&&g&&g.platform&&"Unknown"!=g.platform&&(e[p]=g.platform.replace(/chrome os/i,U).replace(/macos/i,G)),e},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return o},this.setUA=function(e){return o=typeof e===d&&e.length>500?Y(e,500):e,this},this.setUA(o),this};
1J.VERSION="1.0.39",J.BROWSER=q([p,f,u]),J.CPU=q([v]),J.DEVICE=q([c,h,m,g,y,A,b,x,w]),J.ENGINE=J.OS=q([p,f]),typeof t!==l?(e.exports&&(t=e.exports=J),t.UAParser=J):i.amdO?r!==(o=(function(){return J}).call(t,i,t,e))&&(e.exports=o):typeof n!==l&&(n.UAParser=J);var ee=typeof n!==l&&(n.jQuery||n.Zepto);if(ee&&!ee.ua){var et=new J;ee.ua=et.getResult(),ee.ua.get=function(){return et.getUA()},ee.ua.set=function(e){et.setUA(e);var t=et.getResult();for(var i in t)ee.ua[i]=t[i]}}}("object"==typeof window?window:this)},42473:function(e){"use strict";e.exports=function(){}},74231:function(e,t,i){"use strict";i.d(t,{p8:function(){return T},Ry:function(){return eg},Z_:function(){return Y}});try{y=Map}catch(e){}try{b=Set}catch(e){}function o(e){return function e(t,i,n){if(!t||"object"!=typeof t||"function"==typeof t)return t;if(t.nodeType&&"cloneNode"in t)return t.cloneNode(!0);if(t instanceof Date)return new Date(t.getTime());if(t instanceof RegExp)return new RegExp(t);if(Array.isArray(t))return t.map(o);if(y&&t instanceof y)return new Map(Array.from(t.entries()));if(b&&t instanceof b)return new Set(Array.from(t.values()));if(t instanceof Object){i.push(t);var r=Object.create(t);for(var a in n.push(r),t){var l=i.findIndex(function(e){return e===t[a]});r[a]=l>-1?n[l]:e(t[a],i,n)}return r}return t}(e,[],[])}let n=Object.prototype.toString,r=Error.prototype.toString,a=RegExp.prototype.toString,l="undefined"!=typeof Symbol?Symbol.prototype.toString:()=>"",s=/^Symbol\((.*)\)(.*)$/;function d(e,t=!1){if(null==e||!0===e||!1===e)return""+e;let i=typeof e;if("number"===i)return e!=+e?"NaN":0===e&&1/e<0?"-0":""+e;if("string"===i)return t?`"${e}"`:e;if("function"===i)return"[Function "+(e.name||"anonymous")+"]";if("symbol"===i)return l.call(e).replace(s,"Symbol($1)");let o=n.call(e).slice(8,-1);return"Date"===o?isNaN(e.getTime())?""+e:e.toISOString(e):"Error"===o||e instanceof Error?"["+r.call(e)+"]":"RegExp"===o?a.call(e):null}function u(e,t){let i=d(e,t);return null!==i?i:JSON.stringify(e,function(e,i){let o=d(this[e],t);return null!==o?o:i},2)}let c={default:"${path} is invalid",required:"${path} is a required field",oneOf:"${path} must be one of the following values: ${values}",notOneOf:"${path} must not be one of the following values: ${values}",notType:({path:e,type:t,value:i,originalValue:o})=>{let n=null!=o&&o!==i,r=`${e} must be a \`${t}\` type, but the final value was: \`${u(i,!0)}\``+(n?` (cast from the value \`${u(o,!0)}\`).`:".");return null===i&&(r+='\n If "null" is intended as an empty value be sure to mark the schema as `.nullable()`'),r},defined:"${path} must be defined"},p={length:"${path} must be exactly ${length} characters",min:"${path} must be at least ${min} characters",max:"${path} must be at most ${max} characters",matches:'${path} must match the following: "${regex}"',email:"${path} must be a valid email",url:"${path} must be a valid URL",uuid:"${path} must be a valid UUID",trim:"${path} must be a trimmed string",lowercase:"${path} must be a lowercase string",uppercase:"${path} must be a upper case string"},m={min:"${path} must be greater than or equal to ${min}",max:"${path} must be less than or equal to ${max}",lessThan:"${path} must be less than ${less}",moreThan:"${path} must be greater than ${more}",positive:"${path} must be a positive number",negative:"${path} must be a negative number",integer:"${path} must be an integer"},h={min:"${path} field must be later than ${min}",max:"${path} field must be at earlier than ${max}"},f={isValue:"${path} field must be ${value}"},v={noUnknown:"${path} field has unspecified keys: ${unknown}"},g={min:"${path} field must have at least ${min} items",max:"${path} field must have less than or equal to ${max} items",length:"${path} must have ${length} items"};Object.assign(Object.create(null),{mixed:c,string:p,number:m,date:h,object:v,array:g,boolean:f});var y,b,A=i(18721),x=i.n(A),w=e=>e&&e.__isYupSchema__;class _{constructor(e,t){if(this.fn=void 0,this.refs=e,this.refs=e,"function"==typeof t){this.fn=t;return}if(!x()(t,"is"))throw TypeError("`is:` is required for `when()` conditions");
1if(!t.then&&!t.otherwise)throw TypeError("either `then:` or `otherwise:` is required for `when()` conditions");let{is:i,then:o,otherwise:n}=t,r="function"==typeof i?i:(...e)=>e.every(e=>e===i);this.fn=function(...e){let t=e.pop(),i=e.pop(),a=r(...e)?o:n;if(a)return"function"==typeof a?a(i):i.concat(a.resolve(t))}}resolve(e,t){let i=this.refs.map(e=>e.getValue(null==t?void 0:t.value,null==t?void 0:t.parent,null==t?void 0:t.context)),o=this.fn.apply(e,i.concat(e,t));if(void 0===o||o===e)return e;if(!w(o))throw TypeError("conditions must return a schema object");return o.resolve(t)}}function S(e){return null==e?[]:[].concat(e)}function C(){return(C=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let k=/\$\{\s*(\w+)\s*\}/g;class T extends Error{static formatError(e,t){let i=t.label||t.path||"this";return(i!==t.path&&(t=C({},t,{path:i})),"string"==typeof e)?e.replace(k,(e,i)=>u(t[i])):"function"==typeof e?e(t):e}static isError(e){return e&&"ValidationError"===e.name}constructor(e,t,i,o){super(),this.value=void 0,this.path=void 0,this.type=void 0,this.errors=void 0,this.params=void 0,this.inner=void 0,this.name="ValidationError",this.value=t,this.path=i,this.type=o,this.errors=[],this.inner=[],S(e).forEach(e=>{T.isError(e)?(this.errors.push(...e.errors),this.inner=this.inner.concat(e.inner.length?e.inner:e)):this.errors.push(e)}),this.message=this.errors.length>1?`${this.errors.length} errors occurred`:this.errors[0],Error.captureStackTrace&&Error.captureStackTrace(this,T)}}let E=e=>{let t=!1;return(...i)=>{t||(t=!0,e(...i))}};function P(e,t){let{endEarly:i,tests:o,args:n,value:r,errors:a,sort:l,path:s}=e,d=E(t),u=o.length,c=[];if(a=a||[],!u)return a.length?d(new T(a,r,s)):d(null,r);for(let e=0;e<o.length;e++)(0,o[e])(n,function(e){if(e){if(!T.isError(e))return d(e,r);if(i)return e.value=r,d(e,r);c.push(e)}if(--u<=0){if(c.length&&(l&&c.sort(l),a.length&&c.push(...a),a=c),a.length){d(new T(a,r,s),r);return}d(null,r)}})}var I=i(66604),D=i.n(I),O=i(55760);let N={context:"$",value:"."};class j{constructor(e,t={}){if(this.key=void 0,this.isContext=void 0,this.isValue=void 0,this.isSibling=void 0,this.path=void 0,this.getter=void 0,this.map=void 0,"string"!=typeof e)throw TypeError("ref must be a string, got: "+e);if(this.key=e.trim(),""===e)throw TypeError("ref must be a non-empty string");this.isContext=this.key[0]===N.context,this.isValue=this.key[0]===N.value,this.isSibling=!this.isContext&&!this.isValue;let i=this.isContext?N.context:this.isValue?N.value:"";this.path=this.key.slice(i.length),this.getter=this.path&&(0,O.getter)(this.path,!0),this.map=t.map}getValue(e,t,i){let o=this.isContext?i:this.isValue?e:t;return this.getter&&(o=this.getter(o||{})),this.map&&(o=this.map(o)),o}cast(e,t){return this.getValue(e,null==t?void 0:t.parent,null==t?void 0:t.context)}resolve(){return this}describe(){return{type:"ref",key:this.key}}toString(){return`Ref(${this.key})`}static isRef(e){return e&&e.__isYupRef}}function M(){return(M=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}function R(e){function t(t,i){let o,{value:n,path:r="",label:a,options:l,originalValue:s,sync:d}=t,u=function(e,t){if(null==e)return{};var i,o,n={},r=Object.keys(e);for(o=0;o<r.length;o++)t.indexOf(i=r[o])>=0||(n[i]=e[i]);return n}(t,["value","path","label","options","originalValue","sync"]),{name:c,test:p,params:m,message:h}=e,{parent:f,context:v}=l;function g(e){return j.isRef(e)?e.getValue(n,f,v):e}function y(e={}){let t=D()(M({value:n,originalValue:s,label:a,path:e.path||r},m,e.params),g),i=new T(T.formatError(e.message||h,t),n,t.path,e.type||c);return i.params=t,i}let b=M({path:r,parent:f,type:c,createError:y,resolve:g,options:l,originalValue:s},u);if(!d){try{Promise.resolve(p.call(b,n,b)).then(e=>{T.isError(e)?i(e):e?i(null,e):i(y())}).catch(i)}catch(e){i(e)}return}try{var A;if(o=p.call(b,n,b),"function"==typeof(null==(A=o)?void 0:A.then))throw Error(`Validation test of type: "${b.type}" returned a Promise during a synchronous validate. This test will finish after the validate call has returned`)}catch(e){i(e);return}T.isError(o)?i(o):o?i(null,o):i(y())}return t.OPTIONS=e,t}j.prototype.__isYupRef=!0;let z=e=>e.substr(0,e.length-1).substr(1);class L{constructor(){this.list=void 0,this.refs=void 0,this.list=new Set,this.refs=new Map}get size(){return this.list.size+this.refs.size}describe(){let e=[];for(let t of this.list)e.push(t);for(let[,t]of this.refs)e.push(t.describe());return e}toArray(){return Array.from(this.list).concat(Array.from(this.refs.values())
1)}resolveAll(e){return this.toArray().reduce((t,i)=>t.concat(j.isRef(i)?e(i):i),[])}add(e){j.isRef(e)?this.refs.set(e.key,e):this.list.add(e)}delete(e){j.isRef(e)?this.refs.delete(e.key):this.list.delete(e)}clone(){let e=new L;return e.list=new Set(this.list),e.refs=new Map(this.refs),e}merge(e,t){let i=this.clone();return e.list.forEach(e=>i.add(e)),e.refs.forEach(e=>i.add(e)),t.list.forEach(e=>i.delete(e)),t.refs.forEach(e=>i.delete(e)),i}}function V(){return(V=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}class F{constructor(e){this.deps=[],this.tests=void 0,this.transforms=void 0,this.conditions=[],this._mutate=void 0,this._typeError=void 0,this._whitelist=new L,this._blacklist=new L,this.exclusiveTests=Object.create(null),this.spec=void 0,this.tests=[],this.transforms=[],this.withMutation(()=>{this.typeError(c.notType)}),this.type=(null==e?void 0:e.type)||"mixed",this.spec=V({strip:!1,strict:!1,abortEarly:!0,recursive:!0,nullable:!1,presence:"optional"},null==e?void 0:e.spec)}get _type(){return this.type}_typeCheck(e){return!0}clone(e){if(this._mutate)return e&&Object.assign(this.spec,e),this;let t=Object.create(Object.getPrototypeOf(this));return t.type=this.type,t._typeError=this._typeError,t._whitelistError=this._whitelistError,t._blacklistError=this._blacklistError,t._whitelist=this._whitelist.clone(),t._blacklist=this._blacklist.clone(),t.exclusiveTests=V({},this.exclusiveTests),t.deps=[...this.deps],t.conditions=[...this.conditions],t.tests=[...this.tests],t.transforms=[...this.transforms],t.spec=o(V({},this.spec,e)),t}label(e){let t=this.clone();return t.spec.label=e,t}meta(...e){if(0===e.length)return this.spec.meta;let t=this.clone();return t.spec.meta=Object.assign(t.spec.meta||{},e[0]),t}withMutation(e){let t=this._mutate;this._mutate=!0;let i=e(this);return this._mutate=t,i}concat(e){if(!e||e===this)return this;if(e.type!==this.type&&"mixed"!==this.type)throw TypeError(`You cannot \`concat()\` schema's of different types: ${this.type} and ${e.type}`);let t=e.clone(),i=V({},this.spec,t.spec);return t.spec=i,t._typeError||(t._typeError=this._typeError),t._whitelistError||(t._whitelistError=this._whitelistError),t._blacklistError||(t._blacklistError=this._blacklistError),t._whitelist=this._whitelist.merge(e._whitelist,e._blacklist),t._blacklist=this._blacklist.merge(e._blacklist,e._whitelist),t.tests=this.tests,t.exclusiveTests=this.exclusiveTests,t.withMutation(t=>{e.tests.forEach(e=>{t.test(e.OPTIONS)})}),t.transforms=[...this.transforms,...t.transforms],t}isType(e){return!!this.spec.nullable&&null===e||this._typeCheck(e)}resolve(e){let t=this;if(t.conditions.length){let i=t.conditions;(t=t.clone()).conditions=[],t=(t=i.reduce((t,i)=>i.resolve(t,e),t)).resolve(e)}return t}cast(e,t={}){let i=this.resolve(V({value:e},t)),o=i._cast(e,t);if(void 0!==e&&!1!==t.assert&&!0!==i.isType(o)){let n=u(e),r=u(o);throw TypeError(`The value of ${t.path||"field"} could not be cast to a value that satisfies the schema type: "${i._type}". 
2
3attempted value: ${n} 
4`+(r!==n?`result of cast: ${r}`:""))}return o}_cast(e,t){let i=void 0===e?e:this.transforms.reduce((t,i)=>i.call(this,t,e,this),e);return void 0===i&&(i=this.getDefault()),i}_validate(e,t={},i){let{sync:o,path:n,from:r=[],originalValue:a=e,strict:l=this.spec.strict,abortEarly:s=this.spec.abortEarly}=t,d=e;l||(d=this._cast(d,V({assert:!1},t)));let u={value:d,path:n,options:t,originalValue:a,schema:this,label:this.spec.label,sync:o,from:r},c=[];this._typeError&&c.push(this._typeError);let p=[];this._whitelistError&&p.push(this._whitelistError),this._blacklistError&&p.push(this._blacklistError),P({args:u,value:d,path:n,sync:o,tests:c,endEarly:s},e=>{if(e)return void i(e,d);P({tests:this.tests.concat(p),args:u,path:n,sync:o,value:d,endEarly:s},i)})}validate(e,t,i){let o=this.resolve(V({},t,{value:e}));return"function"==typeof i?o._validate(e,t,i):new Promise((i,n)=>o._validate(e,t,(e,t)=>{e?n(e):i(t)}))}validateSync(e,t){let i;return this.resolve(V({},t,{value:e}))._validate(e,V({},t,{sync:!0}),(e,t)=>{if(e)throw e;i=t}),i}isValid(e,t){return this.validate(e,t).then(()=>!0,e=>{if(T.isError(e))return!1;throw e})}isValidSync(e,t){try{return this.validateSync(e,t),!0}catch(e){if(T.isError(e))return!1;throw e}}_getDefault(){let e=this.spec.default;return null==e?e:"function"==typeof e?e.call(this):o(e)}getDefault(e){return this.resolve(e||{})._getDefault()}default(e){return 0==arguments.length?this._getDefault():this.clone({default:e})}strict(e=!0){let t=this.clone();return t.spec.strict=e,t}
4_isPresent(e){return null!=e}defined(e=c.defined){return this.test({message:e,name:"defined",exclusive:!0,test:e=>void 0!==e})}required(e=c.required){return this.clone({presence:"required"}).withMutation(t=>t.test({message:e,name:"required",exclusive:!0,test(e){return this.schema._isPresent(e)}}))}notRequired(){let e=this.clone({presence:"optional"});return e.tests=e.tests.filter(e=>"required"!==e.OPTIONS.name),e}nullable(e=!0){return this.clone({nullable:!1!==e})}transform(e){let t=this.clone();return t.transforms.push(e),t}test(...e){let t;if(void 0===(t=1===e.length?"function"==typeof e[0]?{test:e[0]}:e[0]:2===e.length?{name:e[0],test:e[1]}:{name:e[0],message:e[1],test:e[2]}).message&&(t.message=c.default),"function"!=typeof t.test)throw TypeError("`test` is a required parameters");let i=this.clone(),o=R(t),n=t.exclusive||t.name&&!0===i.exclusiveTests[t.name];if(t.exclusive&&!t.name)throw TypeError("Exclusive tests must provide a unique `name` identifying the test");return t.name&&(i.exclusiveTests[t.name]=!!t.exclusive),i.tests=i.tests.filter(e=>e.OPTIONS.name!==t.name||!n&&e.OPTIONS.test!==o.OPTIONS.test),i.tests.push(o),i}when(e,t){Array.isArray(e)||"string"==typeof e||(t=e,e=".");let i=this.clone(),o=S(e).map(e=>new j(e));return o.forEach(e=>{e.isSibling&&i.deps.push(e.key)}),i.conditions.push(new _(o,t)),i}typeError(e){let t=this.clone();return t._typeError=R({message:e,name:"typeError",test(e){return!!(void 0===e||this.schema.isType(e))||this.createError({params:{type:this.schema._type}})}}),t}oneOf(e,t=c.oneOf){let i=this.clone();return e.forEach(e=>{i._whitelist.add(e),i._blacklist.delete(e)}),i._whitelistError=R({message:t,name:"oneOf",test(e){if(void 0===e)return!0;let t=this.schema._whitelist,i=t.resolveAll(this.resolve);return!!i.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:i}})}}),i}notOneOf(e,t=c.notOneOf){let i=this.clone();return e.forEach(e=>{i._blacklist.add(e),i._whitelist.delete(e)}),i._blacklistError=R({message:t,name:"notOneOf",test(e){let t=this.schema._blacklist,i=t.resolveAll(this.resolve);return!i.includes(e)||this.createError({params:{values:t.toArray().join(", "),resolved:i}})}}),i}strip(e=!0){let t=this.clone();return t.spec.strip=e,t}describe(){let e=this.clone(),{label:t,meta:i}=e.spec;return{meta:i,label:t,type:e.type,oneOf:e._whitelist.describe(),notOneOf:e._blacklist.describe(),tests:e.tests.map(e=>({name:e.OPTIONS.name,params:e.OPTIONS.params})).filter((e,t,i)=>i.findIndex(t=>t.name===e.name)===t)}}}for(let e of(F.prototype.__isYupSchema__=!0,["validate","validateSync"]))F.prototype[`${e}At`]=function(t,i,o={}){let{parent:n,parentPath:r,schema:a}=function(e,t,i,o=i){let n,r,a;return t?((0,O.forEach)(t,(l,s,d)=>{let u=s?z(l):l;if((e=e.resolve({context:o,parent:n,value:i})).innerType){let o=d?parseInt(u,10):0;if(i&&o>=i.length)throw Error(`Yup.reach cannot resolve an array item at index: ${l}, in the path: ${t}. because there is no value at that index. `);n=i,i=i&&i[o],e=e.innerType}if(!d){if(!e.fields||!e.fields[u])throw Error(`The schema does not contain the path: ${t}. (failed at: ${a} which is a type: "${e._type}")`);n=i,i=i&&i[u],e=e.fields[u]}r=u,a=s?"["+l+"]":"."+l}),{schema:e,parent:n,parentPath:r}):{parent:n,parentPath:t,schema:e}}(this,t,i,o.context);return a[e](n&&n[r],V({},o,{parent:n,path:t}))};for(let e of["equals","is"])F.prototype[e]=F.prototype.oneOf;for(let e of["not","nope"])F.prototype[e]=F.prototype.notOneOf;F.prototype.optional=F.prototype.notRequired,F.prototype;var U=e=>null==e;class G extends F{constructor(){super({type:"boolean"}),this.withMutation(()=>{this.transform(function(e){if(!this.isType(e)){if(/^(true|1)$/i.test(String(e)))return!0;if(/^(false|0)$/i.test(String(e)))return!1}return e})})}_typeCheck(e){return e instanceof Boolean&&(e=e.valueOf()),"boolean"==typeof e}isTrue(e=f.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"true"},test:e=>U(e)||!0===e})}isFalse(e=f.isValue){return this.test({message:e,name:"is-value",exclusive:!0,params:{value:"false"},test:e=>U(e)||!1===e})}}G.prototype;let B=/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))$/i,Z=/^((https?|ftp):)?\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(\#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i,q=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i,H=e=>U(e)||e===e.trim(),W=({}).toString();function Y(){return new K}class K extends F{constructor(){super({type:"string"}),this.withMutation(()=>{this.transform(function(e){if(this.isType(e)||Array.isArray(e))return e;let t=null!=e&&e.toString?e.toString():e;return t===W?e:t})})}_typeCheck(e){return e instanceof String&&(e=e.valueOf()),"string"==typeof e}_isPresent(e){return super._isPresent(e)&&!!e.length}length(e,t=p.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return U(t)||t.length===this.resolve(e)}})}min(e,t=p.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return U(t)||t.length>=this.resolve(e)}})}max(e,t=p.max){return this.test({name:"max",exclusive:!0,message:t,params:{max:e},test(t){return U(t)||t.length<=this.resolve(e)}})}matches(e,t){let i,o,n=!1;return t&&("object"==typeof t?{excludeEmptyString:n=!1,message:i,name:o}=t:i=t),this.test({name:o||"matches",message:i||p.matches,params:{regex:e},test:t=>U(t)||""===t&&n||-1!==t.search(e)})}email(e=p.email){return this.matches(B,{name:"email",message:e,excludeEmptyString:!0})}url(e=p.url){return this.matches(Z,{name:"url",message:e,excludeEmptyString:!0})}uuid(e=p.uuid){return this.matches(q,{name:"uuid",message:e,excludeEmptyString:!1})}ensure(){return this.default("").transform(e=>null===e?"":e)}trim(e=p.trim){return this.transform(e=>null!=e?e.trim():e).test({message:e,name:"trim",test:H})}lowercase(e=p.lowercase){return this.transform(e=>U(e)?e:e.toLowerCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>U(e)||e===e.toLowerCase()})}uppercase(e=p.uppercase){return this.transform(e=>U(e)?e:e.toUpperCase()).test({message:e,name:"string_case",exclusive:!0,test:e=>U(e)||e===e.toUpperCase()})}}Y.prototype=K.prototype;let Q=e=>e!=+e;class $ extends F{constructor(){super({type:"number"}),this.withMutation(()=>{this.transform(function(e){let t=e;if("string"==typeof t){if(""===(t=t.replace(/\s/g,"")))return NaN;t=+t}return this.isType(t)?t:parseFloat(t)})})}_typeCheck(e){return e instanceof Number&&(e=e.valueOf()),"number"==typeof e&&!Q(e)}min(e,t=m.min){return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return U(t)||t>=this.resolve(e)}})}max(e,t=m.max){return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return U(t)||t<=this.resolve(e)}})}lessThan(e,t=m.lessThan){return this.test({message:t,name:"max",exclusive:!0,params:{less:e},test(t){return U(t)||t<this.resolve(e)}})}moreThan(e,t=m.moreThan){return this.test({message:t,name:"min",exclusive:!0,params:{more:e},test(t){return U(t)||t>this.resolve(e)}})}positive(e=m.positive){return this.moreThan(0,e)}negative(e=m.negative){return this.lessThan(0,e)}integer(e=m.integer){return this.test({name:"integer",message:e,test:e=>U(e)||Number.isInteger(e)})}truncate(){return this.transform(e=>U(e)?e:0|e)}round(e){var t;let i=["ceil","floor","round","trunc"];if("trunc"===(e=(null==(t=e)?void 0:t.toLowerCase())||"round"))return this.truncate();if(-1===i.indexOf(e.toLowerCase()))throw TypeError("Only valid options for roun
4d() are: "+i.join(", "));return this.transform(t=>U(t)?t:Math[e](t))}}$.prototype;var X=/^(\d{4}|[+\-]\d{6})(?:-?(\d{2})(?:-?(\d{2}))?)?(?:[ T]?(\d{2}):?(\d{2})(?::?(\d{2})(?:[,\.](\d{1,}))?)?(?:(Z)|([+\-])(\d{2})(?::?(\d{2}))?)?)?$/;let J=new Date(""),ee=e=>"[object Date]"===Object.prototype.toString.call(e);function et(){return new ei}class ei extends F{constructor(){super({type:"date"}),this.withMutation(()=>{this.transform(function(e){return this.isType(e)?e:isNaN(e=function(e){var t,i,o=[1,4,5,6,7,10,11],n=0;if(i=X.exec(e)){for(var r,a=0;r=o[a];++a)i[r]=+i[r]||0;i[2]=(+i[2]||1)-1,i[3]=+i[3]||1,i[7]=i[7]?String(i[7]).substr(0,3):0,(void 0===i[8]||""===i[8])&&(void 0===i[9]||""===i[9])?t=+new Date(i[1],i[2],i[3],i[4],i[5],i[6],i[7]):("Z"!==i[8]&&void 0!==i[9]&&(n=60*i[10]+i[11],"+"===i[9]&&(n=0-n)),t=Date.UTC(i[1],i[2],i[3],i[4],i[5]+n,i[6],i[7]))}else t=Date.parse?Date.parse(e):NaN;return t}(e))?J:new Date(e)})})}_typeCheck(e){return ee(e)&&!isNaN(e.getTime())}prepareParam(e,t){let i;if(j.isRef(e))i=e;else{let o=this.cast(e);if(!this._typeCheck(o))throw TypeError(`\`${t}\` must be a Date or a value that can be \`cast()\` to a Date`);i=o}return i}min(e,t=h.min){let i=this.prepareParam(e,"min");return this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(e){return U(e)||e>=this.resolve(i)}})}max(e,t=h.max){let i=this.prepareParam(e,"max");return this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(e){return U(e)||e<=this.resolve(i)}})}}ei.INVALID_DATE=J,et.prototype=ei.prototype,et.INVALID_DATE=J;var eo=i(11865),en=i.n(eo),er=i(68929),ea=i.n(er),el=i(67523),es=i.n(el),ed=i(94633),eu=i.n(ed);function ec(e,t){let i=1/0;return e.some((e,o)=>{var n;if((null==(n=t.path)?void 0:n.indexOf(e))!==-1)return i=o,!0}),i}function ep(e){return(t,i)=>ec(e,t)-ec(e,i)}function em(){return(em=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}let eh=e=>"[object Object]"===Object.prototype.toString.call(e),ef=ep([]);class ev extends F{constructor(e){super({type:"object"}),this.fields=Object.create(null),this._sortErrors=ef,this._nodes=[],this._excludedEdges=[],this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null}),e&&this.shape(e)})}_typeCheck(e){return eh(e)||"function"==typeof e}_cast(e,t={}){var i;let o=super._cast(e,t);if(void 0===o)return this.getDefault();if(!this._typeCheck(o))return o;let n=this.fields,r=null!=(i=t.stripUnknown)?i:this.spec.noUnknown,a=this._nodes.concat(Object.keys(o).filter(e=>-1===this._nodes.indexOf(e))),l={},s=em({},t,{parent:l,__validating:t.__validating||!1}),d=!1;for(let e of a){let i=n[e],a=x()(o,e);if(i){let n;let r=o[e];s.path=(t.path?`${t.path}.`:"")+e;let a="spec"in(i=i.resolve({value:r,context:t.context,parent:l}))?i.spec:void 0,u=null==a?void 0:a.strict;if(null==a?void 0:a.strip){d=d||e in o;continue}void 0!==(n=t.__validating&&u?o[e]:i.cast(o[e],s))&&(l[e]=n)}else a&&!r&&(l[e]=o[e]);l[e]!==o[e]&&(d=!0)}return d?l:o}_validate(e,t={},i){let o=[],{sync:n,from:r=[],originalValue:a=e,abortEarly:l=this.spec.abortEarly,recursive:s=this.spec.recursive}=t;r=[{schema:this,value:a},...r],t.__validating=!0,t.originalValue=a,t.from=r,super._validate(e,t,(e,d)=>{if(e){if(!T.isError(e)||l)return void i(e,d);o.push(e)}if(!s||!eh(d)){i(o[0]||null,d);return}a=a||d,P({sync:n,tests:this._nodes.map(e=>(i,o)=>{let n=-1===e.indexOf(".")?(t.path?`${t.path}.`:"")+e:`${t.path||""}["${e}"]`,l=this.fields[e];if(l&&"validate"in l){l.validate(d[e],em({},t,{path:n,from:r,strict:!0,parent:d,originalValue:a[e]}),o);return}o(null)}),value:d,errors:o,endEarly:l,sort:this._sortErrors,path:t.path},i)})}clone(e){let t=super.clone(e);return t.fields=em({},this.fields),t._nodes=this._nodes,t._excludedEdges=this._excludedEdges,t._sortErrors=this._sortErrors,t}concat(e){let t=super.concat(e),i=t.fields;for(let[e,t]of Object.entries(this.fields)){let o=i[e];void 0===o?i[e]=t:o instanceof F&&t instanceof F&&(i[e]=t.concat(o))}return t.withMutation(()=>t.shape(i,this._excludedEdges))}getDefaultFromShape(){let e={};
4return this._nodes.forEach(t=>{let i=this.fields[t];e[t]="default"in i?i.getDefault():void 0}),e}_getDefault(){return"default"in this.spec?super._getDefault():this._nodes.length?this.getDefaultFromShape():void 0}shape(e,t=[]){let i=this.clone(),o=Object.assign(i.fields,e);return i.fields=o,i._sortErrors=ep(Object.keys(o)),t.length&&(Array.isArray(t[0])||(t=[t]),i._excludedEdges=[...i._excludedEdges,...t]),i._nodes=function(e,t=[]){let i=[],o=new Set,n=new Set(t.map(([e,t])=>`${e}-${t}`));function r(e,t){let r=(0,O.split)(e)[0];o.add(r),n.has(`${t}-${r}`)||i.push([t,r])}for(let t in e)if(x()(e,t)){let i=e[t];o.add(t),j.isRef(i)&&i.isSibling?r(i.path,t):w(i)&&"deps"in i&&i.deps.forEach(e=>r(e,t))}return eu().array(Array.from(o),i).reverse()}(o,i._excludedEdges),i}pick(e){let t={};for(let i of e)this.fields[i]&&(t[i]=this.fields[i]);return this.clone().withMutation(e=>(e.fields={},e.shape(t)))}omit(e){let t=this.clone(),i=t.fields;for(let o of(t.fields={},e))delete i[o];return t.withMutation(()=>t.shape(i))}from(e,t,i){let o=(0,O.getter)(e,!0);return this.transform(n=>{if(null==n)return n;let r=n;return x()(n,e)&&(r=em({},n),i||delete r[e],r[t]=o(n)),r})}noUnknown(e=!0,t=v.noUnknown){"string"==typeof e&&(t=e,e=!0);let i=this.test({name:"noUnknown",exclusive:!0,message:t,test(t){let i;if(null==t)return!0;let o=(i=Object.keys(this.schema.fields),Object.keys(t).filter(e=>-1===i.indexOf(e)));return!e||0===o.length||this.createError({params:{unknown:o.join(", ")}})}});return i.spec.noUnknown=e,i}unknown(e=!0,t=v.noUnknown){return this.noUnknown(!e,t)}transformKeys(e){return this.transform(t=>t&&es()(t,(t,i)=>e(i)))}camelCase(){return this.transformKeys(ea())}snakeCase(){return this.transformKeys(en())}constantCase(){return this.transformKeys(e=>en()(e).toUpperCase())}describe(){let e=super.describe();return e.fields=D()(this.fields,e=>e.describe()),e}}function eg(e){return new ev(e)}function ey(){return(ey=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(this,arguments)}eg.prototype=ev.prototype;class eb extends F{constructor(e){super({type:"array"}),this.innerType=void 0,this.innerType=e,this.withMutation(()=>{this.transform(function(e){if("string"==typeof e)try{e=JSON.parse(e)}catch(t){e=null}return this.isType(e)?e:null})})}_typeCheck(e){return Array.isArray(e)}get _subType(){return this.innerType}_cast(e,t){let i=super._cast(e,t);if(!this._typeCheck(i)||!this.innerType)return i;let o=!1,n=i.map((e,i)=>{let n=this.innerType.cast(e,ey({},t,{path:`${t.path||""}[${i}]`}));return n!==e&&(o=!0),n});return o?n:i}_validate(e,t={},i){var o,n;let r=[],a=t.sync,l=t.path,s=this.innerType,d=null!=(o=t.abortEarly)?o:this.spec.abortEarly,u=null!=(n=t.recursive)?n:this.spec.recursive,c=null!=t.originalValue?t.originalValue:e;super._validate(e,t,(e,o)=>{if(e){if(!T.isError(e)||d)return void i(e,o);r.push(e)}if(!u||!s||!this._typeCheck(o)){i(r[0]||null,o);return}c=c||o;let n=Array(o.length);for(let e=0;e<o.length;e++){let i=o[e],r=`${t.path||""}[${e}]`,a=ey({},t,{path:r,strict:!0,parent:o,index:e,originalValue:c[e]});n[e]=(e,t)=>s.validate(i,a,t)}P({sync:a,path:l,value:o,errors:r,endEarly:d,tests:n},i)})}clone(e){let t=super.clone(e);return t.innerType=this.innerType,t}concat(e){let t=super.concat(e);return t.innerType=this.innerType,e.innerType&&(t.innerType=t.innerType?t.innerType.concat(e.innerType):e.innerType),t}of(e){let t=this.clone();if(!w(e))throw TypeError("`array.of()` sub-schema must be a valid yup schema not: "+u(e));return t.innerType=e,t}length(e,t=g.length){return this.test({message:t,name:"length",exclusive:!0,params:{length:e},test(t){return U(t)||t.length===this.resolve(e)}})}min(e,t){return t=t||g.min,this.test({message:t,name:"min",exclusive:!0,params:{min:e},test(t){return U(t)||t.length>=this.resolve(e)}})}max(e,t){return t=t||g.max,this.test({message:t,name:"max",exclusive:!0,params:{max:e},test(t){return U(t)||t.length<=this.resolve(e)}})}ensure(){return this.default(()=>[]).transform((e,t)=>this._typeCheck(e)?e:null==t?[]:[].concat(t))}compact(e){let t=e?(t,i,o)=>!e(t,i,o):e=>!!e;return this.transform(e=>null!=e?e.filter(t):e)}describe(){let e=super.describe();return this.innerType&&(e.innerType=this.innerType.describe()),e}nullable(e=!0){return super.nullable(e)}defined(){return super.defined()}required(e){return super.required(e)}}eb.prototype},4942:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});var o=i(83997);function n(e,t,i){return(t=(0,o.Z)(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}},87462:function(e,t,i){"use strict";function o(){return(o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var o in i)({}).hasOwnProperty.call(i,o)&&(e[o]=i[o])}return e}).apply(null,arguments)}i.d(t,{Z:function(){return o}})},1413:function(e,t,i){"use strict";i.d(t,{Z:function(){return r}});var o=i(4942);function n(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),i.push.apply(i,o)}return i}function r(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};
4t%2?n(Object(i),!0).forEach(function(t){(0,o.Z)(e,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):n(Object(i)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))})}return e}},63366:function(e,t,i){"use strict";function o(e,t){if(null==e)return{};var i={};for(var o in e)if(({}).hasOwnProperty.call(e,o)){if(-1!==t.indexOf(o))continue;i[o]=e[o]}return i}i.d(t,{Z:function(){return o}})},89611:function(e,t,i){"use strict";function o(e,t){return(o=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e})(e,t)}i.d(t,{Z:function(){return o}})},83997:function(e,t,i){"use strict";i.d(t,{Z:function(){return n}});var o=i(71002);function n(e){var t=function(e,t){if("object"!=(0,o.Z)(e)||!e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!=(0,o.Z)(n))return n;throw TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,o.Z)(t)?t:t+""}},71002:function(e,t,i){"use strict";function o(e){return(o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}i.d(t,{Z:function(){return o}})},14869:function(e,t,i){"use strict";i.d(t,{q:function(){return iA},vc:function(){return tf},Ab:function(){return th},q_:function(){return t6},ZI:function(){return t9},Yz:function(){return t7}});var o,n,r,a,l=_(),s=e=>b(e,l),d=_();s.write=e=>b(e,d);var u=_();s.onStart=e=>b(e,u);var c=_();s.onFrame=e=>b(e,c);var p=_();s.onFinish=e=>b(e,p);var m=[];s.setTimeout=(e,t)=>{let i=s.now()+t,o=()=>{let e=m.findIndex(e=>e.cancel==o);~e&&m.splice(e,1),g-=~e?1:0},n={time:i,handler:e,cancel:o};return m.splice(h(i),0,n),g+=1,A(),n};var h=e=>~(~m.findIndex(t=>t.time>e)||~m.length);s.cancel=e=>{u.delete(e),c.delete(e),p.delete(e),l.delete(e),d.delete(e)},s.sync=e=>{y=!0,s.batchedUpdates(e),y=!1},s.throttle=e=>{let t;function i(){try{e(...t)}finally{t=null}}function o(...e){t=e,s.onStart(i)}return o.handler=e,o.cancel=()=>{u.delete(i),t=null},o};var f="undefined"!=typeof window?window.requestAnimationFrame:()=>{};s.use=e=>f=e,s.now="undefined"!=typeof performance?()=>performance.now():Date.now,s.batchedUpdates=e=>e(),s.catch=console.error,s.frameLoop="always",s.advance=()=>{"demand"!==s.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):w()};var v=-1,g=0,y=!1;function b(e,t){y?(t.delete(e),e(0)):(t.add(e),A())}function A(){v<0&&(v=0,"demand"!==s.frameLoop&&f(x))}function x(){~v&&(f(x),s.batchedUpdates(w))}function w(){let e=v,t=h(v=s.now());if(t&&(S(m.splice(0,t),e=>e.handler()),g-=t),!g){v=-1;return}u.flush(),l.flush(e?Math.min(64,v-e):16.667),c.flush(),d.flush(),p.flush()}function _(){let e=new Set,t=e;return{add(i){g+=t!=e||e.has(i)?0:1,e.add(i)},delete:i=>(g-=t==e&&e.has(i)?1:0,e.delete(i)),flush(i){t.size&&(e=new Set,g-=t.size,S(t,t=>t(i)&&e.add(t)),g+=e.size,t=e)}}}function S(e,t){e.forEach(e=>{try{t(e)}catch(e){s.catch(e)}})}var C=i(67294),k=Object.defineProperty,T={};function E(){}((e,t)=>{for(var i in t)k(e,i,{get:t[i],enumerable:!0})})(T,{assign:()=>U,colors:()=>L,createStringInterpolator:()=>n,skipAnimation:()=>V,to:()=>r,willAdvance:()=>F});var P=(e,t,i)=>Object.defineProperty(e,t,{value:i,writable:!0,configurable:!0}),I={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function D(e,t){if(I.arr(e)){if(!I.arr(t)||e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}return e===t}var O=(e,t)=>e.forEach(t);function N(e,t,i){if(I.arr(e)){for(let o=0;o<e.length;o++)t.call(i,e[o],`${o}`);return}for(let o in e)e.hasOwnProperty(o)&&t.call(i,e[o],o)}var j=e=>I.und(e)?[]:I.arr(e)?e:[e];function M(e,t){if(e.size){let i=Array.from(e);e.clear(),O(i,t)}}var R=(e,...t)=>M(e,e=>e(...t)),z=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),L=null,V=!1,F=E,U=e=>{e.to&&(r=e.to),e.now&&(s.now=e.now),void 0!==e.colors&&(L=e.colors),null!=e.ski
4pAnimation&&(V=e.skipAnimation),e.createStringInterpolator&&(n=e.createStringInterpolator),e.requestAnimationFrame&&s.use(e.requestAnimationFrame),e.batchedUpdates&&(s.batchedUpdates=e.batchedUpdates),e.willAdvance&&(F=e.willAdvance),e.frameLoop&&(s.frameLoop=e.frameLoop)},G=new Set,B=[],Z=[],q=0,H={get idle(){return!G.size&&!B.length},start(e){q>e.priority?(G.add(e),s.onStart(W)):(Y(e),s(Q))},advance:Q,sort(e){if(q)s.onFrame(()=>H.sort(e));else{let t=B.indexOf(e);~t&&(B.splice(t,1),K(e))}},clear(){B=[],G.clear()}};function W(){G.forEach(Y),G.clear(),s(Q)}function Y(e){B.includes(e)||K(e)}function K(e){B.splice(function(e,t){let i=e.findIndex(t);return i<0?e.length:i}(B,t=>t.priority>e.priority),0,e)}function Q(e){let t=Z;for(let i=0;i<B.length;i++){let o=B[i];q=o.priority,o.idle||(F(o),o.advance(e),o.idle||t.push(o))}return q=0,(Z=B).length=0,(B=t).length>0}var $="[-+]?\\d*\\.?\\d+",X=$+"%";function J(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var ee=RegExp("rgb"+J($,$,$)),et=RegExp("rgba"+J($,$,$,$)),ei=RegExp("hsl"+J($,X,X)),eo=RegExp("hsla"+J($,X,X,$)),en=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,er=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ea=/^#([0-9a-fA-F]{6})$/,el=/^#([0-9a-fA-F]{8})$/;function es(e,t,i){return(i<0&&(i+=1),i>1&&(i-=1),i<1/6)?e+(t-e)*6*i:i<.5?t:i<2/3?e+(t-e)*(2/3-i)*6:e}function ed(e,t,i){let o=i<.5?i*(1+t):i+t-i*t,n=2*i-o;return Math.round(255*es(n,o,e+1/3))<<24|Math.round(255*es(n,o,e))<<16|Math.round(255*es(n,o,e-1/3))<<8}function eu(e){let t=parseInt(e,10);return t<0?0:t>255?255:t}function ec(e){return(parseFloat(e)%360+360)%360/360}function ep(e){let t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function em(e){let t=parseFloat(e);return t<0?0:t>100?1:t/100}function eh(e){let t;let i="number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=ea.exec(e))?parseInt(t[1]+"ff",16)>>>0:L&&void 0!==L[e]?L[e]:(t=ee.exec(e))?(eu(t[1])<<24|eu(t[2])<<16|eu(t[3])<<8|255)>>>0:(t=et.exec(e))?(eu(t[1])<<24|eu(t[2])<<16|eu(t[3])<<8|ep(t[4]))>>>0:(t=en.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=el.exec(e))?parseInt(t[1],16)>>>0:(t=er.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=ei.exec(e))?(255|ed(ec(t[1]),em(t[2]),em(t[3])))>>>0:(t=eo.exec(e))?(ed(ec(t[1]),em(t[2]),em(t[3]))|ep(t[4]))>>>0:null;if(null===i)return e;let o=(4278190080&(i=i||0))>>>24,n=(16711680&i)>>>16,r=(65280&i)>>>8,a=(255&i)/255;return`rgba(${o}, ${n}, ${r}, ${a})`}var ef=(e,t,i)=>{if(I.fun(e))return e;if(I.arr(e))return ef({range:e,output:t,extrapolate:i});if(I.str(e.output[0]))return n(e);let o=e.output,r=e.range||[0,1],a=e.extrapolateLeft||e.extrapolate||"extend",l=e.extrapolateRight||e.extrapolate||"extend",s=e.easing||(e=>e);return t=>{let i=function(e,t){for(var i=1;i<t.length-1&&!(t[i]>=e);++i);return i-1}(t,r);return function(e,t,i,o,n,r,a,l,s){let d=s?s(e):e;if(d<t){if("identity"===a)return d;"clamp"===a&&(d=t)}if(d>i){if("identity"===l)return d;"clamp"===l&&(d=i)}return o===n?o:t===i?e<=t?o:n:(t===-1/0?d=-d:i===1/0?d-=t:d=(d-t)/(i-t),d=r(d),o===-1/0?d=-d:n===1/0?d+=o:d=d*(n-o)+o,d)}(t,r[i],r[i+1],o[i],o[i+1],s,a,l,e.map)}},ev=Symbol.for("FluidValue.get"),eg=Symbol.for("FluidValue.observers"),ey=e=>!!(e&&e[ev]),eb=e=>e&&e[ev]?e[ev]():e,eA=e=>e[eg]||null;function ex(e,t){let i=e[eg];i&&i.forEach(e=>{e.eventObserved?e.eventObserved(t):e(t)})}var ew=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");e_(this,e)}},e_=(e,t)=>ek(e,ev,t);function eS(e,t){if(e[ev]){let i=e[eg];i||ek(e,eg,i=new Set),!i.has(t)&&(i.add(t),e.observerAdded&&e.observerAdded(i.size,t))}return t}function eC(e,t){let i=e[eg];if(i&&i.has(t)){let o=i.size-1;o?i.delete(t):e[eg]=null,e.observerRemoved&&e.observerRemoved(o,t)}}var ek=(e,t,i)=>Object.defineProperty(e,t,{value:i,writable:!0,configurable:!0}),eT=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,eE=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,eP=RegExp(`(${eT.source})(%|[a-z]+)`,"i"),eI=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,eD=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,eO=e=>{let[t,i]=eN(e);if(!t||z())return e;let o=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(o)return o.trim();if(i&&i.startsWith("--")){let e=window.getComputedStyle(document.documentElement).getPropertyValue(i);if(e)return e}else if(i&&eD.test(i))return eO(i);else if(i)return i;return e},eN=e=>{let t=eD.exec(e);if(!t)return[,];let[,i,o]=t;return[i,o]},ej=(e,t,i,o,n)=>`rgba(${Math.round(t)}, ${Math.round(i)}, ${Math.round(o)}, ${n})`,eM=e=>{a||(a=L?RegExp(`(${Object.keys(L).join("|")})(?!\\w)`,"g"):/^\b$/);let t=e.output.map(e=>eb(e).replace(eD,eO).replace(eE,eh).replace(a,eh)),i=t.map(e=>e.match(eT).map(Number)),o=i[0].map((e,t)=>i.map(e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})).map(t=>ef({...e,output:t}));return e=>{let i=!eP.test(t[0])&&t.find(e=>eP.test(e))?.replace(eT,""),n=0;return t[0].replace(eT,()=>`${o[n++](e)}${i||""}`).replace(eI,ej)}},eR="react-spring: ",ez=e=>{let t=!1;if("function"!=typeof e)throw TypeError(`${eR}once requires a function parameter`);return(...i)=>{t||(e(...i),t=!0)}},eL=ez(console.warn),eV=ez(console.warn);function eF(e){return I.str(e)&&("#"==e[0]||/\d/.test(e)||!z()&&eD.test(e)||e in(L||{}))}
4var eU=z()?C.useEffect:C.useLayoutEffect,eG=()=>{let e=(0,C.useRef)(!1);return eU(()=>(e.current=!0,()=>{e.current=!1}),[]),e};function eB(){let e=(0,C.useState)()[1],t=eG();return()=>{t.current&&e(Math.random())}}var eZ=e=>(0,C.useEffect)(e,eq),eq=[];function eH(e){let t=(0,C.useRef)();return(0,C.useEffect)(()=>{t.current=e}),t.current}var eW=Symbol.for("Animated:node"),eY=e=>!!e&&e[eW]===e,eK=e=>e&&e[eW],eQ=(e,t)=>P(e,eW,t),e$=e=>e&&e[eW]&&e[eW].getPayload(),eX=class{constructor(){eQ(this,this)}getPayload(){return this.payload||[]}},eJ=class extends eX{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,I.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new eJ(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return I.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){let{done:e}=this;this.done=!1,I.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},e0=class extends eJ{constructor(e){super(0),this._string=null,this._toString=ef({output:[e,e]})}static create(e){return new e0(e)}getValue(){let e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(I.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=ef({output:[this.getValue(),e]})),this._value=0,super.reset()}},e1={dependencies:null},e2=class extends eX{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){let t={};return N(this.source,(i,o)=>{eY(i)?t[o]=i.getValue(e):ey(i)?t[o]=eb(i):e||(t[o]=i)}),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&O(this.payload,e=>e.reset())}_makePayload(e){if(e){let t=new Set;return N(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){e1.dependencies&&ey(e)&&e1.dependencies.add(e);let t=e$(e);t&&O(t,e=>this.add(e))}},e3=class extends e2{constructor(e){super(e)}static create(e){return new e3(e)}getValue(){return this.source.map(e=>e.getValue())}setValue(e){let t=this.getPayload();return e.length==t.length?t.map((t,i)=>t.setValue(e[i])).some(Boolean):(super.setValue(e.map(e4)),!0)}};function e4(e){return(eF(e)?e0:eJ).create(e)}function e5(e){let t=eK(e);return t?t.constructor:I.arr(e)?e3:eF(e)?e0:eJ}var e6=(e,t)=>{let i=!I.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,C.forwardRef)((o,n)=>{let r=(0,C.useRef)(null),a=i&&(0,C.useCallback)(e=>{r.current=(n&&(I.fun(n)?n(e):n.current=e),e)},[n]),[l,d]=function(e,t){let i=new Set;return e1.dependencies=i,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)}
4),e=new e2(e),e1.dependencies=null,[e,i]}(o,t),u=eB(),c=()=>{let e=r.current;(!i||e)&&!1===(!!e&&t.applyAnimatedValues(e,l.getValue(!0)))&&u()},p=new e8(c,d),m=(0,C.useRef)();eU(()=>(m.current=p,O(d,e=>eS(e,p)),()=>{m.current&&(O(m.current.deps,e=>eC(e,m.current)),s.cancel(m.current.update))})),(0,C.useEffect)(c,[]),eZ(()=>()=>{let e=m.current;O(e.deps,t=>eC(t,e))});let h=t.getComponentProps(l.getValue());return C.createElement(e,{...h,ref:a})})},e8=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&s.write(this.update)}},e9=Symbol.for("AnimatedComponent"),e7=e=>I.str(e)?e:e&&I.str(e.displayName)?e.displayName:I.fun(e)&&e.name||null;function te(e,...t){return I.fun(e)?e(...t):e}var tt=(e,t)=>!0===e||!!(t&&e&&(I.fun(e)?e(t):j(e).includes(t))),ti=(e,t)=>I.obj(e)?t&&e[t]:e,to=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,tn=e=>e,tr=(e,t=tn)=>{let i=ta;e.default&&!0!==e.default&&(i=Object.keys(e=e.default));let o={};for(let n of i){let i=t(e[n],n);I.und(i)||(o[n]=i)}return o},ta=["config","onProps","onStart","onChange","onPause","onResume","onRest"],tl={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function ts(e){let t=function(e){let t={},i=0;if(N(e,(e,o)=>{!tl[o]&&(t[o]=e,i++)}),i)return t}(e);if(t){let i={to:t};return N(e,(e,o)=>o in t||(i[o]=e)),i}return{...e}}function td(e){return e=eb(e),I.arr(e)?e.map(td):eF(e)?T.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function tu(e){for(let t in e)return!0;return!1}function tc(e){return I.fun(e)||I.arr(e)&&I.obj(e[0])}function tp(e,t){e.ref?.delete(e),t?.delete(e)}function tm(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}function th(e,t,i=1e3){eU(()=>{if(t){let o=0;O(e,(e,n)=>{let r=e.current;if(r.length){let a=i*t[n];isNaN(a)?a=o:o=a,O(r,e=>{O(e.queue,e=>{let t=e.delay;e.delay=e=>a+te(t||0,e)})}),e.start()}})}else{let t=Promise.resolve();O(e,e=>{let i=e.current;if(i.length){let o=i.map(e=>{let t=e.queue;return e.queue=[],t});t=t.then(()=>(O(i,(e,t)=>O(o[t]||[],t=>e.queue.push(t))),Promise.all(e.start())))}})}})}var tf={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}},tv={...tf.default,mass:1,damping:1,easing:e=>e,clamp:!1},tg=class{constructor(){this.velocity=0,Object.assign(this,tv)}};function ty(e,t){if(I.und(t.decay)){let i=!I.und(t.tension)||!I.und(t.friction);!i&&I.und(t.frequency)&&I.und(t.damping)&&I.und(t.mass)||(e.duration=void 0,e.decay=void 0),i&&(e.frequency=void 0)}else e.duration=void 0}var tb=[],tA=class{constructor(){this.changed=!1,this.values=tb,this.toValues=null,this.fromValues=tb,this.config=new tg,this.immediate=!1}};function tx(e,{key:t,props:i,defaultProps:o,state:n,actions:r}){return new Promise((a,l)=>{let d,u;let c=tt(i.cancel??o?.cancel,t);if(c)h();else{I.und(i.pause)||(n.paused=tt(i.pause,t));let e=o?.pause;!0!==e&&(e=n.paused||tt(e,t)),d=te(i.delay||0,t),e?(n.resumeQueue.add(m),r.pause()):(r.resume(),m())}function p(){n.resumeQueue.add(m),n.timeouts.delete(u),u.cancel(),d=u.time-s.now()}function m(){d>0&&!T.skipAnimation?(n.delayed=!0,u=s.setTimeout(h,d),n.pauseQueue.add(p),n.timeouts.add(u)):h()}function h(){n.delayed&&(n.delayed=!1),n.pauseQueue.delete(p),n.timeouts.delete(u),e<=(n.cancelId||0)&&(c=!0);try{r.start({...i,callId:e,cancel:c},a)}catch(e){l(e)}}})}var tw=(e,t)=>1==t.length?t[0]:t.some(e=>e.cancelled)?tC(e.get()):t.every(e=>e.noop)?t_(e.get()):tS(e.get(),t.every(e=>e.finished)),t_=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),tS=(e,t,i=!1)=>({value:e,finished:t,cancelled:i}),tC=e=>({value:e,cancelled:!0,finished:!1});function tk(e,t,i,o){let{callId:n,parentId:r,onRest:a}=t,{asyncTo:l,promise:d}=i;return r||e!==l||t.reset?i.promise=(async()=>{let u,c,p;i.asyncId=n,i.asyncTo=e;let m=tr(t,(e,t)=>"onRest"===t?void 0:e),h=new Promise((e,t)=>
4(u=e,c=t)),f=e=>{let t=n<=(i.cancelId||0)&&tC(o)||n!==i.asyncId&&tS(o,!1);if(t)throw e.result=t,c(e),e},v=(e,t)=>{let r=new tE,a=new tP;return(async()=>{if(T.skipAnimation)throw tT(i),a.result=tS(o,!1),c(a),a;f(r);let l=I.obj(e)?{...e}:{...t,to:e};l.parentId=n,N(m,(e,t)=>{I.und(l[t])&&(l[t]=e)});let s=await o.start(l);return f(r),i.paused&&await new Promise(e=>{i.resumeQueue.add(e)}),s})()};if(T.skipAnimation)return tT(i),tS(o,!1);try{let t;t=I.arr(e)?(async e=>{for(let t of e)await v(t)})(e):Promise.resolve(e(v,o.stop.bind(o))),await Promise.all([t.then(u),h]),p=tS(o.get(),!0,!1)}catch(e){if(e instanceof tE)p=e.result;else if(e instanceof tP)p=e.result;else throw e}finally{n==i.asyncId&&(i.asyncId=r,i.asyncTo=r?l:void 0,i.promise=r?d:void 0)}return I.fun(a)&&s.batchedUpdates(()=>{a(p,o,o.item)}),p})():d}function tT(e,t){M(e.timeouts,e=>e.cancel()),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var tE=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},tP=class extends Error{constructor(){super("SkipAnimationSignal")}},tI=e=>e instanceof tO,tD=1,tO=class extends ew{constructor(){super(...arguments),this.id=tD++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){let e=eK(this);return e&&e.getValue()}to(...e){return T.to(this,e)}interpolate(...e){return eL(`${eR}The "interpolate" function is deprecated in v9 (use "to" instead)`),T.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){ex(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||H.sort(this),ex(this,{type:"priority",parent:this,priority:e})}},tN=Symbol.for("SpringPhase"),tj=e=>(1&e[tN])>0,tM=e=>(2&e[tN])>0,tR=e=>(4&e[tN])>0,tz=(e,t)=>t?e[tN]|=3:e[tN]&=-3,tL=(e,t)=>t?e[tN]|=4:e[tN]&=-5,tV=class extends tO{constructor(e,t){if(super(),this.animation=new tA,this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!I.und(e)||!I.und(t)){let i=I.obj(e)?{...e}:{...t,from:e};I.und(i.default)&&(i.default=!0),this.start(i)}}get idle(){return!(tM(this)||this._state.asyncTo)||tR(this)}get goal(){return eb(this.animation.to)}get velocity(){let e=eK(this);return e instanceof eJ?e.lastVelocity||0:e.getPayload().map(e=>e.lastVelocity||0)}get hasAnimated(){return tj(this)}get isAnimating(){return tM(this)}get isPaused(){return tR(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,i=!1,o=this.animation,{toValues:n}=o,{config:r}=o,a=e$(o.to);!a&&ey(o.to)&&(n=j(eb(o.to))),o.values.forEach((l,s)=>{if(l.done)return;let d=l.constructor==e0?1:a?a[s].lastPosition:n[s],u=o.immediate,c=d;if(!u){let t;if(c=l.lastPosition,r.tension<=0){l.done=!0;return}let i=l.elapsedTime+=e,n=o.fromValues[s],a=null!=l.v0?l.v0:l.v0=I.arr(r.velocity)?r.velocity[s]:r.velocity,p=r.precision||(n==d?.005:Math.min(1,.001*Math.abs(d-n)));if(I.und(r.duration)){if(r.decay){let e=!0===r.decay?.998:r.decay,o=Math.exp(-(1-e)*i);c=n+a/(1-e)*(1-o),u=Math.abs(l.lastPosition-c)<=p,t=a*o}else{t=null==l.lastVelocity?a:l.lastVelocity;let i=r.restVelocity||p/10,o=r.clamp?0:r.bounce,s=!I.und(o),m=n==d?l.v0>0:n<d,h=Math.ceil(e/1);for(let e=0;e<h&&!(!(Math.abs(t)>i)&&(u=Math.abs(d-c)<=p));++e){s&&(c==d||c>d==m)&&(t=-t*o,c=d);let e=(-(1e-6*r.tension)*(c-d)+-(.001*r.friction)*t)/r.mass;t+=1*e,c+=1*t}}}else{let o=1;r.duration>0&&(this._memoizedDuration!==r.duration&&(this._memoizedDuration=r.duration,l.durationProgress>0&&(l.elapsedTime=r.duration*l.durationProgress,i=l.elapsedTime+=e)),o=(o=(r.progress||0)+i/this._memoizedDuration)>1?1:o<0?0:o,l.durationProgress=o),t=((c=n+r.easing(o)*(d-n))-l.lastPosition)/e,u=1==o}l.lastVelocity=t,Number.isNaN(c)&&(console.warn("Got NaN while animating:",this),u=!0)}
4a&&!a[s].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(c,r.round)&&(i=!0)});let l=eK(this),s=l.getValue();if(t){let e=eb(o.to);(s!==e||i)&&!r.decay?(l.setValue(e),this._onChange(e)):i&&r.decay&&this._onChange(s),this._stop()}else i&&this._onChange(s)}set(e){return s.batchedUpdates(()=>{this._stop(),this._focus(e),this._set(e)}),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(tM(this)){let{to:e,config:t}=this.animation;s.batchedUpdates(()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()})}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let i;return I.und(e)?(i=this.queue||[],this.queue=[]):i=[I.obj(e)?e:{...t,to:e}],Promise.all(i.map(e=>this._update(e))).then(e=>tw(this,e))}stop(e){let{to:t}=this.animation;return this._focus(this.get()),tT(this._state,e&&this._lastCallId),s.batchedUpdates(()=>this._stop(t,e)),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){let t=this.key||"",{to:i,from:o}=e;(null==(i=I.obj(i)?i[t]:i)||tc(i))&&(i=void 0),null==(o=I.obj(o)?o[t]:o)&&(o=void 0);let n={to:i,from:o};return tj(this)||(e.reverse&&([i,o]=[o,i]),o=eb(o),I.und(o)?eK(this)||this._set(i):this._set(o)),n}_update({...e},t){let{key:i,defaultProps:o}=this;e.default&&Object.assign(o,tr(e,(e,t)=>/^on/.test(t)?ti(e,i):e)),tq(this,e,"onProps"),tH(this,"onProps",e,this);let n=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");let r=this._state;return tx(++this._lastCallId,{key:i,props:e,defaultProps:o,state:r,actions:{pause:()=>{tR(this)||(tL(this,!0),R(r.pauseQueue),tH(this,"onPause",tS(this,tF(this,this.animation.to)),this))},resume:()=>{tR(this)&&(tL(this,!1),tM(this)&&this._resume(),R(r.resumeQueue),tH(this,"onResume",tS(this,tF(this,this.animation.to)),this))},start:this._merge.bind(this,n)}}).then(i=>{if(e.loop&&i.finished&&!(t&&i.noop)){let t=tU(e);if(t)return this._update(t,!0)}return i})}_merge(e,t,i){if(t.cancel)return this.stop(!0),i(tC(this));let o=!I.und(e.to),n=!I.und(e.from);if(o||n){if(!(t.callId>this._lastToId))return i(tC(this));this._lastToId=t.callId}let{key:r,defaultProps:a,animation:l}=this,{to:d,from:u}=l,{to:c=d,from:p=u}=e;n&&!o&&(!t.default||I.und(c))&&(c=p),t.reverse&&([c,p]=[p,c]);let m=!D(p,u);m&&(l.from=p),p=eb(p);let h=!D(c,d);h&&this._focus(c);let f=tc(t.to),{config:v}=l,{decay:g,velocity:y}=v;(o||n)&&(v.velocity=0),t.config&&!f&&function(e,t,i){for(let o in i&&(ty(i={...i},t),t={...i,...t}),ty(e,t),Object.assign(e,t),tv)null==e[o]&&(e[o]=tv[o]);let{frequency:o,damping:n}=e,{mass:r}=e;I.und(o)||(o<.01&&(o=.01),n<0&&(n=0),e.tension=Math.pow(2*Math.PI/o,2)*r,e.friction=4*Math.PI*n*r/o)}(v,te(t.config,r),t.config!==a.config?te(a.config,r):void 0);let b=eK(this);if(!b||I.und(c))return i(tS(this,!0));let A=I.und(t.reset)?n&&!t.default:!I.und(p)&&tt(t.reset,r),x=A?p:this.get(),w=td(c),_=I.num(w)||I.arr(w)||eF(w),S=!f&&(!_||tt(a.immediate||t.immediate,r));if(h){let e=e5(c);if(e!==b.constructor){if(S)b=this._set(w);else throw Error(`Cannot animate between ${b.constructor.name} and ${e.name}, as the "to" prop suggests`)}}let C=b.constructor,k=ey(c),T=!1;if(!k){let e=A||!tj(this)&&m;(h||e)&&(k=!(T=D(td(x),w))),(D(l.immediate,S)||S)&&D(v.decay,g)&&D(v.velocity,y)||(k=!0)}if(T&&tM(this)&&(l.changed&&!A?k=!0:k||this._stop(d)),!f&&((k||ey(d))&&(l.values=b.getPayload(),l.toValues=ey(c)?null:C==e0?[1]:j(w)),l.immediate==S||(l.immediate=S,S||A||this._set(d)),k)){let{onRest:e}=l;O(tZ,e=>tq(this,t,e));let o=tS(this,tF(this,d));R(this._pendingCalls,o),this._pendingCalls.add(i),l.changed&&s.batchedUpdates(()=>{l.changed=!A,e?.(o,this),A?te(a.onRest,o):l.onStart?.(o,this)})}A&&this._set(x),f?i(tk(t.to,t,this._state,this)):k?this._start():tM(this)&&!h?this._pendingCalls.add(i):i(t_(x))}_focus(e){let t=this.animation;e!==t.to&&(eA(this)&&this._detach(),t.to=e,eA(this)&&this._attach())}_attach(){let e=0,{to:t}=this.animation;ey(t)&&(eS(t,this),tI(t)&&(e=t.priority+1)),this.priority=e}_detach(){let{to:e}=this.animation;ey(e)&&eC(e,this)}_set(e,t=!0){let i=eb(e);if(!I.und(i)){let e=eK(this);if(!e||!D(i,e.getValue())){let o=e5(i);e&&e.constructor==o?e.setValue(i):eQ(this,o.create(i)),e&&s.batchedUpdates(()=>{this._onChange(i,t)})}}return eK(this)}_onStart(){let e=this.animation;e.changed||(e.changed=!0,tH(this,"onStart",tS(this,tF(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),te(this.animation.onChange,e,this)),te(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){let e=this.animation;eK(this).reset(eb(e.to)),e.immediate||(e.fromValues=e.values.map(e=>e.lastPosition)),tM(this)||(tz(this,!0),tR(this)||this._resume())}_resume(){T.skipAnimation?this.finish():H.start(this)}_stop(e,t){if(tM(this)){tz(this,!1);let i=this.animation;O(i.values,e=>{e.done=!0}),i.toValues&&(i.onChange=i.onPause=i.onResume=void 0),ex(this,{type:"idle",parent:this});let o=t?tC(this.get()):tS(this.get(),tF(this,e??i.to));
4R(this._pendingCalls,o),i.changed&&(i.changed=!1,tH(this,"onRest",o,this))}}};function tF(e,t){let i=td(t);return D(td(e.get()),i)}function tU(e,t=e.loop,i=e.to){let o=te(t);if(o){let n=!0!==o&&ts(o),r=(n||e).reverse,a=!n||n.reset;return tG({...e,loop:t,default:!1,pause:void 0,to:!r||tc(i)?i:void 0,from:a?e.from:void 0,reset:a,...n})}}function tG(e){let{to:t,from:i}=e=ts(e),o=new Set;return I.obj(t)&&tB(t,o),I.obj(i)&&tB(i,o),e.keys=o.size?Array.from(o):null,e}function tB(e,t){N(e,(e,i)=>null!=e&&t.add(i))}var tZ=["onStart","onRest","onChange","onPause","onResume"];function tq(e,t,i){e.animation[i]=t[i]!==to(t,i)?ti(t[i],e.key):void 0}function tH(e,t,...i){e.animation[t]?.(...i),e.defaultProps[t]?.(...i)}var tW=["onStart","onChange","onRest"],tY=1,tK=class{constructor(e,t){this.id=tY++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every(e=>e.idle&&!e.isDelayed&&!e.isPaused)}get item(){return this._item}set item(e){this._item=e}get(){let e={};return this.each((t,i)=>e[i]=t.get()),e}set(e){for(let t in e){let i=e[t];I.und(i)||this.springs[t].set(i)}}update(e){return e&&this.queue.push(tG(e)),this}start(e){let{queue:t}=this;return(e?t=j(e).map(tG):this.queue=[],this._flush)?this._flush(this,t):(t2(this,t),tQ(this,t))}stop(e,t){if(!!e!==e&&(t=e),t){let i=this.springs;O(j(t),t=>i[t].stop(!!e))}else tT(this._state,this._lastAsyncId),this.each(t=>t.stop(!!e));return this}pause(e){if(I.und(e))this.start({pause:!0});else{let t=this.springs;O(j(e),e=>t[e].pause())}return this}resume(e){if(I.und(e))this.start({pause:!1});else{let t=this.springs;O(j(e),e=>t[e].resume())}return this}each(e){N(this.springs,e)}_onFrame(){let{onStart:e,onChange:t,onRest:i}=this._events,o=this._active.size>0,n=this._changed.size>0;(o&&!this._started||n&&!this._started)&&(this._started=!0,M(e,([e,t])=>{t.value=this.get(),e(t,this,this._item)}));let r=!o&&this._started,a=n||r&&i.size?this.get():null;n&&t.size&&M(t,([e,t])=>{t.value=a,e(t,this,this._item)}),r&&(this._started=!1,M(i,([e,t])=>{t.value=a,e(t,this,this._item)}))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}s.onFrame(this._onFrame)}};function tQ(e,t){return Promise.all(t.map(t=>t$(e,t))).then(t=>tw(e,t))}async function t$(e,t,i){let{keys:o,to:n,from:r,loop:a,onRest:l,onResolve:d}=t,u=I.obj(t.default)&&t.default;a&&(t.loop=!1),!1===n&&(t.to=null),!1===r&&(t.from=null);let c=I.arr(n)||I.fun(n)?n:void 0;c?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):O(tW,i=>{let o=t[i];if(I.fun(o)){let n=e._events[i];t[i]=({finished:e,cancelled:t})=>{let i=n.get(o);i?(e||(i.finished=!1),t&&(i.cancelled=!0)):n.set(o,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[i]=t[i])}});let p=e._state;!p.paused===t.pause?(p.paused=t.pause,R(t.pause?p.pauseQueue:p.resumeQueue)):p.paused&&(t.pause=!0);let m=(o||Object.keys(e.springs)).map(i=>e.springs[i].start(t)),h=!0===t.cancel||!0===to(t,"cancel");(c||h&&p.asyncId)&&m.push(tx(++e._lastAsyncId,{props:t,state:p,actions:{pause:E,resume:E,start(t,i){h?(tT(p,e._lastAsyncId),i(tC(e))):(t.onRest=l,i(tk(c,t,p,e)))}}})),p.paused&&await new Promise(e=>{p.resumeQueue.add(e)});let f=tw(e,await Promise.all(m));if(a&&f.finished&&!(i&&f.noop)){let i=tU(t,a,n);if(i)return t2(e,[i]),t$(e,i,!0)}return d&&s.batchedUpdates(()=>d(f,e,e.item)),f}function tX(e,t){let i={...e.springs};return t&&O(j(t),e=>{I.und(e.keys)&&(e=tG(e)),I.obj(e.to)||(e={...e,to:void 0}),t1(i,e,e=>t0(e))}),tJ(e,i),i}function tJ(e,t){N(t,(t,i)=>{e.springs[i]||(e.springs[i]=t,eS(t,e))})}function t0(e,t){let i=new tV;return i.key=e,t&&eS(i,t),i}function t1(e,t,i){t.keys&&O(t.keys,o=>{(e[o]||(e[o]=i(o)))._prepareNode(t)})}function t2(e,t){O(t,t=>{t1(e.springs,t,t=>t0(t,e))})}var t3=({children:e,...t})=>{let i=(0,C.useContext)(t4),o=t.pause||!!i.pause,n=t.immediate||!!i.immediate;t=function(e,t){let[i]=(0,C.useState)(()=>({inputs:t,result:e()})),o=(0,C.useRef)(),n=o.current,r=n;return r?t&&r.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}
4(t,r.inputs)||(r={inputs:t,result:e()}):r=i,(0,C.useEffect)(()=>{o.current=r,n==i&&(i.inputs=i.result=void 0)},[r]),r.result}(()=>({pause:o,immediate:n}),[o,n]);let{Provider:r}=t4;return C.createElement(r,{value:t},e)},t4=(o={},Object.assign(t3,C.createContext(o)),t3.Provider._context=t3,t3.Consumer._context=t3,t3);t3.Provider=t4.Provider,t3.Consumer=t4.Consumer;var t5=()=>{let e=[],t=function(t){eV(`${eR}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);let o=[];return O(e,(e,n)=>{if(I.und(t))o.push(e.start());else{let r=i(t,e,n);r&&o.push(e.start(r))}}),o};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){let i=e.indexOf(t);~i&&e.splice(i,1)},t.pause=function(){return O(e,e=>e.pause(...arguments)),this},t.resume=function(){return O(e,e=>e.resume(...arguments)),this},t.set=function(t){O(e,(e,i)=>{let o=I.fun(t)?t(i,e):t;o&&e.set(o)})},t.start=function(t){let i=[];return O(e,(e,o)=>{if(I.und(t))i.push(e.start());else{let n=this._getProps(t,e,o);n&&i.push(e.start(n))}}),i},t.stop=function(){return O(e,e=>e.stop(...arguments)),this},t.update=function(t){return O(e,(e,i)=>e.update(this._getProps(t,e,i))),this};let i=function(e,t,i){return I.fun(e)?e(i,t):e};return t._getProps=i,t};function t6(e,t){let i=I.fun(e),[[o],n]=function(e,t,i){let o=I.fun(t)&&t;o&&!i&&(i=[]);let n=(0,C.useMemo)(()=>o||3==arguments.length?t5():void 0,[]),r=(0,C.useRef)(0),a=eB(),l=(0,C.useMemo)(()=>({ctrls:[],queue:[],flush(e,t){let i=tX(e,t);return!(r.current>0)||l.queue.length||Object.keys(i).some(t=>!e.springs[t])?new Promise(o=>{tJ(e,i),l.queue.push(()=>{o(tQ(e,t))}),a()}):tQ(e,t)}}),[]),s=(0,C.useRef)([...l.ctrls]),d=[],u=eH(e)||0;function c(e,i){for(let n=e;n<i;n++){let e=s.current[n]||(s.current[n]=new tK(null,l.flush)),i=o?o(n,e):t[n];i&&(d[n]=function(e){let t=tG(e);return I.und(t.default)&&(t.default=tr(t)),t}(i))}}(0,C.useMemo)(()=>{O(s.current.slice(e,u),e=>{tp(e,n),e.stop(!0)}),s.current.length=e,c(u,e)},[e]),(0,C.useMemo)(()=>{c(0,Math.min(u,e))},i);let p=s.current.map((e,t)=>tX(e,d[t])),m=(0,C.useContext)(t3),h=eH(m),f=m!==h&&tu(m);eU(()=>{r.current++,l.ctrls=s.current;let{queue:e}=l;e.length&&(l.queue=[],O(e,e=>e())),O(s.current,(e,t)=>{n?.add(e),f&&e.start({default:m});let i=d[t];i&&(tm(e,i.ref),e.ref?e.queue.push(i):e.start(i))})}),eZ(()=>()=>{O(l.ctrls,e=>e.stop(!0))});let v=p.map(e=>({...e}));return n?[v,n]:v}(1,i?e:[e],i?t||[]:t);return i||2==arguments.length?[o,n]:o}var t8=()=>t5(),t9=()=>(0,C.useState)(t8)[0];function t7(e,t,i){let o=I.fun(t)&&t,{reset:n,sort:r,trail:a=0,expires:l=!0,exitBeforeEnter:s=!1,onDestroyed:d,ref:u,config:c}=o?o():t,p=(0,C.useMemo)(()=>o||3==arguments.length?t5():void 0,[]),m=j(e),h=[],f=(0,C.useRef)(null),v=n?null:f.current;eU(()=>{f.current=h}),eZ(()=>(O(h,e=>{p?.add(e.ctrl),e.ctrl.ref=p}),()=>{O(f.current,e=>{e.expired&&clearTimeout(e.expirationId),tp(e.ctrl,p),e.ctrl.stop(!0)})}));let g=function(e,{key:t,keys:i=t},o){if(null===i){let t=new Set;return e.map(e=>{let i=o&&o.find(i=>i.item===e&&"leave"!==i.phase&&!t.has(i));return i?(t.add(i),i.key):ie++})}return I.und(i)?e:I.fun(i)?e.map(i):j(i)}(m,o?o():t,v),y=n&&f.current||[];eU(()=>O(y,({ctrl:e,item:t,key:i})=>{tp(e,p),te(d,t,i)}));let b=[];if(v&&O(v,(e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=b[t]=g.indexOf(e.key))&&(h[t]=e)}),O(m,(e,t)=>{h[t]||(h[t]={key:g[t],item:e,phase:"mount",ctrl:new tK},h[t].ctrl.item=e)}),b.length){let e=-1,{leave:i}=o?o():t;O(b,(t,o)=>{let n=v[o];~t?(e=h.indexOf(n),h[e]={...n,item:m[t]}):i&&h.splice(++e,0,n)})}I.fun(r)&&h.sort((e,t)=>r(e.item,t.item));let A=-a,x=eB(),w=tr(t),_=new Map,S=(0,C.useRef)(new Map),k=(0,C.useRef)(!1);O(h,(e,i)=>{let n,r;let d=e.key,p=e.phase,m=o?o():t,h=te(m.delay||0,d);if("mount"==p)n=m.enter,r="enter";else{let e=0>g.indexOf(d);if("leave"!=p){if(e)n=m.leave,r="leave";else{if(!(n=m.update))return;r="update"}}else{if(e)return;n=m.enter,r="enter"}}if(n=te(n,e.item,i),!(n=I.obj(n)?ts(n):{to:n}).config){let t=c||w.config;n.config=te(t,e.item,i,r)}A+=a;
4let y={...w,delay:h+A,ref:u,immediate:m.immediate,reset:!1,...n};if("enter"==r&&I.und(y.from)){let n=o?o():t,r=I.und(n.initial)||v?n.from:n.initial;y.from=te(r,e.item,i)}let{onResolve:b}=y;y.onResolve=e=>{te(b,e);let t=f.current,i=t.find(e=>e.key===d);if(i){if(e.cancelled&&"update"!=i.phase)return;if(i.ctrl.idle){let e=t.every(e=>e.ctrl.idle);if("leave"==i.phase){let t=te(l,i.item);if(!1!==t){let o=!0===t?0:t;if(i.expired=!0,!e&&o>0){o<=2147483647&&(i.expirationId=setTimeout(x,o));return}}}e&&t.some(e=>e.expired)&&(S.current.delete(i),s&&(k.current=!0),x())}}};let C=tX(e.ctrl,y);"leave"===r&&s?S.current.set(e,{phase:r,springs:C,payload:y}):_.set(e,{phase:r,springs:C,payload:y})});let T=(0,C.useContext)(t3),E=eH(T),P=T!==E&&tu(T);eU(()=>{P&&O(h,e=>{e.ctrl.start({default:T})})},[T]),O(_,(e,t)=>{if(S.current.size){let e=h.findIndex(e=>e.key===t.key);h.splice(e,1)}}),eU(()=>{O(S.current.size?S.current:_,({phase:e,payload:t},i)=>{let{ctrl:o}=i;i.phase=e,p?.add(o),P&&"enter"==e&&o.start({default:T}),t&&(tm(o,t.ref),(o.ref||p)&&!k.current?o.update(t):(o.start(t),k.current&&(k.current=!1)))})},n?void 0:i);let D=e=>C.createElement(C.Fragment,null,h.map((t,i)=>{let{springs:o}=_.get(t)||t.ctrl,n=e({...o},t.item,t,i);return n&&n.type?C.createElement(n.type,{...n.props,key:I.str(t.key)||I.num(t.key)?t.key:t.ctrl.id,ref:n.ref}):n}));return p?[D,p]:D}var ie=1,it=class extends tO{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=ef(...t);let i=this._get();eQ(this,e5(i).create(i))}advance(e){let t=this._get();D(t,this.get())||(eK(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&io(this._active)&&ir(this)}_get(){let e=I.arr(this.source)?this.source.map(eb):j(eb(this.source));return this.calc(...e)}_start(){this.idle&&!io(this._active)&&(this.idle=!1,O(e$(this),e=>{e.done=!1}),T.skipAnimation?(s.batchedUpdates(()=>this.advance()),ir(this)):H.start(this))}_attach(){let e=1;O(j(this.source),t=>{ey(t)&&eS(t,this),tI(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))}),this.priority=e,this._start()}_detach(){O(j(this.source),e=>{ey(e)&&eC(e,this)}),this._active.clear(),ir(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=j(this.source).reduce((e,t)=>Math.max(e,(tI(t)?t.priority:0)+1),0))}};function ii(e){return!1!==e.idle}function io(e){return!e.size||Array.from(e).every(ii)}function ir(e){e.idle||(e.idle=!0,O(e$(e),e=>{e.done=!0}),ex(e,{type:"idle",parent:e}))}T.assign({createStringInterpolator:eM,to:(e,t)=>new it(e,t)}),H.advance;var ia=i(73935),il=/^--/,is={},id={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},iu=(e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1),ic=["Webkit","Ms","Moz","O"];id=Object.keys(id).reduce((e,t)=>(ic.forEach(i=>e[iu(i,t)]=e[t]),e),id);var ip=/^(matrix|translate|scale|rotate|skew)/,im=/^(translate)/,ih=/^(rotate|skew)/,iv=(e,t)=>I.num(e)&&0!==e?e+t:e,ig=(e,t)=>I.arr(e)?e.every(e=>ig(e,t)):I.num(e)?e===t:parseFloat(e)===t,iy=class extends e2{constructor({x:e,y:t,z:i,...o}){let n=[],r=[];(e||t||i)&&(n.push([e||0,t||0,i||0]),r.push(e=>[`translate3d(${e.map(e=>iv(e,"px")).join(",")})`,ig(e,0)])),N(o,(e,t)=>{if("transform"===t)n.push([e||""]),r.push(e=>[e,""===e]);else if(ip.test(t)){if(delete o[t],I.und(e))return;let i=im.test(t)?"px":ih.test(t)?"deg":"";n.push(j(e)),r.push("rotate3d"===t?([e,t,o,n])=>[`rotate3d(${e},${t},${o},${iv(n,i)})`,ig(n,0)]:e=>[`${t}(${e.map(e=>iv(e,i)).join(",")})`,ig(e,t.startsWith("scale")?1:0)])}}),n.length&&(o.transform=new ib(n,r)),super(o)}},ib=class extends ew{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return O(this.inputs,(i,o)=>{let n=eb(i[0]),[r,a]=this.transforms[o](I.arr(n)?n:i.map(eb));e+=" "+r,t=t&&a}),t?"none":e}observerAdded(e){1==e&&O(this.inputs,e=>O(e,e=>ey(e)&&eS(e,this)))}observerRemoved(e){0==e&&O(this.inputs,e=>O(e,e=>ey(e)&&eC(e,this)))}eventObserved(e){"change"==e.type&&(this._value=null),ex(this,e)}};T.assign({batchedUpdates:ia.unstable_batchedUpdates,createStringInterpolator:eM,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,dar
4kgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var iA=((e,{applyAnimatedValues:t=()=>!1,createAnimatedStyle:i=e=>new e2(e),getComponentProps:o=e=>e}={})=>{let n={applyAnimatedValues:t,createAnimatedStyle:i,getComponentProps:o},r=e=>{let t=e7(e)||"Anonymous";return(e=I.str(e)?r[e]||(r[e]=e6(e,n)):e[e9]||(e[e9]=e6(e,n))).displayName=`Animated(${t})`,e};return N(e,(t,i)=>{I.arr(e)&&(i=e7(t)),r[i]=r(t)}),{animated:r}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;let i="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{className:o,style:n,children:r,scrollTop:a,scrollLeft:l,viewBox:s,...d}=t,u=Object.values(d),c=Object.keys(d).map(t=>i||e.hasAttribute(t)?t:is[t]||(is[t]=t.replace(/([A-Z])/g,e=>"-"+e.toLowerCase())));for(let t in void 0!==r&&(e.textContent=r),n)if(n.hasOwnProperty(t)){var p;let i=null==(p=n[t])||"boolean"==typeof p||""===p?"":"number"!=typeof p||
40===p||il.test(t)||id.hasOwnProperty(t)&&id[t]?(""+p).trim():p+"px";il.test(t)?e.style.setProperty(t,i):e.style[t]=i}c.forEach((t,i)=>{e.setAttribute(t,u[i])}),void 0!==o&&(e.className=o),void 0!==a&&(e.scrollTop=a),void 0!==l&&(e.scrollLeft=l),void 0!==s&&e.setAttribute("viewBox",s)},createAnimatedStyle:e=>new iy(e),getComponentProps:({scrollTop:e,scrollLeft:t,...i})=>i}).animated},82729:function(e,t,i){"use strict";function o(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}i.d(t,{_:function(){return o}})},66474:function(e,t,i){"use strict";i.d(t,{j:function(){return r}});var o=i(7506),n=i(24139),r=new class extends o.l{#p;#m;#h;constructor(){super(),this.#h=e=>{if(!n.sk&&window.addEventListener){let t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}}}onSubscribe(){this.#m||this.setEventListener(this.#h)}onUnsubscribe(){this.hasListeners()||(this.#m?.(),this.#m=void 0)}setEventListener(e){this.#h=e,this.#m?.(),this.#m=e(e=>{"boolean"==typeof e?this.setFocused(e):this.onFocus()})}setFocused(e){this.#p!==e&&(this.#p=e,this.onFocus())}onFocus(){let e=this.isFocused();this.listeners.forEach(t=>{t(e)})}isFocused(){return"boolean"==typeof this.#p?this.#p:globalThis.document?.visibilityState!=="hidden"}}},54948:function(e,t,i){"use strict";i.d(t,{Gm:function(){return n},Qy:function(){return l},ZF:function(){return s}});var o=i(24139);function n(e){return{onFetch:(t,i)=>{let n=t.options,l=t.fetchOptions?.meta?.fetchMore?.direction,s=t.state.data?.pages||[],d=t.state.data?.pageParams||[],u={pages:[],pageParams:[]},c=0,p=async()=>{let i=!1,p=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(t.signal.aborted?i=!0:t.signal.addEventListener("abort",()=>{i=!0}),t.signal)})},m=(0,o.cG)(t.options,t.fetchOptions),h=async(e,n,r)=>{if(i)return Promise.reject();if(null==n&&e.pages.length)return Promise.resolve(e);let a=(()=>{let e={client:t.client,queryKey:t.queryKey,pageParam:n,direction:r?"backward":"forward",meta:t.options.meta};return p(e),e})(),l=await m(a),{maxPages:s}=t.options,d=r?o.Ht:o.VX;return{pages:d(e.pages,l,s),pageParams:d(e.pageParams,n,s)}};if(l&&s.length){let e="backward"===l,t={pages:s,pageParams:d},i=(e?a:r)(n,t);u=await h(t,i,e)}else{let t=e??s.length;do{let e=0===c?d[0]??n.initialPageParam:r(n,u);if(c>0&&null==e)break;u=await h(u,e),c++}while(c<t)}return u};t.options.persister?t.fetchFn=()=>t.options.persister?.(p,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},i):t.fetchFn=p}}}function r(e,{pages:t,pageParams:i}){let o=t.length-1;return t.length>0?e.getNextPageParam(t[o],t,i[o],i):void 0}function a(e,{pages:t,pageParams:i}){return t.length>0?e.getPreviousPageParam?.(t[0],t,i[0],i):void 0}function l(e,t){return!!t&&null!=r(e,t)}function s(e,t){return!!t&&!!e.getPreviousPageParam&&null!=a(e,t)}},59289:function(e,t,i){"use strict";i.d(t,{R:function(){return l},m:function(){return a}});var o=i(27037),n=i(48907),r=i(72008),a=class extends n.F{#f;#r;#v;constructor(e){super(),this.mutationId=e.mutationId,this.#r=e.mutationCache,this.#f=[],this.state=e.state||l(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options=e,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){this.#f.includes(e)||(this.#f.push(e),this.clearGcTimeout(),this.#r.notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){this.#f=this.#f.filter(t=>t!==e),this.scheduleGc(),this.#r.notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){this.#f.length||("pending"===this.state.status?this.scheduleGc():this.#r.remove(this))}continue(){return this.#v?.continue()??this.execute(this.state.variables)}async execute(e){let t=()=>{this.#g({type:"continue"})};this.#v=(0,r.Mz)({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(Error("No mutationFn found")),onFail:(e,t)=>{this.#g({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#g({type:"pause"})},onContinue:t,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>this.#r.canRun(this)});let i="pending"===this.state.status,o=!this.#v.canStart();try{if(i)t();else{this.#g({type:"pending",variables:e,isPaused:o}),await this.#r.config.onMutate?.(e,this);let t=await this.options.onMutate?.(e);t!==this.state.context&&this.#g({type:"pending",context:t,variables:e,isPaused:o})}
4let n=await this.#v.start();return await this.#r.config.onSuccess?.(n,e,this.state.context,this),await this.options.onSuccess?.(n,e,this.state.context),await this.#r.config.onSettled?.(n,null,this.state.variables,this.state.context,this),await this.options.onSettled?.(n,null,e,this.state.context),this.#g({type:"success",data:n}),n}catch(t){try{throw await this.#r.config.onError?.(t,e,this.state.context,this),await this.options.onError?.(t,e,this.state.context),await this.#r.config.onSettled?.(void 0,t,this.state.variables,this.state.context,this),await this.options.onSettled?.(void 0,t,e,this.state.context),t}finally{this.#g({type:"error",error:t})}}finally{this.#r.runNext(this)}}#g(e){this.state=(t=>{switch(e.type){case"failed":return{...t,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...t,isPaused:!0};case"continue":return{...t,isPaused:!1};case"pending":return{...t,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:e.isPaused,status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...t,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...t,data:void 0,error:e.error,failureCount:t.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}})(this.state),o.Vr.batch(()=>{this.#f.forEach(t=>{t.onMutationUpdate(e)}),this.#r.notify({mutation:this,type:"updated",action:e})})}};function l(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}},27037:function(e,t,i){"use strict";i.d(t,{Vr:function(){return n}});var o=e=>setTimeout(e,0),n=function(){let e=[],t=0,i=e=>{e()},n=e=>{e()},r=o,a=o=>{t?e.push(o):r(()=>{i(o)})},l=()=>{let t=e;e=[],t.length&&r(()=>{n(()=>{t.forEach(e=>{i(e)})})})};return{batch:e=>{let i;t++;try{i=e()}finally{--t||l()}return i},batchCalls:e=>(...t)=>{a(()=>{e(...t)})},schedule:a,setNotifyFunction:e=>{i=e},setBatchNotifyFunction:e=>{n=e},setScheduler:e=>{r=e}}}()},14304:function(e,t,i){"use strict";i.d(t,{N:function(){return r}});var o=i(7506),n=i(24139),r=new class extends o.l{#y=!0;#m;#h;constructor(){super(),this.#h=e=>{if(!n.sk&&window.addEventListener){let t=()=>e(!0),i=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",i,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",i)}}}}onSubscribe(){this.#m||this.setEventListener(this.#h)}onUnsubscribe(){this.hasListeners()||(this.#m?.(),this.#m=void 0)}setEventListener(e){this.#h=e,this.#m?.(),this.#m=e(this.setOnline.bind(this))}setOnline(e){this.#y!==e&&(this.#y=e,this.listeners.forEach(t=>{t(e)}))}isOnline(){return this.#y}}},56888:function(e,t,i){"use strict";i.d(t,{A:function(){return l},z:function(){return s}});var o=i(24139),n=i(27037),r=i(72008),a=i(48907),l=class extends a.F{#b;#A;#x;#w;#v;#a;#_;constructor(e){super(),this.#_=!1,this.#a=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.#w=e.client,this.#x=this.#w.getQueryCache(),this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.#b=function(e){let t="function"==typeof e.initialData?e.initialData():e.initialData,i=void 0!==t,o=i?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:i?o??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:i?"success":"pending",fetchStatus:"idle"}}(this.options),this.state=e.state??this.#b,this.scheduleGc()}get meta(){return this.options.meta}get promise(){return this.#v?.promise}setOptions(e){this.options={...this.#a,...e},this.updateGcTime(this.options.gcTime)}optionalRemove(){this.observers.length||"idle"!==this.state.fetchStatus||this.#x.remove(this)}setData(e,t){let i=(0,o.oE)(this.state.data,e,this.options);return this.#g({data:i,type:"success",dataUpdatedAt:t?.updatedAt,manual:t?.manual}),i}setState(e,t){this.#g({type:"setState",state:e,setStateOptions:t})}cancel(e){let t=this.#v?.promise;return this.#v?.cancel(e),t?t.then(o.ZT).catch(o.ZT):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(this.#b)}isActive(){return this.observers.some(e=>!1!==(0,o.Nc)(e.options.enabled,this))}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===o.CN||this.state.dataUpdateCount+this.state.errorUpdate
4Count===0}isStatic(){return this.getObserversCount()>0&&this.observers.some(e=>"static"===(0,o.KC)(e.options.staleTime,this))}isStale(){return this.getObserversCount()>0?this.observers.some(e=>e.getCurrentResult().isStale):void 0===this.state.data||this.state.isInvalidated}isStaleByTime(e=0){return void 0===this.state.data||"static"!==e&&(!!this.state.isInvalidated||!(0,o.Kp)(this.state.dataUpdatedAt,e))}onFocus(){let e=this.observers.find(e=>e.shouldFetchOnWindowFocus());e?.refetch({cancelRefetch:!1}),this.#v?.continue()}onOnline(){let e=this.observers.find(e=>e.shouldFetchOnReconnect());e?.refetch({cancelRefetch:!1}),this.#v?.continue()}addObserver(e){this.observers.includes(e)||(this.observers.push(e),this.clearGcTimeout(),this.#x.notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){this.observers.includes(e)&&(this.observers=this.observers.filter(t=>t!==e),this.observers.length||(this.#v&&(this.#_?this.#v.cancel({revert:!0}):this.#v.cancelRetry()),this.scheduleGc()),this.#x.notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||this.#g({type:"invalidate"})}fetch(e,t){if("idle"!==this.state.fetchStatus){if(void 0!==this.state.data&&t?.cancelRefetch)this.cancel({silent:!0});else if(this.#v)return this.#v.continueRetry(),this.#v.promise}if(e&&this.setOptions(e),!this.options.queryFn){let e=this.observers.find(e=>e.options.queryFn);e&&this.setOptions(e.options)}let i=new AbortController,n=e=>{Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(this.#_=!0,i.signal)})},a=()=>{let e=(0,o.cG)(this.options,t),i=(()=>{let e={client:this.#w,queryKey:this.queryKey,meta:this.meta};return n(e),e})();return(this.#_=!1,this.options.persister)?this.options.persister(e,i,this):e(i)},l=(()=>{let e={fetchOptions:t,options:this.options,queryKey:this.queryKey,client:this.#w,state:this.state,fetchFn:a};return n(e),e})();this.options.behavior?.onFetch(l,this),this.#A=this.state,("idle"===this.state.fetchStatus||this.state.fetchMeta!==l.fetchOptions?.meta)&&this.#g({type:"fetch",meta:l.fetchOptions?.meta});let s=e=>{(0,r.DV)(e)&&e.silent||this.#g({type:"error",error:e}),(0,r.DV)(e)||(this.#x.config.onError?.(e,this),this.#x.config.onSettled?.(this.state.data,e,this)),this.scheduleGc()};return this.#v=(0,r.Mz)({initialPromise:t?.initialPromise,fn:l.fetchFn,abort:i.abort.bind(i),onSuccess:e=>{if(void 0===e){s(Error(`${this.queryHash} data is undefined`));return}try{this.setData(e)}catch(e){s(e);return}this.#x.config.onSuccess?.(e,this),this.#x.config.onSettled?.(e,this.state.error,this),this.scheduleGc()},onError:s,onFail:(e,t)=>{this.#g({type:"failed",failureCount:e,error:t})},onPause:()=>{this.#g({type:"pause"})},onContinue:()=>{this.#g({type:"continue"})},retry:l.options.retry,retryDelay:l.options.retryDelay,networkMode:l.options.networkMode,canRun:()=>!0}),this.#v.start()}#g(e){this.state=(t=>{switch(e.type){case"failed":return{...t,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...t,fetchStatus:"paused"};case"continue":return{...t,fetchStatus:"fetching"};case"fetch":return{...t,...s(t.data,this.options),fetchMeta:e.meta??null};case"success":return this.#A=void 0,{...t,data:e.data,dataUpdateCount:t.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":let i=e.error;if((0,r.DV)(i)&&i.revert&&this.#A)return{...this.#A,fetchStatus:"idle"};return{...t,error:i,errorUpdateCount:t.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:t.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error"};case"invalidate":return{...t,isInvalidated:!0};case"setState":return{...t,...e.state}}})(this.state),n.Vr.batch(()=>{this.observers.forEach(e=>{e.onQueryUpdate()}),this.#x.notify({query:this,type:"updated",action:e})})}};function s(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:(0,r.Kw)(t.networkMode)?"fetching":"paused",...void 0===e&&{error:null,status:"pending"}}}},72536:function(e,t,i){"use strict";i.d(t,{z:function(){return d}});var o=i(66474),n=i(27037),r=i(56888),a=i(7506),l=i(13820),s=i(24139),d=class extends a.l{constructor(e,t){super(),this.options=t,this.#w=e,this.#S=null,this.#C=(0,l.O)(),this.options.experimental_prefetchInRender||this.#C.reject(Error("experimental_prefetchInRender feature flag is not enabled")),this.bindMethods(),this.setOptions(t)}#w;#k=void 0;#T=void 0;#E=void 0;#P;#I;#C;#S;#D;#O;#N;#j;#M;#R;#z=new Set;bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){1===this.listeners.size&&(this.#k.addObserver(this),u(this.#k,this.options)?this.#L():this.updateResult(),this.#V())}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return c(this.#k,this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return c(this.#k,this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,this.#F(),this.#U(),this.#k.removeObserver(this)}setOptions(e){let t=this.options,i=this.#k;if(this.options=this.#w.defaultQueryOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled&&"function"!=typeof this.options.enabled&&"boolean"!=typeof(0,s.Nc)(this.options.enabled,this.#k))throw Error("Expected enabled to be a boolean or a callback that returns a boolean");this.#G(),this.#k.setOptions(this.options),t._defaulted&&!(0,s.VS)(this.options,t)&&this.#w.getQueryCache().notify({type:"observerOptionsUpdated",query:this.#k,observer:this});let o=this.hasListeners();o&&p(this.#k,i,this.options,t)&&this.#L(),this.updateResult(),o&&(this.#k!==i||(0,s.Nc)(this.options.enabled,this.#k)!==(0,s.Nc)(t.enabled,this.#k)||
4(0,s.KC)(this.options.staleTime,this.#k)!==(0,s.KC)(t.staleTime,this.#k))&&this.#B();let n=this.#Z();o&&(this.#k!==i||(0,s.Nc)(this.options.enabled,this.#k)!==(0,s.Nc)(t.enabled,this.#k)||n!==this.#R)&&this.#q(n)}getOptimisticResult(e){let t=this.#w.getQueryCache().build(this.#w,e),i=this.createResult(t,e);return(0,s.VS)(this.getCurrentResult(),i)||(this.#E=i,this.#I=this.options,this.#P=this.#k.state),i}getCurrentResult(){return this.#E}trackResult(e,t){return new Proxy(e,{get:(e,i)=>(this.trackProp(i),t?.(i),Reflect.get(e,i))})}trackProp(e){this.#z.add(e)}getCurrentQuery(){return this.#k}refetch({...e}={}){return this.fetch({...e})}fetchOptimistic(e){let t=this.#w.defaultQueryOptions(e),i=this.#w.getQueryCache().build(this.#w,t);return i.fetch().then(()=>this.createResult(i,t))}fetch(e){return this.#L({...e,cancelRefetch:e.cancelRefetch??!0}).then(()=>(this.updateResult(),this.#E))}#L(e){this.#G();let t=this.#k.fetch(this.options,e);return e?.throwOnError||(t=t.catch(s.ZT)),t}#B(){this.#F();let e=(0,s.KC)(this.options.staleTime,this.#k);if(s.sk||this.#E.isStale||!(0,s.PN)(e))return;let t=(0,s.Kp)(this.#E.dataUpdatedAt,e);this.#j=setTimeout(()=>{this.#E.isStale||this.updateResult()},t+1)}#Z(){return("function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.#k):this.options.refetchInterval)??!1}#q(e){this.#U(),this.#R=e,!s.sk&&!1!==(0,s.Nc)(this.options.enabled,this.#k)&&(0,s.PN)(this.#R)&&0!==this.#R&&(this.#M=setInterval(()=>{(this.options.refetchIntervalInBackground||o.j.isFocused())&&this.#L()},this.#R))}#V(){this.#B(),this.#q(this.#Z())}#F(){this.#j&&(clearTimeout(this.#j),this.#j=void 0)}#U(){this.#M&&(clearInterval(this.#M),this.#M=void 0)}createResult(e,t){let i;let o=this.#k,n=this.options,a=this.#E,d=this.#P,c=this.#I,h=e!==o?e.state:this.#T,{state:f}=e,v={...f},g=!1;if(t._optimisticResults){let i=this.hasListeners(),a=!i&&u(e,t),l=i&&p(e,o,t,n);(a||l)&&(v={...v,...(0,r.z)(f.data,e.options)}),"isRestoring"===t._optimisticResults&&(v.fetchStatus="idle")}let{error:y,errorUpdatedAt:b,status:A}=v;i=v.data;let x=!1;if(void 0!==t.placeholderData&&void 0===i&&"pending"===A){let e;a?.isPlaceholderData&&t.placeholderData===c?.placeholderData?(e=a.data,x=!0):e="function"==typeof t.placeholderData?t.placeholderData(this.#N?.state.data,this.#N):t.placeholderData,void 0!==e&&(A="success",i=(0,s.oE)(a?.data,e,t),g=!0)}if(t.select&&void 0!==i&&!x){if(a&&i===d?.data&&t.select===this.#D)i=this.#O;else try{this.#D=t.select,i=t.select(i),i=(0,s.oE)(a?.data,i,t),this.#O=i,this.#S=null}catch(e){this.#S=e}}this.#S&&(y=this.#S,i=this.#O,b=Date.now(),A="error");let w="fetching"===v.fetchStatus,_="pending"===A,S="error"===A,C=_&&w,k=void 0!==i,T={status:A,fetchStatus:v.fetchStatus,isPending:_,isSuccess:"success"===A,isError:S,isInitialLoading:C,isLoading:C,data:i,dataUpdatedAt:v.dataUpdatedAt,error:y,errorUpdatedAt:b,failureCount:v.fetchFailureCount,failureReason:v.fetchFailureReason,errorUpdateCount:v.errorUpdateCount,isFetched:v.dataUpdateCount>0||v.errorUpdateCount>0,isFetchedAfterMount:v.dataUpdateCount>h.dataUpdateCount||v.errorUpdateCount>h.errorUpdateCount,isFetching:w,isRefetching:w&&!_,isLoadingError:S&&!k,isPaused:"paused"===v.fetchStatus,isPlaceholderData:g,isRefetchError:S&&k,isStale:m(e,t),refetch:this.refetch,promise:this.#C};if(this.options.experimental_prefetchInRender){let t=e=>{"error"===T.status?e.reject(T.error):void 0!==T.data&&e.resolve(T.data)},i=()=>{t(this.#C=T.promise=(0,l.O)())},n=this.#C;switch(n.status){case"pending":e.queryHash===o.queryHash&&t(n);break;case"fulfilled":("error"===T.status||T.data!==n.value)&&i();break;case"rejected":("error"!==T.status||T.error!==n.reason)&&i()}}return T}updateResult(){let e=this.#E,t=this.createResult(this.#k,this.options);this.#P=this.#k.state,this.#I=this.options,void 0!==this.#P.data&&(this.#N=this.#k),(0,s.VS)(t,e)||(this.#E=t,this.#H({listeners:(()=>{if(!e)return!0;let{notifyOnChangeProps:t}=this.options,i="function"==typeof t?t():t;if("all"===i||!i&&!this.#z.size)return!0;let o=new Set(i??this.#z);return this.options.throwOnError&&o.add("error"),Object.keys(this.#E).some(t=>this.#E[t]!==e[t]&&o.has(t))})()}))}#G(){let e=this.#w.getQueryCache().build(this.#w,this.options);if(e===this.#k)return;let t=this.#k;this.#k=e,this.#T=e.state,this.hasListeners()&&(t?.removeObserver(this),e.addObserver(this))}onQueryUpdate(){this.updateResult(),this.hasListeners()&&this.#V()}#H(e){n.Vr.batch(()=>
4{e.listeners&&this.listeners.forEach(e=>{e(this.#E)}),this.#w.getQueryCache().notify({query:this.#k,type:"observerResultsUpdated"})})}};function u(e,t){return!1!==(0,s.Nc)(t.enabled,e)&&void 0===e.state.data&&!("error"===e.state.status&&!1===t.retryOnMount)||void 0!==e.state.data&&c(e,t,t.refetchOnMount)}function c(e,t,i){if(!1!==(0,s.Nc)(t.enabled,e)&&"static"!==(0,s.KC)(t.staleTime,e)){let o="function"==typeof i?i(e):i;return"always"===o||!1!==o&&m(e,t)}return!1}function p(e,t,i,o){return(e!==t||!1===(0,s.Nc)(o.enabled,e))&&(!i.suspense||"error"!==e.state.status)&&m(e,i)}function m(e,t){return!1!==(0,s.Nc)(t.enabled,e)&&e.isStaleByTime((0,s.KC)(t.staleTime,e))}},48907:function(e,t,i){"use strict";i.d(t,{F:function(){return n}});var o=i(24139),n=class{#W;destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),(0,o.PN)(this.gcTime)&&(this.#W=setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(o.sk?1/0:3e5))}clearGcTimeout(){this.#W&&(clearTimeout(this.#W),this.#W=void 0)}}},72008:function(e,t,i){"use strict";i.d(t,{DV:function(){return u},Kw:function(){return s},Mz:function(){return c}});var o=i(66474),n=i(14304),r=i(13820),a=i(24139);function l(e){return Math.min(1e3*2**e,3e4)}function s(e){return(e??"online")!=="online"||n.N.isOnline()}var d=class extends Error{constructor(e){super("CancelledError"),this.revert=e?.revert,this.silent=e?.silent}};function u(e){return e instanceof d}function c(e){let t,i=!1,u=0,c=!1,p=(0,r.O)(),m=()=>o.j.isFocused()&&("always"===e.networkMode||n.N.isOnline())&&e.canRun(),h=()=>s(e.networkMode)&&e.canRun(),f=i=>{c||(c=!0,e.onSuccess?.(i),t?.(),p.resolve(i))},v=i=>{c||(c=!0,e.onError?.(i),t?.(),p.reject(i))},g=()=>new Promise(i=>{t=e=>{(c||m())&&i(e)},e.onPause?.()}).then(()=>{t=void 0,c||e.onContinue?.()}),y=()=>{let t;if(c)return;let o=0===u?e.initialPromise:void 0;try{t=o??e.fn()}catch(e){t=Promise.reject(e)}Promise.resolve(t).then(f).catch(t=>{if(c)return;let o=e.retry??(a.sk?0:3),n=e.retryDelay??l,r="function"==typeof n?n(u,t):n,s=!0===o||"number"==typeof o&&u<o||"function"==typeof o&&o(u,t);if(i||!s){v(t);return}u++,e.onFail?.(u,t),(0,a._v)(r).then(()=>m()?void 0:g()).then(()=>{i?v(t):y()})})};return{promise:p,cancel:t=>{c||(v(new d(t)),e.abort?.())},continue:()=>(t?.(),p),cancelRetry:()=>{i=!0},continueRetry:()=>{i=!1},canStart:h,start:()=>(h()?y():g().then(y),p)}}},7506:function(e,t,i){"use strict";i.d(t,{l:function(){return o}});var o=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}}},13820:function(e,t,i){"use strict";i.d(t,{O:function(){return n},g:function(){return r}});var o=i(24139);function n(){let e,t;let i=new Promise((i,o)=>{e=i,t=o});function o(e){Object.assign(i,e),delete i.resolve,delete i.reject}return i.status="pending",i.catch(()=>{}),i.resolve=t=>{o({status:"fulfilled",value:t}),e(t)},i.reject=e=>{o({status:"rejected",reason:e}),t(e)},i}function r(e){let t;if(e.then(e=>(t=e,e),o.ZT)?.catch(o.ZT),void 0!==t)return{data:t}}},24139:function(e,t,i){"use strict";i.d(t,{CN:function(){return _},Ht:function(){return w},KC:function(){return s},Kp:function(){return l},L3:function(){return C},Nc:function(){return d},PN:function(){return a},Rm:function(){return p},SE:function(){return r},VS:function(){return f},VX:function(){return x},X7:function(){return c},Ym:function(){return m},ZT:function(){return n},_v:function(){return b},_x:function(){return u},cG:function(){return S},oE:function(){return A},sk:function(){return o},to:function(){return h}});var o="undefined"==typeof window||"Deno"in globalThis;function n(){}function r(e,t){return"function"==typeof e?e(t):e}function a(e){return"number"==typeof e&&e>=0&&e!==1/0}function l(e,t){return Math.max(e+(t||0)-Date.now(),0)}function s(e,t){return"function"==typeof e?e(t):e}function d(e,t){return"function"==typeof e?e(t):e}function u(e,t){let{type:i="all",exact:o,fetchStatus:n,predicate:r,queryKey:a,stale:l}=e;
4if(a){if(o){if(t.queryHash!==p(a,t.options))return!1}else if(!h(t.queryKey,a))return!1}if("all"!==i){let e=t.isActive();if("active"===i&&!e||"inactive"===i&&e)return!1}return("boolean"!=typeof l||t.isStale()===l)&&(!n||n===t.state.fetchStatus)&&(!r||!!r(t))}function c(e,t){let{exact:i,status:o,predicate:n,mutationKey:r}=e;if(r){if(!t.options.mutationKey)return!1;if(i){if(m(t.options.mutationKey)!==m(r))return!1}else if(!h(t.options.mutationKey,r))return!1}return(!o||t.state.status===o)&&(!n||!!n(t))}function p(e,t){return(t?.queryKeyHashFn||m)(e)}function m(e){return JSON.stringify(e,(e,t)=>g(t)?Object.keys(t).sort().reduce((e,i)=>(e[i]=t[i],e),{}):t)}function h(e,t){return e===t||typeof e==typeof t&&!!e&&!!t&&"object"==typeof e&&"object"==typeof t&&Object.keys(t).every(i=>h(e[i],t[i]))}function f(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(let i in e)if(e[i]!==t[i])return!1;return!0}function v(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function g(e){if(!y(e))return!1;let t=e.constructor;if(void 0===t)return!0;let i=t.prototype;return!!(y(i)&&i.hasOwnProperty("isPrototypeOf"))&&Object.getPrototypeOf(e)===Object.prototype}function y(e){return"[object Object]"===Object.prototype.toString.call(e)}function b(e){return new Promise(t=>{setTimeout(t,e)})}function A(e,t,i){return"function"==typeof i.structuralSharing?i.structuralSharing(e,t):!1!==i.structuralSharing?function e(t,i){if(t===i)return t;let o=v(t)&&v(i);if(o||g(t)&&g(i)){let n=o?t:Object.keys(t),r=n.length,a=o?i:Object.keys(i),l=a.length,s=o?[]:{},d=new Set(n),u=0;for(let n=0;n<l;n++){let r=o?n:a[n];(!o&&d.has(r)||o)&&void 0===t[r]&&void 0===i[r]?(s[r]=void 0,u++):(s[r]=e(t[r],i[r]),s[r]===t[r]&&void 0!==t[r]&&u++)}return r===l&&u===r?t:s}return i}(e,t):t}function x(e,t,i=0){let o=[...e,t];return i&&o.length>i?o.slice(1):o}function w(e,t,i=0){let o=[t,...e];return i&&o.length>i?o.slice(0,-1):o}var _=Symbol();function S(e,t){return!e.queryFn&&t?.initialPromise?()=>t.initialPromise:e.queryFn&&e.queryFn!==_?e.queryFn:()=>Promise.reject(Error(`Missing queryFn: '${e.queryHash}'`))}function C(e,t){return"function"==typeof e?e(...t):!!e}},30202:function(e,t,i){"use strict";i.d(t,{NL:function(){return a},aH:function(){return l}});var o=i(67294),n=i(85893),r=o.createContext(void 0),a=e=>{let t=o.useContext(r);if(e)return e;if(!t)throw Error("No QueryClient set, use QueryClientProvider to set one");return t},l=({client:e,children:t})=>(o.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),(0,n.jsx)(r.Provider,{value:e,children:t}))},7159:function(e,t,i){"use strict";let o;i.d(t,{r:function(){return b}});var n=i(67294),r=i(27037),a=i(24139),l=i(30202);i(85893);var s=n.createContext((o=!1,{clearReset:()=>{o=!1},reset:()=>{o=!0},isReset:()=>o})),d=()=>n.useContext(s),u=(e,t)=>{(e.suspense||e.throwOnError||e.experimental_prefetchInRender)&&!t.isReset()&&(e.retryOnMount=!1)},c=e=>{n.useEffect(()=>{e.clearReset()},[e])},p=({result:e,errorResetBoundary:t,throwOnError:i,query:o,suspense:n})=>e.isError&&!t.isReset()&&!e.isFetching&&o&&(n&&void 0===e.data||(0,a.L3)(i,[e.error,o])),m=n.createContext(!1),h=()=>n.useContext(m);m.Provider;var f=e=>{if(e.suspense){let t=e=>"static"===e?e:Math.max(e??1e3,1e3),i=e.staleTime;e.staleTime="function"==typeof i?(...e)=>t(i(...e)):t(i),"number"==typeof e.gcTime&&(e.gcTime=Math.max(e.gcTime,1e3))}},v=(e,t)=>e.isLoading&&e.isFetching&&!t,g=(e,t)=>e?.suspense&&t.isPending,y=(e,t,i)=>t.fetchOptimistic(e).catch(()=>{i.clearReset()});function b(e,t,i){let o=h(),s=d(),m=(0,l.NL)(i),b=m.defaultQueryOptions(e);m.getDefaultOptions().queries?._experimental_beforeQuery?.(b),b._optimisticResults=o?"isRestoring":"optimistic",f(b),u(b,s),c(s);let A=!m.getQueryCache().get(b.queryHash),[x]=n.useState(()=>new t(m,b)),w=x.getOptimisticResult(b),_=!o&&!1!==e.subscribed;if(n.useSyncExternalStore(n.useCallback(e=>{let t=_?x.subscribe(r.Vr.batchCalls(e)):a.ZT;return x.updateResult(),t},[x,_]),()=>x.getCurrentResult(),()=>x.getCurrentResult()),n.useEffect(()=>{x.setOptions(b)},[b,x]),g(b,w))throw y(b,x,s);if(p({result:w,errorResetBoundary:s,throwOnError:b.throwOnError,query:m.getQueryCache().get(b.queryHash),suspense:b.suspense}))throw w.error;if(m.getDefaultOptions().queries?._experimental_afterQuery?.(b,w),b.experimental_prefetchInRender&&!a.sk&&v(w,o)){let e=A?y(b,x,s):m.getQueryCache().get(b.queryHash)?.promise;e?.catch(a.ZT).finally(()=>{x.updateResult()})}return b.notifyOnChangeProps?w:x.trackResult(w)}},29726:function(e,t,i){"use strict";i.d(t,{N:function(){return l}});var o=i(72536),n=i(54948),r=class extends o.z{constructor(e,t){super(e,t)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){super.setOptions({...e,behavior:(0,n.Gm)()})}getOptimisticResult(e){return e.behavior=(0,n.Gm)(),super.getOptimisticResult(e)}
4fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){let{state:i}=e,o=super.createResult(e,t),{isFetching:r,isRefetching:a,isError:l,isRefetchError:s}=o,d=i.fetchMeta?.fetchMore?.direction,u=l&&"forward"===d,c=r&&"forward"===d,p=l&&"backward"===d,m=r&&"backward"===d;return{...o,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:(0,n.Qy)(t,i.data),hasPreviousPage:(0,n.ZF)(t,i.data),isFetchNextPageError:u,isFetchingNextPage:c,isFetchPreviousPageError:p,isFetchingPreviousPage:m,isRefetchError:s&&!u&&!p,isRefetching:a&&!c&&!m}}},a=i(7159);function l(e,t){return(0,a.r)(e,r,t)}},98029:function(e,t,i){"use strict";i.d(t,{D:function(){return u}});var o=i(67294),n=i(59289),r=i(27037),a=i(7506),l=i(24139),s=class extends a.l{#w;#E=void 0;#Y;#K;constructor(e,t){super(),this.#w=e,this.setOptions(t),this.bindMethods(),this.#Q()}bindMethods(){this.mutate=this.mutate.bind(this),this.reset=this.reset.bind(this)}setOptions(e){let t=this.options;this.options=this.#w.defaultMutationOptions(e),(0,l.VS)(this.options,t)||this.#w.getMutationCache().notify({type:"observerOptionsUpdated",mutation:this.#Y,observer:this}),t?.mutationKey&&this.options.mutationKey&&(0,l.Ym)(t.mutationKey)!==(0,l.Ym)(this.options.mutationKey)?this.reset():this.#Y?.state.status==="pending"&&this.#Y.setOptions(this.options)}onUnsubscribe(){this.hasListeners()||this.#Y?.removeObserver(this)}onMutationUpdate(e){this.#Q(),this.#H(e)}getCurrentResult(){return this.#E}reset(){this.#Y?.removeObserver(this),this.#Y=void 0,this.#Q(),this.#H()}mutate(e,t){return this.#K=t,this.#Y?.removeObserver(this),this.#Y=this.#w.getMutationCache().build(this.#w,this.options),this.#Y.addObserver(this),this.#Y.execute(e)}#Q(){let e=this.#Y?.state??(0,n.R)();this.#E={...e,isPending:"pending"===e.status,isSuccess:"success"===e.status,isError:"error"===e.status,isIdle:"idle"===e.status,mutate:this.mutate,reset:this.reset}}#H(e){r.Vr.batch(()=>{if(this.#K&&this.hasListeners()){let t=this.#E.variables,i=this.#E.context;e?.type==="success"?(this.#K.onSuccess?.(e.data,t,i),this.#K.onSettled?.(e.data,null,t,i)):e?.type==="error"&&(this.#K.onError?.(e.error,t,i),this.#K.onSettled?.(void 0,e.error,t,i))}this.listeners.forEach(e=>{e(this.#E)})})}},d=i(30202);function u(e,t){let i=(0,d.NL)(t),[n]=o.useState(()=>new s(i,e));o.useEffect(()=>{n.setOptions(e)},[n,e]);let a=o.useSyncExternalStore(o.useCallback(e=>n.subscribe(r.Vr.batchCalls(e)),[n]),()=>n.getCurrentResult(),()=>n.getCurrentResult()),u=o.useCallback((e,t)=>{n.mutate(e,t).catch(l.ZT)},[n]);if(a.error&&(0,l.L3)(n.options.throwOnError,[a.error]))throw a.error;return{...a,mutate:u,mutateAsync:a.mutate}}},78551:function(e,t,i){"use strict";i.d(t,{a:function(){return r}});var o=i(72536),n=i(7159);function r(e,t){return(0,n.r)(e,o.z,t)}},87066:function(e,t,i){"use strict";let o,n,r,a,l;i.d(t,{Z:function(){return tf}});var s,d,u,c,p,m={};function h(e,t){return function(){return e.apply(t,arguments)}}i.r(m),i.d(m,{hasBrowserEnv:function(){return ey},hasStandardBrowserEnv:function(){return eA},hasStandardBrowserWebWorkerEnv:function(){return ex},navigator:function(){return eb},origin:function(){return ew}});var f=i(83454);let{toString:v}=Object.prototype,{getPrototypeOf:g}=Object,{iterator:y,toStringTag:b}=Symbol,A=(o=Object.create(null),e=>{let t=v.call(e);return o[t]||(o[t]=t.slice(8,-1).toLowerCase())}),x=e=>(e=e.toLowerCase(),t=>A(t)===e),w=e=>t=>typeof t===e,{isArray:_}=Array,S=w("undefined"),C=x("ArrayBuffer"),k=w("string"),T=w("function"),E=w("number"),P=e=>null!==e&&"object"==typeof e,I=e=>{if("object"!==A(e))return!1;let t=g(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(b in e)&&!(y in e)},D=x("Date"),O=x("File"),N=x("Blob"),j=x("FileList"),M=x("URLSearchParams"),[R,z,L,V]=["ReadableStream","Request","Response","Headers"].map(x);function F(e,t,{allOwnKeys:i=!1}={}){let o,n;if(null!=e){if("object"!=typeof e&&(e=[e]),_(e))for(o=0,n=e.length;o<n;o++)t.call(null,e[o],o,e);else{let n;let r=i?Object.getOwnPropertyNames(e):Object.keys(e),a=r.length;for(o=0;o<a;o++)n=r[o],t.call(null,e[n],n,e)}}}function U(e,t){let i;t=t.toLowerCase();let o=Object.keys(e),n=o.length;for(;n-- >0;)if(t===(i=o[n]).toLowerCase())return i;return null}let G="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,B=e=>!S(e)&&e!==G,Z=(n="undefined"!=typeof Uint8Array&&g(Uint8Array),e=>n&&e instanceof n),q=x("HTMLFormElement"),H=(({hasOwnProperty:e})=>(t,i)=>e.call(t,i))(Object.prototype),W=x("RegExp"),Y=(e,t)=>
4{let i=Object.getOwnPropertyDescriptors(e),o={};F(i,(i,n)=>{let r;!1!==(r=t(i,n,e))&&(o[n]=r||i)}),Object.defineProperties(e,o)},K=x("AsyncFunction"),Q=(s="function"==typeof setImmediate,d=T(G.postMessage),s?setImmediate:d?(u=`axios@${Math.random()}`,c=[],G.addEventListener("message",({source:e,data:t})=>{e===G&&t===u&&c.length&&c.shift()()},!1),e=>{c.push(e),G.postMessage(u,"*")}):e=>setTimeout(e)),$="undefined"!=typeof queueMicrotask?queueMicrotask.bind(G):void 0!==f&&f.nextTick||Q;var X={isArray:_,isArrayBuffer:C,isBuffer:function(e){return null!==e&&!S(e)&&null!==e.constructor&&!S(e.constructor)&&T(e.constructor.isBuffer)&&e.constructor.isBuffer(e)},isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||T(e.append)&&("formdata"===(t=A(e))||"object"===t&&T(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&C(e.buffer)},isString:k,isNumber:E,isBoolean:e=>!0===e||!1===e,isObject:P,isPlainObject:I,isReadableStream:R,isRequest:z,isResponse:L,isHeaders:V,isUndefined:S,isDate:D,isFile:O,isBlob:N,isRegExp:W,isFunction:T,isStream:e=>P(e)&&T(e.pipe),isURLSearchParams:M,isTypedArray:Z,isFileList:j,forEach:F,merge:function e(){let{caseless:t}=B(this)&&this||{},i={},o=(o,n)=>{let r=t&&U(i,n)||n;I(i[r])&&I(o)?i[r]=e(i[r],o):I(o)?i[r]=e({},o):_(o)?i[r]=o.slice():i[r]=o};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&F(arguments[e],o);return i},extend:(e,t,i,{allOwnKeys:o}={})=>(F(t,(t,o)=>{i&&T(t)?e[o]=h(t,i):e[o]=t},{allOwnKeys:o}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,i,o)=>{e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),i&&Object.assign(e.prototype,i)},toFlatObject:(e,t,i,o)=>{let n,r,a;let l={};if(t=t||{},null==e)return t;do{for(r=(n=Object.getOwnPropertyNames(e)).length;r-- >0;)a=n[r],(!o||o(a,e,t))&&!l[a]&&(t[a]=e[a],l[a]=!0);e=!1!==i&&g(e)}while(e&&(!i||i(e,t))&&e!==Object.prototype);return t},kindOf:A,kindOfTest:x,endsWith:(e,t,i)=>{e=String(e),(void 0===i||i>e.length)&&(i=e.length),i-=t.length;let o=e.indexOf(t,i);return -1!==o&&o===i},toArray:e=>{if(!e)return null;if(_(e))return e;let t=e.length;if(!E(t))return null;let i=Array(t);for(;t-- >0;)i[t]=e[t];return i},forEachEntry:(e,t)=>{let i;let o=(e&&e[y]).call(e);for(;(i=o.next())&&!i.done;){let o=i.value;t.call(e,o[0],o[1])}},matchAll:(e,t)=>{let i;let o=[];for(;null!==(i=e.exec(t));)o.push(i);return o},isHTMLForm:q,hasOwnProperty:H,hasOwnProp:H,reduceDescriptors:Y,freezeMethods:e=>{Y(e,(t,i)=>{if(T(e)&&-1!==["arguments","caller","callee"].indexOf(i))return!1;if(T(e[i])){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+i+"'")})}})},toObjectSet:(e,t)=>{let i={};return(e=>{e.forEach(e=>{i[e]=!0})})(_(e)?e:String(e).split(t)),i},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,i){return t.toUpperCase()+i}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:U,global:G,isContextDefined:B,isSpecCompliantForm:function(e){return!!(e&&T(e.append)&&"FormData"===e[b]&&e[y])},toJSONObject:e=>{let t=Array(10),i=(e,o)=>{if(P(e)){if(t.indexOf(e)>=0)return;if(!("toJSON"in e)){t[o]=e;let n=_(e)?[]:{};return F(e,(e,t)=>{let r=i(e,o+1);S(r)||(n[t]=r)}),t[o]=void 0,n}}return e};return i(e,0)},isAsyncFn:K,isThenable:e=>e&&(P(e)||T(e))&&T(e.then)&&T(e.catch),setImmediate:Q,asap:$,isIterable:e=>null!=e&&T(e[y])};function J(e,t,i,o,n){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),i&&(this.config=i),o&&(this.request=o),n&&(this.response=n,this.status=n.status?n.status:null)}X.inherits(J,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:X.toJSONObject(this.config),code:this.code,status:this.status}}});let ee=J.prototype,et={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","E
4RR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{et[e]={value:e}}),Object.defineProperties(J,et),Object.defineProperty(ee,"isAxiosError",{value:!0}),J.from=(e,t,i,o,n,r)=>{let a=Object.create(ee);return X.toFlatObject(e,a,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e),J.call(a,e.message,t,i,o,n),a.cause=e,a.name=e.name,r&&Object.assign(a,r),a};var ei=i(21876).Buffer;function eo(e){return X.isPlainObject(e)||X.isArray(e)}function en(e){return X.endsWith(e,"[]")?e.slice(0,-2):e}function er(e,t,i){return e?e.concat(t).map(function(e,t){return e=en(e),!i&&t?"["+e+"]":e}).join(i?".":""):t}let ea=X.toFlatObject(X,{},null,function(e){return/^is[A-Z]/.test(e)});var el=function(e,t,i){if(!X.isObject(e))throw TypeError("target must be an object");t=t||new FormData;let o=(i=X.toFlatObject(i,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!X.isUndefined(t[e])})).metaTokens,n=i.visitor||d,r=i.dots,a=i.indexes,l=(i.Blob||"undefined"!=typeof Blob&&Blob)&&X.isSpecCompliantForm(t);if(!X.isFunction(n))throw TypeError("visitor must be a function");function s(e){if(null===e)return"";if(X.isDate(e))return e.toISOString();if(X.isBoolean(e))return e.toString();if(!l&&X.isBlob(e))throw new J("Blob is not supported. Use a Buffer instead.");return X.isArrayBuffer(e)||X.isTypedArray(e)?l&&"function"==typeof Blob?new Blob([e]):ei.from(e):e}function d(e,i,n){let l=e;if(e&&!n&&"object"==typeof e){if(X.endsWith(i,"{}"))i=o?i:i.slice(0,-2),e=JSON.stringify(e);else{var d;if(X.isArray(e)&&(d=e,X.isArray(d)&&!d.some(eo))||(X.isFileList(e)||X.endsWith(i,"[]"))&&(l=X.toArray(e)))return i=en(i),l.forEach(function(e,o){X.isUndefined(e)||null===e||t.append(!0===a?er([i],o,r):null===a?i:i+"[]",s(e))}),!1}}return!!eo(e)||(t.append(er(n,i,r),s(e)),!1)}let u=[],c=Object.assign(ea,{defaultVisitor:d,convertValue:s,isVisitable:eo});if(!X.isObject(e))throw TypeError("data must be an object");return!function e(i,o){if(!X.isUndefined(i)){if(-1!==u.indexOf(i))throw Error("Circular reference detected in "+o.join("."));u.push(i),X.forEach(i,function(i,r){!0===(!(X.isUndefined(i)||null===i)&&n.call(t,i,X.isString(r)?r.trim():r,o,c))&&e(i,o?o.concat(r):[r])}),u.pop()}}(e),t};function es(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ed(e,t){this._pairs=[],e&&el(e,this,t)}let eu=ed.prototype;function ec(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function ep(e,t,i){let o;if(!t)return e;let n=i&&i.encode||ec;X.isFunction(i)&&(i={serialize:i});let r=i&&i.serialize;if(o=r?r(t,i):X.isURLSearchParams(t)?t.toString():new ed(t,i).toString(n)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+o}return e}eu.append=function(e,t){this._pairs.push([e,t])},eu.toString=function(e){let t=e?function(t){return e.call(this,t,es)}:es;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};class em{constructor(){this.handlers=[]}use(e,t,i){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!i&&i.synchronous,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){X.forEach(this.handlers,function(t){null!==t&&e(t)})}}var eh={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ef="undefined"!=typeof URLSearchParams?URLSearchParams:ed,ev="undefined"!=typeof FormData?FormData:null,eg="undefined"!=typeof Blob?Blob:null;let ey="undefined"!=typeof window&&"undefined"!=typeof document,eb="object"==typeof navigator&&navigator||void 0,eA=ey&&(!eb||0>["ReactNative","NativeScript","NS"].indexOf(eb.product)),ex="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,ew=ey&&window.location.href||"http://localhost";var e_={...m,isBrowser:!0,classes:{URLSearchParams:ef,FormData:ev,Blob:eg},protocols:["http","https","file","blob","url","data"]},eS=function(e){if(X.isFormData(e)&&X.isFunction(e.entries)){let t={};
4return X.forEachEntry(e,(e,i)=>{!function e(t,i,o,n){let r=t[n++];if("__proto__"===r)return!0;let a=Number.isFinite(+r),l=n>=t.length;return(r=!r&&X.isArray(o)?o.length:r,l)?X.hasOwnProp(o,r)?o[r]=[o[r],i]:o[r]=i:(o[r]&&X.isObject(o[r])||(o[r]=[]),e(t,i,o[r],n)&&X.isArray(o[r])&&(o[r]=function(e){let t,i;let o={},n=Object.keys(e),r=n.length;for(t=0;t<r;t++)o[i=n[t]]=e[i];return o}(o[r]))),!a}(X.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),i,t,0)}),t}return null};let eC={transitional:eh,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let i;let o=t.getContentType()||"",n=o.indexOf("application/json")>-1,r=X.isObject(e);if(r&&X.isHTMLForm(e)&&(e=new FormData(e)),X.isFormData(e))return n?JSON.stringify(eS(e)):e;if(X.isArrayBuffer(e)||X.isBuffer(e)||X.isStream(e)||X.isFile(e)||X.isBlob(e)||X.isReadableStream(e))return e;if(X.isArrayBufferView(e))return e.buffer;if(X.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(r){if(o.indexOf("application/x-www-form-urlencoded")>-1){var a,l;return(a=e,l=this.formSerializer,el(a,new e_.classes.URLSearchParams,Object.assign({visitor:function(e,t,i,o){return e_.isNode&&X.isBuffer(e)?(this.append(t,e.toString("base64")),!1):o.defaultVisitor.apply(this,arguments)}},l))).toString()}if((i=X.isFileList(e))||o.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return el(i?{"files[]":e}:e,t&&new t,this.formSerializer)}}return r||n?(t.setContentType("application/json",!1),function(e,t,i){if(X.isString(e))try{return(0,JSON.parse)(e),X.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||eC.transitional,i=t&&t.forcedJSONParsing,o="json"===this.responseType;if(X.isResponse(e)||X.isReadableStream(e))return e;if(e&&X.isString(e)&&(i&&!this.responseType||o)){let i=t&&t.silentJSONParsing;try{return JSON.parse(e)}catch(e){if(!i&&o){if("SyntaxError"===e.name)throw J.from(e,J.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e_.classes.FormData,Blob:e_.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};X.forEach(["delete","get","head","post","put","patch"],e=>{eC.headers[e]={}});let ek=X.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var eT=e=>{let t,i,o;let n={};return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),t=e.substring(0,o).trim().toLowerCase(),i=e.substring(o+1).trim(),!t||n[t]&&ek[t]||("set-cookie"===t?n[t]?n[t].push(i):n[t]=[i]:n[t]=n[t]?n[t]+", "+i:i)}),n};let eE=Symbol("internals");function eP(e){return e&&String(e).trim().toLowerCase()}function eI(e){return!1===e||null==e?e:X.isArray(e)?e.map(eI):String(e)}let eD=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function eO(e,t,i,o,n){if(X.isFunction(o))return o.call(this,t,i);if(n&&(t=i),X.isString(t)){if(X.isString(o))return -1!==t.indexOf(o);if(X.isRegExp(o))return o.test(t)}}class eN{constructor(e){e&&this.set(e)}set(e,t,i){let o=this;function n(e,t,i){let n=eP(t);if(!n)throw Error("header name must be a non-empty string");let r=X.findKey(o,n);r&&void 0!==o[r]&&!0!==i&&(void 0!==i||!1===o[r])||(o[r||t]=eI(e))}let r=(e,t)=>X.forEach(e,(e,i)=>n(e,i,t));if(X.isPlainObject(e)||e instanceof this.constructor)r(e,t);else if(X.isString(e)&&(e=e.trim())&&!eD(e))r(eT(e),t);else if(X.isObject(e)&&X.isIterable(e)){let i={},o,n;for(let t of e){if(!X.isArray(t))throw TypeError("Object iterator must return a key-value pair");i[n=t[0]]=(o=i[n])?X.isArray(o)?[...o,t[1]]:[o,t[1]]:t[1]}r(i,t)}else null!=e&&n(t,e,i);return this}get(e,t){if(e=eP(e)){let i=X.findKey(this,e);if(i){let e=this[i];if(!t)return e;if(!0===t)return function(e){let t;let i=Object.create(null),o=/([^\s,;
4=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=o.exec(e);)i[t[1]]=t[2];return i}(e);if(X.isFunction(t))return t.call(this,e,i);if(X.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=eP(e)){let i=X.findKey(this,e);return!!(i&&void 0!==this[i]&&(!t||eO(this,this[i],i,t)))}return!1}delete(e,t){let i=this,o=!1;function n(e){if(e=eP(e)){let n=X.findKey(i,e);n&&(!t||eO(i,i[n],n,t))&&(delete i[n],o=!0)}}return X.isArray(e)?e.forEach(n):n(e),o}clear(e){let t=Object.keys(this),i=t.length,o=!1;for(;i--;){let n=t[i];(!e||eO(this,this[n],n,e,!0))&&(delete this[n],o=!0)}return o}normalize(e){let t=this,i={};return X.forEach(this,(o,n)=>{let r=X.findKey(i,n);if(r){t[r]=eI(o),delete t[n];return}let a=e?n.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,i)=>t.toUpperCase()+i):String(n).trim();a!==n&&delete t[n],t[a]=eI(o),i[a]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return X.forEach(this,(i,o)=>{null!=i&&!1!==i&&(t[o]=e&&X.isArray(i)?i.join(", "):i)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let i=new this(e);return t.forEach(e=>i.set(e)),i}static accessor(e){let t=(this[eE]=this[eE]={accessors:{}}).accessors,i=this.prototype;function o(e){let o=eP(e);t[o]||(!function(e,t){let i=X.toCamelCase(" "+t);["get","set","has"].forEach(o=>{Object.defineProperty(e,o+i,{value:function(e,i,n){return this[o].call(this,t,e,i,n)},configurable:!0})})}(i,e),t[o]=!0)}return X.isArray(e)?e.forEach(o):o(e),this}}function ej(e,t){let i=this||eC,o=t||i,n=eN.from(o.headers),r=o.data;return X.forEach(e,function(e){r=e.call(i,r,n.normalize(),t?t.status:void 0)}),n.normalize(),r}function eM(e){return!!(e&&e.__CANCEL__)}function eR(e,t,i){J.call(this,null==e?"canceled":e,J.ERR_CANCELED,t,i),this.name="CanceledError"}function ez(e,t,i){let o=i.config.validateStatus;!i.status||!o||o(i.status)?e(i):t(new J("Request failed with status code "+i.status,[J.ERR_BAD_REQUEST,J.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))}eN.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),X.reduceDescriptors(eN.prototype,({value:e},t)=>{let i=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[i]=e}}}),X.freezeMethods(eN),X.inherits(eR,J,{__CANCEL__:!0});var eL=function(e,t){let i;let o=Array(e=e||10),n=Array(e),r=0,a=0;return t=void 0!==t?t:1e3,function(l){let s=Date.now(),d=n[a];i||(i=s),o[r]=l,n[r]=s;let u=a,c=0;for(;u!==r;)c+=o[u++],u%=e;if((r=(r+1)%e)===a&&(a=(a+1)%e),s-i<t)return;let p=d&&s-d;return p?Math.round(1e3*c/p):void 0}},eV=function(e,t){let i,o,n=0,r=1e3/t,a=(t,r=Date.now())=>{n=r,i=null,o&&(clearTimeout(o),o=null),e.apply(null,t)};return[(...e)=>{let t=Date.now(),l=t-n;l>=r?a(e,t):(i=e,o||(o=setTimeout(()=>{o=null,a(i)},r-l)))},()=>i&&a(i)]};let eF=(e,t,i=3)=>{let o=0,n=eL(50,250);return eV(i=>{let r=i.loaded,a=i.lengthComputable?i.total:void 0,l=r-o,s=n(l);o=r,e({loaded:r,total:a,progress:a?r/a:void 0,bytes:l,rate:s||void 0,estimated:s&&a&&r<=a?(a-r)/s:void 0,event:i,lengthComputable:null!=a,[t?"download":"upload"]:!0})},i)},eU=(e,t)=>{let i=null!=e;return[o=>t[0]({lengthComputable:i,total:e,loaded:o}),t[1]]},eG=e=>(...t)=>X.asap(()=>e(...t));var eB=e_.hasStandardBrowserEnv?(r=new URL(e_.origin),a=e_.navigator&&/(msie|trident)/i.test(e_.navigator.userAgent),e=>(e=new URL(e,e_.origin),r.protocol===e.protocol&&r.host===e.host&&(a||r.port===e.port))):()=>!0,eZ=e_.hasStandardBrowserEnv?{write(e,t,i,o,n,r){let a=[e+"="+encodeURIComponent(t)];X.isNumber(i)&&a.push("expires="+new Date(i).toGMTString()),X.isString(o)&&a.push("path="+o),X.isString(n)&&a.push("domain="+n),!0===r&&a.push("secure"),document.cookie=a.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function eq(e,t,i){let o=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(o||!1==i)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let eH=e=>e instanceof eN?{...e}:e;function eW(e,t){t=t||{};let i={};function o(e,t,i,o){return X.isPlainObject(e)&&X.isPlainObject(t)?X.merge.call({caseless:o},e,t):X.isPlainObject(t)?X.merge({},t):X.isArray(t)?t.slice():t}function n(e,t,i,n){return X.isUndefined(t)?X.isUndefined(e)?void 0:o(void 0,e,i,n):o(e,t,i,n)}function r(e,t){if(!X.isUndefined(t))return o(void 0,t)}function a(e,t){return X.isUndefined(t)?X.isUndefined(e)?void 0:o(void 0,e):o(void 0,t)}function l(i,n,r){return r in t?o(i,n):r in e?o(void 0,i):void 0}let s={url:r,method:r,data:r,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBo
4dyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l,headers:(e,t,i)=>n(eH(e),eH(t),i,!0)};return X.forEach(Object.keys(Object.assign({},e,t)),function(o){let r=s[o]||n,a=r(e[o],t[o],o);X.isUndefined(a)&&r!==l||(i[o]=a)}),i}var eY=e=>{let t;let i=eW({},e),{data:o,withXSRFToken:n,xsrfHeaderName:r,xsrfCookieName:a,headers:l,auth:s}=i;if(i.headers=l=eN.from(l),i.url=ep(eq(i.baseURL,i.url,i.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&l.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),X.isFormData(o)){if(e_.hasStandardBrowserEnv||e_.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if(!1!==(t=l.getContentType())){let[e,...i]=t?t.split(";").map(e=>e.trim()).filter(Boolean):[];l.setContentType([e||"multipart/form-data",...i].join("; "))}}if(e_.hasStandardBrowserEnv&&(n&&X.isFunction(n)&&(n=n(i)),n||!1!==n&&eB(i.url))){let e=r&&a&&eZ.read(a);e&&l.set(r,e)}return i},eK="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,i){let o,n,r,a,l;let s=eY(e),d=s.data,u=eN.from(s.headers).normalize(),{responseType:c,onUploadProgress:p,onDownloadProgress:m}=s;function h(){a&&a(),l&&l(),s.cancelToken&&s.cancelToken.unsubscribe(o),s.signal&&s.signal.removeEventListener("abort",o)}let f=new XMLHttpRequest;function v(){if(!f)return;let o=eN.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders());ez(function(e){t(e),h()},function(e){i(e),h()},{data:c&&"text"!==c&&"json"!==c?f.response:f.responseText,status:f.status,statusText:f.statusText,headers:o,config:e,request:f}),f=null}f.open(s.method.toUpperCase(),s.url,!0),f.timeout=s.timeout,"onloadend"in f?f.onloadend=v:f.onreadystatechange=function(){f&&4===f.readyState&&(0!==f.status||f.responseURL&&0===f.responseURL.indexOf("file:"))&&setTimeout(v)},f.onabort=function(){f&&(i(new J("Request aborted",J.ECONNABORTED,e,f)),f=null)},f.onerror=function(){i(new J("Network Error",J.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let t=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded",o=s.transitional||eh;s.timeoutErrorMessage&&(t=s.timeoutErrorMessage),i(new J(t,o.clarifyTimeoutError?J.ETIMEDOUT:J.ECONNABORTED,e,f)),f=null},void 0===d&&u.setContentType(null),"setRequestHeader"in f&&X.forEach(u.toJSON(),function(e,t){f.setRequestHeader(t,e)}),X.isUndefined(s.withCredentials)||(f.withCredentials=!!s.withCredentials),c&&"json"!==c&&(f.responseType=s.responseType),m&&([r,l]=eF(m,!0),f.addEventListener("progress",r)),p&&f.upload&&([n,a]=eF(p),f.upload.addEventListener("progress",n),f.upload.addEventListener("loadend",a)),(s.cancelToken||s.signal)&&(o=t=>{f&&(i(!t||t.type?new eR(null,e,f):t),f.abort(),f=null)},s.cancelToken&&s.cancelToken.subscribe(o),s.signal&&(s.signal.aborted?o():s.signal.addEventListener("abort",o))
4);let g=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(s.url);if(g&&-1===e_.protocols.indexOf(g)){i(new J("Unsupported protocol "+g+":",J.ERR_BAD_REQUEST,e));return}f.send(d||null)})},eQ=(e,t)=>{let{length:i}=e=e?e.filter(Boolean):[];if(t||i){let i,o=new AbortController,n=function(e){if(!i){i=!0,a();let t=e instanceof Error?e:this.reason;o.abort(t instanceof J?t:new eR(t instanceof Error?t.message:t))}},r=t&&setTimeout(()=>{r=null,n(new J(`timeout ${t} of ms exceeded`,J.ETIMEDOUT))},t),a=()=>{e&&(r&&clearTimeout(r),r=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(n):e.removeEventListener("abort",n)}),e=null)};e.forEach(e=>e.addEventListener("abort",n));let{signal:l}=o;return l.unsubscribe=()=>X.asap(a),l}};let e$=function*(e,t){let i,o=e.byteLength;if(!t||o<t){yield e;return}let n=0;for(;n<o;)i=n+t,yield e.slice(n,i),n=i},eX=async function*(e,t){for await(let i of eJ(e))yield*e$(i,t)},eJ=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:i}=await t.read();if(e)break;yield i}}finally{await t.cancel()}},e0=(e,t,i,o)=>{let n;let r=eX(e,t),a=0,l=e=>{!n&&(n=!0,o&&o(e))};return new ReadableStream({async pull(e){try{let{done:t,value:o}=await r.next();if(t){l(),e.close();return}let n=o.byteLength;if(i){let e=a+=n;i(e)}e.enqueue(new Uint8Array(o))}catch(e){throw l(e),e}},cancel:e=>(l(e),r.return())},{highWaterMark:2})},e1="function"==typeof fetch&&"function"==typeof Request&&"function"==typeof Response,e2=e1&&"function"==typeof ReadableStream,e3=e1&&("function"==typeof TextEncoder?(l=new TextEncoder,e=>l.encode(e)):async e=>new Uint8Array(await new Response(e).arrayBuffer())),e4=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},e5=e2&&e4(()=>{let e=!1,t=new Request(e_.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),e6=e2&&e4(()=>X.isReadableStream(new Response("").body)),e8={stream:e6&&(e=>e.body)};e1&&(p=new Response,["text","arrayBuffer","blob","formData","stream"].forEach(e=>{e8[e]||(e8[e]=X.isFunction(p[e])?t=>t[e]():(t,i)=>{throw new J(`Response type '${e}' is not supported`,J.ERR_NOT_SUPPORT,i)})}));let e9=async e=>{if(null==e)return 0;if(X.isBlob(e))return e.size;if(X.isSpecCompliantForm(e)){let t=new Request(e_.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return X.isArrayBufferView(e)||X.isArrayBuffer(e)?e.byteLength:(X.isURLSearchParams(e)&&(e+=""),X.isString(e))?(await e3(e)).byteLength:void 0},e7=async(e,t)=>{let i=X.toFiniteNumber(e.getContentLength());return null==i?e9(t):i},te={http:null,xhr:eK,fetch:e1&&(async e=>{let t,i,{url:o,method:n,data:r,signal:a,cancelToken:l,timeout:s,onDownloadProgress:d,onUploadProgress:u,responseType:c,headers:p,withCredentials:m="same-origin",fetchOptions:h}=eY(e);c=c?(c+"").toLowerCase():"text";let f=eQ([a,l&&l.toAbortSignal()],s),v=f&&f.unsubscribe&&(()=>{f.unsubscribe()});try{if(u&&e5&&"get"!==n&&"head"!==n&&0!==(i=await e7(p,r))){let e,t=new Request(o,{method:"POST",body:r,duplex:"half"});if(X.isFormData(r)&&(e=t.headers.get("content-type"))&&p.setContentType(e),t.body){let[e,o]=eU(i,eF(eG(u)));r=e0(t.body,65536,e,o)}}X.isString(m)||(m=m?"include":"omit");let a="credentials"in Request.prototype;t=new Request(o,{...h,signal:f,method:n.toUpperCase(),headers:p.normalize().toJSON(),body:r,duplex:"half",credentials:a?m:void 0});let l=await fetch(t,h),s=e6&&("stream"===c||"response"===c);if(e6&&(d||s&&v)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=l[t]});let t=X.toFiniteNumber(l.headers.get("content-length")),[i,o]=d&&eU(t,eF(eG(d),!0))||[];l=new Response(e0(l.body,65536,i,()=>{o&&o(),v&&v()}),e)}c=c||"text";let g=await e8[X.findKey(e8,c)||"text"](l,e);return!s&&v&&v(),await new Promise((i,o)=>{ez(i,o,{data:g,headers:eN.from(l.headers),status:l.status,statusText:l.statusText,config:e,request:t})})}catch(i){if(v&&v(),i&&"TypeError"===i.name&&/Load failed|fetch/i.test(i.message))throw Object.assign(new J("Network Error",J.ERR_NETWORK,e,t),{cause:i.cause||i});throw J.from(i,i&&i.code,e,t)}})};
4X.forEach(te,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tt=e=>`- ${e}`,ti=e=>X.isFunction(e)||null===e||!1===e;var to=e=>{let t,i;let{length:o}=e=X.isArray(e)?e:[e],n={};for(let r=0;r<o;r++){let o;if(i=t=e[r],!ti(t)&&void 0===(i=te[(o=String(t)).toLowerCase()]))throw new J(`Unknown adapter '${o}'`);if(i)break;n[o||"#"+r]=i}if(!i){let e=Object.entries(n).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new J("There is no suitable adapter to dispatch the request "+(o?e.length>1?"since :\n"+e.map(tt).join("\n"):" "+tt(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return i};function tn(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new eR(null,e)}function tr(e){return tn(e),e.headers=eN.from(e.headers),e.data=ej.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1),to(e.adapter||eC.adapter)(e).then(function(t){return tn(e),t.data=ej.call(e,e.transformResponse,t),t.headers=eN.from(t.headers),t},function(t){return!eM(t)&&(tn(e),t&&t.response&&(t.response.data=ej.call(e,e.transformResponse,t.response),t.response.headers=eN.from(t.response.headers))),Promise.reject(t)})}let ta="1.10.0",tl={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{tl[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});let ts={};tl.transitional=function(e,t,i){function o(e,t){return"[Axios v"+ta+"] Transitional option '"+e+"'"+t+(i?". "+i:"")}return(i,n,r)=>{if(!1===e)throw new J(o(n," has been removed"+(t?" in "+t:"")),J.ERR_DEPRECATED);return t&&!ts[n]&&(ts[n]=!0,console.warn(o(n," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(i,n,r)}},tl.spelling=function(e){return(t,i)=>(console.warn(`${i} is likely a misspelling of ${e}`),!0)};var td={assertOptions:function(e,t,i){if("object"!=typeof e)throw new J("options must be an object",J.ERR_BAD_OPTION_VALUE);let o=Object.keys(e),n=o.length;for(;n-- >0;){let r=o[n],a=t[r];if(a){let t=e[r],i=void 0===t||a(t,r,e);if(!0!==i)throw new J("option "+r+" must be "+i,J.ERR_BAD_OPTION_VALUE);continue}if(!0!==i)throw new J("Unknown option "+r,J.ERR_BAD_OPTION)}},validators:tl};let tu=td.validators;class tc{constructor(e){this.defaults=e||{},this.interceptors={request:new em,response:new em}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let i=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?i&&!String(e.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+i):e.stack=i}catch(e){}}throw e}}_request(e,t){let i,o;"string"==typeof e?(t=t||{}).url=e:t=e||{};let{transitional:n,paramsSerializer:r,headers:a}=t=eW(this.defaults,t);void 0!==n&&td.assertOptions(n,{silentJSONParsing:tu.transitional(tu.boolean),forcedJSONParsing:tu.transitional(tu.boolean),clarifyTimeoutError:tu.transitional(tu.boolean)},!1),null!=r&&(X.isFunction(r)?t.paramsSerializer={serialize:r}:td.assertOptions(r,{encode:tu.function,serialize:tu.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),td.assertOptions(t,{baseUrl:tu.spelling("baseURL"),withXsrfToken:tu.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let l=a&&X.merge(a.common,a[t.method]);a&&X.forEach(["delete","get","head","post","put","patch","common"],e=>{delete a[e]}),t.headers=eN.concat(l,a);let s=[],d=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(d=d&&e.synchronous,s.unshift(e.fulfilled,e.rejected))});let u=[];this.interceptors.response.forEach(function(e){u.push(e.fulfilled,e.rejected)});let c=0;if(!d){let e=[tr.bind(this),void 0];for(e.unshift.apply(e,s),e.push.apply(e,u),o=e.length,i=Promise.resolve(t);c<o;)i=i.then(e[c++],e[c++]);return i}o=s.length;let p=t;for(c=0;c<o;){let e=s[c++],t=s[c++];try{p=e(p)}catch(e){t.call(this,e);break}}try{i=tr.call(this,p)}catch(e){return Promise.reject(e)}for(c=0,o=u.length;c<o;)i=i.then(u[c++],u[c++]);return i}getUri(e){return ep(eq((e=eW(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}X.forEach(["delete","get","head","options"],function(e){tc.prototype[e]=function(t,i){return this.request(eW(i||{},{method:e,url:t,data:(i||{}).data}))}}
4),X.forEach(["post","put","patch"],function(e){function t(t){return function(i,o,n){return this.request(eW(n||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:i,data:o}))}}tc.prototype[e]=t(),tc.prototype[e+"Form"]=t(!0)});class tp{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let i=this;this.promise.then(e=>{if(!i._listeners)return;let t=i._listeners.length;for(;t-- >0;)i._listeners[t](e);i._listeners=null}),this.promise.then=e=>{let t;let o=new Promise(e=>{i.subscribe(e),t=e}).then(e);return o.cancel=function(){i.unsubscribe(t)},o},e(function(e,o,n){i.reason||(i.reason=new eR(e,o,n),t(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new tp(function(t){e=t}),cancel:e}}}let tm={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
4alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tm).forEach(([e,t])=>{tm[t]=e});let th=function e(t){let i=new tc(t),o=h(tc.prototype.request,i);return X.extend(o,tc.prototype,i,{allOwnKeys:!0}),X.extend(o,i,null,{allOwnKeys:!0}),o.create=function(i){return e(eW(t,i))},o}(eC);th.Axios=tc,th.CanceledError=eR,th.CancelToken=tp,th.isCancel=eM,th.VERSION=ta,th.toFormData=el,th.AxiosError=J,th.Cancel=th.CanceledError,th.all=function(e){return Promise.all(e)},th.spread=function(e){return function(t){return e.apply(null,t)}},th.isAxiosError=function(e){return X.isObject(e)&&!0===e.isAxiosError},th.mergeConfig=eW,th.AxiosHeaders=eN,th.formToJSON=e=>eS(X.isHTMLForm(e)?new FormData(e):e),th.getAdapter=to,th.HttpStatusCode=tm,th.default=th;var tf=th},87536:function(e,t,i){"use strict";i.d(t,{Dq:function(){return ef},Gc:function(){return k},Qr:function(){return L},RV:function(){return T},bc:function(){return z},cI:function(){return eR},qo:function(){return R}});var o=i(67294),n=e=>"checkbox"===e.type,r=e=>e instanceof Date,a=e=>null==e;let l=e=>"object"==typeof e;var s=e=>!a(e)&&!Array.isArray(e)&&l(e)&&!r(e),d=e=>s(e)&&e.target?n(e.target)?e.target.checked:e.target.value:e,u=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,c=(e,t)=>e.has(u(t)),p=e=>{let t=e.constructor&&e.constructor.prototype;return s(t)&&t.hasOwnProperty("isPrototypeOf")},m="undefined"!=typeof window&&void 0!==window.HTMLElement&&"undefined"!=typeof document;function h(e){let t;let i=Array.isArray(e),o="undefined"!=typeof FileList&&e instanceof FileList;if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(!(m&&(e instanceof Blob||o))&&(i||s(e))))return e;else if(t=i?[]:{},i||p(e))for(let i in e)e.hasOwnProperty(i)&&(t[i]=h(e[i]));else t=e;return t}var f=e=>Array.isArray(e)?e.filter(Boolean):[],v=e=>void 0===e,g=(e,t,i)=>{if(!t||!s(e))return i;let o=f(t.split(/[,[\].]+?/)).reduce((e,t)=>a(e)?e:e[t],e);return v(o)||o===e?v(e[t])?i:e[t]:o},y=e=>"boolean"==typeof e,b=e=>/^\w*$/.test(e),A=e=>f(e.replace(/["|']|\]/g,"").split(/\.|\[/)),x=(e,t,i)=>{let o=-1,n=b(t)?[t]:A(t),r=n.length,a=r-1;for(;++o<r;){let t=n[o],r=i;if(o!==a){let i=e[t];r=s(i)||Array.isArray(i)?i:isNaN(+n[o+1])?{}:[]}if("__proto__"===t||"constructor"===t||"prototype"===t)return;e[t]=r,e=e[t]}return e};let w={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},_={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},S={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},C=o.createContext(null),k=()=>o.useContext(C),T=e=>{let{children:t,...i}=e;return o.createElement(C.Provider,{value:i},t)};var E=(e,t,i,o=!0)=>{let n={defaultValues:t._defaultValues};for(let r in e)Object.defineProperty(n,r,{get:()=>(t._proxyFormState[r]!==_.all&&(t._proxyFormState[r]=!o||_.all),i&&(i[r]=!0),e[r])});return n},P=e=>s(e)&&!Object.keys(e).length,I=(e,t,i,o)=>{i(e);let{name:n,...r}=e;return P(r)||Object.keys(r).length>=Object.keys(t).length||Object.keys(r).find(e=>t[e]===(!o||_.all))},D=e=>Array.isArray(e)?e:[e],O=(e,t,i)=>!e||!t||e===t||D(e).some(e=>e&&(i?e===t:e.startsWith(t)||t.startsWith(e)));function N(e){let t=o.useRef(e);t.current=e,o.useEffect(()=>{let i=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{i&&i.unsubscribe()}},[e.disabled])}var j=e=>"string"==typeof e,M=(e,t,i,o,n)=>j(e)?(o&&t.watch.add(e),g(i,e,n)):Array.isArray(e)?e.map(e=>(o&&t.watch.add(e),g(i,e))):(o&&(t.watchAll=!0),i);function R(e){let t=k(),{control:i=t.control,name:n,defaultValue:r,disabled:a,exact:l}=e||{},s=o.useRef(n);s.current=n,N({disabled:a,subject:i._subjects.values,next:e=>{O(s.current,e.name,l)&&u(h(M(s.current,i._names,e.values||i._formValues,!1,r)))}});let[d,u]=o.useState(i._getWatch(n,r));return o.useEffect(()=>i._removeUnmounted()),d}function z(e){let t=k(),{name:i,disabled:n,control:r=t.control,shouldUnregister:a}
4=e,l=c(r._names.array,i),s=R({control:r,name:i,defaultValue:g(r._formValues,i,g(r._defaultValues,i,e.defaultValue)),exact:!0}),u=function(e){let t=k(),{control:i=t.control,disabled:n,name:r,exact:a}=e||{},[l,s]=o.useState(i._formState),d=o.useRef(!0),u=o.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=o.useRef(r);return c.current=r,N({disabled:n,next:e=>d.current&&O(c.current,e.name,a)&&I(e,u.current,i._updateFormState)&&s({...i._formState,...e}),subject:i._subjects.state}),o.useEffect(()=>(d.current=!0,u.current.isValid&&i._updateValid(!0),()=>{d.current=!1}),[i]),o.useMemo(()=>E(l,i,u.current,!1),[l,i])}({control:r,name:i,exact:!0}),p=o.useRef(r.register(i,{...e.rules,value:s,...y(e.disabled)?{disabled:e.disabled}:{}})),m=o.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!g(u.errors,i)},isDirty:{enumerable:!0,get:()=>!!g(u.dirtyFields,i)},isTouched:{enumerable:!0,get:()=>!!g(u.touchedFields,i)},isValidating:{enumerable:!0,get:()=>!!g(u.validatingFields,i)},error:{enumerable:!0,get:()=>g(u.errors,i)}}),[u,i]),f=o.useMemo(()=>({name:i,value:s,...y(n)||u.disabled?{disabled:u.disabled||n}:{},onChange:e=>p.current.onChange({target:{value:d(e),name:i},type:w.CHANGE}),onBlur:()=>p.current.onBlur({target:{value:g(r._formValues,i),name:i},type:w.BLUR}),ref:e=>{let t=g(r._fields,i);t&&e&&(t._f.ref={focus:()=>e.focus(),select:()=>e.select(),setCustomValidity:t=>e.setCustomValidity(t),reportValidity:()=>e.reportValidity()})}}),[i,r._formValues,n,u.disabled,s,r._fields]);return o.useEffect(()=>{let e=r._options.shouldUnregister||a,t=(e,t)=>{let i=g(r._fields,e);i&&i._f&&(i._f.mount=t)};if(t(i,!0),e){let e=h(g(r._options.defaultValues,i));x(r._defaultValues,i,e),v(g(r._formValues,i))&&x(r._formValues,i,e)}return l||r.register(i),()=>{(l?e&&!r._state.action:e)?r.unregister(i):t(i,!1)}},[i,r,l,a]),o.useEffect(()=>{r._updateDisabledField({disabled:n,fields:r._fields,name:i})},[n,i,r]),o.useMemo(()=>({field:f,formState:u,fieldState:m}),[f,u,m])}let L=e=>e.render(z(e));var V=(e,t,i,o,n)=>t?{...i[e],types:{...i[e]&&i[e].types?i[e].types:{},[o]:n||!0}}:{},F=()=>{let e="undefined"==typeof performance?Date.now():1e3*performance.now();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{let i=(16*Math.random()+e)%16|0;return("x"==t?i:3&i|8).toString(16)})},U=(e,t,i={})=>i.shouldFocus||v(i.shouldFocus)?i.focusName||`${e}.${v(i.focusIndex)?t:i.focusIndex}.`:"",G=e=>({isOnSubmit:!e||e===_.onSubmit,isOnBlur:e===_.onBlur,isOnChange:e===_.onChange,isOnAll:e===_.all,isOnTouch:e===_.onTouched}),B=(e,t,i)=>!i&&(t.watchAll||t.watch.has(e)||[...t.watch].some(t=>e.startsWith(t)&&/^\.\w+/.test(e.slice(t.length))));let Z=(e,t,i,o)=>{for(let n of i||Object.keys(e)){let i=g(e,n);if(i){let{_f:e,...r}=i;if(e){if(e.refs&&e.refs[0]&&t(e.refs[0],n)&&!o||e.ref&&t(e.ref,e.name)&&!o)return!0;if(Z(r,t))break}else if(s(r)&&Z(r,t))break}}};var q=(e,t,i)=>{let o=D(g(e,i));return x(o,"root",t[i]),x(e,i,o),e},H=e=>"file"===e.type,W=e=>"function"==typeof e,Y=e=>{if(!m)return!1;let t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},K=e=>j(e),Q=e=>"radio"===e.type,$=e=>e instanceof RegExp;let X={value:!1,isValid:!1},J={value:!0,isValid:!0};var ee=e=>{if(Array.isArray(e)){if(e.length>1){let t=e.filter(e=>e&&e.checked&&!e.disabled).map(e=>e.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!v(e[0].attributes.value)?v(e[0].value)||""===e[0].value?J:{value:e[0].value,isValid:!0}:J:X}return X};let et={isValid:!1,value:null};var ei=e=>Array.isArray(e)?e.reduce((e,t)=>t&&t.checked&&!t.disabled?{isValid:!0,value:t.value}:e,et):et;function eo(e,t,i="validate"){if(K(e)||Array.isArray(e)&&e.every(K)||y(e)&&!e)return{type:i,message:K(e)?e:"",ref:t}}var en=e=>s(e)&&!$(e)?e:{value:e,message:""},er=async(e,t,i,o,r,l)=>{let{ref:d,refs:u,required:c,maxLength:p,minLength:m,min:h,max:f,pattern:b,validate:A,name:x,valueAsNumber:w,mount:_}=e._f,C=g(i,x);if(!_||t.has(x))return{};let k=u?u[0]:d,T=e=>{r&&k.reportValidity&&(k.setCustomValidity(y(e)?"":e||""),k.reportValidity())},E={},I=Q(d),D=n(d),O=(w||H(d))&&v(d.value)&&v(C)||Y(d)&&""===d.value||""===C||Array.isArray(C)&&!C.length,N=V.bind(null,x,o,E),M=(e,t,i,o=S.maxLength,n=S.minLength)=>{let r=e?t:i;E[x]={type:e?o:n,message:r,ref:d,...N(e?o:n,r)}};if(l?!Array.isArray(C)||!C.length:c&&(!(I||D)&&(O||a(C))||y(C)&&!C||D&&!ee(u).isValid||I&&!ei(u).isValid)){let{value:e,message:t}=K(c)?{value:!!c,message:c}:en(c);if(e&&(E[x]={type:S.required,message:t,ref:k,...N(S.required,t)},!o))return T(t),E}if(!O&&(!a(h)||!a(f))){let e,t;let i=en(f),n=en(h);if(a(C)||isNaN(C)){let o=d.valueAsDate||new Date(C),r=e=>new Date(new Date().toDateString()+" "+e),a="time"==d.type,l="week"==d.type;j(i.value)&&C&&(e=a?r(C)>r(i.value):l?C>i.value:o>new Date(i.value)),j(n.value)&&C&&(t=a?r(C)<r(n.value):l?C<n.value:o<new Date(n.value))}else{let o=d.valueAsNumber||(C?+C:C);a(i.value)||(e=o>i.value),a(n.value)||(t=o<n.value)}if((e||t)&&(M(!!e,i.message,n.message,S.max,S.min),!o))return T(E[x].message),E}if((p||m)&&!O&&(j(C)||l&&Array.isArray(C))){let e=en(p),t=en(m),i=!a(e.value)&&C.length>+e.value,n=!a(t.value)&&C.length<+t.value;if((i||n)&&(M(i,e.message,t.message),!o))return T(E[x].message),E}if(b&&!O&&j(C)){let{value:e,message:t}=en(b);if($(e)&&!C.match(e)&&(E[x]={type:S.pattern,message:t,ref:d,...N(S.pattern,t)},!o))return T(t),E}if(A){if(W(A)){let e=eo(await A(C,i),k);if(e&&(E[x]={...e,...N(S.validate,e.message)},!o))return T(e.message),E}else if(s(A)){let e={};for(let t in A){if(!P(e)&&!o)break;let n=eo(await A[t](C,i),k,t);n&&(e={...n,...N(t,n.message)},T(n.message),o&&(E[x]=e))}if(!P(e)&&(E[x]={ref:k,...e},!o))return E}}return T(!0),E},ea=(e,t)=>[...e,...D(t)],el=e=>Array.isArray(e)?e.map(()=>void 0):void 0;function es(e,t,i){return[...e.slice(0,t),...D(i),...e.slice(t)]}var ed=(e,t,i)=>Array.isArray(e)?(v(e[i])&&(e[i]=void 0),e.splice(i,0,e.splice(t,1)[0]),e):[],eu=(e,t)=>
4[...D(t),...D(e)],ec=(e,t)=>v(t)?[]:function(e,t){let i=0,o=[...e];for(let e of t)o.splice(e-i,1),i++;return f(o).length?o:[]}(e,D(t).sort((e,t)=>e-t)),ep=(e,t,i)=>{[e[t],e[i]]=[e[i],e[t]]};function em(e,t){let i=Array.isArray(t)?t:b(t)?[t]:A(t),o=1===i.length?e:function(e,t){let i=t.slice(0,-1).length,o=0;for(;o<i;)e=v(e)?o++:e[t[o++]];return e}(e,i),n=i.length-1,r=i[n];return o&&delete o[r],0!==n&&(s(o)&&P(o)||Array.isArray(o)&&function(e){for(let t in e)if(e.hasOwnProperty(t)&&!v(e[t]))return!1;return!0}(o))&&em(e,i.slice(0,-1)),e}var eh=(e,t,i)=>(e[t]=i,e);function ef(e){let t=k(),{control:i=t.control,name:n,keyName:r="id",shouldUnregister:a,rules:l}=e,[s,d]=o.useState(i._getFieldArray(n)),u=o.useRef(i._getFieldArray(n).map(F)),c=o.useRef(s),p=o.useRef(n),m=o.useRef(!1);p.current=n,c.current=s,i._names.array.add(n),l&&i.register(n,l),N({next:({values:e,name:t})=>{if(t===p.current||!t){let t=g(e,p.current);Array.isArray(t)&&(d(t),u.current=t.map(F))}},subject:i._subjects.array});let f=o.useCallback(e=>{m.current=!0,i._updateFieldArray(n,e)},[i,n]);return o.useEffect(()=>{if(i._state.action=!1,B(n,i._names)&&i._subjects.state.next({...i._formState}),m.current&&(!G(i._options.mode).isOnSubmit||i._formState.isSubmitted)){if(i._options.resolver)i._executeSchema([n]).then(e=>{let t=g(e.errors,n),o=g(i._formState.errors,n);(o?!t&&o.type||t&&(o.type!==t.type||o.message!==t.message):t&&t.type)&&(t?x(i._formState.errors,n,t):em(i._formState.errors,n),i._subjects.state.next({errors:i._formState.errors}))});else{let e=g(i._fields,n);e&&e._f&&!(G(i._options.reValidateMode).isOnSubmit&&G(i._options.mode).isOnSubmit)&&er(e,i._names.disabled,i._formValues,i._options.criteriaMode===_.all,i._options.shouldUseNativeValidation,!0).then(e=>!P(e)&&i._subjects.state.next({errors:q(i._formState.errors,e,n)}))}}i._subjects.values.next({name:n,values:{...i._formValues}}),i._names.focus&&Z(i._fields,(e,t)=>{if(i._names.focus&&t.startsWith(i._names.focus)&&e.focus)return e.focus(),1}),i._names.focus="",i._updateValid(),m.current=!1},[s,n,i]),o.useEffect(()=>(g(i._formValues,n)||i._updateFieldArray(n),()=>{(i._options.shouldUnregister||a)&&i.unregister(n)}),[n,i,r,a]),{swap:o.useCallback((e,t)=>{let o=i._getFieldArray(n);ep(o,e,t),ep(u.current,e,t),f(o),d(o),i._updateFieldArray(n,o,ep,{argA:e,argB:t},!1)},[f,n,i]),move:o.useCallback((e,t)=>{let o=i._getFieldArray(n);ed(o,e,t),ed(u.current,e,t),f(o),d(o),i._updateFieldArray(n,o,ed,{argA:e,argB:t},!1)},[f,n,i]),prepend:o.useCallback((e,t)=>{let o=D(h(e)),r=eu(i._getFieldArray(n),o);i._names.focus=U(n,0,t),u.current=eu(u.current,o.map(F)),f(r),d(r),i._updateFieldArray(n,r,eu,{argA:el(e)})},[f,n,i]),append:o.useCallback((e,t)=>{let o=D(h(e)),r=ea(i._getFieldArray(n),o);i._names.focus=U(n,r.length-1,t),u.current=ea(u.current,o.map(F)),f(r),d(r),i._updateFieldArray(n,r,ea,{argA:el(e)})},[f,n,i]),remove:o.useCallback(e=>{let t=ec(i._getFieldArray(n),e);u.current=ec(u.current,e),f(t),d(t),Array.isArray(g(i._fields,n))||x(i._fields,n,void 0),i._updateFieldArray(n,t,ec,{argA:e})},[f,n,i]),insert:o.useCallback((e,t,o)=>{let r=D(h(t)),a=es(i._getFieldArray(n),e,r);i._names.focus=U(n,e,o),u.current=es(u.current,e,r.map(F)),f(a),d(a),i._updateFieldArray(n,a,es,{argA:e,argB:el(t)})},[f,n,i]),update:o.useCallback((e,t)=>{let o=h(t),r=eh(i._getFieldArray(n),e,o);u.current=[...r].map((t,i)=>t&&i!==e?u.current[i]:F()),f(r),d([...r]),i._updateFieldArray(n,r,eh,{argA:e,argB:o},!0,!1)},[f,n,i]),replace:o.useCallback(e=>{let t=D(h(e));u.current=t.map(F),f([...t]),d([...t]),i._updateFieldArray(n,[...t],e=>e,{},!0,!1)},[f,n,i]),fields:o.useMemo(()=>s.map((e,t)=>({...e,[r]:u.current[t]||F()})),[s,r])}}var ev=()=>{let e=[];return{get observers(){return e},next:t=>{for(let i of e)i.next&&i.next(t)},subscribe:t=>(e.push(t),{unsubscribe:()=>{e=e.filter(e=>e!==t)}}),unsubscribe:()=>{e=[]}}},eg=e=>a(e)||!l(e);function ey(e,t){if(eg(e)||eg(t))return e===t;if(r(e)&&r(t))return e.getTime()===t.getTime();let i=Object.keys(e),o=Object.keys(t);if(i.length!==o.length)return!1;for(let n of i){let i=e[n];if(!o.includes(n))return!1;if("ref"!==n){let e=t[n];if(r(i)&&r(e)||s(i)&&s(e)||Array.isArray(i)&&Array.isArray(e)?!ey(i,e):i!==e)return!1}}return!0}var eb=e=>"select-multiple"===e.type,eA=e=>Q(e)||n(e),ex=e=>Y(e)&&e.isConnected,ew=e=>{for(let t in e)if(W(e[t]))return!0;return!1};function e_(e,t={}){let i=Array.isArray(e);if(s(e)||i)for(let i in e)Array.isArray(e[i])||s(e[i])&&!ew(e[i])?(t[i]=Array.isArray(e[i])?[]:{},e_(e[i],t[i])):a(e[i])||(t[i]=!0);return t}var eS=(e,t)=>(function e(t,i,o){let n=Array.isArray(t);if(s(t)||n)for(let n in t)Array.isArray(t[n])||s(t[n])&&!ew(t[n])?v(i)||eg(o[n])?o[n]=Array.isArray(t[n])?e_(t[n],[]):{...e_(t[n])}:e(t[n],a(i)?{}:i[n],o[n]):o[n]=!ey(t[n],i[n]);return o}
4)(e,t,e_(t)),eC=(e,{valueAsNumber:t,valueAsDate:i,setValueAs:o})=>v(e)?e:t?""===e?NaN:e?+e:e:i&&j(e)?new Date(e):o?o(e):e;function ek(e){let t=e.ref;return H(t)?t.files:Q(t)?ei(e.refs).value:eb(t)?[...t.selectedOptions].map(({value:e})=>e):n(t)?ee(e.refs).value:eC(v(t.value)?e.ref.value:t.value,e)}var eT=(e,t,i,o)=>{let n={};for(let i of e){let e=g(t,i);e&&x(n,i,e._f)}return{criteriaMode:i,names:[...e],fields:n,shouldUseNativeValidation:o}},eE=e=>v(e)?e:$(e)?e.source:s(e)?$(e.value)?e.value.source:e.value:e;let eP="AsyncFunction";var eI=e=>!!e&&!!e.validate&&!!(W(e.validate)&&e.validate.constructor.name===eP||s(e.validate)&&Object.values(e.validate).find(e=>e.constructor.name===eP)),eD=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function eO(e,t,i){let o=g(e,i);if(o||b(i))return{error:o,name:i};let n=i.split(".");for(;n.length;){let o=n.join("."),r=g(t,o),a=g(e,o);if(r&&!Array.isArray(r)&&i!==o)break;if(a&&a.type)return{name:o,error:a};n.pop()}return{name:i}}var eN=(e,t,i,o,n)=>!n.isOnAll&&(!i&&n.isOnTouch?!(t||e):(i?o.isOnBlur:n.isOnBlur)?!e:(i?!o.isOnChange:!n.isOnChange)||e),ej=(e,t)=>!f(g(e,t)).length&&em(e,t);let eM={mode:_.onSubmit,reValidateMode:_.onChange,shouldFocusError:!0};function eR(e={}){let t=o.useRef(void 0),i=o.useRef(void 0),[l,u]=o.useState({isDirty:!1,isValidating:!1,isLoading:W(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:W(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...function(e={}){let t,i={...eM,...e},o={submitCount:0,isDirty:!1,isLoading:W(i.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:i.errors||{},disabled:i.disabled||!1},l={},u=(s(i.defaultValues)||s(i.values))&&h(i.defaultValues||i.values)||{},p=i.shouldUnregister?{}:h(u),b={action:!1,mount:!1,watch:!1},A={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},S=0,C={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},k={values:ev(),array:ev(),state:ev()},T=G(i.mode),E=G(i.reValidateMode),I=i.criteriaMode===_.all,O=e=>t=>{clearTimeout(S),S=setTimeout(e,t)},N=async e=>{if(!i.disabled&&(C.isValid||e)){let e=i.resolver?P((await U()).errors):await Q(l,!0);e!==o.isValid&&k.state.next({isValid:e})}},R=(e,t)=>{!i.disabled&&(C.isValidating||C.validatingFields)&&((e||Array.from(A.mount)).forEach(e=>{e&&(t?x(o.validatingFields,e,t):em(o.validatingFields,e))}),k.state.next({validatingFields:o.validatingFields,isValidating:!P(o.validatingFields)}))},z=(e,t)=>{x(o.errors,e,t),k.state.next({errors:o.errors})},L=(e,t,i,o)=>{let n=g(l,e);if(n){let r=g(p,e,v(i)?g(u,e):i);v(r)||o&&o.defaultChecked||t?x(p,e,t?r:ek(n._f)):J(e,r),b.mount&&N()}},V=(e,t,n,r,a)=>{let s=!1,d=!1,c={name:e};if(!i.disabled){let i=!!(g(l,e)&&g(l,e)._f&&g(l,e)._f.disabled);if(!n||r){C.isDirty&&(d=o.isDirty,o.isDirty=c.isDirty=$(),s=d!==c.isDirty);let n=i||ey(g(u,e),t);d=!!(!i&&g(o.dirtyFields,e)),n||i?em(o.dirtyFields,e):x(o.dirtyFields,e,!0),c.dirtyFields=o.dirtyFields,s=s||C.dirtyFields&&!n!==d}if(n){let t=g(o.touchedFields,e);t||(x(o.touchedFields,e,n),c.touchedFields=o.touchedFields,s=s||C.touchedFields&&t!==n)}s&&a&&k.state.next(c)}return s?c:{}},F=(e,n,r,a)=>{let l=g(o.errors,e),s=C.isValid&&y(n)&&o.isValid!==n;if(i.delayError&&r?(t=O(()=>z(e,r)))(i.delayError):(clearTimeout(S),t=null,r?x(o.errors,e,r):em(o.errors,e)),(r?!ey(l,r):l)||!P(a)||s){let t={...a,...s&&y(n)?{isValid:n}:{},errors:o.errors,name:e};o={...o,...t},k.state.next(t)}},U=async e=>{R(e,!0);let t=await i.resolver(p,i.context,eT(e||A.mount,l,i.criteriaMode,i.shouldUseNativeValidation));return R(e),t},K=async e=>{let{errors:t}=await U(e);if(e)for(let i of e){let e=g(t,i);e?x(o.errors,i,e):em(o.errors,i)}else o.errors=t;return t},Q=async(e,t,n={valid:!0})=>{for(let r in e){let a=e[r];if(a){let{_f:e,...l}=a;if(e){let l=A.array.has(e.name),s=a._f&&eI(a._f);s&&C.validatingFields&&R([r],!0);let d=await er(a,A.disabled,p,I,i.shouldUseNativeValidation&&!t,l);if(s&&C.validatingFields&&R([r]),d[e.name]&&(n.valid=!1,t))break;t||(g(d,e.name)?l?q(o.errors,d,e.name):x(o.errors,e.name,d[e.name]):em(o.errors,e.name))}P(l)||await Q(l,t,n)}}return n.valid},$=(e,t)=>!i.disabled&&(e&&t&&x(p,e,t),!ey(ea(),u)),X=(e,t,i)=>M(e,A,{...b.mount?p:v(t)?u:j(e)?{[e]:t}:t},i,t),J=(e,t,i={})=>{let o=g(l,e),r=t;if(o){let i=o._f;i&&(i.disabled||x(p,e,eC(t,i)),r=Y(i.ref)&&a(t)?"":t,eb(i.ref)?[...i.ref.options].forEac
4h(e=>e.selected=r.includes(e.value)):i.refs?n(i.ref)?i.refs.length>1?i.refs.forEach(e=>(!e.defaultChecked||!e.disabled)&&(e.checked=Array.isArray(r)?!!r.find(t=>t===e.value):r===e.value)):i.refs[0]&&(i.refs[0].checked=!!r):i.refs.forEach(e=>e.checked=e.value===r):H(i.ref)?i.ref.value="":(i.ref.value=r,i.ref.type||k.values.next({name:e,values:{...p}})))}(i.shouldDirty||i.shouldTouch)&&V(e,r,i.shouldTouch,i.shouldDirty,!0),i.shouldValidate&&en(e)},ee=(e,t,i)=>{for(let o in t){let n=t[o],a=`${e}.${o}`,d=g(l,a);(A.array.has(e)||s(n)||d&&!d._f)&&!r(n)?ee(a,n,i):J(a,n,i)}},et=(e,t,i={})=>{let n=g(l,e),r=A.array.has(e),s=h(t);x(p,e,s),r?(k.array.next({name:e,values:{...p}}),(C.isDirty||C.dirtyFields)&&i.shouldDirty&&k.state.next({name:e,dirtyFields:eS(u,p),isDirty:$(e,s)})):!n||n._f||a(s)?J(e,s,i):ee(e,s,i),B(e,A)&&k.state.next({...o}),k.values.next({name:b.mount?e:void 0,values:{...p}})},ei=async e=>{b.mount=!0;let n=e.target,a=n.name,s=!0,u=g(l,a),c=e=>{s=Number.isNaN(e)||r(e)&&isNaN(e.getTime())||ey(e,g(p,a,e))};if(u){let r,m;let h=n.type?ek(u._f):d(e),f=e.type===w.BLUR||e.type===w.FOCUS_OUT,v=!eD(u._f)&&!i.resolver&&!g(o.errors,a)&&!u._f.deps||eN(f,g(o.touchedFields,a),o.isSubmitted,E,T),y=B(a,A,f);x(p,a,h),f?(u._f.onBlur&&u._f.onBlur(e),t&&t(0)):u._f.onChange&&u._f.onChange(e);let b=V(a,h,f,!1),_=!P(b)||y;if(f||k.values.next({name:a,type:e.type,values:{...p}}),v)return C.isValid&&("onBlur"===i.mode&&f?N():f||N()),_&&k.state.next({name:a,...y?{}:b});if(!f&&y&&k.state.next({...o}),i.resolver){let{errors:e}=await U([a]);if(c(h),s){let t=eO(o.errors,l,a),i=eO(e,l,t.name||a);r=i.error,a=i.name,m=P(e)}}else R([a],!0),r=(await er(u,A.disabled,p,I,i.shouldUseNativeValidation))[a],R([a]),c(h),s&&(r?m=!1:C.isValid&&(m=await Q(l,!0)));s&&(u._f.deps&&en(u._f.deps),F(a,m,r,b))}},eo=(e,t)=>{if(g(o.errors,t)&&e.focus)return e.focus(),1},en=async(e,t={})=>{let n,r;let a=D(e);if(i.resolver){let t=await K(v(e)?e:a);n=P(t),r=e?!a.some(e=>g(t,e)):n}else e?((r=(await Promise.all(a.map(async e=>{let t=g(l,e);return await Q(t&&t._f?{[e]:t}:t)}))).every(Boolean))||o.isValid)&&N():r=n=await Q(l);return k.state.next({...!j(e)||C.isValid&&n!==o.isValid?{}:{name:e},...i.resolver||!e?{isValid:n}:{},errors:o.errors}),t.shouldFocus&&!r&&Z(l,eo,e?a:A.mount),r},ea=e=>{let t={...b.mount?p:u};return v(e)?t:j(e)?g(t,e):e.map(e=>g(t,e))},el=(e,t)=>({invalid:!!g((t||o).errors,e),isDirty:!!g((t||o).dirtyFields,e),error:g((t||o).errors,e),isValidating:!!g(o.validatingFields,e),isTouched:!!g((t||o).touchedFields,e)}),es=(e,t,i)=>{let n=(g(l,e,{_f:{}})._f||{}).ref,{ref:r,message:a,type:s,...d}=g(o.errors,e)||{};x(o.errors,e,{...d,...t,ref:n}),k.state.next({name:e,errors:o.errors,isValid:!1}),i&&i.shouldFocus&&n&&n.focus&&n.focus()},ed=(e,t={})=>{for(let n of e?D(e):A.mount)A.mount.delete(n),A.array.delete(n),t.keepValue||(em(l,n),em(p,n)),t.keepError||em(o.errors,n),t.keepDirty||em(o.dirtyFields,n),t.keepTouched||em(o.touchedFields,n),t.keepIsValidating||em(o.validatingFields,n),i.shouldUnregister||t.keepDefaultValue||em(u,n);k.values.next({values:{...p}}),k.state.next({...o,...t.keepDirty?{isDirty:$()}:{}}),t.keepIsValid||N()},eu=({disabled:e,name:t,field:i,fields:o})=>{(y(e)&&b.mount||e||A.disabled.has(t))&&(e?A.disabled.add(t):A.disabled.delete(t),V(t,ek(i?i._f:g(o,t)._f),!1,!1,!0))},ec=(e,t={})=>{let o=g(l,e),n=y(t.disabled)||y(i.disabled);return x(l,e,{...o||{},_f:{...o&&o._f?o._f:{ref:{name:e}},name:e,mount:!0,...t}}),A.mount.add(e),o?eu({field:o,disabled:y(t.disabled)?t.disabled:i.disabled,name:e}):L(e,!0,t.value),{...n?{disabled:t.disabled||i.disabled}:{},...i.progressive?{required:!!t.required,min:eE(t.min),max:eE(t.max),minLength:eE(t.minLength),maxLength:eE(t.maxLength),pattern:eE(t.pattern)}:{},name:e,onChange:ei,onBlur:ei,ref:n=>{if(n){ec(e,t),o=g(l,e);let i=v(n.value)&&n.querySelectorAll&&n.querySelectorAll("input,select,textarea")[0]||n,r=eA(i),a=o._f.refs||[];(r?a.find(e=>e===i):i===o._f.ref)||(x(l,e,{_f:{...o._f,...r?{refs:[...a.filter(ex),i,...Array.isArray(g(u,e))?[{}]:[]],ref:{type:i.type,name:e}}:{ref:i}}}),L(e,!1,void 0,i))}else(o=g(l,e,{}))._f&&(o._f.mount=!1),(i.shouldUnregister||t.shouldUnregister)&&!(c(A.array,e)&&b.action)&&A.unMount.add(e)}}},ep=()=>i.shouldFocusError&&Z(l,eo,A.mount),eh=(e,t)=>async n=>{let r;n&&(n.preventDefault&&n.preventDefault(),n.persist&&n.persist());let a=h(p);if(A.disabled.size)for(let e of A.disabled)x(a,e,void 0);if(k.state.next({isSubmitting:!0}),i.resolver){let{errors:e,values:t}=await U();o.errors=e,a=t}else await Q(l);if(em(o.errors,"root"),P(o.errors)){k.state.next({errors:{}});try{await e(a,n)}catch(e){r=e}}else t&&await t({...o.errors},n),ep(),setTimeout(ep);if(k.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:P(o.errors)&&!r,submitCount:o.submitCount+1,errors:o.errors}),r)throw r},ef=(e,t={})=>{let n=e?h(e):u,r=h(n),a=P(e),s=a?u:r;if(t.keepDefaultValues||(u=n),!t.keepValues){if(t.keepDirtyValues)for(let e of Array.from(new Set([...A.mount,...Object.keys(eS(u,p))])))g(o.dirtyFields,e)?x(s,e,g(p,e)):et(e,g(s,e));else{if(m&&v(e))for(let e of A.mount){let t=g(l,e);if(t&&t._f){let e=Array.isArray(t._f.refs)?t._f.refs[0]:t._f.ref;if(Y(e)){let t=e.closest("form");if(t){t.reset();break}}}}l={}}p=i.shouldUnregister?t.keepDefaultValues?h(u):{}
4:h(s),k.array.next({values:{...s}}),k.values.next({values:{...s}})}A={mount:t.keepDirtyValues?A.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},b.mount=!C.isValid||!!t.keepIsValid||!!t.keepDirtyValues,b.watch=!!i.shouldUnregister,k.state.next({submitCount:t.keepSubmitCount?o.submitCount:0,isDirty:!a&&(t.keepDirty?o.isDirty:!!(t.keepDefaultValues&&!ey(e,u))),isSubmitted:!!t.keepIsSubmitted&&o.isSubmitted,dirtyFields:a?{}:t.keepDirtyValues?t.keepDefaultValues&&p?eS(u,p):o.dirtyFields:t.keepDefaultValues&&e?eS(u,e):t.keepDirty?o.dirtyFields:{},touchedFields:t.keepTouched?o.touchedFields:{},errors:t.keepErrors?o.errors:{},isSubmitSuccessful:!!t.keepIsSubmitSuccessful&&o.isSubmitSuccessful,isSubmitting:!1})},eg=(e,t)=>ef(W(e)?e(p):e,t);return{control:{register:ec,unregister:ed,getFieldState:el,handleSubmit:eh,setError:es,_executeSchema:U,_getWatch:X,_getDirty:$,_updateValid:N,_removeUnmounted:()=>{for(let e of A.unMount){let t=g(l,e);t&&(t._f.refs?t._f.refs.every(e=>!ex(e)):!ex(t._f.ref))&&ed(e)}A.unMount=new Set},_updateFieldArray:(e,t=[],n,r,a=!0,s=!0)=>{if(r&&n&&!i.disabled){if(b.action=!0,s&&Array.isArray(g(l,e))){let t=n(g(l,e),r.argA,r.argB);a&&x(l,e,t)}if(s&&Array.isArray(g(o.errors,e))){let t=n(g(o.errors,e),r.argA,r.argB);a&&x(o.errors,e,t),ej(o.errors,e)}if(C.touchedFields&&s&&Array.isArray(g(o.touchedFields,e))){let t=n(g(o.touchedFields,e),r.argA,r.argB);a&&x(o.touchedFields,e,t)}C.dirtyFields&&(o.dirtyFields=eS(u,p)),k.state.next({name:e,isDirty:$(e,t),dirtyFields:o.dirtyFields,errors:o.errors,isValid:o.isValid})}else x(p,e,t)},_updateDisabledField:eu,_getFieldArray:e=>f(g(b.mount?p:u,e,i.shouldUnregister?g(u,e,[]):[])),_reset:ef,_resetDefaultValues:()=>W(i.defaultValues)&&i.defaultValues().then(e=>{eg(e,i.resetOptions),k.state.next({isLoading:!1})}),_updateFormState:e=>{o={...o,...e}},_disableForm:e=>{y(e)&&(k.state.next({disabled:e}),Z(l,(t,i)=>{let o=g(l,i);o&&(t.disabled=o._f.disabled||e,Array.isArray(o._f.refs)&&o._f.refs.forEach(t=>{t.disabled=o._f.disabled||e}))},0,!1))},_subjects:k,_proxyFormState:C,_setErrors:e=>{o.errors=e,k.state.next({errors:o.errors,isValid:!1})},get _fields(){return l},get _formValues(){return p},get _state(){return b},set _state(value){b=value},get _defaultValues(){return u},get _names(){return A},set _names(value){A=value},get _formState(){return o},set _formState(value){o=value},get _options(){return i},set _options(value){i={...i,...value}}},trigger:en,register:ec,handleSubmit:eh,watch:(e,t)=>W(e)?k.values.subscribe({next:i=>e(X(void 0,t),i)}):X(e,t,!0),setValue:et,getValues:ea,reset:eg,resetField:(e,t={})=>{g(l,e)&&(v(t.defaultValue)?et(e,h(g(u,e))):(et(e,t.defaultValue),x(u,e,h(t.defaultValue))),t.keepTouched||em(o.touchedFields,e),t.keepDirty||(em(o.dirtyFields,e),o.isDirty=t.defaultValue?$(e,h(g(u,e))):$()),!t.keepError&&(em(o.errors,e),C.isValid&&N()),k.state.next({...o}))},clearErrors:e=>{e&&D(e).forEach(e=>em(o.errors,e)),k.state.next({errors:e?o.errors:{}})},unregister:ed,setError:es,setFocus:(e,t={})=>{let i=g(l,e),o=i&&i._f;if(o){let e=o.refs?o.refs[0]:o.ref;e.focus&&(e.focus(),t.shouldSelect&&W(e.select)&&e.select())}},getFieldState:el}}(e),formState:l});let p=t.current.control;return p._options=e,N({subject:p._subjects.state,next:e=>{I(e,p._proxyFormState,p._updateFormState,!0)&&u({...p._formState})}}),o.useEffect(()=>p._disableForm(e.disabled),[p,e.disabled]),o.useEffect(()=>{if(p._proxyFormState.isDirty){let e=p._getDirty();e!==l.isDirty&&p._subjects.state.next({isDirty:e})}},[p,l.isDirty]),o.useEffect(()=>{e.values&&!ey(e.values,i.current)?(p._reset(e.values,p._options.resetOptions),i.current=e.values,u(e=>({...e}))):p._resetDefaultValues()},[e.values,p]),o.useEffect(()=>{e.errors&&p._setErrors(e.errors)},[e.errors,p]),o.useEffect(()=>{p._state.mount||(p._updateValid(),p._state.mount=!0),p._state.watch&&(p._state.watch=!1,p._subjects.state.next({...p._formState})),p._removeUnmounted()}),o.useEffect(()=>{e.shouldUnregister&&p._subjects.values.next({values:p._getWatch()})},[e.shouldUnregister,p]),t.current.formState=E(l,p),t.current}},84292:function(e,t,i){"use strict";i.d(t,{Ab:function(){return o.Ab},Yz:function(){return o.Yz},ZI:function(){return o.ZI},q:function(){return o.q},q_:function(){return o.q_}});var o=i(14869)},98388:function(e,t,i){"use strict";i.d(t,{m6:function(){return ed}});let o=e=>{let t=l(e),{conflictingClassGroups:i,conflictingClassGroupModifiers:o}=e;return{getClassGroupId:e=>{let i=e.split("-");return""===i[0]&&1!==i.length&&i.shift(),n(i,t)||a(e)},getConflictingClassGroupIds:(e,t)=>{let n=i[e]||[];return t&&o[e]?[...n,...o[e]]:n}}},n=(e,t)=>{if(0===e.length)return t.classGroupId;let i=e[0],o=t.nextPart.get(i),r=o?n(e.slice(1),o):void 0;if(r)return r;if(0===t.validators.length)return;let a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},r=/^\[(.+)\]$/,a=e=>{if(r.test(e)){let t=r.exec(e)[1],i=t?.substring(0,t.indexOf(":"));if(i)return"arbitrary.."+i}},l=e=>{let{theme:t,classGroups:i}=e,o={nextPart:new Map,validators:[]};for(let e in i)s(i[e],o,e,t);return o},s=(e,t,i,o)=>
4{e.forEach(e=>{if("string"==typeof e){(""===e?t:d(t,e)).classGroupId=i;return}if("function"==typeof e){if(u(e)){s(e(o),t,i,o);return}t.validators.push({validator:e,classGroupId:i});return}Object.entries(e).forEach(([e,n])=>{s(n,d(t,e),i,o)})})},d=(e,t)=>{let i=e;return t.split("-").forEach(e=>{i.nextPart.has(e)||i.nextPart.set(e,{nextPart:new Map,validators:[]}),i=i.nextPart.get(e)}),i},u=e=>e.isThemeGetter,c=e=>{if(e<1)return{get:()=>void 0,set:()=>{}};let t=0,i=new Map,o=new Map,n=(n,r)=>{i.set(n,r),++t>e&&(t=0,o=i,i=new Map)};return{get(e){let t=i.get(e);return void 0!==t?t:void 0!==(t=o.get(e))?(n(e,t),t):void 0},set(e,t){i.has(e)?i.set(e,t):n(e,t)}}},p=e=>{let{prefix:t,experimentalParseClassName:i}=e,o=e=>{let t;let i=[],o=0,n=0,r=0;for(let a=0;a<e.length;a++){let l=e[a];if(0===o&&0===n){if(":"===l){i.push(e.slice(r,a)),r=a+1;continue}if("/"===l){t=a;continue}}"["===l?o++:"]"===l?o--:"("===l?n++:")"===l&&n--}let a=0===i.length?e:e.substring(r),l=m(a);return{modifiers:i,hasImportantModifier:l!==a,baseClassName:l,maybePostfixModifierPosition:t&&t>r?t-r:void 0}};if(t){let e=t+":",i=o;o=t=>t.startsWith(e)?i(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(i){let e=o;o=t=>i({className:t,parseClassName:e})}return o},m=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,h=e=>{let t=Object.fromEntries(e.orderSensitiveModifiers.map(e=>[e,!0]));return e=>{if(e.length<=1)return e;let i=[],o=[];return e.forEach(e=>{"["===e[0]||t[e]?(i.push(...o.sort(),e),o=[]):o.push(e)}),i.push(...o.sort()),i}},f=e=>({cache:c(e.cacheSize),parseClassName:p(e),sortModifiers:h(e),...o(e)}),v=/\s+/,g=(e,t)=>{let{parseClassName:i,getClassGroupId:o,getConflictingClassGroupIds:n,sortModifiers:r}=t,a=[],l=e.trim().split(v),s="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{isExternal:d,modifiers:u,hasImportantModifier:c,baseClassName:p,maybePostfixModifierPosition:m}=i(t);if(d){s=t+(s.length>0?" "+s:s);continue}let h=!!m,f=o(h?p.substring(0,m):p);if(!f){if(!h||!(f=o(p))){s=t+(s.length>0?" "+s:s);continue}h=!1}let v=r(u).join(":"),g=c?v+"!":v,y=g+f;if(a.includes(y))continue;a.push(y);let b=n(f,h);for(let e=0;e<b.length;++e){let t=b[e];a.push(g+t)}s=t+(s.length>0?" "+s:s)}return s};function y(){let e,t,i=0,o="";for(;i<arguments.length;)(e=arguments[i++])&&(t=b(e))&&(o&&(o+=" "),o+=t);return o}let b=e=>{let t;if("string"==typeof e)return e;let i="";for(let o=0;o<e.length;o++)e[o]&&(t=b(e[o]))&&(i&&(i+=" "),i+=t);return i},A=e=>{let t=t=>t[e]||[];return t.isThemeGetter=!0,t},x=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,w=/^\((?:(\w[\w-]*):)?(.+)\)$/i,_=/^\d+\/\d+$/,S=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,C=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,k=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,T=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,E=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,P=e=>_.test(e),I=e=>!!e&&!Number.isNaN(Number(e)),D=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&I(e.slice(0,-1)),N=e=>S.test(e),j=()=>!0,M=e=>C.test(e)&&!k.test(e),R=()=>!1,z=e=>T.test(e),L=e=>E.test(e),V=e=>!U(e)&&!W(e),F=e=>ee(e,en,R),U=e=>x.test(e),G=e=>ee(e,er,M),B=e=>ee(e,ea,I),Z=e=>ee(e,ei,R),q=e=>ee(e,eo,L),H=e=>ee(e,es,z),W=e=>w.test(e),Y=e=>et(e,er),K=e=>et(e,el),Q=e=>et(e,ei),$=e=>et(e,en),X=e=>et(e,eo),J=e=>et(e,es,!0),ee=(e,t,i)=>{let o=x.exec(e);return!!o&&(o[1]?t(o[1]):i(o[2]))},et=(e,t,i=!1)=>{let o=w.exec(e);return!!o&&(o[1]?t(o[1]):i)},ei=e=>"position"===e||"percentage"===e,eo=e=>"image"===e||"url"===e,en=e=>"length"===e||"size"===e||"bg-size"===e,er=e=>"length"===e,ea=e=>"number"===e,el=e=>"family-name"===e,es=e=>"shadow"===e,ed=function(e,...t){let i,o,n;let r=function(l){return o=(i=f(t.reduce((e,t)=>t(e),e()))).cache.get,n=i.cache.set,r=a,a(l)};function a(e){let t=o(e);if(t)return t;let r=g(e,i);return n(e,r),r}return function(){return r(y.apply(null,arguments))}}(()=>{let e=A("color"),t=A("font"),i=A("text"),o=A("font-weight"),n=A("tracking"),r=A("leading"),a=A("breakpoint"),l=A("container"),s=A("spacing"),d=A("radius"),u=A("shadow"),c=A("inset-shadow"),p=A("text-shadow"),m=A("drop-shadow"),h=A("blur"),f=A("perspective"),v=A("aspect"),g=A("ease"),y=A("animate"),b=()=>["auto","avoid","all","avoid-page","page","left","right","column"],x=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],w=()=>[...x(),W,U],_=()=>["auto","hidden","clip","visible","scroll"],S=()=>["auto","contain","none"],C=()=>[W,U,s],k=()=>[P,"full","auto",...C()],T=()=>[D,"none","subgrid",W,U],E=()=>["auto",{span:["full",D,W,U]},D,W,U],M=()=>[D,"auto",W,U],R=()=>["auto","min","max","fr",W,U],z=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],L=()=>["start","end","center","stretch","center-safe","end-safe"],ee=()=>["auto",...C()],et=()=>[P,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...C()],ei=()=>[e,W,U],eo=()=>[...x(),Q,Z,{position:[W,U]}],en=()=>["no-repeat",{repeat:["","x","y","space","round"]}],er=()=>["auto","cover","contain",$,F,{size:[W,U]}],ea=()=>[O,Y,G],el=()=>["","none","full",d,W,U],es=()=>["",I,Y,G],ed=()=>["solid","dashed","dotted","double"],eu=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],ec=()=>[I,O,Q,Z],ep=()=>["","none",h,W,U],em=()=>["none",I,W,U],eh=()=>["none",I,W,U],ef=()=>[I,W,U],ev=()=>[P,"full",...C()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[N],breakpoint:[N],color:[j],container:[N],"drop-shadow":[N],ease:["in","out","in-out"],font:[V],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[N],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[N],shadow:[N],spacing:["px",I],text:[N],"text-shadow":[N],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",P,U,W,v]}
vendor: 5,586 bytes, line 4
4],container:["container"],columns:[{columns:[I,U,W,l]}],"break-after":[{"break-after":b()}],"break-before":[{"break-before":b()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:w()}],overflow:[{overflow:_()}],"overflow-x":[{"overflow-x":_()}],"overflow-y":[{"overflow-y":_()}],overscroll:[{overscroll:S()}],"overscroll-x":[{"overscroll-x":S()}],"overscroll-y":[{"overscroll-y":S()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:k()}],"inset-x":[{"inset-x":k()}],"inset-y":[{"inset-y":k()}],start:[{start:k()}],end:[{end:k()}],top:[{top:k()}],right:[{right:k()}],bottom:[{bottom:k()}],left:[{left:k()}],visibility:["visible","invisible","collapse"],z:[{z:[D,"auto",W,U]}],basis:[{basis:[P,"full","auto",l,...C()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[I,P,"auto","initial","none",U]}],grow:[{grow:["",I,W,U]}],shrink:[{shrink:["",I,W,U]}],order:[{order:[D,"first","last","none",W,U]}],"grid-cols":[{"grid-cols":T()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":T()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":R()}],"auto-rows":[{"auto-rows":R()}],gap:[{gap:C()}],"gap-x":[{"gap-x":C()}],"gap-y":[{"gap-y":C()}],"justify-content":[{justify:[...z(),"normal"]}],"justify-items":[{"justify-items":[...L(),"normal"]}],"justify-self":[{"justify-self":["auto",...L()]}],"align-content":[{content:["normal",...z()]}],"align-items":[{items:[...L(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...L(),{baseline:["","last"]}]}],"place-content":[{"place-content":z()}],"place-items":[{"place-items":[...L(),"baseline"]}],"place-self":[{"place-self":["auto",...L()]}],p:[{p:C()}],px:[{px:C()}],py:[{py:C()}],ps:[{ps:C()}],pe:[{pe:C()}],pt:[{pt:C()}],pr:[{pr:C()}],pb:[{pb:C()}],pl:[{pl:C()}],m:[{m:ee()}],mx:[{mx:ee()}],my:[{my:ee()}],ms:[{ms:ee()}],me:[{me:ee()}],mt:[{mt:ee()}],mr:[{mr:ee()}],mb:[{mb:ee()}],ml:[{ml:ee()}],"space-x":[{"space-x":C()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":C()}],"space-y-reverse":["space-y-reverse"],size:[{size:et()}],w:[{w:[l,"screen",...et()]}],"min-w":[{"min-w":[l,"screen","none",...et()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[a]},...et()]}],h:[{h:["screen","lh",...et()]}],"min-h":[{"min-h":["screen","lh","none",...et()]}],"max-h":[{"max-h":["screen","lh",...et()]}],"font-size":[{text:["base",i,Y,G]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[o,W,B]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",O,U]}],"font-family":[{font:[K,U,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[n,W,U]}],"line-clamp":[{"line-clamp":[I,"none",W,B]}],leading:[{leading:[r,...C()]}],"list-image":[{"list-image":["none",W,U]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",W,U]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:ei()}],"text-color":[{text:ei()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ed(),"wavy"]}],"text-decoration-thickness":[{decoration:[I,"from-font","auto",W,G]}],"text-decoration-color":[{decoration:ei()}],"underline-offset":[{"underline-offset":[I,"auto",W,U]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W,U]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W,U]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:eo()}],"bg-repeat":[{bg:en()}],"bg-size":[{bg:er()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},D,W,U],radial:["",W,U],conic:[D,W,U]},X,q]}],"bg-color":[{bg:ei()}],"gradient-from-pos":[{from:ea()}
4],"gradient-via-pos":[{via:ea()}],"gradient-to-pos":[{to:ea()}],"gradient-from":[{from:ei()}],"gradient-via":[{via:ei()}],"gradient-to":[{to:ei()}],rounded:[{rounded:el()}],"rounded-s":[{"rounded-s":el()}],"rounded-e":[{"rounded-e":el()}],"rounded-t":[{"rounded-t":el()}],"rounded-r":[{"rounded-r":el()}],"rounded-b":[{"rounded-b":el()}],"rounded-l":[{"rounded-l":el()}],"rounded-ss":[{"rounded-ss":el()}],"rounded-se":[{"rounded-se":el()}],"rounded-ee":[{"rounded-ee":el()}],"rounded-es":[{"rounded-es":el()}],"rounded-tl":[{"rounded-tl":el()}],"rounded-tr":[{"rounded-tr":el()}],"rounded-br":[{"rounded-br":el()}],"rounded-bl":[{"rounded-bl":el()}],"border-w":[{border:es()}],"border-w-x":[{"border-x":es()}],"border-w-y":[{"border-y":es()}],"border-w-s":[{"border-s":es()}],"border-w-e":[{"border-e":es()}],"border-w-t":[{"border-t":es()}],"border-w-r":[{"border-r":es()}],"border-w-b":[{"border-b":es()}],"border-w-l":[{"border-l":es()}],"divide-x":[{"divide-x":es()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":es()}
vendor: 5,530 bytes, line 4
4],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ed(),"hidden","none"]}],"divide-style":[{divide:[...ed(),"hidden","none"]}],"border-color":[{border:ei()}],"border-color-x":[{"border-x":ei()}],"border-color-y":[{"border-y":ei()}],"border-color-s":[{"border-s":ei()}],"border-color-e":[{"border-e":ei()}],"border-color-t":[{"border-t":ei()}],"border-color-r":[{"border-r":ei()}],"border-color-b":[{"border-b":ei()}],"border-color-l":[{"border-l":ei()}],"divide-color":[{divide:ei()}],"outline-style":[{outline:[...ed(),"none","hidden"]}],"outline-offset":[{"outline-offset":[I,W,U]}],"outline-w":[{outline:["",I,Y,G]}],"outline-color":[{outline:ei()}],shadow:[{shadow:["","none",u,J,H]}],"shadow-color":[{shadow:ei()}],"inset-shadow":[{"inset-shadow":["none",c,J,H]}],"inset-shadow-color":[{"inset-shadow":ei()}],"ring-w":[{ring:es()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:ei()}],"ring-offset-w":[{"ring-offset":[I,G]}],"ring-offset-color":[{"ring-offset":ei()}],"inset-ring-w":[{"inset-ring":es()}],"inset-ring-color":[{"inset-ring":ei()}],"text-shadow":[{"text-shadow":["none",p,J,H]}],"text-shadow-color":[{"text-shadow":ei()}],opacity:[{opacity:[I,W,U]}],"mix-blend":[{"mix-blend":[...eu(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":eu()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[I]}],"mask-image-linear-from-pos":[{"mask-linear-from":ec()}],"mask-image-linear-to-pos":[{"mask-linear-to":ec()}],"mask-image-linear-from-color":[{"mask-linear-from":ei()}],"mask-image-linear-to-color":[{"mask-linear-to":ei()}],"mask-image-t-from-pos":[{"mask-t-from":ec()}],"mask-image-t-to-pos":[{"mask-t-to":ec()}],"mask-image-t-from-color":[{"mask-t-from":ei()}],"mask-image-t-to-color":[{"mask-t-to":ei()}],"mask-image-r-from-pos":[{"mask-r-from":ec()}],"mask-image-r-to-pos":[{"mask-r-to":ec()}],"mask-image-r-from-color":[{"mask-r-from":ei()}],"mask-image-r-to-color":[{"mask-r-to":ei()}],"mask-image-b-from-pos":[{"mask-b-from":ec()}],"mask-image-b-to-pos":[{"mask-b-to":ec()}],"mask-image-b-from-color":[{"mask-b-from":ei()}],"mask-image-b-to-color":[{"mask-b-to":ei()}],"mask-image-l-from-pos":[{"mask-l-from":ec()}],"mask-image-l-to-pos":[{"mask-l-to":ec()}],"mask-image-l-from-color":[{"mask-l-from":ei()}],"mask-image-l-to-color":[{"mask-l-to":ei()}],"mask-image-x-from-pos":[{"mask-x-from":ec()}],"mask-image-x-to-pos":[{"mask-x-to":ec()}],"mask-image-x-from-color":[{"mask-x-from":ei()}],"mask-image-x-to-color":[{"mask-x-to":ei()}],"mask-image-y-from-pos":[{"mask-y-from":ec()}],"mask-image-y-to-pos":[{"mask-y-to":ec()}],"mask-image-y-from-color":[{"mask-y-from":ei()}],"mask-image-y-to-color":[{"mask-y-to":ei()}],"mask-image-radial":[{"mask-radial":[W,U]}],"mask-image-radial-from-pos":[{"mask-radial-from":ec()}],"mask-image-radial-to-pos":[{"mask-radial-to":ec()}],"mask-image-radial-from-color":[{"mask-radial-from":ei()}],"mask-image-radial-to-color":[{"mask-radial-to":ei()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":x()}],"mask-image-conic-pos":[{"mask-conic":[I]}],"mask-image-conic-from-pos":[{"mask-conic-from":ec()}],"mask-image-conic-to-pos":[{"mask-conic-to":ec()}],"mask-image-conic-from-color":[{"mask-conic-from":ei()}],"mask-image-conic-to-color":[{"mask-conic-to":ei()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:eo()}],"mask-repeat":[{mask:en()}],"mask-size":[{mask:er()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",W,U]}],filter:[{filter:["","none",W,U]}],blur:[{blur:ep()}],brightness:[{brightness:[I,W,U]}],contrast:[{contrast:[I,W,U]}],"drop-shadow":[{"drop-shadow":["","none",m,J,H]}],"drop-shadow-color":[{"drop-shadow":ei()}],grayscale:[{grayscale:["",I,W,U]}],"hue-rotate":[{"hue-rotate":[I,W,U]}],invert:[{invert:["",I,W,U]}],saturate:[{saturate:[I,W,U]}],sepia:[{sepia:["",I,W,U]}],"backdrop-filter":[{"backdrop-filter":["","none",W,U]}],"backdrop-blur":[{"backdrop-blur":ep()}],"backdrop-brightness":[{"backdrop-brightness":[I,W,U]}],"backdrop-contrast":[{"backdrop-contrast":[I,W,U]}],"backdrop-grayscale":[{"backdrop-grayscale":["",I,W,U]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[I,W,U]}],"backdrop-invert":[{"backdrop-invert":["",I,W,U]}],"backdrop-opacity":[{"backdrop-opacity":[I,W,U]}],"backdrop-saturate":[{"backdrop-saturate":[I,W,U]}],"backdrop-sepia":[{"backdrop-sepia":["",I,W,U]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":C()}],"border-spacing-x":[{"border-spacing-x":C()}],"border-spacing-y":[{"border-spacing-y":C()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",W,U]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[I,"initial",W,U]}],ease:[{ease:["linear","initial",g,W,U]}],delay:[{delay:[I,W,U]}],animate:[{animate:["none",y,W,U]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[f,W,U]}],"perspective-origin":[{"perspective-origin":w()}],rotate:[{rotate:em()}],"rotate-x":[{"rotate-x":em()}],"rotate-y":[{"rotate-y":em()}
4],"rotate-z":[{"rotate-z":em()}],scale:[{scale:eh()}],"scale-x":[{"scale-x":eh()}],"scale-y":[{"scale-y":eh()}],"scale-z":[{"scale-z":eh()}],"scale-3d":["scale-3d"],skew:[{skew:ef()}],"skew-x":[{"skew-x":ef()}],"skew-y":[{"skew-y":ef()}],transform:[{transform:[W,U,"","none","gpu","cpu"]}],"transform-origin":[{origin:w()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:ev()}],"translate-x":[{"translate-x":ev()}],"translate-y":[{"translate-y":ev()}],"translate-z":[{"translate-z":ev()}],"translate-none":["translate-none"],accent:[{accent:ei()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:ei()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W,U]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W,U]}],fill:[{fill:["none",...ei()]}],"stroke-w":[{stroke:[I,Y,G,B]}],stroke:[{stroke:["none",...ei()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}})},97582:function(e,t,i){"use strict";i.d(t,{ev:function(){return n},pi:function(){return o}});var o=function(){return(o=Object.assign||function(e){for(var t,i=1,o=arguments.length;i<o;i++)for(var n in t=arguments[i])Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e}).apply(this,arguments)};function n(e,t,i){if(i||2==arguments.length)for(var o,n=0,r=t.length;n<r;n++)!o&&n in t||(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError},40198:function(e){"use strict";
4e.exports=JSON.parse('{"v":"4.8.0","meta":{"g":"LottieFiles AE 3.4.1","a":"","k":"","d":"","tc":""},"fr":30,"ip":0,"op":91,"w":1080,"h":1080,"nm":"UpgradeComplete","ddd":0,"assets":[{"id":"image_0","w":1080,"h":1080,"u":"","p":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAABDgAAAQ4CAYAAADsEGyPAAAACXBIWXMAAAABAAAAAQBPJcTWAAAAJHpUWHRDcmVhdG9yAAAImXNMyU9KVXBMK0ktUnBNS0tNLikGAEF6Bs5qehXFAAAgAElEQVR4nOzdz3Jc153Y8d9tQLF2YJ5A3MukwScQ8gRGlo4oCVzMhOLQdk9VZsqZStXQO5crqYHHGlvxTM00Je1DP0HAJ+C/cE8+QYhdbAF9s6CaYpNo4uKc233vPffzWcmHB/e0z3hI/r5qNCIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACgHVXXLwAAKM/04MHlk5Pty2f92vb2ybPD2bVnm31FAEDpBA4AIMvt60/2JpPYq+tqN6LejYgPGn7p84jqYUQcbW1VR4ezDx+u8WUCAIUTOACAC7t9/fF+ROxXk2o/6thp5aFVHNfz+l5ENfvimytHrTwTABgNgQMAaGR68ODS6el7BxH1NJq/SyPV84j6zm+/vjpb8zkAQCEEDgDgXD/79MmdOmLa2rs1mhM6AIBGBA4AYKXb1x/vV1V1GOt/x8Z5HtV1TH3rCgCwisABALxlevDg0snJ1mFVVZ91/VpeV1Xxm3/86sq069cBAPSPwAEALJkePN09PZ3fi+7ftbHKo62tk73D2bUXXb8QAKA/Jl2/AACgP25ff7x/Op8fRX/jRkTEj07n28+mB093u34hAEB/eAcHABARET/95PFBRPVvXb+Oxqo43ppM9g5nHz7s+qUAAN0TOACA4cWNBZEDAPiOwAEAIzfYuLEgcgAAIXAAwKgNPm4siBwAMHoCBwCMVDFxY0HkAIBREzgABmJ68ODSycn2bkREVdWXq6q6HBExn8dRRMT29smzw9m1Z129PoaluLixIHJwQTenDy7H9vbliIjJPPbmERFRP4tJ9Swi4v2Tk4eHh34kMcAQCBwAPTU9eHDp9HRrP2KyH1HvRvMf23m/quLhfF4fffHN1XvrfI0MU7FxY0Hk4B0+nz7er6tqr4rYjYiPXv/bcL34h7f/hvw86uphbM3vvf/t6T3BA6CfBA6Anrl9/cleVVXTiPrHbTyvruu7EXFP7CBiBHFjQeTgNZ9PH+9HFfsR1WdLv9AsbpyxXv2xquez3/8Pv68C9InAAdATL8NGzKL5OzUu6nlEdbi19e3scObfPo7RaOLGgsgxatPpg0t/ivcOoqqncdbvq8lxY2n9edRx8OV/v3KU/EIBaI3AAdCx6cGDy6en7x229Y6Nc1VxXEUc/uNXV+5s5Dx6YXRxY0HkGKVb0yd36ohpVLFz5oZ24sbr/+GPsfXt9Mtf+RwkgC4JHAAdun398X41qWZRr/hL+Ho9r+t66ltXyjfauLEgcozG59PH+xHVYUR80CRMtBM3Xjmuqvrg97/2eypAVwQOgI787NMnd+o6/r7r1xER97e2Tg78BJYyjT5uLIgcRbs5fXC5iu1ZRHwUEY3CRMtx4/X1X375a++QA+iCwAHQgdvXH8+q6o0Pu+tSFcdR19Pffn111vVLoT3ixhtEjiLdmj4+qF++a+PlO+G6jRuLE+5++eurByt2A7AmAgfAhvUubrymruu729unUx9COnzixgoiRzFefojo1uHST0bpRdz4zqS+++WvRA6ATRI4ADbop5/8n2lE/Q9dv45zPNramhwYAIdL3DiHyDF4t6ZPd+uYzyLiR68W+xQ3qpdn1XX113/49Q8PV+wCoGUCB8CG3L7+eL+qqv/V9etopIrjeh77X3zjRx8OjbjRkMgxWDenT/aqiHsRr304cw/jxqtz6/o//sEHjwJshMABsAHTgweXTufbzzr6aSkZ6hs+l2M4xI0LEjkG57vP21j+33iP48Z3a8d/ev/k8uyOb/0DWLdJ1y8AYAxOT9/r6kfBZqr+7WefPrnT9avgfOJGgjp2Tufzo+nB092uXwrnuzV9cmeAcSMiYucH/++92YqvAqBF3sEBsGa3rz/Zq6r4312/jhx1Xd/94hsfltdX4kYm7+Tovc+nj2dLHyYaMZS48fp//A9f/sq3/QGsk3dwAKxZVcWs69eQq6qqz25ffzzr+nXwNnGjFd7J0WMlxI2IiHkM/88CgL4TOADW6OXwGR90/TraIHL0j7jRgu8HUZGjh0qJGxERVRUf3Py7xwcrngRACwQOgLWq7nT9CtokcvSHuNGCtwdRkaNHSoobi/V5XdafCQB9I3AArMnt64/3o5B3b7xO5OieuNGC1YPozmktcnStxLjx3T9+8Jf/9fH+ip0AZBI4ANakqiYHXb+GdRE5uiNutOD8QVTk6FCpcePVUsF/NgB0zU9RAViD6cGDS6en2/+369exbn66ymaJGy24wCBaRxzPq8ne7/x0lY0pPW4s1v70707+/ezOtRcrvhKARN7BAbAGp6dbo3gLsndybI640YKLxY2IKnYmMT+65Z0cGzGWuBER8f6fx/FnBMCmCRwAazEZzV9eRY71EzdacPG4sSBybMCY4kZERD2iPyMANkngAFiL+sddv4JNEjnWR9xoQXrcWBA51mhsceOlcf0ZAbApAgdAy25ff7LX9WvogsjRPnGjBflxY7F/Z1KJHG0bZ9x4uX7zv43zzwqAdRI4AFo2mcRe16+hKyJHe8SNFrQXNxZEjhaNOW58Z2/FDgASCRwALavratTDj8iRT9xoQftxY0Hka
4IG44c8KgHUQOABaV4/+L60iRzpxowXrixuL9Z3JRORIJW68VPuzAqB1AgdA+z7o+gX0gchxceJGC9YfNxZEjgTixtKSPysAWiZwALRorB8wuorI0Zy40YLNxY2FncnW/OjWX4gcTYgby2ofNArQOoEDgLUSOc4nbrRg83FjsbYzmYsc5xE3ltWr9gOQReAAaNGYf4LKu4gcq4kbLegubiyIHO8gbix7PW7M/SQVgFYJHABshMjxNnGjBd3HjYWdSS1yvEncWOadGwDrJXAAtOtS1y+gz0SO74kbLehP3Pj+21VEjlfEjWVnxY3KnxkArRI4AFpU12GwOYfIIW60on9xY3HWTiVyiBtvWPXOjbryZwZAmwQOADZuzJFD3GhBf+PGYm2nivFGDnFj2cpvS/HtKgCtEzgA6MQYI4e40YL+x42FUUYOcWOZuAGwWQIHAJ0ZU+QQN1ownLixMKrIIW4sEzcANk/gAKBTY4gc4kYLhhc3Fus7VVV+5BA3lokbAN0QOADoXMmRQ9xowXDjxkLRkUPcWCZuAHRH4ACgF0qMHOJGC4YfNxaKjBzixrILxw3RA6BVAgcAvVFS5BA3WlBO3Fis71STciKHuLFM3ADonsABQK+UEDnEjRaUFzcWiogc4sYycQOgHwQOAHpnyJFD3GhBuXFj4WXkuDXMyCFuLBM3APpD4ACgl4YYOcSNFpQfNxbrO9V8eJFD3FgmbgD0i8ABQG8NKXJMD57uihuZxhM3FgYVOcSNZa3EDX8TB2iV31YB6LUhRI7pwdPd0/n8qOvXMWjjixsLg4gc4sayVuKGd3MAtE7gAKD3+hw5XsWNOna6fi2DNd64sVjfibq/kUPcWCZuAPSXwAHAIPQxcogbLRA3Fmf1MnKIG8vEDYB+EzgAGIw+RQ5xowXixpvD+U5EfyKHuLFM3ADoP4EDgEHpQ+QQN1ogbqwaznsROcSNZeIGwDAIHAAMTpeRQ9xogbhx3nDeaeQQN5aJGwDDIXAAMEhdRA5xowXiRtPhfCeqzUcOcWPZWuOG6AHQOoEDgMHaZOQQN1ogblx0ON9o5BA3lokbAMMjcAAwaJuIHOJGC8SN1OF8I5FD3Fi2qbjx1n8nALIIHAAM3jojh7jRAnEjdzjficn6Ioe4sUzcABgugQOAIqwjcogbLRA32hrO1xI5xI1l4gbAsAkcABSjzcghbrRA3Gh7OH8ZOabtRA5xY1knccNncQC0SuAAoChtRA5xowXixrqG8504zY8c4sYycQOgDAIHAMXJiRziRgvEjXUP51mRQ9xYJm4AlEPgAKBIKZFD3GiBuLGp4Twpcogby8QNgLIIHAAU6yKRQ9xogbix6eF8p66bRw5xY5m4AVAegQOAojWJHOJGC8SNbobzulnkEDeW9SZuCB4ArRI4ACjeuyKHuNECcaPb4fycyCFuLBM3AMq13fULAIBNqKrqs59+8uRyRD2r6+pZRMRkEvunp/Ofd/vKBk7c6MdwHrFT1/MHn08f362jmr18RH0poppGxEcXPXN09yduABRB4ABgTD6KqD6qvhsu6rcmKy5E3OjfcF5Xn1URL9+tUZ3xBe4v7zniBkCv+RYVAODixI2yh3P3l7RX3ADolsABAFyMuFH2cO7+kvaKGwDdEzgAgObEjbKHc/eXtDc5bogeAK0SOACAZsSNsodz95e0V9wA6A+BAwA4n7hR9nDu/pL2ihsA/SJwAADvJm6UPZy7v6S94gZA/wgcAMBq4kbZw7n7S9orbgD0k8ABAJxN3Ch7OHd/SXvFDYD+EjgAgLeJG2UP5+4vaa+4AdBvAgcAsEzcKHs4d39Je1uPG6IHQOsEDgDge+JG2cO5+0vaK24ADIPAAQC8JG6UPZy7v6S94gbAcAgcAIC4Ufpw7v6S9oobAMMicADA2IkbZQ/n7i9pr7gBMDwCBwCMmbhR9nDu/pL2bixu+Js4QKv8tgoAYyVulD2cu7+kvRuLG2fdHwBZBA4AGCNxo+zh3P0l7RU3AIZN4ACAsRE3yh7O3V/SXnEDYPgEDgAYE3Gj7OHc/SXtFTcAyiBwAMBYiBtlD+fuL2lvp3Fj1V4AkggcADAG4kbZw
47n7S9orbgCUReAAgNKJG2UP5+4vaa+4AVAegQMASiZulD2cu7+kveIGQJkEDgAolbhR9nDu/pL2ihsA5RI4AKBE4kbZw7n7S9orbgCUTeAAgNKIG2UP5+4vaW8v44boAdAqgQMASiJulD2cu7+kveIGwDgIHABQCnGj7OHc/SXtFTcAxkPgAIASiBtlD+fuL2mvuAEwLgIHAAyduFH2cO7+kvaKGwDjI3AAwJCJG2UP5+4vaa+4ATBOAgcADJW4UfZw7v6S9oobAOMlcADAEIkbZQ/n7i9p76DihugB0DqBAwCGRtwoezh3f0l7xQ0ABA4AGBJxo+zh3P0l7RU3AIgQOABgOMSNsodz95e0V9wAYEHgAIAhEDfKHs7dX9LewccNfxMHaJXfVgGg78SNsodz95e0d/Bxw7s5AFoncABAn4kbZQ/n7i9pr7gBwFkEDgDoK3Gj7OHc/SXtFTcAWEXgAIA+EjfKHs7dX9JecQOAdxE4AKBvxI2yh3P3l7RX3ADgPAIHAPSJuFH2cO7+kvYWGzdED4BWCRwA0BfiRtnDuftL2ltq3Fh5fwAkEzgAoA/EjbKHc/eXtFfcAOAiBA4A6Jq4UfZw7v6S9oobAFyUwAEAXRI3yh7O3V/SXnEDgBQCBwB0Rdwoezh3f0l7xQ0AUgkcANAFcaPs4dz9Je0dXdwQPQBaJXAAwKaJG2UP5+4vaa+4AUAugQMANkncKHs4d39Je8UNANogcADApogbZQ/n7i9pr7gBQFsEDgDYBHGj7OHc/SXtFTcAaJPAAQDrJm6UPZy7v6S94gYAbRM4AGCdxI2yh3P3l7RX3ABgHQQOAFgXcaPs4dz9Je0VN85ZByCZwAEA6yBulD2cu7+kveLGOesAZBE4AKBt4kbZw7n7S9orbpyzDkA2gQMA2iRulD2cu7+kveLGOesAtELgAIC2iBtlD+fuL2mvuHHOOgCtETgAoA3iRtnDuftL2itunLPub+IArfLbKgDkEjfKHs7dX9JecSNxHYBkAgcA5BA3yh7O3V/SXnEjcR2ALAIHAKQSN8oezt1f0l5xI3EdgGwCBwCkEDfKHs7dX9JecSNxHYBWCBwAcFHiRtnDuftL2itutHcmAGkEDgC4CHGj7OHc/SXtFTfaOxOAdAIHADQlbpQ9nLu/pL3iRntnApBH4ACAJsSNsodz95e0V9xo70wA8gkcAHAecaPs4dz9Je0VN/LPnK/4UgDSCBwA8C7iRtnDuftL2itu5J/51n8vALIJHACwirhR9nDu/pL2ihv5Z577v0EAkggcAHAWcaPs4dz9Je0VN/LPFDcA1kfgAIA3iRtlD+fuL2mvuJF/prgBsF4CBwC8Ttwoezh3f0l7xY38M8UNgPUTOABgQdwoezh3f0l7xY38M8UNgM0QOAAgQtwofTh3f0l7xY38M8UNgM0ROABA3Ch7OHd/SXvFjfwz3/m/QcEDoHUCBwDjJm6UPZy7v6S94kb+meIGwOYJHACMl7hR9nDu/pL2ihv5Z4obAN0QOAAYJ3Gj7OHc/SXtFTfyzxQ3ALojcAAwPuJG2cO5+0vaK27knyluAHRL4ABgXMSNsodz95e0V9zIPzMpbvibOECr/LYKwHiIG2UP5+4vaa+4kX9mUtzwjg6A1gkcAIyDuFH2cO7+kvaKG/lnihsA/SFwAFA+caPs4dz9Je0VN/LPFDcA+kXgAKBs4kbZw7n7S9orbuSfKW4A9I/AAUC5xI2yh3P3l7RX3Mg/U9wA6CeBA4AyiRtlD+fuL2mvuJF/ZqtxQ/QAaJXAAUB5xI2yh3P3l7RX3Mg/U9wA6DeBA4CyiBtlD+fuL2mvuJF/prgB0H8CBwDlEDfKHs7dX9JecSP/THEDYBgEDgDKIG6UPZy7v6S94kb+meIGwHAIHAAMn7hR9nDu/pL2ihv5Z4obAMMicAAwbOJG2cO5+0vaK27kn7mRuCF6ALRK4ABguMSNsodz95e0V9zIP1PcABgmgQOAYRI3yh7O3V/SXnEj/8xNxo237hCALAIHAMMjbpQ9nLu/pL3iRv6Z4gbAsAkcAAyLuFH2cO7+kvaKG/lnihsAwydwADAc4kbZw7n7S9orbuSfKW4AlEHgAGAYxI2yh3P3l7RX3Mg/U9wAKIfAAUD/iRtlD+fuL2mvuJF/ZqdxY9V+AJIJHAD0m7hR9nDu/pL2ihv5Z4obAOUROADoL3Gj7OHc/SXtFTfyzxQ3AMokcADQT+JG2cO5+0vaK27knyluAJRL4ACgf8SNsodz95e0V9zIP7N3ccPfxAFa5bdVAPpF3Ch7OHd/SXvFjfwzexc3vJsDoHUCBwD9IW6UPZy7v6S94kb+meIGwDgIHAD0g7hR9nDu/pL2ihv5Z4obAOMhcADQPXGj7OHc/SXtFTfyzxQ3AMZF4ACgW+JG2cO5+0vaK27knyluAIyPwAFAd8SNsodz95e0V9zIP3MwcUP0AGiVwAFAN8SNsodz95e0V9zIP1PcABgvgQOAzRM3yh7O3V/SXnEj/0xxA2DcBA4ANkvcKHs4d39Je8WN/DPFDQAEDgA2R9woezh3f0l7xY38M8UNACIEDgA2Rdwoezh3f0l7xY38MwcdNwQPgFYJHACsn7hR9nDu/pL2ihv5Z4obALxO4ABgvcSNsodz95e0V9zIP1PcAOBNAgcA6yNulD2cu7+kveJG/pniBgBnETgAWA9xo+zh3P0l7RU38s8UNwBYReAAoH3iRtnDuftL2itu5J8pbgDwLgIHAO0SN8oezt1f0l5xI/9McQOA8wgcALRH3Ch7OHd/SXvFjfwzi4wbZ/3fC4AsAgcA7RA3yh7O3V/SXnEj/0xxA4CmBA4A8okbZQ/n7i9pr7iRf6a4AcBFCBwA5BE3yh7O3V/SXnEj/0xxA4CLEjgASCdulD2cu7+kveJG/pniBgApBA4A0ogbZQ/n7i9pr7iRf+ao4oa/iQO0ym+rAFycuFH2cO7+kvaKG/lnjipurNoPQDKBA4CLETfKHs7dX9JecSP/THEDgFwCBwDNiRtlD+fuL2mvuJF/prgBQBsEDgCaETfKHs7dX9JecSP/THEDgLYIHACcT9woezh3f0l7xY38M8UNANokcADwbuJG2cO5+0vaK27knyluvGMdgCQCBwCriRtlD+fuL2mvuJF/prjxjnUAkgkcAJxN3Ch7OHd/SXvFjfwzxY13rAOQReAA4G3iRtnDuftL2itu5J8pbrxjHYBsAgcAy8SNsodz95e0V9zIP1PceMc6AK0QOAD4nrhR9nDu/pL2ihv5Z4ob71gHoDUCBwAviRtlD+fuL2mvuJF/priRsA5AEoEDAHGj9OHc/SXtFTfyzxQ3EtYBSCZwAIyduFH2cO7+kvaKG/lnihsJ6wBkETgAxkzcKHs4d39Je8WN/DPFjYR1ALIJHABjJW6UPZy7v6S94kb+meJGwjoArRA4AMZI3Ch7OHd/SXvFjfwzxY2EdQBaI3AAjI24UfZw7v6S9oob+WeKGy2dCUAygQNgTMSNsodz95e0V9zIP1PcaOlMALIIHABjIW6UPZy7v6S94kb+meJGS2cCkE3gABgDcaPs4dz9Je0VN/LPFDdaOhOAVggcAKUTN8oezt1f0l5xI/9McSPvzDPPASCLwAFQMnGj7OHc/SXtFTfyzxQ38s58dY6/iQO0ym+rAKUSN8oezt1f0l5xI/9McSPvzHP/fxiAZAIHQInEjbKHc/eXtFfcyD9T3Mg7U9wAWC+BA6A04kbZw7n7S9orbuSfKW7knSluAKyfwAHQqupFt8c3Xxc38s8TN/LOEzcarosbec8WNwBGQ+AAaFFV1Q+7O7z5uriRf564kXeeuNFwXdzIe3bf40bVcRQHKIzAAVACcaPs4dz9Je0VN/LPFDfyzjz3/uoOozhAgQQOgKETN8oezt1f0l5xI/9McSPvzKT7AyCLwAHQovl8w/82Ttwoezh3f0l7xY38M8WNvDPFDYBuCBwArdrg91OLG2UP5+4vaa+4kX+muJF35sXuz2dwALRJ4ABo0fb2ZDN/WRU3yh7O3V/SXnEj/0xxI+/MC9/fxGdwALRJ4ABo0eHsw/X/ZVXcKHs4d39Je8WN/DPFjbwzfVsKQPcEDoC2VXG8xmc3Xhc38s8TN/LOEzcarosbec8eatyoIiJOnq34VQASCBwAbatjPe/iEDfKHs7dX9JecSP/THEj78yc+5vduPZsxQ4AEggcAC2r6/pZ60Vba8AAABWQSURBVA8VN8oezt1f
40l5xI/9McSPvzMz7W9+7/QBGSuAAaNlkUj1r9YHiRtnDuftL2itu5J8pbuSdmXt/Vazp3X4AIyZwALRsPm/xU/HFjbKHc/eXtFfcyD9T3Mg7s5378yNiAdomcAC0bHt761krDxI3yh7O3V/SXnEj/0xxI+/M9u7Pj4gFaJvAAdCyVn5UrLhR9nDu/pL2ihv5Z4obeWe2en+xhs9rAhg5gQNgPe4nf6W4UfZw7v6S9oob+WeKG3lntn9/LX9eEwACB8A6VFXih8eJG2UP5+4vaa+4kX+muJF35jrub3bjytGKHQAkEjgA1qCuE763Wtwoezh3f0l7xY38M8WNvDPXcX91Fc9X7AAgg8ABsAZbW6dHF/oCcaPs4dz9Je0VN/LPFDfyzlzX/U3mlQ8YBVgDgQNgDQ5n155FNPw3dOJG2cO5+0vaK27knylu5J253vvzE1QA1kHgAFiTuq6Pzt0kbpQ9nLu/pL3iRv6Z4kbemeu/P4EDYB0EDoA1qao4eveG5uviRv554kbeeeJGw3VxI+/Zo4gbEREX/DZGABoROADW5J2fwyFulD2cu7+kveJG/pniRt6Zm7i/uornsxvXXqz4KgAyCBwAa7LyczjEjbKHc/eXtFfcyD9T3Mg7c1P3N4kG374IQBKBA2CNqiruLS+s2vj2kriRf564kXeeuNFwXdzIe/aI4kZExGk18fkbAGsicACs0Xz+2r+pEzfKHs7dX9JecSP/THEj78xN39/WaXW0YhcAmVb9NgxAS3766ZMXEbFz5i+KG82e0ffh3P0l7RU38s8UN/LO3Pj9VXH81adXLq3YCUAm7+AAWLM66ntn/oK40ewZfR/O3V/SXnEj/0xxI+/MTu6vXvHnAQCtEDgA1m0eb/+FVtxo9oy+D+fuL2mvuJF/priRd2ZX91ef9+PDAcgicACs2RffXL0XEcevFsSNZs/o+3Du/pL2ihv5Z4obeWd2eX9bp6fewQGwRgIHwAa8+jYVcaPZM/o+nLu/pL3iRv6Z4kbemR3f36PZjWsvVnwVAC0QOAA2YVLNxI2Gz+j7cO7+kvaKG/lniht5Z3Z9f3VUsxVfBUBLBA6ADfhiduUo6nj++pq4kX+euJF3nrjRcF3cyHu2uBEREVun3/r2FIA1EzgANqSaxGzxz+JG/nniRt554kbDdXEj79nixsKj2Y1rz1Z8NQAtETgANmQSJ7MIcWOQw7n7S9orbuSf2ZPhPO3Z4sZrr8O3pwBsgsABsCGHs2vPoqr+KG7knSdu5J0nbjRcFzfyni1uLPHtKQCbIXAAbFAd9eGZv2A4b7QubuSdJ240XBc38p4tbrzJt6cAbIjAAbBBX8yuHEUsf9io4bzZuriRd5640XBd3Mh7trjxlpVhG4DWCRwAG1ZFfee1/7BqU7O1N9YN53lnur+8M8WN/DP7NpyLG6vXG97f8dbpqW9PAdgQgQNgw347uzqLiOeG82br4kbeeeJGw3VxI+/Z4saKvfW92Y1rL1Y8DYCWCRwAXXjtR8YuMZwvETfyzhM3Gq6LG3nPFjdW7p1Mtnx7CsAGCRwAHdienxxGxPHSouF8ibiRd5640XBd3Mh7trjxrmc8mn384cMVTwRgDQQOgA4czq69iCq+/zd7hvMl4kbeeeJGw3VxI+/Z4sY7n1HXPlwUYNMEDoCOvHoXh+F8ibiRd5640XBd3Mh7trhx3jOef/3p1dmKpwKwJgIHQEfeehfHguE87znuL+854kbesxue2fPhPHmvuPHd11SVd28AdEDgAOjQF/965U5EPH+1YDjPe477y3uOuJH37IZn9n04T90rbrxyvPXtt7MVTwZgjQQOgI5VUd/57h9WbXjFcJ53pvvLO1PcyD9zAMN50l5xY8mhHw0L0A2BA6Bjv/3Xq7OYxP0zf9Fw3tqZ7i/vTHEj/8yBDOfiRmTd3/Hk5MS3pwB0ROAA6Ic7b60Yzls70/3lnSlu5J85kOFc3IjM+/PuDYBOCRwAPfDFv1w5iqjvvlownLd2pvvLO1PcyD9zMMO5uJF7f8+9ewOgWwIHQE9sn55O440fG2s4zzvT/eWdKW7knzmg4fxCe8WNt9frqr7j3RsA3RI4AHricHbtRTWpp4v/bDjPO9P95Z0pbuSfOaTh/CJ7xY0z1x99/fHV2YodAGyIwAHQI7/956uziLhvOM870/3lnSlu5J85sOG88V5x4+z1SR3TFTsA2CCBA6BnTrZPDuKNb1VZ0pfhsu/DuftL2itu5J85tOG86V5xY9V6fXf2yZWjFbsA2CCBA6Bnvvzy2rOI6s6Zv9iX4bLvw7m4kbRX3Mg/c3jDebO94sbK9ePJt6fevQHQEwIHQA/907/88LCKuL+02Jfhsu/DubiRtFfcyD9zgMN5o73ixur1OiofLArQIwIHQE9tf3uyHxHHEdGf4bLvw7m4kbRX3Mg/c4jDeZO94sY71uu4//X1H/qxsAA9InAA9NTh7NqLqqoPejNc9n04FzeS9oob+WcOcjhvsFfceOf68eTl5yUB0CMCB0CPffGHq/fqKn7z1i8Yzl+ek/LcxPWi7y/jGU3XxY38dXEjb73N+6ujujP7ybVnK3YD0JFVv40D0CN/9ZdPHkbEjyLCcL44J+W5ietF31/GM5quixv56+JG3nqr91fH/a8+ubK3YjcAHfIODoABeO/PJ3uR+KNjix7OxY2kveJG/pmDHc7P2StunLt+PDk52V+xG4COCRwAA3A4u/airid7Z/7iWIdzcSNpr7iRf+aAh3NxI/PMSR37fmoKQH8JHAAD8bt//vBhXdU3lhbHOpyLG0l7xY38M4c8nIsbmc+u4pezT64crfgKAHpg1W/rAPTUrf/85LCK+Ploh3NxI2mvuJF/5sCH85V7xY1Ge+9/9bHP3QDoO+/gABiY3/3PK9Oo6rtn/mLpw7m4kbRX3Mg/c+DD+cq94kaD9Uk8mvzZ524ADIHAATBA771/Oo2IR0uLpQ/n4kbSXnEj/8xBD+fiRt6zqzie1JMDn7sBMAwCB8AAHR5ee/He+yd7sYgcpQ/n4kbSXnEj/8yBD+cr94obzfZO5rE/+/jDhyu+CoCeETgABupV5KjiedHDubiRtFfcyD9z6MP5qr3iRrO9ddQ3fKgowLAIHAADdnh47UVdTfYj4vjVYknDubiRtFfcyD9z6MP5qr3iRuO9v/z646uzFV8FQE+t+u0egAG5devpbtTzo6hi58wNQxzOxY2kveJG/pkFDOdnrosbDfdW9d2v/tPVgxVfBUCPCRwAhbh16+luxPwo4o3IMcThXNxI2itu5J85+OF8xV5xo+FecQNg0AQOgIK8FTmGOJyLG0l7xY38Mwc/nK/YK2403CtuAAyez+AAKMjvfvfhw/n8ZLeu49Egh3NxI2mvuJF/5uCH8xV7xY2Ge8UNgCJ4BwdAgabTB5f+9O32URXxo1eLfR/OxY2kveJG/pmDH85X7BU3Gu4VNwCK4R0cAAU6PLz24gfvnexFFfcjov/DubiRtFfcyD9z8MP5ir3iRsO94gZAUbyDA6Bwf3X78ayO6rO3fqEvw7m4kbRX3Mg/c/DD+Yq94kazvXXUN/woWICyeAcHQOH+6YurB1Vd/fXSYl+Gc3Ejaa+4kX/m0IfzVXvFjUZ7j8UNgDJ5BwfASHx++/F+FdUsqjd+jOx3xI2888SNhuviRt6zxY28Z1dxPInJ3uzjDx+u+CoABsw7OABG4vdfXL0X25O9OuLRm78mbuSdJ240XBc38p4tbuQ9exKPJpOTXXEDoFwCB8CI/O7ww4c/2DrZq+r67mJN3Mg7T9xouC5u5D1b3Mh79qS+O/nTyd7sJ9eerfgqAAqw6o8GAAp366ePD+pJdRj1Gd+yIm40Whc3Gq6LG3nPFjdynn1cV/XU520AjIPAATBit6ZPd+v5fBYRP3q1KG40Whc3Gq6LG3nPFjdynv1oUk0OfEsKwHgIHADEzZ89Oawifi5uNFsXNxquixt5zxY30p9dxW8mfz65M7tx7cWKrwCgQAIHABERcXP6ZK+KmEUdHyz9grixRNxouC5u5D1b3Eh99vNJHQezT64crdgNQMF8yCgAERHx5eGVox/EyW5VxS9fLYobS8SNhuviRt6zxY20Z1fxm8m3J7viBsB4eQcHAG+5NX26W8f8MCI+WvoFcSPvOeJG3rMbnjnI4bzBXnFj5fqjSR1TYQMAgQOAlW5NHx/UUR1GxI64kfkccSPv2Q3PHOBw3mivuHHm+nHUcfjVJ1furNgFwMgIHAC803T64NKfJ9vTuo6/f+sXxY3WzhQ38s8c2HDeeK+4cdZ6fXfy7enUh4gC8DqBA4BGbk4fXK6qrTsR1WcRIW60eKa4kX/msIbz5nvFjbfcn2yfHMx+cu3Zyh0AjJbAAcCF3Jo+3a0n338+h7iRd6a4kX/mYIZzcSPn/u5PIu74nA0A3kXgACDJzf/yZC/m1TSi/rG4kbZX3Mg/cyDDubgRyfcnbADQmMABQJab0weXY+u1b11Z6MtwLm6IGy2sixt56xe/v/ru5OT0zuyGb0UBoDmBA4BW3Jw+uBzb2wdRxzSq2Dlzk7jx8pwWntF0XdzIXxc38tYvcH/PI2I2OTmZCRsApBA4AGjdzb95fBB1NY2IH71aFDdentPCM5quixv56+JG3nqj+5tUf6zn83tff3p1tuJpANCIwAHA2tz8xYPLcbo9jYiDiDPe1SFupJ93zrq4kb8ubuStn3N/j+qoZlun397zbg0A2iJwALARn//t4/16HvtRVfsRsSNuZJx3zrq4kb8ubuStr7i/R1HH0WQ+mc1ufPhwxRMAIJnAAcDGff63j/friP2Iai8iPnj1C+JG9rq4kb8ubuStv/Hf6X5dVfe8UwOATRA4AOjUrb95ultX9V49qffrOj5a+kVx40Lr4kb+uriRt15HPIqIo/mkPvrmk6v3VuwGgLUQOADolZu/e
4LIXEXsRsVdH7Mabn90hbpy5Lm7kr4sbF14/rup4GJM4inkcRZw8nN249mLFVwPA2gkcAPTaX/zd092t+eluRHU5qtibR1yu3vi2ljOJG3nPFjfynl1Y3Kgi7kfUzyKqZxFxFHHyzLecANA3AgcAg3TzF0/25lV9aVJVu3XEperluz2ijtiN6oyf2BLiRuN1cSPv2QOLG3XEo0nEi+/Wj75bfRhRvfCuDACGROAAoFgHdx5cev9kezfpi7fTzjw5b8NW2nMbSXzNY372uf/3ynh2lnU9ezvCuy8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP5/e3AgAAAAACDI33qDCSoAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAXumMM+Wicn9sAAAAASUVORK5CYII=","e":1},{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":0,"nm":"crown","refId":"comp_1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[540,540,0],"ix":2},"a":{"a":0,"k":[540,540,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"w":1080,"h":1080,"ip":0,"op":300,"st":0,"bm":0}]},{"id":"comp_1","layers":[{"ddd":0,"ind":1,"ty":2,"nm":"Layer 2","refId":"image_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[540,540,0],"ix":2},"a":{"a":0,"k":[540,540,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"ip":0,"op":300,"st":0,"bm":0}]}],"layers":[{"ddd":0,"ind":1,"ty":4,"nm":"Shape Layer 7","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[828,243,0],"ix":2},"a":{"a":0,"k":[288,-297,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-17.723,17.723],[-13.208,13.208],[-18.485,18.485],[0,0]],"o":[[0,0],[17.723,-17.723],[13.208,-13.208],[18.485,-18.485],[0,0]],"v":[[244.5,-241],[245.799,-288.755],[300.461,-290.622],[299.167,-347.863],[344.5,-363]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":20,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0.427,0.365,0.827,0.527,0.396,0.512,0.827,1,0.365,0.659,0.827],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":2,"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.284],"y":[1]},"o":{"x":[0.512],"y":[0]},"t":50,"s":[0]},{"t":66,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.429],"y":[1]},"o":{"x":[0.692],"y":[-0.009]},"t":50,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":58,"s":[100]},{"t":66,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":50,"op":66,"st":37,"bm":0},{"ddd":0,"ind":2,"ty":4,"nm":"Shape Layer 3","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-179,"ix":10},"p":{"a":0,"k":[278,815,0],"ix":2},"a":{"a":0,"k":[288,-297,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[-17.723,17.723],[-13.208,13.208],[-18.485,18.485],[0,0]],"o":[[0,0],[17.723,-17.723],[13.208,-13.208],[18.485,-18.485],[0,0]],"v":[[244.5,-241],[245.799,-288.755],[300.461,-290.622],[299.167,-347.863],[344.5,-363]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":20,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0.427,0.365,0.827,0.497,0.396,0.512,0.827,1,0.365,0.659,0.827],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":2,"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.284],"y":[1]},"o":{"x":[0.512],"y":[0]},"t":50,"s":[0]},{"t":66,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.429],"y":[1]},"o":{"x":[0.692],"y":[-0.009]},"t":50,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":58,"s":[100]},{"t":66,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":50,"op":66,"st":37,"bm":0},{"ddd":0,"ind":3,"ty":4,"nm":"Shape Layer 2","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-90,"ix":10},"p":{"a":0,"k":[252,251,0],"ix":2},"a":{"a":0,"k":[288,-297,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[238,-236],[338,-358]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":20,"ix":10},"g":{"p":5,"k":{"a":0,"k":[0,0.427,0.365,0.827,0,0.647,0.504,0.553,0,0.867,0.643,0.278,0.255,0.616,0.651,0.553,1,0.365,0.659,0.827],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":2,"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.284],"y":[1]},"o":{"x":[0.512],"y":[0]},"t":52,"s":[0]},{"t":68,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.429],"y":[1]},"o":{"x":[0.692],"y":[-0.009]},"t":52,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":60,"s":[100]},{"t":68,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":52,"op":68,"st":39,"bm":0},{"ddd":0,"ind":4,"ty":4,"nm":"Shape Layer 6","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":41,"ix":10},"p":{"a":0,"k":[886,493,0],"ix":2},"a":{"a":0,"k":[288,-297,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ind":0,"ty":"sh","ix":1,"ks":{"a":0,"k":{"i":[[0,0],[0,0]],"o":[[0,0],[0,0]],"v":[[238,-236],[338,-358]],"c":false},"ix":2},"nm":"Path 1","mn":"ADBE Vector Shape - Group","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":20,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0.427,0.365,0.827,0.5,0.396,0.512,0.827,1,0.365,0.659,0.827],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":2,"lj":2,"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[0,0],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Shape 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false},{"ty":"tm","s":{"a":1,"k":[{"i":{"x":[0.284],"y":[1]},"o":{"x":[0.512],"y":[0]},"t":51,"s":[0]},{"t":67,"s":[100]}],"ix":1},"e":{"a":1,"k":[{"i":{"x":[0.429],"y":[1]},"o":{"x":[0.692],"y":[-0.009]},"t":51,"s":[0]},{"i":{"x":[0.667],"y":[1]},"o":{"x":[0.333],"y":[0]},"t":59,"s":[100]},{"t":67,"s":[100]}],"ix":2},"o":{"a":0,"k":0,"ix":3},"m":1,"ix":2,"nm":"Trim Paths 1","mn":"ADBE Vector Filter - Trim","hd":false}],"ip":51,"op":67,"st":38,"bm":0},{"ddd":0,"ind":5,"ty":4,"nm":"Shape Layer 4","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":1,"k":[{"i":{"x":0.203,"y":1},"o":{"x":0.752,"y":0}
4,"t":50,"s":[767,718,0],"to":[0,0,0],"ti":[0,0,0]},{"t":55,"s":[833,790,0]}],"ix":2},"a":{"a":0,"k":[269,213,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.203,0.203,0.667],"y":[1,1,1]},"o":{"x":[0.752,0.752,0.333],"y":[0,0,0]},"t":50,"s":[0,0,100]},{"i":{"x":[0.493,0.493,0.667],"y":[1,1,1]},"o":{"x":[0.853,0.853,0.167],"y":[0,0,0]},"t":55,"s":[100,100,100]},{"t":61,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[50,50],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":10,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0.427,0.365,0.827,0.5,0.396,0.512,0.827,1,0.365,0.659,0.827],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":1,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[269,213],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":50,"op":62,"st":37,"bm":0},{"ddd":0,"ind":6,"ty":4,"nm":"Shape Layer 5","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.407],"y":[1]},"o":{"x":[0.567],"y":[0]},"t":50,"s":[0]},{"t":62,"s":[162]}],"ix":10},"p":{"a":1,"k":[{"i":{"x":0.312,"y":1},"o":{"x":0.333,"y":0},"t":50,"s":[289.527,504.821,0],"to":[0,0,0],"ti":[0,0,0]},{"i":{"x":0.667,"y":1},"o":{"x":0.627,"y":0},"t":55,"s":[135,504.821,0],"to":[0,0,0],"ti":[0,0,0]},{"t":61,"s":[119,504.821,0]}],"ix":2},"a":{"a":0,"k":[-412,-61.179,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.28,0.28,0.667],"y":[1,1,1]},"o":{"x":[0.333,0.333,0.333],"y":[0,0,0]},"t":50,"s":[0,0,100]},{"i":{"x":[0.667,0.667,0.667],"y":[1,1,1]},"o":{"x":[0.573,0.573,0.333],"y":[0,0,0]},"t":55,"s":[100,100,100]},{"t":61,"s":[0,0,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"ty":"sr","sy":2,"d":1,"pt":{"a":0,"k":5,"ix":3},"p":{"a":0,"k":[0,0],"ix":4},"r":{"a":0,"k":0,"ix":5},"or":{"a":0,"k":33.287,"ix":7},"os":{"a":0,"k":0,"ix":9},"ix":1,"nm":"Polystar Path 1","mn":"ADBE Vector Shape - Star","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":10,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0.427,0.365,0.827,0.5,0.396,0.512,0.827,1,0.365,0.659,0.827],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":1,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-412,-58],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Polystar 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":50,"op":62,"st":37,"bm":0},{"ddd":0,"ind":7,"ty":0,"nm":"crown 2","refId":"comp_0","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":1,"k":[{"i":{"x":[0.05],"y":[1]},"o":{"x":[0.43],"y":[0]},"t":0,"s":[435]},{"i":{"x":[0.303],"y":[1]},"o":{"x":[0.585],"y":[0]},"t":28,"s":[-20]},{"t":45,"s":[0]}],"ix":10},"p":{"a":0,"k":[540,540,0],"ix":2},"a":{"a":0,"k":[540,540,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0,0,0.833],"y":[1,1,1]},"o":{"x":[0.43,0.43,0.333],"y":[0,0,0]},"t":0,"s":[0,0,100]},{"i":{"x":[0.303,0.303,0.833],"y":[1,1,1]},"o":{"x":[0.585,0.585,0.167],"y":[0,0,0]},"t":28,"s":[117,117,100]},{"i":{"x":[0.519,0.519,0.833],"y":[1,1,1]},"o":{"x":[0.489,0.489,0.167],"y":[0,0,0]},"t":45,"s":[70,70,100]},{"i":{"x":[0.44,0.44,0.833],"y":[1,1,1]},"o":{"x":[0.57,0.57,0.167],"y":[0,0,0]},"t":50,"s":[60,60,100]},{"t":54,"s":[65,65,100]}],"ix":6}},"ao":0,"w":1080,"h":1080,"ip":0,"op":300,"st":0,"bm":0},{"ddd":0,"ind":8,"ty":4,"nm":"Shape Layer 1","sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":-138,"ix":10},"p":{"a":0,"k":[540,540,0],"ix":2},"a":{"a":0,"k":[-16.489,8.244,0],"ix":1},"s":{"a":1,"k":[{"i":{"x":[0.562,0.562,0.667],"y":[1,1,1]},"o":{"x":[0.685,0.685,0.333],"y":[0,0,0]},"t":30,"s":[0,0,100]},{"i":{"x":[0.352,0.352,0.667],"y":[1,1,1]},"o":{"x":[0.656,0.656,0.333],"y":[0,0,0]},"t":45,"s":[58,58,100]},{"i":{"x":[0.44,0.44,0.833],"y":[1,1,1]},"o":{"x":[0.737,0.737,0.333],"y":[0,0,0]},"t":50,"s":[48,48,100]}
4,{"t":54,"s":[53,53,100]}],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[770.84,770.84],"ix":2},"p":{"a":0,"k":[0,0],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"gs","o":{"a":0,"k":100,"ix":9},"w":{"a":0,"k":32,"ix":10},"g":{"p":3,"k":{"a":0,"k":[0,0.365,0.659,0.827,0.5,0.396,0.512,0.827,1,0.427,0.365,0.827],"ix":8}},"s":{"a":0,"k":[0,0],"ix":4},"e":{"a":0,"k":[100,0],"ix":5},"t":1,"lc":1,"lj":1,"ml":4,"ml2":{"a":0,"k":4,"ix":13},"bm":0,"nm":"Gradient Stroke 1","mn":"ADBE Vector Graphic - G-Stroke","hd":false},{"ty":"tr","p":{"a":0,"k":[-16.489,8.244],"ix":2},"a":{"a":0,"k":[0,0],"ix":1},"s":{"a":0,"k":[100,100],"ix":3},"r":{"a":0,"k":0,"ix":6},"o":{"a":0,"k":100,"ix":7},"sk":{"a":0,"k":0,"ix":4},"sa":{"a":0,"k":0,"ix":5},"nm":"Transform"}],"nm":"Ellipse 1","np":3,"cix":2,"bm":0,"ix":1,"mn":"ADBE Vector Group","hd":false}],"ip":21,"op":300,"st":0,"bm":0}],"markers":[]}')}},function(e){var t=function(t){return e(e.s=t)};e.O(0,[49774,40179],function(){return t(6840),t(43079)}),_N_E=e.O()}]);

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.