(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4413],{61683:function(e,t,r){"use strict";r.d(t,{S:function(){return V},V:function(){return G}});var n=r(22470),o=r(67294),i=r(57849),a=r(94044),s=r(58499),l=(r(36380),r(43125)),c=r(47440),u=r(93867),p=r(36308),f=r(10917),d=r(51905),h=r(22078),m=r(86496),g=r(37462),v=r(6318),b=r(76623),y=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{var{size:t=24,color:r=b.SQ}=e,n=y(e,["size","color"]);return o.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 24 24",fill:"none"},n),o.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.99935 5.99967L10.666 5.33301H13.3327L13.9993 5.99967H16.666C17.066 5.99967 17.3327 6.26634 17.3327 6.66634C17.3327 7.06634 17.066 7.33301 16.666 7.33301H15.3327H8.66602H7.33268C6.93268 7.33301 6.66602 7.06634 6.66602 6.66634C6.66602 6.26634 6.93268 5.99967 7.33268 5.99967H9.99935ZM7.33268 17.333V8.66634H16.666V17.333C16.666 18.0663 16.066 18.6663 15.3327 18.6663H8.66602C7.93268 18.6663 7.33268 18.0663 7.33268 17.333ZM10.666 10.6663C10.666 10.2663 10.3993 9.99967 9.99935 9.99967C9.59935 9.99967 9.33268 10.2663 9.33268 10.6663V16.6663C9.33268 17.0663 9.59935 17.333 9.99935 17.333C10.3993 17.333 10.666 17.0663 10.666 16.6663V10.6663ZM14.666 10.6663C14.666 10.2663 14.3993 9.99967 13.9993 9.99967C13.5993 9.99967 13.3327 10.2663 13.3327 10.6663V16.6663C13.3327 17.0663 13.5993 17.333 13.9993 17.333C14.3993 17.333 14.666 17.0663 14.666 16.6663V10.6663Z",fill:r}))},x=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{var{size:t=24,color:r=b.SK,isSolid:n}=e,i=x(e,["size","color","isSolid"]);return n?o.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 18 18",fill:"none"},i),o.createElement("path",{d:"m6.308 15.887-1.037-1.744-1.961-.421a.62.62 0 0 1-.404-.265.658.658 0 0 1-.12-.47l.192-2.017-1.334-1.526A.626.626 0 0 1 1.47 9c0-.173.057-.321.173-.444L2.978 7.03l-.192-2.018a.659.659 0 0 1 .12-.469.62.62 0 0 1 .404-.265l1.961-.421 1.037-1.744a.686.686 0 0 1 .37-.303.632.632 0 0 1 .474.024L9 2.616l1.849-.782a.632.632 0 0 1 .475-.024.686.686 0 0 1 .369.303l1.037 1.744 1.961.42a.62.62 0 0 1 .403.266c.1.144.141.3.12.469l-.191 2.018 1.334 1.526a.626.626 0 0 1 .173.444.626.626 0 0 1-.173.444l-1.334 1.526.192 2.018a.658.658 0 0 1-.12.469.62.62 0 0 1-.404.265l-1.961.421-1.037 1.744a.686.686 0 0 1-.37.303.632.632 0 0 1-.474-.025l-1.849-.781-1.85.781a.632.632 0 0 1-.474.025.686.686 0 0 1-.369-.303Zm1.905-6.088L6.996 8.593a.537.537 0 0 0-.386-.16.542.542 0 0 0-.404.172.538.538 0 0 0-.163.395c0 .155.054.286.163.395l1.533 1.533a.65.65 0 0 0 .474.204.65.65 0 0 0 .475-.204l3.108-3.108a.529.529 0 0 0 .165-.392.577.577 0 0 0-.165-.398.573.573 0 0 0-.4-.18.531.531 0 0 0-.402.168l-2.78 2.78Z",fill:r})):o.createElement("svg",Object.assign({width:t,height:t,viewBox:"0 0 18 18",fill:"none"},i),o.createElement("path",{d:"m6.308 15.887-1.037-1.744-1.961-.421a.62.62 0 0 1-.404-.265.658.658 0 0 1-.12-.47l.192-2.017-1.334-1.526A.626.626 0 0 1 1.47 9c0-.173.057-.321.173-.444L2.978 7.03l-.192-2.018a.659.659 0 0 1 .12-.469.62.62 0 0 1 .404-.265l1.961-.421 1.037-1.744a.686.686 0 0 1 .37-.303.632.632 0 0 1 .474.024L9 2.616l1.849-.782a.632.632 0 0 1 .475-.024.686.686 0 0 1 .369.303l1.037 1.744 1.961.42a.62.62 0 0 1 .403.266c.1.144.141.3.12.469l-.191 2.018 1.334 1.526a.626.626 0 0 1 .173.444.626.626 0 0 1-.173.444l-1.334 1.526.192 2.018a.658.658 0 0 1-.12.469.62.62 0 0 1-.404.265l-1.961.421-1.037 1.744a.686.686 0 0 1-.37.303.632.632 0 0 1-.474-.025l-1.849-.781-1.85.781a.632.632 0 0 1-.474.025.686.686 0 0 1-.369-.303Zm.78-.925 1.913-.81 1.936.81 1.064-1.8 2.062-.473-.187-2.114L15.263 9l-1.387-1.598.187-2.115-2.062-.45-1.088-1.8-1.912.81-1.936-.81-1.064 1.8-2.063.45.188 2.115L2.738 9l1.388 1.575-.188 2.137 2.063.45 1.087 1.8ZM8.213 9.8 6.996 8.593a.537.537 0 0 0-.386-.16.542.542 0 0 0-.404.172.538.538 0 0 0-.163.395c0 .155.054.286.163.395l1.533 1.533a.65.65 0 0 0 .474.204.65.65 0 0 0 .475-.204l3.108-3.108a.529.529 0 0 0 .165-.392.577.577 0 0 0-.165-.398.573.573 0 0 0-.4-.18.531.531 0 0 0-.402.168l-2.78 2.78Z",fill:r}))},C=r(95954),w=r(89981),S=r(28833),E=r(37699),A=r(83129),M=r(62867),O=r(68866);u.Z.div` position: relative; margin-bottom: 24px; background: white; border-radius: ${f.r.borderRadius}; a { text-decoration: none; } ${p.M.mbDown} { margin-bottom: 8px; } &.flat-top { border-top-left-radius: 0; border-top-right-radius: 0; } .post-pin { padding: 0.5rem 1rem; border-radius: ${f.r.borderRadius} 6px 0 0; } .post-author { display: flex; align-items: center; justify-content: space-between; &.comment { padding-right: 2.6rem; } .author-avatar-wrapper { width: 40px; height: 40px; font-size: 20px; ${p.M.mbDown} { width: 32px; height: 32px; font-size: 16px; } } } .post-content-link-wrapper { color: inherit; cursor: pointer; .post-content-title { padding: 1rem 1rem 0; word-break: break-word; } } .social-preview-wrapper.has-image { margin-bottom: 5px; } .social-preview-wrapper, .image-preview-wrapper, .link-preview-wrapper { width: 100%; &[data-is-reply='true'] { padding-right: 1rem; padding-left: 1rem; } } .post-topics { padding: 0 1rem; } .post-reaction { background: none; border-radius: 0 0 6px 6px; &.hide-top-border { ::before { display: none; } } } .most-engaging-wrapper { padding: 1rem; cursor: pointer; .author-avatar-wrapper { width: 2rem; height: 2rem; font-size: 1rem; } .see-more-comments { width: 100%; padding: 12px 0 0; text-align: unset; } } &[data-most-engaging='true'] { border: none; ${p.M.mbDown} { margin: 1rem; border: 1px solid #e4e8ec; } } .top-divider { border-color: #e4e8ec; } .popover { .popover-menu__btn { display: flex; width: 1.5rem; height: 1rem; align-items: center; justify-content: center; padding: 0; background: transparent; &:hover { background-color: transparent; } } .popover-menu__content { &.--position-bottom { &.--align-end { &::before { right: 12.5px; } } } } } &[data-is-marrybaby='true'] { border: 1px solid #f3f3f3; border-radius: 1rem; /* shadow */ box-shadow: 0px 1px 3px rgba(0, 0, 0, 0.08); .image-preview-wrapper, .link-preview-wrapper { padding-right: 1rem; padding-left: 1rem; } .popover { .popover-menu__btn { width: 24px; height: 24px; ${p.M.mbDown} { width: 18px; height: 18px; } } .popover-menu__content { &.--position-bottom { &.--align-end { &::before { right: 1rem; } width: 350px; ${p.M.mbDown} { max-width: calc(320px - 2rem); } } } } } .most-engaging-wrapper { position: relative; padding: 0; &::before { position: absolute; z-index: 5; top: 0; left: 50%; width: calc(100% - 2rem); height: 1px; background: #f3f3f3; content: ' '; transform: translateX(-50%); } } ${p.M.mbDown} { margin-bottom: 12px; } } `;const R=u.Z.div` .add-link { color: ${f.r.colors.primaryBase}; } `,I=u.Z.div` margin: 16px 0; background: ${f.r.colors.yellow50}; padding: 5px 10px; border-radius: 2px; .icon { display: inline-block; vertical-align: middle; margin-right: 6px; } `,z=u.Z.div` display: flex; align-items: center; gap: 8px; `,N=u.Z.div` padding: 8px 16px; `,j=u.Z.div` margin-bottom: 12px; width: 100%; `,T=u.Z.div``,P=u.Z.div` margin-bottom: 16px; `,$=u.Z.div` display: flex; flex-wrap: wrap; row-gap: 16px; ${p.M.tdUp} { align-items: center; column-gap: 24px; } `,L=u.Z.a` display: flex; align-items: center; gap: 16px; ${p.M.mbDown} { width: 100%; justify-content: space-between; } `,q=u.Z.div` display: flex; align-items: center; gap: 16px; `,B=u.Z.div` border-radius: ${f.r.borderRadius}; overflow: hidden; width: 48px; height: 48px; img { object-fit: cover; width: 100%; height: 100%; } `,Z=({categories:e})=>{const{t:t}=(0,s.u)(),{data:{locale:r,env:{isMarryBaby:n}}}=(0,o.useContext)(c.T),i=(0,O.g)(r,n);return o.createElement(T,null,o.createElement(P,null,o.createElement(a.H,{tag:"h6",as:"h5"},t("cardReply.recommentCategories.heading"))),o.createElement($,null,e.map((e=>o.createElement(L,{href:i+e.permalink,key:String(e.termId),target:"_blank"},o.createElement(q,null,o.createElement(B,null,o.createElement("img",{src:e.featureImage||l.C.getAssetPath(n?"mb-logo.svg":"/logo/logomark.png"),alt:e.displayName,loading:"lazy"})),o.createElement(A.T,{size:"s3",weight:"bold"},e.displayName)),o.createElement(C.Z,{size:20,color:f.r.colors.gray400}))))))},H=u.Z.a` padding: 12px 0; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid ${f.r.colors.neutral100}; text-decoration: none; &:first-child { border-top: 0; } `,D=({postTitle:e,articleReviewed:t,modifiedTime:r,href:n})=>{const{t:i}=(0,s.u)(),a=(()=>{const{expert:e,editor:r,is_author:n}=t;if(e){const t={name:e.display_name,role:"expert",avatar:e.avatar};return n?Object.assign({title:i("articleAuthor.title.written-by")},t):"expert"===e.role?Object.assign({title:i("articleAuthor.title.expert")},t):Object.assign({title:i("articleAuthor.title.medical")},t)}if(r)return{title:i("articleAuthor.title.fact-check"),name:r.display_name,avatar:r.avatar}})();return o.createElement(H,{href:n,title:e,target:"_blank"},o.createElement(A.T,{size:"s3",as:"h5",weight:"bold"},e),o.createElement("div",null,o.createElement(m.C,{avatar:null===a||void 0===a?void 0:a.avatar,avatarProps:{size:32},name:null===a||void 0===a?void 0:a.name,role:null===a||void 0===a?void 0:a.role,hideBackground:!0},o.createElement(m.C.SubTextRow,null,o.createElement(m.C.SubText,null,null===a||void 0===a?void 0:a.title," ",o.createElement("span",{style:{color:f.r.colors.gray800}},null===a||void 0===a?void 0:a.name)),o.createElement(m.C.SubDivider,null),o.createElement(m.C.SubText,null,r)))))};var F="F4mmgSy",U="A7QrQ7A";const V=e=>{var{listUrl:t,hideSourceList:r,categorySlug:u,editMode:p,collapseSource:m,onListChange:g,isMarryBaby:b}=e,y=(0,n._)(e,["listUrl","hideSourceList","categorySlug","editMode","collapseSource","onListChange","isMarryBaby"]);const{t:x}=(0,s.u)(),[_,C]=(0,o.useState)(t||[]),[O,T]=(0,o.useState)([]),[P,$]=(0,o.useState)([]),[L,q]=(0,o.useState)(!1);(0,o.useEffect)((()=>{!r&&(0,n.a)(void 0,void 0,void 0,(function*(){q(!0);const e=_.map((e=>{const t=new URL(e),r=String(t.pathname).split("/").filter((e=>""!=e));return{isMarrySite:-1!==t.origin.search("marrybaby.vn"),path:r[r.length-1],href:e}})),t=[...e.map((e=>(0,c.c)(e.isMarrySite?(0,c.s)(h.D9.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0):(0,c.o)(h.D9.GET_PREVIEW_ARTICLE,{fullSlug:e.path},!0),"GET")))],r=yield Promise.all(t);T(r.map(((t,r)=>{var n,o;return(null===(n=null===t||void 0===t?void 0:t.data)||void 0===n?void 0:n.post)&&Object.assign(Object.assign({},(0,d.g)(null===(o=null===t||void 0===t?void 0:t.data)||void 0===o?void 0:o.post)),{href:e[r].href})})).filter(Boolean)),q(!1)}))}),[]),(0,o.useEffect)((()=>{!r&&0===(null===O||void 0===O?void 0:O.length)&&u&&(0,n.a)(void 0,void 0,void 0,(function*(){var e;const t=yield(0,c.c)(b?(0,c.s)(h.D9.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:u},!0):(0,c.o)(h.D9.GET_CATEGORY_OR_ARTICLE_DETAIL,{fullSlug:u},!0),"GET");(null===t||void 0===t?void 0:t.data)&&$([(0,d.h)(null===(e=null===t||void 0===t?void 0:t.data)||void 0===e?void 0:e.category)])}))}),[O]);return(0,o.useEffect)((()=>{null===g||void 0===g||g(_)}),[_]),o.createElement("div",Object.assign({},y),!p&&o.createElement(I,null,o.createElement("img",{className:"icon",src:l.C.getAssetPath("warning.svg"),alt:"warning",style:{marginBottom:"3px",width:"18px"},loading:"lazy"}),o.createElement(A.T,{size:"s3",as:"span",dangerouslySetInnerHTML:{__html:x("cardReply.disclaimer")}})),r?null:L?o.createElement(M.L,null):O.length>0||p?o.createElement(R,null,o.createElement(S.U,{defaultValue:!m&&"accordion",styles:{control:{borderRadius:"inherit",'&[aria-expanded="false"]':{borderBottom:0}},chevron:{width:"32px",height:"32px"},content:{padding:0,borderBottom:0,borderTop:`1px solid ${f.r.colors.neutral100}`},item:{marginBottom:"16px",borderTopLeftRadius:"8px",borderTopRightRadius:"8px",border:`1px solid ${f.r.colors.neutral100}`,borderBottomLeftRadius:"8px",borderBottomRightRadius:"8px","&[data-active]":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},chevron:o.createElement("div",{className:U},o.createElement(w.Z,{color:f.r.colors.gray600,size:20}))},o.createElement(S.U.Item,{value:"accordion"},o.createElement(S.U.Control,null,o.createElement("div",{className:F},o.createElement(a.H,{as:"h4",tag:"h6"},x("cardReply.source")))),o.createElement(S.U.Panel,null,o.createElement(N,null,(O||[]).map(((e,t)=>o.createElement(z,{key:String(t)},"object"===typeof e?o.createElement(D,Object.assign({},e)):o.createElement(j,null,o.createElement(E.I,{style:{width:"100%"},name:"source-list",value:e||"",size:"sm",onChange:e=>{C((r=>{const n=[...r];return n[t]=e,n})),T((r=>{const n=[...r];return n[t]=e,n}))}})),p&&o.createElement(i.B,{size:"md",color:"transparent",icon:o.createElement(k,null),onClick:()=>(e=>{C((t=>{const r=[...t];return r.splice(e,1),r})),T((t=>{const r=[...t];return r.splice(e,1),r}))})(t)})))),p&&o.createElement(i.B,{className:"add-link",color:"transparent",size:"md",icon:o.createElement(v.Z,{color:f.r.colors.primaryBase,size:18}),onClick:()=>{C((e=>[...e,""])),T((e=>[...e,""]))}},"Add source")))))):o.createElement(Z,{categories:P}))};u.Z.div` position: relative; margin-bottom: 0; background: white; border-radius: ${f.r.borderRadius}; .verify-tag { margin-top: 12px; } .post-author { &.with-popover { padding-right: 2.6rem; } .author-avatar-wrapper { width: 40px; height: 40px; font-size: 20px; ${p.M.mbDown} { width: 32px; height: 32px; font-size: 16px; } } } .image-preview-wrapper, .link-preview-wrapper { width: 100%; &[data-is-reply='true'] { padding-right: 1rem; padding-left: 1rem; } } .post-reaction { background: none; border-radius: 0 0 6px 6px; } &[data-is-reply='true'] { > .post-author .author-avatar-wrapper { width: 20px; height: 20px; font-size: 10px; } } &[data-is-reply='false'] { border: 1px solid #e4e8ec; } .expert-wrapper { width: 100%; } &[data-has-booking='true'] { display: grid; .post-author { background-color: ${f.r.colors.primary50}; } .btn-wrapper { padding: 0 16px; .btn-booking { width: 100%; margin: 12px 0; } } } .comment-reply-wrapper { padding: 0 1rem; .more-cmt { .chevron-right { height: 1rem; width: 1rem; vertical-align: middle; } } } .top-divider { border-color: #e4e8ec; } .popover { position: absolute; top: 1.5rem; right: 1rem; .popover-menu__btn { display: flex; width: 1rem; height: 1rem; align-items: center; justify-content: center; padding: 0; background: transparent; &:hover { background-color: transparent; } .popover-menu__content { &.--position-bottom { &.--align-end { &::before { right: 12.5px; } } } } } } &[data-is-marrybaby='true'] { &[data-is-reply='false'] { border: none; } .image-preview-wrapper, .link-preview-wrapper { padding-right: 1rem; padding-left: 1rem; } .popover { .popover-menu__btn { width: 24px; height: 24px; } } margin-left: 56px; ${p.M.mbDown} { margin-left: 40px; } > .post-author { margin-left: -56px; ${p.M.mbDown} { margin-left: -40px; } .author-info { align-items: center; display: flex; align-items: center; .author-info-top { width: 100%; } .author-info-text-wrapper { justify-content: space-between; } } .author-avatar-wrapper { width: 40px; height: 40px; font-size: 20px; ${p.M.mbDown} { width: 24px; height: 24px; font-size: 12px; } } } &[data-is-reply] { > .post-author { .author-avatar-wrapper { width: 40px; height: 40px; font-size: 20px; ${p.M.mbDown} { width: 24px; height: 24px; font-size: 12px; } } } } .comment-reply-wrapper { padding-right: 0; padding-left: 0; } .post-reaction { &::after { position: absolute; bottom: 0; left: 50%; width: calc(100% - 2rem); height: 1px; background: #f3f3f3; content: ' '; transform: translateX(-50%); } } .post-content-wrapper { padding-top: 0; padding-bottom: 0; ${p.M.mbDown} { padding-left: 0.5rem; } } ${p.M.mbDown} { margin-bottom: 12px; } } `;var W="-dzIuHr";const G=({userId:e,avatar:t,name:r,role:n,title:a,className:l})=>{const{t:c}=(0,s.u)(),[u,p]=(0,o.useState)(!1);return o.createElement(o.Fragment,null,o.createElement(i.B,{className:`${W} ${l}`,color:"success",size:"xs",onClick:()=>p(!0),style:{padding:"5px 8px",marginBottom:"12px",borderRadius:"4px"}},o.createElement("span",{className:"text"},o.createElement(_,{isSolid:!0,size:18,color:f.r.colors.green800,className:"icon"}),c("cardReply.verifyBy",{name:`${r||""}`}))),o.createElement(m.c,{open:u,onClose:()=>p(!1),profileModalProps:{zIndex:1e3}},o.createElement(g.a,{authorProps:{userId:e,avatar:t,name:r,role:n,title:a},hideQuestionTab:!0})))}},8981:function(e,t,r){"use strict";r.d(t,{T:function(){return l}});var n=r(22470),o=r(67294),i=r(43077),a=r(67128),s=r(51139);const l=e=>{var{styles:t}=e,r=(0,n._)(e,["styles"]);const l=(0,s.u)(),{classes:c}=(0,a.u)({variantStyle:l},{name:"MantineTextarea",styles:t});return o.createElement(i.g,Object.assign({classNames:{input:c.input},minRows:2,maxRows:4},r))}},94278:function(e,t,r){"use strict";r.d(t,{C:function(){return j},T:function(){return P}});var n=r(22470),o=r(67294),i=r(58499),a=r(98198),s=r(91938),l=r(44036),c=r(74533),u=r(83129),p=r(10917),f=r(36308),d=r(88125),h=r(47440),m=r(70027),g=r(86315),v=r(93867);const b=(0,o.createContext)({});var y="vvR-m49";const k=e=>{var{children:t,className:r=""}=e,i=(0,n._)(e,["children","className"]);const{isReplied:a,trackingCategory:l,trackingLabel:c,onLikeClick:u}=(0,o.useContext)(b);return o.createElement(s.x,Object.assign({className:`${y} ${r}`,"data-event-category":l,"data-event-action":a?"Like Comment Click":"Like Post Click","data-event-label":c},i,{onClick:()=>{null===u||void 0===u||u()}}),t)},x=e=>{var{children:t,className:r=""}=e,i=(0,n._)(e,["children","className"]);const{trackingCategory:a,trackingLabel:l,onShareClick:c}=(0,o.useContext)(b);return o.createElement(s.x,Object.assign({className:`${y} ${r}`,"data-event-category":a,"data-event-action":"Share Icon Click","data-event-label":l},i,{onClick:()=>{null===c||void 0===c||c()}}),t)},_=e=>{var{children:t,className:r=""}=e,i=(0,n._)(e,["children","className"]);const{isReplied:a,trackingCategory:l,trackingLabel:c,onCommentClick:u}=(0,o.useContext)(b);return o.createElement(s.x,Object.assign({className:`${y} ${r}`,"data-event-category":l,"data-event-action":a?"Reply Comment Click":"Comment Text Click","data-event-label":c},i,{onClick:e=>{e.preventDefault(),e.stopPropagation(),null===u||void 0===u||u()}}),t)},C=e=>{var{children:t,className:r=""}=e,i=(0,n._)(e,["children","className"]);const{trackingCategory:a,trackingLabel:l,onSaveClick:c}=(0,o.useContext)(b);return o.createElement(s.x,Object.assign({className:`${y} ${r}`,"data-event-category":a,"data-event-action":"Save Post Click","data-event-label":l},i,{onClick:e=>{e.preventDefault(),e.stopPropagation(),null===c||void 0===c||c()}}),t)};var w,S="UhiT4m5",E="oEfeTkV",A="_9GXHCn3",M="HCsrR0N",O="Ierg-Fq",R="_674BTR4",I="XlkglSM",z="KyekKc3",N="TTfvZpR";!function(e){e[e.post=1]="post",e[e.reply=2]="reply"}(w||(w={}));const j=e=>{var{type:t,viewCount:r=0,loveCount:s=0,replyCount:l=0,replyPadding:c,liked:f,isReplied:m,isSaved:g,onCommentClick:v,onLikeClick:y,onShareClick:j,onSaveClick:T,onGoToUrl:P,className:$,style:L,showingMostEngaging:q,isMarryBaby:B,hasShare:Z=!0,hasSave:H=!0,hasActionStatistical:D=!0,hasShowAction:F=!0,isReleatedPost:U=!1,isVertical:V=!1,trackingCategory:W="Together",trackingLabel:G="",children:Y}=e,K=(0,n._)(e,["type","viewCount","loveCount","replyCount","replyPadding","liked","isReplied","isSaved","onCommentClick","onLikeClick","onShareClick","onSaveClick","onGoToUrl","className","style","showingMostEngaging","isMarryBaby","hasShare","hasSave","hasActionStatistical","hasShowAction","isReleatedPost","isVertical","trackingCategory","trackingLabel","children"]);const{data:{env:{isMarryBaby:Q}}}=(0,o.useContext)(h.T),X=Boolean(B)?B:Q,{t:J}=(0,i.u)(),{isMobile:ee}=(0,d.u)(),te=(0,o.useMemo)((()=>r>0||l>0),[r,l]),re=(0,o.useMemo)((()=>r>0||s>0||l>0),[r,s,l]),ne=(0,o.useCallback)((()=>o.createElement("div",{className:`${z} ${D?"":N} session-statistical`},o.createElement("div",{className:"releated-post-statistical"},o.createElement(u.T,{size:"p3",className:A,as:"div",onClick:()=>{D&&(null===P||void 0===P||P())}},r>0&&o.createElement(o.Fragment,null,o.createElement(a.I.Eye,{size:18,isMarryBaby:X}),o.createElement("div",{className:O},r))),o.createElement(u.T,{size:"p3",className:A,as:"div",onClick:()=>{D&&(null===P||void 0===P||P(l>0?"":"?action=comment"))}},o.createElement("div",{className:O},l>0?J("comment.count",{count:l}):J("comment.now")))))),[te,D,X,r,l]),oe=(0,o.useCallback)((()=>re?o.createElement("div",{className:`${I} ${D?"":N} session-statistical`},o.createElement(u.T,{size:"p3",className:A,as:"div",onClick:()=>{D&&(null===P||void 0===P||P())}},r>0&&o.createElement(o.Fragment,null,o.createElement(a.I.Eye,{size:18,isMarryBaby:X}),o.createElement("div",{className:O},r))),ee||V?o.createElement("div",{className:"wrapper-list-statistical"},s>0?o.createElement(u.T,{className:A,size:"p3",as:"div",onClick:()=>{D&&(null===P||void 0===P||P())}},o.createElement("div",{className:O},s," ",J("cardReactions.like"))):o.createElement("div",null),l>0&&o.createElement(u.T,{size:"p3",className:A,as:"div",onClick:()=>{D&&(null===P||void 0===P||P())}},o.createElement("div",{className:O},l," ",J("cardReactions.comment")))):o.createElement(o.Fragment,null,s>0?o.createElement(u.T,{className:A,size:"p3",as:"div",onClick:()=>{D&&(null===P||void 0===P||P())}},o.createElement(a.I.Heart,{isMarryBaby:X,isSolid:!1,size:18,color:"#737373"}),o.createElement("div",{className:O},s)):o.createElement("div",null),l>0&&o.createElement(u.T,{size:"p3",className:A,as:"div",onClick:()=>{D&&(null===P||void 0===P||P())}},o.createElement(a.I.Comment,{size:18,className:"txt-icon",isMarryBaby:X}),o.createElement("div",{className:O},l)))):""),[re,D,X,ee,r,s,l]);return o.createElement(b.Provider,{value:{liked:f,loveCount:s,trackingCategory:W,trackingLabel:G,isReplied:m,onLikeClick:y,onShareClick:j,onCommentClick:v,onSaveClick:T}},Y||o.createElement("div",Object.assign({className:`${S} ${$}`,"data-show-most-engaging":q,"data-type":t===w.post?"post":"reply","data-reply-padding":t===w.reply&&c,"data-is-marrybaby":X,style:L},K),o.createElement("div",{className:`${E} ${V?"direction-vertical":""}`},F&&o.createElement("div",{className:`${R} session-action`},o.createElement(k,{className:`${M} wrapper-action`},o.createElement(u.T,{className:A,size:"p3",as:"div"},o.createElement(a.I.Heart,{isMarryBaby:X,isSolid:f,size:18,color:f?X?p.r.mbColors.pink:p.r.colors.red800:"#737373"}),o.createElement("div",{className:O},J("cardReactions.like")))),Z&&o.createElement(x,{className:`${M} wrapper-action`},o.createElement(u.T,{size:"p3",className:A,as:"div"},o.createElement(a.I.Share,{size:18,isMarryBaby:X}),o.createElement("div",{className:O},J("share.title")))),H&&o.createElement(C,{className:`${M} wrapper-action`},o.createElement(u.T,{size:"p3",className:A,as:"div"},g?o.createElement(a.I.Bookmark,{size:18,isMarryBaby:X,color:X?"#3E3F58":"#737373"}):o.createElement(a.I.Save,{size:18,isMarryBaby:X,color:X?"#3E3F58":"#737373"}),o.createElement("div",{className:O},J(g?"cardReactions.unSave":"cardReactions.save")))),o.createElement(_,{className:`${M} wrapper-action`},o.createElement(u.T,{size:"p3",className:A,as:"div"},o.createElement(a.I.Comment,{size:18,className:"txt-icon",isMarryBaby:X}),o.createElement("div",{className:O},J("cardReactions.comment"))))),U?ne():oe())))};j.LikeWrapper=k,j.ShareWrapper=x,j.CommentWrapper=_;const T=(0,l.k)((e=>({wrapper:{display:"flex",flexWrap:"wrap",width:"100%",padding:"0.5rem 0",gap:"0.5rem"},item:{position:"relative",whiteSpace:"nowrap",padding:"5px 12px",background:e.colors.gray[0],borderRadius:"2rem",cursor:"pointer","-webkit-user-drag":"none",userSelect:"none",textDecoration:"none","*":{pointerEvents:"none"},"&:first-child":{marginLeft:0}},text:{}}))),P=e=>{var{topics:t=[],onClick:r,className:a,style:s,trackingCategory:l="Together",locale:p="vi-VN",classNames:f,styles:d,unstyled:v,shortenedNumber:b=3,shortenedStyle:y}=e,k=(0,n._)(e,["topics","onClick","className","style","trackingCategory","locale","classNames","styles","unstyled","shortenedNumber","shortenedStyle"]);const{t:x}=(0,i.u)(),{classes:_}=T(void 0,{name:"TagTopic",classNames:f,styles:d,unstyled:v}),{data:{env:{togetherBasePath:C}},action:{sanitizeFunction:w}}=(0,o.useContext)(h.T),[S,E]=(0,o.useState)(!y);return o.createElement("div",Object.assign({onClick:r,className:`${_.wrapper} ${a}`,style:s},k),(S?t:t.slice(0,b)).map(((e,t)=>{const r=(null===e||void 0===e?void 0:e.dueDateMonth)&&0!==(null===e||void 0===e?void 0:e.dueDateMonth)&&(null===e||void 0===e?void 0:e.dueDateYear)&&0!==(null===e||void 0===e?void 0:e.dueDateYear);return o.createElement("a",{className:_.item,key:t,"data-event-category":l,"data-event-action":"Topic in Post Click","data-event-label":`${(0,h.k)(p)}${C}${e.url}`,href:e.isActive&&!e.isHidden?`${C}${e.url}/`:void 0},o.createElement(u.T,{size:"p4"},o.createElement("span",{style:Object.assign({},r&&{textTransform:"capitalize"}),dangerouslySetInnerHTML:{__html:r?`${(0,m.Z)(new Date(2020,Number(e.dueDateMonth)-1,1),"MMMM",{locale:c.g[p]})}${p===g.L.Vietnam?"/":" "}${null===e||void 0===e?void 0:e.dueDateYear}`:(null===w||void 0===w?void 0:w(e.name))||e.name}})))})),!S&&t.length>b&&o.createElement("a",{className:_.item,href:"#",onClick:e=>{e.preventDefault(),E(!0)}},o.createElement(u.T,{size:"p4"},"+",x("tagTopic.moreTopics",{number:t.length-b}))))};v.Z.div` display: flex; align-items: center; justify-content: space-between; padding: 16px; cursor: pointer; &[data-color='gray'] { background: ${p.r.colors.neutral50}; } &[data-color='white'] { border-bottom: 1px solid #e4e8ec; background: ${p.r.colors.white}; } .popover-menu__btn { display: flex; min-width: 2rem; height: 2rem; align-items: center; padding: 8px 0 !important; border: none; margin-left: 0.5rem; background: transparent; > span { display: flex; align-items: center; } &:hover { background: transparent !important; } } &.label-pinned { border-radius: ${p.r.borderRadius} 6px 0 0; .label-sort-pin-icon { width: 16px; height: 16px; vertical-align: middle; } } &[data-is-marrybaby='true'] { padding: 0.75rem 1rem; border-radius: 16px 16px 0px 0px; &[data-color='white'] { border-bottom: none; } &[data-color='gray'] { background: #f3f3f3; } .popover-menu__btn { width: unset; } &.label-pinned { border-bottom: none; background: #fff9eb; border-radius: 1rem 1rem 0 0; .label-sort-pin-icon { margin-right: 8px; } .label-sort-pin-heading { color: #fb8c00; } } &.label-sorting { ${f.M.tdUp} { padding-bottom: 1.5rem; margin-bottom: -0.75rem; } } } `},83917:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},38831:function(e,t,r){"use strict";var n=r(67294),o=r(36834),i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{var{size:t,color:r=o.SQ}=e,a=i(e,["size","color"]);const s=(0,o.jd)(t);return n.createElement("svg",Object.assign({width:s,height:s,viewBox:"0 0 24 24",fill:"none"},a),n.createElement("path",{fill:r,d:"M12 14.662a.827.827 0 0 1-.633-.256L6.873 9.912a.73.73 0 0 1-.212-.522.7.7 0 0 1 .212-.532.72.72 0 0 1 .527-.217q.31 0 .527.217L12 12.93l4.073-4.073a.73.73 0 0 1 .522-.213.7.7 0 0 1 .532.213q.217.217.217.527a.72.72 0 0 1-.217.527l-4.494 4.494a.83.83 0 0 1-.633.256"}))}},72477:function(e,t,r){"use strict";var n=r(67294),o=r(36834),i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o{var{size:t=18,color:r=o.SQ}=e,a=i(e,["size","color"]);return n.createElement("svg",Object.assign({width:t,height:t,xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 18 18",fill:"none"},a),n.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M9.00036 11.6827C9.85018 11.6827 10.572 11.3852 11.1657 10.7903C11.7595 10.1955 12.0563 9.4731 12.0563 8.62328C12.0563 7.77346 11.7589 7.05168 11.164 6.45793C10.5691 5.86418 9.84678 5.56731 8.99695 5.56731C8.14714 5.56731 7.42536 5.86474 6.83161 6.45962C6.23786 7.05451 5.94098 7.77686 5.94098 8.62669C5.94098 9.4765 6.23842 10.1983 6.83329 10.792C7.42818 11.3858 8.15054 11.6827 9.00036 11.6827ZM8.99866 10.65C8.43616 10.65 7.95803 10.4531 7.56428 10.0594C7.17053 9.66561 6.97366 9.18748 6.97366 8.62498C6.97366 8.06248 7.17053 7.58436 7.56428 7.19061C7.95803 6.79686 8.43616 6.59998 8.99866 6.59998C9.56116 6.59998 10.0393 6.79686 10.433 7.19061C10.8268 7.58436 11.0237 8.06248 11.0237 8.62498C11.0237 9.18748 10.8268 9.66561 10.433 10.0594C10.0393 10.4531 9.56116 10.65 8.99866 10.65ZM8.99866 13.875C7.41982 13.875 5.97584 13.4538 4.66671 12.6115C3.35757 11.7692 2.31263 10.661 1.53186 9.28699C1.46936 9.1793 1.42369 9.07077 1.39484 8.96139C1.36599 8.85201 1.35156 8.73974 1.35156 8.62461C1.35156 8.50947 1.36599 8.39734 1.39484 8.28821C1.42369 8.17908 1.46936 8.07066 1.53186 7.96298C2.31263 6.58894 3.35757 5.48077 4.66671 4.63847C5.97584 3.79616 7.41982 3.375 8.99866 3.375C10.5775 3.375 12.0215 3.79616 13.3306 4.63847C14.6397 5.48077 15.6847 6.58894 16.4655 7.96298C16.528 8.07066 16.5736 8.17919 16.6025 8.28857C16.6313 8.39796 16.6457 8.51022 16.6457 8.62536C16.6457 8.74049 16.6313 8.85263 16.6025 8.96175C16.5736 9.07089 16.528 9.1793 16.4655 9.28699C15.6847 10.661 14.6397 11.7692 13.3306 12.6115C12.0215 13.4538 10.5775 13.875 8.99866 13.875ZM8.99866 12.75C10.4112 12.75 11.708 12.3781 12.8893 11.6344C14.0705 10.8906 14.9737 9.88748 15.5987 8.62498C14.9737 7.36248 14.0705 6.35936 12.8893 5.61561C11.708 4.87186 10.4112 4.49998 8.99866 4.49998C7.58616 4.49998 6.28928 4.87186 5.10803 5.61561C3.92678 6.35936 3.02366 7.36248 2.39866 8.62498C3.02366 9.88748 3.92678 10.8906 5.10803 11.6344C6.28928 12.3781 7.58616 12.75 8.99866 12.75Z",fill:r}))}},55368:function(e,t,r){"use strict";r.d(t,{E:function(){return E}});var n=r(67294),o=r(19827),i=r(2566),a=r(70917),s=r(44036),l=r(21434);const c={xs:(0,i.h)(3),sm:(0,i.h)(5),md:(0,i.h)(8),lg:(0,i.h)(12),xl:(0,i.h)(16)},u=(0,a.F4)({from:{backgroundPosition:"0 0"},to:{backgroundPosition:`${(0,i.h)(40)} 0`}});var p=(0,s.k)(((e,{color:t,radius:r},{size:n})=>({root:{position:"relative",height:(0,l.a)({size:n,sizes:c}),backgroundColor:"dark"===e.colorScheme?e.colors.dark[4]:e.colors.gray[2],borderRadius:e.fn.radius(r),overflow:"hidden"},bar:{position:"absolute",top:0,bottom:0,left:0,height:"100%",display:"flex",justifyContent:"center",alignItems:"center",backgroundColor:e.fn.variant({variant:"filled",primaryFallback:!1,color:t||e.primaryColor}).background,transition:"width 100ms linear","&[data-animate]":{animation:`${u} 1000ms linear infinite`},"&[data-striped]":{backgroundSize:`${(0,i.h)(20)} ${(0,i.h)(20)}`,backgroundImage:"linear-gradient(45deg, rgba(255, 255, 255, 0.15) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.15) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 75%, transparent)"},"&:last-of-type":{borderTopRightRadius:e.fn.radius(r),borderBottomRightRadius:e.fn.radius(r)},"&:first-of-type":{borderTopLeftRadius:e.fn.radius(r),borderBottomLeftRadius:e.fn.radius(r)},"@media (prefers-reduced-motion)":{transitionDuration:e.respectReducedMotion?"0ms":void 0}},label:{color:e.white,fontSize:`calc(${(0,l.a)({size:n,sizes:c})} * 0.65)`,fontWeight:700,userSelect:"none",overflow:"hidden",whiteSpace:"nowrap"}}))),f=r(39538),d=r(91938),h=r(5918),m=Object.defineProperty,g=Object.defineProperties,v=Object.getOwnPropertyDescriptors,b=Object.getOwnPropertySymbols,y=Object.prototype.hasOwnProperty,k=Object.prototype.propertyIsEnumerable,x=(e,t,r)=>t in e?m(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,_=(e,t)=>{for(var r in t||(t={}))y.call(t,r)&&x(e,r,t[r]);if(b)for(var r of b(t))k.call(t,r)&&x(e,r,t[r]);return e},C=(e,t)=>g(e,v(t)),w=(e,t)=>{var r={};for(var n in e)y.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&b)for(var n of b(e))t.indexOf(n)<0&&k.call(e,n)&&(r[n]=e[n]);return r};const S={size:"md",radius:"sm",striped:!1,animate:!1,label:""},E=(0,n.forwardRef)(((e,t)=>{const r=(0,o.N4)("Progress",S,e),{className:i,value:a,color:s,size:l,radius:c,striped:u,animate:m,label:g,"aria-label":v,classNames:b,styles:y,sections:k,unstyled:x,variant:E}=r,A=w(r,["className","value","color","size","radius","striped","animate","label","aria-label","classNames","styles","sections","unstyled","variant"]),{classes:M,cx:O,theme:R}=p({color:s,radius:c},{name:"Progress",classNames:b,styles:y,unstyled:x,variant:E,size:l}),I=Array.isArray(k)?function(e){return e.reduce(((e,t)=>(e.sections.push(C(_({},t),{accumulated:e.accumulated})),e.accumulated+=t.value,e)),{accumulated:0,sections:[]}).sections}(k).map(((e,t)=>{var r=e,{tooltip:o,accumulated:i,value:a,label:s,color:l}=r,c=w(r,["tooltip","accumulated","value","label","color"]);return n.createElement(f.u.Floating,{label:o,disabled:!o,key:t},n.createElement(d.x,C(_({},c),{className:O(M.bar,c.className),"data-striped":u||m||void 0,"data-animate":m||void 0,sx:{width:`${a}%`,left:`${i}%`,backgroundColor:R.fn.variant({variant:"filled",primaryFallback:!1,color:l||R.primaryColor}).background}}),s&&n.createElement(h.x,{className:M.label},s)))})):null;return n.createElement(d.x,_({className:O(M.root,i),ref:t},A),I||n.createElement("div",{role:"progressbar","aria-valuemax":100,"aria-valuemin":0,"aria-valuenow":a,"aria-label":v,className:M.bar,style:{width:`${a}%`},"data-striped":u||m||void 0,"data-animate":m||void 0},g?n.createElement(h.x,{className:M.label},g):""))}));E.displayName="@mantine/core/Progress"},43077:function(e,t,r){"use strict";r.d(t,{g:function(){return N}});var n=r(67294),o=r(22122),i=r(19756),a=n.useLayoutEffect,s=function(e,t){"function"!==typeof e?e.current=t:e(t)},l=function(e,t){var r=(0,n.useRef)();return(0,n.useCallback)((function(n){e.current=n,r.current&&s(r.current,null),r.current=t,t&&s(t,n)}),[t])},c={"min-height":"0","max-height":"none",height:"0",visibility:"hidden",overflow:"hidden",position:"absolute","z-index":"-1000",top:"0",right:"0"},u=function(e){Object.keys(c).forEach((function(t){e.style.setProperty(t,c[t],"important")}))},p=null;var f=function(){},d=["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth","boxSizing","fontFamily","fontSize","fontStyle","fontWeight","letterSpacing","lineHeight","paddingBottom","paddingLeft","paddingRight","paddingTop","tabSize","textIndent","textRendering","textTransform","width","wordBreak"],h=!!document.documentElement.currentStyle,m=function(e){var t=function(e){var t=n.useRef(e);return a((function(){t.current=e})),t}(e);(0,n.useLayoutEffect)((function(){var e=function(e){t.current(e)};return window.addEventListener("resize",e),function(){window.removeEventListener("resize",e)}}),[])},g=function(e,t){var r=e.cacheMeasurements,a=e.maxRows,s=e.minRows,c=e.onChange,g=void 0===c?f:c,v=e.onHeightChange,b=void 0===v?f:v,y=(0,i.Z)(e,["cacheMeasurements","maxRows","minRows","onChange","onHeightChange"]);var k=void 0!==y.value,x=(0,n.useRef)(null),_=l(x,t),C=(0,n.useRef)(0),w=(0,n.useRef)(),S=function(){var e=x.current,t=r&&w.current?w.current:function(e){var t=window.getComputedStyle(e);if(null===t)return null;var r,n=(r=t,d.reduce((function(e,t){return e[t]=r[t],e}),{})),o=n.boxSizing;return""===o?null:(h&&"border-box"===o&&(n.width=parseFloat(n.width)+parseFloat(n.borderRightWidth)+parseFloat(n.borderLeftWidth)+parseFloat(n.paddingRight)+parseFloat(n.paddingLeft)+"px"),{sizingStyle:n,paddingSize:parseFloat(n.paddingBottom)+parseFloat(n.paddingTop),borderSize:parseFloat(n.borderBottomWidth)+parseFloat(n.borderTopWidth)})}(e);if(t){w.current=t;var n=function(e,t,r,n){void 0===r&&(r=1),void 0===n&&(n=1/0),p||((p=document.createElement("textarea")).setAttribute("tabindex","-1"),p.setAttribute("aria-hidden","true"),u(p)),null===p.parentNode&&document.body.appendChild(p);var o=e.paddingSize,i=e.borderSize,a=e.sizingStyle,s=a.boxSizing;Object.keys(a).forEach((function(e){var t=e;p.style[t]=a[t]})),u(p),p.value=t;var l=function(e,t){var r=e.scrollHeight;return"border-box"===t.sizingStyle.boxSizing?r+t.borderSize:r-t.paddingSize}(p,e);p.value="x";var c=p.scrollHeight-o,f=c*r;"border-box"===s&&(f=f+o+i),l=Math.max(f,l);var d=c*n;return"border-box"===s&&(d=d+o+i),[l=Math.min(d,l),c]}(t,e.value||e.placeholder||"x",s,a),o=n[0],i=n[1];C.current!==o&&(C.current=o,e.style.setProperty("height",o+"px","important"),b(o,{rowHeight:i}))}};return(0,n.useLayoutEffect)(S),m(S),(0,n.createElement)("textarea",(0,o.Z)({},y,{onChange:function(e){k||S(),g(e)},ref:_}))},v=(0,n.forwardRef)(g),b=r(68589),y=r(19827),k=(0,r(44036).k)((e=>({input:{paddingTop:e.spacing.xs,paddingBottom:e.spacing.xs}}))),x=r(12756),_=r(72647),C=Object.defineProperty,w=Object.defineProperties,S=Object.getOwnPropertyDescriptors,E=Object.getOwnPropertySymbols,A=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,O=(e,t,r)=>t in e?C(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,R=(e,t)=>{for(var r in t||(t={}))A.call(t,r)&&O(e,r,t[r]);if(E)for(var r of E(t))M.call(t,r)&&O(e,r,t[r]);return e},I=(e,t)=>w(e,S(t));const z={autosize:!1,size:"sm",__staticSelector:"Textarea"},N=(0,n.forwardRef)(((e,t)=>{const r=(0,y.N4)("Textarea",z,e),{autosize:o,maxRows:i,minRows:a,label:s,error:l,description:c,id:u,className:p,required:f,style:d,wrapperProps:h,classNames:m,styles:g,size:C,__staticSelector:w,sx:S,errorProps:O,descriptionProps:N,labelProps:j,inputWrapperOrder:T,inputContainer:P,unstyled:$,withAsterisk:L,variant:q}=r,B=((e,t)=>{var r={};for(var n in e)A.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&E)for(var n of E(e))t.indexOf(n)<0&&M.call(e,n)&&(r[n]=e[n]);return r})(r,["autosize","maxRows","minRows","label","error","description","id","className","required","style","wrapperProps","classNames","styles","size","__staticSelector","sx","errorProps","descriptionProps","labelProps","inputWrapperOrder","inputContainer","unstyled","withAsterisk","variant"]),Z=(0,b.M)(u),{classes:H,cx:D}=k(),{systemStyles:F,rest:U}=(0,x.x)(B),V=R({required:f,ref:t,error:l,id:Z,classNames:I(R({},m),{input:D(H.input,null==m?void 0:m.input)}),styles:g,__staticSelector:w,size:C,multiline:!0,unstyled:$,variant:q},U);return n.createElement(_.I.Wrapper,R(R({label:s,error:l,id:Z,description:c,required:f,style:d,className:p,classNames:m,styles:g,size:C,__staticSelector:w,sx:S,errorProps:O,labelProps:j,descriptionProps:N,inputContainer:P,inputWrapperOrder:T,unstyled:$,withAsterisk:L,variant:q},F),h),o?n.createElement(_.I,I(R({},V),{component:v,maxRows:i,minRows:a})):n.createElement(_.I,I(R({},V),{component:"textarea",rows:a})))}));N.displayName="@mantine/core/Textarea"},79212:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrAfter=function(e,t){return this.isSame(e,t)||this.isAfter(e,t)}}}()},37412:function(e){e.exports=function(){"use strict";return function(e,t){t.prototype.isSameOrBefore=function(e,t){return this.isSame(e,t)||this.isBefore(e,t)}}}()},71409:function(e,t,r){var n;!function(){var t={initialize:function(){this._tasks=new Map},mutate:function(e,t){return o(this,"mutate",e,t)},measure:function(e,t){return o(this,"measure",e,t)},clear:function(e){var t=this._tasks,r=t.get(e);this.fastdom.clear(r),t.delete(e)}};function o(e,t,r,n){var o,i=e._tasks,a=e.fastdom,s=new Promise((function(e,l){o=a[t]((function(){i.delete(s);try{e(n?r.call(n):r())}catch(t){l(t)}}),n)}));return i.set(s,o),s}"f"=="function"[0]?void 0===(n=function(){return t}.call(t,r,t,e))||(e.exports=n):"o"=="object"[0]?e.exports=t:window.fastdomPromised=t}()},4149:function(e,t,r){var n;!function(t){"use strict";var o=function(){},i=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.msRequestAnimationFrame||function(e){return setTimeout(e,16)};function a(){var e=this;e.reads=[],e.writes=[],e.raf=i.bind(t),o("initialized",e)}function s(e){e.scheduled||(e.scheduled=!0,e.raf(l.bind(null,e)),o("flush scheduled"))}function l(e){o("flush");var t,r=e.writes,n=e.reads;try{o("flushing reads",n.length),e.runTasks(n),o("flushing writes",r.length),e.runTasks(r)}catch(i){t=i}if(e.scheduled=!1,(n.length||r.length)&&s(e),t){if(o("task errored",t.message),!e.catch)throw t;e.catch(t)}}function c(e,t){var r=e.indexOf(t);return!!~r&&!!e.splice(r,1)}a.prototype={constructor:a,runTasks:function(e){var t;for(o("run tasks");t=e.shift();)t()},measure:function(e,t){o("measure");var r=t?e.bind(t):e;return this.reads.push(r),s(this),r},mutate:function(e,t){o("mutate");var r=t?e.bind(t):e;return this.writes.push(r),s(this),r},clear:function(e){return o("clear",e),c(this.reads,e)||c(this.writes,e)},extend:function(e){if(o("extend",e),"object"!=typeof e)throw new Error("expected object");var t=Object.create(this);return function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])}(t,e),t.fastdom=this,t.initialize&&t.initialize(),t},catch:null};var u=t.fastdom=t.fastdom||new a;void 0===(n=function(){return u}.call(u,r,u,e))||(e.exports=n)}("undefined"!==typeof window?window:"undefined"!=typeof this?this:globalThis)},62663:function(e){e.exports=function(e,t,r,n){var o=-1,i=null==e?0:e.length;for(n&&i&&(r=e[++o]);++oo?0:o+t),(r=r>o?o:r)<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var i=Array(o);++n=o?e:n(e,t,r)}},98805:function(e,t,r){var n=r(40180),o=r(62689),i=r(83140),a=r(79833);e.exports=function(e){return function(t){t=a(t);var r=o(t)?i(t):void 0,s=r?r[0]:t.charAt(0),l=r?n(r,1).join(""):t.slice(1);return s[e]()+l}}},35393:function(e,t,r){var n=r(62663),o=r(53816),i=r(58748),a=RegExp("['\u2019]","g");e.exports=function(e){return function(t){return n(i(o(t).replace(a,"")),e,"")}}},69389:function(e,t,r){var n=r(18674)({"\xc0":"A","\xc1":"A","\xc2":"A","\xc3":"A","\xc4":"A","\xc5":"A","\xe0":"a","\xe1":"a","\xe2":"a","\xe3":"a","\xe4":"a","\xe5":"a","\xc7":"C","\xe7":"c","\xd0":"D","\xf0":"d","\xc8":"E","\xc9":"E","\xca":"E","\xcb":"E","\xe8":"e","\xe9":"e","\xea":"e","\xeb":"e","\xcc":"I","\xcd":"I","\xce":"I","\xcf":"I","\xec":"i","\xed":"i","\xee":"i","\xef":"i","\xd1":"N","\xf1":"n","\xd2":"O","\xd3":"O","\xd4":"O","\xd5":"O","\xd6":"O","\xd8":"O","\xf2":"o","\xf3":"o","\xf4":"o","\xf5":"o","\xf6":"o","\xf8":"o","\xd9":"U","\xda":"U","\xdb":"U","\xdc":"U","\xf9":"u","\xfa":"u","\xfb":"u","\xfc":"u","\xdd":"Y","\xfd":"y","\xff":"y","\xc6":"Ae","\xe6":"ae","\xde":"Th","\xfe":"th","\xdf":"ss","\u0100":"A","\u0102":"A","\u0104":"A","\u0101":"a","\u0103":"a","\u0105":"a","\u0106":"C","\u0108":"C","\u010a":"C","\u010c":"C","\u0107":"c","\u0109":"c","\u010b":"c","\u010d":"c","\u010e":"D","\u0110":"D","\u010f":"d","\u0111":"d","\u0112":"E","\u0114":"E","\u0116":"E","\u0118":"E","\u011a":"E","\u0113":"e","\u0115":"e","\u0117":"e","\u0119":"e","\u011b":"e","\u011c":"G","\u011e":"G","\u0120":"G","\u0122":"G","\u011d":"g","\u011f":"g","\u0121":"g","\u0123":"g","\u0124":"H","\u0126":"H","\u0125":"h","\u0127":"h","\u0128":"I","\u012a":"I","\u012c":"I","\u012e":"I","\u0130":"I","\u0129":"i","\u012b":"i","\u012d":"i","\u012f":"i","\u0131":"i","\u0134":"J","\u0135":"j","\u0136":"K","\u0137":"k","\u0138":"k","\u0139":"L","\u013b":"L","\u013d":"L","\u013f":"L","\u0141":"L","\u013a":"l","\u013c":"l","\u013e":"l","\u0140":"l","\u0142":"l","\u0143":"N","\u0145":"N","\u0147":"N","\u014a":"N","\u0144":"n","\u0146":"n","\u0148":"n","\u014b":"n","\u014c":"O","\u014e":"O","\u0150":"O","\u014d":"o","\u014f":"o","\u0151":"o","\u0154":"R","\u0156":"R","\u0158":"R","\u0155":"r","\u0157":"r","\u0159":"r","\u015a":"S","\u015c":"S","\u015e":"S","\u0160":"S","\u015b":"s","\u015d":"s","\u015f":"s","\u0161":"s","\u0162":"T","\u0164":"T","\u0166":"T","\u0163":"t","\u0165":"t","\u0167":"t","\u0168":"U","\u016a":"U","\u016c":"U","\u016e":"U","\u0170":"U","\u0172":"U","\u0169":"u","\u016b":"u","\u016d":"u","\u016f":"u","\u0171":"u","\u0173":"u","\u0174":"W","\u0175":"w","\u0176":"Y","\u0177":"y","\u0178":"Y","\u0179":"Z","\u017b":"Z","\u017d":"Z","\u017a":"z","\u017c":"z","\u017e":"z","\u0132":"IJ","\u0133":"ij","\u0152":"Oe","\u0153":"oe","\u0149":"'n","\u017f":"s"});e.exports=n},62689:function(e){var t=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");e.exports=function(e){return t.test(e)}},93157:function(e){var t=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;e.exports=function(e){return t.test(e)}},83140:function(e,t,r){var n=r(44286),o=r(62689),i=r(676);e.exports=function(e){return o(e)?i(e):n(e)}},676:function(e){var t="[\\ud800-\\udfff]",r="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",n="\\ud83c[\\udffb-\\udfff]",o="[^\\ud800-\\udfff]",i="(?:\\ud83c[\\udde6-\\uddff]){2}",a="[\\ud800-\\udbff][\\udc00-\\udfff]",s="(?:"+r+"|"+n+")"+"?",l="[\\ufe0e\\ufe0f]?",c=l+s+("(?:\\u200d(?:"+[o,i,a].join("|")+")"+l+s+")*"),u="(?:"+[o+r+"?",r,i,a,t].join("|")+")",p=RegExp(n+"(?="+n+")|"+u+c,"g");e.exports=function(e){return e.match(p)||[]}},2757:function(e){var t="\\u2700-\\u27bf",r="a-z\\xdf-\\xf6\\xf8-\\xff",n="A-Z\\xc0-\\xd6\\xd8-\\xde",o="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",i="["+o+"]",a="\\d+",s="[\\u2700-\\u27bf]",l="["+r+"]",c="[^\\ud800-\\udfff"+o+a+t+r+n+"]",u="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",f="["+n+"]",d="(?:"+l+"|"+c+")",h="(?:"+f+"|"+c+")",m="(?:['\u2019](?:d|ll|m|re|s|t|ve))?",g="(?:['\u2019](?:D|LL|M|RE|S|T|VE))?",v="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",b="[\\ufe0e\\ufe0f]?",y=b+v+("(?:\\u200d(?:"+["[^\\ud800-\\udfff]",u,p].join("|")+")"+b+v+")*"),k="(?:"+[s,u,p].join("|")+")"+y,x=RegExp([f+"?"+l+"+"+m+"(?="+[i,f,"$"].join("|")+")",h+"+"+g+"(?="+[i,f+d,"$"].join("|")+")",f+"?"+d+"+"+m,f+"+"+g,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",a,k].join("|"),"g");e.exports=function(e){return e.match(x)||[]}},68929:function(e,t,r){var n=r(48403),o=r(35393)((function(e,t,r){return t=t.toLowerCase(),e+(r?n(t):t)}));e.exports=o},48403:function(e,t,r){var n=r(79833),o=r(11700);e.exports=function(e){return o(n(e).toLowerCase())}},53816:function(e,t,r){var n=r(69389),o=r(79833),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");e.exports=function(e){return(e=o(e))&&e.replace(i,n).replace(a,"")}},41609:function(e,t,r){var n=r(280),o=r(64160),i=r(35694),a=r(1469),s=r(98612),l=r(44144),c=r(25726),u=r(36719),p=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(s(e)&&(a(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||u(e)||i(e)))return!e.length;var t=o(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(c(e))return!n(e).length;for(var r in e)if(p.call(e,r))return!1;return!0}},11700:function(e,t,r){var n=r(98805)("toUpperCase");e.exports=n},58748:function(e,t,r){var n=r(49029),o=r(93157),i=r(79833),a=r(2757);e.exports=function(e,t,r){return e=i(e),void 0===(t=r?void 0:t)?o(e)?a(e):n(e):e.match(t)||[]}},40616:function(e,t,r){"use strict";function n(e){if(null==e)throw new TypeError("Cannot destructure undefined")}r.d(t,{Z:function(){return n}})},61512:function(e,t,r){"use strict";var n=this&&this.__extends||function(){var e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])})(t,r)};return function(t,r){if("function"!==typeof r&&null!==r)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");function n(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(n.prototype=r.prototype,new n)}}(),o=this&&this.__assign||function(){return(o=Object.assign||function(e){for(var t,r=1,n=arguments.length;r(((e,t,r)=>{t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r})(e,"symbol"!==typeof t?t+"":t,r),r),a=new Map,s=new WeakMap,l=0,c=void 0;function u(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(r=e.root,r?(s.has(r)||(l+=1,s.set(r,l.toString())),s.get(r)):"0"):e[t]}`;var r})).toString()}function p(e,t,r={},n=c){if("undefined"===typeof window.IntersectionObserver&&void 0!==n){const o=e.getBoundingClientRect();return t(n,{isIntersecting:n,target:e,intersectionRatio:"number"===typeof r.threshold?r.threshold:0,time:0,boundingClientRect:o,intersectionRect:o,rootBounds:o}),()=>{}}const{id:o,observer:i,elements:s}=function(e){const t=u(e);let r=a.get(t);if(!r){const n=new Map;let o;const i=new IntersectionObserver((t=>{t.forEach((t=>{var r;const i=t.isIntersecting&&o.some((e=>t.intersectionRatio>=e));e.trackVisibility&&"undefined"===typeof t.isVisible&&(t.isVisible=i),null==(r=n.get(t.target))||r.forEach((e=>{e(i,t)}))}))}),e);o=i.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),r={id:t,observer:i,elements:n},a.set(t,r)}return r}(r),l=s.get(e)||[];return s.has(e)||s.set(e,l),l.push(t),i.observe(e),function(){l.splice(l.indexOf(t),1),0===l.length&&(s.delete(e),i.unobserve(e)),0===s.size&&(i.disconnect(),a.delete(o))}}n.Component;function f({threshold:e,delay:t,trackVisibility:r,rootMargin:o,root:i,triggerOnce:a,skip:s,initialInView:l,fallbackInView:c,onChange:u}={}){var f;const[d,h]=n.useState(null),m=n.useRef(),[g,v]=n.useState({inView:!!l,entry:void 0});m.current=u,n.useEffect((()=>{if(s||!d)return;let n;return n=p(d,((e,t)=>{v({inView:e,entry:t}),m.current&&m.current(e,t),t.isIntersecting&&a&&n&&(n(),n=void 0)}),{root:i,rootMargin:o,threshold:e,trackVisibility:r,delay:t},c),()=>{n&&n()}}),[Array.isArray(e)?e.toString():e,d,i,o,a,s,r,c,t]);const b=null==(f=g.entry)?void 0:f.target,y=n.useRef();d||!b||a||s||y.current===b||(y.current=b,v({inView:!!l,entry:void 0}));const k=[h,g.inView,g.entry];return k.ref=k[0],k.inView=k[1],k.entry=k[2],k}},39503:function(e,t,r){"use strict";var n,o=r(69038),i=(n=o)&&n.__esModule?n:{default:n};Number.isInteger=Number.isInteger||function(e){return"number"===typeof e&&isFinite(e)&&Math.floor(e)===e},t.Z=i.default},69038:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r0?n:r,i=parseFloat(o.toFixed(2)).toString();Number.isInteger(o)&&(i=String(o));var a=t+"s";return"1"===i&&(a=t),i+" "+a}},{key:"offsetValue",get:function(){var e=this.props.rating,t="0%";Number.isInteger(e)||(t=e.toFixed(2).split(".")[1].slice(0,2)+"%");return t}},{key:"renderStars",get:function(){var e=this,t=this.props,r=t.changeRating,n=t.rating,i=t.numberOfStars,s=t.starDimension,l=t.starSpacing,c=t.starRatedColor,u=t.starEmptyColor,p=t.starHoverColor,f=t.gradientPathName,d=t.ignoreInlineStyles,h=t.svgIconPath,m=t.svgIconViewBox,g=t.name,v=this.state.highestStarHovered;return Array.apply(null,Array(i)).map((function(t,b){var y=b+1,k=y<=n,x=v>0,_=y<=v,C=y===v,w=y>n&&y-1R.length&&R.push(e)}function N(e,t,r,n){var o=typeof e;"undefined"!==o&&"boolean"!==o||(e=null);var s=!1;if(null===e)s=!0;else switch(o){case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case i:case a:s=!0}}if(s)return r(n,e,""===t?"."+T(e,0):t),1;if(s=0,t=""===t?".":t+":",Array.isArray(e))for(var l=0;l?@[\]^_`{|}~-])/g;function c(e){return e.indexOf("\\")<0?e:e.replace(l,"$1")}function u(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!==(65535&e)&&65534!==(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function p(e){if(e>65535){var t=55296+((e-=65536)>>10),r=56320+(1023&e);return String.fromCharCode(t,r)}return String.fromCharCode(e)}var f=/&([a-z#][a-z0-9]{1,31});/gi,d=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function h(e,t){var r=0,n=o(t);return t!==n?n:35===t.charCodeAt(0)&&d.test(t)&&u(r="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?p(r):e}function m(e){return e.indexOf("&")<0?e:e.replace(f,h)}var g=/[&<>"]/,v=/[&<>"]/g,b={"&":"&","<":"<",">":">",'"':"""};function y(e){return b[e]}function k(e){return g.test(e)?e.replace(v,y):e}var x={};function _(e,t){return++t>=e.length-2?t:"paragraph_open"===e[t].type&&e[t].tight&&"inline"===e[t+1].type&&0===e[t+1].content.length&&"paragraph_close"===e[t+2].type&&e[t+2].tight?_(e,t+2):t}x.blockquote_open=function(){return"
\n"},x.blockquote_close=function(e,t){return"
"+C(e,t)},x.code=function(e,t){return e[t].block?"
"+k(e[t].content)+"
"+C(e,t):""+k(e[t].content)+""},x.fence=function(e,t,r,n,o){var i,s,l=e[t],u="",p=r.langPrefix;if(l.params){if(s=(i=l.params.split(/\s+/g)).join(" "),a(o.rules.fence_custom,i[0]))return o.rules.fence_custom[i[0]](e,t,r,n,o);u=' class="'+p+k(m(c(s)))+'"'}return"
"+(r.highlight&&r.highlight.apply(r.highlight,[l.content].concat(i))||k(l.content))+"
"+C(e,t)},x.fence_custom={},x.heading_open=function(e,t){return""},x.heading_close=function(e,t){return"\n"},x.hr=function(e,t,r){return(r.xhtmlOut?"
":"
")+C(e,t)},x.bullet_list_open=function(){return"
    \n"},x.bullet_list_close=function(e,t){return"
"+C(e,t)},x.list_item_open=function(){return"
  • "},x.list_item_close=function(){return"
  • \n"},x.ordered_list_open=function(e,t){var r=e[t];return"1?' start="'+r.order+'"':"")+">\n"},x.ordered_list_close=function(e,t){return""+C(e,t)},x.paragraph_open=function(e,t){return e[t].tight?"":"

    "},x.paragraph_close=function(e,t){var r=!(e[t].tight&&t&&"inline"===e[t-1].type&&!e[t-1].content);return(e[t].tight?"":"

    ")+(r?C(e,t):"")},x.link_open=function(e,t,r){var n=e[t].title?' title="'+k(m(e[t].title))+'"':"",o=r.linkTarget?' target="'+r.linkTarget+'"':"";return'"},x.link_close=function(){return""},x.image=function(e,t,r){var n=' src="'+k(e[t].src)+'"',o=e[t].title?' title="'+k(m(e[t].title))+'"':"";return""},x.table_open=function(){return"\n"},x.table_close=function(){return"
    \n"},x.thead_open=function(){return"\n"},x.thead_close=function(){return"\n"},x.tbody_open=function(){return"\n"},x.tbody_close=function(){return"\n"},x.tr_open=function(){return""},x.tr_close=function(){return"\n"},x.th_open=function(e,t){var r=e[t];return""},x.th_close=function(){return""},x.td_open=function(e,t){var r=e[t];return""},x.td_close=function(){return""},x.strong_open=function(){return""},x.strong_close=function(){return""},x.em_open=function(){return""},x.em_close=function(){return""},x.del_open=function(){return""},x.del_close=function(){return""},x.ins_open=function(){return""},x.ins_close=function(){return""},x.mark_open=function(){return""},x.mark_close=function(){return""},x.sub=function(e,t){return""+k(e[t].content)+""},x.sup=function(e,t){return""+k(e[t].content)+""},x.hardbreak=function(e,t,r){return r.xhtmlOut?"
    \n":"
    \n"},x.softbreak=function(e,t,r){return r.breaks?r.xhtmlOut?"
    \n":"
    \n":"\n"},x.text=function(e,t){return k(e[t].content)},x.htmlblock=function(e,t){return e[t].content},x.htmltag=function(e,t){return e[t].content},x.abbr_open=function(e,t){return''},x.abbr_close=function(){return""},x.footnote_ref=function(e,t){var r=Number(e[t].id+1).toString(),n="fnref"+r;return e[t].subId>0&&(n+=":"+e[t].subId),'['+r+"]"},x.footnote_block_open=function(e,t,r){return(r.xhtmlOut?'
    \n':'
    \n')+'
    \n
      \n'},x.footnote_block_close=function(){return"
    \n
    \n"},x.footnote_open=function(e,t){return'
  • '},x.footnote_close=function(){return"
  • \n"},x.footnote_anchor=function(e,t){var r="fnref"+Number(e[t].id+1).toString();return e[t].subId>0&&(r+=":"+e[t].subId),' \u21a9'},x.dl_open=function(){return"
    \n"},x.dt_open=function(){return"
    "},x.dd_open=function(){return"
    "},x.dl_close=function(){return"
    \n"},x.dt_close=function(){return"\n"},x.dd_close=function(){return"\n"};var C=x.getBreak=function(e,t){return(t=_(e,t))1)break;if(41===r&&--n<0)break;t++}return i!==t&&(o=c(e.src.slice(i,t)),!!e.parser.validateLink(o)&&(e.linkContent=o,e.pos=t,!0))}function I(e,t){var r,n=t,o=e.posMax,i=e.src.charCodeAt(t);if(34!==i&&39!==i&&40!==i)return!1;for(t++,40===i&&(i=41);t=e.length)&&!Z.test(e[t])}function D(e,t,r){return e.substr(0,t)+r+e.substr(t+1)}var F=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var t,r,n,o,i=e.tokens;if(!e.inlineMode)for(t=1,r=i.length-1;t0?a[t].count:1,n=0;n=0;t--)if("text"===(i=o[t]).type){for(l=0,a=i.content,u.lastIndex=0,c=i.level,s=[];p=u.exec(a);)u.lastIndex>l&&s.push({type:"text",content:a.slice(l,p.index+p[1].length),level:c}),s.push({type:"abbr_open",title:e.env.abbreviations[":"+p[2]],level:c++}),s.push({type:"text",content:p[2],level:c}),s.push({type:"abbr_close",level:--c}),l=u.lastIndex-p[3].length;s.length&&(l=0;i--)if("inline"===e.tokens[i].type)for(t=(o=e.tokens[i].children).length-1;t>=0;t--)"text"===(r=o[t]).type&&(n=r.content,n=(a=n).indexOf("(")<0?a:a.replace($,(function(e,t){return L[t.toLowerCase()]})),P.test(n)&&(n=n.replace(/\+-/g,"\xb1").replace(/\.{2,}/g,"\u2026").replace(/([?!])\u2026/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1\u2014$2").replace(/(^|\s)--(\s|$)/gm,"$1\u2013$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1\u2013$2")),r.content=n)}],["smartquotes",function(e){var t,r,n,o,i,a,s,l,c,u,p,f,d,h,m,g,v;if(e.options.typographer)for(v=[],m=e.tokens.length-1;m>=0;m--)if("inline"===e.tokens[m].type)for(g=e.tokens[m].children,v.length=0,t=0;t=0&&!(v[d].level<=s);d--);v.length=d+1,i=0,a=(n=r.content).length;e:for(;i=0&&(u=v[d],!(v[d].level=(o=e.eMarks[t])||42!==(r=e.src.charCodeAt(n++))&&45!==r&&43!==r||n=o)return-1;if((r=e.src.charCodeAt(n++))<48||r>57)return-1;for(;;){if(n>=o)return-1;if(!((r=e.src.charCodeAt(n++))>=48&&r<=57)){if(41===r||46===r)break;return-1}}return n=this.eMarks[e]},V.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;er;)if(t!==this.src.charCodeAt(--e))return e+1;return e},V.prototype.getLines=function(e,t,r,n){var o,i,a,s,l,c=e;if(e>=t)return"";if(c+1===t)return i=this.bMarks[c]+Math.min(this.tShift[c],r),a=n?this.eMarks[c]+1:this.eMarks[c],this.src.slice(i,a);for(s=new Array(t-e),o=0;cr&&(l=r),l<0&&(l=0),i=this.bMarks[c]+l,a=c+1]/,Q=/^<\/([a-zA-Z]{1,15})[\s>]/;function X(e,t){var r=e.bMarks[t]+e.blkIndent,n=e.eMarks[t];return e.src.substr(r,n-r)}function J(e,t){var r,n,o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return o>=i||126!==(n=e.src.charCodeAt(o++))&&58!==n||o===(r=e.skipSpaces(o))||r>=i?-1:r}var ee=[["code",function(e,t,r){var n,o;if(e.tShift[t]-e.blkIndent<4)return!1;for(o=n=t+1;n=4))break;o=++n}return e.line=n,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}],["fences",function(e,t,r,n){var o,i,a,s,l,c=!1,u=e.bMarks[t]+e.tShift[t],p=e.eMarks[t];if(u+3>p)return!1;if(126!==(o=e.src.charCodeAt(u))&&96!==o)return!1;if(l=u,(i=(u=e.skipChars(u,o))-l)<3)return!1;if((a=e.src.slice(u,p).trim()).indexOf("`")>=0)return!1;if(n)return!0;for(s=t;!(++s>=r)&&!((u=l=e.bMarks[s]+e.tShift[s])<(p=e.eMarks[s])&&e.tShift[s]=4)&&!((u=e.skipChars(u,o))-lg)return!1;if(62!==e.src.charCodeAt(m++))return!1;if(e.level>=e.options.maxNesting)return!1;if(n)return!0;for(32===e.src.charCodeAt(m)&&m++,l=e.blkIndent,e.blkIndent=0,s=[e.bMarks[t]],e.bMarks[t]=m,i=(m=m=g,a=[e.tShift[t]],e.tShift[t]=m-e.bMarks[t],p=e.parser.ruler.getRules("blockquote"),o=t+1;o=(g=e.eMarks[o]));o++)if(62!==e.src.charCodeAt(m++)){if(i)break;for(h=!1,f=0,d=p.length;f=g,a.push(e.tShift[o]),e.tShift[o]=m-e.bMarks[o];for(c=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:u=[t,0],level:e.level++}),e.parser.tokenize(e,t,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=c,u[1]=e.line,f=0;fl)return!1;if(42!==(o=e.src.charCodeAt(s++))&&45!==o&&95!==o)return!1;for(i=1;s=0)m=!0;else{if(!((p=W(e,t))>=0))return!1;m=!1}if(e.level>=e.options.maxNesting)return!1;if(h=e.src.charCodeAt(p-1),n)return!0;for(v=e.tokens.length,m?(u=e.bMarks[t]+e.tShift[t],d=Number(e.src.substr(u,p-u-1)),e.tokens.push({type:"ordered_list_open",order:d,lines:y=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:y=[t,0],level:e.level++}),o=t,b=!1,x=e.parser.ruler.getRules("list");o=e.eMarks[o]?1:g-p)>4&&(f=1),f<1&&(f=1),i=p-e.bMarks[o]+f,e.tokens.push({type:"list_item_open",lines:k=[t,0],level:e.level++}),s=e.blkIndent,l=e.tight,a=e.tShift[t],c=e.parentType,e.tShift[t]=g-e.bMarks[t],e.blkIndent=i,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,r,!0),e.tight&&!b||(S=!1),b=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=s,e.tShift[t]=a,e.tight=l,e.parentType=c,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,k[1]=o,g=e.bMarks[t],!(o>=r))&&!e.isEmpty(o)&&!(e.tShift[o]u)return!1;if(91!==e.src.charCodeAt(c))return!1;if(94!==e.src.charCodeAt(c+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(s=c+2;s=u||58!==e.src.charCodeAt(++s))&&(n||(s++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),l=e.src.slice(c+2,s-2),e.env.footnotes.refs[":"+l]=-1,e.tokens.push({type:"footnote_reference_open",label:l,level:e.level++}),o=e.bMarks[t],i=e.tShift[t],a=e.parentType,e.tShift[t]=e.skipSpaces(s)-s,e.bMarks[t]=s,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]=l)return!1;if(35!==(o=e.src.charCodeAt(s))||s>=l)return!1;for(i=1,o=e.src.charCodeAt(++s);35===o&&s6||ss&&32===e.src.charCodeAt(a-1)&&(l=a),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:i,lines:[t,e.line],level:e.level}),s=r)&&(!(e.tShift[a]3)&&(!((o=e.bMarks[a]+e.tShift[a])>=(i=e.eMarks[a]))&&((45===(n=e.src.charCodeAt(o))||61===n)&&(o=e.skipChars(o,n),!((o=e.skipSpaces(o))3||s+2>=l)return!1;if(60!==e.src.charCodeAt(s))return!1;if(33===(o=e.src.charCodeAt(s+1))||63===o){if(n)return!0}else{if(47!==o&&!function(e){var t=32|e;return t>=97&&t<=122}(o))return!1;if(47===o){if(!(i=e.src.slice(s,l).match(Q)))return!1}else if(!(i=e.src.slice(s,l).match(K)))return!1;if(!0!==Y[i[1].toLowerCase()])return!1;if(n)return!0}for(a=t+1;ar)return!1;if(l=t+1,e.tShift[l]=e.eMarks[l])return!1;if(124!==(o=e.src.charCodeAt(a))&&45!==o&&58!==o)return!1;if(i=X(e,t+1),!/^[-:| ]+$/.test(i))return!1;if((c=i.split("|"))<=2)return!1;for(p=[],s=0;s=0;if(u=t+1,e.isEmpty(u)&&++u>r)return!1;if(e.tShift[u]=e.options.maxNesting)return!1;c=e.tokens.length,e.tokens.push({type:"dl_open",lines:l=[t,0],level:e.level++}),a=t,i=u;e:for(;;){for(v=!0,g=!1,e.tokens.push({type:"dt_open",lines:[a,a],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(a,a+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[a,a],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:s=[u,0],level:e.level++}),m=e.tight,f=e.ddIndent,p=e.blkIndent,h=e.tShift[i],d=e.parentType,e.blkIndent=e.ddIndent=e.tShift[i]+2,e.tShift[i]=o-e.bMarks[i],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,i,r,!0),e.tight&&!g||(v=!1),g=e.line-i>1&&e.isEmpty(e.line-1),e.tShift[i]=h,e.tight=m,e.parentType=d,e.blkIndent=p,e.ddIndent=f,e.tokens.push({type:"dd_close",level:--e.level}),s[1]=u=e.line,u>=r)break e;if(e.tShift[u]=r)break;if(a=u,e.isEmpty(a))break;if(e.tShift[a]=r)break;if(e.isEmpty(i)&&i++,i>=r)break;if(e.tShift[i]3)){for(o=!1,i=0,a=s.length;i=r))&&!(e.tShift[a]=0&&(e=e.replace(re,(function(t,r){var n;return 10===e.charCodeAt(r)?(i=r+1,a=0,t):(n=" ".slice((r-i-a)%4),a=r-i+1,n)}))),o=new V(e,this,t,r,n),this.tokenize(o,o.line,o.lineMax)};for(var ae=[],se=0;se<256;se++)ae.push(0);function le(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function ce(e,t){var r,n,o,i=t,a=!0,s=!0,l=e.posMax,c=e.src.charCodeAt(t);for(r=t>0?e.src.charCodeAt(t-1):-1;i=l&&(a=!1),(o=i-t)>=4?a=s=!1:(32!==(n=i?@[]^_`{|}~-".split("").forEach((function(e){ae[e.charCodeAt(0)]=1}));var ue=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var pe=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var fe=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],de=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,he=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function me(e,t){return e=e.source,t=t||"",function r(n,o){return n?(o=o.source||o,e=e.replace(n,o),r):new RegExp(e,t)}}var ge=me(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),ve=me(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",ge)(),be=me(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",ve)(),ye=me(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",be)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/|/)("processing",/<[?].*?[?]>/)("declaration",/]*>/)("cdata",//)();var ke=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,xe=/^&([a-z][a-z0-9]{1,31});/i;var _e=[["text",function(e,t){for(var r=e.pos;r=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){for(var i=r-2;i>=0;i--)if(32!==e.pending.charCodeAt(i)){e.pending=e.pending.substring(0,i+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o=s)return!1;if(126!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(i=l>0?e.src.charCodeAt(l-1):-1,a=e.src.charCodeAt(l+2),126===i)return!1;if(126===a)return!1;if(32===a||10===a)return!1;for(n=l+2;nl+3)return e.pos+=n-l,t||(e.pending+=e.src.slice(l,n)),!0;for(e.pos=l+2,o=1;e.pos+1=s)return!1;if(43!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(i=l>0?e.src.charCodeAt(l-1):-1,a=e.src.charCodeAt(l+2),43===i)return!1;if(43===a)return!1;if(32===a||10===a)return!1;for(n=l+2;n=s)return!1;if(61!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(i=l>0?e.src.charCodeAt(l-1):-1,a=e.src.charCodeAt(l+2),61===i)return!1;if(61===a)return!1;if(32===a||10===a)return!1;for(n=l+2;n=e.options.maxNesting)return!1;for(e.pos=u+r,s=[r];e.pos=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=i+1;e.pos=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=i+1;e.pos=e.options.maxNesting)return!1;if(r=d+1,(n=A(e,d))<0)return!1;if((s=n+1)=f)return!1;for(d=s,R(e,s)?(i=e.linkContent,s=e.pos):i="",d=s;s=f||41!==e.src.charCodeAt(s))return e.pos=p,!1;s++}else{if(e.linkLevel>0)return!1;for(;s=0?o=e.src.slice(d,s++):s=d-1),o||("undefined"===typeof o&&(s=n+1),o=e.src.slice(r,n)),!(l=e.env.references[z(o)]))return e.pos=p,!1;i=l.href,a=l.title}return t||(e.pos=r,e.posMax=n,u?e.push({type:"image",src:i,title:a,alt:e.src.substr(r,n-r),level:e.level}):(e.push({type:"link_open",href:i,title:a,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=s,e.posMax=f,!0}],["footnote_inline",function(e,t){var r,n,o,i,a=e.posMax,s=e.pos;return!(s+2>=a)&&(94===e.src.charCodeAt(s)&&(91===e.src.charCodeAt(s+1)&&(!(e.level>=e.options.maxNesting)&&(r=s+2,!((n=A(e,s+1))<0)&&(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=r,e.posMax=n,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,i=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(i)},e.linkLevel--),e.pos=n+1,e.posMax=a,!0)))))}],["footnote_ref",function(e,t){var r,n,o,i,a=e.posMax,s=e.pos;if(s+3>a)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(s))return!1;if(94!==e.src.charCodeAt(s+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(n=s+2;n=a)&&(n++,r=e.src.slice(s+2,n-1),"undefined"!==typeof e.env.footnotes.refs[":"+r]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+r]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:r,count:0},e.env.footnotes.refs[":"+r]=o):o=e.env.footnotes.refs[":"+r],i=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:i,level:e.level})),e.pos=n,e.posMax=a,!0)))}],["autolink",function(e,t){var r,n,o,i,a,s=e.pos;return 60===e.src.charCodeAt(s)&&(!((r=e.src.slice(s)).indexOf(">")<0)&&((n=r.match(he))?!(fe.indexOf(n[1].toLowerCase())<0)&&(a=O(i=n[0].slice(1,-1)),!!e.parser.validateLink(i)&&(t||(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:i,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=n[0].length,!0)):!!(o=r.match(de))&&(a=O("mailto:"+(i=o[0].slice(1,-1))),!!e.parser.validateLink(a)&&(t||(e.push({type:"link_open",href:a,level:e.level}),e.push({type:"text",content:i,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0))))}],["htmltag",function(e,t){var r,n,o,i=e.pos;return!!e.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(i)||i+2>=o)&&(!(33!==(r=e.src.charCodeAt(i+1))&&63!==r&&47!==r&&!function(e){var t=32|e;return t>=97&&t<=122}(r))&&(!!(n=e.src.slice(i).match(ye))&&(t||e.push({type:"htmltag",content:e.src.slice(i,i+n[0].length),level:e.level}),e.pos+=n[0].length,!0))))}],["entity",function(e,t){var r,n,i=e.pos,a=e.posMax;if(38!==e.src.charCodeAt(i))return!1;if(i+10)e.pos=r;else{for(t=0;t=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Ce.prototype.parse=function(e,t,r,n){var o=new E(e,this,t,r,n);this.tokenize(o)};var Se={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"\u201c\u201d\u2018\u2019",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function Ee(e,t,r){this.src=t,this.env=r,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function Ae(e,t){"string"!==typeof e&&(t=e,e="default"),t&&null!=t.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new Ce,this.block=new te,this.core=new U,this.renderer=new w,this.ruler=new S,this.options={},this.configure(Se[e]),this.set(t||{})}Ae.prototype.set=function(e){s(this.options,e)},Ae.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(r){e.components[r].rules&&t[r].ruler.enable(e.components[r].rules,!0)}))},Ae.prototype.use=function(e,t){return e(this,t),this},Ae.prototype.parse=function(e,t){var r=new Ee(this,e,t);return this.core.process(r),r.tokens},Ae.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Ae.prototype.parseInline=function(e,t){var r=new Ee(this,e,t);return r.inlineMode=!0,this.core.process(r),r.tokens},Ae.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)}}}]);