Build 533169stable
Module 643479
2,250 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{Aj:()=>m,BD:()=>o,C5:()=>p,CF:()=>h,FH:()=>A,Gl:()=>g,L$:()=>_,MS:()=>s,YF:()=>c,Zo:()=>f,dP:()=>d,gq:()=>l,hT:()=>a,mF:()=>I,tp:()=>E,z6:()=>u});var r=n(504925),i=n(264572).Buffer;function s(e,t,n){try{return new DataView(e,t,n)}catch(i){return new r.A(e,t,n)}}function a(e,t,n){let r=[];for(let i=0;i<n&&t+i<e.byteLength;i++)r.push(e.getUint8(t+i));return c(r)}function o(e,t){let n=[],r=0;for(;t+r<e.byteLength;){let i=e.getUint8(t+r);if(0===i)break;n.push(i),r++}return c(n)}function l(e,t,n){let r=[];for(let i=0;i<n&&t+i<e.byteLength;i+=2)r.push(e.getUint16(t+i));return 0===r[r.length-1]&&r.pop(),c(r)}function u(e,t){let n=e.getUint8(t),r=a(e,t+1,n);return[n,r]}function c(e){return e.map(e=>String.fromCharCode(e)).join("")}function d(){for(let e=1;e<arguments.length;e++)for(let t in arguments[e])arguments[0][t]=arguments[e][t];return arguments[0]}function _(e,t,n){let r=!1;Object.defineProperty(e,t,{get:()=>(r||(r=!0,Object.defineProperty(e,t,{configurable:!0,enumerable:!0,value:n.apply(e),writable:!0})),e[t]),configurable:!0,enumerable:!0})}function f(e){return"u">typeof btoa?"string"==typeof e?btoa(e):btoa(Array.prototype.reduce.call(new Uint8Array(e),(e,t)=>e+String.fromCharCode(t),"")):void 0!==i?void 0!==i.from?i.from(e).toString("base64"):new i(e).toString("base64"):void 0}function p(e){let t=e.substring(e.indexOf(",")+1);if(-1!==e.indexOf(";base64"))return"u">typeof atob?Uint8Array.from(atob(t),e=>e.charCodeAt(0)).buffer:void 0===i?void 0:void 0!==i.from?i.from(t,"base64"):new i(t,"base64");let n=decodeURIComponent(t);return void 0!==i?void 0!==i.from?i.from(n):new i(n):Uint8Array.from(n,e=>e.charCodeAt(0)).buffer}function h(e,t,n){return E(n,t-e.length)+e}function m(e,t){return parseInt(e.replace(".",""),t)/Math.pow(t,(e.split(".")[1]||"").length)}function E(e,t){return Array(t+1).join(e)}let g,A=0;function I(e,t,n,r="string"){if(t===A&&"function"==typeof DecompressionStream){let t=new DecompressionStream("deflate"),i=new Blob([e]).stream().pipeThrough(t);return"dataview"===r?new Response(i).arrayBuffer().then(e=>new DataView(e)):new Response(i).arrayBuffer().then(e=>new TextDecoder(n).decode(e))}return void 0!==t?Promise.reject(`Unknown compression method ${t}.`):e}}