@tivio/sdk-react 5.0.3-alpha-3 → 5.0.3-alpha-5

Sign up to get free protection for your applications and to get access to all the features.
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@sentry/browser"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):"function"==typeof define&&define.amd?define("@tivio/sdk-react",["react","@sentry/browser","@material-ui/core","@material-ui/icons","firebase/app","firebase/auth","firebase/firestore","formik","i18next","mobx","mobx-react","react-dom","react-i18next","react-router-dom","react-spring","react-virtualized","styled-components","yup"],t):"object"==typeof exports?exports["@tivio/sdk-react"]=t(require("react"),require("@sentry/browser"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):e["@tivio/sdk-react"]=t(e.react,e["@sentry/browser"],e["@material-ui/core"],e["@material-ui/icons"],e["firebase/app"],e["firebase/auth"],e["firebase/firestore"],e.formik,e.i18next,e.mobx,e["mobx-react"],e["react-dom"],e["react-i18next"],e["react-router-dom"],e["react-spring"],e["react-virtualized"],e["styled-components"],e.yup)}(this,(function(e,t,n,r,o,i,a,u,s,c,l,f,d,p,h,v,y,g){return function(){var b={194:function(e,t,n){var r;e.exports=(r=n(8156),function(){var e={146:function(e){var t,n;e.exports=(t={705:function(e){e.exports=function e(t,n,r){function o(a,u){if(!n[a]){if(!t[a]){if(i)return i(a,!0);throw new Error("Cannot find module '"+a+"'")}var s=n[a]={exports:{}};t[a][0].call(s.exports,(function(e){return o(t[a][1][e]||e)}),s,s.exports,e,t,n,r)}return n[a].exports}for(var i=void 0,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){(function(r,o,i,a,u,s,c,l,f){"use strict";var d=e("crypto");function p(e,t){return function(e,t){var n;if(void 0===(n="passthrough"!==t.algorithm?d.createHash(t.algorithm):new m).write&&(n.write=n.update,n.end=n.update),b(t,n).dispatch(e),n.update||n.end(""),n.digest)return n.digest("buffer"===t.encoding?void 0:t.encoding);var r=n.read();return"buffer"!==t.encoding?r.toString(t.encoding):r}(e,t=y(e,t))}(n=t.exports=p).sha1=function(e){return p(e)},n.keys=function(e){return p(e,{excludeValues:!0,algorithm:"sha1",encoding:"hex"})},n.MD5=function(e){return p(e,{algorithm:"md5",encoding:"hex"})},n.keysMD5=function(e){return p(e,{algorithm:"md5",encoding:"hex",excludeValues:!0})};var h=d.getHashes?d.getHashes().slice():["sha1","md5"];h.push("passthrough");var v=["buffer","hex","binary","base64"];function y(e,t){t=t||{};var n={};if(n.algorithm=t.algorithm||"sha1",n.encoding=t.encoding||"hex",n.excludeValues=!!t.excludeValues,n.algorithm=n.algorithm.toLowerCase(),n.encoding=n.encoding.toLowerCase(),n.ignoreUnknown=!0===t.ignoreUnknown,n.respectType=!1!==t.respectType,n.respectFunctionNames=!1!==t.respectFunctionNames,n.respectFunctionProperties=!1!==t.respectFunctionProperties,n.unorderedArrays=!0===t.unorderedArrays,n.unorderedSets=!1!==t.unorderedSets,n.unorderedObjects=!1!==t.unorderedObjects,n.replacer=t.replacer||void 0,n.excludeKeys=t.excludeKeys||void 0,void 0===e)throw new Error("Object argument required.");for(var r=0;r<h.length;++r)h[r].toLowerCase()===n.algorithm.toLowerCase()&&(n.algorithm=h[r]);if(-1===h.indexOf(n.algorithm))throw new Error('Algorithm "'+n.algorithm+'" not supported. supported values: '+h.join(", "));if(-1===v.indexOf(n.encoding)&&"passthrough"!==n.algorithm)throw new Error('Encoding "'+n.encoding+'" not supported. supported values: '+v.join(", "));return n}function g(e){if("function"==typeof e)return null!=/^function\s+\w*\s*\(\s*\)\s*{\s+\[native code\]\s+}$/i.exec(Function.prototype.toString.call(e))}function b(e,t,n){function r(e){return t.update?t.update(e,"utf8"):t.write(e,"utf8")}return n=n||[],{dispatch:function(t){return e.replacer&&(t=e.replacer(t)),this["_"+(null===t?"null":typeof t)](t)},_object:function(t){var o,a=Object.prototype.toString.call(t),u=/\[object (.*)\]/i.exec(a);if(u=(u=u?u[1]:"unknown:["+a+"]").toLowerCase(),0<=(o=n.indexOf(t)))return this.dispatch("[CIRCULAR:"+o+"]");if(n.push(t),void 0!==i&&i.isBuffer&&i.isBuffer(t))return r("buffer:"),r(t);if("object"===u||"function"===u||"asyncfunction"===u){var s=Object.keys(t);e.unorderedObjects&&(s=s.sort()),!1===e.respectType||g(t)||s.splice(0,0,"prototype","__proto__","constructor"),e.excludeKeys&&(s=s.filter((function(t){return!e.excludeKeys(t)}))),r("object:"+s.length+":");var c=this;return s.forEach((function(n){c.dispatch(n),r(":"),e.excludeValues||c.dispatch(t[n]),r(",")}))}if(!this["_"+u]){if(e.ignoreUnknown)return r("["+u+"]");throw new Error('Unknown object type "'+u+'"')}this["_"+u](t)},_array:function(t,o){o=void 0!==o?o:!1!==e.unorderedArrays;var i=this;if(r("array:"+t.length+":"),!o||t.length<=1)return t.forEach((function(e){return i.dispatch(e)}));var a=[],u=t.map((function(t){var r=new m,o=n.slice();return b(e,r,o).dispatch(t),a=a.concat(o.slice(n.length)),r.read().toString()}));return n=n.concat(a),u.sort(),this._array(u,!1)},_date:function(e){return r("date:"+e.toJSON())},_symbol:function(e){return r("symbol:"+e.toString())},_error:function(e){return r("error:"+e.toString())},_boolean:function(e){return r("bool:"+e.toString())},_string:function(e){r("string:"+e.length+":"),r(e.toString())},_function:function(t){r("fn:"),g(t)?this.dispatch("[native]"):this.dispatch(t.toString()),!1!==e.respectFunctionNames&&this.dispatch("function-name:"+String(t.name)),e.respectFunctionProperties&&this._object(t)},_number:function(e){return r("number:"+e.toString())},_xml:function(e){return r("xml:"+e.toString())},_null:function(){return r("Null")},_undefined:function(){return r("Undefined")},_regexp:function(e){return r("regex:"+e.toString())},_uint8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint8clampedarray:function(e){return r("uint8clampedarray:"),this.dispatch(Array.prototype.slice.call(e))},_int8array:function(e){return r("uint8array:"),this.dispatch(Array.prototype.slice.call(e))},_uint16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_int16array:function(e){return r("uint16array:"),this.dispatch(Array.prototype.slice.call(e))},_uint32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_int32array:function(e){return r("uint32array:"),this.dispatch(Array.prototype.slice.call(e))},_float32array:function(e){return r("float32array:"),this.dispatch(Array.prototype.slice.call(e))},_float64array:function(e){return r("float64array:"),this.dispatch(Array.prototype.slice.call(e))},_arraybuffer:function(e){return r("arraybuffer:"),this.dispatch(new Uint8Array(e))},_url:function(e){return r("url:"+e.toString())},_map:function(t){r("map:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_set:function(t){r("set:");var n=Array.from(t);return this._array(n,!1!==e.unorderedSets)},_file:function(e){return r("file:"),this.dispatch([e.name,e.size,e.type,e.lastModfied])},_blob:function(){if(e.ignoreUnknown)return r("[blob]");throw Error('Hashing Blob objects is currently not supported\n(see https://github.com/puleos/object-hash/issues/26)\nUse "options.replacer" or "options.ignoreUnknown"\n')},_domwindow:function(){return r("domwindow")},_bigint:function(e){return r("bigint:"+e.toString())},_process:function(){return r("process")},_timer:function(){return r("timer")},_pipe:function(){return r("pipe")},_tcp:function(){return r("tcp")},_udp:function(){return r("udp")},_tty:function(){return r("tty")},_statwatcher:function(){return r("statwatcher")},_securecontext:function(){return r("securecontext")},_connection:function(){return r("connection")},_zlib:function(){return r("zlib")},_context:function(){return r("context")},_nodescript:function(){return r("nodescript")},_httpparser:function(){return r("httpparser")},_dataview:function(){return r("dataview")},_signal:function(){return r("signal")},_fsevent:function(){return r("fsevent")},_tlswrap:function(){return r("tlswrap")}}}function m(){return{buf:"",write:function(e){this.buf+=e},end:function(e){this.buf+=e},read:function(){return this.buf}}}n.writeToStream=function(e,t,n){return void 0===n&&(n=t,t={}),b(t=y(e,t),n).dispatch(e)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/fake_7eac155c.js","/")},{buffer:3,crypto:5,lYpoI2:10}],2:[function(e,t,n){(function(e,t,r,o,i,a,u,s,c){!function(e){"use strict";var t="undefined"!=typeof Uint8Array?Uint8Array:Array,n="+".charCodeAt(0),r="/".charCodeAt(0),o="0".charCodeAt(0),i="a".charCodeAt(0),a="A".charCodeAt(0),u="-".charCodeAt(0),s="_".charCodeAt(0);function c(e){var t=e.charCodeAt(0);return t===n||t===u?62:t===r||t===s?63:t<o?-1:t<o+10?t-o+26+26:t<a+26?t-a:t<i+26?t-i+26:void 0}e.toByteArray=function(e){var n,r;if(0<e.length%4)throw new Error("Invalid string. Length must be a multiple of 4");var o=e.length,i="="===e.charAt(o-2)?2:"="===e.charAt(o-1)?1:0,a=new t(3*e.length/4-i),u=0<i?e.length-4:e.length,s=0;function l(e){a[s++]=e}for(n=0;n<u;n+=4,0)l((16711680&(r=c(e.charAt(n))<<18|c(e.charAt(n+1))<<12|c(e.charAt(n+2))<<6|c(e.charAt(n+3))))>>16),l((65280&r)>>8),l(255&r);return 2==i?l(255&(r=c(e.charAt(n))<<2|c(e.charAt(n+1))>>4)):1==i&&(l((r=c(e.charAt(n))<<10|c(e.charAt(n+1))<<4|c(e.charAt(n+2))>>2)>>8&255),l(255&r)),a},e.fromByteArray=function(e){var t,n,r,o,i=e.length%3,a="";function u(e){return"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(e)}for(t=0,r=e.length-i;t<r;t+=3)a+=u((o=n=(e[t]<<16)+(e[t+1]<<8)+e[t+2])>>18&63)+u(o>>12&63)+u(o>>6&63)+u(63&o);switch(i){case 1:a+=u((n=e[e.length-1])>>2),a+=u(n<<4&63),a+="==";break;case 2:a+=u((n=(e[e.length-2]<<8)+e[e.length-1])>>10),a+=u(n>>4&63),a+=u(n<<2&63),a+="="}return a}}(void 0===n?this.base64js={}:n)}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/base64-js/lib/b64.js","/node_modules/gulp-browserify/node_modules/base64-js/lib")},{buffer:3,lYpoI2:10}],3:[function(e,t,n){(function(t,r,o,i,a,u,s,c,l){var f=e("base64-js"),d=e("ieee754");function o(e,t,n){if(!(this instanceof o))return new o(e,t,n);var r,i,a,u,s,c=typeof e;if("base64"===t&&"string"==c)for(e=(r=e).trim?r.trim():r.replace(/^\s+|\s+$/g,"");e.length%4!=0;)e+="=";if("number"==c)i=M(e);else if("string"==c)i=o.byteLength(e,t);else{if("object"!=c)throw new Error("First argument needs to be a number, array or string.");i=M(e.length)}if(o._useTypedArrays?a=o._augment(new Uint8Array(i)):((a=this).length=i,a._isBuffer=!0),o._useTypedArrays&&"number"==typeof e.byteLength)a._set(e);else if(j(s=e)||o.isBuffer(s)||s&&"object"==typeof s&&"number"==typeof s.length)for(u=0;u<i;u++)o.isBuffer(e)?a[u]=e.readUInt8(u):a[u]=e[u];else if("string"==c)a.write(e,0,t);else if("number"==c&&!o._useTypedArrays&&!n)for(u=0;u<i;u++)a[u]=0;return a}function p(e,t,n,r){r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+1<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(o=e[t],t+1<i&&(o|=e[t+1]<<8)):(o=e[t]<<8,t+1<i&&(o|=e[t+1])),o}function h(e,t,n,r){r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+3<e.length,"Trying to read beyond buffer length"));var o,i=e.length;if(!(i<=t))return n?(t+2<i&&(o=e[t+2]<<16),t+1<i&&(o|=e[t+1]<<8),o|=e[t],t+3<i&&(o+=e[t+3]<<24>>>0)):(t+1<i&&(o=e[t+1]<<16),t+2<i&&(o|=e[t+2]<<8),t+3<i&&(o|=e[t+3]),o+=e[t]<<24>>>0),o}function v(e,t,n,r){if(r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+1<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=p(e,t,n,!0);return 32768&o?-1*(65535-o+1):o}}function y(e,t,n,r){if(r||(N("boolean"==typeof n,"missing or invalid endian"),N(null!=t,"missing offset"),N(t+3<e.length,"Trying to read beyond buffer length")),!(e.length<=t)){var o=h(e,t,n,!0);return 2147483648&o?-1*(4294967295-o+1):o}}function g(e,t,n,r){return r||(N("boolean"==typeof n,"missing or invalid endian"),N(t+3<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,23,4)}function b(e,t,n,r){return r||(N("boolean"==typeof n,"missing or invalid endian"),N(t+7<e.length,"Trying to read beyond buffer length")),d.read(e,t,n,52,8)}function m(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+1<e.length,"trying to write beyond buffer length"),L(t,65535));var i=e.length;if(!(i<=n))for(var a=0,u=Math.min(i-n,2);a<u;a++)e[n+a]=(t&255<<8*(r?a:1-a))>>>8*(r?a:1-a)}function _(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"trying to write beyond buffer length"),L(t,4294967295));var i=e.length;if(!(i<=n))for(var a=0,u=Math.min(i-n,4);a<u;a++)e[n+a]=t>>>8*(r?a:3-a)&255}function w(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+1<e.length,"Trying to write beyond buffer length"),R(t,32767,-32768)),e.length<=n||m(e,0<=t?t:65535+t+1,n,r,o)}function O(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"Trying to write beyond buffer length"),R(t,2147483647,-2147483648)),e.length<=n||_(e,0<=t?t:4294967295+t+1,n,r,o)}function P(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+3<e.length,"Trying to write beyond buffer length"),k(t,34028234663852886e22,-34028234663852886e22)),e.length<=n||d.write(e,t,n,r,23,4)}function S(e,t,n,r,o){o||(N(null!=t,"missing value"),N("boolean"==typeof r,"missing or invalid endian"),N(null!=n,"missing offset"),N(n+7<e.length,"Trying to write beyond buffer length"),k(t,17976931348623157e292,-17976931348623157e292)),e.length<=n||d.write(e,t,n,r,52,8)}n.Buffer=o,n.SlowBuffer=o,n.INSPECT_MAX_BYTES=50,o.poolSize=8192,o._useTypedArrays=function(){try{var e=new ArrayBuffer(0),t=new Uint8Array(e);return t.foo=function(){return 42},42===t.foo()&&"function"==typeof t.subarray}catch(e){return!1}}(),o.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"raw":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.isBuffer=function(e){return!(null==e||!e._isBuffer)},o.byteLength=function(e,t){var n;switch(e+="",t||"utf8"){case"hex":n=e.length/2;break;case"utf8":case"utf-8":n=x(e).length;break;case"ascii":case"binary":case"raw":n=e.length;break;case"base64":n=C(e).length;break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":n=2*e.length;break;default:throw new Error("Unknown encoding")}return n},o.concat=function(e,t){if(N(j(e),"Usage: Buffer.concat(list, [totalLength])\nlist should be an Array."),0===e.length)return new o(0);if(1===e.length)return e[0];if("number"!=typeof t)for(i=t=0;i<e.length;i++)t+=e[i].length;for(var n=new o(t),r=0,i=0;i<e.length;i++){var a=e[i];a.copy(n,r),r+=a.length}return n},o.prototype.write=function(e,t,n,r){var i;isFinite(t)?isFinite(n)||(r=n,n=void 0):(i=r,r=t,t=n,n=i),t=Number(t)||0;var a,u,s,c,l,f,d,p=this.length-t;switch((!n||p<(n=Number(n)))&&(n=p),r=String(r||"utf8").toLowerCase()){case"hex":a=function(e,t,n,r){n=Number(n)||0;var i=e.length-n;(!r||i<(r=Number(r)))&&(r=i);var a=t.length;N(a%2==0,"Invalid hex string"),a/2<r&&(r=a/2);for(var u=0;u<r;u++){var s=parseInt(t.substr(2*u,2),16);N(!isNaN(s),"Invalid hex string"),e[n+u]=s}return o._charsWritten=2*u,u}(this,e,t,n);break;case"utf8":case"utf-8":l=e,f=t,d=n,a=o._charsWritten=I(x(l),this,f,d);break;case"ascii":case"binary":a=function(e,t,n,r){return o._charsWritten=I(function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}(this,e,t,n);break;case"base64":u=e,s=t,c=n,a=o._charsWritten=I(C(u),this,s,c);break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":a=function(e,t,n,r){return o._charsWritten=I(function(e){for(var t,n,r,o=[],i=0;i<e.length;i++)n=(t=e.charCodeAt(i))>>8,r=t%256,o.push(r),o.push(n);return o}(t),e,n,r)}(this,e,t,n);break;default:throw new Error("Unknown encoding")}return a},o.prototype.toString=function(e,t,n){var r,o,i,a,u=this;if(e=String(e||"utf8").toLowerCase(),t=Number(t)||0,(n=void 0!==n?Number(n):n=u.length)===t)return"";switch(e){case"hex":r=function(e,t,n){var r=e.length;(!t||t<0)&&(t=0),(!n||n<0||r<n)&&(n=r);for(var o="",i=t;i<n;i++)o+=A(e[i]);return o}(u,t,n);break;case"utf8":case"utf-8":r=function(e,t,n){var r="",o="";n=Math.min(e.length,n);for(var i=t;i<n;i++)e[i]<=127?(r+=D(o)+String.fromCharCode(e[i]),o=""):o+="%"+e[i].toString(16);return r+D(o)}(u,t,n);break;case"ascii":case"binary":r=function(e,t,n){var r="";n=Math.min(e.length,n);for(var o=t;o<n;o++)r+=String.fromCharCode(e[o]);return r}(u,t,n);break;case"base64":o=u,a=n,r=0===(i=t)&&a===o.length?f.fromByteArray(o):f.fromByteArray(o.slice(i,a));break;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":r=function(e,t,n){for(var r=e.slice(t,n),o="",i=0;i<r.length;i+=2)o+=String.fromCharCode(r[i]+256*r[i+1]);return o}(u,t,n);break;default:throw new Error("Unknown encoding")}return r},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},o.prototype.copy=function(e,t,n,r){if(n=n||0,r||0===r||(r=this.length),t=t||0,r!==n&&0!==e.length&&0!==this.length){N(n<=r,"sourceEnd < sourceStart"),N(0<=t&&t<e.length,"targetStart out of bounds"),N(0<=n&&n<this.length,"sourceStart out of bounds"),N(0<=r&&r<=this.length,"sourceEnd out of bounds"),r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);var i=r-n;if(i<100||!o._useTypedArrays)for(var a=0;a<i;a++)e[a+t]=this[a+n];else e._set(this.subarray(n,n+i),t)}},o.prototype.slice=function(e,t){var n=this.length;if(e=T(e,n,0),t=T(t,n,n),o._useTypedArrays)return o._augment(this.subarray(e,t));for(var r=t-e,i=new o(r,void 0,!0),a=0;a<r;a++)i[a]=this[a+e];return i},o.prototype.get=function(e){return console.log(".get() is deprecated. Access using array indexes instead."),this.readUInt8(e)},o.prototype.set=function(e,t){return console.log(".set() is deprecated. Access using array indexes instead."),this.writeUInt8(e,t)},o.prototype.readUInt8=function(e,t){if(t||(N(null!=e,"missing offset"),N(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return this[e]},o.prototype.readUInt16LE=function(e,t){return p(this,e,!0,t)},o.prototype.readUInt16BE=function(e,t){return p(this,e,!1,t)},o.prototype.readUInt32LE=function(e,t){return h(this,e,!0,t)},o.prototype.readUInt32BE=function(e,t){return h(this,e,!1,t)},o.prototype.readInt8=function(e,t){if(t||(N(null!=e,"missing offset"),N(e<this.length,"Trying to read beyond buffer length")),!(e>=this.length))return 128&this[e]?-1*(255-this[e]+1):this[e]},o.prototype.readInt16LE=function(e,t){return v(this,e,!0,t)},o.prototype.readInt16BE=function(e,t){return v(this,e,!1,t)},o.prototype.readInt32LE=function(e,t){return y(this,e,!0,t)},o.prototype.readInt32BE=function(e,t){return y(this,e,!1,t)},o.prototype.readFloatLE=function(e,t){return g(this,e,!0,t)},o.prototype.readFloatBE=function(e,t){return g(this,e,!1,t)},o.prototype.readDoubleLE=function(e,t){return b(this,e,!0,t)},o.prototype.readDoubleBE=function(e,t){return b(this,e,!1,t)},o.prototype.writeUInt8=function(e,t,n){n||(N(null!=e,"missing value"),N(null!=t,"missing offset"),N(t<this.length,"trying to write beyond buffer length"),L(e,255)),t>=this.length||(this[t]=e)},o.prototype.writeUInt16LE=function(e,t,n){m(this,e,t,!0,n)},o.prototype.writeUInt16BE=function(e,t,n){m(this,e,t,!1,n)},o.prototype.writeUInt32LE=function(e,t,n){_(this,e,t,!0,n)},o.prototype.writeUInt32BE=function(e,t,n){_(this,e,t,!1,n)},o.prototype.writeInt8=function(e,t,n){n||(N(null!=e,"missing value"),N(null!=t,"missing offset"),N(t<this.length,"Trying to write beyond buffer length"),R(e,127,-128)),t>=this.length||(0<=e?this.writeUInt8(e,t,n):this.writeUInt8(255+e+1,t,n))},o.prototype.writeInt16LE=function(e,t,n){w(this,e,t,!0,n)},o.prototype.writeInt16BE=function(e,t,n){w(this,e,t,!1,n)},o.prototype.writeInt32LE=function(e,t,n){O(this,e,t,!0,n)},o.prototype.writeInt32BE=function(e,t,n){O(this,e,t,!1,n)},o.prototype.writeFloatLE=function(e,t,n){P(this,e,t,!0,n)},o.prototype.writeFloatBE=function(e,t,n){P(this,e,t,!1,n)},o.prototype.writeDoubleLE=function(e,t,n){S(this,e,t,!0,n)},o.prototype.writeDoubleBE=function(e,t,n){S(this,e,t,!1,n)},o.prototype.fill=function(e,t,n){if(e=e||0,t=t||0,n=n||this.length,"string"==typeof e&&(e=e.charCodeAt(0)),N("number"==typeof e&&!isNaN(e),"value is not a number"),N(t<=n,"end < start"),n!==t&&0!==this.length){N(0<=t&&t<this.length,"start out of bounds"),N(0<=n&&n<=this.length,"end out of bounds");for(var r=t;r<n;r++)this[r]=e}},o.prototype.inspect=function(){for(var e=[],t=this.length,r=0;r<t;r++)if(e[r]=A(this[r]),r===n.INSPECT_MAX_BYTES){e[r+1]="...";break}return"<Buffer "+e.join(" ")+">"},o.prototype.toArrayBuffer=function(){if("undefined"==typeof Uint8Array)throw new Error("Buffer.toArrayBuffer not supported in this browser");if(o._useTypedArrays)return new o(this).buffer;for(var e=new Uint8Array(this.length),t=0,n=e.length;t<n;t+=1)e[t]=this[t];return e.buffer};var E=o.prototype;function T(e,t,n){return"number"!=typeof e?n:t<=(e=~~e)?t:0<=e||0<=(e+=t)?e:0}function M(e){return(e=~~Math.ceil(+e))<0?0:e}function j(e){return(Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)})(e)}function A(e){return e<16?"0"+e.toString(16):e.toString(16)}function x(e){for(var t=[],n=0;n<e.length;n++){var r=e.charCodeAt(n);if(r<=127)t.push(e.charCodeAt(n));else{var o=n;55296<=r&&r<=57343&&n++;for(var i=encodeURIComponent(e.slice(o,n+1)).substr(1).split("%"),a=0;a<i.length;a++)t.push(parseInt(i[a],16))}}return t}function C(e){return f.toByteArray(e)}function I(e,t,n,r){for(var o=0;o<r&&!(o+n>=t.length||o>=e.length);o++)t[o+n]=e[o];return o}function D(e){try{return decodeURIComponent(e)}catch(e){return String.fromCharCode(65533)}}function L(e,t){N("number"==typeof e,"cannot write a non-number as a number"),N(0<=e,"specified a negative value for writing an unsigned value"),N(e<=t,"value is larger than maximum value for type"),N(Math.floor(e)===e,"value has a fractional component")}function R(e,t,n){N("number"==typeof e,"cannot write a non-number as a number"),N(e<=t,"value larger than maximum allowed value"),N(n<=e,"value smaller than minimum allowed value"),N(Math.floor(e)===e,"value has a fractional component")}function k(e,t,n){N("number"==typeof e,"cannot write a non-number as a number"),N(e<=t,"value larger than maximum allowed value"),N(n<=e,"value smaller than minimum allowed value")}function N(e,t){if(!e)throw new Error(t||"Failed assertion")}o._augment=function(e){return e._isBuffer=!0,e._get=e.get,e._set=e.set,e.get=E.get,e.set=E.set,e.write=E.write,e.toString=E.toString,e.toLocaleString=E.toString,e.toJSON=E.toJSON,e.copy=E.copy,e.slice=E.slice,e.readUInt8=E.readUInt8,e.readUInt16LE=E.readUInt16LE,e.readUInt16BE=E.readUInt16BE,e.readUInt32LE=E.readUInt32LE,e.readUInt32BE=E.readUInt32BE,e.readInt8=E.readInt8,e.readInt16LE=E.readInt16LE,e.readInt16BE=E.readInt16BE,e.readInt32LE=E.readInt32LE,e.readInt32BE=E.readInt32BE,e.readFloatLE=E.readFloatLE,e.readFloatBE=E.readFloatBE,e.readDoubleLE=E.readDoubleLE,e.readDoubleBE=E.readDoubleBE,e.writeUInt8=E.writeUInt8,e.writeUInt16LE=E.writeUInt16LE,e.writeUInt16BE=E.writeUInt16BE,e.writeUInt32LE=E.writeUInt32LE,e.writeUInt32BE=E.writeUInt32BE,e.writeInt8=E.writeInt8,e.writeInt16LE=E.writeInt16LE,e.writeInt16BE=E.writeInt16BE,e.writeInt32LE=E.writeInt32LE,e.writeInt32BE=E.writeInt32BE,e.writeFloatLE=E.writeFloatLE,e.writeFloatBE=E.writeFloatBE,e.writeDoubleLE=E.writeDoubleLE,e.writeDoubleBE=E.writeDoubleBE,e.fill=E.fill,e.inspect=E.inspect,e.toArrayBuffer=E.toArrayBuffer,e}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/buffer/index.js","/node_modules/gulp-browserify/node_modules/buffer")},{"base64-js":2,buffer:3,ieee754:11,lYpoI2:10}],4:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=new(o=e("buffer").Buffer)(4);f.fill(0),t.exports={hash:function(e,t,n,r){return o.isBuffer(e)||(e=new o(e)),function(e,t,n){for(var r=new o(t),i=n?r.writeInt32BE:r.writeInt32LE,a=0;a<e.length;a++)i.call(r,e[a],4*a,!0);return r}(t(function(e,t){var n;e.length%4!=0&&(n=e.length+(4-e.length%4),e=o.concat([e,f],n));for(var r=[],i=t?e.readInt32BE:e.readInt32LE,a=0;a<e.length;a+=4)r.push(i.call(e,a));return r}(e,r),8*e.length),n,r)}}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/helpers.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],5:[function(e,t,n){(function(t,r,o,i,a,u,s,c,l){o=e("buffer").Buffer;var f=e("./sha"),d=e("./sha256"),p=e("./rng"),h={sha1:f,sha256:d,md5:e("./md5")},v=64,y=new o(v);function g(e,t){var n=h[e=e||"sha1"],r=[];return n||b("algorithm:",e,"is not yet supported"),{update:function(e){return o.isBuffer(e)||(e=new o(e)),r.push(e),e.length,this},digest:function(e){var i=o.concat(r),a=t?function(e,t,n){o.isBuffer(t)||(t=new o(t)),o.isBuffer(n)||(n=new o(n)),t.length>v?t=e(t):t.length<v&&(t=o.concat([t,y],v));for(var r=new o(v),i=new o(v),a=0;a<v;a++)r[a]=54^t[a],i[a]=92^t[a];var u=e(o.concat([r,n]));return e(o.concat([i,u]))}(n,t,i):n(i);return r=null,e?a.toString(e):a}}}function b(){var e=[].slice.call(arguments).join(" ");throw new Error([e,"we accept pull requests","http://github.com/dominictarr/crypto-browserify"].join("\n"))}y.fill(0),n.createHash=function(e){return g(e)},n.createHmac=g,n.randomBytes=function(e,t){if(!t||!t.call)return new o(p(e));try{t.call(this,void 0,new o(p(e)))}catch(e){t(e)}},function(e,t){for(var n in e)t(e[n])}(["createCredentials","createCipher","createCipheriv","createDecipher","createDecipheriv","createSign","createVerify","createDiffieHellman","pbkdf2"],(function(e){n[e]=function(){b("sorry,",e,"is not implemented yet")}}))}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/index.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./md5":6,"./rng":7,"./sha":8,"./sha256":9,buffer:3,lYpoI2:10}],6:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<t%32,e[14+(t+64>>>9<<4)]=t;for(var n=1732584193,r=-271733879,o=-1732584194,i=271733878,a=0;a<e.length;a+=16){var u=n,s=r,c=o,l=i;n=h(n,r,o,i,e[a+0],7,-680876936),i=h(i,n,r,o,e[a+1],12,-389564586),o=h(o,i,n,r,e[a+2],17,606105819),r=h(r,o,i,n,e[a+3],22,-1044525330),n=h(n,r,o,i,e[a+4],7,-176418897),i=h(i,n,r,o,e[a+5],12,1200080426),o=h(o,i,n,r,e[a+6],17,-1473231341),r=h(r,o,i,n,e[a+7],22,-45705983),n=h(n,r,o,i,e[a+8],7,1770035416),i=h(i,n,r,o,e[a+9],12,-1958414417),o=h(o,i,n,r,e[a+10],17,-42063),r=h(r,o,i,n,e[a+11],22,-1990404162),n=h(n,r,o,i,e[a+12],7,1804603682),i=h(i,n,r,o,e[a+13],12,-40341101),o=h(o,i,n,r,e[a+14],17,-1502002290),n=v(n,r=h(r,o,i,n,e[a+15],22,1236535329),o,i,e[a+1],5,-165796510),i=v(i,n,r,o,e[a+6],9,-1069501632),o=v(o,i,n,r,e[a+11],14,643717713),r=v(r,o,i,n,e[a+0],20,-373897302),n=v(n,r,o,i,e[a+5],5,-701558691),i=v(i,n,r,o,e[a+10],9,38016083),o=v(o,i,n,r,e[a+15],14,-660478335),r=v(r,o,i,n,e[a+4],20,-405537848),n=v(n,r,o,i,e[a+9],5,568446438),i=v(i,n,r,o,e[a+14],9,-1019803690),o=v(o,i,n,r,e[a+3],14,-187363961),r=v(r,o,i,n,e[a+8],20,1163531501),n=v(n,r,o,i,e[a+13],5,-1444681467),i=v(i,n,r,o,e[a+2],9,-51403784),o=v(o,i,n,r,e[a+7],14,1735328473),n=y(n,r=v(r,o,i,n,e[a+12],20,-1926607734),o,i,e[a+5],4,-378558),i=y(i,n,r,o,e[a+8],11,-2022574463),o=y(o,i,n,r,e[a+11],16,1839030562),r=y(r,o,i,n,e[a+14],23,-35309556),n=y(n,r,o,i,e[a+1],4,-1530992060),i=y(i,n,r,o,e[a+4],11,1272893353),o=y(o,i,n,r,e[a+7],16,-155497632),r=y(r,o,i,n,e[a+10],23,-1094730640),n=y(n,r,o,i,e[a+13],4,681279174),i=y(i,n,r,o,e[a+0],11,-358537222),o=y(o,i,n,r,e[a+3],16,-722521979),r=y(r,o,i,n,e[a+6],23,76029189),n=y(n,r,o,i,e[a+9],4,-640364487),i=y(i,n,r,o,e[a+12],11,-421815835),o=y(o,i,n,r,e[a+15],16,530742520),n=g(n,r=y(r,o,i,n,e[a+2],23,-995338651),o,i,e[a+0],6,-198630844),i=g(i,n,r,o,e[a+7],10,1126891415),o=g(o,i,n,r,e[a+14],15,-1416354905),r=g(r,o,i,n,e[a+5],21,-57434055),n=g(n,r,o,i,e[a+12],6,1700485571),i=g(i,n,r,o,e[a+3],10,-1894986606),o=g(o,i,n,r,e[a+10],15,-1051523),r=g(r,o,i,n,e[a+1],21,-2054922799),n=g(n,r,o,i,e[a+8],6,1873313359),i=g(i,n,r,o,e[a+15],10,-30611744),o=g(o,i,n,r,e[a+6],15,-1560198380),r=g(r,o,i,n,e[a+13],21,1309151649),n=g(n,r,o,i,e[a+4],6,-145523070),i=g(i,n,r,o,e[a+11],10,-1120210379),o=g(o,i,n,r,e[a+2],15,718787259),r=g(r,o,i,n,e[a+9],21,-343485551),n=b(n,u),r=b(r,s),o=b(o,c),i=b(i,l)}return Array(n,r,o,i)}function p(e,t,n,r,o,i){return b((a=b(b(t,e),b(r,i)))<<(u=o)|a>>>32-u,n);var a,u}function h(e,t,n,r,o,i,a){return p(t&n|~t&r,e,t,o,i,a)}function v(e,t,n,r,o,i,a){return p(t&r|n&~r,e,t,o,i,a)}function y(e,t,n,r,o,i,a){return p(t^n^r,e,t,o,i,a)}function g(e,t,n,r,o,i,a){return p(n^(t|~r),e,t,o,i,a)}function b(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}t.exports=function(e){return f.hash(e,d,16)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/md5.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],7:[function(e,t,n){(function(e,n,r,o,i,a,u,s,c){var l;l=function(e){for(var t,n=new Array(e),r=0;r<e;r++)0==(3&r)&&(t=4294967296*Math.random()),n[r]=t>>>((3&r)<<3)&255;return n},t.exports=l}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/rng.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{buffer:3,lYpoI2:10}],8:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){var f=e("./helpers");function d(e,t){e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var n,r,o,i,a,u=Array(80),s=1732584193,c=-271733879,l=-1732584194,f=271733878,d=-1009589776,v=0;v<e.length;v+=16){for(var y=s,g=c,b=l,m=f,_=d,w=0;w<80;w++){u[w]=w<16?e[v+w]:h(u[w-3]^u[w-8]^u[w-14]^u[w-16],1);var O=p(p(h(s,5),(o=c,i=l,a=f,(r=w)<20?o&i|~o&a:!(r<40)&&r<60?o&i|o&a|i&a:o^i^a)),p(p(d,u[w]),(n=w)<20?1518500249:n<40?1859775393:n<60?-1894007588:-899497514));d=f,f=l,l=h(c,30),c=s,s=O}s=p(s,y),c=p(c,g),l=p(l,b),f=p(f,m),d=p(d,_)}return Array(s,c,l,f,d)}function p(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function h(e,t){return e<<t|e>>>32-t}t.exports=function(e){return f.hash(e,d,20,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],9:[function(e,t,n){(function(n,r,o,i,a,u,s,c,l){function f(e,t){var n=(65535&e)+(65535&t);return(e>>16)+(t>>16)+(n>>16)<<16|65535&n}function d(e,t){return e>>>t|e<<32-t}function p(e,t){var n,r,o,i,a,u,s,c,l,p,h=new Array(1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298),v=new Array(1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225),y=new Array(64);e[t>>5]|=128<<24-t%32,e[15+(t+64>>9<<4)]=t;for(var g,b,m,_,w,O,P,S,E=0;E<e.length;E+=16){n=v[0],r=v[1],o=v[2],i=v[3],a=v[4],u=v[5],s=v[6],c=v[7];for(var T=0;T<64;T++)y[T]=T<16?e[T+E]:f(f(f(d(S=y[T-2],17)^d(S,19)^S>>>10,y[T-7]),d(P=y[T-15],7)^d(P,18)^P>>>3),y[T-16]),l=f(f(f(f(c,d(O=a,6)^d(O,11)^d(O,25)),(w=a)&u^~w&s),h[T]),y[T]),p=f(d(_=n,2)^d(_,13)^d(_,22),(g=n)&(b=r)^g&(m=o)^b&m),c=s,s=u,u=a,a=f(i,l),i=o,o=r,r=n,n=f(l,p);v[0]=f(n,v[0]),v[1]=f(r,v[1]),v[2]=f(o,v[2]),v[3]=f(i,v[3]),v[4]=f(a,v[4]),v[5]=f(u,v[5]),v[6]=f(s,v[6]),v[7]=f(c,v[7])}return v}var h=e("./helpers");t.exports=function(e){return h.hash(e,p,32,!0)}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/crypto-browserify/sha256.js","/node_modules/gulp-browserify/node_modules/crypto-browserify")},{"./helpers":4,buffer:3,lYpoI2:10}],10:[function(e,t,n){(function(e,n,r,o,i,a,u,s,c){function l(){}(e=t.exports={}).nextTick=function(){var e="undefined"!=typeof window&&window.setImmediate,t="undefined"!=typeof window&&window.postMessage&&window.addEventListener;if(e)return function(e){return window.setImmediate(e)};if(t){var n=[];return window.addEventListener("message",(function(e){var t=e.source;t!==window&&null!==t||"process-tick"!==e.data||(e.stopPropagation(),0<n.length&&n.shift()())}),!0),function(e){n.push(e),window.postMessage("process-tick","*")}}return function(e){setTimeout(e,0)}}(),e.title="browser",e.browser=!0,e.env={},e.argv=[],e.on=l,e.addListener=l,e.once=l,e.off=l,e.removeListener=l,e.removeAllListeners=l,e.emit=l,e.binding=function(e){throw new Error("process.binding is not supported")},e.cwd=function(){return"/"},e.chdir=function(e){throw new Error("process.chdir is not supported")}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/gulp-browserify/node_modules/process/browser.js","/node_modules/gulp-browserify/node_modules/process")},{buffer:3,lYpoI2:10}],11:[function(e,t,n){(function(e,t,r,o,i,a,u,s,c){n.read=function(e,t,n,r,o){var i,a,u=8*o-r-1,s=(1<<u)-1,c=s>>1,l=-7,f=n?o-1:0,d=n?-1:1,p=e[t+f];for(f+=d,i=p&(1<<-l)-1,p>>=-l,l+=u;0<l;i=256*i+e[t+f],f+=d,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=r;0<l;a=256*a+e[t+f],f+=d,l-=8);if(0===i)i=1-c;else{if(i===s)return a?NaN:1/0*(p?-1:1);a+=Math.pow(2,r),i-=c}return(p?-1:1)*a*Math.pow(2,i-r)},n.write=function(e,t,n,r,o,i){var a,u,s,c=8*i-o-1,l=(1<<c)-1,f=l>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=r?0:i-1,h=r?1:-1,v=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(u=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(s=Math.pow(2,-a))<1&&(a--,s*=2),2<=(t+=1<=a+f?d/s:d*Math.pow(2,1-f))*s&&(a++,s/=2),l<=a+f?(u=0,a=l):1<=a+f?(u=(t*s-1)*Math.pow(2,o),a+=f):(u=t*Math.pow(2,f-1)*Math.pow(2,o),a=0));8<=o;e[n+p]=255&u,p+=h,u/=256,o-=8);for(a=a<<o|u,c+=o;0<c;e[n+p]=255&a,p+=h,a/=256,c-=8);e[n+p-h]|=128*v}}).call(this,e("lYpoI2"),"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},e("buffer").Buffer,arguments[3],arguments[4],arguments[5],arguments[6],"/node_modules/ieee754/index.js","/node_modules/ieee754")},{buffer:3,lYpoI2:10}]},{},[1])(1)},9640:function(e,t,n){var r,o;!function(i,a){"use strict";r=function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),r=["trace","debug","info","warn","error"];function o(e,t){var n=e[t];if("function"==typeof n.bind)return n.bind(e);try{return Function.prototype.bind.call(n,e)}catch(t){return function(){return Function.prototype.apply.apply(n,[e,arguments])}}}function i(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function a(t,n){for(var o=0;o<r.length;o++){var i=r[o];this[i]=o<t?e:this.methodFactory(i,t,n)}this.log=this.debug}function u(e,n,r){return function(){typeof console!==t&&(a.call(this,n,r),this[e].apply(this,arguments))}}function s(r,a,s){return function(r){return"debug"===r&&(r="log"),typeof console!==t&&("trace"===r&&n?i:void 0!==console[r]?o(console,r):void 0!==console.log?o(console,"log"):e)}(r)||u.apply(this,arguments)}function c(e,n,o){var i,u=this;n=null==n?"WARN":n;var c="loglevel";function l(){var e;if(typeof window!==t&&c){try{e=window.localStorage[c]}catch(e){}if(typeof e===t)try{var n=window.document.cookie,r=n.indexOf(encodeURIComponent(c)+"=");-1!==r&&(e=/^([^;]+)/.exec(n.slice(r))[1])}catch(e){}return void 0===u.levels[e]&&(e=void 0),e}}"string"==typeof e?c+=":"+e:"symbol"==typeof e&&(c=void 0),u.name=e,u.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},u.methodFactory=o||s,u.getLevel=function(){return i},u.setLevel=function(n,o){if("string"==typeof n&&void 0!==u.levels[n.toUpperCase()]&&(n=u.levels[n.toUpperCase()]),!("number"==typeof n&&n>=0&&n<=u.levels.SILENT))throw"log.setLevel() called with invalid level: "+n;if(i=n,!1!==o&&function(e){var n=(r[e]||"silent").toUpperCase();if(typeof window!==t&&c){try{return void(window.localStorage[c]=n)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"="+n+";"}catch(e){}}}(n),a.call(u,n,e),typeof console===t&&n<u.levels.SILENT)return"No console available for logging"},u.setDefaultLevel=function(e){n=e,l()||u.setLevel(e,!1)},u.resetLevel=function(){u.setLevel(n,!1),function(){if(typeof window!==t&&c){try{return void window.localStorage.removeItem(c)}catch(e){}try{window.document.cookie=encodeURIComponent(c)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch(e){}}}()},u.enableAll=function(e){u.setLevel(u.levels.TRACE,e)},u.disableAll=function(e){u.setLevel(u.levels.SILENT,e)};var f=l();null==f&&(f=n),u.setLevel(f,!1)}var l=new c,f={};l.getLogger=function(e){if("symbol"!=typeof e&&"string"!=typeof e||""===e)throw new TypeError("You must supply a name when creating a logger.");var t=f[e];return t||(t=f[e]=new c(e,l.getLevel(),l.methodFactory)),t};var d=typeof window!==t?window.log:void 0;return l.noConflict=function(){return typeof window!==t&&window.log===l&&(window.log=d),l},l.getLoggers=function(){return f},l.default=l,l},void 0===(o=r.call(t,n,t,e))||(e.exports=o)}()},5983:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(58),t)},58:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsEventName=void 0,(n=t.AnalyticsEventName||(t.AnalyticsEventName={})).AdView="adView",n.Conversion="conversion",n.Purchase="purchase",n.VideoPlay="videoPlay",n.VideoView="videoView"},6672:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t},u=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},s=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.signUp=t.signOut=t.signInWithTenant=t.signInWithEmailAndPassword=t.signInWithCustomToken=t.setTenantId=t.resetPassword=t.isUserInitialized=t.onUserChange=void 0;var c,l=n(1741),f=a(n(6256)),d=n(9786),p=n(699),h=n(2799),v=null,y=function(e,t){if("function"!=typeof e)throw new Error("bug: pendingGuard got arg which is not a function");return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return u(void 0,void 0,void 0,(function(){var r;return s(this,(function(o){switch(o.label){case 0:if(v)throw new Error('Function "'.concat(v,'" is pending, other auth functions ')+"should not be used until it finishes");r=void 0,o.label=1;case 1:return o.trys.push([1,,3,4]),v=t,[4,e.apply(void 0,n)];case 2:return r=o.sent(),[3,4];case 3:return v=null,[7];case 4:return[2,r]}}))}))}},g=[new Promise((function(e){c=e})),function(e){return u(void 0,void 0,void 0,(function(){return s(this,(function(t){switch(t.label){case 0:return l.FirebaseEnvironment.auth.setTenantId?[4,l.FirebaseEnvironment.auth.setTenantId(e)]:[3,2];case 1:return t.sent(),[3,3];case 2:l.FirebaseEnvironment.auth.tenantId=e,t.label=3;case 3:return c(e),[2]}}))}))}],b=g[0],m=g[1];t.onUserChange=function(e){l.FirebaseEnvironment.auth.onAuthStateChanged((function(t){return u(void 0,void 0,void 0,(function(){var n,r;return s(this,(function(o){switch(o.label){case 0:return n=null,t?[4,(0,p.getCustomClaims)(t)]:[3,2];case 1:r=o.sent().tivioUserId,n=l.FirebaseEnvironment.firestore.doc("users/".concat(r)),o.label=2;case 2:return e(n),[2]}}))}))}))},t.isUserInitialized=(0,d.once)((function(){return new Promise((function(e){(0,t.onUserChange)(e)}))})),t.resetPassword=function(e){return u(void 0,void 0,void 0,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,b];case 1:return t=n.sent(),[4,f.resetPassword({email:e,tenantId:t})];case 2:return n.sent(),[2]}}))}))},t.setTenantId=function(e){if(null!=l.FirebaseEnvironment.auth.tenantId)throw new Error("setTenantId() can be called only one time.");m(e)};var _=function(e){return u(void 0,void 0,Promise,(function(){var t;return s(this,(function(n){switch(n.label){case 0:return[4,l.FirebaseEnvironment.auth.signInWithCustomToken(e)];case 1:if(!(t=n.sent().user))throw new Error("signInWithCustomToken failed for tenant ".concat(l.FirebaseEnvironment.auth.tenantId));return[4,(0,p.getCustomClaims)(t)];case 2:return n.sent(),[2,t.uid]}}))}))},w=function(e,n){return u(void 0,void 0,Promise,(function(){var r,o,i;return s(this,(function(a){switch(a.label){case 0:return[4,b];case 1:return r=a.sent(),[4,(0,t.isUserInitialized)()];case 2:if(a.sent(),l.FirebaseEnvironment.auth.currentUser)throw new Error("Already signed in");return(null===(i=(0,h.getTenantInfo)(r))||void 0===i?void 0:i.name)===h.TenantName.oktagon?[3,3]:[3,5];case 3:return[4,O({email:e,password:n,tenantId:r})];case 4:return[2,a.sent()];case 5:return[4,l.FirebaseEnvironment.auth.signInWithEmailAndPassword(e,n)];case 6:if(!(o=a.sent().user))throw new Error("signInWithEmailAndPassword failed for user ".concat(e," and tenant ").concat(r));return[4,(0,p.getCustomClaims)(o)];case 7:return a.sent(),[2,o.uid]}}))}))},O=function(e){return u(void 0,void 0,Promise,(function(){var n,o;return s(this,(function(i){switch(i.label){case 0:return[4,b];case 1:return n=i.sent(),[4,(0,t.isUserInitialized)()];case 2:if(i.sent(),l.FirebaseEnvironment.auth.currentUser)throw new Error("Already signed in");return[4,f.signInWithTenant(r(r({},e),{tenantId:n}))];case 3:return o=i.sent(),[2,_(o)]}}))}))};t.signInWithCustomToken=y(_,"signInWithCustomToken"),t.signInWithEmailAndPassword=y(w,"signInWithEmailAndPassword"),t.signInWithTenant=y(O,"signInWithTenant"),t.signOut=y((function(){return u(void 0,void 0,void 0,(function(){return s(this,(function(e){switch(e.label){case 0:return[4,b];case 1:return e.sent(),[4,(0,t.isUserInitialized)()];case 2:return e.sent(),[4,l.FirebaseEnvironment.auth.signOut()];case 3:return e.sent(),[2]}}))}))}),"signOut"),t.signUp=y((function(e,t,n,r,o){return u(void 0,void 0,void 0,(function(){var i;return s(this,(function(a){switch(a.label){case 0:return[4,b];case 1:return i=a.sent(),[4,f.signUpWithTenant({email:e,password:t,referralToken:o,tenantId:i,username:n,phoneNumber:r})];case 2:return a.sent(),[2,w(e,t)]}}))}))}),"signUp")},699:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getCustomClaims=void 0;var i=n(1741),a=new(n(3631).Logger)("customClaims");t.getCustomClaims=function(e){return r(void 0,void 0,Promise,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:return r.trys.push([0,6,,7]),[4,e.getIdTokenResult()];case 1:return(t=r.sent()).claims.tivioUserId?[3,5]:(a.info("Custom claims not found. Generating new..."),[4,i.FirebaseEnvironment.functions.httpsCallable("setCustomClaims")()]);case 2:return r.sent(),[4,e.getIdToken(!0)];case 3:return r.sent(),[4,e.getIdTokenResult()];case 4:if(!(t=r.sent()).claims.tivioUserId)throw new Error("Getting custom claims failed. User probably hasn't corresponding document in Firestore.");r.label=5;case 5:return a.info("Custom claims:",t.claims),[2,t.claims];case 6:throw n=r.sent(),new Error(n);case 7:return[2]}}))}))}},2773:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6672),t),o(n(2799),t),o(n(9418),t)},2799:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.getTenantInfo=t.TenantName=void 0,function(e){e.dvtv="dvtv",e.grape="grape",e.nanguDev="nangu_dev",e.o2Demo="o2_demo",e.oktagon="oktagon"}(n=t.TenantName||(t.TenantName={}));var r=[{id:"Xz3t0GHDgmPwjHRKt1Ga-4vicx",name:n.grape,stage:"production"},{id:"XhkAHxcqCBfqOXFcqe8s-mi6aw",name:n.grape,stage:"dev"},{id:"XA6ZOtuDD90uHsRkXNyj-e2xvz",name:n.oktagon,stage:"production"},{id:"Xo6dD3w9EPgPBsyclQaG-xdlns",name:n.oktagon,stage:"dev"},{id:"X0Q4o9TigUUTNe6TYAqR-j5sg1",name:n.o2Demo,stage:"production"},{id:"XQVQisSMOXeDswNOFwwk-kw39b",name:n.o2Demo,stage:"dev"},{id:"XNl2DB1JRUfXMpSEpVK6-ttp8p",name:n.dvtv,stage:"production"},{id:"X6VWWGizeUdPIZuvTzzU-bav2m",name:n.nanguDev,stage:"production"}];t.getTenantInfo=function(e){var t;return null!==(t=r.find((function(t){return t.id===e})))&&void 0!==t?t:null}},9418:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.registerAppInstance=t.setCurrentAppInstance=t.getCurrentFirebaseAppInstance=t.getFirebaseAppInstance=void 0;var n={},r=null;t.getCurrentFirebaseAppInstance=function(){if(!r)throw new Error("Firebase app has not been initialized yet. First call registerAppInstance()");return r};var o=function(e){var t;return null!==(t=n[e])&&void 0!==t?t:null};t.getFirebaseAppInstance=o,t.registerAppInstance=function(e,t){n[e]=t,r||i(e)};var i=function(e){var t=o(e);if(!t)throw new Error("Firebase app instance for environment (".concat(e,") doesn't exist"));r=t};t.setCurrentAppInstance=i},5280:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.Environment=void 0,function(e){e.default="default",e.development="development",e.production="production",e.test="test"}(n||(n={})),t.Environment=n},9896:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.getCurrentEnvironment=t.setFirebaseEnvironment=t.initFirebaseEnvironment=t.FirebaseEnvironment=void 0;var i=n(9640),a=n(534),u=n(5055),s=n(44),c=n(5280);(0,i.setDefaultLevel)("error");var l={},f=null,d=function(){function e(e){this.environmentName=e,this.cachedDocuments={},this.cachedQueries={},l[e]=this,f||h(e)}return e.getCurrentEnvironment=function(){return v()},e.getDocumentWithPath=function(e,t,n){return void 0===n&&(n=!1),v().getDocumentWithPath(e,t,n)},e.getEnvironment=function(e){return p(e)},e.getQueryWithParams=function(e){return v().getQueryWithParams(e)},e.getQueryWithArrayParams=function(e){var t=e.orderBy,n=e.filters,i=o(e,["orderBy","filters"]),a=(null==t?void 0:t.length)?r({field:t[0]},t[1]&&{directionStr:t[1]}):void 0,u=n.map((function(e){return{field:e[0],operator:e[1],value:e[2]}}));return this.getQueryWithParams(r(r(r({},i),{filters:u}),a&&{orderBy:a}))},e.setEnvironment=function(e,t){void 0===t&&(t=!1);var n=f;h(e),t&&(null==n||n.clearCache())},Object.defineProperty(e,"auth",{get:function(){return v().auth},enumerable:!1,configurable:!0}),Object.defineProperty(e,"firestore",{get:function(){return v().firestore},enumerable:!1,configurable:!0}),Object.defineProperty(e,"functions",{get:function(){return v().functions},enumerable:!1,configurable:!0}),Object.defineProperty(e,"installations",{get:function(){return v().installations},enumerable:!1,configurable:!0}),Object.defineProperty(e,"environmentName",{get:function(){return v().name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"appInstance",{get:function(){var e=(0,s.getFirebaseAppInstance)(this.environmentName);if(!e)throw new Error("Firebase app instance does not exist");return e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"auth",{get:function(){return this.appInstance.auth()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"firestore",{get:function(){return this.appInstance.firestore()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"functions",{get:function(){return this.appInstance.functions("europe-west3")},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"installations",{get:function(){return this.appInstance.installations()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this.environmentName},enumerable:!1,configurable:!0}),e.prototype.clearCache=function(){this.cachedDocuments={},this.cachedQueries={}},e.prototype.getDocumentWithPath=function(e,t,n){return void 0===n&&(n=!1),n?new a.Document(this,e,t):(this.cachedDocuments[e]||(this.cachedDocuments[e]=new a.Document(this,e,t)),this.cachedDocuments[e])},e.prototype.getQueryWithParams=function(e){var t=u.PaginatedQuery.hashParams(e);return this.cachedQueries[t]||(this.cachedQueries[t]=new u.PaginatedQuery(this,e)),this.cachedQueries[t]},e}();t.FirebaseEnvironment=d;var p=function(e){var t;return null!==(t=l[e])&&void 0!==t?t:null};t.initFirebaseEnvironment=function(e,t){if(void 0===t&&(t=c.Environment.default),function(e){return null!=p(e)}(t))throw new Error('Environment "'.concat(t,'" already exists'));(0,s.registerAppInstance)(t,e);var n=new d(t);l[t]=n};var h=function(e){var t=p(e);if(!t)throw new Error('Environment "'.concat(e,'" does not exist'));f=t,(0,s.setCurrentAppInstance)(e)};t.setFirebaseEnvironment=h;var v=function(){if(!f)throw new Error("Environment not been initialized yet. First call initFirebaseEnvironment()");return f};t.getCurrentEnvironment=v},1741:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FirebaseEnvironment=void 0;var r=n(9896);Object.defineProperty(t,"FirebaseEnvironment",{enumerable:!0,get:function(){return r.FirebaseEnvironment}})},666:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getCollectionWithPath=void 0;var r=n(5256);t.getCollectionWithPath=function(e){return new r.Collection(e)}},3363:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getDocumentWithPath=t.getDocumentWithCollectionPath=t.getDocumentWithCollection=void 0;var r=n(9896);t.getDocumentWithCollection=function(e,t){var n=(0,r.getCurrentEnvironment)().firestore.collection(e).doc(t).path;return o(n)};var o=function(e,t,n){return void 0===n&&(n=!1),(0,r.getCurrentEnvironment)().getDocumentWithPath(e,t,n)};t.getDocumentWithPath=o,t.getDocumentWithCollectionPath=function(e,t,n){void 0===n&&(n=!1);var o=(0,r.getCurrentEnvironment)().firestore.collection(e).doc().path;return(0,r.getCurrentEnvironment)().getDocumentWithPath(o,t,n)}},9269:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(666),t),o(n(3363),t),o(n(7430),t)},7430:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getQueryWithOrderBy=t.convertRowWhereFilterToWhereFilter=t.convertRowFilterToFilter=t.getQueryByFilter=t.getQueryWithWhereFilters=t.getQueryWithParams=void 0;var r=n(9896);t.getQueryWithParams=function(e){return(0,r.getCurrentEnvironment)().getQueryWithParams(e)};var o=function(e,t){return(null==e?void 0:e.length)?e.reduce((function(e,t){return Array.isArray(t.value)&&0===t.value.length?e:e.where(t.field,t.operator,t.value)}),t):t};t.getQueryWithWhereFilters=o,t.getQueryByFilter=function(e,t){var n=o(e.where,t);return a(e.orderBy,n)},t.convertRowFilterToFilter=function(e){var t,n;return{where:null!==(n=null===(t=e.where)||void 0===t?void 0:t.map(i))&&void 0!==n?n:[],orderBy:e.orderBy?[{field:e.orderBy.fieldPath,directionStr:e.orderBy.directionStr}]:[],limit:e.limit}};var i=function(e){return{field:e.fieldPath,operator:e.opStr,value:e.value}};t.convertRowWhereFilterToWhereFilter=i;var a=function(e,t){return(null==e?void 0:e.length)?e.reduce((function(e,t){return e.orderBy(t.field,t.directionStr)}),t):t};t.getQueryWithOrderBy=a},5256:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0;var i=n(44),a=n(3363);t.Collection=function(e){var t=this;this.createDocument=function(e){var n=e?t._ref.doc(e):t._ref.doc();return(0,a.getDocumentWithPath)(n.path)},this.getDocumentFromSnapshot=function(e){return r(t,void 0,Promise,(function(){var t;return o(this,(function(n){switch(n.label){case 0:return[4,(t=(0,a.getDocumentWithPath)(e.ref.path)).updateCache(e.data())];case 1:return n.sent(),[2,t]}}))}))},this.getDocumentsFromQuerySnapshot=function(e){return r(t,void 0,Promise,(function(){var t,n=this;return o(this,(function(i){switch(i.label){case 0:return t={},[4,Promise.all(e.docs.map((function(e){return r(n,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,this.getDocumentFromSnapshot(e)];case 1:return[2,t.sent()]}}))}))})))];case 1:return[2,(t.data=i.sent(),t.lastCursor=e.size&&e.docs[e.size-1]||null,t)]}}))}))},this.getDocumentsQuery=function(e,n,r){void 0===e&&(e=[]);var o=e.reduce((function(e,t){return e.where(t.field,t.operator,t.value)}),t._ref);return n&&(o=o.orderBy(n.field,n.directionStr)),t.getDocumentsQueryAfter(o,r)},this.getDocumentsQueryAfter=function(e,t,n){return(n&&e.startAfter(n)||e).limit(Math.min(Math.max(t||10,1),10))},this.getDocuments=function(e,n,i){return void 0===e&&(e=[]),r(t,void 0,Promise,(function(){var t,a,u,s=this;return o(this,(function(c){switch(c.label){case 0:return t=this.getDocumentsQuery(e,n,i),u=this.getDocumentsFromQuerySnapshot,[4,t.get()];case 1:return[4,u.apply(this,[c.sent()])];case 2:return[2,{data:(a=c.sent()).data,getNext:function(e){return r(s,void 0,void 0,(function(){var n,r,u,s,c;return o(this,(function(o){switch(o.label){case 0:return a.lastCursor?(s=this.getDocumentsFromQuerySnapshot,[4,this.getDocumentsQueryAfter(t,e||i,a.lastCursor).get()]):[2,[]];case 1:return[4,s.apply(this,[o.sent()])];case 2:return n=o.sent(),r=n.data,u=n.lastCursor,(c=a.data).push.apply(c,r),a.lastCursor=u,[2,r]}}))}))}}]}}))}))},this._ref=(0,i.getCurrentFirebaseAppInstance)().firestore().collection(e)}},534:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Document=void 0;var a=new(n(3631).Logger)("document"),u=function(){function e(e,t,n){var u=this;this.firebaseEnvironment=e,this._data=null,this._fetchPromise=null,this._exists=null,this.cancelSubscription=null,this.delete=function(){return o(u,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,this.ref.delete()];case 1:return e.sent(),[2]}}))}))},this.fetch=function(e){return void 0===e&&(e=!1),o(u,void 0,Promise,(function(){return i(this,(function(t){switch(t.label){case 0:return[4,this.get(e)];case 1:return[2,t.sent()]}}))}))},this.get=function(e){return void 0===e&&(e=!1),o(u,void 0,Promise,(function(){var t,n=this;return i(this,(function(r){switch(r.label){case 0:return(!this._fetchPromise&&!this.data||e)&&(this._fetchPromise=new Promise((function(e,t){n.ref.get().then((function(t){n.updateCache(t.data()),n._exists=t.exists,e(n.data)})).catch(t)}))),(t=this._fetchPromise)?[4,this._fetchPromise]:[3,2];case 1:t=r.sent(),r.label=2;case 2:return[2,t||this.data]}}))}))},this.subscribe=function(){return o(u,void 0,void 0,(function(){var e=this;return i(this,(function(t){return this.isSubscribing||(a.info("Started subscribing to document changes (".concat(this.ref.path,")")),this.cancelSubscription=this.ref.onSnapshot({next:function(t){e.updateCache(t.data())}})),[2]}))}))},this.unsubscribe=function(){u.cancelSubscription&&(u.cancelSubscription(),u.cancelSubscription=null,a.info("Stopped subscribing to document changes (".concat(u.ref.path,")")))},this.update=function(e,t){return void 0===t&&(t=null),o(u,void 0,void 0,(function(){return i(this,(function(n){switch(n.label){case 0:return e?(this.updateCache(e,t),[4,this.ref.set(e,t||{})]):[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}}))}))},this.updateCache=function(e,t){void 0===t&&(t=null),e&&(t?t.merge&&(u._data=r(r({},u._data),e)):u._data=e)},this.ref=this.firebaseEnvironment.firestore.doc(t),this.updateCache(n)}return Object.defineProperty(e.prototype,"id",{get:function(){return this.ref.id},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this.ref.path},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSubscribing",{get:function(){return null!==this.cancelSubscription},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"data",{get:function(){return this._data},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isLoaded",{get:function(){return null!=this._data||!1===this._exists},enumerable:!1,configurable:!0}),e}();t.Document=u},5474:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.runTransaction=t.Document=t.Collection=t.batch=t.admin=void 0;var i=n(5256);Object.defineProperty(t,"Collection",{enumerable:!0,get:function(){return i.Collection}});var a=n(534);Object.defineProperty(t,"Document",{enumerable:!0,get:function(){return a.Document}});var u=n(4679);Object.defineProperty(t,"batch",{enumerable:!0,get:function(){return u.batch}}),Object.defineProperty(t,"runTransaction",{enumerable:!0,get:function(){return u.runTransaction}});var s={batch:u.batchAdmin,runTransaction:u.runTransactionAdmin,collection:u.collectionAdmin};t.admin=s,o(n(9269),t),o(n(5055),t),o(n(7540),t),o(n(9807),t)},1174:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6040:function(e,t){"use strict";var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.AdProfileType=t.OnlineSkippability=t.StreamSkippability=void 0,(o=t.StreamSkippability||(t.StreamSkippability={})).SKIPPABLE="SKIPPABLE",o.NOT_SKIPPABLE="NOT_SKIPPABLE",o.AUTO_SKIP="AUTO_SKIP",(r=t.OnlineSkippability||(t.OnlineSkippability={})).SKIPPABLE="SKIPPABLE",r.NOT_SKIPPABLE="NOT_SKIPPABLE",r.VAST_BASED="VAST_BASED",(n=t.AdProfileType||(t.AdProfileType={})).ONLINE="ONLINE",n.STREAM="STREAM"},4248:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8298:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1174),t),o(n(4248),t),o(n(6040),t)},5164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5427:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ASSET_PRESET_PLACEMENTS=t.AssetPresetPlacement=void 0,function(e){e.TV_CHANNEL="tvChannel",e.CHANNEL="channel",e.SECTION="section",e.VIDEO="video",e.TAG="tag"}(n=t.AssetPresetPlacement||(t.AssetPresetPlacement={})),t.ASSET_PRESET_PLACEMENTS=Object.values(n)},2399:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5164),t),o(n(5427),t)},9970:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6172:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2082:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9970),t),o(n(6172),t)},6205:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8458:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6205),t)},82:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8372:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalConfigurationType=void 0,(t.GlobalConfigurationType||(t.GlobalConfigurationType={})).SOURCE_DOMAINS="sourceDomains"},9807:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.UserWatchPositionDocument=t.UserFavoriteDocument=void 0,o(n(8298),t),o(n(2399),t),o(n(8458),t),o(n(2082),t),o(n(8372),t),o(n(2867),t),o(n(6241),t),o(n(8362),t),o(n(721),t),o(n(7031),t),o(n(735),t),o(n(1273),t),o(n(5296),t),o(n(2665),t),o(n(5532),t),o(n(925),t),o(n(5137),t),o(n(6195),t),o(n(9969),t),o(n(5628),t),o(n(7888),t),o(n(6562),t),o(n(9574),t),o(n(2585),t),o(n(4327),t),o(n(9279),t),o(n(2163),t);var i=n(82);Object.defineProperty(t,"UserFavoriteDocument",{enumerable:!0,get:function(){return i.UserFavoriteDocument}});var a=n(7186);Object.defineProperty(t,"UserWatchPositionDocument",{enumerable:!0,get:function(){return a.UserWatchPositionDocument}})},2867:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5900),t),o(n(7083),t)},5900:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7083:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.InviteType=t.InviteState=void 0,(r=t.InviteState||(t.InviteState={})).CANCELLED="CANCELLED",r.CLOSED="CLOSED",r.EXPIRED="EXPIRED",r.NEW="NEW",(n=t.InviteType||(t.InviteType={})).ADMIN="ADMIN",n.PAIR_ACCOUNTS="PAIR_ACCOUNTS",n.SINGLE_SIGN_ON="SINGLE_SIGN_ON"},6241:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5671),t)},5671:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.RawMarkerType=t.InnerProgramMarkerType=void 0,(r=t.InnerProgramMarkerType||(t.InnerProgramMarkerType={})).AD="AD",r.AD_SEGMENT="AD_SEGMENT",r.CHAPTER="CHAPTER",r.CREDITS="CREDITS",r.INTRO="INTRO",(n=t.RawMarkerType||(t.RawMarkerType={})).AD="AD",n.AD_SEGMENT="AD_SEGMENT",n.CHAPTER="CHAPTER",n.CREDITS="CREDITS",n.INTRO="INTRO",n.PROGRAM="PROGRAM",n.SELF_PROMO="SELF_PROMO",n.SPONSOR="SPONSOR"},8362:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7140),t)},7140:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},721:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1725),t),o(n(7421),t),o(n(7302),t)},1725:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7421:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MonetizationPlacementType=void 0,(n=t.MonetizationPlacementType||(t.MonetizationPlacementType={})).VIDEO="video",n.SECTION="section",n.CHANNEL="channel",n.CONDITION="condition",n.TV_CHANNEL="tvChannel"},7302:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7031:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9422),t),o(n(5001),t),o(n(6100),t)},6100:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationAnalyticsDocumentId=void 0,(n=t.OrganizationAnalyticsDocumentId||(t.OrganizationAnalyticsDocumentId={})).TopWatched="topWatched",n.TopWatchedNow="topWatchedNow"},9422:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5001:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},735:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2180),t)},2180:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1273:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(193),t),o(n(5034),t)},193:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5034:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5296:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1573),t)},1573:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2665:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4855),t),o(n(6315),t),o(n(2954),t)},4855:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6315:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.RowOrderByFieldPath=t.RowWhereFilterFieldPath=t.RowFilterCollection=void 0,(r=t.RowFilterCollection||(t.RowFilterCollection={})).VIDEOS="videos",r.TAGS="tags",r.TV_CHANNELS="tvChannels",(n=t.RowWhereFilterFieldPath||(t.RowWhereFilterFieldPath={})).CREATED="created",n.TAGS="tags",n.TAG_TYPE_REF="tagTypeRef",n.TYPE="type",n.CONTENT_TYPE="contentType",n.CHANNEL_KEY="channelKey",(t.RowOrderByFieldPath||(t.RowOrderByFieldPath={})).CREATED="created"},2954:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ORDER_BY_DIRECTIONS=t.WHERE_FILTER_OPERATORS=t.SCREEN_ROW_TYPES=void 0,t.SCREEN_ROW_TYPES=["filter","custom","continueToWatch","favourites","topWatched"],t.WHERE_FILTER_OPERATORS=["<","<=","==","!=",">=",">","array-contains","in","array-contains-any","not-in"],t.ORDER_BY_DIRECTIONS=["desc","asc"]},5532:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4539),t)},4539:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2163:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1637),t),o(n(4570),t)},1637:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4570:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},925:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(2966),t)},2966:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6195:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5137:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(4543),t)},4543:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9969:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(1011),t),o(n(4773),t),o(n(691),t)},1011:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4773:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TagSimplicityType=t.TagMetadataFieldType=void 0,(r=t.TagMetadataFieldType||(t.TagMetadataFieldType={})).STRING="STRING",r.TRANSLATION="TRANSLATION",r.NUMBER="NUMBER",r.BOOLEAN="BOOLEAN",r.AVAILABLE_SEASONS="AVAILABLE_SEASONS",(n=t.TagSimplicityType||(t.TagSimplicityType={})).SIMPLE="SIMPLE",n.COMPOSED="COMPOSED"},691:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TAG_LANDSCAPE_COVER_ASSET_NAME=t.TAG_PORTRAIT_COVER_ASSET_NAME=t.TAG_COVER_ASSET_NAME=t.TAG_DETAIL_BANNER_ASSET_NAME=t.TAG_BANNER_ASSET_NAME=void 0,t.TAG_BANNER_ASSET_NAME="tag_banner",t.TAG_DETAIL_BANNER_ASSET_NAME="tag_detail",t.TAG_COVER_ASSET_NAME="tag_cover",t.TAG_PORTRAIT_COVER_ASSET_NAME="tag_portrait_cover",t.TAG_LANDSCAPE_COVER_ASSET_NAME="tag_landscape_cover"},5628:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5283),t),o(n(8097),t),o(n(8614),t)},5283:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},8097:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalTagTypeId=void 0,(n=t.GlobalTagTypeId||(t.GlobalTagTypeId={})).Actor="actor",n.Genre="genre",n.Series="series"},8614:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7888:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(3194),t),o(n(2958),t)},3194:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2958:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelType=t.TvStreamType=void 0,(r=t.TvStreamType||(t.TvStreamType={})).STARTOVER="startover",r.TIMESHIFT="timeshift",r.LIVE="live",r.ALL="all",(n=t.TvChannelType||(t.TvChannelType={})).CLASSIC="CLASSIC",n.VIRTUAL="VIRTUAL"},6562:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(9162),t)},9162:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9574:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(610),t),o(n(5717),t),o(n(8068),t),o(n(2963),t)},610:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5717:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.UserDataType=void 0,(n=t.UserDataType||(t.UserDataType={})).FAVORITE="favorite",n.PURCHASE="purchase",n.WATCH_POSITION="watchPosition"},8068:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2963:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2585:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6717),t),o(n(7969),t),o(n(4823),t),o(n(1639),t)},6717:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VideoAnalyticsHistogramPercentages=void 0,t.VideoAnalyticsHistogramPercentages=["5","10","15","20","25","30","35","40","45","50","55","60","65","70","75","80","85","90","95","100"]},7969:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4823:function(e,t){"use strict";var n,r,o,i,a,u;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoTranscodingStatus=t.VideoDataSource=t.VideoSourceCodec=t.VideoSourceEncryption=t.VideoSourceProtocol=t.VideoStatus=void 0,(u=t.VideoStatus||(t.VideoStatus={})).DRAFT="DRAFT",u.PUBLISHED="PUBLISHED",(a=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",a.DASH="dash",a.MP4="mp4",(i=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",i.WIDEVINE="widevine",i.FAIRPLAY="fairplay",i.PLAYREADY="playready",(o=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",o.H265="h265",(r=t.VideoDataSource||(t.VideoDataSource={})).EPG_IMPORT="EPG_IMPORT",r.MALL_TV="MALL_TV",r.TIVIO_ADMIN="TIVIO_ADMIN",r.JOJ="JOJ",(n=t.VideoTranscodingStatus||(t.VideoTranscodingStatus={})).ON_HOLD="CREATED",n.IN_PROGRESS="ENCODING",n.DONE="ENCODING_DONE",n.ERROR="ERROR"},1639:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.VIDEO_DETAIL_ASSET_NAME=void 0,t.VIDEO_DETAIL_ASSET_NAME="video_detail"},4327:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6733),t)},6733:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7186:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9279:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(6835),t)},6835:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5055:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.PaginatedQuery=void 0;var u=a(n(705)),s=n(44),c=function(){function e(e,t){var n=this;this.firebaseEnvironment=e,this.params=t,this._isSubscribing=!1,this.pages=[],this.isFirstPageLoaded=!1,this._hasNextPage=!0,this.clearCache=function(){n.unsubscribe(),n.pages=[]},this.get=function(){return o(n,void 0,Promise,(function(){var e,t;return i(this,(function(n){return this.data.length>0?[2,this.data]:this.pages.length>0?[2,null!==(t=null===(e=this.pages[0])||void 0===e?void 0:e.dataPromise)&&void 0!==t?t:[]]:[2,this.getNext()]}))}))},this.getNext=function(){var e;if(null===(e=n.lastPage)||void 0===e?void 0:e.dataPromise)return n.lastPage.dataPromise;var t=void 0,r=new Promise((function(e){return t=e}));return n._pushToPages({data:[],dataPromise:r,dataResolve:t}),n.getPage(n.pages.length-1)},this._pushToPages=function(e){n.pages.push(e)},this.subscribe=function(){n.isSubscribing||(n._isSubscribing=!0,n.pages.length>0?n.pages.forEach((function(e,t){return n.getPage(t)})):n.getNext())},this.unsubscribe=function(){n._isSubscribing=!1,n.pages.forEach((function(e){e.unsubscribe&&(e.unsubscribe(),e.unsubscribe=void 0)}))},this._handlePageSnapshot=function(e,t){var r,o,i,a=t.docs;n.isFirstPageLoaded=!0;var u=n.pages[e],s=a.map((function(e){var t=n.firebaseEnvironment.getDocumentWithPath(e.ref.path);return t.updateCache(e.data()),t}));u.data=n.params.limit?s.splice(0,n.params.limit):s,u.endSnapshot=null!==(r=a[u.data.length-1])&&void 0!==r?r:void 0,u.startSnapshot=null!==(o=a[0])&&void 0!==o?o:void 0,null===(i=u.dataResolve)||void 0===i||i.call(u,u.data),u.dataResolve=void 0;var c=u.dataPromise;return u.dataPromise=void 0,n.params.limit?n.hasNextPage=a.length===n.params.limit+1:n.hasNextPage=!1,c},this.getPage=function(e){return o(n,void 0,Promise,(function(){var t,n,r,o,a,u,s=this;return i(this,(function(i){switch(i.label){case 0:if(e<0||e>=this.pages.length)throw new Error("Query.getPage can not get page with index (".concat(e,"}) which ")+"is not in pages range (".concat(this.pages.length,")"));return t=this.pages[e],n=null!==(u=this.pages[e-1])&&void 0!==u?u:null,r=this.buildPageQuery(n,t),this.isSubscribing?(t.unsubscribe=r.onSnapshot({next:function(t){return s._handlePageSnapshot(e,t)}}),[3,3]):[3,1];case 1:return[4,r.get()];case 2:if(o=i.sent(),a=this._handlePageSnapshot(e,o))return[2,a];i.label=3;case 3:return[2,[]]}}))}))}}return e.hashParams=function(e){return(0,u.default)(r(r({},e),{filters:e.filters.map((function(e){return r(r({},e),{value:(t=e.value,t?t.path?t.path:Array.isArray(t)&&t.length&&(null===(n=t[0])||void 0===n?void 0:n.path)?t.map((function(e){return e.path})):t:"")});var t,n}))}))},Object.defineProperty(e.prototype,"data",{get:function(){return this.pages.map((function(e){return e.data.slice()})).flat()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return e.hashParams(this.params)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"hasNextPage",{get:function(){return this._hasNextPage},set:function(e){this._hasNextPage=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isSubscribing",{get:function(){return this._isSubscribing},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastPage",{get:function(){return 0===this.pages.length?null:this.pages[this.pages.length-1]},enumerable:!1,configurable:!0}),e.prototype.buildPageQuery=function(e,t){var n=this.buildQuery();return e&&t.startSnapshot?n=n.startAt(t.startSnapshot):e&&e.endSnapshot&&(n=n.startAfter(e.endSnapshot)),t.endSnapshot?n=n.endAt(t.endSnapshot):this.params.limit&&(n=n.limit(this.params.limit+1)),n},e.prototype.buildQuery=function(){var e=(0,s.getCurrentFirebaseAppInstance)().firestore(),t=this.params.isCollectionGroup?e.collectionGroup(this.params.collection):e.collection(this.params.collection),n=this.params.filters.reduce((function(e,t){return e.where(t.field,t.operator,t.value)}),t);return this.params.orderBy&&(n=n.orderBy(this.params.orderBy.field,this.params.orderBy.directionStr)),n},e}();t.PaginatedQuery=c},4679:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.collectionAdmin=t.runTransactionAdmin=t.batchAdmin=t.runTransaction=t.batch=void 0;var r=n(44),o=function(){return(0,r.getCurrentFirebaseAppInstance)().firestore()},i=function(){return o()};t.batch=function(){return o().batch()},t.runTransaction=function(e){return o().runTransaction(e)},t.batchAdmin=function(){return i().batch()},t.runTransactionAdmin=function(e,t){return i().runTransaction(e,t)},t.collectionAdmin=function(e){return i().collection(e)}},7540:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7270:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.addWatchPosition=void 0;var i=n(1741),a=n(3631),u=n(190),s=new a.Logger("updateFavorites");t.addWatchPosition=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return s.info("Calling addWatchPosition with",e),[4,i.FirebaseEnvironment.functions.httpsCallable("addWatchPosition")((0,u.deleteUndefinedProperties)(e))];case 1:return t.sent(),[2]}}))}))}},9530:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createUserProfile=void 0;var i=n(1741),a=new(n(3631).Logger)("createUserProfile");t.createUserProfile=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return a.info("Calling createUserProfile with",e),[4,i.FirebaseEnvironment.functions.httpsCallable("createUserProfile")(e)];case 1:return t.sent(),[2]}}))}))}},9111:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.deleteUserProfile=void 0;var i=n(1741),a=new(n(3631).Logger)("deleteUserProfile");t.deleteUserProfile=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return a.info("Calling deleteUserProfile with",e),[4,i.FirebaseEnvironment.functions.httpsCallable("deleteUserProfile")(e)];case 1:return t.sent(),[2]}}))}))}},8972:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2250:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7527:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getSourceUrl=void 0;var i=n(1741),a=new(n(3631).Logger)("getSourceUrl");t.getSourceUrl=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return a.info("Calling getSourceUrl with",e),[4,i.FirebaseEnvironment.functions.httpsCallable("getSourceUrl")(e)];case 1:return[2,t.sent().data]}}))}))}},6256:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(7270),t),o(n(9530),t),o(n(9111),t),o(n(8972),t),o(n(7527),t),o(n(2250),t),o(n(7745),t),o(n(1018),t),o(n(5970),t),o(n(3034),t),o(n(3006),t),o(n(5287),t),o(n(9088),t),o(n(7192),t)},7745:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.applyInviteCode=void 0;var i=n(1741);t.applyInviteCode=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("applyInviteCode")(e)];case 1:return[2,t.sent().data]}}))}))}},1018:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.logEvent=void 0;var i=n(1741),a=new(n(3631).Logger)("logEvent");t.logEvent=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){return a.info("logging event ".concat(e.event_name," with data"),e),i.FirebaseEnvironment.functions.httpsCallable("logEvent")(e),[2]}))}))}},5970:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.logRequestBody=void 0;var i=n(1741);t.logRequestBody=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){return i.FirebaseEnvironment.functions.httpsCallable("logRequestBody")(e),[2]}))}))}},3034:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.purchaseRecovery=void 0;var i=n(1741);t.purchaseRecovery=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("purchaseRecovery")(e)];case 1:return[2,t.sent().data]}}))}))}},3006:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getReferralInfo=void 0;var i=n(1741);t.getReferralInfo=function(e,t){return r(void 0,void 0,Promise,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("getReferralInfo")({organizationId:e,token:t})];case 1:return[2,n.sent().data]}}))}))}},5287:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.updateFavorites=void 0;var i=n(1741),a=n(3631),u=n(190),s=new a.Logger("updateFavorites");t.updateFavorites=function(e){return r(this,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return s.info("Calling updateFavorites with",e),[4,i.FirebaseEnvironment.functions.httpsCallable("updateFavorites")((0,u.deleteUndefinedProperties)(e))];case 1:return t.sent(),[2]}}))}))}},9088:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.signUpWithTenant=t.signInWithTenant=t.resetPassword=void 0;var i=n(1741);t.resetPassword=function(e){return r(void 0,void 0,void 0,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("resetPassword")(e)];case 1:return[2,t.sent()]}}))}))},t.signInWithTenant=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("signInWithTenant")(e)];case 1:return[2,t.sent().data]}}))}))},t.signUpWithTenant=function(e){return r(void 0,void 0,Promise,(function(){return o(this,(function(t){switch(t.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("signUpWithTenant")(e)];case 1:return[2,t.sent().data]}}))}))}},190:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.deleteUndefinedProperties=void 0,t.deleteUndefinedProperties=function(e){return Object.keys(e).reduce((function(t,n){return void 0!==e[n]&&(t[n]=e[n]),t}),{})}},7192:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.getDrmLicense=void 0;var i=n(1741);t.getDrmLicense=function(e){return r(void 0,void 0,Promise,(function(){var t,n,r,a;return o(this,(function(o){switch(o.label){case 0:return[4,i.FirebaseEnvironment.functions.httpsCallable("generateDrmLicense")({videoId:e})];case 1:return t=o.sent(),n=t.data,r=n[0],a=n[1],1===r?[2,a]:[2,null]}}))}))}},4027:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)},u=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.hashObject=t.utils=t.migration=t.installations=t.functions=t.firestore=t.auth=t.Environment=t.setFirebaseEnvironment=t.initFirebaseEnvironment=t.FirebaseEnvironment=void 0;var s=n(9896);Object.defineProperty(t,"FirebaseEnvironment",{enumerable:!0,get:function(){return s.FirebaseEnvironment}}),Object.defineProperty(t,"initFirebaseEnvironment",{enumerable:!0,get:function(){return s.initFirebaseEnvironment}}),Object.defineProperty(t,"setFirebaseEnvironment",{enumerable:!0,get:function(){return s.setFirebaseEnvironment}});var c=n(5280);Object.defineProperty(t,"Environment",{enumerable:!0,get:function(){return c.Environment}}),t.auth=i(n(2773)),t.firestore=i(n(5474)),t.functions=i(n(6256)),t.installations=i(n(809)),t.migration=i(n(6739)),t.utils=i(n(5538)),a(n(5983),t),a(n(5474),t),a(n(6256),t);var l=u(n(705));t.hashObject=l.default},809:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.getId=void 0;var o=(0,r(n(7060)).default)();t.getId=function(){return o}},6739:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Migration=t.DocumentMigrationResponse=void 0;var r=n(2364);Object.defineProperty(t,"DocumentMigrationResponse",{enumerable:!0,get:function(){return r.DocumentMigrationResponse}}),Object.defineProperty(t,"Migration",{enumerable:!0,get:function(){return r.Migration}})},2364:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.Migration=t.migrationLogger=void 0;var i=n(9640),a=n(1741);t.migrationLogger=(0,i.getLogger)("migration");var u=function(){function e(e,n){this.migratedDocuments=[],t.migrationLogger.info("Migration from ".concat(null!=n?n:a.FirebaseEnvironment.environmentName," -> to ").concat(e));var r=a.FirebaseEnvironment.getEnvironment(null!=n?n:a.FirebaseEnvironment.environmentName),o=a.FirebaseEnvironment.getEnvironment(e);if(!r||!o)throw new Error("Migration failed, one of the environments doesn't exist");this.fromEnvironment=r,this.toEnvironment=o}return e.prototype.defaultDocumentMigration=function(e,t){return r(this,void 0,Promise,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,e.fetch()];case 1:if(n.sent(),!e.data)throw new Error("Document (".concat(e.ref.path,") migration failed"));return[2,{data:e.data,path:t||e.ref.path}]}}))}))},e.prototype.migrateDocument=function(e,t){return void 0===t&&(t=this.defaultDocumentMigration),r(this,void 0,Promise,(function(){var n,r,i,a;return o(this,(function(o){switch(o.label){case 0:return[4,t(e)];case 1:return n=o.sent(),r=n.data,i=n.path,[4,(a=this.toEnvironment.getDocumentWithPath(i)).update(r)];case 2:return o.sent(),this.migratedDocuments.push(a),[2,a]}}))}))},e.prototype.migrateQuery=function(e,t){return void 0===t&&(t=this.defaultDocumentMigration),r(this,void 0,Promise,(function(){var n,i=this;return o(this,(function(a){switch(a.label){case 0:return[4,e.get()];case 1:return n=a.sent(),[4,Promise.all(n.map((function(e){return r(i,void 0,void 0,(function(){return o(this,(function(n){switch(n.label){case 0:return[4,this.migrateDocument(e,t)];case 1:return[2,n.sent()]}}))}))})))];case 2:return[2,a.sent()]}}))}))},e.prototype.revertMigration=function(){return r(this,void 0,void 0,(function(){var e=this;return o(this,(function(t){switch(t.label){case 0:if(this.fromEnvironment.name===this.toEnvironment.name)throw new Error("Can not revert documents from the same environemtns");return[4,Promise.all(this.migratedDocuments.map((function(t){return r(e,void 0,void 0,(function(){return o(this,(function(e){switch(e.label){case 0:return[4,t.delete()];case 1:return[2,e.sent()]}}))}))})))];case 1:return t.sent(),this.migratedDocuments=[],[2]}}))}))},e}();t.Migration=u},9786:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.once=void 0,t.once=function(e){var t=!1,n=null;return function(){return t||(n=e(),t=!0),n}}},4457:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}},a=this&&this.__rest||function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n};Object.defineProperty(t,"__esModule",{value:!0}),t.BaseGenerator=void 0;var u=n(5474),s=function(){function e(e){var t=this;this.documents=[],this.generateDocuments=function(e,n){return o(t,void 0,Promise,(function(){var t=this;return i(this,(function(a){switch(a.label){case 0:return[4,Promise.all(Array(e).fill(null).map((function(e,a){return o(t,void 0,void 0,(function(){var e,t=this;return i(this,(function(o){switch(o.label){case 0:return[4,(e=this.collection.createDocument()).update(Object.entries(n).reduce((function(e,n){var o,i=n[0],u=n[1];return r(r({},e),((o={})[i]=t.replaceTemplateValue(u,a),o))}),{}))];case 1:return o.sent(),this.documents.push(e),[2,e]}}))}))})))];case 1:return[2,a.sent()]}}))}))},this.generateDocumentsWithData=function(e){return o(t,void 0,Promise,(function(){var t=this;return i(this,(function(n){switch(n.label){case 0:return[4,Promise.all(e.map((function(e){return o(t,void 0,void 0,(function(){var t,n,r;return i(this,(function(o){switch(o.label){case 0:return t=e.id,n=a(e,["id"]),[4,(r=this.collection.createDocument(t)).update(n)];case 1:return o.sent(),this.documents.push(r),[2,r]}}))}))})))];case 1:return[2,n.sent()]}}))}))},this.collection=(0,u.getCollectionWithPath)(e)}return Object.defineProperty(e.prototype,"sortedDocuments",{get:function(){return this.documents.sort((function(e,t){return e.id<t.id?-1:1}))},enumerable:!1,configurable:!0}),e.prototype.getDocumentById=function(e){return this.documents.find((function(t){return t.id===e}))},e.prototype.getDocumentsByIds=function(e){return this.sortedDocuments.filter((function(t){return e.includes(t.id)}))},e.prototype.clean=function(){return o(this,void 0,void 0,(function(){var e=this;return i(this,(function(t){switch(t.label){case 0:return[4,Promise.all(this.documents.map((function(t){return o(e,void 0,void 0,(function(){return i(this,(function(e){switch(e.label){case 0:return[4,t.ref.delete()];case 1:return[2,e.sent()]}}))}))})))];case 1:return t.sent(),this.documents=[],[2]}}))}))},e.prototype.replaceTemplateValue=function(e,t){return void 0===t&&(t=0),"string"==typeof e?e.replace("$index","".concat(this.documents.length+t)):e},e}();t.BaseGenerator=s},7287:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},a=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelGenerator=void 0;var u=n(4457),s=n(9865),c=function(e){function t(){var t=e.call(this,"channels")||this;return t.sectionGenerators={},t}return o(t,e),t.prototype.clean=function(){return i(this,void 0,void 0,(function(){var t=this;return a(this,(function(n){switch(n.label){case 0:return[4,e.prototype.clean.call(this)];case 1:return n.sent(),[4,Promise.all(Object.values(this.sectionGenerators).map((function(e){return i(t,void 0,void 0,(function(){return a(this,(function(t){switch(t.label){case 0:return[4,e.clean()];case 1:return[2,t.sent()]}}))}))})))];case 2:return n.sent(),[2]}}))}))},t.prototype.getSectionGenerator=function(e){return this.sectionGenerators[e.ref.path]||(this.sectionGenerators[e.ref.path]=new s.SectionGenerator(e)),this.sectionGenerators[e.ref.path]},t.prototype.generateSections=function(e,t,n){return i(this,void 0,Promise,(function(){return a(this,(function(r){switch(r.label){case 0:return[4,this.getSectionGenerator(e).generateDocuments(t,n)];case 1:return[2,r.sent()]}}))}))},t}(u.BaseGenerator);t.ChannelGenerator=c},1715:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalAssetPresetGenerator=void 0;var i=function(e){function t(){return e.call(this,"globalAssetPresets")||this}return o(t,e),t}(n(4457).BaseGenerator);t.GlobalAssetPresetGenerator=i},4663:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalConfigurationGenerator=void 0;var i=function(e){function t(){return e.call(this,"globalConfigurations")||this}return o(t,e),t}(n(4457).BaseGenerator);t.GlobalConfigurationGenerator=i},8181:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalTagTypeGenerator=void 0;var i=function(e){function t(){return e.call(this,"globalTagTypes")||this}return o(t,e),t}(n(4457).BaseGenerator);t.GlobalTagTypeGenerator=i},6707:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetGenerator=t.WatchPositionGenerator=t.TvProgramGenerator=t.TvChannelGenerator=t.SectionGenerator=t.PurchaseGenerator=t.MonetizationGenerator=t.MembershipGenerator=t.GlobalTagTypeGenerator=t.GlobalConfigurationGenerator=t.GlobalAssetPresetGenerator=t.ChannelGenerator=void 0,o(n(299),t),o(n(4501),t),o(n(5446),t),o(n(8202),t),o(n(4107),t),o(n(6612),t);var i=n(7287);Object.defineProperty(t,"ChannelGenerator",{enumerable:!0,get:function(){return i.ChannelGenerator}});var a=n(1715);Object.defineProperty(t,"GlobalAssetPresetGenerator",{enumerable:!0,get:function(){return a.GlobalAssetPresetGenerator}});var u=n(4663);Object.defineProperty(t,"GlobalConfigurationGenerator",{enumerable:!0,get:function(){return u.GlobalConfigurationGenerator}});var s=n(8181);Object.defineProperty(t,"GlobalTagTypeGenerator",{enumerable:!0,get:function(){return s.GlobalTagTypeGenerator}});var c=n(5113);Object.defineProperty(t,"MembershipGenerator",{enumerable:!0,get:function(){return c.MembershipGenerator}});var l=n(227);Object.defineProperty(t,"MonetizationGenerator",{enumerable:!0,get:function(){return l.MonetizationGenerator}});var f=n(4425);Object.defineProperty(t,"PurchaseGenerator",{enumerable:!0,get:function(){return f.PurchaseGenerator}});var d=n(9865);Object.defineProperty(t,"SectionGenerator",{enumerable:!0,get:function(){return d.SectionGenerator}});var p=n(1128);Object.defineProperty(t,"TvChannelGenerator",{enumerable:!0,get:function(){return p.TvChannelGenerator}});var h=n(436);Object.defineProperty(t,"TvProgramGenerator",{enumerable:!0,get:function(){return h.TvProgramGenerator}});var v=n(2752);Object.defineProperty(t,"WatchPositionGenerator",{enumerable:!0,get:function(){return v.WatchPositionGenerator}});var y=n(4503);Object.defineProperty(t,"WidgetGenerator",{enumerable:!0,get:function(){return y.WidgetGenerator}})},5113:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MembershipGenerator=void 0;var i=function(e){function t(t){return e.call(this,"organizations/".concat(t,"/memberships"))||this}return o(t,e),t}(n(4457).BaseGenerator);t.MembershipGenerator=i},227:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.MonetizationGenerator=void 0;var i=function(e){function t(){return e.call(this,"monetizations")||this}return o(t,e),t}(n(4457).BaseGenerator);t.MonetizationGenerator=i},299:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.OrganizationGenerator=void 0;var i=function(e){function t(){return e.call(this,"organizations")||this}return o(t,e),t}(n(4457).BaseGenerator);t.OrganizationGenerator=i},4501:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PromotionGenerator=void 0;var i=function(e){function t(t){return e.call(this,t?"organizations/".concat(t,"/promotions"):"promotions")||this}return o(t,e),t}(n(4457).BaseGenerator);t.PromotionGenerator=i},4425:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseGenerator=void 0;var i=function(e){function t(t){return e.call(this,"users/".concat(t,"/purchases"))||this}return o(t,e),t}(n(4457).BaseGenerator);t.PurchaseGenerator=i},5446:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.ReferralGenerator=void 0;var i=function(e){function t(t){return e.call(this,t?"organizations/".concat(t,"/referrals"):"referrals")||this}return o(t,e),t}(n(4457).BaseGenerator);t.ReferralGenerator=i},9865:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.SectionGenerator=void 0;var s=n(4457),c=n(6612),l=function(e){function t(t){var n=e.call(this,"".concat(t.ref.path,"/sections"))||this;return n.videoGenerator=new c.VideoGenerator,n.channel=t,n}return o(t,e),t.prototype.clean=function(){return a(this,void 0,void 0,(function(){return u(this,(function(t){switch(t.label){case 0:return[4,e.prototype.clean.call(this)];case 1:return t.sent(),[4,this.videoGenerator.clean()];case 2:return t.sent(),[2]}}))}))},t.prototype.generateVideos=function(e,t,n){return a(this,void 0,Promise,(function(){return u(this,(function(r){return[2,this.videoGenerator.generateDocuments(t,i(i({},n),{channelRef:this.channel.ref,sectionRef:e.ref}))]}))}))},t}(s.BaseGenerator);t.SectionGenerator=l},8202:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TagGenerator=void 0;var i=function(e){function t(t){return e.call(this,t?"organizations/".concat(t,"/tags"):"tags")||this}return o(t,e),t}(n(4457).BaseGenerator);t.TagGenerator=i},1128:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelGenerator=void 0;var i=function(e){function t(){return e.call(this,"tvChannels")||this}return o(t,e),t}(n(4457).BaseGenerator);t.TvChannelGenerator=i},436:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.TvProgramGenerator=void 0;var i=function(e){function t(){return e.call(this,"tvPrograms")||this}return o(t,e),t}(n(4457).BaseGenerator);t.TvProgramGenerator=i},4107:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.UserGenerator=void 0;var i=function(e){function t(){return e.call(this,"users")||this}return o(t,e),t}(n(4457).BaseGenerator);t.UserGenerator=i},6612:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.GlobalVideoGenerator=t.VideoGenerator=void 0;var i=n(4457),a=function(e){function t(){return e.call(this,"videos")||this}return o(t,e),t}(i.BaseGenerator);t.VideoGenerator=a;var u=function(e){function t(){return e.call(this,"videos")||this}return o(t,e),t}(i.BaseGenerator);t.GlobalVideoGenerator=u},2752:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0}),t.WatchPositionGenerator=void 0;var i=function(e){function t(t){return e.call(this,"users/".concat(t,"/watchPositions"))||this}return o(t,e),t}(n(4457).BaseGenerator);t.WatchPositionGenerator=i},4503:function(e,t,n){"use strict";var r,o=this&&this.__extends||(r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},r(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},u=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.WidgetGenerator=void 0;var s=function(e){function t(){return e.call(this,"widgets")||this}return o(t,e),t.prototype.generateWidgets=function(e,t,n){return a(this,void 0,Promise,(function(){return u(this,(function(r){switch(r.label){case 0:return[4,this.generateDocuments(t,i(i({},n),{channelsOrder:e.map((function(e){return e.ref}))}))];case 1:return[2,r.sent()]}}))}))},t}(n(4457).BaseGenerator);t.WidgetGenerator=s},5538:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.generators=void 0,t.generators=i(n(6707))},3631:function(e,t){"use strict";var n=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createLogger=t.Logger=void 0;var r=function(){function e(e){this.name=e,this.isEnabled=!0}return e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["error"],e,!1))},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["info"],e,!1))},e.prototype.off=function(){this.isEnabled=!1},e.prototype.on=function(){this.isEnabled=!0},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.log.apply(this,n(["warn"],e,!1))},e.prototype.forceInfo=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];console.info.apply(console,n(["".concat(e.prefix,":").concat(this.name)],t,!1))},e.prototype.log=function(t){for(var r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];e.enabled&&this.isEnabled&&console[t].apply(console,n(["".concat(e.prefix,":").concat(this.name)],r,!1))},e.enabled=!0,e.prefix="tivio",e}();t.Logger=r,t.createLogger=function(e){return new r(e)}},7060:function(e,t,n){"use strict";!function(){var t,r,o,i=0,a=[];for(r=0;r<256;r++)a[r]=(r+256).toString(16).substr(1);function u(){var e=((!t||i+16>s.BUFFER_SIZE)&&(i=0,t=s.randomBytes(s.BUFFER_SIZE)),t.slice(i,i+=16));return e[6]=15&e[6]|64,e[8]=63&e[8]|128,e}function s(){var e=u();return a[e[0]]+a[e[1]]+a[e[2]]+a[e[3]]+"-"+a[e[4]]+a[e[5]]+"-"+a[e[6]]+a[e[7]]+"-"+a[e[8]]+a[e[9]]+"-"+a[e[10]]+a[e[11]]+a[e[12]]+a[e[13]]+a[e[14]]+a[e[15]]}s.BUFFER_SIZE=4096,s.bin=u,s.clearBuffer=function(){t=null,i=0},s.test=function(e){return"string"==typeof e&&/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(e)},"undefined"!=typeof crypto?o=crypto:"undefined"!=typeof window&&void 0!==window.msCrypto&&(o=window.msCrypto),o=o||n(2705),e.exports=s,s.randomBytes=function(){if(o){if(o.randomBytes)return o.randomBytes;if(o.getRandomValues)return"function"!=typeof Uint8Array.prototype.slice?function(e){var t=new Uint8Array(e);return o.getRandomValues(t),Array.from(t)}:function(e){var t=new Uint8Array(e);return o.getRandomValues(t),t}}return function(e){var t,n=[];for(t=0;t<e;t++)n.push(Math.floor(256*Math.random()));return n}}()}()},2705:function(){}},n={},function e(r){var o=n[r];if(void 0!==o)return o.exports;var i=n[r]={exports:{}};return t[r].call(i.exports,i,i.exports,e),i.exports}(4027))},718:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid",e.TIVIO_ADS="tivio-ads",e.JOJ_TEST_AD_FORM_PROGRAMMATIC="joj-test-ad-form-programmatic",e.JOJ_TEST_TESTER_VASTERIX="joj-test-tester-vasterix",e.JOJ_TEST_TESTER_ADFORM_30="joj-test-tester-adform-30"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Tivio fake ads - always working",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0},{id:n.JOJ_TEST_AD_FORM_PROGRAMMATIC,name:"JOJ Test AdForm Programmatic"},{id:n.JOJ_TEST_TESTER_VASTERIX,name:"JOJ Test Vasterix"},{id:n.JOJ_TEST_TESTER_ADFORM_30,name:"JOJ Test Adform 30"},{id:n.TIVIO_ADS,name:"Tivio Ads"}].sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},87:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},690:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomerId=void 0,(n=t.CustomerId||(t.CustomerId={})).OKTAGON="OKTAGON",n.JOJ="JOJ",n.MALL="MALL",n.GARAZ="GARAZ",n.U_KULATEHO_STOLU="U_KULATEHO_STOLU",n.INVESTOREES="INVESTOREES",n.DVTV="DVTV",n.DVTV_DEV="DVTV_DEV",n.O2="O2",n.GRAPE="GRAPE",n.TIVIO="TIVIO",n.STORYBOOK="STORYBOOK",n.NANGU_DEV="NANGU_DEV"},801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV"},123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(87),t),o(n(304),t),o(n(690),t),o(n(801),t),o(n(495),t),o(n(2),t),o(n(123),t),o(n(589),t),o(n(889),t),o(n(703),t),o(n(743),t),o(n(407),t),o(n(757),t)},889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},743:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RegistrationRedirect=t.LoginRedirect=t.SemanticDate=t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.IT="it",e.PL="pl",e.PT="pt",e.SK="sk",e.ES="es",e.HU="hu"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}],(o=t.SemanticDate||(t.SemanticDate={})).YESTERDAY="Yesterday",o.TODAY="Today",o.TOMORROW="Tomorrow",(r=t.LoginRedirect||(t.LoginRedirect={})).PAYMENT="payment",r.VOUCHER="voucher",(t.RegistrationRedirect||(t.RegistrationRedirect={})).PAYMENT="payment"},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},360:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsConversionPage=t.AnalyticsConversionTargetBase=t.AnalyticsConversionName=t.AnalyticsConversionStatus=void 0,(i=t.AnalyticsConversionStatus||(t.AnalyticsConversionStatus={})).SUCCESS="SUCCESS",i.FAILED="FAILED",(o=t.AnalyticsConversionName||(t.AnalyticsConversionName={})).CLICK="click",o.PLAY="play",o.PURCHASE="purchase",o.VISIT="visit",(r=t.AnalyticsConversionTargetBase||(t.AnalyticsConversionTargetBase={})).Element="element",r.Monetization="monetization",(n=t.AnalyticsConversionPage||(t.AnalyticsConversionPage={})).Videos="videos",n.Series="series",n.Profile="profile",n.Tags="tags",n.Screens="screens",n.Registration="registration",n.Login="login",n.About="about",n.ResetPassword="reset-password",n.Player="player",n.Redeem="redeem",n.Referral="referral",n.Pair="pair",n.Search="search"},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},90:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenReason=void 0,(n=t.ForbiddenReason||(t.ForbiddenReason={})).MONETIZATION="MONETIZATION",n.GEO_BLOCKING="GEO_BLOCKING"},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(396),t),o(n(360),t),o(n(826),t),o(n(202),t),o(n(129),t),o(n(90),t),o(n(959),t),o(n(910),t),o(n(726),t),o(n(523),t),o(n(738),t),o(n(535),t),o(n(161),t),o(n(605),t),o(n(190),t),o(n(614),t),o(n(656),t),o(n(906),t),o(n(363),t),o(n(948),t),o(n(635),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.HALF_ANNUALLY="HALF_ANNUALLY",n.ANNUALLY="ANNUALLY"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},726:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DurationUnits=void 0,(n=t.DurationUnits||(t.DurationUnits={})).DAY="day",n.MONTH="month"},523:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate"},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.BannerItemComponent=t.RowComponent=void 0,(i=t.RowComponent||(t.RowComponent={})).ROW="ROW",i.BANNER="BANNER",(o=t.BannerItemComponent||(t.BannerItemComponent={})).CLASSIC="CLASSIC",o.SPLIT="SPLIT",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",r.ROW_ITEM_BANNER="ROW_ITEM_BANNER",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL",n.ADVERTISEMENT="ADVERTISEMENT"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR",n.BLOCKED="BLOCKED"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.CUT="CUT",n.TRAILER="TRAILER",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t),o(n(620),t)},620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",s="month",c="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,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,v={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:l,w:u,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",m={};m[b]=v;var _=function(e){return e instanceof S},w=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();m[i]&&(o=i),n&&(m[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;m[u]=t,o=u}return!r&&o&&(b=o),o||!r&&b},O=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},P=g;P.l=w,P.i=_,P.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function v(e){this.$L=w(e.locale,null,!0),this.parse(e)}var y=v.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return P},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return O(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<O(e)},y.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,c=!!P.u(t)||t,d=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,y=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case l:return c?p(1,0):p(31,11);case s:return c?p(1,y):p(0,y+1);case u:var m=this.$locale().weekStart||0,_=(v<m?v+7:v)-m;return p(c?g-_:g+(6-_),y);case a:case f:return h(b+"Hours",0);case i:return h(b+"Minutes",1);case o:return h(b+"Seconds",2);case r:return h(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var u,c=P.p(e),d="set"+(this.$u?"UTC":""),p=(u={},u[a]=d+"Date",u[f]=d+"Date",u[s]=d+"Month",u[l]=d+"FullYear",u[i]=d+"Hours",u[o]=d+"Minutes",u[r]=d+"Seconds",u[n]=d+"Milliseconds",u)[c],h=c===a?this.$D+(t-this.$W):t;if(c===s||c===l){var v=this.clone().set(f,1);v.$d[p](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[P.p(e)]()},y.add=function(n,c){var f,d=this;n=Number(n);var p=P.p(c),h=function(e){var t=O(d);return P.w(t.date(t.date()+Math.round(e*n)),d)};if(p===s)return this.set(s,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return h(1);if(p===u)return h(7);var v=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,y=this.$d.getTime()+n*v;return P.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,c=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return P.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:P.s(u+1,2,"0"),MMM:l(n.monthsShort,u,c,3),MMMM:l(c,u),D:this.$D,DD:P.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,s,2),ddd:l(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(i),HH:P.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:P.s(a,2,"0"),s:String(this.$s),ss:P.s(this.$s,2,"0"),SSS:P.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||v[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,d){var p,h=P.p(f),v=O(n),y=(v.utcOffset()-this.utcOffset())*e,g=this-v,b=P.m(this,v);return b=(p={},p[l]=b/12,p[s]=b,p[c]=b/3,p[u]=(g-y)/6048e5,p[a]=(g-y)/864e5,p[i]=g/t,p[o]=g/e,p[r]=g/1e3,p)[h]||g,d?b:P.a(b)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return m[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return P.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),E=S.prototype;return O.prototype=E,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",s],["$y",l],["$D",f]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,S,O),e.$i=!0),O},O.locale=w,O.isDayjs=_,O.unix=function(e){return O(1e3*e)},O.en=m[b],O.Ls=m,O.p={},O}()},945:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},u=function(e){return function(t){this[e]=+t}},s=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[o,function(e){this.afternoon=l(e,!1)}],a:[o,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[n,u("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,u("month")],MM:[n,u("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,u("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,u("year")],Z:s,ZZ:s};function d(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),u=a.length,s=0;s<u;s+=1){var c=a[s],l=f[c],d=l&&l[0],p=l&&l[1];a[s]=p?{regex:d,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<u;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,s=o.parser,c=e.slice(r),l=i.exec(c)[0];s.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var u=a[1];if("string"==typeof u){var s=!0===a[2],c=!0===a[3],l=s||c,f=a[2];c&&(f=a[2]),i=this.$locale(),!s&&f&&(i=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),o=r.year,i=r.month,a=r.day,u=r.hours,s=r.minutes,c=r.seconds,l=r.milliseconds,f=r.zone,p=new Date,h=a||(o||i?1:p.getDate()),v=o||p.getFullYear(),y=0;o&&!i||(y=i>0?i-1:p.getMonth());var g=u||0,b=s||0,m=c||0,_=l||0;return f?new Date(Date.UTC(v,y,h,g,b,m,_+60*f.offset*1e3)):n?new Date(Date.UTC(v,y,h,g,b,m,_)):new Date(v,y,h,g,b,m,_)}catch(e){return new Date("")}}(t,u,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(u)&&(this.$d=new Date("")),i={}}else if(u instanceof Array)for(var p=u.length,h=1;h<=p;h+=1){a[1]=u[h-1];var v=n.apply(this,a);if(v.isValid()){this.$d=v.$d,this.$L=v.$L,this.init();break}h===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},30:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),u="("===(o=o||"()")[0],s=")"===o[1];return(u?this.isAfter(i,r):!this.isBefore(i,r))&&(s?this.isBefore(a,r):!this.isAfter(a,r))||(u?this.isBefore(i,r):!this.isAfter(i,r))&&(s?this.isAfter(a,r):!this.isBefore(a,r))}}}()},924:function(e,t,n){"use strict";n.r(t),n.d(t,{BotInfo:function(){return u},BrowserInfo:function(){return o},NodeInfo:function(){return i},ReactNativeInfo:function(){return s},SearchBotDeviceInfo:function(){return a},browserName:function(){return v},detect:function(){return p},detectOS:function(){return g},getNodeVersion:function(){return b},parseUserAgent:function(){return y}});var r=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},i=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},a=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},u=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},s=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=3,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],d=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function p(e){return e?y(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new s:"undefined"!=typeof navigator?y(navigator.userAgent):b()}function h(e){return""!==e&&f.reduce((function(t,n){var r=n[0],o=n[1];if(t)return t;var i=o.exec(e);return!!i&&[r,i]}),!1)}function v(e){var t=h(e);return t?t[0]:null}function y(e){var t=h(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new u;var s=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);s?s.length<l&&(s=r(r([],s,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(l-s.length),!0)):s=[];var f=s.join("."),d=g(e),p=c.exec(e);return p&&p[1]?new a(n,f,d,p[1]):new o(n,f,d)}function g(e){for(var t=0,n=d.length;t<n;t++){var r=d[t],o=r[0];if(r[1].exec(e))return o}return null}function b(){return"undefined"!=typeof process&&process.version?new i(process.version.slice(1)):null}},88:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){i(e,t,n[t])}))}return e}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function c(e,t,n){return t&&s(e.prototype,t),n&&s(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}n.r(t),n.d(t,{default:function(){return $}});var v={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},y=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e),this.init(t,n)}return c(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||v,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,a({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),g=new y,b=function(){function e(){u(this,e),this.observers={}}return c(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function m(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function _(e){return null==e?"":""+e}function w(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function O(e,t,n){var r=w(e,t,Object);r.obj[r.k]=n}function P(e,t){var n=w(e,t),r=n.obj,o=n.k;if(r)return r[o]}function S(e,t,n){var r=P(e,n);return void 0!==r?r:P(t,n)}function E(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):E(e[r],t[r],n):e[r]=t[r]);return e}function T(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var M={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function j(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return M[e]})):e}var A="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,x=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return u(this,t),n=f(this,d(t).call(this)),A&&b.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return h(t,e),c(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),P(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),O(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},u=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(u=e.split("."))[1]),this.addNamespaces(t);var s=P(this.data,u)||{};r?E(s,n,o):s=a({},s,n),O(this.data,u,s),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?a({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(b),C={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},I={},D=function(e){function t(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return u(this,t),n=f(this,d(t).call(this)),A&&b.call(l(n)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=e,i=l(n),r.forEach((function(e){o[e]&&(i[e]=o[e])})),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=g.create("translator"),n}return h(t,e),c(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,o){var i=this;if("object"!==r(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var u=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],n),c=s.key,l=s.namespaces,f=l[l.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var h=n.nsSeparator||this.options.nsSeparator;return f+h+c}return c}var v=this.resolve(e,n),y=v&&v.res,g=v&&v.usedKey||c,b=v&&v.exactUsedKey||c,m=Object.prototype.toString.apply(y),_=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject;if(w&&y&&"string"!=typeof y&&"boolean"!=typeof y&&"number"!=typeof y&&["[object Number]","[object Function]","[object RegExp]"].indexOf(m)<0&&("string"!=typeof _||"[object Array]"!==m)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,y,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(u){var O="[object Array]"===m,P=O?[]:{},S=O?b:g;for(var E in y)if(Object.prototype.hasOwnProperty.call(y,E)){var T="".concat(S).concat(u).concat(E);P[E]=this.translate(T,a({},n,{joinArrays:!1,ns:l})),P[E]===T&&(P[E]=y[E])}y=P}}else if(w&&"string"==typeof _&&"[object Array]"===m)(y=y.join(_))&&(y=this.extendTranslation(y,e,n,o));else{var M=!1,j=!1,A=void 0!==n.count&&"string"!=typeof n.count,x=t.hasDefaultValue(n),C=A?this.pluralResolver.getSuffix(d,n.count):"",I=n["defaultValue".concat(C)]||n.defaultValue;!this.isValidLookup(y)&&x&&(M=!0,y=I),this.isValidLookup(y)||(j=!0,y=c);var D=x&&I!==y&&this.options.updateMissing;if(j||M||D){if(this.logger.log(D?"updateKey":"missingKey",d,f,c,D?I:y),u){var L=this.resolve(c,a({},n,{keySeparator:!1}));L&&L.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var R=[],k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&k&&k[0])for(var N=0;N<k.length;N++)R.push(k[N]);else"all"===this.options.saveMissingTo?R=this.languageUtils.toResolveHierarchy(n.lng||this.language):R.push(n.lng||this.language);var B=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,f,t,D?r:y,D,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,f,t,D?r:y,D,n),i.emit("missingKey",e,f,t,y)};this.options.saveMissing&&(this.options.saveMissingPlurals&&A?R.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){B([e],c+t,n["defaultValue".concat(t)]||I)}))})):B(R,c,I))}y=this.extendTranslation(y,e,n,v,o),j&&y===c&&this.options.appendNamespaceToMissingKey&&(y="".concat(f,":").concat(c)),j&&this.options.parseMissingKeyHandler&&(y=this.options.parseMissingKeyHandler(y))}return y}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(a({},n,{interpolation:a({},this.options.interpolation,n.interpolation)}));var u,s=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(s){var c=e.match(this.interpolator.nestingRegexp);u=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=a({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),s){var f=e.match(this.interpolator.nestingRegexp);u<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=C.handle(p,e,t,this.options&&this.options.postProcessPassResolved?a({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var s=a.extractFromKey(e,u),c=s.key;n=c;var l=s.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==u.count&&"string"!=typeof u.count,d=void 0!==u.context&&"string"==typeof u.context&&""!==u.context,p=u.lngs?u.lngs:a.languageUtils.toResolveHierarchy(u.lng||a.language,u.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!I["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(I["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,s,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,u):(f&&(i=a.pluralResolver.getSuffix(n,u.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(u.context)),f&&p.push(l+=i));s=p.pop();)a.isValidLookup(t)||(r=s,t=a.getResource(n,e,s,u))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(b);function L(e){return e.charAt(0).toUpperCase()+e.slice(1)}var R=function(){function e(t){u(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=g.create("languageUtils")}return c(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=L(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=L(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),k=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},B=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};u(this,e),this.languageUtils=t,this.options=r,this.logger=g.create("pluralResolver"),this.rules=(n={},k.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:N[e.fc]}}))})),n)}return c(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),F=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};u(this,e),this.logger=g.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return c(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:j,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?T(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?T(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?T(t.nestingPrefix):t.nestingPrefixEscaped||T("$t("),this.nestingSuffix=t.nestingSuffix?T(t.nestingSuffix):t.nestingSuffixEscaped||T(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,u=this,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(u.formatSeparator)<0){var o=S(t,s,e);return u.alwaysFormat?u.format(o,void 0,n):o}var i=e.split(u.formatSeparator),a=i.shift().trim(),c=i.join(u.formatSeparator).trim();return u.format(S(t,s,a),c,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return u.escapeValue?c(u.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}u.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||u.useRawValueToEscape||(i=_(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=u.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},u=a({},i);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,u)).replace(/'/g,'"');try{u=JSON.parse(o),t&&(u=a({},t,u))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete u.defaultValue,e}for(u.applyPostProcessor=!1,delete u.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),c=f,l=!0}if((r=t(s.call(this,n[1].trim(),u),u))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=c.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),V=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return u(this,t),o=f(this,d(t).call(this)),A&&b.call(l(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=g.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return h(t,e),c(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],u=[],s=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var u="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[u]=2:o.state[u]<0||(1===o.state[u]?a.indexOf(u)<0&&a.push(u):(o.state[u]=1,r=!1,a.indexOf(u)<0&&a.push(u),i.indexOf(u)<0&&i.push(u),s.indexOf(t)<0&&s.push(t)))})),r||u.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:u,toLoadNamespaces:s}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,u,s,c,l;r=n.loaded,u=i,(c=(s=w(r,[o],Object)).obj)[l=s.k]=c[l]||[],c[l].push(u),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(u,s){u&&s&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(u,s)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,a({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(b);function U(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function G(){}var W=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(u(this,t),e=f(this,d(t).call(this)),A&&b.call(l(e)),e.options=U(n),e.services={},e.logger=g,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),f(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return h(t,e),c(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=a({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,U(t)),this.format=this.options.interpolation.format,n||(n=G),!this.options.isClone){this.modules.logger?g.init(o(this.modules.logger),this.options):g.init(null,this.options);var i=new R(this.options);this.store=new x(this.options.resources,this.options);var u=this.services;u.logger=g,u.resourceStore=this.store,u.languageUtils=i,u.pluralResolver=new B(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),u.interpolator=new F(this.options),u.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},u.backendConnector=new V(o(this.modules.backend),u.resourceStore,u,this.options),u.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(u.languageDetector=o(this.modules.languageDetector),u.languageDetector.init(u,this.options.detection,this.options)),this.modules.i18nFormat&&(u.i18nFormat=o(this.modules.i18nFormat),u.i18nFormat.init&&u.i18nFormat.init(this)),this.translator=new D(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.length>0&&"dev"!==s[0]&&(this.options.lng=s[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=m(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=m();return e||(e=this.languages),t||(t=this.options.ns),n||(n=G),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&C.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=m();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var i;if("object"!==r(o)){for(var u=arguments.length,s=new Array(u>2?u-2:0),c=2;c<u;c++)s[c-2]=arguments[c];i=n.options.overloadTranslationOptionHandler([t,o].concat(s))}else i=a({},o);return i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,n.t(t,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var u=n.precheck(this,a);if(void 0!==u)return u}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=m();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=m();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:G,o=a({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=a({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new D(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(b),$=new W},160:function(e,t,n){e=n.nmd(e);var r,o,i,a=9007199254740991,u="[object Function]",s="[object GeneratorFunction]",c="[object Map]",l="[object Promise]",f="[object Set]",d="[object WeakMap]",p="[object DataView]",h=/^\[object .+?Constructor\]$/,v="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,y="object"==typeof self&&self&&self.Object===Object&&self,g=v||y||Function("return this")(),b=t&&!t.nodeType&&t,m=b&&e&&!e.nodeType&&e,_=m&&m.exports===b,w=Function.prototype,O=Object.prototype,P=g["__core-js_shared__"],S=(r=/[^.]+$/.exec(P&&P.keys&&P.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",E=w.toString,T=O.hasOwnProperty,M=O.toString,j=RegExp("^"+E.call(T).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),A=_?g.Buffer:void 0,x=O.propertyIsEnumerable,C=A?A.isBuffer:void 0,I=(o=Object.keys,i=Object,function(e){return o(i(e))}),D=$(g,"DataView"),L=$(g,"Map"),R=$(g,"Promise"),k=$(g,"Set"),N=$(g,"WeakMap"),B=!x.call({valueOf:1},"valueOf"),F=z(D),V=z(L),U=z(R),G=z(k),W=z(N);function $(e,t){var n=function(e,t){return null==e?void 0:e[t]}(e,t);return function(e){if(!Q(e)||function(e){return!!S&&S in e}(e))return!1;var t=q(e)||function(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}(e)?j:h;return t.test(z(e))}(n)?n:void 0}var Y=function(e){return M.call(e)};function z(e){if(null!=e){try{return E.call(e)}catch(e){}try{return e+""}catch(e){}}return""}(D&&Y(new D(new ArrayBuffer(1)))!=p||L&&Y(new L)!=c||R&&Y(R.resolve())!=l||k&&Y(new k)!=f||N&&Y(new N)!=d)&&(Y=function(e){var t=M.call(e),n="[object Object]"==t?e.constructor:void 0,r=n?z(n):void 0;if(r)switch(r){case F:return p;case V:return c;case U:return l;case G:return f;case W:return d}return t});var H=Array.isArray;function J(e){return null!=e&&function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}(e.length)&&!q(e)}var K=C||function(){return!1};function q(e){var t=Q(e)?M.call(e):"";return t==u||t==s}function Q(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}e.exports=function(e){if(J(e)&&(H(e)||"string"==typeof e||"function"==typeof e.splice||K(e)||function(e){return function(e){return function(e){return!!e&&"object"==typeof e}(e)&&J(e)}(e)&&T.call(e,"callee")&&(!x.call(e,"callee")||"[object Arguments]"==M.call(e))}(e)))return!e.length;var t=Y(e);if(t==c||t==f)return!e.size;if(B||function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||O)}(e))return!I(e).length;for(var n in e)if(T.call(e,n))return!1;return!0}},302:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(875),t),o(n(209),t)},209:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.trackedKeys=t.TizenRcKey=void 0,function(e){e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Enter="Enter",e.Back="Back",e.VolumeUp="VolumeUp",e.VolumeDown="VolumeDown",e.VolumeMute="VolumeMute",e.ChannelUp="ChannelUp",e.ChannelDown="ChannelDown",e.ChannelList="ChannelList",e.ColorF0Red="ColorF0Red",e.ColorF1Green="ColorF1Green",e.ColorF2Yellow="ColorF2Yellow",e.ColorF3Blue="ColorF3Blue",e.MediaPlayPause="MediaPlayPause",e.MediaRewind="MediaRewind",e.MediaFastForward="MediaFastForward",e.MediaPlay="MediaPlay",e.MediaPause="MediaPause",e.MediaStop="MediaStop",e.MediaRecord="MediaRecord",e.MediaTrackPrevious="MediaTrackPrevious",e.MediaTrackNext="MediaTrackNext",e.Num0="0",e.Num1="1",e.Num2="2",e.Num3="3",e.Num4="4",e.Num5="5",e.Num6="6",e.Num7="7",e.Num8="8",e.Num9="9",e.Minus="Minus",e.PreviousChannel="PreviousChannel",e.Menu="Menu",e.Tools="Tools",e.Info="Info",e.Source="Source",e.Exit="Exit",e.Caption="Caption",e["E-Manual"]="E-Manual",e["3D"]="3D",e.Extra="Extra",e.PictureSize="PictureSize",e.Soccer="Soccer",e.Teletext="Teletext",e.MTS="MTS",e.Search="Search",e.Guide="Guide"}(n||(n={})),t.TizenRcKey=n;var r=new Set(["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Enter","Back","MediaPlayPause","MediaRewind","MediaFastForward","MediaPlay","MediaPause","MediaStop","0","1","2","3","4","5","6","7","8","9"]);t.trackedKeys=r},875:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeTizen=t.isTizenVersionGreaterThan=t.getTizenVersion=t.getTizenApi=t.getKeyCode=void 0;var i=n(405),a=n(209),u=new i.Logger("tizen"),s=function(){return"undefined"==typeof tizen?null:tizen};t.getTizenApi=s;var c=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)},l=function(){if(!s())return null;var e=s().systeminfo.getCapability("http://tizen.org/feature/platform.version"),t=e.split("."),n=t[0],r=t[1];return{version:e,major:c(n),minor:c(r)}};t.getTizenVersion=l,t.isTizenVersionGreaterThan=function(e){var t=l();return Boolean(t&&t.major>e)};var f=new Map,d=function(e){return r(void 0,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:t=new Promise((function(t,n){var r=e.tvinputdevice.getSupportedKeys().map((function(e){return e.name})).filter((function(e){return a.trackedKeys.has(e)}));e.tvinputdevice.registerKeyBatch(r,t,n)})),r.label=1;case 1:return r.trys.push([1,3,,4]),u.info("Initializing RC keys..."),[4,t];case 2:return r.sent(),u.info("RC keys are ready."),[3,4];case 3:return n=r.sent(),u.error("Failed to initialize listening to RC keys. This may be caused by a missing privilege http://tizen.org/privilege/tv.inputdevice.",n.message),[3,4];case 4:return[2]}}))}))};t.getKeyCode=function(e){var t;return null!==(t=f.get(e))&&void 0!==t?t:null},t.initializeTizen=function(){return r(void 0,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return(e=s())?(function(e){var t=e.tvinputdevice.getSupportedKeys();t.forEach((function(e){f.set(e.name,e.code)})),u.info("Keycode map has been initialized",t)}(e),[4,d(e)]):[2];case 1:return t.sent(),[2]}}))}))}},586:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(308),t)},308:function(e,t){"use strict";function n(e,t,n){var r;if(!n)return e;var o=t.find((function(e){return e.id===n})),i=null===(r=null==o?void 0:o.survey)||void 0===r?void 0:r.age,a=(null==i?void 0:i.kidsOnly)?"kids":"adults";return e.filter((function(e){var t=e.showForUserProfileType;return!t||t[a]}))}Object.defineProperty(t,"__esModule",{value:!0}),t.filterScreensForProfileId=t.filterScreensBasedOnActiveUserProfile=void 0,t.filterScreensBasedOnActiveUserProfile=function(e,t){var r,o;return n(e,null!==(r=null==t?void 0:t.profiles)&&void 0!==r?r:[],null!==(o=null==t?void 0:t.activeUserProfileId)&&void 0!==o?o:null)},t.filterScreensForProfileId=n},877:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useT=t.useI18n=void 0;var r=n(156),o=n(799);t.useI18n=function(){return(0,r.useContext)(o.I18nContext).i18n},t.useT=function(){var e=(0,t.useI18n)();return e?e.t.bind(e):function(e){return e}}},799:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.I18nContextProvider=t.I18nContext=void 0;var u=a(n(88)),s=i(n(156)),c=n(405),l=n(71),f=new c.Logger("language");t.I18nContext=(0,s.createContext)({i18n:null}),t.I18nContextProvider=function(e){var n=e.children,r=e.translations,o=(0,s.useState)({i18n:null}),i=o[0],a=o[1],c=(0,s.useContext)(l.LanguageContext).language;return(0,s.useLayoutEffect)((function(){f.info("initializing language",c),function(e,t){return new Promise((function(n,r){n(u.default.createInstance({lng:t,resources:e},(function(e){e&&r(e)})))}))}(r,c).then((function(e){a({i18n:e})}))}),[]),(0,s.useLayoutEffect)((function(){i.i18n&&(f.info("changing language",c),i.i18n.changeLanguage(c),a({i18n:i.i18n}))}),[c]),s.default.createElement(t.I18nContext.Provider,{value:i},n)}},250:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(877),t),o(n(799),t),o(n(71),t),o(n(164),t)},71:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageContextProvider=t.LanguageContext=void 0;var a=n(718),u=i(n(156)),s=n(405),c=n(116),l=new s.Logger("language");t.LanguageContext=(0,u.createContext)({language:a.LangCode.EN,selectLanguage:function(){}}),t.LanguageContextProvider=function(e){var n=e.language,r=e.children,o=(0,u.useState)((0,c.normalizeLanguage)(n)),i=o[0],a=o[1];(0,u.useLayoutEffect)((function(){var e=(0,c.normalizeLanguage)(n);a(e),l.info("Setting language (passed as prop): ".concat(e," (before normalization: ").concat(n,")"))}),[n]);var s=(0,u.useCallback)((function(e){l.info("Setting language: ".concat(e)),a(e)}),[]);return u.default.createElement(t.LanguageContext.Provider,{value:{language:i,selectLanguage:s}},r)}},164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},116:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLanguage=void 0;var r=n(718),o=new(n(405).Logger)("i18n");t.normalizeLanguage=function(e){if(null==e)return r.LangCode.EN;var t=e.toLocaleLowerCase();return"cs"===t||"cz"===t||"cze"===t||"ces"===t?r.LangCode.CS:"sk"===t||"slk"===t||"slo"===t?r.LangCode.SK:("en"===t||"eng"===t||o.warn("Unrecognized language (input: ".concat(e,"). Falling back to ENG")),r.LangCode.EN)}},368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageContextProviderProps=t.I18nContextProviderProps=t.I18nContextProvider=t.LanguageContextProvider=t.useT=t.filterScreensForProfileId=t.filterScreensBasedOnActiveUserProfile=void 0;var i=n(21);o(n(405),t);var a=n(586);Object.defineProperty(t,"filterScreensBasedOnActiveUserProfile",{enumerable:!0,get:function(){return a.filterScreensBasedOnActiveUserProfile}}),Object.defineProperty(t,"filterScreensForProfileId",{enumerable:!0,get:function(){return a.filterScreensForProfileId}});var u=n(250);Object.defineProperty(t,"useT",{enumerable:!0,get:function(){return u.useT}}),Object.defineProperty(t,"LanguageContextProvider",{enumerable:!0,get:function(){return u.LanguageContextProvider}}),Object.defineProperty(t,"I18nContextProvider",{enumerable:!0,get:function(){return u.I18nContextProvider}}),Object.defineProperty(t,"I18nContextProviderProps",{enumerable:!0,get:function(){return u.I18nContextProviderProps}}),Object.defineProperty(t,"LanguageContextProviderProps",{enumerable:!0,get:function(){return u.LanguageContextProviderProps}}),o(n(302),t),(0,i.polyfill)()},21:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyfill=void 0,t.polyfill=function(){"object"==typeof window&&"object"==typeof document&&window.addEventListener("load",(function(){var e=document.createElement("script");e.src="https://polyfill.io/v3/polyfill.min.js?features=String.prototype.normalize",e.id="tivio-polyfill-string-prototype-normalize",document.head.appendChild(e)}))}},122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomItem=t.addOrReplace=t.replaceWithoutOverwritingValues=t.chunkArray=t.uniqueFilter=t.notEmptyFilter=void 0,t.notEmptyFilter=function(e){return!!e},t.uniqueFilter=function(e,t,n){return n.indexOf(e)===t},t.chunkArray=function(e,t){var n,r=e.length,o=[];for(n=0;n<r;n+=t){var i=e.slice(n,n+t);o.push(i)}return o},t.replaceWithoutOverwritingValues=function(e,t,n){var r=[];return t.forEach((function(t){var o=e.find((function(e){return n(t,e)}));r.push(null!=o?o:t)})),r},t.addOrReplace=function(e,t,n){void 0===n&&(n=function(e,t){return e===t});var r=e.findIndex((function(e){return n(t,e)}));return-1!==r?e[r]=t:e.push(t),e},t.getRandomItem=function(e){return e.length?e[Math.floor(Math.random()*e.length)]:null}},39:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transparentOnePixel=void 0,t.transparentOnePixel="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSJVByuIOmSoThZERRy1CkWoEGqFVh1MLv0QmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQq3ENKttDNB020wl4mImuyKGXhFGH7oxiIDMLGNWkpLwHV/3CPD1Lsaz/M/9ObrUnMWAgEg8wwzTJl4nntq0Dc77xBFWlFXic+JRky5I/Mh1xeM3zgWXBZ4ZMdOpOeIIsVhoYaWFWdHUiCeJo6qmU76Q8VjlvMVZK1VY4578heGcvrzEdZpDSGABi5AgQkEFGyjBRoxWnRQLKdqP+/gHXL9ELoVcG2DkmEcZGmTXD/4Hv7u18hPjXlI4DrS/OM7HMBDaBepVx/k+dpz6CRB8Bq70pr9cA6Y/Sa82tegR0LMNXFw3NWUPuNwB+p8M2ZRdKUhTyOeB9zP6pizQewt0rnq9NfZx+gCkqavkDXBwCIwUKHvN590drb39e6bR3w8rGHKKfOy+ZAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+YMFQ4bMCuPzq8AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAC0lEQVQI12NgAAIAAAUAAeImBZsAAAAASUVORK5CYII="},741:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0;var n=function(){function e(e){var t,n;this.enabled=!0,this.map=new Map,this.max=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:1e3,this.convertKey=null!==(n=null==e?void 0:e.convertKey)&&void 0!==n?n:function(e){return e}}return e.prototype.set=function(e,t){this.enabled&&(this.map.size>this.max&&this.map.clear(),this.map.set(this.convertKey(e),t))},e.prototype.get=function(e){var t;return null!==(t=this.map.get(this.convertKey(e)))&&void 0!==t?t:null},e.prototype.has=function(e){return!!this.enabled&&this.map.has(this.convertKey(e))},e.prototype.getSize=function(){return this.map.size},e.prototype.disable=function(){this.enabled=!1},e}();t.Cache=n},530:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.onceAsync=t.once=void 0,t.once=function(e){var t=!1,n=null;return function(){return t||(n=e(),t=!0),n}},t.onceAsync=function(e){var t=!1,o=null;return function(){return n(void 0,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return t?[2,o]:(t=!0,[4,e()]);case 1:return[2,o=n.sent()]}}))}))}}},742:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.dateComparator=t.stringComparator=t.booleanComparator=t.numberComparator=t.BooleanSortDirection=t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(n=t.SortDirection||(t.SortDirection={})),function(e){e.TRUE_FIRST="TRUE_FIRST",e.FALSE_FIRST="FALSE_FIRST"}(r=t.BooleanSortDirection||(t.BooleanSortDirection={})),t.numberComparator=function(e,t,r){return void 0===r&&(r=n.ASC),r===n.ASC?e-t:t-e},t.booleanComparator=function(e,o,i){return void 0===i&&(i=n.DESC),i===r.TRUE_FIRST?i=n.DESC:i===r.FALSE_FIRST&&(i=n.ASC),(0,t.numberComparator)(Number(e),Number(o),i)},t.stringComparator=function(e,t){return e<t?-1:1},t.dateComparator=function(e,r,o){return void 0===o&&(o=n.ASC),(0,t.numberComparator)(e.getTime(),r.getTime(),o)}},569:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(742),t),o(n(900),t),o(n(482),t)},900:function(e,t,n){"use strict";var r,o=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.strategiesComparator=t.expirationComparator=t.placementTypeComparator=t.PLACEMENT_TYPE_PRIORITIES=void 0;var i=n(146),a=o(n(160)),u=n(742);t.PLACEMENT_TYPE_PRIORITIES=((r={})[i.MonetizationPlacementType.TV_CHANNEL]=4,r[i.MonetizationPlacementType.VIDEO]=3,r[i.MonetizationPlacementType.CONDITION]=2,r[i.MonetizationPlacementType.SECTION]=1,r[i.MonetizationPlacementType.CHANNEL]=0,r),t.placementTypeComparator=function(e,n,r){return void 0===r&&(r=u.SortDirection.DESC),(0,u.numberComparator)(t.PLACEMENT_TYPE_PRIORITIES[e.placementType],t.PLACEMENT_TYPE_PRIORITIES[n.placementType],r)},t.expirationComparator=function(e,t,n){var r,o;return void 0===n&&(n=u.SortDirection.ASC),(0,u.numberComparator)(null!==(r=e.expirationDaysSincePublished)&&void 0!==r?r:Number.MAX_VALUE,null!==(o=t.expirationDaysSincePublished)&&void 0!==o?o:Number.MAX_VALUE,n)},t.strategiesComparator=function(e,t){return(0,u.numberComparator)((0,a.default)(e.strategies)?0:1,(0,a.default)(t.strategies)?0:1,u.SortDirection.ASC)}},482:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalsFirstRestAlphabeticallyComparator=t.alphabeticComparator=t.sortAlphabetically=void 0;var r=n(742);t.sortAlphabetically=function(e){return e.sort((function(e,t){return(0,r.stringComparator)(e.name,t.name)}))},t.alphabeticComparator=function(e,t){return(0,r.stringComparator)(e.name,t.name)},t.globalsFirstRestAlphabeticallyComparator=function(e,t){var n,o;return(0,r.booleanComparator)(null!==(n=e.isGlobal)&&void 0!==n&&n,null!==(o=t.isGlobal)&&void 0!==o&&o)||(0,r.stringComparator)(e.name,t.name)}},484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideDevice=t.isWebsite=t.isWebos=t.isTv=t.isTizen=t.isTabletBrowser=t.isWebTv=t.isSafari=t.isReactNative=t.isNewArris=t.isNativeTablet=t.isNativeMobile=t.isMobileBrowser=t.isLocalStorageEnabled=t.isIos=t.isIndexedDbSupported=t.isCookiesEnabled=t.isBrowserCompatible=t.isArris=t.getOsType=t.getDeviceInfo=t.getArrisModelNumber=t.MOBILE_OPERATING_SYSTEMS=t.TV_OPERATING_SYSTEMS=void 0;var r=n(718),o=n(924),i="undefined";t.TV_OPERATING_SYSTEMS=["Tizen","webOS","Android TV","tvOS"],t.MOBILE_OPERATING_SYSTEMS=["iOS","Android OS","BlackBerry OS","Windows Mobile","Amazon OS"];var a=function(){return typeof window!==i&&typeof document!==i};t.isBrowserCompatible=a,t.isMobileBrowser=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},t.isTabletBrowser=function(){var e,t=null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.toLowerCase();return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(t)};var u=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product};t.isReactNative=u,t.isNativeMobile=function(){var e=h();return u()&&(null==e?void 0:e.platform)===r.PLATFORM.MOBILE&&!(null==e?void 0:e.isTablet)},t.isNativeTablet=function(){var e;return u()&&(null===(e=h())||void 0===e?void 0:e.isTablet)},t.isCookiesEnabled=function(){if(!a()||"string"!=typeof document.cookie)return!1;document.cookie="tiviocookietest=1";var e=-1!=document.cookie.indexOf("tiviocookietest=");return document.cookie="tiviocookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e},t.isLocalStorageEnabled=function(){if(!a()||typeof window.localStorage===i)return!1;var e="tiviolocalstoragetest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}};var s=function(){return a()&&typeof window.tizen!==i};t.isTizen=s;var c=function(){return a()&&typeof window.webOS!==i};t.isWebos=c;var l=function(){var e;return"arris"===(null===(e=d.info)||void 0===e?void 0:e.type)||a()&&typeof window.toi!==i};t.isArris=l;var f=function(){return s()||c()||l()};t.isWebTv=f,t.isTv=function(){var e;return(null===(e=h())||void 0===e?void 0:e.platform)===r.PLATFORM.TV},t.isWebsite=function(){return!!a()&&(window.tivioDeviceOverride?"web"===window.tivioDeviceOverride:!f()&&!u())},t.isIndexedDbSupported=function(){return window&&null!=window.indexedDB&&null!=window.IDBCursor&&null!=window.IDBCursorWithValue&&null!=window.IDBDatabase&&null!=window.IDBFactory&&null!=window.IDBIndex&&null!=window.IDBKeyRange&&null!=window.IDBObjectStore&&null!=window.IDBOpenDBRequest&&null!=window.IDBRequest&&null!=window.IDBTransaction&&null!=window.IDBVersionChangeEvent},t.isSafari=function(){var e=(0,o.detect)();return"safari"==(null==e?void 0:e.name)},t.isIos=function(){var e=(0,o.detect)();return"iOS"==(null==e?void 0:e.os)};var d={info:null};t.overrideDevice=function(e){d.info=e};var p=function(e){var t=e.replace("VIP",""),n=parseInt(t);return Number.isFinite(n)?n:null};t.getArrisModelNumber=p;var h=function(){if(d.info)switch(d.info.type){case"arris":return{os:"Arris",platform:r.PLATFORM.TV};case"react-native":if(!d.info.os)break;return"Android OS"===(e=d.info.os)?e=d.info.platform===r.PLATFORM.TV?"Android TV":"Android OS":"iOS"===e&&(e=d.info.platform===r.PLATFORM.TV?"tvOS":"iOS"),{os:e,version:d.info.osVersion,platform:d.info.platform,isTablet:d.info.isTablet};default:console.warn("Unexpected device info object ".concat(JSON.stringify(d.info)))}return s()?{os:"Tizen",platform:r.PLATFORM.TV}:c()?{os:"webOS",platform:r.PLATFORM.TV}:l()?{os:"Arris",platform:r.PLATFORM.TV}:(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(e=(0,o.detectOS)(navigator.userAgent))?{os:e,platform:r.PLATFORM.WEB}:void 0;var e};t.getDeviceInfo=h,t.isNewArris=function(e){var t;if(!e)return!1;if("arris"!==e.type)return!1;var n=p(null!==(t=e.model)&&void 0!==t?t:"");return null!=n&&n>=4e3},t.getOsType=function(e){return t.TV_OPERATING_SYSTEMS.includes(e)?"tv":t.MOBILE_OPERATING_SYSTEMS.includes(e)?"mobile":"desktop"}},174:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectScriptToHead=t.injectScriptsToHead=void 0;var o=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(){return t()},r.onabort=function(){return n()},document.getElementsByTagName("head")[0].appendChild(r)}))};t.injectScriptToHead=o,t.injectScriptsToHead=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,Promise.all(e.map(o))]}))}))}},447:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeAsNewEventLoopJob=void 0,t.executeAsNewEventLoopJob=function(e){setTimeout(e)}},479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatCurrency=t.formatEpisode=t.toTwoPlaces=t.msToMMSS=t.msToMinutesString=void 0;var n=function(e){return e<10?"0".concat(e):"".concat(e)};t.toTwoPlaces=n,t.formatEpisode=function(e,t){return"S".concat(n(e),"E").concat(n(t))},t.formatCurrency=function(e){switch(e){case"CZK":return"Kč";case"EUR":return"€";case"USD":return"$"}};var r=function(e){var t=Math.floor(e/1e3);return{minutes:Math.floor(t/60),seconds:t%60}};t.msToMinutesString=function(e){var t=r(e).minutes;return"".concat(t," min")},t.msToMMSS=function(e){var t=r(e),o=t.minutes,i=t.seconds;return"".concat(o,":").concat(n(i))}},128:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isElementOverflown=void 0,t.isElementOverflown=function(e){return e&&(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight)}},513:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preloadImages=t.preloadImage=void 0,t.preloadImage=function(e){return new Promise((function(t,n){var r=new Image;r.src=e,r.onload=t,r.onerror=function(){n("image failed to load (uri:".concat(e,")"))}}))},t.preloadImages=function(e){return Promise.all(e.map(t.preloadImage))}},405:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(122),t),o(n(39),t),o(n(741),t),o(n(530),t),o(n(569),t),o(n(484),t),o(n(174),t),o(n(447),t),o(n(479),t),o(n(128),t),o(n(513),t),o(n(783),t),o(n(893),t),o(n(341),t),o(n(647),t),o(n(40),t),o(n(956),t),o(n(821),t),o(n(369),t),o(n(215),t)},783:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.createLogger=void 0;var o=n(484),i=function(){function e(e){this.name=e,this._isEnabled=!0}return e.initialize=function(){(0,o.isBrowserCompatible)()&&(window.onerror=function(t){var n,r;"string"==typeof t?null===(n=e.onLog)||void 0===n||n.call(e,"error",{text:[t]}):null===(r=e.onLog)||void 0===r||r.call(e,"error",{classic:[t]})})},e.shouldUseLegacyLogger=function(){return e.legacy||(0,o.isArris)()},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("error",{classic:e})},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("warn",{classic:e})},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("info",{classic:e})},e.prototype.safeError=function(e){this.safeLog("error",e)},e.prototype.safeWarn=function(e){this.safeLog("warn",e)},e.prototype.safeInfo=function(e){this.safeLog("info",e)},e.prototype.safeLog=function(t,n){var r,o,i,a;this._isEnabled&&e.onLog&&(a=null!==(r=n.text)&&void 0!==r?r:n.classic)&&e.onLog(t,n),this.isEnabled()&&(e.shouldUseLegacyLogger()?(a=null!==(o=n.text)&&void 0!==o?o:(null!==(i=n.classic)&&void 0!==i?i:[]).map((function(e){return null==e?"falsy":e})).map((function(e){return JSON.stringify(e)}))).length>0&&this.legacyConsoleLogMessages(t,a):n.classic&&n.classic.length>0?this.log(t,n.classic):n.text&&n.text.length>0&&this.log(t,n.text))},e.prototype.off=function(){this._isEnabled=!1},e.prototype.on=function(){this._isEnabled=!0},e.prototype.forceInfo=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];console.info.apply(console,r(["".concat(e.prefix,":").concat(this.name)],t,!1))},e.prototype.isEnabled=function(){return e.enabled&&this._isEnabled},e.prototype.log=function(e,t){console[e].apply(console,r([this.getPrefix()],t,!1))},e.prototype.legacyConsoleLogMessages=function(e,t){var n=t.join(", ");console[e]("".concat(this.getPrefix()," ").concat(n))},e.prototype.getPrefix=function(){return"".concat(e.prefix,":").concat(this.name)},e.enabled=!0,e.legacy=!1,e.onLog=null,e.prefix="tivio",e}();t.Logger=i,i.initialize(),t.createLogger=function(e){return new i(e)}},893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toPercent=t.safeParseInt=t.round=t.random=t.keepNonNegative=t.isClose=t.intervalContainsPoint=t.intervalContains=t.getRandomNumberWithFixedLength=t.getPercentOf=t.clampPercent=t.clamp=t.roundWithStep=void 0,t.random=function(e){return Math.round(Math.random()*e)},t.getRandomNumberWithFixedLength=function(e){var t=Math.pow(10,e-1),n=Math.pow(10,e)-1;return Math.floor(Math.random()*(n-t+1))+t},t.safeParseInt=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)};var n=function(e,t,n){return Math.min(Math.max(e,t),n)};t.clamp=n;var r=function(e){return n(e,0,100)};t.clampPercent=r,t.toPercent=function(e){return r(Math.round(100*e))},t.round=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},t.roundWithStep=function(e,t){return Math.round(e/t)*t},t.intervalContains=function(e,t){return e.from<t.from&&t.to<e.to},t.intervalContainsPoint=function(e,t){return e.from<=t&&t<=e.to},t.isClose=function(e,t,n){return Math.abs(e-t)<=n},t.getPercentOf=function(e,t){var n=Math.round(e/t*100);return isFinite(n)?r(n):null},t.keepNonNegative=function(e){return Math.max(0,e)}},341:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToInteger=void 0,t.stringToInteger=function(e){return e&&Number.isInteger(Number(e))?Number(e):null}},647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.truncateText=t.capitalizeText=t.removeNonAlphanumericChars=t.normalizeText=t.toKebabCase=t.toSnakeCase=t.removeAccents=void 0,t.removeAccents=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},t.toSnakeCase=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"_").replace("-","_")},t.toKebabCase=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"-").replace("_","-")},t.normalizeText=function(e,n){void 0===n&&(n="snake-case");var r=(0,t.removeAccents)(e);return"snake-case"===n?(0,t.toSnakeCase)(r):(0,t.toKebabCase)(r)},t.removeNonAlphanumericChars=function(e,t){return e.replace(new RegExp("[^0-9a-zA-Z".concat(t,"]"),"g"),"")},t.capitalizeText=function(e){return(null==e?void 0:e.length)?e.charAt(0).toUpperCase()+e.substring(1).toLowerCase():""},t.truncateText=function(e,t){return e.length<=t?e:"".concat(e.slice(0,t),"...")}},40:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.generateConsecutiveDates=t.formatDuration=t.calendarDateDiff=t.getSemanticDate=t.getISODuration=t.isLessThanOneMonthBeforeToday=t.secondsToMilliseconds=t.getRelativeTime=t.getDuration=t.getMinsSecsHours=t.getMinsSecs=t.twoPlaces=t.getHours=t.getMins=t.getSecs=t.parseCzechDate=t.isInThePast=t.addSeconds=t.addMs=t.addMinutes=t.addHours=t.addDays=t.getCurrentTime=void 0;var o=n(718),i=r(n(879)),a=r(n(945)),u=r(n(30));function s(e,t){return c(e,60*t)}function c(e,t){return f(e,60*t)}function l(e,t){return new Date(e.getTime()+t)}function f(e,t){return l(e,1e3*t)}function d(e,t){var n=null!=e?Math.floor(e/1e3):0;return t?n%60:n}function p(e,t){var n=null!=e?Math.floor(d(e)/60):0;return t?n%60:n}function h(e,t){var n=null!=e?Math.floor(p(e)/60):0;return t?n%24:n}function v(e){return e>=10?e:"0".concat(e)}i.default.extend(a.default),t.getCurrentTime=function(){return(0,i.default)()},t.addDays=function(e,t){return s(e,24*t)},t.addHours=s,t.addMinutes=c,t.addMs=l,t.addSeconds=f,t.isInThePast=function(e){return(0,i.default)(e).isBefore((0,i.default)())},t.parseCzechDate=function(e){var t=(0,i.default)(e,"D.M.YYYY H:mm").toDate(),n=1e3*t.getSeconds()+t.getMilliseconds();return new Date(t.getTime()-n)},t.getSecs=d,t.getMins=p,t.getHours=h,t.twoPlaces=v,t.getMinsSecs=function(e){if(e<0)return{mins:0,secs:0,text:"",textWordy:""};var t=p(e),n=d(e,!0),r="";return n&&(r="".concat(n," s")),t&&(r="".concat(t," min").concat(r.length>0?" "+r:"")),{mins:t,secs:n,text:"".concat(t,":").concat(v(n)),textWordy:r}},t.getMinsSecsHours=function(e){var t=h(e),n=p(e,!0),r=d(e,!0),o="".concat(n,":").concat(v(r));return t>0&&(4===o.length&&(o="0".concat(o)),o="".concat(t,":").concat(o)),{hours:t,mins:n,secs:r,text:o}},t.getDuration=function(e){if(null==e||e<0)return null;var t=Math.round(e/60);return"".concat(t," MIN")},t.getRelativeTime=function(e){if(null==e)return"";var t=((new Date).getTime()-e.getTime())/36e5,n=Math.floor(t);if(n<1)return"";if(n<24)return"".concat(n," HOURS AGO");var r=t/24,o=Math.floor(r);if(o<7)return"".concat(o," DAYS AGO");var i=r/7,a=Math.floor(i);if(a<5)return"".concat(a," WEEKS AGO");var u=r/30,s=Math.floor(u);if(s<12)return"".concat(s," MONTHS AGO");var c=r/365,l=Math.ceil(c);return"".concat(l," YEARS AGO")},t.secondsToMilliseconds=function(e){return null==e?null:1e3*Number(e)},t.isLessThanOneMonthBeforeToday=function(e){return i.default.extend(u.default),(0,i.default)(e).isBetween((0,i.default)().subtract(1,"month").startOf("day"),(0,i.default)().endOf("day"),"day","[]")},t.getISODuration=function(e){if(e<1)return"PT0S";var t=new Date(e),n=[["Y",t.getUTCFullYear()-1970],["M",t.getUTCMonth()],["D",t.getUTCDate()-1],["T",null],["H",t.getUTCHours()],["M",t.getUTCMinutes()],["S",t.getUTCSeconds()]].reduce((function(e,t){var n=t[0],r=t[1];return r?e+="".concat(r).concat(n):"T"===n&&(e+=n),e}),"");return n=n.endsWith("T")?n.slice(0,-1):n,"P".concat(n)};var y={"-1":o.SemanticDate.YESTERDAY,0:o.SemanticDate.TODAY,1:o.SemanticDate.TOMORROW};t.getSemanticDate=function(e,n){var r;void 0===n&&(n="DD.MM.YYYY");var o=(0,t.calendarDateDiff)(e,(0,i.default)());return null!==(r=y[o])&&void 0!==r?r:(0,i.default)(e).format(n)},t.calendarDateDiff=function(e,t,n){void 0===n&&(n="day");var r=(0,i.default)(e).startOf(n),o=(0,i.default)(t).startOf(n);return r.diff(o,n)},t.formatDuration=function(e,t,n){var r=(0,i.default)().startOf("day").add(e,t),o="",a=null!=n?n:{},u=a.hour,s=void 0===u?"h":u,c=a.minute,l=void 0===c?"m":c,f=a.seconds,d=void 0===f?"s":f;return r.hour()>0&&(o+="H[".concat(s,"] ")),r.minute()>0&&(o+="m[".concat(l,"]")),0===r.hour()&&0===r.minute()&&(o="s[".concat(d,"]")),o?r.format(o):""},t.generateConsecutiveDates=function(e,t,n){return void 0===t&&(t=(0,i.default)()),void 0===n&&(n="day"),Array.from(Array(e).keys()).map((function(e){return t.add(e,n).startOf(n)}))}},821:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.httpsToHttp=void 0,t.httpsToHttp=function(e){return e.replace(/^https:/,"http:")}},956:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNameAbbreviation=void 0,t.getNameAbbreviation=function(e){return e.split(" ").map((function(e){return e.charAt(0).toUpperCase()})).join("")}},369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canBeVideoId=void 0,t.canBeVideoId=function(e){return!e.includes("-")||20===e.length}},215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spacing=t.size=t.viewport=t.getViewport=void 0;var r=n(484);t.getViewport=function(){var e=(0,r.isBrowserCompatible)()?Math.max(document.documentElement.clientWidth||0,window.innerWidth||0):0,t=(0,r.isBrowserCompatible)()?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0):0;return{width:e,height:t,scaling:t?t/1080:1}};var o=function(e){return Math.floor(e*t.viewport.scaling)};t.size=o,t.spacing=function(e){return o(8*e)},t.viewport=(0,t.getViewport)()},156:function(e){"use strict";e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}return n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=function(e){return e.paths=[],e.children||(e.children=[]),e},n(368)}())},8741:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid",e.TIVIO_ADS="tivio-ads",e.JOJ_TEST_AD_FORM_PROGRAMMATIC="joj-test-ad-form-programmatic",e.JOJ_TEST_TESTER_VASTERIX="joj-test-tester-vasterix",e.JOJ_TEST_TESTER_ADFORM_30="joj-test-tester-adform-30"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Tivio fake ads - always working",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0},{id:n.JOJ_TEST_AD_FORM_PROGRAMMATIC,name:"JOJ Test AdForm Programmatic"},{id:n.JOJ_TEST_TESTER_VASTERIX,name:"JOJ Test Vasterix"},{id:n.JOJ_TEST_TESTER_ADFORM_30,name:"JOJ Test Adform 30"},{id:n.TIVIO_ADS,name:"Tivio Ads"}].sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},87:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},690:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomerId=void 0,(n=t.CustomerId||(t.CustomerId={})).OKTAGON="OKTAGON",n.JOJ="JOJ",n.MALL="MALL",n.GARAZ="GARAZ",n.U_KULATEHO_STOLU="U_KULATEHO_STOLU",n.INVESTOREES="INVESTOREES",n.DVTV="DVTV",n.DVTV_DEV="DVTV_DEV",n.O2="O2",n.GRAPE="GRAPE",n.TIVIO="TIVIO",n.STORYBOOK="STORYBOOK",n.NANGU_DEV="NANGU_DEV"},801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV"},123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(87),t),o(n(304),t),o(n(690),t),o(n(801),t),o(n(495),t),o(n(2),t),o(n(123),t),o(n(589),t),o(n(889),t),o(n(703),t),o(n(743),t),o(n(407),t),o(n(757),t)},889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},743:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RegistrationRedirect=t.LoginRedirect=t.SemanticDate=t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.IT="it",e.PL="pl",e.PT="pt",e.SK="sk",e.ES="es",e.HU="hu"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}],(o=t.SemanticDate||(t.SemanticDate={})).YESTERDAY="Yesterday",o.TODAY="Today",o.TOMORROW="Tomorrow",(r=t.LoginRedirect||(t.LoginRedirect={})).PAYMENT="payment",r.VOUCHER="voucher",(t.RegistrationRedirect||(t.RegistrationRedirect={})).PAYMENT="payment"},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},360:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsConversionPage=t.AnalyticsConversionTargetBase=t.AnalyticsConversionName=t.AnalyticsConversionStatus=void 0,(i=t.AnalyticsConversionStatus||(t.AnalyticsConversionStatus={})).SUCCESS="SUCCESS",i.FAILED="FAILED",(o=t.AnalyticsConversionName||(t.AnalyticsConversionName={})).CLICK="click",o.PLAY="play",o.PURCHASE="purchase",o.VISIT="visit",(r=t.AnalyticsConversionTargetBase||(t.AnalyticsConversionTargetBase={})).Element="element",r.Monetization="monetization",(n=t.AnalyticsConversionPage||(t.AnalyticsConversionPage={})).Videos="videos",n.Series="series",n.Profile="profile",n.Tags="tags",n.Screens="screens",n.Registration="registration",n.Login="login",n.About="about",n.ResetPassword="reset-password",n.Player="player",n.Redeem="redeem",n.Referral="referral",n.Pair="pair",n.Search="search"},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},90:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenReason=void 0,(n=t.ForbiddenReason||(t.ForbiddenReason={})).MONETIZATION="MONETIZATION",n.GEO_BLOCKING="GEO_BLOCKING"},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(396),t),o(n(360),t),o(n(826),t),o(n(202),t),o(n(129),t),o(n(90),t),o(n(959),t),o(n(910),t),o(n(726),t),o(n(523),t),o(n(738),t),o(n(535),t),o(n(161),t),o(n(605),t),o(n(190),t),o(n(614),t),o(n(656),t),o(n(906),t),o(n(363),t),o(n(948),t),o(n(635),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.HALF_ANNUALLY="HALF_ANNUALLY",n.ANNUALLY="ANNUALLY"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},726:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DurationUnits=void 0,(n=t.DurationUnits||(t.DurationUnits={})).DAY="day",n.MONTH="month"},523:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate"},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.BannerItemComponent=t.RowComponent=void 0,(i=t.RowComponent||(t.RowComponent={})).ROW="ROW",i.BANNER="BANNER",(o=t.BannerItemComponent||(t.BannerItemComponent={})).CLASSIC="CLASSIC",o.SPLIT="SPLIT",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",r.ROW_ITEM_BANNER="ROW_ITEM_BANNER",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL",n.ADVERTISEMENT="ADVERTISEMENT"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR",n.BLOCKED="BLOCKED"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.CUT="CUT",n.TRAILER="TRAILER",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t),o(n(620),t)},620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},8879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",u="week",s="month",c="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|Y{1,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,v={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},y=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},g={s:y,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+y(r,2,"0")+":"+y(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,s),i=n-o<0,a=t.clone().add(r+(i?-1:1),s);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:s,y:l,w:u,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",m={};m[b]=v;var _=function(e){return e instanceof S},w=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();m[i]&&(o=i),n&&(m[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var u=t.name;m[u]=t,o=u}return!r&&o&&(b=o),o||!r&&b},O=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},P=g;P.l=w,P.i=_,P.w=function(e,t){return O(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function v(e){this.$L=w(e.locale,null,!0),this.parse(e)}var y=v.prototype;return y.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(P.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},y.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},y.$utils=function(){return P},y.isValid=function(){return!(this.$d.toString()===d)},y.isSame=function(e,t){var n=O(e);return this.startOf(t)<=n&&n<=this.endOf(t)},y.isAfter=function(e,t){return O(e)<this.startOf(t)},y.isBefore=function(e,t){return this.endOf(t)<O(e)},y.$g=function(e,t,n){return P.u(e)?this[t]:this.set(n,e)},y.unix=function(){return Math.floor(this.valueOf()/1e3)},y.valueOf=function(){return this.$d.getTime()},y.startOf=function(e,t){var n=this,c=!!P.u(t)||t,d=P.p(e),p=function(e,t){var r=P.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},h=function(e,t){return P.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},v=this.$W,y=this.$M,g=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case l:return c?p(1,0):p(31,11);case s:return c?p(1,y):p(0,y+1);case u:var m=this.$locale().weekStart||0,_=(v<m?v+7:v)-m;return p(c?g-_:g+(6-_),y);case a:case f:return h(b+"Hours",0);case i:return h(b+"Minutes",1);case o:return h(b+"Seconds",2);case r:return h(b+"Milliseconds",3);default:return this.clone()}},y.endOf=function(e){return this.startOf(e,!1)},y.$set=function(e,t){var u,c=P.p(e),d="set"+(this.$u?"UTC":""),p=(u={},u[a]=d+"Date",u[f]=d+"Date",u[s]=d+"Month",u[l]=d+"FullYear",u[i]=d+"Hours",u[o]=d+"Minutes",u[r]=d+"Seconds",u[n]=d+"Milliseconds",u)[c],h=c===a?this.$D+(t-this.$W):t;if(c===s||c===l){var v=this.clone().set(f,1);v.$d[p](h),v.init(),this.$d=v.set(f,Math.min(this.$D,v.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},y.set=function(e,t){return this.clone().$set(e,t)},y.get=function(e){return this[P.p(e)]()},y.add=function(n,c){var f,d=this;n=Number(n);var p=P.p(c),h=function(e){var t=O(d);return P.w(t.date(t.date()+Math.round(e*n)),d)};if(p===s)return this.set(s,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return h(1);if(p===u)return h(7);var v=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,y=this.$d.getTime()+n*v;return P.w(y,this)},y.subtract=function(e,t){return this.add(-1*e,t)},y.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=P.z(this),i=this.$H,a=this.$m,u=this.$M,s=n.weekdays,c=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return P.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:u+1,MM:P.s(u+1,2,"0"),MMM:l(n.monthsShort,u,c,3),MMMM:l(c,u),D:this.$D,DD:P.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,s,2),ddd:l(n.weekdaysShort,this.$W,s,3),dddd:s[this.$W],H:String(i),HH:P.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:P.s(a,2,"0"),s:String(this.$s),ss:P.s(this.$s,2,"0"),SSS:P.s(this.$ms,3,"0"),Z:o};return r.replace(h,(function(e,t){return t||v[e]||o.replace(":","")}))},y.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},y.diff=function(n,f,d){var p,h=P.p(f),v=O(n),y=(v.utcOffset()-this.utcOffset())*e,g=this-v,b=P.m(this,v);return b=(p={},p[l]=b/12,p[s]=b,p[c]=b/3,p[u]=(g-y)/6048e5,p[a]=(g-y)/864e5,p[i]=g/t,p[o]=g/e,p[r]=g/1e3,p)[h]||g,d?b:P.a(b)},y.daysInMonth=function(){return this.endOf(s).$D},y.$locale=function(){return m[this.$L]},y.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=w(e,t,!0);return r&&(n.$L=r),n},y.clone=function(){return P.w(this.$d,this)},y.toDate=function(){return new Date(this.valueOf())},y.toJSON=function(){return this.isValid()?this.toISOString():null},y.toISOString=function(){return this.$d.toISOString()},y.toString=function(){return this.$d.toUTCString()},v}(),E=S.prototype;return O.prototype=E,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",s],["$y",l],["$D",f]].forEach((function(e){E[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),O.extend=function(e,t){return e.$i||(e(t,S,O),e.$i=!0),O},O.locale=w,O.isDayjs=_,O.unix=function(e){return O(1e3*e)},O.en=m[b],O.Ls=m,O.p={},O}()},6916:function(e,t,n){e.exports=function(){"use strict";var e=n(1350),t=Function.bind.call(Function.call,Array.prototype.reduce),r=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),o=Function.bind.call(Function.call,Array.prototype.concat);return Object.values||(Object.values=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[n[t]]:[])}),[])}),Object.entries||(Object.entries=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[[t,n[t]]]:[])}),[])}),Object}()},1350:function(e){"object"==typeof Reflect&&"function"==typeof Reflect.ownKeys?e.exports=Reflect.ownKeys:"function"==typeof Object.getOwnPropertySymbols?e.exports=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:e.exports=Object.getOwnPropertyNames},3996:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextProvider=void 0;var o=r(n(8156));t.ContextProvider=function(e){var t=e.bundleState,n=e.children,r=t.internal;return(null==r?void 0:r.providers)?o.default.createElement(r.providers.UserContextProvider,null,o.default.createElement(r.providers.PurchasesWithVideosContextProvider,null,n)):o.default.createElement(o.default.Fragment,null,n)}},8074:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withPlayerContext=t.PlayerProvider=t.PlayerContext=void 0;var u=a(n(8156)),s=n(7968);t.PlayerContext=u.default.createContext(void 0),t.PlayerProvider=function(e){var n=e.children,r=e.playerWrapperId,o=c(void 0===r?"default":r),i=l(),a=u.default.createElement(t.PlayerContext.Provider,{value:o},n);return i&&(a=u.default.createElement(i.Provider,{value:{player:o}},a)),a};var c=function(e){var t,n=(0,u.useState)(null!==(t=null===s.tivioBundle||void 0===s.tivioBundle?void 0:s.tivioBundle.getters.getPlayerWrapper({playerWrapperId:e}))&&void 0!==t?t:null),r=n[0],o=n[1];return(0,u.useEffect)((function(){s.tivioBundle||s.bundlePromise.then((function(t){var n=t.getters.getPlayerWrapper({playerWrapperId:e});o(n)})).catch((function(){}))}),[e]),r},l=function(){var e=(0,u.useState)(null),t=e[0],n=e[1];return(0,u.useEffect)((function(){s.bundlePromise.then((function(e){var t,r=null===(t=e.components)||void 0===t?void 0:t.PlayerDataContext;n(r)})).catch((function(){}))}),[]),t};t.withPlayerContext=function(e){return function(n){return function(o){return u.default.createElement(t.PlayerProvider,{playerWrapperId:e},u.default.createElement(n,r({},o)))}}}},8185:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioProvider=t.TivioContext=void 0;var a=i(n(8156)),u=n(952),s=n(6111),c=n(6435),l=n(3996),f=(0,s.createUseRemoteBundle)();t.TivioContext=a.default.createContext(null),t.TivioProvider=function(e){var n,r=e.children,o=e.conf,i=(0,a.useMemo)((function(){return(0,u.createInternalConf)(o)}),[]),s=f(i);if((0,a.useEffect)((function(){!1===(null==i?void 0:i.enable)||!1===(null==i?void 0:i.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==i?void 0:i.runFeatureSupportCheck)&&"ready"===s.state&&(null===(n=s.components)||void 0===n?void 0:n.FeatureSupportCheck))return a.default.createElement(s.components.FeatureSupportCheck,null);var d="ready"===(null==s?void 0:s.state)&&s.components?a.default.createElement(s.components.Provider,{language:i.language,disableUnmounting:i.disableUnmounting},r):r;return a.default.createElement(l.ContextProvider,{bundleState:s},a.default.createElement(t.TivioContext.Provider,{value:s},d))}},5111:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidget=void 0;var a=i(n(8156)),u=n(1012),s=n(3366);t.TivioWidget=a.default.forwardRef((function(e,t){var n=e.id,r=e.onBlur,o=e.onEnabled,i=e.navigateFunction;if("string"!=typeof n||!n.length)return a.default.createElement(s.TivioWidgetError,{error:"TivioWidget must have a mandatory property 'id'."});var c=(0,u.useTivioData)(),l=c.state,f=c.error,d=c.components,p=c.config,h=p.ErrorComponent,v=p.LoaderComponent;switch((0,a.useEffect)((function(){"error"===l&&(null==o||o(!1))}),[l]),l){case"error":return a.default.createElement(h,{error:f});case"loading":return a.default.createElement(v,null);case"ready":return d?a.default.createElement(d.Widget,{id:n,ref:t,onEnabled:o,onBlur:r,navigateFunction:i}):null}}))},7107:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetApp=void 0;var o=n(8741),i=r(n(8156)),a=n(1012);t.TivioWidgetApp=i.default.forwardRef((function(e,t){var n=(0,a.useTivioData)().components;return n?i.default.createElement("div",null,i.default.createElement(n.TvApp,{customer:o.CustomerId.JOJ})):i.default.createElement(i.default.Fragment,null)}))},3366:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetError=void 0;var o=r(n(8156));t.TivioWidgetError=function(e){var t=e.error;return o.default.createElement("div",{style:{backgroundColor:"#d84f92",color:"#fff",padding:"1rem"}},t)}},8491:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetLoader=void 0;var o=r(n(8156));t.TivioWidgetLoader=function(){return o.default.createElement("div",null,"loading...")}},467:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TvTivioProvider=void 0;var a=i(n(8156)),u=n(952),s=n(6111),c=n(6435),l=n(3996),f=n(8185),d=(0,s.createUseRemoteBundle)();t.TvTivioProvider=function(e){var t,n=e.children,r=e.conf,o=(0,u.createInternalConf)(null!=r?r:null),i=d(o);return(0,a.useEffect)((function(){!1===(null==o?void 0:o.enable)||!1===(null==o?void 0:o.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==o?void 0:o.runFeatureSupportCheck)&&"ready"===i.state&&(null===(t=i.components)||void 0===t?void 0:t.FeatureSupportCheck)?a.default.createElement(i.components.FeatureSupportCheck,null):a.default.createElement(l.ContextProvider,{bundleState:i},a.default.createElement(f.TivioContext.Provider,{value:i},n))}},1012:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5545),t),o(n(8919),t),o(n(4588),t),o(n(2045),t),o(n(1530),t),o(n(8186),t),o(n(3991),t),o(n(9735),t),o(n(5382),t),o(n(6621),t),o(n(3533),t),o(n(2997),t),o(n(360),t),o(n(563),t),o(n(2700),t),o(n(2484),t),o(n(7337),t),o(n(8918),t),o(n(7571),t),o(n(7118),t)},6621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAdSegment=t.useSeekState=t.useCurrentMarker=t.useAd=t.useIntro=t.useBetOffer=t.useMarkers=t.usePlayerEvent=void 0;var r=n(8156),o=n(8074),i=n(2484);t.usePlayerEvent=function(e){var t=(0,r.useContext)(o.PlayerContext);if(void 0===t)throw new Error("usePlayerEvent must be inside PlayerContext");var n=(0,r.useState)(null),i=n[0],a=n[1];return(0,r.useEffect)((function(){if(null==t?void 0:t.events)return t.events.addListener(e,a),function(){return t.events.removeListener(e,a)}}),[null==t?void 0:t.events]),i},t.useMarkers=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useMarkers must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("markers",i),function(){return e.events.removeListener("markers",i)}}),[null==e?void 0:e.events]),n},t.useBetOffer=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useBetOffer must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("bet-offer",i),function(){return e.events.removeListener("bet-offer",i)}}),[null==e?void 0:e.events]),n},t.useIntro=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useIntro must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("intro",i),function(){return e.events.removeListener("intro",i)}}),[null==e?void 0:e.events]),n},t.useAd=function(){var e,t,n=(0,i.useTivioReadyData)();return(null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAd())&&void 0!==t?t:[null])[0]},t.useCurrentMarker=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useCurrentMarker must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("current-marker",i),function(){return e.events.removeListener("current-marker",i)}}),[null==e?void 0:e.events]),n},t.useSeekState=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useSeekState must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events){var t=function(){return i(!1)},n=function(){return i(!0)};return e.events.addListener("disable-seek",t),e.events.addListener("enable-seek",n),function(){e.events.removeListener("disable-seek",t),e.events.removeListener("enable-seek",n)}}}),[null==e?void 0:e.events]),n},t.useAdSegment=function(){var e,t,n=(0,i.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAdSegment())&&void 0!==t?t:null}},8918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useApplyInviteCode=void 0;var r=n(2484);t.useApplyInviteCode=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.useApplyInviteCode)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{applyInviteCodeResult:void 0,loading:!0,error:void 0,applyInviteCode:function(){},inviteCodeReset:function(){}}}},1530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCancelSubscription=void 0;var r=n(2484);t.useCancelSubscription=function(e){var t,n,o=(0,r.useTivioData)().hooks,i=null!==(n=null===(t=null==o?void 0:o.useCancelSubscription)||void 0===t?void 0:t.call(o,e))&&void 0!==n?n:{},a=i.cancelSubscription,u=i.cancellationInfo;return{cancelSubscription:null!=a?a:function(){return Promise.resolve()},cancellationInfo:null!=u?u:null,error:i.error}}},7118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useChannelSource=void 0;var r=n(3368);t.useChannelSource=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useChannelSource(e))&&void 0!==t?t:{error:null,source:null}}},7571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoaded=void 0;var r=n(8156),o=n(2484);t.useIsLoaded=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1],i=(0,o.useTivioData)();return(0,r.useEffect)((function(){i.getters&&i.getters.isTivioLoaded(n)}),[i]),{isTivioLoaded:t}}},2997:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMonetizationPurchased=void 0;var r=n(2484);t.useIsMonetizationPurchased=function(){var e,t=(0,r.useTivioData)().internal;return null!==(e=null==t?void 0:t.hooks.useIsMonetizationPurchased())&&void 0!==e?e:{isOneOfSubscriptionPurchased:function(){return!1}}}},2045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useItemsInRow=void 0;var r=n(2484);t.useItemsInRow=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useItemsInRow)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},3533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOrganizationSubscriptions=void 0;var r=n(2484);t.useOrganizationSubscriptions=function(e){var t,n,o=(0,r.useTivioData)().internal;return null!==(n=null===(t=null==o?void 0:o.hooks)||void 0===t?void 0:t.useOrganizationSubscriptions(e))&&void 0!==n?n:{subscriptions:[]}}},3991:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseRecovery=void 0;var r=n(2484);t.usePurchaseRecovery=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.usePurchaseRecovery)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{purchaseRecoveryResult:void 0,loading:!0,error:void 0,purchaseRecovery:function(){}}}},9735:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseSubscription=void 0;var i=n(2484);t.usePurchaseSubscription=function(e,t){var n,a,u=(0,i.useTivioData)().hooks;return null!==(a=null===(n=null==u?void 0:u.usePurchaseSubscription)||void 0===n?void 0:n.call(u,e,t))&&void 0!==a?a:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},360:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchasesWithVideos=void 0;var r=n(2484);t.usePurchasesWithVideos=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.usePurchasesWithVideos())&&void 0!==t?t:{purchases:[]}}},563:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRowsInScreen=void 0;var r=n(2484);t.useRowsInScreen=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useRowsInScreen)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},4588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSearch=void 0;var r=n(2484);t.useSearch=function(e,t){var n,o,i=(0,r.useTivioData)().hooks,a=null!==(o=null===(n=null==i?void 0:i.useSearch)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{},u=a.search,s=a.pagination,c=a.isLoading,l=a.error,f=a.lastQuery;return{search:null!=u?u:function(){return Promise.resolve()},pagination:null!=s?s:null,isLoading:null==c||c,error:null!=l?l:null,lastQuery:null!=f?f:""}}},8919:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTaggedVideos=void 0;var r=n(2484);t.useTaggedVideos=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useTaggedVideos)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},2484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTivioReadyData=t.useTivioData=void 0;var r=n(8156),o=n(8185);t.useTivioData=function(){var e=(0,r.useContext)(o.TivioContext);if(null===e)throw new Error("Make sure to wrap your app in TivioProvider");return e},t.useTivioReadyData=function(){var e=(0,t.useTivioData)();return"ready"===e.state?e:null}},8186:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTransactionPayment=void 0;var i=n(2484);t.useTransactionPayment=function(e,t,n){var a,u,s=(0,i.useTivioData)().hooks;return null!==(u=null===(a=null==s?void 0:s.useTransactionPayment)||void 0===a?void 0:a.call(s,e,t,n))&&void 0!==u?u:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},5545:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=void 0;var r=n(2484);t.useUser=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useUser())&&void 0!==t?t:{user:null,error:null,isInitialized:!1,isSignedIn:!1}}},5382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVideo=void 0;var r=n(3368);t.useVideo=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useVideo(null!=e?e:""))&&void 0!==t?t:{error:null,data:null}}},2700:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVoucher=void 0;var r=n(3368);t.useVoucher=function(e){var t=(0,r.useTivioData)().hooks,n=null==t?void 0:t.useVoucher(e);return{activate:n?n.activate:null,voucher:n?n.voucher:null,error:n?n.error:null,activationSuccess:!!n&&n.activationSuccess}}},7337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useWatchWithoutAdsOffer=void 0;var r=n(2484);t.useWatchWithoutAdsOffer=function(){var e,t,n=(0,r.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useWatchWithoutAdsOffer())&&void 0!==t?t:{canPurchaseWatchWithoutAds:!1,showPurchaseDialog:function(){}}}},952:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createInternalConf=t.defaultConf=void 0;var o=n(3366),i=n(8491),a=n(5167),u=n(8323),s=n(5883),c=n(8741);t.defaultConf={secret:"",resolverUrl:"https://tivio-resolver-production.tiv.io/serveBundle/resolver2.js",currency:"CZK",language:c.LangCode.EN,disableUnmounting:!1,fetchPackage:u.fetchPackage,pubSub:(0,s.getPubSub)(),LoaderComponent:i.TivioWidgetLoader,ErrorComponent:o.TivioWidgetError},t.createInternalConf=function(e){if(e&&null==e.currency)throw new Error(".currency is missing in Tivio config");return r(r(r(r({},t.defaultConf),null!=e?e:{}),(null==e?void 0:e.secret)?{}:{enable:!1}),{logger:void 0!==(null==e?void 0:e.logger)?e.logger:(0,a.createLogger)({isConsoleEnabled:!0}),sdkVersion:"5.0.3-alpha-3"})}},3368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=t.setUser=t.Nullable=t.Empty=t.Disposer=t.bundlePromise=t.withPlayerContext=t.PlayerProvider=void 0,n(6168),n(6916);var i=n(8074);Object.defineProperty(t,"PlayerProvider",{enumerable:!0,get:function(){return i.PlayerProvider}}),Object.defineProperty(t,"withPlayerContext",{enumerable:!0,get:function(){return i.withPlayerContext}});var a=n(7968);Object.defineProperty(t,"bundlePromise",{enumerable:!0,get:function(){return a.bundlePromise}}),o(n(1012),t),o(n(8185),t),o(n(7107),t),o(n(5111),t),o(n(3366),t),o(n(467),t),o(n(8491),t),o(n(6111),t),o(n(5883),t),o(n(4952),t);var u=n(1649);Object.defineProperty(t,"Disposer",{enumerable:!0,get:function(){return u.Disposer}});var s=n(1649);Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return s.Empty}});var c=n(1649);Object.defineProperty(t,"Nullable",{enumerable:!0,get:function(){return c.Nullable}}),o(n(3551),t);var l=n(6732);Object.defineProperty(t,"setUser",{enumerable:!0,get:function(){return l.setUser}});var f=n(4207);Object.defineProperty(t,"showGdprConsentPreferences",{enumerable:!0,get:function(){return f.showGdprConsentPreferences}}),o(n(8741),t),(0,n(5936).logInfo)()},5936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logInfo=void 0;var r=n(194),o=new r.Logger("tivio");t.logInfo=function(){var e=(0,r.getTizenVersion)();e&&o.info("Device: Tizen, version: ".concat(e.version))}},6111:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createUseRemoteBundle=t.createRemotePackageLoader=t.fetchBundle=void 0,n(3258);var a=n(194),u=n(8156),s=n(6457),c=new a.Logger("bundleLoader"),l=function(e){var t=e.resolverUrl;return(0,e.fetchPackage)(t)},f=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return c.info("Fetching bundle by url",e),[4,fetch(e)];case 1:if(!((r=(t=n.sent()).status)>=200&&r<=400))throw new Error("Failed to fetch bundleUrlOverride ".concat(e,", ")+"HTTP error status code: ".concat(t.status));return[4,t.text()];case 2:return[2,n.sent()]}var r}))}))},d=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,fetch("https://europe-west3-tivio-production.cloudfunctions.net/getRemoteBundle",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({secret:e})})];case 1:return[4,n.sent().json()];case 2:return t=n.sent(),[2,f(t.bundleUrl)]}}))}))},p=function(e,t){return o(void 0,void 0,void 0,(function(){return i(this,(function(n){return c.info("Fetching bundle via resolver"),[2,l(t).then((function(n){var r,o={},i={exports:o};try{new Function("require","module","exports",n)(s.resolveShared,i,o)}catch(e){return Promise.reject("Cannot load Tivio Resolver ".concat(e))}return"function"!=typeof(null===(r=i.exports.tivio)||void 0===r?void 0:r.fetch)?Promise.reject("Invalid Tivio Resolver export"):i.exports.tivio.fetch(e,t.sdkVersion)}))]}))}))};t.fetchBundle=function(e,t){return o(void 0,void 0,Promise,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n="",t.forceCloudFnResolver?(c.info("Fetching bundle via cloudfn (forced by config)"),[4,d(e)]):[3,2];case 1:return n=r.sent(),[3,10];case 2:return t.bundleUrlOverride?(c.info("Fetching bundle directly based on config.bundleUrlOverride",t.bundleUrlOverride),[4,f(t.bundleUrlOverride)]):[3,4];case 3:return n=r.sent(),[3,10];case 4:return(0,a.isIndexedDbSupported)()?[3,6]:(c.info("Fetching bundle via cloudfn, because indexedDB is not supported"),[4,d(e)]);case 5:return n=r.sent(),[3,10];case 6:return(0,a.isTizenVersionGreaterThan)(5)?(c.info("Fetching bundle via cloudfn, because Tizen version is > 5"),[4,d(e)]):[3,8];case 7:return n=r.sent(),[3,10];case 8:return[4,p(e,t)];case 9:n=r.sent(),r.label=10;case 10:return function(e,t){if(e.length<5e4){var n="Invalid bundle, the loaded bundle has extremely small char count (only ".concat(e.length,") chars");throw c.error(n,e),new Error(n)}}(n),[2,n]}}))}))},t.createRemotePackageLoader=function(){return function(e,n){return o(void 0,void 0,Promise,(function(){return i(this,(function(r){return[2,(0,t.fetchBundle)(e,n).then((function(e){var t={},n={exports:t};try{new Function("require","module","exports",e)(s.resolveShared,n,t)}catch(e){return Promise.reject("Cannot load module ".concat(e))}return"object"!=typeof n.exports.Tivio?Promise.reject('Tivio package does not export "Tivio" namespace'):"object"!=typeof n.exports.Tivio.components?Promise.reject('Tivio namespace does not export "components" member'):"function"!=typeof n.exports.Tivio.setUser?Promise.reject('Tivio namespace does not export "setUser" member'):"function"!=typeof n.exports.Tivio.init?Promise.reject('Tivio namespace does not export "init" member'):n.exports.Tivio}))]}))}))}},t.createUseRemoteBundle=function(){var e=(0,t.createRemotePackageLoader)(),n=!1;return function(t){var a=(0,u.useState)({auth:null,components:null,config:t,error:null,getters:null,init:null,destroy:null,purchaseSubscriptionWithQerko:null,purchaseVideoWithQerko:null,cancelSubscriptionWithQerko:null,setBundleVersion:null,setLanguage:null,setStorageManager:null,showConsentPreferences:null,setUser:null,sources:null,hooks:null,state:"loading",subscriptions:null,internal:null,analytics:null}),s=a[0],c=a[1];return(0,u.useEffect)((function(){null!=t.secret&&!1!==t.enable&&e(t.secret,t).then((function(e){return o(void 0,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return n?[3,2]:[4,e.init(t)];case 1:i.sent(),n=!0,i.label=2;case 2:return o=r(r({},e),{config:t,error:null,state:"ready"}),c(o),t.pubSub.publish("on-ready",o),[2]}}))}))})).catch((function(e){var n;null===(n=t.logger)||void 0===n||n.exception(e),c(r(r({},s),{config:t,error:"".concat(e),state:"error"})),t.pubSub.publish("on-error",e)}))}),[]),s}}},7968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bundlePromise=t.tivioBundle=void 0;var r=n(5883);t.tivioBundle=null,t.bundlePromise=new Promise((function(e,n){(0,r.getPubSub)().subscribe("on-ready",(function(n){t.tivioBundle=n,e(n)})),(0,r.getPubSub)().subscribe("on-error",(function(e){n(e)}))})).catch((function(e){throw console.error("@tivio/sdk-react failed to load. Reason:",e),e})).then((function(e){return console.info("@tivio/sdk-react loaded successfully."),e}))},6457:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveShared=void 0;var u=i(n(670)),s=i(n(6741)),c=i(n(8879)),l=a(n(2937));n(6703),n(6462);var f=i(n(7661)),d=i(n(8661)),p=i(n(259)),h=i(n(5264)),v=i(n(8156)),y=i(n(7111)),g=i(n(3238)),b=i(n(6128)),m=i(n(5412)),_=i(n(1296)),w=i(n(1608)),O=i(n(7589)),P={mobx:p,"mobx-react":h,firebase:l.default,"firebase/app":l.default,"firebase/auth":null,"firebase/firestore":null,react:v,React:v,"react-dom":y,"styled-components":w,"@material-ui/core":u,"@material-ui/icons":s,formik:f,i18next:d,"react-i18next":g,"react-router-dom":b,"react-virtualized":_,"react-spring":m,yup:O,dayjs:c};t.resolveShared=function(e){if(!(e in P))throw new Error("Could not resolve shared dependency ".concat(e));return P[e]}},4207:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=void 0;var i=n(7968);t.showGdprConsentPreferences=function(){return r(void 0,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.bundlePromise];case 1:return e=n.sent(),null===(t=e.showConsentPreferences)||void 0===t||t.call(e),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}}))}))}},3258:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadBundleFromDist=void 0,t.loadBundleFromDist=function(){}},5167:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createLogger=void 0;var o=n(6435);t.createLogger=function(e){var t=!1!==e.isSentryEnabled,n=function(n,i){e.isConsoleEnabled&&console[n].apply(console,r(["Tivio SDK "],i,!1)),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureMessage("".concat(i),o.Sentry.Severity.fromString(n)))};return{error:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("error",e)},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("info",e)},warn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("warn",e)},debug:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("debug",e)},exception:function(n){e.isConsoleEnabled&&console.error(n),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureException(n))}}}},6732:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.setUser=void 0;var i=n(7968);t.setUser=function(e,t){return r(void 0,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,i.bundlePromise];case 1:return n=o.sent(),[4,null===(r=n.setUser)||void 0===r?void 0:r.call(n,e,t)];case 2:case 3:return o.sent(),[3,4];case 4:return[2]}}))}))}},8323:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{s(r.next(e))}catch(e){i(e)}}function u(e){try{s(r.throw(e))}catch(e){i(e)}}function s(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,u)}s((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(u){return function(s){return function(u){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,u[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&u[0]?r.return:u[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,u[1])).done)return o;switch(r=0,o&&(u=[2&u[0],o.value]),u[0]){case 0:case 1:o=u;break;case 4:return a.label++,{value:u[1],done:!1};case 5:a.label++,r=u[1],u=[0];continue;case 7:u=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==u[0]&&2!==u[0])){a=0;continue}if(3===u[0]&&(!o||u[1]>o[0]&&u[1]<o[3])){a.label=u[1];break}if(6===u[0]&&a.label<o[1]){a.label=o[1],o=u;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(u);break}o[2]&&a.ops.pop(),a.trys.pop();continue}u=t.call(e,a)}catch(e){u=[6,e],r=0}finally{n=o=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,s])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPackage=void 0;var o={cache:"no-store"},i=function(e){var t=e.headers.get("content-type");return 200!==e.status?Promise.reject('Incorrect status "'.concat(e.status,'" was obtained while fetching the module.')):t&&(t.includes("application/javascript")||t.includes("text/javascript"))?e.text():Promise.reject('Incorrect content "'.concat(t,'" was obtained while fetching the module.'))},a=function(e){return Promise.reject("Network failure: ".concat(e))};t.fetchPackage=function(e){return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,fetch(e,o).then(i).catch(a)]}))}))}},5883:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPubSub=t.createPubSub=void 0,t.createPubSub=function(){var e=new Map;return{publish:function(t,n){var r;null===(r=e.get(t))||void 0===r||r.forEach((function(e){(0,e.onMessage)(n)}))},subscribe:function(t,n){var r=(new Date).getTime();return e.has(t)||e.set(t,[]),e.get(t).push({id:r,onMessage:n}),function(){var n,o=null!==(n=e.get(t))&&void 0!==n?n:[],i=o.findIndex((function(e){return e.id===r}));-1!==i&&o.splice(i,1)}}}};var n=null;t.getPubSub=function(){return null===n&&(n=(0,t.createPubSub)()),n}},6435:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.initSentry=t.disableSentry=t.Sentry=void 0;var a=i(n(7356)),u="true"===process.env.DISABLE_SENTRY;t.Sentry=u?null:a,t.disableSentry=function(){t.Sentry=null,console.info("@tivio: Sentry disabled")},t.initSentry=function(){t.Sentry&&(t.Sentry.init({dsn:"https://8b9d489695004b0da95481f939b0455d@o507550.ingest.sentry.io/5600271",release:"@tivio/sdk-react@".concat("5.0.3-alpha-3"),tracesSampleRate:1}),console.info("@tivio: Sentry enabled"),s())};var s=function(){window.sentry=t.Sentry,console.info("@tivio: Sentry added to window")}},3551:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1649:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4952:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6168:function(e,t,n){"use strict";n.r(t),n.d(t,{DOMException:function(){return w},Headers:function(){return l},Request:function(){return g},Response:function(){return m},fetch:function(){return O}});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function u(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function s(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function v(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o.arrayBuffer&&o.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(p)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=d(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=u(e),t=s(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[u(e)]},l.prototype.get=function(e){return e=u(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(u(e))},l.prototype.set=function(e,t){this.map[u(e)]=s(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),c(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),c(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),c(e)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var y=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(e,t){if(!(this instanceof g))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof g){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),y.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function m(e,t){if(!(this instanceof m))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},v.call(g.prototype),v.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];m.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})};var w=r.DOMException;try{new w}catch(e){(w=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),w.prototype.constructor=w}function O(e,t){return new Promise((function(n,i){var a=new g(e,t);if(a.signal&&a.signal.aborted)return i(new w("Aborted","AbortError"));var u=new XMLHttpRequest;function c(){u.abort()}u.onload=function(){var e,t,r={status:u.status,statusText:u.statusText,headers:(e=u.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new m(o,r))}),0)},u.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){i(new w("Aborted","AbortError"))}),0)},u.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?u.withCredentials=!0:"omit"===a.credentials&&(u.withCredentials=!1),"responseType"in u&&(o.blob?u.responseType="blob":o.arrayBuffer&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof l?a.headers.forEach((function(e,t){u.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){u.setRequestHeader(e,s(t.headers[e]))})),a.signal&&(a.signal.addEventListener("abort",c),u.onreadystatechange=function(){4===u.readyState&&a.signal.removeEventListener("abort",c)}),u.send(void 0===a._bodyInit?null:a._bodyInit)}))}O.polyfill=!0,r.fetch||(r.fetch=O,r.Headers=l,r.Request=g,r.Response=m)},670:function(e){"use strict";e.exports=n},6741:function(e){"use strict";e.exports=r},7356:function(e){"use strict";e.exports=t},2937:function(e){"use strict";e.exports=o},6703:function(e){"use strict";e.exports=i},6462:function(e){"use strict";e.exports=a},7661:function(e){"use strict";e.exports=u},8661:function(e){"use strict";e.exports=s},259:function(e){"use strict";e.exports=c},5264:function(e){"use strict";e.exports=l},8156:function(t){"use strict";t.exports=e},7111:function(e){"use strict";e.exports=f},3238:function(e){"use strict";e.exports=d},6128:function(e){"use strict";e.exports=p},5412:function(e){"use strict";e.exports=h},1296:function(e){"use strict";e.exports=v},1608:function(e){"use strict";e.exports=y},7589:function(e){"use strict";e.exports=g}},m={};function _(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return b[e].call(n.exports,n,n.exports,_),n.exports}return _.d=function(e,t){for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_(3368)}()}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react"),require("@sentry/browser"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):"function"==typeof define&&define.amd?define("@tivio/sdk-react",["react","@sentry/browser","@material-ui/core","@material-ui/icons","firebase/app","firebase/auth","firebase/firestore","formik","i18next","mobx","mobx-react","react-dom","react-i18next","react-router-dom","react-spring","react-virtualized","styled-components","yup"],t):"object"==typeof exports?exports["@tivio/sdk-react"]=t(require("react"),require("@sentry/browser"),require("@material-ui/core"),require("@material-ui/icons"),require("firebase/app"),require("firebase/auth"),require("firebase/firestore"),require("formik"),require("i18next"),require("mobx"),require("mobx-react"),require("react-dom"),require("react-i18next"),require("react-router-dom"),require("react-spring"),require("react-virtualized"),require("styled-components"),require("yup")):e["@tivio/sdk-react"]=t(e.react,e["@sentry/browser"],e["@material-ui/core"],e["@material-ui/icons"],e["firebase/app"],e["firebase/auth"],e["firebase/firestore"],e.formik,e.i18next,e.mobx,e["mobx-react"],e["react-dom"],e["react-i18next"],e["react-router-dom"],e["react-spring"],e["react-virtualized"],e["styled-components"],e.yup)}(this,(function(e,t,n,r,o,i,a,s,u,c,l,f,d,p,v,h,g,y){return function(){var b={194:function(e,t,n){var r;e.exports=(r=n(8156),function(){var e={718:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid",e.TIVIO_ADS="tivio-ads",e.JOJ_TEST_AD_FORM_PROGRAMMATIC="joj-test-ad-form-programmatic",e.JOJ_TEST_TESTER_VASTERIX="joj-test-tester-vasterix",e.JOJ_TEST_TESTER_ADFORM_30="joj-test-tester-adform-30"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Tivio fake ads - always working",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0},{id:n.JOJ_TEST_AD_FORM_PROGRAMMATIC,name:"JOJ Test AdForm Programmatic"},{id:n.JOJ_TEST_TESTER_VASTERIX,name:"JOJ Test Vasterix"},{id:n.JOJ_TEST_TESTER_ADFORM_30,name:"JOJ Test Adform 30"},{id:n.TIVIO_ADS,name:"Tivio Ads"}].sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},87:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},690:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomerId=void 0,(n=t.CustomerId||(t.CustomerId={})).OKTAGON="OKTAGON",n.JOJ="JOJ",n.MALL="MALL",n.GARAZ="GARAZ",n.U_KULATEHO_STOLU="U_KULATEHO_STOLU",n.INVESTOREES="INVESTOREES",n.DVTV="DVTV",n.DVTV_DEV="DVTV_DEV",n.O2="O2",n.GRAPE="GRAPE",n.TIVIO="TIVIO",n.STORYBOOK="STORYBOOK",n.NANGU_DEV="NANGU_DEV"},801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV",n.UNKNOWN="unknown"},123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(87),t),o(n(304),t),o(n(690),t),o(n(801),t),o(n(495),t),o(n(2),t),o(n(123),t),o(n(589),t),o(n(889),t),o(n(703),t),o(n(743),t),o(n(407),t),o(n(757),t)},889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},743:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RegistrationRedirect=t.LoginRedirect=t.SemanticDate=t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.IT="it",e.PL="pl",e.PT="pt",e.SK="sk",e.ES="es",e.HU="hu"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}],(o=t.SemanticDate||(t.SemanticDate={})).YESTERDAY="Yesterday",o.TODAY="Today",o.TOMORROW="Tomorrow",(r=t.LoginRedirect||(t.LoginRedirect={})).PAYMENT="payment",r.VOUCHER="voucher",(t.RegistrationRedirect||(t.RegistrationRedirect={})).PAYMENT="payment"},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},360:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsConversionPage=t.AnalyticsConversionTargetBase=t.AnalyticsConversionName=t.AnalyticsConversionStatus=void 0,(i=t.AnalyticsConversionStatus||(t.AnalyticsConversionStatus={})).SUCCESS="SUCCESS",i.FAILED="FAILED",(o=t.AnalyticsConversionName||(t.AnalyticsConversionName={})).CLICK="click",o.PLAY="play",o.PURCHASE="purchase",o.VISIT="visit",(r=t.AnalyticsConversionTargetBase||(t.AnalyticsConversionTargetBase={})).Element="element",r.Monetization="monetization",(n=t.AnalyticsConversionPage||(t.AnalyticsConversionPage={})).Videos="videos",n.Series="series",n.Profile="profile",n.Tags="tags",n.Screens="screens",n.Registration="registration",n.Login="login",n.About="about",n.ResetPassword="reset-password",n.Player="player",n.Redeem="redeem",n.Referral="referral",n.Pair="pair",n.Search="search"},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},278:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DrmProvider=void 0,(n=t.DrmProvider||(t.DrmProvider={})).STREAMONLINE="streamonline",n.INSYS="insys"},810:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},90:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenReason=void 0,(n=t.ForbiddenReason||(t.ForbiddenReason={})).MONETIZATION="MONETIZATION",n.GEO_BLOCKING="GEO_BLOCKING"},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(396),t),o(n(360),t),o(n(826),t),o(n(202),t),o(n(129),t),o(n(278),t),o(n(810),t),o(n(90),t),o(n(959),t),o(n(788),t),o(n(910),t),o(n(726),t),o(n(523),t),o(n(738),t),o(n(535),t),o(n(161),t),o(n(605),t),o(n(190),t),o(n(522),t),o(n(614),t),o(n(656),t),o(n(906),t),o(n(300),t),o(n(363),t),o(n(948),t),o(n(635),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.HALF_ANNUALLY="HALF_ANNUALLY",n.ANNUALLY="ANNUALLY"},788:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.UserGroup=t.NotificationStatus=void 0,(r=t.NotificationStatus||(t.NotificationStatus={})).PLANNED="planned",r.SENT="sent",(n=t.UserGroup||(t.UserGroup={})).ALL="all",n.FREE="free",n.PREMIUM="premium"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},726:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DurationUnits=void 0,(n=t.DurationUnits||(t.DurationUnits={})).DAY="day",n.MONTH="month"},523:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate"},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.BannerItemComponent=t.RowComponent=void 0,(i=t.RowComponent||(t.RowComponent={})).ROW="ROW",i.BANNER="BANNER",(o=t.BannerItemComponent||(t.BannerItemComponent={})).CLASSIC="CLASSIC",o.SPLIT="SPLIT",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL",n.ADVERTISEMENT="ADVERTISEMENT"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},522:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoSourceEncryption=t.VideoSourceCodec=t.VideoSourceProtocol=void 0,(o=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",o.DASH="dash",o.MP4="mp4",(r=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",r.H265="h265",(n=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",n.WIDEVINE="widevine",n.FAIRPLAY="fairplay",n.PLAYREADY="playready"},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelType=void 0,(n=t.TvChannelType||(t.TvChannelType={})).CLASSIC="CLASSIC",n.VIRTUAL="VIRTUAL"},300:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR",n.BLOCKED="BLOCKED"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.CUT="CUT",n.TRAILER="TRAILER",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t),o(n(620),t)},620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,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,h={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",m={};m[b]=h;var _=function(e){return e instanceof S},O=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();m[i]&&(o=i),n&&(m[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;m[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},P=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},w=y;w.l=O,w.i=_,w.w=function(e,t){return P(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function h(e){this.$L=O(e.locale,null,!0),this.parse(e)}var g=h.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return w},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=P(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return P(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<P(e)},g.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!w.u(t)||t,d=w.p(e),p=function(e,t){var r=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},v=function(e,t){return w.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case l:return c?p(1,0):p(31,11);case u:return c?p(1,g):p(0,g+1);case s:var m=this.$locale().weekStart||0,_=(h<m?h+7:h)-m;return p(c?y-_:y+(6-_),g);case a:case f:return v(b+"Hours",0);case i:return v(b+"Minutes",1);case o:return v(b+"Seconds",2);case r:return v(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=w.p(e),d="set"+(this.$u?"UTC":""),p=(s={},s[a]=d+"Date",s[f]=d+"Date",s[u]=d+"Month",s[l]=d+"FullYear",s[i]=d+"Hours",s[o]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[c],v=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var h=this.clone().set(f,1);h.$d[p](v),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[w.p(e)]()},g.add=function(n,c){var f,d=this;n=Number(n);var p=w.p(c),v=function(e){var t=P(d);return w.w(t.date(t.date()+Math.round(e*n)),d)};if(p===u)return this.set(u,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return v(1);if(p===s)return v(7);var h=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,g=this.$d.getTime()+n*h;return w.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=w.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return w.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:w.s(s+1,2,"0"),MMM:l(n.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,u,2),ddd:l(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:w.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:w.s(a,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:o};return r.replace(v,(function(e,t){return t||h[e]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,f,d){var p,v=w.p(f),h=P(n),g=(h.utcOffset()-this.utcOffset())*e,y=this-h,b=w.m(this,h);return b=(p={},p[l]=b/12,p[u]=b,p[c]=b/3,p[s]=(y-g)/6048e5,p[a]=(y-g)/864e5,p[i]=y/t,p[o]=y/e,p[r]=y/1e3,p)[v]||y,d?b:w.a(b)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return m[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return w.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},h}(),T=S.prototype;return P.prototype=T,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),P.extend=function(e,t){return e.$i||(e(t,S,P),e.$i=!0),P},P.locale=O,P.isDayjs=_,P.unix=function(e){return P(1e3*e)},P.en=m[b],P.Ls=m,P.p={},P}()},945:function(e){e.exports=function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d\d/,r=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,i={},a=function(e){return(e=+e)+(e>68?1900:2e3)},s=function(e){return function(t){this[e]=+t}},u=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||(this.zone={})).offset=function(e){if(!e)return 0;if("Z"===e)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return 0===n?0:"+"===t[0]?-n:n}(e)}],c=function(e){var t=i[e];return t&&(t.indexOf?t:t.s.concat(t.f))},l=function(e,t){var n,r=i.meridiem;if(r){for(var o=1;o<=24;o+=1)if(e.indexOf(r(o,0,t))>-1){n=o>12;break}}else n=e===(t?"pm":"PM");return n},f={A:[o,function(e){this.afternoon=l(e,!1)}],a:[o,function(e){this.afternoon=l(e,!0)}],S:[/\d/,function(e){this.milliseconds=100*+e}],SS:[n,function(e){this.milliseconds=10*+e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[r,s("seconds")],ss:[r,s("seconds")],m:[r,s("minutes")],mm:[r,s("minutes")],H:[r,s("hours")],h:[r,s("hours")],HH:[r,s("hours")],hh:[r,s("hours")],D:[r,s("day")],DD:[n,s("day")],Do:[o,function(e){var t=i.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,"")===e&&(this.day=r)}],M:[r,s("month")],MM:[n,s("month")],MMM:[o,function(e){var t=c("months"),n=(c("monthsShort")||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw new Error;this.month=n%12||n}],MMMM:[o,function(e){var t=c("months").indexOf(e)+1;if(t<1)throw new Error;this.month=t%12||t}],Y:[/[+-]?\d+/,s("year")],YY:[n,function(e){this.year=a(e)}],YYYY:[/\d{4}/,s("year")],Z:u,ZZ:u};function d(n){var r,o;r=n,o=i&&i.formats;for(var a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var i=r&&r.toUpperCase();return n||o[r]||e[r]||o[i].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,u=0;u<s;u+=1){var c=a[u],l=f[c],d=l&&l[0],p=l&&l[1];a[u]=p?{regex:d,parser:p}:c.replace(/^\[|\]$/g,"")}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var o=a[n];if("string"==typeof o)r+=o.length;else{var i=o.regex,u=o.parser,c=e.slice(r),l=i.exec(c)[0];u.call(t,l),e=e.replace(l,"")}}return function(e){var t=e.afternoon;if(void 0!==t){var n=e.hours;t?n<12&&(e.hours+=12):12===n&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(a=e.parseTwoDigitYear);var r=t.prototype,o=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if("string"==typeof s){var u=!0===a[2],c=!0===a[3],l=u||c,f=a[2];c&&(f=a[2]),i=this.$locale(),!u&&f&&(i=n.Ls[f]),this.$d=function(e,t,n){try{if(["x","X"].indexOf(t)>-1)return new Date(("X"===t?1e3:1)*e);var r=d(t)(e),o=r.year,i=r.month,a=r.day,s=r.hours,u=r.minutes,c=r.seconds,l=r.milliseconds,f=r.zone,p=new Date,v=a||(o||i?1:p.getDate()),h=o||p.getFullYear(),g=0;o&&!i||(g=i>0?i-1:p.getMonth());var y=s||0,b=u||0,m=c||0,_=l||0;return f?new Date(Date.UTC(h,g,v,y,b,m,_+60*f.offset*1e3)):n?new Date(Date.UTC(h,g,v,y,b,m,_)):new Date(h,g,v,y,b,m,_)}catch(e){return new Date("")}}(t,s,r),this.init(),f&&!0!==f&&(this.$L=this.locale(f).$L),l&&t!=this.format(s)&&(this.$d=new Date("")),i={}}else if(s instanceof Array)for(var p=s.length,v=1;v<=p;v+=1){a[1]=s[v-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}v===p&&(this.$d=new Date(""))}else o.call(this,e)}}}()},30:function(e){e.exports=function(){"use strict";return function(e,t,n){t.prototype.isBetween=function(e,t,r,o){var i=n(e),a=n(t),s="("===(o=o||"()")[0],u=")"===o[1];return(s?this.isAfter(i,r):!this.isBefore(i,r))&&(u?this.isBefore(a,r):!this.isAfter(a,r))||(s?this.isBefore(i,r):!this.isAfter(i,r))&&(u?this.isAfter(a,r):!this.isBefore(a,r))}}}()},924:function(e,t,n){"use strict";n.r(t),n.d(t,{BotInfo:function(){return s},BrowserInfo:function(){return o},NodeInfo:function(){return i},ReactNativeInfo:function(){return u},SearchBotDeviceInfo:function(){return a},browserName:function(){return h},detect:function(){return p},detectOS:function(){return y},getNodeVersion:function(){return b},parseUserAgent:function(){return g}});var r=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))},o=function(e,t,n){this.name=e,this.version=t,this.os=n,this.type="browser"},i=function(e){this.version=e,this.type="node",this.name="node",this.os=process.platform},a=function(e,t,n,r){this.name=e,this.version=t,this.os=n,this.bot=r,this.type="bot-device"},s=function(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null},u=function(){this.type="react-native",this.name="react-native",this.version=null,this.os=null},c=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,l=3,f=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/]],d=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function p(e){return e?g(e):"undefined"==typeof document&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product?new u:"undefined"!=typeof navigator?g(navigator.userAgent):b()}function v(e){return""!==e&&f.reduce((function(t,n){var r=n[0],o=n[1];if(t)return t;var i=o.exec(e);return!!i&&[r,i]}),!1)}function h(e){var t=v(e);return t?t[0]:null}function g(e){var t=v(e);if(!t)return null;var n=t[0],i=t[1];if("searchbot"===n)return new s;var u=i[1]&&i[1].split(".").join("_").split("_").slice(0,3);u?u.length<l&&(u=r(r([],u,!0),function(e){for(var t=[],n=0;n<e;n++)t.push("0");return t}(l-u.length),!0)):u=[];var f=u.join("."),d=y(e),p=c.exec(e);return p&&p[1]?new a(n,f,d,p[1]):new o(n,f,d)}function y(e){for(var t=0,n=d.length;t<n;t++){var r=d[t],o=r[0];if(r[1].exec(e))return o}return null}function b(){return"undefined"!=typeof process&&process.version?new i(process.version.slice(1)):null}},88:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function o(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,"string");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r(t)?t:String(t)}function i(e,t,n){return(t=o(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){i(e,t,n[t])}))}return e}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,o(r.key),r)}}function c(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function l(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return l(e)}function d(e){return d=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},d(e)}function p(e,t){return p=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},p(e,t)}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p(e,t)}n.r(t),n.d(t,{default:function(){return Y}});var h={type:"logger",log:function(e){this.output("log",e)},warn:function(e){this.output("warn",e)},error:function(e){this.output("error",e)},output:function(e,t){console&&console[e]&&console[e].apply(console,t)}},g=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.init(t,n)}return c(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.prefix=t.prefix||"i18next:",this.logger=e||h,this.options=t,this.debug=t.debug}},{key:"setDebug",value:function(e){this.debug=e}},{key:"log",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"log","",!0)}},{key:"warn",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","",!0)}},{key:"error",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"error","")}},{key:"deprecate",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return this.forward(t,"warn","WARNING DEPRECATED: ",!0)}},{key:"forward",value:function(e,t,n,r){return r&&!this.debug?null:("string"==typeof e[0]&&(e[0]="".concat(n).concat(this.prefix," ").concat(e[0])),this.logger[t](e))}},{key:"create",value:function(t){return new e(this.logger,a({},{prefix:"".concat(this.prefix,":").concat(t,":")},this.options))}}]),e}(),y=new g,b=function(){function e(){s(this,e),this.observers={}}return c(e,[{key:"on",value:function(e,t){var n=this;return e.split(" ").forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:"off",value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:"emit",value:function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,n)})),this.observers["*"]&&[].concat(this.observers["*"]).forEach((function(t){t.apply(t,[e].concat(n))}))}}]),e}();function m(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function _(e){return null==e?"":""+e}function O(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function o(){return!e||"string"==typeof e}for(var i="string"!=typeof t?[].concat(t):t.split(".");i.length>1;){if(o())return{};var a=r(i.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return o()?{}:{obj:e,k:r(i.shift())}}function P(e,t,n){var r=O(e,t,Object);r.obj[r.k]=n}function w(e,t){var n=O(e,t),r=n.obj,o=n.k;if(r)return r[o]}function S(e,t,n){var r=w(e,n);return void 0!==r?r:w(t,n)}function T(e,t,n){for(var r in t)"__proto__"!==r&&"constructor"!==r&&(r in e?"string"==typeof e[r]||e[r]instanceof String||"string"==typeof t[r]||t[r]instanceof String?n&&(e[r]=t[r]):T(e[r],t[r],n):e[r]=t[r]);return e}function M(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var E={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;"};function A(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return E[e]})):e}var L="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,C=function(e){function t(e){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return s(this,t),n=f(this,d(t).call(this)),L&&b.call(l(n)),n.data=e||{},n.options=r,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n}return v(t,e),c(t,[{key:"addNamespaces",value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:"removeNamespaces",value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,i=[e,t];return n&&"string"!=typeof n&&(i=i.concat(n)),n&&"string"==typeof n&&(i=i.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(i=e.split(".")),w(this.data,i)}},{key:"addResource",value:function(e,t,n,r){var o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},i=this.options.keySeparator;void 0===i&&(i=".");var a=[e,t];n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),P(this.data,a,r),o.silent||this.emit("added",e,t,n,r)}},{key:"addResources",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{silent:!1};for(var o in n)"string"!=typeof n[o]&&"[object Array]"!==Object.prototype.toString.apply(n[o])||this.addResource(e,t,o,n[o],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},s=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(s=e.split("."))[1]),this.addNamespaces(t);var u=w(this.data,s)||{};r?T(u,n,o):u=a({},u,n),P(this.data,s,u),i.silent||this.emit("added",e,t,n)}},{key:"removeResourceBundle",value:function(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit("removed",e,t)}},{key:"hasResourceBundle",value:function(e,t){return void 0!==this.getResource(e,t)}},{key:"getResourceBundle",value:function(e,t){return t||(t=this.options.defaultNS),"v1"===this.options.compatibilityAPI?a({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"toJSON",value:function(){return this.data}}]),t}(b),x={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,o){var i=this;return e.forEach((function(e){i.processors[e]&&(t=i.processors[e].process(t,n,r,o))})),t}},R={},j=function(e){function t(e){var n,r,o,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return s(this,t),n=f(this,d(t).call(this)),L&&b.call(l(n)),r=["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],o=e,i=l(n),r.forEach((function(e){o[e]&&(i[e]=o[e])})),n.options=a,void 0===n.options.keySeparator&&(n.options.keySeparator="."),n.logger=y.create("translator"),n}return v(t,e),c(t,[{key:"changeLanguage",value:function(e){e&&(this.language=e)}},{key:"exists",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=this.resolve(e,t);return n&&void 0!==n.res}},{key:"extractFromKey",value:function(e,t){var n=void 0!==t.nsSeparator?t.nsSeparator:this.options.nsSeparator;void 0===n&&(n=":");var r=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,o=t.ns||this.options.defaultNS;if(n&&e.indexOf(n)>-1){var i=e.match(this.interpolator.nestingRegexp);if(i&&i.length>0)return{key:e,namespaces:o};var a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(o=a.shift()),e=a.join(r)}return"string"==typeof o&&(o=[o]),{key:e,namespaces:o}}},{key:"translate",value:function(e,n,o){var i=this;if("object"!==r(n)&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),n||(n={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var s=void 0!==n.keySeparator?n.keySeparator:this.options.keySeparator,u=this.extractFromKey(e[e.length-1],n),c=u.key,l=u.namespaces,f=l[l.length-1],d=n.lng||this.language,p=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var v=n.nsSeparator||this.options.nsSeparator;return f+v+c}return c}var h=this.resolve(e,n),g=h&&h.res,y=h&&h.usedKey||c,b=h&&h.exactUsedKey||c,m=Object.prototype.toString.apply(g),_=void 0!==n.joinArrays?n.joinArrays:this.options.joinArrays,O=!this.i18nFormat||this.i18nFormat.handleAsObject;if(O&&g&&"string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g&&["[object Number]","[object Function]","[object RegExp]"].indexOf(m)<0&&("string"!=typeof _||"[object Array]"!==m)){if(!n.returnObjects&&!this.options.returnObjects)return this.logger.warn("accessing an object - but returnObjects options is not enabled!"),this.options.returnedObjectHandler?this.options.returnedObjectHandler(y,g,n):"key '".concat(c," (").concat(this.language,")' returned an object instead of string.");if(s){var P="[object Array]"===m,w=P?[]:{},S=P?b:y;for(var T in g)if(Object.prototype.hasOwnProperty.call(g,T)){var M="".concat(S).concat(s).concat(T);w[T]=this.translate(M,a({},n,{joinArrays:!1,ns:l})),w[T]===M&&(w[T]=g[T])}g=w}}else if(O&&"string"==typeof _&&"[object Array]"===m)(g=g.join(_))&&(g=this.extendTranslation(g,e,n,o));else{var E=!1,A=!1,L=void 0!==n.count&&"string"!=typeof n.count,C=t.hasDefaultValue(n),x=L?this.pluralResolver.getSuffix(d,n.count):"",R=n["defaultValue".concat(x)]||n.defaultValue;!this.isValidLookup(g)&&C&&(E=!0,g=R),this.isValidLookup(g)||(A=!0,g=c);var j=C&&R!==g&&this.options.updateMissing;if(A||E||j){if(this.logger.log(j?"updateKey":"missingKey",d,f,c,j?R:g),s){var D=this.resolve(c,a({},n,{keySeparator:!1}));D&&D.res&&this.logger.warn("Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.")}var I=[],k=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if("fallback"===this.options.saveMissingTo&&k&&k[0])for(var N=0;N<k.length;N++)I.push(k[N]);else"all"===this.options.saveMissingTo?I=this.languageUtils.toResolveHierarchy(n.lng||this.language):I.push(n.lng||this.language);var V=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,f,t,j?r:g,j,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,f,t,j?r:g,j,n),i.emit("missingKey",e,f,t,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&L?I.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){V([e],c+t,n["defaultValue".concat(t)]||R)}))})):V(I,c,R))}g=this.extendTranslation(g,e,n,h,o),A&&g===c&&this.options.appendNamespaceToMissingKey&&(g="".concat(f,":").concat(c)),A&&this.options.parseMissingKeyHandler&&(g=this.options.parseMissingKeyHandler(g))}return g}},{key:"extendTranslation",value:function(e,t,n,r,o){var i=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,n,r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(a({},n,{interpolation:a({},this.options.interpolation,n.interpolation)}));var s,u=n.interpolation&&n.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;if(u){var c=e.match(this.interpolator.nestingRegexp);s=c&&c.length}var l=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(l=a({},this.options.interpolation.defaultVariables,l)),e=this.interpolator.interpolate(e,l,n.lng||this.language,n),u){var f=e.match(this.interpolator.nestingRegexp);s<(f&&f.length)&&(n.nest=!1)}!1!==n.nest&&(e=this.interpolator.nest(e,(function(){for(var e=arguments.length,r=new Array(e),a=0;a<e;a++)r[a]=arguments[a];return o&&o[0]===r[0]&&!n.context?(i.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):i.translate.apply(i,r.concat([t]))}),n)),n.interpolation&&this.interpolator.reset()}var d=n.postProcess||this.options.postProcess,p="string"==typeof d?[d]:d;return null!=e&&p&&p.length&&!1!==n.applyPostProcessor&&(e=x.handle(p,e,t,this.options&&this.options.postProcessPassResolved?a({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,o,i,a=this,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e&&(e=[e]),e.forEach((function(e){if(!a.isValidLookup(t)){var u=a.extractFromKey(e,s),c=u.key;n=c;var l=u.namespaces;a.options.fallbackNS&&(l=l.concat(a.options.fallbackNS));var f=void 0!==s.count&&"string"!=typeof s.count,d=void 0!==s.context&&"string"==typeof s.context&&""!==s.context,p=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(i=e,!R["".concat(p[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(i)&&(R["".concat(p[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(p.join(", "),'" won\'t get resolved as namespace "').concat(i,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!")),p.forEach((function(n){if(!a.isValidLookup(t)){o=n;var i,u,l=c,p=[l];for(a.i18nFormat&&a.i18nFormat.addLookupKeys?a.i18nFormat.addLookupKeys(p,c,n,e,s):(f&&(i=a.pluralResolver.getSuffix(n,s.count)),f&&d&&p.push(l+i),d&&p.push(l+="".concat(a.options.contextSeparator).concat(s.context)),f&&p.push(l+=i));u=p.pop();)a.isValidLookup(t)||(r=u,t=a.getResource(n,e,u,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:o,usedNS:i}}},{key:"isValidLookup",value:function(e){return!(void 0===e||!this.options.returnNull&&null===e||!this.options.returnEmptyString&&""===e)}},{key:"getResource",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}}],[{key:"hasDefaultValue",value:function(e){var t="defaultValue";for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)&&t===n.substring(0,t.length)&&void 0!==e[n])return!0;return!1}}]),t}(b);function D(e){return e.charAt(0).toUpperCase()+e.slice(1)}var I=function(){function e(t){s(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=y.create("languageUtils")}return c(e,[{key:"getScriptPartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return null;var t=e.split("-");return 2===t.length?null:(t.pop(),"x"===t[t.length-1].toLowerCase()?null:this.formatLanguageCode(t.join("-")))}},{key:"getLanguagePartFromCode",value:function(e){if(!e||e.indexOf("-")<0)return e;var t=e.split("-");return this.formatLanguageCode(t[0])}},{key:"formatLanguageCode",value:function(e){if("string"==typeof e&&e.indexOf("-")>-1){var t=["hans","hant","latn","cyrl","cans","mong","arab"],n=e.split("-");return this.options.lowerCaseLng?n=n.map((function(e){return e.toLowerCase()})):2===n.length?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase()))):3===n.length&&(n[0]=n[0].toLowerCase(),2===n[1].length&&(n[1]=n[1].toUpperCase()),"sgn"!==n[0]&&2===n[2].length&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=D(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=D(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}},{key:"isWhitelisted",value:function(e){return this.logger.deprecate("languageUtils.isWhitelisted",'function "isWhitelisted" will be renamed to "isSupportedCode" in the next major - please make sure to rename it\'s usage asap.'),this.isSupportedCode(e)}},{key:"isSupportedCode",value:function(e){return("languageOnly"===this.options.load||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}},{key:"getBestMatchFromCodes",value:function(e){var t,n=this;return e?(e.forEach((function(e){if(!t){var r=n.formatLanguageCode(e);n.options.supportedLngs&&!n.isSupportedCode(r)||(t=r)}})),!t&&this.options.supportedLngs&&e.forEach((function(e){if(!t){var r=n.getLanguagePartFromCode(e);if(n.isSupportedCode(r))return t=r;t=n.options.supportedLngs.find((function(e){if(0===e.indexOf(r))return e}))}})),t||(t=this.getFallbackCodes(this.options.fallbackLng)[0]),t):null}},{key:"getFallbackCodes",value:function(e,t){if(!e)return[];if("function"==typeof e&&(e=e(t)),"string"==typeof e&&(e=[e]),"[object Array]"===Object.prototype.toString.apply(e))return e;if(!t)return e.default||[];var n=e[t];return n||(n=e[this.getScriptPartFromCode(t)]),n||(n=e[this.formatLanguageCode(t)]),n||(n=e[this.getLanguagePartFromCode(t)]),n||(n=e.default),n||[]}},{key:"toResolveHierarchy",value:function(e,t){var n=this,r=this.getFallbackCodes(t||this.options.fallbackLng||[],e),o=[],i=function(e){e&&(n.isSupportedCode(e)?o.push(e):n.logger.warn("rejecting language code not found in supportedLngs: ".concat(e)))};return"string"==typeof e&&e.indexOf("-")>-1?("languageOnly"!==this.options.load&&i(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&i(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&i(this.getLanguagePartFromCode(e))):"string"==typeof e&&i(this.formatLanguageCode(e)),r.forEach((function(e){o.indexOf(e)<0&&i(n.formatLanguageCode(e))})),o}}]),e}(),k=[{lngs:["ach","ak","am","arn","br","fil","gun","ln","mfe","mg","mi","oc","pt","pt-BR","tg","tl","ti","tr","uz","wa"],nr:[1,2],fc:1},{lngs:["af","an","ast","az","bg","bn","ca","da","de","dev","el","en","eo","es","et","eu","fi","fo","fur","fy","gl","gu","ha","hi","hu","hy","ia","it","kn","ku","lb","mai","ml","mn","mr","nah","nap","nb","ne","nl","nn","no","nso","pa","pap","pms","ps","pt-PT","rm","sco","se","si","so","son","sq","sv","sw","ta","te","tk","ur","yo"],nr:[1,2],fc:2},{lngs:["ay","bo","cgg","fa","ht","id","ja","jbo","ka","kk","km","ko","ky","lo","ms","sah","su","th","tt","ug","vi","wo","zh"],nr:[1],fc:3},{lngs:["be","bs","cnr","dz","hr","ru","sr","uk"],nr:[1,2,5],fc:4},{lngs:["ar"],nr:[0,1,2,3,11,100],fc:5},{lngs:["cs","sk"],nr:[1,2,5],fc:6},{lngs:["csb","pl"],nr:[1,2,5],fc:7},{lngs:["cy"],nr:[1,2,3,8],fc:8},{lngs:["fr"],nr:[1,2],fc:9},{lngs:["ga"],nr:[1,2,3,7,11],fc:10},{lngs:["gd"],nr:[1,2,3,20],fc:11},{lngs:["is"],nr:[1,2],fc:12},{lngs:["jv"],nr:[0,1],fc:13},{lngs:["kw"],nr:[1,2,3,4],fc:14},{lngs:["lt"],nr:[1,2,10],fc:15},{lngs:["lv"],nr:[1,2,0],fc:16},{lngs:["mk"],nr:[1,2],fc:17},{lngs:["mnk"],nr:[0,1,2],fc:18},{lngs:["mt"],nr:[1,2,11,20],fc:19},{lngs:["or"],nr:[2,1],fc:2},{lngs:["ro"],nr:[1,2,20],fc:20},{lngs:["sl"],nr:[5,1,2,3],fc:21},{lngs:["he","iw"],nr:[1,2,20,21],fc:22}],N={1:function(e){return Number(e>1)},2:function(e){return Number(1!=e)},3:function(e){return 0},4:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},5:function(e){return Number(0==e?0:1==e?1:2==e?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5)},6:function(e){return Number(1==e?0:e>=2&&e<=4?1:2)},7:function(e){return Number(1==e?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2)},8:function(e){return Number(1==e?0:2==e?1:8!=e&&11!=e?2:3)},9:function(e){return Number(e>=2)},10:function(e){return Number(1==e?0:2==e?1:e<7?2:e<11?3:4)},11:function(e){return Number(1==e||11==e?0:2==e||12==e?1:e>2&&e<20?2:3)},12:function(e){return Number(e%10!=1||e%100==11)},13:function(e){return Number(0!==e)},14:function(e){return Number(1==e?0:2==e?1:3==e?2:3)},15:function(e){return Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2)},16:function(e){return Number(e%10==1&&e%100!=11?0:0!==e?1:2)},17:function(e){return Number(1==e||e%10==1&&e%100!=11?0:1)},18:function(e){return Number(0==e?0:1==e?1:2)},19:function(e){return Number(1==e?0:0==e||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3)},20:function(e){return Number(1==e?0:0==e||e%100>0&&e%100<20?1:2)},21:function(e){return Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0)},22:function(e){return Number(1==e?0:2==e?1:(e<0||e>10)&&e%10==0?2:3)}},V=function(){function e(t){var n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};s(this,e),this.languageUtils=t,this.options=r,this.logger=y.create("pluralResolver"),this.rules=(n={},k.forEach((function(e){e.lngs.forEach((function(t){n[t]={numbers:e.nr,plurals:N[e.fc]}}))})),n)}return c(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:"getSuffixes",value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=this,r=this.getRule(e);if(r){var o=r.noAbs?r.plurals(t):r.plurals(Math.abs(t)),i=r.numbers[o];this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var a=function(){return n.options.prepend&&i.toString()?n.options.prepend+i.toString():i.toString()};return"v1"===this.options.compatibilityJSON?1===i?"":"number"==typeof i?"_plural_".concat(i.toString()):a():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===r.numbers.length&&1===r.numbers[0]?a():this.options.prepend&&o.toString()?this.options.prepend+o.toString():o.toString()}return this.logger.warn("no plural rule found for: ".concat(e)),""}}]),e}(),B=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s(this,e),this.logger=y.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return c(e,[{key:"init",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e.interpolation||(e.interpolation={escapeValue:!0});var t=e.interpolation;this.escape=void 0!==t.escape?t.escape:A,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?M(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?M(t.suffix):t.suffixEscaped||"}}",this.formatSeparator=t.formatSeparator?t.formatSeparator:t.formatSeparator||",",this.unescapePrefix=t.unescapeSuffix?"":t.unescapePrefix||"-",this.unescapeSuffix=this.unescapePrefix?"":t.unescapeSuffix||"",this.nestingPrefix=t.nestingPrefix?M(t.nestingPrefix):t.nestingPrefixEscaped||M("$t("),this.nestingSuffix=t.nestingSuffix?M(t.nestingSuffix):t.nestingSuffixEscaped||M(")"),this.nestingOptionsSeparator=t.nestingOptionsSeparator?t.nestingOptionsSeparator:t.nestingOptionsSeparator||",",this.maxReplaces=t.maxReplaces?t.maxReplaces:1e3,this.alwaysFormat=void 0!==t.alwaysFormat&&t.alwaysFormat,this.resetRegExp()}},{key:"reset",value:function(){this.options&&this.init(this.options)}},{key:"resetRegExp",value:function(){var e="".concat(this.prefix,"(.+?)").concat(this.suffix);this.regexp=new RegExp(e,"g");var t="".concat(this.prefix).concat(this.unescapePrefix,"(.+?)").concat(this.unescapeSuffix).concat(this.suffix);this.regexpUnescape=new RegExp(t,"g");var n="".concat(this.nestingPrefix,"(.+?)").concat(this.nestingSuffix);this.nestingRegexp=new RegExp(n,"g")}},{key:"interpolate",value:function(e,t,n,r){var o,i,a,s=this,u=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{};function c(e){return e.replace(/\$/g,"$$$$")}var l=function(e){if(e.indexOf(s.formatSeparator)<0){var o=S(t,u,e);return s.alwaysFormat?s.format(o,void 0,n):o}var i=e.split(s.formatSeparator),a=i.shift().trim(),c=i.join(s.formatSeparator).trim();return s.format(S(t,u,a),c,n,r)};this.resetRegExp();var f=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,d=r&&r.interpolation&&r.interpolation.skipOnVariables||this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:function(e){return c(e)}},{regex:this.regexp,safeValue:function(e){return s.escapeValue?c(s.escape(e)):c(e)}}].forEach((function(t){for(a=0;o=t.regex.exec(e);){if(void 0===(i=l(o[1].trim())))if("function"==typeof f){var n=f(e,o,r);i="string"==typeof n?n:""}else{if(d){i=o[0];continue}s.logger.warn("missed to pass in variable ".concat(o[1]," for interpolating ").concat(e)),i=""}else"string"==typeof i||s.useRawValueToEscape||(i=_(i));if(e=e.replace(o[0],t.safeValue(i)),t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,o=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},s=a({},i);function u(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),o="{".concat(r[1]);e=r[0],o=(o=this.interpolate(o,s)).replace(/'/g,'"');try{s=JSON.parse(o),t&&(s=a({},t,s))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(o)}return delete s.defaultValue,e}for(s.applyPostProcessor=!1,delete s.defaultValue;n=this.nestingRegexp.exec(e);){var c=[],l=!1;if(n[0].includes(this.formatSeparator)&&!/{.*}/.test(n[1])){var f=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=f.shift(),c=f,l=!0}if((r=t(u.call(this,n[1].trim(),s),s))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=_(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),l&&(r=c.reduce((function(e,t){return o.format(e,t,i.lng,i)}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),U=function(e){function t(e,n,r){var o,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return s(this,t),o=f(this,d(t).call(this)),L&&b.call(l(o)),o.backend=e,o.store=n,o.services=r,o.languageUtils=r.languageUtils,o.options=i,o.logger=y.create("backendConnector"),o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(r,i.backend,i),o}return v(t,e),c(t,[{key:"queueLoad",value:function(e,t,n,r){var o=this,i=[],a=[],s=[],u=[];return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&o.store.hasResourceBundle(e,t)?o.state[s]=2:o.state[s]<0||(1===o.state[s]?a.indexOf(s)<0&&a.push(s):(o.state[s]=1,r=!1,a.indexOf(s)<0&&a.push(s),i.indexOf(s)<0&&i.push(s),u.indexOf(t)<0&&u.push(t)))})),r||s.push(e)})),(i.length||a.length)&&this.queue.push({pending:a,loaded:{},errors:[],callback:r}),{toLoad:i,pending:a,toLoadLanguages:s,toLoadNamespaces:u}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),o=r[0],i=r[1];t&&this.emit("failedLoading",o,i,t),n&&this.store.addResourceBundle(o,i,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l;r=n.loaded,s=i,(c=(u=O(r,[o],Object)).obj)[l=u.k]=c[l]||[],c[l].push(s),function(e,t){for(var n=e.indexOf(t);-1!==n;)e.splice(n,1),n=e.indexOf(t)}(n.pending,e),t&&n.errors.push(t),0!==n.pending.length||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]=[]),n.loaded[e].length&&n.loaded[e].forEach((function(t){a[e].indexOf(t)<0&&a[e].push(t)}))})),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())})),this.emit("loaded",a),this.queue=this.queue.filter((function(e){return!e.done}))}},{key:"read",value:function(e,t,n){var r=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.backend[n](e,t,(function(s,u){s&&u&&o<5?setTimeout((function(){r.read.call(r,e,t,n,o+1,2*i,a)}),i):a(s,u)})):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn("No backend was added via i18next.use. Will not load resources."),o&&o();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var i=this.queueLoad(e,t,r,o);if(!i.toLoad.length)return i.pending.length||o(),null;i.toLoad.forEach((function(e){n.loadOne(e)}))}},{key:"load",value:function(e,t,n){this.prepareLoading(e,t,{},n)}},{key:"reload",value:function(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}},{key:"loadOne",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=e.split("|"),o=r[0],i=r[1];this.read(o,i,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(i," for language ").concat(o," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(i," for language ").concat(o),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,o){var i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{};this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)?this.logger.warn('did not save key "'.concat(n,'" as the namespace "').concat(t,'" was not yet loaded'),"This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!"):null!=n&&""!==n&&(this.backend&&this.backend.create&&this.backend.create(e,t,n,r,null,a({},i,{isUpdate:o})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}(b);function F(e){return"string"==typeof e.ns&&(e.ns=[e.ns]),"string"==typeof e.fallbackLng&&(e.fallbackLng=[e.fallbackLng]),"string"==typeof e.fallbackNS&&(e.fallbackNS=[e.fallbackNS]),e.whitelist&&(e.whitelist&&e.whitelist.indexOf("cimode")<0&&(e.whitelist=e.whitelist.concat(["cimode"])),e.supportedLngs=e.whitelist),e.nonExplicitWhitelist&&(e.nonExplicitSupportedLngs=e.nonExplicitWhitelist),e.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function $(){}var W=function(e){function t(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0;if(s(this,t),e=f(this,d(t).call(this)),L&&b.call(l(e)),e.options=F(n),e.services={},e.logger=y,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),f(e,l(e));setTimeout((function(){e.init(n,r)}),0)}return e}return v(t,e),c(t,[{key:"init",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;function o(e){return e?"function"==typeof e?new e:e:null}if("function"==typeof t&&(n=t,t={}),t.whitelist&&!t.supportedLngs&&this.logger.deprecate("whitelist",'option "whitelist" will be renamed to "supportedLngs" in the next major - please make sure to rename this option asap.'),t.nonExplicitWhitelist&&!t.nonExplicitSupportedLngs&&this.logger.deprecate("whitelist",'options "nonExplicitWhitelist" will be renamed to "nonExplicitSupportedLngs" in the next major - please make sure to rename this option asap.'),this.options=a({},{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!1,whitelist:!1,nonExplicitWhitelist:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:"all",preload:!1,simplifyPluralSuffix:!0,keySeparator:".",nsSeparator:":",pluralSeparator:"_",contextSeparator:"_",partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:"fallback",saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!0,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:function(e){var t={};if("object"===r(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===r(e[2])||"object"===r(e[3])){var n=e[3]||e[2];Object.keys(n).forEach((function(e){t[e]=n[e]}))}return t},interpolation:{escapeValue:!0,format:function(e,t,n,r){return e},prefix:"{{",suffix:"}}",formatSeparator:",",unescapePrefix:"-",nestingPrefix:"$t(",nestingSuffix:")",nestingOptionsSeparator:",",maxReplaces:1e3,skipOnVariables:!1}},this.options,F(t)),this.format=this.options.interpolation.format,n||(n=$),!this.options.isClone){this.modules.logger?y.init(o(this.modules.logger),this.options):y.init(null,this.options);var i=new I(this.options);this.store=new C(this.options.resources,this.options);var s=this.services;s.logger=y,s.resourceStore=this.store,s.languageUtils=i,s.pluralResolver=new V(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),s.interpolator=new B(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new U(o(this.modules.backend),s.resourceStore,s,this.options),s.backendConnector.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(s.languageDetector=o(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=o(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new j(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){var u=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);u.length>0&&"dev"!==u[0]&&(this.options.lng=u[0])}this.services.languageDetector||this.options.lng||this.logger.warn("init: no languageDetector is used and no lng is defined"),["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}})),["addResource","addResources","addResourceBundle","removeResourceBundle"].forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var c=m(),l=function(){var t=function(t,r){e.isInitialized&&e.logger.warn("init: i18next is already initialized. You should call init just once!"),e.isInitialized=!0,e.options.isClone||e.logger.log("initialized",e.options),e.emit("initialized",e.options),c.resolve(r),n(t,r)};if(e.languages&&"v1"!==e.options.compatibilityAPI&&!e.isInitialized)return t(null,e.t.bind(e));e.changeLanguage(e.options.lng,t)};return this.options.resources||!this.options.initImmediate?l():setTimeout(l,0),c}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,r="string"==typeof e?e:this.language;if("function"==typeof e&&(n=e),!this.options.resources||this.options.partialBundledLanguages){if(r&&"cimode"===r.toLowerCase())return n();var o=[],i=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};r?i(r):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach((function(e){return i(e)})),this.options.preload&&this.options.preload.forEach((function(e){return i(e)})),this.services.backendConnector.load(o,this.options.ns,n)}else n(null)}},{key:"reloadResources",value:function(e,t,n){var r=m();return e||(e=this.languages),t||(t=this.options.ns),n||(n=$),this.services.backendConnector.reload(e,t,(function(e){r.resolve(),n(e)})),r}},{key:"use",value:function(e){if(!e)throw new Error("You are passing an undefined module! Please check the object you are passing to i18next.use()");if(!e.type)throw new Error("You are passing a wrong module! Please check the object you are passing to i18next.use()");return"backend"===e.type&&(this.modules.backend=e),("logger"===e.type||e.log&&e.warn&&e.error)&&(this.modules.logger=e),"languageDetector"===e.type&&(this.modules.languageDetector=e),"i18nFormat"===e.type&&(this.modules.i18nFormat=e),"postProcessor"===e.type&&x.addPostProcessor(e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=m();this.emit("languageChanging",e);var o=function(e){var o="string"==typeof e?e:n.services.languageUtils.getBestMatchFromCodes(e);o&&(n.language||(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o)),n.translator.language||n.translator.changeLanguage(o),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(o)),n.loadResources(o,(function(e){!function(e,o){o?(n.language=o,n.languages=n.services.languageUtils.toResolveHierarchy(o),n.translator.changeLanguage(o),n.isLanguageChangingTo=void 0,n.emit("languageChanged",o),n.logger.log("languageChanged",o)):n.isLanguageChangingTo=void 0,r.resolve((function(){return n.t.apply(n,arguments)})),t&&t(e,(function(){return n.t.apply(n,arguments)}))}(e,o)}))};return e||!this.services.languageDetector||this.services.languageDetector.async?!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect(o):o(e):o(this.services.languageDetector.detect()),r}},{key:"getFixedT",value:function(e,t){var n=this,o=function e(t,o){var i;if("object"!==r(o)){for(var s=arguments.length,u=new Array(s>2?s-2:0),c=2;c<s;c++)u[c-2]=arguments[c];i=n.options.overloadTranslationOptionHandler([t,o].concat(u))}else i=a({},o);return i.lng=i.lng||e.lng,i.lngs=i.lngs||e.lngs,i.ns=i.ns||e.ns,n.t(t,i)};return"string"==typeof e?o.lng=e:o.lngs=e,o.ns=t,o}},{key:"t",value:function(){var e;return this.translator&&(e=this.translator).translate.apply(e,arguments)}},{key:"exists",value:function(){var e;return this.translator&&(e=this.translator).exists.apply(e,arguments)}},{key:"setDefaultNamespace",value:function(e){this.options.defaultNS=e}},{key:"hasLoadedNamespace",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!this.isInitialized)return this.logger.warn("hasLoadedNamespace: i18next was not initialized",this.languages),!1;if(!this.languages||!this.languages.length)return this.logger.warn("hasLoadedNamespace: i18n.languages were undefined or empty",this.languages),!1;var r=this.languages[0],o=!!this.options&&this.options.fallbackLng,i=this.languages[this.languages.length-1];if("cimode"===r.toLowerCase())return!0;var a=function(e,n){var r=t.services.backendConnector.state["".concat(e,"|").concat(n)];return-1===r||2===r};if(n.precheck){var s=n.precheck(this,a);if(void 0!==s)return s}return!!this.hasResourceBundle(r,e)||!this.services.backendConnector.backend||!(!a(r,e)||o&&!a(i,e))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=m();return this.options.ns?("string"==typeof e&&(e=[e]),e.forEach((function(e){n.options.ns.indexOf(e)<0&&n.options.ns.push(e)})),this.loadResources((function(e){r.resolve(),t&&t(e)})),r):(t&&t(),Promise.resolve())}},{key:"loadLanguages",value:function(e,t){var n=m();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],o=e.filter((function(e){return r.indexOf(e)<0}));return o.length?(this.options.preload=r.concat(o),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){return e||(e=this.languages&&this.languages.length>0?this.languages[0]:this.language),e?["ar","shu","sqr","ssh","xaa","yhd","yud","aao","abh","abv","acm","acq","acw","acx","acy","adf","ads","aeb","aec","afb","ajp","apc","apd","arb","arq","ars","ary","arz","auz","avl","ayh","ayl","ayn","ayp","bbz","pga","he","iw","ps","pbt","pbu","pst","prp","prd","ug","ur","ydd","yds","yih","ji","yi","hbo","men","xmn","fa","jpr","peo","pes","prs","dv","sam"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>=0?"rtl":"ltr":"rtl"}},{key:"createInstance",value:function(){return new t(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},arguments.length>1?arguments[1]:void 0)}},{key:"cloneInstance",value:function(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:$,o=a({},this.options,n,{isClone:!0}),i=new t(o);return["store","services","language"].forEach((function(t){i[t]=e[t]})),i.services=a({},this.services),i.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i.translator=new j(i.services,i.options),i.translator.on("*",(function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];i.emit.apply(i,[e].concat(n))})),i.init(o,r),i.translator.options=i.options,i.translator.backendConnector.services.utils={hasLoadedNamespace:i.hasLoadedNamespace.bind(i)},i}}]),t}(b),Y=new W},302:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(875),t),o(n(209),t)},209:function(e,t){"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.trackedKeys=t.TizenRcKey=void 0,function(e){e.ArrowLeft="ArrowLeft",e.ArrowUp="ArrowUp",e.ArrowRight="ArrowRight",e.ArrowDown="ArrowDown",e.Enter="Enter",e.Back="Back",e.VolumeUp="VolumeUp",e.VolumeDown="VolumeDown",e.VolumeMute="VolumeMute",e.ChannelUp="ChannelUp",e.ChannelDown="ChannelDown",e.ChannelList="ChannelList",e.ColorF0Red="ColorF0Red",e.ColorF1Green="ColorF1Green",e.ColorF2Yellow="ColorF2Yellow",e.ColorF3Blue="ColorF3Blue",e.MediaPlayPause="MediaPlayPause",e.MediaRewind="MediaRewind",e.MediaFastForward="MediaFastForward",e.MediaPlay="MediaPlay",e.MediaPause="MediaPause",e.MediaStop="MediaStop",e.MediaRecord="MediaRecord",e.MediaTrackPrevious="MediaTrackPrevious",e.MediaTrackNext="MediaTrackNext",e.Num0="0",e.Num1="1",e.Num2="2",e.Num3="3",e.Num4="4",e.Num5="5",e.Num6="6",e.Num7="7",e.Num8="8",e.Num9="9",e.Minus="Minus",e.PreviousChannel="PreviousChannel",e.Menu="Menu",e.Tools="Tools",e.Info="Info",e.Source="Source",e.Exit="Exit",e.Caption="Caption",e["E-Manual"]="E-Manual",e["3D"]="3D",e.Extra="Extra",e.PictureSize="PictureSize",e.Soccer="Soccer",e.Teletext="Teletext",e.MTS="MTS",e.Search="Search",e.Guide="Guide"}(n||(n={})),t.TizenRcKey=n;var r=new Set(["ArrowLeft","ArrowUp","ArrowRight","ArrowDown","Enter","Back","MediaPlayPause","MediaRewind","MediaFastForward","MediaPlay","MediaPause","MediaStop","0","1","2","3","4","5","6","7","8","9"]);t.trackedKeys=r},875:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.initializeTizen=t.isTizenVersionGreaterThan=t.getTizenVersion=t.getTizenApi=t.getKeyCode=void 0;var i=n(405),a=n(209),s=new i.Logger("tizen"),u=function(){return"undefined"==typeof tizen?null:tizen};t.getTizenApi=u;var c=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)},l=function(){if(!u())return null;var e=u().systeminfo.getCapability("http://tizen.org/feature/platform.version"),t=e.split("."),n=t[0],r=t[1];return{version:e,major:c(n),minor:c(r)}};t.getTizenVersion=l,t.isTizenVersionGreaterThan=function(e){var t=l();return Boolean(t&&t.major>e)};var f=new Map,d=function(e){return r(void 0,void 0,void 0,(function(){var t,n;return o(this,(function(r){switch(r.label){case 0:t=new Promise((function(t,n){var r=e.tvinputdevice.getSupportedKeys().map((function(e){return e.name})).filter((function(e){return a.trackedKeys.has(e)}));e.tvinputdevice.registerKeyBatch(r,t,n)})),r.label=1;case 1:return r.trys.push([1,3,,4]),s.info("Initializing RC keys..."),[4,t];case 2:return r.sent(),s.info("RC keys are ready."),[3,4];case 3:return n=r.sent(),s.error("Failed to initialize listening to RC keys. This may be caused by a missing privilege http://tizen.org/privilege/tv.inputdevice.",n.message),[3,4];case 4:return[2]}}))}))};t.getKeyCode=function(e){var t;return null!==(t=f.get(e))&&void 0!==t?t:null},t.initializeTizen=function(){return r(void 0,void 0,void 0,(function(){var e;return o(this,(function(t){switch(t.label){case 0:return(e=u())?(function(e){var t=e.tvinputdevice.getSupportedKeys();t.forEach((function(e){f.set(e.name,e.code)})),s.info("Keycode map has been initialized",t)}(e),[4,d(e)]):[2];case 1:return t.sent(),[2]}}))}))}},586:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(308),t)},308:function(e,t){"use strict";function n(e,t,n){var r;if(!n)return e;var o=t.find((function(e){return e.id===n})),i=null===(r=null==o?void 0:o.survey)||void 0===r?void 0:r.age,a=(null==i?void 0:i.kidsOnly)?"kids":"adults";return e.filter((function(e){var t=e.showForUserProfileType;return!t||t[a]}))}Object.defineProperty(t,"__esModule",{value:!0}),t.filterScreensForProfileId=t.filterScreensBasedOnActiveUserProfile=void 0,t.filterScreensBasedOnActiveUserProfile=function(e,t){var r,o;return n(e,null!==(r=null==t?void 0:t.profiles)&&void 0!==r?r:[],null!==(o=null==t?void 0:t.activeUserProfileId)&&void 0!==o?o:null)},t.filterScreensForProfileId=n},877:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useT=t.useI18n=void 0;var r=n(156),o=n(799);t.useI18n=function(){return(0,r.useContext)(o.I18nContext).i18n},t.useT=function(){var e=(0,t.useI18n)();return e?e.t.bind(e):function(e){return e}}},799:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.I18nContextProvider=t.I18nContext=void 0;var s=a(n(88)),u=i(n(156)),c=n(405),l=n(71),f=new c.Logger("language");t.I18nContext=(0,u.createContext)({i18n:null}),t.I18nContextProvider=function(e){var n=e.children,r=e.translations,o=(0,u.useState)({i18n:null}),i=o[0],a=o[1],c=(0,u.useContext)(l.LanguageContext).language;return(0,u.useLayoutEffect)((function(){f.info("initializing language",c),function(e,t){return new Promise((function(n,r){n(s.default.createInstance({lng:t,resources:e},(function(e){e&&r(e)})))}))}(r,c).then((function(e){a({i18n:e})}))}),[]),(0,u.useLayoutEffect)((function(){i.i18n&&(f.info("changing language",c),i.i18n.changeLanguage(c),a({i18n:i.i18n}))}),[c]),u.default.createElement(t.I18nContext.Provider,{value:i},n)}},250:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(877),t),o(n(799),t),o(n(71),t),o(n(164),t)},71:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageContextProvider=t.LanguageContext=void 0;var a=n(718),s=i(n(156)),u=n(405),c=n(116),l=new u.Logger("language");t.LanguageContext=(0,s.createContext)({language:a.LangCode.EN,selectLanguage:function(){}}),t.LanguageContextProvider=function(e){var n=e.language,r=e.children,o=(0,s.useState)((0,c.normalizeLanguage)(n)),i=o[0],a=o[1];(0,s.useLayoutEffect)((function(){var e=(0,c.normalizeLanguage)(n);a(e),l.info("Setting language (passed as prop): ".concat(e," (before normalization: ").concat(n,")"))}),[n]);var u=(0,s.useCallback)((function(e){l.info("Setting language: ".concat(e)),a(e)}),[]);return s.default.createElement(t.LanguageContext.Provider,{value:{language:i,selectLanguage:u}},r)}},164:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},116:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.normalizeLanguage=void 0;var r=n(718),o=new(n(405).Logger)("i18n");t.normalizeLanguage=function(e){if(null==e)return r.LangCode.EN;var t=e.toLocaleLowerCase();return"cs"===t||"cz"===t||"cze"===t||"ces"===t?r.LangCode.CS:"sk"===t||"slk"===t||"slo"===t?r.LangCode.SK:("en"===t||"eng"===t||o.warn("Unrecognized language (input: ".concat(e,"). Falling back to ENG")),r.LangCode.EN)}},368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.LanguageContextProviderProps=t.I18nContextProviderProps=t.I18nContextProvider=t.LanguageContextProvider=t.useT=t.filterScreensForProfileId=t.filterScreensBasedOnActiveUserProfile=void 0;var i=n(21);o(n(405),t);var a=n(586);Object.defineProperty(t,"filterScreensBasedOnActiveUserProfile",{enumerable:!0,get:function(){return a.filterScreensBasedOnActiveUserProfile}}),Object.defineProperty(t,"filterScreensForProfileId",{enumerable:!0,get:function(){return a.filterScreensForProfileId}});var s=n(250);Object.defineProperty(t,"useT",{enumerable:!0,get:function(){return s.useT}}),Object.defineProperty(t,"LanguageContextProvider",{enumerable:!0,get:function(){return s.LanguageContextProvider}}),Object.defineProperty(t,"I18nContextProvider",{enumerable:!0,get:function(){return s.I18nContextProvider}}),Object.defineProperty(t,"I18nContextProviderProps",{enumerable:!0,get:function(){return s.I18nContextProviderProps}}),Object.defineProperty(t,"LanguageContextProviderProps",{enumerable:!0,get:function(){return s.LanguageContextProviderProps}}),o(n(302),t),(0,i.polyfill)()},21:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.polyfill=void 0,t.polyfill=function(){"object"==typeof window&&"object"==typeof document&&window.addEventListener("load",(function(){var e=document.createElement("script");e.src="https://polyfill.io/v3/polyfill.min.js?features=String.prototype.normalize",e.id="tivio-polyfill-string-prototype-normalize",document.head.appendChild(e)}))}},122:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRandomItem=t.addOrReplace=t.replaceWithoutOverwritingValues=t.chunkArray=t.uniqueFilter=t.notEmptyFilter=void 0,t.notEmptyFilter=function(e){return!!e},t.uniqueFilter=function(e,t,n){return n.indexOf(e)===t},t.chunkArray=function(e,t){var n,r=e.length,o=[];for(n=0;n<r;n+=t){var i=e.slice(n,n+t);o.push(i)}return o},t.replaceWithoutOverwritingValues=function(e,t,n){var r=[];return t.forEach((function(t){var o=e.find((function(e){return n(t,e)}));r.push(null!=o?o:t)})),r},t.addOrReplace=function(e,t,n){void 0===n&&(n=function(e,t){return e===t});var r=e.findIndex((function(e){return n(t,e)}));return-1!==r?e[r]=t:e.push(t),e},t.getRandomItem=function(e){return e.length?e[Math.floor(Math.random()*e.length)]:null}},39:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.transparentOnePixel=void 0,t.transparentOnePixel="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAYAAAAfFcSJAAABhGlDQ1BJQ0MgcHJvZmlsZQAAKJF9kT1Iw0AcxV9TpSJVByuIOmSoThZERRy1CkWoEGqFVh1MLv0QmjQkKS6OgmvBwY/FqoOLs64OroIg+AHi6OSk6CIl/i8ptIjx4Lgf7+497t4BQq3ENKttDNB020wl4mImuyKGXhFGH7oxiIDMLGNWkpLwHV/3CPD1Lsaz/M/9ObrUnMWAgEg8wwzTJl4nntq0Dc77xBFWlFXic+JRky5I/Mh1xeM3zgWXBZ4ZMdOpOeIIsVhoYaWFWdHUiCeJo6qmU76Q8VjlvMVZK1VY4578heGcvrzEdZpDSGABi5AgQkEFGyjBRoxWnRQLKdqP+/gHXL9ELoVcG2DkmEcZGmTXD/4Hv7u18hPjXlI4DrS/OM7HMBDaBepVx/k+dpz6CRB8Bq70pr9cA6Y/Sa82tegR0LMNXFw3NWUPuNwB+p8M2ZRdKUhTyOeB9zP6pizQewt0rnq9NfZx+gCkqavkDXBwCIwUKHvN590drb39e6bR3w8rGHKKfOy+ZAAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAAuIwAALiMBeKU/dgAAAAd0SU1FB+YMFQ4bMCuPzq8AAAAZdEVYdENvbW1lbnQAQ3JlYXRlZCB3aXRoIEdJTVBXgQ4XAAAAC0lEQVQI12NgAAIAAAUAAeImBZsAAAAASUVORK5CYII="},741:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0;var n=function(){function e(e){var t,n;this.enabled=!0,this.map=new Map,this.max=null!==(t=null==e?void 0:e.max)&&void 0!==t?t:1e3,this.convertKey=null!==(n=null==e?void 0:e.convertKey)&&void 0!==n?n:function(e){return e}}return e.prototype.set=function(e,t){this.enabled&&(this.map.size>this.max&&this.map.clear(),this.map.set(this.convertKey(e),t))},e.prototype.get=function(e){var t;return null!==(t=this.map.get(this.convertKey(e)))&&void 0!==t?t:null},e.prototype.has=function(e){return!!this.enabled&&this.map.has(this.convertKey(e))},e.prototype.getSize=function(){return this.map.size},e.prototype.disable=function(){this.enabled=!1},e}();t.Cache=n},530:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.onceAsync=t.once=void 0,t.once=function(e){var t=!1,n=null;return function(){return t||(n=e(),t=!0),n}},t.onceAsync=function(e){var t=!1,o=null;return function(){return n(void 0,void 0,void 0,(function(){return r(this,(function(n){switch(n.label){case 0:return t?[2,o]:(t=!0,[4,e()]);case 1:return[2,o=n.sent()]}}))}))}}},742:function(e,t){"use strict";var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.dateComparator=t.stringComparator=t.booleanComparator=t.numberComparator=t.BooleanSortDirection=t.SortDirection=void 0,function(e){e.ASC="ASC",e.DESC="DESC"}(n=t.SortDirection||(t.SortDirection={})),function(e){e.TRUE_FIRST="TRUE_FIRST",e.FALSE_FIRST="FALSE_FIRST"}(r=t.BooleanSortDirection||(t.BooleanSortDirection={})),t.numberComparator=function(e,t,r){return void 0===r&&(r=n.ASC),r===n.ASC?e-t:t-e},t.booleanComparator=function(e,o,i){return void 0===i&&(i=n.DESC),i===r.TRUE_FIRST?i=n.DESC:i===r.FALSE_FIRST&&(i=n.ASC),(0,t.numberComparator)(Number(e),Number(o),i)},t.stringComparator=function(e,t){return e<t?-1:1},t.dateComparator=function(e,r,o){return void 0===o&&(o=n.ASC),(0,t.numberComparator)(e.getTime(),r.getTime(),o)}},569:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(742),t),o(n(482),t)},482:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.globalsFirstRestAlphabeticallyComparator=t.alphabeticComparator=t.sortAlphabetically=void 0;var r=n(742);t.sortAlphabetically=function(e){return e.sort((function(e,t){return(0,r.stringComparator)(e.name,t.name)}))},t.alphabeticComparator=function(e,t){return(0,r.stringComparator)(e.name,t.name)},t.globalsFirstRestAlphabeticallyComparator=function(e,t){var n,o;return(0,r.booleanComparator)(null!==(n=e.isGlobal)&&void 0!==n&&n,null!==(o=t.isGlobal)&&void 0!==o&&o)||(0,r.stringComparator)(e.name,t.name)}},484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.overrideDevice=t.isWebsite=t.isWebos=t.isTv=t.isTizen=t.isTabletBrowser=t.isWebTv=t.isSafari=t.isReactNative=t.isNewArris=t.isNativeTablet=t.isNativeMobile=t.isMobileBrowser=t.isLocalStorageEnabled=t.isIos=t.isIndexedDbSupported=t.isCookiesEnabled=t.isBrowserCompatible=t.isArris=t.getOsType=t.getDeviceInfo=t.getArrisModelNumber=t.MOBILE_OPERATING_SYSTEMS=t.TV_OPERATING_SYSTEMS=void 0;var r=n(718),o=n(924),i="undefined";t.TV_OPERATING_SYSTEMS=["Tizen","webOS","Android TV","tvOS"],t.MOBILE_OPERATING_SYSTEMS=["iOS","Android OS","BlackBerry OS","Windows Mobile","Amazon OS"];var a=function(){return typeof window!==i&&typeof document!==i};t.isBrowserCompatible=a,t.isMobileBrowser=function(){var e,t=!1;return e=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=!0),t},t.isTabletBrowser=function(){var e,t=null===(e=null===navigator||void 0===navigator?void 0:navigator.userAgent)||void 0===e?void 0:e.toLowerCase();return/(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/.test(t)};var s=function(){return"object"==typeof navigator&&"ReactNative"===navigator.product};t.isReactNative=s,t.isNativeMobile=function(){var e=v();return s()&&(null==e?void 0:e.platform)===r.PLATFORM.MOBILE&&!(null==e?void 0:e.isTablet)},t.isNativeTablet=function(){var e;return s()&&(null===(e=v())||void 0===e?void 0:e.isTablet)},t.isCookiesEnabled=function(){if(!a()||"string"!=typeof document.cookie)return!1;document.cookie="tiviocookietest=1";var e=-1!=document.cookie.indexOf("tiviocookietest=");return document.cookie="tiviocookietest=1; expires=Thu, 01-Jan-1970 00:00:01 GMT",e},t.isLocalStorageEnabled=function(){if(!a()||typeof window.localStorage===i)return!1;var e="tiviolocalstoragetest";try{return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}};var u=function(){return a()&&typeof window.tizen!==i};t.isTizen=u;var c=function(){return a()&&typeof window.webOS!==i};t.isWebos=c;var l=function(){var e;return"arris"===(null===(e=d.info)||void 0===e?void 0:e.type)||a()&&typeof window.toi!==i};t.isArris=l;var f=function(){return u()||c()||l()};t.isWebTv=f,t.isTv=function(){var e;return(null===(e=v())||void 0===e?void 0:e.platform)===r.PLATFORM.TV},t.isWebsite=function(){return!!a()&&(window.tivioDeviceOverride?"web"===window.tivioDeviceOverride:!f()&&!s())},t.isIndexedDbSupported=function(){return window&&null!=window.indexedDB&&null!=window.IDBCursor&&null!=window.IDBCursorWithValue&&null!=window.IDBDatabase&&null!=window.IDBFactory&&null!=window.IDBIndex&&null!=window.IDBKeyRange&&null!=window.IDBObjectStore&&null!=window.IDBOpenDBRequest&&null!=window.IDBRequest&&null!=window.IDBTransaction&&null!=window.IDBVersionChangeEvent},t.isSafari=function(){var e=(0,o.detect)();return"safari"==(null==e?void 0:e.name)},t.isIos=function(){var e=(0,o.detect)();return"iOS"==(null==e?void 0:e.os)};var d={info:null};t.overrideDevice=function(e){d.info=e};var p=function(e){var t=e.replace("VIP",""),n=parseInt(t);return Number.isFinite(n)?n:null};t.getArrisModelNumber=p;var v=function(){if(d.info)switch(d.info.type){case"arris":return{os:"Arris",platform:r.PLATFORM.TV};case"react-native":if(!d.info.os)break;return"Android OS"===(e=d.info.os)?e=d.info.platform===r.PLATFORM.TV?"Android TV":"Android OS":"iOS"===e&&(e=d.info.platform===r.PLATFORM.TV?"tvOS":"iOS"),{os:e,version:d.info.osVersion,platform:d.info.platform,isTablet:d.info.isTablet};default:console.warn("Unexpected device info object ".concat(JSON.stringify(d.info)))}return u()?{os:"Tizen",platform:r.PLATFORM.TV}:c()?{os:"webOS",platform:r.PLATFORM.TV}:l()?{os:"Arris",platform:r.PLATFORM.TV}:(null===navigator||void 0===navigator?void 0:navigator.userAgent)&&(e=(0,o.detectOS)(navigator.userAgent))?{os:e,platform:r.PLATFORM.WEB}:void 0;var e};t.getDeviceInfo=v,t.isNewArris=function(e){var t;if(!e)return!1;if("arris"!==e.type)return!1;var n=p(null!==(t=e.model)&&void 0!==t?t:"");return null!=n&&n>=4e3},t.getOsType=function(e){return t.TV_OPERATING_SYSTEMS.includes(e)?"tv":t.MOBILE_OPERATING_SYSTEMS.includes(e)?"mobile":"desktop"}},174:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.injectScriptToHead=t.injectScriptsToHead=void 0;var o=function(e){return new Promise((function(t,n){var r=document.createElement("script");r.type="text/javascript",r.src=e,r.onload=function(){return t()},r.onabort=function(){return n()},document.getElementsByTagName("head")[0].appendChild(r)}))};t.injectScriptToHead=o,t.injectScriptsToHead=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,Promise.all(e.map(o))]}))}))}},447:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.executeAsNewEventLoopJob=void 0,t.executeAsNewEventLoopJob=function(e){setTimeout(e)}},479:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.msToMMSS=t.msToMinutesString=t.getTime=t.formatCurrency=t.formatEpisode=t.toTwoPlaces=void 0,t.toTwoPlaces=function(e){return e<10?"0".concat(e):"".concat(e)},t.formatEpisode=function(e,n){return"S".concat((0,t.toTwoPlaces)(e),"E").concat((0,t.toTwoPlaces)(n))},t.formatCurrency=function(e){switch(e){case"CZK":return"Kč";case"EUR":return"€";case"USD":return"$"}},t.getTime=function(e){var t=Math.floor(e/1e3);return{minutes:Math.floor(t/60),seconds:t%60}},t.msToMinutesString=function(e){var n=(0,t.getTime)(e).minutes;return"".concat(n," min")},t.msToMMSS=function(e){var n=(0,t.getTime)(e),r=n.minutes,o=n.seconds;return"".concat(r,":").concat((0,t.toTwoPlaces)(o))}},128:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isElementOverflown=void 0,t.isElementOverflown=function(e){return e&&(e.clientWidth<e.scrollWidth||e.clientHeight<e.scrollHeight)}},513:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.preloadImages=t.preloadImage=void 0,t.preloadImage=function(e){return new Promise((function(t,n){var r=new Image;r.src=e,r.onload=t,r.onerror=function(){n("image failed to load (uri:".concat(e,")"))}}))},t.preloadImages=function(e){return Promise.all(e.map(t.preloadImage))}},405:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(122),t),o(n(39),t),o(n(741),t),o(n(530),t),o(n(569),t),o(n(484),t),o(n(174),t),o(n(447),t),o(n(479),t),o(n(128),t),o(n(513),t),o(n(783),t),o(n(893),t),o(n(341),t),o(n(647),t),o(n(40),t),o(n(956),t),o(n(821),t),o(n(369),t),o(n(215),t)},783:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.Logger=t.createLogger=void 0;var o=n(484),i=function(){function e(e){this.name=e,this._isEnabled=!0}return e.initialize=function(){(0,o.isBrowserCompatible)()&&(window.onerror=function(t){var n,r;"string"==typeof t?null===(n=e.onLog)||void 0===n||n.call(e,"error",{text:[t]}):null===(r=e.onLog)||void 0===r||r.call(e,"error",{classic:[t]})})},e.shouldUseLegacyLogger=function(){return e.legacy||(0,o.isArris)()},e.prototype.error=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("error",{classic:e})},e.prototype.warn=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("warn",{classic:e})},e.prototype.info=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.safeLog("info",{classic:e})},e.prototype.safeError=function(e){this.safeLog("error",e)},e.prototype.safeWarn=function(e){this.safeLog("warn",e)},e.prototype.safeInfo=function(e){this.safeLog("info",e)},e.prototype.safeLog=function(t,n){var r,o,i,a;this._isEnabled&&e.onLog&&(a=null!==(r=n.text)&&void 0!==r?r:n.classic)&&e.onLog(t,n),this.isEnabled()&&(e.shouldUseLegacyLogger()?(a=null!==(o=n.text)&&void 0!==o?o:(null!==(i=n.classic)&&void 0!==i?i:[]).map((function(e){return null==e?"falsy":e})).map((function(e){return JSON.stringify(e)}))).length>0&&this.legacyConsoleLogMessages(t,a):n.classic&&n.classic.length>0?this.log(t,n.classic):n.text&&n.text.length>0&&this.log(t,n.text))},e.prototype.off=function(){this._isEnabled=!1},e.prototype.on=function(){this._isEnabled=!0},e.prototype.forceInfo=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];console.info.apply(console,r(["".concat(e.prefix,":").concat(this.name)],t,!1))},e.prototype.isEnabled=function(){return e.enabled&&this._isEnabled},e.prototype.log=function(e,t){console[e].apply(console,r([this.getPrefix()],t,!1))},e.prototype.legacyConsoleLogMessages=function(e,t){var n=t.join(", ");console[e]("".concat(this.getPrefix()," ").concat(n))},e.prototype.getPrefix=function(){return"".concat(e.prefix,":").concat(this.name)},e.enabled=!0,e.legacy=!1,e.onLog=null,e.prefix="tivio",e}();t.Logger=i,i.initialize(),t.createLogger=function(e){return new i(e)}},893:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.toPercent=t.safeParseInt=t.round=t.random=t.keepNonNegative=t.isClose=t.intervalContainsPoint=t.intervalContains=t.getRandomNumberWithFixedLength=t.getPercentOf=t.clampPercent=t.clamp=t.roundWithStep=void 0,t.random=function(e){return Math.round(Math.random()*e)},t.getRandomNumberWithFixedLength=function(e){var t=Math.pow(10,e-1),n=Math.pow(10,e)-1;return Math.floor(Math.random()*(n-t+1))+t},t.safeParseInt=function(e,t){return void 0===t&&(t=0),parseInt(null!=e?e:t)};var n=function(e,t,n){return Math.min(Math.max(e,t),n)};t.clamp=n;var r=function(e){return n(e,0,100)};t.clampPercent=r,t.toPercent=function(e){return r(Math.round(100*e))},t.round=function(e,t){var n=Math.pow(10,t);return Math.round(e*n)/n},t.roundWithStep=function(e,t,n){switch(void 0===n&&(n="round"),n){case"round":return Math.round(e/t)*t;case"floor":return Math.floor(e/t)*t;case"ceil":return Math.ceil(e/t)*t;default:throw new Error("Unknown roundType ".concat(n))}},t.intervalContains=function(e,t){return e.from<t.from&&t.to<e.to},t.intervalContainsPoint=function(e,t){return e.from<=t&&t<=e.to},t.isClose=function(e,t,n){return Math.abs(e-t)<=n},t.getPercentOf=function(e,t){var n=Math.round(e/t*100);return isFinite(n)?r(n):null},t.keepNonNegative=function(e){return Math.max(0,e)}},341:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.stringToInteger=void 0,t.stringToInteger=function(e){return e&&Number.isInteger(Number(e))?Number(e):null}},647:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.truncateText=t.capitalizeText=t.removeNonAlphanumericChars=t.normalizeText=t.toKebabCase=t.toSnakeCase=t.removeAccents=void 0,t.removeAccents=function(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")},t.toSnakeCase=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"_").replace("-","_")},t.toKebabCase=function(e){return e.trim().toLocaleLowerCase().replace(/\s+/g,"-").replace("_","-")},t.normalizeText=function(e,n){void 0===n&&(n="snake-case");var r=(0,t.removeAccents)(e);return"snake-case"===n?(0,t.toSnakeCase)(r):(0,t.toKebabCase)(r)},t.removeNonAlphanumericChars=function(e,t){return e.replace(new RegExp("[^0-9a-zA-Z".concat(t,"]"),"g"),"")},t.capitalizeText=function(e){return(null==e?void 0:e.length)?e.charAt(0).toUpperCase()+e.substring(1).toLowerCase():""},t.truncateText=function(e,t){return e.length<=t?e:"".concat(e.slice(0,t),"...")}},40:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.roundTimeWithStep=t.generateConsecutiveDates=t.formatDuration=t.calendarDateDiff=t.getSemanticDate=t.getISODuration=t.isLessThanOneMonthBeforeToday=t.secondsToMilliseconds=t.getRelativeTime=t.getDuration=t.getMinsSecsHours=t.getMinsSecs=t.twoPlaces=t.getHours=t.getMins=t.getSecs=t.parseCzechDate=t.isInThePast=t.addSeconds=t.addMs=t.addMinutes=t.addHours=t.addDays=t.getCurrentTime=void 0;var o=n(718),i=r(n(879)),a=r(n(945)),s=r(n(30)),u=n(893);function c(e,t){return l(e,60*t)}function l(e,t){return d(e,60*t)}function f(e,t){return new Date(e.getTime()+t)}function d(e,t){return f(e,1e3*t)}function p(e,t){var n=null!=e?Math.floor(e/1e3):0;return t?n%60:n}function v(e,t){var n=null!=e?Math.floor(p(e)/60):0;return t?n%60:n}function h(e,t){var n=null!=e?Math.floor(v(e)/60):0;return t?n%24:n}function g(e){return e>=10?e:"0".concat(e)}i.default.extend(a.default),t.getCurrentTime=function(){return(0,i.default)()},t.addDays=function(e,t){return c(e,24*t)},t.addHours=c,t.addMinutes=l,t.addMs=f,t.addSeconds=d,t.isInThePast=function(e){return(0,i.default)(e).isBefore((0,i.default)())},t.parseCzechDate=function(e){var t=(0,i.default)(e,"D.M.YYYY H:mm").toDate(),n=1e3*t.getSeconds()+t.getMilliseconds();return new Date(t.getTime()-n)},t.getSecs=p,t.getMins=v,t.getHours=h,t.twoPlaces=g,t.getMinsSecs=function(e){if(e<0)return{mins:0,secs:0,text:"",textWordy:""};var t=v(e),n=p(e,!0),r="";return n&&(r="".concat(n," s")),t&&(r="".concat(t," min").concat(r.length>0?" "+r:"")),{mins:t,secs:n,text:"".concat(t,":").concat(g(n)),textWordy:r}},t.getMinsSecsHours=function(e){var t=h(e),n=v(e,!0),r=p(e,!0),o="".concat(n,":").concat(g(r));return t>0&&(4===o.length&&(o="0".concat(o)),o="".concat(t,":").concat(o)),{hours:t,mins:n,secs:r,text:o}},t.getDuration=function(e){if(null==e||e<0)return null;var t=Math.round(e/60);return"".concat(t," MIN")},t.getRelativeTime=function(e){if(null==e)return"";var t=((new Date).getTime()-e.getTime())/36e5,n=Math.floor(t);if(n<1)return"";if(n<24)return"".concat(n," HOURS AGO");var r=t/24,o=Math.floor(r);if(o<7)return"".concat(o," DAYS AGO");var i=r/7,a=Math.floor(i);if(a<5)return"".concat(a," WEEKS AGO");var s=r/30,u=Math.floor(s);if(u<12)return"".concat(u," MONTHS AGO");var c=r/365,l=Math.ceil(c);return"".concat(l," YEARS AGO")},t.secondsToMilliseconds=function(e){return null==e?null:1e3*Number(e)},t.isLessThanOneMonthBeforeToday=function(e){return i.default.extend(s.default),(0,i.default)(e).isBetween((0,i.default)().subtract(1,"month").startOf("day"),(0,i.default)().endOf("day"),"day","[]")},t.getISODuration=function(e){if(e<1)return"PT0S";var t=new Date(e),n=[["Y",t.getUTCFullYear()-1970],["M",t.getUTCMonth()],["D",t.getUTCDate()-1],["T",null],["H",t.getUTCHours()],["M",t.getUTCMinutes()],["S",t.getUTCSeconds()]].reduce((function(e,t){var n=t[0],r=t[1];return r?e+="".concat(r).concat(n):"T"===n&&(e+=n),e}),"");return n=n.endsWith("T")?n.slice(0,-1):n,"P".concat(n)};var y={"-1":o.SemanticDate.YESTERDAY,0:o.SemanticDate.TODAY,1:o.SemanticDate.TOMORROW};t.getSemanticDate=function(e,n){var r;void 0===n&&(n="DD.MM.YYYY");var o=(0,t.calendarDateDiff)(e,(0,i.default)());return null!==(r=y[o])&&void 0!==r?r:(0,i.default)(e).format(n)},t.calendarDateDiff=function(e,t,n){void 0===n&&(n="day");var r=(0,i.default)(e).startOf(n),o=(0,i.default)(t).startOf(n);return r.diff(o,n)},t.formatDuration=function(e,t,n){var r=(0,i.default)().startOf("day").add(e,t),o="",a=null!=n?n:{},s=a.hour,u=void 0===s?"h":s,c=a.minute,l=void 0===c?"m":c,f=a.seconds,d=void 0===f?"s":f;return r.hour()>0&&(o+="H[".concat(u,"] ")),r.minute()>0&&(o+="m[".concat(l,"]")),0===r.hour()&&0===r.minute()&&(o="s[".concat(d,"]")),o?r.format(o):""},t.generateConsecutiveDates=function(e,t,n){return void 0===t&&(t=(0,i.default)()),void 0===n&&(n="day"),Array.from(Array(e).keys()).map((function(e){return t.add(e,n).startOf(n)}))},t.roundTimeWithStep=function(e,t,n,r){void 0===r&&(r="round");var o=(0,u.roundWithStep)(e.get(t),n,r);return e.clone().set(t,o).startOf(t)}},821:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.generateVideoUrlNames=t.generateVideoUrlName=t.normalizeUrl=t.httpsToHttp=void 0;var o=n(718),i=n(647);t.httpsToHttp=function(e){return e.replace(/^https:/,"http:")},t.normalizeUrl=function(e){return(0,i.removeAccents)(e).toLowerCase().trim().replace(/([^a-z0-9- ])/g,"").replace(/ /g,"-").replace(/--+/g,"-")},t.generateVideoUrlName=function(e){var n,r="seriesName"in e?e.seriesName?"".concat(e.seriesName,"-s").concat(null!==(n=e.seasonNumber)&&void 0!==n?n:1,"-e").concat(e.episodeNumber):void 0:e.videoName;return r?(0,t.normalizeUrl)(r):r},t.generateVideoUrlNames=function(e){return Object.values(o.LangCode).reduce((function(n,o){var i=(0,t.generateVideoUrlName)("seriesName"in e?r(r({},e),{seriesName:e.seriesName[o]}):{videoName:"object"==typeof e.videoName?e.videoName[o]:e.videoName});return i&&(n[o]=[i]),n}),{})}},956:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getNameAbbreviation=void 0,t.getNameAbbreviation=function(e){return e.split(" ").map((function(e){return e.charAt(0).toUpperCase()})).join("")}},369:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.canBeVideoId=void 0,t.canBeVideoId=function(e){return!e.includes("-")||20===e.length}},215:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.spacing=t.size=t.viewport=t.getViewport=void 0;var r=n(484);t.getViewport=function(){var e=(0,r.isBrowserCompatible)()?Math.max(document.documentElement.clientWidth||0,window.innerWidth||0):0,t=(0,r.isBrowserCompatible)()?Math.max(document.documentElement.clientHeight||0,window.innerHeight||0):0;return{width:e,height:t,scaling:t?t/1080:1}};var o=function(e){return Math.floor(e*t.viewport.scaling)};t.size=o,t.spacing=function(e){return o(8*e)},t.viewport=(0,t.getViewport)()},156:function(e){"use strict";e.exports=r}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}return n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n(368)}())},8741:function(e){e.exports=function(){"use strict";var e={723:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(902),t)},902:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.VAST_PROVIDERS=t.VastProvider=void 0,function(e){e.CNC_PREBID="cnc-prebid",e.ETARGET_PREBID="etarget-prebid",e.FALLBACK_HLS="fallback-hls",e.FALLBACK_MP4="fallback",e.GARAZ_TV="garaz.tv",e.GARAZ_TV_DEV="garaz.tv.dev",e.IMPRESSION_MEDIA_PREBID="impressionMedia-prebid",e.JOJ="joj",e.JOJ_AD_MANAGER_VOD_PREROLL="joj-ad-manager-vod-preroll",e.JOJ_AD_MANAGER_VOD_MIDROLL="joj-ad-manager-vod-midroll",e.JOJ_AD_MANAGER_LIVE_PREROLL="joj-ad-manager-live-preroll",e.MALL_TV="malltv",e.MALL_TV_PREBID="malltv-prebid",e.PRIMA="prima",e.TEST="test",e.TEST_VPAID="test-vpaid",e.TIVIO_ADS="tivio-ads",e.JOJ_TEST_AD_FORM_PROGRAMMATIC="joj-test-ad-form-programmatic",e.JOJ_TEST_TESTER_VASTERIX="joj-test-tester-vasterix",e.JOJ_TEST_TESTER_ADFORM_30="joj-test-tester-adform-30"}(n=t.VastProvider||(t.VastProvider={})),t.VAST_PROVIDERS=[{id:n.ETARGET_PREBID,name:"Etarget Prebid"},{id:n.MALL_TV_PREBID,name:"MALL.TV Prebid"},{id:n.IMPRESSION_MEDIA_PREBID,name:"Impression Media Prebid"},{id:n.CNC_PREBID,name:"CNC Prebid"},{id:n.MALL_TV,name:"MALL.TV"},{id:n.JOJ,name:"JOJ"},{id:n.JOJ_AD_MANAGER_VOD_PREROLL,name:"JOJ AdManager VOD Preroll"},{id:n.JOJ_AD_MANAGER_VOD_MIDROLL,name:"JOJ AdManager VOD Midroll"},{id:n.JOJ_AD_MANAGER_LIVE_PREROLL,name:"JOJ AdManager Live Preroll"},{id:n.PRIMA,name:"Prima"},{id:n.GARAZ_TV,name:"Garaz TV"},{id:n.GARAZ_TV_DEV,name:"Garaz TV dev"},{id:n.FALLBACK_MP4,name:"Tivio fake ads - always working",development:!0},{id:n.FALLBACK_HLS,name:"Fallback (HLS)",development:!0},{id:n.TEST,name:"Test",development:!0},{id:n.TEST_VPAID,name:"Test VPAID",development:!0},{id:n.JOJ_TEST_AD_FORM_PROGRAMMATIC,name:"JOJ Test AdForm Programmatic"},{id:n.JOJ_TEST_TESTER_VASTERIX,name:"JOJ Test Vasterix"},{id:n.JOJ_TEST_TESTER_ADFORM_30,name:"JOJ Test Adform 30"},{id:n.TIVIO_ADS,name:"Tivio Ads"}].sort((function(e,t){return e.name<t.name?-1:e.name>t.name?1:0}))},920:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(895),t),o(n(216),t),o(n(723),t)},216:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},87:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},489:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},304:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PlayerWrapperEventType=void 0,(n=t.PlayerWrapperEventType||(t.PlayerWrapperEventType={})).adMetadata="adMetadata",n.markers="markers"},690:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.CustomerId=void 0,(n=t.CustomerId||(t.CustomerId={})).OKTAGON="OKTAGON",n.JOJ="JOJ",n.MALL="MALL",n.GARAZ="GARAZ",n.U_KULATEHO_STOLU="U_KULATEHO_STOLU",n.INVESTOREES="INVESTOREES",n.DVTV="DVTV",n.DVTV_DEV="DVTV_DEV",n.O2="O2",n.GRAPE="GRAPE",n.TIVIO="TIVIO",n.STORYBOOK="STORYBOOK",n.NANGU_DEV="NANGU_DEV"},801:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},2:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PLATFORM=void 0,(n=t.PLATFORM||(t.PLATFORM={})).MOBILE="MOBILE",n.WEB="WEB",n.TV="TV",n.UNKNOWN="unknown"},123:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},589:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},352:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(489),t),o(n(87),t),o(n(304),t),o(n(690),t),o(n(801),t),o(n(495),t),o(n(2),t),o(n(123),t),o(n(589),t),o(n(889),t),o(n(703),t),o(n(743),t),o(n(407),t),o(n(757),t)},889:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},495:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},703:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},743:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},407:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},757:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},255:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.RegistrationRedirect=t.LoginRedirect=t.SemanticDate=t.DEFAULT_ORDER_BY=t.CURRENCIES=t.languages=t.LangCode=void 0,function(e){e.CS="cs",e.DE="de",e.EN="en",e.FR="fr",e.IT="it",e.PL="pl",e.PT="pt",e.SK="sk",e.ES="es",e.HU="hu"}(n=t.LangCode||(t.LangCode={})),t.languages=Object.values(n),t.CURRENCIES=["CZK","EUR","USD"],t.DEFAULT_ORDER_BY=[{field:"created",directionStr:"desc"}],(o=t.SemanticDate||(t.SemanticDate={})).YESTERDAY="Yesterday",o.TODAY="Today",o.TOMORROW="Tomorrow",(r=t.LoginRedirect||(t.LoginRedirect={})).PAYMENT="payment",r.VOUCHER="voucher",(t.RegistrationRedirect||(t.RegistrationRedirect={})).PAYMENT="payment"},396:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},826:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},360:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.AnalyticsConversionPage=t.AnalyticsConversionTargetBase=t.AnalyticsConversionName=t.AnalyticsConversionStatus=void 0,(i=t.AnalyticsConversionStatus||(t.AnalyticsConversionStatus={})).SUCCESS="SUCCESS",i.FAILED="FAILED",(o=t.AnalyticsConversionName||(t.AnalyticsConversionName={})).CLICK="click",o.PLAY="play",o.PURCHASE="purchase",o.VISIT="visit",(r=t.AnalyticsConversionTargetBase||(t.AnalyticsConversionTargetBase={})).Element="element",r.Monetization="monetization",(n=t.AnalyticsConversionPage||(t.AnalyticsConversionPage={})).Videos="videos",n.Series="series",n.Profile="profile",n.Tags="tags",n.Screens="screens",n.Registration="registration",n.Login="login",n.About="about",n.ResetPassword="reset-password",n.Player="player",n.Redeem="redeem",n.Referral="referral",n.Pair="pair",n.Search="search"},202:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},129:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},278:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DrmProvider=void 0,(n=t.DrmProvider||(t.DrmProvider={})).STREAMONLINE="streamonline",n.INSYS="insys"},810:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},90:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ForbiddenReason=void 0,(n=t.ForbiddenReason||(t.ForbiddenReason={})).MONETIZATION="MONETIZATION",n.GEO_BLOCKING="GEO_BLOCKING"},786:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(396),t),o(n(360),t),o(n(826),t),o(n(202),t),o(n(129),t),o(n(278),t),o(n(810),t),o(n(90),t),o(n(959),t),o(n(788),t),o(n(910),t),o(n(726),t),o(n(523),t),o(n(738),t),o(n(535),t),o(n(161),t),o(n(605),t),o(n(190),t),o(n(522),t),o(n(614),t),o(n(656),t),o(n(906),t),o(n(300),t),o(n(363),t),o(n(948),t),o(n(635),t)},959:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.MONETIZATION_FREQUENCY=void 0,(n=t.MONETIZATION_FREQUENCY||(t.MONETIZATION_FREQUENCY={})).ONE_TIME_PAYMENT="ONE_TIME_PAYMENT",n.DAILY="DAILY",n.WEEKLY="WEEKLY",n.MONTHLY="MONTHLY",n.HALF_ANNUALLY="HALF_ANNUALLY",n.ANNUALLY="ANNUALLY"},788:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.UserGroup=t.NotificationStatus=void 0,(r=t.NotificationStatus||(t.NotificationStatus={})).PLANNED="planned",r.SENT="sent",(n=t.UserGroup||(t.UserGroup={})).ALL="all",n.FREE="free",n.PREMIUM="premium"},910:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},726:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DurationUnits=void 0,(n=t.DurationUnits||(t.DurationUnits={})).DAY="day",n.MONTH="month"},523:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseDocumentGateway=void 0,(n=t.PurchaseDocumentGateway||(t.PurchaseDocumentGateway={})).qerko="qerko",n.oktagon="oktagon",n.voucher="voucher",n.comgate="comgate"},738:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},535:function(e,t){var n,r,o,i;Object.defineProperty(t,"__esModule",{value:!0}),t.ROW_ITEM_TYPES=t.RowItemComponent=t.BannerItemComponent=t.RowComponent=void 0,(i=t.RowComponent||(t.RowComponent={})).ROW="ROW",i.BANNER="BANNER",(o=t.BannerItemComponent||(t.BannerItemComponent={})).CLASSIC="CLASSIC",o.SPLIT="SPLIT",(r=t.RowItemComponent||(t.RowItemComponent={})).ROW_ITEM_PORTRAIT="ROW_ITEM_PORTRAIT",r.ROW_ITEM_LANDSCAPE="ROW_ITEM_LANDSCAPE",r.ROW_ITEM_CIRCLED="ROW_ITEM_CIRCLED",(n=t.ROW_ITEM_TYPES||(t.ROW_ITEM_TYPES={})).VIDEO="VIDEO",n.TAG="TAG",n.TV_CHANNEL="TV_CHANNEL",n.ADVERTISEMENT="ADVERTISEMENT"},161:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},605:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.ALGOLIA_INDEX_NAME=void 0,(n=t.ALGOLIA_INDEX_NAME||(t.ALGOLIA_INDEX_NAME={})).VIDEOS="videos",n.VIDEOSDESC="videos_created_desc",n.TAGS="tags",n.TV_CHANNELS="tvChannels",n.USERS="users"},190:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},522:function(e,t){var n,r,o;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoSourceEncryption=t.VideoSourceCodec=t.VideoSourceProtocol=void 0,(o=t.VideoSourceProtocol||(t.VideoSourceProtocol={})).HLS="hls",o.DASH="dash",o.MP4="mp4",(r=t.VideoSourceCodec||(t.VideoSourceCodec={})).H264="h264",r.H265="h265",(n=t.VideoSourceEncryption||(t.VideoSourceEncryption={})).NONE="none",n.WIDEVINE="widevine",n.FAIRPLAY="fairplay",n.PLAYREADY="playready"},614:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},656:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},906:function(e,t){var n;Object.defineProperty(t,"__esModule",{value:!0}),t.TvChannelType=void 0,(n=t.TvChannelType||(t.TvChannelType={})).CLASSIC="CLASSIC",n.VIRTUAL="VIRTUAL"},300:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},363:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.PurchaseStatus=t.UserType=void 0,(r=t.UserType||(t.UserType={})).ORGANIZATION_USER="ORGANIZATION_USER",r.TIVIO_USER="TIVIO_USER",(n=t.PurchaseStatus||(t.PurchaseStatus={})).NEW="NEW",n.PAID="PAID",n.CANCELLED="CANCELLED",n.ERROR="ERROR",n.BLOCKED="BLOCKED"},948:function(e,t){var n,r;Object.defineProperty(t,"__esModule",{value:!0}),t.VideoType=t.VideoContentType=void 0,(r=t.VideoContentType||(t.VideoContentType={})).VIDEO="VIDEO",r.FILM="FILM",r.SERIES="SERIES",(n=t.VideoType||(t.VideoType={})).PLAYLIST="PLAYLIST",n.VIDEO="VIDEO",n.CUT="CUT",n.TRAILER="TRAILER",n.TV_PROGRAM="TV_PROGRAM",n.SERIES="SERIES"},635:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})},895:function(e,t,n){var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(786),t),o(n(352),t),o(n(255),t),o(n(620),t)},620:function(e,t){Object.defineProperty(t,"__esModule",{value:!0})}},t={};return function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={exports:{}};return e[r].call(i.exports,i,i.exports,n),i.exports}(920)}()},8879:function(e){e.exports=function(){"use strict";var e=6e4,t=36e5,n="millisecond",r="second",o="minute",i="hour",a="day",s="week",u="month",c="quarter",l="year",f="date",d="Invalid Date",p=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,v=/\[([^\]]+)]|Y{1,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,h={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("_"),ordinal:function(e){var t=["th","st","nd","rd"],n=e%100;return"["+e+(t[(n-20)%10]||t[n]||t[0])+"]"}},g=function(e,t,n){var r=String(e);return!r||r.length>=t?e:""+Array(t+1-r.length).join(n)+e},y={s:g,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),o=n%60;return(t<=0?"+":"-")+g(r,2,"0")+":"+g(o,2,"0")},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),o=t.clone().add(r,u),i=n-o<0,a=t.clone().add(r+(i?-1:1),u);return+(-(r+(n-o)/(i?o-a:a-o))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:u,y:l,w:s,d:a,D:f,h:i,m:o,s:r,ms:n,Q:c}[e]||String(e||"").toLowerCase().replace(/s$/,"")},u:function(e){return void 0===e}},b="en",m={};m[b]=h;var _=function(e){return e instanceof S},O=function e(t,n,r){var o;if(!t)return b;if("string"==typeof t){var i=t.toLowerCase();m[i]&&(o=i),n&&(m[i]=n,o=i);var a=t.split("-");if(!o&&a.length>1)return e(a[0])}else{var s=t.name;m[s]=t,o=s}return!r&&o&&(b=o),o||!r&&b},P=function(e,t){if(_(e))return e.clone();var n="object"==typeof t?t:{};return n.date=e,n.args=arguments,new S(n)},w=y;w.l=O,w.i=_,w.w=function(e,t){return P(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var S=function(){function h(e){this.$L=O(e.locale,null,!0),this.parse(e)}var g=h.prototype;return g.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(null===t)return new Date(NaN);if(w.u(t))return new Date;if(t instanceof Date)return new Date(t);if("string"==typeof t&&!/Z$/i.test(t)){var r=t.match(p);if(r){var o=r[2]-1||0,i=(r[7]||"0").substring(0,3);return n?new Date(Date.UTC(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)):new Date(r[1],o,r[3]||1,r[4]||0,r[5]||0,r[6]||0,i)}}return new Date(t)}(e),this.$x=e.x||{},this.init()},g.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},g.$utils=function(){return w},g.isValid=function(){return!(this.$d.toString()===d)},g.isSame=function(e,t){var n=P(e);return this.startOf(t)<=n&&n<=this.endOf(t)},g.isAfter=function(e,t){return P(e)<this.startOf(t)},g.isBefore=function(e,t){return this.endOf(t)<P(e)},g.$g=function(e,t,n){return w.u(e)?this[t]:this.set(n,e)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(e,t){var n=this,c=!!w.u(t)||t,d=w.p(e),p=function(e,t){var r=w.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return c?r:r.endOf(a)},v=function(e,t){return w.w(n.toDate()[e].apply(n.toDate("s"),(c?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,y=this.$D,b="set"+(this.$u?"UTC":"");switch(d){case l:return c?p(1,0):p(31,11);case u:return c?p(1,g):p(0,g+1);case s:var m=this.$locale().weekStart||0,_=(h<m?h+7:h)-m;return p(c?y-_:y+(6-_),g);case a:case f:return v(b+"Hours",0);case i:return v(b+"Minutes",1);case o:return v(b+"Seconds",2);case r:return v(b+"Milliseconds",3);default:return this.clone()}},g.endOf=function(e){return this.startOf(e,!1)},g.$set=function(e,t){var s,c=w.p(e),d="set"+(this.$u?"UTC":""),p=(s={},s[a]=d+"Date",s[f]=d+"Date",s[u]=d+"Month",s[l]=d+"FullYear",s[i]=d+"Hours",s[o]=d+"Minutes",s[r]=d+"Seconds",s[n]=d+"Milliseconds",s)[c],v=c===a?this.$D+(t-this.$W):t;if(c===u||c===l){var h=this.clone().set(f,1);h.$d[p](v),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](v);return this.init(),this},g.set=function(e,t){return this.clone().$set(e,t)},g.get=function(e){return this[w.p(e)]()},g.add=function(n,c){var f,d=this;n=Number(n);var p=w.p(c),v=function(e){var t=P(d);return w.w(t.date(t.date()+Math.round(e*n)),d)};if(p===u)return this.set(u,this.$M+n);if(p===l)return this.set(l,this.$y+n);if(p===a)return v(1);if(p===s)return v(7);var h=(f={},f[o]=e,f[i]=t,f[r]=1e3,f)[p]||1,g=this.$d.getTime()+n*h;return w.w(g,this)},g.subtract=function(e,t){return this.add(-1*e,t)},g.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||d;var r=e||"YYYY-MM-DDTHH:mm:ssZ",o=w.z(this),i=this.$H,a=this.$m,s=this.$M,u=n.weekdays,c=n.months,l=function(e,n,o,i){return e&&(e[n]||e(t,r))||o[n].slice(0,i)},f=function(e){return w.s(i%12||12,e,"0")},p=n.meridiem||function(e,t,n){var r=e<12?"AM":"PM";return n?r.toLowerCase():r},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:w.s(s+1,2,"0"),MMM:l(n.monthsShort,s,c,3),MMMM:l(c,s),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:l(n.weekdaysMin,this.$W,u,2),ddd:l(n.weekdaysShort,this.$W,u,3),dddd:u[this.$W],H:String(i),HH:w.s(i,2,"0"),h:f(1),hh:f(2),a:p(i,a,!0),A:p(i,a,!1),m:String(a),mm:w.s(a,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:o};return r.replace(v,(function(e,t){return t||h[e]||o.replace(":","")}))},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(n,f,d){var p,v=w.p(f),h=P(n),g=(h.utcOffset()-this.utcOffset())*e,y=this-h,b=w.m(this,h);return b=(p={},p[l]=b/12,p[u]=b,p[c]=b/3,p[s]=(y-g)/6048e5,p[a]=(y-g)/864e5,p[i]=y/t,p[o]=y/e,p[r]=y/1e3,p)[v]||y,d?b:w.a(b)},g.daysInMonth=function(){return this.endOf(u).$D},g.$locale=function(){return m[this.$L]},g.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=O(e,t,!0);return r&&(n.$L=r),n},g.clone=function(){return w.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},h}(),T=S.prototype;return P.prototype=T,[["$ms",n],["$s",r],["$m",o],["$H",i],["$W",a],["$M",u],["$y",l],["$D",f]].forEach((function(e){T[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),P.extend=function(e,t){return e.$i||(e(t,S,P),e.$i=!0),P},P.locale=O,P.isDayjs=_,P.unix=function(e){return P(1e3*e)},P.en=m[b],P.Ls=m,P.p={},P}()},6916:function(e,t,n){e.exports=function(){"use strict";var e=n(1350),t=Function.bind.call(Function.call,Array.prototype.reduce),r=Function.bind.call(Function.call,Object.prototype.propertyIsEnumerable),o=Function.bind.call(Function.call,Array.prototype.concat);return Object.values||(Object.values=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[n[t]]:[])}),[])}),Object.entries||(Object.entries=function(n){return t(e(n),(function(e,t){return o(e,"string"==typeof t&&r(n,t)?[[t,n[t]]]:[])}),[])}),Object}()},1350:function(e){"object"==typeof Reflect&&"function"==typeof Reflect.ownKeys?e.exports=Reflect.ownKeys:"function"==typeof Object.getOwnPropertySymbols?e.exports=function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:e.exports=Object.getOwnPropertyNames},3996:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.ContextProvider=void 0;var o=r(n(8156));t.ContextProvider=function(e){var t=e.bundleState,n=e.children,r=t.internal;return(null==r?void 0:r.providers)?o.default.createElement(r.providers.UserContextProvider,null,o.default.createElement(r.providers.PurchasesWithVideosContextProvider,null,n)):o.default.createElement(o.default.Fragment,null,n)}},8074:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&o(t,e,n);return i(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.withPlayerContext=t.PlayerProvider=t.PlayerContext=void 0;var s=a(n(8156)),u=n(7968);t.PlayerContext=s.default.createContext(void 0),t.PlayerProvider=function(e){var n=e.children,r=e.playerWrapperId,o=c(void 0===r?"default":r),i=l(),a=s.default.createElement(t.PlayerContext.Provider,{value:o},n);return i&&(a=s.default.createElement(i.Provider,{value:{player:o}},a)),a};var c=function(e){var t,n=(0,s.useState)(null!==(t=null===u.tivioBundle||void 0===u.tivioBundle?void 0:u.tivioBundle.getters.getPlayerWrapper({playerWrapperId:e}))&&void 0!==t?t:null),r=n[0],o=n[1];return(0,s.useEffect)((function(){u.tivioBundle||u.bundlePromise.then((function(t){var n=t.getters.getPlayerWrapper({playerWrapperId:e});o(n)})).catch((function(){}))}),[e]),r},l=function(){var e=(0,s.useState)(null),t=e[0],n=e[1];return(0,s.useEffect)((function(){u.bundlePromise.then((function(e){var t,r=null===(t=e.components)||void 0===t?void 0:t.PlayerDataContext;n(r)})).catch((function(){}))}),[]),t};t.withPlayerContext=function(e){return function(n){return function(o){return s.default.createElement(t.PlayerProvider,{playerWrapperId:e},s.default.createElement(n,r({},o)))}}}},8185:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioProvider=t.TivioContext=void 0;var a=i(n(8156)),s=n(952),u=n(6111),c=n(6435),l=n(3996),f=(0,u.createUseRemoteBundle)();t.TivioContext=a.default.createContext(null),t.TivioProvider=function(e){var n,r=e.children,o=e.conf,i=(0,a.useMemo)((function(){return(0,s.createInternalConf)(o)}),[]),u=f(i);if((0,a.useEffect)((function(){!1===(null==i?void 0:i.enable)||!1===(null==i?void 0:i.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==i?void 0:i.runFeatureSupportCheck)&&"ready"===u.state&&(null===(n=u.components)||void 0===n?void 0:n.FeatureSupportCheck))return a.default.createElement(u.components.FeatureSupportCheck,null);var d="ready"===(null==u?void 0:u.state)&&u.components?a.default.createElement(u.components.Provider,{language:i.language,disableUnmounting:i.disableUnmounting},r):r;return a.default.createElement(l.ContextProvider,{bundleState:u},a.default.createElement(t.TivioContext.Provider,{value:u},d))}},5111:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidget=void 0;var a=i(n(8156)),s=n(1012),u=n(3366);t.TivioWidget=a.default.forwardRef((function(e,t){var n,r=e.id,o=e.onBlur,i=e.onEnabled,c=e.navigateFunction,l=e.isFocused;if("string"!=typeof r||!r.length)return a.default.createElement(u.TivioWidgetError,{error:"TivioWidget must have a mandatory property 'id'."});var f=(0,s.useTivioData)(),d=f.state,p=f.error,v=f.components,h=f.config,g=h.ErrorComponent,y=h.LoaderComponent;switch((0,a.useEffect)((function(){"error"===d&&(null==i||i(!1))}),[d]),d){case"error":return a.default.createElement(g,{error:p});case"loading":return a.default.createElement(y,null);case"ready":return v?(null===(n=e.onEnabled)||void 0===n||n.call(e,!0),a.default.createElement(v.Widget,{id:r,ref:t,onEnabled:i,onBlur:o,isFocused:l,navigateFunction:c})):null}}))},7107:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetApp=void 0;var o=n(8741),i=r(n(8156)),a=n(1012);t.TivioWidgetApp=i.default.forwardRef((function(e,t){var n=(0,a.useTivioData)().components;return n?(e.navigateFunction&&console.log("debug:widgets:using navigate function"),i.default.createElement("div",null,i.default.createElement(n.TvApp,{customer:o.CustomerId.JOJ,navigateFunction:e.navigateFunction}))):i.default.createElement(i.default.Fragment,null)}))},3366:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetError=void 0;var o=r(n(8156));t.TivioWidgetError=function(e){var t=e.error;return o.default.createElement("div",{style:{backgroundColor:"#d84f92",color:"#fff",padding:"1rem"}},t)}},8491:function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.TivioWidgetLoader=void 0;var o=r(n(8156));t.TivioWidgetLoader=function(){return o.default.createElement("div",null,"loading...")}},467:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.TvTivioProvider=void 0;var a=i(n(8156)),s=n(952),u=n(6111),c=n(6435),l=n(3996),f=n(8185),d=(0,u.createUseRemoteBundle)();t.TvTivioProvider=function(e){var t,n=e.children,r=e.conf,o=(0,s.createInternalConf)(null!=r?r:null),i=d(o);return(0,a.useEffect)((function(){!1===(null==o?void 0:o.enable)||!1===(null==o?void 0:o.enableSentry)?(0,c.disableSentry)():(0,c.initSentry)()}),[]),(null==o?void 0:o.runFeatureSupportCheck)&&"ready"===i.state&&(null===(t=i.components)||void 0===t?void 0:t.FeatureSupportCheck)?a.default.createElement(i.components.FeatureSupportCheck,null):a.default.createElement(l.ContextProvider,{bundleState:i},a.default.createElement(f.TivioContext.Provider,{value:i},n))}},1012:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),o(n(5545),t),o(n(8919),t),o(n(4588),t),o(n(2045),t),o(n(1530),t),o(n(8186),t),o(n(3991),t),o(n(9735),t),o(n(5382),t),o(n(6621),t),o(n(3533),t),o(n(2997),t),o(n(360),t),o(n(563),t),o(n(2700),t),o(n(2484),t),o(n(7337),t),o(n(8918),t),o(n(7571),t),o(n(7118),t)},6621:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useAdSegment=t.useSeekState=t.useCurrentMarker=t.useAd=t.useIntro=t.useBetOffer=t.useMarkers=void 0;var r=n(8156),o=n(8074),i=n(2484);t.useMarkers=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useMarkers must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("markers",i),function(){return e.events.removeListener("markers",i)}}),[null==e?void 0:e.events]),n},t.useBetOffer=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useBetOffer must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("bet-offer",i),function(){return e.events.removeListener("bet-offer",i)}}),[null==e?void 0:e.events]),n},t.useIntro=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useIntro must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("intro",i),function(){return e.events.removeListener("intro",i)}}),[null==e?void 0:e.events]),n},t.useAd=function(){var e,t,n=(0,i.useTivioReadyData)();return(null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAd())&&void 0!==t?t:[null])[0]},t.useCurrentMarker=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useCurrentMarker must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events)return e.events.addListener("current-marker",i),function(){return e.events.removeListener("current-marker",i)}}),[null==e?void 0:e.events]),n},t.useSeekState=function(){var e=(0,r.useContext)(o.PlayerContext);if(void 0===e)throw new Error("useSeekState must be inside PlayerContext");var t=(0,r.useState)(null),n=t[0],i=t[1];return(0,r.useEffect)((function(){if(null==e?void 0:e.events){var t=function(){return i(!1)},n=function(){return i(!0)};return e.events.addListener("disable-seek",t),e.events.addListener("enable-seek",n),function(){e.events.removeListener("disable-seek",t),e.events.removeListener("enable-seek",n)}}}),[null==e?void 0:e.events]),n},t.useAdSegment=function(){var e,t,n=(0,i.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useAdSegment())&&void 0!==t?t:null}},8918:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useApplyInviteCode=void 0;var r=n(2484);t.useApplyInviteCode=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.useApplyInviteCode)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{applyInviteCodeResult:void 0,loading:!0,error:void 0,applyInviteCode:function(){},inviteCodeReset:function(){}}}},1530:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useCancelSubscription=void 0;var r=n(2484);t.useCancelSubscription=function(e){var t,n,o=(0,r.useTivioData)().hooks,i=null!==(n=null===(t=null==o?void 0:o.useCancelSubscription)||void 0===t?void 0:t.call(o,e))&&void 0!==n?n:{},a=i.cancelSubscription,s=i.cancellationInfo;return{cancelSubscription:null!=a?a:function(){return Promise.resolve()},cancellationInfo:null!=s?s:null,error:i.error}}},7118:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useChannelSource=void 0;var r=n(3368);t.useChannelSource=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useChannelSource(e))&&void 0!==t?t:{error:null,source:null}}},7571:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsLoaded=void 0;var r=n(8156),o=n(2484);t.useIsLoaded=function(){var e=(0,r.useState)(!1),t=e[0],n=e[1],i=(0,o.useTivioData)();return(0,r.useEffect)((function(){i.getters&&i.getters.isTivioLoaded(n)}),[i]),{isTivioLoaded:t}}},2997:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useIsMonetizationPurchased=void 0;var r=n(2484);t.useIsMonetizationPurchased=function(){var e,t=(0,r.useTivioData)().internal;return null!==(e=null==t?void 0:t.hooks.useIsMonetizationPurchased())&&void 0!==e?e:{isOneOfSubscriptionPurchased:function(){return!1}}}},2045:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useItemsInRow=void 0;var r=n(2484);t.useItemsInRow=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useItemsInRow)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},3533:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useOrganizationSubscriptions=void 0;var r=n(2484);t.useOrganizationSubscriptions=function(e){var t,n,o=(0,r.useTivioData)().internal;return null!==(n=null===(t=null==o?void 0:o.hooks)||void 0===t?void 0:t.useOrganizationSubscriptions(e))&&void 0!==n?n:{subscriptions:[]}}},3991:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseRecovery=void 0;var r=n(2484);t.usePurchaseRecovery=function(){var e,t,n=(0,r.useTivioData)().hooks;return null!==(t=null===(e=null==n?void 0:n.usePurchaseRecovery)||void 0===e?void 0:e.call(n))&&void 0!==t?t:{purchaseRecoveryResult:void 0,loading:!0,error:void 0,purchaseRecovery:function(){}}}},9735:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchaseSubscription=void 0;var i=n(2484);t.usePurchaseSubscription=function(e,t){var n,a,s=(0,i.useTivioData)().hooks;return null!==(a=null===(n=null==s?void 0:s.usePurchaseSubscription)||void 0===n?void 0:n.call(s,e,t))&&void 0!==a?a:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},360:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.usePurchasesWithVideos=void 0;var r=n(2484);t.usePurchasesWithVideos=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.usePurchasesWithVideos())&&void 0!==t?t:{purchases:[]}}},563:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useRowsInScreen=void 0;var r=n(2484);t.useRowsInScreen=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useRowsInScreen)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},4588:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useSearch=void 0;var r=n(2484);t.useSearch=function(e,t){var n,o,i=(0,r.useTivioData)().hooks,a=null!==(o=null===(n=null==i?void 0:i.useSearch)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{},s=a.search,u=a.pagination,c=a.isLoading,l=a.error,f=a.lastQuery;return{search:null!=s?s:function(){return Promise.resolve()},pagination:null!=u?u:null,isLoading:null==c||c,error:null!=l?l:null,lastQuery:null!=f?f:""}}},8919:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTaggedVideos=void 0;var r=n(2484);t.useTaggedVideos=function(e,t){var n,o;void 0===t&&(t={noLimit:!1,limit:3});var i=(0,r.useTivioData)().hooks;return null!==(o=null===(n=null==i?void 0:i.useTaggedVideos)||void 0===n?void 0:n.call(i,e,t))&&void 0!==o?o:{pagination:null,error:null}}},2484:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useTivioReadyData=t.useTivioData=void 0;var r=n(8156),o=n(8185);t.useTivioData=function(){var e=(0,r.useContext)(o.TivioContext);if(null===e)throw new Error("Make sure to wrap your app in TivioProvider");return e},t.useTivioReadyData=function(){var e=(0,t.useTivioData)();return"ready"===e.state?e:null}},8186:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.useTransactionPayment=void 0;var i=n(2484);t.useTransactionPayment=function(e,t,n){var a,s,u=(0,i.useTivioData)().hooks;return null!==(s=null===(a=null==u?void 0:u.useTransactionPayment)||void 0===a?void 0:a.call(u,e,t,n))&&void 0!==s?s:{paymentInfo:null,getPaymentInfo:function(){return r(void 0,void 0,void 0,(function(){return o(this,(function(e){return[2]}))}))},paymentStatus:null,paymentError:null}}},5545:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useUser=void 0;var r=n(2484);t.useUser=function(){var e,t,n=(0,r.useTivioData)().internal;return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useUser())&&void 0!==t?t:{user:null,error:null,isInitialized:!1,isSignedIn:!1}}},5382:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVideo=void 0;var r=n(3368);t.useVideo=function(e){var t,n=(0,r.useTivioData)().hooks;return null!==(t=null==n?void 0:n.useVideo(null!=e?e:""))&&void 0!==t?t:{error:null,data:null}}},2700:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useVoucher=void 0;var r=n(3368);t.useVoucher=function(e){var t=(0,r.useTivioData)().hooks,n=null==t?void 0:t.useVoucher(e);return{activate:n?n.activate:null,voucher:n?n.voucher:null,error:n?n.error:null,activationSuccess:!!n&&n.activationSuccess}}},7337:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.useWatchWithoutAdsOffer=void 0;var r=n(2484);t.useWatchWithoutAdsOffer=function(){var e,t,n=(0,r.useTivioReadyData)();return null!==(t=null===(e=null==n?void 0:n.hooks)||void 0===e?void 0:e.useWatchWithoutAdsOffer())&&void 0!==t?t:{canPurchaseWatchWithoutAds:!1,showPurchaseDialog:function(){}}}},952:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.createInternalConf=t.defaultConf=void 0;var o=n(3366),i=n(8491),a=n(5167),s=n(8323),u=n(5883),c=n(8741);t.defaultConf={secret:"",resolverUrl:"https://tivio-resolver-production.tiv.io/serveBundle/resolver2.js",currency:"CZK",language:c.LangCode.EN,disableUnmounting:!1,fetchPackage:s.fetchPackage,pubSub:(0,u.getPubSub)(),LoaderComponent:i.TivioWidgetLoader,ErrorComponent:o.TivioWidgetError},t.createInternalConf=function(e){if(e&&null==e.currency)throw new Error(".currency is missing in Tivio config");return r(r(r(r({},t.defaultConf),null!=e?e:{}),(null==e?void 0:e.secret)?{}:{enable:!1}),{logger:void 0!==(null==e?void 0:e.logger)?e.logger:(0,a.createLogger)({isConsoleEnabled:!0}),sdkVersion:"5.0.3-alpha-5"})}},3368:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||r(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=t.setUser=t.Nullable=t.Empty=t.Disposer=t.bundlePromise=t.withPlayerContext=t.PlayerProvider=void 0,n(6168),n(6916);var i=n(8074);Object.defineProperty(t,"PlayerProvider",{enumerable:!0,get:function(){return i.PlayerProvider}}),Object.defineProperty(t,"withPlayerContext",{enumerable:!0,get:function(){return i.withPlayerContext}});var a=n(7968);Object.defineProperty(t,"bundlePromise",{enumerable:!0,get:function(){return a.bundlePromise}}),o(n(1012),t),o(n(8185),t),o(n(7107),t),o(n(5111),t),o(n(3366),t),o(n(467),t),o(n(8491),t),o(n(6111),t),o(n(5883),t),o(n(4952),t);var s=n(1649);Object.defineProperty(t,"Disposer",{enumerable:!0,get:function(){return s.Disposer}});var u=n(1649);Object.defineProperty(t,"Empty",{enumerable:!0,get:function(){return u.Empty}});var c=n(1649);Object.defineProperty(t,"Nullable",{enumerable:!0,get:function(){return c.Nullable}}),o(n(3551),t);var l=n(6732);Object.defineProperty(t,"setUser",{enumerable:!0,get:function(){return l.setUser}});var f=n(4207);Object.defineProperty(t,"showGdprConsentPreferences",{enumerable:!0,get:function(){return f.showGdprConsentPreferences}}),o(n(8741),t),(0,n(5936).logInfo)()},5936:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.logInfo=void 0;var r=n(194),o=new r.Logger("tivio");t.logInfo=function(){var e=(0,r.getTizenVersion)();e&&o.info("Device: Tizen, version: ".concat(e.version))}},6111:function(e,t,n){"use strict";var r=this&&this.__assign||function(){return r=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},r.apply(this,arguments)},o=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},i=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.createUseRemoteBundle=t.createRemotePackageLoader=t.fetchBundle=void 0,n(3258);var a=n(194),s=n(8156),u=n(6457),c=new a.Logger("bundleLoader"),l=function(e){var t=e.resolverUrl;return(0,e.fetchPackage)(t)},f=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return c.info("Fetching bundle by url",e),[4,fetch(e)];case 1:if(!((r=(t=n.sent()).status)>=200&&r<=400))throw new Error("Failed to fetch bundleUrlOverride ".concat(e,", ")+"HTTP error status code: ".concat(t.status));return[4,t.text()];case 2:return[2,n.sent()]}var r}))}))},d=function(e){return o(void 0,void 0,void 0,(function(){var t;return i(this,(function(n){switch(n.label){case 0:return[4,fetch("https://europe-west3-tivio-production.cloudfunctions.net/getRemoteBundle",{method:"POST",cache:"no-cache",headers:{"Content-Type":"application/json"},body:JSON.stringify({secret:e})})];case 1:return[4,n.sent().json()];case 2:return t=n.sent(),[2,f(t.bundleUrl)]}}))}))},p=function(e,t){return o(void 0,void 0,void 0,(function(){return i(this,(function(n){return c.info("Fetching bundle via resolver"),[2,l(t).then((function(n){var r,o={},i={exports:o};try{new Function("require","module","exports",n)(u.resolveShared,i,o)}catch(e){return Promise.reject("Cannot load Tivio Resolver ".concat(e))}return"function"!=typeof(null===(r=i.exports.tivio)||void 0===r?void 0:r.fetch)?Promise.reject("Invalid Tivio Resolver export"):i.exports.tivio.fetch(e,t.sdkVersion)}))]}))}))};t.fetchBundle=function(e,t){return o(void 0,void 0,Promise,(function(){var n;return i(this,(function(r){switch(r.label){case 0:return n="",t.forceCloudFnResolver?(c.info("Fetching bundle via cloudfn (forced by config)"),[4,d(e)]):[3,2];case 1:return n=r.sent(),[3,10];case 2:return t.bundleUrlOverride?(c.info("Fetching bundle directly based on config.bundleUrlOverride",t.bundleUrlOverride),[4,f(t.bundleUrlOverride)]):[3,4];case 3:return n=r.sent(),[3,10];case 4:return(0,a.isIndexedDbSupported)()?[3,6]:(c.info("Fetching bundle via cloudfn, because indexedDB is not supported"),[4,d(e)]);case 5:return n=r.sent(),[3,10];case 6:return(0,a.isTizenVersionGreaterThan)(5)?(c.info("Fetching bundle via cloudfn, because Tizen version is > 5"),[4,d(e)]):[3,8];case 7:return n=r.sent(),[3,10];case 8:return[4,p(e,t)];case 9:n=r.sent(),r.label=10;case 10:return function(e,t){if(e.length<5e4){var n="Invalid bundle, the loaded bundle has extremely small char count (only ".concat(e.length,") chars");throw c.error(n,e),new Error(n)}}(n),[2,n]}}))}))},t.createRemotePackageLoader=function(){return function(e,n){return o(void 0,void 0,Promise,(function(){return i(this,(function(r){return[2,(0,t.fetchBundle)(e,n).then((function(e){var t={},n={exports:t};try{new Function("require","module","exports",e)(u.resolveShared,n,t)}catch(e){return Promise.reject("Cannot load module ".concat(e))}return"object"!=typeof n.exports.Tivio?Promise.reject('Tivio package does not export "Tivio" namespace'):"object"!=typeof n.exports.Tivio.components?Promise.reject('Tivio namespace does not export "components" member'):"function"!=typeof n.exports.Tivio.setUser?Promise.reject('Tivio namespace does not export "setUser" member'):"function"!=typeof n.exports.Tivio.init?Promise.reject('Tivio namespace does not export "init" member'):n.exports.Tivio}))]}))}))}},t.createUseRemoteBundle=function(){var e=(0,t.createRemotePackageLoader)(),n=!1;return function(t){var a=(0,s.useState)({auth:null,components:null,config:t,error:null,getters:null,init:null,destroy:null,purchaseSubscriptionWithQerko:null,purchaseVideoWithQerko:null,cancelSubscriptionWithQerko:null,setBundleVersion:null,setLanguage:null,setStorageManager:null,showConsentPreferences:null,setUser:null,sources:null,hooks:null,state:"loading",subscriptions:null,internal:null,analytics:null}),u=a[0],c=a[1];return(0,s.useEffect)((function(){null!=t.secret&&!1!==t.enable&&e(t.secret,t).then((function(e){return o(void 0,void 0,void 0,(function(){var o;return i(this,(function(i){switch(i.label){case 0:return n?[3,2]:[4,e.init(t)];case 1:i.sent(),n=!0,i.label=2;case 2:return o=r(r({},e),{config:t,error:null,state:"ready"}),c(o),t.pubSub.publish("on-ready",o),[2]}}))}))})).catch((function(e){var n;null===(n=t.logger)||void 0===n||n.exception(e),c(r(r({},u),{config:t,error:"".concat(e),state:"error"})),t.pubSub.publish("on-error",e)}))}),[]),u}}},7968:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.bundlePromise=t.tivioBundle=void 0;var r=n(5883);t.tivioBundle=null,t.bundlePromise=new Promise((function(e,n){(0,r.getPubSub)().subscribe("on-ready",(function(n){t.tivioBundle=n,e(n)})),(0,r.getPubSub)().subscribe("on-error",(function(e){n(e)}))})).catch((function(e){throw console.error("@tivio/sdk-react failed to load. Reason:",e),e})).then((function(e){return console.info("@tivio/sdk-react loaded successfully."),e}))},6457:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t},a=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.resolveShared=void 0;var s=i(n(670)),u=i(n(6741)),c=i(n(8879)),l=a(n(2937));n(6703),n(6462);var f=i(n(7661)),d=i(n(8661)),p=i(n(259)),v=i(n(5264)),h=i(n(8156)),g=i(n(7111)),y=i(n(3238)),b=i(n(6128)),m=i(n(5412)),_=i(n(1296)),O=i(n(1608)),P=i(n(7589)),w={mobx:p,"mobx-react":v,firebase:l.default,"firebase/app":l.default,"firebase/auth":null,"firebase/firestore":null,react:h,React:h,"react-dom":g,"styled-components":O,"@material-ui/core":s,"@material-ui/icons":u,formik:f,i18next:d,"react-i18next":y,"react-router-dom":b,"react-virtualized":_,"react-spring":m,yup:P,dayjs:c};t.resolveShared=function(e){if(!(e in w))throw new Error("Could not resolve shared dependency ".concat(e));return w[e]}},4207:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.showGdprConsentPreferences=void 0;var i=n(7968);t.showGdprConsentPreferences=function(){return r(void 0,void 0,void 0,(function(){var e,t;return o(this,(function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,i.bundlePromise];case 1:return e=n.sent(),null===(t=e.showConsentPreferences)||void 0===t||t.call(e),[3,3];case 2:return n.sent(),[3,3];case 3:return[2]}}))}))}},3258:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.loadBundleFromDist=void 0,t.loadBundleFromDist=function(){}},5167:function(e,t,n){"use strict";var r=this&&this.__spreadArray||function(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))};Object.defineProperty(t,"__esModule",{value:!0}),t.createLogger=void 0;var o=n(6435);t.createLogger=function(e){var t=!1!==e.isSentryEnabled,n=function(n,i){e.isConsoleEnabled&&console[n].apply(console,r(["Tivio SDK "],i,!1)),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureMessage("".concat(i),o.Sentry.Severity.fromString(n)))};return{error:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("error",e)},info:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("info",e)},warn:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("warn",e)},debug:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];n("debug",e)},exception:function(n){e.isConsoleEnabled&&console.error(n),t&&(null===o.Sentry||void 0===o.Sentry||o.Sentry.captureException(n))}}}},6732:function(e,t,n){"use strict";var r=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},o=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.setUser=void 0;var i=n(7968);t.setUser=function(e,t){return r(void 0,void 0,void 0,(function(){var n,r;return o(this,(function(o){switch(o.label){case 0:return o.trys.push([0,3,,4]),[4,i.bundlePromise];case 1:return n=o.sent(),[4,null===(r=n.setUser)||void 0===r?void 0:r.call(n,e,t)];case 2:case 3:return o.sent(),[3,4];case 4:return[2]}}))}))}},8323:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))((function(o,i){function a(e){try{u(r.next(e))}catch(e){i(e)}}function s(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(a,s)}u((r=r.apply(e,t||[])).next())}))},r=this&&this.__generator||function(e,t){var n,r,o,i,a={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function s(s){return function(u){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;i&&(i=0,s[0]&&(a=0)),a;)try{if(n=1,r&&(o=2&s[0]?r.return:s[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,s[1])).done)return o;switch(r=0,o&&(s=[2&s[0],o.value]),s[0]){case 0:case 1:o=s;break;case 4:return a.label++,{value:s[1],done:!1};case 5:a.label++,r=s[1],s=[0];continue;case 7:s=a.ops.pop(),a.trys.pop();continue;default:if(!((o=(o=a.trys).length>0&&o[o.length-1])||6!==s[0]&&2!==s[0])){a=0;continue}if(3===s[0]&&(!o||s[1]>o[0]&&s[1]<o[3])){a.label=s[1];break}if(6===s[0]&&a.label<o[1]){a.label=o[1],o=s;break}if(o&&a.label<o[2]){a.label=o[2],a.ops.push(s);break}o[2]&&a.ops.pop(),a.trys.pop();continue}s=t.call(e,a)}catch(e){s=[6,e],r=0}finally{n=o=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,u])}}};Object.defineProperty(t,"__esModule",{value:!0}),t.fetchPackage=void 0;var o={cache:"no-store"},i=function(e){var t=e.headers.get("content-type");return 200!==e.status?Promise.reject('Incorrect status "'.concat(e.status,'" was obtained while fetching the module.')):t&&(t.includes("application/javascript")||t.includes("text/javascript"))?e.text():Promise.reject('Incorrect content "'.concat(t,'" was obtained while fetching the module.'))},a=function(e){return Promise.reject("Network failure: ".concat(e))};t.fetchPackage=function(e){return n(void 0,void 0,Promise,(function(){return r(this,(function(t){return[2,fetch(e,o).then(i).catch(a)]}))}))}},5883:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getPubSub=t.createPubSub=void 0,t.createPubSub=function(){var e=new Map;return{publish:function(t,n){var r;null===(r=e.get(t))||void 0===r||r.forEach((function(e){(0,e.onMessage)(n)}))},subscribe:function(t,n){var r=(new Date).getTime();return e.has(t)||e.set(t,[]),e.get(t).push({id:r,onMessage:n}),function(){var n,o=null!==(n=e.get(t))&&void 0!==n?n:[],i=o.findIndex((function(e){return e.id===r}));-1!==i&&o.splice(i,1)}}}};var n=null;t.getPubSub=function(){return null===n&&(n=(0,t.createPubSub)()),n}},6435:function(e,t,n){"use strict";var r=this&&this.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var o=Object.getOwnPropertyDescriptor(t,n);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,o)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),o=this&&this.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)"default"!==n&&Object.prototype.hasOwnProperty.call(e,n)&&r(t,e,n);return o(t,e),t};Object.defineProperty(t,"__esModule",{value:!0}),t.initSentry=t.disableSentry=t.Sentry=void 0;var a=i(n(7356)),s="true"===process.env.DISABLE_SENTRY;t.Sentry=s?null:a,t.disableSentry=function(){t.Sentry=null,console.info("@tivio: Sentry disabled")},t.initSentry=function(){t.Sentry&&(t.Sentry.init({dsn:"https://8b9d489695004b0da95481f939b0455d@o507550.ingest.sentry.io/5600271",release:"@tivio/sdk-react@".concat("5.0.3-alpha-5"),tracesSampleRate:1}),console.info("@tivio: Sentry enabled"),u())};var u=function(){window.sentry=t.Sentry,console.info("@tivio: Sentry added to window")}},3551:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1649:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},4952:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0})},6168:function(e,t,n){"use strict";n.r(t),n.d(t,{DOMException:function(){return O},Headers:function(){return l},Request:function(){return y},Response:function(){return m},fetch:function(){return P}});var r="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r&&r,o={searchParams:"URLSearchParams"in r,iterable:"Symbol"in r&&"iterator"in Symbol,blob:"FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in r,arrayBuffer:"ArrayBuffer"in r};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],a=ArrayBuffer.isView||function(e){return e&&i.indexOf(Object.prototype.toString.call(e))>-1};function s(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw new TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function u(e){return"string"!=typeof e&&(e=String(e)),e}function c(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return o.iterable&&(t[Symbol.iterator]=function(){return t}),t}function l(e){this.map={},e instanceof l?e.forEach((function(e,t){this.append(t,e)}),this):Array.isArray(e)?e.forEach((function(e){this.append(e[0],e[1])}),this):e&&Object.getOwnPropertyNames(e).forEach((function(t){this.append(t,e[t])}),this)}function f(e){if(e.bodyUsed)return Promise.reject(new TypeError("Already read"));e.bodyUsed=!0}function d(e){return new Promise((function(t,n){e.onload=function(){t(e.result)},e.onerror=function(){n(e.error)}}))}function p(e){var t=new FileReader,n=d(t);return t.readAsArrayBuffer(e),n}function v(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(e){var t;this.bodyUsed=this.bodyUsed,this._bodyInit=e,e?"string"==typeof e?this._bodyText=e:o.blob&&Blob.prototype.isPrototypeOf(e)?this._bodyBlob=e:o.formData&&FormData.prototype.isPrototypeOf(e)?this._bodyFormData=e:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)?this._bodyText=e.toString():o.arrayBuffer&&o.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=v(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||a(e))?this._bodyArrayBuffer=v(e):this._bodyText=e=Object.prototype.toString.call(e):this._bodyText="",this.headers.get("content-type")||("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(p)}),this.text=function(){var e,t,n,r=f(this);if(r)return r;if(this._bodyBlob)return e=this._bodyBlob,n=d(t=new FileReader),t.readAsText(e),n;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),n=new Array(t.length),r=0;r<t.length;r++)n[r]=String.fromCharCode(t[r]);return n.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(e,t){e=s(e),t=u(t);var n=this.map[e];this.map[e]=n?n+", "+t:t},l.prototype.delete=function(e){delete this.map[s(e)]},l.prototype.get=function(e){return e=s(e),this.has(e)?this.map[e]:null},l.prototype.has=function(e){return this.map.hasOwnProperty(s(e))},l.prototype.set=function(e,t){this.map[s(e)]=u(t)},l.prototype.forEach=function(e,t){for(var n in this.map)this.map.hasOwnProperty(n)&&e.call(t,this.map[n],n,this)},l.prototype.keys=function(){var e=[];return this.forEach((function(t,n){e.push(n)})),c(e)},l.prototype.values=function(){var e=[];return this.forEach((function(t){e.push(t)})),c(e)},l.prototype.entries=function(){var e=[];return this.forEach((function(t,n){e.push([n,t])})),c(e)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var g=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(e,t){if(!(this instanceof y))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var n,r,o=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw new TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new l(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,o||null==e._bodyInit||(o=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",!t.headers&&this.headers||(this.headers=new l(t.headers)),this.method=(r=(n=t.method||this.method||"GET").toUpperCase(),g.indexOf(r)>-1?r:n),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&o)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(o),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==t.cache&&"no-cache"!==t.cache)){var i=/([?&])_=[^&]*/;i.test(this.url)?this.url=this.url.replace(i,"$1_="+(new Date).getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}function b(e){var t=new FormData;return e.trim().split("&").forEach((function(e){if(e){var n=e.split("="),r=n.shift().replace(/\+/g," "),o=n.join("=").replace(/\+/g," ");t.append(decodeURIComponent(r),decodeURIComponent(o))}})),t}function m(e,t){if(!(this instanceof m))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new l(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},h.call(y.prototype),h.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var _=[301,302,303,307,308];m.redirect=function(e,t){if(-1===_.indexOf(t))throw new RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})};var O=r.DOMException;try{new O}catch(e){(O=function(e,t){this.message=e,this.name=t;var n=Error(e);this.stack=n.stack}).prototype=Object.create(Error.prototype),O.prototype.constructor=O}function P(e,t){return new Promise((function(n,i){var a=new y(e,t);if(a.signal&&a.signal.aborted)return i(new O("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var e,t,r={status:s.status,statusText:s.statusText,headers:(e=s.getAllResponseHeaders()||"",t=new l,e.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e})).forEach((function(e){var n=e.split(":"),r=n.shift().trim();if(r){var o=n.join(":").trim();t.append(r,o)}})),t)};r.url="responseURL"in s?s.responseURL:r.headers.get("X-Request-URL");var o="response"in s?s.response:s.responseText;setTimeout((function(){n(new m(o,r))}),0)},s.onerror=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},s.ontimeout=function(){setTimeout((function(){i(new TypeError("Network request failed"))}),0)},s.onabort=function(){setTimeout((function(){i(new O("Aborted","AbortError"))}),0)},s.open(a.method,function(e){try{return""===e&&r.location.href?r.location.href:e}catch(t){return e}}(a.url),!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&(o.blob?s.responseType="blob":o.arrayBuffer&&a.headers.get("Content-Type")&&-1!==a.headers.get("Content-Type").indexOf("application/octet-stream")&&(s.responseType="arraybuffer")),!t||"object"!=typeof t.headers||t.headers instanceof l?a.headers.forEach((function(e,t){s.setRequestHeader(t,e)})):Object.getOwnPropertyNames(t.headers).forEach((function(e){s.setRequestHeader(e,u(t.headers[e]))})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}P.polyfill=!0,r.fetch||(r.fetch=P,r.Headers=l,r.Request=y,r.Response=m)},670:function(e){"use strict";e.exports=n},6741:function(e){"use strict";e.exports=r},7356:function(e){"use strict";e.exports=t},2937:function(e){"use strict";e.exports=o},6703:function(e){"use strict";e.exports=i},6462:function(e){"use strict";e.exports=a},7661:function(e){"use strict";e.exports=s},8661:function(e){"use strict";e.exports=u},259:function(e){"use strict";e.exports=c},5264:function(e){"use strict";e.exports=l},8156:function(t){"use strict";t.exports=e},7111:function(e){"use strict";e.exports=f},3238:function(e){"use strict";e.exports=d},6128:function(e){"use strict";e.exports=p},5412:function(e){"use strict";e.exports=v},1296:function(e){"use strict";e.exports=h},1608:function(e){"use strict";e.exports=g},7589:function(e){"use strict";e.exports=y}},m={};function _(e){var t=m[e];if(void 0!==t)return t.exports;var n=m[e]={exports:{}};return b[e].call(n.exports,n,n.exports,_),n.exports}return _.d=function(e,t){for(var n in t)_.o(t,n)&&!_.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},_.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},_.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},_(3368)}()}));