@appkit/dek-ui 0.2.0 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.es.js +1 -1
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -27355,7 +27355,7 @@ g3.write = function(t, r, e, h, i, l) {
|
|
|
27355
27355
|
})(Z6);
|
|
27356
27356
|
async function Vj1(t) {
|
|
27357
27357
|
const r = await gj1.get(
|
|
27358
|
-
`
|
|
27358
|
+
`https://dek.appkit.net/v1/images?src=${encodeURIComponent(t)}`,
|
|
27359
27359
|
{
|
|
27360
27360
|
responseType: "arraybuffer",
|
|
27361
27361
|
mode: "no-cors"
|
package/dist/index.umd.js
CHANGED
|
@@ -281,7 +281,7 @@ Check the top-level render call using <`+c1+">.")}return r1}}function U2(C,r1){{
|
|
|
281
281
|
*
|
|
282
282
|
* @author Feross Aboukhadijeh <https://feross.org>
|
|
283
283
|
* @license MIT
|
|
284
|
-
*/(function(t){const r=bt,e=_5,h=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=l1,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,u.TYPED_ARRAY_SUPPORT=l(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{const f=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(f,o),f.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function s(f){if(f>i)throw new RangeError('The value "'+f+'" is invalid for option "size"');const o=new Uint8Array(f);return Object.setPrototypeOf(o,u.prototype),o}function u(f,o,g){if(typeof f=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(f)}return x(f,o,g)}u.poolSize=8192;function x(f,o,g){if(typeof f=="string")return D(f,o);if(ArrayBuffer.isView(f))return U(f);if(f==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(L2(f,ArrayBuffer)||f&&L2(f.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(L2(f,SharedArrayBuffer)||f&&L2(f.buffer,SharedArrayBuffer)))return E(f,o,g);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const V=f.valueOf&&f.valueOf();if(V!=null&&V!==f)return u.from(V,o,g);const A=t1(f);if(A)return A;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return u.from(f[Symbol.toPrimitive]("string"),o,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}u.from=function(f,o,g){return x(f,o,g)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function k(f){if(typeof f!="number")throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function L(f,o,g){return k(f),f<=0?s(f):o!==void 0?typeof g=="string"?s(f).fill(o,g):s(f).fill(o):s(f)}u.alloc=function(f,o,g){return L(f,o,g)};function S(f){return k(f),s(f<0?0:m1(f)|0)}u.allocUnsafe=function(f){return S(f)},u.allocUnsafeSlow=function(f){return S(f)};function D(f,o){if((typeof o!="string"||o==="")&&(o="utf8"),!u.isEncoding(o))throw new TypeError("Unknown encoding: "+o);const g=p1(f,o)|0;let V=s(g);const A=V.write(f,o);return A!==g&&(V=V.slice(0,A)),V}function G(f){const o=f.length<0?0:m1(f.length)|0,g=s(o);for(let V=0;V<o;V+=1)g[V]=f[V]&255;return g}function U(f){if(L2(f,Uint8Array)){const o=new Uint8Array(f);return E(o.buffer,o.byteOffset,o.byteLength)}return G(f)}function E(f,o,g){if(o<0||f.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<o+(g||0))throw new RangeError('"length" is outside of buffer bounds');let V;return o===void 0&&g===void 0?V=new Uint8Array(f):g===void 0?V=new Uint8Array(f,o):V=new Uint8Array(f,o,g),Object.setPrototypeOf(V,u.prototype),V}function t1(f){if(u.isBuffer(f)){const o=m1(f.length)|0,g=s(o);return g.length===0||f.copy(g,0,0,o),g}if(f.length!==void 0)return typeof f.length!="number"||D2(f.length)?s(0):G(f);if(f.type==="Buffer"&&Array.isArray(f.data))return G(f.data)}function m1(f){if(f>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return f|0}function l1(f){return+f!=f&&(f=0),u.alloc(+f)}u.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==u.prototype},u.compare=function(o,g){if(L2(o,Uint8Array)&&(o=u.from(o,o.offset,o.byteLength)),L2(g,Uint8Array)&&(g=u.from(g,g.offset,g.byteLength)),!u.isBuffer(o)||!u.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===g)return 0;let V=o.length,A=g.length;for(let R=0,$=Math.min(V,A);R<$;++R)if(o[R]!==g[R]){V=o[R],A=g[R];break}return V<A?-1:A<V?1:0},u.isEncoding=function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(o,g){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return u.alloc(0);let V;if(g===void 0)for(g=0,V=0;V<o.length;++V)g+=o[V].length;const A=u.allocUnsafe(g);let R=0;for(V=0;V<o.length;++V){let $=o[V];if(L2($,Uint8Array))R+$.length>A.length?(u.isBuffer($)||($=u.from($)),$.copy(A,R)):Uint8Array.prototype.set.call(A,$,R);else if(u.isBuffer($))$.copy(A,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=$.length}return A};function p1(f,o){if(u.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||L2(f,ArrayBuffer))return f.byteLength;if(typeof f!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const g=f.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&g===0)return 0;let A=!1;for(;;)switch(o){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return M2(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return i2(f).length;default:if(A)return V?-1:M2(f).length;o=(""+o).toLowerCase(),A=!0}}u.byteLength=p1;function N1(f,o,g){let V=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,o>>>=0,g<=o))return"";for(f||(f="utf8");;)switch(f){case"hex":return J(this,o,g);case"utf8":case"utf-8":return q(this,o,g);case"ascii":return y(this,o,g);case"latin1":case"binary":return B(this,o,g);case"base64":return I(this,o,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w1(this,o,g);default:if(V)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),V=!0}}u.prototype._isBuffer=!0;function D1(f,o,g){const V=f[o];f[o]=f[g],f[g]=V}u.prototype.swap16=function(){const o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<o;g+=2)D1(this,g,g+1);return this},u.prototype.swap32=function(){const o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<o;g+=4)D1(this,g,g+3),D1(this,g+1,g+2);return this},u.prototype.swap64=function(){const o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<o;g+=8)D1(this,g,g+7),D1(this,g+1,g+6),D1(this,g+2,g+5),D1(this,g+3,g+4);return this},u.prototype.toString=function(){const o=this.length;return o===0?"":arguments.length===0?q(this,0,o):N1.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(o){if(!u.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:u.compare(this,o)===0},u.prototype.inspect=function(){let o="";const g=t.INSPECT_MAX_BYTES;return o=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(o+=" ... "),"<Buffer "+o+">"},h&&(u.prototype[h]=u.prototype.inspect),u.prototype.compare=function(o,g,V,A,R){if(L2(o,Uint8Array)&&(o=u.from(o,o.offset,o.byteLength)),!u.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(g===void 0&&(g=0),V===void 0&&(V=o?o.length:0),A===void 0&&(A=0),R===void 0&&(R=this.length),g<0||V>o.length||A<0||R>this.length)throw new RangeError("out of range index");if(A>=R&&g>=V)return 0;if(A>=R)return-1;if(g>=V)return 1;if(g>>>=0,V>>>=0,A>>>=0,R>>>=0,this===o)return 0;let $=R-A,W1=V-g;const v2=Math.min($,W1),K1=this.slice(A,R),n2=o.slice(g,V);for(let J1=0;J1<v2;++J1)if(K1[J1]!==n2[J1]){$=K1[J1],W1=n2[J1];break}return $<W1?-1:W1<$?1:0};function j(f,o,g,V,A){if(f.length===0)return-1;if(typeof g=="string"?(V=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,D2(g)&&(g=A?0:f.length-1),g<0&&(g=f.length+g),g>=f.length){if(A)return-1;g=f.length-1}else if(g<0)if(A)g=0;else return-1;if(typeof o=="string"&&(o=u.from(o,V)),u.isBuffer(o))return o.length===0?-1:o1(f,o,g,V,A);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?A?Uint8Array.prototype.indexOf.call(f,o,g):Uint8Array.prototype.lastIndexOf.call(f,o,g):o1(f,[o],g,V,A);throw new TypeError("val must be string, number or Buffer")}function o1(f,o,g,V,A){let R=1,$=f.length,W1=o.length;if(V!==void 0&&(V=String(V).toLowerCase(),V==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(f.length<2||o.length<2)return-1;R=2,$/=2,W1/=2,g/=2}function v2(n2,J1){return R===1?n2[J1]:n2.readUInt16BE(J1*R)}let K1;if(A){let n2=-1;for(K1=g;K1<$;K1++)if(v2(f,K1)===v2(o,n2===-1?0:K1-n2)){if(n2===-1&&(n2=K1),K1-n2+1===W1)return n2*R}else n2!==-1&&(K1-=K1-n2),n2=-1}else for(g+W1>$&&(g=$-W1),K1=g;K1>=0;K1--){let n2=!0;for(let J1=0;J1<W1;J1++)if(v2(f,K1+J1)!==v2(o,J1)){n2=!1;break}if(n2)return K1}return-1}u.prototype.includes=function(o,g,V){return this.indexOf(o,g,V)!==-1},u.prototype.indexOf=function(o,g,V){return j(this,o,g,V,!0)},u.prototype.lastIndexOf=function(o,g,V){return j(this,o,g,V,!1)};function n1(f,o,g,V){g=Number(g)||0;const A=f.length-g;V?(V=Number(V),V>A&&(V=A)):V=A;const R=o.length;V>R/2&&(V=R/2);let $;for($=0;$<V;++$){const W1=parseInt(o.substr($*2,2),16);if(D2(W1))return $;f[g+$]=W1}return $}function _(f,o,g,V){return I2(M2(o,f.length-g),f,g,V)}function Y(f,o,g,V){return I2(N2(o),f,g,V)}function e1(f,o,g,V){return I2(i2(o),f,g,V)}function d1(f,o,g,V){return I2(j1(o,f.length-g),f,g,V)}u.prototype.write=function(o,g,V,A){if(g===void 0)A="utf8",V=this.length,g=0;else if(V===void 0&&typeof g=="string")A=g,V=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(V)?(V=V>>>0,A===void 0&&(A="utf8")):(A=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const R=this.length-g;if((V===void 0||V>R)&&(V=R),o.length>0&&(V<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");let $=!1;for(;;)switch(A){case"hex":return n1(this,o,g,V);case"utf8":case"utf-8":return _(this,o,g,V);case"ascii":case"latin1":case"binary":return Y(this,o,g,V);case"base64":return e1(this,o,g,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d1(this,o,g,V);default:if($)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),$=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(f,o,g){return o===0&&g===f.length?r.fromByteArray(f):r.fromByteArray(f.slice(o,g))}function q(f,o,g){g=Math.min(f.length,g);const V=[];let A=o;for(;A<g;){const R=f[A];let $=null,W1=R>239?4:R>223?3:R>191?2:1;if(A+W1<=g){let v2,K1,n2,J1;switch(W1){case 1:R<128&&($=R);break;case 2:v2=f[A+1],(v2&192)===128&&(J1=(R&31)<<6|v2&63,J1>127&&($=J1));break;case 3:v2=f[A+1],K1=f[A+2],(v2&192)===128&&(K1&192)===128&&(J1=(R&15)<<12|(v2&63)<<6|K1&63,J1>2047&&(J1<55296||J1>57343)&&($=J1));break;case 4:v2=f[A+1],K1=f[A+2],n2=f[A+3],(v2&192)===128&&(K1&192)===128&&(n2&192)===128&&(J1=(R&15)<<18|(v2&63)<<12|(K1&63)<<6|n2&63,J1>65535&&J1<1114112&&($=J1))}}$===null?($=65533,W1=1):$>65535&&($-=65536,V.push($>>>10&1023|55296),$=56320|$&1023),V.push($),A+=W1}return V1(V)}const P1=4096;function V1(f){const o=f.length;if(o<=P1)return String.fromCharCode.apply(String,f);let g="",V=0;for(;V<o;)g+=String.fromCharCode.apply(String,f.slice(V,V+=P1));return g}function y(f,o,g){let V="";g=Math.min(f.length,g);for(let A=o;A<g;++A)V+=String.fromCharCode(f[A]&127);return V}function B(f,o,g){let V="";g=Math.min(f.length,g);for(let A=o;A<g;++A)V+=String.fromCharCode(f[A]);return V}function J(f,o,g){const V=f.length;(!o||o<0)&&(o=0),(!g||g<0||g>V)&&(g=V);let A="";for(let R=o;R<g;++R)A+=O2[f[R]];return A}function w1(f,o,g){const V=f.slice(o,g);let A="";for(let R=0;R<V.length-1;R+=2)A+=String.fromCharCode(V[R]+V[R+1]*256);return A}u.prototype.slice=function(o,g){const V=this.length;o=~~o,g=g===void 0?V:~~g,o<0?(o+=V,o<0&&(o=0)):o>V&&(o=V),g<0?(g+=V,g<0&&(g=0)):g>V&&(g=V),g<o&&(g=o);const A=this.subarray(o,g);return Object.setPrototypeOf(A,u.prototype),A};function s1(f,o,g){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+o>g)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(o,g,V){o=o>>>0,g=g>>>0,V||s1(o,g,this.length);let A=this[o],R=1,$=0;for(;++$<g&&(R*=256);)A+=this[o+$]*R;return A},u.prototype.readUintBE=u.prototype.readUIntBE=function(o,g,V){o=o>>>0,g=g>>>0,V||s1(o,g,this.length);let A=this[o+--g],R=1;for(;g>0&&(R*=256);)A+=this[o+--g]*R;return A},u.prototype.readUint8=u.prototype.readUInt8=function(o,g){return o=o>>>0,g||s1(o,1,this.length),this[o]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(o,g){return o=o>>>0,g||s1(o,2,this.length),this[o]|this[o+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(o,g){return o=o>>>0,g||s1(o,2,this.length),this[o]<<8|this[o+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])},u.prototype.readBigUInt64LE=_2(function(o){o=o>>>0,G1(o,"offset");const g=this[o],V=this[o+7];(g===void 0||V===void 0)&&p2(o,this.length-8);const A=g+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24,R=this[++o]+this[++o]*2**8+this[++o]*2**16+V*2**24;return BigInt(A)+(BigInt(R)<<BigInt(32))}),u.prototype.readBigUInt64BE=_2(function(o){o=o>>>0,G1(o,"offset");const g=this[o],V=this[o+7];(g===void 0||V===void 0)&&p2(o,this.length-8);const A=g*2**24+this[++o]*2**16+this[++o]*2**8+this[++o],R=this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+V;return(BigInt(A)<<BigInt(32))+BigInt(R)}),u.prototype.readIntLE=function(o,g,V){o=o>>>0,g=g>>>0,V||s1(o,g,this.length);let A=this[o],R=1,$=0;for(;++$<g&&(R*=256);)A+=this[o+$]*R;return R*=128,A>=R&&(A-=Math.pow(2,8*g)),A},u.prototype.readIntBE=function(o,g,V){o=o>>>0,g=g>>>0,V||s1(o,g,this.length);let A=g,R=1,$=this[o+--A];for(;A>0&&(R*=256);)$+=this[o+--A]*R;return R*=128,$>=R&&($-=Math.pow(2,8*g)),$},u.prototype.readInt8=function(o,g){return o=o>>>0,g||s1(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]},u.prototype.readInt16LE=function(o,g){o=o>>>0,g||s1(o,2,this.length);const V=this[o]|this[o+1]<<8;return V&32768?V|4294901760:V},u.prototype.readInt16BE=function(o,g){o=o>>>0,g||s1(o,2,this.length);const V=this[o+1]|this[o]<<8;return V&32768?V|4294901760:V},u.prototype.readInt32LE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},u.prototype.readInt32BE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},u.prototype.readBigInt64LE=_2(function(o){o=o>>>0,G1(o,"offset");const g=this[o],V=this[o+7];(g===void 0||V===void 0)&&p2(o,this.length-8);const A=this[o+4]+this[o+5]*2**8+this[o+6]*2**16+(V<<24);return(BigInt(A)<<BigInt(32))+BigInt(g+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24)}),u.prototype.readBigInt64BE=_2(function(o){o=o>>>0,G1(o,"offset");const g=this[o],V=this[o+7];(g===void 0||V===void 0)&&p2(o,this.length-8);const A=(g<<24)+this[++o]*2**16+this[++o]*2**8+this[++o];return(BigInt(A)<<BigInt(32))+BigInt(this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+V)}),u.prototype.readFloatLE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),e.read(this,o,!0,23,4)},u.prototype.readFloatBE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),e.read(this,o,!1,23,4)},u.prototype.readDoubleLE=function(o,g){return o=o>>>0,g||s1(o,8,this.length),e.read(this,o,!0,52,8)},u.prototype.readDoubleBE=function(o,g){return o=o>>>0,g||s1(o,8,this.length),e.read(this,o,!1,52,8)};function S1(f,o,g,V,A,R){if(!u.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>A||o<R)throw new RangeError('"value" argument is out of bounds');if(g+V>f.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(o,g,V,A){if(o=+o,g=g>>>0,V=V>>>0,!A){const W1=Math.pow(2,8*V)-1;S1(this,o,g,V,W1,0)}let R=1,$=0;for(this[g]=o&255;++$<V&&(R*=256);)this[g+$]=o/R&255;return g+V},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(o,g,V,A){if(o=+o,g=g>>>0,V=V>>>0,!A){const W1=Math.pow(2,8*V)-1;S1(this,o,g,V,W1,0)}let R=V-1,$=1;for(this[g+R]=o&255;--R>=0&&($*=256);)this[g+R]=o/$&255;return g+V},u.prototype.writeUint8=u.prototype.writeUInt8=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,1,255,0),this[g]=o&255,g+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,2,65535,0),this[g]=o&255,this[g+1]=o>>>8,g+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,2,65535,0),this[g]=o>>>8,this[g+1]=o&255,g+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,4,4294967295,0),this[g+3]=o>>>24,this[g+2]=o>>>16,this[g+1]=o>>>8,this[g]=o&255,g+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,4,4294967295,0),this[g]=o>>>24,this[g+1]=o>>>16,this[g+2]=o>>>8,this[g+3]=o&255,g+4};function E1(f,o,g,V,A){l2(o,V,A,f,g,7);let R=Number(o&BigInt(4294967295));f[g++]=R,R=R>>8,f[g++]=R,R=R>>8,f[g++]=R,R=R>>8,f[g++]=R;let $=Number(o>>BigInt(32)&BigInt(4294967295));return f[g++]=$,$=$>>8,f[g++]=$,$=$>>8,f[g++]=$,$=$>>8,f[g++]=$,g}function k1(f,o,g,V,A){l2(o,V,A,f,g,7);let R=Number(o&BigInt(4294967295));f[g+7]=R,R=R>>8,f[g+6]=R,R=R>>8,f[g+5]=R,R=R>>8,f[g+4]=R;let $=Number(o>>BigInt(32)&BigInt(4294967295));return f[g+3]=$,$=$>>8,f[g+2]=$,$=$>>8,f[g+1]=$,$=$>>8,f[g]=$,g+8}u.prototype.writeBigUInt64LE=_2(function(o,g=0){return E1(this,o,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=_2(function(o,g=0){return k1(this,o,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(o,g,V,A){if(o=+o,g=g>>>0,!A){const v2=Math.pow(2,8*V-1);S1(this,o,g,V,v2-1,-v2)}let R=0,$=1,W1=0;for(this[g]=o&255;++R<V&&($*=256);)o<0&&W1===0&&this[g+R-1]!==0&&(W1=1),this[g+R]=(o/$>>0)-W1&255;return g+V},u.prototype.writeIntBE=function(o,g,V,A){if(o=+o,g=g>>>0,!A){const v2=Math.pow(2,8*V-1);S1(this,o,g,V,v2-1,-v2)}let R=V-1,$=1,W1=0;for(this[g+R]=o&255;--R>=0&&($*=256);)o<0&&W1===0&&this[g+R+1]!==0&&(W1=1),this[g+R]=(o/$>>0)-W1&255;return g+V},u.prototype.writeInt8=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,1,127,-128),o<0&&(o=255+o+1),this[g]=o&255,g+1},u.prototype.writeInt16LE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,2,32767,-32768),this[g]=o&255,this[g+1]=o>>>8,g+2},u.prototype.writeInt16BE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,2,32767,-32768),this[g]=o>>>8,this[g+1]=o&255,g+2},u.prototype.writeInt32LE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,4,2147483647,-2147483648),this[g]=o&255,this[g+1]=o>>>8,this[g+2]=o>>>16,this[g+3]=o>>>24,g+4},u.prototype.writeInt32BE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[g]=o>>>24,this[g+1]=o>>>16,this[g+2]=o>>>8,this[g+3]=o&255,g+4},u.prototype.writeBigInt64LE=_2(function(o,g=0){return E1(this,o,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=_2(function(o,g=0){return k1(this,o,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function m(f,o,g,V,A,R){if(g+V>f.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function T(f,o,g,V,A){return o=+o,g=g>>>0,A||m(f,o,g,4),e.write(f,o,g,V,23,4),g+4}u.prototype.writeFloatLE=function(o,g,V){return T(this,o,g,!0,V)},u.prototype.writeFloatBE=function(o,g,V){return T(this,o,g,!1,V)};function u1(f,o,g,V,A){return o=+o,g=g>>>0,A||m(f,o,g,8),e.write(f,o,g,V,52,8),g+8}u.prototype.writeDoubleLE=function(o,g,V){return u1(this,o,g,!0,V)},u.prototype.writeDoubleBE=function(o,g,V){return u1(this,o,g,!1,V)},u.prototype.copy=function(o,g,V,A){if(!u.isBuffer(o))throw new TypeError("argument should be a Buffer");if(V||(V=0),!A&&A!==0&&(A=this.length),g>=o.length&&(g=o.length),g||(g=0),A>0&&A<V&&(A=V),A===V||o.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),o.length-g<A-V&&(A=o.length-g+V);const R=A-V;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,V,A):Uint8Array.prototype.set.call(o,this.subarray(V,A),g),R},u.prototype.fill=function(o,g,V,A){if(typeof o=="string"){if(typeof g=="string"?(A=g,g=0,V=this.length):typeof V=="string"&&(A=V,V=this.length),A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!u.isEncoding(A))throw new TypeError("Unknown encoding: "+A);if(o.length===1){const $=o.charCodeAt(0);(A==="utf8"&&$<128||A==="latin1")&&(o=$)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(g<0||this.length<g||this.length<V)throw new RangeError("Out of range index");if(V<=g)return this;g=g>>>0,V=V===void 0?this.length:V>>>0,o||(o=0);let R;if(typeof o=="number")for(R=g;R<V;++R)this[R]=o;else{const $=u.isBuffer(o)?o:u.from(o,A),W1=$.length;if(W1===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(R=0;R<V-g;++R)this[R+g]=$[R%W1]}return this};const i1={};function v1(f,o,g){i1[f]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:o.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(A){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:A,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}v1("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),v1("ERR_INVALID_ARG_TYPE",function(f,o){return`The "${f}" argument must be of type number. Received type ${typeof o}`},TypeError),v1("ERR_OUT_OF_RANGE",function(f,o,g){let V=`The value of "${f}" is out of range.`,A=g;return Number.isInteger(g)&&Math.abs(g)>2**32?A=b1(String(g)):typeof g=="bigint"&&(A=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(A=b1(A)),A+="n"),V+=` It must be ${o}. Received ${A}`,V},RangeError);function b1(f){let o="",g=f.length;const V=f[0]==="-"?1:0;for(;g>=V+4;g-=3)o=`_${f.slice(g-3,g)}${o}`;return`${f.slice(0,g)}${o}`}function R1(f,o,g){G1(o,"offset"),(f[o]===void 0||f[o+g]===void 0)&&p2(o,f.length-(g+1))}function l2(f,o,g,V,A,R){if(f>g||f<o){const $=typeof o=="bigint"?"n":"";let W1;throw R>3?o===0||o===BigInt(0)?W1=`>= 0${$} and < 2${$} ** ${(R+1)*8}${$}`:W1=`>= -(2${$} ** ${(R+1)*8-1}${$}) and < 2 ** ${(R+1)*8-1}${$}`:W1=`>= ${o}${$} and <= ${g}${$}`,new i1.ERR_OUT_OF_RANGE("value",W1,f)}R1(V,A,R)}function G1(f,o){if(typeof f!="number")throw new i1.ERR_INVALID_ARG_TYPE(o,"number",f)}function p2(f,o,g){throw Math.floor(f)!==f?(G1(f,g),new i1.ERR_OUT_OF_RANGE(g||"offset","an integer",f)):o<0?new i1.ERR_BUFFER_OUT_OF_BOUNDS:new i1.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${o}`,f)}const b2=/[^+/0-9A-Za-z-_]/g;function z2(f){if(f=f.split("=")[0],f=f.trim().replace(b2,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function M2(f,o){o=o||1/0;let g;const V=f.length;let A=null;const R=[];for(let $=0;$<V;++$){if(g=f.charCodeAt($),g>55295&&g<57344){if(!A){if(g>56319){(o-=3)>-1&&R.push(239,191,189);continue}else if($+1===V){(o-=3)>-1&&R.push(239,191,189);continue}A=g;continue}if(g<56320){(o-=3)>-1&&R.push(239,191,189),A=g;continue}g=(A-55296<<10|g-56320)+65536}else A&&(o-=3)>-1&&R.push(239,191,189);if(A=null,g<128){if((o-=1)<0)break;R.push(g)}else if(g<2048){if((o-=2)<0)break;R.push(g>>6|192,g&63|128)}else if(g<65536){if((o-=3)<0)break;R.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((o-=4)<0)break;R.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return R}function N2(f){const o=[];for(let g=0;g<f.length;++g)o.push(f.charCodeAt(g)&255);return o}function j1(f,o){let g,V,A;const R=[];for(let $=0;$<f.length&&!((o-=2)<0);++$)g=f.charCodeAt($),V=g>>8,A=g%256,R.push(A),R.push(V);return R}function i2(f){return r.toByteArray(z2(f))}function I2(f,o,g,V){let A;for(A=0;A<V&&!(A+g>=o.length||A>=f.length);++A)o[A+g]=f[A];return A}function L2(f,o){return f instanceof o||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===o.name}function D2(f){return f!==f}const O2=function(){const f="0123456789abcdef",o=new Array(256);for(let g=0;g<16;++g){const V=g*16;for(let A=0;A<16;++A)o[V+A]=f[g]+f[A]}return o}();function _2(f){return typeof BigInt>"u"?X2:f}function X2(){throw new Error("BigInt not supported")}})(b6);async function uj1(t){const r=await nj1.get(`http://localhost:8005/v1/images?src=${encodeURIComponent(t)}`,{responseType:"arraybuffer",mode:"no-cors"}),e=r.headers["content-type"],h=b6.Buffer.from(r.data,"binary").toString("base64");if(h)return`data:${e};base64,${h}`}function zj1(t){return t instanceof Error?t.message:JSON.stringify(t)}const It={};function Mj1(t,r){const[e,h]=K.useState(""),[i,l]=K.useState(""),[s,u]=K.useState(!1),[x,k]=K.useState(""),L=K.useCallback(async S=>{l(""),h(""),console.log("%%% CACHE getImage",S,It);const D=btoa(S);if(It[D])console.log("%%% CACHE getImage from cache",S),h(It[D]);else{console.log("%%% CACHE getImage from url",S),u(!0);try{const G=r?await r(S):await uj1(S);if(console.log("%%% CACHE getImage base64data",G),!G)throw new Error("No data");It[D]=G,h(G)}catch(G){console.log("%%% CACHE getImage err",G),l(zj1(G))}finally{u(!1)}}},[r]);return K.useEffect(()=>{console.log("%%% CACHE useEffect src",{src:t,url:x}),t&&t!==x&&(L(t),k(t))},[t,x,L]),e&&console.log("%%% CACHE data found",e,i,s),{data:e,error:i,loading:s}}const pj1=Z1.div`
|
|
284
|
+
*/(function(t){const r=bt,e=_5,h=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;t.Buffer=u,t.SlowBuffer=l1,t.INSPECT_MAX_BYTES=50;const i=2147483647;t.kMaxLength=i,u.TYPED_ARRAY_SUPPORT=l(),!u.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{const f=new Uint8Array(1),o={foo:function(){return 42}};return Object.setPrototypeOf(o,Uint8Array.prototype),Object.setPrototypeOf(f,o),f.foo()===42}catch{return!1}}Object.defineProperty(u.prototype,"parent",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.buffer}}),Object.defineProperty(u.prototype,"offset",{enumerable:!0,get:function(){if(u.isBuffer(this))return this.byteOffset}});function s(f){if(f>i)throw new RangeError('The value "'+f+'" is invalid for option "size"');const o=new Uint8Array(f);return Object.setPrototypeOf(o,u.prototype),o}function u(f,o,g){if(typeof f=="number"){if(typeof o=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return S(f)}return x(f,o,g)}u.poolSize=8192;function x(f,o,g){if(typeof f=="string")return D(f,o);if(ArrayBuffer.isView(f))return U(f);if(f==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f);if(L2(f,ArrayBuffer)||f&&L2(f.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(L2(f,SharedArrayBuffer)||f&&L2(f.buffer,SharedArrayBuffer)))return E(f,o,g);if(typeof f=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');const V=f.valueOf&&f.valueOf();if(V!=null&&V!==f)return u.from(V,o,g);const A=t1(f);if(A)return A;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof f[Symbol.toPrimitive]=="function")return u.from(f[Symbol.toPrimitive]("string"),o,g);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof f)}u.from=function(f,o,g){return x(f,o,g)},Object.setPrototypeOf(u.prototype,Uint8Array.prototype),Object.setPrototypeOf(u,Uint8Array);function k(f){if(typeof f!="number")throw new TypeError('"size" argument must be of type number');if(f<0)throw new RangeError('The value "'+f+'" is invalid for option "size"')}function L(f,o,g){return k(f),f<=0?s(f):o!==void 0?typeof g=="string"?s(f).fill(o,g):s(f).fill(o):s(f)}u.alloc=function(f,o,g){return L(f,o,g)};function S(f){return k(f),s(f<0?0:m1(f)|0)}u.allocUnsafe=function(f){return S(f)},u.allocUnsafeSlow=function(f){return S(f)};function D(f,o){if((typeof o!="string"||o==="")&&(o="utf8"),!u.isEncoding(o))throw new TypeError("Unknown encoding: "+o);const g=p1(f,o)|0;let V=s(g);const A=V.write(f,o);return A!==g&&(V=V.slice(0,A)),V}function G(f){const o=f.length<0?0:m1(f.length)|0,g=s(o);for(let V=0;V<o;V+=1)g[V]=f[V]&255;return g}function U(f){if(L2(f,Uint8Array)){const o=new Uint8Array(f);return E(o.buffer,o.byteOffset,o.byteLength)}return G(f)}function E(f,o,g){if(o<0||f.byteLength<o)throw new RangeError('"offset" is outside of buffer bounds');if(f.byteLength<o+(g||0))throw new RangeError('"length" is outside of buffer bounds');let V;return o===void 0&&g===void 0?V=new Uint8Array(f):g===void 0?V=new Uint8Array(f,o):V=new Uint8Array(f,o,g),Object.setPrototypeOf(V,u.prototype),V}function t1(f){if(u.isBuffer(f)){const o=m1(f.length)|0,g=s(o);return g.length===0||f.copy(g,0,0,o),g}if(f.length!==void 0)return typeof f.length!="number"||D2(f.length)?s(0):G(f);if(f.type==="Buffer"&&Array.isArray(f.data))return G(f.data)}function m1(f){if(f>=i)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+i.toString(16)+" bytes");return f|0}function l1(f){return+f!=f&&(f=0),u.alloc(+f)}u.isBuffer=function(o){return o!=null&&o._isBuffer===!0&&o!==u.prototype},u.compare=function(o,g){if(L2(o,Uint8Array)&&(o=u.from(o,o.offset,o.byteLength)),L2(g,Uint8Array)&&(g=u.from(g,g.offset,g.byteLength)),!u.isBuffer(o)||!u.isBuffer(g))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(o===g)return 0;let V=o.length,A=g.length;for(let R=0,$=Math.min(V,A);R<$;++R)if(o[R]!==g[R]){V=o[R],A=g[R];break}return V<A?-1:A<V?1:0},u.isEncoding=function(o){switch(String(o).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},u.concat=function(o,g){if(!Array.isArray(o))throw new TypeError('"list" argument must be an Array of Buffers');if(o.length===0)return u.alloc(0);let V;if(g===void 0)for(g=0,V=0;V<o.length;++V)g+=o[V].length;const A=u.allocUnsafe(g);let R=0;for(V=0;V<o.length;++V){let $=o[V];if(L2($,Uint8Array))R+$.length>A.length?(u.isBuffer($)||($=u.from($)),$.copy(A,R)):Uint8Array.prototype.set.call(A,$,R);else if(u.isBuffer($))$.copy(A,R);else throw new TypeError('"list" argument must be an Array of Buffers');R+=$.length}return A};function p1(f,o){if(u.isBuffer(f))return f.length;if(ArrayBuffer.isView(f)||L2(f,ArrayBuffer))return f.byteLength;if(typeof f!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof f);const g=f.length,V=arguments.length>2&&arguments[2]===!0;if(!V&&g===0)return 0;let A=!1;for(;;)switch(o){case"ascii":case"latin1":case"binary":return g;case"utf8":case"utf-8":return M2(f).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return g*2;case"hex":return g>>>1;case"base64":return i2(f).length;default:if(A)return V?-1:M2(f).length;o=(""+o).toLowerCase(),A=!0}}u.byteLength=p1;function N1(f,o,g){let V=!1;if((o===void 0||o<0)&&(o=0),o>this.length||((g===void 0||g>this.length)&&(g=this.length),g<=0)||(g>>>=0,o>>>=0,g<=o))return"";for(f||(f="utf8");;)switch(f){case"hex":return J(this,o,g);case"utf8":case"utf-8":return q(this,o,g);case"ascii":return y(this,o,g);case"latin1":case"binary":return B(this,o,g);case"base64":return I(this,o,g);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return w1(this,o,g);default:if(V)throw new TypeError("Unknown encoding: "+f);f=(f+"").toLowerCase(),V=!0}}u.prototype._isBuffer=!0;function D1(f,o,g){const V=f[o];f[o]=f[g],f[g]=V}u.prototype.swap16=function(){const o=this.length;if(o%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let g=0;g<o;g+=2)D1(this,g,g+1);return this},u.prototype.swap32=function(){const o=this.length;if(o%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let g=0;g<o;g+=4)D1(this,g,g+3),D1(this,g+1,g+2);return this},u.prototype.swap64=function(){const o=this.length;if(o%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let g=0;g<o;g+=8)D1(this,g,g+7),D1(this,g+1,g+6),D1(this,g+2,g+5),D1(this,g+3,g+4);return this},u.prototype.toString=function(){const o=this.length;return o===0?"":arguments.length===0?q(this,0,o):N1.apply(this,arguments)},u.prototype.toLocaleString=u.prototype.toString,u.prototype.equals=function(o){if(!u.isBuffer(o))throw new TypeError("Argument must be a Buffer");return this===o?!0:u.compare(this,o)===0},u.prototype.inspect=function(){let o="";const g=t.INSPECT_MAX_BYTES;return o=this.toString("hex",0,g).replace(/(.{2})/g,"$1 ").trim(),this.length>g&&(o+=" ... "),"<Buffer "+o+">"},h&&(u.prototype[h]=u.prototype.inspect),u.prototype.compare=function(o,g,V,A,R){if(L2(o,Uint8Array)&&(o=u.from(o,o.offset,o.byteLength)),!u.isBuffer(o))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof o);if(g===void 0&&(g=0),V===void 0&&(V=o?o.length:0),A===void 0&&(A=0),R===void 0&&(R=this.length),g<0||V>o.length||A<0||R>this.length)throw new RangeError("out of range index");if(A>=R&&g>=V)return 0;if(A>=R)return-1;if(g>=V)return 1;if(g>>>=0,V>>>=0,A>>>=0,R>>>=0,this===o)return 0;let $=R-A,W1=V-g;const v2=Math.min($,W1),K1=this.slice(A,R),n2=o.slice(g,V);for(let J1=0;J1<v2;++J1)if(K1[J1]!==n2[J1]){$=K1[J1],W1=n2[J1];break}return $<W1?-1:W1<$?1:0};function j(f,o,g,V,A){if(f.length===0)return-1;if(typeof g=="string"?(V=g,g=0):g>2147483647?g=2147483647:g<-2147483648&&(g=-2147483648),g=+g,D2(g)&&(g=A?0:f.length-1),g<0&&(g=f.length+g),g>=f.length){if(A)return-1;g=f.length-1}else if(g<0)if(A)g=0;else return-1;if(typeof o=="string"&&(o=u.from(o,V)),u.isBuffer(o))return o.length===0?-1:o1(f,o,g,V,A);if(typeof o=="number")return o=o&255,typeof Uint8Array.prototype.indexOf=="function"?A?Uint8Array.prototype.indexOf.call(f,o,g):Uint8Array.prototype.lastIndexOf.call(f,o,g):o1(f,[o],g,V,A);throw new TypeError("val must be string, number or Buffer")}function o1(f,o,g,V,A){let R=1,$=f.length,W1=o.length;if(V!==void 0&&(V=String(V).toLowerCase(),V==="ucs2"||V==="ucs-2"||V==="utf16le"||V==="utf-16le")){if(f.length<2||o.length<2)return-1;R=2,$/=2,W1/=2,g/=2}function v2(n2,J1){return R===1?n2[J1]:n2.readUInt16BE(J1*R)}let K1;if(A){let n2=-1;for(K1=g;K1<$;K1++)if(v2(f,K1)===v2(o,n2===-1?0:K1-n2)){if(n2===-1&&(n2=K1),K1-n2+1===W1)return n2*R}else n2!==-1&&(K1-=K1-n2),n2=-1}else for(g+W1>$&&(g=$-W1),K1=g;K1>=0;K1--){let n2=!0;for(let J1=0;J1<W1;J1++)if(v2(f,K1+J1)!==v2(o,J1)){n2=!1;break}if(n2)return K1}return-1}u.prototype.includes=function(o,g,V){return this.indexOf(o,g,V)!==-1},u.prototype.indexOf=function(o,g,V){return j(this,o,g,V,!0)},u.prototype.lastIndexOf=function(o,g,V){return j(this,o,g,V,!1)};function n1(f,o,g,V){g=Number(g)||0;const A=f.length-g;V?(V=Number(V),V>A&&(V=A)):V=A;const R=o.length;V>R/2&&(V=R/2);let $;for($=0;$<V;++$){const W1=parseInt(o.substr($*2,2),16);if(D2(W1))return $;f[g+$]=W1}return $}function _(f,o,g,V){return I2(M2(o,f.length-g),f,g,V)}function Y(f,o,g,V){return I2(N2(o),f,g,V)}function e1(f,o,g,V){return I2(i2(o),f,g,V)}function d1(f,o,g,V){return I2(j1(o,f.length-g),f,g,V)}u.prototype.write=function(o,g,V,A){if(g===void 0)A="utf8",V=this.length,g=0;else if(V===void 0&&typeof g=="string")A=g,V=this.length,g=0;else if(isFinite(g))g=g>>>0,isFinite(V)?(V=V>>>0,A===void 0&&(A="utf8")):(A=V,V=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");const R=this.length-g;if((V===void 0||V>R)&&(V=R),o.length>0&&(V<0||g<0)||g>this.length)throw new RangeError("Attempt to write outside buffer bounds");A||(A="utf8");let $=!1;for(;;)switch(A){case"hex":return n1(this,o,g,V);case"utf8":case"utf-8":return _(this,o,g,V);case"ascii":case"latin1":case"binary":return Y(this,o,g,V);case"base64":return e1(this,o,g,V);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d1(this,o,g,V);default:if($)throw new TypeError("Unknown encoding: "+A);A=(""+A).toLowerCase(),$=!0}},u.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function I(f,o,g){return o===0&&g===f.length?r.fromByteArray(f):r.fromByteArray(f.slice(o,g))}function q(f,o,g){g=Math.min(f.length,g);const V=[];let A=o;for(;A<g;){const R=f[A];let $=null,W1=R>239?4:R>223?3:R>191?2:1;if(A+W1<=g){let v2,K1,n2,J1;switch(W1){case 1:R<128&&($=R);break;case 2:v2=f[A+1],(v2&192)===128&&(J1=(R&31)<<6|v2&63,J1>127&&($=J1));break;case 3:v2=f[A+1],K1=f[A+2],(v2&192)===128&&(K1&192)===128&&(J1=(R&15)<<12|(v2&63)<<6|K1&63,J1>2047&&(J1<55296||J1>57343)&&($=J1));break;case 4:v2=f[A+1],K1=f[A+2],n2=f[A+3],(v2&192)===128&&(K1&192)===128&&(n2&192)===128&&(J1=(R&15)<<18|(v2&63)<<12|(K1&63)<<6|n2&63,J1>65535&&J1<1114112&&($=J1))}}$===null?($=65533,W1=1):$>65535&&($-=65536,V.push($>>>10&1023|55296),$=56320|$&1023),V.push($),A+=W1}return V1(V)}const P1=4096;function V1(f){const o=f.length;if(o<=P1)return String.fromCharCode.apply(String,f);let g="",V=0;for(;V<o;)g+=String.fromCharCode.apply(String,f.slice(V,V+=P1));return g}function y(f,o,g){let V="";g=Math.min(f.length,g);for(let A=o;A<g;++A)V+=String.fromCharCode(f[A]&127);return V}function B(f,o,g){let V="";g=Math.min(f.length,g);for(let A=o;A<g;++A)V+=String.fromCharCode(f[A]);return V}function J(f,o,g){const V=f.length;(!o||o<0)&&(o=0),(!g||g<0||g>V)&&(g=V);let A="";for(let R=o;R<g;++R)A+=O2[f[R]];return A}function w1(f,o,g){const V=f.slice(o,g);let A="";for(let R=0;R<V.length-1;R+=2)A+=String.fromCharCode(V[R]+V[R+1]*256);return A}u.prototype.slice=function(o,g){const V=this.length;o=~~o,g=g===void 0?V:~~g,o<0?(o+=V,o<0&&(o=0)):o>V&&(o=V),g<0?(g+=V,g<0&&(g=0)):g>V&&(g=V),g<o&&(g=o);const A=this.subarray(o,g);return Object.setPrototypeOf(A,u.prototype),A};function s1(f,o,g){if(f%1!==0||f<0)throw new RangeError("offset is not uint");if(f+o>g)throw new RangeError("Trying to access beyond buffer length")}u.prototype.readUintLE=u.prototype.readUIntLE=function(o,g,V){o=o>>>0,g=g>>>0,V||s1(o,g,this.length);let A=this[o],R=1,$=0;for(;++$<g&&(R*=256);)A+=this[o+$]*R;return A},u.prototype.readUintBE=u.prototype.readUIntBE=function(o,g,V){o=o>>>0,g=g>>>0,V||s1(o,g,this.length);let A=this[o+--g],R=1;for(;g>0&&(R*=256);)A+=this[o+--g]*R;return A},u.prototype.readUint8=u.prototype.readUInt8=function(o,g){return o=o>>>0,g||s1(o,1,this.length),this[o]},u.prototype.readUint16LE=u.prototype.readUInt16LE=function(o,g){return o=o>>>0,g||s1(o,2,this.length),this[o]|this[o+1]<<8},u.prototype.readUint16BE=u.prototype.readUInt16BE=function(o,g){return o=o>>>0,g||s1(o,2,this.length),this[o]<<8|this[o+1]},u.prototype.readUint32LE=u.prototype.readUInt32LE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),(this[o]|this[o+1]<<8|this[o+2]<<16)+this[o+3]*16777216},u.prototype.readUint32BE=u.prototype.readUInt32BE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),this[o]*16777216+(this[o+1]<<16|this[o+2]<<8|this[o+3])},u.prototype.readBigUInt64LE=_2(function(o){o=o>>>0,G1(o,"offset");const g=this[o],V=this[o+7];(g===void 0||V===void 0)&&p2(o,this.length-8);const A=g+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24,R=this[++o]+this[++o]*2**8+this[++o]*2**16+V*2**24;return BigInt(A)+(BigInt(R)<<BigInt(32))}),u.prototype.readBigUInt64BE=_2(function(o){o=o>>>0,G1(o,"offset");const g=this[o],V=this[o+7];(g===void 0||V===void 0)&&p2(o,this.length-8);const A=g*2**24+this[++o]*2**16+this[++o]*2**8+this[++o],R=this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+V;return(BigInt(A)<<BigInt(32))+BigInt(R)}),u.prototype.readIntLE=function(o,g,V){o=o>>>0,g=g>>>0,V||s1(o,g,this.length);let A=this[o],R=1,$=0;for(;++$<g&&(R*=256);)A+=this[o+$]*R;return R*=128,A>=R&&(A-=Math.pow(2,8*g)),A},u.prototype.readIntBE=function(o,g,V){o=o>>>0,g=g>>>0,V||s1(o,g,this.length);let A=g,R=1,$=this[o+--A];for(;A>0&&(R*=256);)$+=this[o+--A]*R;return R*=128,$>=R&&($-=Math.pow(2,8*g)),$},u.prototype.readInt8=function(o,g){return o=o>>>0,g||s1(o,1,this.length),this[o]&128?(255-this[o]+1)*-1:this[o]},u.prototype.readInt16LE=function(o,g){o=o>>>0,g||s1(o,2,this.length);const V=this[o]|this[o+1]<<8;return V&32768?V|4294901760:V},u.prototype.readInt16BE=function(o,g){o=o>>>0,g||s1(o,2,this.length);const V=this[o+1]|this[o]<<8;return V&32768?V|4294901760:V},u.prototype.readInt32LE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),this[o]|this[o+1]<<8|this[o+2]<<16|this[o+3]<<24},u.prototype.readInt32BE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),this[o]<<24|this[o+1]<<16|this[o+2]<<8|this[o+3]},u.prototype.readBigInt64LE=_2(function(o){o=o>>>0,G1(o,"offset");const g=this[o],V=this[o+7];(g===void 0||V===void 0)&&p2(o,this.length-8);const A=this[o+4]+this[o+5]*2**8+this[o+6]*2**16+(V<<24);return(BigInt(A)<<BigInt(32))+BigInt(g+this[++o]*2**8+this[++o]*2**16+this[++o]*2**24)}),u.prototype.readBigInt64BE=_2(function(o){o=o>>>0,G1(o,"offset");const g=this[o],V=this[o+7];(g===void 0||V===void 0)&&p2(o,this.length-8);const A=(g<<24)+this[++o]*2**16+this[++o]*2**8+this[++o];return(BigInt(A)<<BigInt(32))+BigInt(this[++o]*2**24+this[++o]*2**16+this[++o]*2**8+V)}),u.prototype.readFloatLE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),e.read(this,o,!0,23,4)},u.prototype.readFloatBE=function(o,g){return o=o>>>0,g||s1(o,4,this.length),e.read(this,o,!1,23,4)},u.prototype.readDoubleLE=function(o,g){return o=o>>>0,g||s1(o,8,this.length),e.read(this,o,!0,52,8)},u.prototype.readDoubleBE=function(o,g){return o=o>>>0,g||s1(o,8,this.length),e.read(this,o,!1,52,8)};function S1(f,o,g,V,A,R){if(!u.isBuffer(f))throw new TypeError('"buffer" argument must be a Buffer instance');if(o>A||o<R)throw new RangeError('"value" argument is out of bounds');if(g+V>f.length)throw new RangeError("Index out of range")}u.prototype.writeUintLE=u.prototype.writeUIntLE=function(o,g,V,A){if(o=+o,g=g>>>0,V=V>>>0,!A){const W1=Math.pow(2,8*V)-1;S1(this,o,g,V,W1,0)}let R=1,$=0;for(this[g]=o&255;++$<V&&(R*=256);)this[g+$]=o/R&255;return g+V},u.prototype.writeUintBE=u.prototype.writeUIntBE=function(o,g,V,A){if(o=+o,g=g>>>0,V=V>>>0,!A){const W1=Math.pow(2,8*V)-1;S1(this,o,g,V,W1,0)}let R=V-1,$=1;for(this[g+R]=o&255;--R>=0&&($*=256);)this[g+R]=o/$&255;return g+V},u.prototype.writeUint8=u.prototype.writeUInt8=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,1,255,0),this[g]=o&255,g+1},u.prototype.writeUint16LE=u.prototype.writeUInt16LE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,2,65535,0),this[g]=o&255,this[g+1]=o>>>8,g+2},u.prototype.writeUint16BE=u.prototype.writeUInt16BE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,2,65535,0),this[g]=o>>>8,this[g+1]=o&255,g+2},u.prototype.writeUint32LE=u.prototype.writeUInt32LE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,4,4294967295,0),this[g+3]=o>>>24,this[g+2]=o>>>16,this[g+1]=o>>>8,this[g]=o&255,g+4},u.prototype.writeUint32BE=u.prototype.writeUInt32BE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,4,4294967295,0),this[g]=o>>>24,this[g+1]=o>>>16,this[g+2]=o>>>8,this[g+3]=o&255,g+4};function E1(f,o,g,V,A){l2(o,V,A,f,g,7);let R=Number(o&BigInt(4294967295));f[g++]=R,R=R>>8,f[g++]=R,R=R>>8,f[g++]=R,R=R>>8,f[g++]=R;let $=Number(o>>BigInt(32)&BigInt(4294967295));return f[g++]=$,$=$>>8,f[g++]=$,$=$>>8,f[g++]=$,$=$>>8,f[g++]=$,g}function k1(f,o,g,V,A){l2(o,V,A,f,g,7);let R=Number(o&BigInt(4294967295));f[g+7]=R,R=R>>8,f[g+6]=R,R=R>>8,f[g+5]=R,R=R>>8,f[g+4]=R;let $=Number(o>>BigInt(32)&BigInt(4294967295));return f[g+3]=$,$=$>>8,f[g+2]=$,$=$>>8,f[g+1]=$,$=$>>8,f[g]=$,g+8}u.prototype.writeBigUInt64LE=_2(function(o,g=0){return E1(this,o,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeBigUInt64BE=_2(function(o,g=0){return k1(this,o,g,BigInt(0),BigInt("0xffffffffffffffff"))}),u.prototype.writeIntLE=function(o,g,V,A){if(o=+o,g=g>>>0,!A){const v2=Math.pow(2,8*V-1);S1(this,o,g,V,v2-1,-v2)}let R=0,$=1,W1=0;for(this[g]=o&255;++R<V&&($*=256);)o<0&&W1===0&&this[g+R-1]!==0&&(W1=1),this[g+R]=(o/$>>0)-W1&255;return g+V},u.prototype.writeIntBE=function(o,g,V,A){if(o=+o,g=g>>>0,!A){const v2=Math.pow(2,8*V-1);S1(this,o,g,V,v2-1,-v2)}let R=V-1,$=1,W1=0;for(this[g+R]=o&255;--R>=0&&($*=256);)o<0&&W1===0&&this[g+R+1]!==0&&(W1=1),this[g+R]=(o/$>>0)-W1&255;return g+V},u.prototype.writeInt8=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,1,127,-128),o<0&&(o=255+o+1),this[g]=o&255,g+1},u.prototype.writeInt16LE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,2,32767,-32768),this[g]=o&255,this[g+1]=o>>>8,g+2},u.prototype.writeInt16BE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,2,32767,-32768),this[g]=o>>>8,this[g+1]=o&255,g+2},u.prototype.writeInt32LE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,4,2147483647,-2147483648),this[g]=o&255,this[g+1]=o>>>8,this[g+2]=o>>>16,this[g+3]=o>>>24,g+4},u.prototype.writeInt32BE=function(o,g,V){return o=+o,g=g>>>0,V||S1(this,o,g,4,2147483647,-2147483648),o<0&&(o=4294967295+o+1),this[g]=o>>>24,this[g+1]=o>>>16,this[g+2]=o>>>8,this[g+3]=o&255,g+4},u.prototype.writeBigInt64LE=_2(function(o,g=0){return E1(this,o,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),u.prototype.writeBigInt64BE=_2(function(o,g=0){return k1(this,o,g,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function m(f,o,g,V,A,R){if(g+V>f.length)throw new RangeError("Index out of range");if(g<0)throw new RangeError("Index out of range")}function T(f,o,g,V,A){return o=+o,g=g>>>0,A||m(f,o,g,4),e.write(f,o,g,V,23,4),g+4}u.prototype.writeFloatLE=function(o,g,V){return T(this,o,g,!0,V)},u.prototype.writeFloatBE=function(o,g,V){return T(this,o,g,!1,V)};function u1(f,o,g,V,A){return o=+o,g=g>>>0,A||m(f,o,g,8),e.write(f,o,g,V,52,8),g+8}u.prototype.writeDoubleLE=function(o,g,V){return u1(this,o,g,!0,V)},u.prototype.writeDoubleBE=function(o,g,V){return u1(this,o,g,!1,V)},u.prototype.copy=function(o,g,V,A){if(!u.isBuffer(o))throw new TypeError("argument should be a Buffer");if(V||(V=0),!A&&A!==0&&(A=this.length),g>=o.length&&(g=o.length),g||(g=0),A>0&&A<V&&(A=V),A===V||o.length===0||this.length===0)return 0;if(g<0)throw new RangeError("targetStart out of bounds");if(V<0||V>=this.length)throw new RangeError("Index out of range");if(A<0)throw new RangeError("sourceEnd out of bounds");A>this.length&&(A=this.length),o.length-g<A-V&&(A=o.length-g+V);const R=A-V;return this===o&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(g,V,A):Uint8Array.prototype.set.call(o,this.subarray(V,A),g),R},u.prototype.fill=function(o,g,V,A){if(typeof o=="string"){if(typeof g=="string"?(A=g,g=0,V=this.length):typeof V=="string"&&(A=V,V=this.length),A!==void 0&&typeof A!="string")throw new TypeError("encoding must be a string");if(typeof A=="string"&&!u.isEncoding(A))throw new TypeError("Unknown encoding: "+A);if(o.length===1){const $=o.charCodeAt(0);(A==="utf8"&&$<128||A==="latin1")&&(o=$)}}else typeof o=="number"?o=o&255:typeof o=="boolean"&&(o=Number(o));if(g<0||this.length<g||this.length<V)throw new RangeError("Out of range index");if(V<=g)return this;g=g>>>0,V=V===void 0?this.length:V>>>0,o||(o=0);let R;if(typeof o=="number")for(R=g;R<V;++R)this[R]=o;else{const $=u.isBuffer(o)?o:u.from(o,A),W1=$.length;if(W1===0)throw new TypeError('The value "'+o+'" is invalid for argument "value"');for(R=0;R<V-g;++R)this[R+g]=$[R%W1]}return this};const i1={};function v1(f,o,g){i1[f]=class extends g{constructor(){super(),Object.defineProperty(this,"message",{value:o.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${f}]`,this.stack,delete this.name}get code(){return f}set code(A){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:A,writable:!0})}toString(){return`${this.name} [${f}]: ${this.message}`}}}v1("ERR_BUFFER_OUT_OF_BOUNDS",function(f){return f?`${f} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),v1("ERR_INVALID_ARG_TYPE",function(f,o){return`The "${f}" argument must be of type number. Received type ${typeof o}`},TypeError),v1("ERR_OUT_OF_RANGE",function(f,o,g){let V=`The value of "${f}" is out of range.`,A=g;return Number.isInteger(g)&&Math.abs(g)>2**32?A=b1(String(g)):typeof g=="bigint"&&(A=String(g),(g>BigInt(2)**BigInt(32)||g<-(BigInt(2)**BigInt(32)))&&(A=b1(A)),A+="n"),V+=` It must be ${o}. Received ${A}`,V},RangeError);function b1(f){let o="",g=f.length;const V=f[0]==="-"?1:0;for(;g>=V+4;g-=3)o=`_${f.slice(g-3,g)}${o}`;return`${f.slice(0,g)}${o}`}function R1(f,o,g){G1(o,"offset"),(f[o]===void 0||f[o+g]===void 0)&&p2(o,f.length-(g+1))}function l2(f,o,g,V,A,R){if(f>g||f<o){const $=typeof o=="bigint"?"n":"";let W1;throw R>3?o===0||o===BigInt(0)?W1=`>= 0${$} and < 2${$} ** ${(R+1)*8}${$}`:W1=`>= -(2${$} ** ${(R+1)*8-1}${$}) and < 2 ** ${(R+1)*8-1}${$}`:W1=`>= ${o}${$} and <= ${g}${$}`,new i1.ERR_OUT_OF_RANGE("value",W1,f)}R1(V,A,R)}function G1(f,o){if(typeof f!="number")throw new i1.ERR_INVALID_ARG_TYPE(o,"number",f)}function p2(f,o,g){throw Math.floor(f)!==f?(G1(f,g),new i1.ERR_OUT_OF_RANGE(g||"offset","an integer",f)):o<0?new i1.ERR_BUFFER_OUT_OF_BOUNDS:new i1.ERR_OUT_OF_RANGE(g||"offset",`>= ${g?1:0} and <= ${o}`,f)}const b2=/[^+/0-9A-Za-z-_]/g;function z2(f){if(f=f.split("=")[0],f=f.trim().replace(b2,""),f.length<2)return"";for(;f.length%4!==0;)f=f+"=";return f}function M2(f,o){o=o||1/0;let g;const V=f.length;let A=null;const R=[];for(let $=0;$<V;++$){if(g=f.charCodeAt($),g>55295&&g<57344){if(!A){if(g>56319){(o-=3)>-1&&R.push(239,191,189);continue}else if($+1===V){(o-=3)>-1&&R.push(239,191,189);continue}A=g;continue}if(g<56320){(o-=3)>-1&&R.push(239,191,189),A=g;continue}g=(A-55296<<10|g-56320)+65536}else A&&(o-=3)>-1&&R.push(239,191,189);if(A=null,g<128){if((o-=1)<0)break;R.push(g)}else if(g<2048){if((o-=2)<0)break;R.push(g>>6|192,g&63|128)}else if(g<65536){if((o-=3)<0)break;R.push(g>>12|224,g>>6&63|128,g&63|128)}else if(g<1114112){if((o-=4)<0)break;R.push(g>>18|240,g>>12&63|128,g>>6&63|128,g&63|128)}else throw new Error("Invalid code point")}return R}function N2(f){const o=[];for(let g=0;g<f.length;++g)o.push(f.charCodeAt(g)&255);return o}function j1(f,o){let g,V,A;const R=[];for(let $=0;$<f.length&&!((o-=2)<0);++$)g=f.charCodeAt($),V=g>>8,A=g%256,R.push(A),R.push(V);return R}function i2(f){return r.toByteArray(z2(f))}function I2(f,o,g,V){let A;for(A=0;A<V&&!(A+g>=o.length||A>=f.length);++A)o[A+g]=f[A];return A}function L2(f,o){return f instanceof o||f!=null&&f.constructor!=null&&f.constructor.name!=null&&f.constructor.name===o.name}function D2(f){return f!==f}const O2=function(){const f="0123456789abcdef",o=new Array(256);for(let g=0;g<16;++g){const V=g*16;for(let A=0;A<16;++A)o[V+A]=f[g]+f[A]}return o}();function _2(f){return typeof BigInt>"u"?X2:f}function X2(){throw new Error("BigInt not supported")}})(b6);async function uj1(t){const r=await nj1.get(`https://dek.appkit.net/v1/images?src=${encodeURIComponent(t)}`,{responseType:"arraybuffer",mode:"no-cors"}),e=r.headers["content-type"],h=b6.Buffer.from(r.data,"binary").toString("base64");if(h)return`data:${e};base64,${h}`}function zj1(t){return t instanceof Error?t.message:JSON.stringify(t)}const It={};function Mj1(t,r){const[e,h]=K.useState(""),[i,l]=K.useState(""),[s,u]=K.useState(!1),[x,k]=K.useState(""),L=K.useCallback(async S=>{l(""),h(""),console.log("%%% CACHE getImage",S,It);const D=btoa(S);if(It[D])console.log("%%% CACHE getImage from cache",S),h(It[D]);else{console.log("%%% CACHE getImage from url",S),u(!0);try{const G=r?await r(S):await uj1(S);if(console.log("%%% CACHE getImage base64data",G),!G)throw new Error("No data");It[D]=G,h(G)}catch(G){console.log("%%% CACHE getImage err",G),l(zj1(G))}finally{u(!1)}}},[r]);return K.useEffect(()=>{console.log("%%% CACHE useEffect src",{src:t,url:x}),t&&t!==x&&(L(t),k(t))},[t,x,L]),e&&console.log("%%% CACHE data found",e,i,s),{data:e,error:i,loading:s}}const pj1=Z1.div`
|
|
285
285
|
@keyframes dot-keyframes {
|
|
286
286
|
0% {
|
|
287
287
|
opacity: 0.4;
|