File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/367.deb97bbff4ea7c49.js
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[367],{367:(ke,se,S)=>{S.d(se,{t:()=>kt});var i=S(73308),x=S(67719),Y=S(85985);function oe(r,t){var e=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);t&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(r,o).enumerable})),e.push.apply(e,n)}return e}function Q(r){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(e),!0).forEach(function(n){D(r,n,e[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(e)):oe(Object(e)).forEach(function(n){Object.defineProperty(r,n,Object.getOwnPropertyDescriptor(e,n))})}return r}function L(){L=function(){return r};var r={},t=Object.prototype,e=t.hasOwnProperty,n=Object.defineProperty||function(d,l,m){d[l]=m.value},o="function"==typeof Symbol?Symbol:{},s=o.iterator||"@@iterator",u=o.asyncIterator||"@@asyncIterator",f=o.toStringTag||"@@toStringTag";function p(d,l,m){return Object.defineProperty(d,l,{value:m,enumerable:!0,configurable:!0,writable:!0}),d[l]}try{p({},"")}catch{p=function(l,m,E){return l[m]=E}}function c(d,l,m,E){var A=Object.create((l&&l.prototype instanceof I?l:I).prototype),B=new K(E||[]);return n(A,"_invoke",{value:w(d,m,B)}),A}function k(d,l,m){try{return{type:"normal",arg:d.call(l,m)}}catch(E){return{type:"throw",arg:E}}}r.wrap=c;var C={};function I(){}function P(){}function _(){}var W={};p(W,s,function(){return this});var z=Object.getPrototypeOf,J=z&&z(z(ne([])));J&&J!==t&&e.call(J,s)&&(W=J);var g=_.prototype=I.prototype=Object.create(W);function h(d){["next","throw","return"].forEach(function(l){p(d,l,function(m){return this._invoke(l,m)})})}function v(d,l){function m(y,A,B,H){var Z=k(d[y],d,A);if("throw"!==Z.type){var pe=Z.arg,ye=pe.value;return ye&&"object"==typeof ye&&e.call(ye,"__await")?l.resolve(ye.__await).then(function(fe){m("next",fe,B,H)},function(fe){m("throw",fe,B,H)}):l.resolve(ye).then(function(fe){pe.value=fe,B(pe)},function(fe){return m("throw",fe,B,H)})}H(Z.arg)}var E;n(this,"_invoke",{value:function(y,A){function B(){return new l(function(H,Z){m(y,A,H,Z)})}return E=E?E.then(B,B):B()}})}function w(d,l,m){var E="suspendedStart";return function(y,A){if("executing"===E)throw new Error("Generator is already running");if("completed"===E){if("throw"===y)throw A;return{value:void 0,done:!0}}for(m.method=y,m.arg=A;;){var B=m.delegate;if(B){var H=R(B,m);if(H){if(H===C)continue;return H}}if("next"===m.method)m.sent=m._sent=m.arg;else if("throw"===m.method){if("suspendedStart"===E)throw E="completed",m.arg;m.dispatchException(m.arg)}else"return"===m.method&&m.abrupt("return",m.arg);E="executing";var Z=k(d,l,m);if("normal"===Z.type){if(E=m.done?"completed":"suspendedYield",Z.arg===C)continue;return{value:Z.arg,done:m.done}}"throw"===Z.type&&(E="completed",m.method="throw",m.arg=Z.arg)}}}function R(d,l){var m=l.method,E=d.iterator[m];if(void 0===E)return l.delegate=null,"throw"===m&&d.iterator.return&&(l.method="return",l.arg=void 0,R(d,l),"throw"===l.method)||"return"!==m&&(l.method="throw",l.arg=new TypeError("The iterator does not provide a '"+m+"' method")),C;var y=k(E,d.iterator,l.arg);if("throw"===y.type)return l.method="throw",l.arg=y.arg,l.delegate=null,C;var A=y.arg;return A?A.done?(l[d.resultName]=A.value,l.next=d.nextLoc,"return"!==l.method&&(l.method="next",l.arg=void 0),l.delegate=null,C):A:(l.method="throw",l.arg=new TypeError("iterator result is not an object"),l.delegate=null,C)}function $(d){var l={tryLoc:d[0]};1 in d&&(l.catchLoc=d[1]),2 in d&&(l.finallyLoc=d[2],l.afterLoc=d[3]),this.tryEntries.push(l)}function b(d){var l=d.completion||{};l.type="normal",delete l.arg,d.completion=l}function K(d){this.tryEntries=[{tryLoc:"root"}],d.forEach($,this),this.reset(!0)}function ne(d){if(d){var l=d[s];if(l)return l.call(d);if("function"==typeof d.next)return d;if(!isNaN(d.length)){var m=-1,E=function y(){for(;++m<d.length;)if(e.call(d,m))return y.value=d[m],y.done=!1,y;return y.value=void 0,y.done=!0,y};return E.next=E}}return{next:Ie}}function Ie(){return{value:void 0,done:!0}}return P.prototype=_,n(g,"constructor",{value:_,configurable:!0}),n(_,"constructor",{value:P,configurable:!0}),P.displayName=p(_,f,"GeneratorFunction"),r.isGeneratorFunction=function(d){var l="function"==typeof d&&d.constructor;return!!l&&(l===P||"GeneratorFunction"===(l.displayName||l.name))},r.mark=function(d){return Object.setPrototypeOf?Object.setPrototypeOf(d,_):(d.__proto__=_,p(d,f,"GeneratorFunction")),d.prototype=Object.create(g),d},r.awrap=function(d){return{__await:d}},h(v.prototype),p(v.prototype,u,function(){return this}),r.AsyncIterator=v,r.async=function(d,l,m,E,y){void 0===y&&(y=Promise);var A=new v(c(d,l,m,E),y);return r.isGeneratorFunction(l)?A:A.next().then(function(B){return B.done?B.value:A.next()})},h(g),p(g,f,"Generator"),p(g,s,function(){return this}),p(g,"toString",function(){return"[object Generator]"}),r.keys=function(d){var l=Object(d),m=[];for(var E in l)m.push(E);return m.reverse(),function y(){for(;m.length;){var A=m.pop();if(A in l)return y.value=A,y.done=!1,y}return y.done=!0,y}},r.values=ne,K.prototype={constructor:K,reset:function(d){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(b),!d)for(var l in this)"t"===l.charAt(0)&&e.call(this,l)&&!isNaN(+l.slice(1))&&(this[l]=void 0)},stop:function(){this.done=!0;var d=this.tryEntries[0].completion;if("throw"===d.type)throw d.arg;return this.rval},dispatchException:function(d){if(this.done)throw d;var l=this;function m(Z,pe){return A.type="throw",A.arg=d,l.next=Z,pe&&(l.method="next",l.arg=void 0),!!pe}for(var E=this.tryEntries.length-1;E>=0;--E){var y=this.tryEntries[E],A=y.completion;if("root"===y.tryLoc)return m("end");if(y.tryLoc<=this.prev){var B=e.call(y,"catchLoc"),H=e.call(y,"finallyLoc");if(B&&H){if(this.prev<y.catchLoc)return m(y.catchLoc,!0);if(this.prev<y.finallyLoc)return m(y.finallyLoc)}else if(B){if(this.prev<y.catchLoc)return m(y.catchLoc,!0)}else{if(!H)throw new Error("try statement without catch or finally");if(this.prev<y.finallyLoc)return m(y.finallyLoc)}}}},abrupt:function(d,l){for(var m=this.tryEntries.length-1;m>=0;--m){var E=this.tryEntries[m];if(E.tryLoc<=this.prev&&e.call(E,"finallyLoc")&&this.prev<E.finallyLoc){var y=E;break}}y&&("break"===d||"continue"===d)&&y.tryLoc<=l&&l<=y.finallyLoc&&(y=null);var A=y?y.completion:{};return A.type=d,A.arg=l,y?(this.method="next",this.next=y.finallyLoc,C):this.complete(A)},complete:function(d,l){if("throw"===d.type)throw d.arg;return"break"===d.type||"continue"===d.type?this.next=d.arg:"return"===d.type?(this.rval=this.arg=d.arg,this.method="return",this.next="end"):"normal"===d.type&&l&&(this.next=l),C},finish:function(d){for(var l=this.tryEntries.length-1;l>=0;--l){var m=this.tryEntries[l];if(m.finallyLoc===d)return this.complete(m.completion,m.afterLoc),b(m),C}},catch:function(d){for(var l=this.tryEntries.length-1;l>=0;--l){var m=this.tryEntries[l];if(m.tryLoc===d){var E=m.completion;if("throw"===E.type){var y=E.arg;b(m)}return y}}throw new Error("illegal catch attempt")},delegateYield:function(d,l,m){return this.delegate={iterator:ne(d),resultName:l,nextLoc:m},"next"===this.method&&(this.arg=void 0),C}},r}function ee(r,t,e,n,o,s,u){try{var f=r[s](u),p=f.value}catch(c){return void e(c)}f.done?t(p):Promise.resolve(p).then(n,o)}function M(r){return function(){var t=this,e=arguments;return new Promise(function(n,o){var s=r.apply(t,e);function u(p){ee(s,n,o,u,f,"next",p)}function f(p){ee(s,n,o,u,f,"throw",p)}u(void 0)})}}function F(r,t){if(!(r instanceof t))throw new TypeError("Cannot call a class as a function")}function X(r,t){for(var e=0;e<t.length;e++){var n=t[e];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(r,Re(n.key),n)}}function V(r,t,e){return t&&X(r.prototype,t),e&&X(r,e),Object.defineProperty(r,"prototype",{writable:!1}),r}function D(r,t,e){return(t=Re(t))in r?Object.defineProperty(r,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):r[t]=e,r}function N(r){return(N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)})(r)}function ie(r,t){return(ie=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n})(r,t)}function be(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function G(r,t,e){return(G=be()?Reflect.construct.bind():function(o,s,u){var f=[null];f.push.apply(f,s);var c=new(Function.bind.apply(o,f));return u&&ie(c,u.prototype),c}).apply(null,arguments)}function T(r){var t="function"==typeof Map?new Map:void 0;return T=function(n){if(null===n||!function ue(r){return-1!==Function.toString.call(r).indexOf("[native code]")}(n))return n;if("function"!=typeof n)throw new TypeError("Super expression must either be null or a function");if(typeof t<"u"){if(t.has(n))return t.get(n);t.set(n,o)}function o(){return G(n,arguments,N(this).constructor)}return o.prototype=Object.create(n.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),ie(o,n)},T(r)}function j(r){if(void 0===r)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function Re(r){var t=function he(r,t){if("object"!=typeof r||null===r)return r;var e=r[Symbol.toPrimitive];if(void 0!==e){var n=e.call(r,t||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}(r,"string");return"symbol"==typeof t?t:String(t)}var Oe=typeof global<"u"&&"[object global]"==={}.toString.call(global);function Se(r,t){return 0===r.indexOf(t.toLowerCase())?r:"".concat(t.toLowerCase()).concat(r.substr(0,1).toUpperCase()).concat(r.substr(1))}function ce(r){return/^(https?:)?\/\/((((player|www)\.)?vimeo\.com)|((player\.)?[a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))(?=$|\/)/.test(r)}function Me(r){return/^https:\/\/player\.((vimeo\.com)|([a-zA-Z0-9-]+\.(videoji\.(hk|cn)|vimeo\.work)))\/video\/\d+/.test(r)}function je(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=r.id,n=t||r.url;if(!n)throw new Error("An id or url must be passed, either in an options object or as a data-vimeo-id or data-vimeo-url attribute.");if(function Ge(r){return!isNaN(parseFloat(r))&&isFinite(r)&&Math.floor(r)==r}(n))return"https://vimeo.com/".concat(n);if(ce(n))return n.replace("http:","https:");throw t?new TypeError("\u201c".concat(t,"\u201d is not a valid video id.")):new TypeError("\u201c".concat(n,"\u201d is not a vimeo.com url."))}var Fe=function(t,e,n){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"addEventListener",s=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"removeEventListener",u="string"==typeof e?[e]:e;return u.forEach(function(f){t[o](f,n)}),{cancel:function(){return u.forEach(function(p){return t[s](p,n)})}}},$e=typeof window<"u"&&typeof window.postMessage<"u";if(!(Oe||typeof Array.prototype.indexOf<"u"&&$e))throw new Error("Sorry, the Vimeo Player API is not available in this browser.");var de=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};!function(r){if(!r.WeakMap){var t=Object.prototype.hasOwnProperty,e=Object.defineProperty&&function(){try{return 1===Object.defineProperty({},"x",{value:1}).x}catch{}}(),n=function(s,u,f){e?Object.defineProperty(s,u,{configurable:!0,writable:!0,value:f}):s[u]=f};r.WeakMap=function(){function s(){if(void 0===this)throw new TypeError("Constructor WeakMap requires 'new'");if(n(this,"_id",function f(c){return c+"_"+p()+"."+p()}("_WeakMap")),arguments.length>0)throw new TypeError("WeakMap iterable is not supported")}function u(c,k){if(!o(c)||!t.call(c,"_id"))throw new TypeError(k+" method called on incompatible receiver "+typeof c)}function p(){return Math.random().toString().substring(2)}return n(s.prototype,"delete",function(c){if(u(this,"delete"),!o(c))return!1;var k=c[this._id];return!(!k||k[0]!==c||(delete c[this._id],0))}),n(s.prototype,"get",function(c){if(u(this,"get"),o(c)){var k=c[this._id];if(k&&k[0]===c)return k[1]}}),n(s.prototype,"has",function(c){if(u(this,"has"),!o(c))return!1;var k=c[this._id];return!(!k||k[0]!==c)}),n(s.prototype,"set",function(c,k){if(u(this,"set"),!o(c))throw new TypeError("Invalid value used as weak map key");var C=c[this._id];return C&&C[0]===c?(C[1]=k,this):(n(c,this._id,[c,k]),this)}),n(s,"_polyfill",!0),s}()}function o(s){return Object(s)===s}}(typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:de);var te=function Ve(r,t){return r(t={exports:{}},t.exports),t.exports}(function(r){var e,n;(n=de)[e="Promise"]=n[e]||function(){var e,n,o,s=Object.prototype.toString,u=typeof setImmediate<"u"?function(h){return setImmediate(h)}:setTimeout;try{Object.defineProperty({},"x",{}),e=function(h,v,w,R){return Object.defineProperty(h,v,{value:w,writable:!0,configurable:!1!==R})}}catch{e=function(v,w,R){return v[w]=R,v}}function f(g,h){o.add(g,h),n||(n=u(o.drain))}function p(g){var h,v=typeof g;return null!=g&&("object"==v||"function"==v)&&(h=g.then),"function"==typeof h&&h}function c(){for(var g=0;g<this.chain.length;g++)k(this,1===this.state?this.chain[g].success:this.chain[g].failure,this.chain[g]);this.chain.length=0}function k(g,h,v){var w,R;try{!1===h?v.reject(g.msg):(w=!0===h?g.msg:h.call(void 0,g.msg))===v.promise?v.reject(TypeError("Promise-chain cycle")):(R=p(w))?R.call(w,v.resolve,v.reject):v.resolve(w)}catch($){v.reject($)}}function C(g){var h,v=this;if(!v.triggered){v.triggered=!0,v.def&&(v=v.def);try{(h=p(g))?f(function(){var w=new _(v);try{h.call(g,function(){C.apply(w,arguments)},function(){I.apply(w,arguments)})}catch(R){I.call(w,R)}}):(v.msg=g,v.state=1,v.chain.length>0&&f(c,v))}catch(w){I.call(new _(v),w)}}}function I(g){var h=this;h.triggered||(h.triggered=!0,h.def&&(h=h.def),h.msg=g,h.state=2,h.chain.length>0&&f(c,h))}function P(g,h,v,w){for(var R=0;R<h.length;R++)!function(b){g.resolve(h[b]).then(function(ne){v(b,ne)},w)}(R)}function _(g){this.def=g,this.triggered=!1}function W(g){this.promise=g,this.state=0,this.triggered=!1,this.chain=[],this.msg=void 0}function z(g){if("function"!=typeof g)throw TypeError("Not a function");if(0!==this.__NPO__)throw TypeError("Not a promise");this.__NPO__=1;var h=new W(this);this.then=function(w,R){var $={success:"function"!=typeof w||w,failure:"function"==typeof R&&R};return $.promise=new this.constructor(function(K,ne){if("function"!=typeof K||"function"!=typeof ne)throw TypeError("Not a function");$.resolve=K,$.reject=ne}),h.chain.push($),0!==h.state&&f(c,h),$.promise},this.catch=function(w){return this.then(void 0,w)};try{g.call(void 0,function(w){C.call(h,w)},function(w){I.call(h,w)})}catch(v){I.call(h,v)}}o=function(){var h,v,w;function R($,b){this.fn=$,this.self=b,this.next=void 0}return{add:function(b,K){w=new R(b,K),v?v.next=w:h=w,v=w,w=void 0},drain:function(){var b=h;for(h=v=n=void 0;b;)b.fn.call(b.self),b=b.next}}}();var J=e({},"constructor",z,!1);return z.prototype=J,e(J,"__NPO__",0,!1),e(z,"resolve",function(h){return h&&"object"==typeof h&&1===h.__NPO__?h:new this(function(R,$){if("function"!=typeof R||"function"!=typeof $)throw TypeError("Not a function");R(h)})}),e(z,"reject",function(h){return new this(function(w,R){if("function"!=typeof w||"function"!=typeof R)throw TypeError("Not a function");R(h)})}),e(z,"all",function(h){var v=this;return"[object Array]"!=s.call(h)?v.reject(TypeError("Not an array")):0===h.length?v.resolve([]):new v(function(R,$){if("function"!=typeof R||"function"!=typeof $)throw TypeError("Not a function");var b=h.length,K=Array(b),ne=0;P(v,h,function(d,l){K[d]=l,++ne===b&&R(K)},$)})}),e(z,"race",function(h){var v=this;return"[object Array]"!=s.call(h)?v.reject(TypeError("Not an array")):new v(function(R,$){if("function"!=typeof R||"function"!=typeof $)throw TypeError("Not a function");P(v,h,function(K,ne){R(ne)},$)})}),z}(),r.exports&&(r.exports=n[e])}),ae=new WeakMap;function ve(r,t,e){var n=ae.get(r.element)||{};t in n||(n[t]=[]),n[t].push(e),ae.set(r.element,n)}function _e(r,t){return(ae.get(r.element)||{})[t]||[]}function we(r,t,e){var n=ae.get(r.element)||{};if(!n[t])return!0;if(!e)return n[t]=[],ae.set(r.element,n),!0;var o=n[t].indexOf(e);return-1!==o&&n[t].splice(o,1),ae.set(r.element,n),n[t]&&0===n[t].length}function Ce(r){if("string"==typeof r)try{r=JSON.parse(r)}catch(t){return console.warn(t),{}}return r}function le(r,t,e){if(r.element.contentWindow&&r.element.contentWindow.postMessage){var n={method:t};void 0!==e&&(n.value=e);var o=parseFloat(navigator.userAgent.toLowerCase().replace(/^.*msie (\d+).*$/,"$1"));o>=8&&o<10&&(n=JSON.stringify(n)),r.element.contentWindow.postMessage(n,r.origin)}}var ze=["airplay","audio_tracks","audiotrack","autopause","autoplay","background","byline","cc","chapter_id","chapters","chromecast","color","colors","controls","dnt","end_time","fullscreen","height","id","interactive_params","keyboard","loop","maxheight","maxwidth","muted","play_button_position","playsinline","portrait","progress_bar","quality_selector","responsive","speed","start_time","texttrack","title","transcript","transparent","unmute_button","url","vimeo_logo","volume","watch_full_video","width"];function Ne(r){return ze.reduce(function(e,n){var o=r.getAttribute("data-vimeo-".concat(n));return(o||""===o)&&(e[n]=""===o?1:o),e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}function Pe(r,t){var e=r.html;if(!t)throw new TypeError("An element must be provided");if(null!==t.getAttribute("data-vimeo-initialized"))return t.querySelector("iframe");var n=document.createElement("div");return n.innerHTML=e,t.appendChild(n.firstChild),t.setAttribute("data-vimeo-initialized","true"),t.querySelector("iframe")}function Ae(r){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=arguments.length>2?arguments[2]:void 0;return new Promise(function(n,o){if(!ce(r))throw new TypeError("\u201c".concat(r,"\u201d is not a vimeo.com url."));var s=function Le(r){for(var t=(r||"").match(/^(?:https?:)?(?:\/\/)?([^/?]+)/),e=(t&&t[1]||"").replace("player.",""),o=0,s=[".videoji.hk",".vimeo.work",".videoji.cn"];o<s.length;o++)if(e.endsWith(s[o]))return e;return"vimeo.com"}(r),u="https://".concat(s,"/api/oembed.json?url=").concat(encodeURIComponent(r));for(var f in t)t.hasOwnProperty(f)&&(u+="&".concat(f,"=").concat(encodeURIComponent(t[f])));var p="XDomainRequest"in window?new XDomainRequest:new XMLHttpRequest;p.open("GET",u,!0),p.onload=function(){if(404!==p.status)if(403!==p.status)try{var c=JSON.parse(p.responseText);if(403===c.domain_status_code)return Pe(c,e),void o(new Error("\u201c".concat(r,"\u201d is not embeddable.")));n(c)}catch(k){o(k)}else o(new Error("\u201c".concat(r,"\u201d is not embeddable.")));else o(new Error("\u201c".concat(r,"\u201d was not found.")))},p.onerror=function(){var c=p.status?" (".concat(p.status,")"):"";o(new Error("There was an error fetching the embed code from Vimeo".concat(c,".")))},p.send()})}var Ke={role:"viewer",autoPlayMuted:!0,allowedDrift:.3,maxAllowedDrift:1,minCheckInterval:.1,maxRateAdjustment:.2,maxTimeToCatchUp:1},He=function(r){!function re(r,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");r.prototype=Object.create(t&&t.prototype,{constructor:{value:r,writable:!0,configurable:!0}}),Object.defineProperty(r,"prototype",{writable:!1}),t&&ie(r,t)}(e,r);var n,t=function U(r){var t=be();return function(){var o,n=N(r);if(t){var s=N(this).constructor;o=Reflect.construct(n,arguments,s)}else o=n.apply(this,arguments);return function O(r,t){if(t&&("object"==typeof t||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return j(r)}(this,o)}}(e);function e(n,o){var s,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},f=arguments.length>3?arguments[3]:void 0;return F(this,e),D(j(s=t.call(this)),"logger",void 0),D(j(s),"speedAdjustment",0),D(j(s),"adjustSpeed",function(){var p=M(L().mark(function c(k,C){var I;return L().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:if(s.speedAdjustment!==C){_.next=2;break}return _.abrupt("return");case 2:return _.next=4,k.getPlaybackRate();case 4:return _.t0=_.sent,_.t1=s.speedAdjustment,_.t2=_.t0-_.t1,_.t3=C,s.log("New playbackRate: ".concat(I=_.t2+_.t3)),_.next=12,k.setPlaybackRate(I);case 12:s.speedAdjustment=C;case 13:case"end":return _.stop()}},c)}));return function(c,k){return p.apply(this,arguments)}}()),s.logger=f,s.init(o,n,Q(Q({},Ke),u)),s}return V(e,[{key:"disconnect",value:function(){this.dispatchEvent(new Event("disconnect"))}},{key:"init",value:(n=M(L().mark(function s(u,f,p){var k,C,I,c=this;return L().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return _.next=2,this.waitForTOReadyState(u,"open");case 2:if("viewer"!==p.role){_.next=10;break}return _.next=5,this.updatePlayer(u,f,p);case 5:k=Fe(u,"change",function(){return c.updatePlayer(u,f,p)}),C=this.maintainPlaybackPosition(u,f,p),this.addEventListener("disconnect",function(){C.cancel(),k.cancel()}),_.next=14;break;case 10:return _.next=12,this.updateTimingObject(u,f);case 12:I=Fe(f,["seeked","play","pause","ratechange"],function(){return c.updateTimingObject(u,f)},"on","off"),this.addEventListener("disconnect",function(){return I.cancel()});case 14:case"end":return _.stop()}},s,this)})),function o(s,u,f){return n.apply(this,arguments)})},{key:"updateTimingObject",value:function(){var n=M(L().mark(function s(u,f){return L().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:return c.t0=u,c.next=3,f.getCurrentTime();case 3:return c.t1=c.sent,c.next=6,f.getPaused();case 6:if(!c.sent){c.next=10;break}c.t2=0,c.next=13;break;case 10:return c.next=12,f.getPlaybackRate();case 12:c.t2=c.sent;case 13:c.t3=c.t2,c.t4={position:c.t1,velocity:c.t3},c.t0.update.call(c.t0,c.t4);case 16:case"end":return c.stop()}},s)}));return function o(s,u){return n.apply(this,arguments)}}()},{key:"updatePlayer",value:function(){var n=M(L().mark(function s(u,f,p){var c,k,C;return L().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(c=u.query(),C=c.velocity,"number"==typeof(k=c.position)&&f.setCurrentTime(k),"number"!=typeof C){P.next=25;break}if(0!==C){P.next=11;break}return P.next=6,f.getPaused();case 6:if(P.t0=P.sent,!1!==P.t0){P.next=9;break}f.pause();case 9:P.next=25;break;case 11:if(!(C>0)){P.next=25;break}return P.next=14,f.getPaused();case 14:if(P.t1=P.sent,!0!==P.t1){P.next=19;break}return P.next=18,f.play().catch(function(){var _=M(L().mark(function W(z){return L().wrap(function(g){for(;;)switch(g.prev=g.next){case 0:if("NotAllowedError"!==z.name||!p.autoPlayMuted){g.next=5;break}return g.next=3,f.setMuted(!0);case 3:return g.next=5,f.play().catch(function(h){return console.error("Couldn't play the video from TimingSrcConnector. Error:",h)});case 5:case"end":return g.stop()}},W)}));return function(W){return _.apply(this,arguments)}}());case 18:this.updatePlayer(u,f,p);case 19:return P.next=21,f.getPlaybackRate();case 21:if(P.t2=P.sent,P.t3=C,P.t2===P.t3){P.next=25;break}f.setPlaybackRate(C);case 25:case"end":return P.stop()}},s,this)}));return function o(s,u,f){return n.apply(this,arguments)}}()},{key:"maintainPlaybackPosition",value:function(o,s,u){var f=this,p=u.allowedDrift,c=u.maxAllowedDrift,C=u.maxRateAdjustment,I=u.maxTimeToCatchUp,P=1e3*Math.min(I,Math.max(u.minCheckInterval,c)),_=function(){var z=M(L().mark(function J(){var g,h,v,w,R;return L().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(b.t0=0===o.query().velocity,b.t0){b.next=6;break}return b.next=4,s.getPaused();case 4:b.t1=b.sent,b.t0=!0===b.t1;case 6:if(!b.t0){b.next=8;break}return b.abrupt("return");case 8:return b.t2=o.query().position,b.next=11,s.getCurrentTime();case 11:if(b.t3=b.sent,g=b.t2-b.t3,h=Math.abs(g),f.log("Drift: ".concat(g)),!(h>c)){b.next=22;break}return b.next=18,f.adjustSpeed(s,0);case 18:s.setCurrentTime(o.query().position),f.log("Resync by currentTime"),b.next=29;break;case 22:if(!(h>p)){b.next=29;break}return R=(v=h/I)<(w=C)?(w-v)/2:w,b.next=28,f.adjustSpeed(s,R*Math.sign(g));case 28:f.log("Resync by playbackRate");case 29:case"end":return b.stop()}},J)}));return function(){return z.apply(this,arguments)}}(),W=setInterval(function(){return _()},P);return{cancel:function(){return clearInterval(W)}}}},{key:"log",value:function(o){var s;null===(s=this.logger)||void 0===s||s.call(this,"TimingSrcConnector: ".concat(o))}},{key:"waitForTOReadyState",value:function(o,s){return new Promise(function(u){!function p(){o.readyState===s?u():o.addEventListener("readystatechange",p,{once:!0})}()})}}]),e}(T(EventTarget)),me=new WeakMap,Ee=new WeakMap,q={},Te=function(){function r(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(F(this,r),window.jQuery&&t instanceof jQuery&&(t.length>1&&window.console&&console.warn&&console.warn("A jQuery object with multiple elements was passed, using the first element."),t=t[0]),typeof document<"u"&&"string"==typeof t&&(t=document.getElementById(t)),!function xe(r){return!!(r&&1===r.nodeType&&"nodeName"in r&&r.ownerDocument&&r.ownerDocument.defaultView)}(t))throw new TypeError("You must pass either a valid element or a valid id.");if("IFRAME"!==t.nodeName){var o=t.querySelector("iframe");o&&(t=o)}if("IFRAME"===t.nodeName&&!ce(t.getAttribute("src")||""))throw new Error("The player element passed isn\u2019t a Vimeo embed.");if(me.has(t))return me.get(t);this._window=t.ownerDocument.defaultView,this.element=t,this.origin="*";var s=new te(function(f,p){if(e._onMessage=function(C){if(ce(C.origin)&&e.element.contentWindow===C.source){"*"===e.origin&&(e.origin=C.origin);var I=Ce(C.data);if(I&&"error"===I.event&&I.data&&"ready"===I.data.method){var W=new Error(I.data.message);return W.name=I.data.name,void p(W)}if(I&&"ready"===I.event||I&&"ping"===I.method)return e.element.setAttribute("data-ready","true"),void f();!function Xe(r,t){var n,e=[];if((t=Ce(t)).event)"error"===t.event&&_e(r,t.data.method).forEach(function(u){var f=new Error(t.data.message);f.name=t.data.name,u.reject(f),we(r,t.data.method,u)}),e=_e(r,"event:".concat(t.event)),n=t.data;else if(t.method){var s=function Ue(r,t){var e=_e(r,t);if(e.length<1)return!1;var n=e.shift();return we(r,t,n),n}(r,t.method);s&&(e.push(s),n=t.value)}e.forEach(function(u){try{if("function"==typeof u)return void u.call(r,n);u.resolve(n)}catch{}})}(e,I)}},e._window.addEventListener("message",e._onMessage),"IFRAME"!==e.element.nodeName){var c=Ne(t,n);Ae(je(c),c,t).then(function(C){var I=Pe(C,t);return e.element=I,e._originalElement=t,function Be(r,t){var e=ae.get(r);ae.set(t,e),ae.delete(r)}(t,I),me.set(e.element,e),C}).catch(p)}});if(Ee.set(this,s),me.set(this.element,this),"IFRAME"===this.element.nodeName&&le(this,"ping"),q.isEnabled){var u=function(){return q.exit()};this.fullscreenchangeHandler=function(){q.isFullscreen?ve(e,"event:exitFullscreen",u):we(e,"event:exitFullscreen",u),e.ready().then(function(){le(e,"fullscreenchange",q.isFullscreen)})},q.on("fullscreenchange",this.fullscreenchangeHandler)}return this}return V(r,[{key:"callMethod",value:function(e){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new te(function(s,u){return n.ready().then(function(){ve(n,e,{resolve:s,reject:u}),le(n,e,o)}).catch(u)})}},{key:"get",value:function(e){var n=this;return new te(function(o,s){return e=Se(e,"get"),n.ready().then(function(){ve(n,e,{resolve:o,reject:s}),le(n,e)}).catch(s)})}},{key:"set",value:function(e,n){var o=this;return new te(function(s,u){if(e=Se(e,"set"),null==n)throw new TypeError("There must be a value to set.");return o.ready().then(function(){ve(o,e,{resolve:s,reject:u}),le(o,e,n)}).catch(u)})}},{key:"on",value:function(e,n){if(!e)throw new TypeError("You must pass an event name.");if(!n)throw new TypeError("You must pass a callback function.");if("function"!=typeof n)throw new TypeError("The callback must be a function.");0===_e(this,"event:".concat(e)).length&&this.callMethod("addEventListener",e).catch(function(){}),ve(this,"event:".concat(e),n)}},{key:"off",value:function(e,n){if(!e)throw new TypeError("You must pass an event name.");if(n&&"function"!=typeof n)throw new TypeError("The callback must be a function.");we(this,"event:".concat(e),n)&&this.callMethod("removeEventListener",e).catch(function(s){})}},{key:"loadVideo",value:function(e){return this.callMethod("loadVideo",e)}},{key:"ready",value:function(){var e=Ee.get(this)||new te(function(n,o){o(new Error("Unknown player. Probably unloaded."))});return te.resolve(e)}},{key:"addCuePoint",value:function(e){return this.callMethod("addCuePoint",{time:e,data:arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}})}},{key:"removeCuePoint",value:function(e){return this.callMethod("removeCuePoint",e)}},{key:"enableTextTrack",value:function(e,n){if(!e)throw new TypeError("You must pass a language.");return this.callMethod("enableTextTrack",{language:e,kind:n})}},{key:"disableTextTrack",value:function(){return this.callMethod("disableTextTrack")}},{key:"pause",value:function(){return this.callMethod("pause")}},{key:"play",value:function(){return this.callMethod("play")}},{key:"requestFullscreen",value:function(){return q.isEnabled?q.request(this.element):this.callMethod("requestFullscreen")}},{key:"exitFullscreen",value:function(){return q.isEnabled?q.exit():this.callMethod("exitFullscreen")}},{key:"getFullscreen",value:function(){return q.isEnabled?te.resolve(q.isFullscreen):this.get("fullscreen")}},{key:"requestPictureInPicture",value:function(){return this.callMethod("requestPictureInPicture")}},{key:"exitPictureInPicture",value:function(){return this.callMethod("exitPictureInPicture")}},{key:"getPictureInPicture",value:function(){return this.get("pictureInPicture")}},{key:"remotePlaybackPrompt",value:function(){return this.callMethod("remotePlaybackPrompt")}},{key:"unload",value:function(){return this.callMethod("unload")}},{key:"destroy",value:function(){var e=this;return new te(function(n){if(Ee.delete(e),me.delete(e.element),e._originalElement&&(me.delete(e._originalElement),e._originalElement.removeAttribute("data-vimeo-initialized")),e.element&&"IFRAME"===e.element.nodeName&&e.element.parentNode&&(e.element.parentNode.parentNode&&e._originalElement&&e._originalElement!==e.element.parentNode?e.element.parentNode.parentNode.removeChild(e.element.parentNode):e.element.parentNode.removeChild(e.element)),e.element&&"DIV"===e.element.nodeName&&e.element.parentNode){e.element.removeAttribute("data-vimeo-initialized");var o=e.element.querySelector("iframe");o&&o.parentNode&&(o.parentNode.parentNode&&e._originalElement&&e._originalElement!==o.parentNode?o.parentNode.parentNode.removeChild(o.parentNode):o.parentNode.removeChild(o))}e._window.removeEventListener("message",e._onMessage),q.isEnabled&&q.off("fullscreenchange",e.fullscreenchangeHandler),n()})}},{key:"getAutopause",value:function(){return this.get("autopause")}},{key:"setAutopause",value:function(e){return this.set("autopause",e)}},{key:"getBuffered",value:function(){return this.get("buffered")}},{key:"getCameraProps",value:function(){return this.get("cameraProps")}},{key:"setCameraProps",value:function(e){return this.set("cameraProps",e)}},{key:"getChapters",value:function(){return this.get("chapters")}},{key:"getCurrentChapter",value:function(){return this.get("currentChapter")}},{key:"getColor",value:function(){return this.get("color")}},{key:"getColors",value:function(){return te.all([this.get("colorOne"),this.get("colorTwo"),this.get("colorThree"),this.get("colorFour")])}},{key:"setColor",value:function(e){return this.set("color",e)}},{key:"setColors",value:function(e){if(!Array.isArray(e))return new te(function(s,u){return u(new TypeError("Argument must be an array."))});var n=new te(function(s){return s(null)}),o=[e[0]?this.set("colorOne",e[0]):n,e[1]?this.set("colorTwo",e[1]):n,e[2]?this.set("colorThree",e[2]):n,e[3]?this.set("colorFour",e[3]):n];return te.all(o)}},{key:"getCuePoints",value:function(){return this.get("cuePoints")}},{key:"getCurrentTime",value:function(){return this.get("currentTime")}},{key:"setCurrentTime",value:function(e){return this.set("currentTime",e)}},{key:"getDuration",value:function(){return this.get("duration")}},{key:"getEnded",value:function(){return this.get("ended")}},{key:"getLoop",value:function(){return this.get("loop")}},{key:"setLoop",value:function(e){return this.set("loop",e)}},{key:"setMuted",value:function(e){return this.set("muted",e)}},{key:"getMuted",value:function(){return this.get("muted")}},{key:"getPaused",value:function(){return this.get("paused")}},{key:"getPlaybackRate",value:function(){return this.get("playbackRate")}},{key:"setPlaybackRate",value:function(e){return this.set("playbackRate",e)}},{key:"getPlayed",value:function(){return this.get("played")}},{key:"getQualities",value:function(){return this.get("qualities")}},{key:"getQuality",value:function(){return this.get("quality")}},{key:"setQuality",value:function(e){return this.set("quality",e)}},{key:"getRemotePlaybackAvailability",value:function(){return this.get("remotePlaybackAvailability")}},{key:"getRemotePlaybackState",value:function(){return this.get("remotePlaybackState")}},{key:"getSeekable",value:function(){return this.get("seekable")}},{key:"getSeeking",value:function(){return this.get("seeking")}},{key:"getTextTracks",value:function(){return this.get("textTracks")}},{key:"getVideoEmbedCode",value:function(){return this.get("videoEmbedCode")}},{key:"getVideoId",value:function(){return this.get("videoId")}},{key:"getVideoTitle",value:function(){return this.get("videoTitle")}},{key:"getVideoWidth",value:function(){return this.get("videoWidth")}},{key:"getVideoHeight",value:function(){return this.get("videoHeight")}},{key:"getVideoUrl",value:function(){return this.get("videoUrl")}},{key:"getVolume",value:function(){return this.get("volume")}},{key:"setVolume",value:function(e){return this.set("volume",e)}},{key:"setTimingSrc",value:(t=M(L().mark(function n(o,s){var f,u=this;return L().wrap(function(c){for(;;)switch(c.prev=c.next){case 0:if(o){c.next=2;break}throw new TypeError("A Timing Object must be provided.");case 2:return c.next=4,this.ready();case 4:return f=new He(this,o,s),le(this,"notifyTimingObjectConnect"),f.addEventListener("disconnect",function(){return le(u,"notifyTimingObjectDisconnect")}),c.abrupt("return",f);case 8:case"end":return c.stop()}},n,this)})),function e(n,o){return t.apply(this,arguments)})}]),r;var t}();Oe||(q=function Je(){var r=function(){for(var n,o=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],s=0,u=o.length,f={};s<u;s++)if((n=o[s])&&n[1]in document){for(s=0;s<n.length;s++)f[o[0][s]]=n[s];return f}return!1}(),t={fullscreenchange:r.fullscreenchange,fullscreenerror:r.fullscreenerror},e={request:function(o){return new Promise(function(s,u){var f=function c(){e.off("fullscreenchange",c),s()};e.on("fullscreenchange",f);var p=(o=o||document.documentElement)[r.requestFullscreen]();p instanceof Promise&&p.then(f).catch(u)})},exit:function(){return new Promise(function(o,s){if(e.isFullscreen){var u=function p(){e.off("fullscreenchange",p),o()};e.on("fullscreenchange",u);var f=document[r.exitFullscreen]();f instanceof Promise&&f.then(u).catch(s)}else o()})},on:function(o,s){var u=t[o];u&&document.addEventListener(u,s)},off:function(o,s){var u=t[o];u&&document.removeEventListener(u,s)}};return Object.defineProperties(e,{isFullscreen:{get:function(){return!!document[r.fullscreenElement]}},element:{enumerable:!0,get:function(){return document[r.fullscreenElement]}},isEnabled:{enumerable:!0,get:function(){return!!document[r.fullscreenEnabled]}}}),e}(),function We(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document,t=[].slice.call(r.querySelectorAll("[data-vimeo-id], [data-vimeo-url]")),e=function(o){"console"in window&&console.error&&console.error("There was an error creating an embed: ".concat(o))};t.forEach(function(n){try{if(null!==n.getAttribute("data-vimeo-defer"))return;var o=Ne(n);Ae(je(o),o,n).then(function(u){return Pe(u,n)}).catch(e)}catch(u){e(u)}})}(),function Ye(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoPlayerResizeEmbeds_||(window.VimeoPlayerResizeEmbeds_=!0,window.addEventListener("message",function(n){if(ce(n.origin)&&n.data&&"spacechange"===n.data.event)for(var o=r.querySelectorAll("iframe"),s=0;s<o.length;s++)if(o[s].contentWindow===n.source){o[s].parentElement.style.paddingBottom="".concat(n.data.data[0].bottom,"px");break}}))}(),function qe(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;window.VimeoSeoMetadataAppended||(window.VimeoSeoMetadataAppended=!0,window.addEventListener("message",function(n){if(ce(n.origin)){var o=Ce(n.data);if(o&&"ready"===o.event)for(var s=r.querySelectorAll("iframe"),u=0;u<s.length;u++){var f=s[u],p=f.contentWindow===n.source;Me(f.src)&&p&&new Te(f).callMethod("appendVideoMetadata",window.location.href)}}}))}(),function Qe(){var r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:document;if(!window.VimeoCheckedUrlTimeParam){window.VimeoCheckedUrlTimeParam=!0;var t=function(o){"console"in window&&console.error&&console.error("There was an error getting video Id: ".concat(o))};window.addEventListener("message",function(o){if(ce(o.origin)){var s=Ce(o.data);if(s&&"ready"===s.event)for(var u=r.querySelectorAll("iframe"),f=function(){var k=u[p],C=k.contentWindow===o.source;if(Me(k.src)&&C){var I=new Te(k);I.getVideoId().then(function(P){var _=new RegExp("[?&]vimeo_t_".concat(P,"=([^&#]*)")).exec(window.location.href);if(_&&_[1]){var W=decodeURI(_[1]);I.setCurrentTime(W)}}).catch(t)}},p=0;p<u.length;p++)f()}})}}());const Ze=Te;var et=S(45312),a=S(2978),tt=S(57291),nt=S(77299),ge=S(77897),rt=S(76098),it=S(54171),ot=S(83254),at=S(56610);const st=["vimeoPlayer"],ut=["videoPlayer"],ct=["videoIframe"];function lt(r,t){if(1&r&&a.nrm(0,"img",10),2&r){const e=a.XpG(2);a.FS9("src",e.publicationContent.link,a.B4B)}}function ft(r,t){if(1&r){const e=a.RV6();a.j41(0,"video",12,13),a.bIt("loadedmetadata",function(){a.eBV(e);const o=a.XpG(3);return a.Njj(o.onVideoLoaded())}),a.k0s()}if(2&r){const e=a.XpG(3);a.FS9("src",e.publicationContent.link,a.B4B)}}function dt(r,t){if(1&r&&(a.j41(0,"div"),a.nrm(1,"div",14)(2,"iframe",15,16),a.k0s()),2&r){const e=a.XpG(3);a.R7$(2),a.Y8G("src",e.publicationContent.sanitizerLink,a.f$h)}}function mt(r,t){1&r&&(a.j41(0,"div"),a.nrm(1,"div",14)(2,"div",null,17),a.k0s())}function pt(r,t){if(1&r&&(a.j41(0,"div"),a.DNE(1,ft,2,1,"video",11),a.DNE(2,dt,4,1,"div",4),a.DNE(3,mt,4,0,"div",4),a.k0s()),2&r){const e=a.XpG(2);a.R7$(1),a.Y8G("ngIf",e.publicationContent.link.includes("sportscrowd")),a.R7$(1),a.Y8G("ngIf",!e.publicationContent.link.includes("sportscrowd")&&!e.publicationContent.link.includes("vimeo")),a.R7$(1),a.Y8G("ngIf",e.publicationContent.link.includes("vimeo"))}}function ht(r,t){if(1&r&&(a.j41(0,"div"),a.nrm(1,"img",19)(2,"audio",20),a.k0s()),2&r){const e=a.XpG(3);a.R7$(2),a.FS9("src",e.publicationContent.link,a.B4B)}}function vt(r,t){if(1&r&&a.nrm(0,"iframe",21),2&r){const e=a.XpG(3);a.Y8G("src",e.publicationContent.sanitizerLink,a.f$h)}}function gt(r,t){if(1&r&&(a.j41(0,"div"),a.DNE(1,ht,3,1,"div",4),a.DNE(2,vt,1,1,"iframe",18),a.k0s()),2&r){const e=a.XpG(2);a.R7$(1),a.Y8G("ngIf",e.publicationContent.link.includes("sportscrowd")),a.R7$(1),a.Y8G("ngIf",!e.publicationContent.link.includes("sportscrowd"))}}function yt(r,t){if(1&r){const e=a.RV6();a.j41(0,"div")(1,"div",22),a.bIt("click",function(){a.eBV(e);const o=a.XpG(2);return a.Njj(o.openNew(o.publicationContent))}),a.k0s(),a.nrm(2,"iframe",23),a.k0s()}if(2&r){const e=a.XpG(2);a.R7$(2),a.Y8G("src",e.publicationContent.sanitizerLink,a.f$h)}}function bt(r,t){if(1&r){const e=a.RV6();a.j41(0,"div")(1,"ion-icon",24),a.bIt("click",function(){a.eBV(e);const o=a.XpG(2);return a.Njj(o.setReaction("like",o.publicationContent))}),a.k0s(),a.j41(2,"span",25),a.EFF(3),a.k0s()()}if(2&r){const e=a.XpG(2);a.R7$(1),a.Y8G("src",e.getUserReactionIcon(e.publicationContent.reactions)),a.R7$(2),a.JRh(e.publicationContent.count_reaction)}}function _t(r,t){if(1&r){const e=a.RV6();a.j41(0,"div",26)(1,"ion-icon",27),a.bIt("click",function(){a.eBV(e);const o=a.XpG(2);return a.Njj(o.openComments(o.publicationContent.id))}),a.k0s(),a.j41(2,"span",25),a.EFF(3),a.k0s()()}if(2&r){const e=a.XpG(2);a.R7$(3),a.JRh(e.publicationContent.count_comment)}}function wt(r,t){if(1&r&&(a.j41(0,"div",28)(1,"span",29),a.EFF(2),a.k0s(),a.j41(3,"span",30),a.EFF(4),a.k0s()()),2&r){const e=a.XpG(2);a.R7$(2),a.JRh("admin"==e.publication.publisher_type?e.appName:""),a.R7$(2),a.JRh(e.publication.name)}}function Ct(r,t){if(1&r&&(a.j41(0,"ion-card",1)(1,"ion-card-content",2),a.DNE(2,lt,1,1,"img",3),a.DNE(3,pt,4,3,"div",4),a.DNE(4,gt,3,2,"div",4),a.DNE(5,yt,3,1,"div",4),a.j41(6,"div",5)(7,"div",6),a.DNE(8,bt,4,2,"div",4),a.DNE(9,_t,4,1,"div",7),a.k0s(),a.j41(10,"div",8),a.EFF(11),a.k0s()(),a.DNE(12,wt,5,2,"div",9),a.k0s()()),2&r){const e=a.XpG();a.R7$(2),a.Y8G("ngIf","photo"==e.publication.type),a.R7$(1),a.Y8G("ngIf","video"==e.publication.type),a.R7$(1),a.Y8G("ngIf","podcast"==e.publication.type),a.R7$(1),a.Y8G("ngIf","news"==e.publication.type),a.R7$(3),a.Y8G("ngIf",1==e.publication.likes_enabled&&e.infoUser),a.R7$(1),a.Y8G("ngIf",1==e.publication.comments_enabled),a.R7$(2),a.SpI(" ",e.utilsService.timeSince(e.publicationContent.created_at,!0)," "),a.R7$(1),a.Y8G("ngIf",e.publication)}}let kt=(()=>{class r{constructor(e,n,o,s,u,f,p,c){this.storage=e,this.publicationClubService=n,this.modalCtrl=o,this.routerOutlet=s,this.dom=u,this.utilsService=f,this.elementRef=p,this.analyticsService=c,this.appName=et.c.appName}ngOnInit(){this.getUserInfo()}ngAfterViewInit(){setTimeout(()=>{new IntersectionObserver(n=>{n.forEach(o=>{o.isIntersecting?this.analyticsService.logEvent("publication_content_view_"+this.publicationContent.id,"club_content_card","view",this.publicationContent.id):this.videoPlayer&&this.videoPlayer.nativeElement.pause()})}).observe(this.elementRef.nativeElement.querySelector("#contentCard"))},500)}ngOnChanges(e){e.publicationContent&&e.publicationContent.currentValue&&(this.publicationContent.link.includes("vimeo")&&setTimeout(()=>{this.vimeoPlayer=new Ze(this.vimeoPlayerElement.nativeElement,{width:this.vimeoPlayerElement.nativeElement.offsetWidth,url:this.publicationContent.link})},500),this.publicationContent.sanitizerLink||(this.publicationContent.sanitizerLink=this.sanitizer(this.publicationContent.link))),e.timeScroll&&e.timeScroll.currentValue&&(this.videoPlayer&&this.videoPlayer.nativeElement.pause(),this.videoIframe&&(this.videoIframe.nativeElement.src=this.videoIframe.nativeElement.src),this.vimeoPlayer&&this.vimeoPlayer.pause())}getUserInfo(){this.storage.get("infoUser").then(e=>{this.infoUser=e})}getUserReaction(e){return e.filter(n=>n.user_id==this.infoUser.id)}getUserReactionIcon(e){let n=this.getUserReaction(e);return this.getIcon(n.length>0?n[0].reaction:null)}getIcon(e){return"like"===e?"/assets/img/icons/like-filled.svg":"/assets/img/icons/like.svg"}setReaction(e,n){if(0==this.getUserReaction(n.reactions).length){let s={reaction:e,publication_content_id:n.id};this.publicationContent.reactions.push({reaction:"like",user_id:this.infoUser.id}),this.publicationContent.reactions.push({reaction:"like",user_id:this.infoUser.id}),this.publicationContent.count_reaction+=1,this.publicationClubService.setReaction(s)}else{let s=this;this.publicationContent.reactions=this.publicationContent.reactions.filter(function(u){return u.user_id!==s.infoUser.id}),this.publicationContent.count_reaction-=1,this.publicationClubService.deleteReaction(n.id)}}openComments(e){var n=this;return(0,i.A)(function*(){yield(yield n.modalCtrl.create({component:Y.P,componentProps:{contentId:e},swipeToClose:!0,presentingElement:yield n.modalCtrl.getTop(),showBackdrop:!0,mode:"ios",backdropDismiss:!0,cssClass:"custom-sheet-modal"})).present()})()}sanitizer(e){return this.dom.bypassSecurityTrustResourceUrl(e)}openNew(e){var n=this;return(0,i.A)(function*(){yield(yield n.modalCtrl.create({component:x.M,swipeToClose:!0,presentingElement:n.routerOutlet.nativeEl,componentProps:{newInfo:e}})).present()})()}onVideoLoaded(){setTimeout(()=>{this.videoPlayer.nativeElement.pause(),this.videoPlayer.nativeElement.removeAttribute("autoplay")},200)}static#e=this.\u0275fac=function(n){return new(n||r)(a.rXU(tt.n),a.rXU(nt.i),a.rXU(ge.W3),a.rXU(ge.Rg),a.rXU(rt.up),a.rXU(it.T),a.rXU(a.aKT),a.rXU(ot.c))};static#t=this.\u0275cmp=a.VBU({type:r,selectors:[["app-card-publication-content"]],viewQuery:function(n,o){if(1&n&&(a.GBs(st,5),a.GBs(ut,5),a.GBs(ct,5)),2&n){let s;a.mGM(s=a.lsd())&&(o.vimeoPlayerElement=s.first),a.mGM(s=a.lsd())&&(o.videoPlayer=s.first),a.mGM(s=a.lsd())&&(o.videoIframe=s.first)}},inputs:{publication:"publication",publicationContent:"publicationContent",timeScroll:"timeScroll"},features:[a.OA$],decls:1,vars:1,consts:[["class","ion-no-margin ion-margin-bottom","id","contentCard",4,"ngIf"],["id","contentCard",1,"ion-no-margin","ion-margin-bottom"],[1,"ion-no-padding",2,"z-index","9999","overflow","hidden"],["class","sectionImage",3,"src",4,"ngIf"],[4,"ngIf"],[2,"display","flex","align-items","center","margin","10px","justify-content","space-between"],[2,"display","flex"],["style","margin-left: 10vw;",4,"ngIf"],[1,"ion-text-end","commentActions","ion-margin-end"],["style","display: flex; align-items: center; margin: 10px;",4,"ngIf"],[1,"sectionImage",3,"src"],["id","videoPlayer","controls","","class","sectionImage","controlsList","nodownload","webkit-playsinline","","playsinline","","autoplay","","loop","",3,"src","loadedmetadata",4,"ngIf"],["id","videoPlayer","controls","","controlsList","nodownload","webkit-playsinline","","playsinline","","autoplay","","loop","",1,"sectionImage",3,"src","loadedmetadata"],["videoPlayer",""],[2,"background-color","transparent","width","100%","height","160px","position","absolute"],["width","100%","height","240","frameborder","0","allowfullscreen","",3,"src"],["videoIframe",""],["vimeoPlayer",""],["seamless","seamless","scrolling","false","frameborder","0","allowtransparency","true","allowfullscreen","","class","sectionImage","style","height: 12vh;",3,"src",4,"ngIf"],["src","https://fanaticadas.s3.amazonaws.com/sportscrowd/alq/fan_engagement/podcast/podcast-programas.jpg"],["controls","",1,"sectionImage",2,"position","absolute","transform","translate(-100%, -50%)","margin-top","50%",3,"src"],["seamless","seamless","scrolling","false","frameborder","0","allowtransparency","true","allowfullscreen","",1,"sectionImage",2,"height","12vh",3,"src"],[2,"background-color","transparent","width","100%","height","50vh","position","absolute",3,"click"],["seamless","seamless","scrolling","false","frameborder","0","allowtransparency","true","allowfullscreen","",1,"sectionImage",2,"height","50vh",3,"src"],[1,"medium-size",3,"src","click"],[1,"large-text"],[2,"margin-left","10vw"],["name","chatbubble-ellipses-outline",1,"medium-size",3,"click"],[2,"display","flex","align-items","center","margin","10px"],[2,"font-weight","bold","color","black"],[2,"margin-left","3vw"]],template:function(n,o){1&n&&a.DNE(0,Ct,13,8,"ion-card",0),2&n&&a.Y8G("ngIf",o.publicationContent)},dependencies:[at.bT,ge.b_,ge.I9,ge.iq],styles:[".sectionImage[_ngcontent-%COMP%]{width:100%}.commentActions[_ngcontent-%COMP%]{font-size:smaller;color:#2f4f4f} .ytp-chrome-controls{opacity:1!important}.medium-size[_ngcontent-%COMP%]{font-size:17px}.large-text[_ngcontent-%COMP%]{font-size:large;margin-left:2px}"]})}return r})()},85985:(ke,se,S)=>{S.d(se,{P:()=>be});var i=S(2978),x=S(77897),Y=S(77299),oe=S(54171),Q=S(22882),L=S(7125),ee=S(56610),M=S(37222);function F(G,ue){if(1&G){const T=i.RV6();i.j41(0,"app-publication-comment",10),i.bIt("replieCommentOutput",function(O){i.eBV(T);const U=i.XpG();return i.Njj(U.replieComment(O))}),i.k0s()}if(2&G){const T=ue.$implicit,j=i.XpG();i.Y8G("comment",T)("commentPrefix","@"+j.comment.user.first_name+" "+j.comment.user.last_name)}}let X=(()=>{class G{constructor(T,j){this.cityProvider=T,this.utilsService=j,this.commentPrefix="",this.replieCommentOutput=new i.bkB}ngOnInit(){}replieComment(T){this.replieCommentOutput.emit(T)}static#e=this.\u0275fac=function(j){return new(j||G)(i.rXU(L.h),i.rXU(oe.T))};static#t=this.\u0275cmp=i.VBU({type:G,selectors:[["app-publication-comment"]],inputs:{comment:"comment",commentPrefix:"commentPrefix"},outputs:{replieCommentOutput:"replieCommentOutput"},decls:22,vars:10,consts:[["size","1"],[2,"height","25px","width","25px"],[3,"src"],["size","10"],[2,"font-weight","bold"],[1,"blue-text"],[1,"ion-no-padding"],["size","3",1,"commentActions","ion-text-start"],["size","8",1,"commentActions",3,"click"],[3,"comment","commentPrefix","replieCommentOutput",4,"ngFor","ngForOf"],[3,"comment","commentPrefix","replieCommentOutput"]],template:function(j,O){1&j&&(i.j41(0,"ion-grid")(1,"ion-row")(2,"ion-col",0)(3,"ion-avatar",1),i.nrm(4,"img",2),i.k0s()(),i.j41(5,"ion-col",3)(6,"div")(7,"span",4),i.EFF(8),i.k0s(),i.nrm(9,"br"),i.j41(10,"span")(11,"span",5),i.EFF(12),i.k0s(),i.EFF(13),i.k0s(),i.j41(14,"ion-grid",6)(15,"ion-row",6)(16,"ion-col",7),i.EFF(17),i.k0s(),i.j41(18,"ion-col",8),i.bIt("click",function(){return O.replieComment(O.comment)}),i.EFF(19),i.nI1(20,"translate"),i.k0s()()()()()()(),i.DNE(21,F,1,2,"app-publication-comment",9)),2&j&&(i.R7$(4),i.FS9("src",O.comment.user.user_info.photo?O.cityProvider._urlGallery+"avatars/"+O.comment.user.user_info.photo:"https://ionicframework.com/docs/img/demos/avatar.svg",i.B4B),i.R7$(4),i.Lme("",O.comment.user.first_name," ",O.comment.user.last_name,""),i.R7$(4),i.JRh(O.commentPrefix),i.R7$(1),i.SpI(" ",O.comment.comments_club_id_text,""),i.R7$(4),i.SpI(" ",O.utilsService.timeSince(O.comment.created_at)," "),i.R7$(2),i.SpI(" ",i.bMT(20,8,"CLUB_CONTENT.REPLIE")," "),i.R7$(2),i.Y8G("ngForOf",O.comment.replies))},dependencies:[ee.Sq,x.mC,x.hU,x.lO,x.ln,G,Q.D9],styles:[".comment[_ngcontent-%COMP%]{border-radius:10px;background:#E7E4E4;width:-moz-fit-content;width:fit-content;padding:5px;min-width:30vw}.commentActions[_ngcontent-%COMP%]{font-size:smaller;font-weight:700;color:#445e93}.blue-text[_ngcontent-%COMP%]{color:#445e93}"]})}return G})();const V=["commentArea"],D=["content"];function re(G,ue){if(1&G){const T=i.RV6();i.j41(0,"app-publication-comment",13),i.bIt("replieCommentOutput",function(O){i.eBV(T);const U=i.XpG();return i.Njj(U.replieComment(O))}),i.k0s()}2&G&&i.Y8G("comment",ue.$implicit)}function N(G,ue){if(1&G){const T=i.RV6();i.j41(0,"label",14),i.EFF(1),i.nI1(2,"translate"),i.j41(3,"span",15),i.EFF(4),i.k0s(),i.j41(5,"span",16),i.bIt("click",function(){i.eBV(T);const O=i.XpG();return i.Njj(O.cancelReplieComment())}),i.EFF(6),i.nI1(7,"translate"),i.k0s()()}if(2&G){const T=i.XpG();i.R7$(1),i.SpI(" ",i.bMT(2,4,"CLUB_CONTENT.REPLYING_TO")," "),i.R7$(3),i.Lme("",T.commentToReplie.user.first_name," ",T.commentToReplie.user.last_name,". "),i.R7$(2),i.SpI(" ",i.bMT(7,6,"all.cancel")," ")}}function ie(G,ue){if(1&G){const T=i.RV6();i.j41(0,"ion-icon",17),i.bIt("click",function(){i.eBV(T);const O=i.XpG();return i.Njj(O.setComment())}),i.k0s()}}let be=(()=>{class G{constructor(T,j,O,U,he){this.modalCtrl=T,this.publicationClubService=j,this.utilsService=O,this.translateService=U,this.cityProvider=he,this.comment="",this.comments=[]}ngOnInit(){this.loadInit()}ngAfterViewInit(){this.commentArea.setFocus()}loadInit(T=0){this.time=(new Date).getTime(),setTimeout(()=>new Promise((j,O)=>{this.utilsService.presentLoading(this.translateService.instant("all.loading")).then(()=>{Promise.all([this.publicationClubService.getComments(this.contentId).then(U=>{this.comments=U})]).then(()=>{this.utilsService.dismissLoading(),this.utilsService.loadingPage=!1,j(!1)}).catch(U=>{this.utilsService.dismissLoading(),this.utilsService.loadingPage=!1,O(U)})})}),T)}cancel(T,j){this.modalCtrl.dismiss({status:T,valueOrder:j})}setComment(){let T={comments_club_id_text:this.comment,publication_content_id:this.contentId};this.commentToReplie&&(T.comment_club_id=this.commentToReplie.id),this.publicationClubService.setComment(T).then(j=>{this.commentToReplie||this.scrollToTop(),this.comment="",this.loadInit(),this.cancelReplieComment()})}replieComment(T){this.commentToReplie=T,this.commentArea.setFocus()}cancelReplieComment(){this.commentToReplie=null}scrollToTop(){setTimeout(()=>{this.content.scrollToTop(500)},200)}static#e=this.\u0275fac=function(j){return new(j||G)(i.rXU(x.W3),i.rXU(Y.i),i.rXU(oe.T),i.rXU(Q.c$),i.rXU(L.h))};static#t=this.\u0275cmp=i.VBU({type:G,selectors:[["app-club-content-comments"]],viewQuery:function(j,O){if(1&j&&(i.GBs(V,5),i.GBs(D,5)),2&j){let U;i.mGM(U=i.lsd())&&(O.commentArea=U.first),i.mGM(U=i.lsd())&&(O.content=U.first)}},decls:19,vars:12,consts:[[2,"--background","white","color","black"],["slot","start"],[1,"ion-text-center"],["slot","end"],["strong","","color","dark",3,"click"],["content",""],[3,"comment","replieCommentOutput",4,"ngFor","ngForOf"],[1,"footer"],["style","color: black;","class","ion-margin-start",4,"ngIf"],["lines","none",1,"roundedInput"],["autofocus","",2,"margin","auto",3,"placeholder","autoGrow","rows","ngModel","ngModelChange"],["commentArea",""],["name","send","style","margin: auto;","color","primary",3,"click",4,"ngIf"],[3,"comment","replieCommentOutput"],[1,"ion-margin-start",2,"color","black"],[2,"font-weight","bold"],[2,"font-weight","bold","color","darkslategray",3,"click"],["name","send","color","primary",2,"margin","auto",3,"click"]],template:function(j,O){1&j&&(i.j41(0,"ion-header")(1,"ion-toolbar",0),i.nrm(2,"ion-back-button",1),i.j41(3,"ion-title",2),i.EFF(4),i.nI1(5,"translate"),i.k0s(),i.j41(6,"ion-buttons",3)(7,"ion-button",4),i.bIt("click",function(){return O.cancel(!1)}),i.EFF(8,"X"),i.k0s()()()(),i.j41(9,"ion-content",null,5),i.DNE(11,re,1,1,"app-publication-comment",6),i.k0s(),i.j41(12,"ion-footer",7),i.DNE(13,N,8,8,"label",8),i.j41(14,"ion-item",9)(15,"ion-textarea",10,11),i.bIt("ngModelChange",function(he){return O.comment=he}),i.nI1(17,"translate"),i.k0s(),i.DNE(18,ie,1,0,"ion-icon",12),i.k0s()()),2&j&&(i.R7$(4),i.JRh(i.bMT(5,8,"CLUB_CONTENT.COMMENTS")),i.R7$(7),i.Y8G("ngForOf",O.comments),i.R7$(2),i.Y8G("ngIf",O.commentToReplie),i.R7$(2),i.FS9("placeholder",i.bMT(17,10,"CLUB_CONTENT.COMMENT")),i.Y8G("autoGrow",!0)("rows",1)("ngModel",O.comment),i.R7$(3),i.Y8G("ngIf",O.comment.length))},dependencies:[ee.Sq,ee.bT,M.BC,M.vS,x.el,x.Jm,x.QW,x.W9,x.M0,x.eU,x.iq,x.uz,x.nc,x.BC,x.ai,x.Gw,x.tY,X,Q.D9],styles:[".roundedInput[_ngcontent-%COMP%]{--border-radius: 45px;--border-width: 1px;--box-shadow: 2px gray;--highlight-height: 0;--background: #f8f9fa;margin:5px}@media only screen and (max-device-width: 414px){.footer[_ngcontent-%COMP%]{margin-bottom:15px}}"]})}return G})()},67719:(ke,se,S)=>{S.d(se,{M:()=>oe});var i=S(2978),x=S(22882),Y=S(77897);let oe=(()=>{class Q{constructor(ee,M){this.translateService=ee,this.modalCtrl=M}ngOnInit(){}cancel(ee,M){this.modalCtrl.dismiss({status:ee,valueOrder:M})}static#e=this.\u0275fac=function(M){return new(M||Q)(i.rXU(x.c$),i.rXU(Y.W3))};static#t=this.\u0275cmp=i.VBU({type:Q,selectors:[["app-club-content-news"]],decls:9,vars:4,consts:[["slot","start"],["slot","end"],["strong","","color","light",3,"click"],["seamless","seamless","frameborder","0","allowtransparency","true","allowfullscreen","",1,"sectionImage",2,"width","-webkit-fill-available","height","-webkit-fill-available",3,"src"]],template:function(M,F){1&M&&(i.j41(0,"ion-header")(1,"ion-toolbar"),i.nrm(2,"ion-back-button",0),i.j41(3,"ion-buttons",1)(4,"ion-button",2),i.bIt("click",function(){return F.cancel(!1)}),i.EFF(5),i.nI1(6,"translate"),i.k0s()()()(),i.j41(7,"ion-content"),i.nrm(8,"iframe",3),i.k0s()),2&M&&(i.R7$(5),i.JRh(i.bMT(6,2,"all.close")),i.R7$(3),i.Y8G("src",F.newInfo.sanitizerLink,i.f$h))},dependencies:[Y.el,Y.Jm,Y.QW,Y.W9,Y.eU,Y.ai,Y.tY,x.D9]})}return Q})()},77299:(ke,se,S)=>{S.d(se,{i:()=>Q});var i=S(73308),x=S(2978),Y=S(3366),oe=S(54171);let Q=(()=>{class L{constructor(M,F){this.api=M,this.utilsService=F,this.types={photo:"photo"}}get(M,F){var X=this;return(0,i.A)(function*(){return new Promise(function(){var V=(0,i.A)(function*(D,re){(yield X.api.get("publication_club/get/"+(M??"all")+"/"+(F??1),yield X.utilsService.getAccessToken())).subscribe(ie=>{D(ie)},ie=>{re(ie)})});return function(D,re){return V.apply(this,arguments)}}())})()}setReaction(M){var F=this;return(0,i.A)(function*(){return new Promise(function(){var X=(0,i.A)(function*(V,D){(yield F.api.post("publication_club/setPublicationClubIterations",M,yield F.utilsService.getAccessToken())).subscribe(N=>{V(N)},N=>{D(N)})});return function(V,D){return X.apply(this,arguments)}}())})()}deleteReaction(M){var F=this;return(0,i.A)(function*(){return new Promise(function(){var X=(0,i.A)(function*(V,D){(yield F.api.post("publication_club/deleteReaction/"+M,{},yield F.utilsService.getAccessToken())).subscribe(N=>{V(N)},N=>{D(N)})});return function(V,D){return X.apply(this,arguments)}}())})()}setComment(M){var F=this;return(0,i.A)(function*(){return new Promise(function(){var X=(0,i.A)(function*(V,D){(yield F.api.post("publication_club/setPublicationClubComments",M,yield F.utilsService.getAccessToken())).subscribe(N=>{V(N)},N=>{D(N)})});return function(V,D){return X.apply(this,arguments)}}())})()}getComments(M){var F=this;return(0,i.A)(function*(){return new Promise(function(){var X=(0,i.A)(function*(V,D){(yield F.api.get("publication_club/getComments/"+M,yield F.utilsService.getAccessToken())).subscribe(N=>{V(N)},N=>{D(N)})});return function(V,D){return X.apply(this,arguments)}}())})()}getById(M){var F=this;return(0,i.A)(function*(){return new Promise(function(){var X=(0,i.A)(function*(V,D){(yield F.api.get("publication_club/getById/"+M,yield F.utilsService.getAccessToken())).subscribe(N=>{V(N)},N=>{D(N)})});return function(V,D){return X.apply(this,arguments)}}())})()}static#e=this.\u0275fac=function(F){return new(F||L)(x.KVO(Y.G),x.KVO(oe.T))};static#t=this.\u0275prov=x.jDH({token:L,factory:L.\u0275fac,providedIn:"root"})}return L})()}}]);