{"version":3,"file":"app.C_oMA4pG.js","sources":["../../../../../../../../node_modules/.pnpm/clsx@1.2.1/node_modules/clsx/dist/clsx.m.js","../../../../../../../../node_modules/.pnpm/svelte-body@1.4.0_svelte@4.2.18/node_modules/svelte-body/dist/actions.js"],"sourcesContent":["function r(e){var t,f,n=\"\";if(\"string\"==typeof e||\"number\"==typeof e)n+=e;else if(\"object\"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=\" \"),n+=f);else for(t in e)e[t]&&(n&&(n+=\" \"),n+=t);return n}export function clsx(){for(var e,t,f=0,n=\"\";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=\" \"),n+=t);return n}export default clsx;","import { writable, get } from 'svelte/store';\nimport clsx, {} from 'clsx';\n/**\n * Svelte action to change class on `body`\n *\n * You can pass a string or object, or an array of combination of these. Literally anything that [clsx](https://github.com/lukeed/clsx) accepts.\n *\n * @example\n *\n *```svelte\n * <script>\n * import { classList } from 'svelte-body';\n *\n * let isBlue = true;\n * </script>\n *\n * <svelte:body use:classList={\"red green blue\"} />\n * <svelte:body use:classList={{ red: true, blue: isBlue }} />\n * <svelte:body use:classList={['red', isBlue && 'blue']} />\n * <svelte:body use:classList={[ 'red', { blue: isBlue } ]} />\n *```\n */\nexport const classList = (node, classString = '') => {\n const classes = writable(clsx(classString).split(' ').filter(Boolean));\n // When the classes store changes add the new classes\n const unsubscribe = classes.subscribe((list) => {\n if (Array.isArray(list) && list?.length)\n node.classList.add(...list);\n });\n // Remove all classes that we added\n const unset = () => node.classList.remove(...get(classes));\n return {\n update: (classString = '') => {\n unset();\n classes.set(clsx(classString).split(' ').filter(Boolean));\n },\n destroy: () => {\n unset();\n unsubscribe();\n },\n };\n};\n/**\n * Svelte action to add style on `body`. style can either be a string or an object.\n *\n * @example\n *\n *```svelte\n * <script>\n * import { style } from 'svelte-body';\n * </script>\n *\n * <svelte:body use:style={\"background-color: blue;\"} />\n * <svelte:body use:style={{ backgroundColor: 'blue' }} />\n *```\n */\nexport const style = (node, styleData = {}) => {\n // Pseudo Element for style parsing and keeping track of styles\n const pseudoElement = document.createElement('div');\n const update = (styleData = {}) => {\n if (typeof styleData == 'string')\n pseudoElement.style.cssText = styleData;\n if (typeof styleData == 'object')\n for (const [property, value] of Object.entries(styleData)) {\n // Do a setProperty in case it's a CSS variable\n if (property.startsWith('--')) {\n pseudoElement.style.setProperty(property, value);\n }\n else {\n pseudoElement.style[property] = value;\n }\n }\n // Combine body's existing styles with computed ones\n node.style.cssText = `\n\t\t\t\t\t${node.style.cssText};\n\t\t\t\t\t${pseudoElement.style.cssText};\n\t\t\t\t`;\n };\n // Initial Update\n update(styleData);\n const unset = () => {\n // Remove the pseudoElements styles on the body\n node.style.cssText = node.style.cssText.replace(pseudoElement.style.cssText, '');\n // Clear pseudoElement\n pseudoElement.style.cssText = '';\n };\n return {\n update: (styleData) => {\n unset();\n update(styleData);\n },\n destroy: unset,\n };\n};\n"],"names":["r","e","f","n","clsx","classList","node","classString","classes","writable","unsubscribe","list","unset","get"],"mappings":"oFAAA,SAASA,EAAEC,EAAE,CAAC,IAAI,EAAEC,EAAEC,EAAE,GAAG,GAAa,OAAOF,GAAjB,UAA8B,OAAOA,GAAjB,SAAmBE,GAAGF,UAAoB,OAAOA,GAAjB,SAAmB,GAAG,MAAM,QAAQA,CAAC,EAAE,IAAI,EAAE,EAAE,EAAEA,EAAE,OAAO,IAAIA,EAAE,CAAC,IAAIC,EAAEF,EAAEC,EAAE,CAAC,CAAC,KAAKE,IAAIA,GAAG,KAAKA,GAAGD,OAAQ,KAAI,KAAKD,EAAEA,EAAE,CAAC,IAAIE,IAAIA,GAAG,KAAKA,GAAG,GAAG,OAAOA,CAAC,CAAQ,SAASC,GAAM,CAAC,QAAQH,EAAE,EAAEC,EAAE,EAAEC,EAAE,GAAGD,EAAE,UAAU,SAASD,EAAE,UAAUC,GAAG,KAAK,EAAEF,EAAEC,CAAC,KAAKE,IAAIA,GAAG,KAAKA,GAAG,GAAG,OAAOA,CAAC,CCsBrV,MAACE,EAAY,CAACC,EAAMC,EAAc,KAAO,CACjD,MAAMC,EAAUC,EAASL,EAAKG,CAAW,EAAE,MAAM,GAAG,EAAE,OAAO,OAAO,CAAC,EAE/DG,EAAcF,EAAQ,UAAWG,GAAS,CACxC,MAAM,QAAQA,CAAI,IAAKA,GAAA,MAAAA,EAAM,SAC7BL,EAAK,UAAU,IAAI,GAAGK,CAAI,CACtC,CAAK,EAEKC,EAAQ,IAAMN,EAAK,UAAU,OAAO,GAAGO,EAAIL,CAAO,CAAC,EACzD,MAAO,CACH,OAAQ,CAACD,EAAc,KAAO,CAC1BK,IACAJ,EAAQ,IAAIJ,EAAKG,CAAW,EAAE,MAAM,GAAG,EAAE,OAAO,OAAO,CAAC,CAC3D,EACD,QAAS,IAAM,CACXK,IACAF,GACH,CACT,CACA","x_google_ignoreList":[0,1]}