1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,422333,e=>{"use strict";var t=e.i(438929),r=e.i(715311),a=e.i(905274);function i({errors:e,backUrl:i}){let s=(0,r.useRef)(!1),n=(0,t.useRouter)();return(0,r.useEffect)(()=>{if(s.current)return;s.current=!0;let t=e.filter(e=>null!=e);if(0===t.length)return;let r=Array.from(new Set(t.map(e=>{let t=function(e){if("validationException"===e.type||"forbiddenException"===e.type){let t=e.errors;if(t&&"object"==typeof t)return t&&"_error"in t?{message:Array.isArray(t._error)?t._error[0]:t._error}:{message:e.message,errors:t}}return{message:e.message}}(e);if(t.errors){let e=Object.keys(t.errors).length;return`Validation failed for ${e} field${e>1?"s":""}`}return t.message||"An error occurred"})));1===r.length?(0,a.LXToast)("error",r[0],{id:"error-toast"}):r.length>1&&(0,a.LXToast)("error","An unexpected error occurred. Please reload the page.",{id:"error-toast"}),i&&(window.history.length>1?n.back():n.replace(i))},[e,i,n]),null}e.s(["ErrorDisplay",()=>i],422333)},168911,e=>{"use strict";let t=(0,e.i(591762).default)("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);e.s(["default",()=>t])},594973,e=>{"use strict";var t=e.i(168911);e.s(["PlusIcon",()=>t.default])},748315,e=>{"use strict";var t=e.i(505930),r=e.i(856305);let a=(0,r.createServerReference)("70a099a11902e704f8cd7080a317bd3a8dd9c6be08",r.callServer,void 0,r.findSourceMapURL,"depositAction");var i=e.i(114721),s=e.i(207653);let n=(e,t,r)=>s.z.object({amount:s.z.number().min(t.minAmount,{message:e("deposit.amount_min",{min:t.minAmount,currency_symbol:r})}).max(t.maxAmount,{message:e("deposit.amount_max",{max:t.maxAmount,currency_symbol:r})}),promotion_id:s.z.string().optional(),game:s.z.object({game_ids:s.z.array(s.z.string()),provider:s.z.string(),type:s.z.string()}).optional(),notes:s.z.string().optional()}),o={success:!1};var l=e.i(532170),u=e.i(641164),c=e.i(769455),d=e.i(715311),f=e.i(847373);function h(e,r){let h=(0,c.useTranslations)(),[m,p]=(0,d.useState)(e.initialMethod??"qris"),x=(0,f.useForm)({resolver:(0,t.zodResolver)(((e,t,r)=>s.z.discriminatedUnion("method",[n(e,t,r).extend({method:s.z.literal("qris")}),n(e,t,r).extend({method:s.z.literal("bank_transfer"),selected_channel:s.z.enum(i.USER_PAYMENT_CHANNEL_LISTS,{message:e("deposit.channel_required")})}),n(e,t,r).extend({method:s.z.literal("virtual_account"),bank_code:s.z.string().min(1,{message:e("deposit.bank_code_required")})})]))(h,{minAmount:e.minAmount,maxAmount:e.maxAmount},e.currencySymbol)),defaultValues:{method:e.initialMethod??"qris",amount:0,selected_channel:e.defaultUserPaymentChannel},mode:"onChange",reValidateMode:"onChange"});(0,d.useEffect)(()=>{x.setValue("method",m),p(m),e.defaultUserPaymentChannel&&x.setValue("selected_channel",e.defaultUserPaymentChannel)},[m,e.defaultUserPaymentChannel,x]);let g=async(t,r)=>a(t,r,e),{state:b,formAction:y,isPending:_}=(0,l.useActionFormState)(g,x,o,{onSuccess:r?.onSuccess,onError:r?.onError}),v=x.handleSubmit(e=>{let t=new FormData;t.set("method",e.method),t.set("amount",e.amount.toString()),e.method===u.BANK_TRANSFER_METHOD?t.set("selected_channel",e.selected_channel):e.method===u.VIRTUAL_ACCOUNT_METHOD&&t.set("bank_code",e.bank_code),e.promotion_id&&t.set("promotion_id",e.promotion_id),e.game&&t.set("game",JSON.stringify(e.game)),e.notes&&t.set("notes",e.notes),(0,d.startTransition)(()=>{y(t)})});return{form:x,state:b,formAction:y,handleSubmit:v,isPending:_,method:m,setMethod:p}}e.s(["useDeposit",()=>h],748315)},647903,e=>{"use strict";var t=e.i(901858),r=e.i(19521),a=e.i(958296),i=e.i(252598);e.s(["default",0,({channelName:e,accountName:s,accountNumber:n})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("p",{className:"uppercase text-xs",children:"tujuan transfer"}),(0,t.jsx)(a.default,{channelName:e,accountName:s??"-",className:"py-2"}),(0,t.jsxs)("div",{className:"bg-background/5 px-2 py-1 flex justify-between items-center border border-border/50 rounded-sm",children:[(0,t.jsx)("span",{className:"capitalize text-muted-foreground text-xs",children:"nomor rekening:"}),(0,t.jsxs)("span",{className:"flex gap-x-1.5 items-center",children:[n&&(0,t.jsx)("p",{className:"font-bold",children:(0,r.formatAccountNumber)(n)}),n&&(0,t.jsx)(i.LXCopy,{content:n,size:"sm",variant:"image"})]})]})]})])},427996,e=>{"use strict";e.s(["formatTransactionType",0,e=>e.split("_").map(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()).join(" "),"mapWalletHistoryToDepositSchema",0,e=>({_id:`${e.created_at}-${e.amount}`,status:e.status,amount:Math.abs(e.amount),created_at:e.created_at,timeout_at:e.created_at,
1sender_bank:e.sender_bank||null,sender_bank_account_number:e.sender_bank_account_number||null,sender_bank_account_name:e.sender_bank_account_name||null,type:"bank",bank_account_name:e.bank_account_name||null,bank_account_number:e.bank_account_number||null,qr_type:e?.qr_type||null,qr_image:e?.qr_image||null,bank:e.bank||null,method:"qris"===e.method?"qris":"bank_transfer"}),"mapWalletHistoryToWithdrawSchema",0,e=>({_id:`${e.created_at}-${e.amount}`,amount:Math.abs(e.amount),status:e.status,bank_account_number:e.bank_account_number||"",bank_account_name:e.bank_account_name||"",bank:e.bank||"BCA",type:"bank_transfer",created_at:e.created_at,qr_image:null,display_account_number:null,sender:null}),"mapWalletStatusToBadgeStatus",0,e=>{switch(e){case"pending":default:return"in-progress";case"approved":return"done";case"rejected":return"fail"}}])},958296,e=>{"use strict";var t=e.i(901858),r=e.i(114721),a=e.i(19521),i=e.i(208838),s=e.i(578120);e.s(["default",0,({channelName:e,accountName:n,accountNumber:o,className:l})=>{let u=(0,a.getPaymentChannelType)(e);return(0,t.jsxs)("div",{className:(0,i.cn)("flex gap-x-2.5 items-center text-xs text-nowrap",l),children:[(0,t.jsx)(s.default,{variant:"color",channel:e,className:"w-22.5"}),(0,t.jsxs)("span",{children:[(0,t.jsx)("p",{className:"text-muted-foreground",children:n&&o?n.toUpperCase():`${e.toUpperCase()}${e!==r.QRIS&&n?" a/n":""}`}),(0,t.jsx)("p",{className:"font-semibold capitalize",children:o?(0,a.formatAccountNumber)(o):n?n.toUpperCase():e!==r.QRIS?"bank"===u?"bank transfer":"e_wallet"===u?"e-wallet":u:"semua bank"})]})]})}])},252598,e=>{"use strict";var t=e.i(901858),r=e.i(932947),a=e.i(715311),i=e.i(208838),s=e.i(294237),n=e.i(764090);let o=(0,e.i(591762).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"}]]);var l=e.i(143296),u=e.i(859596),c=e.i(632010);function d({children:e,ref:r,...s}){var n;let o,l="object"==typeof e.type&&null!==e.type&&null!==(n=e.type)&&"object"==typeof n&&c.motionComponentSymbol in n,d=a.useMemo(()=>l?e.type:u.motion.create(e.type),[l,e.type]);if(!a.isValidElement(e))return null;let{ref:f,...h}=e.props,m=(o={...h,...s},(h.className||s.className)&&(o.className=(0,i.cn)(h.className,s.className)),(h.style||s.style)&&(o.style={...h.style,...s.style}),o);return(0,t.jsx)(d,{...m,ref:function(...e){return t=>{e.forEach(e=>{e&&("function"==typeof e?e(t):e.current=t)})}}(f,r)})}function f({hoverScale:e=1.05,tapScale:r=.95,asChild:a=!1,...i}){let s=a?d:u.motion.button;return(0,t.jsx)(s,{whileTap:{scale:r},whileHover:{scale:e},...i})}let h=(0,s.cva)("flex items-center justify-center rounded-md transition-[box-shadow,_color,_background-color,_border-color,_outline-color,_text-decoration-color,_fill,_stroke] disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground shadow-xs hover:bg-primary/90",accent:"bg-accent text-accent-foreground shadow-xs hover:bg-accent/90",destructive:"bg-destructive text-white shadow-xs hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground shadow-xs hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"size-9",xs:"size-7 [&_svg:not([class*='size-'])]:size-3.5 rounded-md",sm:"size-8 rounded-md",lg:"size-10 rounded-md"}},defaultVariants:{variant:"default",size:"default"}});var m=e.i(995671);let{LXCopyButton:p}=(0,r.CreateComponentVariant)({LXCopyButton:{component:function({className:e,content:r,copied:s,onCopiedCh
1ange:c,onClick:d,variant:m,size:p,delay:x=3e3,...g}){let[b,y]=function(e){let{value:t,defaultValue:r,onChange:i}=e,[s,n]=a.useState(void 0!==t?t:r);return a.useEffect(()=>{void 0!==t&&n(t)},[t]),[s,a.useCallback((e,...t)=>{n(e),i?.(e,...t)},[i])]}({value:s,onChange:c}),_=a.useCallback(e=>{d?.(e),!s&&r&&navigator.clipboard.writeText(r).then(()=>{y(!0),c?.(!0,r),setTimeout(()=>{y(!1),c?.(!1)},x)}).catch(e=>{console.error("Error copying command",e)})},[d,s,r,y,c,x]),v=b?n.CheckIcon:o;return(0,t.jsx)(f,{"data-slot":"copy-button",className:(0,i.cn)(h({variant:m,size:p,className:e})),onClick:_,...g,children:(0,t.jsx)(l.AnimatePresence,{mode:"popLayout",children:(0,t.jsx)(u.motion.span,{"data-slot":"copy-button-icon",initial:{scale:0,opacity:.4,filter:"blur(4px)"},animate:{scale:1,opacity:1,filter:"blur(0px)"},exit:{scale:0,opacity:.4,filter:"blur(4px)"},transition:{duration:.25},children:(0,t.jsx)(v,{})},b?"check":"copy")})})},variants:m.LXButtonVariants}});function x({children:e,className:r,variant:a,size:i,...s}){return(0,t.jsx)(p,{type:"button",variant:a,size:i,...s})}e.s(["LXCopy",()=>x],252598)},764090,e=>{"use strict";let t=(0,e.i(591762).default)("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);e.s(["CheckIcon",()=>t],764090)},143296,e=>{"use strict";e.i(263716);var t=e.i(901858),r=e.i(715311),a=e.i(931864),i=e.i(997210),s=e.i(138040),n=e.i(713558),o=e.i(947327),l=r,u=e.i(178163);function c(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}class d extends l.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&!1!==this.props.pop){let e=t.offsetParent,r=(0,o.isHTMLElement)(e)&&e.offsetWidth||0,a=(0,o.isHTMLElement)(e)&&e.offsetHeight||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=r-i.width-i.left,i.bottom=a-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}}function f({children:e,isPresent:a,anchorX:i,anchorY:s,root:n,pop:o}){let f=(0,l.useId)(),h=(0,l.useRef)(null),m=(0,l.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:p}=(0,l.useContext)(u.MotionConfigContext),x=function(...e){return r.useCallback(function(...e){return t=>{let r=!1,a=e.map(e=>{let a=c(e,t);return r||"function"!=typeof a||(r=!0),a});if(r)return()=>{for(let t=0;t<a.length;t++){let r=a[t];"function"==typeof r?r():c(e[t],null)}}}}(...e),e)}(h,e.props?.ref??e?.ref);return(0,l.useInsertionEffect)(()=>{let{width:e,height:t,top:r,left:l,right:u,bottom:c}=m.current;if(a||!1===o||!h.current||!e||!t)return;let d="left"===i?`left: ${l}`:`right: ${u}`,x="bottom"===s?`bottom: ${c}`:`top: ${r}`;h.current.dataset.motionPopId=f;let g=document.createElement("style");p&&(g.nonce=p);let b=n??document.head;return b.appendChild(g),g.sheet&&g.sheet.insertRule(` 2 [data-motion-pop-id="${f}"] { 3 position: absolute !important; 4 width: ${e}px !important; 5 height: ${t}px !important; 6 ${d}px !important; 7 ${x}px !important; 8 } 9 `),()=>{b.contains(g)&&b.removeChild(g)}},[a]),(0,t.jsx)(d,{isPresent:a,childRef:h,sizeRef:m,pop:o,children:!1===o?e:l.cloneElement(e,{ref:x})})}let h=({children:e,initial:a,isPresent:s,onExitComplete:o,custom:l,presenceAffectsLayout:u,mode:c,anchorX:d,anchorY:h,root:p})=>{let x=(0,i.useConstant)(m),g=(0,r.useId)(),b=!0,y=(0,r.useMemo)(()=>(b=!1,{id:g,initial:a,isPresent:s,custom:l,onExitComplete:e=>{for(let t of(x.set(e,!0),x.values()))if(!t)return;o&&o()},register:e=>(x.set(e,!1),()=>x.delete(e))}),[s,x,o]);return u&&b&&(y={...y}),(0,r.useMemo)(()=>{x.forEach((e,t)=>x.set(t,!1))},[s]),r.useEffect(()=>{s||x.size||!o||o()},[s]),e=(0,t.jsx)(f,{pop:"popLayout"===c,isPresent:s,anchorX:d,anchorY:h,root:p,children:e}),(0,t.jsx)(n.PresenceContext.Provider,{value:y,children:e})};function m(){return new Map}var p=e.i(18357);let x=e=>e.key||"";function g(e){let t=[];return r.Children.forEach(e,e=>{(0,r.isValidElement)(e)&&t.push(e)}),t}let b=({children:e,custom:n,initial:o=!0,onExitComplete:l,presenceAffectsLayout:u=!0,mode:c="sync",propagate:d=!1,anchorX:f="left",anchorY:m="top",root:b})=>{let[y,_]=(0,p.usePresence)(d),v=(0,r.useMemo)(()=>g(e),[e]),j=d&&!y?[]:v.map(x),k=(0,r.useRef)(!0),A=(0,r.useRef)(v),w=(0,i.useConstant)(()=>new Map),S=(0,r.useRef)(new Set),[C,B]=(0,r.useState)(v),[M,I]=(0,r.useState)(v);(0,s.useIsomorphicLayoutEffect)(()=>{k.current=!1,A.current=v;for(let e=0;e<M.length;e++){let t=x(M[e]);j.includes(t)?(w.delete(t),S.current.delete(t)):!0!==w.get(t)&&w.set(t,!1)}},[M,j.length,j.join("-")]);let E=[];if(v!==C){let e=[...v];for(let t=0;t<M.length;t++){let r=M[t],a=x(r);j.includes(a)||(e.splice(t,0,r),E.push(r))}return"wait"===c&&E.length&&(e=E),I(g(e)),B(v),null}let{forceRender:N}=(0,r.useContext)(a.LayoutGroupContext);return(0,t.jsx)(t.Fragment,{children:M.map(e=>{let r=x(e),a=(!d||!!y)&&(v===M||j.includes(r));return(0,t.jsx)(h,{isPresent:a,initial:(!k.current||!!o)&&void 0,custom:n,presenceAffectsLayout:u,mode:c,root:b,onExitComplete:a?void 0:()=>
9{if(S.current.has(r)||(S.current.add(r),!w.has(r)))return;w.set(r,!0);let e=!0;w.forEach(t=>{t||(e=!1)}),e&&(N?.(),I(A.current),d&&_?.(),l&&l())},anchorX:f,anchorY:m,children:e},r)})})};e.s(["AnimatePresence",()=>b],143296)},114721,e=>{"use strict";let t=["BCA","BRI","BNI","MANDIRI","CIMB","DANAMON","MAYBANK","BSI","OCBC","JAGO","JENIUS","PERMATA","SEABANK"],r=["DANA","GOPAY","OVO","SHOPEEPAY","LINKAJA","SAKUKU"],a=["TELKOMSEL","XL","IM3","SMARTFREN","THREE"];[...t,...r,...a];let i=[...t,...r,...a],s="bank",n="e_wallet",o="pulsa";e.s(["ALL_PAYMENT_CHANNEL_TYPE",0,{QRIS:"qris","VIRTUAL ACCOUNT":"virtual_account",BCA:s,BRI:s,BNI:s,MANDIRI:s,CIMB:s,DANAMON:s,MAYBANK:s,BSI:s,OCBC:s,JAGO:s,JENIUS:s,PERMATA:s,SEABANK:s,DANA:n,GOPAY:n,OVO:n,SHOPEEPAY:n,LINKAJA:n,SAKUKU:n,TELKOMSEL:o,XL:o,IM3:o,SMARTFREN:o,THREE:o},"BANK_CHANNEL_TYPE",0,s,"EWALLET_CHANNEL_TYPE",0,n,"MOBILE_OPERATOR_CHANNEL_TYPE",0,o,"QRIS",0,"QRIS","USER_PAYMENT_CHANNEL_LABEL",0,{bank:"Bank",e_wallet:"E-Wallet",pulsa:"Pulsa"},"USER_PAYMENT_CHANNEL_LISTS",0,i])},578120,e=>{"use strict";var t=e.i(901858),r=e.i(208838);let a={w:80,h:24};function i(e){return Object.fromEntries(Object.entries(e).map(([e,{src:r,w:a,h:i}])=>[e,(0,t.jsx)("img",{src:r,alt:e,width:a,height:i,loading:"lazy"},e)]))}let s=i({BCA:{src:"/images/banks/color/bca.svg",...a},BRI:{src:"/images/banks/color/bri.svg",...a},BNI:{src:"/images/banks/color/bni.svg",...a},MANDIRI:{src:"/images/banks/color/mandiri.svg",...a},CIMB:{src:"/images/banks/color/cimb.svg",...a},DANAMON:{src:"/images/banks/color/danamon.svg",...a},MAYBANK:{src:"/images/banks/color/maybank.svg",...a},BSI:{src:"/images/banks/color/bsi.svg",...a},OCBC:{src:"/images/banks/color/ocbc.svg",...a},JAGO:{src:"/images/banks/color/jago.svg",...a},JENIUS:{src:"/images/banks/color/jenius.svg",...a},PERMATA:{src:"/images/banks/color/permata.svg",...a},SEABANK:{src:"/images/banks/color/seabank.svg",...a},DANA:{src:"/images/banks/color/dana.svg",...a},GOPAY:{src:"/images/banks/color/gopay.svg",...a},OVO:{src:"/images/banks/color/ovo.svg",...a},SHOPEEPAY:{src:"/images/banks/color/shopeepay.svg",...a},LINKAJA:{src:"/images/banks/color/linkaja.svg",...a},SAKUKU:{src:"/images/banks/color/sakuku.svg",...a},TELKOMSEL:{src:"/images/banks/color/telkomsel.svg",...a},XL:{src:"/images/banks/color/xl.svg",...a},IM3:{src:"/images/banks/color/im3.svg",...a},SMARTFREN:{src:"/images/banks/color/smartfren.svg",...a},THREE:{src:"/images/banks/color/three.svg",...a},QRIS:{src:"/images/banks/color/qris.svg",...a},"VIRTUAL ACCOUNT":{src:"/images/banks/color/virtualaccount.svg",...a}}),n=i({BCA:{src:"/images/banks/black/bca.svg",w:47,h:16},BRI:{src:"/images/banks/black/bri.svg",w:52,h:15},BNI:{src:"/images/banks/black/bni.svg",w:53,h:15},MANDIRI:{src:"/images/banks/black/mandiri.svg",w:52,h:15},CIMB:{src:"/images/banks/black/cimb.svg",w:136,h:20},DANAMON:{src:"/images/banks/black/danamon.svg",w:93,h:24},MAYBANK:{src:"/images/banks/black/maybank.svg",w:80,h:24},BSI:{src:"/images/banks/black/bsi.svg",w:86,h:24},OCBC:{src:"/images/banks/black/ocbc.svg",w:114,h:24},JAGO:{src:"/images/banks/black/bank_jago.svg",w:72,h:24},JENIUS:{src:"/images/banks/black/jenius.svg",w:106,h:24},PERMATA:{src:"/images/banks/black/permata.svg",w:114,h:33},SEABANK:{src:"/images/banks/black/sea_bank.svg",w:76,h:24},DANA:{src:"/images/banks/black/dana.svg",w:84,h:24},GOPAY:{src:"/images/banks/black/gopay.svg",w:53,h:14},OVO:{src:"/images/banks/black/ovo.svg",w:61,h:20},SHOPEEPAY:{src:"/images/banks/black/spay.svg",w:56,h:24},LINKAJA:{src:"/images/banks/black/linkaja.svg",w:91,h:24},SAKUKU:{src:"/images/banks/black/sakuku.svg",w:90,h:24},TELKOMSEL:{src:"/images/banks/black/telkomsel.svg",w:94,h:24},XL:{src:"/images/banks/black/xl.svg",w:28,h:24},IM3:{src:"/images/banks/black/im3.svg",w:32,h:24},SMARTFREN:{src:"/images/banks/black/smartfren.svg",w:142,h:24},THREE:{src:"/images/banks/black/three.svg",w:18,h:24},QRIS:{src:"/images/banks/black/qris.svg",w:65,h:24}});e.s(["default",0,({className:e,channel:a,variant:i,...o})=>(0,t.jsx)("div",{className:(0,r.cn)("rounded px-2 flex items-center justify-center","color"===i?"bg-white w-[90px] h-9 text-black":"w-20 h-6",e),...o,children:("color"===i?
9s:n)[a]})])},19521,e=>{"use strict";var t=e.i(114721);function r(e){return e.replace(/\D/g,"").replace(/(.{4})/g,"$1 ").trim()}function a(e){return t.ALL_PAYMENT_CHANNEL_TYPE[e]}function i(e){let{by:t,items:r,typeKey:a,order:i}=e,s=r.reduce((e,r)=>{let i="type"===t?String(r[a]):r.label;return e[i]||(e[i]=[]),e[i].push(r),e},{});if(!i)return s;let n={};for(let e of i)for(let[t,r]of Object.entries(s))r.some(t=>t.type===e)&&(n[t]=r);for(let[e,t]of Object.entries(s))n[e]||(n[e]=t);return n}function s(e){return e.map(e=>{let r=e.type;return{...e,label:t.USER_PAYMENT_CHANNEL_LABEL[r]}})}function n(e){let{by:r="label",channels:a,order:s=[t.BANK_CHANNEL_TYPE,t.EWALLET_CHANNEL_TYPE,t.MOBILE_OPERATOR_CHANNEL_TYPE]}=e;return i({by:r,items:a,typeKey:"type",order:s})}function o(e){let{by:r="label",channels:a,order:s=[t.BANK_CHANNEL_TYPE,t.EWALLET_CHANNEL_TYPE,t.MOBILE_OPERATOR_CHANNEL_TYPE]}=e;return i({by:r,items:a,typeKey:"type",order:s})}function l(e,t){return e.map(e=>e.replace(/\$amount/g,t.amount).replace(/\$rekening/g,t.rekening))}e.s(["addLabelToUserPaymentChannels",()=>s,"formatAccountNumber",()=>r,"getPaymentChannelType",()=>a,"groupDepositChannels",()=>n,"groupUserPaymentChannels",()=>o,"replaceInstructionVariables",()=>l])},264449,951761,e=>{"use strict";var t=e.i(715311);function r(e,r){return{amount:Number(e.watch(r))||0,handleQuickAmountChange:(0,t.useCallback)(t=>{e.setValue(r,t,{shouldValidate:!0})},[e,r])}}e.s(["useQuickAmount",()=>r],264449);var a=e.i(901858),i=e.i(601950),s=e.i(995671);let n=({label:e,amount:t,onClick:r,activeAmount:n})=>(0,a.jsxs)(s.LXButton,{type:"button",onClick:r,variant:t===n?"quickAmountSelected":"quickAmount",className:"relative min-w-[95px]",children:[t===n&&(0,a.jsx)("div",{className:"absolute z-1 bottom-0 right-0 w-0 h-0 border-b-20 border-b-foreground border-l-20 border-l-transparent",children:(0,a.jsx)("svg",{stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 448 512",className:"absolute z-2 top-2 right-0.5 text-lx-background-500 size-3",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",children:(0,a.jsx)("path",{d:"M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"})})}),"number"==typeof e?(0,i.formatCurrency)(e):e]});e.s(["default",0,({defaultAmounts:e=[25e3,5e4,1e5,25e4,5e5,1e6],maxAmount:t,value:r,onValueChange:i})=>{let s=e=>{i?.(e)};return(0,a.jsxs)("div",{className:"scrollbar-hide flex gap-x-2 overflow-x-scroll",children:[e.map(e=>(0,a.jsx)(n,{activeAmount:r,amount:e,label:e,onClick:()=>s(e)},e)),!!t&&t>0&&(0,a.jsx)(n,{activeAmount:r,amount:t,label:"Max",onClick:()=>s(t)},"max")]})}],951761)},417121,e=>{"use strict";var t=e.i(980566),r=e.i(338554);e.s(["useDepositQuery",0,({config:e={revalidateOnFocus:!1},dto:a,options:i={isValidating:!1},enabled:s=!0})=>{let n=(0,r.default)(s?["/api/deposit",a]:null,([e,r])=>(0,t.getFetcher)(e,r),{...e,refreshInterval:e=>{if(!e?.data||0===e.data.length)return 0;let t=e.data[0];return 1e3*(t?.status==="pending")}});return{deposits:n?.data,depositsError:n?.error,depositsMutate:n?.mutate,depositsLoading:n?.isLoading,...i.isValidating&&{depositsValidating:n?.isValidating}}}])},641164,128163,e=>{"use strict";e.s(["BANK_TRANSFER_METHOD",0,"bank_transfer","PAYMENT_METHOD_LABELS",0,{qris:"Qris",bank_transfer:"Bank Transfer",e_wallet:"E-Wallet",pulsa:"Pulsa",virtual_account:"Virtual Account"},"QRIS_METHOD",0,"qris","VIRTUAL_ACCOUNT_METHOD",0,"virtual_account"],641164);var t=e.i(901858);let r=(0,e.i(591762).default)("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]);var a=e.i(962518),i=e.i(811482),s=e.i(995671);let n=({qrImageSrc:e})=>(0,t.jsxs)("div",{className:"flex flex-col items-center gap-y-3",children:[(0,t.jsxs)("div",{className:"bg-white py-content px-6 rounded-xl flex flex-col gap-y-2 items-center w-full",children:[(0,t.jsx)("p",{className:"capitalize font-semibold text-black",children:"pindai untuk membayar"}),(0,t.jsx)(a.default,{src:e,alt:"qr-code",height:200,width:200})]}),(0,t.jsx)(s.LXButton,{variant:"secondary",asChild:!0,className:"w-min",children:(0,t.jsxs)(i.default,{href:e,download:"qrcode",className:"flex gap-x-2",children:[(0,t.jsx)(r,{height:16,width:16}),(0,t.jsx)("p",{className:"capitalize text-xs",children:"download"})]})})]});e.s(["default",0,({currentStatus:e,qrImageSrc:r})=>(0,t.jsx)(t.Fragment,{children:"pending"===e&&(0,t.jsx)(n,{qrImageSrc:r})})],128163)},580379,e=>{"use strict";var t=e.i(715311),r=e.i(338554),a=e.i(568838),i=e.i(235969),s=e.i(586372),n=e.i(21999),o=e.i(819234),l=e.i(402332),u=e.i(963183);let c=i.IS_REACT_LEGACY?e=>{e()}:t.default.startTransition,d=(0,a.withMiddleware)(r.default,()=>(e,r,i={})=>{let{mutate:d}=(0,a.useSWRConfig)(),f=(0,t.useRef)(e),h=(0,t.useRef)(r),m=(0,t.useRef)(i),p=(0,t.useRef)(0),[x,g,b]=(e=>{let[,r]=(0,t.useState)({}),a=(0,t.useRef)(!1),i=(0,t.useRef)(e),n=(0,t.useRef)({data:!1,error:!1,isValidating:!1}),o=(0,t.useCallback)(e=>{let t=!1,s=i.current;for(let r in e)Object.prototype.hasOwnProperty.call(e,r)&&s[r]!==e[r]&&(s[r]=e[r],n.current[r]&&(t=!0));t&&!a.current&&r({})},[]);return(0,s.useIsomorphicLayoutEffect)(()=>(a.current=!1,()=>{a.current=!0})),[i,n.current,o]})({data:u.UNDEFINED,error:u.UNDEFINED,isMutating:!1}),y=x.current,_=(0,t.useCallback)(async(e,t)=>{let[r,a]=(0,n.serialize)(f.current);if(!h.current)throw Error("Canât trigger the mutation: missing fetcher.");if(!r)throw Error("Canât trigger the mutation: missing key.");let i=(0,o.mergeObjects)((0,o.mergeObjects)({populateCache:!1,throwOnError:!0},m.current),t),s=(0,l.getTimestamp)();p.current=s,b({isMutating:!0});try{let t=await d(r,h.current(a,{arg:e}),(0,o.mergeObjects)(i,{throwOnError:!0}));return p.current<=s&&(c(()=>b({data:t,isMutating:!1,error:void 0})),null==i.onSuccess||i.onSuccess.call(i,t,r,i)),t}catch(e){if(p.current<=s&&(c(()=>b({error:e,isMutating:!1})),null==i.onError||i.onError.call(i,e,r,i),i.throwOnError))throw e}},[]),v=(0,t.useCallback)(()=>{p.current=(0,l.getTimestamp)(),b({data:u.UNDEFINED,error:u.UNDEFINED,isMutating:!1})},[]);return(0,s.useIsomorphicLayoutEffect)(()=>{f.current=e,h.current=r,m.current=i}),{trigger:_,reset:v,get data(){return g.data=!0,y.data},get error(){return g.error=!0,y.error},get isMutating(){return g.isMutating=!0,y.isMutating}}});e.s(["default",()=>d])},78856,e=>{"use strict";var t=e.i(901858),r=e.i(208838),a=e.i(715311);e.s(["default",0,({date:e,showLabels:i=!0,hideLeadingZeroes:s=!0,displayMode:n="default",className:o})=>{let l=new Date(e).getTime(),[u,c]=(0,a.useState)({bulan:0,hari:0,jam:0,menit:0,detik:0}),d=(0,a.useRef)(null),f=(0,a.useCallback)(()=>{let e=l-Date.now();return e<=0?{bulan:0,hari:0,jam:0,menit:0,detik:0}:{bulan:Math.floor(e/2592e6),hari:Math.floor(e/864e5%30),jam:Math.floor(e/36e5%24),menit:Math.floor(e/6e4%60),detik:Math.floor(e/1e3%60)}},[l]);(0,a.useEffect)(()=>{let e=()=>{c(e=>{let t=f();return Object.keys(t).some(r=>t[r]!==e[r])?t:e}),d.current=window.setTimeout(e,1e3)};return e(),()=>{d.current&&clearTimeout(d.current)}},[f]);let h=Object.entries(u).filter(([,e],t,r)=>{if(!s)return!0;let a=r.slice(0,t).every(([,e])=>0===e);return!(0===e&&a)});return"text"===n?(0,t.jsx)("div",{className:(0,r.cn)("flex items-center h-5",o),children:h.filter(([e])=>"detik"!==e).map(([e,r])=>(0,t.jsxs)(a.default.Fragment,{children:[(0,t.jsx)("span",{className:"text-xs font-semibold",children:r}),(0,t.jsx)("span",{className:"text-xs font-normal text-muted-foreground ml-[2px] mr-1",children:e})]},e))}):(0,t.jsx)("div",{className:(0,r.cn)("flex items-center",o),children:h.map(([e,r],s)=>(0,t.jsxs)(a.default.Fragment,{children:[(0,t.jsxs)("div",{className:"flex flex-col items-center w-7 text-xs",children:[(0,t.jsx)("div",{className:"w-5 h-5 flex items-center justify-center rounded-sm bg-countdownTimer",children:r}),i&&(0,t.jsx)("p",{className:"text-muted-foreground capitalize text-[10px]",children:e})]}),s<h.length-1&&(0,t.jsx)("div",{className:"px-0.5",children:":"})]},e))})}])},651898,537965,e=>{"use strict";var t=e.i(980566),r=e.i(338554);e.s(["useCashbackList",0,({config:e={revalidateOnFocus:!0,refreshInterval:0},options:a={isValidating:!1},enabled:i=!0})=>{let s=(0,r.default)(i?"/api/cashback/list":null,t.getFetcher,e);return{cashbackList:s?.data?.data??[],cashbackListError:s?.error,cashbackListMutate:s?.mutate,cashbackListLoading:s?.isLoading,...a.isValidating&&{cashbackListValidating:s?.isValidating}}}],651898);var a=e.i(580379);e.s(["useClaimCashback",0,({config:e})=>{let{trigger:r,isMutating:i,data:s,error:n,reset:o}=(0,a.default)("/api/cashback/claim",t.postFetcher,e);return{claimCashback:r,claimCashbackMutating:i,claimCashbackData:s?.data,claimCashbackError:n,claimCashbackReset:o}}],537965)},98696,360929,272519,e=>{"use strict";var t=e.i(980566),r=e.i(338554);e.s(["useOngoingFreeRound",0,({provider:e,enabled:a=!0,config:i={revalidateOnFocus:!1,refreshInterval:0},options:s={isValidating:!1}})=>{let n=(0,r.default)(a?`/api/games/ongoing-free-round?provider=${e}`:null,t.getFetcher,i);return{ongoingFreeRound:n.data,ongoingFreeRoundError:n.error,ongoingFreeRoundMutate:n.mutate,ongoingFreeRoundLoading:n.isLoading,...s.isValidating&&{ongoingFreeRoundValidating:n.isValidating}}}],98696);var a=e.i(901858),i=e.i(537965),s=e.i(601950),n=e.i(920509),o=e.i(726940),l=e.i(78856),u=e.i(941261),c=e.i(208838),d=e.i(962518);let f={menu:{width:0,height:34,imageClass:"w-full max-h-[34px] object-contain"},marquee:{width:126,height:28,imageClass:"max-w-[126px] h-[28px] object-contain"},filter:{width:58,height:24,imageClass:"max-w-[58px] h-6 object-contain"},"list-provider":{width:100,height:20,imageClass:"max-w-[100px] h-5 object-contain"}},h=({name:e,src:t,variant:r="menu",className:i})=>{if(!t)return null;let s=f[r];return(0,a.jsx)(d.default,{alt:`Provider-${e}`,src:t,width:s.width?s.width:0,height:s.height?s.height:0,className:(0,
9c.cn)(s.imageClass,i)})},m=({name:e,variant:t="menu",className:r,fallback:i=null})=>{let s=(0,u.useProviderImage)(e,"default");return s?(0,a.jsx)(h,{name:e,src:s,variant:t,className:r}):i};e.s(["default",0,m],360929);var p=e.i(995671),x=e.i(905274);e.s(["default",0,({provider:e,cashback:t,gameType:r,startDate:u,endDate:c,createdAt:d,showCountdown:f=!1,onClaim:h})=>{let g=(0,o.useLocale)(),{claimCashback:b,claimCashbackMutating:y}=(0,i.useClaimCashback)({}),_=async()=>{let i=await b({provider:e,game_type:r});i?.data?.success?(0,x.LXToast)("bonus-notification",(0,a.jsxs)("span",{className:"text-warning-main",children:["Rp",(0,s.formatNumber)(t)," telah dikreditkan ke saldo anda"]}),{id:"claimed_cashback"}):(0,x.LXToast)("error","Terjadi kesalahan saat klaim"),await h?.()};return(0,a.jsxs)("div",{className:"rounded-md border border-border",children:[(0,a.jsxs)("div",{className:"flex justify-between items-center gap-x-3 rounded-md bg-bonus-popover-card p-2 border border-border",children:[(0,a.jsxs)("div",{className:"grow-1 flex items-center gap-x-2",children:[(0,a.jsx)(m,{name:e,variant:"menu",className:"w-10"}),(0,a.jsx)("span",{className:"grow-1 font-semibold text-xs capitalize",children:e})]}),(0,a.jsx)("span",{className:"bg-(image:--bonus-popover-nominal) bg-clip-text text-transparent text-xs font-semibold",children:(0,s.formatCurrency)(t)}),(0,a.jsx)(p.LXButton,{variant:"primary",size:"sm",className:"text-xs",disabled:y,onClick:_,children:"Klaim"})]}),f&&(0,a.jsxs)("div",{className:"flex justify-between items-center px-2 py-1.5",children:[(0,a.jsxs)("span",{className:"text-2xs text-muted-foreground",children:["Periode"," ",u!==c&&`${n.DateTime.fromISO(u).setLocale(g).toFormat("dd")} - `,n.DateTime.fromISO(c).setLocale(g).toFormat("dd LLLL yyyy")]}),(0,a.jsx)(l.default,{date:n.DateTime.fromISO(d).plus({days:7}).toISO()||"",displayMode:"text",hideLeadingZeroes:!0})]})]})}],272519)},594302,e=>{"use strict";var t=e.i(901858),r=e.i(715311),a=e.i(274644);let i={some:0,all:1};var s=e.i(601950),n=e.i(944594),o=e.i(178163),l=e.i(997210);function u(e){let t=(0,l.useConstant)(()=>(0,n.motionValue)(e)),{isStatic:a}=(0,r.useContext)(o.MotionConfigContext);if(a){let[,a]=(0,r.useState)(e);(0,r.useEffect)(()=>t.on("change",a),[])}return t}var c=e.i(475580),d=e.i(849767),f=e.i(105233);function h(e){return"number"==typeof e?e:parseFloat(e)}var m=e.i(981539),p=e.i(138040);function x(e,t){let r=u(t()),a=()=>r.set(t());return a(),(0,p.useIsomorphicLayoutEffect)(()=>{let t=()=>f.frame.preRender(a,!1,!0),r=e.map(e=>e.on("change",t));return()=>{r.forEach(e=>e()),(0,f.cancelFrame)(a)}}),r}function g(e,t){let r=(0,l.useConstant)(()=>[]);return x(e,()=>{r.length=0;let a=e.length;for(let t=0;t<a;t++)r[t]=e[t].get();return t(r)})}function b({ref:e,number:p,fromNumber:b=0,padStart:y=!1,inView:_=!1,inViewMargin:v="0px",inViewOnce:j=!0,decimalSeparator:k=".",transition:A={stiffness:90,damping:50},decimalPlaces:w=0,delay:S=0,initiallyStable:C=!1,...B}){let{ref:M,isInView:I}=function(e,t={}){let{inView:s,inViewOnce:n=!1,inViewMargin:o="0px"}=t,l=r.useRef(null);r.useImperativeHandle(e,()=>l.current);let u=function(e,{root:t,margin:s,amount:n,once:o=!1,initial:l=!1}={}){let[u,c]=(0,r.useState)(l);return(0,r.useEffect)(()=>{if(!e.current||o&&u)return;let r={root:t&&t.current||void 0,margin:s,amount:n};return function(e,t,{root:r,margin:s,amount:n="some"}={}){let o=(0,a.resolveElements)(e),l=new WeakMap,u=new IntersectionObserver(e=>{e.forEach(e=>{let r=l.get(e.target);if(!!r!==e.isIntersecting)if(e.isIntersecting){let r=t(e.target,e);"function"==typeof r?l.set(e.target,r):u.unobserve(e.target)}else"function"==typeof r&&(r(e),l.delete(e.target))})},{root:r,rootMargin:s,threshold:"number"==typeof n?n:i[n]});return o.forEach(e=>u.observe(e)),()=>u.disconnect()}(e.current,()=>(c(!0),o?void 0:()=>c(!1)),r)},[t,e,s,o,n]),u}(l,{once:n,margin:o});return{ref:l,isInView:!s||u}}(e,{inView:_,inViewOnce:j,inViewMargin:v}),E=p.toString(),N="number"==typeof w?w:E.includes(".")?E.split(".")[1]?.length??0:0,O=u(C?p:b),F=function(e,t={}){return function(e,t={}){let{isStatic:a}=(0,r.useContext)(o.MotionConfigContext),i=()=>(0,d.isMotionValue)(e)?e.get():e;
9if(a)return function e(t,r,a,i){if("function"==typeof t){let e;return n.collectMotionValues.current=[],t(),e=x(n.collectMotionValues.current,t),n.collectMotionValues.current=void 0,e}if(void 0!==a&&!Array.isArray(a)&&"function"!=typeof r){var s=t,o=r,u=a,c=i;let n=(0,l.useConstant)(()=>Object.keys(u)),d=(0,l.useConstant)(()=>({}));for(let t of n)d[t]=e(s,o,u[t],c);return d}let d="function"==typeof r?r:function(...e){let t=!Array.isArray(e[0]),r=t?0:-1,a=e[0+r],i=e[1+r],s=e[2+r],n=e[3+r],o=(0,m.interpolate)(i,s,n);return t?o(a):o}(r,a,i),f=Array.isArray(t)?g(t,d):g([t],([e])=>d(e)),h=Array.isArray(t)?void 0:t.accelerate;return h&&!h.isTransformed&&"function"!=typeof r&&Array.isArray(a)&&i?.clamp!==!1&&(f.accelerate={...h,times:r,keyframes:a,isTransformed:!0,...i?.ease?{ease:i.ease}:{}}),f}(i);let s=u(i());return(0,r.useInsertionEffect)(()=>(function(e,t,r={}){let a,i=e.get(),s=null,n=i,o="string"==typeof i?i.replace(/[\d.-]/g,""):void 0,l=()=>{s&&(s.stop(),s=null)};if(e.attach((t,i)=>{n=t,a=e=>{var t,r;return i((t=e,(r=o)?t+r:t))},f.frame.postRender(()=>{let t,i;l(),t=h(e.get()),t!==(i=h(n))&&(s=new c.JSAnimation({keyframes:[t,i],velocity:e.getVelocity(),type:"spring",restDelta:.001,restSpeed:.01,...r,onUpdate:a})),e.events.animationStart?.notify(),s?.then(()=>{e.events.animationComplete?.notify()})})},l),(0,d.isMotionValue)(t)){let r=t.on("change",t=>{var r,a;return e.set((r=t,(a=o)?r+a:r))}),a=e.on("destroy",r);return()=>{r(),a()}}return l})(s,e,t),[s,JSON.stringify(t)]),s}(e,{type:"spring",...t})}(O,A);r.useEffect(()=>{let e=setTimeout(()=>{I&&O.set(p)},S);return()=>clearTimeout(e)},[I,p,O,S]),r.useEffect(()=>{let e=F.on("change",e=>{if(M.current){let t=N>0?e.toFixed(N):Math.floor(e).toString();if(N>0&&(t=t.replace(".",k)),y){let e=Math.floor(Math.abs(p)).toString().length,[r,a]=t.split(k),i=r?.padStart(e,"0")??"";t=a?`${i}${k}${a}`:i}M.current.textContent=(0,s.formatBalance)(Number(t))}});return()=>e()},[F,N,y,p,k,M]);let R=Math.floor(Math.abs(p)).toString().length,L=y?"0".padStart(R,"0")+(N>0?k+"0".repeat(N):""):`0${N>0?k+"0".repeat(N):""}`,T=C?(e=>{let t=N>0?e.toFixed(N):Math.floor(e).toString();if(N>0&&(t=t.replace(".",k)),y){let[e,r]=t.split(k),a=(e??"").padStart(R,"0");t=r?`${a}${k}${r}`:a}return(0,s.formatBalance)(Number(t))})(p):L;return(0,t.jsx)("span",{ref:M,"data-slot":"counting-number",...B,children:T})}e.s(["CountingNumber",()=>b],594302)},276748,e=>{"use strict";var t={success:{pattern:[{duration:30,intensity:.5},{delay:60,duration:40,intensity:1}]},warning:{pattern:[{duration:40,intensity:.8},{delay:100,duration:40,intensity:.6}]},error:{pattern:[{duration:40,intensity:.9},{delay:40,duration:40,intensity:.9},{delay:40,duration:40,intensity:.9}]},light:{pattern:[{duration:15,intensity:.4}]},medium:{pattern:[{duration:25,intensity:.7}]},heavy:{pattern:[{duration:35,intensity:1}]},soft:{pattern:[{duration:40,intensity:.5}]},rigid:{pattern:[{duration:10,intensity:1}]},selection:{pattern:[{duration:8,intensity:.3}]},nudge:{pattern:[{duration:80,intensity:.8},{delay:80,duration:50,intensity:.3}]},buzz:{pattern:[{duration:1e3,intensity:1}]}},r=0,a=class e{hapticLabel=null;domInitialized=!1;instanceId;debug;showSwitch;rafId=null;patternResolve=null;audioCtx=null;audioFilter=null;audioGain=null;audioBuffer=null;constructor(e){this.instanceId=++r,this.debug=e?.debug??!1,this.showSwitch=e?.showSwitch??!1}static isSupported="u">typeof navigator&&"function"==typeof navigator.vibrate;async trigger(r=[{duration:25,intensity:.7}],a){let i=function(e){if("number"==typeof e)return{vibrations:[{duration:e}]};if("string"==typeof e){let r=t[e];return r?{vibrations:r.pattern.map(e=>({...e}))}:(console.warn(`[web-haptics] Unknown preset: "${e}"`),null)}if(Array.isArray(e)){if(0===e.length)return{vibrations:[]};if("number"==typeof e[0]){let t=[];for(let r=0;r<e.length;r+=2){let a=r>0?e[r-1]:0;t.push({...a>0&&{delay:a},duration:e[r]})}return{vibrations:t}}return{vibrations:e.map(e=>({...e}))}}return{vibrations:e.pattern.map(e=>({...e}))}}(r);if(!i)return;let{vibrations:s}=i;if(0===s.length)return;let n=Math.max(0,Math.min(1,a?.intensity??.5));for(let e of s)if(e.duration>1e3&&(e.duration=1e3),!Number.isFinite(e.duration)||e.duration<0||void 0!==e.delay&&(!Number.isFinite(e.delay)||e.delay<0))return void console.warn("[web-haptics] Invalid vibration values. Durations and delays must be finite non-negative numbers.");if(e.isSupported&&navigator.vibrate(function(e,t){let r=[];for(let a=0;a<e.length;a++){let i=e[a],s=Math.max(0,Math.min(1,i.intensity??t)),n=i.delay??0;n>0&&(r.length>0&&r.length%2==0?r[r.length-1]+=n:(0===r.length&&r.push(0),r.push(n)));let o=function(e,t){if(t>=1)return[e];if(t<=0)return[];let r=Math.max(1,Math.round(20*t)),a=20-r,i=[],s=e;for(;s>=20;)i.push(r),i.push(a),s-=20;if(s>0){let e=Math.max(1,Math.round(s*t));i.push(e);let r=s-e;r>0&&i.push(r)}return i}(i.duration,s);if(0===o.length){r.length>0&&r.length%2==0?r[r.length-1]+=i.duration:i.duration>0&&(r.push(0),r.push(i.duration));continue}for(let e of o)r.push(e)}return r}(s,n)),!e.isSupported||this.debug){if(this.ensureDOM(),!this.hapticLabel)return;this.debug&&await this.ensureAudio(),this.stopPattern();let e=(s[0]?.delay??0)===0;if(e&&(this.hapticLabel.click(),this.debug&&this.audioCtx)){let e=Math.max(0,Math.min(1,s[0].intensity??n));this.playClick(e)}await this.runPattern(s,n,e)}}cancel(){this.stopPattern(),e.isSupported&&navigator.vibrate(0)}destroy(){this.stopPattern(),this.hapticLabel&&(this.hapticLabel.remove(),this.hapticLabel=null,this.domInitialized=!1),this.audioCtx&&(this.audioCtx.close(),this.audioCtx=null,this.audioFilter=null,this.audioGain=null,this.audioBuffer=null)}setDebug(e){this.debug=e,!e&&this.audioCtx&&(this.audioCtx.close(),this.audioCtx=null,this.audioFilter=null,this.audioGain=null,this.audioBuffer=null)}setShowSwitch(e){if(this.showSwitch=e,this.hapticLabel){let t=this.hapticLabel.querySelector("input");this.hapticLabel.style.display=e?"":"none",t&&(t.style.display=e?"":"none")}}stopPattern(){null!==this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=null),this.patternResolve?.(),this.patternResolve=null}runPattern(e,t,r){return new Promise(a=>{this.patternResolve=a;let i=[],s=0;for(let r of e){let e=Math.max(0,Math.min(1,r.intensity??t)),a=r.delay??0;a>0&&(s+=a,i.push({end:s,isOn:!1,intensity:0})),s+=r.duration,i.push({end:s,isOn:!0,intensity:e})}let n=s,o=0,l=-1,u=e=>{0===o&&(o=e);let t=e-o;if(t>=n){this.rafId=null,this.patternResolve=null,a();return}let s=i[0];for(let e of i)if(t<e.end){s=e;break}if(s.isOn){let t=16+(1-s.intensity)*184;-1===l?(l=e,r||(this.hapticLabel?.click(),this.debug&&this.audioCtx&&this.playClick(s.intensity),r=!0)):e-l>=t&&(this.hapticLabel?.click(),this.debug&&this.audioCtx&&this.playClick(s.intensity),l=e)}this.rafId=requestAnimationFrame(u)};this.rafId=requestAnimationFrame(u)})}playClick(e){if(!this.audioCtx||!this.audioFilter||!this.audioGain||!this.audioBuffer)return;let t=this.audioBuffer.getChannelData(0);for(let e=0;e<t.length;e++)t[e]=(2*Math.random()-1)*Math.exp(-e/25);this.audioGain.gain.value=.5*e;let r=1+(Math.random()-.5)*.3;this.audioFilter.frequency.value=(2e3+2e3*e)*r;let a=this.audioCtx.createBufferSource();a.buffer=this.audioBuffer,a.connect(this.audioFilter),a.onended=()=>a.disconnect(),a.start()}async ensureAudio(){if(!this.audioCtx&&"u">typeof AudioContext){this.audioCtx=new AudioContext,this.audioFilter=this.audioCtx.createBiquadFilter(),this.audioFilter.type="bandpass",this.audioFilter.frequency.value=4e3,this.audioFilter.Q.value=8,this.audioGain=this.audioCtx.createGain(),this.audioFilter.connect(this.audioGain),this.audioGain.connect(this.audioCtx.destination),this.audioBuffer=this.audioCtx.createBuffer(1,.004*this.audioCtx.sampleRate,this.audioCtx.sampleRate);let e=this.audioBuffer.getChannelData(0);for(let t=0;t<e.length;t++)e[t]=(2*Math.random()-1)*Math.exp(-t/25)}this.audioCtx?.state==="suspended"&&await this.audioCtx.resume()}ensureDOM(){if(this.domInitialized||typeof document>"u")return;let e=`web-haptics-${this.instanceId}`,t=document.createElement("label");t.setAttribute("for",e),t.textContent="Haptic feedback",t.style.position="fixed",t.style.bottom="10px",t.style.left="10px",t.style.padding="5px 10px",t.style.backgroundColor="rgba(0, 0, 0, 0.7)",t.style.color="white",t.style.fontFamily="sans-serif",t.style.fontSize="14px",t.style.borderRadius="4px",t.style.zIndex="9999",t.style.userSelect="none",this.hapticLabel=t;let r=document.createElement("input");r.type="checkbox",r.setAttribute("switch",""),r.id=e,r.style.all="initial",r.style.appearance="auto",this.showSwitch||(t.style.display="none",r.style.display="none"),t.appendChild(r),document.body.appendChild(t),this.domInitialized=!0}};e.s(["WebHaptics",()=>a],276748)},578118,e=>{"use strict";var t=e.i(901858);let r={1:(0,t.jsxs)("filter",{id:"filter0_d_29354_104842",x:"0",y:"0",width:"19.9375",height:"19.9375",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"Backgroun
9dImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29354_104842"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29354_104842",result:"shape"})]}),2:(0,t.jsxs)("filter",{id:"filter0_d_29528_113275",x:"0.153839",y:"0.692261",width:"15.6923",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.800827 0 0 0 0 0.610918 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29528_113275"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29528_113275",result:"shape"})]}),3:(0,t.jsxs)("filter",{id:"filter0_d_29534_168790",x:"0.153839",y:"0.692261",width:"15.6923",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.800827 0 0 0 0 0.610918 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29534_168790"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29534_168790",result:"shape"})]}),4:(0,t.jsxs)("filter",{id:"filter0_d_29539_232177",x:"0.153839",y:"0.692261",width:"15.6923",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.800827 0 0 0 0 0.610918 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_232177"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_232177",result:"shape"})]}),5:(0,t.jsxs)("filter",{id:"filter0_d_29539_290912",x:"0.153839",y:"0.692261",width:"15.6923",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.750667 0 0 0 0 0.66 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_290912"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_290912",result:"shape"})]}),6:(0,t.jsxs)("filter",{id:"filter0_d_29539_323389",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.79249 0 0 0 0 0.610918 0 0 0 1 0"}
9),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_323389"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_323389",result:"shape"})]}),7:(0,t.jsxs)("filter",{id:"filter0_d_29539_357462",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.750667 0 0 0 0 0.66 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_357462"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_357462",result:"shape"})]}),8:(0,t.jsxs)("filter",{id:"filter0_d_29539_419938",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.610918 0 0 0 0 0.811944 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_419938"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_419938",result:"shape"})]}),9:(0,t.jsxs)("filter",{id:"filter0_d_29539_467842",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.610918 0 0 0 0 0.811944 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_467842"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_467842",result:"shape"})]}),10:(0,t.jsxs)("filter",{id:"filter0_d_29539_496123",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.66 0 0 0 0 0.699667 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_496123"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_496123",result:"shape"})]}),11:(0,t.jsxs)("filter",{id:"filter0_d_29539_568616",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.818667 0 0 0 0 0.66 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_568616"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_568616",result:"shape"})]}),12:(0,t.jsxs)("filter",{id:"filter0_d_29539_755815",x:"0.15387",y:"0.692261",width:"15.6923",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"Backgroun
9dImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.610918 0 0 0 0 0.753582 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_755815"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_755815",result:"shape"})]}),13:(0,t.jsxs)("filter",{id:"filter0_d_29539_598416",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.66 0 0 0 0 0.745 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_598416"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_598416",result:"shape"})]}),14:(0,t.jsxs)("filter",{id:"filter0_d_29539_662379",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.784667 0 0 0 0 0.66 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_662379"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_662379",result:"shape"})]}),15:(0,t.jsxs)("filter",{id:"filter0_d_29539_707943",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.66 0 0 0 0 0.745 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_707943"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_707943",result:"shape"})]}),16:(0,t.jsxs)("filter",{id:"filter0_d_29539_806021",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.66 0 0 0 0 0.988667 0 0 0 0 1 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29539_806021"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29539_806021",result:"shape"})]}),17:(0,t.jsxs)("filter",{id:"filter0_d_31859_92148",x:"0.153839",y:"0.692261",width:"15.6923",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.66 0 0 0 0 0.699667 0 0 0 1 0"}
9),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_31859_92148"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_31859_92148",result:"shape"})]}),18:(0,t.jsxs)("filter",{id:"filter0_d_31859_164507",x:"0.153839",y:"0.692261",width:"15.6923",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 0.66 0 0 0 0 1 0 0 0 0 0.852667 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_31859_164507"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_31859_164507",result:"shape"})]}),19:(0,t.jsxs)("filter",{id:"filter0_d_29542_827445",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.701704 0 0 0 0 0.610918 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29542_827445"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29542_827445",result:"shape"})]}),20:(0,t.jsxs)("filter",{id:"filter0_d_29544_22050",x:"0.154297",y:"0.692261",width:"15.6924",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.66 0 0 0 0 0.699667 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_29544_22050"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_29544_22050",result:"shape"})]}),21:(0,t.jsxs)("filter",{id:"filter0_d_31859_220458",x:"0.153839",y:"0.692261",width:"15.6923",height:"15.6923",filterUnits:"userSpaceOnUse",colorInterpolationFilters:"sRGB",children:[(0,t.jsx)("feFlood",{floodOpacity:"0",result:"BackgroundImageFix"}),(0,t.jsx)("feColorMatrix",{in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),(0,t.jsx)("feOffset",{dy:"1"}),(0,t.jsx)("feGaussianBlur",{stdDeviation:"1"}),(0,t.jsx)("feColorMatrix",{type:"matrix",values:"0 0 0 0 1 0 0 0 0 0.66 0 0 0 0 0.699667 0 0 0 1 0"}),(0,t.jsx)("feBlend",{mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_31859_220458"}),(0,t.jsx)("feBlend",{mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_31859_220458",result:"shape"})]})};var a=e.i(208838),i=e.i(715311),s=e.i(276748),n=e.i(622243);let o=({theme:e})=>(0,t.jsxs)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,t.jsx)("g",{children:(0,t.jsx)("path",{d:"M8.61648 16.9375V1H11.321V16.9375H8.61648ZM2 10.321V7.61648H17.9375V10.321H2Z",fill:"currentColor"})}),(0,t.jsx)("defs",{children:r[e]||null})]});e.s(["default",0,({className:e,children:r,theme:l,onClick:u,...c})=>{let d=(0,i.useRef)(null);return(0,t.jsx)(n.Button,{asChild:!0,variant:"ghost",size:null,...c,onClick:e=>{d.current??=new s.WebHaptics,d.current.trigger([{duration:40}]),u?.(e)},className:"cursor-pointer",children:(0,t.jsxs)("div",{className:(0,a.cn)("relative deposit_button",e),children:[(0,t.jsxs)("div",{className:"size-9.5 p-2.5 relative rounded-lg deposit_button_main z-0 flex justify-center items-center gap-x-1",children:[(0,t.jsx)(o,{theme:l}),r]}),(0,t.jsx)("div",{className:"size-9.5 rounded-lg absolute left-0 deposit_button_bottom top-[3px] -z-1"})]})})}],578118)}]);
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.