PageSourceSearch

https://did-app-v2.d.id/bit/_next/static/chunks/2241.064ebfe7d6d25d69.js

js d.id collected 2026-09-24 11:12:01 UTC 427,973 bytes, 725 lines download raw bytes

1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="512180a5-a93c-42ce-a845-60f4144cf1a6",e._sentryDebugIdIdentifier="sentry-dbid-512180a5-a93c-42ce-a845-60f4144cf1a6")}catch(e){}}();var _global="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};_global.SENTRY_RELEASE={id:"2cb1d62b066346655e3552e91a7641bb5c693287"},(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2241],{44830:function(e,t,r){var n="undefined"!=typeof globalThis&&globalThis||"undefined"!=typeof self&&self||void 0!==r.g&&r.g,i=function(){function e(){this.fetch=!1,this.DOMException=n.DOMException}return e.prototype=n,new e}();(function(e){var t=void 0!==i&&i||"undefined"!=typeof self&&self||void 0!==t&&t,r={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(e){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(r.arrayBuffer)var n=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],s=ArrayBuffer.isView||function(e){return e&&n.indexOf(Object.prototype.toString.call(e))>-1};function c(e){if("string"!=typeof e&&(e=String(e)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(e)||""===e)throw TypeError('Invalid character in header field name: "'+e+'"');return e.toLowerCase()}function a(e){return"string"!=typeof e&&(e=String(e)),e}function o(e){var t={next:function(){var t=e.shift();return{done:void 0===t,value:t}}};return r.iterable&&(t[Symbol.iterator]=function(){return t}),t}function d(e){this.map={},e instanceof d?e.forEach(function(e,t){this.append(t,e)},this):Array.isArray(e)?e.forEach(function(e){this.append(e[0],e[1])},this):e&&Object.getOwnPropertyNames(e).forEach(function(t){this.append(t,e[t])},this)}function f(e){if(e.bodyUsed)return Promise.reject(TypeError("Already read"));e.bodyUsed=!0}function u(e){return new Promise(function(t,r){e.onload=function(){t(e.result)},e.onerror=function(){r(e.error)}})}function l(e){var t=new FileReader,r=u(t);return t.readAsArrayBuffer(e),r}function h(e){if(e.slice)return e.slice(0);var t=new Uint8Array(e.byteLength);return t.set(new Uint8Array(e)),t.buffer}function p(){return this.bodyUsed=!1,this._initBody=function(e){if(this.bodyUsed=this.bodyUsed,this._bodyInit=e,e){if("string"==typeof e)this._bodyText=e;else if(r.blob&&Blob.prototype.isPrototypeOf(e))this._bodyBlob=e;else if(r.formData&&FormData.prototype.isPrototypeOf(e))this._bodyFormData=e;else if(r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e))this._bodyText=e.toString();else{var t;r.arrayBuffer&&r.blob&&(t=e)&&DataView.prototype.isPrototypeOf(t)?(this._bodyArrayBuffer=h(e.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):r.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(e)||s(e))?this._bodyArrayBuffer=h(e):this._bodyText=e=Object.prototype.toString.call(e)}}else this._bodyText="";!this.headers.get("content-type")&&("string"==typeof e?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):r.searchParams&&URLSearchParams.prototype.isPrototypeOf(e)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},r.blob&&(this.blob=function(){var e=f(this);if(e)return e;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(!this._bodyFormData)return Promise.resolve(new Blob([this._bodyText]));throw Error("could not read FormData body as blob")},this.arrayBuffer=function(){return this._bodyArrayBuffer?f(this)||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer)):this.blob().then(l)}),this.text=function(){var e,t,r,n=f(this);if(n)return n;
1if(this._bodyBlob)return e=this._bodyBlob,r=u(t=new FileReader),t.readAsText(e),r;if(this._bodyArrayBuffer)return Promise.resolve(function(e){for(var t=new Uint8Array(e),r=Array(t.length),n=0;n<t.length;n++)r[n]=String.fromCharCode(t[n]);return r.join("")}(this._bodyArrayBuffer));if(!this._bodyFormData)return Promise.resolve(this._bodyText);throw Error("could not read FormData body as text")},r.formData&&(this.formData=function(){return this.text().then(g)}),this.json=function(){return this.text().then(JSON.parse)},this}d.prototype.append=function(e,t){e=c(e),t=a(t);var r=this.map[e];this.map[e]=r?r+", "+t:t},d.prototype.delete=function(e){delete this.map[c(e)]},d.prototype.get=function(e){return e=c(e),this.has(e)?this.map[e]:null},d.prototype.has=function(e){return this.map.hasOwnProperty(c(e))},d.prototype.set=function(e,t){this.map[c(e)]=a(t)},d.prototype.forEach=function(e,t){for(var r in this.map)this.map.hasOwnProperty(r)&&e.call(t,this.map[r],r,this)},d.prototype.keys=function(){var e=[];return this.forEach(function(t,r){e.push(r)}),o(e)},d.prototype.values=function(){var e=[];return this.forEach(function(t){e.push(t)}),o(e)},d.prototype.entries=function(){var e=[];return this.forEach(function(t,r){e.push([r,t])}),o(e)},r.iterable&&(d.prototype[Symbol.iterator]=d.prototype.entries);var b=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function y(e,t){if(!(this instanceof y))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');var r,n,i=(t=t||{}).body;if(e instanceof y){if(e.bodyUsed)throw TypeError("Already read");this.url=e.url,this.credentials=e.credentials,t.headers||(this.headers=new d(e.headers)),this.method=e.method,this.mode=e.mode,this.signal=e.signal,i||null==e._bodyInit||(i=e._bodyInit,e.bodyUsed=!0)}else this.url=String(e);if(this.credentials=t.credentials||this.credentials||"same-origin",(t.headers||!this.headers)&&(this.headers=new d(t.headers)),this.method=(n=(r=t.method||this.method||"GET").toUpperCase(),b.indexOf(n)>-1?n:r),this.mode=t.mode||this.mode||null,this.signal=t.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(i),("GET"===this.method||"HEAD"===this.method)&&("no-store"===t.cache||"no-cache"===t.cache)){var s=/([?&])_=[^&]*/;s.test(this.url)?this.url=this.url.replace(s,"$1_="+new Date().getTime()):this.url+=(/\?/.test(this.url)?"&":"?")+"_="+new Date().getTime()}}function g(e){var t=new FormData;return e.trim().split("&").forEach(function(e){if(e){var r=e.split("="),n=r.shift().replace(/\+/g," "),i=r.join("=").replace(/\+/g," ");t.append(decodeURIComponent(n),decodeURIComponent(i))}}),t}function m(e,t){if(!(this instanceof m))throw TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');t||(t={}),this.type="default",this.status=void 0===t.status?200:t.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===t.statusText?"":""+t.statusText,this.headers=new d(t.headers),this.url=t.url||"",this._initBody(e)}y.prototype.clone=function(){return new y(this,{body:this._bodyInit})},p.call(y.prototype),p.call(m.prototype),m.prototype.clone=function(){return new m(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new d(this.headers),url:this.url})},m.error=function(){var e=new m(null,{status:0,statusText:""});return e.type="error",e};var w=[301,302,303,307,308];m.redirect=function(e,t){if(-1===w.indexOf(t))throw RangeError("Invalid status code");return new m(null,{status:t,headers:{location:e}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(e,t){this.message=e,this.name=t;var r=Error(e);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(n,i){return new Promise(function(s,c){var o=new y(n,i);if(o.signal&&o.signal.aborted)return c(new e.DOMException("Aborted","AbortError"));var f=new XMLHttpRequest;function u(){f.abort()}f.onload=function(){var e,t,r={status:f.status,statusText:f.statusText,headers:(e=f.getAllResponseHeaders()||"",t=new d,e.replace(/\r?\n[\t ]+/g," ").split("\r").map(function(e){return 0===e.indexOf("\n")?e.substr(1,e.length):e}
1).forEach(function(e){var r=e.split(":"),n=r.shift().trim();if(n){var i=r.join(":").trim();t.append(n,i)}}),t)};r.url="responseURL"in f?f.responseURL:r.headers.get("X-Request-URL");var n="response"in f?f.response:f.responseText;setTimeout(function(){s(new m(n,r))},0)},f.onerror=function(){setTimeout(function(){c(TypeError("Network request failed"))},0)},f.ontimeout=function(){setTimeout(function(){c(TypeError("Network request failed"))},0)},f.onabort=function(){setTimeout(function(){c(new e.DOMException("Aborted","AbortError"))},0)},f.open(o.method,function(e){try{return""===e&&t.location.href?t.location.href:e}catch(t){return e}}(o.url),!0),"include"===o.credentials?f.withCredentials=!0:"omit"===o.credentials&&(f.withCredentials=!1),"responseType"in f&&(r.blob?f.responseType="blob":r.arrayBuffer&&o.headers.get("Content-Type")&&-1!==o.headers.get("Content-Type").indexOf("application/octet-stream")&&(f.responseType="arraybuffer")),!i||"object"!=typeof i.headers||i.headers instanceof d?o.headers.forEach(function(e,t){f.setRequestHeader(t,e)}):Object.getOwnPropertyNames(i.headers).forEach(function(e){f.setRequestHeader(e,a(i.headers[e]))}),o.signal&&(o.signal.addEventListener("abort",u),f.onreadystatechange=function(){4===f.readyState&&o.signal.removeEventListener("abort",u)}),f.send(void 0===o._bodyInit?null:o._bodyInit)})}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=d,t.Request=y,t.Response=m),e.Headers=d,e.Request=y,e.Response=m,e.fetch=v})({}),i.fetch.ponyfill=!0,delete i.fetch.polyfill;var s=n.fetch?n:i;(t=s.fetch).default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t},20025:function(e,t,r){"use strict";t.version=r(5397).i8,t.utils=r(50389),t.rand=r(1512),t.curve=r(40159),t.curves=r(56758),t.ec=r(14450),t.eddsa=r(1996)},12620:function(e,t,r){"use strict";var n=r(28891),i=r(50389),s=i.getNAF,c=i.getJSF,a=i.assert;function o(e,t){this.type=e,this.p=new n(t.p,16),this.red=t.prime?n.red(t.prime):n.mont(this.p),this.zero=new n(0).toRed(this.red),this.one=new n(1).toRed(this.red),this.two=new n(2).toRed(this.red),this.n=t.n&&new n(t.n,16),this.g=t.g&&this.pointFromJSON(t.g,t.gRed),this._wnafT1=[,,,,],this._wnafT2=[,,,,],this._wnafT3=[,,,,],this._wnafT4=[,,,,],this._bitLength=this.n?this.n.bitLength():0;var r=this.n&&this.p.div(this.n);!r||r.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function d(e,t){this.curve=e,this.type=t,this.precomputed=null}e.exports=o,o.prototype.point=function(){throw Error("Not implemented")},o.prototype.validate=function(){throw Error("Not implemented")},o.prototype._fixedNafMul=function(e,t){a(e.precomputed);var r,n,i=e._getDoubles(),c=s(t,1,this._bitLength),o=(1<<i.step+1)-(i.step%2==0?2:1);o/=3;var d=[];for(r=0;r<c.length;r+=i.step){n=0;for(var f=r+i.step-1;f>=r;f--)n=(n<<1)+c[f];d.push(n)}for(var u=this.jpoint(null,null,null),l=this.jpoint(null,null,null),h=o;h>0;h--){for(r=0;r<d.length;r++)(n=d[r])===h?l=l.mixedAdd(i.points[r]):n===-h&&(l=l.mixedAdd(i.points[r].neg()));u=u.add(l)}return u.toP()},o.prototype._wnafMul=function(e,t){var r=4,n=e._getNAFPoints(r);r=n.wnd;for(var i=n.points,c=s(t,r,this._bitLength),o=this.jpoint(null,null,null),d=c.length-1;d>=0;d--){for(var f=0;d>=0&&0===c[d];d--)f++;if(d>=0&&f++,o=o.dblp(f),d<0)break;var u=c[d];a(0!==u),o="affine"===e.type?u>0?o.mixedAdd(i[u-1>>1]):o.mixedAdd(i[-u-1>>1].neg()):u>0?o.add(i[u-1>>1]):o.add(i[-u-1>>1].neg())}return"affine"===e.type?o.toP():o},o.prototype._wnafMulAdd=function(e,t,r,n,i){var a,o,d,f=this._wnafT1,u=this._wnafT2,l=this._wnafT3,h=0;for(a=0;a<n;a++){var p=(d=t[a])._getNAFPoints(e);f[a]=p.wnd,u[a]=p.points}for(a=n-1;a>=1;a-=2){var b=a-1,y=a;if(1!==f[b]||1!==f[y]){l[b]=s(r[b],f[b],this._bitLength),l[y]=s(r[y],f[y],this._bitLength),h=Math.max(l[b].length,h),h=Math.max(l[y].length,h);continue}var g=[t[b],null,null,t[y]];0===t[b].y.cmp(t[y].y)?(g[1]=t[b].add(t[y]),g[2]=t[b].toJ().mixedAdd(t[y].neg())):0===t[b].y.cmp(t[y].y.redNeg())?(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].add(t[y].neg())):(g[1]=t[b].toJ().mixedAdd(t[y]),g[2]=t[b].toJ().mi
1xedAdd(t[y].neg()));var m=[-3,-1,-5,-7,0,7,5,1,3],w=c(r[b],r[y]);for(o=0,h=Math.max(w[0].length,h),l[b]=Array(h),l[y]=Array(h);o<h;o++){var v=0|w[0][o],x=0|w[1][o];l[b][o]=m[(v+1)*3+(x+1)],l[y][o]=0,u[b]=g}}var S=this.jpoint(null,null,null),T=this._wnafT4;for(a=h;a>=0;a--){for(var C=0;a>=0;){var A=!0;for(o=0;o<n;o++)T[o]=0|l[o][a],0!==T[o]&&(A=!1);if(!A)break;C++,a--}if(a>=0&&C++,S=S.dblp(C),a<0)break;for(o=0;o<n;o++){var k=T[o];0!==k&&(k>0?d=u[o][k-1>>1]:k<0&&(d=u[o][-k-1>>1].neg()),S="affine"===d.type?S.mixedAdd(d):S.add(d))}}for(a=0;a<n;a++)u[a]=null;return i?S:S.toP()},o.BasePoint=d,d.prototype.eq=function(){throw Error("Not implemented")},d.prototype.validate=function(){return this.curve.validate(this)},o.prototype.decodePoint=function(e,t){e=i.toArray(e,t);var r=this.p.byteLength();if((4===e[0]||6===e[0]||7===e[0])&&e.length-1==2*r)return 6===e[0]?a(e[e.length-1]%2==0):7===e[0]&&a(e[e.length-1]%2==1),this.point(e.slice(1,1+r),e.slice(1+r,1+2*r));if((2===e[0]||3===e[0])&&e.length-1===r)return this.pointFromX(e.slice(1,1+r),3===e[0]);throw Error("Unknown point format")},d.prototype.encodeCompressed=function(e){return this.encode(e,!0)},d.prototype._encode=function(e){var t=this.curve.p.byteLength(),r=this.getX().toArray("be",t);return e?[this.getY().isEven()?2:3].concat(r):[4].concat(r,this.getY().toArray("be",t))},d.prototype.encode=function(e,t){return i.encode(this._encode(t),e)},d.prototype.precompute=function(e){if(this.precomputed)return this;var t={doubles:null,naf:null,beta:null};return t.naf=this._getNAFPoints(8),t.doubles=this._getDoubles(4,e),t.beta=this._getBeta(),this.precomputed=t,this},d.prototype._hasDoubles=function(e){if(!this.precomputed)return!1;var t=this.precomputed.doubles;return!!t&&t.points.length>=Math.ceil((e.bitLength()+1)/t.step)},d.prototype._getDoubles=function(e,t){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var r=[this],n=this,i=0;i<t;i+=e){for(var s=0;s<e;s++)n=n.dbl();r.push(n)}return{step:e,points:r}},d.prototype._getNAFPoints=function(e){if(this.precomputed&&this.precomputed.naf)return this.precomputed.naf;for(var t=[this],r=(1<<e)-1,n=1===r?null:this.dbl(),i=1;i<r;i++)t[i]=t[i-1].add(n);return{wnd:e,points:t}},d.prototype._getBeta=function(){return null},d.prototype.dblp=function(e){for(var t=this,r=0;r<e;r++)t=t.dbl();return t}},96526:function(e,t,r){"use strict";var n=r(50389),i=r(28891),s=r(67483),c=r(12620),a=n.assert;function o(e){this.twisted=(0|e.a)!=1,this.mOneA=this.twisted&&(0|e.a)==-1,this.extended=this.mOneA,c.call(this,"edwards",e),this.a=new i(e.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new i(e.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new i(e.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=(0|e.c)==1}function d(e,t,r,n,s){c.BasePoint.call(this,e,"projective"),null===t&&null===r&&null===n?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new i(t,16),this.y=new i(r,16),this.z=n?new i(n,16):this.curve.one,this.t=s&&new i(s,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,!this.curve.extended||this.t||(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}s(o,c),e.exports=o,o.prototype._mulA=function(e){return this.mOneA?e.redNeg():this.a.redMul(e)},o.prototype._mulC=function(e){return this.oneC?e:this.c.redMul(e)},o.prototype.jpoint=function(e,t,r,n){return this.point(e,t,r,n)},o.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=this.c2.redSub(this.a.redMul(r)),s=this.one.redSub(this.c2.redMul(this.d).redMul(r)),c=n.redMul(s.redInvm()),a=c.redSqrt();if(0!==a.redSqr().redSub(c).cmp(this.zero))throw Error("invalid point");var o=a.fromRed().isOdd();return(t&&!o||!t&&o)&&(a=a.redNeg()),this.point(e,a)},o.prototype.pointFromY=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr(),n=r.redSub(this.c2),s=r.redMul(this.d).redMul(this.c2).redSub(this.a),c=n.redMul(s.redInvm());if(0===c.cmp(this.zero)){if(!t)return this.point(this.zero,e);throw Error("invalid point")}var a=c.redSqrt();if(0!==a.redSqr().redSub(c).cmp(this.zero))throw Error("invalid point");return a.fromRed().isOdd()!==t&&(a=a.redNeg()),this.point(a,e)},o.prototype.validate=function(e){if(e.isInfinity())return!0;e.normalize();
vendor: 5,225 bytes, line 1
1var t=e.x.redSqr(),r=e.y.redSqr(),n=t.redMul(this.a).redAdd(r),i=this.c2.redMul(this.one.redAdd(this.d.redMul(t).redMul(r)));return 0===n.cmp(i)},s(d,c.BasePoint),o.prototype.pointFromJSON=function(e){return d.fromJSON(this,e)},o.prototype.point=function(e,t,r,n){return new d(this,e,t,r,n)},d.fromJSON=function(e,t){return new d(e,t[0],t[1],t[2])},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},d.prototype._extDbl=function(){var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr();r=r.redIAdd(r);var n=this.curve._mulA(e),i=this.x.redAdd(this.y).redSqr().redISub(e).redISub(t),s=n.redAdd(t),c=s.redSub(r),a=n.redSub(t),o=i.redMul(c),d=s.redMul(a),f=i.redMul(a),u=c.redMul(s);return this.curve.point(o,d,u,f)},d.prototype._projDbl=function(){var e,t,r,n,i,s,c=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),o=this.y.redSqr();if(this.curve.twisted){var d=(n=this.curve._mulA(a)).redAdd(o);this.zOne?(e=c.redSub(a).redSub(o).redMul(d.redSub(this.curve.two)),t=d.redMul(n.redSub(o)),r=d.redSqr().redSub(d).redSub(d)):(i=this.z.redSqr(),s=d.redSub(i).redISub(i),e=c.redSub(a).redISub(o).redMul(s),t=d.redMul(n.redSub(o)),r=d.redMul(s))}else n=a.redAdd(o),i=this.curve._mulC(this.z).redSqr(),s=n.redSub(i).redSub(i),e=this.curve._mulC(c.redISub(n)).redMul(s),t=this.curve._mulC(n).redMul(a.redISub(o)),r=n.redMul(s);return this.curve.point(e,t,r)},d.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},d.prototype._extAdd=function(e){var t=this.y.redSub(this.x).redMul(e.y.redSub(e.x)),r=this.y.redAdd(this.x).redMul(e.y.redAdd(e.x)),n=this.t.redMul(this.curve.dd).redMul(e.t),i=this.z.redMul(e.z.redAdd(e.z)),s=r.redSub(t),c=i.redSub(n),a=i.redAdd(n),o=r.redAdd(t),d=s.redMul(c),f=a.redMul(o),u=s.redMul(o),l=c.redMul(a);return this.curve.point(d,f,l,u)},d.prototype._projAdd=function(e){var t,r,n=this.z.redMul(e.z),i=n.redSqr(),s=this.x.redMul(e.x),c=this.y.redMul(e.y),a=this.curve.d.redMul(s).redMul(c),o=i.redSub(a),d=i.redAdd(a),f=this.x.redAdd(this.y).redMul(e.x.redAdd(e.y)).redISub(s).redISub(c),u=n.redMul(o).redMul(f);return this.curve.twisted?(t=n.redMul(d).redMul(c.redSub(this.curve._mulA(s))),r=o.redMul(d)):(t=n.redMul(d).redMul(c.redSub(s)),r=this.curve._mulC(o).redMul(d)),this.curve.point(u,t,r)},d.prototype.add=function(e){return this.isInfinity()?e:e.isInfinity()?this:this.curve.extended?this._extAdd(e):this._projAdd(e)},d.prototype.mul=function(e){return this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!1)},d.prototype.jmulAdd=function(e,t,r){return this.curve._wnafMulAdd(1,[this,t],[e,r],2,!0)},d.prototype.normalize=function(){if(this.zOne)return this;var e=this.z.redInvm();return this.x=this.x.redMul(e),this.y=this.y.redMul(e),this.t&&(this.t=this.t.redMul(e)),this.z=this.curve.one,this.zOne=!0,this},d.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},d.prototype.getX=function(){return this.normalize(),this.x.fromRed()},d.prototype.getY=function(){return this.normalize(),this.y.fromRed()},d.prototype.eq=function(e){return this===e||0===this.getX().cmp(e.getX())&&0===this.getY().cmp(e.getY())},d.prototype.eqXToP=function(e){var t=e.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(t))return!0;for(var r=e.clone(),n=this.curve.redN.redMul(this.z);;){if(r.iadd(this.curve.n),r.cmp(this.curve.p)>=0)return!1;if(t.redIAdd(n),0===this.x.cmp(t))return!0}},d.prototype.toP=d.prototype.normalize,d.prototype.mixedAdd=d.prototype.add},40159:function(e,t,r){"use strict";t.base=r(12620),t.short=r(21890),t.mont=r(42607),t.edwards=r(96526)},42607:function(e,t,r){"use strict";var n=r(28891),i=r(67483),s=r(12620),c=r(50389);function a(e){s.call(this,"mont",e),this.a=new n(e.a,16).toRed(this.red),this.b=new n(e.b,16).toRed(this.red),this.i4=new n(4).toRed(this.red).redInvm(),this.two=new n(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function o(e,t,r){s.BasePoint.call(this,e,"projective"),null===t&&null===r?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new n(t,16),this.z=new n(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}i(a,s),e.exports=a,a.prototype.validate=function(e){var t=e.normalize().x,r=t.redSqr(),n=r.redMul(t).redAdd(r.redMul(this.a)).redAdd(t);return 0===n.redSqrt().redSqr().cmp(n)},i(o,s.BasePoint),a.prototype.decodePoint=function(e,t){return this.point(c.toArray(e,t),1)},a.prototype.point=function(e,t){return new o(this,e,t)},a.prototype.pointFromJSON=function(e){return o.fromJSON(this,e)},o.prototype.precompute=function(){},o.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},o.fromJSON=function(e,t){return new o(e,t[0],t[1]||e.one)},o.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>
1":"<EC Point x: "+this.x.fromRed().toString(16,2)+" z: "+this.z.fromRed().toString(16,2)+">"},o.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},o.prototype.dbl=function(){var e=this.x.redAdd(this.z).redSqr(),t=this.x.redSub(this.z).redSqr(),r=e.redSub(t),n=e.redMul(t),i=r.redMul(t.redAdd(this.curve.a24.redMul(r)));return this.curve.point(n,i)},o.prototype.add=function(){throw Error("Not supported on Montgomery curve")},o.prototype.diffAdd=function(e,t){var r=this.x.redAdd(this.z),n=this.x.redSub(this.z),i=e.x.redAdd(e.z),s=e.x.redSub(e.z).redMul(r),c=i.redMul(n),a=t.z.redMul(s.redAdd(c).redSqr()),o=t.x.redMul(s.redISub(c).redSqr());return this.curve.point(a,o)},o.prototype.mul=function(e){for(var t=e.clone(),r=this,n=this.curve.point(null,null),i=[];0!==t.cmpn(0);t.iushrn(1))i.push(t.andln(1));for(var s=i.length-1;s>=0;s--)0===i[s]?(r=r.diffAdd(n,this),n=n.dbl()):(n=r.diffAdd(n,this),r=r.dbl());return n},o.prototype.mulAdd=function(){throw Error("Not supported on Montgomery curve")},o.prototype.jumlAdd=function(){throw Error("Not supported on Montgomery curve")},o.prototype.eq=function(e){return 0===this.getX().cmp(e.getX())},o.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},o.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},21890:function(e,t,r){"use strict";var n=r(50389),i=r(28891),s=r(67483),c=r(12620),a=n.assert;function o(e){c.call(this,"short",e),this.a=new i(e.a,16).toRed(this.red),this.b=new i(e.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(e),this._endoWnafT1=[,,,,],this._endoWnafT2=[,,,,]}function d(e,t,r,n){c.BasePoint.call(this,e,"affine"),null===t&&null===r?(this.x=null,this.y=null,this.inf=!0):(this.x=new i(t,16),this.y=new i(r,16),n&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function f(e,t,r,n){c.BasePoint.call(this,e,"jacobian"),null===t&&null===r&&null===n?(this.x=this.curve.one,this.y=this.curve.one,this.z=new i(0)):(this.x=new i(t,16),this.y=new i(r,16),this.z=new i(n,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}s(o,c),e.exports=o,o.prototype._getEndomorphism=function(e){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){if(e.beta)t=new i(e.beta,16).toRed(this.red);else{var t,r,n,s=this._getEndoRoots(this.p);t=(t=0>s[0].cmp(s[1])?s[0]:s[1]).toRed(this.red)}if(e.lambda)r=new i(e.lambda,16);else{var c=this._getEndoRoots(this.n);0===this.g.mul(c[0]).x.cmp(this.g.x.redMul(t))?r=c[0]:(r=c[1],a(0===this.g.mul(r).x.cmp(this.g.x.redMul(t))))}return n=e.basis?e.basis.map(function(e){return{a:new i(e.a,16),b:new i(e.b,16)}}):this._getEndoBasis(r),{beta:t,lambda:r,basis:n}}},o.prototype._getEndoRoots=function(e){var t=e===this.p?this.red:i.mont(e),r=new i(2).toRed(t).redInvm(),n=r.redNeg(),s=new i(3).toRed(t).redNeg().redSqrt().redMul(r);return[n.redAdd(s).fromRed(),n.redSub(s).fromRed()]},o.prototype._getEndoBasis=function(e){for(var t,r,n,s,c,a,o,d,f,u=this.n.ushrn(Math.floor(this.n.bitLength()/2)),l=e,h=this.n.clone(),p=new i(1),b=new i(0),y=new i(0),g=new i(1),m=0;0!==l.cmpn(0);){var w=h.div(l);d=h.sub(w.mul(l)),f=y.sub(w.mul(p));var v=g.sub(w.mul(b));if(!n&&0>d.cmp(u))t=o.neg(),r=p,n=d.neg(),s=f;else if(n&&2==++m)break;o=d,h=l,l=d,y=p,p=f,g=b,b=v}c=d.neg(),a=f;var x=n.sqr().add(s.sqr());return c.sqr().add(a.sqr()).cmp(x)>=0&&(c=t,a=r),n.negative&&(n=n.neg(),s=s.neg()),c.negative&&(c=c.neg(),a=a.neg()),[{a:n,b:s},{a:c,b:a}]},o.prototype._endoSplit=function(e){var t=this.endo.basis,r=t[0],n=t[1],i=n.b.mul(e).divRound(this.n),s=r.b.neg().mul(e).divRound(this.n),c=i.mul(r.a),a=s.mul(n.a),o=i.mul(r.b),d=s.mul(n.b);return{k1:e.sub(c).sub(a),k2:o.add(d).neg()}},o.prototype.pointFromX=function(e,t){(e=new i(e,16)).red||(e=e.toRed(this.red));var r=e.redSqr().redMul(e).redIAdd(e.redMul(this.a)).redIAdd(this.b),n=r.redSqrt();if(0!==n.redSqr().redSub(r).cmp(this.zero))throw Error("invalid point");var s=n.fromRed().isOdd();return(t&&!s||!t&&s)&&(n=n.redNeg()),this.point(e,n)},o.prototype.validate=function(e){if(e.inf)return!0;var t=e.x,r=e.y,n=this.a.redMul(t),i=t.redSqr().redMul(t).redIAdd(n).redIAdd(this.b);return 0===r.redSqr().redISub(i).cmpn(0)},o.prototype._endoWnafMulAdd=function(e,t,r){for(var n=this._endoWnafT1,i=this._endoWnafT2,s=0;s<e.length;s++){var c=this._endoSplit(t[s]),a=e[s],o=a._getBeta();c.k1.negative&&(c.k1.ineg(),a=a.neg(!0)),c.k2.negative&&(c.k2.ineg(),o=o.neg(!0)),n[2*s]=a,n[2*s+1]=o,i[2*s]=c.k1,i[2*s+1]=c.k2}for(var d=this._wnafMulAdd(1,n,i,2*s,r),f=0;f<2*s;f++)n[f]=null,i[f]=null;return d},s(d,c.BasePoint),o.prototype.point=function(e,t,r){return new d(this,e,t,r)},o.prototype.pointFromJSON=function(e,t){return d.fromJSON(this,e,t)},d.prototype._getBeta=function(){if(this.curve.endo){var e=this.prec
vendor: 8,222 bytes, line 1
1omputed;if(e&&e.beta)return e.beta;var t=this.curve.point(this.x.redMul(this.curve.endo.beta),this.y);if(e){var r=this.curve,n=function(e){return r.point(e.x.redMul(r.endo.beta),e.y)};e.beta=t,t.precomputed={beta:null,naf:e.naf&&{wnd:e.naf.wnd,points:e.naf.points.map(n)},doubles:e.doubles&&{step:e.doubles.step,points:e.doubles.points.map(n)}}}return t}},d.prototype.toJSON=function(){return this.precomputed?[this.x,this.y,this.precomputed&&{doubles:this.precomputed.doubles&&{step:this.precomputed.doubles.step,points:this.precomputed.doubles.points.slice(1)},naf:this.precomputed.naf&&{wnd:this.precomputed.naf.wnd,points:this.precomputed.naf.points.slice(1)}}]:[this.x,this.y]},d.fromJSON=function(e,t,r){"string"==typeof t&&(t=JSON.parse(t));var n=e.point(t[0],t[1],r);if(!t[2])return n;function i(t){return e.point(t[0],t[1],r)}var s=t[2];return n.precomputed={beta:null,doubles:s.doubles&&{step:s.doubles.step,points:[n].concat(s.doubles.points.map(i))},naf:s.naf&&{wnd:s.naf.wnd,points:[n].concat(s.naf.points.map(i))}},n},d.prototype.inspect=function(){return this.isInfinity()?"<EC Point Infinity>":"<EC Point x: "+this.x.fromRed().toString(16,2)+" y: "+this.y.fromRed().toString(16,2)+">"},d.prototype.isInfinity=function(){return this.inf},d.prototype.add=function(e){if(this.inf)return e;if(e.inf)return this;if(this.eq(e))return this.dbl();if(this.neg().eq(e)||0===this.x.cmp(e.x))return this.curve.point(null,null);var t=this.y.redSub(e.y);0!==t.cmpn(0)&&(t=t.redMul(this.x.redSub(e.x).redInvm()));var r=t.redSqr().redISub(this.x).redISub(e.x),n=t.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,n)},d.prototype.dbl=function(){if(this.inf)return this;var e=this.y.redAdd(this.y);if(0===e.cmpn(0))return this.curve.point(null,null);var t=this.curve.a,r=this.x.redSqr(),n=e.redInvm(),i=r.redAdd(r).redIAdd(r).redIAdd(t).redMul(n),s=i.redSqr().redISub(this.x.redAdd(this.x)),c=i.redMul(this.x.redSub(s)).redISub(this.y);return this.curve.point(s,c)},d.prototype.getX=function(){return this.x.fromRed()},d.prototype.getY=function(){return this.y.fromRed()},d.prototype.mul=function(e){return(e=new i(e,16),this.isInfinity())?this:this._hasDoubles(e)?this.curve._fixedNafMul(this,e):this.curve.endo?this.curve._endoWnafMulAdd([this],[e]):this.curve._wnafMul(this,e)},d.prototype.mulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i):this.curve._wnafMulAdd(1,n,i,2)},d.prototype.jmulAdd=function(e,t,r){var n=[this,t],i=[e,r];return this.curve.endo?this.curve._endoWnafMulAdd(n,i,!0):this.curve._wnafMulAdd(1,n,i,2,!0)},d.prototype.eq=function(e){return this===e||this.inf===e.inf&&(this.inf||0===this.x.cmp(e.x)&&0===this.y.cmp(e.y))},d.prototype.neg=function(e){if(this.inf)return this;var t=this.curve.point(this.x,this.y.redNeg());if(e&&this.precomputed){var r=this.precomputed,n=function(e){return e.neg()};t.precomputed={naf:r.naf&&{wnd:r.naf.wnd,points:r.naf.points.map(n)},doubles:r.doubles&&{step:r.doubles.step,points:r.doubles.points.map(n)}}}return t},d.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},s(f,c.BasePoint),o.prototype.jpoint=function(e,t,r){return new f(this,e,t,r)},f.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var e=this.z.redInvm(),t=e.redSqr(),r=this.x.redMul(t),n=this.y.redMul(t).redMul(e);return this.curve.point(r,n)},f.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},f.prototype.add=function(e){if(this.isInfinity())return e;if(e.isInfinity())return this;var t=e.z.redSqr(),r=this.z.redSqr(),n=this.x.redMul(t),i=e.x.redMul(r),s=this.y.redMul(t.redMul(e.z)),c=e.y.redMul(r.redMul(this.z)),a=n.redSub(i),o=s.redSub(c);if(0===a.cmpn(0))return 0!==o.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var d=a.redSqr(),f=d.redMul(a),u=n.redMul(d),l=o.redSqr().redIAdd(f).redISub(u).redISub(u),h=o.redMul(u.redISub(l)).redISub(s.redMul(f)),p=this.z.redMul(e.z).redMul(a);return this.curve.jpoint(l,h,p)},f.prototype.mixedAdd=function(e){if(this.isInfinity())return e.toJ();if(e.isInfinity())return this;var t=this.z.redSqr(),r=this.x,n=e.x.redMul(t),i=this.y,s=e.y.redMul(t).redMul(this.z),c=r.redSub(n),a=i.redSub(s);if(0===c.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var o=c.redSqr(),d=o.redMul(c),f=r.redMul(o),u=a.redSqr().redIAdd(d).redISub(f).redISub(f),l=a.redMul(f.redISub(u)).redISub(i.redMul(d)),h=this.z.redMul(c);return this.curve.jpoint(u,l,h)},f.prototype.dblp=function(e){if(0===e||this.isInfinity())return this;if(!e)return this.dbl();if(this.curve.zeroA||this.curve.threeA){var t,r=this;for(t=0;t<e;t++)r=r.dbl();return r}var n=this.curve.a,i=this.curve.tinv,s=this.x,c=this.y,a=this.z,o=a.redSqr().redSqr(),d=c.redAdd(c);for(t=0;t<e;t++){var f=s.redSqr(),u=d.redSqr(),l=u.redSqr(),h=f.redAdd(f).redIAdd(f).redIAdd(n.redMul(o)),p=s.redMul(u),b=h.redSqr().redISub(p.redAdd(p)),y=p.redISub(b),g=h.redMul(y);g=g.redIAdd(g).redISub(l);var m=d.redMul(a);t+1<e&&(o=o.redMul(l)),s=b,a=m,d=g}return this.curve.jpoint(s,d.redMul(i),a)},f.prototype.dbl=function(){return this.isInfinity()?this:this.curve.zeroA?this._zeroDbl():this.curve.threeA?this._threeDbl():this._dbl()},f.prototype._zeroDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),c=this.x.redAdd(i).redSqr().redISub(n).redISub(s);c=c.redIAdd(c);var a=n.redAdd(n).redIAdd(n),o=a.redSqr().redISub(c).redISub(c),d=s.redIAdd(s);d=(d=d.redIAdd(d)).redIAdd(d),e=o,t=a.redMul(c.redISub(o)).redISub(d),r=this.y.redAdd(this.y)}else{var f=this.x.redSqr(),u=this.y.redSqr(),l=u.redSqr(),h=this.x.redAdd(u).redSqr().redISub(f).redISub(l);h=h.redIAdd(h);var p=f.redAdd(f).redIAdd(f),b=p.redSqr(),y=l.redIAdd(l);y=(y=y.redIAdd(y)).redIAdd(y),e=b.redISub(h).redISub(h),t=p.redMul(h.redISub(e)).redISub(y),r=(r=this.y.redMul(this.z)).redIAdd(r)}return this.curve.jpoint(e,t,r)},f.prototype._threeDbl=function(){if(this.zOne){var e,t,r,n=this.x.redSqr(),i=this.y.redSqr(),s=i.redSqr(),c=this.x.redAdd(i).redSqr().redISub(n).redISub(s);c=c.redIAdd(c);var a=n.redAdd(n).redIAdd(n).redIAdd(this.curve.a),o=a.redSqr().redISub(c).redISub(c);e=o;var d=s.redIAdd(s);d=(d=d.redIAdd(d)).redIAdd(d),t=a.redMul(c.redISub(o)).redISub(d),r=this.y.redAdd(this.y)}else{var f=this.z.redSqr(),u=this.y.redSqr(),l=this.x.redMul(u),h=this.x.redSub(f).redMul(this.x.redAdd(f));h=h.redAdd(h).redIAdd(h);var p=l.redIAdd(l),b=(p=p.redIAdd(p)).redAdd(p);e=h.redSqr().redISub(b),r=this.y.redAdd(this.z).redSqr().redISub(u).redISub(f);var y=u.redSqr();y=(y=(y=y.redIAdd(y)).redIAdd(y)).redIAdd(y),t=h.redMul(p.redISub(e)).redISub(y)}return this.curve.jpoint(e,t,r)},f.prototype._dbl=function(){var e=this.curve.a,t=this.x,r=this.y,n=this.z,i=n.redSqr().redSqr(),s=t.redSqr(),c=r.redSqr(),a=s.redAdd(s).redIAdd(s).redIAdd(e.redMul(i)),o=t.redAdd(t),d=(o=o.redIAdd(o)).redMul(c),f=a.redSqr().redISub(d.redAdd(d)),u=d.redISub(f),l=c.redSqr();l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=a.redMul(u).redISub(l),p=r.redAdd(r).redMul(n);return this.curve.jpoint(f,h,p)},f.prototype.trpl=function(){if(!this.curve.zeroA)return this.dbl().add(this);var e=this.x.redSqr(),t=this.y.redSqr(),r=this.z.redSqr(),n=t.redSqr(),i=e.redAdd(e).redIAdd(e),s=i.redSqr(),c=this.x.redAdd(t).redSqr().redISub(e).redISub(n),a=(c=(c=(c=c.redIAdd(c)).redAdd(c).redIAdd(c)).redISub(s)).redSqr(),o=n.redIAdd(n);o=(o=(o=o.redIAdd(o)).redIAdd(o)).redIAdd(o);var d=i.redIAdd(c).redSqr().redISub(s).redISub(a).redISub(o),f=t.redMul(d);f=(f=f.redIAdd(f)).redIAdd(f);var u=this.x.redMul(a).redISub(f);u=(u=u.redIAdd(u)).redIAdd(u);var l=this.y.redMul(d.redMul(o.redISub(d)).redISub(c.redMul(a)));l=(l=(l=l.redIAdd(l)).redIAdd(l)).redIAdd(l);var h=this.z.redAdd(c).redSqr().redISub(r).redISub(a);return this.curve.jpoint(u,l,h)},f.prototype.mul=function(e,t){return e=new i(e,t),this.curve._wnafMul(this,e)},f.prototype.eq=function(e){if("affine"===e.type)return this.eq(e.toJ());if(this===e)return!0;var t=this.z.redSqr(),r=e.z.redSqr();if(0!==this.x.redMul(r).redISub(e.x.redMul(t)).cmpn(0))return!1;var n=t.redMul(this.z),i=r.redMul(e.z);return 0===this.y.redMul(i).redISub(e.y.redMul(n)).cmpn(0)}
vendor: 5,348 bytes, line 1
1,f.prototype.eqXToP=function(e){var t=this.z.redSqr(),r=e.toRed(this.curve.red).redMul(t);if(0===this.x.cmp(r))return!0;for(var n=e.clone(),i=this.curve.redN.redMul(t);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(r.redIAdd(i),0===this.x.cmp(r))return!0}},f.prototype.inspect=function(){return this.isInfinity()?"<EC JPoint Infinity>":"<EC JPoint x: "+this.x.toString(16,2)+" y: "+this.y.toString(16,2)+" z: "+this.z.toString(16,2)+">"},f.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},56758:function(e,t,r){"use strict";var n,i=r(45370),s=r(40159),c=r(50389).assert;function a(e){"short"===e.type?this.curve=new s.short(e):"edwards"===e.type?this.curve=new s.edwards(e):this.curve=new s.mont(e),this.g=this.curve.g,this.n=this.curve.n,this.hash=e.hash,c(this.g.validate(),"Invalid curve"),c(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function o(e,r){Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get:function(){var n=new a(r);return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,value:n}),n}})}t.PresetCurve=a,o("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:i.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),o("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:i.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),o("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:i.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),o("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:i.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),o("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:i.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),o("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["9"]}),o("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:i.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{n=r(86165)}catch(e){n=void 0}o("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:i.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"}
1,{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",n]})},14450:function(e,t,r){"use strict";var n=r(28891),i=r(53250),s=r(50389),c=r(56758),a=r(1512),o=s.assert,d=r(90394),f=r(53742);function u(e){if(!(this instanceof u))return new u(e);"string"==typeof e&&(o(Object.prototype.hasOwnProperty.call(c,e),"Unknown curve "+e),e=c[e]),e instanceof c.PresetCurve&&(e={curve:e}),this.curve=e.curve.curve,this.n=this.curve.n,this.nh=this.n.ushrn(1),this.g=this.curve.g,this.g=e.curve.g,this.g.precompute(e.curve.n.bitLength()+1),this.hash=e.hash||e.curve.hash}e.exports=u,u.prototype.keyPair=function(e){return new d(this,e)},u.prototype.keyFromPrivate=function(e,t){return d.fromPrivate(this,e,t)},u.prototype.keyFromPublic=function(e,t){return d.fromPublic(this,e,t)},u.prototype.genKeyPair=function(e){e||(e={});for(var t=new i({hash:this.hash,pers:e.pers,persEnc:e.persEnc||"utf8",entropy:e.entropy||a(this.hash.hmacStrength),entropyEnc:e.entropy&&e.entropyEnc||"utf8",nonce:this.n.toArray()}),r=this.n.byteLength(),s=this.n.sub(new n(2));;){var c=new n(t.generate(r));if(!(c.cmp(s)>0))return c.iaddn(1),this.keyFromPrivate(c)}},u.prototype._truncateToN=function(e,t,r){if(n.isBN(e)||"number"==typeof e)i=(e=new n(e,16)).byteLength();else if("object"==typeof e)i=e.length,e=new n(e,16);else{var i,s=e.toString();i=s.length+1>>>1,e=new n(s,16)}"number"!=typeof r&&(r=8*i);var c=r-this.n.bitLength();return(c>0&&(e=e.ushrn(c)),!t&&e.cmp(this.n)>=0)?e.sub(this.n):e},u.prototype.sign=function(e,t,r,s){if("object"==typeof r&&(s=r,r=null),s||(s={}),"string"!=typeof e&&"number"!=typeof e&&!n.isBN(e)){o("object"==typeof e&&e&&"number"==typeof e.length,"Expected message to be an array-like, a hex string, or a BN instance"),o(e.length>>>0===e.length);for(var c=0;c<e.length;c++)o((255&e[c])===e[c])}t=this.keyFromPrivate(t,r),o(!(e=this._truncateToN(e,!1,s.msgBitLength)).isNeg(),"Can not sign a negative message");var a=this.n.byteLength(),d=t.getPrivate().toArray("be",a),u=e.toArray("be",a);o(new n(u).eq(e),"Can not sign message");for(var l=new i({hash:this.hash,entropy:d,nonce:u,pers:s.pers,persEnc:s.persEnc||"utf8"}),h=this.n.sub(new n(1)),p=0;;p++){var b=s.k?s.k(p):new n(l.generate(this.n.byteLength()));if(!(0>=(b=this._truncateToN(b,!0)).cmpn(1)||b.cmp(h)>=0)){var y=this.g.mul(b);if(!y.isInfinity()){var g=y.getX(),m=g.umod(this.n);if(0!==m.cmpn(0)){var w=b.invm(this.n).mul(m.mul(t.getPrivate()).iadd(e));if(0!==(w=w.umod(this.n)).cmpn(0)){var v=(y.getY().isOdd()?1:0)|(0!==g.cmp(m)?2:0);return s.canonical&&w.cmp(this.nh)>0&&(w=this.n.sub(w),v^=1),new f({r:m,s:w,recoveryParam:v})}}}}}},u.prototype.verify=function(e,t,r,n,i){i||(i={}),e=this._truncateToN(e,!1,i.msgBitLength),r=this.keyFromPublic(r,n);var s,c=(t=new f(t,"hex")).r,a=t.s;if(0>c.cmpn(1)||c.cmp(this.n)>=0||0>a.cmpn(1)||a.cmp(this.n)>=0)return!1;var o=a.invm(this.n),d=o.mul(e).umod(this.n),u=o.mul(c).umod(this.n);return this.curve._maxwellTrick?!(s=this.g.jmulAdd(d,r.getPublic(),u)).isInfinity()&&s.eqXToP(c):!(s=this.g.mulAdd(d,r.getPublic(),u)).isInfinity()&&0===s.getX().umod(this.n).cmp(c)},u.prototype.recoverPubKey=function(e,t,r,i){o((3&r)===r,"The recovery param is more than two bits"),t=new f(t,i);var s=this.n,c=new n(e),a=t.r,d=t.s,u=1&r,l=r>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&l)throw Error("Unable to find sencond key candinate");a=l?this.curve.pointFromX(a.add(this.curve.n),u):this.curve.pointFromX(a,u);var h=t.r.invm(s),p=s.sub(c).mul(h).umod(s),b=d.mul(h).umod(s);return this.g.mulAdd(p,a,b)},u.prototype.getKeyRecoveryParam=function(e,t,r,n){if(null!==(t=new f(t,n)).recoveryParam)return t.recoveryParam;for(var i,s=0;s<4;s++){try{i=this.recoverPubKey(e,t,s)}catch(e){continue}if(i.eq(r))return s}throw Error("Unable to find valid recovery factor")}},90394:function(e,t,r){"use strict";var n=r(28891),i=r(50389).assert;function s(e,t){this.ec=e,this.priv=null,this.pub=null,t.priv&&this._importPrivate(t.priv,t.privEnc),t.pub&&this._importPublic(t.pub,t.pubEnc)}e.exports=s,s.fromPublic=function(e,t,r){return t instanceof s?t:new s(e,{pub:t,pubEnc:r})},s.fromPrivate=function(e,t,r){return t instanceof s?t:new s(e,{priv:t,privEnc:r})},s.prototype.validate=function(){var e=this.getPublic();return e.isInfinity()?{result:!1,reason:"Invalid public key"}:e.validate()?e.mul(this.ec.curve.n).isInfinity()?{result:!0,reason:null}:{result:!1,reason:"Public key * N != O"}:{result:!1,reason:"Public key is not a point"}},s.prototype.getPublic=function(e,t){return("string"==typeof e&&(t=e,e=null),this.pub||(this.pub=this.ec.g.mul(this.priv)),t)?this.pub.encode(t,e):this.pub},s.prototype.getPrivate=function(e){return"hex"===e?this.priv.toString(16,2):this.priv},s.prototype._importPrivate=function(e,t){this.priv=new n(e,t||16),this.priv=this.priv.umod(this.ec.curve.n)},s.prototype._importPublic=function(e,t){if(e.x||e.y){"mont"===this.ec.curve.type?i(e.x,"Need x coordinate"):("short"===this.ec.curve.type||"edwards"===this.ec.curve.type)&&i(e.x&&e.y,"Need both x and y coordinate"),this.pub=this.ec.curve.point(e.x,e.y);return}this.pub=this.ec.curve.decodePoint(e,t)},s.prototype.derive=function(e){return e.validate()||i(e.validate(),"public point not validated"),e.mul(this.priv).getX()},s.prototype.sign=function(e,t,r){return this.ec.sign(e,this,t,r)},s.prototype.verify=function(e,t,r){return this.ec.verify(e,t,this,void 0,r)},s.prototype.inspect=function(){return"<Key priv: "+(this.priv&&this.priv.toString(16,2))+" pub: "+(this.pub&&this.pub.inspect())+" >"}},53742:function(e,t,r){"use strict";var n=r(28891),i=r(50389),s=i.assert;function c(e,t){if(e instanceof c)return e;this._importDER(e,t)||(s(e.r&&e.s,"Signature without r or s"),this.r=new n(e.r,16),this.s=new n(e.s,16),void 0===e.recoveryParam?this.recoveryParam=null:this.recoveryParam=e.recoveryParam)}function a(){this.place=0}function o(e,t){var r=e[t.place++];if(!(128&r))return r;var n=15&r;if(0===n||n>4||0===e[t.place])return!1;for(var i=0,s=0,c=t.place;s<n;s++,c++)i<<=8,i|=e[c],i>>>=0;return!(i<=127)&&(t.place=c,i)}function d(e){for(var t=0,r=e.length-1;!e[t]&&!(128&e[t+1])&&t<r;)t++;return 0===t?e:e.slice(t)}function f(e,t){if(t<128){e.push(t);return}var r=1+(Math.log(t)/Math.LN2>>>3);for(e.push(128|r);--r;)e.push(t>>>(r<<3)&255);e.push(t)}e.exports=c,c.prototype._importDER=function(e,t){e=i.toArray(e,t);var r=new a;
1if(48!==e[r.place++])return!1;var s=o(e,r);if(!1===s||s+r.place!==e.length||2!==e[r.place++])return!1;var c=o(e,r);if(!1===c||(128&e[r.place])!=0)return!1;var d=e.slice(r.place,c+r.place);if(r.place+=c,2!==e[r.place++])return!1;var f=o(e,r);if(!1===f||e.length!==f+r.place||(128&e[r.place])!=0)return!1;var u=e.slice(r.place,f+r.place);if(0===d[0]){if(!(128&d[1]))return!1;d=d.slice(1)}if(0===u[0]){if(!(128&u[1]))return!1;u=u.slice(1)}return this.r=new n(d),this.s=new n(u),this.recoveryParam=null,!0},c.prototype.toDER=function(e){var t=this.r.toArray(),r=this.s.toArray();for(128&t[0]&&(t=[0].concat(t)),128&r[0]&&(r=[0].concat(r)),t=d(t),r=d(r);!r[0]&&!(128&r[1]);)r=r.slice(1);var n=[2];f(n,t.length),(n=n.concat(t)).push(2),f(n,r.length);var s=n.concat(r),c=[48];return f(c,s.length),c=c.concat(s),i.encode(c,e)}},1996:function(e,t,r){"use strict";var n=r(45370),i=r(56758),s=r(50389),c=s.assert,a=s.parseBytes,o=r(18689),d=r(39594);function f(e){if(c("ed25519"===e,"only tested with ed25519 so far"),!(this instanceof f))return new f(e);e=i[e].curve,this.curve=e,this.g=e.g,this.g.precompute(e.n.bitLength()+1),this.pointClass=e.point().constructor,this.encodingLength=Math.ceil(e.n.bitLength()/8),this.hash=n.sha512}e.exports=f,f.prototype.sign=function(e,t){e=a(e);var r=this.keyFromSecret(t),n=this.hashInt(r.messagePrefix(),e),i=this.g.mul(n),s=this.encodePoint(i),c=this.hashInt(s,r.pubBytes(),e).mul(r.priv()),o=n.add(c).umod(this.curve.n);return this.makeSignature({R:i,S:o,Rencoded:s})},f.prototype.verify=function(e,t,r){if(e=a(e),(t=this.makeSignature(t)).S().gte(t.eddsa.curve.n)||t.S().isNeg())return!1;var n=this.keyFromPublic(r),i=this.hashInt(t.Rencoded(),n.pubBytes(),e),s=this.g.mul(t.S());return t.R().add(n.pub().mul(i)).eq(s)},f.prototype.hashInt=function(){for(var e=this.hash(),t=0;t<arguments.length;t++)e.update(arguments[t]);return s.intFromLE(e.digest()).umod(this.curve.n)},f.prototype.keyFromPublic=function(e){return o.fromPublic(this,e)},f.prototype.keyFromSecret=function(e){return o.fromSecret(this,e)},f.prototype.makeSignature=function(e){return e instanceof d?e:new d(this,e)},f.prototype.encodePoint=function(e){var t=e.getY().toArray("le",this.encodingLength);return t[this.encodingLength-1]|=e.getX().isOdd()?128:0,t},f.prototype.decodePoint=function(e){var t=(e=s.parseBytes(e)).length-1,r=e.slice(0,t).concat(-129&e[t]),n=(128&e[t])!=0,i=s.intFromLE(r);return this.curve.pointFromY(i,n)},f.prototype.encodeInt=function(e){return e.toArray("le",this.encodingLength)},f.prototype.decodeInt=function(e){return s.intFromLE(e)},f.prototype.isPoint=function(e){return e instanceof this.pointClass}},18689:function(e,t,r){"use strict";var n=r(50389),i=n.assert,s=n.parseBytes,c=n.cachedProperty;function a(e,t){this.eddsa=e,this._secret=s(t.secret),e.isPoint(t.pub)?this._pub=t.pub:this._pubBytes=s(t.pub)}a.fromPublic=function(e,t){return t instanceof a?t:new a(e,{pub:t})},a.fromSecret=function(e,t){return t instanceof a?t:new a(e,{secret:t})},a.prototype.secret=function(){return this._secret},c(a,"pubBytes",function(){return this.eddsa.encodePoint(this.pub())}),c(a,"pub",function(){return this._pubBytes?this.eddsa.decodePoint(this._pubBytes):this.eddsa.g.mul(this.priv())}),c(a,"privBytes",function(){var e=this.eddsa,t=this.hash(),r=e.encodingLength-1,n=t.slice(0,e.encodingLength);return n[0]&=248,n[r]&=127,n[r]|=64,n}),c(a,"priv",function(){return this.eddsa.decodeInt(this.privBytes())}),c(a,"hash",function(){return this.eddsa.hash().update(this.secret()).digest()}),c(a,"messagePrefix",function(){return this.hash().slice(this.eddsa.encodingLength)}),a.prototype.sign=function(e){return i(this._secret,"KeyPair can only verify"),this.eddsa.sign(e,this)},a.prototype.verify=function(e,t){return this.eddsa.verify(e,t,this)},a.prototype.getSecret=function(e){return i(this._secret,"KeyPair is public only"),n.encode(this.secret(),e)},a.prototype.getPublic=function(e){return n.encode(this.pubBytes(),e)},e.exports=a},39594:function(e,t,r){"use strict";var n=r(28891),i=r(50389),s=i.assert,c=i.cachedProperty,a=i.parseBytes;function o(e,t){this.eddsa=e,"object"!=typeof t&&(t=a(t)),Array.isArray(t)&&(s(t.length===2*e.encodingLength,"Signature has invali
1d size"),t={R:t.slice(0,e.encodingLength),S:t.slice(e.encodingLength)}),s(t.R&&t.S,"Signature without R or S"),e.isPoint(t.R)&&(this._R=t.R),t.S instanceof n&&(this._S=t.S),this._Rencoded=Array.isArray(t.R)?t.R:t.Rencoded,this._Sencoded=Array.isArray(t.S)?t.S:t.Sencoded}c(o,"S",function(){return this.eddsa.decodeInt(this.Sencoded())}),c(o,"R",function(){return this.eddsa.decodePoint(this.Rencoded())}),c(o,"Rencoded",function(){return this.eddsa.encodePoint(this.R())}),c(o,"Sencoded",function(){return this.eddsa.encodeInt(this.S())}),o.prototype.toBytes=function(){return this.Rencoded().concat(this.Sencoded())},o.prototype.toHex=function(){return i.encode(this.toBytes(),"hex").toUpperCase()},e.exports=o},86165:function(e){e
vendor: 26,137 bytes, line 1
1.exports={doubles:{step:4,points:[["e60fce93b59e9ec53011aabc21c23e97b2a31369b87a5ae9c44ee89e2a6dec0a","f7e3507399e595929db99f34f57937101296891e44d23f0be1f32cce69616821"],["8282263212c609d9ea2a6e3e172de238d8c39cabd5ac1ca10646e23fd5f51508","11f8a8098557dfe45e8256e830b60ace62d613ac2f7b17bed31b6eaff6e26caf"],["175e159f728b865a72f99cc6c6fc846de0b93833fd2222ed73fce5b551e5b739","d3506e0d9e3c79eba4ef97a51ff71f5eacb5955add24345c6efa6ffee9fed695"],["363d90d447b00c9c99ceac05b6262ee053441c7e55552ffe526bad8f83ff4640","4e273adfc732221953b445397f3363145b9a89008199ecb62003c7f3bee9de9"],["8b4b5f165df3c2be8c6244b5b745638843e4a781a15bcd1b69f79a55dffdf80c","4aad0a6f68d308b4b3fbd7813ab0da04f9e336546162ee56b3eff0c65fd4fd36"],["723cbaa6e5db996d6bf771c00bd548c7b700dbffa6c0e77bcb6115925232fcda","96e867b5595cc498a921137488824d6e2660a0653779494801dc069d9eb39f5f"],["eebfa4d493bebf98ba5feec812c2d3b50947961237a919839a533eca0e7dd7fa","5d9a8ca3970ef0f269ee7edaf178089d9ae4cdc3a711f712ddfd4fdae1de8999"],["100f44da696e71672791d0a09b7bde459f1215a29b3c03bfefd7835b39a48db0","cdd9e13192a00b772ec8f3300c090666b7ff4a18ff5195ac0fbd5cd62bc65a09"],["e1031be262c7ed1b1dc9227a4a04c017a77f8d4464f3b3852c8acde6e534fd2d","9d7061928940405e6bb6a4176597535af292dd419e1ced79a44f18f29456a00d"],["feea6cae46d55b530ac2839f143bd7ec5cf8b266a41d6af52d5e688d9094696d","e57c6b6c97dce1bab06e4e12bf3ecd5c981c8957cc41442d3155debf18090088"],["da67a91d91049cdcb367be4be6ffca3cfeed657d808583de33fa978bc1ec6cb1","9bacaa35481642bc41f463f7ec9780e5dec7adc508f740a17e9ea8e27a68be1d"],["53904faa0b334cdda6e000935ef22151ec08d0f7bb11069f57545ccc1a37b7c0","5bc087d0bc80106d88c9eccac20d3c1c13999981e14434699dcb096b022771c8"],["8e7bcd0bd35983a7719cca7764ca906779b53a043a9b8bcaeff959f43ad86047","10b7770b2a3da4b3940310420ca9514579e88e2e47fd68b3ea10047e8460372a"],["385eed34c1cdff21e6d0818689b81bde71a7f4f18397e6690a841e1599c43862","283bebc3e8ea23f56701de19e9ebf4576b304eec2086dc8cc0458fe5542e5453"],["6f9d9b803ecf191637c73a4413dfa180fddf84a5947fbc9c606ed86c3fac3a7","7c80c68e603059ba69b8e2a30e45c4d47ea4dd2f5c281002d86890603a842160"],["3322d401243c4e2582a2147c104d6ecbf774d163db0f5e5313b7e0e742d0e6bd","56e70797e9664ef5bfb019bc4ddaf9b72805f63ea2873af624f3a2e96c28b2a0"],["85672c7d2de0b7da2bd1770d89665868741b3f9af7643397721d74d28134ab83","7c481b9b5b43b2eb6374049bfa62c2e5e77f17fcc5298f44c8e3094f790313a6"],["948bf809b1988a46b06c9f1919413b10f9226c60f668832ffd959af60c82a0a","53a562856dcb6646dc6b74c5d1c3418c6d4dff08c97cd2bed4cb7f88d8c8e589"],["6260ce7f461801c34f067ce0f02873a8f1b0e44dfc69752accecd819f38fd8e8","bc2da82b6fa5b571a7f09049776a1ef7ecd292238051c198c1a84e95b2b4ae17"],["e5037de0afc1d8d43d8348414bbf4103043ec8f575bfdc432953cc8d2037fa2d","4571534baa94d3b5f9f98d09fb990bddbd5f5b03ec481f10e0e5dc841d755bda"],["e06372b0f4a207adf5ea905e8f1771b4e7e8dbd1c6a6c5b725866a0ae4fce725","7a908974bce18cfe12a27bb2ad5a488cd7484a7787104870b27034f94eee31dd"],["213c7a715cd5d45358d0bbf9dc0ce02204b10bdde2a3f58540ad6908d0559754","4b6dad0b5ae462507013ad06245ba190bb4850f5f36a7eeddff2c27534b458f2"],["4e7c272a7af4b34e8dbb9352a5419a87e2838c70adc62cddf0cc3a3b08fbd53c","17749c766c9d0b18e16fd09f6def681b530b9614bff7dd33e0b3941817dcaae6"],["fea74e3dbe778b1b10f238ad61686aa5c76e3db2be43057632427e2840fb27b6","6e0568db9b0b13297cf674deccb6af93126b596b973f7b77701d3db7f23cb96f"],["76e64113f677cf0e10a2570d599968d31544e179b760432952c02a4417bdde39","c90ddf8dee4e95cf577066d70681f0d35e2a33d2b56d2032b4b1752d1901ac01"],["c738c56b03b2abe1e8281baa743f8f9a8f7cc643df26cbee3ab150242bcbb891","893fb578951ad2537f718f2eacbfbbbb82314eef7880cfe917e735d9699a84c3"],["d895626548b65b81e264c7637c972877d1d72e5f3a925014372e9f6588f6c14b","febfaa38f2bc7eae728ec60818c340eb03428d632bb067e179363ed75d7d991f"],["b8da94032a957518eb0f6433571e8761ceffc73693e84edd49150a564f676e03","2804dfa44805a1e4d7c99cc9762808b092cc584d95ff3b511488e4e74efdf6e7"],["e80fea14441fb33a7d8adab9475d7fab2019effb5156a792f1a11778e3c0df5d","eed1de7f638e00771e89768ca3ca94472d155e80af322ea9fcb4291b6ac9ec78"],["a301697bdfcd704313ba48e51d567543f2a182031efd6915ddc07bbcc4e16070","7370f91cfb67e4f5081809fa25d40f9b1735dbf7c0a11a130c0d1a041e177ea1"],["90ad85b389d6b936463f9d0512678de208cc330b11307fffab7ac63e3fb04ed4","e507a3620a38261affdcbd9427222b839aefabe1582894d991d4d48cb6ef150"],["8f68b9d2f63b5f339239c1ad981f162ee88c5678723ea3351b7b444c9ec4c0da","662a9f2dba063986de1d90c2b6be215dbbea2cfe95510bfdf23cbf79501fff82"],["e4f3fb0176af85d65ff99ff9198c36091f48e86503681e3e6686fd5053231e11","1e63633ad0ef4f1c1661a6d0ea02b7286cc7e74ec951d1c9822c38576feb73bc"],["8c00fa9b18ebf331eb961537a45a4266c7034f2f0d4e1d0716fb6eae20eae29e","efa47267fea521a1a9dc343a3736c974c2fadafa81e36c54e7d2a4c66702414b"],["e7a26ce69dd4829f3e10cec0a9e98ed3143d084f308b92c0997fddfc60cb3e41","2a758e300fa7984b471b006a1aafbb18d0a6b2c0420e83e20e8a9421cf2cfd51"],["b6459e0ee3662ec8d23540c223bcbdc571cbcb967d79424f3cf29eb3de6b80ef","67c876d06f3e06de1dadf16e5661db3c4b3ae6d48e35b2ff30bf0b61a71ba45"],["d68a80c8280bb840793234aa118f06231d6f1fc67e73c5a5deda0f5b496943e8","db8ba9fff4b586d00c4b1f9177b0e28b5b0e7b8f7845295a294c84266b133120"],["324aed7df65c804252dc0270907a30b09612aeb973449cea4095980fc28d3d5d","648a365774b61f2ff130c0c35aec1f4f19213b0c7e332843967224af96ab7c84"],["4df9c14919cde61f6d51dfdbe5fee5dceec4143ba8d1ca888e8bd373fd054c96","35ec51092d8728050974c23a1d85d4b5d506cdc288490192ebac06cad10d5d"],["9c3919a84a474870faed8a9c1cc66021523489054d7f0308cbfc99c8ac1f98cd","ddb84f0f4a4ddd57584f044bf260e641905326f76c64c8e6be7e5e03d4fc599d"],["6057170b1dd12fdf8de05f281d8e06bb91e1493a8b91d4cc5a21382120a959e5","9a1af0b26a6a4807add9a2daf71df262465152bc3ee24c65e899be932385a2a8"],["a576df8e23a08411421439a4518da31880cef0fba7d4df12b1a6973eecb94266","40a6bf20e76640b2c92b97afe58cd82c432e10a7f514d9f3ee8be11ae1b28ec8"],["7778a78c28dec3e30a05fe9629de8c38bb30d1f5cf9a3a208f763889be58ad71","34626d9ab5a5b22ff7098e12f2ff580087b38411ff24ac563b513fc1fd9f43ac"],["928955ee637a84463729fd30e7afd2ed5f96274e5ad7e5cb09eda9c06d903ac","c25621003d3f42a827b78a13093a95eeac3d26efa8a8d83fc5180e935bcd091f"],["85d0fef3ec6db109399064f3a0e3b2855645b4a907ad354527aae75163d82751","1f03648413a38c0be29d496e582cf5663e8751e96877331582c237a24eb1f962"],["ff2b0dce97eece97c1c9b6041798b85dfdfb6d8882da20308f5404824526087e","493d13fef524ba188af4c4dc54d07936c7b7ed6fb90e2ceb2c951e01f0c29907"],["827fbbe4b1e880ea9ed2b2e6301b212b57f1ee148cd6dd28780e5e2cf856e241","c60f9c923c727b0b71bef2c67d1d12687ff7a63186903166d605b68baec293ec"],["eaa649f21f51bdbae7be4ae34ce6e5217a58fdce7f47f9aa7f3b58fa2120e2b3","be3279ed5bbbb03ac69a80f89879aa5a01a6b965f13f7e59d47a5305ba5ad93d"],["e4a42d43c5cf169d9391df6decf42ee541b6d8f0c9a137401e23632dda34d24f","4d9f92e716d1c73526fc99ccfb8ad34ce886eedfa8d8e4f13a7f7131deba9414"],["1ec80fef360cbdd954160fadab352b6b92b53576a88fea4947173b9d4300bf19","aeefe93756b5340d2f3a4958a7abbf5e0146e77f6295a07b671cdc1cc107cefd"],["146a778c04670c2f91b00af4680dfa8bce3490717d58ba889ddb5928366642be","b318e0ec3354028add669827f9d4b2870aaa971d2f7e5ed1d0b297483d83efd0"],["fa50c0f61d22e5f07e3acebb1aa07b128d0012209a28b9776d76a8793180eef9","6b84c6922397eba9b72cd2872281a68a5e683293a57a213b38cd8d7d3f4f2811"],["da1d61d0ca721a11b1a5bf6b7d88e8421a288ab5d5bba5220e53d32b5f067ec2","8157f55a7c99306c79c0766161c91e2966a73899d279b48a655fba0f1ad836f1"],["a8e282ff0c9706907215ff98e8fd416615311de0446f1e062a73b0610d064e13","7f97355b8db81c09abfb7f3c5b2515888b679a3e50dd6bd6cef7c73111f4cc0c"],["174a53b9c9a285872d39e56e6913cab15d59b1fa512508c022f382de8319497c","ccc9dc37abfc9c1657b4155f2c47f9e6646b3a1d8cb9854383da13ac079afa73"],["959396981943785c3d3e57edf5018cdbe039e730e4918b3d884fdff09475b7ba","2e7e552888c331dd8ba0386a4b9cd6849c653f64c8709385e9b8abf87524f2fd"],["d2a63a50ae401e56d645a1153b109a8fcca0a43d561fba2dbb51340c9d82b151","e82d86fb6443fcb7565aee58b2948220a70f750af484ca52d4142174dcf89405"],["64587e2335471eb890ee7896d7cfdc866bacbdbd3839317b3436f9b45617e073","d99fcdd5bf6902e2ae96dd6447c299a185b90a39133aeab358299e5e9faf6589"],["8481bde0e4e4d885b3a546d3e549de042f0aa6cea250e7fd358d6c86dd45e458","38ee7b8cba5404dd84a25bf39cecb2ca900a79c42b262e556d64b1b59779057e"],["13464a57a78102aa62b6979ae817f4637ffcfed3c4b1ce30bcd6303f6caf666b","69be159004614580ef7e433453ccb0ca48f300a81d0942e13f495a907f6ecc27"],["bc4a9df5b713fe2e9aef430bcc1dc97a0cd9ccede2f28588cada3a0d2d83f366","d3a81ca6e785c06383937adf4b798caa6e8a9fbfa547b16d758d666581f33c1"],["8c28a97bf8298bc0d23d8c749452a32e694b65e30a9472a3954ab30fe5324caa","40a30463a3305193378fedf31f7cc0eb7ae784f0451cb9459e71dc73cbef9482"],["8ea9666139527a8c1dd94ce4f071fd23c8b350c5a4bb33748c4ba111faccae0","620efabbc8ee2782e24e7c0cfb95c5d735b783be9cf0f8e955af34a30e62b945"],["dd3625faef5ba06074669716bbd3788d89bdde815959968092f76cc4eb9a9787","7a188fa3520e30d461da2501045731ca941461982883395937f68d00c644a573"],["f710d79d9eb962297e4f6232b40e8f7feb2bc63814614d692c12de752408221e","ea98e67232d3b3295d3b535532115ccac8612c721851617526ae47a9c77bfc82"]]},naf:{wnd:7,points:[["f9308a019258c31049344f85f89d5229b531c845836f99b08601f113bce036f9","388f7b0f632de8140fe337e62a37f3566500a99934c2231b6cb9fd7584b8e672"],["2f8bde4d1a07209355b4a7250a5c5128e88b84bddc619ab7cba8d569b240efe4","d8ac222636e5e3d6d4dba9dda6c9c426f788271bab0d6840dca87d3aa6ac62d6"],["5cbdf0646e5db4eaa398f365f2ea7a0e3d419b7e0330e39ce92bddedcac4f9bc","6aebca40ba255960a3178d6d861a54dba813d0b813fde7b5a5082628087264da"],["acd484e2f0c7f65309ad178a9f559abde09796974c57e714c35f110dfc27ccbe","cc338921b0a7d9fd64380971763b61e9add888a4375f8e0f05cc262ac64f9c37"],["774ae7f858a9411e5ef4246b70c65aac5649980be5c17891bbec17895da008cb","d984a032eb6b5e190243dd56d7b7b365372db1e2dff9d6a8301d74c9c953c61b"],["f28773c2d975288bc7d1d205c3748651b075fbc6610e58cddeeddf8f19405aa8","ab0902e8d880a89758212eb65cdaf473a1a06da521fa91f29b5cb52db03ed81"],["d7924d4f7d43ea965a465ae3095ff41131e5946f3c85f79e44adbcf8e27e080e","581e2872a86c72a683842ec228cc6defea40af2bd896d3a5c504dc9ff6a26b58"],["defdea4cdb677750a420fee807eacf21eb9898ae79b9768766e4faa04a2d4a34","4211ab0694635168e997b0ead2a93daeced1f4a04a95c0f6cfb199f69e56eb77"],["2b4ea0a797a443d293ef5cff444f4979f06acfebd7e86d277475656138385b6c","85e89bc037945d93b343083b5a1c86131a01f60c50269763b570c854e5c09b7a"],["352bbf4a4cdd12564f93fa332ce333301d9ad40271f8107181340aef25be59d5","321eb4075348f534d59c18259dda3e1f4a1b3b2e71b1039c67bd3d8bcf81998c"],["2fa2104d6b38d11b0230010559879124e42ab8dfeff5ff29dc9cdadd4ecacc3f","2de1068295dd865b64569335bd5dd80181d70ecfc882648423ba76b532b7d67"],["9248279b09b4d68dab21a9b066edda83263c3d84e09572e269ca0cd7f5453714","73016f7bf234aade5d1aa71bdea2b1ff3fc0de2a887912ffe54a32ce97cb3402"],["daed4f2be3a8bf278e70132fb0beb7522f570e144bf615c07e996d443dee8729","a69dce4a7d6c98e8d4a1aca87ef8d7003f83c230f3afa726ab40e52290be1c55"],["c44d12c7065d812e8acf28d7cbb19f9011ecd9e9fdf281b0e6a3b5e87d22e7db","2119a460ce326cdc76c45926c982fdac0e106e861edf61c5a039063f0e0e6482"],["6a245bf6dc698504c89a20cfded60853152b695336c28063b61c65cbd269e6b4","e022cf42c2bd4a708b3f5126f16a24ad8b33ba48d0423b6efd5e6348100d8a82"],["1697ffa6fd9de627c077e3d2fe541084ce13300b0bec1146f95ae57f0d0bd6a5","b9c398f186806f5d27561506e4557433a2cf15009e498ae7adee9d63d01b2396"],["605bdb019981718b986d0f07e834cb0d9deb8360ffb7f61df982345ef27a7479","2972d2de4f8d20681a78d93ec96fe23c26bfae84fb14db43b01e1e9056b8c49"],["62d14dab4150bf497402fdc45a215e10dcb01c354959b10cfe31c7e9d87ff33d","80fc06bd8cc5b01098088a1950eed0db01aa132967ab472235f5642483b25eaf"],["80c60ad0040f27dade5b4b06c408e56b2c50e9f56b9b8b425e555c2f86308b6f","1c38303f1cc5c30f26e66bad7fe72f70a65eed4cbe7024eb1aa01f56430bd57a"],["7a9375ad6167ad54aa74c6348cc54d344cc5dc9487d847049d5eabb0fa03c8fb","d0e3fa9eca8726909559e0d79269046bdc59ea10c70ce2b02d499ec224dc7f7"],["d528ecd9b696b54c907a9ed045447a79bb408ec39b68df504bb51f459bc3ffc9","eecf41253136e5f99966f21881fd656ebc4345405c520dbc063465b521409933"],["49370a4b5f43412ea25f514e8ecdad05266115e4a7ecb1387231808f8b45963","758f3f41afd6ed428b3081b0512fd62a54c3f3afbb5b6764b653052a12949c9a"],["77f230936ee88cbbd73df930d64702ef881d811e0e1498e2f1c13eb1fc345d74","958ef42a7886b6400a08266e9ba1b37896c95330d97077cbbe8eb3c7671c60d6"],["f2dac991cc4ce4b9ea44887e5c7c0bce58c80074ab9d4dbaeb28531b7739f530","e0dedc9b3b2f8dad4da1f32dec2531df9eb5fbeb0598e4fd1a117dba703a3c37"],["463b3d9f662621fb1b4be8fbbe2520125a216cdfc9dae3debcba4850c690d45b","5ed430d78c296c3543114306dd8622d7c622e27c970a1de31cb377b01af7307e"],["f16f804244e46e2a09232d4aff3b59976b98fac14328a2d1a32496b49998f247","cedabd9b82203f7e13d206fcdf4e33d92a6c53c26e5cce26d6579962c4e31df6"],["caf754272dc84563b0352b7a14311af55d245315ace27c65369e15f7151d41d1","cb474660ef35f5f2a41b643fa5e460575f4fa9b7962232a5c32f908318a04476"],["2600ca4b282cb986f85d0f1709979d8b44a09c07cb86d7c124497bc86f082120","4119b88753c15bd6a693b03fcddbb45d5ac6be74ab5f0ef44b0be9475a7e4b40"],["7635ca72d7e8432c338ec53cd12220bc01c48685e24f7dc8c602a7746998e435","91b649609489d613d1d5e590f78e6d74ecfc061d57048bad9e76f302c5b9c61"],["754e3239f325570cdbbf4a87deee8a66b7f2b33479d468fbc1a50743bf56cc18","673fb86e5bda30fb3cd0ed304ea49a023ee33d0197a695d0c5d98093c536683"],["e3e6bd1071a1e96aff57859c82d570f0330800661d1c952f9fe2694691d9b9e8","59c9e0bba394e76f40c0aa58379a3cb6a5a2283993e90c4167002af4920e37f5"],["186b483d056a033826ae73d88f732985c4ccb1f32ba35f4b4cc47fdcf04aa6eb","3b952d32c67cf77e2e17446e204180ab21fb8090895138b4a4a797f86e80888b"],["df9d70a6b9876ce544c98561f4be4f725442e6d2b737d9c91a8321724ce0963f","55eb2dafd84d6ccd5f862b785dc39d4ab157222720ef9da217b8c45cf2ba2417"],["5edd5cc23c51e87a497ca815d5dce0f8ab52554f849ed8995de64c5f34ce7143","efae9c8dbc14130661e8cec030c89ad0c13c66c0d17a2905cdc706ab7399a868"],["290798c2b6476830da12fe02287e9e777aa3fba1c355b17a722d362f84614fba","e38da76dcd440621988d00bcf79af25d5b29c094db2a23146d003afd41943e7a"],["af3c423a95d9f5b3054754efa150ac39cd29552fe360257362dfdecef4053b45","f98a3fd831eb2b749a93b0e6f35cfb40c8cd5aa667a15581bc2feded498fd9c6"],["766dbb24d134e745cccaa28c99bf274906bb66b26dcf98df8d2fed50d884249a","744b1152eacbe5e38dcc887980da38b897584a65fa06cedd2c924f97cbac5996"],["59dbf46f8c94759ba21277c33784f41645f7b44f6c596a58ce92e666191abe3e","c534ad44175fbc300f4ea6ce648309a042ce739a7919798cd85e216c4a307f6e"],["f13ada95103c4537305e691e74e9a4a8dd647e711a95e73cb62dc6018cfd87b8","e13817b44ee14de663bf4bc808341f326949e21a6a75c2570778419bdaf5733d"],["7754b4fa0e8aced06d4167a2c59cca4cda1869c06ebadfb6488550015a88522c","30e93e864e669d82224b967c3020b8fa8d1e4e350b6cbcc537a48b57841163a2"],["948dcadf5990e048aa3874d46abef9d701858f95de8041d2a6828c99e2262519","e491a42537f6e597d5d28a3224b1bc25df9154efbd2ef1d2cbba2cae5347d57e"],["7962414450c76c1689c7b48f8202ec37fb224cf5ac0bfa1570328a8a3d7c77ab","100b610ec4ffb4760d5c1fc133ef6f6b12507a051f04ac5760afa5b29db83437"],["3514087834964b54b15b160644d915485a16977225b8847bb0dd085137ec47ca","ef0afbb2056205448e1652c48e8127fc6039e77c15c2378b7e7d15a0de293311"],["d3cc30ad6b483e4bc79ce2c9dd8bc54993e947eb8df787b442943d3f7b527eaf","8b378a22d827278d89c5e9be8f9508ae3c2ad46290358630afb34db04eede0a4"],["1624d84780732860ce1c78fcbfefe08b2b29823db913f6493975ba0ff4847610","68651cf9b6da903e0914448c6cd9d4ca896878f5282be4c8cc06e2a404078575"],["733ce80da955a8a26902c95633e62a985192474b5af207da6df7b4fd5fc61cd4","f5435a2bd2badf7d485a4d8b8db9fcce3e1ef8e0201e4578c54673bc1dc5ea1d"],["15d9441254945064cf1a1c33bbd3b49f8966c5092171e699ef258dfab81c045c","d56eb30b69463e7234f5137b73b84177434800bacebfc685fc37bbe9efe4070d"],["a1d0fcf2ec9de675b612136e5ce70d271c21417c9d2b8aaaac138599d0717940","edd77f50bcb5a3cab2e90737309667f2641462a54070f3d519212d39c197a629"],["e22fbe15c0af8ccc5780c0735f84dbe9a790badee8245c06c7ca37331cb36980","a855babad5cd60c88b430a69f53a1a7a38289154964799be43d06d77d31da06"],["311091dd9860e8e20ee13473c1155f5f69635e394704eaa74009452246cfa9b3","66db656f87d1f04fffd1f04788c06830871ec5a64feee685bd80f0b1286d8374"],["34c1fd04d301be89b31c0442d3e6ac24883928b45a9340781867d4232ec2dbdf","9414685e97b1b5954bd46f730174136d57f1ceeb487443dc5321857ba73abee"],["f219ea5d6b54701c1c14de5b557eb42a8d13f3abbcd08affcc2a5e6b049b8d63","4cb95957e83d40b0f73af4544cccf6b1f4b08d3c07b27fb8d8c2962a400766d1"],["d7b8740f74a8fbaab1f683db8f45de26543a5490bca627087236912469a0b448","fa77968128d9c92ee1010f337ad4717eff15db5ed3c049b3411e0315eaa4593b"],["32d31c222f8f6f0ef86f7c98d3a3335ead5bcd32abdd94289fe4d3091aa824bf","5f3032f5892156e39ccd3d7915b9e1da2e6dac9e6f26e961118d14b8462e1661"],["7461f371914ab32671045a155d9831ea8793d77cd59592c4340f86cbc18347b5","8ec0ba238b96bec0cbdddcae0aa442542eee1ff50c986ea6b39847b3cc092ff6"],["ee079adb1df1860074356a25aa38206a6d716b2c3e67453d287698bad7b2b2d6","8dc2412aafe3be5c4c5f37e0ecc5f9f6a446989af04c4e25ebaac479ec1c8c1e"],["16ec93e447ec83f0467b18302ee620f7e65de331874c9dc72bfd8616ba9da6b5","5e4631150e62fb40d0e8c2a7ca5804a39d58186a50e497139626778e25b0674d"],["eaa5f980c245f6f038978290afa70b6bd8855897f98b6aa485b96065d537bd99","f65f5d3e292c2e0819a528391c994624d784869d7e6ea67fb18041024edc07dc"],["78c9407544ac132692ee1910a02439958ae04877151342ea96c4b6b35a49f51","f3e0319169eb9b85d5404795539a5e68fa1fbd583c064d2462b675f194a3ddb4"],["494f4be219a1a77016dcd838431aea0001cdc8ae7a6fc688726578d9702857a5","42242a969283a5f339ba7f075e36ba2af925ce30d767ed6e55f4b031880d562c"],["a598a8030da6d86c6bc7f2f5144ea549d28211ea58faa70ebf4c1e665c1fe9b5","204b5d6f84822c307e4b4a7140737aec23fc63b65b35f86a10026dbd2d864e6b"],["c41916365abb2b5d09192f5f2dbeafec208f020f12570a184dbadc3e58595997","4f14351d0087efa49d245b328984989d5caf9450f34bfc0ed16e96b58fa9913"],["841d6063a586fa475a724604da03bc5b92a2e0d2e0a36acfe4c73a5514742881","73867f59c0659e81904f9a1c7543698e62562d6744c169ce7a36de01a8d6154"],["5e95bb399a6971d376026947f89bde2f282b33810928be4ded112ac4d70e20d5","39f23f366809085beebfc71181313775a99c9aed7d8ba38b161384c746012865"],["36e4641a53948fd476c39f8a99fd974e5ec07564b5315d8bf99471bca0ef2f66","d2424b1b1abe4eb8164227b085c9aa9456ea13493fd563e06fd51cf5694c78fc"],["336581ea7bfbbb290c191a2f507a41cf5643842170e914faeab27c2c579f726","ead12168595fe1be99252129b6e56b3391f7ab1410cd1e0ef3dcdcabd2fda224"],["8ab89816dadfd6b6a1f2634fcf00ec8403781025ed6890c4849742706bd43ede","6fdcef09f2f6d0a044e654aef624136f503d459c3e89845858a47a9129cdd24e"],["1e33f1a746c9c5778133344d9299fcaa20b0938e8acff2544bb40284b8c5fb94","60660257dd11b3aa9c8ed618d24edff2306d320f1d03010e33a7d2057f3b3b6"],["85b7c1dcb3cec1b7ee7f30ded79dd20a0ed1f4cc18cbcfcfa410361fd8f08f31","3d98a9cdd026dd43f39048f25a8847f4fcafad1895d7a633c6fed3c35e999511"],["29df9fbd8d9e46509275f4b125d6d45d7fbe9a3b878a7af872a2800661ac5f51","b4c4fe99c775a606e2d8862179139ffda61dc861c019e55cd2876eb2a27d84b"],["a0b1cae06b0a847a3fea6e671aaf8adfdfe58ca2f768105c8082b2e449fce252","ae434102edde0958ec4b19d917a6a28e6b72da1834aff0e650f049503a296cf2"],["4e8ceafb9b3e9a136dc7ff67e840295b499dfb3b2133e4ba113f2e4c0e121e5","cf2174118c8b6d7a4b48f6d534ce5c79422c086a63460502b827ce62a326683c"],["d24a44e047e19b6f5afb81c7ca2f69080a5076689a010919f42725c2b789a33b","6fb8d5591b466f8fc63db50f1c0f1c69013f996887b8244d2cdec417afea8fa3"],["ea01606a7a6c9cdd249fdfcfacb99584001edd28abbab77b5104e98e8e3b35d4","322af4908c7312b0cfbfe369f7a7b3cdb7d4494bc2823700cfd652188a3ea98d"],["af8addbf2b661c8a6c6328655eb96651252007d8c5ea31be4ad196de8ce2131f","6749e67c029b85f52a034eafd096836b2520818680e26ac8f3dfbcdb71749700"],["e3ae1974566ca06cc516d47e0fb165a674a3dabcfca15e722f0e3450f45889","2aeabe7e4531510116217f07bf4d07300de97e4874f81f533420a72eeb0bd6a4"],["591ee355313d99721cf6993ffed1e3e301993ff3ed258802075ea8ced397e246","b0ea558a113c30bea60fc4775460c7901ff0b053d25ca2bdeee98f1a4be5d196"],["11396d55fda54c49f19aa97318d8da61fa8584e47b084945077cf03255b52984","998c74a8cd45ac01289d5833a7beb4744ff536b01b257be4c5767bea93ea57a4"],["3c5d2a1ba39c5a1790000738c9e0c40b8dcdfd5468754b6405540157e017aa7a","b2284279995a34e2f9d4de7396fc18b80f9b8b9fdd270f6661f79ca4c81bd257"],["cc8704b8a60a0defa3a99a7299f2e9c3fbc395afb04ac078425ef8a1793cc030","bdd46039feed17881d1e0862db347f8cf395b74fc4bcdc4e940b74e3ac1f1b13"],["c533e4f7ea8555aacd9777ac5cad29b97dd4defccc53ee7ea204119b2889b197","6f0a256bc5efdf429a2fb6242f1a43a2d9b925bb4a4b3a26bb8e0f45eb596096"],["c14f8f2ccb27d6f109f6d08d03cc96a69ba8c34eec07bbcf566d48e33da6593","c359d6923bb398f7fd4473e16fe1c28475b740dd098075e6c0e8649113dc3a38"],["a6cbc3046bc6a450bac24789fa17115a4c9739ed75f8f21ce441f72e0b90e6ef","21ae7f4680e889bb130619e2c0f95a360ceb573c70603139862afd617fa9b9f"],["347d6d9a02c48927ebfb86c1359b1caf130a3c0267d11ce6344b39f99d43cc38","60ea7f61a353524d1c987f6ecec92f086d565ab687870cb12689ff1e31c74448"],["da6545d2181db8d983f7dcb375ef5866d47c67b1bf31c8cf855ef7437b72656a","49b96715ab6878a79e78f07ce5680c5d6673051b4935bd897fea824b77dc208a"],["c40747cc9d012cb1a13b8148309c6de7ec25d6945d657146b9d5994b8feb1111","5ca560753be2a12fc6de6caf2cb489565db936156b9514e1bb5e83037e0fa2d4"],["4e42c8ec82c99798ccf3a610be870e78338c7f713348bd34c8203ef4037f3502","7571d74ee5e0fb92a7a8b33a07783341a5492144cc54bcc40a94473693606437"],["3775ab7089bc6af823aba2e1af70b236d251cadb0c86743287522a1b3b0dedea","be52d107bcfa09d8bcb9736a828cfa7fac8db17bf7a76a2c42ad961409018cf7"],["cee31cbf7e34ec379d94fb814d3d775ad954595d1314ba8846959e3e82f74e26","8fd64a14c06b589c26b947ae2bcf6bfa0149ef0be14ed4d80f448a01c43b1c6d"],["b4f9eaea09b6917619f6ea6a4eb5464efddb58fd45b1ebefcdc1a01d08b47986","39e5c9925b5a54b07433a4f18c61726f8bb131c012ca542eb24a8ac07200682a"],["d4263dfc3d2df923a0179a48966d30ce84e2515afc3dccc1b77907792ebcc60e","62dfaf07a0f78feb30e30d6295853ce189e127760ad6cf7fae164e122a208d54"],["48457524820fa65a4f8d35eb6930857c0032acc0a4a2de422233eeda897612c4","25a748ab367979d98733c38a1fa1c2e7dc6cc07db2d60a9ae7a76aaa49bd0f77"],["dfeeef1881101f2cb11644f3a2afdfc2045e19919152923f367a1767c11cceda","ecfb7056cf1de042f9420bab396793c0c390bde74b4bbdff16a83ae09a9a7517"],["6d7ef6b17543f8373c573f44e1f389835d89bcbc6062ced36c82df83b8fae859","cd450ec335438986dfefa10c57fea9bcc521a0959b2d80bbf74b190dca712d10"],["e75605d59102a5a2684500d3b991f2e3f3c88b93225547035af25af66e04541f","f5c54754a8f71ee540b9b48728473e314f729ac5308b06938360990e2bfad125"],["eb98660f4c4dfaa06a2be453d5020bc99a0c2e60abe388457dd43fefb1ed620c","6cb9a8876d9cb8520609af3add26cd20a0a7cd8a9411131ce85f44100099223e"],["13e87b027d8514d35939f2e6892b19922154596941888336dc3563e3b8dba942","fef5a3c68059a6dec5d624114bf1e91aac2b9da568d6abeb2570d55646b8adf1"],["ee163026e9fd6fe017c38f06a5be6fc125424b371ce2708e7bf4491691e5764a","1acb250f255dd61c43d94ccc670d0f58f49ae3fa15b96623e5430da0ad6c62b2"],["b268f5ef9ad51e4d78de3a750c2dc89b1e626d43505867999932e5db33af3d80","5f310d4b3c99b9ebb19f77d41c1dee018cf0d34fd4191614003e945a1216e423"],["ff07f3118a9df035e9fad85eb6c7bfe42b02f01ca99ceea3bf7ffdba93c4750d","438136d603e858a3a5c440c38eccbaddc1d2942114e2eddd4740d098ced1f0d8"],["8d8b9855c7c052a34146fd20ffb658bea4b9f69e0d825ebec16e8c3ce2b526a1","cdb559eedc2d79f926baf44fb84ea4d44bcf50fee51d7ceb30e2e7f463036758"],["52db0b5384dfbf05bfa9d472d7ae26dfe4b851ceca91b1eba54263180da32b63","c3b997d050ee5d423ebaf66a6db9f57b3180c902875679de924b69d84a7b375"],["e62f9490d3d51da6395efd24e80919cc7d0f29c3f3fa48c6fff543becbd43352","6d89ad7ba4876b0b22c2ca280c682862f342c8591f1daf5170e07bfd9ccafa7d"],["7f30ea2476b399b4957509c88f77d0191afa2ff5cb7b14fd6d8e7d65aaab1193","ca5ef7d4b231c94c3b15389a5f6311e9daff7bb67b103e9880ef4bff637acaec"],["5098ff1e1d9f14fb46a210fada6c903fef0fb7b4a1dd1d9ac60a0361800b7a00","9731141d81fc8f8084d37c6e7542006b3ee1b40d60dfe5362a5b132fd17ddc0"],["32b78c7de9ee512a72895be6b9cbefa6e2f3c4ccce445c96b9f2c81e2778ad58","ee1849f513df71e32efc3896ee28260c73bb80547ae2275ba497237794c8753c"],["e2cb74fddc8e9fbcd076eef2a7c72b0ce37d50f08269dfc074b581550547a4f7","d3aa2ed71c9dd2247a62df062736eb0baddea9e36122d2be8641abcb005cc4a4"],["8438447566d4d7bedadc299496ab357426009a35f235cb141be0d99cd10ae3a8","c4e1020916980a4da5d01ac5e6ad330734ef0d7906631c4f2390426b2edd791f"],["4162d488b89402039b584c6fc6c308870587d9c46f660b878ab65c82c711d67e","67163e903236289f776f22c25fb8a3afc1732f2b84b4e95dbda47ae5a0852649"],["3fad3fa84caf0f34f0f89bfd2dcf54fc175d767aec3e50684f3ba4a4bf5f683d","cd1bc7cb6cc407bb2f0ca647c718a730cf71872e7d0d2a53fa20efcdfe61826"],["674f2600a3007a00568c1a7ce05d0816c1fb84bf1370798f1c69532faeb1a86b","299d21f9413f33b3edf43b257004580b70db57da0b182259e09eecc69e0d38a5"],["d32f4da54ade74abb81b815ad1fb3b263d82d6c692714bcff87d29bd5ee9f08f","f9429e738b8e53b968e99016c059707782e14f4535359d582fc416910b3eea87"],["30e4e670435385556e593657135845d36fbb6931f72b08cb1ed954f1e3ce3ff6","462f9bce619898638499350113bbc9b10a878d35da70740dc695a559eb88db7b"],["be2062003c51cc3004682904330e4dee7f3dcd10b01e580bf1971b04d4cad297","62188bc49d61e5428573d48a74e1c655b1c61090905682a0d5558ed72dccb9bc"],["93144423ace3451ed29e0fb9ac2af211cb6e84a601df5993c419859fff5df04a","7c10dfb164c3425f5c71a3f9d7992038f1065224f72bb9d1d902a6d13037b47c"],["b015f8044f5fcbdcf21ca26d6c34fb8197829205c7b7d2a7cb66418c157b112c","ab8c1e086d04e813744a655b2df8d5f83b3cdc6faa3088c1d3aea1454e3a1d5f"],["d5e9e1da649d97d89e4868117a465a3a4f8a18de57a140d36b3f2af341a21b52","4cb04437f391ed73111a13cc1d4dd0db1693465c2240480d8955e8592f27447a"],["d3ae41047dd7ca065dbf8ed77b992439983005cd72e16d6f996a5316d36966bb","bd1aeb21ad22ebb22a10f0303417c6d964f8cdd7df0aca614b10dc14d125ac46"],["463e2763d885f958fc66cdd22800f0a487197d0a82e377b49f80af87c897b065","bfefacdb0e5d0fd7df3a311a94de062b26b80c61fbc97508b79992671ef7ca7f"],["7985fdfd127c0567c6f53ec1bb63ec3158e597c40bfe747c83cddfc910641917","603c12daf3d9862ef2b25fe1de289aed24ed291e0ec6708703a5bd567f32ed03"],["74a1ad6b5f76e39db2dd249410eac7f99e74c59cb83d2d0ed5ff1543da7703e9","cc6157ef18c9c63cd6193d83631bbea0093e0968942e8c33d5737fd790e0db08"],["30682a50703375f602d416664ba19b7fc9bab42c72747463a71d0896b22f6da3","553e04f6b018b4fa6c8f39e7f311d3176290d0e0f19ca73f17714d9977a22ff8"],["9e2158f0d7c0d5f26c3791efefa79597654e7a2b2464f52b1ee6c1347769ef57","712fcdd1b9053f09003a3481fa7762e9ffd7c8ef35a38509e2fbf2629008373"],["176e26989a43c9cfeba4029c202538c28172e566e3c4fce7322857f3be327d66","ed8cc9d04b29eb877d270b4878dc43c19aefd31f4eee09ee7b47834c1fa4b1c3"],["75d46efea3771e6e68abb89a13ad747ecf1892393dfc4f1b7004788c50374da8","9852390a99507679fd0b86fd2b39a868d7efc22151346e1a3ca4726586a6bed8"],["809a20c67d64900ffb698c4c825f6d5f2310fb0451c869345b7319f645605721","9e994980d9917e22b76b061927fa04143d096ccc54963e6a5ebfa5f3f8e286c1"],["1b38903a43f7f114ed4500b4eac7083fdefece1cf29c63528d563446f972c180","4036edc931a60ae889353f77fd53de4a2708b26b6f5da72ad3394119daf408f9"]]}}},
150389:function(e,t,r){"use strict";var n=r(28891),i=r(53),s=r(73721);t.assert=i,t.toArray=s.toArray,t.zero2=s.zero2,t.toHex=s.toHex,t.encode=s.encode,t.getNAF=function(e,t,r){var n=Array(Math.max(e.bitLength(),r)+1);for(c=0;c<n.length;c+=1)n[c]=0;var i=1<<t+1,s=e.clone();for(c=0;c<n.length;c++){var c,a,o=s.andln(i-1);s.isOdd()?(a=o>(i>>1)-1?(i>>1)-o:o,s.isubn(a)):a=0,n[c]=a,s.iushrn(1)}return n},t.getJSF=function(e,t){var r=[[],[]];e=e.clone(),t=t.clone();for(var n=0,i=0;e.cmpn(-n)>0||t.cmpn(-i)>0;){var s,c,a,o=e.andln(3)+n&3,d=t.andln(3)+i&3;3===o&&(o=-1),3===d&&(d=-1),c=(1&o)==0?0:(3==(s=e.andln(7)+n&7)||5===s)&&2===d?-o:o,r[0].push(c),a=(1&d)==0?0:(3==(s=t.andln(7)+i&7)||5===s)&&2===o?-d:d,r[1].push(a),2*n===c+1&&(n=1-n),2*i===a+1&&(i=1-i),e.iushrn(1),t.iushrn(1)}return r},t.cachedProperty=function(e,t,r){var n="_"+t;e.prototype[t]=function(){return void 0!==this[n]?this[n]:this[n]=r.call(this)}},t.parseBytes=function(e){return"string"==typeof e?t.toArray(e,"hex"):e},t.intFromLE=function(e){return new n(e,"hex","le")}},49827:function(e,t,r){"use strict";var n=null;"undefined"!=typeof WebSocket?n=WebSocket:"undefined"!=typeof MozWebSocket?n=MozWebSocket:void 0!==r.g?n=r.g.WebSocket||r.g.MozWebSocket:"undefined"!=typeof window?n=window.WebSocket||window.MozWebSocket:"undefined"!=typeof self&&(n=self.WebSocket||self.MozWebSocket),t.Z=n},84193:function(e,t,r){"use strict";r.r(t),r.d(t,{Address:function(){return V.Address},Bytes:function(){return V.Bytes},Cell:function(){return V.Cell},CellAny:function(){return V.CellAny},CellDep:function(){return V.CellDep},CellDepInfo:function(){return V.CellDepInfo},CellDepVec:function(){return V.CellDepVec},CellInput:function(){return V.CellInput},CellInputVec:function(){return V.CellInputVec},CellOutput:function(){return V.CellOutput},CellOutputVec:function(){return V.CellOutputVec},Client:function(){return V.Client},ClientBlock:function(){return V.ClientBlock},ClientBlockHeader:function(){return V.ClientBlockHeader},ClientBlockUncle:function(){return V.ClientBlockUncle},ClientCache:function(){return V.ClientCache},ClientCacheMemory:function(){return V.ClientCacheMemory},ClientIndexerSearchKey:function(){return V.ClientIndexerSearchKey},ClientIndexerSearchKeyFilter:function(){return V.ClientIndexerSearchKeyFilter},ClientIndexerSearchKeyTransaction:function(){return V.ClientIndexerSearchKeyTransaction},ClientJsonRpc:function(){return V.ClientJsonRpc},ClientPublicMainnet:function(){return V.ClientPublicMainnet},ClientPublicTestnet:function(){return V.ClientPublicTestnet},ClientTransactionResponse:function(){return V.ClientTransactionResponse},DepTypeCodec:function(){return V.DepTypeCodec},Eip6963:function(){return u},ErrorClientBase:function(){return V.ErrorClientBase},ErrorClientDuplicatedTransaction:function(){return V.ErrorClientDuplicatedTransaction},ErrorClientMaxFeeRateExceeded:function(){return V.ErrorClientMaxFeeRateExceeded},ErrorClientRBFRejected:function(){return V.ErrorClientRBFRejected},ErrorClientResolveUnknown:function(){return V.ErrorClientResolveUnknown},ErrorClientVerification:function(){return V.ErrorClientVerification},ErrorClientWaitTransactionTimeout:function(){return V.ErrorClientWaitTransactionTimeout},ErrorTransactionInsufficientCapacity:function(){return V.ErrorTransactionInsufficientCapacity},ErrorTransactionInsufficientCoin:function(){return V.ErrorTransactionInsufficientCoin},HashTypeCodec:function(){return V.HashTypeCodec},HasherCkb:function(){return V.HasherCkb},HasherKeecak256:function(){return V.HasherKeecak256},JoyId:function(){return l},KnownScript:function(){return V.KnownScript},Nip07:function(){return h},Okx:function(){return p},One:function(){return V.One},OutPoint:function(){return V.OutPoint},RawTransaction:function(){return V.RawTransaction},Rei:function(){return b},RequestorJsonRpc:function(){return V.RequestorJsonRpc},Script:function(){return V.Script},ScriptInfo:function(){return V.ScriptInfo},ScriptOpt:function(){return V.ScriptOpt},ScriptVec:function(){return V.ScriptVec},Signature:function(){return V.Signature},Signer:function(){return V.Signer},SignerAlwaysError:function(){return V.SignerAlwaysError},SignerBtc:function(){return V.SignerBtc},SignerBtcPublicKeyReadonly:function(){return V.SignerBtcPublicKeyReadonly},SignerCkbPrivateKey:function(){return V.SignerCkbPrivateKey},SignerCkbPublicKey:function(){return V.SignerCkbPublicKey},SignerCkbScriptReadonly:function(){return V.SignerCkbScriptReadonly},SignerDoge:function(){return V.SignerDoge},SignerDogeAddressReadonly:function(){return V.SignerDogeAddressReadonly},SignerDogePrivateKey:function(){return V.SignerDogePrivateKey},SignerDummy:function(){return V.SignerDummy},SignerEvm:function(){return V.SignerEvm},SignerEvmAddressReadonly:function(){return V.SignerEvmAddressReadonly},SignerInfo:function(){return V.SignerInfo},SignerNostr:function(){return V.SignerNostr},SignerNostrPrivateKey:function(){return V.SignerNostrPrivateKey},SignerNostrPublicKeyReadonly:function(){return V.SignerNostrPublicKeyReadonly},SignerOpenLink:function(){return V.SignerOpenLink},SignerSignType:function(){return V.SignerSignType},SignerType:function(){return V.SignerType},SignersController:function(){return r5},Since:function(){return V.Since},Transaction:function(){return V.Transaction},UniSat:function(){return x},UtxoGlobal:function(){return S},WitnessArgs:function(){return V.WitnessArgs},Xverse:function(){return T},Zero:function(){return V.Zero},apply:function(){return V.apply},btcEcdsaPublicKeyHash:function(){return V.btcEcdsaPublicKeyHash},btcP2pkhAddressFromPublicKey:function(){return V.btcP2pkhAddressFromPublicKey},btcPublicKeyFromP2pkhAddress:function(){return V.btcPublicKeyFromP2pkhAddress},btcVarLengthBytesFrom:function(){return V.btcVarLengthBytesFrom},buildNostrEventFromMessage:function(){return V.buildNostrEventFromMessage},bytesConcat:function(){return V.bytesConcat},bytesConcatTo:function(){return V.bytesConcatTo},bytesEq:function(){return V.bytesEq},bytesFrom:function(){return V.bytesFrom},bytesTo:function(){return V.bytesTo},calcDaoClaimEpoch:function(){return V.calcDaoClaimEpoch},calcDaoProfit:function(){return V.calcDaoProfit},depTypeFrom:function(){return V.depTypeFrom},depTypeFromBytes:function(){return V.depTypeFromBytes},depTypeToBytes:function(){return V.depTypeToBytes},epochFrom:function(){return V.epochFrom},epochFromHex:function(){return V.epochFromHex},epochToHex:function(){return V.epochToHex},fixedPointFrom:function(){return V.fixedPointFrom},fixedPointToString:function(){return V.fixedPointToString},hashCkb:function(){return V.hashCkb},hashTypeFrom:function(){return V.hashTypeFrom},hashTypeFromBytes:function(){return V.hashTypeFromBytes},hashTypeId:function(){return V.hashTypeId},hashTypeToBytes:function(){return V.hashTypeToBytes},hexFrom:function(){return V.hexFrom},isWebview:function(){return V.isWebview},keystoreDecrypt:function(){return V.keystoreDecrypt},keystoreEncrypt:function(){return V.keystoreEncrypt},messageHashBtcEcdsa:function(){return V.messageHashBtcEcdsa},messageHashCkbSecp256k1:function(){return V.messageHashCkbSecp256k1}
1,messageHashDogeEcdsa:function(){return V.messageHashDogeEcdsa},mol:function(){return V.mol},nostrEventHash:function(){return V.nostrEventHash},numBeFromBytes:function(){return V.numBeFromBytes},numBeToBytes:function(){return V.numBeToBytes},numFrom:function(){return V.numFrom},numFromBytes:function(){return V.numFromBytes},numLeFromBytes:function(){return V.numLeFromBytes},numLeToBytes:function(){return V.numLeToBytes},numMax:function(){return V.numMax},numMin:function(){return V.numMin},numToBytes:function(){return V.numToBytes},numToHex:function(){return V.numToHex},reduceAsync:function(){return V.reduceAsync},sleep:function(){return V.sleep},spore:function(){return m},ssri:function(){return w},stringify:function(){return V.stringify},udt:function(){return v},udtBalanceFrom:function(){return V.udtBalanceFrom},verifyMessageBtcEcdsa:function(){return V.verifyMessageBtcEcdsa},verifyMessageCkbSecp256k1:function(){return V.verifyMessageCkbSecp256k1},verifyMessageDogeEcdsa:function(){return V.verifyMessageDogeEcdsa},verifyMessageEvmPersonal:function(){return V.verifyMessageEvmPersonal},verifyMessageJoyId:function(){return V.verifyMessageJoyId},verifyMessageNostrEvent:function(){return V.verifyMessageNostrEvent}});var n,i,s,c,a,o,d,f,u={};r.r(u),r.d(u,{Signer:function(){return A},SignerFactory:function(){return k}});var l={};r.r(l),r.d(l,{BitcoinSigner:function(){return P},CkbSigner:function(){return B},EvmSigner:function(){return D},NostrSigner:function(){return M},getJoyIdSigners:function(){return L}});var h={};r.r(h),r.d(h,{Signer:function(){return N},getNip07Signer:function(){return H}});var p={};r.r(p),r.d(p,{BitcoinSigner:function(){return F},getOKXSigners:function(){return $}});var b={};r.r(b),r.d(b,{ReiSigner:function(){return K},getReiSigners:function(){return q}});var y={};r.r(y),r.d(y,{hasBrowserEnv:function(){return eG},hasStandardBrowserEnv:function(){return e1},hasStandardBrowserWebWorkerEnv:function(){return e0},navigator:function(){return eQ},origin:function(){return e2}});var g={};r.r(g),r.d(g,{DOB_MAINNET_DECODERS:function(){return rb},DOB_TESTNET_DECODERS:function(){return rp},checkDecoder:function(){return ro},checkPatternDob0:function(){return rd},checkPatternDob1:function(){return rf},decodeDobByRawData:function(){return ra},decodeDobBySporeCell:function(){return rs},decodeDobBySporeId:function(){return ri},decodeDobBySporeOutpoint:function(){return rc},encodeClusterDescriptionForDob0:function(){return rl},encodeClusterDescriptionForDob1:function(){return rh},encodeDna:function(){return ru},extractDobFromDecoderResult:function(){return rn},getDecoder:function(){return ry},getErrorByCode:function(){return rr}});var m={};r.r(m),r.d(m,{DEFAULT_COBUILD_INFO_HASH:function(){return rg.E},SPORE_VERSION_DEFAULT:function(){return rg.Es},SporeScriptInfo:function(){return rg.RY},SporeVersion:function(){return rg.mg},assertCluster:function(){return z.uY},assertSpore:function(){return rT},createSpore:function(){return rC},createSporeCluster:function(){return z.Om},dob:function(){return g},findCluster:function(){return z.jC},findSpore:function(){return rS},findSporeClusters:function(){return z.oc},findSporeClustersBySigner:function(){return z.OL},findSpores:function(){return rR},findSporesBySigner:function(){return rE},getClusterScriptInfo:function(){return rg.TF},getClusterScriptInfos:function(){return rg.tS},getSporeScriptInfo:function(){return rg.DS},getSporeScriptInfos:function(){return rg.K0},meltSpore:function(){return rk},transferSpore:function(){return rA},transferSporeCluster:function(){return z.VA}});var w={};r.r(w),r.d(w,{Executor:function(){return rD},ExecutorErrorDecode:function(){return rI},ExecutorErrorExecutionFailed:function(){return rP},ExecutorErrorUnknown:function(){return r_},ExecutorJsonRpc:function(){return rM},ExecutorResponse:function(){return rB},Trait:function(){return rL},getMethodPath:function(){return rO}});var v={};r.r(v),r.d(v,{Udt:function(){return rN},UdtPausable:function(){return rH}});var x={};r.r(x),r.d(x,{Signer:function(){return rF},getUniSatSigners:function(){return rU}});var S={};r.r(S),r.d(S,{SignerBtc:function(){return r$},SignerCkb:function(){return rj},getUtxoGlobalSigners:function(){return rq}});var T={};r.r(T),r.d(T,{Signer:function(){return rW},getXverseSigners:function(){return rJ}});var C=r(61437);class A extends C.fR.SignerEvm{constructor(e,t){super(e),this.provider=t,this.accountCache=void 0}async getEvmAccount(){return this.accountCache=(await this.provider.request({method:"eth_accounts"}))[0],this.accountCache}async connect(){await this.provider.request({method:"eth_requestAccounts"})}onReplaced(e){let t=[],r=async()=>{e(),t[0]?.()};return t.push(()=>{this.provider.removeListener("accountsChanged",r),this.provider.removeListener("disconnect",r)}),this.provider.on("accountsChanged",r),this.provider.on("disconnect",r),t[0]}async isConnected(){return 0!==(await this.provider.request({method:"eth_accounts"})).length}async signMessageRaw(e){let t="string"==typeof e?C.fR.bytesFrom(e,"utf8"):e,r=this.accountCache??await this.getEvmAccount();return this.provider.request({method:"personal_sign",params:[C.fR.hexFrom(t),r]})}}class k{constructor(e){this.client=e,this.existedUuids=[]}subscribeSigners(e){let t=t=>{let{detail:r}=t,{uuid:n}=r.info;if(this.existedUuids.includes(n))return;this.existedUuids.push(n);let i=new A(this.client,r.provider);e(i,r)};window.addEventListener("eip6963:announceProvider",t),window.dispatchEvent(new Event("eip6963:requestProvider"));let r=window;return void 0!==r.ethereum&&e(new A(this.client,r.ethereum)),()=>window.removeEventListener("eip6963:announceProvider",t)}}var E=r(9274);async function R(e,t){return null==t.popup&&(t.popup=(0,E.Mw)(""),null==t.popup)?(0,E.iU)(async()=>R(e,t)):(t.popup.location.href=e,new Promise((e,r)=>{let n,i;(0,E.fW)()&&r(new E.BX(t.popup));let s=setInterval(()=>{t.popup?.closed&&(clearInterval(s),clearTimeout(i),window.removeEventListener("message",n,!1),r(new E.Iw(t.popup)))},1e3);i=setTimeout(()=>{clearInterval(s),r(new E.nW(t.popup)),window.removeEventListener("message",n,!1)},(t.timeoutInSeconds??3e3)*1e3),n=c=>{let{joyidAppURL:a}=t,o=new URL(a);
1c.origin===o.origin&&c.data&&c.data?.type===t.type&&(clearTimeout(i),clearInterval(s),window.removeEventListener("message",n,!1),t.popup.close(),c.data.error&&r(Error(c.data.error)),e(c.data.data))},window.addEventListener("message",n)}))}function O(e,t){return e.uri===t.uri&&e.addressType.startsWith(t.addressType)}class _{constructor(e="ccc-joy-id-signer"){this.storageKey=e,this.operationLock=Promise.resolve()}async readConnections(){return JSON.parse(window.localStorage.getItem(this.storageKey)??"[]")}async get(e){return(await this.readConnections()).find(([t])=>O(e,t))?.[1]}async set(e,t){let r=this.operationLock.catch(()=>void 0).then(async()=>{let r=await this.readConnections();if(t){let n=r.find(([t])=>O(t,e));n?n[1]=t:r.push([e,t]),window.localStorage.setItem(this.storageKey,JSON.stringify(r))}else window.localStorage.setItem(this.storageKey,JSON.stringify(r.filter(([t])=>!O(t,e))))});this.operationLock=r,await r}}class P extends C.fR.SignerBtc{async assertConnection(){if(!await this.isConnected()||!this.connection)throw Error("Not connected");return this.connection}constructor(e,t,r,n=[{addressPrefix:"ckb",signerType:C.fR.SignerType.BTC,network:"btc"},{addressPrefix:"ckt",signerType:C.fR.SignerType.BTC,network:"btcTestnet"}],i="auto",s,c=new _){super(e),this.name=t,this.icon=r,this.preferredNetworks=n,this.addressType=i,this._appUri=s,this.connectionsRepo=c,this.network="btcTestnet"}getConfig(){let{network:e}=this.matchNetworkPreference(this.preferredNetworks,this.network)??{network:this.network};this.network!==e&&(this.connection=void 0),this.network=e;let t={btc:"https://app.joy.id",btcTestnet:"https://testnet.joyid.dev"}[e];if(!t)throw Error(`JoyID wallet doesn't support the requested chain ${this.network}`);return{redirectURL:location.href,joyidAppURL:this._appUri??t,requestNetwork:`btc-${this.addressType}`,name:this.name,logo:this.icon}}async disconnect(){await super.disconnect(),await this.connectionsRepo.set({uri:this.getConfig().joyidAppURL,addressType:"btc"},void 0)}async getBtcAccount(){let{address:e}=await this.assertConnection();return e}async getBtcPublicKey(){let{publicKey:e}=await this.assertConnection();return e}async connect(){let e=this.getConfig(),t=await R((0,E.s0)(e,"popup","/auth"),{...e,type:E.Nn.Auth}),{address:r,pubkey:n}="auto"===this.addressType?"p2wpkh"===t.btcAddressType?t.nativeSegwit:t.taproot:"p2wpkh"===this.addressType?t.nativeSegwit:t.taproot;this.connection={address:r,publicKey:C.fR.hexFrom(n),keyType:t.keyType},await Promise.all([this.connectionsRepo.set({uri:e.joyidAppURL,addressType:`btc-${this.addressType}`},this.connection),this.connectionsRepo.set({uri:e.joyidAppURL,addressType:"btc-auto"},this.connection)])}async isConnected(){return!!this.connection||(this.connection=await this.connectionsRepo.get({uri:this.getConfig().joyidAppURL,addressType:`btc-${this.addressType}`}),void 0!==this.connection)}async signMessageRaw(e){let{address:t}=await this.assertConnection(),r="string"==typeof e?e:C.fR.hexFrom(e).slice(2),n=this.getConfig(),{signature:i}=await R((0,E.s0)({...n,challenge:r,address:t,signMessageType:"ecdsa"},"popup","/sign-message"),{...n,type:E.Nn.SignMessage});return i}}var I=r(64294);class B extends C.fR.Signer{get type(){return C.fR.SignerType.CKB}get signType(){return C.fR.SignerSignType.JoyId}async assertConnection(){if(!await this.isConnected()||!this.connection)throw Error("Not connected");return this.connection}constructor(e,t,r,n,i,s=new _){super(e),this.name=t,this.icon=r,this._appUri=n,this._aggregatorUri=i,this.connectionsRepo=s}getConfig(){return{redirectURL:location.href,joyidAppURL:this._appUri??("ckb"===this.client.addressPrefix?"https://app.joy.id":"https://testnet.joyid.dev"),name:this.name,logo:this.icon}}getAggregatorUri(){return this._aggregatorUri??("ckb"===this.client.addressPrefix?"https://cota.nervina.dev/mainnet-aggregator":"https://cota.nervina.dev/aggregator")}async connect(){let e=this.getConfig(),t=await R((0,E.s0)(e,"popup","/auth"),{...e,type:E.Nn.Auth});this.connection={address:t.address,publicKey:C.fR.hexFrom(t.pubkey),keyType:t.keyType},await this.saveConnection()}async disconnect(){await super.disconnect(),this.connection=void 0,await this.saveConnection()}async isConnected(){return!!this.connection||(await this.restoreConnection(),void 0!==this.connection)}async getInternalAddress(){return(await this.assertConnection()).address}async getIdentity(){let e=await this.assertConnection();return JSON.stringify({keyType:e.keyType,publicKey:e.publicKey.slice(2)})}async getAddressObj(){return await C.fR.Address.fromString(await this.getInternalAddress(),this.client)}async getAddressObjs(){return[await this.getAddressObj()]}async prepareTransaction(e){let t=C.fR.Transaction.from(e);await t.addCellDepsOfKnownScripts(this.client,C.fR.KnownScript.JoyId);let r=await t.findInputIndexByLock((await this.getAddressObj()).script,this.client);if(void 0===r)return t;let n=t.getWitnessArgsAt(r)??C.fR.WitnessArgs.from({});return n.lock=C.fR.hexFrom("00".repeat(1e3)),await this.prepareTransactionForSubKey(t,n),t.setWitnessArgsAt(r,n),t}async prepareTransactionForSubKey(e,t){if(this.connection?.keyType!=="sub_key"||(t.outputType??"0x")!=="0x")return;let r=C.fR.hashCkb(this.connection.publicKey).substring(0,42),n=(await this.getAddressObj()).script,i=new I.jk(this.getAggregatorUri()),{unlock_entry:s}=await i.generateSubkeyUnlockSmt({alg_index:1,pubkey_hash:r,lock_script:C.fR.hexFrom(n.toBytes())});t.outputType=C.fR.hexFrom(s);let c=[];for await(let e of this.client.findCellsByLock(n,await C.fR.Script.fromKnownScript(this.client,C.fR.KnownScript.COTA,"0x")))c.push(C.fR.CellDep.from({depType:"code",outPoint:e.outPoint}));if(0===c.length)throw Error("No COTA cells for sub key wallet");e.addCellDepsAtStart(c)}async signOnlyTransaction(e){let t=C.fR.Transaction.from(e),{script:r}=await this.getAddressObj(),n=await C.fR.reduceAsync(t.inputs,async(e,t,n)=>{let{cellOutput:i}=await t.getCell(this.client);i.lock.eq(r)&&e.push(n)},[]);
1await t.prepareSighashAllWitness(r,0,this.client),t.inputs.forEach(e=>{e.cellOutput=void 0,e.outputData=void 0});let i=this.getConfig(),s=await R((0,E.s0)({...i,tx:JSON.parse(t.stringify()),signerAddress:(await this.assertConnection()).address,witnessIndexes:n},"popup","/sign-ckb-raw-tx"),{...i,type:E.Nn.SignCkbRawTx});return C.fR.Transaction.from(s.tx)}async signMessageRaw(e){let{address:t}=await this.assertConnection(),r="string"==typeof e?e:C.fR.hexFrom(e).slice(2),n=this.getConfig(),i=await R((0,E.s0)({...n,challenge:r,isData:"string"!=typeof e,address:t},"popup","/sign-message"),{...n,type:E.Nn.SignMessage});return JSON.stringify({signature:i.signature,alg:i.alg,message:i.message})}async saveConnection(){return this.connectionsRepo.set({uri:this.getConfig().joyidAppURL,addressType:"ckb"},this.connection)}async restoreConnection(){this.connection=await this.connectionsRepo.get({uri:this.getConfig().joyidAppURL,addressType:"ckb"})}}class D extends C.fR.SignerEvm{async assertConnection(){if(!await this.isConnected()||!this.connection)throw Error("Not connected");return this.connection}constructor(e,t,r,n,i=new _){super(e),this.name=t,this.icon=r,this._appUri=n,this.connectionsRepo=i}getConfig(){return{redirectURL:location.href,joyidAppURL:this._appUri??("ckb"===this.client.addressPrefix?"https://app.joy.id":"https://testnet.joyid.dev"),requestNetwork:"ethereum",name:this.name,logo:this.icon}}async getEvmAccount(){return(await this.assertConnection()).address}async connect(){let e=this.getConfig(),t=await R((0,E.s0)(e,"popup","/auth"),{...e,type:E.Nn.Auth});this.connection={address:t.ethAddress,publicKey:C.fR.hexFrom(t.pubkey),keyType:t.keyType},await this.saveConnection()}async disconnect(){await super.disconnect(),this.connection=void 0,await this.saveConnection()}async isConnected(){return!!this.connection||(await this.restoreConnection(),void 0!==this.connection)}async signMessageRaw(e){let{address:t}=await this.assertConnection(),r="string"==typeof e?e:C.fR.hexFrom(e).slice(2),n=this.getConfig(),{signature:i}=await R((0,E.s0)({...n,challenge:r,isData:"string"!=typeof e,address:t},"popup","/sign-message"),{...n,type:E.Nn.SignMessage});return C.fR.hexFrom(i)}async saveConnection(){return this.connectionsRepo.set({uri:this.getConfig().joyidAppURL,addressType:"ethereum"},this.connection)}async restoreConnection(){this.connection=await this.connectionsRepo.get({uri:this.getConfig().joyidAppURL,addressType:"ethereum"})}}class M extends C.fR.SignerNostr{async assertConnection(){if(!await this.isConnected()||!this.connection)throw Error("Not connected");return this.connection}constructor(e,t,r,n,i=new _){super(e),this.name=t,this.icon=r,this._appUri=n,this.connectionsRepo=i}getConfig(){return{redirectURL:location.href,joyidAppURL:this._appUri??("ckb"===this.client.addressPrefix?"https://app.joy.id":"https://testnet.joyid.dev"),requestNetwork:"nostr",name:this.name,logo:this.icon}}async connect(){let e=this.getConfig(),t=await R((0,E.s0)(e,"popup","/auth"),{...e,type:E.Nn.Auth});this.connection={address:"",publicKey:C.fR.hexFrom(t.nostrPubkey),keyType:t.keyType},await this.saveConnection()}async disconnect(){await super.disconnect(),this.connection=void 0,await this.saveConnection()}async isConnected(){return!!this.connection||(await this.restoreConnection(),void 0!==this.connection)}async getNostrPublicKey(){return(await this.assertConnection()).publicKey}async signNostrEvent(e){let t=this.getConfig(),r=await R((0,E.s0)({...t,event:e},"popup","/sign-nostr-event"),{...t,type:E.Nn.SignNostrEvent});return r.event}async saveConnection(){return this.connectionsRepo.set({uri:this.getConfig().joyidAppURL,addressType:"nostr"},this.connection)}async restoreConnection(){this.connection=await this.connectionsRepo.get({uri:this.getConfig().joyidAppURL,addressType:"nostr"})}}function L(e,t,r,n){return(0,E.fW)()||C.fR.isWebview(window.navigator.userAgent)?[C.fR.SignerType.CKB,C.fR.SignerType.EVM,C.fR.SignerType.BTC].map(t=>({name:t,signer:new C.fR.SignerAlwaysError(e,t,"JoyID can only be used with standard browsers")})):[{name:"CKB",signer:new B(e,t,r)},{name:"BTC",signer:new P(e,t,r,n)},{name:"Nostr",signer:new M(e,t,r)},{name:"EVM",signer:new D(e,t,r)},{name:"BTC (P2WPKH)",signer:new P(e,t,r,n,"p2wpkh")},{name:"BTC (P2TR)",signer:new P(e,t,r,n,"p2tr")}]}class N extends C.fR.SignerNostr{constructor(e,t){super(e),this.provider=t,this.publicKeyCache=void 0}async getNostrPublicKey(){return this.publicKeyCache||(this.publicKeyCache=this.provider.getPublicKey().catch(e=>{throw this.publicKeyCache=void 0,e})),C.fR.hexFrom(await this.publicKeyCache)}async signNostrEvent(e){return this.provider.signEvent({...e,pubkey:await this.publicKeyCache})}async connect(){await this.getNostrPublicKey()}async isConnected(){return!0}}function H(e){let t=window;
1if(void 0!==t.nostr)return new N(e,t.nostr)}class F extends C.fR.SignerBtc{constructor(e,t,r=[{addressPrefix:"ckb",signerType:C.fR.SignerType.BTC,network:"btc"},{addressPrefix:"ckt",signerType:C.fR.SignerType.BTC,network:"btcTestnet"}]){super(e),this.providers=t,this.preferredNetworks=r,this.network="btcTestnet"}get provider(){let{network:e}=this.matchNetworkPreference(this.preferredNetworks,this.network)??{network:this.network};this.network=e;let t={btc:"bitcoin",btcTestnet:"bitcoinTestnet",btcSignet:"bitcoinSignet"}[e];if(!t)throw Error(`OKX wallet doesn't support the requested chain ${this.network}`);let r=this.providers[t];if(!r)throw Error(`OKX wallet doesn't support the requested chain ${this.network}`);return r}async getBtcAccount(){if(this.provider.getAccounts){let e=(await this.provider.getAccounts())[0];if(!e)throw Error("Not connected");return e}if(this.provider.getSelectedAccount){let e=await this.provider.getSelectedAccount();if(!e)throw Error("Not connected");return e.address}throw Error("Unsupported OKX provider")}async getBtcPublicKey(){if(this.provider.getPublicKey){let e=await this.provider.getPublicKey();if(""===e)throw Error("The OKX Wallet returned wrong public key");return C.fR.hexFrom(e)}if(this.provider.getSelectedAccount){let e=await this.provider.getSelectedAccount();if(!e)throw Error("Not connected");return C.fR.hexFrom(e.compressedPublicKey)}throw Error("Unsupported OKX provider")}async connect(){if(this.provider.requestAccounts){await this.provider.requestAccounts();return}if(this.provider.connect){await this.provider.connect();return}throw Error("Unsupported OKX provider")}onReplaced(e){let t=[],r=async()=>{e(),t[0]?.()};return t.push(()=>{this.provider.removeListener("accountChanged",r)}),this.provider.on("accountChanged",r),t[0]}async isConnected(){try{this.provider}catch(e){return!1}if(this.provider.getAccounts){if(0===(await this.provider.getAccounts()).length)return!1}else if(this.provider.getSelectedAccount&&await this.provider.getSelectedAccount()===null)return!1;return await this.connect(),!0}async signMessageRaw(e){let t="string"==typeof e?e:C.fR.hexFrom(e).slice(2);return this.provider.signMessage(t,"ecdsa")}}class U extends C.fR.SignerNostr{constructor(e,t){super(e),this.provider=t,this.publicKeyCache=void 0}async getNostrPublicKey(){return this.publicKeyCache||(this.publicKeyCache=this.provider.getPublicKey().then(e=>{if(e)return e;throw Error("This OKX Wallet account does not support Nostr")}).catch(e=>{throw this.publicKeyCache=void 0,e})),C.fR.hexFrom(await this.publicKeyCache)}async signNostrEvent(e){return this.provider.signEvent({...e,pubkey:await this.publicKeyCache})}async connect(){await this.provider.connect?.(),await this.getNostrPublicKey()}onReplaced(e){let t=[],r=()=>{e(),t[0]?.()};return t.push(()=>{this.provider.removeListener("accountChanged",r)}),this.provider.on("accountChanged",r),t[0]}async isConnected(){return!0}}function $(e,t){let r=window;return void 0===r.okxwallet?[]:[{signer:new F(e,r.okxwallet,t),name:"BTC"},{signer:new U(e,r.okxwallet.nostr),name:"Nostr"}]}var j=r(55075);class K extends C.fR.Signer{constructor(e,t){super(e),this.provider=t}onReplaced(e){let t=[],r=async()=>{e(),t[0]?.()};return t.push(()=>{this.provider.off("accountsChanged",r),this.provider.off("chainChanged",r)}),this.provider.on("accountsChanged",r),this.provider.on("chainChanged",r),t[0]}get type(){return C.fR.SignerType.CKB}get signType(){return C.fR.SignerSignType.CkbSecp256k1}async connect(){let e=this.client.addressPrefix,t=await this._getNetworkChanged();t&&await this.provider.request({method:"ckb_switchNetwork",data:"ckb"===e?"mainnet":"testnet"})}async isConnected(){let e=await this.provider.isConnected();return!(!e||await this._getNetworkChanged())&&e}async _getNetworkChanged(){let e=this.client.addressPrefix,t=await this.getInternalAddress(),{prefix:r}=j.addressPayloadFromString(t);return e!==r}async getInternalAddress(){return this.provider.request({method:"ckb_requestAccounts"})}async getAddressObj(){return C.fR.Address.fromString(await this.getInternalAddress(),this.client)}async getAddressObjs(){return[await this.getAddressObj()]}async getIdentity(){return this.provider.request({method:"ckb_getPublicKey"})}async signMessageRaw(e){return this.provider.request({method:"ckb_signMessage",data:{message:e}})}async prepareTransaction(e){let t=C.fR.Transaction.from(e);return await t.addCellDepsOfKnownScripts(this.client,C.fR.KnownScript.Secp256k1Blake160),C.fR.reduceAsync(await this.getAddressObjs(),(e,{script:t})=>e.prepareSighashAllWitness(t,65,this.client),t)}async signOnlyTransaction(e){let t=j.JsonRpcTransformers.transactionFrom(e);return this.provider.request({method:"ckb_signTransaction",data:{txSkeleton:t}})}}function q(e){let t=window;return void 0===t?.rei?.ckb?[]:[{signer:new K(e,t.rei.ckb),name:"CKB"}]}var V=r(1169),z=r(31841);function Z(e,t){return function(){return e.apply(t,arguments)}}var W=r(73656);let{toString:J}=Object.prototype,{getPrototypeOf:X}=Object,{iterator:Y,toStringTag:G}=Symbol,Q=(a=Object.create(null),e=>{let t=J.call(e);return a[t]||(a[t]=t.slice(8,-1).toLowerCase())}),ee=e=>(e=e.toLowerCase(),t=>Q(t)===e),et=e=>t=>typeof t===e,{isArray:er}=Array,en=et("undefined");function ei(e){return null!==e&&!en(e)&&null!==e.constructor&&!en(e.constructor)&&ea(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}let es=ee("ArrayBuffer"),ec=et("string"),ea=et("function"),eo=et("number"),ed=e=>null!==e&&"object"==typeof e,ef=e=>{if("object"!==Q(e))return!1;let t=X(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(G in e)&&!(Y in e)},eu=ee("Date"),el=ee("File"),eh=ee("Blob"),ep=ee("FileList"),eb=ee("URLSearchParams"),[ey,eg,em,ew]=["ReadableStream","Request","Response","Headers"].map(ee);function ev(e,t,{allOwnKeys:r=!1}={}){let n,i;if(null!=e){if("object"!=typeof e&&(e=[e]),er(e))for(n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else{let i;if(ei(e))return;let s=r?Object.getOwnPropertyNames(e):Object.keys(e),c=s.length;for(n=0;n<c;n++)i=s[n],t.call(null,e[i],i,e)}}}function ex(e,t){let r;if(ei(e))return null;t=t.toLowerCase();let n=Object.keys(e),i=n.length;for(;i-- >0;)if(t===(r=n[i]).toLowerCase())return r;return null}let eS="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,eT=e=>!en(e)&&e!==eS,eC=(o="undefined"!=typeof Uint8Array&&X(Uint8Array),e=>o&&e instanceof o),eA=ee("HTMLFormElement"),ek=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),eE=ee("RegExp"),eR=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),n={};ev(r,(r,i)=>{let s;!1!==(s=t(r,i,e))&&(n[i]=s||r)}),Object.defineProperties(e,n)},eO=ee("AsyncFunction"),e_=(n="function"==typeof setImmediate,i=ea(eS.postMessage),n?setImmediate:i?(s=`axios@${Math.random()}`,c=[],eS.addEventListener("message",({source:e,data:t})=>{e===eS&&t===s&&c.length&&c.shift()()},!1),e=>{c.push(e),eS.postMessage(s,"*")}):e=>setTimeout(e)),eP="undefined"!=typeof queueMicrotask?queueMicrotask.bind(eS):void 0!==W&&W.nextTick||e_;var eI={isArray:er,isArrayBuffer:es,isBuffer:ei,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ea(e.append)&&("formdata"===(t=Q(e))||"object"===t&&ea(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&es(e.buffer)},isString:ec,isNumber:eo,isBoolean:e=>!0===e||!1===e,isObject:ed,isPlainObject:ef,isEmptyObject:e=>{if(!ed(e)||ei(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}}
1,isReadableStream:ey,isRequest:eg,isResponse:em,isHeaders:ew,isUndefined:en,isDate:eu,isFile:el,isBlob:eh,isRegExp:eE,isFunction:ea,isStream:e=>ed(e)&&ea(e.pipe),isURLSearchParams:eb,isTypedArray:eC,isFileList:ep,forEach:ev,merge:function e(){let{caseless:t,skipUndefined:r}=eT(this)&&this||{},n={},i=(i,s)=>{let c=t&&ex(n,s)||s;ef(n[c])&&ef(i)?n[c]=e(n[c],i):ef(i)?n[c]=e({},i):er(i)?n[c]=i.slice():r&&en(i)||(n[c]=i)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&ev(arguments[e],i);return n},extend:(e,t,r,{allOwnKeys:n}={})=>(ev(t,(t,n)=>{r&&ea(t)?e[n]=Z(t,r):e[n]=t},{allOwnKeys:n}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,r,n)=>{e.prototype=Object.create(t.prototype,n),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},toFlatObject:(e,t,r,n)=>{let i,s,c;let a={};if(t=t||{},null==e)return t;do{for(s=(i=Object.getOwnPropertyNames(e)).length;s-- >0;)c=i[s],(!n||n(c,e,t))&&!a[c]&&(t[c]=e[c],a[c]=!0);e=!1!==r&&X(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},kindOf:Q,kindOfTest:ee,endsWith:(e,t,r)=>{e=String(e),(void 0===r||r>e.length)&&(r=e.length),r-=t.length;let n=e.indexOf(t,r);return -1!==n&&n===r},toArray:e=>{if(!e)return null;if(er(e))return e;let t=e.length;if(!eo(t))return null;let r=Array(t);for(;t-- >0;)r[t]=e[t];return r},forEachEntry:(e,t)=>{let r;let n=e&&e[Y],i=n.call(e);for(;(r=i.next())&&!r.done;){let n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let r;let n=[];for(;null!==(r=e.exec(t));)n.push(r);return n},isHTMLForm:eA,hasOwnProperty:ek,hasOwnProp:ek,reduceDescriptors:eR,freezeMethods:e=>{eR(e,(t,r)=>{if(ea(e)&&-1!==["arguments","caller","callee"].indexOf(r))return!1;let n=e[r];if(ea(n)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},toObjectSet:(e,t)=>{let r={};return(e=>{e.forEach(e=>{r[e]=!0})})(er(e)?e:String(e).split(t)),r},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,r){return t.toUpperCase()+r}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:ex,global:eS,isContextDefined:eT,isSpecCompliantForm:function(e){return!!(e&&ea(e.append)&&"FormData"===e[G]&&e[Y])},toJSONObject:e=>{let t=Array(10),r=(e,n)=>{if(ed(e)){if(t.indexOf(e)>=0)return;if(ei(e))return e;if(!("toJSON"in e)){t[n]=e;let i=er(e)?[]:{};return ev(e,(e,t)=>{let s=r(e,n+1);en(s)||(i[t]=s)}),t[n]=void 0,i}}return e};return r(e,0)},isAsyncFn:eO,isThenable:e=>e&&(ed(e)||ea(e))&&ea(e.then)&&ea(e.catch),setImmediate:e_,asap:eP,isIterable:e=>null!=e&&ea(e[Y])};function eB(e,t,r,n,i){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),n&&(this.request=n),i&&(this.response=i,this.status=i.status?i.status:null)}eI.inherits(eB,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:eI.toJSONObject(this.config),code:this.code,status:this.status}}});let eD=eB.prototype,eM={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{eM[e]={value:e}}),Object.defineProperties(eB,eM),Object.defineProperty(eD,"isAxiosError",{value:!0}),eB.from=(e,t,r,n,i,s)=>{let c=Object.create(eD);eI.toFlatObject(e,c,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);let a=e&&e.message?e.message:"Error",o=null==t&&e?e.code:t;return eB.call(c,a,o,r,n,i),e&&null==c.cause&&Object.defineProperty(c,"cause",{value:e,configurable:!0}),c.name=e&&e.name||"Error",s&&Object.assign(c,s),c};var eL=r(15313).Buffer;function eN(e){return eI.isPlainObject(e)||eI.isArray(e)}function eH(e){return eI.endsWith(e,"[]")?e.slice(0,-2):e}function eF(e,t,r){return e?e.concat(t).map(function(e,t){return e=eH(e),!r&&t?"["+e+"]":e}).join(r?".":""):t}let eU=eI.toFlatObject(eI,{},null,function(e){return/^is[A-Z]/.test(e)});var e$=function(e,t,r){if(!eI.isObject(e))throw TypeError("target must be an object");t=t||new FormData,r=eI.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!eI.isUndefined(t[e])});let n=r.metaTokens,i=r.visitor||f,s=r.dots,c=r.indexes,a=r.Blob||"undefined"!=typeof Blob&&Blob,o=a&&eI.isSpecCompliantForm(t);if(!eI.isFunction(i))throw TypeError("visitor must be a function");function d(e){if(null===e)return"";if(eI.isDate(e))return e.toISOString();if(eI.isBoolean(e))return e.toString();if(!o&&eI.isBlob(e))throw new eB("Blob is not supported. Use a Buffer instead.");return eI.isArrayBuffer(e)||eI.isTypedArray(e)?o&&"function"==typeof Blob?new Blob([e]):eL.from(e):e}function f(e,r,i){let a=e;if(e&&!i&&"object"==typeof e){if(eI.endsWith(r,"{}"))r=n?r:r.slice(0,-2),e=JSON.stringify(e);else{var o;if(eI.isArray(e)&&(o=e,eI.isArray(o)&&!o.some(eN))||(eI.isFileList(e)||eI.endsWith(r,"[]"))&&(a=eI.toArray(e)))return r=eH(r),a.forEach(function(e,n){eI.isUndefined(e)||null===e||t.append(!0===c?eF([r],n,s):null===c?r:r+"[]",d(e))}),!1}}return!!eN(e)||(t.append(eF(i,r,s),d(e)),!1)}let u=[],l=Object.assign(eU,{defaultVisitor:f,convertValue:d,isVisitable:eN});if(!eI.isObject(e))throw TypeError("data must be an object");return function e(r,n){if(!eI.isUndefined(r)){if(-1!==u.indexOf(r))throw Error("Circular reference detected in "+n.join("."));u.push(r),eI.forEach(r,function(r,s){let c=!(eI.isUndefined(r)||null===r)&&i.call(t,r,eI.isString(s)?s.trim():s,n,l);!0===c&&e(r,n?n.concat(s):[s])}),u.pop()}}(e),t};
1function ej(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\x00"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function eK(e,t){this._pairs=[],e&&e$(e,this,t)}let eq=eK.prototype;function eV(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function ez(e,t,r){let n;if(!t)return e;let i=r&&r.encode||eV;eI.isFunction(r)&&(r={serialize:r});let s=r&&r.serialize;if(n=s?s(t,r):eI.isURLSearchParams(t)?t.toString():new eK(t,r).toString(i)){let t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}eq.append=function(e,t){this._pairs.push([e,t])},eq.toString=function(e){let t=e?function(t){return e.call(this,t,ej)}:ej;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var eZ=class{constructor(){this.handlers=[]}use(e,t,r){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!r&&r.synchronous,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){eI.forEach(this.handlers,function(t){null!==t&&e(t)})}},eW={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},eJ="undefined"!=typeof URLSearchParams?URLSearchParams:eK,eX="undefined"!=typeof FormData?FormData:null,eY="undefined"!=typeof Blob?Blob:null;let eG="undefined"!=typeof window&&"undefined"!=typeof document,eQ="object"==typeof navigator&&navigator||void 0,e1=eG&&(!eQ||0>["ReactNative","NativeScript","NS"].indexOf(eQ.product)),e0="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,e2=eG&&window.location.href||"http://localhost";var e3={...y,isBrowser:!0,classes:{URLSearchParams:eJ,FormData:eX,Blob:eY},protocols:["http","https","file","blob","url","data"]},e4=function(e){if(eI.isFormData(e)&&eI.isFunction(e.entries)){let t={};return eI.forEachEntry(e,(e,r)=>{!function e(t,r,n,i){let s=t[i++];if("__proto__"===s)return!0;let c=Number.isFinite(+s),a=i>=t.length;if(s=!s&&eI.isArray(n)?n.length:s,a)return eI.hasOwnProp(n,s)?n[s]=[n[s],r]:n[s]=r,!c;n[s]&&eI.isObject(n[s])||(n[s]=[]);let o=e(t,r,n[s],i);return o&&eI.isArray(n[s])&&(n[s]=function(e){let t,r;let n={},i=Object.keys(e),s=i.length;for(t=0;t<s;t++)n[r=i[t]]=e[r];return n}(n[s])),!c}(eI.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0]),r,t,0)}),t}return null};let e5={transitional:eW,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){let r;let n=t.getContentType()||"",i=n.indexOf("application/json")>-1,s=eI.isObject(e);s&&eI.isHTMLForm(e)&&(e=new FormData(e));let c=eI.isFormData(e);if(c)return i?JSON.stringify(e4(e)):e;if(eI.isArrayBuffer(e)||eI.isBuffer(e)||eI.isStream(e)||eI.isFile(e)||eI.isBlob(e)||eI.isReadableStream(e))return e;if(eI.isArrayBufferView(e))return e.buffer;if(eI.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();if(s){if(n.indexOf("application/x-www-form-urlencoded")>-1){var a,o;return(a=e,o=this.formSerializer,e$(a,new e3.classes.URLSearchParams,{visitor:function(e,t,r,n){return e3.isNode&&eI.isBuffer(e)?(this.append(t,e.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)},...o})).toString()}if((r=eI.isFileList(e))||n.indexOf("multipart/form-data")>-1){let t=this.env&&this.env.FormData;return e$(r?{"files[]":e}:e,t&&new t,this.formSerializer)}}return s||i?(t.setContentType("application/json",!1),function(e,t,r){if(eI.isString(e))try{return(0,JSON.parse)(e),eI.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){let t=this.transitional||e5.transitional,r=t&&t.forcedJSONParsing,n="json"===this.responseType;if(eI.isResponse(e)||eI.isReadableStream(e))return e;if(e&&eI.isString(e)&&(r&&!this.responseType||n)){let r=t&&t.silentJSONParsing;try{return JSON.parse(e,this.parseReviver)}catch(e){if(!r&&n){if("SyntaxError"===e.name)throw eB.from(e,eB.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:e3.classes.FormData,Blob:e3.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};eI.forEach(["delete","get","head","post","put","patch"],e=>{e5.headers[e]={}});let e6=eI.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);var e7=e=>{let t,r,n;let i={};return e&&e.split("\n").forEach(function(e){n=e.indexOf(":"),t=e.substring(0,n).trim().toLowerCase(),r=e.substring(n+1).trim(),!t||i[t]&&e6[t]||("set-cookie"===t?i[t]?i[t].push(r):i[t]=[r]:i[t]=i[t]?i[t]+", "+r:r)}),i};let e8=Symbol("internals");function e9(e){return e&&String(e).trim().toLowerCase()}function te(e){return!1===e||null==e?e:eI.isArray(e)?e.map(te):String(e)}let tt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function tr(e,t,r,n,i){if(eI.isFunction(n))return n.call(this,t,r);if(i&&(t=r),eI.isString(t)){if(eI.isString(n))return -1!==t.indexOf(n);if(eI.isRegExp(n))return n.test(t)}}class tn{constructor(e){e&&this.set(e)}set(e,t,r){let n=this;function i(e,t,r){let i=e9(t);if(!i)throw Error("header name must be a non-empty string");let s=eI.findKey(n,i);s&&void 0!==n[s]&&!0!==r&&(void 0!==r||!1===n[s])||(n[s||t]=te(e))}let s=(e,t)=>eI.forEach(e,(e,r)=>i(e,r,t));if(eI.isPlainObject(e)||e instanceof this.constructor)s(e,t);else if(eI.isString(e)&&(e=e.trim())&&!tt(e))s(e7(e),t);else if(eI.isObject(e)&&eI.isIterable(e)){let r={},n,i;for(let t of e){if(!eI.isArray(t))throw TypeError("Object iterator must return a key-value pair");r[i=t[0]]=(n=r[i])?eI.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}s(r,t)}else null!=e&&i(t,e,r);return this}get(e,t){if(e=e9(e)){let r=eI.findKey(this,e);if(r){let e=this[r];if(!t)return e;if(!0===t)return function(e){let t;let r=Object.create(null),n=/([^\s,;
1=]+)\s*(?:=\s*([^,;]+))?/g;for(;t=n.exec(e);)r[t[1]]=t[2];return r}(e);if(eI.isFunction(t))return t.call(this,e,r);if(eI.isRegExp(t))return t.exec(e);throw TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=e9(e)){let r=eI.findKey(this,e);return!!(r&&void 0!==this[r]&&(!t||tr(this,this[r],r,t)))}return!1}delete(e,t){let r=this,n=!1;function i(e){if(e=e9(e)){let i=eI.findKey(r,e);i&&(!t||tr(r,r[i],i,t))&&(delete r[i],n=!0)}}return eI.isArray(e)?e.forEach(i):i(e),n}clear(e){let t=Object.keys(this),r=t.length,n=!1;for(;r--;){let i=t[r];(!e||tr(this,this[i],i,e,!0))&&(delete this[i],n=!0)}return n}normalize(e){let t=this,r={};return eI.forEach(this,(n,i)=>{let s=eI.findKey(r,i);if(s){t[s]=te(n),delete t[i];return}let c=e?i.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,r)=>t.toUpperCase()+r):String(i).trim();c!==i&&delete t[i],t[c]=te(n),r[c]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){let t=Object.create(null);return eI.forEach(this,(r,n)=>{null!=r&&!1!==r&&(t[n]=e&&eI.isArray(r)?r.join(", "):r)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){let r=new this(e);return t.forEach(e=>r.set(e)),r}static accessor(e){let t=this[e8]=this[e8]={accessors:{}},r=t.accessors,n=this.prototype;function i(e){let t=e9(e);r[t]||(function(e,t){let r=eI.toCamelCase(" "+t);["get","set","has"].forEach(n=>{Object.defineProperty(e,n+r,{value:function(e,r,i){return this[n].call(this,t,e,r,i)},configurable:!0})})}(n,e),r[t]=!0)}return eI.isArray(e)?e.forEach(i):i(e),this}}function ti(e,t){let r=this||e5,n=t||r,i=tn.from(n.headers),s=n.data;return eI.forEach(e,function(e){s=e.call(r,s,i.normalize(),t?t.status:void 0)}),i.normalize(),s}function ts(e){return!!(e&&e.__CANCEL__)}function tc(e,t,r){eB.call(this,null==e?"canceled":e,eB.ERR_CANCELED,t,r),this.name="CanceledError"}function ta(e,t,r){let n=r.config.validateStatus;!r.status||!n||n(r.status)?e(r):t(new eB("Request failed with status code "+r.status,[eB.ERR_BAD_REQUEST,eB.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}tn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),eI.reduceDescriptors(tn.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[r]=e}}}),eI.freezeMethods(tn),eI.inherits(tc,eB,{__CANCEL__:!0});var to=function(e,t){let r;e=e||10;let n=Array(e),i=Array(e),s=0,c=0;return t=void 0!==t?t:1e3,function(a){let o=Date.now(),d=i[c];r||(r=o),n[s]=a,i[s]=o;let f=c,u=0;for(;f!==s;)u+=n[f++],f%=e;if((s=(s+1)%e)===c&&(c=(c+1)%e),o-r<t)return;let l=d&&o-d;return l?Math.round(1e3*u/l):void 0}},td=function(e,t){let r,n,i=0,s=1e3/t,c=(t,s=Date.now())=>{i=s,r=null,n&&(clearTimeout(n),n=null),e(...t)};return[(...e)=>{let t=Date.now(),a=t-i;a>=s?c(e,t):(r=e,n||(n=setTimeout(()=>{n=null,c(r)},s-a)))},()=>r&&c(r)]};let tf=(e,t,r=3)=>{let n=0,i=to(50,250);return td(r=>{let s=r.loaded,c=r.lengthComputable?r.total:void 0,a=s-n,o=i(a),d=s<=c;n=s,e({loaded:s,total:c,progress:c?s/c:void 0,bytes:a,rate:o||void 0,estimated:o&&c&&d?(c-s)/o:void 0,event:r,lengthComputable:null!=c,[t?"download":"upload"]:!0})},r)},tu=(e,t)=>{let r=null!=e;return[n=>t[0]({lengthComputable:r,total:e,loaded:n}),t[1]]},tl=e=>(...t)=>eI.asap(()=>e(...t));var th=e3.hasStandardBrowserEnv?(d=new URL(e3.origin),f=e3.navigator&&/(msie|trident)/i.test(e3.navigator.userAgent),e=>(e=new URL(e,e3.origin),d.protocol===e.protocol&&d.host===e.host&&(f||d.port===e.port))):()=>!0,tp=e3.hasStandardBrowserEnv?{write(e,t,r,n,i,s){let c=[e+"="+encodeURIComponent(t)];eI.isNumber(r)&&c.push("expires="+new Date(r).toGMTString()),eI.isString(n)&&c.push("path="+n),eI.isString(i)&&c.push("domain="+i),!0===s&&c.push("secure"),document.cookie=c.join("; ")},read(e){let t=document.cookie.match(RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read:()=>null,remove(){}};function tb(e,t,r){let n=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(n||!1==r)?t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e:t}let ty=e=>e instanceof tn?{...e}:e;function tg(e,t){t=t||{};let r={};function n(e,t,r,n){return eI.isPlainObject(e)&&eI.isPlainObject(t)?eI.merge.call({caseless:n},e,t):eI.isPlainObject(t)?eI.merge({},t):eI.isArray(t)?t.slice():t}function i(e,t,r,i){return eI.isUndefined(t)?eI.isUndefined(e)?void 0:n(void 0,e,r,i):n(e,t,r,i)}function s(e,t){if(!eI.isUndefined(t))return n(void 0,t)}function c(e,t){return eI.isUndefined(t)?eI.isUndefined(e)?void 0:n(void 0,e):n(void 0,t)}function a(r,i,s){return s in t?n(r,i):s in e?n(void 0,r):void 0}let o={url:s,method:s,data:s,baseURL:c,transformRequest:c,transformResponse:c,paramsSerializer:c,timeout:c,timeoutMessage:c,withCredentials:c,withXSRFToken:c,adapter:c,responseType:c,xsrfCookieName:c,xsrfHeaderName:c,onUploadProgress:c,onDownloadProgress:c,decompress:c,maxContentLength:c,maxBodyLength:c,beforeRedirect:c,transport:c,httpAgent:c,httpsAgent:c,cancelToken:c,socketPath:c,responseEncoding:c,validateStatus:a,headers:(e,t,r)=>i(ty(e),ty(t),r,!0)};return eI.forEach(Object.keys({...e,...t}),function(n){let s=o[n]||i,c=s(e[n],t[n],n);eI.isUndefined(c)&&s!==a||(r[n]=c)}),r}var tm=e=>{let t=tg({},e),{data:r,withXSRFToken:n,xsrfHeaderName:i,xsrfCookieName:s,headers:c,auth:a}=t;if(t.headers=c=tn.from(c),t.url=ez(tb(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),a&&c.set("Authorization","Basic "+btoa((a.username||"")+":"+(a.password?unescape(encodeURIComponent(a.password)):""))),eI.isFormData(r)){if(e3.hasStandardBrowserEnv||e3.hasStandardBrowserWebWorkerEnv)c.setContentType(void 0);else if(eI.isFunction(r.getHeaders)){let e=r.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,r])=>{t.includes(e.toLowerCase())&&c.set(e,r)})}}if(e3.hasStandardBrowserEnv&&(n&&eI.isFunction(n)&&(n=n(t)),n||!1!==n&&th(t.url))){let e=i&&s&&tp.read(s);e&&c.set(i,e)}return t};let tw="undefined"!=typeof XMLHttpRequest;var tv=tw&&function(e){return new Promise(function(t,r){let n,i,s,c,a;let o=tm(e),d=o.data,f=tn.from(o.headers).normalize(),{responseType:u,onUploadProgress:l,onDownloadProgress:h}=o;function p(){c&&c(),a&&a(),o.cancelToken&&o.cancelToken.unsubscribe(n),o.signal&&o.signal.removeEventListener("abort",n)}let b=new XMLHttpRequest;function y(){if(!b)return;let n=tn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),i=u&&"text"!==u&&"json"!==u?b.response:b.responseText,s={data:i,status:b.status,statusText:b.statusText,headers:n,config:e,request:b};ta(function(e){t(e),p()},function(e){r(e),p()},s),b=null}b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout,"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(y)},b.onabort=function(){b&&(r(new eB("Request aborted",eB.ECONNABORTED,e,b)),b=null)},b.onerror=function(t){let n=t&&t.message?t.message:"Network Error",i=new eB(n,eB.ERR_NETWORK,e,b);i.event=t||null,r(i),b=null}
1,b.ontimeout=function(){let t=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",n=o.transitional||eW;o.timeoutErrorMessage&&(t=o.timeoutErrorMessage),r(new eB(t,n.clarifyTimeoutError?eB.ETIMEDOUT:eB.ECONNABORTED,e,b)),b=null},void 0===d&&f.setContentType(null),"setRequestHeader"in b&&eI.forEach(f.toJSON(),function(e,t){b.setRequestHeader(t,e)}),eI.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),u&&"json"!==u&&(b.responseType=o.responseType),h&&([s,a]=tf(h,!0),b.addEventListener("progress",s)),l&&b.upload&&([i,c]=tf(l),b.upload.addEventListener("progress",i),b.upload.addEventListener("loadend",c)),(o.cancelToken||o.signal)&&(n=t=>{b&&(r(!t||t.type?new tc(null,e,b):t),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(n),o.signal&&(o.signal.aborted?n():o.signal.addEventListener("abort",n)));let g=function(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(o.url);if(g&&-1===e3.protocols.indexOf(g)){r(new eB("Unsupported protocol "+g+":",eB.ERR_BAD_REQUEST,e));return}b.send(d||null)})},tx=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let r,n=new AbortController,i=function(e){if(!r){r=!0,c();let t=e instanceof Error?e:this.reason;n.abort(t instanceof eB?t:new tc(t instanceof Error?t.message:t))}},s=t&&setTimeout(()=>
1{s=null,i(new eB(`timeout ${t} of ms exceeded`,eB.ETIMEDOUT))},t),c=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(i):e.removeEventListener("abort",i)}),e=null)};e.forEach(e=>e.addEventListener("abort",i));let{signal:a}=n;return a.unsubscribe=()=>eI.asap(c),a}};let tS=function*(e,t){let r,n=e.byteLength;if(!t||n<t){yield e;return}let i=0;for(;i<n;)r=i+t,yield e.slice(i,r),i=r},tT=async function*(e,t){for await(let r of tC(e))yield*tS(r,t)},tC=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}let t=e.getReader();try{for(;;){let{done:e,value:r}=await t.read();if(e)break;yield r}}finally{await t.cancel()}},tA=(e,t,r,n)=>{let i;let s=tT(e,t),c=0,a=e=>{!i&&(i=!0,n&&n(e))};return new ReadableStream({async pull(e){try{let{done:t,value:n}=await s.next();if(t){a(),e.close();return}let i=n.byteLength;if(r){let e=c+=i;r(e)}e.enqueue(new Uint8Array(n))}catch(e){throw a(e),e}},cancel:e=>(a(e),s.return())},{highWaterMark:2})},{isFunction:tk}=eI,tE=(({Request:e,Response:t})=>({Request:e,Response:t}))(eI.global),{ReadableStream:tR,TextEncoder:tO}=eI.global,t_=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},tP=e=>{var t;e=eI.merge.call({skipUndefined:!0},tE,e);let{fetch:r,Request:n,Response:i}=e,s=r?tk(r):"function"==typeof fetch,c=tk(n),a=tk(i);if(!s)return!1;let o=s&&tk(tR),d=s&&("function"==typeof tO?(t=new tO,e=>t.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer())),f=c&&o&&t_(()=>{let e=!1,t=new n(e3.origin,{body:new tR,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),u=a&&o&&t_(()=>eI.isReadableStream(new i("").body)),l={stream:u&&(e=>e.body)};s&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{l[e]||(l[e]=(t,r)=>{let n=t&&t[e];if(n)return n.call(t);throw new eB(`Response type '${e}' is not supported`,eB.ERR_NOT_SUPPORT,r)})});let h=async e=>{if(null==e)return 0;if(eI.isBlob(e))return e.size;if(eI.isSpecCompliantForm(e)){let t=new n(e3.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return eI.isArrayBufferView(e)||eI.isArrayBuffer(e)?e.byteLength:(eI.isURLSearchParams(e)&&(e+=""),eI.isString(e))?(await d(e)).byteLength:void 0},p=async(e,t)=>{let r=eI.toFiniteNumber(e.getContentLength());return null==r?h(t):r};return async e=>{let t,{url:s,method:a,data:o,signal:d,cancelToken:h,timeout:b,onDownloadProgress:y,onUploadProgress:g,responseType:m,headers:w,withCredentials:v="same-origin",fetchOptions:x}=tm(e),S=r||fetch;m=m?(m+"").toLowerCase():"text";let T=tx([d,h&&h.toAbortSignal()],b),C=null,A=T&&T.unsubscribe&&(()=>{T.unsubscribe()});try{if(g&&f&&"get"!==a&&"head"!==a&&0!==(t=await p(w,o))){let e,r=new n(s,{method:"POST",body:o,duplex:"half"});if(eI.isFormData(o)&&(e=r.headers.get("content-type"))&&w.setContentType(e),r.body){let[e,n]=tu(t,tf(tl(g)));o=tA(r.body,65536,e,n)}}eI.isString(v)||(v=v?"include":"omit");let r=c&&"credentials"in n.prototype,d={...x,signal:T,method:a.toUpperCase(),headers:w.normalize().toJSON(),body:o,duplex:"half",credentials:r?v:void 0};C=c&&new n(s,d);let h=await (c?S(C,x):S(s,d)),b=u&&("stream"===m||"response"===m);if(u&&(y||b&&A)){let e={};["status","statusText","headers"].forEach(t=>{e[t]=h[t]});let t=eI.toFiniteNumber(h.headers.get("content-length")),[r,n]=y&&tu(t,tf(tl(y),!0))||[];h=new i(tA(h.body,65536,r,()=>{n&&n(),A&&A()}),e)}m=m||"text";let k=await l[eI.findKey(l,m)||"text"](h,e);return!b&&A&&A(),await new Promise((t,r)=>{ta(t,r,{data:k,headers:tn.from(h.headers),status:h.status,statusText:h.statusText,config:e,request:C})})}catch(t){if(A&&A(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new eB("Network Error",eB.ERR_NETWORK,e,C),{cause:t.cause||t});throw eB.from(t,t&&t.code,e,C)}}},tI=new Map,tB=e=>{let t=e?e.env:{},{fetch:r,Request:n,Response:i}=t,s=[n,i,r],c=s.length,a,o,d=tI;for(;c--;)a=s[c],void 0===(o=d.get(a))&&d.set(a,o=c?new Map:tP(t)),d=o;return o};tB();let tD={http:null,xhr:tv,fetch:{get:tB}};eI.forEach(tD,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});let tM=e=>`- ${e}`,tL=e=>eI.isFunction(e)||null===e||!1===e;
1var tN={getAdapter:(e,t)=>{let r,n;e=eI.isArray(e)?e:[e];let{length:i}=e,s={};for(let c=0;c<i;c++){let i;if(n=r=e[c],!tL(r)&&void 0===(n=tD[(i=String(r)).toLowerCase()]))throw new eB(`Unknown adapter '${i}'`);if(n&&(eI.isFunction(n)||(n=n.get(t))))break;s[i||"#"+c]=n}if(!n){let e=Object.entries(s).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build")),t=i?e.length>1?"since :\n"+e.map(tM).join("\n"):" "+tM(e[0]):"as no adapter specified";throw new eB("There is no suitable adapter to dispatch the request "+t,"ERR_NOT_SUPPORT")}return n},adapters:tD};function tH(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new tc(null,e)}function tF(e){tH(e),e.headers=tn.from(e.headers),e.data=ti.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);let t=tN.getAdapter(e.adapter||e5.adapter,e);return t(e).then(function(t){return tH(e),t.data=ti.call(e,e.transformResponse,t),t.headers=tn.from(t.headers),t},function(t){return!ts(t)&&(tH(e),t&&t.response&&(t.response.data=ti.call(e,e.transformResponse,t.response),t.response.headers=tn.from(t.response.headers))),Promise.reject(t)})}let tU="1.12.2",t$={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{t$[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});let tj={};t$.transitional=function(e,t,r){function n(e,t){return"[Axios v"+tU+"] Transitional option '"+e+"'"+t+(r?". "+r:"")}return(r,i,s)=>{if(!1===e)throw new eB(n(i," has been removed"+(t?" in "+t:"")),eB.ERR_DEPRECATED);return t&&!tj[i]&&(tj[i]=!0,console.warn(n(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(r,i,s)}},t$.spelling=function(e){return(t,r)=>(console.warn(`${r} is likely a misspelling of ${e}`),!0)};var tK={assertOptions:function(e,t,r){if("object"!=typeof e)throw new eB("options must be an object",eB.ERR_BAD_OPTION_VALUE);let n=Object.keys(e),i=n.length;for(;i-- >0;){let s=n[i],c=t[s];if(c){let t=e[s],r=void 0===t||c(t,s,e);if(!0!==r)throw new eB("option "+s+" must be "+r,eB.ERR_BAD_OPTION_VALUE);continue}if(!0!==r)throw new eB("Unknown option "+s,eB.ERR_BAD_OPTION)}},validators:t$};let tq=tK.validators;class tV{constructor(e){this.defaults=e||{},this.interceptors={request:new eZ,response:new eZ}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=Error();let r=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?r&&!String(e.stack).endsWith(r.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+r):e.stack=r}catch(e){}}throw e}}_request(e,t){let r,n;"string"==typeof e?(t=t||{}).url=e:t=e||{},t=tg(this.defaults,t);let{transitional:i,paramsSerializer:s,headers:c}=t;void 0!==i&&tK.assertOptions(i,{silentJSONParsing:tq.transitional(tq.boolean),forcedJSONParsing:tq.transitional(tq.boolean),clarifyTimeoutError:tq.transitional(tq.boolean)},!1),null!=s&&(eI.isFunction(s)?t.paramsSerializer={serialize:s}:tK.assertOptions(s,{encode:tq.function,serialize:tq.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),tK.assertOptions(t,{baseUrl:tq.spelling("baseURL"),withXsrfToken:tq.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=c&&eI.merge(c.common,c[t.method]);c&&eI.forEach(["delete","get","head","post","put","patch","common"],e=>{delete c[e]}),t.headers=tn.concat(a,c);let o=[],d=!0;this.interceptors.request.forEach(function(e){("function"!=typeof e.runWhen||!1!==e.runWhen(t))&&(d=d&&e.synchronous,o.unshift(e.fulfilled,e.rejected))});let f=[];this.interceptors.response.forEach(function(e){f.push(e.fulfilled,e.rejected)});let u=0;if(!d){let e=[tF.bind(this),void 0];for(e.unshift(...o),e.push(...f),n=e.length,r=Promise.resolve(t);u<n;)r=r.then(e[u++],e[u++]);return r}n=o.length;let l=t;for(;u<n;){let e=o[u++],t=o[u++];try{l=e(l)}catch(e){t.call(this,e);break}}try{r=tF.call(this,l)}catch(e){return Promise.reject(e)}for(u=0,n=f.length;u<n;)r=r.then(f[u++],f[u++]);return r}getUri(e){e=tg(this.defaults,e);let t=tb(e.baseURL,e.url,e.allowAbsoluteUrls);return ez(t,e.params,e.paramsSerializer)}}eI.forEach(["delete","get","head","options"],function(e){tV.prototype[e]=function(t,r){return this.request(tg(r||{},{method:e,url:t,data:(r||{}).data}))}}),eI.forEach(["post","put","patch"],function(e){function t(t){return function(r,n,i){return this.request(tg(i||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:r,data:n}))}}tV.prototype[e]=t(),tV.prototype[e+"Form"]=t(!0)});class tz{constructor(e){let t;if("function"!=typeof e)throw TypeError("executor must be a function.");this.promise=new Promise(function(e){t=e});let r=this;this.promise.then(e=>{if(!r._listeners)return;let t=r._listeners.length;for(;t-- >0;)r._listeners[t](e);r._listeners=null}),this.promise.then=e=>{let t;let n=new Promise(e=>{r.subscribe(e),t=e}).then(e);return n.cancel=function(){r.unsubscribe(t)},n},e(function(e,n,i){r.reason||(r.reason=new tc(e,n,i),t(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}
1subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;let t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){let e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;let t=new tz(function(t){e=t});return{token:t,cancel:e}}}let tZ={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(tZ).forEach(([e,t])=>{tZ[t]=e});let tW=function e(t){let r=new tV(t),n=Z(tV.prototype.request,r);return eI.extend(n,tV.prototype,r,{allOwnKeys:!0}),eI.extend(n,r,null,{allOwnKeys:!0}),n.create=function(r){return e(tg(t,r))},n}(e5);tW.Axios=tV,tW.CanceledError=tc,tW.CancelToken=tz,tW.isCancel=ts,tW.VERSION=tU,tW.toFormData=e$,tW.AxiosError=eB,tW.Cancel=tW.CanceledError,tW.all=function(e){return Promise.all(e)},tW.spread=function(e){return function(t){return e.apply(null,t)}},tW.isAxiosError=function(e){return eI.isObject(e)&&!0===e.isAxiosError},tW.mergeConfig=tg,tW.AxiosHeaders=tn,tW.formToJSON=e=>e4(eI.isHTMLForm(e)?new FormData(e):e),tW.getAdapter=tN.getAdapter,tW.HttpStatusCode=tZ,tW.default=tW;let{Axios:tJ,AxiosError:tX,CanceledError:tY,isCancel:tG,CancelToken:tQ,VERSION:t1,all:t0,Cancel:t2,isAxiosError:t3,spread:t4,toFormData:t5,AxiosHeaders:t6,HttpStatusCode:t7,formToJSON:t8,getAdapter:t9,mergeConfig:re}=tW,rt={1001:"DnaLengthNotMatch",1002:"SporeIdLengthInvalid",1003:"NativeDecoderNotFound",1004:"SporeIdNotFound",1005:"SporeDataUncompatible",1006:"SporeDataContentTypeUncompatible",1007:"DOBVersionUnexpected",1008:"ClusterIdNotSet",1009:"ClusterIdNotFound",1010:"ClusterDataUncompatible",1011:"DecoderIdNotFound",1012:"DecoderOutputInvalid",1013:"HexedDNAParseError",1014:"HexedSporeIdParseError",1015:"DecoderBinaryPathInvalid",1016:"DecoderExecutionError",1017:"DecoderExecutionInternalError",1018:"FetchLiveCellsError",1019:"FetchTransactionError",1020:"NoOutputCellInTransaction",1021:"DOBContentUnexpected",1022:"DOBMetadataUnexpected",1023:"DOBRenderCacheNotFound",1024:"DOBRenderCacheModified",1025:"DecoderBinaryHashInvalid",1026:"DecoderBinaryNotFoundInCell",1027:"JsonRpcRequestError",1028:"SystemTimeError",1029:"DecoderHashNotFound",1030:"DecoderScriptNotFound",1031:"DecoderChainIsEmpty"};function rr(e){let t=Object.keys(rt).indexOf(e.toString());if(t<0)throw Error(`Error code ${e} not found`);return Object.values(rt)[t]}function rn(e){let t=JSON.parse(e);if("error"in t){let e=rr(t.error.code);throw Error(`Decode DOB failed: ${e}`)}let r=JSON.parse(t.result),n=JSON.parse(r.render_output);return n}async function ri(e,t){let r=new tJ({baseURL:t,method:"POST",headers:{"Content-Type":"application/json"}}),n=await r.post("/",JSON.stringify({id:0,jsonrpc:"2.0",method:"dob_decode",params:[C.fR.hexFrom(e).replace(/^0x/,"")]}));return rn(n.data)}async function rs(e,t){let r=e.type?.args;if(void 0===r)throw Error("Invalid spore cell: missing spore id");return ri(C.fR.hexFrom(r),t)}async function rc(e,t,r){let n=await e.getCell(t);if(!n)throw Error("Invalid spore outpoint: missing spore cell");return rs(n.cellOutput,r)}async function ra(e,t,r){let n=new tJ({baseURL:r,method:"POST",headers:{"Content-Type":"application/json"}}),i=await n.post("/",JSON.stringify({id:0,jsonrpc:"2.0",method:"dob_raw_decode",params:[C.fR.hexFrom(e),C.fR.hexFrom(t)]}));return rn(i.data)}function ro(e){if(("code_hash"===e.type||"type_id"===e.type)&&void 0===e.hash)throw Error("Invalid decoder: 'hash' is required for 'code_hash' and 'type_id'");if("type_script"===e.type&&void 0===e.script)throw Error("Invalid decoder: 'script' is required for 'type_script'")}function rd(e){switch(e.patternType){case"options":if(void 0===e.traitArgs)throw Error("Invalid pattern: 'traitArgs' is required for 'options'");if(0===e.traitArgs.length)throw Error("Invalid pattern: 'traitArgs' should not be empty for 'options'");break;case"range":if(void 0===e.traitArgs)throw Error("Invalid pattern: 'traitArgs' is required for 'range'");if(2!==e.traitArgs.length||2!==e.traitArgs.filter(e=>"number"==typeof e).length)throw Error("Invalid pattern: 'traitArgs' should contain exactly 2 numbers for 'range'")}if(0===e.dnaLength)throw Error("Invalid pattern: 'dnaLength' should be greater than 0")}function rf(e){switch(e.patternType){case"options":if(!Array.isArray(e.traitArgs))throw Error("Invalid pattern: 'traitArgs' should be an array for 'options'");for(let t of e.traitArgs){if(2!==t.length)throw Error("Invalid pattern: 'traitArgs' should contain exactly 2 elements for 'options'");if("string"!=typeof t[0]&&(!Array.isArray(t[0])||1===t[0].length&&"*"!==t[0][0]||2===t[0].length&&("number"!=typeof t[0][0]||"number"!=typeof t[0][1])||0===t[0].length||t[0].length>2))throw Error("Invalid pattern: 'traitArgs[0]' should be a string or an array that contains only 2 numbers or the '*' for 'options'");if("string"!=typeof t[1])throw Error("Invalid pattern: 'traitArgs[1]' should be a string for 'options'")}break;case"raw":if(""!==e.traitName||"string"!=typeof e.traitArgs)throw Error("Invalid pattern: 'traitName' should be empty and 'traitArgs' should be a string for 'raw'")}}function ru(e){let t=C.fR.bytesFrom(JSON.stringify(e),"utf8"),r=new ArrayBuffer(t.byteLength),n=new Uint8Array(r);return n.set(t),r}
1function rl(e){return ro(e.dob.decoder),e.dob.pattern.forEach(e=>{rd(e),e.toJSON=function(){return e.traitArgs?[e.traitName,e.dobType,e.dnaOffset,e.dnaLength,e.patternType,e.traitArgs]:[e.traitName,e.dobType,e.dnaOffset,e.dnaLength,e.patternType]}}),JSON.stringify(e)}function rh(e){return e.dob.decoders.forEach(e=>{ro(e.decoder),e.pattern.forEach(e=>{"dnaOffset"in e?(rd(e),e.toJSON=function(){return e.traitArgs?[e.traitName,e.dobType,e.dnaOffset,e.dnaLength,e.patternType,e.traitArgs]:[e.traitName,e.dobType,e.dnaOffset,e.dnaLength,e.patternType]}):(rf(e),e.toJSON=()=>[e.imageName,e.svgFields,e.traitName,e.patternType,e.traitArgs])})}),JSON.stringify(e)}let rp=Object.freeze({dob0:{type:"code_hash",hash:"0x13cac78ad8482202f18f9df4ea707611c35f994375fa03ae79121312dda9925c"},dob1:{type:"code_hash",hash:"0xda3525549b72970b4c95f5b5749357f20d1293d335710b674f09c32f7d54b6dc"}}),rb=Object.freeze({dob0:{type:"code_hash",hash:"0x13cac78ad8482202f18f9df4ea707611c35f994375fa03ae79121312dda9925c"},dob1:{type:"code_hash",hash:"0xda3525549b72970b4c95f5b5749357f20d1293d335710b674f09c32f7d54b6dc"}});function ry(e,t,r){return r?r[t]:"ckb"===e.addressPrefix?rb[t]:rp[t]}var rg=r(5543),rm=r(18338),rw=r(91806),rv=r(40398),rx=r(27018);async function rS(e,t,r){let n=await (0,rv.J)(e,t,r??Object.values((0,rg.K0)(e)));if(n)return{cell:n.cell,spore:n.cell,sporeData:(0,rw.s9)(n.cell.outputData),scriptInfo:n.scriptInfo}}async function rT(e,t,r){let n=await rS(e,t,r);if(!n)throw Error(`Spore ${C.fR.hexFrom(t)} not found`);return n}async function rC(e){let{signer:t,data:r,to:n,clusterMode:i,scriptInfoHash:s}=e,c=e.scriptInfo??(0,rg.DS)(t.client),a=[],o=C.fR.Transaction.from(e.tx??{});await o.completeInputsAtLeastOne(t);let{script:d}=await t.getRecommendedAddressObj(),f=C.fR.hashTypeId(o.inputs[0],o.outputs.length);[].push(f);let u=(0,rw.OI)(r);if(o.addOutput({lock:n??d,type:{...c,args:f}}
1,u),c.cobuild){let e=o.outputs[o.outputs.length-1],t=(0,rm.ko)(e,u,s);a.push(t)}await o.addCellDepInfos(t.client,c.cellDeps);let l=await (0,rx.d)(t,o,r,i);return l&&a.push(l),{tx:await (0,rm.uS)(t,o,a),id:f}}async function rA(e){let{signer:t,id:r,to:n,scripts:i,scriptInfoHash:s}=e,c=C.fR.Transaction.from(e.tx??{}),{cell:a,scriptInfo:o}=await rT(t.client,r,i);await c.addCellDepInfos(t.client,o.cellDeps),c.addInput(a),c.addOutput({lock:n,type:a.cellOutput.type},a.outputData);let d=o.cobuild?[(0,rm.bj)(a.cellOutput,c.outputs[c.outputs.length-1],s)]:[];return{tx:await (0,rm.uS)(t,c,d)}}async function rk(e){let{signer:t,id:r,scripts:n,scriptInfoHash:i}=e,s=C.fR.Transaction.from(e.tx??{}),{cell:c,scriptInfo:a}=await rT(t.client,r,n);await s.addCellDepInfos(t.client,a.cellDeps),s.addInput(c);let o=a.cobuild?[(0,rm.cx)(c.cellOutput,i)]:[];return{tx:await (0,rm.uS)(t,s,o)}}async function*rE(e){let{signer:t,clusterId:r,scriptInfos:n,limit:i,order:s}=e;for(let e of n??Object.values((0,rg.K0)(t.client)))if(e)for await(let n of t.findCells({script:{...e,args:[]}},!0,s,i)){let t=(0,rw.s9)(n.outputData);r&&(""!==r||t.clusterId)&&t.clusterId!==C.fR.hexFrom(r)||(yield{cell:n,spore:n,sporeData:t,scriptInfo:rg.RY.from(e)})}}async function*rR(e){let{client:t,lock:r,clusterId:n,scriptInfos:i,limit:s,order:c}=e;for(let e of i??Object.values((0,rg.K0)(t)))if(e)for await(let i of t.findCells({script:{...e,args:[]},scriptType:"type",scriptSearchMode:"prefix",withData:!0,filter:r?{script:r}:void 0},c,s)){let t=(0,rw.s9)(i.outputData);n&&(""!==n||t.clusterId)&&t.clusterId!==C.fR.hexFrom(n)||(yield{cell:i,spore:i,sporeData:t,scriptInfo:rg.RY.from(e)})}}function rO(e){return C.fR.hashCkb(C.fR.bytesFrom(e,"utf8")).slice(0,18)}class r_ extends Error{constructor(e){super(e)}}class rP extends Error{constructor(e){super(e)}}class rI extends Error{constructor(e){super(e)}}class rB{constructor(e,t){this.res=e,this.cellDeps=t}static new(e,t){return new rB(e,t?.map(C.fR.OutPoint.from)??[])}map(e){try{return new rB(e(this.res),this.cellDeps)}catch(e){throw new rI(JSON.stringify(e))}}}class rD{async runScriptTry(e,t,r,n){try{return await this.runScript(e,t,r,n)}catch(e){if(e instanceof rP)return;throw e}}}class rM extends rD{constructor(e,t){super(),this.requestor=t?.requestor??new C.fR.RequestorJsonRpc(e,t,e=>{if("object"!=typeof e||null===e||!("code"in e)||"number"!=typeof e.code)throw new r_(JSON.stringify(e));if(1003===e.code||1004===e.code){if("message"in e&&"string"==typeof e.message)throw new rP(e.message);throw new rP}if("message"in e&&"string"==typeof e.message)throw new r_(e.message);throw new r_})}get url(){return this.requestor.url}async runScript(e,t,r,n){let i=C.fR.OutPoint.from(e),[s,c]=(()=>{if(n?.tx){let e=C.fR.Transaction.from(n.tx);return["run_script_level_transaction",[{inner:j.JsonRpcTransformers.transactionFrom(e),hash:e.hash()}]]}if(n?.cell){let e=C.fR.CellAny.from(n.cell);return["run_script_level_cell",[{cell_output:j.JsonRpcTransformers.cellOutputFrom(e.cellOutput,e.outputData),hex_data:C.fR.hexFrom(e.outputData)}]]}return n?.script?["run_script_level_script",[j.JsonRpcTransformers.scriptFrom(n.script)]]:["run_script_level_code",[]]})(),{content:a,cell_deps:o}=await this.requestor.request(s,[i.txHash,Number(i.index),[rO(t),...r.map(C.fR.hexFrom)],...c]);return rB.new(a,o.map(j.JsonRpcTransformers.outPointTo))}}class rL{constructor(e,t){this.code=C.fR.OutPoint.from(e),this.executor=t??void 0}static async tryRun(e){try{return await e}catch(e){if(e instanceof rP||e instanceof rI)return rB.new(void 0);throw e}}async tryRun(e){return rL.tryRun(e)}assertExecutor(){if(!this.executor)throw Error("SSRI executor is not set");return this.executor}async getMethods(e=0,t=0){let r=await this.assertExecutor().runScript(this.code,"SSRI.get_methods",[C.fR.numToBytes(e??0,8),C.fR.numToBytes(t??0,8)]);return r.map(e=>C.fR.mol.Byte8Vec.decode(e))}async hasMethods(e,t){let r=C.fR.mol.Byte8Vec.encode(e.map(rO).concat(t?.map(C.fR.hexFrom)??[])),n=await this.assertExecutor().runScript(this.code,"SSRI.has_methods",[r]);return n.map(e=>C.fR.mol.BoolVec.decode(e))}async version(){let e=await this.assertExecutor().runScript(this.code,"SSRI.version",[]);return e.map(e=>{if(4!==e.length)throw Error("Invalid U8");return C.fR.numFrom(e)})}}class rN extends rL{constructor(e,t,r){super(e,r?.executor),this.script=C.fR.Script.from(t)}async name(e){if(this.executor){let t=await this.executor.runScriptTry(this.code,"UDT.name",[],{script:this.script,...e});if(t)return t.map(e=>C.fR.bytesTo(e,"utf8"))}return rB.new(void 0)}async symbol(e){if(this.executor){let t=await this.executor.runScriptTry(this.code,"UDT.symbol",[],{script:this.script,...e});if(t)return t.map(e=>C.fR.bytesTo(e,"utf8"))}return rB.new(void 0)}async decimals(e){if(this.executor){let t=await this.executor.runScriptTry(this.code,"UDT.decimals",[],{script:this.script,...e});if(t)return t.map(e=>C.fR.numFromBytes(e))}return rB.new(void 0)}async icon(e){if(this.executor){let t=await this.executor.runScriptTry(this.code,"UDT.icon",[],{script:this.script,...e});if(t)return t.map(e=>C.fR.bytesTo(e,"utf8"))}return rB.new(void 0)}async transfer(e,t,r){let n;if(this.executor){let i=C.fR.Transaction.from(r??{});await i.completeInputsAtLeastOne(e);let s=await this.executor.runScriptTry(this.code,"UDT.transfer",[i.toBytes(),C.fR.ScriptVec.encode(t.map(({to:e})=>e)),C.fR.mol.Uint128Vec.encode(t.map(({amount:e})=>e))],{script:this.script});s&&(n=s.map(e=>C.fR.Transaction.fromBytes(e)))}if(!n){let e=C.fR.Transaction.from(r??{});for(let{to:r,amount:n}of t)e.addOutput({lock:r,type:this.script},C.fR.numLeToBytes(n,16));n=rB.new(e)}return n.res.addCellDeps({outPoint:this.code,depType:"code"}),n}async mint(e,t,r){let n;if(this.executor){let i=C.fR.Transaction.from(r??{});await i.completeInputsAtLeastOne(e);let s=await this.executor.runScriptTry(this.code,"UDT.mint",[i.toBytes(),C.fR.ScriptVec.encode(t.map(({to:e})=>e)),C.fR.mol.Uint128Vec.encode(t.map(({amount:e})=>e))],{script:this.script});s&&(n=s.map(e=>C.fR.Transaction.fromBytes(e)))}if(!n){let e=C.fR.Transaction.from(r??{});for(let{to:r,amount:n}of t)e.addOutput({lock:r,type:this.script},C.fR.numLeToBytes(n,16));n=rB.new(e)}return n.res.addCellDeps({outPoint:this.code,depType:"code"}),n}async completeChangeToLock(e,t,r){let n=C.fR.Transaction.from(e);await n.completeInputsByUdt(t,this.script);let i=await n.getInputsUdtBalance(t.client,this.script)-n.getOutputsUdtBalance(this.script);return i>C.fR.Zero&&n.addOutput({lock:r,type:this.script},C.fR.numLeToBytes(i,16)),n}async completeBy(e,t){let{script:r}=await t.getRecommendedAddressObj();return this.completeChangeToLock(e,t,r)}}class rH extends rN{constructor(e,t,r){super(e,t,r)}async pause(e,t,r,n){let i=C.fR.Transaction.from(r??{});await i.completeInputsAtLeastOne(e);let s=await this.assertExecutor().runScript(this.code,"UDTPausable.pause",[i.toBytes(),C.fR.mol.Byte32Vec.encode(t.map(e=>C.fR.Script.from(e).hash()).concat(n?.map(C.fR.hexFrom)??[]))],{script:this.script}),c=s.map(e=>C.fR.Transaction.fromBytes(e));return c.res.addCellDeps({outPoint:this.code,depType:"code"}),c}async unpause(e,t,r,n){let i=C.fR.Transaction.from(r??{});await i.completeInputsAtLeastOne(e);let s=await this.assertExecutor().runScript(this.code,"UDTPausable.unpause",[i.toBytes(),C.fR.mol.Byte32Vec.encode(t.map(e=>C.fR.Script.from(e).hash()).concat(n?.map(C.fR.hexFrom)??[]))],{script:this.script}),c=s.map(e=>C.fR.Transaction.fromBytes(e));return c.res.addCellDeps({outPoint:this.code,depType:"code"}),c}
1async isPaused(e,t){let r=await this.assertExecutor().runScript(this.code,"UDTPausable.is_paused",[C.fR.mol.Byte32Vec.encode(e.map(e=>C.fR.Script.from(e).hash()).concat(t?.map(C.fR.hexFrom)??[]))],{script:this.script});return r.map(e=>C.fR.mol.BoolVec.decode(e))}async enumeratePaused(e,t){let r=await this.assertExecutor().runScript(this.code,"UDTPausable.enumerate_paused",[C.fR.numToBytes(e??0,8),C.fR.numToBytes(t??0,8)],{script:this.script});return r.map(e=>C.fR.mol.Byte32Vec.decode(e))}}class rF extends C.fR.SignerBtc{constructor(e,t,r=[{addressPrefix:"ckb",signerType:C.fR.SignerType.BTC,network:"btc"},{addressPrefix:"ckt",signerType:C.fR.SignerType.BTC,network:"btcTestnet"}]){super(e),this.provider=t,this.preferredNetworks=r}async _getNetworkToChange(){let e=await (async()=>this.provider.getChain?({BITCOIN_MAINNET:"btc",BITCOIN_TESTNET:"btcTestnet",FRACTAL_BITCOIN_MAINNET:"fractalBtc"})[(await this.provider.getChain()).enum]??"":await this.provider.getNetwork()==="livenet"?"btc":"btcTestnet")(),{network:t}=this.matchNetworkPreference(this.preferredNetworks,e)??{network:e};if(t!==e)return t}async ensureNetwork(){let e=await this._getNetworkToChange();if(e){if(this.provider.switchChain){let t={btc:"BITCOIN_MAINNET",btcTestnet:"BITCOIN_TESTNET",fractalBtc:"FRACTAL_BITCOIN_MAINNET"}[e];if(t){await this.provider.switchChain(t);return}}else if("btc"===e||"btcTestnet"===e){await this.provider.switchNetwork("btc"===e?"livenet":"testnet");return}throw Error(`UniSat wallet doesn't support the requested chain ${e}`)}}async getBtcAccount(){return(await this.provider.getAccounts())[0]}async getBtcPublicKey(){return C.fR.hexFrom(await this.provider.getPublicKey())}async connect(){await this.provider.requestAccounts(),await this.ensureNetwork()}onReplaced(e){let t=[],r=async()=>{e(),t[0]?.()};return t.push(()=>{this.provider.removeListener("accountsChanged",r),this.provider.removeListener("networkChanged",r)}),this.provider.on("accountsChanged",r),this.provider.on("networkChanged",r),t[0]}async isConnected(){return!await this._getNetworkToChange()&&0!==(await this.provider.getAccounts()).length}async signMessageRaw(e){let t="string"==typeof e?e:C.fR.hexFrom(e).slice(2);return this.provider.signMessage(t,"ecdsa")}}function rU(e,t){let r=window;return void 0===r.unisat?[]:[{signer:new rF(e,r.unisat,t),name:"BTC"}]}class r$ extends C.fR.SignerBtc{constructor(e,t,r=[{addressPrefix:"ckb",signerType:C.fR.SignerType.BTC,network:"btc"},{addressPrefix:"ckt",signerType:C.fR.SignerType.BTC,network:"btcTestnet"}]){super(e),this.provider=t,this.preferredNetworks=r}async getBtcAccount(){return this.accountCache=(await this.provider.getAccount())[0],this.accountCache}async getBtcPublicKey(){let e=await this.provider.getPublicKey(),t=await this.getBtcAccount(),r=e.find(e=>e.address===t);if(!r)throw Error("pubKey not found");return C.fR.hexFrom(r.publicKey)}async ensureNetwork(){let e=await this._getNetworkToChange();if(!e)return;let t={btc:"btc",btcTestnet:"btc_testnet",btcTestnet4:"btc_testnet_4",btcSignet:"btc_signet"}[e];if(t){await this.provider.switchNetwork(t);return}throw Error(`UTXO Global wallet doesn't support the requested chain ${e}`)}async _getNetworkToChange(){let e={btc:"btc",btc_testnet:"btcTestnet",btc_testnet_4:"btcTestnet4",btc_signet:"btcSignet"}[await this.provider.getNetwork()],{network:t}=this.matchNetworkPreference(this.preferredNetworks,e)??{network:e};if(t!==e)return t}onReplaced(e){let t=[],r=async()=>{e(),t[0]?.()};return t.push(()=>{this.provider.removeListener("accountsChanged",r),this.provider.removeListener("networkChanged",r)}),this.provider.on("accountsChanged",r),this.provider.on("networkChanged",r),t[0]}async connect(){await this.provider.connect(),await this.ensureNetwork()}async isConnected(){return await this._getNetworkToChange()===void 0&&await this.provider.isConnected()}async signMessageRaw(e){let t="string"==typeof e?e:C.fR.hexFrom(e).slice(2);return this.provider.signMessage(t,this.accountCache??await this.getBtcAccount())}}class rj extends C.fR.Signer{get type(){return C.fR.SignerType.CKB}get signType(){return C.fR.SignerSignType.CkbSecp256k1}
1constructor(e,t){super(e),this.provider=t}getInternalAddress(){return this.getAccount()}async getIdentity(){return this.getPublicKey()}async getAddressObj(){let e=await this.getInternalAddress();return C.fR.Address.fromString(e,this.client)}async getAddressObjs(){return[await this.getAddressObj()]}async getAccount(){return this.accountCache=(await this.provider.getAccount())[0],this.accountCache}async getPublicKey(){let e=await this.provider.getPublicKey(),t=await this.getAccount(),r=e.find(e=>e.address===t);if(!r)throw Error("pubKey not found");return C.fR.hexFrom(r.publicKey)}get ckbNetwork(){return"ckb"===this.client.addressPrefix?"nervos":"nervos_testnet"}async connect(){await this.provider.connect(),this.ckbNetwork!==await this.provider.getNetwork()&&await this.provider.switchNetwork(this.ckbNetwork)}onReplaced(e){let t=[],r=async()=>{e(),t[0]?.()};return t.push(()=>{this.provider.removeListener("accountsChanged",r),this.provider.removeListener("networkChanged",r)}),this.provider.on("accountsChanged",r),this.provider.on("networkChanged",r),t[0]}async isConnected(){return await this.provider.getNetwork()===this.ckbNetwork&&await this.provider.isConnected()}async signMessageRaw(e){let t="string"==typeof e?e:C.fR.hexFrom(e).slice(2);return this.provider.signMessage(t,this.accountCache??await this.getAccount())}async signOnlyTransaction(e){let t=await this.provider.signTransaction(e);return C.fR.Transaction.from(t)}async prepareTransaction(e){let t=C.fR.Transaction.from(e),{script:r}=await this.getAddressObj();return await t.addCellDepsOfKnownScripts(this.client,C.fR.KnownScript.Secp256k1Blake160),await t.prepareSighashAllWitness(r,65,this.client),t}}class rK extends C.fR.SignerDoge{constructor(e,t,r=[{addressPrefix:"ckb",signerType:C.fR.SignerType.Doge,network:"doge"},{addressPrefix:"ckt",signerType:C.fR.SignerType.Doge,network:"dogeTestnet"}]){super(e),this.provider=t,this.preferredNetworks=r}async getDogeAddress(){return this.accountCache=(await this.provider.getAccount())[0],this.accountCache}async ensureNetwork(){let e=await this._getNetworkToChange();if(!e)return;let t={doge:"dogecoin",dogeTestnet:"dogecoin_testnet"}[e];if(t){await this.provider.switchNetwork(t);return}throw Error(`UTXO Global Doge wallet doesn't support the requested chain ${e}`)}async _getNetworkToChange(){let e={dogecoin:"doge",dogecoin_testnet:"dogeTestnet"}[await this.provider.getNetwork()],{network:t}=this.matchNetworkPreference(this.preferredNetworks,e)??{network:e};if(t!==e)return t}onReplaced(e){let t=[],r=async()=>{e(),t[0]?.()};return t.push(()=>{this.provider.removeListener("accountsChanged",r),this.provider.removeListener("networkChanged",r)}),this.provider.on("accountsChanged",r),this.provider.on("networkChanged",r),t[0]}async connect(){await this.provider.connect(),await this.ensureNetwork()}async isConnected(){return await this._getNetworkToChange()===void 0&&await this.provider.isConnected()}async signMessageRaw(e){let t="string"==typeof e?e:C.fR.hexFrom(e).slice(2);return this.provider.signMessage(t,this.accountCache??await this.getDogeAddress())}}function rq(e,t){let r=window;return void 0===r.utxoGlobal?[]:[{name:"CKB",signer:new rj(e,r.utxoGlobal.ckbSigner)},{name:"BTC",signer:new r$(e,r.utxoGlobal.bitcoinSigner,t)},{name:"DOGE",signer:new rK(e,r.utxoGlobal.dogeSigner,t)}]}var rV=r(80112),rz=r(6147);async function rZ(e){let t=await e;if(rV.is(rz.rpcErrorResponseMessageSchema,t))throw t.error;if(rV.is(rz.rpcSuccessResponseMessageSchema,t))return t.result;throw{code:rz.RpcErrorCode.INTERNAL_ERROR,message:"Received unknown response from provider.",data:t}}class rW extends C.fR.SignerBtc{constructor(e,t,r=[{addressPrefix:"ckb",signerType:C.fR.SignerType.BTC,network:"btc"},{addressPrefix:"ckt",signerType:C.fR.SignerType.BTC,network:"btcTestnet"}]){super(e),this.provider=t,this.preferredNetworks=r}async assertAddress(){this.addressCache=this.addressCache??(async()=>{if(await this.isConnected())return(await rZ(this.provider.request("getAddresses",{purposes:[rz.AddressPurpose.Payment]}))).addresses[0]})();let e=await this.addressCache;if(e)return e;throw Error("Not connected")}async getBtcAccount(){return(await this.assertAddress()).address}async getBtcPublicKey(){return C.fR.hexFrom((await this.assertAddress()).publicKey)}async connect(){await this.isConnected()||await rZ(this.provider.request("wallet_requestPermissions",void 0))}async disconnect(){this.addressCache=void 0}onReplaced(e){let t=[],r=()=>{e(),t[0]?.()};return t.push(this.provider.addListener("accountChange",r),this.provider.addListener("networkChange",r)),t[0]}async isConnected(){try{return await rZ(this.provider.request("getBalance",void 0)),!0}catch(e){return!1}}async signMessageRaw(e){let t="string"==typeof e?e:C.fR.hexFrom(e).slice(2);return(await rZ(this.provider.request("signMessage",{message:t,address:(await this.assertAddress()).address,protocol:rz.MessageSigningProtocols.ECDSA}))).signature}}function rJ(e,t){let r=window,n=r.btc_providers?r.btc_providers.map(r=>{var n;return{wallet:{name:r.name,icon:r.icon},signerInfo:{name:"BTC",signer:new rW(e,(n=r.id,n?.split(".").reduce((e,t)=>
1e?.[t],window)),t)}}}):[];return n}function rX(e){return`data:image/svg+xml,${encodeURIComponent(e)}`}let rY=rX('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_46_558)"><circle cx="16" cy="16" r="16" fill="#627EEA"/><path d="M15.9957 20.4203L9.14282 16.3876L15.9957 5.14258V20.4203Z" fill="white"/><path d="M15.9957 26.8573L9.30029 17.396L15.9957 21.3511V26.8573Z" fill="white"/><path d="M16.2319 20.4203L23.0849 16.3876L16.2319 5.14258V20.4203Z" fill="#C1CCF7"/><path d="M16.3107 26.8573L23.0848 17.396L16.3107 21.3511V26.8573Z" fill="#C1CCF7"/></g><defs><clipPath id="clip0_46_558"><rect width="32" height="32" fill="white"/></clipPath></defs></svg>'),rG=rX('<svg xmlns="http://www.w3.org/2000/svg" width="420" height="420" viewBox="0 0 420 420" fill="none"><circle cx="210" cy="210" r="210" fill="#333333"/><path d="M271.127 204.419C279.096 204.419 285.555 197.959 285.555 189.991C285.555 182.022 279.096 175.562 271.127 175.562C263.159 175.562 256.699 182.022 256.699 189.991C256.699 197.959 263.159 204.419 271.127 204.419Z" fill="#8CDD00"/><path d="M173.995 175.562C166.773 175.562 160.91 181.425 160.91 188.648C160.91 195.87 166.773 201.733 173.995 201.733C181.218 201.733 187.081 195.87 187.081 188.648C187.064 181.425 181.218 175.562 173.995 175.562Z" fill="#8CDD00"/><path d="M213.43 164.836L198.969 233.586C197.626 240.006 191.878 244.657 185.327 244.657C181.086 244.657 177.139 242.757 174.47 239.465C172.39 236.894 171.342 233.734 171.391 230.491L145.27 237.238C146.383 244.084 149.2 250.618 153.687 256.203C161.434 265.816 172.963 271.335 185.311 271.335C204.407 271.335 221.111 257.775 225.041 239.089L240.665 164.852H213.43V164.836Z" fill="#C1C1C1"/><path d="M335.83 115.983C327.068 105.19 314.065 99 300.161 99H267.981L262.363 125.662H300.161C305.991 125.662 311.445 128.249 315.113 132.786C318.782 137.306 320.207 143.185 319.011 148.884L313.394 175.562H340.645L345.116 154.387C347.965 140.778 344.592 126.775 335.83 115.983Z" fill="#8CDD00"/><path d="M295.216 261.999C291.285 280.669 274.597 294.212 255.518 294.212H226.875L221.258 320.874H255.518C287.126 320.874 314.803 298.421 321.304 267.485L326.021 245.049H298.77L295.216 261.999Z" fill="#8CDD00"/><path d="M98.8061 152.39L93.9258 175.58H121.177L124.894 157.892C128.825 139.223 145.513 125.679 164.592 125.679H192.04L197.657 99.0176H164.592C132.985 99.0012 105.308 121.454 98.8061 152.39Z" fill="#8CDD00"/><path d="M104.998 287.072C101.33 282.552 99.9049 276.673 101.1 270.974L106.079 247.342L77.2555 254.777L74.9956 265.487C72.1296 279.097 75.5196 293.099 84.2813 303.891C93.0429 314.684 106.046 320.874 119.95 320.874H150.935L156.553 294.212H119.95C114.12 294.196 108.666 291.608 104.998 287.072Z" fill="#8CDD00"/></svg>'),rQ=rX('<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" id="Layer_1" x="0" y="0" version="1.1" viewBox="0 0 318.6 318.6"><style>.st1,.st6{fill:#e4761b;stroke:#e4761b;stroke-linecap:round;stroke-linejoin:round}.st6{fill:#f6851b;stroke:#f6851b}</style><path fill="#e2761b" stroke="#e2761b" stroke-linecap="round" stroke-linejoin="round" d="m274.1 35.5-99.5 73.9L193 65.8z"/><path d="m44.4 35.5 98.7 74.6-17.5-44.3zm193.9 171.3-26.5 40.6 56.7 15.6 16.3-55.3zm-204.4.9L50.1 263l56.7-15.6-26.5-40.6z" class="st1"/><path d="m103.6 138.2-15.8 23.9 56.3 2.5-2-60.5zm111.3 0-39-34.8-1.3 61.2 56.2-2.5zM106.8 247.4l33.8-16.5-29.2-22.8zm71.1-16.5 33.9 16.5-4.7-39.3z" class="st1"/><path fill="#d7c1b3" stroke="#d7c1b3" stroke-linecap="round" stroke-linejoin="round" d="m211.8 247.4-33.9-16.5 2.7 22.1-.3 9.3zm-105 0 31.5 14.9-.2-9.3 2.5-22.1z"/><path fill="#233447" stroke="#233447" stroke-linecap="round" stroke-linejoin="round" d="m138.8 193.5-28.2-8.3 19.9-9.1zm40.9 0 8.3-17.4 20 9.1z"/><path fill="#cd6116" stroke="#cd6116" stroke-linecap="round" stroke-linejoin="round" d="m106.8 247.4 4.8-40.6-31.3.9zM207 206.8l4.8 40.6 26.5-39.7zm23.8-44.7-56.2 2.5 5.2 28.9 8.3-17.4 20 9.1zm-120.2 23.1 20-9.1 8.2 17.4 5.3-28.9-56.3-2.5z"/><path fill="#e4751f" stroke="#e4751f" stroke-linecap="round" stroke-linejoin="round" d="m87.8 162.1 23.6 46-.8-22.9zm120.3 23.1-1 22.9 23.7-46zm-64-20.6-5.3 28.9 6.6 34.1 1.5-44.9zm30.5 0-2.7 18 1.2 45 6.7-34.1z"/><path d="m179.8 193.5-6.7 34.1 4.8 3.3 29.2-22.8 1-22.9zm-69.2-8.3.8 22.9 29.2 22.8 4.8-3.3-6.6-34.1z" class="st6"/>
1<path fill="#c0ad9e" stroke="#c0ad9e" stroke-linecap="round" stroke-linejoin="round" d="m180.3 262.3.3-9.3-2.5-2.2h-37.7l-2.3 2.2.2 9.3-31.5-14.9 11 9 22.3 15.5h38.3l22.4-15.5 11-9z"/><path fill="#161616" stroke="#161616" stroke-linecap="round" stroke-linejoin="round" d="m177.9 230.9-4.8-3.3h-27.7l-4.8 3.3-2.5 22.1 2.3-2.2h37.7l2.5 2.2z"/><path fill="#763d16" stroke="#763d16" stroke-linecap="round" stroke-linejoin="round" d="m278.3 114.2 8.5-40.8-12.7-37.9-96.2 71.4 37 31.3 52.3 15.3 11.6-13.5-5-3.6 8-7.3-6.2-4.8 8-6.1zM31.8 73.4l8.5 40.8-5.4 4 8 6.1-6.1 4.8 8 7.3-5 3.6 11.5 13.5 52.3-15.3 37-31.3-96.2-71.4z"/><path d="m267.2 153.5-52.3-15.3 15.9 23.9-23.7 46 31.2-.4h46.5zm-163.6-15.3-52.3 15.3-17.4 54.2h46.4l31.1.4-23.6-46zm71 26.4 3.3-57.7 15.2-41.1h-67.5l15 41.1 3.5 57.7 1.2 18.2.1 44.8h27.7l.2-44.8z" class="st6"/><script xmlns=""/></svg>'),r1=rX('<svg version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" style="enable-background:new 0 0 256 256;" xml:space="preserve"><style type="text/css">.st0{fill:none;} .st1{fill:#FFFFFF;} .st2{fill:#662482;}</style><g><path class="st0" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2 c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8 c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5 c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"/> <circle class="st1" cx="137.9" cy="99" r="12.1"/><path class="st1" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5 c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4 c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5 c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5 c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"/><path class="st2" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5 c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2 c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8 C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5 c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4 c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7 c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5 c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99 s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"/></g></svg>'),r0=rX('<svg width="1000" height="1000" viewBox="0 0 1000 1000" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="1000" height="1000" fill="black"/><path fill-rule="evenodd" clip-rule="evenodd" d="M393.949 218.518H231.049C224.129 218.518 218.519 224.128 218.519 231.048V393.948C218.519 400.869 224.129 406.479 231.049 406.479H393.949C400.87 406.479 406.48 400.869 406.48 393.948V231.048C406.48 224.128 400.87 218.518 393.949 218.518ZM581.992 406.479H419.092C412.172 406.479 406.561 412.09 406.561 419.01V581.91C406.561 588.831 412.172 594.441 419.092 594.441H581.992C588.913 594.441 594.523 588.831 594.523 581.91V419.01C594.523 412.09 588.913 406.479 581.992 406.479ZM606.974 218.518H769.874C776.794 218.518 782.405 224.128 782.405 231.048V393.948C782.405 400.869 776.794 406.479 769.874 406.479H606.974C600.053 406.479 594.443 400.869 594.443 393.948V231.048C594.443 224.128 600.053 218.518 606.974 218.518ZM393.95 594.442H231.049C224.129 594.442 218.519 600.052 218.519 606.973V769.873C218.519 776.793 224.129 782.404 231.049 782.404H393.95C400.87 782.404 406.48 776.793 406.48 769.873V606.973C406.48 600.052 400.87 594.442 393.95 594.442ZM606.974 594.442H769.874C776.794 594.442 782.405 600.052 782.405 606.973V769.873C782.405 776.793 776.794 782.404 769.874 782.404H606.974C600.053 782.404 594.443 776.793 594.443 769.873V606.973C594.443 600.052 600.053 594.442 606.974 594.442Z" fill="white"/></svg>'),r2=rX('<svg id="layer2" data-name="layer2" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewB
1ox="0 0 88.24 70.95"><defs><style>.cls-1{fill:url(#linear_9)}.cls-2{fill:rgba(155,84,168,0)}</style><linearGradient id="linear_9" data-name="linear 9" x1="216.98" y1="-423.81" x2="170.95" y2="319.28" gradientTransform="translate(18.94 29.12) scale(.09 -.09)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#01f395"/><stop offset="1" stop-color="#01b56a"/></linearGradient></defs><g id="layer1" data-name="layer1"><g><rect class="cls-2" width="88.24" height="70.95"/><g><path class="cls-1" d="m19.08,0H4.9l49.8,70.95h14.19L19.08,0Z"/><path d="m69.08,44.08c9.93-2.84,16.92-9.85,16.92-21.5v-.2c0-6.18-2.12-11.44-5.87-15.29-4.56-4.45-11.54-7.08-20.46-7.08H24.09l7.97,11.37h26.59c9.22,0,14.7,4.12,14.7,11.72v.2c0,7.19-5.68,11.86-14.6,11.86h-9.98l25.11,35.79h14.37l-19.16-26.87Z"/><path d="m0,20.16l35.64,50.78h14.19L14.19,20.16H0Z"/></g></g></g></svg>'),r3=rX('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 115.77 147.7" xmlns:v="https://vecta.io/nano"><defs><linearGradient id="A" x1="106.985" y1="30.78" x2="13.053" y2="72.524" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#201c1b"/><stop offset=".36" stop-color="#77390d"/><stop offset=".67" stop-color="#ea8101"/><stop offset="1" stop-color="#f4b852"/></linearGradient><linearGradient id="B" x1="11.381" y1="118.167" x2="120.232" y2="85.771" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#1f1d1c"/><stop offset=".37" stop-color="#77390d"/><stop offset=".67" stop-color="#ea8101"/><stop offset="1" stop-color="#f4fb52"/></linearGradient><radialGradient id="C" cx="53.01" cy="45.84" fx="53.01" fy="45.84" r="11.13" gradientTransform="translate(0 0)" gradientUnits="userSpaceOnUse"><stop offset="0" stop-color="#f4b852"/><stop offset=".33" stop-color="#ea8101"/><stop offset=".64" stop-color="#77390d"/><stop offset="1" stop-color="#211c1d"/></radialGradient></defs><path d="M81.66 13.29l30.31 30.02c2.58 2.55 3.85 5.13 3.81 7.73s-1.15 4.97-3.32 7.12c-2.27 2.25-4.72 3.39-7.34 3.44-2.62.04-5.22-1.22-7.8-3.77l-31-30.7c-3.52-3.49-6.92-5.96-10.19-7.41s-6.71-1.68-10.31-.68c-3.61.99-7.48 3.54-11.63 7.64-5.72 5.67-8.45 10.99-8.17 15.96s3.12 10.13 8.51 15.46l31.25 30.96c2.61 2.58 3.89 5.16 3.85 7.72-.04 2.57-1.16 4.94-3.37 7.13-2.2 2.18-4.63 3.32-7.27 3.41s-5.27-1.16-7.87-3.74L20.81 73.56c-4.93-4.88-8.49-9.5-10.68-13.86s-3.01-9.29-2.44-14.79c.51-4.71 2.02-9.27 4.54-13.69 2.51-4.42 6.11-8.94 10.78-13.57 5.56-5.51 10.87-9.73 15.93-12.67C43.99 2.04 48.88.41 53.6.07c4.73-.34 9.39.6 14 2.82s9.29 5.68 14.05 10.4z" fill="url(#A)"/><path d="M34.11 134.42L3.81 104.4C1.23 101.84-.04 99.27 0 96.67s1.15-4.97 3.32-7.12c2.27-2.25 4.72-3.39 7.34-3.44 2.62-.04 5.22 1.21 7.8 3.77l30.99 30.7c3.53 3.49 6.92 5.96 10.19 7.41s6.71 1.67 10.32.68 7.48-3.54 11.63-7.65c5.72-5.67 8.45-10.99 8.17-15.96s-3.12-10.13-8.51-15.47L64.6 73.24c-2.61-2.58-3.89-5.16-3.85-7.72.04-2.57 1.16-4.94 3.37-7.13 2.2-2.18 4.63-3.32 7.27-3.41s5.27 1.16 7.87 3.74l15.7 15.41c4.93 4.88 8.49 9.5 10.68 13.86s3.01 9.29 2.44 14.79c-.51 4.71-2.02 9.27-4.54 13.69-2.51 4.42-6.11 8.94-10.78 13.57-5.56 5.51-10.87 9.73-15.93 12.67s-9.95 4.58-14.68 4.92-9.39-.6-14-2.82-9.29-5.68-14.05-10.4z" fill="url(#B)"/><circle cx="53.01" cy="45.83" r="11.13" fill="url(#C)"/></svg>'),r4=rX(`
2<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
3    <rect width="512" height="512" rx="256" fill="black"/>
4    <g clip-path="url(#clip0_3306_46207)">
5    <path fill-rule="evenodd" clip-rule="evenodd" d="M303.998 281.91C303.998 290.558 311.018 297.568 319.677 297.568H379.781C381.224 297.568 382.394 298.736 382.394 300.178V359.734V360.2H382.401C382.648 368.632 389.57 375.392 398.074 375.392C406.577 375.392 413.499 368.632 413.746 360.2H413.753V359.734V297.568V276.691C413.753 270.926 409.073 266.252 403.3 266.252H382.394H319.677C311.018 266.252 303.998 273.262 303.998 281.91Z" fill="white"/>
6    <path fill-rule="evenodd" clip-rule="evenodd" d="M382.394 391.05C382.394 382.402 375.375 375.392 366.715 375.392H306.612C305.168 375.392 303.998 374.223 303.998 372.782V313.226V312.76H303.992C303.745 304.328 296.822 297.568 288.319 297.568C279.816 297.568 272.894 304.328 272.647 312.76H272.64V313.226V375.392V396.269C272.64 402.034 277.32 406.708 283.093 406.708H303.998H366.715C375.375 406.708 382.394 399.697 382.394 391.05Z" fill="white"/>
7    <path fill-rule="evenodd" clip-rule="evenodd" d="M102.456 401.977C108.579 408.092 118.507 408.092 124.63 401.977L167.13 359.535C168.15 358.516 169.805 358.516 170.825 359.535L212.995 401.647L213.325 401.977L213.33 401.972C219.475 407.76 229.156 407.652 235.168 401.647C241.181 395.643 241.289 385.975 235.494 379.838L235.499 379.833L235.168 379.503L191.151 335.546L176.369 320.783C172.287 316.707 165.668 316.707 161.586 320.783L146.804 335.546L102.456 379.833C96.333 385.948 96.333 395.862 102.456 401.977Z" fill="#FF7201"/>
8    <path fill-rule="evenodd" clip-rule="evenodd" d="M102.291 269.894C108.414 263.779 118.342 263.779 124.465 269.894L166.965 312.336C167.985 313.355 169.64 313.355 170.66 312.336L212.83 270.224L213.16 269.894L213.165 269.899C219.31 264.111 228.991 264.219 235.003 270.224C241.016 276.228 241.125 285.896 235.329 292.033L235.334 292.038L235.003 292.367L190.986 336.325L176.204 351.088C172.122 355.164 165.503 355.164 161.421 351.088L146.639 336.325L102.291 292.038C96.1681 285.923 96.1681 276.009 102.291 269.894Z" fill="#FF7201"/>
9    <path fill-rule="evenodd" clip-rule="evenodd" d="M273.839 120.74C273.839 129.388 280.859 136.398 289.518 136.398H327.223C328.666 136.398 329.836 137.567 329.836 139.008L329.829 230.412V230.878H329.836C330.083 239.31 337.005 246.07 345.508 246.07C354.011 246.07 360.934 239.31 361.181 230.878H361.188V230.412L361.194 136.398V115.521C361.194 109.756 356.514 105.082 350.742 105.082H329.836H289.518C280.859 105.082 273.839 112.093 273.839 120.74Z" fill="#FF7201"/>
10    <path d="M395.035 105.082C403.694 105.082 410.714 112.093 410.714 120.74C410.714 129.388 403.694 136.398 395.035 136.398C386.376 136.398 379.356 129.388 379.356 120.74C379.356 112.093 386.376 105.082 395.035 105.082Z" fill="#FF7201"/>
11    <path fill-rule="evenodd" clip-rule="evenodd" d="M239.114 120.646L239.114 120.658L239.114 120.67L239.112 199.095V199.562H239.106C238.859 207.994 231.936 214.754 223.433 214.754C214.93 214.754 208.008 207.994 207.761 199.562H207.754V199.101L207.754 199.096L207.754 199.091L207.756 120.658L207.756 120.184H207.763C208.014 111.756 214.934 105 223.435 105C231.935 105 238.856 111.756 239.107 120.184H239.114V120.646Z" fill="white"/>
12    <path fill-rule="evenodd" clip-rule="evenodd" d="M207.755 230.412C207.755 221.764 200.735 214.754 192.075 214.754H131.972C130.528 214.754 129.358 213.586 129.358 212.144V121.272V120.806H129.352C129.105 112.374 122.182 105.614 113.679 105.614C105.176 105.614 98.2539 112.374 98.0069 120.806H98.0001V121.272V214.754V235.632C98.0001 241.397 102.68 246.07 108.453 246.07H129.358H192.075C200.735 246.07 207.755 239.06 207.755 230.412Z" fill="white"/>
13    </g>
14    <defs>
15    <clipPath id="clip0_3306_46207">
16    <rect width="316" height="302" fill="white" transform="translate(98 105)"/>
17    </clipPath>
18    </defs>
19</svg>
20`);class r5{constructor(){this.resetListeners=[]}getConfig(e){let t=e?.name??document.querySelector("head title")?.text??"Unknown",r=e?.icon??document.querySelector('link[rel="icon"]')?.href??"https://fav.farm/%E2%9D%93",n=[...e?.preferredNetworks??[],{addressPrefix:"ckb",signerType:V.SignerType.BTC,network:"btc"},{addressPrefix:"ckt",signerType:V.SignerType.BTC,network:"btcTestnet"}
20,{addressPrefix:"ckb",signerType:V.SignerType.Doge,network:"doge"},{addressPrefix:"ckt",signerType:V.SignerType.Doge,network:"dogeTestnet"}];return{appName:t,appIcon:r,preferredNetworks:n}}disconnect(){this.resetListeners.forEach(e=>e()),this.resetListeners=[]}async refresh(e,t,r){this.disconnect();let{appName:n,appIcon:i,preferredNetworks:s}=this.getConfig(r),c={client:e,appName:n,appIcon:i,preferredNetworks:s,onUpdate:t,wallets:[]};await this.addRealSigners(c),await this.addDummySigners(c)}async addRealSigners(e){let{appName:t,appIcon:r,client:n,preferredNetworks:i}=e;await this.addSigners("UTXO Global Wallet",r4,rq(n,i),e),await this.addSigners("Rei Wallet",r2,q(n),e),await this.addSigners("JoyID Passkey",rG,L(n,t,r,i),e),await this.addSigners("UniSat",r3,rU(n,i),e),await this.addSigners("OKX Wallet",r0,$(n,i),e),await Promise.all(rJ(n,i).map(({wallet:t,signerInfo:r})=>this.addSigner(t.name,t.icon,r,e)));let s=H(n);s&&await this.addSigner("Nostr",r1,{name:"Nostr",signer:s},e),this.resetListeners.push(new k(n).subscribeSigners((t,r)=>this.addSigner(r?.info.name??"EVM",r?.info.icon??rY,{name:"EVM",signer:t},e)))}async addDummySigners(e){await this.addLinkSigners("MetaMask",rQ,[V.SignerType.EVM],`https://metamask.app.link/dapp/${window.location.href}`,e),await this.addLinkSigners("OKX Wallet",r0,[V.SignerType.EVM,V.SignerType.BTC],"https://www.okx.com/download?deeplink="+encodeURIComponent("okx://wallet/dapp/url?dappUrl="+encodeURIComponent(window.location.href)),e),await this.addLinkSigners("UniSat",r3,[V.SignerType.BTC],"https://unisat.io/download",e),await this.addLinkSigners("UTXO Global Wallet",r4,[V.SignerType.CKB,V.SignerType.BTC],"https://chromewebstore.google.com/detail/lnamkkidoonpeknminiadpgjiofpdmle",e)}async addLinkSigners(e,t,r,n,i){return this.addSigners(e,t,r.map(e=>({name:e,signer:new V.SignerOpenLink(i.client,e,n)})),i)}async addSigners(e,t,r,n){return Promise.all(r.map(r=>this.addSigner(e,t,r,n)))}async addSigner(e,t,r,{wallets:n,onUpdate:i}){let s=n.find(t=>t.name===e);if(s){let e=[...s.signers,r].filter(({signer:e})=>!(e instanceof V.SignerDummy));s.signers=0!==e.length?e:[r]}else n.push({name:e,icon:t,signers:[r]});i(n)}}},40033:function(e,t,r){"use strict";r.d(t,{fR:function(){return n}});var n=r(84193)},1999:function(e,t,r){"use strict";var n=r(70453),i=r(74709);let s=class extends n.oi{updated(){this.dispatchEvent(new Event("updated",{bubbles:!0,composed:!0}))}render(){return n.dy`<button><slot></slot></button>`}};s.styles=n.iv`
21    button {
22      background: none;
23      color: inherit;
24      border: none;
25      padding: 0;
26      font: inherit;
27      cursor: pointer;
28      outline: inherit;
29
30      width: 100%;
31      display: flex;
32      align-items: center;
33      padding: 0.25rem 1rem;
34      background: var(--btn-secondary);
35      border-radius: 9999px;
36      transition: background 0.15s ease-in-out;
37    }
38    button:hover {
39      background: var(--btn-secondary-hover);
40    }
41    button:disabled {
42      cursor: not-allowed;
43    }
44    button:disabled:hover {
45      background: var(--btn-secondary);
46    }
47
48    button ::slotted(img),
49    button ::slotted(svg) {
50      width: 0.8rem;
51      height: 0.8rem;
52      margin-right: 0.5rem;
53    }
54  `,s=function(e,t,r,n){var i,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(c=(s<3?i(c):s>3?i(t,r,c):i(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c}([(0,i.Mo)("ccc-button-pill")],s);let c=class extends n.oi{updated(){this.dispatchEvent(new Event("updated",{bubbles:!0,composed:!0}))}render(){return n.dy`<button><slot></slot></button>`}};c.styles=n.iv`
55    :host {
56      width: 100%;
57    }
58
59    button {
60      background: none;
61      color: inherit;
62      border: none;
63      padding: 0;
64      font: inherit;
65      cursor: pointer;
66      outline: inherit;
67
68      width: 100%;
69      display: flex;
70      align-items: center;
71      justify-content: start;
72      padding: 0.75rem 1rem;
73      background: var(--btn-primary);
74      border-radius: 0.4rem;
75      transition: background 0.15s ease-in-out;
76    }
77    button:hover {
78      background: var(--btn-primary-hover);
79    }
80    button:disabled {
81      cursor: not-allowed;
82    }
83    button:disabled:hover {
84      background: var(--btn-primary);
85    }
86
87    button ::slotted(img),
88    button ::slotted(svg) {
89      width: 2rem;
90      height: 2rem;
91      margin-right: 1rem;
92      border-radius: 0.4rem;
93    }
94  `,c=function(e,t,r,n){var i,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(c=(s<3?i(c):s>3?i(t,r,c):i(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c}([(0,i.Mo)("ccc-button")],c);var a=function(e,t,r,n){var i,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(c=(s<3?i(c):s>3?i(t,r,c):i(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c};let o=class extends n.oi{constructor(){super(...arguments),this.isCopied=!1,this.onclick=()=>{if(this.value)return this.isCopied=!0,setTimeout(()=>this.isCopied=!1,3e3),window.navigator.clipboard.writeText(this.value)}}updated(){this.dispatchEvent(new Event("updated",{bubbles:!0,composed:!0}))}render(){return n.dy`
95      <slot></slot>
96      ${this.isCopied?n.dy`
97            <svg class="check" viewBox="0 0 17.837 17.837" alt="copied">
98              <path
99                d="M16.145,2.571c-0.272-0.273-0.718-0.273-0.99,0L6.92,10.804l-4.241-4.27c-0.272-0.274-0.715-0.274-0.989,0L0.204,8.019c-0.272,0.271-0.272,0.717,0,0.99l6.217,6.258c0.272,0.271,0.715,0.271,0.99,0L17.63,5.047c0.276-0.273,0.276-0.72,0-0.994L16.145,2.571z"
100              />
101            </svg>
102          `:n.dy`
103            <svg class="copy" viewBox="0 0 24 24" alt="copy">
104              <path
105                d="M19 13.5657V6.10526C19 5.49737 18.5091 5 17.9091 5H10.5454C9.94543 5 9.45452 5.49737 9.45452 6.10526V13.5657C9.45452 14.1736 9.94543 14.671 10.5454 14.671H17.9091C18.5091 14.671 19 14.1736 19 13.5657Z"
106              />
107              <path
108                d="M14.5455 15.8684H9.18183C8.58183 15.8684 8.09092 15.3711 8.09092 14.7632V9.329H6.09091C5.49091 9.329 5 9.82637 5 10.4343V17.8947C5 18.5026 5.49091 19 6.09091 19H13.4546C14.0546 19 14.5455 18.5026 14.5455 17.8947V15.8684Z"
109              />
110            </svg>
111          `}
112    `}};o.styles=n.iv`
113    :host {
114      display: flex;
115      align-items: center;
116      cursor: pointer;
117    }
118    .copy {
119      width: 1em;
120      height: 1em;
121      fill: currentColor;
122    }
123    .check {
124      width: 0.7em;
125      height: 0.7em;
126      margin-left: 0.15em;
127      fill: currentColor;
128    }
129  `,a([(0,i.Cb)()],o.prototype,"value",void 0),a([(0,i.SB)()],o.prototype,"isCopied",void 0),o=a([(0,i.Mo)("ccc-copy-button")],o);let d=n.dy`
130  <svg
131    width="12"
132    height="12"
133    viewBox="0 0 12 12"
134    xmlns="http://www.w3.org/2000/svg"
135    class="primary-icon"
136  >
137    <path
138      d="M10.8989 1.0512C10.5085 0.660741 9.87543 0.660703 9.48493 1.05111L5.94897 4.58624L2.41397 1.05124C2.0235 0.660772 1.39043 0.660773 0.999968 1.05124C0.609503 1.4417 0.609503 2.07477 0.999969 2.46524L4.53497 6.00024L0.999968 9.53524C0.609503 9.9257 0.609503 10.5588 0.999968 10.9492C1.39043 11.3397 2.0235 11.3397 2.41397 10.9492L5.94897 7.41424L9.48493 10.9494C9.87543 11.3398 10.5085 11.3397 10.8989 10.9493C11.2894 10.5588 11.2894 9.92568 10.8989 9.5352L7.36397 6.00024L10.8989 2.46528C11.2894 2.07479 11.2894 1.44168 10.8989 1.0512Z"
139      fill="currentColor"
140    />
141  </svg>
142`,f=n.dy`
143  <svg
144    width="8"
145    height="14"
146    viewBox="0 0 8 14"
147    xmlns="http://www.w3.org/2000/svg"
148    class="primary-icon"
149  >
150    <path
151      d="M6.74554 13.5C6.54646 13.5 6.35454 13.4177 6.21275 13.2695L0.720203 7.55253C0.426599 7.24573 0.426599 6.75035 0.720203 6.44355L6.21275 0.725059C6.50779 0.422747 6.98185 0.42574 7.27402 0.729549C7.5662 1.03485 7.56763 1.52723 7.27832 1.83404L2.31999 6.99729L7.27975 12.162C7.49459 12.3865 7.55904 12.7233 7.44303 13.0166C7.32415 13.3084 7.0506 13.5 6.74554 13.5Z"
152      fill="currentColor"
153      stroke="currentColor"
154    />
155  </svg>
156`;var u=r(27433),l=function(e,t,r,n){var i,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(c=(s<3?i(c):s>3?i(t,r,c):i(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c};let h=class extends n.oi{render(){return n.dy`
157      <div
158        class="header text-bold fs-lg ${this.header?"header-divider":""}"
159      >
160        <div
161          class="back ${null!=this.canBack?"active":""}"
162          @click=${()=>{this.dispatchEvent(new Event("back"))}}
163        >
164          ${f}
165        </div>
166        ${this.header}
167        <span
168          class="close active"
169          @click=${()=>{this.dispatchEvent(new u.M)}}
170        >
171          ${d}
172        </span>
173      </div>
174      <div class="body">
175        <slot></slot>
176      </div>
177    `}};h.styles=n.iv`
178    .primary-icon {
179      color: var(--icon-primary);
180    }
181    .text-bold {
182      font-weight: bold;
183    }
184
185    .fs-lg {
186      font-size: 1.2rem;
187    }
188
189    .main {
190      position: fixed;
191      left: 50%;
192      top: 50%;
193      transform: translate(-50%, -50%);
194      background: var(--background);
195      border-radius: 1.2rem;
196      overflow: hidden;
197      transition: height 0.15s ease-out;
198    }
199
200    .header {
201      display: flex;
202      justify-content: space-between;
203      align-items: center;
204      padding: 1rem 1.3rem 0.5rem;
205    }
206
207    .header-divider {
208      padding-bottom: 1rem;
209      border-bottom: 1px solid var(--divider);
210    }
211    .close,
212    .back {
213      padding: 0.2rem 0.4rem;
214      cursor: pointer;
215    }
216    .close svg,
217    .back svg {
218      width: 0.8rem;
219      height: 0.8rem;
220      opacity: 0;
221      transition: opacity 0.15s ease-in-out;
222    }
223
224    .close.active svg,
225    .back.active svg {
226      opacity: 1;
227    }
228
229    .body {
230      padding: 0.3rem 1.3rem 1rem;
231      min-width: 20rem;
232      display: flex;
233      flex-direction: column;
234      align-items: center;
235      max-height: 80vh;
236      overflow-y: auto;
237    }
238  `,l([(0,i.Cb)()],h.prototype,"canBack",void 0),l([(0,i.Cb)()],h.prototype,"header",void 0),l([(0,i.Mo)("ccc-dialog")],h)},27433:function(e,t,r){"use strict";r.d(t,{$s:function(){return n},Iu:function(){return i},M:function(){return s}});class n extends Event{constructor(e){super("select-client"),this.client=e}}class i extends Event{constructor(e,t){super("connected"),this.walletName=e,this.signerName=t}}class s extends Event{constructor(e){super("close",{bubbles:!0,composed:!0}),this.callback=e}}},87136:function(e,t,r){"use strict";var n=r(40033),i=r(70453),s=r(74709),c=r(73926),a=r(7186),o=r(19471);/**
239 * @license
240 * Copyright 2017 Google LLC
241 * SPDX-License-Identifier: BSD-3-Clause
242 */let d=(e,t,r)=>{let n=new Map;for(let i=t;i<=r;i++)n.set(e[i],i);return n},f=(0,a.XM)(class extends a.Xe{constructor(e){if(super(e),e.type!==a.pX.CHILD)throw Error("repeat() can only be used in text expressions")}dt(e,t,r){let n;void 0===r?r=t:void 0!==t&&(n=t);let i=[],s=[],c=0;for(let t of e)i[c]=n?n(t,c):c,s[c]=r(t,c),c++;return{values:s,keys:i}}render(e,t,r){return this.dt(e,t,r).values}update(e,[t,r,n]){let i=(0,o.i9)(e),{values:s,keys:a}=this.dt(t,r,n);if(!Array.isArray(i))return this.ut=a,s;let f=this.ut??=[],u=[],l,h,p=0,b=i.length-1,y=0,g=s.length-1;for(;p<=b&&y<=g;)if(null===i[p])p++;else if(null===i[b])b--;else if(f[p]===a[y])u[y]=(0,o.fk)(i[p],s[y]),p++,y++;else if(f[b]===a[g])u[g]=(0,o.fk)(i[b],s[g]),b--,g--;else if(f[p]===a[g])u[g]=(0,o.fk)(i[p],s[g]),(0,o._Y)(e,u[g+1],i[p]),p++,g--;else if(f[b]===a[y])u[y]=(0,o.fk)(i[b],s[y]),(0,o._Y)(e,i[p],i[b]),b--,y++;else if(void 0===l&&(l=d(a,y,g),h=d(f,p,b)),l.has(f[p])){if(l.has(f[b])){let t=h.get(a[y]),r=void 0!==t?i[t]:null;if(null===r){let t=(0,o._Y)(e,i[p]);(0,o.fk)(t,s[y]),u[y]=t}else u[y]=(0,o.fk)(r,s[y]),(0,o._Y)(e,i[p],r),i[t]=null;y++}else(0,o.ws)(i[b]),b--}else(0,o.ws)(i[p]),p++;for(;y<=g;){let t=(0,o._Y)(e,u[g+1]);(0,o.fk)(t,s[y]),u[y++]=t}for(;p<=b;){let e=i[p++];null!==e&&(0,o.ws)(e)}return this.ut=a,(0,o.hl)(e,u),c.Jb}});function u(e){return`data:image/svg+xml,${encodeURIComponent(e)}`}let l=u('<svg xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns="http://www.w3.org/2000/svg" xmlns:cc="http://creativecommons.org/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" height="64" width="64" version="1.1"><link xmlns="" type="text/css" rel="stylesheet" id="dark-mode-custom-link"/><link xmlns="" type="text/css" rel="stylesheet" id="dark-mode-general-link"/><style xmlns="" lang="en" type="text/css" id="dark-mode-custom-style"/><style xmlns="" lang="en" type="text/css" id="dark-mode-native-style"/><style xmlns="" lang="en" type="text/css" id="dark-mode-native-sheet"/><script xmlns=""/><g transform="translate(0.00630876,-0.00301984)"><path fill="#f7931a" d="m63.033,39.744c-4.274,17.143-21.637,27.576-38.782,23.301-17.138-4.274-27.571-21.638-23.295-38.78,4.272-17.145,21.635-27.579,38.775-23.305,17.144,4.274,27.576,21.64,23.302,38.784z"/><path fill="#FFF" d="m46.103,27.444c0.637-4.258-2.605-6.547-7.038-8.074l1.438-5.768-3.511-0.875-1.4,5.616c-0.923-0.23-1.871-0.447-2.813-0.662l1.41-5.653-3.509-0.875-1.439,5.766c-0.764-0.174-1.514-0.346-2.242-0.527l0.004-0.018-4.842-1.209-0.934,3.75s2.605,0.597,2.55,0.634c1.422,0.355,1.679,1.296,1.636,2.042l-1.638,6.571c0.098,0.025,0.225,0.061,0.365,0.117-0.117-0.029-0.242-0.061-0.371-0.092l-2.296,9.205c-0.174,0.432-0.615,1.08-1.609,0.834,0.035,0.051-2.552-0.637-2.552-0.637l-1.743,4.019,4.569,1.139c0.85,0.213,1.683,0.436,2.503,0.646l-1.453,5.834,3.507,0.875,1.439-5.772c0.958,0.26,1.888,0.5,2.798,0.726l-1.434,5.745,3.511,0.875,1.453-5.823c5.987,1.133,10.489,0.676,12.384-4.739,1.527-4.36-0.076-6.875-3.226-8.515,2.294-0.529,4.022-2.038,4.483-5.155zm-8.022,11.249c-1.085,4.36-8.426,2.003-10.806,1.412l1.928-7.729c2.38,0.594,10.012,1.77,8.878,6.317zm1.086-11.312c-0.99,3.966-7.1,1.951-9.082,1.457l1.748-7.01c1.982,0.494,8.365,1.416,7.334,5.553z"/></g><script xmlns=""/></svg>'),h=u('<svg width="668" height="666.66669" xmlns="http://www.w3.org/2000/svg" xmlns:svg="http://www.w3.org/2000/svg"><polygon points="170.265,206.318 223.416,206.318 223.416,93.897 264.161,93.897 170.265,0 " transform="matrix(1.8256046,0,0,1.8256046,-166.4037,144.47964)" /><polygon points="324.79,112.422 284.046,112.422 377.941,206.318 377.941,0 324.79,0 " transform="matrix(1.8256046,0,0,1.8256046,-166.4037,144.47964)" /></svg>'),p=u('<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1875 1875"><title>Dogecoin (DOGE)</title><g id="Layer_2" data-name="Layer 2"><g id="Layer_1-2" data-name="Layer 1"><g id="Layer_1-3" data-name="Layer_1"><circle cx="937.5" cy="937.5" r="937.5" style="fill:#988430"/><circle cx="937.5" cy="937.5" r="907.47" style="fill:#7a6a2a"/><circle cx="937.5" cy="937.5" r="888.35" style="fill:#ba9f33"/><path d="M409.89,837.38c-5.31-4.85-10.92-9.71-16.08-14.56s-10.46-9.71-15.77-14.56l-15.78-15c-2.58-2.58-5.31-4.85-7.89-7.44-2.58-2.27-5.61-4.85-8.19-7.13-20.94-19.87-42-39.74-62.65-59.62,21.39,19.57,42.33,39,63.72,58.86l7.43,7.44c2.58,2.57,5.31,4.85,7.89,7.43l15.77,14.56c5.31,4.85,10.47,9.71,15.78,15s10.47,10.16,15.78,15Zm-277.91-3s76.15,7.88,113.32,13.19c34.43,4.86,142.14,21.39,142.14,21.39Zm0,0c21.39,1.82,42.78,4.09,64.17,6.37,10.92,1.06,21.39,2.27,31.86,3.33l16.07,1.83c5.31.75,10.47,1.51,15.78,2.27l63.72,10.16,31.85,5.31c10.47,1.82,20.94,3.8,31.86,5.62-10.47-1.06-21.39-2.58-31.86-4.1l-31.85-4.55-63.72-9.4c-5.31-.76-10.47-1.83-15.78-2.58L228,846.79c-10.47-1.06-21.39-2.58-31.86-3.8-21.39-2.57-42.78-5.31-64.17-8.64ZM379.86,888.8s-81.31,20.64-108.77,28.53c-27,7.43-108.77,32.31-108.77,32.31l217.53-60.83Z" style="fill:#cfb66c;fill-rule:evenodd"/>
242<path d="M379.85,888.8c-18.05,5.31-36,10.47-54.31,15.33l-54.31,14.56c-18.05,5.31-36,10.47-54,15.78l-27,7.43c-8.95,2.58-18.05,4.85-27.3,7.44,8.94-3,18.05-6.07,27-8.65l27-8.64c18.05-5.62,36-10.93,54-16.54,18.35-4.55,36.41-9.41,54.76-13.81,17.44-4.4,35.8-8.79,54.16-12.89h0ZM173.7,999.7c8.94-3.34,112.1-51.42,136.07-62.65,12-5.62,46.88-18,46.88-18L173.7,999.7Z" style="fill:#cfb66c;fill-rule:evenodd"/><path d="M173.7,999.7c7.88-3,15.32-6.67,22.9-10.16l22.45-10.47,45.06-21.69c15-7.13,29.58-15,45.05-21.7,7.89-3.33,15.78-6.06,23.66-8.64l12-3.79c4.09-1.06,7.89-2.28,12-3.34-15,7.13-30.79,13.2-45.81,20.17-15,7.44-30.34,13.51-45.82,20.18l-45.81,20.17C204,986.66,189,993.33,173.69,999.7h0Zm10,42s93.44-54.76,125.6-72.36c16.84-9.4,71.3-36.41,71.3-36.41Z" style="fill:#cfb66c;fill-rule:evenodd"/><path d="M183.71,1041.72c15.77-9.71,31.85-19.57,47.93-29.58l24-14.57c8.19-4.85,16.08-9.4,24.43-14.25,8.19-4.86,16.08-9.71,24.42-14.26a87.54,87.54,0,0,1,12.44-6.37l12.74-6.37c16.84-8.19,33.68-16.54,51.43-23.67-16.08,10.17-32.62,18.82-49.15,27.76-8.19,4.55-16.54,8.65-24.73,13.2s-16.08,9.41-24.43,13.81c-8.19,4.85-16.08,9.4-24.42,13.8l-24.73,13.5-49.91,27h0Zm196.14-96.79s-58.1,44.6-76.91,58.86-74.18,54.31-74.18,54.31L379.85,944.93Z" style="fill:#cfb66c;fill-rule:evenodd"/><polygon points="713.29 1304.61 683.56 1248.33 700.85 1177.94 824.18 1130.31 771.69 1022.61 797.63 913.84 846.33 816.44 996.82 792.78 1107.4 687.35 1346.18 705.4 1393.05 960.71 1302.79 1282.16 1251.37 1448.58 1042.93 1456.47 946.15 1389.42 832.83 1342.08 713.29 1304.61" style="fill:#e2cc85;fill-rule:evenodd"/><path d="M1078.89,1302.79s-28.83,13.2-78,10.16C986.66,1293.84,887,1284.89,887,1284.89s-12.44-3.79-34.44,5.31c-22.14,9-43.08,7.89-62.65,12.74s-39-20.63-54-25.94c-15-5.61-34.89-19.11-34.89-19.11l-42-4.1-84.34-35.65L440.69,1084.65l-36.41,57-11.23,70.54,40.51,83.59,109.07,99.36,212.68,54L881.37,1412l157.92-66.75,39.6-42.47Z" style="fill:#f1d789;fill-rule:evenodd"/><polygon points="323.27 831.01 350.27 749.25 382.44 696.45 486.04 687.8 454.94 778.52 368.33 932.65 404.28 1070.24 340.57 1102.09 320.99 1072.06 305.22 1003.19 304.16 925.82 323.27 831.01" style="fill:#f4ecb4;fill-rule:evenodd"/><path d="M439.47,1297.18l-19.87-27.76s-5.31-13.2-2.27-24.73c3-11.68,2.57-12.44,1.06-16.84s-14.26-19.57-13.5-32.62c.75-13.2-1.06-17.6,8.64-28.06,10.16-10.16,7.13-27.76,7.13-27.76l13.2,8.19,3-4.55s4.85,3.79,4.85,9.71c1.06-8.19-3.34-46.12,6.67-54.76s27.76,40.5,27.76,40.5l-10.92-71.3-28.07-73.11-49.91-66.75-3-73.58v-6.37s-22.91,35.2-29.28,63c-4.55,19.11,6.37,42.32,4.1,69.78-1.83,27.31-4.1,25.18,2.57,36s22.91,33.07,16.54,49.15c-5.61,13.81-24.73,4.1-24.73,4.1s-3.79,11.22-8.95,15.32c-1.82-6.67-3.79-10.92-7.43-15-.31,2.58-1.06,6.07-1.06,6.07s-3.34-10.47-6.68-23.67c-4.54-17.59-9.4-40.8-13.8-53.24-1.82,7.13-6.37,28.82-6.37,28.82l2.58,33.38,12.44,45.81,12,30,11.68,36.71L358,1198.28l8.19,18.81,7.13,42.33,34.43,36.4,18.36,8.2,13.34-6.83h0Z" style="fill:#f3e19d;fill-rule:evenodd"/><path d="M341.32,764.26s-24.73,42-31.85,84.34-13.5,87.08-9,144.72c4.55,58.11,13.2,93.75,20.18,119.24,12,42.33,43.08,101.19,43.08,101.19l1.06-2.28a159.88,159.88,0,0,1-12.44-31.1c-4.1-16.08-5.62-35.19-9.41-43.84-3.34-8.64-8.95-16.08-11.68-26.7-2.58-10.16-3-26.24-10.92-38.22-3.34-4.86-7.44-17.6-8.65-30.34-1.52-19.12.76-40.51-1.06-58.1-3.34-29.28-5.61-49.15-2.58-64.48s18.82-58.85,28.53-93.44c6.37-22.15,2.57-40.81,14.25-60.08,11.68-19.11,18.82-35.95,21.39-47.63,3-10.62-30.94,46.72-30.94,46.72h0Z" style="fill:#f2e8b0;fill-rule:evenodd"/><path d="M458.59,747.42s-12.74,3.8-18.81,10.47c-6.07,6.37-8.65,11.68-16.84,22.45s-8.65,19.57-15.33,33.07c-6.67,13.2-21.39,33.07-23.21,40.2s-4.85,40.5-8.64,56.28c-3.34,15.78,3.79,35.2,3.79,35.2l8.64-1.83s0,11.23,8.65,18.82c8.64,7.43,10.16-25.19,10.16-25.19l32.31-109.07L488,794.75l5.31-26.7-34.74-20.63h0Z" style="fill:#f5eec0;fill-rule:evenodd"/><path d="M482.25,796.88s-22.91,1.51-34.13,9.71c-4.55,3.33-6.37,6.06-11.22,10.
24216-8.95,7.43-18.06,14.26-22.45,24-4.86,9.7-10.17,24.42-13.81,52.18-1.52,11.68-1.52,22.45-2.58,31.86-1.52,12.74-3.79,22.9-2.58,30,1.52,14.56,16.54,22.15,18,38.68l31.1-15.77,29.28-115.45,62.2-39-35.2-39.44-18.65,13h0Z" style="fill:#e6db9d;fill-rule:evenodd"/><path d="M318.18,1574.29c.13-1.14.26-2.28.39-3.45,4.54-39,5.31-68.56,8.64-87.07,4.85-26.24,8.19-36,7.43-45.82-1.06-15.77-2.27-27.3-.75-39.44,2.27-16.08,18.05-35.19,17.6-48.39-.31-10.47-5.62-17.29-10.17-23.66s-8.19-11.68-8.19-11.68,31.1-21.39,30.8-107.56a8.18,8.18,0,0,1,1.82.76l15.32,43.53,10.47,12.74,40.2,74.94,51.73,50.22,76.45,51.42L607.86,1493l4.85,139.11-62.65,81.31L539.8,1732a891.11,891.11,0,0,1-221.63-157.72Z" style="fill:#e5cb7a;fill-rule:evenodd"/><path d="M509.56,1707.37s1.06-17.29,15.32-28.52c2.28,3.79,3.79,7.44,3.34,10.16,2.58-4.54,20.63-33.67,61.44-41.26,40.81-7.43,50.67-37.16,50.67-37.16l86.61-78.73L826,1440.69l120.45-42.33,56.29-13.81s1.06,4.1-1.06,13.2c10.46-.75,33.67-6.06,57.79-14.56,9.71-3.79,18.82-5.31,23.67-.3,7.13,6.67,8.19,22.45,8.64,31.85,11.68-2.58,25.18-13.8,36-12.74,17.3,1.82,32.62,22.15,50.22,22.15,23.21,0,33.67-14.26,49.91-25.49,9.71-6.67,23.66-15,31.55-20.63,18.81-13.81,217.84-74.64,217.84-74.64l69.78,4.55,11.23,74.94-6,195.9c-.74.71-1.48,1.45-2.23,2.16l-317.28,165.71L793,1814.07a882.11,882.11,0,0,1-281.16-96.71l-2.25-10h0Z" style="fill:#d8c173;fill-rule:evenodd"/><path d="M344.85,1599.21c6.25-13.07,11.87-24,12.86-27.91.78,7.88,2.21,25.17,5.09,43.55q-9.07-7.71-17.95-15.65Z" style="fill:#f1d789;fill-rule:evenodd"/><path d="M666.12,1783.57,723,1767.75l4.85,1.52s2.58,1.52,2.58,6.67c7.13-4.09,13.2-3.34,17.6-6.06,2.27,4.85,4.54,20.93,14.56,22.9,10.46,2.28,21.69-4.55,33.07-13.19,11.22-8.95,24-20.18,33.67-24.73a180.8,180.8,0,0,1,9.41,20.17c12.74-10.16,34.89-51.42,66.44-50.67A119.72,119.72,0,0,1,949,1671.42c29.28-19.87,47.63-21.39,70.54-19.57a120.62,120.62,0,0,1,33.07-29.58c3.79,1.52,14.26,7.89,27.31,1.82,13.2-6.06,28.06-29.58,47.63-32.61a46,46,0,0,1,30.34,6.37s57-56.59,96.33-75.4c-1.52-4.55-4.55-21.69,41.56-59.62,2.58,2.28.76,8.65,2.58,9,.75,0,12-4.85,26.24-15.78,17.6-13.19,38.68-27,51.42-30.79,24-7.13,49.46,7.43,49.46,7.43a22.8,22.8,0,0,1,7.13-3.34c6.06-1.06,10.46-1.82,13.8-3-.3,7.89,4.1,21.39,0,33.07a73.75,73.75,0,0,0,15,6.37c-2.57,5.61-8.19,19.87-17.59,26.7,7.88,3.79,8.94,8.19,20.17,12-4.55,6.37-12,17.3-15.32,24-3.34,7.13-15.33,36.71-20.64,47.93-5.61,11.23-13.19,31.86-16.84,36s-16.84,21.69-27,30.33c9-3.34,45.82-14.56,61.44-18.81-4.65,6.82-28.22,41.79-50.88,75.42a890.14,890.14,0,0,1-728.7,84.36Z" style="fill:#e0cd81;fill-rule:evenodd"/><path d="M486,792.78s-13.19,0-15.77,1.82,13.2,5.62,18.05,7.44,15.32,10.16,18.05,16.84c2.58,6.37,94.81,43.53,94.81,43.53l65.23-3.34L688.86,828l-42.78-37.47,30-88.44-39.74,6.37-95.57,57-47.94,18.36L486,792.78h0Z" style="fill:#dfc57c;fill-rule:evenodd"/><path d="M629.25,822.06a10.23,10.23,0,0,0,9,4.85c13.5,0,25.93,3.34,31.09,10.16,8.65,10.93,32.62,45.82,32.62,45.82l57.34,20.63L763,836l-62.65-43.53-71.3,26.24v3.34h.16Z" style="fill:#e5cc7c;fill-rule:evenodd"/><path d="M618,847.09s10.46.76,23.66-4.1,34.89-15.32,44.3-11.22c13.19,5.61,10.46,23.21,24.73,39,8.64,9.71,24.42,9.41,33.37,19.88s39.74,5.61,39.74,5.61l11.68,63-46.87,60.08-15.33,74.63H669.9L612,1071l-28.52-69,14.26-69.78L618,847.09h0Z" style="fill:#d2c281;fill-rule:evenodd"/><path d="M740.6,850.12a17.16,17.16,0,0,0,4.85.76c-1.82,1.52-5.62,4.85-4.1,13.5s6.37,19.57,2.28,26.24a32.8,32.8,0,0,1,7.13,12.44c2.58,7.44,3.34,14.26,20.17,15.33a35.44,35.44,0,0,0-6.67,5.31s11.68,10.16,17.6,19.56C787.92,943,804,938,804,938l3.34,2.28,7.13-3s-6.67-2.58-1.82-18.81c4.55-14.26,8.65-13.5,9-14.56s3.34-16.08,3.34-22.15c2.27-7.88,4.09-31.85,4.09-31.85l-4.85-52.94-27.3-16.54L774.73,759l-20.94,39.44L740,812.19l-1.06,34.13,1.66,3.8h0Z" style="fill:#e2c270;fill-rule:evenodd"/><path d="M806.28,805.83s4.85,13.8,6.68,24.42a23.49,23.49,0,0,0,1.06-6.37s3.79,20.94,4.54,29.59c1.52-.31,3-.76,3.34.75s3.8,18.36,3,27.76a75.65,75.65,0,0,1,25.48-25.48c6.07-3.8,13.2-7.89,20.64-8.2,11.68-.3,20.17,7.44,34.13,7.44,33.67,0,64.17-24.73,86.62-32.31,16.53-5.62,30.79-9.71,40.8-18.82,4.86-4.09,13.51-13.19,21.39-26.7,10.47-18,21.39-33.67,32.32-35.64a67.78,67.78,0,0,1-15,1.06s3.34-3.34,9-7.89,12.44-10.16,22.14-10.16c17.3,0,25.94,2.57,35.65,2.57,9.71-.3,15.32-2.57,15.32-2.57s10.17,7.13,33.07,7.13c22.91.3,38.23,2.27,50.22,3.34s52.18-3.34,63.71-3a55.82,55.82,0,0,1,21.7,5.31l-37.17-108L1151.4,513.36l-79.49,56.28L949.63,691.91,831.31,735.75l-24.73,27.76v42.32Z" style="fill:#ccb360;fill-rule:evenodd"/>
242<path d="M1071.76,743.93s3.34-3.33,8.94-7.88,12.45-10.17,22.15-10.17c17.29,0,25.94,2.58,35.65,2.58,9.71-.3,15.32-2.58,15.32-2.58S1164,733,1186.89,733c22.91.3,38.23,2.27,50.22,3.33s52.18-3.33,63.71-3a55.53,55.53,0,0,1,21.69,5.31l-16.84-48.7-19.56-37.16-55.83-61.14s-67-39.44-67.51-39.74c-.3-.3-23.21-6.37-23.21-6.37l-60.68,36.71-55.06,142.45-1.06,30,35.64,16.84c8.95-15,18.82-27,28.07-28.52-8.35.91-14.72.91-14.72.91h0Z" style="fill:#d5b457;fill-rule:evenodd"/><path d="M1071,754.1c-5.31.3-9.7-.76-10.92-4.55-4.55-12.74-8.19-14.56-12-14.56s-8.95,8.19-12,8.94-6.67-9.4-6.67-9.4l-3.34-1.52s-19.57,12.74-33.37,27.76-36.41,40.51-46.57,45.05-45.06,6.07-57,8.65-25.18,11.23-27,13.2,5.32,4.09,6.38,6.06c1.06,1.82-11.69,1.06-12.75,3-.75,1.52,3,10.16,4.86,14.56a24.73,24.73,0,0,1,10.46-2.58c11.68-.3,20.18,7.44,34.13,7.44,33.68,0,64.17-24.73,86.62-32.32,16.54-5.61,30.8-9.71,40.81-18.81,4.85-4.09,13.5-13.2,21.39-26.7,5.76-9.25,11.38-17.9,17-24.27h0Z" style="fill:#d2b257;fill-rule:evenodd"/><path d="M588,1504.86s-3-11.23-30.8-40.2c-7.89-8.19-12.74-15-18.05-19.87-13.2-12.45-20.94-15.78-30.34-22.91-20.63-15.32-43.08-15.32-60.37-34.13S411,1333,397,1296.27c-13.8-36.71-17.6-48.39-17.6-49.45s3.8-8.19,8.65-7.13,4.85,10.46,6.07,12.74a75.27,75.27,0,0,0,8.19,10.46c7.13,8.2,17.29,18,22.45,32.62-1.06-12.44-5.31-26.24-5.31-26.24s26.7,16.84,49.45,34.43c22.91,17.6,32.31,23.67,39,34.89s22.45,40.81,30,49.46,111,41.26,111,41.26L698.11,1466l24.43,53.55-19.12,30-36.71,7.89-59.62-26.7L588,1504.85h0Z" style="fill:#d2b159;fill-rule:evenodd"/><path d="M455.55,1320.39s12.44,19.87,42.78,38.68c27.31,16.54,70.54,31.56,109.08,40.51,22.14,5.31,44.29,9.4,64.16,9.71,53.55.75,90.41-14.56,136.08-19.57,24.73-2.58,55.07-4.55,86.62-12,40.5-9.71,64.47-20.64,97.09-36,23.66-10.92,45.36-19.11,62.95-29.58,24.73-14.56,42.78-30.79,63.72-35.64-2.58,7.13-5.31,19.87-25.94,33.07,10.92-.31,25.94-1.06,25.94-1.06s-14.56,8.64-40.2,28.06c-15.78,12-36.71,32.31-58.1,45.81-13.81,8.65-28.83,15-38.69,20.18-24,13.2-33.68,19.87-49.45,36,5.61-.3,6.07,0,6.07,0s-19.88,2.58-34.13,10.16c-3,0-8.2-1.06-17.3,1.52-7.13,2.27-16.54,7.44-26.24,10.16-13.81,4.1-18.35,2.28-18.35,2.28l2.27,4.55s-18-.31-24,.3c1.06.3.76.76.76.76a9.21,9.21,0,0,0-3,1.06,31.3,31.3,0,0,1-9.4,4.09c-1.82.3-3.34.3-5.62.76.76,1.82,6.68,12,9.41,18-2.27,1.52-36.41,27.31-36.41,27.31a26,26,0,0,1,2.58,5.31c1.06,3.33,1.52,8.19,2.58,10.46,2.57,4.55,4.09,5.31,4.09,5.31s-4.09.76-11.23,2.58c-6.06,1.52-13.5,4.09-24,5.61a95.13,95.13,0,0,1-9.71.76c1.52,3.34,8.19,16.08-4.1,30.79s-16.08,16.85-19.87,26.25a40.69,40.69,0,0,0-6.07-3.8c-4.09-1.82-9.71-4.54-11.68-8.19a97.33,97.33,0,0,1-4.55,14.26c-3.79,10.16-9.4,20.18-10.46,27.76-4.1-4.55-11.68-13.5-22.15-11.68s-18.81,16.08-20.63,20.18c0-2.58-1.82-4.55-2.27-1.52-.31,3.34-6.07,38.22-38.23,66.44-.3-7.13-.3-22.91-1.06-28.06-3,3-6.67,7.43-28.52,16.84-21.39,9.4-18,18.81-18,18.81s-1.82-15,9.71-30.8c11.68-15.77,18.81-23.21,18.81-24.42a6.75,6.75,0,0,0-1.52-3.34c-1.52-1.52-4.55-3.34-4.55-4.55,1.82-.75,19.87-9.4,18.81-27.31-1.06-16.07-7.88-24.42-12.74-30.33-.75-.76,7.14-6.37,6.07-8.19-.76-1.06-10.46-8.2-11.68-12a34.86,34.86,0,0,1,1.52-6.67c1.06-3.34,1.82-5.62,1.52-7.89-.76-3.79-4.86-14.26-6.07-15.32,1.06.3,8.64,0,8.64,0s-6.06-9.71-7.13-14.26-3.34-16.54-4.55-18.81c2.58.3,8.95.75,8.95,0,.31-2.28-5.61-6.07-3-9,1.82.3,5.31,1.82,8.64,6.07-1.82-4.86-4.85-14.26-11.23-18.05,3-1.06,13.2-3.8,22.15,1.51s12,12.74,12,12.74,5.31,4.1,13.51,10.17c9.4,7.43,21.38,18,40.5,25.48,4.1,2.28,14.56,2.28,22.15.76a34.06,34.06,0,0,0,9.4-3.79,17.43,17.43,0,0,1,3.34-1.52,72.71,72.71,0,0,0-5.61-9.41c2.58,0,5.61.31,5.61.31s1.82-4.1-6.37-12c1.82-1.82,4.1-3,4.1-6.07-2.58-.3-7.13-4.09-8.19-5.61,1.51-1.06,3.79-4.55,6.37-5.61-2.28-1.82-7.89-9.41-10.47-10.16a47.69,47.69,0,0,0,7.13-3.34s-12.74-3.34-16.84-6.07c-4.1-3-10.16-8.19-13.8-9.71-3.8-1.52-10.47-2.27-13.2-5.31,2.57.76,6.67,0,9.71,0,2.27,0,3.34.3,4.09.3-.3-1.06-.3-3.34,5.62-4.09a27.71,27.71,0,0,0,8.19-2.58s-5.62-.3-12-6.37-11.68-10.92-15.32-11.68c-3.79-.76-10.92,2.58-15.32,2.27-6.07-.75-8.65-3.79-8.65-3.79s-20.17,1.82-64.92-25.48c-38.69-23.67-55.53-44.6-55.53-44.6a66.52,66.52,0,0,1-10.46-4.86c-14.56-7.58-34.74-23.36-34.13-44h0Z" style="fill:#c2a44d;fill-rule:evenodd"/>
242<path d="M1013.65,409.89a19.69,19.69,0,0,1,9,6.07c7.13,8.19,11.68,23.66-4.55,40.2,6.37,2.27,9,3,14.56,2.27-5.61,6.68-18.35,20.94-19.11,33.38-.76,10.16,5.61,13.2,5.61,13.2s-9.71,11.22-10.16,30a121.56,121.56,0,0,1,15-14.26c11.23-8.95,26.7-19.11,37.17-25.48a21.39,21.39,0,0,0,1.06,7.88s19.56-16.08,36-8.94c7.43,3.34,4.09,13.8,4.09,13.8s10.17-3.79,17.3,3.34S1136.83,536.87,1142,544c2.27,3.34,8.19,9.71,14.25,19.57a247.53,247.53,0,0,1,20.64,43.53c.3-7.89,2.27-20.17,24.73-12.44,22.45,7.89,47.93,24.43,69.32,57S1297.63,721,1308.4,735c10.92,13.5,22.15,35.95,22.91,45.36s-3.34,39.74,19.11,121.81c6.37-25.48,16.08-82.07,16.08-82.07l5.31-49.91,6.07-154.43L1216.62,481.79l-126.06-91.48-82.07,7.89,5.15,11.68h0Z" style="fill:#caa13e;fill-rule:evenodd"/><path d="M1313.26,639.71s-2.28-15-40.2-40.5c-37.93-25.18-67.51-25.18-94.81-46.57-20.94-16.84-42.78-55.53-57-68.27-13.81-12.59-16.08-49-16.08-49l46.57-39L1221,296.26l58.55-64.47,28.06,39,39,45.81,21.69,91.93,7.89,134.56-63,96.63Z" style="fill:#b59544;fill-rule:evenodd"/><path d="M1360.14,801a171,171,0,0,0-7.44-60.37c-10-31.1-31.85-86.32-42-107-4.1-22.91-1.06-24.73,3.34-27.31s20.94-12,30-45.05,37.17-34.13,37.17-34.13l17.29-12.74,26.25,65.68,22.9,59.32,7.13,45.36,5.31,38.68-12.44,81.77-61.43,55.52L1360.13,801h0Z" style="fill:#c89d3a;fill-rule:evenodd"/><path d="M502.89,1712.39v-1.68a12.9,12.9,0,0,0,3.33-3c1.06-1.52,1.83-3.34,2.58-3.79,1.52-.76,8.65-3,12.44-2.28s13.81,4.85,19.12,4.55c10.92-.3,23.66-8.65,43.84-4.85,30.34,5.61,37.47,26.24,55.07,37.92,12,8.2,24.42,4.55,26.24,4.55h4.09c.76,0,6.37-6.37,9.41-6.06,6.07.3,6.67,5.31,10.46,5.61,8.95,1.06,26.25-4.55,34.9-2.27A16.67,16.67,0,0,1,735.29,1752c1.82,5.61.3,12.74-4.1,16.84-9.4,8.64-18.35,16.84-20.17,24a85.25,85.25,0,0,1,6.66,5.64,883.15,883.15,0,0,1-214.79-86Z" style="fill:#ceb052;fill-rule:evenodd"/><path d="M1310.68,1409.29s23.66-31.55,31.86-47.18C1350.73,1346,1316.6,1142,1316.6,1142l68.57-224.66-1.83-73.12s3.34-67.51,11.23-96.79c9.41,16.84,38.69,37.17,45.06,47.94,3-20.64,13.19-64.17,11.68-110.59,5.61,8.64,19.11,95.57,19.11,95.57l13.5,58.55,17.6,62.2,19.57,65.69,11.68,45.36,6.67,10.92,5.62,19.11,5.31,20.64,15.32,48.39,9,39.74,7.13,72.06a109.86,109.86,0,0,1,3.34,16.84c.3,7.89-1.06,12.44-1.06,13.81s2.58,17.29,1.52,29.28c-1.52,12-1.52,21.39-10.93,30s-15.32,60.07-15.32,60.07l-16.84-11.22s3.34-15.33-4.55-29.28-23.21-16.84-31.86-14.56c-8.64,1.82-25.93,4.54-31.55,9.4-5.31,4.85-18.35,19.87-30.34,26.7-15,9-39.44,9.71-52.48,12.74-13.2,3-27.76,12-43.09,22.45a240.58,240.58,0,0,1-37.92,20h0Z" style="fill:#cca847;fill-rule:evenodd"/><path d="M1310.68,1740.75s1,.65,2.93,1.71a891,891,0,0,0,284-210.5c-.87-30.7-2-62.17-3.24-73.83-2.57-24.73-.75-49.91-1.51-64.47s-8.95-73.88-12.74-89.2c-4.1-15.32-12-22.91-13.2-22.91-1.06.31-7.44,28.83-7.44,36s-1.52,24.43-1.52,28.83c-1.06-.31-1.51-3-1.51-4.1-1.52,3.79-3.34,10.47-4.1,11.23s1.06-6.37,0-7.89-3-.76-2.58-4.55a43.41,43.41,0,0,1,1.06-6.67s-4.55,6.67-7.88,23.66c-3.34,16.84-3.34,17.3-4.55,18.81-1.06,1.83-7.13,7.89-7.44,10.17-.3,4.09,5.62,8.19,6.07,10.46.3,3.8-5.31,21.39-7.13,30s-1.06,25.48-3,34.13c-1.52,7.89-3,12.44-8.19,15.77,3.79.76,7.43,1.82,7.43,1.82s5.31,22.45-8.19,41.57c-4.85,6.67-6.06,9.71-11.22,15.78-10.17,11.22-18.06,24-18.82,32.31a54.28,54.28,0,0,1-1.06-7.44s-15.77,18.36-22.45,28.83c-8.64,13.5-20.63,12.74-24,16.08s-4.1,9.4-3,14.26c-3,.75-8.64,1.82-12.44,13.5-1.82,6.06-6.37,12-13.5,16.08s-15.78,5.31-20.18,6.37c3.79,1.06,5.31,1.06,7.13,2.27-2.27,3.79-12.74,9.71-24.42,17.3-11.68,7.13-17.3,17.59-20.18,24.42-3,6.37-7.43,10.47-14.56,11.23,3,1.82,7.44,6.06,9.71,7.43-3.34.76-9,.76-19.11,9.41-10.62,8.8-14.26,11.38-19.12,12.14h0Z" style="fill:#c39d3c;fill-rule:evenodd"/><path d="M1099.6,1811.05a85.79,85.79,0,0,1,18.73-9.93c23.66-9.4,48.69-11.22,58.55-14.25,9.41-3,16.84-7.14,28.52-9.41-.31,2.66-.57,5.16-.85,7.52a884.07,884.07,0,0,1-105,26.07Z" style="fill:#d2ba6b;fill-rule:evenodd"/><path d="M1536,1188.72s-4.85,26.24-13.5,42.78-18,39.44-18,39.44a72.15,72.15,0,0,1,1.82-15.33c-10.92,6.37-37.47,21.7-45,28.52-7.13,6.37-19.12,17.6-22.15,22.91,7.13-20.93,14.56-39.74,15.78-48.39-10.92,7.89-61.9,49.91-88.44,77.67l-82.68,66.9A286.14,286.14,0,0,1,1254.4,1417c-14.25,6.06-31.09,11.22-43.53,16.08,3.34-8.95,8.64-16.85,16.08-24.43,7.89-7.43,31.55-33.07,35.19-45,3.34-12.44,4.1-19.87-.3-30.34-4.1,1.06-13.5,1.52-19.87,3.34s-13.2,8.64-13.2,8.64,4.85-27.76,15.32-54c-7.89.3-21.39,2.57-21.39,2.57s18.81-31.55,51-53.54a165.88,165.88,0,0,0-28.82,8.94c-18.81,7.89-39.44,19.57-54.76,25.94,8.64-12,69.32-98.6,105.43-179.31,36-80.55,49.45-101.18,57.34-144.41,4.09-21.39,3-53,4.09-81.31,1.06-28.07,4.55-53.25,2.28-70.09,9.4,11.68,44.6,44.6,45.81,118.18,1.06,73.57-33.67,172.94-70.54,226.48,9,2.58,32.32,5.62,56.28-36s23.67-53.24,32.32-70.54c1.06,8.65.75,11.68.75,11.68s34.9-42.32,51.43-95.57c3.34,22.91,13.2,43.09-2.28,85.11-13.8,37.92-31.85,47.18-31.85,47.18s8.95-1.52,22.14-9.41c2.28,5.
24261,1.83,12,5.62,14.26s8.95,6.07,9.71,9.71c4.09-6.07,10.46-13.81,12.44-19.57-1.52,12-2.58,64.47,3,91.17,11.69-1.06,23.67-1.82,31.86-22.91-5.61,20.64-5.61,33.07-1.82,50.67,6.22-4.24,11.83-11.83,11.83-11.83h0Z" style="fill:#c0993a;fill-rule:evenodd"/><path d="M1141.84,352.55s-11.68,4.85-31.55,4.85c-17.29,0-12.44-6.67-39.44-6.67-41.56,0-186.74,24-212.23,23.66-16.54-.3,55.82,7.13,55.82,7.13l184.93,2.58,37.16-3L1150.34,353l-8.5-.45Z" style="fill:#a88f33;fill-rule:evenodd"/><path d="M662.32,714.05s-23.67,18.05-33.68,31.86-15.32,22.9-26.7,34.13a23.3,23.3,0,0,0,7.89-1.06s0,3-1.82,3.79a10.61,10.61,0,0,1,8.64,3c-3.34,1.82-12.44,10.93-5.31,21.7,5.31,8.19,16.54,8.94,16.54,8.94s-2.58,7.44,8.19,6.68c23.21-1.06,49.15-11.23,61.13-8.65,12,3,18.82,4.1,27.31,18.82,9,14.56,16.84,16.84,16.84,16.84s5.31-13.51,4.1-33.68a100.16,100.16,0,0,0,7.13-34.13l-7.89-58.1-34.43-43.54-44.6,24.73-3.34,8.64Z" style="fill:#e3c571;fill-rule:evenodd"/><path d="M704.64,705.4s3.34,7.89,17.3,8.64c-1.52,3.34-1.52,3.8-1.06,6.37.3,2.58.75,6.37.75,6.37a14.11,14.11,0,0,0,4.1-3c.76,3.34-.76,8.64,0,12.44a27.63,27.63,0,0,0,2.27,6.67,13.4,13.4,0,0,1,.76-1.51c.3-.76,3,8.19,10.47,15a6.22,6.22,0,0,1,.75-3,10.52,10.52,0,0,0,1.82,5.31,5.54,5.54,0,0,1-1.51-1.06s.75,24,4.85,36.41a17.05,17.05,0,0,0,1.82-2.58c0-.75-.3,6.68-1.06,12-1.06,5.31-.3,12.74-.3,12.74a39.81,39.81,0,0,1,8.94-5.31c4.55-1.83,12-7.44,16.54-19.88a132.83,132.83,0,0,0,6.07-21.69,30.28,30.28,0,0,1,3,9c.31,3.79,7.44,1.82,7.44,1.82l1.52-16.54,9-37.47,8.19-23.21,39.44-61.43L917,586.61l62.2,14.26,52.48-71.3-90.41-54.31-85.56,8.95L778.06,591.76l-62.19,97.55-11.23,16.08h0Z" style="fill:#d8b65b;fill-rule:evenodd"/><path d="M1152.76,549.76s-5.31,1.06-20.63,9-25.94,10.46-31.86,22.14-6.37,20.94-6.37,20.94,10.47-4.55,16.54-6.07c6.37-1.51,13.5-1.06,12.74,1.52a17.59,17.59,0,0,1-3,4.85s12-.3,11.68,5.62-2.27,12.44-4.54,15.32c-2.28,3-11.68,7.44-12.74,10.93-2.58,7.13,1.06,7.43-.31,13.19-1.06,5.62-6.06,16.54-22.45,35.65-16.84,19.12-24,32.62-24,32.62s-8.19-15.32-12.44-28.52c-3,1.51-19.11,10.46-19.11,10.46l-37.32-130,.75-8.65s3.34-4.09,4.1-11.68c-5.61-1.82-6.37-3.34-13.81-10.46s-13.5-15.78-25.93-21.7c-1.82-3.34-4.1-7.88-13.2-9.71s-14.56-3.33-14.56-3.33,4.85-1.83,7.13-5.62c-5.62.76-10.16,2.58-22.45,2.28-12.44-.31-13.81-.76-20.63.3s-15,4.1-18.05-6.37c-3.34-2.58-10.47-.3-16.54,8.64s-8.19,16.08-19.87,19.57a40.71,40.71,0,0,1-5.31,14.56c-3.34,5.62-8.65,11.23-15.78,19.57-11.23,13.2-9.41,34.89-27.31,51.43-18.05,16.53,3-45.82,3-45.82l28.82-69,82.07-80.25,127.43-8.64,12.44,66,62.2,21.39,39.29,59.92h0Z" style="fill:#d3ae4d;fill-rule:evenodd"/><path d="M1172.94,564.32l-53.55-77.21-37.47-28.83s-26.7-49.14-28.52-50.66c-1.52-1.06-26.7-3.79-42.78-4.85l3,7.43a19.69,19.69,0,0,1,9,6.07c7.13,8.19,11.68,23.66-4.55,40.2,6.37,2.27,9,3,14.56,2.27-5.61,6.68-18.35,20.94-19.11,33.38-.76,10.16,5.61,13.19,5.61,13.19s-9.71,11.23-10.16,30a121.56,121.56,0,0,1,15-14.26c11.23-9,26.7-19.12,37.17-25.49a21.42,21.42,0,0,0,1.06,7.89s19.56-16.08,36-8.95c7.43,3.34,4.09,13.81,4.09,13.81s10.17-3.79,17.3,3.34,17.29,25.48,22.45,32.62c2.27,3.34,8.19,9.71,14.25,19.56a247.31,247.31,0,0,1,20.64,43.54c.3-6.07,1.52-14.56,12-14.56l-15.93-28.52Z" style="fill:#caa13e;fill-rule:evenodd"/><path d="M370.15,783.68s-3.79-9.41,0-27.76,9.71-27,11.68-54,19.57-60.68,19.57-60.68l48.69-22.14,34.44,9.4,10.16,46.12-43.54,24s-2.27,10.16-14.56,18.35-29.28,14.56-33.37,22.91a66.79,66.79,0,0,0-5.31,16.08s-12.44-2.58-19.87,5.61c-7.89,8.35-7.59,15.78-7.89,22.15Z" style="fill:#f4efc8;fill-rule:evenodd"/><path d="M468.45,771.39s-4.1,2.58-7.13,9c-3-4.85-10.17-33.68-10.47-59.62S449,688.4,455,679.46,484.53,661.1,481.19,645c-3.34-15.32-17.3-21.69-34.44-17.29-12,3-20.93,28.52-33.37,41.26-9.41,9.71-20.63,8.19-23.66,13.5-4.1,7.13-.31,14.26-1.52,18.81-.31,1.52-4.1,9.71-10.93,19.57-13.8,19.87-37.16,47.94-40.2,73.12,1.06-14.26.31-14.56,4.1-30.34l-2.28-3.79,15-49.15,9.71-40.5,21.7-67.82,38.22-69.32,37.17-41.57,38.68,2.58,4.55,58.1,22.15,109.08,46.57,57.34L498,768.81l-29.58,2.58h0Z" style="fill:#ebcc73;fill-rule:evenodd"/><path d="M491.66,792s-6.37,1.52-8.65.31-4.54-2.58-3.79-4.1,4.85-4.09,4.85-5.31a4.25,4.25,0,0,0-3.79-4.55c-3.49-.45-4.55,1.82-4.55,1.82s-3.34-2.57-6.06-3a41.93,41.93,0,0,1,4.85-.31,47.29,47.29,0,0,0-13.2-3.79c3.79-2.27,11.23-8.95,16.08-8.95s7.89-.75,7.13-3.33-4.55-6.37-8.64-7.89c1.51-1.82,2.58-4.55-1.06-12-3.8-7.43-2.28-12.44-1.06-14.25,1.06-2.28,4.85-6.37,6.67-8.95s3.34-6.07,6.37-7.89c1.52-1.06,6.37-3,11.23-4.85,5.31-1.82,9.71-4.1,12.74-1.82,3.34,2.27,1.82,5.31,1.82,5.31s10.47-3.8,19.87,1.06c9.41,4.54,32.32,7.43,32.32,7.43L573,733.48l-54.31,46.57-22.45,11.23-4.55.75h0Z" style="fill:#e5c66b;fill-rule:evenodd"/>
242<path d="M567.05,715.87s-16.84,11.23-20.63,15.32c2.27.31,6.06,1.83,4.54,4.1-1.82,2.27-12.74,10.16-18.81,17.6-6.37,7.43-12.44,16.84-14.56,21.39-2.27,4.09-19.57,16.08-25.48,17.59,12.44,0,37.47-15.32,46.87-15.32-.3,4.55,2.58,9.71,7.89,10.16s20.63,3.34,41.26-9.4c20.63-12.44,13.81-21.7,22.45-27.76,16.54-10.93,23.21-20.64,32.31-26.7s13.81-7.44,13.81-7.44.3-4.55,3-4.09a4.08,4.08,0,0,1,3.34,2.58s15.78-11.23,36-14.26a2.1,2.1,0,0,1-1.06-1.06s1.51-.76,1.82-1.52c0,0,1.06-1.52,1.82-.76s1.82,6.37,3.34,8.65c3.34-1.52,9.71-15.78,9.71-15.78L730,645.33V605.28l-12,2.28-90,38.22-54.62,56.59-6.37,13.5Z" style="fill:#e6bd62;fill-rule:evenodd"/><path d="M826.15,519.42A50.87,50.87,0,0,0,840,513.8c-1.82,4.86-1.82,10.17-9.71,21.7s-8.19,13.2-14.56,25.18c-6.37,12.44-7.13,30.34-13.2,38.22a27.74,27.74,0,0,1,8.64-2.57s-6.06,5.31-8.64,10.92-7.13,17.29-18.35,24.43-25.49,11.68-40.81,28.52c-15.33,16.53-31.1,37.47-39,45,4.1-7.13,9.71-21.39,11.23-30.79s-.31-20.64,2.27-33.07,2.58-21.39,15-43.09,33.68-97.09,33.68-97.09l45.81-14.56,13.81,32.77h0Z" style="fill:#b6933f;fill-rule:evenodd"/><path d="M793.08,491.66s-13.8,19.87-17.59,37.47-.31,16.08-2.58,24.73a32.25,32.25,0,0,0,0,16.08A57.09,57.09,0,0,1,792,551.12c13.05-7.88,23.67-13.5,30-20.17,6.37-7.13,11.68-18.81,25.48-27.76-5.61-.76-13.5-3.34-15-3,5.62-6.37,22.45-16.08,39.44-27.76,16.84-12,15.78-16.84,43.09-28.82-8.95,1.52-13.2-.76-20.64,0,3-6.37,13.5-9.41,24-19.87s-6.67-25.94-6.67-25.94l-80,48.39-38.68,45.51Z" style="fill:#c49937;fill-rule:evenodd"/><polygon points="576 455.55 577.82 440.99 600.73 404.28 624.7 339.81 624.7 251.67 622.88 200.7 626.67 167.32 629.55 156.71 632.59 152.61 652.15 162.77 679.16 199.48 681.74 270.33 655.49 382.13 580.55 463.9 576 455.55" style="fill:#dfc068;fill-rule:evenodd"/><path d="M635.62,148.51s-12,.31-14.56,50.22-3.8,76.15-5.62,100.88-6.06,39.74-8.19,54.31-3.34,34.43-10.16,46.57c-3,5.61-9.41,23.21-24.43,36.41-16.84,14.56-42,24.73-45.81,25.49-6.68,1.51-40.51,4.85-54.31,12.44-4.85,2.58-13.2,5.61-22.45,14.26-18.36,16.53-42.78,46.11-60.38,81.76-27,53.25-54,203.58-54,203.58l6.07-10.16s.76-13.5,14.26-37.17c13.2-23.66,9.41-50.21,27.76-95.57,7.13-17.29,16.08-39.74,27-58.86,17.3-31.1,38.23-57.8,59.32-72.36,34.43-23.66,72.36-28.82,72.36-28.82l40.81-27s7.13-13.8,16.54-29.58c13.19-22.14,30-46.87,33.67-82.82,5.62-53.25-7.89-88.14-7.13-119.69s1.06-54.76,7.44-60.38,1.82-3.49,1.82-3.49h0Z" style="fill:#a88f33;fill-rule:evenodd"/><path d="M635.62,386.68s18-44.3,26.24-83.59c1.52-7.89,4.55-15.77,5.31-22.14,3.79-37.17,4.85-52.49,0-72.82-3.79-15-18.35-28.52-25.94-39-7.43-10.93-10.92-15-9.4-17.3s7.43-6.06,13.19-5.61a45.17,45.17,0,0,1,32.32,15c11.68,13.5,20.93,59.32,20.93,59.32L708,281l24.73,76.15-97.09,29.59h0Z" style="fill:#c99e3d;fill-rule:evenodd"/><path d="M804.76,340.57s-3.34,1.51-9.4,0a13.53,13.53,0,0,1-6.07,12.74c-6.37-2.58-66,2.58-66,2.58s-27.76-4.86-36.41-41.57c-6.06-24.43,4.55-58.1,1.06-80.25-5.31-32.62-12.74-39-13.5-49.15s-1.52-12.74-1.52-19.11c-3.34-.76-5.31-1.82-8.64-1.82-.76-3,.75-5.62-2.58-10.93,1.82.76,14.26,2.28,28.82,16.08,12,11.23,12,15.32,13.81,17.6,2.27,2.27,20.63,18,28.52,33.68s23.21,65.68,26.7,73.87c1.06,3.34,3.34,6.68,9,14.26,8.8,10.93,21.69,29,36.25,32h0Z" style="fill:#b58634;fill-rule:evenodd"/><path d="M706.47,187.5a420.38,420.38,0,0,1,24.72,46.12c8.95,20.17,14.26,36.71,25.49,50.21-6.07-17.59-16.84-52.18-23.21-64.47-7.13-13-21.69-27-27-31.85h0Z" style="fill:#a88f33;fill-rule:evenodd"/><path d="M603.31,436.9s-15.32,3.79-43.84,18.81c-9.41,4.85-18.35,8.94-27,12.74C510,478.61,485.9,488,466.78,493.18c1.52,1.82,2.27,2.57,2.27,2.57s0,7.44,4.1,11.68c-2.27,2.28-32.62,22.91-23.66,91.93,6.06-2.27,13.19-5.31,14.25-5.31,1.83.31,2.28,5.31,4.55,5.31s9.71-3,17.6-13.2c-.3,4.1-4.85,45.36,19.57,73.12,4.55-5.31,16.08-22.91,16.08-22.91l.3-5.61s1.06-19.57,7.44-37.47,18.81-31.1,18.81-31.1L613,469.5l-9.71-32.61h0Z" style="fill:#e6c367;fill-rule:evenodd"/><path d="M542.63,573a35.86,35.86,0,0,1-9.71,4.85c-1.06-3.79-2.58-16.84,6.37-29.58,10.47-15.33,33.37-35.2,39.74-51,4.1-10.17,2.28-35.65,38.69-68.27s50.66-43.84,50.66-43.84l58.86-29.58L799.6,384.1,763.65,525l-27.91,66-111-20.93L542.62,573h0Z" style="fill:#dcba5a;fill-rule:evenodd"/>
242<path d="M585,534.74l13.81-17.29V505.16s15.32-4.1,31.85-20.94,39.44-49.15,59.62-47.18c20.18,2.28,22.15,43.84,22.91,55.53s3.34,38.22,7.43,52.49c4.55,14.26-49.15,68.26-49.15,68.26L635,641.08,585,534.74h0Z" style="fill:#e9ce77;fill-rule:evenodd"/><path d="M627.73,678.7s11.23-17.6,3-21.39c4.85-10.92,13.8-22.45,13.8-22.45s6.37-15.77,27-35.19,33.38-32.32,36.72-45.36a119.5,119.5,0,0,0,3.34-25.94,49.24,49.24,0,0,0,7.13,4.85c3.34,1.52,19.11,14.56,16.84,40.81s-12,37.17-12,37.17-9.4,9.4-16.07,14.26c-7.14,4.85-9.71,10.46-21.7,10.92a14.35,14.35,0,0,1,4.1-2.28s-12.44-1.51-19.12,4.55S649.89,663.38,642.76,669c-7.13,4.55-15,9.71-15,9.71h0Z" style="fill:#cdae50;fill-rule:evenodd"/><path d="M1132.13,383.64a182.69,182.69,0,0,0-55.82-10.92c-31.86-1.06-78.43.76-124.09,1.06-49.15.3-93.75-16.84-155.64-19.87-10.16-6.07-36-32.62-116.66,23.66,4.85-.3,58.56-12.44,77.21,10.93,18.81,23.21,13.5,62.65,10.93,72.05-4.86,20.94-20.64,51.43-27,72.82S736.2,566,731.65,581s-14.56,22.45-8.65,39.74c7.89-4.85,12-4.85,25.18-34.43s10.47-50.67,32.32-75.7c21.39-25.18,57-59.62,70.54-68.27s121.05-64.47,233.62-11.22c27.15-2.88,47.48-47.49,47.48-47.49h0Z" style="fill:#d2a83e;fill-rule:evenodd"/><path d="M725.27,363a13.9,13.9,0,0,0-.75-3.34,24.35,24.35,0,0,0-4.1-6.07s-26.7-4.85-40.2-3.34c-23.67,2.58-45.06,31.86-55.07,46.88s-22.45,38.22-35.95,50.21a5,5,0,0,0-.76-3.34s.76,1.06-.75,2.58-1.52,2.27-.76,3l2.28,2.27c.75,0,21.69-9.41,50.21-36,30.34-27.76,53.55-42,65.69-46.88A92.4,92.4,0,0,1,725.28,363h0Z" style="fill:#c29637;fill-rule:evenodd"/><path d="M1243.18,248.94s-4.86,6.06-10.93,12.74c-13.5,14.26-31.1,30.33-46.12,46.87-14.25,15.78-30.33,28.07-48.39,48.7s-39,43.53-44.3,50.21c-4.85,6.68-8.64,17.6-8.64,23.21-2.58-1.82-5.61-3.79-5.61-3.79a38.11,38.11,0,0,0,4.55,6.68c3.79,5.31,9.7,12,12.74,16.08a49,49,0,0,1,7.88,17.29c1.82.3,13.5,2.58,28.07-21.39s33.67-50.21,33.67-50.21l30.34-45.06,19.12-38.22,24-42.78,3.65-20.33h0Z" style="fill:#ac8132;fill-rule:evenodd"/><path d="M1274.28,218.3s-18.36,15-25.49,24-24,32.62-24,32.62l6.07-.76,30.8-27.3,12-21.39.61-7.13Z" style="fill:#a88f33;fill-rule:evenodd"/><path d="M1268.66,1423.85s-.3-12.44,6.68-19.87c7.13-7.44,25.18-18.36,42.78-59.32s19.56-50.21,19.56-50.21-31.55,27-51,33.37c4.55-9.41,7.13-16.08,9.41-20.94-2.58-2.27-13.5-4.85-14.56-6.06,6.06-6.07,9.4-20.94,21.69-30.8,15.78-12,44.6-32.62,67-51s66.44-61.13,72.06-73.57c3.34,4.85,4.09,7.88,4.09,7.88s-22.14,28.83-33.67,47.18c-10.17,15.78-9.41,24.73-9.41,24.73l20.94-9s6.06,22.45-21.39,56.59c12-4.55,16.84-1.82,23.66-5.62-11.23,7.14-26.7,16.85-41.26,43.54-14.26,26.7-33.68,57.8-66.44,77.21-31.86,20.48-50.22,35.8-50.22,35.8h0Z" style="fill:#a67a2e;fill-rule:evenodd"/><path d="M1186.44,399.43s-12.44,25.93-14.26,46.11c-.3,4.86-1.52,8.65-1.52,14.26-.3,18.05,1.06,38.23-3,47.63-1.52-3.79-2.28-6.37-3.8-7.88-2.27,6.37-6.37,26.24-9.71,33.67-1.51-4.85-4.85-21.69-4.54-41.56s.75-23.67.75-27.76c-.75,6.06-4.85,14.26-6.37,19.11-2.27-4.09-4.85-9.4-7.89-13.8-1.82,3-4.09,7.43-6.06,9.71-.31-1.82-1.06-6.68-1.52-13.5-.3-7.89-.76-18.05-.3-20.18.75-4.09,7.13-20.17,20.63-34.89,16.08-17.6,32.62-51.42,37.47-61.89s25.48-54,25.48-54h15.78l-22.91,52.18s-13.8,28.52-20.93,39-22.15,40.51-28.83,52.19c4.85-6.37,8.95-9.71,13.81-15.78,4.7-4.25,17.74-22.6,17.74-22.6h0Z" style="fill:#8c6228;fill-rule:evenodd"/><path d="M1274.58,216.32a65.31,65.31,0,0,1-12,21.7c-9.41,11.23-29.59,26.24-39.44,38.22-9,11.68-27,43.54-18.82,81.31,3-8.19,8.65-24.42,23.67-42.78s31.1-39.44,39-55.82c7.88-16.54,8.94-29.58,8.94-29.58l3-3.79-1.82-8.65-2.58-.61Z" style="fill:#cba94c;fill-rule:evenodd"/><path d="M1581.77,1222.54s-6.07-16.53-7.89-31.55,3-18-2.58-35.19c-3.34-10.47-9.4-9-10.92-10.47s-2.58-17.29-2.28-25.94-.3-19.87-1.82-24.73c-2.27-1.82-3.79-3.34-7.13-14.56-3.79-11.23-5.61-16.84-7.43-20.17s-7.14-6.37-7.14-9.71c0-6.68,6.07-10.16,6.07-12-.3-3.79-4.85-.75-6.07-1.82-1.51-1.82,3.8-12.74,1.83-14.26-.76-.75-6.07,5.62-7.44,3.8-1.52-1.83-3.34-19.88-6.07-31.86-2.57-11.68-5.31-20.17-5.61-23.66-.3-3.34-20.94-62.2-25.94-76.46a361.49,361.49,0,0,1-10.16-36.71c-1.52-7.13-2.58-21.7-3.34-20.18s-.3,8.95-1.52,8.65c-1.06-.31-4.85-26.24-6.06-30.34-1.06-4.1-7.44-18-9-28.06-1.52-10.17-4.85-36.72-7.13-54.77s-3.34-25.48-3.34-30a186.94,186.94,0,0,0-1.82-33.07c-3-19.12-9-42.33-14.26-55.82-10.16-25.49-37.17-90.72-42-106.95,0-4.1,5.31-1.82,5.31-1.82s13.19,33.07,22.9,58.55c9.41,25.49,18.36,47.94,20.64,50.22,1.82,2.27,16.
24208,27.3,22.45,68.26s8.64,78.73,12.44,103.91c1.82,12,3.34,24.73,7.13,37.47,4.09,13.81,10.46,28.07,18.81,49.91,7.13,18.36,12.44,33.68,15.32,46.88,3.34,16.84,3.34,29.58,5.31,37.93,1.83,7.13,4.55,21.38,10.93,42s15.77,47.18,22.14,63.71c12.45,33.07,18,60.68,19.88,75.4,1.66,15.17,7.28,67.66,5.76,83.43h0Z" style="fill:#a88f33;fill-rule:evenodd"/><path d="M1275.34,214.5l-.76,1.82s2.27.76,1.82,3.8a90.7,90.7,0,0,1-.76,12.44c-.75,5.31-2.27,9.4-2.57,12.74,0,7.13,1.06,15.32-9,35.65-3,5.61-4.85,10.46-6.37,13.8-3.79,8.19-4.55,9.41-7.89,13.2,5.31-3,24.43-15,34.13-13.2-6.67,3.79-16.84,11.23-23.21,20.94,1.52.3,7.89,1.52,18,0,16.84-2.58,35.65-8.65,52.18-7.44,18.06,1.06,10.93-21.69,10.93-21.69L1321,240.75,1281.56,213l-6.22,1.51Z" style="fill:#be9c44;fill-rule:evenodd"/><path d="M1378.19,557.65s-17.6-17.6-24.73-78c-7.13-60.68-5.61-150-5.61-150l-14.26-34.89s-3-23.21-10.47-31.85-22.14-23.21-28.82-30.34-14.26-16.84-18.81-18.36c2.27-3.79,12.44-25.18,51.42-25.48s51,21.39,55.07,29.28,22.45,42,29.27,107c6.37,64.92,6.68,69.78,5.62,92.23-.76,12.44-4.86,41.26-12,72.05-6.52,26.1-13.65,55.23-26.7,68.42Z" style="fill:#a17c34;fill-rule:evenodd"/><path d="M1323,609.38a29.79,29.79,0,0,0,16.84-3.8c5.61-.3,25.94,2.28,41.56-17.59,1.06,4.54,3.8,16.84-3.34,27.76,3.8-3.8,9.41-5.31,10.17-6.37.3,5.61,5.61,22.9-16.84,64.92,6.06-6.67,13.19-6.37,19.56-7.13.31,7.89,4.55,34.43-6.67,48.7-7.43,9.71-19.57,6.67-19.57,6.67a38.15,38.15,0,0,0,0-6.37c-.3-4.1-1.82-8.19-.75-10.92a54.42,54.42,0,0,1-15.78-10.93c-13.2-12.44-30.34-33.67-31.55-49.45-1.52-17.6,14.26-21.39,14.26-21.39a16.87,16.87,0,0,1-3.34-4.1c-.76-2.57-1.52-6.67-4.55-10h0Z" style="fill:#8c6228;fill-rule:evenodd"/><path d="M1206,418.54s-.76-1.06-4.85,3.79c.76-4.85,1.52-9.41,1.82-13.81a47.6,47.6,0,0,1,7.44-11.22c-2.28,4.54-3.8,8.64-3.8,8.64s5.62-10.47,13.81-16.84c5.61-4.55,12.74-6.67,15.77-10.92,3.34-4.55,2.58-5.31,3.34-6.07,0,0,7.44-4.85,18.82-19.12,1.51-1.82,3.79-3.79,5.31-5.61,2.57-1.06,8.64-3.79,15.77-7.44,7.44-4.09,15.78-9.7,20.94-12,10.16-4.55,20.94-4.09,25.94-11.23,3.79-1.06,7.88-12.44,7.13-22.14,5.61,2.27,34.43,20.17,44.3,59.31,7.13,27.76-5.62,70.54-10.93,91.18s-6.06,35.95-13.5,45.35c-9.41,12.45-39.74,30-47.18,38.69-6.37,7.13-25.48,25.18-24.73,38.22.76,9.71,12.74,15,15.33,16.84s2.57,4.1,7.43,3,6.67-3.34,8.65-3.34c2.27.3,2.27.76,3.33.76a10.94,10.94,0,0,0,2.28-.31s-.76,13.81-33.07,18c-2.28.31-4.55,1.06-7.44,1.52,3.8-1.82,6.07-1.82,10.17-7.43-4.55-.76-17.6-1.52-20.94-2.58,1.06-1.82,4.55-6.68,7.43-8.95,2.58-2.27-.3-3-2.57-1.82a121.45,121.45,0,0,0-11.23,8.64c-3.79,3.34-7.13,7.89-13.2,12-1.82-6.07-1.52-17.6,5.62-25.94-1.83.3-5.32,5.61-8.65,4.55a48.31,48.31,0,0,1,1.06-16.54c1.82-6.83,11.68-18.81,11.68-18.81l47.63-85.11,10.16-64.47L1206,418.52h0Z" style="fill:#92723a;fill-rule:evenodd"/><path d="M1203.43,422.18s-2.58,1.82,2.58,5.31c-.76,1.06-2.58,4.85-4.86,7.43-2.57,3-5.31,4.86-6.37,7.44-2.27,5.31-4.09,8.95-4.09,11.23s-.76,16.84-7.13,26.24c-2.28,3.34-4.86,8.95-6.68,12.74-3.79,6.67-7.13,12-7.89,15-1.51,5.31-2.57,19.87-2.57,19.87s3.34-4.1,4.55-5.61c-1.83,3.79-3.8,7.88-6.68,10.92,1.82-1.52,7.13-5.31,16.08-13.2,12.44-10.46,31.86-28.06,55.53-42-7.14,2.58-13.2,2.58-18.05,3.34,3.79-3.79,37.92-43.84,55.82-47.63a7.14,7.14,0,0,0,1.52-4.86l-15.33-1.51-31.1,6.67-4.54-24-20.79,12.59Z" style="fill:#b18e3e;fill-rule:evenodd"/><path d="M1252.89,558.71s-4.1,4.09-7.89,14.26a47.8,47.8,0,0,1-7.44-10.17c-5.61-9.4-14.25-21.39-34.43-14.56-.3-6.37-.76-9.71,0-14.26,3.34-.75,13.5-8.94,23.66-20.93,7.14-8.19,13.81-17.6,18.36-29.58,3-2.28,8.19-6.07,15-10.47,9.71-6.67,21.39-15.78,23.21-25.94-4.55,1.82-14.26,6.37-28.83,5.62,5.62-2.58,14.26-5.31,13.2-16.54,2.28-1.52,4.1-2.58,4.1-2.58a15,15,0,0,0-5.31-.76c-.31-1.06-.76-2.57-3.34-1.82s-3,.76-3.34,1.82c-1.06.31-4.55,0-7.13,1.83s-9.71,7.88-12.44,8.94c1.06-1.82,2.57-4.54,2.57-4.54s-7.43.75-12.74,3c-9.71,3.34-20.93,9.41-32.31,15.32,1.06-1.82,1.52-3,2.27-3.34s2.58-.75,2.58-1.06-.75-3-.3-4.09a139.18,139.18,0,0,1,12-20.63c5.31-7.14,6.37-17.3,6.37-17.3l23.21-11.68,65.23-15,42.33,2.58-5.31,29.28-25,51.12-21.39,46.57-24.43,28.53-22.45,16.38h0Z" style="fill:#543e26;fill-rule:evenodd"/><path d="M1358.62,432s-25.49,31.55-32.62,36.41c4.55-9.71,32.62-67.51,42.78-83.59-2.27-1.82-5.31-1.82,1.82-30-6.06,14.25-8.19,21.69-13.19,25.48s-5.62,2.58-9,2.58a6.34,6.34,0,0,0,.75-3.79s-21.39-2.58-36-2.58-43.53,7.89-59.62,14.26c-12.74,5.31-19.87,5.31-24.42,8.64-4.55,3.79-7.13,7.89-9.41,8.95-1.82,1.06-10.46,3.79-12.44,6.67-1.82,3-4.85,6.37-4.85,7.13s-.76,1.83,1.52,1.06c.75-.3,6.37-3.34,12.74-7.13,8.64-4.85,19.11-10.46,26.7-13.8,21.69-8.65,28.52-7.13,38.22-8.95,10.16-1.82,24.73-6.07,34.43-6.07,9.71-.3,28.07,0,32.32.76-1.82,1.52-3.34,3.34-2.58,9.71,0,1.82-1.52,3.79-3,8.19-4.54,12.44-13.19,33.07-18,43.54-6.67,14.25-14.25,26.24-18,33.67s-12,27-20.17,37.47-12.44,16.84-15,19.12-20.94,15.77-19.57,20.63c3.34-1.06,24.43-9,39.74-26.24s18.36-27.76,30.34-37.17,21.39-25.18,27-38.22c4.7-12.14,3.64-15.93,9.55-26.7h0Z" style="fill:#806031;fill-rule:evenodd"/>
242<path d="M809.32,667.48s-3.34,13.8-10.93,20.63c-7.43,6.68-20.63,12.44-22.14,23.67-1.82,11.22,13.2,16.84,13.2,16.84s-8.2,13.5-8.2,23.66c0,10.47-.3,12.44.76,22.45a10,10,0,0,0-3,3s.75,9.71,8.19,15.77,13.8,9.71,17.59,8.19a35.78,35.78,0,0,1,1.52,3.8s5.62-14.26,9.41-26.7c3.79-12.74,7.13-10.93,8.64-28.07s18-46.57,18-46.57L853.61,679l-18.35-14.26-25.94,2.73Z" style="fill:#b6903c;fill-rule:evenodd"/><path d="M843.45,692.2A110.44,110.44,0,0,0,833,704.64c-4.85,6.68-8.64,12.74-15.77,15.33s-11.68,2.57-11.23,9.71,7.13,10.16,10.92,13.8c4.1,3.79,7.44,10.16,5.62,17.3,2.27-1.06,6.37-2.28,10.16-10.47S863,692.21,863,692.21H843.45Z" style="fill:#685026;fill-rule:evenodd"/><path d="M948,577.06s2.27-6.06,0-10.46c-2.28-4.55-16.08-6.07-22.91-11.23-7.13-5.31-15.78-9-22.91-6.67,1.06-2.58,5.31-8.2,1.82-9.41-3.34-1.06-15.77,4.55-19.11,7.13s-10.93,5.61-12.44,7.44-4.1,5.31-5.62,3.79c-1.52-1.06-2.27-3.79-4.85-2.28s-15,11.68-17.29,17.6-7.44,19.12-22.91,34.13-22.15,24.73-17.6,30.34,6.68,1.52,7.44,6.37a40.91,40.91,0,0,1-.76,14.26c-1.82,7.89-4.85,15.32-.76,16.84,10.47,3.34,20.64-3,22.91-1.06,4.55,4.09-2.58,18.81,8.19,21.69,10.93,3,21.7-2.58,21.7-2.58l39.74-21.39,38.23-20.17,19.56-38.69L949.94,580.4l-2-3.34Z" style="fill:#d4b968;fill-rule:evenodd"/><path d="M910.5,669.45s-6.68-10.16,1.52-19.12,19.87-12.74,24.42-18.35a7,7,0,0,0-3.34-2.27,30.21,30.21,0,0,1,13.2-12.45c-2.27-2.27-5.31-4.09-8.64-4.09-7.44,0-12,4.55-18.82,4.55-6.67,0-7.43-3.34-7.43-3.34s11.23-1.06,10.16-6.07c-1.06-5.31-3-5.31-3-5.31s21.69-9,25.48-13.8,3.34-10.47,4.1-12.74c2.57,0,17.59-7.89,23.66-4.55s1.82,12.44,1.82,12.44S992,570.54,1001.36,557c8.19.76,12-5.61,18-5.61,7.44,0,19.12,10.16,21.39,31.85,1.52,12.44,3.79,19.57,1.52,41.57-1.06,12.44-.76,39,3,52.18,2.57,10.47,8.64,9.41,8.64,9.41a17,17,0,0,1-5.31,8.19c-4.1,3.79-4.55,13.81-4.1,17.6a75,75,0,0,0,2.28,8.19s-4.85,5.61-6.07,9.41c-1.06,3.79-6.06,6.37-9.71,6.37s-1.82-.31-6.67,0-6.37,1.06-9.41,0-5.31-2.28-4.09-12c1.06-9.71-37.47-32.31-37.47-32.31l-63-22.45h0Z" style="fill:#cca849;fill-rule:evenodd"/><path d="M838.14,765.32s13.8,18.36,70.54,18.36c27,0,36.41-2.58,42-4.1,6.07-1.52,28.82-10.46,51.73-37.47,20.63-24.42,16.08-34.43,16.08-34.43l-12-1.82-39,5.31L852.09,760.32l-14,5Z" style="fill:#585136;fill-rule:evenodd"/><path d="M880.46,769.87s-49.15,10.93-49.15-20.17c0-30.34,30.34-62.2,37.93-67.81,7.89-5.62,26.7-12,26.7-12H941.3l8.64,22.91-3.79,49.45-65.69,27.61Z" style="fill:#252211;fill-rule:evenodd"/><path d="M925.82,679.16s-9.4-8.65-30.79,3-38.69,36-39.75,58.11c-1.06,19.56,16.08,34.13,42.78,34.89,19.87.75,31.86-1.52,37.93-3-1.52-1.82-9.41-11.68-9.41-11.68l-.75-81.31h0Z" style="fill:#c3b378;fill-rule:evenodd"/><path d="M916.57,684s-2.27-1.82-9,1.82c-5.61,3-13.8,10.93-20.17,16.54-4.1,3.34-6.68,4.85-9,7.43-9.41,11.23-17.3,29.59-12.74,38.69s19.57,19.57,57.8,12.44l-7-76.91h0Z" style="fill:#e6d89c;fill-rule:evenodd"/><path d="M904.13,702.82s-6.07,9.41-6.07,24.43c0,15.32,8.65,39.74,40.51,41.56,24.42,1.52,40.8-35.19,58.55-49.45,13.5-10.92,21.69-11.23,21.69-11.23s-13.8-15-50.66-34.43c-36.41-19.57-77.22-22.15-99.37,7.89,10.47-.76,44.3-9.41,44.3-9.41l16.54,5.31-25.49,25.34h0Z" style="fill:#252211;fill-rule:evenodd"/><path d="M951.76,722.69c-1.06-2.27-1.82-5.31,2.58-6.06s6.37-.31,7.89,3,3,6.07.75,7.44c-2.27,1.21-8.19,0-11.23-4.4Zm-7.13-21.39s-1.52,1.06-.76-1.06c.3-2.57,2.28-7.13,7.13-6.06s3.8,6.37,3,7.89-4.85,4.09-7.89,3a2.53,2.53,0,0,1-1.52-3.79Z" style="fill:#6f674d;fill-rule:evenodd"/><path d="M534,711s12,9,25.94,8.65c13.8-.31,31.55-14.56,39.74-23.67,4.85-5.31,9-10.92,13.5-15.32,3.8-3.79,6.37-5.61,8.19-8.19,2.58-3,5.31-8.64,6.68-10.47-3.34,2.58-8.19,7.14-13.2,10.17-4.85,3-15.32,8.64-19.57,10.16-4.09,1.52-46.57,24-46.57,24L534,711h0Z" style="fill:#ac924c;fill-rule:evenodd"/><path d="M552.34,598.91s6.67-4.55,19.57-7.44c12.44-3,37.47-5.31,37.47-5.31l20.63,9,8.19,31.1-15,32.32-19.11,12-21.7-34.89-30-36.72h0Z" style="fill:#9f8e57;fill-rule:evenodd"/><path d="M525.34,626.67,518.2,632s1.83-3.34,3.34-13.5,9.41-34.89,20.94-49.15,11.23-13.5,11.23-13.5a7.59,7.59,0,0,0-6.07,1.51C549.16,554,558.87,542,568.58,536s13.5-7.89,23.66-3,12.74,7.43,20.18,7.13,13.8-8.19,13.8-8.19,1.52,4.85-4.09,16.08-27.76,34.13-27.76,34.13l-46.12,31.55-22.91,13h0Z" style="fill:#eac970;fill-rule:evenodd"/>
242<path d="M559.46,595.12s33.38,4.55,43.54-4.85c.3,1.06,1.52,1.06,1.52,1.82a2.65,2.65,0,0,1-.76,1.51,24.44,24.44,0,0,1,3.34-.3,19.7,19.7,0,0,0,4.1.76,23.67,23.67,0,0,0,3.34-.31,5.67,5.67,0,0,1-2.28,3.8c1.52,0,3,.3,3,1.51s.3,4.86-1.52,5.62a6.88,6.88,0,0,1-4.55-.31,18.72,18.72,0,0,0,2.28,8.2c3,5.61,9.4,12,18,10.16,0,0,4.54,10.92-14.57,35.19-2.57,3.34-5.31,7.89-8.64,11.68a44.32,44.32,0,0,0-3,8.95s32.32-12.44,41.57-40.81c9.41-28.52,11.23-56.58,9.41-82.82-.31-7.44-1.52-12.74-3.34-16.54-4.55-9.41-17.3-7.89-22.45-2.58-7.44,7.44-19.88,25.94-37.17,38.68-17.6,12.74-18.35,15-31.86,20.64h0Z" style="fill:#d7bc6b;fill-rule:evenodd"/><path d="M519.42,636.08s-6.37,3.79-9.71,18c-3.34,14.56,3,32.31,6.67,37.92s12,20.94,29.28,21.7a32.1,32.1,0,0,0,12.44-2.58,78.7,78.7,0,0,0,16.84-10.47c7.44-5.61,13.5-10.46,12.74-10.92-1.82-.76-45.81-37.17-45.81-37.17L525.33,634.1l-5.92,2Z" style="fill:#585136;fill-rule:evenodd"/><path d="M561,696.45s8.95-.75,14.26-4.09-31.1-39.44-31.1-39.44l2.58,39L561,696.45Z" style="fill:#453a25;fill-rule:evenodd"/><path d="M522.3,633.34s-4.55,8.65-4.55,10.93c-.76,7.43,1.52,30.79,3.34,38.22,1.82,7.89,11.68,19.87,24.43,19.87,7.88,0,18.81-4.85,18.81-6.06,0-1.52-11.23-3-14.26-8.65-1.82-3-2.58-10.46-3-18-.3-4.85-.3-10.16,1.52-12,4.1-4.55,4.85-17.6,4.85-17.6L568,613H548.85l-22.91,14.26Z" style="fill:#84754b;fill-rule:evenodd"/><path d="M516.69,641.69s15-19.87,28.52-24.43,19.57-1.82,19.57-1.82l-7.89,20.18-11.23,12.44.76,6.37s-1.83,16.84,9.4,28.52,19.57,11.23,24.43,11.23,18.81-4.1,25.94-20.94c6.37-15.77,11.68-36-1.06-56.28C592.68,596.78,570.69,596,566.44,596s-37.62,1.67-49.75,45.66h0Z" style="fill:#252211;fill-rule:evenodd"/><path d="M901.85,709.19c-5.61-2.58-.3-18.35,5.31-23.21s12.74-10.46,25.19-11.23c4.54-.3,8.94,2.58,8.19,5.62-1.06,5.61-8.95,13.5-16.08,19.11-9.86,7.74-16.24,12.59-22.61,9.71Z" style="fill:#f7f7e7;fill-rule:evenodd"/><path d="M598.45,623.18c4.1-.3,9.41,3,10.47,7.44,1.06,4.85-2.58,14.56-10.47,14.56-6.37,0-9.71-7.89-9.71-10.16a11.6,11.6,0,0,1,1.52-5.31c.3-.46,1.06-5.77,8.19-6.53Z" style="fill:#f8f6de;fill-rule:evenodd"/><path d="M539.29,626.67s-10.47,4.85-15.32,15a39.8,39.8,0,0,0-3,24c.76,3.79,4.55,13.19,7.13,16.53s6.07,5.62,8.65,5.31,7.88-7.13,7.88-11.22.31-21.39,5.31-30.8c4.4-9.4-10.62-18.81-10.62-18.81h0Z" style="fill:#d4c38b;fill-rule:evenodd"/><path d="M540.81,625.91c-1.82,1.06-4.85,2.58-4.1,4.55.76,1.82,7.13,3,9.41,7.44,2.58,4.55,2.58,9.4,1.82,11.68a18.48,18.48,0,0,0,5.31-3.8c3.34-3.79,7.43-8.94,10.92-8.94,2.28,0,4.55,1.06,6.68,1.06,3.34,0,6.67-1.06,7.13-4.55.75-4.55-6.37-8.65-10.47-7.89.76-3,1.82-7.43-1.52-10.47s-13.8,2.28-16.08,3.8-9.1,7.13-9.1,7.13h0Z" style="fill:#e2d59d;fill-rule:evenodd"/><path d="M781.86,944.63,804.31,938l6.37,4.55s4.54,9.71,11.68,10.92c-2.28,4.85-8.2,9-7.89,12.44s3.34,6.07,3.34,6.07-20.18,33.37,19.57,67c-9.41,3.79-21.39,9-27.76,12,4.54,1.06,14.25,3,18.35,6.68s4.1,4.85,7.89,7.13,6.06,5.31,5.31,6.67c-2.58-1.52-11.23-6.06-12.74-1.82s-37.47,2.58-37.47,2.58l-60.68,11.68s2.27-6.07-4.1-11.68c-7.43-6.67-16.53.3-26.24-7.13-12.74-9.71-13.2-20.94-17.29-25.18,4.09-2.58,12.44-6.37,32.31-9-.76-1.52-3.34-6.07-1.82-10.16,1.82-5.31,9.4-8.65,7.13-15,3.34-.76,4.85-.76,13.2-11.23,7.89-10.47,12.74-12.74,18.81-13.5s9.71,0,20.94-10.47c7.88-7.43,5.31-13.8,5.31-13.8s5.15-1.67,3.34-12.14h0Z" style="fill:#cbac5a;fill-rule:evenodd"/><path d="M715.57,948c.3-1.52,1.52-2.28,9.71-1.52s60.07-4.85,74.18-5.61c14.26-1.06,64.47-.31,88.9,4.85s49.15,11.23,61.13,14.26c12,3.34,15.78,4.54,15.32,6.06-.3,1.52-3,3-4.55,2.58-1.51-.3-41.26-12.44-53.54-15s-54.77-9.41-78-9c-21.69.31-30.34-.3-48.69,1.82-18.36,2.28-48.7,5.31-57.8,4.1-9-1.06-7.14-1.06-6.68-2.58h0Z" style="fill:#d6bc6f;fill-rule:evenodd"/><path d="M837.68,1066.9s31.1,16.84,42.33,37.47c8.19,15.32-4.85,22.91-4.85,22.91s17.6,0,15.32,9.71c-1.06,6.06-30.34,22.44-49.91,31.09-19.87,8.65-19.11,8.2-28.82,9.71-9.41,1.52-35.2-3-40.51,4.55s-3,15.33-1.52,16.54c1.52,1.06,13.81,2.58,13.81,2.58s-2.58,7.13-28.06,7.89-31.86,2.57-33.38,5.31c-1.52,2.57,4.85,1.06,16.54,3,11.68,1.82,28.06,3,28.06,3s-5.31,4.55-19.11,8.19c-15.78,4.09-40.51,7.89-47.94,12.44,3.79,2.58,9.41,6.37,12,6.67-6.37,1.52-15.33,4.86-16.84,6.07,2.27,1.52,5.31,3.34,5.31,3.34s-12.75,15.32-20.18,19.12-50.21,23.66-64.93,19.87c-36.71-9.71-41.26-49.91-50.21-52.94-13.5-4.55-19.87,4.54-31.86-1.83,5.31-3.79,8.2-6.06,13.81-8.64-6.07-3-37.47-22.91-37.47-22.91a232.72,232.72,0,0,0-10.92-20.93c-6.07-10.47-15-24.43-21.7-36.72-14.56-27-15.32-39.44-28.52-54.76,2.28-3,10.16-2.58,10.
24216-2.58l110.6,36.41L765,1137.14l51-72.81,21.69,2.58Z" style="fill:#dfc677;fill-rule:evenodd"/><path d="M547.18,1177.94a17.21,17.21,0,0,0,4.09,3.34c3.8,2.58,9.41,5.62,13.2,10.16,1.52-2.27,5.31-6.37,12,0s15,1.83,20.17,3.34c5.31,1.83,5.61,2.58,5.61,2.58s3-2.58,9.71-5.31c4.1-1.52,8.95-2.58,14.26-4.09,4.85-1.06,10.16-2.58,13.81-2.58,3.34,2.27,15.32,15,63.41-3.79,45.36-17.6,55.82-19.57,63.41-16.85.76-1.82,1.52-5.31,13.2-4.85,0-4.85-9.71-21.39-9.71-21.39l-53.55-18.35H687.5l-87.83,16.08L551,1164l-3.79,14Z" style="fill:#c4a859;fill-rule:evenodd"/><path d="M517.9,1147.15s1.06,8.19,13.2,16.84c12,8.64,15.77,13.8,15.77,13.8s2.28-3,4.1-6.06c1.82-3.34,3.34-7.13,6.37-8.19,6.07-2.58,19.87,2.27,22.91,1.51,2.58-.75,1.82-6.06,4.55-6.06,6.37-.31,10.46,4.09,12.74,4.09s7.88-.3,8.64-1.51,1.06-13.81,9.71-19.88c9.41-6.67,20.94-3.79,24-2.27,0,2.27.3,7.89,6.37,8.19s6.67-.76,12,1.06,11.68-.3,14.56,8.64c2.58-.75,8.65-1.51,7.13-10.16,3-2.27,5.62-3.79,12-12.74,1.52-2.27,4.09-4.85,6.07-8.19,5.31,0,11.68-1.06,20.17,6.37-2.58,1.82-4.1,3-4.85,4.85a54.56,54.56,0,0,1,6.06,7.13c2.28,3,3.8,6.68,6.68,7.44,6.37,1.82,16.84-.76,28.52,0,11.23.76,20.63,4.85,24.73,7.43,1.52-.75,1.52-1.06,5.31-.3s6.67,1.06,2.58-3.79c2.27,1.06,4.85,3.34,7.13,1.06s4.09-5.61,10.46-6.37,8.65.3,11.23-6.37c3.34-8.19-8.19-8.19-8.19-8.19s5.31-4.86,11.23-11.23c7.13-6.67,15.32-15.32,17.29-25.94,3.34-19.57-15.77-22.14-15.77-22.14l-92.69,28.52-113.32-5.62-96.63,48.09h0Z" style="fill:#927d49;fill-rule:evenodd"/><path d="M434.62,879.4s-3,3.79-4.85,12.74-1.06,7.89-2.58,14.26S407,976.18,414,997.57s19.12,29.28,26.7,46.57c1.52,3.79,3,6.07,3.79,9.41,2.58,11.22.31,19.87,3.34,31.1,1.06,3.79,3.8,8.19,7.89,12.74,9,9.4,23.67,18.35,30,24.72,8.94,9.41,21.69,28.53,37.92,30.34,8.65,1.06,20.94-2.58,31.1-8.64,9-5.62,14.56-13.5,24-18,6.67-3.34,13.8-4.55,20.17-6.07,13.2-2.58,25.19-3,32.32-1.52,10.92,2.28,36.71,10.17,51,10.17a138.73,138.73,0,0,0,33.07-4.55c21.69-6.37,47.93-17.3,65.23-22.15,10.16-3,18.35-3.79,26.7-5.61,14.26-3.34,26.24-7.89,33.07-16.54-4.55-5.31-10.16-13.5-40.51-13.2-34.43.76-74.18,19.87-93.75,22.91s-28.06,5.61-49.91-2.28C634.71,1079,634,1073.73,634,1073.73S611.51,1058,602.1,1017.9s0-69.32,24.43-97.09c6.37-7.13,4.85-13.5,4.85-13.5s16.08-21.69,11.68-42c-4.85-20.18-35.95-16.08-35.95-16.08L434.63,879.4h0Z" style="fill:#6e6342;fill-rule:evenodd"/><path d="M460.56,946.91a15.72,15.72,0,0,0-1.82,8.19c.3,4.09,1.52,9.4,13.8,21.39,10.47,10.46,8.19,22.14,8.19,22.14S486,999.69,500.3,993c11.23-5.31,15,4.1,15,4.1a31.71,31.71,0,0,1,10.47-3.34,22.91,22.91,0,0,0,9.4-3s13.2,13.5,24.73,19.87c10.47,5.62,16.54,9.41,21.7,5.62,4.85-3.34,4.85-10.17,4.54-13.2a39.39,39.39,0,0,0-4.54-7.89c-3.34-4.85-8.65-10.47-9-15-.76-10.46,7.89-22.91,6.06-25.94s-8.64-3.79-25.48,2.28c-17.44,5.76-92.69-9.56-92.69-9.56h0Z" style="fill:#39331f;fill-rule:evenodd"/><path d="M500.3,1014.72s-8.64-8.19-5.61-47.94a49.38,49.38,0,0,1,10.92,1.06S510.32,998.64,500.3,1014.72Z" style="fill:#292311;fill-rule:evenodd"/><path d="M438.72,849.06a23.74,23.74,0,0,0,3.34-3c-3,5.61-16.85,28.06-5.62,63.41,11.23,35.19,39.44,61.43,74.18,62.65s53-15.78,73.88-41.26c8.19-10.16,17.6-22.91,25.94-31.55,12.44-13.51,22.15-17.3,22.15-30.34,0-26.7-27.31-38.69-67.51-50.67S488.62,807.8,469.81,816c-18.35,8.94-26.24,18.35-31.1,33.07h0Z" style="fill:#252211;fill-rule:evenodd"/><path d="M567.81,1026.7l3-1.52s.75-12,5.61-11.68c4.85.76,7.13,7.14,6.67,9.41-.3,2.27-1.51,6.07-6.37,5.61-6.37.15-8.94-1.82-8.94-1.82Z" style="fill:#3f3824;fill-rule:evenodd"/><path d="M554.31,975.73s3-1.06,6.67,2.58c3,0,16.08-1.52,20.18,1.06s5.31,4.85,5.31,4.85-15.32,3.34-23.67,0c-8.49-2.88-8.49-8.49-8.49-8.49Z" style="fill:#2d2815;fill-rule:evenodd"/><path d="M621.82,978c0-.76-8.19-6.37-16.84-8.2-1.52-.3-1.83.76-3,.76-.76-.3-1.06-2.58-1.06-2.58L596,970.57s-.76,1.06,1.82,3c2.27,1.82,6.07,3.34,7.13,6.37s1.06,4.09,1.52,4.55c.3.3,5.61,0,8.19-1.52s7.44-4,7.13-5h0Z" style="fill:#82764f;fill-rule:evenodd"/><path d="M545.21,1008.8s1.51-10.46,11.68-10.92c10.46-.76,12.44,9.4,12.44,9.4l-6.07,6.07c0-.15-4.55-6.52-18-4.55Z" style="fill:#2d2816;fill-rule:evenodd"/><path d="M611.2,963.74s-5.62,6.07-18.05,7.89c-1.06-1.52-3.34-4.55,0-9.4s7.13-6.37,10.92-4.86a8.88,8.88,0,0,1,7.13,6.37Z" style="fill:#574f35;fill-rule:evenodd"/>
242<path d="M634.1,971.18c.31-1.52-.75-1.82,0-2.58s4.86-2.27,5.62-1.52c.3.31,0,1.52,0,3s0,3-.76,4.09c-1.06,1.52-4.09,2.28-5.61,1.83s-1.82-2.58-1.82-3c.75-.3,2.57-1.06,2.57-1.82ZM660,954.8c0-.76,2.58-2.28,4.1-2.28,2.27,0,2.27,1.82,2.58,2.28.75.3.75-.31,1.51,1.06s1.83,3.79,1.06,5.31-3.79,2.57-4.54,2.27c-1.06-.76-4.4-7.58-4.71-8.64Z" style="fill:#82764f;fill-rule:evenodd"/><path d="M607.86,974.67s3.34.75,7.89,4.55c-1.52,1.06-3.8,2.27-3.8,2.27s-.3-3.49-4.09-6.83Z" style="fill:#6e6342;fill-rule:evenodd"/><path d="M600.43,941.29c-.76-.75,2.27-2.57,4.09-2.27s2.58,1.52,4.55,1.82,2.28-.76,3-1.52,3.34-.3,3.79,0a8.45,8.45,0,0,1,.76,1.06,4.2,4.2,0,0,1,1.51-3,4.79,4.79,0,0,1,4.1-.76c.3,1.06,1.82,4.85,1.52,5.61s-4.85,1.83-5.62,1.06c.76,1.83,4.1,5.62,4.55,6.37s-3.34,2.58-4.85,2.28c-2.12-.15-15.17-7.74-17.44-10.62Zm19.87-25.18a3.52,3.52,0,0,0-1.52-1.82c-1.06-.3-4.55,0-4.55,1.82s3,12,6.37,17.3c3.8,5.31,6.37,9.7,8.95,10.92a3.52,3.52,0,0,0,4.55-1.52c.3-.76,1.06-6.37.76-19.57s-.76-25.94-1.52-26.7-3.79-.75-4.85.76-7.89,16.54-8.2,18.81h0Z" style="fill:#585136;fill-rule:evenodd"/><path d="M606.8,993.78s-5.31-3.34-10.47-1.06c-4.85,2.28-4.55,11.23-4.55,11.23a7.19,7.19,0,0,0,6.68-.76c3.34-2.27,7.58-6.06,8.34-9.4Z" style="fill:#574f35;fill-rule:evenodd"/><path d="M616.81,1005.77c-.3-3-3-3-3-4.55a3.41,3.41,0,0,1,3.33-2.58c1.52,0,3,1.82,4.86,3,1.82,1.06,4.55,3,4.85,5.31s-3,8.64-6.67,8.64-2.58-6.83-3.34-9.86Zm29.28-4.1s-6.07,1.82-5.62,0,1.83-2.27,3.8-2.27a6,6,0,0,1,3.79-1.83,3.29,3.29,0,0,1,2.27.76s4.1-1.82,5.31-.76.31,1.06,1.06,2.28a10.67,10.67,0,0,1,1.83,4.55c0,1.21-4.55,3.79-8.2,3.34-4.24-.91-3.49-5.31-4.24-6.07Zm35.34-6.83s1.82,1.06.31,2.28c-1.06,1.06-6.37,3-10.93,3.34-4.55,0-8.64.75-8.64-.76s3.79-4.55,6.06-5.31a4.84,4.84,0,0,1,3.8-1.82c1.82,0,8.94-.76,10.92-1.06,1.82-.31,3.34.75,2.27,2.27-.45,1.06-3.79,1.06-3.79,1.06ZM691.9,948s-2.28,4.85-4.85,4.85c-2.58-.3-2.58-1.06-2.58-1.82,0-1.06,2.58-3.79,2.27-4.55-.75,0-2.58,0-2.27-1.82,0-1.52,2.58-3.34,4.85-3a10,10,0,0,1,6.07-2.27c2.58,0,4.85.75,4.85,2.27s-3,4.85-4.1,5.62c-1.21,1.21-2.73,2-4.24.75Zm-34.59,89.65s-3,.31-3,1.82c0,.76.75.76,1.82.31a8.24,8.24,0,0,0,1.82-.31c.3.31.3,1.82,2.58,1.82a14.41,14.41,0,0,0,5.31-1.82c1.82-.75,3.34-1.52,3.34-3-.76-2.58-2.28-3.8-4.55-3.8a6.05,6.05,0,0,0-3.34.76s-.76-1.52-3.34,0-2.28,1.52-1.52,2.28c1.36,1.21.91,2,.91,2Zm-17.14,15.78c0-.76,3.79-2.28,4.85-1.82,1.06.3,4.09,6.06,4.09,6.67,0,.76-3.79,2.58-5.31,2.58s-4.09-2.58-4.09-3c0-.3,1.82-.75,1.82-1.06.45-.75-1.36-2.58-1.36-3.34Zm-12-22.15c.76-.3.76-1.06,1.82-1.82a2.61,2.61,0,0,1,2.28-.3,3.69,3.69,0,0,1,2.58-1.83c1.82-.3,3.34,0,3,.76,0,2.28,1.52,3.79,1.52,5.61s-1.06,4.1-4.85,5.62c-3.79,1.06-8.95,1.06-9.71.76s-1.52-3.34-.76-4.86,2.88-3.18,4.1-3.94h0Z" style="fill:#82764f;fill-rule:evenodd"/><path d="M633,1032.31s-2.58,1.52-2.58,2.28a6.74,6.74,0,0,0-.3,2.27c0,.45,3.34-.3,3.79-.76.15-.3-.91-3-.91-3.79Z" style="fill:#6e6342;fill-rule:evenodd"/><path d="M610.44,1025.18c1.51.31,4.09,0,6.06.76,1.52.76,2.58,2.28,1.06,4.1s-3,4.55-6.37,4.09c-3.79-.3-7.43-2.27-7.43-3.79a7.27,7.27,0,0,1,1.82-5.31c1.52-1.21,2.27-.45,4.85.15h0Z" style="fill:#585136;fill-rule:evenodd"/><path d="M608.62,1026.7s-4.85,3.79-6.07,5.62c-1.52,1.82-8.95,11.22-11.22,13.19a28.57,28.57,0,0,1,2.57-3.79,15.52,15.52,0,0,0-6.37,8.19c-1.82,5.62,10.17,8.65,18.05,10.93s10.93,3,10.93,3a84.72,84.72,0,0,1-7.44-13.8c-3-7.13-4.55-7.89-2.58-11.23,1.52-3.34,3.8-5.61,3.8-8.19C609.38,1028.22,608.62,1026.7,608.62,1026.7Z" style="fill:#574f35;fill-rule:evenodd"/><path d="M435.68,1038.69a9.24,9.24,0,0,0,3.34,0c2.27-.31,25.94-9,50.67-7.44a271.06,271.06,0,0,1,54.76,9c31.1,8.19,69.78,24.42,94.81,33.68,6.67,2.57,13.2,7.13,18,8.94,19.12,7.44,19.87,7.44,31.1,9.41,13.2,1.82,26.7-2.58,40.81-5.61,17.29-3.8,46.87-5.62,72.81-9.41a148.73,148.73,0,0,0,24.73-5.61s-20.63,20.63-70.09,28.06a219.27,219.27,0,0,1-60.37.76c-15.78-1.52-26.24-3.8-34.13-6.07-8.95-2.58-27.31-9.41-49.91-15-15.78-4.1-33.38-7.13-53.55-10.92-49.76-9.11-103.76-19.57-123-29.73Z" style="fill:#252211;fill-rule:evenodd"/><line x1="409.89" y1="846.33" x2="283.52" y2="728.31" style="fill:none"/><path d="M379.85,944.94c-12,10.16-24.73,19.87-37.16,29.27L305.22,1003c-12.74,9.4-25.18,19.11-37.93,28.52s-25.48,18.35-39,27c12-10.16,24.73-19.57,37.47-28.82S291.71,1011.38,304,1002l37.47-28.83c12.89-9.4,25.33-19.11,38.38-28.21Zm-66.29,106.19s13.5-11.23,30.34-27c20.93-19.56,46.57-44.6,54.76-49.14l-85.11,76.15Z" style="fill:#cfb66c;fill-rule:evenodd"/>
242<path d="M313.56,1051.12c6.68-6.67,13.81-13.19,20.94-19.57l10.92-9.4c3.34-3,7.14-6.37,10.47-9.71,6.67-6.67,13.2-13.81,19.87-20.63a127.54,127.54,0,0,1,10.47-9.71,28.3,28.3,0,0,1,6.06-4.1c1.83-1.06,3.8-3,6.37-3.34-1.51,2.28-3.33,3.34-4.85,5.31-1.82,1.52-3.34,3.34-4.85,4.85-3.34,3.34-7.13,6.37-10.47,9.41-7.13,6.07-14.56,12-21.69,18.35s-13.8,13.2-20.94,19.57c-7.73,6.53-14.86,12.9-22.3,19Zm90.72-60.68s-49.45,48.4-59.62,56.28Z" style="fill:#cfb66c;fill-rule:evenodd"/><path d="M404.28,990.44A161.47,161.47,0,0,1,390,1005l-15,14.26c-4.85,4.85-9.41,9.71-14.56,14.56-5.31,4.55-10.16,9-15.78,13.2l14.56-14.26c4.86-4.85,10.17-8.94,15.33-13.8l14.56-14.26c5-5,9.86-9.86,15.17-14.26Zm2.27,26.24a315.38,315.38,0,0,1-16.08,37.17c-12.74,25.49-31.85,57.34-40.2,73.58l56.28-110.75Z" style="fill:#cfb66c;fill-rule:evenodd"/><path d="M406.55,1016.69c0,5.61-1.52,10.47-3.34,15.32a150.66,150.66,0,0,1-6.06,14.26c-2.28,4.55-4.86,9.41-7.44,13.81s-5.61,8.94-7.89,13.5l-15.32,27c-5.31,9-10.47,18.05-16.08,26.7,3.79-9.71,8.95-18.81,13.81-27.76,5.31-9,10.16-18,15-27.31a153.85,153.85,0,0,0,6.37-14.25c2.27-4.86,4.54-9.41,6.37-13.81,2.27-4.85,4.09-9.41,6.37-13.8,2.57-4.71,4.7-9.26,8.19-13.66Z" style="fill:#cfb66c;fill-rule:evenodd"/><path d="M460.56,1141.08s-15,19.87-13.5,45.05C451.15,1172.94,456.31,1152.76,460.56,1141.08ZM474.82,1161s-5.31,54-9.71,80.55C471.33,1210.86,472.54,1213.44,474.82,1161Zm99.36,83.74s-22.45,66-22.91,84.34C556.13,1310.22,565.53,1271.69,574.18,1244.69Z" style="fill:#dec270;fill-rule:evenodd"/><path d="M626.67,1137s36.41,60.07,63.72,111.34C683,1222.54,666,1175.22,626.67,1137Z" style="fill:#cbaf59;fill-rule:evenodd"/><path d="M724.52,1225.43a1104.54,1104.54,0,0,1,54,109.07C775.49,1308.71,767.29,1264.57,724.52,1225.43Z" style="fill:#e3c677;fill-rule:evenodd"/><path d="M1012.14,1314c6.06-3.79,18.05-24.43,28.52-29.58,10.46-5.31,18.35-6.37,27.76-16.84,9.4-10.93,12-17.6,32.61-26.24,28.83-12.45,9-28.53,9-28.53a93.07,93.07,0,0,1,10.16-8.64c7.44-5.61,16.08-12.44,15.33-24.43-1.06-20.17-4.85-49.45-21.39-66.44,16.08-3.34,46.87-5.61,66-10.46,22.14-5.62,32.31-13.51,32.31-13.51s-12.74-21.69,7.89-43.53,37.47-34.89,49.91-59.32c-14.26-1.82-36-9.4-91.48,11.68a69.63,69.63,0,0,1,8.65,4.85s-34.13,9.41-46.57,19.88c-21.7,18.35-24.43,33.37-47.94,44.6s-47.18,8.19-66.74,17.29-22.45,16.84-29.59,20.18c1.52,1.82-.3,4.85,2.58,7.43-1.82,2.58-12.44,19.87-23.21,19.87,1.06,4.1,10.16,7.13,10.16,7.13s-6.67,4.86-23.66,6.07c8.64,9,16.84,18.81,39.44,33.07-1.82,3.79-9.41,9.41-6.37,16.54,3.34,7.13,12,16.84,46.57,24.73-17.6.75-38.22,4.85-66,1.06-27.76-3.34-32.31-5.31-49.45-1.06,1.82,1.82,6.67,1.82,10.92,6.67-4.55.3-33.07-3.34-42.78,9.41-10.16,13.19-14.56,34.89-13.8,49.45-5.31,2.58-10.47,7.13-7.89,16.54s16.08,12.44,24.73,18.35c8.64,6.37,9.4,8.64,17.6,7.13,8.64-1.82,21.38-10.46,28.82-10.46s12.74,5.61,12.74,5.61,20.18-9.71,22.15-7.89c1.82,1.82.3,13.5,2.27,15.32,2,1.37,24.73-12.13,30.8-15.93Z" style="fill:#ecd592;fill-rule:evenodd"/><path d="M1453.13,706.92c-94.81-244.84-329.19-290.2-329.19-290.2H455.25l2.58,249.39H591V1223H455.24v248.94h650.19c156.7,0,282.31-157.47,282.31-157.47,201.15-285.49,65.38-607.55,65.38-607.55Zm-344.21,439.77s-51,73.58-106.49,73.58h-111L888.8,666.72h142.45s66,13.8,112.11,144.41c0,0,61.13,187-34.44,335.56Z" style="fill:#fff;fill-opacity:0.800000011920929;fill-rule:evenodd"/></g></g></g></svg>'),b=u('<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#clip0_46_558)"><circle cx="16" cy="16" r="16" fill="#627EEA"/><path d="M15.9957 20.4203L9.14282 16.3876L15.9957 5.14258V20.4203Z" fill="white"/><path d="M15.9957 26.8573L9.30029 17.396L15.9957 21.3511V26.8573Z" fill="white"/><path d="M16.2319 20.4203L23.0849 16.3876L16.2319 5.14258V20.4203Z" fill="#C1CCF7"/><path d="M16.3107 26.8573L23.0848 17.396L16.3107 21.3511V26.8573Z" fill="#C1CCF7"/></g><defs><clipPath id="clip0_46_558"><rect width="32" height="32" fill="white"/></clipPath></defs></svg>'),y=u('<svg version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" style="enable-background:new 0 0 256 256;" xml:space="preserve"><style type="text/css">.st0{fill:none;} .st1{fill:#FFFFFF;} .st2{fill:#662482;}</style><g><path class="st0" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2 
242c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8 c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5 c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"/> <circle class="st1" cx="137.9" cy="99" r="12.1"/><path class="st1" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5 c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4 c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5 c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5 c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"/><path class="st2" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5 c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2 c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8 C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5 c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4 c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7 c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5 c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99 s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"/></g></svg>'),g=i.dy`
243  <svg
244    width="32"
245    height="32"
246    viewBox="3 3 26 26"
247    fill="none"
248    xmlns="http://www.w3.org/2000/svg"
249    class="primary-icon"
250  >
251    <path
252      d="M20.375 16.875H14.25V15.125H20.375L19.5 13.375H21.25L23 16L21.25 18.625H19.5L20.375 16.875ZM20.9509 11.051L19.7128 12.2886C19.226 11.8 18.6473 11.4125 18.0101 11.1484C17.3729 10.8844 16.6897 10.749 16 10.75C13.1006 10.75 10.75 13.1006 10.75 16C10.75 18.8994 13.1006 21.25 16 21.25C17.4107 21.25 18.7309 20.6923 19.71 19.7147L20.9462 20.9532C20.297 21.6031 19.5259 22.1184 18.6771 22.4696C17.8283 22.8209 16.9186 23.0011 16 23C12.1341 23 9 19.8659 9 16C9 12.1341 12.1341 9 16 9C17.8816 9 19.647 9.74667 20.9509 11.051Z"
253      fill="currentColor"
254    />
255  </svg>
256`,m=i.dy`
257  <svg
258    width="13"
259    height="12"
260    viewBox="0 0 13 12"
261    xmlns="http://www.w3.org/2000/svg"
262    class="secondary-icon"
263    stroke="currentColor"
264  >
265    <path
266      d="M9.30688 5.22537L11.1669 3.36536L9.30688 1.50537"
267      stroke-width="1.33333"
268      stroke-linecap="round"
269      stroke-linejoin="round"
270    />
271    <path
272      d="M2.16699 3.36523H11.167"
273      stroke-width="1.33333"
274      stroke-linecap="round"
275      stroke-linejoin="round"
276    />
277    <path
278      d="M4.02698 6.77539L2.16699 8.63541L4.02698 10.4954"
279      stroke-width="1.33333"
280      stroke-linecap="round"
281      stroke-linejoin="round"
282    />
283    <path
284      d="M11.167 8.63525H2.16699"
285      stroke-width="1.33333"
286      stroke-linecap="round"
287      stroke-linejoin="round"
288    />
289  </svg>
290`,w=i.dy`
291  <svg
292    xmlns="http://www.w3.org/2000/svg"
293    width="24"
294    height="24"
295    viewBox="-3 -3 30 30"
296    fill="none"
297    stroke="currentColor"
298    stroke-width="2"
299    stroke-linecap="round"
300    stroke-linejoin="round"
301    class="primary-icon"
302  >
303    <path d="M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2" />
304    <circle cx="12" cy="7" r="4" />
305  </svg>
306`;var v=r(27433);function x(e){return({[n.fR.SignerType.BTC]:l,[n.fR.SignerType.EVM]:b,[n.fR.SignerType.CKB]:h,[n.fR.SignerType.Nostr]:y,[n.fR.SignerType.Doge]:p})[e]}var S=function(e,t,r,n){var i,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(c=(s<3?i(c):s>3?i(t,r,c):i(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c};function T(e,t=9,r=6){return e&&e.length>t+r+3?`${e.slice(0,t)}...${e.slice(-r)}`:e}let C=class extends i.oi{constructor(){super(...arguments),this.selectingClient=!1}willUpdate(e){(!this.recommendedAddress||!this.internalAddress||!this.balance||e.has("signer"))&&this.signer&&(this.signer.getRecommendedAddress().then(e=>this.recommendedAddress=e),this.signer.getInternalAddress().then(e=>this.internalAddress=e),this.signer.getBalance().then(e=>this.balance=e))}render(){let{wallet:e,signer:t,internalAddress:r,balance:s,recommendedAddress:c}=this;if(!e||!t)return i.dy`<div></div>`;let a=this.selectingClient&&this.clientOptions?f(this.clientOptions,({name:e})=>e,({client:e,name:t,icon:r})=>i.dy`
307          <ccc-button
308            class="mt-1"
309            @click=${()=>this.dispatchEvent(new v.$s(e))}
310          >
311            <img src=${r??h} alt=${t} />
312            ${t}
313          </ccc-button>
314        `):i.dy`
315          <div class="position-relative">
316            <img
317              class="connecting-wallet-icon"
318              src=${e.icon}
319              alt=${e.name}
320            />
321            <img
322              class="connected-type-icon"
323              src=${x(t.type)}
324              alt=${t.type}
325            />
326          </div>
327
328          <ccc-copy-button
329            value=${c}
330            class="text-bold fs-xl mt-2"
331          >
332            ${T(c)}
333          </ccc-copy-button>
334          <div class="text-bold fs-md">
335            ${n.fR.fixedPointToString(s??n.fR.Zero)} CKB
336          </div>
337          <ccc-copy-button
338            value=${r}
339            class="text-bold text-tip fs-md"
340            style="margin-top: 0.5rem"
341          >
342            ${T(r,11,9)}
343          </ccc-copy-button>
344
345          <ccc-button
346            class="mt-2"
347            @click=${()=>window.open("https://mobit.app/","_blank")}
348          >
349            ${w} Manage
350          </ccc-button>
351
352          <ccc-button
353            class="mt-1"
354            @click=${()=>this.dispatchEvent(new Event("disconnect"))}
355          >
356            ${g} Disconnect
357          </ccc-button>
358
359          ${null==this.hideMark?i.dy`<a href="https://github.com/ckb-devrel/ccc" class="mark"
360                >Powered by CCC</a
361              >`:""}
362
363          <div
364            class="switch-btn-container ${this.clientOptions?"cursor-pointer":""}"
365            @click=${()=>this.selectingClient=!!this.clientOptions}
366          >
367            <div class="switch-line"></div>
368            <div class="switch-content ml-2 mr-2 fs-sm">
369              <img class="sm-chain-logo" src=${h} alt="Nervos Network" />
370              ${"ckb"===t.client.addressPrefix?"Mainnet":"Testnet"}
371              ${["ckb","ckt"].includes(t.client.addressPrefix)?"":` ${t.client.addressPrefix}`}
372              ${this.clientOptions?m:void 0}
373            </div>
374            <div class="switch-line"></div>
375          </div>
376        `;return i.dy`
377      <ccc-dialog
378        header=${this.selectingClient?"Select Network":void 0}
379        ?canBack=${this.selectingClient}
380        @back=${()=>this.selectingClient=!1}
381      >
382        ${a}
383      </ccc-dialog>
384    `}updated(){this.dispatchEvent(new Event("updated",{bubbles:!0,composed:!0}))}};C.styles=i.iv`
385    :host {
386      width: 100%;
387      display: flex;
388      flex-direction: column;
389      align-items: center;
390    }
391
392    .primary-icon {
393      color: var(--icon-primary);
394    }
395    .secondary-icon {
396      color: var(--icon-secondary);
397    }
398
399    .text-bold {
400      font-weight: bold;
401    }
402
403    .text-tip {
404      color: var(--tip-color);
405    }
406
407    .fs-sm {
408      font-size: 0.8rem;
409    }
410    .fs-md {
411      font-size: 1rem;
412    }
413    .fs-xl {
414      font-size: 1.5rem;
415    }
416
417    .mt-1 {
418      margin-top: 0.7rem;
419    }
420    .mt-2 {
421      margin-top: 1rem;
422    }
423    .ml-1 {
424      margin-left: 0.7em;
425    }
426    .ml-2 {
427      margin-left: 1em;
428    }
429    .mr-1 {
430      margin-right: 0.7rem;
431    }
432    .mr-2 {
433      margin-right: 1rem;
434    }
435
436    .connecting-wallet-icon {
437      width: 5rem;
438      height: 5rem;
439      border-radius: 1rem;
440    }
441
442    .position-relative {
443      position: relative;
444    }
445
446    .connected-type-icon {
447      position: absolute;
448      width: 1.5rem;
449      height: 1.5rem;
450      right: -0.5rem;
451      bottom: -0.5rem;
452    }
453
454    .switch-btn-container {
455      width: 100%;
456      margin-top: 1.2rem;
457      display: flex;
458      justify-content: center;
459      align-items: center;
460    }
461
462    .cursor-pointer {
463      cursor: pointer;
464    }
465
466    .switch-content {
467      display: flex;
468      align-items: center;
469      gap: 0.7rem;
470    }
471
472    .switch-line {
473      flex: 1;
474      height: 1px;
475      background-color: var(--divider);
476    }
477
478    .switching-status-dot {
479      width: 0.5rem;
480      height: 0.5rem;
481      background: #0f0;
482      border-radius: 50%;
483    }
484
485    .copy-btn {
486      width: 1.5rem;
487      height: 1.5rem;
488    }
489
490    .copy-btn-sm {
491      width: 1rem;
492      height: 1rem;
493    }
494
495    .sm-chain-logo {
496      width: 1.125rem;
497    }
498
499    .mark {
500      text-decoration: none;
501      cursor: pointer;
502      opacity: 0.2;
503      margin: 0;
504      margin-top: 0.25rem;
505      margin-bottom: -1.05rem;
506      color: var(--tip-color);
507      font-size: 0.6rem;
508    }
509
510    .mark:hover {
511      opacity: 0.5;
512    }
513  `,S([(0,s.Cb)()],C.prototype,"hideMark",void 0),S([(0,s.Cb)()],C.prototype,"wallet",void 0),S([(0,s.Cb)()],C.prototype,"signer",void 0),S([(0,s.Cb)()],C.prototype,"clientOptions",void 0),S([(0,s.SB)()],C.prototype,"recommendedAddress",void 0),S([(0,s.SB)()],C.prototype,"internalAddress",void 0),S([(0,s.SB)()],C.prototype,"balance",void 0),S([(0,s.SB)()],C.prototype,"selectingClient",void 0),C=S([(0,s.Mo)("ccc-connected-scene")],C);let A=i.dy`
514  <svg
515    width="12"
516    height="12"
517    viewBox="0 0 12 12"
518    xmlns="http://www.w3.org/2000/svg"
519    fill="currentColor"
520    class="primary-icon"
521  >
522    <path
523      d="M11.398 1.16864C11.0369 1.16864 10.7961 1.41021 10.7961 1.77256V2.37648C10.1941 1.531 9.35141 0.866684 8.38828 0.504333C5.37851 -0.82429 1.82699 0.564725 0.502691 3.58432C-0.821607 6.60392 0.562886 10.167 3.57265 11.4957C6.58242 12.8243 10.1339 11.4353 11.4582 8.41568H11.398C11.398 8.05333 11.1573 7.81176 10.7961 7.81176C10.4349 7.81176 10.1941 8.05333 10.1941 8.41568H10.1339C9.59219 9.32156 8.80965 10.0463 7.78633 10.469C5.31832 11.4957 2.54933 10.2878 1.52601 7.81176C0.502691 5.33569 1.7066 2.49727 4.17461 1.531C6.40183 0.564725 8.93004 1.531 10.1339 3.58432H8.99023C8.62906 3.58432 8.38828 3.82589 8.38828 4.18824C8.38828 4.55059 8.62906 4.79216 8.99023 4.79216H11.398C11.7592 4.79216 12 4.55059 12 4.18824V1.77256C12 1.41021 11.7592 1.16864 11.398 1.16864Z"
524    />
525  </svg>
526`;var k=function(e,t,r,n){var i,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(c=(s<3?i(c):s>3?i(t,r,c):i(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c};let E=class extends i.oi{constructor(){super(...arguments),this.signerSelectedHandler=(e,t)=>{this.connectingError=void 0,this.selectedWallet=e,this.selectedSigner=t,(async()=>{let{signer:r}=t;try{if(await r.connect(),!await r.isConnected()){this.connectingError="Unknown connection status";return}}catch(t){if("object"!=typeof t||null===t){this.connectingError=JSON.stringify(t);return}if(!("message"in t)){this.connectingError="Unknown error";return}let e=t.message;if("string"==typeof e){this.connectingError=e;return}this.connectingError=JSON.stringify(e);return}this.dispatchEvent(new v.M(()=>{this.dispatchEvent(new v.Iu(e.name,t.name))}))})()}}render(){let[e,t]=(()=>{var e,t,r,n,s,c,a,o;return this.selectedWallet?this.selectedSigner?(s=this.selectedWallet,c=this.selectedSigner,a=this.connectingError,o=this.signerSelectedHandler,[s.name,i.dy`
527      <img
528        class="connecting-wallet-icon mb-1 mt-1"
529        src=${s.icon}
530        alt=${s.name}
531      />
532      <span class="text-bold"
533        >${a?`Failed to open ${s.name}`:`Opening ${s.name}...`}</span
534      >
535      <span class="text-tip text-center"
536        >${a??"Confirm connection in the wallet"}</span
537      >
538      <ccc-button-pill
539        class="mt-2"
540        @click=${()=>o(s,c)}
541      >
542        ${A} Try again
543      </ccc-button-pill>
544    `]):(n=this.selectedWallet,["Select a Chain",i.dy`
545      <img class="wallet-icon mt-1" src=${n.icon} alt=${n.name} />
546      <span class="mb-1">${n.name}</span>
547      ${f(n.signers,e=>e.name,e=>i.dy`
548          <ccc-button
549            class="mt-1"
550            @click=${async()=>{this.signerSelectedHandler(n,e)}}
551          >
552            <img
553              src=${x(e.signer.type)}
554              alt=${e.signer.type}
555            />
556            ${e.name}
557          </ccc-button>
558        `)}
559    `]):(e=this.wallets??[],t=e=>{this.selectedWallet=e},r=this.signerSelectedHandler,["Connect Wallet",f(e,e=>e.name,e=>i.dy`
560        <ccc-button
561          class="mt-1"
562          @click=${async()=>{1===e.signers.length?r(e,e.signers[0]):t(e)}}
563        >
564          <img src=${e.icon} alt=${e.name} />
565          ${e.name}
566        </ccc-button>
567      `)])})();return i.dy`<ccc-dialog
568      header=${e}
569      ?canBack=${this.selectedSigner||this.selectedWallet}
570      @back=${()=>{(!this.selectedSigner||this.selectedWallet&&this.selectedWallet.signers.length<=1)&&(this.selectedWallet=void 0),this.selectedSigner=void 0,this.connectingError=void 0}}
571    >
572      ${t}
573    </ccc-dialog>`}onClose(){this.selectedWallet=void 0,this.selectedSigner=void 0,this.connectingError=void 0}updated(){this.dispatchEvent(new Event("updated",{bubbles:!0,composed:!0}))}};E.styles=i.iv`
574    .primary-icon {
575      color: var(--icon-primary);
576    }
577
578    :host {
579      display: block;
580    }
581
582    .text-bold {
583      font-weight: bold;
584    }
585
586    .text-tip {
587      color: var(--tip-color);
588    }
589
590    .mb-1 {
591      margin-bottom: 0.7rem;
592    }
593    .mb-2 {
594      margin-bottom: 1rem;
595    }
596    .mt-1 {
597      margin-top: 0.7rem;
598    }
599    .mt-2 {
600      margin-top: 1rem;
601    }
602    .ml-1 {
603      margin-left: 0.7rem;
604    }
605    .ml-2 {
606      margin-left: 1em;
607    }
608    .mr-1 {
609      margin-right: 0.7rem;
610    }
611    .mr-2 {
612      margin-right: 1rem;
613    }
614
615    .wallet-icon {
616      width: 4rem;
617      height: 4rem;
618      margin-bottom: 0.5rem;
619      border-radius: 0.8rem;
620    }
621
622    .connecting-wallet-icon {
623      width: 5rem;
624      height: 5rem;
625      border-radius: 1rem;
626    }
627
628    .text-center {
629      text-align: center;
630    }
631  `,k([(0,s.Cb)()],E.prototype,"wallets",void 0),k([(0,s.SB)()],E.prototype,"selectedWallet",void 0),k([(0,s.SB)()],E.prototype,"selectedSigner",void 0),k([(0,s.SB)()],E.prototype,"connectingError",void 0),k([(0,s.Mo)("ccc-selecting-scene")],E)},70567:function(e,t,r){"use strict";r.d(t,{at:function(){return d},m3:function(){return i},q5:function(){return u},xn:function(){return f}});var n,i,s=r(23685),c=r(70631),a=r(93841),o=r(96510);function d(e){try{let{words:t,prefix:r}
631=s.bech32m.decode(e,u),n=s.bech32m.fromWords(t),c=n[0],a=n.slice(1);if(c===i.Full)return{prefix:r,format:i.Full,payload:a}}catch(e){}try{let{prefix:t,words:r}=s.bech32.decode(e,u),n=s.bech32.fromWords(r),c=n[0],a=n.slice(1);if([i.FullData,i.FullType,i.Short].includes(c))return{prefix:t,format:c,payload:a}}catch(e){}throw Error(`Unknown address format ${e}`)}async function f(e,t,r,n){if(t===i.Full){if(r.length<33)throw Error(`Invalid full address without enough payload ${(0,o.C)(r)}`);return{script:{codeHash:r.slice(0,32),hashType:(0,c.$v)(r.slice(32,33)),args:r.slice(33)},prefix:e}}if(t===i.FullData){if(r.length<32)throw Error(`Invalid full data address without enough payload ${(0,o.C)(r)}`);return{script:{codeHash:r.slice(0,32),hashType:"data",args:r.slice(32)},prefix:e}}if(t===i.FullType){if(r.length<32)throw Error(`Invalid full type address without enough payload ${(0,o.C)(r)}`);return{script:{codeHash:r.slice(0,32),hashType:"type",args:r.slice(32)},prefix:e}}if(21!==r.length)throw Error(`Invalid short address without enough payload ${(0,o.C)(r)}`);let s=[a.s2.Secp256k1Blake160,a.s2.Secp256k1Multisig,a.s2.AnyoneCanPay][r[0]];if(void 0===s)throw Error(`Invalid short address with unknown script ${(0,o.C)(r)}`);return{script:await c.Xf.fromKnownScript(n,s,r.slice(1)),prefix:e}}(n=i||(i={}))[n.Full=0]="Full",n[n.Short=1]="Short",n[n.FullData=2]="FullData",n[n.FullType=4]="FullType";let u=1023},55075:function(e,t,r){"use strict";r.r(t),r.d(t,{ADDRESS_BECH32_LIMIT:function(){return n.q5},AddressFormat:function(){return n.m3},CKB_BLAKE2B_PERSONAL:function(){return u.Q},DEFAULT_CONFIRMED_BLOCK_TIME:function(){return c.NG},DEFAULT_MAX_FEE_RATE:function(){return d.OL},DEFAULT_MIN_FEE_RATE:function(){return d.FM},DEP_TYPES:function(){return s.vz},DEP_TYPE_TO_NUM:function(){return s.Bm},HASH_TYPES:function(){return i.SP},HASH_TYPE_TO_NUM:function(){return i.pN},JsonRpcTransformers:function(){return f._},MAINNET_SCRIPTS:function(){return a.L},MapLru:function(){return c.Vi},NUM_TO_DEP_TYPE:function(){return s.h2},NUM_TO_HASH_TYPE:function(){return i.gM},TESTNET_SCRIPTS:function(){return o.$},TransportFallback:function(){return l.N8},TransportHttp:function(){return l.N},TransportWebSocket:function(){return l.En},addressFromPayload:function(){return n.xn},addressPayloadFromString:function(){return n.at},clientSearchKeyRangeFrom:function(){return d.eP},filterCell:function(){return c.VI},filterData:function(){return c.cm},filterNumByRange:function(){return c.yX},filterScript:function(){return c.sx},filterScriptByLenRange:function(){return c.dr},transportFromUri:function(){return l.d0}});var n=r(70567),i=r(85882),s=r(50672),c=r(65771),a=r(87200),o=r(55114),d=r(34622),f=r(98497),u=r(42668),l=r(9339)},1169:function(e,t,r){"use strict";r.r(t),r.d(t,{Address:function(){return u},Bytes:function(){return o.Jj},Cell:function(){return d.bL},CellAny:function(){return d.p_},CellDep:function(){return d.L1},CellDepInfo:function(){return l.cW},CellDepVec:function(){return d.o5},CellInput:function(){return d.Gg},CellInputVec:function(){return d.$B},CellOutput:function(){return d.Of},CellOutputVec:function(){return d.Kd},Client:function(){return l.KU},ClientBlock:function(){return l.BO},ClientBlockHeader:function(){return l.q4},ClientBlockUncle:function(){return l.K},ClientCache:function(){return l.xv},ClientCacheMemory:function(){return l.hw},ClientIndexerSearchKey:function(){return l.f$},ClientIndexerSearchKeyFilter:function(){return l.CX},ClientIndexerSearchKeyTransaction:function(){return l.Ce},ClientJsonRpc:function(){return l.$D},ClientPublicMainnet:function(){return l.eQ},ClientPublicTestnet:function(){return l.jy},ClientTransactionResponse:function(){return l.tR},DepTypeCodec:function(){return d.x4},ErrorClientBase:function(){return l.r8},ErrorClientDuplicatedTransaction:function(){return l.$1},ErrorClientMaxFeeRateExceeded:function(){return l.Iv},ErrorClientRBFRejected:function(){return l.ZY},ErrorClientResolveUnknown:function(){return l.ll},ErrorClientVerification:function(){return l.oo},ErrorClientWaitTransactionTimeout:function(){return l.jd},ErrorTransactionInsufficientCapacity:function(){return d.oR},ErrorTransactionInsufficientCoin:function(){return d._V},HashTypeCodec:function(){return d.Vg},HasherCkb:function(){return p.xD},HasherKeecak256:function(){return p.u3},KnownScript:function(){return l.s2},One:function(){return h.fh},OutPoint:function(){return d.wD},RawTransaction:function(){return d.S7},RequestorJsonRpc:function(){return y.g},Script:function(){return d.Xf},ScriptInfo:function(){return l.r3},ScriptOpt:function(){return d.dU},ScriptVec:function(){return d.TL},Signature:function(){return eL},Signer:function(){return eN},SignerAlwaysError:function(){return eW},SignerBtc:function(){return eF},SignerBtcPublicKeyReadonly:function(){return eU},SignerCkbPrivateKey:function(){return ej},SignerCkbPublicKey:function(){return e$},SignerCkbScriptReadonly:function(){return eK},SignerDoge:function(){return eq},SignerDogeAddressReadonly:function(){return eV},SignerDogePrivateKey:function(){return ez},SignerDummy:function(){return eZ},SignerEvm:function(){return eY},SignerEvmAddressReadonly:function(){return eG},SignerInfo:function(){return eH},SignerNostr:function(){return eQ},SignerNostrPrivateKey:function(){return e0},SignerNostrPublicKeyReadonly:function(){return e1},SignerOpenLink:function(){return eJ},SignerSignType:function(){return s},SignerType:function(){return c},Since:function(){return d.U6},Transaction:function(){return d.YW},WitnessArgs:function(){return d.wh},Zero:function(){return h._Y},apply:function(){return eX.nn},btcEcdsaPublicKeyHash:function(){return H},btcP2pkhAddressFromPublicKey:function(){return F},btcPublicKeyFromP2pkhAddress:function(){return U},btcVarLengthBytesFrom:function(){return L},buildNostrEventFromMessage:function(){return eB},bytesConcat:function(){return o.i6},bytesConcatTo:function(){return o.dK},bytesEq:function(){return o.yU},bytesFrom:function(){return o.O6},bytesTo:function(){return o.cY},calcDaoClaimEpoch:function(){return d.WL},calcDaoProfit:function(){return d.Uk},depTypeFrom:function(){return d.mq},depTypeFromBytes:function(){return d.ri},depTypeToBytes:function(){return d.lY},epochFrom:function(){return d.bU},epochFromHex:function(){return d.MX},epochToHex:function(){return d.yx},fixedPointFrom:function(){return h.Fw},fixedPointToString:function(){return h.JV},hashCkb:function(){return p.BC},hashTypeFrom:function(){return d.o1},hashTypeFromBytes:function(){return d.$v},hashTypeId:function(){return d.SH},hashTypeToBytes:function(){return d.Bx},hexFrom:function(){return b.C},isWebview:function(){return eX.Sp},keystoreDecrypt:function(){return T},keystoreEncrypt:function(){return S},messageHashBtcEcdsa:function(){return N},messageHashCkbSecp256k1:function(){return E},messageHashDogeEcdsa:function(){return j},mol:function(){return C.A},nostrEventHash:function(){return eD},numBeFromBytes:function(){return A._e},numBeToBytes:function(){return A.cL},numFrom:function(){return A.Ti},numFromBytes:function(){return A.TY},numLeFromBytes:function(){return A.wL}
631,numLeToBytes:function(){return A.Db},numMax:function(){return A.lj},numMin:function(){return A.yz},numToBytes:function(){return A.Vl},numToHex:function(){return A.G$},reduceAsync:function(){return eX.wE},sleep:function(){return eX._v},stringify:function(){return eX.Pz},udtBalanceFrom:function(){return d.Yv},verifyMessageBtcEcdsa:function(){return $},verifyMessageCkbSecp256k1:function(){return R},verifyMessageDogeEcdsa:function(){return K},verifyMessageEvmPersonal:function(){return eI},verifyMessageJoyId:function(){return _},verifyMessageNostrEvent:function(){return eM}});var n,i,s,c,a=r(23685),o=r(42130),d=r(70631),f=r(70567);class u{constructor(e,t){this.script=e,this.prefix=t}static from(e){return e instanceof u?e:new u(d.Xf.from(e.script),e.prefix)}static async fromString(e,t){let{prefix:r,format:n,payload:i}=(0,f.at)(e),s=t[r]??t;if(!s)throw Error(`Unknown address prefix ${r}`);let c=s.addressPrefix;if(c!==r)throw Error(`Unknown address prefix ${r}, expected ${c}`);return u.from(await (0,f.xn)(r,n,i,s))}static fromScript(e,t){return u.from({script:e,prefix:t.addressPrefix})}static async fromKnownScript(e,t,r){return u.from({script:await d.Xf.fromKnownScript(e,t,r),prefix:e.addressPrefix})}toString(){let e=(0,o.i6)([f.m3.Full],(0,o.O6)(this.script.codeHash),(0,d.Bx)(this.script.hashType),(0,o.O6)(this.script.args));return a.bech32m.encode(this.prefix,a.bech32m.toWords(e),f.q5)}}var l=r(93841),h=r(48967),p=r(91734),b=r(96510),y=r(3503),g=r(66713),m=r(92174),w=r(15902),v=r(45202);function x(e,t){return(0,b.C)((0,w.fr)((0,o.i6)(e.slice(16,32),t))).slice(2)}async function S(e,t,r){let n=(0,v.O6)(32),i=(0,v.O6)(16),s={dklen:32,salt:(0,b.C)(n).slice(2),n:262144,r:8,p:1},c=await (0,m.E)((0,o.O6)(r,"utf8"),n,{N:s.n,r:s.r,p:s.p,dkLen:s.dklen}),a=(0,g.ij)(c.slice(0,16),i.map(e=>e)),d=a.encrypt((0,o.i6)((0,o.O6)(e),(0,o.O6)(t)));return{id:(0,b.C)((0,v.O6)(16)).slice(2),crypto:{ciphertext:(0,b.C)(d).slice(2),cipherparams:{iv:(0,b.C)(i).slice(2)},cipher:"aes-128-ctr",kdf:"scrypt",kdfparams:s,mac:x(c,d)}}}async function T(e,t){if("object"!=typeof e||null===e||!("crypto"in e))throw Error("Invalid keystore");let r=e.crypto;if("object"!=typeof r||null===r||!("kdfparams"in r)||!("ciphertext"in r)||"string"!=typeof r.ciphertext||!("mac"in r)||"string"!=typeof r.mac||!("cipherparams"in r)||"object"!=typeof r.cipherparams||null===r.cipherparams||!("iv"in r.cipherparams)||"string"!=typeof r.cipherparams.iv)throw Error("Invalid crypto");let n=r.kdfparams;if("object"!=typeof n||null===n||!("n"in n)||"number"!=typeof n.n||!("r"in n)||"number"!=typeof n.r||!("p"in n)||"number"!=typeof n.p||!("dklen"in n)||"number"!=typeof n.dklen||!("salt"in n)||"string"!=typeof n.salt)throw Error("Invalid kdfparams");let i=await (0,m.E)((0,o.O6)(t,"utf8"),(0,o.O6)(n.salt),{N:n.n,r:n.r,p:n.p,dkLen:n.dklen}),s=(0,o.O6)(r.ciphertext);if(x(i,s)!==r.mac)throw Error("Invalid password");let c=(0,g.ij)(i.slice(0,16),(0,o.O6)(r.cipherparams.iv)),a=c.decrypt(s);return{privateKey:a.slice(0,32),chainCode:a.slice(32)}}var C=r(17687),A=r(56263),k=r(22561);function E(e){let t="string"==typeof e?e:(0,b.C)(e),r=(0,o.O6)(`Nervos Message:${t}`,"utf8");return(0,p.BC)(r)}function R(e,t,r){let n=(0,o.O6)(t);return k.kA.verify(new k.kA.Signature((0,A.Ti)(n.slice(0,32)),(0,A.Ti)(n.slice(32,64))).addRecoveryBit(Number((0,A.Ti)(n.slice(64,65)))).toBytes(),(0,o.O6)(E(e)),(0,o.O6)(r))}var O=r(64294);function _(e,t,r){let n="string"==typeof e?e:(0,b.C)(e).slice(2),{publicKey:i,keyType:s}=JSON.parse(r);return(0,O.uM)({challenge:n,pubkey:i,keyType:s,...JSON.parse(t)})}var P=r(56750),I=r(93781),B=r(23304),D=function(e){if(e.length>=255)throw TypeError("Alphabet too long");let t=new Uint8Array(256);for(let e=0;e<t.length;e++)t[e]=255;for(let r=0;r<e.length;r++){let n=e.charAt(r),i=n.charCodeAt(0);if(255!==t[i])throw TypeError(n+" is ambiguous");t[i]=r}let r=e.length,n=e.charAt(0),i=Math.log(r)/Math.log(256),s=Math.log(256)/Math.log(r);function c(e){if("string"!=typeof e)throw TypeError("Expected String");if(0===e.length)return new Uint8Array;let s=0,c=0,a=0;for(;e[s]===n;)c++,s++;let o=(e.length-s)*i+1>>>0,d=new Uint8Array(o);for(;s<e.length;){let n=e.charCodeAt(s);if(n>255)return;let i=t[n];if(255===i)return;let c=0;for(let e=o-1;(0!==i||c<a)&&-1!==e;e--,c++)i+=r*d[e]>>>0,d[e]=i%256>>>0,i=i/256>>>0;if(0!==i)throw Error("Non-zero carry");a=c,s++}let f=o-a;for(;f!==o&&0===d[f];)f++;let u=new Uint8Array(c+(o-f)),l=c;for(;f!==o;)u[l++]=d[f++];return u}return{encode:function(t){if(t instanceof Uint8Array||(ArrayBuffer.isView(t)?t=new Uint8Array(t.buffer,t.byteOffset,t.byteLength):Array.isArray(t)&&(t=Uint8Array.from(t))),!(t instanceof Uint8Array))throw TypeError("Expected Uint8Array");if(0===t.length)return"";let i=0,c=0,a=0,o=t.length;for(;
631a!==o&&0===t[a];)a++,i++;let d=(o-a)*s+1>>>0,f=new Uint8Array(d);for(;a!==o;){let e=t[a],n=0;for(let t=d-1;(0!==e||n<c)&&-1!==t;t--,n++)e+=256*f[t]>>>0,f[t]=e%r>>>0,e=e/r>>>0;if(0!==e)throw Error("Non-zero carry");c=n,a++}let u=d-c;for(;u!==d&&0===f[u];)u++;let l=n.repeat(i);for(;u<d;++u)l+=e.charAt(f[u]);return l},decodeUnsafe:c,decode:function(e){let t=c(e);if(t)return t;throw Error("Non-base"+r+" character")}}}("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"),M=function(e){function t(t){var r=t.slice(0,-4),n=t.slice(-4),i=e(r);if(!(n[0]^i[0]|n[1]^i[1]|n[2]^i[2]|n[3]^i[3]))return r}return{encode:function(t){var r=Uint8Array.from(t),n=e(r),i=r.length+4,s=new Uint8Array(i);return s.set(r,0),s.set(n.subarray(0,4),r.length),D.encode(s)},decode:function(e){var r=t(D.decode(e));if(null==r)throw Error("Invalid checksum");return r},decodeUnsafe:function(e){var r=D.decodeUnsafe(e);if(null!=r)return t(r)}}}(function(e){return(0,B.JQ)((0,B.JQ)(e))});function L(e){let t=(0,A.Ti)(e);return t<253?(0,A.Db)(t,1):t<=65535?(0,o.i6)([253],(0,A.Db)(t,2)):t<=4294967295?(0,o.i6)([254],(0,A.Db)(t,4)):(0,o.i6)([255],(0,A.Db)(t,8))}function N(e,t){let r=t??"\x18Bitcoin Signed Message:\n",n="string"==typeof r?(0,o.O6)(r,"utf8"):(0,o.O6)(r),i="string"==typeof e?(0,o.O6)(e,"utf8"):(0,o.O6)(e);return(0,I.JQ)((0,I.JQ)((0,o.i6)(n,L(i.length),i)))}function H(e){return(0,P.bP)((0,I.JQ)((0,o.O6)(e)))}function F(e,t){return M.encode((0,o.i6)([t],H(e)))}function U(e){return(0,b.C)(M.decode(e).slice(1))}function $(e,t,r){let n="string"==typeof e?e:(0,b.C)(e).slice(2),i=(0,o.O6)(t,"base64").slice(1);return k.kA.verify((0,o.O6)(i),N(n),(0,o.O6)(r))}function j(e,t){return N(e,t??"\x19Dogecoin Signed Message:\n")}function K(e,t,r){let n="string"==typeof e?e:(0,b.C)(e).slice(2),i=(0,o.O6)(t,"base64"),s=i[0],c=i.slice(1),a=k.kA.Signature.fromCompact((0,b.C)(c).slice(2)).addRecoveryBit(s-31);return U(r)===(0,b.C)(H(a.recoverPublicKey(j(n)).toHex()))}var q=r(4938);function V(e,t,r){for(let n in t){let i=t[n],s=r?r[n]:null;s&&function(e,t,r){let n=t.split("|").map(e=>e.trim());for(let r=0;r<n.length;r++)switch(t){case"any":return;case"bigint":case"boolean":case"number":case"string":if(typeof e===t)return}let i=Error(`invalid value for type ${t}`);throw i.code="INVALID_ARGUMENT",i.argument=`value.${r}`,i.value=e,i}(i,s,n),Object.defineProperty(e,n,{enumerable:!0,value:i,writable:!1})}}function z(e,t){if(null==e)return"null";if(null==t&&(t=new Set),"object"==typeof e){if(t.has(e))return"[Circular]";t.add(e)}if(Array.isArray(e))return"[ "+e.map(e=>z(e,t)).join(", ")+" ]";if(e instanceof Uint8Array){let t="0123456789abcdef",r="0x";for(let n=0;n<e.length;n++)r+=t[e[n]>>4]+t[15&e[n]];return r}if("object"==typeof e&&"function"==typeof e.toJSON)return z(e.toJSON(),t);switch(typeof e){case"boolean":case"number":case"symbol":return e.toString();case"bigint":return BigInt(e).toString();case"string":return JSON.stringify(e);case"object":{let r=Object.keys(e);return r.sort(),"{ "+r.map(r=>`${z(r,t)}: ${z(e[r],t)}`).join(", ")+" }"}}return"[ COULD NOT SERIALIZE ]"}function Z(e,t,r,n){if(!e)throw function(e,t,r){let n,i=e;{let n=[];if(r){if("message"in r||"code"in r||"name"in r)throw Error(`value will overwrite populated values: ${z(r)}`);for(let e in r){if("shortMessage"===e)continue;let t=r[e];n.push(e+"="+z(t))}}n.push(`code=${t}`),n.push("version=6.15.0"),n.length&&(e+=" ("+n.join(", ")+")")}switch(t){case"INVALID_ARGUMENT":n=TypeError(e);break;case"NUMERIC_FAULT":case"BUFFER_OVERRUN":n=RangeError(e);break;default:n=Error(e)}return V(n,{code:t}),r&&Object.assign(n,r),null==n.shortMessage&&V(n,{shortMessage:i}),n}(t,r,n)}function W(e,t,r,n){Z(e,t,"INVALID_ARGUMENT",{argument:r,value:n})}let J=["NFD","NFC","NFKD","NFKC"].reduce((e,t)=>{try{if("test"!=="test".normalize(t))throw Error("bad");if("NFD"===t){let e=String.fromCharCode(233).normalize("NFD"),t=String.fromCharCode(101,769);if(e!==t)throw Error("broken")}e.push(t)}catch(e){}return e},[]);function X(e,t,r){if(e instanceof Uint8Array)return r?new Uint8Array(e):e;if("string"==typeof e&&e.match(/^0x(?:[0-9a-f][0-9a-f])*$/i)){let t=new Uint8Array((e.length-2)/2),r=2;for(let n=0;n<t.length;n++)t[n]=parseInt(e.substring(r,r+2),16),r+=2;return t}W(!1,"invalid BytesLike value",t||"value",e)}function Y(e,t){return X(e,t,!1)}function G(e,t){return X(e,t,!0)}function Q(e,t){return!!("string"==typeof e&&e.match(/^0x[0-9A-Fa-f]*$/))&&("number"!=typeof t||e.length===2+2*t)&&(!0!==t||e.length%2==0)}let ee="0123456789abcdef";function et(e){let t=Y(e),r="0x";for(let e=0;e<t.length;e++){let n=t[e];r+=ee[(240&n)>>4]+ee[15&n]}return r}function er(e){return"0x"+e.map(e=>et(e).substring(2)).join("")}function en(e){return Q(e,!0)?(e.length-2)/2:Y(e).length}let ei=!1,es=function(e){return(0,q.fr)(e)},ec=es;function ea(e){let t=Y(e,"data");return et(ec(t))}ea._=es,ea.lock=function(){ei=!0},ea.register=function(e){if(ei)throw TypeError("keccak256 is locked");ec=e},Object.freeze(ea);let eo=BigInt(0),ed=BigInt(36);function ef(e){e=e.toLowerCase();let t=e.substring(2).split(""),r=new Uint8Array(40);for(let e=0;e<40;e++)r[e]=t[e].charCodeAt(0);let n=Y(ea(r));for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&(t[e]=t[e].toUpperCase()),(15&n[e>>1])>=8&&(t[e+1]=t[e+1].toUpperCase());return"0x"+t.join("")}let eu={};for(let e=0;e<10;e++)eu[String(e)]=String(e);for(let e=0;e<26;e++)eu[String.fromCharCode(65+e)]=String(10+e);let el=function(){let e={};for(let t=0;t<36;t++){let r="0123456789abcdefghijklmnopqrstuvwxyz"[t];e[r]=BigInt(t)}return e}();var eh=r(83583);let ep=BigInt(0);function eb(e,t){switch(typeof e){case"bigint":return e;case"number":return W(Number.isInteger(e),"underflow",t||"value",e),W(e>=-9007199254740991&&e<=9007199254740991,"overflow",t||"value",e),BigInt(e);
631case"string":try{if(""===e)throw Error("empty string");if("-"===e[0]&&"-"!==e[1])return-BigInt(e.substring(1));return BigInt(e)}catch(r){W(!1,`invalid BigNumberish string: ${r.message}`,t||"value",e)}}W(!1,"invalid BigNumberish value",t||"value",e)}function ey(e,t){let r=eb(e,t);return Z(r>=ep,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:e}),r}function eg(e,t){switch(typeof e){case"bigint":return W(e>=-9007199254740991&&e<=9007199254740991,"overflow",t||"value",e),Number(e);case"number":return W(Number.isInteger(e),"underflow",t||"value",e),W(e>=-9007199254740991&&e<=9007199254740991,"overflow",t||"value",e),e;case"string":try{if(""===e)throw Error("empty string");return eg(BigInt(e),t)}catch(r){W(!1,`invalid numeric string: ${r.message}`,t||"value",e)}}W(!1,"invalid numeric value",t||"value",e)}function em(e,t){let r=ey(e,"value"),n=r.toString(16);if(null==t)n.length%2&&(n="0"+n);else{let r=eg(t,"width");for(Z(2*r>=n.length,`value exceeds width (${r} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:e});n.length<2*r;)n="0"+n}return"0x"+n}BigInt(1);let ew="0x0000000000000000000000000000000000000000000000000000000000000000",ev=BigInt(0),ex=BigInt(1),eS=BigInt(2),eT=BigInt(27),eC=BigInt(28),eA=BigInt(35),ek={};function eE(e){return function(e,t,r){let n=Y(e);Z(t>=n.length,"padding exceeds data length","BUFFER_OVERRUN",{buffer:new Uint8Array(n),length:t,offset:t+1});let i=new Uint8Array(t);return i.fill(0),r?i.set(n,t-n.length):i.set(n,0),et(i)}(function(e){let t=ey(e,"value");if(t===ep)return new Uint8Array([]);let r=t.toString(16);r.length%2&&(r="0"+r);let n=new Uint8Array(r.length/2);for(let e=0;e<n.length;e++){let t=2*e;n[e]=parseInt(r.substring(t,t+2),16)}return n}(e),32,!0)}class eR{#e;#t;#r;#n;get r(){return this.#e}set r(e){W(32===en(e),"invalid r","value",e),this.#e=et(e)}get s(){return W(8>parseInt(this.#t.substring(0,3)),"non-canonical s; use ._s","s",this.#t),this.#t}set s(e){W(32===en(e),"invalid s","value",e),this.#t=et(e)}get _s(){return this.#t}isValid(){return 8>parseInt(this.#t.substring(0,3))}get v(){return this.#r}set v(e){let t=eg(e,"value");W(27===t||28===t,"invalid v","v",e),this.#r=t}get networkV(){return this.#n}get legacyChainId(){let e=this.networkV;return null==e?null:eR.getChainId(e)}get yParity(){return 27===this.v?0:1}get yParityAndS(){let e=Y(this.s);return this.yParity&&(e[0]|=128),et(e)}get compactSerialized(){return er([this.r,this.yParityAndS])}get serialized(){return er([this.r,this.s,this.yParity?"0x1c":"0x1b"])}constructor(e,t,r,n){(function(e,t,r){if(null==r&&(r=""),e!==t){let e=r,t="new";r&&(e+=".",t+=" "+r),Z(!1,`private constructor; use ${e}from* methods`,"UNSUPPORTED_OPERATION",{operation:t})}})(e,ek,"Signature"),this.#e=t,this.#t=r,this.#r=n,this.#n=null}[Symbol.for("nodejs.util.inspect.custom")](){return`Signature { r: "${this.r}", s: "${this._s}"${this.isValid()?"":', valid: "false"'}, yParity: ${this.yParity}, networkV: ${this.networkV} }`}clone(){let e=new eR(ek,this.r,this._s,this.v);return this.networkV&&(e.#n=this.networkV),e}toJSON(){let e=this.networkV;return{_type:"signature",networkV:null!=e?e.toString():null,r:this.r,s:this._s,v:this.v}}static getChainId(e){let t=eb(e,"v");return t==eT||t==eC?ev:(W(t>=eA,"invalid EIP-155 v","v",e),(t-eA)/eS)}static getChainIdV(e,t){return eb(e)*eS+BigInt(35+t-27)}static getNormalizedV(e){let t=eb(e);return t===ev||t===eT?27:t===ex||t===eC?28:(W(t>=eA,"invalid v","v",e),t&ex?27:28)}static from(e){function t(t,r){W(t,r,"signature",e)}if(null==e)return new eR(ek,ew,ew,27);if("string"==typeof e){let r=Y(e,"signature");if(64===r.length){let e=et(r.slice(0,32)),t=r.slice(32,64),n=128&t[0]?28:27;return t[0]&=127,new eR(ek,e,et(t),n)}if(65===r.length){let e=et(r.slice(0,32)),t=et(r.slice(32,64)),n=eR.getNormalizedV(r[64]);return new eR(ek,e,t,n)}t(!1,"invalid raw signature length")}if(e instanceof eR)return e.clone();let r=e.r;t(null!=r,"missing r");let n=eE(r),i=function(e,r){if(null!=e)return eE(e);if(null!=r){t(Q(r,32),"invalid yParityAndS");let e=Y(r);return e[0]&=127,et(e)}t(!1,"missing s")}(e.s,e.yParityAndS),{networkV:s,v:c}=function(e,r,n){if(null!=e){let t=eb(e);return{networkV:t>=eA?t:void 0,v:eR.getNormalizedV(t)}}if(null!=r)return t(Q(r,32),"invalid yParityAndS"),{v:128&Y(r)[0]?28:27};if(null!=n){switch(eg(n,"sig.yParity")){case 0:return{v:27};case 1:return{v:28}}t(!1,"invalid yParity")}t(!1,"missing v")}(e.v,e.yParityAndS,e.yParity),a=new eR(ek,n,i,c);return s&&(a.#n=s),t(null==e.yParity||eg(e.yParity,"sig.yParity")===a.yParity,"yParity mismatch"),t(null==e.yParityAndS||e.yParityAndS===a.yParityAndS,"yParityAndS mismatch"),a}
631}class eO{#i;constructor(e){W(32===en(e),"invalid private key","privateKey","[REDACTED]"),this.#i=et(e)}get privateKey(){return this.#i}get publicKey(){return eO.computePublicKey(this.#i)}get compressedPublicKey(){return eO.computePublicKey(this.#i,!0)}sign(e){W(32===en(e),"invalid digest length","digest",e);let t=eh.kA.sign(G(e),G(this.#i),{lowS:!0});return eR.from({r:em(t.r,32),s:em(t.s,32),v:t.recovery?28:27})}computeSharedSecret(e){let t=eO.computePublicKey(e);return et(eh.kA.getSharedSecret(G(this.#i),Y(t),!1))}static computePublicKey(e,t){let r=Y(e,"key");if(32===r.length){let e=eh.kA.getPublicKey(r,!!t);return et(e)}if(64===r.length){let e=new Uint8Array(65);e[0]=4,e.set(r,1),r=e}let n=eh.kA.ProjectivePoint.fromHex(r);return et(n.toRawBytes(t))}static recoverPublicKey(e,t){W(32===en(e),"invalid digest length","digest",e);let r=eR.from(t),n=eh.kA.Signature.fromCompact(G(er([r.r,r.s])));n=n.addRecoveryBit(r.yParity);let i=n.recoverPublicKey(G(e));return W(null!=i,"invalid signature for digest","signature",t),"0x"+i.toHex(!1)}static addPoints(e,t,r){let n=eh.kA.ProjectivePoint.fromHex(eO.computePublicKey(e).substring(2)),i=eh.kA.ProjectivePoint.fromHex(eO.computePublicKey(t).substring(2));return"0x"+n.add(i).toHex(!!r)}}function e_(e,t,r,n,i){if("BAD_PREFIX"===e||"UNEXPECTED_CONTINUE"===e){let e=0;for(let n=t+1;n<r.length&&r[n]>>6==2;n++)e++;return e}return"OVERRUN"===e?r.length-t-1:0}function eP(e,t){W("string"==typeof e,"invalid string value","str",e),null!=t&&(Z(J.indexOf(t)>=0,"platform missing String.prototype.normalize","UNSUPPORTED_OPERATION",{operation:"String.prototype.normalize",info:{form:t}}),e=e.normalize(t));let r=[];for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n<128)r.push(n);else if(n<2048)r.push(n>>6|192),r.push(63&n|128);else if((64512&n)==55296){t++;let i=e.charCodeAt(t);W(t<e.length&&(64512&i)==56320,"invalid surrogate pair","str",e);let s=65536+((1023&n)<<10)+(1023&i);r.push(s>>18|240),r.push(s>>12&63|128),r.push(s>>6&63|128),r.push(63&s|128)}else r.push(n>>12|224),r.push(n>>6&63|128),r.push(63&n|128)}return new Uint8Array(r)}function eI(e,t,r){return r.toLowerCase()===(function(e,t){var r,n;let i=("string"==typeof(r=e)&&(r=eP(r)),ea(er([eP("\x19Ethereum Signed Message:\n"),eP(String(r.length)),r])));return function(e){if(W("string"==typeof e,"invalid address","address",e),e.match(/^(0x)?[0-9a-fA-F]{40}$/)){e.startsWith("0x")||(e="0x"+e);let t=ef(e);return W(!e.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||t===e,"bad address checksum","address",e),t}if(e.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){W(e.substring(2,4)===function(e){let t=(e=(e=e.toUpperCase()).substring(4)+e.substring(0,2)+"00").split("").map(e=>eu[e]).join("");for(;t.length>=15;){let e=t.substring(0,15);t=parseInt(e,10)%97+t.substring(e.length)}let r=String(98-parseInt(t,10)%97);for(;r.length<2;)r="0"+r;return r}(e),"bad icap checksum","address",e);let t=(function(e){e=e.toLowerCase();let t=eo;for(let r=0;r<e.length;r++)t=t*ed+el[e[r]];return t})(e.substring(4)).toString(16);for(;t.length<40;)t="0"+t;return ef("0x"+t)}W(!1,"invalid address","address",e)}(ea("0x"+("string"==typeof(n=eO.recoverPublicKey(i,t))?eO.computePublicKey(n,!1):n.publicKey).substring(4)).substring(26))}
631)("string"==typeof e?e:(0,o.O6)(e),t).toLowerCase()}function eB(e){if("string"==typeof e)try{let t=JSON.parse(e);if("object"==typeof t&&"number"==typeof t.created_at&&"number"==typeof t.kind&&"string"==typeof t.content&&Array.isArray(t.tags)&&t.tags.every(e=>Array.isArray(e)&&e.every(e=>"string"==typeof e)))return t}catch(e){}return{kind:23335,created_at:0,content:"string"==typeof e?e:(0,b.C)(e),tags:[]}}function eD(e){let t=JSON.stringify([0,e.pubkey,e.created_at,e.kind,e.tags,e.content]);return(0,I.JQ)((0,o.O6)(t,"utf8"))}function eM(e,t,r){let{words:n}=a.bech32.decode(r),i=(0,b.C)(a.bech32.fromWords(n)).slice(2),s=eB(e),c=eD({...s,pubkey:i});try{return k.xW.verify((0,b.C)(t).slice(2),c,i)}catch(e){return!1}}Object.freeze({error:function(e,t,r,n,i){W(!1,`invalid codepoint at offset ${t}; ${e}`,"bytes",r)},ignore:e_,replace:function(e,t,r,n,i){return"OVERLONG"===e?(W("number"==typeof i,"invalid bad code point for replacement","badCodepoint",i),n.push(i),0):(n.push(65533),e_(e,t,r,n,i))}}),(n=s||(s={})).Unknown="Unknown",n.BtcEcdsa="BtcEcdsa",n.EvmPersonal="EvmPersonal",n.JoyId="JoyId",n.NostrEvent="NostrEvent",n.CkbSecp256k1="CkbSecp256k1",n.DogeEcdsa="DogeEcdsa",(i=c||(c={})).EVM="EVM",i.BTC="BTC",i.CKB="CKB",i.Nostr="Nostr",i.Doge="Doge";class eL{constructor(e,t,r){this.signature=e,this.identity=t,this.signType=r}}class eN{constructor(e){this.client_=e}get client(){return this.client_}matchNetworkPreference(e,t){if(!(void 0!==t&&e.some(({signerType:e,addressPrefix:r,network:n})=>e===this.type&&r===this.client.addressPrefix&&n===t)))return e.find(({signerType:e,addressPrefix:t})=>e===this.type&&t===this.client.addressPrefix)}static async verifyMessage(e,t){switch(t.signType){case s.EvmPersonal:return eI(e,t.signature,t.identity);case s.BtcEcdsa:return $(e,t.signature,t.identity);case s.JoyId:return _(e,t.signature,t.identity);case s.NostrEvent:return eM(e,t.signature,t.identity);case s.CkbSecp256k1:return R(e,t.signature,t.identity);case s.DogeEcdsa:return K(e,t.signature,t.identity);case s.Unknown:throw Error("Unknown signer sign type")}}onReplaced(e){return()=>{}}async disconnect(){}async getIdentity(){return this.getInternalAddress()}async getRecommendedAddressObj(e){return(await this.getAddressObjs())[0]}async getRecommendedAddress(e){return(await this.getRecommendedAddressObj(e)).toString()}async getAddresses(){return this.getAddressObjs().then(e=>e.map(e=>e.toString()))}async *findCellsOnChain(e,t,r,n){let i=await this.getAddressObjs();for(let{script:s}of i)for await(let i of this.client.findCellsOnChain({script:s,scriptType:"lock",filter:e,scriptSearchMode:"exact",withData:t},r,n))yield i}async *findCells(e,t,r,n){let i=await this.getAddressObjs();for(let{script:s}of i)for await(let i of this.client.findCells({script:s,scriptType:"lock",filter:e,scriptSearchMode:"exact",withData:t},r,n))yield i}async *findTransactions(e,t,r,n){let i=await this.getAddressObjs();for(let{script:s}of i)for await(let i of this.client.findTransactions({script:s,scriptType:"lock",filter:e,scriptSearchMode:"exact",groupByTransaction:t},r,n))yield i}async getBalance(){return this.client.getBalance((await this.getAddressObjs()).map(({script:e})=>e))}async signMessage(e){return{signature:await this.signMessageRaw(e),identity:await this.getIdentity(),signType:this.signType}}signMessageRaw(e){throw Error("Signer.signMessageRaw not implemented")}async verifyMessage(e,t){return"string"==typeof t?eN.verifyMessage(e,{signType:this.signType,signature:t,identity:await this.getIdentity()}):!!(t.identity===await this.getIdentity()&&[s.Unknown,this.signType].includes(t.signType))&&eN.verifyMessage(e,t)}async sendTransaction(e){return this.client.sendTransaction(await this.signTransaction(e))}async signTransaction(e){let t=await this.prepareTransaction(e);return this.signOnlyTransaction(t)}async prepareTransaction(e){return d.YW.from(e)}signOnlyTransaction(e){throw Error("Signer.signOnlyTransaction not implemented")}}class eH{constructor(e,t){this.name=e,this.signer=t}}class eF extends eN{get type(){return c.BTC}get signType(){return s.BtcEcdsa}async getInternalAddress(){return this.getBtcAccount()}async getIdentity(){return(0,b.C)(await this.getBtcPublicKey()).slice(2)}async getAddressObjs(){let e=await this.getBtcPublicKey(),t=H(e);return[await u.fromKnownScript(this.client,l.s2.OmniLock,(0,b.C)([4,...t,0]))]}async prepareTransaction(e){let t=d.YW.from(e),{script:r}=await this.getRecommendedAddressObj();return await t.addCellDepsOfKnownScripts(this.client,l.s2.OmniLock),await t.prepareSighashAllWitness(r,85,this.client),t}async signOnlyTransaction(e){let t=d.YW.from(e),{script:r}=await this.getRecommendedAddressObj(),n=await t.getSignHashInfo(r,this.client);if(!n)return t;let i=(0,o.O6)(await this.signMessageRaw(`CKB (Bitcoin Layer) transaction: ${n.message}`),"base64");i[0]=31+(i[0]-27)%4;let s=d.wh.fromBytes(t.witnesses[n.position]);return s.lock=(0,b.C)((0,o.i6)((0,A.Vl)(20+i.length,4),(0,A.Vl)(16,4),(0,A.Vl)(20+i.length,4),(0,A.Vl)(20+i.length,4),(0,A.Vl)(i.length,4),i)),t.setWitnessArgsAt(n.position,s),t}}class eU extends eF{constructor(e,t,r){super(e),this.account=t,this.publicKey=(0,b.C)(r)}async connect(){}async isConnected(){return!0}async getBtcAccount(){return this.account}async getBtcPublicKey(){return this.publicKey}}class e$ extends eN{get type(){return c.CKB}get signType(){return s.CkbSecp256k1}
631constructor(e,t){if(super(e),this.publicKey=(0,b.C)(t),33!==(0,o.O6)(this.publicKey).length)throw Error("Public key must be 33 bytes!")}async connect(){}async isConnected(){return!0}async getInternalAddress(){return this.getRecommendedAddress()}async getIdentity(){return this.publicKey}async getAddressObjSecp256k1(){return u.fromKnownScript(this.client,l.s2.Secp256k1Blake160,(0,o.O6)((0,p.BC)(this.publicKey)).slice(0,20))}async getRecommendedAddressObj(e){return this.getAddressObjSecp256k1()}async getAddressObjs(){let e=await this.getAddressObjSecp256k1(),t=[],r=0;for await(let n of this.client.findCells({script:await d.Xf.fromKnownScript(this.client,l.s2.AnyoneCanPay,e.script.args),scriptType:"lock",scriptSearchMode:"prefix",withData:!1})){if(r>=10)break;r+=1,t.some(({script:e})=>e.eq(n.cellOutput.lock))||t.push(u.from({prefix:this.client.addressPrefix,script:n.cellOutput.lock}))}return[e,...t]}async getRelatedScripts(e){let t=d.YW.from(e),r=await this.getAddressObjSecp256k1(),n=await d.Xf.fromKnownScript(this.client,l.s2.AnyoneCanPay,r.script.args),i=[];for(let e of t.inputs){let{cellOutput:{lock:t}}=await e.getCell(this.client);!i.some(({script:e})=>e.eq(t))&&(t.eq(r.script)?i.push({script:t,cellDeps:(await this.client.getKnownScript(l.s2.Secp256k1Blake160)).cellDeps}):t.codeHash===n.codeHash&&t.hashType===n.hashType&&t.args.startsWith(n.args)&&i.push({script:t,cellDeps:(await this.client.getKnownScript(l.s2.AnyoneCanPay)).cellDeps}))}return i}async prepareTransaction(e){let t=d.YW.from(e);return await Promise.all((await this.getRelatedScripts(t)).map(async({script:e,cellDeps:r})=>{await t.prepareSighashAllWitness(e,65,this.client),await t.addCellDepInfos(this.client,r)})),t}}class ej extends e${constructor(e,t){let r=(0,b.C)(t);if(32!==(0,o.O6)(r).length)throw Error("Private key must be 32 bytes!");super(e,k.kA.getPublicKey((0,o.O6)(r),!0)),this.privateKey=r}async _signMessage(e){let t=k.kA.sign((0,o.O6)(e),(0,o.O6)(this.privateKey)),{r,s:n,recovery:i}=t;return(0,b.C)((0,o.i6)((0,A.cL)(r,32),(0,A.cL)(n,32),(0,A.cL)(i,1)))}async signMessageRaw(e){return this._signMessage(E(e))}async signOnlyTransaction(e){let t=d.YW.from(e);for(let{script:e}of(await this.getRelatedScripts(t))){let r=await t.getSignHashInfo(e,this.client);if(!r)break;let n=await this._signMessage(r.message),i=t.getWitnessArgsAt(r.position)??d.wh.from({});i.lock=n,t.setWitnessArgsAt(r.position,i)}return t}}class eK extends eN{get type(){return c.CKB}get signType(){return s.Unknown}constructor(e,...t){if(super(e),this.scripts=t.flat().map(d.Xf.from),0===this.scripts.length)throw Error("SignerCkbScriptReadonly requires at least one script.")}async connect(){}async isConnected(){return!0}async getInternalAddress(){return this.getRecommendedAddress()}async getAddressObjs(){return this.scripts.map(e=>u.fromScript(e,this.client))}}class eq extends eN{get type(){return c.Doge}get signType(){return s.DogeEcdsa}async getInternalAddress(){return this.getDogeAddress()}async getIdentity(){return this.getDogeAddress()}async getAddressObjs(){let e=M.decode(await this.getDogeAddress()).slice(1);return[await u.fromKnownScript(this.client,l.s2.OmniLock,(0,b.C)([5,...e,0]))]}async prepareTransaction(e){let t=d.YW.from(e),{script:r}=await this.getRecommendedAddressObj();return await t.addCellDepsOfKnownScripts(this.client,l.s2.OmniLock),await t.prepareSighashAllWitness(r,85,this.client),t}async signOnlyTransaction(e){let t=d.YW.from(e),{script:r}=await this.getRecommendedAddressObj(),n=await t.getSignHashInfo(r,this.client);if(!n)return t;let i=(0,o.O6)(await this.signMessageRaw(n.message.slice(2)),"base64");i[0]=31+(i[0]-27)%4;let s=d.wh.fromBytes(t.witnesses[n.position]);return s.lock=(0,b.C)((0,o.i6)((0,A.Vl)(20+i.length,4),(0,A.Vl)(16,4),(0,A.Vl)(20+i.length,4),(0,A.Vl)(20+i.length,4),(0,A.Vl)(i.length,4),i)),t.setWitnessArgsAt(n.position,s),t}}class eV extends eq{constructor(e,t){super(e),this.address=t}async connect(){}async isConnected(){return!0}async getDogeAddress(){return this.address}}class ez extends eq{constructor(e,t,r=30){if(super(e),this.dogeNetwork=r,this.privateKey=(0,o.O6)(t),32!==this.privateKey.length)throw Error("Private key must be 32 bytes!")}async connect(){}async isConnected(){return!0}async getDogePublicKey(){return(0,b.C)(k.kA.getPublicKey(this.privateKey,!0))}async getDogeAddress(){return F(await this.getDogePublicKey(),this.dogeNetwork)}async signMessageRaw(e){let t="string"==typeof e?e:(0,b.C)(e).slice(2),r=k.kA.sign(j(t),this.privateKey);return(0,o.cY)((0,o.i6)([31+r.recovery],r.toCompactRawBytes()),"base64")}}class eZ extends eN{get signType(){return s.Unknown}constructor(e,t){super(e),this.type=t}async isConnected(){return!1}async getInternalAddress(){throw Error("Can't get address from SignerDummy")}async getAddressObjs(){throw Error("Can't get addresses from SignerDummy")}}class eW extends eZ{constructor(e,t,r){super(e,t),this.message=r}async connect(){throw Error(this.message)}}class eJ extends eZ{constructor(e,t,r){super(e,t),this.link=r}async connect(){window.open(this.link,"_blank")?.focus()}}var eX=r(18378);class eY extends eN{get type(){return c.EVM}get signType(){return s.EvmPersonal}async getInternalAddress(){return this.getEvmAccount()}async getAddressObjs(){let e=await this.getEvmAccount(),t=await Promise.all([this._getOmniLockAddresses(e),this._getPWLockAddresses(e)]);return t.flat()}_getOmniLockAddresses(e){return Promise.all([this._getOmniLockEvmAddressObj(e),this._getOmniLockOldEvmAddressObj(e)])}async _getPWLockAddresses(e){let t=await this._getPWLockEvmAddressObj(e);return t?[t]:[]}async _getOmniLockEvmAddressObj(e){return u.fromKnownScript(this.client,l.s2.OmniLock,(0,b.C)([18,...(0,o.O6)(e),0]))}async _getOmniLockOldEvmAddressObj(e){return u.fromKnownScript(this.client,l.s2.OmniLock,(0,b.C)([1,...(0,o.O6)(e),0]))}async _getPWLockEvmAddressObj(e){try{return u.fromKnownScript(this.client,l.s2.PWLock,(0,b.C)((0,o.O6)(e)))}catch{}}async prepareTransaction(e){let t=d.YW.from(e);await t.findInputIndexByLockId(await this.client.getKnownScript(l.s2.OmniLock),this.client)!==void 0&&await t.addCellDepsOfKnownScripts(this.client,l.s2.OmniLock),await t.findInputIndexByLockId(await this.client.getKnownScript(l.s2.PWLock),this.client)!==void 0&&await t.addCellDepsOfKnownScripts(this.client,l.s2.PWLock);let r=await this.getEvmAccount(),n=await this._getOmniLockAddresses(r),i=await this._getPWLockAddresses(r),s=(0,eX.wE)(n,(e,{script:t})=>e.prepareSighashAllWitness(t,85,this.client),t);return(0,eX.wE)(i,(e,{script:t})=>e.prepareSighashAllWitness(t,65,this.client),s)}async signOnlyTransaction(e){let t=d.YW.from(e),r=await this.getEvmAccount(),{script:n}=await this._getOmniLockEvmAddressObj(r),{script:i}=await this._getOmniLockOldEvmAddressObj(r);t=await this._signOmniLockScriptForTransaction(t,n,e=>`CKB transaction: ${e}`),t=await this._signOmniLockScriptForTransaction(t,i,e=>(0,o.O6)(e));let s=await this._getPWLockEvmAddressObj(r);return s&&(t=await this._signPWLockScriptForTransaction(t,s.script,e=>(0,o.O6)(e))),t}async _signOmniLockScriptForTransaction(e,t,r){let n=await this._signPersonalEvmForTransaction(e,t,r);if(!n)return e;let i=d.wh.fromBytes(e.witnesses[n.position]);return i.lock=(0,b.C)((0,o.i6)((0,A.Vl)(20+n.signature.length,4),(0,A.Vl)(16,4),(0,A.Vl)(20+n.signature.length,4),(0,A.Vl)(20+n.signature.length,4),(0,A.Vl)(n.signature.length,4),n.signature)),e.setWitnessArgsAt(n.position,i),e}async _signPWLockScriptForTransaction(e,t,r){let n=await this._signPersonalEvmForTransaction(e,t,r,new p.u3);if(!n)return e;let i=d.wh.fromBytes(e.witnesses[n.position]);return i.lock=(0,b.C)(n.signature),e.setWitnessArgsAt(n.position,i),e}async _signPersonalEvmForTransaction(e,t,r,n){let i=await e.getSignHashInfo(t,this.client,n);if(!i)return;let s=(0,o.O6)(await this.signMessageRaw(r(i.message)));return s[s.length-1]>=27&&(s[s.length-1]-=27),{signature:s,position:i.position}}}class eG extends eY{constructor(e,t){super(e),this.address=(0,b.C)(t)}async connect(){}async isConnected(){return!0}async getEvmAccount(){return this.address}}class eQ extends eN{get type(){return c.Nostr}get signType(){return s.NostrEvent}async signNostrEvent(e){throw Error("SignerNostr.signNostrEvent not implemented")}async signMessageRaw(e){return(0,b.C)((await this.signNostrEvent(eB(e))).sig)}async getInternalAddress(){return a.bech32.encode("npub",a.bech32.toWords((0,o.O6)(await this.getNostrPublicKey())))}async getAddressObjs(){let e=await this.getNostrPublicKey();return[await u.fromKnownScript(this.client,l.s2.NostrLock,(0,b.C)((0,o.i6)([0],(0,p.BC)(e).slice(0,42))))]}async prepareTransaction(e){let t=d.YW.from(e),{script:r}=await this.getRecommendedAddressObj();return await t.addCellDepsOfKnownScripts(this.client,l.s2.NostrLock),await t.prepareSighashAllWitness(r,572,this.client),t}async signOnlyTransaction(e){let t=d.YW.from(e),{script:r}=await this.getRecommendedAddressObj(),n=await t.getSignHashInfo(r,this.client);if(!n)return t;let i=(0,o.O6)(JSON.stringify(await this.signNostrEvent({pubkey:(await this.getNostrPublicKey()).slice(2),tags:[[eQ.CKB_SIG_HASH_ALL_TAG,n.message.slice(2)]],created_at:Math.floor(Date.now()/1e3),kind:eQ.CKB_UNLOCK_EVENT_KIND,content:eQ.CKB_UNLOCK_EVENT_CONTENT})),"utf8"),s=d.wh.fromBytes(t.witnesses[n.position]);return s.lock=(0,b.C)(i),t.setWitnessArgsAt(n.position,s),t}}eQ.CKB_SIG_HASH_ALL_TAG="ckb_sighash_all",eQ.CKB_UNLOCK_EVENT_KIND=23334,eQ.CKB_UNLOCK_EVENT_CONTENT="Signing a CKB transaction\n\nIMPORTANT: Please verify the integrity and authenticity of connected Nostr client before signing this message\n";class e1 extends eQ{constructor(e,t){if(super(e),"string"==typeof t&&t.startsWith("npub")){let{words:e}=a.bech32.decode(t);this.publicKey=(0,b.C)(a.bech32.fromWords(e))}else this.publicKey=(0,b.C)(t)}async connect(){}async isConnected(){return!0}async getNostrPublicKey(){return this.publicKey}}class e0 extends e1{constructor(e,t){let r=(()=>
631{if("string"==typeof t&&t.startsWith("nsec")){let{words:e}=a.bech32.decode(t);return(0,b.C)(a.bech32.fromWords(e))}return(0,b.C)(t)})();super(e,k.xW.getPublicKey(r.slice(2))),this.privateKey=r}async signNostrEvent(e){let t=(await this.getNostrPublicKey()).slice(2),r=eD({...e,pubkey:t}),n=k.xW.sign(r,this.privateKey.slice(2));return{...e,id:(0,b.C)(r).slice(2),pubkey:t,sig:(0,b.C)(n).slice(2)}}}},42130:function(e,t,r){"use strict";r.d(t,{Jj:function(){return i},O6:function(){return o},cY:function(){return a},dK:function(){return s},i6:function(){return c},yU:function(){return d}});var n=r(15313);let i=Uint8Array;function s(e,...t){return t.reduce((t,r)=>{let n=o(r);for(let t of n)e.push(t);return t},e)}function c(...e){return new Uint8Array(s([],...e))}function a(e,t){return n.Buffer.from(o(e)).toString(t)}function o(e,t){if(e instanceof Uint8Array)return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if("string"==typeof e){if(void 0!==t)return n.Buffer.from(e,t);let r=e.startsWith("0x")?e.slice(2):e,i=r.length%2==0?r:`0${r}`,s=n.Buffer.from(i,"hex");if(2*s.length!==i.length)throw Error(`Invalid bytes ${e}`);return s}let r=Array.from(e);if(r.some(e=>e<0||255<e))throw Error(`Invalid bytes ${JSON.stringify(e)}`);return new Uint8Array(e)}function d(e,t){if(e===t)return!0;let r=o(e),n=o(t);if(r.length!==n.length)return!1;for(let e=0;e<r.length;e++)if(r[e]!==n[e])return!1;return!0}},70631:function(e,t,r){"use strict";r.d(t,{bL:function(){return $},p_:function(){return U},L1:function(){return W},o5:function(){return J},Gg:function(){return z},$B:function(){return Z},Of:function(){return H},Kd:function(){return F},x4:function(){return B},oR:function(){return _},_V:function(){return P},Vg:function(){return S},wD:function(){return N},S7:function(){return G},Xf:function(){return k},dU:function(){return E},TL:function(){return R},U6:function(){return V},YW:function(){return Q},wh:function(){return X},WL:function(){return et},Uk:function(){return ee},mq:function(){return D},ri:function(){return L},lY:function(){return M},bU:function(){return j},MX:function(){return K},yx:function(){return q},o1:function(){return T},$v:function(){return A},SH:function(){return er},Bx:function(){return C},Yv:function(){return Y}});var n,i,s,c,a,o,d,f,u=r(28793),l=r(56263),h=r(42130),p=r(93841),b=r(54970),y=r(48967),g=r(91734),m=r(96510),w=r(17687),v=r(18378),x=r(85882);let S=w.A.Codec.from({byteLength:1,encode:C,decode:A});function T(e){let t="number"==typeof e?x.gM[e]:"bigint"==typeof e?x.gM[Number(e)]:x.SP.includes(e)?e:void 0;if(void 0===t)throw Error(`Invalid hash type ${e}`);return t}function C(e){return(0,h.O6)([x.pN[T(e)]])}function A(e){return x.gM[(0,h.O6)(e)[0]]}let k=n=class extends w.A.Entity.Base(){constructor(e,t,r){super(),this.codeHash=e,this.hashType=t,this.args=r}get occupiedSize(){return 33+(0,h.O6)(this.args).length}clone(){return new n(this.codeHash,this.hashType,this.args)}eq(e){return e=n.from(e),this.args===e.args&&this.codeHash===e.codeHash&&this.hashType===e.hashType}static from(e){return e instanceof n?e:new n((0,m.C)(e.codeHash),T(e.hashType),(0,m.C)(e.args))}static async fromKnownScript(e,t,r){let i=await e.getKnownScript(t);return new n(i.codeHash,i.hashType,(0,m.C)(r))}};k=n=function(e,t,r,n){var i,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(c=(s<3?i(c):s>3?i(t,r,c):i(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c}([w.A.codec(w.A.table({codeHash:w.A.Byte32,hashType:S,args:w.A.Bytes}))],k);let E=w.A.option(k),R=w.A.vector(k);var O=r(50672);class _ extends Error{constructor(e,t){let r=(0,l.Ti)(e),n=t?.isForChange??!1;super(`Insufficient CKB, need ${(0,y.JV)(r)} extra CKB${n?" for the change cell":""}`),this.amount=r,this.isForChange=n}}class P extends Error{constructor(e,t){let r=(0,l.Ti)(e),n=k.from(t);super(`Insufficient coin, need ${r} extra coin`),this.amount=r,this.type=n}}var I=function(e,t,r,n){var i,s=arguments.length,c=s<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var a=e.length-1;a>=0;a--)(i=e[a])&&(c=(s<3?i(c):s>3?i(t,r,c):i(t,r))||c);return s>3&&c&&Object.defineProperty(t,r,c),c};let B=w.A.Codec.from({byteLength:1,encode:M,decode:L});function D(e){let t="number"==typeof e?O.h2[e]:"bigint"==typeof e?O.h2[Number(e)]:e;if(void 0===t)throw Error(`Invalid dep type ${e}`);return t}function M(e){return(0,h.O6)([O.Bm[D(e)]])}function L(e){return O.h2[(0,h.O6)(e)[0]]}let N=i=class extends w.A.Entity.Base(){constructor(e,t){super(),this.txHash=e,this.index=t}static from(e){return e instanceof i?e:new i((0,m.C)(e.txHash),(0,l.Ti)(e.index))}clone(){return new i(this.txHash,this.index)}eq(e){return e=i.from(e),this.txHash===e.txHash&&this.index===e.index}};N=i=I([w.A.codec(w.A.struct({txHash:w.A.Byte32,index:w.A.Uint32}))],N);let H=s=class extends w.A.Entity.Base(){constructor(e,t,r){super(),this.capacity=e,this.lock=t,this.type=r}get occupiedSize(){return 8+this.lock.occupiedSize+(this.type?.occupiedSize??0)}static from(e,t){if(e instanceof s)return e;let r=new s((0,l.Ti)(e.capacity??0),k.from(e.lock),(0,v.nn)(k.from,e.type));return r.capacity===y._Y&&(r.capacity=(0,y.Fw)(r.occupiedSize+(0,h.O6)(t??"0x").length)),r}clone(){return new s(this.capacity,this.lock.clone(),this.type?.clone())}};
631H=s=I([w.A.codec(w.A.table({capacity:w.A.Uint64,lock:k,type:E}))],H);let F=w.A.vector(H);class U{constructor(e,t,r){this.cellOutput=e,this.outputData=t,this.outPoint=r}static from(e){return e instanceof U?e:new U(H.from(e.cellOutput,e.outputData),(0,m.C)(e.outputData??"0x"),(0,v.nn)(N.from,e.outPoint??e.previousOutput))}get occupiedSize(){return this.cellOutput.occupiedSize+(0,h.O6)(this.outputData).byteLength}get capacityFree(){return this.cellOutput.capacity-(0,y.Fw)(this.occupiedSize)}async isNervosDao(e,t){let{type:r}=this.cellOutput,n=await e.getKnownScript(b.s.NervosDao);if(!r||r.codeHash!==n.codeHash||r.hashType!==n.hashType)return!1;let i=(0,l.Ti)(this.outputData)!==y._Y;return!t||"deposited"===t&&!i||"withdrew"===t&&i}clone(){return new U(this.cellOutput.clone(),this.outputData,this.outPoint?.clone())}}class $ extends U{constructor(e,t,r){super(t,r,e),this.outPoint=e}static from(e){return e instanceof $?e:new $(N.from(e.outPoint??e.previousOutput),H.from(e.cellOutput,e.outputData),(0,m.C)(e.outputData??"0x"))}async getDaoProfit(e){if(!await this.isNervosDao(e,"withdrew"))return y._Y;let{depositHeader:t,withdrawHeader:r}=await this.getNervosDaoInfo(e);if(!r||!t)throw Error(`Unable to get headers of a Nervos DAO cell ${this.outPoint.txHash}:${this.outPoint.index.toString()}`);return ee(this.capacityFree,t,r)}async getNervosDaoInfo(e){if(!await this.isNervosDao(e))return{};if((0,l.Ti)(this.outputData)===y._Y){let t=await e.getCellWithHeader(this.outPoint);if(!t?.header)throw Error(`Unable to get header of a Nervos DAO deposited cell ${this.outPoint.txHash}:${this.outPoint.index.toString()}`);return{depositHeader:t.header}}let[t,r]=await Promise.all([e.getHeaderByNumber((0,l.TY)(this.outputData)),e.getCellWithHeader(this.outPoint)]);if(!r?.header||!t)throw Error(`Unable to get headers of a Nervos DAO withdrew cell ${this.outPoint.txHash}:${this.outPoint.index.toString()}`);return{depositHeader:t,withdrawHeader:r.header}}clone(){return new $(this.outPoint.clone(),this.cellOutput.clone(),this.outputData)}}function j(e){return[(0,l.Ti)(e[0]),(0,l.Ti)(e[1]),(0,l.Ti)(e[2])]}function K(e){let t=(0,l.Ti)((0,m.C)(e));return[t&(0,l.Ti)("0xffffff"),t>>(0,l.Ti)(24)&(0,l.Ti)("0xffff"),t>>(0,l.Ti)(40)&(0,l.Ti)("0xffff")]}function q(e){let t=j(e);return(0,l.G$)((0,l.Ti)(t[0])+((0,l.Ti)(t[1])<<(0,l.Ti)(24))+((0,l.Ti)(t[2])<<(0,l.Ti)(40)))}let V=c=class extends w.A.Entity.Base(){constructor(e,t,r){super(),this.relative=e,this.metric=t,this.value=r}clone(){return new c(this.relative,this.metric,this.value)}static from(e){return e instanceof c?e:"object"==typeof e&&"relative"in e?new c(e.relative,e.metric,(0,l.Ti)(e.value)):c.fromNum(e)}toNum(){return this.value|("absolute"===this.relative?y._Y:(0,l.Ti)("0x8000000000000000"))|({blockNumber:(0,l.Ti)("0x0000000000000000"),epoch:(0,l.Ti)("0x2000000000000000"),timestamp:(0,l.Ti)("0x4000000000000000")})[this.metric]}static fromNum(e){let t=(0,l.Ti)(e),r=t>>(0,l.Ti)(63)===y._Y?"absolute":"relative",n=["blockNumber","epoch","timestamp"][Number(t>>(0,l.Ti)(61)&(0,l.Ti)(3))],i=t&(0,l.Ti)("0x00ffffffffffffff");return new c(r,n,i)}};V=c=I([w.A.codec(w.A.Uint64.mapIn(e=>V.from(e).toNum()))],V);let z=a=class extends w.A.Entity.Base(){constructor(e,t,r,n){super(),this.previousOutput=e,this.since=t,this.cellOutput=r,this.outputData=n}static from(e){return e instanceof a?e:new a(N.from("previousOutput"in e?e.previousOutput:e.outPoint),V.from(e.since??0).toNum(),(0,v.nn)(H.from,e.cellOutput),(0,v.nn)(m.C,e.outputData))}async getCell(e){if(await this.completeExtraInfos(e),!this.cellOutput||!this.outputData)throw Error("Unable to complete input");return $.from({outPoint:this.previousOutput,cellOutput:this.cellOutput,outputData:this.outputData})}async completeExtraInfos(e){if(this.cellOutput&&this.outputData)return;let t=await e.getCell(this.previousOutput);t&&(this.cellOutput=t.cellOutput,this.outputData=t.outputData)}async getExtraCapacity(e){return(await this.getCell(e)).getDaoProfit(e)}clone(){return new a(this.previousOutput.clone(),this.since,this.cellOutput?.clone(),this.outputData)}};z=a=I([w.A.codec(w.A.struct({since:V,previousOutput:N}).mapIn(e=>z.from(e)))],z);let Z=w.A.vector(z),W=o=class extends w.A.Entity.Base(){constructor(e,t){super(),this.outPoint=e,this.depType=t}
631static from(e){return e instanceof o?e:new o(N.from(e.outPoint),D(e.depType))}clone(){return new o(this.outPoint.clone(),this.depType)}};W=o=I([w.A.codec(w.A.struct({outPoint:N,depType:B}))],W);let J=w.A.vector(W),X=d=class extends w.A.Entity.Base(){constructor(e,t,r){super(),this.lock=e,this.inputType=t,this.outputType=r}static from(e){return e instanceof d?e:new d((0,v.nn)(m.C,e.lock),(0,v.nn)(m.C,e.inputType),(0,v.nn)(m.C,e.outputType))}};function Y(e){let t=(0,h.O6)(e).slice(0,16);return 0===t.length?y._Y:(0,l.TY)(t)}X=d=I([w.A.codec(w.A.table({lock:w.A.BytesOpt,inputType:w.A.BytesOpt,outputType:w.A.BytesOpt}))],X);let G=w.A.table({version:w.A.Uint32,cellDeps:J,headerDeps:w.A.Byte32Vec,inputs:Z,outputs:F,outputsData:w.A.BytesVec}),Q=f=class extends w.A.Entity.Base(){constructor(e,t,r,n,i,s,c){super(),this.version=e,this.cellDeps=t,this.headerDeps=r,this.inputs=n,this.outputs=i,this.outputsData=s,this.witnesses=c}static default(){return new f(0n,[],[],[],[],[],[])}copy(e){let t=f.from(e);this.version=t.version,this.cellDeps=t.cellDeps,this.headerDeps=t.headerDeps,this.inputs=t.inputs,this.outputs=t.outputs,this.outputsData=t.outputsData,this.witnesses=t.witnesses}clone(){return new f(this.version,this.cellDeps.map(e=>e.clone()),this.headerDeps.map(e=>e),this.inputs.map(e=>e.clone()),this.outputs.map(e=>e.clone()),this.outputsData.map(e=>e),this.witnesses.map(e=>e))}static from(e){if(e instanceof f)return e;let t=e.outputs?.map((t,r)=>H.from(t,e.outputsData?.[r]??[]))??[],r=t.map((t,r)=>(0,m.C)(e.outputsData?.[r]??"0x"));return null!=e.outputsData&&r.length<e.outputsData.length&&r.push(...e.outputsData.slice(r.length).map(e=>(0,m.C)(e))),new f((0,l.Ti)(e.version??0),e.cellDeps?.map(e=>W.from(e))??[],e.headerDeps?.map(m.C)??[],e.inputs?.map(e=>z.from(e))??[],t,r,e.witnesses?.map(m.C)??[])}static fromLumosSkeleton(e){return f.from({version:0n,cellDeps:e.cellDeps.toArray(),headerDeps:e.headerDeps.toArray(),inputs:e.inputs.toArray().map((t,r)=>{if(!t.outPoint)throw Error("outPoint is required in input");return z.from({previousOutput:t.outPoint,since:e.inputSinces.get(r,"0x0"),cellOutput:t.cellOutput,outputData:t.data})}),outputs:e.outputs.toArray().map(e=>e.cellOutput),outputsData:e.outputs.toArray().map(e=>e.data),witnesses:e.witnesses.toArray()})}stringify(){return JSON.stringify(this,(e,t)=>"bigint"==typeof t?(0,l.G$)(t):t)}rawToBytes(){return G.encode(this)}hash(){return(0,g.BC)(this.rawToBytes())}hashFull(){return(0,g.BC)(this.toBytes())}static hashWitnessToHasher(e,t){let r=(0,h.O6)((0,m.C)(e));t.update((0,l.Vl)(r.length,8)),t.update(r)}async getSignHashInfo(e,t,r=new g.xD){let n=k.from(e),i=-1;r.update(this.hash());for(let e=0;e<this.witnesses.length;e+=1){let s=this.inputs[e];if(s){let{cellOutput:r}=await s.getCell(t);if(!n.eq(r.lock))continue;-1===i&&(i=e)}if(-1===i)return;f.hashWitnessToHasher(this.witnesses[e],r)}if(-1!==i)return{message:r.digest(),position:i}}async findInputIndexByLockId(e,t){let r=k.from({...e,args:"0x"});for(let e=0;e<this.inputs.length;e+=1){let{cellOutput:n}=await this.inputs[e].getCell(t);if(r.codeHash===n.lock.codeHash&&r.hashType===n.lock.hashType)return e}}async findInputIndexByLock(e,t){let r=k.from(e);for(let e=0;e<this.inputs.length;e+=1){let{cellOutput:n}=await this.inputs[e].getCell(t);if(r.eq(n.lock))return e}}async findLastInputIndexByLock(e,t){let r=k.from(e);for(let e=this.inputs.length-1;e>=0;e-=1){let{cellOutput:n}=await this.inputs[e].getCell(t);if(r.eq(n.lock))return e}}addCellDeps(...e){e.flat().forEach(e=>{let t=W.from(e);this.cellDeps.some(e=>e.eq(t))||this.cellDeps.push(t)})}addCellDepsAtStart(...e){e.flat().forEach(e=>{let t=W.from(e);this.cellDeps.some(e=>e.eq(t))||this.cellDeps.unshift(t)})}async addCellDepInfos(e,...t){this.addCellDeps(await e.getCellDeps(...t))}async addCellDepsOfKnownScripts(e,...t){await Promise.all(t.flat().map(async t=>this.addCellDepInfos(e,(await e.getKnownScript(t)).cellDeps)))}setOutputDataAt(e,t){this.outputsData.length<e&&this.outputsData.push(...Array.from(Array(e-this.outputsData.length),()=>"0x")),this.outputsData[e]=(0,m.C)(t)}getInput(e){return this.inputs[Number((0,l.Ti)(e))]}addInput(e){return this.witnesses.length>this.inputs.length&&this.witnesses.splice(this.inputs.length,0,"0x"),this.inputs.push(z.from(e))}getOutput(e){let t=Number((0,l.Ti)(e));if(!(t>=this.outputs.length))return U.from({cellOutput:this.outputs[t],outputData:this.outputsData[t]??"0x"})}get outputCells(){let{outputs:e,outputsData:t}=this;return function*(){for(let r=0;r<e.length;r++)yield U.from({cellOutput:e[r],outputData:t[r]??"0x"})}()}addOutput(e,t){let r="cellOutput"in e?U.from(e):U.from({cellOutput:e,outputData:t}),n=this.outputs.push(r.cellOutput);return this.setOutputDataAt(n-1,r.outputData),n}getWitnessArgsAt(e){let t=this.witnesses[e];return(t??"0x")!=="0x"?X.fromBytes(t):void 0}setWitnessArgsAt(e,t){this.setWitnessAt(e,t.toBytes())}setWitnessAt(e,t){this.witnesses.length<e&&this.witnesses.push(...Array.from(Array(e-this.witnesses.length),()=>"0x")),this.witnesses[e]=(0,m.C)(t)}async prepareSighashAllWitness(e,t,r){let n=await this.findInputIndexByLock(e,r);if(void 0===n)return;let i=this.getWitnessArgsAt(n)??X.from({});i.lock=(0,m.C)(Array.from(Array(t),()=>0)),this.setWitnessArgsAt(n,i)}async getInputsCapacityExtra(e){return(0,v.wE)(this.inputs,async(t,r)=>t+await r.getExtraCapacity(e),(0,l.Ti)(0))}async getInputsCapacity(e){return await (0,v.wE)(this.inputs,async(t,r)=>{let{cellOutput:{capacity:n}}=await r.getCell(e);return t+n},(0,l.Ti)(0))+await this.getInputsCapacityExtra(e)}getOutputsCapacity(){return this.outputs.reduce((e,{capacity:t})=>e+t,(0,l.Ti)(0))}async getInputsUdtBalance(e,t){return(0,v.wE)(this.inputs,async(r,n)=>{let{cellOutput:i,outputData:s}=await n.getCell(e);
631if(i.type?.eq(t))return r+Y(s)},(0,l.Ti)(0))}getOutputsUdtBalance(e){return this.outputs.reduce((t,r,n)=>r.type?.eq(e)?t+Y(this.outputsData[n]):t,(0,l.Ti)(0))}async completeInputs(e,t,r,n){let i=[],s=n,c=!1;for await(let n of e.findCells(t,!0)){if(this.inputs.some(({previousOutput:e})=>e.eq(n.outPoint)))continue;let e=i.push(n),t=await Promise.resolve(r(s,n,e-1,i));if(void 0===t){c=!0;break}s=t}return(i.forEach(e=>this.addInput(e)),c)?{addedCount:i.length}:{addedCount:i.length,accumulated:s}}async completeInputsByCapacity(e,t,r){let n=this.getOutputsCapacity()+(0,l.Ti)(t??0),i=await this.getInputsCapacity(e.client);if(i>=n)return 0;let{addedCount:s,accumulated:c}=await this.completeInputs(e,r??{scriptLenRange:[0,1],outputDataLenRange:[0,1]},(e,{cellOutput:{capacity:t}})=>{let r=e+t;return r>=n?void 0:r},i);if(void 0===c)return s;throw new _(n-c)}async completeInputsAll(e,t){let{addedCount:r}=await this.completeInputs(e,t??{scriptLenRange:[0,1],outputDataLenRange:[0,1]},(e,{cellOutput:{capacity:t}})=>e+t,y._Y);return r}async completeInputsByUdt(e,t,r){let n=this.getOutputsUdtBalance(t)+(0,l.Ti)(r??0);if(n===(0,l.Ti)(0))return 0;let[i,s]=await (0,v.wE)(this.inputs,async([r,n],i)=>{let{cellOutput:s,outputData:c}=await i.getCell(e.client);if(s.type?.eq(t))return[r+Y(c),n+1]},[(0,l.Ti)(0),0]);if(i===n||i>=n&&s>=2)return 0;let{addedCount:c,accumulated:a}=await this.completeInputs(e,{script:t,outputDataLenRange:[16,(0,l.Ti)("0xffffffff")]},(e,{outputData:t},r,i)=>{let c=Y(t),a=e+c;return a===n||a>=n&&s+i.length>=2?void 0:a},i);if(void 0===a||a>=n)return c;throw new P(n-a,t)}async completeInputsAddOne(e,t){let{addedCount:r,accumulated:n}=await this.completeInputs(e,t??{scriptLenRange:[0,1],outputDataLenRange:[0,1]},()=>void 0,!0);if(void 0===n)return r;throw Error("Insufficient CKB, need at least one new cell")}async completeInputsAtLeastOne(e,t){return this.inputs.length>0?0:this.completeInputsAddOne(e,t)}async getFee(e){return await this.getInputsCapacity(e)-this.getOutputsCapacity()}async getFeeRate(e){return await this.getFee(e)*(0,l.Ti)(1e3)/(0,l.Ti)(this.toBytes().length+4)}estimateFee(e){let t=this.toBytes().length+4;return((0,l.Ti)(t)*(0,l.Ti)(e)+(0,l.Ti)(999))/(0,l.Ti)(1e3)}async completeFee(e,t,r,n,i){let s=r??await e.client.getFeeRate(i?.feeRateBlockRange,i);await this.getInputsCapacity(e.client);let c=y._Y,a=y._Y,o=0;for(;;){o+=await (async()=>{if(!(i?.shouldAddInputs??!0))return 0;try{return await this.completeInputsByCapacity(e,c+a,n)}catch(e){if(e instanceof _&&a!==y._Y)throw new _(e.amount,{isForChange:!0});throw e}})();let r=await this.getFee(e.client);if(r<c+a)throw new _(c+a-r,{isForChange:a!==y._Y});if(await e.prepareTransaction(this),c===y._Y&&(c=this.estimateFee(s)),r===c)return[o,!1];let d=this.clone(),f=(0,l.Ti)(await Promise.resolve(t(d,r-c)));if(f>y._Y){a=f;continue}if(await d.getFee(e.client)!==c)throw Error("The change function doesn't use all available capacity");await e.prepareTransaction(d);let u=d.estimateFee(s);if(c>u)throw Error("The change function removed existed transaction data");if(c===u)return this.copy(d),[o,!0];c=u}}completeFeeChangeToLock(e,t,r,n,i){let s=k.from(t);return this.completeFee(e,(e,t)=>{let r=H.from({capacity:0,lock:s}),n=(0,y.Fw)(r.occupiedSize);return t<n?n:(r.capacity=t,e.addOutput(r),0)},r,n,i)}async completeFeeBy(e,t,r,n){let{script:i}=await e.getRecommendedAddressObj();return this.completeFeeChangeToLock(e,i,t,r,n)}completeFeeChangeToOutput(e,t,r,n,i){let s=Number((0,l.Ti)(t));if(!this.outputs[s])throw Error("Non-existed output to change");return this.completeFee(e,(e,t)=>(e.outputs[s].capacity+=t,0),r,n,i)}};function ee(e,t,r){let n=p.q4.from(t),i=p.q4.from(r),s=(0,l.Ti)(e);return s*i.dao.ar/n.dao.ar-s}function et(e,t){let r=p.q4.from(e).epoch,n=p.q4.from(t).epoch,i=n[0]-r[0];return i%(0,l.Ti)(180)!==(0,l.Ti)(0)||r[1]*n[2]<=r[2]*n[1]?[r[0]+(i/(0,l.Ti)(180)+(0,l.Ti)(1))*(0,l.Ti)(180),r[1],r[2]]:[r[0]+i/(0,l.Ti)(180)*(0,l.Ti)(180),r[1],r[2]]}function er(e,t){return(0,u.B)(z.from(e).toBytes(),(0,l.Db)(t,8))}Q=f=I([w.A.codec(w.A.table({raw:G,witnesses:w.A.BytesVec}).mapIn(e=>{let t=Q.from(e);return{raw:t,witnesses:t.witnesses}}).mapOut(e=>Q.from({...e.raw,witnesses:e.witnesses})))],Q)},85882:function(e,t,r){"use strict";r.d(t,{SP:function(){return s},gM:function(){return i},pN:function(){return n}});let n={type:1,data:0,data1:2,data2:4},i={1:"type",0:"data",2:"data1",4:"data2"},s=Object.keys(n)},50672:function(e,t,r){"use strict";r.d(t,{Bm:function(){return n},h2:function(){return i},vz:function(){return s}});let n={code:0,depGroup:1},i={0:"code",1:"depGroup"},s=Object.keys(n)},65771:function(e,t,r){"use strict";r.d(t,{NG:function(){return d},VI:function(){return p},Vi:function(){return b},cm:function(){return f},dr:function(){return h},sx:function(){return u},yX:function(){return l}});var n=r(42130),i=r(70631),s=r(96510),c=r(56263),a=r(34622),o=r(17898);let d=(0,c.Ti)(5e5);function f(e,t,r){if(!t)return!0;let n=(0,s.C)(e),i=(0,s.C)(t);return!!(("exact"!==r||n===i)&&("prefix"!==r||n.startsWith(i)))&&("partial"!==r||-1!==n.search(i))}function u(e,t,r){if(!t)return!0;
631if(!e)return!1;let n=i.Xf.from(e),s=i.Xf.from(t);return n.codeHash===s.codeHash&&n.hashType===s.hashType&&f(n.args,s?.args,r)}function l(e,t){if(!t)return!0;let r=(0,c.Ti)(e),[n,i]=(0,a.eP)(t);return n<=r&&r<i}function h(e,t){if(!t)return!0;let r=e?(0,n.O6)(i.Xf.from(e).args).length+33:0;return l(r,t)}function p(e,t){let r=o.f$.from(e),s=i.bL.from(t);return!!(("lock"!==r.scriptType||u(s.cellOutput.lock,r.script,r.scriptSearchMode)&&u(s.cellOutput.type,r.filter?.script,"prefix")&&h(s.cellOutput.type,r.filter?.scriptLenRange))&&("type"!==r.scriptType||u(s.cellOutput.type,r.script,r.scriptSearchMode)&&u(s.cellOutput.lock,r.filter?.script,"prefix")&&h(s.cellOutput.lock,r.filter?.scriptLenRange))&&f(s.outputData,r.filter?.outputData,r.filter?.outputDataSearchMode??"prefix")&&l((0,n.O6)(s.outputData).length,r.filter?.outputDataLenRange)&&l(s.cellOutput.capacity,r.filter?.outputCapacityRange))}class b extends Map{constructor(e){if(super(),this.capacity=e,this.lru=new Set,!Number.isInteger(e)||e<1)throw Error("Capacity must be a positive integer")}get(e){if(super.has(e))return this.lru.delete(e),this.lru.add(e),super.get(e)}set(e,t){if(super.set(e,t),this.lru.delete(e),this.lru.add(e),this.lru.size>this.capacity){let e=this.lru.keys().next().value;this.delete(e)}return this}delete(e){return!!super.delete(e)&&(this.lru.delete(e),!0)}clear(){super.clear(),this.lru.clear()}}},87200:function(e,t,r){"use strict";r.d(t,{L:function(){return i}});var n=r(54970);let i=Object.freeze({[n.s.NervosDao]:{codeHash:"0x82d76d1b75fe2fd9a27dfbaa65a039221a380d76c926f378d3f81cf3e7e13f2e",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xe2fb199810d49a4d8beec56718ba2593b665db9d52299a0f9e6e75416d73ff5c",index:2},depType:"code"}}]},[n.s.Secp256k1Blake160]:{codeHash:"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c",index:0},depType:"depGroup"}}]},[n.s.Secp256k1Multisig]:{codeHash:"0x5c5069eb0857efc65e1bca0c07df34c31663b3622fd3876c876320fc9634e2a8",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c",index:1},depType:"depGroup"}}]},[n.s.Secp256k1MultisigV2]:{codeHash:"0x36c971b8d41fbd94aabca77dc75e826729ac98447b46f91e00796155dddb0d29",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x6888aa39ab30c570c2c30d9d5684d3769bf77265a7973211a3c087fe8efbf738",index:0},depType:"depGroup"}}]},[n.s.AnyoneCanPay]:{codeHash:"0xd369597ff47f29fbc0d47d2e3775370d1250b85140c670e4718af712983a2354",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x4153a2014952d7cac45f285ce9a7c5c0c0e1b21f2d378b82ac1433cb11c25c4d",index:0},depType:"depGroup"}}]},[n.s.TypeId]:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",cellDeps:[]},[n.s.XUdt]:{codeHash:"0x50bd8d6680b8b9cf98b73f3c08faf8b2a21914311954118ad6609be6e78a1b95",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xc07844ce21b38e4b071dd0e1ee3b0e27afd8d7532491327f39b786343f558ab7",index:0},depType:"code"}}]},[n.s.JoyId]:{codeHash:"0xd00c84f0ec8fd441c38bc3f87a371f547190f2fcff88e642bc5bf54b9e318323",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x2d1f2d4d1514ccc3bb4f04f5437a5ae30d00636ee57cedd2c70ab3ea75b62adc"}},{cellDep:{outPoint:{txHash:"0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b",index:1},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0xc086090432098835ec542a1b94bdd1b842c5aa1ccd1616873fe77f4a04044417"}},{cellDep:{outPoint:{txHash:"0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b",index:2},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x165b225c6fbed7e655b024384d9083de3243375f9893706f4452858ecd694e96"}},{cellDep:{outPoint:{txHash:"0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b",index:3},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0xafb8408d0094ab944e6286aac750b9bb854ac0bcb66dfe5c60559744a700e70c"}},{cellDep:{outPoint:{txHash:"0x8a605a4402cadda69fa64fd25cbbd74058e3eb86a7a72aee3d25df278564d31b",index:4},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x773bf0647be24b4e18ef44068fd069b9de5549c4b86be227779ceb9179598ec4"}}]},[n.s.COTA]:{codeHash:"0x1122a4fb54697cf2e6e3a96c9d80fd398a936559b90954c6e88eb7ba0cf652df",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xabaa25237554f0d6c586dc010e7e85e6870bcfd9fb8773257ecacfbe1fd738a0",index:0},depType:"depGroup"}}]},[n.s.PWLock]:{codeHash:"0xbf43c3602455798c1a61a596e0d95278864c552fafe231c063b3fabf97a8febc",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c",index:0},depType:"depGroup"}},{cellDep:{outPoint:{txHash:"0x1d60cb8f4666e039f418ea94730b1a8c5aa0bf2f7781474406387462924d15d4",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x42ade2f25eb938b5dbfd3d8f07b8b07aa593d848e7ff14bdfbbea5aeb6175261"}}]},[n.s.OmniLock]:{codeHash:"0x9b819793a64463aed77c615d6cb226eea5487ccfc0783043a587254cda2b6f26",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x71a7ba8fc96349fea0ed3a5c47992e3b4084b031a42264a018e0072e8172e46c",index:0},depType:"depGroup"}},{cellDep:{outPoint:{txHash:"0xc76edf469816aa22f416503c38d0b533d2a018e253e379f134c3985b3472c842",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x855508fe0f0ca25b935b070452ecaee48f6c9f1d66cd15f046616b99e948236a"}}]},[n.s.NostrLock]:{codeHash:"0x641a89ad2f77721b803cd50d01351c1f308444072d5fa20088567196c0574c68",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x1911208b136957d5f7c1708a8835edfe8ae1d02700d5cb2c3a6aacf4d5906306",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0xfad8cb75eb0bb01718e2336002064568bc05887af107f74ed5dd501829e192f8"}}]},[n.s.UniqueType]:{codeHash:"0x2c8c11c985da60b0a330c61a85507416d6382c130ba67f0c47ab071e00aec628",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x67524c01c0cb5492e499c7c7e406f2f9d823e162d6b0cf432eacde0c9808c2ad",index:0},depType:"code"}}]},[n.s.AlwaysSuccess]:{codeHash:"0x3b521cc4b552f109d092d8cc468a8048acb53c5952dbe769d2b2f9cf6e47f7f1",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x10d63a996157d32c01078058000052674ca58d1
6315f921bec7f1dcdac2160eb66b",index:0},depType:"code"}}]},[n.s.InputTypeProxyLock]:{codeHash:"0x5123908965c711b0ffd8aec642f1ede329649bda1ebdca6bd24124d3796f768a",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b",index:1},depType:"code"}}]},[n.s.OutputTypeProxyLock]:{codeHash:"0x2df53b592db3ae3685b7787adcfef0332a611edb83ca3feca435809964c3aff2",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b",index:2},depType:"code"}}]},[n.s.LockProxyLock]:{codeHash:"0x5d41e32e224c15f152b7e6529100ebeac83b162f5f692a5365774dad2c1a1d02",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b",index:3},depType:"code"}}]},[n.s.SingleUseLock]:{codeHash:"0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b",index:4},depType:"code"}}]},[n.s.TypeBurnLock]:{codeHash:"0xff78bae0abf17d7a404c0be0f9ad9c9185b3f88dcc60403453d5ba8e1f22f53a",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x10d63a996157d32c01078058000052674ca58d15f921bec7f1dcdac2160eb66b",index:5},depType:"code"}}]},[n.s.EasyToDiscoverType]:{codeHash:"0xaba4430cc7110d699007095430a1faa72973edf2322ddbfd4d1d219cacf237af",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xb0ed754fb27d67fd8388c97fed914fb7998eceaa01f3e6f967e498de1ba0ac9b",index:0},depType:"code"}}]},[n.s.TimeLock]:{codeHash:"0x6fac4b2e89360a1e692efcddcb3a28656d8446549fb83da6d896db8b714f4451",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xb0ed754fb27d67fd8388c97fed914fb7998eceaa01f3e6f967e498de1ba0ac9b",index:1},depType:"code"}}]}})},55114:function(e,t,r){"use strict";r.d(t,{$:function(){return i}});var n=r(54970);let i=Object.freeze({[n.s.NervosDao]:{codeHash:"0x82d76d1b75fe2fd9a27dfbaa65a039221a380d76c926f378d3f81cf3e7e13f2e",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x8f8c79eb6671709633fe6a46de93c0fedc9c1b8a6527a18d3983879542635c9f",index:2},depType:"code"}}]},[n.s.Secp256k1Blake160]:{codeHash:"0x9bd7e06f3ecf4be0f2fcd2188b23f1b9fcc88e5d4b65a8637b17723bbda3cce8",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37",index:0},depType:"depGroup"}}]},[n.s.Secp256k1Multisig]:{codeHash:"0x5c5069eb0857efc65e1bca0c07df34c31663b3622fd3876c876320fc9634e2a8",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37",index:1},depType:"depGroup"}}]},[n.s.Secp256k1MultisigV2]:{codeHash:"0x36c971b8d41fbd94aabca77dc75e826729ac98447b46f91e00796155dddb0d29",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x2eefdeb21f3a3edf697c28a52601b4419806ed60bb427420455cc29a090b26d5",index:0},depType:"depGroup"}}]},[n.s.AnyoneCanPay]:{codeHash:"0x3419a1c09eb2567f6552ee7a8ecffd64155cffe0f1796e6e61ec088d740c1356",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xec26b0f85ed839ece5f11c4c4e837ec359f5adc4420410f6453b1f6b60fb96a6",index:0},depType:"depGroup"}}]},[n.s.TypeId]:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",cellDeps:[]},[n.s.XUdt]:{codeHash:"0x25c29dc317811a6f6f3985a7a9ebc4838bd388d19d0feeecf0bcd60f6c0975bb",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xbf6fb538763efec2a70a6a3dcb7242787087e1030c4e7d86585bc63a9d337f5f",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x44ec8b96663e06cc94c8c468a4d46d7d9af69eaf418f6390c9f11bb763dda0ae"}}]},[n.s.JoyId]:{codeHash:"0xd23761b364210735c19c60561d213fb3beae2fd6172743719eff6920e020baac",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x4a596d31dc35e88fb1591debbf680b04a44b4a434e3a94453c21ea8950ffb4d9",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x1c9fc299ba0570d077b4d7fb9acff1ccc0de69d369942d82678bae937c44ec30"}},{cellDep:{outPoint:{txHash:"0x4a596d31dc35e88fb1591debbf680b04a44b4a434e3a94453c21ea8950ffb4d9",index:1},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x27f0d3ccdc2fcd52ae31fbacad5f86b97bc147d7093e4807cd6e3d21c1fe6841"}},{cellDep:{outPoint:{txHash:"0xf2c9dbfe7438a8c622558da8fa912d36755271ea469d3a25cb8d3373d35c8638",index:1},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x0ac15fe5b2d059ec39de03f2d3159d5463abb918a1a07a9fa00d2b9c61d89ef3"}},{cellDep:{outPoint:{txHash:"0x95ecf9b41701b45d431657a67bbfa3f07ef7ceb53bf87097f3674e1a4a19ce62",index:1},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0xc7bafc5550ccad7cea32c27764f5df6aca4de547da65e3e67fa08477a1af7f5e"}},{cellDep:{outPoint:{txHash:"0x8b3255491f3c4dcc1cfca33d5c6bcaec5409efe4bbda243900f9580c47e0242e",index:1},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x71decef9ca8725e64ec99a5521790d16b8d5daadb4989b45dd6ab51806a8c0e4"}}]},[n.s.COTA]:{codeHash:"0x89cd8003a0eaf8e65e0c31525b7d1d5c1becefd2ea75bb4cff87810ae37764d8",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x636a786001f87cb615acfcf408be0f9a1f077001f0bbc75ca54eadfe7e221713",index:0},depType:"depGroup"}}]},[n.s.PWLock]:{codeHash:"0x58c5f491aba6d61678b7cf7edf4910b1f5e00ec0cde2f42e0abb4fd9aff25a63",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37",index:0},depType:"depGroup"}},{cellDep:{outPoint:{txHash:"0x57a62003daeab9d54aa29b944fc3b451213a5ebdf2e232216a3cfed0dde61b38",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0xf6d90bfe3041d0fd7e01c45770241697f5f837974bd6ae1672a7ec0f9f523268"}}]},[n.s.OmniLock]:{codeHash:"0xf329effd1c475a2978453c8600e1eaf0bc2087ee093c3ee64cc96ec6847752cb",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xf8de3bb47d055cdf460d93a2a6e1b05f7432f9777c8c474abf4eec1d4aee5d37",index:0},depType:"depGroup"}},{cellDep:{outPoint:{txHash:"0xec18bf0d857c981c3d1f4e17999b9b90c484b303378e94de1a57b0872f5d4602",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x761f51fc9cd6a504c32c6ae64b3746594d1af27629b427c5ccf6c9a725a89144"}}]},[n.s.NostrLock]:{codeHash:"0x6ae5ee0cb887b2df5a9a18137315b9bdc55be8d52637b2de0624092d5f0c91d5",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xa2a434dcdbe280b9ed75bb7d6c7d68186a842456aba0fc506657dc5ed7c01d68",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x8dc56c6f35f0c535e23ded1629b1f20535477a1b43e59f14617d11e32c50e0aa"}}]},[n.s.UniqueType]:{codeHash:"0x8e341bcfec6393dcd41e635733ff2dca00a6af546949f70c57a706c0f344df8b",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0xff91b063c78ed06f10a1ed436122bd7d671f9a72ef5f5fa28d05252c17cf4cef",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0xe04976b67600fd25ac50305f77b33aee2c12e3c18e63ece9119e5b32117884b5"}}]},[n.s.AlwaysSuccess]:{codeHash:"0x3b521cc4b552f109d092d8cc468a8048acb53c5952dbe769d2b2f9cf6e47f7f1",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93",index:0},depType:"code"}}]},[n.s.InputTypeProxyLock]:{codeHash:"0x5123908965c711b0ffd8aec642f1ede329649bda1ebdca6bd24124d3796f768a",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93",index:1},depType:"code"}}]},[n.s.OutputTypeProxyLock]:{codeHash:"0x2df53b592db3ae3685b7787adcfef0332a611edb83ca3feca435809964c3aff2",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93",index:2},depType:"code"}}]}
631,[n.s.LockProxyLock]:{codeHash:"0x5d41e32e224c15f152b7e6529100ebeac83b162f5f692a5365774dad2c1a1d02",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93",index:3},depType:"code"}}]},[n.s.SingleUseLock]:{codeHash:"0x8290467a512e5b9a6b816469b0edabba1f4ac474e28ffdd604c2a7c76446bbaf",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93",index:4},depType:"code"}}]},[n.s.TypeBurnLock]:{codeHash:"0xff78bae0abf17d7a404c0be0f9ad9c9185b3f88dcc60403453d5ba8e1f22f53a",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xb4f171c9c9caf7401f54a8e56225ae21d95032150a87a4678eac3f66a3137b93",index:5},depType:"code"}}]},[n.s.EasyToDiscoverType]:{codeHash:"0xaba4430cc7110d699007095430a1faa72973edf2322ddbfd4d1d219cacf237af",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x1b4ffcad55ecd36ffb2715b6816b83da73851f1a24fe594f263c4f34dad90792",index:0},depType:"code"}}]},[n.s.TimeLock]:{codeHash:"0x6fac4b2e89360a1e692efcddcb3a28656d8446549fb83da6d896db8b714f4451",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x1b4ffcad55ecd36ffb2715b6816b83da73851f1a24fe594f263c4f34dad90792",index:1},depType:"code"}}]}})},34622:function(e,t,r){"use strict";r.d(t,{FM:function(){return s},OL:function(){return i},eP:function(){return c}});var n=r(56263);let i=(0,n.Ti)(1e7),s=(0,n.Ti)(1e3);function c([e,t]){return[(0,n.Ti)(e),(0,n.Ti)(t)]}},17898:function(e,t,r){"use strict";r.d(t,{$1:function(){return v},BO:function(){return y},CX:function(){return u},Ce:function(){return h},Iv:function(){return T},K:function(){return b},ZY:function(){return x},cW:function(){return o},f$:function(){return l},jd:function(){return S},ll:function(){return m},oo:function(){return w},q4:function(){return p},r3:function(){return d},r8:function(){return g},tR:function(){return f}});var n=r(70631),i=r(96510),s=r(56263),c=r(18378),a=r(34622);class o{constructor(e,t){this.cellDep=e,this.type=t}static from(e){return e instanceof o?e:new o(n.L1.from(e.cellDep),(0,c.nn)(n.Xf.from,e.type))}}class d{constructor(e,t,r){this.codeHash=e,this.hashType=t,this.cellDeps=r}static from(e){return e instanceof d?e:new d((0,i.C)(e.codeHash),(0,n.o1)(e.hashType),e.cellDeps.map(e=>o.from(e)))}}class f{constructor(e,t,r,n,i,s,c){this.transaction=e,this.status=t,this.cycles=r,this.blockHash=n,this.blockNumber=i,this.txIndex=s,this.reason=c}static from(e){return e instanceof f?e:new f(n.YW.from(e.transaction),e.status,(0,c.nn)(s.Ti,e.cycles),(0,c.nn)(i.C,e.blockHash),(0,c.nn)(s.Ti,e.blockNumber),(0,c.nn)(s.Ti,e.txIndex),e.reason)}clone(){return new f(this.transaction.clone(),this.status,this.cycles,this.blockHash,this.blockNumber,this.txIndex,this.reason)}}class u{constructor(e,t,r,n,i,s,c){this.script=e,this.scriptLenRange=t,this.outputData=r,this.outputDataSearchMode=n,this.outputDataLenRange=i,this.outputCapacityRange=s,this.blockRange=c}static from(e){return e instanceof u?e:new u((0,c.nn)(n.Xf.from,e.script),(0,c.nn)(a.eP,e.scriptLenRange),(0,c.nn)(i.C,e.outputData),e.outputDataSearchMode??void 0,(0,c.nn)(a.eP,e.outputDataLenRange),(0,c.nn)(a.eP,e.outputCapacityRange),(0,c.nn)(a.eP,e.blockRange))}}class l{constructor(e,t,r,n,i){this.script=e,this.scriptType=t,this.scriptSearchMode=r,this.filter=n,this.withData=i}static from(e){return e instanceof l?e:new l(n.Xf.from(e.script),e.scriptType,e.scriptSearchMode,(0,c.nn)(u.from,e.filter),e.withData??void 0)}}class h{constructor(e,t,r,n,i){this.script=e,this.scriptType=t,this.scriptSearchMode=r,this.filter=n,this.groupByTransaction=i}static from(e){return e instanceof h?e:new h(n.Xf.from(e.script),e.scriptType,e.scriptSearchMode,(0,c.nn)(u.from,e.filter),e.groupByTransaction??void 0)}}class p{constructor(e,t,r,n,i,s,c,a,o,d,f,u){this.compactTarget=e,this.dao=t,this.epoch=r,this.extraHash=n,this.hash=i,this.nonce=s,this.number=c,this.parentHash=a,this.proposalsHash=o,this.timestamp=d,this.transactionsRoot=f,this.version=u}static from(e){return e instanceof p?e:new p((0,s.Ti)(e.compactTarget),{c:(0,s.Ti)(e.dao.c),ar:(0,s.Ti)(e.dao.ar),s:(0,s.Ti)(e.dao.s),u:(0,s.Ti)(e.dao.u)},(0,n.bU)(e.epoch),(0,i.C)(e.extraHash),(0,i.C)(e.hash),(0,s.Ti)(e.nonce),(0,s.Ti)(e.number),(0,i.C)(e.parentHash),(0,i.C)(e.proposalsHash),(0,s.Ti)(e.timestamp),(0,i.C)(e.transactionsRoot),(0,s.Ti)(e.version))}}class b{constructor(e,t){this.header=e,this.proposals=t}static from(e){return e instanceof b?e:new b(p.from(e.header),e.proposals.map(i.C))}}class y{constructor(e,t,r,n){this.header=e,this.proposals=t,this.transactions=r,this.uncles=n}static from(e){return e instanceof y?e:new y(p.from(e.header),e.proposals.map(i.C),e.transactions.map(n.YW.from),e.uncles.map(b.from))}}
631class g extends Error{constructor(e){super(`Client request error ${e.message}`),this.code=e.code,this.data=e.data}}class m extends g{constructor(e,t){super(e),this.outPoint=n.wD.from(t)}}class w extends g{constructor(e,t,r,n,c,a){super(e),this.source=t,this.errorCode=n,this.scriptHashType=c,this.sourceIndex=(0,s.Ti)(r),this.scriptCodeHash=(0,i.C)(a)}}class v extends g{constructor(e,t){super(e),this.txHash=(0,i.C)(t)}}class x extends g{constructor(e,t,r){super(e),this.currentFee=(0,s.Ti)(t),this.leastFee=(0,s.Ti)(r)}}class S extends g{constructor(e){let t=(0,s.Ti)(e).toString();super({message:`Wait transaction timeout ${t}ms`,data:JSON.stringify({timeout:t})})}}class T extends g{constructor(e,t){let r=(0,s.Ti)(e).toString(),n=(0,s.Ti)(t).toString();super({message:`Max fee rate exceeded limit ${r}, actual ${n}. Developer might forgot to complete transaction fee before sending. See https://api.ckbccc.com/classes/_ckb_ccc_core.index.ccc.Transaction.html#completeFeeBy.`,data:JSON.stringify({limit:r,actual:n})})}}},93841:function(e,t,r){"use strict";r.d(t,{cW:function(){return o.cW},KU:function(){return h},BO:function(){return o.BO},q4:function(){return o.q4},K:function(){return o.K},xv:function(){return c},hw:function(){return d},f$:function(){return o.f$},CX:function(){return o.CX},Ce:function(){return o.Ce},$D:function(){return w},eQ:function(){return v},jy:function(){return S},tR:function(){return o.tR},r8:function(){return o.r8},$1:function(){return o.$1},Iv:function(){return o.Iv},ZY:function(){return o.ZY},ll:function(){return o.ll},oo:function(){return o.oo},jd:function(){return o.jd},s2:function(){return T.s},r3:function(){return o.r3}});var n=r(70631),i=r(56263),s=r(65771);class c{async markUsable(...e){return await this.recordCells(...e),this.markUsableNoCache(...e)}async markTransactions(...e){await Promise.all([this.recordTransactionResponses(e.flat().map(e=>({transaction:e,status:"sent"}))),...e.flat().map(e=>{let t=n.YW.from(e),r=t.hash();return Promise.all([...t.inputs.map(e=>this.markUnusable(e.previousOutput)),...t.outputs.map((e,n)=>this.markUsable({cellOutput:e,outputData:t.outputsData[n],outPoint:{txHash:r,index:n}}))])})])}async recordCells(...e){}async getCell(e){}async recordTransactionResponses(...e){}async getTransactionResponse(e){}async recordTransactions(...e){return this.recordTransactionResponses(e.flat().map(e=>({transaction:e,status:"unknown"})))}async getTransaction(e){return(await this.getTransactionResponse(e))?.transaction}async recordHeaders(...e){}async getHeaderByHash(e){}async getHeaderByNumber(e){}async recordBlocks(...e){}async getBlockByHash(e){}async getBlockByNumber(e){}hasHeaderConfirmed(e){return(0,i.Ti)(Date.now())-e.timestamp>=s.NG}}var a=r(96510),o=r(17898);class d extends c{constructor(e=512,t=256,r=128,n=s.NG){super(),this.maxCells=e,this.maxTxs=t,this.maxBlocks=r,this.cells=new s.Vi(this.maxCells),this.knownTransactions=new s.Vi(this.maxTxs),this.knownBlockHashes=new s.Vi(this.maxBlocks),this.knownBlocks=new s.Vi(this.maxBlocks),this.confirmedBlockTime=(0,i.Ti)(n)}async markUsableNoCache(...e){e.flat().forEach(e=>{let t=n.bL.from(e).clone(),r=(0,a.C)(t.outPoint.toBytes());this.cells.set(r,[!0,t])})}async markUnusable(...e){e.flat().forEach(e=>{let t=n.wD.from(e),r=(0,a.C)(t.toBytes()),i=this.cells.get(r);if(i){i[0]=!1;return}this.cells.set(r,[!1,{outPoint:t}])})}async clear(){this.cells.clear(),this.knownTransactions.clear()}async *findCells(e){for(let[t,[r,n]]of this.cells.entries())r&&(0,s.VI)(e,n)&&(this.cells.get(t),yield n.clone())}async isUnusable(e){let t=n.wD.from(e);return!(this.cells.get(a.C(t.toBytes()))?.[0]??!0)}async recordCells(...e){e.flat().map(e=>{let t=n.bL.from(e),r=(0,a.C)(t.outPoint.toBytes());this.cells.get(r)||this.cells.set(r,[void 0,t])})}async getCell(e){let t=n.wD.from(e),r=this.cells.get(a.C(t.toBytes()))?.[1];if(r&&r.cellOutput&&r.outputData)return n.bL.from(r.clone())}async recordTransactionResponses(...e){e.flat().map(e=>{let t=o.tR.from(e);this.knownTransactions.set(t.transaction.hash(),t)})}async getTransactionResponse(e){let t=(0,a.C)(e);return this.knownTransactions.get(t)?.clone()}async recordHeaders(...e){e.flat().map(e=>
631{let t=o.q4.from(e);this.knownBlockHashes.set(t.number,t.hash);let r=this.knownBlocks.get(t.hash);r||this.knownBlocks.set(t.hash,{header:t})})}async getHeaderByHash(e){let t=(0,a.C)(e),r=this.knownBlocks.get(t);return r&&this.knownBlockHashes.get(r.header.number),r?.header}async getHeaderByNumber(e){let t=(0,i.Ti)(e),r=this.knownBlockHashes.get(t);if(r)return this.getHeaderByHash(r)}async recordBlocks(...e){e.flat().map(e=>{let t=o.BO.from(e);this.knownBlockHashes.set(t.header.number,t.header.hash),this.knownBlocks.set(t.header.hash,t)})}async getBlockByHash(e){let t=(0,a.C)(e),r=this.knownBlocks.get(t);if(r&&(this.knownBlockHashes.get(r.header.number),"transactions"in r))return r}async getBlockByNumber(e){let t=(0,i.Ti)(e),r=this.knownBlockHashes.get(t);if(r)return this.getBlockByHash(r)}hasHeaderConfirmed(e){return(0,i.Ti)(Date.now())-e.timestamp>=this.confirmedBlockTime}}var f=r(48967),u=r(18378),l=r(34622);class h{constructor(e){this.cache=e?.cache??new d}async getFeeRate(e,t){let r=(0,i.lj)((await this.getFeeRateStatistics(e)).median,l.FM),n=(0,i.Ti)(t?.maxFeeRate??l.OL);return n===f._Y?r:(0,i.yz)(r,n)}async getBlockByNumber(e,t,r){let n=await this.cache.getBlockByNumber(e);if(n)return n;let i=await this.getBlockByNumberNoCache(e,t,r);return i&&this.cache.hasHeaderConfirmed(i.header)&&await this.cache.recordBlocks(i),i}async getBlockByHash(e,t,r){let n=await this.cache.getBlockByHash(e);if(n)return n;let i=await this.getBlockByHashNoCache(e,t,r);return i&&this.cache.hasHeaderConfirmed(i.header)&&await this.cache.recordBlocks(i),i}async getHeaderByNumber(e,t){let r=await this.cache.getHeaderByNumber(e);if(r)return r;let n=await this.getHeaderByNumberNoCache(e,t);return n&&this.cache.hasHeaderConfirmed(n)&&await this.cache.recordHeaders(n),n}async getHeaderByHash(e,t){let r=await this.cache.getHeaderByHash(e);if(r)return r;let n=await this.getHeaderByHashNoCache(e,t);return n&&this.cache.hasHeaderConfirmed(n)&&await this.cache.recordHeaders(n),n}async getCell(e){let t=n.wD.from(e),r=await this.cache.getCell(t);if(r)return r;let i=await this.getTransaction(t.txHash);if(!i)return;let s=i.transaction.getOutput(t.index);if(!s)return;let c=n.bL.from({...s,outPoint:t});return await this.cache.recordCells(c),c}async getCellWithHeader(e){let t=n.wD.from(e),r=await this.getTransactionWithHeader(t.txHash);if(!r)return;let{transaction:i,header:s}=r,c=i.transaction.getOutput(t.index);if(!c)return;let a=n.bL.from({...c,outPoint:t});return await this.cache.recordCells(a),{cell:a,header:s}}async getCellLive(e,t,r){let n=await this.getCellLiveNoCache(e,t,r);return t&&n&&await this.cache.recordCells(n),n}async findCellsPaged(e,t,r,n){let i=await this.findCellsPagedNoCache(e,t,r,n);return await this.cache.recordCells(i.cells),i}async *findCellsOnChain(e,t,r=10){let n;for(;;){let{cells:i,lastCursor:s}=await this.findCellsPaged(e,t,r,n);for(let e of i)yield e;if(0===i.length||i.length<r)return;n=s}}async *findCells(e,t,r=10){let n=o.f$.from(e),i=[];for await(let e of this.cache.findCells(n))i.push(e.outPoint),yield e;for await(let e of this.findCellsOnChain(n,t,r))await this.cache.isUnusable(e.outPoint)||i.some(t=>t.eq(e.outPoint))||(yield e)}findCellsByLock(e,t,r=!0,n,i=10){return this.findCells({script:e,scriptType:"lock",scriptSearchMode:"exact",filter:{script:t},withData:r},n,i)}findCellsByType(e,t=!0,r,n=10){return this.findCells({script:e,scriptType:"type",scriptSearchMode:"exact",withData:t},r,n)}async findSingletonCellByType(e,t=!1){for await(let r of this.findCellsByType(e,t,void 0,1))return r}async getCellDeps(...e){return Promise.all(e.flat().map(async e=>{let{cellDep:t,type:r}=o.cW.from(e);if(void 0===r)return t;let i=await this.findSingletonCellByType(r);return i?n.L1.from({outPoint:i.outPoint,depType:t.depType}):t}))}async *findTransactions(e,t,r=10){let n;for(;;){let{transactions:i,lastCursor:s}=await this.findTransactionsPaged(e,t,r,n);for(let e of i)yield e;if(0===i.length||i.length<r)return;n=s}}findTransactionsByLock(e,t,r,n,i=10){return this.findTransactions({script:e,scriptType:"lock",scriptSearchMode:"exact",filter:{script:t},groupByTransaction:r},n,i)}findTransactionsByType(e,t,r,n=10){return this.findTransactions({script:e,scriptType:"type",scriptSearchMode:"exact",groupByTransaction:t},r,n)}async getBalanceSingle(e){return this.getCellsCapacity({script:e,scriptType:"lock",scriptSearchMode:"exact",filter:{scriptLenRange:[0,1],outputDataLenRange:[0,1]}})}async getBalance(e){return(0,u.wE)(e,async(e,t)=>e+await this.getBalanceSingle(t),f._Y)}async sendTransaction(e,t,r){let s=n.YW.from(e),c=(0,i.Ti)(r?.maxFeeRate??l.OL
631),a=await s.getFeeRate(this);if(c>f._Y&&a>c)throw new o.Iv(c,a);let d=await this.sendTransactionNoCache(s,t);return await this.cache.markTransactions(s),d}async getTransaction(e){let t=(0,a.C)(e),r=await this.getTransactionNoCache(t);return r?(await this.cache.recordTransactionResponses(r),r):this.cache.getTransactionResponse(t)}async getTransactionWithHeader(e){let t=(0,a.C)(e),r=await this.cache.getTransactionResponse(t);if(r?.blockHash){let e=await this.getHeaderByHash(r.blockHash);if(e&&this.cache.hasHeaderConfirmed(e))return{transaction:r,header:e}}let n=await this.getTransactionNoCache(t);if(n)return await this.cache.recordTransactionResponses(n),{transaction:n,header:n.blockHash?await this.getHeaderByHash(n.blockHash):void 0}}async waitTransaction(e,t=0,r=6e4,n=2e3){let i;let s=Date.now(),c=async()=>{let t=await this.getTransaction(e);if(!(!t||null==t.blockNumber||["sent","pending","proposed"].includes(t.status)))return i=t,t};for(;;){if(i){if(0===t||(await this.getTipHeader()).number-i.blockNumber>=t)return i}else if(await c())continue;if(Date.now()-s+n>=r)throw new o.jd(r);await (0,u._v)(n)}}}var p=r(49827),b=r(87200),y=r(3503),g=r(98497);let m=[["Resolve\\(Unknown\\(OutPoint\\((0x.*)\\)\\)\\)",(e,t)=>new o.ll(e,n.wD.fromBytes(t[1]))],["Verification\\(Error { kind: Script, inner: TransactionScriptError { source: (Inputs|Outputs)\\[([0-9]*)\\].(Lock|Type), cause: ValidationFailure: see error code (-?[0-9])* on page https://nervosnetwork\\.github\\.io/ckb-script-error-codes/by-(type|data)-hash/(.*)\\.html",(e,t)=>new o.oo(e,"Lock"===t[3]?"lock":"Inputs"===t[1]?"inputType":"outputType",t[2],Number(t[4]),"data"===t[5]?"data":"t
631ype",t[6])],["Duplicated\\(Byte32\\((0x.*)\\)\\)",(e,t)=>new o.$1(e,t[1])],['RBFRejected\\("Tx\'s current fee is ([0-9]*), expect it to >= ([0-9]*) to replace old txs"\\)',(e,t)=>new o.ZY(e,t[1],t[2])]];class w extends h{constructor(e,t){super(t),this.getFeeRateStatistics=this.buildSender("get_fee_rate_statistics",[e=>(0,u.nn)(i.Ti,e)],({mean:e,median:t})=>({mean:(0,i.Ti)(e),median:(0,i.Ti)(t)})),this.getTip=this.buildSender("get_tip_block_number",[],i.Ti),this.getTipHeader=this.buildSender("get_tip_header",[],e=>(0,u.nn)(g._.blockHeaderTo,e)),this.getBlockByNumberNoCache=this.buildSender("get_block_by_number",[e=>(0,i.G$)((0,i.Ti)(e))],e=>(0,u.nn)(g._.blockTo,e)),this.getBlockByHashNoCache=this.buildSender("get_block",[a.C],e=>(0,u.nn)(g._.blockTo,e)),this.getHeaderByNumberNoCache=this.buildSender("get_header_by_number",[e=>(0,i.G$)((0,i.Ti)(e))],e=>(0,u.nn)(g._.blockHeaderTo,e)),this.getHeaderByHashNoCache=this.buildSender("get_header",[a.C],e=>(0,u.nn)(g._.blockHeaderTo,e)),this.estimateCycles=this.buildSender("estimate_cycles",[g._.transactionFrom],({cycles:e})=>(0,i.Ti)(e)),this.sendTransactionDry=this.buildSender("test_tx_pool_accept",[g._.transactionFrom],({cycles:e})=>(0,i.Ti)(e)),this.sendTransactionNoCache=this.buildSender("send_transaction",[g._.transactionFrom,e=>e??void 0],a.C),this.getTransactionNoCache=this.buildSender("get_transaction",[a.C],g._.transactionResponseTo),this.findCellsPagedNoCache=this.buildSender("get_cells",[g._.indexerSearchKeyFrom,e=>e??"asc",e=>(0,i.G$)(e??10)],g._.findCellsResponseTo),this.findTransactionsPaged=this.buildSender("get_transactions",[g._.indexerSearchKeyTransactionFrom,e=>e??"asc",e=>(0,i.G$)(e??10)],g._.findTransactionsResponseTo),this.getCellsCapacity=this.buildSender("get_cells_capacity",[g._.indexerSearchKeyFrom],({capacity:e})=>(0,i.Ti)(e)),this.requestor=t?.requestor??new y.g(e,t,e=>{if("object"!=typeof e||null===e||!("data"in e)||"string"!=typeof e.data)throw e;for(let[t,r]of m){let n=e.data.match(t);if(n)throw r(e,n)}throw new o.r8(e)})}get url(){return this.requestor.url}getCellLiveNoCache(e,t,r){return this.buildSender("get_live_cell",[g._.outPointFrom],({cell:t})=>(0,u.nn)(({output:t,data:r})=>n.bL.from({cellOutput:g._.cellOutputTo(t),outputData:r?.content??"0x",outPoint:e}),t))(e,t??!0,r)}buildSender(e,t,r){return async(...n)=>this.requestor.request(e,n,t,r)}}class v extends w{constructor(e){let t=void 0!==p.Z;super(e?.url??(t?"wss://mainnet.ckb.dev/ws":"https://mainnet.ckb.dev/"),{...e,fallbacks:e?.fallbacks??(t?["wss://mainnet.ckb.dev/ws","https://mainnet.ckb.dev/","https://mainnet.ckbapp.dev/"]:["https://mainnet.ckb.dev/","https://mainnet.ckbapp.dev/"])}),this.config=e}get scripts(){return this.config?.scripts??b.L}get addressPrefix(){return"ckb"}async getKnownScript(e){let t=this.scripts[e];if(!t)throw Error(`No script information was found for ${e} on ${this.addressPrefix}`);return o.r3.from(t)}}var x=r(55114);class S extends w{constructor(e){let t=void 0!==p.Z;super(e?.url??(t?"wss://testnet.ckb.dev/ws":"https://testnet.ckb.dev/"),{...e,fallbacks:e?.fallbacks??(t?["wss://testnet.ckb.dev/ws","https://testnet.ckb.dev/","https://testnet.ckbapp.dev/"]:["https://testnet.ckb.dev/","https://testnet.ckbapp.dev/"])}),this.config=e}get scripts(){return this.config?.scripts??x.$}get addressPrefix(){return"ckt"}async getKnownScript(e){let t=this.scripts[e];if(!t)throw Error(`No script information was found for ${e} on ${this.addressPrefix}`);return o.r3.from(t)}}var T=r(54970)},98497:function(e,t,r){"use strict";r.d(t,{_:function(){return d}});var n=r(42130),i=r(70631),s=r(96510),c=r(56263),a=r(18378),o=r(17898);class d{static hashTypeFrom(e){return(0,i.o1)(e)}static hashTypeTo(e){return e}static depTypeFrom(e){switch((0,i.mq)(e)){case"code":return"code";case"depGroup":return"dep_group"}}static depTypeTo(e){switch(e){case"code":return"code";case"dep_group":return"depGroup"}}static scriptFrom(e){let t=i.Xf.from(e);return{code_hash:t.codeHash,hash_type:d.hashTypeFrom(t.hashType),args:t.args}}static scriptTo(e){return i.Xf.from({codeHash:e.code_hash,hashType:d.hashTypeTo(e.hash_type),args:e.args})}static outPointFrom(e){let t=i.wD.from(e);return{index:(0,c.G$)(t.index),tx_hash:t.txHash}}static outPointTo(e){return i.wD.from({index:e.index,txHash:e.tx_hash})}static cellInputFrom(e){let t=i.Gg.from(e);return{previous_output:d.outPointFrom(t.previousOutput),since:(0,c.G$)(t.since)}}static cellInputTo(e){return i.Gg.from({previousOutput:d.outPointTo(e.previous_output),since:e.since})}static cellOutputFrom(e,t){let r=i.Of.from(e,t);return{capacity:(0,c.G$)(r.capacity),lock:d.scriptFrom(r.lock),type:(0,a.nn)(d.scriptFrom,r.type)}}static cellOutputTo(e){return i.Of.from({capacity:e.capacity,lock:d.scriptTo(e.lock),type:(0,a.nn)(d.scriptTo,e.type)})}static cellDepFrom(e){return{out_point:d.outPointFrom(e.outPoint),dep_type:d.depTypeFrom(e.depType)}}static cellDepTo(e){return i.L1.from({outPoint:d.outPointTo(e.out_point),depType:d.depTypeTo(e.dep_type)})}static transactionFrom(e){let t=i.YW.from(e);
631return{version:(0,c.G$)(t.version),cell_deps:t.cellDeps.map(e=>d.cellDepFrom(e)),header_deps:t.headerDeps,inputs:t.inputs.map(e=>d.cellInputFrom(e)),outputs:t.outputs.map(e=>d.cellOutputFrom(e)),outputs_data:t.outputsData,witnesses:t.witnesses}}static transactionTo(e){return i.YW.from({version:e.version,cellDeps:e.cell_deps.map(e=>d.cellDepTo(e)),headerDeps:e.header_deps,inputs:e.inputs.map(e=>d.cellInputTo(e)),outputs:e.outputs.map(e=>d.cellOutputTo(e)),outputsData:e.outputs_data,witnesses:e.witnesses})}static transactionResponseTo({cycles:e,tx_status:{status:t,block_number:r,block_hash:n,tx_index:i,reason:f},transaction:u}){if(null!=u)return o.tR.from({transaction:d.transactionTo(u),status:t,cycles:(0,a.nn)(c.Ti,e),blockHash:(0,a.nn)(s.C,n),blockNumber:(0,a.nn)(c.Ti,r),txIndex:(0,a.nn)(c.Ti,i),reason:f})}static blockHeaderTo(e){let t=(0,n.O6)(e.dao);return{compactTarget:(0,c.Ti)(e.compact_target),dao:{c:(0,c.wL)(t.slice(0,8)),ar:(0,c.wL)(t.slice(8,16)),s:(0,c.wL)(t.slice(16,24)),u:(0,c.wL)(t.slice(24,32))},epoch:(0,i.MX)(e.epoch),extraHash:e.extra_hash,hash:e.hash,nonce:(0,c.Ti)(e.nonce),number:(0,c.Ti)(e.number),parentHash:e.parent_hash,proposalsHash:e.proposals_hash,timestamp:(0,c.Ti)(e.timestamp),transactionsRoot:e.transactions_root,version:(0,c.Ti)(e.version)}}static blockUncleTo(e){return{header:d.blockHeaderTo(e.header),proposals:e.proposals}}static blockTo(e){return{header:d.blockHeaderTo(e.header),proposals:e.proposals,transactions:e.transactions.map(e=>d.transactionTo(e)),uncles:e.uncles.map(e=>d.blockUncleTo(e))}}static rangeFrom([e,t]){return[(0,c.G$)(e),(0,c.G$)(t)]}static indexerSearchKeyFilterFrom(e){return{script:(0,a.nn)(d.scriptFrom,e.script),script_len_range:(0,a.nn)(d.rangeFrom,e.scriptLenRange),output_data:e.outputData,output_data_filter_mode:e.outputDataSearchMode,output_data_len_range:(0,a.nn)(d.rangeFrom,e.outputDataLenRange),output_capacity_range:(0,a.nn)(d.rangeFrom,e.outputCapacityRange),block_range:(0,a.nn)(d.rangeFrom,e.blockRange)}}static indexerSearchKeyFrom(e){let t=o.f$.from(e);return{script:d.scriptFrom(t.script),script_type:t.scriptType,script_search_mode:t.scriptSearchMode,filter:(0,a.nn)(d.indexerSearchKeyFilterFrom,t.filter),with_data:t.withData}}static findCellsResponseTo({last_cursor:e,objects:t}){return{lastCursor:e,cells:t.map(e=>i.bL.from({outPoint:d.outPointTo(e.out_point),cellOutput:d.cellOutputTo(e.output),outputData:e.output_data??"0x"}))}}static indexerSearchKeyTransactionFrom(e){let t=o.Ce.from(e);return{script:d.scriptFrom(t.script),script_type:t.scriptType,script_search_mode:t.scriptSearchMode,filter:(0,a.nn)(d.indexerSearchKeyFilterFrom,t.filter),group_by_transaction:t.groupByTransaction}}static findTransactionsResponseTo({last_cursor:e,objects:t}){return 0===t.length?{lastCursor:e,transactions:[]}:"io_index"in t[0]?{lastCursor:e,transactions:t.map(e=>({txHash:e.tx_hash,blockNumber:(0,c.Ti)(e.block_number),txIndex:(0,c.Ti)(e.tx_index),cellIndex:(0,c.Ti)(e.io_index),isInput:"input"===e.io_type}))}:{lastCursor:e,transactions:t.map(e=>({txHash:e.tx_hash,blockNumber:(0,c.Ti)(e.block_number),txIndex:(0,c.Ti)(e.tx_index),cells:e.cells.map(([e,t])=>({isInput:"input"===e,cellIndex:(0,c.Ti)(t)}))}))}}}},54970:function(e,t,r){"use strict";var n,i;r.d(t,{s:function(){return n}}),(i=n||(n={})).NervosDao="NervosDao",i.Secp256k1Blake160="Secp256k1Blake160",i.Secp256k1Multisig="Secp256k1Multisig",i.Secp256k1MultisigV2="Secp256k1MultisigV2",i.AnyoneCanPay="AnyoneCanPay",i.TypeId="TypeId",i.XUdt="XUdt",i.JoyId="JoyId",i.COTA="COTA",i.PWLock="PWLock",i.OmniLock="OmniLock",i.NostrLock="NostrLock",i.UniqueType="UniqueType",i.AlwaysSuccess="AlwaysSuccess",i.InputTypeProxyLock="InputTypeProxyLock",i.OutputTypeProxyLock="OutputTypeProxyLock",i.LockProxyLock="LockProxyLock",i.SingleUseLock="SingleUseLock",i.TypeBurnLock="TypeBurnLock",i.EasyToDiscoverType="EasyToDiscoverType",i.TimeLock="TimeLock"},48967:function(e,t,r){"use strict";function n(e,t=8){let r=i(e).toString();if(0===t)return r;let n=r.length<=t?"0":r.slice(0,-t),s=r.slice(-t).padStart(t,"0").replace(/0*$/,"");return""===s?n:`${n}.${s}`}function i(e,t=8){if("bigint"==typeof e)return e;let[r,n]=("number"==typeof e?e.toFixed(t):e.toString()).split("."),i=BigInt(r.padEnd(r.length+t,"0"));return void 0===n?i:i+BigInt(n.slice(0,t).padEnd(t,"0"))}r.d(t,{Fw:function(){return i},JV:function(){return n},_Y:function(){return s},fh:function(){return c}});let s=0n,c=i("1")},42668:function(e,t,r){"use strict";r.d(t,{Q:function(){return n}});let n="ckb-default-hash"},28793:function(e,t,r){"use strict";r.d(t,{B:function(){return o},x:function(){return a}});var n=r(6929),i=r(42130),s=r(96510),c=r(42668);class a{constructor(e=32,t=c.Q){this.hasher=n.R.create({personalization:t,dkLen:e})}update(e){return this.hasher.update((0,i.O6)(e)),this}
631digest(){return(0,s.C)(this.hasher.digest())}}function o(...e){let t=new a;return e.forEach(e=>t.update(e)),t.digest()}},91734:function(e,t,r){"use strict";r.d(t,{xD:function(){return n.x},u3:function(){return a},BC:function(){return n.B}});var n=r(28793),i=r(15902),s=r(42130),c=r(96510);class a{constructor(){this.hasher=i.fr.create()}update(e){return this.hasher.update((0,s.O6)(e)),this}digest(){return(0,c.C)(this.hasher.digest())}}},96510:function(e,t,r){"use strict";r.d(t,{C:function(){return i}});var n=r(42130);function i(e){return`0x${(0,n.cY)((0,n.O6)(e),"hex")}`}},61437:function(e,t,r){"use strict";r.d(t,{A:function(){return n.mol},fR:function(){return n}});var n=r(1169)},3503:function(e,t,r){"use strict";r.d(t,{g:function(){return i}});var n=r(9339);class i{constructor(e,t,r){this.url_=e,this.onError=r,this.concurrent=0,this.pending=[],this.id=0,this.maxConcurrent=t?.maxConcurrent,this.transport=t?.transport??new n.N8(Array.from(new Set([e,...t?.fallbacks??[]]).values(),e=>(0,n.d0)(e,t)))}get url(){return this.url_}async request(e,t,r,n){let i=this.buildPayload(e,r?await Promise.all(t.concat(Array.from(Array(Math.max(r.length-t.length,0)))).map((e,t)=>{var n;return(n=r[t])?n(e):e})):t);try{var s;return await (s=await this.requestPayload(i),n?n(s):s)}catch(e){if(!this.onError)throw e;await this.onError(e)}}async requestPayload(e){if(void 0!==this.maxConcurrent&&this.concurrent>=this.maxConcurrent){let e=new Promise(e=>this.pending.push(e));await e}this.concurrent+=1;let t=await this.transport.request(e);if(this.concurrent-=1,this.pending.shift()?.(),t.id!==e.id)throw Error(`Id mismatched, got ${t.id}, expected ${e.id}`);if(null!=t.error)throw t.error;return t.result}buildPayload(e,t){return{id:this.id++,method:e,params:t,jsonrpc:"2.0"}}}},9339:function(e,t,r){"use strict";r.d(t,{N8:function(){return a},N:function(){return n},En:function(){return s},d0:function(){return c}});class n{constructor(e,t=3e4){this.url=e,this.timeout=t}async request(e){let t=new AbortController,r=setTimeout(()=>t.abort(),this.timeout),n=await (await fetch(this.url,{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(e),signal:t.signal})).json();return clearTimeout(r),n}}var i=r(49827);class s{constructor(e,t=3e4){this.url=e,this.timeout=t,this.ongoing=new Map}request(e){let t=(()=>{if(this.socket&&this.socket.readyState!==this.socket.CLOSING&&this.socket.readyState!==this.socket.CLOSED&&this.openSocket)return this.openSocket;let e=new i.Z(this.url),t=()=>{this.ongoing.forEach(([e,t,r])=>{clearTimeout(r),t(Error("Connection closed"))}),this.ongoing.clear()};return e.onclose=t,e.onerror=t,e.onmessage=({data:e})=>{let t=JSON.parse(e);if("object"!=typeof t||null===t||"number"!=typeof t.id)throw Error(`Unknown response ${e}`);let r=t.id,n=this.ongoing.get(r);if(!n)return;let[i,s,c]=n;clearTimeout(c),this.ongoing.delete(r),i(t)},this.socket=e,this.openSocket=new Promise(t=>{e.readyState===e.OPEN?t(e):e.onopen=()=>{t(e)}}),this.openSocket})();return new Promise((r,n)=>{let i=[r,n,setTimeout(()=>{this.ongoing.delete(e.id),t.then(e=>e.close()).catch(e=>n(e)),n(Error("Request timeout"))},this.timeout)];this.ongoing.set(e.id,i),t.then(t=>{t.readyState===t.CLOSED||t.readyState===t.CLOSING?(clearTimeout(i[2]),this.ongoing.delete(e.id),n(Error("Connection closed"))):t.send(JSON.stringify(e))}).catch(e=>n(e))})}}function c(e,t){return e.startsWith("wss://")||e.startsWith("ws://")?new s(e,t?.timeout):new n(e,t?.timeout)}class a{constructor(e){this.transports=e,this.i=0}async request(e){let t=0;for(;;)try{return await this.transports[this.i%this.transports.length].request(e)}catch(e){if(t+=1,this.i+=1,t>=this.transports.length)throw e}}}},17687:function(e,t,r){"use strict";r.d(t,{A:function(){return n}});var n={};r.r(n),r.d(n,{Bool:function(){return ec},BoolOpt:function(){return ea},BoolVec:function(){return eo},Byte16:function(){return eb},Byte16Opt:function(){return ey},Byte16Vec:function(){return eg},Byte32:function(){return em},Byte32Opt:function(){return ew},Byte32Vec:function(){return ev},Byte4:function(){return ed},Byte4Opt:function(){return ef},Byte4Vec:function(){return eu},Byte8:function(){return el},Byte8Opt:function(){return eh},Byte8Vec:function(){return ep},Bytes:function(){return en},BytesOpt:function(){return ei},BytesVec:function(){return es},Codec:function(){return c},Entity:function(){return x},String:function(){return ex},StringOpt:function(){return eT},StringVec:function(){return eS},Uint128:function(){return q},Uint128BE:function(){return K},Uint128LE:function(){return j},Uint128Opt:function(){return V},Uint128Vec:function(){return z},Uint16:function(){return O},Uint16BE:function(){return R},Uint16LE:function(){return E},Uint16Opt:function(){return _},Uint16Vec:function(){return P},Uint256:function(){return J},Uint256BE:function(){return W},Uint256LE:function(){return Z},Uint256Opt:function(){return X},Uint256Vec:function(){return Y},Uint32:function(){return D},Uint32BE:function(){return B},Uint32LE:function(){return I},Uint32Opt:function(){return M},Uint32Vec:function(){return L},Uint512:function(){return ee},Uint512BE:function(){return Q},Uint512LE:function(){return G},Uint512Opt:function(){return et},Uint512Vec:function(){return er},Uint64:function(){return F},Uint64BE:function(){return H},Uint64LE:function(){return N},Uint64Opt:function(){return U},Uint64Vec:function(){return $},Uint8:function(){return C},Uint8Opt:function(){return A},Uint8Vec:function(){return k},array:function(){return g},byteVec:function(){return h},codec:function(){return S},dynItemVec:function(){return f},fixedItemVec:function(){return d},option:function(){return l},struct:function(){return y},table:function(){return p},uint:function(){return m},uintNumber:function(){return w},union:function(){return b},vector:function(){return u}});var i=r(42130),s=r(56263);class c{constructor(e,t,r){this.encode=e,this.decode=t,this.byteLength=r}static from({encode:e,decode:t,byteLength:r}){return new c(t=>{let n=e(t);if(void 0!==r&&n.byteLength!==r)throw Error(`Codec.encode: expected byte length ${r}, got ${n.byteLength}`);return n},(e,n)=>{let s=(0,i.O6)(e);if(void 0!==r&&s.byteLength!==r)throw Error(`Codec.decode: expected byte length ${r}, got ${s.byteLength}`);return t(e,n)},r)}map({inMap:e,outMap:t}){return new c(t=>this.encode(e?e(t):t),(e,r)=>t?t(this.decode(e,r)):this.decode(e,r),this.byteLength)}mapIn(e){return this.map({inMap:e})}mapOut(e){return this.map({outMap:e})}}function a(e){return(0,s.Vl)(e,4)}function o(e){return Number((0,s.TY)(e))}function d(e){let t=e.byteLength;if(void 0===t)throw Error("fixedItemVec: itemCodec requires a byte length");return c.from({encode(t){try{let r=[];for(let n of((0,i.dK)(r,a(t.length)),t))(0,i.dK)(r,e.encode(n));return(0,i.O6)(r)}catch(e){throw Error(`fixedItemVec(${e?.toString()})`)}},decode(r,n){let s=(0,i.O6)(r);if(s.byteLength<4)throw Error(`fixedItemVec: too short buffer, expected at least 4 bytes, but got ${s.byteLength}`);let c=o(s.slice(0,4)),a=4+c*t;
631if(s.byteLength!==a)throw Error(`fixedItemVec: invalid buffer size, expected ${a}, but got ${s.byteLength}`);try{let r=[];for(let i=4;i<a;i+=t)r.push(e.decode(s.slice(i,i+t),n));return r}catch(e){throw Error(`fixedItemVec(${e?.toString()})`)}}})}function f(e){return c.from({encode(t){try{let r=4+4*t.length,n=[],s=[];for(let c of t){let t=e.encode(c);(0,i.dK)(n,a(r)),(0,i.dK)(s,t),r+=t.byteLength}let c=a(n.length+s.length+4);return(0,i.i6)(c,n,s)}catch(e){throw Error(`dynItemVec(${e?.toString()})`)}},decode(t,r){let n=(0,i.O6)(t);if(n.byteLength<4)throw Error(`dynItemVec: too short buffer, expected at least 4 bytes, but got ${n.byteLength}`);let s=o(n.slice(0,4));if(s!==n.byteLength)throw Error(`dynItemVec: invalid buffer size, expected ${s}, but got ${n.byteLength}`);if(4===s)return[];let c=o(n.slice(4,8)),a=Array.from(Array((c-4)/4),(e,t)=>o(n.slice(4+4*t,8+4*t)));a.push(s);try{let t=[];for(let i=0;i<a.length-1;i++){let s=a[i],c=a[i+1],o=n.slice(s,c);t.push(e.decode(o,r))}return t}catch(e){throw Error(`dynItemVec(${e?.toString()})`)}}})}function u(e){return void 0!==e.byteLength?d(e):f(e)}function l(e){return c.from({encode(t){if(null==t)return(0,i.O6)([]);try{return e.encode(t)}catch(e){throw Error(`option(${e?.toString()})`)}},decode(t,r){let n=(0,i.O6)(t);if(0!==n.byteLength)try{return e.decode(t,r)}catch(e){throw Error(`option(${e?.toString()})`)}}})}function h(e){return c.from({encode(t){try{let r=(0,i.O6)(e.encode(t)),n=a(r.byteLength);return(0,i.i6)(n,r)}catch(e){throw Error(`byteVec(${e?.toString()})`)}},decode(t,r){let n=(0,i.O6)(t);if(n.byteLength<4)throw Error(`byteVec: too short buffer, expected at least 4 bytes, but got ${n.byteLength}`);let s=o(n.slice(0,4));if(s!==n.byteLength-4)throw Error(`byteVec: invalid buffer size, expected ${s}, but got ${n.byteLength}`);try{return e.decode(n.slice(4),r)}catch(e){throw Error(`byteVec(${e?.toString()})`)}}})}function p(e){let t=Object.keys(e);return c.from({encode(r){let n=4+4*t.length,s=[],c=[];for(let o of t)try{let t=e[o].encode(r[o]);(0,i.dK)(s,a(n)),(0,i.dK)(c,t),n+=t.byteLength}catch(e){throw Error(`table.${o}(${e?.toString()})`)}let o=a(s.length+c.length+4);return(0,i.i6)(o,s,c)},decode(r,n){let s=(0,i.O6)(r);if(s.byteLength<4)throw Error(`table: too short buffer, expected at least 4 bytes, but got ${s.byteLength}`);let c=o(s.slice(0,4)),a=o(s.slice(4,8)),d=(a-4)/4;if(c!==s.byteLength)throw Error(`table: invalid buffer size, expected ${c}, but got ${s.byteLength}`);if(d<t.length)throw Error(`table: invalid field count, expected ${t.length}, but got ${d}`);if(d>t.length&&!n?.isExtraFieldIgnored)throw Error(`table: invalid field count, expected ${t.length}, but got ${d}, and extra fields are not allowed in the current configuration. If you want to ignore extra fields, set isExtraFieldIgnored to true.`);let f=t.map((e,t)=>o(s.slice(4+4*t,8+4*t)));d>t.length?f.push(o(s.slice(4+4*t.length,8+4*t.length))):f.push(c);let u={};for(let r=0;r<f.length-1;r++){let i=f[r],c=f[r+1],a=t[r],o=e[a],d=s.slice(i,c);try{Object.assign(u,{[a]:o.decode(d,n)})}catch(e){throw Error(`table.${a}(${e?.toString()})`)}}return u}})}function b(e,t){let r;let n=Object.entries(e);if(n.length>0){let e=n[0][1].byteLength;void 0!==e&&n.every(([,{byteLength:t}])=>t===e)&&(r=e+4)}return c.from({byteLength:r,encode({type:r,value:s}){let c=r.toString(),o=e[c];if(!o)throw Error(`union: invalid type, expected ${n.map(e=>e[0]).toString()}, but got ${c}`);let d=t?t[c]??-1:n.findIndex(e=>e[0]===c);if(d<0)throw Error(`union: invalid field id ${d} of ${c}`);let f=a(d);try{let e=o.encode(s);return(0,i.i6)(f,e)}catch(e){throw Error(`union.(${c})(${e?.toString()})`)}},decode(r,n){let s=(0,i.O6)(r),c=o(s.slice(0,4)),a=Object.keys(e),d=(()=>{if(!t)return a[c];let e=Object.entries(t).find(([,e])=>e===c);return e?.[0]})();if(!d){if(!t)throw Error(`union: unknown union field index ${c}, only ${a.toString()} are allowed`);let e=Object.keys(t);throw Error(`union: unknown union field index ${c}, only ${e.toString()} and ${a.toString()} are allowed`)}return{type:d,value:e[d].decode(s.slice(4),n)}}})}function y(e){let t=Object.values(e),r=Object.keys(e);return c.from({byteLength:t.reduce((e,t)=>
631{if(void 0===t.byteLength)throw Error("struct: all fields must be fixed-size");return e+t.byteLength},0),encode(t){let n=[];for(let s of r)try{let r=e[s].encode(t[s]);(0,i.dK)(n,r)}catch(e){throw Error(`struct.${s}(${e?.toString()})`)}return(0,i.O6)(n)},decode(t,r){let n=(0,i.O6)(t),s={},c=0;return Object.entries(e).forEach(([e,t])=>{let i=n.slice(c,c+t.byteLength);try{Object.assign(s,{[e]:t.decode(i,r)})}catch(t){throw Error(`struct.${e}(${t.toString()})`)}c+=t.byteLength}),s}})}function g(e,t){if(void 0===e.byteLength)throw Error("array: itemCodec requires a byte length");let r=e.byteLength*t;return c.from({byteLength:r,encode(t){try{let r=[];for(let n of t)(0,i.dK)(r,e.encode(n));return(0,i.O6)(r)}catch(e){throw Error(`array(${e?.toString()})`)}},decode(t,n){let s=(0,i.O6)(t);if(s.byteLength!=r)throw Error(`array: invalid buffer size, expected ${r}, but got ${s.byteLength}`);try{let t=[];for(let r=0;r<s.byteLength;r+=e.byteLength)t.push(e.decode(s.slice(r,r+e.byteLength),n));return t}catch(e){throw Error(`array(${e?.toString()})`)}}})}function m(e,t=!1){return c.from({byteLength:e,encode:r=>t?(0,s.Vl)(r,e):(0,s.cL)(r,e),decode:e=>t?(0,s.TY)(e):(0,s._e)(e)})}function w(e,t=!1){if(e>4)throw Error("uintNumber: byteLength must be less than or equal to 4");return m(e,t).map({outMap:e=>Number(e)})}var v=r(91734);class x{static Base(){return class{static encode(e){throw Error("encode not implemented, use @ccc.mol.codec to decorate your type")}static decode(e){throw Error("decode not implemented, use @ccc.mol.codec to decorate your type")}static fromBytes(e){throw Error("fromBytes not implemented, use @ccc.mol.codec to decorate your type")}static from(e){throw Error("from not implemented")}toBytes(){return this.constructor.encode(this)}clone(){return this.constructor.fromBytes(this.toBytes())}eq(e){return this===e||(0,i.yU)(this.toBytes(),(this.constructor?.from(e)??e).toBytes())}hash(){return(0,v.BC)(this.toBytes())}}}}function S(e){return function(t,...r){return t.byteLength=e.byteLength,t.encode=function(t){return e.encode(t)},t.decode=function(r){return t.from(e.decode(r))},t.fromBytes=function(r){return t.from(e.decode(r))},t}}var T=r(96510);let C=w(1,!0),A=l(C),k=u(C),E=w(2,!0),R=w(2),O=E,_=l(O),P=u(O),I=w(4,!0),B=w(4),D=I,M=l(D),L=u(D),N=m(8,!0),H=m(8),F=N,U=l(F),$=u(F),j=m(16,!0),K=m(16),q=j,V=l(q),z=u(q),Z=m(32,!0),W=m(32),J=Z,X=l(J),Y=u(J),G=m(64,!0),Q=m(64),ee=G,et=l(ee),er=u(ee),en=h({encode:e=>(0,i.O6)(e),decode:e=>(0,T.C)(e)}),ei=l(en),es=u(en),ec=c.from({byteLength:1,encode:e=>(0,i.O6)(e?[1]:[0]),decode:e=>0!==(0,i.O6)(e)[0]}),ea=l(ec),eo=u(ec),ed=c.from({byteLength:4,encode:e=>(0,i.O6)(e),decode:e=>(0,T.C)(e)}),ef=l(ed),eu=u(ed),el=c.from({byteLength:8,encode:e=>(0,i.O6)(e),decode:e=>(0,T.C)(e)}),eh=l(el),ep=u(el),eb=c.from({byteLength:16,encode:e=>(0,i.O6)(e),decode:e=>(0,T.C)(e)}),ey=l(eb),eg=u(eb),em=c.from({byteLength:32,encode:e=>(0,i.O6)(e),decode:e=>(0,T.C)(e)}),ew=l(em),ev=u(em),ex=h({encode:e=>(0,i.O6)(e,"utf8"),decode:e=>(0,i.cY)(e,"utf8")}),eS=u(ex),eT=l(ex)},56263:function(e,t,r){"use strict";r.d(t,{Db:function(){return f},G$:function(){return o},TY:function(){return l},Ti:function(){return a},Vl:function(){return d},_e:function(){return p},cL:function(){return u},lj:function(){return c},wL:function(){return h},yz:function(){return s}});var n=r(42130),i=r(96510);function s(e,...t){let r=a(e);return t.forEach(e=>{let t=a(e);t<r&&(r=t)}),r}function c(e,...t){let r=a(e);return t.forEach(e=>{let t=a(e);t>r&&(r=t)}),r}function a(e){if("bigint"==typeof e)return e;if("0x"===e)return BigInt(0);if("string"==typeof e||"number"==typeof e)return BigInt(e);let t=(0,i.C)(e);return BigInt(t)}function o(e){return`0x${a(e).toString(16)}`}function d(e,t){return f(e,t)}function f(e,t){return u(e,t).reverse()}function u(e,t){let r=a(e);if(r<a(0)){if(null==t)throw Error("negative number can not be serialized without knowing bytes length");if((r=(a(1)<<a(8)*a(t))+r)<0)throw Error("negative number underflow")}let i=(0,n.O6)(r.toString(16));if(null==t)return i;if(i.length>t)throw Error("number overflow");return(0,n.i6)("00".repeat(t-i.length),i)}function l(e){return h(e)}function h(e){return p((0,n.O6)(e).map(e=>e).reverse())}function p(e){return a((0,n.O6)(e))}},18378:function(e,t,r){"use strict";r.d(t,{Pz:function(){return o},Sp:function(){return a},_v:function(){return c},nn:function(){return i},wE:function(){return s}});var n=r(56263);function i(e,t){if(null!=t)return e(t)}async function s(e,t,r){if(void 0===r){if(0===e.length)throw TypeError("Reduce of empty array with 
631no initial value");r=e[0],e=e.slice(1)}return e.reduce((e,r,n,i)=>e.then(e=>Promise.resolve(t(e,r,n,i)).then(t=>t??e)),Promise.resolve(r))}function c(e){return new Promise(t=>setTimeout(t,Number((0,n.Ti)(e))))}function a(e){return/webview|wv|ip((?!.*Safari)|(?=.*like Safari))/i.test(e)}function o(e){return JSON.stringify(e,(e,t)=>"bigint"==typeof t?(0,n.G$)(t):t)}},18338:function(e,t,r){"use strict";r.d(t,{kB:function(){return f},ko:function(){return a},cx:function(){return d},YQ:function(){return u},bj:function(){return o},uS:function(){return l},Kh:function(){return n}});var n={};r.r(n),r.d(n,{Action:function(){return s.aU},ActionVec:function(){return s.FK},Address:function(){return s.kL},BuildingPacket:function(){return s.GV},BuildingPacketV1:function(){return s.nL},ClusterData:function(){return s.OA},ClusterDataV1:function(){return s._m},ClusterDataV2:function(){return s.TQ},CreateCluster:function(){return s.EZ},CreateClusterAgent:function(){return s.$f},CreateClusterProxy:function(){return s.Hl},CreateSpore:function(){return s.YK},MeltClusterAgent:function(){return s.t3},MeltClusterProxy:function(){return s.j9},MeltSpore:function(){return s.Z5},Message:function(){return s.v0},Otx:function(){return s.Hq},OtxStart:function(){return s.qv},ResolvedInputs:function(){return s.NL},SCRIPTS_CLUSTER_MAINNET:function(){return y.Pg},SCRIPTS_CLUSTER_TESTNET:function(){return y.cj},SCRIPTS_SPORE_MAINNET:function(){return y.Kv},SCRIPTS_SPORE_TESTNET:function(){return y.Nv},ScriptInfo:function(){return s.r3},ScriptInfoVec:function(){return s.fH},SighashAll:function(){return s.S1},SighashAllOnly:function(){return s.uP},SporeAction:function(){return s.kl},SporeData:function(){return s.a2},TransferCluster:function(){return s.S$},TransferClusterAgent:function(){return s.Ve},TransferClusterProxy:function(){return s.Pz},TransferSpore:function(){return s.l$},WitnessLayout:function(){return s.Ql},WitnessLayoutFieldTags:function(){return s.dI}
631,assembleCreateClusterAction:function(){return f},assembleCreateSporeAction:function(){return a},assembleMeltSporeAction:function(){return d},assembleTransferClusterAction:function(){return u},assembleTransferSporeAction:function(){return o},extractCobuildActionsFromTx:function(){return p},injectCobuild:function(){return b},packRawClusterData:function(){return s.PT},packRawClusterDataV1:function(){return s.WT},packRawClusterDataV2:function(){return s.AK},packRawSporeData:function(){return s.OI},prepareCluster:function(){return g.d},prepareSporeTransaction:function(){return l},unpackCommonCobuildProof:function(){return h},unpackToRawClusterData:function(){return s.gf},unpackToRawClusterDataV1:function(){return s.g6},unpackToRawClusterDataV2:function(){return s.SZ},unpackToRawSporeData:function(){return s.s9}});var i=r(61437),s=r(91806),c=r(5543);function a(e,t,r=c.E){if(!e.type)throw Error("Spore cell must have a type script");let n=i.fR.Script.from(e.type),a=n.hash(),o=s.kl.encode({type:"CreateSpore",value:{sporeId:n.args,to:{type:"Script",value:e.lock},dataHash:i.fR.hashCkb(t)}});return{scriptInfoHash:i.fR.hexFrom(r),scriptHash:a,data:i.fR.hexFrom(o)}}function o(e,t,r=c.E){if(!e.type||!t.type)throw Error("Spore cell must have a type script");let n=i.fR.Script.from(t.type),a=n.hash(),o=s.kl.encode({type:"TransferSpore",value:{sporeId:n.args,from:{type:"Script",value:e.lock},to:{type:"Script",value:t.lock}}});return{scriptInfoHash:i.fR.hexFrom(r),scriptHash:a,data:i.fR.hexFrom(o)}}function d(e,t=c.E){if(!e.type)throw Error("Spore cell must have a type script");let r=i.fR.Script.from(e.type),n=r.hash(),a=s.kl.encode({type:"MeltSpore",value:{sporeId:r.args,from:{type:"Script",value:e.lock}}});return{scriptInfoHash:i.fR.hexFrom(t),scriptHash:n,data:i.fR.hexFrom(a)}}function f(e,t,r=c.E){if(!e.type)throw Error("Cluster cell must have a type script");let n=i.fR.Script.from(e.type),a=n.hash(),o=s.kl.encode({type:"CreateCluster",value:{clusterId:n.args,to:{type:"Script",value:e.lock},dataHash:i.fR.hashCkb(t)}});return{scriptInfoHash:i.fR.hexFrom(r),scriptHash:a,data:i.fR.hexFrom(o)}}function u(e,t,r=c.E){if(!e.type||!t.type)throw Error("Cluster cell must have a type script");let n=i.fR.Script.from(t.type),a=n.hash(),o=s.kl.encode({type:"TransferCluster",value:{clusterId:n.args,from:{type:"Script",value:e.lock},to:{type:"Script",value:t.lock}}});return{scriptInfoHash:i.fR.hexFrom(r),scriptHash:a,data:i.fR.hexFrom(o)}}async function l(e,t,r){let n=i.fR.Transaction.from(t);if(0===r.length)return e.prepareTransaction(n);let s=p(n);return b(n=await e.prepareTransaction(n),[s,r].flat()),n}function h(e){try{return s.Ql.decode(i.fR.bytesFrom(e))}catch{return}}function p(e){if(0===e.witnesses.length)return[];let t=h(e.witnesses[e.witnesses.length-1]);if(!t)return[];if("SighashAll"!==t.type)throw Error("Invalid cobuild proof type: SighashAll");return e.witnesses.pop(),t.value.message.actions}function b(e,t){e.setWitnessAt(Math.max(e.witnesses.length,e.inputs.length),s.Ql.encode({type:"SighashAll",value:{seal:"0x",message:{actions:t}}}))}var y=r(64222),g=r(27018)},31841:function(e,t,r){"use strict";r.d(t,{OL:function(){return l},Om:function(){return f},VA:function(){return u},jC:function(){return o},oc:function(){return h},uY:function(){return d}});var n=r(61437),i=r(18338),s=r(91806),c=r(40398),a=r(5543);async function o(e,t,r){let n=await (0,c.J)(e,t,r??Object.values((0,a.tS)(e)));if(n)return{cell:n.cell,cluster:n.cell,clusterData:(0,s.gf)(n.cell.outputData),scriptInfo:n.scriptInfo}}async function d(e,t,r){let i=await o(e,t,r);if(!i)throw Error(`Cluster ${n.fR.hexFrom(t)} not found`);return i}async function f(e){let{signer:t,data:r,to:c,scriptInfoHash:o}=e,d=e.scriptInfo??(0,a.TF)(t.client),f=n.fR.Transaction.from(e.tx??{});await f.completeInputsAtLeastOne(t);let u=n.fR.hashTypeId(f.inputs[0],f.outputs.length),l=(0,s.PT)(r);f.addOutput({lock:c??(await t.getRecommendedAddressObj()).script,type:{...d,args:u}},l),await f.addCellDepInfos(t.client,d.cellDeps);let h=d.cobuild?[(0,i.kB)(f.outputs[f.outputs.length-1],l,o)]:[];return{tx:await (0,i.uS)(t,f,h),id:u}}async function u(e){let{signer:t,id:r,to:s,scripts:c,scriptInfoHash:a}=e,o=n.fR.Transaction.from(e.tx??{}),{cell:f,scriptInfo:u}=await d(t.client,r,c);o.addInput(f),o.addOutput({lock:s,type:f.cellOutput.type},f.outputData),await o.addCellDepInfos(t.client,u.cellDeps);let l=u.cobuild?[(0,i.YQ)(f.cellOutput,o.outputs[o.outputs.length-1],a)]:[];return{tx:await (0,i.uS)(t,o,l)}}async function*l(e){let{signer:t,order:r,limit:n,scriptInfos:i}=e;for(let e of i??Object.values((0,a.tS)(t.client)))if(e)for await(let i of t.findCells({script:{...e,args:""}},!0,r,n))yield{cell:i,cluster:i,clusterData:(0,s.gf)(i.outputData),scriptInfo:a.RY.from(e)}}async function*h(e){let{client:t,lock:r,order:n,limit:i,scriptInfos:c}=e;for(let e of c??Object.values((0,a.tS)(t)))if(e)for await(let c of t.findCells({script:{...e,args:""},scriptType:"type",scriptSearchMode:"prefix",withData:!0,filter:r?{script:r}:void 0},n,i))yield{cell:c,cluster:c,clusterData:(0,s.gf)(c.outputData),scriptInfo:a.RY.from(e)}}},91806:function(e,t,r){"use strict";r.d(t,{aU:function(){return h},FK:function(){return p},kL:function(){return x},GV:function(){return v},nL:function(){return w},OA:function(){return c},_m:function(){return i},TQ:function(){return s},EZ:function(){return A},$f:function(){return _},Hl:function(){return E},YK:function(){return S},t3:function(){return I},j9:function(){return O},Z5:function(){return C},v0:function(){return b},Hq:function(){return L},qv:function(){return N},NL:function(){return y},r3:function(){return g},fH:function(){return m},S1:function(){return D},uP:function(){return M},kl:function(){return B},a2:function(){return U},S$:function(){return k},Ve:function(){return P},Pz:function(){return R},l$:function(){return T},Ql:function(){return F},dI:function(){return H},PT:function(){return a},WT:function(){return o},AK:function(){return d},OI:function(){return $},gf:function(){return f},g6:function(){return u},SZ:function(){return l},s9:function(){return j}});var n=r(61437);let i=n.A.table({name:n.A.String,description:n.A.String}),s=n.A.table({name:n.A.String,description:n.A.String,mutantId:n.A.BytesOpt}),c=s;function a(e,t){if(!t)return d(e);switch(t){case"v1":return o(e);case"v2":return d(e)}}function o(e){return n.fR.bytesFrom(i.encode({name:e.name,description:e.description}))}function d(e){return n.fR.bytesFrom(s.encode({name:e.name,description:e.description,mutantId:e.mutantId}))}function f(e,t){if(t)switch(t){case"v1":return u(e);case"v2":return l(e)}try{return l(e)}catch{try{return u(e)}catch{throw Error(`Cannot unpack ClusterData, no matching molecule: ${n.fR.hexFrom(e)}`)}}}function u(e){return i.decode(e)}function l(e){return s.decode(e)}let h=n.A.table({scriptInfoHash:n.A.Byte32,scriptHash:n.A.Byte32,data:n.A.Bytes}),p=n.A.vector(h),b=n.A.table({actions:p}),y=n.A.table({outputs:n.fR.CellOutputVec,outputsData:n.A.BytesVec}),g=n.A.table({name:n.A.String,url:n.A.String,scriptHash:n.A.Byte32,schema:n.A.String,messageType:n.A.String}),m=n.A.vector(g),w=n.A.table({message:b,payload:n.fR.Transaction,resolvedInputs:y,changeOutput:n.A.Uint32Opt,scriptInfos:m,lockActions:p}),v=n.A.union({BuildingPacketV1:w}),x=n.A.union({Script:n.fR.Script}),S=n.A.table({sporeId:n.A.Byte32,to:x,dataHash:n.A.Byte32}),T=n.A.table({sporeId:n.A.Byte32,from:x,to:x}),C=n.A.table({sporeId:n.A.Byte32,from:x}),A=n.A.table({clusterId:n.A.Byte32,to:x,dataHash:n.A.Byte32}),k=n.A.table({clusterId:n.A.Byte32,from:x,to:x}),E=n.A.table({clusterId:n.A.Byte32,clusterProxyId:n.A.Byte32,to:x}),R=n.A.table({clusterId:n.A.Byte32,clusterProxyId:n.A.Byte32,from:x,to:x}),O=n.A.table({clusterId:n.A.Byte32,clusterProxyId:n.A.Byte32,from:x}),_=n.A.table({clusterId:n.A.Byte32,clusterProxyId:n.A.Byte32,to:x}),P=n.A.table({clusterId:n.A.Byte32,from:x,to:x}),I=n.A.table({clusterId:n.A.Byte32,from:x}),B=n.A.union({CreateSpore:S,TransferSpore:T,MeltSpore:C,CreateCluster:A,TransferCluster:k,CreateClusterProxy:E,TransferClusterProxy:R,MeltClusterProxy:O,CreateClusterAgent:_,TransferClusterAgent:P,MeltClusterAgent:I}),D=n.A.table({seal:n.A.Bytes,message:b}),M=n.A.table({seal:n.A.Bytes}),L=n.A.table({}),N=n.A.table({}),H={SighashAll:4278190081,SighashAllOnly:4278190082,Otx:4278190083,OtxStart:4278190084},F=n.A.union({SighashAll:D,SighashAllOnly:M,Otx:L,OtxStart:N},H),U=n.A.table({contentType:n.A.String,content:n.A.Bytes,clusterId:n.A.BytesOpt});function $(e){return n.fR.bytesFrom(U.encode({contentType:e.contentType,content:e.content,clusterId:e.clusterId}))}function j(e){return U.decode(e)}},40398:function(e,t,r){"use strict";r.d(t,{J:function(){return i}});var n=r(5543);async function i(e,t,r){for(let i of r){if(!i)continue;let r=await e.findSingletonCellByType({...i,args:t},!0);if(r)return{cell:r,scriptInfo:n.RY.from(i)}}}},64222:function(e,t,r){"use strict";r.d(t,{Pg:function(){return s},cj:function(){return a},Kv:function(){return i},Nv:function(){return c}});var n=r(81929);let i=Object.freeze({[n.mg.DID]:{codeHash:"0xcfba73b58b6f30e70caed8a999748781b164ef9a1e218424a6fb55ebf641cb33",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x37c80ba8124780920bc8fe06b49e3535b43ca339bb9a97fb462b16d575bfa9a6",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x62312cd846659e188b05da11dc3f080b083c27371ea701d6026e11e713e0e3de"}}],cobuild:!0},[n.mg.V2]:{codeHash:"0x4a4dce1df3dffff7f8b2cd7dff7303df3b6150c9788cb75dcf6747247132b9f5",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x96b198fb5ddbd1eed57ed667068f1f1e55d07907b4c0dbd38675a69ea1b69824",index:0},depType:"code"}}],cobuild:!0},[n.mg.V1]:void 0}),s=Object.freeze({[n.mg.V2]:{codeHash:"0x7366a61534fa7c7e6225ecc0d828ea3b5366adec2b58206f2ee84995fe030075",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xe464b7fb9311c5e2820e61c99afc615d6b98bdefbe318c34868c010cbd0dc938",index:0},depType:"code"}}],cobuild:!0},[n.mg.V1]:void 0,[n.mg.DID]:void 0}),c=Object.freeze({[n.mg.DID]:{codeHash:"0x0b1f412fbae26853ff7d082d422c2bdd9e2ff94ee8aaec11240a5b34cc6e890f",hashType:"type",cellDeps:[{cellDep:{outPoint:{txHash:"0x306961e0eb04ed972c60cb89a0aed1b0ef065d96d2fc0000c62db5275e32dc6f",index:0},depType:"code"},type:{codeHash:"0x00000000000000000000000000000000000000000000000000545950455f4944",hashType:"type",args:"0x80f0d4bf6b3951911aa6b98cc609d477a8a10b903b35cfd528d098e95c36f680"}}]},[n.mg.V2]:{codeHash:"0x685a60219309029d01310311dba953d67029170ca4848a4ff638e57002130a0d",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x5e8d2a517d50fd4bb4d01737a7952a1f1d35c8afc77240695bb569cd7d9d5
631a1f",index:0},depType:"code"}}],cobuild:!0},[n.mg.V1]:{codeHash:"0xbbad126377d45f90a8ee120da988a2d7332c78ba8fd679aab478a19d6c133494",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xfd694382e621f175ddf81ce91ce2ecf8bfc027d53d7d31b8438f7d26fc37fd19",index:0},depType:"code"}}]}}),a=Object.freeze({[n.mg.V2]:{codeHash:"0x0bbe768b519d8ea7b96d58f1182eb7e6ef96c541fbd9526975077ee09f049058",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0xcebb174d6e300e26074aea2f5dbd7f694bb4fe3de52b6dfe205e54f90164510a",index:0},depType:"code"}}],cobuild:!0},[n.mg.V1]:{codeHash:"0x598d793defef36e2eeba54a9b45130e4ca92822e1d193671f490950c3b856080",hashType:"data1",cellDeps:[{cellDep:{outPoint:{txHash:"0x49551a20dfe39231e7db49431d26c9c08ceec96a29024eef3acc936deeb2ca76",index:0},depType:"code"}}]},[n.mg.DID]:void 0})},5543:function(e,t,r){"use strict";r.d(t,{E:function(){return n.E},Es:function(){return n.Es},RY:function(){return n.RY},mg:function(){return n.mg},TF:function(){return o},tS:function(){return c},DS:function(){return a},K0:function(){return s}});var n=r(81929),i=r(64222);function s(e){return"ckb"===e.addressPrefix?i.Kv:i.Nv}function c(e){return"ckb"===e.addressPrefix?i.Pg:i.cj}function a(e,t){let r=s(e)[t??n.Es];if(!r)throw Error(`Spore script info not found of for version ${t} on ${e.addressPrefix}`);return n.RY.from(r)}function o(e,t){let r=c(e)[t??n.Es];if(!r)throw Error(`Cluster script info not found of for version ${t} on ${e.addressPrefix}`);return n.RY.from(r)}},81929:function(e,t,r){"use strict";r.d(t,{E:function(){return c},Es:function(){return a},RY:function(){return o},mg:function(){return i}});var n,i,s=r(61437);let c=s.fR.hashCkb(s.fR.bytesFrom("CCC_DEFAULT_COBUILD_INFO","utf8"));(n=i||(i={})).V1="V1",n.V2="V2",n.DID="DID";let a=i.V2;class o extends s.fR.ScriptInfo{constructor(e,t,r,n){super(e,t,r),this.cobuild=n}static from(e){return new o(s.fR.hexFrom(e.codeHash),s.fR.hashTypeFrom(e.hashType),e.cellDeps.map(e=>s.fR.CellDepInfo.from(e)),e.cobuild)}}},27018:function(e,t,r){"use strict";r.d(t,{d:function(){return c}});var n=r(61437),i=r(18338),s=r(31841);async function c(e,t,r,c,a){if(!r.clusterId||"skip"===c)return;if(!c)throw Error("clusterMode is undefined but the spore has a cluster");let{cell:o,scriptInfo:d}=await (0,s.uY)(e.client,r.clusterId);switch(c){case"lockProxy":{let r=o.cellOutput.lock,i=await t.findInputIndexByLock(r,e.client);if(void 0===i&&(await t.completeInputsAddOne(new n.fR.SignerCkbScriptReadonly(e.client,r)),void 0===(i=await t.findInputIndexByLock(r,e.client))))throw Error("Lock proxy input not found");t.outputs.some(e=>e.lock===r)||t.addOutput(await t.getInput(i).getCell(e.client)),t.addCellDeps({outPoint:o.outPoint,depType:"code"});return}case"clusterCell":if(t.inputs.some(e=>e.previousOutput.eq(o.outPoint)))return;if(t.addInput(o),t.addOutput(o.cellOutput,o.outputData),await t.addCellDepInfos(e.client,d.cellDeps),t.addCellDeps({outPoint:o.outPoint,depType:"code"}),d.cobuild)return(0,i.YQ)(o.cellOutput,o.cellOutput,a);return}}},6147:function(e,t,r){"use strict";r.r(t),r.d(t,{AddressPurpose:function(){return f},AddressType:function(){return u},BitcoinNetworkType:function(){return o},MessageSigningProtocols:function(){return l},RpcErrorCode:function(){return d},RpcIdSchema:function(){return p},accountChangeEventName:function(){return K},accountChangeSchema:function(){return q},addressSchema:function(){return S},disconnectEventName:function(){return Z},disconnectSchema:function(){return W},getAccountsMethodName:function(){return M},getAccountsParamsSchema:function(){return L},getAccountsRequestMessageSchema:function(){return H},getAccountsResultSchema:function(){return N},getAddressesMethodName:function(){return E},getAddressesParamsSchema:function(){return R},getAddressesRequestMessageSchema:function(){return _},getAddressesResultSchema:function(){return O},getBalanceMethodName:function(){return F},getBalanceParamsSchema:function(){return U},getBalanceRequestMessageSchema:function(){return j},getBalanceResultSchema:function(){return $},getInfoMethodName:function(){return T},getInfoParamsSchema:function(){return C},getInfoRequestMessageSchema:function(){return k},getInfoResultSchema:function(){return A},networkChangeEventName:function(){return V},networkChangeSchema:function(){return z},rpcErrorResponseMessageSchema:function(){return g},rpcRequestMessageSchema:function(){return b},rpcResponseMessageSchema:function(){return m},rpcSuccessResponseMessageSchema:function(){return y},signMessageMethodName:function(){return P},signMessageParamsSchema:function(){return I},signMessageRequestMessageSchema:function(){return D},signMessageResultSchema:function(){return B},walletEventSchema:function(){return J}});var n,i,s,c,a,o,d,f,u,l,h=r(80112);(n=o||(o={})).Mainnet="Mainnet",n.Testnet="Testnet",n.Signet="Signet";
631let p=h.jtO(h.G0j([h.Z_8(),h.Rxh(),h.lBU()])),b=h.Ryn({jsonrpc:h.i0J("2.0"),method:h.Z_8(),params:h.jtO(h.G0j([h.IXX(h._4T()),h.d7q({}),h.lBU()])),id:p});(i=d||(d={}))[i.PARSE_ERROR=-32700]="PARSE_ERROR",i[i.INVALID_REQUEST=-32600]="INVALID_REQUEST",i[i.METHOD_NOT_FOUND=-32601]="METHOD_NOT_FOUND",i[i.INVALID_PARAMS=-32602]="INVALID_PARAMS",i[i.INTERNAL_ERROR=-32603]="INTERNAL_ERROR",i[i.USER_REJECTION=-32e3]="USER_REJECTION",i[i.METHOD_NOT_SUPPORTED=-32001]="METHOD_NOT_SUPPORTED",i[i.ACCESS_DENIED=-32002]="ACCESS_DENIED";let y=h.Ryn({jsonrpc:h.i0J("2.0"),result:h.iF3(h._4T()),id:p}),g=h.Ryn({jsonrpc:h.i0J("2.0"),error:h.iF3(h._4T()),id:p}),m=h.G0j([y,g]),w=h.$R3(["software","ledger"]),v=h.S1Z();h.i0J(!0),h.Ryn({...b.entries,...h.Ryn({method:h.i0J("wallet_requestPermissions"),params:v,id:h.Z_8()}).entries});let x=h.S1Z();h.i0J(!0),h.Ryn({...b.entries,...h.Ryn({method:h.i0J("wallet_renouncePermissions"),params:x,id:h.Z_8()}).entries}),h.NZ6(h.lBU()),h.Ryn({...b.entries,...h.Ryn({method:h.i0J("wallet_getWalletType"),id:h.Z_8()}).entries}),(s=f||(f={})).Ordinals="ordinals",s.Payment="payment",s.Stacks="stacks",(c=u||(u={})).p2pkh="p2pkh",c.p2sh="p2sh",c.p2wpkh="p2wpkh",c.p2wsh="p2wsh",c.p2tr="p2tr",c.stacks="stacks";let S=h.Ryn({address:h.Z_8(),publicKey:h.Z_8(),purpose:h.KmV(f),addressType:h.KmV(u)}),T="getInfo",C=h.NZ6(h.lBU()),A=h.Ryn({version:h.Z_8(),methods:h.jtO(h.IXX(h.Z_8())),supports:h.IXX(h.Z_8())}),k=h.Ryn({...b.entries,...h.Ryn({method:h.i0J(T),params:C,id:h.Z_8()}).entries}),E="getAddresses",R=h.Ryn({purposes:h.IXX(h.KmV(f)),message:h.jtO(h.Z_8())}),O=h.Ryn({addresses:h.IXX(S)}),_=h.Ryn({...b.entries,...h.Ryn({method:h.i0J(E),params:R,id:h.Z_8()}).entries}),P="signMessage";(a=l||(l={})).ECDSA="ECDSA",a.BIP322="BIP322";let I=h.Ryn({address:h.Z_8(),message:h.Z_8(),protocol:h.jtO(h.KmV(l))}),B=h.Ryn({signature:h.Z_8(),messageHash:h.Z_8(),address:h.Z_8(),protocol:h.KmV(l)}),D=h.Ryn({...b.entries,...h.Ryn({method:h.i0J(P),params:I,id:h.Z_8()}).entries}),M="getAccounts",L=h.Ryn({purposes:h.IXX(h.KmV(f)),message:h.jtO(h.Z_8())}),N=h.IXX(h.Ryn({...S.entries,...h.Ryn({walletType:w}).entries})),H=h.Ryn({...b.entries,...h.Ryn({method:h.i0J(M),params:L,id:h.Z_8()}).entries}),F="getBalance",U=h.NZ6(h.lBU()),$=h.Ryn({confirmed:h.Z_8(),unconfirmed:h.Z_8(),total:h.Z_8()}),j=h.Ryn({...b.entries,...h.Ryn({method:h.i0J(F),id:h.Z_8()}).entries}),K="accountChange",q=h.Ryn({type:h.i0J(K)}),V="networkChange",z=h.Ryn({type:h.i0J(V)}),Z="disconnect",W=h.Ryn({type:h.i0J(Z)}),J=h.bUp("type",[q,z,W])},64294:function(e,t,r){"use strict";r.d(t,{jk:function(){return o},uM:function(){return l}});var n=r(47495),i=r(44830),s=r(55761),c=r(9274),a=()=>Date.now(),o=class{constructor(e){this.url=e}async baseRPC(e,t,r=this.url){let n={id:a(),jsonrpc:"2.0",method:e,params:t??null},s=JSON.stringify(n,null,""),c=await i(r,{method:"post",headers:{"Content-Type":"application/json"},body:s}).then(async e=>e.json());if(null!=c.error)throw Error(`RPC error: ${JSON.stringify(c.error)}`);return c.result}async generateSubkeyUnlockSmt(e){return await this.baseRPC("generate_subkey_unlock_smt",e)}},d=(e,t)=>{try{let r=(0,c.rR)((0,c.kh)(t)),n=JSON.parse(r);return n.challenge===(0,c.po)((0,c.bp)(e))}catch(e){return!1}},f=async(e,t,r)=>{try{let n="RSASSA-PKCS1-v1_5",i=(0,c.aS)(r),a=(0,c.hX)(e),o=(0,c.hX)(t),d=new Uint8Array(i.slice(0,3)).reverse(),f=new Uint8Array(i.slice(4)).reverse(),u={alg:"RS256",ext:!0,key_ops:["verify"],kty:"RSA",e:(0,c.po)(d),n:(0,c.po)(f)},l=await s.Gl.importKey("jwk",u,{name:n,hash:"SHA-256"},!1,["verify"]),h=await s.Gl.verify(n,l,o,a);return h}catch(e){return console.error(e),!1}},u=async({message:e,signature:t,pubkey:r,challenge:n,alg:i})=>{try{let a=(0,c.aS)(`${r}`),o=(0,c.hX)(e),f=(0,c.hX)(t),u=o.slice(0,37),l=o.slice(37);if(!d(n,l))return!1;let h=await s.Gl.digest("SHA-256",l),p=(0,c.Ni)(u,h),b=i===c.zk.ES256,y=b?{kty:"EC",crv:"P-256",x:(0,c.po)(a.slice(0,32)),y:(0,c.po)(a.slice(32))}:{alg:"RS256",ext:!0,key_ops:["verify"],kty:"RSA",e:(0,c.po)(new Uint8Array(a.slice(0,3)).reverse()),n:(0,c.po)(new Uint8Array(a.slice(4)).reverse())},g=b?{name:"ECDSA",namedCurve:"P-256",hash:{name:"SHA-256"}}:{name:"RSASSA-PKCS1-v1_5",hash:"SHA-256"},m=await s.Gl.importKey("jwk",y,g,!1,["verify"]),w=await s.Gl.verify(g,m,i===c.zk.RS256?f:function(e){let t=Array.from(new Uint8Array(e),e=>`00${e.toString(16)}`.slice(-2)).join(""),r=2*Number.parseInt(t.substr(6,2),16),n=t.substr(8,r),i=t.substr(12+r);n=n.length>64?n.substr(-64):n.padStart(64,"0"),i=i.length>64?i.substr(-64):i.padStart(64,"0");let s=`${n}${i}`;return new Uint8Array(s.match(/[\da-f]{2}/gi).map(e=>Number.parseInt(e,16)))}(f),p);return w}catch(e){return console.error(e),!1}},l=async e=>{let{message:t,signature:r,pubkey:n,keyType:i}=e;return"main_key"===i||"sub_key"===i?u(e):f(t,r,n)},{PERSONAL:h,addressToScript:p,blake160:b,blake2b:y,hexToBytes:g,toUint64Le:m,serializeScript:w,rawTransactionToHash:v,serializeWitnessArgs:x}=n},9274:function(e,t,r){"use strict";r.d(t,{BX:function(){return B},Iw:function(){return I},Mw:function(){return M},Ni:function(){return w},Nn:function(){return C},aS:function(){return g},bp:function(){return v},fW:function(){return S},hX:function(){return b},iU:function(){return $},kh:function(){return m},nW:function(){return P},po:function(){return y},rR:function(){return x},s0:function(){return D},zk:function(){return T}});var n,i,s,c,a,o,d,f,u=((n=u||{}).DecodeError="Decode Error",n.InvalidParams="Invalid Params",n.UserRejected="User Rejected",n.NotAllowed="Not Allowed",n),l=class extends 
631Error{constructor(e,t="Invalid Params",r){super(e),this.name="User Rejected"===e?e:t,this.rawError=r}};function h(e){if(!e)return"";let t=decodeURIComponent(e);return"false"!==t&&("true"===t||(0*+t==0&&`${+t}`===t?+t:t))}i=JSON.parse,e=>{"?"===e.substring(0,1)&&(e=e.substring(1));let t=function(e){let t,r;let n={},i=e.split("&");for(;t=i.shift();)void 0!==n[r=(t=t.split("=")).shift()]?n[r]=[].concat(n[r],h(t.shift())):n[r]=h(t.shift());return n}(e);for(let e in t){let r=t[e];if("string"==typeof r)try{t[e]=i(r)}catch(e){}}if(0===Object.keys(t).length)throw new l("Invalid request","Invalid Params");return t};var p=(s=JSON.stringify,c=JSON.parse,e=>{Object.keys(e={...e}).forEach(t=>{let r=e[t];void 0===r||void 0===r?delete e[t]:e[t]=function(e){if("object"==typeof e&&null!==e)try{return s(e)}catch(e){}else if("string"==typeof e&&"function"==typeof c)try{return c(e),s(e)}catch(e){}return e}(r)});let t=(function(e,t){let r,n,i;let s="";for(r in e)if(void 0!==(i=e[r])){if(Array.isArray(i))for(n=0;n<i.length;n++)s&&(s+="&"),s+=`${encodeURIComponent(r)}=${encodeURIComponent(i[n])}`;else s&&(s+="&"),s+=`${encodeURIComponent(r)}=${encodeURIComponent(i)}`}return""+s})(e).toString();return t?`?${t}`:""});function b(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,n=t.padEnd(t.length+r,"="),i=atob(n),s=new ArrayBuffer(i.length),c=new Uint8Array(s);for(let e=0;e<i.length;e++)c[e]=i.charCodeAt(e);return s}function y(e){let t=new Uint8Array(e),r="";for(let e=0;e<t.length;e++){let n=t[e];null!=n&&(r+=String.fromCharCode(n))}let n=btoa(r);return n.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function g(e){let t=new Uint8Array(e.length/2);for(let r=0;r<e.length;r+=2)t[r/2]=Number.parseInt(e.substring(r,r+2),16);return t.buffer}function m(e){return[...new Uint8Array(e)].map(e=>e.toString(16).padStart(2,"0")).join("")}function w(e,t){let r=new Uint8Array(e.byteLength+t.byteLength);return r.set(new Uint8Array(e),0),r.set(new Uint8Array(t),e.byteLength),r.buffer}function v(e){return new TextEncoder().encode(e)}function x(e){let t="";for(let r=0;r<e.length;r+=2)t+=String.fromCharCode(Number.parseInt(e.substr(r,2),16));return t}function S(){return window.matchMedia("(display-mode: standalone)").matches||window.navigator.standalone}var T=((a=T||{})[a.RS256=-257]="RS256",a[a.ES256=-7]="ES256",a),C=((o=C||{}).Auth="Auth",o.SignMessage="SignMessage",o.SignEvm="SignEvm",o.SignPsbt="SignPsbt",o.BatchSignPsbt="BatchSignPsbt",o.SignCkbTx="SignCkbTx",o.SignCotaNFT="SignCotaNFT",o.SignCkbRawTx="SignCkbRawTx",o.SignNostrEvent="SignNostrEvent",o.EncryptNostrMessage="EncryptNostrMessage",o.EvmWeb2Login="EvmWeb2Login",o.DecryptNostrMessage="DecryptNostrMessage",o.AuthMiniApp="AuthMiniApp",o.SignMiniAppMessage="SignMiniAppMessage",o.SignMiniAppEvm="SignMiniAppEvm",o),A=((d=A||{}).Popup="popup",d.Redirect="redirect",d),k=((f=k||{})[f.Metadata=0]="Metadata",f[f.Text=1]="Text",f[f.RecommendRelay=2]="RecommendRelay",f[f.Contacts=3]="Contacts",f[f.EncryptedDirectMessage=4]="EncryptedDirectMessage",f[f.EventDeletion=5]="EventDeletion",f[f.Repost=6]="Repost",f[f.Reaction=7]="Reaction",f[f.BadgeAward=8]="BadgeAward",f[f.ChannelCreation=40]="ChannelCreation",f[f.ChannelMetadata=41]="ChannelMetadata",f[f.ChannelMessage=42]="ChannelMessage",f[f.ChannelHideMessage=43]="ChannelHideMessage",f[f.ChannelMuteUser=44]="ChannelMuteUser",f[f.Blank=255]="Blank",f[f.Report=1984]="Report",f[f.ZapRequest=9734]="ZapRequest",f[f.Zap=9735]="Zap",f[f.RelayList=10002]="RelayList",f[f.ClientAuth=22242]="ClientAuth",f[f.HttpAuth=27235]="HttpAuth",f[f.ProfileBadge=30008]="ProfileBadge",f[f.BadgeDefinition=30009]="BadgeDefinition",f[f.Article=30023]="Article",f),E={joyidAppURL:"https://testnet.joyid.dev"},R=()=>E,O=class e extends Error{constructor(t,r){super(r),this.error=t,this.error_description=r,Object.setPrototypeOf(this,e.prototype)}},_=class e extends O{constructor(){super("timeout","Timeout"),Object.setPrototypeOf(this,e.prototype)}},P=class e extends _{constructor(t){super(),this.popup=t,Object.setPrototypeOf(this,e.prototype)}}
631,I=class e extends O{constructor(t){super("cancelled","Popup closed"),this.popup=t,Object.setPrototypeOf(this,e.prototype)}},B=class extends O{constructor(e){super("NotSupported","Popup window is blocked by browser. see: https://docs.joy.id/guide/best-practice#popup-window-blocked"),this.popup=e,Object.setPrototypeOf(this,I.prototype)}},D=(e,t,r)=>{let n=e.joyidAppURL??R().joyidAppURL,i=new URL(`${n}`);i.pathname=r;let s=e.redirectURL;if("redirect"===t){let e=new URL(s);e.searchParams.set("joyid-redirect","true"),s=e.href}i.searchParams.set("type",t);let c=p({...e,redirectURL:s});return i.searchParams.set("_data_",c),i.href},M=(e="")=>{let t=window.screenX+(window.innerWidth-400)/2,r=window.screenY+(window.innerHeight-600)/2;return window.open(e,"joyid:authorize:popup",`left=${t},top=${r},width=400,height=600,resizable,scrollbars=yes,status=1`)},L="joyid-block-dialog-approve",N="joyid-block-dialog-reject",H=`
632.joyid-block-dialog {
633  position: fixed;
634  top: 32px;
635  left: 50%;
636  width: 340px;
637  margin-left: -170px;
638  background: white;
639  color: #333;
640  display: flex;
641  flex-flow: row nowrap;
642  justify-content: space-between;
643  align-items: center;
644  height: 110px;
645  z-index: 100002;
646  box-sizing: border-box;
647  border: 1px solid #ffffff;
648  border-radius: 8px;
649  padding: 16px 20px;
650}
651.joyid-block-dialog-bg {
652  width: 100%;
653  height: 100%;
654  background-color: rgba(0,0,0,0.5);
655  position: fixed;
656  top: 0;
657  left: 0;
658  display: none;
659  z-index: 100001;
660  display: block;
661}
662.joyid-block-dialog-title {
663  font-weight: bold;
664  font-size: 14px;
665  margin-bottom: 8px;
666}
667.joyid-block-dialog-tip {
668  font-size: 12px;
669  color: #777;
670}
671.joyid-block-dialog-btn {
672  width: 90px;
673  height: 35px;
674  font-size: 12px;
675  text-align: center;
676  border-radius: 6px;
677  cursor: pointer;
678}
679.joyid-block-dialog-action {
680  text-align: right;
681}
682#${L} {
683  border: 1px solid #333;
684  color: #333;
685  background: #D2FF00;
686  margin-bottom: 8px;
687}
688
689#${N} {
690  background: transparent;
691}
692`,F=`
693<div class="joyid-block-dialog">
694  <div class="joyid-block-dialog-content">
695    <div class="joyid-block-dialog-title">
696      Request Pop-up
697    </div>
698    <div class="joyid-block-dialog-tip">
699      Click Approve to complete creating or using wallet
700    </div>
701  </div>
702  <div class="joyid-block-dialog-action">
703    <button class="joyid-block-dialog-btn" id="${L}">Approve</button>
704    <button class="joyid-block-dialog-btn" id="${N}">Reject</button>
705  </div>
706</div>
707`,U=()=>{let e=document.getElementById("joyid-block-dialog-style");if(null!=e)return;let t=document.createElement("style");t.appendChild(document.createTextNode(H));let r=document.head??document.getElementsByTagName("head")[0];r.appendChild(t)},$=async e=>{U();let t=document.createElement("div");t.innerHTML=F,document.body.appendChild(t);let r=document.createElement("div");r.className="joyid-block-dialog-bg",document.body.appendChild(r);let n=document.getElementById(L),i=document.getElementById(N),s=()=>{document.body.removeChild(t),document.body.removeChild(r)};return new Promise((t,r)=>{n?.addEventListener("click",async()=>{try{let r=await e();s(),t(r)}catch(e){s(),r(e)}}),i?.addEventListener("click",()=>{s(),r(Error("User Rejected"))})})}},19471:function(e,t,r){"use strict";r.d(t,{OR:function(){return s},_Y:function(){return a},fk:function(){return o},hl:function(){return f},i9:function(){return u},ws:function(){return l}});var n=r(73926);/**
708 * @license
709 * Copyright 2020 Google LLC
710 * SPDX-License-Identifier: BSD-3-Clause
711 */let{I:i}=n._$LH,s=e=>void 0===e.strings,c=()=>document.createComment(""),a=(e,t,r)=>{let n=e._$AA.parentNode,s=void 0===t?e._$AB:t._$AA;if(void 0===r){let t=n.insertBefore(c(),s),a=n.insertBefore(c(),s);r=new i(t,a,e,e.options)}else{let t=r._$AB.nextSibling,i=r._$AM,c=i!==e;if(c){let t;r._$AQ?.(e),r._$AM=e,void 0!==r._$AP&&(t=e._$AU)!==i._$AU&&r._$AP(t)}if(t!==s||c){let e=r._$AA;for(;e!==t;){let t=e.nextSibling;n.insertBefore(e,s),e=t}}}return r},o=(e,t,r=e)=>(e._$AI(t,r),e),d={},f=(e,t=d)=>e._$AH=t,u=e=>e._$AH,l=e=>{e._$AR(),e._$AA.remove()}},7186:function(e,t,r){"use strict";r.d(t,{XM:function(){return i},Xe:function(){return s},pX:function(){return n}});/**
712 * @license
713 * Copyright 2017 Google LLC
714 * SPDX-License-Identifier: BSD-3-Clause
715 */let n={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},i=e=>(...t)=>({_$litDirective$:e,values:t});class s{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,t,r){this._$Ct=e,this._$AM=t,this._$Ci=r}_$AS(e,t){return this.update(e,t)}update(e,t){return this.render(...t)}}},73926:function(e,t,r){"use strict";r.d(t,{Jb:function(){return k},Ld:function(){return E},YP:function(){return A},_$LH:function(){return $},dy:function(){return C},sY:function(){return K}});/**
716 * @license
717 * Copyright 2017 Google LLC
718 * SPDX-License-Identifier: BSD-3-Clause
719 */let n=globalThis,i=n.trustedTypes,s=i?i.createPolicy("lit-html",{createHTML:e=>e}):void 0,c="$lit$",a=`lit$${Math.random().toFixed(9).slice(2)}$`,o="?"+a,d=`<${o}>`,f=document,u=()=>f.createComment(""),l=e=>null===e||"object"!=typeof e&&"function"!=typeof e,h=Array.isArray,p=e=>h(e)||"function"==typeof e?.[Symbol.iterator],b="[ 	\n\f\r]",y=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,g=/-->/g,m=/>/g,w=RegExp(`>|${b}(?:([^\\s"'>=/]+)(${b}*=${b}*(?:[^ 	
720\f\r"'\`<>=]|("|')|))|$)`,"g"),v=/'/g,x=/"/g,S=/^(?:script|style|textarea|title)$/i,T=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}
720),C=T(1),A=T(2),k=(T(3),Symbol.for("lit-noChange")),E=Symbol.for("lit-nothing"),R=new WeakMap,O=f.createTreeWalker(f,129);function _(e,t){if(!h(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s?s.createHTML(t):t}let P=(e,t)=>{let r=e.length-1,n=[],i,s=2===t?"<svg>":3===t?"<math>":"",o=y;for(let t=0;t<r;t++){let r=e[t],f,u,l=-1,h=0;for(;h<r.length&&(o.lastIndex=h,null!==(u=o.exec(r)));)h=o.lastIndex,o===y?"!--"===u[1]?o=g:void 0!==u[1]?o=m:void 0!==u[2]?(S.test(u[2])&&(i=RegExp("</"+u[2],"g")),o=w):void 0!==u[3]&&(o=w):o===w?">"===u[0]?(o=i??y,l=-1):void 0===u[1]?l=-2:(l=o.lastIndex-u[2].length,f=u[1],o=void 0===u[3]?w:'"'===u[3]?x:v):o===x||o===v?o=w:o===g||o===m?o=y:(o=w,i=void 0);let p=o===w&&e[t+1].startsWith("/>")?" ":"";s+=o===y?r+d:l>=0?(n.push(f),r.slice(0,l)+c+r.slice(l)+a+p):r+a+(-2===l?t:p)}return[_(e,s+(e[r]||"<?>")+(2===t?"</svg>":3===t?"</math>":"")),n]};class I{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let s=0,d=0,f=e.length-1,l=this.parts,[h,p]=P(e,t);if(this.el=I.createElement(h,r),O.currentNode=this.el.content,2===t||3===t){let e=this.el.content.firstChild;e.replaceWith(...e.childNodes)}for(;null!==(n=O.nextNode())&&l.length<f;){if(1===n.nodeType){if(n.hasAttributes())for(let e of n.getAttributeNames())if(e.endsWith(c)){let t=p[d++],r=n.getAttribute(e).split(a),i=/([.?@])?(.*)/.exec(t);l.push({type:1,index:s,name:i[2],strings:r,ctor:"."===i[1]?N:"?"===i[1]?H:"@"===i[1]?F:L}),n.removeAttribute(e)}else e.startsWith(a)&&(l.push({type:6,index:s}),n.removeAttribute(e));if(S.test(n.tagName)){let e=n.textContent.split(a),t=e.length-1;if(t>0){n.textContent=i?i.emptyScript:"";for(let r=0;r<t;r++)n.append(e[r],u()),O.nextNode(),l.push({type:2,index:++s});n.append(e[t],u())}}}else if(8===n.nodeType){if(n.data===o)l.push({type:2,index:s});else{let e=-1;for(;-1!==(e=n.data.indexOf(a,e+1));)l.push({type:7,index:s}),e+=a.length-1}}s++}}static createElement(e,t){let r=f.createElement("template");return r.innerHTML=e,r}}function B(e,t,r=e,n){if(t===k)return t;let i=void 0!==n?r._$Co?.[n]:r._$Cl,s=l(t)?void 0:t._$litDirective$;return i?.constructor!==s&&(i?._$AO?.(!1),void 0===s?i=void 0:(i=new s(e))._$AT(e,r,n),void 0!==n?(r._$Co??=[])[n]=i:r._$Cl=i),void 0!==i&&(t=B(e,i._$AS(e,t.values),i,n)),t}class D{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:t},parts:r}=this._$AD,n=(e?.creationScope??f).importNode(t,!0);O.currentNode=n;let i=O.nextNode(),s=0,c=0,a=r[0];for(;void 0!==a;){if(s===a.index){let t;2===a.type?t=new M(i,i.nextSibling,this,e):1===a.type?t=new a.ctor(i,a.name,a.strings,this,e):6===a.type&&(t=new U(i,this,e)),this._$AV.push(t),a=r[++c]}s!==a?.index&&(i=O.nextNode(),s++)}return O.currentNode=f,n}p(e){let t=0;for(let r of this._$AV)void 0!==r&&(void 0!==r.strings?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class M{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,t,r,n){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,t=this._$AM;return void 0!==t&&11===e?.nodeType&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){l(e=B(this,e,t))?e===E||null==e||""===e?(this._$AH!==E&&this._$AR(),this._$AH=E):e!==this._$AH&&e!==k&&this._(e):void 0!==e._$litType$?this.$(e):void 0!==e.nodeType?this.T(e):p(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==E&&l(this._$AH)?this._$AA.nextSibling.data=e:this.T(f.createTextNode(e)),this._$AH=e}$(e){let{values:t,_$litType$:r}=e,n="number"==typeof r?this._$AC(e):(void 0===r.el&&(r.el=I.createElement(_(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(t);else{let e=new D(n,this),r=e.u(this.options);e.p(t),this.T(r),this._$AH=e}}_$AC(e){let t=R.get(e.strings);return void 0===t&&R.set(e.strings,t=new I(e)),t}k(e){h(this._$AH)||(this._$AH=[],this._$AR());let t=this._$AH,r,n=0;for(let i of e)n===t.length?t.push(r=new M(this.O(u()),this.O(u()),this,this.options)):r=t[n],r._$AI(i),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){for(this._$AP?.(!1,!0,t);e!==this._$AB;){let t=e.nextSibling;e.remove(),e=t}}setConnected(e){void 0===this._$AM&&(this._$Cv=e,this._$AP?.(e))}}class L{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,i){this.type=1,this._$AH=E,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=i,r.length>2||""!==r[0]||""!==r[1]?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=E}_$AI(e,t=this,r,n){let i=this.strings,s=!1;if(void 0===i)(s=!l(e=B(this,e,t,0))||e!==this._$AH&&e!==k)&&(this._$AH=e);else{let n,c;let a=e;for(e=i[0],n=0;n<i.length-1;n++)(c=B(this,a[r+n],t,n))===k&&(c=this._$AH[n]),s||=!l(c)||c!==this._$AH[n],c===E?e=E:e!==E&&(e+=(c??"")+i[n+1]
720),this._$AH[n]=c}s&&!n&&this.j(e)}j(e){e===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class N extends L{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===E?void 0:e}}class H extends L{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==E)}}class F extends L{constructor(e,t,r,n,i){super(e,t,r,n,i),this.type=5}_$AI(e,t=this){if((e=B(this,e,t,0)??E)===k)return;let r=this._$AH,n=e===E&&r!==E||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,i=e!==E&&(r===E||n);n&&this.element.removeEventListener(this.name,this,r),i&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}}class U{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){B(this,e)}}let $={M:c,P:a,A:o,C:1,L:P,R:D,D:p,V:B,I:M,H:L,N:H,U:F,B:N,F:U},j=n.litHtmlPolyfillSupport;j?.(I,M),(n.litHtmlVersions??=[]).push("3.3.1");let K=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(void 0===i){let e=r?.renderBefore??null;n._$litPart$=i=new M(t.insertBefore(u(),e),e,void 0,r??{})}return i._$AI(e),i}},74709:function(e,t,r){"use strict";r.d(t,{Cb:function(){return i.C},Mo:function(){return n.M},SB:function(){return s.S}});var n=r(5896),i=r(58415),s=r(83247)},70453:function(e,t,r){"use strict";r.d(t,{oi:function(){return c},iv:function(){return n.iv},dy:function(){return i.dy}});var n=r(92013),i=r(73926);/**
721 * @license
722 * Copyright 2017 Google LLC
723 * SPDX-License-Identifier: BSD-3-Clause
724 */let s=globalThis;class c extends n.fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=(0,i.sY)(t,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return i.Jb}}c._$litElement$=!0,c.finalized=!0,s.litElementHydrateSupport?.({LitElement:c});let a=s.litElementPolyfillSupport;a?.({LitElement:c}),(s.litElementVersions??=[]).push("4.2.1")},5397:function(e){"use strict";e.exports={i8:"6.6.1"}}}]);
725//# sourceMappingURL=2241.064ebfe7d6d25d69.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.