boottent-design 0.1.178 → 0.1.180
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/dist/components.cjs.js +2 -2
- package/dist/components.es.js +1046 -1047
- package/dist/{index-BqnRJqxZ.js → index-DTYsrpo0.js} +1 -1
- package/dist/index-Dnm_UoHq.cjs +41 -0
- package/dist/{index-CTQk0Dev.cjs → index-mjK-px5V.cjs} +1 -1
- package/dist/{index-pjnFLEKB.js → index-vWi4FJ9a.js} +35 -25
- package/dist/{portal-container-CBNW_woO.js → portal-container-Cqfhzo7H.js} +1 -1
- package/dist/{portal-container-pr8obBHa.cjs → portal-container-m70749mq.cjs} +1 -1
- package/dist/provider.cjs.js +1 -1
- package/dist/provider.es.js +2 -2
- package/dist/ui.cjs.js +1 -1
- package/dist/ui.es.js +3 -3
- package/package.json +1 -1
- package/dist/index-BiQqkB9L.cjs +0 -41
package/dist/components.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),Rt=require("./index-DKCqkplO.cjs"),b=require("./index-BiQqkB9L.cjs"),S=require("react"),Te=require("./index-z9hRvvSX.cjs"),te=require("./index-CTQk0Dev.cjs"),$=require("./portal-container-pr8obBHa.cjs");require("react-dom");function Gu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const M=Gu(S),Wu=({children:e})=>h.jsx("div",{className:"purple-wrapper py-2",children:e}),vn=({children:e})=>h.jsx("div",{className:"h1-wrapper py-2",children:e}),xn=({children:e})=>h.jsx("div",{className:"h2-wrapper py-2",children:e}),wn=({children:e})=>h.jsx("div",{className:"h3-wrapper py-2",children:e}),zu=({children:e})=>h.jsx(S.Fragment,{children:e}),je=()=>!0,Ku=e=>{var t,n;return e.type==="paragraph"&&((n=(t=e.paragraph)==null?void 0:t.rich_text)==null?void 0:n.every(r=>r.annotations.color==="purple"))},Jn={default:{heading_1:{priority:3,condition:je,wrapper:vn},heading_2:{priority:2,condition:je,wrapper:xn},heading_3:{priority:1,condition:je,wrapper:wn}},curriculum:{heading_1:{priority:4,condition:je,wrapper:vn},heading_2:{priority:3,condition:je,wrapper:xn},paragraph:{priority:2,condition:Ku,wrapper:Wu,className:"text-main-600 text-lg md:text-xl font-medium"},heading_3:{priority:1,condition:je,wrapper:wn}},article:{heading_1:{priority:3,condition:je,wrapper:vn},heading_2:{priority:2,condition:je,wrapper:xn},heading_3:{priority:1,condition:je,wrapper:wn}},event:{heading_1:{priority:3,condition:je,wrapper:vn},heading_2:{priority:2,condition:je,wrapper:xn},heading_3:{priority:1,condition:je,wrapper:wn}}},Hu={container:"flex flex-col gap-4",heading1:"mb-4 text-xl font-bold text-grey-900 md:text-2xl lg:text-3xl",heading2:"mb-3 text-lg font-semibold text-grey-800 md:text-xl lg:text-2xl",heading3:"mb-2 text-base font-medium text-grey-800 md:text-lg lg:text-xl",paragraph:"mb-2 text-base text-grey-800 leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"ml-1 text-base md:text-lg text-grey-800",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},qu={container:"flex flex-col gap-4",heading1:"mb-4 text-xl font-bold text-blue-800 md:text-2xl lg:text-3xl",heading2:"mb-3 text-lg font-semibold text-blue-700 md:text-xl lg:text-2xl",heading3:"mb-2 text-base font-medium text-grey-800 md:text-lg lg:text-xl",paragraph:"mb-4 text-sm text-grey-800 md:text-base lg:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-blue-500 pl-4 text-sm italic text-grey-600 md:text-base",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"text-sm text-grey-800 md:text-base",code:"mb-4 rounded-md bg-grey-800 p-4 font-mono text-sm text-white",image:"w-full rounded-lg object-cover",divider:"my-6 border-t border-border",table:"w-full border-collapse border border-blue-200",tableRow:"border-b border-blue-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Yu={container:"flex flex-col w-full",heading1:"mb-4 text-2xl font-bold text-grey-900 md:text-3xl lg:text-4xl",heading2:"mb-3 text-xl font-semibold text-grey-800 md:text-2xl lg:text-3xl",heading3:"mb-2 text-lg font-semibold text-grey-800 md:text-xl lg:text-2xl",paragraph:"mb-2 text-base leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-main-50 p-4 text-grey-600",list:"pl-5 space-y-1",listItem:"ml-1 text-base md:text-lg",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden mb-2",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Xu={container:"flex flex-col gap-0",heading1:"mb-4 text-xl font-bold text-grey-900 md:text-2xl lg:text-3xl",heading2:"mb-3 text-xl font-semibold text-grey-800 md:text-2xl lg:text-3xl",heading3:"mb-2 text-lg font-medium text-grey-800 md:text-xl lg:text-2xl",paragraph:"mb-4 text-base text-grey-800 leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"text-base md:text-lg text-grey-700 marker:text-main-600",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden w-full",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},ci=e=>{switch(e){case"curriculum":return qu;case"article":return Yu;case"event":return Xu;default:return Hu}},Zu={default:"",gray:"text-grey-500",brown:"text-yellow-900",orange:"text-orange-500",yellow:"text-yellow-500",green:"text-green-500",blue:"text-blue-500",purple:"text-purple-500",pink:"text-pink-500",red:"text-red-500"},us={default:"",gray:"bg-grey-100",brown:"bg-yellow-100",orange:"bg-orange-100",yellow:"bg-yellow-100",green:"bg-green-100",blue:"bg-blue-100",purple:"bg-purple-100",pink:"bg-pink-100",red:"bg-red-100"},Qu=(e,t="default")=>{const n={id:"root",type:"root",children:[],parent:{},has_children:!0},r={root:n};e.forEach(a=>{a.children=[],r[a.id]=a});const i={};e.forEach(a=>{var c;const l=(c=a.parent)==null?void 0:c.block_id;l&&(i[l]||(i[l]=[]),i[l].push(a))});const s=new Set,o=[{block:n,priority:0}];return e.forEach(a=>{var f;if(s.has(a.id))return;const l=Yo(a,t),c=(f=a.parent)==null?void 0:f.block_id,u=c?r[c]:null;if(l>0){for(;o.length>1&&o[o.length-1].priority<=l;)o.pop();const d={...a,children:[]};o[o.length-1].block.children.push(d),o.push({block:d,priority:l}),s.add(a.id)}else if(c&&u)u.children.push(a),s.add(a.id);else{const d={...a,children:[]};o[o.length-1].block.children.push(d),s.add(a.id);const p=i[a.id];p&&p.length>0&&(d.children=p,p.forEach(m=>s.add(m.id)))}}),n.children||[]},qo=["bulleted_list_item","numbered_list_item"],Yo=(e,t="default")=>{var r;const n=(r=Jn[t])==null?void 0:r[e.type];return n!=null&&n.condition(e)?n.priority:0},Ju=(e,t="default")=>{var r;const n=(r=Jn[t])==null?void 0:r[e.type];return n!=null&&n.condition(e)?n.wrapper:zu},Xo=(e,t="default")=>{var r;const n=(r=Jn[t])==null?void 0:r[e.type];return!!(n!=null&&n.priority&&n.condition(e))};function ui(e){const t=[];let n=[],r=null;const i=()=>{!r||n.length===0||(r==="block"?n.forEach(s=>t.push({type:"block",block:s})):r==="bulleted_list"?t.push({type:"bulleted_list",blocks:n}):r==="numbered_list"&&t.push({type:"numbered_list",blocks:n}),n=[],r=null)};for(const s of e){const o=s.type==="bulleted_list_item",a=s.type==="numbered_list_item",l=o?"bulleted_list":a?"numbered_list":"block";r===l?n.push(s):(i(),r=l,n=[s])}return i(),t}const ed=e=>e.includes("youtu.be")?"https://www.youtube.com/embed/"+e.split("/").pop():e.includes("youtube.com/watch")?"https://www.youtube.com/embed/"+e.split("v=")[1].split("&")[0]:e;var di="Collapsible",[td,Zo]=b.createContextScope(di),[nd,fi]=td(di),Qo=M.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:o,...a}=e,[l=!1,c]=b.useControllableState({prop:r,defaultProp:i,onChange:o});return h.jsx(nd,{scope:n,disabled:s,contentId:b.useId(),open:l,onOpenToggle:M.useCallback(()=>c(u=>!u),[c]),children:h.jsx(b.Primitive.div,{"data-state":pi(l),"data-disabled":s?"":void 0,...a,ref:t})})});Qo.displayName=di;var Jo="CollapsibleTrigger",ea=M.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=fi(Jo,n);return h.jsx(b.Primitive.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":pi(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:b.composeEventHandlers(e.onClick,i.onOpenToggle)})});ea.displayName=Jo;var hi="CollapsibleContent",ta=M.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=fi(hi,e.__scopeCollapsible);return h.jsx(b.Presence,{present:n||i.open,children:({present:s})=>h.jsx(rd,{...r,ref:t,present:s})})});ta.displayName=hi;var rd=M.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,o=fi(hi,n),[a,l]=M.useState(r),c=M.useRef(null),u=b.useComposedRefs(t,c),f=M.useRef(0),d=f.current,p=M.useRef(0),m=p.current,g=o.open||a,y=M.useRef(g),v=M.useRef();return M.useEffect(()=>{const x=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(x)},[]),b.useLayoutEffect2(()=>{const x=c.current;if(x){v.current=v.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();f.current=w.height,p.current=w.width,y.current||(x.style.transitionDuration=v.current.transitionDuration,x.style.animationName=v.current.animationName),l(r)}},[o.open,r]),h.jsx(b.Primitive.div,{"data-state":pi(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g,...s,ref:u,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:g&&i})});function pi(e){return e?"open":"closed"}var id=Qo,sd=ea,od=ta,st="Accordion",ad=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[mi,ld,cd]=b.createCollection(st),[er,C0]=b.createContextScope(st,[cd,Zo]),gi=Zo(),na=S.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,s=r;return h.jsx(mi.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?h.jsx(hd,{...s,ref:t}):h.jsx(fd,{...i,ref:t})})});na.displayName=st;var[ra,ud]=er(st),[ia,dd]=er(st,{collapsible:!1}),fd=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...o}=e,[a,l]=b.useControllableState({prop:n,defaultProp:r,onChange:i});return h.jsx(ra,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:l,onItemClose:S.useCallback(()=>s&&l(""),[s,l]),children:h.jsx(ia,{scope:e.__scopeAccordion,collapsible:s,children:h.jsx(sa,{...o,ref:t})})})}),hd=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o=[],a]=b.useControllableState({prop:n,defaultProp:r,onChange:i}),l=S.useCallback(u=>a((f=[])=>[...f,u]),[a]),c=S.useCallback(u=>a((f=[])=>f.filter(d=>d!==u)),[a]);return h.jsx(ra,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:c,children:h.jsx(ia,{scope:e.__scopeAccordion,collapsible:!0,children:h.jsx(sa,{...s,ref:t})})})}),[pd,tr]=er(st),sa=S.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...o}=e,a=S.useRef(null),l=b.useComposedRefs(a,t),c=ld(n),f=b.useDirection(i)==="ltr",d=b.composeEventHandlers(e.onKeyDown,p=>{var k;if(!ad.includes(p.key))return;const m=p.target,g=c().filter(q=>{var X;return!((X=q.ref.current)!=null&&X.disabled)}),y=g.findIndex(q=>q.ref.current===m),v=g.length;if(y===-1)return;p.preventDefault();let x=y;const w=0,E=v-1,T=()=>{x=y+1,x>E&&(x=w)},N=()=>{x=y-1,x<w&&(x=E)};switch(p.key){case"Home":x=w;break;case"End":x=E;break;case"ArrowRight":s==="horizontal"&&(f?T():N());break;case"ArrowDown":s==="vertical"&&T();break;case"ArrowLeft":s==="horizontal"&&(f?N():T());break;case"ArrowUp":s==="vertical"&&N();break}const B=x%v;(k=g[B].ref.current)==null||k.focus()});return h.jsx(pd,{scope:n,disabled:r,direction:i,orientation:s,children:h.jsx(mi.Slot,{scope:n,children:h.jsx(b.Primitive.div,{...o,"data-orientation":s,ref:l,onKeyDown:r?void 0:d})})})}),jn="AccordionItem",[md,bi]=er(jn),oa=S.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,s=tr(jn,n),o=ud(jn,n),a=gi(n),l=b.useId(),c=r&&o.value.includes(r)||!1,u=s.disabled||e.disabled;return h.jsx(md,{scope:n,open:c,disabled:u,triggerId:l,children:h.jsx(id,{"data-orientation":s.orientation,"data-state":fa(c),...a,...i,ref:t,disabled:u,open:c,onOpenChange:f=>{f?o.onItemOpen(r):o.onItemClose(r)}})})});oa.displayName=jn;var aa="AccordionHeader",la=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=tr(st,n),s=bi(aa,n);return h.jsx(b.Primitive.h3,{"data-orientation":i.orientation,"data-state":fa(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});la.displayName=aa;var Ir="AccordionTrigger",ca=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=tr(st,n),s=bi(Ir,n),o=dd(Ir,n),a=gi(n);return h.jsx(mi.ItemSlot,{scope:n,children:h.jsx(sd,{"aria-disabled":s.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...a,...r,ref:t})})});ca.displayName=Ir;var ua="AccordionContent",da=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=tr(st,n),s=bi(ua,n),o=gi(n);return h.jsx(od,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});da.displayName=ua;function fa(e){return e?"open":"closed"}var gd=na,bd=oa,yd=la,ha=ca,pa=da;const vd=gd,ma=M.forwardRef(({className:e,...t},n)=>h.jsx(bd,{ref:n,className:b.cn("w-full border-b",e),...t}));ma.displayName="AccordionItem";const ga=M.forwardRef(({className:e,children:t,disabled:n,...r},i)=>h.jsx(yd,{className:"flex",children:h.jsxs(ha,{ref:i,className:b.cn("flex flex-1 items-center justify-between py-4 text-start font-medium transition-all [&[data-state=open]>svg]:rotate-180",e),disabled:n,...r,children:[t,!n&&h.jsx(b.Icon.ArrowDown,{className:"shrink-0 transition-transform duration-200",fill:Rt.colors.grey[600],size:"16"})]})}));ga.displayName=ha.displayName;const ba=M.forwardRef(({className:e,children:t,...n},r)=>h.jsx(pa,{ref:r,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down transition-all",...n,children:h.jsx("div",{className:b.cn("overflow-hidden pb-4 text-sm",e),children:t})}));ba.displayName=pa.displayName;const Zt={Root:vd,Item:ma,Trigger:ga,Content:ba},Bn=({src:e,alt:t,object:n="cover",lazy:r=!0,size:i="auto",className:s,...o})=>{const a={contain:"object-contain h-full",cover:"object-cover h-full",fill:"object-fill h-full","scale-down":"object-scale-down",none:"object-none"},l={full:"w-full",fit:"w-fit",auto:"w-auto"};let c="",u={};return typeof i=="string"?c=l[i]:typeof i=="number"&&(u={width:`${i}px`}),h.jsx("img",{src:e,alt:t?`${t} 이미지`:"이미지",loading:r?"lazy":"eager",className:b.cn(a[n],c,s),style:u,...o})},xd=864e5,ya=6e4,va=36e5,ds=Symbol.for("constructDateFrom");function yi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ds in e?e[ds](t):e instanceof Date?new e.constructor(t):new Date(t)}function Vn(e,t){return yi(e,e)}function fs(e){const t=Vn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function xa(e,...t){const n=yi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function hs(e,t){const n=Vn(e);return n.setHours(0,0,0,0),n}function wd(e,t,n){const[r,i]=xa(n==null?void 0:n.in,e,t),s=hs(r),o=hs(i),a=+s-fs(s),l=+o-fs(o);return Math.round((a-l)/xd)}function Ed(e,t,n){const[r,i]=xa(n==null?void 0:n.in,e,t),s=ps(r,i),o=Math.abs(wd(r,i));r.setDate(r.getDate()-s*o);const a=+(ps(r,i)===-s),l=s*(o-a);return l===0?0:l}function ps(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Td(e,t){const n=()=>yi(t==null?void 0:t.in,NaN),i=Cd(e);let s;if(i.date){const c=Ad(i.date,2);s=Pd(c.restDateString,c.year)}if(!s||isNaN(+s))return n();const o=+s;let a=0,l;if(i.time&&(a=Od(i.time),isNaN(a)))return n();if(i.timezone){if(l=Md(i.timezone),isNaN(l))return n()}else{const c=new Date(o+a),u=Vn(0);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return Vn(o+a+l)}const En={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},_d=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Sd=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Nd=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Cd(e){const t={},n=e.split(En.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],En.timeZoneDelimiter.test(t.date)&&(t.date=e.split(En.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=En.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Ad(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:e.slice((r[1]||r[2]).length)}}function Pd(e,t){if(t===null)return new Date(NaN);const n=e.match(_d);if(!n)return new Date(NaN);const r=!!n[4],i=Yt(n[1]),s=Yt(n[2])-1,o=Yt(n[3]),a=Yt(n[4]),l=Yt(n[5])-1;if(r)return Ld(t,a,l)?Rd(t,a,l):new Date(NaN);{const c=new Date(0);return!Id(t,s,o)||!kd(t,i)?new Date(NaN):(c.setUTCFullYear(t,s,Math.max(i,o)),c)}}function Yt(e){return e?parseInt(e):1}function Od(e){const t=e.match(Sd);if(!t)return NaN;const n=mr(t[1]),r=mr(t[2]),i=mr(t[3]);return jd(n,r,i)?n*va+r*ya+i*1e3:NaN}function mr(e){return e&&parseFloat(e.replace(",","."))||0}function Md(e){if(e==="Z")return 0;const t=e.match(Nd);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Bd(r,i)?n*(r*va+i*ya):NaN}function Rd(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,s=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const Dd=[31,null,31,30,31,30,31,31,30,31,30,31];function wa(e){return e%400===0||e%4===0&&e%100!==0}function Id(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Dd[t]||(wa(e)?29:28))}function kd(e,t){return t>=1&&t<=(wa(e)?366:365)}function Ld(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function jd(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Bd(e,t){return t>=0&&t<=59}function Vd({adProduct:e,logo:t,title:n,batchName:r="",adTitle:i,startDate:s,tuition:o,nbCardRequired:a,isLoading:l=!1,regEndDate:c,className:u}){if(l)return h.jsx(Ta,{className:u});const f=`${Fd(s)} · ${Ud(o,a)}`;return h.jsx(Ea,{logo:t,title:`${n} ${r}`,adTitle:i,footerText:f,regEndDate:c,className:u,adProduct:e})}function Ea({adProduct:e,logo:t,title:n,adTitle:r,footerText:i,regEndDate:s,className:o}){return h.jsxs(b.FlexBox.Col,{className:b.cn("relative z-10 h-full w-full items-start justify-between gap-2 overflow-hidden rounded-xl border border-grey-200 bg-white p-4 text-grey-800 md:p-5 lg:p-6",o),children:[h.jsx(b.Tag,{variant:"ad",style:{background:Te.adProducts.event.background,color:Te.adProducts.event.color},children:e===Te.adProducts.dDay.value&&s?Gd(s):Te.adProducts.event.value.toUpperCase()}),h.jsx(Bn,{src:t,alt:`${n} 로고`,className:"h-4 object-contain"}),h.jsxs(b.FlexBox.Col,{className:"w-full gap-2",children:[h.jsx("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:text-base lg:h-12",title:n,children:n}),h.jsx("p",{className:"line-clamp-2 h-auto w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:h-[54px] md:text-[15px] md:text-grey-800",children:r}),h.jsx(b.Box,{className:"text-[13px] leading-[19px] text-grey-600",children:i})]})]})}function Ta({className:e}){return h.jsxs(te.Skeleton,{type:"background",className:b.cn("relative z-10 flex h-full w-full flex-col justify-between gap-2 overflow-hidden rounded-xl p-4 md:p-5 lg:p-6",e),children:[h.jsx(b.Tag,{variant:"ad",style:{background:Te.adProducts.event.background,color:Te.adProducts.event.color},className:b.cn("h-7 w-20 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),h.jsx(te.Skeleton,{className:"h-4 w-1/2"}),h.jsxs(b.FlexBox.Col,{className:"gap-2",children:[h.jsx(b.Box,{className:"h-10 w-full",children:h.jsx(te.Skeleton,{className:"h-5 w-4/5"})}),h.jsx(te.Skeleton,{className:"h-14 w-full"})]}),h.jsx(te.Skeleton,{className:"mt-2 h-[19px] w-2/3"})]})}const Fd=e=>{if(!e)return"";const n=e.split(" ")[0].split("-"),r=Number(n[1]),i=`${r}/${Number(n.slice(2).join("."))}`;switch(n[2]){case"98":return`${r}월중 개강`;case"99":return`${r}월중(예상) 개강`;default:return`${i} 개강`}},Ud=(e,t)=>{const n=t?"(내배카💳)":"";return e===0||e===void 0?`무료 ${n}`:`유료 ${n}`},$d=e=>{const n=e.split(" ")[0].split("-"),r=Number(n[0]),i=Number(n[1]);let s=n[2];const o=new Date(r,i,0).getDate();return(isNaN(Number(s))||Number(s)>o)&&(s=o.toString()),`${r}-${String(i).padStart(2,"0")}-${String(s).padStart(2,"0")}`},Gd=e=>{const t=Ed(Td($d(e)),new Date);return t<=0?"마감임박":`D-${t}`},Wd={homepage:{label:"홈페이지",value:"homepage",query:!1},boottent:{label:"자세히보기",value:"boottent",query:!1},curriculum:{label:"커리큘럼 보기",value:"curriculum",query:"curriculum"},event:{label:"이벤트",value:"event",query:"event"},reviews:{label:"후기보기",value:"reviews",query:"reviews"}};var zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D={},kr={exports:{}};(function(e,t){(function(n,r){var i="1.0.39",s="",o="?",a="function",l="undefined",c="object",u="string",f="major",d="model",p="name",m="type",g="vendor",y="version",v="architecture",x="console",w="mobile",E="tablet",T="smarttv",N="wearable",B="embedded",k=500,q="Amazon",X="Apple",ue="ASUS",de="BlackBerry",fe="Browser",pe="Chrome",le="Edge",be="Firefox",Z="Google",re="Huawei",ce="LG",oe="Microsoft",Le="Motorola",Pe="Opera",_="Samsung",R="Sharp",W="Sony",H="Xiaomi",Q="Zebra",Ae="Facebook",he="Chromium OS",ye="Mac OS",ve=" Browser",Re=function(V,U){var j={};for(var Y in V)U[Y]&&U[Y].length%2===0?j[Y]=U[Y].concat(V[Y]):j[Y]=V[Y];return j},Qe=function(V){for(var U={},j=0;j<V.length;j++)U[V[j].toUpperCase()]=V[j];return U},vt=function(V,U){return typeof V===u?$e(U).indexOf($e(V))!==-1:!1},$e=function(V){return V.toLowerCase()},At=function(V){return typeof V===u?V.replace(/[^\d\.]/g,s).split(".")[0]:r},Ge=function(V,U){if(typeof V===u)return V=V.replace(/^\s\s*/,s),typeof U===l?V:V.substring(0,k)},We=function(V,U){for(var j=0,Y,P,I,O,C,J;j<U.length&&!C;){var ze=U[j],Ot=U[j+1];for(Y=P=0;Y<ze.length&&!C&&ze[Y];)if(C=ze[Y++].exec(V),C)for(I=0;I<Ot.length;I++)J=C[++P],O=Ot[I],typeof O===c&&O.length>0?O.length===2?typeof O[1]==a?this[O[0]]=O[1].call(this,J):this[O[0]]=O[1]:O.length===3?typeof O[1]===a&&!(O[1].exec&&O[1].test)?this[O[0]]=J?O[1].call(this,J,O[2]):r:this[O[0]]=J?J.replace(O[1],O[2]):r:O.length===4&&(this[O[0]]=J?O[3].call(this,J.replace(O[1],O[2])):r):this[O]=J||r;j+=2}},Oe=function(V,U){for(var j in U)if(typeof U[j]===c&&U[j].length>0){for(var Y=0;Y<U[j].length;Y++)if(vt(U[j][Y],V))return j===o?r:j}else if(vt(U[j],V))return j===o?r:j;return U.hasOwnProperty("*")?U["*"]:V},Pt={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Je={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,y],[/opios[\/ ]+([\w\.]+)/i],[y,[p,Pe+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[y,[p,Pe+" GX"]],[/\bopr\/([\w\.]+)/i],[y,[p,Pe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[y,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,y],[/quark(?:pc)?\/([-\w\.]+)/i],[y,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[y,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[p,"UC"+fe]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[y,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[y,[p,"Smart Lenovo "+fe]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+fe],y],[/\bfocus\/([\w\.]+)/i],[y,[p,be+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[p,Pe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[p,Pe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[p,"MIUI "+fe]],[/fxios\/([-\w\.]+)/i],[y,[p,be]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360"+ve]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],y],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+ve],y],[/samsungbrowser\/([\w\.]+)/i],[y,[p,_+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],y],[/metasr[\/ ]?([\d\.]+)/i],[y,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,y],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,Ae],y],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[p,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,pe+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[p,"Android "+fe]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[y,Oe,Pt]],[/(webkit|khtml)\/([\w\.]+)/i],[p,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],y],[/(wolvic)\/([\w\.]+)/i],[p,y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[p,be+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,[y,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,$e]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,s,$e]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,$e]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[g,_],[m,E]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[g,_],[m,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[g,X],[m,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[g,X],[m,E]],[/(macintosh);/i],[d,[g,X]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[g,R],[m,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[g,re],[m,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[g,re],[m,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[d,/_/g," "],[g,H],[m,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[g,H],[m,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[g,"OPPO"],[m,w]],[/\b(opd2\d{3}a?) bui/i],[d,[g,"OPPO"],[m,E]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[g,"Vivo"],[m,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[g,"Realme"],[m,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[g,Le],[m,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[g,Le],[m,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[g,ce],[m,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[g,ce],[m,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[g,"Lenovo"],[m,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[g,"Nokia"],[m,w]],[/(pixel c)\b/i],[d,[g,Z],[m,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[g,Z],[m,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[g,W],[m,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[g,W],[m,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[g,"OnePlus"],[m,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[g,q],[m,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[g,q],[m,w]],[/(playbook);[-\w\),; ]+(rim)/i],[d,g,[m,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[g,de],[m,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[g,ue],[m,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[g,ue],[m,w]],[/(nexus 9)/i],[d,[g,"HTC"],[m,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[d,/_/g," "],[m,w]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[g,"TCL"],[m,E]],[/(itel) ((\w+))/i],[[g,$e],d,[m,Oe,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[g,"Acer"],[m,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[g,"Meizu"],[m,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[g,"Ulefone"],[m,w]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[g,"Nothing"],[m,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,d,[m,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,d,[m,E]],[/(surface duo)/i],[d,[g,oe],[m,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[g,"Fairphone"],[m,w]],[/(u304aa)/i],[d,[g,"AT&T"],[m,w]],[/\bsie-(\w*)/i],[d,[g,"Siemens"],[m,w]],[/\b(rct\w+) b/i],[d,[g,"RCA"],[m,E]],[/\b(venue[\d ]{2,7}) b/i],[d,[g,"Dell"],[m,E]],[/\b(q(?:mv|ta)\w+) b/i],[d,[g,"Verizon"],[m,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[g,"Barnes & Noble"],[m,E]],[/\b(tm\d{3}\w+) b/i],[d,[g,"NuVision"],[m,E]],[/\b(k88) b/i],[d,[g,"ZTE"],[m,E]],[/\b(nx\d{3}j) b/i],[d,[g,"ZTE"],[m,w]],[/\b(gen\d{3}) b.+49h/i],[d,[g,"Swiss"],[m,w]],[/\b(zur\d{3}) b/i],[d,[g,"Swiss"],[m,E]],[/\b((zeki)?tb.*\b) b/i],[d,[g,"Zeki"],[m,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],d,[m,E]],[/\b(ns-?\w{0,9}) b/i],[d,[g,"Insignia"],[m,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[g,"NextBook"],[m,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],d,[m,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],d,[m,w]],[/\b(ph-1) /i],[d,[g,"Essential"],[m,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[g,"Envizen"],[m,E]],[/\b(trio[-\w\. ]+) b/i],[d,[g,"MachSpeed"],[m,E]],[/\btu_(1491) b/i],[d,[g,"Rotor"],[m,E]],[/(shield[\w ]+) b/i],[d,[g,"Nvidia"],[m,E]],[/(sprint) (\w+)/i],[g,d,[m,w]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[g,oe],[m,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[g,Q],[m,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[g,Q],[m,w]],[/smart-tv.+(samsung)/i],[g,[m,T]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[g,_],[m,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,ce],[m,T]],[/(apple) ?tv/i],[g,[d,X+" TV"],[m,T]],[/crkey/i],[[d,pe+"cast"],[g,Z],[m,T]],[/droid.+aft(\w+)( bui|\))/i],[d,[g,q],[m,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[g,R],[m,T]],[/(bravia[\w ]+)( bui|\))/i],[d,[g,W],[m,T]],[/(mitv-\w{5}) bui/i],[d,[g,H],[m,T]],[/Hbbtv.*(technisat) (.*);/i],[g,d,[m,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,Ge],[d,Ge],[m,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,d,[m,x]],[/droid.+; (shield) bui/i],[d,[g,"Nvidia"],[m,x]],[/(playstation [345portablevi]+)/i],[d,[g,W],[m,x]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[g,oe],[m,x]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[d,[g,_],[m,N]],[/((pebble))app/i],[g,d,[m,N]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[g,X],[m,N]],[/droid.+; (glass) \d/i],[d,[g,Z],[m,N]],[/droid.+; (wt63?0{2,3})\)/i],[d,[g,Q],[m,N]],[/(quest( \d| pro)?)/i],[d,[g,Ae],[m,N]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[m,B]],[/(aeobc)\b/i],[d,[g,q],[m,B]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[m,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[m,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,w]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[p,le+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,y],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[y,Oe,Je]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,Oe,Je],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,ye],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,y],[/\(bb(10);/i],[y,[p,de]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[p,be+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[y,[p,pe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,he],y],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,y],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,y]]},A=function(V,U){if(typeof V===c&&(U=V,V=r),!(this instanceof A))return new A(V,U).getResult();var j=typeof n!==l&&n.navigator?n.navigator:r,Y=V||(j&&j.userAgent?j.userAgent:s),P=j&&j.userAgentData?j.userAgentData:r,I=U?Re(z,U):z,O=j&&j.userAgent==Y;return this.getBrowser=function(){var C={};return C[p]=r,C[y]=r,We.call(C,Y,I.browser),C[f]=At(C[y]),O&&j&&j.brave&&typeof j.brave.isBrave==a&&(C[p]="Brave"),C},this.getCPU=function(){var C={};return C[v]=r,We.call(C,Y,I.cpu),C},this.getDevice=function(){var C={};return C[g]=r,C[d]=r,C[m]=r,We.call(C,Y,I.device),O&&!C[m]&&P&&P.mobile&&(C[m]=w),O&&C[d]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(C[d]="iPad",C[m]=E),C},this.getEngine=function(){var C={};return C[p]=r,C[y]=r,We.call(C,Y,I.engine),C},this.getOS=function(){var C={};return C[p]=r,C[y]=r,We.call(C,Y,I.os),O&&!C[p]&&P&&P.platform&&P.platform!="Unknown"&&(C[p]=P.platform.replace(/chrome os/i,he).replace(/macos/i,ye)),C},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Y},this.setUA=function(C){return Y=typeof C===u&&C.length>k?Ge(C,k):C,this},this.setUA(Y),this};A.VERSION=i,A.BROWSER=Qe([p,y,f]),A.CPU=Qe([v]),A.DEVICE=Qe([d,g,m,x,w,T,E,N,B]),A.ENGINE=A.OS=Qe([p,y]),e.exports&&(t=e.exports=A),t.UAParser=A;var L=typeof n!==l&&(n.jQuery||n.Zepto);if(L&&!L.ua){var K=new A;L.ua=K.getResult(),L.ua.get=function(){return K.getUA()},L.ua.set=function(V){K.setUA(V);var U=K.getResult();for(var j in U)L.ua[j]=U[j]}}})(typeof window=="object"?window:zd)})(kr,kr.exports);var Kd=kr.exports;Object.defineProperty(D,"__esModule",{value:!0});function Hd(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Se=S,ne=Hd(Se),_a=Kd,pt=new _a,Ne=pt.getBrowser(),qd=pt.getCPU(),ke=pt.getDevice(),vi=pt.getEngine(),mt=pt.getOS(),pn=pt.getUA(),Sa=function(t){return pt.setUA(t)},mn=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new _a(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(i){return n.setUA(i)}}},Na=Object.freeze({ClientUAInstance:pt,browser:Ne,cpu:qd,device:ke,engine:vi,os:mt,ua:pn,setUa:Sa,parseUserAgent:mn});function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(r){Jd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tn=function(t){return typeof t}:tn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function Xd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qd(e,t,n){return t&&Zd(e.prototype,t),e}function Jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lr(){return Lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}function ef(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Br(e,t)}function jr(e){return jr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jr(e)}function Br(e,t){return Br=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Br(e,t)}function tf(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ue(e,t){if(e==null)return{};var n=tf(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nf(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mn(e)}function rf(e,t){return sf(e)||of(e,t)||af(e,t)||lf()}function sf(e){if(Array.isArray(e))return e}function of(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function af(e,t){if(e){if(typeof e=="string")return gs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gs(e,t)}}function gs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const h=require("react/jsx-runtime"),Rt=require("./index-DKCqkplO.cjs"),b=require("./index-Dnm_UoHq.cjs"),S=require("react"),Te=require("./index-z9hRvvSX.cjs"),te=require("./index-mjK-px5V.cjs"),$=require("./portal-container-m70749mq.cjs");require("react-dom");function Gu(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const M=Gu(S),Wu=({children:e})=>h.jsx("div",{className:"purple-wrapper py-2",children:e}),vn=({children:e})=>h.jsx("div",{className:"h1-wrapper py-2",children:e}),xn=({children:e})=>h.jsx("div",{className:"h2-wrapper py-2",children:e}),wn=({children:e})=>h.jsx("div",{className:"h3-wrapper py-2",children:e}),zu=({children:e})=>h.jsx(S.Fragment,{children:e}),je=()=>!0,Ku=e=>{var t,n;return e.type==="paragraph"&&((n=(t=e.paragraph)==null?void 0:t.rich_text)==null?void 0:n.every(r=>r.annotations.color==="purple"))},Jn={default:{heading_1:{priority:3,condition:je,wrapper:vn},heading_2:{priority:2,condition:je,wrapper:xn},heading_3:{priority:1,condition:je,wrapper:wn}},curriculum:{heading_1:{priority:4,condition:je,wrapper:vn},heading_2:{priority:3,condition:je,wrapper:xn},paragraph:{priority:2,condition:Ku,wrapper:Wu,className:"text-main-600 text-lg md:text-xl font-medium"},heading_3:{priority:1,condition:je,wrapper:wn}},article:{heading_1:{priority:3,condition:je,wrapper:vn},heading_2:{priority:2,condition:je,wrapper:xn},heading_3:{priority:1,condition:je,wrapper:wn}},event:{heading_1:{priority:3,condition:je,wrapper:vn},heading_2:{priority:2,condition:je,wrapper:xn},heading_3:{priority:1,condition:je,wrapper:wn}}},Hu={container:"flex flex-col gap-4",heading1:"mb-4 text-xl font-bold text-grey-900 md:text-2xl lg:text-3xl",heading2:"mb-3 text-lg font-semibold text-grey-800 md:text-xl lg:text-2xl",heading3:"mb-2 text-base font-medium text-grey-800 md:text-lg lg:text-xl",paragraph:"mb-2 text-base text-grey-800 leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"ml-1 text-base md:text-lg text-grey-800",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},qu={container:"flex flex-col gap-4",heading1:"mb-4 text-xl font-bold text-blue-800 md:text-2xl lg:text-3xl",heading2:"mb-3 text-lg font-semibold text-blue-700 md:text-xl lg:text-2xl",heading3:"mb-2 text-base font-medium text-grey-800 md:text-lg lg:text-xl",paragraph:"mb-4 text-sm text-grey-800 md:text-base lg:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-blue-500 pl-4 text-sm italic text-grey-600 md:text-base",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"text-sm text-grey-800 md:text-base",code:"mb-4 rounded-md bg-grey-800 p-4 font-mono text-sm text-white",image:"w-full rounded-lg object-cover",divider:"my-6 border-t border-border",table:"w-full border-collapse border border-blue-200",tableRow:"border-b border-blue-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Yu={container:"flex flex-col w-full",heading1:"mb-4 text-2xl font-bold text-grey-900 md:text-3xl lg:text-4xl",heading2:"mb-3 text-xl font-semibold text-grey-800 md:text-2xl lg:text-3xl",heading3:"mb-2 text-lg font-semibold text-grey-800 md:text-xl lg:text-2xl",paragraph:"mb-2 text-base leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-main-50 p-4 text-grey-600",list:"pl-5 space-y-1",listItem:"ml-1 text-base md:text-lg",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden mb-2",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},Xu={container:"flex flex-col gap-0",heading1:"mb-4 text-xl font-bold text-grey-900 md:text-2xl lg:text-3xl",heading2:"mb-3 text-xl font-semibold text-grey-800 md:text-2xl lg:text-3xl",heading3:"mb-2 text-lg font-medium text-grey-800 md:text-xl lg:text-2xl",paragraph:"mb-4 text-base text-grey-800 leading-relaxed md:text-lg whitespace-pre-wrap",quote:"mb-4 border-l-4 border-grey-400 pl-4 text-lg italic text-grey-600",callout:"mb-4 flex gap-2 rounded-lg bg-grey-100 p-4 text-grey-600",list:"pl-5 space-y-2",listItem:"text-base md:text-lg text-grey-700 marker:text-main-600",code:"mb-4 rounded-md bg-grey-100 p-4 font-mono text-sm",image:"rounded-lg overflow-hidden w-full",divider:"my-6 border-t border-grey-300",table:"w-full border-collapse border border-grey-200",tableRow:"border-b border-grey-200",tableCell:"border border-grey-200 p-4 md:text-base text-sm",loading:"flex h-14 w-full animate-pulse items-center rounded-lg bg-slate-100 p-4 text-muted"},ci=e=>{switch(e){case"curriculum":return qu;case"article":return Yu;case"event":return Xu;default:return Hu}},Zu={default:"",gray:"text-grey-500",brown:"text-yellow-900",orange:"text-orange-500",yellow:"text-yellow-500",green:"text-green-500",blue:"text-blue-500",purple:"text-purple-500",pink:"text-pink-500",red:"text-red-500"},us={default:"",gray:"bg-grey-100",brown:"bg-yellow-100",orange:"bg-orange-100",yellow:"bg-yellow-100",green:"bg-green-100",blue:"bg-blue-100",purple:"bg-purple-100",pink:"bg-pink-100",red:"bg-red-100"},Qu=(e,t="default")=>{const n={id:"root",type:"root",children:[],parent:{},has_children:!0},r={root:n};e.forEach(a=>{a.children=[],r[a.id]=a});const i={};e.forEach(a=>{var c;const l=(c=a.parent)==null?void 0:c.block_id;l&&(i[l]||(i[l]=[]),i[l].push(a))});const s=new Set,o=[{block:n,priority:0}];return e.forEach(a=>{var f;if(s.has(a.id))return;const l=Yo(a,t),c=(f=a.parent)==null?void 0:f.block_id,u=c?r[c]:null;if(l>0){for(;o.length>1&&o[o.length-1].priority<=l;)o.pop();const d={...a,children:[]};o[o.length-1].block.children.push(d),o.push({block:d,priority:l}),s.add(a.id)}else if(c&&u)u.children.push(a),s.add(a.id);else{const d={...a,children:[]};o[o.length-1].block.children.push(d),s.add(a.id);const p=i[a.id];p&&p.length>0&&(d.children=p,p.forEach(m=>s.add(m.id)))}}),n.children||[]},qo=["bulleted_list_item","numbered_list_item"],Yo=(e,t="default")=>{var r;const n=(r=Jn[t])==null?void 0:r[e.type];return n!=null&&n.condition(e)?n.priority:0},Ju=(e,t="default")=>{var r;const n=(r=Jn[t])==null?void 0:r[e.type];return n!=null&&n.condition(e)?n.wrapper:zu},Xo=(e,t="default")=>{var r;const n=(r=Jn[t])==null?void 0:r[e.type];return!!(n!=null&&n.priority&&n.condition(e))};function ui(e){const t=[];let n=[],r=null;const i=()=>{!r||n.length===0||(r==="block"?n.forEach(s=>t.push({type:"block",block:s})):r==="bulleted_list"?t.push({type:"bulleted_list",blocks:n}):r==="numbered_list"&&t.push({type:"numbered_list",blocks:n}),n=[],r=null)};for(const s of e){const o=s.type==="bulleted_list_item",a=s.type==="numbered_list_item",l=o?"bulleted_list":a?"numbered_list":"block";r===l?n.push(s):(i(),r=l,n=[s])}return i(),t}const ed=e=>e.includes("youtu.be")?"https://www.youtube.com/embed/"+e.split("/").pop():e.includes("youtube.com/watch")?"https://www.youtube.com/embed/"+e.split("v=")[1].split("&")[0]:e;var di="Collapsible",[td,Zo]=b.createContextScope(di),[nd,fi]=td(di),Qo=M.forwardRef((e,t)=>{const{__scopeCollapsible:n,open:r,defaultOpen:i,disabled:s,onOpenChange:o,...a}=e,[l=!1,c]=b.useControllableState({prop:r,defaultProp:i,onChange:o});return h.jsx(nd,{scope:n,disabled:s,contentId:b.useId(),open:l,onOpenToggle:M.useCallback(()=>c(u=>!u),[c]),children:h.jsx(b.Primitive.div,{"data-state":pi(l),"data-disabled":s?"":void 0,...a,ref:t})})});Qo.displayName=di;var Jo="CollapsibleTrigger",ea=M.forwardRef((e,t)=>{const{__scopeCollapsible:n,...r}=e,i=fi(Jo,n);return h.jsx(b.Primitive.button,{type:"button","aria-controls":i.contentId,"aria-expanded":i.open||!1,"data-state":pi(i.open),"data-disabled":i.disabled?"":void 0,disabled:i.disabled,...r,ref:t,onClick:b.composeEventHandlers(e.onClick,i.onOpenToggle)})});ea.displayName=Jo;var hi="CollapsibleContent",ta=M.forwardRef((e,t)=>{const{forceMount:n,...r}=e,i=fi(hi,e.__scopeCollapsible);return h.jsx(b.Presence,{present:n||i.open,children:({present:s})=>h.jsx(rd,{...r,ref:t,present:s})})});ta.displayName=hi;var rd=M.forwardRef((e,t)=>{const{__scopeCollapsible:n,present:r,children:i,...s}=e,o=fi(hi,n),[a,l]=M.useState(r),c=M.useRef(null),u=b.useComposedRefs(t,c),f=M.useRef(0),d=f.current,p=M.useRef(0),m=p.current,g=o.open||a,y=M.useRef(g),v=M.useRef();return M.useEffect(()=>{const x=requestAnimationFrame(()=>y.current=!1);return()=>cancelAnimationFrame(x)},[]),b.useLayoutEffect2(()=>{const x=c.current;if(x){v.current=v.current||{transitionDuration:x.style.transitionDuration,animationName:x.style.animationName},x.style.transitionDuration="0s",x.style.animationName="none";const w=x.getBoundingClientRect();f.current=w.height,p.current=w.width,y.current||(x.style.transitionDuration=v.current.transitionDuration,x.style.animationName=v.current.animationName),l(r)}},[o.open,r]),h.jsx(b.Primitive.div,{"data-state":pi(o.open),"data-disabled":o.disabled?"":void 0,id:o.contentId,hidden:!g,...s,ref:u,style:{"--radix-collapsible-content-height":d?`${d}px`:void 0,"--radix-collapsible-content-width":m?`${m}px`:void 0,...e.style},children:g&&i})});function pi(e){return e?"open":"closed"}var id=Qo,sd=ea,od=ta,st="Accordion",ad=["Home","End","ArrowDown","ArrowUp","ArrowLeft","ArrowRight"],[mi,ld,cd]=b.createCollection(st),[er,C0]=b.createContextScope(st,[cd,Zo]),gi=Zo(),na=S.forwardRef((e,t)=>{const{type:n,...r}=e,i=r,s=r;return h.jsx(mi.Provider,{scope:e.__scopeAccordion,children:n==="multiple"?h.jsx(hd,{...s,ref:t}):h.jsx(fd,{...i,ref:t})})});na.displayName=st;var[ra,ud]=er(st),[ia,dd]=er(st,{collapsible:!1}),fd=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},collapsible:s=!1,...o}=e,[a,l]=b.useControllableState({prop:n,defaultProp:r,onChange:i});return h.jsx(ra,{scope:e.__scopeAccordion,value:a?[a]:[],onItemOpen:l,onItemClose:S.useCallback(()=>s&&l(""),[s,l]),children:h.jsx(ia,{scope:e.__scopeAccordion,collapsible:s,children:h.jsx(sa,{...o,ref:t})})})}),hd=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o=[],a]=b.useControllableState({prop:n,defaultProp:r,onChange:i}),l=S.useCallback(u=>a((f=[])=>[...f,u]),[a]),c=S.useCallback(u=>a((f=[])=>f.filter(d=>d!==u)),[a]);return h.jsx(ra,{scope:e.__scopeAccordion,value:o,onItemOpen:l,onItemClose:c,children:h.jsx(ia,{scope:e.__scopeAccordion,collapsible:!0,children:h.jsx(sa,{...s,ref:t})})})}),[pd,tr]=er(st),sa=S.forwardRef((e,t)=>{const{__scopeAccordion:n,disabled:r,dir:i,orientation:s="vertical",...o}=e,a=S.useRef(null),l=b.useComposedRefs(a,t),c=ld(n),f=b.useDirection(i)==="ltr",d=b.composeEventHandlers(e.onKeyDown,p=>{var k;if(!ad.includes(p.key))return;const m=p.target,g=c().filter(q=>{var X;return!((X=q.ref.current)!=null&&X.disabled)}),y=g.findIndex(q=>q.ref.current===m),v=g.length;if(y===-1)return;p.preventDefault();let x=y;const w=0,E=v-1,T=()=>{x=y+1,x>E&&(x=w)},N=()=>{x=y-1,x<w&&(x=E)};switch(p.key){case"Home":x=w;break;case"End":x=E;break;case"ArrowRight":s==="horizontal"&&(f?T():N());break;case"ArrowDown":s==="vertical"&&T();break;case"ArrowLeft":s==="horizontal"&&(f?N():T());break;case"ArrowUp":s==="vertical"&&N();break}const B=x%v;(k=g[B].ref.current)==null||k.focus()});return h.jsx(pd,{scope:n,disabled:r,direction:i,orientation:s,children:h.jsx(mi.Slot,{scope:n,children:h.jsx(b.Primitive.div,{...o,"data-orientation":s,ref:l,onKeyDown:r?void 0:d})})})}),jn="AccordionItem",[md,bi]=er(jn),oa=S.forwardRef((e,t)=>{const{__scopeAccordion:n,value:r,...i}=e,s=tr(jn,n),o=ud(jn,n),a=gi(n),l=b.useId(),c=r&&o.value.includes(r)||!1,u=s.disabled||e.disabled;return h.jsx(md,{scope:n,open:c,disabled:u,triggerId:l,children:h.jsx(id,{"data-orientation":s.orientation,"data-state":fa(c),...a,...i,ref:t,disabled:u,open:c,onOpenChange:f=>{f?o.onItemOpen(r):o.onItemClose(r)}})})});oa.displayName=jn;var aa="AccordionHeader",la=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=tr(st,n),s=bi(aa,n);return h.jsx(b.Primitive.h3,{"data-orientation":i.orientation,"data-state":fa(s.open),"data-disabled":s.disabled?"":void 0,...r,ref:t})});la.displayName=aa;var Ir="AccordionTrigger",ca=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=tr(st,n),s=bi(Ir,n),o=dd(Ir,n),a=gi(n);return h.jsx(mi.ItemSlot,{scope:n,children:h.jsx(sd,{"aria-disabled":s.open&&!o.collapsible||void 0,"data-orientation":i.orientation,id:s.triggerId,...a,...r,ref:t})})});ca.displayName=Ir;var ua="AccordionContent",da=S.forwardRef((e,t)=>{const{__scopeAccordion:n,...r}=e,i=tr(st,n),s=bi(ua,n),o=gi(n);return h.jsx(od,{role:"region","aria-labelledby":s.triggerId,"data-orientation":i.orientation,...o,...r,ref:t,style:{"--radix-accordion-content-height":"var(--radix-collapsible-content-height)","--radix-accordion-content-width":"var(--radix-collapsible-content-width)",...e.style}})});da.displayName=ua;function fa(e){return e?"open":"closed"}var gd=na,bd=oa,yd=la,ha=ca,pa=da;const vd=gd,ma=M.forwardRef(({className:e,...t},n)=>h.jsx(bd,{ref:n,className:b.cn("w-full border-b",e),...t}));ma.displayName="AccordionItem";const ga=M.forwardRef(({className:e,children:t,disabled:n,...r},i)=>h.jsx(yd,{className:"flex",children:h.jsxs(ha,{ref:i,className:b.cn("flex flex-1 items-center justify-between py-4 text-start font-medium transition-all [&[data-state=open]>svg]:rotate-180",e),disabled:n,...r,children:[t,!n&&h.jsx(b.Icon.ArrowDown,{className:"shrink-0 transition-transform duration-200",fill:Rt.colors.grey[600],size:"16"})]})}));ga.displayName=ha.displayName;const ba=M.forwardRef(({className:e,children:t,...n},r)=>h.jsx(pa,{ref:r,className:"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down transition-all",...n,children:h.jsx("div",{className:b.cn("overflow-hidden pb-4 text-sm",e),children:t})}));ba.displayName=pa.displayName;const Zt={Root:vd,Item:ma,Trigger:ga,Content:ba},Bn=({src:e,alt:t,object:n="cover",lazy:r=!0,size:i="auto",className:s,...o})=>{const a={contain:"object-contain h-full",cover:"object-cover h-full",fill:"object-fill h-full","scale-down":"object-scale-down",none:"object-none"},l={full:"w-full",fit:"w-fit",auto:"w-auto"};let c="",u={};return typeof i=="string"?c=l[i]:typeof i=="number"&&(u={width:`${i}px`}),h.jsx("img",{src:e,alt:t?`${t} 이미지`:"이미지",loading:r?"lazy":"eager",className:b.cn(a[n],c,s),style:u,...o})},xd=864e5,ya=6e4,va=36e5,ds=Symbol.for("constructDateFrom");function yi(e,t){return typeof e=="function"?e(t):e&&typeof e=="object"&&ds in e?e[ds](t):e instanceof Date?new e.constructor(t):new Date(t)}function Vn(e,t){return yi(e,e)}function fs(e){const t=Vn(e),n=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return n.setUTCFullYear(t.getFullYear()),+e-+n}function xa(e,...t){const n=yi.bind(null,t.find(r=>typeof r=="object"));return t.map(n)}function hs(e,t){const n=Vn(e);return n.setHours(0,0,0,0),n}function wd(e,t,n){const[r,i]=xa(n==null?void 0:n.in,e,t),s=hs(r),o=hs(i),a=+s-fs(s),l=+o-fs(o);return Math.round((a-l)/xd)}function Ed(e,t,n){const[r,i]=xa(n==null?void 0:n.in,e,t),s=ps(r,i),o=Math.abs(wd(r,i));r.setDate(r.getDate()-s*o);const a=+(ps(r,i)===-s),l=s*(o-a);return l===0?0:l}function ps(e,t){const n=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return n<0?-1:n>0?1:n}function Td(e,t){const n=()=>yi(t==null?void 0:t.in,NaN),i=Cd(e);let s;if(i.date){const c=Ad(i.date,2);s=Pd(c.restDateString,c.year)}if(!s||isNaN(+s))return n();const o=+s;let a=0,l;if(i.time&&(a=Od(i.time),isNaN(a)))return n();if(i.timezone){if(l=Md(i.timezone),isNaN(l))return n()}else{const c=new Date(o+a),u=Vn(0);return u.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),u.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),u}return Vn(o+a+l)}const En={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},_d=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,Sd=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,Nd=/^([+-])(\d{2})(?::?(\d{2}))?$/;function Cd(e){const t={},n=e.split(En.dateTimeDelimiter);let r;if(n.length>2)return t;if(/:/.test(n[0])?r=n[0]:(t.date=n[0],r=n[1],En.timeZoneDelimiter.test(t.date)&&(t.date=e.split(En.timeZoneDelimiter)[0],r=e.substr(t.date.length,e.length))),r){const i=En.timezone.exec(r);i?(t.time=r.replace(i[1],""),t.timezone=i[1]):t.time=r}return t}function Ad(e,t){const n=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),r=e.match(n);if(!r)return{year:NaN,restDateString:""};const i=r[1]?parseInt(r[1]):null,s=r[2]?parseInt(r[2]):null;return{year:s===null?i:s*100,restDateString:e.slice((r[1]||r[2]).length)}}function Pd(e,t){if(t===null)return new Date(NaN);const n=e.match(_d);if(!n)return new Date(NaN);const r=!!n[4],i=Yt(n[1]),s=Yt(n[2])-1,o=Yt(n[3]),a=Yt(n[4]),l=Yt(n[5])-1;if(r)return Ld(t,a,l)?Rd(t,a,l):new Date(NaN);{const c=new Date(0);return!Id(t,s,o)||!kd(t,i)?new Date(NaN):(c.setUTCFullYear(t,s,Math.max(i,o)),c)}}function Yt(e){return e?parseInt(e):1}function Od(e){const t=e.match(Sd);if(!t)return NaN;const n=mr(t[1]),r=mr(t[2]),i=mr(t[3]);return jd(n,r,i)?n*va+r*ya+i*1e3:NaN}function mr(e){return e&&parseFloat(e.replace(",","."))||0}function Md(e){if(e==="Z")return 0;const t=e.match(Nd);if(!t)return 0;const n=t[1]==="+"?-1:1,r=parseInt(t[2]),i=t[3]&&parseInt(t[3])||0;return Bd(r,i)?n*(r*va+i*ya):NaN}function Rd(e,t,n){const r=new Date(0);r.setUTCFullYear(e,0,4);const i=r.getUTCDay()||7,s=(t-1)*7+n+1-i;return r.setUTCDate(r.getUTCDate()+s),r}const Dd=[31,null,31,30,31,30,31,31,30,31,30,31];function wa(e){return e%400===0||e%4===0&&e%100!==0}function Id(e,t,n){return t>=0&&t<=11&&n>=1&&n<=(Dd[t]||(wa(e)?29:28))}function kd(e,t){return t>=1&&t<=(wa(e)?366:365)}function Ld(e,t,n){return t>=1&&t<=53&&n>=0&&n<=6}function jd(e,t,n){return e===24?t===0&&n===0:n>=0&&n<60&&t>=0&&t<60&&e>=0&&e<25}function Bd(e,t){return t>=0&&t<=59}function Vd({adProduct:e,logo:t,title:n,batchName:r="",adTitle:i,startDate:s,tuition:o,nbCardRequired:a,isLoading:l=!1,regEndDate:c,className:u}){if(l)return h.jsx(Ta,{className:u});const f=`${Fd(s)} · ${Ud(o,a)}`;return h.jsx(Ea,{logo:t,title:`${n} ${r}`,adTitle:i,footerText:f,regEndDate:c,className:u,adProduct:e})}function Ea({adProduct:e,logo:t,title:n,adTitle:r,footerText:i,regEndDate:s,className:o}){return h.jsxs(b.FlexBox.Col,{className:b.cn("relative z-10 h-full w-full items-start justify-between gap-2 overflow-hidden rounded-xl border border-grey-200 bg-white p-4 text-grey-800 md:p-5 lg:p-6",o),children:[h.jsx(b.Tag,{variant:"ad",style:{background:Te.adProducts.event.background,color:Te.adProducts.event.color},children:e===Te.adProducts.dDay.value&&s?Gd(s):Te.adProducts.event.value.toUpperCase()}),h.jsx(Bn,{src:t,alt:`${n} 로고`,className:"h-4 object-contain"}),h.jsxs(b.FlexBox.Col,{className:"w-full gap-2",children:[h.jsx("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:text-base lg:h-12",title:n,children:n}),h.jsx("p",{className:"line-clamp-2 h-auto w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:h-[54px] md:text-[15px] md:text-grey-800",children:r}),h.jsx(b.Box,{className:"text-[13px] leading-[19px] text-grey-600",children:i})]})]})}function Ta({className:e}){return h.jsxs(te.Skeleton,{type:"background",className:b.cn("relative z-10 flex h-full w-full flex-col justify-between gap-2 overflow-hidden rounded-xl p-4 md:p-5 lg:p-6",e),children:[h.jsx(b.Tag,{variant:"ad",style:{background:Te.adProducts.event.background,color:Te.adProducts.event.color},className:b.cn("h-7 w-20 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),h.jsx(te.Skeleton,{className:"h-4 w-1/2"}),h.jsxs(b.FlexBox.Col,{className:"gap-2",children:[h.jsx(b.Box,{className:"h-10 w-full",children:h.jsx(te.Skeleton,{className:"h-5 w-4/5"})}),h.jsx(te.Skeleton,{className:"h-14 w-full"})]}),h.jsx(te.Skeleton,{className:"mt-2 h-[19px] w-2/3"})]})}const Fd=e=>{if(!e)return"";const n=e.split(" ")[0].split("-"),r=Number(n[1]),i=`${r}/${Number(n.slice(2).join("."))}`;switch(n[2]){case"98":return`${r}월중 개강`;case"99":return`${r}월중(예상) 개강`;default:return`${i} 개강`}},Ud=(e,t)=>{const n=t?"(내배카💳)":"";return e===0||e===void 0?`무료 ${n}`:`유료 ${n}`},$d=e=>{const n=e.split(" ")[0].split("-"),r=Number(n[0]),i=Number(n[1]);let s=n[2];const o=new Date(r,i,0).getDate();return(isNaN(Number(s))||Number(s)>o)&&(s=o.toString()),`${r}-${String(i).padStart(2,"0")}-${String(s).padStart(2,"0")}`},Gd=e=>{const t=Ed(Td($d(e)),new Date);return t<=0?"마감임박":`D-${t}`},Wd={homepage:{label:"홈페이지",value:"homepage",query:!1},boottent:{label:"자세히보기",value:"boottent",query:!1},curriculum:{label:"커리큘럼 보기",value:"curriculum",query:"curriculum"},event:{label:"이벤트",value:"event",query:"event"},reviews:{label:"후기보기",value:"reviews",query:"reviews"}};var zd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ie(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var D={},kr={exports:{}};(function(e,t){(function(n,r){var i="1.0.39",s="",o="?",a="function",l="undefined",c="object",u="string",f="major",d="model",p="name",m="type",g="vendor",y="version",v="architecture",x="console",w="mobile",E="tablet",T="smarttv",N="wearable",B="embedded",k=500,q="Amazon",X="Apple",ue="ASUS",de="BlackBerry",fe="Browser",pe="Chrome",le="Edge",be="Firefox",Z="Google",re="Huawei",ce="LG",oe="Microsoft",Le="Motorola",Pe="Opera",_="Samsung",R="Sharp",W="Sony",H="Xiaomi",Q="Zebra",Ae="Facebook",he="Chromium OS",ye="Mac OS",ve=" Browser",Re=function(V,U){var j={};for(var Y in V)U[Y]&&U[Y].length%2===0?j[Y]=U[Y].concat(V[Y]):j[Y]=V[Y];return j},Qe=function(V){for(var U={},j=0;j<V.length;j++)U[V[j].toUpperCase()]=V[j];return U},vt=function(V,U){return typeof V===u?$e(U).indexOf($e(V))!==-1:!1},$e=function(V){return V.toLowerCase()},At=function(V){return typeof V===u?V.replace(/[^\d\.]/g,s).split(".")[0]:r},Ge=function(V,U){if(typeof V===u)return V=V.replace(/^\s\s*/,s),typeof U===l?V:V.substring(0,k)},We=function(V,U){for(var j=0,Y,P,I,O,C,J;j<U.length&&!C;){var ze=U[j],Ot=U[j+1];for(Y=P=0;Y<ze.length&&!C&&ze[Y];)if(C=ze[Y++].exec(V),C)for(I=0;I<Ot.length;I++)J=C[++P],O=Ot[I],typeof O===c&&O.length>0?O.length===2?typeof O[1]==a?this[O[0]]=O[1].call(this,J):this[O[0]]=O[1]:O.length===3?typeof O[1]===a&&!(O[1].exec&&O[1].test)?this[O[0]]=J?O[1].call(this,J,O[2]):r:this[O[0]]=J?J.replace(O[1],O[2]):r:O.length===4&&(this[O[0]]=J?O[3].call(this,J.replace(O[1],O[2])):r):this[O]=J||r;j+=2}},Oe=function(V,U){for(var j in U)if(typeof U[j]===c&&U[j].length>0){for(var Y=0;Y<U[j].length;Y++)if(vt(U[j][Y],V))return j===o?r:j}else if(vt(U[j],V))return j===o?r:j;return U.hasOwnProperty("*")?U["*"]:V},Pt={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},Je={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},z={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[y,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[y,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,y],[/opios[\/ ]+([\w\.]+)/i],[y,[p,Pe+" Mini"]],[/\bop(?:rg)?x\/([\w\.]+)/i],[y,[p,Pe+" GX"]],[/\bopr\/([\w\.]+)/i],[y,[p,Pe]],[/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i],[y,[p,"Baidu"]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i,/(avant|iemobile|slim)\s?(?:browser)?[\/ ]?([\w\.]*)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio)\/([-\w\.]+)/i,/(heytap|ovi)browser\/([\d\.]+)/i,/(weibo)__([\d\.]+)/i],[p,y],[/quark(?:pc)?\/([-\w\.]+)/i],[y,[p,"Quark"]],[/\bddg\/([\w\.]+)/i],[y,[p,"DuckDuckGo"]],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[y,[p,"UC"+fe]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i,/micromessenger\/([\w\.]+)/i],[y,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[y,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[y,[p,"IE"]],[/ya(?:search)?browser\/([\w\.]+)/i],[y,[p,"Yandex"]],[/slbrowser\/([\w\.]+)/i],[y,[p,"Smart Lenovo "+fe]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+fe],y],[/\bfocus\/([\w\.]+)/i],[y,[p,be+" Focus"]],[/\bopt\/([\w\.]+)/i],[y,[p,Pe+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[y,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[y,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[y,[p,Pe+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[y,[p,"MIUI "+fe]],[/fxios\/([-\w\.]+)/i],[y,[p,be]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360"+ve]],[/\b(qq)\/([\w\.]+)/i],[[p,/(.+)/,"$1Browser"],y],[/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1"+ve],y],[/samsungbrowser\/([\w\.]+)/i],[y,[p,_+" Internet"]],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],y],[/metasr[\/ ]?([\d\.]+)/i],[y,[p,"Sogou Explorer"]],[/(sogou)mo\w+\/([\d\.]+)/i],[[p,"Sogou Mobile"],y],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|2345Explorer)[\/ ]?([\w\.]+)/i],[p,y],[/(lbbrowser|rekonq)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,Ae],y],[/(Klarna)\/([\w\.]+)/i,/(kakao(?:talk|story))[\/ ]([\w\.]+)/i,/(naver)\(.*?(\d+\.[\w\.]+).*\)/i,/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(alipay)client\/([\w\.]+)/i,/(twitter)(?:and| f.+e\/([\w\.]+))/i,/(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i],[p,y],[/\bgsa\/([\w\.]+) .*safari\//i],[y,[p,"GSA"]],[/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i],[y,[p,"TikTok"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[y,[p,pe+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,pe+" WebView"],y],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[y,[p,"Android "+fe]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,y],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[y,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[y,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[y,Oe,Pt]],[/(webkit|khtml)\/([\w\.]+)/i],[p,y],[/(navigator|netscape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],y],[/(wolvic)\/([\w\.]+)/i],[p,y],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[y,[p,be+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,[y,/_/g,"."]],[/(cobalt)\/([\w\.]+)/i],[p,[y,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[v,"amd64"]],[/(ia32(?=;))/i],[[v,$e]],[/((?:i[346]|x)86)[;\)]/i],[[v,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[v,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[v,"armhf"]],[/windows (ce|mobile); ppc;/i],[[v,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[v,/ower/,s,$e]],[/(sun4\w)[;\)]/i],[[v,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[v,$e]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[d,[g,_],[m,E]],[/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i,/samsung[- ]((?!sm-[lr])[-\w]+)/i,/sec-(sgh\w+)/i],[d,[g,_],[m,w]],[/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i],[d,[g,X],[m,w]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[d,[g,X],[m,E]],[/(macintosh);/i],[d,[g,X]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[d,[g,R],[m,w]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[d,[g,re],[m,E]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[d,[g,re],[m,w]],[/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i],[[d,/_/g," "],[g,H],[m,w]],[/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i,/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[d,/_/g," "],[g,H],[m,E]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[d,[g,"OPPO"],[m,w]],[/\b(opd2\d{3}a?) bui/i],[d,[g,"OPPO"],[m,E]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[d,[g,"Vivo"],[m,w]],[/\b(rmx[1-3]\d{3})(?: bui|;|\))/i],[d,[g,"Realme"],[m,w]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[d,[g,Le],[m,w]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[d,[g,Le],[m,E]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[d,[g,ce],[m,E]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[d,[g,ce],[m,w]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[d,[g,"Lenovo"],[m,E]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[d,/_/g," "],[g,"Nokia"],[m,w]],[/(pixel c)\b/i],[d,[g,Z],[m,E]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[d,[g,Z],[m,w]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[d,[g,W],[m,w]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[d,"Xperia Tablet"],[g,W],[m,E]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[d,[g,"OnePlus"],[m,w]],[/(alexa)webm/i,/(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[d,[g,q],[m,E]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[d,/(.+)/g,"Fire Phone $1"],[g,q],[m,w]],[/(playbook);[-\w\),; ]+(rim)/i],[d,g,[m,E]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[d,[g,de],[m,w]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[d,[g,ue],[m,E]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[d,[g,ue],[m,w]],[/(nexus 9)/i],[d,[g,"HTC"],[m,E]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i],[g,[d,/_/g," "],[m,w]],[/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i],[d,[g,"TCL"],[m,E]],[/(itel) ((\w+))/i],[[g,$e],d,[m,Oe,{tablet:["p10001l","w7001"],"*":"mobile"}]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[d,[g,"Acer"],[m,E]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[d,[g,"Meizu"],[m,w]],[/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i],[d,[g,"Ulefone"],[m,w]],[/droid.+; (a(?:015|06[35]|142p?))/i],[d,[g,"Nothing"],[m,w]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asus)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[g,d,[m,w]],[/(kobo)\s(ereader|touch)/i,/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[g,d,[m,E]],[/(surface duo)/i],[d,[g,oe],[m,E]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[d,[g,"Fairphone"],[m,w]],[/(u304aa)/i],[d,[g,"AT&T"],[m,w]],[/\bsie-(\w*)/i],[d,[g,"Siemens"],[m,w]],[/\b(rct\w+) b/i],[d,[g,"RCA"],[m,E]],[/\b(venue[\d ]{2,7}) b/i],[d,[g,"Dell"],[m,E]],[/\b(q(?:mv|ta)\w+) b/i],[d,[g,"Verizon"],[m,E]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[d,[g,"Barnes & Noble"],[m,E]],[/\b(tm\d{3}\w+) b/i],[d,[g,"NuVision"],[m,E]],[/\b(k88) b/i],[d,[g,"ZTE"],[m,E]],[/\b(nx\d{3}j) b/i],[d,[g,"ZTE"],[m,w]],[/\b(gen\d{3}) b.+49h/i],[d,[g,"Swiss"],[m,w]],[/\b(zur\d{3}) b/i],[d,[g,"Swiss"],[m,E]],[/\b((zeki)?tb.*\b) b/i],[d,[g,"Zeki"],[m,E]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[g,"Dragon Touch"],d,[m,E]],[/\b(ns-?\w{0,9}) b/i],[d,[g,"Insignia"],[m,E]],[/\b((nxa|next)-?\w{0,9}) b/i],[d,[g,"NextBook"],[m,E]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[g,"Voice"],d,[m,w]],[/\b(lvtel\-)?(v1[12]) b/i],[[g,"LvTel"],d,[m,w]],[/\b(ph-1) /i],[d,[g,"Essential"],[m,w]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[d,[g,"Envizen"],[m,E]],[/\b(trio[-\w\. ]+) b/i],[d,[g,"MachSpeed"],[m,E]],[/\btu_(1491) b/i],[d,[g,"Rotor"],[m,E]],[/(shield[\w ]+) b/i],[d,[g,"Nvidia"],[m,E]],[/(sprint) (\w+)/i],[g,d,[m,w]],[/(kin\.[onetw]{3})/i],[[d,/\./g," "],[g,oe],[m,w]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[d,[g,Q],[m,E]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[d,[g,Q],[m,w]],[/smart-tv.+(samsung)/i],[g,[m,T]],[/hbbtv.+maple;(\d+)/i],[[d,/^/,"SmartTV"],[g,_],[m,T]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[g,ce],[m,T]],[/(apple) ?tv/i],[g,[d,X+" TV"],[m,T]],[/crkey/i],[[d,pe+"cast"],[g,Z],[m,T]],[/droid.+aft(\w+)( bui|\))/i],[d,[g,q],[m,T]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[d,[g,R],[m,T]],[/(bravia[\w ]+)( bui|\))/i],[d,[g,W],[m,T]],[/(mitv-\w{5}) bui/i],[d,[g,H],[m,T]],[/Hbbtv.*(technisat) (.*);/i],[g,d,[m,T]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i],[[g,Ge],[d,Ge],[m,T]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[m,T]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[g,d,[m,x]],[/droid.+; (shield) bui/i],[d,[g,"Nvidia"],[m,x]],[/(playstation [345portablevi]+)/i],[d,[g,W],[m,x]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[d,[g,oe],[m,x]],[/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i],[d,[g,_],[m,N]],[/((pebble))app/i],[g,d,[m,N]],[/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i],[d,[g,X],[m,N]],[/droid.+; (glass) \d/i],[d,[g,Z],[m,N]],[/droid.+; (wt63?0{2,3})\)/i],[d,[g,Q],[m,N]],[/(quest( \d| pro)?)/i],[d,[g,Ae],[m,N]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[g,[m,B]],[/(aeobc)\b/i],[d,[g,q],[m,B]],[/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i],[d,[m,w]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[d,[m,E]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[m,E]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[m,w]],[/(android[-\w\. ]{0,9});.+buil/i],[d,[g,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[y,[p,le+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[y,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i,/\b(libweb)/i],[p,y],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[y,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,y],[/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i],[p,[y,Oe,Je]],[/windows nt 6\.2; (arm)/i,/windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i,/(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[y,Oe,Je],[p,"Windows"]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i,/cfnetwork\/.+darwin/i],[[y,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,ye],[y,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[y,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,y],[/\(bb(10);/i],[y,[p,de]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[y,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[y,[p,be+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[y,[p,"webOS"]],[/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i],[y,[p,"watchOS"]],[/crkey\/([\d\.]+)/i],[y,[p,pe+"cast"]],[/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i],[[p,he],y],[/panasonic;(viera)/i,/(netrange)mmh/i,/(nettv)\/(\d+\.[\w\.]+)/i,/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,y],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],y],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i,/(unix) ?([\w\.]*)/i],[p,y]]},A=function(V,U){if(typeof V===c&&(U=V,V=r),!(this instanceof A))return new A(V,U).getResult();var j=typeof n!==l&&n.navigator?n.navigator:r,Y=V||(j&&j.userAgent?j.userAgent:s),P=j&&j.userAgentData?j.userAgentData:r,I=U?Re(z,U):z,O=j&&j.userAgent==Y;return this.getBrowser=function(){var C={};return C[p]=r,C[y]=r,We.call(C,Y,I.browser),C[f]=At(C[y]),O&&j&&j.brave&&typeof j.brave.isBrave==a&&(C[p]="Brave"),C},this.getCPU=function(){var C={};return C[v]=r,We.call(C,Y,I.cpu),C},this.getDevice=function(){var C={};return C[g]=r,C[d]=r,C[m]=r,We.call(C,Y,I.device),O&&!C[m]&&P&&P.mobile&&(C[m]=w),O&&C[d]=="Macintosh"&&j&&typeof j.standalone!==l&&j.maxTouchPoints&&j.maxTouchPoints>2&&(C[d]="iPad",C[m]=E),C},this.getEngine=function(){var C={};return C[p]=r,C[y]=r,We.call(C,Y,I.engine),C},this.getOS=function(){var C={};return C[p]=r,C[y]=r,We.call(C,Y,I.os),O&&!C[p]&&P&&P.platform&&P.platform!="Unknown"&&(C[p]=P.platform.replace(/chrome os/i,he).replace(/macos/i,ye)),C},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Y},this.setUA=function(C){return Y=typeof C===u&&C.length>k?Ge(C,k):C,this},this.setUA(Y),this};A.VERSION=i,A.BROWSER=Qe([p,y,f]),A.CPU=Qe([v]),A.DEVICE=Qe([d,g,m,x,w,T,E,N,B]),A.ENGINE=A.OS=Qe([p,y]),e.exports&&(t=e.exports=A),t.UAParser=A;var L=typeof n!==l&&(n.jQuery||n.Zepto);if(L&&!L.ua){var K=new A;L.ua=K.getResult(),L.ua.get=function(){return K.getUA()},L.ua.set=function(V){K.setUA(V);var U=K.getResult();for(var j in U)L.ua[j]=U[j]}}})(typeof window=="object"?window:zd)})(kr,kr.exports);var Kd=kr.exports;Object.defineProperty(D,"__esModule",{value:!0});function Hd(e){return e&&typeof e=="object"&&"default"in e?e.default:e}var Se=S,ne=Hd(Se),_a=Kd,pt=new _a,Ne=pt.getBrowser(),qd=pt.getCPU(),ke=pt.getDevice(),vi=pt.getEngine(),mt=pt.getOS(),pn=pt.getUA(),Sa=function(t){return pt.setUA(t)},mn=function(t){if(!t){console.error("No userAgent string was provided");return}var n=new _a(t);return{UA:n,browser:n.getBrowser(),cpu:n.getCPU(),device:n.getDevice(),engine:n.getEngine(),os:n.getOS(),ua:n.getUA(),setUserAgent:function(i){return n.setUA(i)}}},Na=Object.freeze({ClientUAInstance:pt,browser:Ne,cpu:qd,device:ke,engine:vi,os:mt,ua:pn,setUa:Sa,parseUserAgent:mn});function ms(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Yd(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ms(Object(n),!0).forEach(function(r){Jd(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ms(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?tn=function(t){return typeof t}:tn=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tn(e)}function Xd(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zd(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Qd(e,t,n){return t&&Zd(e.prototype,t),e}function Jd(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Lr(){return Lr=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Lr.apply(this,arguments)}function ef(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&Br(e,t)}function jr(e){return jr=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},jr(e)}function Br(e,t){return Br=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},Br(e,t)}function tf(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,s;for(s=0;s<r.length;s++)i=r[s],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Ue(e,t){if(e==null)return{};var n=tf(e,t),r,i;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(i=0;i<s.length;i++)r=s[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Mn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function nf(e,t){if(t&&(typeof t=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Mn(e)}function rf(e,t){return sf(e)||of(e,t)||af(e,t)||lf()}function sf(e){if(Array.isArray(e))return e}function of(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],i=!0,s=!1,o,a;try{for(n=n.call(e);!(i=(o=n.next()).done)&&(r.push(o.value),!(t&&r.length===t));i=!0);}catch(l){s=!0,a=l}finally{try{!i&&n.return!=null&&n.return()}finally{if(s)throw a}}return r}}function af(e,t){if(e){if(typeof e=="string")return gs(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return gs(e,t)}}function gs(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lf(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
2
2
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Ee={Mobile:"mobile",Tablet:"tablet",SmartTv:"smarttv",Console:"console",Wearable:"wearable",Embedded:"embedded",Browser:void 0},Me={Chrome:"Chrome",Firefox:"Firefox",Opera:"Opera",Yandex:"Yandex",Safari:"Safari",InternetExplorer:"Internet Explorer",Edge:"Edge",Chromium:"Chromium",Ie:"IE",MobileSafari:"Mobile Safari",EdgeChromium:"Edge Chromium",MIUI:"MIUI Browser",SamsungBrowser:"Samsung Browser"},zt={IOS:"iOS",Android:"Android",WindowsPhone:"Windows Phone",Windows:"Windows",MAC_OS:"Mac OS"},cf={isMobile:!1,isTablet:!1,isBrowser:!1,isSmartTV:!1,isConsole:!1,isWearable:!1},uf=function(t){switch(t){case Ee.Mobile:return{isMobile:!0};case Ee.Tablet:return{isTablet:!0};case Ee.SmartTv:return{isSmartTV:!0};case Ee.Console:return{isConsole:!0};case Ee.Wearable:return{isWearable:!0};case Ee.Browser:return{isBrowser:!0};case Ee.Embedded:return{isEmbedded:!0};default:return cf}},df=function(t){return Sa(t)},G=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"none";return t||n},xi=function(){return typeof window<"u"&&(window.navigator||navigator)?window.navigator||navigator:!1},wi=function(t){var n=xi();return n&&n.platform&&(n.platform.indexOf(t)!==-1||n.platform==="MacIntel"&&n.maxTouchPoints>1&&!window.MSStream)},ff=function(t,n,r,i,s){return{isBrowser:t,browserMajorVersion:G(n.major),browserFullVersion:G(n.version),browserName:G(n.name),engineName:G(r.name),engineVersion:G(r.version),osName:G(i.name),osVersion:G(i.version),userAgent:G(s)}},bs=function(t,n,r,i){return Yd({},t,{vendor:G(n.vendor),model:G(n.model),os:G(r.name),osVersion:G(r.version),ua:G(i)})},hf=function(t,n,r,i){return{isSmartTV:t,engineName:G(n.name),engineVersion:G(n.version),osName:G(r.name),osVersion:G(r.version),userAgent:G(i)}},pf=function(t,n,r,i){return{isConsole:t,engineName:G(n.name),engineVersion:G(n.version),osName:G(r.name),osVersion:G(r.version),userAgent:G(i)}},mf=function(t,n,r,i){return{isWearable:t,engineName:G(n.name),engineVersion:G(n.version),osName:G(r.name),osVersion:G(r.version),userAgent:G(i)}},gf=function(t,n,r,i,s){return{isEmbedded:t,vendor:G(n.vendor),model:G(n.model),engineName:G(r.name),engineVersion:G(r.version),osName:G(i.name),osVersion:G(i.version),userAgent:G(s)}};function bf(e){var t=e?mn(e):Na,n=t.device,r=t.browser,i=t.engine,s=t.os,o=t.ua,a=uf(n.type),l=a.isBrowser,c=a.isMobile,u=a.isTablet,f=a.isSmartTV,d=a.isConsole,p=a.isWearable,m=a.isEmbedded;if(l)return ff(l,r,i,s,o);if(f)return hf(f,i,s,o);if(d)return pf(d,i,s,o);if(c||u)return bs(a,n,s,o);if(p)return mf(p,i,s,o);if(m)return gf(m,n,i,s,o)}var Ca=function(t){var n=t.type;return n===Ee.Mobile},Aa=function(t){var n=t.type;return n===Ee.Tablet},Pa=function(t){var n=t.type;return n===Ee.Mobile||n===Ee.Tablet},Oa=function(t){var n=t.type;return n===Ee.SmartTv},Fn=function(t){var n=t.type;return n===Ee.Browser},Ma=function(t){var n=t.type;return n===Ee.Wearable},Ra=function(t){var n=t.type;return n===Ee.Console},Da=function(t){var n=t.type;return n===Ee.Embedded},Ia=function(t){var n=t.vendor;return G(n)},ka=function(t){var n=t.model;return G(n)},La=function(t){var n=t.type;return G(n,"browser")},ja=function(t){var n=t.name;return n===zt.Android},Ba=function(t){var n=t.name;return n===zt.Windows},Va=function(t){var n=t.name;return n===zt.MAC_OS},Fa=function(t){var n=t.name;return n===zt.WindowsPhone},Ua=function(t){var n=t.name;return n===zt.IOS},$a=function(t){var n=t.version;return G(n)},Ga=function(t){var n=t.name;return G(n)},Wa=function(t){var n=t.name;return n===Me.Chrome},za=function(t){var n=t.name;return n===Me.Firefox},Ka=function(t){var n=t.name;return n===Me.Chromium},Un=function(t){var n=t.name;return n===Me.Edge},Ha=function(t){var n=t.name;return n===Me.Yandex},qa=function(t){var n=t.name;return n===Me.Safari||n===Me.MobileSafari},Ya=function(t){var n=t.name;return n===Me.MobileSafari},Xa=function(t){var n=t.name;return n===Me.Opera},Za=function(t){var n=t.name;return n===Me.InternetExplorer||n===Me.Ie},Qa=function(t){var n=t.name;return n===Me.MIUI},Ja=function(t){var n=t.name;return n===Me.SamsungBrowser},el=function(t){var n=t.version;return G(n)},tl=function(t){var n=t.major;return G(n)},nl=function(t){var n=t.name;return G(n)},rl=function(t){var n=t.name;return G(n)},il=function(t){var n=t.version;return G(n)},sl=function(){var t=xi(),n=t&&t.userAgent&&t.userAgent.toLowerCase();return typeof n=="string"?/electron/.test(n):!1},Vt=function(t){return typeof t=="string"&&t.indexOf("Edg/")!==-1},ol=function(){var t=xi();return t&&(/iPad|iPhone|iPod/.test(t.platform)||t.platform==="MacIntel"&&t.maxTouchPoints>1)&&!window.MSStream},He=function(){return wi("iPad")},al=function(){return wi("iPhone")},ll=function(){return wi("iPod")},cl=function(t){return G(t)};function ul(e){var t=e||Na,n=t.device,r=t.browser,i=t.os,s=t.engine,o=t.ua;return{isSmartTV:Oa(n),isConsole:Ra(n),isWearable:Ma(n),isEmbedded:Da(n),isMobileSafari:Ya(r)||He(),isChromium:Ka(r),isMobile:Pa(n)||He(),isMobileOnly:Ca(n),isTablet:Aa(n)||He(),isBrowser:Fn(n),isDesktop:Fn(n),isAndroid:ja(i),isWinPhone:Fa(i),isIOS:Ua(i)||He(),isChrome:Wa(r),isFirefox:za(r),isSafari:qa(r),isOpera:Xa(r),isIE:Za(r),osVersion:$a(i),osName:Ga(i),fullBrowserVersion:el(r),browserVersion:tl(r),browserName:nl(r),mobileVendor:Ia(n),mobileModel:ka(n),engineName:rl(s),engineVersion:il(s),getUA:cl(o),isEdge:Un(r)||Vt(o),isYandex:Ha(r),deviceType:La(n),isIOS13:ol(),isIPad13:He(),isIPhone13:al(),isIPod13:ll(),isElectron:sl(),isEdgeChromium:Vt(o),isLegacyEdge:Un(r)&&!Vt(o),isWindows:Ba(i),isMacOs:Va(i),isMIUI:Qa(r),isSamsungBrowser:Ja(r)}}var dl=Oa(ke),fl=Ra(ke),hl=Ma(ke),yf=Da(ke),vf=Ya(Ne)||He(),xf=Ka(Ne),nr=Pa(ke)||He(),pl=Ca(ke),ml=Aa(ke)||He(),gl=Fn(ke),wf=Fn(ke),bl=ja(mt),yl=Fa(mt),vl=Ua(mt)||He(),Ef=Wa(Ne),Tf=za(Ne),_f=qa(Ne),Sf=Xa(Ne),xl=Za(Ne),Nf=$a(mt),Cf=Ga(mt),Af=el(Ne),Pf=tl(Ne),Of=nl(Ne),Mf=Ia(ke),Rf=ka(ke),Df=rl(vi),If=il(vi),kf=cl(pn),Lf=Un(Ne)||Vt(pn),jf=Ha(Ne),Bf=La(ke),Vf=ol(),Ff=He(),Uf=al(),$f=ll(),Gf=sl(),Wf=Vt(pn),zf=Un(Ne)&&!Vt(pn),Kf=Ba(mt),Hf=Va(mt),qf=Qa(Ne),Yf=Ja(Ne),Xf=function(t){if(!t||typeof t!="string"){console.error("No valid user agent string was provided");return}var n=mn(t),r=n.device,i=n.browser,s=n.os,o=n.engine,a=n.ua;return ul({device:r,browser:i,os:s,engine:o,ua:a})},Zf=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return bl?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},Qf=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return gl?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},Jf=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return xl?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},eh=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return vl?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},th=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return nr?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},nh=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return ml?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},rh=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return yl?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},ih=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var i=Ue(t,["renderWithFragment","children","viewClassName","style"]);return pl?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},sh=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return dl?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},oh=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return fl?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},ah=function(t){var n=t.renderWithFragment,r=t.children,i=Ue(t,["renderWithFragment","children"]);return hl?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",i,r):null},lh=function(t){var n=t.renderWithFragment,r=t.children;t.viewClassName,t.style;var i=t.condition,s=Ue(t,["renderWithFragment","children","viewClassName","style","condition"]);return i?n?ne.createElement(Se.Fragment,null,r):ne.createElement("div",s,r):null};function ch(e){return function(t){ef(n,t);function n(r){var i;return Xd(this,n),i=nf(this,jr(n).call(this,r)),i.isEventListenerAdded=!1,i.handleOrientationChange=i.handleOrientationChange.bind(Mn(i)),i.onOrientationChange=i.onOrientationChange.bind(Mn(i)),i.onPageLoad=i.onPageLoad.bind(Mn(i)),i.state={isLandscape:!1,isPortrait:!1},i}return Qd(n,[{key:"handleOrientationChange",value:function(){this.isEventListenerAdded||(this.isEventListenerAdded=!0);var i=window.innerWidth>window.innerHeight?90:0;this.setState({isPortrait:i===0,isLandscape:i===90})}},{key:"onOrientationChange",value:function(){this.handleOrientationChange()}},{key:"onPageLoad",value:function(){this.handleOrientationChange()}},{key:"componentDidMount",value:function(){(typeof window>"u"?"undefined":tn(window))!==void 0&&nr&&(this.isEventListenerAdded?window.removeEventListener("load",this.onPageLoad,!1):(this.handleOrientationChange(),window.addEventListener("load",this.onPageLoad,!1)),window.addEventListener("resize",this.onOrientationChange,!1))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.onOrientationChange,!1)}},{key:"render",value:function(){return ne.createElement(e,Lr({},this.props,{isLandscape:this.state.isLandscape,isPortrait:this.state.isPortrait}))}}]),n}(ne.Component)}function uh(){var e=Se.useState(function(){var s=window.innerWidth>window.innerHeight?90:0;return{isPortrait:s===0,isLandscape:s===90,orientation:s===0?"portrait":"landscape"}}),t=rf(e,2),n=t[0],r=t[1],i=Se.useCallback(function(){var s=window.innerWidth>window.innerHeight?90:0,o={isPortrait:s===0,isLandscape:s===90,orientation:s===0?"portrait":"landscape"};n.orientation!==o.orientation&&r(o)},[n.orientation]);return Se.useEffect(function(){return(typeof window>"u"?"undefined":tn(window))!==void 0&&nr&&(i(),window.addEventListener("load",i,!1),window.addEventListener("resize",i,!1)),function(){window.removeEventListener("resize",i,!1),window.removeEventListener("load",i,!1)}},[i]),n}function wl(e){var t=e||window.navigator.userAgent;return mn(t)}function dh(e){var t=e||window.navigator.userAgent,n=wl(t),r=ul(n);return[r,n]}D.AndroidView=Zf;D.BrowserTypes=Me;D.BrowserView=Qf;D.ConsoleView=oh;D.CustomView=lh;D.IEView=Jf;D.IOSView=eh;D.MobileOnlyView=ih;D.MobileView=th;D.OsTypes=zt;D.SmartTVView=sh;D.TabletView=nh;D.WearableView=ah;D.WinPhoneView=rh;D.browserName=Of;D.browserVersion=Pf;D.deviceDetect=bf;D.deviceType=Bf;D.engineName=Df;D.engineVersion=If;D.fullBrowserVersion=Af;D.getSelectorsByUserAgent=Xf;D.getUA=kf;D.isAndroid=bl;D.isBrowser=gl;D.isChrome=Ef;D.isChromium=xf;D.isConsole=fl;D.isDesktop=wf;D.isEdge=Lf;D.isEdgeChromium=Wf;D.isElectron=Gf;D.isEmbedded=yf;D.isFirefox=Tf;D.isIE=xl;D.isIOS=vl;D.isIOS13=Vf;D.isIPad13=Ff;D.isIPhone13=Uf;D.isIPod13=$f;D.isLegacyEdge=zf;D.isMIUI=qf;D.isMacOs=Hf;var Qt=D.isMobile=nr;D.isMobileOnly=pl;D.isMobileSafari=vf;D.isOpera=Sf;D.isSafari=_f;D.isSamsungBrowser=Yf;D.isSmartTV=dl;D.isTablet=ml;D.isWearable=hl;D.isWinPhone=yl;D.isWindows=Kf;D.isYandex=jf;D.mobileModel=Rf;D.mobileVendor=Mf;D.osName=Cf;D.osVersion=Nf;D.parseUserAgent=mn;D.setUserAgent=df;D.useDeviceData=wl;D.useDeviceSelectors=dh;D.useMobileOrientation=uh;D.withOrientationChange=ch;function fh({adKey:e,filename:t,title:n,backgroundColor:r,hideButton:i=!1,buttonColors:s,linkType:o="homepage",isLoading:a=!1,className:l}){var p;const c=e&&t,u=`https://cdn.sayun.studio/boottent/images/banners/${e}/${t}`,f={background:s?s.button:Te.defaultBannerColor.button,color:s?s.buttonText:Te.defaultBannerColor.buttonText,border:s?s.button:Te.defaultBannerColor.button},d=a?te.Skeleton:b.Box;return h.jsx(d,{style:{backgroundColor:a?void 0:r},type:a?"background":void 0,className:b.cn("relative h-40 w-full overflow-hidden md:h-[200px]",a?"bg-white":"border-y border-y-grey-200",l),children:a?h.jsx(El,{}):h.jsx(h.Fragment,{children:h.jsxs(b.FlexBox.Row,{className:"absolute inset-0 mx-auto h-full w-full max-w-screen-xl px-0 pb-6 pt-0 md:h-auto md:px-6 md:pb-0 md:pt-10 lg:px-10 lg:pt-6",children:[c?h.jsx("div",{className:"mx-auto flex h-full w-full items-center md:items-start",children:h.jsx("img",{loading:"lazy",src:u,alt:`${n} 이미지`,className:"h-auto max-h-[136px] w-full object-contain md:max-h-40 lg:max-h-[176px]"})}):h.jsx(b.Box,{className:"h-full w-full bg-grey-100 text-muted",children:n}),!i&&h.jsx(b.Box,{className:"absolute inset-0 mx-auto max-w-screen-xl px-4 md:px-6 lg:px-10",children:h.jsx(b.Button,{style:f,theme:"etc",variant:"solid",size:Qt?"sm":"md",className:"absolute bottom-4 right-4 h-9 w-24 md:bottom-6 md:right-6 md:h-11 md:w-32 lg:bottom-4 lg:right-10",children:((p=Wd[o])==null?void 0:p.label)+" →"||"홈페이지 →"})})]})})})}function El(){return h.jsxs(b.FlexBox.Col,{className:"relative mx-auto flex h-full w-full max-w-screen-xl items-start gap-5 px-4 pt-4 md:px-6 md:pt-10 lg:px-10",children:[h.jsx(te.Skeleton,{type:"text",className:"h-6 w-4/5 rounded-xl md:h-10"}),h.jsx(te.Skeleton,{type:"text",className:"h-10 w-1/2 rounded-xl md:h-16 lg:w-3/5"}),h.jsx(te.Skeleton,{type:"text",className:"absolute bottom-4 right-4 aspect-[3/1] w-[120px] shrink-0 md:right-6 md:w-[140px] lg:right-10"})]})}const hh=({logo:e,title:t,subtitle:n,thumbnail:r,batchTitle:i,batchName:s="",brandName:o,tag:a,isLoading:l=!1,className:c})=>{const u=l?te.Skeleton:b.Box;return h.jsxs(u,{title:t,type:"background",className:b.cn("xs:h-full relative z-10 box-border h-[154px] w-full max-w-[720px] cursor-pointer overflow-hidden rounded-xl bg-white p-4 md:h-[174px] md:max-w-[592px] md:p-5 lg:h-[174px] lg:p-6 xl:h-[174px]",l?"":"border border-grey-200",c),children:[h.jsx(b.Tag,{variant:"ad",style:{background:Te.adProducts.premiumCard.background,color:Te.adProducts.premiumCard.color},className:b.cn(l&&"h-7 w-28 animate-pulse"),children:l?"":a}),l?h.jsx(mh,{}):h.jsx(ph,{logo:e,brandName:o,batchTitle:i,batchName:s,subtitle:n,thumbnail:r})]})},ph=({logo:e,brandName:t,batchTitle:n,batchName:r,subtitle:i,thumbnail:s})=>h.jsxs(b.FlexBox.Col,{className:"h-full justify-start gap-2",children:[h.jsx(Bn,{src:e,alt:`${t} 로고`,className:"h-4 object-contain"}),h.jsxs(b.FlexBox.Row,{className:"w-full items-start justify-between gap-6",children:[h.jsxs(b.FlexBox.Col,{className:"flex h-full grow flex-col justify-between gap-2 pb-2",children:[h.jsxs("h3",{className:"line-clamp-2 h-auto text-sm font-normal md:h-12 md:text-base",title:`${t} ${n} ${r}`,children:[n," ",r]}),h.jsx("h4",{className:"line-clamp-2 max-h-[56px] w-full break-keep rounded bg-grey-100 px-2 py-1 text-[13px] font-semibold text-grey-600 md:text-[15px] md:text-grey-800",title:i,children:i})]}),h.jsx(Bn,{src:s,alt:`${n} 썸네일`,className:"h-[86px] w-[86px] shrink-0 grow-0 rounded-xl border border-grey-200 object-cover md:h-[96px] md:w-[96px]"})]})]}),mh=()=>h.jsxs(b.FlexBox.Col,{className:"h-full justify-center gap-2",children:[h.jsx(te.Skeleton,{className:"h-4 w-1/2"}),h.jsxs(b.FlexBox.Row,{className:"w-full items-start justify-between gap-6",children:[h.jsxs(b.FlexBox.Col,{className:"flex h-full w-full flex-col justify-between gap-2 pb-2",children:[h.jsx(te.Skeleton,{className:"h-5 w-4/5 lg:h-12"}),h.jsx(te.Skeleton,{className:"h-5 w-4/5"})]}),h.jsx(te.Skeleton,{className:"h-[86px] w-[86px] shrink-0 grow-0 rounded-xl md:h-[96px] md:w-[96px]"})]})]}),gh=({tags:e,coverImage:t,brandName:n,title:r,batchName:i="",titleTagType:s,adTitle:o,changedAspect:a="aspect-[8/5]",isLoading:l=!1,className:c})=>l?h.jsx(bh,{changedAspect:a,className:c,titleTagType:s}):h.jsxs(b.FlexBox.Col,{className:b.cn("shadow-base h-full w-full shrink-0 cursor-pointer overflow-hidden rounded-xl border border-grey-700 bg-white transition-all",c),children:[h.jsxs(b.Box,{style:{background:"linear-gradient(0deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"},className:`relative flex ${a} w-full flex-col items-center justify-center overflow-hidden`,children:[h.jsx(Bn,{src:t,alt:`${n} ${r} ${i} 이미지`,className:"h-full w-full object-cover"}),s&&h.jsx(b.Tag,{variant:"ad",style:{background:Te.adProducts.titleTag.background,color:Te.adProducts.titleTag.color},children:s}),o&&h.jsxs(h.Fragment,{children:[h.jsx(b.Box,{className:"absolute left-4 top-4 z-10 w-36 whitespace-pre-wrap break-keep text-[18px] font-semibold text-white md:left-5 md:top-7",children:o}),h.jsx(b.Box,{className:"absolute inset-0 opacity-50",style:{background:"linear-gradient(270deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"}})]})]}),h.jsxs(b.FlexBox.Col,{className:"w-full justify-between gap-2 p-4 text-grey-800 md:p-5 lg:p-6",children:[h.jsxs("h4",{className:"flex flex-col gap-2",title:`${n} ${r} ${i}`,children:[h.jsx("p",{className:"text-sm",children:n}),h.jsx("p",{className:"truncate3 break-keep text-base font-semibold",children:`${r} ${i}`})]}),e&&h.jsx("ul",{className:"flex w-full max-w-full flex-wrap gap-1",children:e.map((u,f)=>{var p;const d=Object.values(Te.campCategoryColors).find(m=>m.tags.some(g=>g.value===u));return d&&h.jsx("li",{children:h.jsx(b.Tag,{size:"sm",style:{background:d.background,color:d.color},children:(p=d.tags.find(m=>m.value===u))==null?void 0:p.text})},f)})})]})]}),bh=({changedAspect:e,className:t,titleTagType:n})=>h.jsxs(te.Skeleton,{type:"background",className:b.cn("relative h-full w-full shrink-0 cursor-pointer overflow-hidden rounded-xl bg-grey-50 transition-all",t),children:[n&&h.jsx(b.Tag,{variant:"ad",style:{background:Te.adProducts.titleTag.background,color:Te.adProducts.titleTag.color},className:b.cn("h-7 w-28 animate-pulse rounded-bl-lg rounded-br-none rounded-tl-none rounded-tr-lg px-2 py-1 text-sm"),children:""}),h.jsx(b.Box,{style:{background:"linear-gradient(270deg, rgba(24, 25, 25, 0.00) 17.43%, #181919 91.02%)"},className:`relative flex ${e} w-full`,children:h.jsx(te.Skeleton,{className:"h-full w-full",type:"background"})}),h.jsxs(b.FlexBox.Col,{className:"w-full justify-between gap-2 p-4",children:[h.jsxs(b.FlexBox.Col,{className:"relative w-full gap-2",children:[h.jsx(te.Skeleton,{className:"h-5 w-1/2",type:"text"}),h.jsx(te.Skeleton,{className:"h-12 w-full",type:"text"})]}),h.jsxs(b.FlexBox.Row,{className:"w-full gap-1",children:[h.jsx(te.Skeleton,{className:"h-5 w-1/4",type:"text"}),h.jsx(te.Skeleton,{className:"h-5 w-2/5",type:"text"}),h.jsx(te.Skeleton,{className:"h-5 w-1/4",type:"text"})]})]})]});function yh(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function vh(e,t){if(e==null)return{};var n,r,i=yh(e,t);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);for(r=0;r<s.length;r++)n=s[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function Vr(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xh(e){if(Array.isArray(e))return Vr(e)}function wh(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Eh(e,t){if(e){if(typeof e=="string")return Vr(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Vr(e,t):void 0}}function Th(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
3
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Fr(e){return xh(e)||wh(e)||Eh(e)||Th()}function on(e){"@babel/helpers - typeof";return on=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},on(e)}function _h(e,t){if(on(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t||"default");if(on(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Sh(e){var t=_h(e,"string");return on(t)=="symbol"?t:t+""}function Tl(e,t,n){return(t=Sh(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ur(){return Ur=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ur.apply(null,arguments)}function ys(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Dt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ys(Object(n),!0).forEach(function(r){Tl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ys(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Nh(e){var t=e.length;if(t===0||t===1)return e;if(t===2)return[e[0],e[1],"".concat(e[0],".").concat(e[1]),"".concat(e[1],".").concat(e[0])];if(t===3)return[e[0],e[1],e[2],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0])];if(t>=4)return[e[0],e[1],e[2],e[3],"".concat(e[0],".").concat(e[1]),"".concat(e[0],".").concat(e[2]),"".concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[0]),"".concat(e[1],".").concat(e[2]),"".concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[1]),"".concat(e[2],".").concat(e[3]),"".concat(e[3],".").concat(e[0]),"".concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[0]),"".concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[0],".").concat(e[1],".").concat(e[2],".").concat(e[3]),"".concat(e[0],".").concat(e[1],".").concat(e[3],".").concat(e[2]),"".concat(e[0],".").concat(e[2],".").concat(e[1],".").concat(e[3]),"".concat(e[0],".").concat(e[2],".").concat(e[3],".").concat(e[1]),"".concat(e[0],".").concat(e[3],".").concat(e[1],".").concat(e[2]),"".concat(e[0],".").concat(e[3],".").concat(e[2],".").concat(e[1]),"".concat(e[1],".").concat(e[0],".").concat(e[2],".").concat(e[3]),"".concat(e[1],".").concat(e[0],".").concat(e[3],".").concat(e[2]),"".concat(e[1],".").concat(e[2],".").concat(e[0],".").concat(e[3]),"".concat(e[1],".").concat(e[2],".").concat(e[3],".").concat(e[0]),"".concat(e[1],".").concat(e[3],".").concat(e[0],".").concat(e[2]),"".concat(e[1],".").concat(e[3],".").concat(e[2],".").concat(e[0]),"".concat(e[2],".").concat(e[0],".").concat(e[1],".").concat(e[3]),"".concat(e[2],".").concat(e[0],".").concat(e[3],".").concat(e[1]),"".concat(e[2],".").concat(e[1],".").concat(e[0],".").concat(e[3]),"".concat(e[2],".").concat(e[1],".").concat(e[3],".").concat(e[0]),"".concat(e[2],".").concat(e[3],".").concat(e[0],".").concat(e[1]),"".concat(e[2],".").concat(e[3],".").concat(e[1],".").concat(e[0]),"".concat(e[3],".").concat(e[0],".").concat(e[1],".").concat(e[2]),"".concat(e[3],".").concat(e[0],".").concat(e[2],".").concat(e[1]),"".concat(e[3],".").concat(e[1],".").concat(e[0],".").concat(e[2]),"".concat(e[3],".").concat(e[1],".").concat(e[2],".").concat(e[0]),"".concat(e[3],".").concat(e[2],".").concat(e[0],".").concat(e[1]),"".concat(e[3],".").concat(e[2],".").concat(e[1],".").concat(e[0])]}var gr={};function Ch(e){if(e.length===0||e.length===1)return e;var t=e.join(".");return gr[t]||(gr[t]=Nh(e)),gr[t]}function Ah(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0,r=e.filter(function(s){return s!=="token"}),i=Ch(r);return i.reduce(function(s,o){return Dt(Dt({},s),n[o])},t)}function vs(e){return e.join(" ")}function Ph(e,t){var n=0;return function(r){return n+=1,r.map(function(i,s){return _l({node:i,stylesheet:e,useInlineStyles:t,key:"code-segment-".concat(n,"-").concat(s)})})}}function _l(e){var t=e.node,n=e.stylesheet,r=e.style,i=r===void 0?{}:r,s=e.useInlineStyles,o=e.key,a=t.properties,l=t.type,c=t.tagName,u=t.value;if(l==="text")return u;if(c){var f=Ph(n,s),d;if(!s)d=Dt(Dt({},a),{},{className:vs(a.className)});else{var p=Object.keys(n).reduce(function(v,x){return x.split(".").forEach(function(w){v.includes(w)||v.push(w)}),v},[]),m=a.className&&a.className.includes("token")?["token"]:[],g=a.className&&m.concat(a.className.filter(function(v){return!p.includes(v)}));d=Dt(Dt({},a),{},{className:vs(g)||void 0,style:Ah(a.className,Object.assign({},a.style,i),n)})}var y=f(t.children);return S.createElement(c,Ur({key:o},d),y)}}const Oh=function(e,t){var n=e.listLanguages();return n.indexOf(t)!==-1};var Mh=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function xs(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function lt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xs(Object(n),!0).forEach(function(r){Tl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xs(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}var Rh=/\n/g;function Dh(e){return e.match(Rh)}function Ih(e){var t=e.lines,n=e.startingLineNumber,r=e.style;return t.map(function(i,s){var o=s+n;return S.createElement("span",{key:"line-".concat(s),className:"react-syntax-highlighter-line-number",style:typeof r=="function"?r(o):r},"".concat(o,`
|
|
4
4
|
`))})}function kh(e){var t=e.codeString,n=e.codeStyle,r=e.containerStyle,i=r===void 0?{float:"left",paddingRight:"10px"}:r,s=e.numberStyle,o=s===void 0?{}:s,a=e.startingLineNumber;return S.createElement("code",{style:Object.assign({},n,i)},Ih({lines:t.replace(/\n$/,"").split(`
|
|
@@ -12,4 +12,4 @@ https://github.com/highlightjs/highlight.js/issues/2277`),Ae=_,Q=R);const he={co
|
|
|
12
12
|
@keyframes `.concat(r,` {
|
|
13
13
|
`).concat(t,`
|
|
14
14
|
}
|
|
15
|
-
`);return s&&s.insertRule(o,0),r},Xn=function(){return Xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Xn.apply(this,arguments)},Kx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Hx=zx("BeatLoader","50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","beat");function qx(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,i=r===void 0?"#000000":r,s=e.speedMultiplier,o=s===void 0?1:s,a=e.cssOverride,l=a===void 0?{}:a,c=e.size,u=c===void 0?15:c,f=e.margin,d=f===void 0?2:f,p=Kx(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=Xn({display:"inherit"},l),g=function(y){return{display:"inline-block",backgroundColor:i,width:Dr(u),height:Dr(u),margin:Dr(d),borderRadius:"100%",animation:"".concat(Hx," ").concat(.7/o,"s ").concat(y%2?"0s":"".concat(.35/o,"s")," infinite linear"),animationFillMode:"both"}};return n?M.createElement("span",Xn({style:m},p),M.createElement("span",{style:g(1)}),M.createElement("span",{style:g(2)}),M.createElement("span",{style:g(3)})):null}const ut=({group:e,depth:t,variant:n="default",isChildrenList:r=!1})=>{const i=ci(n);if(!e||e.length===0)return null;const s=ui(e),o=["list-decimal","list-lower","list-roman"],a=["list-disc","list-square","list-circle"];return s.map((l,c)=>{const u=l.type==="numbered_list"?"ol":"ul",f=l.type==="numbered_list"?o[o.length%t]:a[a.length%t],d=l.type==="numbered_list"?"numbered_list_item":"bulleted_list_item";return l.type==="numbered_list"||l.type==="bulleted_list"?h.jsx(u,{className:b.cn(i.list,f,"rounded-lg not-italic",t===1?"mb-4 space-y-4 p-4 pl-8":"space-y-1 bg-transparent pl-4",r?"bg-transparent p-0 pl-4":"bg-grey-100"),children:l.blocks.map(p=>h.jsxs("li",{className:b.cn(t===1?"text-grey-800 marker:text-grey-800":"text-grey-600 marker:text-main-400",i.listItem),children:[Ke(p,n),p.has_children&&(p.children||[]).length>0&&h.jsx("div",{className:"mt-1",children:(p.children||[]).some(m=>m.type===d)?ut({group:(p.children||[]).filter(m=>m.type===d),depth:t+1,variant:n,isChildrenList:!0}):h.jsx("div",{className:"pl-1 text-grey-600",children:(p.children||[]).map((m,g)=>h.jsx(Zn,{block:m,variant:n,isLast:!0},m.type+m.id+g))})})]},p.type+p.id+c))},l.type+c):h.jsx("div",{children:Ke(l.block,n)},l.block.id||c)})},Yx=(e,t)=>!e||e.length===0?null:e.map((n,r)=>{const{annotations:i,text:s}=n;if(!s)return null;const{bold:o,italic:a,underline:l,strikethrough:c,code:u,color:f,backgroundColor:d}=i,p=b.cn("whitespace-pre-wrap",o&&"font-semibold",a&&"italic",l&&"underline",c&&"line-through",Zu[f]??"",u&&"bg-grey-200 bg-opacity-80 px-1.5 rounded py-0.5 text-red-400",us[d||""]?`${us[d]} bg-opacity-80 px-1.5 rounded py-0.5`:"",t),m=s.link&&s.link.url?h.jsx(te.Anchor,{type:"external",href:s.link.url,className:"text-main-600 underline",children:s.content}):s.content;return typeof m=="string"&&m.length===0?h.jsx("br",{}):h.jsx("span",{className:p,children:m},r)}),Ke=(e,t="default",n=!1,r=null)=>{var f,d,p,m,g,y,v,x,w,E,T,N,B,k,q,X,ue,de,fe,pe,le,be,Z,re,ce,oe,Le,Pe,_,R,W,H,Q,Ae,he,ye,ve,Re,Qe,vt,$e,At,Ge,We,Oe,Pt,Je,z;const i=`${e.type}-block`,s=ci(t),o=((f=e[e.type])==null?void 0:f.rich_text)||"",a=(e==null?void 0:e.children)||[],l=Xo(e,t)&&((d=Jn[t][e.type])==null?void 0:d.className)||"",c=a==null?void 0:a.some(A=>qo.includes(A.type)),u=A=>Yx(A,l);switch(e.type){case"loading":return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.loading),children:h.jsx(qx,{size:8})});case"paragraph":return o&&o.length>0?h.jsx(xe.p,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph,n&&"mb-0"),children:u(((p=e.paragraph)==null?void 0:p.rich_text)||"")}):h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph),children:" "});case"heading_1":return o&&o.length>0?h.jsx(xe.h1,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading1),children:u(((m=e.heading_1)==null?void 0:m.rich_text)||"")}):null;case"heading_2":return o&&o.length>0?h.jsx(xe.h2,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading2),children:u(((g=e.heading_2)==null?void 0:g.rich_text)||"")}):null;case"heading_3":return o&&o.length>0?h.jsx(xe.h3,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading3),children:u(((y=e.heading_3)==null?void 0:y.rich_text)||"")}):null;case"bulleted_list_item":case"numbered_list_item":return o&&o.length>0?h.jsx("span",{className:b.cn(i,s.listItem),children:u(e.type==="bulleted_list_item"?((v=e.bulleted_list_item)==null?void 0:v.rich_text)||"":((x=e.numbered_list_item)==null?void 0:x.rich_text)||"")}):null;case"quote":return o&&o.length>0?h.jsxs(xe.blockquote,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.quote),children:[u(((w=e.quote)==null?void 0:w.rich_text)||""),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t}):e.children.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"quote")},e.type+A.id+L))})]}):null;case"divider":return h.jsx("hr",{className:b.cn(i,s.divider)});case"image":{const A=e.image,L=((E=A==null?void 0:A.file)==null?void 0:E.url)||((T=A==null?void 0:A.external)==null?void 0:T.url),K=Array.isArray(A==null?void 0:A.caption)?A.caption:[];let V,U=K;if(K.length>0){const j=K[0].plain_text||"";if(j.includes("||")){const[Y,P]=j.split("||").map(I=>I.trim());V=P,Y?U=[{...K[0],plain_text:Y,text:{...K[0].text,content:Y}},...K.slice(1)]:U=[]}}return h.jsxs(xe.figure,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"flex flex-col items-center overflow-hidden rounded-lg"),children:[L?h.jsx("div",{className:s.image,children:h.jsx("img",{src:L,className:"h-full w-full object-cover",alt:((N=U[0])==null?void 0:N.plain_text)||"Image",style:V?{width:V}:{}})}):h.jsx("div",{className:"w-full rounded-lg bg-grey-200 p-4",children:"이미지를 불러올 수 없습니다"}),U.length>0&&h.jsx("figcaption",{className:"mt-2 text-center text-sm text-gray-500",children:u(U)})]})}case"callout":{const A=((k=(B=e.callout)==null?void 0:B.icon)==null?void 0:k.emoji)||null,L=r==="column";return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,L&&"h-full","flex rounded-lg px-4 py-6"),children:[h.jsx("div",{className:"flex-shrink-0",children:h.jsx("div",{className:"flex h-6 w-6 items-center justify-center text-lg md:text-xl",children:A||"💡"})}),h.jsxs("div",{className:"flex flex-col gap-2",children:[o.length>0&&h.jsx("div",{className:"text-base md:text-lg",children:u(o)}),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t,isChildrenList:c}):e.children.map((K,V)=>h.jsx(S.Fragment,{children:Ke(K,t,!0,"callout")},e.type+K.id+V))})]})]})}case"code":{const A=((q=e.code)==null?void 0:q.rich_text)||[],L=((X=e.code)==null?void 0:X.language)||"plaintext";if(A.length>0&&((ue=A[0].plain_text)!=null&&ue.startsWith("!#btrl"))){const V=[A[1]],U=A.slice(2);let j="mb-2 flex rounded-3xl px-6 py-8";return L==="bash"?j+=" bg-main-100/60":L==="abap"?j+=" border border-border bg-transparent":j+=" bg-grey-100",h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,j),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:u(V)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:u(U)})]})}const K=A.map(V=>V.plain_text).join("")||"";return h.jsx(zl,{code:K,language:L})}case"to_do":{const A=((de=e.to_do)==null?void 0:de.checked)||!1;return o&&o.length>0?h.jsxs("div",{className:b.cn(i,"mb-2 flex items-start gap-2"),children:[h.jsx("input",{type:"checkbox",checked:A,readOnly:!0,className:"mt-1 h-4 w-4 rounded border-gray-300"}),h.jsx("span",{className:b.cn(s.paragraph,A?"text-gray-400 line-through":""),children:u(((fe=e.to_do)==null?void 0:fe.rich_text)||"")})]}):null}case"toggle":return o&&o.length>0?h.jsxs("details",{className:b.cn(i,"group mb-4"),children:[h.jsx("summary",{className:b.cn(s.paragraph,"cursor-pointer"),children:h.jsx("span",{className:"px-1",children:u(((pe=e.toggle)==null?void 0:pe.rich_text)||"")})}),h.jsx("div",{className:"mt-2 pl-4",children:e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t}):e.children.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"toggle")},e.type+A.id+L))})})]}):null;case"table":return h.jsx("div",{className:b.cn(i,"mb-4 overflow-x-auto"),children:h.jsx("table",{className:b.cn(s.table,"min-w-full table-auto"),children:h.jsx("tbody",{children:a.map((A,L)=>{var K,V;return h.jsx("tr",{className:s.tableRow,children:(V=(K=A.table_row)==null?void 0:K.cells)==null?void 0:V.map((U,j)=>{var O,C,J;const Y=((O=e.table)==null?void 0:O.has_column_header)&&L===0,P=((C=e.table)==null?void 0:C.has_row_header)&&j===0,I=Y?"th":"td";return h.jsx(I,{className:b.cn(s.tableCell,"px-4 py-2 align-top",Y?"bg-grey-100 text-left font-semibold":"text-left",P?"bg-grey-100":""),style:{minWidth:"120px",textAlign:"left",wordBreak:"break-word"},children:(J=U||[])==null?void 0:J.map((ze,Ot)=>h.jsx(S.Fragment,{children:u([ze])},Ot))},j)})},A.id||L)})})})});case"bookmark":{const A=((le=e.bookmark)==null?void 0:le.url)||"",{meta:L,loading:K}=Sg(A);return A?h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 block"),children:K?h.jsx("div",{className:"h-24 animate-pulse rounded-md bg-gray-100"}):L?h.jsxs(S.Fragment,{children:[h.jsxs(te.Anchor,{type:"external",href:A,className:"flex h-auto w-full flex-col items-center overflow-hidden rounded-md border border-gray-200 transition-all hover:bg-gray-50 hover:shadow xs:h-24 xs:flex-row lg:h-28",children:[L.image&&h.jsx("div",{className:"aspect-video h-auto w-full flex-shrink-0 rounded-md xs:h-full xs:w-auto",children:h.jsx("img",{src:L.image,alt:L.title,className:"h-full w-full object-cover"})}),h.jsxs("div",{className:"flex flex-col p-4",children:[h.jsx("div",{className:"line-clamp-2 text-sm font-semibold md:text-base",children:L.title}),h.jsx("div",{className:"line-clamp-2 text-sm text-gray-500",children:L.description})]})]}),((Z=(be=e.bookmark)==null?void 0:be.caption)==null?void 0:Z.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:u(e.bookmark.caption)})]}):h.jsxs("div",{className:"mb-4 block rounded-md border border-gray-200 p-4 text-base hover:bg-gray-50",children:[h.jsx(te.Anchor,{type:"external",href:A,children:A}),((ce=(re=e.bookmark)==null?void 0:re.caption)==null?void 0:ce.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:u(e.bookmark.caption)})]})}):null}case"embed":{const A=((oe=e.embed)==null?void 0:oe.url)||"";return h.jsxs("div",{className:b.cn(i,"mb-4"),children:[h.jsx("iframe",{src:A,className:"aspect-[3/4] max-h-[80vh] w-full overflow-hidden rounded-lg shadow-md md:aspect-square lg:aspect-video",title:"Embedded content",allowFullScreen:!0}),((Pe=(Le=e.embed)==null?void 0:Le.caption)==null?void 0:Pe.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-muted",children:u(e.embed.caption)})]})}case"video":{const A=((R=(_=e.video)==null?void 0:_.external)==null?void 0:R.url)||((H=(W=e.video)==null?void 0:W.file)==null?void 0:H.url)||"",L=ed(A);return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:[A?h.jsx("div",{className:"w-full",children:h.jsx("div",{className:"relative aspect-video overflow-hidden",children:h.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:L,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}):h.jsx("div",{className:"mb-4 w-full rounded-lg bg-grey-200 p-4",children:"비디오를 불러올 수 없습니다"}),((Ae=(Q=e.video)==null?void 0:Q.caption)==null?void 0:Ae.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:u(e.video.caption)})]})}case"file":{const A=((ye=(he=e.file)==null?void 0:he.external)==null?void 0:ye.url)||((Re=(ve=e.file)==null?void 0:ve.file)==null?void 0:Re.url)||"",L=A.split("/").pop()||"File";return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn("mb-4"),children:[h.jsxs(te.Anchor,{type:"external",href:A,className:b.cn(i,"flex flex-col gap-2 rounded-md border border-gray-200 p-3 hover:bg-gray-50"),children:[h.jsxs("span",{className:"flex items-center gap-1 text-sm text-muted",children:[h.jsx(b.Icon.CopyLink,{size:20,fill:Rt.colors.grey[400]}),"클릭하면 파일이 다운로드됩니다 :)"]}),h.jsx("span",{className:"line-clamp-2 break-all text-xs",children:L})]}),((vt=((Qe=e.file)==null?void 0:Qe.caption)||[])==null?void 0:vt.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:u(e.file.caption)})]})}case"table_of_contents":return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-4"),children:[h.jsx("div",{className:"mb-2 font-medium",children:"목차"}),h.jsx("div",{className:"text-sm text-gray-600",children:"(목차 내용은 전체 문서 분석 후 생성됩니다)"})]});case"link_preview":case"link_to_page":{const A=(($e=e.link_preview)==null?void 0:$e.url)||((At=e[e.type])==null?void 0:At.url)||"#",L=((Ge=e.link_preview)==null?void 0:Ge.url)||((We=e[e.type])==null?void 0:We.page_id)||"링크";return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:h.jsx(te.Anchor,{type:"external",href:A,children:L})})}case"child_page":case"child_database":{const A=((Oe=e[e.type])==null?void 0:Oe.title)||"하위 페이지";return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3"),children:[h.jsx("div",{className:"font-medium",children:A}),h.jsx("div",{className:"text-sm text-gray-500",children:e.type==="child_page"?"하위 페이지":"하위 데이터베이스"})]})}case"template":return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3"),children:[h.jsx("div",{className:"font-medium",children:"템플릿"}),(((Pt=e.template)==null?void 0:Pt.rich_text)||"").length>0&&h.jsx("div",{children:u(((Je=e.template)==null?void 0:Je.rich_text)||"")})]});case"synced_block":return h.jsx("div",{className:b.cn(i,"mb-4"),children:a.map((A,L)=>h.jsx("div",{children:Ke(A,t,!1,"synced_block")},e.type+A.id+L))});case"column_list":return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 grid w-full grid-cols-1 gap-0 sm:grid-cols-2 sm:gap-4"),children:a.map((A,L)=>h.jsx("div",{className:"w-full min-w-[150px] flex-1",children:Ke(A,t,!1,"column_list")},e.type+A.id+L))});case"column":return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"h-auto w-full sm:h-full"),children:a==null?void 0:a.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!1,"column")},e.type+A.id+L))});case"unsupported":return null;default:return o&&o.length>0?h.jsx("p",{className:b.cn(i,s.paragraph),children:u(((z=e[e.type])==null?void 0:z.rich_text)||"")}):h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3 text-sm text-gray-500"),children:["지원되지 않는 블록 타입: ",e.type]})}},Zn=({block:e,accordionHeadings:t=[],variant:n="default",isLast:r=!1})=>{const i=Yo(e,n),s=Ju(e,n),o=Xo(e,n);if(qo.includes(e.type)&&e.children)return ut({group:e.children,depth:1,variant:n});if(i>0){const a=Ke(e,n);if(!a&&(!e.children||e.children.length===0))return null;const l=e.children?ui(e.children):[];return o&&t.includes(e.type)&&l.length>0?h.jsx(Zt.Root,{type:"single",collapsible:!0,className:"w-full bg-white pb-1 md:pb-2 lg:pb-4",children:h.jsxs(Zt.Item,{value:e.id,className:"border-b-main-100",children:[h.jsx(Zt.Trigger,{className:"whitespace-pre-wrap py-2 md:whitespace-normal",children:a}),h.jsx(Zt.Content,{children:l.map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:n})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:n},c.block.id+u))})]})}):h.jsxs(s,{children:[a,l.length>0&&h.jsx("div",{className:"mt-4",children:l.map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:n})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:n},c.block.id+u))})]})}return Ke(e,n,r)},Xx=({blocks:e,accordionHeadings:t=[],className:n,variant:r="default"})=>{const i=Qu(e,r),s=ci(r),o=a=>ui(a).map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:r})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:r},c.type+u));return h.jsx("div",{className:b.cn(s.container,n),children:o(i)})},Zx=()=>{const[e,t]=S.useState([]);return S.useEffect(()=>{const u=(d,p)=>{t(p?m=>m.includes(d.id)?m:[...m,d.id]:m=>m.filter(g=>g!==d.id))},f=$.portalManager.subscribe(u);return t($.portalManager.getOpenPortals()),()=>{f()}},[]),{modal:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("modal",{...u,onClose:f})},toast:u=>{let f;return typeof u=="string"?f={description:u}:f=u,$.portalManager.showPortal("toast",f)},alert:u=>{let f;return typeof u=="string"?f={description:u,onClose:()=>{}}:f={...u,onClose:u.onClose||(()=>{})},$.portalManager.showPortal("alert",f)},dialog:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("dialog",{...u,onClose:f})},custom:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("custom",{...u,onClose:f})},getIsOpen:u=>$.portalManager.getIsPortalOpen(u),closePortal:u=>{$.portalManager.closePortal(u)},closeAllPortals:()=>{$.portalManager.closeAllPortals()},openPortals:e}};var[dr,O0]=b.createContextScope("Tooltip",[b.createPopperScope]),fr=b.createPopperScope(),wu="TooltipProvider",Qx=700,ai="tooltip.open",[Jx,is]=dr(wu),Eu=e=>{const{__scopeTooltip:t,delayDuration:n=Qx,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[o,a]=M.useState(!0),l=M.useRef(!1),c=M.useRef(0);return M.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),h.jsx(Jx,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:M.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:M.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:M.useCallback(u=>{l.current=u},[]),disableHoverableContent:i,children:s})};Eu.displayName=wu;var hr="Tooltip",[e0,pr]=dr(hr),Tu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:o,delayDuration:a}=e,l=is(hr,e.__scopeTooltip),c=fr(t),[u,f]=M.useState(null),d=b.useId(),p=M.useRef(0),m=o??l.disableHoverableContent,g=a??l.delayDuration,y=M.useRef(!1),[v=!1,x]=b.useControllableState({prop:r,defaultProp:i,onChange:B=>{B?(l.onOpen(),document.dispatchEvent(new CustomEvent(ai))):l.onClose(),s==null||s(B)}}),w=M.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),E=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,x(!0)},[x]),T=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),N=M.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,x(!0),p.current=0},g)},[g,x]);return M.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx(b.Root2,{...c,children:h.jsx(e0,{scope:t,contentId:d,open:v,stateAttribute:w,trigger:u,onTriggerChange:f,onTriggerEnter:M.useCallback(()=>{l.isOpenDelayed?N():E()},[l.isOpenDelayed,N,E]),onTriggerLeave:M.useCallback(()=>{m?T():(window.clearTimeout(p.current),p.current=0)},[T,m]),onOpen:E,onClose:T,disableHoverableContent:m,children:n})})};Tu.displayName=hr;var li="TooltipTrigger",_u=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=pr(li,n),s=is(li,n),o=fr(n),a=M.useRef(null),l=b.useComposedRefs(t,a,i.onTriggerChange),c=M.useRef(!1),u=M.useRef(!1),f=M.useCallback(()=>c.current=!1,[]);return M.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(b.Anchor,{asChild:!0,...o,children:h.jsx(b.Primitive.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:b.composeEventHandlers(e.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:b.composeEventHandlers(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:b.composeEventHandlers(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:b.composeEventHandlers(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:b.composeEventHandlers(e.onBlur,i.onClose),onClick:b.composeEventHandlers(e.onClick,i.onClose)})})});_u.displayName=li;var t0="TooltipPortal",[M0,n0]=dr(t0,{forceMount:void 0}),Wt="TooltipContent",Su=M.forwardRef((e,t)=>{const n=n0(Wt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=pr(Wt,e.__scopeTooltip);return h.jsx(b.Presence,{present:r||o.open,children:o.disableHoverableContent?h.jsx(Nu,{side:i,...s,ref:t}):h.jsx(r0,{side:i,...s,ref:t})})}),r0=M.forwardRef((e,t)=>{const n=pr(Wt,e.__scopeTooltip),r=is(Wt,e.__scopeTooltip),i=M.useRef(null),s=b.useComposedRefs(t,i),[o,a]=M.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:f}=r,d=M.useCallback(()=>{a(null),f(!1)},[f]),p=M.useCallback((m,g)=>{const y=m.currentTarget,v={x:m.clientX,y:m.clientY},x=a0(v,y.getBoundingClientRect()),w=l0(v,x),E=c0(g.getBoundingClientRect()),T=d0([...w,...E]);a(T),f(!0)},[f]);return M.useEffect(()=>()=>d(),[d]),M.useEffect(()=>{if(l&&u){const m=y=>p(y,u),g=y=>p(y,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",g)}}},[l,u,p,d]),M.useEffect(()=>{if(o){const m=g=>{const y=g.target,v={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(y))||(u==null?void 0:u.contains(y)),w=!u0(v,o);x?d():w&&(d(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,o,c,d]),h.jsx(Nu,{...e,ref:s})}),[i0,s0]=dr(hr,{isInside:!1}),Nu=M.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=pr(Wt,n),c=fr(n),{onClose:u}=l;return M.useEffect(()=>(document.addEventListener(ai,u),()=>document.removeEventListener(ai,u)),[u]),M.useEffect(()=>{if(l.trigger){const f=d=>{const p=d.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),h.jsx(b.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:h.jsxs(b.Content,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(b.Slottable,{children:r}),h.jsx(i0,{scope:n,isInside:!0,children:h.jsx($.Root,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Su.displayName=Wt;var Cu="TooltipArrow",o0=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=fr(n);return s0(Cu,n).isInside?null:h.jsx(b.Arrow,{...i,...r,ref:t})});o0.displayName=Cu;function a0(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function l0(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function c0(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function u0(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s].x,l=t[s].y,c=t[o].x,u=t[o].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(i=!i)}return i}function d0(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),f0(t)}function f0(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var h0=Eu,p0=Tu,m0=_u,Au=Su;const Ko={primary:"bg-main-600 text-white",secondary:"bg-grey-800 text-white",white:"bg-grey-50 text-grey-800"},g0={sm:"p-2 text-[13px] rounded",md:"p-2 text-sm font-normal rounded"},Pu=h0,Ou=p0,Mu=m0,b0=(e,t)=>{const n=t==="primary"?Rt.colors.main[600]:t==="secondary"?Rt.colors.grey[800]:Rt.colors.grey[50],r=t==="white"?Rt.colors.grey[200]:n;return{...{width:"12px",height:"12px",backgroundColor:n,border:"1px solid",borderColor:r,opacity:t==="white"?1:.9,transform:"rotate(45deg)",borderRadius:"2px",zIndex:20},...{"top-left":{left:"1.5rem",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-center":{left:"50%",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-right":{right:"1.5rem",top:"100%",transform:"translateX(50%) translateY(-60%) rotate(45deg)"},"bottom-left":{left:"1.5rem",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-center":{left:"50%",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-right":{right:"1.5rem",bottom:"100%",transform:"translateX(50%) translateY(60%) rotate(45deg)"},right:{right:"100%",top:"50%",transform:"translateX(60%) translateY(-50%) rotate(45deg)"},left:{left:"100%",top:"50%",transform:"translateX(-60%) translateY(-50%) rotate(45deg)"}}[e]}},ss=M.forwardRef(({className:e,variant:t="primary",size:n="pc",position:r="top-center",sideOffset:i=8,icLeft:s,icRight:o,children:a,bubbleTip:l=!0,...c},u)=>{const f=b0(r,t),d=r.startsWith("top"),p=r==="right"||r==="left"?r:d?"top":"bottom",m=r==="right"||r==="left"?"center":r.includes("left")?"start":r.includes("right")?"end":"center";return h.jsx(Au,{ref:u,avoidCollisions:!1,sideOffset:l?i:4,side:p,align:m,style:{zIndex:50},...c,children:h.jsxs("div",{className:b.cn("relative z-50 rounded",l&&"m-1",t==="white"&&"border border-border",Ko[t],e),children:[l&&h.jsx("div",{style:f,className:"absolute z-20"}),h.jsx("div",{className:"absolute inset-0 z-30 rounded bg-white"}),h.jsxs("div",{className:b.cn("relative z-40 flex max-w-sm items-center font-normal",t!=="white"&&"bg-opacity-90",Ko[t],g0[n]),children:[s&&h.jsx("span",{className:"mr-1",children:s}),h.jsx("span",{className:"whitespace-pre-wrap break-keep",children:a}),o&&h.jsx("span",{className:"ml-1",children:o})]})]})})});ss.displayName=Au.displayName;const os=({label:e,variant:t="secondary",size:n="md",children:r,icLeft:i,icRight:s,position:o="top-center",bubbleTip:a=!0,forceMount:l,isMobile:c=Qt})=>{const[u,f]=M.useState(!1),d=M.useRef(null),p=typeof c=="number"?c:3e3,m=()=>{u?f(!1):(f(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>f(!1),p))};return M.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]),h.jsx(Pu,{delayDuration:200,children:h.jsxs(Ou,{delayDuration:200,children:[h.jsx(Mu,{asChild:!0,"data-state":u?"delayed-open":"closed",onMouseLeave:Qt?void 0:()=>f(!1),onMouseEnter:Qt?void 0:()=>f(!0),onClick:Qt?m:void 0,children:r}),h.jsx(ss,{variant:t,size:n,icLeft:i,icRight:s,position:o,forceMount:l||u||void 0,bubbleTip:a,children:e})]})})};function y0(e,t=[]){let n=[];function r(s,o){const a=M.createContext(o),l=n.length;n=[...n,o];function c(f){const{scope:d,children:p,...m}=f,g=(d==null?void 0:d[e][l])||a,y=M.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:y,children:p})}function u(f,d){const p=(d==null?void 0:d[e][l])||a,m=M.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const i=()=>{const s=n.map(o=>M.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return M.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,v0(i,...t)]}function v0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var x0="Toggle",Ru=M.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:i,...s}=e,[o=!1,a]=b.useControllableState({prop:n,onChange:i,defaultProp:r});return h.jsx(b.Primitive.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:b.composeEventHandlers(e.onClick,()=>{e.disabled||a(!o)})})});Ru.displayName=x0;var qt="ToggleGroup",[Du,R0]=y0(qt,[b.createRovingFocusGroupScope]),Iu=b.createRovingFocusGroupScope(),as=S.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const i=r;return h.jsx(w0,{...i,ref:t})}if(n==="multiple"){const i=r;return h.jsx(E0,{...i,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${qt}\``)});as.displayName=qt;var[ku,Lu]=Du(qt),w0=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o,a]=b.useControllableState({prop:n,defaultProp:r,onChange:i});return h.jsx(ku,{scope:e.__scopeToggleGroup,type:"single",value:o?[o]:[],onItemActivate:a,onItemDeactivate:S.useCallback(()=>a(""),[a]),children:h.jsx(ju,{...s,ref:t})})}),E0=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o=[],a]=b.useControllableState({prop:n,defaultProp:r,onChange:i}),l=S.useCallback(u=>a((f=[])=>[...f,u]),[a]),c=S.useCallback(u=>a((f=[])=>f.filter(d=>d!==u)),[a]);return h.jsx(ku,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:l,onItemDeactivate:c,children:h.jsx(ju,{...s,ref:t})})});as.displayName=qt;var[T0,_0]=Du(qt),ju=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:s,dir:o,loop:a=!0,...l}=e,c=Iu(n),u=b.useDirection(o),f={role:"group",dir:u,...l};return h.jsx(T0,{scope:n,rovingFocus:i,disabled:r,children:i?h.jsx(b.Root$1,{asChild:!0,...c,orientation:s,dir:u,loop:a,children:h.jsx(b.Primitive.div,{...f,ref:t})}):h.jsx(b.Primitive.div,{...f,ref:t})})}),Qn="ToggleGroupItem",Bu=S.forwardRef((e,t)=>{const n=Lu(Qn,e.__scopeToggleGroup),r=_0(Qn,e.__scopeToggleGroup),i=Iu(e.__scopeToggleGroup),s=n.value.includes(e.value),o=r.disabled||e.disabled,a={...e,pressed:s,disabled:o},l=S.useRef(null);return r.rovingFocus?h.jsx(b.Item,{asChild:!0,...i,focusable:!o,active:s,ref:l,children:h.jsx(Ho,{...a,ref:t})}):h.jsx(Ho,{...a,ref:t})});Bu.displayName=Qn;var Ho=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...i}=e,s=Lu(Qn,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a=s.type==="single"?o:void 0;return h.jsx(Ru,{...a,...i,ref:t,onPressedChange:l=>{l?s.onItemActivate(r):s.onItemDeactivate(r)}})}),Vu=as,Fu=Bu;const S0=b.cva("inline-flex items-center justify-center gap-1 whitespace-nowrap text-sm font-normal ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none",{variants:{variant:{solid:"disabled:bg-muted disabled:text-muted-foreground disabled:border-muted",outline:"disabled:bg-white disabled:text-muted disabled:border-border"},theme:{primary:"bg-white border border-main-200 text-primary hover:bg-main-100",secondary:"bg-white border border-grey-200 text-secondary hover:bg-grey-100"},size:{xs:"h-8 py-1 px-2 text-sm",sm:"h-9 py-2 px-3 text-sm",md:"h-11 px-3 py-3 text-sm",lg:"h-[52px] px-12 py-[14px] text-base",icon:"h-auto w-auto"},shape:{square:"rounded-lg",rounded:"rounded-full"},checked:{true:"",false:""}},compoundVariants:[{theme:"primary",checked:!0,className:"bg-main-600 border-main-600 text-white hover:bg-main-700 hover:border-main-700"},{theme:"secondary",checked:!0,className:"bg-grey-800 border-grey-800 text-white hover:bg-grey-900 hover:border-grey-900"}],defaultVariants:{theme:"primary",size:"md",shape:"square",checked:!1}}),ls=M.createContext({theme:"primary",size:"md",shape:"square"});ls.displayName="ToggleGroupContext";const cs=M.forwardRef(({className:e,variant:t,theme:n,size:r,shape:i,children:s,...o},a)=>h.jsx(ls.Provider,{value:{theme:n,size:r,shape:i},children:h.jsx(Vu,{ref:a,className:b.cn("flex items-center justify-center gap-1",e),...o,children:s})}));cs.displayName=Vu.displayName;const hn=M.forwardRef(({className:e,checked:t=!1,children:n,...r},i)=>{const s=M.useContext(ls);return h.jsx(Fu,{ref:i,className:b.cn(S0({theme:r.theme||s.theme||"primary",size:r.size||s.size||"md",shape:r.shape||s.shape||"square",variant:r.variant||"outline",checked:t}),e),...r,children:n})});hn.displayName=Fu.displayName;const Uu=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,nullable:a=!0,className:l})=>h.jsx(cs,{type:"single",value:s,onValueChange:c=>{!a&&!c||o(c)},theme:n,size:r,shape:i,className:l,children:e.map(c=>c.tooltip?h.jsx(os,{label:c.tooltip.label,variant:c.tooltip.variant,size:c.tooltip.size,icLeft:c.tooltip.icLeft,icRight:c.tooltip.icRight,position:c.tooltip.position,bubbleTip:c.tooltip.bubbleTip,children:h.jsx(hn,{value:c.value,checked:s===c.value,disabled:c.disabled,variant:t,children:c.label})},c.value):h.jsx(hn,{value:c.value,checked:s===c.value,disabled:c.disabled,variant:t,children:c.label},c.value))}),$u=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,className:a})=>h.jsx(cs,{type:"multiple",value:s,onValueChange:o,theme:n,size:r,shape:i,className:a,children:e.map(l=>l.tooltip?h.jsx(os,{label:l.tooltip.label,variant:l.tooltip.variant,size:l.tooltip.size,icLeft:l.tooltip.icLeft,icRight:l.tooltip.icRight,position:l.tooltip.position,bubbleTip:l.tooltip.bubbleTip,children:h.jsx(hn,{value:l.value,checked:(s||[]).includes(l.value),disabled:l.disabled,variant:t,children:l.label})},l.value):h.jsx(hn,{value:l.value,checked:(s||[]).includes(l.value),disabled:l.disabled,variant:t,children:l.label},l.value))}),N0={Single:Uu,Multiple:$u};exports.AlertDialog=$.AlertDialog;exports.AlertDialogAction=$.AlertDialogAction;exports.AlertDialogCancel=$.AlertDialogCancel;exports.AlertDialogContent=$.AlertDialogContent;exports.AlertDialogDescription=$.AlertDialogDescription;exports.AlertDialogFooter=$.AlertDialogFooter;exports.AlertDialogHeader=$.AlertDialogHeader;exports.AlertDialogOverlay=$.AlertDialogOverlay;exports.AlertDialogPortal=$.AlertDialogPortal;exports.AlertDialogTitle=$.AlertDialogTitle;exports.AlertDialogTrigger=$.AlertDialogTrigger;exports.AlertForm=$.AlertForm;exports.Dialog=$.Dialog;exports.DialogClose=$.DialogClose;exports.DialogContent=$.DialogContent;exports.DialogDescription=$.DialogDescription;exports.DialogFooter=$.DialogFooter;exports.DialogForm=$.DialogForm;exports.DialogHeader=$.DialogHeader;exports.DialogOverlay=$.DialogOverlay;exports.DialogPortal=$.DialogPortal;exports.DialogTitle=$.DialogTitle;exports.DialogTrigger=$.DialogTrigger;exports.ModalForm=$.ModalForm;exports.PortalContainer=$.PortalContainer;exports.Toast=$.Toast;exports.ToastAction=$.ToastAction;exports.ToastClose=$.ToastClose;exports.ToastDescription=$.ToastDescription;exports.ToastForm=$.ToastForm;exports.ToastProvider=$.ToastProvider;exports.ToastTitle=$.ToastTitle;exports.ToastViewport=$.ToastViewport;exports.toastPositionVariants=$.toastPositionVariants;exports.toastVariants=$.toastVariants;exports.Accordion=Zt;exports.CheckboxBooleanFormField=bg;exports.CheckboxGroupFormField=yg;exports.CodeBlock=zl;exports.ContentsCard=Ea;exports.DefaultFormField=vg;exports.DropdownRadioFormField=xg;exports.EventCard=Vd;exports.LoadingCard=Ta;exports.MainBannerImage=fh;exports.MainBannerLoading=El;exports.Multiple=$u;exports.NotionParser=Xx;exports.PremiumCard=hh;exports.RadioFormField=wg;exports.Single=Uu;exports.StringArrayFormField=Eg;exports.StringInputField=Tg;exports.TitleTagCard=gh;exports.ToggleButtonGroup=N0;exports.Tooltip=os;exports.TooltipContent=ss;exports.TooltipProvider=Pu;exports.TooltipRoot=Ou;exports.TooltipTrigger=Mu;exports.UrlFormField=_g;exports.usePortal=Zx;
|
|
15
|
+
`);return s&&s.insertRule(o,0),r},Xn=function(){return Xn=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Xn.apply(this,arguments)},Kx=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},Hx=zx("BeatLoader","50% {transform: scale(0.75);opacity: 0.2} 100% {transform: scale(1);opacity: 1}","beat");function qx(e){var t=e.loading,n=t===void 0?!0:t,r=e.color,i=r===void 0?"#000000":r,s=e.speedMultiplier,o=s===void 0?1:s,a=e.cssOverride,l=a===void 0?{}:a,c=e.size,u=c===void 0?15:c,f=e.margin,d=f===void 0?2:f,p=Kx(e,["loading","color","speedMultiplier","cssOverride","size","margin"]),m=Xn({display:"inherit"},l),g=function(y){return{display:"inline-block",backgroundColor:i,width:Dr(u),height:Dr(u),margin:Dr(d),borderRadius:"100%",animation:"".concat(Hx," ").concat(.7/o,"s ").concat(y%2?"0s":"".concat(.35/o,"s")," infinite linear"),animationFillMode:"both"}};return n?M.createElement("span",Xn({style:m},p),M.createElement("span",{style:g(1)}),M.createElement("span",{style:g(2)}),M.createElement("span",{style:g(3)})):null}const ut=({group:e,depth:t,variant:n="default",isChildrenList:r=!1})=>{const i=ci(n);if(!e||e.length===0)return null;const s=ui(e),o=["list-decimal","list-lower","list-roman"],a=["list-disc","list-square","list-circle"];return s.map((l,c)=>{const u=l.type==="numbered_list"?"ol":"ul",f=l.type==="numbered_list"?o[o.length%t]:a[a.length%t],d=l.type==="numbered_list"?"numbered_list_item":"bulleted_list_item";return l.type==="numbered_list"||l.type==="bulleted_list"?h.jsx(u,{className:b.cn(i.list,f,"rounded-lg not-italic",t===1?"mb-4 space-y-4 p-4 pl-8":"space-y-1 bg-transparent pl-4",r?"bg-transparent p-0 pl-4":"bg-grey-100"),children:l.blocks.map(p=>h.jsxs("li",{className:b.cn(t===1?"text-grey-800 marker:text-grey-800":"text-grey-600 marker:text-main-400",i.listItem),children:[Ke(p,n),p.has_children&&(p.children||[]).length>0&&h.jsx("div",{className:"mt-1",children:(p.children||[]).some(m=>m.type===d)?ut({group:(p.children||[]).filter(m=>m.type===d),depth:t+1,variant:n,isChildrenList:!0}):h.jsx("div",{className:"pl-1 text-grey-600",children:(p.children||[]).map((m,g)=>h.jsx(Zn,{block:m,variant:n,isLast:!0},m.type+m.id+g))})})]},p.type+p.id+c))},l.type+c):h.jsx("div",{children:Ke(l.block,n)},l.block.id||c)})},Yx=(e,t)=>!e||e.length===0?null:e.map((n,r)=>{const{annotations:i,text:s}=n;if(!s)return null;const{bold:o,italic:a,underline:l,strikethrough:c,code:u,color:f,backgroundColor:d}=i,p=b.cn("whitespace-pre-wrap",o&&"font-semibold",a&&"italic",l&&"underline",c&&"line-through",Zu[f]??"",u&&"bg-grey-200 bg-opacity-80 px-1.5 rounded py-0.5 text-red-400",us[d||""]?`${us[d]} bg-opacity-80 px-1.5 rounded py-0.5`:"",t),m=s.link&&s.link.url?h.jsx(te.Anchor,{type:"external",href:s.link.url,className:"text-main-600 underline",children:s.content}):s.content;return typeof m=="string"&&m.length===0?h.jsx("br",{}):h.jsx("span",{className:p,children:m},r)}),Ke=(e,t="default",n=!1,r=null)=>{var f,d,p,m,g,y,v,x,w,E,T,N,B,k,q,X,ue,de,fe,pe,le,be,Z,re,ce,oe,Le,Pe,_,R,W,H,Q,Ae,he,ye,ve,Re,Qe,vt,$e,At,Ge,We,Oe,Pt,Je,z;const i=`${e.type}-block`,s=ci(t),o=((f=e[e.type])==null?void 0:f.rich_text)||"",a=(e==null?void 0:e.children)||[],l=Xo(e,t)&&((d=Jn[t][e.type])==null?void 0:d.className)||"",c=a==null?void 0:a.some(A=>qo.includes(A.type)),u=A=>Yx(A,l);switch(e.type){case"loading":return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.loading),children:h.jsx(qx,{size:8})});case"paragraph":return o&&o.length>0?h.jsx(xe.p,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph,n&&"mb-0"),children:u(((p=e.paragraph)==null?void 0:p.rich_text)||"")}):h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.paragraph),children:" "});case"heading_1":return o&&o.length>0?h.jsx(xe.h1,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading1),children:u(((m=e.heading_1)==null?void 0:m.rich_text)||"")}):null;case"heading_2":return o&&o.length>0?h.jsx(xe.h2,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading2),children:u(((g=e.heading_2)==null?void 0:g.rich_text)||"")}):null;case"heading_3":return o&&o.length>0?h.jsx(xe.h3,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.heading3),children:u(((y=e.heading_3)==null?void 0:y.rich_text)||"")}):null;case"bulleted_list_item":case"numbered_list_item":return o&&o.length>0?h.jsx("span",{className:b.cn(i,s.listItem),children:u(e.type==="bulleted_list_item"?((v=e.bulleted_list_item)==null?void 0:v.rich_text)||"":((x=e.numbered_list_item)==null?void 0:x.rich_text)||"")}):null;case"quote":return o&&o.length>0?h.jsxs(xe.blockquote,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.quote),children:[u(((w=e.quote)==null?void 0:w.rich_text)||""),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t}):e.children.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"quote")},e.type+A.id+L))})]}):null;case"divider":return h.jsx("hr",{className:b.cn(i,s.divider)});case"image":{const A=e.image,L=((E=A==null?void 0:A.file)==null?void 0:E.url)||((T=A==null?void 0:A.external)==null?void 0:T.url),K=Array.isArray(A==null?void 0:A.caption)?A.caption:[];let V={},U=K;if(K.length>0){const j=K[0].plain_text||"";if(j.includes("||")){const[Y,P]=j.split("||").map(I=>I.trim());V=b.parseInlineStyle(P),Y?U=[{...K[0],plain_text:Y,text:{...K[0].text,content:Y}},...K.slice(1)]:U=[]}}return h.jsxs(xe.figure,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"overflow-hidden rounded-lg"),children:[L?h.jsx("div",{style:V,className:s.image,children:h.jsx("img",{src:L,className:"h-full w-full object-cover",alt:((N=U[0])==null?void 0:N.plain_text)||"Image"})}):h.jsx("div",{className:"w-full rounded-lg bg-grey-200 p-4",children:"이미지를 불러올 수 없습니다"}),U.length>0&&h.jsx("figcaption",{className:"mt-2 text-center text-sm text-gray-500",children:u(U)})]})}case"callout":{const A=((k=(B=e.callout)==null?void 0:B.icon)==null?void 0:k.emoji)||null,L=r==="column";return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,L&&"h-full","flex rounded-lg px-4 py-6"),children:[h.jsx("div",{className:"flex-shrink-0",children:h.jsx("div",{className:"flex h-6 w-6 items-center justify-center text-lg md:text-xl",children:A||"💡"})}),h.jsxs("div",{className:"flex flex-col gap-2",children:[o.length>0&&h.jsx("div",{className:"text-base md:text-lg",children:u(o)}),e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t,isChildrenList:c}):e.children.map((K,V)=>h.jsx(S.Fragment,{children:Ke(K,t,!0,"callout")},e.type+K.id+V))})]})]})}case"code":{const A=((q=e.code)==null?void 0:q.rich_text)||[],L=((X=e.code)==null?void 0:X.language)||"plaintext";if(A.length>0&&((ue=A[0].plain_text)!=null&&ue.startsWith("!#btrl"))){const V=[A[1]],U=A.slice(2);let j="mb-2 flex rounded-3xl px-6 py-8";return L==="bash"?j+=" bg-main-100/60":L==="abap"?j+=" border border-border bg-transparent":j+=" bg-grey-100",h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,s.callout,j),children:[h.jsx("span",{className:"break-keep text-lg font-bold md:text-xl",children:u(V)}),h.jsx("span",{className:"mt-[1px] whitespace-pre-wrap break-words text-base md:text-lg",children:u(U)})]})}const K=A.map(V=>V.plain_text).join("")||"";return h.jsx(zl,{code:K,language:L})}case"to_do":{const A=((de=e.to_do)==null?void 0:de.checked)||!1;return o&&o.length>0?h.jsxs("div",{className:b.cn(i,"mb-2 flex items-start gap-2"),children:[h.jsx("input",{type:"checkbox",checked:A,readOnly:!0,className:"mt-1 h-4 w-4 rounded border-gray-300"}),h.jsx("span",{className:b.cn(s.paragraph,A?"text-gray-400 line-through":""),children:u(((fe=e.to_do)==null?void 0:fe.rich_text)||"")})]}):null}case"toggle":return o&&o.length>0?h.jsxs("details",{className:b.cn(i,"group mb-4"),children:[h.jsx("summary",{className:b.cn(s.paragraph,"cursor-pointer"),children:h.jsx("span",{className:"px-1",children:u(((pe=e.toggle)==null?void 0:pe.rich_text)||"")})}),h.jsx("div",{className:"mt-2 pl-4",children:e.children&&e.children.length>0&&h.jsx("div",{className:"space-y-1",children:c?ut({group:e.children,depth:1,variant:t}):e.children.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!0,"toggle")},e.type+A.id+L))})})]}):null;case"table":return h.jsx("div",{className:b.cn(i,"mb-4 overflow-x-auto"),children:h.jsx("table",{className:b.cn(s.table,"min-w-full table-auto"),children:h.jsx("tbody",{children:a.map((A,L)=>{var K,V;return h.jsx("tr",{className:s.tableRow,children:(V=(K=A.table_row)==null?void 0:K.cells)==null?void 0:V.map((U,j)=>{var O,C,J;const Y=((O=e.table)==null?void 0:O.has_column_header)&&L===0,P=((C=e.table)==null?void 0:C.has_row_header)&&j===0,I=Y?"th":"td";return h.jsx(I,{className:b.cn(s.tableCell,"px-4 py-2 align-top",Y?"bg-grey-100 text-left font-semibold":"text-left",P?"bg-grey-100":""),style:{minWidth:"120px",textAlign:"left",wordBreak:"break-word"},children:(J=U||[])==null?void 0:J.map((ze,Ot)=>h.jsx(S.Fragment,{children:u([ze])},Ot))},j)})},A.id||L)})})})});case"bookmark":{const A=((le=e.bookmark)==null?void 0:le.url)||"",{meta:L,loading:K}=Sg(A);return A?h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 block"),children:K?h.jsx("div",{className:"h-24 animate-pulse rounded-md bg-gray-100"}):L?h.jsxs(S.Fragment,{children:[h.jsxs(te.Anchor,{type:"external",href:A,className:"flex h-auto w-full flex-col items-center overflow-hidden rounded-md border border-gray-200 transition-all hover:bg-gray-50 hover:shadow xs:h-24 xs:flex-row lg:h-28",children:[L.image&&h.jsx("div",{className:"aspect-video h-auto w-full flex-shrink-0 rounded-md xs:h-full xs:w-auto",children:h.jsx("img",{src:L.image,alt:L.title,className:"h-full w-full object-cover"})}),h.jsxs("div",{className:"flex flex-col p-4",children:[h.jsx("div",{className:"line-clamp-2 text-sm font-semibold md:text-base",children:L.title}),h.jsx("div",{className:"line-clamp-2 text-sm text-gray-500",children:L.description})]})]}),((Z=(be=e.bookmark)==null?void 0:be.caption)==null?void 0:Z.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:u(e.bookmark.caption)})]}):h.jsxs("div",{className:"mb-4 block rounded-md border border-gray-200 p-4 text-base hover:bg-gray-50",children:[h.jsx(te.Anchor,{type:"external",href:A,children:A}),((ce=(re=e.bookmark)==null?void 0:re.caption)==null?void 0:ce.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:u(e.bookmark.caption)})]})}):null}case"embed":{const A=((oe=e.embed)==null?void 0:oe.url)||"";return h.jsxs("div",{className:b.cn(i,"mb-4"),children:[h.jsx("iframe",{src:A,className:"aspect-[3/4] max-h-[80vh] w-full overflow-hidden rounded-lg shadow-md md:aspect-square lg:aspect-video",title:"Embedded content",allowFullScreen:!0}),((Pe=(Le=e.embed)==null?void 0:Le.caption)==null?void 0:Pe.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-muted",children:u(e.embed.caption)})]})}case"video":{const A=((R=(_=e.video)==null?void 0:_.external)==null?void 0:R.url)||((H=(W=e.video)==null?void 0:W.file)==null?void 0:H.url)||"",L=ed(A);return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:[A?h.jsx("div",{className:"w-full",children:h.jsx("div",{className:"relative aspect-video overflow-hidden",children:h.jsx("iframe",{className:"absolute left-0 top-0 h-full w-full",src:L,title:"YouTube video player",frameBorder:"0",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})}):h.jsx("div",{className:"mb-4 w-full rounded-lg bg-grey-200 p-4",children:"비디오를 불러올 수 없습니다"}),((Ae=(Q=e.video)==null?void 0:Q.caption)==null?void 0:Ae.length)>0&&h.jsx("div",{className:"mt-2 text-sm text-gray-500",children:u(e.video.caption)})]})}case"file":{const A=((ye=(he=e.file)==null?void 0:he.external)==null?void 0:ye.url)||((Re=(ve=e.file)==null?void 0:ve.file)==null?void 0:Re.url)||"",L=A.split("/").pop()||"File";return h.jsxs(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn("mb-4"),children:[h.jsxs(te.Anchor,{type:"external",href:A,className:b.cn(i,"flex flex-col gap-2 rounded-md border border-gray-200 p-3 hover:bg-gray-50"),children:[h.jsxs("span",{className:"flex items-center gap-1 text-sm text-muted",children:[h.jsx(b.Icon.CopyLink,{size:20,fill:Rt.colors.grey[400]}),"클릭하면 파일이 다운로드됩니다 :)"]}),h.jsx("span",{className:"line-clamp-2 break-all text-xs",children:L})]}),((vt=((Qe=e.file)==null?void 0:Qe.caption)||[])==null?void 0:vt.length)>0&&h.jsx("div",{className:"mt-2 text-xs text-grey-500 md:text-sm",children:u(e.file.caption)})]})}case"table_of_contents":return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-4"),children:[h.jsx("div",{className:"mb-2 font-medium",children:"목차"}),h.jsx("div",{className:"text-sm text-gray-600",children:"(목차 내용은 전체 문서 분석 후 생성됩니다)"})]});case"link_preview":case"link_to_page":{const A=(($e=e.link_preview)==null?void 0:$e.url)||((At=e[e.type])==null?void 0:At.url)||"#",L=((Ge=e.link_preview)==null?void 0:Ge.url)||((We=e[e.type])==null?void 0:We.page_id)||"링크";return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4"),children:h.jsx(te.Anchor,{type:"external",href:A,children:L})})}case"child_page":case"child_database":{const A=((Oe=e[e.type])==null?void 0:Oe.title)||"하위 페이지";return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3"),children:[h.jsx("div",{className:"font-medium",children:A}),h.jsx("div",{className:"text-sm text-gray-500",children:e.type==="child_page"?"하위 페이지":"하위 데이터베이스"})]})}case"template":return h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3"),children:[h.jsx("div",{className:"font-medium",children:"템플릿"}),(((Pt=e.template)==null?void 0:Pt.rich_text)||"").length>0&&h.jsx("div",{children:u(((Je=e.template)==null?void 0:Je.rich_text)||"")})]});case"synced_block":return h.jsx("div",{className:b.cn(i,"mb-4"),children:a.map((A,L)=>h.jsx("div",{children:Ke(A,t,!1,"synced_block")},e.type+A.id+L))});case"column_list":return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"mb-4 grid w-full grid-cols-1 gap-0 sm:grid-cols-2 sm:gap-4"),children:a.map((A,L)=>h.jsx("div",{className:"w-full min-w-[150px] flex-1",children:Ke(A,t,!1,"column_list")},e.type+A.id+L))});case"column":return h.jsx(xe.div,{initial:{opacity:0},animate:{opacity:1},className:b.cn(i,"h-auto w-full sm:h-full"),children:a==null?void 0:a.map((A,L)=>h.jsx(S.Fragment,{children:Ke(A,t,!1,"column")},e.type+A.id+L))});case"unsupported":return null;default:return o&&o.length>0?h.jsx("p",{className:b.cn(i,s.paragraph),children:u(((z=e[e.type])==null?void 0:z.rich_text)||"")}):h.jsxs("div",{className:b.cn(i,"mb-4 rounded-md border border-gray-200 p-3 text-sm text-gray-500"),children:["지원되지 않는 블록 타입: ",e.type]})}},Zn=({block:e,accordionHeadings:t=[],variant:n="default",isLast:r=!1})=>{const i=Yo(e,n),s=Ju(e,n),o=Xo(e,n);if(qo.includes(e.type)&&e.children)return ut({group:e.children,depth:1,variant:n});if(i>0){const a=Ke(e,n);if(!a&&(!e.children||e.children.length===0))return null;const l=e.children?ui(e.children):[];return o&&t.includes(e.type)&&l.length>0?h.jsx(Zt.Root,{type:"single",collapsible:!0,className:"w-full bg-white pb-1 md:pb-2 lg:pb-4",children:h.jsxs(Zt.Item,{value:e.id,className:"border-b-main-100",children:[h.jsx(Zt.Trigger,{className:"whitespace-pre-wrap py-2 md:whitespace-normal",children:a}),h.jsx(Zt.Content,{children:l.map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:n})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:n},c.block.id+u))})]})}):h.jsxs(s,{children:[a,l.length>0&&h.jsx("div",{className:"mt-4",children:l.map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:n})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:n},c.block.id+u))})]})}return Ke(e,n,r)},Xx=({blocks:e,accordionHeadings:t=[],className:n,variant:r="default"})=>{const i=Qu(e,r),s=ci(r),o=a=>ui(a).map((c,u)=>c.type==="bulleted_list"||c.type==="numbered_list"?h.jsx(S.Fragment,{children:ut({group:c.blocks,depth:1,variant:r})},c.type+u):h.jsx(Zn,{block:c.block,accordionHeadings:t,variant:r},c.type+u));return h.jsx("div",{className:b.cn(s.container,n),children:o(i)})},Zx=()=>{const[e,t]=S.useState([]);return S.useEffect(()=>{const u=(d,p)=>{t(p?m=>m.includes(d.id)?m:[...m,d.id]:m=>m.filter(g=>g!==d.id))},f=$.portalManager.subscribe(u);return t($.portalManager.getOpenPortals()),()=>{f()}},[]),{modal:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("modal",{...u,onClose:f})},toast:u=>{let f;return typeof u=="string"?f={description:u}:f=u,$.portalManager.showPortal("toast",f)},alert:u=>{let f;return typeof u=="string"?f={description:u,onClose:()=>{}}:f={...u,onClose:u.onClose||(()=>{})},$.portalManager.showPortal("alert",f)},dialog:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("dialog",{...u,onClose:f})},custom:u=>{const{onClose:f=()=>{}}=u;return $.portalManager.showPortal("custom",{...u,onClose:f})},getIsOpen:u=>$.portalManager.getIsPortalOpen(u),closePortal:u=>{$.portalManager.closePortal(u)},closeAllPortals:()=>{$.portalManager.closeAllPortals()},openPortals:e}};var[dr,O0]=b.createContextScope("Tooltip",[b.createPopperScope]),fr=b.createPopperScope(),wu="TooltipProvider",Qx=700,ai="tooltip.open",[Jx,is]=dr(wu),Eu=e=>{const{__scopeTooltip:t,delayDuration:n=Qx,skipDelayDuration:r=300,disableHoverableContent:i=!1,children:s}=e,[o,a]=M.useState(!0),l=M.useRef(!1),c=M.useRef(0);return M.useEffect(()=>{const u=c.current;return()=>window.clearTimeout(u)},[]),h.jsx(Jx,{scope:t,isOpenDelayed:o,delayDuration:n,onOpen:M.useCallback(()=>{window.clearTimeout(c.current),a(!1)},[]),onClose:M.useCallback(()=>{window.clearTimeout(c.current),c.current=window.setTimeout(()=>a(!0),r)},[r]),isPointerInTransitRef:l,onPointerInTransitChange:M.useCallback(u=>{l.current=u},[]),disableHoverableContent:i,children:s})};Eu.displayName=wu;var hr="Tooltip",[e0,pr]=dr(hr),Tu=e=>{const{__scopeTooltip:t,children:n,open:r,defaultOpen:i=!1,onOpenChange:s,disableHoverableContent:o,delayDuration:a}=e,l=is(hr,e.__scopeTooltip),c=fr(t),[u,f]=M.useState(null),d=b.useId(),p=M.useRef(0),m=o??l.disableHoverableContent,g=a??l.delayDuration,y=M.useRef(!1),[v=!1,x]=b.useControllableState({prop:r,defaultProp:i,onChange:B=>{B?(l.onOpen(),document.dispatchEvent(new CustomEvent(ai))):l.onClose(),s==null||s(B)}}),w=M.useMemo(()=>v?y.current?"delayed-open":"instant-open":"closed",[v]),E=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,y.current=!1,x(!0)},[x]),T=M.useCallback(()=>{window.clearTimeout(p.current),p.current=0,x(!1)},[x]),N=M.useCallback(()=>{window.clearTimeout(p.current),p.current=window.setTimeout(()=>{y.current=!0,x(!0),p.current=0},g)},[g,x]);return M.useEffect(()=>()=>{p.current&&(window.clearTimeout(p.current),p.current=0)},[]),h.jsx(b.Root2,{...c,children:h.jsx(e0,{scope:t,contentId:d,open:v,stateAttribute:w,trigger:u,onTriggerChange:f,onTriggerEnter:M.useCallback(()=>{l.isOpenDelayed?N():E()},[l.isOpenDelayed,N,E]),onTriggerLeave:M.useCallback(()=>{m?T():(window.clearTimeout(p.current),p.current=0)},[T,m]),onOpen:E,onClose:T,disableHoverableContent:m,children:n})})};Tu.displayName=hr;var li="TooltipTrigger",_u=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=pr(li,n),s=is(li,n),o=fr(n),a=M.useRef(null),l=b.useComposedRefs(t,a,i.onTriggerChange),c=M.useRef(!1),u=M.useRef(!1),f=M.useCallback(()=>c.current=!1,[]);return M.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),h.jsx(b.Anchor,{asChild:!0,...o,children:h.jsx(b.Primitive.button,{"aria-describedby":i.open?i.contentId:void 0,"data-state":i.stateAttribute,...r,ref:l,onPointerMove:b.composeEventHandlers(e.onPointerMove,d=>{d.pointerType!=="touch"&&!u.current&&!s.isPointerInTransitRef.current&&(i.onTriggerEnter(),u.current=!0)}),onPointerLeave:b.composeEventHandlers(e.onPointerLeave,()=>{i.onTriggerLeave(),u.current=!1}),onPointerDown:b.composeEventHandlers(e.onPointerDown,()=>{c.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:b.composeEventHandlers(e.onFocus,()=>{c.current||i.onOpen()}),onBlur:b.composeEventHandlers(e.onBlur,i.onClose),onClick:b.composeEventHandlers(e.onClick,i.onClose)})})});_u.displayName=li;var t0="TooltipPortal",[M0,n0]=dr(t0,{forceMount:void 0}),Wt="TooltipContent",Su=M.forwardRef((e,t)=>{const n=n0(Wt,e.__scopeTooltip),{forceMount:r=n.forceMount,side:i="top",...s}=e,o=pr(Wt,e.__scopeTooltip);return h.jsx(b.Presence,{present:r||o.open,children:o.disableHoverableContent?h.jsx(Nu,{side:i,...s,ref:t}):h.jsx(r0,{side:i,...s,ref:t})})}),r0=M.forwardRef((e,t)=>{const n=pr(Wt,e.__scopeTooltip),r=is(Wt,e.__scopeTooltip),i=M.useRef(null),s=b.useComposedRefs(t,i),[o,a]=M.useState(null),{trigger:l,onClose:c}=n,u=i.current,{onPointerInTransitChange:f}=r,d=M.useCallback(()=>{a(null),f(!1)},[f]),p=M.useCallback((m,g)=>{const y=m.currentTarget,v={x:m.clientX,y:m.clientY},x=a0(v,y.getBoundingClientRect()),w=l0(v,x),E=c0(g.getBoundingClientRect()),T=d0([...w,...E]);a(T),f(!0)},[f]);return M.useEffect(()=>()=>d(),[d]),M.useEffect(()=>{if(l&&u){const m=y=>p(y,u),g=y=>p(y,l);return l.addEventListener("pointerleave",m),u.addEventListener("pointerleave",g),()=>{l.removeEventListener("pointerleave",m),u.removeEventListener("pointerleave",g)}}},[l,u,p,d]),M.useEffect(()=>{if(o){const m=g=>{const y=g.target,v={x:g.clientX,y:g.clientY},x=(l==null?void 0:l.contains(y))||(u==null?void 0:u.contains(y)),w=!u0(v,o);x?d():w&&(d(),c())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[l,u,o,c,d]),h.jsx(Nu,{...e,ref:s})}),[i0,s0]=dr(hr,{isInside:!1}),Nu=M.forwardRef((e,t)=>{const{__scopeTooltip:n,children:r,"aria-label":i,onEscapeKeyDown:s,onPointerDownOutside:o,...a}=e,l=pr(Wt,n),c=fr(n),{onClose:u}=l;return M.useEffect(()=>(document.addEventListener(ai,u),()=>document.removeEventListener(ai,u)),[u]),M.useEffect(()=>{if(l.trigger){const f=d=>{const p=d.target;p!=null&&p.contains(l.trigger)&&u()};return window.addEventListener("scroll",f,{capture:!0}),()=>window.removeEventListener("scroll",f,{capture:!0})}},[l.trigger,u]),h.jsx(b.DismissableLayer,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:s,onPointerDownOutside:o,onFocusOutside:f=>f.preventDefault(),onDismiss:u,children:h.jsxs(b.Content,{"data-state":l.stateAttribute,...c,...a,ref:t,style:{...a.style,"--radix-tooltip-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-tooltip-content-available-width":"var(--radix-popper-available-width)","--radix-tooltip-content-available-height":"var(--radix-popper-available-height)","--radix-tooltip-trigger-width":"var(--radix-popper-anchor-width)","--radix-tooltip-trigger-height":"var(--radix-popper-anchor-height)"},children:[h.jsx(b.Slottable,{children:r}),h.jsx(i0,{scope:n,isInside:!0,children:h.jsx($.Root,{id:l.contentId,role:"tooltip",children:i||r})})]})})});Su.displayName=Wt;var Cu="TooltipArrow",o0=M.forwardRef((e,t)=>{const{__scopeTooltip:n,...r}=e,i=fr(n);return s0(Cu,n).isInside?null:h.jsx(b.Arrow,{...i,...r,ref:t})});o0.displayName=Cu;function a0(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),i=Math.abs(t.right-e.x),s=Math.abs(t.left-e.x);switch(Math.min(n,r,i,s)){case s:return"left";case i:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}function l0(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n});break}return r}function c0(e){const{top:t,right:n,bottom:r,left:i}=e;return[{x:i,y:t},{x:n,y:t},{x:n,y:r},{x:i,y:r}]}function u0(e,t){const{x:n,y:r}=e;let i=!1;for(let s=0,o=t.length-1;s<t.length;o=s++){const a=t[s].x,l=t[s].y,c=t[o].x,u=t[o].y;l>r!=u>r&&n<(c-a)*(r-l)/(u-l)+a&&(i=!i)}return i}function d0(e){const t=e.slice();return t.sort((n,r)=>n.x<r.x?-1:n.x>r.x?1:n.y<r.y?-1:n.y>r.y?1:0),f0(t)}function f0(e){if(e.length<=1)return e.slice();const t=[];for(let r=0;r<e.length;r++){const i=e[r];for(;t.length>=2;){const s=t[t.length-1],o=t[t.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))t.pop();else break}t.push(i)}t.pop();const n=[];for(let r=e.length-1;r>=0;r--){const i=e[r];for(;n.length>=2;){const s=n[n.length-1],o=n[n.length-2];if((s.x-o.x)*(i.y-o.y)>=(s.y-o.y)*(i.x-o.x))n.pop();else break}n.push(i)}return n.pop(),t.length===1&&n.length===1&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}var h0=Eu,p0=Tu,m0=_u,Au=Su;const Ko={primary:"bg-main-600 text-white",secondary:"bg-grey-800 text-white",white:"bg-grey-50 text-grey-800"},g0={sm:"p-2 text-[13px] rounded",md:"p-2 text-sm font-normal rounded"},Pu=h0,Ou=p0,Mu=m0,b0=(e,t)=>{const n=t==="primary"?Rt.colors.main[600]:t==="secondary"?Rt.colors.grey[800]:Rt.colors.grey[50],r=t==="white"?Rt.colors.grey[200]:n;return{...{width:"12px",height:"12px",backgroundColor:n,border:"1px solid",borderColor:r,opacity:t==="white"?1:.9,transform:"rotate(45deg)",borderRadius:"2px",zIndex:20},...{"top-left":{left:"1.5rem",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-center":{left:"50%",top:"100%",transform:"translateX(-50%) translateY(-60%) rotate(45deg)"},"top-right":{right:"1.5rem",top:"100%",transform:"translateX(50%) translateY(-60%) rotate(45deg)"},"bottom-left":{left:"1.5rem",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-center":{left:"50%",bottom:"100%",transform:"translateX(-50%) translateY(60%) rotate(45deg)"},"bottom-right":{right:"1.5rem",bottom:"100%",transform:"translateX(50%) translateY(60%) rotate(45deg)"},right:{right:"100%",top:"50%",transform:"translateX(60%) translateY(-50%) rotate(45deg)"},left:{left:"100%",top:"50%",transform:"translateX(-60%) translateY(-50%) rotate(45deg)"}}[e]}},ss=M.forwardRef(({className:e,variant:t="primary",size:n="pc",position:r="top-center",sideOffset:i=8,icLeft:s,icRight:o,children:a,bubbleTip:l=!0,...c},u)=>{const f=b0(r,t),d=r.startsWith("top"),p=r==="right"||r==="left"?r:d?"top":"bottom",m=r==="right"||r==="left"?"center":r.includes("left")?"start":r.includes("right")?"end":"center";return h.jsx(Au,{ref:u,avoidCollisions:!1,sideOffset:l?i:4,side:p,align:m,style:{zIndex:50},...c,children:h.jsxs("div",{className:b.cn("relative z-50 rounded",l&&"m-1",t==="white"&&"border border-border",Ko[t],e),children:[l&&h.jsx("div",{style:f,className:"absolute z-20"}),h.jsx("div",{className:"absolute inset-0 z-30 rounded bg-white"}),h.jsxs("div",{className:b.cn("relative z-40 flex max-w-sm items-center font-normal",t!=="white"&&"bg-opacity-90",Ko[t],g0[n]),children:[s&&h.jsx("span",{className:"mr-1",children:s}),h.jsx("span",{className:"whitespace-pre-wrap break-keep",children:a}),o&&h.jsx("span",{className:"ml-1",children:o})]})]})})});ss.displayName=Au.displayName;const os=({label:e,variant:t="secondary",size:n="md",children:r,icLeft:i,icRight:s,position:o="top-center",bubbleTip:a=!0,forceMount:l,isMobile:c=Qt})=>{const[u,f]=M.useState(!1),d=M.useRef(null),p=typeof c=="number"?c:3e3,m=()=>{u?f(!1):(f(!0),d.current&&clearTimeout(d.current),d.current=setTimeout(()=>f(!1),p))};return M.useEffect(()=>()=>{d.current&&clearTimeout(d.current)},[]),h.jsx(Pu,{delayDuration:200,children:h.jsxs(Ou,{delayDuration:200,children:[h.jsx(Mu,{asChild:!0,"data-state":u?"delayed-open":"closed",onMouseLeave:Qt?void 0:()=>f(!1),onMouseEnter:Qt?void 0:()=>f(!0),onClick:Qt?m:void 0,children:r}),h.jsx(ss,{variant:t,size:n,icLeft:i,icRight:s,position:o,forceMount:l||u||void 0,bubbleTip:a,children:e})]})})};function y0(e,t=[]){let n=[];function r(s,o){const a=M.createContext(o),l=n.length;n=[...n,o];function c(f){const{scope:d,children:p,...m}=f,g=(d==null?void 0:d[e][l])||a,y=M.useMemo(()=>m,Object.values(m));return h.jsx(g.Provider,{value:y,children:p})}function u(f,d){const p=(d==null?void 0:d[e][l])||a,m=M.useContext(p);if(m)return m;if(o!==void 0)return o;throw new Error(`\`${f}\` must be used within \`${s}\``)}return c.displayName=s+"Provider",[c,u]}const i=()=>{const s=n.map(o=>M.createContext(o));return function(a){const l=(a==null?void 0:a[e])||s;return M.useMemo(()=>({[`__scope${e}`]:{...a,[e]:l}}),[a,l])}};return i.scopeName=e,[r,v0(i,...t)]}function v0(...e){const t=e[0];if(e.length===1)return t;const n=()=>{const r=e.map(i=>({useScope:i(),scopeName:i.scopeName}));return function(s){const o=r.reduce((a,{useScope:l,scopeName:c})=>{const f=l(s)[`__scope${c}`];return{...a,...f}},{});return M.useMemo(()=>({[`__scope${t.scopeName}`]:o}),[o])}};return n.scopeName=t.scopeName,n}var x0="Toggle",Ru=M.forwardRef((e,t)=>{const{pressed:n,defaultPressed:r=!1,onPressedChange:i,...s}=e,[o=!1,a]=b.useControllableState({prop:n,onChange:i,defaultProp:r});return h.jsx(b.Primitive.button,{type:"button","aria-pressed":o,"data-state":o?"on":"off","data-disabled":e.disabled?"":void 0,...s,ref:t,onClick:b.composeEventHandlers(e.onClick,()=>{e.disabled||a(!o)})})});Ru.displayName=x0;var qt="ToggleGroup",[Du,R0]=y0(qt,[b.createRovingFocusGroupScope]),Iu=b.createRovingFocusGroupScope(),as=S.forwardRef((e,t)=>{const{type:n,...r}=e;if(n==="single"){const i=r;return h.jsx(w0,{...i,ref:t})}if(n==="multiple"){const i=r;return h.jsx(E0,{...i,ref:t})}throw new Error(`Missing prop \`type\` expected on \`${qt}\``)});as.displayName=qt;var[ku,Lu]=Du(qt),w0=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o,a]=b.useControllableState({prop:n,defaultProp:r,onChange:i});return h.jsx(ku,{scope:e.__scopeToggleGroup,type:"single",value:o?[o]:[],onItemActivate:a,onItemDeactivate:S.useCallback(()=>a(""),[a]),children:h.jsx(ju,{...s,ref:t})})}),E0=S.forwardRef((e,t)=>{const{value:n,defaultValue:r,onValueChange:i=()=>{},...s}=e,[o=[],a]=b.useControllableState({prop:n,defaultProp:r,onChange:i}),l=S.useCallback(u=>a((f=[])=>[...f,u]),[a]),c=S.useCallback(u=>a((f=[])=>f.filter(d=>d!==u)),[a]);return h.jsx(ku,{scope:e.__scopeToggleGroup,type:"multiple",value:o,onItemActivate:l,onItemDeactivate:c,children:h.jsx(ju,{...s,ref:t})})});as.displayName=qt;var[T0,_0]=Du(qt),ju=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,disabled:r=!1,rovingFocus:i=!0,orientation:s,dir:o,loop:a=!0,...l}=e,c=Iu(n),u=b.useDirection(o),f={role:"group",dir:u,...l};return h.jsx(T0,{scope:n,rovingFocus:i,disabled:r,children:i?h.jsx(b.Root$1,{asChild:!0,...c,orientation:s,dir:u,loop:a,children:h.jsx(b.Primitive.div,{...f,ref:t})}):h.jsx(b.Primitive.div,{...f,ref:t})})}),Qn="ToggleGroupItem",Bu=S.forwardRef((e,t)=>{const n=Lu(Qn,e.__scopeToggleGroup),r=_0(Qn,e.__scopeToggleGroup),i=Iu(e.__scopeToggleGroup),s=n.value.includes(e.value),o=r.disabled||e.disabled,a={...e,pressed:s,disabled:o},l=S.useRef(null);return r.rovingFocus?h.jsx(b.Item,{asChild:!0,...i,focusable:!o,active:s,ref:l,children:h.jsx(Ho,{...a,ref:t})}):h.jsx(Ho,{...a,ref:t})});Bu.displayName=Qn;var Ho=S.forwardRef((e,t)=>{const{__scopeToggleGroup:n,value:r,...i}=e,s=Lu(Qn,n),o={role:"radio","aria-checked":e.pressed,"aria-pressed":void 0},a=s.type==="single"?o:void 0;return h.jsx(Ru,{...a,...i,ref:t,onPressedChange:l=>{l?s.onItemActivate(r):s.onItemDeactivate(r)}})}),Vu=as,Fu=Bu;const S0=b.cva("inline-flex items-center justify-center gap-1 whitespace-nowrap text-sm font-normal ring-offset-background transition-all focus-visible:outline-none disabled:pointer-events-none",{variants:{variant:{solid:"disabled:bg-muted disabled:text-muted-foreground disabled:border-muted",outline:"disabled:bg-white disabled:text-muted disabled:border-border"},theme:{primary:"bg-white border border-main-200 text-primary hover:bg-main-100",secondary:"bg-white border border-grey-200 text-secondary hover:bg-grey-100"},size:{xs:"h-8 py-1 px-2 text-sm",sm:"h-9 py-2 px-3 text-sm",md:"h-11 px-3 py-3 text-sm",lg:"h-[52px] px-12 py-[14px] text-base",icon:"h-auto w-auto"},shape:{square:"rounded-lg",rounded:"rounded-full"},checked:{true:"",false:""}},compoundVariants:[{theme:"primary",checked:!0,className:"bg-main-600 border-main-600 text-white hover:bg-main-700 hover:border-main-700"},{theme:"secondary",checked:!0,className:"bg-grey-800 border-grey-800 text-white hover:bg-grey-900 hover:border-grey-900"}],defaultVariants:{theme:"primary",size:"md",shape:"square",checked:!1}}),ls=M.createContext({theme:"primary",size:"md",shape:"square"});ls.displayName="ToggleGroupContext";const cs=M.forwardRef(({className:e,variant:t,theme:n,size:r,shape:i,children:s,...o},a)=>h.jsx(ls.Provider,{value:{theme:n,size:r,shape:i},children:h.jsx(Vu,{ref:a,className:b.cn("flex items-center justify-center gap-1",e),...o,children:s})}));cs.displayName=Vu.displayName;const hn=M.forwardRef(({className:e,checked:t=!1,children:n,...r},i)=>{const s=M.useContext(ls);return h.jsx(Fu,{ref:i,className:b.cn(S0({theme:r.theme||s.theme||"primary",size:r.size||s.size||"md",shape:r.shape||s.shape||"square",variant:r.variant||"outline",checked:t}),e),...r,children:n})});hn.displayName=Fu.displayName;const Uu=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,nullable:a=!0,className:l})=>h.jsx(cs,{type:"single",value:s,onValueChange:c=>{!a&&!c||o(c)},theme:n,size:r,shape:i,className:l,children:e.map(c=>c.tooltip?h.jsx(os,{label:c.tooltip.label,variant:c.tooltip.variant,size:c.tooltip.size,icLeft:c.tooltip.icLeft,icRight:c.tooltip.icRight,position:c.tooltip.position,bubbleTip:c.tooltip.bubbleTip,children:h.jsx(hn,{value:c.value,checked:s===c.value,disabled:c.disabled,variant:t,children:c.label})},c.value):h.jsx(hn,{value:c.value,checked:s===c.value,disabled:c.disabled,variant:t,children:c.label},c.value))}),$u=({options:e,variant:t="outline",theme:n="primary",size:r="md",shape:i="square",value:s,onChange:o,className:a})=>h.jsx(cs,{type:"multiple",value:s,onValueChange:o,theme:n,size:r,shape:i,className:a,children:e.map(l=>l.tooltip?h.jsx(os,{label:l.tooltip.label,variant:l.tooltip.variant,size:l.tooltip.size,icLeft:l.tooltip.icLeft,icRight:l.tooltip.icRight,position:l.tooltip.position,bubbleTip:l.tooltip.bubbleTip,children:h.jsx(hn,{value:l.value,checked:(s||[]).includes(l.value),disabled:l.disabled,variant:t,children:l.label})},l.value):h.jsx(hn,{value:l.value,checked:(s||[]).includes(l.value),disabled:l.disabled,variant:t,children:l.label},l.value))}),N0={Single:Uu,Multiple:$u};exports.AlertDialog=$.AlertDialog;exports.AlertDialogAction=$.AlertDialogAction;exports.AlertDialogCancel=$.AlertDialogCancel;exports.AlertDialogContent=$.AlertDialogContent;exports.AlertDialogDescription=$.AlertDialogDescription;exports.AlertDialogFooter=$.AlertDialogFooter;exports.AlertDialogHeader=$.AlertDialogHeader;exports.AlertDialogOverlay=$.AlertDialogOverlay;exports.AlertDialogPortal=$.AlertDialogPortal;exports.AlertDialogTitle=$.AlertDialogTitle;exports.AlertDialogTrigger=$.AlertDialogTrigger;exports.AlertForm=$.AlertForm;exports.Dialog=$.Dialog;exports.DialogClose=$.DialogClose;exports.DialogContent=$.DialogContent;exports.DialogDescription=$.DialogDescription;exports.DialogFooter=$.DialogFooter;exports.DialogForm=$.DialogForm;exports.DialogHeader=$.DialogHeader;exports.DialogOverlay=$.DialogOverlay;exports.DialogPortal=$.DialogPortal;exports.DialogTitle=$.DialogTitle;exports.DialogTrigger=$.DialogTrigger;exports.ModalForm=$.ModalForm;exports.PortalContainer=$.PortalContainer;exports.Toast=$.Toast;exports.ToastAction=$.ToastAction;exports.ToastClose=$.ToastClose;exports.ToastDescription=$.ToastDescription;exports.ToastForm=$.ToastForm;exports.ToastProvider=$.ToastProvider;exports.ToastTitle=$.ToastTitle;exports.ToastViewport=$.ToastViewport;exports.toastPositionVariants=$.toastPositionVariants;exports.toastVariants=$.toastVariants;exports.Accordion=Zt;exports.CheckboxBooleanFormField=bg;exports.CheckboxGroupFormField=yg;exports.CodeBlock=zl;exports.ContentsCard=Ea;exports.DefaultFormField=vg;exports.DropdownRadioFormField=xg;exports.EventCard=Vd;exports.LoadingCard=Ta;exports.MainBannerImage=fh;exports.MainBannerLoading=El;exports.Multiple=$u;exports.NotionParser=Xx;exports.PremiumCard=hh;exports.RadioFormField=wg;exports.Single=Uu;exports.StringArrayFormField=Eg;exports.StringInputField=Tg;exports.TitleTagCard=gh;exports.ToggleButtonGroup=N0;exports.Tooltip=os;exports.TooltipContent=ss;exports.TooltipProvider=Pu;exports.TooltipRoot=Ou;exports.TooltipTrigger=Mu;exports.UrlFormField=_g;exports.usePortal=Zx;
|