UNPKG

altair-static

Version:

Static package for altair graphql client

2 lines (1 loc) 1.76 kB
function i(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const f=Object.getOwnPropertyDescriptor(t,o);f&&Object.defineProperty(e,o,f.get?f:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function u(e){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");if(e=`${e}`,e=e.replace(/[ \t\n\f\r]/g,""),e.length%4===0&&(e=e.replace(/==?$/,"")),e.length%4===1||/[^+/0-9A-Za-z]/.test(e))return null;let r="",n=0,t=0;for(let o=0;o<e.length;o++)n<<=6,n|=c(e[o]),t+=6,t===24&&(r+=String.fromCharCode((n&16711680)>>16),r+=String.fromCharCode((n&65280)>>8),r+=String.fromCharCode(n&255),n=t=0);return t===12?(n>>=4,r+=String.fromCharCode(n)):t===18&&(n>>=2,r+=String.fromCharCode((n&65280)>>8),r+=String.fromCharCode(n&255)),r}const l="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function c(e){const r=l.indexOf(e);return r<0?void 0:r}var g=u;function d(e){if(arguments.length===0)throw new TypeError("1 argument required, but only 0 present.");let r;for(e=`${e}`,r=0;r<e.length;r++)if(e.charCodeAt(r)>255)return null;let n="";for(r=0;r<e.length;r+=3){const t=[void 0,void 0,void 0,void 0];t[0]=e.charCodeAt(r)>>2,t[1]=(e.charCodeAt(r)&3)<<4,e.length>r+1&&(t[1]|=e.charCodeAt(r+1)>>4,t[2]=(e.charCodeAt(r+1)&15)<<2),e.length>r+2&&(t[2]|=e.charCodeAt(r+2)>>6,t[3]=e.charCodeAt(r+2)&63);for(let o=0;o<t.length;o++)typeof t[o]>"u"?n+="=":n+=a(t[o])}return n}const h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function a(e){if(e>=0&&e<64)return h[e]}var b=d;const p=g,C=b;var s={atob:p,btoa:C};const m=i({__proto__:null},[s]);export{m as i};