Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@afp/data-driven-video-ui

Package Overview
Dependencies
Maintainers
2
Versions
131
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@afp/data-driven-video-ui - npm Package Compare versions

Comparing version 1.1.10 to 1.1.11

src/assets/fonts/PoppinsFix-100.eot

2

dist/dataDrivenVideoUi.umd.min.js

@@ -1,2 +0,2 @@

(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["dataDrivenVideoUi"]=t(require("vue")):e["dataDrivenVideoUi"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){return this};e.exports=function(e,t,n,g,y,b,w){c(n,t,g);var _,x,S,$=function(e){if(!d&&e in k)return k[e];switch(e){case h:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",j=y==v,L=!1,k=e.prototype,M=k[f]||k[p]||y&&k[y],C=M||$(y),A=y?j?$("entries"):C:void 0,D="Array"==t&&k.entries||M;if(D&&(S=l(D.call(new e)),S!==Object.prototype&&S.next&&(u(S,O,!0),r||"function"==typeof S[f]||a(S,f,m))),j&&M&&M.name!==v&&(L=!0,C=function(){return M.call(this)}),r&&!w||!d&&!L&&k[f]||a(k,f,C),s[t]=C,s[O]=m,y)if(_={values:j?C:$(v),keys:b?C:$(h),entries:A},w)for(x in _)x in k||o(k,x,_[x]);else i(i.P+i.F*(d||L),t,_);return _}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var v,m,g=o(t),y=i(g),b=r(s,h,3),w=a(y.length),_=0,x=n?p(t,w):c?p(t,0):void 0;w>_;_++)if((d||_ in y)&&(v=y[_],m=b(v,_,g),e))if(n)x[_]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(l)return!1;return f?-1:u||l?l:x}}},"0bed":function(e,t,n){},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"1d9f":function(e,t,n){"use strict";var r=n("97ab"),i=n.n(r);i.a},"1eb2":function(e,t,n){var r;"undefined"!==typeof window&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]))},"214f":function(e,t,n){"use strict";var r=n("32e9"),i=n("2aba"),o=n("79e5"),a=n("be13"),s=n("2b4c");e.exports=function(e,t,n){var c=s(e),u=n(a,c,""[e]),l=u[0],f=u[1];o(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),r(RegExp.prototype,c,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",c=Function[s],u=(""+c).split(s);n("8378").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"416b":function(e,t,n){"use strict";var r=n("9b8f"),i=n.n(r);i.a},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(e){return i(r(e))}})},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"497a":function(e,t,n){"use strict";var r=n("4caa"),i=n.n(r);i.a},"49d1":function(e,t,n){"use strict";var r=n("53bf"),i=n.n(r);i.a},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4caa":function(e,t,n){},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53bf":function(e,t,n){},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5a0c":function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",o="week",a="month",s="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,u=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d={padStart:f,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),r=t%60;return(e<=0?"+":"-")+f(n,2,"0")+":"+f(r,2,"0")},monthDiff:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months"),i=t-r<0,o=e.clone().add(n+(i?-1:1),"months");return Number(-(n+(t-r)/(i?r-o:o-r)))},absFloor:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},prettyUnit:function(c){return{M:a,y:s,w:o,d:i,h:r,m:n,s:t,ms:e}[c]||String(c||"").toLowerCase().replace(/s$/,"")},isUndefined:function(e){return void 0===e}},p="en",h={};h[p]=l;var v=function(e){return e instanceof w},m=function(e,t,n){var r;if(!e)return null;if("string"==typeof e)h[e]&&(r=e),t&&(h[e]=t,r=e);else{var i=e.name;h[i]=e,r=i}return n||(p=r),r},g=function(e,t){if(v(e))return e.clone();var n=t||{};return n.date=e,new w(n)},y=function(e,t){return g(e,{locale:t.$L})},b=d;b.parseLocale=m,b.isDayjs=v,b.wrapper=y;var w=function(){function l(e){this.parse(e)}var f=l.prototype;return f.parse=function(e){var t,n;this.$d=null===(t=e.date)?new Date(NaN):b.isUndefined(t)?new Date:t instanceof Date?t:"string"==typeof t&&/.*[^Z]$/i.test(t)&&(n=t.match(c))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(t),this.init(e)},f.init=function(e){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||m(e.locale,null,!0)||p},f.$utils=function(){return b},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.$compare=function(e){return this.valueOf()-g(e).valueOf()},f.isSame=function(e){return 0===this.$compare(e)},f.isBefore=function(e){return this.$compare(e)<0},f.isAfter=function(e){return this.$compare(e)>0},f.year=function(){return this.$y},f.month=function(){return this.$M},f.day=function(){return this.$W},f.date=function(){return this.$D},f.hour=function(){return this.$H},f.minute=function(){return this.$m},f.second=function(){return this.$s},f.millisecond=function(){return this.$ms},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,c){var u=this,l=!!b.isUndefined(c)||c,f=function(e,t){var n=y(new Date(u.$y,t,e),u);return l?n:n.endOf(i)},d=function(e,t){return y(u.toDate()[e].apply(u.toDate(),l?[0,0,0,0].slice(t):[23,59,59,999].slice(t)),u)};switch(b.prettyUnit(e)){case s:return l?f(1,0):f(31,11);case a:return l?f(1,this.$M):f(0,this.$M+1);case o:return f(l?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case i:case"date":return d("setHours",0);case r:return d("setMinutes",1);case n:return d("setSeconds",2);case t:return d("setMilliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(o,c){switch(b.prettyUnit(o)){case i:this.$d.setDate(this.$D+(c-this.$W));break;case"date":this.$d.setDate(c);break;case a:this.$d.setMonth(c);break;case s:this.$d.setFullYear(c);break;case r:this.$d.setHours(c);break;case n:this.$d.setMinutes(c);break;case t:this.$d.setSeconds(c);break;case e:this.$d.setMilliseconds(c)}return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.add=function(e,c){var u=this;e=Number(e);var l,f=b.prettyUnit(c),d=function(t,n){var r=u.set("date",1).set(t,n+e);return r.set("date",Math.min(u.$D,r.daysInMonth()))};if(f===a)return d(a,this.$M);if(f===s)return d(s,this.$y);switch(f){case n:l=6e4;break;case r:l=36e5;break;case i:l=864e5;break;case o:l=6048e5;break;case t:l=1e3;break;default:l=1}var p=this.valueOf()+e*l;return y(p,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,n=e||"YYYY-MM-DDTHH:mm:ssZ",r=b.padZoneStr(this.$d.getTimezoneOffset()),i=this.$locale(),o=i.weekdays,a=i.months,s=function(e,t,n,r){return e&&e[t]||n[t].substr(0,r)};return n.replace(u,function(e){if(e.indexOf("[")>-1)return e.replace(/\[|\]/g,"");switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return String(t.$y);case"M":return String(t.$M+1);case"MM":return b.padStart(t.$M+1,2,"0");case"MMM":return s(i.monthsShort,t.$M,a,3);case"MMMM":return a[t.$M];case"D":return String(t.$D);case"DD":return b.padStart(t.$D,2,"0");case"d":return String(t.$W);case"dd":return s(i.weekdaysMin,t.$W,o,2);case"ddd":return s(i.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(t.$H);case"HH":return b.padStart(t.$H,2,"0");case"h":case"hh":return 0===t.$H?12:b.padStart(t.$H<13?t.$H:t.$H-12,"hh"===e?2:1,"0");case"a":return t.$H<12?"am":"pm";case"A":return t.$H<12?"AM":"PM";case"m":return String(t.$m);case"mm":return b.padStart(t.$m,2,"0");case"s":return String(t.$s);case"ss":return b.padStart(t.$s,2,"0");case"SSS":return b.padStart(t.$ms,3,"0");case"Z":return r;default:return r.replace(":","")}})},f.diff=function(e,c,u){var l=b.prettyUnit(c),f=g(e),d=this-f,p=b.monthDiff(this,f);switch(l){case s:p/=12;break;case a:break;case"quarter":p/=3;break;case o:p=d/6048e5;break;case i:p=d/864e5;break;case r:p=d/36e5;break;case n:p=d/6e4;break;case t:p=d/1e3;break;default:p=d}return u?p:b.absFloor(p)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return h[this.$L]},f.locale=function(e,t){var n=this.clone();return n.$L=m(e,t,!0),n},f.clone=function(){return y(this.toDate(),this)},f.toDate=function(){return new Date(this.$d)},f.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},f.toJSON=function(){return this.toISOString()},f.toISOString=function(){return this.toDate().toISOString()},f.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},f.toString=function(){return this.$d.toUTCString()},l}();return g.extend=function(e,t){return e(t,w,g),g},g.locale=m,g.isDayjs=v,g.en=h[p],g})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(e,t,n){var l,f,d,p,h=e&u.F,v=e&u.G,m=e&u.S,g=e&u.P,y=e&u.B,b=v?r:m?r[t]||(r[t]={}):(r[t]||{})[c],w=v?i:i[t]||(i[t]={}),_=w[c]||(w[c]={});for(l in v&&(n=t),n)f=!h&&b&&void 0!==b[l],d=(f?b:n)[l],p=y&&f?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,e&u.U),w[l]!=d&&o(w,l,p),g&&_[l]!=d&&(_[l]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6e9d":function(e,t,n){},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),c=Object.assign;e.exports=!c||n("79e5")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){var n=a(e),c=arguments.length,u=1,l=i.f,f=o.f;while(c>u){var d,p=s(arguments[u++]),h=l?r(p).concat(l(p)):r(p),v=h.length,m=0;while(v>m)f.call(p,d=h[m++])&&(n[d]=p[d])}return n}:c},"73ee":function(e,t,n){},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84ed":function(e,t,n){"use strict";var r=n("0bed"),i=n.n(r);i.a},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bbf":function(t,n){t.exports=e},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=w;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(D([])));y&&y!==r&&i.call(y,a)&&(m=y);var b=$.prototype=x.prototype=Object.create(m);S.prototype=b.constructor=$,$.constructor=S,$[c]=S.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===S||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,$):(e.__proto__=$,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},O(j.prototype),j.prototype[s]=function(){return this},l.AsyncIterator=j,l.async=function(e,t,n,r){var i=new j(w(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=D,A.prototype={constructor:A,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(C),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),C(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;C(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:D(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),a=new A(r||[]);return o._invoke=L(e,n,a),o}function _(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function x(){}function S(){}function $(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function j(e){function t(n,r,o,a){var s=_(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(u).then(function(e){c.value=e,o(c)},a)}a(s.arg)}var n;function r(e,r){function i(){return new Promise(function(n,i){t(e,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=r}function L(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return E()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=k(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=_(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function k(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,k(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=_(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function M(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function C(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function A(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(M,this),this.reset(!0)}function D(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},"97ab":function(e,t,n){},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9b8f":function(e,t,n){},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e28":function(e,t,n){},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o(function(){return!!a[e]()||c[e]()!=c}),u=i[e]=s?t(d):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),d=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),v=0;v<h.length;v++){var m,g=h[v],y=p[g],b=a[g],w=b&&b.prototype;if(w&&(w[l]||s(w,l,d),w[f]||s(w,f,g),c[g]=d,y))for(m in r)w[m]||o(w,m,r[m],!0)}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,p="Number",h=r[p],v=h,m=h.prototype,g=o(n("2aeb")(m))==p,y="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():d(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,c=t.slice(2),u=0,l=c.length;u<l;u++)if(a=c.charCodeAt(u),a<48||a>i)return NaN;return parseInt(c,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(g?c(function(){m.valueOf.call(n)}):o(n)!=p)?a(new v(b(t)),n,h):b(t)};for(var w,_=n("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)i(v,w=_[x])&&!i(h,w)&&f(h,w,l(v,w));h.prototype=m,m.constructor=h,n("2aba")(r,p,h)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},dee8:function(e,t,n){"use strict";var r=n("9e28"),i=n.n(r);i.a},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e977:function(e,t,n){"use strict";var r=n("73ee"),i=n.n(r);i.a},ebf2:function(e,t,n){"use strict";var r=n("6e9d"),i=n.n(r);i.a},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fae3:function(e,t,n){"use strict";n.r(t);n("1eb2");var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template"},[n("h1",[e._v("Template "),n("em",[e._v(e._s(e.templateName))])]),e.loading?n("p",[e._v("Loading •••")]):n("section",{staticClass:"wrapper"},[n("preview",{attrs:{"template-url":e.templateUrl}}),n("settingsForm",{attrs:{"specific-origin-model":e.specificOriginModel,"specific-translations-model":e.specificTranslationsModel,"locales-allowed":e.localesAllowed},on:{validate:e.validate}}),n("results",{directives:[{name:"show",rawName:"v-show",value:e.jobs.length>0,expression:"jobs.length > 0"}],attrs:{jobs:e.jobs}})],1)])},i=[];n("7514"),n("96cf");function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e,t){try{var n=o[e](t),a=n.value}catch(e){return void i(e)}n.done?r(a):Promise.resolve(a).then(s,c)}function s(e){a("next",e)}function c(e){a("throw",e)}s()})}}var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settingsForm"},[0!==e.specificOriginModel.length?n("div",{class:["block-setting",{"on-preview":e.isOnPreview(null)}]},[n("header",[n("h2",[e._v("Version Originale")]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(t){e.sendPreview()}}},[n("span",{staticClass:"UI-icon UI-play"})])]),e._l(e.specificOriginModel,function(t){return n("setting-form-item",{key:"settingOrigin_"+t.name,attrs:{type:t.type,name:t.type+"_"+t.name,label:t.label}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,focus:t.focus,placeholder:t.placeholder,validation:t.validation,required:t.required},model:{value:e.specific.origin[t.name],callback:function(n){e.$set(e.specific.origin,t.name,n)},expression:"specific.origin[setting.name]"}})],1)})],2):e._e(),n("select",{directives:[{name:"model",rawName:"v-model",value:e.lastLocaleAdded,expression:"lastLocaleAdded"}],staticClass:"add-locale",attrs:{disabled:Object.keys(e.specific.translations).length===e.localesAllowed.length},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.lastLocaleAdded=t.target.multiple?n:n[0]}}},[n("option",{attrs:{disabled:"",value:""}},[e._v("Ajouter une traduction")]),e._l(e.localesAllowed,function(t){return n("option",{key:"locale_"+t,attrs:{disabled:Object.keys(e.specific.translations).includes(t)},domProps:{value:t}},[e._v(e._s(t))])})],2),0!==Object.keys(e.specific.translations).length?n("div",e._l(Object.keys(e.specific.translations),function(t){return n("div",{key:"tr_"+t,class:["translation","block-setting",{"on-preview":e.isOnPreview(t)}]},[n("header",[n("h2",[e._v("Version "+e._s(t.toUpperCase()))]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(n){e.sendPreview(t)}}},[n("span",{staticClass:"UI-icon UI-play"})]),n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t)}}},[n("span",{staticClass:"UI-icon UI-close"})])]),e._l(e.specificTranslationsModel,function(r){return n("setting-form-item",{key:"trs_"+t+"_"+r.name,attrs:{type:r.type,name:t+"_"+r.type+"_"+r.name,label:r.label}},[n("setting-input",{attrs:{name:t+"_"+r.name,type:r.type,"default-value":r.value,required:r.required},model:{value:e.specific.translations[t][r.name],callback:function(n){e.$set(e.specific.translations[t],r.name,n)},expression:"specific.translations[locale][setting.name]"}})],1)})],2)})):e._e(),0!==e.general.length?n("div",{staticClass:"general-setting block-setting"},[n("h2",[e._v("\n Configuration générale\n ")]),e._l(e.generalModel,function(t){return n("setting-form-item",{key:"setting_"+t.name,attrs:{name:t.type+"_"+t.name,type:t.type,label:t.label}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,required:t.required},model:{value:e.general[t.name],callback:function(n){e.$set(e.general,t.name,n)},expression:"general[setting.name]"}})],1)})],2):e._e(),0!==e.configs.length?n("div",{staticClass:"configs"},[n("h2",[e._v(e._s(e.configs.length)+" "+e._s(e.$tc("videos",e.configs.length))+" à générer")]),e._l(e.configs,function(t){return n("div",{key:"details_"+(t.specific.locale||"VO"),staticClass:"configs-details"},[n("span",[e._v(e._s(t.general.filename))]),t.specific.locale?n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t.specific.locale)}}},[n("span",{staticClass:"UI-icon UI-close"})]):e._e()])}),n("div",{staticClass:"validate"},[n("button",{staticClass:"validate-config",attrs:{type:"button"},on:{click:function(t){e.validate()}}},[e._v("\n Valider "),n("span",{staticClass:"UI-icon UI-checked"})])])],2):e._e()])},s=[];n("a481");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("f751");function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function l(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(e){return u(e)||l(e)||f()}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){c(e,t,n[t])})}return e}n("ac6a"),n("cadf"),n("456d"),n("7f7f");var h="videoTitle",v="videoWidth",m="videoHeight",g="fps",y="fileFormat",b="hd",w="codec",_="text",x="number",S="select",$="checkbox",O="textarea",j=[{type:_,name:h,label:"Titre",value:""},{type:x,name:v,label:"Largeur",value:1920},{type:x,name:m,label:"Hauteur",value:1080},{type:x,name:g,label:"Images par seconde",value:25},{type:S,name:y,label:"Format de fichier",value:["mov"]},{type:S,name:w,label:"Codec vidéo",value:["prores"]},{type:$,name:b,label:"Haute défition",value:!1}],L=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["setting-form-item","for-"+e.type]},[n("label",{ref:"label",attrs:{for:e.name}},[e._v(e._s(e.label))]),e._t("default")],2)},k=[],M={name:"SettingFormItem",data:function(){return{paddingLeft:0}},props:{label:{type:String,required:!0},type:{type:String,required:!0},name:{type:String,required:!0}},mounted:function(){this.paddingLeft=this.$refs.label.clientWidth}},C=M;n("1d9f");function A(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}var D=A(C,L,k,!1,null,null,null);D.options.__file="SettingFormItem.vue";var E=D.exports,P=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSelect?n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.value=t.target.multiple?n:n[0]}}},e._l(e.defaultValue,function(t){return n("option",{key:t},[e._v("\n "+e._s(t)+"\n ")])})):e.isTextArea?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name,focus:e.focus},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}}):"checkbox"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(t){var n=e.value,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.value=n.concat([o])):a>-1&&(e.value=n.slice(0,a).concat(n.slice(a+1)))}else e.value=i}}}):"radio"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(t){e.value=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:e.type.toLowerCase()},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},T=[],I=(n("c5f6"),{name:"SettingInput",props:{name:{type:String,required:!0},type:{type:String,required:!0},defaultValue:{type:[String,Number,Array,Boolean],required:!0},placeholder:{type:String,default:null},paddingLeft:{type:Number,default:0},focus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},validation:{type:Function,default:null}},data:function(){return{value:""}},computed:{formattedValue:function(){return this.type===x?parseFloat(this.value):this.value},isSelect:function(){return this.type===S},isTextArea:function(){return this.type===O}},watch:{value:function(e){e=this.type===x?parseFloat(e):e,e=this.type===String?e.toLowerCase():e,e=null!==this.validation?this.validation(e):e,this.$emit("input",e)},defaultValue:function(e){this.setDefaultValue()}},created:function(){this.setDefaultValue()},methods:{setDefaultValue:function(){this.value=this.isSelect?this.defaultValue[0]:this.defaultValue,this.$emit("input",this.value)}}}),F=I,N=(n("84ed"),A(F,P,T,!1,null,null,null));N.options.__file="SettingInput.vue";var U=N.exports,q=n("8bbf"),R=n.n(q),H=new R.a,V=H,W={name:"SettingsForm",components:{SettingFormItem:E,SettingInput:U},props:{specificOriginModel:{type:Array,required:!0},specificTranslationsModel:{type:Array,required:!0},localesAllowed:{type:Array,default:function(e){return[]}}},data:function(){return{specific:{origin:{},translations:{}},general:{timestamp:(new Date).getTime()},lastLocaleAdded:"",defaultFilename:"",localeOnPreview:void 0}},computed:{generalModel:function(){var e=j,t=e.find(function(e){return e.name===h});return void 0!==t&&(t.value=this.defaultFilename),e},configs:function(){var e=this,t=[];return t.push(this.generateconfigsEntry()),Object.keys(this.specific.translations).map(function(n){t.push(e.generateconfigsEntry(n))}),t}},watch:{lastLocaleAdded:function(e){0!==e.length&&(this.addLocale(e),this.lastLocaleAdded="")}},created:function(){this.dynamicDataBinding(this.generalModel,this.general),this.dynamicDataBinding(this.specificOriginModel,this.specific.origin)},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){V.$on("default-filename",this.updateDefaultFilename)},removeListener:function(){V.$off("default-filename",this.updateDefaultFilename)},updateDefaultFilename:function(e){this.defaultFilename=e},dynamicDataBinding:function(e,t){var n=this;e.map(function(e){n.$set(t,e.name,e.value)})},addLocale:function(e){this.$set(this.specific.translations,e,{}),this.dynamicDataBinding(this.specificTranslationsModel,this.specific.translations[e])},removeLocale:function(e){this.$delete(this.specific.translations,e)},generateconfigsEntry:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{general:p({},this.general,{filename:this.generateFilename(t)}),specific:p({locale:t},this.specific.origin,Object.assign.apply(Object,d(this.specificTranslationsModel.map(function(n){return c({},n.name,null!==t?e.specific.translations[t][n.name]:null)}))))}},generateFilename:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.general[v]+"_"+this.general[m]+"_"+this.general[g]+g+"_"+this.general[w]+"_";return this.general[h]&&(t+=this.general[h].replace(/[àáâãäå]/g,"a").replace(/[èéêë]/g,"e").replace(/[ïîì]/g,"i").replace(/[öôòõ]/g,"o").replace(/[üûùú]/g,"u").replace(/[ÿ]/g,"y").replace(/[œ]/g,"oe").replace(/[/\\:]/g,"-").replace(/\s/g,"_").replace(/[^a-z0-9-_]/gi,"")+"_"),t+=(e||"VO")+"."+this.general[y],t.toLowerCase()},sendPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;this.checkRequired()||(this.general.timestamp=(new Date).getTime(),this.localeOnPreview=e,V.$emit("previsualize",this.configs.find(function(t){return t.specific.locale===e})))},isOnPreview:function(e){return this.localeOnPreview===e},checkRequired:function(){var e=document.querySelectorAll(".settingsForm *[required=required]"),t=0,n=!1;while(t<e.length&&!n)n=""===e[t].value||null===e[t].value,t++;return n},validate:function(){if(!this.checkRequired()){var e=this.configs.map(function(e){return{data:e}});this.$emit("validate",e)}}}},Y=W,G=(n("416b"),A(Y,a,s,!1,null,null,null));G.options.__file="SettingsForm.vue";var B=G.exports,J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"preview"},[n("h2",[e._v("Prévisualisation")]),n("section",{ref:"playerContainer"},[n("div",{staticClass:"player",style:{width:e.previewWidth+"px",height:e.previewHeight+"px"}},[n("iframe",{style:e.iframeDimension,attrs:{src:e.templateUrl}})]),n("progress-bar",{attrs:{duration:e.duration,progress:e.progress,color:"#51afd7"}})],1)])},z=[],Z=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-bar"},[n("div",{class:e.progressClass,style:{width:e.progressWidth,background:e.color}})])},X=[],K={name:"ProgresseBar",props:{progress:{type:Number,required:!0},duration:{type:Number,required:!0},color:{type:String,default:null}},data:function(){return{reset:!1}},computed:{progressClass:function(){return{"progress-value":!0,reset:this.reset}},progressWidth:function(){return 0!==this.duration?"".concat(this.progress/this.duration*100,"%"):"0%"}},watch:{progress:function(e,t){this.reset=t>e}}},Q=K,ee=(n("dee8"),A(Q,Z,X,!1,null,null,null));ee.options.__file="ProgressBar.vue";var te=ee.exports,ne={name:"Preview",components:{ProgressBar:te},props:{templateUrl:{type:String,required:!0}},data:function(){return{configWidth:1920,configRatio:16/9,previewWidth:0,progress:0,duration:0}},computed:{previewHeight:function(){return this.previewWidth/this.configRatio},previewRatio:function(){return this.previewWidth/this.configWidth},iframeDimension:function(){return{zoom:this.previewRatio,transform:"scale(".concat(this.previewRatio,")"),transformOrigin:"0 0",width:"".concat(1/this.previewRatio*100,"%"),height:"".concat(1/this.previewRatio*100,"%")}}},mounted:function(){this.setupListener(),this.getWidth()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){var e=this;V.$on("previsualize",this.sendConfig),window.onmessage=function(t){"animation-update"===t.data.type&&(e.progress=t.data.value),"duration-update"===t.data.type&&(e.duration=t.data.value),"default-filename"===t.data.type&&V.$emit("default-filename",t.data.value)},window.addEventListener("resize",this.getWidth)},removeListener:function(){this.$off("previsualize",this.sendConfig),window.removeEventListener("resize",this.getWidth)},sendConfig:function(e){console.log("sendConfig",e),this.configWidth=e.general.videoWidth,this.configRatio=e.general.videoWidth/e.general.videoHeight,window.frames[0].postMessage({type:"init-template-data",templateData:e.specific},"*")},getWidth:function(){this.previewWidth=parseInt(window.getComputedStyle(this.$refs.playerContainer).getPropertyValue("width").replace("px",""))}}},re=ne,ie=(n("497a"),A(re,J,z,!1,null,null,null));ie.options.__file="Preview.vue";var oe=ie.exports,ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"results"},[n("h2",[e._v("Rendus")]),n("div",{staticClass:"results-wrapper"},[n("section",{staticClass:"job-details"},e._l(e.jobs,function(e){return n("progress-job",{key:e.id,attrs:{job:e}})})),n("section",{staticClass:"job-summary"},[n("div",{staticClass:"fixed"},[n("h2",[n("span",[e._v(e._s(e.completedJobs.length)+"/"+e._s(e.jobs.length))]),n("span",[e._v("vidéos terminées")])]),n("a",{attrs:{disabled:!e.allCompleted,href:"#"},on:{click:function(t){return t.preventDefault(),e.downloadLinks(t)}}},[e._v("Télécharger tous les liens\n ")]),n("a",{attrs:{disabled:!e.allCompleted,href:"#"},on:{click:function(t){return t.preventDefault(),e.downloadAll(t)}}},[e._v("Télécharger toutes les vidéos\n ")])])])])])},se=[],ce=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-job"},[n("div",{staticClass:"id"},[n("span",[e._v("job "+e._s(e.job.id))])]),n("div",{class:["progress-wrapper",{complete:e.statusCode>=2}]},[n("div",{staticClass:"textual"},[n("span",{staticClass:"filename"},[e._v(e._s(e.job.data.general.filename))]),n("div",{staticClass:"status"},[n("span",[e._v(e._s(e.status))])]),n("span",{staticClass:"percent"},[e._v(e._s((100*e.job.progress).toFixed(2))+"%")])]),n("div",{staticClass:"bar"},[n("progress-bar",{attrs:{duration:1,progress:e.job.progress,color:"black"}})],1)]),n("button",{class:["download",{active:e.statusCode>=2}],attrs:{disabled:e.statusCode<2},on:{click:function(t){e.download()}}},[n("span",{staticClass:"UI-icon UI-download"})])])},ue=[],le={name:"ProgressJob",components:{ProgressBar:te},props:{job:{type:Object,required:!0}},computed:{statusCode:function(){var e=0;return null===this.job.returnvalue&&1===this.job.progress?e=1:null!==this.job.returnvalue&&(e=2),e},status:function(){var e="capturing animation...";return 1===this.statusCode?e="converting into video format...":2===this.statusCode&&(e="ready to download"),e}},methods:{download:function(){window.open(this.job.returnvalue.url)}}},fe=le,de=(n("e977"),A(fe,ce,ue,!1,null,null,null));de.options.__file="ProgressJob.vue";var pe=de.exports,he=n("5a0c"),ve=n.n(he),me={name:"Results",components:{ProgressJob:pe},props:{jobs:{type:Array,required:!0}},computed:{completedJobs:function(){return this.jobs.filter(function(e){return null!==e.returnvalue})},allCompleted:function(){return this.completedJobs.length===this.jobs.length}},methods:{downloadAll:function(){this.allCompleted&&this.completedJobs.map(function(e){window.open(e.returnvalue.url)})},downloadLinks:function(){if(this.allCompleted){var e=["data:text/csv;charset=utf-8,lang,file,url,expiration"];this.completedJobs.map(function(t,n){e.push("".concat(t.data.specific.locale?t.data.specific.locale:"vo",",").concat(t.data.general.filename,",").concat(t.returnvalue.url,",").concat(ve()().add(15,"days").format("YYYY-MM-DD HH:mm:ss")))}),e=e.join("\n");var t=encodeURI(e),n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download","links_".concat(this.jobs[0].data.general.filename,".csv")),document.body.appendChild(n),n.click(),document.body.removeChild(n)}}}},ge=me,ye=(n("ebf2"),A(ge,ae,se,!1,null,null,null));ye.options.__file="Results.vue";var be=ye.exports,we={name:"TemplateDdv",components:{SettingsForm:B,Preview:oe,Results:be},props:{templateName:{type:String,required:!0},templateUrl:{type:String,required:!0},service:{type:Object,required:!0}},data:function(){return{loading:!0,specificOriginModel:[],specificTranslationsModel:[],localesAllowed:[],rendering:!1,jobs:[]}},created:function(){this.getTemplate(),this.setupListener()},beforeDestroy:function(){this.removeListener()},methods:{getTemplate:function(){var e=o(regeneratorRuntime.mark(function e(){var t,n,r,i;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.fetch("".concat(this.templateUrl,"/static/config.json"));case 2:return e.next=4,e.sent.json();case 4:t=e.sent,n=t.specificOriginModel,r=t.specificTranslationsModel,i=t.localesAllowed,this.specificOriginModel=n,this.specificTranslationsModel=r,this.localesAllowed=i,this.loading=!1;case 12:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),setupListener:function(){this.service.on("progress",this.progressUpdate),this.service.on("completed",this.completedUpdate)},removeListener:function(){this.service.off("progress",this.progressUpdate),this.service.off("completed",this.completedUpdate)},progressUpdate:function(e){var t=e.jobId,n=e.progress,r=this.jobs.find(function(e){return e.id===t});void 0!==r?r.progress=parseFloat(n):console.error("No job found.")},completedUpdate:function(e){var t=e.jobId,n=e.result,r=this.jobs.find(function(e){return e.id===t});r.returnvalue=n},validate:function(){var e=o(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.service.create(t);case 2:if(n=e.sent,console.log("validate response",n),!(n.length>=1)){e.next=9;break}return this.rendering=!0,e.next=8,this.service.get(n.map(function(e){return e.id}));case 8:this.jobs=e.sent;case 9:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}},_e=we,xe=(n("49d1"),A(_e,r,i,!1,null,null,null));xe.options.__file="TemplateDdv.vue";var Se=xe.exports;n.d(t,"DataDrivenVideoUi",function(){return Se})},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})});
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["dataDrivenVideoUi"]=t(require("vue")):e["dataDrivenVideoUi"]=t(e["Vue"])})("undefined"!==typeof self?self:this,function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s="fae3")}({"01f9":function(e,t,n){"use strict";var r=n("2d00"),i=n("5ca1"),o=n("2aba"),a=n("32e9"),s=n("84f2"),c=n("41a0"),u=n("7f20"),l=n("38fd"),f=n("2b4c")("iterator"),d=!([].keys&&"next"in[].keys()),p="@@iterator",h="keys",v="values",m=function(){return this};e.exports=function(e,t,n,g,y,b,w){c(n,t,g);var _,x,$,S=function(e){if(!d&&e in C)return C[e];switch(e){case h:return function(){return new n(this,e)};case v:return function(){return new n(this,e)}}return function(){return new n(this,e)}},O=t+" Iterator",j=y==v,L=!1,C=e.prototype,k=C[f]||C[p]||y&&C[y],M=k||S(y),P=y?j?S("entries"):M:void 0,A="Array"==t&&C.entries||k;if(A&&($=l(A.call(new e)),$!==Object.prototype&&$.next&&(u($,O,!0),r||"function"==typeof $[f]||a($,f,m))),j&&k&&k.name!==v&&(L=!0,M=function(){return k.call(this)}),r&&!w||!d&&!L&&C[f]||a(C,f,M),s[t]=M,s[O]=m,y)if(_={values:j?M:S(v),keys:b?M:S(h),entries:P},w)for(x in _)x in C||o(C,x,_[x]);else i(i.P+i.F*(d||L),t,_);return _}},"0a49":function(e,t,n){var r=n("9b43"),i=n("626a"),o=n("4bf8"),a=n("9def"),s=n("cd1c");e.exports=function(e,t){var n=1==e,c=2==e,u=3==e,l=4==e,f=6==e,d=5==e||f,p=t||s;return function(t,s,h){for(var v,m,g=o(t),y=i(g),b=r(s,h,3),w=a(y.length),_=0,x=n?p(t,w):c?p(t,0):void 0;w>_;_++)if((d||_ in y)&&(v=y[_],m=b(v,_,g),e))if(n)x[_]=m;else if(m)switch(e){case 3:return!0;case 5:return v;case 6:return _;case 2:x.push(v)}else if(l)return!1;return f?-1:u||l?l:x}}},"0bed":function(e,t,n){},"0d58":function(e,t,n){var r=n("ce10"),i=n("e11e");e.exports=Object.keys||function(e){return r(e,i)}},1169:function(e,t,n){var r=n("2d95");e.exports=Array.isArray||function(e){return"Array"==r(e)}},"11e9":function(e,t,n){var r=n("52a7"),i=n("4630"),o=n("6821"),a=n("6a99"),s=n("69a8"),c=n("c69a"),u=Object.getOwnPropertyDescriptor;t.f=n("9e1e")?u:function(e,t){if(e=o(e),t=a(t,!0),c)try{return u(e,t)}catch(e){}if(s(e,t))return i(!r.f.call(e,t),e[t])}},1495:function(e,t,n){var r=n("86cc"),i=n("cb7c"),o=n("0d58");e.exports=n("9e1e")?Object.defineProperties:function(e,t){i(e);var n,a=o(t),s=a.length,c=0;while(s>c)r.f(e,n=a[c++],t[n]);return e}},"1d9f":function(e,t,n){"use strict";var r=n("97ab"),i=n.n(r);i.a},"1eb2":function(e,t,n){var r;"undefined"!==typeof window&&((r=window.document.currentScript)&&(r=r.src.match(/(.+\/)[^/]+\.js$/))&&(n.p=r[1]))},"214f":function(e,t,n){"use strict";var r=n("32e9"),i=n("2aba"),o=n("79e5"),a=n("be13"),s=n("2b4c");e.exports=function(e,t,n){var c=s(e),u=n(a,c,""[e]),l=u[0],f=u[1];o(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,l),r(RegExp.prototype,c,2==t?function(e,t){return f.call(e,this,t)}:function(e){return f.call(e,this)}))}},"230e":function(e,t,n){var r=n("d3f4"),i=n("7726").document,o=r(i)&&r(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},2621:function(e,t){t.f=Object.getOwnPropertySymbols},"2aba":function(e,t,n){var r=n("7726"),i=n("32e9"),o=n("69a8"),a=n("ca5a")("src"),s="toString",c=Function[s],u=(""+c).split(s);n("8378").inspectSource=function(e){return c.call(e)},(e.exports=function(e,t,n,s){var c="function"==typeof n;c&&(o(n,"name")||i(n,"name",t)),e[t]!==n&&(c&&(o(n,a)||i(n,a,e[t]?""+e[t]:u.join(String(t)))),e===r?e[t]=n:s?e[t]?e[t]=n:i(e,t,n):(delete e[t],i(e,t,n)))})(Function.prototype,s,function(){return"function"==typeof this&&this[a]||c.call(this)})},"2aeb":function(e,t,n){var r=n("cb7c"),i=n("1495"),o=n("e11e"),a=n("613b")("IE_PROTO"),s=function(){},c="prototype",u=function(){var e,t=n("230e")("iframe"),r=o.length,i="<",a=">";t.style.display="none",n("fab2").appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write(i+"script"+a+"document.F=Object"+i+"/script"+a),e.close(),u=e.F;while(r--)delete u[c][o[r]];return u()};e.exports=Object.create||function(e,t){var n;return null!==e?(s[c]=r(e),n=new s,s[c]=null,n[a]=e):n=u(),void 0===t?n:i(n,t)}},"2b4c":function(e,t,n){var r=n("5537")("wks"),i=n("ca5a"),o=n("7726").Symbol,a="function"==typeof o,s=e.exports=function(e){return r[e]||(r[e]=a&&o[e]||(a?o:i)("Symbol."+e))};s.store=r},"2d00":function(e,t){e.exports=!1},"2d95":function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},"32e9":function(e,t,n){var r=n("86cc"),i=n("4630");e.exports=n("9e1e")?function(e,t,n){return r.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,e}},"38fd":function(e,t,n){var r=n("69a8"),i=n("4bf8"),o=n("613b")("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=i(e),r(e,o)?e[o]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},"416b":function(e,t,n){"use strict";var r=n("9b8f"),i=n.n(r);i.a},"41a0":function(e,t,n){"use strict";var r=n("2aeb"),i=n("4630"),o=n("7f20"),a={};n("32e9")(a,n("2b4c")("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(a,{next:i(1,n)}),o(e,t+" Iterator")}},"456d":function(e,t,n){var r=n("4bf8"),i=n("0d58");n("5eda")("keys",function(){return function(e){return i(r(e))}})},4588:function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}},4630:function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},"497a":function(e,t,n){"use strict";var r=n("4caa"),i=n.n(r);i.a},"49d1":function(e,t,n){"use strict";var r=n("53bf"),i=n.n(r);i.a},"4bf8":function(e,t,n){var r=n("be13");e.exports=function(e){return Object(r(e))}},"4caa":function(e,t,n){},"52a7":function(e,t){t.f={}.propertyIsEnumerable},"53bf":function(e,t,n){},5537:function(e,t,n){var r=n("8378"),i=n("7726"),o="__core-js_shared__",a=i[o]||(i[o]={});(e.exports=function(e,t){return a[e]||(a[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n("2d00")?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},"5a0c":function(e,t,n){!function(t,n){e.exports=n()}(0,function(){"use strict";var e="millisecond",t="second",n="minute",r="hour",i="day",o="week",a="month",s="year",c=/^(\d{4})-?(\d{1,2})-?(\d{0,2})(.*?(\d{1,2}):(\d{1,2}):(\d{1,2}))?.?(\d{1,3})?$/,u=/\[.*?\]|Y{2,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,l={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},f=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},d={padStart:f,padZoneStr:function(e){var t=Math.abs(e),n=Math.floor(t/60),r=t%60;return(e<=0?"+":"-")+f(n,2,"0")+":"+f(r,2,"0")},monthDiff:function(e,t){var n=12*(t.year()-e.year())+(t.month()-e.month()),r=e.clone().add(n,"months"),i=t-r<0,o=e.clone().add(n+(i?-1:1),"months");return Number(-(n+(t-r)/(i?r-o:o-r)))},absFloor:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},prettyUnit:function(c){return{M:a,y:s,w:o,d:i,h:r,m:n,s:t,ms:e}[c]||String(c||"").toLowerCase().replace(/s$/,"")},isUndefined:function(e){return void 0===e}},p="en",h={};h[p]=l;var v=function(e){return e instanceof w},m=function(e,t,n){var r;if(!e)return null;if("string"==typeof e)h[e]&&(r=e),t&&(h[e]=t,r=e);else{var i=e.name;h[i]=e,r=i}return n||(p=r),r},g=function(e,t){if(v(e))return e.clone();var n=t||{};return n.date=e,new w(n)},y=function(e,t){return g(e,{locale:t.$L})},b=d;b.parseLocale=m,b.isDayjs=v,b.wrapper=y;var w=function(){function l(e){this.parse(e)}var f=l.prototype;return f.parse=function(e){var t,n;this.$d=null===(t=e.date)?new Date(NaN):b.isUndefined(t)?new Date:t instanceof Date?t:"string"==typeof t&&/.*[^Z]$/i.test(t)&&(n=t.match(c))?new Date(n[1],n[2]-1,n[3]||1,n[5]||0,n[6]||0,n[7]||0,n[8]||0):new Date(t),this.init(e)},f.init=function(e){this.$y=this.$d.getFullYear(),this.$M=this.$d.getMonth(),this.$D=this.$d.getDate(),this.$W=this.$d.getDay(),this.$H=this.$d.getHours(),this.$m=this.$d.getMinutes(),this.$s=this.$d.getSeconds(),this.$ms=this.$d.getMilliseconds(),this.$L=this.$L||m(e.locale,null,!0)||p},f.$utils=function(){return b},f.isValid=function(){return!("Invalid Date"===this.$d.toString())},f.$compare=function(e){return this.valueOf()-g(e).valueOf()},f.isSame=function(e){return 0===this.$compare(e)},f.isBefore=function(e){return this.$compare(e)<0},f.isAfter=function(e){return this.$compare(e)>0},f.year=function(){return this.$y},f.month=function(){return this.$M},f.day=function(){return this.$W},f.date=function(){return this.$D},f.hour=function(){return this.$H},f.minute=function(){return this.$m},f.second=function(){return this.$s},f.millisecond=function(){return this.$ms},f.unix=function(){return Math.floor(this.valueOf()/1e3)},f.valueOf=function(){return this.$d.getTime()},f.startOf=function(e,c){var u=this,l=!!b.isUndefined(c)||c,f=function(e,t){var n=y(new Date(u.$y,t,e),u);return l?n:n.endOf(i)},d=function(e,t){return y(u.toDate()[e].apply(u.toDate(),l?[0,0,0,0].slice(t):[23,59,59,999].slice(t)),u)};switch(b.prettyUnit(e)){case s:return l?f(1,0):f(31,11);case a:return l?f(1,this.$M):f(0,this.$M+1);case o:return f(l?this.$D-this.$W:this.$D+(6-this.$W),this.$M);case i:case"date":return d("setHours",0);case r:return d("setMinutes",1);case n:return d("setSeconds",2);case t:return d("setMilliseconds",3);default:return this.clone()}},f.endOf=function(e){return this.startOf(e,!1)},f.$set=function(o,c){switch(b.prettyUnit(o)){case i:this.$d.setDate(this.$D+(c-this.$W));break;case"date":this.$d.setDate(c);break;case a:this.$d.setMonth(c);break;case s:this.$d.setFullYear(c);break;case r:this.$d.setHours(c);break;case n:this.$d.setMinutes(c);break;case t:this.$d.setSeconds(c);break;case e:this.$d.setMilliseconds(c)}return this.init(),this},f.set=function(e,t){return this.clone().$set(e,t)},f.add=function(e,c){var u=this;e=Number(e);var l,f=b.prettyUnit(c),d=function(t,n){var r=u.set("date",1).set(t,n+e);return r.set("date",Math.min(u.$D,r.daysInMonth()))};if(f===a)return d(a,this.$M);if(f===s)return d(s,this.$y);switch(f){case n:l=6e4;break;case r:l=36e5;break;case i:l=864e5;break;case o:l=6048e5;break;case t:l=1e3;break;default:l=1}var p=this.valueOf()+e*l;return y(p,this)},f.subtract=function(e,t){return this.add(-1*e,t)},f.format=function(e){var t=this,n=e||"YYYY-MM-DDTHH:mm:ssZ",r=b.padZoneStr(this.$d.getTimezoneOffset()),i=this.$locale(),o=i.weekdays,a=i.months,s=function(e,t,n,r){return e&&e[t]||n[t].substr(0,r)};return n.replace(u,function(e){if(e.indexOf("[")>-1)return e.replace(/\[|\]/g,"");switch(e){case"YY":return String(t.$y).slice(-2);case"YYYY":return String(t.$y);case"M":return String(t.$M+1);case"MM":return b.padStart(t.$M+1,2,"0");case"MMM":return s(i.monthsShort,t.$M,a,3);case"MMMM":return a[t.$M];case"D":return String(t.$D);case"DD":return b.padStart(t.$D,2,"0");case"d":return String(t.$W);case"dd":return s(i.weekdaysMin,t.$W,o,2);case"ddd":return s(i.weekdaysShort,t.$W,o,3);case"dddd":return o[t.$W];case"H":return String(t.$H);case"HH":return b.padStart(t.$H,2,"0");case"h":case"hh":return 0===t.$H?12:b.padStart(t.$H<13?t.$H:t.$H-12,"hh"===e?2:1,"0");case"a":return t.$H<12?"am":"pm";case"A":return t.$H<12?"AM":"PM";case"m":return String(t.$m);case"mm":return b.padStart(t.$m,2,"0");case"s":return String(t.$s);case"ss":return b.padStart(t.$s,2,"0");case"SSS":return b.padStart(t.$ms,3,"0");case"Z":return r;default:return r.replace(":","")}})},f.diff=function(e,c,u){var l=b.prettyUnit(c),f=g(e),d=this-f,p=b.monthDiff(this,f);switch(l){case s:p/=12;break;case a:break;case"quarter":p/=3;break;case o:p=d/6048e5;break;case i:p=d/864e5;break;case r:p=d/36e5;break;case n:p=d/6e4;break;case t:p=d/1e3;break;default:p=d}return u?p:b.absFloor(p)},f.daysInMonth=function(){return this.endOf(a).$D},f.$locale=function(){return h[this.$L]},f.locale=function(e,t){var n=this.clone();return n.$L=m(e,t,!0),n},f.clone=function(){return y(this.toDate(),this)},f.toDate=function(){return new Date(this.$d)},f.toArray=function(){return[this.$y,this.$M,this.$D,this.$H,this.$m,this.$s,this.$ms]},f.toJSON=function(){return this.toISOString()},f.toISOString=function(){return this.toDate().toISOString()},f.toObject=function(){return{years:this.$y,months:this.$M,date:this.$D,hours:this.$H,minutes:this.$m,seconds:this.$s,milliseconds:this.$ms}},f.toString=function(){return this.$d.toUTCString()},l}();return g.extend=function(e,t){return e(t,w,g),g},g.locale=m,g.isDayjs=v,g.en=h[p],g})},"5ca1":function(e,t,n){var r=n("7726"),i=n("8378"),o=n("32e9"),a=n("2aba"),s=n("9b43"),c="prototype",u=function(e,t,n){var l,f,d,p,h=e&u.F,v=e&u.G,m=e&u.S,g=e&u.P,y=e&u.B,b=v?r:m?r[t]||(r[t]={}):(r[t]||{})[c],w=v?i:i[t]||(i[t]={}),_=w[c]||(w[c]={});for(l in v&&(n=t),n)f=!h&&b&&void 0!==b[l],d=(f?b:n)[l],p=y&&f?s(d,r):g&&"function"==typeof d?s(Function.call,d):d,b&&a(b,l,d,e&u.U),w[l]!=d&&o(w,l,p),g&&_[l]!=d&&(_[l]=d)};r.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,u.U=64,u.R=128,e.exports=u},"5dbc":function(e,t,n){var r=n("d3f4"),i=n("8b97").set;e.exports=function(e,t,n){var o,a=t.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&r(o)&&i&&i(e,o),e}},"5eda":function(e,t,n){var r=n("5ca1"),i=n("8378"),o=n("79e5");e.exports=function(e,t){var n=(i.Object||{})[e]||Object[e],a={};a[e]=t(n),r(r.S+r.F*o(function(){n(1)}),"Object",a)}},"613b":function(e,t,n){var r=n("5537")("keys"),i=n("ca5a");e.exports=function(e){return r[e]||(r[e]=i(e))}},"626a":function(e,t,n){var r=n("2d95");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},6821:function(e,t,n){var r=n("626a"),i=n("be13");e.exports=function(e){return r(i(e))}},"69a8":function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},"6a99":function(e,t,n){var r=n("d3f4");e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;if("function"==typeof(n=e.valueOf)&&!r(i=n.call(e)))return i;if(!t&&"function"==typeof(n=e.toString)&&!r(i=n.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},"6e9d":function(e,t,n){},7333:function(e,t,n){"use strict";var r=n("0d58"),i=n("2621"),o=n("52a7"),a=n("4bf8"),s=n("626a"),c=Object.assign;e.exports=!c||n("79e5")(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=c({},e)[n]||Object.keys(c({},t)).join("")!=r})?function(e,t){var n=a(e),c=arguments.length,u=1,l=i.f,f=o.f;while(c>u){var d,p=s(arguments[u++]),h=l?r(p).concat(l(p)):r(p),v=h.length,m=0;while(v>m)f.call(p,d=h[m++])&&(n[d]=p[d])}return n}:c},"73ee":function(e,t,n){},7514:function(e,t,n){"use strict";var r=n("5ca1"),i=n("0a49")(5),o="find",a=!0;o in[]&&Array(1)[o](function(){a=!1}),r(r.P+r.F*a,"Array",{find:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),n("9c6c")(o)},7726:function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"77f1":function(e,t,n){var r=n("4588"),i=Math.max,o=Math.min;e.exports=function(e,t){return e=r(e),e<0?i(e+t,0):o(e,t)}},"79e5":function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},"7f20":function(e,t,n){var r=n("86cc").f,i=n("69a8"),o=n("2b4c")("toStringTag");e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,o)&&r(e,o,{configurable:!0,value:t})}},"7f7f":function(e,t,n){var r=n("86cc").f,i=Function.prototype,o=/^\s*function ([^ (]*)/,a="name";a in i||n("9e1e")&&r(i,a,{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(e){return""}}})},8378:function(e,t){var n=e.exports={version:"2.5.7"};"number"==typeof __e&&(__e=n)},"84ed":function(e,t,n){"use strict";var r=n("0bed"),i=n.n(r);i.a},"84f2":function(e,t){e.exports={}},"86cc":function(e,t,n){var r=n("cb7c"),i=n("c69a"),o=n("6a99"),a=Object.defineProperty;t.f=n("9e1e")?Object.defineProperty:function(e,t,n){if(r(e),t=o(t,!0),r(n),i)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},"8b97":function(e,t,n){var r=n("d3f4"),i=n("cb7c"),o=function(e,t){if(i(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{r=n("9b43")(Function.call,n("11e9").f(Object.prototype,"__proto__").set,2),r(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return o(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:o}},"8bbf":function(t,n){t.exports=e},9093:function(e,t,n){var r=n("ce10"),i=n("e11e").concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}},"96cf":function(e,t){!function(t){"use strict";var n,r=Object.prototype,i=r.hasOwnProperty,o="function"===typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",u="object"===typeof e,l=t.regeneratorRuntime;if(l)u&&(e.exports=l);else{l=t.regeneratorRuntime=u?e.exports:{},l.wrap=w;var f="suspendedStart",d="suspendedYield",p="executing",h="completed",v={},m={};m[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(A([])));y&&y!==r&&i.call(y,a)&&(m=y);var b=S.prototype=x.prototype=Object.create(m);$.prototype=b.constructor=S,S.constructor=$,S[c]=$.displayName="GeneratorFunction",l.isGeneratorFunction=function(e){var t="function"===typeof e&&e.constructor;return!!t&&(t===$||"GeneratorFunction"===(t.displayName||t.name))},l.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(b),e},l.awrap=function(e){return{__await:e}},O(j.prototype),j.prototype[s]=function(){return this},l.AsyncIterator=j,l.async=function(e,t,n,r){var i=new j(w(e,t,n,r));return l.isGeneratorFunction(t)?i:i.next().then(function(e){return e.done?e.value:i.next()})},O(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},l.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){while(t.length){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},l.values=A,P.prototype={constructor:P,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(M),!e)for(var t in this)"t"===t.charAt(0)&&i.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=n)},stop:function(){this.done=!0;var e=this.tryEntries[0],t=e.completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function r(r,i){return s.type="throw",s.arg=e,t.next=r,i&&(t.method="next",t.arg=n),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),u=i.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),M(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;M(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:A(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),v}}}function w(e,t,n,r){var i=t&&t.prototype instanceof x?t:x,o=Object.create(i.prototype),a=new P(r||[]);return o._invoke=L(e,n,a),o}function _(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function x(){}function $(){}function S(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function j(e){function t(n,r,o,a){var s=_(e[n],e,r);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===typeof u&&i.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,o,a)},function(e){t("throw",e,o,a)}):Promise.resolve(u).then(function(e){c.value=e,o(c)},a)}a(s.arg)}var n;function r(e,r){function i(){return new Promise(function(n,i){t(e,r,n,i)})}return n=n?n.then(i,i):i()}this._invoke=r}function L(e,t,n){var r=f;return function(i,o){if(r===p)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return E()}n.method=i,n.arg=o;while(1){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===f)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var c=_(e,t,n);if("normal"===c.type){if(r=n.done?h:d,c.arg===v)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(r=h,n.method="throw",n.arg=c.arg)}}}function C(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,C(e,t),"throw"===t.method))return v;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=_(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,v;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,v):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,v)}function k(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function M(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function P(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(k,this),this.reset(!0)}function A(e){if(e){var t=e[a];if(t)return t.call(e);if("function"===typeof e.next)return e;if(!isNaN(e.length)){var r=-1,o=function t(){while(++r<e.length)if(i.call(e,r))return t.value=e[r],t.done=!1,t;return t.value=n,t.done=!0,t};return o.next=o}}return{next:E}}function E(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},"97ab":function(e,t,n){},"9b43":function(e,t,n){var r=n("d8e8");e.exports=function(e,t,n){if(r(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}},"9b8f":function(e,t,n){},"9c6c":function(e,t,n){var r=n("2b4c")("unscopables"),i=Array.prototype;void 0==i[r]&&n("32e9")(i,r,{}),e.exports=function(e){i[r][e]=!0}},"9def":function(e,t,n){var r=n("4588"),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}},"9e1e":function(e,t,n){e.exports=!n("79e5")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"9e28":function(e,t,n){},a481:function(e,t,n){n("214f")("replace",2,function(e,t,n){return[function(r,i){"use strict";var o=e(this),a=void 0==r?void 0:r[t];return void 0!==a?a.call(r,o,i):n.call(String(o),r,i)},n]})},aa77:function(e,t,n){var r=n("5ca1"),i=n("be13"),o=n("79e5"),a=n("fdef"),s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),f=function(e,t,n){var i={},s=o(function(){return!!a[e]()||c[e]()!=c}),u=i[e]=s?t(d):a[e];n&&(i[n]=u),r(r.P+r.F*s,"String",i)},d=f.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(l,"")),e};e.exports=f},ac6a:function(e,t,n){for(var r=n("cadf"),i=n("0d58"),o=n("2aba"),a=n("7726"),s=n("32e9"),c=n("84f2"),u=n("2b4c"),l=u("iterator"),f=u("toStringTag"),d=c.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},h=i(p),v=0;v<h.length;v++){var m,g=h[v],y=p[g],b=a[g],w=b&&b.prototype;if(w&&(w[l]||s(w,l,d),w[f]||s(w,f,g),c[g]=d,y))for(m in r)w[m]||o(w,m,r[m],!0)}},be13:function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},c366:function(e,t,n){var r=n("6821"),i=n("9def"),o=n("77f1");e.exports=function(e){return function(t,n,a){var s,c=r(t),u=i(c.length),l=o(a,u);if(e&&n!=n){while(u>l)if(s=c[l++],s!=s)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}}},c5f6:function(e,t,n){"use strict";var r=n("7726"),i=n("69a8"),o=n("2d95"),a=n("5dbc"),s=n("6a99"),c=n("79e5"),u=n("9093").f,l=n("11e9").f,f=n("86cc").f,d=n("aa77").trim,p="Number",h=r[p],v=h,m=h.prototype,g=o(n("2aeb")(m))==p,y="trim"in String.prototype,b=function(e){var t=s(e,!1);if("string"==typeof t&&t.length>2){t=y?t.trim():d(t,3);var n,r,i,o=t.charCodeAt(0);if(43===o||45===o){if(n=t.charCodeAt(2),88===n||120===n)return NaN}else if(48===o){switch(t.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+t}for(var a,c=t.slice(2),u=0,l=c.length;u<l;u++)if(a=c.charCodeAt(u),a<48||a>i)return NaN;return parseInt(c,r)}}return+t};if(!h(" 0o1")||!h("0b1")||h("+0x1")){h=function(e){var t=arguments.length<1?0:e,n=this;return n instanceof h&&(g?c(function(){m.valueOf.call(n)}):o(n)!=p)?a(new v(b(t)),n,h):b(t)};for(var w,_=n("9e1e")?u(v):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),x=0;_.length>x;x++)i(v,w=_[x])&&!i(h,w)&&f(h,w,l(v,w));h.prototype=m,m.constructor=h,n("2aba")(r,p,h)}},c69a:function(e,t,n){e.exports=!n("9e1e")&&!n("79e5")(function(){return 7!=Object.defineProperty(n("230e")("div"),"a",{get:function(){return 7}}).a})},ca5a:function(e,t){var n=0,r=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+r).toString(36))}},cadf:function(e,t,n){"use strict";var r=n("9c6c"),i=n("d53b"),o=n("84f2"),a=n("6821");e.exports=n("01f9")(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,i(1)):i(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},cb7c:function(e,t,n){var r=n("d3f4");e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},cd1c:function(e,t,n){var r=n("e853");e.exports=function(e,t){return new(r(e))(t)}},ce10:function(e,t,n){var r=n("69a8"),i=n("6821"),o=n("c366")(!1),a=n("613b")("IE_PROTO");e.exports=function(e,t){var n,s=i(e),c=0,u=[];for(n in s)n!=a&&r(s,n)&&u.push(n);while(t.length>c)r(s,n=t[c++])&&(~o(u,n)||u.push(n));return u}},d3f4:function(e,t){e.exports=function(e){return"object"===typeof e?null!==e:"function"===typeof e}},d53b:function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},d8e8:function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},dee8:function(e,t,n){"use strict";var r=n("9e28"),i=n.n(r);i.a},e11e:function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},e853:function(e,t,n){var r=n("d3f4"),i=n("1169"),o=n("2b4c")("species");e.exports=function(e){var t;return i(e)&&(t=e.constructor,"function"!=typeof t||t!==Array&&!i(t.prototype)||(t=void 0),r(t)&&(t=t[o],null===t&&(t=void 0))),void 0===t?Array:t}},e977:function(e,t,n){"use strict";var r=n("73ee"),i=n.n(r);i.a},ebf2:function(e,t,n){"use strict";var r=n("6e9d"),i=n.n(r);i.a},f751:function(e,t,n){var r=n("5ca1");r(r.S+r.F,"Object",{assign:n("7333")})},fab2:function(e,t,n){var r=n("7726").document;e.exports=r&&r.documentElement},fae3:function(e,t,n){"use strict";n.r(t);n("1eb2");var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"template"},[e.loading?n("p",[e._v("Loading •••")]):n("section",{staticClass:"wrapper"},[n("preview",{attrs:{"template-url":e.templateUrl}}),n("settingsForm",{attrs:{"specific-origin-model":e.specificOriginModel,"specific-translations-model":e.specificTranslationsModel,"locales-allowed":e.localesAllowed,"template-url":e.templateUrl},on:{validate:e.validate}}),n("results",{directives:[{name:"show",rawName:"v-show",value:e.jobs.length>0,expression:"jobs.length > 0"}],attrs:{jobs:e.jobs}})],1)])},i=[];n("7514"),n("96cf");function o(e){return function(){var t=this,n=arguments;return new Promise(function(r,i){var o=e.apply(t,n);function a(e,t){try{var n=o[e](t),a=n.value}catch(e){return void i(e)}n.done?r(a):Promise.resolve(a).then(s,c)}function s(e){a("next",e)}function c(e){a("throw",e)}s()})}}var a=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"settingsForm"},[0!==e.specificOriginModel.length?n("div",{class:["block-setting",{"on-preview":e.isOnPreview()}]},[e._m(0),e._l(e.specificOriginModel,function(t){return n("setting-form-item",{key:"settingOrigin_"+t.name,attrs:{type:t.type,name:t.type+"_"+t.name,label:t.label,"is-required":t.required}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,focus:t.focus,placeholder:t.placeholder,validation:t.validation,required:t.required},model:{value:e.specific.origin[t.name],callback:function(n){e.$set(e.specific.origin,t.name,n)},expression:"specific.origin[setting.name]"}})],1)}),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(t){e.sendPreview()}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"}),e._v("\n Prévisualiser\n ")])],2):e._e(),n("div",{staticClass:"block-setting"},[e._m(1),n("select",{directives:[{name:"model",rawName:"v-model",value:e.lastLocaleAdded,expression:"lastLocaleAdded"}],staticClass:"add-locale",attrs:{disabled:Object.keys(e.specific.translations).length===e.localesAllowed.length},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.lastLocaleAdded=t.target.multiple?n:n[0]}}},[n("option",{attrs:{disabled:"",value:""}},[e._v("Ajouter une traduction")]),e._l(e.localesAllowed,function(t){return n("option",{key:"locale_"+t,attrs:{disabled:Object.keys(e.specific.translations).includes(t)},domProps:{value:t}},[e._v(e._s(t))])})],2)]),0!==Object.keys(e.specific.translations).length?n("div",e._l(Object.keys(e.specific.translations),function(t){return n("div",{key:"tr_"+t,class:["translation","block-setting",{"on-preview":e.isOnPreview(t)}]},[n("header",{staticClass:"no-border"},[n("h3",[e._v("Version "+e._s(t.toUpperCase()))])]),e._l(e.specificTranslationsModel,function(r){return n("setting-form-item",{key:"trs_"+t+"_"+r.name,attrs:{type:r.type,name:t+"_"+r.type+"_"+r.name,label:r.label}},[n("setting-input",{attrs:{name:t+"_"+r.name,type:r.type,"default-value":r.value,required:r.required},model:{value:e.specific.translations[t][r.name],callback:function(n){e.$set(e.specific.translations[t],r.name,n)},expression:"specific.translations[locale][setting.name]"}})],1)}),n("div",{staticClass:"wrapper-button"},[n("button",{staticClass:"delete-setting",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t)}}},[n("span",{staticClass:"UI-icon UI-close"})]),n("button",{staticClass:"send-preview",attrs:{type:"button"},on:{click:function(n){e.sendPreview(t)}}},[n("div",{staticClass:"progress"}),n("span",{staticClass:"UI-icon UI-play"})])])],2)})):e._e(),0!==e.general.length?n("div",{staticClass:"general-setting block-setting"},[e._m(2),e._l(e.generalModel,function(t){return n("setting-form-item",{key:"setting_"+t.name,attrs:{name:t.type+"_"+t.name,type:t.type,label:t.label}},[n("setting-input",{attrs:{name:t.type+"_"+t.name,type:t.type,"default-value":t.value,required:t.required},model:{value:e.general[t.name],callback:function(n){e.$set(e.general,t.name,n)},expression:"general[setting.name]"}})],1)})],2):e._e(),0!==e.configs.length?n("div",{staticClass:"configs"},[e._m(3),e._l(e.configs,function(t){return n("div",{key:"details_"+(t.specific.locale||"VO"),staticClass:"configs-details"},[n("span",[e._v(e._s(t.general.filename))]),t.specific.locale?n("button",{staticClass:"delete-setting rounded",attrs:{type:"button"},on:{click:function(n){e.removeLocale(t.specific.locale)}}},[n("span",{staticClass:"UI-icon UI-close"})]):e._e()])}),n("div",{staticClass:"validate"},[n("button",{staticClass:"validate-config",attrs:{type:"button"},on:{click:function(t){e.validate()}}},[n("span",{staticClass:"UI-icon UI-checked"}),e._v("\n Générer "+e._s(e.configs.length)+" "+e._s(e.$tc("videos",e.configs.length))+"\n ")])])],2):e._e()])},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Template Tweet")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Langues")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Configuration générale")])])},function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("header",[n("h2",[e._v("Rendus")])])}];n("a481");function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n("f751");function u(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}function l(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}function f(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function d(e){return u(e)||l(e)||f()}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},r=Object.keys(n);"function"===typeof Object.getOwnPropertySymbols&&(r=r.concat(Object.getOwnPropertySymbols(n).filter(function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach(function(t){c(e,t,n[t])})}return e}n("ac6a"),n("cadf"),n("456d"),n("7f7f");var h="videoTitle",v="videoWidth",m="videoHeight",g="fps",y="fileFormat",b="codec",w="text",_="number",x="select",$="textarea",S=[{type:w,name:h,label:"Titre",value:""},{type:_,name:v,label:"Largeur",value:1920},{type:_,name:m,label:"Hauteur",value:1080},{type:_,name:g,label:"Images par seconde",value:25},{type:x,name:y,label:"Format de fichier",value:["mov","mp4"]},{type:x,name:b,label:"Codec vidéo",value:["prores","h264"]}],O=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["setting-form-item","for-"+e.type,{"is-required":e.isRequired}]},[n("label",{ref:"label",attrs:{for:e.name}},[e._v(e._s(e.label))]),e._t("default")],2)},j=[],L={name:"SettingFormItem",props:{label:{type:String,required:!0},type:{type:String,required:!0},name:{type:String,required:!0},isRequired:{type:Boolean,default:!1}},data:function(){return{paddingLeft:0}},mounted:function(){this.paddingLeft=this.$refs.label.clientWidth}},C=L;n("1d9f");function k(e,t,n,r,i,o,a,s){var c,u="function"===typeof e?e.options:e;if(t&&(u.render=t,u.staticRenderFns=n,u._compiled=!0),r&&(u.functional=!0),o&&(u._scopeId="data-v-"+o),a?(c=function(e){e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,e||"undefined"===typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),i&&i.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(a)},u._ssrRegister=c):i&&(c=s?function(){i.call(this,this.$root.$options.shadowRoot)}:i),c)if(u.functional){u._injectStyles=c;var l=u.render;u.render=function(e,t){return c.call(t),l(e,t)}}else{var f=u.beforeCreate;u.beforeCreate=f?[].concat(f,c):[c]}return{exports:e,options:u}}var M=k(C,O,j,!1,null,null,null);M.options.__file="SettingFormItem.vue";var P=M.exports,A=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.isSelect?n("select",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",attrs:{id:e.name},on:{change:function(t){var n=Array.prototype.filter.call(t.target.options,function(e){return e.selected}).map(function(e){var t="_value"in e?e._value:e.value;return t});e.value=t.target.multiple?n:n[0]}}},e._l(e.defaultValue,function(t){return n("option",{key:t},[e._v("\n "+e._s(t)+"\n ")])})):e.isTextArea?n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],class:["setting-input",{"is-placeholder":e.isPlaceholder}],attrs:{id:e.name,focus:e.focus},domProps:{value:e.value},on:{focus:function(t){e.removePlaceholder()},focusout:function(t){e.resetPlaceholder()},input:function(t){t.target.composing||(e.value=t.target.value)}}}):"checkbox"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"checkbox"},domProps:{checked:Array.isArray(e.value)?e._i(e.value,null)>-1:e.value},on:{change:function(t){var n=e.value,r=t.target,i=!!r.checked;if(Array.isArray(n)){var o=null,a=e._i(n,o);r.checked?a<0&&(e.value=n.concat([o])):a>-1&&(e.value=n.slice(0,a).concat(n.slice(a+1)))}else e.value=i}}}):"radio"===e.type.toLowerCase()?n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:"radio"},domProps:{checked:e._q(e.value,null)},on:{change:function(t){e.value=null}}}):n("input",{directives:[{name:"model",rawName:"v-model",value:e.value,expression:"value"}],staticClass:"setting-input",style:{paddingLeft:e.paddingLeft+"px"},attrs:{id:e.name,autofocus:e.focus,placeholder:e.placeholder,required:e.required,type:e.type.toLowerCase()},domProps:{value:e.value},on:{input:function(t){t.target.composing||(e.value=t.target.value)}}})},E=[],D=(n("c5f6"),{name:"SettingInput",props:{name:{type:String,required:!0},type:{type:String,required:!0},defaultValue:{type:[String,Number,Array,Boolean],required:!0},placeholder:{type:String,default:null},paddingLeft:{type:Number,default:0},focus:{type:Boolean,default:!1},required:{type:Boolean,default:!1},validation:{type:Function,default:null}},data:function(){return{value:""}},computed:{formattedValue:function(){return this.type===_?parseFloat(this.value):this.value},isSelect:function(){return this.type===x},isTextArea:function(){return this.type===$},isPlaceholder:function(){return this.value===this.defaultValue}},watch:{value:function(e){e=this.type===_?parseFloat(e):e,e=this.type===String?e.toLowerCase():e,e=null!==this.validation?this.validation(e):e,this.$emit("input",e)},defaultValue:function(e){this.setDefaultValue()}},created:function(){this.setDefaultValue()},methods:{setDefaultValue:function(){this.value=this.isSelect?this.defaultValue[0]:this.defaultValue,this.$emit("input",this.value)},removePlaceholder:function(){this.isTextArea&&this.isPlaceholder&&(this.value="")},resetPlaceholder:function(){this.isTextArea&&""===this.value&&(this.value=this.defaultValue)}}}),T=D,I=(n("84ed"),k(T,A,E,!1,null,null,null));I.options.__file="SettingInput.vue";var F=I.exports,N=n("8bbf"),q=n.n(N),U=new q.a,R=U,V={name:"SettingsForm",components:{SettingFormItem:P,SettingInput:F},props:{specificOriginModel:{type:Array,required:!0},specificTranslationsModel:{type:Array,required:!0},localesAllowed:{type:Array,default:function(e){return[]}},templateUrl:{type:String,required:!0}},data:function(){return{specific:{origin:{},translations:{}},general:{timestamp:(new Date).getTime()},lastLocaleAdded:"",defaultFilename:"",localeOnPreview:void 0}},computed:{generalModel:function(){var e=S,t=e.find(function(e){return e.name===h});return void 0!==t&&(t.value=this.defaultFilename),e},configs:function(){var e=this,t=[];return t.push(this.generateconfigsEntry()),Object.keys(this.specific.translations).map(function(n){t.push(e.generateconfigsEntry(n))}),t}},watch:{lastLocaleAdded:function(e){0!==e.length&&(this.addLocale(e),this.lastLocaleAdded="")}},created:function(){this.dynamicDataBinding(this.generalModel,this.general),this.dynamicDataBinding(this.specificOriginModel,this.specific.origin)},mounted:function(){this.setupListener()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){R.$on("default-filename",this.updateDefaultFilename),R.$on("preview-progress",this.updateProgressPreviewButton)},removeListener:function(){R.$off("default-filename",this.updateDefaultFilename),R.$off("preview-progress",this.updateProgressPreviewButton)},updateDefaultFilename:function(e){this.defaultFilename=e},updateProgressPreviewButton:function(e){document.querySelector(".on-preview .send-preview .progress").style.width="".concat(100*e,"%")},dynamicDataBinding:function(e,t){var n=this;e.map(function(e){n.$set(t,e.name,e.value)})},addLocale:function(e){this.$set(this.specific.translations,e,{}),this.dynamicDataBinding(this.specificTranslationsModel,this.specific.translations[e])},removeLocale:function(e){this.$delete(this.specific.translations,e)},generateconfigsEntry:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return{general:p({},this.general,{filename:this.generateFilename(t),host:this.templateUrl}),specific:p({locale:t},this.specific.origin,Object.assign.apply(Object,d(this.specificTranslationsModel.map(function(n){return c({},n.name,null!==t?e.specific.translations[t][n.name]:null)}))))}},generateFilename:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=this.general[v]+"_"+this.general[m]+"_"+this.general[g]+g+"_"+this.general[b]+"_";return this.general[h]&&(t+=this.general[h].replace(/[àáâãäå]/g,"a").replace(/[èéêë]/g,"e").replace(/[ïîì]/g,"i").replace(/[öôòõ]/g,"o").replace(/[üûùú]/g,"u").replace(/[ÿ]/g,"y").replace(/[œ]/g,"oe").replace(/[/\\:]/g,"-").replace(/\s/g,"_").replace(/[^a-z0-9-_]/gi,"")+"_"),t+=(e||"VO")+"."+this.general[y],t.toLowerCase()},sendPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=document.querySelector(".on-preview .send-preview .progress");null!==t&&(t.style.width=0),this.checkRequired()||(this.general.timestamp=(new Date).getTime(),this.localeOnPreview=e,R.$emit("previsualize",this.configs.find(function(t){return t.specific.locale===e})))},isOnPreview:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;return this.localeOnPreview===e},checkRequired:function(){var e=document.querySelectorAll(".settingsForm *[required=required]"),t=0,n=!1;while(t<e.length&&!n)n=""===e[t].value||null===e[t].value,t++;return n},validate:function(){if(!this.checkRequired()){var e=this.configs.map(function(e){return{data:e}});this.$emit("validate",e)}}}},H=V,W=(n("416b"),k(H,a,s,!1,null,null,null));W.options.__file="SettingsForm.vue";var G=W.exports,Y=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"preview"},[n("section",{ref:"playerContainer",staticClass:"player-container"},[n("div",{staticClass:"player",style:{width:e.previewWidth+"px",height:e.previewHeight+"px"}},[n("iframe",{style:e.iframeDimension,attrs:{src:e.templateUrl}})]),n("progress-bar",{attrs:{duration:e.duration,progress:e.progress,color:"#14c6ab"}}),n("p",{staticClass:"timecode"},[e._v(e._s(e.$n(e.progress))+"/"+e._s(e.$n(e.duration))+"s")])],1)])},B=[],J=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"progress-bar"},[n("div",{class:e.progressClass,style:{width:e.progressWidth,background:e.color}})])},z=[],Z={name:"ProgresseBar",props:{progress:{type:Number,required:!0},duration:{type:Number,required:!0},color:{type:String,default:null}},data:function(){return{reset:!1}},computed:{progressClass:function(){return{"progress-value":!0,reset:this.reset}},progressWidth:function(){return 0!==this.duration?"".concat(this.progress/this.duration*100,"%"):"0%"}},watch:{progress:function(e,t){this.reset=t>e}}},X=Z,K=(n("dee8"),k(X,J,z,!1,null,null,null));K.options.__file="ProgressBar.vue";var Q=K.exports,ee={name:"Preview",components:{ProgressBar:Q},props:{templateUrl:{type:String,required:!0}},data:function(){return{configWidth:1920,configRatio:16/9,previewWidth:0,progress:0,duration:0}},computed:{previewHeight:function(){return this.previewWidth/this.configRatio},previewRatio:function(){return this.previewWidth/this.configWidth},iframeDimension:function(){return{zoom:this.previewRatio,transform:"scale(".concat(this.previewRatio,")"),transformOrigin:"0 0",width:"".concat(1/this.previewRatio*100,"%"),height:"".concat(1/this.previewRatio*100,"%")}}},mounted:function(){this.setupListener(),this.getWidth()},beforeDestroyed:function(){this.removeListener()},methods:{setupListener:function(){var e=this;R.$on("previsualize",this.sendConfig),window.onmessage=function(t){"animation-update"===t.data.type&&(e.progress=t.data.value,R.$emit("preview-progress",t.data.value/e.duration)),"duration-update"===t.data.type&&(e.duration=t.data.value),"default-filename"===t.data.type&&R.$emit("default-filename",t.data.value)},window.addEventListener("resize",this.getWidth)},removeListener:function(){this.$off("previsualize",this.sendConfig),window.removeEventListener("resize",this.getWidth)},sendConfig:function(e){console.log("sendConfig",e),this.configWidth=e.general.videoWidth,this.configRatio=e.general.videoWidth/e.general.videoHeight,window.frames[0].postMessage({type:"init-template-data",templateData:e.specific},"*")},getWidth:function(){this.previewWidth=parseInt(window.getComputedStyle(this.$refs.playerContainer).getPropertyValue("width").replace("px",""))}}},te=ee,ne=(n("497a"),k(te,Y,B,!1,null,null,null));ne.options.__file="Preview.vue";var re=ne.exports,ie=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"results"},[n("h2",[e._v("Rendus")]),n("div",{staticClass:"results-wrapper"},[n("section",{staticClass:"job-details"},e._l(e.jobs,function(e){return n("progress-job",{key:e.id,attrs:{job:e}})})),n("section",{staticClass:"job-summary"},[n("div",{staticClass:"fixed"},[n("h2",[n("span",[e._v(e._s(e.completedJobs.length)+"/"+e._s(e.jobs.length))]),n("span",[e._v("vidéos terminées")])]),n("a",{attrs:{disabled:!e.allCompleted,href:"#"},on:{click:function(t){return t.preventDefault(),e.downloadLinks(t)}}},[e._v("Télécharger tous les liens\n ")]),n("a",{attrs:{disabled:!e.allCompleted,href:"#"},on:{click:function(t){return t.preventDefault(),e.downloadAll(t)}}},[e._v("Télécharger toutes les vidéos\n ")])])])])])},oe=[],ae=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{class:["progress-job",e.statusClass]},[n("div",{staticClass:"id"},[n("span",[e._v("job "+e._s(e.job.id))])]),n("div",{class:["progress-wrapper",{complete:e.statusCode>=2}]},[n("div",{staticClass:"textual"},[n("span",{staticClass:"filename"},[e._v(e._s(e.job.data.general.filename))]),n("div",{staticClass:"status"},[n("span",[e._v(e._s(e.status))])]),n("span",{staticClass:"percent"},[e._v(e._s((100*e.job.progress).toFixed(2))+"%")])]),n("div",{staticClass:"bar"},[n("progress-bar",{attrs:{duration:1,progress:e.job.progress,color:"black"}})],1)]),n("button",{class:["download",{active:e.statusCode>=2}],attrs:{disabled:e.statusCode<2},on:{click:function(t){e.download()}}},[n("span",{staticClass:"UI-icon UI-download"})])])},se=[],ce={name:"ProgressJob",components:{ProgressBar:Q},props:{job:{type:Object,required:!0}},computed:{statusCode:function(){var e=0;return null===this.job.returnvalue&&1===this.job.progress?e=1:null!==this.job.returnvalue?e=2:null===this.job.returnvalue&&null!==this.job.finishedOn&&(e=3),e},status:function(){var e="capturing animation...";return 1===this.statusCode?e="converting into video format...":2===this.statusCode?e="ready to download":3===this.statusCode&&(e="an error occured"),e},statusClass:function(){var e="capturing";return 2===this.statusCode?e="finished":3===this.statusCode&&(e="failed"),e}},methods:{download:function(){window.open(this.job.returnvalue.url)}}},ue=ce,le=(n("e977"),k(ue,ae,se,!1,null,null,null));le.options.__file="ProgressJob.vue";var fe=le.exports,de=n("5a0c"),pe=n.n(de),he={name:"Results",components:{ProgressJob:fe},props:{jobs:{type:Array,required:!0}},computed:{completedJobs:function(){return this.jobs.filter(function(e){return null!==e.returnvalue})},allCompleted:function(){return this.completedJobs.length===this.jobs.length}},methods:{downloadAll:function(){this.allCompleted&&this.completedJobs.map(function(e){window.open(e.returnvalue.url)})},downloadLinks:function(){if(this.allCompleted){var e=["data:text/csv;charset=utf-8,lang,file,url,expiration"];this.completedJobs.map(function(t,n){e.push("".concat(t.data.specific.locale?t.data.specific.locale:"vo",",").concat(t.data.general.filename,",").concat(t.returnvalue.url,",").concat(pe()().add(15,"days").format("YYYY-MM-DD HH:mm:ss")))}),e=e.join("\n");var t=encodeURI(e),n=document.createElement("a");n.setAttribute("href",t),n.setAttribute("download","links_".concat(this.jobs[0].data.general.filename,".csv")),document.body.appendChild(n),n.click(),document.body.removeChild(n)}}}},ve=he,me=(n("ebf2"),k(ve,ie,oe,!1,null,null,null));me.options.__file="Results.vue";var ge=me.exports,ye={name:"TemplateDdv",components:{SettingsForm:G,Preview:re,Results:ge},props:{templateName:{type:String,required:!0},templateUrl:{type:String,required:!0},service:{type:Object,required:!0}},data:function(){return{loading:!0,specificOriginModel:[],specificTranslationsModel:[],localesAllowed:[],rendering:!1,jobs:[]}},created:function(){this.getTemplate(),this.getJobs(),this.setupListener()},beforeDestroy:function(){this.removeListener()},methods:{getTemplate:function(){var e=o(regeneratorRuntime.mark(function e(){var t,n,r,i,o;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,window.fetch("".concat(this.templateUrl,"/config.json"),{method:"GET",mode:"cors",headers:{Accept:"application/json","Content-Type":"text/plain"}});case 2:return t=e.sent,e.next=5,t.json();case 5:n=e.sent,r=n.specificOriginModel,i=n.specificTranslationsModel,o=n.localesAllowed,this.specificOriginModel=r,this.specificTranslationsModel=i,this.localesAllowed=o,this.loading=!1;case 13:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),getJobs:function(){var e=o(regeneratorRuntime.mark(function e(){var t;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,this.service.get();case 2:t=e.sent,this.jobs=t.filter(function(e){return void 0!==e.data.general});case 4:case"end":return e.stop()}},e,this)}));return function(){return e.apply(this,arguments)}}(),setupListener:function(){this.service.on("progress",this.progressUpdate),this.service.on("completed",this.completedUpdate)},removeListener:function(){this.service.off("progress",this.progressUpdate),this.service.off("completed",this.completedUpdate)},progressUpdate:function(e){var t=e.jobId,n=e.progress,r=this.jobs.find(function(e){return e.id===t});void 0!==r?r.progress=parseFloat(n):console.error("No job found.")},completedUpdate:function(e){var t=e.jobId,n=e.result,r=this.jobs.find(function(e){return e.id===t});r.returnvalue=n},validate:function(){var e=o(regeneratorRuntime.mark(function e(t){var n;return regeneratorRuntime.wrap(function(e){while(1)switch(e.prev=e.next){case 0:return console.log("validate send",t),e.next=3,this.service.create(t);case 3:n=e.sent,console.log("validate response",n),console.log(n.length),n.length>0&&(this.rendering=!0,this.jobs=n);case 7:case"end":return e.stop()}},e,this)}));return function(t){return e.apply(this,arguments)}}()}},be=ye,we=(n("49d1"),k(be,r,i,!1,null,null,null));we.options.__file="TemplateDdv.vue";var _e=we.exports;n.d(t,"DataDrivenVideoUi",function(){return _e})},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}})});
//# sourceMappingURL=dataDrivenVideoUi.umd.min.js.map
{
"name": "@afp/data-driven-video-ui",
"version": "1.1.10",
"version": "1.1.11",
"description": "Main interface to generate data driven videos",

@@ -5,0 +5,0 @@ "main": "dist/dataDrivenVideoUi.umd.min.js",

@@ -22,9 +22,9 @@ // STORE

export const GENERAL_MODEL = [
{type: TEXT, name: VIDEO_TITLE, label: 'Titre', value: '' },
{type: TEXT, name: VIDEO_TITLE, label: 'Titre', value: ''},
{type: NUMBER, name: VIDEO_WIDTH, label: 'Largeur', value: 1920},
{type: NUMBER, name: VIDEO_HEIGHT, label: 'Hauteur', value: 1080},
{type: NUMBER, name: FPS, label: 'Images par seconde', value: 25},
{type: SELECT, name: FILE_FORMAT, label: 'Format de fichier', value: ['mov',]},
{type: SELECT, name: CODEC, label: 'Codec vidéo', value: ['prores']},
{type: CHECKBOX, name: HD, label: 'Haute défition', value: false}
{type: SELECT, name: FILE_FORMAT, label: 'Format de fichier', value: ['mov', 'mp4']},
{type: SELECT, name: CODEC, label: 'Codec vidéo', value: ['prores', 'h264']}
// {type: CHECKBOX, name: HD, label: 'Haute défition', value: false}
]

@@ -6,2 +6,2 @@ module.exports = {

lintOnSave: undefined
}
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc