8 lines
1.6 KiB
JavaScript
8 lines
1.6 KiB
JavaScript
import{Ca as l}from"./chunk-MYNBMTR4.js";import{K as a,n as u}from"./chunk-TQQZZJXW.js";import{C as d,W as U,g as f,ga as p,ia as R,ra as E,w as x}from"./chunk-GSIHKWLV.js";import{o as r,q as o}from"./chunk-QTLWQ5AJ.js";r();o();r();o();var T=t=>{let e=document.createElement("textarea");return document.body.appendChild(e),e.style.position="fixed",e.style.clip="rect(0 0 0 0)",e.style.top="10px",e.value=t,e.select(),document.execCommand("copy",!0),document.body.removeChild(e),!0};r();o();var m=(t,e=0,n=0)=>!t||typeof t!="string"?"":t.length<=e+n||e===0||n===0?t:`${t.slice(0,e)}...${t.slice(-n)}`,C=t=>m(t,6,4),I=t=>m(t,4,4),A=t=>m(t,8,8);r();o();var N=()=>{if(u())return!1;let{pathname:t}=a(),{LIMIT_ROUTER:e}=l();return t.indexOf(e)>-1},k=()=>{if(u())return!1;let t={isLimitUrl:!1,isSwapUrl:!1,isMarketHomeUrl:!1},{pathname:e}=a(),{LIMIT_ROUTER:n,MARKET_HOME_ROUTER:c,SWAP_ROUTER:s}=l();return e.indexOf(n)>-1&&(t.isLimitUrl=!0),e.indexOf(c)>-1&&(t.isMarketHomeUrl=!0),e.indexOf(s)>-1&&(t.isSwapUrl=!0),t};r();o();E();var y=t=>U([...t],[e=>e.name.toUpperCase()]),K=t=>{let e=y(t),n=d(e,s=>/^[0-9]+/.test(s?.name)?"0-9":s?.name[0].toUpperCase());return f(n).map(s=>({label:s,list:n[s]}))},P=(t,e)=>{let n=y(t);return x(n,s=>{let _=p(R(e));return p(s.name).includes(_)})};r();o();var h="https://x.com/intent/post?text=",V=t=>{if(!!t)return`${h}${encodeURIComponent(t)}`};export{T as a,m as b,C as c,I as d,A as e,N as f,k as g,K as h,P as i,V as j};
|
|
|
|
window.inOKXExtension = true;
|
|
window.inMiniApp = false;
|
|
window.ASSETS_BUILD_TYPE = "publish";
|
|
|
|
//# sourceMappingURL=chunk-GDM6S2OD.js.map
|