UNPKG

@frames.js/debugger

Version:

Debug your Frames.js applications

23 lines (22 loc) 37.1 kB
"use strict";exports.id=4491,exports.ids=[4491],exports.modules={10893:(t,e,r)=>{r.d(e,{n:()=>u});var i=r(40205),n=r(29698),a=r(10441),s=r(13264),o=r(53797);async function u(t,{frameUrl:e,reporter:r,parseManifest:i=!1,strict:a=!0}){let u;let h=(0,n.Xm)(t,"fc:frame");if(!h)return r.error("fc:frame",'Missing required meta tag "fc:frame"'),{status:"failure",frame:{},reports:r.toObject(),specification:"farcaster_v2"};try{u=JSON.parse(h)}catch(t){return r.error("fc:frame","Failed to parse Frame, it is not a valid JSON value"),{status:"failure",frame:{},reports:r.toObject(),specification:"farcaster_v2"}}let c=(a?s.cN:s.cN.extend({imageUrl:o.z.string().url().transform(t=>(t.startsWith("https://")||r.warn("fc:frame.imageUrl","Must be an https url"),t)),button:s.cN.shape.button.extend({action:o.z.discriminatedUnion("type",[s.cN.shape.button.shape.action.options[0].extend({url:o.z.string().url().transform(t=>(t.startsWith("https://")||r.warn("fc:frame.button.action.url","Must be an https url"),t)),splashImageUrl:o.z.string().url().transform(t=>(t.startsWith("https://")||r.warn("fc:frame.button.action.splashImageUrl","Must be an https url"),t)).optional()})])})})).safeParse(u);if(!c.success){for(let t of c.error.errors)t.path.length>0?r.error(`fc:frame.${t.path.join(".")}`,t.message):r.error("fc:frame",t.message);return{status:"failure",frame:(0,n.IX)(u,c.error),reports:r.toObject(),specification:"farcaster_v2"}}return{status:r.hasErrors()?"failure":"success",frame:c.data,reports:r.toObject(),specification:"farcaster_v2",manifest:i?await f(e,a):void 0}}async function f(t,e){let r=(0,i.J)("farcaster_v2");try{let i=await fetch(new URL("/.well-known/farcaster.json",t),{method:"GET",cache:"no-cache",headers:{Accept:"application/json"}});if(!i.ok)return r.error("fc:manifest",`Failed to fetch frame manifest, status code: ${i.status}`),{status:"failure",manifest:{},reports:r.toObject()};let a=await i.json(),u=(e?s.KS:s.KS.extend({frame:s.KS.shape.frame.unwrap().extend({iconUrl:o.z.string().url().transform(t=>(t.startsWith("https://")||r.warn("fc:manifest.frame.iconUrl","Must be an https url"),t)),homeUrl:o.z.string().url().transform(t=>(t.startsWith("https://")||r.warn("fc:manifest.frame.homeUrl","Must be an https url"),t)),imageUrl:o.z.string().url().transform(t=>(t.startsWith("https://")||r.warn("fc:manifest.frame.imageUrl","Must be an https url"),t)).optional(),splashImageUrl:o.z.string().url().transform(t=>(t.startsWith("https://")||r.warn("fc:manifest.frame.splashImageUrl","Must be an https url"),t)).optional(),webhookUrl:o.z.string().url().transform(t=>(t.startsWith("https://")||r.warn("fc:manifest.frame.webhookUrl","Must be an https url"),t)).optional()}).optional()})).safeParse(a);if(!u.success){for(let t of u.error.errors)t.path.length>0?r.error(`fc:manifest.${t.path.join(".")}`,t.message):r.error("fc:manifest",t.message);return{status:"failure",manifest:(0,n.IX)(a,u.error),reports:r.toObject()}}if(await h(u.data,t,r),r.hasErrors())return{status:"failure",manifest:u.data,reports:r.toObject()};return{status:"success",manifest:u.data,reports:r.toObject()}}catch(t){if(t instanceof Error)r.error("fc:manifest",`Failed to parse frame manifest: ${String(t)}`);else{let e=String(t);e.startsWith("SyntaxError")?r.error("fc:manifest","Failed to parse frame manifest, it is not a valid JSON value"):r.error("fc:manifest",`Failed to fetch frame manifest: ${e}`)}return{status:"failure",manifest:{},reports:r.toObject()}}}async function h(t,e,r){let i=new URL(e).hostname;if(!await (0,a.T)(t.accountAssociation)){r.error("fc:manifest.accountAssociation","Failed to verify account association signature");return}let n=(0,a.pH)(t.accountAssociation.payload);if("object"!=typeof n||null===n){r.error("fc:manifest.accountAssociation.payload","Failed to parse account association payload");return}"domain"in n?"string"!=typeof n.domain?r.error("fc:manifest.accountAssociation.payload","Account association payload domain must be a string"):n.domain!==i&&r.error("fc:manifest.accountAssociation.payload","Account association payload domain must match the frame URL"):r.error("fc:manifest.accountAssociation.payload","Missing required property 'domain' in account association payload")}},92595:(t,e,r)=>{function i(t){return Buffer.from(t).byteLength}function n(t){return"vNext"===t||!!/^\d{4}-\d{2}-\d{2}$/.test(t)}r.d(e,{Ec:()=>i,Es:()=>n}),r(66125)},60714:(t,e,r)=>{r.d(e,{w:()=>s});var i=r(29698),n=r(24459),a=r(92595);function s(t,{fallbackPostUrl:e,farcasterFrame:r,reporter:s,fromRequestMethod:o="GET"}){let u={},f=t('meta[property^="of:accepts:"], meta[name^="of:accepts:"]').toArray().map(t=>{let e=t.attribs.property||t.attribs.name||"",r=e.replace("of:accepts:","");return r||s.error(e,"Missing protocol id"),{id:r,version:t.attribs.content||""}});0===f.length&&s.error("of:accepts:{protocol_identifier}",'At least one "of:accepts:{protocol_identifier}" meta tag is required'),u=r;let h={accepts:f,version:(0,i.Xm)(t,"of:version"),image:(0,i.Xm)(t,"of:image",u.image),ogImage:(0,i.Xm)(t,"og:image"),imageAspectRatio:(0,i.Xm)(t,"of:image:aspect_ratio",u.imageAspectRatio),inputText:(0,i.Xm)(t,"of:input:text",u.inputText),postUrl:(0,i.Xm)(t,"of:post_url")??u.postUrl??e,state:(0,i.Xm)(t,"of:state",u.state),title:(0,i.Xm)(t,"og:title")||(0,i.CE)(t,"title")},c={accepts:f};if(h.version?(0,a.Es)(h.version)?c.version=h.version:s.error("of:version",`Invalid version "${h.version}"`):s.error("of:version",'Missing required meta tag "of:version"'),h.image?c.image=(0,i.Gu)(s,"of:image",i.ty,h.image):s.error("of:image",'Missing required meta tag "of:image"'),h.ogImage)try{c.ogImage=(0,i.ty)(h.ogImage)}catch(t){t instanceof Error&&s.warn("og:image",t.message)}else"GET"===o&&s.warn("og:image",'Missing meta tag "og:image"');h.title?h.title===n.Q?"GET"===o&&s.warn("title",`It seems the frame uses default title "${n.Q}" provided by Frames.js`):c.title=h.title:"GET"===o&&s.warn("title",'Missing title, please provide <title> or <meta property="og:title"> tag.'),h.imageAspectRatio&&(c.imageAspectRatio=(0,i.Gu)(s,"of:image:aspect_ratio",i.XK,h.imageAspectRatio)),h.inputText&&(c.inputText=(0,i.Gu)(s,"of:input:text",i.GK,h.inputText)),h.postUrl&&(c.postUrl=(0,i.Gu)(s,"of:post_url",i.mQ,h.postUrl,256)),h.state&&(c.state=(0,i.Gu)(s,"of:state",i.Yw,h.state));let l=(0,i.xK)(t,s,"of:button"),g=u.buttons&&u.buttons?.length>l.length?u.buttons:l;return(g.length>0&&(c.buttons=g),s.hasErrors())?{status:"failure",frame:c,reports:s.toObject(),specification:"openframes"}:{status:"success",frame:c,reports:s.toObject(),specification:"openframes"}}},9759:(t,e,r)=>{r.d(e,{Q:()=>f});var i=r(95192),n=r(10893),a=r(60714),s=r(40205),o=r(24459),u=r(85312);async function f({html:t,frameUrl:e,fallbackPostUrl:r,fromRequestMethod:f="GET",parseSettings:h}){let c=(0,s.J)("farcaster"),l=(0,s.J)("farcaster_v2"),g=(0,s.J)("openframes"),d=(0,u.zD)(t),m=(0,i.K)(d,{reporter:c,fallbackPostUrl:r,fromRequestMethod:f}),p=await (0,n.n)(d,{...h?.farcaster_v2,reporter:l,frameUrl:e}),E=d("meta[name='frames.js:version'], meta[property='frames.js:version']").attr("content"),y=d(`meta[name="${o.I}"], meta[property="${o.I}"]`).attr("content"),w=(0,a.w)(d,{farcasterFrame:m.frame,reporter:g,fallbackPostUrl:r,fromRequestMethod:f}),v={framesVersion:E,...y?{framesDebugInfo:{image:y}}:{}};return{farcaster:{...m,...v},farcaster_v2:{...p,...v},openframes:{...w,...v}}}},29698:(t,e,r)=>{r.d(e,{CE:()=>d,GK:()=>f,Gu:()=>s,IX:()=>a,XK:()=>h,Xm:()=>m,Yw:()=>l,mQ:()=>c,ty:()=>u,xK:()=>g});var i=r(37490),n=r(92595);function a(t,e){if("object"!=typeof t||!t)return{};let r=structuredClone(t);for(let t of e.errors)!function t(e,r){if("object"!=typeof r&&!Array.isArray(r)||!r||0===e.length)return;let[i,...n]=e;i&&(0===n.length?r[e[0]]=void 0:t(n,r[i]))}(t.path,r);return r}function s(t,e,r,...i){try{return r(...i)}catch(r){t.error(e,r);return}}function o(t,e,r,...i){try{return r(...i),!0}catch(r){return t.error(e,r),!1}}function u(t){let e=new URL(t);if("data:"===e.protocol){let t=e.pathname.substring(0,18).toLowerCase();if(!["image/png;base64,","image/jpg;base64,","image/jpeg;base64,","image/gif;base64,","image/webp;base64,","image/avif;base64,"].some(e=>t.startsWith(e)))throw Error('Invalid image URL. Only "image/png", "image/jpg", "image/jpeg", "image/avif", "image/webp" and "image/gif" MIME types are allowed');if((0,n.Ec)(e.href)>262144)throw Error("Invalid image URL. Image size exceeds 256KB limit")}else if("http:"!==e.protocol&&"https:"!==e.protocol)throw Error('Invalid image URL. Only "http", "https" and "data" protocols are allowed');return e.href}function f(t){if((0,n.Ec)(t)>32)throw Error("Invalid input text. Text size exceeds 32 bytes limit");return t}function h(t){if(!["1:1","1.91:1"].includes(t))throw Error("Invalid image aspect ratio");return t}function c(t,e){let r=new URL(t);if(!1!==e&&(0,n.Ec)(t)>e)throw Error(`Invalid URL. URL size exceeds ${e} bytes limit (frames.js generates a longer post_url including system params).`);return r.href}function l(t){if((0,n.Ec)(t)>4096)throw Error("Invalid state. State size exceeds 4096 bytes limit");return t}function g(t,e,r){let n=t(`meta[property^="${r}"], meta[name^="${r}"]`),a={},s=new Set,u=RegExp(`^${r}:([1-4])(?::(action|target|post_url))?$`);for(let t of n){let r=t.attribs.property||t.attribs.name||"",i=u.exec(r);if(!i){e.error(r,"Unrecognized meta tag");continue}if(s.has(r)){e.error(r,"Duplicate meta tag");continue}s.add(r);let[,n,o]=i;if(!n){e.error(r,"Invalid button number");continue}let f=parseInt(n,10),h=a[f];h||(h={index:f},a[f]=h),o?h[o]=t.attribs.content:h.label=t.attribs.content}let f=[void 0,void 0,void 0,void 0],h=1/0,l=-1/0;function g(t){h=Math.min(h,t),l=Math.max(l,t)}for(let t of Object.values(a)){if(!t.label&&(e.error(`${r}:${t.index}`,"Missing button label"),1))continue;let n=t.index-1;switch(t.action){case"link":f[n]=function(t,e,r){if("link"!==r.action){t.error(`${e}:${r.index}:action`,"Invalid button action");return}if(!r.target){t.error(`${e}:${r.index}:target`,"Missing button target url");return}if(o(t,`${e}:${r.index}:target`,c,r.target,!1))return{action:r.action,label:r.label,target:r.target}}(e,r,t),g(n);break;case"mint":f[n]=function(t,e,r){if("mint"!==r.action){t.error(`${e}:${r.index}:action`,"Invalid button action");return}if(!r.target){t.error(`${e}:${r.index}:target`,"Missing button target url");return}try{(0,i.a)(r.target)}catch{t.error(`${e}:${r.index}:target`,"Invalid CAIP-10 URL");return}return{action:"mint",label:r.label,target:r.target}}(e,r,t),g(n);break;case"tx":f[n]=function(t,e,r){if("tx"!==r.action){t.error(`${e}:${r.index}:action`,"Invalid button action");return}if(r.target){if(!o(t,`${e}:${r.index}:target`,c,r.target,!1))return}else{t.error(`${e}:${r.index}:target`,"Missing button target url");return}if(!r.post_url||o(t,`${e}:${r.index}:post_url`,c,r.post_url,!1))return{action:"tx",label:r.label,target:r.target,post_url:r.post_url}}(e,r,t),g(n);break;default:f[n]=function(t,e,r){if(!r.action||!["post","post_redirect"].includes(r.action)){t.error(`${e}:${r.index}:action`,"Invalid button action");return}if((!r.target||o(t,`${e}:${r.index}:target`,c,r.target,!1))&&(!r.post_url||o(t,`${e}:${r.index}:post_url`,c,r.post_url,!1)))return{action:r.action,label:r.label,target:r.target,post_url:r.post_url}}(e,r,{...t,action:"action"in t&&t.action?t.action:"post"}),g(n)}}let d=-1;for(let[t,i]of f.entries())i&&(t-d!=1&&e.error(`${r}:${t+1}`,"Button sequence is not continuous"),d=t);return f.filter(t=>!!t)}function d(t,e){let r=t(e).text();if(r)return r}function m(t,e,r){let i=t(`meta[property="${e}"], meta[name="${e}"]`).attr("content");return"string"!=typeof r?i:i??r}},40205:(t,e,r)=>{r.d(e,{J:()=>i});function i(t){let e={},r=0,i=0;function n(n,a,s,o=t){let u=e[n]||[],f=String(a);a instanceof Error?f=a.message:"object"==typeof a&&a&&"message"in a&&"string"==typeof a.message&&(f=a.message),u.push({message:f,source:o,level:s}),"error"===s?r+=1:i+=1,e[n]=u}return{error(t,e,r){n(t,e,"error",r)},warn(t,e,r){n(t,e,"warning",r)},hasReports:()=>i+r>0,hasErrors:()=>r>0,toObject:()=>e}}},98604:(t,e,r)=>{r.d(e,{OZ:()=>S,v$:()=>L});var i,n=r(96911),a=null;try{a=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch(t){}function s(t,e,r){this.low=0|t,this.high=0|e,this.unsigned=!!r}function o(t){return!0===(t&&t.__isLong__)}function u(t){var e=Math.clz32(t&-t);return t?31-e:e}s.prototype.__isLong__,Object.defineProperty(s.prototype,"__isLong__",{value:!0}),s.isLong=o;var f={},h={};function c(t,e){var r,i,n;return e?(t>>>=0,(n=0<=t&&t<256)&&(i=h[t]))?i:(r=g(t,0,!0),n&&(h[t]=r),r):(t|=0,(n=-128<=t&&t<128)&&(i=f[t]))?i:(r=g(t,t<0?-1:0,!1),n&&(f[t]=r),r)}function l(t,e){if(isNaN(t))return e?N:b;if(e){if(t<0)return N;if(t>=y)return U}else{if(t<=-w)return O;if(t+1>=w)return T}return t<0?l(-t,e).neg():g(t%E|0,t/E|0,e)}function g(t,e,r){return new s(t,e,r)}s.fromInt=c,s.fromNumber=l,s.fromBits=g;var d=Math.pow;function m(t,e,r){if(0===t.length)throw Error("empty string");if("number"==typeof e?(r=e,e=!1):e=!!e,"NaN"===t||"Infinity"===t||"+Infinity"===t||"-Infinity"===t)return e?N:b;if((r=r||10)<2||36<r)throw RangeError("radix");if((i=t.indexOf("-"))>0)throw Error("interior hyphen");if(0===i)return m(t.substring(1),e,r).neg();for(var i,n=l(d(r,8)),a=b,s=0;s<t.length;s+=8){var o=Math.min(8,t.length-s),u=parseInt(t.substring(s,s+o),r);if(o<8){var f=l(d(r,o));a=a.mul(f).add(l(u))}else a=(a=a.mul(n)).add(l(u))}return a.unsigned=e,a}function p(t,e){return"number"==typeof t?l(t,e):"string"==typeof t?m(t,e):g(t.low,t.high,"boolean"==typeof e?e:t.unsigned)}s.fromString=m,s.fromValue=p;var E=4294967296,y=18446744073709552e3,w=0x7fffffffffffffff,v=c(16777216),b=c(0);s.ZERO=b;var N=c(0,!0);s.UZERO=N;var A=c(1);s.ONE=A;var _=c(1,!0);s.UONE=_;var I=c(-1);s.NEG_ONE=I;var T=g(-1,2147483647,!1);s.MAX_VALUE=T;var U=g(-1,-1,!0);s.MAX_UNSIGNED_VALUE=U;var O=g(0,-2147483648,!1);s.MIN_VALUE=O;var R=s.prototype;R.toInt=function(){return this.unsigned?this.low>>>0:this.low},R.toNumber=function(){return this.unsigned?(this.high>>>0)*E+(this.low>>>0):this.high*E+(this.low>>>0)},R.toString=function(t){if((t=t||10)<2||36<t)throw RangeError("radix");if(this.isZero())return"0";if(this.isNegative()){if(!this.eq(O))return"-"+this.neg().toString(t);var e=l(t),r=this.div(e),i=r.mul(e).sub(this);return r.toString(t)+i.toInt().toString(t)}for(var n=l(d(t,6),this.unsigned),a=this,s="";;){var o=a.div(n),u=(a.sub(o.mul(n)).toInt()>>>0).toString(t);if((a=o).isZero())return u+s;for(;u.length<6;)u="0"+u;s=""+u+s}},R.getHighBits=function(){return this.high},R.getHighBitsUnsigned=function(){return this.high>>>0},R.getLowBits=function(){return this.low},R.getLowBitsUnsigned=function(){return this.low>>>0},R.getNumBitsAbs=function(){if(this.isNegative())return this.eq(O)?64:this.neg().getNumBitsAbs();for(var t=0!=this.high?this.high:this.low,e=31;e>0&&(t&1<<e)==0;e--);return 0!=this.high?e+33:e+1},R.isZero=function(){return 0===this.high&&0===this.low},R.eqz=R.isZero,R.isNegative=function(){return!this.unsigned&&this.high<0},R.isPositive=function(){return this.unsigned||this.high>=0},R.isOdd=function(){return(1&this.low)==1},R.isEven=function(){return(1&this.low)==0},R.equals=function(t){return o(t)||(t=p(t)),(this.unsigned===t.unsigned||this.high>>>31!=1||t.high>>>31!=1)&&this.high===t.high&&this.low===t.low},R.eq=R.equals,R.notEquals=function(t){return!this.eq(t)},R.neq=R.notEquals,R.ne=R.notEquals,R.lessThan=function(t){return 0>this.comp(t)},R.lt=R.lessThan,R.lessThanOrEqual=function(t){return 0>=this.comp(t)},R.lte=R.lessThanOrEqual,R.le=R.lessThanOrEqual,R.greaterThan=function(t){return this.comp(t)>0},R.gt=R.greaterThan,R.greaterThanOrEqual=function(t){return this.comp(t)>=0},R.gte=R.greaterThanOrEqual,R.ge=R.greaterThanOrEqual,R.compare=function(t){if(o(t)||(t=p(t)),this.eq(t))return 0;var e=this.isNegative(),r=t.isNegative();return e&&!r?-1:!e&&r?1:this.unsigned?t.high>>>0>this.high>>>0||t.high===this.high&&t.low>>>0>this.low>>>0?-1:1:this.sub(t).isNegative()?-1:1},R.comp=R.compare,R.negate=function(){return!this.unsigned&&this.eq(O)?O:this.not().add(A)},R.neg=R.negate,R.add=function(t){o(t)||(t=p(t));var e,r,i=this.high>>>16,n=65535&this.high,a=this.low>>>16,s=65535&this.low,u=t.high>>>16,f=65535&t.high,h=t.low>>>16,c=65535&t.low,l=0,d=0;return e=0+((r=0+(s+c))>>>16),r&=65535,e+=a+h,d+=e>>>16,e&=65535,d+=n+f,l+=d>>>16,d&=65535,l+=i+u,g(e<<16|r,(l&=65535)<<16|d,this.unsigned)},R.subtract=function(t){return o(t)||(t=p(t)),this.add(t.neg())},R.sub=R.subtract,R.multiply=function(t){if(this.isZero())return this;if(o(t)||(t=p(t)),a)return g(a.mul(this.low,this.high,t.low,t.high),a.get_high(),this.unsigned);if(t.isZero())return this.unsigned?N:b;if(this.eq(O))return t.isOdd()?O:b;if(t.eq(O))return this.isOdd()?O:b;if(this.isNegative())return t.isNegative()?this.neg().mul(t.neg()):this.neg().mul(t).neg();if(t.isNegative())return this.mul(t.neg()).neg();if(this.lt(v)&&t.lt(v))return l(this.toNumber()*t.toNumber(),this.unsigned);var e,r,i=this.high>>>16,n=65535&this.high,s=this.low>>>16,u=65535&this.low,f=t.high>>>16,h=65535&t.high,c=t.low>>>16,d=65535&t.low,m=0,E=0;return e=0+((r=0+u*d)>>>16),r&=65535,e+=s*d,E+=e>>>16,e&=65535,e+=u*c,E+=e>>>16,e&=65535,E+=n*d,m+=E>>>16,E&=65535,E+=s*c,m+=E>>>16,E&=65535,E+=u*h,m+=E>>>16,E&=65535,m+=i*d+n*c+s*h+u*f,g(e<<16|r,(m&=65535)<<16|E,this.unsigned)},R.mul=R.multiply,R.divide=function(t){if(o(t)||(t=p(t)),t.isZero())throw Error("division by zero");if(a){var e,r,i;return this.unsigned||-2147483648!==this.high||-1!==t.low||-1!==t.high?g((this.unsigned?a.div_u:a.div_s)(this.low,this.high,t.low,t.high),a.get_high(),this.unsigned):this}if(this.isZero())return this.unsigned?N:b;if(this.unsigned){if(t.unsigned||(t=t.toUnsigned()),t.gt(this))return N;if(t.gt(this.shru(1)))return _;i=N}else{if(this.eq(O))return t.eq(A)||t.eq(I)?O:t.eq(O)?A:(e=this.shr(1).div(t).shl(1)).eq(b)?t.isNegative()?A:I:(r=this.sub(t.mul(e)),i=e.add(r.div(t)));if(t.eq(O))return this.unsigned?N:b;if(this.isNegative())return t.isNegative()?this.neg().div(t.neg()):this.neg().div(t).neg();if(t.isNegative())return this.div(t.neg()).neg();i=b}for(r=this;r.gte(t);){for(var n=Math.ceil(Math.log(e=Math.max(1,Math.floor(r.toNumber()/t.toNumber())))/Math.LN2),s=n<=48?1:d(2,n-48),u=l(e),f=u.mul(t);f.isNegative()||f.gt(r);)e-=s,f=(u=l(e,this.unsigned)).mul(t);u.isZero()&&(u=A),i=i.add(u),r=r.sub(f)}return i},R.div=R.divide,R.modulo=function(t){return(o(t)||(t=p(t)),a)?g((this.unsigned?a.rem_u:a.rem_s)(this.low,this.high,t.low,t.high),a.get_high(),this.unsigned):this.sub(this.div(t).mul(t))},R.mod=R.modulo,R.rem=R.modulo,R.not=function(){return g(~this.low,~this.high,this.unsigned)},R.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},R.clz=R.countLeadingZeros,R.countTrailingZeros=function(){return this.low?u(this.low):u(this.high)+32},R.ctz=R.countTrailingZeros,R.and=function(t){return o(t)||(t=p(t)),g(this.low&t.low,this.high&t.high,this.unsigned)},R.or=function(t){return o(t)||(t=p(t)),g(this.low|t.low,this.high|t.high,this.unsigned)},R.xor=function(t){return o(t)||(t=p(t)),g(this.low^t.low,this.high^t.high,this.unsigned)},R.shiftLeft=function(t){return(o(t)&&(t=t.toInt()),0==(t&=63))?this:t<32?g(this.low<<t,this.high<<t|this.low>>>32-t,this.unsigned):g(0,this.low<<t-32,this.unsigned)},R.shl=R.shiftLeft,R.shiftRight=function(t){return(o(t)&&(t=t.toInt()),0==(t&=63))?this:t<32?g(this.low>>>t|this.high<<32-t,this.high>>t,this.unsigned):g(this.high>>t-32,this.high>=0?0:-1,this.unsigned)},R.shr=R.shiftRight,R.shiftRightUnsigned=function(t){return(o(t)&&(t=t.toInt()),0==(t&=63))?this:t<32?g(this.low>>>t|this.high<<32-t,this.high>>>t,this.unsigned):32===t?g(this.high,0,this.unsigned):g(this.high>>>t-32,0,this.unsigned)},R.shru=R.shiftRightUnsigned,R.shr_u=R.shiftRightUnsigned,R.rotateLeft=function(t){var e;return(o(t)&&(t=t.toInt()),0==(t&=63))?this:32===t?g(this.high,this.low,this.unsigned):t<32?(e=32-t,g(this.low<<t|this.high>>>e,this.high<<t|this.low>>>e,this.unsigned)):(t-=32,e=32-t,g(this.high<<t|this.low>>>e,this.low<<t|this.high>>>e,this.unsigned))},R.rotl=R.rotateLeft,R.rotateRight=function(t){var e;return(o(t)&&(t=t.toInt()),0==(t&=63))?this:32===t?g(this.high,this.low,this.unsigned):t<32?(e=32-t,g(this.high<<e|this.low>>>t,this.low<<e|this.high>>>t,this.unsigned)):(t-=32,e=32-t,g(this.low<<e|this.high>>>t,this.high<<e|this.low>>>t,this.unsigned))},R.rotr=R.rotateRight,R.toSigned=function(){return this.unsigned?g(this.low,this.high,!1):this},R.toUnsigned=function(){return this.unsigned?this:g(this.low,this.high,!0)},R.toBytes=function(t){return t?this.toBytesLE():this.toBytesBE()},R.toBytesLE=function(){var t=this.high,e=this.low;return[255&e,e>>>8&255,e>>>16&255,e>>>24,255&t,t>>>8&255,t>>>16&255,t>>>24]},R.toBytesBE=function(){var t=this.high,e=this.low;return[t>>>24,t>>>16&255,t>>>8&255,255&t,e>>>24,e>>>16&255,e>>>8&255,255&e]},s.fromBytes=function(t,e,r){return r?s.fromBytesLE(t,e):s.fromBytesBE(t,e)},s.fromBytesLE=function(t,e){return new s(t[0]|t[1]<<8|t[2]<<16|t[3]<<24,t[4]|t[5]<<8|t[6]<<16|t[7]<<24,e)},s.fromBytesBE=function(t,e){return new s(t[4]<<24|t[5]<<16|t[6]<<8|t[7],t[0]<<24|t[1]<<16|t[2]<<8|t[3],e)};var S=s,M=((i=M||{})[i.USERNAME_TYPE_NONE=0]="USERNAME_TYPE_NONE",i[i.USERNAME_TYPE_FNAME=1]="USERNAME_TYPE_FNAME",i[i.USERNAME_TYPE_ENS_L1=2]="USERNAME_TYPE_ENS_L1",i);function x(){return{timestamp:0,name:new Uint8Array,owner:new Uint8Array,signature:new Uint8Array,fid:0,type:0}}var L={encode:(t,e=n.Writer.create())=>(0!==t.timestamp&&e.uint32(8).uint64(t.timestamp),0!==t.name.length&&e.uint32(18).bytes(t.name),0!==t.owner.length&&e.uint32(26).bytes(t.owner),0!==t.signature.length&&e.uint32(34).bytes(t.signature),0!==t.fid&&e.uint32(40).uint64(t.fid),0!==t.type&&e.uint32(48).int32(t.type),e),decode(t,e){let r=t instanceof n.Reader?t:n.Reader.create(t),i=void 0===e?r.len:r.pos+e,a=x();for(;r.pos<i;){let t=r.uint32();switch(t>>>3){case 1:if(8!=t)break;a.timestamp=k(r.uint64());continue;case 2:if(18!=t)break;a.name=r.bytes();continue;case 3:if(26!=t)break;a.owner=r.bytes();continue;case 4:if(34!=t)break;a.signature=r.bytes();continue;case 5:if(40!=t)break;a.fid=k(r.uint64());continue;case 6:if(48!=t)break;a.type=r.int32();continue}if((7&t)==4||0==t)break;r.skipType(7&t)}return a},fromJSON:t=>({timestamp:C(t.timestamp)?Number(t.timestamp):0,name:C(t.name)?B(t.name):new Uint8Array,owner:C(t.owner)?B(t.owner):new Uint8Array,signature:C(t.signature)?B(t.signature):new Uint8Array,fid:C(t.fid)?Number(t.fid):0,type:C(t.type)?function(t){switch(t){case 0:case"USERNAME_TYPE_NONE":return 0;case 1:case"USERNAME_TYPE_FNAME":return 1;case 2:case"USERNAME_TYPE_ENS_L1":return 2;default:throw new $.Error("Unrecognized enum value "+t+" for enum UserNameType")}}(t.type):0}),toJSON(t){let e={};return void 0!==t.timestamp&&(e.timestamp=Math.round(t.timestamp)),void 0!==t.name&&(e.name=P(void 0!==t.name?t.name:new Uint8Array)),void 0!==t.owner&&(e.owner=P(void 0!==t.owner?t.owner:new Uint8Array)),void 0!==t.signature&&(e.signature=P(void 0!==t.signature?t.signature:new Uint8Array)),void 0!==t.fid&&(e.fid=Math.round(t.fid)),void 0!==t.type&&(e.type=function(t){switch(t){case 0:return"USERNAME_TYPE_NONE";case 1:return"USERNAME_TYPE_FNAME";case 2:return"USERNAME_TYPE_ENS_L1";default:throw new $.Error("Unrecognized enum value "+t+" for enum UserNameType")}}(t.type)),e},create:t=>L.fromPartial(t??{}),fromPartial(t){let e=x();return e.timestamp=t.timestamp??0,e.name=t.name??new Uint8Array,e.owner=t.owner??new Uint8Array,e.signature=t.signature??new Uint8Array,e.fid=t.fid??0,e.type=t.type??0,e}},$=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function B(t){if($.Buffer)return Uint8Array.from($.Buffer.from(t,"base64"));{let e=$.atob(t),r=new Uint8Array(e.length);for(let t=0;t<e.length;++t)r[t]=e.charCodeAt(t);return r}}function P(t){if($.Buffer)return $.Buffer.from(t).toString("base64");{let e=[];return t.forEach(t=>{e.push(String.fromCharCode(t))}),$.btoa(e.join(""))}}function k(t){if(t.gt(Number.MAX_SAFE_INTEGER))throw new $.Error("Value is larger than Number.MAX_SAFE_INTEGER");return t.toNumber()}function C(t){return null!=t}n.util.Long!==S&&(n.util.Long=S,n.configure());/*! Bundled license information: long/index.js: (** * @license * Copyright 2009 The Closure Library Authors * Copyright 2020 Daniel Wirtz / The long.js Authors. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. * * SPDX-License-Identifier: Apache-2.0 *) */},24459:(t,e,r)=>{r.d(e,{I:()=>i,Q:()=>n});var i="frames.js:debug-info:image",n="Frames.js Frame"},27278:(t,e,r)=>{r.d(e,{$3:()=>n.$3,T:()=>n.T,Xx:()=>n.Xx});var i=r(44382),n=r(37877);n.UG.sha512Sync||(n.UG.sha512Sync=(...t)=>(0,i.o)(n.UG.concatBytes(...t)))},95192:(t,e,r)=>{r.d(e,{K:()=>s});var i=r(29698),n=r(24459),a=r(92595);function s(t,{fallbackPostUrl:e,reporter:r,fromRequestMethod:s="GET"}){let o={version:(0,i.Xm)(t,"fc:frame"),ogImage:(0,i.Xm)(t,"og:image"),image:(0,i.Xm)(t,"fc:frame:image"),imageAspectRatio:(0,i.Xm)(t,"fc:frame:image:aspect_ratio"),inputText:(0,i.Xm)(t,"fc:frame:input:text"),postUrl:(0,i.Xm)(t,"fc:frame:post_url")??e,state:(0,i.Xm)(t,"fc:frame:state"),title:(0,i.Xm)(t,"og:title")||(0,i.CE)(t,"title")},u={};if(o.version?(0,a.Es)(o.version)?u.version=o.version:r.error("fc:frame",`Invalid version "${o.version}"`):r.error("fc:frame",'Missing required meta tag "fc:frame"'),o.image?u.image=(0,i.Gu)(r,"fc:frame:image",i.ty,o.image):r.error("fc:frame:image",'Missing required meta tag "fc:frame:image"'),o.ogImage)try{u.ogImage=(0,i.ty)(o.ogImage)}catch(t){t instanceof Error&&r.warn("og:image",t.message)}else"GET"===s&&r.warn("og:image",'Missing meta tag "og:image"');o.title?o.title===n.Q?"GET"===s&&r.warn("title",`It seems the frame uses default title "${n.Q}" provided by Frames.js`):u.title=o.title:"GET"===s&&r.warn("title",'Missing title, please provide <title> or <meta property="og:title"> tag.'),o.imageAspectRatio&&(u.imageAspectRatio=(0,i.Gu)(r,"fc:frame:image:aspect_ratio",i.XK,o.imageAspectRatio)),o.inputText&&(u.inputText=(0,i.Gu)(r,"fc:frame:input:text",i.GK,o.inputText)),o.postUrl&&(u.postUrl=(0,i.Gu)(r,"fc:frame:post_url",i.mQ,o.postUrl,256)),o.state&&(u.state=(0,i.Gu)(r,"fc:frame:state",i.Yw,o.state));let f=(0,i.xK)(t,r,"fc:frame:button");return(f.length>0&&(u.buttons=f),r.hasErrors())?{status:"failure",frame:u,reports:r.toObject(),specification:"farcaster"}:{status:"success",frame:u,reports:r.toObject(),specification:"farcaster"}}},10441:(t,e,r)=>{function i(t){return t.toString("base64").replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function n(t){let e=t.length%4,r=t.replace(/-/g,"+").replace(/_/g,"/").padEnd(t.length+Math.max(0,4-e),"=");return Buffer.from(r,"base64")}r.d(e,{pH:()=>y,Xx:()=>p,_w:()=>w,T:()=>E});var a=r(73119),s=r(27278),o=r(17483),u=r(48458),f=r(73089),h=r(27581),c=r(34691),l=r(87379),g=class extends Error{},d=class extends Error{},m=class extends Error{constructor(t){super(),this.cause=t}};async function p(t){var e,r,n;let a;let s=(e=t.fid,r=t.signer,i(Buffer.from(JSON.stringify({fid:e,type:r.type,key:"custody"===r.type?r.custodyAddress:r.appKey}),"utf-8"))),u=(n=t.payload,i(Buffer.from(JSON.stringify(n),"utf-8"))),f=await t.signMessage(`${s}.${u}`);return a="app_key"===t.signer.type?i(Buffer.from((0,o.nr)(f))):i(Buffer.from(f,"utf-8")),{compact:`${s}.${u}.${a}`,json:{header:s,payload:u,signature:a}}}async function E(t,e={}){let r=function(t){try{let e=n(t),r=JSON.parse(e.toString("utf-8")),i={fid:0,type:"custody",key:"0x"};if("object"!=typeof r||null===r)throw new g;if("fid"in r&&"number"==typeof r.fid&&r.fid>0)i.fid=r.fid;else throw new g;if("type"in r&&"string"==typeof r.type&&["custody","app_key"].includes(r.type))i.type=r.type;else throw new g;if("key"in r&&"string"==typeof r.key&&r.key.startsWith("0x")&&r.key.length>2)i.key=r.key;else throw new g;return i}catch(t){if(t instanceof g)throw t;throw new g}}(t.header);if("app_key"===r.type){let i=n(t.signature),u=Buffer.from(`${t.header}.${t.payload}`),f=(0,o.nr)(r.key);if(!(0,s.T)(i,u,f))return!1;let h=e.verifyAppKey??(0,a.V)();return!!(await h(r.fid,r.key)).valid}let i=function(t){try{let e=n(t).toString("utf-8");if(!e.startsWith("0x"))throw Error("Invalid signature, must contain hex text");return e}catch(t){throw new m(t)}}(t.signature),c=(0,u.v)({chain:l.v,transport:(0,f.d)()});return!!await c.verifyMessage({address:r.key,signature:i,message:`${t.header}.${t.payload}`})&&await c.readContract({abi:(0,h.V)(["function custodyOf(uint256) public view returns (address)","function idOf(address) public view returns (uint256)"]),address:"0x00000000Fc6c5F01Fc30151999387Bb99A9f489b",functionName:"custodyOf",args:[BigInt(r.fid)]})===r.key}function y(t){try{let e=n(t),r=JSON.parse(e.toString("utf-8"));if("object"!=typeof r||null===r)throw new d;return r}catch(t){if(t instanceof d)throw t;throw new d}}function w(t){return e=>{let r=(0,s.Xx)(Buffer.from(e,"utf-8"),"string"==typeof t?(0,o.nr)(t):t);return Promise.resolve((0,c.ci)(r))}}},37490:(t,e,r)=>{r.d(e,{a:()=>i});function i(t){let[e,r,i,n]=t.split(":");if(!e||!r||!i)throw Error("Invalid token URL");return{namespace:e,chainId:parseInt(r),address:i,tokenId:n||void 0}}},73119:(t,e,r)=>{r.d(e,{V:()=>s});var i=r(78822),n=r(53797),a=class extends Error{constructor(t,e){super(t),this.cause=e}};function s({apiKey:t=process.env.NEYNAR_API_KEY,hubUrl:e="https://hub-api.neynar.com"}={}){var r;if(!t)throw Error("verifyAppKeyWithNeynar requires appKey to be passed in or set as an environment variable NEYNAR_API_KEY");return r={headers:{"x-api-key":t},cache:"no-cache"},async(t,n)=>{let s=new URL("/v1/onChainSignersByFid",e);s.searchParams.append("fid",t.toString());let f=await fetch(s,r);if(200!==f.status)throw new a("Error fetching from Hub API, non-200 status code received",await f.text());let h=u.safeParse(await f.json());if(h.error)throw new a("Error parsing Hub response",h.error);let c=n.toLowerCase(),l=h.data.events.find(t=>t.signerEventBody.key.toLowerCase()===c);if(!l)return{valid:!1};let g=i.Jx(o,Buffer.from(l.signerEventBody.metadata,"base64"));if(1!==g.length)throw new a("Error decoding metadata");return{valid:!0,appFid:Number(g[0].requestFid)}}}var o=[{components:[{name:"requestFid",type:"uint256"},{name:"requestSigner",type:"address"},{name:"signature",type:"bytes"},{name:"deadline",type:"uint256"}],name:"SignedKeyRequest",type:"tuple"}],u=n.z.object({events:n.z.array(n.z.object({signerEventBody:n.z.object({key:n.z.string(),metadata:n.z.string()})}))})},66125:(t,e,r)=>{var i,n,a,s,o,u,f,h,c=r(98604),l=r(96911),g=((i=g||{})[i.NONE=0]="NONE",i[i.BLAKE3=1]="BLAKE3",i),d=((n=d||{})[n.NONE=0]="NONE",n[n.ED25519=1]="ED25519",n[n.EIP712=2]="EIP712",n),m=((a=m||{})[a.NONE=0]="NONE",a[a.CAST_ADD=1]="CAST_ADD",a[a.CAST_REMOVE=2]="CAST_REMOVE",a[a.REACTION_ADD=3]="REACTION_ADD",a[a.REACTION_REMOVE=4]="REACTION_REMOVE",a[a.LINK_ADD=5]="LINK_ADD",a[a.LINK_REMOVE=6]="LINK_REMOVE",a[a.VERIFICATION_ADD_ETH_ADDRESS=7]="VERIFICATION_ADD_ETH_ADDRESS",a[a.VERIFICATION_REMOVE=8]="VERIFICATION_REMOVE",a[a.USER_DATA_ADD=11]="USER_DATA_ADD",a[a.USERNAME_PROOF=12]="USERNAME_PROOF",a[a.FRAME_ACTION=13]="FRAME_ACTION",a[a.LINK_COMPACT_STATE=14]="LINK_COMPACT_STATE",a),p=((s=p||{})[s.NONE=0]="NONE",s[s.MAINNET=1]="MAINNET",s[s.TESTNET=2]="TESTNET",s[s.DEVNET=3]="DEVNET",s),E=((o=E||{})[o.NONE=0]="NONE",o[o.PFP=1]="PFP",o[o.DISPLAY=2]="DISPLAY",o[o.BIO=3]="BIO",o[o.URL=5]="URL",o[o.USERNAME=6]="USERNAME",o[o.LOCATION=7]="LOCATION",o[o.TWITTER=8]="TWITTER",o[o.GITHUB=9]="GITHUB",o),y=((u=y||{})[u.CAST=0]="CAST",u[u.LONG_CAST=1]="LONG_CAST",u),w=((f=w||{})[f.NONE=0]="NONE",f[f.LIKE=1]="LIKE",f[f.RECAST=2]="RECAST",f),v=((h=v||{})[h.ETHEREUM=0]="ETHEREUM",h[h.SOLANA=1]="SOLANA",h);function b(t){switch(t){case 0:case"PROTOCOL_ETHEREUM":return 0;case 1:case"PROTOCOL_SOLANA":return 1;default:throw new P.Error("Unrecognized enum value "+t+" for enum Protocol")}}function N(t){switch(t){case 0:return"PROTOCOL_ETHEREUM";case 1:return"PROTOCOL_SOLANA";default:throw new P.Error("Unrecognized enum value "+t+" for enum Protocol")}}function A(){return{type:0,value:""}}function _(){return{url:void 0,castId:void 0}}var I={encode:(t,e=l.Writer.create())=>(void 0!==t.url&&e.uint32(10).string(t.url),void 0!==t.castId&&R.encode(t.castId,e.uint32(18).fork()).ldelim(),e),decode(t,e){let r=t instanceof l.Reader?t:l.Reader.create(t),i=void 0===e?r.len:r.pos+e,n=_();for(;r.pos<i;){let t=r.uint32();switch(t>>>3){case 1:if(10!=t)break;n.url=r.string();continue;case 2:if(18!=t)break;n.castId=R.decode(r,r.uint32());continue}if((7&t)==4||0==t)break;r.skipType(7&t)}return n},fromJSON:t=>({url:q(t.url)?String(t.url):void 0,castId:q(t.castId)?R.fromJSON(t.castId):void 0}),toJSON(t){let e={};return void 0!==t.url&&(e.url=t.url),void 0!==t.castId&&(e.castId=t.castId?R.toJSON(t.castId):void 0),e},create:t=>I.fromPartial(t??{}),fromPartial(t){let e=_();return e.url=t.url??void 0,e.castId=void 0!==t.castId&&null!==t.castId?R.fromPartial(t.castId):void 0,e}};function T(){return{embedsDeprecated:[],mentions:[],parentCastId:void 0,parentUrl:void 0,text:"",mentionsPositions:[],embeds:[],type:0}}function U(){return{targetHash:new Uint8Array}}function O(){return{fid:0,hash:new Uint8Array}}var R={encode:(t,e=l.Writer.create())=>(0!==t.fid&&e.uint32(8).uint64(t.fid),0!==t.hash.length&&e.uint32(18).bytes(t.hash),e),decode(t,e){let r=t instanceof l.Reader?t:l.Reader.create(t),i=void 0===e?r.len:r.pos+e,n=O();for(;r.pos<i;){let t=r.uint32();switch(t>>>3){case 1:if(8!=t)break;n.fid=j(r.uint64());continue;case 2:if(18!=t)break;n.hash=r.bytes();continue}if((7&t)==4||0==t)break;r.skipType(7&t)}return n},fromJSON:t=>({fid:q(t.fid)?Number(t.fid):0,hash:q(t.hash)?k(t.hash):new Uint8Array}),toJSON(t){let e={};return void 0!==t.fid&&(e.fid=Math.round(t.fid)),void 0!==t.hash&&(e.hash=C(void 0!==t.hash?t.hash:new Uint8Array)),e},create:t=>R.fromPartial(t??{}),fromPartial(t){let e=O();return e.fid=t.fid??0,e.hash=t.hash??new Uint8Array,e}};function S(){return{type:0,targetCastId:void 0,targetUrl:void 0}}function M(){return{address:new Uint8Array,claimSignature:new Uint8Array,blockHash:new Uint8Array,verificationType:0,chainId:0,protocol:0}}function x(){return{address:new Uint8Array,protocol:0}}function L(){return{type:"",displayTimestamp:void 0,targetFid:void 0}}function $(){return{type:"",targetFids:[]}}function B(){return{url:new Uint8Array,buttonIndex:0,castId:void 0,inputText:new Uint8Array,state:new Uint8Array,transactionId:new Uint8Array,address:new Uint8Array}}var P=(()=>{if("undefined"!=typeof globalThis)return globalThis;if("undefined"!=typeof self)return self;if("undefined"!=typeof global)return global;throw"Unable to locate global object"})();function k(t){if(P.Buffer)return Uint8Array.from(P.Buffer.from(t,"base64"));{let e=P.atob(t),r=new Uint8Array(e.length);for(let t=0;t<e.length;++t)r[t]=e.charCodeAt(t);return r}}function C(t){if(P.Buffer)return P.Buffer.from(t).toString("base64");{let e=[];return t.forEach(t=>{e.push(String.fromCharCode(t))}),P.btoa(e.join(""))}}function j(t){if(t.gt(Number.MAX_SAFE_INTEGER))throw new P.Error("Value is larger than Number.MAX_SAFE_INTEGER");return t.toNumber()}function q(t){return null!=t}l.util.Long!==c.OZ&&(l.util.Long=c.OZ,l.configure())},74491:(t,e,r)=>{r.d(e,{$h:()=>n,a:()=>a.a}),r(92595);var i=r(9759);async function n({htmlString:t,frameUrl:e,specification:r="farcaster",url:n,fromRequestMethod:a="GET"}){return(await (0,i.Q)({frameUrl:e,fallbackPostUrl:n,html:t,fromRequestMethod:a}))[r]}r(95192),r(10893),r(60714),r(29698),r(10441),r(73119),r(27278);var a=r(37490);r(66125),r(98604)}};