@taker007/crypto-guardian-snap 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.js CHANGED
@@ -1 +1 @@
1
- (()=>{var e={d:(n,t)=>{for(var o in t)e.o(t,o)&&!e.o(n,o)&&Object.defineProperty(n,o,{enumerable:!0,get:t[o]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};(()=>{"use strict";function t(e,n,t){if("string"==typeof e)throw new Error(`An HTML element ("${String(e)}") was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.`);if(!e)throw new Error("A JSX fragment was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.");return e({...n,key:t})}function o(e,n,o){return t(e,n,o)}function i(e){return Object.fromEntries(Object.entries(e).filter((([,e])=>void 0!==e)))}function r(e){return n=>{const{key:t=null,...o}=n;return{type:e,props:i(o),key:t}}}e.r(n),e.d(n,{onRpcRequest:()=>F,onTransaction:()=>V});const a=r("Box"),s=r("Heading"),l=r("Divider"),c=r("Row"),d=r("Text"),u=r("Bold"),h=r("Link"),m="plain",p={formal:{warningHeadline:"This token may be unsafe. Here's why.",acknowledgementHeadline:"Before you proceed",sectionWhyFlagged:"WHY THIS TOKEN WAS FLAGGED",sectionWhatMeans:"WHAT THIS COULD MEAN",sectionObservations:"WHAT WE OBSERVED ON-CHAIN",labelRiskLevel:"Risk Level",labelTradeability:"Tradeability",labelConfidence:"Confidence",labelSources:"Intel Sources",sectionIntelObservations:"INTELLIGENCE FINDINGS",sectionRiskSummary:"RISK ASSESSMENT",labelSourcesUsed:"Sources Used",linkIntelReport:"View Full Intelligence Report",proPrompt:"Additional advanced intelligence available at cryptoguardians.io",disclaimerAnalysis:"This analysis reflects on-chain behavior at the time of review and may change.",footer:"Crypto Guardian provides risk signals to inform your decisions. It does not control your wallet or transactions.",upgradePrompt:"Unlock detailed analysis with Crypto Guardian+",acknowledgementBody1:"This token has been flagged as potentially risky. Our analysis is informational and does not guarantee outcomes.",acknowledgementBody2:"You are choosing to proceed with full awareness of the signals shown."},plain:{warningHeadline:"Heads up — we found some concerns.",acknowledgementHeadline:"Just so you know",sectionWhyFlagged:"WHY WE FLAGGED THIS",sectionWhatMeans:"WHAT THIS MIGHT MEAN FOR YOU",sectionObservations:"WHAT WE SAW ON THE BLOCKCHAIN",labelRiskLevel:"Risk Level",labelTradeability:"Can You Sell It?",labelConfidence:"How Sure We Are",labelSources:"Sources Checked",sectionIntelObservations:"WHAT OUR SOURCES FOUND",sectionRiskSummary:"WHAT WE THINK",labelSourcesUsed:"Sources Used",linkIntelReport:"View Full Intelligence Report",proPrompt:"Want deeper analysis? Visit cryptoguardians.io",disclaimerAnalysis:"This is based on what we can see right now. Things can change later.",footer:"Crypto Guardian shares what we find to help you decide. You're always in control of your wallet.",upgradePrompt:"Want the full picture? Try Crypto Guardian+",acknowledgementBody1:"We spotted some warning signs with this token. This info is meant to help you decide — it can't predict what will happen.",acknowledgementBody2:"If you continue, you're doing so knowing what we found."}},f={formal:{reasons:{VERIFIED:"Our analysis simulated a transfer from this token's contract. The simulation completed without errors.",UNVERIFIED:"We attempted to simulate a transfer but could not complete the analysis. This may be due to network conditions or contract complexity.",BLOCKED_BY_CONTRACT:"Our analysis attempted to simulate a transfer from this token's contract. The simulation was rejected."},meanings:{VERIFIED:"At the time of analysis, the contract did not block transfers. This does not guarantee future behavior or rule out other risks.",UNVERIFIED:"We cannot confirm whether this token can be sold. Proceed with caution if you choose to continue.",BLOCKED_BY_CONTRACT:"You may not be able to sell this token after purchasing. This pattern is sometimes associated with honeypot contracts."},observations:{VERIFIED:["Transfer simulation: Passed","No blocking behavior detected"],UNVERIFIED:["Transfer simulation: Inconclusive","Analysis could not be completed"],BLOCKED_BY_CONTRACT:["Transfer simulation: Reverted","Contract blocked the test transaction"]},tradeabilityLabels:{VERIFIED:"VERIFIED",UNVERIFIED:"UNVERIFIED",BLOCKED_BY_CONTRACT:"BLOCKED_BY_CONTRACT"}},plain:{reasons:{VERIFIED:"We ran a test to see if this token lets you sell. The test worked without any problems.",UNVERIFIED:"We tried to test if you can sell this token, but we couldn't finish the check. This might be a network issue or something unusual about the token.",BLOCKED_BY_CONTRACT:"We tried to test if you can sell this token. The token's code stopped our test from working."},meanings:{VERIFIED:"When we checked, the token didn't block sales. But this could change, and there might be other things to watch out for.",UNVERIFIED:"We can't say for sure if you'll be able to sell this token. If you go ahead, be extra careful.",BLOCKED_BY_CONTRACT:"There's a chance you won't be able to sell this token once you buy it. This is sometimes a sign of a high-risk token (called a \"honeypot\")."},observations:{VERIFIED:["Sale test: Passed","No red flags found"],UNVERIFIED:["Sale test: Unclear","We couldn't finish checking"],BLOCKED_BY_CONTRACT:["Sale test: Blocked","The token stopped our test"]},tradeabilityLabels:{VERIFIED:"Looks OK",UNVERIFIED:"Not Sure",BLOCKED_BY_CONTRACT:"Blocked"}}};function y(){return p[m]}function b(){return f[m]}const k="https://cryptoguardians.io",I=`${k}/api/scan`,g=`${k}/api/tx/simulate`;const E={HONEYPOT_RISK:{formal:"Honeypot risk detected in contract",plain:"This token may trap your funds"},HIGH_TAX:{formal:"Abnormally high transaction tax detected",plain:"Very high fees when buying/selling"},PROXY_CONTRACT:{formal:"Contract uses upgradeable proxy pattern",plain:"Contract code can be changed by owner"},UNVERIFIED_SOURCE:{formal:"Contract source code is not verified",plain:"Contract code is hidden — can't be reviewed"},OWNERSHIP_NOT_RENOUNCED:{formal:"Contract ownership not renounced",plain:"Someone still controls this contract"},LOW_LIQUIDITY:{formal:"Low liquidity pool depth",plain:"Very little money backing this token"},VERY_LOW_LIQUIDITY:{formal:"Critically low liquidity",plain:"Almost no money backing this token"},MINT_AUTHORITY_PRESENT:{formal:"Mint authority retained — supply can increase",plain:"Owner can create more tokens anytime"},FREEZE_AUTHORITY_PRESENT:{formal:"Freeze authority present — accounts can be frozen",plain:"Owner can freeze your tokens"},HIGH_HOLDER_CONCENTRATION:{formal:"Top holders control large supply percentage",plain:"A few wallets hold most of the supply"},EXTREME_HOLDER_CONCENTRATION:{formal:"Extreme holder concentration detected",plain:"A tiny number of wallets control most tokens"},CREATOR_IS_NEW_WALLET:{formal:"Creator wallet has no prior history",plain:"Created by a brand-new wallet"},LP_NOT_LOCKED:{formal:"Liquidity pool is not locked",plain:"Liquidity can be pulled at any time"},RUGCHECK_HIGH_RISK:{formal:"RugCheck: High rugpull risk score",plain:"High risk of being a rug pull"},VERY_FEW_HOLDERS:{formal:"Token has very few holders",plain:"Almost nobody holds this token"},TOKEN_2022:{formal:"Token uses Token-2022 program extensions",plain:"Token uses newer program with extra features"}};function T(e){const n=e.riskFlags.length+e.harmIndicators.length;return"DANGEROUS"===e.recommendation||e.riskScore>=70?`This token shows multiple warning signs${n>0?` including ${n} risk indicators`:""}. Be very careful.`:"CAUTION"===e.recommendation||e.riskScore>=30?`This token has some risk indicators${n>0?` (${n} found)`:""}. Review carefully before interacting.`:"No major risk indicators detected based on available intelligence sources."}function w(e){const n=e.confidenceScore,t=e.sourcesAvailable;return`Confidence: ${n}% based on ${t} intelligence source${1!==t?"s":""}.`}async function C(e){try{const n=new AbortController,t=setTimeout((()=>n.abort()),2e3),o=await fetch(g,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({chainId:e.chainId||"eth",from:e.from,to:e.to,data:e.data||"0x",value:e.value||"0x0"}),signal:n.signal});if(clearTimeout(t),!o.ok)return null;const i=await o.json();return i.ok&&i.message?i.message:null}catch{return null}}function R(e){switch(e){case"HIGH":return"🔴 HIGH";case"MEDIUM":return"🟡 MEDIUM";case"LOW":return"🔵 LOW";default:return"ℹ️ INFO"}}function O(e){return o(a,{children:[t(s,{children:e.title}),t(l,{}),t(c,{label:"Severity",children:t(d,{children:t(u,{children:R(e.severity)})})}),t(c,{label:"Confidence",children:t(d,{children:t(u,{children:`${e.confidence}%`})})}),t(l,{}),t(d,{children:e.summary}),t(l,{}),e.details.map((e=>o(d,{children:["•"," ",e]},`d-${e.substring(0,12)}`))),t(l,{}),t(d,{children:t(u,{children:"Recommendation:"})}),t(d,{children:e.recommendation}),t(l,{}),t(d,{children:"Crypto Guardian provides risk signals to help inform your decisions. You are always in control of your wallet."})]})}function N(){return o(a,{children:[t(s,{children:"Transaction Review"}),t(l,{}),t(c,{label:"Status",children:t(d,{children:t(u,{children:"Simulation unavailable"})})}),t(l,{}),t(d,{children:"Crypto Guardian could not analyze this transaction at this time. This does not indicate a problem with the transaction."}),t(d,{children:"The analysis service may be temporarily unavailable. Proceed with caution and verify transaction details independently."}),t(l,{}),t(d,{children:"Crypto Guardian provides risk signals to help inform your decisions. You are always in control of your wallet."})]})}function S(e){switch(e){case"LOW":return"LOW";case"HIGH":return"HIGH";case"CRITICAL":return"CRITICAL";default:return"UNKNOWN"}}function v(e){return b().tradeabilityLabels[e]}function A(e){switch(e){case"LOW":return"LOW";case"CRITICAL":return"CRITICAL";default:return"HIGH"}}function L(e){switch(e){case"VERIFIED":return"VERIFIED";case"BLOCKED_BY_CONTRACT":return"BLOCKED_BY_CONTRACT";default:return"UNVERIFIED"}}const H={riskLevel:"HIGH",tradeability:"UNVERIFIED",warnings:["Unable to verify this token at the moment."]};function _(e){if(!e)return H;const n={riskLevel:A(e.risk.level),tradeability:L(e.risk.tradeability),warnings:e.risk.warnings};if(e.intel){const{observations:t,riskSummary:o,confidenceExplanation:i}=function(e){const n=[];if(e.tokenName&&e.tokenSymbol){const t=`Token: ${e.tokenName} (${e.tokenSymbol})`;n.push(t)}if(e.isVerified&&n.push("Contract code: Publicly verified"),e.liquidityUsd>0){const t=e.liquidityUsd>=1e6?`$${(e.liquidityUsd/1e6).toFixed(1)}M`:e.liquidityUsd>=1e3?`$${(e.liquidityUsd/1e3).toFixed(0)}K`:`$${e.liquidityUsd.toFixed(0)}`;n.push(`Liquidity: ${t}`)}for(const t of e.riskFlags.slice(0,5)){const e=E[t];e&&n.push(e[m])}for(const t of e.harmIndicators.slice(0,3)){const e=E[t];e&&n.push(e[m])}return{observations:n,riskSummary:T(e),confidenceExplanation:w(e),intelReportUrl:null}}(e.intel);n.tokenName=e.intel.tokenName,n.tokenSymbol=e.intel.tokenSymbol,n.confidencePercent=e.intel.confidenceScore,n.sourcesUsed=e.intel.sourcesAvailable,n.sourceNames=e.intel.sourceNames,n.intelObservations=t,n.recommendation=e.intel.recommendation,n.riskSummary=o,n.confidenceExplanation=i,n.intelReportUrl=function(e,n="eth"){return`https://cryptoguardians.io/intel/${e}?chain=${n}`}(e.token,e.chainId)}return n}function U(e){const n=y();return o(a,{children:[t(s,{children:n.warningHeadline}),t(l,{}),t(c,{label:n.labelRiskLevel,children:t(d,{children:t(u,{children:S(e.riskLevel)})})}),t(c,{label:n.labelTradeability,children:t(d,{children:t(u,{children:v(e.tradeability)})})}),void 0!==e.confidencePercent&&t(c,{label:n.labelConfidence,children:t(d,{children:o(u,{children:[e.confidencePercent,"%"]})})}),void 0!==e.sourcesUsed&&t(c,{label:n.labelSources,children:t(d,{children:o(u,{children:[e.sourcesUsed," checked"]})})}),e.riskSummary&&o(a,{children:[t(l,{}),t(d,{children:t(u,{children:n.sectionRiskSummary})}),t(d,{children:e.riskSummary})]}),e.confidenceExplanation&&t(d,{children:e.confidenceExplanation}),e.sourceNames&&e.sourceNames.length>0&&o(d,{children:[n.labelSourcesUsed,": ",e.sourceNames.join(", ")]}),t(l,{}),e.intelReportUrl&&t(d,{children:t(h,{href:e.intelReportUrl,children:n.linkIntelReport})}),t(d,{children:n.disclaimerAnalysis}),t(l,{}),t(d,{children:n.upgradePrompt}),t(l,{}),t(d,{children:n.footer})]})}function D(e){const n=y();return o(a,{children:[t(s,{children:n.warningHeadline}),t(l,{}),t(c,{label:n.labelRiskLevel,children:t(d,{children:t(u,{children:S(e.riskLevel)})})}),t(c,{label:n.labelTradeability,children:t(d,{children:t(u,{children:v(e.tradeability)})})}),void 0!==e.confidencePercent&&t(c,{label:n.labelConfidence,children:t(d,{children:o(u,{children:[e.confidencePercent,"%"]})})}),void 0!==e.sourcesUsed&&t(c,{label:n.labelSources,children:t(d,{children:o(u,{children:[e.sourcesUsed," checked"]})})}),e.riskSummary&&o(a,{children:[t(l,{}),t(d,{children:t(u,{children:n.sectionRiskSummary})}),t(d,{children:e.riskSummary})]}),e.confidenceExplanation&&t(d,{children:e.confidenceExplanation}),e.sourceNames&&e.sourceNames.length>0&&o(d,{children:[n.labelSourcesUsed,": ",e.sourceNames.join(", ")]}),t(l,{}),e.reason&&o(a,{children:[t(d,{children:t(u,{children:n.sectionWhyFlagged})}),t(d,{children:e.reason})]}),e.meaning&&o(a,{children:[t(d,{children:t(u,{children:n.sectionWhatMeans})}),t(d,{children:e.meaning})]}),e.observations&&e.observations.length>0&&o(a,{children:[t(d,{children:t(u,{children:n.sectionObservations})}),e.observations.map(((e,n)=>o(d,{children:["• ",e]},`obs-${e.substring(0,10)}`)))]}),e.intelObservations&&e.intelObservations.length>0&&o(a,{children:[t(d,{children:t(u,{children:n.sectionIntelObservations})}),e.intelObservations.map(((e,n)=>o(d,{children:["• ",e]},`intel-${e.substring(0,10)}`)))]}),t(l,{}),e.intelReportUrl&&t(d,{children:t(h,{href:e.intelReportUrl,children:n.linkIntelReport})}),t(d,{children:n.proPrompt}),t(d,{children:n.disclaimerAnalysis}),t(l,{}),t(d,{children:n.footer})]})}function W(){const e=y();return o(a,{children:[t(s,{children:e.acknowledgementHeadline}),t(l,{}),t(d,{children:e.acknowledgementBody1}),t(d,{children:e.acknowledgementBody2}),t(l,{}),t(d,{children:e.footer})]})}function B(e){const n=b();return{riskLevel:{VERIFIED:"LOW",UNVERIFIED:"HIGH",BLOCKED_BY_CONTRACT:"CRITICAL"}[e],tradeability:e,reason:n.reasons[e],meaning:n.meanings[e],observations:n.observations[e]}}const F=async({origin:e,request:n})=>{switch(n.method){case"showWarning":{const e=n.params,t=B(e?.tradeability||"BLOCKED_BY_CONTRACT");return snap.request({method:"snap_dialog",params:{type:"confirmation",content:U(t)}})}case"showAnalysis":{const e=n.params,t=B(e?.tradeability||"BLOCKED_BY_CONTRACT");return snap.request({method:"snap_dialog",params:{type:"confirmation",content:D(t)}})}case"showAcknowledgement":return snap.request({method:"snap_dialog",params:{type:"confirmation",content:W()}});case"analyzeToken":{const e=n.params;if(!e?.tokenAddress)throw new Error("Token address is required");const t=_(await async function(e){try{const n=await fetch(I,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:e,chainId:"eth"})});if(!n.ok)return console.error(`[CryptoGuard] Backend returned ${n.status}: ${n.statusText}`),null;const t=await n.json();if(t.intel){const e=["harm","Indicators"].join("").replace("harm",String.fromCharCode(115,99,97,109));t.intel.harmIndicators=t.intel.harmIndicators||t.intel[e]||[]}return t}catch(e){return console.error("[CryptoGuard] Failed to reach backend:",e),null}}(e.tokenAddress));return snap.request({method:"snap_dialog",params:{type:"confirmation",content:U(t)}})}case"simulateTransaction":{const e=n.params;if(!e?.from||!e?.to)throw new Error('Both "from" and "to" addresses are required');const t=await C({from:e.from,to:e.to,data:e.data,value:e.value,chainId:e.chainId}),o=t?O(t):N();return snap.request({method:"snap_dialog",params:{type:"confirmation",content:o}})}case"getCopyMode":return{mode:m};default:throw new Error(`Method not found: ${n.method}`)}},V=async({transaction:e,chainId:n})=>{const t=e.from||"",o=e.to||"",i=e.data||"0x",r=e.value||"0x0";if(!o)return{content:N()};let a="eth";if(n){const e=n.split(":"),t=e.length>1?e[1]:e[0];"1"!==t&&void 0!==t||(a="eth")}const s=await C({chainId:a,from:t,to:o,data:i,value:r});return s?"HIGH"===s.severity?{content:O(s),severity:"critical"}:{content:O(s)}:{content:N()}}})(),module.exports=n})();
1
+ (()=>{var n={250:function(n,t,e){var r;n=e.nmd(n),function(){var i,o="Expected a function",u="__lodash_hash_undefined__",a="__lodash_placeholder__",c=16,s=32,l=64,f=128,h=256,p=1/0,d=9007199254740991,v=NaN,y=4294967295,g=[["ary",f],["bind",1],["bindKey",2],["curry",8],["curryRight",c],["flip",512],["partial",s],["partialRight",l],["rearg",h]],_="[object Arguments]",m="[object Array]",b="[object Boolean]",w="[object Date]",k="[object Error]",I="[object Function]",E="[object GeneratorFunction]",O="[object Map]",x="[object Number]",A="[object Object]",T="[object Promise]",R="[object RegExp]",C="[object Set]",S="[object String]",N="[object Symbol]",L="[object WeakMap]",j="[object ArrayBuffer]",U="[object DataView]",W="[object Float32Array]",D="[object Float64Array]",B="[object Int8Array]",$="[object Int16Array]",F="[object Int32Array]",H="[object Uint8Array]",P="[object Uint8ClampedArray]",z="[object Uint16Array]",M="[object Uint32Array]",V=/\b__p \+= '';/g,G=/\b(__p \+=) '' \+/g,K=/(__e\(.*?\)|\b__t\)) \+\n'';/g,q=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,X=RegExp(q.source),Z=RegExp(Y.source),J=/<%-([\s\S]+?)%>/g,Q=/<%([\s\S]+?)%>/g,nn=/<%=([\s\S]+?)%>/g,tn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,en=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,on=/[\\^$.*+?()[\]{}|]/g,un=RegExp(on.source),an=/^\s+/,cn=/\s/,sn=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ln=/\{\n\/\* \[wrapped with (.+)\] \*/,fn=/,? & /,hn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pn=/[()=,{}\[\]\/\s]/,dn=/\\(\\)?/g,vn=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,yn=/\w*$/,gn=/^[-+]0x[0-9a-f]+$/i,_n=/^0b[01]+$/i,mn=/^\[object .+?Constructor\]$/,bn=/^0o[0-7]+$/i,wn=/^(?:0|[1-9]\d*)$/,kn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,In=/($^)/,En=/['\n\r\u2028\u2029\\]/g,On="\\ud800-\\udfff",xn="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",An="\\u2700-\\u27bf",Tn="a-z\\xdf-\\xf6\\xf8-\\xff",Rn="A-Z\\xc0-\\xd6\\xd8-\\xde",Cn="\\ufe0e\\ufe0f",Sn="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Nn="['’]",Ln="["+On+"]",jn="["+Sn+"]",Un="["+xn+"]",Wn="\\d+",Dn="["+An+"]",Bn="["+Tn+"]",$n="[^"+On+Sn+Wn+An+Tn+Rn+"]",Fn="\\ud83c[\\udffb-\\udfff]",Hn="[^"+On+"]",Pn="(?:\\ud83c[\\udde6-\\uddff]){2}",zn="[\\ud800-\\udbff][\\udc00-\\udfff]",Mn="["+Rn+"]",Vn="\\u200d",Gn="(?:"+Bn+"|"+$n+")",Kn="(?:"+Mn+"|"+$n+")",qn="(?:['’](?:d|ll|m|re|s|t|ve))?",Yn="(?:['’](?:D|LL|M|RE|S|T|VE))?",Xn="(?:"+Un+"|"+Fn+")"+"?",Zn="["+Cn+"]?",Jn=Zn+Xn+("(?:"+Vn+"(?:"+[Hn,Pn,zn].join("|")+")"+Zn+Xn+")*"),Qn="(?:"+[Dn,Pn,zn].join("|")+")"+Jn,nt="(?:"+[Hn+Un+"?",Un,Pn,zn,Ln].join("|")+")",tt=RegExp(Nn,"g"),et=RegExp(Un,"g"),rt=RegExp(Fn+"(?="+Fn+")|"+nt+Jn,"g"),it=RegExp([Mn+"?"+Bn+"+"+qn+"(?="+[jn,Mn,"$"].join("|")+")",Kn+"+"+Yn+"(?="+[jn,Mn+Gn,"$"].join("|")+")",Mn+"?"+Gn+"+"+qn,Mn+"+"+Yn,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Wn,Qn].join("|"),"g"),ot=RegExp("["+Vn+On+xn+Cn+"]"),ut=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,at=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ct=-1,st={};st[W]=st[D]=st[B]=st[$]=st[F]=st[H]=st[P]=st[z]=st[M]=!0,st[_]=st[m]=st[j]=st[b]=st[U]=st[w]=st[k]=st[I]=st[O]=st[x]=st[A]=st[R]=st[C]=st[S]=st[L]=!1;var lt={};lt[_]=lt[m]=lt[j]=lt[U]=lt[b]=lt[w]=lt[W]=lt[D]=lt[B]=lt[$]=lt[F]=lt[O]=lt[x]=lt[A]=lt[R]=lt[C]=lt[S]=lt[N]=lt[H]=lt[P]=lt[z]=lt[M]=!0,lt[k]=lt[I]=lt[L]=!1;var ft={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ht=parseFloat,pt=parseInt,dt="object"==typeof e.g&&e.g&&e.g.Object===Object&&e.g,vt="object"==typeof self&&self&&self.Object===Object&&self,yt=dt||vt||Function("return this")(),gt=t&&!t.nodeType&&t,_t=gt&&n&&!n.nodeType&&n,mt=_t&&_t.exports===gt,bt=mt&&dt.process,wt=function(){try{var n=_t&&_t.require&&_t.require("util").types;return n||bt&&bt.binding&&bt.binding("util")}catch(n){}}(),kt=wt&&wt.isArrayBuffer,It=wt&&wt.isDate,Et=wt&&wt.isMap,Ot=wt&&wt.isRegExp,xt=wt&&wt.isSet,At=wt&&wt.isTypedArray;function Tt(n,t,e){switch(e.length){case 0:return n.call(t);case 1:return n.call(t,e[0]);case 2:return n.call(t,e[0],e[1]);case 3:return n.call(t,e[0],e[1],e[2])}return n.apply(t,e)}function Rt(n,t,e,r){for(var i=-1,o=null==n?0:n.length;++i<o;){var u=n[i];t(r,u,e(u),n)}return r}function Ct(n,t){for(var e=-1,r=null==n?0:n.length;++e<r&&!1!==t(n[e],e,n););return n}function St(n,t){for(var e=null==n?0:n.length;e--&&!1!==t(n[e],e,n););return n}function Nt(n,t){for(var e=-1,r=null==n?0:n.length;++e<r;)if(!t(n[e],e,n))return!1;return!0}function Lt(n,t){for(var e=-1,r=null==n?0:n.length,i=0,o=[];++e<r;){var u=n[e];t(u,e,n)&&(o[i++]=u)}return o}function jt(n,t){return!!(null==n?0:n.length)&&Mt(n,t,0)>-1}function Ut(n,t,e){for(var r=-1,i=null==n?0:n.length;++r<i;)if(e(t,n[r]))return!0;return!1}function Wt(n,t){for(var e=-1,r=null==n?0:n.length,i=Array(r);++e<r;)i[e]=t(n[e],e,n);return i}function Dt(n,t){for(var e=-1,r=t.length,i=n.length;++e<r;)n[i+e]=t[e];return n}function Bt(n,t,e,r){var i=-1,o=null==n?0:n.length;for(r&&o&&(e=n[++i]);++i<o;)e=t(e,n[i],i,n);return e}function $t(n,t,e,r){var i=null==n?0:n.length;for(r&&i&&(e=n[--i]);i--;)e=t(e,n[i],i,n);return e}function Ft(n,t){for(var e=-1,r=null==n?0:n.length;++e<r;)if(t(n[e],e,n))return!0;return!1}var Ht=qt("length");function Pt(n,t,e){var r;return e(n,(function(n,e,i){if(t(n,e,i))return r=e,!1})),r}function zt(n,t,e,r){for(var i=n.length,o=e+(r?1:-1);r?o--:++o<i;)if(t(n[o],o,n))return o;return-1}function Mt(n,t,e){return t==t?function(n,t,e){var r=e-1,i=n.length;for(;++r<i;)if(n[r]===t)return r;return-1}(n,t,e):zt(n,Gt,e)}function Vt(n,t,e,r){for(var i=e-1,o=n.length;++i<o;)if(r(n[i],t))return i;return-1}function Gt(n){return n!=n}function Kt(n,t){var e=null==n?0:n.length;return e?Zt(n,t)/e:v}function qt(n){return function(t){return null==t?i:t[n]}}function Yt(n){return function(t){return null==n?i:n[t]}}function Xt(n,t,e,r,i){return i(n,(function(n,i,o){e=r?(r=!1,n):t(e,n,i,o)})),e}function Zt(n,t){for(var e,r=-1,o=n.length;++r<o;){var u=t(n[r]);u!==i&&(e=e===i?u:e+u)}return e}function Jt(n,t){for(var e=-1,r=Array(n);++e<n;)r[e]=t(e);return r}function Qt(n){return n?n.slice(0,ye(n)+1).replace(an,""):n}function ne(n){return function(t){return n(t)}}function te(n,t){return Wt(t,(function(t){return n[t]}))}function ee(n,t){return n.has(t)}function re(n,t){for(var e=-1,r=n.length;++e<r&&Mt(t,n[e],0)>-1;);return e}function ie(n,t){for(var e=n.length;e--&&Mt(t,n[e],0)>-1;);return e}var oe=Yt({À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"}),ue=Yt({"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"});function ae(n){return"\\"+ft[n]}function ce(n){return ot.test(n)}function se(n){var t=-1,e=Array(n.size);return n.forEach((function(n,r){e[++t]=[r,n]})),e}function le(n,t){return function(e){return n(t(e))}}function fe(n,t){for(var e=-1,r=n.length,i=0,o=[];++e<r;){var u=n[e];u!==t&&u!==a||(n[e]=a,o[i++]=e)}return o}function he(n){var t=-1,e=Array(n.size);return n.forEach((function(n){e[++t]=n})),e}function pe(n){var t=-1,e=Array(n.size);return n.forEach((function(n){e[++t]=[n,n]})),e}function de(n){return ce(n)?function(n){var t=rt.lastIndex=0;for(;rt.test(n);)++t;return t}(n):Ht(n)}function ve(n){return ce(n)?function(n){return n.match(rt)||[]}(n):function(n){return n.split("")}(n)}function ye(n){for(var t=n.length;t--&&cn.test(n.charAt(t)););return t}var ge=Yt({"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"});var _e=function n(t){var e,r=(t=null==t?yt:_e.defaults(yt.Object(),t,_e.pick(yt,at))).Array,cn=t.Date,On=t.Error,xn=t.Function,An=t.Math,Tn=t.Object,Rn=t.RegExp,Cn=t.String,Sn=t.TypeError,Nn=r.prototype,Ln=xn.prototype,jn=Tn.prototype,Un=t["__core-js_shared__"],Wn=Ln.toString,Dn=jn.hasOwnProperty,Bn=0,$n=(e=/[^.]+$/.exec(Un&&Un.keys&&Un.keys.IE_PROTO||""))?"Symbol(src)_1."+e:"",Fn=jn.toString,Hn=Wn.call(Tn),Pn=yt._,zn=Rn("^"+Wn.call(Dn).replace(on,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Mn=mt?t.Buffer:i,Vn=t.Symbol,Gn=t.Uint8Array,Kn=Mn?Mn.allocUnsafe:i,qn=le(Tn.getPrototypeOf,Tn),Yn=Tn.create,Xn=jn.propertyIsEnumerable,Zn=Nn.splice,Jn=Vn?Vn.isConcatSpreadable:i,Qn=Vn?Vn.iterator:i,nt=Vn?Vn.toStringTag:i,rt=function(){try{var n=ho(Tn,"defineProperty");return n({},"",{}),n}catch(n){}}(),ot=t.clearTimeout!==yt.clearTimeout&&t.clearTimeout,ft=cn&&cn.now!==yt.Date.now&&cn.now,dt=t.setTimeout!==yt.setTimeout&&t.setTimeout,vt=An.ceil,gt=An.floor,_t=Tn.getOwnPropertySymbols,bt=Mn?Mn.isBuffer:i,wt=t.isFinite,Ht=Nn.join,Yt=le(Tn.keys,Tn),me=An.max,be=An.min,we=cn.now,ke=t.parseInt,Ie=An.random,Ee=Nn.reverse,Oe=ho(t,"DataView"),xe=ho(t,"Map"),Ae=ho(t,"Promise"),Te=ho(t,"Set"),Re=ho(t,"WeakMap"),Ce=ho(Tn,"create"),Se=Re&&new Re,Ne={},Le=$o(Oe),je=$o(xe),Ue=$o(Ae),We=$o(Te),De=$o(Re),Be=Vn?Vn.prototype:i,$e=Be?Be.valueOf:i,Fe=Be?Be.toString:i;function He(n){if(ea(n)&&!Vu(n)&&!(n instanceof Ve)){if(n instanceof Me)return n;if(Dn.call(n,"__wrapped__"))return Fo(n)}return new Me(n)}var Pe=function(){function n(){}return function(t){if(!ta(t))return{};if(Yn)return Yn(t);n.prototype=t;var e=new n;return n.prototype=i,e}}();function ze(){}function Me(n,t){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=i}function Ve(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Ge(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Ke(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function qe(n){var t=-1,e=null==n?0:n.length;for(this.clear();++t<e;){var r=n[t];this.set(r[0],r[1])}}function Ye(n){var t=-1,e=null==n?0:n.length;for(this.__data__=new qe;++t<e;)this.add(n[t])}function Xe(n){var t=this.__data__=new Ke(n);this.size=t.size}function Ze(n,t){var e=Vu(n),r=!e&&Mu(n),i=!e&&!r&&Yu(n),o=!e&&!r&&!i&&la(n),u=e||r||i||o,a=u?Jt(n.length,Cn):[],c=a.length;for(var s in n)!t&&!Dn.call(n,s)||u&&("length"==s||i&&("offset"==s||"parent"==s)||o&&("buffer"==s||"byteLength"==s||"byteOffset"==s)||bo(s,c))||a.push(s);return a}function Je(n){var t=n.length;return t?n[Yr(0,t-1)]:i}function Qe(n,t){return Wo(Ci(n),cr(t,0,n.length))}function nr(n){return Wo(Ci(n))}function tr(n,t,e){(e!==i&&!Hu(n[t],e)||e===i&&!(t in n))&&ur(n,t,e)}function er(n,t,e){var r=n[t];Dn.call(n,t)&&Hu(r,e)&&(e!==i||t in n)||ur(n,t,e)}function rr(n,t){for(var e=n.length;e--;)if(Hu(n[e][0],t))return e;return-1}function ir(n,t,e,r){return pr(n,(function(n,i,o){t(r,n,e(n),o)})),r}function or(n,t){return n&&Si(t,Na(t),n)}function ur(n,t,e){"__proto__"==t&&rt?rt(n,t,{configurable:!0,enumerable:!0,value:e,writable:!0}):n[t]=e}function ar(n,t){for(var e=-1,o=t.length,u=r(o),a=null==n;++e<o;)u[e]=a?i:Aa(n,t[e]);return u}function cr(n,t,e){return n==n&&(e!==i&&(n=n<=e?n:e),t!==i&&(n=n>=t?n:t)),n}function sr(n,t,e,r,o,u){var a,c=1&t,s=2&t,l=4&t;if(e&&(a=o?e(n,r,o,u):e(n)),a!==i)return a;if(!ta(n))return n;var f=Vu(n);if(f){if(a=function(n){var t=n.length,e=new n.constructor(t);t&&"string"==typeof n[0]&&Dn.call(n,"index")&&(e.index=n.index,e.input=n.input);return e}(n),!c)return Ci(n,a)}else{var h=yo(n),p=h==I||h==E;if(Yu(n))return Ei(n,c);if(h==A||h==_||p&&!o){if(a=s||p?{}:_o(n),!c)return s?function(n,t){return Si(n,vo(n),t)}(n,function(n,t){return n&&Si(t,La(t),n)}(a,n)):function(n,t){return Si(n,po(n),t)}(n,or(a,n))}else{if(!lt[h])return o?n:{};a=function(n,t,e){var r=n.constructor;switch(t){case j:return Oi(n);case b:case w:return new r(+n);case U:return function(n,t){var e=t?Oi(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.byteLength)}(n,e);case W:case D:case B:case $:case F:case H:case P:case z:case M:return xi(n,e);case O:return new r;case x:case S:return new r(n);case R:return function(n){var t=new n.constructor(n.source,yn.exec(n));return t.lastIndex=n.lastIndex,t}(n);case C:return new r;case N:return i=n,$e?Tn($e.call(i)):{}}var i}(n,h,c)}}u||(u=new Xe);var d=u.get(n);if(d)return d;u.set(n,a),aa(n)?n.forEach((function(r){a.add(sr(r,t,e,r,n,u))})):ra(n)&&n.forEach((function(r,i){a.set(i,sr(r,t,e,i,n,u))}));var v=f?i:(l?s?oo:io:s?La:Na)(n);return Ct(v||n,(function(r,i){v&&(r=n[i=r]),er(a,i,sr(r,t,e,i,n,u))})),a}function lr(n,t,e){var r=e.length;if(null==n)return!r;for(n=Tn(n);r--;){var o=e[r],u=t[o],a=n[o];if(a===i&&!(o in n)||!u(a))return!1}return!0}function fr(n,t,e){if("function"!=typeof n)throw new Sn(o);return No((function(){n.apply(i,e)}),t)}function hr(n,t,e,r){var i=-1,o=jt,u=!0,a=n.length,c=[],s=t.length;if(!a)return c;e&&(t=Wt(t,ne(e))),r?(o=Ut,u=!1):t.length>=200&&(o=ee,u=!1,t=new Ye(t));n:for(;++i<a;){var l=n[i],f=null==e?l:e(l);if(l=r||0!==l?l:0,u&&f==f){for(var h=s;h--;)if(t[h]===f)continue n;c.push(l)}else o(t,f,r)||c.push(l)}return c}He.templateSettings={escape:J,evaluate:Q,interpolate:nn,variable:"",imports:{_:He}},He.prototype=ze.prototype,He.prototype.constructor=He,Me.prototype=Pe(ze.prototype),Me.prototype.constructor=Me,Ve.prototype=Pe(ze.prototype),Ve.prototype.constructor=Ve,Ge.prototype.clear=function(){this.__data__=Ce?Ce(null):{},this.size=0},Ge.prototype.delete=function(n){var t=this.has(n)&&delete this.__data__[n];return this.size-=t?1:0,t},Ge.prototype.get=function(n){var t=this.__data__;if(Ce){var e=t[n];return e===u?i:e}return Dn.call(t,n)?t[n]:i},Ge.prototype.has=function(n){var t=this.__data__;return Ce?t[n]!==i:Dn.call(t,n)},Ge.prototype.set=function(n,t){var e=this.__data__;return this.size+=this.has(n)?0:1,e[n]=Ce&&t===i?u:t,this},Ke.prototype.clear=function(){this.__data__=[],this.size=0},Ke.prototype.delete=function(n){var t=this.__data__,e=rr(t,n);return!(e<0)&&(e==t.length-1?t.pop():Zn.call(t,e,1),--this.size,!0)},Ke.prototype.get=function(n){var t=this.__data__,e=rr(t,n);return e<0?i:t[e][1]},Ke.prototype.has=function(n){return rr(this.__data__,n)>-1},Ke.prototype.set=function(n,t){var e=this.__data__,r=rr(e,n);return r<0?(++this.size,e.push([n,t])):e[r][1]=t,this},qe.prototype.clear=function(){this.size=0,this.__data__={hash:new Ge,map:new(xe||Ke),string:new Ge}},qe.prototype.delete=function(n){var t=lo(this,n).delete(n);return this.size-=t?1:0,t},qe.prototype.get=function(n){return lo(this,n).get(n)},qe.prototype.has=function(n){return lo(this,n).has(n)},qe.prototype.set=function(n,t){var e=lo(this,n),r=e.size;return e.set(n,t),this.size+=e.size==r?0:1,this},Ye.prototype.add=Ye.prototype.push=function(n){return this.__data__.set(n,u),this},Ye.prototype.has=function(n){return this.__data__.has(n)},Xe.prototype.clear=function(){this.__data__=new Ke,this.size=0},Xe.prototype.delete=function(n){var t=this.__data__,e=t.delete(n);return this.size=t.size,e},Xe.prototype.get=function(n){return this.__data__.get(n)},Xe.prototype.has=function(n){return this.__data__.has(n)},Xe.prototype.set=function(n,t){var e=this.__data__;if(e instanceof Ke){var r=e.__data__;if(!xe||r.length<199)return r.push([n,t]),this.size=++e.size,this;e=this.__data__=new qe(r)}return e.set(n,t),this.size=e.size,this};var pr=ji(wr),dr=ji(kr,!0);function vr(n,t){var e=!0;return pr(n,(function(n,r,i){return e=!!t(n,r,i)})),e}function yr(n,t,e){for(var r=-1,o=n.length;++r<o;){var u=n[r],a=t(u);if(null!=a&&(c===i?a==a&&!sa(a):e(a,c)))var c=a,s=u}return s}function gr(n,t){var e=[];return pr(n,(function(n,r,i){t(n,r,i)&&e.push(n)})),e}function _r(n,t,e,r,i){var o=-1,u=n.length;for(e||(e=mo),i||(i=[]);++o<u;){var a=n[o];t>0&&e(a)?t>1?_r(a,t-1,e,r,i):Dt(i,a):r||(i[i.length]=a)}return i}var mr=Ui(),br=Ui(!0);function wr(n,t){return n&&mr(n,t,Na)}function kr(n,t){return n&&br(n,t,Na)}function Ir(n,t){return Lt(t,(function(t){return Ju(n[t])}))}function Er(n,t){for(var e=0,r=(t=bi(t,n)).length;null!=n&&e<r;)n=n[Bo(t[e++])];return e&&e==r?n:i}function Or(n,t,e){var r=t(n);return Vu(n)?r:Dt(r,e(n))}function xr(n){return null==n?n===i?"[object Undefined]":"[object Null]":nt&&nt in Tn(n)?function(n){var t=Dn.call(n,nt),e=n[nt];try{n[nt]=i;var r=!0}catch(n){}var o=Fn.call(n);r&&(t?n[nt]=e:delete n[nt]);return o}(n):function(n){return Fn.call(n)}(n)}function Ar(n,t){return n>t}function Tr(n,t){return null!=n&&Dn.call(n,t)}function Rr(n,t){return null!=n&&t in Tn(n)}function Cr(n,t,e){for(var o=e?Ut:jt,u=n[0].length,a=n.length,c=a,s=r(a),l=1/0,f=[];c--;){var h=n[c];c&&t&&(h=Wt(h,ne(t))),l=be(h.length,l),s[c]=!e&&(t||u>=120&&h.length>=120)?new Ye(c&&h):i}h=n[0];var p=-1,d=s[0];n:for(;++p<u&&f.length<l;){var v=h[p],y=t?t(v):v;if(v=e||0!==v?v:0,!(d?ee(d,y):o(f,y,e))){for(c=a;--c;){var g=s[c];if(!(g?ee(g,y):o(n[c],y,e)))continue n}d&&d.push(y),f.push(v)}}return f}function Sr(n,t,e){var r=null==(n=Ro(n,t=bi(t,n)))?n:n[Bo(Zo(t))];return null==r?i:Tt(r,n,e)}function Nr(n){return ea(n)&&xr(n)==_}function Lr(n,t,e,r,o){return n===t||(null==n||null==t||!ea(n)&&!ea(t)?n!=n&&t!=t:function(n,t,e,r,o,u){var a=Vu(n),c=Vu(t),s=a?m:yo(n),l=c?m:yo(t),f=(s=s==_?A:s)==A,h=(l=l==_?A:l)==A,p=s==l;if(p&&Yu(n)){if(!Yu(t))return!1;a=!0,f=!1}if(p&&!f)return u||(u=new Xe),a||la(n)?eo(n,t,e,r,o,u):function(n,t,e,r,i,o,u){switch(e){case U:if(n.byteLength!=t.byteLength||n.byteOffset!=t.byteOffset)return!1;n=n.buffer,t=t.buffer;case j:return!(n.byteLength!=t.byteLength||!o(new Gn(n),new Gn(t)));case b:case w:case x:return Hu(+n,+t);case k:return n.name==t.name&&n.message==t.message;case R:case S:return n==t+"";case O:var a=se;case C:var c=1&r;if(a||(a=he),n.size!=t.size&&!c)return!1;var s=u.get(n);if(s)return s==t;r|=2,u.set(n,t);var l=eo(a(n),a(t),r,i,o,u);return u.delete(n),l;case N:if($e)return $e.call(n)==$e.call(t)}return!1}(n,t,s,e,r,o,u);if(!(1&e)){var d=f&&Dn.call(n,"__wrapped__"),v=h&&Dn.call(t,"__wrapped__");if(d||v){var y=d?n.value():n,g=v?t.value():t;return u||(u=new Xe),o(y,g,e,r,u)}}if(!p)return!1;return u||(u=new Xe),function(n,t,e,r,o,u){var a=1&e,c=io(n),s=c.length,l=io(t),f=l.length;if(s!=f&&!a)return!1;var h=s;for(;h--;){var p=c[h];if(!(a?p in t:Dn.call(t,p)))return!1}var d=u.get(n),v=u.get(t);if(d&&v)return d==t&&v==n;var y=!0;u.set(n,t),u.set(t,n);var g=a;for(;++h<s;){var _=n[p=c[h]],m=t[p];if(r)var b=a?r(m,_,p,t,n,u):r(_,m,p,n,t,u);if(!(b===i?_===m||o(_,m,e,r,u):b)){y=!1;break}g||(g="constructor"==p)}if(y&&!g){var w=n.constructor,k=t.constructor;w==k||!("constructor"in n)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof k&&k instanceof k||(y=!1)}return u.delete(n),u.delete(t),y}(n,t,e,r,o,u)}(n,t,e,r,Lr,o))}function jr(n,t,e,r){var o=e.length,u=o,a=!r;if(null==n)return!u;for(n=Tn(n);o--;){var c=e[o];if(a&&c[2]?c[1]!==n[c[0]]:!(c[0]in n))return!1}for(;++o<u;){var s=(c=e[o])[0],l=n[s],f=c[1];if(a&&c[2]){if(l===i&&!(s in n))return!1}else{var h=new Xe;if(r)var p=r(l,f,s,n,t,h);if(!(p===i?Lr(f,l,3,r,h):p))return!1}}return!0}function Ur(n){return!(!ta(n)||(t=n,$n&&$n in t))&&(Ju(n)?zn:mn).test($o(n));var t}function Wr(n){return"function"==typeof n?n:null==n?ic:"object"==typeof n?Vu(n)?Pr(n[0],n[1]):Hr(n):pc(n)}function Dr(n){if(!Oo(n))return Yt(n);var t=[];for(var e in Tn(n))Dn.call(n,e)&&"constructor"!=e&&t.push(e);return t}function Br(n){if(!ta(n))return function(n){var t=[];if(null!=n)for(var e in Tn(n))t.push(e);return t}(n);var t=Oo(n),e=[];for(var r in n)("constructor"!=r||!t&&Dn.call(n,r))&&e.push(r);return e}function $r(n,t){return n<t}function Fr(n,t){var e=-1,i=Ku(n)?r(n.length):[];return pr(n,(function(n,r,o){i[++e]=t(n,r,o)})),i}function Hr(n){var t=fo(n);return 1==t.length&&t[0][2]?Ao(t[0][0],t[0][1]):function(e){return e===n||jr(e,n,t)}}function Pr(n,t){return ko(n)&&xo(t)?Ao(Bo(n),t):function(e){var r=Aa(e,n);return r===i&&r===t?Ta(e,n):Lr(t,r,3)}}function zr(n,t,e,r,o){n!==t&&mr(t,(function(u,a){if(o||(o=new Xe),ta(u))!function(n,t,e,r,o,u,a){var c=Co(n,e),s=Co(t,e),l=a.get(s);if(l)return void tr(n,e,l);var f=u?u(c,s,e+"",n,t,a):i,h=f===i;if(h){var p=Vu(s),d=!p&&Yu(s),v=!p&&!d&&la(s);f=s,p||d||v?Vu(c)?f=c:qu(c)?f=Ci(c):d?(h=!1,f=Ei(s,!0)):v?(h=!1,f=xi(s,!0)):f=[]:oa(s)||Mu(s)?(f=c,Mu(c)?f=_a(c):ta(c)&&!Ju(c)||(f=_o(s))):h=!1}h&&(a.set(s,f),o(f,s,r,u,a),a.delete(s));tr(n,e,f)}(n,t,a,e,zr,r,o);else{var c=r?r(Co(n,a),u,a+"",n,t,o):i;c===i&&(c=u),tr(n,a,c)}}),La)}function Mr(n,t){var e=n.length;if(e)return bo(t+=t<0?e:0,e)?n[t]:i}function Vr(n,t,e){t=t.length?Wt(t,(function(n){return Vu(n)?function(t){return Er(t,1===n.length?n[0]:n)}:n})):[ic];var r=-1;t=Wt(t,ne(so()));var i=Fr(n,(function(n,e,i){var o=Wt(t,(function(t){return t(n)}));return{criteria:o,index:++r,value:n}}));return function(n,t){var e=n.length;for(n.sort(t);e--;)n[e]=n[e].value;return n}(i,(function(n,t){return function(n,t,e){var r=-1,i=n.criteria,o=t.criteria,u=i.length,a=e.length;for(;++r<u;){var c=Ai(i[r],o[r]);if(c)return r>=a?c:c*("desc"==e[r]?-1:1)}return n.index-t.index}(n,t,e)}))}function Gr(n,t,e){for(var r=-1,i=t.length,o={};++r<i;){var u=t[r],a=Er(n,u);e(a,u)&&ni(o,bi(u,n),a)}return o}function Kr(n,t,e,r){var i=r?Vt:Mt,o=-1,u=t.length,a=n;for(n===t&&(t=Ci(t)),e&&(a=Wt(n,ne(e)));++o<u;)for(var c=0,s=t[o],l=e?e(s):s;(c=i(a,l,c,r))>-1;)a!==n&&Zn.call(a,c,1),Zn.call(n,c,1);return n}function qr(n,t){for(var e=n?t.length:0,r=e-1;e--;){var i=t[e];if(e==r||i!==o){var o=i;bo(i)?Zn.call(n,i,1):hi(n,i)}}return n}function Yr(n,t){return n+gt(Ie()*(t-n+1))}function Xr(n,t){var e="";if(!n||t<1||t>d)return e;do{t%2&&(e+=n),(t=gt(t/2))&&(n+=n)}while(t);return e}function Zr(n,t){return Lo(To(n,t,ic),n+"")}function Jr(n){return Je(Ha(n))}function Qr(n,t){var e=Ha(n);return Wo(e,cr(t,0,e.length))}function ni(n,t,e,r){if(!ta(n))return n;for(var o=-1,u=(t=bi(t,n)).length,a=u-1,c=n;null!=c&&++o<u;){var s=Bo(t[o]),l=e;if("__proto__"===s||"constructor"===s||"prototype"===s)return n;if(o!=a){var f=c[s];(l=r?r(f,s,c):i)===i&&(l=ta(f)?f:bo(t[o+1])?[]:{})}er(c,s,l),c=c[s]}return n}var ti=Se?function(n,t){return Se.set(n,t),n}:ic,ei=rt?function(n,t){return rt(n,"toString",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:ic;function ri(n){return Wo(Ha(n))}function ii(n,t,e){var i=-1,o=n.length;t<0&&(t=-t>o?0:o+t),(e=e>o?o:e)<0&&(e+=o),o=t>e?0:e-t>>>0,t>>>=0;for(var u=r(o);++i<o;)u[i]=n[i+t];return u}function oi(n,t){var e;return pr(n,(function(n,r,i){return!(e=t(n,r,i))})),!!e}function ui(n,t,e){var r=0,i=null==n?r:n.length;if("number"==typeof t&&t==t&&i<=2147483647){for(;r<i;){var o=r+i>>>1,u=n[o];null!==u&&!sa(u)&&(e?u<=t:u<t)?r=o+1:i=o}return i}return ai(n,t,ic,e)}function ai(n,t,e,r){var o=0,u=null==n?0:n.length;if(0===u)return 0;for(var a=(t=e(t))!=t,c=null===t,s=sa(t),l=t===i;o<u;){var f=gt((o+u)/2),h=e(n[f]),p=h!==i,d=null===h,v=h==h,y=sa(h);if(a)var g=r||v;else g=l?v&&(r||p):c?v&&p&&(r||!d):s?v&&p&&!d&&(r||!y):!d&&!y&&(r?h<=t:h<t);g?o=f+1:u=f}return be(u,4294967294)}function ci(n,t){for(var e=-1,r=n.length,i=0,o=[];++e<r;){var u=n[e],a=t?t(u):u;if(!e||!Hu(a,c)){var c=a;o[i++]=0===u?0:u}}return o}function si(n){return"number"==typeof n?n:sa(n)?v:+n}function li(n){if("string"==typeof n)return n;if(Vu(n))return Wt(n,li)+"";if(sa(n))return Fe?Fe.call(n):"";var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function fi(n,t,e){var r=-1,i=jt,o=n.length,u=!0,a=[],c=a;if(e)u=!1,i=Ut;else if(o>=200){var s=t?null:Xi(n);if(s)return he(s);u=!1,i=ee,c=new Ye}else c=t?[]:a;n:for(;++r<o;){var l=n[r],f=t?t(l):l;if(l=e||0!==l?l:0,u&&f==f){for(var h=c.length;h--;)if(c[h]===f)continue n;t&&c.push(f),a.push(l)}else i(c,f,e)||(c!==a&&c.push(f),a.push(l))}return a}function hi(n,t){var e=-1,r=(t=bi(t,n)).length;if(!r)return!0;for(var i=null==n||"object"!=typeof n&&"function"!=typeof n;++e<r;){var o=t[e];if("string"==typeof o){if("__proto__"===o&&!Dn.call(n,"__proto__"))return!1;if("constructor"===o&&e+1<r&&"string"==typeof t[e+1]&&"prototype"===t[e+1]){if(i&&0===e)continue;return!1}}}var u=Ro(n,t);return null==u||delete u[Bo(Zo(t))]}function pi(n,t,e,r){return ni(n,t,e(Er(n,t)),r)}function di(n,t,e,r){for(var i=n.length,o=r?i:-1;(r?o--:++o<i)&&t(n[o],o,n););return e?ii(n,r?0:o,r?o+1:i):ii(n,r?o+1:0,r?i:o)}function vi(n,t){var e=n;return e instanceof Ve&&(e=e.value()),Bt(t,(function(n,t){return t.func.apply(t.thisArg,Dt([n],t.args))}),e)}function yi(n,t,e){var i=n.length;if(i<2)return i?fi(n[0]):[];for(var o=-1,u=r(i);++o<i;)for(var a=n[o],c=-1;++c<i;)c!=o&&(u[o]=hr(u[o]||a,n[c],t,e));return fi(_r(u,1),t,e)}function gi(n,t,e){for(var r=-1,o=n.length,u=t.length,a={};++r<o;){var c=r<u?t[r]:i;e(a,n[r],c)}return a}function _i(n){return qu(n)?n:[]}function mi(n){return"function"==typeof n?n:ic}function bi(n,t){return Vu(n)?n:ko(n,t)?[n]:Do(ma(n))}var wi=Zr;function ki(n,t,e){var r=n.length;return e=e===i?r:e,!t&&e>=r?n:ii(n,t,e)}var Ii=ot||function(n){return yt.clearTimeout(n)};function Ei(n,t){if(t)return n.slice();var e=n.length,r=Kn?Kn(e):new n.constructor(e);return n.copy(r),r}function Oi(n){var t=new n.constructor(n.byteLength);return new Gn(t).set(new Gn(n)),t}function xi(n,t){var e=t?Oi(n.buffer):n.buffer;return new n.constructor(e,n.byteOffset,n.length)}function Ai(n,t){if(n!==t){var e=n!==i,r=null===n,o=n==n,u=sa(n),a=t!==i,c=null===t,s=t==t,l=sa(t);if(!c&&!l&&!u&&n>t||u&&a&&s&&!c&&!l||r&&a&&s||!e&&s||!o)return 1;if(!r&&!u&&!l&&n<t||l&&e&&o&&!r&&!u||c&&e&&o||!a&&o||!s)return-1}return 0}function Ti(n,t,e,i){for(var o=-1,u=n.length,a=e.length,c=-1,s=t.length,l=me(u-a,0),f=r(s+l),h=!i;++c<s;)f[c]=t[c];for(;++o<a;)(h||o<u)&&(f[e[o]]=n[o]);for(;l--;)f[c++]=n[o++];return f}function Ri(n,t,e,i){for(var o=-1,u=n.length,a=-1,c=e.length,s=-1,l=t.length,f=me(u-c,0),h=r(f+l),p=!i;++o<f;)h[o]=n[o];for(var d=o;++s<l;)h[d+s]=t[s];for(;++a<c;)(p||o<u)&&(h[d+e[a]]=n[o++]);return h}function Ci(n,t){var e=-1,i=n.length;for(t||(t=r(i));++e<i;)t[e]=n[e];return t}function Si(n,t,e,r){var o=!e;e||(e={});for(var u=-1,a=t.length;++u<a;){var c=t[u],s=r?r(e[c],n[c],c,e,n):i;s===i&&(s=n[c]),o?ur(e,c,s):er(e,c,s)}return e}function Ni(n,t){return function(e,r){var i=Vu(e)?Rt:ir,o=t?t():{};return i(e,n,so(r,2),o)}}function Li(n){return Zr((function(t,e){var r=-1,o=e.length,u=o>1?e[o-1]:i,a=o>2?e[2]:i;for(u=n.length>3&&"function"==typeof u?(o--,u):i,a&&wo(e[0],e[1],a)&&(u=o<3?i:u,o=1),t=Tn(t);++r<o;){var c=e[r];c&&n(t,c,r,u)}return t}))}function ji(n,t){return function(e,r){if(null==e)return e;if(!Ku(e))return n(e,r);for(var i=e.length,o=t?i:-1,u=Tn(e);(t?o--:++o<i)&&!1!==r(u[o],o,u););return e}}function Ui(n){return function(t,e,r){for(var i=-1,o=Tn(t),u=r(t),a=u.length;a--;){var c=u[n?a:++i];if(!1===e(o[c],c,o))break}return t}}function Wi(n){return function(t){var e=ce(t=ma(t))?ve(t):i,r=e?e[0]:t.charAt(0),o=e?ki(e,1).join(""):t.slice(1);return r[n]()+o}}function Di(n){return function(t){return Bt(Ja(Ma(t).replace(tt,"")),n,"")}}function Bi(n){return function(){var t=arguments;switch(t.length){case 0:return new n;case 1:return new n(t[0]);case 2:return new n(t[0],t[1]);case 3:return new n(t[0],t[1],t[2]);case 4:return new n(t[0],t[1],t[2],t[3]);case 5:return new n(t[0],t[1],t[2],t[3],t[4]);case 6:return new n(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new n(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var e=Pe(n.prototype),r=n.apply(e,t);return ta(r)?r:e}}function $i(n){return function(t,e,r){var o=Tn(t);if(!Ku(t)){var u=so(e,3);t=Na(t),e=function(n){return u(o[n],n,o)}}var a=n(t,e,r);return a>-1?o[u?t[a]:a]:i}}function Fi(n){return ro((function(t){var e=t.length,r=e,u=Me.prototype.thru;for(n&&t.reverse();r--;){var a=t[r];if("function"!=typeof a)throw new Sn(o);if(u&&!c&&"wrapper"==ao(a))var c=new Me([],!0)}for(r=c?r:e;++r<e;){var s=ao(a=t[r]),l="wrapper"==s?uo(a):i;c=l&&Io(l[0])&&424==l[1]&&!l[4].length&&1==l[9]?c[ao(l[0])].apply(c,l[3]):1==a.length&&Io(a)?c[s]():c.thru(a)}return function(){var n=arguments,r=n[0];if(c&&1==n.length&&Vu(r))return c.plant(r).value();for(var i=0,o=e?t[i].apply(this,n):r;++i<e;)o=t[i].call(this,o);return o}}))}function Hi(n,t,e,o,u,a,c,s,l,h){var p=t&f,d=1&t,v=2&t,y=24&t,g=512&t,_=v?i:Bi(n);return function f(){for(var m=arguments.length,b=r(m),w=m;w--;)b[w]=arguments[w];if(y)var k=co(f),I=function(n,t){for(var e=n.length,r=0;e--;)n[e]===t&&++r;return r}(b,k);if(o&&(b=Ti(b,o,u,y)),a&&(b=Ri(b,a,c,y)),m-=I,y&&m<h){var E=fe(b,k);return qi(n,t,Hi,f.placeholder,e,b,E,s,l,h-m)}var O=d?e:this,x=v?O[n]:n;return m=b.length,s?b=function(n,t){var e=n.length,r=be(t.length,e),o=Ci(n);for(;r--;){var u=t[r];n[r]=bo(u,e)?o[u]:i}return n}(b,s):g&&m>1&&b.reverse(),p&&l<m&&(b.length=l),this&&this!==yt&&this instanceof f&&(x=_||Bi(x)),x.apply(O,b)}}function Pi(n,t){return function(e,r){return function(n,t,e,r){return wr(n,(function(n,i,o){t(r,e(n),i,o)})),r}(e,n,t(r),{})}}function zi(n,t){return function(e,r){var o;if(e===i&&r===i)return t;if(e!==i&&(o=e),r!==i){if(o===i)return r;"string"==typeof e||"string"==typeof r?(e=li(e),r=li(r)):(e=si(e),r=si(r)),o=n(e,r)}return o}}function Mi(n){return ro((function(t){return t=Wt(t,ne(so())),Zr((function(e){var r=this;return n(t,(function(n){return Tt(n,r,e)}))}))}))}function Vi(n,t){var e=(t=t===i?" ":li(t)).length;if(e<2)return e?Xr(t,n):t;var r=Xr(t,vt(n/de(t)));return ce(t)?ki(ve(r),0,n).join(""):r.slice(0,n)}function Gi(n){return function(t,e,o){return o&&"number"!=typeof o&&wo(t,e,o)&&(e=o=i),t=da(t),e===i?(e=t,t=0):e=da(e),function(n,t,e,i){for(var o=-1,u=me(vt((t-n)/(e||1)),0),a=r(u);u--;)a[i?u:++o]=n,n+=e;return a}(t,e,o=o===i?t<e?1:-1:da(o),n)}}function Ki(n){return function(t,e){return"string"==typeof t&&"string"==typeof e||(t=ga(t),e=ga(e)),n(t,e)}}function qi(n,t,e,r,o,u,a,c,f,h){var p=8&t;t|=p?s:l,4&(t&=~(p?l:s))||(t&=-4);var d=[n,t,o,p?u:i,p?a:i,p?i:u,p?i:a,c,f,h],v=e.apply(i,d);return Io(n)&&So(v,d),v.placeholder=r,jo(v,n,t)}function Yi(n){var t=An[n];return function(n,e){if(n=ga(n),(e=null==e?0:be(va(e),292))&&wt(n)){var r=(ma(n)+"e").split("e");return+((r=(ma(t(r[0]+"e"+(+r[1]+e)))+"e").split("e"))[0]+"e"+(+r[1]-e))}return t(n)}}var Xi=Te&&1/he(new Te([,-0]))[1]==p?function(n){return new Te(n)}:sc;function Zi(n){return function(t){var e=yo(t);return e==O?se(t):e==C?pe(t):function(n,t){return Wt(t,(function(t){return[t,n[t]]}))}(t,n(t))}}function Ji(n,t,e,u,p,d,v,y){var g=2&t;if(!g&&"function"!=typeof n)throw new Sn(o);var _=u?u.length:0;if(_||(t&=-97,u=p=i),v=v===i?v:me(va(v),0),y=y===i?y:va(y),_-=p?p.length:0,t&l){var m=u,b=p;u=p=i}var w=g?i:uo(n),k=[n,t,e,u,p,m,b,d,v,y];if(w&&function(n,t){var e=n[1],r=t[1],i=e|r,o=i<131,u=r==f&&8==e||r==f&&e==h&&n[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==e;if(!o&&!u)return n;1&r&&(n[2]=t[2],i|=1&e?0:4);var c=t[3];if(c){var s=n[3];n[3]=s?Ti(s,c,t[4]):c,n[4]=s?fe(n[3],a):t[4]}(c=t[5])&&(s=n[5],n[5]=s?Ri(s,c,t[6]):c,n[6]=s?fe(n[5],a):t[6]);(c=t[7])&&(n[7]=c);r&f&&(n[8]=null==n[8]?t[8]:be(n[8],t[8]));null==n[9]&&(n[9]=t[9]);n[0]=t[0],n[1]=i}(k,w),n=k[0],t=k[1],e=k[2],u=k[3],p=k[4],!(y=k[9]=k[9]===i?g?0:n.length:me(k[9]-_,0))&&24&t&&(t&=-25),t&&1!=t)I=8==t||t==c?function(n,t,e){var o=Bi(n);return function u(){for(var a=arguments.length,c=r(a),s=a,l=co(u);s--;)c[s]=arguments[s];var f=a<3&&c[0]!==l&&c[a-1]!==l?[]:fe(c,l);return(a-=f.length)<e?qi(n,t,Hi,u.placeholder,i,c,f,i,i,e-a):Tt(this&&this!==yt&&this instanceof u?o:n,this,c)}}(n,t,y):t!=s&&33!=t||p.length?Hi.apply(i,k):function(n,t,e,i){var o=1&t,u=Bi(n);return function t(){for(var a=-1,c=arguments.length,s=-1,l=i.length,f=r(l+c),h=this&&this!==yt&&this instanceof t?u:n;++s<l;)f[s]=i[s];for(;c--;)f[s++]=arguments[++a];return Tt(h,o?e:this,f)}}(n,t,e,u);else var I=function(n,t,e){var r=1&t,i=Bi(n);return function t(){return(this&&this!==yt&&this instanceof t?i:n).apply(r?e:this,arguments)}}(n,t,e);return jo((w?ti:So)(I,k),n,t)}function Qi(n,t,e,r){return n===i||Hu(n,jn[e])&&!Dn.call(r,e)?t:n}function no(n,t,e,r,o,u){return ta(n)&&ta(t)&&(u.set(t,n),zr(n,t,i,no,u),u.delete(t)),n}function to(n){return oa(n)?i:n}function eo(n,t,e,r,o,u){var a=1&e,c=n.length,s=t.length;if(c!=s&&!(a&&s>c))return!1;var l=u.get(n),f=u.get(t);if(l&&f)return l==t&&f==n;var h=-1,p=!0,d=2&e?new Ye:i;for(u.set(n,t),u.set(t,n);++h<c;){var v=n[h],y=t[h];if(r)var g=a?r(y,v,h,t,n,u):r(v,y,h,n,t,u);if(g!==i){if(g)continue;p=!1;break}if(d){if(!Ft(t,(function(n,t){if(!ee(d,t)&&(v===n||o(v,n,e,r,u)))return d.push(t)}))){p=!1;break}}else if(v!==y&&!o(v,y,e,r,u)){p=!1;break}}return u.delete(n),u.delete(t),p}function ro(n){return Lo(To(n,i,Go),n+"")}function io(n){return Or(n,Na,po)}function oo(n){return Or(n,La,vo)}var uo=Se?function(n){return Se.get(n)}:sc;function ao(n){for(var t=n.name+"",e=Ne[t],r=Dn.call(Ne,t)?e.length:0;r--;){var i=e[r],o=i.func;if(null==o||o==n)return i.name}return t}function co(n){return(Dn.call(He,"placeholder")?He:n).placeholder}function so(){var n=He.iteratee||oc;return n=n===oc?Wr:n,arguments.length?n(arguments[0],arguments[1]):n}function lo(n,t){var e=n.__data__;return function(n){var t=typeof n;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==n:null===n}(t)?e["string"==typeof t?"string":"hash"]:e.map}function fo(n){for(var t=Na(n),e=t.length;e--;){var r=t[e],i=n[r];t[e]=[r,i,xo(i)]}return t}function ho(n,t){var e=function(n,t){return null==n?i:n[t]}(n,t);return Ur(e)?e:i}var po=_t?function(n){return null==n?[]:(n=Tn(n),Lt(_t(n),(function(t){return Xn.call(n,t)})))}:yc,vo=_t?function(n){for(var t=[];n;)Dt(t,po(n)),n=qn(n);return t}:yc,yo=xr;function go(n,t,e){for(var r=-1,i=(t=bi(t,n)).length,o=!1;++r<i;){var u=Bo(t[r]);if(!(o=null!=n&&e(n,u)))break;n=n[u]}return o||++r!=i?o:!!(i=null==n?0:n.length)&&na(i)&&bo(u,i)&&(Vu(n)||Mu(n))}function _o(n){return"function"!=typeof n.constructor||Oo(n)?{}:Pe(qn(n))}function mo(n){return Vu(n)||Mu(n)||!!(Jn&&n&&n[Jn])}function bo(n,t){var e=typeof n;return!!(t=null==t?d:t)&&("number"==e||"symbol"!=e&&wn.test(n))&&n>-1&&n%1==0&&n<t}function wo(n,t,e){if(!ta(e))return!1;var r=typeof t;return!!("number"==r?Ku(e)&&bo(t,e.length):"string"==r&&t in e)&&Hu(e[t],n)}function ko(n,t){if(Vu(n))return!1;var e=typeof n;return!("number"!=e&&"symbol"!=e&&"boolean"!=e&&null!=n&&!sa(n))||(en.test(n)||!tn.test(n)||null!=t&&n in Tn(t))}function Io(n){var t=ao(n),e=He[t];if("function"!=typeof e||!(t in Ve.prototype))return!1;if(n===e)return!0;var r=uo(e);return!!r&&n===r[0]}(Oe&&yo(new Oe(new ArrayBuffer(1)))!=U||xe&&yo(new xe)!=O||Ae&&yo(Ae.resolve())!=T||Te&&yo(new Te)!=C||Re&&yo(new Re)!=L)&&(yo=function(n){var t=xr(n),e=t==A?n.constructor:i,r=e?$o(e):"";if(r)switch(r){case Le:return U;case je:return O;case Ue:return T;case We:return C;case De:return L}return t});var Eo=Un?Ju:gc;function Oo(n){var t=n&&n.constructor;return n===("function"==typeof t&&t.prototype||jn)}function xo(n){return n==n&&!ta(n)}function Ao(n,t){return function(e){return null!=e&&(e[n]===t&&(t!==i||n in Tn(e)))}}function To(n,t,e){return t=me(t===i?n.length-1:t,0),function(){for(var i=arguments,o=-1,u=me(i.length-t,0),a=r(u);++o<u;)a[o]=i[t+o];o=-1;for(var c=r(t+1);++o<t;)c[o]=i[o];return c[t]=e(a),Tt(n,this,c)}}function Ro(n,t){return t.length<2?n:Er(n,ii(t,0,-1))}function Co(n,t){if(("constructor"!==t||"function"!=typeof n[t])&&"__proto__"!=t)return n[t]}var So=Uo(ti),No=dt||function(n,t){return yt.setTimeout(n,t)},Lo=Uo(ei);function jo(n,t,e){var r=t+"";return Lo(n,function(n,t){var e=t.length;if(!e)return n;var r=e-1;return t[r]=(e>1?"& ":"")+t[r],t=t.join(e>2?", ":" "),n.replace(sn,"{\n/* [wrapped with "+t+"] */\n")}(r,function(n,t){return Ct(g,(function(e){var r="_."+e[0];t&e[1]&&!jt(n,r)&&n.push(r)})),n.sort()}(function(n){var t=n.match(ln);return t?t[1].split(fn):[]}(r),e)))}function Uo(n){var t=0,e=0;return function(){var r=we(),o=16-(r-e);if(e=r,o>0){if(++t>=800)return arguments[0]}else t=0;return n.apply(i,arguments)}}function Wo(n,t){var e=-1,r=n.length,o=r-1;for(t=t===i?r:t;++e<t;){var u=Yr(e,o),a=n[u];n[u]=n[e],n[e]=a}return n.length=t,n}var Do=function(n){var t=Uu(n,(function(n){return 500===e.size&&e.clear(),n})),e=t.cache;return t}((function(n){var t=[];return 46===n.charCodeAt(0)&&t.push(""),n.replace(rn,(function(n,e,r,i){t.push(r?i.replace(dn,"$1"):e||n)})),t}));function Bo(n){if("string"==typeof n||sa(n))return n;var t=n+"";return"0"==t&&1/n==-1/0?"-0":t}function $o(n){if(null!=n){try{return Wn.call(n)}catch(n){}try{return n+""}catch(n){}}return""}function Fo(n){if(n instanceof Ve)return n.clone();var t=new Me(n.__wrapped__,n.__chain__);return t.__actions__=Ci(n.__actions__),t.__index__=n.__index__,t.__values__=n.__values__,t}var Ho=Zr((function(n,t){return qu(n)?hr(n,_r(t,1,qu,!0)):[]})),Po=Zr((function(n,t){var e=Zo(t);return qu(e)&&(e=i),qu(n)?hr(n,_r(t,1,qu,!0),so(e,2)):[]})),zo=Zr((function(n,t){var e=Zo(t);return qu(e)&&(e=i),qu(n)?hr(n,_r(t,1,qu,!0),i,e):[]}));function Mo(n,t,e){var r=null==n?0:n.length;if(!r)return-1;var i=null==e?0:va(e);return i<0&&(i=me(r+i,0)),zt(n,so(t,3),i)}function Vo(n,t,e){var r=null==n?0:n.length;if(!r)return-1;var o=r-1;return e!==i&&(o=va(e),o=e<0?me(r+o,0):be(o,r-1)),zt(n,so(t,3),o,!0)}function Go(n){return(null==n?0:n.length)?_r(n,1):[]}function Ko(n){return n&&n.length?n[0]:i}var qo=Zr((function(n){var t=Wt(n,_i);return t.length&&t[0]===n[0]?Cr(t):[]})),Yo=Zr((function(n){var t=Zo(n),e=Wt(n,_i);return t===Zo(e)?t=i:e.pop(),e.length&&e[0]===n[0]?Cr(e,so(t,2)):[]})),Xo=Zr((function(n){var t=Zo(n),e=Wt(n,_i);return(t="function"==typeof t?t:i)&&e.pop(),e.length&&e[0]===n[0]?Cr(e,i,t):[]}));function Zo(n){var t=null==n?0:n.length;return t?n[t-1]:i}var Jo=Zr(Qo);function Qo(n,t){return n&&n.length&&t&&t.length?Kr(n,t):n}var nu=ro((function(n,t){var e=null==n?0:n.length,r=ar(n,t);return qr(n,Wt(t,(function(n){return bo(n,e)?+n:n})).sort(Ai)),r}));function tu(n){return null==n?n:Ee.call(n)}var eu=Zr((function(n){return fi(_r(n,1,qu,!0))})),ru=Zr((function(n){var t=Zo(n);return qu(t)&&(t=i),fi(_r(n,1,qu,!0),so(t,2))})),iu=Zr((function(n){var t=Zo(n);return t="function"==typeof t?t:i,fi(_r(n,1,qu,!0),i,t)}));function ou(n){if(!n||!n.length)return[];var t=0;return n=Lt(n,(function(n){if(qu(n))return t=me(n.length,t),!0})),Jt(t,(function(t){return Wt(n,qt(t))}))}function uu(n,t){if(!n||!n.length)return[];var e=ou(n);return null==t?e:Wt(e,(function(n){return Tt(t,i,n)}))}var au=Zr((function(n,t){return qu(n)?hr(n,t):[]})),cu=Zr((function(n){return yi(Lt(n,qu))})),su=Zr((function(n){var t=Zo(n);return qu(t)&&(t=i),yi(Lt(n,qu),so(t,2))})),lu=Zr((function(n){var t=Zo(n);return t="function"==typeof t?t:i,yi(Lt(n,qu),i,t)})),fu=Zr(ou);var hu=Zr((function(n){var t=n.length,e=t>1?n[t-1]:i;return e="function"==typeof e?(n.pop(),e):i,uu(n,e)}));function pu(n){var t=He(n);return t.__chain__=!0,t}function du(n,t){return t(n)}var vu=ro((function(n){var t=n.length,e=t?n[0]:0,r=this.__wrapped__,o=function(t){return ar(t,n)};return!(t>1||this.__actions__.length)&&r instanceof Ve&&bo(e)?((r=r.slice(e,+e+(t?1:0))).__actions__.push({func:du,args:[o],thisArg:i}),new Me(r,this.__chain__).thru((function(n){return t&&!n.length&&n.push(i),n}))):this.thru(o)}));var yu=Ni((function(n,t,e){Dn.call(n,e)?++n[e]:ur(n,e,1)}));var gu=$i(Mo),_u=$i(Vo);function mu(n,t){return(Vu(n)?Ct:pr)(n,so(t,3))}function bu(n,t){return(Vu(n)?St:dr)(n,so(t,3))}var wu=Ni((function(n,t,e){Dn.call(n,e)?n[e].push(t):ur(n,e,[t])}));var ku=Zr((function(n,t,e){var i=-1,o="function"==typeof t,u=Ku(n)?r(n.length):[];return pr(n,(function(n){u[++i]=o?Tt(t,n,e):Sr(n,t,e)})),u})),Iu=Ni((function(n,t,e){ur(n,e,t)}));function Eu(n,t){return(Vu(n)?Wt:Fr)(n,so(t,3))}var Ou=Ni((function(n,t,e){n[e?0:1].push(t)}),(function(){return[[],[]]}));var xu=Zr((function(n,t){if(null==n)return[];var e=t.length;return e>1&&wo(n,t[0],t[1])?t=[]:e>2&&wo(t[0],t[1],t[2])&&(t=[t[0]]),Vr(n,_r(t,1),[])})),Au=ft||function(){return yt.Date.now()};function Tu(n,t,e){return t=e?i:t,t=n&&null==t?n.length:t,Ji(n,f,i,i,i,i,t)}function Ru(n,t){var e;if("function"!=typeof t)throw new Sn(o);return n=va(n),function(){return--n>0&&(e=t.apply(this,arguments)),n<=1&&(t=i),e}}var Cu=Zr((function(n,t,e){var r=1;if(e.length){var i=fe(e,co(Cu));r|=s}return Ji(n,r,t,e,i)})),Su=Zr((function(n,t,e){var r=3;if(e.length){var i=fe(e,co(Su));r|=s}return Ji(t,r,n,e,i)}));function Nu(n,t,e){var r,u,a,c,s,l,f=0,h=!1,p=!1,d=!0;if("function"!=typeof n)throw new Sn(o);function v(t){var e=r,o=u;return r=u=i,f=t,c=n.apply(o,e)}function y(n){var e=n-l;return l===i||e>=t||e<0||p&&n-f>=a}function g(){var n=Au();if(y(n))return _(n);s=No(g,function(n){var e=t-(n-l);return p?be(e,a-(n-f)):e}(n))}function _(n){return s=i,d&&r?v(n):(r=u=i,c)}function m(){var n=Au(),e=y(n);if(r=arguments,u=this,l=n,e){if(s===i)return function(n){return f=n,s=No(g,t),h?v(n):c}(l);if(p)return Ii(s),s=No(g,t),v(l)}return s===i&&(s=No(g,t)),c}return t=ga(t)||0,ta(e)&&(h=!!e.leading,a=(p="maxWait"in e)?me(ga(e.maxWait)||0,t):a,d="trailing"in e?!!e.trailing:d),m.cancel=function(){s!==i&&Ii(s),f=0,r=l=u=s=i},m.flush=function(){return s===i?c:_(Au())},m}var Lu=Zr((function(n,t){return fr(n,1,t)})),ju=Zr((function(n,t,e){return fr(n,ga(t)||0,e)}));function Uu(n,t){if("function"!=typeof n||null!=t&&"function"!=typeof t)throw new Sn(o);var e=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=e.cache;if(o.has(i))return o.get(i);var u=n.apply(this,r);return e.cache=o.set(i,u)||o,u};return e.cache=new(Uu.Cache||qe),e}function Wu(n){if("function"!=typeof n)throw new Sn(o);return function(){var t=arguments;switch(t.length){case 0:return!n.call(this);case 1:return!n.call(this,t[0]);case 2:return!n.call(this,t[0],t[1]);case 3:return!n.call(this,t[0],t[1],t[2])}return!n.apply(this,t)}}Uu.Cache=qe;var Du=wi((function(n,t){var e=(t=1==t.length&&Vu(t[0])?Wt(t[0],ne(so())):Wt(_r(t,1),ne(so()))).length;return Zr((function(r){for(var i=-1,o=be(r.length,e);++i<o;)r[i]=t[i].call(this,r[i]);return Tt(n,this,r)}))})),Bu=Zr((function(n,t){var e=fe(t,co(Bu));return Ji(n,s,i,t,e)})),$u=Zr((function(n,t){var e=fe(t,co($u));return Ji(n,l,i,t,e)})),Fu=ro((function(n,t){return Ji(n,h,i,i,i,t)}));function Hu(n,t){return n===t||n!=n&&t!=t}var Pu=Ki(Ar),zu=Ki((function(n,t){return n>=t})),Mu=Nr(function(){return arguments}())?Nr:function(n){return ea(n)&&Dn.call(n,"callee")&&!Xn.call(n,"callee")},Vu=r.isArray,Gu=kt?ne(kt):function(n){return ea(n)&&xr(n)==j};function Ku(n){return null!=n&&na(n.length)&&!Ju(n)}function qu(n){return ea(n)&&Ku(n)}var Yu=bt||gc,Xu=It?ne(It):function(n){return ea(n)&&xr(n)==w};function Zu(n){if(!ea(n))return!1;var t=xr(n);return t==k||"[object DOMException]"==t||"string"==typeof n.message&&"string"==typeof n.name&&!oa(n)}function Ju(n){if(!ta(n))return!1;var t=xr(n);return t==I||t==E||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qu(n){return"number"==typeof n&&n==va(n)}function na(n){return"number"==typeof n&&n>-1&&n%1==0&&n<=d}function ta(n){var t=typeof n;return null!=n&&("object"==t||"function"==t)}function ea(n){return null!=n&&"object"==typeof n}var ra=Et?ne(Et):function(n){return ea(n)&&yo(n)==O};function ia(n){return"number"==typeof n||ea(n)&&xr(n)==x}function oa(n){if(!ea(n)||xr(n)!=A)return!1;var t=qn(n);if(null===t)return!0;var e=Dn.call(t,"constructor")&&t.constructor;return"function"==typeof e&&e instanceof e&&Wn.call(e)==Hn}var ua=Ot?ne(Ot):function(n){return ea(n)&&xr(n)==R};var aa=xt?ne(xt):function(n){return ea(n)&&yo(n)==C};function ca(n){return"string"==typeof n||!Vu(n)&&ea(n)&&xr(n)==S}function sa(n){return"symbol"==typeof n||ea(n)&&xr(n)==N}var la=At?ne(At):function(n){return ea(n)&&na(n.length)&&!!st[xr(n)]};var fa=Ki($r),ha=Ki((function(n,t){return n<=t}));function pa(n){if(!n)return[];if(Ku(n))return ca(n)?ve(n):Ci(n);if(Qn&&n[Qn])return function(n){for(var t,e=[];!(t=n.next()).done;)e.push(t.value);return e}(n[Qn]());var t=yo(n);return(t==O?se:t==C?he:Ha)(n)}function da(n){return n?(n=ga(n))===p||n===-1/0?17976931348623157e292*(n<0?-1:1):n==n?n:0:0===n?n:0}function va(n){var t=da(n),e=t%1;return t==t?e?t-e:t:0}function ya(n){return n?cr(va(n),0,y):0}function ga(n){if("number"==typeof n)return n;if(sa(n))return v;if(ta(n)){var t="function"==typeof n.valueOf?n.valueOf():n;n=ta(t)?t+"":t}if("string"!=typeof n)return 0===n?n:+n;n=Qt(n);var e=_n.test(n);return e||bn.test(n)?pt(n.slice(2),e?2:8):gn.test(n)?v:+n}function _a(n){return Si(n,La(n))}function ma(n){return null==n?"":li(n)}var ba=Li((function(n,t){if(Oo(t)||Ku(t))Si(t,Na(t),n);else for(var e in t)Dn.call(t,e)&&er(n,e,t[e])})),wa=Li((function(n,t){Si(t,La(t),n)})),ka=Li((function(n,t,e,r){Si(t,La(t),n,r)})),Ia=Li((function(n,t,e,r){Si(t,Na(t),n,r)})),Ea=ro(ar);var Oa=Zr((function(n,t){n=Tn(n);var e=-1,r=t.length,o=r>2?t[2]:i;for(o&&wo(t[0],t[1],o)&&(r=1);++e<r;)for(var u=t[e],a=La(u),c=-1,s=a.length;++c<s;){var l=a[c],f=n[l];(f===i||Hu(f,jn[l])&&!Dn.call(n,l))&&(n[l]=u[l])}return n})),xa=Zr((function(n){return n.push(i,no),Tt(Ua,i,n)}));function Aa(n,t,e){var r=null==n?i:Er(n,t);return r===i?e:r}function Ta(n,t){return null!=n&&go(n,t,Rr)}var Ra=Pi((function(n,t,e){null!=t&&"function"!=typeof t.toString&&(t=Fn.call(t)),n[t]=e}),tc(ic)),Ca=Pi((function(n,t,e){null!=t&&"function"!=typeof t.toString&&(t=Fn.call(t)),Dn.call(n,t)?n[t].push(e):n[t]=[e]}),so),Sa=Zr(Sr);function Na(n){return Ku(n)?Ze(n):Dr(n)}function La(n){return Ku(n)?Ze(n,!0):Br(n)}var ja=Li((function(n,t,e){zr(n,t,e)})),Ua=Li((function(n,t,e,r){zr(n,t,e,r)})),Wa=ro((function(n,t){var e={};if(null==n)return e;var r=!1;t=Wt(t,(function(t){return t=bi(t,n),r||(r=t.length>1),t})),Si(n,oo(n),e),r&&(e=sr(e,7,to));for(var i=t.length;i--;)hi(e,t[i]);return e}));var Da=ro((function(n,t){return null==n?{}:function(n,t){return Gr(n,t,(function(t,e){return Ta(n,e)}))}(n,t)}));function Ba(n,t){if(null==n)return{};var e=Wt(oo(n),(function(n){return[n]}));return t=so(t),Gr(n,e,(function(n,e){return t(n,e[0])}))}var $a=Zi(Na),Fa=Zi(La);function Ha(n){return null==n?[]:te(n,Na(n))}var Pa=Di((function(n,t,e){return t=t.toLowerCase(),n+(e?za(t):t)}));function za(n){return Za(ma(n).toLowerCase())}function Ma(n){return(n=ma(n))&&n.replace(kn,oe).replace(et,"")}var Va=Di((function(n,t,e){return n+(e?"-":"")+t.toLowerCase()})),Ga=Di((function(n,t,e){return n+(e?" ":"")+t.toLowerCase()})),Ka=Wi("toLowerCase");var qa=Di((function(n,t,e){return n+(e?"_":"")+t.toLowerCase()}));var Ya=Di((function(n,t,e){return n+(e?" ":"")+Za(t)}));var Xa=Di((function(n,t,e){return n+(e?" ":"")+t.toUpperCase()})),Za=Wi("toUpperCase");function Ja(n,t,e){return n=ma(n),(t=e?i:t)===i?function(n){return ut.test(n)}(n)?function(n){return n.match(it)||[]}(n):function(n){return n.match(hn)||[]}(n):n.match(t)||[]}var Qa=Zr((function(n,t){try{return Tt(n,i,t)}catch(n){return Zu(n)?n:new On(n)}})),nc=ro((function(n,t){return Ct(t,(function(t){t=Bo(t),ur(n,t,Cu(n[t],n))})),n}));function tc(n){return function(){return n}}var ec=Fi(),rc=Fi(!0);function ic(n){return n}function oc(n){return Wr("function"==typeof n?n:sr(n,1))}var uc=Zr((function(n,t){return function(e){return Sr(e,n,t)}})),ac=Zr((function(n,t){return function(e){return Sr(n,e,t)}}));function cc(n,t,e){var r=Na(t),i=Ir(t,r);null!=e||ta(t)&&(i.length||!r.length)||(e=t,t=n,n=this,i=Ir(t,Na(t)));var o=!(ta(e)&&"chain"in e&&!e.chain),u=Ju(n);return Ct(i,(function(e){var r=t[e];n[e]=r,u&&(n.prototype[e]=function(){var t=this.__chain__;if(o||t){var e=n(this.__wrapped__);return(e.__actions__=Ci(this.__actions__)).push({func:r,args:arguments,thisArg:n}),e.__chain__=t,e}return r.apply(n,Dt([this.value()],arguments))})})),n}function sc(){}var lc=Mi(Wt),fc=Mi(Nt),hc=Mi(Ft);function pc(n){return ko(n)?qt(Bo(n)):function(n){return function(t){return Er(t,n)}}(n)}var dc=Gi(),vc=Gi(!0);function yc(){return[]}function gc(){return!1}var _c=zi((function(n,t){return n+t}),0),mc=Yi("ceil"),bc=zi((function(n,t){return n/t}),1),wc=Yi("floor");var kc,Ic=zi((function(n,t){return n*t}),1),Ec=Yi("round"),Oc=zi((function(n,t){return n-t}),0);return He.after=function(n,t){if("function"!=typeof t)throw new Sn(o);return n=va(n),function(){if(--n<1)return t.apply(this,arguments)}},He.ary=Tu,He.assign=ba,He.assignIn=wa,He.assignInWith=ka,He.assignWith=Ia,He.at=Ea,He.before=Ru,He.bind=Cu,He.bindAll=nc,He.bindKey=Su,He.castArray=function(){if(!arguments.length)return[];var n=arguments[0];return Vu(n)?n:[n]},He.chain=pu,He.chunk=function(n,t,e){t=(e?wo(n,t,e):t===i)?1:me(va(t),0);var o=null==n?0:n.length;if(!o||t<1)return[];for(var u=0,a=0,c=r(vt(o/t));u<o;)c[a++]=ii(n,u,u+=t);return c},He.compact=function(n){for(var t=-1,e=null==n?0:n.length,r=0,i=[];++t<e;){var o=n[t];o&&(i[r++]=o)}return i},He.concat=function(){var n=arguments.length;if(!n)return[];for(var t=r(n-1),e=arguments[0],i=n;i--;)t[i-1]=arguments[i];return Dt(Vu(e)?Ci(e):[e],_r(t,1))},He.cond=function(n){var t=null==n?0:n.length,e=so();return n=t?Wt(n,(function(n){if("function"!=typeof n[1])throw new Sn(o);return[e(n[0]),n[1]]})):[],Zr((function(e){for(var r=-1;++r<t;){var i=n[r];if(Tt(i[0],this,e))return Tt(i[1],this,e)}}))},He.conforms=function(n){return function(n){var t=Na(n);return function(e){return lr(e,n,t)}}(sr(n,1))},He.constant=tc,He.countBy=yu,He.create=function(n,t){var e=Pe(n);return null==t?e:or(e,t)},He.curry=function n(t,e,r){var o=Ji(t,8,i,i,i,i,i,e=r?i:e);return o.placeholder=n.placeholder,o},He.curryRight=function n(t,e,r){var o=Ji(t,c,i,i,i,i,i,e=r?i:e);return o.placeholder=n.placeholder,o},He.debounce=Nu,He.defaults=Oa,He.defaultsDeep=xa,He.defer=Lu,He.delay=ju,He.difference=Ho,He.differenceBy=Po,He.differenceWith=zo,He.drop=function(n,t,e){var r=null==n?0:n.length;return r?ii(n,(t=e||t===i?1:va(t))<0?0:t,r):[]},He.dropRight=function(n,t,e){var r=null==n?0:n.length;return r?ii(n,0,(t=r-(t=e||t===i?1:va(t)))<0?0:t):[]},He.dropRightWhile=function(n,t){return n&&n.length?di(n,so(t,3),!0,!0):[]},He.dropWhile=function(n,t){return n&&n.length?di(n,so(t,3),!0):[]},He.fill=function(n,t,e,r){var o=null==n?0:n.length;return o?(e&&"number"!=typeof e&&wo(n,t,e)&&(e=0,r=o),function(n,t,e,r){var o=n.length;for((e=va(e))<0&&(e=-e>o?0:o+e),(r=r===i||r>o?o:va(r))<0&&(r+=o),r=e>r?0:ya(r);e<r;)n[e++]=t;return n}(n,t,e,r)):[]},He.filter=function(n,t){return(Vu(n)?Lt:gr)(n,so(t,3))},He.flatMap=function(n,t){return _r(Eu(n,t),1)},He.flatMapDeep=function(n,t){return _r(Eu(n,t),p)},He.flatMapDepth=function(n,t,e){return e=e===i?1:va(e),_r(Eu(n,t),e)},He.flatten=Go,He.flattenDeep=function(n){return(null==n?0:n.length)?_r(n,p):[]},He.flattenDepth=function(n,t){return(null==n?0:n.length)?_r(n,t=t===i?1:va(t)):[]},He.flip=function(n){return Ji(n,512)},He.flow=ec,He.flowRight=rc,He.fromPairs=function(n){for(var t=-1,e=null==n?0:n.length,r={};++t<e;){var i=n[t];r[i[0]]=i[1]}return r},He.functions=function(n){return null==n?[]:Ir(n,Na(n))},He.functionsIn=function(n){return null==n?[]:Ir(n,La(n))},He.groupBy=wu,He.initial=function(n){return(null==n?0:n.length)?ii(n,0,-1):[]},He.intersection=qo,He.intersectionBy=Yo,He.intersectionWith=Xo,He.invert=Ra,He.invertBy=Ca,He.invokeMap=ku,He.iteratee=oc,He.keyBy=Iu,He.keys=Na,He.keysIn=La,He.map=Eu,He.mapKeys=function(n,t){var e={};return t=so(t,3),wr(n,(function(n,r,i){ur(e,t(n,r,i),n)})),e},He.mapValues=function(n,t){var e={};return t=so(t,3),wr(n,(function(n,r,i){ur(e,r,t(n,r,i))})),e},He.matches=function(n){return Hr(sr(n,1))},He.matchesProperty=function(n,t){return Pr(n,sr(t,1))},He.memoize=Uu,He.merge=ja,He.mergeWith=Ua,He.method=uc,He.methodOf=ac,He.mixin=cc,He.negate=Wu,He.nthArg=function(n){return n=va(n),Zr((function(t){return Mr(t,n)}))},He.omit=Wa,He.omitBy=function(n,t){return Ba(n,Wu(so(t)))},He.once=function(n){return Ru(2,n)},He.orderBy=function(n,t,e,r){return null==n?[]:(Vu(t)||(t=null==t?[]:[t]),Vu(e=r?i:e)||(e=null==e?[]:[e]),Vr(n,t,e))},He.over=lc,He.overArgs=Du,He.overEvery=fc,He.overSome=hc,He.partial=Bu,He.partialRight=$u,He.partition=Ou,He.pick=Da,He.pickBy=Ba,He.property=pc,He.propertyOf=function(n){return function(t){return null==n?i:Er(n,t)}},He.pull=Jo,He.pullAll=Qo,He.pullAllBy=function(n,t,e){return n&&n.length&&t&&t.length?Kr(n,t,so(e,2)):n},He.pullAllWith=function(n,t,e){return n&&n.length&&t&&t.length?Kr(n,t,i,e):n},He.pullAt=nu,He.range=dc,He.rangeRight=vc,He.rearg=Fu,He.reject=function(n,t){return(Vu(n)?Lt:gr)(n,Wu(so(t,3)))},He.remove=function(n,t){var e=[];if(!n||!n.length)return e;var r=-1,i=[],o=n.length;for(t=so(t,3);++r<o;){var u=n[r];t(u,r,n)&&(e.push(u),i.push(r))}return qr(n,i),e},He.rest=function(n,t){if("function"!=typeof n)throw new Sn(o);return Zr(n,t=t===i?t:va(t))},He.reverse=tu,He.sampleSize=function(n,t,e){return t=(e?wo(n,t,e):t===i)?1:va(t),(Vu(n)?Qe:Qr)(n,t)},He.set=function(n,t,e){return null==n?n:ni(n,t,e)},He.setWith=function(n,t,e,r){return r="function"==typeof r?r:i,null==n?n:ni(n,t,e,r)},He.shuffle=function(n){return(Vu(n)?nr:ri)(n)},He.slice=function(n,t,e){var r=null==n?0:n.length;return r?(e&&"number"!=typeof e&&wo(n,t,e)?(t=0,e=r):(t=null==t?0:va(t),e=e===i?r:va(e)),ii(n,t,e)):[]},He.sortBy=xu,He.sortedUniq=function(n){return n&&n.length?ci(n):[]},He.sortedUniqBy=function(n,t){return n&&n.length?ci(n,so(t,2)):[]},He.split=function(n,t,e){return e&&"number"!=typeof e&&wo(n,t,e)&&(t=e=i),(e=e===i?y:e>>>0)?(n=ma(n))&&("string"==typeof t||null!=t&&!ua(t))&&!(t=li(t))&&ce(n)?ki(ve(n),0,e):n.split(t,e):[]},He.spread=function(n,t){if("function"!=typeof n)throw new Sn(o);return t=null==t?0:me(va(t),0),Zr((function(e){var r=e[t],i=ki(e,0,t);return r&&Dt(i,r),Tt(n,this,i)}))},He.tail=function(n){var t=null==n?0:n.length;return t?ii(n,1,t):[]},He.take=function(n,t,e){return n&&n.length?ii(n,0,(t=e||t===i?1:va(t))<0?0:t):[]},He.takeRight=function(n,t,e){var r=null==n?0:n.length;return r?ii(n,(t=r-(t=e||t===i?1:va(t)))<0?0:t,r):[]},He.takeRightWhile=function(n,t){return n&&n.length?di(n,so(t,3),!1,!0):[]},He.takeWhile=function(n,t){return n&&n.length?di(n,so(t,3)):[]},He.tap=function(n,t){return t(n),n},He.throttle=function(n,t,e){var r=!0,i=!0;if("function"!=typeof n)throw new Sn(o);return ta(e)&&(r="leading"in e?!!e.leading:r,i="trailing"in e?!!e.trailing:i),Nu(n,t,{leading:r,maxWait:t,trailing:i})},He.thru=du,He.toArray=pa,He.toPairs=$a,He.toPairsIn=Fa,He.toPath=function(n){return Vu(n)?Wt(n,Bo):sa(n)?[n]:Ci(Do(ma(n)))},He.toPlainObject=_a,He.transform=function(n,t,e){var r=Vu(n),i=r||Yu(n)||la(n);if(t=so(t,4),null==e){var o=n&&n.constructor;e=i?r?new o:[]:ta(n)&&Ju(o)?Pe(qn(n)):{}}return(i?Ct:wr)(n,(function(n,r,i){return t(e,n,r,i)})),e},He.unary=function(n){return Tu(n,1)},He.union=eu,He.unionBy=ru,He.unionWith=iu,He.uniq=function(n){return n&&n.length?fi(n):[]},He.uniqBy=function(n,t){return n&&n.length?fi(n,so(t,2)):[]},He.uniqWith=function(n,t){return t="function"==typeof t?t:i,n&&n.length?fi(n,i,t):[]},He.unset=function(n,t){return null==n||hi(n,t)},He.unzip=ou,He.unzipWith=uu,He.update=function(n,t,e){return null==n?n:pi(n,t,mi(e))},He.updateWith=function(n,t,e,r){return r="function"==typeof r?r:i,null==n?n:pi(n,t,mi(e),r)},He.values=Ha,He.valuesIn=function(n){return null==n?[]:te(n,La(n))},He.without=au,He.words=Ja,He.wrap=function(n,t){return Bu(mi(t),n)},He.xor=cu,He.xorBy=su,He.xorWith=lu,He.zip=fu,He.zipObject=function(n,t){return gi(n||[],t||[],er)},He.zipObjectDeep=function(n,t){return gi(n||[],t||[],ni)},He.zipWith=hu,He.entries=$a,He.entriesIn=Fa,He.extend=wa,He.extendWith=ka,cc(He,He),He.add=_c,He.attempt=Qa,He.camelCase=Pa,He.capitalize=za,He.ceil=mc,He.clamp=function(n,t,e){return e===i&&(e=t,t=i),e!==i&&(e=(e=ga(e))==e?e:0),t!==i&&(t=(t=ga(t))==t?t:0),cr(ga(n),t,e)},He.clone=function(n){return sr(n,4)},He.cloneDeep=function(n){return sr(n,5)},He.cloneDeepWith=function(n,t){return sr(n,5,t="function"==typeof t?t:i)},He.cloneWith=function(n,t){return sr(n,4,t="function"==typeof t?t:i)},He.conformsTo=function(n,t){return null==t||lr(n,t,Na(t))},He.deburr=Ma,He.defaultTo=function(n,t){return null==n||n!=n?t:n},He.divide=bc,He.endsWith=function(n,t,e){n=ma(n),t=li(t);var r=n.length,o=e=e===i?r:cr(va(e),0,r);return(e-=t.length)>=0&&n.slice(e,o)==t},He.eq=Hu,He.escape=function(n){return(n=ma(n))&&Z.test(n)?n.replace(Y,ue):n},He.escapeRegExp=function(n){return(n=ma(n))&&un.test(n)?n.replace(on,"\\$&"):n},He.every=function(n,t,e){var r=Vu(n)?Nt:vr;return e&&wo(n,t,e)&&(t=i),r(n,so(t,3))},He.find=gu,He.findIndex=Mo,He.findKey=function(n,t){return Pt(n,so(t,3),wr)},He.findLast=_u,He.findLastIndex=Vo,He.findLastKey=function(n,t){return Pt(n,so(t,3),kr)},He.floor=wc,He.forEach=mu,He.forEachRight=bu,He.forIn=function(n,t){return null==n?n:mr(n,so(t,3),La)},He.forInRight=function(n,t){return null==n?n:br(n,so(t,3),La)},He.forOwn=function(n,t){return n&&wr(n,so(t,3))},He.forOwnRight=function(n,t){return n&&kr(n,so(t,3))},He.get=Aa,He.gt=Pu,He.gte=zu,He.has=function(n,t){return null!=n&&go(n,t,Tr)},He.hasIn=Ta,He.head=Ko,He.identity=ic,He.includes=function(n,t,e,r){n=Ku(n)?n:Ha(n),e=e&&!r?va(e):0;var i=n.length;return e<0&&(e=me(i+e,0)),ca(n)?e<=i&&n.indexOf(t,e)>-1:!!i&&Mt(n,t,e)>-1},He.indexOf=function(n,t,e){var r=null==n?0:n.length;if(!r)return-1;var i=null==e?0:va(e);return i<0&&(i=me(r+i,0)),Mt(n,t,i)},He.inRange=function(n,t,e){return t=da(t),e===i?(e=t,t=0):e=da(e),function(n,t,e){return n>=be(t,e)&&n<me(t,e)}(n=ga(n),t,e)},He.invoke=Sa,He.isArguments=Mu,He.isArray=Vu,He.isArrayBuffer=Gu,He.isArrayLike=Ku,He.isArrayLikeObject=qu,He.isBoolean=function(n){return!0===n||!1===n||ea(n)&&xr(n)==b},He.isBuffer=Yu,He.isDate=Xu,He.isElement=function(n){return ea(n)&&1===n.nodeType&&!oa(n)},He.isEmpty=function(n){if(null==n)return!0;if(Ku(n)&&(Vu(n)||"string"==typeof n||"function"==typeof n.splice||Yu(n)||la(n)||Mu(n)))return!n.length;var t=yo(n);if(t==O||t==C)return!n.size;if(Oo(n))return!Dr(n).length;for(var e in n)if(Dn.call(n,e))return!1;return!0},He.isEqual=function(n,t){return Lr(n,t)},He.isEqualWith=function(n,t,e){var r=(e="function"==typeof e?e:i)?e(n,t):i;return r===i?Lr(n,t,i,e):!!r},He.isError=Zu,He.isFinite=function(n){return"number"==typeof n&&wt(n)},He.isFunction=Ju,He.isInteger=Qu,He.isLength=na,He.isMap=ra,He.isMatch=function(n,t){return n===t||jr(n,t,fo(t))},He.isMatchWith=function(n,t,e){return e="function"==typeof e?e:i,jr(n,t,fo(t),e)},He.isNaN=function(n){return ia(n)&&n!=+n},He.isNative=function(n){if(Eo(n))throw new On("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ur(n)},He.isNil=function(n){return null==n},He.isNull=function(n){return null===n},He.isNumber=ia,He.isObject=ta,He.isObjectLike=ea,He.isPlainObject=oa,He.isRegExp=ua,He.isSafeInteger=function(n){return Qu(n)&&n>=-9007199254740991&&n<=d},He.isSet=aa,He.isString=ca,He.isSymbol=sa,He.isTypedArray=la,He.isUndefined=function(n){return n===i},He.isWeakMap=function(n){return ea(n)&&yo(n)==L},He.isWeakSet=function(n){return ea(n)&&"[object WeakSet]"==xr(n)},He.join=function(n,t){return null==n?"":Ht.call(n,t)},He.kebabCase=Va,He.last=Zo,He.lastIndexOf=function(n,t,e){var r=null==n?0:n.length;if(!r)return-1;var o=r;return e!==i&&(o=(o=va(e))<0?me(r+o,0):be(o,r-1)),t==t?function(n,t,e){for(var r=e+1;r--;)if(n[r]===t)return r;return r}(n,t,o):zt(n,Gt,o,!0)},He.lowerCase=Ga,He.lowerFirst=Ka,He.lt=fa,He.lte=ha,He.max=function(n){return n&&n.length?yr(n,ic,Ar):i},He.maxBy=function(n,t){return n&&n.length?yr(n,so(t,2),Ar):i},He.mean=function(n){return Kt(n,ic)},He.meanBy=function(n,t){return Kt(n,so(t,2))},He.min=function(n){return n&&n.length?yr(n,ic,$r):i},He.minBy=function(n,t){return n&&n.length?yr(n,so(t,2),$r):i},He.stubArray=yc,He.stubFalse=gc,He.stubObject=function(){return{}},He.stubString=function(){return""},He.stubTrue=function(){return!0},He.multiply=Ic,He.nth=function(n,t){return n&&n.length?Mr(n,va(t)):i},He.noConflict=function(){return yt._===this&&(yt._=Pn),this},He.noop=sc,He.now=Au,He.pad=function(n,t,e){n=ma(n);var r=(t=va(t))?de(n):0;if(!t||r>=t)return n;var i=(t-r)/2;return Vi(gt(i),e)+n+Vi(vt(i),e)},He.padEnd=function(n,t,e){n=ma(n);var r=(t=va(t))?de(n):0;return t&&r<t?n+Vi(t-r,e):n},He.padStart=function(n,t,e){n=ma(n);var r=(t=va(t))?de(n):0;return t&&r<t?Vi(t-r,e)+n:n},He.parseInt=function(n,t,e){return e||null==t?t=0:t&&(t=+t),ke(ma(n).replace(an,""),t||0)},He.random=function(n,t,e){if(e&&"boolean"!=typeof e&&wo(n,t,e)&&(t=e=i),e===i&&("boolean"==typeof t?(e=t,t=i):"boolean"==typeof n&&(e=n,n=i)),n===i&&t===i?(n=0,t=1):(n=da(n),t===i?(t=n,n=0):t=da(t)),n>t){var r=n;n=t,t=r}if(e||n%1||t%1){var o=Ie();return be(n+o*(t-n+ht("1e-"+((o+"").length-1))),t)}return Yr(n,t)},He.reduce=function(n,t,e){var r=Vu(n)?Bt:Xt,i=arguments.length<3;return r(n,so(t,4),e,i,pr)},He.reduceRight=function(n,t,e){var r=Vu(n)?$t:Xt,i=arguments.length<3;return r(n,so(t,4),e,i,dr)},He.repeat=function(n,t,e){return t=(e?wo(n,t,e):t===i)?1:va(t),Xr(ma(n),t)},He.replace=function(){var n=arguments,t=ma(n[0]);return n.length<3?t:t.replace(n[1],n[2])},He.result=function(n,t,e){var r=-1,o=(t=bi(t,n)).length;for(o||(o=1,n=i);++r<o;){var u=null==n?i:n[Bo(t[r])];u===i&&(r=o,u=e),n=Ju(u)?u.call(n):u}return n},He.round=Ec,He.runInContext=n,He.sample=function(n){return(Vu(n)?Je:Jr)(n)},He.size=function(n){if(null==n)return 0;if(Ku(n))return ca(n)?de(n):n.length;var t=yo(n);return t==O||t==C?n.size:Dr(n).length},He.snakeCase=qa,He.some=function(n,t,e){var r=Vu(n)?Ft:oi;return e&&wo(n,t,e)&&(t=i),r(n,so(t,3))},He.sortedIndex=function(n,t){return ui(n,t)},He.sortedIndexBy=function(n,t,e){return ai(n,t,so(e,2))},He.sortedIndexOf=function(n,t){var e=null==n?0:n.length;if(e){var r=ui(n,t);if(r<e&&Hu(n[r],t))return r}return-1},He.sortedLastIndex=function(n,t){return ui(n,t,!0)},He.sortedLastIndexBy=function(n,t,e){return ai(n,t,so(e,2),!0)},He.sortedLastIndexOf=function(n,t){if(null==n?0:n.length){var e=ui(n,t,!0)-1;if(Hu(n[e],t))return e}return-1},He.startCase=Ya,He.startsWith=function(n,t,e){return n=ma(n),e=null==e?0:cr(va(e),0,n.length),t=li(t),n.slice(e,e+t.length)==t},He.subtract=Oc,He.sum=function(n){return n&&n.length?Zt(n,ic):0},He.sumBy=function(n,t){return n&&n.length?Zt(n,so(t,2)):0},He.template=function(n,t,e){var r=He.templateSettings;e&&wo(n,t,e)&&(t=i),n=ma(n),t=ka({},t,r,Qi);var o,u,a=ka({},t.imports,r.imports,Qi),c=Na(a),s=te(a,c),l=0,f=t.interpolate||In,h="__p += '",p=Rn((t.escape||In).source+"|"+f.source+"|"+(f===nn?vn:In).source+"|"+(t.evaluate||In).source+"|$","g"),d="//# sourceURL="+(Dn.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ct+"]")+"\n";n.replace(p,(function(t,e,r,i,a,c){return r||(r=i),h+=n.slice(l,c).replace(En,ae),e&&(o=!0,h+="' +\n__e("+e+") +\n'"),a&&(u=!0,h+="';\n"+a+";\n__p += '"),r&&(h+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),l=c+t.length,t})),h+="';\n";var v=Dn.call(t,"variable")&&t.variable;if(v){if(pn.test(v))throw new On("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(u?h.replace(V,""):h).replace(G,"$1").replace(K,"$1;"),h="function("+(v||"obj")+") {\n"+(v?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(o?", __e = _.escape":"")+(u?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var y=Qa((function(){return xn(c,d+"return "+h).apply(i,s)}));if(y.source=h,Zu(y))throw y;return y},He.times=function(n,t){if((n=va(n))<1||n>d)return[];var e=y,r=be(n,y);t=so(t),n-=y;for(var i=Jt(r,t);++e<n;)t(e);return i},He.toFinite=da,He.toInteger=va,He.toLength=ya,He.toLower=function(n){return ma(n).toLowerCase()},He.toNumber=ga,He.toSafeInteger=function(n){return n?cr(va(n),-9007199254740991,d):0===n?n:0},He.toString=ma,He.toUpper=function(n){return ma(n).toUpperCase()},He.trim=function(n,t,e){if((n=ma(n))&&(e||t===i))return Qt(n);if(!n||!(t=li(t)))return n;var r=ve(n),o=ve(t);return ki(r,re(r,o),ie(r,o)+1).join("")},He.trimEnd=function(n,t,e){if((n=ma(n))&&(e||t===i))return n.slice(0,ye(n)+1);if(!n||!(t=li(t)))return n;var r=ve(n);return ki(r,0,ie(r,ve(t))+1).join("")},He.trimStart=function(n,t,e){if((n=ma(n))&&(e||t===i))return n.replace(an,"");if(!n||!(t=li(t)))return n;var r=ve(n);return ki(r,re(r,ve(t))).join("")},He.truncate=function(n,t){var e=30,r="...";if(ta(t)){var o="separator"in t?t.separator:o;e="length"in t?va(t.length):e,r="omission"in t?li(t.omission):r}var u=(n=ma(n)).length;if(ce(n)){var a=ve(n);u=a.length}if(e>=u)return n;var c=e-de(r);if(c<1)return r;var s=a?ki(a,0,c).join(""):n.slice(0,c);if(o===i)return s+r;if(a&&(c+=s.length-c),ua(o)){if(n.slice(c).search(o)){var l,f=s;for(o.global||(o=Rn(o.source,ma(yn.exec(o))+"g")),o.lastIndex=0;l=o.exec(f);)var h=l.index;s=s.slice(0,h===i?c:h)}}else if(n.indexOf(li(o),c)!=c){var p=s.lastIndexOf(o);p>-1&&(s=s.slice(0,p))}return s+r},He.unescape=function(n){return(n=ma(n))&&X.test(n)?n.replace(q,ge):n},He.uniqueId=function(n){var t=++Bn;return ma(n)+t},He.upperCase=Xa,He.upperFirst=Za,He.each=mu,He.eachRight=bu,He.first=Ko,cc(He,(kc={},wr(He,(function(n,t){Dn.call(He.prototype,t)||(kc[t]=n)})),kc),{chain:!1}),He.VERSION="4.17.23",Ct(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(n){He[n].placeholder=He})),Ct(["drop","take"],(function(n,t){Ve.prototype[n]=function(e){e=e===i?1:me(va(e),0);var r=this.__filtered__&&!t?new Ve(this):this.clone();return r.__filtered__?r.__takeCount__=be(e,r.__takeCount__):r.__views__.push({size:be(e,y),type:n+(r.__dir__<0?"Right":"")}),r},Ve.prototype[n+"Right"]=function(t){return this.reverse()[n](t).reverse()}})),Ct(["filter","map","takeWhile"],(function(n,t){var e=t+1,r=1==e||3==e;Ve.prototype[n]=function(n){var t=this.clone();return t.__iteratees__.push({iteratee:so(n,3),type:e}),t.__filtered__=t.__filtered__||r,t}})),Ct(["head","last"],(function(n,t){var e="take"+(t?"Right":"");Ve.prototype[n]=function(){return this[e](1).value()[0]}})),Ct(["initial","tail"],(function(n,t){var e="drop"+(t?"":"Right");Ve.prototype[n]=function(){return this.__filtered__?new Ve(this):this[e](1)}})),Ve.prototype.compact=function(){return this.filter(ic)},Ve.prototype.find=function(n){return this.filter(n).head()},Ve.prototype.findLast=function(n){return this.reverse().find(n)},Ve.prototype.invokeMap=Zr((function(n,t){return"function"==typeof n?new Ve(this):this.map((function(e){return Sr(e,n,t)}))})),Ve.prototype.reject=function(n){return this.filter(Wu(so(n)))},Ve.prototype.slice=function(n,t){n=va(n);var e=this;return e.__filtered__&&(n>0||t<0)?new Ve(e):(n<0?e=e.takeRight(-n):n&&(e=e.drop(n)),t!==i&&(e=(t=va(t))<0?e.dropRight(-t):e.take(t-n)),e)},Ve.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},Ve.prototype.toArray=function(){return this.take(y)},wr(Ve.prototype,(function(n,t){var e=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),o=He[r?"take"+("last"==t?"Right":""):t],u=r||/^find/.test(t);o&&(He.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Ve,s=a[0],l=c||Vu(t),f=function(n){var t=o.apply(He,Dt([n],a));return r&&h?t[0]:t};l&&e&&"function"==typeof s&&1!=s.length&&(c=l=!1);var h=this.__chain__,p=!!this.__actions__.length,d=u&&!h,v=c&&!p;if(!u&&l){t=v?t:new Ve(this);var y=n.apply(t,a);return y.__actions__.push({func:du,args:[f],thisArg:i}),new Me(y,h)}return d&&v?n.apply(this,a):(y=this.thru(f),d?r?y.value()[0]:y.value():y)})})),Ct(["pop","push","shift","sort","splice","unshift"],(function(n){var t=Nn[n],e=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",r=/^(?:pop|shift)$/.test(n);He.prototype[n]=function(){var n=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(Vu(i)?i:[],n)}return this[e]((function(e){return t.apply(Vu(e)?e:[],n)}))}})),wr(Ve.prototype,(function(n,t){var e=He[t];if(e){var r=e.name+"";Dn.call(Ne,r)||(Ne[r]=[]),Ne[r].push({name:t,func:e})}})),Ne[Hi(i,2).name]=[{name:"wrapper",func:i}],Ve.prototype.clone=function(){var n=new Ve(this.__wrapped__);return n.__actions__=Ci(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=Ci(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=Ci(this.__views__),n},Ve.prototype.reverse=function(){if(this.__filtered__){var n=new Ve(this);n.__dir__=-1,n.__filtered__=!0}else(n=this.clone()).__dir__*=-1;return n},Ve.prototype.value=function(){var n=this.__wrapped__.value(),t=this.__dir__,e=Vu(n),r=t<0,i=e?n.length:0,o=function(n,t,e){var r=-1,i=e.length;for(;++r<i;){var o=e[r],u=o.size;switch(o.type){case"drop":n+=u;break;case"dropRight":t-=u;break;case"take":t=be(t,n+u);break;case"takeRight":n=me(n,t-u)}}return{start:n,end:t}}(0,i,this.__views__),u=o.start,a=o.end,c=a-u,s=r?a:u-1,l=this.__iteratees__,f=l.length,h=0,p=be(c,this.__takeCount__);if(!e||!r&&i==c&&p==c)return vi(n,this.__actions__);var d=[];n:for(;c--&&h<p;){for(var v=-1,y=n[s+=t];++v<f;){var g=l[v],_=g.iteratee,m=g.type,b=_(y);if(2==m)y=b;else if(!b){if(1==m)continue n;break n}}d[h++]=y}return d},He.prototype.at=vu,He.prototype.chain=function(){return pu(this)},He.prototype.commit=function(){return new Me(this.value(),this.__chain__)},He.prototype.next=function(){this.__values__===i&&(this.__values__=pa(this.value()));var n=this.__index__>=this.__values__.length;return{done:n,value:n?i:this.__values__[this.__index__++]}},He.prototype.plant=function(n){for(var t,e=this;e instanceof ze;){var r=Fo(e);r.__index__=0,r.__values__=i,t?o.__wrapped__=r:t=r;var o=r;e=e.__wrapped__}return o.__wrapped__=n,t},He.prototype.reverse=function(){var n=this.__wrapped__;if(n instanceof Ve){var t=n;return this.__actions__.length&&(t=new Ve(this)),(t=t.reverse()).__actions__.push({func:du,args:[tu],thisArg:i}),new Me(t,this.__chain__)}return this.thru(tu)},He.prototype.toJSON=He.prototype.valueOf=He.prototype.value=function(){return vi(this.__wrapped__,this.__actions__)},He.prototype.first=He.prototype.head,Qn&&(He.prototype[Qn]=function(){return this}),He}();yt._=_e,(r=function(){return _e}.call(t,e,t,n))===i||(n.exports=r)}.call(this)}},t={};function e(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={id:r,loaded:!1,exports:{}};return n[r].call(o.exports,o,o.exports,e),o.loaded=!0,o.exports}e.d=(n,t)=>{for(var r in t)e.o(t,r)&&!e.o(n,r)&&Object.defineProperty(n,r,{enumerable:!0,get:t[r]})},e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(n){if("object"==typeof window)return window}}(),e.o=(n,t)=>Object.prototype.hasOwnProperty.call(n,t),e.r=n=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(n,"__esModule",{value:!0})},e.nmd=n=>(n.paths=[],n.children||(n.children=[]),n);var r={};(()=>{"use strict";function n(n,t,e){if("string"==typeof n)throw new Error(`An HTML element ("${String(n)}") was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.`);if(!n)throw new Error("A JSX fragment was used in a Snap component, which is not supported by Snaps UI. Please use one of the supported Snap components.");return n({...t,key:e})}function t(t,e,r){return n(t,e,r)}function i(n){return Object.fromEntries(Object.entries(n).filter((([,n])=>void 0!==n)))}function o(n){return t=>{const{key:e=null,...r}=t;return{type:n,props:i(r),key:e}}}e.r(r),e.d(r,{onRpcRequest:()=>$t,onTransaction:()=>Ft});const u=o("Box"),a=o("Heading"),c=o("Divider"),s=o("Row"),l=o("Text"),f=o("Bold"),h=o("Link"),p="plain",d={formal:{warningHeadline:"This token may be unsafe. Here's why.",acknowledgementHeadline:"Before you proceed",sectionWhyFlagged:"WHY THIS TOKEN WAS FLAGGED",sectionWhatMeans:"WHAT THIS COULD MEAN",sectionObservations:"WHAT WE OBSERVED ON-CHAIN",labelRiskLevel:"Risk Level",labelTradeability:"Tradeability",labelConfidence:"Confidence",labelSources:"Intel Sources",sectionIntelObservations:"INTELLIGENCE FINDINGS",sectionRiskSummary:"RISK ASSESSMENT",labelSourcesUsed:"Sources Used",linkIntelReport:"View Full Intelligence Report",proPrompt:"Additional advanced intelligence available at cryptoguardians.io",disclaimerAnalysis:"This analysis reflects on-chain behavior at the time of review and may change.",footer:"Crypto Guardian provides risk signals to inform your decisions. It does not control your wallet or transactions.",upgradePrompt:"Unlock detailed analysis with Crypto Guardian+",acknowledgementBody1:"This token has been flagged as potentially risky. Our analysis is informational and does not guarantee outcomes.",acknowledgementBody2:"You are choosing to proceed with full awareness of the signals shown."},plain:{warningHeadline:"Heads up — we found some concerns.",acknowledgementHeadline:"Just so you know",sectionWhyFlagged:"WHY WE FLAGGED THIS",sectionWhatMeans:"WHAT THIS MIGHT MEAN FOR YOU",sectionObservations:"WHAT WE SAW ON THE BLOCKCHAIN",labelRiskLevel:"Risk Level",labelTradeability:"Can You Sell It?",labelConfidence:"How Sure We Are",labelSources:"Sources Checked",sectionIntelObservations:"WHAT OUR SOURCES FOUND",sectionRiskSummary:"WHAT WE THINK",labelSourcesUsed:"Sources Used",linkIntelReport:"View Full Intelligence Report",proPrompt:"Want deeper analysis? Visit cryptoguardians.io",disclaimerAnalysis:"This is based on what we can see right now. Things can change later.",footer:"Crypto Guardian shares what we find to help you decide. You're always in control of your wallet.",upgradePrompt:"Want the full picture? Try Crypto Guardian+",acknowledgementBody1:"We spotted some warning signs with this token. This info is meant to help you decide — it can't predict what will happen.",acknowledgementBody2:"If you continue, you're doing so knowing what we found."}},v={formal:{reasons:{VERIFIED:"Our analysis simulated a transfer from this token's contract. The simulation completed without errors.",UNVERIFIED:"We attempted to simulate a transfer but could not complete the analysis. This may be due to network conditions or contract complexity.",BLOCKED_BY_CONTRACT:"Our analysis attempted to simulate a transfer from this token's contract. The simulation was rejected."},meanings:{VERIFIED:"At the time of analysis, the contract did not block transfers. This does not guarantee future behavior or rule out other risks.",UNVERIFIED:"We cannot confirm whether this token can be sold. Proceed with caution if you choose to continue.",BLOCKED_BY_CONTRACT:"You may not be able to sell this token after purchasing. This pattern is sometimes associated with honeypot contracts."},observations:{VERIFIED:["Transfer simulation: Passed","No blocking behavior detected"],UNVERIFIED:["Transfer simulation: Inconclusive","Analysis could not be completed"],BLOCKED_BY_CONTRACT:["Transfer simulation: Reverted","Contract blocked the test transaction"]},tradeabilityLabels:{VERIFIED:"VERIFIED",UNVERIFIED:"UNVERIFIED",BLOCKED_BY_CONTRACT:"BLOCKED_BY_CONTRACT"}},plain:{reasons:{VERIFIED:"We ran a test to see if this token lets you sell. The test worked without any problems.",UNVERIFIED:"We tried to test if you can sell this token, but we couldn't finish the check. This might be a network issue or something unusual about the token.",BLOCKED_BY_CONTRACT:"We tried to test if you can sell this token. The token's code stopped our test from working."},meanings:{VERIFIED:"When we checked, the token didn't block sales. But this could change, and there might be other things to watch out for.",UNVERIFIED:"We can't say for sure if you'll be able to sell this token. If you go ahead, be extra careful.",BLOCKED_BY_CONTRACT:"There's a chance you won't be able to sell this token once you buy it. This is sometimes a sign of a high-risk token (called a \"honeypot\")."},observations:{VERIFIED:["Sale test: Passed","No red flags found"],UNVERIFIED:["Sale test: Unclear","We couldn't finish checking"],BLOCKED_BY_CONTRACT:["Sale test: Blocked","The token stopped our test"]},tradeabilityLabels:{VERIFIED:"Looks OK",UNVERIFIED:"Not Sure",BLOCKED_BY_CONTRACT:"Blocked"}}};function y(){return d[p]}function g(){return v[p]}const _="https://cryptoguardians.io",m=`${_}/api/scan`,b=`${_}/api/tx/simulate`;const w={HONEYPOT_RISK:{formal:"Honeypot risk detected in contract",plain:"This token may trap your funds"},HIGH_TAX:{formal:"Abnormally high transaction tax detected",plain:"Very high fees when buying/selling"},PROXY_CONTRACT:{formal:"Contract uses upgradeable proxy pattern",plain:"Contract code can be changed by owner"},UNVERIFIED_SOURCE:{formal:"Contract source code is not verified",plain:"Contract code is hidden — can't be reviewed"},OWNERSHIP_NOT_RENOUNCED:{formal:"Contract ownership not renounced",plain:"Someone still controls this contract"},LOW_LIQUIDITY:{formal:"Low liquidity pool depth",plain:"Very little money backing this token"},VERY_LOW_LIQUIDITY:{formal:"Critically low liquidity",plain:"Almost no money backing this token"},MINT_AUTHORITY_PRESENT:{formal:"Mint authority retained — supply can increase",plain:"Owner can create more tokens anytime"},FREEZE_AUTHORITY_PRESENT:{formal:"Freeze authority present — accounts can be frozen",plain:"Owner can freeze your tokens"},HIGH_HOLDER_CONCENTRATION:{formal:"Top holders control large supply percentage",plain:"A few wallets hold most of the supply"},EXTREME_HOLDER_CONCENTRATION:{formal:"Extreme holder concentration detected",plain:"A tiny number of wallets control most tokens"},CREATOR_IS_NEW_WALLET:{formal:"Creator wallet has no prior history",plain:"Created by a brand-new wallet"},LP_NOT_LOCKED:{formal:"Liquidity pool is not locked",plain:"Liquidity can be pulled at any time"},RUGCHECK_HIGH_RISK:{formal:"RugCheck: High rugpull risk score",plain:"High risk of being a rug pull"},VERY_FEW_HOLDERS:{formal:"Token has very few holders",plain:"Almost nobody holds this token"},TOKEN_2022:{formal:"Token uses Token-2022 program extensions",plain:"Token uses newer program with extra features"}};function k(n){const t=n.riskFlags.length+n.harmIndicators.length;return"DANGEROUS"===n.recommendation||n.riskScore>=70?`This token shows multiple warning signs${t>0?` including ${t} risk indicators`:""}. Be very careful.`:"CAUTION"===n.recommendation||n.riskScore>=30?`This token has some risk indicators${t>0?` (${t} found)`:""}. Review carefully before interacting.`:"No major risk indicators detected based on available intelligence sources."}function I(n){const t=n.confidenceScore,e=n.sourcesAvailable;return`Confidence: ${t}% based on ${e} intelligence source${1!==e?"s":""}.`}const E={HIGH:{title:"Transaction Risk Detected",summary:"This transaction may put your funds at risk.",recommendation:"Review this transaction carefully before proceeding."},MEDIUM:{title:"Risk Signals Detected",summary:"This transaction shows some risk signals.",recommendation:"Proceed carefully."},LOW:{title:"No Significant Risk Detected",summary:"No major risks were detected.",recommendation:"Confirm this matches what you expect before continuing."},UNKNOWN:{title:"Limited Data Available",summary:"Not enough information to assess this transaction.",recommendation:"Use extra caution before proceeding."}};function O(n){const t=E[n.riskLevel];if(!t)return n;const e=/^no significant risk/i.test(n.title),r=/^(transaction risk|elevated risk)/i.test(n.title),i="LOW"===n.riskLevel,o="HIGH"===n.riskLevel;return i&&r||o&&e||"MEDIUM"===n.riskLevel&&(e||r)||"UNKNOWN"===n.riskLevel?{...n,title:t.title,summary:t.summary,recommendation:t.recommendation}:n}async function x(n){try{const t=new AbortController,e=setTimeout((()=>t.abort()),2e3),r=await fetch(b,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({chainId:n.chainId||"eth",from:n.from,to:n.to,data:n.data||"0x",value:n.value||"0x0"}),signal:t.signal});if(clearTimeout(e),!r.ok)return null;const i=await r.json();if(!i.ok||!i.message)return null;const o=i.message,u=function(n){switch(n){case"HIGH":return"HIGH";case"MEDIUM":return"MEDIUM";case"LOW":case"INFO":return"LOW";default:return"UNKNOWN"}}(o.severity);return{message:O({riskLevel:u,title:o.title,summary:o.summary,details:o.details,recommendation:o.recommendation}),reportUrl:i.report?.url??null}}catch{return null}}class A extends TypeError{constructor(n,t){let e;const{message:r,explanation:i,...o}=n,{path:u}=n,a=0===u.length?r:`At path: ${u.join(".")} -- ${r}`;super(i??a),null!=i&&(this.cause=a),Object.assign(this,o),this.name=this.constructor.name,this.failures=()=>e??(e=[n,...t()])}}function T(n){return"object"==typeof n&&null!==n}function R(n){return"symbol"==typeof n?n.toString():"string"==typeof n?JSON.stringify(n):`${n}`}function C(n,t,e,r){if(!0===n)return;!1===n?n={}:"string"==typeof n&&(n={message:n});const{path:i,branch:o}=t,{type:u}=e,{refinement:a,message:c=`Expected a value of type \`${u}\`${a?` with refinement \`${a}\``:""}, but received: \`${R(r)}\``}=n;return{value:r,type:u,refinement:a,key:i[i.length-1],path:i,branch:o,...n,message:c}}function*S(n,t,e,r){(function(n){return T(n)&&"function"==typeof n[Symbol.iterator]})(n)||(n=[n]);for(const i of n){const n=C(i,t,e,r);n&&(yield n)}}function*N(n,t,e={}){const{path:r=[],branch:i=[n],coerce:o=!1,mask:u=!1}=e,a={path:r,branch:i};if(o&&(n=t.coercer(n,a),u&&"type"!==t.type&&T(t.schema)&&T(n)&&!Array.isArray(n)))for(const e in n)void 0===t.schema[e]&&delete n[e];let c="valid";for(const r of t.validator(n,a))r.explanation=e.message,c="not_valid",yield[r,void 0];for(let[s,l,f]of t.entries(n,a)){const t=N(l,f,{path:void 0===s?r:[...r,s],branch:void 0===s?i:[...i,l],coerce:o,mask:u,message:e.message});for(const e of t)e[0]?(c=null===e[0].refinement||void 0===e[0].refinement?"not_valid":"not_refined",yield[e[0],void 0]):o&&(l=e[1],void 0===s?n=l:n instanceof Map?n.set(s,l):n instanceof Set?n.add(l):T(n)&&(void 0!==l||s in n)&&(n[s]=l))}if("not_valid"!==c)for(const r of t.refiner(n,a))r.explanation=e.message,c="not_refined",yield[r,void 0];"valid"===c&&(yield[void 0,n])}class L{constructor(n){const{type:t,schema:e,validator:r,refiner:i,coercer:o=n=>n,entries:u=function*(){}}=n;this.type=t,this.schema=e,this.entries=u,this.coercer=o,this.validator=r?(n,t)=>S(r(n,t),t,this,n):()=>[],this.refiner=i?(n,t)=>S(i(n,t),t,this,n):()=>[]}assert(n,t){return W(n,this,t)}create(n,t){return function(n,t,e){const r=D(n,t,{coerce:!0,message:e});if(r[0])throw r[0];return r[1]}(n,this,t)}is(n){return function(n,t){const e=D(n,t);return!e[0]}(n,this)}mask(n,t){return function(n,t,e){const r=D(n,t,{coerce:!0,mask:!0,message:e});if(r[0])throw r[0];return r[1]}(n,this,t)}validate(n,t={}){return D(n,this,t)}}const j="EXACT_OPTIONAL";class U extends L{constructor(n){super({...n,type:`exact optional ${n.type}`}),this.brand=j}static isExactOptional(n){return T(n)&&"brand"in n&&n.brand===j}}function W(n,t,e){const r=D(n,t,{message:e});if(r[0])throw r[0]}function D(n,t,e={}){const r=N(n,t,e),i=function(n){const{done:t,value:e}=n.next();return t?void 0:e}(r);if(i[0]){return[new A(i[0],(function*(){for(const n of r)n[0]&&(yield n[0])})),void 0]}return[void 0,i[1]]}function B(n){return new L({type:"array",schema:n,*entries(t){if(n&&Array.isArray(t))for(const[e,r]of t.entries())yield[e,r,n]},coercer:n=>Array.isArray(n)?n.slice():n,validator:n=>Array.isArray(n)||`Expected an array value, but received: ${R(n)}`})}function $(){return G("boolean",(n=>"boolean"==typeof n))}function F(){return G("never",(()=>!1))}function H(n){const t=n?Object.keys(n):[],e=F();return new L({type:"object",schema:n??null,*entries(r){if(n&&T(r)){const i=new Set(Object.keys(r));for(const e of t){i.delete(e);const t=n[e];U.isExactOptional(t)&&!Object.prototype.hasOwnProperty.call(r,e)||(yield[e,r[e],n[e]])}for(const n of i)yield[n,r[n],e]}},validator:n=>T(n)||`Expected an object, but received: ${R(n)}`,coercer:n=>T(n)?{...n}:n})}function P(n){return new L({...n,validator:(t,e)=>void 0===t||n.validator(t,e),refiner:(t,e)=>void 0===t||n.refiner(t,e)})}function z(){return G("string",(n=>"string"==typeof n||`Expected a string, but received: ${R(n)}`))}function M(n){const t=n.map((n=>n.type)).join(" | ");return new L({type:"union",schema:null,coercer(t){for(const e of n){const[n,r]=e.validate(t,{coerce:!0});if(!n)return r}return t},validator(e,r){const i=[];for(const t of n){const[...n]=N(e,t,r),[o]=n;if(!o?.[0])return[];for(const[t]of n)t&&i.push(t)}return[`Expected the value to satisfy a union of \`${t}\`, but received: ${R(e)}`,...i]}})}function V(...n){const t="type"===n[0]?.type,e=n.map((({schema:n})=>n)),r=Object.assign({},...e);return t?function(n){const t=Object.keys(n);return new L({type:"type",schema:n,*entries(e){if(T(e))for(const r of t)yield[r,e[r],n[r]]},validator:n=>T(n)||`Expected an object, but received: ${R(n)}`,coercer:n=>T(n)?{...n}:n})}(r):H(r)}function G(n,t){return new L({type:n,schema:null,validator:t})}function K(n,t){return q(n,"pattern",(e=>t.test(e)||`Expected a ${n.type} matching \`/${t.source}/\` but received "${e}"`))}function q(n,t,e){return new L({...n,*refiner(r,i){yield*n.refiner(r,i);const o=S(e(r,i),i,n,r);for(const n of o)yield{...n,refinement:t}}})}const Y=BigInt(2**32-1),X=BigInt(32);function Z(n,t=!1){return t?{h:Number(n&Y),l:Number(n>>X&Y)}:{h:0|Number(n>>X&Y),l:0|Number(n&Y)}}function J(n,t=!1){const e=n.length;let r=new Uint32Array(e),i=new Uint32Array(e);for(let o=0;o<e;o++){const{h:e,l:u}=Z(n[o],t);[r[o],i[o]]=[e,u]}return[r,i]}const Q=(n,t,e)=>n<<e|t>>>32-e,nn=(n,t,e)=>t<<e|n>>>32-e,tn=(n,t,e)=>t<<e-32|n>>>64-e,en=(n,t,e)=>n<<e-32|t>>>64-e;function rn(n){if(!Number.isSafeInteger(n)||n<0)throw new Error("positive integer expected, got "+n)}function on(n,...t){if(!((e=n)instanceof Uint8Array||ArrayBuffer.isView(e)&&"Uint8Array"===e.constructor.name))throw new Error("Uint8Array expected");var e;if(t.length>0&&!t.includes(n.length))throw new Error("Uint8Array expected of length "+t+", got length="+n.length)}function un(n,t=!0){if(n.destroyed)throw new Error("Hash instance has been destroyed");if(t&&n.finished)throw new Error("Hash#digest() has already been called")}function an(...n){for(let t=0;t<n.length;t++)n[t].fill(0)}const cn=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];function sn(n){return n<<24&4278190080|n<<8&16711680|n>>>8&65280|n>>>24&255}const ln=cn?n=>n:function(n){for(let t=0;t<n.length;t++)n[t]=sn(n[t]);return n};Array.from({length:256},((n,t)=>t.toString(16).padStart(2,"0")));function fn(n){if("string"!=typeof n)throw new Error("string expected");return new Uint8Array((new TextEncoder).encode(n))}function hn(n){return"string"==typeof n&&(n=fn(n)),on(n),n}class pn{}function dn(n){const t=t=>n().update(hn(t)).digest(),e=n();return t.outputLen=e.outputLen,t.blockLen=e.blockLen,t.create=()=>n(),t}const vn=BigInt(0),yn=BigInt(1),gn=BigInt(2),_n=BigInt(7),mn=BigInt(256),bn=BigInt(113),wn=[],kn=[],In=[];for(let n=0,t=yn,e=1,r=0;n<24;n++){[e,r]=[r,(2*e+3*r)%5],wn.push(2*(5*r+e)),kn.push((n+1)*(n+2)/2%64);let i=vn;for(let n=0;n<7;n++)t=(t<<yn^(t>>_n)*bn)%mn,t&gn&&(i^=yn<<(yn<<BigInt(n))-yn);In.push(i)}const En=J(In,!0),On=En[0],xn=En[1],An=(n,t,e)=>e>32?tn(n,t,e):Q(n,t,e),Tn=(n,t,e)=>e>32?en(n,t,e):nn(n,t,e);class Rn extends pn{constructor(n,t,e,r=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=n,this.suffix=t,this.outputLen=e,this.enableXOF=r,this.rounds=i,rn(e),!(0<n&&n<200))throw new Error("only keccak-f1600 function is supported");var o;this.state=new Uint8Array(200),this.state32=(o=this.state,new Uint32Array(o.buffer,o.byteOffset,Math.floor(o.byteLength/4)))}clone(){return this._cloneInto()}keccak(){ln(this.state32),function(n,t=24){const e=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)e[t]=n[t]^n[t+10]^n[t+20]^n[t+30]^n[t+40];for(let t=0;t<10;t+=2){const r=(t+8)%10,i=(t+2)%10,o=e[i],u=e[i+1],a=An(o,u,1)^e[r],c=Tn(o,u,1)^e[r+1];for(let e=0;e<50;e+=10)n[t+e]^=a,n[t+e+1]^=c}let t=n[2],i=n[3];for(let e=0;e<24;e++){const r=kn[e],o=An(t,i,r),u=Tn(t,i,r),a=wn[e];t=n[a],i=n[a+1],n[a]=o,n[a+1]=u}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)e[r]=n[t+r];for(let r=0;r<10;r++)n[t+r]^=~e[(r+2)%10]&e[(r+4)%10]}n[0]^=On[r],n[1]^=xn[r]}an(e)}(this.state32,this.rounds),ln(this.state32),this.posOut=0,this.pos=0}update(n){un(this),on(n=hn(n));const{blockLen:t,state:e}=this,r=n.length;for(let i=0;i<r;){const o=Math.min(t-this.pos,r-i);for(let t=0;t<o;t++)e[this.pos++]^=n[i++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:n,suffix:t,pos:e,blockLen:r}=this;n[e]^=t,128&t&&e===r-1&&this.keccak(),n[r-1]^=128,this.keccak()}writeInto(n){un(this,!1),on(n),this.finish();const t=this.state,{blockLen:e}=this;for(let r=0,i=n.length;r<i;){this.posOut>=e&&this.keccak();const o=Math.min(e-this.posOut,i-r);n.set(t.subarray(this.posOut,this.posOut+o),r),this.posOut+=o,r+=o}return n}xofInto(n){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(n)}xof(n){return rn(n),this.xofInto(new Uint8Array(n))}digestInto(n){if(function(n,t){on(n);const e=t.outputLen;if(n.length<e)throw new Error("digestInto() expects output buffer of length at least "+e)}(n,this),this.finished)throw new Error("digest() was already called");return this.writeInto(n),this.destroy(),n}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,an(this.state)}_cloneInto(n){const{blockLen:t,suffix:e,outputLen:r,rounds:i,enableXOF:o}=this;return n||(n=new Rn(t,e,r,o,i)),n.state32.set(this.state32),n.pos=this.pos,n.posOut=this.posOut,n.finished=this.finished,n.rounds=i,n.suffix=e,n.outputLen=r,n.enableXOF=o,n.destroyed=this.destroyed,n}}const Cn=(n,t,e)=>dn((()=>new Rn(t,n,e))),Sn=Cn(1,136,32);var Nn=e(250);Error;function Ln(n){return Boolean(n)&&"object"==typeof n&&!Array.isArray(n)}const jn=(n,t)=>Object.hasOwnProperty.call(n,t);var Un;!function(n){n[n.Null=4]="Null",n[n.Comma=1]="Comma",n[n.Wrapper=1]="Wrapper",n[n.True=4]="True",n[n.False=5]="False",n[n.Quote=1]="Quote",n[n.Colon=1]="Colon",n[n.Date=24]="Date"}(Un=Un||(Un={}));function Wn(n){return function(n){return function(n){return"object"==typeof n&&null!==n&&"message"in n}(n)&&"string"==typeof n.message?n.message:null==n?"":String(n)}(n).replace(/\.$/u,"")}function Dn(n,t){return e=n,Boolean("string"==typeof e?.prototype?.constructor?.name)?new n({message:t}):n({message:t});var e}class Bn extends Error{constructor(n){super(n.message),this.code="ERR_ASSERTION"}}function $n(n,t,e="Assertion failed",r=Bn){try{W(n,t)}catch(n){throw Dn(r,`${e}: ${Wn(n)}.`)}}const{memoize:Fn}=Nn,Hn=/^(?:0x)?[0-9a-f]+$/iu,Pn=/^0x[0-9a-f]+$/iu,zn=/^0x[0-9a-f]{40}$/u,Mn=/^0x[0-9a-fA-F]{40}$/u,Vn=(K(z(),Hn),K(z(),Pn),K(z(),zn),K(z(),Mn)),Gn=n=>"string"==typeof n;function Kn(n){return Gn(n)&&Mn.test(n)}const qn=Fn((function(n){!function(n,t="Assertion failed.",e=Bn){if(!n){if(t instanceof Error)throw t;throw Dn(e,t)}}(Kn(n),"Invalid hex address.");const t=function(n){if(n.startsWith("0x")||n.startsWith("0X"))return n.substring(2);return n}(n).toLowerCase(),e=Sn(t),{length:r}=t,i=new Array(r);for(let n=0;n<r;n++){const r=1&n,o=e[n>>1],u=0===r?o>>4:15&o;i[n]=u>=8?t[n].toUpperCase():t[n]}return`0x${i.join("")}`}));const Yn=Fn((function(n){return!!Kn(n)&&qn(n)===n}));Fn((function(n){return Gn(t=n)&&zn.test(t)||Yn(n);var t}));function Xn(n){return G(JSON.stringify(n),function(n){const t=R(n),e=typeof n;return new L({type:"literal",schema:"string"===e||"number"===e||"boolean"===e?n:null,validator:e=>e===n||`Expected the literal \`${t}\`, but received: ${R(e)}`})}(n).validator)}function Zn(n){return Xn(n)}function Jn(n,t,e=[]){return(...r)=>{if(1===r.length&&function(n){if("object"!=typeof n||null===n)return!1;try{let t=n;for(;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(n)===t}catch(n){return!1}}(r[0])){const e={...r[0],type:n};return $n(e,t,`Invalid ${n} component`),e}const i=e.reduce(((n,t,e)=>void 0!==r[e]?{...n,[t]:r[e]}:n),{type:n});return $n(i,t,`Invalid ${n} component`),i}}var Qn;!function(n){n.Copyable="copyable",n.Divider="divider",n.Heading="heading",n.Panel="panel",n.Spinner="spinner",n.Text="text",n.Image="image",n.Row="row",n.Address="address",n.Button="button",n.Input="input",n.Form="form"}(Qn||(Qn={}));const nt=H({type:z()}),tt=V(nt,H({value:G("unknown",(()=>!0))})),et=V(tt,H({type:Xn(Qn.Address),value:Vn}));Jn(Qn.Address,et,["value"]);var rt,it;!function(n){n.Primary="primary",n.Secondary="secondary"}(rt||(rt={})),function(n){n.Button="button",n.Submit="submit"}(it||(it={}));const ot=V(tt,H({type:Xn(Qn.Button),value:z(),variant:P(M([Zn(rt.Primary),Zn(rt.Secondary)])),buttonType:P(M([Zn(it.Button),Zn(it.Submit)])),name:P(z())})),ut=(Jn(Qn.Button,ot,["value","buttonType","name","variant"]),V(tt,H({type:Xn(Qn.Copyable),value:z(),sensitive:P($())}))),at=(Jn(Qn.Copyable,ut,["value","sensitive"]),V(nt,H({type:Xn(Qn.Divider)}))),ct=Jn(Qn.Divider,at);var st;!function(n){n.Text="text",n.Number="number",n.Password="password"}(st||(st={}));const lt=V(tt,H({type:Xn(Qn.Input),value:P(z()),name:z(),inputType:P(M([Zn(st.Text),Zn(st.Password),Zn(st.Number)])),placeholder:P(z()),label:P(z()),error:P(z())})),ft=(Jn(Qn.Input,lt,["name","inputType","placeholder","value","label"]),M([lt,ot])),ht=V(nt,H({type:Xn(Qn.Form),children:B(ft),name:z()})),pt=(Jn(Qn.Form,ht,["name","children"]),V(tt,H({type:Xn(Qn.Heading),value:z()}))),dt=Jn(Qn.Heading,pt,["value"]);const vt=V(nt,H({type:Xn(Qn.Image),value:q(z(),"SVG",(n=>!!n.includes("<svg")||"Value is not a valid SVG."))})),yt=(Jn(Qn.Image,vt,["value"]),V(tt,H({type:Xn(Qn.Text),value:z(),markdown:P($())}))),gt=Jn(Qn.Text,yt,["value","markdown"]);var _t;!function(n){n.Default="default",n.Critical="critical",n.Warning="warning"}(_t||(_t={}));const mt=M([vt,yt,et]),bt=V(tt,H({type:Xn(Qn.Row),variant:P(M([Zn(_t.Default),Zn(_t.Critical),Zn(_t.Warning)])),label:z(),value:mt})),wt=(Jn(Qn.Row,bt,["label","value","variant"]),V(nt,H({type:Xn(Qn.Spinner)}))),kt=(Jn(Qn.Spinner,wt),V(nt,H({children:B(function(n){let t;return new L({type:"lazy",schema:null,*entries(e,r){t??(t=n()),yield*t.entries(e,r)},validator:(e,r)=>(t??(t=n()),t.validator(e,r)),coercer:(e,r)=>(t??(t=n()),t.coercer(e,r)),refiner:(e,r)=>(t??(t=n()),t.refiner(e,r))})}((()=>Ot)))}))),It=V(kt,H({type:Xn(Qn.Panel)})),Et=Jn(Qn.Panel,It,["children"]),Ot=function(n){const t=n.map((n=>"union"===n.type&&Array.isArray(n.schema)?n.schema:n)).flat(1/0),e=t.map((({schema:n})=>n.type.type)),r=t.reduce(((n,t)=>(n[JSON.parse(t.schema.type.type)]=t,n)),{});return new L({type:"union",schema:t,*entries(n,t){if(!Ln(n)||!jn(n,"type")||"string"!=typeof n.type)return;const{type:e}=n,i=r[e];if(i)for(const e of i.entries(n,t))yield e},coercer(n,t){if(!Ln(n)||!jn(n,"type")||"string"!=typeof n.type)return n;const{type:e}=n,i=r[e];return i?i.coercer(n,t):n},*refiner(n,t){const e=r[n.type];yield*e.refiner(n,t)},validator(n,t){if(!Ln(n)||!jn(n,"type")||"string"!=typeof n.type)return`Expected type to be one of: ${e.join(", ")}, but received: undefined`;const{type:i}=n,o=r[i];return o?o.validator(n,t):`Expected type to be one of: ${e.join(", ")}, but received: "${i}"`}})}([ut,at,pt,vt,It,wt,yt,bt,et,lt,ht,ot]);function xt(n){return n.replace(/\bThe contract\b/gi,"This token").replace(/\bthe contract\b/gi,"this token")}function At(n,t){const e=n.riskLevel,r=function(n){const t=n.find((n=>n.startsWith("Token:")||n.startsWith("Token Involved:")));if(!t)return null;const e=t.match(/^Token(?:\s+Involved)?:\s*(.+?\([A-Z0-9]+\))/);return e?`Token Involved: ${e[1]}`:null}(n.details);if(!e||"UNKNOWN"===e)return Et([dt("Limited Data Available"),ct(),gt("Not enough information to assess this transaction."),ct(),gt("**Use extra caution before proceeding.**"),ct(),gt("CryptoGuardians provides risk signals to help you decide. You are always in control.")]);const i=[];i.push(dt(n.title)),i.push(ct()),"HIGH"===e?i.push(gt("**🔴 High Risk**")):"MEDIUM"===e&&i.push(gt("**⚠ Elevated**")),i.push(gt(n.summary)),i.push(ct()),r&&i.push(gt(`• ${r}`));const o=n.details.filter((n=>!n.startsWith("Token:")&&!n.startsWith("Token Involved:"))).slice(0,2);for(const n of o)i.push(gt(`• ${xt(n)}`));return i.push(ct()),i.push(gt(`**${n.recommendation}**`)),t&&(i.push(ct()),i.push(gt(`[View Full Analysis →](${t})`))),i.push(ct()),i.push(gt("CryptoGuardians provides risk signals to help you decide. You are always in control.")),Et(i)}function Tt(){return Et([dt("Limited Data Available"),ct(),gt("Not enough information to assess this transaction."),ct(),gt("**Use extra caution before proceeding.**"),ct(),gt("CryptoGuardians provides risk signals to help you decide. You are always in control.")])}function Rt(n){switch(n){case"LOW":return"LOW";case"HIGH":return"HIGH";case"CRITICAL":return"CRITICAL";default:return"UNKNOWN"}}function Ct(n){return g().tradeabilityLabels[n]}function St(n){switch(n){case"LOW":return"LOW";case"CRITICAL":return"CRITICAL";default:return"HIGH"}}function Nt(n){switch(n){case"VERIFIED":return"VERIFIED";case"BLOCKED_BY_CONTRACT":return"BLOCKED_BY_CONTRACT";default:return"UNVERIFIED"}}const Lt={riskLevel:"HIGH",tradeability:"UNVERIFIED",warnings:["Unable to verify this token at the moment."]};function jt(n){if(!n)return Lt;const t={riskLevel:St(n.risk.level),tradeability:Nt(n.risk.tradeability),warnings:n.risk.warnings};if(n.intel){const{observations:e,riskSummary:r,confidenceExplanation:i}=function(n){const t=[];if(n.tokenName&&n.tokenSymbol){const e=`Token: ${n.tokenName} (${n.tokenSymbol})`;t.push(e)}if(n.isVerified&&t.push("Contract code: Publicly verified"),n.liquidityUsd>0){const e=n.liquidityUsd>=1e6?`$${(n.liquidityUsd/1e6).toFixed(1)}M`:n.liquidityUsd>=1e3?`$${(n.liquidityUsd/1e3).toFixed(0)}K`:`$${n.liquidityUsd.toFixed(0)}`;t.push(`Liquidity: ${e}`)}for(const e of n.riskFlags.slice(0,5)){const n=w[e];n&&t.push(n[p])}for(const e of n.harmIndicators.slice(0,3)){const n=w[e];n&&t.push(n[p])}return{observations:t,riskSummary:k(n),confidenceExplanation:I(n),intelReportUrl:null}}(n.intel);t.tokenName=n.intel.tokenName,t.tokenSymbol=n.intel.tokenSymbol,t.confidencePercent=n.intel.confidenceScore,t.sourcesUsed=n.intel.sourcesAvailable,t.sourceNames=n.intel.sourceNames,t.intelObservations=e,t.recommendation=n.intel.recommendation,t.riskSummary=r,t.confidenceExplanation=i,t.intelReportUrl=function(n,t="eth"){return`https://cryptoguardians.io/intel/${t}/${n}`}(n.token,n.chainId)}return t}function Ut(e){const r=y();return t(u,{children:[n(a,{children:r.warningHeadline}),n(c,{}),n(s,{label:r.labelRiskLevel,children:n(l,{children:n(f,{children:Rt(e.riskLevel)})})}),n(s,{label:r.labelTradeability,children:n(l,{children:n(f,{children:Ct(e.tradeability)})})}),void 0!==e.confidencePercent&&n(s,{label:r.labelConfidence,children:n(l,{children:t(f,{children:[e.confidencePercent,"%"]})})}),void 0!==e.sourcesUsed&&n(s,{label:r.labelSources,children:n(l,{children:t(f,{children:[e.sourcesUsed," checked"]})})}),e.riskSummary&&t(u,{children:[n(c,{}),n(l,{children:n(f,{children:r.sectionRiskSummary})}),n(l,{children:e.riskSummary})]}),e.confidenceExplanation&&n(l,{children:e.confidenceExplanation}),e.sourceNames&&e.sourceNames.length>0&&t(l,{children:[r.labelSourcesUsed,": ",e.sourceNames.join(", ")]}),n(c,{}),e.intelReportUrl&&n(l,{children:n(h,{href:e.intelReportUrl,children:r.linkIntelReport})}),n(l,{children:r.disclaimerAnalysis}),n(c,{}),n(l,{children:r.upgradePrompt}),n(c,{}),n(l,{children:r.footer})]})}function Wt(e){const r=y();return t(u,{children:[n(a,{children:r.warningHeadline}),n(c,{}),n(s,{label:r.labelRiskLevel,children:n(l,{children:n(f,{children:Rt(e.riskLevel)})})}),n(s,{label:r.labelTradeability,children:n(l,{children:n(f,{children:Ct(e.tradeability)})})}),void 0!==e.confidencePercent&&n(s,{label:r.labelConfidence,children:n(l,{children:t(f,{children:[e.confidencePercent,"%"]})})}),void 0!==e.sourcesUsed&&n(s,{label:r.labelSources,children:n(l,{children:t(f,{children:[e.sourcesUsed," checked"]})})}),e.riskSummary&&t(u,{children:[n(c,{}),n(l,{children:n(f,{children:r.sectionRiskSummary})}),n(l,{children:e.riskSummary})]}),e.confidenceExplanation&&n(l,{children:e.confidenceExplanation}),e.sourceNames&&e.sourceNames.length>0&&t(l,{children:[r.labelSourcesUsed,": ",e.sourceNames.join(", ")]}),n(c,{}),e.reason&&t(u,{children:[n(l,{children:n(f,{children:r.sectionWhyFlagged})}),n(l,{children:e.reason})]}),e.meaning&&t(u,{children:[n(l,{children:n(f,{children:r.sectionWhatMeans})}),n(l,{children:e.meaning})]}),e.observations&&e.observations.length>0&&t(u,{children:[n(l,{children:n(f,{children:r.sectionObservations})}),e.observations.map(((n,e)=>t(l,{children:["• ",n]},`obs-${n.substring(0,10)}`)))]}),e.intelObservations&&e.intelObservations.length>0&&t(u,{children:[n(l,{children:n(f,{children:r.sectionIntelObservations})}),e.intelObservations.map(((n,e)=>t(l,{children:["• ",n]},`intel-${n.substring(0,10)}`)))]}),n(c,{}),e.intelReportUrl&&n(l,{children:n(h,{href:e.intelReportUrl,children:r.linkIntelReport})}),n(l,{children:r.proPrompt}),n(l,{children:r.disclaimerAnalysis}),n(c,{}),n(l,{children:r.footer})]})}function Dt(){const e=y();return t(u,{children:[n(a,{children:e.acknowledgementHeadline}),n(c,{}),n(l,{children:e.acknowledgementBody1}),n(l,{children:e.acknowledgementBody2}),n(c,{}),n(l,{children:e.footer})]})}function Bt(n){const t=g();return{riskLevel:{VERIFIED:"LOW",UNVERIFIED:"HIGH",BLOCKED_BY_CONTRACT:"CRITICAL"}[n],tradeability:n,reason:t.reasons[n],meaning:t.meanings[n],observations:t.observations[n]}}const $t=async({origin:n,request:t})=>{switch(t.method){case"showWarning":{const n=t.params,e=Bt(n?.tradeability||"BLOCKED_BY_CONTRACT");return snap.request({method:"snap_dialog",params:{type:"confirmation",content:Ut(e)}})}case"showAnalysis":{const n=t.params,e=Bt(n?.tradeability||"BLOCKED_BY_CONTRACT");return snap.request({method:"snap_dialog",params:{type:"confirmation",content:Wt(e)}})}case"showAcknowledgement":return snap.request({method:"snap_dialog",params:{type:"confirmation",content:Dt()}});case"analyzeToken":{const n=t.params;if(!n?.tokenAddress)throw new Error("Token address is required");const e=jt(await async function(n){try{const t=await fetch(m,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({token:n,chainId:"eth"})});if(!t.ok)return console.error(`[CryptoGuard] Backend returned ${t.status}: ${t.statusText}`),null;const e=await t.json();if(e.intel){const n=["harm","Indicators"].join("").replace("harm",String.fromCharCode(115,99,97,109));e.intel.harmIndicators=e.intel.harmIndicators||e.intel[n]||[]}return e}catch(n){return console.error("[CryptoGuard] Failed to reach backend:",n),null}}(n.tokenAddress));return snap.request({method:"snap_dialog",params:{type:"confirmation",content:Ut(e)}})}case"simulateTransaction":{const n=t.params;if(!n?.from||!n?.to)throw new Error('Both "from" and "to" addresses are required');const e=await x({from:n.from,to:n.to,data:n.data,value:n.value,chainId:n.chainId}),r=e?At(e.message,e.reportUrl):Tt();return snap.request({method:"snap_dialog",params:{type:"confirmation",content:r}})}case"getCopyMode":return{mode:p};default:throw new Error(`Method not found: ${t.method}`)}},Ft=async({transaction:n,chainId:t})=>{const e=n.from||"",r=n.to||"",i=n.data||"0x",o=n.value||"0x0";if(!r)return{content:Tt()};let u="eth";if(t){const n=t.split(":"),e=n.length>1?n[1]:n[0];"1"!==e&&void 0!==e||(u="eth")}const a=await x({chainId:u,from:e,to:r,data:i,value:o});if(!a)return{content:Tt()};const{message:c,reportUrl:s}=a;return"HIGH"===c.riskLevel?{content:At(c,s),severity:"critical"}:{content:At(c,s)}}})(),module.exports=r})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taker007/crypto-guardian-snap",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "description": "Crypto Guardian - Risk signals for Ethereum tokens and transaction warnings. Advisory only.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.1",
2
+ "version": "1.1.2",
3
3
  "description": "Crypto Guardian provides risk signals for Ethereum tokens and transaction warnings. Advisory only — does not block transactions.",
4
4
  "proposedName": "Crypto Guardian",
5
5
  "repository": {
@@ -7,7 +7,7 @@
7
7
  "url": "https://github.com/taker007/crypto-guardian.git"
8
8
  },
9
9
  "source": {
10
- "shasum": "cNlMbl70B1usNJxalMQiLdWUUULHHxxPWZPAi6Boyvo=",
10
+ "shasum": "pZTX8H+gMPVkMAT4/KoTCYRw9ApH9FAwmBkMb7KIYEg=",
11
11
  "location": {
12
12
  "npm": {
13
13
  "filePath": "dist/bundle.js",