@brightcove/components-embed-code-modal 0.3.3 → 0.3.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("@brightcove/studio-components"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","@brightcove/studio-components","react-dom"],t);else{var n="object"==typeof exports?t(require("react"),require("@brightcove/studio-components"),require("react-dom")):t(e.react,e["@brightcove/studio-components"],e["react-dom"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n)=>(()=>{var r={757:(e,t,n)=>{e.exports=n(666)},130:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){(function(n){var r;t=e.exports=K,r="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var i=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],s=t.src=[],u=0,c=u++;s[c]="0|[1-9]\\d*";var l=u++;s[l]="[0-9]+";var d=u++;s[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=u++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var f=u++;s[f]="("+s[l]+")\\.("+s[l]+")\\.("+s[l]+")";var h=u++;s[h]="(?:"+s[c]+"|"+s[d]+")";var v=u++;s[v]="(?:"+s[l]+"|"+s[d]+")";var g=u++;s[g]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var m=u++;s[m]="(?:-?("+s[v]+"(?:\\."+s[v]+")*))";var y=u++;s[y]="[0-9A-Za-z-]+";var b=u++;s[b]="(?:\\+("+s[y]+"(?:\\."+s[y]+")*))";var C=u++,A="v?"+s[p]+s[g]+"?"+s[b]+"?";s[C]="^"+A+"$";var w="[v=\\s]*"+s[f]+s[m]+"?"+s[b]+"?",E=u++;s[E]="^"+w+"$";var O=u++;s[O]="((?:<|>)?=?)";var P=u++;s[P]=s[l]+"|x|X|\\*";var x=u++;s[x]=s[c]+"|x|X|\\*";var S=u++;s[S]="[v=\\s]*("+s[x]+")(?:\\.("+s[x]+")(?:\\.("+s[x]+")(?:"+s[g]+")?"+s[b]+"?)?)?";var I=u++;s[I]="[v=\\s]*("+s[P]+")(?:\\.("+s[P]+")(?:\\.("+s[P]+")(?:"+s[m]+")?"+s[b]+"?)?)?";var j=u++;s[j]="^"+s[O]+"\\s*"+s[S]+"$";var k=u++;s[k]="^"+s[O]+"\\s*"+s[I]+"$";var R=u++;s[R]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var _=u++;s[_]="(?:~>?)";var L=u++;s[L]="(\\s*)"+s[_]+"\\s+",a[L]=new RegExp(s[L],"g");var N=u++;s[N]="^"+s[_]+s[S]+"$";var M=u++;s[M]="^"+s[_]+s[I]+"$";var T=u++;s[T]="(?:\\^)";var F=u++;s[F]="(\\s*)"+s[T]+"\\s+",a[F]=new RegExp(s[F],"g");var D=u++;s[D]="^"+s[T]+s[S]+"$";var B=u++;s[B]="^"+s[T]+s[I]+"$";var U=u++;s[U]="^"+s[O]+"\\s*("+w+")$|^$";var q=u++;s[q]="^"+s[O]+"\\s*("+A+")$|^$";var V=u++;s[V]="(\\s*)"+s[O]+"\\s*("+w+"|"+s[S]+")",a[V]=new RegExp(s[V],"g");var Q=u++;s[Q]="^\\s*("+s[S]+")\\s+-\\s+("+s[S]+")\\s*$";var H=u++;s[H]="^\\s*("+s[I]+")\\s+-\\s+("+s[I]+")\\s*$";var z=u++;s[z]="(<|>)?=?\\s*\\*";for(var W=0;W<35;W++)r(W,s[W]),a[W]||(a[W]=new RegExp(s[W]));function Z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof K)return e;if("string"!=typeof e)return null;if(e.length>i)return null;if(!(t.loose?a[E]:a[C]).test(e))return null;try{return new K(e,t)}catch(e){return null}}function K(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof K){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError("version is longer than "+i+" characters");if(!(this instanceof K))return new K(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?a[E]:a[C]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=Z,t.valid=function(e,t){var n=Z(e,t);return n?n.version:null},t.clean=function(e,t){var n=Z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=K,K.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},K.prototype.toString=function(){return this.version},K.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof K||(e=new K(e,this.options)),this.compareMain(e)||this.comparePre(e)},K.prototype.compareMain=function(e){return e instanceof K||(e=new K(e,this.options)),$(this.major,e.major)||$(this.minor,e.minor)||$(this.patch,e.patch)},K.prototype.comparePre=function(e){if(e instanceof K||(e=new K(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return $(n,i)}while(++t)},K.prototype.compareBuild=function(e){e instanceof K||(e=new K(e,this.options));var t=0;do{var n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return $(n,i)}while(++t)},K.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new K(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(ee(e,t))return null;var n=Z(e),r=Z(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},t.compareIdentifiers=$;var G=/^[0-9]+$/;function $(e,t){var n=G.test(e),r=G.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function J(e,t,n){return new K(e,n).compare(new K(t,n))}function Y(e,t,n){return J(e,t,n)>0}function X(e,t,n){return J(e,t,n)<0}function ee(e,t,n){return 0===J(e,t,n)}function te(e,t,n){return 0!==J(e,t,n)}function ne(e,t,n){return J(e,t,n)>=0}function re(e,t,n){return J(e,t,n)<=0}function ie(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return ee(e,n,r);case"!=":return te(e,n,r);case">":return Y(e,n,r);case">=":return ne(e,n,r);case"<":return X(e,n,r);case"<=":return re(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return $(t,e)},t.major=function(e,t){return new K(e,t).major},t.minor=function(e,t){return new K(e,t).minor},t.patch=function(e,t){return new K(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.compareBuild=function(e,t,n){var r=new K(e,n),i=new K(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=Y,t.lt=X,t.eq=ee,t.neq=te,t.gte=ne,t.lte=re,t.cmp=ie,t.Comparator=oe;var ae={};function se(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof se)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new se(e.raw,t);if(e instanceof oe)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ue(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function ce(e){return!e||"x"===e.toLowerCase()||"*"===e}function le(e,t,n,r,i,o,a,s,u,c,l,d,p){return((t=ce(n)?"":ce(r)?">="+n+".0.0":ce(i)?">="+n+"."+r+".0":">="+t)+" "+(s=ce(u)?"":ce(c)?"<"+(+u+1)+".0.0":ce(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+s)).trim()}function de(e,t,n){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++)if(r(e[i].semver),e[i].semver!==ae&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function pe(e,t,n){try{t=new se(t,n)}catch(e){return!1}return t.test(e)}function fe(e,t,n,r){var i,o,a,s,u;switch(e=new K(e,r),t=new se(t,r),n){case">":i=Y,o=re,a=X,s=">",u=">=";break;case"<":i=X,o=ne,a=Y,s="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pe(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var l=t.set[c],d=null,p=null;if(l.forEach((function(e){e.semver===ae&&(e=new oe(">=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:a(e.semver,p.semver,r)&&(p=e)})),d.operator===s||d.operator===u)return!1;if((!p.operator||p.operator===s)&&o(e,p.semver))return!1;if(p.operator===u&&a(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?a[U]:a[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new K(n[2],this.options.loose):this.semver=ae},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===ae||e===ae)return!0;if("string"==typeof e)try{e=new K(e,this.options)}catch(e){return!1}return ie(e,this.operator,this.semver,this.options)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new se(e.value,t),pe(this.value,n,t));if(""===e.operator)return""===e.value||(n=new se(this.value,t),pe(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||u},t.Range=se,se.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?a[H]:a[Q];e=e.replace(n,le),r("hyphen replace",e),e=e.replace(a[V],"$1$2$3"),r("comparator trim",e,a[V]),e=(e=(e=e.replace(a[L],"$1~")).replace(a[F],"$1^")).split(/\s+/).join(" ");var i=t?a[U]:a[q],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[B]:a[D];return e.replace(n,(function(t,n,i,o,a){var s;return r("caret",e,t,n,i,o,a),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(o)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":a?(r("replaceCaret pr",a),s="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+a+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",s),s}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[M]:a[N];return e.replace(n,(function(t,n,i,o,a){var s;return r("tilde",e,t,n,i,o,a),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(o)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":a?(r("replaceTilde pr",a),s=">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[k]:a[j];return e.replace(n,(function(t,n,i,o,a,s){r("xRange",e,t,n,i,o,a,s);var u=ce(i),c=u||ce(o),l=c||ce(a);return"="===n&&l&&(n=""),u?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),t=n+i+"."+o+"."+a):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),r("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[z],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o.map((function(e){return new oe(e,this.options)}),this)},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some((function(n){return ue(n,t)&&e.set.some((function(e){return ue(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new se(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},se.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new K(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(de(this.set[t],e,this.options))return!0;return!1},t.satisfies=pe,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new se(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new K(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new se(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new K(r=e,n)))})),r},t.minVersion=function(e,t){e=new se(e,t);var n=new K("0.0.0");if(e.test(n))return n;if(n=new K("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new K(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!Y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new se(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return fe(e,t,"<",n)},t.gtr=function(e,t,n){return fe(e,t,">",n)},t.outside=fe,t.prerelease=function(e,t){var n=Z(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof K)return e;if("string"!=typeof e)return null;var n=e.match(a[R]);return null==n?null:Z(n[1]+"."+(n[2]||"0")+"."+(n[3]||"0"),t)}}).call(this,n(1))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);
|
|
1
|
+
!function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"),require("@brightcove/studio-components"),require("react-dom"));else if("function"==typeof define&&define.amd)define(["react","@brightcove/studio-components","react-dom"],t);else{var n="object"==typeof exports?t(require("react"),require("@brightcove/studio-components"),require("react-dom")):t(e.react,e["@brightcove/studio-components"],e["react-dom"]);for(var r in n)("object"==typeof exports?exports:e)[r]=n[r]}}(self,((e,t,n)=>(()=>{var r={130:function(e){e.exports=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=2)}([function(e,t,n){(function(n){var r;t=e.exports=K,r="object"==typeof n&&n.env&&n.env.NODE_DEBUG&&/\bsemver\b/i.test(n.env.NODE_DEBUG)?function(){var e=Array.prototype.slice.call(arguments,0);e.unshift("SEMVER"),console.log.apply(console,e)}:function(){},t.SEMVER_SPEC_VERSION="2.0.0";var i=256,o=Number.MAX_SAFE_INTEGER||9007199254740991,a=t.re=[],s=t.src=[],u=0,c=u++;s[c]="0|[1-9]\\d*";var l=u++;s[l]="[0-9]+";var d=u++;s[d]="\\d*[a-zA-Z-][a-zA-Z0-9-]*";var p=u++;s[p]="("+s[c]+")\\.("+s[c]+")\\.("+s[c]+")";var f=u++;s[f]="("+s[l]+")\\.("+s[l]+")\\.("+s[l]+")";var h=u++;s[h]="(?:"+s[c]+"|"+s[d]+")";var v=u++;s[v]="(?:"+s[l]+"|"+s[d]+")";var g=u++;s[g]="(?:-("+s[h]+"(?:\\."+s[h]+")*))";var m=u++;s[m]="(?:-?("+s[v]+"(?:\\."+s[v]+")*))";var y=u++;s[y]="[0-9A-Za-z-]+";var b=u++;s[b]="(?:\\+("+s[y]+"(?:\\."+s[y]+")*))";var C=u++,A="v?"+s[p]+s[g]+"?"+s[b]+"?";s[C]="^"+A+"$";var w="[v=\\s]*"+s[f]+s[m]+"?"+s[b]+"?",E=u++;s[E]="^"+w+"$";var O=u++;s[O]="((?:<|>)?=?)";var P=u++;s[P]=s[l]+"|x|X|\\*";var x=u++;s[x]=s[c]+"|x|X|\\*";var S=u++;s[S]="[v=\\s]*("+s[x]+")(?:\\.("+s[x]+")(?:\\.("+s[x]+")(?:"+s[g]+")?"+s[b]+"?)?)?";var I=u++;s[I]="[v=\\s]*("+s[P]+")(?:\\.("+s[P]+")(?:\\.("+s[P]+")(?:"+s[m]+")?"+s[b]+"?)?)?";var j=u++;s[j]="^"+s[O]+"\\s*"+s[S]+"$";var k=u++;s[k]="^"+s[O]+"\\s*"+s[I]+"$";var R=u++;s[R]="(?:^|[^\\d])(\\d{1,16})(?:\\.(\\d{1,16}))?(?:\\.(\\d{1,16}))?(?:$|[^\\d])";var _=u++;s[_]="(?:~>?)";var L=u++;s[L]="(\\s*)"+s[_]+"\\s+",a[L]=new RegExp(s[L],"g");var N=u++;s[N]="^"+s[_]+s[S]+"$";var M=u++;s[M]="^"+s[_]+s[I]+"$";var T=u++;s[T]="(?:\\^)";var F=u++;s[F]="(\\s*)"+s[T]+"\\s+",a[F]=new RegExp(s[F],"g");var D=u++;s[D]="^"+s[T]+s[S]+"$";var B=u++;s[B]="^"+s[T]+s[I]+"$";var U=u++;s[U]="^"+s[O]+"\\s*("+w+")$|^$";var q=u++;s[q]="^"+s[O]+"\\s*("+A+")$|^$";var V=u++;s[V]="(\\s*)"+s[O]+"\\s*("+w+"|"+s[S]+")",a[V]=new RegExp(s[V],"g");var Q=u++;s[Q]="^\\s*("+s[S]+")\\s+-\\s+("+s[S]+")\\s*$";var H=u++;s[H]="^\\s*("+s[I]+")\\s+-\\s+("+s[I]+")\\s*$";var z=u++;s[z]="(<|>)?=?\\s*\\*";for(var W=0;W<35;W++)r(W,s[W]),a[W]||(a[W]=new RegExp(s[W]));function Z(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof K)return e;if("string"!=typeof e)return null;if(e.length>i)return null;if(!(t.loose?a[E]:a[C]).test(e))return null;try{return new K(e,t)}catch(e){return null}}function K(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof K){if(e.loose===t.loose)return e;e=e.version}else if("string"!=typeof e)throw new TypeError("Invalid Version: "+e);if(e.length>i)throw new TypeError("version is longer than "+i+" characters");if(!(this instanceof K))return new K(e,t);r("SemVer",e,t),this.options=t,this.loose=!!t.loose;var n=e.trim().match(t.loose?a[E]:a[C]);if(!n)throw new TypeError("Invalid Version: "+e);if(this.raw=e,this.major=+n[1],this.minor=+n[2],this.patch=+n[3],this.major>o||this.major<0)throw new TypeError("Invalid major version");if(this.minor>o||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>o||this.patch<0)throw new TypeError("Invalid patch version");n[4]?this.prerelease=n[4].split(".").map((function(e){if(/^[0-9]+$/.test(e)){var t=+e;if(t>=0&&t<o)return t}return e})):this.prerelease=[],this.build=n[5]?n[5].split("."):[],this.format()}t.parse=Z,t.valid=function(e,t){var n=Z(e,t);return n?n.version:null},t.clean=function(e,t){var n=Z(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},t.SemVer=K,K.prototype.format=function(){return this.version=this.major+"."+this.minor+"."+this.patch,this.prerelease.length&&(this.version+="-"+this.prerelease.join(".")),this.version},K.prototype.toString=function(){return this.version},K.prototype.compare=function(e){return r("SemVer.compare",this.version,this.options,e),e instanceof K||(e=new K(e,this.options)),this.compareMain(e)||this.comparePre(e)},K.prototype.compareMain=function(e){return e instanceof K||(e=new K(e,this.options)),$(this.major,e.major)||$(this.minor,e.minor)||$(this.patch,e.patch)},K.prototype.comparePre=function(e){if(e instanceof K||(e=new K(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;var t=0;do{var n=this.prerelease[t],i=e.prerelease[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return $(n,i)}while(++t)},K.prototype.compareBuild=function(e){e instanceof K||(e=new K(e,this.options));var t=0;do{var n=this.build[t],i=e.build[t];if(r("prerelease compare",t,n,i),void 0===n&&void 0===i)return 0;if(void 0===i)return 1;if(void 0===n)return-1;if(n!==i)return $(n,i)}while(++t)},K.prototype.inc=function(e,t){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t),this.inc("pre",t);break;case"prerelease":0===this.prerelease.length&&this.inc("patch",t),this.inc("pre",t);break;case"major":0===this.minor&&0===this.patch&&0!==this.prerelease.length||this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":0===this.patch&&0!==this.prerelease.length||this.minor++,this.patch=0,this.prerelease=[];break;case"patch":0===this.prerelease.length&&this.patch++,this.prerelease=[];break;case"pre":if(0===this.prerelease.length)this.prerelease=[0];else{for(var n=this.prerelease.length;--n>=0;)"number"==typeof this.prerelease[n]&&(this.prerelease[n]++,n=-2);-1===n&&this.prerelease.push(0)}t&&(this.prerelease[0]===t?isNaN(this.prerelease[1])&&(this.prerelease=[t,0]):this.prerelease=[t,0]);break;default:throw new Error("invalid increment argument: "+e)}return this.format(),this.raw=this.version,this},t.inc=function(e,t,n,r){"string"==typeof n&&(r=n,n=void 0);try{return new K(e,n).inc(t,r).version}catch(e){return null}},t.diff=function(e,t){if(ee(e,t))return null;var n=Z(e),r=Z(t),i="";if(n.prerelease.length||r.prerelease.length){i="pre";var o="prerelease"}for(var a in n)if(("major"===a||"minor"===a||"patch"===a)&&n[a]!==r[a])return i+a;return o},t.compareIdentifiers=$;var G=/^[0-9]+$/;function $(e,t){var n=G.test(e),r=G.test(t);return n&&r&&(e=+e,t=+t),e===t?0:n&&!r?-1:r&&!n?1:e<t?-1:1}function J(e,t,n){return new K(e,n).compare(new K(t,n))}function Y(e,t,n){return J(e,t,n)>0}function X(e,t,n){return J(e,t,n)<0}function ee(e,t,n){return 0===J(e,t,n)}function te(e,t,n){return 0!==J(e,t,n)}function ne(e,t,n){return J(e,t,n)>=0}function re(e,t,n){return J(e,t,n)<=0}function ie(e,t,n,r){switch(t){case"===":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e===n;case"!==":return"object"==typeof e&&(e=e.version),"object"==typeof n&&(n=n.version),e!==n;case"":case"=":case"==":return ee(e,n,r);case"!=":return te(e,n,r);case">":return Y(e,n,r);case">=":return ne(e,n,r);case"<":return X(e,n,r);case"<=":return re(e,n,r);default:throw new TypeError("Invalid operator: "+t)}}function oe(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof oe){if(e.loose===!!t.loose)return e;e=e.value}if(!(this instanceof oe))return new oe(e,t);r("comparator",e,t),this.options=t,this.loose=!!t.loose,this.parse(e),this.semver===ae?this.value="":this.value=this.operator+this.semver.version,r("comp",this)}t.rcompareIdentifiers=function(e,t){return $(t,e)},t.major=function(e,t){return new K(e,t).major},t.minor=function(e,t){return new K(e,t).minor},t.patch=function(e,t){return new K(e,t).patch},t.compare=J,t.compareLoose=function(e,t){return J(e,t,!0)},t.compareBuild=function(e,t,n){var r=new K(e,n),i=new K(t,n);return r.compare(i)||r.compareBuild(i)},t.rcompare=function(e,t,n){return J(t,e,n)},t.sort=function(e,n){return e.sort((function(e,r){return t.compareBuild(e,r,n)}))},t.rsort=function(e,n){return e.sort((function(e,r){return t.compareBuild(r,e,n)}))},t.gt=Y,t.lt=X,t.eq=ee,t.neq=te,t.gte=ne,t.lte=re,t.cmp=ie,t.Comparator=oe;var ae={};function se(e,t){if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),e instanceof se)return e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease?e:new se(e.raw,t);if(e instanceof oe)return new se(e.value,t);if(!(this instanceof se))return new se(e,t);if(this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease,this.raw=e,this.set=e.split(/\s*\|\|\s*/).map((function(e){return this.parseRange(e.trim())}),this).filter((function(e){return e.length})),!this.set.length)throw new TypeError("Invalid SemVer Range: "+e);this.format()}function ue(e,t){for(var n=!0,r=e.slice(),i=r.pop();n&&r.length;)n=r.every((function(e){return i.intersects(e,t)})),i=r.pop();return n}function ce(e){return!e||"x"===e.toLowerCase()||"*"===e}function le(e,t,n,r,i,o,a,s,u,c,l,d,p){return((t=ce(n)?"":ce(r)?">="+n+".0.0":ce(i)?">="+n+"."+r+".0":">="+t)+" "+(s=ce(u)?"":ce(c)?"<"+(+u+1)+".0.0":ce(l)?"<"+u+"."+(+c+1)+".0":d?"<="+u+"."+c+"."+l+"-"+d:"<="+s)).trim()}function de(e,t,n){for(var i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(i=0;i<e.length;i++)if(r(e[i].semver),e[i].semver!==ae&&e[i].semver.prerelease.length>0){var o=e[i].semver;if(o.major===t.major&&o.minor===t.minor&&o.patch===t.patch)return!0}return!1}return!0}function pe(e,t,n){try{t=new se(t,n)}catch(e){return!1}return t.test(e)}function fe(e,t,n,r){var i,o,a,s,u;switch(e=new K(e,r),t=new se(t,r),n){case">":i=Y,o=re,a=X,s=">",u=">=";break;case"<":i=X,o=ne,a=Y,s="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(pe(e,t,r))return!1;for(var c=0;c<t.set.length;++c){var l=t.set[c],d=null,p=null;if(l.forEach((function(e){e.semver===ae&&(e=new oe(">=0.0.0")),d=d||e,p=p||e,i(e.semver,d.semver,r)?d=e:a(e.semver,p.semver,r)&&(p=e)})),d.operator===s||d.operator===u)return!1;if((!p.operator||p.operator===s)&&o(e,p.semver))return!1;if(p.operator===u&&a(e,p.semver))return!1}return!0}oe.prototype.parse=function(e){var t=this.options.loose?a[U]:a[q],n=e.match(t);if(!n)throw new TypeError("Invalid comparator: "+e);this.operator=void 0!==n[1]?n[1]:"","="===this.operator&&(this.operator=""),n[2]?this.semver=new K(n[2],this.options.loose):this.semver=ae},oe.prototype.toString=function(){return this.value},oe.prototype.test=function(e){if(r("Comparator.test",e,this.options.loose),this.semver===ae||e===ae)return!0;if("string"==typeof e)try{e=new K(e,this.options)}catch(e){return!1}return ie(e,this.operator,this.semver,this.options)},oe.prototype.intersects=function(e,t){if(!(e instanceof oe))throw new TypeError("a Comparator is required");var n;if(t&&"object"==typeof t||(t={loose:!!t,includePrerelease:!1}),""===this.operator)return""===this.value||(n=new se(e.value,t),pe(this.value,n,t));if(""===e.operator)return""===e.value||(n=new se(this.value,t),pe(e.semver,n,t));var r=!(">="!==this.operator&&">"!==this.operator||">="!==e.operator&&">"!==e.operator),i=!("<="!==this.operator&&"<"!==this.operator||"<="!==e.operator&&"<"!==e.operator),o=this.semver.version===e.semver.version,a=!(">="!==this.operator&&"<="!==this.operator||">="!==e.operator&&"<="!==e.operator),s=ie(this.semver,"<",e.semver,t)&&(">="===this.operator||">"===this.operator)&&("<="===e.operator||"<"===e.operator),u=ie(this.semver,">",e.semver,t)&&("<="===this.operator||"<"===this.operator)&&(">="===e.operator||">"===e.operator);return r||i||o&&a||s||u},t.Range=se,se.prototype.format=function(){return this.range=this.set.map((function(e){return e.join(" ").trim()})).join("||").trim(),this.range},se.prototype.toString=function(){return this.range},se.prototype.parseRange=function(e){var t=this.options.loose;e=e.trim();var n=t?a[H]:a[Q];e=e.replace(n,le),r("hyphen replace",e),e=e.replace(a[V],"$1$2$3"),r("comparator trim",e,a[V]),e=(e=(e=e.replace(a[L],"$1~")).replace(a[F],"$1^")).split(/\s+/).join(" ");var i=t?a[U]:a[q],o=e.split(" ").map((function(e){return function(e,t){return r("comp",e,t),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){r("caret",e,t);var n=t.loose?a[B]:a[D];return e.replace(n,(function(t,n,i,o,a){var s;return r("caret",e,t,n,i,o,a),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(o)?s="0"===n?">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":">="+n+"."+i+".0 <"+(+n+1)+".0.0":a?(r("replaceCaret pr",a),s="0"===n?"0"===i?">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+"-"+a+" <"+(+n+1)+".0.0"):(r("no pr"),s="0"===n?"0"===i?">="+n+"."+i+"."+o+" <"+n+"."+i+"."+(+o+1):">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0":">="+n+"."+i+"."+o+" <"+(+n+1)+".0.0"),r("caret return",s),s}))}(e,t)})).join(" ")}(e,t),r("caret",e),e=function(e,t){return e.trim().split(/\s+/).map((function(e){return function(e,t){var n=t.loose?a[M]:a[N];return e.replace(n,(function(t,n,i,o,a){var s;return r("tilde",e,t,n,i,o,a),ce(n)?s="":ce(i)?s=">="+n+".0.0 <"+(+n+1)+".0.0":ce(o)?s=">="+n+"."+i+".0 <"+n+"."+(+i+1)+".0":a?(r("replaceTilde pr",a),s=">="+n+"."+i+"."+o+"-"+a+" <"+n+"."+(+i+1)+".0"):s=">="+n+"."+i+"."+o+" <"+n+"."+(+i+1)+".0",r("tilde return",s),s}))}(e,t)})).join(" ")}(e,t),r("tildes",e),e=function(e,t){return r("replaceXRanges",e,t),e.split(/\s+/).map((function(e){return function(e,t){e=e.trim();var n=t.loose?a[k]:a[j];return e.replace(n,(function(t,n,i,o,a,s){r("xRange",e,t,n,i,o,a,s);var u=ce(i),c=u||ce(o),l=c||ce(a);return"="===n&&l&&(n=""),u?t=">"===n||"<"===n?"<0.0.0":"*":n&&l?(c&&(o=0),a=0,">"===n?(n=">=",c?(i=+i+1,o=0,a=0):(o=+o+1,a=0)):"<="===n&&(n="<",c?i=+i+1:o=+o+1),t=n+i+"."+o+"."+a):c?t=">="+i+".0.0 <"+(+i+1)+".0.0":l&&(t=">="+i+"."+o+".0 <"+i+"."+(+o+1)+".0"),r("xRange return",t),t}))}(e,t)})).join(" ")}(e,t),r("xrange",e),e=function(e,t){return r("replaceStars",e,t),e.trim().replace(a[z],"")}(e,t),r("stars",e),e}(e,this.options)}),this).join(" ").split(/\s+/);return this.options.loose&&(o=o.filter((function(e){return!!e.match(i)}))),o.map((function(e){return new oe(e,this.options)}),this)},se.prototype.intersects=function(e,t){if(!(e instanceof se))throw new TypeError("a Range is required");return this.set.some((function(n){return ue(n,t)&&e.set.some((function(e){return ue(e,t)&&n.every((function(n){return e.every((function(e){return n.intersects(e,t)}))}))}))}))},t.toComparators=function(e,t){return new se(e,t).set.map((function(e){return e.map((function(e){return e.value})).join(" ").trim().split(" ")}))},se.prototype.test=function(e){if(!e)return!1;if("string"==typeof e)try{e=new K(e,this.options)}catch(e){return!1}for(var t=0;t<this.set.length;t++)if(de(this.set[t],e,this.options))return!0;return!1},t.satisfies=pe,t.maxSatisfying=function(e,t,n){var r=null,i=null;try{var o=new se(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&-1!==i.compare(e)||(i=new K(r=e,n)))})),r},t.minSatisfying=function(e,t,n){var r=null,i=null;try{var o=new se(t,n)}catch(e){return null}return e.forEach((function(e){o.test(e)&&(r&&1!==i.compare(e)||(i=new K(r=e,n)))})),r},t.minVersion=function(e,t){e=new se(e,t);var n=new K("0.0.0");if(e.test(n))return n;if(n=new K("0.0.0-0"),e.test(n))return n;n=null;for(var r=0;r<e.set.length;++r)e.set[r].forEach((function(e){var t=new K(e.semver.version);switch(e.operator){case">":0===t.prerelease.length?t.patch++:t.prerelease.push(0),t.raw=t.format();case"":case">=":n&&!Y(n,t)||(n=t);break;case"<":case"<=":break;default:throw new Error("Unexpected operation: "+e.operator)}}));return n&&e.test(n)?n:null},t.validRange=function(e,t){try{return new se(e,t).range||"*"}catch(e){return null}},t.ltr=function(e,t,n){return fe(e,t,"<",n)},t.gtr=function(e,t,n){return fe(e,t,">",n)},t.outside=fe,t.prerelease=function(e,t){var n=Z(e,t);return n&&n.prerelease.length?n.prerelease:null},t.intersects=function(e,t,n){return e=new se(e,n),t=new se(t,n),e.intersects(t)},t.coerce=function(e,t){if(e instanceof K)return e;if("string"!=typeof e)return null;var n=e.match(a[R]);return null==n?null:Z(n[1]+"."+(n[2]||"0")+"."+(n[3]||"0"),t)}}).call(this,n(1))},function(e,t){var n,r,i=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(n===setTimeout)return setTimeout(e,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(e){n=o}try{r="function"==typeof clearTimeout?clearTimeout:a}catch(e){r=a}}();var u,c=[],l=!1,d=-1;function p(){l&&u&&(l=!1,u.length?c=u.concat(c):d=-1,c.length&&f())}function f(){if(!l){var e=s(p);l=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===a||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function v(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];c.push(new h(e,t)),1!==c.length||l||s(f)},h.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=v,i.addListener=v,i.once=v,i.off=v,i.removeListener=v,i.removeAllListeners=v,i.emit=v,i.prependListener=v,i.prependOnceListener=v,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(e,t,n){"use strict";n.r(t);
|
|
2
2
|
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */
|
|
3
|
-
var 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},i=["catalogSearch","catalogSequence"],o=["adConfigId","applicationId","catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId","interactivityProjectId"],a=function(e){return Object.keys(e).filter((function(e){return-1!==o.indexOf(e)})).reduce((function(t,n){var r=function(e,t){if(e&&void 0!==e[t]){if("string"!=typeof e[t]&&-1!==i.indexOf(t))try{return encodeURIComponent(JSON.stringify(e[t]))}catch(e){return}return encodeURIComponent(String(e[t]).trim())||void 0}}(e,n);return void 0!==r&&(t+=t?"&":"?",t+=encodeURIComponent(n)+"="+r),t}),"")},s=function(e){var t=e.accountId,n=e.base,i=void 0===n?"https://players.brightcove.net":n,o=e.playerId,s=void 0===o?"default":o,u=e.embedId,c=void 0===u?"default":u,l=e.iframe,d=void 0!==l&&l,p=e.minified,f=void 0===p||p,h=e.queryParams,v=void 0===h?null:h,g="";d?g+="html":(f&&(g+="min."),g+="js"),"/"===i.charAt(i.length-1)&&(i=i.substring(0,i.length-1));var m="";return d&&v&&"object"===(void 0===v?"undefined":r(v))&&(m=a(v)),i+"/"+(t=encodeURIComponent(t))+"/"+(s=encodeURIComponent(s))+"_"+(c=encodeURIComponent(c))+"/index."+g+m};s.VERSION="1.2.0";var u=s,c={playerId:"default",embedId:"default",iframe:!1,includeScriptElement:!0,minified:!0,returnDomElement:!1,preview:!1,playlistElement:!1,legacyPlaylistElement:!1,playlistIsHorizontal:!0,formatter:function(e){return e},width:960,height:540,units:"px",responsive:!0,applicationId:"",allowFullscreen:!0,allowEncryptedMedia:!0,pictureInPicture:!1,responsiveHeight:"56.25%"};function l(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.responsive&&!t.width&&(n.width=100,n.units="%"),n}var d={createIframeEmbedCode:function(e,t){t=l(c,t);var n,r=e.createElement("div"),i=e.createElement("iframe");if(t.preview)n=(t.urlBase?t.urlBase:"//preview-players.brightcove.net")+"/v2/accounts/"+t.accountId+"/players/"+t.playerId+"/preview/embeds/"+t.embedId+"/master/index.html",t.videoId&&(n+="?videoId="+t.videoId),t.interactivityProjectId&&(n+="?interactivityProjectId="+t.interactivityProjectId);else{var o={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,iframe:!0,minified:t.minified,queryParams:{videoId:t.videoId,playlistId:t.playlistId,interactivityProjectId:t.interactivityProjectId,adConfigId:t.adConfigId,applicationId:t.applicationId,catalogSearch:t.catalogSearch,catalogSequence:t.catalogSequence}};t.urlBase&&(o.base=t.urlBase),n=u(o)}if(t.returnDomElement?i.setAttribute("src",n):i.setAttribute("fzrsbrxzyeajgdaxuxqu",n),t.allowFullscreen&&i.setAttribute("allowfullscreen",""),t.allowEncryptedMedia&&i.setAttribute("allow","encrypted-media"),t.responsive){var a=e.createElement("div"),s=e.createElement("div");a.setAttribute("style","position: relative; display: block; max-width: ".concat(t.width).concat(t.units,";")),s.setAttribute("style","padding-top: ".concat(t.responsiveHeight,";")),i.setAttribute("style","position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%;"),r.appendChild(a),a.appendChild(s),s.appendChild(i)}else"px"!==t.units?i.setAttribute("style","width: ".concat(t.width).concat(t.units,"; height: ").concat(t.height).concat(t.units,";")):(i.setAttribute("width",t.width),i.setAttribute("height",t.height)),r.appendChild(i);return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src")).replace("&","&")}},p=n(0),f=n.n(p);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v={createInpageEmbedCode:function(e,t){if((t=l(c,t)).preview)throw new Error("You cannot preview an in-page embed");var n,r=e.createElement("div"),i=e.createElement("div");if(t.playerVersion&&f.a.gt("6.11.0",t.playerVersion)?(n=e.createElement("video")).classList.add("video-js"):n=e.createElement("video-js"),n.setAttribute("data-account",t.accountId),n.setAttribute("data-player",t.playerId),n.setAttribute("data-embed",t.embedId),n.setAttribute("controls",""),void 0!==t.videoId&&n.setAttribute("data-video-id",t.videoId),void 0!==t.playlistId&&n.setAttribute("data-playlist-id",t.playlistId),void 0!==t.interactivityProjectId&&n.setAttribute("data-interactivity-project-id",t.interactivityProjectId),void 0!==t.adConfigId&&n.setAttribute("data-ad-config-id",t.adConfigId),void 0!==t.applicationId&&n.setAttribute("data-application-id",t.applicationId),void 0!==t.catalogSearch&&("object"===h(t.catalogSearch)?n.setAttribute("data-catalog-search",JSON.stringify(t.catalogSearch)):n.setAttribute("data-catalog-search",String(t.catalogSearch))),void 0!==t.catalogSequence&&n.setAttribute("data-catalog-sequence",JSON.stringify(t.catalogSequence)),void 0!==t.audience&&"object"===h(t.audience)&&(void 0!==t.audience.integration&&n.setAttribute("data-bc-integrationid",t.audience.integration),void 0!==t.audience.leadForm&&n.setAttribute("data-bc-leadformid",t.audience.leadForm)),t.responsive){var o=e.createElement("style");o.innerHTML="video-js.video-js.vjs-fluid:not(.vjs-audio-only-mode) {padding-top: ".concat(t.responsiveHeight,";}");var a="max-width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",a),i.appendChild(o)}else{var s="width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",s),n.setAttribute("width",t.width),n.setAttribute("height",t.height)}if(n.classList.add("vjs-fluid"),i.appendChild(n),r.appendChild(i),t.pictureInPicture){var d=e.createElement("div");d.classList.add("vjs-pip-container"),d.appendChild(r.firstChild),r.appendChild(d)}if(t.playlistElement)if(t.playlistIsHorizontal){var p=e.createElement("div");p.setAttribute("class","vjs-playlist"),i.appendChild(p)}else i.classList.add("vjs-playlist-player-container");if(t.includeScriptElement){var v=e.createElement("script"),g={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,minified:t.minified};t.urlBase&&(g.base=t.urlBase),t.returnDomElement?v.setAttribute("src",u(g)):v.setAttribute("fzrsbrxzyeajgdaxuxqu",u(g)),r.appendChild(v)}if(t.legacyPlaylistElement&&!t.playlistElement){var m=e.createElement("ol");m.setAttribute("class","vjs-playlist"),r.appendChild(m)}return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src"))}};function g(e){if(void 0===e)throw new Error("options object is required");if(void 0===e.accountId)throw new Error("accountId is required");if(!e.document&&"undefined"==typeof window)throw new Error("No document object found. If you are running this project outside of a browser, pass a `document` option using a library such as jsdom.");var t=void 0!==e.document?e.document:window.document;return e.iframe?d.createIframeEmbedCode(t,e):v.createInpageEmbedCode(t,e)}n.d(t,"default",(function(){return g}))}]).default},946:(e,t,n)=>{"use strict";t.Xo=void 0;var r=n(306);function i(){return i=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var o=function(e){var t=e.apiConfig;return{origin:(0,r.getPlayersOrigin)(t),accountId:(0,r.getAccountId)(t)}};t.Xo=function(e){var t,n=e.apiConfig,a=(t=i({},o({apiConfig:n}))).origin+"/v1/accounts/"+t.accountId+"/players";return(0,r.buildGetForPath)({path:a})}},306:(e,t)=>{"use strict";t.__esModule=!0,t.buildDeleteForPath=t.buildPostForPath=t.buildFilePutForPath=t.buildPutForPath=t.buildPatchForPath=t.buildGetWithParamsForPath=t.buildGetForPath=t.getAccountId=t.getPlaybackRightsOrigin=t.getPolicyOrigin=t.getSocialAPIOrigin=t.getDeliverySystemOrigin=t.getAudienceOrigin=t.getGalleryOrigin=t.getOAuthVersion=t.getOAuthOrigin=t.getNuCMSOrigin=t.getBeaconOrigin=t.getAccountsOrigin=t.getAuthIntegrationVersion=t.getAuthIntegrationOrigin=t.getSettingsOrigin=t.getIngestOrigin=t.getIngestProfilesOrigin=t.getPlayersOrigin=t.getAnalyticsOrigin=t.getSavedSearchOrigin=t.getliveSsaiOrigin=t.getSSAIOrigin=t.getCMSAPIOrigin=void 0;t.getCMSAPIOrigin=function(e){return e.api.cms.origin};t.getSSAIOrigin=function(e){return e.api.ssai.origin};t.getliveSsaiOrigin=function(e){return e.api.alive.origin};t.getSavedSearchOrigin=function(e){return e.api.savedsearch.origin};t.getAnalyticsOrigin=function(e){return e.api.analytics.origin};t.getPlayersOrigin=function(e){return e.api.players.origin};t.getIngestProfilesOrigin=function(e){return e.api["ingest-profiles"].origin};t.getIngestOrigin=function(e){return e.api.ingest.origin};t.getSettingsOrigin=function(e){return e.api.seti.origin};t.getAuthIntegrationOrigin=function(e){return e.api["auth-integration"].origin};t.getAuthIntegrationVersion=function(e){return e.api["auth-integration"].version};t.getAccountsOrigin=function(e){return e.api.accounts.origin};t.getBeaconOrigin=function(e){return e.api.beacon.origin};t.getNuCMSOrigin=function(e){return e.api.nucms.origin};t.getOAuthOrigin=function(e){return e.api.oauth.origin};t.getOAuthVersion=function(e){return e.api.oauth.version};t.getGalleryOrigin=function(e){return e.api.gallery?e.api.gallery.origin:"https://gallery.api.brightcove.com"};t.getAudienceOrigin=function(e){return e.api.audience.origin};t.getDeliverySystemOrigin=function(e){return e.api.repos.origin};t.getSocialAPIOrigin=function(e){return e.api.social.origin};t.getPolicyOrigin=function(e){return e.api.policy.origin};t.getPlaybackRightsOrigin=function(e){return e.api["playback-rights"].origin};t.getAccountId=function(e){return e.publisherId};var n=function(e){return{path:e.path,method:"GET"}};t.buildGetForPath=n;t.buildGetWithParamsForPath=function(e){var t=e.path,r=e.data,i=n({path:t});if(r){var o=Object.keys(r).map((function(e){return encodeURIComponent(e)+"="+encodeURIComponent(r[e])}));o.length&&(i.path=i.path+"?"+o.join("&"))}return i};var r=function(e){var t=e.path,n=e.data;return{path:t,method:e.method,data:JSON.stringify(n)}};t.buildPatchForPath=function(e){var t=e.path,n=e.data;return r({method:"PATCH",path:t,data:n})};t.buildPutForPath=function(e){var t=e.path,n=e.data;return r({method:"PUT",path:t,data:n})};t.buildFilePutForPath=function(e){return function(e){var t=e.path,n=e.data,r=e.headers;return{path:t,method:e.method,data:n,headers:r}}({method:"PUT",path:e.path,data:e.data,headers:e.headers})};t.buildPostForPath=function(e){var t=e.path,n=e.data;return r({method:"POST",path:t,data:n})};t.buildDeleteForPath=function(e){return{path:e.path,method:"DELETE"}}},826:(e,t,n)=>{"use strict";t.P=void 0;var r=n(306);t.P=function(e){var t=e.longUrl;return(0,r.buildGetWithParamsForPath)({path:"/shortener/shorten",data:{longUrl:t}})}},17:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(537),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([e.id,".EmbedCode__hint--Fh40S{padding-top:2px}.EmbedCode__input--ZO6KQ{margin:0 !important;padding-bottom:4px !important}.EmbedCode__textArea--KNDhC{color:#aaa !important;background-color:#ddd !important;border:none !important;resize:none}.EmbedCode__copyInput--tkc7M{margin:0 !important;padding-bottom:4px !important}.EmbedCode__copyInput--tkc7M .EmbedCode__textAreaDimensions--N_Vil{height:210px;width:390px}.EmbedCode__helperText--gWEii{color:#999;font-size:14px}a.EmbedCode__copyLink--9tc06{text-decoration:none;cursor:pointer;padding-left:4px}.EmbedCode__hint--Fh40S{padding-top:2px}.EmbedCode__input--ZO6KQ{margin:0 !important;padding-bottom:4px !important}.EmbedCode__textArea--KNDhC{color:#8e9093 !important;background-color:#f2f2f3 !important;border:none !important;resize:none}.EmbedCode__copyInput--tkc7M{margin:0 !important;padding-bottom:4px !important}.EmbedCode__copyInput--tkc7M .EmbedCode__textAreaDimensions--N_Vil{height:210px;width:390px}.EmbedCode__helperText--gWEii{color:#4d5056;font-size:14px}a.EmbedCode__copyLink--9tc06{text-decoration:none;font-weight:700;cursor:pointer;padding-left:4px}","",{version:3,sources:["webpack://./src/styles/EmbedCode.sass"],names:[],mappings:"AAIE,wBACE,eAAA,CACF,yBACE,mBAAA,CACA,6BAAA,CACF,4BACE,qBAAA,CACA,gCAAA,CACA,sBAAA,CACA,WAAA,CACF,6BACE,mBAAA,CACA,6BAAA,CACA,mEACE,YAAA,CACA,WAAA,CACJ,8BACE,UAAA,CACA,cAAA,CACF,6BACE,oBAAA,CAEA,cAAA,CACA,gBAAA,CAvBF,wBACE,eAAA,CACF,yBACE,mBAAA,CACA,6BAAA,CACF,4BACE,wBAAA,CACA,mCAAA,CACA,sBAAA,CACA,WAAA,CACF,6BACE,mBAAA,CACA,6BAAA,CACA,mEACE,YAAA,CACA,WAAA,CACJ,8BACE,aAAA,CACA,cAAA,CACF,6BACE,oBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n // Override studio-components styles\n .hint\n padding-top: 2px\n .input\n margin: 0 !important\n padding-bottom: 4px !important\n .textArea\n color: theme($theme, gray-35) !important\n background-color: theme($theme, gray-20) !important\n border: none !important\n resize: none\n .copyInput\n margin: 0 !important\n padding-bottom: 4px !important\n .textAreaDimensions\n height: 210px\n width: 390px\n .helperText\n color: theme($theme, gray-40)\n font-size: 14px\n a.copyLink\n text-decoration: none\n font-weight: theme($theme, body-small-weight-bold)\n cursor: pointer\n padding-left: 4px\n"],sourceRoot:""}]),a.locals={hint:"EmbedCode__hint--Fh40S",input:"EmbedCode__input--ZO6KQ",textArea:"EmbedCode__textArea--KNDhC",copyInput:"EmbedCode__copyInput--tkc7M",textAreaDimensions:"EmbedCode__textAreaDimensions--N_Vil",helperText:"EmbedCode__helperText--gWEii",copyLink:"EmbedCode__copyLink--9tc06"};const s=a},94:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(537),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([e.id,'.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d53c00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#444;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#999;font-size:.875rem;font-weight:400}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:Lato,Helvetica,Arial,sans-serif;font-size:.933rem;font-weight:700;line-height:24px;letter-spacing:normal;color:#666;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d33d00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#01050e;font-size:1.333rem;font-weight:800;line-height:28px;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#4d5056;font-size:.875rem;font-weight:normal}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:"Public Sans",sans-serif;font-size:.875rem;font-weight:700;line-height:20px;letter-spacing:auto;color:#01050e;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}',"",{version:3,sources:["webpack://./src/styles/EmbedCodeModal.sass"],names:[],mappings:"AAGE,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,UAAA,CAIA,oBAAA,CACF,yJACE,UAAA,CACA,iBAAA,CACA,eAAA,CACF,wFACE,2CAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA,CAvDJ,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,aAAA,CACA,kBAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACF,yJACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACF,wFACE,oCAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,mBAAA,CACA,aAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n .videoDetailsContainer\n margin-bottom: 27px\n .leftContent\n width: 540px\n margin-right: 43px\n .rightContent\n flex-grow: 1\n .mediaData\n margin-top: 23px\n padding: 0\n .redHelperText\n color: theme($theme, red)\n font-size: 14px\n .mediaTitle\n color: theme($theme, text-primary-dark)\n font-size: theme($theme, heading-xs-size)\n font-weight: theme($theme, heading-weight)\n line-height: theme($theme, heading-xs-line-height)\n word-break: break-all\n .text\n color: theme($theme, gray-40)\n font-size: theme($theme, body-small-text-size)\n font-weight: theme($theme, body-small-weight-normal)\n .playerSelectLabel\n font-family: theme($theme, label-font)\n font-size: theme($theme, label-font-size)\n font-weight: theme($theme, label-font-weight)\n line-height: theme($theme, label-line-height)\n letter-spacing: theme($theme, label-letter-spacing)\n color: theme($theme, label-color)\n padding: 0 0 .4rem\n .playerSelect\n width: 100%\n .getURLBtnContainer\n display: inline-flex\n .getURLBtnSpinner\n left: -5px\n position: relative\n margin-right: 8px\n .mediaId\n @extend .text\n margin-bottom: 25px\n .tooltip\n margin-left: theme($theme, padding-sm)\n .customPluginNotice\n font-size: 14px\n .playerLoader\n video-js\n width: 539px !important\n height: 303.2px !important\n margin-bottom: theme($theme, padding-sm)\n iframe\n width: 539px !important\n height: 303.2px !important\n .previewButton\n align-self: center\n\n"],sourceRoot:""}]),a.locals={videoDetailsContainer:"EmbedCodeModal__videoDetailsContainer--WP99B",leftContent:"EmbedCodeModal__leftContent--BIBZB",rightContent:"EmbedCodeModal__rightContent--BDlYZ",mediaData:"EmbedCodeModal__mediaData--f0wqn",redHelperText:"EmbedCodeModal__redHelperText--y3MVU",mediaTitle:"EmbedCodeModal__mediaTitle--apmXI",text:"EmbedCodeModal__text--ayO8f",mediaId:"EmbedCodeModal__mediaId--GymNT",playerSelectLabel:"EmbedCodeModal__playerSelectLabel--w3Ig6",playerSelect:"EmbedCodeModal__playerSelect--rvojt",getURLBtnContainer:"EmbedCodeModal__getURLBtnContainer--MIRx8",getURLBtnSpinner:"EmbedCodeModal__getURLBtnSpinner--VxbOG",tooltip:"EmbedCodeModal__tooltip--vxe8W",customPluginNotice:"EmbedCodeModal__customPluginNotice--VQKaP",playerLoader:"EmbedCodeModal__playerLoader--IgdsR",previewButton:"EmbedCodeModal__previewButton--CFh55"};const s=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},537:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}return[t].join("\n")}},144:(e,t,n)=>{var r,i=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},o=n(893);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r},908:(e,t,n)=>{var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=r},852:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},747:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.S});var r=n(61),i=n(755);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}})},909:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,j:()=>i});var r=console;function i(){return r}function o(e){r=e}},101:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},68:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},61:(e,t,n)=>{"use strict";n.d(t,{S:()=>y});var r=n(462),i=n(288),o=n(578),a=n(101),s=n(909),u=n(216),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){clearTimeout(this.gcTimeout),this.gcTimeout=void 0},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=(0,i.SE)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var d=(0,i.mc)(this.queryKey),p=(0,i.G9)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(p)return a.abortSignalConsumed=!0,p.signal}});var h,v,g={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(h=this.options.behavior)||h.onFetch(g));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=g.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(v=g.fetchOptions)?void 0:v.meta});return this.retryer=new u.m4({fn:g.fetchFn,abort:null==p||null==(o=p.abort)?void 0:o.bind(p),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,u.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,u.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,i;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return(0,u.DV)(o)&&o.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),l=n(943),d=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:(0,i.Rm)(o,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,i.I6)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,i._x)(n,e)}))},n.findAll=function(e,t){var n=(0,i.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return(0,i._x)(n,e)})):this.queries},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(l.l),p=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.ZT).catch(i.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,s.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new u.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();var f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new p({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,i.X7)(e,t)}))},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.ZT)}))}),Promise.resolve())}))},t}(l.l),h=n(852),v=n(68);function g(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function m(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=v.N.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,i._v)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],r=this.queryCache;a.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=this.queryCache,d=(0,r.Z)({},u,{active:!0});return a.V.batch((function(){return l.findAll(u).forEach((function(e){e.reset()})),o.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,n){var r=this,o=(0,i.I6)(e,t,n),s=o[0],u=o[1],c=void 0===u?{}:u;void 0===c.revert&&(c.revert=!0);var l=a.V.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(l).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var o,s,u,c=this,l=(0,i.I6)(e,t,n),d=l[0],p=l[1],f=(0,r.Z)({},d,{active:null==(o=null!=(s=d.refetchActive)?s:d.active)||o,inactive:null!=(u=d.refetchInactive)&&u});return a.V.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(f,p)}))},t.refetchQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=a.V.batch((function(){return o.queryCache.findAll(u).map((function(e){return e.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))}))})),d=Promise.all(l).then(i.ZT);return(null==c?void 0:c.throwOnError)||(d=d.catch(i.ZT)),d},t.fetchQuery=function(e,t,n){var r=(0,i._v)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,i._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,a,s,c,l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),v=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,i.G9)(),C=null==b?void 0:b.signal,A=y,w=!1,E=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},O=function(e,t,n,r){return A=r?[t].concat(A):[].concat(A,[t]),r?[n].concat(e):[].concat(e,[n])},P=function(t,n,r,i){if(w)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:C,pageParam:r,meta:e.meta},a=E(o),s=Promise.resolve(a).then((function(e){return O(t,r,e,i)}));return(0,u.LE)(a)&&(s.cancel=a.cancel),s};if(v.length)if(f){var x=void 0!==p,S=x?p:g(e.options,v);c=P(v,x,S)}else if(h){var I=void 0!==p,j=I?p:m(e.options,v);c=P(v,I,j,!0)}else!function(){A=[];var t=void 0===e.options.getNextPageParam,n=!l||!v[0]||l(v[0],0,v);c=n?P([],t,y[0]):Promise.resolve(O([],y[0],v[0]));for(var r=function(n){c=c.then((function(r){if(!l||!v[n]||l(v[n],n,v)){var i=t?y[n]:g(e.options,r);return P(r,t,i)}return Promise.resolve(O(r,y[n],v[n]))}))},i=1;i<v.length;i++)r(i)}();else c=P([]);var k=c.then((function(e){return{pages:e,pageParams:A}}));return k.cancel=function(){w=!0,null==b||b.abort(),(0,u.LE)(c)&&c.cancel()},k}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,i.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,i.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},216:(e,t,n)=>{"use strict";n.d(t,{DV:()=>c,LE:()=>s,m4:()=>l});var r=n(852),i=n(68),o=n(288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,d=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!d.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!d.isResolved&&(h(new u(e)),null==d.abort||d.abort(),s(l)))try{l.cancel()}catch(e){}},d.isTransportCancelable=s(l),Promise.resolve(l).then(f).catch((function(t){var s,u;if(!d.isResolved){var l=null!=(s=e.retry)?s:3,f=null!=(u=e.retryDelay)?u:a,v="function"==typeof f?f(d.failureCount,t):f,g=!0===l||"number"==typeof l&&d.failureCount<l||"function"==typeof l&&l(d.failureCount,t);!p&&g?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,o.Gh)(v).then((function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise((function(t){n=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){p?h(t):c()}))):h(t)}}))}}()}},943:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},755:()=>{},288:(e,t,n)=>{"use strict";n.d(t,{A4:()=>O,G9:()=>P,Gh:()=>E,I6:()=>d,Kp:()=>c,PN:()=>s,Q$:()=>y,Rm:()=>h,SE:()=>a,VS:()=>b,X7:()=>f,ZT:()=>o,_v:()=>l,_x:()=>p,mc:()=>u,sk:()=>i,to:()=>g,yF:()=>v});var r=n(462),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return w(e)?"function"==typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function d(e,t,n){return w(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function p(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(w(s))if(r){if(t.queryHash!==h(s,t.options))return!1}else if(!g(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function f(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(w(o)){if(!t.options.mutationKey)return!1;if(n){if(v(t.options.mutationKey)!==v(o))return!1}else if(!g(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return C(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function g(e,t){return m(u(e),u(t))}function m(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!m(e[n],t[n])})))}function y(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||C(e)&&C(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u<o;u++){var c=n?u:i[u];a[c]=y(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function b(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function C(e){if(!A(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!A(n)&&!!n.hasOwnProperty("isPrototypeOf")}function A(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e||Array.isArray(e)}function E(e){return new Promise((function(t){setTimeout(t,e)}))}function O(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function P(){if("function"==typeof AbortController)return new AbortController}},767:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.QueryClient,QueryClientProvider:()=>i.QueryClientProvider,useQuery:()=>i.useQuery});var r=n(747);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}});var i=n(446)},446:(e,t,n)=>{"use strict";n.d(t,{QueryClientProvider:()=>f,useQuery:()=>I});var r=n(101),i=n(111),o=n.n(i)().unstable_batchedUpdates;r.V.setBatchNotifyFunction(o);var a=n(909),s=console;(0,a.E)(s);var u=n(156),c=n.n(u),l=c().createContext(void 0),d=c().createContext(!1);function p(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var f=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;c().useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var o=p(r);return c().createElement(d.Provider,{value:r},c().createElement(o.Provider,{value:t},i))},h=n(462),v=n(578),g=n(288),m=n(852),y=n(943),b=n(216),C=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,v.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),A(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return w(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return w(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&E(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(g.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!g.sk&&!this.currentResult.isStale&&(0,g.PN)(this.options.staleTime)){var t=(0,g.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!g.sk&&!1!==this.options.enabled&&(0,g.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||m.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0},n.clearRefetchInterval=function(){clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,o=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,c=e!==r,l=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,p=e.state,f=p.dataUpdatedAt,h=p.error,v=p.errorUpdatedAt,m=p.isFetching,y=p.status,b=!1,C=!1;if(t.optimisticResults){var w=this.hasListeners(),P=!w&&A(e,t),x=w&&E(e,r,t,i);(P||x)&&(m=!0,f||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)n=d.data,f=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&void 0!==p.data)if(o&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,g.Q$)(null==o?void 0:o.data,n)),this.selectResult=n,this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}else n=p.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===y||"idle"===y)){var S;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))S=o.data;else if(S="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==S)try{S=t.select(S),!1!==t.structuralSharing&&(S=(0,g.Q$)(null==o?void 0:o.data,S)),this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}void 0!==S&&(y="success",n=S,C=!0)}return this.selectError&&(h=this.selectError,n=this.selectResult,v=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:f,error:h,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:C,isPreviousData:b,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:O(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,g.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,h.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,b.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(y.l);function A(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&w(e,t,t.refetchOnMount)}function w(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&O(e,t)}return!1}function E(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&O(e,n)}function O(e,t){return e.isStaleByTime(t.staleTime)}function P(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var x=c().createContext(P());function S(e,t){var n=c().useRef(!1),i=c().useState(0)[1],o=function(){var e=c().useContext(p(c().useContext(d)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e}(),a=c().useContext(x),s=o.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=r.V.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=r.V.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=r.V.batchCalls(s.onSettled)),s.suspense&&("number"!=typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(a.isReset()||(s.retryOnMount=!1));var u,l,f,h=c().useState((function(){return new t(o,s)}))[0],v=h.getOptimisticResult(s);if(c().useEffect((function(){n.current=!0,a.clearReset();var e=h.subscribe(r.V.batchCalls((function(){n.current&&i((function(e){return e+1}))})));return h.updateResult(),function(){n.current=!1,e()}}),[a,h]),c().useEffect((function(){h.setOptions(s,{listeners:!1})}),[s,h]),s.suspense&&v.isLoading)throw h.fetchOptimistic(s).then((function(e){var t=e.data;null==s.onSuccess||s.onSuccess(t),null==s.onSettled||s.onSettled(t,null)})).catch((function(e){a.clearReset(),null==s.onError||s.onError(e),null==s.onSettled||s.onSettled(void 0,e)}));if(v.isError&&!a.isReset()&&!v.isFetching&&(u=s.suspense,l=s.useErrorBoundary,f=[v.error,h.getCurrentQuery()],"function"==typeof l?l.apply(void 0,f):"boolean"==typeof l?l:u))throw v.error;return"tracked"===s.notifyOnChangeProps&&(v=h.trackResult(v,s)),v}function I(e,t,n){return S((0,g._v)(e,t,n),C)}},666:e=>{var t=function(e){"use strict";var t,n=Object.prototype,r=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},o=i.iterator||"@@iterator",a=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,r){var i=t&&t.prototype instanceof g?t:g,o=Object.create(i.prototype),a=new I(r||[]);return o._invoke=function(e,t,n){var r=d;return function(i,o){if(r===f)throw new Error("Generator is already running");if(r===h){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===v)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===d)throw r=h,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=f;var u=l(e,t,n);if("normal"===u.type){if(r=n.done?h:p,u.arg===v)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r=h,n.method="throw",n.arg=u.arg)}}}(e,n,a),o}function l(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}e.wrap=c;var d="suspendedStart",p="suspendedYield",f="executing",h="completed",v={};function g(){}function m(){}function y(){}var b={};u(b,o,(function(){return this}));var C=Object.getPrototypeOf,A=C&&C(C(j([])));A&&A!==n&&r.call(A,o)&&(b=A);var w=y.prototype=g.prototype=Object.create(b);function E(e){["next","throw","return"].forEach((function(t){u(e,t,(function(e){return this._invoke(t,e)}))}))}function O(e,t){function n(i,o,a,s){var u=l(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==typeof d&&r.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,a,s)}),(function(e){n("throw",e,a,s)})):t.resolve(d).then((function(e){c.value=e,a(c)}),(function(e){return n("throw",e,a,s)}))}s(u.arg)}var i;this._invoke=function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}}function P(e,n){var r=e.iterator[n.method];if(r===t){if(n.delegate=null,"throw"===n.method){if(e.iterator.return&&(n.method="return",n.arg=t,P(e,n),"throw"===n.method))return v;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return v}var i=l(r,e.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,v;var o=i.arg;return o?o.done?(n[e.resultName]=o.value,n.next=e.nextLoc,"return"!==n.method&&(n.method="next",n.arg=t),n.delegate=null,v):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,v)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e){var n=e[o];if(n)return n.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var i=-1,a=function n(){for(;++i<e.length;)if(r.call(e,i))return n.value=e[i],n.done=!1,n;return n.value=t,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:t,done:!0}}return m.prototype=y,u(w,"constructor",y),u(y,"constructor",m),m.displayName=u(y,s,"GeneratorFunction"),e.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},e.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,y):(e.__proto__=y,u(e,s,"GeneratorFunction")),e.prototype=Object.create(w),e},e.awrap=function(e){return{__await:e}},E(O.prototype),u(O.prototype,a,(function(){return this})),e.AsyncIterator=O,e.async=function(t,n,r,i,o){void 0===o&&(o=Promise);var a=new O(c(t,n,r,i),o);return e.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},E(w),u(w,s,"Generator"),u(w,o,(function(){return this})),u(w,"toString",(function(){return"[object Generator]"})),e.keys=function(e){var t=[];for(var n in e)t.push(n);return t.reverse(),function n(){for(;t.length;){var r=t.pop();if(r in e)return n.value=r,n.done=!1,n}return n.done=!0,n}},e.values=j,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(S),!e)for(var n in this)"t"===n.charAt(0)&&r.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var n=this;function i(r,i){return s.type="throw",s.arg=e,n.next=r,i&&(n.method="next",n.arg=t),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var u=r.call(a,"catchLoc"),c=r.call(a,"finallyLoc");if(u&&c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=e,a.arg=t,o?(this.method="next",this.next=o.finallyLoc,v):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),v},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),v}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,n,r){return this.delegate={iterator:j(e),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=t),v}},e}(e.exports);try{regeneratorRuntime=t}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=t:Function("r","regeneratorRuntime = r")(t)}},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var u=e[s],c=r.base?u[0]+r.base:u[0],l=o[c]||0,d="".concat(c," ").concat(l);o[c]=l+1;var p=n(d),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=i(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var u=r(e,i),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=u}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},609:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},66:e=>{"use strict";e.exports=t},156:t=>{"use strict";t.exports=e},111:e=>{"use strict";e.exports=n},893:()=>{},462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a={};return(()=>{"use strict";function e(e){if(Array.isArray(e))return e}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,i){return e(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(o.push(r.value),!t||o.length!==t);a=!0);}catch(e){s=!0,i=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw i}}return o}}(t,i)||n(t,i)||r()}o.r(a),o.d(a,{EmbedCodeModal:()=>hr,EmbedCodeModalTypes:()=>xe});var s=o(156),u=o.n(s);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(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,r.key,r)}}function d(e,t,n){return t&&l(e.prototype,t),n&&l(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function p(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var v,g={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0},m=u().createContext();function y(){return g}var b=function(){function e(){c(this,e),this.usedNamespaces={}}return d(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function C(){return v}var A={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};g=h(h({},g),e)}(e.options.react),function(e){v=e}(e)}};function w(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,s.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,s.createElement)(m.Provider,{value:i},r)}var E=o(66),O=o(767);function P(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var x={};function S(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&x[t[0]]||("string"==typeof t[0]&&(x[t[0]]=new Date),P.apply(void 0,t))}function I(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function j(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.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};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))))}function k(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return S("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):j(e,t,n)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function L(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,s.useContext)(m)||{},o=r.i18n,a=r.defaultNS,u=n||o||C();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new b),!u){S("You will need to pass in an i18next instance by using initReactI18next");var c=function(e){return Array.isArray(e)?e[e.length-1]:e},l=[c,{},!1];return l.t=c,l.i18n={},l.ready=!1,l}u.options.react&&void 0!==u.options.react.wait&&S("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=_(_(_({},y()),u.options.react),t),p=d.useSuspense,f=d.keyPrefix,h=e||a||u.options&&u.options.defaultNS;h="string"==typeof h?[h]:h||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(h);var v=(u.isInitialized||u.initializedStoreOnce)&&h.every((function(e){return k(e,u,d)}));function g(){return u.getFixedT(null,"fallback"===d.nsMode?h:h[0],f)}var A=(0,s.useState)(g),w=i(A,2),E=w[0],O=w[1],P=(0,s.useRef)(!0);(0,s.useEffect)((function(){var e=d.bindI18n,t=d.bindI18nStore;function n(){P.current&&O(g)}return P.current=!0,v||p||I(u,h,(function(){P.current&&O(g)})),e&&u&&u.on(e,n),t&&u&&u.store.on(t,n),function(){P.current=!1,e&&u&&e.split(" ").forEach((function(e){return u.off(e,n)})),t&&u&&t.split(" ").forEach((function(e){return u.store.off(e,n)}))}}),[u,h.join()]);var x=(0,s.useRef)(!0);(0,s.useEffect)((function(){P.current&&!x.current&&O(g),x.current=!1}),[u]);var j=[E,u,v];if(j.t=E,j.i18n=u,j.ready=v,v)return j;if(!v&&!p)return j;throw new Promise((function(e){I(u,h,(function(){e()}))}))}var N=o(130),M=o.n(N),T="PUBLISHING",F=function(){var e=D();return"//preview-players".concat({qa:".qa",staging:".staging",production:""}[e],".brightcove.net/v2/accounts")};function D(){var e;return(null===(e=window.StudioModule)||void 0===e?void 0:e.config.product.env)||"production"}function B(){return"qa"===D()}function U(){return B()?"https://bc-players-qa.s3.amazonaws.com/":"https://players.brightcove.net/"}function q(e){return e.sort((function(e,t){return e.label.localeCompare(t.label)}))}var V=function(e){var t=e.accountId,n=e.videoId,r=e.interactivityProjectId,i=e.playerId,o=new URLSearchParams;r&&o.append("interactivityProjectId",r),n&&o.append("videoId",n);var a=o.toString();return"".concat(U()).concat(t,"/").concat(i,"_default/index.html").concat(""!==a?"?".concat(a):"")};var Q=function(e,t){return"".concat(B()?"https://preview-players.qa.brightcove.net":"https://preview-players.brightcove.net","/v2/accounts/").concat(e,"/players/").concat(t,"/preview/embeds/default/master/index.html")},H=function(){return window.StudioModule},z=function(){return window.brightcove};var W=function(){return"".concat((null===(e=H())||void 0===e||null===(t=e.config)||void 0===t||null===(n=t.product)||void 0===n?void 0:n.path)||"/products/videocloud","/players");var e,t,n},Z=o(379),K=o.n(Z),G=o(795),$=o.n(G),J=o(569),Y=o.n(J),X=o(565),ee=o.n(X),te=o(609),ne=o.n(te),re=o(589),ie=o.n(re),oe=o(17),ae={};ae.styleTagTransform=ie(),ae.setAttributes=ee(),ae.insert=Y().bind(null,"head"),ae.domAPI=$(),ae.insertStyleElement=ne();K()(oe.Z,ae);const se=oe.Z&&oe.Z.locals?oe.Z.locals:void 0;function ue(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ue(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var le={responsive:!1,width:960,height:540,urlBase:U(),playlistIsHorizontal:!0},de=function(e){var t=L().t,n=i((0,s.useState)(""),2),r=n[0],o=n[1];(0,s.useEffect)((function(){var t=function(e){return Object.assign({},ce(ce({},le),e))}(e),n=M()(t);o(n)}),[e]);var a=u().createElement(E.Flex,null,u().createElement(E.FlexItem,{flexGrow:"1",className:se.helperText},t("tabs.helperText")));return u().createElement(u().Fragment,null,u().createElement(E.CopyField,{className:se.copyInput,helperNode:a,Component:E.PlainTextArea,componentProps:{disabled:!0,disableResizing:!0,className:se.textAreaDimensions,onChange:function(){}},onCopy:function(){z().Toaster.success({title:t("toasterTitle"),message:t("toasterMessage")})},onError:function(){z().Toaster.error({message:t("toasterErrorMessage")})},value:r,hideButton:!0,testName:"embed-copy-section"}))},pe=o(462);function fe(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function he(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){fe(o,r,i,a,s,"next",e)}function s(e){fe(o,r,i,a,s,"throw",e)}a(void 0)}))}}var ve=o(757),ge=o.n(ve),me=o(946);function ye(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function be(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ye(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ye(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Ce=function(){return window.StudioModule.config},Ae=function(){return Ce().user.currentAccount.id},we=function(e,t){var n;return function(e){var t=window.StudioModule.api();return new Promise((function(n,r){t.call(e,n,r)}))}(e(be(be({},t),(n=Ce(),{apiConfig:{publisherId:Ae(),api:n.module.api}}))))},Ee=function(){var e=he(ge().mark((function e(){return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",we(me.Xo,{}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),Oe=function(){var e=he(ge().mark((function e(t){return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",we(me.createPlayer,t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const Pe=function(e){return(0,O.useQuery)(["players"],(function(){return Ee()}),{refetchOnWindowFocus:!1,enabled:e})};var xe,Se;!function(e){e.PLAYER="player",e.VIDEO="video",e.PROJECT="project"}(xe||(xe={})),function(e){e.NO_PLAYER="no-player",e.NO_PERMISSION="no-permission"}(Se||(Se={}));var Ie=["bcAa","bcAirplay","bcGa","bcGtm","bcPlaylistUi","bcTealium","bcMapPlugin","chromecastReceiver","customEndscreen","eme","ima3","interactivityViewer","kollective","overlay","pip","playlistEndscreen","qualityMenu","social","ssai","thumbnails"],je="bcMapPlugin";function ke(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Re(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Re(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Re(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var _e="default",Le="Interactivity Player",Ne="@brightcove/videojs-interactivity-viewer",Me="1.x",Te=o(94),Fe={};Fe.styleTagTransform=ie(),Fe.setAttributes=ee(),Fe.insert=Y().bind(null,"head"),Fe.domAPI=$(),Fe.insertStyleElement=ne();K()(Te.Z,Fe);const De=Te.Z&&Te.Z.locals?Te.Z.locals:void 0;var Be=o(144),Ue=o.n(Be),qe=o(908),Ve=o.n(qe);
|
|
3
|
+
var 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},i=["catalogSearch","catalogSequence"],o=["adConfigId","applicationId","catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId","interactivityProjectId"],a=function(e){return Object.keys(e).filter((function(e){return-1!==o.indexOf(e)})).reduce((function(t,n){var r=function(e,t){if(e&&void 0!==e[t]){if("string"!=typeof e[t]&&-1!==i.indexOf(t))try{return encodeURIComponent(JSON.stringify(e[t]))}catch(e){return}return encodeURIComponent(String(e[t]).trim())||void 0}}(e,n);return void 0!==r&&(t+=t?"&":"?",t+=encodeURIComponent(n)+"="+r),t}),"")},s=function(e){var t=e.accountId,n=e.base,i=void 0===n?"https://players.brightcove.net":n,o=e.playerId,s=void 0===o?"default":o,u=e.embedId,c=void 0===u?"default":u,l=e.iframe,d=void 0!==l&&l,p=e.minified,f=void 0===p||p,h=e.queryParams,v=void 0===h?null:h,g="";d?g+="html":(f&&(g+="min."),g+="js"),"/"===i.charAt(i.length-1)&&(i=i.substring(0,i.length-1));var m="";return d&&v&&"object"===(void 0===v?"undefined":r(v))&&(m=a(v)),i+"/"+(t=encodeURIComponent(t))+"/"+(s=encodeURIComponent(s))+"_"+(c=encodeURIComponent(c))+"/index."+g+m};s.VERSION="1.2.0";var u=s,c={playerId:"default",embedId:"default",iframe:!1,includeScriptElement:!0,minified:!0,returnDomElement:!1,preview:!1,playlistElement:!1,legacyPlaylistElement:!1,playlistIsHorizontal:!0,formatter:function(e){return e},width:960,height:540,units:"px",responsive:!0,applicationId:"",allowFullscreen:!0,allowEncryptedMedia:!0,pictureInPicture:!1,responsiveHeight:"56.25%"};function l(e,t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);return t.responsive&&!t.width&&(n.width=100,n.units="%"),n}var d={createIframeEmbedCode:function(e,t){t=l(c,t);var n,r=e.createElement("div"),i=e.createElement("iframe");if(t.preview)n=(t.urlBase?t.urlBase:"//preview-players.brightcove.net")+"/v2/accounts/"+t.accountId+"/players/"+t.playerId+"/preview/embeds/"+t.embedId+"/master/index.html",t.videoId&&(n+="?videoId="+t.videoId),t.interactivityProjectId&&(n+="?interactivityProjectId="+t.interactivityProjectId);else{var o={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,iframe:!0,minified:t.minified,queryParams:{videoId:t.videoId,playlistId:t.playlistId,interactivityProjectId:t.interactivityProjectId,adConfigId:t.adConfigId,applicationId:t.applicationId,catalogSearch:t.catalogSearch,catalogSequence:t.catalogSequence}};t.urlBase&&(o.base=t.urlBase),n=u(o)}if(t.returnDomElement?i.setAttribute("src",n):i.setAttribute("fzrsbrxzyeajgdaxuxqu",n),t.allowFullscreen&&i.setAttribute("allowfullscreen",""),t.allowEncryptedMedia&&i.setAttribute("allow","encrypted-media"),t.responsive){var a=e.createElement("div"),s=e.createElement("div");a.setAttribute("style","position: relative; display: block; max-width: ".concat(t.width).concat(t.units,";")),s.setAttribute("style","padding-top: ".concat(t.responsiveHeight,";")),i.setAttribute("style","position: absolute; top: 0px; right: 0px; bottom: 0px; left: 0px; width: 100%; height: 100%;"),r.appendChild(a),a.appendChild(s),s.appendChild(i)}else"px"!==t.units?i.setAttribute("style","width: ".concat(t.width).concat(t.units,"; height: ").concat(t.height).concat(t.units,";")):(i.setAttribute("width",t.width),i.setAttribute("height",t.height)),r.appendChild(i);return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src")).replace("&","&")}},p=n(0),f=n.n(p);function h(e){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var v={createInpageEmbedCode:function(e,t){if((t=l(c,t)).preview)throw new Error("You cannot preview an in-page embed");var n,r=e.createElement("div"),i=e.createElement("div");if(t.playerVersion&&f.a.gt("6.11.0",t.playerVersion)?(n=e.createElement("video")).classList.add("video-js"):n=e.createElement("video-js"),n.setAttribute("data-account",t.accountId),n.setAttribute("data-player",t.playerId),n.setAttribute("data-embed",t.embedId),n.setAttribute("controls",""),void 0!==t.videoId&&n.setAttribute("data-video-id",t.videoId),void 0!==t.playlistId&&n.setAttribute("data-playlist-id",t.playlistId),void 0!==t.interactivityProjectId&&n.setAttribute("data-interactivity-project-id",t.interactivityProjectId),void 0!==t.adConfigId&&n.setAttribute("data-ad-config-id",t.adConfigId),void 0!==t.applicationId&&n.setAttribute("data-application-id",t.applicationId),void 0!==t.catalogSearch&&("object"===h(t.catalogSearch)?n.setAttribute("data-catalog-search",JSON.stringify(t.catalogSearch)):n.setAttribute("data-catalog-search",String(t.catalogSearch))),void 0!==t.catalogSequence&&n.setAttribute("data-catalog-sequence",JSON.stringify(t.catalogSequence)),void 0!==t.audience&&"object"===h(t.audience)&&(void 0!==t.audience.integration&&n.setAttribute("data-bc-integrationid",t.audience.integration),void 0!==t.audience.leadForm&&n.setAttribute("data-bc-leadformid",t.audience.leadForm)),t.responsive){var o=e.createElement("style");o.innerHTML="video-js.video-js.vjs-fluid:not(.vjs-audio-only-mode) {padding-top: ".concat(t.responsiveHeight,";}");var a="max-width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",a),i.appendChild(o)}else{var s="width: ".concat(t.width).concat(t.units,";");i.setAttribute("style",s),n.setAttribute("width",t.width),n.setAttribute("height",t.height)}if(n.classList.add("vjs-fluid"),i.appendChild(n),r.appendChild(i),t.pictureInPicture){var d=e.createElement("div");d.classList.add("vjs-pip-container"),d.appendChild(r.firstChild),r.appendChild(d)}if(t.playlistElement)if(t.playlistIsHorizontal){var p=e.createElement("div");p.setAttribute("class","vjs-playlist"),i.appendChild(p)}else i.classList.add("vjs-playlist-player-container");if(t.includeScriptElement){var v=e.createElement("script"),g={accountId:t.accountId,playerId:t.playerId,embedId:t.embedId,minified:t.minified};t.urlBase&&(g.base=t.urlBase),t.returnDomElement?v.setAttribute("src",u(g)):v.setAttribute("fzrsbrxzyeajgdaxuxqu",u(g)),r.appendChild(v)}if(t.legacyPlaylistElement&&!t.playlistElement){var m=e.createElement("ol");m.setAttribute("class","vjs-playlist"),r.appendChild(m)}return t.returnDomElement?r:t.formatter(r.innerHTML.replace("fzrsbrxzyeajgdaxuxqu","src"))}};function g(e){if(void 0===e)throw new Error("options object is required");if(void 0===e.accountId)throw new Error("accountId is required");if(!e.document&&"undefined"==typeof window)throw new Error("No document object found. If you are running this project outside of a browser, pass a `document` option using a library such as jsdom.");var t=void 0!==e.document?e.document:window.document;return e.iframe?d.createIframeEmbedCode(t,e):v.createInpageEmbedCode(t,e)}n.d(t,"default",(function(){return g}))}]).default},946:(e,t,n)=>{"use strict";t.Xo=t.MD=void 0;var r=n(306);function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}var o=function(e){var t=e.apiConfig;return{origin:(0,r.getPlayersOrigin)(t),accountId:(0,r.getAccountId)(t)}};var a=function(e){return e.origin+"/v2/accounts/"+e.accountId+"/players/"+e.playerId};t.Xo=function(e){var t,n=e.apiConfig,a=(t=i({},o({apiConfig:n}))).origin+"/v1/accounts/"+t.accountId+"/players";return(0,r.buildGetForPath)({path:a})};t.MD=function(e){var t,n=e.apiConfig,a=e.data,s=(t=i({},o({apiConfig:n}))).origin+"/v2/accounts/"+t.accountId+"/players";return(0,r.buildPostForPath)({path:s,data:a})}},306:(e,t)=>{"use strict";t.__esModule=!0,t.getliveSsaiOrigin=t.getSocialAPIOrigin=t.getSettingsOrigin=t.getSavedSearchOrigin=t.getSSAIOrigin=t.getPolicyOrigin=t.getPlayersOrigin=t.getPlaybackRightsOrigin=t.getOAuthVersion=t.getOAuthOrigin=t.getNuCMSOrigin=t.getInteractivityOrigin=t.getIngestProfilesOrigin=t.getIngestOrigin=t.getGalleryOrigin=t.getDeliverySystemOrigin=t.getCMSAPIOrigin=t.getBeaconOrigin=t.getAuthIntegrationVersion=t.getAuthIntegrationOrigin=t.getAudienceOrigin=t.getAnalyticsOrigin=t.getAccountsOrigin=t.getAccountId=t.buildPutForPath=t.buildPostForPath=t.buildPatchForPath=t.buildGetWithParamsForPath=t.buildGetForPath=t.buildFilePutForPath=t.buildDeleteWithDataForPath=t.buildDeleteForPath=void 0;t.getCMSAPIOrigin=function(e){return e.api.cms.origin};t.getSSAIOrigin=function(e){return e.api.ssai.origin};t.getliveSsaiOrigin=function(e){return e.api.alive.origin};t.getSavedSearchOrigin=function(e){return e.api.savedsearch.origin};t.getAnalyticsOrigin=function(e){return e.api.analytics.origin};t.getPlayersOrigin=function(e){return e.api.players.origin};t.getIngestProfilesOrigin=function(e){return e.api["ingest-profiles"].origin};t.getIngestOrigin=function(e){return e.api.ingest.origin};t.getSettingsOrigin=function(e){return e.api.seti.origin};t.getAuthIntegrationOrigin=function(e){return e.api["auth-integration"].origin};t.getAuthIntegrationVersion=function(e){return e.api["auth-integration"].version};t.getAccountsOrigin=function(e){return e.api.accounts.origin};t.getBeaconOrigin=function(e){return e.api.beacon.origin};t.getNuCMSOrigin=function(e){return e.api.nucms.origin};t.getInteractivityOrigin=function(e){return e.api.interactivity.origin};t.getOAuthOrigin=function(e){return e.api.oauth.origin};t.getOAuthVersion=function(e){return e.api.oauth.version};t.getGalleryOrigin=function(e){return e.api.gallery?e.api.gallery.origin:"https://gallery.api.brightcove.com"};t.getAudienceOrigin=function(e){return e.api.audience.origin};t.getDeliverySystemOrigin=function(e){return e.api.repos.origin};t.getSocialAPIOrigin=function(e){return e.api.social.origin};t.getPolicyOrigin=function(e){return e.api.policy.origin};t.getPlaybackRightsOrigin=function(e){return e.api["playback-rights"].origin};t.getAccountId=function(e){return e.publisherId};var n=function(e){return{path:e.path,method:"GET"}};t.buildGetForPath=n;t.buildGetWithParamsForPath=function(e){var t=e.path,r=e.data,i=n({path:t});if(r){var o=Object.entries(r).filter((function(e){return null!=e[1]})).map((function(e){var t=e[0],n=e[1];return encodeURIComponent(t)+"="+encodeURIComponent(n)}));o.length&&(i.path=i.path+"?"+o.join("&"))}return i};var r=function(e){var t=e.path,n=e.data;return{path:t,method:e.method,data:JSON.stringify(n)}};t.buildPatchForPath=function(e){var t=e.path,n=e.data;return r({method:"PATCH",path:t,data:n})};t.buildPutForPath=function(e){var t=e.path,n=e.data;return r({method:"PUT",path:t,data:n})};t.buildFilePutForPath=function(e){return function(e){var t=e.path,n=e.data,r=e.headers;return{path:t,method:e.method,data:n,headers:r}}({method:"PUT",path:e.path,data:e.data,headers:e.headers})};t.buildPostForPath=function(e){var t=e.path,n=e.data;return r({method:"POST",path:t,data:n})};t.buildDeleteForPath=function(e){return{path:e.path,method:"DELETE"}};t.buildDeleteWithDataForPath=function(e){var t=e.path,n=e.data;return r({method:"DELETE",path:t,data:n})}},826:(e,t,n)=>{"use strict";t.P=void 0;var r=n(306);t.P=function(e){var t=e.longUrl;return(0,r.buildGetWithParamsForPath)({path:"/shortener/shorten",data:{longUrl:t}})}},17:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(537),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([e.id,".EmbedCode__hint--Fh40S{padding-top:2px}.EmbedCode__input--ZO6KQ{margin:0 !important;padding-bottom:4px !important}.EmbedCode__textArea--KNDhC{color:#aaa !important;background-color:#ddd !important;border:none !important;resize:none}.EmbedCode__copyInput--tkc7M{margin:0 !important;padding-bottom:4px !important}.EmbedCode__copyInput--tkc7M .EmbedCode__textAreaDimensions--N_Vil{height:210px;width:390px}.EmbedCode__helperText--gWEii{color:#999;font-size:14px}a.EmbedCode__copyLink--9tc06{text-decoration:none;cursor:pointer;padding-left:4px}.EmbedCode__hint--Fh40S{padding-top:2px}.EmbedCode__input--ZO6KQ{margin:0 !important;padding-bottom:4px !important}.EmbedCode__textArea--KNDhC{color:#8e9093 !important;background-color:#f2f2f3 !important;border:none !important;resize:none}.EmbedCode__copyInput--tkc7M{margin:0 !important;padding-bottom:4px !important}.EmbedCode__copyInput--tkc7M .EmbedCode__textAreaDimensions--N_Vil{height:210px;width:390px}.EmbedCode__helperText--gWEii{color:#4d5056;font-size:14px}a.EmbedCode__copyLink--9tc06{text-decoration:none;font-weight:700;cursor:pointer;padding-left:4px}","",{version:3,sources:["webpack://./src/styles/EmbedCode.sass"],names:[],mappings:"AAIE,wBACE,eAAA,CACF,yBACE,mBAAA,CACA,6BAAA,CACF,4BACE,qBAAA,CACA,gCAAA,CACA,sBAAA,CACA,WAAA,CACF,6BACE,mBAAA,CACA,6BAAA,CACA,mEACE,YAAA,CACA,WAAA,CACJ,8BACE,UAAA,CACA,cAAA,CACF,6BACE,oBAAA,CAEA,cAAA,CACA,gBAAA,CAvBF,wBACE,eAAA,CACF,yBACE,mBAAA,CACA,6BAAA,CACF,4BACE,wBAAA,CACA,mCAAA,CACA,sBAAA,CACA,WAAA,CACF,6BACE,mBAAA,CACA,6BAAA,CACA,mEACE,YAAA,CACA,WAAA,CACJ,8BACE,aAAA,CACA,cAAA,CACF,6BACE,oBAAA,CACA,eAAA,CACA,cAAA,CACA,gBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n // Override studio-components styles\n .hint\n padding-top: 2px\n .input\n margin: 0 !important\n padding-bottom: 4px !important\n .textArea\n color: theme($theme, gray-35) !important\n background-color: theme($theme, gray-20) !important\n border: none !important\n resize: none\n .copyInput\n margin: 0 !important\n padding-bottom: 4px !important\n .textAreaDimensions\n height: 210px\n width: 390px\n .helperText\n color: theme($theme, gray-40)\n font-size: 14px\n a.copyLink\n text-decoration: none\n font-weight: theme($theme, body-small-weight-bold)\n cursor: pointer\n padding-left: 4px\n"],sourceRoot:""}]),a.locals={hint:"EmbedCode__hint--Fh40S",input:"EmbedCode__input--ZO6KQ",textArea:"EmbedCode__textArea--KNDhC",copyInput:"EmbedCode__copyInput--tkc7M",textAreaDimensions:"EmbedCode__textAreaDimensions--N_Vil",helperText:"EmbedCode__helperText--gWEii",copyLink:"EmbedCode__copyLink--9tc06"};const s=a},94:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(537),i=n.n(r),o=n(645),a=n.n(o)()(i());a.push([e.id,'.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d53c00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#444;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#999;font-size:.875rem;font-weight:400}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:Lato,Helvetica,Arial,sans-serif;font-size:.933rem;font-weight:700;line-height:24px;letter-spacing:normal;color:#666;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}.EmbedCodeModal__videoDetailsContainer--WP99B{margin-bottom:27px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__leftContent--BIBZB{width:540px;margin-right:43px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__rightContent--BDlYZ{flex-grow:1}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaData--f0wqn{margin-top:23px;padding:0}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__redHelperText--y3MVU{color:#d33d00;font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaTitle--apmXI{color:#01050e;font-size:1.333rem;font-weight:800;line-height:28px;word-break:break-all}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__text--ayO8f,.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{color:#4d5056;font-size:.875rem;font-weight:normal}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelectLabel--w3Ig6{font-family:"Public Sans",sans-serif;font-size:.875rem;font-weight:700;line-height:20px;letter-spacing:auto;color:#01050e;padding:0 0 .4rem}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerSelect--rvojt{width:100%}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnContainer--MIRx8{display:inline-flex}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__getURLBtnSpinner--VxbOG{left:-5px;position:relative;margin-right:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__mediaId--GymNT{margin-bottom:25px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__tooltip--vxe8W{margin-left:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__customPluginNotice--VQKaP{font-size:14px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR{margin-bottom:8px}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR video-js{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__playerLoader--IgdsR iframe{width:539px !important;height:303.2px !important}.EmbedCodeModal__videoDetailsContainer--WP99B .EmbedCodeModal__previewButton--CFh55{align-self:center}',"",{version:3,sources:["webpack://./src/styles/EmbedCodeModal.sass"],names:[],mappings:"AAGE,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,UAAA,CAIA,oBAAA,CACF,yJACE,UAAA,CACA,iBAAA,CACA,eAAA,CACF,wFACE,2CAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,qBAAA,CACA,UAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA,CAvDJ,8CACE,kBAAA,CACA,kFACE,WAAA,CACA,iBAAA,CACF,mFACE,WAAA,CACF,gFACE,eAAA,CACA,SAAA,CACF,oFACE,aAAA,CACA,cAAA,CACF,iFACE,aAAA,CACA,kBAAA,CACA,eAAA,CACA,gBAAA,CACA,oBAAA,CACF,yJACE,aAAA,CACA,iBAAA,CACA,kBAAA,CACF,wFACE,oCAAA,CACA,iBAAA,CACA,eAAA,CACA,gBAAA,CACA,mBAAA,CACA,aAAA,CACA,iBAAA,CACF,mFACE,UAAA,CACF,yFACE,mBAAA,CACF,uFACE,SAAA,CACA,iBAAA,CACA,gBAAA,CACF,8EAEE,kBAAA,CACF,8EACE,eAAA,CACF,yFACE,cAAA,CACF,mFAII,iBAAA,CAHA,4FACE,sBAAA,CACA,yBAAA,CAEF,0FACE,sBAAA,CACA,yBAAA,CACN,oFACE,iBAAA",sourcesContent:["@import './base.sass'\n\n@include themed() using ($theme)\n .videoDetailsContainer\n margin-bottom: 27px\n .leftContent\n width: 540px\n margin-right: 43px\n .rightContent\n flex-grow: 1\n .mediaData\n margin-top: 23px\n padding: 0\n .redHelperText\n color: theme($theme, red)\n font-size: 14px\n .mediaTitle\n color: theme($theme, text-primary-dark)\n font-size: theme($theme, heading-xs-size)\n font-weight: theme($theme, heading-weight)\n line-height: theme($theme, heading-xs-line-height)\n word-break: break-all\n .text\n color: theme($theme, gray-40)\n font-size: theme($theme, body-small-text-size)\n font-weight: theme($theme, body-small-weight-normal)\n .playerSelectLabel\n font-family: theme($theme, label-font)\n font-size: theme($theme, label-font-size)\n font-weight: theme($theme, label-font-weight)\n line-height: theme($theme, label-line-height)\n letter-spacing: theme($theme, label-letter-spacing)\n color: theme($theme, label-color)\n padding: 0 0 .4rem\n .playerSelect\n width: 100%\n .getURLBtnContainer\n display: inline-flex\n .getURLBtnSpinner\n left: -5px\n position: relative\n margin-right: 8px\n .mediaId\n @extend .text\n margin-bottom: 25px\n .tooltip\n margin-left: theme($theme, padding-sm)\n .customPluginNotice\n font-size: 14px\n .playerLoader\n video-js\n width: 539px !important\n height: 303.2px !important\n margin-bottom: theme($theme, padding-sm)\n iframe\n width: 539px !important\n height: 303.2px !important\n .previewButton\n align-self: center\n\n"],sourceRoot:""}]),a.locals={videoDetailsContainer:"EmbedCodeModal__videoDetailsContainer--WP99B",leftContent:"EmbedCodeModal__leftContent--BIBZB",rightContent:"EmbedCodeModal__rightContent--BDlYZ",mediaData:"EmbedCodeModal__mediaData--f0wqn",redHelperText:"EmbedCodeModal__redHelperText--y3MVU",mediaTitle:"EmbedCodeModal__mediaTitle--apmXI",text:"EmbedCodeModal__text--ayO8f",mediaId:"EmbedCodeModal__mediaId--GymNT",playerSelectLabel:"EmbedCodeModal__playerSelectLabel--w3Ig6",playerSelect:"EmbedCodeModal__playerSelect--rvojt",getURLBtnContainer:"EmbedCodeModal__getURLBtnContainer--MIRx8",getURLBtnSpinner:"EmbedCodeModal__getURLBtnSpinner--VxbOG",tooltip:"EmbedCodeModal__tooltip--vxe8W",customPluginNotice:"EmbedCodeModal__customPluginNotice--VQKaP",playerLoader:"EmbedCodeModal__playerLoader--IgdsR",previewButton:"EmbedCodeModal__previewButton--CFh55"};const s=a},645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n="",r=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),r&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),r&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n})).join("")},t.i=function(e,n,r,i,o){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(r)for(var s=0;s<this.length;s++){var u=this[s][0];null!=u&&(a[u]=!0)}for(var c=0;c<e.length;c++){var l=[].concat(e[c]);r&&a[l[0]]||(void 0!==o&&(void 0===l[5]||(l[1]="@layer".concat(l[5].length>0?" ".concat(l[5]):""," {").concat(l[1],"}")),l[5]=o),n&&(l[2]?(l[1]="@media ".concat(l[2]," {").concat(l[1],"}"),l[2]=n):l[2]=n),i&&(l[4]?(l[1]="@supports (".concat(l[4],") {").concat(l[1],"}"),l[4]=i):l[4]="".concat(i)),t.push(l))}},t}},537:e=>{"use strict";e.exports=function(e){var t=e[1],n=e[3];if(!n)return t;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(n)))),i="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),o="/*# ".concat(i," */"),a=n.sources.map((function(e){return"/*# sourceURL=".concat(n.sourceRoot||"").concat(e," */")}));return[t].concat(a).concat([o]).join("\n")}return[t].join("\n")}},144:(e,t,n)=>{var r,i=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},o=n(893);"undefined"!=typeof document?r=document:(r=i["__GLOBAL_DOCUMENT_CACHE@4"])||(r=i["__GLOBAL_DOCUMENT_CACHE@4"]=o),e.exports=r},908:(e,t,n)=>{var r;r="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=r},852:(e,t,n)=>{"use strict";n.d(t,{j:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("visibilitychange",n,!1),window.addEventListener("focus",n,!1),function(){window.removeEventListener("visibilitychange",n),window.removeEventListener("focus",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setFocused(e):n.onFocus()}))},n.setFocused=function(e){this.focused=e,e&&this.onFocus()},n.onFocus=function(){this.listeners.forEach((function(e){e()}))},n.isFocused=function(){return"boolean"==typeof this.focused?this.focused:"undefined"==typeof document||[void 0,"visible","prerender"].includes(document.visibilityState)},t}(i.l))},747:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.S});var r=n(61),i=n(755);n.o(i,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return i.QueryClientProvider}}),n.o(i,"useQuery")&&n.d(t,{useQuery:function(){return i.useQuery}})},909:(e,t,n)=>{"use strict";n.d(t,{E:()=>o,j:()=>i});var r=console;function i(){return r}function o(e){r=e}},101:(e,t,n)=>{"use strict";n.d(t,{V:()=>i});var r=n(288),i=new(function(){function e(){this.queue=[],this.transactions=0,this.notifyFn=function(e){e()},this.batchNotifyFn=function(e){e()}}var t=e.prototype;return t.batch=function(e){var t;this.transactions++;try{t=e()}finally{this.transactions--,this.transactions||this.flush()}return t},t.schedule=function(e){var t=this;this.transactions?this.queue.push(e):(0,r.A4)((function(){t.notifyFn(e)}))},t.batchCalls=function(e){var t=this;return function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];t.schedule((function(){e.apply(void 0,r)}))}},t.flush=function(){var e=this,t=this.queue;this.queue=[],t.length&&(0,r.A4)((function(){e.batchNotifyFn((function(){t.forEach((function(t){e.notifyFn(t)}))}))}))},t.setNotifyFunction=function(e){this.notifyFn=e},t.setBatchNotifyFunction=function(e){this.batchNotifyFn=e},e}())},68:(e,t,n)=>{"use strict";n.d(t,{N:()=>a});var r=n(578),i=n(943),o=n(288),a=new(function(e){function t(){var t;return(t=e.call(this)||this).setup=function(e){var t;if(!o.sk&&(null==(t=window)?void 0:t.addEventListener)){var n=function(){return e()};return window.addEventListener("online",n,!1),window.addEventListener("offline",n,!1),function(){window.removeEventListener("online",n),window.removeEventListener("offline",n)}}},t}(0,r.Z)(t,e);var n=t.prototype;return n.onSubscribe=function(){this.cleanup||this.setEventListener(this.setup)},n.onUnsubscribe=function(){var e;this.hasListeners()||(null==(e=this.cleanup)||e.call(this),this.cleanup=void 0)},n.setEventListener=function(e){var t,n=this;this.setup=e,null==(t=this.cleanup)||t.call(this),this.cleanup=e((function(e){"boolean"==typeof e?n.setOnline(e):n.onOnline()}))},n.setOnline=function(e){this.online=e,e&&this.onOnline()},n.onOnline=function(){this.listeners.forEach((function(e){e()}))},n.isOnline=function(){return"boolean"==typeof this.online?this.online:"undefined"==typeof navigator||void 0===navigator.onLine||navigator.onLine},t}(i.l))},61:(e,t,n)=>{"use strict";n.d(t,{S:()=>y});var r=n(462),i=n(288),o=n(578),a=n(101),s=n(909),u=n(216),c=function(){function e(e){this.abortSignalConsumed=!1,this.hadObservers=!1,this.defaultOptions=e.defaultOptions,this.setOptions(e.options),this.observers=[],this.cache=e.cache,this.queryKey=e.queryKey,this.queryHash=e.queryHash,this.initialState=e.state||this.getDefaultState(this.options),this.state=this.initialState,this.meta=e.meta,this.scheduleGc()}var t=e.prototype;return t.setOptions=function(e){var t;this.options=(0,r.Z)({},this.defaultOptions,e),this.meta=null==e?void 0:e.meta,this.cacheTime=Math.max(this.cacheTime||0,null!=(t=this.options.cacheTime)?t:3e5)},t.setDefaultOptions=function(e){this.defaultOptions=e},t.scheduleGc=function(){var e=this;this.clearGcTimeout(),(0,i.PN)(this.cacheTime)&&(this.gcTimeout=setTimeout((function(){e.optionalRemove()}),this.cacheTime))},t.clearGcTimeout=function(){this.gcTimeout&&(clearTimeout(this.gcTimeout),this.gcTimeout=void 0)},t.optionalRemove=function(){this.observers.length||(this.state.isFetching?this.hadObservers&&this.scheduleGc():this.cache.remove(this))},t.setData=function(e,t){var n,r,o=this.state.data,a=(0,i.SE)(e,o);return(null==(n=(r=this.options).isDataEqual)?void 0:n.call(r,o,a))?a=o:!1!==this.options.structuralSharing&&(a=(0,i.Q$)(o,a)),this.dispatch({data:a,type:"success",dataUpdatedAt:null==t?void 0:t.updatedAt}),a},t.setState=function(e,t){this.dispatch({type:"setState",state:e,setStateOptions:t})},t.cancel=function(e){var t,n=this.promise;return null==(t=this.retryer)||t.cancel(e),n?n.then(i.ZT).catch(i.ZT):Promise.resolve()},t.destroy=function(){this.clearGcTimeout(),this.cancel({silent:!0})},t.reset=function(){this.destroy(),this.setState(this.initialState)},t.isActive=function(){return this.observers.some((function(e){return!1!==e.options.enabled}))},t.isFetching=function(){return this.state.isFetching},t.isStale=function(){return this.state.isInvalidated||!this.state.dataUpdatedAt||this.observers.some((function(e){return e.getCurrentResult().isStale}))},t.isStaleByTime=function(e){return void 0===e&&(e=0),this.state.isInvalidated||!this.state.dataUpdatedAt||!(0,i.Kp)(this.state.dataUpdatedAt,e)},t.onFocus=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnWindowFocus()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.onOnline=function(){var e,t=this.observers.find((function(e){return e.shouldFetchOnReconnect()}));t&&t.refetch(),null==(e=this.retryer)||e.continue()},t.addObserver=function(e){-1===this.observers.indexOf(e)&&(this.observers.push(e),this.hadObservers=!0,this.clearGcTimeout(),this.cache.notify({type:"observerAdded",query:this,observer:e}))},t.removeObserver=function(e){-1!==this.observers.indexOf(e)&&(this.observers=this.observers.filter((function(t){return t!==e})),this.observers.length||(this.retryer&&(this.retryer.isTransportCancelable||this.abortSignalConsumed?this.retryer.cancel({revert:!0}):this.retryer.cancelRetry()),this.cacheTime?this.scheduleGc():this.cache.remove(this)),this.cache.notify({type:"observerRemoved",query:this,observer:e}))},t.getObserversCount=function(){return this.observers.length},t.invalidate=function(){this.state.isInvalidated||this.dispatch({type:"invalidate"})},t.fetch=function(e,t){var n,r,o,a=this;if(this.state.isFetching)if(this.state.dataUpdatedAt&&(null==t?void 0:t.cancelRefetch))this.cancel({silent:!0});else if(this.promise){var c;return null==(c=this.retryer)||c.continueRetry(),this.promise}if(e&&this.setOptions(e),!this.options.queryFn){var l=this.observers.find((function(e){return e.options.queryFn}));l&&this.setOptions(l.options)}var d=(0,i.mc)(this.queryKey),p=(0,i.G9)(),f={queryKey:d,pageParam:void 0,meta:this.meta};Object.defineProperty(f,"signal",{enumerable:!0,get:function(){if(p)return a.abortSignalConsumed=!0,p.signal}});var h,v,g={fetchOptions:t,options:this.options,queryKey:d,state:this.state,fetchFn:function(){return a.options.queryFn?(a.abortSignalConsumed=!1,a.options.queryFn(f)):Promise.reject("Missing queryFn")},meta:this.meta};(null==(n=this.options.behavior)?void 0:n.onFetch)&&(null==(h=this.options.behavior)||h.onFetch(g));(this.revertState=this.state,this.state.isFetching&&this.state.fetchMeta===(null==(r=g.fetchOptions)?void 0:r.meta))||this.dispatch({type:"fetch",meta:null==(v=g.fetchOptions)?void 0:v.meta});return this.retryer=new u.m4({fn:g.fetchFn,abort:null==p||null==(o=p.abort)?void 0:o.bind(p),onSuccess:function(e){a.setData(e),null==a.cache.config.onSuccess||a.cache.config.onSuccess(e,a),0===a.cacheTime&&a.optionalRemove()},onError:function(e){(0,u.DV)(e)&&e.silent||a.dispatch({type:"error",error:e}),(0,u.DV)(e)||(null==a.cache.config.onError||a.cache.config.onError(e,a),(0,s.j)().error(e)),0===a.cacheTime&&a.optionalRemove()},onFail:function(){a.dispatch({type:"failed"})},onPause:function(){a.dispatch({type:"pause"})},onContinue:function(){a.dispatch({type:"continue"})},retry:g.options.retry,retryDelay:g.options.retryDelay}),this.promise=this.retryer.promise,this.promise},t.dispatch=function(e){var t=this;this.state=this.reducer(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onQueryUpdate(e)})),t.cache.notify({query:t,type:"queryUpdated",action:e})}))},t.getDefaultState=function(e){var t="function"==typeof e.initialData?e.initialData():e.initialData,n=void 0!==e.initialData?"function"==typeof e.initialDataUpdatedAt?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0,r=void 0!==t;return{data:t,dataUpdateCount:0,dataUpdatedAt:r?null!=n?n:Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchMeta:null,isFetching:!1,isInvalidated:!1,isPaused:!1,status:r?"success":"idle"}},t.reducer=function(e,t){var n,i;switch(t.type){case"failed":return(0,r.Z)({},e,{fetchFailureCount:e.fetchFailureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"fetch":return(0,r.Z)({},e,{fetchFailureCount:0,fetchMeta:null!=(n=t.meta)?n:null,isFetching:!0,isPaused:!1},!e.dataUpdatedAt&&{error:null,status:"loading"});case"success":return(0,r.Z)({},e,{data:t.data,dataUpdateCount:e.dataUpdateCount+1,dataUpdatedAt:null!=(i=t.dataUpdatedAt)?i:Date.now(),error:null,fetchFailureCount:0,isFetching:!1,isInvalidated:!1,isPaused:!1,status:"success"});case"error":var o=t.error;return(0,u.DV)(o)&&o.revert&&this.revertState?(0,r.Z)({},this.revertState):(0,r.Z)({},e,{error:o,errorUpdateCount:e.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:e.fetchFailureCount+1,isFetching:!1,isPaused:!1,status:"error"});case"invalidate":return(0,r.Z)({},e,{isInvalidated:!0});case"setState":return(0,r.Z)({},e,t.state);default:return e}},e}(),l=n(943),d=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.queries=[],n.queriesMap={},n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r,o=t.queryKey,a=null!=(r=t.queryHash)?r:(0,i.Rm)(o,t),s=this.get(a);return s||(s=new c({cache:this,queryKey:o,queryHash:a,options:e.defaultQueryOptions(t),state:n,defaultOptions:e.getQueryDefaults(o),meta:t.meta}),this.add(s)),s},n.add=function(e){this.queriesMap[e.queryHash]||(this.queriesMap[e.queryHash]=e,this.queries.push(e),this.notify({type:"queryAdded",query:e}))},n.remove=function(e){var t=this.queriesMap[e.queryHash];t&&(e.destroy(),this.queries=this.queries.filter((function(t){return t!==e})),t===e&&delete this.queriesMap[e.queryHash],this.notify({type:"queryRemoved",query:e}))},n.clear=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(t){e.remove(t)}))}))},n.get=function(e){return this.queriesMap[e]},n.getAll=function(){return this.queries},n.find=function(e,t){var n=(0,i.I6)(e,t)[0];return void 0===n.exact&&(n.exact=!0),this.queries.find((function(e){return(0,i._x)(n,e)}))},n.findAll=function(e,t){var n=(0,i.I6)(e,t)[0];return Object.keys(n).length>0?this.queries.filter((function(e){return(0,i._x)(n,e)})):this.queries},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onFocus()}))}))},n.onOnline=function(){var e=this;a.V.batch((function(){e.queries.forEach((function(e){e.onOnline()}))}))},t}(l.l),p=function(){function e(e){this.options=(0,r.Z)({},e.defaultOptions,e.options),this.mutationId=e.mutationId,this.mutationCache=e.mutationCache,this.observers=[],this.state=e.state||{context:void 0,data:void 0,error:null,failureCount:0,isPaused:!1,status:"idle",variables:void 0},this.meta=e.meta}var t=e.prototype;return t.setState=function(e){this.dispatch({type:"setState",state:e})},t.addObserver=function(e){-1===this.observers.indexOf(e)&&this.observers.push(e)},t.removeObserver=function(e){this.observers=this.observers.filter((function(t){return t!==e}))},t.cancel=function(){return this.retryer?(this.retryer.cancel(),this.retryer.promise.then(i.ZT).catch(i.ZT)):Promise.resolve()},t.continue=function(){return this.retryer?(this.retryer.continue(),this.retryer.promise):this.execute()},t.execute=function(){var e,t=this,n="loading"===this.state.status,r=Promise.resolve();return n||(this.dispatch({type:"loading",variables:this.options.variables}),r=r.then((function(){null==t.mutationCache.config.onMutate||t.mutationCache.config.onMutate(t.state.variables,t)})).then((function(){return null==t.options.onMutate?void 0:t.options.onMutate(t.state.variables)})).then((function(e){e!==t.state.context&&t.dispatch({type:"loading",context:e,variables:t.state.variables})}))),r.then((function(){return t.executeMutation()})).then((function(n){e=n,null==t.mutationCache.config.onSuccess||t.mutationCache.config.onSuccess(e,t.state.variables,t.state.context,t)})).then((function(){return null==t.options.onSuccess?void 0:t.options.onSuccess(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(e,null,t.state.variables,t.state.context)})).then((function(){return t.dispatch({type:"success",data:e}),e})).catch((function(e){return null==t.mutationCache.config.onError||t.mutationCache.config.onError(e,t.state.variables,t.state.context,t),(0,s.j)().error(e),Promise.resolve().then((function(){return null==t.options.onError?void 0:t.options.onError(e,t.state.variables,t.state.context)})).then((function(){return null==t.options.onSettled?void 0:t.options.onSettled(void 0,e,t.state.variables,t.state.context)})).then((function(){throw t.dispatch({type:"error",error:e}),e}))}))},t.executeMutation=function(){var e,t=this;return this.retryer=new u.m4({fn:function(){return t.options.mutationFn?t.options.mutationFn(t.state.variables):Promise.reject("No mutationFn found")},onFail:function(){t.dispatch({type:"failed"})},onPause:function(){t.dispatch({type:"pause"})},onContinue:function(){t.dispatch({type:"continue"})},retry:null!=(e=this.options.retry)?e:0,retryDelay:this.options.retryDelay}),this.retryer.promise},t.dispatch=function(e){var t=this;this.state=function(e,t){switch(t.type){case"failed":return(0,r.Z)({},e,{failureCount:e.failureCount+1});case"pause":return(0,r.Z)({},e,{isPaused:!0});case"continue":return(0,r.Z)({},e,{isPaused:!1});case"loading":return(0,r.Z)({},e,{context:t.context,data:void 0,error:null,isPaused:!1,status:"loading",variables:t.variables});case"success":return(0,r.Z)({},e,{data:t.data,error:null,status:"success",isPaused:!1});case"error":return(0,r.Z)({},e,{data:void 0,error:t.error,failureCount:e.failureCount+1,isPaused:!1,status:"error"});case"setState":return(0,r.Z)({},e,t.state);default:return e}}(this.state,e),a.V.batch((function(){t.observers.forEach((function(t){t.onMutationUpdate(e)})),t.mutationCache.notify(t)}))},e}();var f=function(e){function t(t){var n;return(n=e.call(this)||this).config=t||{},n.mutations=[],n.mutationId=0,n}(0,o.Z)(t,e);var n=t.prototype;return n.build=function(e,t,n){var r=new p({mutationCache:this,mutationId:++this.mutationId,options:e.defaultMutationOptions(t),state:n,defaultOptions:t.mutationKey?e.getMutationDefaults(t.mutationKey):void 0,meta:t.meta});return this.add(r),r},n.add=function(e){this.mutations.push(e),this.notify(e)},n.remove=function(e){this.mutations=this.mutations.filter((function(t){return t!==e})),e.cancel(),this.notify(e)},n.clear=function(){var e=this;a.V.batch((function(){e.mutations.forEach((function(t){e.remove(t)}))}))},n.getAll=function(){return this.mutations},n.find=function(e){return void 0===e.exact&&(e.exact=!0),this.mutations.find((function(t){return(0,i.X7)(e,t)}))},n.findAll=function(e){return this.mutations.filter((function(t){return(0,i.X7)(e,t)}))},n.notify=function(e){var t=this;a.V.batch((function(){t.listeners.forEach((function(t){t(e)}))}))},n.onFocus=function(){this.resumePausedMutations()},n.onOnline=function(){this.resumePausedMutations()},n.resumePausedMutations=function(){var e=this.mutations.filter((function(e){return e.state.isPaused}));return a.V.batch((function(){return e.reduce((function(e,t){return e.then((function(){return t.continue().catch(i.ZT)}))}),Promise.resolve())}))},t}(l.l),h=n(852),v=n(68);function g(e,t){return null==e.getNextPageParam?void 0:e.getNextPageParam(t[t.length-1],t)}function m(e,t){return null==e.getPreviousPageParam?void 0:e.getPreviousPageParam(t[0],t)}var y=function(){function e(e){void 0===e&&(e={}),this.queryCache=e.queryCache||new d,this.mutationCache=e.mutationCache||new f,this.defaultOptions=e.defaultOptions||{},this.queryDefaults=[],this.mutationDefaults=[]}var t=e.prototype;return t.mount=function(){var e=this;this.unsubscribeFocus=h.j.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onFocus(),e.queryCache.onFocus())})),this.unsubscribeOnline=v.N.subscribe((function(){h.j.isFocused()&&v.N.isOnline()&&(e.mutationCache.onOnline(),e.queryCache.onOnline())}))},t.unmount=function(){var e,t;null==(e=this.unsubscribeFocus)||e.call(this),null==(t=this.unsubscribeOnline)||t.call(this)},t.isFetching=function(e,t){var n=(0,i.I6)(e,t)[0];return n.fetching=!0,this.queryCache.findAll(n).length},t.isMutating=function(e){return this.mutationCache.findAll((0,r.Z)({},e,{fetching:!0})).length},t.getQueryData=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state.data},t.getQueriesData=function(e){return this.getQueryCache().findAll(e).map((function(e){return[e.queryKey,e.state.data]}))},t.setQueryData=function(e,t,n){var r=(0,i._v)(e),o=this.defaultQueryOptions(r);return this.queryCache.build(this,o).setData(t,n)},t.setQueriesData=function(e,t,n){var r=this;return a.V.batch((function(){return r.getQueryCache().findAll(e).map((function(e){var i=e.queryKey;return[i,r.setQueryData(i,t,n)]}))}))},t.getQueryState=function(e,t){var n;return null==(n=this.queryCache.find(e,t))?void 0:n.state},t.removeQueries=function(e,t){var n=(0,i.I6)(e,t)[0],r=this.queryCache;a.V.batch((function(){r.findAll(n).forEach((function(e){r.remove(e)}))}))},t.resetQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=this.queryCache,d=(0,r.Z)({},u,{active:!0});return a.V.batch((function(){return l.findAll(u).forEach((function(e){e.reset()})),o.refetchQueries(d,c)}))},t.cancelQueries=function(e,t,n){var r=this,o=(0,i.I6)(e,t,n),s=o[0],u=o[1],c=void 0===u?{}:u;void 0===c.revert&&(c.revert=!0);var l=a.V.batch((function(){return r.queryCache.findAll(s).map((function(e){return e.cancel(c)}))}));return Promise.all(l).then(i.ZT).catch(i.ZT)},t.invalidateQueries=function(e,t,n){var o,s,u,c=this,l=(0,i.I6)(e,t,n),d=l[0],p=l[1],f=(0,r.Z)({},d,{active:null==(o=null!=(s=d.refetchActive)?s:d.active)||o,inactive:null!=(u=d.refetchInactive)&&u});return a.V.batch((function(){return c.queryCache.findAll(d).forEach((function(e){e.invalidate()})),c.refetchQueries(f,p)}))},t.refetchQueries=function(e,t,n){var o=this,s=(0,i.I6)(e,t,n),u=s[0],c=s[1],l=a.V.batch((function(){return o.queryCache.findAll(u).map((function(e){return e.fetch(void 0,(0,r.Z)({},c,{meta:{refetchPage:null==u?void 0:u.refetchPage}}))}))})),d=Promise.all(l).then(i.ZT);return(null==c?void 0:c.throwOnError)||(d=d.catch(i.ZT)),d},t.fetchQuery=function(e,t,n){var r=(0,i._v)(e,t,n),o=this.defaultQueryOptions(r);void 0===o.retry&&(o.retry=!1);var a=this.queryCache.build(this,o);return a.isStaleByTime(o.staleTime)?a.fetch(o):Promise.resolve(a.state.data)},t.prefetchQuery=function(e,t,n){return this.fetchQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.fetchInfiniteQuery=function(e,t,n){var r=(0,i._v)(e,t,n);return r.behavior={onFetch:function(e){e.fetchFn=function(){var t,n,r,o,a,s,c,l=null==(t=e.fetchOptions)||null==(n=t.meta)?void 0:n.refetchPage,d=null==(r=e.fetchOptions)||null==(o=r.meta)?void 0:o.fetchMore,p=null==d?void 0:d.pageParam,f="forward"===(null==d?void 0:d.direction),h="backward"===(null==d?void 0:d.direction),v=(null==(a=e.state.data)?void 0:a.pages)||[],y=(null==(s=e.state.data)?void 0:s.pageParams)||[],b=(0,i.G9)(),C=null==b?void 0:b.signal,A=y,w=!1,E=e.options.queryFn||function(){return Promise.reject("Missing queryFn")},O=function(e,t,n,r){return A=r?[t].concat(A):[].concat(A,[t]),r?[n].concat(e):[].concat(e,[n])},P=function(t,n,r,i){if(w)return Promise.reject("Cancelled");if(void 0===r&&!n&&t.length)return Promise.resolve(t);var o={queryKey:e.queryKey,signal:C,pageParam:r,meta:e.meta},a=E(o),s=Promise.resolve(a).then((function(e){return O(t,r,e,i)}));return(0,u.LE)(a)&&(s.cancel=a.cancel),s};if(v.length)if(f){var x=void 0!==p,S=x?p:g(e.options,v);c=P(v,x,S)}else if(h){var I=void 0!==p,j=I?p:m(e.options,v);c=P(v,I,j,!0)}else!function(){A=[];var t=void 0===e.options.getNextPageParam,n=!l||!v[0]||l(v[0],0,v);c=n?P([],t,y[0]):Promise.resolve(O([],y[0],v[0]));for(var r=function(n){c=c.then((function(r){if(!l||!v[n]||l(v[n],n,v)){var i=t?y[n]:g(e.options,r);return P(r,t,i)}return Promise.resolve(O(r,y[n],v[n]))}))},i=1;i<v.length;i++)r(i)}();else c=P([]);var k=c.then((function(e){return{pages:e,pageParams:A}}));return k.cancel=function(){w=!0,null==b||b.abort(),(0,u.LE)(c)&&c.cancel()},k}}},this.fetchQuery(r)},t.prefetchInfiniteQuery=function(e,t,n){return this.fetchInfiniteQuery(e,t,n).then(i.ZT).catch(i.ZT)},t.cancelMutations=function(){var e=this,t=a.V.batch((function(){return e.mutationCache.getAll().map((function(e){return e.cancel()}))}));return Promise.all(t).then(i.ZT).catch(i.ZT)},t.resumePausedMutations=function(){return this.getMutationCache().resumePausedMutations()},t.executeMutation=function(e){return this.mutationCache.build(this,e).execute()},t.getQueryCache=function(){return this.queryCache},t.getMutationCache=function(){return this.mutationCache},t.getDefaultOptions=function(){return this.defaultOptions},t.setDefaultOptions=function(e){this.defaultOptions=e},t.setQueryDefaults=function(e,t){var n=this.queryDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.queryKey)}));n?n.defaultOptions=t:this.queryDefaults.push({queryKey:e,defaultOptions:t})},t.getQueryDefaults=function(e){var t;return e?null==(t=this.queryDefaults.find((function(t){return(0,i.to)(e,t.queryKey)})))?void 0:t.defaultOptions:void 0},t.setMutationDefaults=function(e,t){var n=this.mutationDefaults.find((function(t){return(0,i.yF)(e)===(0,i.yF)(t.mutationKey)}));n?n.defaultOptions=t:this.mutationDefaults.push({mutationKey:e,defaultOptions:t})},t.getMutationDefaults=function(e){var t;return e?null==(t=this.mutationDefaults.find((function(t){return(0,i.to)(e,t.mutationKey)})))?void 0:t.defaultOptions:void 0},t.defaultQueryOptions=function(e){if(null==e?void 0:e._defaulted)return e;var t=(0,r.Z)({},this.defaultOptions.queries,this.getQueryDefaults(null==e?void 0:e.queryKey),e,{_defaulted:!0});return!t.queryHash&&t.queryKey&&(t.queryHash=(0,i.Rm)(t.queryKey,t)),t},t.defaultQueryObserverOptions=function(e){return this.defaultQueryOptions(e)},t.defaultMutationOptions=function(e){return(null==e?void 0:e._defaulted)?e:(0,r.Z)({},this.defaultOptions.mutations,this.getMutationDefaults(null==e?void 0:e.mutationKey),e,{_defaulted:!0})},t.clear=function(){this.queryCache.clear(),this.mutationCache.clear()},e}()},216:(e,t,n)=>{"use strict";n.d(t,{DV:()=>c,LE:()=>s,m4:()=>l});var r=n(852),i=n(68),o=n(288);function a(e){return Math.min(1e3*Math.pow(2,e),3e4)}function s(e){return"function"==typeof(null==e?void 0:e.cancel)}var u=function(e){this.revert=null==e?void 0:e.revert,this.silent=null==e?void 0:e.silent};function c(e){return e instanceof u}var l=function(e){var t,n,c,l,d=this,p=!1;this.abort=e.abort,this.cancel=function(e){return null==t?void 0:t(e)},this.cancelRetry=function(){p=!0},this.continueRetry=function(){p=!1},this.continue=function(){return null==n?void 0:n()},this.failureCount=0,this.isPaused=!1,this.isResolved=!1,this.isTransportCancelable=!1,this.promise=new Promise((function(e,t){c=e,l=t}));var f=function(t){d.isResolved||(d.isResolved=!0,null==e.onSuccess||e.onSuccess(t),null==n||n(),c(t))},h=function(t){d.isResolved||(d.isResolved=!0,null==e.onError||e.onError(t),null==n||n(),l(t))};!function c(){if(!d.isResolved){var l;try{l=e.fn()}catch(e){l=Promise.reject(e)}t=function(e){if(!d.isResolved&&(h(new u(e)),null==d.abort||d.abort(),s(l)))try{l.cancel()}catch(e){}},d.isTransportCancelable=s(l),Promise.resolve(l).then(f).catch((function(t){var s,u;if(!d.isResolved){var l=null!=(s=e.retry)?s:3,f=null!=(u=e.retryDelay)?u:a,v="function"==typeof f?f(d.failureCount,t):f,g=!0===l||"number"==typeof l&&d.failureCount<l||"function"==typeof l&&l(d.failureCount,t);!p&&g?(d.failureCount++,null==e.onFail||e.onFail(d.failureCount,t),(0,o.Gh)(v).then((function(){if(!r.j.isFocused()||!i.N.isOnline())return new Promise((function(t){n=t,d.isPaused=!0,null==e.onPause||e.onPause()})).then((function(){n=void 0,d.isPaused=!1,null==e.onContinue||e.onContinue()}))})).then((function(){p?h(t):c()}))):h(t)}}))}}()}},943:(e,t,n)=>{"use strict";n.d(t,{l:()=>r});var r=function(){function e(){this.listeners=[]}var t=e.prototype;return t.subscribe=function(e){var t=this,n=e||function(){};return this.listeners.push(n),this.onSubscribe(),function(){t.listeners=t.listeners.filter((function(e){return e!==n})),t.onUnsubscribe()}},t.hasListeners=function(){return this.listeners.length>0},t.onSubscribe=function(){},t.onUnsubscribe=function(){},e}()},755:()=>{},288:(e,t,n)=>{"use strict";n.d(t,{A4:()=>O,G9:()=>P,Gh:()=>E,I6:()=>d,Kp:()=>c,PN:()=>s,Q$:()=>y,Rm:()=>h,SE:()=>a,VS:()=>b,X7:()=>f,ZT:()=>o,_v:()=>l,_x:()=>p,mc:()=>u,sk:()=>i,to:()=>g,yF:()=>v});var r=n(462),i="undefined"==typeof window;function o(){}function a(e,t){return"function"==typeof e?e(t):e}function s(e){return"number"==typeof e&&e>=0&&e!==1/0}function u(e){return Array.isArray(e)?e:[e]}function c(e,t){return Math.max(e+(t||0)-Date.now(),0)}function l(e,t,n){return w(e)?"function"==typeof t?(0,r.Z)({},n,{queryKey:e,queryFn:t}):(0,r.Z)({},t,{queryKey:e}):e}function d(e,t,n){return w(e)?[(0,r.Z)({},t,{queryKey:e}),n]:[e||{},t]}function p(e,t){var n=e.active,r=e.exact,i=e.fetching,o=e.inactive,a=e.predicate,s=e.queryKey,u=e.stale;if(w(s))if(r){if(t.queryHash!==h(s,t.options))return!1}else if(!g(t.queryKey,s))return!1;var c=function(e,t){return!0===e&&!0===t||null==e&&null==t?"all":!1===e&&!1===t?"none":(null!=e?e:!t)?"active":"inactive"}(n,o);if("none"===c)return!1;if("all"!==c){var l=t.isActive();if("active"===c&&!l)return!1;if("inactive"===c&&l)return!1}return("boolean"!=typeof u||t.isStale()===u)&&(("boolean"!=typeof i||t.isFetching()===i)&&!(a&&!a(t)))}function f(e,t){var n=e.exact,r=e.fetching,i=e.predicate,o=e.mutationKey;if(w(o)){if(!t.options.mutationKey)return!1;if(n){if(v(t.options.mutationKey)!==v(o))return!1}else if(!g(t.options.mutationKey,o))return!1}return("boolean"!=typeof r||"loading"===t.state.status===r)&&!(i&&!i(t))}function h(e,t){return((null==t?void 0:t.queryKeyHashFn)||v)(e)}function v(e){var t,n=u(e);return t=n,JSON.stringify(t,(function(e,t){return C(t)?Object.keys(t).sort().reduce((function(e,n){return e[n]=t[n],e}),{}):t}))}function g(e,t){return m(u(e),u(t))}function m(e,t){return e===t||typeof e==typeof t&&(!(!e||!t||"object"!=typeof e||"object"!=typeof t)&&!Object.keys(t).some((function(n){return!m(e[n],t[n])})))}function y(e,t){if(e===t)return e;var n=Array.isArray(e)&&Array.isArray(t);if(n||C(e)&&C(t)){for(var r=n?e.length:Object.keys(e).length,i=n?t:Object.keys(t),o=i.length,a=n?[]:{},s=0,u=0;u<o;u++){var c=n?u:i[u];a[c]=y(e[c],t[c]),a[c]===e[c]&&s++}return r===o&&s===r?e:a}return t}function b(e,t){if(e&&!t||t&&!e)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}function C(e){if(!A(e))return!1;var t=e.constructor;if(void 0===t)return!0;var n=t.prototype;return!!A(n)&&!!n.hasOwnProperty("isPrototypeOf")}function A(e){return"[object Object]"===Object.prototype.toString.call(e)}function w(e){return"string"==typeof e||Array.isArray(e)}function E(e){return new Promise((function(t){setTimeout(t,e)}))}function O(e){Promise.resolve().then(e).catch((function(e){return setTimeout((function(){throw e}))}))}function P(){if("function"==typeof AbortController)return new AbortController}},767:(e,t,n)=>{"use strict";n.d(t,{QueryClient:()=>r.QueryClient,QueryClientProvider:()=>i.QueryClientProvider,useQuery:()=>i.useQuery});var r=n(747);n.o(r,"QueryClientProvider")&&n.d(t,{QueryClientProvider:function(){return r.QueryClientProvider}}),n.o(r,"useQuery")&&n.d(t,{useQuery:function(){return r.useQuery}});var i=n(446)},446:(e,t,n)=>{"use strict";n.d(t,{QueryClientProvider:()=>f,useQuery:()=>I});var r=n(101),i=n(111),o=n.n(i)().unstable_batchedUpdates;r.V.setBatchNotifyFunction(o);var a=n(909),s=console;(0,a.E)(s);var u=n(156),c=n.n(u),l=c().createContext(void 0),d=c().createContext(!1);function p(e){return e&&"undefined"!=typeof window?(window.ReactQueryClientContext||(window.ReactQueryClientContext=l),window.ReactQueryClientContext):l}var f=function(e){var t=e.client,n=e.contextSharing,r=void 0!==n&&n,i=e.children;c().useEffect((function(){return t.mount(),function(){t.unmount()}}),[t]);var o=p(r);return c().createElement(d.Provider,{value:r},c().createElement(o.Provider,{value:t},i))},h=n(462),v=n(578),g=n(288),m=n(852),y=n(943),b=n(216),C=function(e){function t(t,n){var r;return(r=e.call(this)||this).client=t,r.options=n,r.trackedProps=[],r.selectError=null,r.bindMethods(),r.setOptions(n),r}(0,v.Z)(t,e);var n=t.prototype;return n.bindMethods=function(){this.remove=this.remove.bind(this),this.refetch=this.refetch.bind(this)},n.onSubscribe=function(){1===this.listeners.length&&(this.currentQuery.addObserver(this),A(this.currentQuery,this.options)&&this.executeFetch(),this.updateTimers())},n.onUnsubscribe=function(){this.listeners.length||this.destroy()},n.shouldFetchOnReconnect=function(){return w(this.currentQuery,this.options,this.options.refetchOnReconnect)},n.shouldFetchOnWindowFocus=function(){return w(this.currentQuery,this.options,this.options.refetchOnWindowFocus)},n.destroy=function(){this.listeners=[],this.clearTimers(),this.currentQuery.removeObserver(this)},n.setOptions=function(e,t){var n=this.options,r=this.currentQuery;if(this.options=this.client.defaultQueryObserverOptions(e),void 0!==this.options.enabled&&"boolean"!=typeof this.options.enabled)throw new Error("Expected enabled to be a boolean");this.options.queryKey||(this.options.queryKey=n.queryKey),this.updateQuery();var i=this.hasListeners();i&&E(this.currentQuery,r,this.options,n)&&this.executeFetch(),this.updateResult(t),!i||this.currentQuery===r&&this.options.enabled===n.enabled&&this.options.staleTime===n.staleTime||this.updateStaleTimeout();var o=this.computeRefetchInterval();!i||this.currentQuery===r&&this.options.enabled===n.enabled&&o===this.currentRefetchInterval||this.updateRefetchInterval(o)},n.getOptimisticResult=function(e){var t=this.client.defaultQueryObserverOptions(e),n=this.client.getQueryCache().build(this.client,t);return this.createResult(n,t)},n.getCurrentResult=function(){return this.currentResult},n.trackResult=function(e,t){var n=this,r={},i=function(e){n.trackedProps.includes(e)||n.trackedProps.push(e)};return Object.keys(e).forEach((function(t){Object.defineProperty(r,t,{configurable:!1,enumerable:!0,get:function(){return i(t),e[t]}})})),(t.useErrorBoundary||t.suspense)&&i("error"),r},n.getNextResult=function(e){var t=this;return new Promise((function(n,r){var i=t.subscribe((function(t){t.isFetching||(i(),t.isError&&(null==e?void 0:e.throwOnError)?r(t.error):n(t))}))}))},n.getCurrentQuery=function(){return this.currentQuery},n.remove=function(){this.client.getQueryCache().remove(this.currentQuery)},n.refetch=function(e){return this.fetch((0,h.Z)({},e,{meta:{refetchPage:null==e?void 0:e.refetchPage}}))},n.fetchOptimistic=function(e){var t=this,n=this.client.defaultQueryObserverOptions(e),r=this.client.getQueryCache().build(this.client,n);return r.fetch().then((function(){return t.createResult(r,n)}))},n.fetch=function(e){var t=this;return this.executeFetch(e).then((function(){return t.updateResult(),t.currentResult}))},n.executeFetch=function(e){this.updateQuery();var t=this.currentQuery.fetch(this.options,e);return(null==e?void 0:e.throwOnError)||(t=t.catch(g.ZT)),t},n.updateStaleTimeout=function(){var e=this;if(this.clearStaleTimeout(),!g.sk&&!this.currentResult.isStale&&(0,g.PN)(this.options.staleTime)){var t=(0,g.Kp)(this.currentResult.dataUpdatedAt,this.options.staleTime)+1;this.staleTimeoutId=setTimeout((function(){e.currentResult.isStale||e.updateResult()}),t)}},n.computeRefetchInterval=function(){var e;return"function"==typeof this.options.refetchInterval?this.options.refetchInterval(this.currentResult.data,this.currentQuery):null!=(e=this.options.refetchInterval)&&e},n.updateRefetchInterval=function(e){var t=this;this.clearRefetchInterval(),this.currentRefetchInterval=e,!g.sk&&!1!==this.options.enabled&&(0,g.PN)(this.currentRefetchInterval)&&0!==this.currentRefetchInterval&&(this.refetchIntervalId=setInterval((function(){(t.options.refetchIntervalInBackground||m.j.isFocused())&&t.executeFetch()}),this.currentRefetchInterval))},n.updateTimers=function(){this.updateStaleTimeout(),this.updateRefetchInterval(this.computeRefetchInterval())},n.clearTimers=function(){this.clearStaleTimeout(),this.clearRefetchInterval()},n.clearStaleTimeout=function(){this.staleTimeoutId&&(clearTimeout(this.staleTimeoutId),this.staleTimeoutId=void 0)},n.clearRefetchInterval=function(){this.refetchIntervalId&&(clearInterval(this.refetchIntervalId),this.refetchIntervalId=void 0)},n.createResult=function(e,t){var n,r=this.currentQuery,i=this.options,o=this.currentResult,s=this.currentResultState,u=this.currentResultOptions,c=e!==r,l=c?e.state:this.currentQueryInitialState,d=c?this.currentResult:this.previousQueryResult,p=e.state,f=p.dataUpdatedAt,h=p.error,v=p.errorUpdatedAt,m=p.isFetching,y=p.status,b=!1,C=!1;if(t.optimisticResults){var w=this.hasListeners(),P=!w&&A(e,t),x=w&&E(e,r,t,i);(P||x)&&(m=!0,f||(y="loading"))}if(t.keepPreviousData&&!p.dataUpdateCount&&(null==d?void 0:d.isSuccess)&&"error"!==y)n=d.data,f=d.dataUpdatedAt,y=d.status,b=!0;else if(t.select&&void 0!==p.data)if(o&&p.data===(null==s?void 0:s.data)&&t.select===this.selectFn)n=this.selectResult;else try{this.selectFn=t.select,n=t.select(p.data),!1!==t.structuralSharing&&(n=(0,g.Q$)(null==o?void 0:o.data,n)),this.selectResult=n,this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}else n=p.data;if(void 0!==t.placeholderData&&void 0===n&&("loading"===y||"idle"===y)){var S;if((null==o?void 0:o.isPlaceholderData)&&t.placeholderData===(null==u?void 0:u.placeholderData))S=o.data;else if(S="function"==typeof t.placeholderData?t.placeholderData():t.placeholderData,t.select&&void 0!==S)try{S=t.select(S),!1!==t.structuralSharing&&(S=(0,g.Q$)(null==o?void 0:o.data,S)),this.selectError=null}catch(e){(0,a.j)().error(e),this.selectError=e}void 0!==S&&(y="success",n=S,C=!0)}return this.selectError&&(h=this.selectError,n=this.selectResult,v=Date.now(),y="error"),{status:y,isLoading:"loading"===y,isSuccess:"success"===y,isError:"error"===y,isIdle:"idle"===y,data:n,dataUpdatedAt:f,error:h,errorUpdatedAt:v,failureCount:p.fetchFailureCount,errorUpdateCount:p.errorUpdateCount,isFetched:p.dataUpdateCount>0||p.errorUpdateCount>0,isFetchedAfterMount:p.dataUpdateCount>l.dataUpdateCount||p.errorUpdateCount>l.errorUpdateCount,isFetching:m,isRefetching:m&&"loading"!==y,isLoadingError:"error"===y&&0===p.dataUpdatedAt,isPlaceholderData:C,isPreviousData:b,isRefetchError:"error"===y&&0!==p.dataUpdatedAt,isStale:O(e,t),refetch:this.refetch,remove:this.remove}},n.shouldNotifyListeners=function(e,t){if(!t)return!0;var n=this.options,r=n.notifyOnChangeProps,i=n.notifyOnChangePropsExclusions;if(!r&&!i)return!0;if("tracked"===r&&!this.trackedProps.length)return!0;var o="tracked"===r?this.trackedProps:r;return Object.keys(e).some((function(n){var r=n,a=e[r]!==t[r],s=null==o?void 0:o.some((function(e){return e===n})),u=null==i?void 0:i.some((function(e){return e===n}));return a&&!u&&(!o||s)}))},n.updateResult=function(e){var t=this.currentResult;if(this.currentResult=this.createResult(this.currentQuery,this.options),this.currentResultState=this.currentQuery.state,this.currentResultOptions=this.options,!(0,g.VS)(this.currentResult,t)){var n={cache:!0};!1!==(null==e?void 0:e.listeners)&&this.shouldNotifyListeners(this.currentResult,t)&&(n.listeners=!0),this.notify((0,h.Z)({},n,e))}},n.updateQuery=function(){var e=this.client.getQueryCache().build(this.client,this.options);if(e!==this.currentQuery){var t=this.currentQuery;this.currentQuery=e,this.currentQueryInitialState=e.state,this.previousQueryResult=this.currentResult,this.hasListeners()&&(null==t||t.removeObserver(this),e.addObserver(this))}},n.onQueryUpdate=function(e){var t={};"success"===e.type?t.onSuccess=!0:"error"!==e.type||(0,b.DV)(e.error)||(t.onError=!0),this.updateResult(t),this.hasListeners()&&this.updateTimers()},n.notify=function(e){var t=this;r.V.batch((function(){e.onSuccess?(null==t.options.onSuccess||t.options.onSuccess(t.currentResult.data),null==t.options.onSettled||t.options.onSettled(t.currentResult.data,null)):e.onError&&(null==t.options.onError||t.options.onError(t.currentResult.error),null==t.options.onSettled||t.options.onSettled(void 0,t.currentResult.error)),e.listeners&&t.listeners.forEach((function(e){e(t.currentResult)})),e.cache&&t.client.getQueryCache().notify({query:t.currentQuery,type:"observerResultsUpdated"})}))},t}(y.l);function A(e,t){return function(e,t){return!(!1===t.enabled||e.state.dataUpdatedAt||"error"===e.state.status&&!1===t.retryOnMount)}(e,t)||e.state.dataUpdatedAt>0&&w(e,t,t.refetchOnMount)}function w(e,t,n){if(!1!==t.enabled){var r="function"==typeof n?n(e):n;return"always"===r||!1!==r&&O(e,t)}return!1}function E(e,t,n,r){return!1!==n.enabled&&(e!==t||!1===r.enabled)&&(!n.suspense||"error"!==e.state.status)&&O(e,n)}function O(e,t){return e.isStaleByTime(t.staleTime)}function P(){var e=!1;return{clearReset:function(){e=!1},reset:function(){e=!0},isReset:function(){return e}}}var x=c().createContext(P());function S(e,t){var n=c().useRef(!1),i=c().useState(0)[1],o=function(){var e=c().useContext(p(c().useContext(d)));if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e}(),a=c().useContext(x),s=o.defaultQueryObserverOptions(e);s.optimisticResults=!0,s.onError&&(s.onError=r.V.batchCalls(s.onError)),s.onSuccess&&(s.onSuccess=r.V.batchCalls(s.onSuccess)),s.onSettled&&(s.onSettled=r.V.batchCalls(s.onSettled)),s.suspense&&("number"!=typeof s.staleTime&&(s.staleTime=1e3),0===s.cacheTime&&(s.cacheTime=1)),(s.suspense||s.useErrorBoundary)&&(a.isReset()||(s.retryOnMount=!1));var u,l,f,h=c().useState((function(){return new t(o,s)}))[0],v=h.getOptimisticResult(s);if(c().useEffect((function(){n.current=!0,a.clearReset();var e=h.subscribe(r.V.batchCalls((function(){n.current&&i((function(e){return e+1}))})));return h.updateResult(),function(){n.current=!1,e()}}),[a,h]),c().useEffect((function(){h.setOptions(s,{listeners:!1})}),[s,h]),s.suspense&&v.isLoading)throw h.fetchOptimistic(s).then((function(e){var t=e.data;null==s.onSuccess||s.onSuccess(t),null==s.onSettled||s.onSettled(t,null)})).catch((function(e){a.clearReset(),null==s.onError||s.onError(e),null==s.onSettled||s.onSettled(void 0,e)}));if(v.isError&&!a.isReset()&&!v.isFetching&&(u=s.suspense,l=s.useErrorBoundary,f=[v.error,h.getCurrentQuery()],"function"==typeof l?l.apply(void 0,f):"boolean"==typeof l?l:u))throw v.error;return"tracked"===s.notifyOnChangeProps&&(v=h.trackResult(v,s)),v}function I(e,t,n){return S((0,g._v)(e,t,n),C)}},379:e=>{"use strict";var t=[];function n(e){for(var n=-1,r=0;r<t.length;r++)if(t[r].identifier===e){n=r;break}return n}function r(e,r){for(var o={},a=[],s=0;s<e.length;s++){var u=e[s],c=r.base?u[0]+r.base:u[0],l=o[c]||0,d="".concat(c," ").concat(l);o[c]=l+1;var p=n(d),f={css:u[1],media:u[2],sourceMap:u[3],supports:u[4],layer:u[5]};if(-1!==p)t[p].references++,t[p].updater(f);else{var h=i(f,r);r.byIndex=s,t.splice(s,0,{identifier:d,updater:h,references:1})}a.push(d)}return a}function i(e,t){var n=t.domAPI(t);n.update(e);return function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,i){var o=r(e=e||[],i=i||{});return function(e){e=e||[];for(var a=0;a<o.length;a++){var s=n(o[a]);t[s].references--}for(var u=r(e,i),c=0;c<o.length;c++){var l=n(o[c]);0===t[l].references&&(t[l].updater(),t.splice(l,1))}o=u}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var r=function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!r)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");r.appendChild(n)}},609:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},795:e=>{"use strict";e.exports=function(e){var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var r="";n.supports&&(r+="@supports (".concat(n.supports,") {")),n.media&&(r+="@media ".concat(n.media," {"));var i=void 0!==n.layer;i&&(r+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),r+=n.css,i&&(r+="}"),n.media&&(r+="}"),n.supports&&(r+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(r,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},66:e=>{"use strict";e.exports=t},156:t=>{"use strict";t.exports=e},111:e=>{"use strict";e.exports=n},893:()=>{},783:(e,t,n)=>{var r=n(698).default;function i(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,o=n.hasOwnProperty,a=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},u=s.iterator||"@@iterator",c=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(e){d=function(e,t,n){return e[t]=n}}function p(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,o=Object.create(i.prototype),s=new I(r||[]);return a(o,"_invoke",{value:O(e,n,s)}),o}function f(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=p;var h={};function v(){}function g(){}function m(){}var y={};d(y,u,(function(){return this}));var b=Object.getPrototypeOf,C=b&&b(b(j([])));C&&C!==n&&o.call(C,u)&&(y=C);var A=m.prototype=v.prototype=Object.create(y);function w(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function E(e,t){function n(i,a,s,u){var c=f(e[i],e,a);if("throw"!==c.type){var l=c.arg,d=l.value;return d&&"object"==r(d)&&o.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,u)}),(function(e){n("throw",e,s,u)})):t.resolve(d).then((function(e){l.value=e,s(l)}),(function(e){return n("throw",e,s,u)}))}u(c.arg)}var i;a(this,"_invoke",{value:function(e,r){function o(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(o,o):o()}})}function O(e,t,n){var r="suspendedStart";return function(i,o){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw o;return k()}for(n.method=i,n.arg=o;;){var a=n.delegate;if(a){var s=P(a,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var u=f(e,t,n);if("normal"===u.type){if(r=n.done?"completed":"suspendedYield",u.arg===h)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(r="completed",n.method="throw",n.arg=u.arg)}}}function P(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&(t.method="return",t.arg=void 0,P(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=f(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var o=i.arg;return o?o.done?(t[e.resultName]=o.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):o:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function I(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function j(e){if(e){var t=e[u];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:k}}function k(){return{value:void 0,done:!0}}return g.prototype=m,a(A,"constructor",{value:m,configurable:!0}),a(m,"constructor",{value:g,configurable:!0}),g.displayName=d(m,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===g||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,m):(e.__proto__=m,d(e,l,"GeneratorFunction")),e.prototype=Object.create(A),e},t.awrap=function(e){return{__await:e}},w(E.prototype),d(E.prototype,c,(function(){return this})),t.AsyncIterator=E,t.async=function(e,n,r,i,o){void 0===o&&(o=Promise);var a=new E(p(e,n,r,i),o);return t.isGeneratorFunction(n)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},w(A),d(A,l,"Generator"),d(A,u,(function(){return this})),d(A,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=j,I.prototype={constructor:I,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return a.type="throw",a.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=o.call(i,"catchLoc"),u=o.call(i,"finallyLoc");if(s&&u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;S(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:j(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},698:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:(e,t,n)=>{var r=n(783)();e.exports=r;try{regeneratorRuntime=r}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}},462:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(611);function i(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},611:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})}},i={};function o(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,exports:{}};return r[e].call(n.exports,n,n.exports,o),n.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.nc=void 0;var a={};return(()=>{"use strict";function e(e){if(Array.isArray(e))return e}function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function n(e,n){if(e){if("string"==typeof e)return t(e,n);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?t(e,n):void 0}}function r(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function i(t,i){return e(t)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,o,a,s=[],u=!0,c=!1;try{if(o=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=o.call(n)).done)&&(s.push(r.value),s.length!==t);u=!0);}catch(e){c=!0,i=e}finally{try{if(!u&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw i}}return s}}(t,i)||n(t,i)||r()}o.r(a),o.d(a,{EmbedCodeModal:()=>Cr,EmbedCodeModalTypes:()=>_e});var s=o(156),u=o.n(s);function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e){return l="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},l(e)}function d(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}function p(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,d(r.key),r)}}function f(e,t,n){return t&&p(e.prototype,t),n&&p(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function h(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,g={"&":"&","&":"&","<":"<","<":"<",">":">",">":">","'":"'","'":"'",""":'"',""":'"'," ":" "," ":" ","©":"©","©":"©","®":"®","®":"®","…":"…","…":"…","/":"/","/":"/"},m=function(e){return g[e]};function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C,A={bindI18n:"languageChanged",bindI18nStore:"",transEmptyNodeValue:"",transSupportBasicHtmlNodes:!0,transWrapTextNodes:"",transKeepBasicHtmlNodesFor:["br","strong","i","p"],useSuspense:!0,unescape:function(e){return e.replace(v,m)}},w=(0,s.createContext)();function E(){return A}var O=function(){function e(){c(this,e),this.usedNamespaces={}}return f(e,[{key:"addUsedNamespaces",value:function(e){var t=this;e.forEach((function(e){t.usedNamespaces[e]||(t.usedNamespaces[e]=!0)}))}},{key:"getUsedNamespaces",value:function(){return Object.keys(this.usedNamespaces)}}]),e}();function P(){return C}var x={type:"3rdParty",init:function(e){!function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};A=b(b({},A),e)}(e.options.react),function(e){C=e}(e)}};function S(e){var t=e.i18n,n=e.defaultNS,r=e.children,i=(0,s.useMemo)((function(){return{i18n:t,defaultNS:n}}),[t,n]);return(0,s.createElement)(w.Provider,{value:i},r)}var I=o(66),j=o(767);function k(){if(console&&console.warn){for(var e,t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];"string"==typeof n[0]&&(n[0]="react-i18next:: ".concat(n[0])),(e=console).warn.apply(e,n)}}var R={};function _(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];"string"==typeof t[0]&&R[t[0]]||("string"==typeof t[0]&&(R[t[0]]=new Date),k.apply(void 0,t))}function L(e,t,n){e.loadNamespaces(t,(function(){if(e.isInitialized)n();else{e.on("initialized",(function t(){setTimeout((function(){e.off("initialized",t)}),0),n()}))}}))}function N(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=t.languages[0],i=!!t.options&&t.options.fallbackLng,o=t.languages[t.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};return!(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!a(t.isLanguageChangingTo,e))&&(!!t.hasResourceBundle(r,e)||(!(t.services.backendConnector.backend&&(!t.options.resources||t.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e))))}function M(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.languages||!t.languages.length)return _("i18n.languages were undefined or empty",t.languages),!0;var r=void 0!==t.options.ignoreJSONStructure;return r?t.hasLoadedNamespace(e,{precheck:function(t,r){if(n.bindI18n&&n.bindI18n.indexOf("languageChanging")>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}}):N(e,t,n)}function T(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?T(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D=function(e,t){var n=(0,s.useRef)();return(0,s.useEffect)((function(){n.current=t?n.current:e}),[e,t]),n.current};function B(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.i18n,r=(0,s.useContext)(w)||{},o=r.i18n,a=r.defaultNS,u=n||o||P();if(u&&!u.reportNamespaces&&(u.reportNamespaces=new O),!u){_("You will need to pass in an i18next instance by using initReactI18next");var c=function(e){return Array.isArray(e)?e[e.length-1]:e},l=[c,{},!1];return l.t=c,l.i18n={},l.ready=!1,l}u.options.react&&void 0!==u.options.react.wait&&_("It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.");var d=F(F(F({},E()),u.options.react),t),p=d.useSuspense,f=d.keyPrefix,h=e||a||u.options&&u.options.defaultNS;h="string"==typeof h?[h]:h||["translation"],u.reportNamespaces.addUsedNamespaces&&u.reportNamespaces.addUsedNamespaces(h);var v=(u.isInitialized||u.initializedStoreOnce)&&h.every((function(e){return M(e,u,d)}));function g(){return u.getFixedT(null,"fallback"===d.nsMode?h:h[0],f)}var m=(0,s.useState)(g),y=i(m,2),b=y[0],C=y[1],A=h.join(),x=D(A),S=(0,s.useRef)(!0);(0,s.useEffect)((function(){var e=d.bindI18n,t=d.bindI18nStore;function n(){S.current&&C(g)}return S.current=!0,v||p||L(u,h,(function(){S.current&&C(g)})),v&&x&&x!==A&&S.current&&C(g),e&&u&&u.on(e,n),t&&u&&u.store.on(t,n),function(){S.current=!1,e&&u&&e.split(" ").forEach((function(e){return u.off(e,n)})),t&&u&&t.split(" ").forEach((function(e){return u.store.off(e,n)}))}}),[u,A]);var I=(0,s.useRef)(!0);(0,s.useEffect)((function(){S.current&&!I.current&&C(g),I.current=!1}),[u,f]);var j=[b,u,v];if(j.t=b,j.i18n=u,j.ready=v,v)return j;if(!v&&!p)return j;throw new Promise((function(e){L(u,h,(function(){e()}))}))}var U=o(130),q=o.n(U),V="PUBLISHING",Q=function(){var e=H();return"//preview-players".concat({qa:".qa",staging:".staging",production:""}[e],".brightcove.net/v2/accounts")};function H(){var e;return(null===(e=window.StudioModule)||void 0===e?void 0:e.config.product.env)||"production"}function z(){return"qa"===H()}function W(){return z()?"https://bc-players-qa.s3.amazonaws.com/":"https://players.brightcove.net/"}function Z(e){return e.sort((function(e,t){return e.label.localeCompare(t.label)}))}var K=function(e){var t=e.accountId,n=e.videoId,r=e.interactivityProjectId,i=e.playerId,o=new URLSearchParams;r&&o.append("interactivityProjectId",r),n&&o.append("videoId",n);var a=o.toString();return"".concat(W()).concat(t,"/").concat(i,"_default/index.html").concat(""!==a?"?".concat(a):"")};var G=function(e,t){return"".concat(z()?"https://preview-players.qa.brightcove.net":"https://preview-players.brightcove.net","/v2/accounts/").concat(e,"/players/").concat(t,"/preview/embeds/default/master/index.html")},$=function(){return window.StudioModule},J=function(){return window.brightcove};var Y=function(){return"".concat((null===(e=$())||void 0===e||null===(t=e.config)||void 0===t||null===(n=t.product)||void 0===n?void 0:n.path)||"/products/videocloud","/players");var e,t,n},X=o(379),ee=o.n(X),te=o(795),ne=o.n(te),re=o(569),ie=o.n(re),oe=o(565),ae=o.n(oe),se=o(609),ue=o.n(se),ce=o(589),le=o.n(ce),de=o(17),pe={};pe.styleTagTransform=le(),pe.setAttributes=ae(),pe.insert=ie().bind(null,"head"),pe.domAPI=ne(),pe.insertStyleElement=ue();ee()(de.Z,pe);const fe=de.Z&&de.Z.locals?de.Z.locals:void 0;function he(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ve(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ge={responsive:!1,width:960,height:540,urlBase:W(),playlistIsHorizontal:!0},me=function(e){var t=B().t,n=i((0,s.useState)(""),2),r=n[0],o=n[1];(0,s.useEffect)((function(){var t=function(e){return Object.assign({},ve(ve({},ge),e))}(e),n=q()(t);o(n)}),[e]);var a=u().createElement(I.Flex,null,u().createElement(I.FlexItem,{flexGrow:"1",className:fe.helperText},t("tabs.helperText")));return u().createElement(u().Fragment,null,u().createElement(I.CopyField,{className:fe.copyInput,helperNode:a,Component:I.PlainTextArea,componentProps:{disabled:!0,disableResizing:!0,className:fe.textAreaDimensions,onChange:function(){}},onCopy:function(){J().Toaster.success({title:t("toasterTitle"),message:t("toasterMessage")})},onError:function(){J().Toaster.error({message:t("toasterErrorMessage")})},value:r,hideButton:!0,testName:"embed-copy-section"}))},ye=o(462);function be(e,t,n,r,i,o,a){try{var s=e[o](a),u=s.value}catch(e){return void n(e)}s.done?t(u):Promise.resolve(u).then(r,i)}function Ce(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var o=e.apply(t,n);function a(e){be(o,r,i,a,s,"next",e)}function s(e){be(o,r,i,a,s,"throw",e)}a(void 0)}))}}var Ae=o(687),we=o.n(Ae),Ee=o(946);function Oe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Oe(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Oe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xe=function(){return window.StudioModule.config},Se=function(){return xe().user.currentAccount.id},Ie=function(e,t){var n;return function(e){var t=window.StudioModule.api();return new Promise((function(n,r){t.call(e,n,r)}))}(e(Pe(Pe({},t),(n=xe(),{apiConfig:{publisherId:Se(),api:n.module.api}}))))},je=function(){var e=Ce(we().mark((function e(){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ie(Ee.Xo,{}));case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),ke=function(){var e=Ce(we().mark((function e(t){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",Ie(Ee.MD,t));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}();const Re=function(e){return(0,j.useQuery)(["players"],(function(){return je()}),{refetchOnWindowFocus:!1,enabled:e})};var _e,Le;!function(e){e.PLAYER="player",e.VIDEO="video",e.PROJECT="project"}(_e||(_e={})),function(e){e.NO_PLAYER="no-player",e.NO_PERMISSION="no-permission"}(Le||(Le={}));var Ne=["bcAa","bcAirplay","bcGa","bcGtm","bcPlaylistUi","bcTealium","bcMapPlugin","chromecastReceiver","customEndscreen","eme","ima3","interactivityViewer","kollective","overlay","pip","playlistEndscreen","qualityMenu","social","ssai","thumbnails"],Me="bcMapPlugin";function Te(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Fe(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Fe(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Fe(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var De="default",Be="Interactivity Player",Ue="@brightcove/videojs-interactivity-viewer",qe="1.x",Ve=o(94),Qe={};Qe.styleTagTransform=le(),Qe.setAttributes=ae(),Qe.insert=ie().bind(null,"head"),Qe.domAPI=ne(),Qe.insertStyleElement=ue();ee()(Ve.Z,Qe);const He=Ve.Z&&Ve.Z.locals?Ve.Z.locals:void 0;var ze=o(144),We=o.n(ze),Ze=o(908),Ke=o.n(Ze);
|
|
4
4
|
/*! @name @brightcove/react-player-loader @version 1.4.2 @license Apache-2.0 */
|
|
5
|
-
function
|
|
5
|
+
function Ge(){return Ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ge.apply(this,arguments)}
|
|
6
6
|
/*! @name @brightcove/player-loader @version 1.8.0 @license Apache-2.0 */
|
|
7
|
-
function
|
|
8
|
-
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */Ge.VERSION="1.2.0";var $e={embedId:"default",embedType:"in-page",playerId:"default",Promise:Ve().Promise,refNodeInsert:"append"},Je="video",Ye="video-js",Xe="in-page",et="iframe",tt="append",nt="prepend",rt="before",it="after",ot="replace",at=["catalogSearch","catalogSequence"],st="https://players.brightcove.net/",ut=function(e){if(e.playerUrl)return e.playerUrl;var t=e.accountId,n=e.playerId,r=e.embedId,i=e.embedOptions,o=e.embedType===et;return Ge({accountId:t,playerId:n,embedId:r,iframe:o,base:st,minified:!i||!i.unminified,queryParams:e})},ct=function(){return st},lt=function(e){st=e},dt=function(e){return Boolean(e&&1===e.nodeType)},pt=function(e){return Boolean(dt(e)&&e.parentNode)},ft=function(e,t,n){return t?function(e,t){if(!e.pip)return t;var n=Ue().createElement("div");return n.classList.add("vjs-pip-container"),n.appendChild(t),n}(t,function(e,t,n){if(!t.responsive)return n;n.style.position="absolute",n.style.top="0px",n.style.right="0px",n.style.bottom="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%";var r=He({aspectRatio:"16:9",iframeHorizontalPlaylist:!1,maxWidth:"100%"},t.responsive),i=r.aspectRatio.split(":").map(Number),o=Ue().createElement("div"),a=i[1]/i[0]*100;e===et&&r.iframeHorizontalPlaylist&&(a*=1.25),o.style.paddingTop=a+"%",o.appendChild(n);var s=Ue().createElement("div");return s.style.position="relative",s.style.display="block",s.style.maxWidth=r.maxWidth,s.appendChild(o),s}(e,t,n)):n},ht=function(e){var t=e.embedType===et?function(e){var t=Ue().createElement("iframe");return t.setAttribute("allow","autoplay;encrypted-media;fullscreen"),t.setAttribute("allowfullscreen","allowfullscreen"),t.src=ut(e),t}(e):function(e){var t=e.embedOptions,n={adConfigId:"data-ad-config-id",applicationId:"data-application-id",catalogSearch:"data-catalog-search",catalogSequence:"data-catalog-sequence",deliveryConfigId:"data-delivery-config-id",playlistId:"data-playlist-id",playlistVideoId:"data-playlist-video-id",poster:"poster",videoId:"data-video-id"},r=t&&t.tagName||Ye,i=Ue().createElement(r);return Object.keys(n).filter((function(t){return e[t]})).forEach((function(t){var r;if("string"!=typeof e[t]&&-1!==at.indexOf(t))try{r=JSON.stringify(e[t])}catch(e){return}else r=String(e[t]).trim();i.setAttribute(n[t],r)})),i.setAttribute("controls","controls"),i.classList.add("video-js"),i}(e);return function(e,t){var n=e.refNode,r=e.refNodeInsert,i=n.parentNode,o=ft(e.embedType,e.embedOptions,t);if(r===rt?i.insertBefore(o,n):r===it?i.insertBefore(o,n.nextElementSibling||null):r===ot?i.replaceChild(o,n):r===nt?n.insertBefore(o,n.firstChild||null):n.appendChild(o),e.embedOptions&&e.embedOptions.playlist){var a=e.embedOptions.playlist.legacy?"ul":"div",s=Ue().createElement(a);s.classList.add("vjs-playlist"),t.parentNode.insertBefore(s,t.nextElementSibling||null)}return e.refNode=null,t}(e,function(e,t){if("function"!=typeof e.onEmbedCreated)return t;var n=e.onEmbedCreated(t);return dt(n)?n:t}(e,t))},vt=new(Ve().Map),gt=function(e){return(e.accountId||"*")+"_"+e.playerId+"_"+e.embedId},mt=function(){vt.clear()},yt=function(e){vt.forEach(e)},bt=function(e){return vt.has(gt(e))},Ct=function(e){vt.set(gt(e),e.accountId?ut(e):"")},At=/^([A-Za-z0-9]+)_([A-Za-z0-9]+)$/,wt=function(){return Ve().bc?Object.keys(Ve().bc).filter((function(e){return At.test(e)})):[]},Et=function(e){e&&Object.keys(e.players).forEach((function(t){var n=e.players[t];n&&n.dispose()}))},Ot=function(){yt((function(e,t){e&&Array.prototype.slice.call(Ue().querySelectorAll('script[src="'+e+'"]')).forEach((function(e){return e.parentNode.removeChild(e)}))})),mt(),Et(Ve().videojs),wt().forEach((function(e){return Et(Ve().bc[e].videojs)})),Object.keys(Ve()).filter((function(e){return/^videojs/i.test(e)||/^(bc)$/.test(e)})).forEach((function(e){delete Ve()[e]}))};(function(){wt().forEach((function(e){var t=e.match(At),n={playerId:t[1],embedId:t[2]};bt(n)||Ct(n)}))})();var Pt=function(e){return"function"==typeof e},xt=function(e){var t,n=e.accountId,r=e.embedOptions,i=e.embedType,o=e.options,a=e.refNode,s=e.refNodeInsert;if(!n)throw new Error("accountId is required");if(!pt(a))throw new Error("refNode must resolve to a node attached to the DOM");if(!function(e){return e===Xe||e===et}(i))throw new Error("embedType is missing or invalid");if(i===et&&o)throw new Error("cannot use options with an iframe embed");if(r&&void 0!==r.tagName&&((t=r.tagName)!==Ye&&t!==Je))throw new Error('embedOptions.tagName is invalid (value: "'+r.tagName+'")');if(r&&r.responsive&&r.responsive.aspectRatio&&!/^\d+\:\d+$/.test(r.responsive.aspectRatio))throw new Error('embedOptions.responsive.aspectRatio must be in the "n:n" format (value: "'+r.responsive.aspectRatio+'")');if(!function(e){return e===tt||e===nt||e===rt||e===it||e===ot}(s))throw new Error("refNodeInsert is missing or invalid")},St=function(e,t,n,r){var i,o=e.embedId,a=e.playerId,s=Ve().bc[a+"_"+o]||Ve().bc;if(!s)return r(new Error("missing bc function for "+a));Ct(e);try{(i=s(t,e.options)).bcinfo&&(i.bcinfo.PLAYER_LOADER=!0)}catch(t){var u="Could not initialize the Brightcove Player.";return e.embedOptions.tagName===Ye&&(u+=' You are attempting to embed using a "video-js" element. Please ensure that your Player is v6.11.0 or newer in order to support this embed type. Alternatively, pass `"video"` for `embedOptions.tagName`.'),r(new Error(u))}n({type:Xe,ref:i})},It=function(e,t,n){e.refNode=function(e){return pt(e)?e:"string"==typeof e?Ue().querySelector(e):null}(e.refNode),xt(e);var r=e.refNode,i=e.refNodeInsert,o=r.parentNode,a=ht(e);if(e.embedType!==et){if(bt(e))return St(e,a,t,n);var s=Ue().createElement("script");s.onload=function(){return St(e,a,t,n)},s.onerror=function(){n(new Error("player script could not be downloaded"))},s.async=!0,s.charset="utf-8",s.src=ut(e),i===ot?o.appendChild(s):r.appendChild(s)}else t({type:et,ref:a})},jt=function(e){var t=He({},$e,e),n=t.Promise,r=t.onSuccess,i=t.onFailure;return!Pt(n)||Pt(r)||Pt(i)?It(t,Pt(r)?r:function(){},Pt(i)?i:function(e){throw e}):new n((function(e,n){return It(t,e,n)}))},kt=function(e,t){Object.defineProperty(jt,e,{configurable:!1,enumerable:!0,value:t,writable:!1})};kt("getBaseUrl",(function(){return ct()})),kt("setBaseUrl",(function(e){lt(e)})),kt("getUrl",(function(e){return ut(e)})),kt("reset",(function(){return Ot()})),[["EMBED_TAG_NAME_VIDEO",Je],["EMBED_TAG_NAME_VIDEOJS",Ye],["EMBED_TYPE_IN_PAGE",Xe],["EMBED_TYPE_IFRAME",et],["REF_NODE_INSERT_APPEND",tt],["REF_NODE_INSERT_PREPEND",nt],["REF_NODE_INSERT_BEFORE",rt],["REF_NODE_INSERT_AFTER",it],["REF_NODE_INSERT_REPLACE",ot],["VERSION","1.8.0"]].forEach((function(e){kt(e[0],e[1])}));var Rt=["catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId"],_t=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).refNode=null,n.setRefNode=function(e){n.refNode=e},n.loadPlayer=n.loadPlayer.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.loadPlayer=function(){var e=this;this.disposePlayer();var t=this.props.onSuccess,n=this.props.onFailure,r=Qe({},this.props,{refNode:this.refNode,refNodeInsert:"append",onSuccess:function(n){var r=n.ref,i=n.type;e.isMounted_?(e.player=r,"in-page"===i&&r.one("dispose",(function(){e.player=null})),r.bcinfo&&(r.bcinfo.REACT_PLAYER_LOADER=!0),"function"==typeof t&&t({ref:r,type:i})):e.disposePlayer(r)},onFailure:function(t){if(e.isMounted_){if("function"!=typeof n)throw new Error(t);n(t)}}});delete r.attrs,delete r.baseUrl,delete r.manualReloadFromPropChanges;var i=jt.getBaseUrl();this.props.baseUrl&&jt.setBaseUrl(this.props.baseUrl),jt(r),jt.setBaseUrl(i)},i.disposePlayer=function(){this.player&&(this.player.dispose?this.player.dispose():this.player.parentNode&&this.player.parentNode.removeChild(this.player),this.player=null)},i.findPlaylistVideoIdIndex_=function(e){var t=this.props.playlistVideoId;if(Array.isArray(e)&&t)for(var n=0;n<e.length;n++){var r=e[n],i=r.id,o=r.referenceId;if(i===t||"ref:"+o===t)return n}return-1},i.createPlaybackAPICallback_=function(e,t){var n=this;return function(r,i){if(r)!function(e){e&&console&&console.error&&console.error(e)}(r);else{if("playlist"===e&&t.playlistVideoId){var o=n.findPlaylistVideoIdIndex_(i);o>-1&&(i.startingIndex=o)}n.player.catalog.load(i)}}},i.updatePlayer=function(e){if(this.player&&this.player.el&&this.player.el()){var t;if(this.player.usingPlugin("catalog")){if(e.catalogSequence&&this.props.catalogSequence){var n=this.createPlaybackAPICallback_("sequence",e);return void this.player.catalog.getLazySequence(this.props.catalogSequence,n,this.props.adConfigId)}e.videoId&&this.props.videoId?t={type:"video",id:this.props.videoId}:e.playlistId&&this.props.playlistId?t={type:"playlist",id:this.props.playlistId}:e.catalogSearch&&this.props.catalogSearch&&(t={type:"search",q:this.props.catalogSearch})}if(t){this.props.adConfigId&&(t.adConfigId=this.props.adConfigId),this.props.deliveryConfigId&&(t.deliveryConfigId=this.props.deliveryConfigId);var r=this.createPlaybackAPICallback_(t.type,e);this.player.catalog.get(t,r)}else if(e.playlistVideoId&&this.props.playlistVideoId&&this.player.usingPlugin("playlist")){var i=this.findPlaylistVideoIdIndex_(this.player.playlist());i>-1&&this.player.playlist.currentItem(i)}}},i.componentDidMount=function(){this.isMounted_=!0,this.loadPlayer()},i.componentDidUpdate=function(e){var t=this,n=Object.keys(e).reduce((function(n,r){var i=e[r],o=t.props[r];return"function"==typeof o?n:"object"==typeof o&&null!==o?(JSON.stringify(o)!==JSON.stringify(i)&&(n[r]=!0),n):(o!==i&&(n[r]=!0),n)}),{});this.props.manualReloadFromPropChanges||!Object.keys(n).some((function(e){return-1===Rt.indexOf(e)}))?this.updatePlayer(n):this.loadPlayer()},i.componentWillUnmount=function(){this.isMounted_=!1,this.disposePlayer()},i.render=function(){var e=Qe({className:"brightcove-react-player-loader"},this.props.attrs,{ref:this.setRefNode});return u().createElement("div",e)},r}(u().Component);const Lt=_t;var Nt=function(e){var t=e.video,n=e.embedCodeModalType,r=e.playerListForSelection,o=e.players,a=e.hasCreatedPlayer,c=L().t,l=i((0,s.useState)(),2),d=l[0],p=l[1],f=i((0,s.useState)(""),2),h=f[0],v=f[1],g=(0,s.useMemo)((function(){return n===xe.PROJECT?t.interactivityProjectId:null}),[t,n]);(0,s.useEffect)((function(){if(null!=d&&d.id){var e={accountId:t.accountId,playerId:d.id,videoId:t.videoId};g&&(e.interactivityProjectId=g),v(V(e))}}),[d,t,g]);var m=(0,s.useCallback)((function(e){g&&e.setAttribute("data-interactivity-project-id",g)}),[g]),y={accountId:t.accountId,playerId:(null==d?void 0:d.id)||(r.length>0?r[0].value:_e),isCampaign:(null==d?void 0:d.hasCampaignPlugin)||!1,videoId:t.videoId},b=g?t.interactivityProjectName:t.videoName,C=g||t.videoId;return g&&(y.interactivityProjectId=g),u().createElement(u().Fragment,null,u().createElement("div",{className:De.leftContent},u().createElement(Vt,{onChange:p,playerListForSelection:r,players:o}),a?u().createElement("iframe",{src:"".concat(F(),"/").concat(y.accountId,"/players/").concat(y.playerId,"/preview/embeds/default/master/index.html?interactivityProjectId=").concat(y.interactivityProjectId,"&videoId=").concat(y.videoId),allowFullScreen:!0,allow:"autoplay;encrypted-media;fullscreen",width:"539",height:"303.2","data-interactivity-project-id":g}):u().createElement(Lt,(0,pe.Z)({},y,{baseUrl:U(),attrs:{className:De.playerLoader},embedType:"iframe",refNode:"player-container",onEmbedCreated:m})),u().createElement(E.Hideable,{show:null==d?void 0:d.hasCustomPlugins},u().createElement("span",{className:De.customPluginNotice},c("customPluginNotice"))),u().createElement(Gt,{prevUrl:h})),u().createElement("div",{className:De.rightContent},u().createElement(Ut,{name:b,id:C}),u().createElement(Wt,y)))};function Mt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Tt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Tt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Tt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Ft=function(e){var t=e.id,n=e.configuration,r=e.accountId,i=void 0===r?"":r,o=L().t,a=Q(i,t),c=V({accountId:i,playerId:t}),l=(0,s.useMemo)((function(){var e=!1,t=!1,r=[];if(n){var i,o,a=Mt(r=null!==(i=n.plugins)&&void 0!==i?i:r);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.name;e=Ie.includes(u),t=t||s.name===je}}catch(e){a.e(e)}finally{a.f()}}return{hasCustomPlugins:!e&&r.length>0,isCampaignPlayer:t}}),[n]),d=l.hasCustomPlugins,p=l.isCampaignPlayer;return u().createElement(u().Fragment,null,u().createElement("div",{className:De.leftContent},u().createElement(Lt,{accountId:i,baseUrl:U(),attrs:{className:De.playerLoader},embedType:"iframe",refNode:"player-container",playerUrl:a}),u().createElement(E.Hideable,{show:d},u().createElement("span",{className:De.customPluginNotice},o("customPluginNotice"))),u().createElement(Gt,{prevUrl:c})),u().createElement("div",{className:De.rightContent},u().createElement(Wt,{isCampaign:p,playerId:t,accountId:i})))},Dt=function(e){var t=e.modalType,n=L().t,r=function(e){return u().createElement("a",{href:W()},e)};return u().createElement(E.Flex,{flexDirection:"column"},u().createElement("p",null,t===Se.NO_PLAYER?n("noPlayerModalContent1"):u().createElement(u().Fragment,null,n("activateModalContent1"),r(n("activateModalContent2")),"."),u().createElement("br",null),t===Se.NO_PLAYER?n("noPlayerModalContent2"):null),u().createElement(u().Fragment,null,t===Se.NO_PLAYER?u().createElement("p",null,r(n("toPlayersModuleLink"))):null))},Bt=function(e){var t=e.handleSetComponentKey,n=e.playerPayload,r=e.embedCodeModalType,o=void 0===r?xe.VIDEO:r,a=e.handleSetHasCreatedPlayer,c=e.hasCreatedPlayer,l=L().t,d=i((0,s.useState)(!1),2),p=d[0],f=d[1],h=Pe(!0),v=h.isFetching,g=h.data,m=i((0,s.useState)({}),2),y=m[0],b=m[1],C=i((0,s.useState)([]),2),A=C[0],w=C[1],O=i((0,s.useState)(!1),2),P=O[0],x=O[1],S=i((0,s.useState)(!1),2),I=S[0],j=S[1];(0,s.useEffect)((function(){var e=H().getCurrentUserAccount().roles;e.length&&e.includes(T)&&x(!0)}),[]),(0,s.useEffect)((function(){var e;if(!v&&g&&(null!==(e=null==g?void 0:g.items.length)&&void 0!==e?e:0)>0){var t=function(e){var t=[],n={};return null==e||e.items.forEach((function(e){var r,i,o=null!==(r=e.branches.master.configuration.plugins)&&void 0!==r?r:[],a=!!o&&o.length>0,s=!1,u=!1,c=!1,l=ke(o);try{for(l.s();!(i=l.n()).done;){var d=i.value,p=d.name;s=Ie.includes(p),u=u||d.name===je,c=c||"@brightcove/videojs-interactivity-viewer"===d.registry_id||"interactivityViewer"===d.name}}catch(e){l.e(e)}finally{l.f()}t.push({label:e.name,value:e.id}),n[e.id]={label:e.name,id:e.id,hasCustomPlugins:!s&&a,hasCampaignPlugin:u,hasInteractivityPlugin:c}})),{players:n,playerListForSelection:q(t)}}(g),n=t.playerListForSelection,r=t.players,i=void 0===r?{}:r,a=n;o===xe.PROJECT&&(a=n.filter((function(e){return i[e.value].hasInteractivityPlugin}))),b(i),w(a)}}),[v,g,o]);var k=(0,s.useMemo)((function(){return Object.values(y).some((function(e){return e.hasInteractivityPlugin}))}),[y]);(0,s.useEffect)((function(){n&&f(!0)}),[n]);var R=(0,s.useCallback)((function(){f(!1),a(!1)}),[]),_=null,N=l("modalHeader"),M=!0,F=[u().createElement(E.Button,{key:"close-button",text:l("done"),onClick:R,testName:"close-modal-btn"})];if(!v)switch(o){case xe.VIDEO:_="videoId"in n?u().createElement(Nt,{video:n,embedCodeModalType:o,players:y,playerListForSelection:A}):null;break;case xe.PLAYER:var D=n.accountId||Ae();_="id"in n&&D?u().createElement(Ft,(0,pe.Z)({},n,{accountId:D})):null;break;case xe.PROJECT:k||P?k?_="videoId"in n&&"interactivityProjectId"in n?u().createElement(Nt,{video:n,embedCodeModalType:o,playerListForSelection:A,players:y,hasCreatedPlayer:c}):null:(N=l("noPlayerModalHeader"),M=!1,F=[u().createElement(E.Button,{key:"cancel-button",text:l("cancel"),onClick:R,testName:"cancel-button",look:"tertiary"}),u().createElement(E.Button,{key:"create-player-button",text:l("createPlayerNow"),spinner:I,onClick:function(){var e=Le,n=Ne,r=Me;j(!0),Oe({data:{name:e,configuration:{plugins:[{registry_id:n,version:r}]}}}).then((function(e){e&&e.id&&(a(!0),t())})).catch((function(e){console.error(e),z().Toaster.error({title:l("createPlayerFailedTitle"),message:l("createPlayerFailedMessage")})})).finally((function(){j(!1)}))},testName:"create-player-button"})],_=u().createElement(Dt,{modalType:Se.NO_PLAYER})):(N=l("activateModal"),M=!1,F=[u().createElement(E.Button,{key:"close-button",text:l("close"),onClick:R,testName:"close-modal-done-btn"})],_=u().createElement(Dt,{modalType:Se.NO_PERMISSION}));break;default:console.warn("EmbedModal with ".concat(o," is not supported")),_=null}return _?u().createElement(E.Modal,{testName:"embed-modal",title:N,isOpen:p,large:M,onClose:R,buttons:F},u().createElement(E.Flex,{className:De.videoDetailsContainer},_)):(console.warn("EmbedModal called with wrong props for type: ".concat(o)),null)},Ut=function(e){var t=e.name,n=e.id,r=i((0,s.useState)(!1),2),o=r[0],a=r[1],c=(0,s.useMemo)((function(){return t?(e=t).length>60?"".concat(e.substring(0,60).trim(),"..."):e:"";var e}),[t]);return(0,s.useEffect)((function(){t&&a(c!==t)}),[c,t]),u().createElement(E.Flex,{flexDirection:"column",className:De.mediaData},u().createElement(E.ToolTip,{placement:"top",portal:!0,block:!0,content:t,active:o,testName:"embed-video-tooltip"},u().createElement("div",{className:De.mediaTitle},c)),u().createElement("div",{className:De.mediaId},n))},qt=function(e){var t=e.tooltipTextNew,n=e.tooltipLink,r=L().t;return u().createElement(u().Fragment,null,u().createElement("div",null,t),u().createElement("a",{href:r("learnmore"),target:"_blank",rel:"noreferrer"},n))},Vt=function(e){var t=e.onChange,n=e.playerListForSelection,r=e.players,o=L().t,a=i((0,s.useState)(),2),c=a[0],l=a[1],d=(0,s.useCallback)((function(e){if(r){var n=r[e];l(n),t&&t(n)}}),[r,t]);return(0,s.useEffect)((function(){c||d(n.length>0?n[0].value:_e)}),[d,n,c]),c?u().createElement(u().Fragment,null,u().createElement(E.Flex,null,u().createElement("div",{className:De.playerSelectLabel},o("player")),u().createElement(E.ToolTip,{content:u().createElement(qt,{tooltipLink:o("tooltipLink"),tooltipTextNew:o("tooltipTextNew")}),placement:"top",className:De.tooltip,reflow:!1,testName:"embed-player-tooltip"})),u().createElement(E.Hideable,{show:n.length>0},u().createElement(E.Select,{value:c.id,options:n,inputClassName:De.playerSelect,onChange:d,testName:"embed-player-select"}))):null},Qt=function(e){var t=e.currentTab,n=e.handleTabChange,r=e.iframeLabel,i=e.jsLabel;return u().createElement(E.Flex,{justifyContent:"space-between",alignItems:"baseline"},u().createElement(E.Tabs,{selectedId:t,onSelect:n},u().createElement(E.TabList,null,u().createElement(E.Tab,{tabId:"iframe",testName:"iframe-tab"},r),u().createElement(E.Tab,{tabId:"javascript",testName:"js-tab"},i))))};function Ht(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var zt=["isCampaign"],Wt=function(e){var t=e.isCampaign,n=Ht(e,zt),r=L().t,o=i((0,s.useState)("iframe"),2),a=o[0],c=o[1],l="iframe"===a;return u().createElement(u().Fragment,null,u().createElement(Qt,{currentTab:a,handleTabChange:function(e){return c(e)},jsLabel:r("tabs.labels.javascript"),iframeLabel:r("tabs.labels.iframe")}),u().createElement(E.TabPanel,{testName:"embed-tab-content",render:function(){return t&&l?u().createElement("span",{className:De.redHelperText},r("tabs.helperTextWarning")):u().createElement(de,(0,pe.Z)({iframe:l},n))}}))},Zt=o(826),Kt=function(){var e=he(ge().mark((function e(t){var n;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.longUrl,e.abrupt("return",we(Zt.P,{longUrl:n}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),Gt=function(e){var t=e.prevUrl,n=L().t,r=i((0,s.useState)(!1),2),o=r[0],a=r[1],c=(0,s.useCallback)(function(){var e=he(ge().mark((function e(t){return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a(!0),$t(t).then((function(){z().Toaster.success({title:n("toasterTitle"),message:n("toasterGetURLSuccess")})})).catch((function(){z().Toaster.error({message:n("toasterGetURLError")})})).finally((function(){return a(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n]);return u().createElement("div",null,u().createElement("div",{className:De.getURLBtnContainer},u().createElement(E.Button,{look:"tertiary",text:n("getURL"),testName:"get-url-btn",icon:o?"":"link",iconRight:!0,onClick:function(){return c(t)}}),o&&u().createElement(E.Loader,{className:De.getURLBtnSpinner,size:"inline",color:"navy"})),u().createElement(E.Button,{look:"tertiary",text:n("previewButton"),testName:"preview-player-btn",icon:"external_link",iconRight:!0,onClick:function(){window.open(t,"_blank")}}))},$t=function(){var e=he(ge().mark((function e(t){var n,r;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=encodeURI(t),e.prev=1,e.abrupt("return",navigator.clipboard.write([new ClipboardItem({"text/plain":new Promise(function(){var e=he(ge().mark((function e(t){var r;return ge().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Kt({longUrl:n});case 2:r=e.sent,t(new Blob([r],{type:"text/plain"}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})]));case 5:return e.prev=5,e.t0=e.catch(1),e.next=9,Kt({longUrl:n});case 9:return r=e.sent,e.abrupt("return",navigator.clipboard.writeText(r));case 11:case"end":return e.stop()}}),e,null,[[1,5]])})));return function(t){return e.apply(this,arguments)}}();function Jt(e){return Jt="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},Jt(e)}function Yt(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Xt=o(611);function en(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&&(0,Xt.Z)(e,t)}function tn(e,t){if(t&&("object"===Jt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Yt(e)}function nn(e){return nn=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},nn(e)}function rn(t){return e(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||n(t)||r()}function on(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?on(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):on(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sn={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)}},un=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.init(t,n)}return d(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||sn,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,an(an({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}}]),e}(),cn=new un,ln=function(){function e(){c(this,e),this.observers={}}return d(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];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function dn(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function pn(e){return null==e?"":""+e}function fn(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function hn(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function vn(e,t,n){var r=hn(e,t,Object);r.obj[r.k]=n}function gn(e,t){var n=hn(e,t),r=n.obj,i=n.k;if(r)return r[i]}function mn(e,t,n){var r=gn(e,n);return void 0!==r?r:gn(t,n)}function yn(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]):yn(e[r],t[r],n):e[r]=t[r]);return e}function bn(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Cn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function An(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Cn[e]})):e}var wn="undefined"!=typeof window&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,En=[" ",",","?","!",";"];function On(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?On(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):On(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function xn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nn(e);if(t){var i=nn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tn(this,n)}}function Sn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i)return;if("string"==typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var a=2,s=r.slice(o,o+a).join(n),u=i[s];void 0===u&&r.length>o+a;)a++,u=i[s=r.slice(o,o+a).join(n)];if(void 0===u)return;if(t.endsWith(s)){if("string"==typeof u)return u;if(s&&"string"==typeof u[s])return u[s]}var c=r.slice(o+a).join(n);return c?Sn(u,c,n):void 0}i=i[r[o]]}return i}}var In=function(e){en(n,e);var t=xn(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return c(this,n),r=t.call(this),wn&&ln.call(Yt(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return d(n,[{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]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=gn(this.data,a);return s||!o||"string"!=typeof n?s:Sn(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),vn(this.data,a,r),i.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 i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=gn(this.data,a)||{};r?yn(s,n,i):s=Pn(Pn({},s),n),vn(this.data,a,s),o.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?Pn(Pn({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(ln),jn={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};function kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Rn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?kn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _n(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nn(e);if(t){var i=nn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tn(this,n)}}var Ln={},Nn=function(e){en(n,e);var t=_n(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,n),r=t.call(this),wn&&ln.call(Yt(r)),fn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,Yt(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=cn.create("translator"),r}return d(n,[{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:{}};if(null==e)return!1;var 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,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=En.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==Jt(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),u=s.key,c=s.namespaces,l=c[c.length-1],d=t.lng||this.language,p=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(d&&"cimode"===d.toLowerCase()){if(p){var f=t.nsSeparator||this.options.nsSeparator;return o?(h.res="".concat(l).concat(f).concat(u),h):"".concat(l).concat(f).concat(u)}return o?(h.res=u,h):u}var h=this.resolve(e,t),v=h&&h.res,g=h&&h.usedKey||u,m=h&&h.exactUsedKey||u,y=Object.prototype.toString.apply(v),b=["[object Number]","[object Function]","[object RegExp]"],C=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,A=!this.i18nFormat||this.i18nFormat.handleAsObject,w="string"!=typeof v&&"boolean"!=typeof v&&"number"!=typeof v;if(A&&v&&w&&b.indexOf(y)<0&&("string"!=typeof C||"[object Array]"!==y)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var E=this.options.returnedObjectHandler?this.options.returnedObjectHandler(g,v,Rn(Rn({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(h.res=E,h):E}if(a){var O="[object Array]"===y,P=O?[]:{},x=O?m:g;for(var S in v)if(Object.prototype.hasOwnProperty.call(v,S)){var I="".concat(x).concat(a).concat(S);P[S]=this.translate(I,Rn(Rn({},t),{joinArrays:!1,ns:c})),P[S]===I&&(P[S]=v[S])}v=P}}else if(A&&"string"==typeof C&&"[object Array]"===y)(v=v.join(C))&&(v=this.extendTranslation(v,e,t,r));else{var j=!1,k=!1,R=void 0!==t.count&&"string"!=typeof t.count,_=n.hasDefaultValue(t),L=R?this.pluralResolver.getSuffix(d,t.count,t):"",N=t["defaultValue".concat(L)]||t.defaultValue;!this.isValidLookup(v)&&_&&(j=!0,v=N),this.isValidLookup(v)||(k=!0,v=u);var M=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,T=M&&k?void 0:v,F=_&&N!==v&&this.options.updateMissing;if(k||j||F){if(this.logger.log(F?"updateKey":"missingKey",d,l,u,F?N:v),a){var D=this.resolve(u,Rn(Rn({},t),{},{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 B=[],U=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&U&&U[0])for(var q=0;q<U.length;q++)B.push(U[q]);else"all"===this.options.saveMissingTo?B=this.languageUtils.toResolveHierarchy(t.lng||this.language):B.push(t.lng||this.language);var V=function(e,n,r){var o=_&&r!==v?r:T;i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,n,o,F,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,n,o,F,t),i.emit("missingKey",e,l,n,v)};this.options.saveMissing&&(this.options.saveMissingPlurals&&R?B.forEach((function(e){i.pluralResolver.getSuffixes(e,t).forEach((function(n){V([e],u+n,t["defaultValue".concat(n)]||N)}))})):V(B,u,N))}v=this.extendTranslation(v,e,t,h,r),k&&v===u&&this.options.appendNamespaceToMissingKey&&(v="".concat(l,":").concat(u)),(k||j)&&this.options.parseMissingKeyHandler&&(v="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(u,j?v:void 0):this.options.parseMissingKeyHandler(v))}return o?(h.res=v,h):v}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Rn(Rn({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Rn(Rn({},n),{interpolation:Rn(Rn({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=Rn(Rn({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.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 i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,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=jn.handle(p,e,t,this.options&&this.options.postProcessPassResolved?Rn({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,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 d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!Ln["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(Ln["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" 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!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,c,n,e,s);else{var l;d&&(l=a.pluralResolver.getSuffix(n,s.count,s));var h="_zero";if(d&&(u.push(c+l),p&&u.push(c+h)),f){var v="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(v),d&&(u.push(v+l),p&&u.push(v+h))}}for(;o=u.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{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}}]),n}(ln);function Mn(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Tn=function(){function e(t){c(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=cn.create("languageUtils")}return d(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]=Mn(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]=Mn(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Mn(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():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),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.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&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),Fn=[{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","kk","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","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}],Dn={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)}},Bn=["v1","v2","v3"],Un={zero:0,one:1,two:2,few:3,many:4,other:5};function qn(){var e={};return Fn.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Dn[t.fc]}}))})),e}var Vn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.languageUtils=t,this.options=n,this.logger=cn.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=qn()}return d(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return Un[e]-Un[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=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()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Bn.includes(this.options.compatibilityJSON)}}]),e}();function Qn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Hn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Qn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Qn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var zn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=cn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return d(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:An,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?bn(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?bn(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?bn(t.nestingPrefix):t.nestingPrefixEscaped||bn("$t("),this.nestingSuffix=t.nestingSuffix?bn(t.nestingSuffix):t.nestingSuffixEscaped||bn(")"),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 i,o,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 i=mn(t,u,e);return s.alwaysFormat?s.format(i,void 0,n,Hn(Hn(Hn({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(mn(t,u,a),c,n,Hn(Hn(Hn({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?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;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=l(n)))if("function"==typeof d){var u=d(e,i,r);o="string"==typeof u?u:""}else if(r&&r.hasOwnProperty(n))o="";else{if(p){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=pn(o));var c=t.safeValue(o);if(e=e.replace(i[0],c),p?(t.regex.lastIndex+=c.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Hn({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0],i=(i=this.interpolate(i,a)).replace(/'/g,'"');try{a=JSON.parse(i),t&&(a=Hn(Hn({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),u=l,c=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=pn(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce((function(e,t){return i.format(e,t,o.lng,Hn(Hn({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Wn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Zn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kn=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=cn.create("formatter"),this.options=t,this.formats={number:function(e,t,n){return new Intl.NumberFormat(t,n).format(e)},currency:function(e,t,n){return new Intl.NumberFormat(t,Zn(Zn({},n),{},{style:"currency"})).format(e)},datetime:function(e,t,n){return new Intl.DateTimeFormat(t,Zn({},n)).format(e)},relativetime:function(e,t,n){return new Intl.RelativeTimeFormat(t,Zn({},n)).format(e,n.range||"day")},list:function(e,t,n){return new Intl.ListFormat(t,Zn({},n)).format(e)}},this.init(t)}return d(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"format",value:function(e,t,n,r){var i=this,o=t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=rn(e.split(":")),r=t[0],i=t.slice(1).join(":");n[r.trim()]||(n[r.trim()]=i.trim()),"false"===i.trim()&&(n[r.trim()]=!1),"true"===i.trim()&&(n[r.trim()]=!0),isNaN(i.trim())||(n[r.trim()]=parseInt(i.trim(),10))}}))}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(i.formats[a]){var u=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=c.locale||c.lng||r.locale||r.lng||n;u=i.formats[a](e,l,Zn(Zn(Zn({},s),r),c))}catch(e){i.logger.warn(e)}return u}return i.logger.warn("there was no format function for ".concat(a)),e}),e);return o}}]),e}();function Gn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $n(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Gn(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Gn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Jn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nn(e);if(t){var i=nn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tn(this,n)}}var Yn=function(e){en(n,e);var t=Jn(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c(this,n),o=t.call(this),wn&&ln.call(Yt(o)),o.backend=e,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=cn.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return d(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},u={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[t]&&(u[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l,d;r=n.loaded,s=o,c=hn(r,[i],Object),l=c.obj,d=c.k,l[d]=l[d]||[],u&&(l[d]=l[d].concat(s)),u||l[d].push(s),function(e,t){delete e.pending[t],e.pendingCount--}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=Object.keys(a[e]);t.length&&t.forEach((function(n){void 0!==t[n]&&(a[e][n]=!0)}))})),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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:350,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a}):(this.readingCalls++,this.backend[n](e,t,(function(s,u){if(s&&u&&i<5)setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o);else{if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}a(s,u)}}))):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.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("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=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,$n($n({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(ln);function Xn(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!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"===Jt(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===Jt(e[2])||"object"===Jt(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:!0}}}function er(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.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=nn(e);if(t){var i=nn(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return tn(this,n)}}function ir(){}function or(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var ar=function(e){en(n,e);var t=rr(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(c(this,n),e=t.call(this),wn&&ln.call(Yt(e)),e.options=er(r),e.services={},e.logger=cn,e.modules={external:[]},or(Yt(e)),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),tn(e,Yt(e));setTimeout((function(){e.init(r,i)}),0)}return e}return d(n,[{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"==typeof t&&(n=t,t={}),!t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=Xn();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=nr(nr(nr({},r),this.options),er(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=nr(nr({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?cn.init(i(this.modules.logger),this.options):cn.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=Kn);var a=new Tn(this.options);this.store=new In(this.options.resources,this.options);var s=this.services;s.logger=cn,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Vn(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new zn(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new Yn(i(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),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Nn(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=ir),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");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=dn(),p=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&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),d.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?p():setTimeout(p,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ir,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=dn();return e||(e=this.languages),t||(t=this.options.ns),n||(n=ir),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&&jn.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=dn();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||i(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,o){o?(i(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,a)}))};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,n){var r=this,i=function e(t,i){var o;if("object"!==Jt(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else o=nr({},i);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns;var c=r.options.keySeparator||".",l=n?"".concat(n).concat(c).concat(t):t;return r.t(l,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{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.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=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&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=dn();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=dn();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["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","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ir,i=nr(nr(nr({},this.options),t),{isClone:!0}),o=new n(i),a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=nr({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Nn(o.services,o.options),o.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];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(ln);p(ar,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new ar(e,t)}));var sr=ar.createInstance();sr.createInstance=ar.createInstance;sr.createInstance,sr.init,sr.loadResources,sr.reloadResources,sr.use,sr.changeLanguage,sr.getFixedT,sr.t,sr.exists,sr.setDefaultNamespace,sr.hasLoadedNamespace,sr.loadNamespaces,sr.loadLanguages;const ur=sr;var cr,lr,dr={en:{translation:JSON.parse('{"modalHeader":"Embed on website","mediaNotice":"Will use your account’s default player","tooltipText":"Currently using the Brightcove Default Player. Player management coming soon.","tooltipTextNew":"Players determine the video playback experience such as styling, special configuration settings, and more.","tooltipLink":"Learn more about players","learnmore":"https://studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Preview","player":"Player","getURL":"Get URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copy the HTML code and paste it on your website.","helperTextWarning":"This player is configured with the Campaign plugin. To ensure proper tracking, the JavaScript embed code should be used."},"done":"Done","close":"Close","toasterTitle":"Success.","toasterMessage":"Code copied to clipboard","toasterGetURLSuccess":"URL copied to the clipboard","toasterErrorMessage":"Error while copying text to clipboard","toasterGetURLError":"URL cannot be generated","customPluginNotice":"Due to custom configurations, you may not be experiencing the full preview.","noPlayerModalHeader":"Create an Interactivity Player","noPlayerModalContent1":"To embed an Interactivity Project you must enable the interactivity feature.","noPlayerModalContent2":"Activate this feature on any existing player or create a new one.","toPlayersModuleLink":"Go to the Players module","cancel":"Cancel","createPlayerNow":"Create Player Now","createPlayerFailedTitle":"Failed to create the Interactivity-enabled Player.","createPlayerFailedMessage":"Please try again.","activateModal":"No Interactivity-enabled players","activateModalContent1":"An Interactivity-enabled player is required to embed a project. Currently, this account has no Interactivity-enabled players. To create one, use the ","activateModalContent2":"Players module"}')},es:{translation:JSON.parse('{"modalHeader":"Incrustar en sitio web","mediaNotice":"Utilizará el reproductor predeterminado de su cuenta","tooltipText":"Actualmente se está utilizando el reproductor predeterminado de Brightcove. La gestión de reproductores estará disponible próximamente.","tooltipTextNew":"Los reproductores determinan la experiencia del usuario a la hora de reproducir vídeos por medio de ajustes como el estilo del reproductor, ajustes de configuración especiales y otros.","tooltipLink":"Más información sobre reproductores","learnmore":"https://es.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Vista previa","player":"Reproductor","getURL":"Obtener URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copie el código HTML y péguelo en su sitio web.","helperTextWarning":"Este reproductor está configurado con el complemento Campaign. Para garantizar un seguimiento adecuado, debe utilizarse el código de incrustación JavaScript."},"toasterTitle":"Operación realizada correctamente.","toasterMessage":"Código copiado al portapapeles","toasterGetURLSuccess":"URL copiada al portapapeles","toasterGetURLError":"No es posible generar la URL","toasterErrorMessage":"Se ha producido un error al copiar el texto al portapapeles.","customPluginNotice":"Puede ocurrir que las configuraciones personalizadas impidan la previsualización completa.","done":"Hecho","close":"Cerrar","noPlayerModalHeader":"Crear un reproductor de interactividad","noPlayerModalContent1":"Para poder incrustar un proyecto de interactividad, primero hay que activar la función de interactividad.","noPlayerModalContent2":"Active esta función en cualquier reproductor existente o cree uno nuevo.","toPlayersModuleLink":"Ir al módulo Players","cancel":"Cancelar","createPlayerNow":"Crear reproductor ahora","createPlayerFailedTitle":"No ha sido posible crear el reproductor con la interactividad activada.","createPlayerFailedMessage":"Vuelva a intentarlo.","activateModal":"No hay ningún reproductor con la interactividad activada","activateModalContent1":"Para poder incrustar proyectos, se precisa un reproductor con la interactividad activada. En este momento, esta cuenta no tiene reproductores con la interactividad activada. Para crear uno, utilice el ","activateModalContent2":"Módulo Players"}')},fr:{translation:JSON.parse('{"modalHeader":"Intégration à un site Internet","mediaNotice":"Ceci utilisera le lecteur par défaut de votre compte","tooltipText":"Utilise actuellement le lecteur Brightcove par défaut. La fonctionnalité de gestion des lecteurs sera bientôt disponible.","tooltipTextNew":"Les joueurs choisissent l\'expérience de lecture vidéo comme l\'apparence, les paramètres de configuration spéciaux, et plus.","tooltipLink":"En savoir plus sur les lecteurs","learnmore":"https://fr.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Aperçu","player":"Player","getURL":"Obtenir l\'URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copiez le code HTML et collez-le dans votre site Internet.","helperTextWarning":"Ce joueur est configuré avec le plug-in Campaign. Pour garantir un suivi adéquat, le code incorporé JavaScript doit être utilisé."},"toasterTitle":"Réussite.","toasterMessage":"Code copié dans le presse-papiers","toasterGetURLSuccess":"URL copiée dans le presse-papiers","toasterGetURLError":"Impossible de générer l\'URL","toasterErrorMessage":"Erreur lors de la copie du texte dans le presse-papiers","customPluginNotice":"En raison des configurations personnalisées, vous pourriez ne pas pouvoir visualiser l\'aperçu plein écran.","done":"Terminé","close":"Fermer","noPlayerModalHeader":"Créer un lecteur d’interactivité","noPlayerModalContent1":"Pour intégrer un projet d’interactivité vous devez activer la fonction d’interactivité.","noPlayerModalContent2":"Activez cette fonction sur un lecteur existant ou créez-en un nouveau.","toPlayersModuleLink":"Accéder au module Lecteurs","cancel":"Annuler","createPlayerNow":"Créer un lecteur maintenant","createPlayerFailedTitle":"Impossible de créer le lecteur compatible à l’interactivité.","createPlayerFailedMessage":"Veuillez réessayer.","activateModal":"Aucun lecteur compatible à l’interactivité.","activateModalContent1":"Un lecteur compatible à l’interactivité est obligatoire pour intégrer un projet. Actuellement, ce compte ne contient aucun lecteur compatible à l’interactivité. Pour en créer un, utilisez le ","activateModalContent2":"module Lecteurs"}')},ja:{translation:JSON.parse('{"modalHeader":"Webサイトに埋め込み","mediaNotice":"アカウントのデフォルトのプレーヤーを使用します","tooltipText":"現在、Brightcoveのデフォルトのプレーヤーを使用しています。プレーヤー管理が、間もなく公開されます。","tooltipTextNew":"プレーヤーは、スタイル指定や特別な設定など、動画再生体験を決定します。","tooltipLink":"プレーヤーについての詳細","learnmore":"https://ja.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"プレビュー","player":"プレーヤー","getURL":"URLを取得する","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。","helperTextWarning":"このプレーヤーは、キャンペーンプラグインを使って構成されています。適切にトラッキングするには、 JavaScript埋め込みコードを使用してください。"},"toasterTitle":"成功。","toasterMessage":"コードをクリップボードにコピーしました","toasterGetURLSuccess":"URLをクリップボードにコピーしました","toasterGetURLError":"URLを生成できません","toasterErrorMessage":"テキストをクリップボードにコピー中にエラーが発生しました","customPluginNotice":"カスタム設定により、プレビューが完全でない場合があります。","done":"完了","close":"閉じる","noPlayerModalHeader":"インタラクティブプレーヤーの作成","noPlayerModalContent1":"インタラクティブプロジェクトを埋め込むには、インタラクティブ機能を有効にする必要があります。","noPlayerModalContent2":"既存のプレーヤーでこの機能をアクティブ化するか、新しいプレーヤーを作成してください。","toPlayersModuleLink":"Playersモジュールに移動します","cancel":"キャンセル","createPlayerNow":"今すぐプレーヤーを作成","createPlayerFailedTitle":"インタラクティブ機能対応プレーヤーの作成に失敗しました。","createPlayerFailedMessage":"もう一度お試しください。","activateModal":"インタラクティブ機能対応プレーヤーがありません","activateModalContent1":"プロジェクトを埋め込むには、インタラクティブ機能対応プレーヤーが必要です。現在、このアカウントには、インタラクティブ機能対応プレーヤーがありません。作成するには ","activateModalContent2":"Playersモジュールを使用します"}')},ko:{translation:JSON.parse('{"modalHeader":"웹사이트에 임베드","mediaNotice":"계정의 기본 플레이어를 사용합니다","tooltipText":"현재 Brightcove 기본 플레이어 사용 중입니다. 플레이어 관리가 곧 출시됩니다.","tooltipTextNew":"플레이어는 스타일 지정, 특수 구성 설정 등 비디오 재생 경험을 결정합니다.","tooltipLink":"플레이어에 대해 자세히 알아보기","learnmore":"https://ko.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"미리 보기","player":"플레이어","getURL":"URL 받기","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTML 코드를 복사하여 웹사이트에 붙여넣으십시오.","helperTextWarning":"이 플레이어는 캠페인 플러그인과 함께 구성됩니다. 바르게 추적되게 하려면, JavaScript 내장 코드를 사용해야 합니다."},"toasterTitle":"성공.","toasterMessage":"클립보드에 코드가 복사됨","toasterGetURLSuccess":"URL이 클립보드에 복사됨","toasterGetURLError":"URL 생성 불가","toasterErrorMessage":"클립보드에 텍스트를 복사하는 중 오류 발생","customPluginNotice":"사용자 정의 구성으로 인해 전체 미리 보기를 이용하지 못할 수도 있습니다.","done":"완료","close":"닫기","noPlayerModalHeader":"상호작용성 플레이어 생성","noPlayerModalContent1":"상호작용성 프로젝트를 임베딩하려면 상호작용성 기능을 활성화해야 합니다.","noPlayerModalContent2":"기존 플레이어에서 이 기능을 활성화하거나 새 플레이어를 생성하십시오.","toPlayersModuleLink":"플레이어 모듈로 이동","cancel":"취소","createPlayerNow":"지금 플레이어 생성","createPlayerFailedTitle":"상호작용성 지원 플레이어를 생성하지 못했습니다.","createPlayerFailedMessage":"다시 시도해 주십시오.","activateModal":"상호작용성 지원 플레이어가 없음","activateModalContent1":"프로젝트를 임베딩하려면 상호작용성 지원 플레이어가 필요합니다. 현재 이 계정에는 상호작용성 지원 플레이어가 없습니다. 다음을 사용해 새 플레이어 생성 ","activateModalContent2":"플레이어 모듈"}')},zh:{translation:JSON.parse('{"modalHeader":"內嵌到網站","mediaNotice":"會使用您帳戶的預設播放程式","tooltipText":"目前使用 Brightcove 預設播放程式。播放程式管理功能即將推出。","tooltipTextNew":"播放器決定視訊播放體驗,例如樣式風格、特別組態設定等。","tooltipLink":"瞭解關於播放程式的更多資訊","learnmore":"https://zh-tw.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"預覽","player":"播放程式","getURL":"取得 URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"複製 HTML 程式碼並貼到您的網站上。","helperTextWarning":"此播放程式設定有活動外掛程式。為了確保正確追蹤,應使用 JavaScript 內嵌程式碼。"},"toasterTitle":"成功.","toasterMessage":"程式碼已複製到剪貼簿","toasterGetURLSuccess":"URL 已複製到剪貼簿","toasterGetURLError":"無法產生 URL","toasterErrorMessage":"複製文字到剪貼簿時發生錯誤","customPluginNotice":"由於自訂組態,您可能無法體驗完整預覽版。","done":"完成","close":"關閉","noPlayerModalHeader":"建立互動播放程式","noPlayerModalContent1":"若要嵌入互動專案,您必須啟用互動功能。","noPlayerModalContent2":"在任何現有播放程式上啟動此功能或建立新項目。","toPlayersModuleLink":"前往播放程式模組","cancel":"取消","createPlayerNow":"立即建立播放程式","createPlayerFailedTitle":"無法建立已啟用互動功能的播放程式。","createPlayerFailedMessage":"請再試一次。","activateModal":"沒有已啟用互動功能的播放程式","activateModalContent1":"需要有已啟用互動功能的播放程式才能嵌入專案。目前,此帳戶沒有已啟用互動功能的播放程式。若要建立一個,請使用 ","activateModalContent2":"播放程式模組"}')}};ur.use(A).init({lng:(null===(cr=window.StudioModule)||void 0===cr||null===(lr=cr.config)||void 0===lr?void 0:lr.lang)||"en",fallbackLng:"en",debug:!0,returnObjects:!0,resources:dr,interpolation:{escapeValue:!1}});const pr=ur;(0,E.initialize)({theme:"blueSteel"});var fr=new O.QueryClient;const hr=function(e){var t=e.playerPayload,n=e.language,r=e.embedCodeModalType,o=i((0,s.useState)(0),2),a=o[0],c=o[1],l=i((0,s.useState)(!1),2),d=l[0],p=l[1];(0,s.useEffect)((function(){pr.changeLanguage(n||window.StudioModule.config.lang)}),[n]);return t?u().createElement(O.QueryClientProvider,{client:fr},u().createElement(w,{i18n:pr},u().createElement(Bt,{key:a,handleSetComponentKey:function(){c(a+1)},playerPayload:t,language:n,embedCodeModalType:r,handleSetHasCreatedPlayer:function(e){return p(e)},hasCreatedPlayer:d}))):null}})(),a})()));
|
|
7
|
+
function $e(){return $e=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$e.apply(this,arguments)}var Je="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},Ye=["catalogSearch","catalogSequence"],Xe=["adConfigId","applicationId","catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId"],et=function(e){return Object.keys(e).filter((function(e){return-1!==Xe.indexOf(e)})).reduce((function(t,n){var r=function(e,t){if(e&&void 0!==e[t]){if("string"!=typeof e[t]&&-1!==Ye.indexOf(t))try{return encodeURIComponent(JSON.stringify(e[t]))}catch(e){return}return encodeURIComponent(String(e[t]).trim())||void 0}}(e,n);return void 0!==r&&(t+=t?"&":"?",t+=encodeURIComponent(n)+"="+r),t}),"")},tt=function(e){var t=e.accountId,n=e.base,r=void 0===n?"https://players.brightcove.net":n,i=e.playerId,o=void 0===i?"default":i,a=e.embedId,s=void 0===a?"default":a,u=e.iframe,c=void 0!==u&&u,l=e.minified,d=void 0===l||l,p=e.queryParams,f=void 0===p?null:p,h="";c?h+="html":(d&&(h+="min."),h+="js"),"/"===r.charAt(r.length-1)&&(r=r.substring(0,r.length-1));var v="";return c&&f&&"object"===(void 0===f?"undefined":Je(f))&&(v=et(f)),r+"/"+(t=encodeURIComponent(t))+"/"+(o=encodeURIComponent(o))+"_"+(s=encodeURIComponent(s))+"/index."+h+v};
|
|
8
|
+
/*! @name @brightcove/player-url @version 1.2.0 @license Apache-2.0 */tt.VERSION="1.2.0";var nt={embedId:"default",embedType:"in-page",playerId:"default",Promise:Ke().Promise,refNodeInsert:"append"},rt="video",it="video-js",ot="in-page",at="iframe",st="append",ut="prepend",ct="before",lt="after",dt="replace",pt=["catalogSearch","catalogSequence"],ft="https://players.brightcove.net/",ht=function(e){if(e.playerUrl)return e.playerUrl;var t=e.accountId,n=e.playerId,r=e.embedId,i=e.embedOptions,o=e.embedType===at;return tt({accountId:t,playerId:n,embedId:r,iframe:o,base:ft,minified:!i||!i.unminified,queryParams:e})},vt=function(){return ft},gt=function(e){ft=e},mt=function(e){return Boolean(e&&1===e.nodeType)},yt=function(e){return Boolean(mt(e)&&e.parentNode)},bt=function(e,t,n){return t?function(e,t){if(!e.pip)return t;var n=We().createElement("div");return n.classList.add("vjs-pip-container"),n.appendChild(t),n}(t,function(e,t,n){if(!t.responsive)return n;n.style.position="absolute",n.style.top="0px",n.style.right="0px",n.style.bottom="0px",n.style.left="0px",n.style.width="100%",n.style.height="100%";var r=$e({aspectRatio:"16:9",iframeHorizontalPlaylist:!1,maxWidth:"100%"},t.responsive),i=r.aspectRatio.split(":").map(Number),o=We().createElement("div"),a=i[1]/i[0]*100;e===at&&r.iframeHorizontalPlaylist&&(a*=1.25),o.style.paddingTop=a+"%",o.appendChild(n);var s=We().createElement("div");return s.style.position="relative",s.style.display="block",s.style.maxWidth=r.maxWidth,s.appendChild(o),s}(e,t,n)):n},Ct=function(e){var t=e.embedType===at?function(e){var t=We().createElement("iframe");return t.setAttribute("allow","autoplay;encrypted-media;fullscreen"),t.setAttribute("allowfullscreen","allowfullscreen"),t.src=ht(e),t}(e):function(e){var t=e.embedOptions,n={adConfigId:"data-ad-config-id",applicationId:"data-application-id",catalogSearch:"data-catalog-search",catalogSequence:"data-catalog-sequence",deliveryConfigId:"data-delivery-config-id",playlistId:"data-playlist-id",playlistVideoId:"data-playlist-video-id",poster:"poster",videoId:"data-video-id"},r=t&&t.tagName||it,i=We().createElement(r);return Object.keys(n).filter((function(t){return e[t]})).forEach((function(t){var r;if("string"!=typeof e[t]&&-1!==pt.indexOf(t))try{r=JSON.stringify(e[t])}catch(e){return}else r=String(e[t]).trim();i.setAttribute(n[t],r)})),i.setAttribute("controls","controls"),i.classList.add("video-js"),i}(e);return function(e,t){var n=e.refNode,r=e.refNodeInsert,i=n.parentNode,o=bt(e.embedType,e.embedOptions,t);if(r===ct?i.insertBefore(o,n):r===lt?i.insertBefore(o,n.nextElementSibling||null):r===dt?i.replaceChild(o,n):r===ut?n.insertBefore(o,n.firstChild||null):n.appendChild(o),e.embedOptions&&e.embedOptions.playlist){var a=e.embedOptions.playlist.legacy?"ul":"div",s=We().createElement(a);s.classList.add("vjs-playlist"),t.parentNode.insertBefore(s,t.nextElementSibling||null)}return e.refNode=null,t}(e,function(e,t){if("function"!=typeof e.onEmbedCreated)return t;var n=e.onEmbedCreated(t);return mt(n)?n:t}(e,t))},At=new(Ke().Map),wt=function(e){return(e.accountId||"*")+"_"+e.playerId+"_"+e.embedId},Et=function(){At.clear()},Ot=function(e){At.forEach(e)},Pt=function(e){return At.has(wt(e))},xt=function(e){At.set(wt(e),e.accountId?ht(e):"")},St=/^([A-Za-z0-9]+)_([A-Za-z0-9]+)$/,It=function(){return Ke().bc?Object.keys(Ke().bc).filter((function(e){return St.test(e)})):[]},jt=function(e){e&&Object.keys(e.players).forEach((function(t){var n=e.players[t];n&&n.dispose()}))},kt=function(){Ot((function(e,t){e&&Array.prototype.slice.call(We().querySelectorAll('script[src="'+e+'"]')).forEach((function(e){return e.parentNode.removeChild(e)}))})),Et(),jt(Ke().videojs),It().forEach((function(e){return jt(Ke().bc[e].videojs)})),Object.keys(Ke()).filter((function(e){return/^videojs/i.test(e)||/^(bc)$/.test(e)})).forEach((function(e){delete Ke()[e]}))};(function(){It().forEach((function(e){var t=e.match(St),n={playerId:t[1],embedId:t[2]};Pt(n)||xt(n)}))})();var Rt=function(e){return"function"==typeof e},_t=function(e){var t,n=e.accountId,r=e.embedOptions,i=e.embedType,o=e.options,a=e.refNode,s=e.refNodeInsert;if(!n)throw new Error("accountId is required");if(!yt(a))throw new Error("refNode must resolve to a node attached to the DOM");if(!function(e){return e===ot||e===at}(i))throw new Error("embedType is missing or invalid");if(i===at&&o)throw new Error("cannot use options with an iframe embed");if(r&&void 0!==r.tagName&&((t=r.tagName)!==it&&t!==rt))throw new Error('embedOptions.tagName is invalid (value: "'+r.tagName+'")');if(r&&r.responsive&&r.responsive.aspectRatio&&!/^\d+\:\d+$/.test(r.responsive.aspectRatio))throw new Error('embedOptions.responsive.aspectRatio must be in the "n:n" format (value: "'+r.responsive.aspectRatio+'")');if(!function(e){return e===st||e===ut||e===ct||e===lt||e===dt}(s))throw new Error("refNodeInsert is missing or invalid")},Lt=function(e,t,n,r){var i,o=e.embedId,a=e.playerId,s=Ke().bc[a+"_"+o]||Ke().bc;if(!s)return r(new Error("missing bc function for "+a));xt(e);try{(i=s(t,e.options)).bcinfo&&(i.bcinfo.PLAYER_LOADER=!0)}catch(t){var u="Could not initialize the Brightcove Player.";return e.embedOptions.tagName===it&&(u+=' You are attempting to embed using a "video-js" element. Please ensure that your Player is v6.11.0 or newer in order to support this embed type. Alternatively, pass `"video"` for `embedOptions.tagName`.'),r(new Error(u))}n({type:ot,ref:i})},Nt=function(e,t,n){e.refNode=function(e){return yt(e)?e:"string"==typeof e?We().querySelector(e):null}(e.refNode),_t(e);var r=e.refNode,i=e.refNodeInsert,o=r.parentNode,a=Ct(e);if(e.embedType!==at){if(Pt(e))return Lt(e,a,t,n);var s=We().createElement("script");s.onload=function(){return Lt(e,a,t,n)},s.onerror=function(){n(new Error("player script could not be downloaded"))},s.async=!0,s.charset="utf-8",s.src=ht(e),i===dt?o.appendChild(s):r.appendChild(s)}else t({type:at,ref:a})},Mt=function(e){var t=$e({},nt,e),n=t.Promise,r=t.onSuccess,i=t.onFailure;return!Rt(n)||Rt(r)||Rt(i)?Nt(t,Rt(r)?r:function(){},Rt(i)?i:function(e){throw e}):new n((function(e,n){return Nt(t,e,n)}))},Tt=function(e,t){Object.defineProperty(Mt,e,{configurable:!1,enumerable:!0,value:t,writable:!1})};Tt("getBaseUrl",(function(){return vt()})),Tt("setBaseUrl",(function(e){gt(e)})),Tt("getUrl",(function(e){return ht(e)})),Tt("reset",(function(){return kt()})),[["EMBED_TAG_NAME_VIDEO",rt],["EMBED_TAG_NAME_VIDEOJS",it],["EMBED_TYPE_IN_PAGE",ot],["EMBED_TYPE_IFRAME",at],["REF_NODE_INSERT_APPEND",st],["REF_NODE_INSERT_PREPEND",ut],["REF_NODE_INSERT_BEFORE",ct],["REF_NODE_INSERT_AFTER",lt],["REF_NODE_INSERT_REPLACE",dt],["VERSION","1.8.0"]].forEach((function(e){Tt(e[0],e[1])}));var Ft=["catalogSearch","catalogSequence","playlistId","playlistVideoId","videoId"],Dt=function(e){var t,n;function r(t){var n;return(n=e.call(this,t)||this).refNode=null,n.setRefNode=function(e){n.refNode=e},n.loadPlayer=n.loadPlayer.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(n)),n}n=e,(t=r).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=r.prototype;return i.loadPlayer=function(){var e=this;this.disposePlayer();var t=this.props.onSuccess,n=this.props.onFailure,r=Ge({},this.props,{refNode:this.refNode,refNodeInsert:"append",onSuccess:function(n){var r=n.ref,i=n.type;e.isMounted_?(e.player=r,"in-page"===i&&r.one("dispose",(function(){e.player=null})),r.bcinfo&&(r.bcinfo.REACT_PLAYER_LOADER=!0),"function"==typeof t&&t({ref:r,type:i})):e.disposePlayer(r)},onFailure:function(t){if(e.isMounted_){if("function"!=typeof n)throw new Error(t);n(t)}}});delete r.attrs,delete r.baseUrl,delete r.manualReloadFromPropChanges;var i=Mt.getBaseUrl();this.props.baseUrl&&Mt.setBaseUrl(this.props.baseUrl),Mt(r),Mt.setBaseUrl(i)},i.disposePlayer=function(){this.player&&(this.player.dispose?this.player.dispose():this.player.parentNode&&this.player.parentNode.removeChild(this.player),this.player=null)},i.findPlaylistVideoIdIndex_=function(e){var t=this.props.playlistVideoId;if(Array.isArray(e)&&t)for(var n=0;n<e.length;n++){var r=e[n],i=r.id,o=r.referenceId;if(i===t||"ref:"+o===t)return n}return-1},i.createPlaybackAPICallback_=function(e,t){var n=this;return function(r,i){if(r)!function(e){e&&console&&console.error&&console.error(e)}(r);else{if("playlist"===e&&t.playlistVideoId){var o=n.findPlaylistVideoIdIndex_(i);o>-1&&(i.startingIndex=o)}n.player.catalog.load(i)}}},i.updatePlayer=function(e){if(this.player&&this.player.el&&this.player.el()){var t;if(this.player.usingPlugin("catalog")){if(e.catalogSequence&&this.props.catalogSequence){var n=this.createPlaybackAPICallback_("sequence",e);return void this.player.catalog.getLazySequence(this.props.catalogSequence,n,this.props.adConfigId)}e.videoId&&this.props.videoId?t={type:"video",id:this.props.videoId}:e.playlistId&&this.props.playlistId?t={type:"playlist",id:this.props.playlistId}:e.catalogSearch&&this.props.catalogSearch&&(t={type:"search",q:this.props.catalogSearch})}if(t){this.props.adConfigId&&(t.adConfigId=this.props.adConfigId),this.props.deliveryConfigId&&(t.deliveryConfigId=this.props.deliveryConfigId);var r=this.createPlaybackAPICallback_(t.type,e);this.player.catalog.get(t,r)}else if(e.playlistVideoId&&this.props.playlistVideoId&&this.player.usingPlugin("playlist")){var i=this.findPlaylistVideoIdIndex_(this.player.playlist());i>-1&&this.player.playlist.currentItem(i)}}},i.componentDidMount=function(){this.isMounted_=!0,this.loadPlayer()},i.componentDidUpdate=function(e){var t=this,n=Object.keys(e).reduce((function(n,r){var i=e[r],o=t.props[r];return"function"==typeof o?n:"object"==typeof o&&null!==o?(JSON.stringify(o)!==JSON.stringify(i)&&(n[r]=!0),n):(o!==i&&(n[r]=!0),n)}),{});this.props.manualReloadFromPropChanges||!Object.keys(n).some((function(e){return-1===Ft.indexOf(e)}))?this.updatePlayer(n):this.loadPlayer()},i.componentWillUnmount=function(){this.isMounted_=!1,this.disposePlayer()},i.render=function(){var e=Ge({className:"brightcove-react-player-loader"},this.props.attrs,{ref:this.setRefNode});return u().createElement("div",e)},r}(u().Component);const Bt=Dt;var Ut=function(e){var t=e.video,n=e.embedCodeModalType,r=e.playerListForSelection,o=e.players,a=e.hasCreatedPlayer,c=B().t,l=i((0,s.useState)(),2),d=l[0],p=l[1],f=i((0,s.useState)(""),2),h=f[0],v=f[1],g=(0,s.useMemo)((function(){return n===_e.PROJECT?t.interactivityProjectId:null}),[t,n]);(0,s.useEffect)((function(){if(null!=d&&d.id){var e={accountId:t.accountId,playerId:d.id,videoId:t.videoId};g&&(e.interactivityProjectId=g),v(K(e))}}),[d,t,g]);var m=(0,s.useCallback)((function(e){g&&e.setAttribute("data-interactivity-project-id",g)}),[g]),y={accountId:t.accountId,playerId:(null==d?void 0:d.id)||(r.length>0?r[0].value:De),isCampaign:(null==d?void 0:d.hasCampaignPlugin)||!1,videoId:t.videoId},b=g?t.interactivityProjectName:t.videoName,C=g||t.videoId;return g&&(y.interactivityProjectId=g),u().createElement(u().Fragment,null,u().createElement("div",{className:He.leftContent},u().createElement(Kt,{onChange:p,playerListForSelection:r,players:o}),a?u().createElement("iframe",{src:"".concat(Q(),"/").concat(y.accountId,"/players/").concat(y.playerId,"/preview/embeds/default/master/index.html?interactivityProjectId=").concat(y.interactivityProjectId,"&videoId=").concat(y.videoId),allowFullScreen:!0,allow:"autoplay;encrypted-media;fullscreen",width:"539",height:"303.2","data-interactivity-project-id":g}):u().createElement(Bt,(0,ye.Z)({},y,{baseUrl:W(),attrs:{className:He.playerLoader},embedType:"iframe",refNode:"player-container",onEmbedCreated:m})),u().createElement(I.Hideable,{show:null==d?void 0:d.hasCustomPlugins},u().createElement("span",{className:He.customPluginNotice},c("customPluginNotice"))),u().createElement(tn,{prevUrl:h})),u().createElement("div",{className:He.rightContent},u().createElement(Wt,{name:b,id:C}),u().createElement(Yt,y)))};function qt(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return Vt(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Vt(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw o}}}}function Vt(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Qt=function(e){var t=e.id,n=e.configuration,r=e.accountId,i=void 0===r?"":r,o=B().t,a=G(i,t),c=K({accountId:i,playerId:t}),l=(0,s.useMemo)((function(){var e=!1,t=!1,r=[];if(n){var i,o,a=qt(r=null!==(i=n.plugins)&&void 0!==i?i:r);try{for(a.s();!(o=a.n()).done;){var s=o.value,u=s.name;e=Ne.includes(u),t=t||s.name===Me}}catch(e){a.e(e)}finally{a.f()}}return{hasCustomPlugins:!e&&r.length>0,isCampaignPlayer:t}}),[n]),d=l.hasCustomPlugins,p=l.isCampaignPlayer;return u().createElement(u().Fragment,null,u().createElement("div",{className:He.leftContent},u().createElement(Bt,{accountId:i,baseUrl:W(),attrs:{className:He.playerLoader},embedType:"iframe",refNode:"player-container",playerUrl:a}),u().createElement(I.Hideable,{show:d},u().createElement("span",{className:He.customPluginNotice},o("customPluginNotice"))),u().createElement(tn,{prevUrl:c})),u().createElement("div",{className:He.rightContent},u().createElement(Yt,{isCampaign:p,playerId:t,accountId:i})))},Ht=function(e){var t=e.modalType,n=B().t,r=function(e){return u().createElement("a",{href:Y()},e)};return u().createElement(I.Flex,{flexDirection:"column"},u().createElement("p",null,t===Le.NO_PLAYER?n("noPlayerModalContent1"):u().createElement(u().Fragment,null,n("activateModalContent1"),r(n("activateModalContent2")),"."),u().createElement("br",null),t===Le.NO_PLAYER?n("noPlayerModalContent2"):null),u().createElement(u().Fragment,null,t===Le.NO_PLAYER?u().createElement("p",null,r(n("toPlayersModuleLink"))):null))},zt=function(e){var t=e.handleSetComponentKey,n=e.data,r=e.embedCodeModalType,o=void 0===r?_e.VIDEO:r,a=e.handleSetHasCreatedPlayer,c=e.hasCreatedPlayer,l=B().t,d=i((0,s.useState)(!1),2),p=d[0],f=d[1],h=Re(!0),v=h.isFetching,g=h.data,m=i((0,s.useState)({}),2),y=m[0],b=m[1],C=i((0,s.useState)([]),2),A=C[0],w=C[1],E=i((0,s.useState)(!1),2),O=E[0],P=E[1],x=i((0,s.useState)(!1),2),S=x[0],j=x[1];(0,s.useEffect)((function(){var e=$().getCurrentUserAccount().roles;e.length&&e.includes(V)&&P(!0)}),[]),(0,s.useEffect)((function(){var e;if(!v&&g&&(null!==(e=null==g?void 0:g.items.length)&&void 0!==e?e:0)>0){var t=function(e){var t=[],n={};return null==e||e.items.forEach((function(e){var r,i,o=null!==(r=e.branches.master.configuration.plugins)&&void 0!==r?r:[],a=!!o&&o.length>0,s=!1,u=!1,c=!1,l=Te(o);try{for(l.s();!(i=l.n()).done;){var d=i.value,p=d.name;s=Ne.includes(p),u=u||d.name===Me,c=c||"@brightcove/videojs-interactivity-viewer"===d.registry_id||"interactivityViewer"===d.name}}catch(e){l.e(e)}finally{l.f()}t.push({label:e.name,value:e.id}),n[e.id]={label:e.name,id:e.id,hasCustomPlugins:!s&&a,hasCampaignPlugin:u,hasInteractivityPlugin:c}})),{players:n,playerListForSelection:Z(t)}}(g),n=t.playerListForSelection,r=t.players,i=void 0===r?{}:r,a=n;o===_e.PROJECT&&(a=n.filter((function(e){return i[e.value].hasInteractivityPlugin}))),b(i),w(a)}}),[v,g,o]);var k=(0,s.useMemo)((function(){return Object.values(y).some((function(e){return e.hasInteractivityPlugin}))}),[y]);(0,s.useEffect)((function(){n&&f(!0)}),[n]);var R=(0,s.useCallback)((function(){f(!1),a(!1)}),[]),_=null,L=l("modalHeader"),N=!0,M=[u().createElement(I.Button,{key:"close-button",text:l("done"),onClick:R,testName:"close-modal-btn"})];if(!v)switch(o){case _e.VIDEO:_="videoId"in n?u().createElement(Ut,{video:n,embedCodeModalType:o,players:y,playerListForSelection:A}):null;break;case _e.PLAYER:var T=n.accountId||Se();_="id"in n&&T?u().createElement(Qt,(0,ye.Z)({},n,{accountId:T})):null;break;case _e.PROJECT:k||O?k?_="videoId"in n&&"interactivityProjectId"in n?u().createElement(Ut,{video:n,embedCodeModalType:o,playerListForSelection:A,players:y,hasCreatedPlayer:c}):null:(L=l("noPlayerModalHeader"),N=!1,M=[u().createElement(I.Button,{key:"cancel-button",text:l("cancel"),onClick:R,testName:"cancel-button",look:"tertiary"}),u().createElement(I.Button,{key:"create-player-button",text:l("createPlayerNow"),spinner:S,onClick:function(){var e=Be,n=Ue,r=qe;j(!0),ke({data:{name:e,configuration:{plugins:[{registry_id:n,version:r}]}}}).then((function(e){e&&e.id&&(a(!0),t())})).catch((function(e){console.error(e),J().Toaster.error({title:l("createPlayerFailedTitle"),message:l("createPlayerFailedMessage")})})).finally((function(){j(!1)}))},testName:"create-player-button"})],_=u().createElement(Ht,{modalType:Le.NO_PLAYER})):(L=l("activateModal"),N=!1,M=[u().createElement(I.Button,{key:"close-button",text:l("close"),onClick:R,testName:"close-modal-done-btn"})],_=u().createElement(Ht,{modalType:Le.NO_PERMISSION}));break;default:console.warn("EmbedModal with ".concat(o," is not supported")),_=null}return _?u().createElement(I.Modal,{testName:"embed-modal",title:L,isOpen:p,large:N,onClose:R,buttons:M},u().createElement(I.Flex,{className:He.videoDetailsContainer},_)):(console.warn("EmbedModal called with wrong props for type: ".concat(o)),null)},Wt=function(e){var t=e.name,n=e.id,r=i((0,s.useState)(!1),2),o=r[0],a=r[1],c=(0,s.useMemo)((function(){return t?(e=t).length>60?"".concat(e.substring(0,60).trim(),"..."):e:"";var e}),[t]);return(0,s.useEffect)((function(){t&&a(c!==t)}),[c,t]),u().createElement(I.Flex,{flexDirection:"column",className:He.mediaData},u().createElement(I.ToolTip,{placement:"top",portal:!0,block:!0,content:t,active:o,testName:"embed-video-tooltip"},u().createElement("div",{className:He.mediaTitle},c)),u().createElement("div",{className:He.mediaId},n))},Zt=function(e){var t=e.tooltipTextNew,n=e.tooltipLink,r=B().t;return u().createElement(u().Fragment,null,u().createElement("div",null,t),u().createElement("a",{href:r("learnmore"),target:"_blank",rel:"noreferrer"},n))},Kt=function(e){var t=e.onChange,n=e.playerListForSelection,r=e.players,o=B().t,a=i((0,s.useState)(),2),c=a[0],l=a[1],d=(0,s.useCallback)((function(e){if(r){var n=r[e];l(n),t&&t(n)}}),[r,t]);return(0,s.useEffect)((function(){c||d(n.length>0?n[0].value:De)}),[d,n,c]),c?u().createElement(u().Fragment,null,u().createElement(I.Flex,null,u().createElement("div",{className:He.playerSelectLabel},o("player")),u().createElement(I.ToolTip,{content:u().createElement(Zt,{tooltipLink:o("tooltipLink"),tooltipTextNew:o("tooltipTextNew")}),placement:"top",className:He.tooltip,reflow:!1,testName:"embed-player-tooltip"})),u().createElement(I.Hideable,{show:n.length>0},u().createElement(I.Select,{value:c.id,options:n,inputClassName:He.playerSelect,onChange:d,testName:"embed-player-select"}))):null},Gt=function(e){var t=e.currentTab,n=e.handleTabChange,r=e.iframeLabel,i=e.jsLabel;return u().createElement(I.Flex,{justifyContent:"space-between",alignItems:"baseline"},u().createElement(I.Tabs,{selectedId:t,onSelect:n},u().createElement(I.TabList,null,u().createElement(I.Tab,{tabId:"iframe",testName:"iframe-tab"},r),u().createElement(I.Tab,{tabId:"javascript",testName:"js-tab"},i))))};function $t(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var Jt=["isCampaign"],Yt=function(e){var t=e.isCampaign,n=$t(e,Jt),r=B().t,o=i((0,s.useState)("iframe"),2),a=o[0],c=o[1],l="iframe"===a;return u().createElement(u().Fragment,null,u().createElement(Gt,{currentTab:a,handleTabChange:function(e){return c(e)},jsLabel:r("tabs.labels.javascript"),iframeLabel:r("tabs.labels.iframe")}),u().createElement(I.TabPanel,{testName:"embed-tab-content",render:function(){return t&&l?u().createElement("span",{className:He.redHelperText},r("tabs.helperTextWarning")):u().createElement(me,(0,ye.Z)({iframe:l},n))}}))},Xt=o(826),en=function(){var e=Ce(we().mark((function e(t){var n;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=t.longUrl,e.abrupt("return",Ie(Xt.P,{longUrl:n}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),tn=function(e){var t=e.prevUrl,n=B().t,r=i((0,s.useState)(!1),2),o=r[0],a=r[1],c=(0,s.useCallback)(function(){var e=Ce(we().mark((function e(t){return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:a(!0),nn(t).then((function(){J().Toaster.success({title:n("toasterTitle"),message:n("toasterGetURLSuccess")})})).catch((function(){J().Toaster.error({message:n("toasterGetURLError")})})).finally((function(){return a(!1)}));case 2:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[n]);return u().createElement("div",null,u().createElement("div",{className:He.getURLBtnContainer},u().createElement(I.Button,{look:"tertiary",text:n("getURL"),testName:"get-url-btn",icon:o?"":"link",iconRight:!0,onClick:function(){return c(t)}}),o&&u().createElement(I.Loader,{className:He.getURLBtnSpinner,size:"inline",color:"navy"})),u().createElement(I.Button,{look:"tertiary",text:n("previewButton"),testName:"preview-player-btn",icon:"external_link",iconRight:!0,onClick:function(){window.open(t,"_blank")}}))},nn=function(){var e=Ce(we().mark((function e(t){var n,r;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=encodeURI(t),e.prev=1,e.abrupt("return",navigator.clipboard.write([new ClipboardItem({"text/plain":new Promise(function(){var e=Ce(we().mark((function e(t){var r;return we().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,en({longUrl:n});case 2:r=e.sent,t(new Blob([r],{type:"text/plain"}));case 4:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())})]));case 5:return e.prev=5,e.t0=e.catch(1),e.next=9,en({longUrl:n});case 9:return r=e.sent,e.abrupt("return",navigator.clipboard.writeText(r));case 11:case"end":return e.stop()}}),e,null,[[1,5]])})));return function(t){return e.apply(this,arguments)}}();function rn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var on=o(611);function an(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&&(0,on.Z)(e,t)}function sn(e,t){if(t&&("object"===l(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rn(e)}function un(e){return un=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},un(e)}function cn(t){return e(t)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||n(t)||r()}function ln(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function dn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ln(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ln(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var pn={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)}},fn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.init(t,n)}return f(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||pn,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,dn(dn({},{prefix:"".concat(this.prefix,":").concat(t,":")}),this.options))}},{key:"clone",value:function(t){return(t=t||this.options).prefix=t.prefix||this.prefix,new e(this.logger,t)}}]),e}(),hn=new fn,vn=function(){function e(){c(this,e),this.observers={}}return f(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];if(this.observers[e]){var i=[].concat(this.observers[e]);i.forEach((function(e){e.apply(void 0,n)}))}if(this.observers["*"]){var o=[].concat(this.observers["*"]);o.forEach((function(t){t.apply(t,[e].concat(n))}))}}}]),e}();function gn(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function mn(e){return null==e?"":""+e}function yn(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function bn(e,t,n){function r(e){return e&&e.indexOf("###")>-1?e.replace(/###/g,"."):e}function i(){return!e||"string"==typeof e}for(var o="string"!=typeof t?[].concat(t):t.split(".");o.length>1;){if(i())return{};var a=r(o.shift());!e[a]&&n&&(e[a]=new n),e=Object.prototype.hasOwnProperty.call(e,a)?e[a]:{}}return i()?{}:{obj:e,k:r(o.shift())}}function Cn(e,t,n){var r=bn(e,t,Object);r.obj[r.k]=n}function An(e,t){var n=bn(e,t),r=n.obj,i=n.k;if(r)return r[i]}function wn(e,t,n){var r=An(e,n);return void 0!==r?r:An(t,n)}function En(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]):En(e[r],t[r],n):e[r]=t[r]);return e}function On(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")}var Pn={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};function xn(e){return"string"==typeof e?e.replace(/[&<>"'\/]/g,(function(e){return Pn[e]})):e}var Sn="undefined"!=typeof window&&window.navigator&&void 0===window.navigator.userAgentData&&window.navigator.userAgent&&window.navigator.userAgent.indexOf("MSIE")>-1,In=[" ",",","?","!",";"];function jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function kn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Rn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=un(e);if(t){var i=un(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sn(this,n)}}function _n(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:".";if(e){if(e[t])return e[t];for(var r=t.split(n),i=e,o=0;o<r.length;++o){if(!i)return;if("string"==typeof i[r[o]]&&o+1<r.length)return;if(void 0===i[r[o]]){for(var a=2,s=r.slice(o,o+a).join(n),u=i[s];void 0===u&&r.length>o+a;)a++,u=i[s=r.slice(o,o+a).join(n)];if(void 0===u)return;if(null===u)return null;if(t.endsWith(s)){if("string"==typeof u)return u;if(s&&"string"==typeof u[s])return u[s]}var c=r.slice(o+a).join(n);return c?_n(u,c,n):void 0}i=i[r[o]]}return i}}var Ln=function(e){an(n,e);var t=Rn(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{ns:["translation"],defaultNS:"translation"};return c(this,n),r=t.call(this),Sn&&vn.call(rn(r)),r.data=e||{},r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),void 0===r.options.ignoreJSONStructure&&(r.options.ignoreJSONStructure=!0),r}return f(n,[{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]:{},i=void 0!==r.keySeparator?r.keySeparator:this.options.keySeparator,o=void 0!==r.ignoreJSONStructure?r.ignoreJSONStructure:this.options.ignoreJSONStructure,a=[e,t];n&&"string"!=typeof n&&(a=a.concat(n)),n&&"string"==typeof n&&(a=a.concat(i?n.split(i):n)),e.indexOf(".")>-1&&(a=e.split("."));var s=An(this.data,a);return s||!o||"string"!=typeof n?s:_n(this.data&&this.data[e]&&this.data[e][t],n,i)}},{key:"addResource",value:function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{silent:!1},o=this.options.keySeparator;void 0===o&&(o=".");var a=[e,t];n&&(a=a.concat(o?n.split(o):n)),e.indexOf(".")>-1&&(r=t,t=(a=e.split("."))[1]),this.addNamespaces(t),Cn(this.data,a,r),i.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 i in n)"string"!=typeof n[i]&&"[object Array]"!==Object.prototype.toString.apply(n[i])||this.addResource(e,t,i,n[i],{silent:!0});r.silent||this.emit("added",e,t,n)}},{key:"addResourceBundle",value:function(e,t,n,r,i){var o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{silent:!1},a=[e,t];e.indexOf(".")>-1&&(r=n,n=t,t=(a=e.split("."))[1]),this.addNamespaces(t);var s=An(this.data,a)||{};r?En(s,n,i):s=kn(kn({},s),n),Cn(this.data,a,s),o.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?kn(kn({},{}),this.getResource(e,t)):this.getResource(e,t)}},{key:"getDataByLanguage",value:function(e){return this.data[e]}},{key:"hasLanguageSomeTranslations",value:function(e){var t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find((function(e){return t[e]&&Object.keys(t[e]).length>0}))}},{key:"toJSON",value:function(){return this.data}}]),n}(vn),Nn={processors:{},addPostProcessor:function(e){this.processors[e.name]=e},handle:function(e,t,n,r,i){var o=this;return e.forEach((function(e){o.processors[e]&&(t=o.processors[e].process(t,n,r,i))})),t}};function Mn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Tn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Mn(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Mn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Fn(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=un(e);if(t){var i=un(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sn(this,n)}}var Dn={},Bn=function(e){an(n,e);var t=Fn(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c(this,n),r=t.call(this),Sn&&vn.call(rn(r)),yn(["resourceStore","languageUtils","pluralResolver","interpolator","backendConnector","i18nFormat","utils"],e,rn(r)),r.options=i,void 0===r.options.keySeparator&&(r.options.keySeparator="."),r.logger=hn.create("translator"),r}return f(n,[{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:{}};if(null==e)return!1;var 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,i=t.ns||this.options.defaultNS||[],o=n&&e.indexOf(n)>-1,a=!(this.options.userDefinedKeySeparator||t.keySeparator||this.options.userDefinedNsSeparator||t.nsSeparator||function(e,t,n){t=t||"",n=n||"";var r=In.filter((function(e){return t.indexOf(e)<0&&n.indexOf(e)<0}));if(0===r.length)return!0;var i=new RegExp("(".concat(r.map((function(e){return"?"===e?"\\?":e})).join("|"),")")),o=!i.test(e);if(!o){var a=e.indexOf(n);a>0&&!i.test(e.substring(0,a))&&(o=!0)}return o}(e,n,r));if(o&&!a){var s=e.match(this.interpolator.nestingRegexp);if(s&&s.length>0)return{key:e,namespaces:i};var u=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(u[0])>-1)&&(i=u.shift()),e=u.join(r)}return"string"==typeof i&&(i=[i]),{key:e,namespaces:i}}},{key:"translate",value:function(e,t,r){var i=this;if("object"!==l(t)&&this.options.overloadTranslationOptionHandler&&(t=this.options.overloadTranslationOptionHandler(arguments)),t||(t={}),null==e)return"";Array.isArray(e)||(e=[String(e)]);var o=void 0!==t.returnDetails?t.returnDetails:this.options.returnDetails,a=void 0!==t.keySeparator?t.keySeparator:this.options.keySeparator,s=this.extractFromKey(e[e.length-1],t),u=s.key,c=s.namespaces,d=c[c.length-1],p=t.lng||this.language,f=t.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(p&&"cimode"===p.toLowerCase()){if(f){var h=t.nsSeparator||this.options.nsSeparator;return o?(v.res="".concat(d).concat(h).concat(u),v):"".concat(d).concat(h).concat(u)}return o?(v.res=u,v):u}var v=this.resolve(e,t),g=v&&v.res,m=v&&v.usedKey||u,y=v&&v.exactUsedKey||u,b=Object.prototype.toString.apply(g),C=["[object Number]","[object Function]","[object RegExp]"],A=void 0!==t.joinArrays?t.joinArrays:this.options.joinArrays,w=!this.i18nFormat||this.i18nFormat.handleAsObject,E="string"!=typeof g&&"boolean"!=typeof g&&"number"!=typeof g;if(w&&g&&E&&C.indexOf(b)<0&&("string"!=typeof A||"[object Array]"!==b)){if(!t.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn("accessing an object - but returnObjects options is not enabled!");var O=this.options.returnedObjectHandler?this.options.returnedObjectHandler(m,g,Tn(Tn({},t),{},{ns:c})):"key '".concat(u," (").concat(this.language,")' returned an object instead of string.");return o?(v.res=O,v):O}if(a){var P="[object Array]"===b,x=P?[]:{},S=P?y:m;for(var I in g)if(Object.prototype.hasOwnProperty.call(g,I)){var j="".concat(S).concat(a).concat(I);x[I]=this.translate(j,Tn(Tn({},t),{joinArrays:!1,ns:c})),x[I]===j&&(x[I]=g[I])}g=x}}else if(w&&"string"==typeof A&&"[object Array]"===b)(g=g.join(A))&&(g=this.extendTranslation(g,e,t,r));else{var k=!1,R=!1,_=void 0!==t.count&&"string"!=typeof t.count,L=n.hasDefaultValue(t),N=_?this.pluralResolver.getSuffix(p,t.count,t):"",M=t["defaultValue".concat(N)]||t.defaultValue;!this.isValidLookup(g)&&L&&(k=!0,g=M),this.isValidLookup(g)||(R=!0,g=u);var T=t.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey,F=T&&R?void 0:g,D=L&&M!==g&&this.options.updateMissing;if(R||k||D){if(this.logger.log(D?"updateKey":"missingKey",p,d,u,D?M:g),a){var B=this.resolve(u,Tn(Tn({},t),{},{keySeparator:!1}));B&&B.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 U=[],q=this.languageUtils.getFallbackCodes(this.options.fallbackLng,t.lng||this.language);if("fallback"===this.options.saveMissingTo&&q&&q[0])for(var V=0;V<q.length;V++)U.push(q[V]);else"all"===this.options.saveMissingTo?U=this.languageUtils.toResolveHierarchy(t.lng||this.language):U.push(t.lng||this.language);var Q=function(e,n,r){var o=L&&r!==g?r:F;i.options.missingKeyHandler?i.options.missingKeyHandler(e,d,n,o,D,t):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,d,n,o,D,t),i.emit("missingKey",e,d,n,g)};this.options.saveMissing&&(this.options.saveMissingPlurals&&_?U.forEach((function(e){i.pluralResolver.getSuffixes(e,t).forEach((function(n){Q([e],u+n,t["defaultValue".concat(n)]||M)}))})):Q(U,u,M))}g=this.extendTranslation(g,e,t,v,r),R&&g===u&&this.options.appendNamespaceToMissingKey&&(g="".concat(d,":").concat(u)),(R||k)&&this.options.parseMissingKeyHandler&&(g="v1"!==this.options.compatibilityAPI?this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?"".concat(d,":").concat(u):u,k?g:void 0):this.options.parseMissingKeyHandler(g))}return o?(v.res=g,v):g}},{key:"extendTranslation",value:function(e,t,n,r,i){var o=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,Tn(Tn({},this.options.interpolation.defaultVariables),n),r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init(Tn(Tn({},n),{interpolation:Tn(Tn({},this.options.interpolation),n.interpolation)}));var a,s="string"==typeof e&&(n&&n.interpolation&&void 0!==n.interpolation.skipOnVariables?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables);if(s){var u=e.match(this.interpolator.nestingRegexp);a=u&&u.length}var c=n.replace&&"string"!=typeof n.replace?n.replace:n;if(this.options.interpolation.defaultVariables&&(c=Tn(Tn({},this.options.interpolation.defaultVariables),c)),e=this.interpolator.interpolate(e,c,n.lng||this.language,n),s){var l=e.match(this.interpolator.nestingRegexp);a<(l&&l.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 i&&i[0]===r[0]&&!n.context?(o.logger.warn("It seems you are nesting recursively key: ".concat(r[0]," in key: ").concat(t[0])),null):o.translate.apply(o,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=Nn.handle(p,e,t,this.options&&this.options.postProcessPassResolved?Tn({i18nResolved:r},n):n,this)),e}},{key:"resolve",value:function(e){var t,n,r,i,o,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 d=void 0!==s.count&&"string"!=typeof s.count,p=d&&!s.ordinal&&0===s.count&&a.pluralResolver.shouldUseIntlApi(),f=void 0!==s.context&&("string"==typeof s.context||"number"==typeof s.context)&&""!==s.context,h=s.lngs?s.lngs:a.languageUtils.toResolveHierarchy(s.lng||a.language,s.fallbackLng);l.forEach((function(e){a.isValidLookup(t)||(o=e,!Dn["".concat(h[0],"-").concat(e)]&&a.utils&&a.utils.hasLoadedNamespace&&!a.utils.hasLoadedNamespace(o)&&(Dn["".concat(h[0],"-").concat(e)]=!0,a.logger.warn('key "'.concat(n,'" for languages "').concat(h.join(", "),'" won\'t get resolved as namespace "').concat(o,'" 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!!!")),h.forEach((function(n){if(!a.isValidLookup(t)){i=n;var o,u=[c];if(a.i18nFormat&&a.i18nFormat.addLookupKeys)a.i18nFormat.addLookupKeys(u,c,n,e,s);else{var l;d&&(l=a.pluralResolver.getSuffix(n,s.count,s));var h="".concat(a.options.pluralSeparator,"zero");if(d&&(u.push(c+l),p&&u.push(c+h)),f){var v="".concat(c).concat(a.options.contextSeparator).concat(s.context);u.push(v),d&&(u.push(v+l),p&&u.push(v+h))}}for(;o=u.pop();)a.isValidLookup(t)||(r=o,t=a.getResource(n,e,o,s))}})))}))}})),{res:t,usedKey:n,exactUsedKey:r,usedLng:i,usedNS:o}}},{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}}]),n}(vn);function Un(e){return e.charAt(0).toUpperCase()+e.slice(1)}var qn=function(){function e(t){c(this,e),this.options=t,this.supportedLngs=this.options.supportedLngs||!1,this.logger=hn.create("languageUtils")}return f(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]=Un(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]=Un(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=Un(n[2].toLowerCase()))),n.join("-")}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():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),i=[],o=function(e){e&&(n.isSupportedCode(e)?i.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&&o(this.formatLanguageCode(e)),"languageOnly"!==this.options.load&&"currentOnly"!==this.options.load&&o(this.getScriptPartFromCode(e)),"currentOnly"!==this.options.load&&o(this.getLanguagePartFromCode(e))):"string"==typeof e&&o(this.formatLanguageCode(e)),r.forEach((function(e){i.indexOf(e)<0&&o(n.formatLanguageCode(e))})),i}}]),e}(),Vn=[{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","kk","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","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}],Qn={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)}},Hn=["v1","v2","v3"],zn={zero:0,one:1,two:2,few:3,many:4,other:5};function Wn(){var e={};return Vn.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Qn[t.fc]}}))})),e}var Zn=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};c(this,e),this.languageUtils=t,this.options=n,this.logger=hn.create("pluralResolver"),this.options.compatibilityJSON&&"v4"!==this.options.compatibilityJSON||"undefined"!=typeof Intl&&Intl.PluralRules||(this.options.compatibilityJSON="v3",this.logger.error("Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.")),this.rules=Wn()}return f(e,[{key:"addRule",value:function(e,t){this.rules[e]=t}},{key:"getRule",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.shouldUseIntlApi())try{return new Intl.PluralRules(e,{type:t.ordinal?"ordinal":"cardinal"})}catch(e){return}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:"needsPlural",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}},{key:"getPluralFormsOfKey",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.getSuffixes(e,n).map((function(e){return"".concat(t).concat(e)}))}},{key:"getSuffixes",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?r.resolvedOptions().pluralCategories.sort((function(e,t){return zn[e]-zn[t]})).map((function(e){return"".concat(t.options.prepend).concat(e)})):r.numbers.map((function(r){return t.getSuffix(e,r,n)})):[]}},{key:"getSuffix",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?"".concat(this.options.prepend).concat(r.select(t)):this.getSuffixRetroCompatible(r,t):(this.logger.warn("no plural rule found for: ".concat(e)),"")}},{key:"getSuffixRetroCompatible",value:function(e,t){var n=this,r=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),i=e.numbers[r];this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]&&(2===i?i="plural":1===i&&(i=""));var o=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()):o():"v2"===this.options.compatibilityJSON||this.options.simplifyPluralSuffix&&2===e.numbers.length&&1===e.numbers[0]?o():this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString()}},{key:"shouldUseIntlApi",value:function(){return!Hn.includes(this.options.compatibilityJSON)}}]),e}();function Kn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Kn(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Kn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var $n=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=hn.create("interpolator"),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return f(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:xn,this.escapeValue=void 0===t.escapeValue||t.escapeValue,this.useRawValueToEscape=void 0!==t.useRawValueToEscape&&t.useRawValueToEscape,this.prefix=t.prefix?On(t.prefix):t.prefixEscaped||"{{",this.suffix=t.suffix?On(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?On(t.nestingPrefix):t.nestingPrefixEscaped||On("$t("),this.nestingSuffix=t.nestingSuffix?On(t.nestingSuffix):t.nestingSuffixEscaped||On(")"),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 i,o,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 i=wn(t,u,e);return s.alwaysFormat?s.format(i,void 0,n,Gn(Gn(Gn({},r),t),{},{interpolationkey:e})):i}var o=e.split(s.formatSeparator),a=o.shift().trim(),c=o.join(s.formatSeparator).trim();return s.format(wn(t,u,a),c,n,Gn(Gn(Gn({},r),t),{},{interpolationkey:a}))};this.resetRegExp();var d=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,p=r&&r.interpolation&&void 0!==r.interpolation.skipOnVariables?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;i=t.regex.exec(e);){var n=i[1].trim();if(void 0===(o=l(n)))if("function"==typeof d){var u=d(e,i,r);o="string"==typeof u?u:""}else if(r&&r.hasOwnProperty(n))o="";else{if(p){o=i[0];continue}s.logger.warn("missed to pass in variable ".concat(n," for interpolating ").concat(e)),o=""}else"string"==typeof o||s.useRawValueToEscape||(o=mn(o));var c=t.safeValue(o);if(e=e.replace(i[0],c),p?(t.regex.lastIndex+=o.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,++a>=s.maxReplaces)break}})),e}},{key:"nest",value:function(e,t){var n,r,i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},a=Gn({},o);function s(e,t){var n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;var r=e.split(new RegExp("".concat(n,"[ ]*{"))),i="{".concat(r[1]);e=r[0];var o=(i=this.interpolate(i,a)).match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,'"'));try{a=JSON.parse(i),t&&(a=Gn(Gn({},t),a))}catch(t){return this.logger.warn("failed parsing options string in nesting for key ".concat(e),t),"".concat(e).concat(n).concat(i)}return delete a.defaultValue,e}for(a.applyPostProcessor=!1,delete a.defaultValue;n=this.nestingRegexp.exec(e);){var u=[],c=!1;if(-1!==n[0].indexOf(this.formatSeparator)&&!/{.*}/.test(n[1])){var l=n[1].split(this.formatSeparator).map((function(e){return e.trim()}));n[1]=l.shift(),u=l,c=!0}if((r=t(s.call(this,n[1].trim(),a),a))&&n[0]===e&&"string"!=typeof r)return r;"string"!=typeof r&&(r=mn(r)),r||(this.logger.warn("missed to resolve ".concat(n[1]," for nesting ").concat(e)),r=""),c&&(r=u.reduce((function(e,t){return i.format(e,t,o.lng,Gn(Gn({},o),{},{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}();function Jn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Yn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Jn(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Jn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Xn(e){var t={};return function(n,r,i){var o=r+JSON.stringify(i),a=t[o];return a||(a=e(r,i),t[o]=a),a(n)}}var er=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};c(this,e),this.logger=hn.create("formatter"),this.options=t,this.formats={number:Xn((function(e,t){var n=new Intl.NumberFormat(e,t);return function(e){return n.format(e)}})),currency:Xn((function(e,t){var n=new Intl.NumberFormat(e,Yn(Yn({},t),{},{style:"currency"}));return function(e){return n.format(e)}})),datetime:Xn((function(e,t){var n=new Intl.DateTimeFormat(e,Yn({},t));return function(e){return n.format(e)}})),relativetime:Xn((function(e,t){var n=new Intl.RelativeTimeFormat(e,Yn({},t));return function(e){return n.format(e,t.range||"day")}})),list:Xn((function(e,t){var n=new Intl.ListFormat(e,Yn({},t));return function(e){return n.format(e)}}))},this.init(t)}return f(e,[{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{interpolation:{}},n=t.interpolation;this.formatSeparator=n.formatSeparator?n.formatSeparator:n.formatSeparator||","}},{key:"add",value:function(e,t){this.formats[e.toLowerCase().trim()]=t}},{key:"addCached",value:function(e,t){this.formats[e.toLowerCase().trim()]=Xn(t)}},{key:"format",value:function(e,t,n,r){var i=this,o=t.split(this.formatSeparator).reduce((function(e,t){var o=function(e){var t=e.toLowerCase().trim(),n={};if(e.indexOf("(")>-1){var r=e.split("(");t=r[0].toLowerCase().trim();var i=r[1].substring(0,r[1].length-1);"currency"===t&&i.indexOf(":")<0?n.currency||(n.currency=i.trim()):"relativetime"===t&&i.indexOf(":")<0?n.range||(n.range=i.trim()):i.split(";").forEach((function(e){if(e){var t=cn(e.split(":")),r=t[0],i=t.slice(1).join(":").trim().replace(/^'+|'+$/g,"");n[r.trim()]||(n[r.trim()]=i),"false"===i&&(n[r.trim()]=!1),"true"===i&&(n[r.trim()]=!0),isNaN(i)||(n[r.trim()]=parseInt(i,10))}}))}return{formatName:t,formatOptions:n}}(t),a=o.formatName,s=o.formatOptions;if(i.formats[a]){var u=e;try{var c=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},l=c.locale||c.lng||r.locale||r.lng||n;u=i.formats[a](e,l,Yn(Yn(Yn({},s),r),c))}catch(e){i.logger.warn(e)}return u}return i.logger.warn("there was no format function for ".concat(a)),e}),e);return o}}]),e}();function tr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function nr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?tr(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function rr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=un(e);if(t){var i=un(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sn(this,n)}}var ir=function(e){an(n,e);var t=rr(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};return c(this,n),o=t.call(this),Sn&&vn.call(rn(o)),o.backend=e,o.store=r,o.services=i,o.languageUtils=i.languageUtils,o.options=a,o.logger=hn.create("backendConnector"),o.waitingReads=[],o.maxParallelReads=a.maxParallelReads||10,o.readingCalls=0,o.maxRetries=a.maxRetries>=0?a.maxRetries:5,o.retryTimeout=a.retryTimeout>=1?a.retryTimeout:350,o.state={},o.queue=[],o.backend&&o.backend.init&&o.backend.init(i,a.backend,a),o}return f(n,[{key:"queueLoad",value:function(e,t,n,r){var i=this,o={},a={},s={},u={};return e.forEach((function(e){var r=!0;t.forEach((function(t){var s="".concat(e,"|").concat(t);!n.reload&&i.store.hasResourceBundle(e,t)?i.state[s]=2:i.state[s]<0||(1===i.state[s]?void 0===a[s]&&(a[s]=!0):(i.state[s]=1,r=!1,void 0===a[s]&&(a[s]=!0),void 0===o[s]&&(o[s]=!0),void 0===u[t]&&(u[t]=!0)))})),r||(s[e]=!0)})),(Object.keys(o).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(o),pending:Object.keys(a),toLoadLanguages:Object.keys(s),toLoadNamespaces:Object.keys(u)}}},{key:"loaded",value:function(e,t,n){var r=e.split("|"),i=r[0],o=r[1];t&&this.emit("failedLoading",i,o,t),n&&this.store.addResourceBundle(i,o,n),this.state[e]=t?-1:2;var a={};this.queue.forEach((function(n){var r,s,u,c,l,d;r=n.loaded,s=o,c=bn(r,[i],Object),l=c.obj,d=c.k,l[d]=l[d]||[],u&&(l[d]=l[d].concat(s)),u||l[d].push(s),function(e,t){void 0!==e.pending[t]&&(delete e.pending[t],e.pendingCount--)}(n,e),t&&n.errors.push(t),0!==n.pendingCount||n.done||(Object.keys(n.loaded).forEach((function(e){a[e]||(a[e]={});var t=n.loaded[e];t.length&&t.forEach((function(t){void 0===a[e][t]&&(a[e][t]=!0)}))})),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,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;return e.length?this.readingCalls>=this.maxParallelReads?void this.waitingReads.push({lng:e,ns:t,fcName:n,tried:i,wait:o,callback:a}):(this.readingCalls++,this.backend[n](e,t,(function(s,u){if(r.readingCalls--,r.waitingReads.length>0){var c=r.waitingReads.shift();r.read(c.lng,c.ns,c.fcName,c.tried,c.wait,c.callback)}s&&u&&i<r.maxRetries?setTimeout((function(){r.read.call(r,e,t,n,i+1,2*o,a)}),o):a(s,u)}))):a(null,{})}},{key:"prepareLoading",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=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."),i&&i();"string"==typeof e&&(e=this.languageUtils.toResolveHierarchy(e)),"string"==typeof t&&(t=[t]);var o=this.queueLoad(e,t,r,i);if(!o.toLoad.length)return o.pending.length||i(),null;o.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("|"),i=r[0],o=r[1];this.read(i,o,"read",void 0,void 0,(function(r,a){r&&t.logger.warn("".concat(n,"loading namespace ").concat(o," for language ").concat(i," failed"),r),!r&&a&&t.logger.log("".concat(n,"loaded namespace ").concat(o," for language ").concat(i),a),t.loaded(e,r,a)}))}},{key:"saveMissing",value:function(e,t,n,r,i){var o=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,nr(nr({},o),{},{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),n}(vn);function or(){return{debug:!1,initImmediate:!0,ns:["translation"],defaultNS:["translation"],fallbackLng:["dev"],fallbackNS:!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"===l(e[1])&&(t=e[1]),"string"==typeof e[1]&&(t.defaultValue=e[1]),"string"==typeof e[2]&&(t.tDescription=e[2]),"object"===l(e[2])||"object"===l(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:!0}}}function ar(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.supportedLngs&&e.supportedLngs.indexOf("cimode")<0&&(e.supportedLngs=e.supportedLngs.concat(["cimode"])),e}function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ur(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cr(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,r=un(e);if(t){var i=un(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return sn(this,n)}}function lr(){}function dr(e){Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach((function(t){"function"==typeof e[t]&&(e[t]=e[t].bind(e))}))}var pr=function(e){an(n,e);var t=cr(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1?arguments[1]:void 0;if(c(this,n),e=t.call(this),Sn&&vn.call(rn(e)),e.options=ar(r),e.services={},e.logger=hn,e.modules={external:[]},dr(rn(e)),i&&!e.isInitialized&&!r.isClone){if(!e.options.initImmediate)return e.init(r,i),sn(e,rn(e));setTimeout((function(){e.init(r,i)}),0)}return e}return f(n,[{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"==typeof t&&(n=t,t={}),!t.defaultNS&&!1!==t.defaultNS&&t.ns&&("string"==typeof t.ns?t.defaultNS=t.ns:t.ns.indexOf("translation")<0&&(t.defaultNS=t.ns[0]));var r=or();function i(e){return e?"function"==typeof e?new e:e:null}if(this.options=ur(ur(ur({},r),this.options),ar(t)),"v1"!==this.options.compatibilityAPI&&(this.options.interpolation=ur(ur({},r.interpolation),this.options.interpolation)),void 0!==t.keySeparator&&(this.options.userDefinedKeySeparator=t.keySeparator),void 0!==t.nsSeparator&&(this.options.userDefinedNsSeparator=t.nsSeparator),!this.options.isClone){var o;this.modules.logger?hn.init(i(this.modules.logger),this.options):hn.init(null,this.options),this.modules.formatter?o=this.modules.formatter:"undefined"!=typeof Intl&&(o=er);var a=new qn(this.options);this.store=new Ln(this.options.resources,this.options);var s=this.services;s.logger=hn,s.resourceStore=this.store,s.languageUtils=a,s.pluralResolver=new Zn(a,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),!o||this.options.interpolation.format&&this.options.interpolation.format!==r.interpolation.format||(s.formatter=i(o),s.formatter.init(s,this.options),this.options.interpolation.format=s.formatter.format.bind(s.formatter)),s.interpolator=new $n(this.options),s.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},s.backendConnector=new ir(i(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),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.languageDetector&&(s.languageDetector=i(this.modules.languageDetector),s.languageDetector.init(s,this.options.detection,this.options)),this.modules.i18nFormat&&(s.i18nFormat=i(this.modules.i18nFormat),s.i18nFormat.init&&s.i18nFormat.init(this)),this.translator=new Bn(this.services,this.options),this.translator.on("*",(function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];e.emit.apply(e,[t].concat(r))})),this.modules.external.forEach((function(t){t.init&&t.init(e)}))}if(this.format=this.options.interpolation.format,n||(n=lr),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");var c=["getResource","hasResourceBundle","getResourceBundle","getDataByLanguage"];c.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments)}}));var l=["addResource","addResources","addResourceBundle","removeResourceBundle"];l.forEach((function(t){e[t]=function(){var n;return(n=e.store)[t].apply(n,arguments),e}}));var d=gn(),p=function(){var t=function(t,r){e.isInitialized&&!e.initializedStoreOnce&&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),d.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?p():setTimeout(p,0),d}},{key:"loadResources",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lr,r=n,i="string"==typeof e?e:this.language;if("function"==typeof e&&(r=e),!this.options.resources||this.options.partialBundledLanguages){if(i&&"cimode"===i.toLowerCase())return r();var o=[],a=function(e){e&&t.services.languageUtils.toResolveHierarchy(e).forEach((function(e){o.indexOf(e)<0&&o.push(e)}))};if(i)a(i);else{var s=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);s.forEach((function(e){return a(e)}))}this.options.preload&&this.options.preload.forEach((function(e){return a(e)})),this.services.backendConnector.load(o,this.options.ns,(function(e){e||t.resolvedLanguage||!t.language||t.setResolvedLanguage(t.language),r(e)}))}else r(null)}},{key:"reloadResources",value:function(e,t,n){var r=gn();return e||(e=this.languages),t||(t=this.options.ns),n||(n=lr),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&&Nn.addPostProcessor(e),"formatter"===e.type&&(this.modules.formatter=e),"3rdParty"===e.type&&this.modules.external.push(e),this}},{key:"setResolvedLanguage",value:function(e){if(e&&this.languages&&!(["cimode","dev"].indexOf(e)>-1))for(var t=0;t<this.languages.length;t++){var n=this.languages[t];if(!(["cimode","dev"].indexOf(n)>-1)&&this.store.hasLanguageSomeTranslations(n)){this.resolvedLanguage=n;break}}}},{key:"changeLanguage",value:function(e,t){var n=this;this.isLanguageChangingTo=e;var r=gn();this.emit("languageChanging",e);var i=function(e){n.language=e,n.languages=n.services.languageUtils.toResolveHierarchy(e),n.resolvedLanguage=void 0,n.setResolvedLanguage(e)},o=function(o){e||o||!n.services.languageDetector||(o=[]);var a="string"==typeof o?o:n.services.languageUtils.getBestMatchFromCodes(o);a&&(n.language||i(a),n.translator.language||n.translator.changeLanguage(a),n.services.languageDetector&&n.services.languageDetector.cacheUserLanguage(a)),n.loadResources(a,(function(e){!function(e,o){o?(i(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,a)}))};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,n){var r=this,i=function e(t,i){var o;if("object"!==l(i)){for(var a=arguments.length,s=new Array(a>2?a-2:0),u=2;u<a;u++)s[u-2]=arguments[u];o=r.options.overloadTranslationOptionHandler([t,i].concat(s))}else o=ur({},i);o.lng=o.lng||e.lng,o.lngs=o.lngs||e.lngs,o.ns=o.ns||e.ns,o.keyPrefix=o.keyPrefix||n||e.keyPrefix;var c=r.options.keySeparator||".",d=o.keyPrefix?"".concat(o.keyPrefix).concat(c).concat(t):t;return r.t(d,o)};return"string"==typeof e?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}},{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.resolvedLanguage||this.languages[0],i=!!this.options&&this.options.fallbackLng,o=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&&(!this.options.resources||this.options.partialBundledLanguages))||!(!a(r,e)||i&&!a(o,e)))}},{key:"loadNamespaces",value:function(e,t){var n=this,r=gn();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=gn();"string"==typeof e&&(e=[e]);var r=this.options.preload||[],i=e.filter((function(e){return r.indexOf(e)<0}));return i.length?(this.options.preload=r.concat(i),this.loadResources((function(e){n.resolve(),t&&t(e)})),n):(t&&t(),Promise.resolve())}},{key:"dir",value:function(e){if(e||(e=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language)),!e)return"rtl";return["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","ckb"].indexOf(this.services.languageUtils.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf("-arab")>1?"rtl":"ltr"}},{key:"cloneInstance",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lr,i=ur(ur(ur({},this.options),t),{isClone:!0}),o=new n(i);void 0===t.debug&&void 0===t.prefix||(o.logger=o.logger.clone(t));var a=["store","services","language"];return a.forEach((function(t){o[t]=e[t]})),o.services=ur({},this.services),o.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o.translator=new Bn(o.services,o.options),o.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];o.emit.apply(o,[e].concat(n))})),o.init(i,r),o.translator.options=o.options,o.translator.backendConnector.services.utils={hasLoadedNamespace:o.hasLoadedNamespace.bind(o)},o}},{key:"toJSON",value:function(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}}]),n}(vn);h(pr,"createInstance",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;return new pr(e,t)}));var fr=pr.createInstance();fr.createInstance=pr.createInstance;fr.createInstance,fr.init,fr.loadResources,fr.reloadResources,fr.use,fr.changeLanguage,fr.getFixedT,fr.t,fr.exists,fr.setDefaultNamespace,fr.hasLoadedNamespace,fr.loadNamespaces,fr.loadLanguages;const hr=fr;var vr,gr,mr={en:{translation:JSON.parse('{"modalHeader":"Embed on website","mediaNotice":"Will use your account’s default player","tooltipText":"Currently using the Brightcove Default Player. Player management coming soon.","tooltipTextNew":"Players determine the video playback experience such as styling, special configuration settings, and more.","tooltipLink":"Learn more about players","learnmore":"https://studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Preview","player":"Player","getURL":"Get URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copy the HTML code and paste it on your website.","helperTextWarning":"This player is configured with the Campaign plugin. To ensure proper tracking, the JavaScript embed code should be used."},"done":"Done","close":"Close","toasterTitle":"Success.","toasterMessage":"Code copied to clipboard","toasterGetURLSuccess":"URL copied to the clipboard","toasterErrorMessage":"Error while copying text to clipboard","toasterGetURLError":"URL cannot be generated","customPluginNotice":"Due to custom configurations, you may not be experiencing the full preview.","noPlayerModalHeader":"Create an Interactivity Player","noPlayerModalContent1":"To embed an Interactivity Project you must enable the interactivity feature.","noPlayerModalContent2":"Activate this feature on any existing player or create a new one.","toPlayersModuleLink":"Go to the Players module","cancel":"Cancel","createPlayerNow":"Create Player Now","createPlayerFailedTitle":"Failed to create the Interactivity-enabled Player.","createPlayerFailedMessage":"Please try again.","activateModal":"No Interactivity-enabled players","activateModalContent1":"An Interactivity-enabled player is required to embed a project. Currently, this account has no Interactivity-enabled players. To create one, use the ","activateModalContent2":"Players module"}')},es:{translation:JSON.parse('{"modalHeader":"Incrustar en sitio web","mediaNotice":"Utilizará el reproductor predeterminado de su cuenta","tooltipText":"Actualmente se está utilizando el reproductor predeterminado de Brightcove. La gestión de reproductores estará disponible próximamente.","tooltipTextNew":"Los reproductores determinan la experiencia del usuario a la hora de reproducir vídeos por medio de ajustes como el estilo del reproductor, ajustes de configuración especiales y otros.","tooltipLink":"Más información sobre reproductores","learnmore":"https://es.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Vista previa","player":"Reproductor","getURL":"Obtener URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copie el código HTML y péguelo en su sitio web.","helperTextWarning":"Este reproductor está configurado con el complemento Campaign. Para garantizar un seguimiento adecuado, debe utilizarse el código de incrustación JavaScript."},"toasterTitle":"Operación realizada correctamente.","toasterMessage":"Código copiado al portapapeles","toasterGetURLSuccess":"URL copiada al portapapeles","toasterGetURLError":"No es posible generar la URL","toasterErrorMessage":"Se ha producido un error al copiar el texto al portapapeles.","customPluginNotice":"Puede ocurrir que las configuraciones personalizadas impidan la previsualización completa.","done":"Hecho","close":"Cerrar","noPlayerModalHeader":"Crear un reproductor de interactividad","noPlayerModalContent1":"Para poder incrustar un proyecto de interactividad, primero hay que activar la función de interactividad.","noPlayerModalContent2":"Active esta función en cualquier reproductor existente o cree uno nuevo.","toPlayersModuleLink":"Ir al módulo Players","cancel":"Cancelar","createPlayerNow":"Crear reproductor ahora","createPlayerFailedTitle":"No ha sido posible crear el reproductor con la interactividad activada.","createPlayerFailedMessage":"Vuelva a intentarlo.","activateModal":"No hay ningún reproductor con la interactividad activada","activateModalContent1":"Para poder incrustar proyectos, se precisa un reproductor con la interactividad activada. En este momento, esta cuenta no tiene reproductores con la interactividad activada. Para crear uno, utilice el ","activateModalContent2":"Módulo Players"}')},fr:{translation:JSON.parse('{"modalHeader":"Intégration à un site Internet","mediaNotice":"Ceci utilisera le lecteur par défaut de votre compte","tooltipText":"Utilise actuellement le lecteur Brightcove par défaut. La fonctionnalité de gestion des lecteurs sera bientôt disponible.","tooltipTextNew":"Les joueurs choisissent l\'expérience de lecture vidéo comme l\'apparence, les paramètres de configuration spéciaux, et plus.","tooltipLink":"En savoir plus sur les lecteurs","learnmore":"https://fr.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"Aperçu","player":"Player","getURL":"Obtenir l\'URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"Copiez le code HTML et collez-le dans votre site Internet.","helperTextWarning":"Ce joueur est configuré avec le plug-in Campaign. Pour garantir un suivi adéquat, le code incorporé JavaScript doit être utilisé."},"toasterTitle":"Réussite.","toasterMessage":"Code copié dans le presse-papiers","toasterGetURLSuccess":"URL copiée dans le presse-papiers","toasterGetURLError":"Impossible de générer l\'URL","toasterErrorMessage":"Erreur lors de la copie du texte dans le presse-papiers","customPluginNotice":"En raison des configurations personnalisées, vous pourriez ne pas pouvoir visualiser l\'aperçu plein écran.","done":"Terminé","close":"Fermer","noPlayerModalHeader":"Créer un lecteur d’interactivité","noPlayerModalContent1":"Pour intégrer un projet d’interactivité vous devez activer la fonction d’interactivité.","noPlayerModalContent2":"Activez cette fonction sur un lecteur existant ou créez-en un nouveau.","toPlayersModuleLink":"Accéder au module Lecteurs","cancel":"Annuler","createPlayerNow":"Créer un lecteur maintenant","createPlayerFailedTitle":"Impossible de créer le lecteur compatible à l’interactivité.","createPlayerFailedMessage":"Veuillez réessayer.","activateModal":"Aucun lecteur compatible à l’interactivité.","activateModalContent1":"Un lecteur compatible à l’interactivité est obligatoire pour intégrer un projet. Actuellement, ce compte ne contient aucun lecteur compatible à l’interactivité. Pour en créer un, utilisez le ","activateModalContent2":"module Lecteurs"}')},ja:{translation:JSON.parse('{"modalHeader":"Webサイトに埋め込み","mediaNotice":"アカウントのデフォルトのプレーヤーを使用します","tooltipText":"現在、Brightcoveのデフォルトのプレーヤーを使用しています。プレーヤー管理が、間もなく公開されます。","tooltipTextNew":"プレーヤーは、スタイル指定や特別な設定など、動画再生体験を決定します。","tooltipLink":"プレーヤーについての詳細","learnmore":"https://ja.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"プレビュー","player":"プレーヤー","getURL":"URLを取得する","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTMLコードをコピーし、お客様のWebサイトに貼り付けてください。","helperTextWarning":"このプレーヤーは、キャンペーンプラグインを使って構成されています。適切にトラッキングするには、 JavaScript埋め込みコードを使用してください。"},"toasterTitle":"成功。","toasterMessage":"コードをクリップボードにコピーしました","toasterGetURLSuccess":"URLをクリップボードにコピーしました","toasterGetURLError":"URLを生成できません","toasterErrorMessage":"テキストをクリップボードにコピー中にエラーが発生しました","customPluginNotice":"カスタム設定により、プレビューが完全でない場合があります。","done":"完了","close":"閉じる","noPlayerModalHeader":"インタラクティブプレーヤーの作成","noPlayerModalContent1":"インタラクティブプロジェクトを埋め込むには、インタラクティブ機能を有効にする必要があります。","noPlayerModalContent2":"既存のプレーヤーでこの機能をアクティブ化するか、新しいプレーヤーを作成してください。","toPlayersModuleLink":"Playersモジュールに移動します","cancel":"キャンセル","createPlayerNow":"今すぐプレーヤーを作成","createPlayerFailedTitle":"インタラクティブ機能対応プレーヤーの作成に失敗しました。","createPlayerFailedMessage":"もう一度お試しください。","activateModal":"インタラクティブ機能対応プレーヤーがありません","activateModalContent1":"プロジェクトを埋め込むには、インタラクティブ機能対応プレーヤーが必要です。現在、このアカウントには、インタラクティブ機能対応プレーヤーがありません。作成するには ","activateModalContent2":"Playersモジュールを使用します"}')},ko:{translation:JSON.parse('{"modalHeader":"웹사이트에 임베드","mediaNotice":"계정의 기본 플레이어를 사용합니다","tooltipText":"현재 Brightcove 기본 플레이어 사용 중입니다. 플레이어 관리가 곧 출시됩니다.","tooltipTextNew":"플레이어는 스타일 지정, 특수 구성 설정 등 비디오 재생 경험을 결정합니다.","tooltipLink":"플레이어에 대해 자세히 알아보기","learnmore":"https://ko.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"미리 보기","player":"플레이어","getURL":"URL 받기","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"HTML 코드를 복사하여 웹사이트에 붙여넣으십시오.","helperTextWarning":"이 플레이어는 캠페인 플러그인과 함께 구성됩니다. 바르게 추적되게 하려면, JavaScript 내장 코드를 사용해야 합니다."},"toasterTitle":"성공.","toasterMessage":"클립보드에 코드가 복사됨","toasterGetURLSuccess":"URL이 클립보드에 복사됨","toasterGetURLError":"URL 생성 불가","toasterErrorMessage":"클립보드에 텍스트를 복사하는 중 오류 발생","customPluginNotice":"사용자 정의 구성으로 인해 전체 미리 보기를 이용하지 못할 수도 있습니다.","done":"완료","close":"닫기","noPlayerModalHeader":"상호작용성 플레이어 생성","noPlayerModalContent1":"상호작용성 프로젝트를 임베딩하려면 상호작용성 기능을 활성화해야 합니다.","noPlayerModalContent2":"기존 플레이어에서 이 기능을 활성화하거나 새 플레이어를 생성하십시오.","toPlayersModuleLink":"플레이어 모듈로 이동","cancel":"취소","createPlayerNow":"지금 플레이어 생성","createPlayerFailedTitle":"상호작용성 지원 플레이어를 생성하지 못했습니다.","createPlayerFailedMessage":"다시 시도해 주십시오.","activateModal":"상호작용성 지원 플레이어가 없음","activateModalContent1":"프로젝트를 임베딩하려면 상호작용성 지원 플레이어가 필요합니다. 현재 이 계정에는 상호작용성 지원 플레이어가 없습니다. 다음을 사용해 새 플레이어 생성 ","activateModalContent2":"플레이어 모듈"}')},zh:{translation:JSON.parse('{"modalHeader":"內嵌到網站","mediaNotice":"會使用您帳戶的預設播放程式","tooltipText":"目前使用 Brightcove 預設播放程式。播放程式管理功能即將推出。","tooltipTextNew":"播放器決定視訊播放體驗,例如樣式風格、特別組態設定等。","tooltipLink":"瞭解關於播放程式的更多資訊","learnmore":"https://zh-tw.studio.support.brightcove.com/players/getting-started-players-module.html","previewButton":"預覽","player":"播放程式","getURL":"取得 URL","tabs":{"labels":{"iframe":"iFrame","javascript":"JavaScript"},"helperText":"複製 HTML 程式碼並貼到您的網站上。","helperTextWarning":"此播放程式設定有活動外掛程式。為了確保正確追蹤,應使用 JavaScript 內嵌程式碼。"},"toasterTitle":"成功.","toasterMessage":"程式碼已複製到剪貼簿","toasterGetURLSuccess":"URL 已複製到剪貼簿","toasterGetURLError":"無法產生 URL","toasterErrorMessage":"複製文字到剪貼簿時發生錯誤","customPluginNotice":"由於自訂組態,您可能無法體驗完整預覽版。","done":"完成","close":"關閉","noPlayerModalHeader":"建立互動播放程式","noPlayerModalContent1":"若要嵌入互動專案,您必須啟用互動功能。","noPlayerModalContent2":"在任何現有播放程式上啟動此功能或建立新項目。","toPlayersModuleLink":"前往播放程式模組","cancel":"取消","createPlayerNow":"立即建立播放程式","createPlayerFailedTitle":"無法建立已啟用互動功能的播放程式。","createPlayerFailedMessage":"請再試一次。","activateModal":"沒有已啟用互動功能的播放程式","activateModalContent1":"需要有已啟用互動功能的播放程式才能嵌入專案。目前,此帳戶沒有已啟用互動功能的播放程式。若要建立一個,請使用 ","activateModalContent2":"播放程式模組"}')}};hr.use(x).init({lng:(null===(vr=window.StudioModule)||void 0===vr||null===(gr=vr.config)||void 0===gr?void 0:gr.lang)||"en",fallbackLng:"en",debug:!0,returnObjects:!0,resources:mr,interpolation:{escapeValue:!1}});const yr=hr;(0,I.initialize)({theme:"blueSteel"});var br=new j.QueryClient;const Cr=function(e){var t=e.data,n=e.language,r=e.embedCodeModalType,o=i((0,s.useState)(0),2),a=o[0],c=o[1],l=i((0,s.useState)(!1),2),d=l[0],p=l[1];(0,s.useEffect)((function(){yr.changeLanguage(n||window.StudioModule.config.lang)}),[n]);return t?u().createElement(j.QueryClientProvider,{client:br},u().createElement(S,{i18n:yr},u().createElement(zt,{key:a,handleSetComponentKey:function(){c(a+1)},data:t,language:n,embedCodeModalType:r,handleSetHasCreatedPlayer:function(e){return p(e)},hasCreatedPlayer:d}))):null}})(),a})()));
|