-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path2271.91269384498bdd6a.js
1 lines (1 loc) · 13.3 KB
/
2271.91269384498bdd6a.js
1
"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2271],{2271:(Le,H,V)=>{V.d(H,{YM:()=>$e});var T=function(e,t,n,r){return new(n||(n=Promise))(function(o,c){function f(s){try{u(r.next(s))}catch(h){c(h)}}function l(s){try{u(r.throw(s))}catch(h){c(h)}}function u(s){s.done?o(s.value):function i(o){return o instanceof n?o:new n(function(c){c(o)})}(s.value).then(f,l)}u((r=r.apply(e,t||[])).next())})};const _="application/font-woff",$="image/jpeg",O={woff:_,woff2:_,ttf:"application/font-truetype",eot:"application/vnd.ms-fontobject",png:"image/png",jpg:$,jpeg:$,gif:"image/gif",tiff:"image/tiff",svg:"image/svg+xml"};function w(e){const t=function j(e){const t=/\.([^./]*?)$/g.exec(e);return t?t[1]:""}(e).toLowerCase();return O[t]||""}function x(e){return-1!==e.search(/^(data:)/)}function b(e,t){return`data:${t};base64,${e}`}function G(e){return e.split(/,/)[1]}const X=function(){let t=0;return()=>(t+=1,`u${`0000${(Math.random()*Math.pow(36,4)<<0).toString(36)}`.slice(-4)}${t}`)}();function d(e){const t=[];for(let n=0,r=e.length;n<r;n+=1)t.push(e[n]);return t}function v(e,t){const n=window.getComputedStyle(e).getPropertyValue(t);return parseFloat(n.replace("px",""))}function E(e){return new Promise((t,n)=>{const r=new Image;r.onload=()=>t(r),r.onerror=n,r.crossOrigin="anonymous",r.decoding="sync",r.src=e})}const C={};function R(e,t){const n=function Z(e){let t=e.replace(/\?.*/,"");return/ttf|otf|eot|woff2?/i.test(t)&&(t=t.replace(/.*\//,"")),t}(e);if(null!=C[n])return C[n];t.cacheBust&&(e+=(/\?/.test(e)?"&":"?")+(new Date).getTime());const i=window.fetch(e).then(o=>o.blob().then(c=>({blob:c,contentType:o.headers.get("Content-Type")||""}))).then(({blob:o,contentType:c})=>new Promise((f,l)=>{const u=new FileReader;u.onloadend=()=>f({contentType:c,blob:u.result}),u.onerror=l,u.readAsDataURL(o)})).then(({blob:o,contentType:c})=>({contentType:c,blob:G(o)})).catch(o=>{let c="";if(t.imagePlaceholder){const l=t.imagePlaceholder.split(/,/);l&&l[1]&&(c=l[1])}let f=`Failed to fetch resource: ${e}`;return o&&(f="string"==typeof o?o:o.message),f&&console.error(f),{blob:c,contentType:""}});return C[n]=i,i}function L(e,t,n){const r=window.getComputedStyle(e,n),i=r.getPropertyValue("content");if(""===i||"none"===i)return;const o=X();try{t.className=`${t.className} ${o}`}catch(f){return}const c=document.createElement("style");c.appendChild(function te(e,t,n){const r=`.${e}:${t}`,i=n.cssText?function N(e){const t=e.getPropertyValue("content");return`${e.cssText} content: '${t.replace(/'|"/g,"")}';`}(n):function ee(e){return d(e).map(t=>`${t}: ${e.getPropertyValue(t)}${e.getPropertyPriority(t)?" !important":""};`).join(" ")}(n);return document.createTextNode(`${r}{${i}}`)}(o,n,r)),t.appendChild(c)}var g=function(e,t,n,r){return new(n||(n=Promise))(function(o,c){function f(s){try{u(r.next(s))}catch(h){c(h)}}function l(s){try{u(r.throw(s))}catch(h){c(h)}}function u(s){s.done?o(s.value):function i(o){return o instanceof n?o:new n(function(c){c(o)})}(s.value).then(f,l)}u((r=r.apply(e,t||[])).next())})};function I(e,t,n){return g(this,void 0,void 0,function*(){return n||!t.filter||t.filter(e)?Promise.resolve(e).then(r=>function oe(e,t){return g(this,void 0,void 0,function*(){return e instanceof HTMLCanvasElement?function re(e){return g(this,void 0,void 0,function*(){const t=e.toDataURL();return"data:,"===t?Promise.resolve(e.cloneNode(!1)):E(t)})}(e):e instanceof HTMLVideoElement&&e.poster?function ie(e,t){return g(this,void 0,void 0,function*(){return Promise.resolve(e.poster).then(n=>R(n,t)).then(n=>b(n.blob,w(e.poster)||n.contentType)).then(n=>E(n))})}(e,t):Promise.resolve(e.cloneNode(!1))})}(r,t)).then(r=>function se(e,t,n){var r;return g(this,void 0,void 0,function*(){const i=(e=>null!=e.tagName&&"SLOT"===e.tagName.toUpperCase())(e)&&e.assignedNodes?d(e.assignedNodes()):d((null!==(r=e.shadowRoot)&&void 0!==r?r:e).childNodes);return 0===i.length||e instanceof HTMLVideoElement?Promise.resolve(t):i.reduce((o,c)=>o.then(()=>I(c,n)).then(f=>{f&&t.appendChild(f)}),Promise.resolve()).then(()=>t)})}(e,r,t)).then(r=>function le(e,t){return g(this,void 0,void 0,function*(){return t instanceof Element?Promise.resolve().then(()=>function ue(e,t){const n=window.getComputedStyle(e),r=t.style;!r||(n.cssText?r.cssText=n.cssText:d(n).forEach(i=>{r.setProperty(i,n.getPropertyValue(i),n.getPropertyPriority(i))}))}(e,t)).then(()=>function ne(e,t){L(e,t,":before"),L(e,t,":after")}(e,t)).then(()=>function fe(e,t){e instanceof HTMLTextAreaElement&&(t.innerHTML=e.value),e instanceof HTMLInputElement&&t.setAttribute("value",e.value)}(e,t)).then(()=>t):Promise.resolve(t)})}(e,r)):Promise.resolve(null)})}const F=/url\((['"]?)([^'"]+?)\1\)/g,ae=/url\([^)]+\)\s*format\((["'])([^"']+)\1\)/g,de=/src:\s*(?:url\([^)]+\)\s*format\([^)]+\)[,;]\s*)+/g;function ge(e){const t=[];return e.replace(F,(n,r,i)=>(t.push(i),n)),t.filter(n=>!x(n))}function k(e){return-1!==e.search(F)}function A(e,t,n){return function(e,t,n,r){return new(n||(n=Promise))(function(o,c){function f(s){try{u(r.next(s))}catch(h){c(h)}}function l(s){try{u(r.throw(s))}catch(h){c(h)}}function u(s){s.done?o(s.value):function i(o){return o instanceof n?o:new n(function(c){c(o)})}(s.value).then(f,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){if(!k(e))return Promise.resolve(e);const r=function we(e,{preferredFontFormat:t}){return t?e.replace(de,n=>{for(;;){const[r,,i]=ae.exec(n)||[];if(!i)return"";if(i===t)return`src: ${r};`}}):e}(e,n);return Promise.resolve(r).then(ge).then(i=>i.reduce((o,c)=>o.then(f=>function pe(e,t,n,r,i){const o=n?function z(e,t){if(e.match(/^[a-z]+:\/\//i))return e;if(e.match(/^\/\//))return window.location.protocol+e;if(e.match(/^[a-z]+:/i))return e;const n=document.implementation.createHTMLDocument(),r=n.createElement("base"),i=n.createElement("a");return n.head.appendChild(r),n.body.appendChild(i),t&&(r.href=t),i.href=e,i.href}(t,n):t;return Promise.resolve(o).then(c=>i?i(c):R(c,r)).then(c=>"string"==typeof c?b(c,w(t)):b(c.blob,w(t)||c.contentType)).then(c=>e.replace(function me(e){const t=e.replace(/([.*+?^${}()|\[\]\/\\])/g,"\\$1");return new RegExp(`(url\\(['"]?)(${t})(['"]?\\))`,"g")}(t),`$1${c}$3`)).then(c=>c,()=>o)}(f,c,t,n)),Promise.resolve(r)))})}var y=function(e,t,n,r){return new(n||(n=Promise))(function(o,c){function f(s){try{u(r.next(s))}catch(h){c(h)}}function l(s){try{u(r.throw(s))}catch(h){c(h)}}function u(s){s.done?o(s.value):function i(o){return o instanceof n?o:new n(function(c){c(o)})}(s.value).then(f,l)}u((r=r.apply(e,t||[])).next())})};function D(e,t){return y(this,void 0,void 0,function*(){return e instanceof Element?Promise.resolve(e).then(n=>function be(e,t){var n;return y(this,void 0,void 0,function*(){const r=null===(n=e.style)||void 0===n?void 0:n.getPropertyValue("background");return r?Promise.resolve(r).then(i=>A(i,null,t)).then(i=>(e.style.setProperty("background",i,e.style.getPropertyPriority("background")),e)):Promise.resolve(e)})}(n,t)).then(n=>function ve(e,t){return y(this,void 0,void 0,function*(){if((!(e instanceof HTMLImageElement)||x(e.src))&&(!(e instanceof SVGImageElement)||x(e.href.baseVal)))return Promise.resolve(e);const n=e instanceof HTMLImageElement?e.src:e.href.baseVal;return Promise.resolve(n).then(r=>R(r,t)).then(r=>b(r.blob,w(n)||r.contentType)).then(r=>new Promise((i,o)=>{e.onload=i,e.onerror=o,e instanceof HTMLImageElement?(e.srcset="",e.src=r):e.href.baseVal=r})).then(()=>e,()=>e)})}(n,t)).then(n=>function ye(e,t){return y(this,void 0,void 0,function*(){const r=d(e.childNodes).map(i=>D(i,t));return Promise.all(r).then(()=>e)})}(n,t)):Promise.resolve(e)})}var p=function(e,t,n,r){return new(n||(n=Promise))(function(o,c){function f(s){try{u(r.next(s))}catch(h){c(h)}}function l(s){try{u(r.throw(s))}catch(h){c(h)}}function u(s){s.done?o(s.value):function i(o){return o instanceof n?o:new n(function(c){c(o)})}(s.value).then(f,l)}u((r=r.apply(e,t||[])).next())})};const U={};function M(e){const t=U[e];if(null!=t)return t;const n=window.fetch(e).then(r=>({url:e,cssText:r.text()}));return U[e]=n,n}function W(e){return p(this,void 0,void 0,function*(){return e.cssText.then(t=>{let n=t;const r=/url\(["']?([^"')]+)["']?\)/g,o=(n.match(/url\([^)]+\)/g)||[]).map(c=>{let f=c.replace(r,"$1");return f.startsWith("https://")||(f=new URL(f,e.url).href),window.fetch(f).then(l=>l.blob()).then(l=>new Promise((u,s)=>{const h=new FileReader;h.onloadend=()=>{n=n.replace(c,`url(${h.result})`),u([c,h.result])},h.onerror=s,h.readAsDataURL(l)}))});return Promise.all(o).then(()=>n)})})}function B(e){if(null==e)return[];const t=[];let r=e.replace(/(\/\*[\s\S]*?\*\/)/gi,"");const i=new RegExp("((@.*?keyframes [\\s\\S]*?){([\\s\\S]*?}\\s*?)})","gi");for(;;){const l=i.exec(r);if(null===l)break;t.push(l[0])}r=r.replace(i,"");const o=/@import[\s\S]*?url\([^)]*\)[\s\S]*?;/gi,f=new RegExp("((\\s*?(?:\\/\\*[\\s\\S]*?\\*\\/)?\\s*?@media[\\s\\S]*?){([\\s\\S]*?)}\\s*?})|(([\\s\\S]*?){([\\s\\S]*?)})","gi");for(;;){let l=o.exec(r);if(null===l){if(l=f.exec(r),null===l)break;o.lastIndex=f.lastIndex}else f.lastIndex=o.lastIndex;t.push(l[0])}return t}function Ee(e){return e.filter(t=>t.type===CSSRule.FONT_FACE_RULE).filter(t=>k(t.style.getPropertyValue("src")))}function Pe(e,t){return p(this,void 0,void 0,function*(){return(null!=t.fontEmbedCSS?Promise.resolve(t.fontEmbedCSS):function Re(e,t){return p(this,void 0,void 0,function*(){return function Ce(e){return p(this,void 0,void 0,function*(){return new Promise((t,n)=>{null==e.ownerDocument&&n(new Error("Provided element is not within a Document")),t(d(e.ownerDocument.styleSheets))}).then(t=>function xe(e){return p(this,void 0,void 0,function*(){const t=[],n=[];return e.forEach(r=>{if("cssRules"in r)try{d(r.cssRules).forEach((i,o)=>{if(i.type===CSSRule.IMPORT_RULE){let c=o+1;const l=M(i.href).then(u=>u?W(u):"").then(u=>B(u).forEach(s=>{try{r.insertRule(s,s.startsWith("@import")?c+=1:r.cssRules.length)}catch(h){console.error("Error inserting rule from remote css",{rule:s,error:h})}})).catch(u=>{console.error("Error loading remote css",u.toString())});n.push(l)}})}catch(i){const o=e.find(c=>null==c.href)||document.styleSheets[0];null!=r.href&&n.push(M(r.href).then(c=>c?W(c):"").then(c=>B(c).forEach(f=>{o.insertRule(f,r.cssRules.length)})).catch(c=>{console.error("Error loading remote stylesheet",c.toString())})),console.error("Error inlining remote css file",i.toString())}}),Promise.all(n).then(()=>(e.forEach(r=>{if("cssRules"in r)try{d(r.cssRules).forEach(i=>{t.push(i)})}catch(i){console.error(`Error while reading CSS rules from ${r.href}`,i.toString())}}),t))})}(t)).then(Ee)})}(e).then(n=>Promise.all(n.map(r=>A(r.cssText,r.parentStyleSheet?r.parentStyleSheet.href:null,t)))).then(n=>n.join("\n"))})}(e,t)).then(n=>{const r=document.createElement("style"),i=document.createTextNode(n);return r.appendChild(i),e.firstChild?e.insertBefore(r,e.firstChild):e.appendChild(r),e})})}var m=function(e,t,n,r){return new(n||(n=Promise))(function(o,c){function f(s){try{u(r.next(s))}catch(h){c(h)}}function l(s){try{u(r.throw(s))}catch(h){c(h)}}function u(s){s.done?o(s.value):function i(o){return o instanceof n?o:new n(function(c){c(o)})}(s.value).then(f,l)}u((r=r.apply(e,t||[])).next())})};function P(e,t={}){const n=t.width||function q(e){const t=v(e,"border-left-width"),n=v(e,"border-right-width");return e.clientWidth+t+n}(e),r=t.height||function J(e){const t=v(e,"border-top-width"),n=v(e,"border-bottom-width");return e.clientHeight+t+n}(e);return{width:n,height:r}}function Te(e,t={}){return m(this,void 0,void 0,function*(){const{width:n,height:r}=P(e,t);return Promise.resolve(e).then(i=>I(i,t,!0)).then(i=>Pe(i,t)).then(i=>D(i,t)).then(i=>function Se(e,t){const{style:n}=e;t.backgroundColor&&(n.backgroundColor=t.backgroundColor),t.width&&(n.width=`${t.width}px`),t.height&&(n.height=`${t.height}px`);const r=t.style;return null!=r&&Object.keys(r).forEach(i=>{n[i]=r[i]}),e}(i,t)).then(i=>function Q(e,t,n){return T(this,void 0,void 0,function*(){const r="http://www.w3.org/2000/svg",i=document.createElementNS(r,"svg"),o=document.createElementNS(r,"foreignObject");return i.setAttribute("width",`${t}`),i.setAttribute("height",`${n}`),i.setAttribute("viewBox",`0 0 ${t} ${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(e),function Y(e){return T(this,void 0,void 0,function*(){return Promise.resolve().then(()=>(new XMLSerializer).serializeToString(e)).then(encodeURIComponent).then(t=>`data:image/svg+xml;charset=utf-8,${t}`)})}(i)})}(i,n,r))})}const a=16384;function $e(e,t={}){return m(this,void 0,void 0,function*(){return function S(e,t={}){return m(this,void 0,void 0,function*(){return Te(e,t).then(E).then(n=>{const r=document.createElement("canvas"),i=r.getContext("2d"),o=t.pixelRatio||function K(){let e,t;try{t=process}catch(r){}const n=t&&t.env?t.env.devicePixelRatio:null;return n&&(e=parseInt(n,10),Number.isNaN(e)&&(e=1)),e||window.devicePixelRatio||1}(),{width:c,height:f}=P(e,t),l=t.canvasWidth||c,u=t.canvasHeight||f;return r.width=l*o,r.height=u*o,t.skipAutoScale||function _e(e){(e.width>a||e.height>a)&&(e.width>a&&e.height>a?e.width>e.height?(e.height*=a/e.width,e.width=a):(e.width*=a/e.height,e.height=a):e.width>a?(e.height*=a/e.width,e.width=a):(e.width*=a/e.height,e.height=a))}(r),r.style.width=`${l}`,r.style.height=`${u}`,t.backgroundColor&&(i.fillStyle=t.backgroundColor,i.fillRect(0,0,r.width,r.height)),i.drawImage(n,0,0,r.width,r.height),r})})}(e,t).then(n=>n.toDataURL())})}}}]);