@kanorio/elements 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -1
- package/dist/AudioPlayer-DKUAB5KE.js +2 -0
- package/dist/AudioPlayer-S7YF7A2E.js +2 -0
- package/dist/CustomerAccountPanel-DJKV7LT4.js +2 -0
- package/dist/CustomerAccountPanel-RWEHWBJY.js +2 -0
- package/dist/FormAddressField-C6VN7J6I.js +2 -0
- package/dist/FormAddressField-QR7ZCH77.js +2 -0
- package/dist/FormChoiceDropdown-SJXD26CC.js +2 -0
- package/dist/FormChoiceDropdown-U3NIOOHG.js +2 -0
- package/dist/FormFileField-LZDCXI2Z.js +2 -0
- package/dist/FormFileField-ONL4Q55V.js +2 -0
- package/dist/FormTaxIdField-K34MDUPW.js +2 -0
- package/dist/FormTaxIdField-XMK5WRQO.js +2 -0
- package/dist/KanorioAccount-EN3TM67X.js +2 -0
- package/dist/KanorioAccount-XGVSGVYN.js +2 -0
- package/dist/KanorioAnalytics-NEKTFQEE.js +2 -0
- package/dist/KanorioAnalytics-UMCUWQM7.js +2 -0
- package/dist/KanorioCurriculum-3QSCOHK7.js +2 -0
- package/dist/KanorioCurriculum-RUIGZ5X7.js +2 -0
- package/dist/KanorioForm-GUA5GEJY.js +2 -0
- package/dist/KanorioForm-KXV7D2TU.js +2 -0
- package/dist/KanorioLightbox-M72HNQQX.js +2 -0
- package/dist/KanorioLightbox-TQ3Q73TD.js +2 -0
- package/dist/KanorioLogin-5XFN3YEE.js +2 -0
- package/dist/KanorioLogin-AJHHVQGV.js +2 -0
- package/dist/KanorioMedia-ADKUDH5C.js +2 -0
- package/dist/KanorioMedia-DLBSXCKA.js +2 -0
- package/dist/KanorioReviews-42FZSXTI.js +2 -0
- package/dist/KanorioReviews-7LD5WKFG.js +2 -0
- package/dist/KanorioUnit-NWBX5DEI.js +2 -0
- package/dist/KanorioUnit-SIM3344J.js +2 -0
- package/dist/MediaPlayer-F43FPK4E.js +2 -0
- package/dist/MediaPlayer-JHFZFOOG.js +2 -0
- package/dist/{PDFViewerFull-KMUVT2BL.js → PDFViewerFull-CB44M7GW.js} +3 -3
- package/dist/{PDFViewerFull-FBLYNUDX.js → PDFViewerFull-INVHZL4V.js} +2 -2
- package/dist/VideoPlayer-FWZF4DQK.js +2 -0
- package/dist/VideoPlayer-LNS7XJ4C.js +2 -0
- package/dist/account.d.ts +165 -0
- package/dist/account.js +2 -0
- package/dist/analytics.d.ts +44 -0
- package/dist/analytics.js +2 -0
- package/dist/bot-protection.d.ts +297 -0
- package/dist/bot-protection.js +2 -0
- package/dist/chunk-2E6RCDAA.js +2 -0
- package/dist/chunk-2FSD3N7F.js +6 -0
- package/dist/chunk-2J5XQK4H.js +2 -0
- package/dist/chunk-2LOQXVFI.js +2 -0
- package/dist/chunk-2ONAW3CA.js +2 -0
- package/dist/chunk-33AQQY6T.js +69 -0
- package/dist/chunk-36YEGBKK.js +2 -0
- package/dist/chunk-4BBERZ6T.js +2 -0
- package/dist/chunk-4BEKWYEW.js +2 -0
- package/dist/chunk-4DPSNQEI.js +2 -0
- package/dist/chunk-4KA3HSRQ.js +2 -0
- package/dist/chunk-4MOCTNN7.js +2 -0
- package/dist/chunk-5AUWUK5R.js +2 -0
- package/dist/chunk-5G3PQI25.js +2 -0
- package/dist/chunk-5HWAL7VK.js +2 -0
- package/dist/chunk-63XJWMJG.js +2 -0
- package/dist/chunk-66XN5RR4.js +2 -0
- package/dist/chunk-6RZBXZFP.js +2 -0
- package/dist/chunk-763LNERD.js +2 -0
- package/dist/chunk-7XWBVRXP.js +15 -0
- package/dist/chunk-A4DPHHAP.js +42 -0
- package/dist/chunk-AF46NLXK.js +2 -0
- package/dist/chunk-AFNEGNVJ.js +2 -0
- package/dist/chunk-AQ6F6MIJ.js +2 -0
- package/dist/chunk-ARU5PTJV.js +2 -0
- package/dist/chunk-B7KLKVIM.js +2 -0
- package/dist/chunk-BGVTMWPN.js +2 -0
- package/dist/chunk-BKNL7ZCI.js +2 -0
- package/dist/chunk-BU7KUHZK.js +8 -0
- package/dist/chunk-C7HUM2EN.js +2 -0
- package/dist/chunk-CU2JJTXI.js +2 -0
- package/dist/{chunk-5U2SZE3H.js → chunk-CUQUEGX2.js} +2 -2
- package/dist/chunk-D7K3YCBR.js +2 -0
- package/dist/chunk-DLJDYXKL.js +2 -0
- package/dist/chunk-DTBRUBPG.js +2 -0
- package/dist/chunk-E77WGXYW.js +2 -0
- package/dist/chunk-EE4S6NRV.js +3 -0
- package/dist/chunk-ET57PWXC.js +2 -0
- package/dist/chunk-EZMTUAQX.js +2 -0
- package/dist/chunk-FFAWYDLJ.js +2 -0
- package/dist/chunk-FQCA2VGY.js +2 -0
- package/dist/chunk-FSY5GB5E.js +3 -0
- package/dist/chunk-G4U6BFZY.js +2 -0
- package/dist/chunk-GJY6AQIS.js +2 -0
- package/dist/chunk-GMW7AUSG.js +2 -0
- package/dist/chunk-GZCED6V3.js +2 -0
- package/dist/chunk-H2XQYT62.js +2 -0
- package/dist/chunk-H7VP4BYY.js +2 -0
- package/dist/chunk-HFYLTH5B.js +2 -0
- package/dist/chunk-IAXVJLJ3.js +2 -0
- package/dist/chunk-IXDKZO42.js +2 -0
- package/dist/chunk-J37D44SX.js +2 -0
- package/dist/chunk-JH5D6YJX.js +2 -0
- package/dist/chunk-JREL5347.js +2 -0
- package/dist/chunk-K2XZKV3Q.js +2 -0
- package/dist/chunk-K4VRRKYJ.js +2 -0
- package/dist/chunk-KBKDMTYF.js +2 -0
- package/dist/chunk-KDNGDR64.js +2 -0
- package/dist/chunk-KNNN5V3T.js +2 -0
- package/dist/chunk-LWKCGUHS.js +2 -0
- package/dist/chunk-LWRWKZBC.js +2 -0
- package/dist/chunk-LXNMHQFN.js +2 -0
- package/dist/chunk-MC63CLSM.js +2 -0
- package/dist/chunk-MIQK3T3Y.js +2 -0
- package/dist/chunk-MQ7PBFUM.js +4 -0
- package/dist/chunk-MWPRTK32.js +2 -0
- package/dist/chunk-MXGMJAWS.js +2 -0
- package/dist/chunk-N4BGAMWD.js +2 -0
- package/dist/chunk-N5PIQM4L.js +3 -0
- package/dist/chunk-NBDRYQZV.js +2 -0
- package/dist/chunk-NGRNPVON.js +2 -0
- package/dist/chunk-NSY72ZYX.js +15 -0
- package/dist/chunk-O2SYHUQF.js +2 -0
- package/dist/chunk-OIKRLEW6.js +2 -0
- package/dist/chunk-OTK4YNSG.js +2 -0
- package/dist/chunk-OU4IOHLN.js +15 -0
- package/dist/chunk-PR2NRUEI.js +2 -0
- package/dist/chunk-QGR3QAQB.js +3 -0
- package/dist/chunk-QOQQCCID.js +2 -0
- package/dist/chunk-RG5JA44V.js +2 -0
- package/dist/chunk-RKEHHJDU.js +2 -0
- package/dist/chunk-S2NFWI7C.js +69 -0
- package/dist/chunk-S7FE2XRA.js +2 -0
- package/dist/chunk-SUXTLVTX.js +2 -0
- package/dist/chunk-SVWEVSYJ.js +2 -0
- package/dist/chunk-TEUQV3AT.js +2 -0
- package/dist/chunk-U7H3W23Q.js +2 -0
- package/dist/chunk-U7KVGD47.js +2 -0
- package/dist/chunk-UIHBR4NU.js +3 -0
- package/dist/chunk-UM74DXPE.js +2 -0
- package/dist/chunk-VKSYPXNL.js +2 -0
- package/dist/chunk-VUTODQFX.js +2 -0
- package/dist/chunk-VYSRVTYI.js +2 -0
- package/dist/chunk-W32ZFOPN.js +2 -0
- package/dist/chunk-W63RJF6Q.js +2 -0
- package/dist/chunk-WM5S3YN5.js +2 -0
- package/dist/chunk-WP7UEAIB.js +2 -0
- package/dist/chunk-WXIUWMFR.js +2 -0
- package/dist/chunk-Z4A5NQWJ.js +2 -0
- package/dist/chunk-Z4OV6QHI.js +2 -0
- package/dist/curriculum.d.ts +20 -0
- package/dist/curriculum.js +2 -0
- package/dist/deliverables-BDS7WMBC.js +99 -0
- package/dist/deliverables-C5RD2ASE.js +131 -0
- package/dist/elements.css +1 -1
- package/dist/events-CJeBru-H.d.ts +11 -0
- package/dist/form.d.ts +775 -0
- package/dist/form.js +2 -0
- package/dist/forms-answers-address-7P6EVFY5.js +2 -0
- package/dist/forms-answers-address-IQV2Y56H.js +2 -0
- package/dist/forms-answers-phone-2VZ46OME.js +2 -0
- package/dist/forms-answers-phone-5PUB5WKD.js +2 -0
- package/dist/forms-answers-tax-id-D4GOUC6N.js +2 -0
- package/dist/forms-answers-tax-id-WJD7K3PG.js +2 -0
- package/dist/index.d.ts +17 -3045
- package/dist/index.js +1 -1
- package/dist/kanorio-elements.js +9 -73
- package/dist/lightbox-DEvsB5dB.d.ts +100 -0
- package/dist/lightbox.d.ts +5 -0
- package/dist/lightbox.js +2 -0
- package/dist/login.d.ts +14 -0
- package/dist/login.js +2 -0
- package/dist/media.d.ts +85 -0
- package/dist/media.js +2 -0
- package/dist/phone-input-Q5AV6KSW.js +2 -0
- package/dist/phone-input-T6QX2TDS.js +2 -0
- package/dist/provider-CMLzyAjJ.d.ts +1277 -0
- package/dist/provider.d.ts +4 -0
- package/dist/provider.js +2 -0
- package/dist/reviews.d.ts +42 -0
- package/dist/reviews.js +2 -0
- package/dist/unit.d.ts +118 -0
- package/dist/unit.js +2 -0
- package/dist/{vidstack-BmcqUMKx-XYI2YLUH.js → vidstack-BmcqUMKx-FXVV4FRB.js} +2 -2
- package/dist/{vidstack-GkTzay8D-PBE5ZIYA.js → vidstack-GkTzay8D-53C3FRCO.js} +2 -2
- package/dist/web-components.d.ts +13 -1
- package/dist/web-components.js +1 -1
- package/dist/wire-ofSodpi1.d.ts +176 -0
- package/package.json +46 -2
- package/dist/MediaPlayer-7IBSXL7Q.js +0 -2
- package/dist/MediaPlayer-HTXF4T2V.js +0 -2
- package/dist/chunk-2UVUNYL6.js +0 -2
- package/dist/chunk-3OGF7I4H.js +0 -2
- package/dist/chunk-5AWUTOK7.js +0 -2
- package/dist/chunk-DTDUK36B.js +0 -8
- package/dist/chunk-JZXJO62T.js +0 -15
- package/dist/chunk-LLHBSWTL.js +0 -2
- package/dist/chunk-NOCGHD2O.js +0 -2
- package/dist/chunk-S4ZA2INU.js +0 -415
- package/dist/chunk-TLBIYET7.js +0 -404
- package/dist/chunk-TLRFFLH4.js +0 -94
- package/dist/chunk-U3U5KVR6.js +0 -2
- package/dist/chunk-UBMXRFSK.js +0 -4
- package/dist/deliverables-FBCRGMTB.js +0 -93
- package/dist/deliverables-FMKPDHJH.js +0 -92
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{e as bt,f as Ct,g as yt}from"./chunk-EZMTUAQX.js";import{a as ft,b as mt,c as gt}from"./chunk-VYSRVTYI.js";import{e as ht,f as re}from"./chunk-2LOQXVFI.js";import{b as te}from"./chunk-2E6RCDAA.js";import{A as ct,C as dt,Q as pt,U as fe,b as st,ba as m,d as at,g as Te,p as lt,u as _e,y as ut}from"./chunk-S2NFWI7C.js";import{a as L}from"./chunk-OU4IOHLN.js";import{a as pe}from"./chunk-6LGTFWQS.js";import{c as k}from"./chunk-CDG7S4P5.js";var u=k(pe());var B="text-[var(--site-fg,#18181b)]",D="text-[var(--site-fg-muted,#71717a)]",At=`mb-1.5 block text-sm font-medium ${B}`,H=`text-sm ${D}`,St="mt-1 text-sm text-red-600 dark:text-red-400",br="min-h-11 rounded-[var(--site-radius-lg,0.5rem)] border border-[var(--site-border,rgba(0,0,0,0.12))] bg-[var(--site-surface,#ffffff)] px-3 text-[length:var(--site-input-text,16px)] text-[var(--site-fg,#18181b)] outline-none transition placeholder:text-[var(--site-fg-muted,#71717a)] focus:border-[var(--site-fg-muted,#71717a)] focus:ring-2 focus:ring-[color-mix(in_srgb,var(--brand-color,#18181b)_35%,transparent)] disabled:cursor-not-allowed disabled:opacity-60",Cr=`w-full ${br}`,yr="border-red-400 hover:border-red-400 focus:border-red-400 dark:border-red-500 dark:hover:border-red-500 dark:focus:border-red-500";function Et(e,t){return m(Cr,e&&yr,t)}var Ar="inline-flex cursor-pointer items-center justify-center gap-2 whitespace-nowrap rounded-[var(--site-radius-button,0.75rem)] text-sm font-semibold transition focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[var(--brand-color,#18181b)] focus-visible:ring-offset-2 focus-visible:ring-offset-[var(--site-surface,#ffffff)] disabled:cursor-not-allowed disabled:opacity-60",Sr={primary:"bg-[var(--brand-color,#18181b)] text-[var(--brand-foreground,#ffffff)] hover:brightness-110",secondary:"border border-[var(--site-border,rgba(0,0,0,0.12))] bg-transparent text-[var(--site-fg,#18181b)] "+re,ghost:"bg-transparent text-[var(--site-fg-muted,#71717a)] hover:text-[var(--site-fg,#18181b)] "+re,danger:"border border-red-300 bg-transparent text-red-700 hover:bg-red-50 dark:border-red-800 dark:text-red-300 dark:hover:bg-red-950/40"},Er={md:"min-h-11 px-4",lg:"min-h-12 px-5"};function me(e){return[Ar,Sr[e?.variant??"primary"],Er[e?.size??"md"],e?.block?"flex w-full":"",e?.extra??""].filter(Boolean).join(" ")}var Rt="rounded-[var(--site-radius-card,1rem)] border border-[var(--site-border,rgba(0,0,0,0.12))] bg-[var(--site-surface,#ffffff)] text-[var(--site-fg,#18181b)]",ge="border-t border-[var(--site-border,rgba(0,0,0,0.12))]",Ie="rounded-[var(--site-radius-lg,0.5rem)] border border-red-200 bg-red-50 px-4 py-3 text-sm text-red-700 dark:border-red-900 dark:bg-red-950/40 dark:text-red-300",Rr={neutral:"text-[var(--site-fg,#18181b)] "+ht,success:"bg-emerald-50 text-emerald-700 dark:bg-emerald-950/40 dark:text-emerald-300",warning:"bg-amber-50 text-amber-800 dark:bg-amber-950/40 dark:text-amber-300",danger:"bg-red-50 text-red-700 dark:bg-red-950/40 dark:text-red-300",info:"bg-sky-50 text-sky-700 dark:bg-sky-950/40 dark:text-sky-300",brand:"bg-[var(--brand-color,#18181b)] text-[var(--brand-foreground,#ffffff)]"};function wt(e="neutral"){return`inline-flex items-center gap-1 rounded-full px-2.5 py-0.5 text-xs font-medium ${Rr[e]}`}var Pe=`inline-flex cursor-pointer items-center gap-1.5 text-sm font-medium transition hover:text-[var(--site-fg,#18181b)] disabled:cursor-not-allowed disabled:opacity-60 ${D}`;var kt=k(pe());var he=k(L()),U=(0,kt.forwardRef)(function({variant:t,size:r,block:o,loading:i,leading:a,className:p,disabled:g,type:c="button",children:l,...h},d){return(0,he.jsxs)("button",{ref:d,type:c,disabled:g||i,"aria-busy":i||void 0,className:me({variant:t,size:r,block:o,extra:p}),...h,children:[i?(0,he.jsx)(ct,{className:"h-4 w-4 animate-spin","aria-hidden":"true"}):a,l]})});var K=k(pe());var z=k(L());function vt({length:e=6,value:t,onChange:r,onComplete:o,disabled:i,invalid:a,autoFocus:p,label:g,id:c,className:l}){let h=(0,K.useId)(),d=c??h,x=(0,K.useRef)(null),[O,A]=(0,K.useState)(!1),W=(0,K.useRef)(null),b=t.replace(/\D/g,"").slice(0,e);(0,K.useEffect)(()=>{b.length===e&&W.current!==b&&(W.current=b,o?.(b)),b.length<e&&(W.current=null)},[b,e,o]);let v=E=>{let T=E.clipboardData.getData("text").replace(/\D/g,"").slice(0,e);T&&(E.preventDefault(),r(T))},oe=E=>{E.key},Ee=Array.from({length:e},(E,T)=>b[T]??""),Re=Math.min(b.length,e-1);return(0,z.jsxs)("div",{className:m("relative",l),onClick:()=>x.current?.focus(),children:[(0,z.jsx)("div",{className:"flex gap-2","aria-hidden":"true",children:Ee.map((E,T)=>{let y=O&&T===Re&&!i;return(0,z.jsx)("div",{className:m("flex h-12 min-w-0 flex-1 items-center justify-center rounded-[var(--site-radius-lg,0.5rem)] border bg-[var(--site-surface,#ffffff)] font-mono text-xl font-semibold text-[var(--site-fg,#18181b)] transition",a?"border-red-400 dark:border-red-500":y?"border-[var(--brand-color,#18181b)] ring-2 ring-[color-mix(in_srgb,var(--brand-color,#18181b)_35%,transparent)]":"border-[var(--site-border,rgba(0,0,0,0.12))]",i&&"opacity-60"),children:E||(y?(0,z.jsx)("span",{className:"h-6 w-px animate-pulse bg-[var(--site-fg,#18181b)]"}):null)},T)})}),(0,z.jsx)("input",{ref:x,id:d,type:"text",inputMode:"numeric",pattern:"[0-9]*",autoComplete:"one-time-code",maxLength:e,value:b,disabled:i,autoFocus:p,"aria-label":g,"aria-invalid":a||void 0,onChange:E=>r(E.target.value.replace(/\D/g,"").slice(0,e)),onPaste:v,onKeyDown:oe,onFocus:()=>A(!0),onBlur:()=>A(!1),className:"absolute inset-0 h-full w-full cursor-text opacity-0"})]})}var be=k(pe());var F=k(L());function Tt({label:e,hint:t,error:r,labelTrailing:o,htmlFor:i,className:a,children:p}){return(0,F.jsxs)("div",{className:a,children:[(0,F.jsxs)("div",{className:"mb-1.5 flex items-center justify-between gap-2",children:[(0,F.jsx)("label",{htmlFor:i,className:m(At,"mb-0"),children:e}),o]}),p,r?(0,F.jsx)("p",{className:St,role:"alert",children:r}):t?(0,F.jsx)("p",{className:m(H,"mt-1"),children:t}):null]})}var _t=(0,be.forwardRef)(function({invalid:t,className:r,id:o,onKeyDown:i,onCompositionStart:a,onCompositionEnd:p,...g},c){let l=(0,be.useId)(),h=ft({onKeyDown:i,onCompositionStart:a,onCompositionEnd:p}),d=gt(c);return mt(d.ref,g.onChange),(0,F.jsx)("input",{ref:d.setRef,id:o??l,"aria-invalid":t||void 0,className:Et(t,r),...h.props,...g})});var J=k(L());function It({className:e}){return(0,J.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",className:e,role:"img","aria-label":"Google",children:[(0,J.jsx)("path",{d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z",fill:"var(--platform-icon-mono, #4285F4)"}),(0,J.jsx)("path",{d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z",fill:"var(--platform-icon-mono, #34A853)"}),(0,J.jsx)("path",{d:"M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z",fill:"var(--platform-icon-mono, #FBBC05)"}),(0,J.jsx)("path",{d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z",fill:"var(--platform-icon-mono, #EA4335)"})]})}var _={index:"/account",login:"/account/login",orders:"/account/orders",order:e=>`/account/orders/${e}`,content:"/account/content",contentItem:e=>`/account/content/${encodeURIComponent(e)}`,courses:"/account/courses",settings:"/account/settings",profile:"/account/profile",devices:"/account/devices",apiSession:"/account/api/session",apiChallenge:"/account/api/challenge",apiVerify:"/account/api/verify",apiOauthStart:"/account/api/oauth/start",apiOauth2Authorize:"/account/api/oauth2/authorize",apiPasskeyLoginOptions:"/account/api/auth/passkey/options",apiPasskeyLoginVerify:"/account/api/auth/passkey/verify",apiPasskeys:"/account/api/passkeys",apiPasskey:e=>`/account/api/passkeys/${encodeURIComponent(e)}`,apiPasskeyRegisterOptions:"/account/api/passkeys/register/options",apiPasskeyRegister:"/account/api/passkeys/register",apiProfile:"/account/api/profile",apiEmailChange:"/account/api/email-change",apiEmailChangeVerify:"/account/api/email-change/verify",apiAddresses:"/account/api/addresses",apiAddress:e=>`/account/api/addresses/${encodeURIComponent(e)}`,apiAddressDefault:e=>`/account/api/addresses/${encodeURIComponent(e)}/default`,apiTaxIdentities:"/account/api/tax-identities",apiTaxIdentity:e=>`/account/api/tax-identities/${encodeURIComponent(e)}`,apiConsents:"/account/api/consents",apiData:"/account/api/data",apiErasure:"/account/api/erasure",apiContentOpen:e=>`/account/api/content/${encodeURIComponent(e)}/open`,apiContentQuiz:e=>`/account/api/content/${encodeURIComponent(e)}/quiz`,apiContentTranscript:e=>`/account/api/content/${encodeURIComponent(e)}/transcript`,apiProgress:"/account/api/progress",apiCertificate:e=>`/account/api/deliverables/${encodeURIComponent(e)}/certificate`,apiOrderReceipt:e=>`/account/api/orders/${encodeURIComponent(e)}/receipt`};var gn="knr_customer";var Pt=["passkey","google","apple","line","kakao","external_oidc","email_code","email_link"],wr=["passkey","google","email_code","email_link"],kr="email_code",vr=["email_code","email_link"];function xe(e){return typeof e=="string"&&Pt.includes(e)}function hn(e){let t=new Set(Array.isArray(e)?e.filter(xe).filter(r=>wr.includes(r)):vr);return t.add(kr),Pt.filter(r=>t.has(r))}function Oe(e,t=_.index){if(typeof e!="string")return t;let r=e.trim();return!r||r.length>512||!r.startsWith("/")||r.startsWith("//")||r.startsWith("/\\")||/[\r\n\0]/.test(r)||/^[a-z][a-z0-9+.-]*:/i.test(r)?t:r}var Tr=[{id:"orders",order:10,route:_.orders,navLabelKey:"orders",icon:"shopping-bag",apiResourcePrefixes:["/orders","/reviews"],visibility:"capability"},{id:"content",order:20,route:_.content,navLabelKey:"content",icon:"book-open",apiResourcePrefixes:["/deliverables","/units","/progress","/access"],visibility:"capability"},{id:"account",order:90,route:_.settings,navLabelKey:"account",icon:"user",apiResourcePrefixes:["/me","/session","/sessions","/email-change","/addresses","/tax-identities","/consents","/passkeys","/data","/erasure"],visibility:"always"}];function xt(e){let t=new Set(e.filter(r=>r.visible).map(r=>r.id));return[...Tr].filter(r=>t.has(r.id)).sort((r,o)=>r.order-o.order)}function _r(e,t){let r=e?.get("utm_source")?.toLowerCase()??"";if(/^(ig|instagram|threads|fb|facebook)/.test(r))return!0;let o=(t??"").toLowerCase();return[/threads\.net/i,/threads\.com/i,/instagram\.com/i,/m\.facebook\.com/i,/l\.facebook\.com/i,/lm\.facebook\.com/i].some(a=>a.test(o))}function Ot(e){if(typeof navigator>"u")return!1;let t=navigator.userAgent?.toLowerCase()??"";return!!([/\bbarcelona\b/i,/fban|fbav/i,/fb_iab/i,/fb_iab\/threads|fban\/threads|fbios.*threads/i,/instagram/i,/threads/i,/fbios/i,/line\//i,/wechat/i,/micromessenger/i,/twitter/i,/linkedin/i,/reddit/i,/pinterest/i,/discord/i,/snapchat/i,/tiktok/i,/kakaotalk/i,/naver/i,/webview/i].some(o=>o.test(t))||e&&_r(e.searchParams,e.referrer))}var Ce="NETWORK_ERROR";async function Nt(e,t){let r=await e.json().catch(()=>null);return!e.ok||!r?.ok?{ok:!1,code:r?.code??t,...typeof r?.retryAfter=="number"?{retryAfter:r.retryAfter}:{}}:r}async function G(e,t,r){try{let o=await fetch(e,{method:"POST",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify(t??{})});return await Nt(o,r)}catch{return{ok:!1,code:Ce}}}function En(){let e=_;return{altchaChallengeUrl:"/api/form-protection/altcha",challengeUrl:"/api/form-protection/challenge",requestChallenge:({email:t,locale:r,returnTo:o,protection:i})=>G(e.apiChallenge,{email:t,locale:r,returnTo:o,...i},"SERVER_ERROR"),verifyCode:({email:t,code:r})=>G(e.apiVerify,{method:"code",email:t,code:r},"INVALID_CODE"),verifyToken:({method:t,token:r})=>G(e.apiVerify,{method:t,token:r},"CODE_EXPIRED"),startOauth:({method:t,returnTo:r,locale:o})=>G(e.apiOauthStart,{method:t,returnTo:r,locale:o},"METHOD_DISABLED"),passkeyLoginOptions:()=>G(e.apiPasskeyLoginOptions,{},"SERVER_ERROR"),passkeyLoginVerify:t=>G(e.apiPasskeyLoginVerify,t,"PASSKEY_FAILED"),listPasskeys:async()=>{try{let t=await fetch(e.apiPasskeys,{credentials:"same-origin"});return await Nt(t,"UNAUTHENTICATED")}catch{return{ok:!1,code:Ce}}},passkeyRegisterOptions:()=>G(e.apiPasskeyRegisterOptions,{},"SERVER_ERROR"),passkeyRegister:t=>G(e.apiPasskeyRegister,t,"PASSKEY_FAILED"),session:async()=>{let t=await fetch(e.apiSession,{credentials:"same-origin"});if(t.status===401)return null;if(!t.ok)throw new Error(`HTTP ${t.status}`);let r=await t.json();return!r?.ok||!r.contact?null:{contact:r.contact,sections:r.sections??[],landing:r.landing??e.index}},signOut:async()=>{await fetch(e.apiSession,{method:"DELETE",headers:{"Content-Type":"application/json"},credentials:"same-origin",body:JSON.stringify({mode:"current"})}).catch(()=>{})}}}var Lt=new Set(["PASSKEY_CANCELLED"]);function Ne(e,t){switch((e??"").toUpperCase()){case"INVALID_EMAIL":return t.errorInvalidEmail;case"INVALID_CODE":return t.errorInvalidCode;case"CODE_EXPIRED":return t.errorCodeExpired;case"TOO_MANY_ATTEMPTS":return t.errorTooManyAttempts;case"ACCOUNT_BLOCKED":return t.errorAccountBlocked;case"RATE_LIMITED":return t.errorRateLimited;case"BOT_PROTECTION_FAILED":return t.errorBotProtection;case"SIGNUP_DISABLED":return t.errorSignupDisabled;case"SEND_FAILED":return t.errorSendFailed;case"METHOD_DISABLED":return t.errorMethodDisabled;case"EMAIL_NOT_VERIFIED":return t.errorEmailNotVerified;case"NO_EMAIL":return t.errorNoEmail;case"PROVIDER_DENIED":case"TOKEN_EXCHANGE_FAILED":case"INVALID_ID_TOKEN":case"INVALID_STATE":return t.errorProviderFailed;case"PASSKEY_UNSUPPORTED":return t.errorPasskeyUnsupported;case"PASSKEY_FAILED":case"NOT_FOUND":case"VERIFY_FAILED":case"CHALLENGE_EXPIRED":case"NO_HOST":return t.errorPasskeyFailed;case"ALREADY_REGISTERED":return t.errorPasskeyAlreadyRegistered;case"SERVICE_UNAVAILABLE":return t.errorServiceUnavailable;case"SHARED_SENDER_PAUSED":return t.errorEmailSignInPaused;case Ce:default:return t.errorGeneric}}function I(e){let t=new Uint8Array(e),r="";for(let i of t)r+=String.fromCharCode(i);return btoa(r).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}function q(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=(4-t.length%4)%4,o=t.padEnd(t.length+r,"="),i=atob(o),a=new ArrayBuffer(i.length),p=new Uint8Array(a);for(let g=0;g<i.length;g++)p[g]=i.charCodeAt(g);return a}function M(){return Ir.stubThis(globalThis?.PublicKeyCredential!==void 0&&typeof globalThis.PublicKeyCredential=="function")}var Ir={stubThis:e=>e};function ye(e){let{id:t}=e;return{...e,id:q(t),transports:e.transports,type:e.type}}function ne(e){return e==="localhost"||/^((xn--[a-z0-9-]+|[a-z0-9]+(-[a-z0-9]+)*)\.)+([a-z]{2,}|xn--[a-z0-9-]+)$/i.test(e)}var C=class extends Error{constructor({message:t,code:r,cause:o,name:i}){super(t,{cause:o}),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=i??o.name,this.code=r}};function Dt({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new C({message:"Registration ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else if(e.name==="ConstraintError"){if(r.authenticatorSelection?.requireResidentKey===!0)return new C({message:"Discoverable credentials were required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_DISCOVERABLE_CREDENTIAL_SUPPORT",cause:e});if(t.mediation==="conditional"&&r.authenticatorSelection?.userVerification==="required")return new C({message:"User verification was required during automatic registration but it could not be performed",code:"ERROR_AUTO_REGISTER_USER_VERIFICATION_FAILURE",cause:e});if(r.authenticatorSelection?.userVerification==="required")return new C({message:"User verification was required but no available authenticator supported it",code:"ERROR_AUTHENTICATOR_MISSING_USER_VERIFICATION_SUPPORT",cause:e})}else{if(e.name==="InvalidStateError")return new C({message:"The authenticator was previously registered",code:"ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED",cause:e});if(e.name==="NotAllowedError")return new C({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="NotSupportedError")return r.pubKeyCredParams.filter(i=>i.type==="public-key").length===0?new C({message:'No entry in pubKeyCredParams was of type "public-key"',code:"ERROR_MALFORMED_PUBKEYCREDPARAMS",cause:e}):new C({message:"No available authenticator supported any of the specified pubKeyCredParams algorithms",code:"ERROR_AUTHENTICATOR_NO_SUPPORTED_PUBKEYCREDPARAMS_ALG",cause:e});if(e.name==="SecurityError"){let o=globalThis.location.hostname;if(ne(o)){if(r.rp.id!==o)return new C({message:`The RP ID "${r.rp.id}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new C({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="TypeError"){if(r.user.id.byteLength<1||r.user.id.byteLength>64)return new C({message:"User ID was not between 1 and 64 characters",code:"ERROR_INVALID_USER_ID_LENGTH",cause:e})}else if(e.name==="UnknownError")return new C({message:"The authenticator was unable to process the specified options, or could not create a new credential",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}var Le=class{constructor(){Object.defineProperty(this,"controller",{enumerable:!0,configurable:!0,writable:!0,value:void 0})}createNewAbortSignal(){if(this.controller){let r=new Error("Cancelling existing WebAuthn API call for new one");r.name="AbortError",this.controller.abort(r)}let t=new AbortController;return this.controller=t,t.signal}cancelCeremony(){if(this.controller){let t=new Error("Manually cancelling existing WebAuthn API call");t.name="AbortError",this.controller.abort(t),this.controller=void 0}}},Q=new Le;var Pr=["cross-platform","platform"];function Ae(e){if(e&&!(Pr.indexOf(e)<0))return e}async function Ut(e){!e.optionsJSON&&e.challenge&&(console.warn("startRegistration() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:t,useAutoRegister:r=!1}=e;if(!M())throw new Error("WebAuthn is not supported in this browser");let o={...t,challenge:q(t.challenge),user:{...t.user,id:q(t.user.id)},excludeCredentials:t.excludeCredentials?.map(ye)},i={};r&&(i.mediation="conditional"),i.publicKey=o,i.signal=Q.createNewAbortSignal();let a;try{a=await navigator.credentials.create(i)}catch(A){throw Dt({error:A,options:i})}if(!a)throw new Error("Registration was not completed");let{id:p,rawId:g,response:c,type:l}=a,h;typeof c.getTransports=="function"&&(h=c.getTransports());let d;if(typeof c.getPublicKeyAlgorithm=="function")try{d=c.getPublicKeyAlgorithm()}catch(A){De("getPublicKeyAlgorithm()",A)}let x;if(typeof c.getPublicKey=="function")try{let A=c.getPublicKey();A!==null&&(x=I(A))}catch(A){De("getPublicKey()",A)}let O;if(typeof c.getAuthenticatorData=="function")try{O=I(c.getAuthenticatorData())}catch(A){De("getAuthenticatorData()",A)}return{id:p,rawId:I(g),response:{attestationObject:I(c.attestationObject),clientDataJSON:I(c.clientDataJSON),transports:h,publicKeyAlgorithm:d,publicKey:x,authenticatorData:O},type:l,clientExtensionResults:a.getClientExtensionResults(),authenticatorAttachment:Ae(a.authenticatorAttachment)}}function De(e,t){console.warn(`The browser extension that intercepted this WebAuthn API call incorrectly implemented ${e}. You should report this error to them.
|
|
2
|
+
`,t)}function Se(){if(!M())return Ue.stubThis(new Promise(t=>t(!1)));let e=globalThis.PublicKeyCredential;return e?.isConditionalMediationAvailable===void 0?Ue.stubThis(new Promise(t=>t(!1))):Ue.stubThis(e.isConditionalMediationAvailable())}var Ue={stubThis:e=>e};function Mt({error:e,options:t}){let{publicKey:r}=t;if(!r)throw Error("options was missing required publicKey property");if(e.name==="AbortError"){if(t.signal instanceof AbortSignal)return new C({message:"Authentication ceremony was sent an abort signal",code:"ERROR_CEREMONY_ABORTED",cause:e})}else{if(e.name==="NotAllowedError")return new C({message:e.message,code:"ERROR_PASSTHROUGH_SEE_CAUSE_PROPERTY",cause:e});if(e.name==="SecurityError"){let o=globalThis.location.hostname;if(ne(o)){if(r.rpId!==o)return new C({message:`The RP ID "${r.rpId}" is invalid for this domain`,code:"ERROR_INVALID_RP_ID",cause:e})}else return new C({message:`${globalThis.location.hostname} is an invalid domain`,code:"ERROR_INVALID_DOMAIN",cause:e})}else if(e.name==="UnknownError")return new C({message:"The authenticator was unable to process the specified options, or could not create a new assertion signature",code:"ERROR_AUTHENTICATOR_GENERAL_ERROR",cause:e})}return e}async function Bt(e){!e.optionsJSON&&e.challenge&&(console.warn("startAuthentication() was not called correctly. It will try to continue with the provided options, but this call should be refactored to use the expected call structure instead. See https://simplewebauthn.dev/docs/packages/browser#typeerror-cannot-read-properties-of-undefined-reading-challenge for more information."),e={optionsJSON:e});let{optionsJSON:t,useBrowserAutofill:r=!1,verifyBrowserAutofillInput:o=!0}=e;if(!M())throw new Error("WebAuthn is not supported in this browser");let i;t.allowCredentials?.length!==0&&(i=t.allowCredentials?.map(ye));let a={...t,challenge:q(t.challenge),allowCredentials:i},p={};if(r){if(!await Se())throw Error("Browser does not support WebAuthn autofill");if(document.querySelectorAll("input[autocomplete$='webauthn']").length<1&&o)throw Error('No <input> with "webauthn" as the only or last value in its `autocomplete` attribute was detected');p.mediation="conditional",a.allowCredentials=[]}p.publicKey=a,p.signal=Q.createNewAbortSignal();let g;try{g=await navigator.credentials.get(p)}catch(O){throw Mt({error:O,options:p})}if(!g)throw new Error("Authentication was not completed");let{id:c,rawId:l,response:h,type:d}=g,x;return h.userHandle&&(x=I(h.userHandle)),{id:c,rawId:I(l),response:{authenticatorData:I(h.authenticatorData),clientDataJSON:I(h.clientDataJSON),signature:I(h.signature),userHandle:x},type:d,clientExtensionResults:g.getClientExtensionResults(),authenticatorAttachment:Ae(g.authenticatorAttachment)}}async function Me(){if(typeof PublicKeyCredential.getClientCapabilities=="function"){let e=await PublicKeyCredential.getClientCapabilities(),t=V(e.userVerifyingPlatformAuthenticator);t==="unknown"&&typeof PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable=="function"&&(await PublicKeyCredential.isUserVerifyingPlatformAuthenticatorAvailable()?t="supported":t="unsupported");let r=V(e.conditionalGet);return r==="unknown"&&typeof PublicKeyCredential.isConditionalMediationAvailable=="function"&&(await PublicKeyCredential.isConditionalMediationAvailable()?r="supported":r="unsupported"),Kt.stubThis({conditionalCreate:V(e.conditionalCreate),conditionalGet:r,hybridTransport:V(e.hybridTransport),passkeyPlatformAuthenticator:V(e.passkeyPlatformAuthenticator),userVerifyingPlatformAuthenticator:t,relatedOrigins:V(e.relatedOrigins),signalAllAcceptedCredentials:V(e.signalAllAcceptedCredentials),signalCurrentUserDetails:V(e.signalCurrentUserDetails),signalUnknownCredential:V(e.signalUnknownCredential)})}return Kt.stubThis({conditionalCreate:"unknown",conditionalGet:"unknown",hybridTransport:"unknown",passkeyPlatformAuthenticator:"unknown",userVerifyingPlatformAuthenticator:"unknown",relatedOrigins:"unknown",signalAllAcceptedCredentials:"unknown",signalCurrentUserDetails:"unknown",signalUnknownCredential:"unknown"})}function V(e){if(e===!0)return"supported";if(e===!1)return"unsupported";if(typeof e>"u")return"unknown";throw new Error("Unexpected capability value:",e)}var Kt={stubThis:e=>e};function Vt(){return typeof window<"u"&&M()}function $t(){return Vt()?Se().catch(()=>!1):Promise.resolve(!1)}async function Ht(){if(!Vt())return!1;try{return(await Me()).userVerifyingPlatformAuthenticator==="supported"}catch{return!1}}function Ft(e){return e instanceof C?e.code==="ERROR_CEREMONY_ABORTED":e instanceof Error&&(e.name==="NotAllowedError"||e.name==="AbortError")}function Z(){Q.cancelCeremony()}async function Gt(e,t){let r=await e.passkeyLoginOptions();if(!r.ok)return r;let o;try{o=await Bt({optionsJSON:r.options,useBrowserAutofill:t.useBrowserAutofill??!1})}catch(i){return{ok:!1,code:Ft(i)?"PASSKEY_CANCELLED":"PASSKEY_FAILED"}}return t.onAssertion?.(),e.passkeyLoginVerify({challengeId:r.challengeId,response:o,returnTo:t.returnTo,locale:t.locale})}async function Wt(e,t={}){let r=await e.passkeyRegisterOptions();if(!r.ok)return r;let o;try{o=await Ut({optionsJSON:r.options})}catch(i){return i instanceof C&&i.code==="ERROR_AUTHENTICATOR_PREVIOUSLY_REGISTERED"?{ok:!1,code:"ALREADY_REGISTERED"}:{ok:!1,code:Ft(i)?"PASSKEY_CANCELLED":"PASSKEY_FAILED"}}return e.passkeyRegister({response:o,name:t.name})}var Yt="kanorio.customer.last-method",Be="kanorio.customer.passkey-offer",zt=2;function Jt(e){try{return typeof localStorage>"u"?null:localStorage.getItem(e)}catch{return null}}function Ke(e,t){try{if(typeof localStorage>"u")return;t===null?localStorage.removeItem(e):localStorage.setItem(e,t)}catch{}}function Ve(e){let t=Jt(`${Yt}:${e}`);return xe(t)?t:null}function $e(e,t){Ke(`${Yt}:${e}`,t)}function qt(e){let t=Number(Jt(`${Be}:${e}`)??"0");return Number.isFinite(t)&&t>0?t:0}function jt(e){Ke(`${Be}:${e}`,String(qt(e)+1))}function Xt(e){Ke(`${Be}:${e}`,String(zt))}function Qt(e){return qt(e)>=zt}var n=k(L()),xr=30,Or=15e3,Nr=3e3,Lr=new Set(["email_code","email_link"]),Dr={"shopping-bag":pt,"book-open":at,user:fe};function Zt(){if(!(typeof window>"u"))try{let e=new URL(window.location.href),t=!1;for(let r of["token","handoff","error","verify"])e.searchParams.has(r)&&(e.searchParams.delete(r),t=!0);t&&window.history.replaceState(window.history.state,"",e.toString())}catch{}}function Ur(e){let[t,r]=(0,u.useState)(()=>Date.now());return(0,u.useEffect)(()=>{if(e===null||e<=Date.now())return;let o=setInterval(()=>r(Date.now()),1e3);return()=>clearInterval(o)},[e]),e===null?0:Math.max(0,Math.ceil((e-t)/1e3))}function ti({variant:e,auth:t,initial:r,returnTo:o,onNavigate:i,onSignedIn:a,onSignedOut:p,className:g}){let{transport:c,messages:l,methods:h,siteId:d,siteName:x,locale:O,siteLocale:A,accountBaseUrl:W}=t,[b,v]=(0,u.useState)(()=>r?.token?.trim()||r?.handoff?.trim()?{kind:"consuming"}:r?.verify&&r.email?.trim()?{kind:"code",email:r.email.trim(),sentAt:Date.now()}:{kind:"identify"}),[oe,Ee]=(0,u.useState)(r?.email??""),[Re,E]=(0,u.useState)(""),[T,y]=(0,u.useState)(null),[He,R]=(0,u.useState)(()=>r?.error?Ne(r.error,l):null),[er,tr]=(0,u.useState)(null),[Fe,rr]=(0,u.useState)(!1),w=(0,u.useRef)(!0),Ge=(0,u.useRef)(null),We=(0,u.useMemo)(()=>h.filter(s=>!Lr.has(s)),[h]),Ye=We.length>0?l.signInSubtitleChoose:l.signInSubtitle,ie=h.includes("passkey"),$=o?Oe(o):null,{getProtectionData:ze,isSubmittable:se,registerFocus:ae,reset:Je,fieldProps:nr,challengeProps:qe,provider:we,prepare:je,renewCaptcha:Xe}=yt({variant:"full",context:`customer-login:${d}`,challengeUrl:c.challengeUrl,altchaChallengeUrl:c.altchaChallengeUrl,entry:"customer_login"}),Qe=we==="hcaptcha"||we==="recaptcha"&&qe.captcha?.recaptchaVersion==="v2",[Ze,le]=(0,u.useState)(!1),[or,ir]=(0,u.useState)(0),j=(0,u.useRef)(null),X=(0,u.useRef)(null),ue=(0,u.useCallback)(()=>{j.current=null,X.current&&(clearTimeout(X.current),X.current=null)},[]),et=(0,u.useCallback)(s=>{if(se){s();return}if(Qe){y(null),R(l.errorBotProtection);return}j.current=s,X.current&&clearTimeout(X.current),X.current=setTimeout(()=>{j.current&&(j.current=null,y(null),le(!0),R(l.errorBotProtection))},Or)},[se,Qe,l.errorBotProtection]);(0,u.useEffect)(()=>{if(!se||!j.current)return;let s=j.current;ue(),s()},[se,ue]);let ce=(0,u.useRef)(null),sr=(0,u.useCallback)(s=>{ce.current&&(clearTimeout(ce.current),ce.current=null),s==="error"?le(!0):s==="verifying"&&(ce.current=setTimeout(()=>le(!0),Nr))},[]),tt=(0,u.useCallback)(()=>{Je(),ae(),Xe(),ir(s=>s+1)},[Je,ae,Xe]);(0,u.useEffect)(()=>(w.current=!0,rr(Ot()),tr(Ve(d)),()=>{w.current=!1,ue(),Z()}),[d,ue]),(0,u.useEffect)(()=>{let s=f=>{f.persisted&&y(null)};return window.addEventListener("pageshow",s),()=>window.removeEventListener("pageshow",s)},[]);let P=(0,u.useCallback)((s,f)=>{w.current&&(!f?.raw&&Lt.has(s.toUpperCase())||R(f?.raw?s:Ne(s,l)))},[l]),de=(0,u.useCallback)(s=>{if(e==="page"){v({kind:"redirecting"});let f=Oe(s.returnTo??$??`${W}${t.landing??_.index}`);window.location.assign(f);return}y(null),v({kind:"identify"})},[e,$,W,t.landing]),ee=(0,u.useCallback)(async(s,f)=>{$e(d,f),a?.(s,f);let S=await c.session().then(Y=>({known:!0,overview:Y}),()=>({known:!1}));if(w.current){if(S.known?t.applySession(S.overview):t.retrySession(),f!=="passkey"&&ie&&!Qt(d)&&await Ht()){let Y=await c.listPasskeys();if(!w.current)return;if(Y.ok&&Y.passkeys.length===0){y(null),R(null),v({kind:"passkey-offer",grant:s});return}}de(s)}},[d,a,c,t,ie,de]),ar=(0,u.useRef)(r);(0,u.useEffect)(()=>{let s=ar.current;if(!s)return;(s.error||s.verify)&&Zt();let f=s.token?.trim()||null,S=s.handoff?.trim()||null;if(f||S){Zt();let Y=f?"link":"handoff",ke=f??S;if(Ge.current===ke)return;Ge.current=ke,c.verifyToken({method:Y,token:ke}).then(ve=>{if(!w.current)return;if(!ve.ok){v({kind:"identify"}),P(ve.code);return}let hr=Y==="link"?"email_link":Ve(d)??"google";return ee(ve,hr)}).catch(()=>{w.current&&(v({kind:"identify"}),P("SERVER_ERROR"))});return}},[]);let rt=(0,u.useCallback)(async(s,f)=>{y(f==="first"?"challenge":"resend"),R(null),await je();let S=await c.requestChallenge({email:s,locale:A,returnTo:$??void 0,protection:ze()});if(w.current){if(y(null),tt(),!S.ok){S.code==="BOT_PROTECTION_FAILED"&&le(!0),P(S.code);return}E(""),v({kind:"code",email:s,sentAt:Date.now()})}},[c,A,$,ze,tt,P,je]),lr=s=>{s.preventDefault();let f=oe.trim();if(!f||!f.includes("@")){R(l.errorInvalidEmail);return}Z(),R(null),y("challenge"),et(()=>{rt(f,"first")})},ur=s=>{y("resend"),et(()=>{rt(s,"resend")})},cr=(0,u.useCallback)(async(s,f)=>{if(!/^\d{6}$/.test(f)){R(l.errorInvalidCode);return}y("verify"),R(null);let S=await c.verifyCode({email:s,code:f});if(w.current){if(!S.ok){y(null),E(""),P(S.code);return}await ee(S,"email_code")}},[c,l.errorInvalidCode,P,ee]),nt=(0,u.useCallback)(async s=>{s||(Z(),y("passkey"),R(null));let f=await Gt(c,{useBrowserAutofill:s,returnTo:$??void 0,locale:A,onAssertion:()=>{w.current&&v({kind:"consuming"})}});if(w.current){if(!f.ok){y(null),v(S=>S.kind==="consuming"?{kind:"identify"}:S),P(f.code);return}await ee(f,"passkey")}},[c,$,A,P,ee]);(0,u.useEffect)(()=>{if(!ie||b.kind!=="identify"||t.user)return;let s=!1;return $t().then(f=>{!s&&f&&nt(!0)}),()=>{s=!0,Z()}},[ie,b.kind,t.user]);let dr=(0,u.useCallback)(async s=>{if(Fe){v({kind:"in-app"});return}Z(),y("oauth"),R(null);let f=await c.startOauth({method:s,returnTo:$??void 0,locale:A});if(w.current){if(!f.ok){y(null),P(f.code);return}$e(d,s),window.location.assign(f.url)}},[Fe,c,$,A,d,P]),pr=async s=>{y("passkey-register"),R(null);let f=await Wt(c);if(w.current){if(y(null),!f.ok){P(f.code);return}Xt(d),de(s)}},fr=s=>{jt(d),de(s)},mr=async()=>{y("verify"),await t.signOut(),w.current&&(y(null),p?.(),i?.())},gr=te(l.signInTitle,{siteName:x}).trim(),ot=He?(0,n.jsx)("div",{role:"alert",className:m(Ie,"mb-4"),children:He}):null,N;b.kind==="consuming"||b.kind==="redirecting"?N=(0,n.jsx)("p",{className:m("py-8 text-center text-sm",D),"aria-live":"polite",children:l.verifying}):b.kind==="passkey-offer"?N=(0,n.jsx)(Yr,{messages:l,busy:T==="passkey-register",onCreate:()=>{pr(b.grant)},onSkip:()=>fr(b.grant)}):b.kind==="in-app"?N=(0,n.jsx)(zr,{messages:l,onBack:()=>v({kind:"identify"})}):b.kind==="code"?N=(0,n.jsx)(Gr,{email:b.email,sentAt:b.sentAt,code:Re,onCodeChange:E,busy:T,messages:l,onVerify:s=>{cr(b.email,s)},onResend:()=>ur(b.email),onChangeEmail:()=>{v({kind:"identify"}),E(""),R(null)}}):t.pending?N=(0,n.jsxs)("p",{className:m("flex items-center gap-2 py-6 text-sm",D),role:"status","aria-live":"polite",children:[(0,n.jsx)("span",{className:"inline-block h-4 w-4 animate-spin rounded-full border-2 border-current border-t-transparent","aria-hidden":"true"}),l.sessionChecking]}):t.sessionUnavailable?N=(0,n.jsxs)("div",{children:[(0,n.jsx)("div",{role:"alert",className:m(Ie,"mb-4"),children:l.errorServiceUnavailable}),(0,n.jsx)(U,{type:"button",block:!0,onClick:t.retrySession,children:l.contentRetry})]}):t.user?N=e==="panel"?(0,n.jsx)(Wr,{auth:t,busy:T!==null,onNavigate:i,onSignOut:()=>{mr()}}):(0,n.jsx)("p",{className:m("text-sm",D),children:(0,n.jsx)("a",{href:`${W}${t.landing??_.index}`,className:me({block:!0}),children:l.signedInContinue})}):N=(0,n.jsx)(Mr,{email:oe,onEmailChange:s=>{ae(),Ee(s)},onEmailFocus:ae,onSubmit:lr,otherMethods:We,lastMethod:er,busy:T,messages:l,onPasskey:()=>{nt(!1)},onOauth:s=>{dr(s)}});let it=b.kind==="identify"&&(t.pending||t.sessionUnavailable)?null:(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)(Ct,{...nr,locale:O,renderAltcha:!1}),(0,n.jsx)(bt,{...qe,locale:O,invisible:!0,revealed:Ze,generation:or,onStateChange:sr,onCaptchaError:()=>R(l.errorBotProtection),className:Ze||we!=="kanorio"?"mt-3":void 0})]});return e==="page"?(0,n.jsx)("div",{className:m("mx-auto w-full max-w-md",g),children:(0,n.jsxs)("div",{className:m(Rt,"p-6 sm:p-8"),children:[(0,n.jsxs)("div",{className:"mb-6",children:[(0,n.jsx)("h1",{className:m("text-xl font-semibold",B),children:gr}),b.kind==="identify"&&!t.user&&!t.pending&&!t.sessionUnavailable?(0,n.jsx)("p",{className:m("mt-1",H),children:Ye}):null]}),ot,N,b.kind==="identify"||b.kind==="code"?it:null]})}):(0,n.jsxs)("div",{className:g,children:[b.kind==="identify"&&!t.user&&!t.pending&&!t.sessionUnavailable?(0,n.jsx)("p",{className:m("mb-4",H),children:Ye}):null,ot,N,b.kind==="identify"||b.kind==="code"?it:null]})}function Mr({email:e,onEmailChange:t,onEmailFocus:r,onSubmit:o,otherMethods:i,lastMethod:a,busy:p,messages:g,onPasskey:c,onOauth:l}){let h=p!==null;return(0,n.jsxs)("div",{className:"space-y-4",children:[i.length>0?(0,n.jsxs)("div",{className:"space-y-2",children:[i.map(d=>(0,n.jsx)(Hr,{method:d,last:a===d,loading:d==="passkey"&&p==="passkey"||d!=="passkey"&&p==="oauth",disabled:h,messages:g,onClick:()=>d==="passkey"?c():l(d)},d)),(0,n.jsxs)("div",{className:"flex items-center gap-3 py-1","aria-hidden":"true",children:[(0,n.jsx)("span",{className:m("h-px flex-1",ge)}),(0,n.jsx)("span",{className:m("text-xs uppercase tracking-wide",D),children:g.orContinueWith}),(0,n.jsx)("span",{className:m("h-px flex-1",ge)})]})]}):null,(0,n.jsxs)("form",{onSubmit:o,className:"space-y-3",noValidate:!0,children:[(0,n.jsx)(Tt,{label:g.emailLabel,htmlFor:"customer-login-email",hint:i.length>0?g.emailCodeHint:void 0,children:(0,n.jsx)(_t,{id:"customer-login-email",type:"email",name:"email",inputMode:"email",required:!0,autoComplete:"username webauthn",value:e,onFocus:r,onChange:d=>t(d.target.value),placeholder:g.emailPlaceholder,disabled:h&&p!=="passkey"})}),(0,n.jsx)(U,{type:"submit",block:!0,loading:p==="challenge",disabled:h,leading:a==="email_code"||a==="email_link"?(0,n.jsx)(Fr,{}):void 0,children:g.continueWithEmail})]})]})}var Br=({className:e})=>(0,n.jsx)(ut,{className:e,"aria-hidden":"true"}),Kr={passkey:({className:e})=>(0,n.jsx)(_e,{className:e,"aria-hidden":"true"}),google:({className:e})=>(0,n.jsx)(It,{className:e})},Vr={apple:"Apple",line:"LINE",kakao:"Kakao",external_oidc:"SSO"};function $r(e,t){return e==="passkey"?t.continueWithPasskey:e==="google"?t.continueWithGoogle:te(t.continueWithProvider,{provider:Vr[e]??e})}function Hr({method:e,last:t,loading:r,disabled:o,messages:i,onClick:a}){let p=Kr[e]??Br;return(0,n.jsxs)(U,{type:"button",variant:"secondary",block:!0,loading:r,disabled:o,onClick:a,leading:(0,n.jsx)(p,{className:"h-4 w-4"}),className:"relative",children:[(0,n.jsx)("span",{children:$r(e,i)}),t?(0,n.jsx)("span",{className:m(wt("neutral"),"absolute right-3"),children:i.lastUsed}):null]})}function Fr(){return(0,n.jsx)(Te,{className:"h-4 w-4","aria-hidden":"true"})}function Gr({email:e,sentAt:t,code:r,onCodeChange:o,busy:i,messages:a,onVerify:p,onResend:g,onChangeEmail:c}){let l=Ur(t+xr*1e3),h=i==="verify";return(0,n.jsxs)("form",{onSubmit:d=>{d.preventDefault(),h||p(r)},className:"space-y-4",noValidate:!0,children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:m("text-base font-semibold",B),children:a.codeStepTitle}),(0,n.jsx)("p",{className:m("mt-1 break-words",H),children:te(a.codeSentHint,{email:e})})]}),(0,n.jsx)(vt,{label:a.codeLabel,value:r,onChange:o,onComplete:d=>!h&&p(d),disabled:h,autoFocus:!0}),(0,n.jsx)(U,{type:"submit",block:!0,loading:h,disabled:i!==null||r.length!==6,children:a.verifyAndSignIn}),(0,n.jsxs)("div",{className:"flex flex-wrap items-center justify-between gap-x-4 gap-y-2",children:[(0,n.jsx)("button",{type:"button",className:Pe,disabled:l>0||i!==null,onClick:g,"aria-live":"polite",children:i==="resend"?a.sendingCode:l>0?te(a.resendIn,{seconds:String(l)}):a.resendCode}),(0,n.jsxs)("button",{type:"button",className:Pe,disabled:i!==null,onClick:c,children:[(0,n.jsx)(st,{className:"h-4 w-4","aria-hidden":"true"}),a.useAnotherEmail]})]})]})}function Wr({auth:e,busy:t,onNavigate:r,onSignOut:o}){let{messages:i,accountBaseUrl:a}=e,p=e.user,g=xt(e.sections),l=(p.name?.trim()||p.email||"").trim().charAt(0).toUpperCase();return(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"flex items-center gap-3",children:[(0,n.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full text-base font-semibold",style:{backgroundColor:"var(--brand-color, #18181b)",color:"var(--brand-foreground, #ffffff)"},"aria-hidden":"true",children:l||(0,n.jsx)(fe,{className:"h-5 w-5"})}),(0,n.jsxs)("div",{className:"min-w-0",children:[p.name?.trim()?(0,n.jsx)("p",{className:m("truncate text-sm font-semibold",B),children:p.name}):null,p.email?(0,n.jsx)("p",{className:m("truncate text-sm",D),children:p.email}):null]})]}),(0,n.jsx)("nav",{"aria-label":i.shell.menu,children:(0,n.jsxs)("ul",{className:"-mx-2 space-y-0.5",children:[(g.length>0?g:null)?.map(h=>{let d=Dr[h.icon];return(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:`${a}${h.route}`,onClick:r,className:m("flex min-h-11 items-center gap-3 rounded-[var(--site-radius-button,0.5rem)] px-2 text-sm font-medium transition "+re,B),children:[(0,n.jsx)(d,{className:m("h-4 w-4 shrink-0",D),"aria-hidden":"true"}),i.nav[h.navLabelKey]]})},h.id)}),g.length===0?(0,n.jsx)("li",{children:(0,n.jsxs)("a",{href:`${a}${_.index}`,onClick:r,className:m("flex min-h-11 items-center gap-3 rounded-[var(--site-radius-button,0.5rem)] px-2 text-sm font-medium",B),children:[(0,n.jsx)(fe,{className:m("h-4 w-4 shrink-0",D),"aria-hidden":"true"}),i.title]})}):null]})}),(0,n.jsx)("div",{className:m("pt-3",ge),children:(0,n.jsx)(U,{type:"button",variant:"ghost",block:!0,loading:t,onClick:o,leading:(0,n.jsx)(dt,{className:"h-4 w-4","aria-hidden":"true"}),children:i.signOut})})]})}function Yr({messages:e,busy:t,onCreate:r,onSkip:o}){return(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{className:"flex items-start gap-3",children:[(0,n.jsx)("span",{className:"flex h-10 w-10 shrink-0 items-center justify-center rounded-full bg-[color-mix(in_srgb,var(--brand-color,#18181b)_12%,transparent)] text-[var(--brand-text,var(--brand-color,#18181b))]","aria-hidden":"true",children:(0,n.jsx)(_e,{className:"h-5 w-5"})}),(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:m("text-base font-semibold",B),children:e.passkeyOfferTitle}),(0,n.jsx)("p",{className:m("mt-1",H),children:e.passkeyOfferBody})]})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(U,{type:"button",block:!0,loading:t,onClick:r,children:e.passkeyOfferCreate}),(0,n.jsx)(U,{type:"button",variant:"ghost",block:!0,disabled:t,onClick:o,children:e.passkeyOfferSkip})]})]})}function zr({messages:e,onBack:t}){let[r,o]=(0,u.useState)(!1),i=async()=>{try{await navigator.clipboard.writeText(window.location.href),o(!0),setTimeout(()=>o(!1),3e3)}catch{o(!1)}};return(0,n.jsxs)("div",{className:"space-y-4",children:[(0,n.jsxs)("div",{children:[(0,n.jsx)("h2",{className:m("text-base font-semibold",B),children:e.inAppBrowserTitle}),(0,n.jsx)("p",{className:m("mt-1",H),children:e.inAppBrowserBody})]}),(0,n.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,n.jsx)(U,{type:"button",variant:"secondary",block:!0,onClick:()=>{i()},leading:r?(0,n.jsx)(Te,{className:"h-4 w-4","aria-hidden":"true"}):(0,n.jsx)(lt,{className:"h-4 w-4","aria-hidden":"true"}),children:r?e.inAppBrowserCopied:e.inAppBrowserCopyLink}),(0,n.jsx)(U,{type:"button",variant:"ghost",block:!0,onClick:t,children:e.inAppBrowserUseEmail})]})]})}export{me as a,gn as b,hn as c,En as d,Ne as e,xr as f,ti as g};
|
|
3
|
+
//# sourceMappingURL=chunk-N5PIQM4L.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{extractImageIdFromUrl,getOptimizedImageUrl,getOriginalImageUrl,useMediaProtection}from"./chunk-QOQQCCID.js";import{lockPageScroll}from"./chunk-HFYLTH5B.js";import{useSiteLabels}from"./chunk-U7H3W23Q.js";import{useState,useCallback,useEffect,useMemo}from"react";var IMAGE_EXTENSION_PATTERN=/\.(avif|gif|jpe?g|png|webp)$/i;function getJpegDownloadFilename(url,filename){const baseFilename=filename?.trim()||extractImageIdFromUrl(url)||"image";if(IMAGE_EXTENSION_PATTERN.test(baseFilename)){return baseFilename.replace(IMAGE_EXTENSION_PATTERN,".jpg")}return`${baseFilename}.jpg`}async function downloadImageAsFile(url,filename){const downloadUrl=getOptimizedImageUrl(url,{useCase:"lightbox-image",format:"jpeg"});const res=await fetch(downloadUrl);if(!res.ok){throw new Error(`Failed to fetch image: ${res.status} ${res.statusText}`)}const blob=await res.blob();const a=document.createElement("a");a.href=URL.createObjectURL(blob);a.download=getJpegDownloadFilename(url,filename);a.click();URL.revokeObjectURL(a.href)}var MIN_ZOOM=1;var MAX_ZOOM=3;var ZOOM_STEP=.2;var IMAGE_DISPLAY_WIDTH_RATIO=.95;var IMAGE_DISPLAY_HEIGHT_RATIO=.9;var LIGHTBOX_BUTTON_BASE="w-10 h-10 md:w-12 md:h-12 rounded-full bg-[color-mix(in_srgb,var(--media-fg)_10%,transparent)] hover:bg-[color-mix(in_srgb,var(--media-fg)_20%,transparent)] flex items-center justify-center transition-all";var LIGHTBOX_BUTTON_DISABLED=`${LIGHTBOX_BUTTON_BASE} disabled:opacity-30 disabled:cursor-not-allowed`;var LIGHTBOX_ZOOM_RESET_BUTTON="h-10 md:h-12 min-w-[50px] px-2 rounded-full text-[var(--media-fg)] text-xs md:text-sm font-medium tabular-nums text-center transition-colors enabled:hover:bg-[color-mix(in_srgb,var(--media-fg)_10%,transparent)] disabled:cursor-default";function getDragClientPoint(e){if("touches"in e&&e.touches.length>0){return{clientX:e.touches[0].clientX,clientY:e.touches[0].clientY}}if("changedTouches"in e&&e.changedTouches.length>0){return{clientX:e.changedTouches[0].clientX,clientY:e.changedTouches[0].clientY}}return{clientX:e.clientX,clientY:e.clientY}}function useImageLightbox({images,filenames,enableKeyboard=false,onDownload,onShare}){const{ui}=useSiteLabels();const{imageDownloadUrl}=useMediaProtection();const isDesktopPointerDevice=useCallback(()=>{if(typeof window==="undefined"||typeof window.matchMedia!=="function"){return false}return window.matchMedia("(hover: hover) and (pointer: fine)").matches},[]);const[lightboxOpen,setLightboxOpen]=useState(false);const[lightboxIndex,setLightboxIndex]=useState(0);const[zoomLevel,setZoomLevel]=useState(1);const[position,setPosition]=useState({x:0,y:0});const[isDraggingLightbox,setIsDraggingLightbox]=useState(false);const[dragStart,setDragStart]=useState({x:0,y:0});const zoomIn=useCallback(()=>{setZoomLevel(prev=>{const newZoom=Math.min(prev+ZOOM_STEP,MAX_ZOOM);return Math.round(newZoom*10)/10})},[]);const zoomOut=useCallback(()=>{setZoomLevel(prev=>{const newZoom=Math.max(prev-ZOOM_STEP,MIN_ZOOM);const rounded=Math.round(newZoom*10)/10;if(rounded===1){setPosition({x:0,y:0})}return rounded})},[]);const resetZoom=useCallback(()=>{setZoomLevel(1);setPosition({x:0,y:0})},[]);const openLightbox=useCallback(index=>{setLightboxIndex(index);setLightboxOpen(true);setZoomLevel(1);setPosition({x:0,y:0})},[]);const closeLightbox=useCallback(()=>{setLightboxOpen(false);resetZoom()},[resetZoom]);useEffect(()=>{if(!lightboxOpen)return;return lockPageScroll()},[lightboxOpen]);const prevImage=useCallback(()=>{if(images.length<=1)return;setLightboxIndex(prev=>{if(prev===0)return prev;return prev-1});resetZoom()},[images.length,resetZoom]);const nextImage=useCallback(()=>{if(images.length<=1)return;setLightboxIndex(prev=>{if(prev===images.length-1)return prev;return prev+1});resetZoom()},[images.length,resetZoom]);useEffect(()=>{if(!lightboxOpen||!enableKeyboard)return;const handleKeyDown=e=>{const isDesktopMode=isDesktopPointerDevice();const hasZoomModifier=e.metaKey||e.ctrlKey;const isZoomInKey=e.key==="+"||e.key==="="||e.key==="NumpadAdd";const isZoomOutKey=e.key==="-"||e.key==="_"||e.key==="NumpadSubtract";const isZoomResetKey=e.key==="0"||e.key==="Numpad0";if(isDesktopMode&&(hasZoomModifier&&(isZoomInKey||isZoomOutKey||isZoomResetKey)||isZoomInKey||isZoomOutKey||isZoomResetKey)){e.preventDefault();if(isZoomInKey){zoomIn();return}if(isZoomOutKey){zoomOut();return}resetZoom();return}switch(e.key){case"Escape":closeLightbox();break;case"ArrowLeft":prevImage();break;case"ArrowRight":nextImage();break}};window.addEventListener("keydown",handleKeyDown);return()=>window.removeEventListener("keydown",handleKeyDown)},[lightboxOpen,enableKeyboard,closeLightbox,prevImage,nextImage,zoomIn,zoomOut,resetZoom,isDesktopPointerDevice]);const dragBounds=useMemo(()=>{if(zoomLevel<=1){return{maxOffsetX:0,maxOffsetY:0}}const viewportWidth=typeof window!=="undefined"?window.innerWidth:1920;const viewportHeight=typeof window!=="undefined"?window.innerHeight:1080;const imageDisplayWidth=viewportWidth*IMAGE_DISPLAY_WIDTH_RATIO;const imageDisplayHeight=viewportHeight*IMAGE_DISPLAY_HEIGHT_RATIO;const scaledWidth=imageDisplayWidth*zoomLevel;const scaledHeight=imageDisplayHeight*zoomLevel;const maxOffsetX=Math.max(0,(scaledWidth-imageDisplayWidth)/2);const maxOffsetY=Math.max(0,(scaledHeight-imageDisplayHeight)/2);return{maxOffsetX,maxOffsetY}},[zoomLevel]);const handleLightboxDragStart=useCallback(e=>{if(zoomLevel<=1)return;setIsDraggingLightbox(true);const{clientX,clientY}=getDragClientPoint(e);setDragStart({x:clientX-position.x,y:clientY-position.y})},[zoomLevel,position]);const handleLightboxDrag=useCallback(e=>{if(!isDraggingLightbox||zoomLevel<=1)return;const{clientX,clientY}=getDragClientPoint(e);let newX=clientX-dragStart.x;let newY=clientY-dragStart.y;newX=Math.max(-dragBounds.maxOffsetX,Math.min(dragBounds.maxOffsetX,newX));newY=Math.max(-dragBounds.maxOffsetY,Math.min(dragBounds.maxOffsetY,newY));setPosition({x:newX,y:newY})},[isDraggingLightbox,zoomLevel,dragStart,dragBounds]);const handleLightboxDragEnd=useCallback(()=>{setIsDraggingLightbox(false)},[]);const handleDownload=useCallback(async()=>{const imageUrl=images[lightboxIndex];if(!imageUrl)return;if(onDownload){const originalUrl2=getOriginalImageUrl(imageUrl);await onDownload(originalUrl2,lightboxIndex);return}const filename=filenames?.[lightboxIndex];const routeUrl=imageDownloadUrl(imageUrl,filename);if(routeUrl){const anchor=document.createElement("a");anchor.href=routeUrl;anchor.rel="noopener";anchor.click();return}const originalUrl=getOriginalImageUrl(imageUrl);await downloadImageAsFile(originalUrl,filename)},[images,lightboxIndex,onDownload,filenames,imageDownloadUrl]);const handleShare=useCallback(async()=>{const imageUrl=images[lightboxIndex];if(!imageUrl)return;if(onShare){await onShare(imageUrl,lightboxIndex);return}if(navigator.share){try{await navigator.share({title:ui.imageShareTitle,text:ui.imageShareText,url:imageUrl})}catch{}}else{try{await navigator.clipboard.writeText(imageUrl)}catch{}}},[images,lightboxIndex,onShare]);return{lightboxOpen,lightboxIndex,zoomLevel,position,isDraggingLightbox,openLightbox,closeLightbox,setLightboxIndex,prevImage,nextImage,zoomIn,zoomOut,resetZoom,handleLightboxDragStart,handleLightboxDrag,handleLightboxDragEnd,handleDownload,handleShare}}export{MIN_ZOOM,MAX_ZOOM,LIGHTBOX_BUTTON_BASE,LIGHTBOX_BUTTON_DISABLED,LIGHTBOX_ZOOM_RESET_BUTTON,useImageLightbox};
|
|
2
|
+
//# sourceMappingURL=chunk-NBDRYQZV.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{a as ot,b as st,c as at,d as lt,e as ct,f as ut,g as z,h as mt,j as dt,l as pt,m as j,o as gt,p as ft,q as xt,r as ht}from"./chunk-IAXVJLJ3.js";import{ba as f}from"./chunk-S2NFWI7C.js";import{a as k}from"./chunk-OU4IOHLN.js";import{a as rt}from"./chunk-6LGTFWQS.js";import{c as T}from"./chunk-CDG7S4P5.js";var x=T(rt());var Mt=T(k()),Wt={},G=(0,x.createContext)(Wt);function Kt({facts:n,children:t}){let i=(0,x.useContext)(G),r=(0,x.useMemo)(()=>!n||Object.keys(n).length===0?i:Object.keys(i).length===0?n:{...i,...n},[i,n]);return(0,Mt.jsx)(G.Provider,{value:r,children:t})}function Tt(n){return dt((0,x.useContext)(G),n)}var W=T(rt());var _t=125;function bt(n,t,i,r){let s=r&&r.length>0?r[0].trim():null,m=t?.trim()||"",l=i?.trim()||"";return n==="logo"?m||l||"logo":m?s&&!m.includes(s)?`${s} ${m}`:m:l?s&&!l.includes(s)?`${s} ${l}`:l:s||"image"}function Ft(n,t,i,r){return`${bt(n,i,void 0,r)} (${t+1})`}function St(n){let{explicitAlt:t,assetAltText:i,type:r,name:s,fallback:m,index:l,seoKeywords:A,websiteName:X}=n,p=M=>M.length<=_t?M:M.slice(0,_t);if(t&&t.trim().length>0)return p(t.trim());if(r!=="logo"&&i&&i.trim().length>0)return p(i.trim());let a=s?.trim()||m||X?.trim(),d;return l!=null?d=Ft(r,l,a||void 0,A):d=bt(r,a||void 0,void 0,A),p(d)}var o=T(k());function Ht(n){return n.includes("imagedelivery.net")||n.includes("/cdn-cgi/imagedelivery/")}function Rt(n){let t=at(n)??{x:0,y:0,w:1,h:1},i=r=>`${Math.round(r*1e4)/100}%`;return{left:i(-t.x/t.w),top:i(-t.y/t.h),width:i(1/t.w),height:i(1/t.h)}}var Ut=[{device:"mobile",suffix:"m",position:{crop:"absolute",flow:"relative"}},{device:"tablet",suffix:"t",position:{crop:"md:absolute",flow:"md:relative"}},{device:"desktop",suffix:"d",position:{crop:"lg:absolute",flow:"lg:relative"}}],zt="max-h-none max-w-none left-[var(--crop-l-m)] top-[var(--crop-t-m)] w-[var(--crop-w-m)] h-[var(--crop-h-m)] md:left-[var(--crop-l-t)] md:top-[var(--crop-t-t)] md:w-[var(--crop-w-t)] md:h-[var(--crop-h-t)] lg:left-[var(--crop-l-d)] lg:top-[var(--crop-t-d)] lg:w-[var(--crop-w-d)] lg:h-[var(--crop-h-d)]",jt=(0,W.forwardRef)(function({src:t,alt:i,altType:r,altName:s,explicitAlt:m,index:l,seoKeywords:A,websiteName:X,useCase:p="general",width:a,height:d,fit:M,responsive:Ct=!1,sizes:_,fill:c=!1,objectFit:F="cover",framing:g,deviceRatios:u,tabletInherits:v="desktop",priority:K=!1,containBackdrop:Et,className:b,style:S,onError:Pt,...D},It){let[At,vt]=(0,W.useState)(null),w=Tt({url:t}),C=c?u&&ot(u)?st(u):"absolute inset-0 h-full w-full":void 0;if(!t||At===t)return(0,o.jsx)("span",{"aria-hidden":"true",className:f("block bg-zinc-100 dark:bg-zinc-800",C,b),style:{aspectRatio:a&&d?`${a} / ${d}`:"4 / 3",...S}});let Dt=i??(r?St({explicitAlt:m,assetAltText:w?.altText,type:r,name:s,index:l,seoKeywords:A,websiteName:X}):""),B=!Ht(t),N=pt(t),E=g?.fitMode==="contain",Y=E?"contain":F,q=E?"scale-down":M,h=E?null:ct(g),H=E?"single":ft({src:t,framing:g,deviceRatios:u,tabletInherits:v}),O={ref:It,alt:Dt,loading:K?"eager":"lazy",fetchPriority:K?"high":"auto",decoding:"async",draggable:!1,onError:e=>{vt(t),Pt?.(e)}};if(H==="picture"&&u){let e=ht({src:t,useCase:p,ratios:u,framing:g,tabletInherits:v,sizes:_?{desktop:_,tablet:_,mobile:_}:void 0,maxWidth:a});if(e)return(0,o.jsxs)("picture",{className:f(c&&f("block",C)),children:[(0,o.jsx)("source",{media:e.mobile.media,srcSet:e.mobile.srcSet,sizes:e.mobile.sizes}),e.tablet?(0,o.jsx)("source",{media:e.tablet.media,srcSet:e.tablet.srcSet,sizes:e.tablet.sizes}):null,(0,o.jsx)("img",{...O,src:e.desktop.src,srcSet:e.desktop.srcSet,sizes:e.desktop.sizes,width:c?void 0:e.desktop.width,height:c?void 0:e.desktop.height??void 0,className:f(C,b),style:{objectFit:F,...S},...D})]})}if(H==="single-trim"&&u?.desktop){let e=xt({src:t,useCase:p,width:a,ratio:u.desktop,framing:g,tabletInherits:v});return(0,o.jsx)("img",{...O,src:e.src,width:c?void 0:e.width,height:c?void 0:e.height,className:f(C,b),style:{objectFit:F,...S},...D})}if(H==="css-fallback"&&c&&u){let e={},Q=[],tt=null;for(let{device:et,suffix:L,position:kt}of Ut){let nt=u[et],I={left:"0%",top:"0%",width:"100%",height:"auto"},$="flow";if(nt){$="crop";let it=ut({framing:g,device:et,targetRatio:nt,tabletInherits:v,source:g?.source??null});I=it.derived?{left:"0%",top:"0%",width:"100%",height:"100%"}:Rt(it.rect)}e[`--crop-l-${L}`]=I.left,e[`--crop-t-${L}`]=I.top,e[`--crop-w-${L}`]=I.width,e[`--crop-h-${L}`]=I.height,$!==tt&&Q.push(kt[$]),tt=$}let $t=N?t:j(t,{useCase:p,...a!=null?{width:a}:{}});return(0,o.jsx)("img",{...O,src:$t,referrerPolicy:B?"no-referrer":void 0,className:f(Q,zt,b),style:{...e,objectFit:"cover",...h?{objectPosition:z(h)}:{},...S},...D})}let P={useCase:p};a!=null&&(P.width=a),d!=null&&(P.height=d),q!=null&&(P.fit=q),h&&(P.focus=h);let R=Ct&&!N?gt(t):null,wt=N?t:R?.src??j(t,P),Nt=R?.srcSet,Ot=_??R?.sizes,Z=Et??(c&&Y==="contain"||E),y=mt(w?.edgeColor),yt=lt(g?.padColor),U=Z?yt??(y&&y!=="transparent"?y:void 0):void 0,V=Z&&!U&&!y&&w?.lqip&&!N?w.lqip:void 0,Lt={objectFit:Y,...h?{objectPosition:z(h)}:{},...U?{backgroundColor:U}:{},...S},J=(0,o.jsx)("img",{...O,src:wt,srcSet:Nt,sizes:Ot,width:c?void 0:a,height:c?void 0:d,referrerPolicy:B?"no-referrer":void 0,className:f(C,b),style:Lt,...D});return V?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)("span",{"aria-hidden":"true","data-testid":"site-image-blur-backdrop",className:"pointer-events-none absolute inset-0 overflow-hidden",children:(0,o.jsx)("img",{src:V,alt:"",className:"h-full w-full scale-125 object-cover blur-xl"})}),J]}):J});jt.displayName="SiteImage";export{Kt as a,Tt as b,jt as c};
|
|
2
|
+
//# sourceMappingURL=chunk-NGRNPVON.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{a as v}from"./chunk-6LGTFWQS.js";import{a as s}from"./chunk-CDG7S4P5.js";var l=s(i=>{"use strict";var m=v();function y(r){var e="https://react.dev/errors/"+r;if(1<arguments.length){e+="?args[]="+encodeURIComponent(arguments[1]);for(var t=2;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t])}return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function c(){}var n={d:{f:c,r:function(){throw Error(y(522))},D:c,C:c,L:c,m:c,X:c,S:c,M:c},p:0,findDOMNode:null},O=Symbol.for("react.portal");function S(r,e,t){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:O,key:f==null?null:""+f,children:r,containerInfo:e,implementation:t}}var u=m.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function a(r,e){if(r==="font")return"";if(typeof e=="string")return e==="use-credentials"?e:""}i.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=n;i.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)throw Error(y(299));return S(r,e,null,t)};i.flushSync=function(r){var e=u.T,t=n.p;try{if(u.T=null,n.p=2,r)return r()}finally{u.T=e,n.p=t,n.d.f()}};i.preconnect=function(r,e){typeof r=="string"&&(e?(e=e.crossOrigin,e=typeof e=="string"?e==="use-credentials"?e:"":void 0):e=null,n.d.C(r,e))};i.prefetchDNS=function(r){typeof r=="string"&&n.d.D(r)};i.preinit=function(r,e){if(typeof r=="string"&&e&&typeof e.as=="string"){var t=e.as,f=a(t,e.crossOrigin),g=typeof e.integrity=="string"?e.integrity:void 0,d=typeof e.fetchPriority=="string"?e.fetchPriority:void 0;t==="style"?n.d.S(r,typeof e.precedence=="string"?e.precedence:void 0,{crossOrigin:f,integrity:g,fetchPriority:d}):t==="script"&&n.d.X(r,{crossOrigin:f,integrity:g,fetchPriority:d,nonce:typeof e.nonce=="string"?e.nonce:void 0})}};i.preinitModule=function(r,e){if(typeof r=="string")if(typeof e=="object"&&e!==null){if(e.as==null||e.as==="script"){var t=a(e.as,e.crossOrigin);n.d.M(r,{crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0})}}else e==null&&n.d.M(r)};i.preload=function(r,e){if(typeof r=="string"&&typeof e=="object"&&e!==null&&typeof e.as=="string"){var t=e.as,f=a(t,e.crossOrigin);n.d.L(r,t,{crossOrigin:f,integrity:typeof e.integrity=="string"?e.integrity:void 0,nonce:typeof e.nonce=="string"?e.nonce:void 0,type:typeof e.type=="string"?e.type:void 0,fetchPriority:typeof e.fetchPriority=="string"?e.fetchPriority:void 0,referrerPolicy:typeof e.referrerPolicy=="string"?e.referrerPolicy:void 0,imageSrcSet:typeof e.imageSrcSet=="string"?e.imageSrcSet:void 0,imageSizes:typeof e.imageSizes=="string"?e.imageSizes:void 0,media:typeof e.media=="string"?e.media:void 0})}};i.preloadModule=function(r,e){if(typeof r=="string")if(e){var t=a(e.as,e.crossOrigin);n.d.m(r,{as:typeof e.as=="string"&&e.as!=="script"?e.as:void 0,crossOrigin:t,integrity:typeof e.integrity=="string"?e.integrity:void 0})}else n.d.m(r)};i.requestFormReset=function(r){n.d.r(r)};i.unstable_batchedUpdates=function(r,e){return r(e)};i.useFormState=function(r,e,t){return u.H.useFormState(r,e,t)};i.useFormStatus=function(){return u.H.useHostTransitionStatus()};i.version="19.2.1"});var E=s((R,_)=>{"use strict";function o(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(o)}catch(r){console.error(r)}}o(),_.exports=l()});export{E as a};
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
react-dom/cjs/react-dom.production.js:
|
|
5
|
+
(**
|
|
6
|
+
* @license React
|
|
7
|
+
* react-dom.production.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*)
|
|
14
|
+
*/
|
|
15
|
+
//# sourceMappingURL=chunk-NSY72ZYX.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function clampText(value,max){if(value===null||value===void 0)return value;if(value.length<=max)return value;let index=0;for(let count=0;index<value.length&&count<max;count++){index+=(value.codePointAt(index)??0)>65535?2:1}return value.slice(0,index)}export{clampText};
|
|
2
|
+
//# sourceMappingURL=chunk-O2SYHUQF.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var FULL_WIDTH_LOCALE=/^(zh|ja)\b/i;var FULL_WIDTH_SCRIPT=/[\p{Script=Han}\p{Script=Hiragana}\p{Script=Katakana}]/u;function usesFullWidthPunctuation(locale){return FULL_WIDTH_LOCALE.test(locale)}function formatParenthetical(locale,text,note){return usesFullWidthPunctuation(locale)?`${text}\uFF08${note}\uFF09`:`${text} (${note})`}function separatorsFor(text){return FULL_WIDTH_SCRIPT.test(text)?{labelValue:"\uFF1A",item:"\uFF1B"}:{labelValue:": ",item:"; "}}export{formatParenthetical,separatorsFor};
|
|
2
|
+
//# sourceMappingURL=chunk-OIKRLEW6.js.map
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import{a as u}from"./chunk-CDG7S4P5.js";var E=u(t=>{"use strict";var v=Symbol.for("react.transitional.element"),d=Symbol.for("react.fragment");function o(n,r,e){var s=null;if(e!==void 0&&(s=""+e),r.key!==void 0&&(s=""+r.key),"key"in r){e={};for(var l in r)l!=="key"&&(e[l]=r[l])}else e=r;return r=e.ref,{$$typeof:v,type:n,key:s,ref:r!==void 0?r:null,props:e}}t.Fragment=d;t.jsx=o;t.jsxs=o});var j=u((x,i)=>{"use strict";i.exports=E()});export{j as a};
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
react/cjs/react-jsx-runtime.production.js:
|
|
5
|
+
(**
|
|
6
|
+
* @license React
|
|
7
|
+
* react-jsx-runtime.production.js
|
|
8
|
+
*
|
|
9
|
+
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
10
|
+
*
|
|
11
|
+
* This source code is licensed under the MIT license found in the
|
|
12
|
+
* LICENSE file in the root directory of this source tree.
|
|
13
|
+
*)
|
|
14
|
+
*/
|
|
15
|
+
//# sourceMappingURL=chunk-OU4IOHLN.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function x(e){return e.normalize("NFKC").replace(/\s+/g,"").toUpperCase()}function a(e){return e.replace(/[-./]/g,"")}var s={AT:{prefix:"AT",pattern:/^ATU\d{8}$/,example:"ATU12345678"},BE:{prefix:"BE",pattern:/^BE[01]\d{9}$/,example:"BE0123456789"},BG:{prefix:"BG",pattern:/^BG\d{9,10}$/,example:"BG123456789"},CY:{prefix:"CY",pattern:/^CY\d{8}[A-Z]$/,example:"CY12345678Z"},CZ:{prefix:"CZ",pattern:/^CZ\d{8,10}$/,example:"CZ12345678"},DE:{prefix:"DE",pattern:/^DE\d{9}$/,example:"DE123456789"},DK:{prefix:"DK",pattern:/^DK\d{8}$/,example:"DK12345678"},EE:{prefix:"EE",pattern:/^EE\d{9}$/,example:"EE123456789"},GR:{prefix:"EL",pattern:/^EL\d{9}$/,example:"EL123456789"},ES:{prefix:"ES",pattern:/^ES[A-Z0-9]\d{7}[A-Z0-9]$/,example:"ESA1234567Z"},FI:{prefix:"FI",pattern:/^FI\d{8}$/,example:"FI12345678"},FR:{prefix:"FR",pattern:/^FR[A-HJ-NP-Z0-9]{2}\d{9}$/,example:"FRAB123456789"},HR:{prefix:"HR",pattern:/^HR\d{11}$/,example:"HR12345678912"},HU:{prefix:"HU",pattern:/^HU\d{8}$/,example:"HU12345678"},IE:{prefix:"IE",pattern:/^IE(\d{7}[A-Z]{1,2}|\d[A-Z+*]\d{5}[A-Z])$/,example:"IE1234567AB"},IT:{prefix:"IT",pattern:/^IT\d{11}$/,example:"IT12345678912"},LT:{prefix:"LT",pattern:/^LT(\d{9}|\d{12})$/,example:"LT123456789"},LU:{prefix:"LU",pattern:/^LU\d{8}$/,example:"LU12345678"},LV:{prefix:"LV",pattern:/^LV\d{11}$/,example:"LV12345678912"},MT:{prefix:"MT",pattern:/^MT\d{8}$/,example:"MT12345678"},NL:{prefix:"NL",pattern:/^NL\d{9}B\d{2}$/,example:"NL123456789B01"},PL:{prefix:"PL",pattern:/^PL\d{10}$/,example:"PL1234567890"},PT:{prefix:"PT",pattern:/^PT\d{9}$/,example:"PT123456789"},RO:{prefix:"RO",pattern:/^RO\d{2,10}$/,example:"RO1234567891"},SE:{prefix:"SE",pattern:/^SE\d{12}$/,example:"SE123456789123"},SI:{prefix:"SI",pattern:/^SI\d{8}$/,example:"SI12345678"},SK:{prefix:"SK",pattern:/^SK\d{10}$/,example:"SK1234567891"}},F=Object.keys(s),d={type:"eu_vat",countries:F,stripeType:"eu_vat",normalize:(e,t)=>{let r=a(e),n=s[t];return n&&r&&!r.startsWith(n.prefix)?`${n.prefix}${r}`:r},validate:(e,t)=>s[t]?.pattern.test(e)?null:"FORMAT",enforcement:"warn",hasChecksum:!1,example:e=>s[e]?.example??"",maxLength:20,inputMode:"text"};var u={type:"hk_br",countries:["HK"],stripeType:"hk_br",normalize:e=>{let t=a(e);return/^\d{16}$/.test(t)&&/\D/.test(e)?t.slice(0,8):t},validate:e=>/^\d{8}$/.test(e)?null:"FORMAT",enforcement:"block",hasChecksum:!1,example:()=>"12345678",maxLength:24,inputMode:"numeric"};var f={type:"jp_trn",countries:["JP"],stripeType:"jp_trn",normalize:e=>{let t=a(e);return/^\d{13}$/.test(t)?`T${t}`:t},validate:e=>/^T\d{13}$/.test(e)?null:"FORMAT",enforcement:"block",hasChecksum:!1,example:()=>"T1234567890123",maxLength:20,inputMode:"text"};var C=[1,3,7,1,3,7,1,3,5];function S(e){if(!/^\d{10}$/.test(e))return!1;let t=e.split("").map(Number),r=0;for(let n=0;n<9;n++)r+=t[n]*C[n];return r+=Math.floor(t[8]*5/10),(10-r%10)%10===t[9]}var c={type:"kr_brn",countries:["KR"],stripeType:"kr_brn",normalize:e=>a(e),validate:e=>/^\d{10}$/.test(e)?S(e)?null:"CHECKSUM":"FORMAT",enforcement:"block",hasChecksum:!0,example:()=>"220-81-62517",maxLength:14,inputMode:"numeric"};var T={type:"my_itn",countries:["MY"],stripeType:"my_itn",normalize:e=>a(e),validate:e=>/^[A-Z]{1,2}\d{8,11}$/.test(e)?null:"FORMAT",enforcement:"warn",hasChecksum:!1,example:()=>"C1234567890",maxLength:16,inputMode:"text"},y={type:"my_sst",countries:["MY"],stripeType:"my_sst",normalize:e=>a(e),validate:e=>/^[A-Z]\d{14}$/.test(e)?null:"FORMAT",enforcement:"warn",hasChecksum:!1,example:()=>"A12-3456-78912345",maxLength:20,inputMode:"text"};var A=[/^\d{8}[A-Z]$/,/^(18|19|20)\d{2}\d{5}[A-Z]$/,/^[TSR]\d{2}[A-Z]{2}\d{4}[A-Z]$/],I={type:"sg_uen",countries:["SG"],stripeType:"sg_uen",normalize:e=>a(e),validate:e=>A.some(t=>t.test(e))?null:"FORMAT",enforcement:"warn",hasChecksum:!1,example:()=>"201912345K",maxLength:12,inputMode:"text"};var h=[1,2,1,2,1,2,4,1],M=e=>e<10?e:Math.floor(e/10)+e%10;function R(e){if(!/^\d{8}$/.test(e))return!1;let t=e.split("").map(Number),r=t.reduce((n,o,i)=>n+M(o*h[i]),0);return r%5===0||t[6]===7&&(r+1)%5===0}var g={type:"tw_vat",countries:["TW"],stripeType:"tw_vat",normalize:e=>a(e),validate:e=>/^\d{8}$/.test(e)?R(e)?null:"CHECKSUM":"FORMAT",enforcement:"block",hasChecksum:!0,example:()=>"04595252",maxLength:10,inputMode:"numeric"};var m=[g,u,f,c,I,T,y,d],E=new Map(m.map(e=>[e.type,e]));function se(e){return E.get(e)}function k(e){let t=e.toUpperCase();return m.filter(r=>r.countries.includes(t)).map(r=>r.type)}function $(){return[...new Set(m.flatMap(e=>e.countries))]}function me(e){let t=e.country.toUpperCase(),r=x(e.value),n=e.type??k(t)[0]??null,o=n?E.get(n):void 0;if(!o||!o.countries.includes(t))return{ok:!1,country:t,type:null,issue:"UNSUPPORTED",enforcement:"warn",normalized:r};if(!r)return{ok:!1,country:t,type:o.type,issue:"EMPTY",enforcement:"block",normalized:""};let i=o.normalize(r,t),l=o.validate(i,t);return l?{ok:!1,country:t,type:o.type,issue:l,enforcement:o.enforcement,normalized:i}:{ok:!0,country:t,type:o.type,normalized:i}}function L(e){return e.countries.length>0?e.countries:$()}function de(e,t){let r=L(e);if(e.defaultCountry&&r.includes(e.defaultCountry))return e.defaultCountry;let n=t?.toUpperCase();return n&&r.includes(n)?n:r[0]??""}export{se as a,k as b,me as c,L as d,de as e};
|
|
2
|
+
//# sourceMappingURL=chunk-PR2NRUEI.js.map
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{a as B,b as q}from"./chunk-BKNL7ZCI.js";import{a as V}from"./chunk-OU4IOHLN.js";import{a as _e}from"./chunk-6LGTFWQS.js";import{c as A}from"./chunk-CDG7S4P5.js";var W="X-Kanorio-Server-Key",j="X-Kanorio-Visitor-IP";var Oe="knr_sk_";var Rt=`${Oe}${"0".repeat(43)}`;function G(e){let t=e.split(".");if(t.length!==4)return null;let r=[];for(let n of t){if(!/^\d{1,3}$/.test(n))return null;let o=Number(n);if(o>255)return null;r.push(o)}return r}function Pe(e){if(!e.includes(":")||e.includes("%"))return null;let t=e,r=null,n=e.lastIndexOf(":"),o=e.slice(n+1);if(o.includes(".")){if(r=G(o),!r)return null;t=`${e.slice(0,n)}:0:0`}let i=t.indexOf("::");if(i!==t.lastIndexOf("::"))return null;let s;if(i>=0){let l=t.slice(0,i).split(":").filter(Boolean),c=t.slice(i+2).split(":").filter(Boolean),d=8-l.length-c.length;if(d<1)return null;s=[...l,...Array(d).fill("0"),...c]}else s=t.split(":");if(s.length!==8)return null;let a=[];for(let l of s){if(!/^[0-9a-fA-F]{1,4}$/.test(l))return null;let c=parseInt(l,16);a.push(c>>8,c&255)}return r&&a.splice(12,4,...r),a}function Ie(e){let t=e.trim();if(!t||t.length>45)return null;let r=G(t);if(r)return{version:4,bytes:r};let n=Pe(t);return n?n.slice(0,10).every(i=>i===0)&&n[10]===255&&n[11]===255?{version:4,bytes:n.slice(12)}:{version:6,bytes:n}:null}function Ae(e,t,r){let n=Math.floor(r/8);for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;let o=r%8;if(o===0)return!0;let i=255<<8-o&255;return((e[n]??0)&i)===((t[n]??0)&i)}var Le=[[[0,0,0,0],8],[[10,0,0,0],8],[[100,64,0,0],10],[[127,0,0,0],8],[[169,254,0,0],16],[[172,16,0,0],12],[[192,0,0,0],24],[[192,0,2,0],24],[[192,168,0,0],16],[[198,18,0,0],15],[[198,51,100,0],24],[[203,0,113,0],24],[[224,0,0,0],3]],Ke=[[[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],127],[[252,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],7],[[254,128,0,0,0,0,0,0,0,0,0,0,0,0,0,0],10],[[255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],8],[[32,1,13,184,0,0,0,0,0,0,0,0,0,0,0,0],32]];function He(e){return!(e.version===4?Le:Ke).some(([r,n])=>Ae(e.bytes,r,n))}function Ue(e){if(e.version===4)return e.bytes.join(".");let t=[];for(let r=0;r<16;r+=2)t.push(((e.bytes[r]??0)<<8|(e.bytes[r+1]??0)).toString(16));return t.join(":")}function z(e){if(!e)return null;let t=Ie(e);return!t||!He(t)?null:Ue(t)}var De=/^(localhost|127\.0\.0\.1|\[::1\])$/i;function Y(){return typeof window<"u"&&typeof document<"u"}async function J(e,t){let r=e.serverKey?.trim();if(!r)return null;if(Y())throw new Error("@kanorio/sdk: `serverKey` must never be used in the browser. Call Kanorio from your server (route handler, server action, middleware) and keep the key in an environment variable.");let n=new URL(t);if(n.protocol!=="https:"&&!De.test(n.hostname))throw new Error("@kanorio/sdk: `serverKey` requires an https site URL.");let o={[W]:r},i=typeof e.visitorIp=="function"?await e.visitorIp():e.visitorIp,s=z(i);return s&&(o[j]=s),{headers:o,redirect:"error"}}function Q(e){return e.headers.get("cf-mitigated")==="challenge"}var X="EDGE_CHALLENGE";function Z(e){return Y()?"Kanorio's edge challenged this request. In a browser this usually clears after the visitor passes the check; retry the request.":e?`Kanorio's edge challenged this server-side request even though a server key was sent. Check that the key is a server key (starts with knr_sk_, purpose "Website server") and that it is sent to the site's own hostname.`:'Kanorio\'s edge challenged this server-side request. Server-side writes need a server key: create one under Site settings > Developer (purpose "Website server"), store it as KANORIO_SERVER_KEY, and pass `serverKey` to the client. Do not paste the key into chat or commit it.'}var ee="1.2.0",te="x-kanorio-sdk-version";function Me(e){if(typeof e!="object"||e===null)return!1;let t=e.error;if(typeof t!="object"||t===null)return!1;let{code:r,message:n}=t;return typeof r=="string"&&typeof n=="string"}var m=class extends Error{constructor(r,n,o,i,s,a){super(o);this.code=r;this.status=n;this.details=i;this.retryAfter=s;this.availableAt=a;this.name="KanorioApiError"}},v=class extends m{constructor(t){super(X,403,t),this.name="KanorioEdgeChallengeError"}};function Ne(e,t,r){let n=r.get("retry-after"),o=n?Number.parseInt(n,10):void 0;if(Me(t)){let a=t.error.details,l=typeof a?.retryAfter=="number"?a.retryAfter:void 0,c=typeof a?.availableAt=="string"?a.availableAt:void 0;return new m(t.error.code,e,t.error.message,t.error.details,o??l,c)}let i=e===401?"UNAUTHENTICATED":e===404?"NOT_FOUND":e===429?"RATE_LIMITED":e>=500?"UPSTREAM_ERROR":"HTTP_ERROR",s=typeof t=="string"?t.slice(0,200):"";return new m(i,e,s||`Request failed with HTTP ${e}.`,void 0,o)}function $e(e,t,r){if(!e.has("deprecation"))return null;let n=e.get("link")??"",o=i=>n.match(new RegExp(`<([^>]+)>;\\s*rel="${i}"`))?.[1]??null;return{method:t,path:r,sunset:e.get("sunset"),successor:o("successor-version"),policy:o("deprecation")}}function Fe(e,t,r){let n=new URL(t.replace(/^\//,""),e.endsWith("/")?e:`${e}/`);if(r)for(let[o,i]of Object.entries(r)){let s=Array.isArray(i)?i:[i];for(let a of s)a!=null&&n.searchParams.append(o,String(a))}return n.toString()}function R(e){let t=e.fetch??globalThis.fetch;if(!t)throw new Error("@kanorio/sdk: global fetch is not available; pass `fetch` in options.");let r=new Set,n=e.onDeprecation??(s=>{let a=`${s.method} ${s.path}`;r.has(a)||(r.add(a),console.warn(`[kanorio] ${a} is deprecated${s.sunset?` (sunset ${s.sunset})`:""}${s.successor?`; use ${s.successor}`:""}.`))});async function o(s,a,l={}){let c=new Headers(typeof e.headers=="function"?await e.headers():e.headers);new Headers(l.headers).forEach((y,h)=>c.set(h,y)),c.set("accept","application/json"),typeof document>"u"&&(c.set(te,ee),e.userAgent&&c.set("user-agent",e.userAgent));let d;l.body!==void 0&&(c.set("content-type","application/json"),d=JSON.stringify(l.body));let p=Fe(e.baseUrl,a,l.query),g=await J(e,p);if(g)for(let[y,h]of Object.entries(g.headers))c.set(y,h);let f=e.timeoutMs?new AbortController:null,x=f?setTimeout(()=>f.abort(),e.timeoutMs):null;f&&l.signal&&l.signal.addEventListener("abort",()=>f.abort(),{once:!0});try{return await t(p,{method:s,headers:c,body:d,signal:f?.signal??l.signal,...g?{redirect:g.redirect}:{}})}finally{x&&clearTimeout(x)}}async function i(s,a,l={}){let c=await o(s,a,l);if(Q(c))throw new v(Z(!!e.serverKey));let d=$e(c.headers,s,a);d&&n(d);let p=await c.text(),g=p;if(p)try{g=JSON.parse(p)}catch{g=p}else g=void 0;if(!c.ok)throw Ne(c.status,g,c.headers);return g}return{request:i,raw:o}}var Ve=[{source:"/sitemap.xml",apiPath:"/seo/sitemap.xml"},{source:"/robots.txt",apiPath:"/seo/robots.txt"},{source:"/llms.txt",apiPath:"/seo/llms.txt"},{source:"/llms-full.txt",apiPath:"/seo/llms-full.txt"},{source:"/feed.xml",apiPath:"/feed"},{source:"/rss.xml",apiPath:"/feed"},{source:"/feed.atom",apiPath:"/feed.atom"}];function Be(e){let t=E(e.siteUrl),r=Ve.map(n=>({source:n.source,destination:`${t}${n.apiPath}`}));return e.framework==="astro"?Object.fromEntries(r.map(n=>[n.source,n.destination])):(r.push({source:"/:key([a-f0-9]{32}).txt",destination:`${t}/seo/indexnow-key.txt`}),r)}function qe(e){return e.replace(/</g,"\\u003c").replace(/>/g,"\\u003e").replace(/&/g,"\\u0026").replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}async function We(e){let t=e.fetch??globalThis.fetch,r=(e.path??"/").trim(),n=r.startsWith("/")?r:`/${r}`,o=`${E(e.siteUrl)}/seo/jsonld?path=${encodeURIComponent(n)}`,i=await t(o);if(!i.ok)return null;let s=await i.json();return{jsonLd:s,scriptJson:qe(JSON.stringify(s)),cacheTags:T(i.headers)}}async function je(e){let t=e.fetch??globalThis.fetch;try{let r=await t(`${E(e.siteUrl)}/seo/sitemap`);if(!r.ok)return null;let n=await r.json();return typeof n.siteUrl!="string"||!Array.isArray(n.urls)?null:{siteUrl:n.siteUrl,urls:n.urls,cacheTags:T(r.headers)}}catch{return null}}function re(e){function t(r){return Be({siteUrl:e.siteUrl,framework:r.framework})}return{rewrites:t,jsonLd:(r="/")=>We({siteUrl:e.siteUrl,path:r,fetch:e.fetch}),sitemapEntries:()=>je({siteUrl:e.siteUrl,fetch:e.fetch})}}function Ge(e,t){return e.replace(/\{([^}]+)\}/g,(r,n)=>{let o=t?.[n];if(o==null)throw new Error(`@kanorio/sdk: missing path parameter "${n}" for ${e}`);return encodeURIComponent(String(o))})}function _(e){let t=r=>(n,o)=>{let i=o??{},s={query:i.query,body:i.body,headers:i.headers,signal:i.signal};return e.request(r,Ge(n,i.params),s)};return{get:t("GET"),post:t("POST"),put:t("PUT"),patch:t("PATCH"),delete:t("DELETE"),http:e}}var ne="x-kanorio-cache-tags";function ze(e){let t=[],r=new Set;for(let n of e){let o=n.trim();!o||r.has(o)||(r.add(o),t.push(o))}return t}function oe(e){return e?ze(e.split(/\s+/)):[]}var se="x-kanorio-preview";function E(e){return`${e.replace(/\/+$/,"")}/api/v1`}function K(e){let{siteUrl:t,previewToken:r,headers:n,...o}=e,s=_(R({...o,headers:r===void 0?n:async()=>{let l=new Headers(typeof n=="function"?await n():n),c=typeof r=="function"?await r():r;return c&&l.set(se,c),l},baseUrl:E(t)})),a=re({siteUrl:t,fetch:o.fetch});return Object.assign(s,{seo:a})}var L=ne;function T(e){if(!e)return[];let t=typeof e.get=="function"?e.get(L):e[L]??e["X-Kanorio-Cache-Tags"];return oe(t)}function ie(e){return`${e.replace(/\/+$/,"")}/api/v1/customer`}async function ae(e){let t=typeof e=="function"?await e():e;return t||null}function O(e){let{siteUrl:t,token:r,headers:n,...o}=e,i=R({...o,baseUrl:ie(t),headers:async()=>{let s=new Headers(n),a=await ae(r);return a&&s.set("authorization",`Bearer ${a}`),s}});return _(i)}var b="kanorio.customer.token";function Ye(){try{return typeof localStorage>"u"?void 0:localStorage}catch{return}}function C(e,t=Ye()){try{e?t?.setItem(b,e):t?.removeItem(b)}catch{}}function S(e){return{...e,ok:!0}}function H(e){let t=O(e),r=R({...e,baseUrl:`${e.siteUrl.replace(/\/+$/,"")}/api/v1`}),n=o=>o instanceof m?{ok:!1,code:o.code,...o.availableAt?{availableAt:o.availableAt}:{}}:{ok:!1,code:"NETWORK_ERROR"};return{async openUnit(o,i,s){try{if(!await ae(e.token))return S(await r.request("POST",`units/${encodeURIComponent(o)}/open`,{body:{mode:i}}));let l=s?.attachmentId?{mode:i,attachmentId:s.attachmentId}:{mode:i};return S(await t.post("/units/{id}/open",{params:{id:o},query:e.locale?{locale:e.locale}:{},body:l}))}catch(a){return n(a)}},async reportProgress(o){try{return S(await t.post("/progress",{body:o}))}catch(i){return n(i)}},async submitQuiz(o){try{return S(await t.post("/units/{id}/quiz",{params:{id:o.unitId},body:{answers:o.answers}}))}catch(i){return n(i)}},async getCertificate(o){try{return S(await t.get("/deliverables/{deliverableId}/certificate",{params:{deliverableId:o}}))}catch(i){return n(i)}},async getTranscript(o,i){try{let s=i??e.locale;return S(await t.get("/units/{id}/transcript",{params:{id:o},query:s?{locale:s}:{}}))}catch(s){return n(s)}}}}var U="kanorio.customer.pkce";function Je(e){return{accessToken:e.access_token,tokenType:e.token_type,expiresIn:e.expires_in,expiresAt:e.expires_at,refreshToken:e.refresh_token,refreshTokenExpiresIn:e.refresh_token_expires_in,contactId:e.contactId}}function le(e){let t="";for(let r of e)t+=String.fromCharCode(r);return btoa(t).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")}function ce(e=32){let t=new Uint8Array(e);return crypto.getRandomValues(t),le(t)}async function ue(){let e=ce(32),t=await crypto.subtle.digest("SHA-256",new TextEncoder().encode(e));return{verifier:e,challenge:le(new Uint8Array(t)),method:"S256"}}function de(e){let t=e.siteUrl.replace(/\/+$/,""),r=new URL(`${t}${e.localeRoot??""}/account/login`);return r.searchParams.set("client_id",e.clientId),r.searchParams.set("redirect_uri",e.redirectUri),r.searchParams.set("code_challenge",e.codeChallenge),r.searchParams.set("code_challenge_method","S256"),r.searchParams.set("state",e.state),r.toString()}function Qe(){let e=new URL(window.location.href);return e.searchParams.delete("code"),e.searchParams.delete("state"),e.hash="",e.toString()}async function Xe(e){let t=e.storage??sessionStorage,r=e.redirectUri??Qe(),n=await ue(),o=ce(16);t.setItem(U,JSON.stringify({verifier:n.verifier,state:o,redirectUri:r}));let i=de({siteUrl:e.siteUrl,clientId:e.clientId,redirectUri:r,codeChallenge:n.challenge,state:o,localeRoot:e.localeRoot});(e.navigate??(s=>window.location.assign(s)))(i)}async function Ze(e){let t=new URL(window.location.href),r=t.searchParams.get("code"),n=t.searchParams.get("state");if(!r)return null;let o=e.storage??sessionStorage,i=o.getItem(U);o.removeItem(U);let s=i?JSON.parse(i):null;if(!s||s.state!==n)throw new Error("Hosted sign-in state mismatch; start the sign-in again.");e.cleanUrl!==!1&&(t.searchParams.delete("code"),t.searchParams.delete("state"),window.history.replaceState(window.history.state,"",t.toString()));let a=await pe({siteUrl:e.siteUrl,clientId:e.clientId,code:r,codeVerifier:s.verifier,redirectUri:s.redirectUri});return e.storeToken!==!1&&C(a.accessToken),a}async function pe(e){let r=await O({siteUrl:e.siteUrl,serverKey:e.serverKey,visitorIp:e.visitorIp}).post("/auth/oauth2/token",{body:{grant_type:"authorization_code",code:e.code,code_verifier:e.codeVerifier,redirect_uri:e.redirectUri,client_id:e.clientId}});return Je(r)}var u=A(_e(),1);var et="en-US",D={ar:()=>import("./ar-AUQCHHZG.js"),bg:()=>import("./bg-QWC2KG3G.js"),bn:()=>import("./bn-BHRS66N3.js"),cs:()=>import("./cs-NZW6FBFY.js"),da:()=>import("./da-PZ32KKTE.js"),de:()=>import("./de-MVL4XGYR.js"),el:()=>import("./el-G2AWU43W.js"),"en-AU":()=>import("./en-AU-Q2O2HPJ2.js"),"en-CA":()=>import("./en-CA-PVKXM3WS.js"),"en-GB":()=>import("./en-GB-Y5QRPC7S.js"),"en-US":()=>import("./en-US-EKS52JBW.js"),en:()=>import("./en-SAXQF5YW.js"),"es-419":()=>import("./es-419-VSZWGONE.js"),"es-ES":()=>import("./es-ES-7L55KPLO.js"),fa:()=>import("./fa-OYP2Q5EV.js"),fi:()=>import("./fi-J6NJBPNK.js"),"fr-CA":()=>import("./fr-CA-PWWAPLBH.js"),"fr-FR":()=>import("./fr-FR-FMLQPLOD.js"),gu:()=>import("./gu-BREQK3GJ.js"),he:()=>import("./he-VXZCGAHY.js"),hi:()=>import("./hi-F7Y62LAZ.js"),hu:()=>import("./hu-L6W5O2G5.js"),id:()=>import("./id-DCV57AQB.js"),it:()=>import("./it-JICU5WVL.js"),ja:()=>import("./ja-52MBIM3T.js"),km:()=>import("./km-PHVYTPLT.js"),kn:()=>import("./kn-5DYCOYAN.js"),ko:()=>import("./ko-FZIJZG6K.js"),lo:()=>import("./lo-YRHYLRZC.js"),ml:()=>import("./ml-QO64O4H6.js"),mr:()=>import("./mr-5WLN37JQ.js"),ms:()=>import("./ms-PIAATVMD.js"),my:()=>import("./my-3J665CWK.js"),nb:()=>import("./nb-F33WYJ6T.js"),ne:()=>import("./ne-AAIECB2W.js"),"nl-BE":()=>import("./nl-BE-SHZLAL5T.js"),"nl-NL":()=>import("./nl-NL-PHRY43UB.js"),nn:()=>import("./nn-S3SNETRB.js"),pa:()=>import("./pa-P2GAYL5A.js"),pl:()=>import("./pl-SGPLZAER.js"),"pt-BR":()=>import("./pt-BR-WKEKB5CG.js"),"pt-PT":()=>import("./pt-PT-AJZQS2C6.js"),ro:()=>import("./ro-HRV64STT.js"),ru:()=>import("./ru-7U566HR4.js"),si:()=>import("./si-5VUM5FGR.js"),sv:()=>import("./sv-UOGO55PW.js"),sw:()=>import("./sw-KVAYRFED.js"),ta:()=>import("./ta-MNWTH3F5.js"),te:()=>import("./te-5SBVH4OF.js"),th:()=>import("./th-2GWK7DBB.js"),tl:()=>import("./tl-OCD2O6J3.js"),tr:()=>import("./tr-VFMHVRQX.js"),uk:()=>import("./uk-PGHXMWJR.js"),ur:()=>import("./ur-4CR64XUI.js"),vi:()=>import("./vi-U7OT2LM7.js"),"zh-CN":()=>import("./zh-CN-CCYHPSVA.js"),"zh-HK":()=>import("./zh-HK-HE2T63O2.js"),"zh-Hant":()=>import("./zh-Hant-GBQLGJDF.js")},Xt=Object.keys(D);function tt(e){return e&&e in D?e:et}async function ge(e){return(await D[tt(e)]()).default}var rt="kanorio-elements",nt="kanorio-popup",ot="kanorio-part",P="data-kanorio-brand";function er(e,t,r){t?e.setAttribute("data-kanorio-theme",t):e.removeAttribute("data-kanorio-theme"),r?e.setAttribute(P,r):e.removeAttribute(P)}var st=`:is(.${rt}, .${nt}, .${ot})`,me=[".dark",'[data-theme="dark"]'],tr=me.join(", "),fe=me.map(e=>`${e} *`).join(", "),ye=['[data-kanorio-theme="dark"]','[data-kanorio-theme="dark"] *',`[data-kanorio-theme="auto"]:where(${fe})`,`[data-kanorio-theme="auto"]:where(${fe}) *`].join(", "),he='[data-kanorio-theme="auto"], [data-kanorio-theme="auto"] *';var xt=A(V(),1);q(B);var M="kanorio:token-change";function xe(e){let t=e?.replace(/\/+$/,"");if(t)return t;if(typeof window<"u")return window.location.origin;if(e)return"";throw new Error("@kanorio/elements: siteUrl is required outside the browser.")}function ar(e){let t=e?.replace(/\/+$/,"");return t||(typeof window<"u"?window.location.origin:null)}function it(e){return e||(typeof document<"u"&&document.documentElement.lang?document.documentElement.lang:"en")}var Re=()=>()=>{},k=Object.freeze({value:null,failures:0,round:0}),at=()=>k;function be(e){let t=new Map,r=new Map,n=new Set,o=0,i=()=>{for(let s of[...n])s()};return{entry:s=>t.get(s)??k,subscribe(s){return n.add(s),()=>{n.delete(s)}},load(s){let a=t.get(s);if(a&&a.value!==null)return Promise.resolve(a.value);let l=r.get(s);if(l)return l;let c=o,d=Promise.resolve().then(()=>e(s)).catch(()=>null).then(p=>{if(r.get(s)===d&&r.delete(s),c!==o)return p;let g=t.get(s)??k;return t.set(s,p===null?{...g,failures:g.failures+1}:{value:p,failures:g.failures,round:g.round}),i(),p});return r.set(s,d),d},clear(){o+=1;for(let[s,a]of t)t.set(s,{value:null,failures:a.failures,round:a.round+1});for(let s of r.keys())t.has(s)||t.set(s,{...k,round:1});r.clear(),i()},retryFailed(){let s=!1;for(let[a,l]of t)l.value!==null||r.has(a)||(t.set(a,{...l,round:l.round+1}),s=!0);s&&i()},reset(){o+=1,t.clear(),r.clear(),i()}}}function Ce(e,t){let r=(0,u.useSyncExternalStore)(t===null?Re:e.subscribe,()=>t===null?k:e.entry(t),at),[n,o]=(0,u.useState)(()=>({key:t,failures:t===null?0:e.entry(t).failures})),i=n;n.key!==t&&(i={key:t,failures:t===null?0:e.entry(t).failures},o(i));let s=t!==null&&r.value===null;(0,u.useEffect)(()=>{s&&t!==null&&e.load(t)},[e,t,s,r.round]);let a=t!==null&&r.value===null&&r.failures>i.failures;return(0,u.useMemo)(()=>({value:r.value,error:a}),[r.value,a])}var we=be(e=>ge(e)),N=be(e=>K({siteUrl:e}).get("/site").then(t=>typeof t?.id=="string"?t:null));typeof window<"u"&&window.addEventListener("online",()=>{we.retryFailed(),N.retryFailed()});function lt(e,t=!0){let{value:r,error:n}=Ce(we,t?e:null),[o,i]=(0,u.useState)(null);r!==null&&(o===null||o.messages!==r||o.locale!==e)&&i({messages:r,locale:e});let s=r??o?.messages??null,a=r!==null?e:o?.locale??e;return(0,u.useMemo)(()=>({messages:s,locale:a,error:n}),[s,a,n])}function lr(e){return N.load(e)}function ct(e,t=!0){let{value:r,error:n}=Ce(N,t?e:null),[o,i]=(0,u.useState)(null);r!==null&&(o===null||o.site!==r||o.siteUrl!==e)&&i({site:r,siteUrl:e});let s=r??(t&&o?.siteUrl===e?o.site:null);return(0,u.useMemo)(()=>({site:s,error:n}),[s,n])}function ke(e){let t=e.toLowerCase();return t.startsWith("zh-hans")||t.startsWith("zh-cn")||t.startsWith("zh-sg")?"zh-Hans":t.startsWith("zh")?"zh-Hant":t.startsWith("ja")?"ja":t.startsWith("ko")?"ko":"en"}function ut(e,t,r){let n=e.colors.primary.light,o=e.colors.primary.dark,i=Object.entries(e.radius).map(([d,p])=>`--site-radius-${d}: ${p};`).join(" "),s=ke(t),a=e.fonts.find(d=>d.locales.includes(s))??e.fonts[0],l=a?`--site-font-family: ${a.family};`:"",c=`--brand-color: ${o.background}; --brand-foreground: ${o.foreground};`;return[`:where(${r}) { --brand-color: ${n.background}; --brand-foreground: ${n.foreground}; ${i} ${l} font-family: var(--site-font-family, inherit); }`,`:where(${r}):where(${ye}) { ${c} }`,`@media (prefers-color-scheme: dark) { :where(${r}):where(${he}) { ${c} } }`].join(`
|
|
2
|
+
`)}function dt(e,t){return`${e}-${ke(t)}`}var pt=typeof window>"u"?u.useEffect:u.useLayoutEffect,Ee=new Map;function gt(e,t,r){let n=r&&e?.brand?dt(e.id,t):null;return pt(()=>{if(!n||!e?.brand||typeof document>"u")return;let o=Ee.get(n);if(o&&o.site===e&&o.style.isConnected)return;let i=`kanorio-brand-${n}`,s=ut(e.brand,t,`[${P}="${n}"]`),a=document.getElementById(i);a||(a=document.createElement("style"),a.id=i,document.head.appendChild(a)),a.textContent!==s&&(a.textContent=s);for(let l of e.brand.fonts){if(!l.stylesheetUrl)continue;let c=`link[data-kanorio-font="${CSS.escape(l.stylesheetUrl)}"]`;if(document.head.querySelector(c))continue;let d=document.createElement("link");d.rel="stylesheet",d.href=l.stylesheetUrl,d.dataset.kanorioFont=l.stylesheetUrl,document.head.appendChild(d)}Ee.set(n,{site:e,style:a})},[n,e,t]),n}var w=new Set;function I(){for(let e of[...w])e()}function ft(e){return w.add(e),w.size===1&&(window.addEventListener("storage",I),window.addEventListener(M,I)),()=>{w.delete(e),w.size===0&&(window.removeEventListener("storage",I),window.removeEventListener(M,I))}}var ve=null;function mt(){try{return localStorage.getItem(b)}catch{return ve}}var Se=()=>null;function Te(e){ve=e;try{C(e)}catch{}typeof window<"u"&&window.dispatchEvent(new CustomEvent(M,{detail:{token:e}}))}function yt(e){let[t,r]=(0,u.useState)({given:e,written:null}),n=t.written;t.given!==e&&(n=null,r({given:e,written:null}));let o=(0,u.useCallback)(i=>{r(s=>({given:s.given,written:{token:i}})),Te(i)},[]);return(0,u.useMemo)(()=>e===void 0?null:{token:n?n.token:e,setToken:o},[e,n,o])}function ht(e,t){let n=yt(e)??t,o=(0,u.useSyncExternalStore)(n?Re:ft,n?Se:mt,Se);return(0,u.useMemo)(()=>n??{token:o,setToken:Te},[n,o])}var $=(0,u.createContext)(null);function cr(){return(0,u.useContext)($)?.config??null}function ur(e){let t=(0,u.useContext)($);return xe(e??t?.config.siteUrl)}function Et(e,t={}){let r=(0,u.useContext)($),n={...r?.config,...St(e)},o=xe(n.siteUrl),i=n.theme??"auto",s=n.timeZone??null,a=n.brand!==!1,{token:l,setToken:c}=ht(e.token,r?.token??null),d=lt(it(n.locale)),p=d.locale,{site:g,error:f}=ct(o,a||t.needsSite===!0),x=gt(g,p,a),y=(0,u.useMemo)(()=>H({siteUrl:o,token:()=>l,locale:p}),[o,l,p]),h=d.messages,F=d.error;return(0,u.useMemo)(()=>({siteUrl:o,token:l,setToken:c,locale:p,theme:i,timeZone:s,messages:h,messagesError:F,client:y,brandScope:x,site:g,siteError:f}),[o,l,c,p,i,s,h,F,y,x,g,f])}function dr(e={}){return Et(e)}function St(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0))}export{m as a,K as b,O as c,Xe as d,Ze as e,tt as f,rt as g,nt as h,ot as i,P as j,er as k,tr as l,ar as m,it as n,lt as o,lr as p,ct as q,gt as r,cr as s,ur as t,Et as u,dr as v};
|
|
3
|
+
//# sourceMappingURL=chunk-QGR3QAQB.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{clampText}from"./chunk-O2SYHUQF.js";var WATERMARK_POSITIONS=["top-left","top","top-right","left","center","right","bottom-left","bottom","bottom-right"];var WATERMARK_SOURCES=["logo","text","image"];var WATERMARK_SIZE_RANGE={min:5,max:50,default:20};var WATERMARK_OPACITY_RANGE={min:10,max:100,default:60};var WATERMARK_TEXT_MAX_LENGTH=60;var DEFAULT_WATERMARK_APPLY={pages:true,articles:true,products:false};var DEFAULT_MEDIA_WATERMARK={enabled:false,source:"logo",text:"",image:null,layout:"single",position:"bottom-right",size:WATERMARK_SIZE_RANGE.default,opacity:WATERMARK_OPACITY_RANGE.default,apply:DEFAULT_WATERMARK_APPLY,overlay:null,version:null,activatedAt:null,deactivatedAt:null};var DEFAULT_MEDIA_PROTECTION={allowDownload:true,keepCopyright:true,deterrence:false,watermark:DEFAULT_MEDIA_WATERMARK};function clampInt(value,range){if(typeof value!=="number"||!Number.isFinite(value))return range.default;return Math.min(range.max,Math.max(range.min,Math.round(value)))}function pick(value,options,fallback){return typeof value==="string"&&options.includes(value)?value:fallback}function parseWatermarkApply(value){const raw=value&&typeof value==="object"?value:{};const flag=key=>typeof raw[key]==="boolean"?raw[key]:DEFAULT_WATERMARK_APPLY[key];return{pages:flag("pages"),articles:flag("articles"),products:flag("products")}}function parseMediaWatermark(value){const raw=value&&typeof value==="object"?value:{};const overlayRaw=raw.overlay&&typeof raw.overlay==="object"?raw.overlay:null;const overlay=overlayRaw&&typeof overlayRaw.url==="string"&&typeof overlayRaw.width==="number"&&typeof overlayRaw.height==="number"&&typeof overlayRaw.key==="string"?{url:overlayRaw.url,width:overlayRaw.width,height:overlayRaw.height,key:overlayRaw.key}:null;const regenHistory=Array.isArray(raw.regenHistory)?raw.regenHistory.filter(item=>typeof item==="string"&&!Number.isNaN(Date.parse(item))):void 0;const scheduledAt=isoOrNull(raw.scheduledAt);return{enabled:raw.enabled===true,source:pick(raw.source,WATERMARK_SOURCES,DEFAULT_MEDIA_WATERMARK.source),text:typeof raw.text==="string"?clampText(raw.text,WATERMARK_TEXT_MAX_LENGTH):"",image:typeof raw.image==="string"&&raw.image?raw.image:null,layout:raw.layout==="tile"?"tile":"single",position:pick(raw.position,WATERMARK_POSITIONS,DEFAULT_MEDIA_WATERMARK.position),size:clampInt(raw.size,WATERMARK_SIZE_RANGE),opacity:clampInt(raw.opacity,WATERMARK_OPACITY_RANGE),apply:parseWatermarkApply(raw.apply),overlay,version:typeof raw.version==="string"&&raw.version?raw.version:null,activatedAt:isoOrNull(raw.activatedAt),deactivatedAt:isoOrNull(raw.deactivatedAt),...regenHistory&®enHistory.length>0?{regenHistory}:{},...scheduledAt?{scheduledAt}:{}}}function isoOrNull(value){return typeof value==="string"&&!Number.isNaN(Date.parse(value))?value:null}function parseMediaProtection(value){const raw=value&&typeof value==="object"?value:{};const flag=key=>typeof raw[key]==="boolean"?raw[key]:DEFAULT_MEDIA_PROTECTION[key];return{allowDownload:flag("allowDownload"),keepCopyright:flag("keepCopyright"),deterrence:flag("deterrence"),watermark:parseMediaWatermark(raw.watermark)}}function canVisitorsDownloadImages(protection){return protection.allowDownload&&!protection.deterrence}function canVisitorsShareImages(protection){return!protection.deterrence}import{createContext,useContext,useMemo}from"react";var HERO_BANNER_PRESET_RATIOS=["24:9","21:9","16:9","4:3","1:1","4:5"];var SPLIT_IMAGE_PRESET_RATIOS=["16:9","4:3","1:1","3:4","4:5"];var CARD_PRESET_RATIOS=["4:3","1:1","3:4"];function parseAspectRatio(ratio){if(typeof ratio!=="string")return null;const match=/^(\d+(?:\.\d+)?):(\d+(?:\.\d+)?)$/.exec(ratio.trim());if(!match)return null;const w=Number(match[1]);const h=Number(match[2]);if(!Number.isFinite(w)||!Number.isFinite(h)||w<=0||h<=0)return null;const value=w/h;if(value<.25-1e-6||value>5+1e-6)return null;return value}function hasNaturalDevice(ratios){return ratios.desktop===null||ratios.tablet===null||ratios.mobile===null}var FILL_POSITION_CLASSES={mobile:{fill:"absolute inset-0 h-full w-full",flow:"relative h-auto w-full"},tablet:{fill:"md:absolute md:inset-0 md:h-full",flow:"md:relative md:inset-auto md:h-auto"},desktop:{fill:"lg:absolute lg:inset-0 lg:h-full",flow:"lg:relative lg:inset-auto lg:h-auto"}};function buildResponsiveFillClasses(ratios){const mode=ratio=>ratio&&parseAspectRatio(ratio)?"fill":"flow";const m=mode(ratios.mobile);const t=mode(ratios.tablet);const d=mode(ratios.desktop);const classes=[FILL_POSITION_CLASSES.mobile[m]];if(t!==m)classes.push(FILL_POSITION_CLASSES.tablet[t]);if(d!==t)classes.push(FILL_POSITION_CLASSES.desktop[d]);return classes.join(" ")}function bannerHeightDefaultRatio(bannerHeight){switch(bannerHeight??"standard"){case"compact":return"24:9";case"tall":return"16:9";case"standard":default:return"21:9"}}var SECTION_RATIO_POLICIES={"page-main-visual:banner-profile":{tabletInherits:"desktop",devices:["desktop","tablet","mobile"],presets:HERO_BANNER_PRESET_RATIOS,allowCustomRatio:true},"page-main-visual:split-hero":{tabletInherits:"mobile",devices:["desktop","tablet","mobile"],presets:SPLIT_IMAGE_PRESET_RATIOS,allowCustomRatio:true},"page-main-visual:overlay-hero":{tabletInherits:"desktop",devices:["desktop","mobile"],presets:["16:9","4:5"],allowCustomRatio:false,fixedHeight:true},"image-text-split":{tabletInherits:"mobile",devices:["desktop","tablet","mobile"],presets:SPLIT_IMAGE_PRESET_RATIOS,allowCustomRatio:true,allowNatural:true},"full-width-image":{tabletInherits:"desktop",devices:["desktop","tablet","mobile"],presets:HERO_BANNER_PRESET_RATIOS,allowCustomRatio:true,allowNatural:true},"card-grid":{tabletInherits:"desktop",devices:["desktop"],presets:CARD_PRESET_RATIOS,allowCustomRatio:false},"multi-link":{tabletInherits:"desktop",devices:["desktop"],presets:["4:3"],allowCustomRatio:false}};function resolveDeviceValue(input,fallback,tabletInherits="desktop"){if(input===void 0||input===null){return{desktop:fallback,tablet:fallback,mobile:fallback}}if(typeof input!=="object"){return{desktop:input,tablet:input,mobile:input}}const record=input;const desktop=record.desktop??fallback;const mobile=record.mobile??desktop;const tablet=record.tablet??(tabletInherits==="mobile"?mobile:desktop);return{desktop,tablet,mobile}}function resolvePageMainVisualRatios(input){const layout=input.layout??"banner-profile";if(layout==="overlay-hero"){const policy2=SECTION_RATIO_POLICIES["page-main-visual:overlay-hero"];return{policy:policy2,ratios:{desktop:"16:9",tablet:"16:9",mobile:"4:5"},fixedHeight:true}}if(layout==="split-hero"){const policy2=SECTION_RATIO_POLICIES["page-main-visual:split-hero"];const raw2=resolveDeviceValue(input.imageRatio,"4:3",policy2.tabletInherits);return{policy:policy2,ratios:{desktop:raw2.desktop==="natural"||!parseAspectRatio(raw2.desktop)?"4:3":raw2.desktop,tablet:raw2.tablet==="natural"||!parseAspectRatio(raw2.tablet)?"4:3":raw2.tablet,mobile:raw2.mobile==="natural"||!parseAspectRatio(raw2.mobile)?"4:3":raw2.mobile},fixedHeight:false}}const policy=SECTION_RATIO_POLICIES["page-main-visual:banner-profile"];const fallback=bannerHeightDefaultRatio(input.bannerHeight);const raw=resolveDeviceValue(input.imageRatio,fallback,policy.tabletInherits);return{policy,ratios:{desktop:raw.desktop==="natural"||!parseAspectRatio(raw.desktop)?fallback:raw.desktop,tablet:raw.tablet==="natural"||!parseAspectRatio(raw.tablet)?fallback:raw.tablet,mobile:raw.mobile==="natural"||!parseAspectRatio(raw.mobile)?fallback:raw.mobile},fixedHeight:false}}function toFocusFrameSpecs(ratios){const d=ratios.desktop;const t=ratios.tablet;const m=ratios.mobile;if(!d&&!t&&!m)return null;if(d&&d===t&&d===m){return[{device:"all",ratio:d}]}const frames=[];if(d)frames.push({device:"desktop",ratio:d});if(t&&t!==d&&t!==m)frames.push({device:"tablet",ratio:t});if(m&&m!==d)frames.push({device:"mobile",ratio:m});return frames.length>0?frames:null}function pageMainVisualFocusFrames(input){const{ratios}=resolvePageMainVisualRatios(input??{});return toFocusFrameSpecs(ratios)??[{device:"all",ratio:"21:9"}]}var HERO_FOCUS_FRAMES=pageMainVisualFocusFrames();var MIN_CROP_RECT_SPAN=.05;function clampUnit(value){return Math.min(1,Math.max(0,value))}function normalizeImageFocus(value){if(!value||typeof value!=="object")return null;const{x,y}=value;if(typeof x!=="number"||typeof y!=="number")return null;if(!Number.isFinite(x)||!Number.isFinite(y))return null;return{x:clampUnit(x),y:clampUnit(y)}}function normalizeImageCropRect(value){if(!value||typeof value!=="object")return null;const{x,y,w,h}=value;if(typeof x!=="number"||typeof y!=="number"||typeof w!=="number"||typeof h!=="number"||!Number.isFinite(x)||!Number.isFinite(y)||!Number.isFinite(w)||!Number.isFinite(h)){return null}const nw=Math.min(1,Math.max(MIN_CROP_RECT_SPAN,w));const nh=Math.min(1,Math.max(MIN_CROP_RECT_SPAN,h));const nx=Math.min(1-nw,Math.max(0,x));const ny=Math.min(1-nh,Math.max(0,y));return{x:nx,y:ny,w:nw,h:nh}}function normalizeImageScreenFraming(value){if(!value||typeof value!=="object")return null;const raw=value;if(typeof raw.ratio!=="string"||!parseAspectRatio(raw.ratio))return null;const rect=normalizeImageCropRect(raw.rect);if(!rect)return null;return{ratio:raw.ratio.trim(),rect}}function normalizePadColor(value){if(typeof value!=="string")return void 0;const trimmed=value.trim();return/^#[0-9a-fA-F]{6}$/.test(trimmed)?trimmed.toLowerCase():void 0}function isCenteredFocus(focus){return Math.abs(focus.x-.5)<.005&&Math.abs(focus.y-.5)<.005}function effectiveImageFocus(framing){const focus=normalizeImageFocus(framing?.focus);if(!focus||isCenteredFocus(focus))return null;return focus}function hasScreenFraming(framing){if(!framing?.screens||typeof framing.screens!=="object")return false;for(const device of["desktop","tablet","mobile"]){if(normalizeImageScreenFraming(framing.screens[device]))return true}return false}function deriveRectFromFocus(focus,sourceAspect,targetAspect){const f=normalizeImageFocus(focus)??{x:.5,y:.5};if(!Number.isFinite(sourceAspect)||sourceAspect<=0||!Number.isFinite(targetAspect)||targetAspect<=0){return{x:0,y:0,w:1,h:1}}if(sourceAspect>=targetAspect){const w2=Math.min(1,Math.max(MIN_CROP_RECT_SPAN,targetAspect/sourceAspect));const h2=1;const x=Math.min(1-w2,Math.max(0,f.x-w2/2));return{x,y:0,w:w2,h:h2}}const w=1;const h=Math.min(1,Math.max(MIN_CROP_RECT_SPAN,sourceAspect/targetAspect));const y=Math.min(1-h,Math.max(0,f.y-h/2));return{x:0,y,w,h}}function isScreenFramingCompatible(screen,targetRatio,source){if(!screen)return false;const savedAspect=parseAspectRatio(screen.ratio);const targetAspect=parseAspectRatio(targetRatio);if(!savedAspect||!targetAspect)return false;if(Math.abs(savedAspect-targetAspect)/targetAspect>.01)return false;if(source&&source.width>0&&source.height>0&&screen.rect.h>0){const actualAspect=screen.rect.w*source.width/(screen.rect.h*source.height);if(Math.abs(actualAspect-targetAspect)/targetAspect>.02)return false}return true}function resolveScreenFraming(input){const{framing,device,targetRatio,tabletInherits="desktop"}=input;const source=input.source??framing?.source??null;const screens=framing?.screens;const candidateOrder=device==="desktop"?["desktop"]:device==="mobile"?["mobile","desktop"]:tabletInherits==="mobile"?["tablet","mobile","desktop"]:["tablet","desktop"];let matched=null;let hadIncompatibleOnDevice=false;for(const candidate of candidateOrder){const screen=normalizeImageScreenFraming(screens?.[candidate]);if(!screen)continue;if(isScreenFramingCompatible(screen,targetRatio,source)){matched=screen;break}if(candidate===device){hadIncompatibleOnDevice=true}}if(matched){return{ratio:targetRatio,rect:matched.rect,derived:false,ratioMismatchFallback:false}}const targetAspect=parseAspectRatio(targetRatio)??16/9;const sourceAspect=source&&source.width>0&&source.height>0?source.width/source.height:targetAspect;return{ratio:targetRatio,rect:deriveRectFromFocus(framing?.focus,sourceAspect,targetAspect),derived:true,ratioMismatchFallback:hadIncompatibleOnDevice}}function rectToCloudflareTrim(rect,source){if(!source||!Number.isFinite(source.width)||!Number.isFinite(source.height))return null;if(source.width<=0||source.height<=0)return null;const r=normalizeImageCropRect(rect);if(!r)return null;const left=Math.max(0,Math.round(r.x*source.width));const top=Math.max(0,Math.round(r.y*source.height));const cropW=Math.max(1,Math.round(r.w*source.width));const cropH=Math.max(1,Math.round(r.h*source.height));const right=Math.max(0,source.width-left-cropW);const bottom=Math.max(0,source.height-top-cropH);if(top<=1&&right<=1&&bottom<=1&&left<=1)return null;return{top,right,bottom,left}}function focusToObjectPosition(focus){const percent=value=>`${Math.round(value*1e3)/10}%`;return`${percent(focus.x)} ${percent(focus.y)}`}function focusToGravity(focus){const fixed=value=>(Math.round(value*100)/100).toFixed(2);return`${fixed(focus.x)}x${fixed(focus.y)}`}var ASSET_REF_PREFIX="asset:";var ASSET_REF_VALUE=/^asset:[a-z0-9]+$/;function isAssetRefValue(value){return ASSET_REF_VALUE.test(value)}var CF_IMAGES_ACCOUNT_HASH="xu6i8N5WjaI_9HFe-hZzmg";var CF_IMAGES_DELIVERY_BASE=`https://img.kanorio.com/cdn-cgi/imagedelivery/${CF_IMAGES_ACCOUNT_HASH}`;var URL_TAIL=String.raw`[^\s"'()<>?#\\]+`;var CF_IMAGE_ID=String.raw`[A-Za-z0-9_.-]+`;function escapeRegExp(value){return value.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}var QUERY_TAIL=String.raw`(?:[?#][^\s"'()<>\\]*)?`;var CF_IMAGE_URL=new RegExp(String.raw`^https://(?:imagedelivery\.net|[a-z0-9-]+\.kanorio\.com/cdn-cgi/imagedelivery|img\.kanorio\.com/wm/[A-Za-z0-9_-]+\.[A-Za-z0-9_-]+)/${escapeRegExp(CF_IMAGES_ACCOUNT_HASH)}/(${CF_IMAGE_ID})(?:[/?#]|$)`);function cloudflareImageIdOf(url){return url?CF_IMAGE_URL.exec(url)?.[1]??null:null}var MIXED_EDGE_COLOR="mixed";function publicEdgeColor(edgeColor){return edgeColor&&edgeColor!==MIXED_EDGE_COLOR?edgeColor:null}function displayFileName(contentName,facts){const name=contentName??"";if(!facts?.name)return name;if(!name||name===facts.name||facts.formerNames?.includes(name))return facts.name;const dot=facts.name.lastIndexOf(".");const own=name.lastIndexOf(".");if(dot<=0||own<=0)return name;return`${name.slice(0,own)}${facts.name.slice(dot)}`}function mediaFactsFor(facts,ref){if(ref.assetId){const byId=facts[`${ASSET_REF_PREFIX}${ref.assetId}`];if(byId)return byId}if(!ref.url)return void 0;if(isAssetRefValue(ref.url))return facts[ref.url];const cfId=cloudflareImageIdOf(ref.url);if(cfId)return facts[cfId];const path=ref.url.split(/[?#]/,1)[0];for(const[key,item]of Object.entries(facts)){if(!key.startsWith(ASSET_REF_PREFIX)&&path.endsWith(`/${key}`))return item}return void 0}var CLOUDFLARE_IMAGE_QUALITY=85;function extractImageIdFromUrl(url){if(!url)return void 0;try{const urlObj=new URL(url);const pathParts=urlObj.pathname.split("/").filter(Boolean);if(urlObj.hostname==="imagedelivery.net"){if(pathParts.length>=2){return pathParts[1]}}if(urlObj.hostname.endsWith(".kanorio.com")&&pathParts[0]==="cdn-cgi"&&pathParts[1]==="imagedelivery"){if(pathParts.length>=4){return pathParts[3]}}return void 0}catch{return void 0}}function isSvgImageUrl(url){const path=url.split(/[?#]/,1)[0]??"";return path.toLowerCase().endsWith(".svg")}function isCloudflareImageUrl(url){if(!url)return false;try{const urlObj=new URL(url);if(urlObj.hostname==="imagedelivery.net"){return true}if(urlObj.hostname.endsWith(".kanorio.com")&&urlObj.pathname.startsWith("/cdn-cgi/imagedelivery/")){return true}return false}catch{return false}}function hasOptimizationParams(url){try{const urlObj=new URL(url);return urlObj.searchParams.has("width")||urlObj.searchParams.has("height")||urlObj.searchParams.has("quality")||urlObj.searchParams.has("fit")}catch{return false}}function getDefaultParamsForUseCase(useCase){switch(useCase){case"page-main-visual-background":return{width:1920,quality:CLOUDFLARE_IMAGE_QUALITY,fit:"cover"};case"page-main-visual-logo":return{width:600,height:600,quality:CLOUDFLARE_IMAGE_QUALITY,fit:"scale-down"};case"header-logo":return{width:600,height:600,quality:CLOUDFLARE_IMAGE_QUALITY,fit:"scale-down"};case"card-grid-carousel-image":return{width:800,quality:CLOUDFLARE_IMAGE_QUALITY,fit:"crop"};case"image-text-split-image":return{width:1200,quality:CLOUDFLARE_IMAGE_QUALITY,fit:"crop"};case"multi-image-carousel-image":return{width:1600,quality:CLOUDFLARE_IMAGE_QUALITY,fit:"scale-down"};case"lightbox-image":return{width:4096,quality:CLOUDFLARE_IMAGE_QUALITY,fit:"scale-down"};case"full-width-image":return{width:1920,quality:CLOUDFLARE_IMAGE_QUALITY,fit:"contain"};case"general":default:return{width:1920,quality:CLOUDFLARE_IMAGE_QUALITY,fit:"crop"}}}function parseCloudflareUrl(url){try{const urlObj=new URL(url);const pathParts=urlObj.pathname.split("/").filter(Boolean);if(urlObj.hostname==="imagedelivery.net"&&pathParts.length>=3){return{baseUrl:`${urlObj.protocol}//${urlObj.hostname}`,accountHash:pathParts[0],imageId:pathParts[1],variant:pathParts[2]||"public"}}if(urlObj.hostname.endsWith(".kanorio.com")&&pathParts[0]==="cdn-cgi"&&pathParts[1]==="imagedelivery"&&pathParts.length>=5){return{baseUrl:`${urlObj.protocol}//${urlObj.hostname}/cdn-cgi/imagedelivery`,accountHash:pathParts[2],imageId:pathParts[3],variant:pathParts[4]||"public"}}return null}catch{return null}}function buildOptimizedUrl(parsed,options){const{baseUrl,accountHash,imageId}=parsed;const defaults=getDefaultParamsForUseCase(options.useCase);const width=options.width??defaults.width;const height=options.height??defaults.height;const quality=CLOUDFLARE_IMAGE_QUALITY;const fit=options.fit??defaults.fit;const format=options.format;const params=[];if(options.trim){const{top,right,bottom,left}=options.trim;params.push(`trim=${Math.max(0,Math.round(top))};${Math.max(0,Math.round(right))};${Math.max(0,Math.round(bottom))};${Math.max(0,Math.round(left))}`)}if(width)params.push(`w=${width}`);if(height)params.push(`h=${height}`);if(fit)params.push(`fit=${fit}`);if(!options.trim&&options.focus&&width&&height&&(fit==="crop"||fit==="cover")){params.push(`gravity=${focusToGravity(options.focus)}`)}if(options.background&&/^#[0-9a-fA-F]{6}$/.test(options.background)){params.push(`background=${encodeURIComponent(options.background)}`)}params.push(`q=${quality}`);if(format)params.push(`f=${format}`);if(params.length>0){return`${baseUrl}/${accountHash}/${imageId}/${params.join(",")}`}return`${baseUrl}/${accountHash}/${imageId}/public`}function defaultWidthForUseCase(useCase){return getDefaultParamsForUseCase(useCase).width??1920}function getOptimizedImageUrl(originalUrl,options){if(!isCloudflareImageUrl(originalUrl)){return originalUrl}if(hasOptimizationParams(originalUrl)&&!options.format){return originalUrl}const parsed=parseCloudflareUrl(originalUrl);if(!parsed){return originalUrl}return buildOptimizedUrl(parsed,options)}function getOriginalImageUrl(url){if(!isCloudflareImageUrl(url)){return url}const parsed=parseCloudflareUrl(url);if(!parsed){return url}return`${parsed.baseUrl}/${parsed.accountHash}/${parsed.imageId}/public`}var MARKDOWN_IMAGE_SRCSET_WIDTHS=[400,800,1200,1600];var MARKDOWN_IMAGE_SIZES="(max-width: 768px) 100vw, 960px";function getResponsiveImageAttrs(originalUrl){if(!isCloudflareImageUrl(originalUrl)){return null}const parsed=parseCloudflareUrl(originalUrl);if(!parsed){return null}const{baseUrl,accountHash,imageId}=parsed;const quality=CLOUDFLARE_IMAGE_QUALITY;const fit="scale-down";const srcSet=MARKDOWN_IMAGE_SRCSET_WIDTHS.map(w=>`${baseUrl}/${accountHash}/${imageId}/w=${w},fit=${fit},q=${quality} ${w}w`).join(", ");const src=`${baseUrl}/${accountHash}/${imageId}/w=800,fit=${fit},q=${quality}`;return{src,srcSet,sizes:MARKDOWN_IMAGE_SIZES}}var PICTURE_DEVICE_WIDTHS={mobile:[640,1080],tablet:[1024,1536],desktop:[1440,1920]};var PICTURE_DEVICE_MEDIA={mobile:"(max-width: 767px)",tablet:"(min-width: 768px) and (max-width: 1023px)",desktop:"(min-width: 1024px)"};var PICTURE_DEVICES=["desktop","tablet","mobile"];function resolveDeviceCrops(input){const out={};for(const device of PICTURE_DEVICES){const ratio=input.ratios[device];if(!ratio){out[device]={ratio:null,rect:null};continue}const resolved=resolveScreenFraming({framing:input.framing,device,targetRatio:ratio,tabletInherits:input.tabletInherits,source:input.source});out[device]={ratio,rect:resolved.derived?null:resolved.rect}}return out}function isSameDeviceCrop(a,b){if(a.ratio!==b.ratio)return false;if(!a.rect||!b.rect)return a.rect===b.rect;return Math.abs(a.rect.x-b.rect.x)<5e-4&&Math.abs(a.rect.y-b.rect.y)<5e-4&&Math.abs(a.rect.w-b.rect.w)<5e-4&&Math.abs(a.rect.h-b.rect.h)<5e-4}function pictureWidthsFor(device,maxWidth){const base=PICTURE_DEVICE_WIDTHS[device];if(!maxWidth||maxWidth<=0||maxWidth>=base[base.length-1])return base;return[...base.filter(w=>w<maxWidth),Math.round(maxWidth)]}function resolveSiteImageRenderMode(input){const{src,framing,deviceRatios,tabletInherits="desktop"}=input;if(!src||!deviceRatios)return"single";const uniformRatio=deviceRatios.mobile===deviceRatios.desktop&&deviceRatios.tablet===deviceRatios.desktop;const hasScreens=hasScreenFraming(framing);if(!hasScreens&&uniformRatio)return"single";const trimmable=isCloudflareImageUrl(src)&&!isSvgImageUrl(src);if(!hasScreens)return trimmable?"picture":"single";const source=framing?.source&&framing.source.width>0&&framing.source.height>0?framing.source:null;const crops=resolveDeviceCrops({framing,ratios:deviceRatios,tabletInherits,source});const anyRect=PICTURE_DEVICES.some(device=>crops[device].rect!==null);if(!anyRect)return uniformRatio||!trimmable?"single":"picture";if(!trimmable||!source)return"css-fallback";if(uniformRatio&&isSameDeviceCrop(crops.desktop,crops.tablet)&&isSameDeviceCrop(crops.desktop,crops.mobile)){return"single-trim"}return"picture"}function buildSingleTrimImageUrl(input){const useCase=input.useCase??"general";const width=input.width??defaultWidthForUseCase(useCase);const ratioNum=parseAspectRatio(input.ratio)??16/9;const height=Math.max(1,Math.round(width/ratioNum));const source=input.framing?.source&&input.framing.source.width>0&&input.framing.source.height>0?input.framing.source:null;const resolved=resolveScreenFraming({framing:input.framing,device:"desktop",targetRatio:input.ratio,tabletInherits:input.tabletInherits,source});const trim=!resolved.derived&&source?rectToCloudflareTrim(resolved.rect,source):null;return{src:getOptimizedImageUrl(input.src,{useCase,width,height,fit:"crop",trim,focus:trim?null:effectiveImageFocus(input.framing)}),width,height}}function buildPictureSourcesPlan(input){const{src,useCase="general",ratios,framing,tabletInherits="desktop",maxWidth}=input;if(!isCloudflareImageUrl(src))return null;const sourceDims=framing?.source&&framing.source.width>0&&framing.source.height>0?framing.source:null;const focus=effectiveImageFocus(framing);const crops=resolveDeviceCrops({framing,ratios,tabletInherits,source:sourceDims});const buildForDevice=device=>{const{ratio,rect}=crops[device];const ratioNum=ratio?parseAspectRatio(ratio)??16/9:null;const trim=rect&&sourceDims?rectToCloudflareTrim(rect,sourceDims):null;const widths=pictureWidthsFor(device,maxWidth);const urls=[];const srcSetParts=widths.map(w=>{const url=ratioNum?getOptimizedImageUrl(src,{useCase,width:w,height:Math.max(1,Math.round(w/ratioNum)),fit:"crop",trim,focus:trim?null:focus}):getOptimizedImageUrl(src,{useCase,width:w,fit:"scale-down"});urls.push(url);return`${url} ${w}w`});const primaryW=widths[widths.length-1];const naturalAspect=sourceDims?sourceDims.width/sourceDims.height:null;const primaryH=ratioNum?Math.max(1,Math.round(primaryW/ratioNum)):naturalAspect?Math.max(1,Math.round(primaryW/naturalAspect)):null;const primaryUrl=urls[urls.length-1];return{device,media:device==="desktop"?void 0:PICTURE_DEVICE_MEDIA[device],src:primaryUrl,srcSet:srcSetParts.join(", "),sizes:input.sizes?.[device]??"100vw",width:primaryW,height:primaryH,urls}};const mobile=buildForDevice("mobile");const tabletDesc=buildForDevice("tablet");const desktop=buildForDevice("desktop");const tablet=isSameDeviceCrop(crops.tablet,crops.desktop)?null:tabletDesc;const preloads=tablet?[{media:PICTURE_DEVICE_MEDIA.mobile,href:mobile.src,imageSrcSet:mobile.srcSet,imageSizes:mobile.sizes},{media:PICTURE_DEVICE_MEDIA.tablet,href:tablet.src,imageSrcSet:tablet.srcSet,imageSizes:tablet.sizes},{media:PICTURE_DEVICE_MEDIA.desktop,href:desktop.src,imageSrcSet:desktop.srcSet,imageSizes:desktop.sizes}]:[{media:PICTURE_DEVICE_MEDIA.mobile,href:mobile.src,imageSrcSet:mobile.srcSet,imageSizes:mobile.sizes},{media:"(min-width: 768px)",href:desktop.src,imageSrcSet:desktop.srcSet,imageSizes:desktop.sizes}];const allVariantUrls=Array.from(new Set([...mobile.urls,...tablet?tablet.urls:[],...desktop.urls]));return{mobile,tablet,desktop,preloads,allVariantUrls}}import{jsx}from"react/jsx-runtime";var FALLBACK={protection:DEFAULT_MEDIA_PROTECTION,imageDownloadUrl:()=>null};var MediaProtectionContext=createContext(FALLBACK);function MediaProtectionProvider({protection,websiteId,apiBase="",children}){const value=useMemo(()=>({protection:protection??DEFAULT_MEDIA_PROTECTION,imageDownloadUrl:(imageUrl,name)=>{const imageId=extractImageIdFromUrl(imageUrl);if(!websiteId||!imageId)return null;const base=`${apiBase}/api/public/sites/${encodeURIComponent(websiteId)}/images/${encodeURIComponent(imageId)}/download`;const query=new URLSearchParams;if(name)query.set("name",name);const search=query.toString();return search?`${base}?${search}`:base}}),[protection,websiteId,apiBase]);return jsx(MediaProtectionContext.Provider,{value,children})}function useMediaProtection(){return useContext(MediaProtectionContext)}export{hasNaturalDevice,buildResponsiveFillClasses,normalizeImageCropRect,normalizePadColor,effectiveImageFocus,resolveScreenFraming,focusToObjectPosition,publicEdgeColor,displayFileName,mediaFactsFor,extractImageIdFromUrl,isSvgImageUrl,getOptimizedImageUrl,getOriginalImageUrl,getResponsiveImageAttrs,resolveSiteImageRenderMode,buildSingleTrimImageUrl,buildPictureSourcesPlan,parseMediaProtection,canVisitorsDownloadImages,canVisitorsShareImages,MediaProtectionProvider,useMediaProtection};
|
|
2
|
+
//# sourceMappingURL=chunk-QOQQCCID.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{cn}from"./chunk-VUTODQFX.js";var CONTROL_COLOR_VARS="[--control-error-border:var(--color-red-500,oklch(63.7%_0.237_25.331))] [--control-fg:var(--color-zinc-900,oklch(21%_0.006_285.885))] dark:[--control-fg:var(--color-zinc-50,oklch(98.5%_0_0))] [--control-bg:#ffffff] dark:[--control-bg:var(--color-zinc-800,oklch(27.4%_0.006_286.033))] [--control-border:var(--color-zinc-200,oklch(92%_0.004_286.32))] dark:[--control-border:var(--color-zinc-600,oklch(44.2%_0.017_285.786))] [--control-border-hover:var(--color-zinc-300,oklch(87.1%_0.006_286.286))] dark:[--control-border-hover:var(--color-zinc-500,oklch(55.2%_0.016_285.938))]";var CONTROL_ERROR_COLOR_VARS="[--control-bg:color-mix(in_oklab,var(--color-red-50,oklch(97.1%_0.013_17.38))_50%,transparent)] dark:[--control-bg:color-mix(in_oklab,var(--color-red-950,oklch(25.8%_0.092_26.042))_10%,transparent)]";var CONTROL_ERROR_BORDER="border-[var(--control-error-border)] hover:border-[var(--control-error-border)]";var CONTROL_ERROR_SHADE_SOFT_CLASS="[--control-error-border:var(--color-red-400,oklch(70.4%_0.191_22.216))]";var CONTROL_BG="bg-[var(--control-bg)] text-[var(--control-fg)]";var CONTROL_BORDER="border-[var(--control-border)] hover:border-[var(--control-border-hover)]";var CONTROL_PLACEHOLDER_CLASS="placeholder:text-[var(--muted-foreground,var(--site-fg-muted,#71717a))]";var CONTROL_PLACEHOLDER_STATE_CLASS="data-[placeholder]:text-[var(--muted-foreground,var(--site-fg-muted,#71717a))]";var CONTROL_RING_OFFSET_CLASS="ring-offset-[var(--background,var(--control-bg))]";function controlClassName(layout,options={}){const{hasError=false,className,ring=false}=options;return cn(layout,CONTROL_COLOR_VARS,CONTROL_BG,hasError?CONTROL_ERROR_COLOR_VARS:CONTROL_BORDER,ring&&hasError&&"focus-visible:ring-red-500/50",className,hasError&&CONTROL_ERROR_BORDER)}export{CONTROL_ERROR_SHADE_SOFT_CLASS,CONTROL_PLACEHOLDER_CLASS,CONTROL_PLACEHOLDER_STATE_CLASS,CONTROL_RING_OFFSET_CLASS,controlClassName};
|
|
2
|
+
//# sourceMappingURL=chunk-RG5JA44V.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
var TONE_TEXT_BODY="text-[color-mix(in_srgb,var(--site-fg,#18181b)_85%,transparent)]";var TONE_TEXT_SUBTLE="text-[color-mix(in_srgb,var(--site-fg,#18181b)_45%,transparent)]";var TONE_TEXT_FAINT="text-[color-mix(in_srgb,var(--site-fg,#18181b)_30%,transparent)]";var TONE_BG_TINT="bg-[color-mix(in_srgb,var(--site-fg,#18181b)_6%,transparent)]";var TONE_BG_TINT_STRONG="bg-[color-mix(in_srgb,var(--site-fg,#18181b)_8%,transparent)]";var TONE_BG_TINT_HOVER="hover:bg-[color-mix(in_srgb,var(--site-fg,#18181b)_6%,transparent)]";var TONE_BG_TINT_STRONG_HOVER="hover:bg-[color-mix(in_srgb,var(--site-fg,#18181b)_8%,transparent)]";var TONE_BG_TRACK="bg-[color-mix(in_srgb,var(--site-fg,#18181b)_12%,transparent)]";var TONE_BORDER_STRONG="border-[color-mix(in_srgb,var(--site-fg,#18181b)_50%,transparent)]";export{TONE_TEXT_BODY,TONE_TEXT_SUBTLE,TONE_TEXT_FAINT,TONE_BG_TINT,TONE_BG_TINT_STRONG,TONE_BG_TINT_HOVER,TONE_BG_TINT_STRONG_HOVER,TONE_BG_TRACK,TONE_BORDER_STRONG};
|
|
2
|
+
//# sourceMappingURL=chunk-RKEHHJDU.js.map
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
import{a as ga}from"./chunk-6LGTFWQS.js";import{c as Ca}from"./chunk-CDG7S4P5.js";var ue=Ca(ga());var Sa=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),_a=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(a,t,l)=>l?l.toUpperCase():t.toLowerCase()),me=e=>{let a=_a(e);return a.charAt(0).toUpperCase()+a.slice(1)},de=(...e)=>e.filter((a,t,l)=>!!a&&a.trim()!==""&&l.indexOf(a)===t).join(" ").trim(),ka=e=>{for(let a in e)if(a.startsWith("aria-")||a==="role"||a==="title")return!0};var j=Ca(ga());var wa={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};var Pa=(0,j.forwardRef)(({color:e="currentColor",size:a=24,strokeWidth:t=2,absoluteStrokeWidth:l,className:r="",children:s,iconNode:f,...m},i)=>(0,j.createElement)("svg",{ref:i,...wa,width:a,height:a,stroke:e,strokeWidth:l?Number(t)*24/Number(a):t,className:de("lucide",r),...!s&&!ka(m)&&{"aria-hidden":"true"},...m},[...f.map(([L,I])=>(0,j.createElement)(L,I)),...Array.isArray(s)?s:[s]]));var o=(e,a)=>{let t=(0,ue.forwardRef)(({className:l,...r},s)=>(0,ue.createElement)(Pa,{ref:s,iconNode:a,className:de(`lucide-${Sa(me(e))}`,`lucide-${e}`,l),...r}));return t.displayName=me(e),t};var Ka=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],Le=o("arrow-left",Ka);var Za=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],Ie=o("book-open",Za);var Qa=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],xe=o("check",Qa);var ja=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],he=o("chevron-down",ja);var Ja=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],H=o("circle-check",Ja);var Ya=[["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"}]],Ce=o("copy",Ya);var $a=[["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"}]],ge=o("download",$a);var et=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]],Se=o("file-text",et);var at=[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]],ke=o("file",at);var tt=[["path",{d:"M12 10a2 2 0 0 0-2 2c0 1.02-.1 2.51-.26 4",key:"1nerag"}],["path",{d:"M14 13.12c0 2.38 0 6.38-1 8.88",key:"o46ks0"}],["path",{d:"M17.29 21.02c.12-.6.43-2.3.5-3.02",key:"ptglia"}],["path",{d:"M2 12a10 10 0 0 1 18-6",key:"ydlgp0"}],["path",{d:"M2 16h.01",key:"1gqxmh"}],["path",{d:"M21.8 16c.2-2 .131-5.354 0-6",key:"drycrb"}],["path",{d:"M5 19.5C5.5 18 6 15 6 12a6 6 0 0 1 .34-2",key:"1tidbn"}],["path",{d:"M8.65 22c.21-.66.45-1.32.57-2",key:"13wd9y"}],["path",{d:"M9 6.8a6 6 0 0 1 9 5.2v2",key:"1fr1j5"}]],G=o("fingerprint-pattern",tt);var ot=[["path",{d:"M3 14h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-7a9 9 0 0 1 18 0v7a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3",key:"1xhozi"}]],we=o("headphones",ot);var lt=[["path",{d:"M2.586 17.414A2 2 0 0 0 2 18.828V21a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h1a1 1 0 0 0 1-1v-1a1 1 0 0 1 1-1h.172a2 2 0 0 0 1.414-.586l.814-.814a6.5 6.5 0 1 0-4-4z",key:"1s6t7t"}],["circle",{cx:"16.5",cy:"7.5",r:".5",fill:"currentColor",key:"w0ekpg"}]],Pe=o("key-round",lt);var dt=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],z=o("loader-circle",dt);var ut=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]],ye=o("lock",ut);var rt=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Ae=o("log-out",rt);var st=[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]],Me=o("paperclip",st);var ft=[["path",{d:"M21 9V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v10c0 1.1.9 2 2 2h4",key:"daa4of"}],["rect",{width:"10",height:"7",x:"12",y:"13",rx:"2",key:"1nb8gs"}]],be=o("picture-in-picture-2",ft);var it=[["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"}]],Be=o("play",it);var ct=[["path",{d:"M21 12a9 9 0 1 1-9-9c2.52 0 4.93 1 6.74 2.74L21 8",key:"1p45f6"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}]],Fe=o("rotate-cw",ct);var nt=[["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}],["path",{d:"M3.103 6.034h17.794",key:"awc11p"}],["path",{d:"M3.4 5.467a2 2 0 0 0-.4 1.2V20a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6.667a2 2 0 0 0-.4-1.2l-2-2.667A2 2 0 0 0 17 2H7a2 2 0 0 0-1.6.8z",key:"o988cm"}]],De=o("shopping-bag",nt);var pt=[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]],Re=o("user",pt);var mt=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Te=o("x",mt);var Lt=[["path",{d:"M5 17H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v10a2 2 0 0 1-2 2h-1",key:"ns4c3b"}],["path",{d:"m12 15 5 6H7Z",key:"14qnn2"}]],qe=o("airplay",Lt);var It=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],ve=o("award",It);var xt=[["rect",{width:"18",height:"14",x:"3",y:"5",rx:"2",ry:"2",key:"12ruh7"}],["path",{d:"M7 15h4M15 15h2M7 11h2M13 11h4",key:"1ueiar"}]],V=o("captions",xt);var ht=[["path",{d:"M2 8V6a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2h-6",key:"3zrzxg"}],["path",{d:"M2 12a9 9 0 0 1 8 8",key:"g6cvee"}],["path",{d:"M2 16a5 5 0 0 1 4 4",key:"1y1dii"}],["line",{x1:"2",x2:"2.01",y1:"20",y2:"20",key:"xu2jvo"}]],Ue=o("cast",ht);var Ct=[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]],Oe=o("chevron-left",Ct);var gt=[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]],He=o("chevron-right",gt);var St=[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]],Ge=o("chevron-up",St);var kt=[["path",{d:"M9 9.003a1 1 0 0 1 1.517-.859l4.997 2.997a1 1 0 0 1 0 1.718l-4.997 2.997A1 1 0 0 1 9 14.996z",key:"kmsa83"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],W=o("circle-play",kt);var wt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],E=o("circle-x",wt);var Pt=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],ze=o("circle",Pt);var yt=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],Ve=o("external-link",yt);var At=[["path",{d:"m12 14 4-4",key:"9kzdfg"}],["path",{d:"M3.34 19a10 10 0 1 1 17.32 0",key:"19p75a"}]],We=o("gauge",At);var Mt=[["path",{d:"M2 9.5a5.5 5.5 0 0 1 9.591-3.676.56.56 0 0 0 .818 0A5.49 5.49 0 0 1 22 9.5c0 2.29-1.5 4-3 5.5l-5.492 5.313a2 2 0 0 1-3 .019L5 15c-1.5-1.5-3-3.2-3-5.5",key:"mvr1a0"}]],Ee=o("heart",Mt);var bt=[["path",{d:"M3 5h.01",key:"18ugdj"}],["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 19h.01",key:"noohij"}],["path",{d:"M8 5h13",key:"1pao27"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 19h13",key:"m83p4d"}]],Ne=o("list",bt);var Bt=[["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"}]],Xe=o("maximize",Bt);var Ft=[["path",{d:"M8 3v3a2 2 0 0 1-2 2H3",key:"hohbtr"}],["path",{d:"M21 8h-3a2 2 0 0 1-2-2V3",key:"5jw1f3"}],["path",{d:"M3 16h3a2 2 0 0 1 2 2v3",key:"198tvr"}],["path",{d:"M16 21v-3a2 2 0 0 1 2-2h3",key:"ph8mxp"}]],_e=o("minimize",Ft);var Dt=[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]],N=o("panel-left",Dt);var Rt=[["rect",{x:"14",y:"3",width:"5",height:"18",rx:"1",key:"kaeet6"}],["rect",{x:"5",y:"3",width:"5",height:"18",rx:"1",key:"1wsw3u"}]],Ke=o("pause",Rt);var Tt=[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]],Ze=o("rotate-ccw",Tt);var qt=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Qe=o("search",qt);var vt=[["path",{d:"M14 17H5",key:"gfn3mx"}],["path",{d:"M19 7h-9",key:"6i9tg"}],["circle",{cx:"17",cy:"17",r:"3",key:"18b49y"}],["circle",{cx:"7",cy:"7",r:"3",key:"dfmy0x"}]],je=o("settings-2",vt);var Ut=[["path",{d:"M9.671 4.136a2.34 2.34 0 0 1 4.659 0 2.34 2.34 0 0 0 3.319 1.915 2.34 2.34 0 0 1 2.33 4.033 2.34 2.34 0 0 0 0 3.831 2.34 2.34 0 0 1-2.33 4.033 2.34 2.34 0 0 0-3.319 1.915 2.34 2.34 0 0 1-4.659 0 2.34 2.34 0 0 0-3.32-1.915 2.34 2.34 0 0 1-2.33-4.033 2.34 2.34 0 0 0 0-3.831A2.34 2.34 0 0 1 6.35 6.051a2.34 2.34 0 0 0 3.319-1.915",key:"1i5ecw"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],Je=o("settings",Ut);var Ot=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Ye=o("share-2",Ot);var Ht=[["path",{d:"M10 5H3",key:"1qgfaw"}],["path",{d:"M12 19H3",key:"yhmn1j"}],["path",{d:"M14 3v4",key:"1sua03"}],["path",{d:"M16 17v4",key:"1q0r14"}],["path",{d:"M21 12h-9",key:"1o4lsq"}],["path",{d:"M21 19h-5",key:"1rlt1p"}],["path",{d:"M21 5h-7",key:"1oszz2"}],["path",{d:"M8 10v4",key:"tgpxqk"}],["path",{d:"M8 12H3",key:"a7s4jb"}]],$e=o("sliders-horizontal",Ht);var Gt=[["path",{d:"M11.525 2.295a.53.53 0 0 1 .95 0l2.31 4.679a2.123 2.123 0 0 0 1.595 1.16l5.166.756a.53.53 0 0 1 .294.904l-3.736 3.638a2.123 2.123 0 0 0-.611 1.878l.882 5.14a.53.53 0 0 1-.771.56l-4.618-2.428a2.122 2.122 0 0 0-1.973 0L6.396 21.01a.53.53 0 0 1-.77-.56l.881-5.139a2.122 2.122 0 0 0-.611-1.879L2.16 9.795a.53.53 0 0 1 .294-.906l5.165-.755a2.122 2.122 0 0 0 1.597-1.16z",key:"r04s7s"}]],ea=o("star",Gt);var zt=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],aa=o("thumbs-up",zt);var Vt=[["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"}]],ta=o("volume-1",Vt);var Wt=[["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"}]],oa=o("volume-2",Wt);var Et=[["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"}]],la=o("volume-x",Et);var Nt=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],da=o("zoom-in",Nt);var Xt=[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]],ua=o("zoom-out",Xt);function ya(e){var a,t,l="";if(typeof e=="string"||typeof e=="number")l+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(a=0;a<r;a++)e[a]&&(t=ya(e[a]))&&(l&&(l+=" "),l+=t)}else for(t in e)e[t]&&(l&&(l+=" "),l+=t);return l}function ra(){for(var e,a,t=0,l="",r=arguments.length;t<r;t++)(e=arguments[t])&&(a=ya(e))&&(l&&(l+=" "),l+=a);return l}var Wu=ra;var _t=(e,a)=>{let t=new Array(e.length+a.length);for(let l=0;l<e.length;l++)t[l]=e[l];for(let l=0;l<a.length;l++)t[e.length+l]=a[l];return t},Kt=(e,a)=>({classGroupId:e,validator:a}),Ra=(e=new Map,a=null,t)=>({nextPart:e,validators:a,classGroupId:t});var Aa=[],Zt="arbitrary..",Qt=e=>{let a=Jt(e),{conflictingClassGroups:t,conflictingClassGroupModifiers:l}=e;return{getClassGroupId:f=>{if(f.startsWith("[")&&f.endsWith("]"))return jt(f);let m=f.split("-"),i=m[0]===""&&m.length>1?1:0;return Ta(m,i,a)},getConflictingClassGroupIds:(f,m)=>{if(m){let i=l[f],L=t[f];return i?L?_t(L,i):i:L||Aa}return t[f]||Aa}}},Ta=(e,a,t)=>{if(e.length-a===0)return t.classGroupId;let r=e[a],s=t.nextPart.get(r);if(s){let L=Ta(e,a+1,s);if(L)return L}let f=t.validators;if(f===null)return;let m=a===0?e.join("-"):e.slice(a).join("-"),i=f.length;for(let L=0;L<i;L++){let I=f[L];if(I.validator(m))return I.classGroupId}},jt=e=>e.slice(1,-1).indexOf(":")===-1?void 0:(()=>{let a=e.slice(1,-1),t=a.indexOf(":"),l=a.slice(0,t);return l?Zt+l:void 0})(),Jt=e=>{let{theme:a,classGroups:t}=e;return Yt(t,a)},Yt=(e,a)=>{let t=Ra();for(let l in e){let r=e[l];ia(r,t,l,a)}return t},ia=(e,a,t,l)=>{let r=e.length;for(let s=0;s<r;s++){let f=e[s];$t(f,a,t,l)}},$t=(e,a,t,l)=>{if(typeof e=="string"){eo(e,a,t);return}if(typeof e=="function"){ao(e,a,t,l);return}to(e,a,t,l)},eo=(e,a,t)=>{let l=e===""?a:qa(a,e);l.classGroupId=t},ao=(e,a,t,l)=>{if(oo(e)){ia(e(l),a,t,l);return}a.validators===null&&(a.validators=[]),a.validators.push(Kt(t,e))},to=(e,a,t,l)=>{let r=Object.entries(e),s=r.length;for(let f=0;f<s;f++){let[m,i]=r[f];ia(i,qa(a,m),t,l)}},qa=(e,a)=>{let t=e,l=a.split("-"),r=l.length;for(let s=0;s<r;s++){let f=l[s],m=t.nextPart.get(f);m||(m=Ra(),t.nextPart.set(f,m)),t=m}return t},oo=e=>"isThemeGetter"in e&&e.isThemeGetter===!0,lo=e=>{if(e<1)return{get:()=>{},set:()=>{}};let a=0,t=Object.create(null),l=Object.create(null),r=(s,f)=>{t[s]=f,a++,a>e&&(a=0,l=t,t=Object.create(null))};return{get(s){let f=t[s];if(f!==void 0)return f;if((f=l[s])!==void 0)return r(s,f),f},set(s,f){s in t?t[s]=f:r(s,f)}}};var uo=[],Ma=(e,a,t,l,r)=>({modifiers:e,hasImportantModifier:a,baseClassName:t,maybePostfixModifierPosition:l,isExternal:r}),ro=e=>{let{prefix:a,experimentalParseClassName:t}=e,l=r=>{let s=[],f=0,m=0,i=0,L,I=r.length;for(let w=0;w<I;w++){let g=r[w];if(f===0&&m===0){if(g===":"){s.push(r.slice(i,w)),i=w+1;continue}if(g==="/"){L=w;continue}}g==="["?f++:g==="]"?f--:g==="("?m++:g===")"&&m--}let k=s.length===0?r:r.slice(i),P=k,B=!1;k.endsWith("!")?(P=k.slice(0,-1),B=!0):k.startsWith("!")&&(P=k.slice(1),B=!0);let F=L&&L>i?L-i:void 0;return Ma(s,B,P,F)};if(a){let r=a+":",s=l;l=f=>f.startsWith(r)?s(f.slice(r.length)):Ma(uo,!1,f,void 0,!0)}if(t){let r=l;l=s=>t({className:s,parseClassName:r})}return l},so=e=>{let a=new Map;return e.orderSensitiveModifiers.forEach((t,l)=>{a.set(t,1e6+l)}),t=>{let l=[],r=[];for(let s=0;s<t.length;s++){let f=t[s],m=f[0]==="[",i=a.has(f);m||i?(r.length>0&&(r.sort(),l.push(...r),r=[]),l.push(f)):r.push(f)}return r.length>0&&(r.sort(),l.push(...r)),l}},fo=e=>({cache:lo(e.cacheSize),parseClassName:ro(e),sortModifiers:so(e),...Qt(e)}),io=/\s+/,co=(e,a)=>{let{parseClassName:t,getClassGroupId:l,getConflictingClassGroupIds:r,sortModifiers:s}=a,f=[],m=e.trim().split(io),i="";for(let L=m.length-1;L>=0;L-=1){let I=m[L],{isExternal:k,modifiers:P,hasImportantModifier:B,baseClassName:F,maybePostfixModifierPosition:w}=t(I);if(k){i=I+(i.length>0?" "+i:i);continue}let g=!!w,D=l(g?F.substring(0,w):F);if(!D){if(!g){i=I+(i.length>0?" "+i:i);continue}if(D=l(F),!D){i=I+(i.length>0?" "+i:i);continue}g=!1}let $=P.length===0?"":P.length===1?P[0]:s(P).join(":"),Z=B?$+"!":$,v=Z+D;if(f.indexOf(v)>-1)continue;f.push(v);let U=r(D,g);for(let R=0;R<U.length;++R){let Q=U[R];f.push(Z+Q)}i=I+(i.length>0?" "+i:i)}return i},no=(...e)=>{let a=0,t,l,r="";for(;a<e.length;)(t=e[a++])&&(l=va(t))&&(r&&(r+=" "),r+=l);return r},va=e=>{if(typeof e=="string")return e;let a,t="";for(let l=0;l<e.length;l++)e[l]&&(a=va(e[l]))&&(t&&(t+=" "),t+=a);return t},ba=(e,...a)=>{let t,l,r,s,f=i=>{let L=a.reduce((I,k)=>k(I),e());return t=fo(L),l=t.cache.get,r=t.cache.set,s=m,m(i)},m=i=>{let L=l(i);if(L)return L;let I=co(i,t);return r(i,I),I};return s=f,(...i)=>s(no(...i))},po=[],x=e=>{let a=t=>t[e]||po;return a.isThemeGetter=!0,a},Ua=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,Oa=/^\((?:(\w[\w-]*):)?(.+)\)$/i,mo=/^\d+\/\d+$/,Lo=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Io=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,xo=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,ho=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Co=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,X=e=>mo.test(e),p=e=>!!e&&!Number.isNaN(Number(e)),b=e=>!!e&&Number.isInteger(Number(e)),sa=e=>e.endsWith("%")&&p(e.slice(0,-1)),M=e=>Lo.test(e),go=()=>!0,So=e=>Io.test(e)&&!xo.test(e),Ha=()=>!1,ko=e=>ho.test(e),wo=e=>Co.test(e),Po=e=>!d(e)&&!u(e),yo=e=>_(e,Va,Ha),d=e=>Ua.test(e),q=e=>_(e,Wa,So),fa=e=>_(e,Fo,p),Ba=e=>_(e,Ga,Ha),Ao=e=>_(e,za,wo),re=e=>_(e,Ea,ko),u=e=>Oa.test(e),J=e=>K(e,Wa),Mo=e=>K(e,Do),Fa=e=>K(e,Ga),bo=e=>K(e,Va),Bo=e=>K(e,za),se=e=>K(e,Ea,!0),_=(e,a,t)=>{let l=Ua.exec(e);return l?l[1]?a(l[1]):t(l[2]):!1},K=(e,a,t=!1)=>{let l=Oa.exec(e);return l?l[1]?a(l[1]):t:!1},Ga=e=>e==="position"||e==="percentage",za=e=>e==="image"||e==="url",Va=e=>e==="length"||e==="size"||e==="bg-size",Wa=e=>e==="length",Fo=e=>e==="number",Do=e=>e==="family-name",Ea=e=>e==="shadow";var Da=()=>{let e=x("color"),a=x("font"),t=x("text"),l=x("font-weight"),r=x("tracking"),s=x("leading"),f=x("breakpoint"),m=x("container"),i=x("spacing"),L=x("radius"),I=x("shadow"),k=x("inset-shadow"),P=x("text-shadow"),B=x("drop-shadow"),F=x("blur"),w=x("perspective"),g=x("aspect"),D=x("ease"),$=x("animate"),Z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],v=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],U=()=>[...v(),u,d],R=()=>["auto","hidden","clip","visible","scroll"],Q=()=>["auto","contain","none"],n=()=>[u,d,i],y=()=>[X,"full","auto",...n()],ca=()=>[b,"none","subgrid",u,d],na=()=>["auto",{span:["full",b,u,d]},b,u,d],ee=()=>[b,"auto",u,d],pa=()=>["auto","min","max","fr",u,d],ce=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],O=()=>["start","end","center","stretch","center-safe","end-safe"],A=()=>["auto",...n()],T=()=>[X,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...n()],c=()=>[e,u,d],ma=()=>[...v(),Fa,Ba,{position:[u,d]}],La=()=>["no-repeat",{repeat:["","x","y","space","round"]}],Ia=()=>["auto","cover","contain",bo,yo,{size:[u,d]}],ne=()=>[sa,J,q],C=()=>["","none","full",L,u,d],S=()=>["",p,J,q],ae=()=>["solid","dashed","dotted","double"],xa=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],h=()=>[p,sa,Fa,Ba],ha=()=>["","none",F,u,d],te=()=>["none",p,u,d],oe=()=>["none",p,u,d],pe=()=>[p,u,d],le=()=>[X,"full",...n()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[M],breakpoint:[M],color:[go],container:[M],"drop-shadow":[M],ease:["in","out","in-out"],font:[Po],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[M],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[M],shadow:[M],spacing:["px",p],text:[M],"text-shadow":[M],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",X,d,u,g]}],container:["container"],columns:[{columns:[p,d,u,m]}],"break-after":[{"break-after":Z()}],"break-before":[{"break-before":Z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:U()}],overflow:[{overflow:R()}],"overflow-x":[{"overflow-x":R()}],"overflow-y":[{"overflow-y":R()}],overscroll:[{overscroll:Q()}],"overscroll-x":[{"overscroll-x":Q()}],"overscroll-y":[{"overscroll-y":Q()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:y()}],"inset-x":[{"inset-x":y()}],"inset-y":[{"inset-y":y()}],start:[{start:y()}],end:[{end:y()}],top:[{top:y()}],right:[{right:y()}],bottom:[{bottom:y()}],left:[{left:y()}],visibility:["visible","invisible","collapse"],z:[{z:[b,"auto",u,d]}],basis:[{basis:[X,"full","auto",m,...n()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[p,X,"auto","initial","none",d]}],grow:[{grow:["",p,u,d]}],shrink:[{shrink:["",p,u,d]}],order:[{order:[b,"first","last","none",u,d]}],"grid-cols":[{"grid-cols":ca()}],"col-start-end":[{col:na()}],"col-start":[{"col-start":ee()}],"col-end":[{"col-end":ee()}],"grid-rows":[{"grid-rows":ca()}],"row-start-end":[{row:na()}],"row-start":[{"row-start":ee()}],"row-end":[{"row-end":ee()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":pa()}],"auto-rows":[{"auto-rows":pa()}],gap:[{gap:n()}],"gap-x":[{"gap-x":n()}],"gap-y":[{"gap-y":n()}],"justify-content":[{justify:[...ce(),"normal"]}],"justify-items":[{"justify-items":[...O(),"normal"]}],"justify-self":[{"justify-self":["auto",...O()]}],"align-content":[{content:["normal",...ce()]}],"align-items":[{items:[...O(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...O(),{baseline:["","last"]}]}],"place-content":[{"place-content":ce()}],"place-items":[{"place-items":[...O(),"baseline"]}],"place-self":[{"place-self":["auto",...O()]}],p:[{p:n()}],px:[{px:n()}],py:[{py:n()}],ps:[{ps:n()}],pe:[{pe:n()}],pt:[{pt:n()}],pr:[{pr:n()}],pb:[{pb:n()}],pl:[{pl:n()}],m:[{m:A()}],mx:[{mx:A()}],my:[{my:A()}],ms:[{ms:A()}],me:[{me:A()}],mt:[{mt:A()}],mr:[{mr:A()}],mb:[{mb:A()}],ml:[{ml:A()}],"space-x":[{"space-x":n()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":n()}],"space-y-reverse":["space-y-reverse"],size:[{size:T()}],w:[{w:[m,"screen",...T()]}],"min-w":[{"min-w":[m,"screen","none",...T()]}],"max-w":[{"max-w":[m,"screen","none","prose",{screen:[f]},...T()]}],h:[{h:["screen","lh",...T()]}],"min-h":[{"min-h":["screen","lh","none",...T()]}],"max-h":[{"max-h":["screen","lh",...T()]}],"font-size":[{text:["base",t,J,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[l,u,fa]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",sa,d]}],"font-family":[{font:[Mo,d,a]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[r,u,d]}],"line-clamp":[{"line-clamp":[p,"none",u,fa]}],leading:[{leading:[s,...n()]}],"list-image":[{"list-image":["none",u,d]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",u,d]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:c()}],"text-color":[{text:c()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...ae(),"wavy"]}],"text-decoration-thickness":[{decoration:[p,"from-font","auto",u,q]}],"text-decoration-color":[{decoration:c()}],"underline-offset":[{"underline-offset":[p,"auto",u,d]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:n()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",u,d]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",u,d]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:ma()}],"bg-repeat":[{bg:La()}],"bg-size":[{bg:Ia()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},b,u,d],radial:["",u,d],conic:[b,u,d]},Bo,Ao]}],"bg-color":[{bg:c()}],"gradient-from-pos":[{from:ne()}],"gradient-via-pos":[{via:ne()}],"gradient-to-pos":[{to:ne()}],"gradient-from":[{from:c()}],"gradient-via":[{via:c()}],"gradient-to":[{to:c()}],rounded:[{rounded:C()}],"rounded-s":[{"rounded-s":C()}],"rounded-e":[{"rounded-e":C()}],"rounded-t":[{"rounded-t":C()}],"rounded-r":[{"rounded-r":C()}],"rounded-b":[{"rounded-b":C()}],"rounded-l":[{"rounded-l":C()}],"rounded-ss":[{"rounded-ss":C()}],"rounded-se":[{"rounded-se":C()}],"rounded-ee":[{"rounded-ee":C()}],"rounded-es":[{"rounded-es":C()}],"rounded-tl":[{"rounded-tl":C()}],"rounded-tr":[{"rounded-tr":C()}],"rounded-br":[{"rounded-br":C()}],"rounded-bl":[{"rounded-bl":C()}],"border-w":[{border:S()}],"border-w-x":[{"border-x":S()}],"border-w-y":[{"border-y":S()}],"border-w-s":[{"border-s":S()}],"border-w-e":[{"border-e":S()}],"border-w-t":[{"border-t":S()}],"border-w-r":[{"border-r":S()}],"border-w-b":[{"border-b":S()}],"border-w-l":[{"border-l":S()}],"divide-x":[{"divide-x":S()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":S()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...ae(),"hidden","none"]}],"divide-style":[{divide:[...ae(),"hidden","none"]}],"border-color":[{border:c()}],"border-color-x":[{"border-x":c()}],"border-color-y":[{"border-y":c()}],"border-color-s":[{"border-s":c()}],"border-color-e":[{"border-e":c()}],"border-color-t":[{"border-t":c()}],"border-color-r":[{"border-r":c()}],"border-color-b":[{"border-b":c()}],"border-color-l":[{"border-l":c()}],"divide-color":[{divide:c()}],"outline-style":[{outline:[...ae(),"none","hidden"]}],"outline-offset":[{"outline-offset":[p,u,d]}],"outline-w":[{outline:["",p,J,q]}],"outline-color":[{outline:c()}],shadow:[{shadow:["","none",I,se,re]}],"shadow-color":[{shadow:c()}],"inset-shadow":[{"inset-shadow":["none",k,se,re]}],"inset-shadow-color":[{"inset-shadow":c()}],"ring-w":[{ring:S()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:c()}],"ring-offset-w":[{"ring-offset":[p,q]}],"ring-offset-color":[{"ring-offset":c()}],"inset-ring-w":[{"inset-ring":S()}],"inset-ring-color":[{"inset-ring":c()}],"text-shadow":[{"text-shadow":["none",P,se,re]}],"text-shadow-color":[{"text-shadow":c()}],opacity:[{opacity:[p,u,d]}],"mix-blend":[{"mix-blend":[...xa(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":xa()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[p]}],"mask-image-linear-from-pos":[{"mask-linear-from":h()}],"mask-image-linear-to-pos":[{"mask-linear-to":h()}],"mask-image-linear-from-color":[{"mask-linear-from":c()}],"mask-image-linear-to-color":[{"mask-linear-to":c()}],"mask-image-t-from-pos":[{"mask-t-from":h()}],"mask-image-t-to-pos":[{"mask-t-to":h()}],"mask-image-t-from-color":[{"mask-t-from":c()}],"mask-image-t-to-color":[{"mask-t-to":c()}],"mask-image-r-from-pos":[{"mask-r-from":h()}],"mask-image-r-to-pos":[{"mask-r-to":h()}],"mask-image-r-from-color":[{"mask-r-from":c()}],"mask-image-r-to-color":[{"mask-r-to":c()}],"mask-image-b-from-pos":[{"mask-b-from":h()}],"mask-image-b-to-pos":[{"mask-b-to":h()}],"mask-image-b-from-color":[{"mask-b-from":c()}],"mask-image-b-to-color":[{"mask-b-to":c()}],"mask-image-l-from-pos":[{"mask-l-from":h()}],"mask-image-l-to-pos":[{"mask-l-to":h()}],"mask-image-l-from-color":[{"mask-l-from":c()}],"mask-image-l-to-color":[{"mask-l-to":c()}],"mask-image-x-from-pos":[{"mask-x-from":h()}],"mask-image-x-to-pos":[{"mask-x-to":h()}],"mask-image-x-from-color":[{"mask-x-from":c()}],"mask-image-x-to-color":[{"mask-x-to":c()}],"mask-image-y-from-pos":[{"mask-y-from":h()}],"mask-image-y-to-pos":[{"mask-y-to":h()}],"mask-image-y-from-color":[{"mask-y-from":c()}],"mask-image-y-to-color":[{"mask-y-to":c()}],"mask-image-radial":[{"mask-radial":[u,d]}],"mask-image-radial-from-pos":[{"mask-radial-from":h()}],"mask-image-radial-to-pos":[{"mask-radial-to":h()}],"mask-image-radial-from-color":[{"mask-radial-from":c()}],"mask-image-radial-to-color":[{"mask-radial-to":c()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":v()}],"mask-image-conic-pos":[{"mask-conic":[p]}],"mask-image-conic-from-pos":[{"mask-conic-from":h()}],"mask-image-conic-to-pos":[{"mask-conic-to":h()}],"mask-image-conic-from-color":[{"mask-conic-from":c()}],"mask-image-conic-to-color":[{"mask-conic-to":c()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:ma()}],"mask-repeat":[{mask:La()}],"mask-size":[{mask:Ia()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",u,d]}],filter:[{filter:["","none",u,d]}],blur:[{blur:ha()}],brightness:[{brightness:[p,u,d]}],contrast:[{contrast:[p,u,d]}],"drop-shadow":[{"drop-shadow":["","none",B,se,re]}],"drop-shadow-color":[{"drop-shadow":c()}],grayscale:[{grayscale:["",p,u,d]}],"hue-rotate":[{"hue-rotate":[p,u,d]}],invert:[{invert:["",p,u,d]}],saturate:[{saturate:[p,u,d]}],sepia:[{sepia:["",p,u,d]}],"backdrop-filter":[{"backdrop-filter":["","none",u,d]}],"backdrop-blur":[{"backdrop-blur":ha()}],"backdrop-brightness":[{"backdrop-brightness":[p,u,d]}],"backdrop-contrast":[{"backdrop-contrast":[p,u,d]}],"backdrop-grayscale":[{"backdrop-grayscale":["",p,u,d]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[p,u,d]}],"backdrop-invert":[{"backdrop-invert":["",p,u,d]}],"backdrop-opacity":[{"backdrop-opacity":[p,u,d]}],"backdrop-saturate":[{"backdrop-saturate":[p,u,d]}],"backdrop-sepia":[{"backdrop-sepia":["",p,u,d]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":n()}],"border-spacing-x":[{"border-spacing-x":n()}],"border-spacing-y":[{"border-spacing-y":n()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",u,d]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[p,"initial",u,d]}],ease:[{ease:["linear","initial",D,u,d]}],delay:[{delay:[p,u,d]}],animate:[{animate:["none",$,u,d]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[w,u,d]}],"perspective-origin":[{"perspective-origin":U()}],rotate:[{rotate:te()}],"rotate-x":[{"rotate-x":te()}],"rotate-y":[{"rotate-y":te()}],"rotate-z":[{"rotate-z":te()}],scale:[{scale:oe()}],"scale-x":[{"scale-x":oe()}],"scale-y":[{"scale-y":oe()}],"scale-z":[{"scale-z":oe()}],"scale-3d":["scale-3d"],skew:[{skew:pe()}],"skew-x":[{"skew-x":pe()}],"skew-y":[{"skew-y":pe()}],transform:[{transform:[u,d,"","none","gpu","cpu"]}],"transform-origin":[{origin:U()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:le()}],"translate-x":[{"translate-x":le()}],"translate-y":[{"translate-y":le()}],"translate-z":[{"translate-z":le()}],"translate-none":["translate-none"],accent:[{accent:c()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:c()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",u,d]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":n()}],"scroll-mx":[{"scroll-mx":n()}],"scroll-my":[{"scroll-my":n()}],"scroll-ms":[{"scroll-ms":n()}],"scroll-me":[{"scroll-me":n()}],"scroll-mt":[{"scroll-mt":n()}],"scroll-mr":[{"scroll-mr":n()}],"scroll-mb":[{"scroll-mb":n()}],"scroll-ml":[{"scroll-ml":n()}],"scroll-p":[{"scroll-p":n()}],"scroll-px":[{"scroll-px":n()}],"scroll-py":[{"scroll-py":n()}],"scroll-ps":[{"scroll-ps":n()}],"scroll-pe":[{"scroll-pe":n()}],"scroll-pt":[{"scroll-pt":n()}],"scroll-pr":[{"scroll-pr":n()}],"scroll-pb":[{"scroll-pb":n()}],"scroll-pl":[{"scroll-pl":n()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",u,d]}],fill:[{fill:["none",...c()]}],"stroke-w":[{stroke:[p,J,q,fa]}],stroke:[{stroke:["none",...c()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}},Ro=(e,{cacheSize:a,prefix:t,experimentalParseClassName:l,extend:r={},override:s={}})=>(Y(e,"cacheSize",a),Y(e,"prefix",t),Y(e,"experimentalParseClassName",l),fe(e.theme,s.theme),fe(e.classGroups,s.classGroups),fe(e.conflictingClassGroups,s.conflictingClassGroups),fe(e.conflictingClassGroupModifiers,s.conflictingClassGroupModifiers),Y(e,"orderSensitiveModifiers",s.orderSensitiveModifiers),ie(e.theme,r.theme),ie(e.classGroups,r.classGroups),ie(e.conflictingClassGroups,r.conflictingClassGroups),ie(e.conflictingClassGroupModifiers,r.conflictingClassGroupModifiers),Na(e,r,"orderSensitiveModifiers"),e),Y=(e,a,t)=>{t!==void 0&&(e[a]=t)},fe=(e,a)=>{if(a)for(let t in a)Y(e,t,a[t])},ie=(e,a)=>{if(a)for(let t in a)Na(e,a,t)},Na=(e,a,t)=>{let l=a[t];l!==void 0&&(e[t]=e[t]?e[t].concat(l):l)},Xa=(e,...a)=>typeof e=="function"?ba(Da,e,...a):ba(()=>Ro(Da(),e),...a);var To=["micro","caption","small","body","input","input-sm","title","lead","heading","page-title","display"],qo=["check","control","inner","card","panel"],vo=Xa({extend:{theme:{text:[...To],radius:[...qo]}}});function Ku(...e){return vo(ra(e))}export{qe as a,Le as b,ve as c,Ie as d,V as e,Ue as f,xe as g,he as h,Oe as i,He as j,Ge as k,H as l,W as m,E as n,ze as o,Ce as p,ge as q,Ve as r,Se as s,ke as t,G as u,We as v,we as w,Ee as x,Pe as y,Ne as z,z as A,ye as B,Ae as C,Xe as D,_e as E,N as F,Me as G,Ke as H,be as I,Be as J,Ze as K,Fe as L,Qe as M,je as N,Je as O,Ye as P,De as Q,$e as R,ea as S,aa as T,Re as U,ta as V,oa as W,la as X,Te as Y,da as Z,ua as _,ra as $,Wu as aa,Ku as ba};
|
|
2
|
+
/*! Bundled license information:
|
|
3
|
+
|
|
4
|
+
lucide-react/dist/esm/shared/src/utils.js:
|
|
5
|
+
lucide-react/dist/esm/defaultAttributes.js:
|
|
6
|
+
lucide-react/dist/esm/Icon.js:
|
|
7
|
+
lucide-react/dist/esm/createLucideIcon.js:
|
|
8
|
+
lucide-react/dist/esm/icons/arrow-left.js:
|
|
9
|
+
lucide-react/dist/esm/icons/book-open.js:
|
|
10
|
+
lucide-react/dist/esm/icons/check.js:
|
|
11
|
+
lucide-react/dist/esm/icons/chevron-down.js:
|
|
12
|
+
lucide-react/dist/esm/icons/circle-check.js:
|
|
13
|
+
lucide-react/dist/esm/icons/copy.js:
|
|
14
|
+
lucide-react/dist/esm/icons/download.js:
|
|
15
|
+
lucide-react/dist/esm/icons/file-text.js:
|
|
16
|
+
lucide-react/dist/esm/icons/file.js:
|
|
17
|
+
lucide-react/dist/esm/icons/fingerprint-pattern.js:
|
|
18
|
+
lucide-react/dist/esm/icons/headphones.js:
|
|
19
|
+
lucide-react/dist/esm/icons/key-round.js:
|
|
20
|
+
lucide-react/dist/esm/icons/loader-circle.js:
|
|
21
|
+
lucide-react/dist/esm/icons/lock.js:
|
|
22
|
+
lucide-react/dist/esm/icons/log-out.js:
|
|
23
|
+
lucide-react/dist/esm/icons/paperclip.js:
|
|
24
|
+
lucide-react/dist/esm/icons/picture-in-picture-2.js:
|
|
25
|
+
lucide-react/dist/esm/icons/play.js:
|
|
26
|
+
lucide-react/dist/esm/icons/rotate-cw.js:
|
|
27
|
+
lucide-react/dist/esm/icons/shopping-bag.js:
|
|
28
|
+
lucide-react/dist/esm/icons/user.js:
|
|
29
|
+
lucide-react/dist/esm/icons/x.js:
|
|
30
|
+
lucide-react/dist/esm/icons/airplay.js:
|
|
31
|
+
lucide-react/dist/esm/icons/award.js:
|
|
32
|
+
lucide-react/dist/esm/icons/captions.js:
|
|
33
|
+
lucide-react/dist/esm/icons/cast.js:
|
|
34
|
+
lucide-react/dist/esm/icons/chevron-left.js:
|
|
35
|
+
lucide-react/dist/esm/icons/chevron-right.js:
|
|
36
|
+
lucide-react/dist/esm/icons/chevron-up.js:
|
|
37
|
+
lucide-react/dist/esm/icons/circle-play.js:
|
|
38
|
+
lucide-react/dist/esm/icons/circle-x.js:
|
|
39
|
+
lucide-react/dist/esm/icons/circle.js:
|
|
40
|
+
lucide-react/dist/esm/icons/external-link.js:
|
|
41
|
+
lucide-react/dist/esm/icons/gauge.js:
|
|
42
|
+
lucide-react/dist/esm/icons/heart.js:
|
|
43
|
+
lucide-react/dist/esm/icons/list.js:
|
|
44
|
+
lucide-react/dist/esm/icons/maximize.js:
|
|
45
|
+
lucide-react/dist/esm/icons/minimize.js:
|
|
46
|
+
lucide-react/dist/esm/icons/panel-left.js:
|
|
47
|
+
lucide-react/dist/esm/icons/pause.js:
|
|
48
|
+
lucide-react/dist/esm/icons/rotate-ccw.js:
|
|
49
|
+
lucide-react/dist/esm/icons/search.js:
|
|
50
|
+
lucide-react/dist/esm/icons/settings-2.js:
|
|
51
|
+
lucide-react/dist/esm/icons/settings.js:
|
|
52
|
+
lucide-react/dist/esm/icons/share-2.js:
|
|
53
|
+
lucide-react/dist/esm/icons/sliders-horizontal.js:
|
|
54
|
+
lucide-react/dist/esm/icons/star.js:
|
|
55
|
+
lucide-react/dist/esm/icons/thumbs-up.js:
|
|
56
|
+
lucide-react/dist/esm/icons/volume-1.js:
|
|
57
|
+
lucide-react/dist/esm/icons/volume-2.js:
|
|
58
|
+
lucide-react/dist/esm/icons/volume-x.js:
|
|
59
|
+
lucide-react/dist/esm/icons/zoom-in.js:
|
|
60
|
+
lucide-react/dist/esm/icons/zoom-out.js:
|
|
61
|
+
lucide-react/dist/esm/lucide-react.js:
|
|
62
|
+
(**
|
|
63
|
+
* @license lucide-react v0.561.0 - ISC
|
|
64
|
+
*
|
|
65
|
+
* This source code is licensed under the ISC license.
|
|
66
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
67
|
+
*)
|
|
68
|
+
*/
|
|
69
|
+
//# sourceMappingURL=chunk-S2NFWI7C.js.map
|