@lydianpay/sdk-web 1.1.4 → 1.1.5

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.
@@ -109,7 +109,7 @@ var JZ=Object.defineProperty;var eX=(Co,Ai,mr)=>Ai in Co?JZ(Co,Ai,{enumerable:!0
109
109
  <div id="restoreDetailsModalShell"></div>
110
110
  </div>`,mr=["USD","TRY"];function Qb(t){return typeof t=="string"&&mr.includes(t)}/*! @license DOMPurify 3.4.12 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.12/LICENSE */function Jb(t,e){(e==null||e>t.length)&&(e=t.length);for(var n=0,s=Array(e);n<e;n++)s[n]=t[n];return s}function h7(t){if(Array.isArray(t))return t}function f7(t,e){var n=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(n!=null){var s,i,r,o,a=[],c=!0,l=!1;try{if(r=(n=n.call(t)).next,e!==0)for(;!(c=(s=r.call(n)).done)&&(a.push(s.value),a.length!==e);c=!0);}catch(d){l=!0,i=d}finally{try{if(!c&&n.return!=null&&(o=n.return(),Object(o)!==o))return}finally{if(l)throw i}}return a}}function p7(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
111
111
  In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m7(t,e){return h7(t)||f7(t,e)||g7(t,e)||p7()}function g7(t,e){if(t){if(typeof t=="string")return Jb(t,e);var n={}.toString.call(t).slice(8,-1);return n==="Object"&&t.constructor&&(n=t.constructor.name),n==="Map"||n==="Set"?Array.from(t):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Jb(t,e):void 0}}const e1=Object.entries,t1=Object.setPrototypeOf,y7=Object.isFrozen,b7=Object.getPrototypeOf,w7=Object.getOwnPropertyDescriptor;let Wt=Object.freeze,Vt=Object.seal,_a=Object.create,n1=typeof Reflect<"u"&&Reflect,cp=n1.apply,lp=n1.construct;Wt||(Wt=function(e){return e}),Vt||(Vt=function(e){return e}),cp||(cp=function(e,n){for(var s=arguments.length,i=new Array(s>2?s-2:0),r=2;r<s;r++)i[r-2]=arguments[r];return e.apply(n,i)}),lp||(lp=function(e){for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return new e(...s)});const Ca=xt(Array.prototype.forEach),v7=xt(Array.prototype.lastIndexOf),s1=xt(Array.prototype.pop),Aa=xt(Array.prototype.push),E7=xt(Array.prototype.splice),gr=Array.isArray,Dc=xt(String.prototype.toLowerCase),dp=xt(String.prototype.toString),i1=xt(String.prototype.match),Ic=xt(String.prototype.replace),r1=xt(String.prototype.indexOf),x7=xt(String.prototype.trim),k7=xt(Number.prototype.toString),S7=xt(Boolean.prototype.toString),o1=typeof BigInt>"u"?null:xt(BigInt.prototype.toString),a1=typeof Symbol>"u"?null:xt(Symbol.prototype.toString),Ot=xt(Object.prototype.hasOwnProperty),Rc=xt(Object.prototype.toString),Mt=xt(RegExp.prototype.test),Ao=_7(TypeError);function xt(t){return function(e){e instanceof RegExp&&(e.lastIndex=0);for(var n=arguments.length,s=new Array(n>1?n-1:0),i=1;i<n;i++)s[i-1]=arguments[i];return cp(t,e,s)}}function _7(t){return function(){for(var e=arguments.length,n=new Array(e),s=0;s<e;s++)n[s]=arguments[s];return lp(t,n)}}function Ke(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Dc;if(t1&&t1(t,null),!gr(e))return t;let s=e.length;for(;s--;){let i=e[s];if(typeof i=="string"){const r=n(i);r!==i&&(y7(e)||(e[s]=r),i=r)}t[i]=!0}return t}function C7(t){for(let e=0;e<t.length;e++)Ot(t,e)||(t[e]=null);return t}function gn(t){const e=_a(null);for(const s of e1(t)){var n=m7(s,2);const i=n[0],r=n[1];Ot(t,i)&&(gr(r)?e[i]=C7(r):r&&typeof r=="object"&&r.constructor===Object?e[i]=gn(r):e[i]=r)}return e}function A7(t){switch(typeof t){case"string":return t;case"number":return k7(t);case"boolean":return S7(t);case"bigint":return o1?o1(t):"0";case"symbol":return a1?a1(t):"Symbol()";case"undefined":return Rc(t);case"function":case"object":{if(t===null)return Rc(t);const e=t,n=Ys(e,"toString");if(typeof n=="function"){const s=n(e);return typeof s=="string"?s:Rc(s)}return Rc(t)}default:return Rc(t)}}function Ys(t,e){for(;t!==null;){const s=w7(t,e);if(s){if(s.get)return xt(s.get);if(typeof s.value=="function")return xt(s.value)}t=b7(t)}function n(){return null}return n}function T7(t){try{return Mt(t,""),!0}catch{return!1}}const c1=Wt(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),up=Wt(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),hp=Wt(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),D7=Wt(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),fp=Wt(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),I7=Wt(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),l1=Wt(["#text"]),d1=Wt(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),pp=Wt(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),u1=Wt(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Dd=Wt(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),R7=Vt(/{{[\w\W]*|^[\w\W]*}}/g),B7=Vt(/<%[\w\W]*|^[\w\W]*%>/g),P7=Vt(/\${[\w\W]*/g),O7=Vt(/^data-[\-\w.\u00B7-\uFFFF]+$/),M7=Vt(/^aria-[\-\w]+$/),h1=Vt(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),N7=Vt(/^(?:\w+script|data):/i),L7=Vt(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),F7=Vt(/^html$/i),$7=Vt(/^[a-z][.\w]*(-[.\w]+)+$/i),f1=Vt(/<[/\w!]/g),p1=Vt(/<[/\w]/g),U7=Vt(/<\/no(script|embed|frames)/i),z7=Vt(/\/>/i),Kn={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},j7=function(){return typeof window>"u"?null:window},q7=function(e,n){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let s=null;const i="data-tt-policy-suffix";n&&n.hasAttribute(i)&&(s=n.getAttribute(i));const r="dompurify"+(s?"#"+s:"");try{return e.createPolicy(r,{createHTML(o){return o},createScriptURL(o){return o}})}catch{return console.warn("TrustedTypes policy "+r+" could not be created."),null}},m1=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},yr=function(e,n,s,i){return Ot(e,n)&&gr(e[n])?Ke(i.base?gn(i.base):{},e[n],i.transform):s};function g1(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:j7();const e=xe=>g1(xe);if(e.version="3.4.12",e.removed=[],!t||!t.document||t.document.nodeType!==Kn.document||!t.Element)return e.isSupported=!1,e;let n=t.document;const s=n,i=s.currentScript;t.DocumentFragment;const r=t.HTMLTemplateElement,o=t.Node,a=t.Element,c=t.NodeFilter,l=t.NamedNodeMap;l===void 0&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const d=t.DOMParser,u=t.trustedTypes,h=a.prototype,f=Ys(h,"cloneNode"),p=Ys(h,"remove"),m=Ys(h,"nextSibling"),y=Ys(h,"childNodes"),g=Ys(h,"parentNode"),S=Ys(h,"shadowRoot"),w=Ys(h,"attributes"),_=o&&o.prototype?Ys(o.prototype,"nodeType"):null,I=o&&o.prototype?Ys(o.prototype,"nodeName"):null;if(typeof r=="function"){const xe=n.createElement("template");xe.content&&xe.content.ownerDocument&&(n=xe.content.ownerDocument)}let N,K="",W,$=!1,F=0;const V=function(){if(F>0)throw Ao('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},q=function(Q){V(),F++;try{return N.createHTML(Q)}finally{F--}},A=function(Q){V(),F++;try{return N.createScriptURL(Q)}finally{F--}},D=function(){return $||(W=q7(u,i),$=!0),W},v=n,x=v.implementation,R=v.createNodeIterator,E=v.createDocumentFragment,b=v.getElementsByTagName,k=s.importNode;let B=m1();e.isSupported=typeof e1=="function"&&typeof g=="function"&&x&&x.createHTMLDocument!==void 0;const C=R7,T=B7,O=P7,L=O7,H=M7,G=N7,X=L7,ee=$7;let te=h1,j=null;const P=Ke({},[...c1,...up,...hp,...fp,...l1]);let M=null;const U=Ke({},[...d1,...pp,...u1,...Dd]);let z=Object.seal(_a(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Z=null,Y=null;const se=Object.seal(_a(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let ie=!0,oe=!0,ne=!1,ue=!0,ve=!1,ye=!0,pe=!1,we=!1,Oe=null,qe=null,Ce=!1,Me=!1,Ae=!1,Ie=!1,nt=!0,At=!1;const He="user-content-";let Tt=!0,vt=!1,Ve={},et=null;const Et=Ke({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Kt=null;const ur=Ke({},["audio","video","img","source","image","track"]);let jn=null;const va=Ke({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),An="http://www.w3.org/1998/Math/MathML",Ks="http://www.w3.org/2000/svg",Tn="http://www.w3.org/1999/xhtml";let Pt=Tn,Si=!1,qn=null;const As=Ke({},[An,Ks,Tn],dp),hr=Wt(["mi","mo","mn","ms","mtext"]);let _i=Ke({},hr);const os=Wt(["annotation-xml"]);let Sc=Ke({},os);const Wf=Ke({},["title","style","font","a","script"]);let So=null;const Vf=["application/xhtml+xml","text/html"],Gf="text/html";let at=null,fr=null;const Yf=n.createElement("form"),vd=function(Q){return Q instanceof RegExp||Q instanceof Function},_c=function(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(fr&&fr===Q)return;(!Q||typeof Q!="object")&&(Q={}),Q=gn(Q),So=Vf.indexOf(Q.PARSER_MEDIA_TYPE)===-1?Gf:Q.PARSER_MEDIA_TYPE,at=So==="application/xhtml+xml"?dp:Dc,j=yr(Q,"ALLOWED_TAGS",P,{transform:at}),M=yr(Q,"ALLOWED_ATTR",U,{transform:at}),qn=yr(Q,"ALLOWED_NAMESPACES",As,{transform:dp}),jn=yr(Q,"ADD_URI_SAFE_ATTR",va,{transform:at,base:va}),Kt=yr(Q,"ADD_DATA_URI_TAGS",ur,{transform:at,base:ur}),et=yr(Q,"FORBID_CONTENTS",Et,{transform:at}),Z=yr(Q,"FORBID_TAGS",gn({}),{transform:at}),Y=yr(Q,"FORBID_ATTR",gn({}),{transform:at}),Ve=Ot(Q,"USE_PROFILES")?Q.USE_PROFILES&&typeof Q.USE_PROFILES=="object"?gn(Q.USE_PROFILES):Q.USE_PROFILES:!1,ie=Q.ALLOW_ARIA_ATTR!==!1,oe=Q.ALLOW_DATA_ATTR!==!1,ne=Q.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=Q.ALLOW_SELF_CLOSE_IN_ATTR!==!1,ve=Q.SAFE_FOR_TEMPLATES||!1,ye=Q.SAFE_FOR_XML!==!1,pe=Q.WHOLE_DOCUMENT||!1,Me=Q.RETURN_DOM||!1,Ae=Q.RETURN_DOM_FRAGMENT||!1,Ie=Q.RETURN_TRUSTED_TYPE||!1,Ce=Q.FORCE_BODY||!1,nt=Q.SANITIZE_DOM!==!1,At=Q.SANITIZE_NAMED_PROPS||!1,Tt=Q.KEEP_CONTENT!==!1,vt=Q.IN_PLACE||!1,te=T7(Q.ALLOWED_URI_REGEXP)?Q.ALLOWED_URI_REGEXP:h1,Pt=typeof Q.NAMESPACE=="string"?Q.NAMESPACE:Tn,_i=Ot(Q,"MATHML_TEXT_INTEGRATION_POINTS")&&Q.MATHML_TEXT_INTEGRATION_POINTS&&typeof Q.MATHML_TEXT_INTEGRATION_POINTS=="object"?gn(Q.MATHML_TEXT_INTEGRATION_POINTS):Ke({},hr),Sc=Ot(Q,"HTML_INTEGRATION_POINTS")&&Q.HTML_INTEGRATION_POINTS&&typeof Q.HTML_INTEGRATION_POINTS=="object"?gn(Q.HTML_INTEGRATION_POINTS):Ke({},os);const ae=Ot(Q,"CUSTOM_ELEMENT_HANDLING")&&Q.CUSTOM_ELEMENT_HANDLING&&typeof Q.CUSTOM_ELEMENT_HANDLING=="object"?gn(Q.CUSTOM_ELEMENT_HANDLING):_a(null);if(z=_a(null),Ot(ae,"tagNameCheck")&&vd(ae.tagNameCheck)&&(z.tagNameCheck=ae.tagNameCheck),Ot(ae,"attributeNameCheck")&&vd(ae.attributeNameCheck)&&(z.attributeNameCheck=ae.attributeNameCheck),Ot(ae,"allowCustomizedBuiltInElements")&&typeof ae.allowCustomizedBuiltInElements=="boolean"&&(z.allowCustomizedBuiltInElements=ae.allowCustomizedBuiltInElements),Vt(z),ve&&(oe=!1),Ae&&(Me=!0),Ve&&(j=Ke({},l1),M=_a(null),Ve.html===!0&&(Ke(j,c1),Ke(M,d1)),Ve.svg===!0&&(Ke(j,up),Ke(M,pp),Ke(M,Dd)),Ve.svgFilters===!0&&(Ke(j,hp),Ke(M,pp),Ke(M,Dd)),Ve.mathMl===!0&&(Ke(j,fp),Ke(M,u1),Ke(M,Dd))),se.tagCheck=null,se.attributeCheck=null,Ot(Q,"ADD_TAGS")&&(typeof Q.ADD_TAGS=="function"?se.tagCheck=Q.ADD_TAGS:gr(Q.ADD_TAGS)&&(j===P&&(j=gn(j)),Ke(j,Q.ADD_TAGS,at))),Ot(Q,"ADD_ATTR")&&(typeof Q.ADD_ATTR=="function"?se.attributeCheck=Q.ADD_ATTR:gr(Q.ADD_ATTR)&&(M===U&&(M=gn(M)),Ke(M,Q.ADD_ATTR,at))),Ot(Q,"ADD_URI_SAFE_ATTR")&&gr(Q.ADD_URI_SAFE_ATTR)&&Ke(jn,Q.ADD_URI_SAFE_ATTR,at),Ot(Q,"FORBID_CONTENTS")&&gr(Q.FORBID_CONTENTS)&&(et===Et&&(et=gn(et)),Ke(et,Q.FORBID_CONTENTS,at)),Ot(Q,"ADD_FORBID_CONTENTS")&&gr(Q.ADD_FORBID_CONTENTS)&&(et===Et&&(et=gn(et)),Ke(et,Q.ADD_FORBID_CONTENTS,at)),Tt&&(j["#text"]=!0),pe&&Ke(j,["html","head","body"]),j.table&&(Ke(j,["tbody"]),delete Z.tbody),Q.TRUSTED_TYPES_POLICY){if(typeof Q.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof Q.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ao('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const be=N;N=Q.TRUSTED_TYPES_POLICY;try{K=q("")}catch(Te){throw N=be,Te}}else Q.TRUSTED_TYPES_POLICY===null?(N=void 0,K=""):(N===void 0&&(N=D()),N&&typeof K=="string"&&(K=q("")));Wt&&Wt(Q),fr=Q},Ed=Ke({},[...up,...hp,...D7]),xd=Ke({},[...fp,...I7]),Zf=function(Q,ae,be){return ae.namespaceURI===Tn?Q==="svg":ae.namespaceURI===An?Q==="svg"&&(be==="annotation-xml"||_i[be]):!!Ed[Q]},Xf=function(Q,ae,be){return ae.namespaceURI===Tn?Q==="math":ae.namespaceURI===Ks?Q==="math"&&Sc[be]:!!xd[Q]},Qf=function(Q,ae,be){return ae.namespaceURI===Ks&&!Sc[be]||ae.namespaceURI===An&&!_i[be]?!1:!xd[Q]&&(Wf[Q]||!Ed[Q])},Jf=function(Q){let ae=g(Q);(!ae||!ae.tagName)&&(ae={namespaceURI:Pt,tagName:"template"});const be=Dc(Q.tagName),Te=Dc(ae.tagName);return qn[Q.namespaceURI]?Q.namespaceURI===Ks?Zf(be,ae,Te):Q.namespaceURI===An?Xf(be,ae,Te):Q.namespaceURI===Tn?Qf(be,ae,Te):!!(So==="application/xhtml+xml"&&qn[Q.namespaceURI]):!1},Ws=function(Q){Aa(e.removed,{element:Q});try{g(Q).removeChild(Q)}catch{if(p(Q),!g(Q))throw Ao("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Ea=function(Q){Cc(Q);const ae=y(Q);if(ae){const Te=[];Ca(ae,Re=>{Aa(Te,Re)}),Ca(Te,Re=>{try{p(Re)}catch{}})}const be=w(Q);if(be)for(let Te=be.length-1;Te>=0;--Te){const Re=be[Te],Ne=Re&&Re.name;if(typeof Ne=="string")try{Q.removeAttribute(Ne)}catch{}}},Ci=function(Q,ae){try{Aa(e.removed,{attribute:ae.getAttributeNode(Q),from:ae})}catch{Aa(e.removed,{attribute:null,from:ae})}if(ae.removeAttribute(Q),Q==="is")if(Me||Ae)try{Ws(ae)}catch{}else try{ae.setAttribute(Q,"")}catch{}},ep=function(Q){const ae=w(Q);if(ae)for(let be=ae.length-1;be>=0;--be){const Te=ae[be],Re=Te&&Te.name;if(!(typeof Re!="string"||M[at(Re)]))try{Q.removeAttribute(Re)}catch{}}},Cc=function(Q){const ae=[Q];for(;ae.length>0;){const be=ae.pop();(_?_(be):be.nodeType)===Kn.element&&ep(be);const Re=y(be);if(Re)for(let Ne=Re.length-1;Ne>=0;--Ne)ae.push(Re[Ne])}},tp=function(Q){if(!ye)return;const ae=[Q];for(;ae.length>0;){const be=ae.pop(),Te=_?_(be):be.nodeType;if(Te===Kn.processingInstruction||Te===Kn.comment&&Mt(p1,be.data)){try{p(be)}catch{}continue}if(Te===Kn.element){const Ne=be,ft=at(I?I(be):be.nodeName);try{Ne.hasAttribute&&Ne.hasAttribute("patchsrc")&&Ne.removeAttribute("patchsrc"),Ne.hasAttribute&&Ne.hasAttribute("for")&&ft!=="label"&&ft!=="output"&&Ne.removeAttribute("for")}catch{}}const Re=y(be);if(Re)for(let Ne=Re.length-1;Ne>=0;--Ne)ae.push(Re[Ne])}},kd=function(Q){let ae=null,be=null;if(Ce)Q="<remove></remove>"+Q;else{const Ne=i1(Q,/^[\r\n\t ]+/);be=Ne&&Ne[0]}So==="application/xhtml+xml"&&Pt===Tn&&(Q='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+Q+"</body></html>");const Te=N?q(Q):Q;if(Pt===Tn)try{ae=new d().parseFromString(Te,So)}catch{}if(!ae||!ae.documentElement){ae=x.createDocument(Pt,"template",null);try{ae.documentElement.innerHTML=Si?K:Te}catch{}}const Re=ae.body||ae.documentElement;return Q&&be&&Re.insertBefore(n.createTextNode(be),Re.childNodes[0]||null),Pt===Tn?b.call(ae,pe?"html":"body")[0]:pe?ae.documentElement:Re},Sd=function(Q){return R.call(Q.ownerDocument||Q,Q,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},xa=function(Q){return Q=Ic(Q,C," "),Q=Ic(Q,T," "),Q=Ic(Q,O," "),Q},Ac=function(Q){var ae;Q.normalize();const be=R.call(Q.ownerDocument||Q,Q,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let Te=be.nextNode();for(;Te;)Te.data=xa(Te.data),Te=be.nextNode();const Re=(ae=Q.querySelectorAll)===null||ae===void 0?void 0:ae.call(Q,"template");Re&&Ca(Re,Ne=>{pr(Ne.content)&&Ac(Ne.content)})},ka=function(Q){const ae=I?I(Q):null;return typeof ae!="string"||at(ae)!=="form"?!1:typeof Q.nodeName!="string"||typeof Q.textContent!="string"||typeof Q.removeChild!="function"||Q.attributes!==w(Q)||typeof Q.removeAttribute!="function"||typeof Q.setAttribute!="function"||typeof Q.namespaceURI!="string"||typeof Q.insertBefore!="function"||typeof Q.hasChildNodes!="function"||Q.nodeType!==_(Q)||Q.childNodes!==y(Q)},pr=function(Q){if(!_||typeof Q!="object"||Q===null)return!1;try{return _(Q)===Kn.documentFragment}catch{return!1}},_o=function(Q){if(!_||typeof Q!="object"||Q===null)return!1;try{return typeof _(Q)=="number"}catch{return!1}};function as(xe,Q,ae){xe.length!==0&&Ca(xe,be=>{be.call(e,Q,ae,fr)})}const np=function(Q,ae){return!!(ye&&Q.hasChildNodes()&&!_o(Q.firstElementChild)&&Mt(f1,Q.textContent)&&Mt(f1,Q.innerHTML)||ye&&Q.namespaceURI===Tn&&ae==="style"&&_o(Q.firstElementChild)||Q.nodeType===Kn.processingInstruction||ye&&Q.nodeType===Kn.comment&&Mt(p1,Q.data))},sp=function(Q,ae){if(!Z[ae]&&Ad(ae)&&(z.tagNameCheck instanceof RegExp&&Mt(z.tagNameCheck,ae)||z.tagNameCheck instanceof Function&&z.tagNameCheck(ae)))return!1;if(Tt&&!et[ae]){const be=g(Q),Te=y(Q);if(Te&&be){const Re=Te.length;for(let Ne=Re-1;Ne>=0;--Ne){const ft=vt?Te[Ne]:f(Te[Ne],!0);be.insertBefore(ft,m(Q))}}}return Ws(Q),!0},_d=function(Q,ae){if(as(B.beforeSanitizeElements,Q,null),Q!==ae&&g(Q)===null)return!0;if(ka(Q))return Ws(Q),!0;const be=at(I?I(Q):Q.nodeName);if(as(B.uponSanitizeElement,Q,{tagName:be,allowedTags:j}),Q!==ae&&g(Q)===null)return!0;if(np(Q,be))return Ws(Q),!0;if(Z[be]||!(se.tagCheck instanceof Function&&se.tagCheck(be))&&!j[be]){const Re=sp(Q,be);return Re===!1&&as(B.afterSanitizeElements,Q,null),Re}if((_?_(Q):Q.nodeType)===Kn.element&&!Jf(Q)||(be==="noscript"||be==="noembed"||be==="noframes")&&Mt(U7,Q.innerHTML))return Ws(Q),!0;if(ve&&Q.nodeType===Kn.text){const Re=xa(Q.textContent);Q.textContent!==Re&&(Aa(e.removed,{element:Q.cloneNode()}),Q.textContent=Re)}return as(B.afterSanitizeElements,Q,null),!1},Cd=function(Q,ae,be){if(Y[ae]||ye&&ae==="patchsrc"||ye&&ae==="for"&&Q!=="label"&&Q!=="output"||nt&&(ae==="id"||ae==="name")&&(be in n||be in Yf))return!1;const Te=M[ae]||se.attributeCheck instanceof Function&&se.attributeCheck(ae,Q);if(!(oe&&Mt(L,ae))){if(!(ie&&Mt(H,ae))){if(Te){if(!jn[ae]){if(!Mt(te,Ic(be,X,""))){if(!((ae==="src"||ae==="xlink:href"||ae==="href")&&Q!=="script"&&r1(be,"data:")===0&&Kt[Q])){if(!(ne&&!Mt(G,Ic(be,X,"")))){if(be)return!1}}}}}else if(!(Ad(Q)&&(z.tagNameCheck instanceof RegExp&&Mt(z.tagNameCheck,Q)||z.tagNameCheck instanceof Function&&z.tagNameCheck(Q))&&(z.attributeNameCheck instanceof RegExp&&Mt(z.attributeNameCheck,ae)||z.attributeNameCheck instanceof Function&&z.attributeNameCheck(ae,Q))||ae==="is"&&z.allowCustomizedBuiltInElements&&(z.tagNameCheck instanceof RegExp&&Mt(z.tagNameCheck,be)||z.tagNameCheck instanceof Function&&z.tagNameCheck(be))))return!1}}return!0},ip=Ke({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Ad=function(Q){return!ip[Dc(Q)]&&Mt(ee,Q)},rp=function(Q,ae,be,Te){if(N&&typeof u=="object"&&typeof u.getAttributeType=="function"&&!be)switch(u.getAttributeType(Q,ae)){case"TrustedHTML":return q(Te);case"TrustedScriptURL":return A(Te)}return Te},op=function(Q,ae,be,Te){try{be?Q.setAttributeNS(be,ae,Te):Q.setAttribute(ae,Te),ka(Q)?Ws(Q):s1(e.removed)}catch{Ci(ae,Q)}},Td=function(Q){as(B.beforeSanitizeAttributes,Q,null);const ae=Q.attributes;if(!ae||ka(Q))return;const be={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:M,forceKeepAttr:void 0};let Te=ae.length;const Re=at(Q.nodeName);for(;Te--;){const Ne=ae[Te],ft=Ne.name,mn=Ne.namespaceURI,Vs=Ne.value,Hn=at(ft),Gs=Vs;let Dn=ft==="value"?Gs:x7(Gs);if(be.attrName=Hn,be.attrValue=Dn,be.keepAttr=!0,be.forceKeepAttr=void 0,as(B.uponSanitizeAttribute,Q,be),Dn=be.attrValue,At&&(Hn==="id"||Hn==="name")&&r1(Dn,He)!==0&&(Ci(ft,Q),Dn=He+Dn),ye&&Mt(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,Dn)){Ci(ft,Q);continue}if(Hn==="attributename"&&i1(Dn,"href")){Ci(ft,Q);continue}if(!be.forceKeepAttr){if(!be.keepAttr){Ci(ft,Q);continue}if(!ue&&Mt(z7,Dn)){Ci(ft,Q);continue}if(ve&&(Dn=xa(Dn)),!Cd(Re,Hn,Dn)){Ci(ft,Q);continue}Dn=rp(Re,Hn,mn,Dn),Dn!==Gs&&op(Q,ft,mn,Dn)}}as(B.afterSanitizeAttributes,Q,null)},Sa=function(Q){let ae=null;const be=Sd(Q);for(as(B.beforeSanitizeShadowDOM,Q,null);ae=be.nextNode();)if(as(B.uponSanitizeShadowNode,ae,null),_d(ae,Q),Td(ae),pr(ae.content)&&Sa(ae.content),(_?_(ae):ae.nodeType)===Kn.element){const Re=S(ae);pr(Re)&&(Tc(Re),Sa(Re))}as(B.afterSanitizeShadowDOM,Q,null)},Tc=function(Q){const ae=[{node:Q,shadow:null}];for(;ae.length>0;){const be=ae.pop();if(be.shadow){Sa(be.shadow);continue}const Te=be.node,Ne=(_?_(Te):Te.nodeType)===Kn.element,ft=y(Te);if(ft)for(let mn=ft.length-1;mn>=0;--mn)ae.push({node:ft[mn],shadow:null});if(Ne){const mn=I?I(Te):null;if(typeof mn=="string"&&at(mn)==="template"){const Vs=Te.content;pr(Vs)&&ae.push({node:Vs,shadow:null})}}if(Ne){const mn=S(Te);pr(mn)&&ae.push({node:null,shadow:mn},{node:mn,shadow:null})}}};return e.sanitize=function(xe){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ae=null,be=null,Te=null,Re=null;if(Si=!xe,Si&&(xe="<!-->"),typeof xe!="string"&&!_o(xe)&&(xe=A7(xe),typeof xe!="string"))throw Ao("dirty is not a string, aborting");if(!e.isSupported)return xe;we?(j=Oe,M=qe):_c(Q),(B.uponSanitizeElement.length>0||B.uponSanitizeAttribute.length>0)&&(j=gn(j)),B.uponSanitizeAttribute.length>0&&(M=gn(M)),e.removed=[];const Ne=vt&&typeof xe!="string"&&_o(xe);if(Ne){tp(xe);const Hn=I?I(xe):xe.nodeName;if(typeof Hn=="string"){const Gs=at(Hn);if(!j[Gs]||Z[Gs])throw Ea(xe),Ao("root node is forbidden and cannot be sanitized in-place")}if(ka(xe))throw Ea(xe),Ao("root node is clobbered and cannot be sanitized in-place");try{Tc(xe)}catch(Gs){throw Ea(xe),Gs}}else if(_o(xe))ae=kd("<!---->"),be=ae.ownerDocument.importNode(xe,!0),be.nodeType===Kn.element&&be.nodeName==="BODY"||be.nodeName==="HTML"?ae=be:ae.appendChild(be),Tc(be);else{if(!Me&&!ve&&!pe&&xe.indexOf("<")===-1)return N&&Ie?q(xe):xe;if(ae=kd(xe),!ae)return Me?null:Ie?K:""}ae&&Ce&&Ws(ae.firstChild);const ft=Ne?xe:ae,mn=Sd(ft);try{for(;Te=mn.nextNode();)_d(Te,ft),Td(Te),pr(Te.content)&&Sa(Te.content)}catch(Hn){throw Ne&&(Ea(xe),Ca(e.removed,Gs=>{Gs.element&&Cc(Gs.element)})),Hn}if(Ne)return Ca(e.removed,Hn=>{Hn.element&&Cc(Hn.element)}),ve&&Ac(xe),xe;if(Me){if(ve&&Ac(ae),Ae)for(Re=E.call(ae.ownerDocument);ae.firstChild;)Re.appendChild(ae.firstChild);else Re=ae;return(M.shadowroot||M.shadowrootmode)&&(Re=k.call(s,Re,!0)),Re}let Vs=pe?ae.outerHTML:ae.innerHTML;return pe&&j["!doctype"]&&ae.ownerDocument&&ae.ownerDocument.doctype&&ae.ownerDocument.doctype.name&&Mt(F7,ae.ownerDocument.doctype.name)&&(Vs="<!DOCTYPE "+ae.ownerDocument.doctype.name+`>
112
- `+Vs),ve&&(Vs=xa(Vs)),N&&Ie?q(Vs):Vs},e.setConfig=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_c(xe),we=!0,Oe=j,qe=M},e.clearConfig=function(){fr=null,we=!1,Oe=null,qe=null,N=W,K=""},e.isValidAttribute=function(xe,Q,ae){fr||_c({});const be=at(xe),Te=at(Q);return Cd(be,Te,ae)},e.addHook=function(xe,Q){typeof Q=="function"&&Ot(B,xe)&&Aa(B[xe],Q)},e.removeHook=function(xe,Q){if(Ot(B,xe)){if(Q!==void 0){const ae=v7(B[xe],Q);return ae===-1?void 0:E7(B[xe],ae,1)[0]}return s1(B[xe])}},e.removeHooks=function(xe){Ot(B,xe)&&(B[xe]=[])},e.removeAllHooks=function(){B=m1()},e}var H7=g1(),K7="https://wallet-assets.lydian.com/wallets",W7=[{id:"metamask",name:"MetaMask",namespaces:["eip155"],isCustodial:!1},{id:"trust",name:"Trust",namespaces:["eip155","solana"],isCustodial:!1},{id:"rainbow",name:"Rainbow",namespaces:["eip155"],isCustodial:!1},{id:"coinbase",name:"Coinbase",namespaces:["eip155","solana"],isCustodial:!1},{id:"zerion",name:"Zerion",namespaces:["eip155"],isCustodial:!1},{id:"tokenpocket",name:"Token Pocket",namespaces:["eip155","solana"],isCustodial:!1},{id:"blockchaincom",name:"Blockchain.com",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"exodus",name:"Exodus",namespaces:["eip155","solana"],isCustodial:!1},{id:"phantom",name:"Phantom",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"okx",name:"OKX",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"cryptocom",name:"Crypto.com",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"argent",name:"Argent",namespaces:["eip155"],isCustodial:!1},{id:"safepal",name:"SafePal",namespaces:["eip155","solana","ton"],isCustodial:!1},{id:"imtoken",name:"imToken",namespaces:["eip155"],isCustodial:!1},{id:"ronin",name:"Ronin",namespaces:["eip155"],isCustodial:!1},{id:"coin98",name:"Coin98",namespaces:["eip155","solana"],isCustodial:!1},{id:"bitkeep",name:"Bitget Wallet",namespaces:["eip155","solana"],isCustodial:!1},{id:"1inch",name:"1inch",namespaces:["eip155","solana"],isCustodial:!1},{id:"ledgerlive",name:"Ledger Live",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"atomic",name:"Atomic",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"alpha",name:"Alpha",namespaces:["eip155"],isCustodial:!1},{id:"math",name:"Math",namespaces:["eip155","solana"],isCustodial:!1},{id:"bitpay",name:"BitPay",namespaces:["eip155"],isCustodial:!1},{id:"rabby",name:"Rabby",namespaces:["eip155"],isCustodial:!1},{id:"bybit",name:"Bybit",namespaces:["eip155","solana"],isCustodial:!1},{id:"binance",name:"Binance",namespaces:["eip155","solana"],isCustodial:!1},{id:"gate",name:"Gate Wallet",namespaces:["eip155"],isCustodial:!1},{id:"core",name:"Core",namespaces:["eip155","solana"],isCustodial:!1},{id:"backpack",name:"Backpack",namespaces:["eip155","solana"],isCustodial:!1},{id:"frontier",name:"Frontier",namespaces:["eip155"],isCustodial:!1},{id:"onekey",name:"OneKey",namespaces:["eip155"],isCustodial:!1},{id:"kraken",name:"Kraken",namespaces:["eip155","solana"],isCustodial:!1},{id:"uniswap",name:"Uniswap Wallet",namespaces:["eip155"],isCustodial:!1},{id:"omni",name:"Omni",namespaces:["eip155"],isCustodial:!1},{id:"mew",name:"MEW Wallet",namespaces:["eip155"],isCustodial:!1},{id:"foxwallet",name:"FoxWallet",namespaces:["eip155"],isCustodial:!1},{id:"nova",name:"Nova Wallet",namespaces:["eip155"],isCustodial:!1},{id:"subwallet",name:"SubWallet",namespaces:["eip155"],isCustodial:!1},{id:"safe",name:"Safe",namespaces:["eip155"],isCustodial:!1},{id:"robinhood",name:"Robinhood Wallet",namespaces:["eip155"],isCustodial:!1},{id:"tangem",name:"Tangem",namespaces:["eip155","solana"],isCustodial:!1},{id:"trezor",name:"Trezor",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"kucoin",name:"KuCoin",namespaces:["eip155","solana"],isCustodial:!1},{id:"jupiter",name:"Jupiter",namespaces:["solana"],isCustodial:!1},{id:"zengo",name:"Zengo",namespaces:["eip155"],isCustodial:!1},{id:"bitcoincom",name:"Bitcoin.com",namespaces:["eip155"],isCustodial:!1},{id:"keplr",name:"Keplr",namespaces:["eip155"],isCustodial:!1},{id:"cake",name:"Cake Wallet",namespaces:["eip155","solana"],isCustodial:!1},{id:"unstoppable",name:"Unstoppable",namespaces:["eip155"],isCustodial:!1},{id:"bifrost",name:"Bifrost",namespaces:["bip122","eip155"],isCustodial:!1},{id:"pintu",name:"Pintu",namespaces:["eip155"],isCustodial:!1},{id:"hot",name:"HOT Wallet",namespaces:["eip155","solana"],isCustodial:!1},{id:"arculus",name:"Arculus",namespaces:["bip122","eip155","solana"],isCustodial:!1}],V7={metamask:{rdns:"io.metamask",extensionUrl:"https://chromewebstore.google.com/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn"},trust:{rdns:"com.trustwallet.app",extensionUrl:"https://chromewebstore.google.com/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph"},rabby:{rdns:"io.rabby",extensionUrl:"https://chromewebstore.google.com/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch"},okx:{rdns:"com.okex.wallet",extensionUrl:"https://chromewebstore.google.com/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge"},phantom:{rdns:"app.phantom",extensionUrl:"https://chromewebstore.google.com/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa"},zerion:{rdns:"io.zerion",extensionUrl:"https://chromewebstore.google.com/detail/zerion-wallet-crypto-defi/klghhnkeealcohjjanjjdaeeggmfmlpl"},rainbow:{rdns:"me.rainbow",extensionUrl:"https://chromewebstore.google.com/detail/rainbow/opfgelmcmbiajamepnmloijbpoleiama"}},G7=W7.map(t=>({...t,iconUrl:`${K7}/${t.id}.png`,...V7[t.id]??{}}));const Id=-3,Y7=0,Z7=1,X7=1,Q7=3,J7=0,y1=1,e_="https://api.lydian.dev",t_="https://api.sandbox.lydian.com",n_="https://api.lydian.com",s_="https://pay.lydian.com/lydian-wordmark-aqua-2.svg",b1=["lydian.com","lydian.dev"],i_=[...b1,"fonts.googleapis.com","fonts.gstatic.com"],r_="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap",w1="lydian-default-font",o_="ARB",a_="BASE",v1="BTC",c_="CELO",E1="DAI",x1="ETH",l_="LINEA",d_="OPMAINNET",u_="POLY",k1="PYUSD",S1="RLUSD",_1="SOL",h_="SONIC",f_="UNICHAIN",C1="USDC",A1="USDe",T1="USDP",D1="USDS",I1="USDT",p_="ZKSYNC",br=2,cs=4,yn=18,mp=6,m_=9,g_=8,R1=["ethereum","arbitrum","base","celo","opmainnet","polygon","sonic","unichain","zksync","solana"],y_={code:"USDT",title:"USDT (Tether)",img:"https://tetherpay.com/images/7065960c-8ebd-4d80-f352-8027ff2bb600/public",type:"token",precision:br,decimals:mp,networks:[]},b_={code:"USDC",title:"USDC",img:"https://tetherpay.com/images/1a664446-0855-4d6d-256e-ad886acba300/public",type:"token",precision:br,decimals:mp,networks:[]},w_={code:"ETH",title:"Ethereum",img:"https://tetherpay.com/images/327ef8ac-bc72-46ea-2362-878e91c49300/public",type:"coin",precision:cs,decimals:yn,networks:[]},v_={code:"SOL",title:"Solana",img:"https://tetherpay.com/images/5850fc57-4451-4f45-b053-3857b1d54e00/public",type:"coin",precision:cs,decimals:m_,networks:[]},E_={code:"BTC",title:"Bitcoin",img:"https://tetherpay.com/images/7f89f493-190a-41da-2410-a19b46a68900/public",type:"coin",precision:cs,decimals:g_,networks:[]},x_={code:"ARB",title:"Arbitrum",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/64d896c2-6ac6-4837-e6bf-e05c53a5f500/public",type:"coin",precision:cs,decimals:yn,networks:[]},k_={code:"BASE",title:"Base",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/3fc7c8ef-6863-43e6-967d-de68e14d4600/public",type:"coin",precision:cs,decimals:yn,networks:[]},S_={code:"CELO",title:"Celo ",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/7373a7f6-b5dd-4d16-0b98-cbaf9e666300/public",type:"coin",precision:cs,decimals:yn,networks:[]},__={code:"linea",title:"Linea",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/410a3ea8-d59b-4e88-1c1a-ffa77c157600/public",type:"coin",precision:cs,decimals:yn,networks:[]},C_={code:"opmainnet",title:"OP Mainnet",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/cd28b090-e932-478e-2a40-7b7d61672d00/public",type:"coin",precision:cs,decimals:yn,networks:[]},A_={code:"polygon",title:"Polygon",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/386bebc7-3782-4358-978d-ae2b2d4fbf00/public",type:"coin",precision:cs,decimals:yn,networks:[]},T_={code:"sonic",title:"Sonic",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/e9eaf9b0-3093-4239-d20b-a0c5934ec200/public",type:"coin",precision:cs,decimals:yn,networks:[]},D_={code:"unichain",title:"Unichain",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/f4c4d2e6-d9a4-4910-febc-ed6de61bd400/public",type:"coin",precision:cs,decimals:yn,networks:[]},I_={code:"zksync",title:"ZKsync",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/540fbd94-e1d0-4dda-c6d1-426181f37e00/public",type:"coin",precision:cs,decimals:yn,networks:[]},R_={code:"RLUSD",title:"RLUSD (Ripple USD)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/b71545a6-eab8-4fa2-5888-f26c22ce7f00/public",type:"token",precision:br,decimals:yn,networks:[]},B_={code:"PYUSD",title:"PYUSD (PayPal USD)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/3897aafa-0fd9-4914-ef54-e6312aea9a00/public",type:"token",precision:br,decimals:mp,networks:[]},P_={code:"USDe",title:"USDe (Ethena USDe)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/76760e01-ce5a-482b-88e0-842f18370d00/public",type:"token",precision:br,decimals:yn,networks:[]},O_={code:"USDS",title:"USDS (Sky Dollar)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/ee62374d-99a1-46c7-9fc6-eb5907a32600/public",type:"token",precision:br,decimals:yn,networks:[]},M_={code:"DAI",title:"DAI",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/970875a7-3ae3-4171-4afe-cc1340bf9500/public",type:"token",precision:br,decimals:yn,networks:[]},N_={code:"USDP",title:"USDP (Pax Dollar)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/970875a7-3ae3-4171-4afe-cc1340bf9500/public",type:"token",precision:br,decimals:yn,networks:[]},B1={[o_]:x_,[a_]:k_,[v1]:E_,[c_]:S_,[E1]:M_,[x1]:w_,[l_]:__,[d_]:C_,[u_]:A_,[k1]:B_,[S1]:R_,[_1]:v_,[h_]:T_,[f_]:D_,[C1]:b_,[A1]:P_,[T1]:N_,[D1]:O_,[I1]:y_,[p_]:I_},L_=[v1,x1,I1,C1,_1,S1,k1,A1,D1,E1,T1],F_=["eth_sendTransaction","personal_sign","eth_signTypedData","eth_sign"],$_=["accountsChanged","chainChanged"],U_=["solana_signTransaction","solana_signAndSendTransaction","solana_signMessage"],z_="solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";function Ti(t,e){return{code:t,namespace:"eip155",chains:[`eip155:${e}`],methods:F_,events:$_,technicalStandard:"ERC-20"}}const gp={ethereum:Ti("ethereum",1),arbitrum:Ti("arbitrum",42161),base:Ti("base",8453),celo:Ti("celo",42220),opmainnet:Ti("opmainnet",10),polygon:Ti("polygon",137),sonic:Ti("sonic",146),unichain:Ti("unichain",130),zksync:Ti("zksync",324),solana:{code:"solana",namespace:"solana",chains:[z_],methods:U_,events:[],technicalStandard:"SPL"}},j_={ethereum:{USDC:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",USDT:"0xdac17f958d2ee523a2206206994597c13d831ec7",DAI:"0x6b175474e89094c44da98b954eedeac495271d0f",PYUSD:"0x6c3ea9036406852006290770bedfcaba0e23a0e8",RLUSD:"0x8292bb45bf1ee4d140127049757c2e0ff06317ed",USDP:"0x8e870d67f660d95d5be530380d0ec0bd388289e1",USDe:"0x4c9edd5852cd905f086c759e8383e09bff1e68b3"},arbitrum:{USDT:"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",USDC:"0xaf88d065e77c8cc2239327c5edb3a432268e5831",PYUSD:"0x46850ad61c2b7d64d08c9c754f45254596696984",DAI:"0xda10009cbd5d07dd0cecc66161fc93d7c9000da1"},base:{USDT:"0xfde4c96c8593536e31f229ea8f37b2ada2699bb2",USDC:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",DAI:"0x50c5725949a6f0c72e6c4a641f24049a917db0cb"},celo:{USDT:"0x48065fbbe25f71c9282ddf5e1cd6d6a887483d5e",USDC:"0xceba9300f2b948710d2653dd7b07f33a8b32118c"},opmainnet:{USDC:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",USDT:"0x94b008aa00579c1307b0ef2c499ad98a8ce58e58"},polygon:{USDT:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",USDC:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",DAI:"0x8f3cf7ad23cd3cadbd9735aff958023239c6a063"},sonic:{USDC:"0x29219dd400f2bf60e5a23d13be72b486d4038894",USDT:"0x6047828dc181963ba44974801ff68e538da5eaf9"},unichain:{USDC:"0x078d782b760474a361dda0af3839290b0ef57ad6"},zksync:{USDC:"0x1d17cbcf0d6d143135ae902365d2e5e2a16538d4",USDT:"0x493257fd37edb34451f62edf8d2a0c418852ba4c",DAI:"0x4b9eb6c0b6ea15176bbf62841c6b2a8a398cb656"},solana:{USDC:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",USDT:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}};function q_(t,e){var n;return(n=j_[t])==null?void 0:n[e]}const Rd="manual",H_=G7.map(t=>({id:t.id,name:t.name,img:t.iconUrl,networks:R1.map(e=>gp[e]).filter(e=>e&&t.namespaces.includes(e.namespace))})).filter(t=>t.networks.length>0),K_={ALLOWED_TAGS:["a","b","i","em","strong","span","br"],ALLOWED_ATTR:["href","target","rel"],RETURN_DOM_FRAGMENT:!0},yp=t=>!!t&&/^#[0-9a-fA-F]{3,8}$|^(?:rgb|rgba|hsl|hsla)\([\d.,%/\s]+\)$/.test(t.trim()),W_=t=>!!t&&t.length<=100&&/^[\w\s"',-]+$/.test(t),P1=(t,e)=>{if(!t)return!1;try{const n=new URL(t);return n.protocol==="https:"&&e.some(s=>n.hostname===s||n.hostname.endsWith(`.${s}`))}catch{return!1}},V_=t=>P1(t,i_),G_=t=>P1(t,b1),Y_=t=>G_(t)?t:s_,Z_=t=>{const e=H7.sanitize(t,K_);e.querySelectorAll("a[target]").forEach(s=>s.setAttribute("rel","noopener noreferrer"));const n=document.createElement("div");return n.append(e),n.innerHTML},O1={en:{"common.cancelTransaction":"Cancel Transaction","common.cancel":"Cancel","common.close":"Close","common.done":"Done","common.continue":"Continue","common.retry":"Retry","common.verify":"Verify","common.needHelp":"Need help?","common.warningAlt":"Warning","common.checkoutAria":"Checkout","common.closeAria":"Close","common.networkLabel":"Network","common.coinLabel":"Coin","common.emailAddress":"Email address","common.enterEmail":"Enter email","common.country":"Country","common.selectCountry":"Select country","common.unitedStates":"United States","pay.withLydian":"Pay with Lydian","pay.withCrypto":"Pay With Crypto","header.youArePaying":"You're paying","header.paymentAmount":"Payment amount","wallet.chooseWallet":"Choose your crypto wallet","wallet.noSupportedWallet":"I don't have a supported wallet","wallet.manualQrName":"Manual QR Code","wallet.connectingTo":"Connecting to {wallet}","wallet.approveInApp":"Open the {wallet} app and approve the connection request.","wallet.openFailedHint":"Didn't see {wallet} open? Make sure it's installed, then open it manually and approve the request.","wallet.install":"Install {wallet}","wallet.connectNamed":"Connect {wallet}","wallet.scanToConnect":"Scan with your phone to connect with {wallet}.","wallet.downloadLydian":"Download Lydian","wallet.downloadLydianDescription":"Download the Lydian Wallet to easily load funds, manage your assets, and make seamless payments with crypto.","wallet.downloadFromAppStore":"Download from the App Store","wallet.backToWallets":"Back to wallets","asset.chooseCoin":"Choose a coin","network.chooseNetwork":"Choose a network","network.walletSupportWarning":"Please make sure you choose a network that your crypto wallet supports.","network.recommended":"RECOMMENDED","network.fee":"Network fee: {fee}","kyc.additionalInfoRequired":"Additional info required","kyc.stepBasic":"Basic details","kyc.stepAddress":"Address","kyc.stepDocument":"Verification document","kyc.firstNamesLabel":"First names","kyc.firstNamesPlaceholder":"Enter first names","kyc.lastNameLabel":"Last name","kyc.lastNamePlaceholder":"Enter last name","kyc.streetLabel":"Street address","kyc.streetPlaceholder":"Enter street address","kyc.cityLabel":"City","kyc.cityPlaceholder":"Enter city","kyc.regionLabel":"State / Region","kyc.regionPlaceholder":"Enter state or region","kyc.postalCodeLabel":"ZIP / Postal code","kyc.postalCodePlaceholder":"Enter ZIP or postal code","kyc.documentTypeLabel":"Document type","kyc.documentTypeAria":"Document Type","kyc.docTypeIdCard":"Identity (ID) Card","kyc.docTypePassport":"Passport","kyc.docTypeResidencePermit":"Residence Permit","kyc.docTypeDrivers":"Drivers License","kyc.frontPage":"Front page","kyc.backPage":"Back page","kyc.fileHint":"PNG, JPG or PDF, up to 10 MB","kyc.saveInfo":"Securely save this info for next time","kyc.saveInfoDescription":"Next time, skip this step by entering the one-time code sent to your email.","scan.exactAmountNotice":"Send the exact amount on the correct network. Payments sent incorrectly can't be recovered.","scan.scanWithWallet":"Scan the QR code with your preferred wallet","scan.amountToPay":"Amount to pay","scan.remainingAmountToPay":"Remaining amount to pay","scan.subtotal":"Subtotal","scan.networkFee":"Network fee","scan.total":"Total","scan.walletAddress":"Wallet address","scan.exchangeRate":"1 {asset} = {amount}","timer.completePaymentWithin":"Complete payment within","timer.priceValidNote":"The crypto price is only valid during this time","underpaid.notice":"You haven't sent the full amount yet. Scan the QR code below to send the remaining balance.","underpaid.paymentProgress":"PAYMENT PROGRESS","underpaid.transactionAmount":"Transaction amount","underpaid.alreadyPaid":"Already paid","underpaid.remainingBalance":"Remaining balance","underpaid.paymentsReceived":"PAYMENTS RECEIVED","underpaid.paymentReceivedFallback":"Payment received","underpaid.ledgerValue":"{amount} {asset} on {network}","underpaid.chooseDifferentAsset":"Choose Different Asset","success.title":"Payment Successful","success.overpaidNotice":"You transferred more than required. The excess will be returned within 24 hours, minus any applicable gas fees.","success.transactionDetails":"TRANSACTION DETAILS","success.transactionId":"Transaction ID","success.paymentDate":"Payment date","success.paymentMethod":"Payment method","success.paymentDetails":"PAYMENT DETAILS","success.currency":"Currency","success.subtotal":"Subtotal","success.exchangeRate":"Exchange rate","success.overpayment":"Overpayment","success.amountToBeReturned":"Amount to be returned","success.totalAmountPaid":"Total amount paid","success.cryptoMethod":"Crypto – {asset} on {network}","failure.title":"We couldn't complete your payment","failure.paymentId":"Payment ID","failure.copyPaymentId":"Copy payment ID","restore.title":"Restore Details","restore.emailPrompt":"Enter your email to receive a one-time code and restore your saved details.","restore.sendCode":"Send code","restore.otpPrompt":"Enter the 6-digit code we sent to","restore.digitLabel":"Digit {index}","restore.somethingWentWrong":"Something went wrong","restore.sendingCode":"Sending code...","restore.verifyingCode":"Verifying code...","restore.unableToSendCode":"Unable to send code.","restore.unableToVerifyCode":"Unable to verify code.","modal.areYouSure":"Are you sure?","modal.closeDescription":"Are you sure you want to cancel this payment? If you continue, you will lose any progress you have made.","modal.goBackToTransaction":"Go Back to Transaction","modal.cancelAndForfeitTitle":"Cancel Transaction and Forfeit Funds","modal.forfeitDescription":"Are you sure you want to cancel this payment? If you continue, you will forfeit the {amount} USDT already transferred, and your order will not be placed.","copy.pressToCopy":"Press ⌘C","copy.copied":"Copied","copy.copyLabel":"Copy {label}","file.dragAndDrop":"Drag and drop or click to browse","file.dropzoneAria":"{label}. Drag and drop or click to browse","file.removeAria":"Remove {label}","file.sizeReady":"{size} MB, ready to upload","errors.assetNetworkRequired":"Asset and network selection required.","errors.notInitialized":"Lydian not initialized.","errors.paymentCouldNotComplete":"Your payment could not be completed. Please try again and choose an available payment method.","errors.unableToCollectUnderpaid":"Unable to collect underpaid amount.","errors.paymentTimedOut":"Your payment timed out. Please try again and choose an available payment method.","errors.unableToCreateSession":"Unable to start a checkout session.","errors.sdkNotInitialized":"SDK not initialized.","errors.unableToConnectWallet":"Unable to connect to your wallet. Please try again.","errors.walletNoAccount":"Your wallet didn't return a valid account. Please try again.","errors.transactionNotCompleted":"Transaction was not completed. It may have been rejected in your wallet.","errors.unableToCreateCryptoTransaction":"Unable to create cryptotransaction.","errors.cryptoTransactionNotCreated":"Crypto transaction not created..","errors.unableToVerifyDetails":"We could not verify your details. Please try again or contact support.","errors.unableToRestoreDetails":"Unable to restore your details. Please try again.","errors.couldNotRestoreDetails":"We could not restore your details. Please try again or contact support.","validation.emailRequired":"Please enter your email address.","validation.firstNameRequired":"Please enter your first name.","validation.lastNameRequired":"Please enter your last name.","validation.countryRequired":"Please select your country.","validation.streetRequired":"Please enter your street address.","validation.cityRequired":"Please enter your city.","validation.regionRequired":"Please enter your state or region.","validation.postalCodeRequired":"Please enter your ZIP or postal code.","validation.documentFrontRequired":"Please upload the front image of the document.","validation.documentBackRequired":"Please upload the back image of the document.","validation.emailOrCountryMissing":"Email or country is missing.","validation.invalidEmail":"Please enter a valid email address.","validation.customerDetailsMissing":"Customer details are missing.","validation.kycMissingDetails":"KYC validation is missing required details. Please complete all the required details.","validation.invalidOtp":"Please enter a valid 6-digit code.","terms.notice":'By continuing, you agree to Lydian <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Terms and Conditions</a> and understand your data will be processed according to the <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Privacy Notice</a>.'}},M1="en";let X_=M1;function re(t,e){var s;const n=((s=O1[X_])==null?void 0:s[t])??O1[M1][t]??t;return e?n.replace(/\{(\w+)\}/g,(i,r)=>e[r]!=null?String(e[r]):`{${r}}`):n}class Bd{constructor(e,n){if(this.baseUri=e,this.publishableKey=n,!this.baseUri)throw new Error("baseUri is required");if(!this.publishableKey)throw new Error("publishableKey is required")}async request(e,n){const s=`${this.baseUri}${e}`,i={"Content-Type":"application/json","X-Publishable-Key":`${this.publishableKey}`},r=Object.assign({},n,{headers:i}),o=await fetch(s,r);if(o.ok)return await o.json();throw new Error(o.statusText)}async requestText(e,n){const s=`${this.baseUri}${e}`,i={"Content-Type":"application/json","X-Publishable-Key":`${this.publishableKey}`},r=Object.assign({},n,{headers:i}),o=await fetch(s,r);if(o.ok)return await o.text();throw new Error(o.statusText)}async requestWithFormData(e,n){const s=`${this.baseUri}${e}`,i={"X-Publishable-Key":`${this.publishableKey}`},r=Object.assign({},n,{headers:i}),o=await fetch(s,r);if(o.ok)return await o.json();throw new Error(o.statusText)}}const Pd="transaction";class Q_ extends Bd{async getCryptoTransaction(e){return await this.request(`/${Pd}/${e}`)}async createPaymentRequest(e,n){return await this.request(`/${Pd}/${e}/payment`,{method:"POST",body:JSON.stringify(n)})}async cancelCryptoTransaction(e,n){return await this.request(`/${Pd}/${e}/cancel`,{method:"PATCH",body:JSON.stringify(n)})}async kycVerification(e,n){const s=new FormData;s.append("asset",n.asset),s.append("network",n.network),s.append("firstName",n.firstName),s.append("lastName",n.lastName),s.append("email",n.email),s.append("street",n.street),s.append("city",n.city),s.append("region",n.region),s.append("postalCode",n.postalCode),s.append("country",n.country),s.append("storeKYC",n.storeKYC?"true":"false"),n.documentType&&s.append("documentType",n.documentType);for(const i of n.documentFiles)s.append("documentFiles",i);return await this.requestWithFormData(`/${Pd}/${e}/verification`,{method:"POST",body:s})}}function J_(t,e){e.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(s=>{const i=Object.getOwnPropertyDescriptor(n.prototype,s);i&&Object.defineProperty(t.prototype,s,i)})})}const N1="customer/otp";class eC extends Bd{async sendCustomerOTP(e){return await this.requestText(`/${N1}`,{method:"PATCH",body:JSON.stringify(e)})}async authenticateCustomerOTP(e){return await this.request(`/${N1}`,{method:"PUT",body:JSON.stringify(e)})}}const Od="session";class tC extends Bd{async createSession(e){return await this.request(`/${Od}`,{method:"POST",body:JSON.stringify(e)})}async getSession(e){return await this.request(`/${Od}/${e}`)}async createSessionTransaction(e,n){return await this.request(`/${Od}/${e}/transaction`,{method:"POST",body:JSON.stringify(n)})}async cancelSession(e){return await this.requestText(`/${Od}/${e}/cancel`,{method:"PATCH"})}}class L1 extends Bd{}J_(L1,[Q_,eC,tC]);const nC=L1;var Zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function F1(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,i.get?i:{enumerable:!0,get:function(){return t[s]}})}),n}var Bc={exports:{}},$1;function sC(){if($1)return Bc.exports;$1=1,Bc.exports=s,Bc.exports.isMobile=s,Bc.exports.default=s;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e=/CrOS/,n=/android|ipad|playbook|silk/i;function s(i){i||(i={});let r=i.ua;if(!r&&typeof navigator<"u"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let o=t.test(r)&&!e.test(r)||!!i.tablet&&n.test(r);return!o&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(o=!0),o}return Bc.exports}var iC=sC();const U1=wr(iC);var To={},vr={},Md={},Do={},bp={},z1;function rC(){return z1||(z1=1,Object.defineProperty(bp,"__esModule",{value:!0})),bp}var wp={},j1;function oC(){return j1||(j1=1,Object.defineProperty(wp,"__esModule",{value:!0})),wp}var vp={},q1;function aC(){return q1||(q1=1,Object.defineProperty(vp,"__esModule",{value:!0})),vp}var Ep={},H1;function cC(){return H1||(H1=1,Object.defineProperty(Ep,"__esModule",{value:!0})),Ep}var xp={},K1;function lC(){return K1||(K1=1,Object.defineProperty(xp,"__esModule",{value:!0})),xp}var Nd={},W1;function dC(){if(W1)return Nd;W1=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.classnames=r;const t=o=>Object.entries(o).map(([a,c])=>c&&a),e=o=>!!o,n=(o,a,c)=>c.indexOf(o)===a,s=[];function i(o){return o?typeof o=="string"?[o]:Array.isArray(o)?o.flatMap(i).filter(e):t(o).filter(e):s}function r(o){const a=i(o).filter(n);return a.length>0?a.join(" "):void 0}return Nd}var V1;function uC(){return V1||(V1=1,(function(t){var e=Do&&Do.__createBinding||(Object.create?(function(s,i,r,o){o===void 0&&(o=r);var a=Object.getOwnPropertyDescriptor(i,r);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[r]}}),Object.defineProperty(s,o,a)}):(function(s,i,r,o){o===void 0&&(o=r),s[o]=i[r]})),n=Do&&Do.__exportStar||function(s,i){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(i,r)&&e(i,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(rC(),t),n(oC(),t),n(aC(),t),n(cC(),t),n(lC(),t),n(dC(),t)})(Do)),Do}var G1;function Y1(){if(G1)return Md;G1=1,Object.defineProperty(Md,"__esModule",{value:!0}),Md.setAttributes=s;const t=uC();function e(i,r){for(const o of Object.keys(i))o in r&&(r[o]=i[o])}const n=new RegExp("^on\\p{Lu}","u");function s(i,r){for(const o of Object.keys(r)){if(o==="__source"||o==="__self"||o==="tsxTag")continue;const a=r[o];if(o==="class"){const c=(0,t.classnames)(a);c&&i.setAttribute(o,c)}else if(o==="ref")a.current=i;else if(n.test(o)){const c=o.replace(/Capture$/,""),l=o!==c,d=c.toLowerCase().substring(2);i.addEventListener(d,a,l)}else o==="style"&&typeof a!="string"?e(a,i.style):o==="dangerouslySetInnerHTML"?i.innerHTML=a:a===!0?i.setAttribute(o,o):(a||a===0||a==="")&&i.setAttribute(o,a.toString())}}return Md}var Ta={},Z1;function X1(){if(Z1)return Ta;Z1=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.applyChildren=e,Ta.createDomElement=n,Ta.applyTsxTag=s;function t(i,r){r instanceof Element?i.appendChild(r):typeof r=="string"||typeof r=="number"?i.appendChild(document.createTextNode(r.toString())):console.warn("Unknown type to append: ",r)}function e(i,r){for(const o of r)!o&&o!==0||(Array.isArray(o)?e(i,o):t(i,o))}function n(i,r){const o=r!=null&&r.is?{is:r.is}:void 0;return r!=null&&r.xmlns?document.createElementNS(r.xmlns,i,o):document.createElement(i,o)}function s(i,r){let o=i,a=r;return a&&"tsxTag"in a&&(o=a.tsxTag,!a.is&&i.includes("-")&&(a={...a,is:i})),{finalTag:o,finalAttrs:a}}return Ta}var Q1;function hC(){if(Q1)return vr;Q1=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.createRef=vr.h=void 0,vr.createElement=n;const t=Y1(),e=X1();function n(i,r,...o){if(typeof i=="function")return i({...r,children:o});const{finalTag:a,finalAttrs:c}=(0,e.applyTsxTag)(i,r),l=(0,e.createDomElement)(a,c);return c&&(0,t.setAttributes)(l,c),(0,e.applyChildren)(l,o),l}vr.h=n;const s=()=>({current:null});return vr.createRef=s,vr}var Ld={},Da={},J1;function ew(){if(J1)return Da;J1=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.jsx=n,Da.jsxs=n,Da.jsxDEV=n;const t=Y1(),e=X1();function n(s,i){if(typeof s=="function")return s(i);const{children:r,...o}=i,{finalTag:a,finalAttrs:c}=(0,e.applyTsxTag)(s,o),l=(0,e.createDomElement)(a,c);return(0,t.setAttributes)(l,c),(0,e.applyChildren)(l,[r]),l}return Da}var tw;function fC(){if(tw)return Ld;tw=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.defineCustomElement=e;const t=ew();function e(n,s,i){return customElements.define(n,s,i),r=>(0,t.jsx)(n,r)}return Ld}var kp={},nw;function pC(){return nw||(nw=1,Object.defineProperty(kp,"__esModule",{value:!0})),kp}var sw;function mC(){return sw||(sw=1,(function(t){var e=To&&To.__createBinding||(Object.create?(function(s,i,r,o){o===void 0&&(o=r);var a=Object.getOwnPropertyDescriptor(i,r);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[r]}}),Object.defineProperty(s,o,a)}):(function(s,i,r,o){o===void 0&&(o=r),s[o]=i[r]})),n=To&&To.__exportStar||function(s,i){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(i,r)&&e(i,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(hC(),t),n(fC(),t),n(ew(),t),n(pC(),t)})(To)),To}var J=mC();function iw({id:t,imageUrl:e,imageAlt:n,label:s,secondaryLabel:i,secondaryValue:r,trailingNote:o,badgeLabel:a}){return J.h("button",{id:t,class:"w-full my-2 bg-gray-100 p-4 rounded-xl text-left hover:opacity-80 flex flex-col gap-1.5"},a&&J.h("span",{class:"self-start inline-flex h-4 items-center rounded-full bg-black px-1.5 text-[10px] font-bold tracking-wide text-white"},a),J.h("div",{class:"flex flex-row items-center w-full gap-3"},J.h("img",{src:e,alt:n,class:"h-8 w-8 rounded-full"}),J.h("span",{class:"grow font-bold text-base"},s),i&&J.h("span",{class:"shrink-0 flex flex-row items-center gap-1"},J.h("span",{class:"text-sm font-medium text-gray-500"},i),r&&J.h("span",{class:"text-base font-bold"},r)),o&&J.h("span",{class:"shrink-0 whitespace-nowrap text-xs font-medium text-gray-600"},o))).outerHTML}function gC(t,e){return iw({id:`btnAsset${t.code}`,imageUrl:t.img,imageAlt:t.title,label:t.title,secondaryLabel:t.code,secondaryValue:e})}const rw=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
112
+ `+Vs),ve&&(Vs=xa(Vs)),N&&Ie?q(Vs):Vs},e.setConfig=function(){let xe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};_c(xe),we=!0,Oe=j,qe=M},e.clearConfig=function(){fr=null,we=!1,Oe=null,qe=null,N=W,K=""},e.isValidAttribute=function(xe,Q,ae){fr||_c({});const be=at(xe),Te=at(Q);return Cd(be,Te,ae)},e.addHook=function(xe,Q){typeof Q=="function"&&Ot(B,xe)&&Aa(B[xe],Q)},e.removeHook=function(xe,Q){if(Ot(B,xe)){if(Q!==void 0){const ae=v7(B[xe],Q);return ae===-1?void 0:E7(B[xe],ae,1)[0]}return s1(B[xe])}},e.removeHooks=function(xe){Ot(B,xe)&&(B[xe]=[])},e.removeAllHooks=function(){B=m1()},e}var H7=g1(),K7="https://wallet-assets.lydian.com/wallets",W7=[{id:"metamask",name:"MetaMask",namespaces:["eip155"],isCustodial:!1},{id:"trust",name:"Trust",namespaces:["eip155","solana"],isCustodial:!1},{id:"rainbow",name:"Rainbow",namespaces:["eip155"],isCustodial:!1},{id:"coinbase",name:"Coinbase",namespaces:["eip155","solana"],isCustodial:!1},{id:"zerion",name:"Zerion",namespaces:["eip155"],isCustodial:!1},{id:"tokenpocket",name:"Token Pocket",namespaces:["eip155","solana"],isCustodial:!1},{id:"blockchaincom",name:"Blockchain.com",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"exodus",name:"Exodus",namespaces:["eip155","solana"],isCustodial:!1},{id:"phantom",name:"Phantom",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"okx",name:"OKX",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"cryptocom",name:"Crypto.com",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"argent",name:"Argent",namespaces:["eip155"],isCustodial:!1},{id:"safepal",name:"SafePal",namespaces:["eip155","solana","ton"],isCustodial:!1},{id:"imtoken",name:"imToken",namespaces:["eip155"],isCustodial:!1},{id:"ronin",name:"Ronin",namespaces:["eip155"],isCustodial:!1},{id:"coin98",name:"Coin98",namespaces:["eip155","solana"],isCustodial:!1},{id:"bitkeep",name:"Bitget Wallet",namespaces:["eip155","solana"],isCustodial:!1},{id:"1inch",name:"1inch",namespaces:["eip155","solana"],isCustodial:!1},{id:"ledgerlive",name:"Ledger Live",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"atomic",name:"Atomic",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"alpha",name:"Alpha",namespaces:["eip155"],isCustodial:!1},{id:"math",name:"Math",namespaces:["eip155","solana"],isCustodial:!1},{id:"bitpay",name:"BitPay",namespaces:["eip155"],isCustodial:!1},{id:"rabby",name:"Rabby",namespaces:["eip155"],isCustodial:!1},{id:"bybit",name:"Bybit",namespaces:["eip155","solana"],isCustodial:!1},{id:"binance",name:"Binance",namespaces:["eip155","solana"],isCustodial:!1},{id:"gate",name:"Gate Wallet",namespaces:["eip155"],isCustodial:!1},{id:"core",name:"Core",namespaces:["eip155","solana"],isCustodial:!1},{id:"backpack",name:"Backpack",namespaces:["eip155","solana"],isCustodial:!1},{id:"frontier",name:"Frontier",namespaces:["eip155"],isCustodial:!1},{id:"onekey",name:"OneKey",namespaces:["eip155"],isCustodial:!1},{id:"kraken",name:"Kraken",namespaces:["eip155","solana"],isCustodial:!1},{id:"uniswap",name:"Uniswap Wallet",namespaces:["eip155"],isCustodial:!1},{id:"omni",name:"Omni",namespaces:["eip155"],isCustodial:!1},{id:"mew",name:"MEW Wallet",namespaces:["eip155"],isCustodial:!1},{id:"foxwallet",name:"FoxWallet",namespaces:["eip155"],isCustodial:!1},{id:"nova",name:"Nova Wallet",namespaces:["eip155"],isCustodial:!1},{id:"subwallet",name:"SubWallet",namespaces:["eip155"],isCustodial:!1},{id:"safe",name:"Safe",namespaces:["eip155"],isCustodial:!1},{id:"robinhood",name:"Robinhood Wallet",namespaces:["eip155"],isCustodial:!1},{id:"tangem",name:"Tangem",namespaces:["eip155","solana"],isCustodial:!1},{id:"trezor",name:"Trezor",namespaces:["bip122","eip155","solana"],isCustodial:!1},{id:"kucoin",name:"KuCoin",namespaces:["eip155","solana"],isCustodial:!1},{id:"jupiter",name:"Jupiter",namespaces:["solana"],isCustodial:!1},{id:"zengo",name:"Zengo",namespaces:["eip155"],isCustodial:!1},{id:"bitcoincom",name:"Bitcoin.com",namespaces:["eip155"],isCustodial:!1},{id:"keplr",name:"Keplr",namespaces:["eip155"],isCustodial:!1},{id:"cake",name:"Cake Wallet",namespaces:["eip155","solana"],isCustodial:!1},{id:"unstoppable",name:"Unstoppable",namespaces:["eip155"],isCustodial:!1},{id:"bifrost",name:"Bifrost",namespaces:["bip122","eip155"],isCustodial:!1},{id:"pintu",name:"Pintu",namespaces:["eip155"],isCustodial:!1},{id:"hot",name:"HOT Wallet",namespaces:["eip155","solana"],isCustodial:!1},{id:"arculus",name:"Arculus",namespaces:["bip122","eip155","solana"],isCustodial:!1}],V7={metamask:{rdns:"io.metamask",extensionUrl:"https://chromewebstore.google.com/detail/metamask/nkbihfbeogaeaoehlefnkodbefgpgknn"},trust:{rdns:"com.trustwallet.app",extensionUrl:"https://chromewebstore.google.com/detail/trust-wallet/egjidjbpglichdcondbcbdnbeeppgdph"},rabby:{rdns:"io.rabby",extensionUrl:"https://chromewebstore.google.com/detail/rabby-wallet/acmacodkjbdgmoleebolmdjonilkdbch"},okx:{rdns:"com.okex.wallet",extensionUrl:"https://chromewebstore.google.com/detail/okx-wallet/mcohilncbfahbmgdjkbpemcciiolgcge"},phantom:{rdns:"app.phantom",extensionUrl:"https://chromewebstore.google.com/detail/phantom/bfnaelmomeimhlpmgjnjophhpkkoljpa"},zerion:{rdns:"io.zerion",extensionUrl:"https://chromewebstore.google.com/detail/zerion-wallet-crypto-defi/klghhnkeealcohjjanjjdaeeggmfmlpl"},rainbow:{rdns:"me.rainbow",extensionUrl:"https://chromewebstore.google.com/detail/rainbow/opfgelmcmbiajamepnmloijbpoleiama"}},G7=W7.map(t=>({...t,iconUrl:`${K7}/${t.id}.png`,...V7[t.id]??{}}));const Id=-3,Y7=0,Z7=1,X7=1,Q7=3,J7=0,y1=1,e_="https://api.lydian.dev",t_="https://api.sandbox.lydian.com",n_="https://api.lydian.com",s_="https://pay.lydian.com/lydian-wordmark-aqua-2.svg",b1=["lydian.com","lydian.dev"],i_=[...b1,"fonts.googleapis.com","fonts.gstatic.com"],r_="https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap",w1="lydian-default-font",o_="ARB",a_="BASE",v1="BTC",c_="CELO",E1="DAI",x1="ETH",l_="LINEA",d_="OPMAINNET",u_="POLY",k1="PYUSD",S1="RLUSD",_1="SOL",h_="SONIC",f_="UNICHAIN",C1="USDC",A1="USDe",T1="USDP",D1="USDS",I1="USDT",p_="ZKSYNC",br=2,cs=4,yn=18,mp=6,m_=9,g_=8,R1=["ethereum","arbitrum","base","celo","opmainnet","polygon","sonic","unichain","zksync","solana"],y_={code:"USDT",title:"USDT (Tether)",img:"https://tetherpay.com/images/7065960c-8ebd-4d80-f352-8027ff2bb600/public",type:"token",precision:br,decimals:mp,networks:[]},b_={code:"USDC",title:"USDC",img:"https://tetherpay.com/images/1a664446-0855-4d6d-256e-ad886acba300/public",type:"token",precision:br,decimals:mp,networks:[]},w_={code:"ETH",title:"Ethereum",img:"https://tetherpay.com/images/327ef8ac-bc72-46ea-2362-878e91c49300/public",type:"coin",precision:cs,decimals:yn,networks:[]},v_={code:"SOL",title:"Solana",img:"https://tetherpay.com/images/5850fc57-4451-4f45-b053-3857b1d54e00/public",type:"coin",precision:cs,decimals:m_,networks:[]},E_={code:"BTC",title:"Bitcoin",img:"https://tetherpay.com/images/7f89f493-190a-41da-2410-a19b46a68900/public",type:"coin",precision:cs,decimals:g_,networks:[]},x_={code:"ARB",title:"Arbitrum",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/64d896c2-6ac6-4837-e6bf-e05c53a5f500/public",type:"coin",precision:cs,decimals:yn,networks:[]},k_={code:"BASE",title:"Base",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/3fc7c8ef-6863-43e6-967d-de68e14d4600/public",type:"coin",precision:cs,decimals:yn,networks:[]},S_={code:"CELO",title:"Celo ",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/7373a7f6-b5dd-4d16-0b98-cbaf9e666300/public",type:"coin",precision:cs,decimals:yn,networks:[]},__={code:"linea",title:"Linea",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/410a3ea8-d59b-4e88-1c1a-ffa77c157600/public",type:"coin",precision:cs,decimals:yn,networks:[]},C_={code:"opmainnet",title:"OP Mainnet",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/cd28b090-e932-478e-2a40-7b7d61672d00/public",type:"coin",precision:cs,decimals:yn,networks:[]},A_={code:"polygon",title:"Polygon",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/386bebc7-3782-4358-978d-ae2b2d4fbf00/public",type:"coin",precision:cs,decimals:yn,networks:[]},T_={code:"sonic",title:"Sonic",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/e9eaf9b0-3093-4239-d20b-a0c5934ec200/public",type:"coin",precision:cs,decimals:yn,networks:[]},D_={code:"unichain",title:"Unichain",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/f4c4d2e6-d9a4-4910-febc-ed6de61bd400/public",type:"coin",precision:cs,decimals:yn,networks:[]},I_={code:"zksync",title:"ZKsync",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/540fbd94-e1d0-4dda-c6d1-426181f37e00/public",type:"coin",precision:cs,decimals:yn,networks:[]},R_={code:"RLUSD",title:"RLUSD (Ripple USD)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/b71545a6-eab8-4fa2-5888-f26c22ce7f00/public",type:"token",precision:br,decimals:yn,networks:[]},B_={code:"PYUSD",title:"PYUSD (PayPal USD)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/3897aafa-0fd9-4914-ef54-e6312aea9a00/public",type:"token",precision:br,decimals:mp,networks:[]},P_={code:"USDe",title:"USDe (Ethena USDe)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/76760e01-ce5a-482b-88e0-842f18370d00/public",type:"token",precision:br,decimals:yn,networks:[]},O_={code:"USDS",title:"USDS (Sky Dollar)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/ee62374d-99a1-46c7-9fc6-eb5907a32600/public",type:"token",precision:br,decimals:yn,networks:[]},M_={code:"DAI",title:"DAI",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/970875a7-3ae3-4171-4afe-cc1340bf9500/public",type:"token",precision:br,decimals:yn,networks:[]},N_={code:"USDP",title:"USDP (Pax Dollar)",img:"https://imagedelivery.net/PC9Gitw-w-Qpo5uwdjlmgw/970875a7-3ae3-4171-4afe-cc1340bf9500/public",type:"token",precision:br,decimals:yn,networks:[]},B1={[o_]:x_,[a_]:k_,[v1]:E_,[c_]:S_,[E1]:M_,[x1]:w_,[l_]:__,[d_]:C_,[u_]:A_,[k1]:B_,[S1]:R_,[_1]:v_,[h_]:T_,[f_]:D_,[C1]:b_,[A1]:P_,[T1]:N_,[D1]:O_,[I1]:y_,[p_]:I_},L_=[v1,x1,I1,C1,_1,S1,k1,A1,D1,E1,T1],F_=["eth_sendTransaction","personal_sign","eth_signTypedData","eth_sign"],$_=["accountsChanged","chainChanged"],U_=["solana_signTransaction","solana_signAndSendTransaction","solana_signMessage"],z_="solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp";function Ti(t,e){return{code:t,namespace:"eip155",chains:[`eip155:${e}`],methods:F_,events:$_,technicalStandard:"ERC-20"}}const gp={ethereum:Ti("ethereum",1),arbitrum:Ti("arbitrum",42161),base:Ti("base",8453),celo:Ti("celo",42220),opmainnet:Ti("opmainnet",10),polygon:Ti("polygon",137),sonic:Ti("sonic",146),unichain:Ti("unichain",130),zksync:Ti("zksync",324),solana:{code:"solana",namespace:"solana",chains:[z_],methods:U_,events:[],technicalStandard:"SPL"}},j_={ethereum:{USDC:"0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",USDT:"0xdac17f958d2ee523a2206206994597c13d831ec7",DAI:"0x6b175474e89094c44da98b954eedeac495271d0f",PYUSD:"0x6c3ea9036406852006290770bedfcaba0e23a0e8",RLUSD:"0x8292bb45bf1ee4d140127049757c2e0ff06317ed",USDP:"0x8e870d67f660d95d5be530380d0ec0bd388289e1",USDe:"0x4c9edd5852cd905f086c759e8383e09bff1e68b3"},arbitrum:{USDT:"0xfd086bc7cd5c481dcc9c85ebe478a1c0b69fcbb9",USDC:"0xaf88d065e77c8cc2239327c5edb3a432268e5831",PYUSD:"0x46850ad61c2b7d64d08c9c754f45254596696984",DAI:"0xda10009cbd5d07dd0cecc66161fc93d7c9000da1"},base:{USDT:"0xfde4c96c8593536e31f229ea8f37b2ada2699bb2",USDC:"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913",DAI:"0x50c5725949a6f0c72e6c4a641f24049a917db0cb"},celo:{USDT:"0x48065fbbe25f71c9282ddf5e1cd6d6a887483d5e",USDC:"0xceba9300f2b948710d2653dd7b07f33a8b32118c"},opmainnet:{USDC:"0x0b2c639c533813f4aa9d7837caf62653d097ff85",USDT:"0x94b008aa00579c1307b0ef2c499ad98a8ce58e58"},polygon:{USDT:"0xc2132d05d31c914a87c6611c10748aeb04b58e8f",USDC:"0x3c499c542cef5e3811e1192ce70d8cc03d5c3359",DAI:"0x8f3cf7ad23cd3cadbd9735aff958023239c6a063"},sonic:{USDC:"0x29219dd400f2bf60e5a23d13be72b486d4038894",USDT:"0x6047828dc181963ba44974801ff68e538da5eaf9"},unichain:{USDC:"0x078d782b760474a361dda0af3839290b0ef57ad6"},zksync:{USDC:"0x1d17cbcf0d6d143135ae902365d2e5e2a16538d4",USDT:"0x493257fd37edb34451f62edf8d2a0c418852ba4c",DAI:"0x4b9eb6c0b6ea15176bbf62841c6b2a8a398cb656"},solana:{USDC:"EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",USDT:"Es9vMFrzaCERmJfrF4H2FYD4KCoNkY11McCe8BenwNYB"}};function q_(t,e){var n;return(n=j_[t])==null?void 0:n[e]}const Rd="manual",H_=G7.map(t=>({id:t.id,name:t.name,img:t.iconUrl,networks:R1.map(e=>gp[e]).filter(e=>e&&t.namespaces.includes(e.namespace))})).filter(t=>t.networks.length>0),K_={ALLOWED_TAGS:["a","b","i","em","strong","span","br"],ALLOWED_ATTR:["href","target","rel"],RETURN_DOM_FRAGMENT:!0},yp=t=>!!t&&/^#[0-9a-fA-F]{3,8}$|^(?:rgb|rgba|hsl|hsla)\([\d.,%/\s]+\)$/.test(t.trim()),W_=t=>!!t&&t.length<=100&&/^[\w\s"',-]+$/.test(t),P1=(t,e)=>{if(!t)return!1;try{const n=new URL(t);return n.protocol==="https:"&&e.some(s=>n.hostname===s||n.hostname.endsWith(`.${s}`))}catch{return!1}},V_=t=>P1(t,i_),G_=t=>P1(t,b1),Y_=t=>G_(t)?t:s_,Z_=t=>{const e=H7.sanitize(t,K_);e.querySelectorAll("a[target]").forEach(s=>s.setAttribute("rel","noopener noreferrer"));const n=document.createElement("div");return n.append(e),n.innerHTML},O1={en:{"common.cancelTransaction":"Cancel Transaction","common.cancel":"Cancel","common.close":"Close","common.done":"Done","common.continue":"Continue","common.retry":"Retry","common.verify":"Verify","common.needHelp":"Need help?","common.warningAlt":"Warning","common.checkoutAria":"Checkout","common.closeAria":"Close","common.networkLabel":"Network","common.coinLabel":"Coin","common.emailAddress":"Email address","common.enterEmail":"Enter email","common.country":"Country","common.selectCountry":"Select country","common.unitedStates":"United States","pay.withLydian":"Pay with Lydian","pay.withCrypto":"Pay With Crypto","header.youArePaying":"You're paying","header.paymentAmount":"Payment amount","wallet.chooseWallet":"Choose your crypto wallet","wallet.noSupportedWallet":"I don't have a supported wallet","wallet.manualQrName":"Manual QR Code","wallet.connectingTo":"Connecting to {wallet}","wallet.approveInApp":"Open the {wallet} app and approve the connection request.","wallet.openFailedHint":"Didn't see {wallet} open? Make sure it's installed, then open it manually and approve the request.","wallet.install":"Install {wallet}","wallet.connectNamed":"Connect {wallet}","wallet.scanToConnect":"Scan with your phone to connect with {wallet}.","wallet.downloadLydian":"Download Lydian","wallet.downloadLydianDescription":"Download the Lydian Wallet to easily load funds, manage your assets, and make seamless payments with crypto.","wallet.downloadFromAppStore":"Download from the App Store","wallet.backToWallets":"Back to wallets","asset.chooseCoin":"Choose a coin","network.chooseNetwork":"Choose a network","network.walletSupportWarning":"Please make sure you choose a network that your crypto wallet supports.","network.recommended":"RECOMMENDED","network.fee":"Network fee: {fee}","kyc.additionalInfoRequired":"Additional info required","kyc.stepBasic":"Basic details","kyc.stepAddress":"Address","kyc.stepDocument":"Verification document","kyc.firstNamesLabel":"Legal Name","kyc.firstNamesPlaceholder":"Enter legal name","kyc.lastNameLabel":"Last name","kyc.lastNamePlaceholder":"Enter last name","kyc.streetLabel":"Street address","kyc.streetPlaceholder":"Enter street address","kyc.cityLabel":"City","kyc.cityPlaceholder":"Enter city","kyc.regionLabel":"State / Region","kyc.regionPlaceholder":"Enter state or region","kyc.postalCodeLabel":"ZIP / Postal code","kyc.postalCodePlaceholder":"Enter ZIP or postal code","kyc.documentTypeLabel":"Document type","kyc.documentTypeAria":"Document Type","kyc.docTypeIdCard":"Identity (ID) Card","kyc.docTypePassport":"Passport","kyc.docTypeResidencePermit":"Residence Permit","kyc.docTypeDrivers":"Drivers License","kyc.frontPage":"Front page","kyc.backPage":"Back page","kyc.fileHint":"PNG, JPG or PDF, up to 10 MB","kyc.saveInfo":"Securely save this info for next time","kyc.saveInfoDescription":"Next time, skip this step by entering the one-time code sent to your email.","scan.exactAmountNotice":"Send the exact amount on the correct network. Payments sent incorrectly can't be recovered.","scan.scanWithWallet":"Scan the QR code with your preferred wallet","scan.amountToPay":"Amount to pay","scan.remainingAmountToPay":"Remaining amount to pay","scan.subtotal":"Subtotal","scan.networkFee":"Network fee","scan.total":"Total","scan.walletAddress":"Wallet address","scan.exchangeRate":"1 {asset} = {amount}","timer.completePaymentWithin":"Complete payment within","timer.priceValidNote":"The crypto price is only valid during this time","underpaid.notice":"You haven't sent the full amount yet. Scan the QR code below to send the remaining balance.","underpaid.paymentProgress":"PAYMENT PROGRESS","underpaid.transactionAmount":"Transaction amount","underpaid.alreadyPaid":"Already paid","underpaid.remainingBalance":"Remaining balance","underpaid.paymentsReceived":"PAYMENTS RECEIVED","underpaid.paymentReceivedFallback":"Payment received","underpaid.ledgerValue":"{amount} {asset} on {network}","underpaid.chooseDifferentAsset":"Choose Different Asset","success.title":"Payment Successful","success.overpaidNotice":"You transferred more than required. The excess will be returned within 24 hours, minus any applicable gas fees.","success.transactionDetails":"TRANSACTION DETAILS","success.transactionId":"Transaction ID","success.paymentDate":"Payment date","success.paymentMethod":"Payment method","success.paymentDetails":"PAYMENT DETAILS","success.currency":"Currency","success.subtotal":"Subtotal","success.exchangeRate":"Exchange rate","success.overpayment":"Overpayment","success.amountToBeReturned":"Amount to be returned","success.totalAmountPaid":"Total amount paid","success.cryptoMethod":"Crypto – {asset} on {network}","failure.title":"We couldn't complete your payment","failure.paymentId":"Payment ID","failure.copyPaymentId":"Copy payment ID","restore.title":"Restore Details","restore.emailPrompt":"Enter your email to receive a one-time code and restore your saved details.","restore.sendCode":"Send code","restore.otpPrompt":"Enter the 6-digit code we sent to","restore.digitLabel":"Digit {index}","restore.somethingWentWrong":"Something went wrong","restore.sendingCode":"Sending code...","restore.verifyingCode":"Verifying code...","restore.unableToSendCode":"Unable to send code.","restore.unableToVerifyCode":"Unable to verify code.","modal.areYouSure":"Are you sure?","modal.closeDescription":"Are you sure you want to cancel this payment? If you continue, you will lose any progress you have made.","modal.goBackToTransaction":"Go Back to Transaction","modal.cancelAndForfeitTitle":"Cancel Transaction and Forfeit Funds","modal.forfeitDescription":"Are you sure you want to cancel this payment? If you continue, you will forfeit the {amount} USDT already transferred, and your order will not be placed.","copy.pressToCopy":"Press ⌘C","copy.copied":"Copied","copy.copyLabel":"Copy {label}","file.dragAndDrop":"Drag and drop or click to browse","file.dropzoneAria":"{label}. Drag and drop or click to browse","file.removeAria":"Remove {label}","file.sizeReady":"{size} MB, ready to upload","errors.assetNetworkRequired":"Asset and network selection required.","errors.notInitialized":"Lydian not initialized.","errors.paymentCouldNotComplete":"Your payment could not be completed. Please try again and choose an available payment method.","errors.unableToCollectUnderpaid":"Unable to collect underpaid amount.","errors.paymentTimedOut":"Your payment timed out. Please try again and choose an available payment method.","errors.unableToCreateSession":"Unable to start a checkout session.","errors.sdkNotInitialized":"SDK not initialized.","errors.unableToConnectWallet":"Unable to connect to your wallet. Please try again.","errors.walletNoAccount":"Your wallet didn't return a valid account. Please try again.","errors.transactionNotCompleted":"Transaction was not completed. It may have been rejected in your wallet.","errors.unableToCreateCryptoTransaction":"Unable to create cryptotransaction.","errors.cryptoTransactionNotCreated":"Crypto transaction not created..","errors.unableToVerifyDetails":"We could not verify your details. Please try again or contact support.","errors.unableToRestoreDetails":"Unable to restore your details. Please try again.","errors.couldNotRestoreDetails":"We could not restore your details. Please try again or contact support.","validation.emailRequired":"Please enter your email address.","validation.firstNameRequired":"Please enter your legal name.","validation.lastNameRequired":"Please enter your last name.","validation.countryRequired":"Please select your country.","validation.streetRequired":"Please enter your street address.","validation.cityRequired":"Please enter your city.","validation.regionRequired":"Please enter your state or region.","validation.postalCodeRequired":"Please enter your ZIP or postal code.","validation.documentFrontRequired":"Please upload the front image of the document.","validation.documentBackRequired":"Please upload the back image of the document.","validation.emailOrCountryMissing":"Email or country is missing.","validation.invalidEmail":"Please enter a valid email address.","validation.customerDetailsMissing":"Customer details are missing.","validation.kycMissingDetails":"KYC validation is missing required details. Please complete all the required details.","validation.invalidOtp":"Please enter a valid 6-digit code.","terms.notice":'By continuing, you agree to Lydian <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Terms and Conditions</a> and understand your data will be processed according to the <a href="https://lydian.com/privacy" target="_blank" rel="noopener noreferrer">Privacy Notice</a>.'}},M1="en";let X_=M1;function re(t,e){var s;const n=((s=O1[X_])==null?void 0:s[t])??O1[M1][t]??t;return e?n.replace(/\{(\w+)\}/g,(i,r)=>e[r]!=null?String(e[r]):`{${r}}`):n}class Bd{constructor(e,n){if(this.baseUri=e,this.publishableKey=n,!this.baseUri)throw new Error("baseUri is required");if(!this.publishableKey)throw new Error("publishableKey is required")}async request(e,n){const s=`${this.baseUri}${e}`,i={"Content-Type":"application/json","X-Publishable-Key":`${this.publishableKey}`},r=Object.assign({},n,{headers:i}),o=await fetch(s,r);if(o.ok)return await o.json();throw new Error(o.statusText)}async requestText(e,n){const s=`${this.baseUri}${e}`,i={"Content-Type":"application/json","X-Publishable-Key":`${this.publishableKey}`},r=Object.assign({},n,{headers:i}),o=await fetch(s,r);if(o.ok)return await o.text();throw new Error(o.statusText)}async requestWithFormData(e,n){const s=`${this.baseUri}${e}`,i={"X-Publishable-Key":`${this.publishableKey}`},r=Object.assign({},n,{headers:i}),o=await fetch(s,r);if(o.ok)return await o.json();throw new Error(o.statusText)}}const Pd="transaction";class Q_ extends Bd{async getCryptoTransaction(e){return await this.request(`/${Pd}/${e}`)}async createPaymentRequest(e,n){return await this.request(`/${Pd}/${e}/payment`,{method:"POST",body:JSON.stringify(n)})}async cancelCryptoTransaction(e,n){return await this.request(`/${Pd}/${e}/cancel`,{method:"PATCH",body:JSON.stringify(n)})}async kycVerification(e,n){const s=new FormData;s.append("asset",n.asset),s.append("network",n.network),s.append("firstName",n.firstName),s.append("lastName",n.lastName),s.append("email",n.email),s.append("street",n.street),s.append("city",n.city),s.append("region",n.region),s.append("postalCode",n.postalCode),s.append("country",n.country),s.append("storeKYC",n.storeKYC?"true":"false"),n.documentType&&s.append("documentType",n.documentType);for(const i of n.documentFiles)s.append("documentFiles",i);return await this.requestWithFormData(`/${Pd}/${e}/verification`,{method:"POST",body:s})}}function J_(t,e){e.forEach(n=>{Object.getOwnPropertyNames(n.prototype).forEach(s=>{const i=Object.getOwnPropertyDescriptor(n.prototype,s);i&&Object.defineProperty(t.prototype,s,i)})})}const N1="customer/otp";class eC extends Bd{async sendCustomerOTP(e){return await this.requestText(`/${N1}`,{method:"PATCH",body:JSON.stringify(e)})}async authenticateCustomerOTP(e){return await this.request(`/${N1}`,{method:"PUT",body:JSON.stringify(e)})}}const Od="session";class tC extends Bd{async createSession(e){return await this.request(`/${Od}`,{method:"POST",body:JSON.stringify(e)})}async getSession(e){return await this.request(`/${Od}/${e}`)}async createSessionTransaction(e,n){return await this.request(`/${Od}/${e}/transaction`,{method:"POST",body:JSON.stringify(n)})}async cancelSession(e){return await this.requestText(`/${Od}/${e}/cancel`,{method:"PATCH"})}}class L1 extends Bd{}J_(L1,[Q_,eC,tC]);const nC=L1;var Zs=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function wr(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function F1(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var e=t.default;if(typeof e=="function"){var n=function s(){return this instanceof s?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};n.prototype=e.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(t).forEach(function(s){var i=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(n,s,i.get?i:{enumerable:!0,get:function(){return t[s]}})}),n}var Bc={exports:{}},$1;function sC(){if($1)return Bc.exports;$1=1,Bc.exports=s,Bc.exports.isMobile=s,Bc.exports.default=s;const t=/(android|bb\d+|meego).+mobile|armv7l|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|redmi|series[46]0|samsungbrowser.*mobile|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i,e=/CrOS/,n=/android|ipad|playbook|silk/i;function s(i){i||(i={});let r=i.ua;if(!r&&typeof navigator<"u"&&(r=navigator.userAgent),r&&r.headers&&typeof r.headers["user-agent"]=="string"&&(r=r.headers["user-agent"]),typeof r!="string")return!1;let o=t.test(r)&&!e.test(r)||!!i.tablet&&n.test(r);return!o&&i.tablet&&i.featureDetect&&navigator&&navigator.maxTouchPoints>1&&r.indexOf("Macintosh")!==-1&&r.indexOf("Safari")!==-1&&(o=!0),o}return Bc.exports}var iC=sC();const U1=wr(iC);var To={},vr={},Md={},Do={},bp={},z1;function rC(){return z1||(z1=1,Object.defineProperty(bp,"__esModule",{value:!0})),bp}var wp={},j1;function oC(){return j1||(j1=1,Object.defineProperty(wp,"__esModule",{value:!0})),wp}var vp={},q1;function aC(){return q1||(q1=1,Object.defineProperty(vp,"__esModule",{value:!0})),vp}var Ep={},H1;function cC(){return H1||(H1=1,Object.defineProperty(Ep,"__esModule",{value:!0})),Ep}var xp={},K1;function lC(){return K1||(K1=1,Object.defineProperty(xp,"__esModule",{value:!0})),xp}var Nd={},W1;function dC(){if(W1)return Nd;W1=1,Object.defineProperty(Nd,"__esModule",{value:!0}),Nd.classnames=r;const t=o=>Object.entries(o).map(([a,c])=>c&&a),e=o=>!!o,n=(o,a,c)=>c.indexOf(o)===a,s=[];function i(o){return o?typeof o=="string"?[o]:Array.isArray(o)?o.flatMap(i).filter(e):t(o).filter(e):s}function r(o){const a=i(o).filter(n);return a.length>0?a.join(" "):void 0}return Nd}var V1;function uC(){return V1||(V1=1,(function(t){var e=Do&&Do.__createBinding||(Object.create?(function(s,i,r,o){o===void 0&&(o=r);var a=Object.getOwnPropertyDescriptor(i,r);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[r]}}),Object.defineProperty(s,o,a)}):(function(s,i,r,o){o===void 0&&(o=r),s[o]=i[r]})),n=Do&&Do.__exportStar||function(s,i){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(i,r)&&e(i,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(rC(),t),n(oC(),t),n(aC(),t),n(cC(),t),n(lC(),t),n(dC(),t)})(Do)),Do}var G1;function Y1(){if(G1)return Md;G1=1,Object.defineProperty(Md,"__esModule",{value:!0}),Md.setAttributes=s;const t=uC();function e(i,r){for(const o of Object.keys(i))o in r&&(r[o]=i[o])}const n=new RegExp("^on\\p{Lu}","u");function s(i,r){for(const o of Object.keys(r)){if(o==="__source"||o==="__self"||o==="tsxTag")continue;const a=r[o];if(o==="class"){const c=(0,t.classnames)(a);c&&i.setAttribute(o,c)}else if(o==="ref")a.current=i;else if(n.test(o)){const c=o.replace(/Capture$/,""),l=o!==c,d=c.toLowerCase().substring(2);i.addEventListener(d,a,l)}else o==="style"&&typeof a!="string"?e(a,i.style):o==="dangerouslySetInnerHTML"?i.innerHTML=a:a===!0?i.setAttribute(o,o):(a||a===0||a==="")&&i.setAttribute(o,a.toString())}}return Md}var Ta={},Z1;function X1(){if(Z1)return Ta;Z1=1,Object.defineProperty(Ta,"__esModule",{value:!0}),Ta.applyChildren=e,Ta.createDomElement=n,Ta.applyTsxTag=s;function t(i,r){r instanceof Element?i.appendChild(r):typeof r=="string"||typeof r=="number"?i.appendChild(document.createTextNode(r.toString())):console.warn("Unknown type to append: ",r)}function e(i,r){for(const o of r)!o&&o!==0||(Array.isArray(o)?e(i,o):t(i,o))}function n(i,r){const o=r!=null&&r.is?{is:r.is}:void 0;return r!=null&&r.xmlns?document.createElementNS(r.xmlns,i,o):document.createElement(i,o)}function s(i,r){let o=i,a=r;return a&&"tsxTag"in a&&(o=a.tsxTag,!a.is&&i.includes("-")&&(a={...a,is:i})),{finalTag:o,finalAttrs:a}}return Ta}var Q1;function hC(){if(Q1)return vr;Q1=1,Object.defineProperty(vr,"__esModule",{value:!0}),vr.createRef=vr.h=void 0,vr.createElement=n;const t=Y1(),e=X1();function n(i,r,...o){if(typeof i=="function")return i({...r,children:o});const{finalTag:a,finalAttrs:c}=(0,e.applyTsxTag)(i,r),l=(0,e.createDomElement)(a,c);return c&&(0,t.setAttributes)(l,c),(0,e.applyChildren)(l,o),l}vr.h=n;const s=()=>({current:null});return vr.createRef=s,vr}var Ld={},Da={},J1;function ew(){if(J1)return Da;J1=1,Object.defineProperty(Da,"__esModule",{value:!0}),Da.jsx=n,Da.jsxs=n,Da.jsxDEV=n;const t=Y1(),e=X1();function n(s,i){if(typeof s=="function")return s(i);const{children:r,...o}=i,{finalTag:a,finalAttrs:c}=(0,e.applyTsxTag)(s,o),l=(0,e.createDomElement)(a,c);return(0,t.setAttributes)(l,c),(0,e.applyChildren)(l,[r]),l}return Da}var tw;function fC(){if(tw)return Ld;tw=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Ld.defineCustomElement=e;const t=ew();function e(n,s,i){return customElements.define(n,s,i),r=>(0,t.jsx)(n,r)}return Ld}var kp={},nw;function pC(){return nw||(nw=1,Object.defineProperty(kp,"__esModule",{value:!0})),kp}var sw;function mC(){return sw||(sw=1,(function(t){var e=To&&To.__createBinding||(Object.create?(function(s,i,r,o){o===void 0&&(o=r);var a=Object.getOwnPropertyDescriptor(i,r);(!a||("get"in a?!i.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return i[r]}}),Object.defineProperty(s,o,a)}):(function(s,i,r,o){o===void 0&&(o=r),s[o]=i[r]})),n=To&&To.__exportStar||function(s,i){for(var r in s)r!=="default"&&!Object.prototype.hasOwnProperty.call(i,r)&&e(i,s,r)};Object.defineProperty(t,"__esModule",{value:!0}),n(hC(),t),n(fC(),t),n(ew(),t),n(pC(),t)})(To)),To}var J=mC();function iw({id:t,imageUrl:e,imageAlt:n,label:s,secondaryLabel:i,secondaryValue:r,trailingNote:o,badgeLabel:a}){return J.h("button",{id:t,class:"w-full my-2 bg-gray-100 p-4 rounded-xl text-left hover:opacity-80 flex flex-col gap-1.5"},a&&J.h("span",{class:"self-start inline-flex h-4 items-center rounded-full bg-black px-1.5 text-[10px] font-bold tracking-wide text-white"},a),J.h("div",{class:"flex flex-row items-center w-full gap-3"},J.h("img",{src:e,alt:n,class:"h-8 w-8 rounded-full"}),J.h("span",{class:"grow font-bold text-base"},s),i&&J.h("span",{class:"shrink-0 flex flex-row items-center gap-1"},J.h("span",{class:"text-sm font-medium text-gray-500"},i),r&&J.h("span",{class:"text-base font-bold"},r)),o&&J.h("span",{class:"shrink-0 whitespace-nowrap text-xs font-medium text-gray-600"},o))).outerHTML}function gC(t,e){return iw({id:`btnAsset${t.code}`,imageUrl:t.img,imageAlt:t.title,label:t.title,secondaryLabel:t.code,secondaryValue:e})}const rw=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg">
113
113
  <path d="M2.5 5.5L8 11L13.5 5.5" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"/>
114
114
  </svg>`,Sp=`<svg width="20" height="18" viewBox="0 0 21 19" fill="none" xmlns="http://www.w3.org/2000/svg">
115
115
  <path d="M10.5 2.23152L18.7952 16.7657H2.20476L10.5 2.23152ZM0.298949 15.6485C-0.549302 17.1344 0.508258 19 2.20476 19H18.7952C20.4917 19 21.5493 17.1344 20.7011 15.6485L12.4058 1.11436C11.5576 -0.371454 9.44244 -0.371454 8.59419 1.11436L0.298949 15.6485ZM9.39837 7.82846V10.0628C9.39837 10.6772 9.89411 11.1799 10.5 11.1799C11.1059 11.1799 11.6016 10.6772 11.6016 10.0628V7.82846C11.6016 7.21402 11.1059 6.7113 10.5 6.7113C9.89411 6.7113 9.39837 7.21402 9.39837 7.82846ZM9.39837 13.4142H11.6016V15.6485H9.39837Z" fill="currentColor"/>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lydianpay/sdk-web",
3
- "version": "1.1.4",
3
+ "version": "1.1.5",
4
4
  "description": "Drop-in crypto payment checkout for the web — a <lydian-checkout> web component and window.Lydian API across 20+ chains and major stablecoins.",
5
5
  "license": "MIT",
6
6
  "repository": {