Reading from NEAR testnet…
Reading from NEAR testnet…
9BpYu1vsScisWyaDnE3RGWS4qDh5V18HkA2X1Fv5Ge3h
web4.web3stick.testnet to web4.web3stick.testnet · failed
fs_store()
//# sourceMappingURL=playground.e3642940.js.map
fs_store()
{
"mappings": "ACAA,uBAKA,uGASA,8JAUA,4DAMA,6OAiBA,kKASA,+CAIA,yDAIA,iGAkBA,qGASA,+IAUA,0CAKA,sMAaA,mGAMA,gEAKA,6EAQA",
"sources": [
"playground.a2f40fb2.css",
"src/css/page_playground.css"
],
"sourcesContent": [
"body {\n text-align: center;\n}\n\n.search-container {\n width: 100%;\n max-width: 500px;\n margin-bottom: 20px;\n display: inline-block;\n position: relative;\n}\n\n#searchBar {\n border: 1px solid var(--color-four);\n box-sizing: border-box;\n border-radius: 4px;\n width: 100%;\n padding: 10px 12px;\n font-size: 14px;\n transition: border-color .2s;\n}\n\n#searchBar:focus {\n border-color: var(--color-two);\n outline: none;\n}\n\n.suggestions-container {\n color: #000;\n border: 1px solid var(--color-four);\n z-index: 1000;\n background: #fff;\n border-radius: 4px;\n max-height: 200px;\n margin-top: 4px;\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n overflow-y: auto;\n box-shadow: 0 2px 4px #0000001a;\n}\n\n.suggestion-item {\n cursor: pointer;\n color: var(--color-text);\n border-bottom: 1px solid var(--color-four);\n padding: 8px 12px;\n font-size: 14px;\n transition: background-color .2s;\n}\n\n.suggestion-item:last-child {\n border-bottom: none;\n}\n\n.suggestion-item:hover {\n background-color: var(--color-one);\n}\n\n.suggestion-item small {\n color: var(--color-text-light);\n margin-top: 2px;\n font-size: 12px;\n display: block;\n}\n\n.controls-container {\n justify-content: center;\n align-items: center;\n gap: 20px;\n margin: 20px auto;\n display: flex;\n}\n\n#color_picker {\n border: 2px solid var(--color-four);\n cursor: pointer;\n border-radius: 4px;\n width: 100px;\n height: 50px;\n padding: 5px;\n transition: transform .2s;\n}\n\n#color_picker:hover {\n transform: scale(1.05);\n}\n\n#save_as_svg, #save_as_png {\n background-color: var(--color-four);\n color: var(--color-text);\n cursor: pointer;\n border: none;\n border-radius: 4px;\n padding: 10px 20px;\n font-size: 14px;\n font-weight: bold;\n transition: all .2s;\n}\n\n#save_as_svg:hover, #save_as_png:hover {\n background-color: var(--color-two);\n transform: translateY(-2px);\n}\n\n#save_as_svg:active, #save_as_png:active {\n transform: translateY(0);\n}\n\n.plaground_SVG {\n border: 2px solid var(--color-four);\n width: 500px;\n max-width: 90vw;\n}\n\nfooter {\n border-top: 1px solid var(--color-four);\n margin-top: 2rem;\n}\n/*# sourceMappingURL=playground.a2f40fb2.css.map */\n",
"body {\n text-align: center;\n}\n\n/* Search container */\n.search-container {\n position: relative;\n display: inline-block;\n width: 100%;\n max-width: 500px;\n margin-bottom: 20px;\n}\n\n/* Search bar */\n#searchBar {\n width: 100%;\n padding: 10px 12px;\n border: 1px solid var(--color-four);\n border-radius: 4px;\n font-size: 14px;\n box-sizing: border-box;\n transition: border-color 0.2s ease;\n}\n\n#searchBar:focus {\n outline: none;\n border-color: var(--color-two);\n}\n\n/* Suggestions container */\n.suggestions-container {\n position: absolute;\n top: 100%;\n left: 0;\n right: 0;\n background: white;\n color: black;\n border: 1px solid var(--color-four);\n border-radius: 4px;\n max-height: 200px;\n overflow-y: auto;\n z-index: 1000;\n box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);\n margin-top: 4px;\n}\n\n/* Suggestion items */\n.suggestion-item {\n padding: 8px 12px;\n cursor: pointer;\n font-size: 14px;\n color: var(--color-text);\n border-bottom: 1px solid var(--color-four);\n transition: background-color 0.2s ease;\n}\n\n.suggestion-item:last-child {\n border-bottom: none;\n}\n\n.suggestion-item:hover {\n background-color: var(--color-one);\n}\n\n.suggestion-item small {\n display: block;\n color: var(--color-text-light);\n font-size: 12px;\n margin-top: 2px;\n}\n\n\n\n\n\n\n\n\n\n\n\n/* Container for controls */\n.controls-container {\n display: flex;\n align-items: center;\n justify-content: center;\n gap: 20px;\n margin: 20px auto;\n}\n\n/* Style for the color picker */\n#color_picker {\n width: 100px;\n height: 50px;\n padding: 5px;\n border: 2px solid var(--color-four);\n border-radius: 4px;\n cursor: pointer;\n transition: transform 0.2s ease;\n}\n\n#color_picker:hover {\n transform: scale(1.05);\n}\n\n/* Style for save buttons */\n#save_as_svg,\n#save_as_png {\n padding: 10px 20px;\n background-color: var(--color-four);\n color: var(--color-text);\n border: none;\n border-radius: 4px;\n cursor: pointer;\n font-size: 14px;\n font-weight: bold;\n transition: all 0.2s ease;\n}\n\n#save_as_svg:hover,\n#save_as_png:hover {\n background-color: var(--color-two);\n transform: translateY(-2px);\n}\n\n#save_as_svg:active,\n#save_as_png:active {\n transform: translateY(0);\n}\n\n.plaground_SVG {\n width: 500px;\n /* height: 500px; */\n max-width: 90vw;\n border: 2px solid var(--color-four);\n}\n\n\nfooter {\n margin-top: 2rem;\n border-top: 1px solid var(--color-four);\n}\n\n\n\n\n"
],
"names": [],
"version": 3,
"file": "playground.a2f40fb2.css.map"
}fs_store()
{
"mappings": "ACCA,SAAS,gBAAgB,CAAC,mBAAoB,WAC1C,IAAM,EAAc,SAAS,cAAc,CAAC,gBACtC,EAAU,SAAS,aAAa,CAAC,uBAGvC,EAAY,gBAAgB,CAAC,QAAS,SAAS,CAAC,EAE5C,EAAQ,YAAY,CAAC,OAAQ,EAAE,MAAM,CAAC,KAAK,CAC/C,GAEA,EAAY,gBAAgB,CAAC,SAAU,SAAS,CAAC,EAE7C,EAAQ,YAAY,CAAC,OAAQ,EAAE,MAAM,CAAC,KAAK,CAC/C,EACJ",
"sources": [
"<anon>",
"src/js/playground/playground_color.js"
],
"sourcesContent": [
"// Get the color picker and SVG rect element\ndocument.addEventListener('DOMContentLoaded', function() {\n const colorPicker = document.getElementById('color_picker');\n const svgRect = document.querySelector('.plaground_SVG rect');\n // Add event listener for color changes\n colorPicker.addEventListener('input', function(e) {\n // Update the SVG rectangle fill color\n svgRect.setAttribute('fill', e.target.value);\n });\n colorPicker.addEventListener('change', function(e) {\n // Final color selection\n svgRect.setAttribute('fill', e.target.value);\n });\n});\n\n//# sourceMappingURL=playground.cc27e6b3.js.map\n",
"// Get the color picker and SVG rect element\ndocument.addEventListener('DOMContentLoaded', function() {\n const colorPicker = document.getElementById('color_picker');\n const svgRect = document.querySelector('.plaground_SVG rect');\n\n // Add event listener for color changes\n colorPicker.addEventListener('input', function(e) {\n // Update the SVG rectangle fill color\n svgRect.setAttribute('fill', e.target.value);\n });\n\n colorPicker.addEventListener('change', function(e) {\n // Final color selection\n svgRect.setAttribute('fill', e.target.value);\n });\n});"
],
"names": [
"document",
"addEventListener",
"colorPicker",
"getElementById",
"svgRect",
"querySelector",
"e",
"setAttribute",
"target",
"value"
],
"version": 3,
"file": "playground.cc27e6b3.js.map"
}fs_store()
//# sourceMappingURL=playground.1299c7a4.js.map
fs_store()
<!doctype html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>WEB3STICK</title><link rel="icon shortcut" type="image/x-icon" href="/web3stick.2f189c3f.png"><meta name="title" content="WEB3STICK"><meta name="description" content="A social experiment and playground project featuring stick figure NFTs on the NEAR blockchain. Create and customize your own web3stick account."><meta name="keywords" content="web3, NFT, NEAR Protocol, stick figure, blockchain, web3stick, cryptocurrency, digital art"><meta name="author" content="nonresistant.near and sleet.near"><meta name="robots" content="index, follow"><meta name="language" content="English"><meta name="revisit-after" content="7 days"><meta name="distribution" content="global"><meta name="rating" content="general"><meta name="copyright" content="web3stick"><meta name="author" content="web3stick"><meta property="og:type" content="website"><base target="_blank"><link rel="stylesheet" href="/workspace.6d8e5b3f.css"><link rel="stylesheet" href="/playground.a2f40fb2.css"></head><body> <article> <h2>PLAYGROUND</h2> <p>add color and art to your stick figure nft</p> <div class="search-container"> <input type="text" id="searchBar" placeholder="Enter your NFT name"> </div> <p style="font-size:14px">make sure you only play with and share your own nft</p> <div class="plaground_SVG_div"> <svg class="plaground_SVG" viewBox="0 0 1080 1080"><rect width="1080" height="1080" fill="#E0DFC9"/><image width="1080" height="1080" href="/web3stick.2f189c3f.png" style="mix-blend-mode:difference"/></svg> </div> <div class="controls-container"> <input type="color" id="color_picker" value="#ff0000"> <button id="save_as_svg">SAVE SVG</button> <button id="save_as_png">SAVE PNG</button> </div> <footer> <a href="/index.html" target="_self">home</a> <a href="/hello.html" target="_self">hello</a> <a href="/playground.html" target="_self">playground</a> <a href="/gallery.html" target="_self">gallery</a> <a href="/about.html" target="_self">about</a> <a href="/store.html" target="_self">store</a> </footer> </article> <script src="/workspace.74d2f5f8.js"></script> <script src="/playground.cc27e6b3.js"></script> <script src="/playground.4d781baf.js"></script> <script src="/playground.e3642940.js"></script> <script src="/playground.1299c7a4.js"></script> </body></html>
fs_store()
for(var t,e,r=function(t){for(var e,r=t.length,i=r%3,o=[],f=0,s=r-i;f<s;f+=16383)o.push(function(t,e,r){for(var i,o=[],f=e;f<r;f+=3)i=(t[f]<<16&0xff0000)+(t[f+1]<<8&65280)+(255&t[f+2]),o.push(n[i>>18&63]+n[i>>12&63]+n[i>>6&63]+n[63&i]);return o.join("")}(t,f,f+16383>s?s:f+16383));return 1===i?o.push(n[(e=t[r-1])>>2]+n[e<<4&63]+"=="):2===i&&o.push(n[(e=(t[r-2]<<8)+t[r-1])>>10]+n[e>>4&63]+n[e<<2&63]+"="),o.join("")},n=[],i=[],o="undefined"!=typeof Uint8Array?Uint8Array:Array,f="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,u=f.length;s<u;++s)n[s]=f[s],i[f.charCodeAt(s)]=s;i[45]=62,i[95]=63,t=function(t,e,r,n,i){var o,f,s=8*i-n-1,u=(1<<s)-1,a=u>>1,h=-7,l=r?i-1:0,c=r?-1:1,p=t[e+l];for(l+=c,o=p&(1<<-h)-1,p>>=-h,h+=s;h>0;o=256*o+t[e+l],l+=c,h-=8);for(f=o&(1<<-h)-1,o>>=-h,h+=n;h>0;f=256*f+t[e+l],l+=c,h-=8);if(0===o)o=1-a;else{if(o===u)return f?NaN:1/0*(p?-1:1);f+=Math.pow(2,n),o-=a}return(p?-1:1)*f*Math.pow(2,o-n)},e=function(t,e,r,n,i,o){var f,s,u,a=8*o-i-1,h=(1<<a)-1,l=h>>1,c=5960464477539062e-23*(23===i),p=n?0:o-1,g=n?1:-1,y=+(e<0||0===e&&1/e<0);for(isNaN(e=Math.abs(e))||e===1/0?(s=+!!isNaN(e),f=h):(f=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-f))<1&&(f--,u*=2),f+l>=1?e+=c/u:e+=c*Math.pow(2,1-l),e*u>=2&&(f++,u/=2),f+l>=h?(s=0,f=h):f+l>=1?(s=(e*u-1)*Math.pow(2,i),f+=l):(s=e*Math.pow(2,l-1)*Math.pow(2,i),f=0));i>=8;t[r+p]=255&s,p+=g,s/=256,i-=8);for(f=f<<i|s,a+=i;a>0;t[r+p]=255&f,p+=g,f/=256,a-=8);t[r+p-g]|=128*y};const a="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("nodejs.util.inspect.custom"):null;function h(t){if(t>0x7fffffff)throw RangeError('The value "'+t+'" is invalid for option "size"');let e=new Uint8Array(t);return Object.setPrototypeOf(e,l.prototype),e}function l(t,e,r){if("number"==typeof t){if("string"==typeof e)throw TypeError('The "string" argument must be of type string. Received type number');return g(t)}return c(t,e,r)}function c(t,e,r){if("string"==typeof t){var n=t,i=e;if(("string"!=typeof i||""===i)&&(i="utf8"),!l.isEncoding(i))throw TypeError("Unknown encoding: "+i);let r=0|b(n,i),o=h(r),f=o.write(n,i);return f!==r&&(o=o.slice(0,f)),o}if(ArrayBuffer.isView(t)){var o=t;if(D(o,Uint8Array)){let t=new Uint8Array(o);return d(t.buffer,t.byteOffset,t.byteLength)}return y(o)}if(null==t)throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);if(D(t,ArrayBuffer)||t&&D(t.buffer,ArrayBuffer)||"undefined"!=typeof SharedArrayBuffer&&(D(t,SharedArrayBuffer)||t&&D(t.buffer,SharedArrayBuffer)))return d(t,e,r);if("number"==typeof t)throw TypeError('The "value" argument must not be of type number. Received type number');let f=t.valueOf&&t.valueOf();if(null!=f&&f!==t)return l.from(f,e,r);let s=function(t){if(l.isBuffer(t)){let e=0|m(t.length),r=h(e);return 0===r.length||t.copy(r,0,0,e),r}return void 0!==t.length?"number"!=typeof t.length||function(t){return t!=t}(t.length)?h(0):y(t):"Buffer"===t.type&&Array.isArray(t.data)?y(t.data):void 0}(t);if(s)return s;if("undefined"!=typeof Symbol&&null!=Symbol.toPrimitive&&"function"==typeof t[Symbol.toPrimitive])return l.from(t[Symbol.toPrimitive]("string"),e,r);throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t)}function p(t){if("number"!=typeof t)throw TypeError('"size" argument must be of type number');if(t<0)throw RangeError('The value "'+t+'" is invalid for option "size"')}function g(t){return p(t),h(t<0?0:0|m(t))}function y(t){let e=t.length<0?0:0|m(t.length),r=h(e);for(let n=0;n<e;n+=1)r[n]=255&t[n];return r}function d(t,e,r){let n;if(e<0||t.byteLength<e)throw RangeError('"offset" is outside of buffer bounds');if(t.byteLength<e+(r||0))throw RangeError('"length" is outside of buffer bounds');return Object.setPrototypeOf(n=void 0===e&&void 0===r?new Uint8Array(t):void 0===r?new Uint8Array(t,e):new Uint8Array(t,e,r),l.prototype),n}function m(t){if(t>=0x7fffffff)throw RangeError("Attempt to allocate Buffer larger than maximum size: 0x7fffffff bytes");return 0|t}function b(t,e){if(l.isBuffer(t))return t.length;if(ArrayBuffer.isView(t)||D(t,ArrayBuffer))return t.byteLength;if("string"!=typeof t)throw TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof t);let r=t.length,n=arguments.length>2&&!0===arguments[2];if(!n&&0===r)return 0;let i=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return k(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return P(t).length;default:if(i)return n?-1:k(t).length;e=(""+e).toLowerCase(),i=!0}}function w(t,e,n){let i=!1;if((void 0===e||e<0)&&(e=0),e>this.length||((void 0===n||n>this.length)&&(n=this.length),n<=0||(n>>>=0)<=(e>>>=0)))return"";for(t||(t="utf8");;)switch(t){case"hex":return function(t,e,r){let n=t.length;(!e||e<0)&&(e=0),(!r||r<0||r>n)&&(r=n);let i="";for(let n=e;n<r;++n)i+=z[t[n]];return i}(this,e,n);case"utf8":case"utf-8":return v(this,e,n);case"ascii":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(127&t[i]);return n}(this,e,n);case"latin1":case"binary":return function(t,e,r){let n="";r=Math.min(t.length,r);for(let i=e;i<r;++i)n+=String.fromCharCode(t[i]);return n}(this,e,n);case"base64":var o,f,s;return o=this,f=e,s=n,0===f&&s===o.length?r(o):r(o.slice(f,s));case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return function(t,e,r){let n=t.slice(e,r),i="";for(let t=0;t<n.length-1;t+=2)i+=String.fromCharCode(n[t]+256*n[t+1]);return i}(this,e,n);default:if(i)throw TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function E(t,e,r){let n=t[e];t[e]=t[r],t[r]=n}function B(t,e,r,n,i){var o;if(0===t.length)return -1;if("string"==typeof r?(n=r,r=0):r>0x7fffffff?r=0x7fffffff:r<-0x80000000&&(r=-0x80000000),(o=r*=1)!=o&&(r=i?0:t.length-1),r<0&&(r=t.length+r),r>=t.length)if(i)return -1;else r=t.length-1;else if(r<0)if(!i)return -1;else r=0;if("string"==typeof e&&(e=l.from(e,n)),l.isBuffer(e))return 0===e.length?-1:I(t,e,r,n,i);if("number"==typeof e){if(e&=255,"function"==typeof Uint8Array.prototype.indexOf)if(i)return Uint8Array.prototype.indexOf.call(t,e,r);else return Uint8Array.prototype.lastIndexOf.call(t,e,r);return I(t,[e],r,n,i)}throw TypeError("val must be string, number or Buffer")}function I(t,e,r,n,i){let o,f=1,s=t.length,u=e.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(t.length<2||e.length<2)return -1;f=2,s/=2,u/=2,r/=2}function a(t,e){return 1===f?t[e]:t.readUInt16BE(e*f)}if(i){let n=-1;for(o=r;o<s;o++)if(a(t,o)===a(e,-1===n?0:o-n)){if(-1===n&&(n=o),o-n+1===u)return n*f}else -1!==n&&(o-=o-n),n=-1}else for(r+u>s&&(r=s-u),o=r;o>=0;o--){let r=!0;for(let n=0;n<u;n++)if(a(t,o+n)!==a(e,n)){r=!1;break}if(r)return o}return -1}function v(t,e,r){r=Math.min(t.length,r);let n=[],i=e;for(;i<r;){let e=t[i],o=null,f=e>239?4:e>223?3:e>191?2:1;if(i+f<=r){let r,n,s,u;switch(f){case 1:e<128&&(o=e);break;case 2:(192&(r=t[i+1]))==128&&(u=(31&e)<<6|63&r)>127&&(o=u);break;case 3:r=t[i+1],n=t[i+2],(192&r)==128&&(192&n)==128&&(u=(15&e)<<12|(63&r)<<6|63&n)>2047&&(u<55296||u>57343)&&(o=u);break;case 4:r=t[i+1],n=t[i+2],s=t[i+3],(192&r)==128&&(192&n)==128&&(192&s)==128&&(u=(15&e)<<18|(63&r)<<12|(63&n)<<6|63&s)>65535&&u<1114112&&(o=u)}}null===o?(o=65533,f=1):o>65535&&(o-=65536,n.push(o>>>10&1023|55296),o=56320|1023&o),n.push(o),i+=f}var o=n;let f=o.length;if(f<=4096)return String.fromCharCode.apply(String,o);let s="",u=0;for(;u<f;)s+=String.fromCharCode.apply(String,o.slice(u,u+=4096));return s}function A(t,e,r){if(t%1!=0||t<0)throw RangeError("offset is not uint");if(t+e>r)throw RangeError("Trying to access beyond buffer length")}function U(t,e,r,n,i,o){if(!l.isBuffer(t))throw TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<o)throw RangeError('"value" argument is out of bounds');if(r+n>t.length)throw RangeError("Index out of range")}function T(t,e,r,n,i){C(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o,o>>=8,t[r++]=o;let f=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r++]=f,f>>=8,t[r++]=f,f>>=8,t[r++]=f,f>>=8,t[r++]=f,r}function x(t,e,r,n,i){C(e,n,i,t,r,7);let o=Number(e&BigInt(0xffffffff));t[r+7]=o,o>>=8,t[r+6]=o,o>>=8,t[r+5]=o,o>>=8,t[r+4]=o;let f=Number(e>>BigInt(32)&BigInt(0xffffffff));return t[r+3]=f,f>>=8,t[r+2]=f,f>>=8,t[r+1]=f,f>>=8,t[r]=f,r+8}function O(t,e,r,n,i,o){if(r+n>t.length||r<0)throw RangeError("Index out of range")}function R(t,r,n,i,o){return r*=1,n>>>=0,o||O(t,r,n,4,34028234663852886e22,-34028234663852886e22),e(t,r,n,i,23,4),n+4}function L(t,r,n,i,o){return r*=1,n>>>=0,o||O(t,r,n,8,17976931348623157e292,-17976931348623157e292),e(t,r,n,i,52,8),n+8}l.TYPED_ARRAY_SUPPORT=function(){try{let t=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(t,e),42===t.foo()}catch(t){return!1}}(),l.TYPED_ARRAY_SUPPORT||"undefined"==typeof console||"function"!=typeof console.error||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."),Object.defineProperty(l.prototype,"parent",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.buffer}}),Object.defineProperty(l.prototype,"offset",{enumerable:!0,get:function(){if(l.isBuffer(this))return this.byteOffset}}),l.poolSize=8192,l.from=function(t,e,r){return c(t,e,r)},Object.setPrototypeOf(l.prototype,Uint8Array.prototype),Object.setPrototypeOf(l,Uint8Array),l.alloc=function(t,e,r){return(p(t),t<=0)?h(t):void 0!==e?"string"==typeof r?h(t).fill(e,r):h(t).fill(e):h(t)},l.allocUnsafe=function(t){return g(t)},l.allocUnsafeSlow=function(t){return g(t)},l.isBuffer=function(t){return null!=t&&!0===t._isBuffer&&t!==l.prototype},l.compare=function(t,e){if(D(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),D(e,Uint8Array)&&(e=l.from(e,e.offset,e.byteLength)),!l.isBuffer(t)||!l.isBuffer(e))throw TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(t===e)return 0;let r=t.length,n=e.length;for(let i=0,o=Math.min(r,n);i<o;++i)if(t[i]!==e[i]){r=t[i],n=e[i];break}return r<n?-1:+(n<r)},l.isEncoding=function(t){switch(String(t).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}},l.concat=function(t,e){let r;if(!Array.isArray(t))throw TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return l.alloc(0);if(void 0===e)for(r=0,e=0;r<t.length;++r)e+=t[r].length;let n=l.allocUnsafe(e),i=0;for(r=0;r<t.length;++r){let e=t[r];if(D(e,Uint8Array))i+e.length>n.length?(l.isBuffer(e)||(e=l.from(e)),e.copy(n,i)):Uint8Array.prototype.set.call(n,e,i);else if(l.isBuffer(e))e.copy(n,i);else throw TypeError('"list" argument must be an Array of Buffers');i+=e.length}return n},l.byteLength=b,l.prototype._isBuffer=!0,l.prototype.swap16=function(){let t=this.length;if(t%2!=0)throw RangeError("Buffer size must be a multiple of 16-bits");for(let e=0;e<t;e+=2)E(this,e,e+1);return this},l.prototype.swap32=function(){let t=this.length;if(t%4!=0)throw RangeError("Buffer size must be a multiple of 32-bits");for(let e=0;e<t;e+=4)E(this,e,e+3),E(this,e+1,e+2);return this},l.prototype.swap64=function(){let t=this.length;if(t%8!=0)throw RangeError("Buffer size must be a multiple of 64-bits");for(let e=0;e<t;e+=8)E(this,e,e+7),E(this,e+1,e+6),E(this,e+2,e+5),E(this,e+3,e+4);return this},l.prototype.toString=function(){let t=this.length;return 0===t?"":0==arguments.length?v(this,0,t):w.apply(this,arguments)},l.prototype.toLocaleString=l.prototype.toString,l.prototype.equals=function(t){if(!l.isBuffer(t))throw TypeError("Argument must be a Buffer");return this===t||0===l.compare(this,t)},l.prototype.inspect=function(){let t="";return t=this.toString("hex",0,50).replace(/(.{2})/g,"$1 ").trim(),this.length>50&&(t+=" ... "),"<Buffer "+t+">"},a&&(l.prototype[a]=l.prototype.inspect),l.prototype.compare=function(t,e,r,n,i){if(D(t,Uint8Array)&&(t=l.from(t,t.offset,t.byteLength)),!l.isBuffer(t))throw TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof t);if(void 0===e&&(e=0),void 0===r&&(r=t?t.length:0),void 0===n&&(n=0),void 0===i&&(i=this.length),e<0||r>t.length||n<0||i>this.length)throw RangeError("out of range index");if(n>=i&&e>=r)return 0;if(n>=i)return -1;if(e>=r)return 1;if(e>>>=0,r>>>=0,n>>>=0,i>>>=0,this===t)return 0;let o=i-n,f=r-e,s=Math.min(o,f),u=this.slice(n,i),a=t.slice(e,r);for(let t=0;t<s;++t)if(u[t]!==a[t]){o=u[t],f=a[t];break}return o<f?-1:+(f<o)},l.prototype.includes=function(t,e,r){return -1!==this.indexOf(t,e,r)},l.prototype.indexOf=function(t,e,r){return B(this,t,e,r,!0)},l.prototype.lastIndexOf=function(t,e,r){return B(this,t,e,r,!1)},l.prototype.write=function(t,e,r,n){var i,o,f,s,u,a,h,l;if(void 0===e)n="utf8",r=this.length,e=0;else if(void 0===r&&"string"==typeof e)n=e,r=this.length,e=0;else if(isFinite(e))e>>>=0,isFinite(r)?(r>>>=0,void 0===n&&(n="utf8")):(n=r,r=void 0);else throw Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let c=this.length-e;if((void 0===r||r>c)&&(r=c),t.length>0&&(r<0||e<0)||e>this.length)throw RangeError("Attempt to write outside buffer bounds");n||(n="utf8");let p=!1;for(;;)switch(n){case"hex":return function(t,e,r,n){let i;r=Number(r)||0;let o=t.length-r;n?(n=Number(n))>o&&(n=o):n=o;let f=e.length;for(n>f/2&&(n=f/2),i=0;i<n;++i){var s;let n=parseInt(e.substr(2*i,2),16);if((s=n)!=s)break;t[r+i]=n}return i}(this,t,e,r);case"utf8":case"utf-8":return i=e,o=r,j(k(t,this.length-i),this,i,o);case"ascii":case"latin1":case"binary":return f=e,s=r,j(function(t){let e=[];for(let r=0;r<t.length;++r)e.push(255&t.charCodeAt(r));return e}(t),this,f,s);case"base64":return u=e,a=r,j(P(t),this,u,a);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return h=e,l=r,j(function(t,e){let r,n,i=[];for(let o=0;o<t.length&&!((e-=2)<0);++o)n=(r=t.charCodeAt(o))>>8,i.push(r%256),i.push(n);return i}(t,this.length-h),this,h,l);default:if(p)throw TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),p=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}},l.prototype.slice=function(t,e){let r=this.length;t=~~t,e=void 0===e?r:~~e,t<0?(t+=r)<0&&(t=0):t>r&&(t=r),e<0?(e+=r)<0&&(e=0):e>r&&(e=r),e<t&&(e=t);let n=this.subarray(t,e);return Object.setPrototypeOf(n,l.prototype),n},l.prototype.readUintLE=l.prototype.readUIntLE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n},l.prototype.readUintBE=l.prototype.readUIntBE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);let n=this[t+--e],i=1;for(;e>0&&(i*=256);)n+=this[t+--e]*i;return n},l.prototype.readUint8=l.prototype.readUInt8=function(t,e){return t>>>=0,e||A(t,1,this.length),this[t]},l.prototype.readUint16LE=l.prototype.readUInt16LE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]|this[t+1]<<8},l.prototype.readUint16BE=l.prototype.readUInt16BE=function(t,e){return t>>>=0,e||A(t,2,this.length),this[t]<<8|this[t+1]},l.prototype.readUint32LE=l.prototype.readUInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+0x1000000*this[t+3]},l.prototype.readUint32BE=l.prototype.readUInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),0x1000000*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},l.prototype.readBigUInt64LE=J(function(t){$(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&M(t,this.length-8);let n=e+256*this[++t]+65536*this[++t]+0x1000000*this[++t],i=this[++t]+256*this[++t]+65536*this[++t]+0x1000000*r;return BigInt(n)+(BigInt(i)<<BigInt(32))}),l.prototype.readBigUInt64BE=J(function(t){$(t>>>=0,"offset");let e=this[t],r=this[t+7];(void 0===e||void 0===r)&&M(t,this.length-8);let n=0x1000000*e+65536*this[++t]+256*this[++t]+this[++t],i=0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r;return(BigInt(n)<<BigInt(32))+BigInt(i)}),l.prototype.readIntLE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);let n=this[t],i=1,o=0;for(;++o<e&&(i*=256);)n+=this[t+o]*i;return n>=(i*=128)&&(n-=Math.pow(2,8*e)),n},l.prototype.readIntBE=function(t,e,r){t>>>=0,e>>>=0,r||A(t,e,this.length);let n=e,i=1,o=this[t+--n];for(;n>0&&(i*=256);)o+=this[t+--n]*i;return o>=(i*=128)&&(o-=Math.pow(2,8*e)),o},l.prototype.readInt8=function(t,e){return(t>>>=0,e||A(t,1,this.length),128&this[t])?-((255-this[t]+1)*1):this[t]},l.prototype.readInt16LE=function(t,e){t>>>=0,e||A(t,2,this.length);let r=this[t]|this[t+1]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt16BE=function(t,e){t>>>=0,e||A(t,2,this.length);let r=this[t+1]|this[t]<<8;return 32768&r?0xffff0000|r:r},l.prototype.readInt32LE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},l.prototype.readInt32BE=function(t,e){return t>>>=0,e||A(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},l.prototype.readBigInt64LE=J(function(t){$(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&M(t,this.length-8),(BigInt(this[t+4]+256*this[t+5]+65536*this[t+6]+(r<<24))<<BigInt(32))+BigInt(e+256*this[++t]+65536*this[++t]+0x1000000*this[++t])}),l.prototype.readBigInt64BE=J(function(t){$(t>>>=0,"offset");let e=this[t],r=this[t+7];return(void 0===e||void 0===r)&&M(t,this.length-8),(BigInt((e<<24)+65536*this[++t]+256*this[++t]+this[++t])<<BigInt(32))+BigInt(0x1000000*this[++t]+65536*this[++t]+256*this[++t]+r)}),l.prototype.readFloatLE=function(e,r){return e>>>=0,r||A(e,4,this.length),t(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,r){return e>>>=0,r||A(e,4,this.length),t(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,r){return e>>>=0,r||A(e,8,this.length),t(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,r){return e>>>=0,r||A(e,8,this.length),t(this,e,!1,52,8)},l.prototype.writeUintLE=l.prototype.writeUIntLE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;U(this,t,e,r,n,0)}let i=1,o=0;for(this[e]=255&t;++o<r&&(i*=256);)this[e+o]=t/i&255;return e+r},l.prototype.writeUintBE=l.prototype.writeUIntBE=function(t,e,r,n){if(t*=1,e>>>=0,r>>>=0,!n){let n=Math.pow(2,8*r)-1;U(this,t,e,r,n,0)}let i=r-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+r},l.prototype.writeUint8=l.prototype.writeUInt8=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,1,255,0),this[e]=255&t,e+1},l.prototype.writeUint16LE=l.prototype.writeUInt16LE=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,2,65535,0),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeUint16BE=l.prototype.writeUInt16BE=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,2,65535,0),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeUint32LE=l.prototype.writeUInt32LE=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,4,0xffffffff,0),this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t,e+4},l.prototype.writeUint32BE=l.prototype.writeUInt32BE=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,4,0xffffffff,0),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigUInt64LE=J(function(t,e=0){return T(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeBigUInt64BE=J(function(t,e=0){return x(this,t,e,BigInt(0),BigInt("0xffffffffffffffff"))}),l.prototype.writeIntLE=function(t,e,r,n){if(t*=1,e>>>=0,!n){let n=Math.pow(2,8*r-1);U(this,t,e,r,n-1,-n)}let i=0,o=1,f=0;for(this[e]=255&t;++i<r&&(o*=256);)t<0&&0===f&&0!==this[e+i-1]&&(f=1),this[e+i]=(t/o|0)-f&255;return e+r},l.prototype.writeIntBE=function(t,e,r,n){if(t*=1,e>>>=0,!n){let n=Math.pow(2,8*r-1);U(this,t,e,r,n-1,-n)}let i=r-1,o=1,f=0;for(this[e+i]=255&t;--i>=0&&(o*=256);)t<0&&0===f&&0!==this[e+i+1]&&(f=1),this[e+i]=(t/o|0)-f&255;return e+r},l.prototype.writeInt8=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,1,127,-128),t<0&&(t=255+t+1),this[e]=255&t,e+1},l.prototype.writeInt16LE=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,2,32767,-32768),this[e]=255&t,this[e+1]=t>>>8,e+2},l.prototype.writeInt16BE=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,2,32767,-32768),this[e]=t>>>8,this[e+1]=255&t,e+2},l.prototype.writeInt32LE=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,4,0x7fffffff,-0x80000000),this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24,e+4},l.prototype.writeInt32BE=function(t,e,r){return t*=1,e>>>=0,r||U(this,t,e,4,0x7fffffff,-0x80000000),t<0&&(t=0xffffffff+t+1),this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t,e+4},l.prototype.writeBigInt64LE=J(function(t,e=0){return T(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeBigInt64BE=J(function(t,e=0){return x(this,t,e,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),l.prototype.writeFloatLE=function(t,e,r){return R(this,t,e,!0,r)},l.prototype.writeFloatBE=function(t,e,r){return R(this,t,e,!1,r)},l.prototype.writeDoubleLE=function(t,e,r){return L(this,t,e,!0,r)},l.prototype.writeDoubleBE=function(t,e,r){return L(this,t,e,!1,r)},l.prototype.copy=function(t,e,r,n){if(!l.isBuffer(t))throw TypeError("argument should be a Buffer");if(r||(r=0),n||0===n||(n=this.length),e>=t.length&&(e=t.length),e||(e=0),n>0&&n<r&&(n=r),n===r||0===t.length||0===this.length)return 0;if(e<0)throw RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw RangeError("Index out of range");if(n<0)throw RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),t.length-e<n-r&&(n=t.length-e+r);let i=n-r;return this===t&&"function"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(e,r,n):Uint8Array.prototype.set.call(t,this.subarray(r,n),e),i},l.prototype.fill=function(t,e,r,n){let i;if("string"==typeof t){if("string"==typeof e?(n=e,e=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),void 0!==n&&"string"!=typeof n)throw TypeError("encoding must be a string");if("string"==typeof n&&!l.isEncoding(n))throw TypeError("Unknown encoding: "+n);if(1===t.length){let e=t.charCodeAt(0);("utf8"===n&&e<128||"latin1"===n)&&(t=e)}}else"number"==typeof t?t&=255:"boolean"==typeof t&&(t=Number(t));if(e<0||this.length<e||this.length<r)throw RangeError("Out of range index");if(r<=e)return this;if(e>>>=0,r=void 0===r?this.length:r>>>0,t||(t=0),"number"==typeof t)for(i=e;i<r;++i)this[i]=t;else{let o=l.isBuffer(t)?t:l.from(t,n),f=o.length;if(0===f)throw TypeError('The value "'+t+'" is invalid for argument "value"');for(i=0;i<r-e;++i)this[i+e]=o[i%f]}return this};const _={};function S(t,e,r){_[t]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${t}]`,this.stack,delete this.name}get code(){return t}set code(t){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:t,writable:!0})}toString(){return`${this.name} [${t}]: ${this.message}`}}}function N(t){let e="",r=t.length,n=+("-"===t[0]);for(;r>=n+4;r-=3)e=`_${t.slice(r-3,r)}${e}`;return`${t.slice(0,r)}${e}`}function C(t,e,r,n,i,o){if(t>r||t<e){let n,i="bigint"==typeof e?"n":"";throw n=o>3?0===e||e===BigInt(0)?`>= 0${i} and < 2${i} ** ${(o+1)*8}${i}`:`>= -(2${i} ** ${(o+1)*8-1}${i}) and < 2 ** ${(o+1)*8-1}${i}`:`>= ${e}${i} and <= ${r}${i}`,new _.ERR_OUT_OF_RANGE("value",n,t)}$(i,"offset"),(void 0===n[i]||void 0===n[i+o])&&M(i,n.length-(o+1))}function $(t,e){if("number"!=typeof t)throw new _.ERR_INVALID_ARG_TYPE(e,"number",t)}function M(t,e,r){if(Math.floor(t)!==t)throw $(t,r),new _.ERR_OUT_OF_RANGE(r||"offset","an integer",t);if(e<0)throw new _.ERR_BUFFER_OUT_OF_BOUNDS;throw new _.ERR_OUT_OF_RANGE(r||"offset",`>= ${+!!r} and <= ${e}`,t)}S("ERR_BUFFER_OUT_OF_BOUNDS",function(t){return t?`${t} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),S("ERR_INVALID_ARG_TYPE",function(t,e){return`The "${t}" argument must be of type number. Received type ${typeof e}`},TypeError),S("ERR_OUT_OF_RANGE",function(t,e,r){let n=`The value of "${t}" is out of range.`,i=r;return Number.isInteger(r)&&Math.abs(r)>0x100000000?i=N(String(r)):"bigint"==typeof r&&(i=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(i=N(i)),i+="n"),n+=` It must be ${e}. Received ${i}`},RangeError);const F=/[^+/0-9A-Za-z-_]/g;function k(t,e){let r;e=e||1/0;let n=t.length,i=null,o=[];for(let f=0;f<n;++f){if((r=t.charCodeAt(f))>55295&&r<57344){if(!i){if(r>56319||f+1===n){(e-=3)>-1&&o.push(239,191,189);continue}i=r;continue}if(r<56320){(e-=3)>-1&&o.push(239,191,189),i=r;continue}r=(i-55296<<10|r-56320)+65536}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,r<128){if((e-=1)<0)break;o.push(r)}else if(r<2048){if((e-=2)<0)break;o.push(r>>6|192,63&r|128)}else if(r<65536){if((e-=3)<0)break;o.push(r>>12|224,r>>6&63|128,63&r|128)}else if(r<1114112){if((e-=4)<0)break;o.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}else throw Error("Invalid code point")}return o}function P(t){return function(t){var e,r,n=function(t){var e=t.length;if(e%4>0)throw Error("Invalid string. Length must be a multiple of 4");var r=t.indexOf("=");-1===r&&(r=e);var n=r===e?0:4-r%4;return[r,n]}(t),f=n[0],s=n[1],u=new o((f+s)*3/4-s),a=0,h=s>0?f-4:f;for(r=0;r<h;r+=4)e=i[t.charCodeAt(r)]<<18|i[t.charCodeAt(r+1)]<<12|i[t.charCodeAt(r+2)]<<6|i[t.charCodeAt(r+3)],u[a++]=e>>16&255,u[a++]=e>>8&255,u[a++]=255&e;return 2===s&&(e=i[t.charCodeAt(r)]<<2|i[t.charCodeAt(r+1)]>>4,u[a++]=255&e),1===s&&(e=i[t.charCodeAt(r)]<<10|i[t.charCodeAt(r+1)]<<4|i[t.charCodeAt(r+2)]>>2,u[a++]=e>>8&255,u[a++]=255&e),u}(function(t){if((t=(t=t.split("=")[0]).trim().replace(F,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function j(t,e,r,n){let i;for(i=0;i<n&&!(i+r>=e.length)&&!(i>=t.length);++i)e[i+r]=t[i];return i}function D(t,e){return t instanceof e||null!=t&&null!=t.constructor&&null!=t.constructor.name&&t.constructor.name===e.name}const z=function(){let t="0123456789abcdef",e=Array(256);for(let r=0;r<16;++r){let n=16*r;for(let i=0;i<16;++i)e[n+i]=t[r]+t[i]}return e}();function J(t){return"undefined"==typeof BigInt?q:t}function q(){throw Error("BigInt not supported")}const G="https://free.rpc.fastnear.com",Y="lncernft.learnclub.near",V="web3stick_nft_data",H="web3stick_nft_timestamp";async function W(){try{let t=await Q();if(t)return console.log("Using cached NFT data"),t;console.log("Fetching fresh NFT data...");let e=await Z();console.log("Total NFT supply:",e);let r=[];for(let t=0;t<e;t+=50){let e=await K(t);r.push(...e),console.log(`Fetched batch ${t} to ${t+e.length}`)}return await X(r),r}catch(t){return console.error("Error fetching NFT data:",t),[]}}async function Z(){try{let t=await fetch(G,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:"dontcare",method:"query",params:{request_type:"call_function",finality:"final",account_id:Y,method_name:"nft_total_supply",args_base64:l.from("{}").toString("base64")}})}),e=await t.json();if(!e.result||!e.result.result)throw Error("Invalid response format");let r=l.from(e.result.result).toString("utf8"),n=parseInt(r.replace(/"/g,""));if(isNaN(n))throw Error("Failed to parse total supply value");return n}catch(t){throw console.error("Error in fetchTotalSupply:",t),t}}async function K(t){try{let e=JSON.stringify({from_index:t.toString()}),r=await fetch(G,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:"dontcare",method:"query",params:{request_type:"call_function",finality:"final",account_id:Y,method_name:"nft_tokens",args_base64:l.from(e).toString("base64")}})}),n=await r.json();if(!n.result||!n.result.result)throw Error("Invalid response format");let i=l.from(n.result.result,"base64").toString("utf8");return JSON.parse(i)}catch(t){throw console.error("Error in fetchNFTBatch:",t),t}}async function Q(){let t=localStorage.getItem(H),e=localStorage.getItem(V);return t&&e?Date.now()-parseInt(t)>864e5?(console.log("Cache expired"),null):JSON.parse(e):null}async function X(t){try{localStorage.setItem(V,JSON.stringify(t)),localStorage.setItem(H,Date.now().toString()),console.log("NFT data cached successfully")}catch(t){console.error("Error caching NFT data:",t)}}let tt=1,te=10,tr=[];async function tn(){console.log("Initializing NFT gallery...");let t=await W();t&&t.length>0&&(tr=t,function(){let t=document.getElementById("loading-spinner");t&&(t.style.display="none")}(),function(){let t=document.getElementById("nft-search"),e=document.getElementById("items-per-page"),r=document.getElementById("prev-page"),n=document.getElementById("next-page");t.addEventListener("input",ti),e.addEventListener("change",to),r.addEventListener("click",()=>tf(-1)),n.addEventListener("click",()=>tf(1))}(),ts())}function ti(t){let e=t.target.value.toLowerCase();tr=(JSON.parse(localStorage.getItem("web3stick_nft_data"))||[]).filter(t=>{let r=(t.metadata.title||"").toLowerCase(),n=(t.owner_id||"").toLowerCase();return r.includes(e)||n.includes(e)}),tt=1,ts()}function to(t){te=parseInt(t.target.value),tt=1,ts()}function tf(t){let e=Math.ceil(tr.length/te),r=tt+t;r>=1&&r<=e&&(tt=r,ts())}function ts(){let t=(tt-1)*te,e=t+te;(function(t){let e=document.getElementById("nft-gallery");e.innerHTML="",t.forEach(t=>{let r=function(t){let e=document.createElement("div");e.className="nft-card";let r=document.createElement("div");r.className="nft-image-container";let n=document.createElement("img");n.className="nft-image",n.alt=t.metadata.title||"NFT Image",new IntersectionObserver((e,r)=>{e.forEach(e=>{e.isIntersecting&&(n.src=t.metadata.media.replace(/[\s`]/g,""),n.onload=()=>n.classList.add("loaded"),r.unobserve(e.target))})}).observe(r),r.appendChild(n);let i=document.createElement("div");return i.className="nft-info",i.innerHTML=`
<h3 class="nft-title">${t.metadata.title||"Untitled"}</h3>
<p class="nft-owner">${t.owner_id}</p>
`,e.appendChild(r),e.appendChild(i),e}(t);e.appendChild(r)})})(tr.slice(t,e)),function(){let t=Math.ceil(tr.length/te),e=document.getElementById("current-page"),r=document.getElementById("prev-page"),n=document.getElementById("next-page");e.textContent=tt,r.disabled=1===tt,n.disabled=tt===t}()}document.addEventListener("DOMContentLoaded",tn);
//# sourceMappingURL=gallery.6e0ceef8.js.map
fs_store()
document.addEventListener("DOMContentLoaded",function(){let e=document.getElementById("color_picker"),t=document.querySelector(".plaground_SVG rect");e.addEventListener("input",function(e){t.setAttribute("fill",e.target.value)}),e.addEventListener("change",function(e){t.setAttribute("fill",e.target.value)})});
//# sourceMappingURL=playground.cc27e6b3.js.map
{"ActionError":{"index":0,"kind":{"FunctionCallError":{"MethodResolveError":"MethodNotFound"}}}}
1 automatic refund step from the network not shown.
This page reads FastNEAR's public transaction index and stores nothing. This command asks a NEAR archival node for the same transaction and needs no keys.
curl -s https://archival-rpc.testnet.fastnear.com -H 'Content-Type: application/json' -d '{"jsonrpc":"2.0","id":1,"method":"tx","params":{"tx_hash":"9BpYu1vsScisWyaDnE3RGWS4qDh5V18HkA2X1Fv5Ge3h","sender_account_id":"web4.web3stick.testnet","wait_until":"FINAL"}}'Vouch has its own page because testnet.nearblocks.io stopped indexing on 27 Sep 2026, so it can't show newer transactions.