1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,683985,(e,t,i)=>{e.e,t.exports=(()=>{"use strict";var e,t,i,n,r,o,a,s,l,c,u,d,h,A,p,g,m,f,x,y,b,v,w,_,E,B,R,C,j,O,I,Q,k,S,T,D,P,z,F,M,U,L,K,W,V,N,H,Y,J,G,Z,q,X,$,ee,et,ei,en,er=[,(e,t,i)=>{var n;i.r(t),i.d(t,{default:()=>r});let r=(n="u">typeof document&&document.currentScript?document.currentScript.src:void 0,function(e={}){function t(){function e(e){let o=n;i=t=0,n=new Map,o.forEach(t=>{try{t(e)}catch(e){console.error(e)}}),this.pb(),r&&r.Tb()}let t=0,i=0,n=new Map,r=null,o=null;this.requestAnimationFrame=function(r){t||(t=requestAnimationFrame(e.bind(this)));let o=++i;return n.set(o,r),o},this.cancelAnimationFrame=function(e){n.delete(e),t&&0==n.size&&(cancelAnimationFrame(t),t=0)},this.Rb=function(e){o&&(document.body.remove(o),o=null),e||((o=document.createElement("div")).style.backgroundColor="black",o.style.position="fixed",o.style.right=0,o.style.top=0,o.style.color="white",o.style.padding="4px",o.innerHTML="RIVE FPS",e=function(e){o.innerHTML="RIVE FPS "+e.toFixed(1)},document.body.appendChild(o)),r=new function(){let t=0,i=0;this.Tb=function(){var n=performance.now();i?(++t,1e3<(n-=i)&&(e(1e3*t/n),t=i=0)):(i=n,t=0)}}},this.Ob=function(){o&&(document.body.remove(o),o=null),r=null},this.pb=function(){}}function i(e){console.assert(!0);let t=new Map,i=-1/0;this.push=function(n){return n=n+((1<<e)-1)>>e,t.has(n)&&clearTimeout(t.get(n)),t.set(n,setTimeout(function(){t.delete(n),0==t.length?i=-1/0:n==i&&console.assert((i=Math.max(...t.keys()))<n)},1e3)),(i=Math.max(n,i))<<e}}e.ready=new Promise((e,t)=>{A=e,p=t});let r=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){r&&r();let t=e.decodeAudio;e.decodeAudio=function(e,i){i(e=t(e))};let i=e.decodeFont;e.decodeFont=function(e,t){t(e=i(e))};let n=e.FileAssetLoader;e.ptrToAsset=t=>{let i=e.ptrToFileAsset(t);return i.isImage?e.ptrToImageAsset(t):i.isFont?e.ptrToFontAsset(t):i.isAudio?e.ptrToAudioAsset(t):i},e.CustomFileAssetLoader=n.extend("CustomFileAssetLoader",{__construct:function({loadContents:e}){this.__parent.__construct.call(this),this.Gb=e},loadContents:function(t,i){return t=e.ptrToAsset(t),this.Gb(t,i)}}),e.CDNFileAssetLoader=n.extend("CDNFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this)},loadContents:function(t){var i,n,r;let o=e.ptrToAsset(t);return""!==(t=o.cdnUuid)&&(i=o.cdnBaseUrl+"/"+t,n=e=>{o.decode(new Uint8Array(e.response))},(r=new XMLHttpRequest).responseType="arraybuffer",r.onreadystatechange=function(){4==r.readyState&&200==r.status&&n(r)},r.open("GET",i,!0),r.send(null),!0)}}),e.FallbackFileAssetLoader=n.extend("FallbackFileAssetLoader",{__construct:function(){this.__parent.__construct.call(this),this.lb=[]},addLoader:function(e){this.lb.push(e)},loadContents:function(e,t){for(let i of this.lb)if(i.loadContents(e,t))return!0;return!1}});let o=e.computeAlignment;e.computeAlignment=function(e,t,i,n,r=1){return o.call(this,e,t,i,n,r)}};let o="createConicGradient createImageData createLinearGradient createPattern createRadialGradient getContextAttributes getImageData getLineDash getTransform isContextLost isPointInPath isPointInStroke measureText".split(" "),a=new function(){function e(){if(!t){let l;var e=document.createElement("canvas"),i={alpha:1,depth:0,stencil:0,antialias:0,premultipliedAlpha:1,preserveDrawingBuffer:0,powerPreference:"high-performance",failIfMajorPerformanceCaveat:0,enableExtensionsByDefault:1,explicitSwapControl:1,renderViaOffscreenBackBuffer:1};if(/iPhone|iPad|iPod/i.test(navigator.userAgent)){if(l=e.getContext("webgl",i),n=1,!l)return console.log("No WebGL support. Image mesh will not be drawn."),!1}else if(l=e.getContext("webgl2",i))n=2;else{if(!(l=e.getContext("webgl",i)))return console.log("No WebGL support. Image mesh will not be drawn."),!1;n=1}function s(e,t,i){if(t=l.createShader(t),l.shaderSource(t,i),l.compileShader(t),0<((i=l.getShaderInfoLog(t))||"").length)throw i;l.attachShader(e,t)}if(r=Math.min((l=new Proxy(l,{get:(e,t)=>e.isContextLost()?(c||(console.error("Cannot render the mesh because the GL Context was lost. Tried to invoke ",t),c=!0),"function"==typeof e[t])?function(){}:void 0:"function"==typeof e[t]?function(...i){return e[t].apply(e,i)}:e[t],set(e,t,i){if(!e.isContextLost())return e[t]=i,!0;c||(console.error("Cannot render the mesh because the GL Context was lost. Tried to set property "+t),c=!0)}})).getParameter(l.MAX_RENDERBUFFER_SIZE),l.getParameter(l.MAX_TEXTURE_SIZE)),s(e=l.createProgram(),l.VERTEX_SHADER,"attribute vec2 vertex;\n attribute vec2 uv;\n uniform vec4 mat;\n uniform vec2 translate;\n varying vec2 st;\n void main() {\n st = uv;\n gl_Position = vec4(mat2(mat) * vertex + translate, 0, 1);\n }"),s(e,l.FRAGMENT_SHADER,"precision highp float;\n uniform sampler2D image;\n varying vec2 st;\n void main() {\n gl_FragColor = texture2D(image, st);\n }"),l.bindAttribLocation(e,0,"vertex"),l.bindAttribLocation(e,1,"uv"),l.linkProgram(e),0<((i=l.getProgramInfoLog(e))||"").trim().length)throw i;o=l.getUniformLocation(e,"mat"),a=l.getUniformLocation(e,"translate"),l.useProgram(e),l.bindBuffer(l.ARRAY_BUFFER,l.createBuffer()),l.enableVertexAttribArray(0),l.enableVertexAttribArray(1),l.bindBuffer(l.ELEMENT_ARRAY_BUFFER,l.createBuffer()),l.uniform1i(l.getUniformLocation(e,"image"),0),l.pixelStorei(l.UNPACK_PREMULTIPLY_ALPHA_WEBGL,!0),t=l}return!0}let t=null,n=0,r=0,o=null,a=null,s=0,l=0,c=!1;e(),this.hc=function(){return e(),r},this.Mb=function(e){t.deleteTexture&&t.deleteTexture(e)},this.Lb=function(i){if(!e())return null;let r=t.createTexture();return r?(t.bindTexture(t.TEXTURE_2D,r),t.texImage2D(t.TEXTURE_2D,0,t.RGBA,t.RGBA,t.UNSIGNED_BYTE,i),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MAG_FILTER,t.LINEAR),2==n?(t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR_MIPMAP_LINEAR),t.generateMipmap(t.TEXTURE_2D)):t.texParameteri(t.TEXTURE_2D,t.TEXTURE_MIN_FILTER,t.LINEAR),r):null};let u=new i(8),d=new i(8),h=new i(10),A=new i(10);this.Qb=function(i,n,r,c,p){if(e()){var g=u.push(i),m=d.push(n);if(t.canvas){for(var f of((t.canvas.width!=g||t.canvas.height!=m)&&(t.canvas.width=g,t.canvas.height=m),t.viewport(0,m-n,i,n),t.disable(t.SCISSOR_TEST),t.clearColor(0,0,0,0),t.clear(t.COLOR_BUFFER_BIT),t.enable(t.SCISSOR_TEST),r.sort((e,t)=>
1t.xb-e.xb),g=h.push(c),s!=g&&(t.bufferData(t.ARRAY_BUFFER,8*g,t.DYNAMIC_DRAW),s=g),g=0,r))t.bufferSubData(t.ARRAY_BUFFER,g,f.Ua),g+=4*f.Ua.length;for(var x of(console.assert(g==4*c),r))t.bufferSubData(t.ARRAY_BUFFER,g,x.Db),g+=4*x.Db.length;for(var y of(console.assert(g==8*c),g=A.push(p),l!=g&&(t.bufferData(t.ELEMENT_ARRAY_BUFFER,2*g,t.DYNAMIC_DRAW),l=g),f=0,r))t.bufferSubData(t.ELEMENT_ARRAY_BUFFER,f,y.indices),f+=2*y.indices.length;for(let e of(console.assert(f==2*p),y=0,x=!0,g=f=0,r)){e.image.Ka!=y&&(t.bindTexture(t.TEXTURE_2D,e.image.Ja||null),y=e.image.Ka),e.mc?(t.scissor(e.Za,m-e.$a-e.kb,e.Ac,e.kb),x=!0):x&&(t.scissor(0,m-n,i,n),x=!1),r=2/i;let s=-2/n;t.uniform4f(o,e.ha[0]*r*e.Ba,e.ha[1]*s*e.Ca,e.ha[2]*r*e.Ba,e.ha[3]*s*e.Ca),t.uniform2f(a,e.ha[4]*r*e.Ba+r*(e.Za-e.ic*e.Ba)-1,e.ha[5]*s*e.Ca+s*(e.$a-e.jc*e.Ca)+1),t.vertexAttribPointer(0,2,t.FLOAT,!1,0,g),t.vertexAttribPointer(1,2,t.FLOAT,!1,0,g+4*c),t.drawElements(t.TRIANGLES,e.indices.length,t.UNSIGNED_SHORT,f),g+=4*e.Ua.length,f+=2*e.indices.length}console.assert(g==4*c),console.assert(f==2*p)}}},this.canvas=function(){return e()&&t.canvas}},s=e.onRuntimeInitialized;e.onRuntimeInitialized=function(){function i(e){switch(e){case p.srcOver:return"source-over";case p.screen:return"screen";case p.overlay:return"overlay";case p.darken:return"darken";case p.lighten:return"lighten";case p.colorDodge:return"color-dodge";case p.colorBurn:return"color-burn";case p.hardLight:return"hard-light";case p.softLight:return"soft-light";case p.difference:return"difference";case p.exclusion:return"exclusion";case p.multiply:return"multiply";case p.hue:return"hue";case p.saturation:return"saturation";case p.color:return"color";case p.luminosity:return"luminosity"}}function n(e){return"rgba("+((0xff0000&e)>>>16)+","+((65280&e)>>>8)+","+((255&e)>>>0)+","+((0xff000000&e)>>>24)/255+")"}function r(){for(let e of(0<E.length&&(a.Qb(_.drawWidth(),_.drawHeight(),E,B,R),E=[],R=B=0,_.reset(512,512)),w)){for(let t of e.H)t();e.H=[]}w.clear()}s&&s();var l=e.RenderPaintStyle;let c=e.RenderPath,u=e.RenderPaint,d=e.Renderer,h=e.StrokeCap,A=e.StrokeJoin,p=e.BlendMode,g=l.fill,m=l.stroke,f=e.FillRule.evenOdd,x=1;var y=e.RenderImage.extend("CanvasRenderImage",{__construct:function({la:e,xa:t}={}){this.__parent.__construct.call(this),this.Ka=x,x=x+1&0x7fffffff||1,this.la=e,this.xa=t},__destruct:function(){this.Ja&&(a.Mb(this.Ja),URL.revokeObjectURL(this.Xa)),this.__parent.__destruct.call(this)},decode:function(e){var t=this;t.xa&&t.xa(t);var i=new Image;t.Xa=URL.createObjectURL(new Blob([e],{type:"image/png"})),i.onload=function(){t.Fb=i,t.Ja=a.Lb(i),t.size(i.width,i.height),t.la&&t.la(t)},i.src=t.Xa}}),b=c.extend("CanvasRenderPath",{__construct:function(){this.__parent.__construct.call(this),this.T=new Path2D},rewind:function(){this.T=new Path2D},addPath:function(e,t,i,n,r,o,a){var s=this.T,l=s.addPath;e=e.T;let c=new DOMMatrix;c.a=t,c.b=i,c.c=n,c.d=r,c.e=o,c.f=a,l.call(s,e,c)},fillRule:function(e){this.Wa=e},moveTo:function(e,t){this.T.moveTo(e,t)},lineTo:function(e,t){this.T.lineTo(e,t)},cubicTo:function(e,t,i,n,r,o){this.T.bezierCurveTo(e,t,i,n,r,o)},close:function(){this.T.closePath()}}),v=u.extend("CanvasRenderPaint",{color:function(e){this.Ya=n(e)},thickness:function(e){this.Ib=e},join:function(e){switch(e){case A.miter:this.Ia="miter";break;case A.round:this.Ia="round";break;case A.bevel:this.Ia="bevel"}},cap:function(e){switch(e){case h.butt:this.Ha="butt";break;case h.round:this.Ha="round";break;case h.square:this.Ha="square"}},style:function(e){this.Hb=e},blendMode:function(e){this.Eb=i(e)},clearGradient:function(){this.ja=null},linearGradient:function(e,t,i,n){this.ja={zb:e,Ab:t,cb:i,eb:n,Ra:[]}},radialGradient:function(e,t,i,n){this.ja={zb:e,Ab:t,cb:i,eb:n,Ra:[],ec:!0}},addStop:function(e,t){this.ja.Ra.push({color:e,stop:t})},completeGradient:function(){},draw:function(e,t,i){let r=this.Hb;var o=this.Ya,a=this.ja;if(e.globalCompositeOperation=this.Eb,null!=a){o=a.zb;var s=a.Ab;let t=a.cb;var l=a.eb;let i=a.Ra;a.ec?(a=t-o,l-=s,o=e.createRadialGradient(o,s,0,o,s,Math.sqrt(a*a+l*l))):o=e.createLinearGradient(o,s,t,l);for(let e=0,t=i.length;e<t;e++)s=i[e],o.addColorStop(s.stop,n(s.color));this.Ya=o,this.ja=null}switch(r){case m:e.strokeStyle=o,e.lineWidth=this.Ib,e.lineCap=this.Ha,e.lineJoin=this.Ia,e.stroke(t);break;case g:e.fillStyle=o,e.fill(t,i)}}});let w=new Set,_=null,E=[],B=0,R=0;var C=e.CanvasRenderer=d.extend("Renderer",{__construct:function(e){this.__parent.__construct.call(this),this.S=[1,0,0,1,0,0],this.C=e.getContext("2d"),this.Va=e,this.H=[]},save:function(){this.S.push(...this.S.slice(this.S.length-6)),this.H.push(this.C.save.bind(this.C))},restore:function(){let e=this.S.length-6;if(6>
1e)throw"restore() called without matching save().";this.S.splice(e),this.H.push(this.C.restore.bind(this.C))},transform:function(e,t,i,n,r,o){let a=this.S,s=a.length-6;a.splice(s,6,a[s]*e+a[s+2]*t,a[s+1]*e+a[s+3]*t,a[s]*i+a[s+2]*n,a[s+1]*i+a[s+3]*n,a[s]*r+a[s+2]*o+a[s+4],a[s+1]*r+a[s+3]*o+a[s+5]),this.H.push(this.C.transform.bind(this.C,e,t,i,n,r,o))},rotate:function(e){let t=Math.sin(e);e=Math.cos(e),this.transform(e,t,-t,e,0,0)},_drawPath:function(e,t){this.H.push(t.draw.bind(t,this.C,e.T,e.Wa===f?"evenodd":"nonzero"))},_drawRiveImage:function(e,t,n,r){var o=e.Fb;if(o){var a=this.C,s=i(n);this.H.push(function(){a.globalCompositeOperation=s,a.globalAlpha=r,a.drawImage(o,0,0),a.globalAlpha=1})}},_getMatrix:function(e){let t=this.S,i=t.length-6;for(let n=0;6>n;++n)e[n]=t[i+n]},_drawImageMesh:function(t,n,o,s,l,c,u,d,h,A,p){n=this.C.canvas.width;var g=this.C.canvas.height;let m=A-d,f=p-h;d=Math.max(d,0),h=Math.max(h,0);let x=(A=Math.min(A,n))-d,y=(p=Math.min(p,g))-h;if(console.assert(x<=Math.min(m,n)),console.assert(y<=Math.min(f,g)),!(0>=x||0>=y)){A=x<m||y<f,n=p=1;var b=Math.ceil(x*p),v=Math.ceil(y*n);g=a.hc(),b>g&&(p*=g/b,b=g),v>g&&(n*=g/v,v=g),_||(_=new e.DynamicRectanizer(g)).reset(512,512),0>(g=_.addRect(b,v))&&(r(),w.add(this),console.assert(0<=(g=_.addRect(b,v))));var C=65535&g,j=g>>16;E.push({ha:this.S.slice(this.S.length-6),image:t,Za:C,$a:j,ic:d,jc:h,Ac:b,kb:v,Ba:p,Ca:n,Ua:new Float32Array(l),Db:new Float32Array(c),indices:new Uint16Array(u),mc:A,xb:t.Ka<<1|!!A}),B+=l.length,R+=u.length;var O=this.C,I=i(o);this.H.push(function(){O.save(),O.resetTransform(),O.globalCompositeOperation=I,O.globalAlpha=s;let e=a.canvas();e&&O.drawImage(e,C,j,b,v,d,h,x,y),O.restore()})}},_clipPath:function(e){this.H.push(this.C.clip.bind(this.C,e.T,e.Wa===f?"evenodd":"nonzero"))},clear:function(){w.add(this),this.H.push(this.C.clearRect.bind(this.C,0,0,this.Va.width,this.Va.height))},flush:function(){},translate:function(e,t){this.transform(1,0,0,1,e,t)}});e.makeRenderer=function(e){let t=new C(e),i=t.C;return new Proxy(t,{get(e,n){if("function"==typeof e[n])return function(...t){return e[n].apply(e,t)};if("function"==typeof i[n]){if(-1<o.indexOf(n))throw Error("RiveException: Method call to '"+n+"()' is not allowed, as the renderer cannot immediately pass through the return values of any canvas 2d context methods.");return function(...e){t.H.push(i[n].bind(i,...e))}}return e[n]},set(e,n,r){if(n in i)return t.H.push(()=>{i[n]=r}),!0}})},e.decodeImage=function(e,t){new y({la:t}).decode(e)},e.renderFactory={makeRenderPaint:function(){return new v},makeRenderPath:function(){return new b},makeRenderImage:function(){let e=O;return new y({xa:()=>{e.total++},la:()=>{if(e.loaded++,e.loaded===e.total){let t=e.ready;t&&(t(),e.ready=null)}}})}};let j=e.load,O=null;e.load=function(t,i,n=!0){let r=new e.FallbackFileAssetLoader;return void 0!==i&&r.addLoader(i),n&&(i=new e.CDNFileAssetLoader,r.addLoader(i)),new Promise(function(e){let i=null;O={total:0,loaded:0,ready:function(){e(i)}},i=j(t,r),0==O.total&&e(i)})};let I=e.RendererWrapper.prototype.align;e.RendererWrapper.prototype.align=function(e,t,i,n,r=1){I.call(this,e,t,i,n,r)},e.requestAnimationFrame=(l=new t).requestAnimationFrame.bind(l),e.cancelAnimationFrame=l.cancelAnimationFrame.bind(l),e.enableFPSCounter=l.Rb.bind(l),e.disableFPSCounter=l.Ob,l.pb=r,e.resolveAnimationFrame=r,e.cleanup=function(){_&&_.delete()}};var l,c,u,d,h,A,p,g,m,f=Object.assign({},e),x="./this.program",y="object"==typeof window,b="function"==typeof importScripts,v="";(y||b)&&(b?v=self.location.href:"u">typeof document&&document.currentScript&&(v=document.currentScript.src),n&&(v=n),v=0!==v.indexOf("blob:")?v.substr(0,v.replace(/[?#].*/,"").lastIndexOf("/")+1):"",b&&(m=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),g=(e,t,i)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{200==n.status||0==n.status&&n.response?t(n.response):i()},n.onerror=i,n.send(null)});var w=e.print||console.log.bind(console),_=e.printErr||console.error.bind(console);Object.assign(e,f),f=null,e.thisProgram&&(x=e.thisProgram),e.wasmBinary&&(E=e.wasmBinary),e.noExitRuntime,"object"!=typeof WebAssembly&&V("no native wasm support detected");var E,B,R,C,j,O,I,Q,k,S,T,D=!1;function P(){var t=B.buffer;e.HEAP8=C=new Int8Array(t),e.HEAP16=O=new Int16Array(t),e.HEAP32=Q=new Int32Array(t),e.HEAPU8=j=new Uint8Array(t),e.HEAPU16=I=new Uint16Array(t),e.HEAPU32
1=k=new Uint32Array(t),e.HEAPF32=S=new Float32Array(t),e.HEAPF64=T=new Float64Array(t)}var z,F=[],M=[],U=[],L=0,K=null,W=null;function V(t){throw e.onAbort&&e.onAbort(t),_(t="Aborted("+t+")"),D=!0,t=new WebAssembly.RuntimeError(t+". Build with -sASSERTIONS for more info."),p(t),t}function N(e){return e.startsWith("data:application/octet-stream;base64,")}if(!N(G="canvas_advanced.wasm")){var H=G;G=e.locateFile?e.locateFile(H,v):v+H}function Y(e){if(e==G&&E)return new Uint8Array(E);if(m)return m(e);throw"both async and sync fetching of the wasm failed"}function J(e,t,i){return(function(e){if(!E&&(y||b)){if("function"==typeof fetch&&!e.startsWith("file://"))return fetch(e,{credentials:"same-origin"}).then(t=>{if(!t.ok)throw"failed to load wasm binary file at '"+e+"'";return t.arrayBuffer()}).catch(()=>Y(e));if(g)return new Promise((t,i)=>{g(e,e=>t(new Uint8Array(e)),i)})}return Promise.resolve().then(()=>Y(e))})(e).then(e=>WebAssembly.instantiate(e,t)).then(e=>e).then(i,e=>{_("failed to asynchronously prepare wasm: "+e),V(e)})}var G,Z,q,X={456204:(e,t,i,n,r)=>{if("u"<typeof window||void 0===(window.AudioContext||window.webkitAudioContext))return 0;if(void 0===window.h){window.h={Aa:0},window.h.I={},window.h.I.ya=e,window.h.I.capture=t,window.h.I.La=i,window.h.ga={},window.h.ga.stopped=n,window.h.ga.yb=r;let o=window.h;o.D=[],o.yc=function(e){for(var t=0;t<o.D.length;++t)if(null==o.D[t])return o.D[t]=e,t;return o.D.push(e),o.D.length-1},o.Cb=function(e){for(o.D[e]=null;0<o.D.length;)if(null==o.D[o.D.length-1])o.D.pop();else break},o.Sc=function(e){for(var t=0;t<o.D.length;++t)if(o.D[t]==e)return o.Cb(t)},o.ra=function(e){return o.D[e]},o.Ta=["touchend","click"],o.unlock=function(){for(var e=0;e<o.D.length;++e){var t=o.D[e];null!=t&&null!=t.J&&t.state===o.ga.yb&&t.J.resume().then(()=>{il(t.qb)},e=>{console.error("Failed to resume audiocontext",e)})}o.Ta.map(function(e){document.removeEventListener(e,o.unlock,!0)})},o.Ta.map(function(e){document.addEventListener(e,o.unlock,!0)})}return window.h.Aa+=1,1},458382:()=>{void 0!==window.h&&(window.h.Ta.map(function(e){document.removeEventListener(e,window.h.unlock,!0)}),--window.h.Aa,0===window.h.Aa&&delete window.h)},458686:()=>void 0!==navigator.mediaDevices&&void 0!==navigator.mediaDevices.getUserMedia,458790:()=>{try{var e=new(window.AudioContext||window.webkitAudioContext),t=e.sampleRate;return e.close(),t}catch(e){return 0}},458961:(e,t,i,n,r,o)=>{if(void 0===window.h)return -1;var a={},s={};return e==window.h.I.ya&&0!=i&&(s.sampleRate=i),a.J=new(window.AudioContext||window.webkitAudioContext)(s),a.J.suspend(),a.state=window.h.ga.stopped,i=0,e!=window.h.I.ya&&(i=t),a.Z=a.J.createScriptProcessor(n,i,t),a.Z.onaudioprocess=function(i){if((null==a.sa||0==a.sa.length)&&(a.sa=new Float32Array(S.buffer,r,n*t)),e==window.h.I.capture||e==window.h.I.La){for(var s=0;s<t;s+=1)for(var l=i.inputBuffer.getChannelData(s),c=a.sa,u=0;u<n;u+=1)c[u*t+s]=l[u];ic(o,n,r)}if(e==window.h.I.ya||e==window.h.I.La)for(iu(o,n,r),s=0;s<i.outputBuffer.numberOfChannels;++s)for(l=i.outputBuffer.getChannelData(s),c=a.sa,u=0;u<n;u+=1)l[u]=c[u*t+s];else for(s=0;s<i.outputBuffer.numberOfChannels;++s)i.outputBuffer.getChannelData(s).fill(0)},e!=window.h.I.capture&&e!=window.h.I.La||navigator.mediaDevices.getUserMedia({audio:!0,video:!1}).then(function(e){a.Da=a.J.createMediaStreamSource(e),a.Da.connect(a.Z),a.Z.connect(a.J.destination)}).catch(function(e){console.log("Failed to get user media: "+e)}),e==window.h.I.ya&&a.Z.connect(a.J.destination),a.qb=o,window.h.yc(a)},461838:e=>window.h.ra(e).J.sampleRate,461911:e=>{void 0!==(e=window.h.ra(e)).Z&&(e.Z.onaudioprocess=function(){},e.Z.disconnect(),e.Z=void 0),void 0!==e.Da&&(e.Da.disconnect(),e.Da=void 0),e.J.close(),e.J=void 0,e.qb=void 0},462311:e=>{window.h.Cb(e)},462361:e=>{(e=window.h.ra(e)).J.resume(),e.state=window.h.ga.yb},462500:e=>{(e=window.h.ra(e)).J.suspend(),e.state=window.h.ga.stopped}},$=t=>{for(;0<t.length;)t.shift()(e)},ee=(e,t)=>{for(var i=0,n=e.length-1;0<=n;n--){var r=e[n];"."===r?e.splice(n,1):".."===r?(e.splice(n,1),i++):i&&(e.splice(n,1),i--)}if(t)for(;i;i--)e.unshift("..");return e},et=e=>{var t="/"===e.charAt(0),i="/"===e.substr(-1);return(e=ee(e.split("/").filter(e=>!!e),!t).join("/"))||t||(e="."),e&&i&&(e+="/"),(t?"/":"")+e},ei=e=>{var t=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/.exec(e).slice(1);return(e=t[0],t=t[1],e||t)?(t&&(t=t.substr(0,t.length-1)),e+t):"."},en=e=>{if("/"===e)return"/";var t=(e=(e=et(e)).replace(/\/$/,"")).lastIndexOf("/");return -1===t?e:e.substr(t+1)},er=e=>(er=(()=>
1{if("object"==typeof crypto&&"function"==typeof crypto.getRandomValues)return e=>crypto.getRandomValues(e);V("initRandomDevice")})())(e);function eo(){for(var e="",t=!1,i=arguments.length-1;-1<=i&&!t;i--){if(t=0<=i?arguments[i]:"/","string"!=typeof t)throw TypeError("Arguments to path.resolve must be strings");if(!t)return"";e=t+"/"+e,t="/"===t.charAt(0)}return e=ee(e.split("/").filter(e=>!!e),!t).join("/"),(t?"/":"")+e||"."}var ea="u">typeof TextDecoder?new TextDecoder("utf8"):void 0,es=(e,t,i)=>{var n=t+i;for(i=t;e[i]&&!(i>=n);)++i;if(16<i-t&&e.buffer&&ea)return ea.decode(e.subarray(t,i));for(n="";t<i;){var r=e[t++];if(128&r){var o=63&e[t++];if(192==(224&r))n+=String.fromCharCode((31&r)<<6|o);else{var a=63&e[t++];65536>(r=224==(240&r)?(15&r)<<12|o<<6|a:(7&r)<<18|o<<12|a<<6|63&e[t++])?n+=String.fromCharCode(r):(r-=65536,n+=String.fromCharCode(55296|r>>10,56320|1023&r))}}else n+=String.fromCharCode(r)}return n},el=[],ec=e=>{for(var t=0,i=0;i<e.length;++i){var n=e.charCodeAt(i);127>=n?t++:2047>=n?t+=2:55296<=n&&57343>=n?(t+=4,++i):t+=3}return t},eu=(e,t,i,n)=>{if(!(0<n))return 0;var r=i;n=i+n-1;for(var o=0;o<e.length;++o){var a=e.charCodeAt(o);if(55296<=a&&57343>=a&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),127>=a){if(i>=n)break;t[i++]=a}else{if(2047>=a){if(i+1>=n)break;t[i++]=192|a>>6}else{if(65535>=a){if(i+2>=n)break;t[i++]=224|a>>12}else{if(i+3>=n)break;t[i++]=240|a>>18,t[i++]=128|a>>12&63}t[i++]=128|a>>6&63}t[i++]=128|63&a}}return t[i]=0,i-r};function ed(e,t){var i=Array(ec(e)+1);return e=eu(e,i,0,i.length),t&&(i.length=e),i}var eh=[];function eA(e,t){eh[e]={input:[],F:[],V:t},eU(e,ep)}var ep={open:function(e){var t=eh[e.node.za];if(!t)throw new eC(43);e.s=t,e.seekable=!1},close:function(e){e.s.V.qa(e.s)},qa:function(e){e.s.V.qa(e.s)},read:function(e,t,i,n){if(!e.s||!e.s.V.jb)throw new eC(60);for(var r=0,o=0;o<n;o++){try{var a=e.s.V.jb(e.s)}catch(e){throw new eC(29)}if(void 0===a&&0===r)throw new eC(6);if(null==a)break;r++,t[i+o]=a}return r&&(e.node.timestamp=Date.now()),r},write:function(e,t,i,n){if(!e.s||!e.s.V.Oa)throw new eC(60);try{for(var r=0;r<n;r++)e.s.V.Oa(e.s,t[i+r])}catch(e){throw new eC(29)}return n&&(e.node.timestamp=Date.now()),r}};function eg(e,t){var i=e.j?e.j.length:0;i>=t||(t=Math.max(t,i*(1048576>i?2:1.125)>>>0),0!=i&&(t=Math.max(t,256)),i=e.j,e.j=new Uint8Array(t),0<e.v&&e.j.set(i.subarray(0,e.v),0))}var em,ef,ex,ey,eb={O:null,U:()=>eb.createNode(null,"/",16895,0),createNode(e,t,i,n){if(24576==(61440&i)||4096==(61440&i))throw new eC(63);return eb.O||(eb.O={dir:{node:{Y:eb.l.Y,P:eb.l.P,ka:eb.l.ka,va:eb.l.va,vb:eb.l.vb,Bb:eb.l.Bb,wb:eb.l.wb,tb:eb.l.tb,Ea:eb.l.Ea},stream:{ba:eb.m.ba}},file:{node:{Y:eb.l.Y,P:eb.l.P},stream:{ba:eb.m.ba,read:eb.m.read,write:eb.m.write,pa:eb.m.pa,mb:eb.m.mb,ob:eb.m.ob}},link:{node:{Y:eb.l.Y,P:eb.l.P,ma:eb.l.ma},stream:{}},ab:{node:{Y:eb.l.Y,P:eb.l.P},stream:eM}}),16384==(61440&(i=eS(e,t,i,n)).mode)?(i.l=eb.O.dir.node,i.m=eb.O.dir.stream,i.j={}):32768==(61440&i.mode)?(i.l=eb.O.file.node,i.m=eb.O.file.stream,i.v=0,i.j=null):40960==(61440&i.mode)?(i.l=eb.O.link.node,i.m=eb.O.link.stream):8192==(61440&i.mode)&&(i.l=eb.O.ab.node,i.m=eb.O.ab.stream),i.timestamp=Date.now(),e&&(e.j[t]=i,e.timestamp=i.timestamp),i},Kc:e=>e.j?e.j.subarray?e.j.subarray(0,e.v):new Uint8Array(e.j):new Uint8Array(0),l:{Y(e){var t={};return t.Jc=8192==(61440&e.mode)?e.id:1,t.Mc=e.id,t.mode=e.mode,t.Oc=1,t.uid=0,t.Lc=0,t.za=e.za,16384==(61440&e.mode)?t.size=4096:32768==(61440&e.mode)?t.size=e.v:40960==(61440&e.mode)?t.size=e.link.length:t.size=0,t.Bc=new Date(e.timestamp),t.Nc=new Date(e.timestamp),t.Ic=new Date(e.timestamp),t.Jb=4096,t.Cc=Math.ceil(t.size/t.Jb),t},P(e,t){if(void 0!==t.mode&&(e.mode=t.mode),void 0!==t.timestamp&&(e.timestamp=t.timestamp),void 0!==t.size&&(t=t.size,e.v!=t))if(0==t)e.j=null,e.v=0;else{var i=e.j;e.j=new Uint8Array(t),i&&e.j.set(i.subarray(0,Math.min(t,e.v))),e.v=t}},ka(){throw ej[44]},va:(e,t,i,n)=>eb.createNode(e,t,i,n),vb(e,t,i){if(16384==(61440&e.mode)){try{var n=ek(t,i)}catch(e){}if(n)for(var r in n.j)throw new eC(55)}delete e.parent.j[e.name],e.parent.timestamp=Date.now(),e.name=i,t.j[i]=e,t.timestamp=e.parent.timestamp,e.parent=t},Bb(e,t){delete e.j[t],e.timestamp=Date.now()},wb(e,t){var i,n=ek(e,t);for(i in n.j)throw new eC(55);delete e.j[t],e.timestamp=Date.now()},tb(e){var t,i=[".",".."];for(t in e.j)e.j.hasOwnProperty(t)&&i.push(t);return i},Ea:(e,t,i)=>((e=eb.createNode(e,t,41471,0)).link=i,e),ma(e){if(40960!=(61440&e.mode))throw new eC(28);return e.link}}
1,m:{read(e,t,i,n,r){var o=e.node.j;if(r>=e.node.v)return 0;if(8<(e=Math.min(e.node.v-r,n))&&o.subarray)t.set(o.subarray(r,r+e),i);else for(n=0;n<e;n++)t[i+n]=o[r+n];return e},write(e,t,i,n,r,o){if(t.buffer===C.buffer&&(o=!1),!n)return 0;if((e=e.node).timestamp=Date.now(),t.subarray&&(!e.j||e.j.subarray)){if(o)return e.j=t.subarray(i,i+n),e.v=n;if(0===e.v&&0===r)return e.j=t.slice(i,i+n),e.v=n;if(r+n<=e.v)return e.j.set(t.subarray(i,i+n),r),n}if(eg(e,r+n),e.j.subarray&&t.subarray)e.j.set(t.subarray(i,i+n),r);else for(o=0;o<n;o++)e.j[r+o]=t[i+o];return e.v=Math.max(e.v,r+n),n},ba(e,t,i){if(1===i?t+=e.position:2===i&&32768==(61440&e.node.mode)&&(t+=e.node.v),0>t)throw new eC(28);return t},pa(e,t,i){eg(e.node,t+i),e.node.v=Math.max(e.node.v,t+i)},mb(e,t,i,n,r){if(32768!=(61440&e.node.mode))throw new eC(43);if(e=e.node.j,2&r||e.buffer!==C.buffer)throw(0<i||i+t<e.length)&&(e=e.subarray?e.subarray(i,i+t):Array.prototype.slice.call(e,i,i+t)),i=!0,V(),t=void 0,new eC(48);return i=!1,t=e.byteOffset,{o:t,M:i}},ob:(e,t,i,n)=>(eb.m.write(e,t,0,n,i,!1),0)}},ev=null,ew={},e_=[],eE=1,eB=null,eR=!0,eC=null,ej={},eO=(e,t={})=>{if(!(e=eo(e)))return{path:"",node:null};if(8<(t=Object.assign({hb:!0,Qa:0},t)).Qa)throw new eC(32);e=e.split("/").filter(e=>!!e);for(var i=ev,n="/",r=0;r<e.length;r++){var o=r===e.length-1;if(o&&t.parent)break;if(i=ek(i,e[r]),n=et(n+"/"+e[r]),i.wa&&(!o||o&&t.hb)&&(i=i.wa.root),!o||t.gb){for(o=0;40960==(61440&i.mode);)if(i=eN(n),i=eO(n=eo(ei(n),i),{Qa:t.Qa+1}).node,40<o++)throw new eC(32)}}return{path:n,node:i}},eI=e=>{for(var t;;){if(e===e.parent)return e=e.U.nb,t?"/"!==e[e.length-1]?`${e}/${t}`:e+t:e;t=t?`${e.name}/${t}`:e.name,e=e.parent}},eQ=(e,t)=>{for(var i=0,n=0;n<t.length;n++)i=(i<<5)-i+t.charCodeAt(n)|0;return(e+i>>>0)%eB.length},ek=(e,t)=>{var i;if(i=(i=eD(e,"x"))?i:2*!e.l.ka)throw new eC(i,e);for(i=eB[eQ(e.id,t)];i;i=i.lc){var n=i.name;if(i.parent.id===e.id&&n===t)return i}return e.l.ka(e,t)},eS=(e,t,i,n)=>(t=eQ((e=new ie(e,t,i,n)).parent.id,e.name),e.lc=eB[t],eB[t]=e),eT=e=>{var t=["r","w","rw"][3&e];return 512&e&&(t+="w"),t},eD=(e,t)=>eR?0:t.includes("r")&&!(292&e.mode)||t.includes("w")&&!(146&e.mode)||t.includes("x")&&!(73&e.mode)?2:0,eP=(e,t)=>{try{return ek(e,t),20}catch(e){}return eD(e,"wx")},ez=e=>{if(!(e=e_[e]))throw new eC(8);return e},eF=(e,t=-1)=>(ex||((ex=function(){this.h={}}).prototype={},Object.defineProperties(ex.prototype,{object:{get(){return this.node},set(e){this.node=e}},flags:{get(){return this.h.flags},set(e){this.h.flags=e}},position:{get(){return this.h.position},set(e){this.h.position=e}}})),e=Object.assign(new ex,e),-1==t&&(t=(()=>{for(var e=0;4096>=e;e++)if(!e_[e])return e;throw new eC(33)})()),e.X=t,e_[t]=e),eM={open:e=>{e.m=ew[e.node.za].m,e.m.open&&e.m.open(e)},ba:()=>{throw new eC(70)}},eU=(e,t)=>{ew[e]={m:t}},eL=(e,t)=>{var i="/"===t,n=!t;if(i&&ev)throw new eC(10);if(!i&&!n){var r=eO(t,{hb:!1});if(t=r.path,(r=r.node).wa)throw new eC(10);if(16384!=(61440&r.mode))throw new eC(54)}t={type:e,Qc:{},nb:t,kc:[]},(e=e.U(t)).U=t,t.root=e,i?ev=e:r&&(r.wa=t,r.U&&r.U.kc.push(t))},eK=(e,t,i)=>{var n=eO(e,{parent:!0}).node;if(!(e=en(e))||"."===e||".."===e)throw new eC(28);var r=eP(n,e);if(r)throw new eC(r);if(!n.l.va)throw new eC(63);return n.l.va(n,e,t,i)},eW=(e,t,i)=>{void 0===i&&(i=t,t=438),eK(e,8192|t,i)},eV=(e,t)=>{if(!eo(e))throw new eC(44);var i=eO(t,{parent:!0}).node;if(!i)throw new eC(44);var n=eP(i,t=en(t));if(n)throw new eC(n);if(!i.l.Ea)throw new eC(63);i.l.Ea(i,t,e)},eN=e=>{if(!(e=eO(e).node))throw new eC(44);if(!e.l.ma)throw new eC(28);return eo(eI(e.parent),e.l.ma(e))},eH=(t,i,n)=>{if(""===t)throw new eC(44);if("string"==typeof i){var r={r:0,"r+":2,w:577,"w+":578,a:1089,"a+":1090}[i];if(void 0===r)throw Error(`Unknown file open mode: ${i}`);i=r}if(n=64&i?(void 0===n?438:n)&4095|32768:0,"object"==typeof t)var o=t;else{t=et(t);try{o=eO(t,{gb:!(131072&i)}).node}catch(e){}}if(r=!1,64&i)if(o){if(128&i)throw new eC(20)}else o=eK(t,n,0),r=!0;if(!o)throw new eC(44);if(8192==(61440&o.mode)&&(i&=-513),65536&i&&16384!=(61440&o.mode))throw new eC(54);if(!r&&(n=o?40960==(61440&o.mode)?32:16384==(61440&o.mode)&&("r"!==eT(i)||512&i)?31:eD(o,eT(i)):44))throw new eC(n);
1if(512&i&&!r){if(!(n="string"==typeof(n=o)?eO(n,{gb:!0}).node:n).l.P)throw new eC(63);if(16384==(61440&n.mode))throw new eC(31);if(32768!=(61440&n.mode))throw new eC(28);if(r=eD(n,"w"))throw new eC(r);n.l.P(n,{size:0,timestamp:Date.now()})}return i&=-131713,(o=eF({node:o,path:eI(o),flags:i,seekable:!0,position:0,m:o.m,zc:[],error:!1})).m.open&&o.m.open(o),!e.logReadFiles||1&i||(ey||(ey={}),t in ey||(ey[t]=1)),o},eY=(e,t,i)=>{if(null===e.X)throw new eC(8);if(!e.seekable||!e.m.ba)throw new eC(70);if(0!=i&&1!=i&&2!=i)throw new eC(28);e.position=e.m.ba(e,t,i),e.zc=[]},eJ=()=>{eC||((eC=function(e,t){this.name="ErrnoError",this.node=t,this.pc=function(e){this.aa=e},this.pc(e),this.message="FS error"}).prototype=Error(),eC.prototype.constructor=eC,[44].forEach(e=>{ej[e]=new eC(e),ej[e].stack="<generic error, no stack>"}))},eG=(e,t,i)=>{e=et("/dev/"+e);var n,r=(n=0,t&&(n|=365),i&&(n|=146),n);ef||(ef=64);var o=ef++<<8;eU(o,{open:e=>{e.seekable=!1},close:()=>{i&&i.buffer&&i.buffer.length&&i(10)},read:(e,i,n,r)=>{for(var o=0,a=0;a<r;a++){try{var s=t()}catch(e){throw new eC(29)}if(void 0===s&&0===o)throw new eC(6);if(null==s)break;o++,i[n+a]=s}return o&&(e.node.timestamp=Date.now()),o},write:(e,t,n,r)=>{for(var o=0;o<r;o++)try{i(t[n+o])}catch(e){throw new eC(29)}return r&&(e.node.timestamp=Date.now()),o}}),eW(e,r,o)},eZ={},eq=void 0;function eX(){return Q[(eq+=4)-4>>2]}function e$(e){if(void 0===e)return"_unknown";var t=(e=e.replace(/[^a-zA-Z0-9_]/g,"$")).charCodeAt(0);return 48<=t&&57>=t?`_${e}`:e}function e0(e,t){return({[e=e$(e)]:function(){return t.apply(this,arguments)}})[e]}function e1(){this.M=[void 0],this.ib=[]}var e2=new e1,e4=void 0;function e8(e){throw new e4(e)}var e7=e=>(e||e8("Cannot use deleted val. handle = "+e),e2.get(e).value),e6=e=>{switch(e){case void 0:return 1;case null:return 2;case!0:return 3;case!1:return 4;default:return e2.pa({ub:1,value:e})}};function e3(e){var t=Error,i=e0(e,function(t){this.name=e,this.message=t,void 0!==(t=Error(t).stack)&&(this.stack=this.toString()+"\n"+t.replace(/^Error(:[^\n]*)?\n/,""))});return i.prototype=Object.create(t.prototype),i.prototype.constructor=i,i.prototype.toString=function(){return void 0===this.message?this.name:`${this.name}: ${this.message}`},i}var e5=void 0,e9=void 0;function te(e){for(var t="";j[e];)t+=e9[j[e++]];return t}var tt=[];function ti(){for(;tt.length;){var e=tt.pop();e.g.fa=!1,e.delete()}}var tn=void 0,tr={};function to(e,t){for(void 0===t&&e8("ptr should not be undefined");e.A;)t=e.na(t),e=e.A;return t}var ta={};function ts(e){var t=te(e=id(e));return io(e),t}function tl(e,t){var i=ta[e];return void 0===i&&e8(t+" has unknown type "+ts(e)),i}function tc(){}var tu=!1;function td(e){--e.count.value,0===e.count.value&&(e.G?e.L.W(e.G):e.u.i.W(e.o))}var th={},tA=void 0;function tp(e){throw new tA(e)}function tg(e,t){return t.u&&t.o||tp("makeClassHandle requires ptr and ptrType"),!!t.L!=!!t.G&&tp("Both smartPtrType and smartPtr must be specified"),t.count={value:1},tm(Object.create(e,{g:{value:t}}))}function tm(e){return"u"<typeof FinalizationRegistry?(tm=e=>e,e):(tu=new FinalizationRegistry(e=>{td(e.g)}),tm=e=>{var t=e.g;return t.G&&tu.register(e,{g:t},e),e},tc=e=>{tu.unregister(e)},tm(e))}var tf={};function tx(e){for(;e.length;){var t=e.pop();e.pop()(t)}}function ty(e){return this.fromWireType(Q[e>>2])}var tb={},tv={};function tw(e,t,i){function n(t){(t=i(t)).length!==e.length&&tp("Mismatched type converter count");for(var n=0;n<e.length;++n)tE(e[n],t[n])}e.forEach(function(e){tv[e]=t});var r=Array(t.length),o=[],a=0;t.forEach((e,t)=>{ta.hasOwnProperty(e)?r[t]=ta[e]:(o.push(e),tb.hasOwnProperty(e)||(tb[e]=[]),tb[e].push(()=>{r[t]=ta[e],++a===o.length&&n(r)}))}),0===o.length&&n(r)}function t_(e){switch(e){case 1:return 0;case 2:return 1;case 4:return 2;case 8:return 3;default:throw TypeError(`Unknown type size: ${e}`)}}function tE(e,t,i={}){if(!("argPackAdvance"in t))throw TypeError("registerType registeredInstance requires argPackAdvance");!function(e,t,i={}){var n=t.name;if(e||e8(`type "${n}" must have a positive integer typeid pointer`),ta.hasOwnProperty(e)){if(i.$b)return;e8(`Cannot register type '${n}' twice`)}ta[e]=t,delete tv[e],tb.hasOwnProperty(e)&&(t=tb[e],delete tb[e],t.forEach(e
1=>e()))}(e,t,i)}function tB(e){e8(e.g.u.i.name+" instance already deleted")}function tR(){}function tC(e,t,i){if(void 0===e[t].B){var n=e[t];e[t]=function(){return e[t].B.hasOwnProperty(arguments.length)||e8(`Function '${i}' called with an invalid number of arguments (${arguments.length}) - expects one of (${e[t].B})!`),e[t].B[arguments.length].apply(this,arguments)},e[t].B=[],e[t].B[n.ea]=n}}function tj(t,i,n){e.hasOwnProperty(t)?((void 0===n||void 0!==e[t].B&&void 0!==e[t].B[n])&&e8(`Cannot register public name '${t}' twice`),tC(e,t,t),e.hasOwnProperty(n)&&e8(`Cannot register multiple overloads of a function with the same number of arguments (${n})!`),e[t].B[n]=i):(e[t]=i,void 0!==n&&(e[t].Pc=n))}function tO(e,t,i,n,r,o,a,s){this.name=e,this.constructor=t,this.N=i,this.W=n,this.A=r,this.Ub=o,this.na=a,this.Pb=s,this.rb=[]}function tI(e,t,i){for(;t!==i;)t.na||e8(`Expected null or instance of ${i.name}, got an instance of ${t.name}`),e=t.na(e),t=t.A;return e}function tQ(e,t){return null===t?(this.Na&&e8(`null is not a valid ${this.name}`),0):(t.g||e8(`Cannot pass "${tN(t)}" as a ${this.name}`),t.g.o||e8(`Cannot pass deleted object as a pointer of type ${this.name}`),tI(t.g.o,t.g.u.i,this.i))}function tk(e,t){if(null===t){if(this.Na&&e8(`null is not a valid ${this.name}`),this.ua){var i=this.Pa();return null!==e&&e.push(this.W,i),i}return 0}if(t.g||e8(`Cannot pass "${tN(t)}" as a ${this.name}`),t.g.o||e8(`Cannot pass deleted object as a pointer of type ${this.name}`),!this.ta&&t.g.u.ta&&e8(`Cannot convert argument of type ${t.g.L?t.g.L.name:t.g.u.name} to parameter type ${this.name}`),i=tI(t.g.o,t.g.u.i,this.i),this.ua)switch(void 0===t.g.G&&e8("Passing raw pointer to smart pointer is illegal"),this.tc){case 0:t.g.L===this?i=t.g.G:e8(`Cannot convert argument of type ${t.g.L?t.g.L.name:t.g.u.name} to parameter type ${this.name}`);break;case 1:i=t.g.G;break;case 2:if(t.g.L===this)i=t.g.G;else{var n=t.clone();i=this.oc(i,e6(function(){n.delete()})),null!==e&&e.push(this.W,i)}break;default:e8("Unsupporting sharing policy")}return i}function tS(e,t){return null===t?(this.Na&&e8(`null is not a valid ${this.name}`),0):(t.g||e8(`Cannot pass "${tN(t)}" as a ${this.name}`),t.g.o||e8(`Cannot pass deleted object as a pointer of type ${this.name}`),t.g.u.ta&&e8(`Cannot convert argument of type ${t.g.u.name} to parameter type ${this.name}`),tI(t.g.o,t.g.u.i,this.i))}function tT(e,t,i,n){this.name=e,this.i=t,this.Na=i,this.ta=n,this.ua=!1,this.W=this.oc=this.Pa=this.sb=this.tc=this.nc=void 0,void 0!==t.A?this.toWireType=tk:(this.toWireType=n?tQ:tS,this.K=null)}function tD(t,i,n){e.hasOwnProperty(t)||tp("Replacing nonexistant public symbol"),void 0!==e[t].B&&void 0!==n?e[t].B[n]=i:(e[t]=i,e[t].ea=n)}var tP=[],tz=e=>{var t=tP[e];return t||(e>=tP.length&&(tP.length=e+1),tP[e]=t=z.get(e)),t};function tF(t,i){var n,r,o=(t=te(t)).includes("j")?(n=t,r=[],function(){if(r.length=0,Object.assign(r,arguments),n.includes("j")){var t=e["dynCall_"+n];t=r&&r.length?t.apply(null,[i].concat(r)):t.call(null,i)}else t=tz(i).apply(null,r);return t}):tz(i);return"function"!=typeof o&&e8(`unknown function pointer with signature ${t}: ${i}`),o}var tM=void 0;function tU(e,t){var i=[],n={};throw t.forEach(function e(t){n[t]||ta[t]||(tv[t]?tv[t].forEach(e):(i.push(t),n[t]=!0))}),new tM(`${e}: `+i.map(ts).join([", "]))}function tL(e,t,i,n,r){var o=t.length;2>o&&e8("argTypes array size mismatch! Must at least get return value and 'this' types!");var a=null!==t[1]&&null!==i,s=!1;for(i=1;i<t.length;++i)if(null!==t[i]&&void 0===t[i].K){s=!0;break}var l="void"!==t[0].name,c=o-2,u=Array(c),d=[],h=[];return function(){if(arguments.length!==c&&e8(`function ${e} called with ${arguments.length} arguments, expected ${c} args!`),h.length=0,d.length=a?2:1,d[0]=r,a){var i=t[1].toWireType(h,this);d[1]=i}for(var o=0;o<c;++o)u[o]=t[o+2].toWireType(h,arguments[o]),d.push(u[o]);if(o=n.apply(null,d),s)tx(h);else for(var A=a?1:2;A<t.length;A++){var p=1===A?i:u[A-2];null!==t[A].K&&t[A].K(p)}return l?t[0].fromWireType(o):void 0}}function tK(e,t){for(var i=[],n=0;n<e;n++)i.push(k[t+4*n>>2]);return i}function tW(e,t,i){return e instanceof Object||e8(`${i}
1 with invalid "this": ${e}`),e instanceof t.i.constructor||e8(`${i} incompatible with "this" of type ${e.constructor.name}`),e.g.o||e8(`cannot call emscripten binding method ${i} on deleted object`),tI(e.g.o,e.g.u.i,t.i)}function tV(e){e>=e2.h&&0==--e2.get(e).ub&&e2.Zb(e)}function tN(e){if(null===e)return"null";var t=typeof e;return"object"===t||"array"===t||"function"===t?e.toString():""+e}var tH="u">typeof TextDecoder?new TextDecoder("utf-16le"):void 0,tY=(e,t)=>{for(var i=e>>1,n=i+t/2;!(i>=n)&&I[i];)++i;if(32<(i<<=1)-e&&tH)return tH.decode(j.subarray(e,i));for(n=0,i="";!(n>=t/2);++n){var r=O[e+2*n>>1];if(0==r)break;i+=String.fromCharCode(r)}return i},tJ=(e,t,i)=>{if(void 0===i&&(i=0x7fffffff),2>i)return 0;i-=2;var n=t;i=i<2*e.length?i/2:e.length;for(var r=0;r<i;++r)O[t>>1]=e.charCodeAt(r),t+=2;return O[t>>1]=0,t-n},tG=e=>2*e.length,tZ=(e,t)=>{for(var i=0,n="";!(i>=t/4);){var r=Q[e+4*i>>2];if(0==r)break;++i,65536<=r?(r-=65536,n+=String.fromCharCode(55296|r>>10,56320|1023&r)):n+=String.fromCharCode(r)}return n},tq=(e,t,i)=>{if(void 0===i&&(i=0x7fffffff),4>i)return 0;var n=t;i=n+i-4;for(var r=0;r<e.length;++r){var o=e.charCodeAt(r);if(55296<=o&&57343>=o&&(o=65536+((1023&o)<<10)|1023&e.charCodeAt(++r)),Q[t>>2]=o,(t+=4)+4>i)break}return Q[t>>2]=0,t-n},tX=e=>{for(var t=0,i=0;i<e.length;++i){var n=e.charCodeAt(i);55296<=n&&57343>=n&&++i,t+=4}return t},t$={};function t0(e){var t=t$[e];return void 0===t?te(e):t}var t1,t2=[],t4=[],t8=[],t7={},t6=()=>{if(!t1){var e,t={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:("object"==typeof navigator&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:x||"./this.program"};for(e in t7)void 0===t7[e]?delete t[e]:t[e]=t7[e];var i=[];for(e in t)i.push(`${e}=${t[e]}`);t1=i}return t1},t3=e=>0==e%4&&(0!=e%100||0==e%400),t5=[31,29,31,30,31,30,31,31,30,31,30,31],t9=[31,28,31,30,31,30,31,31,30,31,30,31];function ie(e,t,i,n){e||(e=this),this.parent=e,this.U=e.U,this.wa=null,this.id=eE++,this.name=t,this.mode=i,this.l={},this.m={},this.za=n}Object.defineProperties(ie.prototype,{read:{get:function(){return 365==(365&this.mode)},set:function(e){e?this.mode|=365:this.mode&=-366}},write:{get:function(){return 146==(146&this.mode)},set:function(e){e?this.mode|=146:this.mode&=-147}}}),eJ(),eB=Array(4096),eL(eb,"/"),eK("/tmp",16895,0),eK("/home",16895,0),eK("/home/web_user",16895,0),eK("/dev",16895,0),eU(259,{read:()=>0,write:(e,t,i,n)=>n}),eW("/dev/null",259),eA(1280,{jb:function(){e:{if(!el.length){var e=null;if("u">typeof window&&"function"==typeof window.prompt?null!==(e=window.prompt("Input: "))&&(e+="\n"):"function"==typeof readline&&null!==(e=readline())&&(e+="\n"),!e){e=null;break e}el=ed(e,!0)}e=el.shift()}return e},Oa:function(e,t){null===t||10===t?(w(es(e.F,0)),e.F=[]):0!=t&&e.F.push(t)},qa:function(e){e.F&&0<e.F.length&&(w(es(e.F,0)),e.F=[])},bc:function(){return{Fc:25856,Hc:5,Ec:191,Gc:35387,Dc:[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]}},cc:function(){return 0},dc:function(){return[24,80]}}),eA(1536,{Oa:function(e,t){null===t||10===t?(_(es(e.F,0)),e.F=[]):0!=t&&e.F.push(t)},qa:function(e){e.F&&0<e.F.length&&(_(es(e.F,0)),e.F=[])}}),eW("/dev/tty",1280),eW("/dev/tty1",1536),l=new Uint8Array(1024),c=0,eG("random",u=()=>(0===c&&(c=er(l).byteLength),l[--c])),eG("urandom",u),eK("/dev/shm",16895,0),eK("/dev/shm/tmp",16895,0),eK("/proc",16895,0),d=eK("/proc/self",16895,0),eK("/proc/self/fd",16895,0),eL({U:()=>{var e=eS(d,"fd",16895,73);return e.l={ka:(e,t)=>{var i=ez(+t);return(e={parent:null,U:{nb:"fake"},l:{ma:()=>i.path}}).parent=e}},e}},"/proc/self/fd"),Object.assign(e1.prototype,{get(e){return this.M[e]},has(e){return void 0!==this.M[e]},pa(e){var t=this.ib.pop()||this.M.length;return this.M[t]=e,t},Zb(e){this.M[e]=void 0,this.ib.push(e)}}),e4=e.BindingError=class extends Error{constructor(e){super(e),this.name="BindingError"}},e2.M.push({value:void 0},{value:null},{value:!0},{value:!1}),e2.h=e2.M.length,e.count_emval_handles=function(){for(var e=0,t=e2.h;t<e2.M.length;++t)void 0!==e2.M[t]&&++e;return e}
1,e5=e.PureVirtualError=e3("PureVirtualError");for(var it=Array(256),ii=0;256>ii;++ii)it[ii]=String.fromCharCode(ii);e9=it,e.getInheritedInstanceCount=function(){return Object.keys(tr).length},e.getLiveInheritedInstances=function(){var e,t=[];for(e in tr)tr.hasOwnProperty(e)&&t.push(tr[e]);return t},e.flushPendingDeletes=ti,e.setDelayFunction=function(e){tn=e,tt.length&&tn&&tn(ti)},tA=e.InternalError=class extends Error{constructor(e){super(e),this.name="InternalError"}},tR.prototype.isAliasOf=function(e){if(!(this instanceof tR&&e instanceof tR))return!1;var t=this.g.u.i,i=this.g.o,n=e.g.u.i;for(e=e.g.o;t.A;)i=t.na(i),t=t.A;for(;n.A;)e=n.na(e),n=n.A;return t===n&&i===e},tR.prototype.clone=function(){if(this.g.o||tB(this),this.g.ia)return this.g.count.value+=1,this;var e=tm,t=Object,i=t.create,n=Object.getPrototypeOf(this),r=this.g;return e=e(i.call(t,n,{g:{value:{count:r.count,fa:r.fa,ia:r.ia,o:r.o,u:r.u,G:r.G,L:r.L}}})),e.g.count.value+=1,e.g.fa=!1,e},tR.prototype.delete=function(){this.g.o||tB(this),this.g.fa&&!this.g.ia&&e8("Object already scheduled for deletion"),tc(this),td(this.g),this.g.ia||(this.g.G=void 0,this.g.o=void 0)},tR.prototype.isDeleted=function(){return!this.g.o},tR.prototype.deleteLater=function(){return this.g.o||tB(this),this.g.fa&&!this.g.ia&&e8("Object already scheduled for deletion"),tt.push(this),1===tt.length&&tn&&tn(ti),this.g.fa=!0,this},tT.prototype.Vb=function(e){return this.sb&&(e=this.sb(e)),e},tT.prototype.bb=function(e){this.W&&this.W(e)},tT.prototype.argPackAdvance=8,tT.prototype.readValueFromPointer=ty,tT.prototype.deleteObject=function(e){null!==e&&e.delete()},tT.prototype.fromWireType=function(e){function t(){return this.ua?tg(this.i.N,{u:this.nc,o:i,L:this,G:e}):tg(this.i.N,{u:this,o:e})}var i=this.Vb(e);if(!i)return this.bb(e),null;var n=tr[to(this.i,i)];if(void 0!==n)return 0===n.g.count.value?(n.g.o=i,n.g.G=e,n.clone()):(n=n.clone(),this.bb(e),n);if(!(n=th[n=this.i.Ub(i)]))return t.call(this);n=this.ta?n.Kb:n.pointerType;var r=function e(t,i,n){return i===n?t:void 0===n.A||null===(t=e(t,i,n.A))?null:n.Pb(t)}(i,this.i,n.i);return null===r?t.call(this):this.ua?tg(n.i.N,{u:n,o:r,L:this,G:e}):tg(n.i.N,{u:n,o:r})},tM=e.UnboundTypeError=e3("UnboundTypeError");var ir={__syscall_fcntl64:function(e,t,i){eq=i;try{var n=ez(e);switch(t){case 0:var r=eX();return 0>r?-28:eF(n,r).X;case 1:case 2:case 6:case 7:return 0;case 3:return n.flags;case 4:return r=eX(),n.flags|=r,0;case 5:return O[(r=eX())+0>>1]=2,0;case 16:case 8:default:return -28;case 9:return Q[is()>>2]=28,-1}}catch(e){if(void 0===eZ||"ErrnoError"!==e.name)throw e;return-e.aa}},__syscall_ioctl:function(e,t,i){eq=i;try{var n=ez(e);switch(t){case 21509:case 21510:case 21511:case 21512:case 21524:case 21515:return n.s?0:-59;case 21505:if(!n.s)return -59;if(n.s.V.bc){t=[3,28,127,21,4,0,1,0,17,19,26,0,18,15,23,22,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];var r=eX();Q[r>>2]=25856,Q[r+4>>2]=5,Q[r+8>>2]=191,Q[r+12>>2]=35387;for(var o=0;32>o;o++)C[r+o+17|0]=t[o]||0}return 0;case 21506:case 21507:case 21508:if(!n.s)return -59;if(n.s.V.cc)for(r=eX(),t=[],o=0;32>o;o++)t.push(C[r+o+17|0]);return 0;case 21519:if(!n.s)return -59;return Q[(r=eX())>>2]=0;case 21520:return n.s?-28:-59;case 21531:if(r=eX(),!n.m.ac)throw new eC(59);return n.m.ac(n,t,r);case 21523:if(!n.s)return -59;return n.s.V.dc&&(o=[24,80],O[(r=eX())>>1]=o[0],O[r+2>>1]=o[1]),0;default:return -28}}catch(e){if(void 0===eZ||"ErrnoError"!==e.name)throw e;return-e.aa}}
1,__syscall_openat:function(e,t,i,n){eq=n;try{var r=t=t?es(j,t):"";if("/"===r.charAt(0))t=r;else{var o=-100===e?"/":ez(e).path;if(0==r.length)throw new eC(44);t=et(o+"/"+r)}var a=n?eX():0;return eH(t,i,a).X}catch(e){if(void 0===eZ||"ErrnoError"!==e.name)throw e;return-e.aa}},_embind_create_inheriting_constructor:function(e,t,i){e=te(e),t=tl(t,"wrapper"),i=e7(i);var n=[].slice,r=t.i,o=r.N,a=r.A.N,s=r.A.constructor;for(var l in e=e0(e,function(){r.A.rb.forEach((function(e){if(this[e]===a[e])throw new e5(`Pure virtual function ${e} must be implemented in JavaScript`)}).bind(this)),Object.defineProperty(this,"__parent",{value:o}),this.__construct.apply(this,n.call(arguments))}),o.__construct=function(){this===o&&e8("Pass correct 'this' to __construct");var e=s.implement.apply(void 0,[this].concat(n.call(arguments)));tc(e);var t=e.g;e.notifyOnDestruction(),t.ia=!0,Object.defineProperties(this,{g:{value:t}}),tm(this),e=to(r,e=t.o),tr.hasOwnProperty(e)?e8(`Tried to register registered instance: ${e}`):tr[e]=this},o.__destruct=function(){this===o&&e8("Pass correct 'this' to __destruct"),tc(this);var e=this.g.o;e=to(r,e),tr.hasOwnProperty(e)?delete tr[e]:e8(`Tried to unregister unregistered instance: ${e}`)},e.prototype=Object.create(o),i)e.prototype[l]=i[l];return e6(e)},_embind_finalize_value_object:function(e){var t=tf[e];delete tf[e];var i=t.Pa,n=t.W,r=t.fb;tw([e],r.map(e=>e.Yb).concat(r.map(e=>e.rc)),e=>{var o={};return r.forEach((t,i)=>{var n=e[i],a=t.Wb,s=t.Xb,l=e[i+r.length],c=t.qc,u=t.sc;o[t.Sb]={read:e=>n.fromWireType(a(s,e)),write:(e,t)=>{var i=[];c(u,e,l.toWireType(i,t)),tx(i)}}}),[{name:t.name,fromWireType:function(e){var t,i={};for(t in o)i[t]=o[t].read(e);return n(e),i},toWireType:function(e,t){for(var r in o)if(!(r in t))throw TypeError(`Missing field: "${r}"`);var a=i();for(r in o)o[r].write(a,t[r]);return null!==e&&e.push(n,a),a},argPackAdvance:8,readValueFromPointer:ty,K:n}]})},_embind_register_bigint:function(){},_embind_register_bool:function(e,t,i,n,r){var o=t_(i);tE(e,{name:t=te(t),fromWireType:function(e){return!!e},toWireType:function(e,t){return t?n:r},argPackAdvance:8,readValueFromPointer:function(e){if(1===i)var n=C;else if(2===i)n=O;else if(4===i)n=Q;else throw TypeError("Unknown boolean type size: "+t);return this.fromWireType(n[e>>o])},K:null})},_embind_register_class:function(e,t,i,n,r,o,a,s,l,c,u,d,h){u=te(u),o=tF(r,o),s&&(s=tF(a,s)),c&&(c=tF(l,c)),h=tF(d,h);var A=e$(u);tj(A,function(){tU(`Cannot construct ${u} due to unbound types`,[n])}),tw([e,t,i],n?[n]:[],function(t){if(t=t[0],n)var i=t.i,r=i.N;else r=tR.prototype;var a=Object.create(r,{constructor:{value:t=e0(A,function(){if(Object.getPrototypeOf(this)!==a)throw new e4("Use 'new' to construct "+u);if(void 0===l.$)throw new e4(u+" has no accessible constructor");var e=l.$[arguments.length];if(void 0===e)throw new e4(`Tried to invoke ctor of ${u} with invalid number of parameters (${arguments.length}) - expected (${Object.keys(l.$).toString()}) parameters instead!`);return e.apply(this,arguments)})}});t.prototype=a;var l=new tO(u,t,a,h,i,o,s,c);l.A&&(void 0===l.A.oa&&(l.A.oa=[]),l.A.oa.push(l)),i=new tT(u,l,!0,!1),r=new tT(u+"*",l,!1,!1);var d=new tT(u+" const*",l,!1,!0);return th[e]={pointerType:r,Kb:d},tD(A,t),[i,r,d]})},_embind_register_class_class_function:function(e,t,i,n,r,o,a){var s=tK(i,n);t=te(t),o=tF(r,o),tw([],[e],function(e){function n(){tU(`Cannot call ${r} due to unbound types`,s)}e=e[0];var r=`${e.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]);var l=e.i.constructor;return void 0===l[t]?(n.ea=i-1,l[t]=n):(tC(l,t,r),l[t].B[i-1]=n),tw([],s,function(n){if(n=tL(r,[n[
10],null].concat(n.slice(1)),null,o,a),void 0===l[t].B?(n.ea=i-1,l[t]=n):l[t].B[i-1]=n,e.i.oa)for(let i of e.i.oa)i.constructor.hasOwnProperty(t)||(i.constructor[t]=n);return[]}),[]})},_embind_register_class_class_property:function(e,t,i,n,r,o,a,s){t=te(t),o=tF(r,o),tw([],[e],function(e){e=e[0];var r=`${e.name}.${t}`,l={get(){tU(`Cannot access ${r} due to unbound types`,[i])},enumerable:!0,configurable:!0};return l.set=s?()=>{tU(`Cannot access ${r} due to unbound types`,[i])}:()=>{e8(`${r} is a read-only property`)},Object.defineProperty(e.i.constructor,t,l),tw([],[i],function(i){i=i[0];var r={get:()=>i.fromWireType(o(n)),enumerable:!0};return s&&(s=tF(a,s),r.set=e=>{var t=[];s(n,i.toWireType(t,e)),tx(t)}),Object.defineProperty(e.i.constructor,t,r),[]}),[]})},_embind_register_class_constructor:function(e,t,i,n,r,o){var a=tK(t,i);r=tF(n,r),tw([],[e],function(e){e=e[0];var i=`constructor ${e.name}`;if(void 0===e.i.$&&(e.i.$=[]),void 0!==e.i.$[t-1])throw new e4(`Cannot register multiple constructors with identical number of parameters (${t-1}) for class '${e.name}'! Overload resolution is currently only performed using the parameter count, not actual type info!`);return e.i.$[t-1]=()=>{tU(`Cannot construct ${e.name} due to unbound types`,a)},tw([],a,function(n){return n.splice(1,0,null),e.i.$[t-1]=tL(i,n,null,r,o),[]}),[]})},_embind_register_class_function:function(e,t,i,n,r,o,a,s){var l=tK(i,n);t=te(t),o=tF(r,o),tw([],[e],function(e){function n(){tU(`Cannot call ${r} due to unbound types`,l)}e=e[0];var r=`${e.name}.${t}`;t.startsWith("@@")&&(t=Symbol[t.substring(2)]),s&&e.i.rb.push(t);var c=e.i.N,u=c[t];return void 0===u||void 0===u.B&&u.className!==e.name&&u.ea===i-2?(n.ea=i-2,n.className=e.name,c[t]=n):(tC(c,t,r),c[t].B[i-2]=n),tw([],l,function(n){return n=tL(r,n,e,o,a),void 0===c[t].B?(n.ea=i-2,c[t]=n):c[t].B[i-2]=n,[]}),[]})},_embind_register_class_property:function(e,t,i,n,r,o,a,s,l,c){t=te(t),r=tF(n,r),tw([],[e],function(e){e=e[0];var n=`${e.name}.${t}`,u={get(){tU(`Cannot access ${n} due to unbound types`,[i,a])},enumerable:!0,configurable:!0};return u.set=l?()=>{tU(`Cannot access ${n} due to unbound types`,[i,a])}:()=>{e8(n+" is a read-only property")},Object.defineProperty(e.i.N,t,u),tw([],l?[i,a]:[i],function(i){var a=i[0],u={get(){var t=tW(this,e,n+" getter");return a.fromWireType(r(o,t))},enumerable:!0};if(l){l=tF(s,l);var d=i[1];u.set=function(t){var i=tW(this,e,n+" setter"),r=[];l(c,i,d.toWireType(r,t)),tx(r)}}return Object.defineProperty(e.i.N,t,u),[]}),[]})},_embind_register_emval:function(e,t){tE(e,{name:t=te(t),fromWireType:function(e){var t=e7(e);return tV(e),t},toWireType:function(e,t){return e6(t)},argPackAdvance:8,readValueFromPointer:ty,K:null})},_embind_register_enum:function(e,t,i,n){function r(){}i=t_(i),t=te(t),r.values={},tE(e,{name:t,constructor:r,fromWireType:function(e){return this.constructor.values[e]},toWireType:function(e,t){return t.value},argPackAdvance:8,readValueFromPointer:function(e,t,i){switch(t){case 0:return function(e){return this.fromWireType((i?C:j)[e])};case 1:return function(e){return this.fromWireType((i?O:I)[e>>1])};case 2:return function(e){return this.fromWireType((i?Q:k)[e>>2])};default:throw TypeError("Unknown integer type: "+e)}}(t,i,n),K:null}),tj(t,r)},_embind_register_enum_value:function(e,t,i){var n=tl(e,"enum");t=te(t),e=n.constructor,n=Object.create(n.constructor.prototype,{value:{value:i},constructor:{value:e0(`${n.name}_${t}`,function(){})}}),e.values[i]=n,e[t]=n},_embind_register_float:function(e,t,i){i=t_(i),tE(e,{name:t=te(t),fromWireType:function(e){return e},toWireType:function(e,t){return t},argPackAdvance:8,readValueFromPointer:function(e,t){switch(t){case 2:return function(e){return this.fromWireType(S[e>>2])};case 3:return function(e){return this.fromWireType(T[e>>3])};default:throw TypeError("Unknown float type: "+e)}}(t,i),K:null})},_embind_register_function:function(e,t,i,n,r,o){var a=tK(t,i);e=te(e),r=tF(n,r),tj(e,function(){tU(`Cannot call ${e} due to unbound types`,a)},t-1),tw([],a,function(i){return tD(e,tL(e,[i[0],null].concat(i.slice(1)),null,r,o),t-1),[]})},_embind_register_integer:function(e,t,i,n,r){t=te(t),-1===r&&(r=0xffffffff),r=t_(i);var o=e=>e;if(0===n){var a=32-8*i;o=e=>e<<a>>>a}i=t.includes("unsigned")?function(e,t){return t>>>0}:function(e,t){return t},tE(e,{name:t,fromWireType:o,toWireType:i,argPackAdvance:8,readValueFromPointer:function(e,t,i){switch(t){case 0:return i?function(e){return C[e]}:function(e){return j[e]};case 1:return i?function(e){return O[e>>1]}:function(e){return I[e>>1]};case 2:return i?function(e){return Q[e>>2]}:function(e){return k[e>>2]};default:throw TypeError("Unknown integer type: "+e)}}(t,r,0!==n),K:null})},_embind_register_memory_view:function(e,t,i){function n(e){e>>=2;var t=k;return new r(t.buffer,t[e+1],t[e])}
1var r=[Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array][t];tE(e,{name:i=te(i),fromWireType:n,argPackAdvance:8,readValueFromPointer:n},{$b:!0})},_embind_register_std_string:function(e,t){var i="std::string"===(t=te(t));tE(e,{name:t,fromWireType:function(e){var t=k[e>>2],n=e+4;if(i)for(var r=n,o=0;o<=t;++o){var a=n+o;if(o==t||0==j[a]){if(r=r?es(j,r,a-r):"",void 0===s)var s=r;else s+="\0",s+=r;r=a+1}}else{for(s=Array(t),o=0;o<t;++o)s[o]=String.fromCharCode(j[n+o]);s=s.join("")}return io(e),s},toWireType:function(e,t){t instanceof ArrayBuffer&&(t=new Uint8Array(t));var n="string"==typeof t;n||t instanceof Uint8Array||t instanceof Uint8ClampedArray||t instanceof Int8Array||e8("Cannot pass non-string to std::string");var r=i&&n?ec(t):t.length,o=ia(4+r+1),a=o+4;if(k[o>>2]=r,i&&n)eu(t,j,a,r+1);else if(n)for(n=0;n<r;++n){var s=t.charCodeAt(n);255<s&&(io(a),e8("String has UTF-16 code units that do not fit in 8 bits")),j[a+n]=s}else for(n=0;n<r;++n)j[a+n]=t[n];return null!==e&&e.push(io,o),o},argPackAdvance:8,readValueFromPointer:ty,K:function(e){io(e)}})},_embind_register_std_wstring:function(e,t,i){if(i=te(i),2===t)var n=tY,r=tJ,o=tG,a=()=>I,s=1;else 4===t&&(n=tZ,r=tq,o=tX,a=()=>k,s=2);tE(e,{name:i,fromWireType:function(e){for(var i,r=k[e>>2],o=a(),l=e+4,c=0;c<=r;++c){var u=e+4+c*t;(c==r||0==o[u>>s])&&(l=n(l,u-l),void 0===i?i=l:(i+="\0",i+=l),l=u+t)}return io(e),i},toWireType:function(e,n){"string"!=typeof n&&e8(`Cannot pass non-string to C++ string type ${i}`);var a=o(n),l=ia(4+a+t);return k[l>>2]=a>>s,r(n,l+4,a+t),null!==e&&e.push(io,l),l},argPackAdvance:8,readValueFromPointer:ty,K:function(e){io(e)}})},_embind_register_value_object:function(e,t,i,n,r,o){tf[e]={name:te(t),Pa:tF(i,n),W:tF(r,o),fb:[]}},_embind_register_value_object_field:function(e,t,i,n,r,o,a,s,l,c){tf[e].fb.push({Sb:te(t),Yb:i,Wb:tF(n,r),Xb:o,rc:a,qc:tF(s,l),sc:c})},_embind_register_void:function(e,t){tE(e,{fc:!0,name:t=te(t),argPackAdvance:0,fromWireType:function(){},toWireType:function(){}})},_emscripten_get_now_is_monotonic:()=>!0,_emval_as:function(e,t,i){e=e7(e),t=tl(t,"emval::as");var n=[],r=e6(n);return k[i>>2]=r,t.toWireType(n,e)},_emval_call_method:function(e,t,i,n,r){e=t2[e],t=e7(t),i=t0(i);var o=[];return k[n>>2]=e6(o),e(t,i,o,r)},_emval_call_void_method:function(e,t,i,n){(e=t2[e])(t=e7(t),i=t0(i),null,n)},_emval_decref:tV,_emval_get_method_caller:function(e,t){var i,n,r=function(e,t){for(var i=Array(e),n=0;n<e;++n)i[n]=tl(k[t+4*n>>2],"parameter "+n);return i}(e,t),o=r[0],a=t4[t=o.name+"_$"+r.slice(1).map(function(e){return e.name}).join("_")+"$"];if(void 0!==a)return a;var s=Array(e-1);return i=(t,i,n,a)=>{for(var l=0,c=0;c<e-1;++c)s[c]=r[c+1].readValueFromPointer(a+l),l+=r[c+1].argPackAdvance;for(t=t[i].apply(t,s),c=0;c<e-1;++c)r[c+1].Nb&&r[c+1].Nb(s[c]);if(!o.fc)return o.toWireType(n,t)},n=t2.length,t2.push(i),a=n,t4[t]=a},_emval_get_module_property:function(t){return e6(e[t=t0(t)])},_emval_get_property:function(e,t){return e6((e=e7(e))[t=e7(t)])},_emval_incref:function(e){4<e&&(e2.get(e).ub+=1)},_emval_new_array:function(){return e6([])},_emval_new_cstring:function(e){return e6(t0(e))},_emval_new_object:function(){return e6({})},_emval_run_destructors:function(e){tx(e7(e)),tV(e)},_emval_set_property:function(e,t,i){e=e7(e),t=e7(t),i=e7(i),e[t]=i},_emval_take_value:function(e,t){return e6(e=(e=tl(e,"_emval_take_value")).readValueFromPointer(t))},abort:()=>{V("")},emscripten_asm_const_int:(e,t,i)=>{var n;for(t8.length=0,i>>=2;n=j[t++];)i+=105!=n&i,t8.push(105==n?Q[i]:T[i++>>1]),++i;return X[e].apply(null,t8)},emscripten_date_now:function(){return Date.now()},emscripten_get_now:()=>performance.now(),emscripten_memcpy_big:(e,t,i)=>j.copyWithin(e,t,t+i),emscripten_resize_heap:e=>{var t=j.length;if(0x80000000<(e>>>=0))return!1;for(var i=1;4>=i;i*=2){var n=t*(1+.2/i);n=Math.min(n,e+0x6000000);var r=Math;n=Math.max(e,n);e:{r=r.min.call(r,0x80000000,n+(65536-n%65536)%65536)-B.buffer.byteLength+65535>>>16;try{B.grow(r),P();var o=1;break e}catch(e){}o=void 0}if(o)return!0}return!1},environ_get:(e,t)=>{var i=0;
1return t6().forEach(function(n,r){var o=t+i;for(r=k[e+4*r>>2]=o,o=0;o<n.length;++o)C[0|r++]=n.charCodeAt(o);C[0|r]=0,i+=n.length+1}),0},environ_sizes_get:(e,t)=>{var i=t6();k[e>>2]=i.length;var n=0;return i.forEach(function(e){n+=e.length+1}),k[t>>2]=n,0},fd_close:function(e){try{var t=ez(e);if(null===t.X)throw new eC(8);t.Ma&&(t.Ma=null);try{t.m.close&&t.m.close(t)}catch(e){throw e}finally{e_[t.X]=null}return t.X=null,0}catch(e){if(void 0===eZ||"ErrnoError"!==e.name)throw e;return e.aa}},fd_read:function(e,t,i,n){try{e:{var r=ez(e);e=t;for(var o,a=t=0;a<i;a++){var s=k[e>>2],l=k[e+4>>2];e+=8;var c=o,u=C;if(0>l||0>c)throw new eC(28);if(null===r.X||1==(2097155&r.flags))throw new eC(8);if(16384==(61440&r.node.mode))throw new eC(31);if(!r.m.read)throw new eC(28);var d=void 0!==c;if(d){if(!r.seekable)throw new eC(70)}else c=r.position;var h=r.m.read(r,u,s,l,c);if(d||(r.position+=h),0>h){var A=-1;break e}if(t+=h,h<l)break;void 0!==o&&(o+=h)}A=t}return k[n>>2]=A,0}catch(e){if(void 0===eZ||"ErrnoError"!==e.name)throw e;return e.aa}},fd_seek:function(e,t,i,n,r){t=i+2097152>>>0<4194305-!!t?(t>>>0)+0x100000000*i:NaN;try{if(isNaN(t))return 61;var o=ez(e);return eY(o,t,n),q=[o.position>>>0,(Z=o.position,1<=+Math.abs(Z)?0<Z?Math.floor(Z/0x100000000)>>>0:~~Math.ceil((Z-(~~Z>>>0))/0x100000000)>>>0:0)],Q[r>>2]=q[0],Q[r+4>>2]=q[1],o.Ma&&0===t&&0===n&&(o.Ma=null),0}catch(e){if(void 0===eZ||"ErrnoError"!==e.name)throw e;return e.aa}},fd_write:function(e,t,i,n){try{e:{var r=ez(e);e=t;for(var o,a=t=0;a<i;a++){var s=k[e>>2],l=k[e+4>>2];e+=8;var c=o,u=C;if(0>l||0>c)throw new eC(28);if(null===r.X||0==(2097155&r.flags))throw new eC(8);if(16384==(61440&r.node.mode))throw new eC(31);if(!r.m.write)throw new eC(28);r.seekable&&1024&r.flags&&eY(r,0,2);var d=void 0!==c;if(d){if(!r.seekable)throw new eC(70)}else c=r.position;var h=r.m.write(r,u,s,l,c,void 0);if(d||(r.position+=h),0>h){var A=-1;break e}t+=h,void 0!==o&&(o+=h)}A=t}return k[n>>2]=A,0}catch(e){if(void 0===eZ||"ErrnoError"!==e.name)throw e;return e.aa}},strftime_l:(e,t,i,n)=>((e,t,i,n)=>{function r(e,t,i){for(e="number"==typeof e?e.toString():e||"";e.length<t;)e=i[0]+e;return e}function o(e,t){return r(e,t,"0")}function a(e,t){var i;function n(e){return 0>e?-1:+(0<e)}return 0===(i=n(e.getFullYear()-t.getFullYear()))&&0===(i=n(e.getMonth()-t.getMonth()))&&(i=n(e.getDate()-t.getDate())),i}function s(e){switch(e.getDay()){case 0:return new Date(e.getFullYear()-1,11,29);case 1:return e;case 2:return new Date(e.getFullYear(),0,3);case 3:return new Date(e.getFullYear(),0,2);case 4:return new Date(e.getFullYear(),0,1);case 5:return new Date(e.getFullYear()-1,11,31);case 6:return new Date(e.getFullYear()-1,11,30)}}function l(e){var t=e.ca;for(e=new Date(new Date(e.da+1900,0,1).getTime());0<t;){var i=e.getMonth(),n=(t3(e.getFullYear())?t5:t9)[i];if(t>n-e.getDate())t-=n-e.getDate()+1,e.setDate(1),11>i?e.setMonth(i+1):(e.setMonth(0),e.setFullYear(e.getFullYear()+1));else{e.setDate(e.getDate()+t);break}}return i=new Date(e.getFullYear()+1,0,4),t=s(new Date(e.getFullYear(),0,4)),i=s(i),0>=a(t,e)?0>=a(i,e)?e.getFullYear()+1:e.getFullYear():e.getFullYear()-1}var c=Q[n+40>>2];for(var u in n={wc:Q[n>>2],vc:Q[n+4>>2],Fa:Q[n+8>>2],Sa:Q[n+12>>2],Ga:Q[n+16>>2],da:Q[n+20>>2],R:Q[n+24>>2],ca:Q[n+28>>2],Rc:Q[n+32>>2],uc:Q[n+36>>2],xc:c&&c?es(j,c):""},i=i?es(j,i):"",c={"%c":"%a %b %d %H:%M:%S %Y","%D":"%m/%d/%y","%F":"%Y-%m-%d","%h":"%b","%r":"%I:%M:%S %p","%R":"%H:%M","%T":"%H:%M:%S","%x":"%m/%d/%y","%X":"%H:%M:%S","%Ec":"%c","%EC":"%C","%Ex":"%m/%d/%y","%EX":"%H:%M:%S","%Ey":"%y","%EY":"%Y","%Od":"%d","%Oe":"%e","%OH":"%H","%OI":"%I","%Om":"%m","%OM":"%M","%OS":"%S","%Ou":"%u","%OU":"%U","%OV":"%V","%Ow":"%w","%OW":"%W","%Oy":"%y"})i=i.replace(RegExp(u,"g"),c[u]);var d="Sunday Monday Tuesday Wednesday Thursday Friday Saturday".split(" "),h="January February March April May June July August September October November December".split(" ");for(u in c={"%a":e=>d[e.R].substring(0,3),"%A":e=>d[e.R],"%b":e=>h[e.Ga].substring(0,3),"%B":e=>h[e.Ga],"%C":e=>o((e.da+1900)/100|0,2),"%d":e=>o(e.Sa,2),"%e":e=>r(e.Sa,2," "),"%g":e=>l(e).toString().substring(2),"%G":e=>l(e),"%H":e=>o(e.Fa,2),"%I":e=>(0==(e=e.Fa)?e=12:12<e&&(e-=12),o(e,2)),"%j":e=>{for(var t=0,i=0;i<=e.Ga-1;t+=(t3(e.da+1900)?t5:t9)[i++]);return o(e.Sa+t,3)},"%m":e=>o(e.Ga+1,2),"%M":e=>o(e.vc,2),"%n":()=>"\n","%p":e=>0<=e.Fa&&12>e.Fa?"AM":"PM","%S":e=>o(e.wc,2),"%t":()=>" ","%u":e=>e.R||7,"%U":e=>o(Math.floor((e.ca+7-e.R)/7),2),"%V":e=>{var t=Math.floor((e.ca+7-(e.R+6)%7)/7);if(2>=(e.R+371-e.ca-2)%7&&t++,t)53==t&&(4==(i=(e.R+371-e.ca)%7)||3==i&&t3(e.da)||(t=1));else{t=52;var i=(e.R+7-e.ca-1)%7;(4==i||5==i&&t3(e.da%400-1))&&t++}return o(t,2)},"%w":e=>e.R,"%W":e=>o(Math.floor((e.ca+7-(e.R+6)%7)/7),2),"%y":e=>(e.da+1900).toString().substring(2),"%Y":e=>e.da+1900,"%z":e=>{var t=0<=(e=e.uc);return(t?"+":"-")+String("0000"+((e=Math.abs(e)/60)/60*100+e%60)).slice(-4)},"%Z":e=>e.xc,"%%":()=>"%"},i=i.replace(/%%/g,"\0\0"),c)i.includes(u)&&(i=i.replace(RegExp(u,"g"),c[u](n)));return(u=ed(i=i.replace(/\0\0/g,"%"),!1)).length>t?0:(C.set(u,e),u.length-1)})(e,t,i,n)};!function(){function t(t){if(B=(R=t=t.exports).memory,P(),z=R.__indirect_function_table,M.unshift(R.__wasm_call_ctors),L--,e.monitorRunDependencies&&e.monitorRunDependencies(L),0==L&&(null!==K&&(clearInterval(K),K=null),W)){var i=W;W=null,i()}return t}var i,n,r={env:ir,wasi_snapshot_preview1:ir};if(L++,e.monitorRunDependencies&&e.monitorRunDependencies(L),e.instantiateWasm)try{return e.instantiateWasm(r,t)}catch(e){_("Module.instantiateWasm callback failed with error: "+e),p(e)}(i=function(e){t(e.instance)},n=G,E||"function"!=typeof WebAssembly.instantiateStreaming||N(n)||n.startsWith("file://")||"function"!=typeof fetch?J(n,r,i):fetch(n,{credentials:"same-origin"}).then(e=>WebAssembly.instantiateStreaming(e,r).then(i,function(e){return _("wasm streaming compile failed: "+e),_("falling back to ArrayBuffer instantiation"),J(n,r,i)}))).catch(p)}();var io=e=>(io=R.free)(e),ia=e=>(ia=R.malloc)(e),is=()=>(is=R.__errno_location)(),il=e._ma_device__on_notification_unlocked=t=>(il=e._ma_device__on_notification_unlocked=R.ma_device__on_notification_unlocked)(t);e._ma_malloc_emscripten=(t,i)=>(e._ma_malloc_emscripten=R.ma_malloc_emscripten)(t,i),e._ma_free_emscripten=(t,i)=>(e._ma_free_emscripten=R.ma_free_emscripten)(t,i);var ic=e._ma_device_process_pcm_frames_capture__webaudio=(t,i,n)=>(ic=e._ma_device_process_pcm_frames_capture__webaudio=R.ma_device_process_pcm_frames_capture__webaudio)(t,i,n),iu=e._ma_device_process_pcm_frames_playback__webaudio=(t,i,n)=>(iu=e._ma_device_process_pcm_frames_playback__webaudio=R.ma_device_process_pcm_frames_playback__webaudio)(t,i,n),id=e=>(id=R.__getTypeName)(e);function ih(){function t(){if(!h&&(h=!0,e.calledRun=!0,!D)){if(e.noFSInit||em||(em=!0,eJ(),e.stdin=e.stdin,e.stdout=e.stdout,e.stderr=e.stderr,e.stdin?eG("stdin",e.stdin):eV("/dev/tty","/dev/stdin"),e.stdout?eG("stdout",null,e.stdout):eV("/dev/tty","/dev/stdout"),e.stderr?eG("stderr",null,e.stderr):eV("/dev/tty1","/dev/stderr"),eH("/dev/stdin",0),eH("/dev/stdout",1),eH("/dev/stderr",1)),eR=!1,$(M),A(e),e.onRuntimeInitialized&&e.onRuntimeInitialized(),e.postRun)for("function"==typeof e.postRun&&(e.postRun=[e.postRun]);e.postRun.length;){var t=e.postRun.shift();U.unshift(t)}$(U)}}if(!(0<L)){if(e.preRun)for("function"==typeof e.preRun&&(e.preRun=[e.preRun]);e.preRun.length;)!function(){var t=e.preRun.shift();F.unshift(t)}();$(F),0<L||(e.setStatus?(e.setStatus("Running..."),setTimeout(function(){setTimeout(function(){e.setStatus("")},1),t()},1)):t())}}if(e.__embind_initialize_bindings=()=>(e.__embind_initialize_bindings=R._embind_initialize_bindings)(),e.dynCall_iiji=(t,i,n,r,o)=>(e.dynCall_iiji=R.dynCall_iiji)(t,i,n,r,o),e.dynCall_jiji=(t,i,n,r,o)=>(e.dynCall_jiji=R.dynCall_jiji)(t,i,n,r,o),e.dynCall_iiiji=(t,i,n,r,o,a)=>(e.dynCall_iiiji=R.dynCall_iiiji)(t,i,n,r,o,a),e.dynCall_iij=(t,i,n,r)=>(e.dynCall_iij=R.dynCall_iij)(t,i,n,r),e.dynCall_jii=(t,i,n)=>(e.dynCall_jii=R.dynCall_jii)(t,i,n),e.dynCall_viijii=(t,i,n,r,o,a,s)=>(e.dynCall_viijii=R.dynCall_viijii)(t,i,n,r,o,a,s),e.dynCall_iiiiij=(t,i,n,r,o,a,s)=>(e.dynCall_iiiiij=R.dynCall_iiiiij)(t,i,n,r,o,a,s),e.dynCall_iiiiijj=(t,i,n,r,o,a,s,l,c)=>(e.dynCall_iiiiijj=R.dynCall_iiiiijj)(t,i,n,r,o,a,s,l,c),e.dynCall_iiiiiijj=(t,i,n,r,o,a,s,l,c,u)=>(e.dynCall_iiiiiijj=R.dynCall_iiiiiijj)(t,i,n,r,o,a,s,l,c,u),W=function e(){h||ih(),h||(W=e)},e.preInit)for("function"==typeof e.preInit&&(e.preInit=[e.preInit]);0<e.preInit.length;)e.preInit.pop()();return ih(),e.ready})},e=>{e.exports=JSON.parse('{"name":"@rive-app/canvas","version":"2.29.3","description":"Rive\'s canvas based web api.","main":"rive.js","homepage":"https://rive.app","repository":{"type":"git","url":"https://github.com/rive-app/rive-wasm/tree/master/js"},"keywords":["rive","animation"],"author":"Rive","contributors":["Luigi Rosso <[email protected]> (https://rive.app)","Maxwell Talbot <[email protected]> (https://rive.app)","Arthur Vivian <[email protected]> (https://rive.app)","Umberto Sonnino <[email protected]> (https://rive.app)","Matthew Sullivan <[email protected]> (mailto:[email protected])"],"license":"MIT","files":["rive.js","rive.js.map","rive.wasm","rive_fallback.wasm","rive.d.ts","rive_advanced.mjs.d.ts"],"typings":"rive.d.ts","dependencies":{},"browser":{"fs":false,"path":false}}')},(e,t,i)=>{i.r(t),i.d(t,{Animation:()=>n.Animation});var n=i(4)},(e,t,i)=>{i.r(t),i.d(t,{Animation:()=>n});var n=function(){function e(e,t,i,n){this.animation=e,this.artboard=t,this.playing=n,this.loopCount=0,this.scrubTo=null,this.instance=new i.LinearAnimationInstance(e,t)}return Object.defineProperty(e.prototype,"name",{get:function(){return this.animation.name}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"time",{get:function(){return this.instance.time},set:function(e){this.instance.time=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"loopValue",{get:function(){return this.animation.loopValue},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"needsScrub",{get:function(){return null!==this.scrubTo},enumerable:!1,configurable:!0}),e.prototype.advance=function(e){null===this.scrubTo?this.instance.advance(e):(this.instance.time=0,this.instance.advance(this.scrubTo),this.scrubTo=null)},e.prototype.apply=function(e){this.instance.apply(e)},e.prototype.cleanup=function(){this.instance.delete()},e}()},(e,t,i)=>{i.r(t),i.d(t,{AudioAssetWrapper:()=>o.AudioAssetWrapper,AudioWrapper:()=>o.AudioWrapper,BLANK_URL:()=>r.BLANK_URL,CustomFileAssetLoaderWrapper:()=>o.CustomFileAssetLoaderWrapper,FileAssetWrapper:()=>o.FileAssetWrapper,Finalizable:()=>o.Finalizable,FontAssetWrapper:()=>o.FontAssetWrapper,FontWrapper:()=>o.FontWrapper,ImageAssetWrapper:()=>o.ImageAssetWrapper,ImageWrapper:()=>o.ImageWrapper,finalizationRegistry:()=>o.finalizationRegistry,registerTouchInteractions:()=>n.registerTouchInteractions,sanitizeUrl:()=>r.sanitizeUrl});var n=i(6),r=i(7),o=i(8)},(e,t,i)=>{i.r(t),i.d(t,{registerTouchInteractions:()=>o});var n=void 0,r=function(e,t){var i,n;return["touchstart","touchmove"].indexOf(e.type)>-1&&(null==(i=e.touches)?void 0:i.length)?(t||e.preventDefault(),{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}):"touchend"===e.type&&(null==(n=e.changedTouches)?void 0:n.length)?{clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY}:{clientX:e.clientX,clientY:e.clientY}},o=function(e){var t=e.canvas,i=e.artboard,o=e.stateMachines,a=void 0===o?[]:o,s=e.renderer,l=e.rive,c=e.fit,u=e.alignment,d=e.isTouchScrollEnabled,h=void 0!==d&&d,A=e.layoutScaleFactor,p=void 0===A?1:A;if(!t||!a.length||!s||!l||!i||"u"<typeof window)return null;var g=null,m=!1,f=(function(e){if(m&&e instanceof MouseEvent){"mouseup"==e.type&&(m=!1);return}m=h&&"touchend"===e.type&&"touchstart"===g,g=e.type;var t=e.currentTarget.getBoundingClientRect(),n=r(e,h),o=n.clientX,s=n.clientY;if(o||s){var d=o-t.left,A=s-t.top,f=l.computeAlignment(c,u,{minX:0,minY:0,maxX:t.width,maxY:t.height},i.bounds,p),x=new l.Mat2D;f.invert(x);var y=new l.Vec2D(d,A),b=l.mapXY(x,y),v=b.x(),w=b.y();switch(b.delete(),x.delete(),y.delete(),f.delete(),e.type){case"mouseout":for(var _=0;_<a.length;_++){var E=a[_];E.pointerMove(v,w)}break;case"touchmove":case"mouseover":case"mousemove":for(var B=0;B<a.length;B++){var E=a[B];E.pointerMove(v,w)}break;case"touchstart":case"mousedown":for(var R=0;R<a.length;R++){var E=a[R];E.pointerDown(v,w)}break;case"touchend":case"mouseup":for(var C=0;C<a.length;C++){var E=a[C];E.pointerUp(v,w)}}}}).bind(n);return t.addEventListener("mouseover",f),t.addEventListener("mouseout",f),t.addEventListener("mousemove",f),t.addEventListener("mousedown",f),t.addEventListener("mouseup",f),t.addEventListener("touchmove",f,{passive:h}),t.addEventListener("touchstart",f,{passive:h}),t.addEventListener("touchend",f),function(){t.removeEventListener("mouseover",f),t.removeEventListener("mouseout",f),t.removeEventListener("mousemove",f),t.removeEventListener("mousedown",f),t.removeEventListener("mouseup",f),t.removeEventListener("touchmove",f),t.removeEventListener("touchstart",f),t.removeEventListener("touchend",f)}}},(e,t,i)=>{i.r(t),i.d(t,{BLANK_URL:()=>c,sanitizeUrl:()=>u});var n=/^([^\w]*)(javascript|data|vbscript)/im,r=/&#(\w+)(^\w|;)?/g,o=/&(newline|tab);/gi,a=/[\u0000-\u001F\u007F-\u009F\u2000-\u200D\uFEFF]/gim,s=/^.+(:|:)/gim,l=[".","/"],c="about:blank";function u(e){if(!e)return c;var t=e.replace(a,"").replace(r,function(e,t){return String.fromCharCode(t)}).replace(o,"").replace(a,"").trim();if(!t)return c;if(l.indexOf(t[0])>-1)return t;var i=t.match(s);if(!i)return t;var u=i[0];return n.test(u)?c:t}},(e,t,i)=>{i.r(t),i.d(t,{AudioAssetWrapper:()=>h,AudioWrapper:()=>s,CustomFileAssetLoaderWrapper:()=>c,FileAssetWrapper:()=>u,Finalizable:()=>o,FontAssetWrapper:()=>A,FontWrapper:()=>l,ImageAssetWrapper:()=>d,ImageWrapper:()=>a,finalizationRegistry:()=>g});
1var n,r=(n=function(e,t){return(n=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)}),o=function(){this.selfUnref=!1},a=function(e){function t(t){var i=e.call(this)||this;return i._nativeImage=t,i}return r(t,e),Object.defineProperty(t.prototype,"nativeImage",{get:function(){return this._nativeImage},enumerable:!1,configurable:!0}),t.prototype.unref=function(){this.selfUnref&&this._nativeImage.unref()},t}(o),s=function(e){function t(t){var i=e.call(this)||this;return i._nativeAudio=t,i}return r(t,e),Object.defineProperty(t.prototype,"nativeAudio",{get:function(){return this._nativeAudio},enumerable:!1,configurable:!0}),t.prototype.unref=function(){this.selfUnref&&this._nativeAudio.unref()},t}(o),l=function(e){function t(t){var i=e.call(this)||this;return i._nativeFont=t,i}return r(t,e),Object.defineProperty(t.prototype,"nativeFont",{get:function(){return this._nativeFont},enumerable:!1,configurable:!0}),t.prototype.unref=function(){this.selfUnref&&this._nativeFont.unref()},t}(o),c=function(){function e(e,t){this._assetLoaderCallback=t,this.assetLoader=new e.CustomFileAssetLoader({loadContents:this.loadContents.bind(this)})}return e.prototype.loadContents=function(e,t){var i;return e.isImage?i=new d(e):e.isAudio?i=new h(e):e.isFont&&(i=new A(e)),this._assetLoaderCallback(i,t)},e}(),u=function(){function e(e){this._nativeFileAsset=e}return e.prototype.decode=function(e){this._nativeFileAsset.decode(e)},Object.defineProperty(e.prototype,"name",{get:function(){return this._nativeFileAsset.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"fileExtension",{get:function(){return this._nativeFileAsset.fileExtension},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"uniqueFilename",{get:function(){return this._nativeFileAsset.uniqueFilename},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isAudio",{get:function(){return this._nativeFileAsset.isAudio},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isImage",{get:function(){return this._nativeFileAsset.isImage},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isFont",{get:function(){return this._nativeFileAsset.isFont},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"cdnUuid",{get:function(){return this._nativeFileAsset.cdnUuid},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nativeFileAsset",{get:function(){return this._nativeFileAsset},enumerable:!1,configurable:!0}),e}(),d=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setRenderImage=function(e){this._nativeFileAsset.setRenderImage(e.nativeImage)},t}(u),h=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setAudioSource=function(e){this._nativeFileAsset.setAudioSource(e.nativeAudio)},t}(u),A=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.prototype.setFont=function(e){this._nativeFileAsset.setFont(e.nativeFont)},t}(u),p=function(e){function t(t){return e.call(this,t)||this}return r(t,e),t.prototype.register=function(e){e.selfUnref=!0},t.prototype.unregister=function(e){},t}(FinalizationRegistry),g=new(FinalizationRegistry||p)(function(e){e.unref()})}],eo={};function ea(e){var t=eo[e];if(void 0!==t)return t.exports;var i=eo[e]={exports:{}};return er[e](i,i.exports,ea),i.exports}ea.d=(e,t)=>{for(var i in t)ea.o(t,i)&&!ea.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},ea.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),ea.r=e=>{"u">typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var es={};return ea.r(es),ea.d(es,{Alignment:()=>t,DataEnum:()=>U,EventType:()=>r,Fit:()=>e,Layout:()=>v,LoopType:()=>o,Rive:()=>F,RiveEventType:()=>n,RiveFile:()=>z,RuntimeLoader:()=>w,StateMachineInput:()=>E,StateMachineInputType:()=>i,Testing:()=>ee,ViewModel:()=>M,ViewModelInstance:()=>K,ViewModelInstanceAssetImage:()=>q,ViewModelInstanceBoolean:()=>H,ViewModelInstanceColor:()=>Z,ViewModelInstanceEnum:()=>J,ViewModelInstanceList:()=>G,ViewModelInstanceNumber:()=>N,ViewModelInstanceString:()=>V,ViewModelInstanceTrigger:()=>Y,ViewModelInstanceValue:()=>W,decodeAudio:()=>et,decodeFont:()=>en,decodeImage:()=>ei}
1),l=ea(1),c=ea(2),u=ea(3),d=ea(5),h=function(e,t){return(h=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])})(e,t)},A=function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Class extends value "+String(t)+" is not a constructor or null");function i(){this.constructor=e}h(e,t),e.prototype=null===t?Object.create(t):(i.prototype=t.prototype,new i)},p=function(){return(p=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)},g=function(e,t,i,n){return new(i||(i=Promise))(function(r,o){function a(e){try{l(n.next(e))}catch(e){o(e)}}function s(e){try{l(n.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?r(e.value):((t=e.value)instanceof i?t:new i(function(e){e(t)})).then(a,s)}l((n=n.apply(e,t||[])).next())})},m=function(e,t){var i,n,r,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]},a=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return a.next=s(0),a.throw=s(1),a.return=s(2),"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){var c=[s,l];if(i)throw TypeError("Generator is already executing.");for(;a&&(a=0,c[0]&&(o=0)),o;)try{if(i=1,n&&(r=2&c[0]?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[2&c[0],r.value]),c[0]){case 0:case 1:r=c;break;case 4:return o.label++,{value:c[1],done:!1};case 5:o.label++,n=c[1],c=[0];continue;case 7:c=o.ops.pop(),o.trys.pop();continue;default:if(!(r=(r=o.trys).length>0&&r[r.length-1])&&(6===c[0]||2===c[0])){o=0;continue}if(3===c[0]&&(!r||c[1]>r[0]&&c[1]<r[3])){o.label=c[1];break}if(6===c[0]&&o.label<r[1]){o.label=r[1],r=c;break}if(r&&o.label<r[2]){o.label=r[2],o.ops.push(c);break}r[2]&&o.ops.pop(),o.trys.pop();continue}c=t.call(e,o)}catch(e){c=[6,e],n=0}finally{i=r=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}},f=function(e,t,i){if(i||2==arguments.length)for(var n,r=0,o=t.length;r<o;r++)!n&&r in t||(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))},x=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isHandledError=!0,t}return A(t,e),t}(Error),(y=e||(e={})).Cover="cover",y.Contain="contain",y.Fill="fill",y.FitWidth="fitWidth",y.FitHeight="fitHeight",y.None="none",y.ScaleDown="scaleDown",y.Layout="layout",(b=t||(t={})).Center="center",b.TopLeft="topLeft",b.TopCenter="topCenter",b.TopRight="topRight",b.CenterLeft="centerLeft",b.CenterRight="centerRight",b.BottomLeft="bottomLeft",b.BottomCenter="bottomCenter",b.BottomRight="bottomRight",v=function(){function i(i){var n,r,o,a,s,l,c;this.fit=null!=(n=null==i?void 0:i.fit)?n:e.Contain,this.alignment=null!=(r=null==i?void 0:i.alignment)?r:t.Center,this.layoutScaleFactor=null!=(o=null==i?void 0:i.layoutScaleFactor)?o:1,this.minX=null!=(a=null==i?void 0:i.minX)?a:0,this.minY=null!=(s=null==i?void 0:i.minY)?s:0,this.maxX=null!=(l=null==i?void 0:i.maxX)?l:0,this.maxY=null!=(c=null==i?void 0:i.maxY)?c:0}return i.new=function(e){var t=e.fit,n=e.alignment,r=e.minX,o=e.minY,a=e.maxX,s=e.maxY;return console.warn("This function is deprecated: please use `new Layout({})` instead"),new i({fit:t,alignment:n,minX:r,minY:o,maxX:a,maxY:s})},i.prototype.copyWith=function(e){var t=e.fit,n=e.alignment,r=e.layoutScaleFactor,o=e.minX,a=e.minY,s=e.maxX,l=e.maxY;return new i({fit:null!=t?t:this.fit,alignment:null!=n?n:this.alignment,layoutScaleFactor:null!=r?r:this.layoutScaleFactor,minX:null!=o?o:this.minX,minY:null!=a?a:this.minY,maxX:null!=s?s:this.maxX,maxY:null!=l?l:this.maxY})},i.prototype.runtimeFit=function(t){var i;return this.cachedRuntimeFit?this.cachedRuntimeFit:(i=this.fit===e.Cover?t.Fit.cover:this.fit===e.Contain?t.Fit.contain:this.fit===e.Fill?t.Fit.fill:this.fit===e.FitWidth?t.Fit.fitWidth:this.fit===e.FitHeight?t.Fit.fitHeight:this.fit===e.ScaleDown?t.Fit.scaleDown:this.fit===e.Layout?t.Fit.layout:t.Fit.none,this.cachedRuntimeFit=i,i)},i.prototype.runtimeAlignment=function(e){var i;return this.cachedRuntimeAlignment?this.cachedRuntimeAlignment:(i=this.alignment===t.TopLeft?e.Alignment.topLeft:this.alignment===t.TopCenter?e.Alignment.topCenter:this.alignment===t.TopRight?e.Alignment.topRight:this.alignment===t.CenterLeft?e.Alignment.centerLeft:this.alignment===t.CenterRight?e.Alignment.centerRight:this.alignment===t.BottomLeft?e.Alignment.bottomLeft:this.alignment===t.BottomCenter?e.Alignment.bottomCenter:this.alignment===t.BottomRight?e.Alignment.bottomRight:e.Alignment.center,this.cachedRuntimeAlignment=i,i)},i}(),w=function(){function e(){}return e.loadRuntime=function(){l.default({locateFile:function(){return e.wasmURL}
1}).then(function(t){var i;for(e.runtime=t;e.callBackQueue.length>0;)null==(i=e.callBackQueue.shift())||i(e.runtime)}).catch(function(t){var i={message:(null==t?void 0:t.message)||"Unknown error",type:(null==t?void 0:t.name)||"Error",wasmError:t instanceof WebAssembly.CompileError||t instanceof WebAssembly.RuntimeError,originalError:t};console.debug("Rive WASM load error details:",i);var n="https://cdn.jsdelivr.net/npm/".concat(c.name,"@").concat(c.version,"/rive_fallback.wasm");e.wasmURL.toLowerCase()!==n?(console.warn("Failed to load WASM from ".concat(e.wasmURL," (").concat(i.message,"), trying jsdelivr as a backup")),e.setWasmUrl(n),e.loadRuntime()):console.error(["Could not load Rive WASM file from ".concat(e.wasmURL," or ").concat(n,"."),"Possible reasons:\n- Network connection is down\n- WebAssembly is not supported in this environment\n- The WASM file is corrupted or incompatible\n\nError details:","- Type: ".concat(i.type),"- Message: ".concat(i.message),"- WebAssembly-specific error: ".concat(i.wasmError),"\nTo resolve, you may need to:\n1. Check your network connection\n2. Set a new WASM source via RuntimeLoader.setWasmUrl()\n3. Call RuntimeLoader.loadRuntime() again"].join("\n"))})},e.getInstance=function(t){e.isLoading||(e.isLoading=!0,e.loadRuntime()),e.runtime?t(e.runtime):e.callBackQueue.push(t)},e.awaitInstance=function(){return new Promise(function(t){return e.getInstance(function(e){return t(e)})})},e.setWasmUrl=function(t){e.wasmURL=t},e.getWasmUrl=function(){return e.wasmURL},e.isLoading=!1,e.callBackQueue=[],e.wasmURL="https://unpkg.com/".concat(c.name,"@").concat(c.version,"/rive.wasm"),e}(),(_=i||(i={}))[_.Number=56]="Number",_[_.Trigger=58]="Trigger",_[_.Boolean=59]="Boolean",E=function(){function e(e,t){this.type=e,this.runtimeInput=t}return Object.defineProperty(e.prototype,"name",{get:function(){return this.runtimeInput.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this.runtimeInput.value},set:function(e){this.runtimeInput.value=e},enumerable:!1,configurable:!0}),e.prototype.fire=function(){this.type===i.Trigger&&this.runtimeInput.fire()},e.prototype.delete=function(){this.runtimeInput=null},e}(),(B=n||(n={}))[B.General=128]="General",B[B.OpenUrl=131]="OpenUrl",R=function(){function e(e,t,i,n){this.stateMachine=e,this.playing=i,this.artboard=n,this.inputs=[],this.instance=new t.StateMachineInstance(e,n),this.initInputs(t)}return Object.defineProperty(e.prototype,"name",{get:function(){return this.stateMachine.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"statesChanged",{get:function(){for(var e=[],t=0;t<this.instance.stateChangedCount();t++)e.push(this.instance.stateChangedNameByIndex(t));return e},enumerable:!1,configurable:!0}),e.prototype.advance=function(e){this.instance.advance(e)},e.prototype.advanceAndApply=function(e){this.instance.advanceAndApply(e)},e.prototype.reportedEventCount=function(){return this.instance.reportedEventCount()},e.prototype.reportedEventAt=function(e){return this.instance.reportedEventAt(e)},e.prototype.initInputs=function(e){for(var t=0;t<this.instance.inputCount();t++){var i=this.instance.input(t);this.inputs.push(this.mapRuntimeInput(i,e))}},e.prototype.mapRuntimeInput=function(e,t){return e.type===t.SMIInput.bool?new E(i.Boolean,e.asBool()):e.type===t.SMIInput.number?new E(i.Number,e.asNumber()):e.type===t.SMIInput.trigger?new E(i.Trigger,e.asTrigger()):void 0},e.prototype.cleanup=function(){this.inputs.forEach(function(e){e.delete()}),this.inputs.length=0,this.instance.delete()},e.prototype.bindViewModelInstance=function(e){null!=e.runtimeInstance&&this.instance.bindViewModelInstance(e.runtimeInstance)},e}(),C=function(){function e(e,t,i,n,r){void 0===n&&(n=[]),void 0===r&&(r=[]),this.runtime=e,this.artboard=t,this.eventManager=i,this.animations=n,this.stateMachines=r}return e.prototype.add=function(e,t,i){if(void 0===i&&(i=!0),0===(e=$(e)).length)this.animations.forEach(function(e){return e.playing=t}),this.stateMachines.forEach(function(e){return e.playing=t});else for(var n=this.animations.map(function(e){return e.name}),o=this.stateMachines.map(function(e){return e.name}),a=0;a<e.length;a++){var s=n.indexOf(e[a]),l=o.indexOf(e[a]);if(s>=0||l>=0)s>=0?this.animations[s].playing=t:this.stateMachines[l].playing=t;else{var c=this.artboard.animationByName(e[a]);if(c){var d=new u.Animation(c,this.artboard,this.runtime,t);d.advance(0),d.apply(1),this.animations.push(d)}else{var h=this.artboard.stateMachineByName(e[a]);if(h){var A=new R(h,this.runtime,t,this.artboard);this.stateMachines.push(A)}}}}return i&&(t?this.eventManager.fire({type:r.Play,data:this.playing}):this.eventManager.fire({type:r.Pause,data:this.paused})),t?this.playing:this.paused},e.prototype.initLinearAnimations=function(e,t){for(var i=this.animations.map(function(e){return e.name}),n=0;n<e.length;n++){var r=i.indexOf(e[n]);if(r>=0)this.animations[r].playing=t;else{var o=this.artboard.animationByName(e[n]);if(o){var a=new u.Animation(o,this.artboard,this.runtime,t);a.advance(0),a.apply(1),this.animations.push(a)}else console.error("Animation with name ".concat(e[n]," not found."))}}},e.prototype.initStateMachines=function(e,t){for(var i=this.stateMachines.map(function(e){return e.name}),n=0;n<e.length;n++){var r=i.indexOf(e[n]);if(r>=0)this.stateMachines[r].playing=t;else{var o=this.artboard.stateMachineByName(e[n]);if(o){var a=new R(o,this.runtime,t,this.artboard);this.stateMachines.push(a),t||a.advanceAndApply(0)}else console.warn("State Machine with name ".concat(e[n]," not found.")),this.initLinearAnimations([e[n]],t)}}},e.prototype.play=function(e){return this.add(e,!0)},e.prototype.pause=function(e){return this.add(e,!1)},e.prototype.scrub=function(e,t){var i=this.animations.filter(function(t){return e.includes(t.name)});
1return i.forEach(function(e){return e.scrubTo=t}),i.map(function(e){return e.name})},Object.defineProperty(e.prototype,"playing",{get:function(){return this.animations.filter(function(e){return e.playing}).map(function(e){return e.name}).concat(this.stateMachines.filter(function(e){return e.playing}).map(function(e){return e.name}))},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"paused",{get:function(){return this.animations.filter(function(e){return!e.playing}).map(function(e){return e.name}).concat(this.stateMachines.filter(function(e){return!e.playing}).map(function(e){return e.name}))},enumerable:!1,configurable:!0}),e.prototype.stop=function(e){var t=this;e=$(e);var i=[];if(0===e.length)i=this.animations.map(function(e){return e.name}).concat(this.stateMachines.map(function(e){return e.name})),this.animations.forEach(function(e){return e.cleanup()}),this.stateMachines.forEach(function(e){return e.cleanup()}),this.animations.splice(0,this.animations.length),this.stateMachines.splice(0,this.stateMachines.length);else{var n=this.animations.filter(function(t){return e.includes(t.name)});n.forEach(function(e){e.cleanup(),t.animations.splice(t.animations.indexOf(e),1)});var o=this.stateMachines.filter(function(t){return e.includes(t.name)});o.forEach(function(e){e.cleanup(),t.stateMachines.splice(t.stateMachines.indexOf(e),1)}),i=n.map(function(e){return e.name}).concat(o.map(function(e){return e.name}))}return this.eventManager.fire({type:r.Stop,data:i}),i},Object.defineProperty(e.prototype,"isPlaying",{get:function(){return this.animations.reduce(function(e,t){return e||t.playing},!1)||this.stateMachines.reduce(function(e,t){return e||t.playing},!1)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isPaused",{get:function(){return!this.isPlaying&&(this.animations.length>0||this.stateMachines.length>0)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"isStopped",{get:function(){return 0===this.animations.length&&0===this.stateMachines.length},enumerable:!1,configurable:!0}),e.prototype.atLeastOne=function(e,t){var i;return void 0===t&&(t=!0),0===this.animations.length&&0===this.stateMachines.length&&(this.artboard.animationCount()>0?this.add([i=this.artboard.animationByIndex(0).name],e,t):this.artboard.stateMachineCount()>0&&this.add([i=this.artboard.stateMachineByIndex(0).name],e,t)),i},e.prototype.handleLooping=function(){for(var e=0,t=this.animations.filter(function(e){return e.playing});e<t.length;e++){var i=t[e];0===i.loopValue&&i.loopCount?(i.loopCount=0,this.stop(i.name)):1===i.loopValue&&i.loopCount?(this.eventManager.fire({type:r.Loop,data:{animation:i.name,type:o.Loop}}),i.loopCount=0):2===i.loopValue&&i.loopCount>1&&(this.eventManager.fire({type:r.Loop,data:{animation:i.name,type:o.PingPong}}),i.loopCount=0)}},e.prototype.handleStateChanges=function(){for(var e=[],t=0,i=this.stateMachines.filter(function(e){return e.playing});t<i.length;t++){var n=i[t];e.push.apply(e,n.statesChanged)}e.length>0&&this.eventManager.fire({type:r.StateChange,data:e})},e.prototype.handleAdvancing=function(e){this.eventManager.fire({type:r.Advance,data:e})},e}(),(j=r||(r={})).Load="load",j.LoadError="loaderror",j.Play="play",j.Pause="pause",j.Stop="stop",j.Loop="loop",j.Draw="draw",j.Advance="advance",j.StateChange="statechange",j.RiveEvent="riveevent",j.AudioStatusChange="audiostatuschange",(O=o||(o={})).OneShot="oneshot",O.Loop="loop",O.PingPong="pingpong",I=function(){function e(e){void 0===e&&(e=[]),this.listeners=e}return e.prototype.getListeners=function(e){return this.listeners.filter(function(t){return t.type===e})},e.prototype.add=function(e){this.listeners.includes(e)||this.listeners.push(e)},e.prototype.remove=function(e){for(var t=0;t<this.listeners.length;t++){var i=this.listeners[t];if(i.type===e.type&&i.callback===e.callback){this.listeners.splice(t,1);break}}},e.prototype.removeAll=function(e){var t=this;e?this.listeners.filter(function(t){return t.type===e}).forEach(function(e){return t.remove(e)}):this.listeners.splice(0,this.listeners.length)},e.prototype.fire=function(e){this.getListeners(e.type).forEach(function(t){return t.callback(e)})},e}(),Q=function(){function e(e){this.eventManager=e,this.queue=[]}return e.prototype.add=function(e){this.queue.push(e)},e.prototype.process=function(){for(;this.queue.length>0;){var e=this.queue.shift();(null==e?void 0:e.action)&&e.action(),(null==e?void 0:e.event)&&this.eventManager.fire(e.event)}},e}(),(k=a||(a={}))[k.AVAILABLE=0]="AVAILABLE",k[k.UNAVAILABLE=1]="UNAVAILABLE",S=new(function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._started=!1,t._enabled=!1,t._status=a.UNAVAILABLE,t}return A(t,e),t.prototype.delay=function(e){return g(this,void 0,void 0,function(){return m(this,function(t){return[2,new Promise(function(t){return setTimeout(t,e)})]})})},t.prototype.timeout=function(){return g(this,void 0,void 0,function(){return m(this,function(e){return[2,new Promise(function(e,t){return setTimeout(t,50)})]})})},t.prototype.reportToListeners=function(){this.fire({type:r.AudioStatusChange}),this.removeAll()},t.prototype.enableAudio=function(){return g(this,void 0,void 0,function(){return m(this,function(e){return this._enabled||(this._enabled=!0,this._status=a.AVAILABLE,this.reportToListeners()),[2]})})},t.prototype.testAudio=function(){return g(this,void 0,void 0,function(){return m(this,function(e){switch(e.label){case 0:if(this._status!==a.UNAVAILABLE||null===this._audioContext)return[3,4];e.label=1;case 1:return e.trys.push([1,3,,4]),[4,Promise.race([this._audioContext.resume(),this.timeout()])];case 2:return e.sent(),this.enableAudio(),[3,4];case 3:return e.sent(),[3,4];case 4:return[2]}})})},t.prototype._establishAudio=function(){return g(this,void 0,void 0,function(){return m(this,function(e){switch(e.label){case 0:if(this._started)return[3,5];if(this._started=!0,"u">typeof window)return[3,1];return this.enableAudio(),[3,5];case 1:this._audioContext=new AudioContext,this.listenForUserAction(),e.label=2;case 2:if(this._status!==a.UNAVAILABLE)return[3,5];return[4,this.testAudio()];case 3:return e.sent(),[4,this.delay(1e3)];case 4:return e.sent(),[3,2];case 5:return[2]}})})},t.prototype.listenForUserAction=function(){var e=this;document.addEventListener("pointerdown",function(){return g(e,void 0,void 0,function(){return m(this,function(e){return this.enableAudio(),[2]})})},{once:!0})},t.prototype.establishAudio=function(){return g(this,void 0,void 0,function(){return m(this,function(e){return this._establishAudio(),[2]})})},Object.defineProperty(t.prototype,"systemVolume",{get:function(){return this._status===a.UNAVAILABLE?(this.testAudio(),0):1}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!1,configurable:!0}),t}(I)),T=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),D=globalThis.ResizeObserver||T,P=new(function(){function e(){var e=this;this._elementsMap=new Map,this._onObservedEntry=function(t){var i=e._elementsMap.get(t.target);null!==i?i.onResize(0==t.target.clientWidth||0==t.target.clientHeight):e._resizeObserver.unobserve(t.target)},this._onObserved=function(t){t.forEach(e._onObservedEntry)},this._resizeObserver=new D(this._onObserved)}return e.prototype.add=function(e,t){var i={onResize:t,element:e};return this._elementsMap.set(e,i),this._resizeObserver.observe(e),i},e.prototype.remove=function(e){this._resizeObserver.unobserve(e.element),this._elementsMap.delete(e.element)},e}()),z=function(){function e(e){this.enableRiveAssetCDN=!0,this.referenceCount=0,this.destroyed=!1,this.src=e.src,this.buffer=e.buffer,e.assetLoader&&(this.assetLoader=e.assetLoader),this.enableRiveAssetCDN="boolean"!=typeof e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.eventManager=new I,e.onLoad&&this.on(r.Load,e.onLoad),e.onLoadError&&this.on(r.LoadError,e.onLoadError)}return e.prototype.initData=function(){return g(this,void 0,void 0,function(){var t,i,n,o;return m(this,function(a){switch(a.label){case 0:if(!this.src)return[3,2];return t=this,[4,X(this.src)];case 1:t.buffer=a.sent(),a.label=2;case 2:if(this.destroyed)return[2];return this.assetLoader&&(i=new d.CustomFileAssetLoaderWrapper(this.runtime,this.assetLoader).assetLoader),n=this,[4,this.runtime.load(new Uint8Array(this.buffer),i,this.enableRiveAssetCDN)];case 3:if(n.file=a.sent(),this.destroyed)return null==(o=this.file)||o.delete(),this.file=null,[2];return null!==this.file?this.eventManager.fire({type:r.Load,data:this}):this.fireLoadError(e.fileLoadErrorMessage),[2]}})})},e.prototype.init=function(){return g(this,void 0,void 0,function(){var t,i;return m(this,function(n){switch(n.label){case 0:if(!this.src&&!this.buffer)return this.fireLoadError(e.missingErrorMessage),[2];n.label=1;case 1:return n.trys.push([1,4,,5]),t=this,[4,w.awaitInstance()];case 2:if(t.runtime=n.sent(),this.destroyed)return[2];return[4,this.initData()];case 3:return n.sent(),[3,5];case 4:return i=n.sent(),this.fireLoadError(i instanceof Error?i.message:e.fileLoadErrorMessage),[3,5];case 5:return[2]}})})},e.prototype.fireLoadError=function(e){throw this.eventManager.fire({type:r.LoadError,data:e}),Error(e)},e.prototype.on=function(e,t){this.eventManager.add({type:e,callback:t})},e.prototype.off=function(e,t){this.eventManager.remove({type:e,callback:t})},e.prototype.cleanup=function(){var e;this.referenceCount-=1,this.referenceCount<=0&&(this.removeAllRiveEventListeners(),null==(e=this.file)||e.delete(),this.file=null,this.destroyed=!0)},e.prototype.removeAllRiveEventListeners=function(e){this.eventManager.removeAll(e)},e.prototype.getInstance=function(){if(null!==this.file)return this.referenceCount+=1,this.file},e.missingErrorMessage="Rive source file or data buffer required",e.fileLoadErrorMessage="The file failed to load",e}(),F=function(){function t(e){var t,i=this;this.loaded=!1,this.destroyed=!1,this._observed=null,this.readyForPlaying=!1,this.artboard=null,this.eventCleanup=null,this.shouldDisableRiveListeners=!1,this.automaticallyHandleEvents=!1,this.enableRiveAssetCDN=!0,this._volume=1,this._artboardWidth=void 0,this._artboardHeight=void 0,this._devicePixelRatioUsed=1,this._hasZeroSize=!1,this._audioEventListener=null,this._boundDraw=null,this._viewModelInstance=null,this._dataEnums=null,this.durations=[],this.frameTimes=[],this.frameCount=0,this.isTouchScrollEnabled=!1,this.onCanvasResize=function(e){var t=i._hasZeroSize!==e;i._hasZeroSize=e,e?i._layout.maxX&&i._layout.maxY||i.resizeToCanvas():t&&i.resizeDrawingSurfaceToCanvas()},this.renderSecondTimer=0,this._boundDraw=this.draw.bind(this),this.canvas=e.canvas,e.canvas.constructor===HTMLCanvasElement&&(this._observed=P.add(this.canvas,this.onCanvasResize)),this.src=e.src,this.buffer=e.buffer,this.riveFile=e.riveFile,this.layout=null!=(t=e.layout)?t:new v,this.shouldDisableRiveListeners=!!e.shouldDisableRiveListeners,this.isTouchScrollEnabled=!!e.isTouchScrollEnabled,this.automaticallyHandleEvents=!!e.automaticallyHandleEvents,this.enableRiveAssetCDN=void 0===e.enableRiveAssetCDN||e.enableRiveAssetCDN,this.eventManager=new I,e.onLoad&&this.on(r.Load,e.onLoad),e.onLoadError&&this.on(r.LoadError,e.onLoadError),e.onPlay&&this.on(r.Play,e.onPlay),e.onPause&&this.on(r.Pause,e.onPause),e.onStop&&this.on(r.Stop,e.onStop),e.onLoop&&this.on(r.Loop,e.onLoop),e.onStateChange&&this.on(r.StateChange,e.onStateChange),e.onAdvance&&this.on(r.Advance,e.onAdvance),e.onload&&!e.onLoad&&this.on(r.Load,e.onload),e.onloaderror&&!e.onLoadError&&this.on(r.LoadError,e.onloaderror),e.onplay&&!e.onPlay&&this.on(r.Play,e.onplay),e.on
1pause&&!e.onPause&&this.on(r.Pause,e.onpause),e.onstop&&!e.onStop&&this.on(r.Stop,e.onstop),e.onloop&&!e.onLoop&&this.on(r.Loop,e.onloop),e.onstatechange&&!e.onStateChange&&this.on(r.StateChange,e.onstatechange),e.assetLoader&&(this.assetLoader=e.assetLoader),this.taskQueue=new Q(this.eventManager),this.init({src:this.src,buffer:this.buffer,riveFile:this.riveFile,autoplay:e.autoplay,autoBind:e.autoBind,animations:e.animations,stateMachines:e.stateMachines,artboard:e.artboard,useOffscreenRenderer:e.useOffscreenRenderer})}return Object.defineProperty(t.prototype,"viewModelCount",{get:function(){return this.file.viewModelCount()},enumerable:!1,configurable:!0}),t.new=function(e){return console.warn("This function is deprecated: please use `new Rive({})` instead"),new t(e)},t.prototype.onSystemAudioChanged=function(){this.volume=this._volume},t.prototype.init=function(e){var i=this,n=e.src,r=e.buffer,o=e.riveFile,a=e.animations,s=e.stateMachines,l=e.artboard,c=e.autoplay,u=void 0!==c&&c,d=e.useOffscreenRenderer,h=void 0!==d&&d,A=e.autoBind,p=void 0!==A&&A;if(!this.destroyed){if(this.src=n,this.buffer=r,this.riveFile=o,!this.src&&!this.buffer&&!this.riveFile)throw new x(t.missingErrorMessage);var g=$(a),m=$(s);this.loaded=!1,this.readyForPlaying=!1,w.awaitInstance().then(function(e){i.destroyed||(i.runtime=e,i.removeRiveListeners(),i.deleteRiveRenderer(),i.renderer=i.runtime.makeRenderer(i.canvas,h),i.canvas.width||i.canvas.height||i.resizeDrawingSurfaceToCanvas(),i.initData(l,g,m,u,p).then(function(e){if(e)return i.setupRiveListeners()}).catch(function(e){console.error(e)}))}).catch(function(e){console.error(e)})}},t.prototype.setupRiveListeners=function(e){var t=this;if(this.eventCleanup&&this.eventCleanup(),!this.shouldDisableRiveListeners){var i=(this.animator.stateMachines||[]).filter(function(e){return e.playing&&t.runtime.hasListeners(e.instance)}).map(function(e){return e.instance}),n=this.isTouchScrollEnabled;e&&"isTouchScrollEnabled"in e&&(n=e.isTouchScrollEnabled),this.eventCleanup=(0,d.registerTouchInteractions)({canvas:this.canvas,artboard:this.artboard,stateMachines:i,renderer:this.renderer,rive:this.runtime,fit:this._layout.runtimeFit(this.runtime),alignment:this._layout.runtimeAlignment(this.runtime),isTouchScrollEnabled:n,layoutScaleFactor:this._layout.layoutScaleFactor})}},t.prototype.removeRiveListeners=function(){this.eventCleanup&&(this.eventCleanup(),this.eventCleanup=null)},t.prototype.initializeAudio=function(){var e,t=this;S.status==a.UNAVAILABLE&&(null==(e=this.artboard)?void 0:e.hasAudio)&&null===this._audioEventListener&&(this._audioEventListener={type:r.AudioStatusChange,callback:function(){return t.onSystemAudioChanged()}},S.add(this._audioEventListener),S.establishAudio())},t.prototype.initArtboardSize=function(){this.artboard&&(this._artboardWidth=this.artboard.width=this._artboardWidth||this.artboard.width,this._artboardHeight=this.artboard.height=this._artboardHeight||this.artboard.height)},t.prototype.initData=function(e,t,i,n,o){return g(this,void 0,void 0,function(){var a,s;return m(this,function(l){switch(l.label){case 0:if(l.trys.push([0,3,,4]),null!=this.riveFile)return[3,2];return this.riveFile=new z({src:this.src,buffer:this.buffer,enableRiveAssetCDN:this.enableRiveAssetCDN,assetLoader:this.assetLoader}),[4,this.riveFile.init()];case 1:l.sent(),l.label=2;case 2:if(!this.riveFile)return[2,!1];return this.file=this.riveFile.getInstance(),this.initArtboard(e,t,i,n,o),this.initArtboardSize(),this.initializeAudio(),this.loaded=!0,this.eventManager.fire({type:r.Load,data:null!=(s=this.src)?s:"buffer"}),this.readyForPlaying=!0,this.taskQueue.process(),this.drawFrame(),[2,!0];case 3:var c;return console.warn(a=(c=l.sent())&&c.isHandledError?c.message:"Problem loading file; may be corrupt!"),this.eventManager.fire({type:r.LoadError,data:a}),[2,Promise.reject(a)];case 4:return[2]}})})},t.prototype.initArtboard=function(e,t,i,n,o){if(this.file){var a,s=e?this.file.artboardByName(e):this.file.defaultArtboard();if(!s){var l="Invalid artboard name or no default artboard";console.warn(l),this.eventManager.fire({type:r.LoadError,data:l});return}if(this.artboard=s,s.volume=this._volume*S.systemVolume,1>this.artboard.animationCount()){var l="Artboard has no animations";throw this.eventManager.fire({type:r.LoadError,data:l}),l}if(this.animator=new C(this.runtime,this.artboard,this.eventManager),t.length>0||i.length>0?(a=t.concat(i),this.animator.initLinearAnimations(t,n),this.animator.initStateMachines(i,n)):a=[this.animator.atLeastOne(n,!1)],this.taskQueue.add({event:{type:n?r.Play:r.Pause,data:a}}),o){var c=this.file.defaultArtboardViewModel(s);if(null!==c){var u=c.defaultInstance();if(null!==u){var d=new K(u,null);this.bindViewModelInstance(d)}}}}},t.prototype.drawFrame=function(){var e,t;(null==(e=null==document?void 0:document.timeline)?void 0:e.currentTime)?this.loaded&&this.artboard&&!this.frameRequestId&&(this._boundDraw(document.timeline.currentTime),null==(t=this.runtime)||t.resolveAnimationFrame()):this.startRendering()},t.prototype.draw=function(e,t){this.frameRequestId=null;var i,o=performance.now();this.lastRenderTime||(this.lastRenderTime=e),this.renderSecondTimer+=e-this.lastRenderTime,this.renderSecondTimer>5e3&&(this.renderSecondTimer=0,null==t||t());var a=(e-this.lastRenderTime)/1e3;this.lastRenderTime=e;for(var s=this.animator.animations.filter(function(e){return e.playing||e.needsScrub}).sort(function(e){return e.needsScrub?-1:1}),l=0;l<s.length;l++){var c=s[l];c.advance(a),c.instance.didLoop&&(c.loopCount+=1),c.apply(1)}for(var u=this.animator.stateMachines.filter(function(e){return e.playing}),h=0;h<u.length;h++){var A=u[h],p=A.reportedEventCount();if(p)for(var g=0;g<p;g++){var m=A.reportedEventAt(g);if(m)if(m.type===n.OpenUrl){if(this.eventManager.fire({type:r.RiveEvent,data:m}),this.automaticallyHandleEvents){var f=document.createElement("a"),x=m.url,y=m.target,b=(0,d.sanitizeUrl)(x);x&&f.setAttribute("href",b),y&&f.setAttribute("target",y),b&&b!==d.BLANK_URL&&f.click()}}else this.eventManager.fire({type:r.RiveEvent,data:m})}A.advanceAndApply(a)}0==this.animator.stateMachines.length&&this.artboard.advance(a);var v=this.renderer;v.clear(),v.save(),this.alignRenderer(),this._hasZeroSize||this.artboard.draw(v),v.restore(
1),v.flush(),this.animator.handleLooping(),this.animator.handleStateChanges(),this.animator.handleAdvancing(a),this.frameCount++;var w=performance.now();for(this.frameTimes.push(w),this.durations.push(w-o);this.frameTimes[0]<=w-1e3;)this.frameTimes.shift(),this.durations.shift();null==(i=this._viewModelInstance)||i.handleCallbacks(),this.animator.isPlaying?this.startRendering():this.animator.isPaused?this.lastRenderTime=0:this.animator.isStopped&&(this.lastRenderTime=0)},t.prototype.alignRenderer=function(){var e=this.renderer,t=this.runtime,i=this._layout,n=this.artboard;e.align(i.runtimeFit(t),i.runtimeAlignment(t),{minX:i.minX,minY:i.minY,maxX:i.maxX,maxY:i.maxY},n.bounds,this._devicePixelRatioUsed*i.layoutScaleFactor)},Object.defineProperty(t.prototype,"fps",{get:function(){return this.durations.length},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"frameTime",{get:function(){return 0===this.durations.length?0:(this.durations.reduce(function(e,t){return e+t},0)/this.durations.length).toFixed(4)},enumerable:!1,configurable:!0}),t.prototype.cleanup=function(){var e,t;this.destroyed=!0,this.stopRendering(),this.cleanupInstances(),null!==this._observed&&P.remove(this._observed),this.removeRiveListeners(),this.file&&(null==(e=this.riveFile)||e.cleanup(),this.file=null),this.riveFile=null,this.deleteRiveRenderer(),null!==this._audioEventListener&&(S.remove(this._audioEventListener),this._audioEventListener=null),null==(t=this._viewModelInstance)||t.cleanup(),this._viewModelInstance=null,this._dataEnums=null},t.prototype.deleteRiveRenderer=function(){var e;null==(e=this.renderer)||e.delete(),this.renderer=null},t.prototype.cleanupInstances=function(){null!==this.eventCleanup&&this.eventCleanup(),this.stop(),this.artboard&&(this.artboard.delete(),this.artboard=null)},t.prototype.retrieveTextRun=function(e){if(!e)return void console.warn("No text run name provided");if(!this.artboard)return void console.warn("Tried to access text run, but the Artboard is null");var t,i=this.artboard.textRun(e);return i||void console.warn("Could not access a text run with name '".concat(e,"' in the '").concat(null==(t=this.artboard)?void 0:t.name,"' Artboard. Note that you must rename a text run node in the Rive editor to make it queryable at runtime."))},t.prototype.getTextRunValue=function(e){var t=this.retrieveTextRun(e);return t?t.text:void 0},t.prototype.setTextRunValue=function(e,t){var i=this.retrieveTextRun(e);i&&(i.text=t)},t.prototype.play=function(e,t){var i=this;(e=$(e),this.readyForPlaying)?(this.animator.play(e),this.eventCleanup&&this.eventCleanup(),this.setupRiveListeners(),this.startRendering()):this.taskQueue.add({action:function(){return i.play(e,t)}})},t.prototype.pause=function(e){var t=this;(e=$(e),this.readyForPlaying)?(this.eventCleanup&&this.eventCleanup(),this.animator.pause(e)):this.taskQueue.add({action:function(){return t.pause(e)}})},t.prototype.scrub=function(e,t){var i=this;(e=$(e),this.readyForPlaying)?(this.animator.scrub(e,t||0),this.drawFrame()):this.taskQueue.add({action:function(){return i.scrub(e,t)}})},t.prototype.stop=function(e){var t=this;(e=$(e),this.readyForPlaying)?(this.animator&&this.animator.stop(e),this.eventCleanup&&this.eventCleanup()):this.taskQueue.add({action:function(){return t.stop(e)}})},t.prototype.reset=function(e){var t,i,n=null==e?void 0:e.artboard,r=$(null==e?void 0:e.animations),o=$(null==e?void 0:e.stateMachines),a=null!=(t=null==e?void 0:e.autoplay)&&t,s=null!=(i=null==e?void 0:e.autoBind)&&i;this.cleanupInstances(),this.initArtboard(n,r,o,a,s),this.taskQueue.process()},t.prototype.load=function(e){this.file=null,this.stop(),this.init(e)},Object.defineProperty(t.prototype,"layout",{get:function(){return this._layout},set:function(e){this._layout=e,e.maxX&&e.maxY||this.resizeToCanvas(),this.loaded&&!this.animator.isPlaying&&this.drawFrame()},enumerable:!1,configurable:!0}),t.prototype.resizeToCanvas=function(){this._layout=this.layout.copyWith({minX:0,minY:0,maxX:this.canvas.width,maxY:this.canvas.height})},t.prototype.resizeDrawingSurfaceToCanvas=function(t){if(this.canvas instanceof HTMLCanvasElement&&window){var i=this.canvas.getBoundingClientRect(),n=i.width,r=i.height,o=t||window.devicePixelRatio||1;if(this.devicePixelRatioUsed=o,this.canvas.width=o*n,this.canvas.height=o*r,this.resizeToCanvas(),this.drawFrame(),this.layout.fit===e.Layout){var a=this._layout.layoutScaleFactor;this.artboard.width=n/a,this.artboard.height=r/a}}},Object.defineProperty(t.prototype,"source",{get:function(){return this.src}
1,enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"activeArtboard",{get:function(){return this.artboard?this.artboard.name:""},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"animationNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var e=[],t=0;t<this.artboard.animationCount();t++)e.push(this.artboard.animationByIndex(t).name);return e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"stateMachineNames",{get:function(){if(!this.loaded||!this.artboard)return[];for(var e=[],t=0;t<this.artboard.stateMachineCount();t++)e.push(this.artboard.stateMachineByIndex(t).name);return e},enumerable:!1,configurable:!0}),t.prototype.stateMachineInputs=function(e){if(this.loaded){var t=this.animator.stateMachines.find(function(t){return t.name===e});return null==t?void 0:t.inputs}},t.prototype.retrieveInputAtPath=function(e,t){if(!e)return void console.warn("No input name provided for path '".concat(t,"'"));if(!this.artboard)return void console.warn("Tried to access input: '".concat(e,"', at path: '").concat(t,"', but the Artboard is null"));var i=this.artboard.inputByPath(e,t);return i||void console.warn("Could not access an input with name: '".concat(e,"', at path:'").concat(t,"'"))},t.prototype.setBooleanStateAtPath=function(e,t,n){var r=this.retrieveInputAtPath(e,n);r&&(r.type===i.Boolean?r.asBool().value=t:console.warn("Input with name: '".concat(e,"', at path:'").concat(n,"' is not a boolean")))},t.prototype.setNumberStateAtPath=function(e,t,n){var r=this.retrieveInputAtPath(e,n);r&&(r.type===i.Number?r.asNumber().value=t:console.warn("Input with name: '".concat(e,"', at path:'").concat(n,"' is not a number")))},t.prototype.fireStateAtPath=function(e,t){var n=this.retrieveInputAtPath(e,t);n&&(n.type===i.Trigger?n.asTrigger().fire():console.warn("Input with name: '".concat(e,"', at path:'").concat(t,"' is not a trigger")))},t.prototype.retrieveTextAtPath=function(e,t){if(!e)return void console.warn("No text name provided for path '".concat(t,"'"));if(!t)return void console.warn("No path provided for text '".concat(e,"'"));if(!this.artboard)return void console.warn("Tried to access text: '".concat(e,"', at path: '").concat(t,"', but the Artboard is null"));var i=this.artboard.textByPath(e,t);return i||void console.warn("Could not access text with name: '".concat(e,"', at path:'").concat(t,"'"))},t.prototype.getTextRunValueAtPath=function(e,t){var i=this.retrieveTextAtPath(e,t);return i?i.text:void console.warn("Could not get text with name: '".concat(e,"', at path:'").concat(t,"'"))},t.prototype.setTextRunValueAtPath=function(e,t,i){var n=this.retrieveTextAtPath(e,i);n?n.text=t:console.warn("Could not set text with name: '".concat(e,"', at path:'").concat(i,"'"))},Object.defineProperty(t.prototype,"playingStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(e){return e.playing}).map(function(e){return e.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"playingAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(e){return e.playing}).map(function(e){return e.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pausedAnimationNames",{get:function(){return this.loaded?this.animator.animations.filter(function(e){return!e.playing}).map(function(e){return e.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pausedStateMachineNames",{get:function(){return this.loaded?this.animator.stateMachines.filter(function(e){return!e.playing}).map(function(e){return e.name}):[]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPlaying",{get:function(){return this.animator.isPlaying},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isPaused",{get:function(){return this.animator.isPaused},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isStopped",{get:function(){return this.animator.isStopped},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"bounds",{get:function(){return this.artboard?this.artboard.bounds:void 0}
1,enumerable:!1,configurable:!0}),t.prototype.on=function(e,t){this.eventManager.add({type:e,callback:t})},t.prototype.off=function(e,t){this.eventManager.remove({type:e,callback:t})},t.prototype.unsubscribe=function(e,t){console.warn("This function is deprecated: please use `off()` instead."),this.off(e,t)},t.prototype.removeAllRiveEventListeners=function(e){this.eventManager.removeAll(e)},t.prototype.unsubscribeAll=function(e){console.warn("This function is deprecated: please use `removeAllRiveEventListeners()` instead."),this.removeAllRiveEventListeners(e)},t.prototype.stopRendering=function(){this.loaded&&this.frameRequestId&&(this.runtime.cancelAnimationFrame?this.runtime.cancelAnimationFrame(this.frameRequestId):cancelAnimationFrame(this.frameRequestId),this.frameRequestId=null)},t.prototype.startRendering=function(){this.loaded&&this.artboard&&!this.frameRequestId&&(this.runtime.requestAnimationFrame?this.frameRequestId=this.runtime.requestAnimationFrame(this._boundDraw):this.frameRequestId=requestAnimationFrame(this._boundDraw))},t.prototype.enableFPSCounter=function(e){this.runtime.enableFPSCounter(e)},t.prototype.disableFPSCounter=function(){this.runtime.disableFPSCounter()},Object.defineProperty(t.prototype,"contents",{get:function(){if(this.loaded){for(var e={artboards:[]},t=0;t<this.file.artboardCount();t++){for(var i=this.file.artboardByIndex(t),n={name:i.name,animations:[],stateMachines:[]},r=0;r<i.animationCount();r++){var o=i.animationByIndex(r);n.animations.push(o.name)}for(var a=0;a<i.stateMachineCount();a++){for(var s=i.stateMachineByIndex(a),l=s.name,c=new this.runtime.StateMachineInstance(s,i),u=[],d=0;d<c.inputCount();d++){var h=c.input(d);u.push({name:h.name,type:h.type})}n.stateMachines.push({name:l,inputs:u})}e.artboards.push(n)}return e}},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"volume",{get:function(){return this.artboard&&this.artboard.volume!==this._volume&&(this._volume=this.artboard.volume),this._volume},set:function(e){this._volume=e,this.artboard&&(this.artboard.volume=e*S.systemVolume)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"artboardWidth",{get:function(){var e;return this.artboard?this.artboard.width:null!=(e=this._artboardWidth)?e:0},set:function(e){this._artboardWidth=e,this.artboard&&(this.artboard.width=e)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"artboardHeight",{get:function(){var e;return this.artboard?this.artboard.height:null!=(e=this._artboardHeight)?e:0},set:function(e){this._artboardHeight=e,this.artboard&&(this.artboard.height=e)},enumerable:!1,configurable:!0}),t.prototype.resetArtboardSize=function(){this.artboard?(this.artboard.resetArtboardSize(),this._artboardWidth=this.artboard.width,this._artboardHeight=this.artboard.height):(this._artboardWidth=void 0,this._artboardHeight=void 0)},Object.defineProperty(t.prototype,"devicePixelRatioUsed",{get:function(){return this._devicePixelRatioUsed},set:function(e){this._devicePixelRatioUsed=e},enumerable:!1,configurable:!0}),t.prototype.bindViewModelInstance=function(e){var t;this.artboard&&!this.destroyed&&e&&e.runtimeInstance&&(e.internalIncrementReferenceCount(),null==(t=this._viewModelInstance)||t.cleanup(),this._viewModelInstance=e,this.animator.stateMachines.length>0?this.animator.stateMachines.forEach(function(t){return t.bindViewModelInstance(e)}):this.artboard.bindViewModelInstance(e.runtimeInstance))},Object.defineProperty(t.prototype,"viewModelInstance",{get:function(){return this._viewModelInstance},enumerable:!1,configurable:!0}),t.prototype.viewModelByIndex=function(e){var t=this.file.viewModelByIndex(e);return null!==t?new M(t):null},t.prototype.viewModelByName=function(e){var t=this.file.viewModelByName(e);return null!==t?new M(t):null},t.prototype.enums=function(){if(null===this._dataEnums){var e=this.file.enums();this._dataEnums=e.map(function(e){return new U(e)})}return this._dataEnums},t.prototype.defaultViewModel=function(){if(this.artboard){var e=this.file.defaultArtboardViewModel(this.artboard);if(e)return new M(e)}return null},t.missingErrorMessage="Rive source file or data buffer required",t.cleanupErrorMessage="Attempt to use file after calling cleanup.",t}(),M=function(){function e(e){this._viewModel=e}return Object.defineProperty(e.prototype,"instanceCount",{get:function(){return this._viewModel.instanceCount}
1,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._viewModel.name},enumerable:!1,configurable:!0}),e.prototype.instanceByIndex=function(e){var t=this._viewModel.instanceByIndex(e);return null!==t?new K(t,null):null},e.prototype.instanceByName=function(e){var t=this._viewModel.instanceByName(e);return null!==t?new K(t,null):null},e.prototype.defaultInstance=function(){var e=this._viewModel.defaultInstance();return null!==e?new K(e,null):null},e.prototype.instance=function(){var e=this._viewModel.instance();return null!==e?new K(e,null):null},Object.defineProperty(e.prototype,"properties",{get:function(){return this._viewModel.getProperties()},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"instanceNames",{get:function(){return this._viewModel.getInstanceNames()},enumerable:!1,configurable:!0}),e}(),U=function(){function e(e){this._dataEnum=e}return Object.defineProperty(e.prototype,"name",{get:function(){return this._dataEnum.name},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this._dataEnum.values},enumerable:!1,configurable:!0}),e}(),(L=s||(s={})).Number="number",L.String="string",L.Boolean="boolean",L.Color="color",L.Trigger="trigger",L.Enum="enum",L.List="list",L.Image="image",K=function(){function e(e,t){this._parents=[],this._children=[],this._viewModelInstances=new Map,this._propertiesWithCallbacks=[],this._referenceCount=0,this._runtimeInstance=e,null!==t&&this._parents.push(t)}return Object.defineProperty(e.prototype,"runtimeInstance",{get:function(){return this._runtimeInstance},enumerable:!1,configurable:!0}),e.prototype.handleCallbacks=function(){0!==this._propertiesWithCallbacks.length&&(this._propertiesWithCallbacks.forEach(function(e){e.handleCallbacks()}),this._propertiesWithCallbacks.forEach(function(e){e.clearChanges()})),this._children.forEach(function(e){return e.handleCallbacks()})},e.prototype.addParent=function(e){!this._parents.includes(e)&&(this._parents.push(e),(this._propertiesWithCallbacks.length>0||this._children.length>0)&&e.addToViewModelCallbacks(this))},e.prototype.removeParent=function(e){var t=this._parents.indexOf(e);-1!==t&&(this._parents[t].removeFromViewModelCallbacks(this),this._parents.splice(t,1))},e.prototype.addToPropertyCallbacks=function(e){var t=this;!this._propertiesWithCallbacks.includes(e)&&(this._propertiesWithCallbacks.push(e),this._propertiesWithCallbacks.length>0&&this._parents.forEach(function(e){e.addToViewModelCallbacks(t)}))},e.prototype.removeFromPropertyCallbacks=function(e){var t=this;this._propertiesWithCallbacks.includes(e)&&(this._propertiesWithCallbacks=this._propertiesWithCallbacks.filter(function(t){return t!==e}),0===this._children.length&&0===this._propertiesWithCallbacks.length&&this._parents.forEach(function(e){e.removeFromViewModelCallbacks(t)}))},e.prototype.addToViewModelCallbacks=function(e){var t=this;this._children.includes(e)||(this._children.push(e),this._parents.forEach(function(e){e.addToViewModelCallbacks(t)}))},e.prototype.removeFromViewModelCallbacks=function(e){var t=this;this._children.includes(e)&&(this._children=this._children.filter(function(t){return t!==e}),0===this._children.length&&0===this._propertiesWithCallbacks.length&&this._parents.forEach(function(e){e.removeFromViewModelCallbacks(t)}))},e.prototype.clearCallbacks=function(){this._propertiesWithCallbacks.forEach(function(e){e.clearCallbacks()})},e.prototype.propertyFromPath=function(e,t){var i=e.split("/");return this.propertyFromPathSegments(i,0,t)},e.prototype.viewModelFromPathSegments=function(e,t){var i=this.internalViewModelInstance(e[t]);if(null!==i)if(t==e.length-1)return i;else return i.viewModelFromPathSegments(e,t++);return null},e.prototype.propertyFromPathSegments=function(e,t,i){if(t<e.length-1){var n,r,o,a,l,c,u,d,h,A,p,g,m,f,x,y,b=this.internalViewModelInstance(e[t]);return null!==b?b.propertyFromPathSegments(e,t+1,i):null}var v=null;switch(i){case s.Number:if(null!==(v=null!=(r=null==(n=this._runtimeInstance)?void 0:n.number(e[t]))?r:null))return new N(v,this);break;case s.String:if(null!==(v=null!=(a=null==(o=this._runtimeInstance)?void 0:o.string(e[t]))?a:null))return new V(v,this);break;case s.Boolean:if(null!==(v=null!=(c=null==(l=this._runtimeInstance)?void 0:l.boolean(e[t]))?c:null))return new H(v,this);break;case s.Color:if(null!==(v=null!=(d=null==(u=this._runtimeInstance)?void 0:u.color(e[t]))?d:null))return new Z(v,this);break;case s.Trigger:if(null!==(v=null!=(A=null==(h=this._runtimeInstance)?void 0:h.trigger(e[t]))?A:null))return new Y(v,this);break;case s.Enum:if(null!==(v=null!=(g=null==(p=this._runtimeInstance)?void 0:p.enum(e[t]))?g:null))return new J
1(v,this);break;case s.List:if(null!==(v=null!=(f=null==(m=this._runtimeInstance)?void 0:m.list(e[t]))?f:null))return new G(v,this);break;case s.Image:if(null!==(v=null!=(y=null==(x=this._runtimeInstance)?void 0:x.image(e[t]))?y:null))return new q(v,this)}return null},e.prototype.internalViewModelInstance=function(t){if(this._viewModelInstances.has(t))return this._viewModelInstances.get(t);var i,n=null==(i=this._runtimeInstance)?void 0:i.viewModel(t);if(null!==n){var r=new e(n,this);return r.internalIncrementReferenceCount(),this._viewModelInstances.set(t,r),r}return null},e.prototype.number=function(e){return this.propertyFromPath(e,s.Number)},e.prototype.string=function(e){return this.propertyFromPath(e,s.String)},e.prototype.boolean=function(e){return this.propertyFromPath(e,s.Boolean)},e.prototype.color=function(e){return this.propertyFromPath(e,s.Color)},e.prototype.trigger=function(e){return this.propertyFromPath(e,s.Trigger)},e.prototype.enum=function(e){return this.propertyFromPath(e,s.Enum)},e.prototype.list=function(e){return this.propertyFromPath(e,s.List)},e.prototype.image=function(e){return this.propertyFromPath(e,s.Image)},e.prototype.viewModel=function(e){var t=e.split("/"),i=t.length>1?this.viewModelFromPathSegments(t.slice(0,t.length-1),0):this;return null!=i?i.internalViewModelInstance(t[t.length-1]):null},e.prototype.internalReplaceViewModel=function(e,t){var i;if(null!==t.runtimeInstance){var n=(null==(i=this._runtimeInstance)?void 0:i.replaceViewModel(e,t.runtimeInstance))||!1;if(n){t.internalIncrementReferenceCount();var r=this.internalViewModelInstance(e);null!==r&&(r.removeParent(this),this._children.includes(r)&&(this._children=this._children.filter(function(e){return e!==r})),r.cleanup()),this._viewModelInstances.set(e,t),t.addParent(this)}return n}return!1},e.prototype.replaceViewModel=function(e,t){var i,n=e.split("/"),r=n.length>1?this.viewModelFromPathSegments(n.slice(0,n.length-1),0):this;return null!=(i=null==r?void 0:r.internalReplaceViewModel(n[n.length-1],t))&&i},e.prototype.incrementReferenceCount=function(){var e;this._referenceCount++,null==(e=this._runtimeInstance)||e.incrementReferenceCount()},e.prototype.decrementReferenceCount=function(){var e;this._referenceCount--,null==(e=this._runtimeInstance)||e.decrementReferenceCount()},Object.defineProperty(e.prototype,"properties",{get:function(){var e;return(null==(e=this._runtimeInstance)?void 0:e.getProperties().map(function(e){return p({},e)}))||[]},enumerable:!1,configurable:!0}),e.prototype.internalIncrementReferenceCount=function(){this._referenceCount++},e.prototype.cleanup=function(){var e=this;if(this._referenceCount--,this._referenceCount<=0){this._runtimeInstance=null,this.clearCallbacks(),this._propertiesWithCallbacks=[],this._viewModelInstances.forEach(function(e){e.cleanup()}),this._viewModelInstances.clear();var t=f([],this._children,!0);this._children.length=0;var i=f([],this._parents,!0);this._parents.length=0,t.forEach(function(t){t.removeParent(e)}),i.forEach(function(t){t.removeFromViewModelCallbacks(e)})}},e}(),V=function(e){function t(t,i){return e.call(this,t,i)||this}return A(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(W=function(){function e(e,t){this.callbacks=[],this._viewModelInstanceValue=e,this._parentViewModel=t}return e.prototype.on=function(e){0===this.callbacks.length&&this._viewModelInstanceValue.clearChanges(),this.callbacks.includes(e)||(this.callbacks.push(e),this._parentViewModel.addToPropertyCallbacks(this))},e.prototype.off=function(e){e?this.callbacks=this.callbacks.filter(function(t){return t!==e}):this.callbacks.length=0,0===this.callbacks.length&&this._parentViewModel.removeFromPropertyCallbacks(this)},e.prototype.internalHandleCallback=function(e){},e.prototype.handleCallbacks=function(){var e=this;this._viewModelInstanceValue.hasChanged&&this.callbacks.forEach(function(t){e.internalHandleCallback(t)})},e.prototype.clearChanges=function(){this._viewModelInstanceValue.clearChanges()},e.prototype.clearCallbacks=function(){this.callbacks.length=0},Object.defineProperty(e.prototype,"name",{get:function(){return this._viewModelInstanceValue.name}
1,enumerable:!1,configurable:!0}),e}()),N=function(e){function t(t,i){return e.call(this,t,i)||this}return A(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(W),H=function(e){function t(t,i){return e.call(this,t,i)||this}return A(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(W),Y=function(e){function t(t,i){return e.call(this,t,i)||this}return A(t,e),t.prototype.trigger=function(){return this._viewModelInstanceValue.trigger()},t.prototype.internalHandleCallback=function(e){e()},t}(W),J=function(e){function t(t,i){return e.call(this,t,i)||this}return A(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"valueIndex",{get:function(){return this._viewModelInstanceValue.valueIndex},set:function(e){this._viewModelInstanceValue.valueIndex=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"values",{get:function(){return this._viewModelInstanceValue.values},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e(this.value)},t}(W),G=function(e){function t(t,i){return e.call(this,t,i)||this}return A(t,e),Object.defineProperty(t.prototype,"length",{get:function(){return this._viewModelInstanceValue.size},enumerable:!1,configurable:!0}),t.prototype.addInstance=function(e){null!=e.runtimeInstance&&(this._viewModelInstanceValue.addInstance(e.runtimeInstance),e.addParent(this._parentViewModel))},t.prototype.addInstanceAt=function(e,t){return!!(null!=e.runtimeInstance&&this._viewModelInstanceValue.addInstanceAt(e.runtimeInstance,t))&&(e.addParent(this._parentViewModel),!0)},t.prototype.removeInstance=function(e){null!=e.runtimeInstance&&(this._viewModelInstanceValue.removeInstance(e.runtimeInstance),e.removeParent(this._parentViewModel))},t.prototype.removeInstanceAt=function(e){this._viewModelInstanceValue.removeInstanceAt(e)},t.prototype.instanceAt=function(e){var t=this._viewModelInstanceValue.instanceAt(e);return null!=t?new K(t,this._parentViewModel):null},t.prototype.swap=function(e,t){this._viewModelInstanceValue.swap(e,t)},t.prototype.internalHandleCallback=function(e){e()},t}(W),Z=function(e){function t(t,i){return e.call(this,t,i)||this}return A(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this._viewModelInstanceValue.value},set:function(e){this._viewModelInstanceValue.value=e},enumerable:!1,configurable:!0}),t.prototype.rgb=function(e,t,i){this._viewModelInstanceValue.rgb(e,t,i)},t.prototype.rgba=function(e,t,i,n){this._viewModelInstanceValue.argb(n,e,t,i)},t.prototype.argb=function(e,t,i,n){this._viewModelInstanceValue.argb(e,t,i,n)},t.prototype.alpha=function(e){this._viewModelInstanceValue.alpha(e)},t.prototype.opacity=function(e){this._viewModelInstanceValue.alpha(Math.round(255*Math.max(0,Math.min(1,e))))},t.prototype.internalHandleCallback=function(e){e(this.value)},t}(W),q=function(e){function t(t,i){return e.call(this,t,i)||this}return A(t,e),Object.defineProperty(t.prototype,"value",{set:function(e){var t;this._viewModelInstanceValue.value(null!=(t=null==e?void 0:e.nativeImage)?t:null)},enumerable:!1,configurable:!0}),t.prototype.internalHandleCallback=function(e){e()},t}(W),X=function(e){return g(void 0,void 0,void 0,function(){return m(this,function(t){switch(t.label){case 0:return[4,fetch(new Request(e))];case 1:return[4,t.sent().arrayBuffer()];case 2:return[2,t.sent()]}})})},$=function(e){return"string"==typeof e?[e]:e instanceof Array?e:[]},ee={EventManager:I,TaskQueueManager:Q},et=function(e){return g(void 0,void 0,void 0,function(){var t,i;return m(this,function(n){switch(n.label){case 0:return[4,new Promise(function(t){return w.getInstance(function(i){i.decodeAudio(e,t)})})];case 1:return t=n.sent(),i=new d.AudioWrapper(t),d.finalizationRegistry.register(i,t),[2,i]}})})},ei=function(e){return g(void 0,void 0,void 0,function(){var t,i;return m(this,function(n){switch(n.label){case 0:return[4,new Promise(function(t){return w.getInstance(function(i){i.decodeImage(e,t)})})];case 1:return t=n.sent(),i=new d.ImageWrapper(t),d.finalizationRegistry.register(i,t),[2,i]}})})},en=function(e){return g(void 0,void 0,void 0,function(){var t,i;return m(this,function(n){switch(n.label){case 0:return[4,new Promise(function(t){return w.getInstance(function(i){i.decodeFont(e,t)})})];case 1:return t=n.sent(),i=new d.FontWrapper(t),d.finalizationRegistry.register(i,t),[2,i]}})})},es})()},191959,(e,t,i)=>{Object.defineProperty(i,"__esModule",{value:!0});var n=e.r(386837),r=e.r(683985),o=n&&"object"==typeof n&&"default"in n?n:{default:n},a=function(){return(a=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++)for(var r in t=arguments[i])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function s(e,t){var i={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&0>t.indexOf(n)&&(i[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(n=Object.getOwnPropertySymbols(e);r<n.length;r++)0>t.indexOf(n[r])&&Object.prototype.propertyIsEnumerable.call(e,n[r])&&(i[n[r]]=e[n[r]])}return i}function l(e){var t=e||c(),i=n.useState(t),r=i[0],o=i[1];return n.useEffect(function(){if("u">typeof window&&"matchMedia"in window){var t=function(){o(e||c())},i=window.matchMedia("screen and (resolution: ".concat(r,"dppx)"));return i.hasOwnProperty("addEventListener")?i.addEventListener("change",t):i.addListener(t),function(){i.hasOwnProperty("removeEventListener")?i.removeEventListener("change",t):i.removeListener(t)}}},[r,e]),r}function c(){return Math.min(Math.max(1,"u">typeof window&&"number"==typeof window.devicePixelRatio?window.devicePixelRatio:1),3)}var u=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),d=globalThis.ResizeObserver||u,h=void 0!==globalThis.ResizeObserver,A=!h,p={useDevicePixelRatio:!0,fitCanvasToArtboardHeight:!1,useOffscreenRenderer:!0,shouldResizeCanvasToContainer:!0};function g(e){return Object.assign({},p,e)}function m(e){var t,i,r,o,a,s,c,u=e.riveLoaded,p=void 0!==u&&u,m=e.canvasElem,f=e.containerRef,x=e.options,y=e.onCanvasHasResized,b=e.artboardBounds,v=g(void 0===x?{}:x),w=n.useState({height:0,width:0}),_=w[0],E=_.height,B=_.width,R=w[1],C=n.useState({height:0,width:0}),j=C[0],O=j.height,I=j.width,Q=C[1],k=n.useState(!0),S=k[0],T=k[1],D=v.fitCanvasToArtboardHeight,P=v.shouldResizeCanvasToContainer,z=v.useDevicePixelRatio,F=v.customDevicePixelRatio,M=(void 0===(t=P)&&(t=!0),r=(i=n.useState({width:0,height:0}))[0],o=i[1],n.useEffect(function(){if("u">typeof window&&t){var e=function(){o({width:window.innerWidth,height:window.innerHeight})};return A&&(e(),window.addEventListener("resize",e)),function(){return window.removeEventListener("resize",e)}}},[]),c=n.useRef(new d((a=function(e){h&&o({width:e[e.length-1].contentRect.width,height:e[e.length-1].contentRect.height})},s=0,function(){for(var e=this,t=[],i=0;i<arguments.length;i++)t[i]=arguments[i];clearTimeout(s),s=window.setTimeout(function(){return a.apply(e,t)},0)}))),n.useEffect(function(){var e=c.current;if(t){var i=f.current;return f.current&&h&&e.observe(f.current),function(){e.disconnect(),i&&h&&e.unobserve(i)}}e.disconnect()},[f,c]),r),U=l(F),L=null!=b?b:{},K=L.maxX,W=L.maxY,V=n.useCallback(function(){var e,t,i,n,r=null!=(t=null==(e=f.current)?void 0:e.clientWidth)?t:0,o=null!=(n=null==(i=f.current)?void 0:i.clientHeight)?n:0;return D&&b?{width:r,height:r*(b.maxY/b.maxX)}:{width:r,height:o}},[f,D,K,W]);n.useEffect(function(){if(P&&f.current&&p){var e=V(),t=e.width,i=e.he
1ight,n=!1;if(m){var r=t!==B||i!==E;if(v.fitCanvasToArtboardHeight&&r&&(f.current.style.height=i+"px",n=!0),v.useDevicePixelRatio){if(r||t*U!==I||i*U!==O){var o=U*t,a=U*i;m.width=o,m.height=a,m.style.width=t+"px",m.style.height=i+"px",Q({width:o,height:a}),n=!0}}else r&&(m.width=t,m.height=i,Q({width:t,height:i}),n=!0);R({width:t,height:i})}y&&(S||n)&&y&&y(),S&&T(!1)}},[m,f,M,U,V,S,T,O,I,E,B,y,P,D,z,p]),n.useEffect(function(){Q({width:0,height:0})},[m])}var f,x=function(){function e(){}return e.prototype.observe=function(){},e.prototype.unobserve=function(){},e.prototype.disconnect=function(){},e}(),y=globalThis.IntersectionObserver||x,b=function(){function e(){var e=this;this.elementsMap=new Map,this.onObserved=function(t){t.forEach(function(t){var i=e.elementsMap.get(t.target);i&&i(t)})},this.observer=new y(this.onObserved)}return e.prototype.registerCallback=function(e,t){this.observer.observe(e),this.elementsMap.set(e,t)},e.prototype.removeCallback=function(e){this.observer.unobserve(e),this.elementsMap.delete(e)},e}(),v=function(){return f||(f=new b),f};function w(e){var t=e.setContainerRef,i=e.setCanvasRef,n=e.className,r=void 0===n?"":n,l=e.style,c=e.children,u=s(e,["setContainerRef","setCanvasRef","className","style","children"]),d=a({width:"100%",height:"100%"},l);return o.default.createElement("div",a({ref:t,className:r},!r&&{style:d}),o.default.createElement("canvas",a({ref:i,style:{verticalAlign:"top",width:0,height:0}},u),c))}function _(e,t){void 0===t&&(t={});var i=n.useState(null),s=i[0],c=i[1],u=n.useRef(null),d=n.useState(null),h=d[0],A=d[1],p=!!e,f=g(t),x=l(),y=n.useCallback(function(){if(h){if(h.layout&&h.layout.fit===r.Fit.Layout&&s){var e=x*h.layout.layoutScaleFactor;h.devicePixelRatioUsed=x,h.artboardWidth=(null==s?void 0:s.width)/e,h.artboardHeight=(null==s?void 0:s.height)/e}h.startRendering(),h.resizeToCanvas()}},[h,x]);m({riveLoaded:!!h,canvasElem:s,containerRef:u,options:f,onCanvasHasResized:y,artboardBounds:null==h?void 0:h.bounds});var b=n.useCallback(function(e){null===e&&s&&(s.height=0,s.width=0),c(e)},[]);n.useEffect(function(){if(s&&e){var t,i=null!=h;if(null==h){var n=f.useOffscreenRenderer;(t=new r.Rive(a(a({useOffscreenRenderer:n},e),{canvas:s}))).on(r.EventType.Load,function(){i=!0,s?A(t):t.cleanup()})}return function(){i||null==t||t.cleanup()}}},[s,p,h]);var _=n.useCallback(function(e){u.current=e},[]),E={observe:n.useCallback(function(e,t){v().registerCallback(e,t)},[]),unobserve:n.useCallback(function(e){v().removeCallback(e)},[])},B=E.observe,R=E.unobserve;n.useEffect(function(){var e,t=!1,i=function(){if(s&&t){var e=s.getBoundingClientRect();e.width>0&&e.height>0&&e.top<(window.innerHeight||document.documentElement.clientHeight)&&e.bottom>0&&e.left<(window.innerWidth||document.documentElement.clientWidth)&&e.right>0&&(null==h||h.startRendering(),t=!1)}};return s&&!1!==f.shouldUseIntersectionObserver&&B(s,function(n){n.isIntersecting?h&&h.startRendering():h&&h.stopRendering(),t=!n.isIntersecting,clearTimeout(e),n.isIntersecting||0!==n.boundingClientRect.width||(e=setTimeout(i,10))}),function(){s&&R(s)}},[B,R,h,s,f.shouldUseIntersectionObserver]),n.useEffect(function(){return function(){h&&(h.cleanup(),A(null))}},[h,s]);var C=null==e?void 0:e.animations;n.useEffect(function(){h&&C&&(h.isPlaying?(h.stop(h.animationNames),h.play(C)):h.isPaused&&(h.stop(h.animationNames),h.pause(C)))},[C,h]);var j=n.useCallback(function(e){return o.default.createElement(w,a({setContainerRef:_,setCanvasRef:b},e))},[b,_]);return{canvas:s,container:u.current,setCanvasRef:b,setContainerRef:_,rive:h,RiveComponent:j}}function E(e,t,i){var r=n.useState(null),o=r[0],s=r[1],l=n.useState(i.defaultValue),c=l[0],u=l[1],d=n.useState(null),h=d[0],A=d[1],p=n.useRef(null),g=n.useRef(e),m=n.useRef(i);n.useEffect(function(){m.current=i},[i]);var f=n.useCallback(function(){var e=p.current,t=g.current,i=m.current;if(!e||!t)return s(null),u(i.defaultValue),A(null),function(){};var n=i.getProperty(e,t);if(n){s(n),u(i.getValue(n)),i.getExtendedData&&A(i.getExtendedData(n));var r=function(){u(i.getValue(n)),i.getExtendedData&&A(i.getExtendedData(n)),i.onPropertyEvent&&i.onPropertyEvent()};return n.on(r),function(){n.off(r)}}return function(){}},[]);n.useEffect(function(){return p.current=t,g.current=e,f()},[t,e,f]);
1var x=n.useCallback(function(e){if(o&&p.current===t)try{return e(o),void(m.current.getExtendedData&&A(m.current.getExtendedData(o)))}catch(e){}if(p.current)try{var i=m.current.getProperty(p.current,g.current);i&&(s(i),e(i),m.current.getExtendedData&&A(m.current.getExtendedData(i)))}catch(e){}},[o,t]),y=n.useMemo(function(){return m.current.buildPropertyOperations(x)},[x]),b=a({value:c},y);return i.getExtendedData&&(b.extendedData=h),b}i.default=function(e){var t=e.src,i=e.artboard,n=e.animations,r=e.stateMachines,l=e.layout,c=e.useOffscreenRenderer,u=e.shouldDisableRiveListeners,d=e.shouldResizeCanvasToContainer,h=e.automaticallyHandleEvents,A=e.children,p=s(e,["src","artboard","animations","stateMachines","layout","useOffscreenRenderer","shouldDisableRiveListeners","shouldResizeCanvasToContainer","automaticallyHandleEvents","children"]),g=_({src:t,artboard:i,animations:n,layout:l,stateMachines:r,autoplay:!0,shouldDisableRiveListeners:void 0!==u&&u,automaticallyHandleEvents:void 0!==h&&h},{useOffscreenRenderer:void 0===c||c,shouldResizeCanvasToContainer:void 0===d||d}).RiveComponent;return o.default.createElement(g,a({},p),A)},i.useResizeCanvas=m,i.useRive=_,i.useRiveFile=function(e){var t=this,i=n.useState(null),o=i[0],a=i[1],s=n.useState("idle"),l=s[0],c=s[1];return n.useEffect(function(){var i,n,o,s=null;return i=void 0,n=void 0,o=function(){return function(e,t){var i,n,r,o,a={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function s(o){return function(s){var l=[o,s];if(i)throw TypeError("Generator is already executing.");for(;a;)try{if(i=1,n&&(r=2&l[0]?n.return:l[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,l[1])).done)return r;switch(n=0,r&&(l=[2&l[0],r.value]),l[0]){case 0:case 1:r=l;break;case 4:return a.label++,{value:l[1],done:!1};case 5:a.label++,n=l[1],l=[0];continue;case 7:l=a.ops.pop(),a.trys.pop();continue;default:if(!(r=(r=a.trys).length>0&&r[r.length-1])&&(6===l[0]||2===l[0])){a=0;continue}if(3===l[0]&&(!r||l[1]>r[0]&&l[1]<r[3])){a.label=l[1];break}if(6===l[0]&&a.label<r[1]){a.label=r[1],r=l;break}if(r&&a.label<r[2]){a.label=r[2],a.ops.push(l);break}r[2]&&a.ops.pop(),a.trys.pop();continue}l=t.call(e,a)}catch(e){l=[6,e],n=0}finally{i=r=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}}(this,function(t){try{c("loading"),(s=new r.RiveFile(e)).init(),s.on(r.EventType.Load,function(){null==s||s.getInstance(),a(s),c("success")}),s.on(r.EventType.LoadError,function(){c("failed")}),a(s)}catch(e){console.error(e),c("failed")}return[2]})},new(n||(n=Promise))(function(e,r){function a(e){try{l(o.next(e))}catch(e){r(e)}}function s(e){try{l(o.throw(e))}catch(e){r(e)}}function l(t){var i;t.done?e(t.value):((i=t.value)instanceof n?i:new n(function(e){e(i)})).then(a,s)}l((o=o.apply(t,i||[])).next())}),function(){null==s||s.cleanup()}},[e.src,e.buffer]),{riveFile:o,status:l}},i.useStateMachineInput=function(e,t,i,o){var a=n.useState(null),s=a[0],l=a[1];return n.useEffect(function(){function n(){if(e&&t&&i||l(null),e&&t&&i){var n=e.stateMachineInputs(t);if(n){var r=n.find(function(e){return e.name===i});void 0!==o&&r&&(r.value=o),l(r||null)}}else l(null)}n(),e&&e.on(r.EventType.Load,function(){n()})},[e]),s},i.useViewModel=function(e,t){var i=null!=t?t:{},o=i.name,a=i.useDefault,s=n.useState(null),l=s[0],c=s[1];return n.useEffect(function(){function t(){var t;if(e)c(null!=o?(null==(t=e.viewModelByName)?void 0:t.call(e,o))||null:e.defaultViewModel()||null);else c(null)}return t(),e&&e.on(r.EventType.Load,t),function(){e&&e.off(r.EventType.Load,t)}},[e,o,void 0!==a&&a]),l},i.useViewModelInstance=function(e,t){var i=null!=t?t:{},r=i.name,o=i.useDefault,a=void 0!==o&&o,s=i.useNew,l=void 0!==s&&s,c=i.rive,u=n.useState(null),d=u[0],h=u[1];return n.useEffect(function(){var t,i,n;if(e){var o=null;h(o=null!=r?e.instanceByName(r)||null:a?(null==(t=e.defaultInstance)?void 0:t.call(e))||null:l?(null==(i=e.instance)?void 0:i.call(e))||null:(null==(n=e.defaultInstance)?void 0:n.call(e))||null),
1c&&o&&c.viewModelInstance!==o&&c.bindViewModelInstance(o)}else h(null)},[e,r,a,l,c]),d},i.useViewModelInstanceBoolean=function(e,t){var i=E(e,t,{getProperty:n.useCallback(function(e,t){return e.boolean(t)},[]),getValue:n.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:n.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])});return{value:i.value,setValue:i.setValue}},i.useViewModelInstanceColor=function(e,t){var i=E(e,t,{getProperty:n.useCallback(function(e,t){return e.color(t)},[]),getValue:n.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:n.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})},setRgb:function(t,i,n){e(function(e){e.rgb(t,i,n)})},setRgba:function(t,i,n,r){e(function(e){e.rgba(t,i,n,r)})},setAlpha:function(t){e(function(e){e.alpha(t)})},setOpacity:function(t){e(function(e){e.opacity(t)})}}},[])});return{value:i.value,setValue:i.setValue,setRgb:i.setRgb,setRgba:i.setRgba,setAlpha:i.setAlpha,setOpacity:i.setOpacity}},i.useViewModelInstanceEnum=function(e,t){var i=E(e,t,{getProperty:n.useCallback(function(e,t){return e.enum(t)},[]),getValue:n.useCallback(function(e){return e.value},[]),defaultValue:null,getExtendedData:n.useCallback(function(e){return e.values},[]),buildPropertyOperations:n.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])});return{value:i.value,values:i.extendedData||[],setValue:i.setValue}},i.useViewModelInstanceNumber=function(e,t){var i=E(e,t,{getProperty:n.useCallback(function(e,t){return e.number(t)},[]),getValue:n.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:n.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])});return{value:i.value,setValue:i.setValue}},i.useViewModelInstanceString=function(e,t){var i=E(e,t,{getProperty:n.useCallback(function(e,t){return e.string(t)},[]),getValue:n.useCallback(function(e){return e.value},[]),defaultValue:null,buildPropertyOperations:n.useCallback(function(e){return{setValue:function(t){e(function(e){e.value=t})}}},[])});return{value:i.value,setValue:i.setValue}},i.useViewModelInstanceTrigger=function(e,t,i){var r=(null!=i?i:{}).onTrigger;return{trigger:E(e,t,{getProperty:n.useCallback(function(e,t){return e.trigger(t)},[]),getValue:n.useCallback(function(){},[]),defaultValue:null,onPropertyEvent:r,buildPropertyOperations:n.useCallback(function(e){return{trigger:function(){e(function(e){e.trigger()})}}},[])}).trigger}},Object.keys(r).forEach(function(e){"default"===e||i.hasOwnProperty(e)||Object.defineProperty(i,e,{enumerable:!0,get:function(){return r[e]}})})},613024,746678,609677,779480,749304,e=>{"use strict";var t=e.i(690058);e.i(73753);var i=e.i(386120),n=e.i(631914),r=e.i(741262),o=e.i(386837),a=e.i(4971),s=e.i(721629);function l(){let e=(0,s.useMotionValue)(0);return!function(e){let t=(0,o.useRef)(0),{isStatic:i}=(0,o.useContext)(a.MotionConfigContext);(0,o.useEffect)(()=>{if(i)return;let n=({timestamp:i,delta:n})=>{t.current||(t.current=i),e(i-t.current,n)};return r.frame.update(n,!0),()=>(0,r.cancelFrame)(n)},[e])}(t=>e.set(t)),e}e.s(["useTime",0,l],746678);var c=e.i(220608);let u={src:e.i(445078).default,width:282,height:282,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1RitxECQ6XatgYyCDn+VeNjHRhP3NavTv/wAMc9NSrQ97Ro//2Q=="},d={src:e.i(445048).default,width:192,height:192,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAABE0lEQVR42gEIAff+AO/+xozg/Zy13/ycteH9nLXk/Z216P6etfD+tZv9//VaANr8mrW5+U7/tvhO/7r5T//D+lH/zfxT/9j9W/fv/rWbAMr6lbWb9UT/l/RE/5z1Rv+q9kv/u/lP/8z7U//n/p21ALXujrVbpyz/YLou/2O2MP+D2z3/p/ZJ/7/6T//i/Zy1AKfqiLVAkiH/PpYf/z+LIP9ftC3/lPFC/7P4TP/d/Ju1AKDthrU+oh//RcUe/1ThI/9q6C3/i/M8/6z4SP/a/Jq1AJroh7U1kx//N6Ib/0/XIf9q8Sz/iPQ5/6r4Rv/a/Jm1AMb4vIyX7IW1mPGCtZ/1grWr94e1vPmPtdD7lrXq/cWMWVWzYtRIwsgAAAAASUVORK5CYII="},h={src:e.i(229874).default,width:288,height:288,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDstL1O/uL+VZo9sauQhwQTz718bNcsly3ueVSxDc7H/9k="},A={src:e.i(159547).default,width:382,height:382,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAABE0lEQVR42gEIAff+ANz9h//T/G//0vxv/9T8b//Y/HD/3f1x/+T+fv/2/tT9AMn6bP+5+U7/tvlO/7r5T//C+lH/zftT/9f9Vf/k/oD9ALP3Zf+a9ET/lvRE/5z0Rv+p9kv/u/lP/8z7U//d/XP9AJfqXP9Yoiv/XbUt/2CvL/+C2Tz/p/ZJ/7/6T//W/HL9AIPmVP9BlSH/P5kf/0CQIP9etC3/lPFC/7P4TP/Q+3H9AHjoUf89oB//RMQe/1XhI/9r6y3/ivM8/6z4SP/M+2/9AHDjU/82lh//OKYc/0/YIf9q8Sz/iPQ5/6r4Rv/M+2/9AIzxeP1s6VT9be5P/XfxT/2I81b9oPZf/bv5af3V+4r8Us20PAjs8bYAAAAASUVORK5CYII="};e.s(["EAL6PlusBadge",0,e=>{let{theme:r="transparent"}=e,o=l(),a=(0,c.useTransform)(o,[0,6e3],[0,360],{clamp:!1});return"dynamic"===r?(0,t.jsxs)("div",{style:{position:"relative",overflow:"hidden",
1width:"100%",height:"100%"},children:[(0,t.jsx)(i.StaticImage,{loading:"eager",style:{position:"absolute",left:1,top:1,right:1,bottom:1,zIndex:2},src:h,alt:"EAL 6+ Badge"}),(0,t.jsx)(n.motion.div,{style:{rotate:a,transformOrigin:"center",position:"absolute",top:"-25%",left:"-25%",bottom:"-25%",right:"-25%",zIndex:1},children:(0,t.jsx)(i.StaticImage,{style:{width:"100%",height:"100%"},src:u,alt:"EAL 6+ Badge"})})]}):"light"===r?(0,t.jsx)(i.StaticImage,{style:{display:"block",width:"100%",height:"100%"},src:A,alt:"EAL 6+ Badge"}):(0,t.jsx)(i.StaticImage,{loading:"eager",style:{display:"block",width:"100%",height:"100%"},src:d,alt:"EAL 6+ Badge"})}],609677),e.s([],613024);var p=e.i(463800);e.s(["buildLanguagePath",0,function(e,t){return t===p.routing.defaultLocale?e:`/${t}${e}`}],779480),e.i(924856);var g=e.i(414393),m=e.i(908547),f=e.i(835882),x=e.i(254793);let y=({children:e,onClick:i,disabled:n})=>{let r=(0,x.useTheme)();return(0,t.jsx)(m.Box,{onClick:i,xs:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",borderRadius:r.borderRadius.s,color:r.colors.gray700,...n?{opacity:.4,cursor:"not-allowed"}:{":hover":{background:r.colors.gray50},":active":{background:r.colors.gray100},cursor:"pointer"}},children:e})};e.s(["NumberInput",0,e=>{let{children:i,value:n=0,min:r=1,max:o=1/0,onChange:a}=e,s=(0,x.useTheme)(),l=n>=o,c=n<=r;return(0,t.jsxs)(m.Box,{xs:{padding:"4px 16px",borderRadius:99,border:`1px solid ${s.colors.gray400}`,display:"flex",alignItems:"center",justifyContent:"center",minWidth:120},children:[(0,t.jsx)(y,{onClick:()=>{c||a?.(n-1)},disabled:c,children:(0,t.jsx)(f.MinusIcon,{width:16,height:16})}),(0,t.jsxs)(m.Box,{xs:{position:"relative",width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center",cursor:"pointer",borderRadius:s.borderRadius.s,":hover":{background:s.colors.gray50},":active":{background:s.colors.gray100},...s.text.medium300,flex:1},children:[n,(0,t.jsx)("select",{value:n,style:{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:0}
1,onChange:e=>{a?.(Number(e.target.value))},children:Array(Math.min(99,o)).fill(0).map((e,i)=>(0,t.jsx)("option",{value:i+1,children:i+1},i))})]}),i,(0,t.jsx)(y,{onClick:()=>{l||a?.(n+1)},disabled:l,children:(0,t.jsx)(g.AddIcon,{width:16,height:16})})]})}],749304)},138452,e=>{"use strict";var t=e.i(690058);e.i(924856);var i=e.i(414393),n=e.i(908547),r=e.i(835882),o=e.i(40498),a=e.i(631914);e.s(["ExpandIcon",0,({isExpanded:e,iconSize:s=24})=>(0,t.jsx)(n.Box,{css:{height:s,width:s,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:(0,t.jsx)(o.AnimatePresence,{mode:"sync",initial:!1,children:e?(0,t.jsx)(a.motion.div,{initial:{opacity:0,rotate:90},animate:{opacity:1,rotate:0},exit:{opacity:0,rotate:-90},transition:{duration:.2},style:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsx)(r.MinusIcon,{style:{height:s,width:s,color:"inherit"}})},"minus"):(0,t.jsx)(a.motion.div,{initial:{opacity:0,rotate:90},animate:{opacity:1,rotate:0},exit:{opacity:0,rotate:-90},transition:{duration:.2},style:{position:"absolute",display:"flex",alignItems:"center",justifyContent:"center"},children:(0,t.jsx)(i.AddIcon,{style:{height:s,width:s,color:"inherit"}})},"add")})})])},520036,e=>{"use strict";e.i(428947),e.s([])},942207,592765,e=>{"use strict";var t=e.i(690058),i=e.i(386837);e.i(890392);var n=e.i(32298),r=e.i(991472);e.i(924856);var o=e.i(165074),a=e.i(908547),s=e.i(377379),l=e.i(254793),c=e.i(40498),u=e.i(631914),d=e.i(885403),h=e.i(127240),A=e.i(138452);let p=({title:e,children:n,defaultExpanded:r=!1})=>{let o=(0,l.useTheme)(),[d,h]=(0,i.useState)(r);return(0,t.jsxs)(a.Box,{className:"product-collapsible-section",xs:{borderTop:`1px solid ${o.colors.gray200}`,paddingTop:16,paddingBottom:16},children:[(0,t.jsxs)(a.Box,{onClick:()=>h(!d),xs:{display:"flex",alignItems:"center",gap:8,cursor:"pointer","&:hover":{opacity:.7}},children:[(0,t.jsx)(s.Span,{xs:{flex:1,...o.text.medium600,color:o.colors.gray900,fontSize:24,lineHeight:"30px"},children:e}),(0,t.jsx)(A.ExpandIcon,{isExpanded:d})]}),(0,t.jsx)(c.AnimatePresence,{initial:!1,children:d&&(0,t.jsx)(a.Box,{as:u.motion.div,initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},css:{overflow:"hidden"},children:(0,t.jsx)(a.Box,{xs:{paddingTop:16,paddingBottom:48},children:n})})})]})},g=(0,r.stripHastNode)({p:e=>{let i=(0,l.useTheme)();return(0,t.jsx)(s.P,{...e,xs:{...i.text.normal400,color:i.colors.gray900,fontSize:18,lineHeight:"24px",whiteSpace:"pre-wrap",marginBottom:12,"&:last-child":{marginBottom:0}}})},a:({href:e,children:i})=>{let n=(0,l.useTheme)();return(0,t.jsx)(o.ActionLink,{xs:{color:n.colors.brandAltURL,textDecoration:"underline","&:hover":{color:n.colors.brandAltHover},display:"inline-block",cursor:"pointer"},to:e??"#",children:i})},CollapsibleSection:p,TableWithoutHeader:({children:e})=>(0,t.jsx)(a.Box,{xs:{display:"flex",flexDirection:"column",gap:16},children:e}),TableWithHeader:({children:e})=>{let i=(0,l.useTheme)();return(0,t.jsx)(a.Box,{xs:{backgroundColor:i.colors.gray50||"#F8F9FA",borderRadius:16,display:"flex",overflow:"hidden",position:"relative",marginTop:16,"&::before":{content:'""',position:"absolute",left:0,right:0,top:43,height:1,backgroundColor:i.colors.gray200||"#DADEE1",zIndex:1}},children:e})},TableRow:({children:e})=>(0,t.jsx)(a.Box,{xs:{display:"flex",gap:8,alignItems:"flex-start"},children:e}),TableLabel:({children:e})=>{let i=(0,l.useTheme)();return(0,t.jsx)(s.Span,{xs:{width:128,flexShrink:0,...i.text.normal400,color:i.colors.gray900,fontSize:18,lineHeight:"24px"},children:e})},TableValue:({children:e})=>{let i=(0,l.useTheme)();return(0,t.jsx)(s.Span,{xs:{flex:1,...i.text.normal400,color:i.colors.gray900,fontSize:18,lineHeight:"24px"},children:e})},TableHeader:({children:e})=>{let i=(0,l.useTheme)();return(0,t.jsx)(s.Span,{xs:{...i.text.medium200,color:i.colors.gray400||"#8A9195",fontSize:14,lineHeight:"20px",textAlign:"center",whiteSpace:"nowrap"},children:e})},TableCell:({children:e})=>{let i=(0,l.useTheme)();return(0,t.jsx)(s.Span,{xs:{...i.text.medium300,color:i.colors.gray900,fontSize:16,lineHeight:"20px",textAlign:"center",width:"100%"},children:e})},TableColumn:({children:e})=>{let i=(0,l.useTheme)();return(0,t.jsx)(a.Box,{xs:{display:"flex",flexDirection:"column",gap:16,padding:16,alignItems:"center",position:"relative","&:first-child":{width:80,flexShrink:0,"& span":{color:i.colors.gray4
100||"#8A9195"}},"&:not(:first-child)":{flex:1}},children:e})}});e.s(["ProductMDXContent",0,({children:e,...r})=>{let o=(0,l.useTheme)(),s=(0,d.useTranslations)(),c=(0,i.useMemo)(()=>e?s.has(e)?s.raw(e):e:"",[e,s]),u=(0,i.useMemo)(()=>(e=>{let t=[],i=Array.from(e.matchAll(/^\s*(#{1,2})\s+(.+)$/gm));if(0===i.length)return[{type:"paragraph",content:e.trim()}];let n=0;return i.forEach((r,o)=>{let a=r.index;if(void 0===a)return;let s=r[2];if(!s)return;if(a>n){let i=e.slice(n,a).trim();i&&t.push({type:"paragraph",content:i})}let l=i[o+1],c=l?.index??e.length,u=e.slice(a+r[0].length,c).trim();t.push({type:"collapsible",title:s,content:u}),n=c}),t})(c),[c]),A=(0,i.useMemo)(()=>u.map(e=>{let t,i=/<(\w+)(?:\s+[^>]*)?>(?:[^<]|<(?!\/\1>))*<\/\1>/gs,n=[],r=0;for(;null!==(t=i.exec(e.content));){if(t.index>r){let i=e.content.slice(r,t.index);i.trim()&&n.push({type:"markdown",content:i})}n.push({type:"mdx",content:t[0]}),r=i.lastIndex}if(r<e.content.length){let t=e.content.slice(r);t.trim()&&n.push({type:"markdown",content:t})}return{...e,parts:n.length>0?n:[{type:"markdown",content:e.content}]}}),[u]);return(0,t.jsx)(a.Box,{xs:{display:"flex",flexDirection:"column",paddingX:64,...o.text.normal400,color:o.colors.gray900},externalProps:r,children:A.map((e,i)=>{let r=(0,t.jsx)(t.Fragment,{children:e.parts.map((e,i)=>"mdx"===e.type?(0,t.jsx)(n.DynamicReactComponent,{jsx:e.content,components:g},i):(0,t.jsx)(h.default,{allowedElements:["h1","h2","p","strong","em","br","ul","ol","li","a"],components:g,children:e.content},i))});return"collapsible"===e.type?(0,t.jsx)(p,{title:e.title||"",children:r},i):(0,t.jsx)(a.Box,{xs:{paddingY:16,marginBottom:48},children:r},i)})})}],942207);var m=e.i(147629);e.s(["CheckCircleIcon",()=>m.default],592765)},201276,e=>{"use strict";var t=e.i(690058);e.i(924856);var i=e.i(525908),n=e.i(377379),r=e.i(254793),o=e.i(885403);e.s(["SectionContent",0,({title:e,children:a,withoutMarginTop:s=!1,alignTitle:l="center",...c})=>{let u=(0,r.useTheme)(),d=(0,o.useTranslations)();return(0,t.jsxs)(n.Section,{xs:{marginTop:40*!s},mobile:{marginTop:128*!s},externalProps:c,children:[e&&(0,t.jsx)(i.Container,{children:(0,t.jsx)(n.H2,{xs:{color:u.colors.gray900,...u.text.medium700,textAlign:"left-mobile"===l||"left"===l?"left":"center",marginBottom:24},mobile:{...u.text.medium800,marginBottom:48,textAlign:"left"===l?"left":"center"},children:d(e)})}),a]})}])},807466,8297,e=>{"use strict";var t=e.i(690058),i=e.i(386837),n=e.i(138452);e.i(924856);var r=e.i(908547),o=e.i(377379),a=e.i(254793),s=e.i(40498),l=e.i(631914),c=e.i(885403);e.s(["TermsAndConditions",0,({i18nKey:e="content__gift_card_terms_and_conditions",expanded:u,onExpandedChange:d,defaultExpanded:h=!1,...A})=>{let p=(0,a.useTheme)(),g=(0,c.useTranslations)(),[m,f]=(0,i.useState)(h),x=void 0!==u,y=x?u:m;return(0,t.jsxs)(r.Box,{xs:{padding:24,backgroundColor:p.colors.gray50,width:"100%",borderRadius:16,"&:hover":{backgroundColor:p.colors.gray100},transition:"background-color 0.2s",cursor:"pointer",marginBottom:0},mobile:{padding:48},onClick:()=>{let e=!y;x?d?.(e):f(e)},externalProps:A,children:[(0,t.jsxs)(o.H4,{xs:{...p.text.medium500,color:p.colors.gray900,display:"flex",alignItems:"center",justifyContent:"space-between"},mobile:{...p.text.medium600},children:[(0,t.jsx)(o.Span,{children:g("title__terms_and_conditions")}),(0,t.jsx)(n.ExpandIcon,{isExpanded:y})]}),(0,t.jsx)(s.AnimatePresence,{children:y&&(0,t.jsx)(l.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},style:{overflow:"hidden"},children:(0,t.jsx)(o.P,{xs:{marginTop:16,...p.text.normal300,color:p.colors.gray700,whiteSpace:"pre-line"},children:g(e)})})})]})}],807466);var u=e.i(90248),d=e.i(336225),h=e.i(464322),h=h,A=e.i(378728),A=A,p=e.i(745417),g=e.i(165647),m=e.i(951845),m=m;let f=[{q:"title__where_you_can_use_it",a:"content__where_you_can_use_it",icon:p.ShopIcon},{q:"title__gift_card_amounts",a:"content__gift_card_amounts",icon:h.default},{q:"title__validity",a:"content__validity",icon:d.DateIcon},{q:"title__use_it_once_or_many_times",a:"content__use_it_once_or_many_times",icon:g.ShoppingBagIcon},{q:"title__no_fees_no_interest",a:"content__no_fees_no_interest",icon:u.CardIcon},{q:"title__returns_refunds",a:"content__returns_refunds",icon:A.default},{q:"title__treat_it_like_cash",a:"content__treat_it_like_cash",icon:m.default}];e.s(["GIFT_CARD_FAQ_ITEMS",0,f],8297)},220424,e=>{"use strict";var t=e.i(690058);e.i(890392);var i=e.i(32298);e.i(924856);var n=e.i(498037),r=e.i(908547),o=e.i(525908),a=e.i(254793),s=e.i(885403),l=e.i(410578);let c=e=>{let{children:i,theme:o}=e,s=(0,a.useTheme)();return(0,t.jsxs)(r.Box,{xs:{display:"flex",alignItems:"center",borderBottom:`1px solid ${"light"===o?s.colors.gray200:s.colors.white24}`,paddingBottom:16,color:"light"===o?s.colors.gray700:s.colors.white85},children:[(0,t.jsx)(n.ArrowDownIcon,{style:{width:24,height:24,marginRight:8}}),i]})},u=({image:e,children:n,theme:o})=>{let s=(0,a.useTheme)();return(0,t.jsxs)(r.Box,{xs:{flex:1},children:[e,(0,t.jsx)(r.Box,{xs:{...s.text.normal400,color:"light"===o?s.colors.gray700:s.colors.white85,marginTop:16,"& > b":{fontWeight:600}},children:(0,t.jsx)(i.DynamicReactComponent,{jsx:n})})]})};e.s(["BeforeUse",0,({cardData:e,theme:i="light"})=>{let n=(0,a.useTheme)(),d=(0,s.useTranslations)();return(0,t.jsxs)(r.Box,{xs:{paddingTop:72,paddingBottom:72,backgroundColor:"light"===i?n.colors.gray50:"#000"},mobile:{paddingTop:120,paddingBottom:120},children:[(0,t.jsx)(o.Container,{children:(0,t.jsx)(l.TextIntro,{xs:{maxWidth:350,marginBottom:48},theme:i,title:"title__secure_before_and_after_you_use_it"})}),(0,t.jsx)(o.Container,{xs:{overflowX:"auto","&::-webkit-scrollbar":{display:"none"}},children:(0,t.jsxs)(r.Box,{xs:{minWidth:800},children:[(0,t.jsxs)(r.Box,{xs:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:24,...n.text.medium600,marginBottom:24},children:[(0,t.jsx)(c,{theme:i,children:d("title__before_its_in_your_hands")}),(0,t.jsx)(c,{theme:i,children:d("title__after_you_start_using_it")})]}),(0,t.jsx)(r.Box,{xs:{display:"flex",gap:24},children:e.map((e,n)=>(0,t.jsx)(u,{...e,theme:i},n))})]})})]})}])},303619,850799,17893,860010,435912,492153,385467,282326,398460,586180,64156,658062,518965,796777,858338,454839,62141,394063,552763,942329,830636,324424,429209,967047,775875,825600,372502,998318,133836,593319,743387,e=>{"use strict";e.s([],743387),e.s([],303619),e.s(["BuyClassic1s",()=>eo],64156),e.s(["BackingGradeSecurity",()=>C],850799),e.s(["SetupOffline",()=>D],17893),e.s([],435912),e.s(["SignSection",()=>V],860010),e.s(["TradeNoKYC",()=>H],492153),e.s(["BuyPro",()=>tY],593319),e.s([],394063),e.s(["WirelessCharging",()=>eM],454839),e.s(["Quantum",()=>eV],62141),e.s([],429209),e.s(["EvaluationAssuranceLevelSection",()=>tn],324424),e.s(["Setup",()=>tP],825600);var t,i,n=e.i(690058),r=e.i(386837);e.i(339568);var o=e.i(678084),a=e.i(931713);e.i(520036);var s=e.i(428947),l=e.i(201276);e.i(352969);var c=e.i(220424),u=e.i(211321),d=e.i(843493),h=e.i(756708),A=e.i(686017),p=e.i(558155),g=e.i(789755),m=e.i(410578),f=e.i(783149),x=e.i(184994),y=e.i(846278);e.i(924856);var b=e.i(908547),v=e.i(525908),w=e.i(377379),_=e.i(231275),E=e.i(885403),B=e.i(404954),R=e.i(332942);let C=()=>{let e=(0,r.useRef)(null),t=(0,E.useTranslations)();return(0,_.useNavigationThemeAutoSwitchPoint)("dark",e),(0,n.jsxs)(w.Section,{xs:{height:B.BASIC_FULL_SCREEN_CONTAINER_HEIGHT,position:"relative","& > video":{objectPosition:"center 236px"},backgroundColor:"#0E0E0E"},mobile:{"& > video":{objectPosition:"center"}},ref:e,children:[(0,n.jsx)(x.VideoPlayer,{src:(0,y.staticAssetPrefix)("/video/onekey-classic-security-chip.mp4"),autoPlay:!0,muted:!0,playsInl
1ine:!0,controls:!1,style:{width:"100%",height:"100%"},loop:!1}),(0,n.jsx)(v.Container,{xs:{position:"absolute",top:0,left:0,right:0,width:"100%",height:"100%",zIndex:1},children:(0,n.jsx)(m.TextIntro,{title:"title__banking_grade_security",description:"content__banking_grade_security_description",theme:"dark",xs:{marginTop:32,maxWidth:532},mobile:{marginTop:64},suffix:(0,n.jsxs)(b.Box,{children:[(0,n.jsx)(w.P,{xs:{color:"rgba(255, 255, 255, 0.48)",margin:"16px 0"},children:t("content__eal6_plus_description")}),(0,n.jsx)(R.EAL6PlusBadgeIntro,{theme:"dark"})]})})})]})};e.i(73753);var j=e.i(386120),O=e.i(631914),I=e.i(888684),Q=e.i(901666),k=e.i(220608);let S=({endPoint:e=.7,reversed:t=!1}={})=>{let i=(0,r.useRef)(null),{scrollYProgress:n}=(0,Q.useScroll)({target:i,offset:t?["end start","start start"]:["start end","end end"]}),{mobile:o}=(0,I.useMediaQuery)(),a=72*!!o,s=(0,k.useTransform)(n,[0,e],[a,0]);return{ref:i,styles:{marginLeft:s,marginRight:s,marginTop:(0,k.useTransform)(n,[0,e],[a,0]),borderRadius:(0,k.useTransform)(n,[0,e],[40*!!o,0])}}},T={src:e.i(958834).default,width:1640,height:1638,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA2klEQVR42mWMvQ7BYBSGv7bamfgbOjSRLo2hiIXEJVjEoGnEZfQSlImNW9CGiMGIRiWIBRulLBp/TdzA8Q0iUU9yhpP3eV+EPpAkGaQoKoYvhLwQBEFJktTAWLIsN/Hv+xFwm1YURR8MB1CtV3t4hfEKPlVVtdFkDOVK5eT3B/J/Ap7vaJoOmWwOwpGo8g0ZDMdxsVa73TfNGRSKJUim0jWWZTmaZhgkCELcMIyVZR1eR9uG9WYL88XS1bvdFc/zcSSKYmK32zuPpwvX2x0ujgP2+QzG1HRwOfEG1AVTp8+DlXcAAAAASUVORK5CYII="},D=()=>{let{ref:e,styles:t}=S();return(0,n.jsx)(O.motion.section,{ref:e,style:{...t,backgroundColor:"#F2F4F7"},children:(0,n.jsxs)(v.Container,{xs:{display:"flex",gap:26,alignItems:"center",justifyContent:"center",flexDirection:"column-reverse",height:B.BASIC_FULL_SCREEN_CONTAINER_HEIGHT,paddingTop:72},mobile:{flexDirection:"row",paddingTop:0},children:[(0,n.jsx)(j.StaticImage,{style:{maxWidth:820,flex:1.4,alignSelf:"stretch"},src:T,alt:"Setup Offline"}),(0,n.jsx)(m.TextIntro,{css:{flex:1},xl:{paddingRight:62},title:"title__setup_offline_security_6_minutes",description:"content__setup_offline_description"})]})})};var P=e.i(554745);let z={src:e.i(643905).default,width:828,height:1388,blurWidth:5,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAUDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDudP1yCO3EGuEWWoRjE0e1ip9CpxyDTEf/2Q=="},F={src:e.i(67226).default,width:1436,height:1800,blurWidth:6,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAYDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDstIstW8MxDSV0+XU7SMEw3CyorAZ+6QcdKYj/2Q=="},M=({prefix:e})=>{let t=(0,E.useTranslations)();return(0,n.jsxs)(b.Box,{xs:{position:"relative",flex:1,display:"flex",justifyContent:"center","& .okimage-wrapper":{marginRight:-1},alignItems:"center"},m:{"& .okimage-wrapper":{marginRight:0},maxWidth:"fit-content"},children:[(0,n.jsx)(P.OnlyDisplayRange,{below:"mobile",xs:{width:"100%"},children:(0,n.jsx)(j.StaticImage,{src:z,alt:"clear-signing-bg",objectFit:"cover",style:{width:"100%"}})}),(0,n.jsx)(P.OnlyDisplayRange,{above:"medium",xs:{width:"100%"},children:(0,n.jsx)(j.StaticImage,{src:F,alt:"clear-signing-bg",objectFit:"cover",style:{width:"100%"}})}),(0,n.jsxs)(b.Box,{xs:{display:"flex",flexDirection:"column",justifyContent:"center",zIndex:1,textAlign:"center",height:"fit-content",marginBottom:66,position:"absolute",top:56,maxWidth:"initial"},m:{padding:0,top:"auto",bottom:0,maxWidth:"40%",minHeight:104},children:[e,(0,n.jsx)(m.TextIntro,{xs:{padding:"0 60px"},m:{padding:"0"},level:"2",theme:"light",title:"Clear Signing",description:t("content__preview_on_chain_transactions_before_confirm")})]})]})};var U=e.i(664450),U=U,L=e.i(254793);let K={src:e.i(381281).default,width:1444,height:1800,blurWidth:6,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAYDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD0hftf2yVpGh+z4AjUL82e5Jpkq5//2Q=="},W=()=>{let e=(0,L.useTheme)(),t=(0,E.useTranslations)();return(0,n.jsxs)(b.Box,{xs:{position:"relative",flex:1,display:"flex",justifyContent:"center",alignItems:"center",marginBottom:85},m:{maxWidth:"fit-content",marginBottom:0},children:[(0,n.jsx)(j.StaticImage,{src:K,alt:"sign-guard-section-bg",objectFit:"cover",style:{width:"100%",height:"100%"}}),(0,n.jsx)(m.TextIntro,{xs:{display:"flex",flexDirection:"column",justifyContent:"center",zIndex:1,textAlign:"center",height:"fit-content","& .text-intro-title":{display:"flex",justifyContent:"center"},marginBottom:-14,position:"absolute",bottom:0,maxWidth:"initial",padding:"0 24px"},m:{padding:0,marginBottom:66,minHeight:104,maxWidth:400},level:"2",theme:"light",titleText:"Sign Guard",title:(0,n.jsx)(U.default,{style:{height:26,color:e.colors.gray900,width:"fit-content"}}),description:t("content__signguard_analyzes_contracts_description")})]})},V=()=>{let e=(0,r.useRef)(null);(0,_.useNavigationThemeAutoSwitchPoint)("light",e);let t=(0,E.useTranslations)(),i=(0,r.useMemo)(()=>(0,n.jsx)(m.TextIntro,{theme:"light",title:t("title__sign_with_confidence"),description:t("content__see_every_detail_detect_every_threat"),xs:{padding:"0 24px 48px 24px",textAlign:"center"}}),[t]);return(0,n.jsxs)(w.Section,{ref:e,xs:{display:"flex",flexDirection:"column",justifyContent:"center",height:"fit-content",backgroundColor:"#DFE2E5",position:"relative"},m:{flexDirection:"row",maxHeight:"clamp(900px, 100vh, 1200px)",overflow:"hidden"},children:[(0,n.jsx)(P.OnlyDisplayRange,{above:"medium",css:{padding:0,position:"absolute",top:64,zIndex:1},children:i}),(0,n.jsx)(M,{prefix:(0,n.jsx)(P.OnlyDisplayRange,{below:"mobile",children:i})}),(0,n.jsx)(W,{})]})},N={src:e.i(112318).default,width:2880,height:1620,blurWidth:8,blurHeight:5,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAFAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD0y23WmsvaLI7xypv+c5249Pzpgf/Z"},H=()=>(0,n.jsxs)(w.Section,{xs:{position:"relative",display:"flex",flexDirection:"column",alignItems:"center",background:"#F7FAFC",overflow:"hidden",height:"600px"},mobile:{height:B.BASIC_FULL_SCREEN_CONTAINER_HEIGHT},children:[(0,n.jsx)(v.Container,{xs:{width:"100%",paddingTop:"32px",display:"flex",justifyContent:"start"},mobile:{justifyContent:"end",paddingTop:"64px",position:"absolute",zIndex:1,top:0,left:0,right:0},children:(0,n.jsx)(m.TextIntro,{xs:{maxWidth:532},title:"title__trade_crypto_without_kyc",description:"content__buy_swap_hold_crypto_without_kyc"})}),(0,n.jsx)(P.OnlyDisplayRange,{above:"mobile",xs:{flex:1},children:(0,n.jsx)(j.StaticImage,{style:{width:"100%",height:"100%"},objectFit:"cover",src:N,alt:"Sign Guard"})}),(0,n.jsx)(P.OnlyDisplayRange,{below:"small",children:(0,n.jsx)(j.StaticImage,{style:{width:"100%",height:"100%",transform:"scale(1.5) translate(0, 60px)"},objectFit:"contain",objectPosition:"50px center",src:N,alt:"Sign Guard"})})]}),Y={src:e.i(335107).default,width:620,height:758,blurWidth:7,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAcDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDf8I65r2o3yl7KRdLMZO+YYYHsBn/69UI//9k="},J={src:e.i(800662).default,width:620,height:758,blurWidth:7,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAcDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwA0rVNTf4hS276hM1uJ5wIi3AwGx+WKYj
1//2Q=="},G={src:e.i(92818).default,width:620,height:758,blurWidth:7,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAcDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwBmk3+pN8RZYpNSuXg+0TgRGQ7QMNgY9sUxH//Z"},Z={src:e.i(210937).default,width:620,height:758,blurWidth:7,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAcDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwBmlX2pN8R5Y21K6aDz5x5LSkr0bHHtTEf/2Q=="},q={borderRadius:16,overflow:"hidden"},X=()=>{let e=(0,E.useTranslations)();return[{image:(0,n.jsx)(j.StaticImage,{style:q,src:Y,alt:"Step 1"}),children:e("content__tamper_evident_packaging_ensures_you_can_see_if_box_opened")},{image:(0,n.jsx)(j.StaticImage,{style:q,src:J,alt:"Step 2"}),children:e("content__firmware_attestation_on_first_activation_checks_authentic_firmware")},{image:(0,n.jsx)(j.StaticImage,{style:q,src:G,alt:"Step 3"}),children:e("content__pin_protection_with_data_wipe_after_multiple_failed_attempts")},{image:(0,n.jsx)(j.StaticImage,{style:q,src:Z,alt:"Step 4"}),children:e("content__auto_wipe_if_intrusion_detected_such_as_firmware_modification")}]};e.s(["useStepCardData",0,X],385467),e.s([],282326);var $=e.i(695113),ee=e.i(586538);let et=(0,y.staticAssetPrefix)("/images/classic1s/cardImage.svg"),ei=(0,y.staticAssetPrefix)("/images/classic1s/normal.svg");function en(){let e=(0,E.useTranslations)(),{classic1s:t,classic1sPure:i,classic1sPureBtcOnly:n}=(0,ee.useOneKeyProduct)();return{title:e("title__technical_specifications"),images:{cardImageUrl:et,largeImageUrl:ei,mediumImageUrl:ei,smallImageUrl:ei},content:{name:"OneKey Classic 1S",variantGid:t.skuList[0]?.shopifyGid,left:[{title:e("title__size_and_weight"),content:[{title2:e("title__size"),description:"86 × 52 × 5.2 (mm)"},{title2:e("title__weight"),description:"20.5g"}]},{title:e("title__chip_and_connector"),content:[{title2:e("title__connector"),description:"USB Type-C"},{title2:e("title__certifications_and_standards"),descriptions:["EMVCo Certified, CC EAL 6+ "]},{title2:e("title__chips"),description:"THD89"}]},{title:e("title__display"),content:[{title2:e("title__display"),description:e("content__monochrome_display")},{title2:e("title__resolution"),description:"128 × 64"}]},{title:e("title__temperature_range"),content:[{title2:e("title__operating_temperature"),description:e("content__classic1s_operating_temperature")},{title2:e("title__storage_temperature"),description:e("content__classic1s_storage_temperature")}]}],right:[{title:e("title__power_and_battery"),content:[{title2:e("title__battery"),description:e("content__classic1s_battery_life")},{title2:e("title__cycle_life"),description:e("content__classic1s_cycle_life")},{title2:e("title__charging_and_storage"),description:e("content__classic1s_charging_storage")}],annotation:e("content__battery_lab_data_note")},{title:e("title__wireless"),content:[{description:e("content__bluetooth")}]},{title:e("title__materials"),content:[{description:e("content__plastic")}]},{title:e("title__compatibility"),content:[{title2:e("menu__desktop"),descriptions:["Windows 10+,","macOS 10.11+,","Linux (Ubuntu 12.04+, Fedora 21+, Debian 8)"]},{title2:e("menu__mobile"),descriptions:["iOS 14.0+","Android 8.0+"]}]},{title:e("title__in_the_box"),content:[{descriptions:[e("content__int_hardware_wallet",{value:1}),e("content__int_usb_type_c_cable",{value:1}),e("content__int_recovery_sheet",{value:3}),e("content__int_sticker",{value:1})]}]}]},content2:{name:"OneKey Classic 1S Pure",variantGid:i.skuList[0]?.shopifyGid,left:[{title:e("title__size_and_weight"),content:[{title2:e("title__size"),description:"86 × 52 × 5.2 (mm)"},{title2:e("title__weight"),description:"18.3 g"}]},{title:e("title__chip_and_connector"),content:[{title2:e("title__connector"),description:"USB Type-C"},{title2:e("title__certifications_and_standards"),descriptions:["EMVCo Certified, CC EAL 6+ "]},{title2:e("title__chips"),description:"THD89"}]},{title:e("title__display"),content:[{title2:e("title__display"),description:e("content__monochrome_display")},{title2:e("title__resolution"),description:"128 × 64"}]},{title:e("title__temperature_range"),content:[{title2:e("title__operating_temperature"),description:e("content__classic1s_pure_operating_temperature")},{title2:e("title__storage_temperature"),description:e("content__classic1s_pure_storage_temperature")}]}],right:[{title:e("title__power_and_battery"),content:[{description:e("content__batteryless_usb_c_operation")}]},{title:e("title__wireless"),content:[{description:e("content__bluetooth")}]},{title:e("title__materials"),content:[{description:e("content__plastic")}]},{title:e("title__compatibility"),content:[{title2:e("menu__desktop"),descriptions:["Windows 10+,","macOS 10.11+,","Linux (Ubuntu 12.04+, Fedora 21+, Debian 8)"]},{title2:e("menu__mobile"),descriptions:["iOS 14.0+","Android 8.0+"]}]},{title:e("title__in_the_box"),content:[{descriptions:[e("content__int_hardware_wallet",{value:1}),e("content__int_usb_type_c_cable",{value:1}),e("content__int_recovery_sheet",{value:3}),e("content__int_sticker",{value:1})]}]}]},content3:{name:"Bitcoin-only",variantGid:n.skuList[0]?.shopifyGid,left:[{title:e("title__size_and_weight"),content:[{title2:e("title__size"),description:"86 × 52 × 5.2 (mm)"},{title2:e("title__weight"),description:"18.3 g"}]},{title:e("title__chip_and_connector"),content:[{title2:e("title__connector"),description:"USB Type-C"},{title2:e("title__certifications_and_standards"),descriptions:["EMVCo Certified, CC EAL 6+ "]},{title2:e("title__chips"),description:"THD89"}]},{title:e("title__display"),content:[{title2:e("title__display"),description:e("content__monochrome_display")},{title2:e("title__resolution"),description:"128 × 64"}]},{title:e("title__temperature_range"),content:[{title2:e("title__operating_temperature"),description:e("content__classic1s_pure_operating_temperature")},{title2:e("title__storage_temperature"),description:e("content__classic1s_pure_storage_temperature")}]}],right:[{title:e("title__power_and_battery"),content:[{description:e("content__batteryless_usb_c_operation")}]},{title:e("title__wireless"),content:[{description:e("content__bluetooth")}]},{title:e("title__materials"),content:[{description:e("content__plastic")}]},{title:e("title__compatibility"),content:[{title2:e("menu__desktop"),descriptions:["Windows 10+,","macOS 10.11+,","Linux (Ubuntu 12.04+, Fedora 21+, Debian 8)"]},{title2:e("menu__mobile"),descriptions:["iOS 14.0+","Android 8.0+"]}]},{title:e("title__in_the_box"),content:[{descriptions:[e("content__int_hardware_wallet",{value:1}),e("content__int_usb_type_c_cable",{value:1}),e("content__int_recovery_sheet",{value:3}),e("content__int_sticker",{value:1})]}]}]}}}e.s(["useClassic1sTechSpecsData",0,en],398460),e.s([],586180);var er=e.i(776283);let eo=({reviewsSlot:e,selectedVariantGid:t})=>{let[i,x]=(0,r.useState)(!1),y=X(),_=(0,L.useTheme)(),{classic1s:E}=(0,ee.useOneKeyProduct)(),B=en();return(0,n.jsx)(b.Box,{xs:{display:"flex",flexDirection:"column",gap:40,paddingTop:"40px 0px"},mobile:{gap:120,paddingTop:"120px 0px"},children:(0,n.jsxs)("div",{children:[(0,n.jsxs)(u.DetailSection,{title:"title__introducing",anchorTitle:"title__introducing",anchorId:"introducing",titleVisible:!0,titleProps:{xs:{marginBottom:8,marginTop:80,color:_.colors.gray4
100},mobile:{marginTop:120}},switchPoint:!0,children:[(0,n.jsx)(m.TextIntro,{xs:{textAlign:"center",marginBottom:24,"& .text-intro-title":{whiteSpace:"normal"}},mobile:{marginBottom:40},title:E.name}),(0,n.jsx)(D,{}),(0,n.jsx)(V,{}),(0,n.jsx)(p.SupportedCryptos,{theme:"light"}),(0,n.jsx)(A.SecuritySection,{}),(0,n.jsx)(C,{}),(0,n.jsx)(c.BeforeUse,{cardData:y,theme:"light"}),(0,n.jsx)(w.Section,{xs:{padding:"80px 0"},mobile:{padding:"120px 0"},children:(0,n.jsx)(d.OneKeyApp,{})}),(0,n.jsx)(H,{}),(0,n.jsx)(w.Section,{xs:{padding:"80px 0"},mobile:{padding:"120px 0"},children:(0,n.jsx)(f.TrustedChoice,{})}),(0,n.jsx)(v.Container,{xs:{paddingTop:40},children:(0,n.jsxs)(b.Box,{xs:{display:"flex",gap:40,flexDirection:"column"},m:{flexDirection:"row"},children:[(0,n.jsx)(b.Box,{xs:{flex:1},children:(0,n.jsx)(o.CompatibilitySection,{productFilter:"classic1s"})}),(0,n.jsx)(b.Box,{xs:{flex:1},children:(0,n.jsx)(g.TechnicalSpecificationsSection,{activeVariantGid:t,specsOpen:i,onSpecsOpenChange:x,...B})})]})})]}),(0,n.jsx)(l.SectionContent,{title:"title__have_a_question",alignTitle:"left",children:(0,n.jsx)(a.FAQCardList,{items:$.SHOP_FAQ_ITEMS})}),e,(0,n.jsx)(s.ProductCompare,{}),(0,n.jsx)(b.Box,{xs:{paddingTop:40},children:(0,n.jsx)(h.RecommendSection,{exclude:["classic1s","classic1sPure"],productTypes:["pro","lite","keyTag"]})}),(0,n.jsx)(v.Container,{xs:{paddingBottom:40,paddingTop:40},mobile:{paddingBottom:80,paddingTop:80},children:(0,n.jsx)(er.Subscribe,{})})]})})};e.i(133087);var ea=e.i(313083),es=e.i(547633),el=e.i(647045),ec=e.i(792694);let eu=(0,ec.atom)("white");function ed(){return(0,ec.useAtom)(eu)}function eh(e){let t=(0,r.useRef)(null),{large:i}=(0,I.useMediaQuery)(),[n,o]=(0,r.useState)("ready"),a=(0,el.useInView)(t,{amount:"some"}),s=(0,el.useInView)(t,{amount:.5});return(0,r.useEffect)(()=>{!a&&(i||e?.forceReset)?o("reset"):s&&("reset"===n||"ready"===n)&&o("play")},[s,a,n,i,e?.forceReset]),{videoStatus:n,videoRef:t}}e.s(["useOnekeyCurrentColor",0,ed,"useOnekeyCurrentVariantGid",0,function(e){let[t]=ed();return(0,r.useMemo)(()=>{let i=e.find(e=>"white"===e.color),n="white"===t?i:e.find(e=>"white"!==e.color);return n?.shopifyGid},[e,t])}],658062);var eA=e.i(690096),eA=eA,ep=e.i(149320),eg=e.i(134939),em=e.i(801514);let ef=e=>{let{children:t,isWhite:i}=e,o=(0,L.useTheme)(),{isIOS:a}=(0,em.useRuntimeDetect)(),[s,l]=(0,r.useState)(!1);return((0,r.useEffect)(()=>
1{l(a)},[a]),s)?(0,n.jsxs)(eg.AdaptiveLink,{target:"_blank",to:(0,y.staticAssetPrefix)(i?"/onekey-pro-ar/onekey-pro-light-4.usdz":"/onekey-pro-ar/onekey-pro-dark-4.usdz"),prefetch:!1,children:[(0,n.jsxs)(b.Box,{xs:{display:"flex",gap:4,color:i?o.colors.gray900:"white",transition:o.transitions.allEaseInOut,...o.text.medium300},children:[(0,n.jsx)(eA.default,{width:20,height:20}),(0,n.jsx)(ep.AdaptiveI18n,{name:"content__use_ar_to_see_onekey_pro"})]}),t]}):(0,n.jsx)("div",{})};var ex=e.i(189382),ey=e.i(721629),eb=e.i(799182);let ev=e=>{let{children:t,yRange:i,background:o="#f8f9fd",mixBlendMode:a="normal"}=e,{isMobilePhone:s}=(0,em.useRuntimeDetect)(),l=(0,ex.useMountedOnBrowser)()&&s,{ref:c,y:u}=function(e){let t=(0,r.useRef)(null),{scrollYProgress:i}=(0,Q.useScroll)({target:t,offset:["start center","end start"]}),n=(0,k.useTransform)(i,[0,1],e.yRange);return{scrollYProgress:i,ref:t,y:n}}({yRange:i}),d=(0,ey.useMotionValue)(0),h=(0,eb.useSpring)(l?d:u,{damping:20,stiffness:100});return(0,n.jsx)(b.Box,{xs:{borderRadius:20,overflow:"hidden",background:o,position:"relative"},m:{borderRadius:40},as:l?"div":O.motion.div,ref:c,initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},style:{},transition:{duration:.8},viewport:{once:!0,amount:.4},children:(0,n.jsx)(O.motion.div,{style:{y:h,mixBlendMode:a},children:t})})},ew={src:e.i(954114).default,width:1956,height:1956,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDzXSrXw88Ky6lfSqwPzQRoQzD/AHiMCom5Je6i4KLfvOx//9k="},e_={src:e.i(962416).default,width:1304,height:1304,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD07VZNRSIm0tfPzwVEgU0puSXuoqKi37zP/9k="},eE={src:e.i(917373).default,width:1956,height:1956,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDyL7PHjGWz607Af//Z"},eB={src:e.i(218203).default,width:1304,height:1304,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1k/aPPyJIxFt+7sOc/XPT8KYj/9k="},eR=e=>{let{children:t,setIsShowColorRadio:i,product:o,hideFeatureHeader:a}=e,s=(0,r.useRef)(null),l=(0,L.useTheme)(),[c,u]=ed(),d="white"===c,{medium:h}=(0,I.useMediaQuery)(),A=d?"#F8F9FA":"black",p=d?"darken":"normal",{videoRef:g,videoStatus:m}=eh();(0,_.useNavigationThemeAutoSwitchPoint)("light",s);
1let f=(0,el.useInView)(s,{amount:.1,margin:"100% 0px 0px 0px"});(0,r.useEffect)(()=>{i(f)},[f,i]);let w=(e,t)=>h?a?t:e:[0,0];return(0,n.jsx)("section",{ref:s,style:{position:"relative",zIndex:10,background:c,transition:l.transitions.allEaseInOut},children:(0,n.jsxs)(v.Container,{children:[(0,n.jsxs)(b.Box,{xs:{paddingTop:80,paddingBottom:80,display:"grid",gap:8},m:{gridTemplateColumns:"1fr 1fr",paddingTop:120,paddingBottom:120},children:[(0,n.jsxs)("div",{style:{display:"flex",flexDirection:"column"},children:[!a&&(0,n.jsxs)(b.Box,{xs:{display:"grid",gap:24,paddingBottom:20},children:[(0,n.jsx)(ea.FeatureTags,{color:d?l.colors.gray900:"white",featureTags:o.featureTags,isEAL6Plus:o.isEAL6Plus}),(0,n.jsx)(b.Box,{xs:{display:"flex"},children:(0,n.jsx)(es.ColorRadio,{isBackgroundColorByValue:!0,selectedValue:c,setSelectedValue:u})}),(0,n.jsx)(ef,{isWhite:d})]}),(0,n.jsx)("div",{style:{flex:1},children:(0,n.jsx)("div",{ref:g,style:{position:"sticky",top:"12vh"},children:(0,n.jsx)(ev,{background:A,mixBlendMode:p,yRange:[50,-50],children:(0,n.jsx)(x.VideoPlayer,{src:(0,y.staticAssetPrefix)(d?"/onekey-pro-videos/02-gallery-01-light-2.mp4":"/onekey-pro-videos/02-gallery-01-dark-2.mp4"),loop:!1,autoPlay:!1,status:m})},d?"01-gallery-01":"01-gallery-01-dark")})})]}),(0,n.jsx)(b.Box,{xs:{position:"relative"},children:(0,n.jsxs)(b.Box,{xs:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8},m:a?{gridTemplateColumns:"1fr"}:{gridTemplateColumns:"1fr",position:"absolute",top:0,left:0,right:0,bottom:0},children:[(0,n.jsx)(ev,{background:A,mixBlendMode:p,yRange:w([-100,-160],[-50,50]),children:d?(0,n.jsx)(j.StaticImage,{style:{display:"block",width:"100%"},src:e_,alt:"OneKey Pro Product Gallery Section 2"}):(0,n.jsx)(j.StaticImage,{style:{display:"block",width:"100%"},src:ew,alt:"OneKey Pro Product Gallery Section 2"})}),(0,n.jsx)("div",{style:{borderRadius:40,border:d?"none":"1px solid rgba(255, 255, 255, 0.08)",overflow:"hidden"},children:(0,n.jsx)(ev,{background:A,mixBlendMode:p,yRange:w([-30,-90],[0,90]),children:d?(0,n.jsx)(j.StaticImage,{style:{display:"block",width:"100%"},src:eB,alt:"OneKey Pro Product Gallery Section 3"}):(0,n.jsx)(j.StaticImage,{style:{display:"block",width:"100%"},src:eE,alt:"OneKey Pro Product Gallery Section 3"})})})]})})]}),t]})})};e.s(["ProductGallerySection",0,eR],518965),e.s([],796777);var eC=e.i(392697),ej=e.i(9253),eO=e.i(129669);let eI=e=>{let{title:t,description:i,prefix:o,suffix:a,theme:s="light",dynamicComponent:l,...c}=e,u=(0,L.useTheme)(),d=(0,E.useTranslations)(),h=e=>d.has(e)?d.raw(e):e,A=(0,r.useRef)(null),p=(0,el.useInView)(A),[g,m]=(0,r.useState)(!1);(0,r.useEffect)(()=>{p&&m(!0)},[p]);let f=!!i;return(0,n.jsx)(b.Box,{...c,ref:A,children:[o,(0,n.jsx)(b.Box,{className:"text-intro-title",as:"h3",xs:{...u.text.medium700,color:"light"===s?u.colors.gray900:u.colors.white,whiteSpace:"pre-wrap",textWrap:"pretty"},m:u.text.medium800,children:h(t)},"title"),i&&(0,n.jsx)(eC.Paragraph,{xs:{marginTop:16,...u.text.normal400,color:"light"===s?u.colors.gray700:(0,ej.hexToRgba)(u.colors.white,.85),whiteSpace:"pre-wrap","& a":{color:"inherit",textDecoration:"underline","&:hover":{color:"light"===s?u.colors.gray900:u.colors.white}}},mobile:{...u.text.normal400},lineSpacing:12,dynamicComponent:l,children:h(i)},"description"),a].map((e,t)=>(0,n.jsx)(eO.SequenceFadeIn,{index:t,disabled:!f,disableDelayOnMediumSize:!f,inViewOverride:g,children:e},t))})},eQ={src:e.i(848205).default,width:828,height:1040,blurWidth:6,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAYDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDzUaeHYopO5PvUAf/Z"},ek={src:e.i(499761).default,width:1440,height:1800,blurWidth:6,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAYDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDzxNMWWV4lzuj+8KAP/9k="},eS=()=>(0,n.jsxs)(b.Box,{xs:{position:"relative",flex:1,display:"flex",justifyContent:"center","& .okimage-wrapper":{marginRight:-1},alignItems:"center"},m:{"& .okimage-wrapper":{marginRight:0},maxWidth:"fit-content"},children:[(0,n.jsx)(P.OnlyDisplayRange,{below:"mobile",xs:{width:"100%"},children:(0,n.jsx)(j.StaticImage,{src:eQ,alt:"clear-signing-bg",objectFit:"cover",style:{width:"100%"}})}),(0,n.jsx)(P.OnlyDisplayRange,{above:"medium",xs:{width:"100%"},children:(0,n.jsx)(j.StaticImage,{src:ek,alt:"clear-signing-bg",objectFit:"cover",style:{width:"100%"}})}),(0,n.jsx)(m.TextIntro,{xs:{display:"flex",flexDirection:"column",justifyContent:"center",zIndex:1,textAlign:"center",height:"fit-content",marginBottom:66,position:"absolute",top:0,maxWidth:"initial",padding:"0 60px"},m:{padding:0,top:"auto",bottom:0,maxWidth:"40%",minHeight:104},level:"2",theme:"dark",title:"Clear Signing",description:"content__preview_on_chain_transactions_before_confirm"})]});var U=U;let eT={src:e.i(648836).default,width:1440,height:1800,blurWidth:6,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAYDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDydghVNo
1IIHze5oEj/2Q=="},eD=()=>{let e=(0,L.useTheme)();return(0,n.jsxs)(b.Box,{xs:{position:"relative",flex:1,display:"flex",justifyContent:"center",alignItems:"center",marginBottom:40},m:{maxWidth:"fit-content",marginBottom:0},children:[(0,n.jsx)(j.StaticImage,{src:eT,alt:"sign-guard-section-bg",objectFit:"cover",style:{width:"100%"}}),(0,n.jsx)(m.TextIntro,{xs:{display:"flex",flexDirection:"column",justifyContent:"center",zIndex:1,textAlign:"center",height:"fit-content","& .text-intro-title":{display:"flex",justifyContent:"center"},marginBottom:32,position:"absolute",bottom:0,maxWidth:"initial",padding:"0 24px"},m:{padding:0,marginBottom:66,minHeight:104,maxWidth:400},level:"2",theme:"dark",title:(0,n.jsx)(U.default,{style:{height:26,color:e.colors.white,width:"fit-content"}}),description:"content__signguard_analyzes_contracts_description"})]})},eP=()=>{let e=(0,r.useRef)(null);(0,_.useNavigationThemeAutoSwitchPoint)("dark",e);let t=(0,L.useTheme)();return(0,n.jsxs)(w.Section,{ref:e,xs:{display:"flex",flexDirection:"column",justifyContent:"center",height:"fit-content",background:t.colors.gray900,position:"relative"},m:{flexDirection:"row",maxHeight:"clamp(900px, 100vh, 1200px)",overflow:"hidden"},children:[(0,n.jsx)(eI,{xs:{padding:"56px 24px 48px 24px",textAlign:"center"},m:{padding:0,position:"absolute",top:64,zIndex:1},theme:"dark",title:"title__sign_with_confidence",description:"content__see_every_detail_detect_every_threat"}),(0,n.jsx)(eS,{}),(0,n.jsx)(eD,{})]})};e.s(["SignSection",0,eP],858338);let ez={src:e.i(76148).default,width:828,height:1168,blurWidth:6,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAYAAADaxo44AAAAzElEQVR42j2OzQoBQQCAZ3+YmZ3ZadnGsqy1lKRWfoo4iA3tllIoDsJFknLxDG6uiodw9gwew5toU77j910+AP4IQIK6hHgXUnut/JQgJKLEbBBzrGJjBGG8FQWCGJEgZhcWd16a5ds0NaDU3ioA826Gxpy3buQf9U7/nil5rmJOUBh8QtRPpVa9LY6rp7fZTZHehACquZaWap6ShVGpHey9YmPuUmuJgYQMkTsB43ZP16yAkfQMy0pWBjH3Snn5TFj+QLAxRKKsiuHpF2u6GsiUbS6kAAAAAElFTkSuQmCC"},eF={src:e.i(519595).default,width:2560,height:2560,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA8klEQVR42l3Oy2rCQBQG4InJzOTMTDO5VHNpqxFLF72ktGlLBUVIK4YuhOKidNGKCK4EF4KPIW58AJ/ArY8g+FKKFxDP9jv8/4/QyWWwkdGdMhWFNpc3w7Nj4xo1Y+alNrgNSq0XjI1I3ZuCMDWaQror87IeCb9usOBbV3Vv96DxkIjz56m0/EX0WpuE90kFcp+U2u8YKSoo4KUB4/ayWCrNWt2fedrr/UG2CqLwzxCRDwRyH7703gbOVe0pTjqVu/JvzC9asEnW0AZ1cL+IDKo8GyaOlW+YW2R5bduPRRHbj2Pp3I64vO5zFjRBJdZhPVoDcS4dMhfMhAkAAAAASUVORK5CYII="},eM=()=>{let e=(0,n.jsx)(j.StaticImage,{src:eF,alt:"wireless-charging-bg"}),t=(0,n.jsx)(j.StaticImage,{src:ez,alt:"wireless-charging-bg",style:{width:"100%"}});return(0,n.jsxs)(b.Box,{xs:{position:"relative",height:770,background:"#101011",paddingTop:138,maxHeight:880},m:{height:B.BASIC_FULL_SCREEN_CONTAINER_HEIGHT,paddingTop:0},children:[(0,n.jsx)(P.OnlyDisplayRange,{above:"medium",css:{height:"100%",position:"absolute",top:-160,right:-360,maxWidth:1280},l:{right:-80},children:e}),(0,n.jsx)(P.OnlyDisplayRange,{below:"mobile",css:{height:"100%",width:"100%"},children:t}),(0,n.jsx)(v.Container,{xs:{paddingTop:64,position:"absolute",top:0,left:0,right:0,zIndex:1},children:(0,n.jsx)(m.TextIntro,{xs:{maxWidth:532},theme:"dark",title:"title__true_wireless_secure_bluetooth_qi2",description:"content__encrypted_bluetooth_qi2_charging_description"})})]})},eU={src:e.i(61376).default,width:828,height:960,blurWidth:7,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAcDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDz3av2aI75DKCd57H0qb6kJu5//9k="},eL={src:e.i(793727).default,width:2880,height:1620,blurWidth:8,blurHeight:5,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAFAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDzhYUWD7oLA53H+VTfUnqf/9k="},eK=(0,n.jsx)(j.StaticImage,{src:eL,alt:"quantum-bg",style:{height:"100%"},objectFit:"cover"}),eW=(0,n.jsx)(j.StaticImage,{src:eU,alt:"quantum-bg",objectFit:"cover",style:{height:"fit-content"}}),eV=()=>{let e=(0,L.useTheme)(),{ref:t,styles:i}=S({reversed:!0});return(0,_.useNavigationThemeAutoSwitchPoint)("dark",t),(0,n.jsxs)(b.Box,{as:O.motion.div,style:i,xs:{position:"relative",height:"fit-content",background:e.colors.gray900,overflow:"hidden"},mobile:{height:B.BASIC_FULL_SCREEN_CONTAINER_HEIGHT},ref:t,children:[(0,n.jsx)(v.Container,{xs:{position:"relative",zIndex:1,marginBottom:-159,paddingTop:54,paddingBottom:98,"&::after":{position:"absolute",content:'""',top:0,left:0,right:0,bottom:0,background:"linear-gradient(180deg, #101111 0%, #2E2F2F 8
10.85%, rgba(41, 42, 43, 0.00) 100%)"}},mobile:{"&::after":{display:"none"},marginBottom:0,paddingBottom:0,paddingTop:64,position:"absolute",top:0,left:0,right:0,zIndex:1},children:(0,n.jsx)(m.TextIntro,{xs:{maxWidth:532,position:"relative",zIndex:10},theme:"dark",title:"title__quantum_ready_architecture",description:"content__quantum_ready_architecture_description"})}),(0,n.jsx)(P.OnlyDisplayRange,{above:"mobile",css:{height:"100%"},children:eK}),(0,n.jsx)(P.OnlyDisplayRange,{below:"small",children:eW})]})};var eN=e.i(480341),eH=e.i(83934),eY=e.i(362054),eJ=e.i(414393),eG=e.i(788289),eZ=e.i(40498);let eq=e=>{let{children:t,title:i,content:r,annotation:o,active:a=!1,onClose:s=()=>{},onOpen:l=()=>{}}=e,c=(0,L.useTheme)(),u=(0,n.jsxs)(b.Box,{xs:{paddingLeft:40,position:"relative"},children:[(0,n.jsx)(b.Box,{xs:{opacity:+!a,transition:c.transitions.allEase,transform:a?"rotate(45deg)":"rotate(0deg)"},children:(0,n.jsx)(eJ.AddIcon,{color:"white",width:24,height:24})}),(0,n.jsx)(b.Box,{xs:{position:"absolute",top:0,opacity:+!!a,transform:a?"rotate(0deg)":"rotate(-45deg)",transition:c.transitions.allEase},children:(0,n.jsx)(eG.CloseIcon,{width:24,height:24})})]});return(0,n.jsxs)(b.Box,{xs:{borderTop:"1px solid rgba(255, 255, 255, 0.16)",paddingTop:16,paddingBottom:16},onClick:()=>{a?s():l()},children:[(0,n.jsxs)(b.Box,{xs:{cursor:"pointer",justifyContent:"space-between",display:"flex"},children:[(0,n.jsx)(b.Box,{xs:c.text.normal400,l:c.text.normal500,children:i}),u]}),(0,n.jsx)(eZ.AnimatePresence,{initial:!1,children:a&&(0,n.jsxs)(O.motion.div,{initial:{height:0,opacity:0},animate:{height:"auto",opacity:1},exit:{height:0,opacity:0},transition:{duration:.2},style:{overflow:"hidden",opacity:.5},children:[(0,n.jsx)(b.Box,{xs:{marginTop:8},children:r.map((e,t)=>(0,n.jsxs)(b.Box,{xs:{paddingTop:8,paddingBottom:8,display:"flex",alignItems:"flex-start",justifyContent:"space-between",...c.text.normal100,opacity:.5,color:c.colors.white},l:{paddingTop:12,paddingBottom:12,...c.text.normal200},children:[(0,n.jsx)(b.Box,{children:e.title2}),(0,n.jsx)(b.Box,{xs:{maxWidth:"75%",textAlign:"right",whiteSpace:"pre-wrap"},children:e.description})]},`${JSON.stringify(e)}${t}`))}),o&&(0,n.jsx)(b.Box,{xs:{padding:"12px 0",color:c.colors.white48,...c.text.normal100,opacity:.5},children:o})]})}),t]})},eX=e=>{let{content:t}=e,i=(0,L.useTheme)(),o=[...t.left],[a,s]=(0,r.useState)(-1);return(0,n.jsx)(eY.Flex,{xs:{justifyContent:"center",flexDirection:"column",paddingTop:36,paddingBottom:36,color:i.colors.white},s:{marginLeft:"auto",marginRight:"auto"},m:{paddingBottom:0,width:"auto"},children:o.map((e,t)=>(0,n.jsx)(eq,{active:a===t,onClose:()=>s(-1),onOpen:()=>s(t),...e},JSON.stringify(e)))})};var e$=e.i(191959),e0=e.i(244399);function e1(){let{xlarge:e,large:t,xxlarge:i}=(0,I.useMediaQuery)(),{height:n=0}=(0,eN.useWindowSize)();return i&&n>1100?{width:800,height:800}:e&&n>1e3?{width:760,height:760}:t&&n>800?{width:600,height:600}:n>700?{width:500,height:500}:{width:400,height:400}}let e2="State Machine 1",e4=e=>{let{children:t,scrollYProgress:i}=e,o=(0,E.useTranslations)(),a=e1(),{rive:s,RiveComponent:l}=(0,e$.useRive)({src:(0,y.staticAssetPrefix)("/rive/onekey_pro_specs_-_1px_14.riv"),autoplay:!0,stateMachines:e2,artboard:"Technical"}),c=(0,r.useRef)(null),u=(0,e$.useStateMachineInput)(s,e2,"scroll Port");return(0,e0.useMotionValueEvent)(i,"change",e=>{void 0!==u?.value&&(e<.65?u.value=0:u.value=100*(e-.65)*3)}),(0,r.useEffect)(()=>{if(s){var e;s.setTextRunValue("TextCam",o("content__camera")),s.setTextRunValue("TextChips","EAL 6+ Chips"),s.setTextRunValue("TextBattery",(e=o("title__battery"))&&e[0]?e[0].toUpperCase()+e.slice(1):""),s.setTextRunValue("TextTouchScreen",o("content__multi_touch_screen")),s.setTextRunValue("TextBluetooth",o("content__bluetooth")),s.setTextRunValue("TextFingerprint",o("content__fingerprint_key"))}},[s,o]),(0,n.jsxs)("div",{ref:c,style:a,children:[(0,n.jsx)(l,{}),t]})},e8=e=>{let{children:t,content:i,scrollYProgress:r}=e,o=(0,L.useTheme)(),{medium:a}=(0,I.useMediaQuery)(),[s,l,c]=(0,eH.useScrollOverflowStyle)(o.colors.gray700);return(0,n.jsxs)("section",{children:[(0,n.jsx)(b.Box,{xs:{backgroundColor:o.colors.gray700,borderBottomLeftRadius:40,borderBottomRightRadius:40},m:{borderBottomLeftRadius:0,borderBottomRightRadius:0},children:(0,n.jsx)(v.Container,{children:(0,n.jsxs)(b.Box,{m:{display:"flex",alignItems:"center",justifyContent:"space-between",height:"100vh"},children:[(0,n.jsx)(b.Box,{css:c,xs:{position:"relative",height:"calc(100% - 120px)",display:"flex",alignItems:"center"},children:(0,n.jsx)(b.Box,{ref:s,xs:{paddingTop:80,paddingBottom:40,overflowY:"auto",width:"100%","&::-webkit-scrollbar":{display:"none"},"&":{scrollbarWidth:"none"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"transparent"},"&::-webkit-scrollbar-thumb:hover":{background:"transparent"}},m:{maxWidth:500,width:420,paddingBottom:56,paddingTop:56,maxHeight:"100%"},l:{paddingRight:8,width:500,maxWidth:600},xl:{width:600,maxWidth:700},children:(0,n.jsxs)(b.Box,{ref:l,children:[(0,n.jsx)(b.Box,{xs:{color:"white",...o.text.medium700},l:{...o.text.medium800},children:(0,n.jsx)(ep.AdaptiveI18n,{name:"title__technical_specifications"})}),(0,n.jsx)(eX,{content:i})]})})}),a&&(0,n.jsx)(e4,{scrollYProgress:r})]})})}),t]})};var e7=e.i(752859);e.i(709906);var e6=e.i(652643);let e3=[...Array(85).fill(0).map((e,t)=>(0,y.staticAssetPrefix)(`/onekey-pro-package/pro-packaging-desktop-_${(t+1).toString().padStart(4,"0")}.webp`))],e5=[...Array(85).fill(0).map((e,t)=>(0,y.staticAssetPrefix)(`/onekey-pro-package-800/11-packaging_0${(t+1).toString().padStart(4,"0")}.jpg`))],e9=e=>{let{children:t,scrollYProgress:i}=e,o=(0,E.useTranslations)(),a=(0,L.useTheme)(),[s,l]=(0,r.useState)(0),c=(0,r.useRef)(null),u=e1(),{medium:d,large:h}=(0,I.useMediaQuery)(),A=(0,el.useInView)(c),{videoRef:p,videoStatus:g}=eh();return(0,_.useNavigationThemeAutoSwitchPoint)("dark",c),(0,e0.useMotionValueEvent)(i,"change",e=>{let t=parseInt((2*e*e3.length).toFixed(0));t>60&&t<=80?l(60):t>80?l(t-20):l(t)}),(0,n.jsx)("section",{ref:c,style:{backgroundColor:a.colors.gray900,borderTopLeftRadius:40,borderTopRightRadius:40},...(0,e6.getAnchorSectionProps)({id:"specs",title:o("menu__specs")}),children:(0,n.jsx)(v.Container,{children:(0,n.jsxs)(b.Box,{xs:{display:"flex",flexDirection:"column"},m:{height:"100vh",flexDirection:"row",alignItems:"center",justifyContent:"space-between"},children:[(0,n.jsxs)(b.Box,{xs:{paddingTop:80,paddingBottom:80,display:"flex",flexDirection:"column",justifyContent:"space-between"},m:{height:"100vh",maxWidth:400,paddingTop:"16vh",paddingBottom:"16vh"},l:{maxWidth:500},xl:{paddingTop:0,paddingBottom:0,height:u.height},children:[(0,n.jsxs)(b.Box,{children:[(0,n.jsx)(b.Box,{xs:{color:"white",...a.text.medium700},l:a.text.medium800,children:(0,n.jsx)(ep.AdaptiveI18n,{name:"title__everything_you_need_to_secure_your_cryptos"})}
1),(0,n.jsx)(b.Box,{xs:{marginTop:16,color:a.colors.gray400,...a.text.normal200},l:{...a.text.normal300},children:(0,n.jsx)(ep.AdaptiveI18n,{name:"title__everything_you_need_to_security_your_cryptos_desc"})})]}),(0,n.jsx)(b.Box,{xs:{borderBottom:`1px solid ${a.colors.gray700}`,marginTop:32},children:["OneKey Pro",o("content__usb_type_c_cable"),o("content__recovery_sheet_x3")].map(e=>(0,n.jsx)(b.Box,{xs:{paddingTop:16,paddingBottom:16,color:"white",borderTop:`1px solid ${a.colors.gray700}`,...a.text.normal300},m:a.text.normal400,l:a.text.normal500,children:e},e))}),t]}),A&&d&&(0,n.jsx)(e7.CanvasPlayerNext,{...u,resolution:2,frameSize:{width:1600,height:1600},backgroundColor:"black",frames:h?[e3]:[e5],progress:s}),!d&&(0,n.jsx)("div",{ref:p,style:{paddingBottom:40,display:"flex",justifyContent:"center"},children:(0,n.jsx)(x.VideoPlayer,{style:{height:"50vh",width:"auto"},status:g,autoPlay:!1,loop:!1,src:(0,y.staticAssetPrefix)("/onekey-pro-videos/11-packaging-mobile.mp4")})})]})})})},te=e=>{let{children:t,oneKeyProTechnicalSpecificationsSectionProps:i}=e,o=(0,r.useRef)(null),{medium:a}=(0,I.useMediaQuery)(),{scrollYProgress:s}=(0,Q.useScroll)({target:o,offset:["start start","end end"]}),{height:l=0}=(0,eN.useWindowSize)();(0,_.useNavigationThemeAutoSwitchPoint)("dark",o);let c=(0,eb.useSpring)((0,k.useTransform)(s,e=>e<.5?0:(e-.5)*l*3),{damping:100,stiffness:1e3});return(0,n.jsx)("div",{ref:o,children:(0,n.jsxs)(b.Box,{m:{height:"300vh",position:"relative"},children:[(0,n.jsxs)(b.Box,{m:{position:"sticky",top:0,overflow:"hidden",height:"100vh",zIndex:2},children:[(0,n.jsx)(O.motion.div,{style:a?{bottom:c,position:"absolute",top:0,right:0,left:0,zIndex:10,overflow:"hidden"}:{},children:(0,n.jsx)(e9,{scrollYProgress:s})}),(0,n.jsx)(e8,{...i,scrollYProgress:s})]}),t]})})};e.s(["BigAnimationContent",0,te],552763),e.s([],942329);let tt=e=>{let{children:t,style:i={}}=e;return(0,n.jsx)(O.motion.div,{style:i,initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},transition:{duration:.8},viewport:{once:!0},children:t})},ti={src:e.i(639222).default,width:2880,height:1930,blurWidth:8,blurHeight:5,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAFAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDyO0v5rNjJEdrjoRxQB//Z"};e.s(["default",0,ti],830636);let tn=e=>{let{children:t}=e,i=(0,L.useTheme)(),r=(0,E.useTranslations)(),{ref:o,styles:a}=S({endPoint:.35});return(0,_.useNavigationThemeAutoSwitchPoint)("dark",o),(0,n.jsxs)(w.Section,{as:O.motion.section,xs:{backgroundColor:"#000",position:"relative",height:"fit-content",minHeight:692,display:"flex",alignItems:"end",flexDirection:"column",overflow:"hidden","& .eal6-plus-security-chip-bg":{flex:1}},style:a,tablet:{height:B.BASIC_FULL_SCREEN_CONTAINER_HEIGHT,gap:100,"& .eal6-plus-security-chip-bg":{flex:"none"}},ref:o,children:[(0,n.jsx)(O.motion.div,{initial:{opacity:0}
1,whileInView:{opacity:1},transition:{duration:.8},viewport:{once:!0,amount:.5},style:{height:"100%",minHeight:364,display:"flex",flexDirection:"column"},children:(0,n.jsx)(j.StaticImage,{className:"eal6-plus-security-chip-bg",src:ti,alt:"EAL 6+ Security Chip",style:{height:"100%",width:"100%",maxWidth:1920},objectFit:"cover",objectPosition:"left bottom"})}),(0,n.jsx)(tt,{style:{position:"absolute",zIndex:1,bottom:0,left:0,right:0},children:(0,n.jsx)(v.Container,{xs:{paddingBottom:64},children:(0,n.jsx)(m.TextIntro,{xs:{maxWidth:547},theme:"dark",title:"title__bank_vault_grade_chip_no_compromises",description:"content__built_with_4_eal6_secure_elements",suffix:(0,n.jsx)(b.Box,{xs:{marginTop:16,color:"rgba(255, 255, 255, 0.48)",...i.text.normal100},children:r("content__eal6_plus_globally_recognized_high_assurance_standard")}),dynamicComponent:{b:e=>(0,n.jsx)("b",{...e})},prefix:(0,n.jsx)(R.EAL6PlusBadgeIntro,{xs:{marginBottom:20},theme:"dark"})})})}),t]})},tr=e=>{let{children:t,description:i,boxProps:r}=e,o=(0,L.useTheme)();return(0,n.jsxs)(b.Box,{xs:{color:o.colors.gray900,...o.text.medium600},externalProps:r,children:[t,i&&(0,n.jsx)(eC.Paragraph,{lineSpacing:0,xs:{marginTop:8,color:o.colors.gray700,...o.text.normal200},l:{...o.text.normal300},children:i})]})},to={src:e.i(140164).default,width:1538,height:856,blurWidth:8,blurHeight:4,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAEAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD0bTZZm1UO88jbl2FScggcj8aBH//Z"},ta=e=>{let{children:t}=e,i=(0,E.useTranslations)();return(0,n.jsxs)(b.Box,{xs:{position:"relative",display:"flex",flexDirection:"column",overflow:"hidden"},children:[(0,n.jsx)(b.Box,{xs:{padding:"24px 24px 0 24px"},l:{padding:"40px 40px 0 40px"},children:(0,n.jsx)(tr,{description:i("content__scan_sign_send_offline"),children:i("title__air_gapped_qr_signing")})}),(0,n.jsx)(b.Box,{xs:{display:"flex",alignItems:"flex-end",height:"100%"},l:{marginTop:0,marginBottom:0},children:(0,n.jsx)(j.StaticImage,{style:{width:"100%",height:"100%",display:"flex",alignItems:"center"},objectFit:"cover",draggable:!1,src:to,alt:"Air-gapped QR Signing"})}),t]})},ts={src:e.i(687512).default,width:1540,height:844,blurWidth:8,blurHeight:4,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAAj0lEQVR42gGEAHv/AAQEBQQKCgoJGRkZJTQ0NJMXGBg6CAgICAcHBwcGBgcGABQUFBMeHh4dKioqM0JCQtosLCyKGxsbGhwcHBoZGRkYABkZGRgbHBwaIyMjJUVORr8tPC+vGRoaGSAgIB8cHB0bAAkJCQkUFBQUExMUFENNRHFYbFqPEhMSFBAQERAODg8NTu4SGecm1vwAAAAASUVORK5CYII="},tl=e=>{let{children:t}=e,i=(0,E.useTranslations)();return(0,n.jsxs)(b.Box,{xs:{position:"relative",display:"flex",alignItems:"center",flexDirection:"column",overflow:"hidden"},l:{flexDirection:"column-reverse"},children:[(0,n.jsx)(b.Box,{xs:{padding:"24px 24px 0 24px"},l:{padding:"0 40px 40px 40px"},children:(0,n.jsx)(tr,{description:i("content__attach_passphrase_to_secondary_pin"),children:i("title__attach_to_pin_hidden_wallet")})}),(0,n.jsx)(b.Box,{xs:{display:"flex",alignItems:"flex-end",height:"100%"},l:{marginTop:0,marginBottom:0},children:(0,n.jsx)(j.StaticImage,{style:{width:"100%",height:"100%",display:"flex",alignItems:"center"},objectFit:"cover",draggable:!1,src:ts,alt:"Attach to PIN (Hidden Wallet)"})}),t]})};var tc=e.i(963175);let tu={src:e.i(241120).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAw0lEQVR42j2PMQtBURzF72x03gcxSVIsNiUMisSgGIxEHvflA7BRFiOLmHwDm0+i1BtE4b173HtfveG3/M/p/M8RiUXBTfrjBwKp8J3TEkplbkYTVgwlsasR7TTR0VxaBD0aTeA3V1bsZghZJDzNtWsNGiXwmRGDHJ1Nmc65SZw0zynhT6xJQGnnfRQdDnU6+zqxrRDDvO0jTIyNu/WJVYlYanpZYl2meR+V1Abn2CCqqQgjBjIqGc80Zd8u8XJNdDzzD/LGi+SzQHdmAAAAAElFTkSuQmCC"},td={src:e.i(186078).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAlUlEQVR42n1Puw6CQBDc/zbyIWqHNj4Ko4mdnQ2a6D+I4SCaQwS9o7hx96CgIBSTbOaR2aFxEIzSNHsaWzsGWjjFnGikGhF9kCB1kz9To/rarslRWVmcbxoXxuGYYblNcIpeiK4aJZtJvw02e4Vw9cBsEWMSxpjO71jvEuSFga+Qo/gY5GyWgL+Z8xVDT4pGMkUNzPwDNQroyjFh/7oAAAAASUVORK5CYII="},th={src:e.i(977547).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAxklEQVR42l1PS8uBYRB9/unX9xfIAi+RS8pOyl0kKQvFUqysZGGjXJKkXHq9sZBLZ/Ecz6CUxWmmOXNmzlFWIOifLW1nc4A2oGBrQy9WtiOcmhoyXgVdqS8iZTDfBkWoDg50rAL+x8C/CGjlwGQdLLRf17S6P8DdEewMw
1FARHE7A3ghsdN/v1M0sXK6gVPsEHs9g1Fz0pD8LRq0zLbDZB8dzcL0Hw6W3l9eL2cek2wy8GTBRA31ZUGYSQFlW0D/9iSm9CIV7AhLG1jkpjUVbAAAAAElFTkSuQmCC"},tA={src:e.i(466692).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAh0lEQVR42n2POw6DMBBEt7Ev5cIHi2IOQIpwFvK5QUJyi4REMlF6PsUOrMGIAlFMsTNvpB3aO7erqt+/aTsehEnsB08y8mOINUmRls3bvUDxeC4hpni83iWMMbDWovx8ZygAddMiTQ9QSkFrjWOWBS8CLEeen+CSJOh8uUaAN5+UjGSK35jZAy2r3b6BcfChAAAAAElFTkSuQmCC"},tp={src:e.i(449448).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA1ElEQVR42j2Py07DMBRE/d+Ifg1S1wiQaFkAG5BAoLJBKJDSNkrsOKmTOPVz4andVt3dx2hmDrmcTC7qmrfW+aCsw6fYwsSZxVv6karkrRodogDFMOKJM2h73JOISGHDeqFQZRoveYPb/xLZSiKjA0qxCyQpx9xjc6Nxd80wvS/wvOBY1hLKOBBjoxXX+HjtMH3Y4Gq2xs9cQlT2EEMYVyFbDvhaCcz+Ksxziv7NoXv00I0PhDLeJpdU7J22+O2HRAHTe9Ailkwo7IT53XSQ5mB9xtwDkdjl7UIiVT8AAAAASUVORK5CYII="},tg={src:e.i(8159).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAA9ElEQVR42jWPTUsCURiF749sEfQHgmgjuCjRCIOyIssIQc2yYIqiL7EIiYggWoeJ9EH03XjnCjlGji3u070Dbt9z3nPOI+KJRKzZlOq77evq+QWu9Ah6f9o1N6uJ+4dH5Xd+kJ4itbjMSqHI08urNWEfxe7+kc6trnNTuyW3VmIkEqVQ2qTtd+gGPS3qjTsy2Txz6SWS0ykGBoeIjsVwthyeTZKwUdJrcWb6ZxcyDI9GiE9OUa6c4KlWaNDW9NsNOD6tMj6RJJsv8vnlhmOFXWu6qNUbzMyn2dk74PLqOtxgNWFR3t4/1GG5ojecbaSJtch9zH9MAs5ywrD0PAAAAABJRU5ErkJggg=="},tm={src:e.i(24727).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAsklEQVR42j2PSQqEQBAE6xGCJ6+C+4rgA9SDuICCD3G59Jf7DZ1jNjNzzoqMLPE8T9V1rZumMVVVoSgKZFlmoijSrusq+YZo2xbLsmCaJvAwTVOEYaiFJMPjOHDfN67rwr7vKMsScRwbNmCeZzzPY6kkSezhMAx4NRA6x3G0JMOXwnme6LqOCkie53bctm1/xbquti0IAiNcS5JNrO37/hfC930tfIVrOYhO1pJk6DiO+gDwt2nPG+Nz/gAAAABJRU5ErkJggg=="},tf={src:e.i(329628).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAsElEQVR42oWPrwrCUBTG7zP4BjLBYlGfwKCsGJzRqtEqgpgNCiJYjBMsJhE2VDAMDGJxRRwLK2Npe4Z9u2d/Llta+MHhfj/O+S6rSKNFtXMOpK4WcpAS0htlLA3RHNzR6N+Qk0AZI7vW07BV/1gdfpDHBuqyLjaRABLUi4O36UM3PEyWH7ElETj7k435xsRs/cXuaBWEuJwyfeH6dGOGfBYnspJ0pqU80ObQLEqWfTMCSLGO+Ag+C94AAAAASUVORK5CYII="},tx={src:e.i(428582).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAArElEQVR42m2PvQ4BURCF78MpvZFkE42fsKv0t0sjCIWIUqERkRCFZxCxcmVFa2eO+7MXxRYnmcycOTOfKBTLJS9IZKUNVkIm9vxE6pnQhRsEA0ZryM4EvSjcZr0LjFeEzf6N0ZJQ7dgkbUAzZGyPhFgyLjfC/UEIZzbJGKK5bT5fjGtM2J0IvenPwDUVt1inOJxTTNSZRv/7B4uMAH7ERn8k0ADCYPo5mIHF/AA6asamV34arwAAAABJRU5ErkJggg=="},ty={src:e.i(906908).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAtklEQVR42j2PvQ7BYBiFvytlMVpETKKMYhNuwGYnBkITEjWRdNaGpPqfkLZUDT16vjQdnuTJOWd4X9FTlK7jeuE3++UFKMmZsRMU0wigHe6IolRy3N9gXgM4rh8Krt+fDPOZDnVjQF0b0pmx4wBhmGA81NBvb6EU0Jmxk4OH9cKgo6JZX6BZWxa+g2U9q4E8Tr/YaDVWEv1sV8cK1/P5AeIkxWR0wrSAzoyd4CvlKPf9GITOjN0fm5nbh75OloEAAAAASUVORK5CYII="},tb={src:e.i(853946).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAgUlEQVR42lWPOw6DQAxEfWRSh9wj5D6BW6z5iIWCkk+H8Zi10BaWLM0bj4fK8vOO07xs+3HqSJozxmmBRqMuLgRupe8HhwRGcue67fKtfvKvG9v9EgBzQSiKl02lYGA2iO7TbG4HAHcpKouAADCLSA3Eo0Lg50ktQKiSmuQ11QjtAjiy33tMiAk0AAAAAElFTkSuQmCC"},tv={src:e.i(384146).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAfElEQVR42n2PwQlEIQxE48FirENLUDvQJlbwJtbgyQJ/Dc6a4C77YfmHB5NkYCZERK/NtVkbHNbZ8Y0upRSstTDGCKx5d0y0eEgpYc4p5Jw/hkVaa3jvUWtFKUVgHUIA38QQY0RrDb13gfXX8BsxxhBuEf9KOuduJR/ffAOVxF7InxAkHAAAAABJRU5ErkJggg=="},tw={src:e.i(415095).default,width:198,height:198,blurWidth:8,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAYAAADED76LAAAAyUlEQVR42m1PzQvBYBzePys5kCTERcpFykWJSCk5uCgiSSnTVqOFzT7MMJ/Lrq577H1RDg5Pz+H3/J4PJh6NpAxVch5Xy/WAD1xDkRxyY/TNyrbPByz4GbjpBAI3hShwuJ/2II/M5Wg8TU1GwO9DNpNGvVpGIZ+DJi+pExXsVAnhUBCNehXjYR+1SgnKWqRxVOBZIRaNoFIqYtDtUFZ/BSQimYhhNOhhzrFot5rQvxFbryQpxLMTWpKw4IlulgmyhKEzlT8z1ffMF1xbzv+IDoJAAAAAAElFTkSuQmCC"},t_=[(0,n.jsx)(j.StaticImage,{src:tu,alt:"1"},"1"),(0,n.jsx)(j.StaticImage,{src:tg,alt:"2"},"2"),(0,n.jsx)(j.StaticImage,{src:tm,alt:"3"},"3"),(0,n.jsx)(j.StaticImage,{src:tf,alt:"4"},"4"),(0,n.jsx)(j.StaticImage,{src:tx,alt:"5"},"5"),(0,n.jsx)(j.StaticImage,{src:ty,alt:"6"},"6"),(0,n.jsx)(j.StaticImage,{src:tb,alt:"7"},"7"),(0,n.jsx)(j.StaticImage,{src:tv,alt:"8"},"8"),(0,n.jsx)(j.StaticImage,{src:tw,alt:"9"}
1,"9"),(0,n.jsx)(j.StaticImage,{src:td,alt:"10"},"10"),(0,n.jsx)(j.StaticImage,{src:th,alt:"11"},"11"),(0,n.jsx)(j.StaticImage,{src:tA,alt:"12"},"12"),(0,n.jsx)(j.StaticImage,{src:tp,alt:"13"},"13")],tE=e=>{let{children:t}=e,i=(0,E.useTranslations)();return(0,n.jsxs)(b.Box,{xs:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"space-between",alignItems:"center",gap:24},children:[(0,n.jsx)(b.Box,{xs:{padding:"24px 24px 0 24px"},l:{padding:"40px 40px 0 40px"},children:(0,n.jsx)(tr,{description:i("content__work_with_leading_multisig_solutions"),children:i("title__multi_signature_wallet_support")})}),(0,n.jsx)(tc.CompatibilitySectionIcons,{compatibilitySectionIconProps:{backgroundColor:"#F0F1F2"},iconsOverride:t_,squareMode:!0,externalProps:{xs:{position:"static",marginLeft:48,paddingBottom:43,transformOrigin:"left center !important"},m:{alignSelf:"start"}}}),t]})},tB={src:e.i(751932).default,width:1092,height:878,blurWidth:8,blurHeight:6,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAi0lEQVR42mWMMQoDIRREt1IWVJI02ggpgl5C0FV/+qTYE6S33bNsbmRIkxzoJxZbyA4MDMPjDcM/hJDRe7+EENaU85qvsFBKx2ELY+yQUqpaa2xNOb2FEKcOmGKsSimUUqJz7sU5P3YAAFRjDFprsdna1xvuUHW84BksTre8Bx7PUudPwflbsO0N+AEr3ij1L3GhbAAAAABJRU5ErkJggg=="},tR=e=>{let{children:t}=e,i=(0,E.useTranslations)();return(0,n.jsxs)(b.Box,{xs:{position:"relative",display:"flex",justifyContent:"center",alignItems:"center",flexDirection:"column"},children:[(0,n.jsx)(b.Box,{xs:{padding:"24px 24px 0 24px",width:"100%"},m:{padding:"40px 24px 14px 40px"},children:(0,n.jsx)(tr,{description:i("content__create_24_word_recovery_phrase_with_passphrase"),children:i("title__passphrase")})}),(0,n.jsx)(b.Box,{xs:{maxWidth:"480px"},m:{maxWidth:"unset"}
1,children:(0,n.jsx)(j.StaticImage,{style:{height:"100%",width:"100%"},draggable:!1,src:tB,alt:"Recovery Passphrase"})}),t]})},tC={src:e.i(244089).default,width:1426,height:1108,blurWidth:8,blurHeight:6,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAlklEQVR42mWOOwrCQBRFx/cGHEImBOOECBaaaGOlKBb21m5AUAYFt2AhiE0aV5BSsNHODUk+y0ggE0iTzCnvOcUlpMbi1uAkZbheLrYdBWnjCnf6jaLsdt6/EYBqgeiLSfh4pZfd4YOIeuD0HF8er3EwWv1UwLSAG2w2D8Z/j/OEAmwaUj2CoW3efdvMPaNbMIpPNUPlSh46FwPvxHQkAAAAAElFTkSuQmCC"},tj=e=>{let{children:t}=e,i=(0,E.useTranslations)();return(0,n.jsxs)(b.Box,{xs:{position:"relative"},m:{display:"flex",alignItems:"center","& > div":{flex:1}},children:[(0,n.jsx)(b.Box,{xs:{padding:24,zIndex:1},l:{paddingLeft:40,paddingBottom:40},children:(0,n.jsx)(tr,{description:i("content__buy_swap_hold_crypto_without_kyc"),children:i("title__trade_crypto_without_kyc")})}),(0,n.jsx)(b.Box,{xs:{display:"flex",flexDirection:"column",alignItems:"center"},m:{maxHeight:"initial",display:"block",height:"100%","& img":{overflow:"visible"}},children:(0,n.jsx)(j.StaticImage,{src:tC,alt:"OneKey Pro Without KYC",objectFit:"cover",style:{height:"100%",overflow:"visible",maxWidth:500}})}),t]})},tO={src:e.i(308436).default,width:1532,height:870,blurWidth:8,blurHeight:5,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAFAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD2B4XcYE7r8wPGOmelAH//2Q=="},tI=e=>{let{children:t}=e,i=(0,E.useTranslations)();return(0,n.jsxs)(b.Box,{xs:{display:"flex",flexDirection:"column",height:"100%"},m:{flexDirection:"column-reverse",justifyContent:"end"},children:[(0,n.jsx)(tr,{boxProps:{xs:{padding:"24px 24px 0 24px",zIndex:1,position:"relative"},m:{padding:"0 40px 40px 40px",maxWidth:"80%"}},description:i("content__security_key_for_web2_description"),children:i("title__security_key_for_web2")}),(0,n.jsxs)(b.Box,{m:{marginBottom:-60},children:[(0,n.jsx)(j.StaticImage,{draggable:!1,src:tO,alt:"Your wallet, as well as your Fido key"}),t]})]})},tQ=e=>{let{children:t}=e,i=(0,L.useTheme)(),o=`1px solid ${i.colors.gray200}`,a=(0,r.useRef)(null);return(0,_.useNavigationThemeAutoSwitchPoint)("light",a),(0,n.jsx)("div",{ref:a,children:(0,n.jsxs)(v.Container,{children:[(0,n.jsx)(m.TextIntro,{xs:{marginBottom:24,textAlign:"center",textWrap:"initial"},title:"title__premium_security_features"}),(0,n.jsxs)(b.Box,{xs:{marginLeft:-24,marginRight:-24,borderRadius:40,overflow:"hidden"},m:{marginLeft:0,marginRight:0,border:o},children:[(0,n.jsxs)(b.Box,{mobile:{display:"grid",gridTemplateColumns:"1fr"},m:{gridTemplateColumns:"5fr 7fr"},children:[(0,n.jsx)(tR,{}),(0,n.jsx)(b.Box,{xs:{borderTop:o,height:"100%",position:"relative"},m:{borderLeft:o,borderTop:"none"},children:(0,n.jsx)(tI,{})})]}),(0,n.jsxs)(b.Box,{xs:{borderTop:o},m:{display:"grid",gridTemplateColumns:"7fr 5fr"},children:[(0,n.jsx)(ta,{}),(0,n.jsx)(b.Box,{xs:{borderTop:o,overflow:"hidden"},m:{borderLeft:o,borderTop:"none",height:"auto"},children:(0,n.jsx)(tE,{})})]}),(0,n.jsxs)(b.Box,{xs:{borderTop:o},m:{display:"grid",gridTemplateColumns:"5fr 5fr"},children:[(0,n.jsx)(tj,{}),(0,n.jsx)(b.Box,{xs:{borderTop:o},m:{borderLeft:o,borderTop:"none",height:"auto"},children:(0,n.jsx)(tl,{})})]}),t]})]})})};function tk(){return(tk=Object.assign.bind()).apply(null,arguments)}e.s(["ProductFeatureSection",0,tQ],967047),e.s([],775875);let tS=function(e){return r.createElement("svg",tk({width:48,height:48,viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=r.createElement("g",{clipPath:"url(#clip0_27767_21063)"},r.createElement("circle",{cx:24,cy:24,r:24,fill:"#F7931A"}),r.createElement("path",{d:"M34.191 21.207c.468-2.994-1.914-4.604-5.172-5.678l1.057-4.057-2.581-.615-1.029 3.95c-.678-.162-1.375-.315-2.068-.466l1.037-3.976-2.58-.615-1.057 4.055a89.108 89.108 0 0 1-1.647-.37l.003-.013-3.56-.85-.686 2.637s1.915.42 1.875.446c1.045.25 1.234.911 1.202 1.436l-1.204 4.621c.072.018.166.043.269.083l-.273-.065-1.688 6.474c-.127.304-.452.76-1.182.587.026.035-1.876-.448-1.876-.448l-1.281 2.826 3.358.802c.625.15 1.237.306 1.84.454l-1.068 4.103 2.578.615 1.057-4.06c.704.184 1.388.352 2.057.511l-1.054 4.04 2.58.616 1.068-4.095c4.4.797 7.71.475 9.102-3.333 1.122-3.067-.056-4.835-2.37-5.989 1.685-.372 2.955-1.434 3.293-3.626Zm-5.896 7.912c-.797 3.066-6.193 1.409-7.942.993l1.417-5.43
16c1.75.418 7.359 1.245 6.525 4.443Zm.798-7.956c-.727 2.789-5.218 1.372-6.675 1.024l1.285-4.93c1.457.348 6.148.996 5.39 3.906Z",fill:"#fff"}))),i||(i=r.createElement("defs",null,r.createElement("clipPath",{id:"clip0_27767_21063"},r.createElement("path",{fill:"#fff",d:"M0 0h48v48H0z"})))))},tT={src:e.i(574155).default,width:828,height:1032,blurWidth:6,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAYAAADaxo44AAAAoElEQVR42iXNuQ7CMBAE0OArsRNfiQlXYRIKBLQpkGipKKj5f3/IYEOxu1o9jaZSbgSvO0jZ4jTN4KIGYQKVNOEHUzzi837BaANCaIEBvNGY44Tn4w7v/B+U7iEyWNtjuV1gjcGqwGAttiFAtRpjvvGwB2UcVdxtsFzPsC7A+nVOejBeypsGSkrI1kJ2DqKWIJShyiutCMlDE6E8lT+Xpy9wyTgNO8DqhwAAAABJRU5ErkJggg=="},tD={src:e.i(56798).default,width:1440,height:810,blurWidth:8,blurHeight:5,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAYAAAB4ka1VAAAAkklEQVR42iWNvQrCMACE27Q1NUEaa4uY+gfaooPipK4FUVxcRHdBfP83+Ex0OLg7Pu6Cy+PN9flhs2+R2mBHlom1REmKNkOC8/2F16zZIlXGum5YLReIKCaKJcGhvbE7nuiXFUpnFHnJvHILDhAiIog7XYQjfVFPxxiTUwxKkkT+gVAkhM74oJUiVT1kqn8Xvv8CmpUzCPtDswIAAAAASUVORK5CYII="},tP=e=>{let t=(0,r.useRef)(null);return(0,_.useNavigationThemeAutoSwitchPoint)("dark",t),(0,n.jsxs)(b.Box,{as:O.motion.div,ref:t,xs:{height:"fit-content",position:"relative",marginBottom:-1,overflow:"hidden",backgroundColor:"#000"},mobile:{height:B.BASIC_FULL_SCREEN_CONTAINER_HEIGHT},children:[(0,n.jsx)(P.OnlyDisplayRange,{above:"medium",xs:{height:"100%"},children:(0,n.jsx)(j.StaticImage,{style:{height:"100%",width:"100%",marginBottom:-1},objectFit:"cover",src:tD,alt:"setup",objectPosition:"right"})}),(0,n.jsx)(P.OnlyDisplayRange,{below:"mobile",children:(0,n.jsx)(j.StaticImage,{style:{height:"100%",width:"100%"},objectFit:"cover",src:tT,alt:"setup"})}),(0,n.jsxs)(v.Container,{xs:{bottom:0,left:0,right:0,top:0,display:"flex",flexDirection:"column",justifyContent:"flex-end",paddingBottom:64,zIndex:1,gap:48,alignItems:"flex-end",marginTop:-156},mobile:{position:"absolute",alignItems:"flex-start",paddingTop:46,marginTop:0,justifyContent:"end"},m:{justifyContent:"space-between"},children:[(0,n.jsx)(tz,{}),(0,n.jsx)(m.TextIntro,{xs:{maxWidth:533},title:"title__set_up_secure_in_6_minutes",description:"content__guided_onboarding_fingerprint_unlock_intuitive_ux_touchscreen",theme:"dark"})]})]})},tz=()=>{let e=(0,L.useTheme)();return(0,n.jsxs)(b.Box,{xs:{padding:"17px 20px",borderRadius:12,backgroundColor:"rgba(40, 40, 40, 0.48)",backdropFilter:"blur(80px)",display:"flex",flexDirection:"column",gap:8,maxWidth:256},mobile:{padding:"34px 40px",borderRadius:24,gap:16,maxWidth:512},children:[(0,n.jsxs)(b.Box,{xs:{width:"100%",display:"flex",justifyContent:"space-between",alignItems:"center",gap:16},children:[(0,n.jsxs)(b.Box,{children:[(0,n.jsx)(b.Box,{xs:{color:"rgba(255, 255, 255, 0.48)",...e.text.normal100},mobile:{...e.text.normal600},children:"Received"}),(0,n.jsx)(b.Box,{xs:{color:e.colors.white,...e.text.medium600},mobile:{...e.text.medium700},m:{...e.text.medium900},children:"1.20 BTC"})]}),(0,n.jsx)(tS,{"aria-label":"btc icon",style:{height:"100%",width:"auto"}})]}),(0,n.jsxs)(b.Box,{xs:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:16},mobile:{gap:24},m:{gap:56},children:[(0,n.jsx)(tF,{badgeText:"from",children:"bc1qrw...rz3p"}),(0,n.jsx)(tF,{badgeText:"to",children:"Account 2 - Taproot"})]})]})},tF=({badgeText:e,children:t})=>{let i=(0,L.useTheme)();return(0,n.jsxs)(b.Box,{xs:{...i.text.normal100,fontSize:9},mobile:{...i.text.normal200},m:{...i.text.normal400},children:[(0,n.jsx)(w.Span,{xs:{padding:"1px 4px",borderRadius:2,backgroundColor:"rgba(255, 255, 255, 0.24)",color:"#000"},m:{padding:"2px 8px",borderRadius:4},children:e}),(0,n.jsx)(w.Span,{xs:{color:"rgba(255, 255, 255, 0.48)",marginLeft:4},mobile:{marginLeft:8},children:t})]})};var tM=e.i(196475);function tU(){let e,t,i=(e=(0,E.useTranslations)(),{title:(t=t=>e.has(t)?e.raw(t):t)("title__technical_specifications"),content:{right:[],left:[{title:t("title__appearance"),content:[{title2:t("title__size"),description:"90.1 x 54.4 x 7.6 (mm)"},{title2:t("title__weight"),description:"65g"},{title2:t("title__finish"),description:t("content__textured_matte_glass_back_and_glossy_aluminum_alloy_design")}]},{title:t("title__security_chip"),content:[{title2:t("title__certifications_and_standards"),description:"EMVCo Certified, CC EAL 6+"},{title2:t("title__chips"),description:"TMC THD89 x4"}]},{title:t("title__display_and_camera"),content:[{title2:t("title__screen"),description:t("content__3_5_inch_ips_display_color_with_multi_touch_support")},{title2:t("title__resolution"),description:"480 × 800"},{title2:t("content__camera"),description:t("content__2_mega_pixel_with_flashlight")}]},{title:t("title__air_gapped_signing_and_biometric_authentication"),content:[{title2:t("title__connectivity"),description:t("content__usb_c_bluetooth_air_gapped_qr_based")},{title2:t("title__unlock_methods"),description:t("content__pin_code_fingerprint")}]},{title:t("title__power_and_battery"),annotation:t("content__battery_lab_data_note"),content:[{title2:t("title__battery"),description:t("content__530mah_lithium_ion_battery")},{title2:t("title__charging_and_storage"),description:t("content__pro_charging_storage")},{title2:t("title__temperature_range"),description:t("content__pro_temperature_range")},{title2:t("title__wireless_charging"),description:t("content__qi_wireless_charging")}]},{title:t("title__compatibility"),content:[{title2:"Windows",description:"Windows 10+"},{title2:"macOS",description:"macOS 10.11+"}
1,{title2:"Linux",description:"Ubuntu 12.04+, Fedora 21+, Debian 8+"},{title2:"iOS / iPadOS",description:"iOS 14.0+"},{title2:"Android",description:"Android 8.0+"}]}]}}),{getShopifyPageByProduct:n,primary:{pro:r}}=(0,ee.useAllOneKeyProduct)();return{seo:{ignoreTitleTemplate:!0,titleTemplate:"%s",...n(r)?.seo,image:(0,y.staticAssetPrefix)("/og/og-onekey-pro.jpg")},product:r,technicalSpecifications:i}}tM.default.env.STRAPI_API_URL||tM.default.env.STRAPI_LOCAL_API_URL,tM.default.env.STRAPI_TOKEN||tM.default.env.STRAPI_LOCAL_TOKEN,e.s(["useOneKeyProData",0,tU],372502);let tL={src:e.i(402183).default,width:620,height:758,blurWidth:7,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAcDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDi7nWYdRvAbSy8qIjJbp+nagD/2Q=="},tK={src:e.i(490274).default,width:620,height:758,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAtUlEQVR42oXJPwuCQBzG8UMoB4fCRaQ7SThR4y59Hb6CXkG6tLQ7+l5MWqzegpN/3ol4B20Ov1SIxobvAw8fNAxDVJZlmud5NncriuzxeqZCiAh1XXc+BkFv2/Y4Rx1n9Pmhb5omRtMkYRhKz/NgjlIKxLLeVVVdFnRdVxqGAbqug6ZpQAiRdV0nC5qmKRFC8G36om3b+D9ijKWqqqBsVoD2azB9/EPGmOScw/ZkgXKnsLuyBT9e/GcwTELIOQAAAABJRU5ErkJggg=="},tW={src:e.i(660612).default,width:620,height:758,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAuklEQVR42mWOPQ6CQBCFKaQhEGhcxAQIkE0s+Cm4BQdRGo9AyV2QDvUKVPzchLCb2FGMO2uMhcXM5M2X9/KUdV2LruuqpmlqnFvb1vfno2KMFco8z+cgCBbLNDfHtjdC9hs90WUcx4siVnl0HK6rKhwsE3R1B4SQV9/3Vwl93+eapoFhGIAX9TAMpYRxHHPXdSEMQ/A8D5IkYdM0fWKF4PiMoghdkKbpD36dCEU5yLLs34mxlFLI81zCNxdkaGa8lnkhAAAAAElFTkSuQmCC"},tV={src:e.i(641359).default,width:620,height:758,blurWidth:7,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAICAYAAAA1BOUGAAAAuElEQVR42lWMPQ6CQBCFN4QF1oZNkDWgkGyxidHKa3AQpfEIlNwF6VCvQMXPTQi7iR3FyJIYYvFmMvneN2gcx6SqqqwoilznUZb58/3KpJQJ6vv+yjkfCCHTZkMml7qTOIqhbdsbmkcaBIHCJoITx6A3Y+xT1/V9gWEYqh3z4HLew9ajoMtN06SriTFYlgWmacJcll3XrW8RQvDLfK8wjmPlOA5o2zCMf1MIoXzfB0op2LYNhyha4BfKW2MjrmbkRwAAAABJRU5ErkJggg=="},tN={borderRadius:16,overflow:"hidden"},tH=()=>[{image:(0,n.jsx)(j.StaticImage,{style:tN,src:tL,alt:"Step 1"}),children:"content__tamper_evident_packaging_ensures_you_can_see_if_box_opened"},{image:(0,n.jsx)(j.StaticImage,{style:tN,src:tK,alt:"Step 2"}),children:"content__firmware_attestation_on_first_activation_checks_authentic_firmware"},{image:(0,n.jsx)(j.StaticImage,{style:tN,src:tW,alt:"Step 3"}),children:"content__pin_protection_with_data_wipe_after_multiple_failed_attempts"},{image:(0,n.jsx)(j.StaticImage,{style:tN,src:tV,alt:"Step 4"}),children:"content__auto_wipe_if_intrusion_detected_such_as_firmware_modification"}];e.s(["useStepCardData",0,tH],998318),e.s([],133836);let tY=({reviewsSlot:e})=>{let t=tU(),i=(0,r.useRef)(null),o=tH();return(0,_.useNavigationThemeAutoSwitchPoint)("light",i),(0,n.jsxs)(b.Box,{xs:{display:"flex",flexDirection:"column",gap:40,paddingTop:"40px 0px"},mobile:{gap:120,paddingTop:"120px 0px"},children:[(0,n.jsxs)("div",{children:[(0,n.jsx)(eR,{product:t.product,setIsShowColorRadio:()=>{},hideFeatureHeader:!0}
1),(0,n.jsxs)(u.DetailSection,{anchorTitle:"menu__security",anchorId:"security",title:"title__ultimate_security",switchPoint:!0,sectionProps:{css:{overflow:"hidden"}},children:[(0,n.jsx)(tn,{}),(0,n.jsx)(eP,{}),(0,n.jsx)(A.SecuritySection,{}),(0,n.jsx)(eM,{})]}),(0,n.jsxs)(u.DetailSection,{title:"title__effortless_experience",anchorTitle:"menu__experience",anchorId:"experience",children:[(0,n.jsx)(tP,{}),(0,n.jsx)(p.SupportedCryptos,{theme:"dark"}),(0,n.jsx)(c.BeforeUse,{cardData:o,theme:"dark"}),(0,n.jsx)(eV,{})]}),(0,n.jsx)(u.DetailSection,{title:"OneKey App",anchorTitle:"App",anchorId:"app",withTopMargin:!0,children:(0,n.jsx)(d.OneKeyApp,{})}),(0,n.jsx)(u.DetailSection,{anchorTitle:"menu__more_features",anchorId:"features",withTopMargin:!0,children:(0,n.jsx)(tQ,{})}),(0,n.jsx)(u.DetailSection,{title:"title__trusted_worldwide",withTopMargin:!0,children:(0,n.jsx)(f.TrustedChoice,{})}),(0,n.jsx)(te,{oneKeyProTechnicalSpecificationsSectionProps:t.technicalSpecifications})]}),(0,n.jsx)("div",{ref:i,children:(0,n.jsx)(l.SectionContent,{title:"title__have_a_question",alignTitle:"left",withoutMarginTop:!0,children:(0,n.jsx)(a.FAQCardList,{items:$.SHOP_FAQ_ITEMS})})}),e,(0,n.jsx)(s.ProductCompare,{}),(0,n.jsx)(h.RecommendSection,{exclude:["pro"]}),(0,n.jsx)(v.Container,{xs:{paddingTop:40,paddingBottom:40},m:{paddingTop:80,paddingBottom:80},children:(0,n.jsx)(er.Subscribe,{})})]})}},211321,e=>{"use strict";var t=e.i(690058),i=e.i(386837);e.i(709906);var n=e.i(652643);e.i(924856);var r=e.i(377379),o=e.i(831095),a=e.i(254793),s=e.i(885403);e.s(["DetailSection",0,({title:e,anchorTitle:l,anchorId:c,children:u,switchPoint:d=!1,titleProps:h,sectionProps:A,withTopMargin:p=!1,titleVisible:g=!1})=>{let m=(0,s.useTranslations)(),f=e=>m.has(e)?m.raw(e):e,x=(0,i.useRef)(null);(0,o.useInPageNavSwitchPoint)(x,!d);let y=(0,a.useTheme)();return(0,t.jsxs)(r.Section,{ref:x,...l&&(0,n.getAnchorSectionProps)({title:f(l),id:c??l}),...p&&{xs:{marginTop:80},mobile:{marginTop:120}},externalProps:A,children:[e&&(0,t.jsx)(r.H2,{className:g?"":"visuallyhidden",xs:{textAlign:"center",...y.text.medium500,color:y.colors.gray900,marginBottom:24,textTransform:"uppercase"},mobile:{...y.text.medium600},externalProps:h,children:f(e)}),u]})}])},332942,e=>{"use strict";var t=e.i(690058);e.i(613024);var i=e.i(609677);e.i(890392);var n=e.i(32298);e.i(924856);var r=e.i(908547),o=e.i(254793);e.s(["EAL6PlusBadgeIntro",0,({theme:e="light",...a})=>{let s=(0,o.useTheme)();return(0,t.jsxs)(r.Box,{xs:{display:"flex",alignItems:"center",gap:8},externalProps:a,children:[(0,t.jsx)(r.Box,{xs:{width:48,height:48},children:(0,t.jsx)(i.EAL6PlusBadge,{})}),(0,t.jsx)(r.Box,{xs:{textAlign:"left",color:"light"===e?s.colors.gray900:s.colors.white,lineHeight:"20px",whiteSpace:"pre-line"},children:(0,t.jsx)(n.DynamicReactComponent,{jsx:"content__supercharged_by_the_eal_6_security_chip"})})]})}])},680370,134535,388303,111135,752859,701391,447659,769454,336075,414126,621104,120845,573195,580279,774550,746849,e=>{"use strict";var t=e.i(690058);e.i(508204);var i=e.i(629394);e.i(924856);var n=e.i(908547),r=e.i(525908),o=e.i(149320),a=e.i(734753),s=e.i(461307),l=e.i(134939),c=e.i(254793);let u=e=>{let{children:i,imageNode:r,name:o,description:a,link:s,nameAs:u}=e,d=(0,c.useTheme)();return(0,t.jsx)(l.AdaptiveLink,{to:s||"",children:(0,t.jsxs)(n.Box,{xs:{backgroundColor:"#F8F9FA",height:"100%"},children:[(0,t.jsx)(n.Box,{xs:{display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:d.colors.white},children:(0,t.jsx)(n.Box,{xs:{maxWidth:360},children:r})}),(0,t.jsxs)(n.Box,{xs:{padding:20},m:{padding:30},l:{padding:40},children:[(0,t.jsx)(n.Box,{as:u??"span",css:{color:d.colors.gray900},xs:d.text.medium400,s:d.text.medium500,m:d.text.medium600,xxl:d.text.medium800,children:o}),(0,t.jsx)(n.Box,{xs:{paddingTop:4,color:d.colors.gray700},m:{paddingTop:16},children:(0,t.jsx)(n.Box,{as:"span",xs:d.text.normal300,children:a})})]}),i]})})},d=e=>{let{children:i,items:r}=e;return(0,t.jsxs)(n.Box,{xs:{marginTop:40,borderRadius:40,borderWidth:1,borderStyle:"solid",borderColor:s.theme.colors.gray200,display:"grid",overflow:"hidden"},m:{gridTemplateColumns:"repeat(3, 1fr)"},children:[r.map(e=>(0,t.jsx)(n.Box,{xs:{borderRightWidth:1,borderRightStyle:"solid",borderRightColor:s.theme.colors.gray200,":last-child":{borderRight:"none"}},children:(0,t.jsx)(u,{...e,nameAs:"h3"})},e.name)),i]})};e.i(496039);var h=e.i(690072),A=e.i(437669);let p=e=>{let{children:i,items:n}=e;return(0,t.jsxs)(h.Swiper,{slidesPerView:"auto",spaceBetween:16,modules:[A.FreeMode],freeMode:{enabled:!0},style:{marginTop:40,paddingLeft:24,paddingRight:24},children:[n.map(e=>(0,t.jsx)(h.SwiperSlide,{style:{width:270,height:"auto",borderRadius:24,overflow:"hidden",borderWidth:1,borderStyle:"solid",borderColor:s.theme.colors.gray200,marginBottom:2},children:(0,t.jsx)(u,{...e})},e.description)),i]})};e.s(["FeatureSection",0,e=>{let{children:s,items:l}=e;return(0,t.jsxs)("section",{children:[(0,t.jsxs)(r.Container,{children:[(0,t.jsxs)(n.Box,{xs:{marginTop:80},m:{textAlign:"center",marginTop:120},children:[(0,t.jsx)(a.OnlyDisplay,{m:!0,l:!0,xl:!0,xxl:!0,children:(0,t.jsx)(i.SectionSubTitle,{uppercase:!0,children:(0,t.jsx)(o.AdaptiveI18n,{name:"title__onekey_project"})})}),(0,t.jsx)(i.SectionTitle,{as:"h2",children:(0,t.jsx)(o.AdaptiveI18n,{name:"title__always_security_oriented"})})]}),(0,t.jsx)(a.OnlyDisplay,{m:!0,l:!0,xl:!0,xxl:!0,children:(0,t.jsx)(d,{items:l})})]}),(0,t.jsx)(a.OnlyDisplay,{xs:!0,s:!0,children:(0,t.jsx)(p,{items:l})}),s]})}],134535),e.s([],680370);var g=e.i(386837);e.i(709906);var m=e.i(652643),f=e.i(377379),x=e.i(831095),y=e.i(901666),b=e.i(220608),v=e.i(885403),w=e.i(792694);(0,w.atom)(!1);let _=(0,w.atom)(!1),E=()=>(0,w.useAtom)(_);e.s(["useIntroductionSectionCenterPosition",0,E],388303),e.s(["IntroductionSection",0,e=>{let{children:i,alwaysFullWidth:r=!1}=e,o=(0,g.useRef)(null),[,a]=E(),s=(0,v.useTranslations)();(0,x.useInPageNavSwitchPoint)(o);let{scrollYProgress:l}=(0,y.useScroll)({target:o,offset:["start end","end end"]});return(0,b.useTransform)(l,e=>{e>.5?a(!0):a(!1)}),(0,t.jsx)(f.Section,{xs:r?{}:{maxWidth:1920,marginLeft:"auto",marginRight:"auto"},...(0,m.getAnchorSectionProps)({id:"product-features",title:s("menu__features")}),children:(0,t.jsx)("div",{ref:o,children:(0,t.jsx)(n.Box,{xs:{position:"relative",paddingTop:72},xl:{paddingTop:120},children:i})})})}],111135);var B=e.i(644258),R=e.i(362054),C=e.i(184994),j=e.i(585262);let O=(0,g.lazy)(()=>e.A(851670)),I=e=>(0,t.jsx)(g.Suspense,{fallback:(0,t.jsx)(j.CanvasLoading,{xs:{width:`${e.width}px !important`,height:`${e.height}px !important`}}),children:(0,t.jsx)(O,{...e})});e.s(["CanvasPlayerNext",0,I],752859);var Q=e.i(480341);let k=e=>{let{children:i,maxWidth:n}=e,r=(0,c.useTheme)();return(0,t.jsx)(f.Span,{css:{display:"block"},xs:{...r.text.normal400,maxWidth:n,whiteSpace:"pre-line"},l:{maxWidth:n??620},xl:r.text.normal500,xxl:r.text.normal600,children:i})};e.s(["IntroductionTextDescription",0,k],701391);let S=e=>{let{children:i}=e,r=(0,c.useTheme)();return(0,t.jsx)(n.Box,{as:"h3",xs:{...r.text.medium700,maxWidth:600,whiteSpace:"pre-line"}
1,m:r.text.medium800,l:r.text.medium900,xl:{...r.text.medium1000},xxl:{...r.text.medium1200,maxWidth:1e3},children:i})};e.s(["IntroductionTextTitle",0,S],447659);let T=e=>{let{children:i,name:r,description:o,hint:a,maxDescriptionWidth:s,color:l="difference"}=e,u=(0,c.useTheme)();return(0,t.jsxs)(R.Flex,{xs:{flexDirection:"column",transform:"translateZ(0)",whiteSpace:"pre-line",..."difference"===l?{mixBlendMode:"difference",color:u.colors.white}:{color:"white"===l?"white":u.colors.test500}},children:[(0,t.jsxs)(S,{children:["string"==typeof r&&r,Array.isArray(r)&&r.join("\n")]}),(0,t.jsxs)(n.Box,{xs:{display:"flex",justifyContent:"space-between",alignItems:"flex-end",flexWrap:"wrap",paddingTop:8,gap:20},m:{paddingTop:20},children:[(0,t.jsxs)(k,{maxWidth:s,children:["string"==typeof o&&o,Array.isArray(o)&&o.join("\n"),(0,g.isValidElement)(o)&&o]}),(0,t.jsx)(n.Box,{xs:{...u.text.normal100},m:{color:u.colors.gray400,...u.text.normal200},children:a})]}),i]})};e.s(["IntroductionText",0,T],769454),e.s([],336075);var D=e.i(631914);let P=e=>{let{children:i,index:r,player:o}=e,a=(0,g.useRef)(null),[s,l]=(0,g.useState)(0);return(0,g.useEffect)(()=>{let e=setInterval(()=>{let e=0,t=0;if(!o)return;let{progressStates:i,currentProgress:n}=o,s=o.getProgressState(n);s&&a.current&&(s.id===i[2*r]?.id||s.id===i[2*r+1]?.id?"fade"===s.type?(e=i[2*r]?.alpha||0,t=i[2*r]?.y||0):(e=1,t=0):e=0,a.current.style.opacity=e.toString(),a.current.style.transform=`translate3d(0,${t}px,0)`,l(e))},16);return()=>{clearInterval(e)}},[r,o]),(0,t.jsx)(n.Box,{xs:{position:"absolute",padding:12,left:24,bottom:24},m:{left:"3vw",bottom:"3vw"},children:(0,t.jsx)(D.motion.div,{animate:{opacity:s},children:(0,t.jsx)("div",{ref:a,children:i})})})},z=e=>{let{elementInViewportProgress:i,items:r,backgroundColor:o}=e,{height:a=1,width:s=1}=(0,Q.useWindowSize)(),[l,c]=(0,g.useState)(0),[u,d]=(0,g.useState)(0),[h,A]=(0,g.useState)(null),p=(0,g.useMemo)(()=>r.map(e=>e.frames),[r]);return(0,b.useTransform)(i,e=>{let t=parseFloat((e*l).toFixed(0));u!==t&&d(t)}),(0,t.jsxs)(n.Box,{xs:{position:"relative"},children:[(0,t.jsx)(I,{backgroundColor:o,width:s,height:a,frames:p,progress:u,onInit:e=>{A(e)},onTotalProgressChange:e=>{c(e)}}),r.map((e,i)=>(0,t.jsx)(P,{player:h,index:i,children:(0,t.jsx)(T,{color:e.textColor,name:e.name,description:e.description})},e.description))]})},F=e=>{let{children:i}=e;return(0,t.jsx)(n.Box,{xs:{position:"absolute",padding:12,left:24,right:24,bottom:24,display:"grid",gridGap:8},m:{gridGap:20,left:"3vw",bottom:"3vw"},children:i})};e.s(["IntroductionTextPosition",0,F],414126);let M=e=>{let{children:i}=e;return(0,t.jsx)(n.Box,{xs:{borderRadius:40,overflow:"hidden",transform:"translateZ(0)"},children:i})};e.s(["ImageIntroductionItemContainer",0,M],621104);let U=e=>{let{type:i="image",videoLoop:r=!0,videoAutoPlay:o=!0,children:s,video:l,description:c,hint:u,images:d,videoPoster:h,name:A,frames:p,color:m="difference",maxDescriptionWidth:x}=e,v=(0,g.useRef)(null),{scrollYProgress:w}=(0,y.useScroll)({target:v,offset:["start center","end center"]}),[_,E]=(0,g.useState)("ready");return(0,b.useTransform)(w,e=>{e>.2&&e<.9&&"ready"===_&&"video"===i&&E("play")}),(0,t.jsxs)("div",{ref:v,style:{position:"relative"},children:[(0,t.jsxs)(M,{children:["frames"===i&&p&&"string"==typeof c&&(0,t.jsx)(n.Box,{children:(0,t.jsx)(z,{backgroundColor:"#FFFFFF",items:[{name:A,description:c,frames:p}],elementInViewportProgress:w})}),"video"===i&&l&&(0,t.jsxs)(g.Fragment,{children:[d&&(0,t.jsx)(a.OnlyDisplay,{xs:!0,children:d.s}),(0,t.jsxs)(n.Box,{xs:{position:"relative",height:540,display:d?"none":"block"},s:{display:"block"},m:{height:"auto",aspectRatio:"16 / 9"},children:[h&&(0,t.jsx)(f.Img,{xs:{position:"absolute",inset:0,width:"100%",height:"100%",display:"block",objectFit:"cover",zIndex:1},src:h}),(0,t.jsx)(C.VideoPlayer,{style:{top:0,left:0,width:"100%",height:"100%",position:"relative",display:"block",zIndex:2},status:_,autoPlay:o,loop:r,src:l})]})]},JSON.stringify(A)),"image"===i&&d&&(0,t.jsxs)(g.Fragment,{children:[(0,t.jsx)(a.OnlyDisplay,{xs:!0,children:d.s}),(0,t.jsx)(a.OnlyDisplay,{s:!0,children:d.m}),(0,t.jsx)(a.OnlyDisplay,{m:!0,l:!0,children:d.l}),(0,t.jsx)(a.OnlyDisplay,{xl:!0,xxl:!0,children:d.xl})]},JSON.stringify(c))]}),(0,t.jsx)(F,{children:(0,t.jsx)(T,{color:m,name:A,description:c,maxDescriptionWidth:x,hint:u})}),s]})};e.s(["ImageIntroduction",0,e=>{let{children:i,items:n=[]}=e;return(0,t.jsxs)(R.Flex,{xs:{flexDirection:"column",gap:20},m:{gap:40},children:[n.map(e=>(0,B.createElement)(U,{...e,key:JSON.stringify(e.name)})),i]})}],120845),e.s(["IntroductionSectionTitle",0,e=>{let{children:a,name:s}=e;return(0,t.jsxs)(r.Container,{children:[(0,t.jsxs)(n.Box,{xs:{textAlign:"center",paddingBottom:40},children:[(0,t.jsx)(i.SectionSubTitle,{as:"h2",uppercase:!0,children:(0,t.jsx)(o.AdaptiveI18n,{name:"title__introducing"})}),(0,t.jsx)(i.SectionTitle,{children:s.split(/\r?\n|\\n/).map(e=>e.trim()).filter(e=>e).join(" ")})]}),a]})}],573195),e.s(["IntroductionContainer",0,e=>{let{children:i,...r}=e;return(0,t.jsx)(n.Box,{xs:{paddingLeft:24,paddingRight:24},m:{paddingLeft:32,paddingRight:32},xl:{paddingLeft:36,paddingRight:36},xxl:{paddingLeft:40,paddingRight:40},externalProps:r,children:i})}],580279),e.s([],774550);var L=e.i(855651),K=e.i(382930),W=e.i(888684),V=e.i(512163);e.s(["NavBuyNowButton",0,({product:e})=>{let{skuList:i,isFreeShipping:n}=e,{openShoppingBag:r,addToShoppingBag:o}=(0,V.useShoppingBag)(),a=(0,v.useTranslations)(),{mobile:s}=(0,W.useMediaQuery)();return(0,t.jsx)(L.BuyNow,{disableQuickInfo:!0,product:e,size:"compact",onAddToBag:()=>{r(),o(i[0],1,!0)},isShowAddToBag:i.length>0&&!!i[0]?.shopifyGid,isFreeShipping:n,gtm:"cta",gtmId:"product-nav-buy-now",buttonOverride:{css:{gap:4}},children:s?(0,t.jsx)(K.PriceI18n,{price:e.price,discountedPrice:e.discountedPrice,children:"content__int_buy_for"}):a("action__buy")})}],746849)},843493,e=>{"use strict";var t=e.i(690058),i=e.i(386837);e.i(73753);var n=e.i(386120);e.i(924856);var r=e.i(908547),o=e.i(494944),a=e.i(610044),s=e.i(525908),l=e.i(134939),c=e.i(554745),u=e.i(377379),d=e.i(888684),h=e.i(231275),A=e.i(254793),p=e.i(40498),g=e.i(631914),m=e.i(885403),f=e.i(410578);let x={src:e.i(785970).default,width:1284,height:1612,blurWidth:6,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAYDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1aXyyg+71piP/2Q=="},y={src:e.i(659425).default,width:1284,height:1612,blurWidth:6,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAYDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1uJfl+YKMfnQB/9k="},b={src:e.i(210669).default,width:960,height:1400,blurWidth:5,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAYAAAAx8TU7AAAAa0lEQVR42k2NUQqAMAxDe/9bKoiCc46t3bpVjPVvgUBTHglVEdXWEENAV4XfSpoSjnXFviw4tw1WK0iLgHNGd9qcfJ8HFG+GephFIUWc9wUWgbh/gDIXFGH0MTDcZgZKPtS8b8zP6mt/mPUBm1abH0ZrOIEAAAAASUVORK5CYII="},v={src:e.i(344812).default,width:960,height:1400,blurWidth:5,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAYAAAAx8TU7AAAAfklEQVR42jWOUQqDMBBE9/5XbAsirRaxZhM3u4kxmaZCB97PY2CG1LmURZBjRDGDMCc69hmRxwsLTxy6gHIcYPsNSe69/UArE8jCCHFdyIAzvYBzBbn3gnWeLlQFrVUQM8N7jxBCl4pSCujjFMwG68u1VvxC3gu2zSP2S3/5BS6DmZVPbxJSAAAAAElFTkSuQmCC"},w=e=>{let{items:n}=e,[o,a]=(0,i.useState)(0);return(0,t.jsxs)(r.Box,{xs:{display:"flex",gap:"clamp(16px, 9.2vw, 130px)",alignItems:"center",flexDirection:"column-reverse",overflowX:"auto"},mobile:{flexDirection:"row"},children:[(0,t.jsx)(r.Box,{xs:{flex:.83,display:"none"},mobile:{display:"block"},children:n.map((e,i)=>(0,t.jsx)(_,{item:e,index:i,activeIndex:o,setActiveIndex:a},i))}),(0,t.jsx)(r.Box,{xs:{flex:1,position:"relative",width:"100%",aspectRatio:"initial"},mobile:{display:"flex",width:"fit-content",aspectRatio:"642/806"},children:n.map((e,n)=>(0,t.jsxs)(i.Fragment,{children:[(0,t.jsx)(r.Box,{xs:{position:"static",width:"100%",opacity:1,zIndex:1,flex:"none",borderRadius:24,overflow:"hidden",aspectRatio:"642/806"},mobile:{position:"absolute",top:0,left:0,width:"100%",height:"100%",opacity:+(n===o),zIndex:+(n===o),transition:"all 0.3s ease-out"},children:e.rightPanel}),(0,t.jsx)(c.OnlyDisplayRange,{below:"small",children:(0,t.jsx)(_,{item:e,index:n,activeIndex:n})})]},n))})]})},_=({item:e,index:i,activeIndex:n,setActiveIndex:o})=>{let s=(0,A.useTheme)();return(0,t.jsxs)(r.Box,{xs:{padding:"40px 0",cursor:"pointer"},mobile:{borderTop:`1px solid ${s.colors.gray200}`},onClick:o?()=>o(i):void 0,children:[(0,t.jsx)(r.Box,{xs:{...s.text.medium500,color:s.colors.gray900,marginBottom:8},mobile:{...s.text.medium700},children:e.title}),(0,t.jsx)(p.AnimatePresence,{initial:!1,children:i===n&&(0,t.jsx)(g.motion.div,{initial:{opacity:0,height:0}
1,animate:{opacity:1,height:"fit-content"},exit:{opacity:0,height:0},transition:{duration:.4,type:"spring",bounce:.1},style:{overflow:"hidden",display:"flex",flexDirection:"column",gap:8},children:e.description.map(e=>(0,t.jsxs)(r.Box,{xs:{display:"flex"},children:[(0,t.jsx)(a.CheckIcon,{style:{width:24,height:24,color:s.colors.brandAlt400,flex:"none"}}),(0,t.jsx)(u.Span,{xs:{color:s.colors.gray700,...s.text.normal300,marginLeft:8},mobile:{...s.text.normal400},children:e})]},e))})})]},i)},E=[{image:(0,t.jsx)(n.StaticImage,{src:b,alt:"card 1",draggable:!1}),key:"sign1"},{image:(0,t.jsx)(n.StaticImage,{src:v,alt:"card 1",draggable:!1},"sign2"),key:"sign2"},{image:(0,t.jsx)(n.StaticImage,{src:b,alt:"card 1",draggable:!1}),key:"sign3"},{image:(0,t.jsx)(n.StaticImage,{src:v,alt:"card 1",draggable:!1}),key:"sign4"}];function B(e,t,i){if(t===i)return e.slice();let n=e.slice(),[r]=n.splice(t,1);return void 0!==r&&n.splice(i,0,r),n}let R=()=>{let e=(0,A.useTheme)(),[n,r]=i.default.useState(E),[o,a]=i.default.useState(!1),{mobile:s}=(0,d.useMediaQuery)();return(0,i.useEffect)(()=>{if(n.length<=1)return;let e=setInterval(()=>{a(!0),setTimeout(()=>{r(e=>B(e,0,e.length-1)),a(!1)},150)},4e3);return()=>clearInterval(e)},[n]),(0,t.jsx)("div",{style:{position:"relative",display:"flex",alignItems:"flex-end",justifyContent:"center",backgroundColor:e.colors.gray200,height:"100%"},children:(0,t.jsx)(u.Ul,{xs:{position:"relative",width:"calc(100% - 118px)"},mobile:{width:"calc(100% - 160px)",height:"calc(100% - 106px)"},children:n.map((e,i)=>{let a=0===i;return(0,t.jsx)(g.motion.li,{style:{position:"absolute",transformOrigin:"top center",listStyle:"none",cursor:a?"grab":"auto",borderRadius:"45.8px"},animate:{bottom:12*i,scale:1-.08*i,zIndex:E.length-i,y:o&&a?20:0,opacity:1-.3*i},transition:{duration:.8,type:"spring",bounce:.1,y:{duration:.4,ease:[.2,0,.2,1]},opacity:{duration:.4,ease:[.2,0,.2,1]}},drag:!!a&&(!!s||"x"),dragConstraints:{top:0,bottom:0,left:0,right:0},onDragEnd:()=>{r(B(n,i,n.length-1))},children:e.image},e.key)})})})};e.s(["OneKeyApp",0,()=>{let e=(0,i.useRef)(null),a=(0,m.useTranslations)();(0,h.useNavigationThemeAutoSwitchPoint)("light",e);let c=[{title:a("title__advanced_security_with_real_time_risk_detection"),description:[a("content__blocks_over_1m_scams_every_year"),a("content__signguard_flags_malicious_contracts_phishing_sites"),a("content__see_every_method_allowance_address_amount_with_alerts")],rightPanel:(0,t.jsx)(R,{})},{title:a("title__buy_trade_stake_30000_coins_anonymously"),description:[a("content__access_100_plus_blockchains_from_one_dashboard"),a("content__track_send_receive_swap_across_networks"),a("content__real_time_market_data_for_thousands_cryptocurrencies"),a("content__buy_with_debit_credit_cards_bank_transfers_apple_google_pay"),a("content__stake_and_earn_passive_income_securely")],rightPanel:(0,t.jsx)(n.StaticImage,{objectFit:"cover",src:x,alt:"app feature 1"})},{title:a("title__works_all_platforms_with_or_without_hardware"),description:[a("content__all_platforms_macos_windows_ios_android_chrome_linux"),a("content__pair_with_onekey_hardware_wallets_for_ultimate_security")],rightPanel:(0,t.jsx)(n.StaticImage,{objectFit:"cover",src:y,alt:"app feature 2"})}];return(0,t.jsxs)(s.Container,{children:[(0,t.jsxs)(r.Box,{ref:e,xs:{display:"flex",flexDirection:"column",gap:40,alignItems:"center",marginBottom:40},children:[(0,t.jsx)(f.TextIntro,{title:"title__the_onekey_app_web3_on_your_phone_pc_mac_anywhere",xs:{textAlign:"center"}}),(0,t.jsx)(l.AdaptiveLink,{to:"/download",children:(0,t.jsx)(o.Button,{variant:"outlined",themeColor:"light",size:"large",children:a("action__try_onekey_app_for_free")})})]}),(0,t.jsx)(w,{items:c})]})}],843493)},307770,e=>{"use strict";e.i(843493),e.s([])},197688,144184,629975,41671,e=>{"use strict";e.s([],197688),e.s(["ProductInformation",()=>eF],41671),e.s([],629975),e.s(["MULTI_PRODUCT_GID_TO_SPECIAL_VARIANT_SKU_OVERRIDE",()=>eu,"PATH_TO_EXTRA_CONTENT_BELOW_BUNDLE",()=>ec,"PATH_TO_FEATURE_FLAGS",()=>em,"PATH_TO_HIDE_RECOMMEND_PRODUCTS",()=>eh,"PATH_TO_NAV_THEME",()=>ep,"PATH_TO_SHOW_REVIEWS",()=>eg,"PATH_TO_SHOW_THE_BLOCK_BADGE",()=>eA,"PATH_TO_SPECIAL_CONTENT",()=>
1ed,"VARIANT_GROUP_NAME_I18N_MAP",()=>el],144184);var t,i,n,r,o=e.i(690058),a=e.i(386837),s=e.i(362054);e.i(613024);var l=e.i(609677);e.i(133087);var c=e.i(313083),u=e.i(679612),d=e.i(586538),h=e.i(516459),A=e.i(581804),p=e.i(779480);e.i(924856);var g=e.i(677940),m=e.i(908547),f=e.i(525908),x=e.i(377379),y=e.i(554745),b=e.i(382930),v=e.i(347595),w=e.i(362903),_=e.i(920427),E=e.i(254793),B=e.i(885403),R=e.i(392697);e.i(186337);var C=e.i(400253),j=e.i(720645),O=e.i(749304),I=e.i(942207),Q=e.i(604500),k=e.i(855651),S=e.i(434122),T=e.i(949498),D=e.i(149320),P=e.i(134939),z=e.i(401003),F=e.i(906812),M=e.i(823613),U=e.i(259728),L=e.i(577318),K=e.i(419087),W=e.i(104899),V=e.i(965233),N=e.i(846938),H=e.i(298834),Y=e.i(512163),J=e.i(483e3),G=e.i(592765),Z=e.i(417499);e.i(303619);var q=e.i(64156);e.i(743387);var X=e.i(593319);e.i(73753);var $=e.i(386120),ee=e.i(931713),et=e.i(201276),ei=e.i(807466),en=e.i(8297);let er={src:e.i(275474).default,width:720,height:404,blurWidth:8,blurHeight:4,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAECAYAAACzzX7wAAAATElEQVR42k2NwQqAQAhE9/+/MbxEdWpPLoKZ0ypYPRkYZJhpRGS9dwSKa56hsElz9/ex3js2P/CnlWFmLCeleIwvEDVZrwoRSYWviQcwC30NeHeAqwAAAABJRU5ErkJggg=="},eo={src:e.i(577082).default,width:1232,height:896,blurWidth:8,blurHeight:6,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAGCAYAAAD+Bd/7AAAAqElEQVR42iXMuw6CQABE0f3/GjuhsvEHhAY7CzHEKGhckEYjaGBXwj6hGQFvcsoZEsdxxBgTQkgxxTgX1fsz20eHiNAso0JK9P2AfhhgjEXDvqgZR5JeKMnynI5raG2gjUGjOB7dC09R4ng7UXIvCiqVxkRoiV0bYVG5cEoXq/Oaknx8UErB2h7GWvCuRd2yWXJNKfE8zwmCwA+3Wz8MQ39qs/lbLl3nB0m+p825LxEzAAAAAElFTkSuQmCC"},ea={src:e.i(510533).default,width:684,height:610,blurWidth:8,blurHeight:7,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAHCAYAAAA1WQxeAAAAn0lEQVR42l2MsQqDMBRF00Uh6la3bnXpd3bwJxSc1NVZ8TcSsvoDIQkhGSR9VzqUHrjk8c7NY+xLXdf3tm3fCGb2S9M0z3meJ+99RDBjd8k8z7OBIHGGEFKMMdF79n0/ZAQriG3bVghjTLLWJudcWpZl5ZwXrKqqcidQgERJa43CTn9LXODjOE5KqUNKeUUIcXRdN9EFzm7Eg3j9gR3cB6ozaUn4nSanAAAAAElFTkSuQmCC"},es=({title:e,description:t,image:i,index:n,...r})=>{let a=(0,E.useTheme)(),s=(0,B.useTranslations)();return(0,o.jsxs)(m.Box,{xs:{display:"flex",position:"relative",padding:24,backgroundColor:a.colors.gray100,borderRadius:24,overflow:"hidden",justifyContent:"space-between",alignItems:"center"},l:{padding:56},externalProps:r,children:[(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",justifyContent:"space-between",gap:114},mobile:{gap:165},l:{gap:196},children:[(0,o.jsx)(m.Box,{xs:{display:"flex",justifyContent:"center",alignItems:"center",width:40,height:40,borderRadius:"50%",backgroundColor:"white",...a.text.medium600},mobile:{width:64,height:64},children:n}),(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:8,color:a.colors.gray900},mobile:{gap:16},children:[(0,o.jsx)(x.H4,{xs:{...a.text.medium600},mobile:{...a.text.medium700},children:s(e)}),(0,o.jsx)(x.P,{xs:{...a.text.normal300},mobile:{...a.text.normal500},children:s(t)})]})]}),i]})},el={Style:"content__choose_a_look",Color:"content__choose_a_color"},ec={"/products/onekey-classic-1s":"content__learn_more_from_quick_start_guide","/products/onekey-classic-1s-pure":"content__learn_more_from_quick_start_guide","/products/onekey-classic-1s-pure-btc-only":"content__learn_more_from_quick_start_guide"},eu={"gid://shopify/ProductVariant/44085737783458":{description:"content__built_in_battery"},"gid://shopify/ProductVariant/45459363692706":{description:"content__battery_free"},"gid://shopify/ProductVariant/46559625183394":{description:"content__designed_exclusively_for_bitcoin_battery_free",tips:(0,o.jsx)(R.Paragraph,{dynamicComponent:!0,i18n:!0,children:"content__btc_only_firmware_desc"})}},ed={"/products/onekey-gift-card":()=>(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(et.SectionContent,{title:"title__how_it_works",children:(0,o.jsxs)(f.Container,{xs:{display:"grid",gap:24},mobile:{gridTemplateColumns:"repeat(2, 1fr)"},children:[(0,o.jsx)(es,{title:"title__buy_a_gift_card",description:"content__buy_a_gift_card",image:(0,o.jsx)(m.Box,{xs:{position:"absolute",top:24,right:24,width:"50%"},mobile:{width:"56%"},l:{top:56,right:56,width:"60%"},children:(0,o.jsx)($.StaticImage,{src:er,alt:"Buy a gift card"})}),index:1,mobile:{gridColumn:"span 1"}}),(0,o.jsx)(es,{title:"title__delivered_by_email",description:"content__delivered_by_email",image:(0,o.jsx)(m.Box,{xs:{position:"absolute",top:0,right:0,width:"50%"},l:{top:0,right:0,width:"56%"},children:(0,o.jsx)($.StaticImage,{src:ea,alt:"Delivered by email"})}),index:2,mobile:{gridColumn:"span 1"}}),(0,o.jsx)(es,{title:"title__redeem_at_checkout",description:"content__redeem_at_checkout",image:(0,o.jsx)(m.Box,{xs:{width:"45%",position:"absolute",top:24,right:24},mobile:{width:"45%",position:"static"},children:(0,o.jsx)($.StaticImage,{src:eo,alt:"Redeem at checkout"})}),index:3,mobile:{gridColumn:"span 2"}})]})}),(0,o.jsx)(et.SectionContent,{title:"title__good_to_know_before_you_buy",children:(0,o.jsx)(ee.FAQCardList,{items:en.GIFT_CARD_FAQ_ITEMS})}),(0,o.jsx)(et.SectionContent,{children:(0,o.jsx)(f.Container,{children:(0,o.jsx)(ei.TermsAndConditions,{mobile:{marginBottom:64}})})})]}),"/products/onekey-classic-1s":q.BuyClassic1s,"/products/onekey-classic-1s-pure":q.BuyClassic1s,"/products/onekey-classic-1s-pure-btc-only":q.BuyClassic1s,"/products/buy-onekey-pro":X.BuyPro},eh={"/products/onekey-classic-1s":!0,"/products/onekey-classic-1s-pure":!0,"/products/onekey-classic-1s-pure-btc-only":!0,"/products/buy-onekey-pro":!0},eA={"/products/buy-onekey-pro":!0,"/products/onekey-classic-1s":!0,"/products/onekey-classic-1s-pure":!0,"/products/onekey-classic-1s-pure-btc-only":!0},ep={"/products/buy-onekey-pro":{themeColor:"light",autoSwitchThemeColor:!0},"/products/onekey-classic-1s":{themeColor:"light",autoSwitchThemeColor:!0},"/products/onekey-classic-1s-pure":{themeColor:"light",autoSwitchThemeColor:!0},"/products/onekey-classic-1s-pure-btc-only":{themeColor:"light",autoSwitchThemeColor:!0}},eg={"/products/onekey-classic-1s":!0,"/products/onekey-classic-1s-pure":!0,"/products/onekey-classic-1s-pure-btc-only":!0,"/products/buy-onekey-pro":!0,"/products/onekey-gift-card":!1,"/products/onekey-lite":!0,"/products/onekey-keytag":!0},em={"/products/onekey-gift-card":[{icon:Z.MailIcon,desc:"content__send_by_email_within_5_minutes",variant:"gray"},{icon:G.CheckCircleIcon,desc:"content__no_fees"},{icon:G.CheckCircleIcon,desc:"content__no_expiration_date"}]};var ef=e.i(40498),ex=e.i(631914);let ey=(0,a.forwardRef)((e,t)=>{let{value:i,onChange:n}=e,r=(0,B.useTranslations)(),s=(0,A.useWebLocale)(),l=(0,E.useTheme)(),[c,u]=(0,a.useState)(!!i),[d,h]=(0,a.useState)({recipientEmail:i?.recipientEmail||"",recipientName:i?.recipientName||"",message:i?.message||"",sendOn:i?.sendOn||""}),[p,g]=(0,a.useState)({}),f=(0,a.useCallback)(e=>{let t=e.target.checked;u(t),t?n?.(d):(h({recipientEmail:"",recipientName:"",message:"",sendOn:""}),g({}),n?.(void 0))},[d,n]),y=(0,a.useCallback)((e,t)=>{let i={...d,[e]:t};if(h(i),p[e]&&g({...p,[e]:void 0}),"recipientEmail"===e)if(t.trim())/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||g({...p,recipientEmail:"Please enter a valid email address"});else g({...p,recipientEmail:"Email is required"});c&&n?.(i)},[p,d,c,n]),b=(0,a.useCallback)(()=>
1{if(!c)return;let e={};if(d.recipientEmail.trim()){var t;t=d.recipientEmail,/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(t)||(e.recipientEmail="Please enter a valid email address")}else e.recipientEmail="Email is required";if(g(e),0===Object.keys(e).length)return d},[d,c]);(0,a.useImperativeHandle)(t,()=>({validate:b,getValue:()=>c?d:void 0,isGift:c}));let v=(0,a.useCallback)(e=>{if(e.preventDefault(),!c)return;let t=b();t&&n?.(t)},[c,n,b]),w=(0,a.useMemo)(()=>(0,o.jsxs)(m.Box,{as:"form",onSubmit:v,xs:{backgroundColor:l.colors.gray50,borderRadius:16,padding:24,display:"flex",flexDirection:"column",gap:24},children:[(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:4},children:[(0,o.jsx)(x.Span,{xs:{...l.text.medium200,color:l.colors.gray900},children:r("content__recipient_email")}),(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:8},children:[(0,o.jsx)(m.Box,{as:"input",type:"email",value:d.recipientEmail,onChange:e=>y("recipientEmail",e.target.value),required:!0,placeholder:"[email protected]",css:{border:"none",borderBottom:`1px solid ${l.colors.gray700}`,padding:"8px 0",backgroundColor:"transparent",outline:"none",color:l.colors.gray900,...l.text.normal300,"&::placeholder":{color:l.colors.gray300},"&:focus":{borderBottomColor:l.colors.gray900},...p.recipientEmail&&{borderBottomColor:"#ef4444"}}}),p.recipientEmail&&(0,o.jsx)(x.Span,{xs:{...l.text.normal200,color:"#ef4444",fontSize:12},children:p.recipientEmail})]})]}),(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:4},children:[(0,o.jsx)(x.Span,{xs:{...l.text.medium200,color:l.colors.gray900},children:r("content__recipient_name_optional")}),(0,o.jsx)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:12,height:40},children:(0,o.jsx)(m.Box,{as:"input",type:"text",value:d.recipientName,onChange:e=>y("recipientName",e.target.value),placeholder:r("content__your_name"),css:{border:"none",borderBottom:`1px solid ${l.colors.gray700}`,padding:"8px 0",backgroundColor:"transparent",outline:"none",color:l.colors.gray900,...l.text.normal300,"&::placeholder":{color:l.colors.gray300},"&:focus":{borderBottomColor:l.colors.gray900}}})})]}),(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:4},children:[(0,o.jsx)(x.Span,{xs:{...l.text.medium200,color:l.colors.gray900},children:r("content__send_on_optional")}),(0,o.jsx)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:12,height:40},children:(0,o.jsx)(m.Box,{xs:{display:"flex",alignItems:"center",gap:8,border:"none",borderBottom:`1px solid ${l.colors.gray700}`,padding:"8px 0"},children:(0,o.jsx)(m.Box,{as:"input",type:"date",lang:s.replace("_","-"),value:d.sendOn||"",onChange:e=>y("sendOn",e.target.value),css:{border:"none",backgroundColor:"transparent",outline:"none",color:l.colors.gray900,...l.text.normal300,flex:1,"&::placeholder":{color:l.colors.gray300},"&:focus":{borderBottomColor:l.colors.gray900},"&::-webkit-calendar-picker-indicator":{cursor:"pointer",opacity:.6}}})})})]}),(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:4,minHeight:160},children:[(0,o.jsx)(x.Span,{xs:{...l.text.medium200,color:l.colors.gray900},children:r("content__message_optional")}),(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:12,flex:1},children:[(0,o.jsx)(m.Box,{as:"textarea",value:d.message,onChange:e=>{let t=e.target.value;t.length<=200&&y("message",t)},placeholder:r("content__leave_a_message"),maxLength:200,rows:4,css:{border:"none",borderBottom:`1px solid ${l.colors.gray700}`,padding:"8px 0",backgroundColor:"transparent",outline:"none",color:l.colors.gray900,...l.text.normal300,resize:"vertical",minHeight:100,fontFamily:"inherit","&::placeholder":{color:l.colors.gray300},"&:focus":{borderBottomColor:l.colors.gray900}}}),(0,o.jsx)(x.Span,{xs:{...l.text.normal200,color:l.colors.gray500,fontSize:14},children:r("content__characters_max",{count:d.message?.length||0,max:200})})]})]})]}),[v,l,r,d.recipientEmail,d.recipientName,d.sendOn,d.message,p.recipientEmail,s,y]);return(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:12,borderRadius:3},children:[(0,o.jsxs)(m.Box,{as:"label",xs:{display:"flex",gap:8,alignItems:"center",cursor:"pointer"},children:[(0,o.jsx)(m.Box,{as:"input",type:"checkbox",checked:c,onChange:f,css:{width:16,height:16,margin:0,cursor:"pointer",accentColor:l.colors.gray900}}),(0,o.jsx)(x.Span,{xs:{...l.text.normal200,color:l.colors.gray900},children:r("content__i_want_to_send_this_as_a_gift")})]}),(0,o.jsx)(ef.AnimatePresence,{children:c&&(0,o.jsx)(ex.motion.div,{initial:{opacity:0,height:0}
1,animate:{opacity:1,height:"auto"},exit:{opacity:0,height:0},transition:{duration:.2},children:w})})]})});function eb(){return(eb=Object.assign.bind()).apply(null,arguments)}ey.displayName="SendGiftForm";let ev=function(e){return a.createElement("svg",eb({width:24,height:18,viewBox:"0 0 24 18",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e),t||(t=a.createElement("path",{d:"M2.974 9.477C1.658 8.161 1 7.503 1 6.685c0-.818.658-1.476 1.974-2.792L4.2 2.668c.972-.971 1.457-1.457 2.086-1.559.63-.102 1.244.205 2.472.82L12 3.548 9.548 6.003l7.476 7.476-2.232 2.233c-1.316 1.316-1.974 1.974-2.792 1.974-.818 0-1.476-.658-2.792-1.974L2.974 9.477Z",fill:"url(#paint0_linear_35517_31860)"})),i||(i=a.createElement("path",{d:"M2.974 9.477C1.658 8.161 1 7.503 1 6.685c0-.818.658-1.476 1.974-2.792L4.2 2.668c.972-.971 1.457-1.457 2.086-1.559.63-.102 1.244.205 2.472.82L12 3.548 9.548 6.003l7.476 7.476-2.232 2.233c-1.316 1.316-1.974 1.974-2.792 1.974-.818 0-1.476-.658-2.792-1.974L2.974 9.477Z",fill:"#1AB400"})),n||(n=a.createElement("path",{d:"M21.026 9.477C22.342 8.161 23 7.503 23 6.685c0-.818-.658-1.476-1.974-2.792L19.8 2.668c-.972-.971-1.457-1.457-2.086-1.559-.63-.102-1.244.205-2.472.82L12 3.548l2.452 2.453-7.477 7.476 2.233 2.233c1.316 1.316 1.974 1.974 2.792 1.974.818 0 1.476-.658 2.792-1.974l6.234-6.234Z",fill:"#31EF11"})),r||(r=a.createElement("defs",null,a.createElement("linearGradient",{id:"paint0_linear_35517_31860",x1:11.992,y1:19.65,x2:11.992,y2:-2.387,gradientUnits:"userSpaceOnUse"},a.createElement("stop",{stopColor:"#F9F9F9"}),a.createElement("stop",{offset:1,stopColor:"#E1E1E1"})))))};var ew=e.i(229138),e_=e.i(272888),eE=e.i(535236);let eB=[{src:ew.default,width:92},{src:e_.default,width:76},{src:eE.default,width:82}],eR=()=>(0,o.jsx)(m.Box,{xs:{display:"flex",gap:8,alignItems:"center"},children:eB.map(({src:e,width:t})=>(0,o.jsx)("img",{src:e,alt:"",width:t,height:28,style:{width:t,height:28,display:"block"}},e))});var eC=e.i(494944),ej=e.i(812),ej=ej,eO=e.i(735637);let eI={src:e.i(928150).default,width:1032,height:258,blurWidth:8,blurHeight:2,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAACAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDG0cA2TqRxuHH51g9maR3R/9k="},eQ=({sifu:e,effectiveSku:t,selected:i,onToggle:n})=>{let r=(0,B.useTranslations)(),a=(0,E.useTheme)(),s=(0,eO.useButtonStyle)({size:"small",variant:"outlined",themeColor:"dark"});return(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:12},children:[(0,o.jsx)(m.Box,{xs:{...a.text.medium300,color:a.colors.gray900},children:r("title__wallet_onboarding")}),(0,o.jsx)(m.Box,{role:"button",tabIndex:0,"aria-pressed":i,onClick:e=>{e.preventDefault(),n()},onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&(e.preventDefault(),n())},xs:{position:"relative",display:"flex",flexDirection:"column",borderRadius:12,overflow:"hidden",backgroundColor:a.colors.gray900,backgroundImage:`url(${eI.src})`,backgroundSize:"cover",backgroundPosition:"right center",backgroundRepeat:"no-repeat",minHeight:129,cursor:"pointer",boxShadow:i?`0 0 0 2px ${a.colors.white}, 0 0 0 4px ${a.colors.gray900}`:"none",transition:"opacity 0.2s, box-shadow 0.2s","&:hover":{opacity:.95}},children:(0,o.jsxs)(m.Box,{xs:{position:"relative",padding:16,display:"flex",flex:1,flexDirection:"column",justifyContent:"space-between",alignItems:"flex-start",ga
1p:12},children:[(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:12},children:[(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:2},children:[(0,o.jsx)(x.Span,{xs:{...a.text.medium300,color:a.colors.white},children:r("content__sifu_onboarding_session_title",{name:e.name})}),(0,o.jsx)(x.Span,{xs:{...a.text.normal100,color:"rgba(255,255,255,0.85)",maxWidth:302},children:r("content__personal_online_session_setup_hardware")})]}),(0,o.jsx)(b.Price,{xs:{...a.text.normal300,color:a.colors.white},price:t.price??0,discountedPrice:t.discountedPrice,showDiscount:!0})]}),(0,o.jsxs)(m.Box,{xs:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:[(0,o.jsx)(eC.Button,{size:"small",variant:i?"filled":"outlined",themeColor:"dark",loading:!1,onClick:e=>{e.stopPropagation(),n()},xs:{position:"relative",zIndex:2,...a.text.medium100,...i?{backgroundColor:a.colors.white,borderColor:a.colors.white}:{}},children:(0,o.jsxs)(m.Box,{xs:{display:"flex",alignItems:"center"},children:[(0,o.jsx)(m.Box,{xs:{display:"inline-flex",alignItems:"center",overflow:"hidden",width:12*!!i,opacity:+!!i,marginRight:6*!!i,transition:"width 0.2s ease, opacity 0.2s ease, margin-right 0.2s ease"},children:(0,o.jsx)(ej.default,{width:12,height:12})}),(0,o.jsx)(x.Span,{children:r(i?"title__added_to_bag":"action__add_to_bag")})]})}),e.path&&(0,o.jsx)(P.AdaptiveLink,{to:e.path,onClick:e=>e.stopPropagation(),style:{position:"relative",zIndex:2,textDecoration:"none"},children:(0,o.jsx)(m.Box,{xs:{...s,...a.text.medium100},children:r("action__learn_more")})})]})]})})]})},ek=e=>{let{children:t,activeProduct:i,selectedVariant:n,selectedBinding:r,selectedWarranty:l,selectedWarrantyGids:c,selectedSifu:u,onSelectVariantGid:h,onSelectBindingGids:A,onSelectWarrantyGids:p,onSelectSifu:g,primaryInfos:f,page:G,extraContentBelowBuyNowButton:Z}=e,{products:q,mdxContentKey:X}=G,{shopifyGid:$}=n??{},ee=(0,a.useMemo)(()=>r.map(e=>e.shopifyGid),[r]),{allProductDict:et,gidToVariantDict:ei,shippingEstimates:en}=(0,d.useAllOneKeyProduct)(),er=(0,J.useStackSatsActive)(),eo=q.length>1,ea=eo||(i.bindingSuggestions?.length??0)>0,{isFreeShipping:es,skuList:ed}=i,eh=et[K.SIFU_PRODUCT_GID],eA=eh?.skuList[0],ep=(0,a.useMemo)(()=>{let e=[];return n&&e.push({sku:n,quantity:1}),r.forEach(t=>{e.push({sku:t,quantity:1})}),l.forEach(t=>{e.push({sku:t,quantity:1})}),n&&u&&eA&&e.push({sku:eA,quantity:1,additionalLineItems:{__sifu_discount_for:n.shopifyGid}}),e},[n,r,l,u,eA]),eg=(0,B.useTranslations)(),[em,ef]=(0,a.useState)(1),[ex,eb]=(0,a.useState)(void 0),ew=(0,a.useMemo)(()=>en.map(e=>({key:e.name,value:e,label:eg(e.name)})),[en,eg]);(0,a.useEffect)(()=>{if(void 0!==ex||0===en.length)return;let e=(0,L.getCountryCode)();if(!e)return;let t=en.find(t=>(t.codes??[]).includes(e));t&&eb(t)},[en,ex]),(0,a.useEffect)(()=>{i&&(0,W.track)("view_item",{product:i,sku:n})},[i?.gid,n?.shopifyGid]);let e_=(0,N.useLocalizedHelpUrl)(),{addToShoppingBag:eE,openShoppingBag:eB,openUpsell:eC,shoppingBag:ej}=(0,Y.useShoppingBag)(),{totalPrice:eO,originalTotalPrice:eI,discountLoading:ek}=(0,Y.useShoppingBag)(ep,!1),eT=(0,a.useRef)(null),eD=(0,a.useRef)(null),eP=(0,E.useTheme)();(0,V.useIntercomLauncherOffset)(ea,eD);let{variantGroups:ez,groupSelections:eF,handleGroupSelect:eM}=(0,T.useVariantGroupSelect)({skuList:ed,selectedVariant:n,onSelectVariantGid:h}),eU=(0,H.useMemoizedFn)(()=>{let e,t;if((!i.isGiftCard||!eT.current||!eT.current.isGift||(e=eT.current.validate()??void 0))&&(i.isGiftCard&&(t=n?.selectedOptions?.find(e=>"Style"===e.name)?.value??""),n)){let o=l.length>0,a=(i.warrantyOptions?.length??0)>0,s=u&&!!eA,c=!s&&(0,K.shouldShowSifuUpsell)({triggerProduct:i,sifuProduct:eh,bagItems:ej}),d=[];!o&&a&&d.push("warranty"),c&&d.push("sifu");let h=d.length>0,A=r.flatMap(e=>{let t=ei[e.shopifyGid];return t?[{product:t.product,sku:e,quantity:1}]:[]}),p=l.flatMap(e=>{let t=ei[e.shopifyGid];return t?[{product:t.product,sku:e,quantity:1}]:[]}),g=s&&eh&&eA?[{product:eh,sku:eA,quantity:1}]:[];eE(n,em,!0,e,t?{__gift_card_style:t,__gift_card_initial_amount:n.price?.toFixed(2)??""}
1:void 0,o,void 0,!0),r.forEach(e=>{eE(e,1,!0,void 0,void 0,!1,void 0,!0)}),l.forEach(e=>{eE(e,1,!0,void 0,{__warranty_for:n.shopifyGid},!0,void 0,!0)}),s&&eA&&eE(eA,1,!0,void 0,{__sifu_discount_for:n.shopifyGid},!0,void 0,!0),h?eC(n.shopifyGid,em,{product:i,sku:n,quantity:em,additionalItems:[...A,...p,...g]},{sectionKeys:d}):(0,W.track)("add_to_cart",{product:i,sku:n,quantity:em,additionalItems:[...A,...p,...g]},{sendInstantly:!0}),eB()}}),eL=(0,a.useMemo)(()=>(0,o.jsx)(s.Flex,{xs:{flexDirection:"column",borderBottom:`1px solid ${eP.colors.gray200}`},children:ez?.map(e=>{let t=e.values.map(e=>({...e.variant,variantTitle:e.value})),i=eF[e.name],n=e.values.find(e=>e.value===i),r=n?.variant.shopifyGid,a=T.HIDDEN_VARIANT_GROUP_NAME_SET.has(e.name);return(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",...!a?{borderTop:`1px solid ${eP.colors.gray200}`,padding:"24px 0"}:{marginBottom:24}},children:[!T.HIDDEN_VARIANT_GROUP_NAME_SET.has(e.name)&&(0,o.jsx)(eS,{children:el[e.name]??e.name}),(0,o.jsx)(U.VariantRadio,{size:"medium",variants:t,selectedGid:r,onChange:t=>eM(e.name,t),displayType:T.IMAGE_VARIANT_GROUP_NAME_SET.has(e.name)?"image":"text"})]},e.name)})}),[eF,eM,eP.colors.gray200,ez]),eK=(0,a.useMemo)(()=>{if(eo)return(0,o.jsxs)(m.Box,{children:[(0,o.jsx)(eS,{children:eg("content__choose_your_model")}),(0,o.jsx)(U.VariantRadio,{variants:q.flatMap(e=>e.skuList).sort((e,t)=>(e.name?.length??0)-(t.name?.length??0)).map(e=>{let t=ei[e.shopifyGid]?.product?.type;return{...e,...eu[e.shopifyGid],...er&&t?{priceBadge:(0,o.jsx)(v.StackSatsBadge,{productType:t,theme:"normal"})}:{}}}),selectedGid:$,onChange:h,size:"medium",displayType:"detail"})]});if(ez&&ez.length>0)return eL;if(ed.length>1){let e=ed[0]?.selectedOptions?.[0]?.name,t=e&&el[e];return(0,o.jsxs)(m.Box,{children:[t&&(0,o.jsx)(eS,{children:eg(t)}),(0,o.jsx)(U.VariantRadio,{size:"medium",variants:ed,selectedGid:$,onChange:h})]})}},[eo,ez,ed,eg,q,$,h,eL,ei,er]),eW=(0,_.useGetProductSoldOut)(),eV=(0,a.useMemo)(()=>{if(i.bindingSuggestions&&i.bindingSuggestions.length>0){let e=(0,Q.compact)(i.bindingSuggestions.filter(e=>e!==K.SIFU_PRODUCT_GID).map(e=>et[e])).filter(e=>!eW(e)),t=(0,Q.compact)(e.flatMap(e=>e.skuList)).map(e=>{let t=ei[e.shopifyGid]?.product;return F.STACK_SATS_KEYTAG_ENABLED&&t?.type==="keyTag"&&er?{...e,price:e.price,discountedPrice:void 0!==e.price?e.price*F.STACK_SATS_KEYTAG_DISCOUNT_RATE:void 0,badge:(0,o.jsx)(v.StackSatsBadge,{text:eg("content__50_percent_off"),tooltip:eg("content__stack_sats_keytag_tooltip")}),description:eg("content__stack_sats_keytag_subline")}:e});if(0!==t.length)return(0,o.jsxs)(m.Box,{children:[(0,o.jsx)(eS,{children:eg("content__pair_with_your_wallet")}),(0,o.jsx)(U.VariantRadio,{size:"medium",variants:t,multiple:!0,selectedGids:ee,onChange:A,displayType:"detail"})]})}},[et,ei,eW,er,A,i.bindingSuggestions,ee,eg]),eN=(0,a.useMemo)(()=>{if(i.bindingSuggestions?.includes(K.SIFU_PRODUCT_GID)&&!(!eh||eW(eh))&&eA)return(0,o.jsx)(eQ,{sifu:eh,effectiveSku:eA,selected:u,onToggle:()=>g(!u)})},[eh,eA,eW,i.bindingSuggestions,u,g]),eH=(0,a.useMemo)(()=>{if(!i.warrantyOptions?.length)return;let{regularVariantsByPeriod:e}=(0,w.resolveWarrantyVariants)(i.warrantyOptions,ei),t=(0,w.buildWarrantyVariantsForRadio)({source:"regular",regularVariantsByPeriod:e,includeFree1Year:!1,t:eg});if(0===t.length)return;let n={"2 Year":"content__most_popular","3 Year":"content__best_value"},r=t.map(e=>{let t=e.selectedOptions?.find(e=>"Warranty Period"===e.name)?.value,i=t&&n[t];return i?{...e,badge:eg(i)}:e});return(0,o.jsxs)(m.Box,{children:[(0,o.jsxs)(eS,{children:[(0,o.jsx)(m.Box,{as:ev,css:{height:18,width:"auto"}}),(0,o.jsx)(x.Span,{children:"OneKey Care"})]}),(0,o.jsx)(z.ReplaceNotRepairCallout,{xs:{marginBottom:12}}),(0,o.jsx)(U.VariantRadio,{size:"medium",variants:r,selectedGid:c?.[0],onChange:e=>{p(e?[e]:[])},displayType:"detail",allowDeselect:!0,showPlus:!0,hideImage:!0,hideDescription:!0})]})},[ei,p,i.warrantyOptions,c,eg]),eY=(0,a.useMemo)(()=>{let e=G.path&&ec[G.path];return e&&eg(e)},[G.path,eg]),eJ=(0,a.useCallback)(e=>
1(0,o.jsx)(k.BuyNow,{product:i,isShowAddToBag:ed.length>0&&!!ed[0]?.shopifyGid,isFreeShipping:es,addToBagDirectly:!0,selectedGid:$,quantity:em,onAddToBag:eU,gtm:"cta",gtmId:"product-add-to-bag",addToBagGtm:"cta",addToBagGtmId:"product-add-to-bag-confirm",buttonOverride:{variant:"primary"===e?"filled":"outlined",themeColor:"primary"===e?"brand":"light",xs:{paddingTop:10,paddingBottom:10}},children:eg("action__add_to_bag")}),[eU,es,i,em,$,ed,eg]);return(0,o.jsxs)(m.Box,{xs:{flexDirection:"column",flex:1,paddingTop:40,paddingBottom:40},l:{paddingTop:0,paddingBottom:0},children:[(0,o.jsxs)(s.Flex,{xs:{flexDirection:"column",gap:24},children:[(0,o.jsx)(y.OnlyDisplayRange,{above:"large",children:f}),eK,eH,eV,eN,eY&&(0,o.jsx)(R.Paragraph,{css:{...eP.text.normal200,color:eP.colors.gray900,a:{color:eP.colors.gray900},"a:hover":{color:eP.colors.gray600}},dynamicComponent:!0,children:eY}),i.isGiftCard&&(0,o.jsx)(ey,{ref:eT}),ea?(0,o.jsxs)(m.Box,{ref:eD,xs:{position:"fixed",bottom:"var(--jp-notice-offset, 0px)",zIndex:20,padding:"16px 24px",backgroundColor:eP.colors.white,width:"100%",left:0,display:"flex",justifyContent:"space-between",borderTop:"1px solid",borderColor:eP.colors.gray100,flexDirection:"column",gap:16},mobile:{flexDirection:"row",padding:"20px 64px",alignItems:"center"},children:[(0,o.jsxs)(s.Flex,{xs:{flexDirection:"column",gap:12},children:[ew.length>0&&(0,o.jsx)(C.Select,{dropdownWidth:"fit-content",value:ex,items:ew,compare:(e,t)=>e?.name===t?.name,onChange:eb,placement:"top",style:{width:"fit-content"},maxHeight:400,children:(0,o.jsx)(x.Span,{xs:{...eP.textBox.capToAlphabetic,width:"fit-content",...eP.text.medium500},children:ex?eg("content__deliver_to_country",{value:eg(ex.name)}):eg("content__deliver_select_placeholder")})}),ex&&(0,o.jsxs)(m.Box,{xs:{display:"flex",alignItems:"center",gap:8},children:[i.isFreeShipping&&(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(j.FreeShippingLabel,{style:{xs:{...eP.text.normal200,color:eP.colors.gray900}}}),(0,o.jsx)(m.Box,{xs:{width:2,height:2,backgroundColor:eP.colors.gray900,borderRadius:"50%"}})]}),(0,o.jsx)(m.Box,{xs:{...eP.text.normal200,color:eP.colors.gray900,...eP.textBox.capToAlphabetic},children:eg("content__delivery_estimate",{days:ex.maxDays&&ex.minDays!==ex.maxDays?`${ex.minDays}-${ex.maxDays}`:String(ex.minDays)})})]})]}),(0,o.jsxs)(m.Box,{xs:{display:"flex",alignItems:"center",gap:8,justifyContent:"space-between"},mobile:{justifyContent:"flex-end"},children:[(0,o.jsxs)(m.Box,{xs:{display:"flex",alignItems:"center",gap:8},children:[(0,o.jsx)(b.Price,{xs:{...eP.text.normal400,color:eP.colors.gray900},loading:ek,price:eI,discountedPrice:eO,showDiscount:!0,reverse:!0}),er&&(0,o.jsx)(v.StackSatsBadge,{productType:ei[$??""]?.product?.type??i.type,theme:"normal"})]}),(0,o.jsx)(m.Box,{xs:{display:"flex",alignItems:"center",gap:8},children:eJ("primary")})]})]}):(0,o.jsx)(_.SoldOutForm,{product:i,productName:i.name,selectedSku:n,variant:"inline",children:(0,o.jsxs)(m.Box,{xs:{display:"flex",alignItems:"stretch",gap:8},children:[eJ("primary"),(0,o.jsx)(O.NumberInput,{value:em,onChange:ef})]})}),Z,t]}),(0,o.jsxs)(s.Flex,{xs:{flexDirection:"column",gap:22,padding:"16px 0",marginTop:40},l:{gap:16,marginTop:64},children:[(0,o.jsx)(m.Box,{xs:{height:1,backgroundColor:eP.colors.gray200,width:"100%",flex:"none"}}),(0,o.jsx)(eR,{}),(0,o.jsxs)(s.Flex,{xs:{alignItems:"center",gap:8,color:eP.colors.gray900},children:[(0,o.jsx)(S.DeliveryIcon,{width:20,height:20}),(0,o.jsx)(x.Span,{xs:{...eP.text.normal200,color:eP.colors.gray900},children:es?(0,o.jsx)(D.AdaptiveI18n,{name:"content__free_international_shipping"}):(0,o.jsx)(D.AdaptiveI18n,{name:"content__globally_shipping_free_on_orders_over_89"})})]}),(0,o.jsxs)(s.Flex,{xs:{alignItems:"center",gap:8},children:[(0,o.jsx)(M.ServiceIcon,{width:20,height:20}),(0,o.jsx)(x.Span,{xs:{...eP.text.normal200,color:eP.colors.gray900},children:(0,o.jsx)(D.AdaptiveI18n,{name:"content__24_7_support"})})]}),(0,o.jsx)(m.Box,{children:(0,o.jsx)(P.AdaptiveLink,{to:e_("https://help.onekey.so/articles/11461245"),children:(0,o.jsx)(x.Span,{xs:{textDecoration:"underline",...eP.text.normal200,color:eP.colors.test500}
1,children:(0,o.jsx)(D.AdaptiveI18n,{name:"title__shipping_return"})})})})]}),X&&(0,o.jsx)(I.ProductMDXContent,{xs:{marginTop:40},mobile:{marginTop:80},children:eg(X)})]})},eS=e=>{let{children:t}=e,i=(0,E.useTheme)(),n=(0,B.useTranslations)();return(0,o.jsx)(m.Box,{xs:{...i.text.medium300,color:i.colors.gray900,marginBottom:12,display:"flex",alignItems:"center",gap:4},children:"string"==typeof t?n(t):t})};var eT=e.i(720125),eD=e.i(911371);let eP=({reviews:e})=>{let t=(0,E.useTheme)(),i=(0,B.useTranslations)(),{totalCount:n,averageRating:r}=(0,a.useMemo)(()=>(0,eD.computeReviewStats)(e),[e]),s=(0,a.useCallback)(()=>{let e=document.getElementById(eD.REVIEWS_SECTION_ID);if(e){let t=e.getBoundingClientRect().top+window.scrollY-120;window.scrollTo({top:t,behavior:"smooth"})}},[]);return 0===n?null:(0,o.jsxs)(m.Box,{xs:{display:"flex",gap:6,alignItems:"center",cursor:"pointer"},onClick:s,children:[(0,o.jsx)(eT.StarsDisplay,{averageRating:r,size:16}),(0,o.jsxs)(x.Span,{xs:{...t.text.normal200,color:t.colors.gray900,...t.textBox.capToAlphabetic},children:[r.toFixed(1),(0,o.jsxs)(x.Span,{xs:{...t.text.normal200,color:t.colors.gray400,marginLeft:4,...t.textBox.capToAlphabetic},children:["(",i("content__n_reviews",{count:n}),")"]})]})]})};e.i(974796);var ez=e.i(132566);let eF=e=>{let{extraFeatureFlags:t,page:i,showEAL6PlusBadge:n=!0,showTheBlockBadge:r=!1,showReview:R=!1,extraContentBelowBuyNowButton:C,selectedVariantGid:j,onSelectVariantGid:O}=e,{products:I}=i,[Q,k]=(0,a.useState)(I[0]?.skuList[0]?.shopifyGid),S=void 0!==j,T=S?j:Q,{gidToVariantDict:D}=(0,d.useAllOneKeyProduct)(),P=(0,B.useTranslations)(),z=(0,A.useWebLocale)(),[F,M]=(0,a.useState)([]),[U,L]=(0,a.useState)([]),[K,W]=(0,a.useState)(!1),V=(0,a.useCallback)(e=>{let t=D[e]?.product,i=T?D[T]?.product:void 0,n=t?.buyPath;n&&(i?.gid&&t?.gid&&i.gid!==t.gid&&(L([w.WARRANTY_FREE_1YEAR_GID]),W(!1)),window.history.replaceState({},"",(0,p.buildLanguagePath)(n,z)),S&&O?O(e):k(e))},[D,z,S,O,T]),N=(0,a.useMemo)(()=>T?D[T]?.product:void 0,[D,T]),H=(0,_.useProductSoldOut)(N),Y=(0,a.useMemo)(()=>I.flatMap(e=>e.gid),[I]),J=(0,h.useJudgeMeReviews)(Y),G=(0,E.useTheme)(),Z=(0,a.useMemo)(()=>T?D[T]:void 0,[T,D]),q=(0,a.useMemo)(()=>F.map(e=>D[e]).filter(e=>!!e),[F,D]),X=(0,a.useMemo)(()=>U.map(e=>D[e]).filter(e=>!!e),[U,D]),$=(0,a.useMemo)(()=>{let e=N?.isGiftCard?[]:[...N?.images.gallery?.map(e=>e.image)??[]],t=Z?.color?.toLowerCase();if(t){let i=e.filter(e=>{let i=e.altText?.trim().toLowerCase();if(!i)return!0;let n=`#${t}`;return i.includes(n)});i.length>0&&(e.length=0,e.push(...i))}return Z&&Z.originalImage&&e.unshift(Z.originalImage),N&&N.isGiftCard&&0===e.length&&N.images.gallery?.[0]?.image&&e.unshift(N.images.gallery[0]?.image),e},[Z,N]),ee=(0,a.useCallback)(e=>{if(!N)return null;let{name:i,description:a,isEAL6Plus:d,featureTags:h,kicker:A}=N,p="h1"===e?x.H1:x.Span;return(0,o.jsxs)(m.Box,{xs:{display:"flex",flexDirection:"column",gap:16},mobile:{gap:24},children:[(0,o.jsxs)(s.Flex,{xs:{flexDirection:"column",gap:6},children:[(0,o.jsxs)(s.Flex,{xs:{flexDirection:"column",gap:4},children:[A&&(0,o.jsx)(x.Span,{xs:{...G.text.medium100,color:G.colors.gray400,textTransform:"uppercase"},children:P(A)}),(0,o.jsxs)(p,{xs:{...G.text.medium700,color:G.colors.test500,whiteSpace:"pre-line",textWrap:"balance",...r&&{display:"flex",alignItems:"center",flexWrap:"wrap",columnGap:12}},mobile:G.text.medium800,children:[(0,o.jsx)(g.AnimateHeightWrapper,{widthMode:"fit-container",wrapperStyle:{backgroundColor:G.colors.white,position:"relative",zIndex:1},children:P(i)}),d&&n&&(0,o.jsx)(m.Box,{xs:{display:"inline-block",marginLeft:12,alignItems:"center"},children:(0,o.jsx)(m.Box,{xs:{transform:"translate3d(0, 2px, 0)",width:34,height:34}
1,l:{width:42,height:42},xl:{transform:"translate3d(0, 3px, 0)",width:50,height:50},xxl:{width:66,height:66},children:(0,o.jsx)(l.EAL6PlusBadge,{theme:"dynamic"})})}),r&&(0,o.jsx)(u.TheBlockFeaturedBadge,{style:{xs:{color:"#CCA65A",height:36},mobile:{height:46}}})]})]}),R&&(0,o.jsx)(eP,{reviews:J}),a&&(0,o.jsx)(x.Span,{xs:{...G.text.normal300,color:G.colors.gray700,opacity:.6},children:a})]}),(0,o.jsx)(g.AnimateHeightWrapper,{widthMode:"fit-container",children:(0,o.jsx)(c.FeatureTags,{featureTags:h||[],isEAL6Plus:d,extraFeatureFlags:t})}),1===I.length&&(0,o.jsxs)(m.Box,{xs:{display:"flex",alignItems:"center",gap:8,flexWrap:"wrap"},children:[(0,o.jsx)(b.Price,{xs:{...G.text.normal600,color:G.colors.gray900},soldOut:H,price:Z?.price??N.price,discountedPrice:Z?.discountedPrice??N.discountedPrice,showDiscount:!0}),(0,o.jsx)(v.StackSatsBadge,{productType:N.type,theme:"normal"})]})]})},[N,G.text.medium100,G.text.medium700,G.text.medium800,G.text.normal300,G.text.normal600,G.colors.gray400,G.colors.test500,G.colors.white,G.colors.gray700,G.colors.gray900,P,n,r,R,J,t,I.length,H,Z?.price,Z?.discountedPrice]),et=(0,a.useMemo)(()=>ee("h1"),[ee]),ei=(0,a.useMemo)(()=>ee("span"),[ee]);return(0,o.jsx)(f.Container,{as:"section",children:(0,o.jsxs)(m.Box,{xs:{display:"flex",width:"100%",flexDirection:"column",paddingTop:100},l:{paddingBottom:60,gap:64,flexDirection:"row",alignItems:"start",position:"relative"},children:[(0,o.jsx)(y.OnlyDisplayRange,{below:"tablet",children:ei}),(0,o.jsx)(ez.ProductImageSwiper,{gallery:$??[]},T),N&&(0,o.jsx)(ek,{selectedVariant:Z,selectedBinding:q,selectedWarranty:X,selectedWarrantyGids:U,selectedSifu:K,onSelectVariantGid:V,onSelectBindingGids:M,onSelectWarrantyGids:L,onSelectSifu:W,activeProduct:N,primaryInfos:et,page:i,extraContentBelowBuyNowButton:C})]})})}},756708,e=>{"use strict";var t=e.i(690058),i=e.i(386837),n=e.i(362054);e.i(728288);var r=e.i(276330);e.i(133087);var o=e.i(313083),a=e.i(720645);e.i(924856);var s=e.i(254793),l=e.i(885403);let c=e=>{let{children:i}=e,n=(0,s.useTheme)(),r=(0,l.useTranslations)();return(0,t.jsxs)("div",{style:{...n.text.medium200,color:"#F95706",borderRadius:3,paddingTop:1,paddingLeft:4,paddingRight:4,paddingBottom:1,width:"fit-content",border:"1px solid #F95706",textWrap:"nowrap"},children:[r("content__new").toUpperCase()," ",i]})};var u=e.i(908547),d=e.i(855651),h=e.i(149320),A=e.i(134939),p=e.i(382930),g=e.i(377379),m=e.i(920427);let f=e=>{let{children:l,product:f,withoutDescription:x,wrapperStyle:y={},imageStyle:b,wrapperOverride:v}=e,{images:{preview:w},name:_,description:E,price:B,discountedPrice:R,isNew:C,isFreeShipping:j,isEAL6Plus:O,sortedShops:I,skuList:Q,featureTags:k=[],buyPath:S}=f,T=(0,s.useTheme)(),D=(0,m.useProductSoldOut)(f),P=(0,i.useMemo)(()=>(0,t.jsxs)(n.Flex,{xs:{color:T.colors.test500,gap:16,flexDirection:"column",flex:2},children:[j&&(0,t.jsx)(a.FreeShippingLabel,{style:{css:{...T.text.normal200,"> .delivery-icon":{width:16,height:16},position:"absolute",top:32,left:32}}}),(0,t.jsxs)(n.Flex,{xs:{gap:24,flexDirection:"column"},children:[(0,t.jsx)(n.Flex,{xs:{display:"flex",alignItems:"center",flexWrap:"wrap",justifyContent:"space-between",gap:8},children:(0,t.jsxs)(n.Flex,{className:"product-card-name",xs:{...T.text.medium600,marginRight:12,alignItems:"center"},children:[_,C&&(0,t.jsx)("div",{style:{display:"inline-block",verticalAlign:"middle",paddingLeft:8},children:(0,t.jsx)(c,{})})]})}),!x&&(0,t.jsx)(g.Span,{css:{color:T.colors.test400},xs:T.text.normal400,children:E})]}),(0,t.jsx)(o.FeatureTags,{featureTags:k,isEAL6Plus:O}),(0,t.jsxs)(u.Box,{xs:{display:"flex",justifyContent:"space-between",alignItems:"start",marginTop:"auto",gap:24},children:[(0,t.jsx)(u.Box,{css:{display:"flex",gap:8,alignItems:"center",flexWrap:"wrap"},children:(0,t.jsx)(p.Price,{xs:T.text.normal600,price:B,discountedPrice:R,soldOut:D,showDiscount:!0})}),(0,t.jsx)(u.Box,{xs:{display:"flex",gap:8,alignItems:"center",justifyContent:"space-between",position:"relative",zIndex:2},children:(0,t.jsx)(d.BuyNow,{fixedPopover:!0,product:f,buttonOverride:{xs:{position:"relative",zIndex:2,whiteSpace:"nowrap",flex:"none"}},menuPlacement:"bottom",shops:I||[],skuList:Q,isShowAddToBag:Q.length>0&&!!Q[0]?.shopifyGid,isFreeShipping:j,stopItemClickPropagation:!0,children:(0,t.jsx)(h.AdaptiveI18n,{name:"action__add_to_bag"})})})]})]}),[E,R,k,O,j,C,D,_,B,f,Q,I,T,x]);return(0,t.jsxs)(u.Box,{xs:{position:"relative",borderRadius:24,backgroundColor:T.colors.gray50,"&:hover":{backgroundColor:T.colors.gray100},transition:"background-color 0.2s",height:"100%"},css:y,externalProps:v,children:[S&&(0,t.jsx)(A.AdaptiveLink,{to:S,style:{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1}}),(0,t.jsxs)(n.Flex,{className:"product-card-padding-wrapper",xs:{boxSizing:"border-box",padding:24,gap:24,flexDirection:"column",height:"100%"},children:[(0,t.jsx)(n.Flex,{xs:{alignItems:"center",justifyContent:"center"},m:{flex:1},children:(0,t.jsx)(r.StrapiImage,{...b??{xs:{width:"min(360px, 50vw)",height:"min(360px, 50vw)"},s:{width:260,height:260},m:{width:320,height:320},l:{width:460,height:460},xl:{width:560,height:560}},image:w,alt:_})}),P]}),l]})};e.i(167610);var x=e.i(738592),y=e.i(586538),b=e.i(363054),v=e.i(410578);let w=["pro","classic1s","classic1sPure","classic1sPureBtcOnly"];e.s(["RecommendSection",0,e=>{let i=(0,y.useOneKeyProduct)(),{children:n,exclude:r,productTypes:o=w,...a}=e,s=o.filter(e=>!r?.includes(e)).filter(e=>!b.SOLD_OUT_PRODUCT_TYPE_SET.has(e)).map(e=>i[e]);return(0,t.jsxs)(g.Section,{xs:{paddingBottom:20,paddingTop:60},m:{paddingBottom:40,paddingTop:80},externalProps:a,children:[(0,t.jsx)(u.Box,{css:{textAlign:"center"},children:(0,t.jsx)(v.TextIntro,{title:"title__you_might_also_like",as:"h2"})}),(0,t.jsx)(x.ScrollContainer,{children:(0,t.jsx)(u.Box,{css:{display:"flex",gap:24,justifyContent:"center",alignItems:"stretch",width:"fit-content",margin:"0 auto",paddingTop:24},mobile:{paddingTop:48},children:s.map(e=>(0,t.jsx)(u.Box,{xs:{flex:1,maxWidth:540,minWidth:320,scrollSnapAlign:"start"},children:(0,t.jsx)(f,{product:e,imageStyle:{xs:{height:260,width:260},m:{height:320,width:320}},withoutDescription:!0}
1)},e.name))})}),n]})}],756708)},901158,108852,415294,e=>{"use strict";e.i(756708),e.s([],901158);var t=e.i(690058),i=e.i(386837);e.i(709906);var n=e.i(652643);e.i(508204);var r=e.i(629394);e.i(924856);var o=e.i(908547),a=e.i(525908),s=e.i(149320),l=e.i(734753),c=e.i(888684),u=e.i(885403),d=e.i(362054),h=e.i(254793),A=e.i(631914),p=e.i(803928),g=e.i(330142);e.i(73753);var m=e.i(386120);let f={src:e.i(768528).default,width:2040,height:2040,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1mRVMJOAflzkUwP/Z"},x={src:e.i(979160).default,width:2040,height:2040,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD0m21Gyu7d2hKsVypOCCCPwqKdSNRXiYUq8Kybh0P/2Q=="},y={src:e.i(521232).default,width:2040,height:2040,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1cxIbUuFXhPTnNMR//9k="},b={src:e.i(277853).default,width:2040,height:2040,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1OSKIZkVPnxwO9IzP/9k="};function v(){let e=(0,u.useTranslations)();
1return{items:[{title:e("title__product_detail_multi_chain_support"),description:e("title__product_detail_multi_chain_support_desc"),image:(0,t.jsx)(m.StaticImage,{src:f,alt:e("title__product_detail_multi_chain_support")})},{title:e("title__product_manage_assets_with_multi_account"),description:e("title__product_manage_assets_with_multi_account_desc"),image:(0,t.jsx)(m.StaticImage,{src:x,alt:"alt"})},{title:e("title__product_detail_all_round_protection"),description:e("title__product_detail_all_round_protection_desc"),image:(0,t.jsx)(m.StaticImage,{src:y,alt:e("title__product_detail_all_round_protection")})},{title:e("title__product_detail_all_platform_covered"),description:e("title__product_detail_all_platform_covered_desc"),image:(0,t.jsx)(m.StaticImage,{src:b,alt:e("title__product_detail_all_platform_covered")})}]}}var w=e.i(377379);let _=e=>{let{title:i,description:n,image:r,active:a=!1,index:s,...l}=e,c=(0,h.useTheme)();return(0,t.jsxs)(d.Flex,{xs:{cursor:"pointer",transition:c.transitions.allEaseOut,flexDirection:"column",gap:26,opacity:a?1:.5,":hover":{opacity:1}},xl:{gap:32},...l,children:[0!==s&&(0,t.jsx)(o.Box,{css:{height:1,width:"100%",backgroundColor:c.colors.test500}}),(0,t.jsxs)(d.Flex,{css:{flexDirection:"column",gap:8},children:[(0,t.jsx)(w.Span,{xs:{color:c.colors.test500,...c.text.medium600},xl:c.text.medium700,xxl:c.text.medium800,children:i}),(0,t.jsx)(w.Span,{xs:{...c.text.normal200,color:c.colors.test500,whiteSpace:"pre-line"},xl:c.text.normal300,xxl:c.text.normal400,children:n})]}),(0,t.jsx)(o.Box,{xs:{width:1,height:1,opacity:0,position:"absolute"},children:r})]})},E=e=>{let{children:n}=e,r=(0,h.useTheme)(),s=v(),{ref:l,currentItem:c,currentIndex:u,setIsAnimating:m,setCurrentIndex:f,setCurrentItem:x}=function(e){let[t,n]=(0,i.useState)(0),[r,o]=(0,i.useState)(e[0]),[a,s]=(0,i.useState)(!1),{ref:l,elementInViewportProgress:c}=(0,p.useElementInViewportProgress)();return(0,g.useInterval)(()=>{let i=c.get();if(i<.8||i>1.5||a)return;let r=(t+1)%e.length;n(r);let s=e[r];s&&o(s)},3e3),{currentIndex:t,currentItem:r,setIsAnimating:s,setCurrentIndex:n,setCurrentItem:o,ref:l}}(s.items);return(0,t.jsxs)(a.Container,{children:[(0,t.jsx)("div",{ref:l}),(0,t.jsxs)(d.Flex,{xs:{alignItems:"center",backgroundColor:r.colors.gray50,borderRadius:40,marginTop:40,overflow:"hidden"},m:{},children:[(0,t.jsx)(o.Box,{xs:{width:"50%"},l:{paddingLeft:64,paddingRight:64},children:(0,t.jsx)(d.Flex,{xs:{flexDirection:"column",gap:32},xxl:{gap:48},onMouseEnter:()=>m(!0),onMouseLeave:()=>m(!1),children:s.items.map((e,i)=>(0,t.jsx)(_,{index:i,active:i===u,onPointerEnter:()=>{x(e),f(i)},image:e.image,title:e.title,description:e.description},e.title))})}),(0,t.jsx)(o.Box,{xs:{width:"50%",background:r.background.test100},children:(0,t.jsx)(A.motion.div,{animate:{opacity:1},initial:{opacity:0}
1,exit:{opacity:0},children:c?.image},c?.title)})]}),n]})};e.i(496039);var B=e.i(690072),R=e.i(437669);let C=e=>{let{children:i,title:n,description:r,imageNode:a}=e,s=(0,h.useTheme)();return(0,t.jsxs)(o.Box,{children:[(0,t.jsx)(o.Box,{xs:{overflow:"hidden",transform:"translateZ(0)",borderRadius:24},children:a}),(0,t.jsxs)(o.Box,{xs:{paddingTop:24},children:[(0,t.jsx)(w.Span,{xs:{...s.text.medium600},children:n}),(0,t.jsx)(w.P,{xs:{...s.text.normal200,marginTop:8},children:r})]}),i]})},j=e=>{let{children:i}=e,n=v();return(0,t.jsxs)(B.Swiper,{slidesPerView:"auto",spaceBetween:16,modules:[R.FreeMode],freeMode:{enabled:!0},style:{paddingLeft:24,paddingRight:24},children:[n.items.map(e=>(0,t.jsx)(B.SwiperSlide,{style:{minWidth:272,width:"26vw"},children:(0,t.jsx)(C,{imageNode:e.image,title:e.title,description:e.description},e.title)},e.title)),i]})},O=e=>{let{children:i}=e,n=(0,h.useTheme)();return(0,t.jsxs)(o.Box,{xs:{backgroundColor:n.colors.white},children:[(0,t.jsx)(o.Box,{xs:{marginTop:46,overflow:"hidden"},l:{display:"none"},children:(0,t.jsx)(j,{})}),i]})};e.s(["SuperchargeGreatWeb3ProductsSection",0,e=>{let{children:d}=e,h=(0,c.useMediaQuery)(),A=(0,i.useRef)(null),p=(0,u.useTranslations)();return(0,t.jsxs)("section",{ref:A,...(0,n.getAnchorSectionProps)({id:"why-onekey",title:p("menu__why_onekey")}),style:{scrollMarginTop:"100px"},children:[(0,t.jsx)(a.Container,{children:(0,t.jsxs)(o.Box,{xs:{marginTop:80},m:{textAlign:"center",marginTop:120},children:[(0,t.jsx)(l.OnlyDisplay,{m:!0,l:!0,xl:!0,xxl:!0,children:(0,t.jsx)(r.SectionSubTitle,{uppercase:!0,children:"ONEKEY APP"})}),(0,t.jsx)(r.SectionTitle,{as:"h2",children:(0,t.jsx)(s.AdaptiveI18n,{name:"title__ride_safe_in_your_web3_journey"})})]})}),h.large&&(0,t.jsx)(E,{}),!h.large&&(0,t.jsx)(O,{}),d]})}],108852),e.s([],415294)},686017,404954,600032,e=>{"use strict";var t=e.i(690058),i=e.i(386837);e.i(73753);var n=e.i(386120);e.i(924856);var r=e.i(134939),o=e.i(267375),o=o,a=e.i(908547),s=e.i(525908),l=e.i(231275),c=e.i(254793);let u="clamp(800px, 100vh, 1200px)";e.s(["BASIC_FULL_SCREEN_CONTAINER_HEIGHT",0,u],404954);var d=e.i(631914),h=e.i(721629),A=e.i(799182);let p=({children:e,maxOffset:n=10,damping:r=25,stiffness:o=100,style:a})=>{let s=(0,h.useMotionValue)(0),l=(0,h.useMotionValue)(0),c=(0,A.useSpring)(s,{damping:r,stiffness:o}),u=(0,A.useSpring)(l,{damping:r,stiffness:o}),p=(0,h.useMotionValue)(0),g=(0,h.useMotionValue)(0);return(0,i.useEffect)(()=>{let e=c.on("change",e=>{let t=e/window.innerWidth;p.set(-t*n)}),t=u.on("change",e=>{let t=e/window.innerHeight;g.set(-t*n)});return()=>{e(),t()}},[c,u,p,g,n]),(0,i.useEffect)(()=>{let e=e=>{s.set(e.clientX),l.set(e.clientY)};return window.addEventListener("mousemove",e),()=>window.removeEventListener("mousemove",e)},[s,l]),(0,t.jsx)(d.motion.div,{style:{x:p,y:g,...a},children:e})};e.s(["MouseParallaxBackground",0,p],600032);var g=e.i(410578);let m={src:e.i(854246).default,width:828,height:1028,blurWidth:6,blurHeight:8,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAICAYAAADaxo44AAAAl0lEQVR42k2Oyw6CMBRE+wPSlraUtjxUDGkEgkLExIX//1Udb2Dj4tzkzpnFMCFlypVGc+7wfm2Yh4gQPJjWJrWXiH74Yh03LLGD9w5M5iq5UKOPTzzWD+J9QlGSUFqn6y1imheSI3zVQBkDliuVLDVC3cKFCqUPMNYegoApLJQ24EISAoxOOnG+P7QQGRcEP0RG4c5f4QcUeD53aShlggAAAABJRU5ErkJggg=="},f=e=>{let{children:i}=e;return(0,t.jsxs)(a.Box,{xs:{display:"flex",alignItems:"center",gap:2,color:"rgba(255, 255, 255, 0.85)",backgroundColor:"rgba(255, 255, 255, 0.08)",borderRadius:8,padding:"4px 8px"},children:[(0,t.jsx)(o.default,{style:{width:24,height:24}}),i]})};e.s(["SecuritySection",0,()=>{let e=(0,c.useTheme)(),o=(0,i.useRef)(null);return(0,l.useNavigationThemeAutoSwitchPoint)("dark",o),(0,t.jsx)(a.Box,{xs:{background:e.colors.gray900,height:u},ref:o,children:(0,t.jsxs)(s.Container,{xs:{display:"flex",justifyContent:"space-between",flexDirection:"column-reverse",alignItems:"center",height:"100%",gap:40,paddingTop:56,paddingBottom:56},mobile:{flexDirection:"row",gap:"clamp(16px, 8vw, 130px)"},children:[(0,t.jsx)(a.Box,{xs:{display:"flex",minHeight:0},mobile:{flex:1.2,overflow:"hidden",height:"100%",backgroundColor:e.colors.gray900,position:"relative"},children:(0,t.jsx)(p,{children:(0,t.jsx)(n.StaticImage,{style:{width:"100%"},src:m,alt:"security",objectFit:"contain"})})}),(0,t.jsx)(g.TextIntro,{title:"title__code_proven_zero_losses_in_5_years",description:"content__firmware_and_apps_fully_open_source_reproducible_on_github",dynamicComponent:{Link:r.AdaptiveLink},theme:"dark",mobile:{flex:1},suffix:(0,t.jsxs)(a.Box,{xs:{display:"flex",flexWrap:"wrap",gap:4,marginTop:16},children:[(0,t.jsx)(f,{children:"Coinbase Ventures"}),(0,t.jsx)(f,{children:"Binance Labs(YZi Labs)"}),(0,t.jsx)(f,{children:"SlowMist"})]})})]})})}],686017)},537072,e=>{"use strict";e.i(686017),e.s([])},558155,e=>{"use strict";var t=e.i(690058),i=e.i(386837);e.i(73753);var n=e.i(386120);e.i(924856);var r=e.i(908547),o=e.i(525908),a=e.i(554745),s=e.i(231275),l=e.i(404954),c=e.i(410578);let u={src:e.i(276216).default,width:2880,height:1616,blurWidth:8,blurHeight:4,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAEAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwD1CLMgO9i21yB+B4qrWFc//9k="},d={src:e.i(880410).default,width:2880,height:1560,blurWidth:8,blurHeight:4,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAEAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDyp5nTbswvHUe9GzG9rn//2Q=="},h=(0,t.jsx)(n.StaticImage,{src:d,alt:"Supported Cryptos",style:{height:"100%",width:"100%"},objectPosition:"left"}),A=(0,t.jsx)(n.StaticImage,{src:d,alt:"Supported Cryptos",style:{height:"100%",width:"100%"},objectPosition:"-200px bottom"}),p=(0,t.jsx)(n.StaticImage,{src:u,alt:"Supported Cryptos",style:{height:"100%",width:"100%"},objectPosition:"left"}),g=(0,t.jsx)(n.StaticImage,{src:u,alt:"Supported Cryptos",style:{height:"100%",width:"100%"},objectPosition:"-200px bottom"});
1e.s(["SupportedCryptos",0,({theme:e})=>{let n=(0,i.useRef)(null);(0,s.useNavigationThemeAutoSwitchPoint)(e,n);let u="dark"===e?h:p,d="dark"===e?A:g;return(0,t.jsxs)(r.Box,{xs:{position:"relative",height:l.BASIC_FULL_SCREEN_CONTAINER_HEIGHT,background:"dark"===e?"#000":"#fff"},ref:n,children:[(0,t.jsx)(a.OnlyDisplayRange,{above:"mobile",css:{height:"100%"},children:u}),(0,t.jsx)(a.OnlyDisplayRange,{below:"small",css:{height:"100%"},children:d}),(0,t.jsx)(o.Container,{xs:{paddingTop:64,position:"absolute",top:0,left:0,right:0,zIndex:1},children:(0,t.jsx)(c.TextIntro,{xs:{maxWidth:532},theme:e,title:"title__1_wallet_100_plus_chains_30000_plus_coins",description:"content__supports_bitcoin_ethereum_usdt_solana_xrp_and_30000_plus_other_coins"})})]})}],558155)},991009,e=>{"use strict";e.i(558155),e.s([])},789755,642457,19458,227674,e=>{"use strict";var t=e.i(690058),i=e.i(386837),n=e.i(682036);e.i(924856);var r=e.i(908547),o=e.i(494944),a=e.i(149320),s=e.i(254793),l=e.i(362054);e.i(508204);var c=e.i(629394),u=e.i(788289),d=e.i(36603),h=e.i(631914);let A=e=>{let{children:i}=e;return(0,t.jsx)(l.Flex,{xs:{flexDirection:"column",gap:40,flex:1},children:i})},p=e=>{let{children:i}=e;return(0,t.jsx)(l.Flex,{xs:{flexDirection:"column",gap:16},children:i})};var g=e.i(377379);let m=e=>{let{children:i}=e,n={...(0,s.useTheme)().text.normal200,opacity:.5,whiteSpace:"pre-wrap"};return(0,t.jsx)(g.Span,{xs:n,children:i})},f=e=>{let{children:i}=e;return(0,t.jsx)(l.Flex,{xs:{paddingTop:4,flexDirection:"column"},children:i})},x=e=>{let{children:i}=e,n=(0,s.useTheme)();return(0,t.jsx)(g.H3,{xs:n.text.medium500,children:i})},y=e=>{let{children:i}=e,n={...(0,s.useTheme)().text.medium300,opacity:.5};return i?(0,t.jsx)(g.H4,{xs:n,children:i}):null},b=e=>{let{children:i,items:n=[]}=e,o=(0,s.useTheme)();return 0===n.length?null:(0,t.jsxs)(A,{children:[n.map(e=>(0,t.jsxs)(p,{children:[(0,t.jsx)(x,{children:e.title}),e.content.map(e=>(0,t.jsxs)(r.Box,{children:[(0,t.jsx)(y,{children:e.title2}),e.description&&(0,t.jsx)(m,{children:e.description}),e.descriptions&&(0,t.jsx)(f,{children:e.descriptions.map(e=>(0,t.jsx)(m,{children:e},e))})]},JSON.stringify(e))),e.annotation&&(0,t.jsx)(r.Box,{xs:{color:o.colors.white24,...o.text.normal100},children:e.annotation})]},e.title)),i]})},v=e=>{let{content:i,content2:n,content3:r}=e,o=(0,s.useTheme)();return(0,t.jsxs)(l.Flex,{xs:{justifyContent:"center",flexDirection:"column",color:o.colors.white,gap:64},s:{marginLeft:"auto",marginRight:"auto",width:"60vw"},m:{width:"auto",paddingTop:36,flexDirection:"row"},l:{gap:100},xl:{gap:120},children:[(0,t.jsx)(b,{items:i.left}),(0,t.jsx)(b,{items:i.right})]})};function w({tabs:e,activeVariantGid:t,initialTab:i,currentTab:n}){let r=t?e.find(e=>e.data.variantGid===t):void 0;return r?r.key:n&&e.some(e=>e.key===n)?n:i&&e.some(e=>e.key===i)?i:e[0]?.key}e.s(["Content",0,v],642457),e.s([],19458);let _=e=>{let{children:i,smallImageUrl:n,mediumImageUrl:o,largeImageUrl:a}=e;return(0,t.jsx)(r.Box,{css:{display:"block",backgroundSize:"contain",backgroundPosition:"center",backgroundRepeat:"no-repeat",height:400},xs:{backgroundImage:`url(${n})`,width:"100%",height:589},m:{backgroundImage:`url(${o})`,height:589},l:{backgroundImage:`url(${a})`,height:680},children:i})};e.s(["SideImage",0,_],227674);let E=i.useLayoutEffect,B=e=>{let{tabs:n,activeTab:r,onTabChange:o,panelId:a}=e,c=(0,s.useTheme)(),u=(0,i.useRef)(null),[d,A]=(0,i.useState)({x:0,width:0}),p=(0,i.useCallback)(()=>{if(!u.current||!r)return;let e=u.current.querySelector(`button[data-tab-key="${r}"]`);if(e){let{offsetLeft:t,offsetWidth:i}=e;A({x:t,width:i})}},[r]);return(E(()=>{p()},[p,n]),(0,i.useEffect)(()=>(window.addEventListener("resize",p),()=>{window.removeEventListener("resize",p)}),[p]),n.length<=1)?null:(0,t.jsx)(l.Flex,{xs:{justifyContent:"center",paddingTop:24,paddingBottom:24},children:(0,t.jsxs)("div",{ref:u,role:"tablist","aria-label":"Content sections",style:{position:"relative",display:"flex",alignItems:"center",gap:6,padding:4,borderRadius:12,border:`1px solid ${c.colors.white24}`,width:"fit-content"},children:[(0,t.jsx)(h.motion.div,{initial:!1,animate:{x:d.x,width:d.width},transition:{type:"spring",stiffness:300,damping:30},style:{position:"absolute",top:4,left:0,height:"calc(100% - 8px)",backgroundColor:c.colors.white85,borderRadius:8,zIndex:0,opacity:+!!d.width}}),n.map(e=>{let i=e.key===r,n=`technical-spec-tab-${e.key}`;return(0,t.jsx)("button",{id:n,"data-tab-key":e.key,type:"button",role:"tab","aria-selected":i,"aria-controls":a,onClick:()=>
1o(e.key),style:{position:"relative",zIndex:1,border:"none",background:"transparent",display:"flex",alignItems:"center",justifyContent:"center",padding:"8px 16px",borderRadius:999,cursor:"pointer",color:i?c.colors.gray900:"rgba(255, 255, 255, 0.64)",transition:"color 200ms ease",...c.text.medium100},children:e.label},e.key)})]})})},R=e=>{let{children:n,title:o,images:a,content:h,content2:A,content3:p,activeVariantGid:g,initialTab:m,...f}=e,x=(0,s.useTheme)(),y=(0,i.useMemo)(()=>[{key:"content",label:h.name??"Content",data:h},A&&{key:"content2",label:A.name??"Content 2",data:A},p&&{key:"content3",label:p.name??"Content 3",data:p}].filter(Boolean),[h,A,p]),[b,E]=(0,i.useState)(w({tabs:y,activeVariantGid:g,initialTab:m}));(0,i.useEffect)(()=>{y.length&&E(e=>w({tabs:y,activeVariantGid:g,initialTab:m,currentTab:e}))},[g,m,y]);let R=y.find(e=>e.key===b)?.data??h,C=`technical-spec-tab-panel-${b??"content"}`;return(0,t.jsx)(d.Root,{...f,children:(0,t.jsxs)(d.Portal,{children:[(0,t.jsx)(d.Overlay,{className:"DialogOverlay"}),(0,t.jsxs)(r.Box,{as:d.Content,className:"DialogContent",xs:{maxHeight:"calc(100vh - 16px) !important",height:"fit-content !important",display:"flex",flexDirection:"column"},mobile:{maxHeight:"calc(100vh - 48px) !important"},children:[(0,t.jsxs)(r.Box,{xs:{overflow:"auto",height:"fit-content",padding:"80px 32px",backgroundColor:x.colors.gray700,"&::-webkit-scrollbar":{display:"none"},scrollbarWidth:"none",scrollbarColor:"transparent transparent"},m:{padding:64},children:[(0,t.jsx)(r.Box,{xs:{textAlign:"center"},children:(0,t.jsx)(c.SectionTitle,{color:x.colors.white,children:o})}),(0,t.jsx)(B,{tabs:y,activeTab:b,onTabChange:E,panelId:C}),(0,t.jsxs)(l.Flex,{xs:{flexDirection:"column",paddingTop:40,gap:40},m:{justifyContent:"center"},l:{flexDirection:"row"},children:[(0,t.jsx)(l.Flex,{xs:{flex:1,justifyContent:"center",minWidth:0},children:(0,t.jsx)(_,{...a})}),(0,t.jsx)(l.Flex,{xs:{flex:1,justifyContent:"center"},children:(0,t.jsx)("div",{role:"tabpanel",id:C,"aria-labelledby":b?`technical-spec-tab-${b}`:void 0,style:{width:"100%"},children:(0,t.jsx)(v,{content:R})})})]})]}),(0,t.jsx)(d.DialogClose,{asChild:!0,children:(0,t.jsx)(r.Box,{xs:{position:"absolute",right:16,top:16,transition:"color 0.2s ease-in-out",color:x.colors.white,":hover":{cursor:"pointer",color:x.colors.brand300}},m:{right:40,top:40},children:(0,t.jsx)(u.CloseIcon,{width:40,height:40})})}),n]})]})})};e.s(["TechnicalSpecificationsSection",0,e=>{let{children:l,title:c,images:u,content:d,content2:h,content3:A,activeVariantGid:p,initialTab:g,specsOpen:m,onSpecsOpenChange:f}=e,x=(0,s.useTheme)(),{hoverProps:y,isHovered:b}=(0,n.useHover)({timeout:1}),[v,w]=(0,i.useState)(!1),_=(0,i.useCallback)(e=>{f?f(e):w(e)},[f]);return(0,t.jsxs)(r.Box,{...y,xs:{overflow:"hidden",position:"relative",background:x.colors.gray200,borderRadius:40,padding:48,height:400},l:{height:548,padding:"48px 36px"},children:[(0,t.jsxs)(r.Box,{xs:{position:"relative",zIndex:10},children:[(0,t.jsx)(r.Box,{xs:{color:x.colors.gray900,...x.text.medium700,paddingBottom:24},l:{...x.text.medium800,paddingBottom:40},children:(0,t.jsx)(a.AdaptiveI18n,{name:"title__technical_specifications"})}),(0,t.jsx)(o.Button,{variant:"outlined",onClick:()=>{_(!0)},children:(0,t.jsx)(a.AdaptiveI18n,{name:"action__show_more"})})]}),l,u.cardImageUrl&&(0,t.jsx)(r.Box,{xs:{position:"absolute",width:400,height:270,right:-40,top:b?150:180,transition:"top 0.3s ease-in-out",backgroundImage:`url(${u.cardImageUrl})`,backgroundPosition:"center top",backgroundRepeat:"no-repeat",backgroundSize:"auto 100%"},l:{height:430,right:60}}),(0,t.jsx)(R,{open:m??v,onOpenChange:_,title:c,images:u,content:d,content2:h,content3:A,activeVariantGid:p,initialTab:g})]})}],789755)},365429,432449,e=>{"use strict";e.i(789755);var t=e.i(690058),i=e.i(362054);e.i(709906);var n=e.i(652643);e.i(508204);var r=e.i(629394);e.i(924856);var o=e.i(908547),a=e.i(525908),s=e.i(149320),l=e.i(254793),c=e.i(885403);e.i(19458);var u=e.i(642457),d=e.i(227674);e.s(["TechnicalSpecificationsSectionCard",0,e=>{let{children:h,images:A,content:p}=e,g=(0,l.useTheme)(),m=(0,c.useTranslations)();return(0,t.jsxs)(o.Box,{xs:{overflow:"hidden",position:"relative",backgroundColor:g.colors.test400,borderRadius:32,paddingTop:80,paddingBottom:80},m:{borderRadius:40},...(0,n.getAnchorSectionProps)({id:"onekey-keytag-spec",title:m("menu__specs")}),children:[(0,t.jsxs)(a.Container,{children:[(0,t.jsx)(o.Box,{xs:{textAlign:"center"},children:(0,t.jsx)(r.SectionTitle,{as:"h2",color:g.colors.white,children:(0,t.jsx)(s.AdaptiveI18n,{name:"title__technical_specifications"})})}),(0,t.jsxs)(i.Flex,{xs:{flexDirection:"column",paddingTop:40,gap:40},m:{justifyContent:"center"},l:{flexDirection:"row"},children:[(0,t.jsx)(i.Flex,{xs:{flex:1,justifyContent:"center"},children:(0,t.jsx)(d.SideImage,{...A})}),(0,t.jsx)(i.Flex,{xs:{flex:1,justifyContent:"center"},children:(0,t.jsx)(u.Content,{content:p})})]})]}),h]})}],432449),e.s([],365429)},783149,e=>{"use strict";var t=e.i(690058);e.i(73753);var i=e.i(386120);e.i(924856);var n=e.i(908547),r=e.i(525908),o=e.i(254793),a=e.i(885403),s=e.i(410578);let l={src:e.i(598528).default,width:1288,height:1288,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDjp/CEh8IW8v8AZckWopuLnJDOMnAI+mK4/ruHvbnRuqM3HbU//9k="},c={src:e.i(246657).default,width:1288,height:1288,blurWidth:8,blurHeight:8,blurDataURL:"data:image/jpeg;base64,/9j/4AAQSkZJRgABAgAAAQABAAD/wAARCAAIAAgDAREAAhEBAxEB/9sAQwAKBwcIBwYKCAgICwoKCw4YEA4NDQ4dFRYRGCMfJSQiHyIhJis3LyYpNCkhIjBBMTQ5Oz4+PiUuRElDPEg3PT47/9sAQwEKCwsODQ4cEBAcOygiKDs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDiLm28LazbyXNvew6VIscYMTxnlwp34A9TjmuCk69KLjNczv8AgVKzldbH/9k="},u=({image:e,description:i})=>{let r=(0,o.useTheme)();return(0,t.jsxs)(n.Box,{xs:{display:"flex",flexDirection:"column",gap:12},mobile:{gap:24},children:[(0,t.jsx)(n.Box,{children:e}),(0,t.jsx)(n.Box,{xs:{...r.text.normal400,color:r.colors.gray700,"p + p":{marginTop:12}},children:i.split("\n").map((e,i)=>(0,t.jsx)("p",{children:e},i))})]})};e.s(["TrustedChoice",0,()=>{let e=(0,a.useTranslations)();return(0,t.jsxs)(r.Container,{children:[(0,t.jsx)(s.TextIntro,{xs:{textAlign:"center",marginBottom:40}
1,title:"title__your_most_trusted_wallet_choice"}),(0,t.jsxs)(n.Box,{xs:{display:"flex",flexDirection:"column",gap:24},mobile:{flexDirection:"row"},children:[(0,t.jsx)(u,{image:(0,t.jsx)(i.StaticImage,{src:l,alt:"BHacked by YZi"}),description:e("content__only_hardware_wallet_backed_by_yzi_and_coinbase_ventures")}),(0,t.jsx)(u,{image:(0,t.jsx)(i.StaticImage,{src:c,alt:"Co branded"}),description:e("content__only_hardware_wallet_officially_co_branded_by_binance_okx_bybit_bitget")})]})]})}],783149)},418159,e=>{"use strict";e.i(783149),e.s([])},352969,413658,e=>{"use strict";e.s([],352969),e.i(680370),e.i(774550),e.i(746849),e.i(197688),e.i(901158),e.i(415294),e.i(365429),e.i(307770),e.i(537072),e.i(991009),e.i(418159);var t=e.i(410578);e.i(211321),e.i(332942),e.i(220424);var i=e.i(690058),n=e.i(386837);e.i(924856);var r=e.i(908547),o=e.i(525908),a=e.i(377379),s=e.i(189382),l=e.i(801514),c=e.i(647045),u=e.i(297283);e.s(["CustomerReviews",0,({reviewData:e})=>{let d=(0,n.useRef)(null),h=(0,c.useInView)(d,{amount:.1}),[A,p]=(0,n.useState)(!1);(0,n.useEffect)(()=>{h&&p(!0)},[h]);let{isMobilePhone:g}=(0,l.useRuntimeDetect)(),m=(0,s.useMountedOnBrowser)();return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.Container,{xs:{marginBottom:40,marginTop:80},children:(0,i.jsx)(t.TextIntro,{title:"title__reviews"})}),(0,i.jsx)(a.Section,{ref:d,xs:{gridColumn:"1 / -1",display:"flex",justifyContent:"center",marginBottom:120,position:"relative",zIndex:1},children:(0,i.jsx)(r.Box,{css:{width:"100%"},children:(!g||!m||A)&&(0,i.jsx)(u.HorizontalReviewList,{reviews:e,cardWidth:308})})})]})}],413658),e.i(600032)}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.