@dcl/landing-site 0.0.1-23620061485.commit-17133ad → 0.0.1-23620719480.commit-7d049a4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/{AnimatedBackground-X9OHqPfH.js → AnimatedBackground-DX3pYC8p.js} +2 -2
- package/assets/CardMedia-BbWfJnV6.js +1 -0
- package/assets/FooterLanding-B-J0C7o7.js +1 -0
- package/assets/{WearablePreview-CRwOL1NZ.js → WearablePreview-5a_PGNGB.js} +2 -2
- package/assets/{add-DiLXEuV7.js → add-DpCWcXle.js} +1 -1
- package/assets/{all-wallets-BTWNonA8.js → all-wallets-DYP41Blj.js} +1 -1
- package/assets/{app-store-CceijvDW.js → app-store-BIJURF6-.js} +1 -1
- package/assets/{apple-BlEL6eLt.js → apple-D_uhLxZR.js} +1 -1
- package/assets/{arrow-bottom-DZ2y-w5B.js → arrow-bottom-BW6Wv-sI.js} +1 -1
- package/assets/{arrow-bottom-circle-CCTN9D0S.js → arrow-bottom-circle-DqG729cm.js} +1 -1
- package/assets/{arrow-left-BFe7bZXI.js → arrow-left-DKYDNC-4.js} +1 -1
- package/assets/{arrow-right-DsZHWdWy.js → arrow-right-CUusNHsj.js} +1 -1
- package/assets/{arrow-top-CXDfrxZH.js → arrow-top-D-Mz_CFK.js} +1 -1
- package/assets/{auto-track-DNDcaZIs.js → auto-track-E6PeBcrf.js} +1 -1
- package/assets/{bank-CNuJCa1A.js → bank-MJMbfg0_.js} +1 -1
- package/assets/{basic-xYRfeOaz.js → basic-0JGqszRD.js} +1 -1
- package/assets/{browser-SfhlBCli.js → browser-COSkSQBs.js} +1 -1
- package/assets/{card-CFuNEip7.js → card-DSHncbWU.js} +1 -1
- package/assets/ccip-C4IsyTPG.js +1 -0
- package/assets/{checkmark-SJ8Ibo97.js → checkmark-DI59iwl2.js} +1 -1
- package/assets/{checkmark-bold-D8ZwO7kJ.js → checkmark-bold-B5b_aVMV.js} +1 -1
- package/assets/{chevron-bottom-CC7AgQVy.js → chevron-bottom-CY0ZrVMi.js} +1 -1
- package/assets/{chevron-left-TDKR8NrM.js → chevron-left-D9UeLaSu.js} +1 -1
- package/assets/{chevron-right-SLcbBNE8.js → chevron-right-DYngCl4M.js} +1 -1
- package/assets/{chevron-top-CySiRrnN.js → chevron-top-B1oJ3Ys-.js} +1 -1
- package/assets/{chrome-store-DjrR1Vt-.js → chrome-store-NOx8tFXN.js} +1 -1
- package/assets/{clock-BBj0O6l1.js → clock-Bgb07TMb.js} +1 -1
- package/assets/{close-D5v0HaQJ.js → close-KCBaR1NE.js} +1 -1
- package/assets/{coinPlaceholder-DONg0vWI.js → coinPlaceholder-Boyy4C0R.js} +1 -1
- package/assets/{compass-BA2fynVb.js → compass-B9h18XpL.js} +1 -1
- package/assets/{copy-BphnYjsa.js → copy-D53IumqM.js} +1 -1
- package/assets/{core-C6fM-AhH.js → core-R9E8jRfz.js} +5 -5
- package/assets/cursor-CV1p_vON.js +3 -0
- package/assets/{cursor-transparent-BO1rkYVs.js → cursor-transparent-DTeFmaoS.js} +1 -1
- package/assets/{desktop-B9r80Dj3.js → desktop-C_-SbpNe.js} +1 -1
- package/assets/{disconnect-vGyBXCwy.js → disconnect-PiZpxCb1.js} +1 -1
- package/assets/{discord-uZ6KeWMB.js → discord-Ddxf1KxO.js} +1 -1
- package/assets/{etherscan-CN5jEQTG.js → etherscan-DLwVtVtu.js} +1 -1
- package/assets/{exclamation-triangle-fz4L8FlV.js → exclamation-triangle-QRWeaoZe.js} +1 -1
- package/assets/{extension-BWXNFZk5.js → extension-DvbWY6Gw.js} +1 -1
- package/assets/{external-link-Bq9MhgTy.js → external-link-DMiMWTiv.js} +1 -1
- package/assets/{facebook-Dy8Bt5NP.js → facebook-SSsHPp9C.js} +1 -1
- package/assets/{farcaster-CRxGyumD.js → farcaster-BTLGHT3x.js} +1 -1
- package/assets/{filters-5byv1Y8G.js → filters-DZsYIsNJ.js} +1 -1
- package/assets/{github-CMVshcqR.js → github-Dcyo6j15.js} +1 -1
- package/assets/{google-CVfdKGKn.js → google-DYxpzCSX.js} +1 -1
- package/assets/{help-circle-BRUzH6U8.js → help-circle-DNcCzixn.js} +1 -1
- package/assets/{id-D6kMxzl0.js → id-lWMRvKeR.js} +1 -1
- package/assets/{image-COaQGFT5.js → image-Dkv4odMi.js} +1 -1
- package/assets/{index-DDxnWm-s.js → index-3HiQP60Y.js} +2 -2
- package/assets/{index-BrGj4FUP.js → index-B1E2WS85.js} +1 -1
- package/assets/{index-D_J90WI5.js → index-B6eeSsO_.js} +3 -3
- package/assets/{index-BjfRHTOM.js → index-B74VE1YN.js} +1 -1
- package/assets/index-B9flaZuC.js +1 -0
- package/assets/{index-BFofDT64.js → index-BPb2uPKM.js} +2 -2
- package/assets/index-Bht5LsEk.js +51 -0
- package/assets/{index-Cj4KP0eG.js → index-C2r3Z22e.js} +1 -1
- package/assets/{index-D62-TzRS.js → index-CLRaSgqZ.js} +1 -1
- package/assets/{index-MCSHFUG1.js → index-CZIwBdGf.js} +1 -1
- package/assets/{index-CSz61bM1.js → index-CiW7T_au.js} +1 -1
- package/assets/index-D12nVzQv.js +1 -0
- package/assets/{index-CAUqXNbA.js → index-D3FZgr7d.js} +9 -9
- package/assets/{index-BB4BUXXn.js → index-DY64NG3j.js} +3 -3
- package/assets/{index-D93Geg4v.js → index-DjQ6ERI-.js} +1 -1
- package/assets/{index-ClZHmFmC.js → index-DkCEfHSR.js} +1 -1
- package/assets/index-IP4riM96.js +54 -0
- package/assets/{index-DbD84bkB.js → index-RAUtC1cy.js} +3 -3
- package/assets/{index-D4k53OvE.js → index-UCPBu_lb.js} +1 -1
- package/assets/{index.es-2Km2TvIi.js → index.es--N24oLp1.js} +8 -8
- package/assets/{index.umd-BS_i0AC0.js → index.umd-Dgcb5DdO.js} +1 -1
- package/assets/{info-BdCFlh63.js → info-D9Dnp2wV.js} +1 -1
- package/assets/{info-circle-7CrJfHLr.js → info-circle-CoOUPZNE.js} +1 -1
- package/assets/{lightbulb-CFiU35Mo.js → lightbulb-BI3j8u3m.js} +1 -1
- package/assets/macos_launcher-tAnkzoV6.webp +0 -0
- package/assets/macos_launching_decentraland-D20EhlLN.webp +0 -0
- package/assets/macos_recent_download-BanUqEgV.webp +0 -0
- package/assets/{mail-5NOUoBZM.js → mail-ORINOCWr.js} +1 -1
- package/assets/{mobile-CwxqCZTV.js → mobile-CeHPXPkA.js} +1 -1
- package/assets/{more-C8LZJs4_.js → more-BHYLEFMC.js} +1 -1
- package/assets/{network-placeholder-CkT37VdN.js → network-placeholder-Co5Aa3yr.js} +1 -1
- package/assets/{nftPlaceholder-DV-viifv.js → nftPlaceholder-CxGQvhMT.js} +1 -1
- package/assets/{node-CS9LAPtJ.js → node-s4RJ8AH_.js} +3 -3
- package/assets/{off-QaH2IvZP.js → off-0iXyYdfj.js} +1 -1
- package/assets/{play-store-CMyK7TEj.js → play-store-DTDi2JaH.js} +1 -1
- package/assets/{plus-kj9_j98k.js → plus-Cy_-oevD.js} +1 -1
- package/assets/{qr-code-D_IGpbrj.js → qr-code-B6dfioLK.js} +1 -1
- package/assets/{recycle-horizontal-D73MS6lx.js → recycle-horizontal-pLpXl48q.js} +1 -1
- package/assets/{refresh-DQ5vwhtz.js → refresh-CTkry1V3.js} +1 -1
- package/assets/{reown-logo-CM-XtkAU.js → reown-logo-CQXrQocw.js} +1 -1
- package/assets/{search-DHJfXttt.js → search-DcUtq8nY.js} +1 -1
- package/assets/{secp256k1-P1D6ETSW.js → secp256k1-DJPw0Lkb.js} +1 -1
- package/assets/{secp256k1-BTyVeRNJ.js → secp256k1-DOK1Amgu.js} +1 -1
- package/assets/{send-p2BTwmxa.js → send-CsUMCf__.js} +1 -1
- package/assets/{swapHorizontal-bsJTvd7k.js → swapHorizontal-DajxR-U8.js} +1 -1
- package/assets/{swapHorizontalBold-Jqwxcw5I.js → swapHorizontalBold-D2-VHGIC.js} +1 -1
- package/assets/{swapHorizontalMedium-heBL44gi.js → swapHorizontalMedium-BrH7SgNo.js} +1 -1
- package/assets/{swapHorizontalRoundedBold-BDiFEFrQ.js → swapHorizontalRoundedBold-BNx29FQu.js} +1 -1
- package/assets/{swapVertical-DhsrdTHR.js → swapVertical-Bn92nmT-.js} +1 -1
- package/assets/swiper-react-Cgkj8mB9.js +1 -0
- package/assets/{telegram-BjWPpmax.js → telegram-Bd7lhcuu.js} +1 -1
- package/assets/{three-dots-Du2nxemU.js → three-dots-D4kB_6oe.js} +1 -1
- package/assets/{twitch-Cq2unu-y.js → twitch-ERVkAQ9g.js} +1 -1
- package/assets/{twitterIcon-DUMlZtWP.js → twitterIcon-DFWSkf23.js} +1 -1
- package/assets/{verify-Dd-5OCj6.js → verify-CFOj0EIL.js} +1 -1
- package/assets/{verify-filled-DyNULhx_.js → verify-filled-8hbZ53qu.js} +1 -1
- package/assets/{w3m-modal-Bued7hb6.js → w3m-modal-Q-diaHtC.js} +1 -1
- package/assets/{wallet-DMo70kgx.js → wallet-CJTAh7zl.js} +1 -1
- package/assets/{wallet-placeholder-DiQajtnN.js → wallet-placeholder-Dgu0MUjk.js} +1 -1
- package/assets/{walletconnect-D77V98Cy.js → walletconnect-SwR0ilZs.js} +1 -1
- package/assets/{warning-circle-B0YV8y0p.js → warning-circle-DqGA6JWs.js} +1 -1
- package/assets/windows_downloads_folder-BjMDtSd-.webp +0 -0
- package/assets/windows_launching_decentraland-Bg5TsdCP.webp +0 -0
- package/assets/windows_setup-Dzomx64Q.webp +0 -0
- package/assets/{x-CrGCpcRx.js → x-Bhp20IfI.js} +1 -1
- package/index.html +2 -2
- package/package.json +3 -3
- package/assets/FooterLanding-B90cOJKc.js +0 -1
- package/assets/ccip-BYTGbOk3.js +0 -1
- package/assets/cursor-B6jGkymY.js +0 -3
- package/assets/index-C8PznPXF.js +0 -51
- package/assets/index-DQ7elwnw.js +0 -1
- package/assets/index-JWGFDYCP.js +0 -1
- package/assets/swiper-react-CTHMi0t3.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{br as h,B as y,r as s,t as f}from"./index-D3FZgr7d.js";const I=`
|
|
2
2
|
attribute vec2 a_position;
|
|
3
3
|
varying vec2 v_uv;
|
|
4
4
|
void main() {
|
|
@@ -76,4 +76,4 @@ void main() {
|
|
|
76
76
|
|
|
77
77
|
gl_FragColor = result;
|
|
78
78
|
}
|
|
79
|
-
`;function p(e,r,a){const o=e.createShader(r);return o?(e.shaderSource(o,a),e.compileShader(o),e.getShaderParameter(o,e.COMPILE_STATUS)?o:(console.error("Shader compile error:",e.getShaderInfoLog(o)),e.deleteShader(o),null)):null}function C(e,r,a){const o=e.createProgram();return o?(e.attachShader(o,r),e.attachShader(o,a),e.linkProgram(o),e.getProgramParameter(o,e.LINK_STATUS)?o:(console.error("Program link error:",e.getProgramInfoLog(o)),e.deleteProgram(o),null)):null}function B(e,r){const a=e.createTexture();if(!a)return null;e.bindTexture(e.TEXTURE_2D,a),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{e.bindTexture(e.TEXTURE_2D,a),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D)},o.src=r,a}function F(e){const r=e.replace("#","");return[parseInt(r.slice(0,2),16)/255,parseInt(r.slice(2,4),16)/255,parseInt(r.slice(4,6),16)/255]}function V(e,r){return[e[0]*r,e[1]*r,e[2]*r]}const X="https://cdn.decentraland.org/@dcl/landing-site/0.0.1-
|
|
79
|
+
`;function p(e,r,a){const o=e.createShader(r);return o?(e.shaderSource(o,a),e.compileShader(o),e.getShaderParameter(o,e.COMPILE_STATUS)?o:(console.error("Shader compile error:",e.getShaderInfoLog(o)),e.deleteShader(o),null)):null}function C(e,r,a){const o=e.createProgram();return o?(e.attachShader(o,r),e.attachShader(o,a),e.linkProgram(o),e.getProgramParameter(o,e.LINK_STATUS)?o:(console.error("Program link error:",e.getProgramInfoLog(o)),e.deleteProgram(o),null)):null}function B(e,r){const a=e.createTexture();if(!a)return null;e.bindTexture(e.TEXTURE_2D,a),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,1,1,0,e.RGBA,e.UNSIGNED_BYTE,new Uint8Array([128,128,128,255]));const o=new Image;return o.crossOrigin="anonymous",o.onload=()=>{e.bindTexture(e.TEXTURE_2D,a),e.pixelStorei(e.UNPACK_FLIP_Y_WEBGL,!0),e.texImage2D(e.TEXTURE_2D,0,e.RGBA,e.RGBA,e.UNSIGNED_BYTE,o),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_S,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_WRAP_T,e.REPEAT),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MIN_FILTER,e.LINEAR_MIPMAP_LINEAR),e.texParameteri(e.TEXTURE_2D,e.TEXTURE_MAG_FILTER,e.LINEAR),e.generateMipmap(e.TEXTURE_2D)},o.src=r,a}function F(e){const r=e.replace("#","");return[parseInt(r.slice(0,2),16)/255,parseInt(r.slice(2,4),16)/255,parseInt(r.slice(4,6),16)/255]}function V(e,r){return[e[0]*r,e[1]*r,e[2]*r]}const X="https://cdn.decentraland.org/@dcl/landing-site/0.0.1-23620719480.commit-7d049a4/assets/logo-pattern-D4X-bvlg.webp",k="https://cdn.decentraland.org/@dcl/landing-site/0.0.1-23620719480.commit-7d049a4/assets/custom-welcome-background-BxlFQma9.webp",N=e=>e==="fixed"?{position:"fixed",width:"100vw",height:"100vh",zIndex:0}:{position:"absolute",width:"100%",height:"100%",zIndex:-1},z=h(y)(({variant:e})=>({top:0,left:0,...N(e)})),G=h(y)({position:"absolute",top:0,left:0,width:"100%",height:"100%",backgroundImage:`url(${k})`,backgroundSize:"cover",backgroundPosition:"center",backgroundRepeat:"no-repeat",zIndex:0}),q=h("canvas")({position:"absolute",top:0,left:0,width:"100%",height:"100%",zIndex:1}),H=[.749,0,1],K=[.3176,.0235,.5176],O=s.memo(({variant:e="fixed",color:r,patternUrl:a})=>{const o=s.useRef(null),l=s.useRef(0);return s.useEffect(()=>{const n=o.current;if(!n)return;const t=n.getContext("webgl",{alpha:!1,antialias:!1});if(!t){console.error("WebGL not supported");return}const u=p(t,t.VERTEX_SHADER,I),v=p(t,t.FRAGMENT_SHADER,P);if(!u||!v)return;const i=C(t,u,v);if(!i)return;const x=t.getAttribLocation(i,"a_position"),w=t.getUniformLocation(i,"u_time"),A=t.getUniformLocation(i,"u_resolution"),b=t.getUniformLocation(i,"u_overlayTex"),S=t.getUniformLocation(i,"u_innerColor"),U=t.getUniformLocation(i,"u_outerColor"),c=r?F(r):H,m=r?V(c,.42):K,d=t.createBuffer();t.bindBuffer(t.ARRAY_BUFFER,d),t.bufferData(t.ARRAY_BUFFER,new Float32Array([-1,-1,1,-1,-1,1,-1,1,1,-1,1,1]),t.STATIC_DRAW);const T=B(t,a??X),D=()=>{const E=window.devicePixelRatio||1,R=n.clientWidth*E,_=n.clientHeight*E;(n.width!==R||n.height!==_)&&(n.width=R,n.height=_)},L=performance.now()/1e3,g=()=>{D(),t.viewport(0,0,n.width,n.height),t.useProgram(i),t.uniform1f(w,performance.now()/1e3-L),t.uniform2f(A,n.width,n.height),t.uniform4f(S,c[0],c[1],c[2],1),t.uniform4f(U,m[0],m[1],m[2],1),t.activeTexture(t.TEXTURE0),t.bindTexture(t.TEXTURE_2D,T),t.uniform1i(b,0),t.enableVertexAttribArray(x),t.bindBuffer(t.ARRAY_BUFFER,d),t.vertexAttribPointer(x,2,t.FLOAT,!1,0,0),t.drawArrays(t.TRIANGLES,0,6),l.current=requestAnimationFrame(g)};return l.current=requestAnimationFrame(g),()=>{cancelAnimationFrame(l.current),t.deleteProgram(i),t.deleteShader(u),t.deleteShader(v),t.deleteBuffer(d),t.deleteTexture(T)}},[r,a]),f.jsxs(z,{variant:e,children:[f.jsx(G,{variant:e,"aria-hidden":!0}),f.jsx(q,{ref:o})]})});export{O as A};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as C,j as m,s as u,bl as w,r as p,u as M,o as g,m as i,t as f,v,w as x}from"./index-D3FZgr7d.js";function U(o){return C("MuiCard",o)}m("MuiCard",["root"]);const j=["className","raised"],I=o=>{const{classes:s}=o;return x({root:["root"]},U,s)},S=u(w,{name:"MuiCard",slot:"Root",overridesResolver:(o,s)=>s.root})(()=>({overflow:"hidden"})),F=p.forwardRef(function(s,e){const t=M({props:s,name:"MuiCard"}),{className:n,raised:c=!1}=t,r=g(t,j),a=i({},t,{raised:c}),d=I(a);return f.jsx(S,i({className:v(d.root,n),elevation:c?8:void 0,ref:e,ownerState:a},r))});function _(o){return C("MuiCardContent",o)}m("MuiCardContent",["root"]);const E=["className","component"],O=o=>{const{classes:s}=o;return x({root:["root"]},_,s)},P=u("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(o,s)=>s.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),G=p.forwardRef(function(s,e){const t=M({props:s,name:"MuiCardContent"}),{className:n,component:c="div"}=t,r=g(t,E),a=i({},t,{component:c}),d=O(a);return f.jsx(P,i({as:c,className:v(d.root,n),ownerState:a,ref:e},r))});function k(o){return C("MuiCardMedia",o)}m("MuiCardMedia",["root","media","img"]);const $=["children","className","component","image","src","style"],A=o=>{const{classes:s,isMediaComponent:e,isImageComponent:t}=o;return x({root:["root",e&&"media",t&&"img"]},k,s)},D=u("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(o,s)=>{const{ownerState:e}=o,{isMediaComponent:t,isImageComponent:n}=e;return[s.root,t&&s.media,n&&s.img]}})(({ownerState:o})=>i({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},o.isMediaComponent&&{width:"100%"},o.isImageComponent&&{objectFit:"cover"})),T=["video","audio","picture","iframe","img"],z=["picture","img"],L=p.forwardRef(function(s,e){const t=M({props:s,name:"MuiCardMedia"}),{children:n,className:c,component:r="div",image:a,src:d,style:R}=t,y=g(t,$),l=T.indexOf(r)!==-1,b=!l&&a?i({backgroundImage:`url("${a}")`},R):R,N=i({},t,{component:r,isMediaComponent:l,isImageComponent:z.indexOf(r)!==-1}),h=A(N);return f.jsx(D,i({className:v(h.root,c),as:r,role:!l&&a?"img":void 0,ref:e,style:b,ownerState:N,src:l?a||d:void 0},y,{children:n}))});export{F as C,L as a,G as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{b8 as ie,t,b9 as Ge,be as d,bf as u,r as v,s as g,B as j,T as m,bo as Xe,bb as Ne,bs as c,bt as Ke,bu as Ye,bv as Qe}from"./index-D3FZgr7d.js";const Ze=ie.memo(e=>t.jsx(Ge,{...e,children:t.jsx("svg",{width:"33",height:"33",viewBox:"0 0 33 33",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16.82 2.44385C8.9107 2.44385 2.5 8.85455 2.5 16.7638C2.5 24.6732 8.9107 31.0838 16.82 31.0838C24.7293 31.0838 31.14 24.6732 31.14 16.7638C31.14 8.85455 24.7293 2.44385 16.82 2.44385ZM24.3696 14.799C22.8977 14.8656 21.5956 14.3794 20.3201 13.5635C20.3001 13.7666 20.2768 13.9165 20.2768 14.0664C20.2735 15.8813 20.2834 17.693 20.2735 19.508C20.2568 22.5684 18.0655 24.803 14.8885 25.0095C12.3475 25.176 9.8032 22.9647 9.40357 20.2439C8.92735 16.9936 11.6715 13.9565 14.9484 14.1163C15.1249 14.1263 15.3014 14.1596 15.5079 14.1862C15.5079 15.1487 15.5079 16.0812 15.5079 17.0769C15.3514 17.0769 15.1982 17.0835 15.045 17.0769C13.563 16.997 12.3808 18.0227 12.3275 19.438C12.2776 20.7868 13.3366 21.9524 14.6587 22.0023C16.154 22.0589 17.3062 21.0099 17.3129 19.518C17.3329 15.8913 17.3195 12.2647 17.3195 8.63475C17.3195 8.37499 17.3195 8.11523 17.3195 7.82217C18.3552 7.82217 19.2877 7.82217 20.2235 7.82217C20.5066 10.3032 21.9386 11.612 24.363 11.9517C24.3696 12.8875 24.3696 13.8099 24.3696 14.799Z",fill:"currentColor"})})}));var w={},Je=u;Object.defineProperty(w,"__esModule",{value:!0});var ce=w.default=void 0,et=Je(d()),tt=t;ce=w.default=(0,et.default)((0,tt.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2m-6 14H8c-.55 0-1-.45-1-1s.45-1 1-1h5c.55 0 1 .45 1 1s-.45 1-1 1m3-4H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1m0-4H8c-.55 0-1-.45-1-1s.45-1 1-1h8c.55 0 1 .45 1 1s-.45 1-1 1"}),"ArticleRounded");var k={},rt=u;Object.defineProperty(k,"__esModule",{value:!0});var le=k.default=void 0,at=rt(d()),nt=t;le=k.default=(0,at.default)((0,nt.jsx)("path",{d:"M17 2c-.55 0-1 .45-1 1v1H8V3c0-.55-.45-1-1-1s-1 .45-1 1v1H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2h-1V3c0-.55-.45-1-1-1m2 18H5V10h14zm-8-7c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m-4 0c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m8 0c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m-4 4c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m-4 0c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1m8 0c0-.55.45-1 1-1s1 .45 1 1-.45 1-1 1-1-.45-1-1"}),"CalendarMonthRounded");var O={},ot=u;Object.defineProperty(O,"__esModule",{value:!0});var se=O.default=void 0;lt(v);var it=ot(d()),ct=t;function de(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(de=function(r){return r?a:i})(e)}function lt(e,i){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var a=de(i);if(a&&a.has(e))return a.get(e);var r={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var o=p?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,a&&a.set(e,r),r}se=O.default=(0,it.default)((0,ct.jsx)("path",{d:"M12 1.27a11 11 0 00-3.48 21.46c.55.09.73-.28.73-.55v-1.84c-3.03.64-3.67-1.46-3.67-1.46-.55-1.29-1.28-1.65-1.28-1.65-.92-.65.1-.65.1-.65 1.1 0 1.73 1.1 1.73 1.1.92 1.65 2.57 1.2 3.21.92a2 2 0 01.64-1.47c-2.47-.27-5.04-1.19-5.04-5.5 0-1.1.46-2.1 1.2-2.84a3.76 3.76 0 010-2.93s.91-.28 3.11 1.1c1.8-.49 3.7-.49 5.5 0 2.1-1.38 3.02-1.1 3.02-1.1a3.76 3.76 0 010 2.93c.83.74 1.2 1.74 1.2 2.94 0 4.21-2.57 5.13-5.04 5.4.45.37.82.92.82 2.02v3.03c0 .27.1.64.73.55A11 11 0 0012 1.27"}),"GitHub");var L={},st=u;Object.defineProperty(L,"__esModule",{value:!0});var ue=L.default=void 0,dt=st(d()),ut=t;ue=L.default=(0,dt.default)((0,ut.jsx)("path",{d:"M17.59 3.41 15 6V5c0-1.1-.9-2-2-2H9C6.24 3 4 5.24 4 8h5v3h6V8l2.59 2.59c.26.26.62.41 1 .41h.01c.77 0 1.4-.63 1.4-1.41V4.41C20 3.63 19.37 3 18.59 3h-.01c-.37 0-.73.15-.99.41M9 13v7c0 .55.45 1 1 1h4c.55 0 1-.45 1-1v-7z"}),"HardwareRounded");var S={},pt=u;Object.defineProperty(S,"__esModule",{value:!0});var pe=S.default=void 0,ft=pt(d()),vt=t;pe=S.default=(0,ft.default)((0,vt.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 17h-2v-2h2zm2.07-7.75-.9.92c-.5.51-.86.97-1.04 1.69-.08.32-.13.68-.13 1.14h-2v-.5c0-.46.08-.9.22-1.31.2-.58.53-1.1.95-1.52l1.24-1.26c.46-.44.68-1.1.55-1.8-.13-.72-.69-1.33-1.39-1.53-1.11-.31-2.14.32-2.47 1.27-.12.37-.43.65-.82.65h-.3C8.4 9 8 8.44 8.16 7.88c.43-1.47 1.68-2.59 3.23-2.83 1.52-.24 2.97.55 3.87 1.8 1.18 1.63.83 3.38-.19 4.4"}),"HelpRounded");var I={},gt=u;Object.defineProperty(I,"__esModule",{value:!0});var fe=I.default=void 0,ht=gt(d()),_t=t;fe=I.default=(0,ht.default)((0,_t.jsx)("path",{d:"M6 2c-1.1 0-1.99.9-1.99 2L4 20c0 1.1.89 2 1.99 2H18c1.1 0 2-.9 2-2V8.83c0-.53-.21-1.04-.59-1.41l-4.83-4.83c-.37-.38-.88-.59-1.41-.59zm7 6V3.5L18.5 9H14c-.55 0-1-.45-1-1"}),"InsertDriveFileRounded");var $={},xt=u;Object.defineProperty($,"__esModule",{value:!0});var ve=$.default=void 0;yt(v);var bt=xt(d()),jt=t;function ge(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(ge=function(r){return r?a:i})(e)}function yt(e,i){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var a=ge(i);if(a&&a.has(e))return a.get(e);var r={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var o=p?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,a&&a.set(e,r),r}ve=$.default=(0,bt.default)((0,jt.jsx)("path",{d:"M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 0 1-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 0 1 7.8 2m-.2 2A3.6 3.6 0 0 0 4 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 0 0 3.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6m9.65 1.5a1.25 1.25 0 0 1 1.25 1.25A1.25 1.25 0 0 1 17.25 8 1.25 1.25 0 0 1 16 6.75a1.25 1.25 0 0 1 1.25-1.25M12 7a5 5 0 0 1 5 5 5 5 0 0 1-5 5 5 5 0 0 1-5-5 5 5 0 0 1 5-5m0 2a3 3 0 0 0-3 3 3 3 0 0 0 3 3 3 3 0 0 0 3-3 3 3 0 0 0-3-3z"}),"Instagram");var P={},Rt=u;Object.defineProperty(P,"__esModule",{value:!0});var he=P.default=void 0;mt(v);var Ct=Rt(d()),Mt=t;function _e(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(_e=function(r){return r?a:i})(e)}function mt(e,i){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var a=_e(i);if(a&&a.has(e))return a.get(e);var r={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var o=p?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,a&&a.set(e,r),r}he=P.default=(0,Ct.default)((0,Mt.jsx)("path",{d:"M19 3a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h14m-.5 15.5v-5.3a3.26 3.26 0 0 0-3.26-3.26c-.85 0-1.84.52-2.32 1.3v-1.11h-2.79v8.37h2.79v-4.93c0-.77.62-1.4 1.39-1.4a1.4 1.4 0 0 1 1.4 1.4v4.93h2.79M6.88 8.56a1.68 1.68 0 0 0 1.68-1.68c0-.93-.75-1.69-1.68-1.69a1.69 1.69 0 0 0-1.69 1.69c0 .93.76 1.68 1.69 1.68m1.39 9.94v-8.37H5.5v8.37h2.77z"}),"LinkedIn");var T={},wt=u;Object.defineProperty(T,"__esModule",{value:!0});var xe=T.default=void 0,kt=wt(d()),Ot=t;xe=T.default=(0,kt.default)((0,Ot.jsx)("path",{d:"m21.41 11.58-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42M5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7"}),"LocalOfferRounded");var D={},Lt=u;Object.defineProperty(D,"__esModule",{value:!0});var be=D.default=void 0,St=Lt(d()),It=t;be=D.default=(0,St.default)((0,It.jsx)("path",{d:"M20 4H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2m-.4 4.25-6.54 4.09c-.65.41-1.47.41-2.12 0L4.4 8.25c-.25-.16-.4-.43-.4-.72 0-.67.73-1.07 1.3-.72L12 11l6.7-4.19c.57-.35 1.3.05 1.3.72 0 .29-.15.56-.4.72"}),"MailRounded");var U={},$t=u;Object.defineProperty(U,"__esModule",{value:!0});var je=U.default=void 0,Pt=$t(d()),M=t;je=U.default=(0,Pt.default)([(0,M.jsx)("path",{fillRule:"evenodd",d:"M16.67 13.13C18.04 14.06 19 15.32 19 17v3h3c.55 0 1-.45 1-1v-2c0-2.18-3.57-3.47-6.33-3.87"},"0"),(0,M.jsx)("circle",{cx:"9",cy:"8",r:"4",fillRule:"evenodd"},"1"),(0,M.jsx)("path",{fillRule:"evenodd",d:"M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4c-.47 0-.91.1-1.33.24C14.5 5.27 15 6.58 15 8s-.5 2.73-1.33 3.76c.42.14.86.24 1.33.24m-6 1c-2.67 0-8 1.34-8 4v2c0 .55.45 1 1 1h14c.55 0 1-.45 1-1v-2c0-2.66-5.33-4-8-4"},"2")],"PeopleAltRounded");var H={},Tt=u;Object.defineProperty(H,"__esModule",{value:!0});var ye=H.default=void 0,Dt=Tt(d()),Ut=t;ye=H.default=(0,Dt.default)((0,Ut.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m7.46 7.12-2.78 1.15c-.51-1.36-1.58-2.44-2.95-2.94l1.15-2.78c2.1.8 3.77 2.47 4.58 4.57M12 15c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3M9.13 4.54l1.17 2.78c-1.38.5-2.47 1.59-2.98 2.97L4.54 9.13c.81-2.11 2.48-3.78 4.59-4.59M4.54 14.87l2.78-1.15c.51 1.38 1.59 2.46 2.97 2.96l-1.17 2.78c-2.1-.81-3.77-2.48-4.58-4.59m10.34 4.59-1.15-2.78c1.37-.51 2.45-1.59 2.95-2.97l2.78 1.17c-.81 2.1-2.48 3.77-4.58 4.58"}),"SupportRounded");var E={},Ht=u;Object.defineProperty(E,"__esModule",{value:!0});var Re=E.default=void 0;qt(v);var Et=Ht(d()),Wt=t;function Ce(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(Ce=function(r){return r?a:i})(e)}function qt(e,i){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var a=Ce(i);if(a&&a.has(e))return a.get(e);var r={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var o=p?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,a&&a.set(e,r),r}Re=E.default=(0,Et.default)((0,Wt.jsx)("path",{d:"M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"}),"X");var W={},zt=u;Object.defineProperty(W,"__esModule",{value:!0});var Me=W.default=void 0;Vt(v);var Bt=zt(d()),At=t;function me(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,a=new WeakMap;return(me=function(r){return r?a:i})(e)}function Vt(e,i){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var a=me(i);if(a&&a.has(e))return a.get(e);var r={__proto__:null},p=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var n in e)if(n!=="default"&&Object.prototype.hasOwnProperty.call(e,n)){var o=p?Object.getOwnPropertyDescriptor(e,n):null;o&&(o.get||o.set)?Object.defineProperty(r,n,o):r[n]=e[n]}return r.default=e,a&&a.set(e,r),r}Me=W.default=(0,Bt.default)((0,At.jsx)("path",{d:"M10 15l5.19-3L10 9v6m11.56-7.83c.13.47.22 1.1.28 1.9.07.8.1 1.49.1 2.09L22 12c0 2.19-.16 3.8-.44 4.83-.25.9-.83 1.48-1.73 1.73-.47.13-1.33.22-2.65.28-1.3.07-2.49.1-3.59.1L12 19c-4.19 0-6.8-.16-7.83-.44-.9-.25-1.48-.83-1.73-1.73-.13-.47-.22-1.1-.28-1.9-.07-.8-.1-1.49-.1-2.09L2 12c0-2.19.16-3.8.44-4.83.25-.9.83-1.48 1.73-1.73.47-.13 1.33-.22 2.65-.28 1.3-.07 2.49-.1 3.59-.1L12 5c4.19 0 6.8.16 7.83.44.9.25 1.48.83 1.73 1.73z"}),"YouTube");const f={stayUpdatedWith:"Stay updated with",decentraland:"Decentraland",resources:"Resources",marketplace:"Marketplace",creatorHub:"Creator Hub",docs:"Docs",events:"Events",blog:"Blog",connect:"Connect",support:"Support",email:"Email",dao:"DAO",faq:"FAQ"},Ft=g("footer")(({theme:e})=>({display:"flex",justifyContent:"space-between",backgroundColor:e.palette.background.default,zIndex:11,height:"475px",position:"relative",paddingTop:e.spacing(12),paddingLeft:e.spacing(20),paddingRight:e.spacing(20),[e.breakpoints.down("xl")]:{paddingLeft:e.spacing(10),paddingRight:e.spacing(10)},[e.breakpoints.down("md")]:{paddingLeft:e.spacing(6.75),paddingRight:e.spacing(6.75)},[e.breakpoints.down("xs")]:{flexDirection:"column",alignItems:"center",paddingLeft:e.spacing(1),paddingRight:e.spacing(1),height:"630px"}})),Gt=g(j)(({theme:e})=>({display:"flex",width:"710px",justifyContent:"space-around",[e.breakpoints.down("xs")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3),width:"100%"}})),ne=g(j)({display:"flex",flexDirection:"column"}),oe=g(m)(({theme:e})=>({color:e.palette.text.secondary,textTransform:"uppercase",marginBottom:e.spacing(2),marginLeft:e.spacing(.625),fontWeight:500})),x=g(Xe)(({theme:e})=>({cursor:"pointer",justifyContent:"flex-start",marginBottom:e.spacing(.5),"&.MuiButton-sizeMedium.MuiButton-textSecondary:not(.Mui-disabled):not(.Mui-focusVisible):not(:hover)":{color:e.palette.text.primary,textTransform:"capitalize","& .MuiButton-startIcon svg.MuiSvgIcon-root":{color:e.palette.text.secondary}},"&.MuiButton-sizeMedium.MuiButton-textSecondary:not(.Mui-disabled):not(.Mui-focusVisible):hover":{textTransform:"capitalize"},"&:hover":{backgroundColor:"transparent"},[e.breakpoints.down("xs")]:{"&.MuiButton-sizeMedium.MuiButton-textSecondary:not(.Mui-disabled):not(.Mui-focusVisible):not(:hover)":{fontSize:"24px",fontWeight:700,lineHeight:"32px","& .MuiButton-startIcon svg.MuiSvgIcon-root":{fontSize:"24px"}}}})),Xt=g(j)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"center",width:"470px",[e.breakpoints.down("xs")]:{width:"100%",paddingLeft:e.spacing(2),paddingRight:e.spacing(2),alignItems:"center"}})),Nt=g(m)(({theme:e})=>({color:e.palette.text.disabled,[e.breakpoints.down("md")]:{fontSize:"1.25rem"},[e.breakpoints.down("xs")]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1),fontSize:"1.5rem"}})),Kt=g(m)(({theme:e})=>({color:e.palette.text.primary,marginBottom:e.spacing(2),fontFamily:"DecentralandHero",[e.breakpoints.down("md")]:{fontSize:"2rem"},[e.breakpoints.down("xs")]:{paddingLeft:e.spacing(1),paddingRight:e.spacing(1),marginBottom:e.spacing(3),fontSize:"2.5rem"}})),Yt=g("iframe")({width:"100%",border:"none",height:"125px"}),Qt=g(j)(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",marginBottom:e.spacing(2),width:"100%",[e.breakpoints.down("xs")]:{display:"none"}})),Zt=g(j)({display:"flex",width:"80%",justifyContent:"space-between"}),b=g(Ne)(({theme:e})=>({cursor:"pointer",fontSize:"32px",color:e.palette.text.primary,"&:hover":{color:e.palette.text.primary}})),Jt=/^https?:/i,we=/^mailto:/i,er=1200,tr=2e3,rr=e=>{const[i,a=""]=e.replace(we,"").split("?"),r=new URLSearchParams(a);return(i?decodeURIComponent(i):r.get("to")??"").trim()},ar=async e=>{if(!e||!navigator.clipboard?.writeText)return!1;try{return await navigator.clipboard.writeText(e),!0}catch{return!1}},or=ie.memo(e=>{const i=v.useRef(),[a,r]=v.useState(!1),p=v.useCallback(()=>{window.clearTimeout(i.current),r(!0),i.current=window.setTimeout(()=>{r(!1)},tr)},[]),n=v.useCallback(async h=>{const _=rr(h);await ar(_)&&p()},[p]),o=v.useCallback(h=>{let _=0;const C=()=>{document.visibilityState==="hidden"&&R()},R=()=>{window.clearTimeout(_),window.removeEventListener("blur",R),document.removeEventListener("visibilitychange",C)};document.addEventListener("visibilitychange",C),window.addEventListener("blur",R),_=window.setTimeout(()=>{R(),document.visibilityState==="visible"&&document.hasFocus()&&n(h)},er),window.location.href=h},[n]);v.useEffect(()=>()=>{window.clearTimeout(i.current)},[]);const{subscriptionSrc:ke,hideSubscription:Oe=!1,hideDiscord:Le=!1,hideGithub:Se=!1,hideX:Ie=!1,hideInstagram:$e=!1,hideYoutube:Pe=!1,hideTiktok:Te=!1,hideLinkedin:De=!1,hideMarketplace:Ue=!1,hideCreatorHub:He=!1,hideDocs:Ee=!1,hideEvents:We=!1,hideBlog:qe=!1,hideSupport:ze=!1,hideEmail:Be=!1,hideDao:Ae=!1,hideFaq:Ve=!1,onLinkClick:y,trackingContext:l}=e,Fe=c.get("BEEHIV_SUBSCRIPTION_URL"),q=ke??Fe,z=c.get("DISCORD_URL"),B=c.get("GITHUB_URL"),A=c.get("X_URL"),V=c.get("INSTAGRAM_URL"),F=c.get("YOUTUBE_URL"),G=c.get("TIKTOK_URL"),X=c.get("LINKEDIN_URL"),N=c.get("MARKETPLACE_URL"),K=c.get("CREATE_URL"),Y=c.get("DOCS_URL"),Q=c.get("EVENTS_URL"),Z=c.get("BLOG_URL"),J=c.get("SUPPORT_URL"),ee=c.get("EMAIL_HELLO_URL"),te=c.get("DAO_URL"),re=c.get("FAQ_URL"),s=v.useCallback(h=>{const _=h.currentTarget.href;if(we.test(_)){h.preventDefault(),y?.(h),o(_);return}if(y){if(h.preventDefault(),y(h),Jt.test(_)){setTimeout(()=>{window.location.href=_},500);return}window.location.href=_}},[y,o]),ae=Ke();return t.jsxs(Ft,{children:[t.jsxs(Xt,{children:[t.jsx(Nt,{variant:ae?"h3":"h4",children:f.stayUpdatedWith}),t.jsx(Kt,{variant:ae?"h1":"h2",children:f.decentraland}),!Oe&&q&&t.jsx(Yt,{src:q,"data-test-id":"beehiiv-embed"}),t.jsx(Qt,{children:t.jsxs(Zt,{children:[!Le&&z&&t.jsx(b,{href:z,onClick:s,target:"_blank",rel:"noopener noreferrer","data-place":l,children:t.jsx(Ye,{fontSize:"inherit"})}),!Se&&B&&t.jsx(b,{href:B,onClick:s,target:"_blank",rel:"noopener noreferrer","data-place":l,children:t.jsx(se,{fontSize:"inherit"})}),!Ie&&A&&t.jsx(b,{href:A,onClick:s,target:"_blank",rel:"noopener noreferrer","data-place":l,children:t.jsx(Re,{fontSize:"inherit"})}),!$e&&V&&t.jsx(b,{href:V,onClick:s,target:"_blank",rel:"noopener noreferrer","data-place":l,children:t.jsx(ve,{fontSize:"inherit"})}),!Pe&&F&&t.jsx(b,{href:F,onClick:s,target:"_blank",rel:"noopener noreferrer","data-place":l,children:t.jsx(Me,{fontSize:"inherit"})}),!Te&&G&&t.jsx(b,{href:G,onClick:s,target:"_blank",rel:"noopener noreferrer","data-place":l,children:t.jsx(Ze,{fontSize:"inherit"})}),!De&&X&&t.jsx(b,{href:X,onClick:s,target:"_blank",rel:"noopener noreferrer","data-place":l,children:t.jsx(he,{fontSize:"inherit"})})]})})]}),t.jsxs(Gt,{children:[t.jsxs(ne,{children:[t.jsx(oe,{variant:"body1",children:f.resources}),!Ue&&N&&t.jsx(x,{variant:"text",color:"secondary",startIcon:t.jsx(xe,{sx:{transform:"scaleX(-1)"}}),href:N,onClick:s,"data-place":l,children:f.marketplace}),!He&&K&&t.jsx(x,{variant:"text",color:"secondary",startIcon:t.jsx(ue,{}),href:K,onClick:s,"data-place":l,children:f.creatorHub}),!Ee&&Y&&t.jsx(x,{variant:"text",color:"secondary",startIcon:t.jsx(fe,{}),href:Y,onClick:s,"data-place":l,children:f.docs}),!We&&Q&&t.jsx(x,{variant:"text",color:"secondary",startIcon:t.jsx(le,{}),href:Q,onClick:s,"data-place":l,children:f.events}),!qe&&Z&&t.jsx(x,{variant:"text",color:"secondary",startIcon:t.jsx(ce,{}),href:Z,onClick:s,"data-place":l,children:f.blog})]}),t.jsxs(ne,{children:[t.jsx(oe,{variant:"body1",children:f.connect}),!ze&&J&&t.jsx(x,{variant:"text",color:"secondary",startIcon:t.jsx(ye,{}),href:J,onClick:s,"data-place":l,children:f.support}),!Be&&ee&&t.jsx(Qe,{title:"Email copied",placement:"top",arrow:!0,open:a,disableFocusListener:!0,disableHoverListener:!0,disableTouchListener:!0,children:t.jsx("span",{children:t.jsx(x,{variant:"text",color:"secondary",startIcon:t.jsx(be,{}),href:ee,onClick:s,"data-place":l,children:f.email})})}),!Ae&&te&&t.jsx(x,{variant:"text",color:"secondary",startIcon:t.jsx(je,{}),href:te,onClick:s,"data-place":l,children:f.dao}),!Ve&&re&&t.jsx(x,{variant:"text",color:"secondary",startIcon:t.jsx(pe,{}),href:re,onClick:s,"data-place":l,children:f.faq})]})]})]})});export{or as FooterLanding};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{f as dt,av as oo,p as Re,j as io,bf as P,ba as so,bb as fo,aH as I,aA as uo}from"./index-CAUqXNbA.js";import{h as Dr,d as xr,s as Cr,c as w,e as co,a as ae,g as N,t as j,b as Lr,f as lo,j as po,k as Y,l as jr,m as yo,n as _r,i as Nr,w as vo}from"./index-BjfRHTOM.js";var ht=Object.prototype.toString,qr=function(e){var n=ht.call(e),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&ht.call(e.callee)==="[object Function]"),r},We,St;function go(){if(St)return We;St=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=qr,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),f=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=function(p){var c=p.constructor;return c&&c.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&e.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{i(window[p])}catch{return!0}}catch{return!0}return!1}(),y=function(p){if(typeof window>"u"||!g)return i(p);try{return i(p)}catch{return!1}};t=function(c){var h=c!==null&&typeof c=="object",O=n.call(c)==="[object Function]",S=r(c),v=h&&n.call(c)==="[object String]",m=[];if(!h&&!O&&!S)throw new TypeError("Object.keys called on a non-object");var E=f&&O;if(v&&c.length>0&&!e.call(c,0))for(var d=0;d<c.length;++d)m.push(String(d));if(S&&c.length>0)for(var M=0;M<c.length;++M)m.push(String(M));else for(var $ in c)!(E&&$==="prototype")&&e.call(c,$)&&m.push(String($));if(o)for(var B=y(c),b=0;b<s.length;++b)!(B&&s[b]==="constructor")&&e.call(c,s[b])&&m.push(s[b]);return m}}return We=t,We}var mo=Array.prototype.slice,ho=qr,$t=Object.keys,ce=$t?function(e){return $t(e)}:go(),bt=Object.keys;ce.shim=function(){if(Object.keys){var e=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);e||(Object.keys=function(r){return ho(r)?bt(mo.call(r)):bt(r)})}else Object.keys=ce;return Object.keys||ce};var ft=ce,So=ft,$o=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",bo=Object.prototype.toString,wo=Array.prototype.concat,wt=xr,Oo=function(t){return typeof t=="function"&&bo.call(t)==="[object Function]"},Hr=Dr(),Po=function(t,e,n,r){if(e in t){if(r===!0){if(t[e]===n)return}else if(!Oo(r)||!r())return}Hr?wt(t,e,n,!0):wt(t,e,n)},Fr=function(t,e){var n=arguments.length>2?arguments[2]:{},r=So(e);$o&&(r=wo.call(r,Object.getOwnPropertySymbols(e)));for(var a=0;a<r.length;a+=1)Po(t,r[a],e[r[a]],n[r[a]])};Fr.supportsDescriptors=!!Hr;var q=Fr,Eo=ft,Ur=Cr(),zr=w,le=co,Mo=zr("Array.prototype.push"),Ot=zr("Object.prototype.propertyIsEnumerable"),Bo=Ur?le.getOwnPropertySymbols:null,Gr=function(e,n){if(e==null)throw new TypeError("target must be an object");var r=le(e);if(arguments.length===1)return r;for(var a=1;a<arguments.length;++a){var o=le(arguments[a]),f=Eo(o),s=Ur&&(le.getOwnPropertySymbols||Bo);if(s)for(var i=s(o),l=0;l<i.length;++l){var g=i[l];Ot(o,g)&&Mo(f,g)}for(var y=0;y<f.length;++y){var p=f[y];if(Ot(o,p)){var c=o[p];r[p]=c}}}return r},De=Gr,Io=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},r=0;r<e.length;++r)n[e[r]]=e[r];var a=Object.assign({},n),o="";for(var f in a)o+=f;return t!==o},Ao=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}return!1},Zr=function(){return!Object.assign||Io()||Ao()?De:Object.assign},To=q,ko=Zr,Ro=function(){var e=ko();return To(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e},Wo=q,Do=ae,xo=Gr,Yr=Zr,Co=Ro,Lo=Do.apply(Yr()),Vr=function(e,n){return Lo(Object,arguments)};Wo(Vr,{getPolyfill:Yr,implementation:xo,shim:Co});var jo=Vr,Xr=N,Kr=ae,_o=Kr(Xr("String.prototype.indexOf")),ut=function(e,n){var r=Xr(e,!!n);return typeof r=="function"&&_o(e,".prototype.")>-1?Kr(r):r},ne=function(){return typeof function(){}.name=="string"},Q=Object.getOwnPropertyDescriptor;if(Q)try{Q([],"length")}catch{Q=null}ne.functionsHaveConfigurableNames=function(){if(!ne()||!Q)return!1;var e=Q(function(){},"name");return!!e&&!!e.configurable};var No=Function.prototype.bind;ne.boundFunctionsHaveNames=function(){return ne()&&typeof No=="function"&&function(){}.bind().name!==""};var qo=ne,Pt=xr,Ho=Dr(),Fo=qo.functionsHaveConfigurableNames(),Uo=j,zo=function(e,n){if(typeof e!="function")throw new Uo("`fn` is not a function");var r=arguments.length>2&&!!arguments[2];return(!r||Fo)&&(Ho?Pt(e,"name",n,!0,!0):Pt(e,"name",n)),e},Go=zo,Zo=j,Yo=Object,Jr=Go(function(){if(this==null||this!==Yo(this))throw new Zo("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0),Vo=Jr,Xo=q.supportsDescriptors,Ko=Object.getOwnPropertyDescriptor,Qr=function(){if(Xo&&/a/mig.flags==="gim"){var e=Ko(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),e.get.call(r),n==="dy")return e.get}}return Vo},Jo=q.supportsDescriptors,Qo=Qr,ei=Lr,ti=Object.defineProperty,ri=lo,Et=po,ni=/a/,ai=function(){if(!Jo||!Et)throw new ri("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=Qo(),n=Et(ni),r=ei(n,"flags");return(!r||r.get!==e)&&ti(n,"flags",{configurable:!0,enumerable:!1,get:e}),e},oi=q,ii=ae,si=Jr,en=Qr,fi=ai,tn=ii(en());oi(tn,{getPolyfill:en,implementation:si,shim:fi});var ui=tn,pe={exports:{}},ci=Y(),li=w,Ze=li("Object.prototype.toString"),Me=function(e){return ci&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Ze(e)==="[object Arguments]"},rn=function(e){return Me(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Ze(e)!=="[object Array]"&&"callee"in e&&Ze(e.callee)==="[object Function]"},pi=function(){return Me(arguments)}();Me.isLegacyArguments=rn;var nn=pi?Me:rn,ct=typeof Map=="function"&&Map.prototype,xe=Object.getOwnPropertyDescriptor&&ct?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ge=ct&&xe&&typeof xe.get=="function"?xe.get:null,Mt=ct&&Map.prototype.forEach,lt=typeof Set=="function"&&Set.prototype,Ce=Object.getOwnPropertyDescriptor&<?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,me=lt&&Ce&&typeof Ce.get=="function"?Ce.get:null,Bt=lt&&Set.prototype.forEach,yi=typeof WeakMap=="function"&&WeakMap.prototype,ee=yi?WeakMap.prototype.has:null,vi=typeof WeakSet=="function"&&WeakSet.prototype,te=vi?WeakSet.prototype.has:null,gi=typeof WeakRef=="function"&&WeakRef.prototype,It=gi?WeakRef.prototype.deref:null,mi=Boolean.prototype.valueOf,di=Object.prototype.toString,hi=Function.prototype.toString,Si=String.prototype.match,pt=String.prototype.slice,L=String.prototype.replace,$i=String.prototype.toUpperCase,At=String.prototype.toLowerCase,an=RegExp.prototype.test,Tt=Array.prototype.concat,k=Array.prototype.join,bi=Array.prototype.slice,kt=Math.floor,Ye=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Le=Object.getOwnPropertySymbols,Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,G=typeof Symbol=="function"&&typeof Symbol.iterator=="object",re=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===G||!0)?Symbol.toStringTag:null,on=Object.prototype.propertyIsEnumerable,Rt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Wt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||an.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-kt(-t):kt(t);if(r!==t){var a=String(r),o=pt.call(e,a.length+1);return L.call(a,n,"$&_")+"."+L.call(L.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return L.call(e,n,"$&_")}var Xe=oo,Dt=Xe.custom,xt=un(Dt)?Dt:null,sn={__proto__:null,double:'"',single:"'"},wi={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Be=function t(e,n,r,a){var o=n||{};if(D(o,"quoteStyle")&&!D(sn,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(D(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=D(o,"customInspect")?o.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(D(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(D(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ln(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var i=String(e);return s?Wt(e,i):i}if(typeof e=="bigint"){var l=String(e)+"n";return s?Wt(e,l):l}var g=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=g&&g>0&&typeof e=="object")return Ke(e)?"[Array]":"[Object]";var y=Ni(o,r);if(typeof a>"u")a=[];else if(cn(a,e)>=0)return"[Circular]";function p(C,F,ke){if(F&&(a=bi.call(a),a.push(F)),ke){var se={depth:o.depth};return D(o,"quoteStyle")&&(se.quoteStyle=o.quoteStyle),t(C,se,r+1,a)}return t(C,o,r+1,a)}if(typeof e=="function"&&!Ct(e)){var c=ki(e),h=fe(e,p);return"[Function"+(c?": "+c:" (anonymous)")+"]"+(h.length>0?" { "+k.call(h,", ")+" }":"")}if(un(e)){var O=G?L.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ve.call(e);return typeof e=="object"&&!G?X(O):O}if(Li(e)){for(var S="<"+At.call(String(e.nodeName)),v=e.attributes||[],m=0;m<v.length;m++)S+=" "+v[m].name+"="+fn(Oi(v[m].value),"double",o);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+At.call(String(e.nodeName))+">",S}if(Ke(e)){if(e.length===0)return"[]";var E=fe(e,p);return y&&!_i(E)?"["+Je(E,y)+"]":"[ "+k.call(E,", ")+" ]"}if(Ei(e)){var d=fe(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!on.call(e,"cause")?"{ ["+String(e)+"] "+k.call(Tt.call("[cause]: "+p(e.cause),d),", ")+" }":d.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+k.call(d,", ")+" }"}if(typeof e=="object"&&f){if(xt&&typeof e[xt]=="function"&&Xe)return Xe(e,{depth:g-r});if(f!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ri(e)){var M=[];return Mt&&Mt.call(e,function(C,F){M.push(p(F,e,!0)+" => "+p(C,e))}),Lt("Map",ge.call(e),M,y)}if(xi(e)){var $=[];return Bt&&Bt.call(e,function(C){$.push(p(C,e))}),Lt("Set",me.call(e),$,y)}if(Wi(e))return je("WeakMap");if(Ci(e))return je("WeakSet");if(Di(e))return je("WeakRef");if(Bi(e))return X(p(Number(e)));if(Ai(e))return X(p(Ye.call(e)));if(Ii(e))return X(mi.call(e));if(Mi(e))return X(p(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof dt<"u"&&e===dt)return"{ [object globalThis] }";if(!Pi(e)&&!Ct(e)){var B=fe(e,p),b=Rt?Rt(e)===Object.prototype:e instanceof Object||e.constructor===Object,x=e instanceof Object?"":"null prototype",ie=!b&&re&&Object(e)===e&&re in e?pt.call(_(e),8,-1):x?"Object":"",Te=b||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",V=Te+(ie||x?"["+k.call(Tt.call([],ie||[],x||[]),": ")+"] ":"");return B.length===0?V+"{}":y?V+"{"+Je(B,y)+"}":V+"{ "+k.call(B,", ")+" }"}return String(e)};function fn(t,e,n){var r=n.quoteStyle||e,a=sn[r];return a+t+a}function Oi(t){return L.call(String(t),/"/g,""")}function H(t){return!re||!(typeof t=="object"&&(re in t||typeof t[re]<"u"))}function Ke(t){return _(t)==="[object Array]"&&H(t)}function Pi(t){return _(t)==="[object Date]"&&H(t)}function Ct(t){return _(t)==="[object RegExp]"&&H(t)}function Ei(t){return _(t)==="[object Error]"&&H(t)}function Mi(t){return _(t)==="[object String]"&&H(t)}function Bi(t){return _(t)==="[object Number]"&&H(t)}function Ii(t){return _(t)==="[object Boolean]"&&H(t)}function un(t){if(G)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ve)return!1;try{return Ve.call(t),!0}catch{}return!1}function Ai(t){if(!t||typeof t!="object"||!Ye)return!1;try{return Ye.call(t),!0}catch{}return!1}var Ti=Object.prototype.hasOwnProperty||function(t){return t in this};function D(t,e){return Ti.call(t,e)}function _(t){return di.call(t)}function ki(t){if(t.name)return t.name;var e=Si.call(hi.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function cn(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function Ri(t){if(!ge||!t||typeof t!="object")return!1;try{ge.call(t);try{me.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Wi(t){if(!ee||!t||typeof t!="object")return!1;try{ee.call(t,ee);try{te.call(t,te)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Di(t){if(!It||!t||typeof t!="object")return!1;try{return It.call(t),!0}catch{}return!1}function xi(t){if(!me||!t||typeof t!="object")return!1;try{me.call(t);try{ge.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Ci(t){if(!te||!t||typeof t!="object")return!1;try{te.call(t,te);try{ee.call(t,ee)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Li(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function ln(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ln(pt.call(t,0,e.maxStringLength),e)+r}var a=wi[e.quoteStyle||"single"];a.lastIndex=0;var o=L.call(L.call(t,a,"\\$1"),/[\x00-\x1f]/g,ji);return fn(o,"single",e)}function ji(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+$i.call(e.toString(16))}function X(t){return"Object("+t+")"}function je(t){return t+" { ? }"}function Lt(t,e,n,r){var a=r?Je(n,r):k.call(n,", ");return t+" ("+e+") {"+a+"}"}function _i(t){for(var e=0;e<t.length;e++)if(cn(t[e],`
|
|
1
|
+
import{f as dt,b0 as oo,p as Re,P as io,bw as P,br as so,bs as fo,r as I,t as uo}from"./index-D3FZgr7d.js";import{h as Dr,d as xr,s as Cr,c as b,e as co,a as ae,g as N,t as j,b as Lr,f as lo,j as po,k as Y,l as jr,m as yo,n as _r,i as Nr,w as vo}from"./index-B74VE1YN.js";var ht=Object.prototype.toString,qr=function(e){var n=ht.call(e),r=n==="[object Arguments]";return r||(r=n!=="[object Array]"&&e!==null&&typeof e=="object"&&typeof e.length=="number"&&e.length>=0&&ht.call(e.callee)==="[object Function]"),r},We,St;function go(){if(St)return We;St=1;var t;if(!Object.keys){var e=Object.prototype.hasOwnProperty,n=Object.prototype.toString,r=qr,a=Object.prototype.propertyIsEnumerable,o=!a.call({toString:null},"toString"),f=a.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],i=function(p){var c=p.constructor;return c&&c.prototype===p},l={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=function(){if(typeof window>"u")return!1;for(var p in window)try{if(!l["$"+p]&&e.call(window,p)&&window[p]!==null&&typeof window[p]=="object")try{i(window[p])}catch{return!0}}catch{return!0}return!1}(),y=function(p){if(typeof window>"u"||!g)return i(p);try{return i(p)}catch{return!1}};t=function(c){var h=c!==null&&typeof c=="object",O=n.call(c)==="[object Function]",S=r(c),v=h&&n.call(c)==="[object String]",m=[];if(!h&&!O&&!S)throw new TypeError("Object.keys called on a non-object");var E=f&&O;if(v&&c.length>0&&!e.call(c,0))for(var d=0;d<c.length;++d)m.push(String(d));if(S&&c.length>0)for(var M=0;M<c.length;++M)m.push(String(M));else for(var $ in c)!(E&&$==="prototype")&&e.call(c,$)&&m.push(String($));if(o)for(var B=y(c),w=0;w<s.length;++w)!(B&&s[w]==="constructor")&&e.call(c,s[w])&&m.push(s[w]);return m}}return We=t,We}var mo=Array.prototype.slice,ho=qr,$t=Object.keys,ce=$t?function(e){return $t(e)}:go(),wt=Object.keys;ce.shim=function(){if(Object.keys){var e=function(){var n=Object.keys(arguments);return n&&n.length===arguments.length}(1,2);e||(Object.keys=function(r){return ho(r)?wt(mo.call(r)):wt(r)})}else Object.keys=ce;return Object.keys||ce};var ft=ce,So=ft,$o=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",wo=Object.prototype.toString,bo=Array.prototype.concat,bt=xr,Oo=function(t){return typeof t=="function"&&wo.call(t)==="[object Function]"},Hr=Dr(),Po=function(t,e,n,r){if(e in t){if(r===!0){if(t[e]===n)return}else if(!Oo(r)||!r())return}Hr?bt(t,e,n,!0):bt(t,e,n)},Fr=function(t,e){var n=arguments.length>2?arguments[2]:{},r=So(e);$o&&(r=bo.call(r,Object.getOwnPropertySymbols(e)));for(var a=0;a<r.length;a+=1)Po(t,r[a],e[r[a]],n[r[a]])};Fr.supportsDescriptors=!!Hr;var q=Fr,Eo=ft,Ur=Cr(),zr=b,le=co,Mo=zr("Array.prototype.push"),Ot=zr("Object.prototype.propertyIsEnumerable"),Bo=Ur?le.getOwnPropertySymbols:null,Gr=function(e,n){if(e==null)throw new TypeError("target must be an object");var r=le(e);if(arguments.length===1)return r;for(var a=1;a<arguments.length;++a){var o=le(arguments[a]),f=Eo(o),s=Ur&&(le.getOwnPropertySymbols||Bo);if(s)for(var i=s(o),l=0;l<i.length;++l){var g=i[l];Ot(o,g)&&Mo(f,g)}for(var y=0;y<f.length;++y){var p=f[y];if(Ot(o,p)){var c=o[p];r[p]=c}}}return r},De=Gr,Io=function(){if(!Object.assign)return!1;for(var t="abcdefghijklmnopqrst",e=t.split(""),n={},r=0;r<e.length;++r)n[e[r]]=e[r];var a=Object.assign({},n),o="";for(var f in a)o+=f;return t!==o},Ao=function(){if(!Object.assign||!Object.preventExtensions)return!1;var t=Object.preventExtensions({1:2});try{Object.assign(t,"xy")}catch{return t[1]==="y"}return!1},Zr=function(){return!Object.assign||Io()||Ao()?De:Object.assign},To=q,ko=Zr,Ro=function(){var e=ko();return To(Object,{assign:e},{assign:function(){return Object.assign!==e}}),e},Wo=q,Do=ae,xo=Gr,Yr=Zr,Co=Ro,Lo=Do.apply(Yr()),Vr=function(e,n){return Lo(Object,arguments)};Wo(Vr,{getPolyfill:Yr,implementation:xo,shim:Co});var jo=Vr,Xr=N,Kr=ae,_o=Kr(Xr("String.prototype.indexOf")),ut=function(e,n){var r=Xr(e,!!n);return typeof r=="function"&&_o(e,".prototype.")>-1?Kr(r):r},ne=function(){return typeof function(){}.name=="string"},Q=Object.getOwnPropertyDescriptor;if(Q)try{Q([],"length")}catch{Q=null}ne.functionsHaveConfigurableNames=function(){if(!ne()||!Q)return!1;var e=Q(function(){},"name");return!!e&&!!e.configurable};var No=Function.prototype.bind;ne.boundFunctionsHaveNames=function(){return ne()&&typeof No=="function"&&function(){}.bind().name!==""};var qo=ne,Pt=xr,Ho=Dr(),Fo=qo.functionsHaveConfigurableNames(),Uo=j,zo=function(e,n){if(typeof e!="function")throw new Uo("`fn` is not a function");var r=arguments.length>2&&!!arguments[2];return(!r||Fo)&&(Ho?Pt(e,"name",n,!0,!0):Pt(e,"name",n)),e},Go=zo,Zo=j,Yo=Object,Jr=Go(function(){if(this==null||this!==Yo(this))throw new Zo("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},"get flags",!0),Vo=Jr,Xo=q.supportsDescriptors,Ko=Object.getOwnPropertyDescriptor,Qr=function(){if(Xo&&/a/mig.flags==="gim"){var e=Ko(RegExp.prototype,"flags");if(e&&typeof e.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var n="",r={};if(Object.defineProperty(r,"hasIndices",{get:function(){n+="d"}}),Object.defineProperty(r,"sticky",{get:function(){n+="y"}}),e.get.call(r),n==="dy")return e.get}}return Vo},Jo=q.supportsDescriptors,Qo=Qr,ei=Lr,ti=Object.defineProperty,ri=lo,Et=po,ni=/a/,ai=function(){if(!Jo||!Et)throw new ri("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=Qo(),n=Et(ni),r=ei(n,"flags");return(!r||r.get!==e)&&ti(n,"flags",{configurable:!0,enumerable:!1,get:e}),e},oi=q,ii=ae,si=Jr,en=Qr,fi=ai,tn=ii(en());oi(tn,{getPolyfill:en,implementation:si,shim:fi});var ui=tn,pe={exports:{}},ci=Y(),li=b,Ze=li("Object.prototype.toString"),Me=function(e){return ci&&e&&typeof e=="object"&&Symbol.toStringTag in e?!1:Ze(e)==="[object Arguments]"},rn=function(e){return Me(e)?!0:e!==null&&typeof e=="object"&&"length"in e&&typeof e.length=="number"&&e.length>=0&&Ze(e)!=="[object Array]"&&"callee"in e&&Ze(e.callee)==="[object Function]"},pi=function(){return Me(arguments)}();Me.isLegacyArguments=rn;var nn=pi?Me:rn,ct=typeof Map=="function"&&Map.prototype,xe=Object.getOwnPropertyDescriptor&&ct?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,ge=ct&&xe&&typeof xe.get=="function"?xe.get:null,Mt=ct&&Map.prototype.forEach,lt=typeof Set=="function"&&Set.prototype,Ce=Object.getOwnPropertyDescriptor&<?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,me=lt&&Ce&&typeof Ce.get=="function"?Ce.get:null,Bt=lt&&Set.prototype.forEach,yi=typeof WeakMap=="function"&&WeakMap.prototype,ee=yi?WeakMap.prototype.has:null,vi=typeof WeakSet=="function"&&WeakSet.prototype,te=vi?WeakSet.prototype.has:null,gi=typeof WeakRef=="function"&&WeakRef.prototype,It=gi?WeakRef.prototype.deref:null,mi=Boolean.prototype.valueOf,di=Object.prototype.toString,hi=Function.prototype.toString,Si=String.prototype.match,pt=String.prototype.slice,L=String.prototype.replace,$i=String.prototype.toUpperCase,At=String.prototype.toLowerCase,an=RegExp.prototype.test,Tt=Array.prototype.concat,k=Array.prototype.join,wi=Array.prototype.slice,kt=Math.floor,Ye=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Le=Object.getOwnPropertySymbols,Ve=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,G=typeof Symbol=="function"&&typeof Symbol.iterator=="object",re=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===G||!0)?Symbol.toStringTag:null,on=Object.prototype.propertyIsEnumerable,Rt=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(t){return t.__proto__}:null);function Wt(t,e){if(t===1/0||t===-1/0||t!==t||t&&t>-1e3&&t<1e3||an.call(/e/,e))return e;var n=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof t=="number"){var r=t<0?-kt(-t):kt(t);if(r!==t){var a=String(r),o=pt.call(e,a.length+1);return L.call(a,n,"$&_")+"."+L.call(L.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return L.call(e,n,"$&_")}var Xe=oo,Dt=Xe.custom,xt=un(Dt)?Dt:null,sn={__proto__:null,double:'"',single:"'"},bi={__proto__:null,double:/(["\\])/g,single:/(['\\])/g},Be=function t(e,n,r,a){var o=n||{};if(D(o,"quoteStyle")&&!D(sn,o.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(D(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var f=D(o,"customInspect")?o.customInspect:!0;if(typeof f!="boolean"&&f!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(D(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(D(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var s=o.numericSeparator;if(typeof e>"u")return"undefined";if(e===null)return"null";if(typeof e=="boolean")return e?"true":"false";if(typeof e=="string")return ln(e,o);if(typeof e=="number"){if(e===0)return 1/0/e>0?"0":"-0";var i=String(e);return s?Wt(e,i):i}if(typeof e=="bigint"){var l=String(e)+"n";return s?Wt(e,l):l}var g=typeof o.depth>"u"?5:o.depth;if(typeof r>"u"&&(r=0),r>=g&&g>0&&typeof e=="object")return Ke(e)?"[Array]":"[Object]";var y=Ni(o,r);if(typeof a>"u")a=[];else if(cn(a,e)>=0)return"[Circular]";function p(C,F,ke){if(F&&(a=wi.call(a),a.push(F)),ke){var se={depth:o.depth};return D(o,"quoteStyle")&&(se.quoteStyle=o.quoteStyle),t(C,se,r+1,a)}return t(C,o,r+1,a)}if(typeof e=="function"&&!Ct(e)){var c=ki(e),h=fe(e,p);return"[Function"+(c?": "+c:" (anonymous)")+"]"+(h.length>0?" { "+k.call(h,", ")+" }":"")}if(un(e)){var O=G?L.call(String(e),/^(Symbol\(.*\))_[^)]*$/,"$1"):Ve.call(e);return typeof e=="object"&&!G?X(O):O}if(Li(e)){for(var S="<"+At.call(String(e.nodeName)),v=e.attributes||[],m=0;m<v.length;m++)S+=" "+v[m].name+"="+fn(Oi(v[m].value),"double",o);return S+=">",e.childNodes&&e.childNodes.length&&(S+="..."),S+="</"+At.call(String(e.nodeName))+">",S}if(Ke(e)){if(e.length===0)return"[]";var E=fe(e,p);return y&&!_i(E)?"["+Je(E,y)+"]":"[ "+k.call(E,", ")+" ]"}if(Ei(e)){var d=fe(e,p);return!("cause"in Error.prototype)&&"cause"in e&&!on.call(e,"cause")?"{ ["+String(e)+"] "+k.call(Tt.call("[cause]: "+p(e.cause),d),", ")+" }":d.length===0?"["+String(e)+"]":"{ ["+String(e)+"] "+k.call(d,", ")+" }"}if(typeof e=="object"&&f){if(xt&&typeof e[xt]=="function"&&Xe)return Xe(e,{depth:g-r});if(f!=="symbol"&&typeof e.inspect=="function")return e.inspect()}if(Ri(e)){var M=[];return Mt&&Mt.call(e,function(C,F){M.push(p(F,e,!0)+" => "+p(C,e))}),Lt("Map",ge.call(e),M,y)}if(xi(e)){var $=[];return Bt&&Bt.call(e,function(C){$.push(p(C,e))}),Lt("Set",me.call(e),$,y)}if(Wi(e))return je("WeakMap");if(Ci(e))return je("WeakSet");if(Di(e))return je("WeakRef");if(Bi(e))return X(p(Number(e)));if(Ai(e))return X(p(Ye.call(e)));if(Ii(e))return X(mi.call(e));if(Mi(e))return X(p(String(e)));if(typeof window<"u"&&e===window)return"{ [object Window] }";if(typeof globalThis<"u"&&e===globalThis||typeof dt<"u"&&e===dt)return"{ [object globalThis] }";if(!Pi(e)&&!Ct(e)){var B=fe(e,p),w=Rt?Rt(e)===Object.prototype:e instanceof Object||e.constructor===Object,x=e instanceof Object?"":"null prototype",ie=!w&&re&&Object(e)===e&&re in e?pt.call(_(e),8,-1):x?"Object":"",Te=w||typeof e.constructor!="function"?"":e.constructor.name?e.constructor.name+" ":"",V=Te+(ie||x?"["+k.call(Tt.call([],ie||[],x||[]),": ")+"] ":"");return B.length===0?V+"{}":y?V+"{"+Je(B,y)+"}":V+"{ "+k.call(B,", ")+" }"}return String(e)};function fn(t,e,n){var r=n.quoteStyle||e,a=sn[r];return a+t+a}function Oi(t){return L.call(String(t),/"/g,""")}function H(t){return!re||!(typeof t=="object"&&(re in t||typeof t[re]<"u"))}function Ke(t){return _(t)==="[object Array]"&&H(t)}function Pi(t){return _(t)==="[object Date]"&&H(t)}function Ct(t){return _(t)==="[object RegExp]"&&H(t)}function Ei(t){return _(t)==="[object Error]"&&H(t)}function Mi(t){return _(t)==="[object String]"&&H(t)}function Bi(t){return _(t)==="[object Number]"&&H(t)}function Ii(t){return _(t)==="[object Boolean]"&&H(t)}function un(t){if(G)return t&&typeof t=="object"&&t instanceof Symbol;if(typeof t=="symbol")return!0;if(!t||typeof t!="object"||!Ve)return!1;try{return Ve.call(t),!0}catch{}return!1}function Ai(t){if(!t||typeof t!="object"||!Ye)return!1;try{return Ye.call(t),!0}catch{}return!1}var Ti=Object.prototype.hasOwnProperty||function(t){return t in this};function D(t,e){return Ti.call(t,e)}function _(t){return di.call(t)}function ki(t){if(t.name)return t.name;var e=Si.call(hi.call(t),/^function\s*([\w$]+)/);return e?e[1]:null}function cn(t,e){if(t.indexOf)return t.indexOf(e);for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}function Ri(t){if(!ge||!t||typeof t!="object")return!1;try{ge.call(t);try{me.call(t)}catch{return!0}return t instanceof Map}catch{}return!1}function Wi(t){if(!ee||!t||typeof t!="object")return!1;try{ee.call(t,ee);try{te.call(t,te)}catch{return!0}return t instanceof WeakMap}catch{}return!1}function Di(t){if(!It||!t||typeof t!="object")return!1;try{return It.call(t),!0}catch{}return!1}function xi(t){if(!me||!t||typeof t!="object")return!1;try{me.call(t);try{ge.call(t)}catch{return!0}return t instanceof Set}catch{}return!1}function Ci(t){if(!te||!t||typeof t!="object")return!1;try{te.call(t,te);try{ee.call(t,ee)}catch{return!0}return t instanceof WeakSet}catch{}return!1}function Li(t){return!t||typeof t!="object"?!1:typeof HTMLElement<"u"&&t instanceof HTMLElement?!0:typeof t.nodeName=="string"&&typeof t.getAttribute=="function"}function ln(t,e){if(t.length>e.maxStringLength){var n=t.length-e.maxStringLength,r="... "+n+" more character"+(n>1?"s":"");return ln(pt.call(t,0,e.maxStringLength),e)+r}var a=bi[e.quoteStyle||"single"];a.lastIndex=0;var o=L.call(L.call(t,a,"\\$1"),/[\x00-\x1f]/g,ji);return fn(o,"single",e)}function ji(t){var e=t.charCodeAt(0),n={8:"b",9:"t",10:"n",12:"f",13:"r"}[e];return n?"\\"+n:"\\x"+(e<16?"0":"")+$i.call(e.toString(16))}function X(t){return"Object("+t+")"}function je(t){return t+" { ? }"}function Lt(t,e,n,r){var a=r?Je(n,r):k.call(n,", ");return t+" ("+e+") {"+a+"}"}function _i(t){for(var e=0;e<t.length;e++)if(cn(t[e],`
|
|
2
2
|
`)>=0)return!1;return!0}function Ni(t,e){var n;if(t.indent===" ")n=" ";else if(typeof t.indent=="number"&&t.indent>0)n=k.call(Array(t.indent+1)," ");else return null;return{base:n,prev:k.call(Array(e+1),n)}}function Je(t,e){if(t.length===0)return"";var n=`
|
|
3
3
|
`+e.prev+e.base;return n+k.call(t,","+n)+`
|
|
4
|
-
`+e.prev}function fe(t,e){var n=Ke(t),r=[];if(n){r.length=t.length;for(var a=0;a<t.length;a++)r[a]=D(t,a)?e(t[a],t):""}var o=typeof Le=="function"?Le(t):[],f;if(G){f={};for(var s=0;s<o.length;s++)f["$"+o[s]]=o[s]}for(var i in t)D(t,i)&&(n&&String(Number(i))===i&&i<t.length||G&&f["$"+i]instanceof Symbol||(an.call(/[^\w$]/,i)?r.push(e(i,t)+": "+e(t[i],t)):r.push(i+": "+e(t[i],t))));if(typeof Le=="function")for(var l=0;l<o.length;l++)on.call(t,o[l])&&r.push("["+e(o[l])+"]: "+e(t[o[l]],t));return r}var qi=Be,Hi=j,Ie=function(t,e,n){for(var r=t,a;(a=r.next)!=null;r=a)if(a.key===e)return r.next=a.next,n||(a.next=t.next,t.next=a),a},Fi=function(t,e){if(t){var n=Ie(t,e);return n&&n.value}},Ui=function(t,e,n){var r=Ie(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},zi=function(t,e){return t?!!Ie(t,e):!1},Gi=function(t,e){if(t)return Ie(t,e,!0)},Zi=function(){var e,n={assert:function(r){if(!n.has(r))throw new Hi("Side channel does not contain "+qi(r))},delete:function(r){var a=e&&e.next,o=Gi(e,r);return o&&a&&a===o&&(e=void 0),!!o},get:function(r){return Fi(e,r)},has:function(r){return zi(e,r)},set:function(r,a){e||(e={next:void 0}),Ui(e,r,a)}};return n},Yi=N,oe=w,Vi=Be,Xi=j,jt=Yi("%Map%",!0),Ki=oe("Map.prototype.get",!0),Ji=oe("Map.prototype.set",!0),Qi=oe("Map.prototype.has",!0),es=oe("Map.prototype.delete",!0),ts=oe("Map.prototype.size",!0),pn=!!jt&&function(){var e,n={assert:function(r){if(!n.has(r))throw new Xi("Side channel does not contain "+Vi(r))},delete:function(r){if(e){var a=es(e,r);return ts(e)===0&&(e=void 0),a}return!1},get:function(r){if(e)return Ki(e,r)},has:function(r){return e?Qi(e,r):!1},set:function(r,a){e||(e=new jt),Ji(e,r,a)}};return n},rs=N,Ae=w,ns=Be,ue=pn,as=j,U=rs("%WeakMap%",!0),os=Ae("WeakMap.prototype.get",!0),is=Ae("WeakMap.prototype.set",!0),ss=Ae("WeakMap.prototype.has",!0),fs=Ae("WeakMap.prototype.delete",!0),us=U?function(){var e,n,r={assert:function(a){if(!r.has(a))throw new as("Side channel does not contain "+ns(a))},delete:function(a){if(U&&a&&(typeof a=="object"||typeof a=="function")){if(e)return fs(e,a)}else if(ue&&n)return n.delete(a);return!1},get:function(a){return U&&a&&(typeof a=="object"||typeof a=="function")&&e?os(e,a):n&&n.get(a)},has:function(a){return U&&a&&(typeof a=="object"||typeof a=="function")&&e?ss(e,a):!!n&&n.has(a)},set:function(a,o){U&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new U),is(e,a,o)):ue&&(n||(n=ue()),n.set(a,o))}};return r}:ue,cs=j,ls=Be,ps=Zi,ys=pn,vs=us,gs=vs||ys||ps,yn=function(){var e,n={assert:function(r){if(!n.has(r))throw new cs("Side channel does not contain "+ls(r))},delete:function(r){return!!e&&e.delete(r)},get:function(r){return e&&e.get(r)},has:function(r){return!!e&&e.has(r)},set:function(r,a){e||(e=gs()),e.set(r,a)}};return n},ms=jr,K=yn(),W=j,yt={assert:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new W("`O` is not an object");if(typeof e!="string")throw new W("`slot` must be a string");if(K.assert(t),!yt.has(t,e))throw new W("`"+e+"` is not present on `O`")},get:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new W("`O` is not an object");if(typeof e!="string")throw new W("`slot` must be a string");var n=K.get(t);return n&&n["$"+e]},has:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new W("`O` is not an object");if(typeof e!="string")throw new W("`slot` must be a string");var n=K.get(t);return!!n&&ms(n,"$"+e)},set:function(t,e,n){if(!t||typeof t!="object"&&typeof t!="function")throw new W("`O` is not an object");if(typeof e!="string")throw new W("`slot` must be a string");var r=K.get(t);r||(r={},K.set(t,r)),r["$"+e]=n}};Object.freeze&&Object.freeze(yt);var ds=yt,J=ds,hs=yo,_t=typeof StopIteration=="object"?StopIteration:null,Ss=function(e){if(!_t)throw new hs("this environment lacks StopIteration");J.set(e,"[[Done]]",!1);var n={next:function(){var a=J.get(this,"[[Iterator]]"),o=!!J.get(a,"[[Done]]");try{return{done:o,value:o?void 0:a.next()}}catch(f){if(J.set(a,"[[Done]]",!0),f!==_t)throw f;return{done:!0,value:void 0}}}};return J.set(n,"[[Iterator]]",e),n},vn=w,$s=vn("String.prototype.valueOf"),bs=function(e){try{return $s(e),!0}catch{return!1}},ws=vn("Object.prototype.toString"),Os="[object String]",Ps=Y(),gn=function(e){return typeof e=="string"?!0:!e||typeof e!="object"?!1:Ps?bs(e):ws(e)===Os},vt=typeof Map=="function"&&Map.prototype?Map:null,Es=typeof Set=="function"&&Set.prototype?Set:null,de;vt||(de=function(e){return!1});var mn=vt?Map.prototype.has:null,Nt=Es?Set.prototype.has:null;!de&&!mn&&(de=function(e){return!1});var dn=de||function(e){if(!e||typeof e!="object")return!1;try{if(mn.call(e),Nt)try{Nt.call(e)}catch{return!0}return e instanceof vt}catch{}return!1},Ms=typeof Map=="function"&&Map.prototype?Map:null,gt=typeof Set=="function"&&Set.prototype?Set:null,he;gt||(he=function(e){return!1});var qt=Ms?Map.prototype.has:null,hn=gt?Set.prototype.has:null;!he&&!hn&&(he=function(e){return!1});var Sn=he||function(e){if(!e||typeof e!="object")return!1;try{if(hn.call(e),qt)try{qt.call(e)}catch{return!0}return e instanceof gt}catch{}return!1},Ht=nn,Ft=Ss;if(_r()||Cr()){var _e=Symbol.iterator;pe.exports=function(e){if(e!=null&&typeof e[_e]<"u")return e[_e]();if(Ht(e))return Array.prototype[_e].call(e)}}else{var Bs=Nr,Is=gn,Ut=N,As=Ut("%Map%",!0),Ts=Ut("%Set%",!0),A=ut,zt=A("Array.prototype.push"),Gt=A("String.prototype.charCodeAt"),ks=A("String.prototype.slice"),Rs=function(e,n){var r=e.length;if(n+1>=r)return n+1;var a=Gt(e,n);if(a<55296||a>56319)return n+1;var o=Gt(e,n+1);return o<56320||o>57343?n+1:n+2},Ne=function(e){var n=0;return{next:function(){var a=n>=e.length,o;return a||(o=e[n],n+=1),{done:a,value:o}}}},Zt=function(e,n){if(Bs(e)||Ht(e))return Ne(e);if(Is(e)){var r=0;return{next:function(){var o=Rs(e,r),f=ks(e,r,o);return r=o,{done:o>e.length,value:f}}}}if(n&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()};if(!As&&!Ts)pe.exports=function(e){if(e!=null)return Zt(e,!0)};else{var Ws=dn,Ds=Sn,Yt=A("Map.prototype.forEach",!0),Vt=A("Set.prototype.forEach",!0);if(typeof Re>"u"||!Re.versions||!Re.versions.node)var Xt=A("Map.prototype.iterator",!0),Kt=A("Set.prototype.iterator",!0);var Jt=A("Map.prototype.@@iterator",!0)||A("Map.prototype._es6-shim iterator_",!0),Qt=A("Set.prototype.@@iterator",!0)||A("Set.prototype._es6-shim iterator_",!0),xs=function(e){if(Ws(e)){if(Xt)return Ft(Xt(e));if(Jt)return Jt(e);if(Yt){var n=[];return Yt(e,function(a,o){zt(n,[o,a])}),Ne(n)}}if(Ds(e)){if(Kt)return Ft(Kt(e));if(Qt)return Qt(e);if(Vt){var r=[];return Vt(e,function(a){zt(r,a)}),Ne(r)}}};pe.exports=function(e){return xs(e)||Zt(e)}}}var Cs=pe.exports,er=function(t){return t!==t},$n=function(e,n){return e===0&&n===0?1/e===1/n:!!(e===n||er(e)&&er(n))},Ls=$n,bn=function(){return typeof Object.is=="function"?Object.is:Ls},js=bn,_s=q,Ns=function(){var e=js();return _s(Object,{is:e},{is:function(){return Object.is!==e}}),e},qs=q,Hs=ae,Fs=$n,wn=bn,Us=Ns,On=Hs(wn(),Object);qs(On,{getPolyfill:wn,implementation:Fs,shim:Us});var zs=On,Gs=ae,Pn=w,Zs=N,Qe=Zs("%ArrayBuffer%",!0),ye=Pn("ArrayBuffer.prototype.byteLength",!0),Ys=Pn("Object.prototype.toString"),tr=!!Qe&&!ye&&new Qe(0).slice,rr=!!tr&&Gs(tr),En=ye||rr?function(e){if(!e||typeof e!="object")return!1;try{return ye?ye(e):rr(e,0),!0}catch{return!1}}:Qe?function(e){return Ys(e)==="[object ArrayBuffer]"}:function(e){return!1},Mn=w,Vs=Mn("Date.prototype.getDay"),Xs=function(e){try{return Vs(e),!0}catch{return!1}},Ks=Mn("Object.prototype.toString"),Js="[object Date]",Qs=Y(),ef=function(e){return typeof e!="object"||e===null?!1:Qs?Xs(e):Ks(e)===Js},nr=w,tf=Y(),rf=jr,nf=Lr,et;if(tf){var af=nr("RegExp.prototype.exec"),ar={},qe=function(){throw ar},or={toString:qe,valueOf:qe};typeof Symbol.toPrimitive=="symbol"&&(or[Symbol.toPrimitive]=qe),et=function(e){if(!e||typeof e!="object")return!1;var n=nf(e,"lastIndex"),r=n&&rf(n,"value");if(!r)return!1;try{af(e,or)}catch(a){return a===ar}}}else{var of=nr("Object.prototype.toString"),sf="[object RegExp]";et=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:of(e)===sf}}var Bn=et,ff=w,ir=ff("SharedArrayBuffer.prototype.byteLength",!0),uf=ir?function(e){if(!e||typeof e!="object")return!1;try{return ir(e),!0}catch{return!1}}:function(e){return!1},In=w,cf=In("Number.prototype.toString"),lf=function(e){try{return cf(e),!0}catch{return!1}},pf=In("Object.prototype.toString"),yf="[object Number]",vf=Y(),gf=function(e){return typeof e=="number"?!0:!e||typeof e!="object"?!1:vf?lf(e):pf(e)===yf},An=w,mf=An("Boolean.prototype.toString"),df=An("Object.prototype.toString"),hf=function(e){try{return mf(e),!0}catch{return!1}},Sf="[object Boolean]",$f=Y(),bf=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:$f?hf(e):df(e)===Sf},tt={exports:{}},He,sr;function wf(){if(sr)return He;sr=1;var t=w,e=Bn,n=t("RegExp.prototype.exec"),r=j;return He=function(o){if(!e(o))throw new r("`regex` must be a RegExp");return function(s){return n(o,s)!==null}},He}var Tn=w,Of=Tn("Object.prototype.toString"),Pf=_r(),Ef=wf();if(Pf){var Mf=Tn("Symbol.prototype.toString"),Bf=Ef(/^Symbol\(.*\)$/),If=function(e){return typeof e.valueOf()!="symbol"?!1:Bf(Mf(e))};tt.exports=function(e){if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||Of(e)!=="[object Symbol]")return!1;try{return If(e)}catch{return!1}}}else tt.exports=function(e){return!1};var Af=tt.exports,rt={exports:{}},fr=typeof BigInt<"u"&&BigInt,Tf=function(){return typeof fr=="function"&&typeof BigInt=="function"&&typeof fr(42)=="bigint"&&typeof BigInt(42)=="bigint"},kf=Tf();if(kf){var Rf=BigInt.prototype.valueOf,Wf=function(e){try{return Rf.call(e),!0}catch{}return!1};rt.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:Wf(e)}}else rt.exports=function(e){return!1};var Df=rt.exports,xf=gn,Cf=gf,Lf=bf,jf=Af,_f=Df,Nf=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(xf(e))return"String";if(Cf(e))return"Number";if(Lf(e))return"Boolean";if(jf(e))return"Symbol";if(_f(e))return"BigInt"},Se=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,ur=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,$e;Se||($e=function(e){return!1});var nt=Se?Se.prototype.has:null,Fe=ur?ur.prototype.has:null;!$e&&!nt&&($e=function(e){return!1});var qf=$e||function(e){if(!e||typeof e!="object")return!1;try{if(nt.call(e,nt),Fe)try{Fe.call(e,Fe)}catch{return!0}return e instanceof Se}catch{}return!1},at={exports:{}},Hf=N,kn=ut,Ff=Hf("%WeakSet%",!0),Ue=kn("WeakSet.prototype.has",!0);if(Ue){var ze=kn("WeakMap.prototype.has",!0);at.exports=function(e){if(!e||typeof e!="object")return!1;try{if(Ue(e,Ue),ze)try{ze(e,ze)}catch{return!0}return e instanceof Ff}catch{}return!1}}else at.exports=function(e){return!1};var Uf=at.exports,zf=dn,Gf=Sn,Zf=qf,Yf=Uf,Vf=function(e){if(e&&typeof e=="object"){if(zf(e))return"Map";if(Gf(e))return"Set";if(Zf(e))return"WeakMap";if(Yf(e))return"WeakSet"}return!1},Xf=w,cr=Xf("ArrayBuffer.prototype.byteLength",!0),Kf=En,Jf=function(e){return Kf(e)?cr?cr(e):e.byteLength:NaN},Rn=jo,R=ut,lr=ui,Qf=N,Z=Cs,eu=yn,pr=zs,yr=nn,vr=Nr,gr=En,mr=ef,dr=Bn,hr=uf,Sr=ft,$r=Nf,br=Vf,wr=vo,Or=Jf,Pr=R("SharedArrayBuffer.prototype.byteLength",!0),Er=R("Date.prototype.getTime"),Ge=Object.getPrototypeOf,Mr=R("Object.prototype.toString"),be=Qf("%Set%",!0),ot=R("Map.prototype.has",!0),we=R("Map.prototype.get",!0),Br=R("Map.prototype.size",!0),Oe=R("Set.prototype.add",!0),Wn=R("Set.prototype.delete",!0),Pe=R("Set.prototype.has",!0),ve=R("Set.prototype.size",!0);function Ir(t,e,n,r){for(var a=Z(t),o;(o=a.next())&&!o.done;)if(T(e,o.value,n,r))return Wn(t,o.value),!0;return!1}function Dn(t){if(typeof t>"u")return null;if(typeof t!="object")return typeof t=="symbol"?!1:typeof t=="string"||typeof t=="number"?+t==+t:!0}function tu(t,e,n,r,a,o){var f=Dn(n);if(f!=null)return f;var s=we(e,f),i=Rn({},a,{strict:!1});return typeof s>"u"&&!ot(e,f)||!T(r,s,i,o)?!1:!ot(t,f)&&T(r,s,i,o)}function ru(t,e,n){var r=Dn(n);return r??(Pe(e,r)&&!Pe(t,r))}function Ar(t,e,n,r,a,o){for(var f=Z(t),s,i;(s=f.next())&&!s.done;)if(i=s.value,T(n,i,a,o)&&T(r,we(e,i),a,o))return Wn(t,i),!0;return!1}function T(t,e,n,r){var a=n||{};if(a.strict?pr(t,e):t===e)return!0;var o=$r(t),f=$r(e);if(o!==f)return!1;if(!t||!e||typeof t!="object"&&typeof e!="object")return a.strict?pr(t,e):t==e;var s=r.has(t),i=r.has(e),l;if(s&&i){if(r.get(t)===r.get(e))return!0}else l={};return s||r.set(t,l),i||r.set(e,l),ou(t,e,a,r)}function Tr(t){return!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}function nu(t,e,n,r){if(ve(t)!==ve(e))return!1;for(var a=Z(t),o=Z(e),f,s,i;(f=a.next())&&!f.done;)if(f.value&&typeof f.value=="object")i||(i=new be),Oe(i,f.value);else if(!Pe(e,f.value)){if(n.strict||!ru(t,e,f.value))return!1;i||(i=new be),Oe(i,f.value)}if(i){for(;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object"){if(!Ir(i,s.value,n.strict,r))return!1}else if(!n.strict&&!Pe(t,s.value)&&!Ir(i,s.value,n.strict,r))return!1;return ve(i)===0}return!0}function au(t,e,n,r){if(Br(t)!==Br(e))return!1;for(var a=Z(t),o=Z(e),f,s,i,l,g,y;(f=a.next())&&!f.done;)if(l=f.value[0],g=f.value[1],l&&typeof l=="object")i||(i=new be),Oe(i,l);else if(y=we(e,l),typeof y>"u"&&!ot(e,l)||!T(g,y,n,r)){if(n.strict||!tu(t,e,l,g,n,r))return!1;i||(i=new be),Oe(i,l)}if(i){for(;(s=o.next())&&!s.done;)if(l=s.value[0],y=s.value[1],l&&typeof l=="object"){if(!Ar(i,t,l,y,n,r))return!1}else if(!n.strict&&(!t.has(l)||!T(we(t,l),y,n,r))&&!Ar(i,t,l,y,Rn({},n,{strict:!1}),r))return!1;return ve(i)===0}return!0}function ou(t,e,n,r){var a,o;if(typeof t!=typeof e||t==null||e==null||Mr(t)!==Mr(e)||yr(t)!==yr(e))return!1;var f=vr(t),s=vr(e);if(f!==s)return!1;var i=t instanceof Error,l=e instanceof Error;if(i!==l||(i||l)&&(t.name!==e.name||t.message!==e.message))return!1;var g=dr(t),y=dr(e);if(g!==y||(g||y)&&(t.source!==e.source||lr(t)!==lr(e)))return!1;var p=mr(t),c=mr(e);if(p!==c||(p||c)&&Er(t)!==Er(e)||n.strict&&Ge&&Ge(t)!==Ge(e))return!1;var h=wr(t),O=wr(e);if(h!==O)return!1;if(h||O){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var S=Tr(t),v=Tr(e);if(S!==v)return!1;if(S||v){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var m=gr(t),E=gr(e);if(m!==E)return!1;if(m||E)return Or(t)!==Or(e)?!1:typeof Uint8Array=="function"&&T(new Uint8Array(t),new Uint8Array(e),n,r);var d=hr(t),M=hr(e);if(d!==M)return!1;if(d||M)return Pr(t)!==Pr(e)?!1:typeof Uint8Array=="function"&&T(new Uint8Array(t),new Uint8Array(e),n,r);if(typeof t!=typeof e)return!1;var $=Sr(t),B=Sr(e);if($.length!==B.length)return!1;for($.sort(),B.sort(),a=$.length-1;a>=0;a--)if($[a]!=B[a])return!1;for(a=$.length-1;a>=0;a--)if(o=$[a],!T(t[o],e[o],n,r))return!1;var b=br(t),x=br(e);return b!==x?!1:b==="Set"||x==="Set"?nu(t,e,n,r):b==="Map"?au(t,e,n,r):!0}var iu=function(e,n,r){return T(e,n,r,eu())};const kr=io(iu);var mt={};Object.defineProperty(mt,"__esModule",{value:!0});function xn(){let t,e;const n=new Promise((r,a)=>{t=o=>{r(o),n.isPending=!1},e=o=>{a(o),n.isPending=!1}}).catch(r=>Promise.reject(r));return n.resolve=t,n.reject=e,"finally"in n||(n.finally=r=>{n.then(r),n.catch(r)}),n.isPending=!0,n}mt.future=xn;var su=mt.default=xn;function Rr(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map(function(a){a(n)}),(r=t.get("*"))&&r.slice().map(function(a){a(e,n)})}}}const z=new Map,it=new Map,Cn=new Map,Ee=new Map;function st(t){if(t.data&&t.data.type)try{switch(t.data.type){case P.PreviewMessageType.CONTROLLER_RESPONSE:{const e=t.data.payload,{id:n}=e,r=z.get(n);r&&(z.delete(n),e.ok?r.resolve(e.result):e.ok===!1&&r.reject(new Error(e.error)));break}case P.PreviewMessageType.EMOTE_EVENT:{const e=t.data.payload,{type:n,payload:r}=e,a=t.source?it.get(t.source):null;a&&n&&a.emit(n,r);break}case P.PreviewMessageType.LOAD:{t.source&&(Cn.set(t.source,!0),(Ee.get(t.source)||[]).filter(r=>r.data?.type!==P.PreviewMessageType.LOAD).forEach(st),Ee.delete(t.source));break}default:}}catch(e){console.error("Error processing WearablePreview message:",e)}}const fu=t=>{if(t.data?.type===P.PreviewMessageType.LOAD){st(t);return}if(!(t.source?Cn.get(t.source):!1)&&t.source){const n=Ee.get(t.source)||[];n.push(t),Ee.set(t.source,n);return}st(t)};typeof window<"u"&&window.addEventListener("message",fu,!1);let Wr=0;function uu(t){return function(n,r,a){const o=document.getElementById(t);if(!o||!o.contentWindow){const c=new Error("iframe not found or not accessible");return Promise.reject(c)}const f=t+"-"+Wr,s=su();z.set(f,s);const i=P.PreviewMessageType.CONTROLLER_REQUEST,l={id:f,namespace:n,method:r,params:a},g=setTimeout(()=>{z.delete(f),s.reject(new Error(`Request timeout for ${r}`))},1e4),y=s.resolve,p=s.reject;s.resolve=c=>{clearTimeout(g),y(c)},s.reject=c=>{clearTimeout(g),p(c)};try{P.sendMessage(o.contentWindow,i,l)}catch(c){const h=c instanceof Error?c.message:String(c);s.reject(new Error(`Failed to send message: ${h}`)),z.delete(f),clearTimeout(g)}return Wr++,s}}function cu(t){const e=document.getElementById(t);if(!e)throw new Error(`Could not find an iframe with id="${t}"`);z.clear();const n=e.contentWindow?it.get(e.contentWindow)??Rr():Rr();e.contentWindow&&it.set(e.contentWindow,n);const r=uu(t);return{scene:{getScreenshot(a,o){return r("scene","getScreenshot",[a,o])},getMetrics(){return r("scene","getMetrics",[])},changeZoom:function(a){return r("scene","changeZoom",[a])},panCamera:function(a){return r("scene","panCamera",[a])},changeCameraPosition:function(a){return r("scene","changeCameraPosition",[a])},cleanup(){return r("scene","cleanup",[])},setUsername:function(a){return r("scene","setUsername",[a])}},emote:{getLength(){return r("emote","getLength",[])},isPlaying(){return r("emote","isPlaying",[])},goTo(a){return r("emote","goTo",[a])},play(){return r("emote","play",[])},pause(){return r("emote","pause",[])},stop(){return r("emote","stop",[])},enableSound(){return r("emote","enableSound",[])},disableSound(){return r("emote","disableSound",[])},hasSound(){return r("emote","hasSound",[])},isSocialEmote(){return r("emote","isSocialEmote",[])},getSocialEmoteAnimations(){return r("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation(){return r("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:n},physics:{setSpringBonesParams(a,o){return r("physics","setSpringBonesParams",[a,o])}}}}function lu(){let t=null;return(e,n,...r)=>{t&&clearTimeout(t),t=setTimeout(e,n,...r)}}const pu=so("iframe")({background:"transparent",border:0,width:"100%",height:"100%"}),yu=lu(),u=(t,e)=>e==null||e===""?"":Array.isArray(e)?e.length>0?e.map(n=>`${t}=${encodeURIComponent(String(n))}`).join("&"):"":`${t}=${encodeURIComponent(String(e))}`,vu=t=>{const{dev:e=!1,baseUrl:n=fo.get("WEARABLE_PREVIEW_URL"),unity:r=!1,onLoad:a=()=>{},onError:o=()=>{},onUpdate:f=()=>{},...s}=t,[i,l]=I.useState({isReady:!1,pendingOptions:null}),g=I.useRef(null),y=I.useRef(null),p=I.useMemo(()=>{const{contractAddress:v,tokenId:m,itemId:E,profile:d,urns:M,urls:$,base64s:B,skin:b,hair:x,eyes:ie,bodyShape:Te,emote:V,camera:C,projection:F,zoom:ke,background:se,offsetX:Ln,offsetY:jn,offsetZ:_n,cameraX:Nn,cameraY:qn,cameraZ:Hn,wheelZoom:Fn,wheelPrecision:Un,wheelStart:zn,disableBackground:Gn,disableAutoRotate:Zn,disableAutoCenter:Yn,disableFace:Vn,disableDefaultWearables:Xn,disableDefaultEmotes:Kn,disableFadeEffect:Jn,showSceneBoundaries:Qn,showThumbnailBoundaries:ea,panning:ta,lockAlpha:ra,lockBeta:na,lockRadius:aa,peerUrl:oa,nftServerUrl:ia,marketplaceServerUrl:sa,type:fa,unityMode:ua,username:ca,socialEmote:la}=s,pa=u("contract",v),ya=u("token",m),va=u("item",E),ga=u("profile",d),ma=u("urn",M),da=u("url",$),ha=u("base64",B),Sa=u("skin",b),$a=u("hair",x),ba=u("eyes",ie),wa=u("bodyShape",Te),Oa=u("emote",V),Pa=u("camera",C),Ea=u("projection",F),Ma=u("zoom",ke),Ba=u("background",se),Ia=u("offsetX",Ln),Aa=u("offsetY",jn),Ta=u("offsetZ",_n),ka=u("cameraX",Nn),Ra=u("cameraY",qn),Wa=u("cameraZ",Hn),Da=u("wheelZoom",Fn),xa=u("wheelPrecision",Un),Ca=u("wheelStart",zn),La=u("disableBackground",Gn),ja=u("disableAutoRotate",Zn),_a=u("disableAutoCenter",Yn),Na=u("disableFace",Vn),qa=u("disableDefaultWearables",Xn),Ha=u("disableDefaultEmotes",Kn),Fa=u("disableFadeEffect",Jn),Ua=u("showSceneBoundaries",Qn),za=u("showThumbnailBoundaries",ea),Ga=u("peerUrl",oa),Za=u("marketplaceServerUrl",sa??ia),Ya=u("type",fa),Va=u("panning",ta),Xa=u("lockAlpha",ra),Ka=u("lockBeta",na),Ja=u("lockRadius",aa),Qa=u("env",e?"dev":void 0),eo=u("unity",r),to=u("mode",ua),ro=u("username",ca),no=u("socialEmote",la);return n+"?"+[pa,ya,va,ga,ma,da,ha,Sa,$a,ba,wa,Oa,Pa,Ea,Ma,Ba,Ia,Aa,Ta,ka,Ra,Wa,Da,xa,Ca,La,ja,_a,Na,qa,Ha,Fa,Ua,za,Ga,Za,Ya,Va,Xa,Ka,Ja,Qa,eo,to,ro,no].filter(ao=>!!ao).join("&")},[s,n,e,r]),c=I.useMemo(()=>{const v={};for(const m in s)typeof s[m]!="function"&&(v[m]=s[m]);return v},[s]),h=I.useCallback(v=>{const m=y.current;(!m||!kr(v,m))&&(g.current?.contentWindow&&P.sendMessage(g.current.contentWindow,P.PreviewMessageType.UPDATE,{options:v}),f(v),y.current=v)},[f]),O=I.useCallback(()=>{g.current?typeof window<"u"&&(i.isReady?h(c):kr(i.pendingOptions,c)||l(v=>({...v,pendingOptions:c,url:p}))):console.warn("Could not send update, iframe is not referenced")},[c,i.pendingOptions,i.isReady,h]),S=I.useCallback(v=>{const{origin:m}=v;if(m!==n||!v.data?.type)return;switch(v.data.type){case P.PreviewMessageType.LOAD:{const d=v.data.payload;a(d?.renderer);break}case P.PreviewMessageType.ERROR:{const d=v.data.payload;o(new Error(d.message));break}case P.PreviewMessageType.READY:{l(d=>d.isReady?d:d.pendingOptions!==null?(h(d.pendingOptions),{...d,isReady:!0,pendingOptions:null}):{...d,isReady:!0});break}}},[n,a,o,h]);return I.useEffect(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S,!1)}),[S]),I.useEffect(()=>{t.blob&&O()},[t.blob,O]),I.useEffect(()=>{yu(O,500)},[O]),t.tokenId&&t.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),uo.jsx(pu,{id:t.id,src:p,ref:g,allow:"autoplay"})};vu.createController=cu;export{vu as WearablePreview};
|
|
4
|
+
`+e.prev}function fe(t,e){var n=Ke(t),r=[];if(n){r.length=t.length;for(var a=0;a<t.length;a++)r[a]=D(t,a)?e(t[a],t):""}var o=typeof Le=="function"?Le(t):[],f;if(G){f={};for(var s=0;s<o.length;s++)f["$"+o[s]]=o[s]}for(var i in t)D(t,i)&&(n&&String(Number(i))===i&&i<t.length||G&&f["$"+i]instanceof Symbol||(an.call(/[^\w$]/,i)?r.push(e(i,t)+": "+e(t[i],t)):r.push(i+": "+e(t[i],t))));if(typeof Le=="function")for(var l=0;l<o.length;l++)on.call(t,o[l])&&r.push("["+e(o[l])+"]: "+e(t[o[l]],t));return r}var qi=Be,Hi=j,Ie=function(t,e,n){for(var r=t,a;(a=r.next)!=null;r=a)if(a.key===e)return r.next=a.next,n||(a.next=t.next,t.next=a),a},Fi=function(t,e){if(t){var n=Ie(t,e);return n&&n.value}},Ui=function(t,e,n){var r=Ie(t,e);r?r.value=n:t.next={key:e,next:t.next,value:n}},zi=function(t,e){return t?!!Ie(t,e):!1},Gi=function(t,e){if(t)return Ie(t,e,!0)},Zi=function(){var e,n={assert:function(r){if(!n.has(r))throw new Hi("Side channel does not contain "+qi(r))},delete:function(r){var a=e&&e.next,o=Gi(e,r);return o&&a&&a===o&&(e=void 0),!!o},get:function(r){return Fi(e,r)},has:function(r){return zi(e,r)},set:function(r,a){e||(e={next:void 0}),Ui(e,r,a)}};return n},Yi=N,oe=b,Vi=Be,Xi=j,jt=Yi("%Map%",!0),Ki=oe("Map.prototype.get",!0),Ji=oe("Map.prototype.set",!0),Qi=oe("Map.prototype.has",!0),es=oe("Map.prototype.delete",!0),ts=oe("Map.prototype.size",!0),pn=!!jt&&function(){var e,n={assert:function(r){if(!n.has(r))throw new Xi("Side channel does not contain "+Vi(r))},delete:function(r){if(e){var a=es(e,r);return ts(e)===0&&(e=void 0),a}return!1},get:function(r){if(e)return Ki(e,r)},has:function(r){return e?Qi(e,r):!1},set:function(r,a){e||(e=new jt),Ji(e,r,a)}};return n},rs=N,Ae=b,ns=Be,ue=pn,as=j,U=rs("%WeakMap%",!0),os=Ae("WeakMap.prototype.get",!0),is=Ae("WeakMap.prototype.set",!0),ss=Ae("WeakMap.prototype.has",!0),fs=Ae("WeakMap.prototype.delete",!0),us=U?function(){var e,n,r={assert:function(a){if(!r.has(a))throw new as("Side channel does not contain "+ns(a))},delete:function(a){if(U&&a&&(typeof a=="object"||typeof a=="function")){if(e)return fs(e,a)}else if(ue&&n)return n.delete(a);return!1},get:function(a){return U&&a&&(typeof a=="object"||typeof a=="function")&&e?os(e,a):n&&n.get(a)},has:function(a){return U&&a&&(typeof a=="object"||typeof a=="function")&&e?ss(e,a):!!n&&n.has(a)},set:function(a,o){U&&a&&(typeof a=="object"||typeof a=="function")?(e||(e=new U),is(e,a,o)):ue&&(n||(n=ue()),n.set(a,o))}};return r}:ue,cs=j,ls=Be,ps=Zi,ys=pn,vs=us,gs=vs||ys||ps,yn=function(){var e,n={assert:function(r){if(!n.has(r))throw new cs("Side channel does not contain "+ls(r))},delete:function(r){return!!e&&e.delete(r)},get:function(r){return e&&e.get(r)},has:function(r){return!!e&&e.has(r)},set:function(r,a){e||(e=gs()),e.set(r,a)}};return n},ms=jr,K=yn(),W=j,yt={assert:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new W("`O` is not an object");if(typeof e!="string")throw new W("`slot` must be a string");if(K.assert(t),!yt.has(t,e))throw new W("`"+e+"` is not present on `O`")},get:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new W("`O` is not an object");if(typeof e!="string")throw new W("`slot` must be a string");var n=K.get(t);return n&&n["$"+e]},has:function(t,e){if(!t||typeof t!="object"&&typeof t!="function")throw new W("`O` is not an object");if(typeof e!="string")throw new W("`slot` must be a string");var n=K.get(t);return!!n&&ms(n,"$"+e)},set:function(t,e,n){if(!t||typeof t!="object"&&typeof t!="function")throw new W("`O` is not an object");if(typeof e!="string")throw new W("`slot` must be a string");var r=K.get(t);r||(r={},K.set(t,r)),r["$"+e]=n}};Object.freeze&&Object.freeze(yt);var ds=yt,J=ds,hs=yo,_t=typeof StopIteration=="object"?StopIteration:null,Ss=function(e){if(!_t)throw new hs("this environment lacks StopIteration");J.set(e,"[[Done]]",!1);var n={next:function(){var a=J.get(this,"[[Iterator]]"),o=!!J.get(a,"[[Done]]");try{return{done:o,value:o?void 0:a.next()}}catch(f){if(J.set(a,"[[Done]]",!0),f!==_t)throw f;return{done:!0,value:void 0}}}};return J.set(n,"[[Iterator]]",e),n},vn=b,$s=vn("String.prototype.valueOf"),ws=function(e){try{return $s(e),!0}catch{return!1}},bs=vn("Object.prototype.toString"),Os="[object String]",Ps=Y(),gn=function(e){return typeof e=="string"?!0:!e||typeof e!="object"?!1:Ps?ws(e):bs(e)===Os},vt=typeof Map=="function"&&Map.prototype?Map:null,Es=typeof Set=="function"&&Set.prototype?Set:null,de;vt||(de=function(e){return!1});var mn=vt?Map.prototype.has:null,Nt=Es?Set.prototype.has:null;!de&&!mn&&(de=function(e){return!1});var dn=de||function(e){if(!e||typeof e!="object")return!1;try{if(mn.call(e),Nt)try{Nt.call(e)}catch{return!0}return e instanceof vt}catch{}return!1},Ms=typeof Map=="function"&&Map.prototype?Map:null,gt=typeof Set=="function"&&Set.prototype?Set:null,he;gt||(he=function(e){return!1});var qt=Ms?Map.prototype.has:null,hn=gt?Set.prototype.has:null;!he&&!hn&&(he=function(e){return!1});var Sn=he||function(e){if(!e||typeof e!="object")return!1;try{if(hn.call(e),qt)try{qt.call(e)}catch{return!0}return e instanceof gt}catch{}return!1},Ht=nn,Ft=Ss;if(_r()||Cr()){var _e=Symbol.iterator;pe.exports=function(e){if(e!=null&&typeof e[_e]<"u")return e[_e]();if(Ht(e))return Array.prototype[_e].call(e)}}else{var Bs=Nr,Is=gn,Ut=N,As=Ut("%Map%",!0),Ts=Ut("%Set%",!0),A=ut,zt=A("Array.prototype.push"),Gt=A("String.prototype.charCodeAt"),ks=A("String.prototype.slice"),Rs=function(e,n){var r=e.length;if(n+1>=r)return n+1;var a=Gt(e,n);if(a<55296||a>56319)return n+1;var o=Gt(e,n+1);return o<56320||o>57343?n+1:n+2},Ne=function(e){var n=0;return{next:function(){var a=n>=e.length,o;return a||(o=e[n],n+=1),{done:a,value:o}}}},Zt=function(e,n){if(Bs(e)||Ht(e))return Ne(e);if(Is(e)){var r=0;return{next:function(){var o=Rs(e,r),f=ks(e,r,o);return r=o,{done:o>e.length,value:f}}}}if(n&&typeof e["_es6-shim iterator_"]<"u")return e["_es6-shim iterator_"]()};if(!As&&!Ts)pe.exports=function(e){if(e!=null)return Zt(e,!0)};else{var Ws=dn,Ds=Sn,Yt=A("Map.prototype.forEach",!0),Vt=A("Set.prototype.forEach",!0);if(typeof Re>"u"||!Re.versions||!Re.versions.node)var Xt=A("Map.prototype.iterator",!0),Kt=A("Set.prototype.iterator",!0);var Jt=A("Map.prototype.@@iterator",!0)||A("Map.prototype._es6-shim iterator_",!0),Qt=A("Set.prototype.@@iterator",!0)||A("Set.prototype._es6-shim iterator_",!0),xs=function(e){if(Ws(e)){if(Xt)return Ft(Xt(e));if(Jt)return Jt(e);if(Yt){var n=[];return Yt(e,function(a,o){zt(n,[o,a])}),Ne(n)}}if(Ds(e)){if(Kt)return Ft(Kt(e));if(Qt)return Qt(e);if(Vt){var r=[];return Vt(e,function(a){zt(r,a)}),Ne(r)}}};pe.exports=function(e){return xs(e)||Zt(e)}}}var Cs=pe.exports,er=function(t){return t!==t},$n=function(e,n){return e===0&&n===0?1/e===1/n:!!(e===n||er(e)&&er(n))},Ls=$n,wn=function(){return typeof Object.is=="function"?Object.is:Ls},js=wn,_s=q,Ns=function(){var e=js();return _s(Object,{is:e},{is:function(){return Object.is!==e}}),e},qs=q,Hs=ae,Fs=$n,bn=wn,Us=Ns,On=Hs(bn(),Object);qs(On,{getPolyfill:bn,implementation:Fs,shim:Us});var zs=On,Gs=ae,Pn=b,Zs=N,Qe=Zs("%ArrayBuffer%",!0),ye=Pn("ArrayBuffer.prototype.byteLength",!0),Ys=Pn("Object.prototype.toString"),tr=!!Qe&&!ye&&new Qe(0).slice,rr=!!tr&&Gs(tr),En=ye||rr?function(e){if(!e||typeof e!="object")return!1;try{return ye?ye(e):rr(e,0),!0}catch{return!1}}:Qe?function(e){return Ys(e)==="[object ArrayBuffer]"}:function(e){return!1},Mn=b,Vs=Mn("Date.prototype.getDay"),Xs=function(e){try{return Vs(e),!0}catch{return!1}},Ks=Mn("Object.prototype.toString"),Js="[object Date]",Qs=Y(),ef=function(e){return typeof e!="object"||e===null?!1:Qs?Xs(e):Ks(e)===Js},nr=b,tf=Y(),rf=jr,nf=Lr,et;if(tf){var af=nr("RegExp.prototype.exec"),ar={},qe=function(){throw ar},or={toString:qe,valueOf:qe};typeof Symbol.toPrimitive=="symbol"&&(or[Symbol.toPrimitive]=qe),et=function(e){if(!e||typeof e!="object")return!1;var n=nf(e,"lastIndex"),r=n&&rf(n,"value");if(!r)return!1;try{af(e,or)}catch(a){return a===ar}}}else{var of=nr("Object.prototype.toString"),sf="[object RegExp]";et=function(e){return!e||typeof e!="object"&&typeof e!="function"?!1:of(e)===sf}}var Bn=et,ff=b,ir=ff("SharedArrayBuffer.prototype.byteLength",!0),uf=ir?function(e){if(!e||typeof e!="object")return!1;try{return ir(e),!0}catch{return!1}}:function(e){return!1},In=b,cf=In("Number.prototype.toString"),lf=function(e){try{return cf(e),!0}catch{return!1}},pf=In("Object.prototype.toString"),yf="[object Number]",vf=Y(),gf=function(e){return typeof e=="number"?!0:!e||typeof e!="object"?!1:vf?lf(e):pf(e)===yf},An=b,mf=An("Boolean.prototype.toString"),df=An("Object.prototype.toString"),hf=function(e){try{return mf(e),!0}catch{return!1}},Sf="[object Boolean]",$f=Y(),wf=function(e){return typeof e=="boolean"?!0:e===null||typeof e!="object"?!1:$f?hf(e):df(e)===Sf},tt={exports:{}},He,sr;function bf(){if(sr)return He;sr=1;var t=b,e=Bn,n=t("RegExp.prototype.exec"),r=j;return He=function(o){if(!e(o))throw new r("`regex` must be a RegExp");return function(s){return n(o,s)!==null}},He}var Tn=b,Of=Tn("Object.prototype.toString"),Pf=_r(),Ef=bf();if(Pf){var Mf=Tn("Symbol.prototype.toString"),Bf=Ef(/^Symbol\(.*\)$/),If=function(e){return typeof e.valueOf()!="symbol"?!1:Bf(Mf(e))};tt.exports=function(e){if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||Of(e)!=="[object Symbol]")return!1;try{return If(e)}catch{return!1}}}else tt.exports=function(e){return!1};var Af=tt.exports,rt={exports:{}},fr=typeof BigInt<"u"&&BigInt,Tf=function(){return typeof fr=="function"&&typeof BigInt=="function"&&typeof fr(42)=="bigint"&&typeof BigInt(42)=="bigint"},kf=Tf();if(kf){var Rf=BigInt.prototype.valueOf,Wf=function(e){try{return Rf.call(e),!0}catch{}return!1};rt.exports=function(e){return e===null||typeof e>"u"||typeof e=="boolean"||typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="function"?!1:typeof e=="bigint"?!0:Wf(e)}}else rt.exports=function(e){return!1};var Df=rt.exports,xf=gn,Cf=gf,Lf=wf,jf=Af,_f=Df,Nf=function(e){if(e==null||typeof e!="object"&&typeof e!="function")return null;if(xf(e))return"String";if(Cf(e))return"Number";if(Lf(e))return"Boolean";if(jf(e))return"Symbol";if(_f(e))return"BigInt"},Se=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,ur=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,$e;Se||($e=function(e){return!1});var nt=Se?Se.prototype.has:null,Fe=ur?ur.prototype.has:null;!$e&&!nt&&($e=function(e){return!1});var qf=$e||function(e){if(!e||typeof e!="object")return!1;try{if(nt.call(e,nt),Fe)try{Fe.call(e,Fe)}catch{return!0}return e instanceof Se}catch{}return!1},at={exports:{}},Hf=N,kn=ut,Ff=Hf("%WeakSet%",!0),Ue=kn("WeakSet.prototype.has",!0);if(Ue){var ze=kn("WeakMap.prototype.has",!0);at.exports=function(e){if(!e||typeof e!="object")return!1;try{if(Ue(e,Ue),ze)try{ze(e,ze)}catch{return!0}return e instanceof Ff}catch{}return!1}}else at.exports=function(e){return!1};var Uf=at.exports,zf=dn,Gf=Sn,Zf=qf,Yf=Uf,Vf=function(e){if(e&&typeof e=="object"){if(zf(e))return"Map";if(Gf(e))return"Set";if(Zf(e))return"WeakMap";if(Yf(e))return"WeakSet"}return!1},Xf=b,cr=Xf("ArrayBuffer.prototype.byteLength",!0),Kf=En,Jf=function(e){return Kf(e)?cr?cr(e):e.byteLength:NaN},Rn=jo,R=ut,lr=ui,Qf=N,Z=Cs,eu=yn,pr=zs,yr=nn,vr=Nr,gr=En,mr=ef,dr=Bn,hr=uf,Sr=ft,$r=Nf,wr=Vf,br=vo,Or=Jf,Pr=R("SharedArrayBuffer.prototype.byteLength",!0),Er=R("Date.prototype.getTime"),Ge=Object.getPrototypeOf,Mr=R("Object.prototype.toString"),we=Qf("%Set%",!0),ot=R("Map.prototype.has",!0),be=R("Map.prototype.get",!0),Br=R("Map.prototype.size",!0),Oe=R("Set.prototype.add",!0),Wn=R("Set.prototype.delete",!0),Pe=R("Set.prototype.has",!0),ve=R("Set.prototype.size",!0);function Ir(t,e,n,r){for(var a=Z(t),o;(o=a.next())&&!o.done;)if(T(e,o.value,n,r))return Wn(t,o.value),!0;return!1}function Dn(t){if(typeof t>"u")return null;if(typeof t!="object")return typeof t=="symbol"?!1:typeof t=="string"||typeof t=="number"?+t==+t:!0}function tu(t,e,n,r,a,o){var f=Dn(n);if(f!=null)return f;var s=be(e,f),i=Rn({},a,{strict:!1});return typeof s>"u"&&!ot(e,f)||!T(r,s,i,o)?!1:!ot(t,f)&&T(r,s,i,o)}function ru(t,e,n){var r=Dn(n);return r??(Pe(e,r)&&!Pe(t,r))}function Ar(t,e,n,r,a,o){for(var f=Z(t),s,i;(s=f.next())&&!s.done;)if(i=s.value,T(n,i,a,o)&&T(r,be(e,i),a,o))return Wn(t,i),!0;return!1}function T(t,e,n,r){var a=n||{};if(a.strict?pr(t,e):t===e)return!0;var o=$r(t),f=$r(e);if(o!==f)return!1;if(!t||!e||typeof t!="object"&&typeof e!="object")return a.strict?pr(t,e):t==e;var s=r.has(t),i=r.has(e),l;if(s&&i){if(r.get(t)===r.get(e))return!0}else l={};return s||r.set(t,l),i||r.set(e,l),ou(t,e,a,r)}function Tr(t){return!t||typeof t!="object"||typeof t.length!="number"||typeof t.copy!="function"||typeof t.slice!="function"||t.length>0&&typeof t[0]!="number"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))}function nu(t,e,n,r){if(ve(t)!==ve(e))return!1;for(var a=Z(t),o=Z(e),f,s,i;(f=a.next())&&!f.done;)if(f.value&&typeof f.value=="object")i||(i=new we),Oe(i,f.value);else if(!Pe(e,f.value)){if(n.strict||!ru(t,e,f.value))return!1;i||(i=new we),Oe(i,f.value)}if(i){for(;(s=o.next())&&!s.done;)if(s.value&&typeof s.value=="object"){if(!Ir(i,s.value,n.strict,r))return!1}else if(!n.strict&&!Pe(t,s.value)&&!Ir(i,s.value,n.strict,r))return!1;return ve(i)===0}return!0}function au(t,e,n,r){if(Br(t)!==Br(e))return!1;for(var a=Z(t),o=Z(e),f,s,i,l,g,y;(f=a.next())&&!f.done;)if(l=f.value[0],g=f.value[1],l&&typeof l=="object")i||(i=new we),Oe(i,l);else if(y=be(e,l),typeof y>"u"&&!ot(e,l)||!T(g,y,n,r)){if(n.strict||!tu(t,e,l,g,n,r))return!1;i||(i=new we),Oe(i,l)}if(i){for(;(s=o.next())&&!s.done;)if(l=s.value[0],y=s.value[1],l&&typeof l=="object"){if(!Ar(i,t,l,y,n,r))return!1}else if(!n.strict&&(!t.has(l)||!T(be(t,l),y,n,r))&&!Ar(i,t,l,y,Rn({},n,{strict:!1}),r))return!1;return ve(i)===0}return!0}function ou(t,e,n,r){var a,o;if(typeof t!=typeof e||t==null||e==null||Mr(t)!==Mr(e)||yr(t)!==yr(e))return!1;var f=vr(t),s=vr(e);if(f!==s)return!1;var i=t instanceof Error,l=e instanceof Error;if(i!==l||(i||l)&&(t.name!==e.name||t.message!==e.message))return!1;var g=dr(t),y=dr(e);if(g!==y||(g||y)&&(t.source!==e.source||lr(t)!==lr(e)))return!1;var p=mr(t),c=mr(e);if(p!==c||(p||c)&&Er(t)!==Er(e)||n.strict&&Ge&&Ge(t)!==Ge(e))return!1;var h=br(t),O=br(e);if(h!==O)return!1;if(h||O){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var S=Tr(t),v=Tr(e);if(S!==v)return!1;if(S||v){if(t.length!==e.length)return!1;for(a=0;a<t.length;a++)if(t[a]!==e[a])return!1;return!0}var m=gr(t),E=gr(e);if(m!==E)return!1;if(m||E)return Or(t)!==Or(e)?!1:typeof Uint8Array=="function"&&T(new Uint8Array(t),new Uint8Array(e),n,r);var d=hr(t),M=hr(e);if(d!==M)return!1;if(d||M)return Pr(t)!==Pr(e)?!1:typeof Uint8Array=="function"&&T(new Uint8Array(t),new Uint8Array(e),n,r);if(typeof t!=typeof e)return!1;var $=Sr(t),B=Sr(e);if($.length!==B.length)return!1;for($.sort(),B.sort(),a=$.length-1;a>=0;a--)if($[a]!=B[a])return!1;for(a=$.length-1;a>=0;a--)if(o=$[a],!T(t[o],e[o],n,r))return!1;var w=wr(t),x=wr(e);return w!==x?!1:w==="Set"||x==="Set"?nu(t,e,n,r):w==="Map"?au(t,e,n,r):!0}var iu=function(e,n,r){return T(e,n,r,eu())};const kr=io(iu);var mt={};Object.defineProperty(mt,"__esModule",{value:!0});function xn(){let t,e;const n=new Promise((r,a)=>{t=o=>{r(o),n.isPending=!1},e=o=>{a(o),n.isPending=!1}}).catch(r=>Promise.reject(r));return n.resolve=t,n.reject=e,"finally"in n||(n.finally=r=>{n.then(r),n.catch(r)}),n.isPending=!0,n}mt.future=xn;var su=mt.default=xn;function Rr(t){return{all:t=t||new Map,on:function(e,n){var r=t.get(e);r?r.push(n):t.set(e,[n])},off:function(e,n){var r=t.get(e);r&&(n?r.splice(r.indexOf(n)>>>0,1):t.set(e,[]))},emit:function(e,n){var r=t.get(e);r&&r.slice().map(function(a){a(n)}),(r=t.get("*"))&&r.slice().map(function(a){a(e,n)})}}}const z=new Map,it=new Map,Cn=new Map,Ee=new Map;function st(t){if(t.data&&t.data.type)try{switch(t.data.type){case P.PreviewMessageType.CONTROLLER_RESPONSE:{const e=t.data.payload,{id:n}=e,r=z.get(n);r&&(z.delete(n),e.ok?r.resolve(e.result):e.ok===!1&&r.reject(new Error(e.error)));break}case P.PreviewMessageType.EMOTE_EVENT:{const e=t.data.payload,{type:n,payload:r}=e,a=t.source?it.get(t.source):null;a&&n&&a.emit(n,r);break}case P.PreviewMessageType.LOAD:{t.source&&(Cn.set(t.source,!0),(Ee.get(t.source)||[]).filter(r=>r.data?.type!==P.PreviewMessageType.LOAD).forEach(st),Ee.delete(t.source));break}default:}}catch(e){console.error("Error processing WearablePreview message:",e)}}const fu=t=>{if(t.data?.type===P.PreviewMessageType.LOAD){st(t);return}if(!(t.source?Cn.get(t.source):!1)&&t.source){const n=Ee.get(t.source)||[];n.push(t),Ee.set(t.source,n);return}st(t)};typeof window<"u"&&window.addEventListener("message",fu,!1);let Wr=0;function uu(t){return function(n,r,a){const o=document.getElementById(t);if(!o||!o.contentWindow){const c=new Error("iframe not found or not accessible");return Promise.reject(c)}const f=t+"-"+Wr,s=su();z.set(f,s);const i=P.PreviewMessageType.CONTROLLER_REQUEST,l={id:f,namespace:n,method:r,params:a},g=setTimeout(()=>{z.delete(f),s.reject(new Error(`Request timeout for ${r}`))},1e4),y=s.resolve,p=s.reject;s.resolve=c=>{clearTimeout(g),y(c)},s.reject=c=>{clearTimeout(g),p(c)};try{P.sendMessage(o.contentWindow,i,l)}catch(c){const h=c instanceof Error?c.message:String(c);s.reject(new Error(`Failed to send message: ${h}`)),z.delete(f),clearTimeout(g)}return Wr++,s}}function cu(t){const e=document.getElementById(t);if(!e)throw new Error(`Could not find an iframe with id="${t}"`);z.clear();const n=e.contentWindow?it.get(e.contentWindow)??Rr():Rr();e.contentWindow&&it.set(e.contentWindow,n);const r=uu(t);return{scene:{getScreenshot(a,o){return r("scene","getScreenshot",[a,o])},getMetrics(){return r("scene","getMetrics",[])},changeZoom:function(a){return r("scene","changeZoom",[a])},panCamera:function(a){return r("scene","panCamera",[a])},changeCameraPosition:function(a){return r("scene","changeCameraPosition",[a])},cleanup(){return r("scene","cleanup",[])},setUsername:function(a){return r("scene","setUsername",[a])}},emote:{getLength(){return r("emote","getLength",[])},isPlaying(){return r("emote","isPlaying",[])},goTo(a){return r("emote","goTo",[a])},play(){return r("emote","play",[])},pause(){return r("emote","pause",[])},stop(){return r("emote","stop",[])},enableSound(){return r("emote","enableSound",[])},disableSound(){return r("emote","disableSound",[])},hasSound(){return r("emote","hasSound",[])},isSocialEmote(){return r("emote","isSocialEmote",[])},getSocialEmoteAnimations(){return r("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation(){return r("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:n},physics:{setSpringBonesParams(a,o){return r("physics","setSpringBonesParams",[a,o])}}}}function lu(){let t=null;return(e,n,...r)=>{t&&clearTimeout(t),t=setTimeout(e,n,...r)}}const pu=so("iframe")({background:"transparent",border:0,width:"100%",height:"100%"}),yu=lu(),u=(t,e)=>e==null||e===""?"":Array.isArray(e)?e.length>0?e.map(n=>`${t}=${encodeURIComponent(String(n))}`).join("&"):"":`${t}=${encodeURIComponent(String(e))}`,vu=t=>{const{dev:e=!1,baseUrl:n=fo.get("WEARABLE_PREVIEW_URL"),unity:r=!1,onLoad:a=()=>{},onError:o=()=>{},onUpdate:f=()=>{},...s}=t,[i,l]=I.useState({isReady:!1,pendingOptions:null}),g=I.useRef(null),y=I.useRef(null),p=I.useMemo(()=>{const{contractAddress:v,tokenId:m,itemId:E,profile:d,urns:M,urls:$,base64s:B,skin:w,hair:x,eyes:ie,bodyShape:Te,emote:V,camera:C,projection:F,zoom:ke,background:se,offsetX:Ln,offsetY:jn,offsetZ:_n,cameraX:Nn,cameraY:qn,cameraZ:Hn,wheelZoom:Fn,wheelPrecision:Un,wheelStart:zn,disableBackground:Gn,disableAutoRotate:Zn,disableAutoCenter:Yn,disableFace:Vn,disableDefaultWearables:Xn,disableDefaultEmotes:Kn,disableFadeEffect:Jn,showSceneBoundaries:Qn,showThumbnailBoundaries:ea,panning:ta,lockAlpha:ra,lockBeta:na,lockRadius:aa,peerUrl:oa,nftServerUrl:ia,marketplaceServerUrl:sa,type:fa,unityMode:ua,username:ca,socialEmote:la}=s,pa=u("contract",v),ya=u("token",m),va=u("item",E),ga=u("profile",d),ma=u("urn",M),da=u("url",$),ha=u("base64",B),Sa=u("skin",w),$a=u("hair",x),wa=u("eyes",ie),ba=u("bodyShape",Te),Oa=u("emote",V),Pa=u("camera",C),Ea=u("projection",F),Ma=u("zoom",ke),Ba=u("background",se),Ia=u("offsetX",Ln),Aa=u("offsetY",jn),Ta=u("offsetZ",_n),ka=u("cameraX",Nn),Ra=u("cameraY",qn),Wa=u("cameraZ",Hn),Da=u("wheelZoom",Fn),xa=u("wheelPrecision",Un),Ca=u("wheelStart",zn),La=u("disableBackground",Gn),ja=u("disableAutoRotate",Zn),_a=u("disableAutoCenter",Yn),Na=u("disableFace",Vn),qa=u("disableDefaultWearables",Xn),Ha=u("disableDefaultEmotes",Kn),Fa=u("disableFadeEffect",Jn),Ua=u("showSceneBoundaries",Qn),za=u("showThumbnailBoundaries",ea),Ga=u("peerUrl",oa),Za=u("marketplaceServerUrl",sa??ia),Ya=u("type",fa),Va=u("panning",ta),Xa=u("lockAlpha",ra),Ka=u("lockBeta",na),Ja=u("lockRadius",aa),Qa=u("env",e?"dev":void 0),eo=u("unity",r),to=u("mode",ua),ro=u("username",ca),no=u("socialEmote",la);return n+"?"+[pa,ya,va,ga,ma,da,ha,Sa,$a,wa,ba,Oa,Pa,Ea,Ma,Ba,Ia,Aa,Ta,ka,Ra,Wa,Da,xa,Ca,La,ja,_a,Na,qa,Ha,Fa,Ua,za,Ga,Za,Ya,Va,Xa,Ka,Ja,Qa,eo,to,ro,no].filter(ao=>!!ao).join("&")},[s,n,e,r]),c=I.useMemo(()=>{const v={};for(const m in s)typeof s[m]!="function"&&(v[m]=s[m]);return v},[s]),h=I.useCallback(v=>{const m=y.current;(!m||!kr(v,m))&&(g.current?.contentWindow&&P.sendMessage(g.current.contentWindow,P.PreviewMessageType.UPDATE,{options:v}),f(v),y.current=v)},[f]),O=I.useCallback(()=>{g.current?typeof window<"u"&&(i.isReady?h(c):kr(i.pendingOptions,c)||l(v=>({...v,pendingOptions:c,url:p}))):console.warn("Could not send update, iframe is not referenced")},[c,i.pendingOptions,i.isReady,h]),S=I.useCallback(v=>{const{origin:m}=v;if(m!==n||!v.data?.type)return;switch(v.data.type){case P.PreviewMessageType.LOAD:{const d=v.data.payload;a(d?.renderer);break}case P.PreviewMessageType.ERROR:{const d=v.data.payload;o(new Error(d.message));break}case P.PreviewMessageType.READY:{l(d=>d.isReady?d:d.pendingOptions!==null?(h(d.pendingOptions),{...d,isReady:!0,pendingOptions:null}):{...d,isReady:!0});break}}},[n,a,o,h]);return I.useEffect(()=>(window.addEventListener("message",S,!1),()=>{window.removeEventListener("message",S,!1)}),[S]),I.useEffect(()=>{t.blob&&O()},[t.blob,O]),I.useEffect(()=>{yu(O,500)},[O]),t.tokenId&&t.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),uo.jsx(pu,{id:t.id,src:p,ref:g,allow:"autoplay"})};vu.createController=cu;export{vu as WearablePreview};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const d=o`<svg
|
|
2
2
|
width="14"
|
|
3
3
|
height="14"
|
|
4
4
|
viewBox="0 0 14 14"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg fill="none" viewBox="0 0 24 24">
|
|
2
2
|
<path
|
|
3
3
|
style="fill: var(--wui-color-accent-100);"
|
|
4
4
|
d="M10.2 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 6.6a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM10.2 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0ZM21 17.4a3.6 3.6 0 1 1-7.2 0 3.6 3.6 0 0 1 7.2 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as t}from"./core-
|
|
1
|
+
import{w as t}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const e=t`
|
|
2
2
|
<svg width="36" height="36">
|
|
3
3
|
<path
|
|
4
4
|
d="M28.724 0H7.271A7.269 7.269 0 0 0 0 7.272v21.46A7.268 7.268 0 0 0 7.271 36H28.73A7.272 7.272 0 0 0 36 28.728V7.272A7.275 7.275 0 0 0 28.724 0Z"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as i}from"./core-
|
|
1
|
+
import{w as i}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const h=i`<svg fill="none" viewBox="0 0 40 40">
|
|
2
2
|
<g clip-path="url(#a)">
|
|
3
3
|
<g clip-path="url(#b)">
|
|
4
4
|
<circle cx="20" cy="19.89" r="20" fill="#000" />
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const t=o`<svg
|
|
2
2
|
fill="none"
|
|
3
3
|
viewBox="0 0 21 20"
|
|
4
4
|
>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const t=o`<svg fill="none" viewBox="0 0 14 15">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{p as d}from"./index-
|
|
1
|
+
import{p as d}from"./index-3HiQP60Y.js";import"./index-D3FZgr7d.js";import"./inherits_browser-BlmhoU4v.js";function b(t){var r=t;return!!(r.ctrlKey||r.shiftKey||r.metaKey||r.button&&r.button==1)}function m(t,r){return!!(t.target==="_blank"&&r)}function E(t,r,e,a){var f=this,o=[];return t?(t instanceof Element?o=[t]:"toArray"in t?o=t.toArray():o=t,o.forEach(function(n){n.addEventListener("click",function(i){var c,u,s=r instanceof Function?r(n):r,v=e instanceof Function?e(n):e,h=n.getAttribute("href")||n.getAttributeNS("http://www.w3.org/1999/xlink","href")||n.getAttribute("xlink:href")||((c=n.getElementsByTagName("a")[0])===null||c===void 0?void 0:c.getAttribute("href")),l=d(f.track(s,v,a??{}),(u=f.settings.timeout)!==null&&u!==void 0?u:500);!m(n,h)&&!b(i)&&h&&(i.preventDefault?i.preventDefault():i.returnValue=!1,l.catch(console.error).then(function(){window.location.href=h}).catch(console.error))},!1)}),this):this}function k(t,r,e,a){var f=this;if(!t)return this;t instanceof HTMLFormElement&&(t=[t]);var o=t;return o.forEach(function(n){if(!(n instanceof Element))throw new TypeError("Must pass HTMLElement to trackForm/trackSubmit.");var i=function(u){var s;u.preventDefault?u.preventDefault():u.returnValue=!1;var v=r instanceof Function?r(n):r,h=e instanceof Function?e(n):e,l=d(f.track(v,h,a??{}),(s=f.settings.timeout)!==null&&s!==void 0?s:500);l.catch(console.error).then(function(){n.submit()}).catch(console.error)},c=window.jQuery||window.Zepto;c?c(n).submit(i):n.addEventListener("submit",i,!1)}),this}export{k as form,E as link};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const H=o`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{i as B,e as M,r as A,a as _,b as c,C as P,A as T,c as E,E as J,R as O,O as Y,d as ke,f as D,g as S,S as ft,h as Kn,W as gt,j as jt,k as ln,T as kt,l as Qe,M as yn,m as xn,w as Ae,n as cn,o as Gn}from"./core-
|
|
1
|
+
import{i as B,e as M,r as A,a as _,b as c,C as P,A as T,c as E,E as J,R as O,O as Y,d as ke,f as D,g as S,S as ft,h as Kn,W as gt,j as jt,k as ln,T as kt,l as Qe,M as yn,m as xn,w as Ae,n as cn,o as Gn}from"./core-R9E8jRfz.js";import{n as u,c as C,o as y,r as v,U as se,e as Yn,f as Jn,a as Qn}from"./index-B6eeSsO_.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";var Fe={},Xn=function(){return typeof Promise=="function"&&Promise.prototype&&Promise.prototype.then},Cn={},V={};let Kt;const Zn=[0,26,44,70,100,134,172,196,242,292,346,404,466,532,581,655,733,815,901,991,1085,1156,1258,1364,1474,1588,1706,1828,1921,2051,2185,2323,2465,2611,2761,2876,3034,3196,3362,3532,3706];V.getSymbolSize=function(e){if(!e)throw new Error('"version" cannot be null or undefined');if(e<1||e>40)throw new Error('"version" should be in range from 1 to 40');return e*4+17};V.getSymbolTotalCodewords=function(e){return Zn[e]};V.getBCHDigit=function(r){let e=0;for(;r!==0;)e++,r>>>=1;return e};V.setToSJISFunction=function(e){if(typeof e!="function")throw new Error('"toSJISFunc" is not a valid function.');Kt=e};V.isKanjiModeEnabled=function(){return typeof Kt<"u"};V.toSJIS=function(e){return Kt(e)};var wt={};(function(r){r.L={bit:1},r.M={bit:0},r.Q={bit:3},r.H={bit:2};function e(n){if(typeof n!="string")throw new Error("Param is not a string");switch(n.toLowerCase()){case"l":case"low":return r.L;case"m":case"medium":return r.M;case"q":case"quartile":return r.Q;case"h":case"high":return r.H;default:throw new Error("Unknown EC Level: "+n)}}r.isValid=function(i){return i&&typeof i.bit<"u"&&i.bit>=0&&i.bit<4},r.from=function(i,o){if(r.isValid(i))return i;try{return e(i)}catch{return o}}})(wt);function $n(){this.buffer=[],this.length=0}$n.prototype={get:function(r){const e=Math.floor(r/8);return(this.buffer[e]>>>7-r%8&1)===1},put:function(r,e){for(let n=0;n<e;n++)this.putBit((r>>>e-n-1&1)===1)},getLengthInBits:function(){return this.length},putBit:function(r){const e=Math.floor(this.length/8);this.buffer.length<=e&&this.buffer.push(0),r&&(this.buffer[e]|=128>>>this.length%8),this.length++}};var ei=$n;function Ve(r){if(!r||r<1)throw new Error("BitMatrix size must be defined and greater than 0");this.size=r,this.data=new Uint8Array(r*r),this.reservedBit=new Uint8Array(r*r)}Ve.prototype.set=function(r,e,n,i){const o=r*this.size+e;this.data[o]=n,i&&(this.reservedBit[o]=!0)};Ve.prototype.get=function(r,e){return this.data[r*this.size+e]};Ve.prototype.xor=function(r,e,n){this.data[r*this.size+e]^=n};Ve.prototype.isReserved=function(r,e){return this.reservedBit[r*this.size+e]};var ti=Ve,Rn={};(function(r){const e=V.getSymbolSize;r.getRowColCoords=function(i){if(i===1)return[];const o=Math.floor(i/7)+2,t=e(i),a=t===145?26:Math.ceil((t-13)/(2*o-2))*2,s=[t-7];for(let l=1;l<o-1;l++)s[l]=s[l-1]-a;return s.push(6),s.reverse()},r.getPositions=function(i){const o=[],t=r.getRowColCoords(i),a=t.length;for(let s=0;s<a;s++)for(let l=0;l<a;l++)s===0&&l===0||s===0&&l===a-1||s===a-1&&l===0||o.push([t[s],t[l]]);return o}})(Rn);var _n={};const ni=V.getSymbolSize,un=7;_n.getPositions=function(e){const n=ni(e);return[[0,0],[n-un,0],[0,n-un]]};var In={};(function(r){r.Patterns={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7};const e={N1:3,N2:3,N3:40,N4:10};r.isValid=function(o){return o!=null&&o!==""&&!isNaN(o)&&o>=0&&o<=7},r.from=function(o){return r.isValid(o)?parseInt(o,10):void 0},r.getPenaltyN1=function(o){const t=o.size;let a=0,s=0,l=0,h=null,d=null;for(let I=0;I<t;I++){s=l=0,h=d=null;for(let x=0;x<t;x++){let m=o.get(I,x);m===h?s++:(s>=5&&(a+=e.N1+(s-5)),h=m,s=1),m=o.get(x,I),m===d?l++:(l>=5&&(a+=e.N1+(l-5)),d=m,l=1)}s>=5&&(a+=e.N1+(s-5)),l>=5&&(a+=e.N1+(l-5))}return a},r.getPenaltyN2=function(o){const t=o.size;let a=0;for(let s=0;s<t-1;s++)for(let l=0;l<t-1;l++){const h=o.get(s,l)+o.get(s,l+1)+o.get(s+1,l)+o.get(s+1,l+1);(h===4||h===0)&&a++}return a*e.N2},r.getPenaltyN3=function(o){const t=o.size;let a=0,s=0,l=0;for(let h=0;h<t;h++){s=l=0;for(let d=0;d<t;d++)s=s<<1&2047|o.get(h,d),d>=10&&(s===1488||s===93)&&a++,l=l<<1&2047|o.get(d,h),d>=10&&(l===1488||l===93)&&a++}return a*e.N3},r.getPenaltyN4=function(o){let t=0;const a=o.data.length;for(let l=0;l<a;l++)t+=o.data[l];return Math.abs(Math.ceil(t*100/a/5)-10)*e.N4};function n(i,o,t){switch(i){case r.Patterns.PATTERN000:return(o+t)%2===0;case r.Patterns.PATTERN001:return o%2===0;case r.Patterns.PATTERN010:return t%3===0;case r.Patterns.PATTERN011:return(o+t)%3===0;case r.Patterns.PATTERN100:return(Math.floor(o/2)+Math.floor(t/3))%2===0;case r.Patterns.PATTERN101:return o*t%2+o*t%3===0;case r.Patterns.PATTERN110:return(o*t%2+o*t%3)%2===0;case r.Patterns.PATTERN111:return(o*t%3+(o+t)%2)%2===0;default:throw new Error("bad maskPattern:"+i)}}r.applyMask=function(o,t){const a=t.size;for(let s=0;s<a;s++)for(let l=0;l<a;l++)t.isReserved(l,s)||t.xor(l,s,n(o,l,s))},r.getBestMask=function(o,t){const a=Object.keys(r.Patterns).length;let s=0,l=1/0;for(let h=0;h<a;h++){t(h),r.applyMask(h,o);const d=r.getPenaltyN1(o)+r.getPenaltyN2(o)+r.getPenaltyN3(o)+r.getPenaltyN4(o);r.applyMask(h,o),d<l&&(l=d,s=h)}return s}})(In);var bt={};const he=wt,Ye=[1,1,1,1,1,1,1,1,1,1,2,2,1,2,2,4,1,2,4,4,2,4,4,4,2,4,6,5,2,4,6,6,2,5,8,8,4,5,8,8,4,5,8,11,4,8,10,11,4,9,12,16,4,9,16,16,6,10,12,18,6,10,17,16,6,11,16,19,6,13,18,21,7,14,21,25,8,16,20,25,8,17,23,25,9,17,23,34,9,18,25,30,10,20,27,32,12,21,29,35,12,23,34,37,12,25,34,40,13,26,35,42,14,28,38,45,15,29,40,48,16,31,43,51,17,33,45,54,18,35,48,57,19,37,51,60,19,38,53,63,20,40,56,66,21,43,59,70,22,45,62,74,24,47,65,77,25,49,68,81],Je=[7,10,13,17,10,16,22,28,15,26,36,44,20,36,52,64,26,48,72,88,36,64,96,112,40,72,108,130,48,88,132,156,60,110,160,192,72,130,192,224,80,150,224,264,96,176,260,308,104,198,288,352,120,216,320,384,132,240,360,432,144,280,408,480,168,308,448,532,180,338,504,588,196,364,546,650,224,416,600,700,224,442,644,750,252,476,690,816,270,504,750,900,300,560,810,960,312,588,870,1050,336,644,952,1110,360,700,1020,1200,390,728,1050,1260,420,784,1140,1350,450,812,1200,1440,480,868,1290,1530,510,924,1350,1620,540,980,1440,1710,570,1036,1530,1800,570,1064,1590,1890,600,1120,1680,1980,630,1204,1770,2100,660,1260,1860,2220,720,1316,1950,2310,750,1372,2040,2430];bt.getBlocksCount=function(e,n){switch(n){case he.L:return Ye[(e-1)*4+0];case he.M:return Ye[(e-1)*4+1];case he.Q:return Ye[(e-1)*4+2];case he.H:return Ye[(e-1)*4+3];default:return}};bt.getTotalCodewordsCount=function(e,n){switch(n){case he.L:return Je[(e-1)*4+0];case he.M:return Je[(e-1)*4+1];case he.Q:return Je[(e-1)*4+2];case he.H:return Je[(e-1)*4+3];default:return}};var En={},mt={};const je=new Uint8Array(512),Xe=new Uint8Array(256);(function(){let e=1;for(let n=0;n<255;n++)je[n]=e,Xe[e]=n,e<<=1,e&256&&(e^=285);for(let n=255;n<512;n++)je[n]=je[n-255]})();mt.log=function(e){if(e<1)throw new Error("log("+e+")");return Xe[e]};mt.exp=function(e){return je[e]};mt.mul=function(e,n){return e===0||n===0?0:je[Xe[e]+Xe[n]]};(function(r){const e=mt;r.mul=function(i,o){const t=new Uint8Array(i.length+o.length-1);for(let a=0;a<i.length;a++)for(let s=0;s<o.length;s++)t[a+s]^=e.mul(i[a],o[s]);return t},r.mod=function(i,o){let t=new Uint8Array(i);for(;t.length-o.length>=0;){const a=t[0];for(let l=0;l<o.length;l++)t[l]^=e.mul(o[l],a);let s=0;for(;s<t.length&&t[s]===0;)s++;t=t.slice(s)}return t},r.generateECPolynomial=function(i){let o=new Uint8Array([1]);for(let t=0;t<i;t++)o=r.mul(o,new Uint8Array([1,e.exp(t)]));return o}})(En);const Wn=En;function Gt(r){this.genPoly=void 0,this.degree=r,this.degree&&this.initialize(this.degree)}Gt.prototype.initialize=function(e){this.degree=e,this.genPoly=Wn.generateECPolynomial(this.degree)};Gt.prototype.encode=function(e){if(!this.genPoly)throw new Error("Encoder not initialized");const n=new Uint8Array(e.length+this.degree);n.set(e);const i=Wn.mod(n,this.genPoly),o=this.degree-i.length;if(o>0){const t=new Uint8Array(this.degree);return t.set(i,o),t}return i};var ii=Gt,Sn={},fe={},Yt={};Yt.isValid=function(e){return!isNaN(e)&&e>=1&&e<=40};var te={};const Tn="[0-9]+",oi="[A-Z $%*+\\-./:]+";let ze="(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+";ze=ze.replace(/u/g,"\\u");const ri="(?:(?![A-Z0-9 $%*+\\-./:]|"+ze+`)(?:.|[\r
|
|
2
2
|
]))+`;te.KANJI=new RegExp(ze,"g");te.BYTE_KANJI=new RegExp("[^A-Z0-9 $%*+\\-./:]+","g");te.BYTE=new RegExp(ri,"g");te.NUMERIC=new RegExp(Tn,"g");te.ALPHANUMERIC=new RegExp(oi,"g");const ai=new RegExp("^"+ze+"$"),si=new RegExp("^"+Tn+"$"),li=new RegExp("^[A-Z0-9 $%*+\\-./:]+$");te.testKanji=function(e){return ai.test(e)};te.testNumeric=function(e){return si.test(e)};te.testAlphanumeric=function(e){return li.test(e)};(function(r){const e=Yt,n=te;r.NUMERIC={id:"Numeric",bit:1,ccBits:[10,12,14]},r.ALPHANUMERIC={id:"Alphanumeric",bit:2,ccBits:[9,11,13]},r.BYTE={id:"Byte",bit:4,ccBits:[8,16,16]},r.KANJI={id:"Kanji",bit:8,ccBits:[8,10,12]},r.MIXED={bit:-1},r.getCharCountIndicator=function(t,a){if(!t.ccBits)throw new Error("Invalid mode: "+t);if(!e.isValid(a))throw new Error("Invalid version: "+a);return a>=1&&a<10?t.ccBits[0]:a<27?t.ccBits[1]:t.ccBits[2]},r.getBestModeForData=function(t){return n.testNumeric(t)?r.NUMERIC:n.testAlphanumeric(t)?r.ALPHANUMERIC:n.testKanji(t)?r.KANJI:r.BYTE},r.toString=function(t){if(t&&t.id)return t.id;throw new Error("Invalid mode")},r.isValid=function(t){return t&&t.bit&&t.ccBits};function i(o){if(typeof o!="string")throw new Error("Param is not a string");switch(o.toLowerCase()){case"numeric":return r.NUMERIC;case"alphanumeric":return r.ALPHANUMERIC;case"kanji":return r.KANJI;case"byte":return r.BYTE;default:throw new Error("Unknown mode: "+o)}}r.from=function(t,a){if(r.isValid(t))return t;try{return i(t)}catch{return a}}})(fe);(function(r){const e=V,n=bt,i=wt,o=fe,t=Yt,a=7973,s=e.getBCHDigit(a);function l(x,m,$){for(let b=1;b<=40;b++)if(m<=r.getCapacity(b,$,x))return b}function h(x,m){return o.getCharCountIndicator(x,m)+4}function d(x,m){let $=0;return x.forEach(function(b){const R=h(b.mode,m);$+=R+b.getBitsLength()}),$}function I(x,m){for(let $=1;$<=40;$++)if(d(x,$)<=r.getCapacity($,m,o.MIXED))return $}r.from=function(m,$){return t.isValid(m)?parseInt(m,10):$},r.getCapacity=function(m,$,b){if(!t.isValid(m))throw new Error("Invalid QR Code version");typeof b>"u"&&(b=o.BYTE);const R=e.getSymbolTotalCodewords(m),w=n.getTotalCodewordsCount(m,$),f=(R-w)*8;if(b===o.MIXED)return f;const g=f-h(b,m);switch(b){case o.NUMERIC:return Math.floor(g/10*3);case o.ALPHANUMERIC:return Math.floor(g/11*2);case o.KANJI:return Math.floor(g/13);case o.BYTE:default:return Math.floor(g/8)}},r.getBestVersionForData=function(m,$){let b;const R=i.from($,i.M);if(Array.isArray(m)){if(m.length>1)return I(m,R);if(m.length===0)return 1;b=m[0]}else b=m;return l(b.mode,b.getLength(),R)},r.getEncodedBits=function(m){if(!t.isValid(m)||m<7)throw new Error("Invalid QR Code version");let $=m<<12;for(;e.getBCHDigit($)-s>=0;)$^=a<<e.getBCHDigit($)-s;return m<<12|$}})(Sn);var Bn={};const zt=V,Pn=1335,ci=21522,dn=zt.getBCHDigit(Pn);Bn.getEncodedBits=function(e,n){const i=e.bit<<3|n;let o=i<<10;for(;zt.getBCHDigit(o)-dn>=0;)o^=Pn<<zt.getBCHDigit(o)-dn;return(i<<10|o)^ci};var Ln={};const ui=fe;function $e(r){this.mode=ui.NUMERIC,this.data=r.toString()}$e.getBitsLength=function(e){return 10*Math.floor(e/3)+(e%3?e%3*3+1:0)};$e.prototype.getLength=function(){return this.data.length};$e.prototype.getBitsLength=function(){return $e.getBitsLength(this.data.length)};$e.prototype.write=function(e){let n,i,o;for(n=0;n+3<=this.data.length;n+=3)i=this.data.substr(n,3),o=parseInt(i,10),e.put(o,10);const t=this.data.length-n;t>0&&(i=this.data.substr(n),o=parseInt(i,10),e.put(o,t*3+1))};var di=$e;const hi=fe,Wt=["0","1","2","3","4","5","6","7","8","9","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"," ","$","%","*","+","-",".","/",":"];function Re(r){this.mode=hi.ALPHANUMERIC,this.data=r}Re.getBitsLength=function(e){return 11*Math.floor(e/2)+6*(e%2)};Re.prototype.getLength=function(){return this.data.length};Re.prototype.getBitsLength=function(){return Re.getBitsLength(this.data.length)};Re.prototype.write=function(e){let n;for(n=0;n+2<=this.data.length;n+=2){let i=Wt.indexOf(this.data[n])*45;i+=Wt.indexOf(this.data[n+1]),e.put(i,11)}this.data.length%2&&e.put(Wt.indexOf(this.data[n]),6)};var pi=Re,fi=function(e){for(var n=[],i=e.length,o=0;o<i;o++){var t=e.charCodeAt(o);if(t>=55296&&t<=56319&&i>o+1){var a=e.charCodeAt(o+1);a>=56320&&a<=57343&&(t=(t-55296)*1024+a-56320+65536,o+=1)}if(t<128){n.push(t);continue}if(t<2048){n.push(t>>6|192),n.push(t&63|128);continue}if(t<55296||t>=57344&&t<65536){n.push(t>>12|224),n.push(t>>6&63|128),n.push(t&63|128);continue}if(t>=65536&&t<=1114111){n.push(t>>18|240),n.push(t>>12&63|128),n.push(t>>6&63|128),n.push(t&63|128);continue}n.push(239,191,189)}return new Uint8Array(n).buffer};const gi=fi,wi=fe;function _e(r){this.mode=wi.BYTE,typeof r=="string"&&(r=gi(r)),this.data=new Uint8Array(r)}_e.getBitsLength=function(e){return e*8};_e.prototype.getLength=function(){return this.data.length};_e.prototype.getBitsLength=function(){return _e.getBitsLength(this.data.length)};_e.prototype.write=function(r){for(let e=0,n=this.data.length;e<n;e++)r.put(this.data[e],8)};var bi=_e;const mi=fe,vi=V;function Ie(r){this.mode=mi.KANJI,this.data=r}Ie.getBitsLength=function(e){return e*13};Ie.prototype.getLength=function(){return this.data.length};Ie.prototype.getBitsLength=function(){return Ie.getBitsLength(this.data.length)};Ie.prototype.write=function(r){let e;for(e=0;e<this.data.length;e++){let n=vi.toSJIS(this.data[e]);if(n>=33088&&n<=40956)n-=33088;else if(n>=57408&&n<=60351)n-=49472;else throw new Error("Invalid SJIS character: "+this.data[e]+`
|
|
3
3
|
Make sure your charset is UTF-8`);n=(n>>>8&255)*192+(n&255),r.put(n,13)}};var yi=Ie,On={exports:{}};(function(r){var e={single_source_shortest_paths:function(n,i,o){var t={},a={};a[i]=0;var s=e.PriorityQueue.make();s.push(i,0);for(var l,h,d,I,x,m,$,b,R;!s.empty();){l=s.pop(),h=l.value,I=l.cost,x=n[h]||{};for(d in x)x.hasOwnProperty(d)&&(m=x[d],$=I+m,b=a[d],R=typeof a[d]>"u",(R||b>$)&&(a[d]=$,s.push(d,$),t[d]=h))}if(typeof o<"u"&&typeof a[o]>"u"){var w=["Could not find a path from ",i," to ",o,"."].join("");throw new Error(w)}return t},extract_shortest_path_from_predecessor_list:function(n,i){for(var o=[],t=i;t;)o.push(t),n[t],t=n[t];return o.reverse(),o},find_path:function(n,i,o){var t=e.single_source_shortest_paths(n,i,o);return e.extract_shortest_path_from_predecessor_list(t,o)},PriorityQueue:{make:function(n){var i=e.PriorityQueue,o={},t;n=n||{};for(t in i)i.hasOwnProperty(t)&&(o[t]=i[t]);return o.queue=[],o.sorter=n.sorter||i.default_sorter,o},default_sorter:function(n,i){return n.cost-i.cost},push:function(n,i){var o={value:n,cost:i};this.queue.push(o),this.queue.sort(this.sorter)},pop:function(){return this.queue.shift()},empty:function(){return this.queue.length===0}}};r.exports=e})(On);var xi=On.exports;(function(r){const e=fe,n=di,i=pi,o=bi,t=yi,a=te,s=V,l=xi;function h(w){return unescape(encodeURIComponent(w)).length}function d(w,f,g){const p=[];let W;for(;(W=w.exec(g))!==null;)p.push({data:W[0],index:W.index,mode:f,length:W[0].length});return p}function I(w){const f=d(a.NUMERIC,e.NUMERIC,w),g=d(a.ALPHANUMERIC,e.ALPHANUMERIC,w);let p,W;return s.isKanjiModeEnabled()?(p=d(a.BYTE,e.BYTE,w),W=d(a.KANJI,e.KANJI,w)):(p=d(a.BYTE_KANJI,e.BYTE,w),W=[]),f.concat(g,p,W).sort(function(j,G){return j.index-G.index}).map(function(j){return{data:j.data,mode:j.mode,length:j.length}})}function x(w,f){switch(f){case e.NUMERIC:return n.getBitsLength(w);case e.ALPHANUMERIC:return i.getBitsLength(w);case e.KANJI:return t.getBitsLength(w);case e.BYTE:return o.getBitsLength(w)}}function m(w){return w.reduce(function(f,g){const p=f.length-1>=0?f[f.length-1]:null;return p&&p.mode===g.mode?(f[f.length-1].data+=g.data,f):(f.push(g),f)},[])}function $(w){const f=[];for(let g=0;g<w.length;g++){const p=w[g];switch(p.mode){case e.NUMERIC:f.push([p,{data:p.data,mode:e.ALPHANUMERIC,length:p.length},{data:p.data,mode:e.BYTE,length:p.length}]);break;case e.ALPHANUMERIC:f.push([p,{data:p.data,mode:e.BYTE,length:p.length}]);break;case e.KANJI:f.push([p,{data:p.data,mode:e.BYTE,length:h(p.data)}]);break;case e.BYTE:f.push([{data:p.data,mode:e.BYTE,length:h(p.data)}])}}return f}function b(w,f){const g={},p={start:{}};let W=["start"];for(let L=0;L<w.length;L++){const j=w[L],G=[];for(let de=0;de<j.length;de++){const Z=j[de],Oe=""+L+de;G.push(Oe),g[Oe]={node:Z,lastCount:0},p[Oe]={};for(let Et=0;Et<W.length;Et++){const re=W[Et];g[re]&&g[re].node.mode===Z.mode?(p[re][Oe]=x(g[re].lastCount+Z.length,Z.mode)-x(g[re].lastCount,Z.mode),g[re].lastCount+=Z.length):(g[re]&&(g[re].lastCount=Z.length),p[re][Oe]=x(Z.length,Z.mode)+4+e.getCharCountIndicator(Z.mode,f))}}W=G}for(let L=0;L<W.length;L++)p[W[L]].end=0;return{map:p,table:g}}function R(w,f){let g;const p=e.getBestModeForData(w);if(g=e.from(f,p),g!==e.BYTE&&g.bit<p.bit)throw new Error('"'+w+'" cannot be encoded with mode '+e.toString(g)+`.
|
|
4
4
|
Suggested mode is: `+e.toString(p));switch(g===e.KANJI&&!s.isKanjiModeEnabled()&&(g=e.BYTE),g){case e.NUMERIC:return new n(w);case e.ALPHANUMERIC:return new i(w);case e.KANJI:return new t(w);case e.BYTE:return new o(w)}}r.fromArray=function(f){return f.reduce(function(g,p){return typeof p=="string"?g.push(R(p,null)):p.data&&g.push(R(p.data,p.mode)),g},[])},r.fromString=function(f,g){const p=I(f,s.isKanjiModeEnabled()),W=$(p),L=b(W,g),j=l.find_path(L.map,"start","end"),G=[];for(let de=1;de<j.length-1;de++)G.push(L.table[j[de]].node);return r.fromArray(m(G))},r.rawSplit=function(f){return r.fromArray(I(f,s.isKanjiModeEnabled()))}})(Ln);const vt=V,St=wt,Ci=ei,$i=ti,Ri=Rn,_i=_n,Dt=In,Nt=bt,Ii=ii,Ze=Sn,Ei=Bn,Wi=fe,Tt=Ln;function Si(r,e){const n=r.size,i=_i.getPositions(e);for(let o=0;o<i.length;o++){const t=i[o][0],a=i[o][1];for(let s=-1;s<=7;s++)if(!(t+s<=-1||n<=t+s))for(let l=-1;l<=7;l++)a+l<=-1||n<=a+l||(s>=0&&s<=6&&(l===0||l===6)||l>=0&&l<=6&&(s===0||s===6)||s>=2&&s<=4&&l>=2&&l<=4?r.set(t+s,a+l,!0,!0):r.set(t+s,a+l,!1,!0))}}function Ti(r){const e=r.size;for(let n=8;n<e-8;n++){const i=n%2===0;r.set(n,6,i,!0),r.set(6,n,i,!0)}}function Bi(r,e){const n=Ri.getPositions(e);for(let i=0;i<n.length;i++){const o=n[i][0],t=n[i][1];for(let a=-2;a<=2;a++)for(let s=-2;s<=2;s++)a===-2||a===2||s===-2||s===2||a===0&&s===0?r.set(o+a,t+s,!0,!0):r.set(o+a,t+s,!1,!0)}}function Pi(r,e){const n=r.size,i=Ze.getEncodedBits(e);let o,t,a;for(let s=0;s<18;s++)o=Math.floor(s/3),t=s%3+n-8-3,a=(i>>s&1)===1,r.set(o,t,a,!0),r.set(t,o,a,!0)}function Bt(r,e,n){const i=r.size,o=Ei.getEncodedBits(e,n);let t,a;for(t=0;t<15;t++)a=(o>>t&1)===1,t<6?r.set(t,8,a,!0):t<8?r.set(t+1,8,a,!0):r.set(i-15+t,8,a,!0),t<8?r.set(8,i-t-1,a,!0):t<9?r.set(8,15-t-1+1,a,!0):r.set(8,15-t-1,a,!0);r.set(i-8,8,1,!0)}function Li(r,e){const n=r.size;let i=-1,o=n-1,t=7,a=0;for(let s=n-1;s>0;s-=2)for(s===6&&s--;;){for(let l=0;l<2;l++)if(!r.isReserved(o,s-l)){let h=!1;a<e.length&&(h=(e[a]>>>t&1)===1),r.set(o,s-l,h),t--,t===-1&&(a++,t=7)}if(o+=i,o<0||n<=o){o-=i,i=-i;break}}}function Oi(r,e,n){const i=new Ci;n.forEach(function(l){i.put(l.mode.bit,4),i.put(l.getLength(),Wi.getCharCountIndicator(l.mode,r)),l.write(i)});const o=vt.getSymbolTotalCodewords(r),t=Nt.getTotalCodewordsCount(r,e),a=(o-t)*8;for(i.getLengthInBits()+4<=a&&i.put(0,4);i.getLengthInBits()%8!==0;)i.putBit(0);const s=(a-i.getLengthInBits())/8;for(let l=0;l<s;l++)i.put(l%2?17:236,8);return Ai(i,r,e)}function Ai(r,e,n){const i=vt.getSymbolTotalCodewords(e),o=Nt.getTotalCodewordsCount(e,n),t=i-o,a=Nt.getBlocksCount(e,n),s=i%a,l=a-s,h=Math.floor(i/a),d=Math.floor(t/a),I=d+1,x=h-d,m=new Ii(x);let $=0;const b=new Array(a),R=new Array(a);let w=0;const f=new Uint8Array(r.buffer);for(let j=0;j<a;j++){const G=j<l?d:I;b[j]=f.slice($,$+G),R[j]=m.encode(b[j]),$+=G,w=Math.max(w,G)}const g=new Uint8Array(i);let p=0,W,L;for(W=0;W<w;W++)for(L=0;L<a;L++)W<b[L].length&&(g[p++]=b[L][W]);for(W=0;W<x;W++)for(L=0;L<a;L++)g[p++]=R[L][W];return g}function ji(r,e,n,i){let o;if(Array.isArray(r))o=Tt.fromArray(r);else if(typeof r=="string"){let h=e;if(!h){const d=Tt.rawSplit(r);h=Ze.getBestVersionForData(d,n)}o=Tt.fromString(r,h||40)}else throw new Error("Invalid data");const t=Ze.getBestVersionForData(o,n);if(!t)throw new Error("The amount of data is too big to be stored in a QR Code");if(!e)e=t;else if(e<t)throw new Error(`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as l}from"./core-
|
|
1
|
+
import{w as l}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const i=l`<svg fill="none" viewBox="0 0 20 20">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as C}from"./core-
|
|
1
|
+
import{w as C}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const l=C`<svg
|
|
2
2
|
xmlns="http://www.w3.org/2000/svg"
|
|
3
3
|
width="12"
|
|
4
4
|
height="13"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as b,i as k,l as L,a as O,c as R,b as E,e as x}from"./index-DY64NG3j.js";import{W as u,bA as y,aA as w,bB as m,ak as M}from"./index-D3FZgr7d.js";import"./hooks.module-Dz_XB4AG.js";import"./node-s4RJ8AH_.js";import"./index-nibyPLVP.js";class S extends u{constructor({callbackSelector:s,cause:e,data:o,extraData:n,sender:c,urls:t}){super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],e.metaMessages?.length?"":[],"Offchain Gateway Call:",t&&[" Gateway URL(s):",...t.map(i=>` ${y(i)}`)],` Sender: ${c}`,` Data: ${o}`,` Callback selector: ${s}`,` Extra data: ${n}`].flat(),name:"OffchainLookupError"})}}class $ extends u{constructor({result:s,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${y(e)}`,`Response: ${w(s)}`],name:"OffchainLookupResponseMalformedError"})}}class q extends u{constructor({sender:s,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${s}`],name:"OffchainLookupSenderMismatchError"})}}const U="0x556f1830",A={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function j(d,{blockNumber:s,blockTag:e,data:o,to:n}){const{args:c}=b({data:o,abi:[A]}),[t,i,l,a,r]=c,{ccipRead:f}=d,h=f&&typeof f?.request=="function"?f.request:T;try{if(!k(n,t))throw new q({sender:t,to:n});const p=i.includes(L)?await O({data:l,ccipRequest:h}):await h({data:l,sender:t,urls:i}),{data:g}=await R(d,{blockNumber:s,blockTag:e,data:E([a,x([{type:"bytes"},{type:"bytes"}],[p,r])]),to:n});return g}catch(p){throw new S({callbackSelector:a,cause:p,data:o,extraData:r,sender:t,urls:i})}}async function T({data:d,sender:s,urls:e}){let o=new Error("An unknown error occurred.");for(let n=0;n<e.length;n++){const c=e[n],t=c.includes("{data}")?"GET":"POST",i=t==="POST"?{data:d,sender:s}:void 0,l=t==="POST"?{"Content-Type":"application/json"}:{};try{const a=await fetch(c.replace("{sender}",s.toLowerCase()).replace("{data}",d),{body:JSON.stringify(i),headers:l,method:t});let r;if(a.headers.get("Content-Type")?.startsWith("application/json")?r=(await a.json()).data:r=await a.text(),!a.ok){o=new m({body:i,details:r?.error?w(r.error):a.statusText,headers:a.headers,status:a.status,url:c});continue}if(!M(r)){o=new $({result:r,url:c});continue}return r}catch(a){o=new m({body:i,details:a.message,url:c})}}throw o}export{T as ccipRequest,j as offchainLookup,A as offchainLookupAbiItem,U as offchainLookupSignature};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg
|
|
2
2
|
width="28"
|
|
3
3
|
height="28"
|
|
4
4
|
viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg fill="none" viewBox="0 0 14 14">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const t=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as t}from"./core-
|
|
1
|
+
import{w as t}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const l=t`<svg width="36" height="36" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
fill="#fff"
|
|
4
4
|
fill-opacity=".05"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const t=o`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
|
|
2
2
|
<path
|
|
3
3
|
fill-rule="evenodd"
|
|
4
4
|
clip-rule="evenodd"
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{w as o}from"./core-
|
|
1
|
+
import{w as o}from"./core-R9E8jRfz.js";import"./index-D3FZgr7d.js";import"./index.es--N24oLp1.js";import"./index-nibyPLVP.js";import"./node-s4RJ8AH_.js";const p=o`<svg fill="none" viewBox="0 0 16 16">
|
|
2
2
|
<path
|
|
3
3
|
fill="currentColor"
|
|
4
4
|
fill-rule="evenodd"
|