1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,270904,e=>{"use strict";let t=(0,e.i(456420).default)("wallet",[["path",{d:"M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1",key:"18etb6"}],["path",{d:"M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4",key:"xoc0q4"}]]);e.s(["Wallet",0,t],270904)},787037,e=>{"use strict";var t=e.i(843476);let n={rust:"",parchment:"plaque-face-parchment",gold:"plaque-face-gold"},a={sm:"px-3.5 py-2 text-[10px]",md:"px-5 py-2.5 text-[11px]",lg:"px-8 py-3.5 text-sm"};function r(e,t){return["plaque-face font-body font-extrabold uppercase tracking-[0.1em]",a[t],n[e]].join(" ")}e.s(["PlaqueButton",0,function({tone:e="rust",size:n="md",children:a,className:s="",...i}){return(0,t.jsx)("button",{type:"button",className:`plaque ${s}`,...i,children:(0,t.jsx)("span",{className:r(e,n),children:a})})},"PlaqueLink",0,function({tone:e="rust",size:n="md",children:a,className:s="",...i}){return(0,t.jsx)("a",{className:`plaque ${s}`,...i,children:(0,t.jsx)("span",{className:r(e,n),children:a})})}])},587534,e=>{"use strict";var t=e.i(843476),n=e.i(722652),a=e.i(270904),r=e.i(787037);e.s(["ConnectWallet",0,function(){return(0,t.jsx)(n.ConnectButton.Custom,{children:({account:e,chain:n,openConnectModal:s,openChainModal:i,openAccountModal:o,mounted:l})=>l&&e&&n?n.unsupported?(0,t.jsx)(r.PlaqueButton,{size:"sm",onClick:i,children:"Wrong Network"}):(0,t.jsx)(r.PlaqueButton,{size:"sm",tone:"parchment",className:"sm:[&_.plaque-face]:px-5 sm:[&_.plaque-face]:py-2.5 sm:[&_.plaque-face]:text-[11px]",onClick:o,children:e.displayName}):(0,t.jsxs)(r.PlaqueButton,{size:"sm",className:"sm:[&_.plaque-face]:px-5 sm:[&_.plaque-face]:py-2.5 sm:[&_.plaque-face]:text-[11px]",onClick:s,children:[(0,t.jsx)(a.Wallet,{size:14,strokeWidth:2.5,"aria-hidden":!0,className:"hidden sm:block"}),(0,t.jsx)("span",{className:"sm:hidden",children:"Connect"}),(0,t.jsx)("span",{className:"hidden sm:inline",children:"Connect Wallet"})]})})}])},911176,e=>{"use strict";var t=e.i(843476),n=e.i(271645);let a="(prefers-reduced-motion: reduce)";e.s(["HeroVideoBg",0,function({poster:e,src:r}
1){let s=(0,n.useRef)(null),i=(0,n.useRef)(null),[o,l]=(0,n.useState)(!1),d=(0,n.useSyncExternalStore)(e=>{let t=window.matchMedia(a);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},()=>window.matchMedia(a).matches,()=>!1);return(0,n.useEffect)(()=>{let e=s.current;if(!e||d)return;let t=new IntersectionObserver(([e])=>{let t=i.current;e.isIntersecting?(l(!0),requestAnimationFrame(()=>t?.play().catch(()=>{}))):t?.pause()},{threshold:.05});return t.observe(e),()=>t.disconnect()},[d]),(0,t.jsx)("div",{ref:s,"aria-hidden":!0,className:"absolute inset-0 -z-30",children:(0,t.jsx)("video",{ref:i,src:o?r:void 0,poster:e,muted:!0,loop:!0,playsInline:!0,preload:"none",tabIndex:-1,className:"h-full w-full object-cover"})})}])},214122,909963,409335,e=>{"use strict";e.s(["presaleAbi",0,[{inputs:[],stateMutability:"nonpayable",type:"constructor"},{inputs:[],name:"BNBForwardFailed",type:"error"},{inputs:[{internalType:"uint256",name:"available",type:"uint256"},{internalType:"uint256",name:"required",type:"uint256"}],name:"InsufficientPresaleBalance",type:"error"},{inputs:[{internalType:"int256",name:"price",type:"int256"}],name:"InvalidOraclePrice",type:"error"},{inputs:[],name:"InvalidStalenessThreshold",type:"error"},{inputs:[],name:"InvalidTokenPrice",type:"error"},{inputs:[],name:"NothingToWithdraw",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{inputs:[],name:"ReentrancyGuardReentrantCall",type:"error"},{inputs:[{internalType:"uint256",name:"updatedAt",type:"uint256"},{internalType:"uint256",name:"currentTime",type:"uint256"}],name:"StaleOraclePrice",type:"error"},{inputs:[],name:"ZeroBNBSent",type:"error"},{inputs:[],name:"ZeroTokensCalculated",type:"error"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldThreshold",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newThreshold",type:"uint256"}],name:"StalenessThresholdUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"oldPrice",type:"uint256"},{indexed:!1,internalType:"uint256",name:"newPrice",type:"uint256"}],name:"TokenPriceUpdated",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"buyer",type:"address"},{indexed:!1,internalType:"uint256",name:"bnbAmount",type:"uint256"},{indexed:!1,internalType:"uint256",name:"bnbPriceUsd",type:"uint256"},{indexed:!1,internalType:"uint256",name:"tokenAmount",type:"uint256"}],name:"TokensPurchased",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"UnsoldTokensWithdrawn",type:"event"},{stateMutability:"payable",type:"fallback"},{inputs:[],name:"BNB_RECEIVER",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"BNB_USD_FEED",outputs:[{internalType:"contract AggregatorV3Interface",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"KAMIRAI",outputs:[{internalType:"contract IERC20",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"KAMIRAI_DECIMALS",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"view",type:"function"},{inputs:[],name:"getBNBPriceUsd",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"uint256",name:"bnbAmount",type:"uint256"}],name:"getTokenAmount",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newPrice",type:"uint256"}],name:"setRate",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"uint256",name:"newThreshold",type:"uint256"}],name:"setStalenessThreshold",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"stalenessThreshold",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tokenPriceUsd",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"tokensAvailable",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"withdrawUnsoldTokens",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]],909963),e.s(["tokenAbi",0,[{inputs:[{internalType:"address",name:"_owner",type:"address"}],stateMutability:"nonpayable",type:"constructor"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"allowance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"}],name:"ERC20InsufficientAllowance",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"uint256",name:"balance",type:"uint256"},{internalType:"uint256",name:"needed",type:"uint256"}],name:"ERC20InsufficientBalance",type:"error"},{inputs:[{internalType:"address",name:"approver",type:"address"}],name:"ERC20InvalidApprover",type:"error"},{inputs:[{internalType:"address",name:"receiver",type:"address"}],name:"ERC20InvalidReceiver",type:"error"},{inputs:[{internalType:"address",name:"sender",type:"address"}],name:"ERC20InvalidSender",type:"error"},{inputs:[{internalType:"address",name:"spender",type:"address"}],name:"ERC20InvalidSpender",type:"error"},{inputs:[{internalType:"address",name:"owner",type:"address"}],name:"OwnableInvalidOwner",type:"error"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"OwnableUnauthorizedAccount",type:"error"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"enabled",type:"bool"},{indexed:!1,internalType:"uint256",name:"endTime",type:"uint256"}],name:"AntiBotToggled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"owner",type:"address"},{indexed:!0,internalType:"address",name:"spender",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Approval",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"bool",name:"enabled",type:"bool"}],name:"BurningToggled",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"previousOwner",type:"address"},{indexed:!0,internalType:"address",name:"newOwner",type:"address"}],name:"OwnershipTransferred",type:"event"},{anonymous:!1,inputs:[{indexed:!1,internalType:"uint256",name:"amount",type:"uint256"}],name:"TaxBurned",type:"event"},{anonymous:!1,inputs:[{indexed:!0,internalType:"address",name:"from",type:"address"},{indexed:!0,internalType:"address",name:"to",type:"address"},{indexed:!1,internalType:"uint256",name:"value",type:"uint256"}],name:"Transfer",type:"event"},{inputs:[],name:"BURN_WALLET",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"MAX_TX_AMOUNT",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"TAX_RATE",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"owner",type:"address"},{internalType:"address",name:"spender",type:"address"}],name:"allowance",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"antiBotEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"antiBotEndTime",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"spender",type:"address"},{internalType:"uint256",name:"value",type:"uint256"}],name:"approve",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"}],name:"balanceOf",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[],name:"burningEnabled",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"decimals",outputs:[{internalType:"uint8",name:"",type:"uint8"}],stateMutability:"pure",type:"function"},{inputs:[{internalType:"address",name:"",type:"address"}],name:"isExcludedFromTax",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"view",type:"function"},{inputs:[],name:"name",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"owner",outputs:[{internalType:"address",name:"",type:"address"}],stateMutability:"view",type:"function"},{inputs:[],name:"renounceOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"enabled",type:"bool"},{internalType:"uint256",name:"durationSeconds",type:"uint256"}],name:"setAntiBot",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"bool",name:"enabled",type:"bool"}],name:"setBurningEnabled",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"account",type:"address"},{internalType:"bool",name:"excluded",type:"bool"}],name:"setTaxExclusion",outputs:[],stateMutability:"nonpayable",type:"function"},{inputs:[],name:"symbol",outputs:[{internalType:"string",name:"",type:"string"}],stateMutability:"view",type:"function"},{inputs:[],name:"totalSupply",outputs:[{internalType:"uint256",name:"",type:"uint256"}],stateMutability:"view",type:"function"},{inputs:[{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transfer",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"sender",type:"address"},{internalType:"address",name:"recipient",type:"address"},{internalType:"uint256",name:"amount",type:"uint256"}],name:"transferFrom",outputs:[{internalType:"bool",name:"",type:"bool"}],stateMutability:"nonpayable",type:"function"},{inputs:[{internalType:"address",name:"newOwner",type:"address"}],name:"transferOwnership",outputs:[],stateMutability:"nonpayable",type:"function"},{stateMutability:"payable",type:"receive"}]],409335),e.s(["KAMIRAI_TOKEN_ADDRESS",0,"0x12bfe0251Eb64c6e26d1A264673593D6164ca213","PRESALE_ADDRESS",0,"0x2A899b64B7DB35d7dc46388e5Cc793448b0Ff800"],214122)},351538,638700,e=>{"use strict";var t=e.i(626338),n=e.i(789408),a=e.i(271645),r=e.i(348396),s=e.i(170778),i=e.i(210920),o=e.i(214122),l=e.i(909963),d=e.i(409335);let c=[{label:"Batch 3",priceUsd:7e-5,targetTokens:BigInt("887888888888"),endIso:"2026-06-15T00:00:00Z"},{label:"Batch 4",priceUsd:22e-6,targetTokens:BigInt("887888888888"),endIso:"2026-12-13T00:00:00Z"}];function u(e=Date.now()){return c.find(t=>new Date(t.endIso).getTime()>e)??c[c.length-1]}let p=BigInt("350533024795");e.s(["PRESALE_REMAINING_SNAPSHOT",0,p,"getActivePresaleBatch",0,u],638700);let m={address:o.PRESALE_ADDRESS,abi:l.presaleAbi}
1,y={address:o.KAMIRAI_TOKEN_ADDRESS,abi:d.tokenAbi};e.s(["applyTax",0,function(e,t,n){return t&&0n!==n?e*(10000n-n)/10000n:e},"usePresaleData",0,function(){let e,l,d,{data:c,isLoading:h,isError:x,refetch:f}=function(e={}){let{contracts:o=[],query:l={}}=e,d=(0,i.useConfig)(e),c=(0,s.useChainId)({config:d}),u=(0,a.useMemo)(()=>{if(0===o.length)return;let e=o[0].chainId;if(o.every(t=>t.chainId===e))return e},[o]),p=function(e,a={}){return{async queryFn({queryKey:n}){let r=[],s=n[1].contracts.length;for(let e=0;e<s;e++){let t=n[1].contracts[e],s=(a.contracts?.[e]).abi;r.push({...t,abi:s})}let{scopeKey:i,...o}=n[1];return(0,t.readContracts)(e,{...o,contracts:r})},queryKey:function(e={}){let t=[];for(let n of e.contracts??[]){let{abi:a,...r}=n;t.push({...r,chainId:r.chainId??e.chainId})}return["readContracts",(0,n.filterQueryOptions)({...e,contracts:t})]}(a)}}(d,{...e,chainId:u??c}),m=(0,a.useMemo)(()=>{let e=!1;for(let t of o){let{abi:n,address:a,functionName:r}=t;if(!n||!a||!r){e=!1;break}e=!0}return!!(e&&(l.enabled??!0))},[o,l.enabled]);return(0,r.useQuery)({...p,...l,enabled:m,structuralSharing:l.structuralSharing??n.structuralSharing})}({contracts:[{...m,functionName:"tokenPriceUsd"},{...m,functionName:"getBNBPriceUsd"},{...m,functionName:"tokensAvailable"},{...y,functionName:"decimals"},{...y,functionName:"symbol"},{...y,functionName:"burningEnabled"},{...y,functionName:"isExcludedFromTax",args:[o.PRESALE_ADDRESS]},{...y,functionName:"TAX_RATE"},{...y,functionName:"MAX_TX_AMOUNT"},{...y,functionName:"totalSupply"},{...y,functionName:"balanceOf",args:["0x000000000000000000000000000000000000dEaD"]}],query:{refetchInterval:15e3}}),b=c?.[5]?.result,g=c?.[6]?.result,v=c?.[7]?.result??0n,w=c?.[0]?.result,T=c?.[2]?.result,N=c?.[3]?.result??18,j=u(),k=T??p*10n**BigInt(N),A=j.targetTokens*10n**BigInt(N);return A>0n&&(l=Number(10000n*(e=k>=A?0n:A-k)/A)/100,d=Number(e/10n**BigInt(N))*j.priceUsd),{batch:j,tokenPriceUsd:w,bnbPriceUsd:c?.[1]?.result,tokensAvailable:k,tokenDecimals:N,tokenSymbol:c?.[4]?.result??"$KAMIRAI",maxTxAmount:c?.[8]?.result,totalSupply:c?.[9]?.result,burnedTokens:c?.[10]?.result,allocation:A,tokensSold:e,soldPct:l,usdRaised:d,taxActive:!!b&&!1===g,taxRateBps:v,isLoading:h,isError:x,refetch:f}}],351538)},535759,689664,508734,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(912598),r=e.i(818249),s=e.i(975948),i=e.i(675107);async function o(e,{chain:t}){let{id:n,name:a,nativeCurrency:r,rpcUrls:s,blockExplorers:l}=t;await e.request({method:"wallet_addEthereumChain",params:[{chainId:(0,i.numberToHex)(n),chainName:a,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:l?Object.values(l).map(({url:e})=>e):void 0}]},{dedupe:!0,retryCount:0})}var l=e.i(289169),d=e.i(888794),c=e.i(823838);async function u(e){return e.account?.type==="local"?[e.account.address]:(await e.request({method:"eth_accounts"},{dedupe:!0})).map(e=>(0,c.checksumAddress)(e))}var p=e.i(509916),m=e.i(189991);async function y(e,t={}){let{account:n=e.account,chainId:a}=t,r=n?(0,m.parseAccount)(n):void 0,s=a?[r?.address,[(0,i.numberToHex)(a)]]:[r?.address],o=await e.request({method:"wallet_getCapabilities",params:s}),l={};for(let[e,t]of Object.entries(o))for(let[n,a]of(l[Number(e)]={},Object.entries(t)))"addSubAccount"===n&&(n="unstable_addSubAccount"),l[Number(e)][n]=a;return"number"==typeof a?l[a]:l}async function h(e){return await e.request({method:"wallet_getPermissions"},{dedupe:!0})}var x=e.i(829897),f=e.i(368941);async function b(e){return(await e.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(e=>(0,c.getAddress)(e))}async function g(e,t){return e.request({method:"wallet_requestPermissions",params:[t]},{retryCount:0})}var v=e.i(460841),w=e.i(467125),T=e.i(763448);async function N(e,t){let{chain:n=e.chain}=t,a=t.timeout??Math.max((n?.blockTime??0)*3,5e3),r=await (0,w.getAction)(e,v.sendCalls,"sendCalls")(t);return await (0,w.getAction)(e,T.waitForCallsStatus,"waitForCallsStatus")({...t,id:r.id,timeout:a})}var j=e.i(638291),k=e.i(738977),A=e.i(611573),C=e.i(569934),I=e.i(393702),S=e.i(290392),E=e.i(942305),M=e.i(147526),R=e.i(10725),B=e.i(264404),q=e.i(190521),P=e.i(976677),_=e.i(353464),D=e.i(948789);let z=new P.LruMap(128);async function F(e,t){let n,{account:a=e.account,assertChainId:r=!0,chain:i=e.chain,accessList:o,authorizationList:l,blobs:d,data:c,dataSuffix:u="string"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value,gas:p,gasPrice:y,maxFeePerBlobGas:h,maxFeePerGas:x,maxPriorityFeePerGas:b,nonce:g,pollingInterval:v,throwOnReceiptRevert:T,type:N,value:j,...P}=t,F=t.timeout??Math.max((i?.blockTime??0)*3,5e3);if(void 0===a)throw new A.AccountNotFoundError({docsPath:"/docs/actions/wallet/sendTransactionSync"});let O=a?(0,m.parseAccount)(a):null;try{(0,_.assertRequest)(t);let a=await (async()=>t.to?t.to:null!==t.to&&l&&l.length>0?await (0,S.recoverAuthorizationAddress)({authorization:l[0]}).catch(()=>{throw new C.BaseError("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(O?.type==="json-rpc"||null===O){let t;null!==i&&(t=await (0,w.getAction)(e,s.getChainId,"getChainId")({}),r&&(0,E.assertCurrentChain)({currentChainId:t,chain:i}));let n=e.chain?.formatters?.transactionRequest?.format,m=(n||q.formatTransactionRequest)({...(0,B.extract)(P,{format:n}),accessList:o,account:O,authorizationList:l,blobs:d,chainId:t,data:u?(0,M.concat)([c??"0x",u]):c,gas:p,gasPrice:y,maxFeePerBlobGas:h,maxFeePerGas:x,maxPriorityFeePerGas:b,nonce:g,to:a,type:N,value:j},"sendTransaction"),f=z.get(e.uid),k=f?"wallet_sendTransaction":"eth_sendTransaction",A=await (async()=>{try{return await e.request({method:k,params:[m]},{retryCount:0})}catch(t){if(!1===f)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[m]},{retryCount:0}).then(t=>(z.set(e.uid,!0),t)).catch(n=>{if("MethodNotFoundRpcError"===n.name||"MethodNotSupportedRpcError"===n.name)throw z.set(e.uid,!1),t;throw n});throw t}})(),C=await (0,w.getAction)(e,D.waitForTransactionReceipt,"waitForTransactionReceipt")({checkReplacement:!1,hash:A,pollingInterval:v,timeout:F});if(T&&"reverted"===C.status)throw new I.TransactionReceiptRevertedError({receipt:C});return C}if(O?.type==="local"){if(O.nonceManager&&void 0===g){let t=P.chainId,a=await (async()=>"number"==typeof t?t:i?i.id:(0,w.getAction)(e,s.getChainId,"getChainId")({}))();n={address:O.address,chainId:a}}let r=await (0,w.getAction)(e,f.prepareTransactionRequest,"prepareTransactionRequest")({account:O,accessList:o,authorizationList:l,blobs:d,chain:i,data:u?(0,M.concat)([c??"0x",u]):c,gas:p,gasPrice:y,maxFeePerBlobGas:h,maxFeePerGas:x,maxPriorityFeePerGas:b,nonce:g,nonceManager:O.nonceManager,parameters:[...f.defaultParameters,"sidecars"],type:N,value:j,...P,to:a}),m=i?.serializers?.transaction,v=await O.signTransaction(r,{serializer:m});return await (0,w.getAction)(e,k.sendRawTransactionSync,"sendRawTransactionSync")({serializedTransaction:v,throwOnReceiptRevert:T,timeout:t.timeout})}if(O?.type==="smart")throw new A.AccountTypeNotSupportedError({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new A.AccountTypeNotSupportedError({docsPath:"/docs/actions/wallet/sendTransactionSync",type:O?.type})}catch(e){if(e instanceof A.AccountTypeNotSupportedError)throw e;throw!n||e instanceof I.TransactionReceiptRevertedError||O?.nonceManager?.reset(n),(0,R.getTransactionError)(e,{...t,account:O,chain:t.chain||void 0})}}async function O(e,t){let{id:n}=t;await e.request({method:"wallet_showCallsStatus",params:[n]})}async function U(e,t){let{account:n=e.account}=t;if(!n)throw new A.AccountNotFoundError({docsPath:"/docs/eip7702/signAuthorization"});let a=(0,m.parseAccount)(n);if(!a.signAuthorization)throw new A.AccountTypeNotSupportedError({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:a.type});let r=await (0,x.prepareAuthorization)(e,t);return a.signAuthorization(r)}var K=e.i(599976);async function L(e,t){let{account:n=e.account,chain:a=e.chain,...r}=t;if(!n)throw new A.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTransaction"});let o=(0,m.parseAccount)(n);(0,_.assertRequest)({account:o,...t});let l=await (0,w.getAction)(e,s.getChainId,"getChainId")({});null!==a&&(0,E.assertCurrentChain)({currentChainId:l,chain:a});let d=a?.formatters||e.chain?.formatters,c=d?.transactionRequest?.format||q.formatTransactionRequest;return o.signTransaction?o.signTransaction({...r,account:o,chainId:l},{serializer:e.chain?.serializers?.transaction}):await e.request({method:"eth_signTransaction",params:[{...c({...r,account:o},"signTransaction"),chainId:(0,i.numberToHex)(l),from:o.address}]},{retryCount:0})}var $=e.i(643506);async function W(e,t){let{account:n=e.account,domain:a,message:r,primaryType:s}=t;if(!n)throw new A.AccountNotFoundError({docsPath:"/docs/actions/wallet/signTypedData"});let i=(0,m.parseAccount)(n),o={EIP712Domain:(0,$.getTypesForEIP712Domain)({domain:a}),...t.types};if((0,$.validateTypedData)({domain:a,message:r,primaryType:s,types:o}),i.signTypedData)return i.signTypedData({domain:a,message:r,primaryType:s,types:o});let l=(0,$.serializeTypedData)({domain:a,message:r,primaryType:s,types:o});return e.request({method:"eth_signTypedData_v4",params:[i.address,l]},{retryCount:0})}async function H(e,{id:t}){await e.request({method:"wallet_switchEthereumChain",params:[{chainId:(0,i.numberToHex)(t)}]},{retryCount:0})}async function V(e,t){return await e.request({method:"wallet_watchAsset",params:t},{retryCount:0})}var Q=e.i(938630);async function Z(e,t){return Q.writeContract.internal(e,F,"sendTransactionSync",t)}function G(e){return{addChain:t=>o(e,t),deployContract:t=>(function(e,t){let{abi:n,args:a,bytecode:r,...s}=t,i=(0,l.encodeDeployData)({abi:n,args:a,bytecode:r});return(0,d.sendTransaction)(e,{...s,...s.authorizationList?{to:null}:{},data:i})})(e,t),fillTransaction:t=>(0,r.fillTransaction)(e,t),getAddresses:()=>u(e),getCallsStatus:t=>(0,p.getCallsStatus)(e,t),getCapabilities:t=>y(e,t),getChainId:()=>(0,s.getChainId)(e),getPermissions:()=>h(e),prepareAuthorization:t=>(0,x.prepareAuthorization)(e,t),prepareTransactionRequest:t=>(0,f.prepareTransactionRequest)(e,t),requestAddresses:()=>b(e),requestPermissions:t=>g(e,t),sendCalls:t=>(0,v.sendCalls)(e,t),sendCallsSync:t=>N(e,t),sendRawTransaction:t=>(0,j.sendRawTransaction)(e,t),sendRawTransactionSync:t=>(0,k.sendRawTransactionSync)(e,t),sendTransaction:t=>(0,d.sendTransaction)(e,t),sendTransactionSync:t=>F(e,t),showCallsStatus:t=>O(e,t),signAuthorization:t=>U(e,t),signMessage:t=>(0,K.signMessage)(e,t),signTransaction:t=>L(e,t),signTypedData:t=>W(e,t),switchChain:t=>H(e,t),waitForCallsStatus:t=>(0,T.waitForCallsStatus)(e,t),watchAsset:t=>V(e,t),writeContract:t=>(0,Q.writeContract)(e,t),writeContractSync:t=>Z(e,t)}}var X=e.i(44563);async function Y(e,t={}){return(await (0,X.getConnectorClient)(e,t)).extend(G)}var J=e.i(789408),ee=e.i(348396),et=e.i(982615),en=e.i(170778),ea=e.i(210920),er=e.i(456420);let es=(0,er.default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["Check",0,es],689664);var ei=e.i(270904);
1let eo=(0,er.default)("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);e.s(["Copy",0,eo],508734);var el=e.i(214122);let ed={idle:"Add $KAMIRAI to wallet",pending:"Confirm in walletâ¦",added:"Added to wallet",rejected:"Try again · add $KAMIRAI",copied:"Address copied · paste in wallet"};e.s(["ImportTokenButton",0,function({variant:e="solid",className:r=""}){let{data:s}=function(e={}){let{query:t={},...r}=e,s=(0,ea.useConfig)(r),i=(0,a.useQueryClient)(),{address:o,connector:l,status:d}=(0,et.useAccount)({config:s}),c=(0,en.useChainId)({config:s}),u=e.connector??l,{queryKey:p,...m}=function(e,t={}){return{gcTime:0,async queryFn({queryKey:n}){let{connector:a}=t,{connectorUid:r,scopeKey:s,...i}=n[1];return Y(e,{...i,connector:a})},queryKey:function(e={}){let{connector:t,...n}=e;return["walletClient",{...(0,J.filterQueryOptions)(n),connectorUid:t?.uid}]}(t)}}(s,{...e,chainId:e.chainId??c,connector:e.connector??l}),y=!!(("connected"===d||"reconnecting"===d&&u?.getProvider)&&(t.enabled??!0)),h=(0,n.useRef)(o);return(0,n.useEffect)(()=>{let e=h.current;!o&&e?(i.removeQueries({queryKey:p}),h.current=void 0):o!==e&&(i.invalidateQueries({queryKey:p}),h.current=o)},[o,i]),(0,ee.useQuery)({...t,...m,queryKey:p,enabled:y,staleTime:1/0})}(),[i,o]=(0,n.useState)("idle");async function l(){o("pending");let e=`${window.location.origin}/icon.png`,t={address:el.KAMIRAI_TOKEN_ADDRESS,symbol:"$KAMIRAI",decimals:18,image:e};if(s){try{let e=await s.watchAsset({type:"ERC20",options:t});o(e?"added":"rejected")}catch{o("rejected")}return}let n=window.ethereum;if(n?.request){try{let e=await n.request({method:"wallet_watchAsset",params:{type:"ERC20",options:t}});o(e?"added":"rejected")}catch{o("rejected")}return}try{await navigator.clipboard.writeText(el.KAMIRAI_TOKEN_ADDRESS),o("copied")}catch{o("rejected")}}let d="pending"===i||"added"===i,c="added"===i?es:"copied"===i?eo:ei.Wallet;return"link"===e?(0,t.jsxs)("button",{type:"button",onClick:l,disabled:d,className:`inline-flex items-center gap-1.5 font-mono text-[11px] uppercase tracking-[0.18em] text-gold underline decoration-gold/40 underline-offset-4 transition-colors hover:text-gold-hi disabled:opacity-70 ${r}`,children:[(0,t.jsx)(c,{size:12,strokeWidth:2.25}),ed[i]]}):(0,t.jsxs)("button",{type:"button",onClick:l,disabled:d,className:`flex w-full items-center justify-center gap-2 rounded-md border border-gold/45 bg-navy-3/70 py-3 font-mono text-[11px] font-bold uppercase tracking-[0.18em] text-gold-hi transition-colors hover:border-gold disabled:opacity-70 ${r}`,children:[(0,t.jsx)(c,{size:15,strokeWidth:2.25}),ed[i]]})}],535759)},364569,e=>{"use strict";let t=(0,e.i(456420).default)("zap",[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]]);e.s(["Zap",0,t],364569)},388413,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(285973),r=e.i(351538),s=e.i(789594),i=e.i(789408),o=e.i(348396),l=e.i(170778),d=e.i(210920),c=e.i(855723),u=e.i(668375);function p(e,t="wei"){return(0,u.parseUnits)(e,c.etherUnits[t])}var m=e.i(214122),y=e.i(909963),h=e.i(982615),x=e.i(160518),f=e.i(954616),b=e.i(888794),g=e.i(426254),v=e.i(44563);async function w(e,t){let n,{account:a,chainId:r,connector:s,...i}=t;n="object"==typeof a&&a?.type==="local"?e.getClient({chainId:r}):await (0,v.getConnectorClient)(e,{account:a??void 0,assertChainId:!1,chainId:r,connector:s});let o=(0,g.getAction)(n,b.sendTransaction,"sendTransaction");return await o({...i,...a?{account:a}:{},chain:r?{id:r}:null,gas:i.gas??void 0})}var T=e.i(604140),N=e.i(450323),j=e.i(989509),k=e.i(579917),A=e.i(948789);async function C(e,t){let{chainId:n,timeout:a=0,...r}=t,s=e.getClient({chainId:n}),i=(0,g.getAction)(s,A.waitForTransactionReceipt,"waitForTransactionReceipt"),o=await i({...r,timeout:a});if("reverted"===o.status){let e=(0,g.getAction)(s,k.getTransaction,"getTransaction"),{from:t,...n}=await e({hash:o.transactionHash}),a=(0,g.getAction)(s,j.call,"call"),r=await a({...n,account:t,data:n.input,gasPrice:"eip1559"!==n.type?n.gasPrice:void 0,maxFeePerGas:"eip1559"===n.type?n.maxFeePerGas:void 0,maxPriorityFeePerGas:"eip1559"===n.type?n.maxPriorityFeePerGas:void 0});throw Error(r?.data?(0,N.hexToString)(`0x${r.data.substring(138)}`):"unknown reason")}return{...o,chainId:s.chain.id}}var I=e.i(746256);let S=p("0.001");var E=e.i(638700);let M={days:0,hours:0,minutes:0,seconds:0,ended:!1};function R(e){let t=setInterval(e,1e3);return()=>clearInterval(t)}let B=()=>Math.floor(Date.now()/1e3),q=()=>null;var P=e.i(587534),_=e.i(787037),D=e.i(535759);let z=[{tag:"Batch 1",jp:"壱",price:"$0.00001568",state:"sold",note:"Early bird, sold out"},{tag:"Batch 2",jp:"å¼",price:"$0.000035",state:"sold",note:"Growth round, sold out"},{tag:"Batch 3",jp:"å",price:"$0.00007",state:"sold",note:"Sold out"},{tag:"Batch 4",jp:"è",price:"$0.000022",state:"active",note:"Active now"}],F="$0.00028";m.PRESALE_ADDRESS,m.KAMIRAI_TOKEN_ADDRESS;var O=e.i(364569);let U=(0,e.i(456420).default)("shield-check",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",ke
1y:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);var K=e.i(508734),L=e.i(689664);let $=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:2}),W=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",notation:"compact",maximumFractionDigits:1}),H=[{v:"0.5",popular:!1},{v:"1",popular:!1},{v:"2.5",popular:!0},{v:"5",popular:!1}],V=Array.from({length:7},(e,t)=>({left:`${(137*t+11)%100}%`,delay:`${1.9*t%6}s`,dur:`${6+t%4}s`}));function Q({value:e,label:n}){return(0,t.jsxs)("div",{className:"flex flex-col items-center rounded-md border border-gold/20 bg-navy-3/70 px-2 py-2",children:[(0,t.jsx)("span",{className:"font-mono text-xl font-bold tabular-nums text-parchment sm:text-2xl",children:String(e).padStart(2,"0")}),(0,t.jsx)("span",{className:"font-mono text-[9px] uppercase tracking-[0.25em] text-parchment-muted",children:n})]})}e.s(["PresalePanel",0,function(){let e=(0,r.usePresaleData)(),c=function(e=(0,E.getActivePresaleBatch)().endIso){let t=(0,n.useSyncExternalStore)(R,B,q);if(null===t)return M;let a=Math.max(0,new Date(e).getTime()-1e3*t),r=Math.floor(a/1e3);return{days:Math.floor(r/86400),hours:Math.floor(r%86400/3600),minutes:Math.floor(r%3600/60),seconds:r%60,ended:0===a}}(),{buy:u,reset:b,step:g,hash:v,error:N,balance:j,isConnected:k,onBsc:A,switchToBsc:Z}=function(){let{address:e,isConnected:t}=(0,h.useAccount)(),a=(0,l.useChainId)()===I.bsc.id,{switchChain:r}=(0,T.useSwitchChain)(),s=(0,d.useConfig)(),{data:i}=(0,x.useBalance)({address:e,chainId:I.bsc.id,query:{enabled:!!e&&a}}),{sendTransactionAsync:o}=function(e={}){var t;let{mutation:n}=e,a=(t=(0,d.useConfig)(e),{mutationFn:e=>w(t,e),mutationKey:["sendTransaction"]}),{mutate:r,mutateAsync:s,...i}=(0,f.useMutation)({...n,...a});return{...i,sendTransaction:r,sendTransactionAsync:s}}
1(),[c,u]=(0,n.useState)("idle"),[y,b]=(0,n.useState)(),[g,v]=(0,n.useState)(null);return{buy:async function e(e){let t;v(null);try{t=p(e)}catch{v("Enter a valid BNB amount."),u("error");return}if(t<=0n){v("Enter an amount greater than 0."),u("error");return}if(i&&t>i.value-S){v("Insufficient BNB (leave a little for gas)."),u("error");return}try{u("buying");let e=await o({to:m.PRESALE_ADDRESS,value:t,chainId:I.bsc.id});u("confirming"),await C(s,{hash:e,chainId:I.bsc.id}),b(e),u("success")}catch(t){let e;v((e=t.message||"",/user rejected|denied transaction|user rejected/i.test(e)?"Transaction cancelled in wallet.":/insufficient funds/i.test(e)?"Insufficient funds for transaction (including gas).":/exceeds balance/i.test(e)?"Amount exceeds your balance.":/max tx|exceeds max/i.test(e)?"Amount exceeds the per-transaction limit. Try a smaller amount.":e.length>140?e.slice(0,140)+"â¦":e)),u("idle")}},reset:function(){u("idle"),b(void 0),v(null)},step:c,hash:y,error:g,balance:i?.value,isConnected:t,onBsc:a,switchToBsc:()=>r({chainId:I.bsc.id})}}(),[G,X]=(0,n.useState)(""),[Y,J]=(0,n.useState)(!1),{tokensOutGross:ee,isFetching:et}=function(e){let t,[a,r]=(0,n.useState)(e);if((0,n.useEffect)(()=>{let t=setTimeout(()=>r(e),300);return()=>clearTimeout(t)},[e]),Number(a)>0&&Number.isFinite(Number(a)))try{t=p(a)}catch{t=void 0}let{data:c,isFetching:u}=function(e={}){let{abi:t,address:n,functionName:a,query:r={}}=e,c=e.code,u=(0,d.useConfig)(e),p=(0,l.useChainId)({config:u}),m=function(e,t={}){return{async queryFn({queryKey:n}){let a=t.abi;if(!a)throw Error("abi is required");let{functionName:r,scopeKey:i,...o}=n[1],l=(()=>{let e=n[1];if(e.address)return{address:e.address};if(e.code)return{code:e.code};throw Error("address or code is required")})();if(!r)throw Error("functionName is required");return(0,s.readContract)(e,{abi:a,functionName:r,args:o.args,...l,...o})},queryKey:function(e={}){let{abi:t,...n}=e;return["readContract",(0,i.filterQueryOptions)(n)]}(t)}}(u,{...e,chainId:e.chainId??p}),y=!!((n||c)&&t&&a&&(r.enabled??!0));return(0,o.useQuery)({...r,...m,enabled:y,structuralSharing:r.structuralSharing??i.structuralSharing})}({address:m.PRESALE_ADDRESS,abi:y.presaleAbi,functionName:"getTokenAmount",args:void 0!==t?[t]:void 0,query:{enabled:void 0!==t,refetchInterval:15e3}});return{tokensOutGross:c,bnbWei:t,isFetching:u}}(G),en=void 0!==ee?(0,r.applyTax)(ee,e.taxActive,e.taxRateBps):void 0,ea=void 0!==en?28e-5*Number((0,a.formatEther)(en)):void 0,er=z.length,es=z.filter(e=>"sold"===e.state).length,ei=e=>Number(e.replace(/[$,]/g,"")),eo=10n**BigInt(e.tokenDecimals),el=e.totalSupply??888888888888n*eo,ed=el>0n?Number(10000n*e.tokensAvailable/el)/100:0,ec=Math.min(100,Math.max(0,100-ed)),eu=z.find(e=>"active"===e.state),ep=eu&&ei(z[0].price)>0?Math.round(ei(eu.price)/ei(z[0].price)*10)/10:null;async function em(){try{await navigator.clipboard.writeText(m.PRESALE_ADDRESS),J(!0),setTimeout(()=>J(!1),1500)}catch{}}return(0,t.jsxs)("div",{className:"lacquer-panel relative overflow-hidden rounded-xl p-6 sm:p-7",children:[V.map((e,n)=>(0,t.jsx)("span",{className:"ember",style:{left:e.left,animationDelay:e.delay,animationDuration:e.dur}},n)),(0,t.jsxs)("div",{className:"flex flex-col items-center justify-center rounded-lg border border-crimson/40 bg-crimson/[0.08] p-4 text-center",children:[(0,t.jsxs)("p",{className:"flex items-center justify-center gap-1.5 font-mono text-[11px] font-bold uppercase tracking-[0.2em] text-crimson",children:[(0,t.jsx)(O.Zap,{size:13,strokeWidth:2.5,className:"animate-pulse"}),e.batch.label," Live · Open Until Sold Out"]}),null]}),(0,t.jsxs)("div",{className:"mt-4 flex items-center justify-between rounded-md border border-gold/15 bg-black/40 px-3 py-2 font-mono text-[11px] text-parchment-soft",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("span",{className:"glow-pulse inline-block h-2 w-2 rounded-full bg-ember shadow-[0_0_8px_rgba(255,106,26,0.9)]"}),(0,t.jsx)("span",{children:"Floor Price"})]}),(0,t.jsxs)("span",{className:"font-bold text-gold-hi",children:["1 $KAMIRAI = $",e.batch.priceUsd.toFixed(6)]})]}),(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between font-mono text-[11px]",children:[(0,t.jsxs)("span",{className:"text-amber",children:["Batch ",es+1," of ",er," live"]}),(0,t.jsxs)("span",{className:"text-parchment-muted",children:["Only ",ed.toFixed(1),"% left"]})]}),(0,t.jsx)("div",{className:"fire-meter mt-2",children:(0,t.jsx)("div",{className:"fire-meter-case",children:(0,t.jsx)("div",{className:"fire-meter-track",children:(0,t.jsx)("span",{style:{width:`${ec}%`}})})})}),(0,t.jsxs)("div",{className:"mt-1.5 flex justify-between font-mono text-[10px] uppercase tracking-[0.18em] text-parchment-muted",children:[ep?(0,t.jsxs)("span",{className:"text-gold-hi",children:["Up ",ep,"à since Batch 1"]}):(0,t.jsx)("span",{className:"text-gold-hi",children:"Cheapest entry still open"}),(0,t.jsxs)("span",{children:[F,"on chain"]})]}),(0,t.jsxs)("div",{className:"mt-1.5 flex items-center justify-between font-mono text-[10px] uppercase tracking-[0.18em] text-parchment-muted",children:[(0,t.jsx)("span",{children:"Total coins left"}),(0,t.jsxs)("span",{className:"font-bold text-ember",children:[$.format(Number((0,a.formatEther)(e.tokensAvailable)))," $KAMIRAI"]})]})]}),(0,t.jsxs)("div",{className:"mt-6",children:[(0,t.jsx)("label",{htmlFor:"bnb-in",className:"font-mono text-[10px] uppercase tracking-[0.25em] text-parchment-soft",children:"You give (BNB)"}),(0,t.jsxs)("div",{className:"mt-1.5 flex items-center rounded-lg border border-gold/30 bg-navy-3/80 focus-within:border-gold",children:[(0,t.jsx)("input",{id:"bnb-in",value:G,onChange:e=>X(e.target.value.replace(/[^0-9.]/g,"")),inputMode:"decimal",placeholder:"0.0",className:"w-full bg-transparent px-4 py-3 font-mono text-lg text-parchment outline-none placeholder:text-parchment-muted/50"}),(0,t.jsx)("span",{className:"px-4 font-mono text-xs font-bold text-gold",children:"BNB"})]}),(0,t.jsxs)("div",{className:"mt-2 grid grid-cols-3 gap-2 sm:grid-cols-5",children:[H.map(e=>{let n=G===e.v||""===G&&e.popular;return(0,t.jsxs)("button",{type:"button",onClick:()=>X(e.v),className:`relative rounded-md border py-2 font-mono text-[12px] font-bold transition-all hover:-translate-y-0.5 ${n?"border-gold bg-gold/15 text-gold-hi":"border-gold/25 bg-navy/60 text-parchment-soft hover:border-gold hover:text-gold-hi"}`,children:[e.popular?(0,t.jsx)("span",{className:"absolute -top-2 left-1/2 -translate-x-1/2 roun
1ded-full bg-ember px-1.5 py-px font-mono text-[7px] font-bold uppercase tracking-[0.1em] text-navy-3 shadow-[0_0_8px_rgba(255,106,26,0.7)]",children:"Popular"}):null,e.v]},e.v)}),(0,t.jsx)("button",{type:"button",onClick:function(){if(void 0===j)return;let e=j-BigInt(2e15);X(e>0n?(0,a.formatEther)(e).slice(0,8):"0")},className:"rounded-md border border-gold/25 bg-navy/60 py-2 font-mono text-[12px] font-bold text-gold transition-all hover:-translate-y-0.5 hover:border-gold hover:text-gold-hi",children:"MAX"})]}),(0,t.jsxs)("div",{className:"mt-3 rounded-lg border border-gold/25 bg-gold/[0.06] px-4 py-3",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("span",{className:"font-mono text-[10px] uppercase tracking-[0.25em] text-parchment-soft",children:"You receive"}),(0,t.jsx)("span",{className:"font-mono text-lg font-bold text-gold-hi",children:et?"â¦":void 0!==en?`â ${$.format(Number((0,a.formatEther)(en)))} $KAMIRAI`:"··"})]}),void 0===en||et||void 0===ea?null:(0,t.jsxs)("div",{className:"mt-1.5 flex items-center justify-between border-t border-gold/15 pt-1.5",children:[(0,t.jsxs)("span",{className:"font-mono text-[9px] uppercase tracking-[0.18em] text-parchment-muted",children:["Value at est. ",F," listing"]}),(0,t.jsxs)("span",{className:"font-mono text-[13px] font-bold text-amber",children:["â ",W.format(ea)]})]})]})]}),(0,t.jsxs)("div",{className:"mt-5",children:[k?A?"success"===g?(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"font-mono text-sm text-gold-hi",children:"â¡ The thu
1nder god accepts your offering."}),v?(0,t.jsx)("a",{href:`https://bscscan.com/tx/${v}`,target:"_blank",rel:"noopener noreferrer",className:"mt-1 inline-block font-mono text-[11px] text-parchment-soft underline decoration-gold/40 underline-offset-4 hover:text-gold",children:"View transaction"}):null,(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(D.ImportTokenButton,{variant:"solid"})}),(0,t.jsx)("button",{type:"button",onClick:()=>{b(),X("")},className:"mt-3 block w-full rounded-md border border-gold/30 py-2 font-mono text-[11px] uppercase tracking-[0.2em] text-parchment-soft hover:border-gold",children:"Buy again"})]}):(0,t.jsx)(_.PlaqueButton,{size:"lg",className:"w-full",disabled:"buying"===g||"confirming"===g||0>=Number(G),onClick:()=>u(G),children:"buying"===g?"Confirm in walletâ¦":"confirming"===g?"Striking the chainâ¦":"Buy $KAMIRAI"}):(0,t.jsx)(_.PlaqueButton,{tone:"gold",size:"lg",className:"w-full",onClick:Z,children:"Switch to BNB Chain"}):(0,t.jsx)("div",{className:"[&>button]:w-full [&>button]:py-3.5",children:(0,t.jsx)(P.ConnectWallet,{})}),N?(0,t.jsx)("p",{role:"alert",className:"mt-2 font-mono text-[11px] text-crimson",children:N}):null,k&&A&&"success"!==g?(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(D.ImportTokenButton,{variant:"solid"})}):null]}),(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-2 rounded-lg border border-gold/10 bg-navy/30 p-3",children:[(0,t.jsxs)("p",{className:"flex items-center justify-center gap-2 font-mono text-[10px] uppercase tracking-[0.15em] text-gold-hi",children:[(0,t.jsx)(U,{size:14,strokeWidth:2,className:"text-ember"}),"100% Secure & Audited by Cyberscope"]}),(0,t.jsx)("div",{className:"h-px w-full bg-gold/10"}),(0,t.jsxs)("p",{className:"flex items-center justify-center gap-2 font-mono text-[9.5px] uppercase tracking-[0.15em] text-parchment-muted",children:[(0,t.jsx)(O.Zap,{size:12,strokeWidth:2.5,className:"text-gold"}),"Instant Delivery. Tokens sent in same transaction."]})]}),(0,t.jsxs)("details",{className:"mt-5 border-t border-gold/15 pt-4 text-[11px]",children:[(0,t.jsx)("summary",{className:"cursor-pointer list-none font-mono uppercase tracking-[0.22em] text-parchment-muted transition-colors hover:text-gold [&::-webkit-details-marker]:hidden",children:"Or send BNB directly to the contract"}),(0,t.jsxs)("div",{className:"mt-3 flex flex-col gap-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 rounded-md border border-gold/20 bg-black/40 px-2.5 py-2",children:[(0,t.jsx)("code",{className:"break-all font-mono text-[10.5px] text-parchment-soft",children:m.PRESALE_ADDRESS}),(0,t.jsx)("button",{type:"button",onClick:em,"aria-label":"Copy presale contract address",className:"grid shrink-0 place-items-center text-parchment-muted transition-colors hover:text-gold",children:Y?(0,t.jsx)(L.Check,{size:14,strokeWidth:2.5,className:"text-gold"}):(0,t.jsx)(K.Copy,{size:14,strokeWidth:2})})]}),(0,t.jsx)("p",{className:"font-mono text-[9.5px] uppercase leading-relaxed tracking-[0.14em] text-crimson/90",children:"Only send from a personal wallet (MetaMask, Trust Wallet, etc.). Exchanges (Binance, Coinbase) cannot receive the auto-credited $KAMIRAI. Your tokens will be lost."}),(0,t.jsx)("p",{className:"font-mono text-[9.5px] uppercase tracking-[0.14em] text-parchment-muted",children:"Send BNB only on BNB Smart Chain. Tokens return to the sending address."}),(0,t.jsxs)("div",{className:"mt-1 flex flex-col items-center gap-1.5 rounded-md border border-gold/20 bg-navy/40 px-3 py-2.5 text-center",children:[(0,t.jsx)("p",{className:"font-mono text-[9.5px] uppercase tracking-[0.14em] text-parchment-soft",children:"Already sent? Add the token to see your balance:"}),(0,t.jsx)(D.ImportTokenButton,{variant:"link"})]})]})]})]})}],388413)},749571,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(456420);let r=(0,a.default)("play",[["path",{d:"M5 5a2 2 0 0 1 3.008-1.728l11.997 6.998a2 2 0 0 1 .003 3.458l-12 7A2 2 0 0 1 5 19z",key:"10ikf1"}]]),s=(0,a.default)("volume-2",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["path",{d:"M16 9a5 5 0 0 1 0 6",key:"1q6k2b"}],["path",{d:"M19.364 18.364a9 9 0 0 0 0-12.728",key:"ijwkga"}]]),i=(0,a.default)("volume-x",[["path",{d:"M11 4.702a.705.705 0 0 0-1.203-.498L6.413 7.587A1.4 1.4 0 0 1 5.416 8H3a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h2.416a1.4 1.4 0 0 1 .997.413l3.383 3.384A.705.705 0 0 0 11 19.298z",key:"uqj9uw"}],["line",{x1:"22",x2:"16",y1:"9",y2:"15",key:"1ewh16"}],["line",{x1:"16",x2:"22",y1:"9",y2:"15",key:"5ykzw1"}]]),o=(0,a.default)("maximize",[["path",{d:"M8 3H5a2 2 0 0 0-2 2v3",key:"1dcmit"}],["path",{d:"M21 8V5a2 2 0 0 0-2-2h-3",key:"1e4gt3"}],["path",{d:"M3 16v3a2 2 0 0 0 2 2h3",key:"wsl5sc"}],["path",{d:"M16 21h3a2 2 0 0 0 2-2v-3",key:"18trek"}]]),l="(prefers-reduced-motion: reduce)";e.s(["VideoStage",0,function({poster:e,src:a}
1){let d=(0,n.useRef)(null),c=(0,n.useRef)(null),[u,p]=(0,n.useState)(!1),[m,y]=(0,n.useState)(!0),h=(0,n.useSyncExternalStore)(e=>{let t=window.matchMedia(l);return t.addEventListener("change",e),()=>t.removeEventListener("change",e)},()=>window.matchMedia(l).matches,()=>!1);function x(e){let t=c.current;t&&(p(!0),e&&(t.muted=!1,y(!1)),t.requestFullscreen?t.requestFullscreen().catch(()=>{}):t.webkitEnterFullscreen&&t.webkitEnterFullscreen(),t.play().catch(()=>{}))}return(0,n.useEffect)(()=>{let e=d.current;if(!e||h)return;let t=new IntersectionObserver(([e])=>{let t=c.current;e.isIntersecting?(p(!0),requestAnimationFrame(()=>t?.play().catch(()=>{}))):t?.pause()},{threshold:.35});return t.observe(e),()=>t.disconnect()},[h]),(0,t.jsx)("div",{ref:d,className:"group relative block w-full overflow-hidden rounded-xl",style:{padding:"10px",background:"linear-gradient(150deg, #c08a47 0%, #9a6a34 40%, #5e3a18 100%)",boxShadow:"0 0 0 3px #1c0f06, 0 0 36px rgba(255,138,30,0.16), 0 22px 60px rgba(0,0,0,0.6)"},children:(0,t.jsxs)("span",{className:"relative block overflow-hidden rounded-lg",style:{border:"2px solid #3a2410",boxShadow:"inset 0 0 0 2px #d8b066"},children:[(0,t.jsx)("video",{ref:c,src:u?a:void 0,poster:e,muted:!0,loop:!0,playsInline:!0,preload:"metadata","aria-label":"The Kamirai legend",className:"aspect-video w-full bg-navy-3 object-cover"}),(0,t.jsx)("span",{className:"pointer-events-none absolute inset-0 bg-[radial-gradient(70%_70%_at_50%_40%,transparent,rgba(4,18,30,0.45))]"}),h?(0,t.jsx)("button",{type:"button",onClick:()=>x(!0),"aria-label":"Play the Kamirai legend with sound",className:"absolute inset-0 grid place-items-center",children:(0,t.jsx)("span",{className:"grid h-20 w-20 place-items-center rounded-full text-navy-3 transition-transform duration-300 group-hover:scale-110",style:{background:"linear-gradient(180deg, #f1d88a 0%, #d4af37 60%, #b8923a 100%)",boxShadow:"0 0 0 4px rgba(10,10,10,0.5), 0 0 40px rgba(255,154,30,0.5)"},children:(0,t.jsx)(r,{size:30,strokeWidth:2,className:"ml-1",fill:"currentColor"})})}):null,(0,t.jsxs)("div",{className:"absolute inset-x-0 bottom-0 flex items-center justify-between gap-3 bg-gradient-to-t from-navy-3/90 to-transparent px-4 py-3",children:[(0,t.jsxs)("button",{type:"button",onClick:function(){let e=c.current;e&&(e.muted=!e.muted,y(e.muted),e.muted||e.play().catch(()=>{}))},className:"flex items-center gap-2 rounded-md border border-gold/40 bg-navy-3/70 px-3 py-1.5 font-mono text-[10px] font-bold uppercase tracking-[0.16em] text-gold-hi transition-colors hover:border-gold",children:[m?(0,t.jsx)(i,{size:14,strokeWidth:2}):(0,t.jsx)(s,{size:14,strokeWidth:2}),m?"Sound off":"Sound on"]}),(0,t.jsxs)("button",{type:"button",onClick:()=>x(!0),className:"flex items-center gap-2 rounded-md border border-gold/40 bg-navy-3/70 px-3 py-1.5 font-mono text-[10px] font-bold uppercase tracking-[0.16em] text-gold-hi transition-colors hover:border-gold",children:[(0,t.jsx)(o,{size:14,strokeWidth:2}),"Watch fullscreen"]})]})]})})}],749571)},303564,e=>{"use strict";var t=e.i(843476),n=e.i(351538);let a=new Intl.NumberFormat("en-US",{notation:"compact",maximumFractionDigits:1});e.s(["BurnedStat",0,function({fallback:e}){let{burnedTokens:r,tokenDecimals:s}=(0,n.usePresaleData)();if(void 0===r||0n===r)return(0,t.jsx)(t.Fragment,{children:e});let i=Number(r/10n**BigInt(s));return(0,t.jsx)(t.Fragment,{children:a.format(i)})}])},210437,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(787037);e.s(["ContractAddress",0,function({address:e,label:r,hint:s}){let[i,o]=(0,n.useState)(!1);async function l(){try{await navigator.clipboard.writeText(e),o(!0),setTimeout(()=>o(!1),1800)}catch{}}return(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("p",{className:"font-body text-sm font-extrabold uppercase tracking-[0.08em] text-paper-ink",children:r}),s?(0,t.jsx)("p",{className:"paper-muted font-mono text-[9px] uppercase tracking-[0.25em]",children:s}):null,(0,t.jsxs)("div",{className:"mt-2 flex flex-col items-center justify-center gap-2 sm:flex-row",children:[(0,t.jsx)("span",{className:"paper-field max-w-full break-all px-3 py-2 font-mono text-[10.5px] font-bold text-paper-ink sm:text-xs",children:e}),(0,t.jsx)(a.PlaqueButton,{onClick:l,className:"shrink-0",children:i?"Copied â¡":"Copy"})]})]})}])},351198,e=>{"use strict";var t=e.i(843476),n=e.i(351538);let a=new Intl.NumberFormat("en-US",{maximumFractionDigits:0});e.s(["LedgerLiveSupply",0,function(){let{tokensAvailable:e,burnedTokens:r,totalSupply:s,tokenDecimals:i}=(0,n.usePresaleData)(),o=10n**BigInt(i),l=s??888888888888n*o,d=l-(r??0n),c=e=>void 0!==e&&l>0n?Number(10000n*e/l)/100:0,u=e=>void 0!==e?a.format(Number(e/o)):"â",p=[{label:"Total supply",value:u(l),pctNum:100,note:"Fixed forever, there is no mint function."},{label:"Max supply after burn",value:u(d),pctNum:c(d),note:"Total supply minu
1s everything burned, read live from chain."},{label:"Remaining",value:u(e),pctNum:c(e),note:"Coins still available to buy in the presale."},{label:"Burned",value:u(r),pctNum:c(r),note:"Held at the dead address (0xâ¦dEaD), gone forever."}];return(0,t.jsx)("div",{className:"grid gap-3 sm:grid-cols-2",children:p.map(e=>(0,t.jsxs)("div",{className:"paper-card p-5",children:[(0,t.jsxs)("div",{className:"flex items-baseline justify-between gap-3",children:[(0,t.jsx)("p",{className:"font-body text-sm font-extrabold uppercase tracking-[0.04em] text-paper-ink",children:e.label}),(0,t.jsxs)("p",{className:"font-mono text-lg font-bold text-paper-ink",children:[e.pctNum.toFixed(1),"%"]})]}),(0,t.jsx)("p",{className:"mt-2 font-mono text-xl font-bold tabular-nums text-paper-ink",children:e.value}),(0,t.jsx)("p",{className:"paper-muted mt-1 font-body text-[12px] leading-snug",children:e.note}),(0,t.jsx)("div",{className:"fire-bar mt-3",style:{height:7},children:(0,t.jsx)("span",{style:{width:`${Math.max(2,e.pctNum)}%`}})})]},e.label))})}])},74878,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(364569),r=e.i(787037);e.s(["StickyBuyBar",0,function(){let[e,s]=(0,n.useState)(!1);return(0,n.useEffect)(()=>{let e=document.getElementById("top"),t=document.getElementById("presale"),n=document.querySelector("footer"),a=!1,r=!1,i=!1,o=new IntersectionObserver(o=>{for(let s of o)s.target===e&&(a=!s.isIntersecting),s.target===t&&(r=s.isIntersecting),s.target===n&&(i=s.isIntersecting);s(a&&!r&&!i)},{threshold:.1});return e&&o.observe(e),t&&o.observe(t),n&&o.observe(n),()=>o.disconnect()},[]),(0,t.jsx)("div",{"aria-hidden":!e,className:`fixed inset-x-0 bottom-0 z-40 transition-transform duration-300 ease-out ${e?"translate-y-0":"translate-y-full"}`,children:(0,t.jsxs)("div",{className:"mx-auto flex max-w-3xl items-center justify-between gap-4 border-t border-gold/25 bg-navy-2/95 px-4 py-3 shadow-[0_-8px_30px_rgba(0,0,0,0.5)] backdrop-blur-md sm:mb-3 sm:rounded-xl sm:border sm:px-6",children:[(0,t.jsxs)("p",{className:"flex items-center gap-2 font-mono text-[10px] uppercase tracking-[0.16em] text-gold-hi sm:text-[11px]",children:[(0,t.jsx)(a.Zap,{size:13,strokeWidth:2.25,className:"shrink-0 text-ember"}),"Batch 4 live"]}),(0,t.jsx)(r.PlaqueLink,{href:"#presale",tone:"gold",size:"md",className:"shrink-0",children:"Buy $KAMIRAI"})]})})}])},327182,e=>{"use strict";var t=e.i(843476),n=e.i(271645),a=e.i(657688);let r=(0,e.i(456420).default)("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var s=e.i(364569),i=e.i(787037);let o="km_offer_seen";e.s(["ConversionPopup",0,function(){let[e,l]=(0,n.useState)(!1);return((0,n.useEffect)(()=>{try{if(sessionStorage.getItem(o))return}catch{}let e=!1,t=()=>{if(!e){e=!0;try{sessionStorage.setItem(o,"1")}catch{}l(!0),s()}},n=e=>{e.clientY<=0&&t()},a=()=>{let e=document.documentElement.scrollHeight-window.innerHeight;e>0&&window.scrollY/e>.6&&t()},r=window.setTimeout(t,4e4);function s(){window.clearTimeout(r),document.removeEventListener("mouseout",n),window.removeEventListener("scroll",a)}return document.addEventListener("mouseout",n),window.addEventListener("scroll",a,{passive:!0}),s},[]),(0,n.useEffect)(()=>{if(!e)return;let t=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("keydown",t),()=>document.removeEventListener("keydown",t)},[e]),e)?(0,t.jsxs)("div",{className:"fixed inset-0 z-[998] flex items-center justify-center p-4",role:"dialog","aria-modal":"true","aria-label":"Presale offer",children:[(0,t.jsx)("button",{type:"button","aria-label":"Close",onClick:()=>l(!1),className:"absolute inset-0 bg-black/75 backdrop-blur-sm"}),(0,t.jsxs)("div",{className:"lacquer-panel relative w-full max-w-md overflow-hidden rounded-2xl p-6 text-center sm:p-8",children:[(0,t.jsx)("button",{type:"button",onClick:()=>l(!1),"aria-label":"Close",className:"absolute right-3 top-3 grid h-8 w-8 place-items-center rounded-full text-parchment-soft transition-colors hover:text-gold",children:(0,t.jsx)(r,{size:18,strokeWidth:2})}),(0,t.jsx)(a.default,{src:"/assets/kamirai/crest-red-alpha.webp",alt:"Kamirai",width:600,height:629,className:"mx-auto h-14 w-auto drop-shadow-[0_2px_10px_rgba(0,0,0,0.5)]"}),(0,t.jsxs)("p",{className:"mt-4 flex items-center justify-center gap-1.5 font-mono text-[11px] font-bold uppercase tracking-[0.2em] text-ember",children:[(0,t.jsx)(s.Zap,{size:13,strokeWidth:2.5,className:"animate-pulse"}),"Batch 4 live"]}),(0,t.jsx)("h2",{className:"mt-2 font-display text-2xl font-bold leading-tight text-parchment sm:text-3xl",children:"You are at the floor."}),(0,t.jsx)("p",{className:"mx-auto mt-3 max-w-sm font-body text-[14px] leading-relaxed text-parchment-soft",children:"Batch 4 is repriced to $0.000022 â the current batch price."}),(0,t.jsxs)("div",{className:"mt-6 flex flex-col items-center gap-3",children:[(0,t.jsx)(i.PlaqueLink,{href:"#presale",tone:"gold",size:"lg",className:"w-full sm:w-auto",onClick:()=>l(!1),children:"Secure my allocation"}),(0,t.jsx)("button",{type:"button",onClick:()=>l(!1),className:"font-mono text-[10px] uppercase tracking-[0.2em] text-parchment-muted transition-colors hover:text-gold",children:"No thanks, I will pay more later"})]})]})]}):null}],327182)}]);
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.