UNPKG

wowok_agent

Version:

Create, collaborate, and transact on your own terms with the AI-driven web3 collaboration protocol.

1 lines 10.5 kB
"use strict";(this.webpackChunkwowok_agent=this.webpackChunkwowok_agent||[]).push([[112],{2343:(e,r)=>{r.I=void 0;const t="qpzry9x8gf2tvdw0s3jn54khce6mua7l",n={};for(let e=0;e<32;e++){const r=t.charAt(e);n[r]=e}function o(e){const r=e>>25;return(33554431&e)<<5^996825010&-(1&r)^642813549&-(r>>1&1)^513874426&-(r>>2&1)^1027748829&-(r>>3&1)^705979059&-(r>>4&1)}function i(e){let r=1;for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);if(n<33||n>126)return"Invalid prefix ("+e+")";r=o(r)^n>>5}r=o(r);for(let t=0;t<e.length;++t){const n=e.charCodeAt(t);r=o(r)^31&n}return r}function a(e,r,t,n){let o=0,i=0;const a=(1<<t)-1,c=[];for(let n=0;n<e.length;++n)for(o=o<<r|e[n],i+=r;i>=t;)i-=t,c.push(o>>i&a);if(n)i>0&&c.push(o<<t-i&a);else{if(i>=r)return"Excess padding";if(o<<t-i&a)return"Non-zero padding"}return c}function c(e){return a(e,8,5,!0)}function s(e){const r=a(e,5,8,!1);if(Array.isArray(r))return r}function d(e){const r=a(e,5,8,!1);if(Array.isArray(r))return r;throw new Error(r)}function u(e){let r;function a(e,t){if(t=t||90,e.length<8)return e+" too short";if(e.length>t)return"Exceeds length limit";const a=e.toLowerCase(),c=e.toUpperCase();if(e!==a&&e!==c)return"Mixed-case string "+e;const s=(e=a).lastIndexOf("1");if(-1===s)return"No separator character for "+e;if(0===s)return"Missing prefix for "+e;const d=e.slice(0,s),u=e.slice(s+1);if(u.length<6)return"Data too short";let h=i(d);if("string"==typeof h)return h;const l=[];for(let e=0;e<u.length;++e){const r=u.charAt(e),t=n[r];if(void 0===t)return"Unknown character "+r;h=o(h)^t,e+6>=u.length||l.push(t)}return h!==r?"Invalid checksum for "+e:{prefix:d,words:l}}return r="bech32"===e?1:734539939,{decodeUnsafe:function(e,r){const t=a(e,r);if("object"==typeof t)return t},decode:function(e,r){const t=a(e,r);if("object"==typeof t)return t;throw new Error(t)},encode:function(e,n,a){if(a=a||90,e.length+7+n.length>a)throw new TypeError("Exceeds length limit");let c=i(e=e.toLowerCase());if("string"==typeof c)throw new Error(c);let s=e+"1";for(let e=0;e<n.length;++e){const r=n[e];if(r>>5)throw new Error("Non 5-bit word");c=o(c)^r,s+=t.charAt(r)}for(let e=0;e<6;++e)c=o(c);c^=r;for(let e=0;e<6;++e)s+=t.charAt(c>>5*(5-e)&31);return s},toWords:c,fromWordsUnsafe:s,fromWords:d}}r.I=u("bech32"),u("bech32m")},5281:(e,r,t)=>{t.d(r,{b8:()=>i,qg:()=>N});var n,o,i={NAME:"Name",DOCUMENT:"Document",OPERATION_DEFINITION:"OperationDefinition",VARIABLE_DEFINITION:"VariableDefinition",SELECTION_SET:"SelectionSet",FIELD:"Field",ARGUMENT:"Argument",FRAGMENT_SPREAD:"FragmentSpread",INLINE_FRAGMENT:"InlineFragment",FRAGMENT_DEFINITION:"FragmentDefinition",VARIABLE:"Variable",INT:"IntValue",FLOAT:"FloatValue",STRING:"StringValue",BOOLEAN:"BooleanValue",NULL:"NullValue",ENUM:"EnumValue",LIST:"ListValue",OBJECT:"ObjectValue",OBJECT_FIELD:"ObjectField",DIRECTIVE:"Directive",NAMED_TYPE:"NamedType",LIST_TYPE:"ListType",NON_NULL_TYPE:"NonNullType"};class a extends Error{constructor(e,r,t,n,o,i,a){super(e),this.name="GraphQLError",this.message=e,o&&(this.path=o),r&&(this.nodes=Array.isArray(r)?r:[r]),t&&(this.source=t),n&&(this.positions=n),i&&(this.originalError=i);var c=a;if(!c&&i){var s=i.extensions;s&&"object"==typeof s&&(c=s)}this.extensions=c||{}}toJSON(){return{...this,message:this.message}}toString(){return this.message}get[Symbol.toStringTag](){return"GraphQLError"}}function c(e){return new a(`Syntax Error: Unexpected token at ${o} in ${e}`)}function s(e){if(e.lastIndex=o,e.test(n))return n.slice(o,o=e.lastIndex)}var d=/ +(?=[^\s])/y;function u(e){for(var r=e.split("\n"),t="",n=0,o=0,i=r.length-1,a=0;a<r.length;a++)d.lastIndex=0,d.test(r[a])&&(a&&(!n||d.lastIndex<n)&&(n=d.lastIndex),o=o||a,i=a);for(var c=o;c<=i;c++)c!==o&&(t+="\n"),t+=r[c].slice(n).replace(/\\"""/g,'"""');return t}function h(){for(var e=0|n.charCodeAt(o++);9===e||10===e||13===e||32===e||35===e||44===e||65279===e;e=0|n.charCodeAt(o++))if(35===e)for(;10!==(e=n.charCodeAt(o++))&&13!==e;);o--}function l(){for(var e=o,r=0|n.charCodeAt(o++);r>=48&&r<=57||r>=65&&r<=90||95===r||r>=97&&r<=122;r=0|n.charCodeAt(o++));if(e===o-1)throw c("Name");var t=n.slice(e,--o);return h(),t}function f(){return{kind:"Name",value:l()}}var A=/(?:"""|(?:[\s\S]*?[^\\])""")/y,v=/(?:(?:\.\d+)?[eE][+-]?\d+|\.\d+)/y;function p(e){var r;switch(n.charCodeAt(o)){case 91:o++,h();for(var t=[];93!==n.charCodeAt(o);)t.push(p(e));return o++,h(),{kind:"ListValue",values:t};case 123:o++,h();for(var i=[];125!==n.charCodeAt(o);){var a=f();if(58!==n.charCodeAt(o++))throw c("ObjectField");h(),i.push({kind:"ObjectField",name:a,value:p(e)})}return o++,h(),{kind:"ObjectValue",fields:i};case 36:if(e)throw c("Variable");return o++,{kind:"Variable",name:f()};case 34:if(34===n.charCodeAt(o+1)&&34===n.charCodeAt(o+2)){if(o+=3,null==(r=s(A)))throw c("StringValue");return h(),{kind:"StringValue",value:u(r.slice(0,-3)),block:!0}}var d,g=o;o++;var C=!1;for(d=0|n.charCodeAt(o++);92===d&&(o++,C=!0)||10!==d&&13!==d&&34!==d&&d;d=0|n.charCodeAt(o++));if(34!==d)throw c("StringValue");return r=n.slice(g,o),h(),{kind:"StringValue",value:C?JSON.parse(r):r.slice(1,-1),block:!1};case 45:case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:for(var w,m=o++;(w=0|n.charCodeAt(o++))>=48&&w<=57;);var y=n.slice(m,--o);if(46===(w=n.charCodeAt(o))||69===w||101===w){if(null==(r=s(v)))throw c("FloatValue");return h(),{kind:"FloatValue",value:y+r}}return h(),{kind:"IntValue",value:y};case 110:if(117===n.charCodeAt(o+1)&&108===n.charCodeAt(o+2)&&108===n.charCodeAt(o+3))return o+=4,h(),{kind:"NullValue"};break;case 116:if(114===n.charCodeAt(o+1)&&117===n.charCodeAt(o+2)&&101===n.charCodeAt(o+3))return o+=4,h(),{kind:"BooleanValue",value:!0};break;case 102:if(97===n.charCodeAt(o+1)&&108===n.charCodeAt(o+2)&&115===n.charCodeAt(o+3)&&101===n.charCodeAt(o+4))return o+=5,h(),{kind:"BooleanValue",value:!1}}return{kind:"EnumValue",value:l()}}function g(e){if(40===n.charCodeAt(o)){var r=[];o++,h();do{var t=f();if(58!==n.charCodeAt(o++))throw c("Argument");h(),r.push({kind:"Argument",name:t,value:p(e)})}while(41!==n.charCodeAt(o));return o++,h(),r}}function C(e){if(64===n.charCodeAt(o)){var r=[];do{o++,r.push({kind:"Directive",name:f(),arguments:g(e)})}while(64===n.charCodeAt(o));return r}}function w(){for(var e=0;91===n.charCodeAt(o);)e++,o++,h();var r={kind:"NamedType",name:f()};do{if(33===n.charCodeAt(o)&&(o++,h(),r={kind:"NonNullType",type:r}),e){if(93!==n.charCodeAt(o++))throw c("NamedType");h(),r={kind:"ListType",type:r}}}while(e--);return r}function m(){if(123!==n.charCodeAt(o++))throw c("SelectionSet");return h(),y()}function y(){var e=[];do{if(46===n.charCodeAt(o)){if(46!==n.charCodeAt(++o)||46!==n.charCodeAt(++o))throw c("SelectionSet");switch(o++,h(),n.charCodeAt(o)){case 64:e.push({kind:"InlineFragment",typeCondition:void 0,directives:C(!1),selectionSet:m()});break;case 111:110===n.charCodeAt(o+1)?(o+=2,h(),e.push({kind:"InlineFragment",typeCondition:{kind:"NamedType",name:f()},directives:C(!1),selectionSet:m()})):e.push({kind:"FragmentSpread",name:f(),directives:C(!1)});break;case 123:o++,h(),e.push({kind:"InlineFragment",typeCondition:void 0,directives:void 0,selectionSet:y()});break;default:e.push({kind:"FragmentSpread",name:f(),directives:C(!1)})}}else{var r=f(),t=void 0;58===n.charCodeAt(o)&&(o++,h(),t=r,r=f());var i=g(!1),a=C(!1),s=void 0;123===n.charCodeAt(o)&&(o++,h(),s=y()),e.push({kind:"Field",alias:t,name:r,arguments:i,directives:a,selectionSet:s})}}while(125!==n.charCodeAt(o));return o++,h(),{kind:"SelectionSet",selections:e}}function k(){if(h(),40===n.charCodeAt(o)){var e=[];o++,h();do{if(36!==n.charCodeAt(o++))throw c("Variable");var r=f();if(58!==n.charCodeAt(o++))throw c("VariableDefinition");h();var t=w(),i=void 0;61===n.charCodeAt(o)&&(o++,h(),i=p(!0)),h(),e.push({kind:"VariableDefinition",variable:{kind:"Variable",name:r},type:t,defaultValue:i,directives:C(!0)})}while(41!==n.charCodeAt(o));return o++,h(),e}}function E(){var e=f();if(111!==n.charCodeAt(o++)||110!==n.charCodeAt(o++))throw c("FragmentDefinition");return h(),{kind:"FragmentDefinition",name:e,typeCondition:{kind:"NamedType",name:f()},directives:C(!1),selectionSet:m()}}function b(){var e=[];do{if(123===n.charCodeAt(o))o++,h(),e.push({kind:"OperationDefinition",operation:"query",name:void 0,variableDefinitions:void 0,directives:void 0,selectionSet:y()});else{var r=l();switch(r){case"fragment":e.push(E());break;case"query":case"mutation":case"subscription":var t,i=void 0;40!==(t=n.charCodeAt(o))&&64!==t&&123!==t&&(i=f()),e.push({kind:"OperationDefinition",operation:r,name:i,variableDefinitions:k(),directives:C(!1),selectionSet:m()});break;default:throw c("Document")}}}while(o<n.length);return e}function N(e,r){return n=e.body?e.body:e,o=0,h(),r&&r.noLocation?{kind:"Document",definitions:b()}:{kind:"Document",definitions:b(),loc:{start:0,end:n.length,startToken:void 0,endToken:void 0,source:{body:n,name:"graphql.web",locationOffset:{line:1,column:1}}}}}},5364:e=>{e.exports=function(e){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),t=0;t<r.length;t++)r[t]=255;for(var n=0;n<e.length;n++){var o=e.charAt(n),i=o.charCodeAt(0);if(255!==r[i])throw new TypeError(o+" is ambiguous");r[i]=n}var a=e.length,c=e.charAt(0),s=Math.log(a)/Math.log(256),d=Math.log(256)/Math.log(a);function u(e){if("string"!=typeof e)throw new TypeError("Expected String");if(0===e.length)return new Uint8Array;for(var t=0,n=0,o=0;e[t]===c;)n++,t++;for(var i=(e.length-t)*s+1>>>0,d=new Uint8Array(i);e[t];){var u=e.charCodeAt(t);if(u>255)return;var h=r[u];if(255===h)return;for(var l=0,f=i-1;(0!==h||l<o)&&-1!==f;f--,l++)h+=a*d[f]>>>0,d[f]=h%256>>>0,h=h/256>>>0;if(0!==h)throw new Error("Non-zero carry");o=l,t++}for(var A=i-o;A!==i&&0===d[A];)A++;for(var v=new Uint8Array(n+(i-A)),p=n;A!==i;)v[p++]=d[A++];return v}return{encode:function(r){if(r instanceof Uint8Array||(ArrayBuffer.isView(r)?r=new Uint8Array(r.buffer,r.byteOffset,r.byteLength):Array.isArray(r)&&(r=Uint8Array.from(r))),!(r instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(0===r.length)return"";for(var t=0,n=0,o=0,i=r.length;o!==i&&0===r[o];)o++,t++;for(var s=(i-o)*d+1>>>0,u=new Uint8Array(s);o!==i;){for(var h=r[o],l=0,f=s-1;(0!==h||l<n)&&-1!==f;f--,l++)h+=256*u[f]>>>0,u[f]=h%a>>>0,h=h/a>>>0;if(0!==h)throw new Error("Non-zero carry");n=l,o++}for(var A=s-n;A!==s&&0===u[A];)A++;for(var v=c.repeat(t);A<s;++A)v+=e.charAt(u[A]);return v},decodeUnsafe:u,decode:function(e){var r=u(e);if(r)return r;throw new Error("Non-base"+a+" character")}}}}}]);