File: /var/www/vhost/disk-apps/pwa.sports-crowd.com/www/2053.faebe22dd7d5c2db.js
(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2053],{24313:function(B,j){var g,L;void 0!==(L="function"==typeof(g=function(){"use strict";function A(l,f,x){var h=new XMLHttpRequest;h.open("GET",l),h.responseType="blob",h.onload=function(){S(h.response,f,x)},h.onerror=function(){console.error("could not download file")},h.send()}function F(l){var f=new XMLHttpRequest;f.open("HEAD",l,!1);try{f.send()}catch{}return 200<=f.status&&299>=f.status}function T(l){try{l.dispatchEvent(new MouseEvent("click"))}catch{var f=document.createEvent("MouseEvents");f.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),l.dispatchEvent(f)}}var b="object"==typeof window&&window.window===window?window:"object"==typeof self&&self.self===self?self:"object"==typeof global&&global.global===global?global:void 0,w=b.navigator&&/Macintosh/.test(navigator.userAgent)&&/AppleWebKit/.test(navigator.userAgent)&&!/Safari/.test(navigator.userAgent),S=b.saveAs||("object"!=typeof window||window!==b?function(){}:"download"in HTMLAnchorElement.prototype&&!w?function(l,f,x){var h=b.URL||b.webkitURL,d=document.createElement("a");d.download=f=f||l.name||"download",d.rel="noopener","string"==typeof l?(d.href=l,d.origin===location.origin?T(d):F(d.href)?A(l,f,x):T(d,d.target="_blank")):(d.href=h.createObjectURL(l),setTimeout(function(){h.revokeObjectURL(d.href)},4e4),setTimeout(function(){T(d)},0))}:"msSaveOrOpenBlob"in navigator?function(l,f,x){if(f=f||l.name||"download","string"!=typeof l)navigator.msSaveOrOpenBlob(function v(l,f){return typeof f>"u"?f={autoBom:!1}:"object"!=typeof f&&(console.warn("Deprecated: Expected third argument to be a object"),f={autoBom:!f}),f.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(l.type)?new Blob(["\ufeff",l],{type:l.type}):l}(l,x),f);else if(F(l))A(l,f,x);else{var h=document.createElement("a");h.href=l,h.target="_blank",setTimeout(function(){T(h)})}}:function(l,f,x,h){if((h=h||open("","_blank"))&&(h.document.title=h.document.body.innerText="downloading..."),"string"==typeof l)return A(l,f,x);var d="application/octet-stream"===l.type,H=/constructor/i.test(b.HTMLElement)||b.safari,$=/CriOS\/[\d]+/.test(navigator.userAgent);if(($||d&&H||w)&&typeof FileReader<"u"){var E=new FileReader;E.onloadend=function(){var C=E.result;C=$?C:C.replace(/^data:[^;]*;/,"data:attachment/file;"),h?h.location.href=C:location=C,h=null},E.readAsDataURL(l)}else{var I=b.URL||b.webkitURL,R=I.createObjectURL(l);h?h.location=R:location.href=R,h=null,setTimeout(function(){I.revokeObjectURL(R)},4e4)}});b.saveAs=S.saveAs=S,B.exports=S})?g.apply(j,[]):g)&&(B.exports=L)},52053:(B,j,g)=>{"use strict";g.d(j,{f:()=>be});var c=g(73308),L=g(24313),v=g(22126);const A=(0,v.F3)("Dialog",{web:()=>g.e(8405).then(g.bind(g,48405)).then(t=>new t.DialogWeb)}),T=(()=>{let t=0;return()=>(t+=1,`u${`0000${(Math.random()*36**4<<0).toString(36)}`.slice(-4)}${t}`)})();function w(t){const e=[];for(let n=0,r=t.length;n<r;n++)e.push(t[n]);return e}function S(t,e){const r=(t.ownerDocument.defaultView||window).getComputedStyle(t).getPropertyValue(e);return r?parseFloat(r.replace("px","")):0}function x(t,e={}){const n=e.width||function l(t){const e=S(t,"border-left-width"),n=S(t,"border-right-width");return t.clientWidth+e+n}(t),r=e.height||function f(t){const e=S(t,"border-top-width"),n=S(t,"border-bottom-width");return t.clientHeight+e+n}(t);return{width:n,height:r}}const d=16384;function E(t){return new Promise((e,n)=>{const r=new Image;r.decode=()=>e(r),r.onload=()=>e(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="async",r.src=t})}function R(){return(R=(0,c.A)(function*(t){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(t)).then(encodeURIComponent).then(e=>`data:image/svg+xml;charset=utf-8,${e}`)})).apply(this,arguments)}function k(){return k=(0,c.A)(function*(t,e,n){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${e}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${e} ${n}`),o.setAttribute("width","100%"),o.setAttribute("height","100%"),o.setAttribute("x","0"),o.setAttribute("y","0"),o.setAttribute("externalResourcesRequired","true"),i.appendChild(o),o.appendChild(t),function I(t){return R.apply(this,arguments)}(i)}),k.apply(this,arguments)}const y=(t,e)=>{if(t instanceof e)return!0;const n=Object.getPrototypeOf(t);return null!==n&&(n.constructor.name===e.name||y(n,e))};function _t(t,e,n){const r=window.getComputedStyle(t,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const o=T();try{e.className=`${e.className} ${o}`}catch{return}const s=document.createElement("style");s.appendChild(function Ot(t,e,n){const r=`.${t}:${e}`,i=n.cssText?function Ut(t){const e=t.getPropertyValue("content");return`${t.cssText} content: '${e.replace(/'|"/g,"")}';`}(n):function Mt(t){return w(t).map(e=>`${e}: ${t.getPropertyValue(e)}${t.getPropertyPriority(e)?" !important":""};`).join(" ")}(n);return document.createTextNode(`${r}{${i}}`)}(o,n,r)),e.appendChild(s)}const Et="application/font-woff",vt="image/jpeg",jt={woff:Et,woff2:Et,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:vt,jpeg:vt,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml",webp:"image/webp"};function V(t){const e=function Ht(t){const e=/\.([^./]*?)$/g.exec(t);return e?e[1]:""}(t).toLowerCase();return jt[e]||""}function W(t){return-1!==t.search(/^(data:)/)}function At(t,e){return`data:${e};base64,${t}`}function Rt(t,e,n){return G.apply(this,arguments)}function G(){return(G=(0,c.A)(function*(t,e,n){const r=yield fetch(t,e);if(404===r.status)throw new Error(`Resource "${r.url}" not found`);const i=yield r.blob();return new Promise((o,s)=>{const a=new FileReader;a.onerror=s,a.onloadend=()=>{try{o(n({res:r,result:a.result}))}catch(u){s(u)}},a.readAsDataURL(i)})})).apply(this,arguments)}const z={};function K(t,e,n){return X.apply(this,arguments)}function X(){return(X=(0,c.A)(function*(t,e,n){const r=function Vt(t,e,n){let r=t.replace(/\?.*/,"");return n&&(r=t),/ttf|otf|eot|woff2?/i.test(r)&&(r=r.replace(/.*\//,"")),e?`[${e}]${r}`:r}(t,e,n.includeQueryParams);if(null!=z[r])return z[r];let i;n.cacheBust&&(t+=(/\?/.test(t)?"&":"?")+(new Date).getTime());try{const o=yield Rt(t,n.fetchRequestInit,({res:s,result:a})=>(e||(e=s.headers.get("Content-Type")||""),function kt(t){return t.split(/,/)[1]}(a)));i=At(o,e)}catch(o){i=n.imagePlaceholder||"";let s=`Failed to fetch resource: ${t}`;o&&(s="string"==typeof o?o:o.message),s&&console.warn(s)}return z[r]=i,i})).apply(this,arguments)}function q(){return(q=(0,c.A)(function*(t){const e=t.toDataURL();return"data:,"===e?t.cloneNode(!1):E(e)})).apply(this,arguments)}function Y(){return(Y=(0,c.A)(function*(t,e){if(t.currentSrc){const o=document.createElement("canvas"),s=o.getContext("2d");return o.width=t.clientWidth,o.height=t.clientHeight,s?.drawImage(t,0,0,o.width,o.height),E(o.toDataURL())}const n=t.poster,r=V(n);return E(yield K(n,r,e))})).apply(this,arguments)}function J(){return(J=(0,c.A)(function*(t){var e;try{if(null!==(e=t?.contentDocument)&&void 0!==e&&e.body)return yield U(t.contentDocument.body,{},!0)}catch{}return t.cloneNode(!1)})).apply(this,arguments)}function Q(){return Q=(0,c.A)(function*(t,e){return y(t,HTMLCanvasElement)?function Wt(t){return q.apply(this,arguments)}(t):y(t,HTMLVideoElement)?function Gt(t,e){return Y.apply(this,arguments)}(t,e):y(t,HTMLIFrameElement)?function zt(t){return J.apply(this,arguments)}(t):t.cloneNode(!1)}),Q.apply(this,arguments)}const Xt=t=>null!=t.tagName&&"SLOT"===t.tagName.toUpperCase();function Z(){return(Z=(0,c.A)(function*(t,e,n){var r,i;let o=[];return o=Xt(t)&&t.assignedNodes?w(t.assignedNodes()):y(t,HTMLIFrameElement)&&null!==(r=t.contentDocument)&&void 0!==r&&r.body?w(t.contentDocument.body.childNodes):w((null!==(i=t.shadowRoot)&&void 0!==i?i:t).childNodes),0===o.length||y(t,HTMLVideoElement)||(yield o.reduce((s,a)=>s.then(()=>U(a,n)).then(u=>{u&&e.appendChild(u)}),Promise.resolve())),e})).apply(this,arguments)}function N(){return(N=(0,c.A)(function*(t,e){const n=t.querySelectorAll?t.querySelectorAll("use"):[];if(0===n.length)return t;const r={};for(let o=0;o<n.length;o++){const a=n[o].getAttribute("xlink:href");if(a){const u=t.querySelector(a),p=document.querySelector(a);!u&&p&&!r[a]&&(r[a]=yield U(p,e,!0))}}const i=Object.values(r);if(i.length){const o="http://www.w3.org/1999/xhtml",s=document.createElementNS(o,"svg");s.setAttribute("xmlns",o),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.style.display="none";const a=document.createElementNS(o,"defs");s.appendChild(a);for(let u=0;u<i.length;u++)a.appendChild(i[u]);t.appendChild(s)}return t})).apply(this,arguments)}function U(t,e,n){return tt.apply(this,arguments)}function tt(){return tt=(0,c.A)(function*(t,e,n){return n||!e.filter||e.filter(t)?Promise.resolve(t).then(r=>function Kt(t,e){return Q.apply(this,arguments)}(r,e)).then(r=>function qt(t,e,n){return Z.apply(this,arguments)}(t,r,e)).then(r=>function Zt(t,e){return y(e,Element)&&(function Yt(t,e){const n=e.style;if(!n)return;const r=window.getComputedStyle(t);r.cssText?(n.cssText=r.cssText,n.transformOrigin=r.transformOrigin):w(r).forEach(i=>{let o=r.getPropertyValue(i);"font-size"===i&&o.endsWith("px")&&(o=Math.floor(parseFloat(o.substring(0,o.length-2)))-.1+"px"),y(t,HTMLIFrameElement)&&"display"===i&&"inline"===o&&(o="block"),"d"===i&&e.getAttribute("d")&&(o=`path(${e.getAttribute("d")})`),n.setProperty(i,o,r.getPropertyPriority(i))})}(t,e),function Bt(t,e){_t(t,e,":before"),_t(t,e,":after")}(t,e),function Jt(t,e){y(t,HTMLTextAreaElement)&&(e.innerHTML=t.value),y(t,HTMLInputElement)&&e.setAttribute("value",t.value)}(t,e),function Qt(t,e){if(y(t,HTMLSelectElement)){const r=Array.from(e.children).find(i=>t.value===i.getAttribute("value"));r&&r.setAttribute("selected","")}}(t,e)),e}(t,r)).then(r=>function Nt(t,e){return N.apply(this,arguments)}(r,e)):null}),tt.apply(this,arguments)}const Ct=/url\((['"]?)([^'"]+?)\1\)/g,te=/url\([^)]+\)\s*format\((["']?)([^"']+)\1\)/g,ee=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function et(){return(et=(0,c.A)(function*(t,e,n,r,i){try{const o=n?function F(t,e){if(t.match(/^[a-z]+:\/\//i))return t;if(t.match(/^\/\//))return window.location.protocol+t;if(t.match(/^[a-z]+:/i))return t;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),e&&(r.href=e),i.href=t,i.href}(e,n):e,s=V(e);let a;return a=i?At(yield i(o),s):yield K(o,s,r),t.replace(function ne(t){const e=t.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${e})(['"]?\\))`,"g")}(e),`$1${a}$3`)}catch{}return t})).apply(this,arguments)}function Tt(t){return-1!==t.search(Ct)}function Pt(t,e,n){return nt.apply(this,arguments)}function nt(){return nt=(0,c.A)(function*(t,e,n){if(!Tt(t))return t;const r=function oe(t,{preferredFontFormat:e}){return e?t.replace(ee,n=>{for(;;){const[r,,i]=te.exec(n)||[];if(!i)return"";if(i===e)return`src: ${r};`}}):t}(t,n);return function re(t){const e=[];return t.replace(Ct,(n,r,i)=>(e.push(i),n)),e.filter(n=>!W(n))}(r).reduce((o,s)=>o.then(a=>function ie(t,e,n,r,i){return et.apply(this,arguments)}(a,s,e,n)),Promise.resolve(r))}),nt.apply(this,arguments)}function M(t,e,n){return rt.apply(this,arguments)}function rt(){return(rt=(0,c.A)(function*(t,e,n){var r;const i=null===(r=e.style)||void 0===r?void 0:r.getPropertyValue(t);if(i){const o=yield Pt(i,null,n);return e.style.setProperty(t,o,e.style.getPropertyPriority(t)),!0}return!1})).apply(this,arguments)}function it(){return(it=(0,c.A)(function*(t,e){(yield M("background",t,e))||(yield M("background-image",t,e)),(yield M("mask",t,e))||(yield M("mask-image",t,e))})).apply(this,arguments)}function ot(){return(ot=(0,c.A)(function*(t,e){const n=y(t,HTMLImageElement);if((!n||W(t.src))&&(!y(t,SVGImageElement)||W(t.href.baseVal)))return;const r=n?t.src:t.href.baseVal,i=yield K(r,V(r),e);yield new Promise((o,s)=>{t.onload=o,t.onerror=s;const a=t;a.decode&&(a.decode=o),"lazy"===a.loading&&(a.loading="eager"),n?(t.srcset="",t.src=i):t.href.baseVal=i})})).apply(this,arguments)}function st(){return(st=(0,c.A)(function*(t,e){const r=w(t.childNodes).map(i=>Lt(i,e));yield Promise.all(r).then(()=>t)})).apply(this,arguments)}function Lt(t,e){return at.apply(this,arguments)}function at(){return at=(0,c.A)(function*(t,e){y(t,Element)&&(yield function se(t,e){return it.apply(this,arguments)}(t,e),yield function ae(t,e){return ot.apply(this,arguments)}(t,e),yield function ue(t,e){return st.apply(this,arguments)}(t,e))}),at.apply(this,arguments)}const Dt={};function Ft(t){return ut.apply(this,arguments)}function ut(){return(ut=(0,c.A)(function*(t){let e=Dt[t];return null!=e||(e={url:t,cssText:yield(yield fetch(t)).text()},Dt[t]=e),e})).apply(this,arguments)}function $t(t,e){return ct.apply(this,arguments)}function ct(){return ct=(0,c.A)(function*(t,e){let n=t.cssText;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(function(){var s=(0,c.A)(function*(a){let u=a.replace(r,"$1");return u.startsWith("https://")||(u=new URL(u,t.url).href),Rt(u,e.fetchRequestInit,({result:p})=>(n=n.replace(a,`url(${p})`),[a,p]))});return function(a){return s.apply(this,arguments)}}());return Promise.all(o).then(()=>n)}),ct.apply(this,arguments)}function It(t){if(null==t)return[];const e=[];let r=t.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const u=i.exec(r);if(null===u)break;e.push(u[0])}r=r.replace(i,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,a=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let u=o.exec(r);if(null===u){if(u=a.exec(r),null===u)break;o.lastIndex=a.lastIndex}else a.lastIndex=o.lastIndex;e.push(u[0])}return e}function lt(){return(lt=(0,c.A)(function*(t,e){const n=[],r=[];return t.forEach(i=>{if("cssRules"in i)try{w(i.cssRules||[]).forEach((o,s)=>{if(o.type===CSSRule.IMPORT_RULE){let a=s+1;const p=Ft(o.href).then(m=>$t(m,e)).then(m=>It(m).forEach(_=>{try{i.insertRule(_,_.startsWith("@import")?a+=1:i.cssRules.length)}catch(P){console.error("Error inserting rule from remote css",{rule:_,error:P})}})).catch(m=>{console.error("Error loading remote css",m.toString())});r.push(p)}})}catch(o){const s=t.find(a=>null==a.href)||document.styleSheets[0];null!=i.href&&r.push(Ft(i.href).then(a=>$t(a,e)).then(a=>It(a).forEach(u=>{s.insertRule(u,i.cssRules.length)})).catch(a=>{console.error("Error loading remote stylesheet",a)})),console.error("Error inlining remote css file",o)}}),Promise.all(r).then(()=>(t.forEach(i=>{if("cssRules"in i)try{w(i.cssRules||[]).forEach(o=>{n.push(o)})}catch(o){console.error(`Error while reading CSS rules from ${i.href}`,o)}}),n))})).apply(this,arguments)}function ft(){return ft=(0,c.A)(function*(t,e){if(null==t.ownerDocument)throw new Error("Provided element is not within a Document");const n=w(t.ownerDocument.styleSheets),r=yield function le(t,e){return lt.apply(this,arguments)}(n,e);return function fe(t){return t.filter(e=>e.type===CSSRule.FONT_FACE_RULE).filter(e=>Tt(e.style.getPropertyValue("src")))}(r)}),ft.apply(this,arguments)}function ht(){return ht=(0,c.A)(function*(t,e){const n=yield function he(t,e){return ft.apply(this,arguments)}(t,e);return(yield Promise.all(n.map(i=>Pt(i.cssText,i.parentStyleSheet?i.parentStyleSheet.href:null,e)))).join("\n")}),ht.apply(this,arguments)}function dt(){return dt=(0,c.A)(function*(t,e){const n=null!=e.fontEmbedCSS?e.fontEmbedCSS:e.skipFonts?null:yield function de(t,e){return ht.apply(this,arguments)}(t,e);if(n){const r=document.createElement("style"),i=document.createTextNode(n);r.appendChild(i),t.firstChild?t.insertBefore(r,t.firstChild):t.appendChild(r)}}),dt.apply(this,arguments)}function gt(){return gt=(0,c.A)(function*(t,e={}){const{width:n,height:r}=x(t,e),i=yield U(t,e,!0);return yield function ge(t,e){return dt.apply(this,arguments)}(i,e),yield Lt(i,e),function ce(t,e){const{style:n}=t;e.backgroundColor&&(n.backgroundColor=e.backgroundColor),e.width&&(n.width=`${e.width}px`),e.height&&(n.height=`${e.height}px`);const r=e.style;null!=r&&Object.keys(r).forEach(i=>{n[i]=r[i]})}(i,e),yield function C(t,e,n){return k.apply(this,arguments)}(i,n,r)}),gt.apply(this,arguments)}function mt(){return mt=(0,c.A)(function*(t,e={}){const{width:n,height:r}=x(t,e),i=yield function me(t){return gt.apply(this,arguments)}(t,e),o=yield E(i),s=document.createElement("canvas"),a=s.getContext("2d"),u=e.pixelRatio||function h(){let t,e;try{e=process}catch{}const n=e&&e.env?e.env.devicePixelRatio:null;return n&&(t=parseInt(n,10),Number.isNaN(t)&&(t=1)),t||window.devicePixelRatio||1}(),p=e.canvasWidth||n,m=e.canvasHeight||r;return s.width=p*u,s.height=m*u,e.skipAutoScale||function H(t){(t.width>d||t.height>d)&&(t.width>d&&t.height>d?t.width>t.height?(t.height*=d/t.width,t.width=d):(t.width*=d/t.height,t.height=d):t.width>d?(t.height*=d/t.width,t.width=d):(t.width*=d/t.height,t.height=d))}(s),s.style.width=`${p}`,s.style.height=`${m}`,e.backgroundColor&&(a.fillStyle=e.backgroundColor,a.fillRect(0,0,s.width,s.height)),a.drawImage(o,0,0,s.width,s.height),s}),mt.apply(this,arguments)}function wt(){return(wt=(0,c.A)(function*(t,e={}){const n=yield function O(t){return mt.apply(this,arguments)}(t,e);return yield function $(t,e={}){return new Promise(t.toBlob?n=>{t.toBlob(n,e.type?e.type:"image/png",e.quality?e.quality:1)}:n=>{const r=window.atob(t.toDataURL(e.type?e.type:void 0,e.quality?e.quality:void 0).split(",")[1]),i=r.length,o=new Uint8Array(i);for(let s=0;s<i;s+=1)o[s]=r.charCodeAt(s);n(new Blob([o],{type:e.type?e.type:"image/png"}))})}(n)})).apply(this,arguments)}var D=g(19866),ye=g(21510),St=g(2978),xe=g(22882),we=g(54171);let be=(()=>{class t{constructor(n,r){this.translateService=n,this.utilsService=r}exportCanvasImage(n,r){var i=this;return(0,c.A)(function*(){i.utilsService.presentLoading(i.translateService.instant("all.loading"));let o=i.utilsService;(function pe(t){return wt.apply(this,arguments)})(n,{cacheBust:!0}).then(function(s){var a=this;let u="SportsCrowd_"+(new Date).getTime()+".png";if(v.Ii.isNativePlatform()){let p;const m=new FileReader;m.readAsDataURL(s),m.onloadend=(0,c.A)(function*(){p=m.result;try{const _="ios"===v.Ii.getPlatform()?D.__.Documents:D.__.ExternalStorage;yield D.YA.requestPermissions(),yield D.YA.appendFile({path:`Download/${u}`,data:p,directory:_});const P=yield D.YA.getUri({directory:_,path:`Download/${u}`});"ios"===v.Ii.getPlatform()?ye.S.share({title:u,url:P.uri}).then(()=>{a.toastr.toastSuccess("File has been downloaded")}).catch(Ae=>{a.toastr.toastError("An error occurred during the download")}):""!==P.uri&&a.toastr.toastSuccess("File has been downloaded to the Download folder")}catch{a.toastr.toastError("An error occurred during the download")}})}else(0,L.saveAs)(s,u);o.presentToast(3e3,"success","top",r),o.dismissLoading()})})()}b64toBlob(n,r){r=r||"";for(var o=atob(n),s=[],a=0;a<o.length;a+=512){for(var u=o.slice(a,a+512),p=new Array(u.length),m=0;m<u.length;m++)p[m]=u.charCodeAt(m);var _=new Uint8Array(p);s.push(_)}return new Blob(s,{type:r})}showModal(n){var r=this;return(0,c.A)(function*(){A.alert({title:r.translateService.instant(n),message:r.translateService.instant("image_download")})})()}static#t=this.\u0275fac=function(r){return new(r||t)(St.KVO(xe.c$),St.KVO(we.T))};static#e=this.\u0275prov=St.jDH({token:t,factory:t.\u0275fac,providedIn:"root"})}return t})()}}]);