@intlayer/design-system 2.0.2
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/LICENSE +21 -0
- package/README.md +30 -0
- package/dist/.vite/manifest.json +953 -0
- package/dist/MarkDownRender-BeQGOIow.cjs +14 -0
- package/dist/MarkDownRender-gURA8GAt.js +315 -0
- package/dist/StringWrapper-CW70GPXq.js +28 -0
- package/dist/StringWrapper-DUDqtkwz.cjs +1 -0
- package/dist/check-BLEiR8OY.js +12 -0
- package/dist/check-rhNgx2ZQ.cjs +6 -0
- package/dist/components/Accordion/Accordion.cjs.js +8 -0
- package/dist/components/Accordion/Accordion.d.ts +10 -0
- package/dist/components/Accordion/Accordion.es.js +48 -0
- package/dist/components/Accordion/index.cjs.js +1 -0
- package/dist/components/Accordion/index.d.ts +1 -0
- package/dist/components/Accordion/index.es.js +5 -0
- package/dist/components/Avatar/index.cjs.js +6 -0
- package/dist/components/Avatar/index.d.ts +9 -0
- package/dist/components/Avatar/index.es.js +71 -0
- package/dist/components/Button/index.cjs.js +6 -0
- package/dist/components/Button/index.d.ts +22 -0
- package/dist/components/Button/index.es.js +306 -0
- package/dist/components/Container/index.cjs.js +7 -0
- package/dist/components/Container/index.d.ts +23 -0
- package/dist/components/Container/index.es.js +152 -0
- package/dist/components/ContentEditor/ContentEditor.cjs.js +5 -0
- package/dist/components/ContentEditor/ContentEditor.d.ts +8 -0
- package/dist/components/ContentEditor/ContentEditor.es.js +75 -0
- package/dist/components/ContentEditor/index.cjs.js +1 -0
- package/dist/components/ContentEditor/index.d.ts +1 -0
- package/dist/components/ContentEditor/index.es.js +5 -0
- package/dist/components/ContentSelector/ContentSelector.cjs.js +1 -0
- package/dist/components/ContentSelector/ContentSelector.d.ts +11 -0
- package/dist/components/ContentSelector/ContentSelector.es.js +14 -0
- package/dist/components/ContentSelector/index.cjs.js +1 -0
- package/dist/components/ContentSelector/index.d.ts +1 -0
- package/dist/components/ContentSelector/index.es.js +5 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.cjs.js +1 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.d.ts +20 -0
- package/dist/components/DictionaryEditor/DictionaryEditor.es.js +25 -0
- package/dist/components/DictionaryEditor/ItemLayout.cjs.js +1 -0
- package/dist/components/DictionaryEditor/ItemLayout.d.ts +16 -0
- package/dist/components/DictionaryEditor/ItemLayout.es.js +81 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/ArrayWrapper.es.js +10 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/EnumerationWrapper.es.js +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.es.js +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.d.ts +8 -0
- package/dist/components/DictionaryEditor/NodeWrapper/StringWrapper.es.js +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.d.ts +9 -0
- package/dist/components/DictionaryEditor/NodeWrapper/TranslationWrapper.es.js +7 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.cjs.js +1 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.d.ts +19 -0
- package/dist/components/DictionaryEditor/NodeWrapper/index.es.js +9 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.cjs.js +1 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.d.ts +10 -0
- package/dist/components/DictionaryEditor/ValidDictionaryChangeButtons.es.js +40 -0
- package/dist/components/DictionaryEditor/index.cjs.js +1 -0
- package/dist/components/DictionaryEditor/index.d.ts +1 -0
- package/dist/components/DictionaryEditor/index.es.js +5 -0
- package/dist/components/DropDown/index.cjs.js +5 -0
- package/dist/components/DropDown/index.d.ts +3 -0
- package/dist/components/DropDown/index.es.js +50 -0
- package/dist/components/DropDown/types.cjs.js +1 -0
- package/dist/components/DropDown/types.d.ts +15 -0
- package/dist/components/DropDown/types.es.js +1 -0
- package/dist/components/Footer/index.cjs.js +1 -0
- package/dist/components/Footer/index.d.ts +17 -0
- package/dist/components/Footer/index.es.js +64 -0
- package/dist/components/Headers/index.cjs.js +1 -0
- package/dist/components/Headers/index.d.ts +5 -0
- package/dist/components/Headers/index.es.js +35 -0
- package/dist/components/IDE/CodeRender.cjs.js +11 -0
- package/dist/components/IDE/CodeRender.d.ts +10 -0
- package/dist/components/IDE/CodeRender.es.js +833 -0
- package/dist/components/IDE/IDE.cjs.js +1 -0
- package/dist/components/IDE/IDE.d.ts +10 -0
- package/dist/components/IDE/IDE.es.js +124 -0
- package/dist/components/IDE/MarkDownRender.cjs.js +1 -0
- package/dist/components/IDE/MarkDownRender.d.ts +8 -0
- package/dist/components/IDE/MarkDownRender.es.js +7 -0
- package/dist/components/IDE/index.cjs.js +1 -0
- package/dist/components/IDE/index.d.ts +2 -0
- package/dist/components/IDE/index.es.js +7 -0
- package/dist/components/Loader/index.cjs.js +1 -0
- package/dist/components/Loader/index.d.ts +6 -0
- package/dist/components/Loader/index.es.js +21 -0
- package/dist/components/Loader/spinner.cjs.js +1 -0
- package/dist/components/Loader/spinner.d.ts +7 -0
- package/dist/components/Loader/spinner.es.js +22 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.js +6 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts +11 -0
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.es.js +571 -0
- package/dist/components/LocaleSwitcherDropDown/index.cjs.js +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.d.ts +1 -0
- package/dist/components/LocaleSwitcherDropDown/index.es.js +5 -0
- package/dist/components/Logo/LogoCircle.cjs.js +1 -0
- package/dist/components/Logo/LogoCircle.d.ts +4 -0
- package/dist/components/Logo/LogoCircle.es.js +12 -0
- package/dist/components/Logo/LogoNoFrame.cjs.js +1 -0
- package/dist/components/Logo/LogoNoFrame.d.ts +4 -0
- package/dist/components/Logo/LogoNoFrame.es.js +28 -0
- package/dist/components/Logo/LogoSquare.cjs.js +1 -0
- package/dist/components/Logo/LogoSquare.d.ts +4 -0
- package/dist/components/Logo/LogoSquare.es.js +12 -0
- package/dist/components/Logo/LogoSquircle.cjs.js +1 -0
- package/dist/components/Logo/LogoSquircle.d.ts +4 -0
- package/dist/components/Logo/LogoSquircle.es.js +17 -0
- package/dist/components/Logo/LogoTextOnly.cjs.js +1 -0
- package/dist/components/Logo/LogoTextOnly.d.ts +4 -0
- package/dist/components/Logo/LogoTextOnly.es.js +28 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextBelowCircle.es.js +30 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextBelowNoFrame.es.js +28 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextBelowSquircle.es.js +17 -0
- package/dist/components/Logo/LogoWithTextCircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextCircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextCircle.es.js +51 -0
- package/dist/components/Logo/LogoWithTextNoFrame.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextNoFrame.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextNoFrame.es.js +28 -0
- package/dist/components/Logo/LogoWithTextSquircle.cjs.js +1 -0
- package/dist/components/Logo/LogoWithTextSquircle.d.ts +4 -0
- package/dist/components/Logo/LogoWithTextSquircle.es.js +17 -0
- package/dist/components/Logo/index.cjs.js +1 -0
- package/dist/components/Logo/index.d.ts +20 -0
- package/dist/components/Logo/index.es.js +65 -0
- package/dist/components/MarkDownRender/index.cjs.js +1 -0
- package/dist/components/MarkDownRender/index.d.ts +8 -0
- package/dist/components/MarkDownRender/index.es.js +84 -0
- package/dist/components/MaxHeightSmoother/index.cjs.js +6 -0
- package/dist/components/MaxHeightSmoother/index.d.ts +11 -0
- package/dist/components/MaxHeightSmoother/index.es.js +52 -0
- package/dist/components/MaxWidthSmoother/index.cjs.js +6 -0
- package/dist/components/MaxWidthSmoother/index.d.ts +11 -0
- package/dist/components/MaxWidthSmoother/index.es.js +39 -0
- package/dist/components/Modal/index.cjs.js +1 -0
- package/dist/components/Modal/index.d.ts +9 -0
- package/dist/components/Modal/index.es.js +64 -0
- package/dist/components/Navbar/Burger.cjs.js +1 -0
- package/dist/components/Navbar/Burger.d.ts +7 -0
- package/dist/components/Navbar/Burger.es.js +84 -0
- package/dist/components/Navbar/DesktopNavbar.cjs.js +7 -0
- package/dist/components/Navbar/DesktopNavbar.d.ts +10 -0
- package/dist/components/Navbar/DesktopNavbar.es.js +76 -0
- package/dist/components/Navbar/MobileNavbar.cjs.js +9 -0
- package/dist/components/Navbar/MobileNavbar.d.ts +12 -0
- package/dist/components/Navbar/MobileNavbar.es.js +199 -0
- package/dist/components/Navbar/index.cjs.js +1 -0
- package/dist/components/Navbar/index.d.ts +20 -0
- package/dist/components/Navbar/index.es.js +25 -0
- package/dist/components/Navbar/useNavigation.cjs.js +1 -0
- package/dist/components/Navbar/useNavigation.d.ts +5 -0
- package/dist/components/Navbar/useNavigation.es.js +39 -0
- package/dist/components/Popover/index.cjs.js +1 -0
- package/dist/components/Popover/index.d.ts +8 -0
- package/dist/components/Popover/index.es.js +48 -0
- package/dist/components/PressableDiv/PressableDiv.cjs.js +1 -0
- package/dist/components/PressableDiv/PressableDiv.d.ts +10 -0
- package/dist/components/PressableDiv/PressableDiv.es.js +62 -0
- package/dist/components/PressableDiv/index.cjs.js +1 -0
- package/dist/components/PressableDiv/index.d.ts +1 -0
- package/dist/components/PressableDiv/index.es.js +5 -0
- package/dist/components/ProfileDropDown/index.cjs.js +6 -0
- package/dist/components/ProfileDropDown/index.d.ts +6 -0
- package/dist/components/ProfileDropDown/index.es.js +37 -0
- package/dist/components/RedirectionButton/RedirectionButton.cjs.js +6 -0
- package/dist/components/RedirectionButton/RedirectionButton.d.ts +8 -0
- package/dist/components/RedirectionButton/RedirectionButton.es.js +42 -0
- package/dist/components/RedirectionButton/index.cjs.js +1 -0
- package/dist/components/RedirectionButton/index.d.ts +1 -0
- package/dist/components/RedirectionButton/index.es.js +5 -0
- package/dist/components/RightDrawer/RightDrawer.cjs.js +8 -0
- package/dist/components/RightDrawer/RightDrawer.d.ts +16 -0
- package/dist/components/RightDrawer/RightDrawer.es.js +118 -0
- package/dist/components/RightDrawer/index.cjs.js +1 -0
- package/dist/components/RightDrawer/index.d.ts +2 -0
- package/dist/components/RightDrawer/index.es.js +8 -0
- package/dist/components/RightDrawer/useRightDrawerStore.cjs.js +1 -0
- package/dist/components/RightDrawer/useRightDrawerStore.d.ts +8 -0
- package/dist/components/RightDrawer/useRightDrawerStore.es.js +15 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.d.ts +10 -0
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.es.js +69 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.d.ts +10 -0
- package/dist/components/ThemeSwitcherDropDown/MobileThemeSwitcher.es.js +65 -0
- package/dist/components/ThemeSwitcherDropDown/index.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/index.d.ts +3 -0
- package/dist/components/ThemeSwitcherDropDown/index.es.js +9 -0
- package/dist/components/ThemeSwitcherDropDown/types.cjs.js +1 -0
- package/dist/components/ThemeSwitcherDropDown/types.d.ts +5 -0
- package/dist/components/ThemeSwitcherDropDown/types.es.js +5 -0
- package/dist/components/index.cjs.js +1 -0
- package/dist/components/index.d.ts +22 -0
- package/dist/components/index.es.js +61 -0
- package/dist/createLucideIcon-DlZEiEGq.js +80 -0
- package/dist/createLucideIcon-ZOnO-fn6.cjs +21 -0
- package/dist/hooks/index.cjs.js +1 -0
- package/dist/hooks/index.d.ts +5 -0
- package/dist/hooks/index.es.js +13 -0
- package/dist/hooks/useDevice.cjs.js +1 -0
- package/dist/hooks/useDevice.d.ts +8 -0
- package/dist/hooks/useDevice.es.js +48 -0
- package/dist/hooks/useGetElementOrWindow.cjs.js +1 -0
- package/dist/hooks/useGetElementOrWindow.d.ts +1 -0
- package/dist/hooks/useGetElementOrWindow.es.js +11 -0
- package/dist/hooks/useIsMounted.cjs.js +1 -0
- package/dist/hooks/useIsMounted.d.ts +1 -0
- package/dist/hooks/useIsMounted.es.js +11 -0
- package/dist/hooks/useScrollBlockage/index.cjs.js +1 -0
- package/dist/hooks/useScrollBlockage/index.d.ts +14 -0
- package/dist/hooks/useScrollBlockage/index.es.js +24 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.cjs.js +1 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +12 -0
- package/dist/hooks/useScrollBlockage/useScrollBlockageStore.es.js +40 -0
- package/dist/hooks/useScrollDetection.cjs.js +1 -0
- package/dist/hooks/useScrollDetection.d.ts +13 -0
- package/dist/hooks/useScrollDetection.es.js +41 -0
- package/dist/index-B2ncVbtX.cjs +1 -0
- package/dist/index-D-PWvdb-.js +91 -0
- package/dist/intlayer-editor/src/client/renderContentEditor.d.ts +14 -0
- package/dist/jsx-runtime-D6agescH.cjs +30 -0
- package/dist/jsx-runtime-Tw_Kw2GZ.js +638 -0
- package/dist/localeList-CaRF-907.js +300 -0
- package/dist/localeList-DlUgKn8J.cjs +1 -0
- package/dist/motion-BuKul-u9.cjs +1 -0
- package/dist/motion-CP5YERk7.js +4517 -0
- package/dist/styled-components.browser.esm-D6kkzXl4.js +1085 -0
- package/dist/styled-components.browser.esm-GqWwDlfY.cjs +58 -0
- package/dist/sun-BQYZHcpc.cjs +16 -0
- package/dist/sun-BrKC5Qwg.js +49 -0
- package/dist/utils/capitalize.cjs.js +1 -0
- package/dist/utils/capitalize.d.ts +1 -0
- package/dist/utils/capitalize.es.js +5 -0
- package/dist/utils/cn.cjs.js +1 -0
- package/dist/utils/cn.d.ts +3 -0
- package/dist/utils/cn.es.js +2338 -0
- package/dist/x-BKwnSvvj.js +15 -0
- package/dist/x-DIXoN4xe.cjs +6 -0
- package/package.json +84 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";"use strict";const G=require("./jsx-runtime-D6agescH.cjs"),we=require("react"),$e=require("./components/IDE/CodeRender.cjs.js");function Ee(n){const i=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(n){for(const l in n)if(l!=="default"){const o=Object.getOwnPropertyDescriptor(n,l);Object.defineProperty(i,l,o.get?o:{enumerable:!0,get:()=>n[l]})}}return i.default=n,Object.freeze(i)}const T=Ee(we);function C(){return C=Object.assign?Object.assign.bind():function(n){for(var i=1;i<arguments.length;i++){var l=arguments[i];for(var o in l)Object.prototype.hasOwnProperty.call(l,o)&&(n[o]=l[o])}return n},C.apply(this,arguments)}const Se=["children","options"];var W,Z;(function(n){n.blockQuote="0",n.breakLine="1",n.breakThematic="2",n.codeBlock="3",n.codeFenced="4",n.codeInline="5",n.footnote="6",n.footnoteReference="7",n.gfmTask="8",n.heading="9",n.headingSetext="10",n.htmlBlock="11",n.htmlComment="12",n.htmlSelfClosing="13",n.image="14",n.link="15",n.linkAngleBraceStyleDetector="16",n.linkBareUrlDetector="17",n.linkMailtoDetector="18",n.newlineCoalescer="19",n.orderedList="20",n.paragraph="21",n.ref="22",n.refImage="23",n.refLink="24",n.table="25",n.tableSeparator="26",n.text="27",n.textBolded="28",n.textEmphasized="29",n.textEscaped="30",n.textMarked="31",n.textStrikethroughed="32",n.unorderedList="33"})(W||(W={})),function(n){n[n.MAX=0]="MAX",n[n.HIGH=1]="HIGH",n[n.MED=2]="MED",n[n.LOW=3]="LOW",n[n.MIN=4]="MIN"}(Z||(Z={}));const V=["allowFullScreen","allowTransparency","autoComplete","autoFocus","autoPlay","cellPadding","cellSpacing","charSet","className","classId","colSpan","contentEditable","contextMenu","crossOrigin","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","inputMode","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","radioGroup","readOnly","rowSpan","spellCheck","srcDoc","srcLang","srcSet","tabIndex","useMap"].reduce((n,i)=>(n[i.toLowerCase()]=i,n),{for:"htmlFor"}),X={amp:"&",apos:"'",gt:">",lt:"<",nbsp:" ",quot:"“"},Oe=["style","script"],Ce=/([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi,Re=/mailto:/i,Me=/\n{2,}$/,ne=/^(\s*>[\s\S]*?)(?=\n{2,})/,je=/^ *> ?/gm,Ae=/^ {2,}\n/,Te=/^(?:( *[-*_])){3,} *(?:\n *)+\n/,te=/^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/,re=/^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/,Le=/^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/,ze=/^(?:\n *)*\n/,Ie=/\r\n?/g,_e=/^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/,De=/^\[\^([^\]]+)]/,Ne=/\f/g,Ue=/^---[ \t]*\n(.|\n)*\n---[ \t]*\n/,Be=/^\s*?\[(x|\s)\]/,ie=/^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,le=/^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/,oe=/^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/,B=/^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i,Pe=/&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi,ce=/^<!--[\s\S]*?(?:-->)/,He=/^(data|aria|x)-[a-z_][a-z\d_.-]*$/,P=/^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i,qe=/^\{.*\}$/,Fe=/^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/,Ge=/^<([^ >]+@[^ >]+)>/,We=/^<([^ >]+:\/[^ >]+)>/,Ze=/-([a-z])?/gi,ae=/^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/,Ve=/^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/,Xe=/^!\[([^\]]*)\] ?\[([^\]]*)\]/,Qe=/^\[([^\]]*)\] ?\[([^\]]*)\]/,Je=/(\[|\])/g,Ke=/(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/,Ye=/\t/g,en=/(^ *\||\| *$)/g,nn=/^ *:-+: *$/,tn=/^ *:-+ *$/,rn=/^ *-+: *$/,z="((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)",ln=new RegExp(`^([*_])\\1${z}\\1\\1(?!\\1)`),on=new RegExp(`^([*_])${z}\\1(?!\\1|\\w)`),cn=new RegExp(`^==${z}==`),an=new RegExp(`^~~${z}~~`),sn=/^\\([^0-9A-Za-z\s])/,dn=/^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i,un=/^\n+/,pn=/^([ \t]*)/,fn=/\\([^\\])/g,Q=/ *\n+$/,mn=/(?:^|\n)( *)$/,H="(?:\\d+\\.)",q="(?:[*+-])";function se(n){return"( *)("+(n===1?H:q)+") +"}const de=se(1),ue=se(2);function pe(n){return new RegExp("^"+(n===1?de:ue))}const hn=pe(1),gn=pe(2);function fe(n){return new RegExp("^"+(n===1?de:ue)+"[^\\n]*(?:\\n(?!\\1"+(n===1?H:q)+" )[^\\n]*)*(\\n|$)","gm")}const me=fe(1),he=fe(2);function ge(n){const i=n===1?H:q;return new RegExp("^( *)("+i+") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1"+i+" (?!"+i+" ))\\n*|\\s*\\n*$)")}const ye=ge(1),ke=ge(2);function J(n,i){const l=i===1,o=l?ye:ke,p=l?me:he,h=l?hn:gn;return{match(f,s,d){const b=mn.exec(d);return b&&(s.list||!s.inline&&!s.simple)?o.exec(f=b[1]+f):null},order:1,parse(f,s,d){const b=l?+f[2]:void 0,O=f[0].replace(Me,`
|
|
2
|
+
`).match(p);let M=!1;return{items:O.map(function(j,e){const r=h.exec(j)[0].length,t=new RegExp("^ {1,"+r+"}","gm"),a=j.replace(t,"").replace(h,""),c=e===O.length-1,u=a.indexOf(`
|
|
3
|
+
|
|
4
|
+
`)!==-1||c&&M;M=u;const m=d.inline,k=d.list;let x;d.list=!0,u?(d.inline=!1,x=a.replace(Q,`
|
|
5
|
+
|
|
6
|
+
`)):(d.inline=!0,x=a.replace(Q,""));const v=s(x,d);return d.inline=m,d.list=k,v}),ordered:l,start:b}},render:(f,s,d)=>n(f.ordered?"ol":"ul",{key:d.key,start:f.type==="20"?f.start:void 0},f.items.map(function(b,O){return n("li",{key:O},s(b,d))}))}}const yn=new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`),kn=/^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/,xe=[ne,te,re,ie,oe,le,ce,ae,me,ye,he,ke],xn=[...xe,/^[^\n]+(?: \n|\n{2,})/,B,P];function bn(n){return n.replace(/[ÀÁÂÃÄÅàáâãä忯]/g,"a").replace(/[çÇ]/g,"c").replace(/[ðÐ]/g,"d").replace(/[ÈÉÊËéèêë]/g,"e").replace(/[ÏïÎîÍíÌì]/g,"i").replace(/[Ññ]/g,"n").replace(/[øØœŒÕõÔôÓóÒò]/g,"o").replace(/[ÜüÛûÚúÙù]/g,"u").replace(/[ŸÿÝý]/g,"y").replace(/[^a-z0-9- ]/gi,"").replace(/ /gi,"-").toLowerCase()}function vn(n){return rn.test(n)?"right":nn.test(n)?"center":tn.test(n)?"left":null}function K(n,i,l,o){const p=l.inTable;l.inTable=!0;let h=n.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((s,d)=>(d.trim()==="|"?s.push(o?{type:"26"}:{type:"27",text:d}):d!==""&&s.push.apply(s,i(d,l)),s),[]);l.inTable=p;let f=[[]];return h.forEach(function(s,d){s.type==="26"?d!==0&&d!==h.length-1&&f.push([]):(s.type!=="27"||h[d+1]!=null&&h[d+1].type!=="26"||(s.text=s.text.trimEnd()),f[f.length-1].push(s))}),f}function wn(n,i,l){l.inline=!0;const o=n[2]?n[2].replace(en,"").split("|").map(vn):[],p=n[3]?function(f,s,d){return f.trim().split(`
|
|
7
|
+
`).map(function(b){return K(b,s,d,!0)})}(n[3],i,l):[],h=K(n[1],i,l,!!p.length);return l.inline=!1,p.length?{align:o,cells:p,header:h,type:"25"}:{children:h,type:"21"}}function Y(n,i){return n.align[i]==null?{}:{textAlign:n.align[i]}}function E(n){return function(i,l){return l.inline?n.exec(i):null}}function S(n){return function(i,l){return l.inline||l.simple?n.exec(i):null}}function w(n){return function(i,l){return l.inline||l.simple?null:n.exec(i)}}function A(n){return function(i){return n.exec(i)}}function $n(n,i,l){if(i.inline||i.simple||l&&!l.endsWith(`
|
|
8
|
+
`))return null;let o="";n.split(`
|
|
9
|
+
`).every(h=>!xe.some(f=>f.test(h))&&(o+=h+`
|
|
10
|
+
`,h.trim()));const p=o.trimEnd();return p==""?null:[o,p]}function R(n){try{if(decodeURIComponent(n).replace(/[^A-Za-z0-9/:]/g,"").match(/^\s*(javascript|vbscript|data(?!:image)):/i))return}catch{return null}return n}function ee(n){return n.replace(fn,"$1")}function L(n,i,l){const o=l.inline||!1,p=l.simple||!1;l.inline=!0,l.simple=!0;const h=n(i,l);return l.inline=o,l.simple=p,h}function En(n,i,l){const o=l.inline||!1,p=l.simple||!1;l.inline=!1,l.simple=!0;const h=n(i,l);return l.inline=o,l.simple=p,h}function Sn(n,i,l){const o=l.inline||!1;l.inline=!1;const p=n(i,l);return l.inline=o,p}const _=(n,i,l)=>({children:L(i,n[1],l)});function D(){return{}}function N(){return null}function On(...n){return n.filter(Boolean).join(" ")}function U(n,i,l){let o=n;const p=i.split(".");for(;p.length&&(o=o[p[0]],o!==void 0);)p.shift();return o||l}function Cn(n="",i={}){i.overrides=i.overrides||{},i.slugify=i.slugify||bn,i.namedCodesToUnicode=i.namedCodesToUnicode?C({},X,i.namedCodesToUnicode):X;const l=i.createElement||T.createElement;function o(e,r,...t){const a=U(i.overrides,`${e}.props`,{});return l(function(c,u){const m=U(u,c);return m?typeof m=="function"||typeof m=="object"&&"render"in m?m:U(u,`${c}.component`,c):c}(e,i.overrides),C({},r,a,{className:On(r==null?void 0:r.className,a.className)||void 0}),...t)}function p(e){e=e.replace(Ue,"");let r=!1;i.forceInline?r=!0:i.forceBlock||(r=Ke.test(e)===!1);const t=O(b(r?e:`${e.trimEnd().replace(un,"")}
|
|
11
|
+
|
|
12
|
+
`,{inline:r}));for(;typeof t[t.length-1]=="string"&&!t[t.length-1].trim();)t.pop();if(i.wrapper===null)return t;const a=i.wrapper||(r?"span":"div");let c;if(t.length>1||i.forceWrapper)c=t;else{if(t.length===1)return c=t[0],typeof c=="string"?o("span",{key:"outer"},c):c;c=null}return T.createElement(a,{key:"outer"},c)}function h(e){const r=e.match(Ce);return r?r.reduce(function(t,a,c){const u=a.indexOf("=");if(u!==-1){const m=function(g){return g.indexOf("-")!==-1&&g.match(He)===null&&(g=g.replace(Ze,function(y,$){return $.toUpperCase()})),g}(a.slice(0,u)).trim(),k=function(g){const y=g[0];return(y==='"'||y==="'")&&g.length>=2&&g[g.length-1]===y?g.slice(1,-1):g}(a.slice(u+1).trim()),x=V[m]||m,v=t[x]=function(g,y){return g==="style"?y.split(/;\s?/).reduce(function($,I){const F=I.slice(0,I.indexOf(":"));return $[F.trim().replace(/(-[a-z])/g,ve=>ve[1].toUpperCase())]=I.slice(F.length+1).trim(),$},{}):g==="href"||g==="src"?R(y):(y.match(qe)&&(y=y.slice(1,y.length-1)),y==="true"||y!=="false"&&y)}(m,k);typeof v=="string"&&(B.test(v)||P.test(v))&&(t[x]=T.cloneElement(p(v.trim()),{key:c}))}else a!=="style"&&(t[V[a]||a]=!0);return t},{}):null}const f=[],s={},d={0:{match:w(ne),order:1,parse:(e,r,t)=>({children:r(e[0].replace(je,""),t)}),render:(e,r,t)=>o("blockquote",{key:t.key},r(e.children,t))},1:{match:A(Ae),order:1,parse:D,render:(e,r,t)=>o("br",{key:t.key})},2:{match:w(Te),order:1,parse:D,render:(e,r,t)=>o("hr",{key:t.key})},3:{match:w(re),order:0,parse:e=>({lang:void 0,text:e[0].replace(/^ {4}/gm,"").replace(/\n+$/,"")}),render:(e,r,t)=>o("pre",{key:t.key},o("code",C({},e.attrs,{className:e.lang?`lang-${e.lang}`:""}),e.text))},4:{match:w(te),order:0,parse:e=>({attrs:h(e[3]||""),lang:e[2]||void 0,text:e[4],type:"3"})},5:{match:S(Le),order:3,parse:e=>({text:e[2]}),render:(e,r,t)=>o("code",{key:t.key},e.text)},6:{match:w(_e),order:0,parse:e=>(f.push({footnote:e[2],identifier:e[1]}),{}),render:N},7:{match:E(De),order:1,parse:e=>({target:`#${i.slugify(e[1])}`,text:e[1]}),render:(e,r,t)=>o("a",{key:t.key,href:R(e.target)},o("sup",{key:t.key},e.text))},8:{match:E(Be),order:1,parse:e=>({completed:e[1].toLowerCase()==="x"}),render:(e,r,t)=>o("input",{checked:e.completed,key:t.key,readOnly:!0,type:"checkbox"})},9:{match:w(i.enforceAtxHeadings?le:ie),order:1,parse:(e,r,t)=>({children:L(r,e[2],t),id:i.slugify(e[2]),level:e[1].length}),render:(e,r,t)=>o(`h${e.level}`,{id:e.id,key:t.key},r(e.children,t))},10:{match:w(oe),order:0,parse:(e,r,t)=>({children:L(r,e[1],t),level:e[2]==="="?1:2,type:"9"})},11:{match:A(B),order:1,parse(e,r,t){const[,a]=e[3].match(pn),c=new RegExp(`^${a}`,"gm"),u=e[3].replace(c,""),m=(k=u,xn.some(y=>y.test(k))?Sn:L);var k;const x=e[1].toLowerCase(),v=Oe.indexOf(x)!==-1,g={attrs:h(e[2]),noInnerParse:v,tag:(v?x:e[1]).trim()};return t.inAnchor=t.inAnchor||x==="a",v?g.text=e[3]:g.children=m(r,u,t),t.inAnchor=!1,g},render:(e,r,t)=>o(e.tag,C({key:t.key},e.attrs),e.text||r(e.children,t))},13:{match:A(P),order:1,parse:e=>({attrs:h(e[2]||""),tag:e[1].trim()}),render:(e,r,t)=>o(e.tag,C({},e.attrs,{key:t.key}))},12:{match:A(ce),order:1,parse:()=>({}),render:N},14:{match:S(kn),order:1,parse:e=>({alt:e[1],target:ee(e[2]),title:e[3]}),render:(e,r,t)=>o("img",{key:t.key,alt:e.alt||void 0,title:e.title||void 0,src:R(e.target)})},15:{match:E(yn),order:3,parse:(e,r,t)=>({children:En(r,e[1],t),target:ee(e[2]),title:e[3]}),render:(e,r,t)=>o("a",{key:t.key,href:R(e.target),title:e.title},r(e.children,t))},16:{match:E(We),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],type:"15"})},17:{match:(e,r)=>r.inAnchor?null:E(Fe)(e,r),order:0,parse:e=>({children:[{text:e[1],type:"27"}],target:e[1],title:void 0,type:"15"})},18:{match:E(Ge),order:0,parse(e){let r=e[1],t=e[1];return Re.test(t)||(t="mailto:"+t),{children:[{text:r.replace("mailto:",""),type:"27"}],target:t,type:"15"}}},20:J(o,1),33:J(o,2),19:{match:w(ze),order:3,parse:D,render:()=>`
|
|
13
|
+
`},21:{match:$n,order:3,parse:_,render:(e,r,t)=>o("p",{key:t.key},r(e.children,t))},22:{match:E(Ve),order:0,parse:e=>(s[e[1]]={target:e[2],title:e[4]},{}),render:N},23:{match:S(Xe),order:0,parse:e=>({alt:e[1]||void 0,ref:e[2]}),render:(e,r,t)=>s[e.ref]?o("img",{key:t.key,alt:e.alt,src:R(s[e.ref].target),title:s[e.ref].title}):null},24:{match:E(Qe),order:0,parse:(e,r,t)=>({children:r(e[1],t),fallbackChildren:r(e[0].replace(Je,"\\$1"),t),ref:e[2]}),render:(e,r,t)=>s[e.ref]?o("a",{key:t.key,href:R(s[e.ref].target),title:s[e.ref].title},r(e.children,t)):o("span",{key:t.key},r(e.fallbackChildren,t))},25:{match:w(ae),order:1,parse:wn,render(e,r,t){const a=e;return o("table",{key:t.key},o("thead",null,o("tr",null,a.header.map(function(c,u){return o("th",{key:u,style:Y(a,u)},r(c,t))}))),o("tbody",null,a.cells.map(function(c,u){return o("tr",{key:u},c.map(function(m,k){return o("td",{key:k,style:Y(a,k)},r(m,t))}))})))}},27:{match:A(dn),order:4,parse:e=>({text:e[0].replace(Pe,(r,t)=>i.namedCodesToUnicode[t]?i.namedCodesToUnicode[t]:r)}),render:e=>e.text},28:{match:S(ln),order:2,parse:(e,r,t)=>({children:r(e[2],t)}),render:(e,r,t)=>o("strong",{key:t.key},r(e.children,t))},29:{match:S(on),order:3,parse:(e,r,t)=>({children:r(e[2],t)}),render:(e,r,t)=>o("em",{key:t.key},r(e.children,t))},30:{match:S(sn),order:1,parse:e=>({text:e[1],type:"27"})},31:{match:S(cn),order:3,parse:_,render:(e,r,t)=>o("mark",{key:t.key},r(e.children,t))},32:{match:S(an),order:3,parse:_,render:(e,r,t)=>o("del",{key:t.key},r(e.children,t))}};i.disableParsingRawHTML===!0&&(delete d[11],delete d[13]);const b=function(e){let r=Object.keys(e);function t(a,c){let u=[],m="";for(;a;){let k=0;for(;k<r.length;){const x=r[k],v=e[x],g=v.match(a,c,m);if(g){const y=g[0];a=a.substring(y.length);const $=v.parse(g,t,c);$.type==null&&($.type=x),u.push($),m=y;break}k++}}return u}return r.sort(function(a,c){let u=e[a].order,m=e[c].order;return u!==m?u-m:a<c?-1:1}),function(a,c){return t(function(u){return u.replace(Ie,`
|
|
14
|
+
`).replace(Ne,"").replace(Ye," ")}(a),c)}}(d),O=(M=function(e,r){return function(t,a,c){const u=e[t.type].render;return r?r(()=>u(t,a,c),t,a,c):u(t,a,c)}}(d,i.renderRule),function e(r,t={}){if(Array.isArray(r)){const a=t.key,c=[];let u=!1;for(let m=0;m<r.length;m++){t.key=m;const k=e(r[m],t),x=typeof k=="string";x&&u?c[c.length-1]+=k:k!==null&&c.push(k),u=x}return t.key=a,c}return M(r,e,t)});var M;const j=p(n);return f.length?o("div",null,j,o("footer",{key:"footer"},f.map(function(e){return o("div",{id:i.slugify(e.identifier),key:e.identifier},e.identifier,O(b(e.footnote,{inline:!0})))}))):j}const be=n=>{let{children:i="",options:l}=n,o=function(p,h){if(p==null)return{};var f,s,d={},b=Object.keys(p);for(s=0;s<b.length;s++)h.indexOf(f=b[s])>=0||(d[f]=p[f]);return d}(n,Se);return T.cloneElement(Cn(i,l),o)},Rn=({children:n,isDarkMode:i})=>G.jsxRuntimeExports.jsx(be,{options:{overrides:{code:{component:l=>G.jsxRuntimeExports.jsx($e.Code,{...l,isDarkMode:i})}}},children:n??""});exports.Markdown=be;exports.MarkdownRenderer=Rn;
|
|
@@ -0,0 +1,315 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as W } from "./jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import * as L from "react";
|
|
4
|
+
import { Code as be } from "./components/IDE/CodeRender.es.js";
|
|
5
|
+
function A() {
|
|
6
|
+
return A = Object.assign ? Object.assign.bind() : function(t) {
|
|
7
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
8
|
+
var o = arguments[i];
|
|
9
|
+
for (var l in o) Object.prototype.hasOwnProperty.call(o, l) && (t[l] = o[l]);
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
}, A.apply(this, arguments);
|
|
13
|
+
}
|
|
14
|
+
const $e = ["children", "options"];
|
|
15
|
+
var Z, q;
|
|
16
|
+
(function(t) {
|
|
17
|
+
t.blockQuote = "0", t.breakLine = "1", t.breakThematic = "2", t.codeBlock = "3", t.codeFenced = "4", t.codeInline = "5", t.footnote = "6", t.footnoteReference = "7", t.gfmTask = "8", t.heading = "9", t.headingSetext = "10", t.htmlBlock = "11", t.htmlComment = "12", t.htmlSelfClosing = "13", t.image = "14", t.link = "15", t.linkAngleBraceStyleDetector = "16", t.linkBareUrlDetector = "17", t.linkMailtoDetector = "18", t.newlineCoalescer = "19", t.orderedList = "20", t.paragraph = "21", t.ref = "22", t.refImage = "23", t.refLink = "24", t.table = "25", t.tableSeparator = "26", t.text = "27", t.textBolded = "28", t.textEmphasized = "29", t.textEscaped = "30", t.textMarked = "31", t.textStrikethroughed = "32", t.unorderedList = "33";
|
|
18
|
+
})(Z || (Z = {})), function(t) {
|
|
19
|
+
t[t.MAX = 0] = "MAX", t[t.HIGH = 1] = "HIGH", t[t.MED = 2] = "MED", t[t.LOW = 3] = "LOW", t[t.MIN = 4] = "MIN";
|
|
20
|
+
}(q || (q = {}));
|
|
21
|
+
const V = ["allowFullScreen", "allowTransparency", "autoComplete", "autoFocus", "autoPlay", "cellPadding", "cellSpacing", "charSet", "className", "classId", "colSpan", "contentEditable", "contextMenu", "crossOrigin", "encType", "formAction", "formEncType", "formMethod", "formNoValidate", "formTarget", "frameBorder", "hrefLang", "inputMode", "keyParams", "keyType", "marginHeight", "marginWidth", "maxLength", "mediaGroup", "minLength", "noValidate", "radioGroup", "readOnly", "rowSpan", "spellCheck", "srcDoc", "srcLang", "srcSet", "tabIndex", "useMap"].reduce((t, i) => (t[i.toLowerCase()] = i, t), { for: "htmlFor" }), X = { amp: "&", apos: "'", gt: ">", lt: "<", nbsp: " ", quot: "“" }, we = ["style", "script"], Ee = /([-A-Z0-9_:]+)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|(?:\{((?:\\.|{[^}]*?}|[^}])*)\})))?/gi, Se = /mailto:/i, Ce = /\n{2,}$/, ne = /^(\s*>[\s\S]*?)(?=\n{2,})/, Ae = /^ *> ?/gm, Oe = /^ {2,}\n/, Me = /^(?:( *[-*_])){3,} *(?:\n *)+\n/, te = /^\s*(`{3,}|~{3,}) *(\S+)?([^\n]*?)?\n([\s\S]+?)\s*\1 *(?:\n *)*\n?/, re = /^(?: {4}[^\n]+\n*)+(?:\n *)+\n?/, Re = /^(`+)\s*([\s\S]*?[^`])\s*\1(?!`)/, Te = /^(?:\n *)*\n/, Le = /\r\n?/g, ze = /^\[\^([^\]]+)](:(.*)((\n+ {4,}.*)|(\n(?!\[\^).+))*)/, je = /^\[\^([^\]]+)]/, Ie = /\f/g, Ue = /^---[ \t]*\n(.|\n)*\n---[ \t]*\n/, Be = /^\s*?\[(x|\s)\]/, ie = /^ *(#{1,6}) *([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, le = /^ *(#{1,6}) +([^\n]+?)(?: +#*)?(?:\n *)*(?:\n|$)/, oe = /^([^\n]+)\n *(=|-){3,} *(?:\n *)+\n/, D = /^ *(?!<[a-z][^ >/]* ?\/>)<([a-z][^ >/]*) ?((?:[^>]*[^/])?)>\n?(\s*(?:<\1[^>]*?>[\s\S]*?<\/\1>|(?!<\1\b)[\s\S])*?)<\/\1>(?!<\/\1>)\n*/i, Ne = /&([a-z0-9]+|#[0-9]{1,6}|#x[0-9a-fA-F]{1,6});/gi, ce = /^<!--[\s\S]*?(?:-->)/, He = /^(data|aria|x)-[a-z_][a-z\d_.-]*$/, P = /^ *<([a-z][a-z0-9:]*)(?:\s+((?:<.*?>|[^>])*))?\/?>(?!<\/\1>)(\s*\n)?/i, De = /^\{.*\}$/, Pe = /^(https?:\/\/[^\s<]+[^<.,:;"')\]\s])/, _e = /^<([^ >]+@[^ >]+)>/, Fe = /^<([^ >]+:\/[^ >]+)>/, Ge = /-([a-z])?/gi, ae = /^(.*\|.*)\n(?: *(\|? *[-:]+ *\|[-| :]*)\n((?:.*\|.*\n)*))?\n?/, We = /^\[([^\]]*)\]:\s+<?([^\s>]+)>?\s*("([^"]*)")?/, Ze = /^!\[([^\]]*)\] ?\[([^\]]*)\]/, qe = /^\[([^\]]*)\] ?\[([^\]]*)\]/, Ve = /(\[|\])/g, Xe = /(\n|^[-*]\s|^#|^ {2,}|^-{2,}|^>\s)/, Qe = /\t/g, Je = /(^ *\||\| *$)/g, Ke = /^ *:-+: *$/, Ye = /^ *:-+ *$/, en = /^ *-+: *$/, j = "((?:\\[.*?\\][([].*?[)\\]]|<.*?>(?:.*?<.*?>)?|`.*?`|~~.*?~~|==.*?==|.|\\n)*?)", nn = new RegExp(`^([*_])\\1${j}\\1\\1(?!\\1)`), tn = new RegExp(`^([*_])${j}\\1(?!\\1|\\w)`), rn = new RegExp(`^==${j}==`), ln = new RegExp(`^~~${j}~~`), on = /^\\([^0-9A-Za-z\s])/, cn = /^[\s\S]+?(?=[^0-9A-Z\s\u00c0-\uffff&#;.()'"]|\d+\.|\n\n| {2,}\n|\w+:\S|$)/i, an = /^\n+/, sn = /^([ \t]*)/, dn = /\\([^\\])/g, Q = / *\n+$/, un = /(?:^|\n)( *)$/, _ = "(?:\\d+\\.)", F = "(?:[*+-])";
|
|
22
|
+
function se(t) {
|
|
23
|
+
return "( *)(" + (t === 1 ? _ : F) + ") +";
|
|
24
|
+
}
|
|
25
|
+
const de = se(1), ue = se(2);
|
|
26
|
+
function pe(t) {
|
|
27
|
+
return new RegExp("^" + (t === 1 ? de : ue));
|
|
28
|
+
}
|
|
29
|
+
const pn = pe(1), fn = pe(2);
|
|
30
|
+
function fe(t) {
|
|
31
|
+
return new RegExp("^" + (t === 1 ? de : ue) + "[^\\n]*(?:\\n(?!\\1" + (t === 1 ? _ : F) + " )[^\\n]*)*(\\n|$)", "gm");
|
|
32
|
+
}
|
|
33
|
+
const me = fe(1), he = fe(2);
|
|
34
|
+
function ge(t) {
|
|
35
|
+
const i = t === 1 ? _ : F;
|
|
36
|
+
return new RegExp("^( *)(" + i + ") [\\s\\S]+?(?:\\n{2,}(?! )(?!\\1" + i + " (?!" + i + " ))\\n*|\\s*\\n*$)");
|
|
37
|
+
}
|
|
38
|
+
const ye = ge(1), ke = ge(2);
|
|
39
|
+
function J(t, i) {
|
|
40
|
+
const o = i === 1, l = o ? ye : ke, p = o ? me : he, h = o ? pn : fn;
|
|
41
|
+
return { match(f, s, d) {
|
|
42
|
+
const v = un.exec(d);
|
|
43
|
+
return v && (s.list || !s.inline && !s.simple) ? l.exec(f = v[1] + f) : null;
|
|
44
|
+
}, order: 1, parse(f, s, d) {
|
|
45
|
+
const v = o ? +f[2] : void 0, C = f[0].replace(Ce, `
|
|
46
|
+
`).match(p);
|
|
47
|
+
let M = !1;
|
|
48
|
+
return { items: C.map(function(R, e) {
|
|
49
|
+
const r = h.exec(R)[0].length, n = new RegExp("^ {1," + r + "}", "gm"), a = R.replace(n, "").replace(h, ""), c = e === C.length - 1, u = a.indexOf(`
|
|
50
|
+
|
|
51
|
+
`) !== -1 || c && M;
|
|
52
|
+
M = u;
|
|
53
|
+
const m = d.inline, k = d.list;
|
|
54
|
+
let x;
|
|
55
|
+
d.list = !0, u ? (d.inline = !1, x = a.replace(Q, `
|
|
56
|
+
|
|
57
|
+
`)) : (d.inline = !0, x = a.replace(Q, ""));
|
|
58
|
+
const b = s(x, d);
|
|
59
|
+
return d.inline = m, d.list = k, b;
|
|
60
|
+
}), ordered: o, start: v };
|
|
61
|
+
}, render: (f, s, d) => t(f.ordered ? "ol" : "ul", { key: d.key, start: f.type === "20" ? f.start : void 0 }, f.items.map(function(v, C) {
|
|
62
|
+
return t("li", { key: C }, s(v, d));
|
|
63
|
+
})) };
|
|
64
|
+
}
|
|
65
|
+
const mn = new RegExp(`^\\[((?:\\[[^\\]]*\\]|[^\\[\\]]|\\](?=[^\\[]*\\]))*)\\]\\(\\s*<?((?:\\([^)]*\\)|[^\\s\\\\]|\\\\.)*?)>?(?:\\s+['"]([\\s\\S]*?)['"])?\\s*\\)`), hn = /^!\[(.*?)\]\( *((?:\([^)]*\)|[^() ])*) *"?([^)"]*)?"?\)/, xe = [ne, te, re, ie, oe, le, ce, ae, me, ye, he, ke], gn = [...xe, /^[^\n]+(?: \n|\n{2,})/, D, P];
|
|
66
|
+
function yn(t) {
|
|
67
|
+
return t.replace(/[ÀÁÂÃÄÅàáâãä忯]/g, "a").replace(/[çÇ]/g, "c").replace(/[ðÐ]/g, "d").replace(/[ÈÉÊËéèêë]/g, "e").replace(/[ÏïÎîÍíÌì]/g, "i").replace(/[Ññ]/g, "n").replace(/[øØœŒÕõÔôÓóÒò]/g, "o").replace(/[ÜüÛûÚúÙù]/g, "u").replace(/[ŸÿÝý]/g, "y").replace(/[^a-z0-9- ]/gi, "").replace(/ /gi, "-").toLowerCase();
|
|
68
|
+
}
|
|
69
|
+
function kn(t) {
|
|
70
|
+
return en.test(t) ? "right" : Ke.test(t) ? "center" : Ye.test(t) ? "left" : null;
|
|
71
|
+
}
|
|
72
|
+
function K(t, i, o, l) {
|
|
73
|
+
const p = o.inTable;
|
|
74
|
+
o.inTable = !0;
|
|
75
|
+
let h = t.trim().split(/( *(?:`[^`]*`|<.*?>.*?<\/.*?>(?!<\/.*?>)|\\\||\|) *)/).reduce((s, d) => (d.trim() === "|" ? s.push(l ? { type: "26" } : { type: "27", text: d }) : d !== "" && s.push.apply(s, i(d, o)), s), []);
|
|
76
|
+
o.inTable = p;
|
|
77
|
+
let f = [[]];
|
|
78
|
+
return h.forEach(function(s, d) {
|
|
79
|
+
s.type === "26" ? d !== 0 && d !== h.length - 1 && f.push([]) : (s.type !== "27" || h[d + 1] != null && h[d + 1].type !== "26" || (s.text = s.text.trimEnd()), f[f.length - 1].push(s));
|
|
80
|
+
}), f;
|
|
81
|
+
}
|
|
82
|
+
function xn(t, i, o) {
|
|
83
|
+
o.inline = !0;
|
|
84
|
+
const l = t[2] ? t[2].replace(Je, "").split("|").map(kn) : [], p = t[3] ? function(f, s, d) {
|
|
85
|
+
return f.trim().split(`
|
|
86
|
+
`).map(function(v) {
|
|
87
|
+
return K(v, s, d, !0);
|
|
88
|
+
});
|
|
89
|
+
}(t[3], i, o) : [], h = K(t[1], i, o, !!p.length);
|
|
90
|
+
return o.inline = !1, p.length ? { align: l, cells: p, header: h, type: "25" } : { children: h, type: "21" };
|
|
91
|
+
}
|
|
92
|
+
function Y(t, i) {
|
|
93
|
+
return t.align[i] == null ? {} : { textAlign: t.align[i] };
|
|
94
|
+
}
|
|
95
|
+
function E(t) {
|
|
96
|
+
return function(i, o) {
|
|
97
|
+
return o.inline ? t.exec(i) : null;
|
|
98
|
+
};
|
|
99
|
+
}
|
|
100
|
+
function S(t) {
|
|
101
|
+
return function(i, o) {
|
|
102
|
+
return o.inline || o.simple ? t.exec(i) : null;
|
|
103
|
+
};
|
|
104
|
+
}
|
|
105
|
+
function $(t) {
|
|
106
|
+
return function(i, o) {
|
|
107
|
+
return o.inline || o.simple ? null : t.exec(i);
|
|
108
|
+
};
|
|
109
|
+
}
|
|
110
|
+
function T(t) {
|
|
111
|
+
return function(i) {
|
|
112
|
+
return t.exec(i);
|
|
113
|
+
};
|
|
114
|
+
}
|
|
115
|
+
function vn(t, i, o) {
|
|
116
|
+
if (i.inline || i.simple || o && !o.endsWith(`
|
|
117
|
+
`)) return null;
|
|
118
|
+
let l = "";
|
|
119
|
+
t.split(`
|
|
120
|
+
`).every((h) => !xe.some((f) => f.test(h)) && (l += h + `
|
|
121
|
+
`, h.trim()));
|
|
122
|
+
const p = l.trimEnd();
|
|
123
|
+
return p == "" ? null : [l, p];
|
|
124
|
+
}
|
|
125
|
+
function O(t) {
|
|
126
|
+
try {
|
|
127
|
+
if (decodeURIComponent(t).replace(/[^A-Za-z0-9/:]/g, "").match(/^\s*(javascript|vbscript|data(?!:image)):/i)) return;
|
|
128
|
+
} catch {
|
|
129
|
+
return null;
|
|
130
|
+
}
|
|
131
|
+
return t;
|
|
132
|
+
}
|
|
133
|
+
function ee(t) {
|
|
134
|
+
return t.replace(dn, "$1");
|
|
135
|
+
}
|
|
136
|
+
function z(t, i, o) {
|
|
137
|
+
const l = o.inline || !1, p = o.simple || !1;
|
|
138
|
+
o.inline = !0, o.simple = !0;
|
|
139
|
+
const h = t(i, o);
|
|
140
|
+
return o.inline = l, o.simple = p, h;
|
|
141
|
+
}
|
|
142
|
+
function bn(t, i, o) {
|
|
143
|
+
const l = o.inline || !1, p = o.simple || !1;
|
|
144
|
+
o.inline = !1, o.simple = !0;
|
|
145
|
+
const h = t(i, o);
|
|
146
|
+
return o.inline = l, o.simple = p, h;
|
|
147
|
+
}
|
|
148
|
+
function $n(t, i, o) {
|
|
149
|
+
const l = o.inline || !1;
|
|
150
|
+
o.inline = !1;
|
|
151
|
+
const p = t(i, o);
|
|
152
|
+
return o.inline = l, p;
|
|
153
|
+
}
|
|
154
|
+
const U = (t, i, o) => ({ children: z(i, t[1], o) });
|
|
155
|
+
function B() {
|
|
156
|
+
return {};
|
|
157
|
+
}
|
|
158
|
+
function N() {
|
|
159
|
+
return null;
|
|
160
|
+
}
|
|
161
|
+
function wn(...t) {
|
|
162
|
+
return t.filter(Boolean).join(" ");
|
|
163
|
+
}
|
|
164
|
+
function H(t, i, o) {
|
|
165
|
+
let l = t;
|
|
166
|
+
const p = i.split(".");
|
|
167
|
+
for (; p.length && (l = l[p[0]], l !== void 0); ) p.shift();
|
|
168
|
+
return l || o;
|
|
169
|
+
}
|
|
170
|
+
function En(t = "", i = {}) {
|
|
171
|
+
i.overrides = i.overrides || {}, i.slugify = i.slugify || yn, i.namedCodesToUnicode = i.namedCodesToUnicode ? A({}, X, i.namedCodesToUnicode) : X;
|
|
172
|
+
const o = i.createElement || L.createElement;
|
|
173
|
+
function l(e, r, ...n) {
|
|
174
|
+
const a = H(i.overrides, `${e}.props`, {});
|
|
175
|
+
return o(function(c, u) {
|
|
176
|
+
const m = H(u, c);
|
|
177
|
+
return m ? typeof m == "function" || typeof m == "object" && "render" in m ? m : H(u, `${c}.component`, c) : c;
|
|
178
|
+
}(e, i.overrides), A({}, r, a, { className: wn(r == null ? void 0 : r.className, a.className) || void 0 }), ...n);
|
|
179
|
+
}
|
|
180
|
+
function p(e) {
|
|
181
|
+
e = e.replace(Ue, "");
|
|
182
|
+
let r = !1;
|
|
183
|
+
i.forceInline ? r = !0 : i.forceBlock || (r = Xe.test(e) === !1);
|
|
184
|
+
const n = C(v(r ? e : `${e.trimEnd().replace(an, "")}
|
|
185
|
+
|
|
186
|
+
`, { inline: r }));
|
|
187
|
+
for (; typeof n[n.length - 1] == "string" && !n[n.length - 1].trim(); ) n.pop();
|
|
188
|
+
if (i.wrapper === null) return n;
|
|
189
|
+
const a = i.wrapper || (r ? "span" : "div");
|
|
190
|
+
let c;
|
|
191
|
+
if (n.length > 1 || i.forceWrapper) c = n;
|
|
192
|
+
else {
|
|
193
|
+
if (n.length === 1) return c = n[0], typeof c == "string" ? l("span", { key: "outer" }, c) : c;
|
|
194
|
+
c = null;
|
|
195
|
+
}
|
|
196
|
+
return L.createElement(a, { key: "outer" }, c);
|
|
197
|
+
}
|
|
198
|
+
function h(e) {
|
|
199
|
+
const r = e.match(Ee);
|
|
200
|
+
return r ? r.reduce(function(n, a, c) {
|
|
201
|
+
const u = a.indexOf("=");
|
|
202
|
+
if (u !== -1) {
|
|
203
|
+
const m = function(g) {
|
|
204
|
+
return g.indexOf("-") !== -1 && g.match(He) === null && (g = g.replace(Ge, function(y, w) {
|
|
205
|
+
return w.toUpperCase();
|
|
206
|
+
})), g;
|
|
207
|
+
}(a.slice(0, u)).trim(), k = function(g) {
|
|
208
|
+
const y = g[0];
|
|
209
|
+
return (y === '"' || y === "'") && g.length >= 2 && g[g.length - 1] === y ? g.slice(1, -1) : g;
|
|
210
|
+
}(a.slice(u + 1).trim()), x = V[m] || m, b = n[x] = function(g, y) {
|
|
211
|
+
return g === "style" ? y.split(/;\s?/).reduce(function(w, I) {
|
|
212
|
+
const G = I.slice(0, I.indexOf(":"));
|
|
213
|
+
return w[G.trim().replace(/(-[a-z])/g, (ve) => ve[1].toUpperCase())] = I.slice(G.length + 1).trim(), w;
|
|
214
|
+
}, {}) : g === "href" || g === "src" ? O(y) : (y.match(De) && (y = y.slice(1, y.length - 1)), y === "true" || y !== "false" && y);
|
|
215
|
+
}(m, k);
|
|
216
|
+
typeof b == "string" && (D.test(b) || P.test(b)) && (n[x] = L.cloneElement(p(b.trim()), { key: c }));
|
|
217
|
+
} else a !== "style" && (n[V[a] || a] = !0);
|
|
218
|
+
return n;
|
|
219
|
+
}, {}) : null;
|
|
220
|
+
}
|
|
221
|
+
const f = [], s = {}, d = { 0: { match: $(ne), order: 1, parse: (e, r, n) => ({ children: r(e[0].replace(Ae, ""), n) }), render: (e, r, n) => l("blockquote", { key: n.key }, r(e.children, n)) }, 1: { match: T(Oe), order: 1, parse: B, render: (e, r, n) => l("br", { key: n.key }) }, 2: { match: $(Me), order: 1, parse: B, render: (e, r, n) => l("hr", { key: n.key }) }, 3: { match: $(re), order: 0, parse: (e) => ({ lang: void 0, text: e[0].replace(/^ {4}/gm, "").replace(/\n+$/, "") }), render: (e, r, n) => l("pre", { key: n.key }, l("code", A({}, e.attrs, { className: e.lang ? `lang-${e.lang}` : "" }), e.text)) }, 4: { match: $(te), order: 0, parse: (e) => ({ attrs: h(e[3] || ""), lang: e[2] || void 0, text: e[4], type: "3" }) }, 5: { match: S(Re), order: 3, parse: (e) => ({ text: e[2] }), render: (e, r, n) => l("code", { key: n.key }, e.text) }, 6: { match: $(ze), order: 0, parse: (e) => (f.push({ footnote: e[2], identifier: e[1] }), {}), render: N }, 7: { match: E(je), order: 1, parse: (e) => ({ target: `#${i.slugify(e[1])}`, text: e[1] }), render: (e, r, n) => l("a", { key: n.key, href: O(e.target) }, l("sup", { key: n.key }, e.text)) }, 8: { match: E(Be), order: 1, parse: (e) => ({ completed: e[1].toLowerCase() === "x" }), render: (e, r, n) => l("input", { checked: e.completed, key: n.key, readOnly: !0, type: "checkbox" }) }, 9: { match: $(i.enforceAtxHeadings ? le : ie), order: 1, parse: (e, r, n) => ({ children: z(r, e[2], n), id: i.slugify(e[2]), level: e[1].length }), render: (e, r, n) => l(`h${e.level}`, { id: e.id, key: n.key }, r(e.children, n)) }, 10: { match: $(oe), order: 0, parse: (e, r, n) => ({ children: z(r, e[1], n), level: e[2] === "=" ? 1 : 2, type: "9" }) }, 11: { match: T(D), order: 1, parse(e, r, n) {
|
|
222
|
+
const [, a] = e[3].match(sn), c = new RegExp(`^${a}`, "gm"), u = e[3].replace(c, ""), m = (k = u, gn.some((y) => y.test(k)) ? $n : z);
|
|
223
|
+
var k;
|
|
224
|
+
const x = e[1].toLowerCase(), b = we.indexOf(x) !== -1, g = { attrs: h(e[2]), noInnerParse: b, tag: (b ? x : e[1]).trim() };
|
|
225
|
+
return n.inAnchor = n.inAnchor || x === "a", b ? g.text = e[3] : g.children = m(r, u, n), n.inAnchor = !1, g;
|
|
226
|
+
}, render: (e, r, n) => l(e.tag, A({ key: n.key }, e.attrs), e.text || r(e.children, n)) }, 13: { match: T(P), order: 1, parse: (e) => ({ attrs: h(e[2] || ""), tag: e[1].trim() }), render: (e, r, n) => l(e.tag, A({}, e.attrs, { key: n.key })) }, 12: { match: T(ce), order: 1, parse: () => ({}), render: N }, 14: { match: S(hn), order: 1, parse: (e) => ({ alt: e[1], target: ee(e[2]), title: e[3] }), render: (e, r, n) => l("img", { key: n.key, alt: e.alt || void 0, title: e.title || void 0, src: O(e.target) }) }, 15: { match: E(mn), order: 3, parse: (e, r, n) => ({ children: bn(r, e[1], n), target: ee(e[2]), title: e[3] }), render: (e, r, n) => l("a", { key: n.key, href: O(e.target), title: e.title }, r(e.children, n)) }, 16: { match: E(Fe), order: 0, parse: (e) => ({ children: [{ text: e[1], type: "27" }], target: e[1], type: "15" }) }, 17: { match: (e, r) => r.inAnchor ? null : E(Pe)(e, r), order: 0, parse: (e) => ({ children: [{ text: e[1], type: "27" }], target: e[1], title: void 0, type: "15" }) }, 18: { match: E(_e), order: 0, parse(e) {
|
|
227
|
+
let r = e[1], n = e[1];
|
|
228
|
+
return Se.test(n) || (n = "mailto:" + n), { children: [{ text: r.replace("mailto:", ""), type: "27" }], target: n, type: "15" };
|
|
229
|
+
} }, 20: J(l, 1), 33: J(l, 2), 19: { match: $(Te), order: 3, parse: B, render: () => `
|
|
230
|
+
` }, 21: { match: vn, order: 3, parse: U, render: (e, r, n) => l("p", { key: n.key }, r(e.children, n)) }, 22: { match: E(We), order: 0, parse: (e) => (s[e[1]] = { target: e[2], title: e[4] }, {}), render: N }, 23: { match: S(Ze), order: 0, parse: (e) => ({ alt: e[1] || void 0, ref: e[2] }), render: (e, r, n) => s[e.ref] ? l("img", { key: n.key, alt: e.alt, src: O(s[e.ref].target), title: s[e.ref].title }) : null }, 24: { match: E(qe), order: 0, parse: (e, r, n) => ({ children: r(e[1], n), fallbackChildren: r(e[0].replace(Ve, "\\$1"), n), ref: e[2] }), render: (e, r, n) => s[e.ref] ? l("a", { key: n.key, href: O(s[e.ref].target), title: s[e.ref].title }, r(e.children, n)) : l("span", { key: n.key }, r(e.fallbackChildren, n)) }, 25: { match: $(ae), order: 1, parse: xn, render(e, r, n) {
|
|
231
|
+
const a = e;
|
|
232
|
+
return l("table", { key: n.key }, l("thead", null, l("tr", null, a.header.map(function(c, u) {
|
|
233
|
+
return l("th", { key: u, style: Y(a, u) }, r(c, n));
|
|
234
|
+
}))), l("tbody", null, a.cells.map(function(c, u) {
|
|
235
|
+
return l("tr", { key: u }, c.map(function(m, k) {
|
|
236
|
+
return l("td", { key: k, style: Y(a, k) }, r(m, n));
|
|
237
|
+
}));
|
|
238
|
+
})));
|
|
239
|
+
} }, 27: { match: T(cn), order: 4, parse: (e) => ({ text: e[0].replace(Ne, (r, n) => i.namedCodesToUnicode[n] ? i.namedCodesToUnicode[n] : r) }), render: (e) => e.text }, 28: { match: S(nn), order: 2, parse: (e, r, n) => ({ children: r(e[2], n) }), render: (e, r, n) => l("strong", { key: n.key }, r(e.children, n)) }, 29: { match: S(tn), order: 3, parse: (e, r, n) => ({ children: r(e[2], n) }), render: (e, r, n) => l("em", { key: n.key }, r(e.children, n)) }, 30: { match: S(on), order: 1, parse: (e) => ({ text: e[1], type: "27" }) }, 31: { match: S(rn), order: 3, parse: U, render: (e, r, n) => l("mark", { key: n.key }, r(e.children, n)) }, 32: { match: S(ln), order: 3, parse: U, render: (e, r, n) => l("del", { key: n.key }, r(e.children, n)) } };
|
|
240
|
+
i.disableParsingRawHTML === !0 && (delete d[11], delete d[13]);
|
|
241
|
+
const v = function(e) {
|
|
242
|
+
let r = Object.keys(e);
|
|
243
|
+
function n(a, c) {
|
|
244
|
+
let u = [], m = "";
|
|
245
|
+
for (; a; ) {
|
|
246
|
+
let k = 0;
|
|
247
|
+
for (; k < r.length; ) {
|
|
248
|
+
const x = r[k], b = e[x], g = b.match(a, c, m);
|
|
249
|
+
if (g) {
|
|
250
|
+
const y = g[0];
|
|
251
|
+
a = a.substring(y.length);
|
|
252
|
+
const w = b.parse(g, n, c);
|
|
253
|
+
w.type == null && (w.type = x), u.push(w), m = y;
|
|
254
|
+
break;
|
|
255
|
+
}
|
|
256
|
+
k++;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
return u;
|
|
260
|
+
}
|
|
261
|
+
return r.sort(function(a, c) {
|
|
262
|
+
let u = e[a].order, m = e[c].order;
|
|
263
|
+
return u !== m ? u - m : a < c ? -1 : 1;
|
|
264
|
+
}), function(a, c) {
|
|
265
|
+
return n(function(u) {
|
|
266
|
+
return u.replace(Le, `
|
|
267
|
+
`).replace(Ie, "").replace(Qe, " ");
|
|
268
|
+
}(a), c);
|
|
269
|
+
};
|
|
270
|
+
}(d), C = (M = /* @__PURE__ */ function(e, r) {
|
|
271
|
+
return function(n, a, c) {
|
|
272
|
+
const u = e[n.type].render;
|
|
273
|
+
return r ? r(() => u(n, a, c), n, a, c) : u(n, a, c);
|
|
274
|
+
};
|
|
275
|
+
}(d, i.renderRule), function e(r, n = {}) {
|
|
276
|
+
if (Array.isArray(r)) {
|
|
277
|
+
const a = n.key, c = [];
|
|
278
|
+
let u = !1;
|
|
279
|
+
for (let m = 0; m < r.length; m++) {
|
|
280
|
+
n.key = m;
|
|
281
|
+
const k = e(r[m], n), x = typeof k == "string";
|
|
282
|
+
x && u ? c[c.length - 1] += k : k !== null && c.push(k), u = x;
|
|
283
|
+
}
|
|
284
|
+
return n.key = a, c;
|
|
285
|
+
}
|
|
286
|
+
return M(r, e, n);
|
|
287
|
+
});
|
|
288
|
+
var M;
|
|
289
|
+
const R = p(t);
|
|
290
|
+
return f.length ? l("div", null, R, l("footer", { key: "footer" }, f.map(function(e) {
|
|
291
|
+
return l("div", { id: i.slugify(e.identifier), key: e.identifier }, e.identifier, C(v(e.footnote, { inline: !0 })));
|
|
292
|
+
}))) : R;
|
|
293
|
+
}
|
|
294
|
+
const Sn = (t) => {
|
|
295
|
+
let { children: i = "", options: o } = t, l = function(p, h) {
|
|
296
|
+
if (p == null) return {};
|
|
297
|
+
var f, s, d = {}, v = Object.keys(p);
|
|
298
|
+
for (s = 0; s < v.length; s++) h.indexOf(f = v[s]) >= 0 || (d[f] = p[f]);
|
|
299
|
+
return d;
|
|
300
|
+
}(t, $e);
|
|
301
|
+
return L.cloneElement(En(i, o), l);
|
|
302
|
+
}, On = ({
|
|
303
|
+
children: t,
|
|
304
|
+
isDarkMode: i
|
|
305
|
+
}) => /* @__PURE__ */ W.jsx(Sn, { options: {
|
|
306
|
+
overrides: {
|
|
307
|
+
code: {
|
|
308
|
+
component: (o) => /* @__PURE__ */ W.jsx(be, { ...o, isDarkMode: i })
|
|
309
|
+
}
|
|
310
|
+
}
|
|
311
|
+
}, children: t ?? "" });
|
|
312
|
+
export {
|
|
313
|
+
Sn as M,
|
|
314
|
+
On as a
|
|
315
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as s } from "./jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import "./localeList-CaRF-907.js";
|
|
4
|
+
import { ContentEditor as y } from "./components/ContentEditor/ContentEditor.es.js";
|
|
5
|
+
import { StyledContainer as h } from "./components/DictionaryEditor/ItemLayout.es.js";
|
|
6
|
+
const m = (r, t) => r.every(
|
|
7
|
+
(n, e) => t[e] && t[e].key === n.key && t[e].type === n.type
|
|
8
|
+
), f = (r) => {
|
|
9
|
+
var i;
|
|
10
|
+
const {
|
|
11
|
+
keyPath: t,
|
|
12
|
+
section: n,
|
|
13
|
+
editedContent: e,
|
|
14
|
+
onContentChange: a,
|
|
15
|
+
onFocusKeyPath: p,
|
|
16
|
+
focusedKeyPath: c = []
|
|
17
|
+
} = r, l = (i = e == null ? void 0 : e.find((o) => m(o.keyPath, c))) == null ? void 0 : i.newValue;
|
|
18
|
+
return /* @__PURE__ */ s.jsx(h, { $level: t.length, onClick: (o) => {
|
|
19
|
+
o.stopPropagation(), p(t);
|
|
20
|
+
}, children: /* @__PURE__ */ s.jsx(y, { onContentChange: (o) => a({
|
|
21
|
+
keyPath: t,
|
|
22
|
+
newValue: o
|
|
23
|
+
}), isEditing: !0, children: l ?? n }) });
|
|
24
|
+
};
|
|
25
|
+
export {
|
|
26
|
+
f as S,
|
|
27
|
+
m as i
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";const s=require("./jsx-runtime-D6agescH.cjs");require("./localeList-DlUgKn8J.cjs");const h=require("./components/ContentEditor/ContentEditor.cjs.js"),l=require("./components/DictionaryEditor/ItemLayout.cjs.js"),c=(r,t)=>r.every((o,e)=>t[e]&&t[e].key===o.key&&t[e].type===o.type),C=r=>{var i;const{keyPath:t,section:o,editedContent:e,onContentChange:a,onFocusKeyPath:u,focusedKeyPath:p=[]}=r,y=(i=e==null?void 0:e.find(n=>c(n.keyPath,p)))==null?void 0:i.newValue;return s.jsxRuntimeExports.jsx(l.StyledContainer,{$level:t.length,onClick:n=>{n.stopPropagation(),u(t)},children:s.jsxRuntimeExports.jsx(h.ContentEditor,{onContentChange:n=>a({keyPath:t,newValue:n}),isEditing:!0,children:y??o})})};exports.StringWrapper=C;exports.isSameKeyPath=c;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { c } from "./createLucideIcon-DlZEiEGq.js";
|
|
3
|
+
/**
|
|
4
|
+
* @license lucide-react v0.376.0 - ISC
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the ISC license.
|
|
7
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
const t = c("Check", [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]);
|
|
10
|
+
export {
|
|
11
|
+
t as C
|
|
12
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";"use strict";const e=require("./createLucideIcon-ZOnO-fn6.cjs");/**
|
|
2
|
+
* @license lucide-react v0.376.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const c=e.createLucideIcon("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);exports.Check=c;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../jsx-runtime-D6agescH.cjs"),a=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),o=require("react"),l=require("../MaxHeightSmoother/index.cjs.js"),x=require("../../createLucideIcon-ZOnO-fn6.cjs");/**
|
|
2
|
+
* @license lucide-react v0.376.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const d=x.createLucideIcon("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),v=a.pt.div({display:"flex",cursor:"pointer",alignItems:"center",justifyContent:"space-between"}),u=a.pt(d)`
|
|
7
|
+
${({$isOpen:s})=>s?{"--tw-rotate":"0deg",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"}:{"--tw-rotate":"180deg",transform:"translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"}}
|
|
8
|
+
`,m=({children:s,header:c,isOpen:t=!1})=>{const[r,n]=o.useState(t),i=r===void 0?void 0:!r;return o.useEffect(()=>{t!==void 0&&n(t)},[t]),e.jsxRuntimeExports.jsxs(e.jsxRuntimeExports.Fragment,{children:[e.jsxRuntimeExports.jsxs(v,{onClick:()=>n(w=>!w),children:[c,e.jsxRuntimeExports.jsx(u,{size:24,$isOpen:r})]}),e.jsxRuntimeExports.jsx(l.MaxHeightSmoother,{isHidden:i,children:s})]})};exports.Accordion=m;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { p as o } from "../../styled-components.browser.esm-D6kkzXl4.js";
|
|
4
|
+
import { useState as i, useEffect as l } from "react";
|
|
5
|
+
import { MaxHeightSmoother as v } from "../MaxHeightSmoother/index.es.js";
|
|
6
|
+
import { c as d } from "../../createLucideIcon-DlZEiEGq.js";
|
|
7
|
+
/**
|
|
8
|
+
* @license lucide-react v0.376.0 - ISC
|
|
9
|
+
*
|
|
10
|
+
* This source code is licensed under the ISC license.
|
|
11
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
12
|
+
*/
|
|
13
|
+
const m = d("ChevronDown", [
|
|
14
|
+
["path", { d: "m6 9 6 6 6-6", key: "qrunsl" }]
|
|
15
|
+
]), x = o.div({
|
|
16
|
+
display: "flex",
|
|
17
|
+
cursor: "pointer",
|
|
18
|
+
alignItems: "center",
|
|
19
|
+
justifyContent: "space-between"
|
|
20
|
+
}), p = o(m)`
|
|
21
|
+
${({
|
|
22
|
+
$isOpen: r
|
|
23
|
+
}) => r ? {
|
|
24
|
+
"--tw-rotate": "0deg",
|
|
25
|
+
transform: "translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"
|
|
26
|
+
} : {
|
|
27
|
+
"--tw-rotate": "180deg",
|
|
28
|
+
transform: "translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))"
|
|
29
|
+
}}
|
|
30
|
+
`, u = ({
|
|
31
|
+
children: r,
|
|
32
|
+
header: n,
|
|
33
|
+
isOpen: e = !1
|
|
34
|
+
}) => {
|
|
35
|
+
const [s, a] = i(e), c = s === void 0 ? void 0 : !s;
|
|
36
|
+
return l(() => {
|
|
37
|
+
e !== void 0 && a(e);
|
|
38
|
+
}, [e]), /* @__PURE__ */ t.jsxs(t.Fragment, { children: [
|
|
39
|
+
/* @__PURE__ */ t.jsxs(x, { onClick: () => a((w) => !w), children: [
|
|
40
|
+
n,
|
|
41
|
+
/* @__PURE__ */ t.jsx(p, { size: 24, $isOpen: s })
|
|
42
|
+
] }),
|
|
43
|
+
/* @__PURE__ */ t.jsx(v, { isHidden: c, children: r })
|
|
44
|
+
] });
|
|
45
|
+
};
|
|
46
|
+
export {
|
|
47
|
+
u as Accordion
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./Accordion.cjs.js");exports.Accordion=o.Accordion;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Accordion';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../jsx-runtime-D6agescH.cjs"),o=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),g=require("../Loader/index.cjs.js"),h=require("../../createLucideIcon-ZOnO-fn6.cjs");/**
|
|
2
|
+
* @license lucide-react v0.376.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const b=h.createLucideIcon("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),j=e=>e.split(" ").map(r=>r[0]).filter(Boolean).map(r=>r.toUpperCase()),v=o.pt.div({width:"2.5rem",height:"2.5rem",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgba(231, 231, 231, var(--tw-bg-opacity))",padding:"0.15rem"}),w=o.pt.div({display:"flex",width:"100%",height:"100%",flexDirection:"column",alignItems:"center",justifyContent:"center",borderRadius:"9999px","--tw-bg-opacity":"1",backgroundColor:"rgba(232, 121, 249, var(--tw-bg-opacity))"}),R=o.pt(g.Loader)(()=>({width:"75%"})),f=o.pt.img({width:"100%",height:"100%",borderRadius:"9999px"}),S=o.pt.div({display:"flex",width:"100%",height:"100%",alignItems:"center",justifyContent:"center",gap:"0.1rem",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"700","--tw-text-opacity":"1",color:"rgba(18, 18, 18, var(--tw-text-opacity))"}),C=o.pt(b)(()=>({"--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))"})),E=({fullname:e,className:r,isLoading:l,isLoggedIn:s,src:n,...x})=>{const y=!!n,m=(e??"").length>0,a=e?j(e):void 0,i=l,c=s&&!i&&!i&&y,d=s&&!i&&!c&&m,u=s&&!i&&!c&&!d;return t.jsxRuntimeExports.jsx(v,{...x,children:t.jsxRuntimeExports.jsxs(w,{children:[i&&t.jsxRuntimeExports.jsx(R,{}),c&&t.jsxRuntimeExports.jsx(f,{src:n,srcSet:n,alt:`avatar of ${e}`,width:59,height:59}),d&&t.jsxRuntimeExports.jsx(S,{"aria-label":"Initials of user's name",children:a==null?void 0:a.map(p=>t.jsxRuntimeExports.jsx("span",{children:p},p))}),u&&t.jsxRuntimeExports.jsx(C,{size:25})]})})};exports.Avatar=E;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { j as t } from "../../jsx-runtime-Tw_Kw2GZ.js";
|
|
3
|
+
import { p as o } from "../../styled-components.browser.esm-D6kkzXl4.js";
|
|
4
|
+
import { Loader as x } from "../Loader/index.es.js";
|
|
5
|
+
import { c as b } from "../../createLucideIcon-DlZEiEGq.js";
|
|
6
|
+
/**
|
|
7
|
+
* @license lucide-react v0.376.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/
|
|
12
|
+
const v = b("User", [
|
|
13
|
+
["path", { d: "M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2", key: "975kel" }],
|
|
14
|
+
["circle", { cx: "12", cy: "7", r: "4", key: "17ys0d" }]
|
|
15
|
+
]), w = (e) => e.split(" ").map((a) => a[0]).filter(Boolean).map((a) => a.toUpperCase()), f = o.div({
|
|
16
|
+
width: "2.5rem",
|
|
17
|
+
height: "2.5rem",
|
|
18
|
+
borderRadius: "9999px",
|
|
19
|
+
"--tw-bg-opacity": "1",
|
|
20
|
+
backgroundColor: "rgba(231, 231, 231, var(--tw-bg-opacity))",
|
|
21
|
+
padding: "0.15rem"
|
|
22
|
+
}), u = o.div({
|
|
23
|
+
display: "flex",
|
|
24
|
+
width: "100%",
|
|
25
|
+
height: "100%",
|
|
26
|
+
flexDirection: "column",
|
|
27
|
+
alignItems: "center",
|
|
28
|
+
justifyContent: "center",
|
|
29
|
+
borderRadius: "9999px",
|
|
30
|
+
"--tw-bg-opacity": "1",
|
|
31
|
+
backgroundColor: "rgba(232, 121, 249, var(--tw-bg-opacity))"
|
|
32
|
+
}), j = o(x)(() => ({
|
|
33
|
+
width: "75%"
|
|
34
|
+
})), C = o.img({
|
|
35
|
+
width: "100%",
|
|
36
|
+
height: "100%",
|
|
37
|
+
borderRadius: "9999px"
|
|
38
|
+
}), S = o.div({
|
|
39
|
+
display: "flex",
|
|
40
|
+
width: "100%",
|
|
41
|
+
height: "100%",
|
|
42
|
+
alignItems: "center",
|
|
43
|
+
justifyContent: "center",
|
|
44
|
+
gap: "0.1rem",
|
|
45
|
+
fontSize: "0.875rem",
|
|
46
|
+
lineHeight: "1.25rem",
|
|
47
|
+
fontWeight: "700",
|
|
48
|
+
"--tw-text-opacity": "1",
|
|
49
|
+
color: "rgba(18, 18, 18, var(--tw-text-opacity))"
|
|
50
|
+
}), I = o(v)(() => ({
|
|
51
|
+
"--tw-text-opacity": "1",
|
|
52
|
+
color: "rgba(255, 255, 255, var(--tw-text-opacity))"
|
|
53
|
+
})), A = ({
|
|
54
|
+
fullname: e,
|
|
55
|
+
className: a,
|
|
56
|
+
isLoading: p,
|
|
57
|
+
isLoggedIn: r,
|
|
58
|
+
src: s,
|
|
59
|
+
...y
|
|
60
|
+
}) => {
|
|
61
|
+
const m = !!s, h = (e ?? "").length > 0, n = e ? w(e) : void 0, i = p, c = r && !i && !i && m, d = r && !i && !c && h, g = r && !i && !c && !d;
|
|
62
|
+
return /* @__PURE__ */ t.jsx(f, { ...y, children: /* @__PURE__ */ t.jsxs(u, { children: [
|
|
63
|
+
i && /* @__PURE__ */ t.jsx(j, {}),
|
|
64
|
+
c && /* @__PURE__ */ t.jsx(C, { src: s, srcSet: s, alt: `avatar of ${e}`, width: 59, height: 59 }),
|
|
65
|
+
d && /* @__PURE__ */ t.jsx(S, { "aria-label": "Initials of user's name", children: n == null ? void 0 : n.map((l) => /* @__PURE__ */ t.jsx("span", { children: l }, l)) }),
|
|
66
|
+
g && /* @__PURE__ */ t.jsx(I, { size: 25 })
|
|
67
|
+
] }) });
|
|
68
|
+
};
|
|
69
|
+
export {
|
|
70
|
+
A as Avatar
|
|
71
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use client";"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../jsx-runtime-D6agescH.cjs"),a=require("../../styled-components.browser.esm-GqWwDlfY.cjs"),h=require("react"),u=require("../Loader/index.cjs.js"),m={sm:{height:"2rem",gap:"0.25rem",paddingLeft:"0.75rem",paddingRight:"0.75rem",fontSize:"0.75rem",lineHeight:"1rem"},lg:{height:"2.5rem",paddingLeft:"2rem",paddingRight:"2rem"},icon:{padding:"0px"}},v={primary:{"--tw-border-opacity":"1",borderColor:"rgba(232, 121, 249, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(232, 121, 249, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(232, 121, 249, var(--tw-text-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(197, 101, 212, var(--tw-bg-opacity))"},'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-border-opacity":"1",borderColor:"rgba(232, 121, 249, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(232, 121, 249, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(232, 121, 249, var(--tw-text-opacity))"},'&:hover:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"1",backgroundColor:"rgba(241, 171, 252, var(--tw-bg-opacity))"}},secondary:{"--tw-border-opacity":"1",borderColor:"rgba(255, 230, 109, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 230, 109, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(255, 230, 109, var(--tw-text-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 216, 69, var(--tw-bg-opacity))"},'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-border-opacity":"1",borderColor:"rgba(255, 230, 109, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 230, 109, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(255, 230, 109, var(--tw-text-opacity))"},'&:hover:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"1",backgroundColor:"rgba(255, 246, 194, var(--tw-bg-opacity))"}},destructive:{"--tw-border-opacity":"1",borderColor:"rgba(251, 125, 60, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(251, 125, 60, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(251, 125, 60, var(--tw-text-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(249, 90, 22, var(--tw-bg-opacity))"},'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-border-opacity":"1",borderColor:"rgba(251, 125, 60, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(251, 125, 60, var(--tw-bg-opacity))"},'&:hover:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"1",backgroundColor:"rgba(254, 206, 170, var(--tw-bg-opacity))"}},neutral:{"--tw-border-opacity":"1",borderColor:"rgba(93, 93, 93, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(93, 93, 93, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(93, 93, 93, var(--tw-text-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(136, 136, 136, var(--tw-bg-opacity))"},'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-border-opacity":"1",borderColor:"rgba(136, 136, 136, var(--tw-border-opacity))","--tw-text-opacity":"1",color:"rgba(136, 136, 136, var(--tw-text-opacity))"},'&:hover:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"1",backgroundColor:"rgba(109, 109, 109, var(--tw-bg-opacity))"}},light:{"--tw-border-opacity":"1",borderColor:"rgba(255, 255, 255, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 255, 255, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(255, 255, 255, var(--tw-text-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(246, 246, 246, var(--tw-bg-opacity))"}},dark:{"--tw-border-opacity":"1",borderColor:"rgba(69, 69, 69, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(69, 69, 69, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(69, 69, 69, var(--tw-text-opacity))","&:hover":{"--tw-bg-opacity":"1",backgroundColor:"rgba(61, 61, 61, var(--tw-bg-opacity))"},'&:where([data-theme="dark"], [data-theme="dark"] *):hover':{"--tw-bg-opacity":"1",backgroundColor:"rgba(79, 79, 79, var(--tw-bg-opacity))"}},text:{"--tw-border-opacity":"1",borderColor:"rgba(18, 18, 18, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(18, 18, 18, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(18, 18, 18, var(--tw-text-opacity))",'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-border-opacity":"1",borderColor:"rgba(255, 245, 237, var(--tw-border-opacity))","--tw-bg-opacity":"1",backgroundColor:"rgba(255, 245, 237, var(--tw-bg-opacity))","--tw-text-opacity":"1",color:"rgba(255, 245, 237, var(--tw-text-opacity))"}}},k={default:{borderRadius:"0.5rem","--tw-text-opacity":"1",color:"rgba(255, 245, 237, var(--tw-text-opacity))",'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-text-opacity":"1",color:"rgba(28, 28, 28, var(--tw-text-opacity))"}},none:{borderStyle:"none","--tw-bg-opacity":"0",color:"inherit","&:hover":{"--tw-bg-opacity":"0"},'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"0",color:"inherit"},'&:where([data-theme="dark"], [data-theme="dark"] *):hover':{"--tw-bg-opacity":"0"}},outline:{borderRadius:"0.5rem",borderWidth:"1.5px","--tw-bg-opacity":"0","&:hover":{"--tw-bg-opacity":"0.3"},'&:where([data-theme="dark"], [data-theme="dark"] *)':{"--tw-bg-opacity":"0"}},link:{height:"auto",justifyContent:"flex-start",borderColor:"inherit",backgroundColor:"transparent",padding:"0px",textUnderlineOffset:"4px","&:hover":{backgroundColor:"transparent",textDecorationLine:"underline"},'&:where([data-theme="dark"], [data-theme="dark"] *)':{backgroundColor:"transparent"}},"invisible-link":{height:"auto",justifyContent:"flex-start",borderColor:"inherit",backgroundColor:"transparent",padding:"0px",textUnderlineOffset:"4px","&:hover":{backgroundColor:"transparent"},'&:where([data-theme="dark"], [data-theme="dark"] *)':{backgroundColor:"transparent"}}},x=a.pt.button`
|
|
2
|
+
${{display:"inline-flex",alignItems:"center",justifyContent:"center",gap:"0.5rem",whiteSpace:"nowrap",fontSize:"0.875rem",lineHeight:"1.25rem",fontWeight:"500",transitionProperty:"color, background-color, border-color, text-decoration-color, fill, stroke, opacity, box-shadow, transform, filter, backdrop-filter",transitionTimingFunction:"cubic-bezier(0.4, 0, 0.2, 1)",transitionDuration:"150ms","&:focus-visible":{outline:"2px solid transparent",outlineOffset:"2px"},"&:disabled":{pointerEvents:"none",opacity:"0.5"}}}
|
|
3
|
+
${({$size:t})=>m[t]}
|
|
4
|
+
${({$color:t})=>v[t]}
|
|
5
|
+
${({$variant:t})=>k[t]}
|
|
6
|
+
`,C={sm:{width:"0.75rem"},lg:{width:"1.25rem"},icon:{width:"1.5rem"}},f=({Icon:t,isLoading:o,...e})=>o?r.jsxRuntimeExports.jsx(u.Loader,{...e}):t&&r.jsxRuntimeExports.jsx(t,{}),j=a.pt.div({display:"flex",width:"100%",flexDirection:"row"}),R=a.pt.div({display:"flex",width:"100%",flexDirection:"row",alignItems:"center",justifyContent:"center"}),S=a.pt(f)(({$size:t})=>[C[t],{alignSelf:"flex-start"}]),b=h.forwardRef(({variant:t="none",size:o="sm",color:e="primary",children:c,Icon:d,iconClassName:n,isLoading:i=!1,isActive:g,disabled:p,label:w,...l},y)=>{const s=t==="link"||t==="invisible-link";return r.jsxRuntimeExports.jsx(x,{ref:y,disabled:i??p,"aria-current":g,"aria-label":w,"aria-busy":i,role:s?"link":void 0,$variant:t,$color:e,$size:o,...l,children:d?r.jsxRuntimeExports.jsxs(j,{children:[r.jsxRuntimeExports.jsx(S,{className:n,$size:o,isLoading:i,Icon:d}),r.jsxRuntimeExports.jsx(R,{children:c})]}):c})});b.displayName="Button";exports.Button=b;
|