diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 900d44e..9868be1 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,9 +1,9 @@ version: 2 updates: - - package-ecosystem: "npm" - directory: "/" + - package-ecosystem: npm + directory: / schedule: - interval: "daily" + interval: daily commit-message: prefix: fix prefix-development: chore @@ -11,18 +11,18 @@ updates: groups: linting-dx-tools: patterns: - - "*lint*" # eslint, eslint-*, vue-eslint-parser, lint-staged, @commitlint/*, @typescript-eslint/* - - "prettier" - - "husky" - - "@vue/tsconfig" - - "*babel*" # babel-*, @vue/babel-preset-app, @babel/* + - '*lint*' # eslint, eslint-*, vue-eslint-parser, lint-staged, @commitlint/*, @typescript-eslint/* + - prettier + - husky + - '@vue/tsconfig' + - '*babel*' # babel-*, @vue/babel-preset-app, @babel/* update-types: - - "minor" - - "patch" + - minor + - patch testing-tools: patterns: - - "@vue/test-utils" - - "vitest" + - '@vue/test-utils' + - vitest update-types: - - "minor" - - "patch" \ No newline at end of file + - minor + - patch diff --git a/README.md b/README.md index f88f08f..58b84dc 100644 --- a/README.md +++ b/README.md @@ -29,12 +29,10 @@

- ## 🚀 Usage > If you are first-time user of the Storyblok, read the [Getting Started](https://www.storyblok.com/docs/guide/getting-started?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-richtext) guide to get a project ready in less than 5 minutes. - ### Installation ```bash @@ -56,17 +54,17 @@ pnpm add @storyblok/richtext ### Basic ```ts -import { richTextResolver } from '@storyblok/richtext' +import { richTextResolver } from '@storyblok/richtext'; -const { render } = richTextResolver() +const { render } = richTextResolver(); -const html = render(doc) +const html = render(doc); document.querySelector('#app')!.innerHTML = `
${html}
-` +`; ``` ### Overwrite resolvers @@ -74,15 +72,15 @@ document.querySelector('#app')!.innerHTML = ` To overwrite an existing resolver, you can pass a property called resolvers available on the `richTextResolver` options. ```ts -import { MarkTypes, richTextResolver } from '@storyblok/richtext' +import { MarkTypes, richTextResolver } from '@storyblok/richtext'; const html = richTextResolver({ resolvers: { [MarkTypes.LINK]: (node) => { - return `` + return ``; }, }, -}).render(doc) +}).render(doc); ``` ### Typing with Generics @@ -100,20 +98,20 @@ This way the `@storyblok/richtext` is ignorant of framework specific types, avoi const options: StoryblokRichTextOptions = { resolvers: { [MarkTypes.LINK]: (node: Node) => { - return `` + return ``; }, }, -} +}; -const html = richTextResolver(options).render(doc) +const html = richTextResolver(options).render(doc); ``` ```ts // Vue const options: StoryblokRichTextOptions = { renderFn: h, -} -const root = () => richTextResolver(options).render(doc) +}; +const root = () => richTextResolver(options).render(doc); ``` ## Optimize Images @@ -121,7 +119,7 @@ const root = () => richTextResolver(options).render(doc) To optimize images in the richtext, you can use the `optimizeImages` property on the `richTextResolver` options. For the full list of available options, check the [Image Optimization](https://github.com/storyblok/storyblok-js-client?tab=readme-ov-file#method-storyblokrichtextresolverrender) documentation. ```ts -import { richTextResolver } from '@storyblok/richtext' +import { richTextResolver } from '@storyblok/richtext'; const html = richTextResolver({ optimizeImages: { @@ -139,12 +137,12 @@ const html = richTextResolver({ brightness: 10, }, }, -}).render(doc) +}).render(doc); ``` ## Security: HTML Output Sanitization -> [!WARNING] +> [!WARNING] > This package does not provide proper HTML sanitization by default The `@storyblok/richtext` package primarly converts rich text content into HTML strings, which can then be rendered into the DOM of a web page. This means that any HTML output generated by the rich text resolver includes the raw content as it is defined in Storyblok, which may potentially include harmful or malicious scripts. @@ -162,8 +160,8 @@ As a developer using `@storyblok/richtext`, you are responsible for sanitizing t To assist you in sanitizing HTML content, we recommend using the following library: - **sanitize-html**: A simple HTML sanitizer with a flexible API that can adjust to a wide range of applications. - - GitHub: [sanitize-html](https://github.com/apostrophecms/sanitize-html) + + GitHub: [sanitize-html](https://github.com/apostrophecms/sanitize-html) ### Example Usage @@ -175,17 +173,16 @@ import { richTextResolver } from '@storyblok/richtext'; const html = richTextResolver().render(yourRichTextContent); const sanitizedHTML = sanitizeHtml(html, { - allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img', 'figure', 'figcaption']), - allowedAttributes: { - ...sanitizeHtml.defaults.allowedAttributes, - 'img': ['src', 'alt', 'title'] - } + allowedTags: sanitizeHtml.defaults.allowedTags.concat(['img', 'figure', 'figcaption']), + allowedAttributes: { + ...sanitizeHtml.defaults.allowedAttributes, + img: ['src', 'alt', 'title'] + } }); document.getElementById('your-element-id').innerHTML = sanitizedHTML; ``` - ## Setup ``` @@ -262,7 +259,6 @@ To run the tests for the core package: pnpm run test ``` - ## 🔗 Related Links - **[Storyblok Technology Hub](https://www.storyblok.com/technologies?utm_source=github.com&utm_medium=readme&utm_campaign=storyblok-js)**: Storyblok integrates with every framework so that you are free to choose the best fit for your project. We prepared the technology hub so that you can find selected beginner tutorials, videos, boilerplates, and even cheatsheets all in one place. diff --git a/coverage/base.css b/coverage/base.css deleted file mode 100644 index f418035..0000000 --- a/coverage/base.css +++ /dev/null @@ -1,224 +0,0 @@ -body, html { - margin:0; padding: 0; - height: 100%; -} -body { - font-family: Helvetica Neue, Helvetica, Arial; - font-size: 14px; - color:#333; -} -.small { font-size: 12px; } -*, *:after, *:before { - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; - } -h1 { font-size: 20px; margin: 0;} -h2 { font-size: 14px; } -pre { - font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; - margin: 0; - padding: 0; - -moz-tab-size: 2; - -o-tab-size: 2; - tab-size: 2; -} -a { color:#0074D9; text-decoration:none; } -a:hover { text-decoration:underline; } -.strong { font-weight: bold; } -.space-top1 { padding: 10px 0 0 0; } -.pad2y { padding: 20px 0; } -.pad1y { padding: 10px 0; } -.pad2x { padding: 0 20px; } -.pad2 { padding: 20px; } -.pad1 { padding: 10px; } -.space-left2 { padding-left:55px; } -.space-right2 { padding-right:20px; } -.center { text-align:center; } -.clearfix { display:block; } -.clearfix:after { - content:''; - display:block; - height:0; - clear:both; - visibility:hidden; - } -.fl { float: left; } -@media only screen and (max-width:640px) { - .col3 { width:100%; max-width:100%; } - .hide-mobile { display:none!important; } -} - -.quiet { - color: #7f7f7f; - color: rgba(0,0,0,0.5); -} -.quiet a { opacity: 0.7; } - -.fraction { - font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; - font-size: 10px; - color: #555; - background: #E8E8E8; - padding: 4px 5px; - border-radius: 3px; - vertical-align: middle; -} - -div.path a:link, div.path a:visited { color: #333; } -table.coverage { - border-collapse: collapse; - margin: 10px 0 0 0; - padding: 0; -} - -table.coverage td { - margin: 0; - padding: 0; - vertical-align: top; -} -table.coverage td.line-count { - text-align: right; - padding: 0 5px 0 20px; -} -table.coverage td.line-coverage { - text-align: right; - padding-right: 10px; - min-width:20px; -} - -table.coverage td span.cline-any { - display: inline-block; - padding: 0 5px; - width: 100%; -} -.missing-if-branch { - display: inline-block; - margin-right: 5px; - border-radius: 3px; - position: relative; - padding: 0 4px; - background: #333; - color: yellow; -} - -.skip-if-branch { - display: none; - margin-right: 10px; - position: relative; - padding: 0 4px; - background: #ccc; - color: white; -} -.missing-if-branch .typ, .skip-if-branch .typ { - color: inherit !important; -} -.coverage-summary { - border-collapse: collapse; - width: 100%; -} -.coverage-summary tr { border-bottom: 1px solid #bbb; } -.keyline-all { border: 1px solid #ddd; } -.coverage-summary td, .coverage-summary th { padding: 10px; } -.coverage-summary tbody { border: 1px solid #bbb; } -.coverage-summary td { border-right: 1px solid #bbb; } -.coverage-summary td:last-child { border-right: none; } -.coverage-summary th { - text-align: left; - font-weight: normal; - white-space: nowrap; -} -.coverage-summary th.file { border-right: none !important; } -.coverage-summary th.pct { } -.coverage-summary th.pic, -.coverage-summary th.abs, -.coverage-summary td.pct, -.coverage-summary td.abs { text-align: right; } -.coverage-summary td.file { white-space: nowrap; } -.coverage-summary td.pic { min-width: 120px !important; } -.coverage-summary tfoot td { } - -.coverage-summary .sorter { - height: 10px; - width: 7px; - display: inline-block; - margin-left: 0.5em; - background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; -} -.coverage-summary .sorted .sorter { - background-position: 0 -20px; -} -.coverage-summary .sorted-desc .sorter { - background-position: 0 -10px; -} -.status-line { height: 10px; } -/* yellow */ -.cbranch-no { background: yellow !important; color: #111; } -/* dark red */ -.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } -.low .chart { border:1px solid #C21F39 } -.highlighted, -.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ - background: #C21F39 !important; -} -/* medium red */ -.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } -/* light red */ -.low, .cline-no { background:#FCE1E5 } -/* light green */ -.high, .cline-yes { background:rgb(230,245,208) } -/* medium green */ -.cstat-yes { background:rgb(161,215,106) } -/* dark green */ -.status-line.high, .high .cover-fill { background:rgb(77,146,33) } -.high .chart { border:1px solid rgb(77,146,33) } -/* dark yellow (gold) */ -.status-line.medium, .medium .cover-fill { background: #f9cd0b; } -.medium .chart { border:1px solid #f9cd0b; } -/* light yellow */ -.medium { background: #fff4c2; } - -.cstat-skip { background: #ddd; color: #111; } -.fstat-skip { background: #ddd; color: #111 !important; } -.cbranch-skip { background: #ddd !important; color: #111; } - -span.cline-neutral { background: #eaeaea; } - -.coverage-summary td.empty { - opacity: .5; - padding-top: 4px; - padding-bottom: 4px; - line-height: 1; - color: #888; -} - -.cover-fill, .cover-empty { - display:inline-block; - height: 12px; -} -.chart { - line-height: 0; -} -.cover-empty { - background: white; -} -.cover-full { - border-right: none !important; -} -pre.prettyprint { - border: none !important; - padding: 0 !important; - margin: 0 !important; -} -.com { color: #999 !important; } -.ignore-none { color: #999; font-weight: normal; } - -.wrapper { - min-height: 100%; - height: auto !important; - height: 100%; - margin: 0 auto -48px; -} -.footer, .push { - height: 48px; -} diff --git a/coverage/block-navigation.js b/coverage/block-navigation.js deleted file mode 100644 index cc12130..0000000 --- a/coverage/block-navigation.js +++ /dev/null @@ -1,87 +0,0 @@ -/* eslint-disable */ -var jumpToCode = (function init() { - // Classes of code we would like to highlight in the file view - var missingCoverageClasses = ['.cbranch-no', '.cstat-no', '.fstat-no']; - - // Elements to highlight in the file listing view - var fileListingElements = ['td.pct.low']; - - // We don't want to select elements that are direct descendants of another match - var notSelector = ':not(' + missingCoverageClasses.join('):not(') + ') > '; // becomes `:not(a):not(b) > ` - - // Selecter that finds elements on the page to which we can jump - var selector = - fileListingElements.join(', ') + - ', ' + - notSelector + - missingCoverageClasses.join(', ' + notSelector); // becomes `:not(a):not(b) > a, :not(a):not(b) > b` - - // The NodeList of matching elements - var missingCoverageElements = document.querySelectorAll(selector); - - var currentIndex; - - function toggleClass(index) { - missingCoverageElements - .item(currentIndex) - .classList.remove('highlighted'); - missingCoverageElements.item(index).classList.add('highlighted'); - } - - function makeCurrent(index) { - toggleClass(index); - currentIndex = index; - missingCoverageElements.item(index).scrollIntoView({ - behavior: 'smooth', - block: 'center', - inline: 'center' - }); - } - - function goToPrevious() { - var nextIndex = 0; - if (typeof currentIndex !== 'number' || currentIndex === 0) { - nextIndex = missingCoverageElements.length - 1; - } else if (missingCoverageElements.length > 1) { - nextIndex = currentIndex - 1; - } - - makeCurrent(nextIndex); - } - - function goToNext() { - var nextIndex = 0; - - if ( - typeof currentIndex === 'number' && - currentIndex < missingCoverageElements.length - 1 - ) { - nextIndex = currentIndex + 1; - } - - makeCurrent(nextIndex); - } - - return function jump(event) { - if ( - document.getElementById('fileSearch') === document.activeElement && - document.activeElement != null - ) { - // if we're currently focused on the search input, we don't want to navigate - return; - } - - switch (event.which) { - case 78: // n - case 74: // j - goToNext(); - break; - case 66: // b - case 75: // k - case 80: // p - goToPrevious(); - break; - } - }; -})(); -window.addEventListener('keydown', jumpToCode); diff --git a/coverage/clover.xml b/coverage/clover.xml deleted file mode 100644 index 413e77b..0000000 --- a/coverage/clover.xml +++ /dev/null @@ -1,96 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/coverage/coverage-final.json b/coverage/coverage-final.json deleted file mode 100644 index 186cac5..0000000 --- a/coverage/coverage-final.json +++ /dev/null @@ -1,2 +0,0 @@ -{"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.ts": {"path":"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":51}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":0}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":143}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":40}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":12}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":12}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":44}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":36}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":0}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":120}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":68}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":150}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":12}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":47}},"14":{"start":{"line":15,"column":0},"end":{"line":15,"column":5}},"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":3}},"16":{"start":{"line":17,"column":0},"end":{"line":17,"column":0}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":35}},"18":{"start":{"line":19,"column":0},"end":{"line":19,"column":67}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":36}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":26}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":14}},"22":{"start":{"line":23,"column":0},"end":{"line":23,"column":83}},"23":{"start":{"line":24,"column":0},"end":{"line":24,"column":7}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":87}},"25":{"start":{"line":26,"column":0},"end":{"line":26,"column":38}},"26":{"start":{"line":27,"column":0},"end":{"line":27,"column":27}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":14}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":84}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":7}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":105}},"31":{"start":{"line":32,"column":0},"end":{"line":32,"column":52}},"32":{"start":{"line":33,"column":0},"end":{"line":33,"column":0}},"33":{"start":{"line":34,"column":0},"end":{"line":34,"column":0}},"34":{"start":{"line":35,"column":0},"end":{"line":35,"column":25}},"35":{"start":{"line":36,"column":0},"end":{"line":36,"column":40}},"36":{"start":{"line":37,"column":0},"end":{"line":37,"column":91}},"37":{"start":{"line":38,"column":0},"end":{"line":38,"column":2}},"38":{"start":{"line":39,"column":0},"end":{"line":39,"column":17}},"39":{"start":{"line":40,"column":0},"end":{"line":40,"column":71}},"40":{"start":{"line":41,"column":0},"end":{"line":41,"column":7}},"41":{"start":{"line":42,"column":0},"end":{"line":42,"column":20}},"42":{"start":{"line":43,"column":0},"end":{"line":43,"column":77}},"43":{"start":{"line":44,"column":0},"end":{"line":44,"column":7}},"44":{"start":{"line":45,"column":0},"end":{"line":45,"column":23}},"45":{"start":{"line":46,"column":0},"end":{"line":46,"column":83}},"46":{"start":{"line":47,"column":0},"end":{"line":47,"column":7}},"47":{"start":{"line":48,"column":0},"end":{"line":48,"column":51}},"48":{"start":{"line":49,"column":0},"end":{"line":49,"column":54}},"49":{"start":{"line":50,"column":0},"end":{"line":50,"column":111}},"50":{"start":{"line":51,"column":0},"end":{"line":51,"column":101}},"51":{"start":{"line":52,"column":0},"end":{"line":52,"column":5}},"52":{"start":{"line":53,"column":0},"end":{"line":53,"column":0}},"53":{"start":{"line":54,"column":0},"end":{"line":54,"column":33}},"54":{"start":{"line":55,"column":0},"end":{"line":55,"column":25}},"55":{"start":{"line":56,"column":0},"end":{"line":56,"column":52}},"56":{"start":{"line":57,"column":0},"end":{"line":57,"column":40}},"57":{"start":{"line":58,"column":0},"end":{"line":58,"column":119}},"58":{"start":{"line":59,"column":0},"end":{"line":59,"column":9}},"59":{"start":{"line":60,"column":0},"end":{"line":60,"column":57}},"60":{"start":{"line":61,"column":0},"end":{"line":61,"column":50}},"61":{"start":{"line":62,"column":0},"end":{"line":62,"column":142}},"62":{"start":{"line":63,"column":0},"end":{"line":63,"column":9}},"63":{"start":{"line":64,"column":0},"end":{"line":64,"column":20}},"64":{"start":{"line":65,"column":0},"end":{"line":65,"column":5}},"65":{"start":{"line":66,"column":0},"end":{"line":66,"column":0}},"66":{"start":{"line":67,"column":0},"end":{"line":67,"column":32}},"67":{"start":{"line":68,"column":0},"end":{"line":68,"column":24}},"68":{"start":{"line":69,"column":0},"end":{"line":69,"column":45}},"69":{"start":{"line":70,"column":0},"end":{"line":70,"column":5}},"70":{"start":{"line":71,"column":0},"end":{"line":71,"column":3}},"71":{"start":{"line":72,"column":0},"end":{"line":72,"column":2}},"72":{"start":{"line":73,"column":0},"end":{"line":73,"column":95}},"73":{"start":{"line":74,"column":0},"end":{"line":74,"column":76}},"74":{"start":{"line":75,"column":0},"end":{"line":75,"column":30}},"75":{"start":{"line":76,"column":0},"end":{"line":76,"column":22}},"76":{"start":{"line":77,"column":0},"end":{"line":77,"column":41}},"77":{"start":{"line":78,"column":0},"end":{"line":78,"column":3}},"78":{"start":{"line":79,"column":0},"end":{"line":79,"column":31}},"79":{"start":{"line":80,"column":0},"end":{"line":80,"column":64}},"80":{"start":{"line":81,"column":0},"end":{"line":81,"column":3}},"81":{"start":{"line":82,"column":0},"end":{"line":82,"column":1}},"82":{"start":{"line":83,"column":0},"end":{"line":83,"column":10}},"83":{"start":{"line":84,"column":0},"end":{"line":84,"column":19}},"84":{"start":{"line":85,"column":0},"end":{"line":85,"column":10}},"85":{"start":{"line":86,"column":0},"end":{"line":86,"column":4}},"86":{"start":{"line":87,"column":0},"end":{"line":87,"column":1}}},"s":{"0":1,"1":1,"2":1,"3":33,"4":31,"5":31,"6":31,"7":31,"8":31,"9":31,"10":15,"11":9,"12":15,"13":6,"14":6,"15":15,"16":31,"17":33,"18":30,"19":4,"20":4,"21":30,"22":26,"23":26,"24":30,"25":4,"26":4,"27":30,"28":26,"29":26,"30":30,"31":30,"32":30,"33":30,"34":30,"35":18,"36":18,"37":18,"38":18,"39":5,"40":5,"41":18,"42":5,"43":5,"44":18,"45":5,"46":5,"47":18,"48":18,"49":18,"50":18,"51":18,"52":30,"53":30,"54":30,"55":3,"56":9,"57":6,"58":6,"59":9,"60":3,"61":3,"62":3,"63":3,"64":3,"65":30,"66":30,"67":30,"68":2,"69":2,"70":30,"71":31,"72":31,"73":31,"74":31,"75":33,"76":2,"77":2,"78":33,"79":8,"80":8,"81":31,"82":31,"83":31,"84":31,"85":31,"86":31},"branchMap":{"0":{"type":"branch","line":3,"loc":{"start":{"line":3,"column":7},"end":{"line":87,"column":1}},"locations":[{"start":{"line":3,"column":7},"end":{"line":87,"column":1}}]},"1":{"type":"branch","line":4,"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":40}},"locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":40}}]},"2":{"type":"branch","line":4,"loc":{"start":{"line":4,"column":38},"end":{"line":18,"column":34}},"locations":[{"start":{"line":4,"column":38},"end":{"line":18,"column":34}}]},"3":{"type":"branch","line":18,"loc":{"start":{"line":18,"column":34},"end":{"line":71,"column":3}},"locations":[{"start":{"line":18,"column":34},"end":{"line":71,"column":3}}]},"4":{"type":"branch","line":19,"loc":{"start":{"line":19,"column":35},"end":{"line":19,"column":66}},"locations":[{"start":{"line":19,"column":35},"end":{"line":19,"column":66}}]},"5":{"type":"branch","line":19,"loc":{"start":{"line":19,"column":66},"end":{"line":22,"column":13}},"locations":[{"start":{"line":19,"column":66},"end":{"line":22,"column":13}}]},"6":{"type":"branch","line":22,"loc":{"start":{"line":22,"column":6},"end":{"line":24,"column":7}},"locations":[{"start":{"line":22,"column":6},"end":{"line":24,"column":7}}]},"7":{"type":"branch","line":25,"loc":{"start":{"line":25,"column":18},"end":{"line":25,"column":66}},"locations":[{"start":{"line":25,"column":18},"end":{"line":25,"column":66}}]},"8":{"type":"branch","line":25,"loc":{"start":{"line":25,"column":54},"end":{"line":25,"column":86}},"locations":[{"start":{"line":25,"column":54},"end":{"line":25,"column":86}}]},"9":{"type":"branch","line":25,"loc":{"start":{"line":25,"column":86},"end":{"line":28,"column":13}},"locations":[{"start":{"line":25,"column":86},"end":{"line":28,"column":13}}]},"10":{"type":"branch","line":28,"loc":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"locations":[{"start":{"line":28,"column":6},"end":{"line":30,"column":7}}]},"11":{"type":"branch","line":31,"loc":{"start":{"line":31,"column":17},"end":{"line":31,"column":73}},"locations":[{"start":{"line":31,"column":17},"end":{"line":31,"column":73}}]},"12":{"type":"branch","line":31,"loc":{"start":{"line":31,"column":73},"end":{"line":31,"column":105}},"locations":[{"start":{"line":31,"column":73},"end":{"line":31,"column":105}}]},"13":{"type":"branch","line":32,"loc":{"start":{"line":32,"column":24},"end":{"line":32,"column":52}},"locations":[{"start":{"line":32,"column":24},"end":{"line":32,"column":52}}]},"14":{"type":"branch","line":35,"loc":{"start":{"line":35,"column":24},"end":{"line":52,"column":5}},"locations":[{"start":{"line":35,"column":24},"end":{"line":52,"column":5}}]},"15":{"type":"branch","line":36,"loc":{"start":{"line":36,"column":26},"end":{"line":36,"column":40}},"locations":[{"start":{"line":36,"column":26},"end":{"line":36,"column":40}}]},"16":{"type":"branch","line":37,"loc":{"start":{"line":37,"column":77},"end":{"line":37,"column":91}},"locations":[{"start":{"line":37,"column":77},"end":{"line":37,"column":91}}]},"17":{"type":"branch","line":39,"loc":{"start":{"line":39,"column":16},"end":{"line":41,"column":7}},"locations":[{"start":{"line":39,"column":16},"end":{"line":41,"column":7}}]},"18":{"type":"branch","line":42,"loc":{"start":{"line":42,"column":19},"end":{"line":44,"column":7}},"locations":[{"start":{"line":42,"column":19},"end":{"line":44,"column":7}}]},"19":{"type":"branch","line":45,"loc":{"start":{"line":45,"column":22},"end":{"line":47,"column":7}},"locations":[{"start":{"line":45,"column":22},"end":{"line":47,"column":7}}]},"20":{"type":"branch","line":48,"loc":{"start":{"line":48,"column":16},"end":{"line":48,"column":51}},"locations":[{"start":{"line":48,"column":16},"end":{"line":48,"column":51}}]},"21":{"type":"branch","line":49,"loc":{"start":{"line":49,"column":21},"end":{"line":49,"column":54}},"locations":[{"start":{"line":49,"column":21},"end":{"line":49,"column":54}}]},"22":{"type":"branch","line":50,"loc":{"start":{"line":50,"column":10},"end":{"line":50,"column":72}},"locations":[{"start":{"line":50,"column":10},"end":{"line":50,"column":72}}]},"23":{"type":"branch","line":50,"loc":{"start":{"line":50,"column":72},"end":{"line":50,"column":111}},"locations":[{"start":{"line":50,"column":72},"end":{"line":50,"column":111}}]},"24":{"type":"branch","line":51,"loc":{"start":{"line":51,"column":10},"end":{"line":51,"column":62}},"locations":[{"start":{"line":51,"column":10},"end":{"line":51,"column":62}}]},"25":{"type":"branch","line":51,"loc":{"start":{"line":51,"column":62},"end":{"line":51,"column":101}},"locations":[{"start":{"line":51,"column":62},"end":{"line":51,"column":101}}]},"26":{"type":"branch","line":55,"loc":{"start":{"line":55,"column":24},"end":{"line":65,"column":5}},"locations":[{"start":{"line":55,"column":24},"end":{"line":65,"column":5}}]},"27":{"type":"branch","line":68,"loc":{"start":{"line":68,"column":23},"end":{"line":70,"column":5}},"locations":[{"start":{"line":68,"column":23},"end":{"line":70,"column":5}}]},"28":{"type":"branch","line":71,"loc":{"start":{"line":71,"column":2},"end":{"line":76,"column":14}},"locations":[{"start":{"line":71,"column":2},"end":{"line":76,"column":14}}]},"29":{"type":"branch","line":76,"loc":{"start":{"line":76,"column":9},"end":{"line":76,"column":21}},"locations":[{"start":{"line":76,"column":9},"end":{"line":76,"column":21}}]},"30":{"type":"branch","line":76,"loc":{"start":{"line":76,"column":21},"end":{"line":78,"column":3}},"locations":[{"start":{"line":76,"column":21},"end":{"line":78,"column":3}}]},"31":{"type":"branch","line":78,"loc":{"start":{"line":78,"column":2},"end":{"line":79,"column":30}},"locations":[{"start":{"line":78,"column":2},"end":{"line":79,"column":30}}]},"32":{"type":"branch","line":79,"loc":{"start":{"line":79,"column":30},"end":{"line":81,"column":3}},"locations":[{"start":{"line":79,"column":30},"end":{"line":81,"column":3}}]},"33":{"type":"branch","line":81,"loc":{"start":{"line":81,"column":2},"end":{"line":87,"column":1}},"locations":[{"start":{"line":81,"column":2},"end":{"line":87,"column":1}}]},"34":{"type":"branch","line":10,"loc":{"start":{"line":10,"column":2},"end":{"line":16,"column":3}},"locations":[{"start":{"line":10,"column":2},"end":{"line":16,"column":3}}]},"35":{"type":"branch","line":11,"loc":{"start":{"line":11,"column":25},"end":{"line":11,"column":53}},"locations":[{"start":{"line":11,"column":25},"end":{"line":11,"column":53}}]},"36":{"type":"branch","line":11,"loc":{"start":{"line":11,"column":46},"end":{"line":11,"column":67}},"locations":[{"start":{"line":11,"column":46},"end":{"line":11,"column":67}}]},"37":{"type":"branch","line":11,"loc":{"start":{"line":11,"column":67},"end":{"line":13,"column":11}},"locations":[{"start":{"line":11,"column":67},"end":{"line":13,"column":11}}]},"38":{"type":"branch","line":13,"loc":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"locations":[{"start":{"line":13,"column":4},"end":{"line":15,"column":5}}]},"39":{"type":"branch","line":56,"loc":{"start":{"line":56,"column":40},"end":{"line":64,"column":7}},"locations":[{"start":{"line":56,"column":40},"end":{"line":64,"column":7}}]},"40":{"type":"branch","line":57,"loc":{"start":{"line":57,"column":39},"end":{"line":59,"column":9}},"locations":[{"start":{"line":57,"column":39},"end":{"line":59,"column":9}}]},"41":{"type":"branch","line":58,"loc":{"start":{"line":58,"column":62},"end":{"line":58,"column":104}},"locations":[{"start":{"line":58,"column":62},"end":{"line":58,"column":104}}]},"42":{"type":"branch","line":59,"loc":{"start":{"line":59,"column":8},"end":{"line":60,"column":56}},"locations":[{"start":{"line":59,"column":8},"end":{"line":60,"column":56}}]},"43":{"type":"branch","line":60,"loc":{"start":{"line":60,"column":56},"end":{"line":63,"column":9}},"locations":[{"start":{"line":60,"column":56},"end":{"line":63,"column":9}}]},"44":{"type":"branch","line":62,"loc":{"start":{"line":62,"column":80},"end":{"line":62,"column":122}},"locations":[{"start":{"line":62,"column":80},"end":{"line":62,"column":122}}]}},"b":{"0":[33],"1":[2],"2":[31],"3":[30],"4":[5],"5":[4],"6":[26],"7":[6],"8":[5],"9":[4],"10":[26],"11":[1],"12":[1],"13":[1],"14":[18],"15":[0],"16":[0],"17":[5],"18":[5],"19":[5],"20":[2],"21":[2],"22":[2],"23":[2],"24":[2],"25":[2],"26":[3],"27":[2],"28":[31],"29":[4],"30":[2],"31":[31],"32":[8],"33":[31],"34":[15],"35":[12],"36":[9],"37":[9],"38":[6],"39":[9],"40":[6],"41":[0],"42":[3],"43":[3],"44":[0]},"fnMap":{"0":{"name":"optimizeImage","decl":{"start":{"line":3,"column":7},"end":{"line":87,"column":1}},"loc":{"start":{"line":3,"column":7},"end":{"line":87,"column":1}},"line":3},"1":{"name":"validateAndPushFilterParam","decl":{"start":{"line":10,"column":2},"end":{"line":16,"column":3}},"loc":{"start":{"line":10,"column":2},"end":{"line":16,"column":3}},"line":10}},"f":{"0":33,"1":15}} -} diff --git a/coverage/favicon.png b/coverage/favicon.png deleted file mode 100644 index c1525b8..0000000 Binary files a/coverage/favicon.png and /dev/null differ diff --git a/coverage/images-optimization.ts.html b/coverage/images-optimization.ts.html deleted file mode 100644 index 07c6c70..0000000 --- a/coverage/images-optimization.ts.html +++ /dev/null @@ -1,343 +0,0 @@ - - - - - - Code coverage report for images-optimization.ts - - - - - - - - - -
-
-

All files images-optimization.ts

-
- -
- 100% - Statements - 87/87 -
- - -
- 91.11% - Branches - 41/45 -
- - -
- 100% - Functions - 2/2 -
- - -
- 100% - Lines - 87/87 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-

-
1 -2 -3 -4 -5 -6 -7 -8 -9 -10 -11 -12 -13 -14 -15 -16 -17 -18 -19 -20 -21 -22 -23 -24 -25 -26 -27 -28 -29 -30 -31 -32 -33 -34 -35 -36 -37 -38 -39 -40 -41 -42 -43 -44 -45 -46 -47 -48 -49 -50 -51 -52 -53 -54 -55 -56 -57 -58 -59 -60 -61 -62 -63 -64 -65 -66 -67 -68 -69 -70 -71 -72 -73 -74 -75 -76 -77 -78 -79 -80 -81 -82 -83 -84 -85 -86 -871x -1x -1x -33x -31x -31x -31x -31x -31x -31x -15x -9x -15x -6x -6x -15x -31x -33x -30x -4x -4x -30x -26x -26x -30x -4x -4x -30x -26x -26x -30x -30x -30x -30x -30x -18x -18x -18x -18x -5x -5x -18x -5x -5x -18x -5x -5x -18x -18x -18x -18x -18x -30x -30x -30x -3x -9x -6x -6x -9x -3x -3x -3x -3x -3x -30x -30x -30x -2x -2x -30x -31x -31x -31x -31x -33x -2x -2x -33x -8x -8x -31x -31x -31x -31x -31x -31x
import { ImageOptimizationOptions } from "./types";
- 
-export function optimizeImage(src: string, options?: boolean | Partial<ImageOptimizationOptions>): { src: string, attrs: Record<string, any>} {
-  if (!options) return {src, attrs: {}};
-  let w = 0;
-  let h = 0;
-  const attrs: Record<string, unknown> = {};
-  const filterParams: string[] = [];
- 
-  function validateAndPushFilterParam(value: number, min: number, max: number, filter: string, filterParams: string[]) {
-    if (typeof value !== 'number' || value <= min || value >= max) {
-      console.warn(`[StoryblokRichText] - ${filter.charAt(0).toUpperCase() + filter.slice(1)} value must be a number between ${min} and ${max} (inclusive)`);
-    } else {
-      filterParams.push(`${filter}(${value})`);
-    }
-  }
- 
-  if(typeof options === 'object') {
-      if (typeof options.width === 'number' && options.width > 0) {
-        attrs.width = options.width;
-        w = options.width;
-      } else {
-        console.warn("[StoryblokRichText] - Width value must be a number greater than 0");
-      }
-      if (options.height && typeof options.height === 'number' && options.height > 0) {
-        attrs.height = options.height;
-        h = options.height;
-      } else {
-        console.warn("[StoryblokRichText] - Height value must be a number greater than 0");
-      }
-      if(options.loading && ['lazy', 'eager'].includes(options.loading)) attrs.loading = options.loading;
-      if(options.class) attrs.class = options.class;
- 
- 
-    if(options.filters) {
-      const { filters } = options || {};
-      const { blur, brightness, fill, format, grayscale, quality, rotate } = filters || {};
-  
-      if (blur) {
-        validateAndPushFilterParam(blur, 0, 100, 'blur', filterParams);
-      }
-      if (quality) {
-        validateAndPushFilterParam(quality, 0, 100, 'quality', filterParams);
-      }
-      if (brightness) {
-        validateAndPushFilterParam(brightness, 0, 100, 'brightness', filterParams);
-      }
-      if (fill) filterParams.push(`fill(${fill})`);
-      if (grayscale) filterParams.push(`grayscale()`);
-      if (rotate && [0, 90, 180, 270].includes(options.filters.rotate)) filterParams.push(`rotate(${rotate})`);
-      if (format && ['webp', 'png', 'jpeg'].includes(format)) filterParams.push(`format(${format})`);
-    }
- 
-    // Construct srcset attribute
-    if (options.srcset) {
-      attrs.srcset = options.srcset.map((entry) => {
-        if (typeof entry === 'number') {
-          return `${src}/m/${entry}x0/${filterParams.length > 0 ? 'filters:' + filterParams.join(':') : ''} ${entry}w`;
-        }
-        if (Array.isArray(entry) && entry.length === 2) {
-          const [entryWidth, entryHeight] = entry;
-          return `${src}/m/${entryWidth}x${entryHeight}/${filterParams.length > 0 ? 'filters:' + filterParams.join(':') : ''} ${entryWidth}w`;
-        }
-      }).join(', ');
-    }
- 
-    // Construct sizes attribute
-    if (options.sizes) {
-      attrs.sizes = options.sizes.join(', ');
-    }
-  }
-  
-  // server-side WebP support detection https://www.storyblok.com/docs/image-service/#optimize 
-  // https://a.storyblok.com/f/39898/3310x2192/e4ec08624e/demo-image.jpeg/m/
-  let resultSrc = `${src}/m/`;
-  if(w > 0 && h > 0) {
-    resultSrc = `${resultSrc}${w}x${h}/`;
-  }
-  if(filterParams.length > 0) {
-    resultSrc = `${resultSrc}filters:${filterParams.join(':')}`;
-  }
- 
-  return {
-    src: resultSrc,
-    attrs,
-  };
-}
- -
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/index.html b/coverage/index.html deleted file mode 100644 index 7687f0f..0000000 --- a/coverage/index.html +++ /dev/null @@ -1,116 +0,0 @@ - - - - - - Code coverage report for All files - - - - - - - - - -
-
-

All files

-
- -
- 100% - Statements - 87/87 -
- - -
- 91.11% - Branches - 41/45 -
- - -
- 100% - Functions - 2/2 -
- - -
- 100% - Lines - 87/87 -
- - -
-

- Press n or j to go to the next uncovered block, b, p or k for the previous block. -

- -
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
images-optimization.ts -
-
100%87/8791.11%41/45100%2/2100%87/87
-
-
-
- - - - - - - - \ No newline at end of file diff --git a/coverage/prettify.css b/coverage/prettify.css deleted file mode 100644 index b317a7c..0000000 --- a/coverage/prettify.css +++ /dev/null @@ -1 +0,0 @@ -.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} diff --git a/coverage/prettify.js b/coverage/prettify.js deleted file mode 100644 index b322523..0000000 --- a/coverage/prettify.js +++ /dev/null @@ -1,2 +0,0 @@ -/* eslint-disable */ -window.PR_SHOULD_USE_CONTINUATION=true;(function(){var h=["break,continue,do,else,for,if,return,while"];var u=[h,"auto,case,char,const,default,double,enum,extern,float,goto,int,long,register,short,signed,sizeof,static,struct,switch,typedef,union,unsigned,void,volatile"];var p=[u,"catch,class,delete,false,import,new,operator,private,protected,public,this,throw,true,try,typeof"];var l=[p,"alignof,align_union,asm,axiom,bool,concept,concept_map,const_cast,constexpr,decltype,dynamic_cast,explicit,export,friend,inline,late_check,mutable,namespace,nullptr,reinterpret_cast,static_assert,static_cast,template,typeid,typename,using,virtual,where"];var x=[p,"abstract,boolean,byte,extends,final,finally,implements,import,instanceof,null,native,package,strictfp,super,synchronized,throws,transient"];var R=[x,"as,base,by,checked,decimal,delegate,descending,dynamic,event,fixed,foreach,from,group,implicit,in,interface,internal,into,is,lock,object,out,override,orderby,params,partial,readonly,ref,sbyte,sealed,stackalloc,string,select,uint,ulong,unchecked,unsafe,ushort,var"];var r="all,and,by,catch,class,else,extends,false,finally,for,if,in,is,isnt,loop,new,no,not,null,of,off,on,or,return,super,then,true,try,unless,until,when,while,yes";var w=[p,"debugger,eval,export,function,get,null,set,undefined,var,with,Infinity,NaN"];var s="caller,delete,die,do,dump,elsif,eval,exit,foreach,for,goto,if,import,last,local,my,next,no,our,print,package,redo,require,sub,undef,unless,until,use,wantarray,while,BEGIN,END";var I=[h,"and,as,assert,class,def,del,elif,except,exec,finally,from,global,import,in,is,lambda,nonlocal,not,or,pass,print,raise,try,with,yield,False,True,None"];var f=[h,"alias,and,begin,case,class,def,defined,elsif,end,ensure,false,in,module,next,nil,not,or,redo,rescue,retry,self,super,then,true,undef,unless,until,when,yield,BEGIN,END"];var H=[h,"case,done,elif,esac,eval,fi,function,in,local,set,then,until"];var A=[l,R,w,s+I,f,H];var e=/^(DIR|FILE|vector|(de|priority_)?queue|list|stack|(const_)?iterator|(multi)?(set|map)|bitset|u?(int|float)\d*)/;var C="str";var z="kwd";var j="com";var O="typ";var G="lit";var L="pun";var F="pln";var m="tag";var E="dec";var J="src";var P="atn";var n="atv";var N="nocode";var M="(?:^^\\.?|[+-]|\\!|\\!=|\\!==|\\#|\\%|\\%=|&|&&|&&=|&=|\\(|\\*|\\*=|\\+=|\\,|\\-=|\\->|\\/|\\/=|:|::|\\;|<|<<|<<=|<=|=|==|===|>|>=|>>|>>=|>>>|>>>=|\\?|\\@|\\[|\\^|\\^=|\\^\\^|\\^\\^=|\\{|\\||\\|=|\\|\\||\\|\\|=|\\~|break|case|continue|delete|do|else|finally|instanceof|return|throw|try|typeof)\\s*";function k(Z){var ad=0;var S=false;var ac=false;for(var V=0,U=Z.length;V122)){if(!(al<65||ag>90)){af.push([Math.max(65,ag)|32,Math.min(al,90)|32])}if(!(al<97||ag>122)){af.push([Math.max(97,ag)&~32,Math.min(al,122)&~32])}}}}af.sort(function(av,au){return(av[0]-au[0])||(au[1]-av[1])});var ai=[];var ap=[NaN,NaN];for(var ar=0;arat[0]){if(at[1]+1>at[0]){an.push("-")}an.push(T(at[1]))}}an.push("]");return an.join("")}function W(al){var aj=al.source.match(new RegExp("(?:\\[(?:[^\\x5C\\x5D]|\\\\[\\s\\S])*\\]|\\\\u[A-Fa-f0-9]{4}|\\\\x[A-Fa-f0-9]{2}|\\\\[0-9]+|\\\\[^ux0-9]|\\(\\?[:!=]|[\\(\\)\\^]|[^\\x5B\\x5C\\(\\)\\^]+)","g"));var ah=aj.length;var an=[];for(var ak=0,am=0;ak=2&&ai==="["){aj[ak]=X(ag)}else{if(ai!=="\\"){aj[ak]=ag.replace(/[a-zA-Z]/g,function(ao){var ap=ao.charCodeAt(0);return"["+String.fromCharCode(ap&~32,ap|32)+"]"})}}}}return aj.join("")}var aa=[];for(var V=0,U=Z.length;V=0;){S[ac.charAt(ae)]=Y}}var af=Y[1];var aa=""+af;if(!ag.hasOwnProperty(aa)){ah.push(af);ag[aa]=null}}ah.push(/[\0-\uffff]/);V=k(ah)})();var X=T.length;var W=function(ah){var Z=ah.sourceCode,Y=ah.basePos;var ad=[Y,F];var af=0;var an=Z.match(V)||[];var aj={};for(var ae=0,aq=an.length;ae=5&&"lang-"===ap.substring(0,5);if(am&&!(ai&&typeof ai[1]==="string")){am=false;ap=J}if(!am){aj[ag]=ap}}var ab=af;af+=ag.length;if(!am){ad.push(Y+ab,ap)}else{var al=ai[1];var ak=ag.indexOf(al);var ac=ak+al.length;if(ai[2]){ac=ag.length-ai[2].length;ak=ac-al.length}var ar=ap.substring(5);B(Y+ab,ag.substring(0,ak),W,ad);B(Y+ab+ak,al,q(ar,al),ad);B(Y+ab+ac,ag.substring(ac),W,ad)}}ah.decorations=ad};return W}function i(T){var W=[],S=[];if(T.tripleQuotedStrings){W.push([C,/^(?:\'\'\'(?:[^\'\\]|\\[\s\S]|\'{1,2}(?=[^\']))*(?:\'\'\'|$)|\"\"\"(?:[^\"\\]|\\[\s\S]|\"{1,2}(?=[^\"]))*(?:\"\"\"|$)|\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$))/,null,"'\""])}else{if(T.multiLineStrings){W.push([C,/^(?:\'(?:[^\\\']|\\[\s\S])*(?:\'|$)|\"(?:[^\\\"]|\\[\s\S])*(?:\"|$)|\`(?:[^\\\`]|\\[\s\S])*(?:\`|$))/,null,"'\"`"])}else{W.push([C,/^(?:\'(?:[^\\\'\r\n]|\\.)*(?:\'|$)|\"(?:[^\\\"\r\n]|\\.)*(?:\"|$))/,null,"\"'"])}}if(T.verbatimStrings){S.push([C,/^@\"(?:[^\"]|\"\")*(?:\"|$)/,null])}var Y=T.hashComments;if(Y){if(T.cStyleComments){if(Y>1){W.push([j,/^#(?:##(?:[^#]|#(?!##))*(?:###|$)|.*)/,null,"#"])}else{W.push([j,/^#(?:(?:define|elif|else|endif|error|ifdef|include|ifndef|line|pragma|undef|warning)\b|[^\r\n]*)/,null,"#"])}S.push([C,/^<(?:(?:(?:\.\.\/)*|\/?)(?:[\w-]+(?:\/[\w-]+)+)?[\w-]+\.h|[a-z]\w*)>/,null])}else{W.push([j,/^#[^\r\n]*/,null,"#"])}}if(T.cStyleComments){S.push([j,/^\/\/[^\r\n]*/,null]);S.push([j,/^\/\*[\s\S]*?(?:\*\/|$)/,null])}if(T.regexLiterals){var X=("/(?=[^/*])(?:[^/\\x5B\\x5C]|\\x5C[\\s\\S]|\\x5B(?:[^\\x5C\\x5D]|\\x5C[\\s\\S])*(?:\\x5D|$))+/");S.push(["lang-regex",new RegExp("^"+M+"("+X+")")])}var V=T.types;if(V){S.push([O,V])}var U=(""+T.keywords).replace(/^ | $/g,"");if(U.length){S.push([z,new RegExp("^(?:"+U.replace(/[\s,]+/g,"|")+")\\b"),null])}W.push([F,/^\s+/,null," \r\n\t\xA0"]);S.push([G,/^@[a-z_$][a-z_$@0-9]*/i,null],[O,/^(?:[@_]?[A-Z]+[a-z][A-Za-z_$@0-9]*|\w+_t\b)/,null],[F,/^[a-z_$][a-z_$@0-9]*/i,null],[G,new RegExp("^(?:0x[a-f0-9]+|(?:\\d(?:_\\d+)*\\d*(?:\\.\\d*)?|\\.\\d\\+)(?:e[+\\-]?\\d+)?)[a-z]*","i"),null,"0123456789"],[F,/^\\[\s\S]?/,null],[L,/^.[^\s\w\.$@\'\"\`\/\#\\]*/,null]);return g(W,S)}var K=i({keywords:A,hashComments:true,cStyleComments:true,multiLineStrings:true,regexLiterals:true});function Q(V,ag){var U=/(?:^|\s)nocode(?:\s|$)/;var ab=/\r\n?|\n/;var ac=V.ownerDocument;var S;if(V.currentStyle){S=V.currentStyle.whiteSpace}else{if(window.getComputedStyle){S=ac.defaultView.getComputedStyle(V,null).getPropertyValue("white-space")}}var Z=S&&"pre"===S.substring(0,3);var af=ac.createElement("LI");while(V.firstChild){af.appendChild(V.firstChild)}var W=[af];function ae(al){switch(al.nodeType){case 1:if(U.test(al.className)){break}if("BR"===al.nodeName){ad(al);if(al.parentNode){al.parentNode.removeChild(al)}}else{for(var an=al.firstChild;an;an=an.nextSibling){ae(an)}}break;case 3:case 4:if(Z){var am=al.nodeValue;var aj=am.match(ab);if(aj){var ai=am.substring(0,aj.index);al.nodeValue=ai;var ah=am.substring(aj.index+aj[0].length);if(ah){var ak=al.parentNode;ak.insertBefore(ac.createTextNode(ah),al.nextSibling)}ad(al);if(!ai){al.parentNode.removeChild(al)}}}break}}function ad(ak){while(!ak.nextSibling){ak=ak.parentNode;if(!ak){return}}function ai(al,ar){var aq=ar?al.cloneNode(false):al;var ao=al.parentNode;if(ao){var ap=ai(ao,1);var an=al.nextSibling;ap.appendChild(aq);for(var am=an;am;am=an){an=am.nextSibling;ap.appendChild(am)}}return aq}var ah=ai(ak.nextSibling,0);for(var aj;(aj=ah.parentNode)&&aj.nodeType===1;){ah=aj}W.push(ah)}for(var Y=0;Y=S){ah+=2}if(V>=ap){Z+=2}}}var t={};function c(U,V){for(var S=V.length;--S>=0;){var T=V[S];if(!t.hasOwnProperty(T)){t[T]=U}else{if(window.console){console.warn("cannot override language handler %s",T)}}}}function q(T,S){if(!(T&&t.hasOwnProperty(T))){T=/^\s*]*(?:>|$)/],[j,/^<\!--[\s\S]*?(?:-\->|$)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],[L,/^(?:<[%?]|[%?]>)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i]]),["default-markup","htm","html","mxml","xhtml","xml","xsl"]);c(g([[F,/^[\s]+/,null," \t\r\n"],[n,/^(?:\"[^\"]*\"?|\'[^\']*\'?)/,null,"\"'"]],[[m,/^^<\/?[a-z](?:[\w.:-]*\w)?|\/?>$/i],[P,/^(?!style[\s=]|on)[a-z](?:[\w:-]*\w)?/i],["lang-uq.val",/^=\s*([^>\'\"\s]*(?:[^>\'\"\s\/]|\/(?=\s)))/],[L,/^[=<>\/]+/],["lang-js",/^on\w+\s*=\s*\"([^\"]+)\"/i],["lang-js",/^on\w+\s*=\s*\'([^\']+)\'/i],["lang-js",/^on\w+\s*=\s*([^\"\'>\s]+)/i],["lang-css",/^style\s*=\s*\"([^\"]+)\"/i],["lang-css",/^style\s*=\s*\'([^\']+)\'/i],["lang-css",/^style\s*=\s*([^\"\'>\s]+)/i]]),["in.tag"]);c(g([],[[n,/^[\s\S]+/]]),["uq.val"]);c(i({keywords:l,hashComments:true,cStyleComments:true,types:e}),["c","cc","cpp","cxx","cyc","m"]);c(i({keywords:"null,true,false"}),["json"]);c(i({keywords:R,hashComments:true,cStyleComments:true,verbatimStrings:true,types:e}),["cs"]);c(i({keywords:x,cStyleComments:true}),["java"]);c(i({keywords:H,hashComments:true,multiLineStrings:true}),["bsh","csh","sh"]);c(i({keywords:I,hashComments:true,multiLineStrings:true,tripleQuotedStrings:true}),["cv","py"]);c(i({keywords:s,hashComments:true,multiLineStrings:true,regexLiterals:true}),["perl","pl","pm"]);c(i({keywords:f,hashComments:true,multiLineStrings:true,regexLiterals:true}),["rb"]);c(i({keywords:w,cStyleComments:true,regexLiterals:true}),["js"]);c(i({keywords:r,hashComments:3,cStyleComments:true,multilineStrings:true,tripleQuotedStrings:true,regexLiterals:true}),["coffee"]);c(g([],[[C,/^[\s\S]+/]]),["regex"]);function d(V){var U=V.langExtension;try{var S=a(V.sourceNode);var T=S.sourceCode;V.sourceCode=T;V.spans=S.spans;V.basePos=0;q(U,T)(V);D(V)}catch(W){if("console" in window){console.log(W&&W.stack?W.stack:W)}}}function y(W,V,U){var S=document.createElement("PRE");S.innerHTML=W;if(U){Q(S,U)}var T={langExtension:V,numberLines:U,sourceNode:S};d(T);return S.innerHTML}function b(ad){function Y(af){return document.getElementsByTagName(af)}var ac=[Y("pre"),Y("code"),Y("xmp")];var T=[];for(var aa=0;aa=0){var ah=ai.match(ab);var am;if(!ah&&(am=o(aj))&&"CODE"===am.tagName){ah=am.className.match(ab)}if(ah){ah=ah[1]}var al=false;for(var ak=aj.parentNode;ak;ak=ak.parentNode){if((ak.tagName==="pre"||ak.tagName==="code"||ak.tagName==="xmp")&&ak.className&&ak.className.indexOf("prettyprint")>=0){al=true;break}}if(!al){var af=aj.className.match(/\blinenums\b(?::(\d+))?/);af=af?af[1]&&af[1].length?+af[1]:true:false;if(af){Q(aj,af)}S={langExtension:ah,sourceNode:aj,numberLines:af};d(S)}}}if(X]*(?:>|$)/],[PR.PR_COMMENT,/^<\!--[\s\S]*?(?:-\->|$)/],[PR.PR_PUNCTUATION,/^(?:<[%?]|[%?]>)/],["lang-",/^<\?([\s\S]+?)(?:\?>|$)/],["lang-",/^<%([\s\S]+?)(?:%>|$)/],["lang-",/^]*>([\s\S]+?)<\/xmp\b[^>]*>/i],["lang-handlebars",/^]*type\s*=\s*['"]?text\/x-handlebars-template['"]?\b[^>]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-js",/^]*>([\s\S]*?)(<\/script\b[^>]*>)/i],["lang-css",/^]*>([\s\S]*?)(<\/style\b[^>]*>)/i],["lang-in.tag",/^(<\/?[a-z][^<>]*>)/i],[PR.PR_DECLARATION,/^{{[#^>/]?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{&?\s*[\w.][^}]*}}/],[PR.PR_DECLARATION,/^{{{>?\s*[\w.][^}]*}}}/],[PR.PR_COMMENT,/^{{![^}]*}}/]]),["handlebars","hbs"]);PR.registerLangHandler(PR.createSimpleLexer([[PR.PR_PLAIN,/^[ \t\r\n\f]+/,null," \t\r\n\f"]],[[PR.PR_STRING,/^\"(?:[^\n\r\f\\\"]|\\(?:\r\n?|\n|\f)|\\[\s\S])*\"/,null],[PR.PR_STRING,/^\'(?:[^\n\r\f\\\']|\\(?:\r\n?|\n|\f)|\\[\s\S])*\'/,null],["lang-css-str",/^url\(([^\)\"\']*)\)/i],[PR.PR_KEYWORD,/^(?:url|rgb|\!important|@import|@page|@media|@charset|inherit)(?=[^\-\w]|$)/i,null],["lang-css-kw",/^(-?(?:[_a-z]|(?:\\[0-9a-f]+ ?))(?:[_a-z0-9\-]|\\(?:\\[0-9a-f]+ ?))*)\s*:/i],[PR.PR_COMMENT,/^\/\*[^*]*\*+(?:[^\/*][^*]*\*+)*\//],[PR.PR_COMMENT,/^(?:)/],[PR.PR_LITERAL,/^(?:\d+|\d*\.\d+)(?:%|[a-z]+)?/i],[PR.PR_LITERAL,/^#(?:[0-9a-f]{3}){1,2}/i],[PR.PR_PLAIN,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i],[PR.PR_PUNCTUATION,/^[^\s\w\'\"]+/]]),["css"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_KEYWORD,/^-?(?:[_a-z]|(?:\\[\da-f]+ ?))(?:[_a-z\d\-]|\\(?:\\[\da-f]+ ?))*/i]]),["css-kw"]);PR.registerLangHandler(PR.createSimpleLexer([],[[PR.PR_STRING,/^[^\)\"\']+/]]),["css-str"]); diff --git a/coverage/sort-arrow-sprite.png b/coverage/sort-arrow-sprite.png deleted file mode 100644 index 6ed6831..0000000 Binary files a/coverage/sort-arrow-sprite.png and /dev/null differ diff --git a/coverage/sorter.js b/coverage/sorter.js deleted file mode 100644 index 2bb296a..0000000 --- a/coverage/sorter.js +++ /dev/null @@ -1,196 +0,0 @@ -/* eslint-disable */ -var addSorting = (function() { - 'use strict'; - var cols, - currentSort = { - index: 0, - desc: false - }; - - // returns the summary table element - function getTable() { - return document.querySelector('.coverage-summary'); - } - // returns the thead element of the summary table - function getTableHeader() { - return getTable().querySelector('thead tr'); - } - // returns the tbody element of the summary table - function getTableBody() { - return getTable().querySelector('tbody'); - } - // returns the th element for nth column - function getNthColumn(n) { - return getTableHeader().querySelectorAll('th')[n]; - } - - function onFilterInput() { - const searchValue = document.getElementById('fileSearch').value; - const rows = document.getElementsByTagName('tbody')[0].children; - for (let i = 0; i < rows.length; i++) { - const row = rows[i]; - if ( - row.textContent - .toLowerCase() - .includes(searchValue.toLowerCase()) - ) { - row.style.display = ''; - } else { - row.style.display = 'none'; - } - } - } - - // loads the search box - function addSearchBox() { - var template = document.getElementById('filterTemplate'); - var templateClone = template.content.cloneNode(true); - templateClone.getElementById('fileSearch').oninput = onFilterInput; - template.parentElement.appendChild(templateClone); - } - - // loads all columns - function loadColumns() { - var colNodes = getTableHeader().querySelectorAll('th'), - colNode, - cols = [], - col, - i; - - for (i = 0; i < colNodes.length; i += 1) { - colNode = colNodes[i]; - col = { - key: colNode.getAttribute('data-col'), - sortable: !colNode.getAttribute('data-nosort'), - type: colNode.getAttribute('data-type') || 'string' - }; - cols.push(col); - if (col.sortable) { - col.defaultDescSort = col.type === 'number'; - colNode.innerHTML = - colNode.innerHTML + ''; - } - } - return cols; - } - // attaches a data attribute to every tr element with an object - // of data values keyed by column name - function loadRowData(tableRow) { - var tableCols = tableRow.querySelectorAll('td'), - colNode, - col, - data = {}, - i, - val; - for (i = 0; i < tableCols.length; i += 1) { - colNode = tableCols[i]; - col = cols[i]; - val = colNode.getAttribute('data-value'); - if (col.type === 'number') { - val = Number(val); - } - data[col.key] = val; - } - return data; - } - // loads all row data - function loadData() { - var rows = getTableBody().querySelectorAll('tr'), - i; - - for (i = 0; i < rows.length; i += 1) { - rows[i].data = loadRowData(rows[i]); - } - } - // sorts the table using the data for the ith column - function sortByIndex(index, desc) { - var key = cols[index].key, - sorter = function(a, b) { - a = a.data[key]; - b = b.data[key]; - return a < b ? -1 : a > b ? 1 : 0; - }, - finalSorter = sorter, - tableBody = document.querySelector('.coverage-summary tbody'), - rowNodes = tableBody.querySelectorAll('tr'), - rows = [], - i; - - if (desc) { - finalSorter = function(a, b) { - return -1 * sorter(a, b); - }; - } - - for (i = 0; i < rowNodes.length; i += 1) { - rows.push(rowNodes[i]); - tableBody.removeChild(rowNodes[i]); - } - - rows.sort(finalSorter); - - for (i = 0; i < rows.length; i += 1) { - tableBody.appendChild(rows[i]); - } - } - // removes sort indicators for current column being sorted - function removeSortIndicators() { - var col = getNthColumn(currentSort.index), - cls = col.className; - - cls = cls.replace(/ sorted$/, '').replace(/ sorted-desc$/, ''); - col.className = cls; - } - // adds sort indicators for current column being sorted - function addSortIndicators() { - getNthColumn(currentSort.index).className += currentSort.desc - ? ' sorted-desc' - : ' sorted'; - } - // adds event listeners for all sorter widgets - function enableUI() { - var i, - el, - ithSorter = function ithSorter(i) { - var col = cols[i]; - - return function() { - var desc = col.defaultDescSort; - - if (currentSort.index === i) { - desc = !currentSort.desc; - } - sortByIndex(i, desc); - removeSortIndicators(); - currentSort.index = i; - currentSort.desc = desc; - addSortIndicators(); - }; - }; - for (i = 0; i < cols.length; i += 1) { - if (cols[i].sortable) { - // add the click event handler on the th so users - // dont have to click on those tiny arrows - el = getNthColumn(i).querySelector('.sorter').parentElement; - if (el.addEventListener) { - el.addEventListener('click', ithSorter(i)); - } else { - el.attachEvent('onclick', ithSorter(i)); - } - } - } - } - // adds sorting functionality to the UI - return function() { - if (!getTable()) { - return; - } - cols = loadColumns(); - loadData(); - addSearchBox(); - addSortIndicators(); - enableUI(); - }; -})(); - -window.addEventListener('load', addSorting); diff --git a/eslint.config.js b/eslint.config.js new file mode 100644 index 0000000..6f99322 --- /dev/null +++ b/eslint.config.js @@ -0,0 +1,7 @@ +import { storyblokLintConfig } from '@storyblok/eslint-config'; + +export default storyblokLintConfig({ + +}, { + ignores: ['tests/unit/coverage/', 'dist/'], +}); diff --git a/package.json b/package.json index ebc5f20..6a42101 100644 --- a/package.json +++ b/package.json @@ -5,12 +5,12 @@ "packageManager": "pnpm@9.1.4", "description": "Storyblok RichText Resolver", "author": "Alvaro Saburido (https://github.com/alvarosabu/)", + "license": "MIT", "homepage": "https://github.com/storyblok/richtext#readme", "repository": { "type": "git", - "url": "git+https://github.com/storyblok/richtext.git" + "url": "git+https://github.com/storyblok/richtext.git" }, - "license": "MIT", "keywords": [ "storyblok", "richtext", @@ -57,10 +57,12 @@ "devDependencies": { "@commitlint/cli": "^19.3.0", "@commitlint/config-conventional": "^19.2.2", + "@storyblok/eslint-config": "^0.3.0", "@storyblok/vue": "^8.0.8", "@vitejs/plugin-basic-ssl": "^1.1.0", "@vitest/coverage-v8": "^2.0.4", "@vitest/ui": "^2.0.4", + "eslint": "^8.57.0", "eslint-config-prettier": "^9.1.0", "eslint-plugin-vue": "^9.27.0", "kolorist": "^1.8.0", @@ -77,48 +79,9 @@ "vitest": "^2.0.4", "vue": "^3.4.34" }, - "dependencies": { - "consola": "^3.2.3" - }, - "lint-staged": { - "*.{vue,js,css,ts}": [ - "prettier --write", - "eslint" - ], - "*.md": [ - "prettier --write" - ] - }, "commitlint": { "extends": [ "@commitlint/config-conventional" ] - }, - "eslintConfig": { - "root": true, - "parser": "vue-eslint-parser", - "env": { - "node": true, - "vue/setup-compiler-macros": true - }, - "extends": [ - "plugin:vue/vue3-essential", - "eslint:recommended", - "prettier" - ], - "parserOptions": { - "parser": "@typescript-eslint/parser", - "sourceType": "module" - }, - "ignorePatterns": "dist/", - "rules": { - "vue/multi-word-component-names": 0 - } - }, - "prettier": { - "trailingComma": "es5", - "tabWidth": 2, - "semi": true, - "singleQuote": false } } diff --git a/playground/node/index.mjs b/playground/node/index.mjs index 34fcefd..b56b66a 100644 --- a/playground/node/index.mjs +++ b/playground/node/index.mjs @@ -26,7 +26,7 @@ const rt = { type: 'paragraph', content: [ { - text: "Here are a few tools that may help you achieve what you're after.", + text: 'Here are a few tools that may help you achieve what you\'re after.', type: 'text', }, ], @@ -133,5 +133,5 @@ const rt = { ], }; const html = render(rt); - -console.log({ html }); +// eslint-disable-next-line no-console +console.log(html); diff --git a/playground/node/package.json b/playground/node/package.json index cacc8cc..b5a5977 100644 --- a/playground/node/package.json +++ b/playground/node/package.json @@ -2,12 +2,12 @@ "name": "node", "version": "1.0.0", "description": "", + "author": "", + "license": "ISC", "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, - "author": "", - "license": "ISC", "dependencies": { "@storyblok/richtext": "workspace:^" } diff --git a/playground/react/README.md b/playground/react/README.md index 0d6babe..9d0b4bc 100644 --- a/playground/react/README.md +++ b/playground/react/README.md @@ -22,7 +22,7 @@ export default { project: ['./tsconfig.json', './tsconfig.node.json'], tsconfigRootDir: __dirname, }, -} +}; ``` - Replace `plugin:@typescript-eslint/recommended` to `plugin:@typescript-eslint/recommended-type-checked` or `plugin:@typescript-eslint/strict-type-checked` diff --git a/playground/react/package.json b/playground/react/package.json index ca9afd9..18bc743 100644 --- a/playground/react/package.json +++ b/playground/react/package.json @@ -1,8 +1,8 @@ { "name": "react", - "private": true, - "version": "0.0.0", "type": "module", + "version": "0.0.0", + "private": true, "scripts": { "dev": "vite", "build": "tsc && vite build", diff --git a/playground/react/src/App.tsx b/playground/react/src/App.tsx index 58fd34f..c1babd5 100644 --- a/playground/react/src/App.tsx +++ b/playground/react/src/App.tsx @@ -1,22 +1,22 @@ -import { richTextResolver } from '@storyblok/richtext' -import { useStoryblok } from '@storyblok/react' -import './App.css' -import React from 'react' +import { richTextResolver } from '@storyblok/richtext'; +import { useStoryblok } from '@storyblok/react'; +import './App.css'; +import React from 'react'; function camelCase(str: string) { - return str.replace(/-([a-z])/g, g => g[1].toUpperCase()) + return str.replace(/-([a-z])/g, g => g[1].toUpperCase()); } function convertStyleStringToObject(styleString: string) { return styleString.split(';').reduce((styleObject: { [key: string]: string }, styleProperty) => { - let [key, value] = styleProperty.split(':') - key = key?.trim() - value = value?.trim() + let [key, value] = styleProperty.split(':'); + key = key?.trim(); + value = value?.trim(); if (key && value) { - styleObject[camelCase(key)] = value + styleObject[camelCase(key)] = value; } - return styleObject - }, {}) + return styleObject; + }, {}); } /** @@ -28,7 +28,7 @@ function convertStyleStringToObject(styleString: string) { export function convertAttributesInElement(element: React.ReactElement): React.ReactElement { // Base case: if the element is not a React element, return it unchanged. if (!React.isValidElement(element)) { - return element + return element; } // Convert attributes of the current element. @@ -37,29 +37,29 @@ export function convertAttributesInElement(element: React.ReactElement): React.R for: 'htmlFor', targetAttr: 'targetattr', // Add more attribute conversions here as needed - } + }; const newProps: { [key: string]: unknown } = Object.keys((element.props as Record)).reduce((acc: { [key: string]: unknown }, key) => { - let value = (element.props as Record)[key] + let value = (element.props as Record)[key]; if (key === 'style' && typeof value === 'string') { - value = convertStyleStringToObject(value) + value = convertStyleStringToObject(value); } - const mappedKey = attributeMap[key] || key - acc[mappedKey] = value - return acc - }, {}) + const mappedKey = attributeMap[key] || key; + acc[mappedKey] = value; + return acc; + }, {}); // Process children recursively. - const children = React.Children.map((element.props as React.PropsWithChildren).children, child => convertAttributesInElement(child)) - const newElement = React.createElement(element.type, newProps, children) + const children = React.Children.map((element.props as React.PropsWithChildren).children, child => convertAttributesInElement(child)); + const newElement = React.createElement(element.type, newProps, children); // Clone the element with the new properties and updated children. - return newElement + return newElement; } function App() { - const doc = { + /* const doc = { type: 'doc', content: [ { @@ -427,7 +427,7 @@ function App() { }, }, ], - } + }; const img = { type: 'paragraph', @@ -441,31 +441,31 @@ function App() { }, }, ], - } + }; const heading = { type: 'heading', attrs: { level: 1, class: 'heading' }, content: [{ text: 'Headline 1', type: 'text' }], - } + }; */ - const story = useStoryblok('home', { version: 'draft' }) + const story = useStoryblok('home', { version: 'draft' }); if (!story?.content) { - return
Loading...
+ return
Loading...
; } - const html = richTextResolver({ + const html = richTextResolver({ renderFn: React.createElement, - }).render(story.content.richtext) + }).render(story.content.richtext); - const formattedHtml = convertAttributesInElement(html) + const formattedHtml = convertAttributesInElement(html); return ( <> - {formattedHtml} + {formattedHtml} - ) + ); } -export default App +export default App; diff --git a/playground/react/src/components/IFrameEmbed.tsx b/playground/react/src/components/IFrameEmbed.tsx index e22a558..a2767e2 100644 --- a/playground/react/src/components/IFrameEmbed.tsx +++ b/playground/react/src/components/IFrameEmbed.tsx @@ -1,14 +1,14 @@ -import React from 'react' +import React from 'react'; // Assuming blok prop is an object that contains an url object which, in turn, contains the actual URL string interface BlokType { url: { - url: string - } + url: string; + }; } interface Props { - blok: BlokType // Defining the expected shape of the 'blok' prop + blok: BlokType; // Defining the expected shape of the 'blok' prop } const IFrameEmbed: React.FC = ({ blok }) => { @@ -19,7 +19,7 @@ const IFrameEmbed: React.FC = ({ blok }) => { frameBorder="0" > - ) -} + ); +}; -export default IFrameEmbed +export default IFrameEmbed; diff --git a/playground/react/src/main.tsx b/playground/react/src/main.tsx index 2f1b10f..520e1c4 100644 --- a/playground/react/src/main.tsx +++ b/playground/react/src/main.tsx @@ -1,10 +1,10 @@ -import React from 'react' -import ReactDOM from 'react-dom/client' -import { apiPlugin, storyblokInit } from '@storyblok/react' -import IFrameEmbed from './components/IFrameEmbed.tsx' +import React from 'react'; +import ReactDOM from 'react-dom/client'; +import { apiPlugin, storyblokInit } from '@storyblok/react'; +import IFrameEmbed from './components/IFrameEmbed.tsx'; -import App from './App.tsx' -import './index.css' +import App from './App.tsx'; +import './index.css'; storyblokInit({ accessToken: import.meta.env.VITE_STORYBLOK_TOKEN, @@ -12,10 +12,10 @@ storyblokInit({ components: { 'iframe-embed': IFrameEmbed, }, -}) +}); ReactDOM.createRoot(document.getElementById('root')!).render( , -) +); diff --git a/playground/react/tsconfig.json b/playground/react/tsconfig.json index a7fc6fb..3e70af5 100644 --- a/playground/react/tsconfig.json +++ b/playground/react/tsconfig.json @@ -1,25 +1,25 @@ { "compilerOptions": { "target": "ES2020", - "useDefineForClassFields": true, + "jsx": "react-jsx", "lib": ["ES2020", "DOM", "DOM.Iterable"], + "useDefineForClassFields": true, "module": "ESNext", - "skipLibCheck": true, /* Bundler mode */ "moduleResolution": "bundler", - "allowImportingTsExtensions": true, "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, - "jsx": "react-jsx", + "allowImportingTsExtensions": true, /* Linting */ "strict": true, + "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true + "noEmit": true, + "isolatedModules": true, + "skipLibCheck": true }, - "include": ["src"], - "references": [{ "path": "./tsconfig.node.json" }] + "references": [{ "path": "./tsconfig.node.json" }], + "include": ["src"] } diff --git a/playground/react/tsconfig.node.json b/playground/react/tsconfig.node.json index 97ede7e..38a9d93 100644 --- a/playground/react/tsconfig.node.json +++ b/playground/react/tsconfig.node.json @@ -1,11 +1,11 @@ { "compilerOptions": { "composite": true, - "skipLibCheck": true, "module": "ESNext", "moduleResolution": "bundler", + "strict": true, "allowSyntheticDefaultImports": true, - "strict": true + "skipLibCheck": true }, "include": ["vite.config.ts"] } diff --git a/playground/react/vite.config.ts b/playground/react/vite.config.ts index 6de920e..93d3950 100644 --- a/playground/react/vite.config.ts +++ b/playground/react/vite.config.ts @@ -1,7 +1,7 @@ -import { defineConfig } from 'vite' -import react from '@vitejs/plugin-react-swc' -import { resolve } from 'pathe' -import { qrcode } from 'vite-plugin-qrcode' +import { defineConfig } from 'vite'; +import react from '@vitejs/plugin-react-swc'; +import { resolve } from 'pathe'; +import { qrcode } from 'vite-plugin-qrcode'; // https://vitejs.dev/config/ export default defineConfig({ @@ -15,4 +15,4 @@ export default defineConfig({ '@storyblok/react-richtext': resolve(__dirname, '../../packages/react/src/index.ts'), }, }, -}) +}); diff --git a/playground/vanilla/package.json b/playground/vanilla/package.json index 51ec1cc..3834b08 100644 --- a/playground/vanilla/package.json +++ b/playground/vanilla/package.json @@ -1,20 +1,20 @@ { "name": "vanilla", - "private": true, - "version": "0.0.0", "type": "module", + "version": "0.0.0", + "private": true, "scripts": { "dev": "vite", "build": "tsc && vite build", "preview": "vite preview" }, + "dependencies": { + "@storyblok/richtext": "workspace:^", + "storyblok-js-client": "^6.7.3" + }, "devDependencies": { "typescript": "^5.4.5", "vite": "^5.2.11", "vite-plugin-qrcode": "^0.2.3" - }, - "dependencies": { - "@storyblok/richtext": "workspace:^", - "storyblok-js-client": "^6.7.3" } } diff --git a/playground/vanilla/src/main.ts b/playground/vanilla/src/main.ts index a06984a..8162d24 100644 --- a/playground/vanilla/src/main.ts +++ b/playground/vanilla/src/main.ts @@ -1,8 +1,8 @@ -import './style.css' -import { richTextResolver, type StoryblokRichTextOptions, type StoryblokRichTextDocumentNode, MarkTypes, StoryblokRichTextNode } from '@storyblok/richtext' -import StoryblokClient from 'storyblok-js-client' +import './style.css'; +import type { MarkTypes, richTextResolver, StoryblokRichTextNode, type StoryblokRichTextOptions } from '@storyblok/richtext'; +import StoryblokClient from 'storyblok-js-client'; -const doc: StoryblokRichTextDocumentNode = { +/* const doc: StoryblokRichTextDocumentNode = { type: 'doc', content: [ { @@ -370,76 +370,24 @@ const doc: StoryblokRichTextDocumentNode = { }, }, ], -} - -const paragraph = { - type: 'paragraph', - content: [ - { - text: 'Bold and italic', - type: 'text', - marks: [{ type: 'bold' }, { type: 'italic' }], - }, - ], -} - -const link = { - type: 'paragraph', - content: [ - { - text: 'hola@alvarosaburido.dev', - type: 'text', - marks: [ - { - type: 'link', - attrs: { - href: 'hola@alvarosaburido.dev', - uuid: null, - anchor: null, - target: null, - linktype: 'email', - }, - }, - ], - }, - ], -} - -const emoji = { - type: 'paragraph', - content: [ - { - text: 'And this is an emoji 🥳', - type: 'text', - }, - { - type: 'emoji',/* */ - attrs: { - name: 'innocent', - emoji: '😇', - fallbackImage: - 'https://cdn.jsdelivr.net/npm/emoji-datasource-apple/img/apple/64/1f607.png', - }, - }, - ], -} +}; */ // Storyblok const client = new StoryblokClient({ accessToken: import.meta.env.VITE_STORYBLOK_TOKEN, -}) +}); const story = await client.get('cdn/stories/home', { version: 'draft', -}) +}); -const docFromStory = story.data.story.content.richtext +const docFromStory = story.data.story.content.richtext; const options: StoryblokRichTextOptions = { resolvers: { [MarkTypes.LINK]: (node: StoryblokRichTextNode) => { - return `` + return ``; }, }, optimizeImages: { @@ -449,19 +397,19 @@ const options: StoryblokRichTextOptions = { height: 600, filters: { format: 'webp', - blur: 120 - /* quality: 10, + blur: 120, + /* quality: 10, grayscale: true, blur: 10, brightness: 10, */ }, - } -} + }, +}; -const html = richTextResolver(options).render(doc) +const html = richTextResolver(options).render(docFromStory); document.querySelector('#app')!.innerHTML = `
${html}
-` +`; diff --git a/playground/vanilla/tsconfig.json b/playground/vanilla/tsconfig.json index e7ffd37..1aa5834 100644 --- a/playground/vanilla/tsconfig.json +++ b/playground/vanilla/tsconfig.json @@ -1,27 +1,27 @@ { "compilerOptions": { "target": "ES2020", + "lib": ["ES2020", "DOM", "DOM.Iterable"], "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], - "skipLibCheck": true, /* Bundler mode */ "moduleResolution": "bundler", - "allowImportingTsExtensions": true, + + "paths": { + "@storyblok/richtext": ["../../src/"] + }, "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, + "allowImportingTsExtensions": true, /* Linting */ "strict": true, + "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true, - - "paths": { - "@storyblok/richtext": ["../../src/"] - }, + "noEmit": true, + "isolatedModules": true, + "skipLibCheck": true }, "include": ["src"] } diff --git a/playground/vanilla/vite.config.ts b/playground/vanilla/vite.config.ts index a6e31dd..cdf36b5 100644 --- a/playground/vanilla/vite.config.ts +++ b/playground/vanilla/vite.config.ts @@ -1,9 +1,9 @@ -import { defineConfig } from 'vite' +import { defineConfig } from 'vite'; -import { resolve } from 'pathe' +import { resolve } from 'pathe'; -import { qrcode } from 'vite-plugin-qrcode' -import basicSsl from '@vitejs/plugin-basic-ssl' +import { qrcode } from 'vite-plugin-qrcode'; +import basicSsl from '@vitejs/plugin-basic-ssl'; // https://vitejs.dev/config/ export default defineConfig({ @@ -19,4 +19,4 @@ export default defineConfig({ '@storyblok/richtext': resolve(__dirname, '../../src/index.ts'), }, }, -}) +}); diff --git a/playground/vue/src/App.vue b/playground/vue/src/App.vue index 13f0399..3e7054d 100644 --- a/playground/vue/src/App.vue +++ b/playground/vue/src/App.vue @@ -1,10 +1,11 @@ + \ No newline at end of file + diff --git a/playground/vue/src/components/CodeBlock.vue b/playground/vue/src/components/CodeBlock.vue index 68eda8e..034368b 100644 --- a/playground/vue/src/components/CodeBlock.vue +++ b/playground/vue/src/components/CodeBlock.vue @@ -1,6 +1,7 @@ + \ No newline at end of file +
Fancy Code Block
+ diff --git a/playground/vue/src/components/HomeView.vue b/playground/vue/src/components/HomeView.vue index a786fbb..058baee 100644 --- a/playground/vue/src/components/HomeView.vue +++ b/playground/vue/src/components/HomeView.vue @@ -1,11 +1,13 @@ \ No newline at end of file + diff --git a/playground/vue/src/components/IFrameEmbed.vue b/playground/vue/src/components/IFrameEmbed.vue index 3c67ebe..5ed1ed3 100644 --- a/playground/vue/src/components/IFrameEmbed.vue +++ b/playground/vue/src/components/IFrameEmbed.vue @@ -4,8 +4,9 @@ defineProps({ type: Object, required: true, }, -}) +}); + \ No newline at end of file + + diff --git a/playground/vue/src/components/NotFound.vue b/playground/vue/src/components/NotFound.vue index ad887fc..5863db4 100644 --- a/playground/vue/src/components/NotFound.vue +++ b/playground/vue/src/components/NotFound.vue @@ -1,6 +1,7 @@ + \ No newline at end of file + Not found + diff --git a/playground/vue/src/main.ts b/playground/vue/src/main.ts index 4dd5306..52e674f 100644 --- a/playground/vue/src/main.ts +++ b/playground/vue/src/main.ts @@ -1,10 +1,10 @@ -import { createApp } from 'vue' -import { StoryblokVue, apiPlugin } from '@storyblok/vue' +import { createApp } from 'vue'; +import { apiPlugin, StoryblokVue } from '@storyblok/vue'; -import './style.css' -import App from './App.vue' -import { router } from './router' -import IframeEmbed from './components/IFrameEmbed.vue' +import './style.css'; +import App from './App.vue'; +import { router } from './router'; +import IframeEmbed from './components/IFrameEmbed.vue'; createApp(App) .component('iframe-embed', IframeEmbed) @@ -13,4 +13,4 @@ createApp(App) accessToken: import.meta.env.VITE_STORYBLOK_TOKEN, use: [apiPlugin], }) - .mount('#app') + .mount('#app'); diff --git a/playground/vue/src/router/index.ts b/playground/vue/src/router/index.ts index 95a7abc..5349073 100644 --- a/playground/vue/src/router/index.ts +++ b/playground/vue/src/router/index.ts @@ -1,13 +1,13 @@ -import { createMemoryHistory, createRouter } from 'vue-router' -import HomeView from '../components/HomeView.vue' -import NotFound from '../components/NotFound.vue' +import { createMemoryHistory, createRouter } from 'vue-router'; +import HomeView from '../components/HomeView.vue'; +import NotFound from '../components/NotFound.vue'; const routes = [ { path: '/', component: HomeView }, { path: '/:pathMatch(.*)*', name: 'NotFound', component: NotFound }, -] +]; export const router = createRouter({ history: createMemoryHistory(), routes, -}) +}); diff --git a/playground/vue/storyblok/iframe-embed.vue b/playground/vue/storyblok/iframe-embed.vue index 5b31073..98cb8d4 100644 --- a/playground/vue/storyblok/iframe-embed.vue +++ b/playground/vue/storyblok/iframe-embed.vue @@ -1,6 +1,7 @@ + \ No newline at end of file +
Hello
+ diff --git a/playground/vue/tsconfig.json b/playground/vue/tsconfig.json index 9e03e60..37c4821 100644 --- a/playground/vue/tsconfig.json +++ b/playground/vue/tsconfig.json @@ -1,25 +1,25 @@ { "compilerOptions": { "target": "ES2020", + "jsx": "preserve", + "lib": ["ES2020", "DOM", "DOM.Iterable"], "useDefineForClassFields": true, "module": "ESNext", - "lib": ["ES2020", "DOM", "DOM.Iterable"], - "skipLibCheck": true, /* Bundler mode */ "moduleResolution": "bundler", - "allowImportingTsExtensions": true, "resolveJsonModule": true, - "isolatedModules": true, - "noEmit": true, - "jsx": "preserve", + "allowImportingTsExtensions": true, /* Linting */ "strict": true, + "noFallthroughCasesInSwitch": true, "noUnusedLocals": true, "noUnusedParameters": true, - "noFallthroughCasesInSwitch": true + "noEmit": true, + "isolatedModules": true, + "skipLibCheck": true }, - "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"], - "references": [{ "path": "./tsconfig.node.json" }] + "references": [{ "path": "./tsconfig.node.json" }], + "include": ["src/**/*.ts", "src/**/*.tsx", "src/**/*.vue"] } diff --git a/playground/vue/tsconfig.node.json b/playground/vue/tsconfig.node.json index 97ede7e..38a9d93 100644 --- a/playground/vue/tsconfig.node.json +++ b/playground/vue/tsconfig.node.json @@ -1,11 +1,11 @@ { "compilerOptions": { "composite": true, - "skipLibCheck": true, "module": "ESNext", "moduleResolution": "bundler", + "strict": true, "allowSyntheticDefaultImports": true, - "strict": true + "skipLibCheck": true }, "include": ["vite.config.ts"] } diff --git a/playground/vue/vite.config.ts b/playground/vue/vite.config.ts index 200964d..2457cdc 100644 --- a/playground/vue/vite.config.ts +++ b/playground/vue/vite.config.ts @@ -1,9 +1,9 @@ -import { defineConfig } from 'vite' -import vue from '@vitejs/plugin-vue' -import { resolve } from 'pathe' +import { defineConfig } from 'vite'; +import vue from '@vitejs/plugin-vue'; +import { resolve } from 'pathe'; -import { qrcode } from 'vite-plugin-qrcode' -import basicSsl from '@vitejs/plugin-basic-ssl' +import { qrcode } from 'vite-plugin-qrcode'; +import basicSsl from '@vitejs/plugin-basic-ssl'; // https://vitejs.dev/config/ export default defineConfig({ @@ -18,4 +18,4 @@ export default defineConfig({ '@storyblok/vue-richtext': resolve(__dirname, '../../packages/vue/src/index.ts'), }, }, -}) +}); diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4fd30e7..185fea1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -7,10 +7,6 @@ settings: importers: .: - dependencies: - consola: - specifier: ^3.2.3 - version: 3.2.3 devDependencies: '@commitlint/cli': specifier: ^19.3.0 @@ -18,6 +14,9 @@ importers: '@commitlint/config-conventional': specifier: ^19.2.2 version: 19.5.0 + '@storyblok/eslint-config': + specifier: ^0.3.0 + version: 0.3.0(@typescript-eslint/utils@8.9.0(eslint@8.57.0)(typescript@5.5.4))(@vue/compiler-sfc@3.4.34)(eslint-plugin-react-hooks@4.6.0(eslint@8.57.0))(eslint-plugin-react-refresh@0.4.6(eslint@8.57.0))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.1.1(@types/node@22.0.0)(@vitest/ui@2.1.1)) '@storyblok/vue': specifier: ^8.0.8 version: 8.1.4 @@ -30,12 +29,15 @@ importers: '@vitest/ui': specifier: ^2.0.4 version: 2.1.1(vitest@2.1.1) + eslint: + specifier: ^8.57.0 + version: 8.57.0 eslint-config-prettier: specifier: ^9.1.0 - version: 9.1.0(eslint@9.8.0) + version: 9.1.0(eslint@8.57.0) eslint-plugin-vue: specifier: ^9.27.0 - version: 9.28.0(eslint@9.8.0) + version: 9.28.0(eslint@8.57.0) kolorist: specifier: ^1.8.0 version: 1.8.0 @@ -174,14 +176,59 @@ importers: packages: - '@aashutoshrathi/word-wrap@1.2.6': - resolution: {integrity: sha512-1Yjs2SvM8TflER/OD3cOjhWWOZb58A2t7wpE2S9XfBYTiIl+XFhQG2bjy4Pu1I+EAlCNUzRDYDdFwFYUKvXcIA==} - engines: {node: '>=0.10.0'} - '@ampproject/remapping@2.3.0': resolution: {integrity: sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw==} engines: {node: '>=6.0.0'} + '@antfu/eslint-config@3.6.2': + resolution: {integrity: sha512-cewFaIEuSSOjbIsNts8gjeMLQrrMDhZjZJHMWk+OyVGJLHRE09JiF5Yg5+XjMVYlG/7fPqeuwEehLrer+8zMfA==} + hasBin: true + peerDependencies: + '@eslint-react/eslint-plugin': ^1.5.8 + '@prettier/plugin-xml': ^3.4.1 + '@unocss/eslint-plugin': '>=0.50.0' + astro-eslint-parser: ^1.0.2 + eslint: ^9.10.0 + eslint-plugin-astro: ^1.2.0 + eslint-plugin-format: '>=0.1.0' + eslint-plugin-react-hooks: ^4.6.0 + eslint-plugin-react-refresh: ^0.4.4 + eslint-plugin-solid: ^0.14.3 + eslint-plugin-svelte: '>=2.35.1' + prettier-plugin-astro: ^0.13.0 + prettier-plugin-slidev: ^1.0.5 + svelte-eslint-parser: '>=0.37.0' + peerDependenciesMeta: + '@eslint-react/eslint-plugin': + optional: true + '@prettier/plugin-xml': + optional: true + '@unocss/eslint-plugin': + optional: true + astro-eslint-parser: + optional: true + eslint-plugin-astro: + optional: true + eslint-plugin-format: + optional: true + eslint-plugin-react-hooks: + optional: true + eslint-plugin-react-refresh: + optional: true + eslint-plugin-solid: + optional: true + eslint-plugin-svelte: + optional: true + prettier-plugin-astro: + optional: true + prettier-plugin-slidev: + optional: true + svelte-eslint-parser: + optional: true + + '@antfu/install-pkg@0.4.1': + resolution: {integrity: sha512-T7yB5QNG29afhWVkVq7XeIMBa5U/vs9mX69YqayXypPRmYzUmzwnYltplHmPtZ4HPCn+sQKeXW8I47wCbuBOjw==} + '@antfu/utils@0.7.10': resolution: {integrity: sha512-+562v9k4aI80m1+VuMHehNJWLOFjBnXn3tdOitzD0il5b7smkSBal4+a3oKiQTbrwMmN/TBUMDvbdoWDehgOww==} @@ -247,6 +294,14 @@ packages: '@bcoe/v8-coverage@0.2.3': resolution: {integrity: sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==} + '@clack/core@0.3.4': + resolution: {integrity: sha512-H4hxZDXgHtWTwV3RAVenqcC4VbJZNegbBjlPvzOzCouXtS2y3sDvlO3IsbrPNWuLWPPlYVYPghQdSF64683Ldw==} + + '@clack/prompts@0.7.0': + resolution: {integrity: sha512-0MhX9/B4iL6Re04jPrttDm+BsP8y6mS7byuv0BvXgdXhbV5PdlsHt55dvNsuBCPZ7xq1oTAOOuotR9NFbQyMSA==} + bundledDependencies: + - is-unicode-supported + '@commitlint/cli@19.5.0': resolution: {integrity: sha512-gaGqSliGwB86MDmAAKAtV9SV1SHdmN8pnGq4EJU4+hLisQ7IFfx4jvU4s+pk6tl0+9bv6yT+CaZkufOinkSJIQ==} engines: {node: '>=v18'} @@ -316,6 +371,23 @@ packages: resolution: {integrity: sha512-DSHae2obMSMkAtTBSOulg5X7/z+rGLxcXQIkg3OmWvY6wifojge5uVMydfhUvs7yQj+V7jNmRZ2Xzl8GJyqRgg==} engines: {node: '>=v18'} + '@dprint/formatter@0.3.0': + resolution: {integrity: sha512-N9fxCxbaBOrDkteSOzaCqwWjso5iAe+WJPsHC021JfHNj2ThInPNEF13ORDKta3llq5D1TlclODCvOvipH7bWQ==} + + '@dprint/markdown@0.17.8': + resolution: {integrity: sha512-ukHFOg+RpG284aPdIg7iPrCYmMs3Dqy43S1ejybnwlJoFiW02b+6Bbr5cfZKFRYNP3dKGM86BqHEnMzBOyLvvA==} + + '@dprint/toml@0.6.3': + resolution: {integrity: sha512-zQ42I53sb4WVHA+5yoY1t59Zk++Ot02AvUgtNKLzTT8mPyVqVChFcePa3on/xIoKEgH+RoepgPHzqfk9837YFw==} + + '@es-joy/jsdoccomment@0.48.0': + resolution: {integrity: sha512-G6QUWIcC+KvSwXNsJyDTHvqUdNoAVJPPgkc3+Uk4WBKqZvoXhlvazOgm9aL0HwihJLQf0l+tOE2UFzXBqCqgDw==} + engines: {node: '>=16'} + + '@es-joy/jsdoccomment@0.49.0': + resolution: {integrity: sha512-xjZTSFgECpb9Ohuk5yMX5RhUEbfeQcuOp8IF60e+wyzWEF0M5xeSgqsfLtvPEX8BIyOX9saZqzuGPmZ8oWc+5Q==} + engines: {node: '>=16'} + '@esbuild/aix-ppc64@0.19.12': resolution: {integrity: sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA==} engines: {node: '>=12'} @@ -730,6 +802,12 @@ packages: cpu: [x64] os: [win32] + '@eslint-community/eslint-plugin-eslint-comments@4.4.0': + resolution: {integrity: sha512-yljsWl5Qv3IkIRmJ38h3NrHXFCm4EUl55M8doGTF6hvzvFF8kRpextgSrg2dwHev9lzBZyafCr9RelGIyQm6fw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: ^6.0.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 + '@eslint-community/eslint-utils@4.4.0': resolution: {integrity: sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -744,28 +822,29 @@ packages: resolution: {integrity: sha512-m4DVN9ZqskZoLU5GlWZadwDnYo3vAEydiUayB9widCl9ffWx2IvPnp6n3on5rJmziJSw9Bv+Z3ChDVdMwXCY8Q==} engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} - '@eslint/config-array@0.17.1': - resolution: {integrity: sha512-BlYOpej8AQ8Ev9xVqroV7a02JK3SkBAaN9GfMMH9W6Ch8FlQlkjGw4Ir7+FgYwfirivAf4t+GtzuAxqfukmISA==} + '@eslint/compat@1.2.0': + resolution: {integrity: sha512-CkPWddN7J9JPrQedEr2X7AjK9y1jaMJtxZ4A/+jTMFA2+n5BWhcKHW/EbJyARqg2zzQfgtWUtVmG3hrG6+nGpg==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^9.10.0 + peerDependenciesMeta: + eslint: + optional: true '@eslint/eslintrc@2.1.4': resolution: {integrity: sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@eslint/eslintrc@3.1.0': - resolution: {integrity: sha512-4Bfj15dVJdoy3RfZmmo86RK1Fwzn6SstsvK9JS+BaVKqC6QQQQyXekNaC+g+LKNgkQ+2VhGAzm6hO40AhMR3zQ==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/js@8.57.0': resolution: {integrity: sha512-Ys+3g2TaW7gADOJzPt83SJtCDhMjndcDMFVQ/Tj9iA1BfJzFKD9mAUXT3OenpuPHbI6P/myECxRJrofUsDx/5g==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - '@eslint/js@9.8.0': - resolution: {integrity: sha512-MfluB7EUfxXtv3i/++oh89uzAr4PDI4nn201hsp+qaXqsjAWzinlZEHEfPgAX4doIlKvPG/i0A9dpKxOLII8yA==} + '@eslint/markdown@6.2.0': + resolution: {integrity: sha512-ZLWZ6RNy5flf1Nk2DBt0V77MQpQEo8snkjVT75P5J0SJkE/QNoqgy7+dBvNjlyZuj664pU43uDXWg3J8AfF0IQ==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - '@eslint/object-schema@2.1.4': - resolution: {integrity: sha512-BsWiH1yFGjXXS2yvrf5LyuoSIIbPrGUWob917o+BTKuZ7qJdxX8aJLRxs1fS9n6r7vESrq1OUqb68dANcFXuQQ==} + '@eslint/plugin-kit@0.2.0': + resolution: {integrity: sha512-vH9PiIMMwvhCx31Af3HiGzsVNULDbyVkHXwlemn/B0TFj/00ho3y55efXrUZTfQipxoHC5u4xq6zblww1zm1Ig==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} '@humanwhocodes/config-array@0.11.14': @@ -781,10 +860,6 @@ packages: resolution: {integrity: sha512-6EwiSjwWYP7pTckG6I5eyFANjPhmPjUX9JRLUSfNPC7FX7zK9gyZAfUEaECL6ALTpGX5AjnBq3C9XmVWPitNpw==} deprecated: Use @eslint/object-schema instead - '@humanwhocodes/retry@0.3.0': - resolution: {integrity: sha512-d2CGZR2o7fS6sWB7DG/3a95bGKQyHMACZ5aW8qGkkqQpUoZV6C0X7Pc7l4ZNMZkfNBf4VWNe9E1jRsf0G146Ew==} - engines: {node: '>=18.18'} - '@iarna/toml@2.2.5': resolution: {integrity: sha512-trnsAYxU3xnS1gPHPyU961coFyLkh4gAD/0zQ5mymY4yOZ+CYvsPqUbOFSw0aDM4y0tV7tiFxL/1XfXPNC6IPg==} @@ -899,6 +974,10 @@ packages: resolution: {integrity: sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg==} engines: {node: '>=14'} + '@pkgr/core@0.1.1': + resolution: {integrity: sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==} + engines: {node: ^12.20.0 || ^14.18.0 || >=16.0.0} + '@pnpm/config.env-replace@1.1.0': resolution: {integrity: sha512-htyl8TWnKL7K/ESFa1oW2UB5lVDxuF5DpM7tBi6Hu2LNL3mWkIzNLG6N4zoCUP1lCKNxWy/3iu8mS8MvToGd6w==} engines: {node: '>=12.22.0'} @@ -1178,6 +1257,11 @@ packages: resolution: {integrity: sha512-LtoMMhxAlorcGhmFYI+LhPgbPZCkgP6ra1YL604EeF6U98pLlQ3iWIGMdWSC+vWmPBWBNgmDBAhnAobLROJmwg==} engines: {node: '>=18'} + '@storyblok/eslint-config@0.3.0': + resolution: {integrity: sha512-7JJr3K+ibx4rGAgkQBrwncCpdJ+eaBM7PfCWE2s/gmCqyvQGuGu8IRRKv9/V2u9gyv1BLQBDWmEhz7J8mwQAlA==} + peerDependencies: + eslint: '>=8.40.0' + '@storyblok/js@3.0.7': resolution: {integrity: sha512-m6MpUhjEpDWMKftyjJhTkthd/I6LZ9xhuT/Wxa1e99Cf4niVC5jgMVPQ5tOsUgn3D8BKNL+6PI3hEj5dGKB9xw==} @@ -1199,6 +1283,12 @@ packages: '@storyblok/vue@8.1.4': resolution: {integrity: sha512-q+5G4bV8hK9cY7n/3/8e+1D/CRON65upAQnpuN6GDhfstTS7DHW9963ALXNv9u8zUMifK8229m3kk2W5Ul+fzQ==} + '@stylistic/eslint-plugin@2.9.0': + resolution: {integrity: sha512-OrDyFAYjBT61122MIY1a3SfEgy3YCMgt2vL4eoPmvTwDBwyQhAXurxNQznlRD/jESNfYWfID8Ej+31LljvF7Xg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: '>=8.40.0' + '@swc/core-darwin-arm64@1.4.8': resolution: {integrity: sha512-hhQCffRTgzpTIbngSnC30vV6IJVTI9FFBF954WEsshsecVoCGFiMwazBbrkLG+RwXENTrMhgeREEFh6R3KRgKQ==} engines: {node: '>=10'} @@ -1287,6 +1377,9 @@ packages: '@types/conventional-commits-parser@5.0.0': resolution: {integrity: sha512-loB369iXNmAZglwWATL+WRe+CRMmmBPtpolYzIebFaX4YA3x+BEfLqhUAV9WanycKI3TG1IMr5bMJDajDKLlUQ==} + '@types/debug@4.1.12': + resolution: {integrity: sha512-vIChWdVG3LG1SMxEvI/AK+FWJthlrqlTu7fbrlywTkkaONwk/UAGaULXRlf8vkzFBLVm0zkMdCquhL5aOjhXPQ==} + '@types/estree@1.0.5': resolution: {integrity: sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw==} @@ -1299,12 +1392,21 @@ packages: '@types/json-schema@7.0.15': resolution: {integrity: sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA==} + '@types/mdast@4.0.4': + resolution: {integrity: sha512-kGaNbPh1k7AFzgpud/gMdvIm5xuECykRR+JnWKQno9TAXVa6WIVCGTPvYGekIDL4uwCZQSYbUxNBSb1aUo79oA==} + + '@types/ms@0.7.34': + resolution: {integrity: sha512-nG96G3Wp6acyAgJqGasjODb+acrI7KltPiRxzHPXnP3NgI28bpQDRv53olbqGXbfcgF5aiiHmO3xpwEpS5Ld9g==} + '@types/node@20.12.10': resolution: {integrity: sha512-Eem5pH9pmWBHoGAT8Dr5fdc5rYA+4NAovdM4EktRPVAAiJhmWWfQrA0cFhAbOsQdSfIHjAud6YdkbL69+zSKjw==} '@types/node@22.0.0': resolution: {integrity: sha512-VT7KSYudcPOzP5Q0wfbowyNLaVR8QWUdw+088uFWwfvpY6uCWaXpqV6ieLAu9WBcnTa7H4Z5RLK8I5t2FuOcqw==} + '@types/normalize-package-data@2.4.4': + resolution: {integrity: sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==} + '@types/prop-types@15.7.11': resolution: {integrity: sha512-ga8y9v9uyeiLdpKddhxYQkxNDrfvuPrlFb0N1qnZZByvcElJaXthF1UhvCh9TLWJBEHeNtdnbysW7Y6Uq8CVng==} @@ -1320,6 +1422,9 @@ packages: '@types/semver@7.5.8': resolution: {integrity: sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ==} + '@types/unist@3.0.3': + resolution: {integrity: sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==} + '@typescript-eslint/eslint-plugin@7.2.0': resolution: {integrity: sha512-mdekAHOqS9UjlmyF/LSs6AIEvfceV749GFxoBAjwAv0nkevfKHWQFDMcBZWUiIC5ft6ePWivXoS36aKQ0Cy3sw==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1331,6 +1436,17 @@ packages: typescript: optional: true + '@typescript-eslint/eslint-plugin@8.9.0': + resolution: {integrity: sha512-Y1n621OCy4m7/vTXNlCbMVp87zSd7NH0L9cXD8aIpOaNlzeWxIK4+Q19A68gSmTNRZn92UjocVUWDthGxtqHFg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + '@typescript-eslint/parser': ^8.0.0 || ^8.0.0-alpha.0 + eslint: ^8.57.0 || ^9.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/parser@7.2.0': resolution: {integrity: sha512-5FKsVcHTk6TafQKQbuIVkXq58Fnbkd2wDL4LB7AURN7RUOu1utVP+G8+6u3ZhEroW3DF6hyo3ZEXxgKgp4KeCg==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1341,10 +1457,24 @@ packages: typescript: optional: true + '@typescript-eslint/parser@8.9.0': + resolution: {integrity: sha512-U+BLn2rqTTHnc4FL3FJjxaXptTxmf9sNftJK62XLz4+GxG3hLHm/SUNaaXP5Y4uTiuYoL5YLy4JBCJe3+t8awQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/scope-manager@7.2.0': resolution: {integrity: sha512-Qh976RbQM/fYtjx9hs4XkayYujB/aPwglw2choHmf3zBjB4qOywWSdt9+KLRdHubGcoSwBnXUH2sR3hkyaERRg==} engines: {node: ^16.0.0 || >=18.0.0} + '@typescript-eslint/scope-manager@8.9.0': + resolution: {integrity: sha512-bZu9bUud9ym1cabmOYH9S6TnbWRzpklVmwqICeOulTCZ9ue2/pczWzQvt/cGj2r2o1RdKoZbuEMalJJSYw3pHQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/type-utils@7.2.0': resolution: {integrity: sha512-xHi51adBHo9O9330J8GQYQwrKBqbIPJGZZVQTHHmy200hvkLZFWJIFtAG/7IYTWUyun6DE6w5InDReePJYJlJA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1355,10 +1485,23 @@ packages: typescript: optional: true + '@typescript-eslint/type-utils@8.9.0': + resolution: {integrity: sha512-JD+/pCqlKqAk5961vxCluK+clkppHY07IbV3vett97KOV+8C6l+CPEPwpUuiMwgbOz/qrN3Ke4zzjqbT+ls+1Q==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/types@7.2.0': resolution: {integrity: sha512-XFtUHPI/abFhm4cbCDc5Ykc8npOKBSJePY3a3s+lwumt7XWJuzP5cZcfZ610MIPHjQjNsOLlYK8ASPaNG8UiyA==} engines: {node: ^16.0.0 || >=18.0.0} + '@typescript-eslint/types@8.9.0': + resolution: {integrity: sha512-SjgkvdYyt1FAPhU9c6FiYCXrldwYYlIQLkuc+LfAhCna6ggp96ACncdtlbn8FmnG72tUkXclrDExOpEYf1nfJQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@typescript-eslint/typescript-estree@7.2.0': resolution: {integrity: sha512-cyxS5WQQCoBwSakpMrvMXuMDEbhOo9bNHHrNcEWis6XHx6KF518tkF1wBvKIn/tpq5ZpUYK7Bdklu8qY0MsFIA==} engines: {node: ^16.0.0 || >=18.0.0} @@ -1368,16 +1511,35 @@ packages: typescript: optional: true + '@typescript-eslint/typescript-estree@8.9.0': + resolution: {integrity: sha512-9iJYTgKLDG6+iqegehc5+EqE6sqaee7kb8vWpmHZ86EqwDjmlqNNHeqDVqb9duh+BY6WCNHfIGvuVU3Tf9Db0g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + typescript: '*' + peerDependenciesMeta: + typescript: + optional: true + '@typescript-eslint/utils@7.2.0': resolution: {integrity: sha512-YfHpnMAGb1Eekpm3XRK8hcMwGLGsnT6L+7b2XyRv6ouDuJU1tZir1GS2i0+VXRatMwSI1/UfcyPe53ADkU+IuA==} engines: {node: ^16.0.0 || >=18.0.0} peerDependencies: eslint: ^8.56.0 + '@typescript-eslint/utils@8.9.0': + resolution: {integrity: sha512-PKgMmaSo/Yg/F7kIZvrgrWa1+Vwn036CdNUvYFEkYbPwOH4i8xvkaRlu148W3vtheWK9ckKRIz7PBP5oUlkrvQ==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + '@typescript-eslint/visitor-keys@7.2.0': resolution: {integrity: sha512-c6EIQRHhcpl6+tO8EMR+kjkkV+ugUNXOmeASA1rlzkd8EPIriavpWoiEz1HR/VLhbVIdhqnV6E7JZm00cBDx2A==} engines: {node: ^16.0.0 || >=18.0.0} + '@typescript-eslint/visitor-keys@8.9.0': + resolution: {integrity: sha512-Ht4y38ubk4L5/U8xKUBfKNYGmvKvA1CANoxiTRMM+tOLk3lbF3DvzZCxJCRSE+2GdCMSh6zq9VZJc3asc1XuAA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + '@ungap/structured-clone@1.2.0': resolution: {integrity: sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==} @@ -1404,6 +1566,19 @@ packages: peerDependencies: vitest: 2.0.4 + '@vitest/eslint-plugin@1.1.7': + resolution: {integrity: sha512-pTWGW3y6lH2ukCuuffpan6kFxG6nIuoesbhMiQxskyQMRcCN5t9SXsKrNHvEw3p8wcCsgJoRqFZVkOTn6TjclA==} + peerDependencies: + '@typescript-eslint/utils': '>= 8.0' + eslint: '>= 8.57.0' + typescript: '>= 5.0.0' + vitest: '*' + peerDependenciesMeta: + typescript: + optional: true + vitest: + optional: true + '@vitest/expect@2.1.1': resolution: {integrity: sha512-YeueunS0HiHiQxk+KEOnq/QMzlUuOzbU1Go+PgAsHvvv3tUkJPm9xWt+6ITNTlzsMXUjmgm5T+U7KBPK2qQV6w==} @@ -1564,11 +1739,6 @@ packages: peerDependencies: acorn: ^6.0.0 || ^7.0.0 || ^8.0.0 - acorn@8.11.3: - resolution: {integrity: sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg==} - engines: {node: '>=0.4.0'} - hasBin: true - acorn@8.12.1: resolution: {integrity: sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg==} engines: {node: '>=0.4.0'} @@ -1637,6 +1807,10 @@ packages: resolution: {integrity: sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==} engines: {node: '>=12'} + are-docs-informative@0.0.2: + resolution: {integrity: sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig==} + engines: {node: '>=14'} + argparse@1.0.10: resolution: {integrity: sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==} @@ -1694,9 +1868,18 @@ packages: resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==} engines: {node: '>=8'} + browserslist@4.24.0: + resolution: {integrity: sha512-Rmb62sR1Zpjql25eSanFGEhAxcFwfA1K0GuQcLoaJBAcENegrQut3hYdhXFF1obQfiDyqIW/cLM5HSJ/9k884A==} + engines: {node: ^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7} + hasBin: true + buffer@5.7.1: resolution: {integrity: sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==} + builtin-modules@3.3.0: + resolution: {integrity: sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw==} + engines: {node: '>=6'} + bundle-name@4.1.0: resolution: {integrity: sha512-tjwM5exMg6BGRI+kNmTntNsvdZS1X8BFYS6tnJ2hdH0kVxM6/eVZ2xy+FqStSWvYmtfFMDLIxurorHwDKfDz5Q==} engines: {node: '>=18'} @@ -1721,6 +1904,12 @@ packages: resolution: {integrity: sha512-xlx1yCK2Oc1APsPXDL2LdlNP6+uu8OCDdhOBSVT279M/S+y75O30C2VuD8T2ogdePBBl7PfPF4504tnLgX3zfw==} engines: {node: '>=14.16'} + caniuse-lite@1.0.30001669: + resolution: {integrity: sha512-DlWzFDJqstqtIVx1zeSpIMLjunf5SmwOw0N2Ck/QSQdS8PLS4+9HrLaYei4w8BIAL7IB/UEDu889d8vhCTPA0w==} + + ccount@2.0.1: + resolution: {integrity: sha512-eyrF0jiFpY+3drT6383f1qhkbGsLSifNAjA61IUjZjmLCWjItY6LB9ft9YhoDgwfmclB2zhu51Lc7+95b8NRAg==} + chai@5.1.1: resolution: {integrity: sha512-pT1ZgP8rPNqUgieVaEY+ryQr6Q4HXNg8Ei9UnLUrjN4IA7dvQC5JB+/kxVcPNDHyBcc/26CXPkbNzq3qwrOEKA==} engines: {node: '>=12'} @@ -1737,6 +1926,9 @@ packages: resolution: {integrity: sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w==} engines: {node: ^12.17.0 || ^14.13 || >=16.0.0} + character-entities@2.0.2: + resolution: {integrity: sha512-shx7oQ0Awen/BRIdkjkvz54PnEEI/EjwXDSIZp86/KKdbafHh1Df/RYGBhn4hbe2+uKC9FnT5UCEdyPz3ai9hQ==} + chardet@0.7.0: resolution: {integrity: sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA==} @@ -1748,6 +1940,14 @@ packages: resolution: {integrity: sha512-NIxF55hv4nSqQswkAeiOi1r83xy8JldOFDTWiug55KBu9Jnblncd2U6ViHmYgHf01TPZS77NJBhBMKdWj9HQMQ==} engines: {node: '>=8'} + ci-info@4.0.0: + resolution: {integrity: sha512-TdHqgGf9odd8SXNuxtUBVx8Nv+qZOejE6qyqiy5NtbYYQOeFa6zmHkxlPzmaLxWWHsU6nJmB7AETdVPi+2NBUg==} + engines: {node: '>=8'} + + clean-regexp@1.0.0: + resolution: {integrity: sha512-GfisEZEJvzKrmGWkvfhgzcz/BllN1USeqD2V6tg14OAOgaCD2Z/PUEuxnAZ/nPvmaHRG7a8y77p1T/IRQ4D1Hw==} + engines: {node: '>=4'} + cli-boxes@3.0.0: resolution: {integrity: sha512-/lzGpEWL/8PfI0BmBOPRwp0c/wFNX1RdUML3jK/RcSBA9T8mZDdQpqYBKtCFTOfQbwPqWEOpjqW+Fnayc0969g==} engines: {node: '>=10'} @@ -1804,6 +2004,10 @@ packages: resolution: {integrity: sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA==} engines: {node: '>=18'} + comment-parser@1.4.1: + resolution: {integrity: sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg==} + engines: {node: '>= 12.0.0'} + compare-func@2.0.0: resolution: {integrity: sha512-zHig5N+tPWARooBnb0Zx1MFcdfpyJrfTJ3Y5L+IFvUm8rM74hHz66z0gw0x4tijh5CorKkKUCnW82R2vmpeCRA==} @@ -1843,6 +2047,9 @@ packages: engines: {node: '>=16'} hasBin: true + core-js-compat@3.38.1: + resolution: {integrity: sha512-JRH6gfXxGmrzF3tZ57lFx97YARxCXPaMzPo6jELZhv88pBH5VXpQ+y0znKGlFnzuaihqhLbefxSJxWJMPtfDzw==} + cosmiconfig-typescript-loader@5.0.0: resolution: {integrity: sha512-+8cK7jRAReYkMwMiG+bxhcNKiHJDM6bR9FD/nGBXOWdMLuYawjF5cGrtLilJ+LGd3ZjCXnJjR5DkfWPoIVlqJA==} engines: {node: '>=v16'} @@ -1891,6 +2098,14 @@ packages: de-indent@1.0.2: resolution: {integrity: sha512-e/1zu3xH5MQryN2zdVaF0OrdNLUbvWxzMbi+iNA6Bky7l1RoP8a2fIbRocyHclXt/arDrrR6lL3TqFD9pMQTsg==} + debug@3.2.7: + resolution: {integrity: sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ==} + peerDependencies: + supports-color: '*' + peerDependenciesMeta: + supports-color: + optional: true + debug@4.3.4: resolution: {integrity: sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==} engines: {node: '>=6.0'} @@ -1927,6 +2142,9 @@ packages: supports-color: optional: true + decode-named-character-reference@1.0.2: + resolution: {integrity: sha512-O8x12RzrUF8xyVcY0KJowWsmaJxQbmy0/EtnNtHRpsOcT7dFk5W598coHqBVpmWo1oQQfsCqfCmkZN5DJrZVdg==} + decompress-response@6.0.0: resolution: {integrity: sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==} engines: {node: '>=10'} @@ -1968,6 +2186,13 @@ packages: deprecation@2.3.1: resolution: {integrity: sha512-xmHIy4F3scKVwMsQ4WnVaS8bHOx0DmVwRywosKhaILI0ywMDWPtBSku2HNxRvF7jtwDRsoEwYQSfbxj8b7RlJQ==} + dequal@2.0.3: + resolution: {integrity: sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==} + engines: {node: '>=6'} + + devlop@1.1.0: + resolution: {integrity: sha512-RWmIqhcFf1lRYBvNmr7qTNuyCt/7/ns2jbpp1+PalgE/rDQcBT0fioSMUpJ93irlUhC5hrg4cYqe6U+0ImW0rA==} + dir-glob@3.0.1: resolution: {integrity: sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==} engines: {node: '>=8'} @@ -1987,6 +2212,9 @@ packages: eastasianwidth@0.2.0: resolution: {integrity: sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==} + electron-to-chromium@1.5.40: + resolution: {integrity: sha512-LYm78o6if4zTasnYclgQzxEcgMoIcybWOhkATWepN95uwVVWV0/IW10v+2sIeHE+bIYWipLneTftVyQm45UY7g==} + emoji-regex@10.3.0: resolution: {integrity: sha512-QpLs9D9v9kArv4lfDEgg1X/gN5XLnf/A6l9cs8SPZLRZR3ZkY9+kwIQTxm+fsSej5UMYGE8fdoaZVIBlqG0XTw==} @@ -1996,6 +2224,10 @@ packages: emoji-regex@9.2.2: resolution: {integrity: sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg==} + enhanced-resolve@5.17.1: + resolution: {integrity: sha512-LMHl3dXhTcfv8gM4kEzIUeTQ+7fpdA0l2tUf34BddXPkz2A5xJ5L/Pchd5BL6rdccM9QGvu0sWZzK1Z1t4wwyg==} + engines: {node: '>=10.13.0'} + entities@4.5.0: resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==} engines: {node: '>=0.12'} @@ -2014,6 +2246,9 @@ packages: error-stack-parser-es@0.1.5: resolution: {integrity: sha512-xHku1X40RO+fO8yJ8Wh2f2rZWVjqyhb1zgq1yZ8aZRQkv6OOKhKWRUaht3eSCUbAOBaKIgM+ykwFLE+QUxgGeg==} + es-module-lexer@1.5.4: + resolution: {integrity: sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw==} + esbuild@0.19.12: resolution: {integrity: sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg==} engines: {node: '>=12'} @@ -2045,17 +2280,119 @@ packages: resolution: {integrity: sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==} engines: {node: '>=10'} + escape-string-regexp@5.0.0: + resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==} + engines: {node: '>=12'} + escodegen@2.1.0: resolution: {integrity: sha512-2NlIDTwUWJN0mRPQOdtQBzbUHvdGY2P1VXSyU83Q3xKxM7WHX2Ql8dKq782Q9TgQUNOLEzEYu9bzLNj1q88I5w==} engines: {node: '>=6.0'} hasBin: true + eslint-compat-utils@0.5.1: + resolution: {integrity: sha512-3z3vFexKIEnjHE3zCMRo6fn/e44U7T1khUjg+Hp0ZQMCigh28rALD0nPFBcGZuiLC5rLZa2ubQHDRln09JfU2Q==} + engines: {node: '>=12'} + peerDependencies: + eslint: '>=6.0.0' + + eslint-config-flat-gitignore@0.3.0: + resolution: {integrity: sha512-0Ndxo4qGhcewjTzw52TK06Mc00aDtHNTdeeW2JfONgDcLkRO/n/BteMRzNVpLQYxdCC/dFEilfM9fjjpGIJ9Og==} + peerDependencies: + eslint: ^9.5.0 + eslint-config-prettier@9.1.0: resolution: {integrity: sha512-NSWl5BFQWEPi1j4TjVNItzYV7dZXZ+wP6I6ZhrBGpChQhZRUaElihE9uRRkcbRnNb76UMKDF3r+WTmNcGPKsqw==} hasBin: true peerDependencies: eslint: '>=7.0.0' + eslint-flat-config-utils@0.4.0: + resolution: {integrity: sha512-kfd5kQZC+BMO0YwTol6zxjKX1zAsk8JfSAopbKjKqmENTJcew+yBejuvccAg37cvOrN0Mh+DVbeyznuNWEjt4A==} + + eslint-formatting-reporter@0.0.0: + resolution: {integrity: sha512-k9RdyTqxqN/wNYVaTk/ds5B5rA8lgoAmvceYN7bcZMBwU7TuXx5ntewJv81eF3pIL/CiJE+pJZm36llG8yhyyw==} + peerDependencies: + eslint: '>=8.40.0' + + eslint-import-resolver-node@0.3.9: + resolution: {integrity: sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g==} + + eslint-merge-processors@0.1.0: + resolution: {integrity: sha512-IvRXXtEajLeyssvW4wJcZ2etxkR9mUf4zpNwgI+m/Uac9RfXHskuJefkHUcawVzePnd6xp24enp5jfgdHzjRdQ==} + peerDependencies: + eslint: '*' + + eslint-parser-plain@0.1.0: + resolution: {integrity: sha512-oOeA6FWU0UJT/Rxc3XF5Cq0nbIZbylm7j8+plqq0CZoE6m4u32OXJrR+9iy4srGMmF6v6pmgvP1zPxSRIGh3sg==} + + eslint-plugin-antfu@2.7.0: + resolution: {integrity: sha512-gZM3jq3ouqaoHmUNszb1Zo2Ux7RckSvkGksjLWz9ipBYGSv1EwwBETN6AdiUXn+RpVHXTbEMPAPlXJazcA6+iA==} + peerDependencies: + eslint: '*' + + eslint-plugin-command@0.2.6: + resolution: {integrity: sha512-T0bHZ1oblW1xUHUVoBKZJR2osSNNGkfZuK4iqboNwuNS/M7tdp3pmURaJtTi/XDzitxaQ02lvOdFH0mUd5QLvQ==} + peerDependencies: + eslint: '*' + + eslint-plugin-es-x@7.8.0: + resolution: {integrity: sha512-7Ds8+wAAoV3T+LAKeu39Y5BzXCrGKrcISfgKEqTS4BDN8SFEDQd0S43jiQ8vIa3wUKD07qitZdfzlenSi8/0qQ==} + engines: {node: ^14.18.0 || >=16.0.0} + peerDependencies: + eslint: '>=8' + + eslint-plugin-format@0.1.2: + resolution: {integrity: sha512-ZrcO3aiumgJ6ENAv65IWkPjtW77ML/5mp0YrRK0jdvvaZJb+4kKWbaQTMr/XbJo6CtELRmCApAziEKh7L2NbdQ==} + peerDependencies: + eslint: ^8.40.0 || ^9.0.0 + + eslint-plugin-import-x@4.3.1: + resolution: {integrity: sha512-5TriWkXulDl486XnYYRgsL+VQoS/7mhN/2ci02iLCuL7gdhbiWxnsuL/NTcaKY9fpMgsMFjWZBtIGW7pb+RX0g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: ^8.57.0 || ^9.0.0 + + eslint-plugin-jsdoc@50.4.3: + resolution: {integrity: sha512-uWtwFxGRv6B8sU63HZM5dAGDhgsatb+LONwmILZJhdRALLOkCX2HFZhdL/Kw2ls8SQMAVEfK+LmnEfxInRN8HA==} + engines: {node: '>=18'} + peerDependencies: + eslint: ^7.0.0 || ^8.0.0 || ^9.0.0 + + eslint-plugin-jsonc@2.16.0: + resolution: {integrity: sha512-Af/ZL5mgfb8FFNleH6KlO4/VdmDuTqmM+SPnWcdoWywTetv7kq+vQe99UyQb9XO3b0OWLVuTH7H0d/PXYCMdSg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: '>=6.0.0' + + eslint-plugin-n@17.11.1: + resolution: {integrity: sha512-93IUD82N6tIEgjztVI/l3ElHtC2wTa9boJHrD8iN+NyDxjxz/daZUZKfkedjBZNdg6EqDk4irybUsiPwDqXAEA==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + peerDependencies: + eslint: '>=8.23.0' + + eslint-plugin-no-only-tests@3.3.0: + resolution: {integrity: sha512-brcKcxGnISN2CcVhXJ/kEQlNa0MEfGRtwKtWA16SkqXHKitaKIMrfemJKLKX1YqDU5C/5JY3PvZXd5jEW04e0Q==} + engines: {node: '>=5.0.0'} + + eslint-plugin-perfectionist@3.9.1: + resolution: {integrity: sha512-9WRzf6XaAxF4Oi5t/3TqKP5zUjERhasHmLFHin2Yw6ZAp/EP/EVA2dr3BhQrrHWCm5SzTMZf0FcjDnBkO2xFkA==} + engines: {node: ^18.0.0 || >=20.0.0} + peerDependencies: + astro-eslint-parser: ^1.0.2 + eslint: '>=8.0.0' + svelte: '>=3.0.0' + svelte-eslint-parser: ^0.41.1 + vue-eslint-parser: '>=9.0.0' + peerDependenciesMeta: + astro-eslint-parser: + optional: true + svelte: + optional: true + svelte-eslint-parser: + optional: true + vue-eslint-parser: + optional: true + eslint-plugin-react-hooks@4.6.0: resolution: {integrity: sha512-oFc7Itz9Qxh2x4gNHStv3BqJq54ExXmfC+a1NjAta66IAN87Wu0R/QArgIS9qKzX3dXKPI9H5crl9QchNMY9+g==} engines: {node: '>=10'} @@ -2067,20 +2404,55 @@ packages: peerDependencies: eslint: '>=7' + eslint-plugin-regexp@2.6.0: + resolution: {integrity: sha512-FCL851+kislsTEQEMioAlpDuK5+E5vs0hi1bF8cFlPlHcEjeRhuAzEsGikXRreE+0j4WhW2uO54MqTjXtYOi3A==} + engines: {node: ^18 || >=20} + peerDependencies: + eslint: '>=8.44.0' + + eslint-plugin-toml@0.11.1: + resolution: {integrity: sha512-Y1WuMSzfZpeMIrmlP1nUh3kT8p96mThIq4NnHrYUhg10IKQgGfBZjAWnrg9fBqguiX4iFps/x/3Hb5TxBisfdw==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: '>=6.0.0' + + eslint-plugin-unicorn@55.0.0: + resolution: {integrity: sha512-n3AKiVpY2/uDcGrS3+QsYDkjPfaOrNrsfQxU9nt5nitd9KuvVXrfAvgCO9DYPSfap+Gqjw9EOrXIsBp5tlHZjA==} + engines: {node: '>=18.18'} + peerDependencies: + eslint: '>=8.56.0' + + eslint-plugin-unused-imports@4.1.4: + resolution: {integrity: sha512-YptD6IzQjDardkl0POxnnRBhU1OEePMV0nd6siHaRBbd+lyh6NAhFEobiznKU7kTsSsDeSD62Pe7kAM1b7dAZQ==} + peerDependencies: + '@typescript-eslint/eslint-plugin': ^8.0.0-0 || ^7.0.0 || ^6.0.0 || ^5.0.0 + eslint: ^9.0.0 || ^8.0.0 + peerDependenciesMeta: + '@typescript-eslint/eslint-plugin': + optional: true + eslint-plugin-vue@9.28.0: resolution: {integrity: sha512-ShrihdjIhOTxs+MfWun6oJWuk+g/LAhN+CiuOl/jjkG3l0F2AuK5NMTaWqyvBgkFtpYmyks6P4603mLmhNJW8g==} engines: {node: ^14.17.0 || >=16.0.0} peerDependencies: eslint: ^6.2.0 || ^7.0.0 || ^8.0.0 || ^9.0.0 + eslint-plugin-yml@1.14.0: + resolution: {integrity: sha512-ESUpgYPOcAYQO9czugcX5OqRvn/ydDVwGCPXY4YjPqc09rHaUVUA6IE6HLQys4rXk/S+qx3EwTd1wHCwam/OWQ==} + engines: {node: ^14.17.0 || >=16.0.0} + peerDependencies: + eslint: '>=6.0.0' + + eslint-processor-vue-blocks@0.1.2: + resolution: {integrity: sha512-PfpJ4uKHnqeL/fXUnzYkOax3aIenlwewXRX8jFinA1a2yCFnLgMuiH3xvCgvHHUlV2xJWQHbCTdiJWGwb3NqpQ==} + peerDependencies: + '@vue/compiler-sfc': ^3.3.0 + eslint: ^8.50.0 || ^9.0.0 + eslint-scope@7.2.2: resolution: {integrity: sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} - eslint-scope@8.0.2: - resolution: {integrity: sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - eslint-visitor-keys@3.4.3: resolution: {integrity: sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2089,21 +2461,24 @@ packages: resolution: {integrity: sha512-OtIRv/2GyiF6o/d8K7MYKKbXrOUBIK6SfkIRM4Z0dY3w+LiQ0vy3F57m0Z71bjbyeiWFiHJ8brqnmE6H6/jEuw==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint-visitor-keys@4.1.0: + resolution: {integrity: sha512-Q7lok0mqMUSf5a/AdAZkA5a/gHcO6snwQClVNNvFKCAVlxXucdU8pKydU5ZVZjBx5xr37vGbFFWtLQYreLzrZg==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + eslint@8.57.0: resolution: {integrity: sha512-dZ6+mexnaTIbSBZWgou51U6OmzIhYM2VcNdtiTtI7qPNZm35Akpr0f6vtw3w1Kmn5PYo+tZVfh13WrhpS6oLqQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} deprecated: This version is no longer supported. Please see https://eslint.org/version-support for other options. hasBin: true - eslint@9.8.0: - resolution: {integrity: sha512-K8qnZ/QJzT2dLKdZJVX6W4XOwBzutMYmt0lqUS+JdXgd+HTYFlonFgkJ8s44d/zMPPCnOOk0kMWCApCPhiOy9A==} - engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} - hasBin: true - espree@10.1.0: resolution: {integrity: sha512-M1M6CpiE6ffoigIOWYO9UDP8TMUw9kqb21tf+08IgDYjCsOvCuDt4jQcZmoYxx+w7zlKw9/N0KXfto+I8/FrXA==} engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + espree@10.2.0: + resolution: {integrity: sha512-upbkBJbckcCNBDBDXEbuhjbP68n+scUd3k/U2EkyM9nw+I/jPiL4cLF/Al06CF96wRltFda16sxDFrxsI1v0/g==} + engines: {node: ^18.18.0 || ^20.9.0 || >=21.1.0} + espree@9.6.1: resolution: {integrity: sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ==} engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} @@ -2113,10 +2488,6 @@ packages: engines: {node: '>=4'} hasBin: true - esquery@1.5.0: - resolution: {integrity: sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg==} - engines: {node: '>=0.10'} - esquery@1.6.0: resolution: {integrity: sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg==} engines: {node: '>=0.10'} @@ -2157,6 +2528,9 @@ packages: fast-deep-equal@3.1.3: resolution: {integrity: sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==} + fast-diff@1.3.0: + resolution: {integrity: sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw==} + fast-glob@3.3.2: resolution: {integrity: sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==} engines: {node: '>=8.6.0'} @@ -2192,14 +2566,18 @@ packages: resolution: {integrity: sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg==} engines: {node: ^10.12.0 || >=12.0.0} - file-entry-cache@8.0.0: - resolution: {integrity: sha512-XXTUwCvisa5oacNGRP9SfNtYBNAMi+RPwBFmblZEF7N7swHYQS6/Zfk7SRwx4D5j3CH211YNRco1DEMNVfZCnQ==} - engines: {node: '>=16.0.0'} - fill-range@7.1.1: resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==} engines: {node: '>=8'} + find-up-simple@1.0.0: + resolution: {integrity: sha512-q7Us7kcjj2VMePAa02hDAF6d+MzsdsAWEwYyOpwUtlerRBkOEPBCRZrAV4XfcSN8fHAgaD0hP7miwoay6DCprw==} + engines: {node: '>=18'} + + find-up@4.1.0: + resolution: {integrity: sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==} + engines: {node: '>=8'} + find-up@5.0.0: resolution: {integrity: sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng==} engines: {node: '>=10'} @@ -2212,10 +2590,6 @@ packages: resolution: {integrity: sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw==} engines: {node: ^10.12.0 || >=12.0.0} - flat-cache@4.0.1: - resolution: {integrity: sha512-f7ccFPK3SXFHpx15UIGyRJ/FJQctuKZ0zVuN3frBo4HnK3cay9VEW0R6yPYFHC0AgqhukPzKjq22t5DmAyqGyw==} - engines: {node: '>=16'} - flatted@3.3.1: resolution: {integrity: sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==} @@ -2269,6 +2643,9 @@ packages: resolution: {integrity: sha512-VaUJspBffn/LMCJVoMvSAdmscJyS1auj5Zulnn5UoYcY531UWmdwhRWkcGKnGU93m5HSXP9LP2usOryrBtQowA==} engines: {node: '>=16'} + get-tsconfig@4.8.1: + resolution: {integrity: sha512-k9PN+cFBmaLWtVz29SkUoqU5O0slLuHJXt/2P+tMVFT+phsSGXGkp9t3rQIqdz0e+06EHNGs3oM6ZX1s2zHxRg==} + get-uri@6.0.3: resolution: {integrity: sha512-BzUrJBS9EcUb4cFol8r4W3v1cPsSyajLSthNkz5BxbpDcHN5tIrM10E2eNvfnvBn3DaT3DUgx0OpsBKkaOpanw==} engines: {node: '>= 14'} @@ -2308,8 +2685,8 @@ packages: resolution: {integrity: sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ==} engines: {node: '>=8'} - globals@14.0.0: - resolution: {integrity: sha512-oahGvuMGQlPw/ivIYBjVSrWAfWLBeku5tpPE2fOPLi+WHffIWbuh2tCjhyQhTBPMf5E9jDEH4FOmTYgYwbKwtQ==} + globals@15.11.0: + resolution: {integrity: sha512-yeyNSjdbyVaWurlwCpcA6XNBrHTMIeDdj0/hnvX/OLJ9ekOXYbLsLinH/MucQyGvNnXhidTdNhTtJaffL2sMfw==} engines: {node: '>=18'} globby@11.1.0: @@ -2349,6 +2726,9 @@ packages: resolution: {integrity: sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==} hasBin: true + hosted-git-info@2.8.9: + resolution: {integrity: sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw==} + html-escaper@2.0.2: resolution: {integrity: sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg==} @@ -2405,6 +2785,10 @@ packages: resolution: {integrity: sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==} engines: {node: '>=0.8.19'} + indent-string@4.0.0: + resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==} + engines: {node: '>=8'} + inflight@1.0.6: resolution: {integrity: sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==} deprecated: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful. @@ -2434,6 +2818,10 @@ packages: is-arrayish@0.2.1: resolution: {integrity: sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg==} + is-builtin-module@3.2.1: + resolution: {integrity: sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A==} + engines: {node: '>=6'} + is-ci@3.0.1: resolution: {integrity: sha512-ZYvCgrefwqoQ6yTyYUbQu64HsITZ3NfKX1lzaEYdkTDcfKzzCI/wthRRYKkdjHKFVgNiXKAKm65Zo1pk2as/QQ==} hasBin: true @@ -2586,6 +2974,19 @@ packages: jsbn@1.1.0: resolution: {integrity: sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==} + jsdoc-type-pratt-parser@4.1.0: + resolution: {integrity: sha512-Hicd6JK5Njt2QB6XYFS7ok9e37O8AYk3jTcppG4YVQnYjOemymvTcmc7OWsmq/Qqj5TdRFO5/x/tIPmBeRtGHg==} + engines: {node: '>=12.0.0'} + + jsesc@0.5.0: + resolution: {integrity: sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA==} + hasBin: true + + jsesc@3.0.2: + resolution: {integrity: sha512-xKqzzWXDttJuOcawBt4KnKHHIf5oQ/Cxax+0PWFG+DFDgHNAdi+TXECADI+RYiFUMmx8792xsMbbgXj4CwnP4g==} + engines: {node: '>=6'} + hasBin: true + json-buffer@3.0.1: resolution: {integrity: sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ==} @@ -2601,6 +3002,10 @@ packages: json-stable-stringify-without-jsonify@1.0.1: resolution: {integrity: sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw==} + jsonc-eslint-parser@2.4.0: + resolution: {integrity: sha512-WYDyuc/uFcGp6YtM2H0uKmUwieOuzeE/5YocFJLnLfclZ4inf3mRn8ZVy1s7Hxji7Jxm6Ss8gqpexD/GlKoGgg==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + jsonfile@4.0.0: resolution: {integrity: sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==} @@ -2649,6 +3054,10 @@ packages: resolution: {integrity: sha512-ok6z3qlYyCDS4ZEU27HaU6x/xZa9Whf8jD4ptH5UZTQYZVYeb9bnZ3ojVhiJNLiXK1Hfc0GNbLXcmZ5plLDDBg==} engines: {node: '>=14'} + locate-path@5.0.0: + resolution: {integrity: sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==} + engines: {node: '>=8'} + locate-path@6.0.0: resolution: {integrity: sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw==} engines: {node: '>=10'} @@ -2711,6 +3120,9 @@ packages: resolution: {integrity: sha512-9ie8ItPR6tjY5uYJh8K/Zrv/RMZ5VOlOWvtZdEHYSTFKZfIBPQa9tOAEeAWhd+AnIneLJ22w5fjOYtoutpWq5w==} engines: {node: '>=18'} + longest-streak@3.1.0: + resolution: {integrity: sha512-9Ri+o0JYgehTaVBBDoMqIl8GXtbWg711O3srftcHhZ0dqnETqLaoIK0x17fUw9rFSlK/0NlsKe0Ahhyl5pXE2g==} + loose-envify@1.4.0: resolution: {integrity: sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==} hasBin: true @@ -2747,6 +3159,42 @@ packages: resolution: {integrity: sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw==} engines: {node: '>=10'} + markdown-table@3.0.3: + resolution: {integrity: sha512-Z1NL3Tb1M9wH4XESsCDEksWoKTdlUafKc4pt0GRwjUyXaCFZ+dc3g2erqB6zm3szA2IUSi7VnPI+o/9jnxh9hw==} + + mdast-util-find-and-replace@3.0.1: + resolution: {integrity: sha512-SG21kZHGC3XRTSUhtofZkBzZTJNM5ecCi0SK2IMKmSXR8vO3peL+kb1O0z7Zl83jKtutG4k5Wv/W7V3/YHvzPA==} + + mdast-util-from-markdown@2.0.1: + resolution: {integrity: sha512-aJEUyzZ6TzlsX2s5B4Of7lN7EQtAxvtradMMglCQDyaTFgse6CmtmdJ15ElnVRlCg1vpNyVtbem0PWzlNieZsA==} + + mdast-util-gfm-autolink-literal@2.0.1: + resolution: {integrity: sha512-5HVP2MKaP6L+G6YaxPNjuL0BPrq9orG3TsrZ9YXbA3vDw/ACI4MEsnoDpn6ZNm7GnZgtAcONJyPhOP8tNJQavQ==} + + mdast-util-gfm-footnote@2.0.0: + resolution: {integrity: sha512-5jOT2boTSVkMnQ7LTrd6n/18kqwjmuYqo7JUPe+tRCY6O7dAuTFMtTPauYYrMPpox9hlN0uOx/FL8XvEfG9/mQ==} + + mdast-util-gfm-strikethrough@2.0.0: + resolution: {integrity: sha512-mKKb915TF+OC5ptj5bJ7WFRPdYtuHv0yTRxK2tJvi+BDqbkiG7h7u/9SI89nRAYcmap2xHQL9D+QG/6wSrTtXg==} + + mdast-util-gfm-table@2.0.0: + resolution: {integrity: sha512-78UEvebzz/rJIxLvE7ZtDd/vIQ0RHv+3Mh5DR96p7cS7HsBhYIICDBCu8csTNWNO6tBWfqXPWekRuj2FNOGOZg==} + + mdast-util-gfm-task-list-item@2.0.0: + resolution: {integrity: sha512-IrtvNvjxC1o06taBAVJznEnkiHxLFTzgonUdy8hzFVeDun0uTjxxrRGVaNFqkU1wJR3RBPEfsxmU6jDWPofrTQ==} + + mdast-util-gfm@3.0.0: + resolution: {integrity: sha512-dgQEX5Amaq+DuUqf26jJqSK9qgixgd6rYDHAv4aTBuA92cTknZlKpPfa86Z/s8Dj8xsAQpFfBmPUHWJBWqS4Bw==} + + mdast-util-phrasing@4.1.0: + resolution: {integrity: sha512-TqICwyvJJpBwvGAMZjj4J2n0X8QWp21b9l0o7eXyVJ25YNWYbJDVIyD1bZXE6WtV6RmKJVYmQAKWa0zWOABz2w==} + + mdast-util-to-markdown@2.1.0: + resolution: {integrity: sha512-SR2VnIEdVNCJbP6y7kVTJgPLifdr8WEU440fQec7qHoHOUz/oJ2jmNRqdDQ3rbiStOXb2mCDGTuwsK5OPUgYlQ==} + + mdast-util-to-string@4.0.0: + resolution: {integrity: sha512-0H44vDimn51F0YwvxSJSm0eCDOJTRlmN0R1yBh4HLj9wiV1Dn0QoXGbvFAWj2hSItVTlCmBF1hqKlIyUBVFLPg==} + meow@12.1.1: resolution: {integrity: sha512-BhXM0Au22RwUneMPwSCnyhTOizdWoIEPU9sp0Aqa1PnDMR5Wv2FGXYDjuzJEIX+Eo2Rb8xuYe5jrnm5QowQFkw==} engines: {node: '>=16.10'} @@ -2758,16 +3206,100 @@ packages: resolution: {integrity: sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==} engines: {node: '>= 8'} - micromatch@4.0.8: - resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} - engines: {node: '>=8.6'} + micromark-core-commonmark@2.0.1: + resolution: {integrity: sha512-CUQyKr1e///ZODyD1U3xit6zXwy1a8q2a1S1HKtIlmgvurrEpaw/Y9y6KSIbF8P59cn/NjzHyO+Q2fAyYLQrAA==} - mime-db@1.52.0: - resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} - engines: {node: '>= 0.6'} + micromark-extension-gfm-autolink-literal@2.1.0: + resolution: {integrity: sha512-oOg7knzhicgQ3t4QCjCWgTmfNhvQbDDnJeVu9v81r7NltNCVmhPy1fJRX27pISafdjL+SVc4d3l48Gb6pbRypw==} - mime-types@2.1.35: - resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} + micromark-extension-gfm-footnote@2.1.0: + resolution: {integrity: sha512-/yPhxI1ntnDNsiHtzLKYnE3vf9JZ6cAisqVDauhp4CEHxlb4uoOTxOCJ+9s51bIB8U1N1FJ1RXOKTIlD5B/gqw==} + + micromark-extension-gfm-strikethrough@2.1.0: + resolution: {integrity: sha512-ADVjpOOkjz1hhkZLlBiYA9cR2Anf8F4HqZUO6e5eDcPQd0Txw5fxLzzxnEkSkfnD0wziSGiv7sYhk/ktvbf1uw==} + + micromark-extension-gfm-table@2.1.0: + resolution: {integrity: sha512-Ub2ncQv+fwD70/l4ou27b4YzfNaCJOvyX4HxXU15m7mpYY+rjuWzsLIPZHJL253Z643RpbcP1oeIJlQ/SKW67g==} + + micromark-extension-gfm-tagfilter@2.0.0: + resolution: {integrity: sha512-xHlTOmuCSotIA8TW1mDIM6X2O1SiX5P9IuDtqGonFhEK0qgRI4yeC6vMxEV2dgyr2TiD+2PQ10o+cOhdVAcwfg==} + + micromark-extension-gfm-task-list-item@2.1.0: + resolution: {integrity: sha512-qIBZhqxqI6fjLDYFTBIa4eivDMnP+OZqsNwmQ3xNLE4Cxwc+zfQEfbs6tzAo2Hjq+bh6q5F+Z8/cksrLFYWQQw==} + + micromark-extension-gfm@3.0.0: + resolution: {integrity: sha512-vsKArQsicm7t0z2GugkCKtZehqUm31oeGBV/KVSorWSy8ZlNAv7ytjFhvaryUiCUJYqs+NoE6AFhpQvBTM6Q4w==} + + micromark-factory-destination@2.0.0: + resolution: {integrity: sha512-j9DGrQLm/Uhl2tCzcbLhy5kXsgkHUrjJHg4fFAeoMRwJmJerT9aw4FEhIbZStWN8A3qMwOp1uzHr4UL8AInxtA==} + + micromark-factory-label@2.0.0: + resolution: {integrity: sha512-RR3i96ohZGde//4WSe/dJsxOX6vxIg9TimLAS3i4EhBAFx8Sm5SmqVfR8E87DPSR31nEAjZfbt91OMZWcNgdZw==} + + micromark-factory-space@2.0.0: + resolution: {integrity: sha512-TKr+LIDX2pkBJXFLzpyPyljzYK3MtmllMUMODTQJIUfDGncESaqB90db9IAUcz4AZAJFdd8U9zOp9ty1458rxg==} + + micromark-factory-title@2.0.0: + resolution: {integrity: sha512-jY8CSxmpWLOxS+t8W+FG3Xigc0RDQA9bKMY/EwILvsesiRniiVMejYTE4wumNc2f4UbAa4WsHqe3J1QS1sli+A==} + + micromark-factory-whitespace@2.0.0: + resolution: {integrity: sha512-28kbwaBjc5yAI1XadbdPYHX/eDnqaUFVikLwrO7FDnKG7lpgxnvk/XGRhX/PN0mOZ+dBSZ+LgunHS+6tYQAzhA==} + + micromark-util-character@2.1.0: + resolution: {integrity: sha512-KvOVV+X1yLBfs9dCBSopq/+G1PcgT3lAK07mC4BzXi5E7ahzMAF8oIupDDJ6mievI6F+lAATkbQQlQixJfT3aQ==} + + micromark-util-chunked@2.0.0: + resolution: {integrity: sha512-anK8SWmNphkXdaKgz5hJvGa7l00qmcaUQoMYsBwDlSKFKjc6gjGXPDw3FNL3Nbwq5L8gE+RCbGqTw49FK5Qyvg==} + + micromark-util-classify-character@2.0.0: + resolution: {integrity: sha512-S0ze2R9GH+fu41FA7pbSqNWObo/kzwf8rN/+IGlW/4tC6oACOs8B++bh+i9bVyNnwCcuksbFwsBme5OCKXCwIw==} + + micromark-util-combine-extensions@2.0.0: + resolution: {integrity: sha512-vZZio48k7ON0fVS3CUgFatWHoKbbLTK/rT7pzpJ4Bjp5JjkZeasRfrS9wsBdDJK2cJLHMckXZdzPSSr1B8a4oQ==} + + micromark-util-decode-numeric-character-reference@2.0.1: + resolution: {integrity: sha512-bmkNc7z8Wn6kgjZmVHOX3SowGmVdhYS7yBpMnuMnPzDq/6xwVA604DuOXMZTO1lvq01g+Adfa0pE2UKGlxL1XQ==} + + micromark-util-decode-string@2.0.0: + resolution: {integrity: sha512-r4Sc6leeUTn3P6gk20aFMj2ntPwn6qpDZqWvYmAG6NgvFTIlj4WtrAudLi65qYoaGdXYViXYw2pkmn7QnIFasA==} + + micromark-util-encode@2.0.0: + resolution: {integrity: sha512-pS+ROfCXAGLWCOc8egcBvT0kf27GoWMqtdarNfDcjb6YLuV5cM3ioG45Ys2qOVqeqSbjaKg72vU+Wby3eddPsA==} + + micromark-util-html-tag-name@2.0.0: + resolution: {integrity: sha512-xNn4Pqkj2puRhKdKTm8t1YHC/BAjx6CEwRFXntTaRf/x16aqka6ouVoutm+QdkISTlT7e2zU7U4ZdlDLJd2Mcw==} + + micromark-util-normalize-identifier@2.0.0: + resolution: {integrity: sha512-2xhYT0sfo85FMrUPtHcPo2rrp1lwbDEEzpx7jiH2xXJLqBuy4H0GgXk5ToU8IEwoROtXuL8ND0ttVa4rNqYK3w==} + + micromark-util-resolve-all@2.0.0: + resolution: {integrity: sha512-6KU6qO7DZ7GJkaCgwBNtplXCvGkJToU86ybBAUdavvgsCiG8lSSvYxr9MhwmQ+udpzywHsl4RpGJsYWG1pDOcA==} + + micromark-util-sanitize-uri@2.0.0: + resolution: {integrity: sha512-WhYv5UEcZrbAtlsnPuChHUAsu/iBPOVaEVsntLBIdpibO0ddy8OzavZz3iL2xVvBZOpolujSliP65Kq0/7KIYw==} + + micromark-util-subtokenize@2.0.1: + resolution: {integrity: sha512-jZNtiFl/1aY73yS3UGQkutD0UbhTt68qnRpw2Pifmz5wV9h8gOVsN70v+Lq/f1rKaU/W8pxRe8y8Q9FX1AOe1Q==} + + micromark-util-symbol@2.0.0: + resolution: {integrity: sha512-8JZt9ElZ5kyTnO94muPxIGS8oyElRJaiJO8EzV6ZSyGQ1Is8xwl4Q45qU5UOg+bGH4AikWziz0iN4sFLWs8PGw==} + + micromark-util-types@2.0.0: + resolution: {integrity: sha512-oNh6S2WMHWRZrmutsRmDDfkzKtxF+bc2VxLC9dvtrDIRFln627VsFP6fLMgTryGDljgLPjkrzQSDcPrjPyDJ5w==} + + micromark@4.0.0: + resolution: {integrity: sha512-o/sd0nMof8kYff+TqcDx3VSrgBTcZpSvYcAHIfHhv5VAuNmisCxjhx6YmxS8PFEpb9z5WKWKPdzf0jM23ro3RQ==} + + micromatch@4.0.8: + resolution: {integrity: sha512-PXwfBhYu0hBCPw8Dn0E+WDYb7af3dSLVWKi3HGv84IdF4TyFoC0ysxFd0Goxw7nSv4T/PzEJQxsYsEiFCKo2BA==} + engines: {node: '>=8.6'} + + mime-db@1.52.0: + resolution: {integrity: sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==} + engines: {node: '>= 0.6'} + + mime-types@2.1.35: + resolution: {integrity: sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==} engines: {node: '>= 0.6'} mimic-fn@2.1.0: @@ -2790,6 +3322,10 @@ packages: resolution: {integrity: sha512-e5ISH9xMYU0DzrT+jl8q2ze9D6eWBto+I8CNpe+VI+K2J/F/k3PdkdTdz4wvGVH4NTpo+NRYTVIuMQEMMcsLqg==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + min-indent@1.0.1: + resolution: {integrity: sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg==} + engines: {node: '>=4'} + minimatch@3.0.8: resolution: {integrity: sha512-6FsRAQsxQ61mw+qP1ZzbL9Bc78x2p5OqNgNpnoAFLTrX8n5Kxph0CsnhmKKNXTWjXqU5L0pGPR7hYk+XWZr60Q==} @@ -2839,6 +3375,9 @@ packages: engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} hasBin: true + natural-compare-lite@1.4.0: + resolution: {integrity: sha512-Tj+HTDSJJKaZnfiuw+iaF9skdPpTo2GtEly5JHnWV/hfv2Qj/9RKsGISQtLh2ox3l5EAGw487hnBee0sIJ6v2g==} + natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} @@ -2858,6 +3397,12 @@ packages: resolution: {integrity: sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + node-releases@2.0.18: + resolution: {integrity: sha512-d9VeXT4SJ7ZeOqGX6R5EM022wpL+eWPooLI+5UpWn2jCT1aosUQEhQP214x33Wkwx3JQMvIm+tIoVOdodFS40g==} + + normalize-package-data@2.5.0: + resolution: {integrity: sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==} + normalize-url@8.0.1: resolution: {integrity: sha512-IO9QvjUMWxPQQhs60oOu10CRkWCiZzSUkzbXGGV9pviYl1fXYcvkzQ5jV9z8Y6un8ARoVRl4EtC6v6jNqbaJ/w==} engines: {node: '>=14.16'} @@ -2892,10 +3437,6 @@ packages: resolution: {integrity: sha512-mnkeQ1qP5Ue2wd+aivTD3NHd/lZ96Lu0jgf0pwktLPtx6cTZiH7tyeGRRHs0zX0rbrahXPnXlUnbeXyaBBuIaw==} engines: {node: '>=18'} - optionator@0.9.3: - resolution: {integrity: sha512-JjCoypp+jKn1ttEFExxhetCKeJt9zhAgAve5FXHixTvFDW/5aEktX9bufBKLRRMdU7bNtpLfcGu94B3cdEJgjg==} - engines: {node: '>= 0.8.0'} - optionator@0.9.4: resolution: {integrity: sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g==} engines: {node: '>= 0.8.0'} @@ -2920,6 +3461,10 @@ packages: resolution: {integrity: sha512-mlVgR3PGuzlo0MmTdk4cXqXWlwQDLnONTAg6sm62XkMJEiRxN3GL3SffkYvqwonbkJBcrI7Uvv5Zh9yjvn2iUw==} engines: {node: '>=12.20'} + p-limit@2.3.0: + resolution: {integrity: sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==} + engines: {node: '>=6'} + p-limit@3.1.0: resolution: {integrity: sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ==} engines: {node: '>=10'} @@ -2928,6 +3473,10 @@ packages: resolution: {integrity: sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + p-locate@4.1.0: + resolution: {integrity: sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==} + engines: {node: '>=8'} + p-locate@5.0.0: resolution: {integrity: sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw==} engines: {node: '>=10'} @@ -2936,6 +3485,10 @@ packages: resolution: {integrity: sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw==} engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} + p-try@2.2.0: + resolution: {integrity: sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==} + engines: {node: '>=6'} + pac-proxy-agent@7.0.2: resolution: {integrity: sha512-BFi3vZnO9X5Qt6NRz7ZOaPja3ic0PhlsmCRYLOpN11+mWBCR6XJDqW5RF3j8jm4WGGQZtBA+bTfxYzeKW73eHg==} engines: {node: '>= 14'} @@ -2951,10 +3504,21 @@ packages: resolution: {integrity: sha512-ua1L4OgXSBdsu1FPb7F3tYH0F48a6kxvod4pLUlGY9COeJAJQNX/sNH2IiEmsxw7lqYiAwrdHMjz1FctOsyDQg==} engines: {node: '>=18'} + package-manager-detector@0.2.2: + resolution: {integrity: sha512-VgXbyrSNsml4eHWIvxxG/nTL4wgybMTXCV2Un/+yEc3aDKKU6nQBZjbeP3Pl3qm9Qg92X/1ng4ffvCeD/zwHgg==} + parent-module@1.0.1: resolution: {integrity: sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g==} engines: {node: '>=6'} + parse-gitignore@2.0.0: + resolution: {integrity: sha512-RmVuCHWsfu0QPNW+mraxh/xjQVw/lhUCUru8Zni3Ctq3AoMhpDTq0OVdKS6iesd6Kqb7viCV3isAL43dciOSog==} + engines: {node: '>=14'} + + parse-imports@2.2.1: + resolution: {integrity: sha512-OL/zLggRp8mFhKL0rNORUTR4yBYujK/uU+xZL+/0Rgm2QE4nLO9v8PzEweSJEbMGKmDRjJE4R3IMJlL2di4JeQ==} + engines: {node: '>= 18'} + parse-json@5.2.0: resolution: {integrity: sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==} engines: {node: '>=8'} @@ -3035,6 +3599,10 @@ packages: pkg-types@1.1.3: resolution: {integrity: sha512-+JrgthZG6m3ckicaOB74TwQ+tBWsFl3qVQg7mN8ulwSOElJ7gBhKzj2VkCPnZ4NlF6kEquYU+RIYNVAvzd54UA==} + pluralize@8.0.0: + resolution: {integrity: sha512-Nc3IT5yHzflTfbjgqWcCPpo7DaKy4FnpB0l/zCAW0Tc7jxAiuqSxHasntB3D7887LSrA93kDJ9IXovxJYxyLCA==} + engines: {node: '>=4'} + postcss-selector-parser@6.1.2: resolution: {integrity: sha512-Q8qQfPiZ+THO/3ZrOrO0cJJKfpYCagtMUkXbnEfmgUjwXg6z/WBeOyS9APBBPCTSiDV+s4SwQGu8yFsiMRIudg==} engines: {node: '>=4'} @@ -3059,6 +3627,10 @@ packages: resolution: {integrity: sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g==} engines: {node: '>= 0.8.0'} + prettier-linter-helpers@1.0.0: + resolution: {integrity: sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w==} + engines: {node: '>=6.0.0'} + prettier@3.3.3: resolution: {integrity: sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==} engines: {node: '>=14'} @@ -3109,6 +3681,14 @@ packages: resolution: {integrity: sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==} engines: {node: '>=0.10.0'} + read-pkg-up@7.0.1: + resolution: {integrity: sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg==} + engines: {node: '>=8'} + + read-pkg@5.2.0: + resolution: {integrity: sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==} + engines: {node: '>=8'} + readable-stream@3.6.2: resolution: {integrity: sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==} engines: {node: '>= 6'} @@ -3117,6 +3697,18 @@ packages: resolution: {integrity: sha512-HFM8rkZ+i3zrV+4LQjwQ0W+ez98pApMGM3HUrN04j3CqzPOzl9nmP15Y8YXNm8QHGv/eacOVEjqhmWpkRV0NAw==} engines: {node: '>= 0.10'} + refa@0.12.1: + resolution: {integrity: sha512-J8rn6v4DBb2nnFqkqwy6/NnTYMcgLA+sLr0iIO41qpv0n+ngb7ksag2tMRl0inb1bbO/esUwzW1vbJi7K0sI0g==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + regexp-ast-analysis@0.7.1: + resolution: {integrity: sha512-sZuz1dYW/ZsfG17WSAG7eS85r5a0dDsvg+7BiiYR5o6lKCAtUrEwdmRmaGF6rwVj3LcmAeYkOWKEPlbPzN3Y3A==} + engines: {node: ^12.0.0 || ^14.0.0 || >=16.0.0} + + regexp-tree@0.1.27: + resolution: {integrity: sha512-iETxpjK6YoRWJG5o6hXLwvjYAoW+FEZn9os0PD/b6AP6xQwsa/Y7lCVgIixBbUPMfhu+i2LtdeAqVTgGlQarfA==} + hasBin: true + registry-auth-token@5.0.2: resolution: {integrity: sha512-o/3ikDxtXaA59BmZuZrJZDJv8NMDGSj+6j6XaeBmHw8eY1i1qd9+6H+LjVvQXx3HN6aRCGa1cUdJ9RaJZUugnQ==} engines: {node: '>=14'} @@ -3125,6 +3717,10 @@ packages: resolution: {integrity: sha512-+crtS5QjFRqFCoQmvGduwYWEBng99ZvmFvF+cUJkGYF1L1BfU8C6Zp9T7f5vPAwyLkUExpvK+ANVZmGU49qi4Q==} engines: {node: '>=12'} + regjsparser@0.10.0: + resolution: {integrity: sha512-qx+xQGZVsy55CH0a1hiVwHmqjLryfh7wQyF5HO07XJ9f7dQMY/gPQHhlyDkIzJKC+x2fUCpCcUODUUUFrm7SHA==} + hasBin: true + release-it@17.6.0: resolution: {integrity: sha512-EE34dtRPL7BHpYQC7E+zAU8kjkyxFHxLk5Iqnmn/5nGcjgOQu34Au29M2V9YvxiP3tZbIlEn4gItEzu7vAPRbw==} engines: {node: ^18.18.0 || ^20.9.0 || ^22.0.0} @@ -3149,6 +3745,9 @@ packages: resolution: {integrity: sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==} engines: {node: '>=8'} + resolve-pkg-maps@1.0.0: + resolution: {integrity: sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==} + resolve@1.22.8: resolution: {integrity: sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw==} hasBin: true @@ -3223,10 +3822,18 @@ packages: scheduler@0.23.0: resolution: {integrity: sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==} + scslre@0.3.0: + resolution: {integrity: sha512-3A6sD0WYP7+QrjbfNA2FN3FsOaGGFoekCVgTyypy53gPxhbkCIjtO6YWgdrfM+n/8sI8JeXZOIxsHjMTNxQ4nQ==} + engines: {node: ^14.0.0 || >=16.0.0} + semver-diff@4.0.0: resolution: {integrity: sha512-0Ju4+6A8iOnpL/Thra7dZsSlOHYAHIeMxfhWQRI1/VLcT3WDBZKKtQt/QkBOsiIN9ZpuvHE6cGZ0x4glCMmfiA==} engines: {node: '>=12'} + semver@5.7.2: + resolution: {integrity: sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g==} + hasBin: true + semver@7.5.4: resolution: {integrity: sha512-1bCSESV6Pv+i21Hvpxp3Dx+pSD8lIPt8uVjRrxAUt/nbswYc+tK6Y2btiULjd4+fnq15PX+nqQDC7Oft7WkwcA==} engines: {node: '>=10'} @@ -3274,6 +3881,9 @@ packages: resolution: {integrity: sha512-94Bdh3cC2PKrbgSOUqTiGPWVZeSiXfKOVZNJniWoqrWrRkB1CJzBU3NEbiTsPcYy1lDsANA/THzS+9WBiy5nfQ==} engines: {node: '>= 10'} + sisteransi@1.0.5: + resolution: {integrity: sha512-bLGGlR1QxBcynn2d5YmDX4MGjlZvy2MRBDRNHLJ8VI6l6+9FUiyTFNJ0IveOSP0bcXgVDPRcfGqA0pjaqUpfVg==} + slash@3.0.0: resolution: {integrity: sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==} engines: {node: '>=8'} @@ -3282,6 +3892,9 @@ packages: resolution: {integrity: sha512-ZA6oR3T/pEyuqwMgAKT0/hAv8oAXckzbkmR0UkUosQ+Mc4RxGoJkRmwHgHufaenlyAgE1Mxgpdcrf75y6XcnDg==} engines: {node: '>=14.16'} + slashes@3.0.12: + resolution: {integrity: sha512-Q9VME8WyGkc7pJf6QEkj3wE+2CnvZMI+XJhwdTPR8Z/kWQRXi7boAWLDibRPyHRTUTPx5FaU7MsyrjI3yLB4HA==} + slice-ansi@5.0.0: resolution: {integrity: sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ==} engines: {node: '>=12'} @@ -3318,6 +3931,21 @@ packages: resolution: {integrity: sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==} engines: {node: '>=0.10.0'} + spdx-correct@3.2.0: + resolution: {integrity: sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA==} + + spdx-exceptions@2.5.0: + resolution: {integrity: sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w==} + + spdx-expression-parse@3.0.1: + resolution: {integrity: sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==} + + spdx-expression-parse@4.0.0: + resolution: {integrity: sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ==} + + spdx-license-ids@3.0.20: + resolution: {integrity: sha512-jg25NiDV/1fLtSgEgyvVyDunvaNHbuwF9lfNV17gSmPFAlYzdfNBlLtLzXTevwkPj7DhGbmN9VnmJIgLnhvaBw==} + split2@4.2.0: resolution: {integrity: sha512-UcjcJOWknrNkF6PLX83qcHM6KHgVKNkV62Y8a5uYDVv9ydGQVwAHMKqHdJje1VTWpljG0WYpCDhrCdAOYH4TWg==} engines: {node: '>= 10.x'} @@ -3328,6 +3956,9 @@ packages: sprintf-js@1.1.3: resolution: {integrity: sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==} + stable-hash@0.0.4: + resolution: {integrity: sha512-LjdcbuBeLcdETCrPn9i8AYAZ1eCtu4ECAWtP7UleOiZ9LzVxRzzUZEoZ8zB24nhkQnDWyET0I+3sWokSDS3E7g==} + stackback@0.0.2: resolution: {integrity: sha512-1XMJE5fQo1jGH6Y/7ebnwPOBEkIEnT4QF32d5R1+VXdXveM0IBMJt8zfaxX1P3QhVwrYe+576+jkANtSS2mBbw==} @@ -3379,6 +4010,10 @@ packages: resolution: {integrity: sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw==} engines: {node: '>=12'} + strip-indent@3.0.0: + resolution: {integrity: sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ==} + engines: {node: '>=8'} + strip-json-comments@2.0.1: resolution: {integrity: sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==} engines: {node: '>=0.10.0'} @@ -3403,6 +4038,18 @@ packages: resolution: {integrity: sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==} engines: {node: '>= 0.4'} + synckit@0.6.2: + resolution: {integrity: sha512-Vhf+bUa//YSTYKseDiiEuQmhGCoIF3CVBhunm3r/DQnYiGT4JssmnKQc44BIyOZRK2pKjXXAgbhfmbeoC9CJpA==} + engines: {node: '>=12.20'} + + synckit@0.9.2: + resolution: {integrity: sha512-vrozgXDQwYO72vHjUb/HnFbQx1exDjoKzqx23aXEg2a9VIg2TSFZ8FmeZpTjUCFMYw7mpX4BE2SFu8wI7asYsw==} + engines: {node: ^14.18.0 || >=16.0.0} + + tapable@2.2.1: + resolution: {integrity: sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ==} + engines: {node: '>=6'} + test-exclude@7.0.1: resolution: {integrity: sha512-pFYqmTw68LXVjeWJMST4+borgQP2AyMNbg1BpZh9LbyhUeNkeaPF9gzfPGUAnSMV3qPYdWUwDIjjCLiSDOl7vg==} engines: {node: '>=18'} @@ -3451,6 +4098,10 @@ packages: resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==} engines: {node: '>=8.0'} + toml-eslint-parser@0.10.0: + resolution: {integrity: sha512-khrZo4buq4qVmsGzS5yQjKe/WsFvV8fGfOjDQN0q4iy9FjRfPWRgTFrU8u1R2iu/SfWLhY9WnCi4Jhdrcbtg+g==} + engines: {node: ^12.22.0 || ^14.17.0 || >=16.0.0} + totalist@3.0.1: resolution: {integrity: sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==} engines: {node: '>=6'} @@ -3476,6 +4127,14 @@ packages: resolution: {integrity: sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w==} engines: {node: '>=10'} + type-fest@0.6.0: + resolution: {integrity: sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==} + engines: {node: '>=8'} + + type-fest@0.8.1: + resolution: {integrity: sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==} + engines: {node: '>=8'} + type-fest@1.4.0: resolution: {integrity: sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA==} engines: {node: '>=10'} @@ -3519,6 +4178,18 @@ packages: resolution: {integrity: sha512-VGXBUVwxKMBUznyffQweQABPRRW1vHZAbadFZud4pLFAqRGvv/96vafgjWFqzourzr8YonlQiPgH0YCJfawoGQ==} engines: {node: '>=12'} + unist-util-is@6.0.0: + resolution: {integrity: sha512-2qCTHimwdxLfz+YzdGfkqNlH0tLi9xjTnHddPmJwtIG9MGsdbutfTc4P+haPD7l7Cjxf/WZj+we5qfVPvvxfYw==} + + unist-util-stringify-position@4.0.0: + resolution: {integrity: sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ==} + + unist-util-visit-parents@6.0.1: + resolution: {integrity: sha512-L/PqWzfTP9lzzEa6CKs0k2nARxTdZduw3zyh8d2NVBnsyvHjSX4TWse388YrrQKbvI8w20fGjGlhgT96WwKykw==} + + unist-util-visit@5.0.0: + resolution: {integrity: sha512-MR04uvD+07cwl/yhVuVWAtw+3GOR/knlL55Nd/wAdblk27GCVt3lqpTivy/tkJcZoNPzTwS1Y+KMojlLDhoTzg==} + universal-user-agent@6.0.1: resolution: {integrity: sha512-yCzhz6FN2wU1NiiQRogkTQszlQSlpWaw8SvVegAc+bDxbzHgh1vX8uIe8OYyMH6DwH+sdTJsgMl36+mSMdRJIQ==} @@ -3530,6 +4201,12 @@ packages: resolution: {integrity: sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw==} engines: {node: '>= 10.0.0'} + update-browserslist-db@1.1.1: + resolution: {integrity: sha512-R8UzCaa9Az+38REPiJ1tXlImTJXlVfgHZsglwBD/k6nj76ctsH1E3q4doGrukiLQd3sGQYu56r5+lo5r94l29A==} + hasBin: true + peerDependencies: + browserslist: '>= 4.21.0' + update-notifier@7.1.0: resolution: {integrity: sha512-8SV3rIqVY6EFC1WxH6L0j55s0MO79MFBS1pivmInRJg3pCEDgWHBj1Q6XByTtCLOZIFA0f6zoG9ZWf2Ks9lvTA==} engines: {node: '>=18'} @@ -3544,6 +4221,9 @@ packages: util-deprecate@1.0.2: resolution: {integrity: sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==} + validate-npm-package-license@3.0.4: + resolution: {integrity: sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==} + vite-node@2.1.1: resolution: {integrity: sha512-N/mGckI1suG/5wQI35XeR9rsMsPqKXzq1CdUndzVstBj/HvyxxGctwnK6WX43NGt5L3Z5tcRf83g4TITKJhPrA==} engines: {node: ^18.0.0 || >=20.0.0} @@ -3804,6 +4484,10 @@ packages: yallist@4.0.0: resolution: {integrity: sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==} + yaml-eslint-parser@1.2.3: + resolution: {integrity: sha512-4wZWvE398hCP7O8n3nXKu/vdq1HcH01ixYlCREaJL5NUMwQ0g3MaGFUBNSlmBtKmhbtVG/Cm6lyYmSVTEVil8A==} + engines: {node: ^14.17.0 || >=16.0.0} + yaml@2.5.1: resolution: {integrity: sha512-bLQOjaX/ADgQ20isPJRvF0iRUHIxVhYvr53Of7wGcWlO2jvtUlH5m87DsmulFVxRpNLOnI4tB6p/oh8D7kpn9Q==} engines: {node: '>= 14'} @@ -3829,15 +4513,71 @@ packages: resolution: {integrity: sha512-cYVsTjKl8b+FrnidjibDWskAv7UKOfcwaVZdp/it9n1s9fU3IkgDbhdIRKCW4JDsAlECJY0ytoVPT3sK6kideA==} engines: {node: '>=18'} -snapshots: + zwitch@2.0.4: + resolution: {integrity: sha512-bXE4cR/kVZhKZX/RjPEflHaKVhUVl85noU3v6b8apfQEc1x4A+zBxjZ4lN8LqGd6WZ3dl98pY4o717VFmoPp+A==} - '@aashutoshrathi/word-wrap@1.2.6': {} +snapshots: '@ampproject/remapping@2.3.0': dependencies: '@jridgewell/gen-mapping': 0.3.5 '@jridgewell/trace-mapping': 0.3.25 + '@antfu/eslint-config@3.6.2(@typescript-eslint/utils@8.9.0(eslint@8.57.0)(typescript@5.5.4))(@vue/compiler-sfc@3.4.34)(eslint-plugin-format@0.1.2(eslint@8.57.0))(eslint-plugin-react-hooks@4.6.0(eslint@8.57.0))(eslint-plugin-react-refresh@0.4.6(eslint@8.57.0))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.1.1(@types/node@22.0.0)(@vitest/ui@2.1.1))': + dependencies: + '@antfu/install-pkg': 0.4.1 + '@clack/prompts': 0.7.0 + '@eslint-community/eslint-plugin-eslint-comments': 4.4.0(eslint@8.57.0) + '@eslint/markdown': 6.2.0 + '@stylistic/eslint-plugin': 2.9.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/eslint-plugin': 8.9.0(@typescript-eslint/parser@8.9.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/parser': 8.9.0(eslint@8.57.0)(typescript@5.5.4) + '@vitest/eslint-plugin': 1.1.7(@typescript-eslint/utils@8.9.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.1.1(@types/node@22.0.0)(@vitest/ui@2.1.1)) + eslint: 8.57.0 + eslint-config-flat-gitignore: 0.3.0(eslint@8.57.0) + eslint-flat-config-utils: 0.4.0 + eslint-merge-processors: 0.1.0(eslint@8.57.0) + eslint-plugin-antfu: 2.7.0(eslint@8.57.0) + eslint-plugin-command: 0.2.6(eslint@8.57.0) + eslint-plugin-import-x: 4.3.1(eslint@8.57.0)(typescript@5.5.4) + eslint-plugin-jsdoc: 50.4.3(eslint@8.57.0) + eslint-plugin-jsonc: 2.16.0(eslint@8.57.0) + eslint-plugin-n: 17.11.1(eslint@8.57.0) + eslint-plugin-no-only-tests: 3.3.0 + eslint-plugin-perfectionist: 3.9.1(eslint@8.57.0)(typescript@5.5.4)(vue-eslint-parser@9.4.3(eslint@8.57.0)) + eslint-plugin-regexp: 2.6.0(eslint@8.57.0) + eslint-plugin-toml: 0.11.1(eslint@8.57.0) + eslint-plugin-unicorn: 55.0.0(eslint@8.57.0) + eslint-plugin-unused-imports: 4.1.4(@typescript-eslint/eslint-plugin@8.9.0(@typescript-eslint/parser@8.9.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0) + eslint-plugin-vue: 9.28.0(eslint@8.57.0) + eslint-plugin-yml: 1.14.0(eslint@8.57.0) + eslint-processor-vue-blocks: 0.1.2(@vue/compiler-sfc@3.4.34)(eslint@8.57.0) + globals: 15.11.0 + jsonc-eslint-parser: 2.4.0 + local-pkg: 0.5.0 + parse-gitignore: 2.0.0 + picocolors: 1.1.0 + toml-eslint-parser: 0.10.0 + vue-eslint-parser: 9.4.3(eslint@8.57.0) + yaml-eslint-parser: 1.2.3 + yargs: 17.7.2 + optionalDependencies: + eslint-plugin-format: 0.1.2(eslint@8.57.0) + eslint-plugin-react-hooks: 4.6.0(eslint@8.57.0) + eslint-plugin-react-refresh: 0.4.6(eslint@8.57.0) + transitivePeerDependencies: + - '@typescript-eslint/utils' + - '@vue/compiler-sfc' + - supports-color + - svelte + - typescript + - vitest + + '@antfu/install-pkg@0.4.1': + dependencies: + package-manager-detector: 0.2.2 + tinyexec: 0.3.0 + '@antfu/utils@0.7.10': {} '@babel/code-frame@7.24.2': @@ -3896,6 +4636,17 @@ snapshots: '@bcoe/v8-coverage@0.2.3': {} + '@clack/core@0.3.4': + dependencies: + picocolors: 1.1.0 + sisteransi: 1.0.5 + + '@clack/prompts@0.7.0': + dependencies: + '@clack/core': 0.3.4 + picocolors: 1.1.0 + sisteransi: 1.0.5 + '@commitlint/cli@19.5.0(@types/node@22.0.0)(typescript@5.5.4)': dependencies: '@commitlint/format': 19.5.0 @@ -4006,6 +4757,24 @@ snapshots: '@types/conventional-commits-parser': 5.0.0 chalk: 5.3.0 + '@dprint/formatter@0.3.0': {} + + '@dprint/markdown@0.17.8': {} + + '@dprint/toml@0.6.3': {} + + '@es-joy/jsdoccomment@0.48.0': + dependencies: + comment-parser: 1.4.1 + esquery: 1.6.0 + jsdoc-type-pratt-parser: 4.1.0 + + '@es-joy/jsdoccomment@0.49.0': + dependencies: + comment-parser: 1.4.1 + esquery: 1.6.0 + jsdoc-type-pratt-parser: 4.1.0 + '@esbuild/aix-ppc64@0.19.12': optional: true @@ -4213,48 +4982,31 @@ snapshots: '@esbuild/win32-x64@0.21.5': optional: true - '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': + '@eslint-community/eslint-plugin-eslint-comments@4.4.0(eslint@8.57.0)': dependencies: + escape-string-regexp: 4.0.0 eslint: 8.57.0 - eslint-visitor-keys: 3.4.3 + ignore: 5.3.2 - '@eslint-community/eslint-utils@4.4.0(eslint@9.8.0)': + '@eslint-community/eslint-utils@4.4.0(eslint@8.57.0)': dependencies: - eslint: 9.8.0 + eslint: 8.57.0 eslint-visitor-keys: 3.4.3 '@eslint-community/regexpp@4.10.0': {} '@eslint-community/regexpp@4.11.1': {} - '@eslint/config-array@0.17.1': - dependencies: - '@eslint/object-schema': 2.1.4 - debug: 4.3.7 - minimatch: 3.1.2 - transitivePeerDependencies: - - supports-color + '@eslint/compat@1.2.0(eslint@8.57.0)': + optionalDependencies: + eslint: 8.57.0 '@eslint/eslintrc@2.1.4': dependencies: ajv: 6.12.6 - debug: 4.3.4 + debug: 4.3.7 espree: 9.6.1 globals: 13.24.0 - ignore: 5.3.1 - import-fresh: 3.3.0 - js-yaml: 4.1.0 - minimatch: 3.1.2 - strip-json-comments: 3.1.1 - transitivePeerDependencies: - - supports-color - - '@eslint/eslintrc@3.1.0': - dependencies: - ajv: 6.12.6 - debug: 4.3.7 - espree: 10.1.0 - globals: 14.0.0 ignore: 5.3.2 import-fresh: 3.3.0 js-yaml: 4.1.0 @@ -4265,14 +5017,23 @@ snapshots: '@eslint/js@8.57.0': {} - '@eslint/js@9.8.0': {} + '@eslint/markdown@6.2.0': + dependencies: + '@eslint/plugin-kit': 0.2.0 + mdast-util-from-markdown: 2.0.1 + mdast-util-gfm: 3.0.0 + micromark-extension-gfm: 3.0.0 + transitivePeerDependencies: + - supports-color - '@eslint/object-schema@2.1.4': {} + '@eslint/plugin-kit@0.2.0': + dependencies: + levn: 0.4.1 '@humanwhocodes/config-array@0.11.14': dependencies: '@humanwhocodes/object-schema': 2.0.2 - debug: 4.3.4 + debug: 4.3.7 minimatch: 3.1.2 transitivePeerDependencies: - supports-color @@ -4281,8 +5042,6 @@ snapshots: '@humanwhocodes/object-schema@2.0.2': {} - '@humanwhocodes/retry@0.3.0': {} - '@iarna/toml@2.2.5': {} '@inquirer/figures@1.0.4': {} @@ -4428,6 +5187,8 @@ snapshots: '@pkgjs/parseargs@0.11.0': optional: true + '@pkgr/core@0.1.1': {} + '@pnpm/config.env-replace@1.1.0': {} '@pnpm/network.ca-file@1.0.2': @@ -4623,6 +5384,31 @@ snapshots: '@sindresorhus/merge-streams@2.3.0': {} + '@storyblok/eslint-config@0.3.0(@typescript-eslint/utils@8.9.0(eslint@8.57.0)(typescript@5.5.4))(@vue/compiler-sfc@3.4.34)(eslint-plugin-react-hooks@4.6.0(eslint@8.57.0))(eslint-plugin-react-refresh@0.4.6(eslint@8.57.0))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.1.1(@types/node@22.0.0)(@vitest/ui@2.1.1))': + dependencies: + '@antfu/eslint-config': 3.6.2(@typescript-eslint/utils@8.9.0(eslint@8.57.0)(typescript@5.5.4))(@vue/compiler-sfc@3.4.34)(eslint-plugin-format@0.1.2(eslint@8.57.0))(eslint-plugin-react-hooks@4.6.0(eslint@8.57.0))(eslint-plugin-react-refresh@0.4.6(eslint@8.57.0))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.1.1(@types/node@22.0.0)(@vitest/ui@2.1.1)) + eslint: 8.57.0 + eslint-plugin-format: 0.1.2(eslint@8.57.0) + transitivePeerDependencies: + - '@eslint-react/eslint-plugin' + - '@prettier/plugin-xml' + - '@typescript-eslint/utils' + - '@unocss/eslint-plugin' + - '@vue/compiler-sfc' + - astro-eslint-parser + - eslint-plugin-astro + - eslint-plugin-react-hooks + - eslint-plugin-react-refresh + - eslint-plugin-solid + - eslint-plugin-svelte + - prettier-plugin-astro + - prettier-plugin-slidev + - supports-color + - svelte + - svelte-eslint-parser + - typescript + - vitest + '@storyblok/js@3.0.7': dependencies: storyblok-js-client: 6.7.3 @@ -4650,6 +5436,18 @@ snapshots: dependencies: '@storyblok/js': 3.1.6 + '@stylistic/eslint-plugin@2.9.0(eslint@8.57.0)(typescript@5.5.4)': + dependencies: + '@typescript-eslint/utils': 8.9.0(eslint@8.57.0)(typescript@5.5.4) + eslint: 8.57.0 + eslint-visitor-keys: 4.1.0 + espree: 10.2.0 + estraverse: 5.3.0 + picomatch: 4.0.2 + transitivePeerDependencies: + - supports-color + - typescript + '@swc/core-darwin-arm64@1.4.8': optional: true @@ -4714,6 +5512,10 @@ snapshots: dependencies: '@types/node': 20.12.10 + '@types/debug@4.1.12': + dependencies: + '@types/ms': 0.7.34 + '@types/estree@1.0.5': {} '@types/estree@1.0.6': {} @@ -4722,6 +5524,12 @@ snapshots: '@types/json-schema@7.0.15': {} + '@types/mdast@4.0.4': + dependencies: + '@types/unist': 3.0.3 + + '@types/ms@0.7.34': {} + '@types/node@20.12.10': dependencies: undici-types: 5.26.5 @@ -4730,6 +5538,8 @@ snapshots: dependencies: undici-types: 6.11.1 + '@types/normalize-package-data@2.4.4': {} + '@types/prop-types@15.7.11': {} '@types/react-dom@18.2.22': @@ -4746,6 +5556,8 @@ snapshots: '@types/semver@7.5.8': {} + '@types/unist@3.0.3': {} + '@typescript-eslint/eslint-plugin@7.2.0(@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.4.2))(eslint@8.57.0)(typescript@5.4.2)': dependencies: '@eslint-community/regexpp': 4.10.0 @@ -4766,6 +5578,24 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/eslint-plugin@8.9.0(@typescript-eslint/parser@8.9.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)': + dependencies: + '@eslint-community/regexpp': 4.11.1 + '@typescript-eslint/parser': 8.9.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/scope-manager': 8.9.0 + '@typescript-eslint/type-utils': 8.9.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/utils': 8.9.0(eslint@8.57.0)(typescript@5.5.4) + '@typescript-eslint/visitor-keys': 8.9.0 + eslint: 8.57.0 + graphemer: 1.4.0 + ignore: 5.3.2 + natural-compare: 1.4.0 + ts-api-utils: 1.3.0(typescript@5.5.4) + optionalDependencies: + typescript: 5.5.4 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/parser@7.2.0(eslint@8.57.0)(typescript@5.4.2)': dependencies: '@typescript-eslint/scope-manager': 7.2.0 @@ -4779,16 +5609,34 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/parser@8.9.0(eslint@8.57.0)(typescript@5.5.4)': + dependencies: + '@typescript-eslint/scope-manager': 8.9.0 + '@typescript-eslint/types': 8.9.0 + '@typescript-eslint/typescript-estree': 8.9.0(typescript@5.5.4) + '@typescript-eslint/visitor-keys': 8.9.0 + debug: 4.3.7 + eslint: 8.57.0 + optionalDependencies: + typescript: 5.5.4 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/scope-manager@7.2.0': dependencies: '@typescript-eslint/types': 7.2.0 '@typescript-eslint/visitor-keys': 7.2.0 + '@typescript-eslint/scope-manager@8.9.0': + dependencies: + '@typescript-eslint/types': 8.9.0 + '@typescript-eslint/visitor-keys': 8.9.0 + '@typescript-eslint/type-utils@7.2.0(eslint@8.57.0)(typescript@5.4.2)': dependencies: '@typescript-eslint/typescript-estree': 7.2.0(typescript@5.4.2) '@typescript-eslint/utils': 7.2.0(eslint@8.57.0)(typescript@5.4.2) - debug: 4.3.4 + debug: 4.3.7 eslint: 8.57.0 ts-api-utils: 1.3.0(typescript@5.4.2) optionalDependencies: @@ -4796,13 +5644,27 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/type-utils@8.9.0(eslint@8.57.0)(typescript@5.5.4)': + dependencies: + '@typescript-eslint/typescript-estree': 8.9.0(typescript@5.5.4) + '@typescript-eslint/utils': 8.9.0(eslint@8.57.0)(typescript@5.5.4) + debug: 4.3.7 + ts-api-utils: 1.3.0(typescript@5.5.4) + optionalDependencies: + typescript: 5.5.4 + transitivePeerDependencies: + - eslint + - supports-color + '@typescript-eslint/types@7.2.0': {} + '@typescript-eslint/types@8.9.0': {} + '@typescript-eslint/typescript-estree@7.2.0(typescript@5.4.2)': dependencies: '@typescript-eslint/types': 7.2.0 '@typescript-eslint/visitor-keys': 7.2.0 - debug: 4.3.4 + debug: 4.3.7 globby: 11.1.0 is-glob: 4.0.3 minimatch: 9.0.3 @@ -4813,6 +5675,21 @@ snapshots: transitivePeerDependencies: - supports-color + '@typescript-eslint/typescript-estree@8.9.0(typescript@5.5.4)': + dependencies: + '@typescript-eslint/types': 8.9.0 + '@typescript-eslint/visitor-keys': 8.9.0 + debug: 4.3.7 + fast-glob: 3.3.2 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.6.3 + ts-api-utils: 1.3.0(typescript@5.5.4) + optionalDependencies: + typescript: 5.5.4 + transitivePeerDependencies: + - supports-color + '@typescript-eslint/utils@7.2.0(eslint@8.57.0)(typescript@5.4.2)': dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) @@ -4827,11 +5704,27 @@ snapshots: - supports-color - typescript + '@typescript-eslint/utils@8.9.0(eslint@8.57.0)(typescript@5.5.4)': + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@typescript-eslint/scope-manager': 8.9.0 + '@typescript-eslint/types': 8.9.0 + '@typescript-eslint/typescript-estree': 8.9.0(typescript@5.5.4) + eslint: 8.57.0 + transitivePeerDependencies: + - supports-color + - typescript + '@typescript-eslint/visitor-keys@7.2.0': dependencies: '@typescript-eslint/types': 7.2.0 eslint-visitor-keys: 3.4.3 + '@typescript-eslint/visitor-keys@8.9.0': + dependencies: + '@typescript-eslint/types': 8.9.0 + eslint-visitor-keys: 3.4.3 + '@ungap/structured-clone@1.2.0': {} '@vitejs/plugin-basic-ssl@1.1.0(vite@5.4.7(@types/node@22.0.0))': @@ -4868,6 +5761,14 @@ snapshots: transitivePeerDependencies: - supports-color + '@vitest/eslint-plugin@1.1.7(@typescript-eslint/utils@8.9.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4)(vitest@2.1.1(@types/node@22.0.0)(@vitest/ui@2.1.1))': + dependencies: + '@typescript-eslint/utils': 8.9.0(eslint@8.57.0)(typescript@5.5.4) + eslint: 8.57.0 + optionalDependencies: + typescript: 5.5.4 + vitest: 2.1.1(@types/node@22.0.0)(@vitest/ui@2.1.1) + '@vitest/expect@2.1.1': dependencies: '@vitest/spy': 2.1.1 @@ -5117,16 +6018,10 @@ snapshots: jsonparse: 1.3.1 through: 2.3.8 - acorn-jsx@5.3.2(acorn@8.11.3): - dependencies: - acorn: 8.11.3 - acorn-jsx@5.3.2(acorn@8.12.1): dependencies: acorn: 8.12.1 - acorn@8.11.3: {} - acorn@8.12.1: {} agent-base@7.1.1: @@ -5197,6 +6092,8 @@ snapshots: ansi-styles@6.2.1: {} + are-docs-informative@0.0.2: {} + argparse@1.0.10: dependencies: sprintf-js: 1.0.3 @@ -5257,11 +6154,20 @@ snapshots: dependencies: fill-range: 7.1.1 + browserslist@4.24.0: + dependencies: + caniuse-lite: 1.0.30001669 + electron-to-chromium: 1.5.40 + node-releases: 2.0.18 + update-browserslist-db: 1.1.1(browserslist@4.24.0) + buffer@5.7.1: dependencies: base64-js: 1.5.1 ieee754: 1.2.1 + builtin-modules@3.3.0: {} + bundle-name@4.1.0: dependencies: run-applescript: 7.0.0 @@ -5284,6 +6190,10 @@ snapshots: camelcase@7.0.1: {} + caniuse-lite@1.0.30001669: {} + + ccount@2.0.1: {} + chai@5.1.1: dependencies: assertion-error: 2.0.1 @@ -5305,12 +6215,20 @@ snapshots: chalk@5.3.0: {} + character-entities@2.0.2: {} + chardet@0.7.0: {} check-error@2.1.1: {} ci-info@3.9.0: {} + ci-info@4.0.0: {} + + clean-regexp@1.0.0: + dependencies: + escape-string-regexp: 1.0.5 + cli-boxes@3.0.0: {} cli-cursor@3.1.0: @@ -5358,6 +6276,8 @@ snapshots: commander@12.1.0: {} + comment-parser@1.4.1: {} + compare-func@2.0.0: dependencies: array-ify: 1.0.0 @@ -5401,6 +6321,10 @@ snapshots: meow: 12.1.1 split2: 4.2.0 + core-js-compat@3.38.1: + dependencies: + browserslist: 4.24.0 + cosmiconfig-typescript-loader@5.0.0(@types/node@22.0.0)(cosmiconfig@9.0.0(typescript@5.5.4))(typescript@5.5.4): dependencies: '@types/node': 22.0.0 @@ -5439,6 +6363,10 @@ snapshots: de-indent@1.0.2: {} + debug@3.2.7: + dependencies: + ms: 2.1.3 + debug@4.3.4: dependencies: ms: 2.1.2 @@ -5455,6 +6383,10 @@ snapshots: dependencies: ms: 2.1.3 + decode-named-character-reference@1.0.2: + dependencies: + character-entities: 2.0.2 + decompress-response@6.0.0: dependencies: mimic-response: 3.1.0 @@ -5488,6 +6420,12 @@ snapshots: deprecation@2.3.1: {} + dequal@2.0.3: {} + + devlop@1.1.0: + dependencies: + dequal: 2.0.3 + dir-glob@3.0.1: dependencies: path-type: 4.0.0 @@ -5506,12 +6444,19 @@ snapshots: eastasianwidth@0.2.0: {} + electron-to-chromium@1.5.40: {} + emoji-regex@10.3.0: {} emoji-regex@8.0.0: {} emoji-regex@9.2.2: {} + enhanced-resolve@5.17.1: + dependencies: + graceful-fs: 4.2.11 + tapable: 2.2.1 + entities@4.5.0: {} env-paths@2.2.1: {} @@ -5524,6 +6469,8 @@ snapshots: error-stack-parser-es@0.1.5: {} + es-module-lexer@1.5.4: {} + esbuild@0.19.12: optionalDependencies: '@esbuild/aix-ppc64': 0.19.12 @@ -5610,6 +6557,8 @@ snapshots: escape-string-regexp@4.0.0: {} + escape-string-regexp@5.0.0: {} + escodegen@2.1.0: dependencies: esprima: 4.0.1 @@ -5618,9 +6567,143 @@ snapshots: optionalDependencies: source-map: 0.6.1 - eslint-config-prettier@9.1.0(eslint@9.8.0): + eslint-compat-utils@0.5.1(eslint@8.57.0): + dependencies: + eslint: 8.57.0 + semver: 7.6.3 + + eslint-config-flat-gitignore@0.3.0(eslint@8.57.0): + dependencies: + '@eslint/compat': 1.2.0(eslint@8.57.0) + eslint: 8.57.0 + find-up-simple: 1.0.0 + + eslint-config-prettier@9.1.0(eslint@8.57.0): + dependencies: + eslint: 8.57.0 + + eslint-flat-config-utils@0.4.0: + dependencies: + pathe: 1.1.2 + + eslint-formatting-reporter@0.0.0(eslint@8.57.0): dependencies: - eslint: 9.8.0 + eslint: 8.57.0 + prettier-linter-helpers: 1.0.0 + + eslint-import-resolver-node@0.3.9: + dependencies: + debug: 3.2.7 + is-core-module: 2.15.0 + resolve: 1.22.8 + transitivePeerDependencies: + - supports-color + + eslint-merge-processors@0.1.0(eslint@8.57.0): + dependencies: + eslint: 8.57.0 + + eslint-parser-plain@0.1.0: {} + + eslint-plugin-antfu@2.7.0(eslint@8.57.0): + dependencies: + '@antfu/utils': 0.7.10 + eslint: 8.57.0 + + eslint-plugin-command@0.2.6(eslint@8.57.0): + dependencies: + '@es-joy/jsdoccomment': 0.48.0 + eslint: 8.57.0 + + eslint-plugin-es-x@7.8.0(eslint@8.57.0): + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/regexpp': 4.11.1 + eslint: 8.57.0 + eslint-compat-utils: 0.5.1(eslint@8.57.0) + + eslint-plugin-format@0.1.2(eslint@8.57.0): + dependencies: + '@dprint/formatter': 0.3.0 + '@dprint/markdown': 0.17.8 + '@dprint/toml': 0.6.3 + eslint: 8.57.0 + eslint-formatting-reporter: 0.0.0(eslint@8.57.0) + eslint-parser-plain: 0.1.0 + prettier: 3.3.3 + synckit: 0.9.2 + + eslint-plugin-import-x@4.3.1(eslint@8.57.0)(typescript@5.5.4): + dependencies: + '@typescript-eslint/utils': 8.9.0(eslint@8.57.0)(typescript@5.5.4) + debug: 4.3.7 + doctrine: 3.0.0 + eslint: 8.57.0 + eslint-import-resolver-node: 0.3.9 + get-tsconfig: 4.8.1 + is-glob: 4.0.3 + minimatch: 9.0.5 + semver: 7.6.3 + stable-hash: 0.0.4 + tslib: 2.6.3 + transitivePeerDependencies: + - supports-color + - typescript + + eslint-plugin-jsdoc@50.4.3(eslint@8.57.0): + dependencies: + '@es-joy/jsdoccomment': 0.49.0 + are-docs-informative: 0.0.2 + comment-parser: 1.4.1 + debug: 4.3.7 + escape-string-regexp: 4.0.0 + eslint: 8.57.0 + espree: 10.1.0 + esquery: 1.6.0 + parse-imports: 2.2.1 + semver: 7.6.3 + spdx-expression-parse: 4.0.0 + synckit: 0.9.2 + transitivePeerDependencies: + - supports-color + + eslint-plugin-jsonc@2.16.0(eslint@8.57.0): + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + eslint: 8.57.0 + eslint-compat-utils: 0.5.1(eslint@8.57.0) + espree: 9.6.1 + graphemer: 1.4.0 + jsonc-eslint-parser: 2.4.0 + natural-compare: 1.4.0 + synckit: 0.6.2 + + eslint-plugin-n@17.11.1(eslint@8.57.0): + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + enhanced-resolve: 5.17.1 + eslint: 8.57.0 + eslint-plugin-es-x: 7.8.0(eslint@8.57.0) + get-tsconfig: 4.8.1 + globals: 15.11.0 + ignore: 5.3.2 + minimatch: 9.0.5 + semver: 7.6.3 + + eslint-plugin-no-only-tests@3.3.0: {} + + eslint-plugin-perfectionist@3.9.1(eslint@8.57.0)(typescript@5.5.4)(vue-eslint-parser@9.4.3(eslint@8.57.0)): + dependencies: + '@typescript-eslint/types': 8.9.0 + '@typescript-eslint/utils': 8.9.0(eslint@8.57.0)(typescript@5.5.4) + eslint: 8.57.0 + minimatch: 9.0.5 + natural-compare-lite: 1.4.0 + optionalDependencies: + vue-eslint-parser: 9.4.3(eslint@8.57.0) + transitivePeerDependencies: + - supports-color + - typescript eslint-plugin-react-hooks@4.6.0(eslint@8.57.0): dependencies: @@ -5630,26 +6713,84 @@ snapshots: dependencies: eslint: 8.57.0 - eslint-plugin-vue@9.28.0(eslint@9.8.0): + eslint-plugin-regexp@2.6.0(eslint@8.57.0): + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + '@eslint-community/regexpp': 4.11.1 + comment-parser: 1.4.1 + eslint: 8.57.0 + jsdoc-type-pratt-parser: 4.1.0 + refa: 0.12.1 + regexp-ast-analysis: 0.7.1 + scslre: 0.3.0 + + eslint-plugin-toml@0.11.1(eslint@8.57.0): + dependencies: + debug: 4.3.7 + eslint: 8.57.0 + eslint-compat-utils: 0.5.1(eslint@8.57.0) + lodash: 4.17.21 + toml-eslint-parser: 0.10.0 + transitivePeerDependencies: + - supports-color + + eslint-plugin-unicorn@55.0.0(eslint@8.57.0): dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.8.0) - eslint: 9.8.0 + '@babel/helper-validator-identifier': 7.24.7 + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + ci-info: 4.0.0 + clean-regexp: 1.0.0 + core-js-compat: 3.38.1 + eslint: 8.57.0 + esquery: 1.6.0 + globals: 15.11.0 + indent-string: 4.0.0 + is-builtin-module: 3.2.1 + jsesc: 3.0.2 + pluralize: 8.0.0 + read-pkg-up: 7.0.1 + regexp-tree: 0.1.27 + regjsparser: 0.10.0 + semver: 7.6.3 + strip-indent: 3.0.0 + + eslint-plugin-unused-imports@4.1.4(@typescript-eslint/eslint-plugin@8.9.0(@typescript-eslint/parser@8.9.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0): + dependencies: + eslint: 8.57.0 + optionalDependencies: + '@typescript-eslint/eslint-plugin': 8.9.0(@typescript-eslint/parser@8.9.0(eslint@8.57.0)(typescript@5.5.4))(eslint@8.57.0)(typescript@5.5.4) + + eslint-plugin-vue@9.28.0(eslint@8.57.0): + dependencies: + '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) + eslint: 8.57.0 globals: 13.24.0 natural-compare: 1.4.0 nth-check: 2.1.1 postcss-selector-parser: 6.1.2 semver: 7.6.3 - vue-eslint-parser: 9.4.3(eslint@9.8.0) + vue-eslint-parser: 9.4.3(eslint@8.57.0) xml-name-validator: 4.0.0 transitivePeerDependencies: - supports-color - eslint-scope@7.2.2: + eslint-plugin-yml@1.14.0(eslint@8.57.0): dependencies: - esrecurse: 4.3.0 - estraverse: 5.3.0 + debug: 4.3.7 + eslint: 8.57.0 + eslint-compat-utils: 0.5.1(eslint@8.57.0) + lodash: 4.17.21 + natural-compare: 1.4.0 + yaml-eslint-parser: 1.2.3 + transitivePeerDependencies: + - supports-color + + eslint-processor-vue-blocks@0.1.2(@vue/compiler-sfc@3.4.34)(eslint@8.57.0): + dependencies: + '@vue/compiler-sfc': 3.4.34 + eslint: 8.57.0 - eslint-scope@8.0.2: + eslint-scope@7.2.2: dependencies: esrecurse: 4.3.0 estraverse: 5.3.0 @@ -5658,10 +6799,12 @@ snapshots: eslint-visitor-keys@4.0.0: {} + eslint-visitor-keys@4.1.0: {} + eslint@8.57.0: dependencies: '@eslint-community/eslint-utils': 4.4.0(eslint@8.57.0) - '@eslint-community/regexpp': 4.10.0 + '@eslint-community/regexpp': 4.11.1 '@eslint/eslintrc': 2.1.4 '@eslint/js': 8.57.0 '@humanwhocodes/config-array': 0.11.14 @@ -5671,13 +6814,13 @@ snapshots: ajv: 6.12.6 chalk: 4.1.2 cross-spawn: 7.0.3 - debug: 4.3.4 + debug: 4.3.7 doctrine: 3.0.0 escape-string-regexp: 4.0.0 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 espree: 9.6.1 - esquery: 1.5.0 + esquery: 1.6.0 esutils: 2.0.3 fast-deep-equal: 3.1.3 file-entry-cache: 6.0.1 @@ -5685,50 +6828,11 @@ snapshots: glob-parent: 6.0.2 globals: 13.24.0 graphemer: 1.4.0 - ignore: 5.3.1 - imurmurhash: 0.1.4 - is-glob: 4.0.3 - is-path-inside: 3.0.3 - js-yaml: 4.1.0 - json-stable-stringify-without-jsonify: 1.0.1 - levn: 0.4.1 - lodash.merge: 4.6.2 - minimatch: 3.1.2 - natural-compare: 1.4.0 - optionator: 0.9.3 - strip-ansi: 6.0.1 - text-table: 0.2.0 - transitivePeerDependencies: - - supports-color - - eslint@9.8.0: - dependencies: - '@eslint-community/eslint-utils': 4.4.0(eslint@9.8.0) - '@eslint-community/regexpp': 4.11.1 - '@eslint/config-array': 0.17.1 - '@eslint/eslintrc': 3.1.0 - '@eslint/js': 9.8.0 - '@humanwhocodes/module-importer': 1.0.1 - '@humanwhocodes/retry': 0.3.0 - '@nodelib/fs.walk': 1.2.8 - ajv: 6.12.6 - chalk: 4.1.2 - cross-spawn: 7.0.3 - debug: 4.3.7 - escape-string-regexp: 4.0.0 - eslint-scope: 8.0.2 - eslint-visitor-keys: 4.0.0 - espree: 10.1.0 - esquery: 1.6.0 - esutils: 2.0.3 - fast-deep-equal: 3.1.3 - file-entry-cache: 8.0.0 - find-up: 5.0.0 - glob-parent: 6.0.2 ignore: 5.3.2 imurmurhash: 0.1.4 is-glob: 4.0.3 is-path-inside: 3.0.3 + js-yaml: 4.1.0 json-stable-stringify-without-jsonify: 1.0.1 levn: 0.4.1 lodash.merge: 4.6.2 @@ -5746,18 +6850,20 @@ snapshots: acorn-jsx: 5.3.2(acorn@8.12.1) eslint-visitor-keys: 4.0.0 + espree@10.2.0: + dependencies: + acorn: 8.12.1 + acorn-jsx: 5.3.2(acorn@8.12.1) + eslint-visitor-keys: 4.1.0 + espree@9.6.1: dependencies: - acorn: 8.11.3 - acorn-jsx: 5.3.2(acorn@8.11.3) + acorn: 8.12.1 + acorn-jsx: 5.3.2(acorn@8.12.1) eslint-visitor-keys: 3.4.3 esprima@4.0.1: {} - esquery@1.5.0: - dependencies: - estraverse: 5.3.0 - esquery@1.6.0: dependencies: estraverse: 5.3.0 @@ -5810,6 +6916,8 @@ snapshots: fast-deep-equal@3.1.3: {} + fast-diff@1.3.0: {} + fast-glob@3.3.2: dependencies: '@nodelib/fs.stat': 2.0.5 @@ -5843,14 +6951,17 @@ snapshots: dependencies: flat-cache: 3.2.0 - file-entry-cache@8.0.0: - dependencies: - flat-cache: 4.0.1 - fill-range@7.1.1: dependencies: to-regex-range: 5.0.1 + find-up-simple@1.0.0: {} + + find-up@4.1.0: + dependencies: + locate-path: 5.0.0 + path-exists: 4.0.0 + find-up@5.0.0: dependencies: locate-path: 6.0.0 @@ -5868,11 +6979,6 @@ snapshots: keyv: 4.5.4 rimraf: 3.0.2 - flat-cache@4.0.1: - dependencies: - flatted: 3.3.1 - keyv: 4.5.4 - flatted@3.3.1: {} foreground-child@3.2.1: @@ -5915,6 +7021,10 @@ snapshots: get-stream@8.0.1: {} + get-tsconfig@4.8.1: + dependencies: + resolve-pkg-maps: 1.0.0 + get-uri@6.0.3: dependencies: basic-ftp: 5.0.5 @@ -5973,14 +7083,14 @@ snapshots: dependencies: type-fest: 0.20.2 - globals@14.0.0: {} + globals@15.11.0: {} globby@11.1.0: dependencies: array-union: 2.1.0 dir-glob: 3.0.1 fast-glob: 3.3.2 - ignore: 5.3.1 + ignore: 5.3.2 merge2: 1.4.1 slash: 3.0.0 @@ -5988,7 +7098,7 @@ snapshots: dependencies: '@sindresorhus/merge-streams': 2.3.0 fast-glob: 3.3.2 - ignore: 5.3.1 + ignore: 5.3.2 path-type: 5.0.0 slash: 5.1.0 unicorn-magic: 0.1.0 @@ -6023,6 +7133,8 @@ snapshots: he@1.2.0: {} + hosted-git-info@2.8.9: {} + html-escaper@2.0.2: {} http-cache-semantics@4.1.1: {} @@ -6071,6 +7183,8 @@ snapshots: imurmurhash@0.1.4: {} + indent-string@4.0.0: {} + inflight@1.0.6: dependencies: once: 1.4.0 @@ -6106,6 +7220,10 @@ snapshots: is-arrayish@0.2.1: {} + is-builtin-module@3.2.1: + dependencies: + builtin-modules: 3.3.0 + is-ci@3.0.1: dependencies: ci-info: 3.9.0 @@ -6228,6 +7346,12 @@ snapshots: jsbn@1.1.0: {} + jsdoc-type-pratt-parser@4.1.0: {} + + jsesc@0.5.0: {} + + jsesc@3.0.2: {} + json-buffer@3.0.1: {} json-parse-even-better-errors@2.3.1: {} @@ -6238,6 +7362,13 @@ snapshots: json-stable-stringify-without-jsonify@1.0.1: {} + jsonc-eslint-parser@2.4.0: + dependencies: + acorn: 8.12.1 + eslint-visitor-keys: 3.4.3 + espree: 9.6.1 + semver: 7.6.3 + jsonfile@4.0.0: optionalDependencies: graceful-fs: 4.2.11 @@ -6300,6 +7431,10 @@ snapshots: mlly: 1.7.1 pkg-types: 1.1.3 + locate-path@5.0.0: + dependencies: + p-locate: 4.1.0 + locate-path@6.0.0: dependencies: p-locate: 5.0.0 @@ -6354,6 +7489,8 @@ snapshots: strip-ansi: 7.1.0 wrap-ansi: 9.0.0 + longest-streak@3.1.0: {} + loose-envify@1.4.0: dependencies: js-tokens: 4.0.0 @@ -6388,12 +7525,306 @@ snapshots: dependencies: semver: 7.6.3 + markdown-table@3.0.3: {} + + mdast-util-find-and-replace@3.0.1: + dependencies: + '@types/mdast': 4.0.4 + escape-string-regexp: 5.0.0 + unist-util-is: 6.0.0 + unist-util-visit-parents: 6.0.1 + + mdast-util-from-markdown@2.0.1: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + decode-named-character-reference: 1.0.2 + devlop: 1.1.0 + mdast-util-to-string: 4.0.0 + micromark: 4.0.0 + micromark-util-decode-numeric-character-reference: 2.0.1 + micromark-util-decode-string: 2.0.0 + micromark-util-normalize-identifier: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + unist-util-stringify-position: 4.0.0 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-autolink-literal@2.0.1: + dependencies: + '@types/mdast': 4.0.4 + ccount: 2.0.1 + devlop: 1.1.0 + mdast-util-find-and-replace: 3.0.1 + micromark-util-character: 2.1.0 + + mdast-util-gfm-footnote@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.1 + mdast-util-to-markdown: 2.1.0 + micromark-util-normalize-identifier: 2.0.0 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-strikethrough@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + mdast-util-from-markdown: 2.0.1 + mdast-util-to-markdown: 2.1.0 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-table@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + markdown-table: 3.0.3 + mdast-util-from-markdown: 2.0.1 + mdast-util-to-markdown: 2.1.0 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm-task-list-item@2.0.0: + dependencies: + '@types/mdast': 4.0.4 + devlop: 1.1.0 + mdast-util-from-markdown: 2.0.1 + mdast-util-to-markdown: 2.1.0 + transitivePeerDependencies: + - supports-color + + mdast-util-gfm@3.0.0: + dependencies: + mdast-util-from-markdown: 2.0.1 + mdast-util-gfm-autolink-literal: 2.0.1 + mdast-util-gfm-footnote: 2.0.0 + mdast-util-gfm-strikethrough: 2.0.0 + mdast-util-gfm-table: 2.0.0 + mdast-util-gfm-task-list-item: 2.0.0 + mdast-util-to-markdown: 2.1.0 + transitivePeerDependencies: + - supports-color + + mdast-util-phrasing@4.1.0: + dependencies: + '@types/mdast': 4.0.4 + unist-util-is: 6.0.0 + + mdast-util-to-markdown@2.1.0: + dependencies: + '@types/mdast': 4.0.4 + '@types/unist': 3.0.3 + longest-streak: 3.1.0 + mdast-util-phrasing: 4.1.0 + mdast-util-to-string: 4.0.0 + micromark-util-decode-string: 2.0.0 + unist-util-visit: 5.0.0 + zwitch: 2.0.4 + + mdast-util-to-string@4.0.0: + dependencies: + '@types/mdast': 4.0.4 + meow@12.1.1: {} merge-stream@2.0.0: {} merge2@1.4.1: {} + micromark-core-commonmark@2.0.1: + dependencies: + decode-named-character-reference: 1.0.2 + devlop: 1.1.0 + micromark-factory-destination: 2.0.0 + micromark-factory-label: 2.0.0 + micromark-factory-space: 2.0.0 + micromark-factory-title: 2.0.0 + micromark-factory-whitespace: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-chunked: 2.0.0 + micromark-util-classify-character: 2.0.0 + micromark-util-html-tag-name: 2.0.0 + micromark-util-normalize-identifier: 2.0.0 + micromark-util-resolve-all: 2.0.0 + micromark-util-subtokenize: 2.0.1 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-extension-gfm-autolink-literal@2.1.0: + dependencies: + micromark-util-character: 2.1.0 + micromark-util-sanitize-uri: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-extension-gfm-footnote@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-core-commonmark: 2.0.1 + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-normalize-identifier: 2.0.0 + micromark-util-sanitize-uri: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-extension-gfm-strikethrough@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-util-chunked: 2.0.0 + micromark-util-classify-character: 2.0.0 + micromark-util-resolve-all: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-extension-gfm-table@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-extension-gfm-tagfilter@2.0.0: + dependencies: + micromark-util-types: 2.0.0 + + micromark-extension-gfm-task-list-item@2.1.0: + dependencies: + devlop: 1.1.0 + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-extension-gfm@3.0.0: + dependencies: + micromark-extension-gfm-autolink-literal: 2.1.0 + micromark-extension-gfm-footnote: 2.1.0 + micromark-extension-gfm-strikethrough: 2.1.0 + micromark-extension-gfm-table: 2.1.0 + micromark-extension-gfm-tagfilter: 2.0.0 + micromark-extension-gfm-task-list-item: 2.1.0 + micromark-util-combine-extensions: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-factory-destination@2.0.0: + dependencies: + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-factory-label@2.0.0: + dependencies: + devlop: 1.1.0 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-factory-space@2.0.0: + dependencies: + micromark-util-character: 2.1.0 + micromark-util-types: 2.0.0 + + micromark-factory-title@2.0.0: + dependencies: + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-factory-whitespace@2.0.0: + dependencies: + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-util-character@2.1.0: + dependencies: + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-util-chunked@2.0.0: + dependencies: + micromark-util-symbol: 2.0.0 + + micromark-util-classify-character@2.0.0: + dependencies: + micromark-util-character: 2.1.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-util-combine-extensions@2.0.0: + dependencies: + micromark-util-chunked: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-util-decode-numeric-character-reference@2.0.1: + dependencies: + micromark-util-symbol: 2.0.0 + + micromark-util-decode-string@2.0.0: + dependencies: + decode-named-character-reference: 1.0.2 + micromark-util-character: 2.1.0 + micromark-util-decode-numeric-character-reference: 2.0.1 + micromark-util-symbol: 2.0.0 + + micromark-util-encode@2.0.0: {} + + micromark-util-html-tag-name@2.0.0: {} + + micromark-util-normalize-identifier@2.0.0: + dependencies: + micromark-util-symbol: 2.0.0 + + micromark-util-resolve-all@2.0.0: + dependencies: + micromark-util-types: 2.0.0 + + micromark-util-sanitize-uri@2.0.0: + dependencies: + micromark-util-character: 2.1.0 + micromark-util-encode: 2.0.0 + micromark-util-symbol: 2.0.0 + + micromark-util-subtokenize@2.0.1: + dependencies: + devlop: 1.1.0 + micromark-util-chunked: 2.0.0 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + + micromark-util-symbol@2.0.0: {} + + micromark-util-types@2.0.0: {} + + micromark@4.0.0: + dependencies: + '@types/debug': 4.1.12 + debug: 4.3.7 + decode-named-character-reference: 1.0.2 + devlop: 1.1.0 + micromark-core-commonmark: 2.0.1 + micromark-factory-space: 2.0.0 + micromark-util-character: 2.1.0 + micromark-util-chunked: 2.0.0 + micromark-util-combine-extensions: 2.0.0 + micromark-util-decode-numeric-character-reference: 2.0.1 + micromark-util-encode: 2.0.0 + micromark-util-normalize-identifier: 2.0.0 + micromark-util-resolve-all: 2.0.0 + micromark-util-sanitize-uri: 2.0.0 + micromark-util-subtokenize: 2.0.1 + micromark-util-symbol: 2.0.0 + micromark-util-types: 2.0.0 + transitivePeerDependencies: + - supports-color + micromatch@4.0.8: dependencies: braces: 3.0.3 @@ -6415,6 +7846,8 @@ snapshots: mimic-response@4.0.0: {} + min-indent@1.0.1: {} + minimatch@3.0.8: dependencies: brace-expansion: 1.1.11 @@ -6456,6 +7889,8 @@ snapshots: nanoid@3.3.7: {} + natural-compare-lite@1.4.0: {} + natural-compare@1.4.0: {} netmask@2.0.2: {} @@ -6472,6 +7907,15 @@ snapshots: fetch-blob: 3.2.0 formdata-polyfill: 4.0.10 + node-releases@2.0.18: {} + + normalize-package-data@2.5.0: + dependencies: + hosted-git-info: 2.8.9 + resolve: 1.22.8 + semver: 5.7.2 + validate-npm-package-license: 3.0.4 + normalize-url@8.0.1: {} npm-run-path@4.0.1: @@ -6509,15 +7953,6 @@ snapshots: is-inside-container: 1.0.0 is-wsl: 3.1.0 - optionator@0.9.3: - dependencies: - '@aashutoshrathi/word-wrap': 1.2.6 - deep-is: 0.1.4 - fast-levenshtein: 2.0.6 - levn: 0.4.1 - prelude-ls: 1.2.1 - type-check: 0.4.0 - optionator@0.9.4: dependencies: deep-is: 0.1.4 @@ -6560,6 +7995,10 @@ snapshots: p-cancelable@3.0.0: {} + p-limit@2.3.0: + dependencies: + p-try: 2.2.0 + p-limit@3.1.0: dependencies: yocto-queue: 0.1.0 @@ -6568,6 +8007,10 @@ snapshots: dependencies: yocto-queue: 1.1.1 + p-locate@4.1.0: + dependencies: + p-limit: 2.3.0 + p-locate@5.0.0: dependencies: p-limit: 3.1.0 @@ -6576,6 +8019,8 @@ snapshots: dependencies: p-limit: 4.0.0 + p-try@2.2.0: {} + pac-proxy-agent@7.0.2: dependencies: '@tootallnate/quickjs-emscripten': 0.23.0 @@ -6603,10 +8048,19 @@ snapshots: registry-url: 6.0.1 semver: 7.6.3 + package-manager-detector@0.2.2: {} + parent-module@1.0.1: dependencies: callsites: 3.1.0 + parse-gitignore@2.0.0: {} + + parse-imports@2.2.1: + dependencies: + es-module-lexer: 1.5.4 + slashes: 3.0.12 + parse-json@5.2.0: dependencies: '@babel/code-frame': 7.24.2 @@ -6667,6 +8121,8 @@ snapshots: mlly: 1.7.1 pathe: 1.1.2 + pluralize@8.0.0: {} + postcss-selector-parser@6.1.2: dependencies: cssesc: 3.0.0 @@ -6698,6 +8154,10 @@ snapshots: prelude-ls@1.2.1: {} + prettier-linter-helpers@1.0.0: + dependencies: + fast-diff: 1.3.0 + prettier@3.3.3: {} proto-list@1.2.4: {} @@ -6748,6 +8208,19 @@ snapshots: dependencies: loose-envify: 1.4.0 + read-pkg-up@7.0.1: + dependencies: + find-up: 4.1.0 + read-pkg: 5.2.0 + type-fest: 0.8.1 + + read-pkg@5.2.0: + dependencies: + '@types/normalize-package-data': 2.4.4 + normalize-package-data: 2.5.0 + parse-json: 5.2.0 + type-fest: 0.6.0 + readable-stream@3.6.2: dependencies: inherits: 2.0.4 @@ -6758,6 +8231,17 @@ snapshots: dependencies: resolve: 1.22.8 + refa@0.12.1: + dependencies: + '@eslint-community/regexpp': 4.11.1 + + regexp-ast-analysis@0.7.1: + dependencies: + '@eslint-community/regexpp': 4.11.1 + refa: 0.12.1 + + regexp-tree@0.1.27: {} + registry-auth-token@5.0.2: dependencies: '@pnpm/npm-conf': 2.2.2 @@ -6766,6 +8250,10 @@ snapshots: dependencies: rc: 1.2.8 + regjsparser@0.10.0: + dependencies: + jsesc: 0.5.0 + release-it@17.6.0(typescript@5.5.4): dependencies: '@iarna/toml': 2.2.5 @@ -6808,6 +8296,8 @@ snapshots: resolve-from@5.0.0: {} + resolve-pkg-maps@1.0.0: {} + resolve@1.22.8: dependencies: is-core-module: 2.15.0 @@ -6926,10 +8416,18 @@ snapshots: dependencies: loose-envify: 1.4.0 + scslre@0.3.0: + dependencies: + '@eslint-community/regexpp': 4.11.1 + refa: 0.12.1 + regexp-ast-analysis: 0.7.1 + semver-diff@4.0.0: dependencies: semver: 7.6.3 + semver@5.7.2: {} + semver@7.5.4: dependencies: lru-cache: 6.0.0 @@ -6966,10 +8464,14 @@ snapshots: mrmime: 2.0.0 totalist: 3.0.1 + sisteransi@1.0.5: {} + slash@3.0.0: {} slash@5.1.0: {} + slashes@3.0.12: {} + slice-ansi@5.0.0: dependencies: ansi-styles: 6.2.1 @@ -7003,12 +8505,33 @@ snapshots: source-map@0.6.1: {} + spdx-correct@3.2.0: + dependencies: + spdx-expression-parse: 3.0.1 + spdx-license-ids: 3.0.20 + + spdx-exceptions@2.5.0: {} + + spdx-expression-parse@3.0.1: + dependencies: + spdx-exceptions: 2.5.0 + spdx-license-ids: 3.0.20 + + spdx-expression-parse@4.0.0: + dependencies: + spdx-exceptions: 2.5.0 + spdx-license-ids: 3.0.20 + + spdx-license-ids@3.0.20: {} + split2@4.2.0: {} sprintf-js@1.0.3: {} sprintf-js@1.1.3: {} + stable-hash@0.0.4: {} + stackback@0.0.2: {} std-env@3.7.0: {} @@ -7055,6 +8578,10 @@ snapshots: strip-final-newline@3.0.0: {} + strip-indent@3.0.0: + dependencies: + min-indent: 1.0.1 + strip-json-comments@2.0.1: {} strip-json-comments@3.1.1: {} @@ -7073,6 +8600,17 @@ snapshots: supports-preserve-symlinks-flag@1.0.0: {} + synckit@0.6.2: + dependencies: + tslib: 2.6.3 + + synckit@0.9.2: + dependencies: + '@pkgr/core': 0.1.1 + tslib: 2.6.3 + + tapable@2.2.1: {} + test-exclude@7.0.1: dependencies: '@istanbuljs/schema': 0.1.3 @@ -7110,12 +8648,20 @@ snapshots: dependencies: is-number: 7.0.0 + toml-eslint-parser@0.10.0: + dependencies: + eslint-visitor-keys: 3.4.3 + totalist@3.0.1: {} ts-api-utils@1.3.0(typescript@5.4.2): dependencies: typescript: 5.4.2 + ts-api-utils@1.3.0(typescript@5.5.4): + dependencies: + typescript: 5.5.4 + tslib@2.6.3: {} type-check@0.4.0: @@ -7126,6 +8672,10 @@ snapshots: type-fest@0.21.3: {} + type-fest@0.6.0: {} + + type-fest@0.8.1: {} + type-fest@1.4.0: {} type-fest@2.19.0: {} @@ -7152,12 +8702,37 @@ snapshots: dependencies: crypto-random-string: 4.0.0 + unist-util-is@6.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-stringify-position@4.0.0: + dependencies: + '@types/unist': 3.0.3 + + unist-util-visit-parents@6.0.1: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.0 + + unist-util-visit@5.0.0: + dependencies: + '@types/unist': 3.0.3 + unist-util-is: 6.0.0 + unist-util-visit-parents: 6.0.1 + universal-user-agent@6.0.1: {} universalify@0.1.2: {} universalify@2.0.1: {} + update-browserslist-db@1.1.1(browserslist@4.24.0): + dependencies: + browserslist: 4.24.0 + escalade: 3.2.0 + picocolors: 1.1.0 + update-notifier@7.1.0: dependencies: boxen: 7.1.1 @@ -7181,6 +8756,11 @@ snapshots: util-deprecate@1.0.2: {} + validate-npm-package-license@3.0.4: + dependencies: + spdx-correct: 3.2.0 + spdx-expression-parse: 3.0.1 + vite-node@2.1.1(@types/node@22.0.0): dependencies: cac: 6.7.14 @@ -7310,10 +8890,10 @@ snapshots: vscode-uri@3.0.8: {} - vue-eslint-parser@9.4.3(eslint@9.8.0): + vue-eslint-parser@9.4.3(eslint@8.57.0): dependencies: debug: 4.3.7 - eslint: 9.8.0 + eslint: 8.57.0 eslint-scope: 7.2.2 eslint-visitor-keys: 3.4.3 espree: 9.6.1 @@ -7435,6 +9015,12 @@ snapshots: yallist@4.0.0: {} + yaml-eslint-parser@1.2.3: + dependencies: + eslint-visitor-keys: 3.4.3 + lodash: 4.17.21 + yaml: 2.5.1 + yaml@2.5.1: {} yargs-parser@21.1.1: {} @@ -7454,3 +9040,5 @@ snapshots: yocto-queue@1.1.1: {} yoctocolors-cjs@2.1.2: {} + + zwitch@2.0.4: {} diff --git a/src/images-optimization.test.ts b/src/images-optimization.test.ts index e236056..5617bc0 100644 --- a/src/images-optimization.test.ts +++ b/src/images-optimization.test.ts @@ -1,198 +1,198 @@ -import { describe, expect, it, vi } from 'vitest' +import { describe, expect, it, vi } from 'vitest'; -import { optimizeImage } from './images-optimization' +import { optimizeImage } from './images-optimization'; describe('images-optimization', () => { it('should return the original src if no options are passed', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src) - expect(resultSrc).toBe(src) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src); + expect(resultSrc).toBe(src); + }); it('should return an empty attr object if no options are passed', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { attrs } = optimizeImage(src) - expect(attrs).toEqual({}) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { attrs } = optimizeImage(src); + expect(attrs).toEqual({}); + }); it('should provide server-side WebP support detection if option is true', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, true) - expect(resultSrc).toBe(`${src}/m/`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, true); + expect(resultSrc).toBe(`${src}/m/`); + }); it('should add width and height to the src if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, { width: 800, height: 600 }) - expect(resultSrc).toBe(`${src}/m/800x600/`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, { width: 800, height: 600 }); + expect(resultSrc).toBe(`${src}/m/800x600/`); + }); it('should not add width to the src if width is not a number', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { width: '800', height: 600 }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Width value must be a number greater than 0') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { width: '800', height: 600 }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Width value must be a number greater than 0'); + consoleWarnSpy.mockRestore(); + }); it('should not add width to the src if width is less than 0', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { width: -800, height: 600 }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Width value must be a number greater than 0') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { width: -800, height: 600 }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Width value must be a number greater than 0'); + consoleWarnSpy.mockRestore(); + }); it('should add width to the attrs if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { attrs } = optimizeImage(src, { width: 800, height: 600 }) - expect(attrs).toEqual({ width: 800, height: 600 }) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { attrs } = optimizeImage(src, { width: 800, height: 600 }); + expect(attrs).toEqual({ width: 800, height: 600 }); + }); it('should not add height to the src if height is not a number', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { width: 800, height: '600' }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Height value must be a number greater than 0') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { width: 800, height: '600' }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Height value must be a number greater than 0'); + consoleWarnSpy.mockRestore(); + }); it('should not add height to the src if height is less than 0', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { width: 800, height: -600 }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Height value must be a number greater than 0') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { width: 800, height: -600 }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Height value must be a number greater than 0'); + consoleWarnSpy.mockRestore(); + }); it('should add loading attribute if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { attrs } = optimizeImage(src, { loading: 'lazy' }) - expect(attrs).toEqual({ loading: 'lazy' }) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { attrs } = optimizeImage(src, { loading: 'lazy' }); + expect(attrs).toEqual({ loading: 'lazy' }); + }); it('should add class attribute if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { attrs } = optimizeImage(src, { class: 'doge' }) - expect(attrs).toEqual({ class: 'doge' }) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { attrs } = optimizeImage(src, { class: 'doge' }); + expect(attrs).toEqual({ class: 'doge' }); + }); it('should add blur filter if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, { filters: { blur: 5 } }) - expect(resultSrc).toBe(`${src}/m/filters:blur(5)`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, { filters: { blur: 5 } }); + expect(resultSrc).toBe(`${src}/m/filters:blur(5)`); + }); it('should not add blur filter if value is not a number', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { filters: { blur: '5' } }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Blur value must be a number between 0 and 100 (inclusive)') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { filters: { blur: '5' } }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Blur value must be a number between 0 and 100 (inclusive)'); + consoleWarnSpy.mockRestore(); + }); it('should not add blur filter if value is less than 0', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { filters: { blur: -5 } }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Blur value must be a number between 0 and 100 (inclusive)') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { filters: { blur: -5 } }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Blur value must be a number between 0 and 100 (inclusive)'); + consoleWarnSpy.mockRestore(); + }); it('should not add blur filter if value is greater than 100', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { filters: { blur: 105 } }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Blur value must be a number between 0 and 100 (inclusive)') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { filters: { blur: 105 } }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Blur value must be a number between 0 and 100 (inclusive)'); + consoleWarnSpy.mockRestore(); + }); it('should add brightness filter if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, { filters: { brightness: 0.5 } }) - expect(resultSrc).toBe(`${src}/m/filters:brightness(0.5)`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, { filters: { brightness: 0.5 } }); + expect(resultSrc).toBe(`${src}/m/filters:brightness(0.5)`); + }); it('should not add brightness filter if value is not a number', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { filters: { brightness: '0.5' } }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Brightness value must be a number between 0 and 100 (inclusive)') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { filters: { brightness: '0.5' } }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Brightness value must be a number between 0 and 100 (inclusive)'); + consoleWarnSpy.mockRestore(); + }); it('should not add brightness filter if value is less than 0', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { filters: { brightness: -0.5 } }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Brightness value must be a number between 0 and 100 (inclusive)') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { filters: { brightness: -0.5 } }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Brightness value must be a number between 0 and 100 (inclusive)'); + consoleWarnSpy.mockRestore(); + }); it('should not add brightness filter if value is greater than 100', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { filters: { brightness: 105 } }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Brightness value must be a number between 0 and 100 (inclusive)') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { filters: { brightness: 105 } }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Brightness value must be a number between 0 and 100 (inclusive)'); + consoleWarnSpy.mockRestore(); + }); it('should add fill filter if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, { filters: { fill: 'transparent' } }) - expect(resultSrc).toBe(`${src}/m/filters:fill(transparent)`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, { filters: { fill: 'transparent' } }); + expect(resultSrc).toBe(`${src}/m/filters:fill(transparent)`); + }); it('should add grayscale filter if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, { filters: { grayscale: true } }) - expect(resultSrc).toBe(`${src}/m/filters:grayscale()`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, { filters: { grayscale: true } }); + expect(resultSrc).toBe(`${src}/m/filters:grayscale()`); + }); it('should add quality filter if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, { filters: { quality: 80 } }) - expect(resultSrc).toBe(`${src}/m/filters:quality(80)`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, { filters: { quality: 80 } }); + expect(resultSrc).toBe(`${src}/m/filters:quality(80)`); + }); it('should not add quality filter if value is not a number', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { filters: { quality: '80' } }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Quality value must be a number between 0 and 100 (inclusive)') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { filters: { quality: '80' } }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Quality value must be a number between 0 and 100 (inclusive)'); + consoleWarnSpy.mockRestore(); + }); it('should not add quality filter if value is less than 0', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { filters: { quality: -80 } }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Quality value must be a number between 0 and 100 (inclusive)') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { filters: { quality: -80 } }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Quality value must be a number between 0 and 100 (inclusive)'); + consoleWarnSpy.mockRestore(); + }); it('should not add quality filter if value is greater than 100', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const consoleWarnSpy = vi.spyOn(console, 'warn') - optimizeImage(src, { filters: { quality: 105 } }) - expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Quality value must be a number between 0 and 100 (inclusive)') - consoleWarnSpy.mockRestore() - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const consoleWarnSpy = vi.spyOn(console, 'warn'); + optimizeImage(src, { filters: { quality: 105 } }); + expect(consoleWarnSpy).toBeCalledWith('[StoryblokRichText] - Quality value must be a number between 0 and 100 (inclusive)'); + consoleWarnSpy.mockRestore(); + }); it('should add rotate filter if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, { filters: { rotate: 90 } }) - expect(resultSrc).toBe(`${src}/m/filters:rotate(90)`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, { filters: { rotate: 90 } }); + expect(resultSrc).toBe(`${src}/m/filters:rotate(90)`); + }); it('should add format filter if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, { filters: { format: 'webp' } }) - expect(resultSrc).toBe(`${src}/m/filters:format(webp)`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, { filters: { format: 'webp' } }); + expect(resultSrc).toBe(`${src}/m/filters:format(webp)`); + }); it('should add multiple filters if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; const filters = { blur: 5, brightness: 0.5, @@ -201,43 +201,43 @@ describe('images-optimization', () => { quality: 80, rotate: 90, format: 'webp', - } - const { src: resultSrc } = optimizeImage(src, { filters }) - expect(resultSrc).toBe(`${src}/m/filters:blur(5):quality(80):brightness(0.5):fill(transparent):grayscale():rotate(90):format(webp)`) - }) + }; + const { src: resultSrc } = optimizeImage(src, { filters }); + expect(resultSrc).toBe(`${src}/m/filters:blur(5):quality(80):brightness(0.5):fill(transparent):grayscale():rotate(90):format(webp)`); + }); it('should not add filters if options filter is empty', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const { src: resultSrc } = optimizeImage(src, { filters: {} }) - expect(resultSrc).toBe(`${src}/m/`) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const { src: resultSrc } = optimizeImage(src, { filters: {} }); + expect(resultSrc).toBe(`${src}/m/`); + }); it('should add srcset attribute if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const srcset = [400, 800, 1200] - const { attrs } = optimizeImage(src, { srcset }) - expect(attrs).toEqual({ srcset: 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/400x0/ 400w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/800x0/ 800w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/1200x0/ 1200w' }) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const srcset = [400, 800, 1200]; + const { attrs } = optimizeImage(src, { srcset }); + expect(attrs).toEqual({ srcset: 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/400x0/ 400w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/800x0/ 800w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/1200x0/ 1200w' }); + }); it('should add srcset attribute with width and height if provided as an array of arrays', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const srcset = [[400, 300], [800, 600], [1200, 900]] - const { attrs } = optimizeImage(src, { srcset }) - expect(attrs).toEqual({ srcset: 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/400x300/ 400w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/800x600/ 800w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/1200x900/ 1200w' }) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const srcset = [[400, 300], [800, 600], [1200, 900]]; + const { attrs } = optimizeImage(src, { srcset }); + expect(attrs).toEqual({ srcset: 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/400x300/ 400w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/800x600/ 800w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/1200x900/ 1200w' }); + }); it('should add sizes attribute if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const sizes = ['(min-width: 600px) 50vw', '100vw'] - const { attrs } = optimizeImage(src, { sizes }) - expect(attrs).toEqual({ sizes: '(min-width: 600px) 50vw, 100vw' }) - }) + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const sizes = ['(min-width: 600px) 50vw', '100vw']; + const { attrs } = optimizeImage(src, { sizes }); + expect(attrs).toEqual({ sizes: '(min-width: 600px) 50vw, 100vw' }); + }); it('should add srcset and sizes attributes if provided', async () => { - const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg' - const srcset = [400, 800, 1200] - const sizes = ['(min-width: 600px) 50vw', '100vw'] - const { attrs } = optimizeImage(src, { srcset, sizes }) - expect(attrs).toEqual({ srcset: 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/400x0/ 400w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/800x0/ 800w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/1200x0/ 1200w', sizes: '(min-width: 600px) 50vw, 100vw' }) - }) -}) \ No newline at end of file + const src = 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg'; + const srcset = [400, 800, 1200]; + const sizes = ['(min-width: 600px) 50vw', '100vw']; + const { attrs } = optimizeImage(src, { srcset, sizes }); + expect(attrs).toEqual({ srcset: 'https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/400x0/ 400w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/800x0/ 800w, https://a.storyblok.com/f/279818/710x528/c53330ed26/tresjs-doge.jpg/m/1200x0/ 1200w', sizes: '(min-width: 600px) 50vw, 100vw' }); + }); +}); diff --git a/src/images-optimization.ts b/src/images-optimization.ts index 4adfa12..43c0c98 100644 --- a/src/images-optimization.ts +++ b/src/images-optimization.ts @@ -1,7 +1,9 @@ -import { StoryblokRichTextImageOptimizationOptions } from "./types"; +import type { StoryblokRichTextImageOptimizationOptions } from './types'; -export function optimizeImage(src: string, options?: boolean | Partial): { src: string, attrs: Record} { - if (!options) return {src, attrs: {}}; +export function optimizeImage(src: string, options?: boolean | Partial): { src: string; attrs: Record } { + if (!options) { + return { src, attrs: {} }; + } let w = 0; let h = 0; const attrs: Record = {}; @@ -10,32 +12,38 @@ export function optimizeImage(src: string, options?: boolean | Partial= max) { console.warn(`[StoryblokRichText] - ${filter.charAt(0).toUpperCase() + filter.slice(1)} value must be a number between ${min} and ${max} (inclusive)`); - } else { + } + else { filterParams.push(`${filter}(${value})`); } } - if(typeof options === 'object') { - if (typeof options.width === 'number' && options.width > 0) { - attrs.width = options.width; - w = options.width; - } else { - console.warn("[StoryblokRichText] - Width value must be a number greater than 0"); - } - if (options.height && typeof options.height === 'number' && options.height > 0) { - attrs.height = options.height; - h = options.height; - } else { - console.warn("[StoryblokRichText] - Height value must be a number greater than 0"); - } - if(options.loading && ['lazy', 'eager'].includes(options.loading)) attrs.loading = options.loading; - if(options.class) attrs.class = options.class; - + if (typeof options === 'object') { + if (typeof options.width === 'number' && options.width > 0) { + attrs.width = options.width; + w = options.width; + } + else { + console.warn('[StoryblokRichText] - Width value must be a number greater than 0'); + } + if (options.height && typeof options.height === 'number' && options.height > 0) { + attrs.height = options.height; + h = options.height; + } + else { + console.warn('[StoryblokRichText] - Height value must be a number greater than 0'); + } + if (options.loading && ['lazy', 'eager'].includes(options.loading)) { + attrs.loading = options.loading; + } + if (options.class) { + attrs.class = options.class; + } - if(options.filters) { + if (options.filters) { const { filters } = options || {}; const { blur, brightness, fill, format, grayscale, quality, rotate } = filters || {}; - + if (blur) { validateAndPushFilterParam(blur, 0, 100, 'blur', filterParams); } @@ -45,21 +53,33 @@ export function optimizeImage(src: string, options?: boolean | Partial { if (typeof entry === 'number') { - return `${src}/m/${entry}x0/${filterParams.length > 0 ? 'filters:' + filterParams.join(':') : ''} ${entry}w`; + return `${src}/m/${entry}x0/${filterParams.length > 0 ? `filters:${filterParams.join(':')}` : ''} ${entry}w`; } if (Array.isArray(entry) && entry.length === 2) { const [entryWidth, entryHeight] = entry; - return `${src}/m/${entryWidth}x${entryHeight}/${filterParams.length > 0 ? 'filters:' + filterParams.join(':') : ''} ${entryWidth}w`; + return `${src}/m/${entryWidth}x${entryHeight}/${filterParams.length > 0 ? `filters:${filterParams.join(':')}` : ''} ${entryWidth}w`; + } + else { + console.warn('[StoryblokRichText] - srcset entry must be a number or a tuple of two numbers'); + return undefined; } }).join(', '); } @@ -69,19 +89,19 @@ export function optimizeImage(src: string, options?: boolean | Partial 0 && h > 0) { + if (w > 0 && h > 0) { resultSrc = `${resultSrc}${w}x${h}/`; } - if(filterParams.length > 0) { + if (filterParams.length > 0) { resultSrc = `${resultSrc}filters:${filterParams.join(':')}`; } - + return { src: resultSrc, attrs, }; -} \ No newline at end of file +} diff --git a/src/index.ts b/src/index.ts index e731feb..4528752 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,2 +1,2 @@ -export * from './types' -export * from './richtext' +export * from './richtext'; +export * from './types'; diff --git a/src/richtext.test.ts b/src/richtext.test.ts index 5d3722a..450f04d 100644 --- a/src/richtext.test.ts +++ b/src/richtext.test.ts @@ -1,15 +1,14 @@ - -import { describe, expect, it } from 'vitest' -import { richTextResolver } from './richtext' -import { h, createTextVNode } from 'vue' -import type { VNode } from 'vue' -import { BlockTypes, MarkTypes, NodeResolver, type Node } from './types' -import { StoryblokComponent } from '@storyblok/vue' +import { describe, expect, it } from 'vitest'; +import { richTextResolver } from './richtext'; +import { createTextVNode, h } from 'vue'; +import type { VNode } from 'vue'; +import type { BlockTypes, MarkTypes, type Node, NodeResolver } from './types'; +import { StoryblokComponent } from '@storyblok/vue'; describe('richtext', () => { - describe('Blocktypes', () => { + describe('blocktypes', () => { it('should render a paragraph', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const paragraph = { type: 'paragraph', content: [ @@ -18,13 +17,13 @@ describe('richtext', () => { text: 'Hello, world!', }, ], - } - const html = render(paragraph as Node) - expect(html).toBe('

Hello, world!

') - }) - + }; + const html = render(paragraph as Node); + expect(html).toBe('

Hello, world!

'); + }); + it('should render a heading 1', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const heading = { type: 'heading', attrs: { @@ -36,13 +35,13 @@ describe('richtext', () => { type: 'text', }, ], - } - const html = render(heading as Node) - expect(html).toBe('

Headline 1

') - }) - + }; + const html = render(heading as Node); + expect(html).toBe('

Headline 1

'); + }); + it('should render an unordered list', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const list = { type: 'bullet_list', content: [ @@ -65,13 +64,13 @@ describe('richtext', () => { ], }, ], - } - const html = render(list as Node) - expect(html).toBe('
  • Item 1
  • Item 2
') - }) - + }; + const html = render(list as Node); + expect(html).toBe('
  • Item 1
  • Item 2
'); + }); + it('should render an ordered list', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const list = { type: 'ordered_list', attrs: { order: 1 }, @@ -95,13 +94,13 @@ describe('richtext', () => { ], }, ], - } - const html = render(list as Node) - expect(html).toBe('
  1. Item 1
  2. Item 2
') - }) - + }; + const html = render(list as Node); + expect(html).toBe('
  1. Item 1
  2. Item 2
'); + }); + it('should render an image with attrs', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const image = { type: 'image', attrs: { @@ -116,45 +115,47 @@ describe('richtext', () => { source: 'Storyblok', }, }, - } - const html = render(image as Node) - expect(html).toBe('An image') - }) + }; + const html = render(image as Node); + expect(html).toBe('An image'); + }); it('should render self-closing tags', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const selfClosingBlockTypes = [ - 'HR', 'BR', 'IMAGE' - ] + 'HR', + 'BR', + 'IMAGE', + ]; const tagMap = { HR: 'hr', BR: 'br', IMAGE: 'img', - } + }; selfClosingBlockTypes.forEach((type, index) => { const node = { type: BlockTypes[type as keyof typeof BlockTypes], - } - const html = render(node as Node) - - expect(html).toBe(`<${tagMap[type]} key="${tagMap[type]}-${index + 1}" />`) - }) - }) - + }; + const html = render(node as Node); + + expect(html).toBe(`<${tagMap[type]} key="${tagMap[type]}-${index + 1}" />`); + }); + }); + it('should render an emoji', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const emoji = { type: 'emoji', attrs: { emoji: '🚀', }, - } - const html = render(emoji as Node) - expect(html).toBe('undefined') - }) - + }; + const html = render(emoji as Node); + expect(html).toBe('undefined'); + }); + it('should render a code block', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const code = { type: 'code_block', content: [ @@ -163,31 +164,31 @@ describe('richtext', () => { type: 'text', }, ], - } - const html = render(code as Node) - expect(html).toBe('
console.log("Hello, world!")
') - }) - + }; + const html = render(code as Node); + expect(html).toBe('
console.log("Hello, world!")
'); + }); + it('should render a horizontal rule', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const hr = { type: 'horizontal_rule', - } - const html = render(hr as Node) - expect(html).toBe('
') - }) - + }; + const html = render(hr as Node); + expect(html).toBe('
'); + }); + it('should render a break', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const br = { type: 'hard_break', - } - const html = render(br as Node) - expect(html).toBe('
') - }) - - it('should render a quote' , async () => { - const { render } = richTextResolver({}) + }; + const html = render(br as Node); + expect(html).toBe('
'); + }); + + it('should render a quote', async () => { + const { render } = richTextResolver({}); const quote = { type: 'blockquote', content: [ @@ -201,15 +202,15 @@ describe('richtext', () => { ], }, ], - } - const html = render(quote as Node) - expect(html).toBe('

Quote

') - }) - }) + }; + const html = render(quote as Node); + expect(html).toBe('

Quote

'); + }); + }); - describe('TextTypes & MarksTypes', () => { + describe('textTypes & MarksTypes', () => { it('should render text with marks', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const text = { type: 'paragraph', content: [ @@ -219,13 +220,13 @@ describe('richtext', () => { marks: [{ type: 'bold' }, { type: 'italic' }], }, ], - } - const html = render(text as Node) - expect(html).toBe('

Bold and italic

') - }) - + }; + const html = render(text as Node); + expect(html).toBe('

Bold and italic

'); + }); + it('should render text with styled marks', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const text = { type: 'paragraph', content: [ @@ -235,14 +236,14 @@ describe('richtext', () => { marks: [{ type: 'styled', attrs: { color: 'red' } }, { type: 'styled', attrs: { color: 'blue' } }], }, ], - } - const html = render(text as Node) + }; + const html = render(text as Node); // Update the expected HTML to reflect the styles - expect(html).toBe('

Bold and italic

') - }) - + expect(html).toBe('

Bold and italic

'); + }); + it('should render an external link', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const link = { text: 'External link', type: 'text', @@ -256,13 +257,13 @@ describe('richtext', () => { }, }, ], - } - const html = render(link as Node) - expect(html).toBe('External link') - }) - + }; + const html = render(link as Node); + expect(html).toBe('External link'); + }); + it('should render an anchor link', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const link = { text: 'Anchor link', type: 'text', @@ -276,13 +277,13 @@ describe('richtext', () => { }, }, ], - } - const html = render(link as Node) - expect(html).toBe('Anchor link') - }) - + }; + const html = render(link as Node); + expect(html).toBe('Anchor link'); + }); + it('should render an email link', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const link = { text: 'hola@alvarosaburido.dev', type: 'text', @@ -295,13 +296,13 @@ describe('richtext', () => { }, }, ], - } - const html = render(link as Node) - expect(html).toBe('hola@alvarosaburido.dev') - }) - + }; + const html = render(link as Node); + expect(html).toBe('hola@alvarosaburido.dev'); + }); + it('should render an internal link', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const link = { text: 'Internal Link', type: 'text', @@ -317,13 +318,13 @@ describe('richtext', () => { }, }, ], - } - const html = render(link as Node) - expect(html).toBe('Internal Link') - }) - + }; + const html = render(link as Node); + expect(html).toBe('Internal Link'); + }); + it('should render an asset link', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const link = { text: 'Asset link', type: 'text', @@ -336,104 +337,104 @@ describe('richtext', () => { }, }, ], - } - const html = render(link as Node) - expect(html).toBe('Asset link') - }) - + }; + const html = render(link as Node); + expect(html).toBe('Asset link'); + }); + it('should render a bold text', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const bold = { text: 'Bold', type: 'text', marks: [{ type: 'bold' }], - } - const html = render(bold as Node) - expect(html).toBe('Bold') - }) - + }; + const html = render(bold as Node); + expect(html).toBe('Bold'); + }); + it('should render an italic text', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const italic = { text: 'Italic', type: 'text', marks: [{ type: 'italic' }], - } - const html = render(italic as Node) - expect(html).toBe('Italic') - }) - + }; + const html = render(italic as Node); + expect(html).toBe('Italic'); + }); + it('should render a underline text', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const underline = { text: 'Underline', type: 'text', marks: [{ type: 'underline' }], - } - const html = render(underline as Node) - expect(html).toBe('Underline') - }) - + }; + const html = render(underline as Node); + expect(html).toBe('Underline'); + }); + it('should render a strike text', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const strike = { text: 'Strike', type: 'text', marks: [{ type: 'strike' }], - } - const html = render(strike as Node) - expect(html).toBe('Strike') - }) - + }; + const html = render(strike as Node); + expect(html).toBe('Strike'); + }); + it('should render a code text', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const code = { text: 'Code', type: 'text', marks: [{ type: 'code' }], - } - const html = render(code as Node) - expect(html).toBe('Code') - }) - + }; + const html = render(code as Node); + expect(html).toBe('Code'); + }); + it('should render a superscript text', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const superscript = { text: 'Superscript', type: 'text', marks: [{ type: 'superscript' }], - } - const html = render(superscript as Node) - expect(html).toBe('Superscript') - }) - + }; + const html = render(superscript as Node); + expect(html).toBe('Superscript'); + }); + it('should render a subscript text', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const subscript = { text: 'Subscript', type: 'text', marks: [{ type: 'subscript' }], - } - const html = render(subscript as Node) - expect(html).toBe('Subscript') - }) - + }; + const html = render(subscript as Node); + expect(html).toBe('Subscript'); + }); + it('should render a highlight text', async () => { - const { render } = richTextResolver({}) + const { render } = richTextResolver({}); const highlight = { text: 'Highlight', type: 'text', marks: [{ type: 'highlight' }], - } - const html = render(highlight as Node) - expect(html).toBe('Highlight') - }) - }) - describe('Frameworks', () => { + }; + const html = render(highlight as Node); + expect(html).toBe('Highlight'); + }); + }); + describe('frameworks', () => { it('should use the framework render function', async () => { const { render } = richTextResolver({ - renderFn: h - }) + renderFn: h, + }); const paragraph = { type: 'paragraph', content: [ @@ -442,16 +443,16 @@ describe('richtext', () => { text: 'Hello, world!', }, ], - } - const vnode = render(paragraph as Node) - expect(vnode.__v_isVNode).toBeTruthy() - expect(vnode.type).toBe('p') - }) + }; + const vnode = render(paragraph as Node); + expect(vnode.__v_isVNode).toBeTruthy(); + expect(vnode.type).toBe('p'); + }); it('should use the framework text function', async () => { const { render } = richTextResolver({ renderFn: h, - textFn: createTextVNode - }) + textFn: createTextVNode, + }); const paragraph = { type: 'paragraph', content: [ @@ -460,21 +461,21 @@ describe('richtext', () => { text: 'Hello, world!', }, ], - } - const vnode = render(paragraph as Node) - expect(vnode?.children[0].children).toBe('Hello, world!') - }) + }; + const vnode = render(paragraph as Node); + expect(vnode?.children[0].children).toBe('Hello, world!'); + }); it('should overwrite a resolver', async () => { - const RouterLink = h('span') + const RouterLink = h('span'); const { render } = richTextResolver({ resolvers: { [MarkTypes.LINK]: (node: Node) => h(RouterLink, { to: node.attrs?.href, target: node.attrs?.target, - }, node.text) - } - }) + }, node.text), + }, + }); const link = { text: 'Internal Link', type: 'text', @@ -490,26 +491,26 @@ describe('richtext', () => { }, }, ], - } - const node = render(link as Node) - expect(node.type).toBe('span') - expect(node.props.to).toBe('/about') - }) + }; + const node = render(link as Node); + expect(node.type).toBe('span'); + expect(node.props.to).toBe('/about'); + }); it('should render a blok component', async () => { const componentResolver: NodeResolver = (node: Node): VNode => { return h(StoryblokComponent, { blok: node?.attrs?.body[0], id: node.attrs?.id, - }, node.children) - } + }, node.children); + }; const { render } = richTextResolver({ renderFn: h, textFn: createTextVNode, resolvers: { [BlockTypes.COMPONENT]: componentResolver, - } - }) + }, + }); const paragraph = { type: 'blok', attrs: { @@ -529,9 +530,9 @@ describe('richtext', () => { }, ], }, - } - const vnode = render(paragraph as Node) - expect(vnode.props.blok.component).toBe('test-button') - }) - }) -}) + }; + const vnode = render(paragraph as Node); + expect(vnode.props.blok.component).toBe('test-button'); + }); + }); +}); diff --git a/src/richtext.ts b/src/richtext.ts index e1ae677..cf27e02 100644 --- a/src/richtext.ts +++ b/src/richtext.ts @@ -1,25 +1,25 @@ -import { optimizeImage } from './images-optimization' -import { BlockTypes, LinkTypes, MarkTypes, TextTypes, StoryblokRichTextOptions } from './types' -import type { MarkNode, StoryblokRichTextNode, StoryblokRichTextNodeResolver, StoryblokRichTextNodeTypes, TextNode } from './types' -import { attrsToString, attrsToStyle, cleanObject, escapeHtml, SELF_CLOSING_TAGS } from './utils' +import { optimizeImage } from './images-optimization'; +import { BlockTypes, LinkTypes, MarkTypes, TextTypes } from './types'; +import type { MarkNode, StoryblokRichTextNode, StoryblokRichTextNodeResolver, StoryblokRichTextNodeTypes, StoryblokRichTextOptions, TextNode } from './types'; +import { attrsToString, attrsToStyle, cleanObject, escapeHtml, SELF_CLOSING_TAGS } from './utils'; /** * Default render function that creates an HTML string for a given tag, attributes, and children. * * @template T * @param {string} tag - * @param {Record} [attrs={}] + * @param {Record} [attrs] * @param {T} children * @return {*} {T} */ function defaultRenderFn(tag: string, attrs: Record = {}, children: T): T { - const attrsString = attrsToString(attrs) - const tagString = attrsString ? `${tag} ${attrsString}` : tag + const attrsString = attrsToString(attrs); + const tagString = attrsString ? `${tag} ${attrsString}` : tag; - if(SELF_CLOSING_TAGS.includes(tag)) { - return `<${tagString} />` as unknown as T + if (SELF_CLOSING_TAGS.includes(tag)) { + return `<${tagString} />` as unknown as T; } - return `<${tagString}>${Array.isArray(children) ? children.join('') : children || ''}` as unknown as T + return `<${tagString}>${Array.isArray(children) ? children.join('') : children || ''}` as unknown as T; } /** @@ -27,28 +27,27 @@ function defaultRenderFn(tag: string, attrs: Record} [options={}] - * @return {*} + * @param {StoryblokRichTextOptions} [options] + * @return {*} */ -export function richTextResolver(options: StoryblokRichTextOptions = {} ) { +export function richTextResolver(options: StoryblokRichTextOptions = {}) { // Creates an HTML string for a given tag, attributes, and children - let currentKey = 0 + let currentKey = 0; const { renderFn = defaultRenderFn, textFn = escapeHtml, resolvers = {}, optimizeImages = false, - } = options + } = options; - - const nodeResolver = (tag: string): StoryblokRichTextNodeResolver => (node: StoryblokRichTextNode): T => renderFn(tag, { ...node.attrs, key: `${tag}-${currentKey}` } || {}, node.children || null as any) as T + const nodeResolver = (tag: string): StoryblokRichTextNodeResolver => (node: StoryblokRichTextNode): T => renderFn(tag, { ...node.attrs, key: `${tag}-${currentKey}` } || {}, node.children || null as any) as T; const imageResolver: StoryblokRichTextNodeResolver = (node: StoryblokRichTextNode) => { const { src, alt, title, srcset, sizes } = node.attrs || {}; let finalSrc = src; let finalAttrs = {}; - if(optimizeImages) { + if (optimizeImages) { const { src: optimizedSrc, attrs: optimizedAttrs } = optimizeImage(src, optimizeImages); finalSrc = optimizedSrc; finalAttrs = optimizedAttrs; @@ -66,9 +65,9 @@ export function richTextResolver(options: StoryblokRichTextOptions = {} ) return renderFn('img', cleanObject(imgAttrs), '') as T; }; const headingResolver: StoryblokRichTextNodeResolver = (node: StoryblokRichTextNode): T => { - const { level, ...rest } = node.attrs || {} - return renderFn(`h${level}`, { ...rest, key: `h${level}-${currentKey}` } || {}, node.children as any) as T - } + const { level, ...rest } = node.attrs || {}; + return renderFn(`h${level}`, { ...rest, key: `h${level}-${currentKey}` } || {}, node.children as any) as T; + }; const emojiResolver: StoryblokRichTextNodeResolver = (node: StoryblokRichTextNode) => renderFn('span', { 'data-type': 'emoji', @@ -81,11 +80,11 @@ export function richTextResolver(options: StoryblokRichTextOptions = {} ) style: 'width: 1.25em; height: 1.25em; vertical-align: text-top', draggable: 'false', loading: 'lazy', - }, '' as any)) as T + }, '' as any)) as T; const codeBlockResolver: StoryblokRichTextNodeResolver = (node: StoryblokRichTextNode): T => { - return renderFn('pre', { ...node.attrs, key: `code-${currentKey}` } || {}, renderFn('code', { key: `code-${currentKey}` }, node.children || '' as any)) as T - } + return renderFn('pre', { ...node.attrs, key: `code-${currentKey}` } || {}, renderFn('code', { key: `code-${currentKey}` }, node.children || '' as any)) as T; + }; // Mark resolver for text formatting const markResolver = (tag: string, styled = false): StoryblokRichTextNodeResolver => ({ text, attrs }): T => { @@ -94,18 +93,18 @@ export function richTextResolver(options: StoryblokRichTextOptions = {} ) style: attrsToStyle(attrs), key: `${tag}-${currentKey}`, } - : { ...attrs, key: `${tag}-${currentKey}` } || {}, text as any) as T - } + : { ...attrs, key: `${tag}-${currentKey}` } || {}, text as any) as T; + }; const renderToT = (node: any): T => { // Implementation that ensures the return type is T // This might involve checking the type of T and handling accordingly - return render(node) as unknown as T - } + return render(node) as unknown as T; + }; // Resolver for plain text nodes const textResolver: StoryblokRichTextNodeResolver = (node: StoryblokRichTextNode): T => { - const { marks, ...rest } = node as TextNode + const { marks, ...rest } = node as TextNode; if ('text' in node) { // Now TypeScript knows that 'node' is a TextNode, so 'marks' can be accessed @@ -114,52 +113,51 @@ export function richTextResolver(options: StoryblokRichTextOptions = {} ) (text: T, mark: MarkNode) => renderToT({ ...mark, text }) as T, // Fix: Ensure render function returns a string renderToT({ ...rest, children: rest.children as T }) as T, // Fix: Cast children to string ) - : textFn(rest.text) as T // Fix: Ensure escapeHtml returns a string + : textFn(rest.text) as T; // Fix: Ensure escapeHtml returns a string } else { - return '' as T // Fix: Ensure empty string is of type string + return '' as T; // Fix: Ensure empty string is of type string } - } + }; // Resolver for link nodes const linkResolver: StoryblokRichTextNodeResolver = (node: StoryblokRichTextNode) => { - const { linktype, href, anchor, ...rest } = node.attrs || {} + const { linktype, href, anchor, ...rest } = node.attrs || {}; - let finalHref = '' + let finalHref = ''; switch (linktype) { case LinkTypes.ASSET: case LinkTypes.URL: - finalHref = href - break + finalHref = href; + break; case LinkTypes.EMAIL: - finalHref = `mailto:${href}` - break + finalHref = `mailto:${href}`; + break; case LinkTypes.STORY: // Assuming you are not using Vue Router in a vanilla implementation. // Directly link to the story URL. - finalHref = href - break + finalHref = href; + break; default: // Optional: Handle default case or log an error. - break + break; } if (anchor) { - finalHref = `${finalHref}#${anchor}` + finalHref = `${finalHref}#${anchor}`; } - return renderFn('a', { ...rest, href: finalHref, key: `a-${currentKey}` }, node.text as any) as T - } + return renderFn('a', { ...rest, href: finalHref, key: `a-${currentKey}` }, node.text as any) as T; + }; - const componentResolver: StoryblokRichTextNodeResolver = (node: StoryblokRichTextNode): T => { - console.warn('[StoryblokRichtText] - BLOK resolver is not available for vanilla usage') + console.warn('[StoryblokRichtText] - BLOK resolver is not available for vanilla usage'); return renderFn('span', { blok: node?.attrs?.body[0], id: node.attrs?.id, key: `component-${currentKey}`, style: 'display: none', - }, '') as T - } + }, '') as T; + }; const mergedResolvers = new Map>([ [BlockTypes.DOCUMENT, nodeResolver('div')], @@ -189,26 +187,26 @@ export function richTextResolver(options: StoryblokRichTextOptions = {} ) [MarkTypes.SUBSCRIPT, markResolver('sub')], [MarkTypes.HIGHLIGHT, markResolver('mark')], ...(Object.entries(resolvers).map(([type, resolver]) => [type as StoryblokRichTextNodeTypes, resolver])) as unknown as Array<[StoryblokRichTextNodeTypes, StoryblokRichTextNodeResolver]>, - ]) + ]); function renderNode(node: StoryblokRichTextNode): T { - currentKey += 1 - const resolver = mergedResolvers.get(node.type) + currentKey += 1; + const resolver = mergedResolvers.get(node.type); if (!resolver) { - console.error('', `No resolver found for node type ${node.type}`) - return '' as unknown as T + console.error('', `No resolver found for node type ${node.type}`); + return '' as unknown as T; } if (node.type === 'text') { - return resolver(node as StoryblokRichTextNode) // Fix: Update the type of 'node' to Node + return resolver(node as StoryblokRichTextNode); // Fix: Update the type of 'node' to Node } - const children = node.content ? node.content.map(render) : undefined + const children = node.content ? node.content.map(render) : undefined; return resolver({ ...node, children: children as T, // Fix: Update the type of 'children' to Node[] - }) + }); } /** @@ -216,30 +214,30 @@ export function richTextResolver(options: StoryblokRichTextOptions = {} ) * * @param {StoryblokRichTextNode} node * @return {*} {T} - * + * * @example - * + * * ```typescript * import StoryblokClient from 'storyblok-js-client' * import { richTextResolver } from '@storyblok/richtext' - * + * * const storyblok = new StoryblokClient({ * accessToken: import.meta.env.VITE_STORYBLOK_TOKEN, * }) - * + * * const story = await client.get('cdn/stories/home', { * version: 'draft', * }) - * + * * const html = richTextResolver().render(story.data.story.content.richtext) * ``` - * + * */ function render(node: StoryblokRichTextNode): T { - return Array.isArray(node) ? node.map(renderNode) as T : renderNode(node) as T + return Array.isArray(node) ? node.map(renderNode) as T : renderNode(node) as T; } return { render, - } + }; } diff --git a/src/types/index.ts b/src/types/index.ts index a20aa4b..49a3332 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -47,27 +47,27 @@ export enum LinkTypes { } export interface StoryblokRichTextDocumentNode { - type: string, - content?: StoryblokRichTextDocumentNode[] - attrs?: Record - text?: string - marks?: StoryblokRichTextDocumentNode[] + type: string; + content?: StoryblokRichTextDocumentNode[]; + attrs?: Record; + text?: string; + marks?: StoryblokRichTextDocumentNode[]; } -export type StoryblokRichTextNodeTypes = BlockTypes | MarkTypes | TextTypes +export type StoryblokRichTextNodeTypes = BlockTypes | MarkTypes | TextTypes; export interface StoryblokRichTextNode { - type: StoryblokRichTextNodeTypes - content: StoryblokRichTextNode[] - children?: T - attrs?: Record - text?: string + type: StoryblokRichTextNodeTypes; + content: StoryblokRichTextNode[]; + children?: T; + attrs?: Record; + text?: string; } export interface LinkNode extends StoryblokRichTextNode { - type: MarkTypes.LINK | MarkTypes.ANCHOR - linktype: LinkTypes.ASSET | LinkTypes.EMAIL | LinkTypes.STORY | LinkTypes.URL - attrs: Record + type: MarkTypes.LINK | MarkTypes.ANCHOR; + linktype: LinkTypes.ASSET | LinkTypes.EMAIL | LinkTypes.STORY | LinkTypes.URL; + attrs: Record; } export interface MarkNode extends StoryblokRichTextNode { @@ -82,15 +82,15 @@ export interface MarkNode extends StoryblokRichTextNode { MarkTypes.SUPERSCRIPT | MarkTypes.SUBSCRIPT | MarkTypes.TEXT_STYLE | - MarkTypes.HIGHLIGHT - attrs?: Record - linkType: LinkTypes + MarkTypes.HIGHLIGHT; + attrs?: Record; + linkType: LinkTypes; } export interface TextNode extends StoryblokRichTextNode { - type: TextTypes.TEXT - text: string - marks?: MarkNode[] + type: TextTypes.TEXT; + text: string; + marks?: MarkNode[]; } /** @@ -99,7 +99,7 @@ export interface TextNode extends StoryblokRichTextNode { * @param node - The rich text node to resolve. * @returns The resolved value of type T. */ -export type StoryblokRichTextNodeResolver = (node: StoryblokRichTextNode | TextNode | MarkNode | LinkNode) => T +export type StoryblokRichTextNodeResolver = (node: StoryblokRichTextNode | TextNode | MarkNode | LinkNode) => T; /** * Represents the configuration options for optimizing images in rich text content. @@ -127,9 +127,9 @@ export interface StoryblokRichTextImageOptimizationOptions { /** * Optional filters that can be applied to the image to adjust its appearance. - * + * * @example - * + * * ```typescript * const filters: Partial = { * blur: 5, @@ -151,9 +151,9 @@ export interface StoryblokRichTextImageOptimizationOptions { /** * Defines a set of source set values that tell the browser different image sizes to load based on screen conditions. * The entries can be just the width in pixels or a tuple of width and pixel density. - * + * * @example - * + * * ```typescript * const srcset: (number | [number, number])[] = [ * 320, @@ -165,9 +165,9 @@ export interface StoryblokRichTextImageOptimizationOptions { /** * A list of sizes that correspond to different viewport widths, instructing the browser on which srcset source to use. - * + * * @example - * + * * ```typescript * const sizes: string[] = [ * '(max-width: 320px) 280px', @@ -179,14 +179,12 @@ export interface StoryblokRichTextImageOptimizationOptions { sizes: string[]; } - /** * Resolvers for Storyblok RichText nodes. - * + * * @template T - The type of the resolved value. */ -export type StoryblokRichTextResolvers = Partial>> - +export type StoryblokRichTextResolvers = Partial>>; /** * Represents the options for rendering rich text. @@ -194,42 +192,42 @@ export type StoryblokRichTextResolvers = Partial, text: string) => T> { /** * Defines the function that will be used to render the final HTML string (vanilla) or Framework component (React, Vue). - * - * @example - * + * + * @example + * * ```typescript * const renderFn = (tag: string, attrs: Record, text: string) => { * return `<${tag} ${Object.keys(attrs).map(key => `${key}="${attrs[key]}"`).join(' ')}>${text}` * } - * + * * const options: StoryblokRichTextOptions = { * renderFn * } * ``` */ renderFn?: S; - + /** * Defines the function that will be used to render HTML text. - * + * * @example - * + * * ```typescript * import { h, createTextVNode } from 'vue' - * + * * const options: StoryblokRichTextOptions = { * renderFn: h, * textFn: createTextVNode * } * ``` */ - textFn?: Function; - + textFn?: (text: string) => T; + /** * Defines the resolvers for each type of node. - * + * * @example - * + * * ```typescript * const options: StoryblokRichTextOptions = { * resolvers: { @@ -241,20 +239,20 @@ export interface StoryblokRichTextOptions; - + /** * Defines opt-out image optimization options. - * + * * @example - * + * * ```typescript * const options: StoryblokRichTextOptions = { * optimizeImages: true * } * ``` - * + * * @example - * + * * ```typescript * const options: StoryblokRichTextOptions = { * optimizeImages: { diff --git a/src/utils/index.ts b/src/utils/index.ts index 6c19f08..54b6cac 100644 --- a/src/utils/index.ts +++ b/src/utils/index.ts @@ -1,73 +1,83 @@ - - export const SELF_CLOSING_TAGS = [ - 'area', 'base', 'br', 'col', 'embed', 'hr', 'img', 'input', - 'link', 'meta', 'param', 'source', 'track', 'wbr' -] + 'area', + 'base', + 'br', + 'col', + 'embed', + 'hr', + 'img', + 'input', + 'link', + 'meta', + 'param', + 'source', + 'track', + 'wbr', +]; /** * Converts an object of attributes to a string. * - * @param {Record} [attrs={}] - * + * @param {Record} [attrs] + * * @returns {string} The string representation of the attributes. - * + * * @example - * + * * ```typescript * const attrs = { * class: 'text-red', * style: 'color: red', * } - * + * * const attrsString = attrsToString(attrs) - * + * * console.log(attrsString) // 'class="text-red" style="color: red"' - * + * * ``` * */ export const attrsToString = (attrs: Record = {}) => Object.keys(attrs) .map(key => `${key}="${attrs[key]}"`) - .join(' ') + .join(' '); /** * Converts an object of attributes to a CSS style string. * - * @param {Record} [attrs={}] - * + * @param {Record} [attrs] + * * @returns {string} The string representation of the CSS styles. - * + * * @example - * + * * ```typescript * const attrs = { * color: 'red', * fontSize: '16px', * } - * + * * const styleString = attrsToStyle(attrs) - * + * * console.log(styleString) // 'color: red; font-size: 16px' * ``` */ export const attrsToStyle = (attrs: Record = {}) => Object.keys(attrs) .map(key => `${key}: ${attrs[key]}`) - .join('; ') + .join('; '); /** * Escapes HTML entities in a string. * * @param {string} unsafeText * @return {*} {string} - * + * * @example - * + * * ```typescript * const unsafeText = '' - * + * * const safeText = escapeHtml(unsafeText) - * + * * console.log(safeText) // '<script>alert("Hello")</script>' * ``` */ @@ -77,29 +87,29 @@ export function escapeHtml(unsafeText: string): string { .replace(//g, '>') .replace(/"/g, '"') - .replace(/'/g, ''') + .replace(/'/g, '''); } /** * Removes undefined values from an object. - * + * * @param {Record} obj * @return {*} {Record} - * + * * @example - * + * * ```typescript * const obj = { * name: 'John', * age: undefined, * } - * + * * const cleanedObj = cleanObject(obj) - * + * * console.log(cleanedObj) // { name: 'John' } * ``` - * + * */ export const cleanObject = (obj: Record) => { - return Object.fromEntries(Object.entries(obj).filter(([_, v]) => v !== undefined)) -} \ No newline at end of file + return Object.fromEntries(Object.entries(obj).filter(([_, v]) => v !== undefined)); +}; diff --git a/tests/unit/coverage/base.css b/tests/unit/coverage/base.css index f418035..8cd9700 100644 --- a/tests/unit/coverage/base.css +++ b/tests/unit/coverage/base.css @@ -1,71 +1,129 @@ -body, html { - margin:0; padding: 0; +body, +html { + margin: 0; + padding: 0; height: 100%; } body { - font-family: Helvetica Neue, Helvetica, Arial; - font-size: 14px; - color:#333; -} -.small { font-size: 12px; } -*, *:after, *:before { - -webkit-box-sizing:border-box; - -moz-box-sizing:border-box; - box-sizing:border-box; - } -h1 { font-size: 20px; margin: 0;} -h2 { font-size: 14px; } + font-family: + Helvetica Neue, + Helvetica, + Arial; + font-size: 14px; + color: #333; +} +.small { + font-size: 12px; +} +*, +*:after, +*:before { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} +h1 { + font-size: 20px; + margin: 0; +} +h2 { + font-size: 14px; +} pre { - font: 12px/1.4 Consolas, "Liberation Mono", Menlo, Courier, monospace; - margin: 0; - padding: 0; - -moz-tab-size: 2; - -o-tab-size: 2; - tab-size: 2; -} -a { color:#0074D9; text-decoration:none; } -a:hover { text-decoration:underline; } -.strong { font-weight: bold; } -.space-top1 { padding: 10px 0 0 0; } -.pad2y { padding: 20px 0; } -.pad1y { padding: 10px 0; } -.pad2x { padding: 0 20px; } -.pad2 { padding: 20px; } -.pad1 { padding: 10px; } -.space-left2 { padding-left:55px; } -.space-right2 { padding-right:20px; } -.center { text-align:center; } -.clearfix { display:block; } + font: + 12px/1.4 Consolas, + 'Liberation Mono', + Menlo, + Courier, + monospace; + margin: 0; + padding: 0; + -moz-tab-size: 2; + -o-tab-size: 2; + tab-size: 2; +} +a { + color: #0074d9; + text-decoration: none; +} +a:hover { + text-decoration: underline; +} +.strong { + font-weight: bold; +} +.space-top1 { + padding: 10px 0 0 0; +} +.pad2y { + padding: 20px 0; +} +.pad1y { + padding: 10px 0; +} +.pad2x { + padding: 0 20px; +} +.pad2 { + padding: 20px; +} +.pad1 { + padding: 10px; +} +.space-left2 { + padding-left: 55px; +} +.space-right2 { + padding-right: 20px; +} +.center { + text-align: center; +} +.clearfix { + display: block; +} .clearfix:after { - content:''; - display:block; - height:0; - clear:both; - visibility:hidden; + content: ''; + display: block; + height: 0; + clear: both; + visibility: hidden; +} +.fl { + float: left; +} +@media only screen and (max-width: 640px) { + .col3 { + width: 100%; + max-width: 100%; + } + .hide-mobile { + display: none !important; } -.fl { float: left; } -@media only screen and (max-width:640px) { - .col3 { width:100%; max-width:100%; } - .hide-mobile { display:none!important; } } .quiet { color: #7f7f7f; - color: rgba(0,0,0,0.5); + color: rgba(0, 0, 0, 0.5); +} +.quiet a { + opacity: 0.7; } -.quiet a { opacity: 0.7; } .fraction { font-family: Consolas, 'Liberation Mono', Menlo, Courier, monospace; font-size: 10px; color: #555; - background: #E8E8E8; + background: #e8e8e8; padding: 4px 5px; border-radius: 3px; vertical-align: middle; } -div.path a:link, div.path a:visited { color: #333; } +div.path a:link, +div.path a:visited { + color: #333; +} table.coverage { border-collapse: collapse; margin: 10px 0 0 0; @@ -78,140 +136,219 @@ table.coverage td { vertical-align: top; } table.coverage td.line-count { - text-align: right; - padding: 0 5px 0 20px; + text-align: right; + padding: 0 5px 0 20px; } table.coverage td.line-coverage { - text-align: right; - padding-right: 10px; - min-width:20px; + text-align: right; + padding-right: 10px; + min-width: 20px; } table.coverage td span.cline-any { - display: inline-block; - padding: 0 5px; - width: 100%; + display: inline-block; + padding: 0 5px; + width: 100%; } .missing-if-branch { - display: inline-block; - margin-right: 5px; - border-radius: 3px; - position: relative; - padding: 0 4px; - background: #333; - color: yellow; + display: inline-block; + margin-right: 5px; + border-radius: 3px; + position: relative; + padding: 0 4px; + background: #333; + color: yellow; } .skip-if-branch { - display: none; - margin-right: 10px; - position: relative; - padding: 0 4px; - background: #ccc; - color: white; + display: none; + margin-right: 10px; + position: relative; + padding: 0 4px; + background: #ccc; + color: white; } -.missing-if-branch .typ, .skip-if-branch .typ { - color: inherit !important; +.missing-if-branch .typ, +.skip-if-branch .typ { + color: inherit !important; } .coverage-summary { border-collapse: collapse; width: 100%; } -.coverage-summary tr { border-bottom: 1px solid #bbb; } -.keyline-all { border: 1px solid #ddd; } -.coverage-summary td, .coverage-summary th { padding: 10px; } -.coverage-summary tbody { border: 1px solid #bbb; } -.coverage-summary td { border-right: 1px solid #bbb; } -.coverage-summary td:last-child { border-right: none; } +.coverage-summary tr { + border-bottom: 1px solid #bbb; +} +.keyline-all { + border: 1px solid #ddd; +} +.coverage-summary td, +.coverage-summary th { + padding: 10px; +} +.coverage-summary tbody { + border: 1px solid #bbb; +} +.coverage-summary td { + border-right: 1px solid #bbb; +} +.coverage-summary td:last-child { + border-right: none; +} .coverage-summary th { text-align: left; font-weight: normal; white-space: nowrap; } -.coverage-summary th.file { border-right: none !important; } -.coverage-summary th.pct { } +.coverage-summary th.file { + border-right: none !important; +} +.coverage-summary th.pct { +} .coverage-summary th.pic, .coverage-summary th.abs, .coverage-summary td.pct, -.coverage-summary td.abs { text-align: right; } -.coverage-summary td.file { white-space: nowrap; } -.coverage-summary td.pic { min-width: 120px !important; } -.coverage-summary tfoot td { } +.coverage-summary td.abs { + text-align: right; +} +.coverage-summary td.file { + white-space: nowrap; +} +.coverage-summary td.pic { + min-width: 120px !important; +} +.coverage-summary tfoot td { +} .coverage-summary .sorter { - height: 10px; - width: 7px; - display: inline-block; - margin-left: 0.5em; - background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; + height: 10px; + width: 7px; + display: inline-block; + margin-left: 0.5em; + background: url(sort-arrow-sprite.png) no-repeat scroll 0 0 transparent; } .coverage-summary .sorted .sorter { - background-position: 0 -20px; + background-position: 0 -20px; } .coverage-summary .sorted-desc .sorter { - background-position: 0 -10px; + background-position: 0 -10px; +} +.status-line { + height: 10px; } -.status-line { height: 10px; } /* yellow */ -.cbranch-no { background: yellow !important; color: #111; } +.cbranch-no { + background: yellow !important; + color: #111; +} /* dark red */ -.red.solid, .status-line.low, .low .cover-fill { background:#C21F39 } -.low .chart { border:1px solid #C21F39 } +.red.solid, +.status-line.low, +.low .cover-fill { + background: #c21f39; +} +.low .chart { + border: 1px solid #c21f39; +} .highlighted, -.highlighted .cstat-no, .highlighted .fstat-no, .highlighted .cbranch-no{ - background: #C21F39 !important; +.highlighted .cstat-no, +.highlighted .fstat-no, +.highlighted .cbranch-no { + background: #c21f39 !important; } /* medium red */ -.cstat-no, .fstat-no, .cbranch-no, .cbranch-no { background:#F6C6CE } +.cstat-no, +.fstat-no, +.cbranch-no, +.cbranch-no { + background: #f6c6ce; +} /* light red */ -.low, .cline-no { background:#FCE1E5 } +.low, +.cline-no { + background: #fce1e5; +} /* light green */ -.high, .cline-yes { background:rgb(230,245,208) } +.high, +.cline-yes { + background: rgb(230, 245, 208); +} /* medium green */ -.cstat-yes { background:rgb(161,215,106) } +.cstat-yes { + background: rgb(161, 215, 106); +} /* dark green */ -.status-line.high, .high .cover-fill { background:rgb(77,146,33) } -.high .chart { border:1px solid rgb(77,146,33) } +.status-line.high, +.high .cover-fill { + background: rgb(77, 146, 33); +} +.high .chart { + border: 1px solid rgb(77, 146, 33); +} /* dark yellow (gold) */ -.status-line.medium, .medium .cover-fill { background: #f9cd0b; } -.medium .chart { border:1px solid #f9cd0b; } +.status-line.medium, +.medium .cover-fill { + background: #f9cd0b; +} +.medium .chart { + border: 1px solid #f9cd0b; +} /* light yellow */ -.medium { background: #fff4c2; } +.medium { + background: #fff4c2; +} -.cstat-skip { background: #ddd; color: #111; } -.fstat-skip { background: #ddd; color: #111 !important; } -.cbranch-skip { background: #ddd !important; color: #111; } +.cstat-skip { + background: #ddd; + color: #111; +} +.fstat-skip { + background: #ddd; + color: #111 !important; +} +.cbranch-skip { + background: #ddd !important; + color: #111; +} -span.cline-neutral { background: #eaeaea; } +span.cline-neutral { + background: #eaeaea; +} .coverage-summary td.empty { - opacity: .5; - padding-top: 4px; - padding-bottom: 4px; - line-height: 1; - color: #888; + opacity: 0.5; + padding-top: 4px; + padding-bottom: 4px; + line-height: 1; + color: #888; } -.cover-fill, .cover-empty { - display:inline-block; +.cover-fill, +.cover-empty { + display: inline-block; height: 12px; } .chart { line-height: 0; } .cover-empty { - background: white; + background: white; } .cover-full { - border-right: none !important; + border-right: none !important; } pre.prettyprint { - border: none !important; - padding: 0 !important; - margin: 0 !important; + border: none !important; + padding: 0 !important; + margin: 0 !important; +} +.com { + color: #999 !important; +} +.ignore-none { + color: #999; + font-weight: normal; } -.com { color: #999 !important; } -.ignore-none { color: #999; font-weight: normal; } .wrapper { min-height: 100%; @@ -219,6 +356,7 @@ pre.prettyprint { height: 100%; margin: 0 auto -48px; } -.footer, .push { +.footer, +.push { height: 48px; } diff --git a/tests/unit/coverage/coverage-final.json b/tests/unit/coverage/coverage-final.json index e536747..01e7c1f 100644 --- a/tests/unit/coverage/coverage-final.json +++ b/tests/unit/coverage/coverage-final.json @@ -1,7 +1,8 @@ -{"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.test.ts": {"path":"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.test.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":53}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":39}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":77}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":85}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":49}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":31}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":4}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":81}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":85}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":40}},"14":{"start":{"line":15,"column":0},"end":{"line":15,"column":29}},"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":4}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":89}},"18":{"start":{"line":19,"column":0},"end":{"line":19,"column":85}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":55}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":39}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":4}},"23":{"start":{"line":24,"column":0},"end":{"line":24,"column":72}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":85}},"25":{"start":{"line":26,"column":0},"end":{"line":26,"column":78}},"26":{"start":{"line":27,"column":0},"end":{"line":27,"column":47}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":4}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":78}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":85}},"31":{"start":{"line":32,"column":0},"end":{"line":32,"column":52}},"32":{"start":{"line":33,"column":0},"end":{"line":33,"column":53}},"33":{"start":{"line":34,"column":0},"end":{"line":34,"column":103}},"34":{"start":{"line":35,"column":0},"end":{"line":35,"column":32}},"35":{"start":{"line":36,"column":0},"end":{"line":36,"column":4}},"37":{"start":{"line":38,"column":0},"end":{"line":38,"column":77}},"38":{"start":{"line":39,"column":0},"end":{"line":39,"column":85}},"39":{"start":{"line":40,"column":0},"end":{"line":40,"column":52}},"40":{"start":{"line":41,"column":0},"end":{"line":41,"column":52}},"41":{"start":{"line":42,"column":0},"end":{"line":42,"column":103}},"42":{"start":{"line":43,"column":0},"end":{"line":43,"column":32}},"43":{"start":{"line":44,"column":0},"end":{"line":44,"column":4}},"45":{"start":{"line":46,"column":0},"end":{"line":46,"column":63}},"46":{"start":{"line":47,"column":0},"end":{"line":47,"column":85}},"47":{"start":{"line":48,"column":0},"end":{"line":48,"column":69}},"48":{"start":{"line":49,"column":0},"end":{"line":49,"column":54}},"49":{"start":{"line":50,"column":0},"end":{"line":50,"column":4}},"51":{"start":{"line":52,"column":0},"end":{"line":52,"column":80}},"52":{"start":{"line":53,"column":0},"end":{"line":53,"column":85}},"53":{"start":{"line":54,"column":0},"end":{"line":54,"column":52}},"54":{"start":{"line":55,"column":0},"end":{"line":55,"column":53}},"55":{"start":{"line":56,"column":0},"end":{"line":56,"column":104}},"56":{"start":{"line":57,"column":0},"end":{"line":57,"column":32}},"57":{"start":{"line":58,"column":0},"end":{"line":58,"column":4}},"59":{"start":{"line":60,"column":0},"end":{"line":60,"column":79}},"60":{"start":{"line":61,"column":0},"end":{"line":61,"column":85}},"61":{"start":{"line":62,"column":0},"end":{"line":62,"column":52}},"62":{"start":{"line":63,"column":0},"end":{"line":63,"column":52}},"63":{"start":{"line":64,"column":0},"end":{"line":64,"column":104}},"64":{"start":{"line":65,"column":0},"end":{"line":65,"column":32}},"65":{"start":{"line":66,"column":0},"end":{"line":66,"column":4}},"67":{"start":{"line":68,"column":0},"end":{"line":68,"column":62}},"68":{"start":{"line":69,"column":0},"end":{"line":69,"column":85}},"69":{"start":{"line":70,"column":0},"end":{"line":70,"column":61}},"70":{"start":{"line":71,"column":0},"end":{"line":71,"column":46}},"71":{"start":{"line":72,"column":0},"end":{"line":72,"column":4}},"73":{"start":{"line":74,"column":0},"end":{"line":74,"column":60}},"74":{"start":{"line":75,"column":0},"end":{"line":75,"column":85}},"75":{"start":{"line":76,"column":0},"end":{"line":76,"column":59}},"76":{"start":{"line":77,"column":0},"end":{"line":77,"column":44}},"77":{"start":{"line":78,"column":0},"end":{"line":78,"column":4}},"79":{"start":{"line":80,"column":0},"end":{"line":80,"column":56}},"80":{"start":{"line":81,"column":0},"end":{"line":81,"column":85}},"81":{"start":{"line":82,"column":0},"end":{"line":82,"column":75}},"82":{"start":{"line":83,"column":0},"end":{"line":83,"column":54}},"83":{"start":{"line":84,"column":0},"end":{"line":84,"column":4}},"85":{"start":{"line":86,"column":0},"end":{"line":86,"column":73}},"86":{"start":{"line":87,"column":0},"end":{"line":87,"column":85}},"87":{"start":{"line":88,"column":0},"end":{"line":88,"column":52}},"88":{"start":{"line":89,"column":0},"end":{"line":89,"column":50}},"89":{"start":{"line":90,"column":0},"end":{"line":90,"column":117}},"90":{"start":{"line":91,"column":0},"end":{"line":91,"column":32}},"91":{"start":{"line":92,"column":0},"end":{"line":92,"column":4}},"93":{"start":{"line":94,"column":0},"end":{"line":94,"column":72}},"94":{"start":{"line":95,"column":0},"end":{"line":95,"column":85}},"95":{"start":{"line":96,"column":0},"end":{"line":96,"column":52}},"96":{"start":{"line":97,"column":0},"end":{"line":97,"column":49}},"97":{"start":{"line":98,"column":0},"end":{"line":98,"column":117}},"98":{"start":{"line":99,"column":0},"end":{"line":99,"column":32}},"99":{"start":{"line":100,"column":0},"end":{"line":100,"column":4}},"101":{"start":{"line":102,"column":0},"end":{"line":102,"column":77}},"102":{"start":{"line":103,"column":0},"end":{"line":103,"column":85}},"103":{"start":{"line":104,"column":0},"end":{"line":104,"column":52}},"104":{"start":{"line":105,"column":0},"end":{"line":105,"column":50}},"105":{"start":{"line":106,"column":0},"end":{"line":106,"column":117}},"106":{"start":{"line":107,"column":0},"end":{"line":107,"column":32}},"107":{"start":{"line":108,"column":0},"end":{"line":108,"column":4}},"109":{"start":{"line":110,"column":0},"end":{"line":110,"column":62}},"110":{"start":{"line":111,"column":0},"end":{"line":111,"column":85}},"111":{"start":{"line":112,"column":0},"end":{"line":112,"column":83}},"112":{"start":{"line":113,"column":0},"end":{"line":113,"column":62}},"113":{"start":{"line":114,"column":0},"end":{"line":114,"column":4}},"115":{"start":{"line":116,"column":0},"end":{"line":116,"column":79}},"116":{"start":{"line":117,"column":0},"end":{"line":117,"column":85}},"117":{"start":{"line":118,"column":0},"end":{"line":118,"column":52}},"118":{"start":{"line":119,"column":0},"end":{"line":119,"column":58}},"119":{"start":{"line":120,"column":0},"end":{"line":120,"column":123}},"120":{"start":{"line":121,"column":0},"end":{"line":121,"column":32}},"121":{"start":{"line":122,"column":0},"end":{"line":122,"column":4}},"123":{"start":{"line":124,"column":0},"end":{"line":124,"column":78}},"124":{"start":{"line":125,"column":0},"end":{"line":125,"column":85}},"125":{"start":{"line":126,"column":0},"end":{"line":126,"column":52}},"126":{"start":{"line":127,"column":0},"end":{"line":127,"column":57}},"127":{"start":{"line":128,"column":0},"end":{"line":128,"column":123}},"128":{"start":{"line":129,"column":0},"end":{"line":129,"column":32}},"129":{"start":{"line":130,"column":0},"end":{"line":130,"column":4}},"131":{"start":{"line":132,"column":0},"end":{"line":132,"column":83}},"132":{"start":{"line":133,"column":0},"end":{"line":133,"column":85}},"133":{"start":{"line":134,"column":0},"end":{"line":134,"column":52}},"134":{"start":{"line":135,"column":0},"end":{"line":135,"column":56}},"135":{"start":{"line":136,"column":0},"end":{"line":136,"column":123}},"136":{"start":{"line":137,"column":0},"end":{"line":137,"column":32}},"137":{"start":{"line":138,"column":0},"end":{"line":138,"column":4}},"139":{"start":{"line":140,"column":0},"end":{"line":140,"column":56}},"140":{"start":{"line":141,"column":0},"end":{"line":141,"column":85}},"141":{"start":{"line":142,"column":0},"end":{"line":142,"column":87}},"142":{"start":{"line":143,"column":0},"end":{"line":143,"column":64}},"143":{"start":{"line":144,"column":0},"end":{"line":144,"column":4}},"145":{"start":{"line":146,"column":0},"end":{"line":146,"column":61}},"146":{"start":{"line":147,"column":0},"end":{"line":147,"column":85}},"147":{"start":{"line":148,"column":0},"end":{"line":148,"column":83}},"148":{"start":{"line":149,"column":0},"end":{"line":149,"column":58}},"149":{"start":{"line":150,"column":0},"end":{"line":150,"column":4}},"151":{"start":{"line":152,"column":0},"end":{"line":152,"column":59}},"152":{"start":{"line":153,"column":0},"end":{"line":153,"column":85}},"153":{"start":{"line":154,"column":0},"end":{"line":154,"column":79}},"154":{"start":{"line":155,"column":0},"end":{"line":155,"column":58}},"155":{"start":{"line":156,"column":0},"end":{"line":156,"column":4}},"157":{"start":{"line":158,"column":0},"end":{"line":158,"column":76}},"158":{"start":{"line":159,"column":0},"end":{"line":159,"column":85}},"159":{"start":{"line":160,"column":0},"end":{"line":160,"column":52}},"160":{"start":{"line":161,"column":0},"end":{"line":161,"column":54}},"161":{"start":{"line":162,"column":0},"end":{"line":162,"column":120}},"162":{"start":{"line":163,"column":0},"end":{"line":163,"column":32}},"163":{"start":{"line":164,"column":0},"end":{"line":164,"column":4}},"165":{"start":{"line":166,"column":0},"end":{"line":166,"column":75}},"166":{"start":{"line":167,"column":0},"end":{"line":167,"column":85}},"167":{"start":{"line":168,"column":0},"end":{"line":168,"column":52}},"168":{"start":{"line":169,"column":0},"end":{"line":169,"column":53}},"169":{"start":{"line":170,"column":0},"end":{"line":170,"column":120}},"170":{"start":{"line":171,"column":0},"end":{"line":171,"column":32}},"171":{"start":{"line":172,"column":0},"end":{"line":172,"column":4}},"173":{"start":{"line":174,"column":0},"end":{"line":174,"column":80}},"174":{"start":{"line":175,"column":0},"end":{"line":175,"column":85}},"175":{"start":{"line":176,"column":0},"end":{"line":176,"column":52}},"176":{"start":{"line":177,"column":0},"end":{"line":177,"column":53}},"177":{"start":{"line":178,"column":0},"end":{"line":178,"column":120}},"178":{"start":{"line":179,"column":0},"end":{"line":179,"column":32}},"179":{"start":{"line":180,"column":0},"end":{"line":180,"column":4}},"181":{"start":{"line":182,"column":0},"end":{"line":182,"column":58}},"182":{"start":{"line":183,"column":0},"end":{"line":183,"column":85}},"183":{"start":{"line":184,"column":0},"end":{"line":184,"column":78}},"184":{"start":{"line":185,"column":0},"end":{"line":185,"column":57}},"185":{"start":{"line":186,"column":0},"end":{"line":186,"column":4}},"187":{"start":{"line":188,"column":0},"end":{"line":188,"column":58}},"188":{"start":{"line":189,"column":0},"end":{"line":189,"column":85}},"189":{"start":{"line":190,"column":0},"end":{"line":190,"column":82}},"190":{"start":{"line":191,"column":0},"end":{"line":191,"column":59}},"191":{"start":{"line":192,"column":0},"end":{"line":192,"column":4}},"193":{"start":{"line":194,"column":0},"end":{"line":194,"column":61}},"194":{"start":{"line":195,"column":0},"end":{"line":195,"column":85}},"195":{"start":{"line":196,"column":0},"end":{"line":196,"column":21}},"196":{"start":{"line":197,"column":0},"end":{"line":197,"column":14}},"197":{"start":{"line":198,"column":0},"end":{"line":198,"column":22}},"198":{"start":{"line":199,"column":0},"end":{"line":199,"column":26}},"199":{"start":{"line":200,"column":0},"end":{"line":200,"column":22}},"200":{"start":{"line":201,"column":0},"end":{"line":201,"column":18}},"201":{"start":{"line":202,"column":0},"end":{"line":202,"column":17}},"202":{"start":{"line":203,"column":0},"end":{"line":203,"column":21}},"203":{"start":{"line":204,"column":0},"end":{"line":204,"column":5}},"204":{"start":{"line":205,"column":0},"end":{"line":205,"column":62}},"205":{"start":{"line":206,"column":0},"end":{"line":206,"column":136}},"206":{"start":{"line":207,"column":0},"end":{"line":207,"column":4}},"208":{"start":{"line":209,"column":0},"end":{"line":209,"column":71}},"209":{"start":{"line":210,"column":0},"end":{"line":210,"column":85}},"210":{"start":{"line":211,"column":0},"end":{"line":211,"column":66}},"211":{"start":{"line":212,"column":0},"end":{"line":212,"column":39}},"212":{"start":{"line":213,"column":0},"end":{"line":213,"column":4}},"214":{"start":{"line":215,"column":0},"end":{"line":215,"column":61}},"215":{"start":{"line":216,"column":0},"end":{"line":216,"column":85}},"216":{"start":{"line":217,"column":0},"end":{"line":217,"column":35}},"217":{"start":{"line":218,"column":0},"end":{"line":218,"column":52}},"218":{"start":{"line":219,"column":0},"end":{"line":219,"column":290}},"219":{"start":{"line":220,"column":0},"end":{"line":220,"column":4}},"221":{"start":{"line":222,"column":0},"end":{"line":222,"column":105}},"222":{"start":{"line":223,"column":0},"end":{"line":223,"column":85}},"223":{"start":{"line":224,"column":0},"end":{"line":224,"column":56}},"224":{"start":{"line":225,"column":0},"end":{"line":225,"column":52}},"225":{"start":{"line":226,"column":0},"end":{"line":226,"column":296}},"226":{"start":{"line":227,"column":0},"end":{"line":227,"column":4}},"228":{"start":{"line":229,"column":0},"end":{"line":229,"column":60}},"229":{"start":{"line":230,"column":0},"end":{"line":230,"column":85}},"230":{"start":{"line":231,"column":0},"end":{"line":231,"column":54}},"231":{"start":{"line":232,"column":0},"end":{"line":232,"column":51}},"232":{"start":{"line":233,"column":0},"end":{"line":233,"column":70}},"233":{"start":{"line":234,"column":0},"end":{"line":234,"column":4}},"235":{"start":{"line":236,"column":0},"end":{"line":236,"column":72}},"236":{"start":{"line":237,"column":0},"end":{"line":237,"column":85}},"237":{"start":{"line":238,"column":0},"end":{"line":238,"column":35}},"238":{"start":{"line":239,"column":0},"end":{"line":239,"column":54}},"239":{"start":{"line":240,"column":0},"end":{"line":240,"column":59}},"240":{"start":{"line":241,"column":0},"end":{"line":241,"column":331}},"241":{"start":{"line":242,"column":0},"end":{"line":242,"column":4}},"242":{"start":{"line":243,"column":0},"end":{"line":243,"column":2}}},"s":{"0":1,"2":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"11":1,"12":1,"13":1,"14":1,"15":1,"17":1,"18":1,"19":1,"20":1,"21":1,"23":1,"24":1,"25":1,"26":1,"27":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"37":1,"38":1,"39":1,"40":1,"41":1,"42":1,"43":1,"45":1,"46":1,"47":1,"48":1,"49":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"67":1,"68":1,"69":1,"70":1,"71":1,"73":1,"74":1,"75":1,"76":1,"77":1,"79":1,"80":1,"81":1,"82":1,"83":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"101":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"109":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"123":1,"124":1,"125":1,"126":1,"127":1,"128":1,"129":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"139":1,"140":1,"141":1,"142":1,"143":1,"145":1,"146":1,"147":1,"148":1,"149":1,"151":1,"152":1,"153":1,"154":1,"155":1,"157":1,"158":1,"159":1,"160":1,"161":1,"162":1,"163":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1,"179":1,"181":1,"182":1,"183":1,"184":1,"185":1,"187":1,"188":1,"189":1,"190":1,"191":1,"193":1,"194":1,"195":1,"196":1,"197":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"208":1,"209":1,"210":1,"211":1,"212":1,"214":1,"215":1,"216":1,"217":1,"218":1,"219":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"228":1,"229":1,"230":1,"231":1,"232":1,"233":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1},"branchMap":{"0":{"type":"branch","line":5,"loc":{"start":{"line":5,"column":32},"end":{"line":243,"column":2}},"locations":[{"start":{"line":5,"column":32},"end":{"line":243,"column":2}}]},"1":{"type":"branch","line":6,"loc":{"start":{"line":6,"column":64},"end":{"line":10,"column":3}},"locations":[{"start":{"line":6,"column":64},"end":{"line":10,"column":3}}]},"2":{"type":"branch","line":12,"loc":{"start":{"line":12,"column":68},"end":{"line":16,"column":3}},"locations":[{"start":{"line":12,"column":68},"end":{"line":16,"column":3}}]},"3":{"type":"branch","line":18,"loc":{"start":{"line":18,"column":76},"end":{"line":22,"column":3}},"locations":[{"start":{"line":18,"column":76},"end":{"line":22,"column":3}}]},"4":{"type":"branch","line":24,"loc":{"start":{"line":24,"column":59},"end":{"line":28,"column":3}},"locations":[{"start":{"line":24,"column":59},"end":{"line":28,"column":3}}]},"5":{"type":"branch","line":30,"loc":{"start":{"line":30,"column":65},"end":{"line":36,"column":3}},"locations":[{"start":{"line":30,"column":65},"end":{"line":36,"column":3}}]},"6":{"type":"branch","line":38,"loc":{"start":{"line":38,"column":64},"end":{"line":44,"column":3}},"locations":[{"start":{"line":38,"column":64},"end":{"line":44,"column":3}}]},"7":{"type":"branch","line":46,"loc":{"start":{"line":46,"column":50},"end":{"line":50,"column":3}},"locations":[{"start":{"line":46,"column":50},"end":{"line":50,"column":3}}]},"8":{"type":"branch","line":52,"loc":{"start":{"line":52,"column":67},"end":{"line":58,"column":3}},"locations":[{"start":{"line":52,"column":67},"end":{"line":58,"column":3}}]},"9":{"type":"branch","line":60,"loc":{"start":{"line":60,"column":66},"end":{"line":66,"column":3}},"locations":[{"start":{"line":60,"column":66},"end":{"line":66,"column":3}}]},"10":{"type":"branch","line":68,"loc":{"start":{"line":68,"column":49},"end":{"line":72,"column":3}},"locations":[{"start":{"line":68,"column":49},"end":{"line":72,"column":3}}]},"11":{"type":"branch","line":74,"loc":{"start":{"line":74,"column":47},"end":{"line":78,"column":3}},"locations":[{"start":{"line":74,"column":47},"end":{"line":78,"column":3}}]},"12":{"type":"branch","line":80,"loc":{"start":{"line":80,"column":43},"end":{"line":84,"column":3}},"locations":[{"start":{"line":80,"column":43},"end":{"line":84,"column":3}}]},"13":{"type":"branch","line":86,"loc":{"start":{"line":86,"column":60},"end":{"line":92,"column":3}},"locations":[{"start":{"line":86,"column":60},"end":{"line":92,"column":3}}]},"14":{"type":"branch","line":94,"loc":{"start":{"line":94,"column":59},"end":{"line":100,"column":3}},"locations":[{"start":{"line":94,"column":59},"end":{"line":100,"column":3}}]},"15":{"type":"branch","line":102,"loc":{"start":{"line":102,"column":64},"end":{"line":108,"column":3}},"locations":[{"start":{"line":102,"column":64},"end":{"line":108,"column":3}}]},"16":{"type":"branch","line":110,"loc":{"start":{"line":110,"column":49},"end":{"line":114,"column":3}},"locations":[{"start":{"line":110,"column":49},"end":{"line":114,"column":3}}]},"17":{"type":"branch","line":116,"loc":{"start":{"line":116,"column":66},"end":{"line":122,"column":3}},"locations":[{"start":{"line":116,"column":66},"end":{"line":122,"column":3}}]},"18":{"type":"branch","line":124,"loc":{"start":{"line":124,"column":65},"end":{"line":130,"column":3}},"locations":[{"start":{"line":124,"column":65},"end":{"line":130,"column":3}}]},"19":{"type":"branch","line":132,"loc":{"start":{"line":132,"column":70},"end":{"line":138,"column":3}},"locations":[{"start":{"line":132,"column":70},"end":{"line":138,"column":3}}]},"20":{"type":"branch","line":140,"loc":{"start":{"line":140,"column":43},"end":{"line":144,"column":3}},"locations":[{"start":{"line":140,"column":43},"end":{"line":144,"column":3}}]},"21":{"type":"branch","line":146,"loc":{"start":{"line":146,"column":48},"end":{"line":150,"column":3}},"locations":[{"start":{"line":146,"column":48},"end":{"line":150,"column":3}}]},"22":{"type":"branch","line":152,"loc":{"start":{"line":152,"column":46},"end":{"line":156,"column":3}},"locations":[{"start":{"line":152,"column":46},"end":{"line":156,"column":3}}]},"23":{"type":"branch","line":158,"loc":{"start":{"line":158,"column":63},"end":{"line":164,"column":3}},"locations":[{"start":{"line":158,"column":63},"end":{"line":164,"column":3}}]},"24":{"type":"branch","line":166,"loc":{"start":{"line":166,"column":62},"end":{"line":172,"column":3}},"locations":[{"start":{"line":166,"column":62},"end":{"line":172,"column":3}}]},"25":{"type":"branch","line":174,"loc":{"start":{"line":174,"column":67},"end":{"line":180,"column":3}},"locations":[{"start":{"line":174,"column":67},"end":{"line":180,"column":3}}]},"26":{"type":"branch","line":182,"loc":{"start":{"line":182,"column":45},"end":{"line":186,"column":3}},"locations":[{"start":{"line":182,"column":45},"end":{"line":186,"column":3}}]},"27":{"type":"branch","line":188,"loc":{"start":{"line":188,"column":45},"end":{"line":192,"column":3}},"locations":[{"start":{"line":188,"column":45},"end":{"line":192,"column":3}}]},"28":{"type":"branch","line":194,"loc":{"start":{"line":194,"column":48},"end":{"line":207,"column":3}},"locations":[{"start":{"line":194,"column":48},"end":{"line":207,"column":3}}]},"29":{"type":"branch","line":209,"loc":{"start":{"line":209,"column":58},"end":{"line":213,"column":3}},"locations":[{"start":{"line":209,"column":58},"end":{"line":213,"column":3}}]},"30":{"type":"branch","line":215,"loc":{"start":{"line":215,"column":48},"end":{"line":220,"column":3}},"locations":[{"start":{"line":215,"column":48},"end":{"line":220,"column":3}}]},"31":{"type":"branch","line":222,"loc":{"start":{"line":222,"column":92},"end":{"line":227,"column":3}},"locations":[{"start":{"line":222,"column":92},"end":{"line":227,"column":3}}]},"32":{"type":"branch","line":229,"loc":{"start":{"line":229,"column":47},"end":{"line":234,"column":3}},"locations":[{"start":{"line":229,"column":47},"end":{"line":234,"column":3}}]},"33":{"type":"branch","line":236,"loc":{"start":{"line":236,"column":59},"end":{"line":242,"column":3}},"locations":[{"start":{"line":236,"column":59},"end":{"line":242,"column":3}}]}},"b":{"0":[1],"1":[1],"2":[1],"3":[1],"4":[1],"5":[1],"6":[1],"7":[1],"8":[1],"9":[1],"10":[1],"11":[1],"12":[1],"13":[1],"14":[1],"15":[1],"16":[1],"17":[1],"18":[1],"19":[1],"20":[1],"21":[1],"22":[1],"23":[1],"24":[1],"25":[1],"26":[1],"27":[1],"28":[1],"29":[1],"30":[1],"31":[1],"32":[1],"33":[1]},"fnMap":{},"f":{}} -,"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.ts": {"path":"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.ts","all":false,"statementMap":{"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":153}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":40}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":12}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":12}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":44}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":36}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":120}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":68}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":150}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":12}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":47}},"14":{"start":{"line":15,"column":0},"end":{"line":15,"column":5}},"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":3}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":35}},"18":{"start":{"line":19,"column":0},"end":{"line":19,"column":67}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":36}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":26}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":14}},"22":{"start":{"line":23,"column":0},"end":{"line":23,"column":83}},"23":{"start":{"line":24,"column":0},"end":{"line":24,"column":7}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":87}},"25":{"start":{"line":26,"column":0},"end":{"line":26,"column":38}},"26":{"start":{"line":27,"column":0},"end":{"line":27,"column":27}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":14}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":84}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":7}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":105}},"31":{"start":{"line":32,"column":0},"end":{"line":32,"column":52}},"34":{"start":{"line":35,"column":0},"end":{"line":35,"column":25}},"35":{"start":{"line":36,"column":0},"end":{"line":36,"column":40}},"36":{"start":{"line":37,"column":0},"end":{"line":37,"column":91}},"38":{"start":{"line":39,"column":0},"end":{"line":39,"column":17}},"39":{"start":{"line":40,"column":0},"end":{"line":40,"column":71}},"40":{"start":{"line":41,"column":0},"end":{"line":41,"column":7}},"41":{"start":{"line":42,"column":0},"end":{"line":42,"column":20}},"42":{"start":{"line":43,"column":0},"end":{"line":43,"column":77}},"43":{"start":{"line":44,"column":0},"end":{"line":44,"column":7}},"44":{"start":{"line":45,"column":0},"end":{"line":45,"column":23}},"45":{"start":{"line":46,"column":0},"end":{"line":46,"column":83}},"46":{"start":{"line":47,"column":0},"end":{"line":47,"column":7}},"47":{"start":{"line":48,"column":0},"end":{"line":48,"column":51}},"48":{"start":{"line":49,"column":0},"end":{"line":49,"column":54}},"49":{"start":{"line":50,"column":0},"end":{"line":50,"column":116}},"50":{"start":{"line":51,"column":0},"end":{"line":51,"column":101}},"51":{"start":{"line":52,"column":0},"end":{"line":52,"column":5}},"54":{"start":{"line":55,"column":0},"end":{"line":55,"column":25}},"55":{"start":{"line":56,"column":0},"end":{"line":56,"column":72}},"56":{"start":{"line":57,"column":0},"end":{"line":57,"column":40}},"57":{"start":{"line":58,"column":0},"end":{"line":58,"column":119}},"58":{"start":{"line":59,"column":0},"end":{"line":59,"column":9}},"59":{"start":{"line":60,"column":0},"end":{"line":60,"column":57}},"60":{"start":{"line":61,"column":0},"end":{"line":61,"column":50}},"61":{"start":{"line":62,"column":0},"end":{"line":62,"column":142}},"62":{"start":{"line":63,"column":0},"end":{"line":63,"column":9}},"63":{"start":{"line":64,"column":0},"end":{"line":64,"column":20}},"64":{"start":{"line":65,"column":0},"end":{"line":65,"column":5}},"67":{"start":{"line":68,"column":0},"end":{"line":68,"column":24}},"68":{"start":{"line":69,"column":0},"end":{"line":69,"column":45}},"69":{"start":{"line":70,"column":0},"end":{"line":70,"column":5}},"70":{"start":{"line":71,"column":0},"end":{"line":71,"column":3}},"74":{"start":{"line":75,"column":0},"end":{"line":75,"column":30}},"75":{"start":{"line":76,"column":0},"end":{"line":76,"column":22}},"76":{"start":{"line":77,"column":0},"end":{"line":77,"column":41}},"77":{"start":{"line":78,"column":0},"end":{"line":78,"column":3}},"78":{"start":{"line":79,"column":0},"end":{"line":79,"column":31}},"79":{"start":{"line":80,"column":0},"end":{"line":80,"column":64}},"80":{"start":{"line":81,"column":0},"end":{"line":81,"column":3}},"82":{"start":{"line":83,"column":0},"end":{"line":83,"column":10}},"83":{"start":{"line":84,"column":0},"end":{"line":84,"column":19}},"84":{"start":{"line":85,"column":0},"end":{"line":85,"column":10}},"85":{"start":{"line":86,"column":0},"end":{"line":86,"column":4}},"86":{"start":{"line":87,"column":0},"end":{"line":87,"column":1}}},"s":{"2":1,"3":33,"4":31,"5":31,"6":31,"7":31,"9":31,"10":15,"11":9,"12":15,"13":6,"14":6,"15":15,"17":33,"18":30,"19":4,"20":4,"21":30,"22":26,"23":26,"24":30,"25":4,"26":4,"27":30,"28":26,"29":26,"30":30,"31":30,"34":30,"35":18,"36":18,"38":18,"39":5,"40":5,"41":18,"42":5,"43":5,"44":18,"45":5,"46":5,"47":18,"48":18,"49":18,"50":18,"51":18,"54":30,"55":3,"56":9,"57":6,"58":6,"59":9,"60":3,"61":3,"62":3,"63":3,"64":3,"67":30,"68":2,"69":2,"70":30,"74":31,"75":33,"76":2,"77":2,"78":33,"79":8,"80":8,"82":31,"83":31,"84":31,"85":31,"86":31},"branchMap":{"0":{"type":"branch","line":3,"loc":{"start":{"line":3,"column":7},"end":{"line":87,"column":1}},"locations":[{"start":{"line":3,"column":7},"end":{"line":87,"column":1}}]},"1":{"type":"branch","line":4,"loc":{"start":{"line":4,"column":16},"end":{"line":4,"column":40}},"locations":[{"start":{"line":4,"column":16},"end":{"line":4,"column":40}}]},"2":{"type":"branch","line":4,"loc":{"start":{"line":4,"column":38},"end":{"line":18,"column":34}},"locations":[{"start":{"line":4,"column":38},"end":{"line":18,"column":34}}]},"3":{"type":"branch","line":18,"loc":{"start":{"line":18,"column":34},"end":{"line":71,"column":3}},"locations":[{"start":{"line":18,"column":34},"end":{"line":71,"column":3}}]},"4":{"type":"branch","line":19,"loc":{"start":{"line":19,"column":35},"end":{"line":19,"column":66}},"locations":[{"start":{"line":19,"column":35},"end":{"line":19,"column":66}}]},"5":{"type":"branch","line":19,"loc":{"start":{"line":19,"column":66},"end":{"line":22,"column":13}},"locations":[{"start":{"line":19,"column":66},"end":{"line":22,"column":13}}]},"6":{"type":"branch","line":22,"loc":{"start":{"line":22,"column":6},"end":{"line":24,"column":7}},"locations":[{"start":{"line":22,"column":6},"end":{"line":24,"column":7}}]},"7":{"type":"branch","line":25,"loc":{"start":{"line":25,"column":18},"end":{"line":25,"column":66}},"locations":[{"start":{"line":25,"column":18},"end":{"line":25,"column":66}}]},"8":{"type":"branch","line":25,"loc":{"start":{"line":25,"column":54},"end":{"line":25,"column":86}},"locations":[{"start":{"line":25,"column":54},"end":{"line":25,"column":86}}]},"9":{"type":"branch","line":25,"loc":{"start":{"line":25,"column":86},"end":{"line":28,"column":13}},"locations":[{"start":{"line":25,"column":86},"end":{"line":28,"column":13}}]},"10":{"type":"branch","line":28,"loc":{"start":{"line":28,"column":6},"end":{"line":30,"column":7}},"locations":[{"start":{"line":28,"column":6},"end":{"line":30,"column":7}}]},"11":{"type":"branch","line":31,"loc":{"start":{"line":31,"column":17},"end":{"line":31,"column":73}},"locations":[{"start":{"line":31,"column":17},"end":{"line":31,"column":73}}]},"12":{"type":"branch","line":31,"loc":{"start":{"line":31,"column":73},"end":{"line":31,"column":105}},"locations":[{"start":{"line":31,"column":73},"end":{"line":31,"column":105}}]},"13":{"type":"branch","line":32,"loc":{"start":{"line":32,"column":24},"end":{"line":32,"column":52}},"locations":[{"start":{"line":32,"column":24},"end":{"line":32,"column":52}}]},"14":{"type":"branch","line":35,"loc":{"start":{"line":35,"column":24},"end":{"line":52,"column":5}},"locations":[{"start":{"line":35,"column":24},"end":{"line":52,"column":5}}]},"15":{"type":"branch","line":36,"loc":{"start":{"line":36,"column":26},"end":{"line":36,"column":40}},"locations":[{"start":{"line":36,"column":26},"end":{"line":36,"column":40}}]},"16":{"type":"branch","line":37,"loc":{"start":{"line":37,"column":77},"end":{"line":37,"column":91}},"locations":[{"start":{"line":37,"column":77},"end":{"line":37,"column":91}}]},"17":{"type":"branch","line":39,"loc":{"start":{"line":39,"column":16},"end":{"line":41,"column":7}},"locations":[{"start":{"line":39,"column":16},"end":{"line":41,"column":7}}]},"18":{"type":"branch","line":42,"loc":{"start":{"line":42,"column":19},"end":{"line":44,"column":7}},"locations":[{"start":{"line":42,"column":19},"end":{"line":44,"column":7}}]},"19":{"type":"branch","line":45,"loc":{"start":{"line":45,"column":22},"end":{"line":47,"column":7}},"locations":[{"start":{"line":45,"column":22},"end":{"line":47,"column":7}}]},"20":{"type":"branch","line":48,"loc":{"start":{"line":48,"column":16},"end":{"line":48,"column":51}},"locations":[{"start":{"line":48,"column":16},"end":{"line":48,"column":51}}]},"21":{"type":"branch","line":49,"loc":{"start":{"line":49,"column":21},"end":{"line":49,"column":54}},"locations":[{"start":{"line":49,"column":21},"end":{"line":49,"column":54}}]},"22":{"type":"branch","line":50,"loc":{"start":{"line":50,"column":10},"end":{"line":50,"column":77}},"locations":[{"start":{"line":50,"column":10},"end":{"line":50,"column":77}}]},"23":{"type":"branch","line":50,"loc":{"start":{"line":50,"column":63},"end":{"line":50,"column":74}},"locations":[{"start":{"line":50,"column":63},"end":{"line":50,"column":74}}]},"24":{"type":"branch","line":50,"loc":{"start":{"line":50,"column":77},"end":{"line":50,"column":116}},"locations":[{"start":{"line":50,"column":77},"end":{"line":50,"column":116}}]},"25":{"type":"branch","line":51,"loc":{"start":{"line":51,"column":10},"end":{"line":51,"column":62}},"locations":[{"start":{"line":51,"column":10},"end":{"line":51,"column":62}}]},"26":{"type":"branch","line":51,"loc":{"start":{"line":51,"column":62},"end":{"line":51,"column":101}},"locations":[{"start":{"line":51,"column":62},"end":{"line":51,"column":101}}]},"27":{"type":"branch","line":55,"loc":{"start":{"line":55,"column":24},"end":{"line":65,"column":5}},"locations":[{"start":{"line":55,"column":24},"end":{"line":65,"column":5}}]},"28":{"type":"branch","line":68,"loc":{"start":{"line":68,"column":23},"end":{"line":70,"column":5}},"locations":[{"start":{"line":68,"column":23},"end":{"line":70,"column":5}}]},"29":{"type":"branch","line":71,"loc":{"start":{"line":71,"column":2},"end":{"line":76,"column":14}},"locations":[{"start":{"line":71,"column":2},"end":{"line":76,"column":14}}]},"30":{"type":"branch","line":76,"loc":{"start":{"line":76,"column":9},"end":{"line":76,"column":21}},"locations":[{"start":{"line":76,"column":9},"end":{"line":76,"column":21}}]},"31":{"type":"branch","line":76,"loc":{"start":{"line":76,"column":21},"end":{"line":78,"column":3}},"locations":[{"start":{"line":76,"column":21},"end":{"line":78,"column":3}}]},"32":{"type":"branch","line":78,"loc":{"start":{"line":78,"column":2},"end":{"line":79,"column":30}},"locations":[{"start":{"line":78,"column":2},"end":{"line":79,"column":30}}]},"33":{"type":"branch","line":79,"loc":{"start":{"line":79,"column":30},"end":{"line":81,"column":3}},"locations":[{"start":{"line":79,"column":30},"end":{"line":81,"column":3}}]},"34":{"type":"branch","line":81,"loc":{"start":{"line":81,"column":2},"end":{"line":87,"column":1}},"locations":[{"start":{"line":81,"column":2},"end":{"line":87,"column":1}}]},"35":{"type":"branch","line":10,"loc":{"start":{"line":10,"column":2},"end":{"line":16,"column":3}},"locations":[{"start":{"line":10,"column":2},"end":{"line":16,"column":3}}]},"36":{"type":"branch","line":11,"loc":{"start":{"line":11,"column":25},"end":{"line":11,"column":53}},"locations":[{"start":{"line":11,"column":25},"end":{"line":11,"column":53}}]},"37":{"type":"branch","line":11,"loc":{"start":{"line":11,"column":46},"end":{"line":11,"column":67}},"locations":[{"start":{"line":11,"column":46},"end":{"line":11,"column":67}}]},"38":{"type":"branch","line":11,"loc":{"start":{"line":11,"column":67},"end":{"line":13,"column":11}},"locations":[{"start":{"line":11,"column":67},"end":{"line":13,"column":11}}]},"39":{"type":"branch","line":13,"loc":{"start":{"line":13,"column":4},"end":{"line":15,"column":5}},"locations":[{"start":{"line":13,"column":4},"end":{"line":15,"column":5}}]},"40":{"type":"branch","line":56,"loc":{"start":{"line":56,"column":40},"end":{"line":64,"column":7}},"locations":[{"start":{"line":56,"column":40},"end":{"line":64,"column":7}}]},"41":{"type":"branch","line":57,"loc":{"start":{"line":57,"column":39},"end":{"line":59,"column":9}},"locations":[{"start":{"line":57,"column":39},"end":{"line":59,"column":9}}]},"42":{"type":"branch","line":58,"loc":{"start":{"line":58,"column":62},"end":{"line":58,"column":104}},"locations":[{"start":{"line":58,"column":62},"end":{"line":58,"column":104}}]},"43":{"type":"branch","line":59,"loc":{"start":{"line":59,"column":8},"end":{"line":60,"column":56}},"locations":[{"start":{"line":59,"column":8},"end":{"line":60,"column":56}}]},"44":{"type":"branch","line":60,"loc":{"start":{"line":60,"column":56},"end":{"line":63,"column":9}},"locations":[{"start":{"line":60,"column":56},"end":{"line":63,"column":9}}]},"45":{"type":"branch","line":62,"loc":{"start":{"line":62,"column":80},"end":{"line":62,"column":122}},"locations":[{"start":{"line":62,"column":80},"end":{"line":62,"column":122}}]}},"b":{"0":[33],"1":[2],"2":[31],"3":[30],"4":[5],"5":[4],"6":[26],"7":[6],"8":[5],"9":[4],"10":[26],"11":[1],"12":[1],"13":[1],"14":[18],"15":[0],"16":[0],"17":[5],"18":[5],"19":[5],"20":[2],"21":[2],"22":[2],"23":[0],"24":[2],"25":[2],"26":[2],"27":[3],"28":[2],"29":[31],"30":[4],"31":[2],"32":[31],"33":[8],"34":[31],"35":[15],"36":[12],"37":[9],"38":[9],"39":[6],"40":[9],"41":[6],"42":[0],"43":[3],"44":[3],"45":[0]},"fnMap":{"0":{"name":"optimizeImage","decl":{"start":{"line":3,"column":7},"end":{"line":87,"column":1}},"loc":{"start":{"line":3,"column":7},"end":{"line":87,"column":1}},"line":3},"1":{"name":"validateAndPushFilterParam","decl":{"start":{"line":10,"column":2},"end":{"line":16,"column":3}},"loc":{"start":{"line":10,"column":2},"end":{"line":16,"column":3}},"line":10}},"f":{"0":33,"1":15}} -,"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/richtext.test.ts": {"path":"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/richtext.test.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":0}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":45}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":45}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":40}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":72}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":51}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":28}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":32}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":49}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":45}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":25}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":26}},"14":{"start":{"line":15,"column":0},"end":{"line":15,"column":18}},"15":{"start":{"line":16,"column":0},"end":{"line":16,"column":11}},"16":{"start":{"line":17,"column":0},"end":{"line":17,"column":25}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":34}},"18":{"start":{"line":19,"column":0},"end":{"line":19,"column":12}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":10}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":7}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":52}},"22":{"start":{"line":23,"column":0},"end":{"line":23,"column":57}},"23":{"start":{"line":24,"column":0},"end":{"line":24,"column":6}},"25":{"start":{"line":26,"column":0},"end":{"line":26,"column":49}},"26":{"start":{"line":27,"column":0},"end":{"line":27,"column":45}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":23}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":24}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":16}},"30":{"start":{"line":31,"column":0},"end":{"line":31,"column":19}},"31":{"start":{"line":32,"column":0},"end":{"line":32,"column":10}},"32":{"start":{"line":33,"column":0},"end":{"line":33,"column":18}},"33":{"start":{"line":34,"column":0},"end":{"line":34,"column":11}},"34":{"start":{"line":35,"column":0},"end":{"line":35,"column":31}},"35":{"start":{"line":36,"column":0},"end":{"line":36,"column":25}},"36":{"start":{"line":37,"column":0},"end":{"line":37,"column":12}},"37":{"start":{"line":38,"column":0},"end":{"line":38,"column":10}},"38":{"start":{"line":39,"column":0},"end":{"line":39,"column":7}},"39":{"start":{"line":40,"column":0},"end":{"line":40,"column":50}},"40":{"start":{"line":41,"column":0},"end":{"line":41,"column":57}},"41":{"start":{"line":42,"column":0},"end":{"line":42,"column":6}},"43":{"start":{"line":44,"column":0},"end":{"line":44,"column":55}},"44":{"start":{"line":45,"column":0},"end":{"line":45,"column":45}},"45":{"start":{"line":46,"column":0},"end":{"line":46,"column":20}},"46":{"start":{"line":47,"column":0},"end":{"line":47,"column":28}},"47":{"start":{"line":48,"column":0},"end":{"line":48,"column":18}},"48":{"start":{"line":49,"column":0},"end":{"line":49,"column":11}},"49":{"start":{"line":50,"column":0},"end":{"line":50,"column":30}},"50":{"start":{"line":51,"column":0},"end":{"line":51,"column":22}},"51":{"start":{"line":52,"column":0},"end":{"line":52,"column":15}},"52":{"start":{"line":53,"column":0},"end":{"line":53,"column":29}},"53":{"start":{"line":54,"column":0},"end":{"line":54,"column":31}},"54":{"start":{"line":55,"column":0},"end":{"line":55,"column":16}},"55":{"start":{"line":56,"column":0},"end":{"line":56,"column":14}},"56":{"start":{"line":57,"column":0},"end":{"line":57,"column":12}},"57":{"start":{"line":58,"column":0},"end":{"line":58,"column":11}},"58":{"start":{"line":59,"column":0},"end":{"line":59,"column":30}},"59":{"start":{"line":60,"column":0},"end":{"line":60,"column":22}},"60":{"start":{"line":61,"column":0},"end":{"line":61,"column":15}},"61":{"start":{"line":62,"column":0},"end":{"line":62,"column":29}},"62":{"start":{"line":63,"column":0},"end":{"line":63,"column":31}},"63":{"start":{"line":64,"column":0},"end":{"line":64,"column":16}},"64":{"start":{"line":65,"column":0},"end":{"line":65,"column":14}},"65":{"start":{"line":66,"column":0},"end":{"line":66,"column":12}},"66":{"start":{"line":67,"column":0},"end":{"line":67,"column":10}},"67":{"start":{"line":68,"column":0},"end":{"line":68,"column":7}},"68":{"start":{"line":69,"column":0},"end":{"line":69,"column":47}},"69":{"start":{"line":70,"column":0},"end":{"line":70,"column":99}},"70":{"start":{"line":71,"column":0},"end":{"line":71,"column":6}},"72":{"start":{"line":73,"column":0},"end":{"line":73,"column":53}},"73":{"start":{"line":74,"column":0},"end":{"line":74,"column":45}},"74":{"start":{"line":75,"column":0},"end":{"line":75,"column":20}},"75":{"start":{"line":76,"column":0},"end":{"line":76,"column":29}},"76":{"start":{"line":77,"column":0},"end":{"line":77,"column":28}},"77":{"start":{"line":78,"column":0},"end":{"line":78,"column":18}},"78":{"start":{"line":79,"column":0},"end":{"line":79,"column":11}},"79":{"start":{"line":80,"column":0},"end":{"line":80,"column":30}},"80":{"start":{"line":81,"column":0},"end":{"line":81,"column":22}},"81":{"start":{"line":82,"column":0},"end":{"line":82,"column":15}},"82":{"start":{"line":83,"column":0},"end":{"line":83,"column":29}},"83":{"start":{"line":84,"column":0},"end":{"line":84,"column":31}},"84":{"start":{"line":85,"column":0},"end":{"line":85,"column":16}},"85":{"start":{"line":86,"column":0},"end":{"line":86,"column":14}},"86":{"start":{"line":87,"column":0},"end":{"line":87,"column":12}},"87":{"start":{"line":88,"column":0},"end":{"line":88,"column":11}},"88":{"start":{"line":89,"column":0},"end":{"line":89,"column":30}},"89":{"start":{"line":90,"column":0},"end":{"line":90,"column":22}},"90":{"start":{"line":91,"column":0},"end":{"line":91,"column":15}},"91":{"start":{"line":92,"column":0},"end":{"line":92,"column":29}},"92":{"start":{"line":93,"column":0},"end":{"line":93,"column":31}},"93":{"start":{"line":94,"column":0},"end":{"line":94,"column":16}},"94":{"start":{"line":95,"column":0},"end":{"line":95,"column":14}},"95":{"start":{"line":96,"column":0},"end":{"line":96,"column":12}},"96":{"start":{"line":97,"column":0},"end":{"line":97,"column":10}},"97":{"start":{"line":98,"column":0},"end":{"line":98,"column":7}},"98":{"start":{"line":99,"column":0},"end":{"line":99,"column":47}},"99":{"start":{"line":100,"column":0},"end":{"line":100,"column":109}},"100":{"start":{"line":101,"column":0},"end":{"line":101,"column":6}},"102":{"start":{"line":103,"column":0},"end":{"line":103,"column":57}},"103":{"start":{"line":104,"column":0},"end":{"line":104,"column":45}},"104":{"start":{"line":105,"column":0},"end":{"line":105,"column":21}},"105":{"start":{"line":106,"column":0},"end":{"line":106,"column":22}},"106":{"start":{"line":107,"column":0},"end":{"line":107,"column":16}},"107":{"start":{"line":108,"column":0},"end":{"line":108,"column":47}},"108":{"start":{"line":109,"column":0},"end":{"line":109,"column":26}},"109":{"start":{"line":110,"column":0},"end":{"line":110,"column":10}},"110":{"start":{"line":111,"column":0},"end":{"line":111,"column":7}},"111":{"start":{"line":112,"column":0},"end":{"line":112,"column":48}},"112":{"start":{"line":113,"column":0},"end":{"line":113,"column":101}},"113":{"start":{"line":114,"column":0},"end":{"line":114,"column":6}},"115":{"start":{"line":116,"column":0},"end":{"line":116,"column":46}},"116":{"start":{"line":117,"column":0},"end":{"line":117,"column":45}},"117":{"start":{"line":118,"column":0},"end":{"line":118,"column":21}},"118":{"start":{"line":119,"column":0},"end":{"line":119,"column":22}},"119":{"start":{"line":120,"column":0},"end":{"line":120,"column":16}},"120":{"start":{"line":121,"column":0},"end":{"line":121,"column":22}},"121":{"start":{"line":122,"column":0},"end":{"line":122,"column":10}},"122":{"start":{"line":123,"column":0},"end":{"line":123,"column":7}},"123":{"start":{"line":124,"column":0},"end":{"line":124,"column":48}},"124":{"start":{"line":125,"column":0},"end":{"line":125,"column":245}},"125":{"start":{"line":126,"column":0},"end":{"line":126,"column":6}},"127":{"start":{"line":128,"column":0},"end":{"line":128,"column":50}},"128":{"start":{"line":129,"column":0},"end":{"line":129,"column":45}},"129":{"start":{"line":130,"column":0},"end":{"line":130,"column":20}},"130":{"start":{"line":131,"column":0},"end":{"line":131,"column":27}},"131":{"start":{"line":132,"column":0},"end":{"line":132,"column":18}},"132":{"start":{"line":133,"column":0},"end":{"line":133,"column":11}},"133":{"start":{"line":134,"column":0},"end":{"line":134,"column":49}},"134":{"start":{"line":135,"column":0},"end":{"line":135,"column":25}},"135":{"start":{"line":136,"column":0},"end":{"line":136,"column":12}},"136":{"start":{"line":137,"column":0},"end":{"line":137,"column":10}},"137":{"start":{"line":138,"column":0},"end":{"line":138,"column":7}},"138":{"start":{"line":139,"column":0},"end":{"line":139,"column":47}},"139":{"start":{"line":140,"column":0},"end":{"line":140,"column":115}},"140":{"start":{"line":141,"column":0},"end":{"line":141,"column":6}},"142":{"start":{"line":143,"column":0},"end":{"line":143,"column":55}},"143":{"start":{"line":144,"column":0},"end":{"line":144,"column":45}},"144":{"start":{"line":145,"column":0},"end":{"line":145,"column":18}},"145":{"start":{"line":146,"column":0},"end":{"line":146,"column":32}},"146":{"start":{"line":147,"column":0},"end":{"line":147,"column":7}},"147":{"start":{"line":148,"column":0},"end":{"line":148,"column":45}},"148":{"start":{"line":149,"column":0},"end":{"line":149,"column":47}},"149":{"start":{"line":150,"column":0},"end":{"line":150,"column":6}},"151":{"start":{"line":152,"column":0},"end":{"line":152,"column":45}},"152":{"start":{"line":153,"column":0},"end":{"line":153,"column":45}},"153":{"start":{"line":154,"column":0},"end":{"line":154,"column":18}},"154":{"start":{"line":155,"column":0},"end":{"line":155,"column":27}},"155":{"start":{"line":156,"column":0},"end":{"line":156,"column":7}},"156":{"start":{"line":157,"column":0},"end":{"line":157,"column":45}},"157":{"start":{"line":158,"column":0},"end":{"line":158,"column":47}},"158":{"start":{"line":159,"column":0},"end":{"line":159,"column":6}},"160":{"start":{"line":161,"column":0},"end":{"line":161,"column":46}},"161":{"start":{"line":162,"column":0},"end":{"line":162,"column":45}},"162":{"start":{"line":163,"column":0},"end":{"line":163,"column":21}},"163":{"start":{"line":164,"column":0},"end":{"line":164,"column":27}},"164":{"start":{"line":165,"column":0},"end":{"line":165,"column":18}},"165":{"start":{"line":166,"column":0},"end":{"line":166,"column":11}},"166":{"start":{"line":167,"column":0},"end":{"line":167,"column":30}},"167":{"start":{"line":168,"column":0},"end":{"line":168,"column":22}},"168":{"start":{"line":169,"column":0},"end":{"line":169,"column":15}},"169":{"start":{"line":170,"column":0},"end":{"line":170,"column":29}},"170":{"start":{"line":171,"column":0},"end":{"line":171,"column":30}},"171":{"start":{"line":172,"column":0},"end":{"line":172,"column":16}},"172":{"start":{"line":173,"column":0},"end":{"line":173,"column":14}},"173":{"start":{"line":174,"column":0},"end":{"line":174,"column":12}},"174":{"start":{"line":175,"column":0},"end":{"line":175,"column":10}},"175":{"start":{"line":176,"column":0},"end":{"line":176,"column":7}},"176":{"start":{"line":177,"column":0},"end":{"line":177,"column":48}},"177":{"start":{"line":178,"column":0},"end":{"line":178,"column":93}},"178":{"start":{"line":179,"column":0},"end":{"line":179,"column":6}},"179":{"start":{"line":180,"column":0},"end":{"line":180,"column":4}},"181":{"start":{"line":182,"column":0},"end":{"line":182,"column":44}},"182":{"start":{"line":183,"column":0},"end":{"line":183,"column":53}},"183":{"start":{"line":184,"column":0},"end":{"line":184,"column":45}},"184":{"start":{"line":185,"column":0},"end":{"line":185,"column":20}},"185":{"start":{"line":186,"column":0},"end":{"line":186,"column":26}},"186":{"start":{"line":187,"column":0},"end":{"line":187,"column":18}},"187":{"start":{"line":188,"column":0},"end":{"line":188,"column":11}},"188":{"start":{"line":189,"column":0},"end":{"line":189,"column":36}},"189":{"start":{"line":190,"column":0},"end":{"line":190,"column":25}},"190":{"start":{"line":191,"column":0},"end":{"line":191,"column":58}},"191":{"start":{"line":192,"column":0},"end":{"line":192,"column":12}},"192":{"start":{"line":193,"column":0},"end":{"line":193,"column":10}},"193":{"start":{"line":194,"column":0},"end":{"line":194,"column":7}},"194":{"start":{"line":195,"column":0},"end":{"line":195,"column":47}},"195":{"start":{"line":196,"column":0},"end":{"line":196,"column":111}},"196":{"start":{"line":197,"column":0},"end":{"line":197,"column":6}},"198":{"start":{"line":199,"column":0},"end":{"line":199,"column":60}},"199":{"start":{"line":200,"column":0},"end":{"line":200,"column":45}},"200":{"start":{"line":201,"column":0},"end":{"line":201,"column":20}},"201":{"start":{"line":202,"column":0},"end":{"line":202,"column":26}},"202":{"start":{"line":203,"column":0},"end":{"line":203,"column":18}},"203":{"start":{"line":204,"column":0},"end":{"line":204,"column":11}},"204":{"start":{"line":205,"column":0},"end":{"line":205,"column":36}},"205":{"start":{"line":206,"column":0},"end":{"line":206,"column":25}},"206":{"start":{"line":207,"column":0},"end":{"line":207,"column":111}},"207":{"start":{"line":208,"column":0},"end":{"line":208,"column":12}},"208":{"start":{"line":209,"column":0},"end":{"line":209,"column":10}},"209":{"start":{"line":210,"column":0},"end":{"line":210,"column":7}},"210":{"start":{"line":211,"column":0},"end":{"line":211,"column":47}},"212":{"start":{"line":213,"column":0},"end":{"line":213,"column":150}},"213":{"start":{"line":214,"column":0},"end":{"line":214,"column":6}},"215":{"start":{"line":216,"column":0},"end":{"line":216,"column":54}},"216":{"start":{"line":217,"column":0},"end":{"line":217,"column":45}},"217":{"start":{"line":218,"column":0},"end":{"line":218,"column":20}},"218":{"start":{"line":219,"column":0},"end":{"line":219,"column":30}},"219":{"start":{"line":220,"column":0},"end":{"line":220,"column":21}},"220":{"start":{"line":221,"column":0},"end":{"line":221,"column":16}},"221":{"start":{"line":222,"column":0},"end":{"line":222,"column":11}},"222":{"start":{"line":223,"column":0},"end":{"line":223,"column":25}},"223":{"start":{"line":224,"column":0},"end":{"line":224,"column":20}},"224":{"start":{"line":225,"column":0},"end":{"line":225,"column":49}},"225":{"start":{"line":226,"column":0},"end":{"line":226,"column":31}},"226":{"start":{"line":227,"column":0},"end":{"line":227,"column":30}},"227":{"start":{"line":228,"column":0},"end":{"line":228,"column":14}},"228":{"start":{"line":229,"column":0},"end":{"line":229,"column":12}},"229":{"start":{"line":230,"column":0},"end":{"line":230,"column":10}},"230":{"start":{"line":231,"column":0},"end":{"line":231,"column":7}},"231":{"start":{"line":232,"column":0},"end":{"line":232,"column":47}},"232":{"start":{"line":233,"column":0},"end":{"line":233,"column":107}},"233":{"start":{"line":234,"column":0},"end":{"line":234,"column":6}},"235":{"start":{"line":236,"column":0},"end":{"line":236,"column":52}},"236":{"start":{"line":237,"column":0},"end":{"line":237,"column":45}},"237":{"start":{"line":238,"column":0},"end":{"line":238,"column":20}},"238":{"start":{"line":239,"column":0},"end":{"line":239,"column":28}},"239":{"start":{"line":240,"column":0},"end":{"line":240,"column":21}},"240":{"start":{"line":241,"column":0},"end":{"line":241,"column":16}},"241":{"start":{"line":242,"column":0},"end":{"line":242,"column":11}},"242":{"start":{"line":243,"column":0},"end":{"line":243,"column":25}},"243":{"start":{"line":244,"column":0},"end":{"line":244,"column":20}},"244":{"start":{"line":245,"column":0},"end":{"line":245,"column":49}},"245":{"start":{"line":246,"column":0},"end":{"line":246,"column":30}},"246":{"start":{"line":247,"column":0},"end":{"line":247,"column":31}},"247":{"start":{"line":248,"column":0},"end":{"line":248,"column":14}},"248":{"start":{"line":249,"column":0},"end":{"line":249,"column":12}},"249":{"start":{"line":250,"column":0},"end":{"line":250,"column":10}},"250":{"start":{"line":251,"column":0},"end":{"line":251,"column":7}},"251":{"start":{"line":252,"column":0},"end":{"line":252,"column":47}},"252":{"start":{"line":253,"column":0},"end":{"line":253,"column":85}},"253":{"start":{"line":254,"column":0},"end":{"line":254,"column":6}},"255":{"start":{"line":256,"column":0},"end":{"line":256,"column":51}},"256":{"start":{"line":257,"column":0},"end":{"line":257,"column":45}},"257":{"start":{"line":258,"column":0},"end":{"line":258,"column":20}},"258":{"start":{"line":259,"column":0},"end":{"line":259,"column":40}},"259":{"start":{"line":260,"column":0},"end":{"line":260,"column":21}},"260":{"start":{"line":261,"column":0},"end":{"line":261,"column":16}},"261":{"start":{"line":262,"column":0},"end":{"line":262,"column":11}},"262":{"start":{"line":263,"column":0},"end":{"line":263,"column":25}},"263":{"start":{"line":264,"column":0},"end":{"line":264,"column":20}},"264":{"start":{"line":265,"column":0},"end":{"line":265,"column":46}},"265":{"start":{"line":266,"column":0},"end":{"line":266,"column":32}},"266":{"start":{"line":267,"column":0},"end":{"line":267,"column":14}},"267":{"start":{"line":268,"column":0},"end":{"line":268,"column":12}},"268":{"start":{"line":269,"column":0},"end":{"line":269,"column":10}},"269":{"start":{"line":270,"column":0},"end":{"line":270,"column":7}},"270":{"start":{"line":271,"column":0},"end":{"line":271,"column":47}},"271":{"start":{"line":272,"column":0},"end":{"line":272,"column":105}},"272":{"start":{"line":273,"column":0},"end":{"line":273,"column":6}},"274":{"start":{"line":275,"column":0},"end":{"line":275,"column":54}},"275":{"start":{"line":276,"column":0},"end":{"line":276,"column":45}},"276":{"start":{"line":277,"column":0},"end":{"line":277,"column":20}},"277":{"start":{"line":278,"column":0},"end":{"line":278,"column":30}},"278":{"start":{"line":279,"column":0},"end":{"line":279,"column":21}},"279":{"start":{"line":280,"column":0},"end":{"line":280,"column":16}},"280":{"start":{"line":281,"column":0},"end":{"line":281,"column":11}},"281":{"start":{"line":282,"column":0},"end":{"line":282,"column":25}},"282":{"start":{"line":283,"column":0},"end":{"line":283,"column":20}},"283":{"start":{"line":284,"column":0},"end":{"line":284,"column":24}},"284":{"start":{"line":285,"column":0},"end":{"line":285,"column":59}},"285":{"start":{"line":286,"column":0},"end":{"line":286,"column":27}},"286":{"start":{"line":287,"column":0},"end":{"line":287,"column":31}},"287":{"start":{"line":288,"column":0},"end":{"line":288,"column":32}},"288":{"start":{"line":289,"column":0},"end":{"line":289,"column":14}},"289":{"start":{"line":290,"column":0},"end":{"line":290,"column":12}},"290":{"start":{"line":291,"column":0},"end":{"line":291,"column":10}},"291":{"start":{"line":292,"column":0},"end":{"line":292,"column":7}},"292":{"start":{"line":293,"column":0},"end":{"line":293,"column":47}},"293":{"start":{"line":294,"column":0},"end":{"line":294,"column":126}},"294":{"start":{"line":295,"column":0},"end":{"line":295,"column":6}},"296":{"start":{"line":297,"column":0},"end":{"line":297,"column":51}},"297":{"start":{"line":298,"column":0},"end":{"line":298,"column":45}},"298":{"start":{"line":299,"column":0},"end":{"line":299,"column":20}},"299":{"start":{"line":300,"column":0},"end":{"line":300,"column":27}},"300":{"start":{"line":301,"column":0},"end":{"line":301,"column":21}},"301":{"start":{"line":302,"column":0},"end":{"line":302,"column":16}},"302":{"start":{"line":303,"column":0},"end":{"line":303,"column":11}},"303":{"start":{"line":304,"column":0},"end":{"line":304,"column":25}},"304":{"start":{"line":305,"column":0},"end":{"line":305,"column":20}},"305":{"start":{"line":306,"column":0},"end":{"line":306,"column":87}},"306":{"start":{"line":307,"column":0},"end":{"line":307,"column":32}},"307":{"start":{"line":308,"column":0},"end":{"line":308,"column":14}},"308":{"start":{"line":309,"column":0},"end":{"line":309,"column":12}},"309":{"start":{"line":310,"column":0},"end":{"line":310,"column":10}},"310":{"start":{"line":311,"column":0},"end":{"line":311,"column":7}},"311":{"start":{"line":312,"column":0},"end":{"line":312,"column":47}},"312":{"start":{"line":313,"column":0},"end":{"line":313,"column":126}},"313":{"start":{"line":314,"column":0},"end":{"line":314,"column":6}},"315":{"start":{"line":316,"column":0},"end":{"line":316,"column":49}},"316":{"start":{"line":317,"column":0},"end":{"line":317,"column":45}},"317":{"start":{"line":318,"column":0},"end":{"line":318,"column":20}},"318":{"start":{"line":319,"column":0},"end":{"line":319,"column":21}},"319":{"start":{"line":320,"column":0},"end":{"line":320,"column":21}},"320":{"start":{"line":321,"column":0},"end":{"line":321,"column":34}},"321":{"start":{"line":322,"column":0},"end":{"line":322,"column":7}},"322":{"start":{"line":323,"column":0},"end":{"line":323,"column":47}},"323":{"start":{"line":324,"column":0},"end":{"line":324,"column":63}},"324":{"start":{"line":325,"column":0},"end":{"line":325,"column":6}},"326":{"start":{"line":327,"column":0},"end":{"line":327,"column":52}},"327":{"start":{"line":328,"column":0},"end":{"line":328,"column":45}},"328":{"start":{"line":329,"column":0},"end":{"line":329,"column":22}},"329":{"start":{"line":330,"column":0},"end":{"line":330,"column":23}},"330":{"start":{"line":331,"column":0},"end":{"line":331,"column":21}},"331":{"start":{"line":332,"column":0},"end":{"line":332,"column":36}},"332":{"start":{"line":333,"column":0},"end":{"line":333,"column":7}},"333":{"start":{"line":334,"column":0},"end":{"line":334,"column":49}},"334":{"start":{"line":335,"column":0},"end":{"line":335,"column":53}},"335":{"start":{"line":336,"column":0},"end":{"line":336,"column":6}},"337":{"start":{"line":338,"column":0},"end":{"line":338,"column":54}},"338":{"start":{"line":339,"column":0},"end":{"line":339,"column":45}},"339":{"start":{"line":340,"column":0},"end":{"line":340,"column":25}},"340":{"start":{"line":341,"column":0},"end":{"line":341,"column":26}},"341":{"start":{"line":342,"column":0},"end":{"line":342,"column":21}},"342":{"start":{"line":343,"column":0},"end":{"line":343,"column":39}},"343":{"start":{"line":344,"column":0},"end":{"line":344,"column":7}},"344":{"start":{"line":345,"column":0},"end":{"line":345,"column":52}},"345":{"start":{"line":346,"column":0},"end":{"line":346,"column":53}},"346":{"start":{"line":347,"column":0},"end":{"line":347,"column":6}},"348":{"start":{"line":349,"column":0},"end":{"line":349,"column":51}},"349":{"start":{"line":350,"column":0},"end":{"line":350,"column":45}},"350":{"start":{"line":351,"column":0},"end":{"line":351,"column":22}},"351":{"start":{"line":352,"column":0},"end":{"line":352,"column":23}},"352":{"start":{"line":353,"column":0},"end":{"line":353,"column":21}},"353":{"start":{"line":354,"column":0},"end":{"line":354,"column":36}},"354":{"start":{"line":355,"column":0},"end":{"line":355,"column":7}},"355":{"start":{"line":356,"column":0},"end":{"line":356,"column":49}},"356":{"start":{"line":357,"column":0},"end":{"line":357,"column":50}},"357":{"start":{"line":358,"column":0},"end":{"line":358,"column":6}},"359":{"start":{"line":360,"column":0},"end":{"line":360,"column":49}},"360":{"start":{"line":361,"column":0},"end":{"line":361,"column":45}},"361":{"start":{"line":362,"column":0},"end":{"line":362,"column":20}},"362":{"start":{"line":363,"column":0},"end":{"line":363,"column":21}},"363":{"start":{"line":364,"column":0},"end":{"line":364,"column":21}},"364":{"start":{"line":365,"column":0},"end":{"line":365,"column":34}},"365":{"start":{"line":366,"column":0},"end":{"line":366,"column":7}},"366":{"start":{"line":367,"column":0},"end":{"line":367,"column":47}},"367":{"start":{"line":368,"column":0},"end":{"line":368,"column":57}},"368":{"start":{"line":369,"column":0},"end":{"line":369,"column":6}},"370":{"start":{"line":371,"column":0},"end":{"line":371,"column":56}},"371":{"start":{"line":372,"column":0},"end":{"line":372,"column":45}},"372":{"start":{"line":373,"column":0},"end":{"line":373,"column":27}},"373":{"start":{"line":374,"column":0},"end":{"line":374,"column":28}},"374":{"start":{"line":375,"column":0},"end":{"line":375,"column":21}},"375":{"start":{"line":376,"column":0},"end":{"line":376,"column":41}},"376":{"start":{"line":377,"column":0},"end":{"line":377,"column":7}},"377":{"start":{"line":378,"column":0},"end":{"line":378,"column":54}},"378":{"start":{"line":379,"column":0},"end":{"line":379,"column":61}},"379":{"start":{"line":380,"column":0},"end":{"line":380,"column":6}},"381":{"start":{"line":382,"column":0},"end":{"line":382,"column":54}},"382":{"start":{"line":383,"column":0},"end":{"line":383,"column":45}},"383":{"start":{"line":384,"column":0},"end":{"line":384,"column":25}},"384":{"start":{"line":385,"column":0},"end":{"line":385,"column":26}},"385":{"start":{"line":386,"column":0},"end":{"line":386,"column":21}},"386":{"start":{"line":387,"column":0},"end":{"line":387,"column":39}},"387":{"start":{"line":388,"column":0},"end":{"line":388,"column":7}},"388":{"start":{"line":389,"column":0},"end":{"line":389,"column":52}},"389":{"start":{"line":390,"column":0},"end":{"line":390,"column":59}},"390":{"start":{"line":391,"column":0},"end":{"line":391,"column":6}},"392":{"start":{"line":393,"column":0},"end":{"line":393,"column":54}},"393":{"start":{"line":394,"column":0},"end":{"line":394,"column":45}},"394":{"start":{"line":395,"column":0},"end":{"line":395,"column":25}},"395":{"start":{"line":396,"column":0},"end":{"line":396,"column":26}},"396":{"start":{"line":397,"column":0},"end":{"line":397,"column":21}},"397":{"start":{"line":398,"column":0},"end":{"line":398,"column":39}},"398":{"start":{"line":399,"column":0},"end":{"line":399,"column":7}},"399":{"start":{"line":400,"column":0},"end":{"line":400,"column":52}},"400":{"start":{"line":401,"column":0},"end":{"line":401,"column":62}},"401":{"start":{"line":402,"column":0},"end":{"line":402,"column":6}},"402":{"start":{"line":403,"column":0},"end":{"line":403,"column":4}},"403":{"start":{"line":404,"column":0},"end":{"line":404,"column":32}},"404":{"start":{"line":405,"column":0},"end":{"line":405,"column":64}},"405":{"start":{"line":406,"column":0},"end":{"line":406,"column":43}},"406":{"start":{"line":407,"column":0},"end":{"line":407,"column":19}},"407":{"start":{"line":408,"column":0},"end":{"line":408,"column":8}},"408":{"start":{"line":409,"column":0},"end":{"line":409,"column":25}},"409":{"start":{"line":410,"column":0},"end":{"line":410,"column":26}},"410":{"start":{"line":411,"column":0},"end":{"line":411,"column":18}},"411":{"start":{"line":412,"column":0},"end":{"line":412,"column":11}},"412":{"start":{"line":413,"column":0},"end":{"line":413,"column":25}},"413":{"start":{"line":414,"column":0},"end":{"line":414,"column":34}},"414":{"start":{"line":415,"column":0},"end":{"line":415,"column":12}},"415":{"start":{"line":416,"column":0},"end":{"line":416,"column":10}},"416":{"start":{"line":417,"column":0},"end":{"line":417,"column":7}},"417":{"start":{"line":418,"column":0},"end":{"line":418,"column":53}},"418":{"start":{"line":419,"column":0},"end":{"line":419,"column":44}},"419":{"start":{"line":420,"column":0},"end":{"line":420,"column":34}},"420":{"start":{"line":421,"column":0},"end":{"line":421,"column":6}},"421":{"start":{"line":422,"column":0},"end":{"line":422,"column":62}},"422":{"start":{"line":423,"column":0},"end":{"line":423,"column":43}},"423":{"start":{"line":424,"column":0},"end":{"line":424,"column":20}},"424":{"start":{"line":425,"column":0},"end":{"line":425,"column":31}},"425":{"start":{"line":426,"column":0},"end":{"line":426,"column":8}},"426":{"start":{"line":427,"column":0},"end":{"line":427,"column":25}},"427":{"start":{"line":428,"column":0},"end":{"line":428,"column":26}},"428":{"start":{"line":429,"column":0},"end":{"line":429,"column":18}},"429":{"start":{"line":430,"column":0},"end":{"line":430,"column":11}},"430":{"start":{"line":431,"column":0},"end":{"line":431,"column":25}},"431":{"start":{"line":432,"column":0},"end":{"line":432,"column":34}},"432":{"start":{"line":433,"column":0},"end":{"line":433,"column":12}},"433":{"start":{"line":434,"column":0},"end":{"line":434,"column":10}},"434":{"start":{"line":435,"column":0},"end":{"line":435,"column":7}},"435":{"start":{"line":436,"column":0},"end":{"line":436,"column":53}},"436":{"start":{"line":437,"column":0},"end":{"line":437,"column":63}},"437":{"start":{"line":438,"column":0},"end":{"line":438,"column":6}},"438":{"start":{"line":439,"column":0},"end":{"line":439,"column":51}},"439":{"start":{"line":440,"column":0},"end":{"line":440,"column":34}},"441":{"start":{"line":442,"column":0},"end":{"line":442,"column":43}},"442":{"start":{"line":443,"column":0},"end":{"line":443,"column":20}},"443":{"start":{"line":444,"column":0},"end":{"line":444,"column":66}},"444":{"start":{"line":445,"column":0},"end":{"line":445,"column":33}},"445":{"start":{"line":446,"column":0},"end":{"line":446,"column":39}},"446":{"start":{"line":447,"column":0},"end":{"line":447,"column":23}},"447":{"start":{"line":448,"column":0},"end":{"line":448,"column":9}},"448":{"start":{"line":449,"column":0},"end":{"line":449,"column":8}},"449":{"start":{"line":450,"column":0},"end":{"line":450,"column":20}},"450":{"start":{"line":451,"column":0},"end":{"line":451,"column":30}},"451":{"start":{"line":452,"column":0},"end":{"line":452,"column":21}},"452":{"start":{"line":453,"column":0},"end":{"line":453,"column":16}},"453":{"start":{"line":454,"column":0},"end":{"line":454,"column":11}},"454":{"start":{"line":455,"column":0},"end":{"line":455,"column":25}},"455":{"start":{"line":456,"column":0},"end":{"line":456,"column":20}},"456":{"start":{"line":457,"column":0},"end":{"line":457,"column":29}},"457":{"start":{"line":458,"column":0},"end":{"line":458,"column":59}},"458":{"start":{"line":459,"column":0},"end":{"line":459,"column":27}},"459":{"start":{"line":460,"column":0},"end":{"line":460,"column":31}},"460":{"start":{"line":461,"column":0},"end":{"line":461,"column":32}},"461":{"start":{"line":462,"column":0},"end":{"line":462,"column":14}},"462":{"start":{"line":463,"column":0},"end":{"line":463,"column":12}},"463":{"start":{"line":464,"column":0},"end":{"line":464,"column":10}},"464":{"start":{"line":465,"column":0},"end":{"line":465,"column":7}},"465":{"start":{"line":466,"column":0},"end":{"line":466,"column":47}},"466":{"start":{"line":467,"column":0},"end":{"line":467,"column":36}},"467":{"start":{"line":468,"column":0},"end":{"line":468,"column":42}},"468":{"start":{"line":469,"column":0},"end":{"line":469,"column":6}},"470":{"start":{"line":471,"column":0},"end":{"line":471,"column":54}},"471":{"start":{"line":472,"column":0},"end":{"line":472,"column":84}},"472":{"start":{"line":473,"column":0},"end":{"line":473,"column":38}},"473":{"start":{"line":474,"column":0},"end":{"line":474,"column":37}},"474":{"start":{"line":475,"column":0},"end":{"line":475,"column":29}},"475":{"start":{"line":476,"column":0},"end":{"line":476,"column":25}},"476":{"start":{"line":477,"column":0},"end":{"line":477,"column":7}},"477":{"start":{"line":478,"column":0},"end":{"line":478,"column":43}},"478":{"start":{"line":479,"column":0},"end":{"line":479,"column":20}},"479":{"start":{"line":480,"column":0},"end":{"line":480,"column":32}},"480":{"start":{"line":481,"column":0},"end":{"line":481,"column":20}},"481":{"start":{"line":482,"column":0},"end":{"line":482,"column":52}},"482":{"start":{"line":483,"column":0},"end":{"line":483,"column":9}},"483":{"start":{"line":484,"column":0},"end":{"line":484,"column":8}},"484":{"start":{"line":485,"column":0},"end":{"line":485,"column":25}},"485":{"start":{"line":486,"column":0},"end":{"line":486,"column":21}},"486":{"start":{"line":487,"column":0},"end":{"line":487,"column":16}},"487":{"start":{"line":488,"column":0},"end":{"line":488,"column":53}},"488":{"start":{"line":489,"column":0},"end":{"line":489,"column":17}},"489":{"start":{"line":490,"column":0},"end":{"line":490,"column":13}},"490":{"start":{"line":491,"column":0},"end":{"line":491,"column":22}},"491":{"start":{"line":492,"column":0},"end":{"line":492,"column":61}},"492":{"start":{"line":493,"column":0},"end":{"line":493,"column":38}},"493":{"start":{"line":494,"column":0},"end":{"line":494,"column":39}},"494":{"start":{"line":495,"column":0},"end":{"line":495,"column":14}},"495":{"start":{"line":496,"column":0},"end":{"line":496,"column":13}},"496":{"start":{"line":497,"column":0},"end":{"line":497,"column":22}},"497":{"start":{"line":498,"column":0},"end":{"line":498,"column":61}},"498":{"start":{"line":499,"column":0},"end":{"line":499,"column":34}},"499":{"start":{"line":500,"column":0},"end":{"line":500,"column":39}},"500":{"start":{"line":501,"column":0},"end":{"line":501,"column":14}},"501":{"start":{"line":502,"column":0},"end":{"line":502,"column":12}},"502":{"start":{"line":503,"column":0},"end":{"line":503,"column":10}},"503":{"start":{"line":504,"column":0},"end":{"line":504,"column":7}},"504":{"start":{"line":505,"column":0},"end":{"line":505,"column":53}},"505":{"start":{"line":506,"column":0},"end":{"line":506,"column":60}},"506":{"start":{"line":507,"column":0},"end":{"line":507,"column":6}},"507":{"start":{"line":508,"column":0},"end":{"line":508,"column":4}},"508":{"start":{"line":509,"column":0},"end":{"line":509,"column":2}}},"s":{"0":1,"1":1,"2":1,"3":1,"5":1,"6":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"14":1,"15":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"25":1,"26":1,"27":1,"28":1,"29":1,"30":1,"31":1,"32":1,"33":1,"34":1,"35":1,"36":1,"37":1,"38":1,"39":1,"40":1,"41":1,"43":1,"44":1,"45":1,"46":1,"47":1,"48":1,"49":1,"50":1,"51":1,"52":1,"53":1,"54":1,"55":1,"56":1,"57":1,"58":1,"59":1,"60":1,"61":1,"62":1,"63":1,"64":1,"65":1,"66":1,"67":1,"68":1,"69":1,"70":1,"72":1,"73":1,"74":1,"75":1,"76":1,"77":1,"78":1,"79":1,"80":1,"81":1,"82":1,"83":1,"84":1,"85":1,"86":1,"87":1,"88":1,"89":1,"90":1,"91":1,"92":1,"93":1,"94":1,"95":1,"96":1,"97":1,"98":1,"99":1,"100":1,"102":1,"103":1,"104":1,"105":1,"106":1,"107":1,"108":1,"109":1,"110":1,"111":1,"112":1,"113":1,"115":1,"116":1,"117":1,"118":1,"119":1,"120":1,"121":1,"122":1,"123":1,"124":1,"125":1,"127":1,"128":1,"129":1,"130":1,"131":1,"132":1,"133":1,"134":1,"135":1,"136":1,"137":1,"138":1,"139":1,"140":1,"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"151":1,"152":1,"153":1,"154":1,"155":1,"156":1,"157":1,"158":1,"160":1,"161":1,"162":1,"163":1,"164":1,"165":1,"166":1,"167":1,"168":1,"169":1,"170":1,"171":1,"172":1,"173":1,"174":1,"175":1,"176":1,"177":1,"178":1,"179":1,"181":1,"182":1,"183":1,"184":1,"185":1,"186":1,"187":1,"188":1,"189":1,"190":1,"191":1,"192":1,"193":1,"194":1,"195":1,"196":1,"198":1,"199":1,"200":1,"201":1,"202":1,"203":1,"204":1,"205":1,"206":1,"207":1,"208":1,"209":1,"210":1,"212":1,"213":1,"215":1,"216":1,"217":1,"218":1,"219":1,"220":1,"221":1,"222":1,"223":1,"224":1,"225":1,"226":1,"227":1,"228":1,"229":1,"230":1,"231":1,"232":1,"233":1,"235":1,"236":1,"237":1,"238":1,"239":1,"240":1,"241":1,"242":1,"243":1,"244":1,"245":1,"246":1,"247":1,"248":1,"249":1,"250":1,"251":1,"252":1,"253":1,"255":1,"256":1,"257":1,"258":1,"259":1,"260":1,"261":1,"262":1,"263":1,"264":1,"265":1,"266":1,"267":1,"268":1,"269":1,"270":1,"271":1,"272":1,"274":1,"275":1,"276":1,"277":1,"278":1,"279":1,"280":1,"281":1,"282":1,"283":1,"284":1,"285":1,"286":1,"287":1,"288":1,"289":1,"290":1,"291":1,"292":1,"293":1,"294":1,"296":1,"297":1,"298":1,"299":1,"300":1,"301":1,"302":1,"303":1,"304":1,"305":1,"306":1,"307":1,"308":1,"309":1,"310":1,"311":1,"312":1,"313":1,"315":1,"316":1,"317":1,"318":1,"319":1,"320":1,"321":1,"322":1,"323":1,"324":1,"326":1,"327":1,"328":1,"329":1,"330":1,"331":1,"332":1,"333":1,"334":1,"335":1,"337":1,"338":1,"339":1,"340":1,"341":1,"342":1,"343":1,"344":1,"345":1,"346":1,"348":1,"349":1,"350":1,"351":1,"352":1,"353":1,"354":1,"355":1,"356":1,"357":1,"359":1,"360":1,"361":1,"362":1,"363":1,"364":1,"365":1,"366":1,"367":1,"368":1,"370":1,"371":1,"372":1,"373":1,"374":1,"375":1,"376":1,"377":1,"378":1,"379":1,"381":1,"382":1,"383":1,"384":1,"385":1,"386":1,"387":1,"388":1,"389":1,"390":1,"392":1,"393":1,"394":1,"395":1,"396":1,"397":1,"398":1,"399":1,"400":1,"401":1,"402":1,"403":1,"404":1,"405":1,"406":1,"407":1,"408":1,"409":1,"410":1,"411":1,"412":1,"413":1,"414":1,"415":1,"416":1,"417":1,"418":1,"419":1,"420":1,"421":1,"422":1,"423":1,"424":1,"425":1,"426":1,"427":1,"428":1,"429":1,"430":1,"431":1,"432":1,"433":1,"434":1,"435":1,"436":1,"437":1,"438":1,"439":1,"441":1,"442":1,"443":1,"444":1,"445":1,"446":1,"447":1,"448":1,"449":1,"450":1,"451":1,"452":1,"453":1,"454":1,"455":1,"456":1,"457":1,"458":1,"459":1,"460":1,"461":1,"462":1,"463":1,"464":1,"465":1,"466":1,"467":1,"468":1,"470":1,"471":1,"472":1,"473":1,"474":1,"475":1,"476":1,"477":1,"478":1,"479":1,"480":1,"481":1,"482":1,"483":1,"484":1,"485":1,"486":1,"487":1,"488":1,"489":1,"490":1,"491":1,"492":1,"493":1,"494":1,"495":1,"496":1,"497":1,"498":1,"499":1,"500":1,"501":1,"502":1,"503":1,"504":1,"505":1,"506":1,"507":1,"508":1},"branchMap":{"0":{"type":"branch","line":9,"loc":{"start":{"line":9,"column":21},"end":{"line":509,"column":2}},"locations":[{"start":{"line":9,"column":21},"end":{"line":509,"column":2}}]},"1":{"type":"branch","line":10,"loc":{"start":{"line":10,"column":25},"end":{"line":180,"column":3}},"locations":[{"start":{"line":10,"column":25},"end":{"line":180,"column":3}}]},"2":{"type":"branch","line":11,"loc":{"start":{"line":11,"column":36},"end":{"line":24,"column":5}},"locations":[{"start":{"line":11,"column":36},"end":{"line":24,"column":5}}]},"3":{"type":"branch","line":26,"loc":{"start":{"line":26,"column":36},"end":{"line":42,"column":5}},"locations":[{"start":{"line":26,"column":36},"end":{"line":42,"column":5}}]},"4":{"type":"branch","line":44,"loc":{"start":{"line":44,"column":42},"end":{"line":71,"column":5}},"locations":[{"start":{"line":44,"column":42},"end":{"line":71,"column":5}}]},"5":{"type":"branch","line":73,"loc":{"start":{"line":73,"column":40},"end":{"line":101,"column":5}},"locations":[{"start":{"line":73,"column":40},"end":{"line":101,"column":5}}]},"6":{"type":"branch","line":103,"loc":{"start":{"line":103,"column":44},"end":{"line":114,"column":5}},"locations":[{"start":{"line":103,"column":44},"end":{"line":114,"column":5}}]},"7":{"type":"branch","line":116,"loc":{"start":{"line":116,"column":33},"end":{"line":126,"column":5}},"locations":[{"start":{"line":116,"column":33},"end":{"line":126,"column":5}}]},"8":{"type":"branch","line":128,"loc":{"start":{"line":128,"column":37},"end":{"line":141,"column":5}},"locations":[{"start":{"line":128,"column":37},"end":{"line":141,"column":5}}]},"9":{"type":"branch","line":143,"loc":{"start":{"line":143,"column":42},"end":{"line":150,"column":5}},"locations":[{"start":{"line":143,"column":42},"end":{"line":150,"column":5}}]},"10":{"type":"branch","line":152,"loc":{"start":{"line":152,"column":32},"end":{"line":159,"column":5}},"locations":[{"start":{"line":152,"column":32},"end":{"line":159,"column":5}}]},"11":{"type":"branch","line":161,"loc":{"start":{"line":161,"column":33},"end":{"line":179,"column":5}},"locations":[{"start":{"line":161,"column":33},"end":{"line":179,"column":5}}]},"12":{"type":"branch","line":182,"loc":{"start":{"line":182,"column":37},"end":{"line":403,"column":3}},"locations":[{"start":{"line":182,"column":37},"end":{"line":403,"column":3}}]},"13":{"type":"branch","line":183,"loc":{"start":{"line":183,"column":40},"end":{"line":197,"column":5}},"locations":[{"start":{"line":183,"column":40},"end":{"line":197,"column":5}}]},"14":{"type":"branch","line":199,"loc":{"start":{"line":199,"column":47},"end":{"line":214,"column":5}},"locations":[{"start":{"line":199,"column":47},"end":{"line":214,"column":5}}]},"15":{"type":"branch","line":216,"loc":{"start":{"line":216,"column":41},"end":{"line":234,"column":5}},"locations":[{"start":{"line":216,"column":41},"end":{"line":234,"column":5}}]},"16":{"type":"branch","line":236,"loc":{"start":{"line":236,"column":39},"end":{"line":254,"column":5}},"locations":[{"start":{"line":236,"column":39},"end":{"line":254,"column":5}}]},"17":{"type":"branch","line":256,"loc":{"start":{"line":256,"column":38},"end":{"line":273,"column":5}},"locations":[{"start":{"line":256,"column":38},"end":{"line":273,"column":5}}]},"18":{"type":"branch","line":275,"loc":{"start":{"line":275,"column":41},"end":{"line":295,"column":5}},"locations":[{"start":{"line":275,"column":41},"end":{"line":295,"column":5}}]},"19":{"type":"branch","line":297,"loc":{"start":{"line":297,"column":38},"end":{"line":314,"column":5}},"locations":[{"start":{"line":297,"column":38},"end":{"line":314,"column":5}}]},"20":{"type":"branch","line":316,"loc":{"start":{"line":316,"column":36},"end":{"line":325,"column":5}},"locations":[{"start":{"line":316,"column":36},"end":{"line":325,"column":5}}]},"21":{"type":"branch","line":327,"loc":{"start":{"line":327,"column":39},"end":{"line":336,"column":5}},"locations":[{"start":{"line":327,"column":39},"end":{"line":336,"column":5}}]},"22":{"type":"branch","line":338,"loc":{"start":{"line":338,"column":41},"end":{"line":347,"column":5}},"locations":[{"start":{"line":338,"column":41},"end":{"line":347,"column":5}}]},"23":{"type":"branch","line":349,"loc":{"start":{"line":349,"column":38},"end":{"line":358,"column":5}},"locations":[{"start":{"line":349,"column":38},"end":{"line":358,"column":5}}]},"24":{"type":"branch","line":360,"loc":{"start":{"line":360,"column":36},"end":{"line":369,"column":5}},"locations":[{"start":{"line":360,"column":36},"end":{"line":369,"column":5}}]},"25":{"type":"branch","line":371,"loc":{"start":{"line":371,"column":43},"end":{"line":380,"column":5}},"locations":[{"start":{"line":371,"column":43},"end":{"line":380,"column":5}}]},"26":{"type":"branch","line":382,"loc":{"start":{"line":382,"column":41},"end":{"line":391,"column":5}},"locations":[{"start":{"line":382,"column":41},"end":{"line":391,"column":5}}]},"27":{"type":"branch","line":393,"loc":{"start":{"line":393,"column":41},"end":{"line":402,"column":5}},"locations":[{"start":{"line":393,"column":41},"end":{"line":402,"column":5}}]},"28":{"type":"branch","line":404,"loc":{"start":{"line":404,"column":25},"end":{"line":508,"column":3}},"locations":[{"start":{"line":404,"column":25},"end":{"line":508,"column":3}}]},"29":{"type":"branch","line":405,"loc":{"start":{"line":405,"column":51},"end":{"line":421,"column":5}},"locations":[{"start":{"line":405,"column":51},"end":{"line":421,"column":5}}]},"30":{"type":"branch","line":422,"loc":{"start":{"line":422,"column":49},"end":{"line":438,"column":5}},"locations":[{"start":{"line":422,"column":49},"end":{"line":438,"column":5}}]},"31":{"type":"branch","line":439,"loc":{"start":{"line":439,"column":38},"end":{"line":469,"column":5}},"locations":[{"start":{"line":439,"column":38},"end":{"line":469,"column":5}}]},"32":{"type":"branch","line":444,"loc":{"start":{"line":444,"column":28},"end":{"line":447,"column":23}},"locations":[{"start":{"line":444,"column":28},"end":{"line":447,"column":23}}]},"33":{"type":"branch","line":471,"loc":{"start":{"line":471,"column":41},"end":{"line":507,"column":5}},"locations":[{"start":{"line":471,"column":41},"end":{"line":507,"column":5}}]},"34":{"type":"branch","line":472,"loc":{"start":{"line":472,"column":53},"end":{"line":477,"column":7}},"locations":[{"start":{"line":472,"column":53},"end":{"line":477,"column":7}}]}},"b":{"0":[1],"1":[1],"2":[1],"3":[1],"4":[1],"5":[1],"6":[1],"7":[1],"8":[1],"9":[1],"10":[1],"11":[1],"12":[1],"13":[1],"14":[1],"15":[1],"16":[1],"17":[1],"18":[1],"19":[1],"20":[1],"21":[1],"22":[1],"23":[1],"24":[1],"25":[1],"26":[1],"27":[1],"28":[1],"29":[1],"30":[1],"31":[1],"32":[1],"33":[1],"34":[1]},"fnMap":{"0":{"name":"__vite_ssr_import_1__.richTextResolver.resolvers","decl":{"start":{"line":444,"column":28},"end":{"line":447,"column":23}},"loc":{"start":{"line":444,"column":28},"end":{"line":447,"column":23}},"line":444},"1":{"name":"componentResolver","decl":{"start":{"line":472,"column":53},"end":{"line":477,"column":7}},"loc":{"start":{"line":472,"column":53},"end":{"line":477,"column":7}},"line":472}},"f":{"0":1,"1":1}} -,"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/richtext.ts": {"path":"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/richtext.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":88}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":80}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":39}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":12}},"50":{"start":{"line":51,"column":0},"end":{"line":51,"column":79}},"51":{"start":{"line":52,"column":0},"end":{"line":52,"column":38}},"52":{"start":{"line":53,"column":0},"end":{"line":53,"column":13}},"70":{"start":{"line":71,"column":0},"end":{"line":71,"column":49}},"71":{"start":{"line":72,"column":0},"end":{"line":72,"column":19}},"72":{"start":{"line":73,"column":0},"end":{"line":73,"column":27}},"73":{"start":{"line":74,"column":0},"end":{"line":74,"column":26}},"74":{"start":{"line":75,"column":0},"end":{"line":75,"column":26}},"75":{"start":{"line":76,"column":0},"end":{"line":76,"column":28}},"76":{"start":{"line":77,"column":0},"end":{"line":77,"column":28}},"77":{"start":{"line":78,"column":0},"end":{"line":78,"column":1}},"88":{"start":{"line":89,"column":0},"end":{"line":89,"column":107}},"89":{"start":{"line":90,"column":0},"end":{"line":90,"column":42}},"90":{"start":{"line":91,"column":0},"end":{"line":91,"column":63}},"91":{"start":{"line":92,"column":0},"end":{"line":92,"column":113}},"92":{"start":{"line":93,"column":0},"end":{"line":93,"column":1}},"102":{"start":{"line":103,"column":0},"end":{"line":103,"column":74}},"104":{"start":{"line":105,"column":0},"end":{"line":105,"column":20}},"105":{"start":{"line":106,"column":0},"end":{"line":106,"column":9}},"106":{"start":{"line":107,"column":0},"end":{"line":107,"column":31}},"107":{"start":{"line":108,"column":0},"end":{"line":108,"column":24}},"108":{"start":{"line":109,"column":0},"end":{"line":109,"column":19}},"109":{"start":{"line":110,"column":0},"end":{"line":110,"column":27}},"110":{"start":{"line":111,"column":0},"end":{"line":111,"column":13}},"113":{"start":{"line":114,"column":0},"end":{"line":114,"column":201}},"115":{"start":{"line":116,"column":0},"end":{"line":116,"column":81}},"116":{"start":{"line":117,"column":0},"end":{"line":117,"column":51}},"117":{"start":{"line":118,"column":0},"end":{"line":118,"column":23}},"118":{"start":{"line":119,"column":0},"end":{"line":119,"column":24}},"120":{"start":{"line":121,"column":0},"end":{"line":121,"column":24}},"121":{"start":{"line":122,"column":0},"end":{"line":122,"column":94}},"122":{"start":{"line":123,"column":0},"end":{"line":123,"column":30}},"123":{"start":{"line":124,"column":0},"end":{"line":124,"column":34}},"124":{"start":{"line":125,"column":0},"end":{"line":125,"column":5}},"125":{"start":{"line":126,"column":0},"end":{"line":126,"column":22}},"126":{"start":{"line":127,"column":0},"end":{"line":127,"column":20}},"127":{"start":{"line":128,"column":0},"end":{"line":128,"column":21}},"128":{"start":{"line":129,"column":0},"end":{"line":129,"column":31}},"129":{"start":{"line":130,"column":0},"end":{"line":130,"column":14}},"130":{"start":{"line":131,"column":0},"end":{"line":131,"column":20}},"131":{"start":{"line":132,"column":0},"end":{"line":132,"column":6}},"133":{"start":{"line":134,"column":0},"end":{"line":134,"column":46}},"134":{"start":{"line":135,"column":0},"end":{"line":135,"column":4}},"135":{"start":{"line":136,"column":0},"end":{"line":136,"column":86}},"136":{"start":{"line":137,"column":0},"end":{"line":137,"column":47}},"137":{"start":{"line":138,"column":0},"end":{"line":138,"column":110}},"138":{"start":{"line":139,"column":0},"end":{"line":139,"column":3}},"140":{"start":{"line":141,"column":0},"end":{"line":141,"column":98}},"141":{"start":{"line":142,"column":0},"end":{"line":142,"column":25}},"142":{"start":{"line":143,"column":0},"end":{"line":143,"column":34}},"143":{"start":{"line":144,"column":0},"end":{"line":144,"column":31}},"144":{"start":{"line":145,"column":0},"end":{"line":145,"column":33}},"145":{"start":{"line":146,"column":0},"end":{"line":146,"column":22}},"146":{"start":{"line":147,"column":0},"end":{"line":147,"column":35}},"147":{"start":{"line":148,"column":0},"end":{"line":148,"column":25}},"148":{"start":{"line":149,"column":0},"end":{"line":149,"column":69}},"149":{"start":{"line":150,"column":0},"end":{"line":150,"column":23}},"150":{"start":{"line":151,"column":0},"end":{"line":151,"column":20}},"151":{"start":{"line":152,"column":0},"end":{"line":152,"column":21}},"153":{"start":{"line":154,"column":0},"end":{"line":154,"column":88}},"154":{"start":{"line":155,"column":0},"end":{"line":155,"column":160}},"155":{"start":{"line":156,"column":0},"end":{"line":156,"column":3}},"158":{"start":{"line":159,"column":0},"end":{"line":159,"column":108}},"159":{"start":{"line":160,"column":0},"end":{"line":160,"column":31}},"160":{"start":{"line":161,"column":0},"end":{"line":161,"column":9}},"161":{"start":{"line":162,"column":0},"end":{"line":162,"column":37}},"162":{"start":{"line":163,"column":0},"end":{"line":163,"column":38}},"163":{"start":{"line":164,"column":0},"end":{"line":164,"column":9}},"164":{"start":{"line":165,"column":0},"end":{"line":165,"column":74}},"165":{"start":{"line":166,"column":0},"end":{"line":166,"column":3}},"167":{"start":{"line":168,"column":0},"end":{"line":168,"column":39}},"170":{"start":{"line":171,"column":0},"end":{"line":171,"column":39}},"171":{"start":{"line":172,"column":0},"end":{"line":172,"column":3}},"174":{"start":{"line":175,"column":0},"end":{"line":175,"column":83}},"175":{"start":{"line":176,"column":0},"end":{"line":176,"column":50}},"176":{"start":{"line":177,"column":0},"end":{"line":177,"column":25}},"179":{"start":{"line":180,"column":0},"end":{"line":180,"column":18}},"180":{"start":{"line":181,"column":0},"end":{"line":181,"column":23}},"181":{"start":{"line":182,"column":0},"end":{"line":182,"column":124}},"182":{"start":{"line":183,"column":0},"end":{"line":183,"column":100}},"183":{"start":{"line":184,"column":0},"end":{"line":184,"column":9}},"184":{"start":{"line":185,"column":0},"end":{"line":185,"column":75}},"185":{"start":{"line":186,"column":0},"end":{"line":186,"column":5}},"186":{"start":{"line":187,"column":0},"end":{"line":187,"column":10}},"187":{"start":{"line":188,"column":0},"end":{"line":188,"column":66}},"188":{"start":{"line":189,"column":0},"end":{"line":189,"column":5}},"189":{"start":{"line":190,"column":0},"end":{"line":190,"column":3}},"193":{"start":{"line":194,"column":0},"end":{"line":194,"column":80}},"194":{"start":{"line":195,"column":0},"end":{"line":195,"column":64}},"196":{"start":{"line":197,"column":0},"end":{"line":197,"column":22}},"197":{"start":{"line":198,"column":0},"end":{"line":198,"column":23}},"198":{"start":{"line":199,"column":0},"end":{"line":199,"column":27}},"199":{"start":{"line":200,"column":0},"end":{"line":200,"column":25}},"200":{"start":{"line":201,"column":0},"end":{"line":201,"column":24}},"201":{"start":{"line":202,"column":0},"end":{"line":202,"column":13}},"202":{"start":{"line":203,"column":0},"end":{"line":203,"column":27}},"203":{"start":{"line":204,"column":0},"end":{"line":204,"column":36}},"204":{"start":{"line":205,"column":0},"end":{"line":205,"column":13}},"205":{"start":{"line":206,"column":0},"end":{"line":206,"column":27}},"208":{"start":{"line":209,"column":0},"end":{"line":209,"column":24}},"209":{"start":{"line":210,"column":0},"end":{"line":210,"column":13}},"210":{"start":{"line":211,"column":0},"end":{"line":211,"column":14}},"212":{"start":{"line":213,"column":0},"end":{"line":213,"column":13}},"213":{"start":{"line":214,"column":0},"end":{"line":214,"column":5}},"214":{"start":{"line":215,"column":0},"end":{"line":215,"column":17}},"215":{"start":{"line":216,"column":0},"end":{"line":216,"column":42}},"216":{"start":{"line":217,"column":0},"end":{"line":217,"column":5}},"217":{"start":{"line":218,"column":0},"end":{"line":218,"column":101}},"218":{"start":{"line":219,"column":0},"end":{"line":219,"column":3}},"221":{"start":{"line":222,"column":0},"end":{"line":222,"column":88}},"222":{"start":{"line":223,"column":0},"end":{"line":223,"column":84}},"223":{"start":{"line":224,"column":0},"end":{"line":224,"column":29}},"224":{"start":{"line":225,"column":0},"end":{"line":225,"column":33}},"225":{"start":{"line":226,"column":0},"end":{"line":226,"column":25}},"226":{"start":{"line":227,"column":0},"end":{"line":227,"column":37}},"227":{"start":{"line":228,"column":0},"end":{"line":228,"column":29}},"228":{"start":{"line":229,"column":0},"end":{"line":229,"column":15}},"229":{"start":{"line":230,"column":0},"end":{"line":230,"column":3}},"231":{"start":{"line":232,"column":0},"end":{"line":232,"column":83}},"232":{"start":{"line":233,"column":0},"end":{"line":233,"column":47}},"233":{"start":{"line":234,"column":0},"end":{"line":234,"column":42}},"234":{"start":{"line":235,"column":0},"end":{"line":235,"column":46}},"235":{"start":{"line":236,"column":0},"end":{"line":236,"column":45}},"236":{"start":{"line":237,"column":0},"end":{"line":237,"column":45}},"237":{"start":{"line":238,"column":0},"end":{"line":238,"column":47}},"238":{"start":{"line":239,"column":0},"end":{"line":239,"column":38}},"239":{"start":{"line":240,"column":0},"end":{"line":240,"column":38}},"240":{"start":{"line":241,"column":0},"end":{"line":241,"column":47}},"241":{"start":{"line":242,"column":0},"end":{"line":242,"column":40}},"242":{"start":{"line":243,"column":0},"end":{"line":243,"column":40}},"243":{"start":{"line":244,"column":0},"end":{"line":244,"column":51}},"244":{"start":{"line":245,"column":0},"end":{"line":245,"column":46}},"245":{"start":{"line":246,"column":0},"end":{"line":246,"column":35}},"246":{"start":{"line":247,"column":0},"end":{"line":247,"column":35}},"247":{"start":{"line":248,"column":0},"end":{"line":248,"column":37}},"248":{"start":{"line":249,"column":0},"end":{"line":249,"column":51}},"249":{"start":{"line":250,"column":0},"end":{"line":250,"column":45}},"250":{"start":{"line":251,"column":0},"end":{"line":251,"column":55}},"251":{"start":{"line":252,"column":0},"end":{"line":252,"column":43}},"252":{"start":{"line":253,"column":0},"end":{"line":253,"column":45}},"253":{"start":{"line":254,"column":0},"end":{"line":254,"column":42}},"254":{"start":{"line":255,"column":0},"end":{"line":255,"column":43}},"255":{"start":{"line":256,"column":0},"end":{"line":256,"column":49}},"256":{"start":{"line":257,"column":0},"end":{"line":257,"column":47}},"257":{"start":{"line":258,"column":0},"end":{"line":258,"column":48}},"258":{"start":{"line":259,"column":0},"end":{"line":259,"column":172}},"259":{"start":{"line":260,"column":0},"end":{"line":260,"column":4}},"261":{"start":{"line":262,"column":0},"end":{"line":262,"column":51}},"262":{"start":{"line":263,"column":0},"end":{"line":263,"column":19}},"263":{"start":{"line":264,"column":0},"end":{"line":264,"column":51}},"264":{"start":{"line":265,"column":0},"end":{"line":265,"column":20}},"265":{"start":{"line":266,"column":0},"end":{"line":266,"column":82}},"266":{"start":{"line":267,"column":0},"end":{"line":267,"column":31}},"267":{"start":{"line":268,"column":0},"end":{"line":268,"column":5}},"269":{"start":{"line":270,"column":0},"end":{"line":270,"column":31}},"270":{"start":{"line":271,"column":0},"end":{"line":271,"column":98}},"271":{"start":{"line":272,"column":0},"end":{"line":272,"column":5}},"273":{"start":{"line":274,"column":0},"end":{"line":274,"column":72}},"275":{"start":{"line":276,"column":0},"end":{"line":276,"column":21}},"276":{"start":{"line":277,"column":0},"end":{"line":277,"column":14}},"277":{"start":{"line":278,"column":0},"end":{"line":278,"column":78}},"278":{"start":{"line":279,"column":0},"end":{"line":279,"column":6}},"279":{"start":{"line":280,"column":0},"end":{"line":280,"column":3}},"305":{"start":{"line":306,"column":0},"end":{"line":306,"column":47}},"306":{"start":{"line":307,"column":0},"end":{"line":307,"column":82}},"307":{"start":{"line":308,"column":0},"end":{"line":308,"column":3}},"309":{"start":{"line":310,"column":0},"end":{"line":310,"column":10}},"310":{"start":{"line":311,"column":0},"end":{"line":311,"column":11}},"311":{"start":{"line":312,"column":0},"end":{"line":312,"column":3}},"312":{"start":{"line":313,"column":0},"end":{"line":313,"column":1}}},"s":{"0":1,"1":1,"27":1,"28":36,"29":36,"50":1,"51":2,"52":2,"70":25,"71":25,"72":25,"73":25,"74":25,"75":25,"76":25,"77":25,"88":36,"89":36,"90":36,"91":36,"92":36,"102":1,"104":29,"105":29,"106":29,"107":29,"108":29,"109":29,"110":29,"113":29,"115":29,"116":1,"117":1,"118":1,"120":1,"121":0,"122":0,"123":0,"124":0,"125":1,"126":1,"127":1,"128":1,"129":1,"130":1,"131":1,"133":1,"134":1,"135":29,"136":1,"137":1,"138":1,"140":29,"141":1,"142":1,"143":1,"144":1,"145":1,"146":1,"147":1,"148":1,"149":1,"150":1,"151":1,"153":29,"154":1,"155":1,"158":29,"159":12,"160":2,"161":2,"162":2,"163":2,"164":12,"165":12,"167":29,"170":34,"171":34,"174":29,"175":42,"176":42,"179":42,"180":16,"181":16,"182":16,"183":16,"184":26,"185":42,"186":0,"187":0,"188":0,"189":42,"193":29,"194":5,"196":5,"197":5,"198":5,"199":5,"200":2,"201":2,"202":5,"203":1,"204":1,"205":5,"208":1,"209":1,"210":5,"212":1,"213":5,"214":5,"215":1,"216":1,"217":5,"218":5,"221":29,"222":0,"223":0,"224":0,"225":0,"226":0,"227":0,"228":0,"229":0,"231":29,"232":29,"233":29,"234":29,"235":29,"236":29,"237":29,"238":29,"239":29,"240":29,"241":29,"242":29,"243":29,"244":29,"245":29,"246":29,"247":29,"248":29,"249":29,"250":29,"251":29,"252":29,"253":29,"254":29,"255":29,"256":29,"257":29,"258":29,"259":29,"261":29,"262":80,"263":80,"264":80,"265":0,"266":0,"267":0,"269":80,"270":42,"271":42,"273":80,"275":80,"276":80,"277":80,"278":80,"279":80,"305":29,"306":80,"307":80,"309":29,"310":29,"311":29,"312":29},"branchMap":{"0":{"type":"branch","line":28,"loc":{"start":{"line":28,"column":22},"end":{"line":30,"column":12}},"locations":[{"start":{"line":28,"column":22},"end":{"line":30,"column":12}}]},"1":{"type":"branch","line":29,"loc":{"start":{"line":29,"column":7},"end":{"line":29,"column":38}},"locations":[{"start":{"line":29,"column":7},"end":{"line":29,"column":38}}]},"2":{"type":"branch","line":51,"loc":{"start":{"line":51,"column":21},"end":{"line":53,"column":13}},"locations":[{"start":{"line":51,"column":21},"end":{"line":53,"column":13}}]},"3":{"type":"branch","line":52,"loc":{"start":{"line":52,"column":7},"end":{"line":52,"column":37}},"locations":[{"start":{"line":52,"column":7},"end":{"line":52,"column":37}}]},"4":{"type":"branch","line":71,"loc":{"start":{"line":71,"column":0},"end":{"line":78,"column":1}},"locations":[{"start":{"line":71,"column":0},"end":{"line":78,"column":1}}]},"5":{"type":"branch","line":89,"loc":{"start":{"line":89,"column":0},"end":{"line":93,"column":1}},"locations":[{"start":{"line":89,"column":0},"end":{"line":93,"column":1}}]},"6":{"type":"branch","line":91,"loc":{"start":{"line":91,"column":55},"end":{"line":91,"column":63}},"locations":[{"start":{"line":91,"column":55},"end":{"line":91,"column":63}}]},"7":{"type":"branch","line":92,"loc":{"start":{"line":92,"column":48},"end":{"line":92,"column":72}},"locations":[{"start":{"line":92,"column":48},"end":{"line":92,"column":72}}]},"8":{"type":"branch","line":92,"loc":{"start":{"line":92,"column":68},"end":{"line":92,"column":86}},"locations":[{"start":{"line":92,"column":68},"end":{"line":92,"column":86}}]},"9":{"type":"branch","line":92,"loc":{"start":{"line":92,"column":72},"end":{"line":92,"column":86}},"locations":[{"start":{"line":92,"column":72},"end":{"line":92,"column":86}}]},"10":{"type":"branch","line":103,"loc":{"start":{"line":103,"column":7},"end":{"line":313,"column":1}},"locations":[{"start":{"line":103,"column":7},"end":{"line":313,"column":1}}]},"11":{"type":"branch","line":114,"loc":{"start":{"line":114,"column":23},"end":{"line":114,"column":201}},"locations":[{"start":{"line":114,"column":23},"end":{"line":114,"column":201}}]},"12":{"type":"branch","line":114,"loc":{"start":{"line":114,"column":67},"end":{"line":114,"column":201}},"locations":[{"start":{"line":114,"column":67},"end":{"line":114,"column":201}}]},"13":{"type":"branch","line":114,"loc":{"start":{"line":114,"column":172},"end":{"line":114,"column":195}},"locations":[{"start":{"line":114,"column":172},"end":{"line":114,"column":195}}]},"14":{"type":"branch","line":116,"loc":{"start":{"line":116,"column":51},"end":{"line":135,"column":4}},"locations":[{"start":{"line":116,"column":51},"end":{"line":135,"column":4}}]},"15":{"type":"branch","line":117,"loc":{"start":{"line":117,"column":39},"end":{"line":117,"column":51}},"locations":[{"start":{"line":117,"column":39},"end":{"line":117,"column":51}}]},"16":{"type":"branch","line":121,"loc":{"start":{"line":121,"column":23},"end":{"line":125,"column":5}},"locations":[{"start":{"line":121,"column":23},"end":{"line":125,"column":5}}]},"17":{"type":"branch","line":128,"loc":{"start":{"line":128,"column":11},"end":{"line":128,"column":21}},"locations":[{"start":{"line":128,"column":11},"end":{"line":128,"column":21}}]},"18":{"type":"branch","line":136,"loc":{"start":{"line":136,"column":53},"end":{"line":139,"column":3}},"locations":[{"start":{"line":136,"column":53},"end":{"line":139,"column":3}}]},"19":{"type":"branch","line":137,"loc":{"start":{"line":137,"column":36},"end":{"line":137,"column":47}},"locations":[{"start":{"line":137,"column":36},"end":{"line":137,"column":47}}]},"20":{"type":"branch","line":141,"loc":{"start":{"line":141,"column":51},"end":{"line":152,"column":21}},"locations":[{"start":{"line":141,"column":51},"end":{"line":152,"column":21}}]},"21":{"type":"branch","line":154,"loc":{"start":{"line":154,"column":55},"end":{"line":156,"column":3}},"locations":[{"start":{"line":154,"column":55},"end":{"line":156,"column":3}}]},"22":{"type":"branch","line":155,"loc":{"start":{"line":155,"column":132},"end":{"line":155,"column":153}},"locations":[{"start":{"line":155,"column":132},"end":{"line":155,"column":153}}]},"23":{"type":"branch","line":159,"loc":{"start":{"line":159,"column":23},"end":{"line":166,"column":3}},"locations":[{"start":{"line":159,"column":23},"end":{"line":166,"column":3}}]},"24":{"type":"branch","line":159,"loc":{"start":{"line":159,"column":83},"end":{"line":166,"column":3}},"locations":[{"start":{"line":159,"column":83},"end":{"line":166,"column":3}}]},"25":{"type":"branch","line":160,"loc":{"start":{"line":160,"column":25},"end":{"line":164,"column":9}},"locations":[{"start":{"line":160,"column":25},"end":{"line":164,"column":9}}]},"26":{"type":"branch","line":164,"loc":{"start":{"line":164,"column":8},"end":{"line":165,"column":57}},"locations":[{"start":{"line":164,"column":8},"end":{"line":165,"column":57}}]},"27":{"type":"branch","line":168,"loc":{"start":{"line":168,"column":20},"end":{"line":172,"column":3}},"locations":[{"start":{"line":168,"column":20},"end":{"line":172,"column":3}}]},"28":{"type":"branch","line":175,"loc":{"start":{"line":175,"column":50},"end":{"line":190,"column":3}},"locations":[{"start":{"line":175,"column":50},"end":{"line":190,"column":3}}]},"29":{"type":"branch","line":180,"loc":{"start":{"line":180,"column":13},"end":{"line":184,"column":9}},"locations":[{"start":{"line":180,"column":13},"end":{"line":184,"column":9}}]},"30":{"type":"branch","line":184,"loc":{"start":{"line":184,"column":8},"end":{"line":185,"column":75}},"locations":[{"start":{"line":184,"column":8},"end":{"line":185,"column":75}}]},"31":{"type":"branch","line":186,"loc":{"start":{"line":186,"column":4},"end":{"line":189,"column":5}},"locations":[{"start":{"line":186,"column":4},"end":{"line":189,"column":5}}]},"32":{"type":"branch","line":182,"loc":{"start":{"line":182,"column":10},"end":{"line":182,"column":124}},"locations":[{"start":{"line":182,"column":10},"end":{"line":182,"column":124}}]},"33":{"type":"branch","line":194,"loc":{"start":{"line":194,"column":50},"end":{"line":219,"column":3}},"locations":[{"start":{"line":194,"column":50},"end":{"line":219,"column":3}}]},"34":{"type":"branch","line":195,"loc":{"start":{"line":195,"column":53},"end":{"line":195,"column":64}},"locations":[{"start":{"line":195,"column":53},"end":{"line":195,"column":64}}]},"35":{"type":"branch","line":199,"loc":{"start":{"line":199,"column":6},"end":{"line":199,"column":27}},"locations":[{"start":{"line":199,"column":6},"end":{"line":199,"column":27}}]},"36":{"type":"branch","line":200,"loc":{"start":{"line":200,"column":6},"end":{"line":202,"column":13}},"locations":[{"start":{"line":200,"column":6},"end":{"line":202,"column":13}}]},"37":{"type":"branch","line":203,"loc":{"start":{"line":203,"column":6},"end":{"line":205,"column":13}},"locations":[{"start":{"line":203,"column":6},"end":{"line":205,"column":13}}]},"38":{"type":"branch","line":206,"loc":{"start":{"line":206,"column":6},"end":{"line":210,"column":13}},"locations":[{"start":{"line":206,"column":6},"end":{"line":210,"column":13}}]},"39":{"type":"branch","line":211,"loc":{"start":{"line":211,"column":6},"end":{"line":213,"column":13}},"locations":[{"start":{"line":211,"column":6},"end":{"line":213,"column":13}}]},"40":{"type":"branch","line":215,"loc":{"start":{"line":215,"column":16},"end":{"line":217,"column":5}},"locations":[{"start":{"line":215,"column":16},"end":{"line":217,"column":5}}]},"41":{"type":"branch","line":259,"loc":{"start":{"line":259,"column":38},"end":{"line":259,"column":99}},"locations":[{"start":{"line":259,"column":38},"end":{"line":259,"column":99}}]},"42":{"type":"branch","line":262,"loc":{"start":{"line":262,"column":2},"end":{"line":280,"column":3}},"locations":[{"start":{"line":262,"column":2},"end":{"line":280,"column":3}}]},"43":{"type":"branch","line":265,"loc":{"start":{"line":265,"column":19},"end":{"line":268,"column":5}},"locations":[{"start":{"line":265,"column":19},"end":{"line":268,"column":5}}]},"44":{"type":"branch","line":270,"loc":{"start":{"line":270,"column":30},"end":{"line":272,"column":5}},"locations":[{"start":{"line":270,"column":30},"end":{"line":272,"column":5}}]},"45":{"type":"branch","line":272,"loc":{"start":{"line":272,"column":4},"end":{"line":274,"column":36}},"locations":[{"start":{"line":272,"column":4},"end":{"line":274,"column":36}}]},"46":{"type":"branch","line":274,"loc":{"start":{"line":274,"column":26},"end":{"line":274,"column":63}},"locations":[{"start":{"line":274,"column":26},"end":{"line":274,"column":63}}]},"47":{"type":"branch","line":274,"loc":{"start":{"line":274,"column":59},"end":{"line":274,"column":72}},"locations":[{"start":{"line":274,"column":59},"end":{"line":274,"column":72}}]},"48":{"type":"branch","line":306,"loc":{"start":{"line":306,"column":2},"end":{"line":308,"column":3}},"locations":[{"start":{"line":306,"column":2},"end":{"line":308,"column":3}}]},"49":{"type":"branch","line":307,"loc":{"start":{"line":307,"column":29},"end":{"line":307,"column":61}},"locations":[{"start":{"line":307,"column":29},"end":{"line":307,"column":61}}]}},"b":{"0":[36],"1":[57],"2":[2],"3":[2],"4":[25],"5":[36],"6":[0],"7":[13],"8":[23],"9":[4],"10":[29],"11":[232],"12":[15],"13":[2],"14":[1],"15":[0],"16":[0],"17":[0],"18":[1],"19":[0],"20":[1],"21":[1],"22":[0],"23":[290],"24":[12],"25":[2],"26":[10],"27":[34],"28":[42],"29":[16],"30":[26],"31":[0],"32":[18],"33":[5],"34":[0],"35":[1],"36":[2],"37":[1],"38":[1],"39":[1],"40":[1],"41":[2],"42":[80],"43":[0],"44":[42],"45":[38],"46":[15],"47":[23],"48":[80],"49":[0]},"fnMap":{"0":{"name":"attrsToString","decl":{"start":{"line":28,"column":22},"end":{"line":30,"column":12}},"loc":{"start":{"line":28,"column":22},"end":{"line":30,"column":12}},"line":28},"1":{"name":"attrsToStyle","decl":{"start":{"line":51,"column":21},"end":{"line":53,"column":13}},"loc":{"start":{"line":51,"column":21},"end":{"line":53,"column":13}},"line":51},"2":{"name":"escapeHtml","decl":{"start":{"line":71,"column":0},"end":{"line":78,"column":1}},"loc":{"start":{"line":71,"column":0},"end":{"line":78,"column":1}},"line":71},"3":{"name":"defaultRenderFn","decl":{"start":{"line":89,"column":0},"end":{"line":93,"column":1}},"loc":{"start":{"line":89,"column":0},"end":{"line":93,"column":1}},"line":89},"4":{"name":"richTextResolver","decl":{"start":{"line":103,"column":7},"end":{"line":313,"column":1}},"loc":{"start":{"line":103,"column":7},"end":{"line":313,"column":1}},"line":103},"5":{"name":"nodeResolver","decl":{"start":{"line":114,"column":23},"end":{"line":114,"column":201}},"loc":{"start":{"line":114,"column":23},"end":{"line":114,"column":201}},"line":114},"6":{"name":"imageResolver","decl":{"start":{"line":116,"column":51},"end":{"line":135,"column":4}},"loc":{"start":{"line":116,"column":51},"end":{"line":135,"column":4}},"line":116},"7":{"name":"headingResolver","decl":{"start":{"line":136,"column":53},"end":{"line":139,"column":3}},"loc":{"start":{"line":136,"column":53},"end":{"line":139,"column":3}},"line":136},"8":{"name":"emojiResolver","decl":{"start":{"line":141,"column":51},"end":{"line":152,"column":21}},"loc":{"start":{"line":141,"column":51},"end":{"line":152,"column":21}},"line":141},"9":{"name":"codeBlockResolver","decl":{"start":{"line":154,"column":55},"end":{"line":156,"column":3}},"loc":{"start":{"line":154,"column":55},"end":{"line":156,"column":3}},"line":154},"10":{"name":"markResolver","decl":{"start":{"line":159,"column":23},"end":{"line":166,"column":3}},"loc":{"start":{"line":159,"column":23},"end":{"line":166,"column":3}},"line":159},"11":{"name":"renderToT","decl":{"start":{"line":168,"column":20},"end":{"line":172,"column":3}},"loc":{"start":{"line":168,"column":20},"end":{"line":172,"column":3}},"line":168},"12":{"name":"textResolver","decl":{"start":{"line":175,"column":50},"end":{"line":190,"column":3}},"loc":{"start":{"line":175,"column":50},"end":{"line":190,"column":3}},"line":175},"13":{"name":"marks.reduce.renderToT","decl":{"start":{"line":182,"column":10},"end":{"line":182,"column":124}},"loc":{"start":{"line":182,"column":10},"end":{"line":182,"column":124}},"line":182},"14":{"name":"linkResolver","decl":{"start":{"line":194,"column":50},"end":{"line":219,"column":3}},"loc":{"start":{"line":194,"column":50},"end":{"line":219,"column":3}},"line":194},"15":{"name":"componentResolver","decl":{"start":{"line":222,"column":55},"end":{"line":230,"column":3}},"loc":{"start":{"line":222,"column":55},"end":{"line":230,"column":3}},"line":222},"16":{"name":"renderNode","decl":{"start":{"line":262,"column":2},"end":{"line":280,"column":3}},"loc":{"start":{"line":262,"column":2},"end":{"line":280,"column":3}},"line":262},"17":{"name":"render","decl":{"start":{"line":306,"column":2},"end":{"line":308,"column":3}},"loc":{"start":{"line":306,"column":2},"end":{"line":308,"column":3}},"line":306}},"f":{"0":36,"1":2,"2":25,"3":36,"4":29,"5":232,"6":1,"7":1,"8":1,"9":1,"10":290,"11":34,"12":42,"13":18,"14":5,"15":0,"16":80,"17":80}} -,"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/vite-env.d.ts": {"path":"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/vite-env.d.ts","all":true,"statementMap":{},"s":{},"branchMap":{"0":{"type":"branch","line":1,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":37}},"locations":[{"start":{"line":1,"column":37},"end":{"line":1,"column":37}}]}},"b":{"0":[1]},"fnMap":{"0":{"name":"(empty-report)","decl":{"start":{"line":1,"column":37},"end":{"line":1,"column":37}},"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":37}},"line":1}},"f":{"0":1}} -,"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/types/index.ts": {"path":"/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/types/index.ts","all":false,"statementMap":{"0":{"start":{"line":1,"column":0},"end":{"line":1,"column":24}},"1":{"start":{"line":2,"column":0},"end":{"line":2,"column":19}},"2":{"start":{"line":3,"column":0},"end":{"line":3,"column":22}},"3":{"start":{"line":4,"column":0},"end":{"line":4,"column":26}},"4":{"start":{"line":5,"column":0},"end":{"line":5,"column":23}},"5":{"start":{"line":6,"column":0},"end":{"line":6,"column":27}},"6":{"start":{"line":7,"column":0},"end":{"line":7,"column":26}},"7":{"start":{"line":8,"column":0},"end":{"line":8,"column":26}},"8":{"start":{"line":9,"column":0},"end":{"line":9,"column":28}},"9":{"start":{"line":10,"column":0},"end":{"line":10,"column":25}},"10":{"start":{"line":11,"column":0},"end":{"line":11,"column":20}},"11":{"start":{"line":12,"column":0},"end":{"line":12,"column":18}},"12":{"start":{"line":13,"column":0},"end":{"line":13,"column":18}},"13":{"start":{"line":14,"column":0},"end":{"line":14,"column":21}},"16":{"start":{"line":17,"column":0},"end":{"line":17,"column":23}},"17":{"start":{"line":18,"column":0},"end":{"line":18,"column":16}},"18":{"start":{"line":19,"column":0},"end":{"line":19,"column":20}},"19":{"start":{"line":20,"column":0},"end":{"line":20,"column":20}},"20":{"start":{"line":21,"column":0},"end":{"line":21,"column":26}},"21":{"start":{"line":22,"column":0},"end":{"line":22,"column":20}},"22":{"start":{"line":23,"column":0},"end":{"line":23,"column":16}},"23":{"start":{"line":24,"column":0},"end":{"line":24,"column":16}},"24":{"start":{"line":25,"column":0},"end":{"line":25,"column":20}},"25":{"start":{"line":26,"column":0},"end":{"line":26,"column":20}},"26":{"start":{"line":27,"column":0},"end":{"line":27,"column":30}},"27":{"start":{"line":28,"column":0},"end":{"line":28,"column":26}},"28":{"start":{"line":29,"column":0},"end":{"line":29,"column":27}},"29":{"start":{"line":30,"column":0},"end":{"line":30,"column":26}},"32":{"start":{"line":33,"column":0},"end":{"line":33,"column":23}},"33":{"start":{"line":34,"column":0},"end":{"line":34,"column":16}},"36":{"start":{"line":37,"column":0},"end":{"line":37,"column":25}},"37":{"start":{"line":38,"column":0},"end":{"line":38,"column":17}},"38":{"start":{"line":39,"column":0},"end":{"line":39,"column":19}},"41":{"start":{"line":42,"column":0},"end":{"line":42,"column":23}},"42":{"start":{"line":43,"column":0},"end":{"line":43,"column":14}},"43":{"start":{"line":44,"column":0},"end":{"line":44,"column":18}},"44":{"start":{"line":45,"column":0},"end":{"line":45,"column":18}},"45":{"start":{"line":46,"column":0},"end":{"line":46,"column":18}}},"s":{"0":1,"1":1,"2":1,"3":1,"4":1,"5":1,"6":1,"7":1,"8":1,"9":1,"10":1,"11":1,"12":1,"13":1,"16":1,"17":1,"18":1,"19":1,"20":1,"21":1,"22":1,"23":1,"24":1,"25":1,"26":1,"27":1,"28":1,"29":1,"32":1,"33":1,"36":1,"37":1,"38":1,"41":1,"42":1,"43":1,"44":1,"45":1},"branchMap":{"0":{"type":"branch","line":1,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":24}},"locations":[{"start":{"line":1,"column":7},"end":{"line":1,"column":24}}]},"1":{"type":"branch","line":17,"loc":{"start":{"line":17,"column":7},"end":{"line":17,"column":23}},"locations":[{"start":{"line":17,"column":7},"end":{"line":17,"column":23}}]},"2":{"type":"branch","line":33,"loc":{"start":{"line":33,"column":7},"end":{"line":33,"column":23}},"locations":[{"start":{"line":33,"column":7},"end":{"line":33,"column":23}}]},"3":{"type":"branch","line":37,"loc":{"start":{"line":37,"column":7},"end":{"line":37,"column":25}},"locations":[{"start":{"line":37,"column":7},"end":{"line":37,"column":25}}]},"4":{"type":"branch","line":42,"loc":{"start":{"line":42,"column":7},"end":{"line":42,"column":23}},"locations":[{"start":{"line":42,"column":7},"end":{"line":42,"column":23}}]}},"b":{"0":[1],"1":[1],"2":[1],"3":[1],"4":[1]},"fnMap":{},"f":{}} +{ + "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.test.ts": { "path": "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.test.ts", "all": false, "statementMap": { "0": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 49 } }, "2": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 53 } }, "4": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 39 } }, "5": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 77 } }, "6": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 85 } }, "7": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 49 } }, "8": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 31 } }, "9": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 4 } }, "11": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 81 } }, "12": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 85 } }, "13": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 40 } }, "14": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 29 } }, "15": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 4 } }, "17": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 89 } }, "18": { "start": { "line": 19, "column": 0 }, "end": { "line": 19, "column": 85 } }, "19": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 55 } }, "20": { "start": { "line": 21, "column": 0 }, "end": { "line": 21, "column": 39 } }, "21": { "start": { "line": 22, "column": 0 }, "end": { "line": 22, "column": 4 } }, "23": { "start": { "line": 24, "column": 0 }, "end": { "line": 24, "column": 72 } }, "24": { "start": { "line": 25, "column": 0 }, "end": { "line": 25, "column": 85 } }, "25": { "start": { "line": 26, "column": 0 }, "end": { "line": 26, "column": 78 } }, "26": { "start": { "line": 27, "column": 0 }, "end": { "line": 27, "column": 47 } }, "27": { "start": { "line": 28, "column": 0 }, "end": { "line": 28, "column": 4 } }, "29": { "start": { "line": 30, "column": 0 }, "end": { "line": 30, "column": 78 } }, "30": { "start": { "line": 31, "column": 0 }, "end": { "line": 31, "column": 85 } }, "31": { "start": { "line": 32, "column": 0 }, "end": { "line": 32, "column": 52 } }, "32": { "start": { "line": 33, "column": 0 }, "end": { "line": 33, "column": 53 } }, "33": { "start": { "line": 34, "column": 0 }, "end": { "line": 34, "column": 103 } }, "34": { "start": { "line": 35, "column": 0 }, "end": { "line": 35, "column": 32 } }, "35": { "start": { "line": 36, "column": 0 }, "end": { "line": 36, "column": 4 } }, "37": { "start": { "line": 38, "column": 0 }, "end": { "line": 38, "column": 77 } }, "38": { "start": { "line": 39, "column": 0 }, "end": { "line": 39, "column": 85 } }, "39": { "start": { "line": 40, "column": 0 }, "end": { "line": 40, "column": 52 } }, "40": { "start": { "line": 41, "column": 0 }, "end": { "line": 41, "column": 52 } }, "41": { "start": { "line": 42, "column": 0 }, "end": { "line": 42, "column": 103 } }, "42": { "start": { "line": 43, "column": 0 }, "end": { "line": 43, "column": 32 } }, "43": { "start": { "line": 44, "column": 0 }, "end": { "line": 44, "column": 4 } }, "45": { "start": { "line": 46, "column": 0 }, "end": { "line": 46, "column": 63 } }, "46": { "start": { "line": 47, "column": 0 }, "end": { "line": 47, "column": 85 } }, "47": { "start": { "line": 48, "column": 0 }, "end": { "line": 48, "column": 69 } }, "48": { "start": { "line": 49, "column": 0 }, "end": { "line": 49, "column": 54 } }, "49": { "start": { "line": 50, "column": 0 }, "end": { "line": 50, "column": 4 } }, "51": { "start": { "line": 52, "column": 0 }, "end": { "line": 52, "column": 80 } }, "52": { "start": { "line": 53, "column": 0 }, "end": { "line": 53, "column": 85 } }, "53": { "start": { "line": 54, "column": 0 }, "end": { "line": 54, "column": 52 } }, "54": { "start": { "line": 55, "column": 0 }, "end": { "line": 55, "column": 53 } }, "55": { "start": { "line": 56, "column": 0 }, "end": { "line": 56, "column": 104 } }, "56": { "start": { "line": 57, "column": 0 }, "end": { "line": 57, "column": 32 } }, "57": { "start": { "line": 58, "column": 0 }, "end": { "line": 58, "column": 4 } }, "59": { "start": { "line": 60, "column": 0 }, "end": { "line": 60, "column": 79 } }, "60": { "start": { "line": 61, "column": 0 }, "end": { "line": 61, "column": 85 } }, "61": { "start": { "line": 62, "column": 0 }, "end": { "line": 62, "column": 52 } }, "62": { "start": { "line": 63, "column": 0 }, "end": { "line": 63, "column": 52 } }, "63": { "start": { "line": 64, "column": 0 }, "end": { "line": 64, "column": 104 } }, "64": { "start": { "line": 65, "column": 0 }, "end": { "line": 65, "column": 32 } }, "65": { "start": { "line": 66, "column": 0 }, "end": { "line": 66, "column": 4 } }, "67": { "start": { "line": 68, "column": 0 }, "end": { "line": 68, "column": 62 } }, "68": { "start": { "line": 69, "column": 0 }, "end": { "line": 69, "column": 85 } }, "69": { "start": { "line": 70, "column": 0 }, "end": { "line": 70, "column": 61 } }, "70": { "start": { "line": 71, "column": 0 }, "end": { "line": 71, "column": 46 } }, "71": { "start": { "line": 72, "column": 0 }, "end": { "line": 72, "column": 4 } }, "73": { "start": { "line": 74, "column": 0 }, "end": { "line": 74, "column": 60 } }, "74": { "start": { "line": 75, "column": 0 }, "end": { "line": 75, "column": 85 } }, "75": { "start": { "line": 76, "column": 0 }, "end": { "line": 76, "column": 59 } }, "76": { "start": { "line": 77, "column": 0 }, "end": { "line": 77, "column": 44 } }, "77": { "start": { "line": 78, "column": 0 }, "end": { "line": 78, "column": 4 } }, "79": { "start": { "line": 80, "column": 0 }, "end": { "line": 80, "column": 56 } }, "80": { "start": { "line": 81, "column": 0 }, "end": { "line": 81, "column": 85 } }, "81": { "start": { "line": 82, "column": 0 }, "end": { "line": 82, "column": 75 } }, "82": { "start": { "line": 83, "column": 0 }, "end": { "line": 83, "column": 54 } }, "83": { "start": { "line": 84, "column": 0 }, "end": { "line": 84, "column": 4 } }, "85": { "start": { "line": 86, "column": 0 }, "end": { "line": 86, "column": 73 } }, "86": { "start": { "line": 87, "column": 0 }, "end": { "line": 87, "column": 85 } }, "87": { "start": { "line": 88, "column": 0 }, "end": { "line": 88, "column": 52 } }, "88": { "start": { "line": 89, "column": 0 }, "end": { "line": 89, "column": 50 } }, "89": { "start": { "line": 90, "column": 0 }, "end": { "line": 90, "column": 117 } }, "90": { "start": { "line": 91, "column": 0 }, "end": { "line": 91, "column": 32 } }, "91": { "start": { "line": 92, "column": 0 }, "end": { "line": 92, "column": 4 } }, "93": { "start": { "line": 94, "column": 0 }, "end": { "line": 94, "column": 72 } }, "94": { "start": { "line": 95, "column": 0 }, "end": { "line": 95, "column": 85 } }, "95": { "start": { "line": 96, "column": 0 }, "end": { "line": 96, "column": 52 } }, "96": { "start": { "line": 97, "column": 0 }, "end": { "line": 97, "column": 49 } }, "97": { "start": { "line": 98, "column": 0 }, "end": { "line": 98, "column": 117 } }, "98": { "start": { "line": 99, "column": 0 }, "end": { "line": 99, "column": 32 } }, "99": { "start": { "line": 100, "column": 0 }, "end": { "line": 100, "column": 4 } }, "101": { "start": { "line": 102, "column": 0 }, "end": { "line": 102, "column": 77 } }, "102": { "start": { "line": 103, "column": 0 }, "end": { "line": 103, "column": 85 } }, "103": { "start": { "line": 104, "column": 0 }, "end": { "line": 104, "column": 52 } }, "104": { "start": { "line": 105, "column": 0 }, "end": { "line": 105, "column": 50 } }, "105": { "start": { "line": 106, "column": 0 }, "end": { "line": 106, "column": 117 } }, "106": { "start": { "line": 107, "column": 0 }, "end": { "line": 107, "column": 32 } }, "107": { "start": { "line": 108, "column": 0 }, "end": { "line": 108, "column": 4 } }, "109": { "start": { "line": 110, "column": 0 }, "end": { "line": 110, "column": 62 } }, "110": { "start": { "line": 111, "column": 0 }, "end": { "line": 111, "column": 85 } }, "111": { "start": { "line": 112, "column": 0 }, "end": { "line": 112, "column": 83 } }, "112": { "start": { "line": 113, "column": 0 }, "end": { "line": 113, "column": 62 } }, "113": { "start": { "line": 114, "column": 0 }, "end": { "line": 114, "column": 4 } }, "115": { "start": { "line": 116, "column": 0 }, "end": { "line": 116, "column": 79 } }, "116": { "start": { "line": 117, "column": 0 }, "end": { "line": 117, "column": 85 } }, "117": { "start": { "line": 118, "column": 0 }, "end": { "line": 118, "column": 52 } }, "118": { "start": { "line": 119, "column": 0 }, "end": { "line": 119, "column": 58 } }, "119": { "start": { "line": 120, "column": 0 }, "end": { "line": 120, "column": 123 } }, "120": { "start": { "line": 121, "column": 0 }, "end": { "line": 121, "column": 32 } }, "121": { "start": { "line": 122, "column": 0 }, "end": { "line": 122, "column": 4 } }, "123": { "start": { "line": 124, "column": 0 }, "end": { "line": 124, "column": 78 } }, "124": { "start": { "line": 125, "column": 0 }, "end": { "line": 125, "column": 85 } }, "125": { "start": { "line": 126, "column": 0 }, "end": { "line": 126, "column": 52 } }, "126": { "start": { "line": 127, "column": 0 }, "end": { "line": 127, "column": 57 } }, "127": { "start": { "line": 128, "column": 0 }, "end": { "line": 128, "column": 123 } }, "128": { "start": { "line": 129, "column": 0 }, "end": { "line": 129, "column": 32 } }, "129": { "start": { "line": 130, "column": 0 }, "end": { "line": 130, "column": 4 } }, "131": { "start": { "line": 132, "column": 0 }, "end": { "line": 132, "column": 83 } }, "132": { "start": { "line": 133, "column": 0 }, "end": { "line": 133, "column": 85 } }, "133": { "start": { "line": 134, "column": 0 }, "end": { "line": 134, "column": 52 } }, "134": { "start": { "line": 135, "column": 0 }, "end": { "line": 135, "column": 56 } }, "135": { "start": { "line": 136, "column": 0 }, "end": { "line": 136, "column": 123 } }, "136": { "start": { "line": 137, "column": 0 }, "end": { "line": 137, "column": 32 } }, "137": { "start": { "line": 138, "column": 0 }, "end": { "line": 138, "column": 4 } }, "139": { "start": { "line": 140, "column": 0 }, "end": { "line": 140, "column": 56 } }, "140": { "start": { "line": 141, "column": 0 }, "end": { "line": 141, "column": 85 } }, "141": { "start": { "line": 142, "column": 0 }, "end": { "line": 142, "column": 87 } }, "142": { "start": { "line": 143, "column": 0 }, "end": { "line": 143, "column": 64 } }, "143": { "start": { "line": 144, "column": 0 }, "end": { "line": 144, "column": 4 } }, "145": { "start": { "line": 146, "column": 0 }, "end": { "line": 146, "column": 61 } }, "146": { "start": { "line": 147, "column": 0 }, "end": { "line": 147, "column": 85 } }, "147": { "start": { "line": 148, "column": 0 }, "end": { "line": 148, "column": 83 } }, "148": { "start": { "line": 149, "column": 0 }, "end": { "line": 149, "column": 58 } }, "149": { "start": { "line": 150, "column": 0 }, "end": { "line": 150, "column": 4 } }, "151": { "start": { "line": 152, "column": 0 }, "end": { "line": 152, "column": 59 } }, "152": { "start": { "line": 153, "column": 0 }, "end": { "line": 153, "column": 85 } }, "153": { "start": { "line": 154, "column": 0 }, "end": { "line": 154, "column": 79 } }, "154": { "start": { "line": 155, "column": 0 }, "end": { "line": 155, "column": 58 } }, "155": { "start": { "line": 156, "column": 0 }, "end": { "line": 156, "column": 4 } }, "157": { "start": { "line": 158, "column": 0 }, "end": { "line": 158, "column": 76 } }, "158": { "start": { "line": 159, "column": 0 }, "end": { "line": 159, "column": 85 } }, "159": { "start": { "line": 160, "column": 0 }, "end": { "line": 160, "column": 52 } }, "160": { "start": { "line": 161, "column": 0 }, "end": { "line": 161, "column": 54 } }, "161": { "start": { "line": 162, "column": 0 }, "end": { "line": 162, "column": 120 } }, "162": { "start": { "line": 163, "column": 0 }, "end": { "line": 163, "column": 32 } }, "163": { "start": { "line": 164, "column": 0 }, "end": { "line": 164, "column": 4 } }, "165": { "start": { "line": 166, "column": 0 }, "end": { "line": 166, "column": 75 } }, "166": { "start": { "line": 167, "column": 0 }, "end": { "line": 167, "column": 85 } }, "167": { "start": { "line": 168, "column": 0 }, "end": { "line": 168, "column": 52 } }, "168": { "start": { "line": 169, "column": 0 }, "end": { "line": 169, "column": 53 } }, "169": { "start": { "line": 170, "column": 0 }, "end": { "line": 170, "column": 120 } }, "170": { "start": { "line": 171, "column": 0 }, "end": { "line": 171, "column": 32 } }, "171": { "start": { "line": 172, "column": 0 }, "end": { "line": 172, "column": 4 } }, "173": { "start": { "line": 174, "column": 0 }, "end": { "line": 174, "column": 80 } }, "174": { "start": { "line": 175, "column": 0 }, "end": { "line": 175, "column": 85 } }, "175": { "start": { "line": 176, "column": 0 }, "end": { "line": 176, "column": 52 } }, "176": { "start": { "line": 177, "column": 0 }, "end": { "line": 177, "column": 53 } }, "177": { "start": { "line": 178, "column": 0 }, "end": { "line": 178, "column": 120 } }, "178": { "start": { "line": 179, "column": 0 }, "end": { "line": 179, "column": 32 } }, "179": { "start": { "line": 180, "column": 0 }, "end": { "line": 180, "column": 4 } }, "181": { "start": { "line": 182, "column": 0 }, "end": { "line": 182, "column": 58 } }, "182": { "start": { "line": 183, "column": 0 }, "end": { "line": 183, "column": 85 } }, "183": { "start": { "line": 184, "column": 0 }, "end": { "line": 184, "column": 78 } }, "184": { "start": { "line": 185, "column": 0 }, "end": { "line": 185, "column": 57 } }, "185": { "start": { "line": 186, "column": 0 }, "end": { "line": 186, "column": 4 } }, "187": { "start": { "line": 188, "column": 0 }, "end": { "line": 188, "column": 58 } }, "188": { "start": { "line": 189, "column": 0 }, "end": { "line": 189, "column": 85 } }, "189": { "start": { "line": 190, "column": 0 }, "end": { "line": 190, "column": 82 } }, "190": { "start": { "line": 191, "column": 0 }, "end": { "line": 191, "column": 59 } }, "191": { "start": { "line": 192, "column": 0 }, "end": { "line": 192, "column": 4 } }, "193": { "start": { "line": 194, "column": 0 }, "end": { "line": 194, "column": 61 } }, "194": { "start": { "line": 195, "column": 0 }, "end": { "line": 195, "column": 85 } }, "195": { "start": { "line": 196, "column": 0 }, "end": { "line": 196, "column": 21 } }, "196": { "start": { "line": 197, "column": 0 }, "end": { "line": 197, "column": 14 } }, "197": { "start": { "line": 198, "column": 0 }, "end": { "line": 198, "column": 22 } }, "198": { "start": { "line": 199, "column": 0 }, "end": { "line": 199, "column": 26 } }, "199": { "start": { "line": 200, "column": 0 }, "end": { "line": 200, "column": 22 } }, "200": { "start": { "line": 201, "column": 0 }, "end": { "line": 201, "column": 18 } }, "201": { "start": { "line": 202, "column": 0 }, "end": { "line": 202, "column": 17 } }, "202": { "start": { "line": 203, "column": 0 }, "end": { "line": 203, "column": 21 } }, "203": { "start": { "line": 204, "column": 0 }, "end": { "line": 204, "column": 5 } }, "204": { "start": { "line": 205, "column": 0 }, "end": { "line": 205, "column": 62 } }, "205": { "start": { "line": 206, "column": 0 }, "end": { "line": 206, "column": 136 } }, "206": { "start": { "line": 207, "column": 0 }, "end": { "line": 207, "column": 4 } }, "208": { "start": { "line": 209, "column": 0 }, "end": { "line": 209, "column": 71 } }, "209": { "start": { "line": 210, "column": 0 }, "end": { "line": 210, "column": 85 } }, "210": { "start": { "line": 211, "column": 0 }, "end": { "line": 211, "column": 66 } }, "211": { "start": { "line": 212, "column": 0 }, "end": { "line": 212, "column": 39 } }, "212": { "start": { "line": 213, "column": 0 }, "end": { "line": 213, "column": 4 } }, "214": { "start": { "line": 215, "column": 0 }, "end": { "line": 215, "column": 61 } }, "215": { "start": { "line": 216, "column": 0 }, "end": { "line": 216, "column": 85 } }, "216": { "start": { "line": 217, "column": 0 }, "end": { "line": 217, "column": 35 } }, "217": { "start": { "line": 218, "column": 0 }, "end": { "line": 218, "column": 52 } }, "218": { "start": { "line": 219, "column": 0 }, "end": { "line": 219, "column": 290 } }, "219": { "start": { "line": 220, "column": 0 }, "end": { "line": 220, "column": 4 } }, "221": { "start": { "line": 222, "column": 0 }, "end": { "line": 222, "column": 105 } }, "222": { "start": { "line": 223, "column": 0 }, "end": { "line": 223, "column": 85 } }, "223": { "start": { "line": 224, "column": 0 }, "end": { "line": 224, "column": 56 } }, "224": { "start": { "line": 225, "column": 0 }, "end": { "line": 225, "column": 52 } }, "225": { "start": { "line": 226, "column": 0 }, "end": { "line": 226, "column": 296 } }, "226": { "start": { "line": 227, "column": 0 }, "end": { "line": 227, "column": 4 } }, "228": { "start": { "line": 229, "column": 0 }, "end": { "line": 229, "column": 60 } }, "229": { "start": { "line": 230, "column": 0 }, "end": { "line": 230, "column": 85 } }, "230": { "start": { "line": 231, "column": 0 }, "end": { "line": 231, "column": 54 } }, "231": { "start": { "line": 232, "column": 0 }, "end": { "line": 232, "column": 51 } }, "232": { "start": { "line": 233, "column": 0 }, "end": { "line": 233, "column": 70 } }, "233": { "start": { "line": 234, "column": 0 }, "end": { "line": 234, "column": 4 } }, "235": { "start": { "line": 236, "column": 0 }, "end": { "line": 236, "column": 72 } }, "236": { "start": { "line": 237, "column": 0 }, "end": { "line": 237, "column": 85 } }, "237": { "start": { "line": 238, "column": 0 }, "end": { "line": 238, "column": 35 } }, "238": { "start": { "line": 239, "column": 0 }, "end": { "line": 239, "column": 54 } }, "239": { "start": { "line": 240, "column": 0 }, "end": { "line": 240, "column": 59 } }, "240": { "start": { "line": 241, "column": 0 }, "end": { "line": 241, "column": 331 } }, "241": { "start": { "line": 242, "column": 0 }, "end": { "line": 242, "column": 4 } }, "242": { "start": { "line": 243, "column": 0 }, "end": { "line": 243, "column": 2 } } }, "s": { "0": 1, "2": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "29": 1, "30": 1, "31": 1, "32": 1, "33": 1, "34": 1, "35": 1, "37": 1, "38": 1, "39": 1, "40": 1, "41": 1, "42": 1, "43": 1, "45": 1, "46": 1, "47": 1, "48": 1, "49": 1, "51": 1, "52": 1, "53": 1, "54": 1, "55": 1, "56": 1, "57": 1, "59": 1, "60": 1, "61": 1, "62": 1, "63": 1, "64": 1, "65": 1, "67": 1, "68": 1, "69": 1, "70": 1, "71": 1, "73": 1, "74": 1, "75": 1, "76": 1, "77": 1, "79": 1, "80": 1, "81": 1, "82": 1, "83": 1, "85": 1, "86": 1, "87": 1, "88": 1, "89": 1, "90": 1, "91": 1, "93": 1, "94": 1, "95": 1, "96": 1, "97": 1, "98": 1, "99": 1, "101": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1, "121": 1, "123": 1, "124": 1, "125": 1, "126": 1, "127": 1, "128": 1, "129": 1, "131": 1, "132": 1, "133": 1, "134": 1, "135": 1, "136": 1, "137": 1, "139": 1, "140": 1, "141": 1, "142": 1, "143": 1, "145": 1, "146": 1, "147": 1, "148": 1, "149": 1, "151": 1, "152": 1, "153": 1, "154": 1, "155": 1, "157": 1, "158": 1, "159": 1, "160": 1, "161": 1, "162": 1, "163": 1, "165": 1, "166": 1, "167": 1, "168": 1, "169": 1, "170": 1, "171": 1, "173": 1, "174": 1, "175": 1, "176": 1, "177": 1, "178": 1, "179": 1, "181": 1, "182": 1, "183": 1, "184": 1, "185": 1, "187": 1, "188": 1, "189": 1, "190": 1, "191": 1, "193": 1, "194": 1, "195": 1, "196": 1, "197": 1, "198": 1, "199": 1, "200": 1, "201": 1, "202": 1, "203": 1, "204": 1, "205": 1, "206": 1, "208": 1, "209": 1, "210": 1, "211": 1, "212": 1, "214": 1, "215": 1, "216": 1, "217": 1, "218": 1, "219": 1, "221": 1, "222": 1, "223": 1, "224": 1, "225": 1, "226": 1, "228": 1, "229": 1, "230": 1, "231": 1, "232": 1, "233": 1, "235": 1, "236": 1, "237": 1, "238": 1, "239": 1, "240": 1, "241": 1, "242": 1 }, "branchMap": { "0": { "type": "branch", "line": 5, "loc": { "start": { "line": 5, "column": 32 }, "end": { "line": 243, "column": 2 } }, "locations": [{ "start": { "line": 5, "column": 32 }, "end": { "line": 243, "column": 2 } }] }, "1": { "type": "branch", "line": 6, "loc": { "start": { "line": 6, "column": 64 }, "end": { "line": 10, "column": 3 } }, "locations": [{ "start": { "line": 6, "column": 64 }, "end": { "line": 10, "column": 3 } }] }, "2": { "type": "branch", "line": 12, "loc": { "start": { "line": 12, "column": 68 }, "end": { "line": 16, "column": 3 } }, "locations": [{ "start": { "line": 12, "column": 68 }, "end": { "line": 16, "column": 3 } }] }, "3": { "type": "branch", "line": 18, "loc": { "start": { "line": 18, "column": 76 }, "end": { "line": 22, "column": 3 } }, "locations": [{ "start": { "line": 18, "column": 76 }, "end": { "line": 22, "column": 3 } }] }, "4": { "type": "branch", "line": 24, "loc": { "start": { "line": 24, "column": 59 }, "end": { "line": 28, "column": 3 } }, "locations": [{ "start": { "line": 24, "column": 59 }, "end": { "line": 28, "column": 3 } }] }, "5": { "type": "branch", "line": 30, "loc": { "start": { "line": 30, "column": 65 }, "end": { "line": 36, "column": 3 } }, "locations": [{ "start": { "line": 30, "column": 65 }, "end": { "line": 36, "column": 3 } }] }, "6": { "type": "branch", "line": 38, "loc": { "start": { "line": 38, "column": 64 }, "end": { "line": 44, "column": 3 } }, "locations": [{ "start": { "line": 38, "column": 64 }, "end": { "line": 44, "column": 3 } }] }, "7": { "type": "branch", "line": 46, "loc": { "start": { "line": 46, "column": 50 }, "end": { "line": 50, "column": 3 } }, "locations": [{ "start": { "line": 46, "column": 50 }, "end": { "line": 50, "column": 3 } }] }, "8": { "type": "branch", "line": 52, "loc": { "start": { "line": 52, "column": 67 }, "end": { "line": 58, "column": 3 } }, "locations": [{ "start": { "line": 52, "column": 67 }, "end": { "line": 58, "column": 3 } }] }, "9": { "type": "branch", "line": 60, "loc": { "start": { "line": 60, "column": 66 }, "end": { "line": 66, "column": 3 } }, "locations": [{ "start": { "line": 60, "column": 66 }, "end": { "line": 66, "column": 3 } }] }, "10": { "type": "branch", "line": 68, "loc": { "start": { "line": 68, "column": 49 }, "end": { "line": 72, "column": 3 } }, "locations": [{ "start": { "line": 68, "column": 49 }, "end": { "line": 72, "column": 3 } }] }, "11": { "type": "branch", "line": 74, "loc": { "start": { "line": 74, "column": 47 }, "end": { "line": 78, "column": 3 } }, "locations": [{ "start": { "line": 74, "column": 47 }, "end": { "line": 78, "column": 3 } }] }, "12": { "type": "branch", "line": 80, "loc": { "start": { "line": 80, "column": 43 }, "end": { "line": 84, "column": 3 } }, "locations": [{ "start": { "line": 80, "column": 43 }, "end": { "line": 84, "column": 3 } }] }, "13": { "type": "branch", "line": 86, "loc": { "start": { "line": 86, "column": 60 }, "end": { "line": 92, "column": 3 } }, "locations": [{ "start": { "line": 86, "column": 60 }, "end": { "line": 92, "column": 3 } }] }, "14": { "type": "branch", "line": 94, "loc": { "start": { "line": 94, "column": 59 }, "end": { "line": 100, "column": 3 } }, "locations": [{ "start": { "line": 94, "column": 59 }, "end": { "line": 100, "column": 3 } }] }, "15": { "type": "branch", "line": 102, "loc": { "start": { "line": 102, "column": 64 }, "end": { "line": 108, "column": 3 } }, "locations": [{ "start": { "line": 102, "column": 64 }, "end": { "line": 108, "column": 3 } }] }, "16": { "type": "branch", "line": 110, "loc": { "start": { "line": 110, "column": 49 }, "end": { "line": 114, "column": 3 } }, "locations": [{ "start": { "line": 110, "column": 49 }, "end": { "line": 114, "column": 3 } }] }, "17": { "type": "branch", "line": 116, "loc": { "start": { "line": 116, "column": 66 }, "end": { "line": 122, "column": 3 } }, "locations": [{ "start": { "line": 116, "column": 66 }, "end": { "line": 122, "column": 3 } }] }, "18": { "type": "branch", "line": 124, "loc": { "start": { "line": 124, "column": 65 }, "end": { "line": 130, "column": 3 } }, "locations": [{ "start": { "line": 124, "column": 65 }, "end": { "line": 130, "column": 3 } }] }, "19": { "type": "branch", "line": 132, "loc": { "start": { "line": 132, "column": 70 }, "end": { "line": 138, "column": 3 } }, "locations": [{ "start": { "line": 132, "column": 70 }, "end": { "line": 138, "column": 3 } }] }, "20": { "type": "branch", "line": 140, "loc": { "start": { "line": 140, "column": 43 }, "end": { "line": 144, "column": 3 } }, "locations": [{ "start": { "line": 140, "column": 43 }, "end": { "line": 144, "column": 3 } }] }, "21": { "type": "branch", "line": 146, "loc": { "start": { "line": 146, "column": 48 }, "end": { "line": 150, "column": 3 } }, "locations": [{ "start": { "line": 146, "column": 48 }, "end": { "line": 150, "column": 3 } }] }, "22": { "type": "branch", "line": 152, "loc": { "start": { "line": 152, "column": 46 }, "end": { "line": 156, "column": 3 } }, "locations": [{ "start": { "line": 152, "column": 46 }, "end": { "line": 156, "column": 3 } }] }, "23": { "type": "branch", "line": 158, "loc": { "start": { "line": 158, "column": 63 }, "end": { "line": 164, "column": 3 } }, "locations": [{ "start": { "line": 158, "column": 63 }, "end": { "line": 164, "column": 3 } }] }, "24": { "type": "branch", "line": 166, "loc": { "start": { "line": 166, "column": 62 }, "end": { "line": 172, "column": 3 } }, "locations": [{ "start": { "line": 166, "column": 62 }, "end": { "line": 172, "column": 3 } }] }, "25": { "type": "branch", "line": 174, "loc": { "start": { "line": 174, "column": 67 }, "end": { "line": 180, "column": 3 } }, "locations": [{ "start": { "line": 174, "column": 67 }, "end": { "line": 180, "column": 3 } }] }, "26": { "type": "branch", "line": 182, "loc": { "start": { "line": 182, "column": 45 }, "end": { "line": 186, "column": 3 } }, "locations": [{ "start": { "line": 182, "column": 45 }, "end": { "line": 186, "column": 3 } }] }, "27": { "type": "branch", "line": 188, "loc": { "start": { "line": 188, "column": 45 }, "end": { "line": 192, "column": 3 } }, "locations": [{ "start": { "line": 188, "column": 45 }, "end": { "line": 192, "column": 3 } }] }, "28": { "type": "branch", "line": 194, "loc": { "start": { "line": 194, "column": 48 }, "end": { "line": 207, "column": 3 } }, "locations": [{ "start": { "line": 194, "column": 48 }, "end": { "line": 207, "column": 3 } }] }, "29": { "type": "branch", "line": 209, "loc": { "start": { "line": 209, "column": 58 }, "end": { "line": 213, "column": 3 } }, "locations": [{ "start": { "line": 209, "column": 58 }, "end": { "line": 213, "column": 3 } }] }, "30": { "type": "branch", "line": 215, "loc": { "start": { "line": 215, "column": 48 }, "end": { "line": 220, "column": 3 } }, "locations": [{ "start": { "line": 215, "column": 48 }, "end": { "line": 220, "column": 3 } }] }, "31": { "type": "branch", "line": 222, "loc": { "start": { "line": 222, "column": 92 }, "end": { "line": 227, "column": 3 } }, "locations": [{ "start": { "line": 222, "column": 92 }, "end": { "line": 227, "column": 3 } }] }, "32": { "type": "branch", "line": 229, "loc": { "start": { "line": 229, "column": 47 }, "end": { "line": 234, "column": 3 } }, "locations": [{ "start": { "line": 229, "column": 47 }, "end": { "line": 234, "column": 3 } }] }, "33": { "type": "branch", "line": 236, "loc": { "start": { "line": 236, "column": 59 }, "end": { "line": 242, "column": 3 } }, "locations": [{ "start": { "line": 236, "column": 59 }, "end": { "line": 242, "column": 3 } }] } }, "b": { "0": [1], "1": [1], "2": [1], "3": [1], "4": [1], "5": [1], "6": [1], "7": [1], "8": [1], "9": [1], "10": [1], "11": [1], "12": [1], "13": [1], "14": [1], "15": [1], "16": [1], "17": [1], "18": [1], "19": [1], "20": [1], "21": [1], "22": [1], "23": [1], "24": [1], "25": [1], "26": [1], "27": [1], "28": [1], "29": [1], "30": [1], "31": [1], "32": [1], "33": [1] }, "fnMap": {}, "f": {} }, + "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.ts": { "path": "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/images-optimization.ts", "all": false, "statementMap": { "2": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 153 } }, "3": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 40 } }, "4": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 12 } }, "5": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 12 } }, "6": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 44 } }, "7": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 36 } }, "9": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 120 } }, "10": { "start": { "line": 11, "column": 0 }, "end": { "line": 11, "column": 68 } }, "11": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 150 } }, "12": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 12 } }, "13": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 47 } }, "14": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 5 } }, "15": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 3 } }, "17": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 35 } }, "18": { "start": { "line": 19, "column": 0 }, "end": { "line": 19, "column": 67 } }, "19": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 36 } }, "20": { "start": { "line": 21, "column": 0 }, "end": { "line": 21, "column": 26 } }, "21": { "start": { "line": 22, "column": 0 }, "end": { "line": 22, "column": 14 } }, "22": { "start": { "line": 23, "column": 0 }, "end": { "line": 23, "column": 83 } }, "23": { "start": { "line": 24, "column": 0 }, "end": { "line": 24, "column": 7 } }, "24": { "start": { "line": 25, "column": 0 }, "end": { "line": 25, "column": 87 } }, "25": { "start": { "line": 26, "column": 0 }, "end": { "line": 26, "column": 38 } }, "26": { "start": { "line": 27, "column": 0 }, "end": { "line": 27, "column": 27 } }, "27": { "start": { "line": 28, "column": 0 }, "end": { "line": 28, "column": 14 } }, "28": { "start": { "line": 29, "column": 0 }, "end": { "line": 29, "column": 84 } }, "29": { "start": { "line": 30, "column": 0 }, "end": { "line": 30, "column": 7 } }, "30": { "start": { "line": 31, "column": 0 }, "end": { "line": 31, "column": 105 } }, "31": { "start": { "line": 32, "column": 0 }, "end": { "line": 32, "column": 52 } }, "34": { "start": { "line": 35, "column": 0 }, "end": { "line": 35, "column": 25 } }, "35": { "start": { "line": 36, "column": 0 }, "end": { "line": 36, "column": 40 } }, "36": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 91 } }, "38": { "start": { "line": 39, "column": 0 }, "end": { "line": 39, "column": 17 } }, "39": { "start": { "line": 40, "column": 0 }, "end": { "line": 40, "column": 71 } }, "40": { "start": { "line": 41, "column": 0 }, "end": { "line": 41, "column": 7 } }, "41": { "start": { "line": 42, "column": 0 }, "end": { "line": 42, "column": 20 } }, "42": { "start": { "line": 43, "column": 0 }, "end": { "line": 43, "column": 77 } }, "43": { "start": { "line": 44, "column": 0 }, "end": { "line": 44, "column": 7 } }, "44": { "start": { "line": 45, "column": 0 }, "end": { "line": 45, "column": 23 } }, "45": { "start": { "line": 46, "column": 0 }, "end": { "line": 46, "column": 83 } }, "46": { "start": { "line": 47, "column": 0 }, "end": { "line": 47, "column": 7 } }, "47": { "start": { "line": 48, "column": 0 }, "end": { "line": 48, "column": 51 } }, "48": { "start": { "line": 49, "column": 0 }, "end": { "line": 49, "column": 54 } }, "49": { "start": { "line": 50, "column": 0 }, "end": { "line": 50, "column": 116 } }, "50": { "start": { "line": 51, "column": 0 }, "end": { "line": 51, "column": 101 } }, "51": { "start": { "line": 52, "column": 0 }, "end": { "line": 52, "column": 5 } }, "54": { "start": { "line": 55, "column": 0 }, "end": { "line": 55, "column": 25 } }, "55": { "start": { "line": 56, "column": 0 }, "end": { "line": 56, "column": 72 } }, "56": { "start": { "line": 57, "column": 0 }, "end": { "line": 57, "column": 40 } }, "57": { "start": { "line": 58, "column": 0 }, "end": { "line": 58, "column": 119 } }, "58": { "start": { "line": 59, "column": 0 }, "end": { "line": 59, "column": 9 } }, "59": { "start": { "line": 60, "column": 0 }, "end": { "line": 60, "column": 57 } }, "60": { "start": { "line": 61, "column": 0 }, "end": { "line": 61, "column": 50 } }, "61": { "start": { "line": 62, "column": 0 }, "end": { "line": 62, "column": 142 } }, "62": { "start": { "line": 63, "column": 0 }, "end": { "line": 63, "column": 9 } }, "63": { "start": { "line": 64, "column": 0 }, "end": { "line": 64, "column": 20 } }, "64": { "start": { "line": 65, "column": 0 }, "end": { "line": 65, "column": 5 } }, "67": { "start": { "line": 68, "column": 0 }, "end": { "line": 68, "column": 24 } }, "68": { "start": { "line": 69, "column": 0 }, "end": { "line": 69, "column": 45 } }, "69": { "start": { "line": 70, "column": 0 }, "end": { "line": 70, "column": 5 } }, "70": { "start": { "line": 71, "column": 0 }, "end": { "line": 71, "column": 3 } }, "74": { "start": { "line": 75, "column": 0 }, "end": { "line": 75, "column": 30 } }, "75": { "start": { "line": 76, "column": 0 }, "end": { "line": 76, "column": 22 } }, "76": { "start": { "line": 77, "column": 0 }, "end": { "line": 77, "column": 41 } }, "77": { "start": { "line": 78, "column": 0 }, "end": { "line": 78, "column": 3 } }, "78": { "start": { "line": 79, "column": 0 }, "end": { "line": 79, "column": 31 } }, "79": { "start": { "line": 80, "column": 0 }, "end": { "line": 80, "column": 64 } }, "80": { "start": { "line": 81, "column": 0 }, "end": { "line": 81, "column": 3 } }, "82": { "start": { "line": 83, "column": 0 }, "end": { "line": 83, "column": 10 } }, "83": { "start": { "line": 84, "column": 0 }, "end": { "line": 84, "column": 19 } }, "84": { "start": { "line": 85, "column": 0 }, "end": { "line": 85, "column": 10 } }, "85": { "start": { "line": 86, "column": 0 }, "end": { "line": 86, "column": 4 } }, "86": { "start": { "line": 87, "column": 0 }, "end": { "line": 87, "column": 1 } } }, "s": { "2": 1, "3": 33, "4": 31, "5": 31, "6": 31, "7": 31, "9": 31, "10": 15, "11": 9, "12": 15, "13": 6, "14": 6, "15": 15, "17": 33, "18": 30, "19": 4, "20": 4, "21": 30, "22": 26, "23": 26, "24": 30, "25": 4, "26": 4, "27": 30, "28": 26, "29": 26, "30": 30, "31": 30, "34": 30, "35": 18, "36": 18, "38": 18, "39": 5, "40": 5, "41": 18, "42": 5, "43": 5, "44": 18, "45": 5, "46": 5, "47": 18, "48": 18, "49": 18, "50": 18, "51": 18, "54": 30, "55": 3, "56": 9, "57": 6, "58": 6, "59": 9, "60": 3, "61": 3, "62": 3, "63": 3, "64": 3, "67": 30, "68": 2, "69": 2, "70": 30, "74": 31, "75": 33, "76": 2, "77": 2, "78": 33, "79": 8, "80": 8, "82": 31, "83": 31, "84": 31, "85": 31, "86": 31 }, "branchMap": { "0": { "type": "branch", "line": 3, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 87, "column": 1 } }, "locations": [{ "start": { "line": 3, "column": 7 }, "end": { "line": 87, "column": 1 } }] }, "1": { "type": "branch", "line": 4, "loc": { "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 40 } }, "locations": [{ "start": { "line": 4, "column": 16 }, "end": { "line": 4, "column": 40 } }] }, "2": { "type": "branch", "line": 4, "loc": { "start": { "line": 4, "column": 38 }, "end": { "line": 18, "column": 34 } }, "locations": [{ "start": { "line": 4, "column": 38 }, "end": { "line": 18, "column": 34 } }] }, "3": { "type": "branch", "line": 18, "loc": { "start": { "line": 18, "column": 34 }, "end": { "line": 71, "column": 3 } }, "locations": [{ "start": { "line": 18, "column": 34 }, "end": { "line": 71, "column": 3 } }] }, "4": { "type": "branch", "line": 19, "loc": { "start": { "line": 19, "column": 35 }, "end": { "line": 19, "column": 66 } }, "locations": [{ "start": { "line": 19, "column": 35 }, "end": { "line": 19, "column": 66 } }] }, "5": { "type": "branch", "line": 19, "loc": { "start": { "line": 19, "column": 66 }, "end": { "line": 22, "column": 13 } }, "locations": [{ "start": { "line": 19, "column": 66 }, "end": { "line": 22, "column": 13 } }] }, "6": { "type": "branch", "line": 22, "loc": { "start": { "line": 22, "column": 6 }, "end": { "line": 24, "column": 7 } }, "locations": [{ "start": { "line": 22, "column": 6 }, "end": { "line": 24, "column": 7 } }] }, "7": { "type": "branch", "line": 25, "loc": { "start": { "line": 25, "column": 18 }, "end": { "line": 25, "column": 66 } }, "locations": [{ "start": { "line": 25, "column": 18 }, "end": { "line": 25, "column": 66 } }] }, "8": { "type": "branch", "line": 25, "loc": { "start": { "line": 25, "column": 54 }, "end": { "line": 25, "column": 86 } }, "locations": [{ "start": { "line": 25, "column": 54 }, "end": { "line": 25, "column": 86 } }] }, "9": { "type": "branch", "line": 25, "loc": { "start": { "line": 25, "column": 86 }, "end": { "line": 28, "column": 13 } }, "locations": [{ "start": { "line": 25, "column": 86 }, "end": { "line": 28, "column": 13 } }] }, "10": { "type": "branch", "line": 28, "loc": { "start": { "line": 28, "column": 6 }, "end": { "line": 30, "column": 7 } }, "locations": [{ "start": { "line": 28, "column": 6 }, "end": { "line": 30, "column": 7 } }] }, "11": { "type": "branch", "line": 31, "loc": { "start": { "line": 31, "column": 17 }, "end": { "line": 31, "column": 73 } }, "locations": [{ "start": { "line": 31, "column": 17 }, "end": { "line": 31, "column": 73 } }] }, "12": { "type": "branch", "line": 31, "loc": { "start": { "line": 31, "column": 73 }, "end": { "line": 31, "column": 105 } }, "locations": [{ "start": { "line": 31, "column": 73 }, "end": { "line": 31, "column": 105 } }] }, "13": { "type": "branch", "line": 32, "loc": { "start": { "line": 32, "column": 24 }, "end": { "line": 32, "column": 52 } }, "locations": [{ "start": { "line": 32, "column": 24 }, "end": { "line": 32, "column": 52 } }] }, "14": { "type": "branch", "line": 35, "loc": { "start": { "line": 35, "column": 24 }, "end": { "line": 52, "column": 5 } }, "locations": [{ "start": { "line": 35, "column": 24 }, "end": { "line": 52, "column": 5 } }] }, "15": { "type": "branch", "line": 36, "loc": { "start": { "line": 36, "column": 26 }, "end": { "line": 36, "column": 40 } }, "locations": [{ "start": { "line": 36, "column": 26 }, "end": { "line": 36, "column": 40 } }] }, "16": { "type": "branch", "line": 37, "loc": { "start": { "line": 37, "column": 77 }, "end": { "line": 37, "column": 91 } }, "locations": [{ "start": { "line": 37, "column": 77 }, "end": { "line": 37, "column": 91 } }] }, "17": { "type": "branch", "line": 39, "loc": { "start": { "line": 39, "column": 16 }, "end": { "line": 41, "column": 7 } }, "locations": [{ "start": { "line": 39, "column": 16 }, "end": { "line": 41, "column": 7 } }] }, "18": { "type": "branch", "line": 42, "loc": { "start": { "line": 42, "column": 19 }, "end": { "line": 44, "column": 7 } }, "locations": [{ "start": { "line": 42, "column": 19 }, "end": { "line": 44, "column": 7 } }] }, "19": { "type": "branch", "line": 45, "loc": { "start": { "line": 45, "column": 22 }, "end": { "line": 47, "column": 7 } }, "locations": [{ "start": { "line": 45, "column": 22 }, "end": { "line": 47, "column": 7 } }] }, "20": { "type": "branch", "line": 48, "loc": { "start": { "line": 48, "column": 16 }, "end": { "line": 48, "column": 51 } }, "locations": [{ "start": { "line": 48, "column": 16 }, "end": { "line": 48, "column": 51 } }] }, "21": { "type": "branch", "line": 49, "loc": { "start": { "line": 49, "column": 21 }, "end": { "line": 49, "column": 54 } }, "locations": [{ "start": { "line": 49, "column": 21 }, "end": { "line": 49, "column": 54 } }] }, "22": { "type": "branch", "line": 50, "loc": { "start": { "line": 50, "column": 10 }, "end": { "line": 50, "column": 77 } }, "locations": [{ "start": { "line": 50, "column": 10 }, "end": { "line": 50, "column": 77 } }] }, "23": { "type": "branch", "line": 50, "loc": { "start": { "line": 50, "column": 63 }, "end": { "line": 50, "column": 74 } }, "locations": [{ "start": { "line": 50, "column": 63 }, "end": { "line": 50, "column": 74 } }] }, "24": { "type": "branch", "line": 50, "loc": { "start": { "line": 50, "column": 77 }, "end": { "line": 50, "column": 116 } }, "locations": [{ "start": { "line": 50, "column": 77 }, "end": { "line": 50, "column": 116 } }] }, "25": { "type": "branch", "line": 51, "loc": { "start": { "line": 51, "column": 10 }, "end": { "line": 51, "column": 62 } }, "locations": [{ "start": { "line": 51, "column": 10 }, "end": { "line": 51, "column": 62 } }] }, "26": { "type": "branch", "line": 51, "loc": { "start": { "line": 51, "column": 62 }, "end": { "line": 51, "column": 101 } }, "locations": [{ "start": { "line": 51, "column": 62 }, "end": { "line": 51, "column": 101 } }] }, "27": { "type": "branch", "line": 55, "loc": { "start": { "line": 55, "column": 24 }, "end": { "line": 65, "column": 5 } }, "locations": [{ "start": { "line": 55, "column": 24 }, "end": { "line": 65, "column": 5 } }] }, "28": { "type": "branch", "line": 68, "loc": { "start": { "line": 68, "column": 23 }, "end": { "line": 70, "column": 5 } }, "locations": [{ "start": { "line": 68, "column": 23 }, "end": { "line": 70, "column": 5 } }] }, "29": { "type": "branch", "line": 71, "loc": { "start": { "line": 71, "column": 2 }, "end": { "line": 76, "column": 14 } }, "locations": [{ "start": { "line": 71, "column": 2 }, "end": { "line": 76, "column": 14 } }] }, "30": { "type": "branch", "line": 76, "loc": { "start": { "line": 76, "column": 9 }, "end": { "line": 76, "column": 21 } }, "locations": [{ "start": { "line": 76, "column": 9 }, "end": { "line": 76, "column": 21 } }] }, "31": { "type": "branch", "line": 76, "loc": { "start": { "line": 76, "column": 21 }, "end": { "line": 78, "column": 3 } }, "locations": [{ "start": { "line": 76, "column": 21 }, "end": { "line": 78, "column": 3 } }] }, "32": { "type": "branch", "line": 78, "loc": { "start": { "line": 78, "column": 2 }, "end": { "line": 79, "column": 30 } }, "locations": [{ "start": { "line": 78, "column": 2 }, "end": { "line": 79, "column": 30 } }] }, "33": { "type": "branch", "line": 79, "loc": { "start": { "line": 79, "column": 30 }, "end": { "line": 81, "column": 3 } }, "locations": [{ "start": { "line": 79, "column": 30 }, "end": { "line": 81, "column": 3 } }] }, "34": { "type": "branch", "line": 81, "loc": { "start": { "line": 81, "column": 2 }, "end": { "line": 87, "column": 1 } }, "locations": [{ "start": { "line": 81, "column": 2 }, "end": { "line": 87, "column": 1 } }] }, "35": { "type": "branch", "line": 10, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 16, "column": 3 } }, "locations": [{ "start": { "line": 10, "column": 2 }, "end": { "line": 16, "column": 3 } }] }, "36": { "type": "branch", "line": 11, "loc": { "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 53 } }, "locations": [{ "start": { "line": 11, "column": 25 }, "end": { "line": 11, "column": 53 } }] }, "37": { "type": "branch", "line": 11, "loc": { "start": { "line": 11, "column": 46 }, "end": { "line": 11, "column": 67 } }, "locations": [{ "start": { "line": 11, "column": 46 }, "end": { "line": 11, "column": 67 } }] }, "38": { "type": "branch", "line": 11, "loc": { "start": { "line": 11, "column": 67 }, "end": { "line": 13, "column": 11 } }, "locations": [{ "start": { "line": 11, "column": 67 }, "end": { "line": 13, "column": 11 } }] }, "39": { "type": "branch", "line": 13, "loc": { "start": { "line": 13, "column": 4 }, "end": { "line": 15, "column": 5 } }, "locations": [{ "start": { "line": 13, "column": 4 }, "end": { "line": 15, "column": 5 } }] }, "40": { "type": "branch", "line": 56, "loc": { "start": { "line": 56, "column": 40 }, "end": { "line": 64, "column": 7 } }, "locations": [{ "start": { "line": 56, "column": 40 }, "end": { "line": 64, "column": 7 } }] }, "41": { "type": "branch", "line": 57, "loc": { "start": { "line": 57, "column": 39 }, "end": { "line": 59, "column": 9 } }, "locations": [{ "start": { "line": 57, "column": 39 }, "end": { "line": 59, "column": 9 } }] }, "42": { "type": "branch", "line": 58, "loc": { "start": { "line": 58, "column": 62 }, "end": { "line": 58, "column": 104 } }, "locations": [{ "start": { "line": 58, "column": 62 }, "end": { "line": 58, "column": 104 } }] }, "43": { "type": "branch", "line": 59, "loc": { "start": { "line": 59, "column": 8 }, "end": { "line": 60, "column": 56 } }, "locations": [{ "start": { "line": 59, "column": 8 }, "end": { "line": 60, "column": 56 } }] }, "44": { "type": "branch", "line": 60, "loc": { "start": { "line": 60, "column": 56 }, "end": { "line": 63, "column": 9 } }, "locations": [{ "start": { "line": 60, "column": 56 }, "end": { "line": 63, "column": 9 } }] }, "45": { "type": "branch", "line": 62, "loc": { "start": { "line": 62, "column": 80 }, "end": { "line": 62, "column": 122 } }, "locations": [{ "start": { "line": 62, "column": 80 }, "end": { "line": 62, "column": 122 } }] } }, "b": { "0": [33], "1": [2], "2": [31], "3": [30], "4": [5], "5": [4], "6": [26], "7": [6], "8": [5], "9": [4], "10": [26], "11": [1], "12": [1], "13": [1], "14": [18], "15": [0], "16": [0], "17": [5], "18": [5], "19": [5], "20": [2], "21": [2], "22": [2], "23": [0], "24": [2], "25": [2], "26": [2], "27": [3], "28": [2], "29": [31], "30": [4], "31": [2], "32": [31], "33": [8], "34": [31], "35": [15], "36": [12], "37": [9], "38": [9], "39": [6], "40": [9], "41": [6], "42": [0], "43": [3], "44": [3], "45": [0] }, "fnMap": { "0": { "name": "optimizeImage", "decl": { "start": { "line": 3, "column": 7 }, "end": { "line": 87, "column": 1 } }, "loc": { "start": { "line": 3, "column": 7 }, "end": { "line": 87, "column": 1 } }, "line": 3 }, "1": { "name": "validateAndPushFilterParam", "decl": { "start": { "line": 10, "column": 2 }, "end": { "line": 16, "column": 3 } }, "loc": { "start": { "line": 10, "column": 2 }, "end": { "line": 16, "column": 3 } }, "line": 10 } }, "f": { "0": 33, "1": 15 } }, + "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/richtext.test.ts": { "path": "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/richtext.test.ts", "all": false, "statementMap": { "0": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 0 } }, "1": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 45 } }, "2": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 45 } }, "3": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 40 } }, "5": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 72 } }, "6": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 51 } }, "8": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 28 } }, "9": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 32 } }, "10": { "start": { "line": 11, "column": 0 }, "end": { "line": 11, "column": 49 } }, "11": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 45 } }, "12": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 25 } }, "13": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 26 } }, "14": { "start": { "line": 15, "column": 0 }, "end": { "line": 15, "column": 18 } }, "15": { "start": { "line": 16, "column": 0 }, "end": { "line": 16, "column": 11 } }, "16": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 25 } }, "17": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 34 } }, "18": { "start": { "line": 19, "column": 0 }, "end": { "line": 19, "column": 12 } }, "19": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 10 } }, "20": { "start": { "line": 21, "column": 0 }, "end": { "line": 21, "column": 7 } }, "21": { "start": { "line": 22, "column": 0 }, "end": { "line": 22, "column": 52 } }, "22": { "start": { "line": 23, "column": 0 }, "end": { "line": 23, "column": 57 } }, "23": { "start": { "line": 24, "column": 0 }, "end": { "line": 24, "column": 6 } }, "25": { "start": { "line": 26, "column": 0 }, "end": { "line": 26, "column": 49 } }, "26": { "start": { "line": 27, "column": 0 }, "end": { "line": 27, "column": 45 } }, "27": { "start": { "line": 28, "column": 0 }, "end": { "line": 28, "column": 23 } }, "28": { "start": { "line": 29, "column": 0 }, "end": { "line": 29, "column": 24 } }, "29": { "start": { "line": 30, "column": 0 }, "end": { "line": 30, "column": 16 } }, "30": { "start": { "line": 31, "column": 0 }, "end": { "line": 31, "column": 19 } }, "31": { "start": { "line": 32, "column": 0 }, "end": { "line": 32, "column": 10 } }, "32": { "start": { "line": 33, "column": 0 }, "end": { "line": 33, "column": 18 } }, "33": { "start": { "line": 34, "column": 0 }, "end": { "line": 34, "column": 11 } }, "34": { "start": { "line": 35, "column": 0 }, "end": { "line": 35, "column": 31 } }, "35": { "start": { "line": 36, "column": 0 }, "end": { "line": 36, "column": 25 } }, "36": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 12 } }, "37": { "start": { "line": 38, "column": 0 }, "end": { "line": 38, "column": 10 } }, "38": { "start": { "line": 39, "column": 0 }, "end": { "line": 39, "column": 7 } }, "39": { "start": { "line": 40, "column": 0 }, "end": { "line": 40, "column": 50 } }, "40": { "start": { "line": 41, "column": 0 }, "end": { "line": 41, "column": 57 } }, "41": { "start": { "line": 42, "column": 0 }, "end": { "line": 42, "column": 6 } }, "43": { "start": { "line": 44, "column": 0 }, "end": { "line": 44, "column": 55 } }, "44": { "start": { "line": 45, "column": 0 }, "end": { "line": 45, "column": 45 } }, "45": { "start": { "line": 46, "column": 0 }, "end": { "line": 46, "column": 20 } }, "46": { "start": { "line": 47, "column": 0 }, "end": { "line": 47, "column": 28 } }, "47": { "start": { "line": 48, "column": 0 }, "end": { "line": 48, "column": 18 } }, "48": { "start": { "line": 49, "column": 0 }, "end": { "line": 49, "column": 11 } }, "49": { "start": { "line": 50, "column": 0 }, "end": { "line": 50, "column": 30 } }, "50": { "start": { "line": 51, "column": 0 }, "end": { "line": 51, "column": 22 } }, "51": { "start": { "line": 52, "column": 0 }, "end": { "line": 52, "column": 15 } }, "52": { "start": { "line": 53, "column": 0 }, "end": { "line": 53, "column": 29 } }, "53": { "start": { "line": 54, "column": 0 }, "end": { "line": 54, "column": 31 } }, "54": { "start": { "line": 55, "column": 0 }, "end": { "line": 55, "column": 16 } }, "55": { "start": { "line": 56, "column": 0 }, "end": { "line": 56, "column": 14 } }, "56": { "start": { "line": 57, "column": 0 }, "end": { "line": 57, "column": 12 } }, "57": { "start": { "line": 58, "column": 0 }, "end": { "line": 58, "column": 11 } }, "58": { "start": { "line": 59, "column": 0 }, "end": { "line": 59, "column": 30 } }, "59": { "start": { "line": 60, "column": 0 }, "end": { "line": 60, "column": 22 } }, "60": { "start": { "line": 61, "column": 0 }, "end": { "line": 61, "column": 15 } }, "61": { "start": { "line": 62, "column": 0 }, "end": { "line": 62, "column": 29 } }, "62": { "start": { "line": 63, "column": 0 }, "end": { "line": 63, "column": 31 } }, "63": { "start": { "line": 64, "column": 0 }, "end": { "line": 64, "column": 16 } }, "64": { "start": { "line": 65, "column": 0 }, "end": { "line": 65, "column": 14 } }, "65": { "start": { "line": 66, "column": 0 }, "end": { "line": 66, "column": 12 } }, "66": { "start": { "line": 67, "column": 0 }, "end": { "line": 67, "column": 10 } }, "67": { "start": { "line": 68, "column": 0 }, "end": { "line": 68, "column": 7 } }, "68": { "start": { "line": 69, "column": 0 }, "end": { "line": 69, "column": 47 } }, "69": { "start": { "line": 70, "column": 0 }, "end": { "line": 70, "column": 99 } }, "70": { "start": { "line": 71, "column": 0 }, "end": { "line": 71, "column": 6 } }, "72": { "start": { "line": 73, "column": 0 }, "end": { "line": 73, "column": 53 } }, "73": { "start": { "line": 74, "column": 0 }, "end": { "line": 74, "column": 45 } }, "74": { "start": { "line": 75, "column": 0 }, "end": { "line": 75, "column": 20 } }, "75": { "start": { "line": 76, "column": 0 }, "end": { "line": 76, "column": 29 } }, "76": { "start": { "line": 77, "column": 0 }, "end": { "line": 77, "column": 28 } }, "77": { "start": { "line": 78, "column": 0 }, "end": { "line": 78, "column": 18 } }, "78": { "start": { "line": 79, "column": 0 }, "end": { "line": 79, "column": 11 } }, "79": { "start": { "line": 80, "column": 0 }, "end": { "line": 80, "column": 30 } }, "80": { "start": { "line": 81, "column": 0 }, "end": { "line": 81, "column": 22 } }, "81": { "start": { "line": 82, "column": 0 }, "end": { "line": 82, "column": 15 } }, "82": { "start": { "line": 83, "column": 0 }, "end": { "line": 83, "column": 29 } }, "83": { "start": { "line": 84, "column": 0 }, "end": { "line": 84, "column": 31 } }, "84": { "start": { "line": 85, "column": 0 }, "end": { "line": 85, "column": 16 } }, "85": { "start": { "line": 86, "column": 0 }, "end": { "line": 86, "column": 14 } }, "86": { "start": { "line": 87, "column": 0 }, "end": { "line": 87, "column": 12 } }, "87": { "start": { "line": 88, "column": 0 }, "end": { "line": 88, "column": 11 } }, "88": { "start": { "line": 89, "column": 0 }, "end": { "line": 89, "column": 30 } }, "89": { "start": { "line": 90, "column": 0 }, "end": { "line": 90, "column": 22 } }, "90": { "start": { "line": 91, "column": 0 }, "end": { "line": 91, "column": 15 } }, "91": { "start": { "line": 92, "column": 0 }, "end": { "line": 92, "column": 29 } }, "92": { "start": { "line": 93, "column": 0 }, "end": { "line": 93, "column": 31 } }, "93": { "start": { "line": 94, "column": 0 }, "end": { "line": 94, "column": 16 } }, "94": { "start": { "line": 95, "column": 0 }, "end": { "line": 95, "column": 14 } }, "95": { "start": { "line": 96, "column": 0 }, "end": { "line": 96, "column": 12 } }, "96": { "start": { "line": 97, "column": 0 }, "end": { "line": 97, "column": 10 } }, "97": { "start": { "line": 98, "column": 0 }, "end": { "line": 98, "column": 7 } }, "98": { "start": { "line": 99, "column": 0 }, "end": { "line": 99, "column": 47 } }, "99": { "start": { "line": 100, "column": 0 }, "end": { "line": 100, "column": 109 } }, "100": { "start": { "line": 101, "column": 0 }, "end": { "line": 101, "column": 6 } }, "102": { "start": { "line": 103, "column": 0 }, "end": { "line": 103, "column": 57 } }, "103": { "start": { "line": 104, "column": 0 }, "end": { "line": 104, "column": 45 } }, "104": { "start": { "line": 105, "column": 0 }, "end": { "line": 105, "column": 21 } }, "105": { "start": { "line": 106, "column": 0 }, "end": { "line": 106, "column": 22 } }, "106": { "start": { "line": 107, "column": 0 }, "end": { "line": 107, "column": 16 } }, "107": { "start": { "line": 108, "column": 0 }, "end": { "line": 108, "column": 47 } }, "108": { "start": { "line": 109, "column": 0 }, "end": { "line": 109, "column": 26 } }, "109": { "start": { "line": 110, "column": 0 }, "end": { "line": 110, "column": 10 } }, "110": { "start": { "line": 111, "column": 0 }, "end": { "line": 111, "column": 7 } }, "111": { "start": { "line": 112, "column": 0 }, "end": { "line": 112, "column": 48 } }, "112": { "start": { "line": 113, "column": 0 }, "end": { "line": 113, "column": 101 } }, "113": { "start": { "line": 114, "column": 0 }, "end": { "line": 114, "column": 6 } }, "115": { "start": { "line": 116, "column": 0 }, "end": { "line": 116, "column": 46 } }, "116": { "start": { "line": 117, "column": 0 }, "end": { "line": 117, "column": 45 } }, "117": { "start": { "line": 118, "column": 0 }, "end": { "line": 118, "column": 21 } }, "118": { "start": { "line": 119, "column": 0 }, "end": { "line": 119, "column": 22 } }, "119": { "start": { "line": 120, "column": 0 }, "end": { "line": 120, "column": 16 } }, "120": { "start": { "line": 121, "column": 0 }, "end": { "line": 121, "column": 22 } }, "121": { "start": { "line": 122, "column": 0 }, "end": { "line": 122, "column": 10 } }, "122": { "start": { "line": 123, "column": 0 }, "end": { "line": 123, "column": 7 } }, "123": { "start": { "line": 124, "column": 0 }, "end": { "line": 124, "column": 48 } }, "124": { "start": { "line": 125, "column": 0 }, "end": { "line": 125, "column": 245 } }, "125": { "start": { "line": 126, "column": 0 }, "end": { "line": 126, "column": 6 } }, "127": { "start": { "line": 128, "column": 0 }, "end": { "line": 128, "column": 50 } }, "128": { "start": { "line": 129, "column": 0 }, "end": { "line": 129, "column": 45 } }, "129": { "start": { "line": 130, "column": 0 }, "end": { "line": 130, "column": 20 } }, "130": { "start": { "line": 131, "column": 0 }, "end": { "line": 131, "column": 27 } }, "131": { "start": { "line": 132, "column": 0 }, "end": { "line": 132, "column": 18 } }, "132": { "start": { "line": 133, "column": 0 }, "end": { "line": 133, "column": 11 } }, "133": { "start": { "line": 134, "column": 0 }, "end": { "line": 134, "column": 49 } }, "134": { "start": { "line": 135, "column": 0 }, "end": { "line": 135, "column": 25 } }, "135": { "start": { "line": 136, "column": 0 }, "end": { "line": 136, "column": 12 } }, "136": { "start": { "line": 137, "column": 0 }, "end": { "line": 137, "column": 10 } }, "137": { "start": { "line": 138, "column": 0 }, "end": { "line": 138, "column": 7 } }, "138": { "start": { "line": 139, "column": 0 }, "end": { "line": 139, "column": 47 } }, "139": { "start": { "line": 140, "column": 0 }, "end": { "line": 140, "column": 115 } }, "140": { "start": { "line": 141, "column": 0 }, "end": { "line": 141, "column": 6 } }, "142": { "start": { "line": 143, "column": 0 }, "end": { "line": 143, "column": 55 } }, "143": { "start": { "line": 144, "column": 0 }, "end": { "line": 144, "column": 45 } }, "144": { "start": { "line": 145, "column": 0 }, "end": { "line": 145, "column": 18 } }, "145": { "start": { "line": 146, "column": 0 }, "end": { "line": 146, "column": 32 } }, "146": { "start": { "line": 147, "column": 0 }, "end": { "line": 147, "column": 7 } }, "147": { "start": { "line": 148, "column": 0 }, "end": { "line": 148, "column": 45 } }, "148": { "start": { "line": 149, "column": 0 }, "end": { "line": 149, "column": 47 } }, "149": { "start": { "line": 150, "column": 0 }, "end": { "line": 150, "column": 6 } }, "151": { "start": { "line": 152, "column": 0 }, "end": { "line": 152, "column": 45 } }, "152": { "start": { "line": 153, "column": 0 }, "end": { "line": 153, "column": 45 } }, "153": { "start": { "line": 154, "column": 0 }, "end": { "line": 154, "column": 18 } }, "154": { "start": { "line": 155, "column": 0 }, "end": { "line": 155, "column": 27 } }, "155": { "start": { "line": 156, "column": 0 }, "end": { "line": 156, "column": 7 } }, "156": { "start": { "line": 157, "column": 0 }, "end": { "line": 157, "column": 45 } }, "157": { "start": { "line": 158, "column": 0 }, "end": { "line": 158, "column": 47 } }, "158": { "start": { "line": 159, "column": 0 }, "end": { "line": 159, "column": 6 } }, "160": { "start": { "line": 161, "column": 0 }, "end": { "line": 161, "column": 46 } }, "161": { "start": { "line": 162, "column": 0 }, "end": { "line": 162, "column": 45 } }, "162": { "start": { "line": 163, "column": 0 }, "end": { "line": 163, "column": 21 } }, "163": { "start": { "line": 164, "column": 0 }, "end": { "line": 164, "column": 27 } }, "164": { "start": { "line": 165, "column": 0 }, "end": { "line": 165, "column": 18 } }, "165": { "start": { "line": 166, "column": 0 }, "end": { "line": 166, "column": 11 } }, "166": { "start": { "line": 167, "column": 0 }, "end": { "line": 167, "column": 30 } }, "167": { "start": { "line": 168, "column": 0 }, "end": { "line": 168, "column": 22 } }, "168": { "start": { "line": 169, "column": 0 }, "end": { "line": 169, "column": 15 } }, "169": { "start": { "line": 170, "column": 0 }, "end": { "line": 170, "column": 29 } }, "170": { "start": { "line": 171, "column": 0 }, "end": { "line": 171, "column": 30 } }, "171": { "start": { "line": 172, "column": 0 }, "end": { "line": 172, "column": 16 } }, "172": { "start": { "line": 173, "column": 0 }, "end": { "line": 173, "column": 14 } }, "173": { "start": { "line": 174, "column": 0 }, "end": { "line": 174, "column": 12 } }, "174": { "start": { "line": 175, "column": 0 }, "end": { "line": 175, "column": 10 } }, "175": { "start": { "line": 176, "column": 0 }, "end": { "line": 176, "column": 7 } }, "176": { "start": { "line": 177, "column": 0 }, "end": { "line": 177, "column": 48 } }, "177": { "start": { "line": 178, "column": 0 }, "end": { "line": 178, "column": 93 } }, "178": { "start": { "line": 179, "column": 0 }, "end": { "line": 179, "column": 6 } }, "179": { "start": { "line": 180, "column": 0 }, "end": { "line": 180, "column": 4 } }, "181": { "start": { "line": 182, "column": 0 }, "end": { "line": 182, "column": 44 } }, "182": { "start": { "line": 183, "column": 0 }, "end": { "line": 183, "column": 53 } }, "183": { "start": { "line": 184, "column": 0 }, "end": { "line": 184, "column": 45 } }, "184": { "start": { "line": 185, "column": 0 }, "end": { "line": 185, "column": 20 } }, "185": { "start": { "line": 186, "column": 0 }, "end": { "line": 186, "column": 26 } }, "186": { "start": { "line": 187, "column": 0 }, "end": { "line": 187, "column": 18 } }, "187": { "start": { "line": 188, "column": 0 }, "end": { "line": 188, "column": 11 } }, "188": { "start": { "line": 189, "column": 0 }, "end": { "line": 189, "column": 36 } }, "189": { "start": { "line": 190, "column": 0 }, "end": { "line": 190, "column": 25 } }, "190": { "start": { "line": 191, "column": 0 }, "end": { "line": 191, "column": 58 } }, "191": { "start": { "line": 192, "column": 0 }, "end": { "line": 192, "column": 12 } }, "192": { "start": { "line": 193, "column": 0 }, "end": { "line": 193, "column": 10 } }, "193": { "start": { "line": 194, "column": 0 }, "end": { "line": 194, "column": 7 } }, "194": { "start": { "line": 195, "column": 0 }, "end": { "line": 195, "column": 47 } }, "195": { "start": { "line": 196, "column": 0 }, "end": { "line": 196, "column": 111 } }, "196": { "start": { "line": 197, "column": 0 }, "end": { "line": 197, "column": 6 } }, "198": { "start": { "line": 199, "column": 0 }, "end": { "line": 199, "column": 60 } }, "199": { "start": { "line": 200, "column": 0 }, "end": { "line": 200, "column": 45 } }, "200": { "start": { "line": 201, "column": 0 }, "end": { "line": 201, "column": 20 } }, "201": { "start": { "line": 202, "column": 0 }, "end": { "line": 202, "column": 26 } }, "202": { "start": { "line": 203, "column": 0 }, "end": { "line": 203, "column": 18 } }, "203": { "start": { "line": 204, "column": 0 }, "end": { "line": 204, "column": 11 } }, "204": { "start": { "line": 205, "column": 0 }, "end": { "line": 205, "column": 36 } }, "205": { "start": { "line": 206, "column": 0 }, "end": { "line": 206, "column": 25 } }, "206": { "start": { "line": 207, "column": 0 }, "end": { "line": 207, "column": 111 } }, "207": { "start": { "line": 208, "column": 0 }, "end": { "line": 208, "column": 12 } }, "208": { "start": { "line": 209, "column": 0 }, "end": { "line": 209, "column": 10 } }, "209": { "start": { "line": 210, "column": 0 }, "end": { "line": 210, "column": 7 } }, "210": { "start": { "line": 211, "column": 0 }, "end": { "line": 211, "column": 47 } }, "212": { "start": { "line": 213, "column": 0 }, "end": { "line": 213, "column": 150 } }, "213": { "start": { "line": 214, "column": 0 }, "end": { "line": 214, "column": 6 } }, "215": { "start": { "line": 216, "column": 0 }, "end": { "line": 216, "column": 54 } }, "216": { "start": { "line": 217, "column": 0 }, "end": { "line": 217, "column": 45 } }, "217": { "start": { "line": 218, "column": 0 }, "end": { "line": 218, "column": 20 } }, "218": { "start": { "line": 219, "column": 0 }, "end": { "line": 219, "column": 30 } }, "219": { "start": { "line": 220, "column": 0 }, "end": { "line": 220, "column": 21 } }, "220": { "start": { "line": 221, "column": 0 }, "end": { "line": 221, "column": 16 } }, "221": { "start": { "line": 222, "column": 0 }, "end": { "line": 222, "column": 11 } }, "222": { "start": { "line": 223, "column": 0 }, "end": { "line": 223, "column": 25 } }, "223": { "start": { "line": 224, "column": 0 }, "end": { "line": 224, "column": 20 } }, "224": { "start": { "line": 225, "column": 0 }, "end": { "line": 225, "column": 49 } }, "225": { "start": { "line": 226, "column": 0 }, "end": { "line": 226, "column": 31 } }, "226": { "start": { "line": 227, "column": 0 }, "end": { "line": 227, "column": 30 } }, "227": { "start": { "line": 228, "column": 0 }, "end": { "line": 228, "column": 14 } }, "228": { "start": { "line": 229, "column": 0 }, "end": { "line": 229, "column": 12 } }, "229": { "start": { "line": 230, "column": 0 }, "end": { "line": 230, "column": 10 } }, "230": { "start": { "line": 231, "column": 0 }, "end": { "line": 231, "column": 7 } }, "231": { "start": { "line": 232, "column": 0 }, "end": { "line": 232, "column": 47 } }, "232": { "start": { "line": 233, "column": 0 }, "end": { "line": 233, "column": 107 } }, "233": { "start": { "line": 234, "column": 0 }, "end": { "line": 234, "column": 6 } }, "235": { "start": { "line": 236, "column": 0 }, "end": { "line": 236, "column": 52 } }, "236": { "start": { "line": 237, "column": 0 }, "end": { "line": 237, "column": 45 } }, "237": { "start": { "line": 238, "column": 0 }, "end": { "line": 238, "column": 20 } }, "238": { "start": { "line": 239, "column": 0 }, "end": { "line": 239, "column": 28 } }, "239": { "start": { "line": 240, "column": 0 }, "end": { "line": 240, "column": 21 } }, "240": { "start": { "line": 241, "column": 0 }, "end": { "line": 241, "column": 16 } }, "241": { "start": { "line": 242, "column": 0 }, "end": { "line": 242, "column": 11 } }, "242": { "start": { "line": 243, "column": 0 }, "end": { "line": 243, "column": 25 } }, "243": { "start": { "line": 244, "column": 0 }, "end": { "line": 244, "column": 20 } }, "244": { "start": { "line": 245, "column": 0 }, "end": { "line": 245, "column": 49 } }, "245": { "start": { "line": 246, "column": 0 }, "end": { "line": 246, "column": 30 } }, "246": { "start": { "line": 247, "column": 0 }, "end": { "line": 247, "column": 31 } }, "247": { "start": { "line": 248, "column": 0 }, "end": { "line": 248, "column": 14 } }, "248": { "start": { "line": 249, "column": 0 }, "end": { "line": 249, "column": 12 } }, "249": { "start": { "line": 250, "column": 0 }, "end": { "line": 250, "column": 10 } }, "250": { "start": { "line": 251, "column": 0 }, "end": { "line": 251, "column": 7 } }, "251": { "start": { "line": 252, "column": 0 }, "end": { "line": 252, "column": 47 } }, "252": { "start": { "line": 253, "column": 0 }, "end": { "line": 253, "column": 85 } }, "253": { "start": { "line": 254, "column": 0 }, "end": { "line": 254, "column": 6 } }, "255": { "start": { "line": 256, "column": 0 }, "end": { "line": 256, "column": 51 } }, "256": { "start": { "line": 257, "column": 0 }, "end": { "line": 257, "column": 45 } }, "257": { "start": { "line": 258, "column": 0 }, "end": { "line": 258, "column": 20 } }, "258": { "start": { "line": 259, "column": 0 }, "end": { "line": 259, "column": 40 } }, "259": { "start": { "line": 260, "column": 0 }, "end": { "line": 260, "column": 21 } }, "260": { "start": { "line": 261, "column": 0 }, "end": { "line": 261, "column": 16 } }, "261": { "start": { "line": 262, "column": 0 }, "end": { "line": 262, "column": 11 } }, "262": { "start": { "line": 263, "column": 0 }, "end": { "line": 263, "column": 25 } }, "263": { "start": { "line": 264, "column": 0 }, "end": { "line": 264, "column": 20 } }, "264": { "start": { "line": 265, "column": 0 }, "end": { "line": 265, "column": 46 } }, "265": { "start": { "line": 266, "column": 0 }, "end": { "line": 266, "column": 32 } }, "266": { "start": { "line": 267, "column": 0 }, "end": { "line": 267, "column": 14 } }, "267": { "start": { "line": 268, "column": 0 }, "end": { "line": 268, "column": 12 } }, "268": { "start": { "line": 269, "column": 0 }, "end": { "line": 269, "column": 10 } }, "269": { "start": { "line": 270, "column": 0 }, "end": { "line": 270, "column": 7 } }, "270": { "start": { "line": 271, "column": 0 }, "end": { "line": 271, "column": 47 } }, "271": { "start": { "line": 272, "column": 0 }, "end": { "line": 272, "column": 105 } }, "272": { "start": { "line": 273, "column": 0 }, "end": { "line": 273, "column": 6 } }, "274": { "start": { "line": 275, "column": 0 }, "end": { "line": 275, "column": 54 } }, "275": { "start": { "line": 276, "column": 0 }, "end": { "line": 276, "column": 45 } }, "276": { "start": { "line": 277, "column": 0 }, "end": { "line": 277, "column": 20 } }, "277": { "start": { "line": 278, "column": 0 }, "end": { "line": 278, "column": 30 } }, "278": { "start": { "line": 279, "column": 0 }, "end": { "line": 279, "column": 21 } }, "279": { "start": { "line": 280, "column": 0 }, "end": { "line": 280, "column": 16 } }, "280": { "start": { "line": 281, "column": 0 }, "end": { "line": 281, "column": 11 } }, "281": { "start": { "line": 282, "column": 0 }, "end": { "line": 282, "column": 25 } }, "282": { "start": { "line": 283, "column": 0 }, "end": { "line": 283, "column": 20 } }, "283": { "start": { "line": 284, "column": 0 }, "end": { "line": 284, "column": 24 } }, "284": { "start": { "line": 285, "column": 0 }, "end": { "line": 285, "column": 59 } }, "285": { "start": { "line": 286, "column": 0 }, "end": { "line": 286, "column": 27 } }, "286": { "start": { "line": 287, "column": 0 }, "end": { "line": 287, "column": 31 } }, "287": { "start": { "line": 288, "column": 0 }, "end": { "line": 288, "column": 32 } }, "288": { "start": { "line": 289, "column": 0 }, "end": { "line": 289, "column": 14 } }, "289": { "start": { "line": 290, "column": 0 }, "end": { "line": 290, "column": 12 } }, "290": { "start": { "line": 291, "column": 0 }, "end": { "line": 291, "column": 10 } }, "291": { "start": { "line": 292, "column": 0 }, "end": { "line": 292, "column": 7 } }, "292": { "start": { "line": 293, "column": 0 }, "end": { "line": 293, "column": 47 } }, "293": { "start": { "line": 294, "column": 0 }, "end": { "line": 294, "column": 126 } }, "294": { "start": { "line": 295, "column": 0 }, "end": { "line": 295, "column": 6 } }, "296": { "start": { "line": 297, "column": 0 }, "end": { "line": 297, "column": 51 } }, "297": { "start": { "line": 298, "column": 0 }, "end": { "line": 298, "column": 45 } }, "298": { "start": { "line": 299, "column": 0 }, "end": { "line": 299, "column": 20 } }, "299": { "start": { "line": 300, "column": 0 }, "end": { "line": 300, "column": 27 } }, "300": { "start": { "line": 301, "column": 0 }, "end": { "line": 301, "column": 21 } }, "301": { "start": { "line": 302, "column": 0 }, "end": { "line": 302, "column": 16 } }, "302": { "start": { "line": 303, "column": 0 }, "end": { "line": 303, "column": 11 } }, "303": { "start": { "line": 304, "column": 0 }, "end": { "line": 304, "column": 25 } }, "304": { "start": { "line": 305, "column": 0 }, "end": { "line": 305, "column": 20 } }, "305": { "start": { "line": 306, "column": 0 }, "end": { "line": 306, "column": 87 } }, "306": { "start": { "line": 307, "column": 0 }, "end": { "line": 307, "column": 32 } }, "307": { "start": { "line": 308, "column": 0 }, "end": { "line": 308, "column": 14 } }, "308": { "start": { "line": 309, "column": 0 }, "end": { "line": 309, "column": 12 } }, "309": { "start": { "line": 310, "column": 0 }, "end": { "line": 310, "column": 10 } }, "310": { "start": { "line": 311, "column": 0 }, "end": { "line": 311, "column": 7 } }, "311": { "start": { "line": 312, "column": 0 }, "end": { "line": 312, "column": 47 } }, "312": { "start": { "line": 313, "column": 0 }, "end": { "line": 313, "column": 126 } }, "313": { "start": { "line": 314, "column": 0 }, "end": { "line": 314, "column": 6 } }, "315": { "start": { "line": 316, "column": 0 }, "end": { "line": 316, "column": 49 } }, "316": { "start": { "line": 317, "column": 0 }, "end": { "line": 317, "column": 45 } }, "317": { "start": { "line": 318, "column": 0 }, "end": { "line": 318, "column": 20 } }, "318": { "start": { "line": 319, "column": 0 }, "end": { "line": 319, "column": 21 } }, "319": { "start": { "line": 320, "column": 0 }, "end": { "line": 320, "column": 21 } }, "320": { "start": { "line": 321, "column": 0 }, "end": { "line": 321, "column": 34 } }, "321": { "start": { "line": 322, "column": 0 }, "end": { "line": 322, "column": 7 } }, "322": { "start": { "line": 323, "column": 0 }, "end": { "line": 323, "column": 47 } }, "323": { "start": { "line": 324, "column": 0 }, "end": { "line": 324, "column": 63 } }, "324": { "start": { "line": 325, "column": 0 }, "end": { "line": 325, "column": 6 } }, "326": { "start": { "line": 327, "column": 0 }, "end": { "line": 327, "column": 52 } }, "327": { "start": { "line": 328, "column": 0 }, "end": { "line": 328, "column": 45 } }, "328": { "start": { "line": 329, "column": 0 }, "end": { "line": 329, "column": 22 } }, "329": { "start": { "line": 330, "column": 0 }, "end": { "line": 330, "column": 23 } }, "330": { "start": { "line": 331, "column": 0 }, "end": { "line": 331, "column": 21 } }, "331": { "start": { "line": 332, "column": 0 }, "end": { "line": 332, "column": 36 } }, "332": { "start": { "line": 333, "column": 0 }, "end": { "line": 333, "column": 7 } }, "333": { "start": { "line": 334, "column": 0 }, "end": { "line": 334, "column": 49 } }, "334": { "start": { "line": 335, "column": 0 }, "end": { "line": 335, "column": 53 } }, "335": { "start": { "line": 336, "column": 0 }, "end": { "line": 336, "column": 6 } }, "337": { "start": { "line": 338, "column": 0 }, "end": { "line": 338, "column": 54 } }, "338": { "start": { "line": 339, "column": 0 }, "end": { "line": 339, "column": 45 } }, "339": { "start": { "line": 340, "column": 0 }, "end": { "line": 340, "column": 25 } }, "340": { "start": { "line": 341, "column": 0 }, "end": { "line": 341, "column": 26 } }, "341": { "start": { "line": 342, "column": 0 }, "end": { "line": 342, "column": 21 } }, "342": { "start": { "line": 343, "column": 0 }, "end": { "line": 343, "column": 39 } }, "343": { "start": { "line": 344, "column": 0 }, "end": { "line": 344, "column": 7 } }, "344": { "start": { "line": 345, "column": 0 }, "end": { "line": 345, "column": 52 } }, "345": { "start": { "line": 346, "column": 0 }, "end": { "line": 346, "column": 53 } }, "346": { "start": { "line": 347, "column": 0 }, "end": { "line": 347, "column": 6 } }, "348": { "start": { "line": 349, "column": 0 }, "end": { "line": 349, "column": 51 } }, "349": { "start": { "line": 350, "column": 0 }, "end": { "line": 350, "column": 45 } }, "350": { "start": { "line": 351, "column": 0 }, "end": { "line": 351, "column": 22 } }, "351": { "start": { "line": 352, "column": 0 }, "end": { "line": 352, "column": 23 } }, "352": { "start": { "line": 353, "column": 0 }, "end": { "line": 353, "column": 21 } }, "353": { "start": { "line": 354, "column": 0 }, "end": { "line": 354, "column": 36 } }, "354": { "start": { "line": 355, "column": 0 }, "end": { "line": 355, "column": 7 } }, "355": { "start": { "line": 356, "column": 0 }, "end": { "line": 356, "column": 49 } }, "356": { "start": { "line": 357, "column": 0 }, "end": { "line": 357, "column": 50 } }, "357": { "start": { "line": 358, "column": 0 }, "end": { "line": 358, "column": 6 } }, "359": { "start": { "line": 360, "column": 0 }, "end": { "line": 360, "column": 49 } }, "360": { "start": { "line": 361, "column": 0 }, "end": { "line": 361, "column": 45 } }, "361": { "start": { "line": 362, "column": 0 }, "end": { "line": 362, "column": 20 } }, "362": { "start": { "line": 363, "column": 0 }, "end": { "line": 363, "column": 21 } }, "363": { "start": { "line": 364, "column": 0 }, "end": { "line": 364, "column": 21 } }, "364": { "start": { "line": 365, "column": 0 }, "end": { "line": 365, "column": 34 } }, "365": { "start": { "line": 366, "column": 0 }, "end": { "line": 366, "column": 7 } }, "366": { "start": { "line": 367, "column": 0 }, "end": { "line": 367, "column": 47 } }, "367": { "start": { "line": 368, "column": 0 }, "end": { "line": 368, "column": 57 } }, "368": { "start": { "line": 369, "column": 0 }, "end": { "line": 369, "column": 6 } }, "370": { "start": { "line": 371, "column": 0 }, "end": { "line": 371, "column": 56 } }, "371": { "start": { "line": 372, "column": 0 }, "end": { "line": 372, "column": 45 } }, "372": { "start": { "line": 373, "column": 0 }, "end": { "line": 373, "column": 27 } }, "373": { "start": { "line": 374, "column": 0 }, "end": { "line": 374, "column": 28 } }, "374": { "start": { "line": 375, "column": 0 }, "end": { "line": 375, "column": 21 } }, "375": { "start": { "line": 376, "column": 0 }, "end": { "line": 376, "column": 41 } }, "376": { "start": { "line": 377, "column": 0 }, "end": { "line": 377, "column": 7 } }, "377": { "start": { "line": 378, "column": 0 }, "end": { "line": 378, "column": 54 } }, "378": { "start": { "line": 379, "column": 0 }, "end": { "line": 379, "column": 61 } }, "379": { "start": { "line": 380, "column": 0 }, "end": { "line": 380, "column": 6 } }, "381": { "start": { "line": 382, "column": 0 }, "end": { "line": 382, "column": 54 } }, "382": { "start": { "line": 383, "column": 0 }, "end": { "line": 383, "column": 45 } }, "383": { "start": { "line": 384, "column": 0 }, "end": { "line": 384, "column": 25 } }, "384": { "start": { "line": 385, "column": 0 }, "end": { "line": 385, "column": 26 } }, "385": { "start": { "line": 386, "column": 0 }, "end": { "line": 386, "column": 21 } }, "386": { "start": { "line": 387, "column": 0 }, "end": { "line": 387, "column": 39 } }, "387": { "start": { "line": 388, "column": 0 }, "end": { "line": 388, "column": 7 } }, "388": { "start": { "line": 389, "column": 0 }, "end": { "line": 389, "column": 52 } }, "389": { "start": { "line": 390, "column": 0 }, "end": { "line": 390, "column": 59 } }, "390": { "start": { "line": 391, "column": 0 }, "end": { "line": 391, "column": 6 } }, "392": { "start": { "line": 393, "column": 0 }, "end": { "line": 393, "column": 54 } }, "393": { "start": { "line": 394, "column": 0 }, "end": { "line": 394, "column": 45 } }, "394": { "start": { "line": 395, "column": 0 }, "end": { "line": 395, "column": 25 } }, "395": { "start": { "line": 396, "column": 0 }, "end": { "line": 396, "column": 26 } }, "396": { "start": { "line": 397, "column": 0 }, "end": { "line": 397, "column": 21 } }, "397": { "start": { "line": 398, "column": 0 }, "end": { "line": 398, "column": 39 } }, "398": { "start": { "line": 399, "column": 0 }, "end": { "line": 399, "column": 7 } }, "399": { "start": { "line": 400, "column": 0 }, "end": { "line": 400, "column": 52 } }, "400": { "start": { "line": 401, "column": 0 }, "end": { "line": 401, "column": 62 } }, "401": { "start": { "line": 402, "column": 0 }, "end": { "line": 402, "column": 6 } }, "402": { "start": { "line": 403, "column": 0 }, "end": { "line": 403, "column": 4 } }, "403": { "start": { "line": 404, "column": 0 }, "end": { "line": 404, "column": 32 } }, "404": { "start": { "line": 405, "column": 0 }, "end": { "line": 405, "column": 64 } }, "405": { "start": { "line": 406, "column": 0 }, "end": { "line": 406, "column": 43 } }, "406": { "start": { "line": 407, "column": 0 }, "end": { "line": 407, "column": 19 } }, "407": { "start": { "line": 408, "column": 0 }, "end": { "line": 408, "column": 8 } }, "408": { "start": { "line": 409, "column": 0 }, "end": { "line": 409, "column": 25 } }, "409": { "start": { "line": 410, "column": 0 }, "end": { "line": 410, "column": 26 } }, "410": { "start": { "line": 411, "column": 0 }, "end": { "line": 411, "column": 18 } }, "411": { "start": { "line": 412, "column": 0 }, "end": { "line": 412, "column": 11 } }, "412": { "start": { "line": 413, "column": 0 }, "end": { "line": 413, "column": 25 } }, "413": { "start": { "line": 414, "column": 0 }, "end": { "line": 414, "column": 34 } }, "414": { "start": { "line": 415, "column": 0 }, "end": { "line": 415, "column": 12 } }, "415": { "start": { "line": 416, "column": 0 }, "end": { "line": 416, "column": 10 } }, "416": { "start": { "line": 417, "column": 0 }, "end": { "line": 417, "column": 7 } }, "417": { "start": { "line": 418, "column": 0 }, "end": { "line": 418, "column": 53 } }, "418": { "start": { "line": 419, "column": 0 }, "end": { "line": 419, "column": 44 } }, "419": { "start": { "line": 420, "column": 0 }, "end": { "line": 420, "column": 34 } }, "420": { "start": { "line": 421, "column": 0 }, "end": { "line": 421, "column": 6 } }, "421": { "start": { "line": 422, "column": 0 }, "end": { "line": 422, "column": 62 } }, "422": { "start": { "line": 423, "column": 0 }, "end": { "line": 423, "column": 43 } }, "423": { "start": { "line": 424, "column": 0 }, "end": { "line": 424, "column": 20 } }, "424": { "start": { "line": 425, "column": 0 }, "end": { "line": 425, "column": 31 } }, "425": { "start": { "line": 426, "column": 0 }, "end": { "line": 426, "column": 8 } }, "426": { "start": { "line": 427, "column": 0 }, "end": { "line": 427, "column": 25 } }, "427": { "start": { "line": 428, "column": 0 }, "end": { "line": 428, "column": 26 } }, "428": { "start": { "line": 429, "column": 0 }, "end": { "line": 429, "column": 18 } }, "429": { "start": { "line": 430, "column": 0 }, "end": { "line": 430, "column": 11 } }, "430": { "start": { "line": 431, "column": 0 }, "end": { "line": 431, "column": 25 } }, "431": { "start": { "line": 432, "column": 0 }, "end": { "line": 432, "column": 34 } }, "432": { "start": { "line": 433, "column": 0 }, "end": { "line": 433, "column": 12 } }, "433": { "start": { "line": 434, "column": 0 }, "end": { "line": 434, "column": 10 } }, "434": { "start": { "line": 435, "column": 0 }, "end": { "line": 435, "column": 7 } }, "435": { "start": { "line": 436, "column": 0 }, "end": { "line": 436, "column": 53 } }, "436": { "start": { "line": 437, "column": 0 }, "end": { "line": 437, "column": 63 } }, "437": { "start": { "line": 438, "column": 0 }, "end": { "line": 438, "column": 6 } }, "438": { "start": { "line": 439, "column": 0 }, "end": { "line": 439, "column": 51 } }, "439": { "start": { "line": 440, "column": 0 }, "end": { "line": 440, "column": 34 } }, "441": { "start": { "line": 442, "column": 0 }, "end": { "line": 442, "column": 43 } }, "442": { "start": { "line": 443, "column": 0 }, "end": { "line": 443, "column": 20 } }, "443": { "start": { "line": 444, "column": 0 }, "end": { "line": 444, "column": 66 } }, "444": { "start": { "line": 445, "column": 0 }, "end": { "line": 445, "column": 33 } }, "445": { "start": { "line": 446, "column": 0 }, "end": { "line": 446, "column": 39 } }, "446": { "start": { "line": 447, "column": 0 }, "end": { "line": 447, "column": 23 } }, "447": { "start": { "line": 448, "column": 0 }, "end": { "line": 448, "column": 9 } }, "448": { "start": { "line": 449, "column": 0 }, "end": { "line": 449, "column": 8 } }, "449": { "start": { "line": 450, "column": 0 }, "end": { "line": 450, "column": 20 } }, "450": { "start": { "line": 451, "column": 0 }, "end": { "line": 451, "column": 30 } }, "451": { "start": { "line": 452, "column": 0 }, "end": { "line": 452, "column": 21 } }, "452": { "start": { "line": 453, "column": 0 }, "end": { "line": 453, "column": 16 } }, "453": { "start": { "line": 454, "column": 0 }, "end": { "line": 454, "column": 11 } }, "454": { "start": { "line": 455, "column": 0 }, "end": { "line": 455, "column": 25 } }, "455": { "start": { "line": 456, "column": 0 }, "end": { "line": 456, "column": 20 } }, "456": { "start": { "line": 457, "column": 0 }, "end": { "line": 457, "column": 29 } }, "457": { "start": { "line": 458, "column": 0 }, "end": { "line": 458, "column": 59 } }, "458": { "start": { "line": 459, "column": 0 }, "end": { "line": 459, "column": 27 } }, "459": { "start": { "line": 460, "column": 0 }, "end": { "line": 460, "column": 31 } }, "460": { "start": { "line": 461, "column": 0 }, "end": { "line": 461, "column": 32 } }, "461": { "start": { "line": 462, "column": 0 }, "end": { "line": 462, "column": 14 } }, "462": { "start": { "line": 463, "column": 0 }, "end": { "line": 463, "column": 12 } }, "463": { "start": { "line": 464, "column": 0 }, "end": { "line": 464, "column": 10 } }, "464": { "start": { "line": 465, "column": 0 }, "end": { "line": 465, "column": 7 } }, "465": { "start": { "line": 466, "column": 0 }, "end": { "line": 466, "column": 47 } }, "466": { "start": { "line": 467, "column": 0 }, "end": { "line": 467, "column": 36 } }, "467": { "start": { "line": 468, "column": 0 }, "end": { "line": 468, "column": 42 } }, "468": { "start": { "line": 469, "column": 0 }, "end": { "line": 469, "column": 6 } }, "470": { "start": { "line": 471, "column": 0 }, "end": { "line": 471, "column": 54 } }, "471": { "start": { "line": 472, "column": 0 }, "end": { "line": 472, "column": 84 } }, "472": { "start": { "line": 473, "column": 0 }, "end": { "line": 473, "column": 38 } }, "473": { "start": { "line": 474, "column": 0 }, "end": { "line": 474, "column": 37 } }, "474": { "start": { "line": 475, "column": 0 }, "end": { "line": 475, "column": 29 } }, "475": { "start": { "line": 476, "column": 0 }, "end": { "line": 476, "column": 25 } }, "476": { "start": { "line": 477, "column": 0 }, "end": { "line": 477, "column": 7 } }, "477": { "start": { "line": 478, "column": 0 }, "end": { "line": 478, "column": 43 } }, "478": { "start": { "line": 479, "column": 0 }, "end": { "line": 479, "column": 20 } }, "479": { "start": { "line": 480, "column": 0 }, "end": { "line": 480, "column": 32 } }, "480": { "start": { "line": 481, "column": 0 }, "end": { "line": 481, "column": 20 } }, "481": { "start": { "line": 482, "column": 0 }, "end": { "line": 482, "column": 52 } }, "482": { "start": { "line": 483, "column": 0 }, "end": { "line": 483, "column": 9 } }, "483": { "start": { "line": 484, "column": 0 }, "end": { "line": 484, "column": 8 } }, "484": { "start": { "line": 485, "column": 0 }, "end": { "line": 485, "column": 25 } }, "485": { "start": { "line": 486, "column": 0 }, "end": { "line": 486, "column": 21 } }, "486": { "start": { "line": 487, "column": 0 }, "end": { "line": 487, "column": 16 } }, "487": { "start": { "line": 488, "column": 0 }, "end": { "line": 488, "column": 53 } }, "488": { "start": { "line": 489, "column": 0 }, "end": { "line": 489, "column": 17 } }, "489": { "start": { "line": 490, "column": 0 }, "end": { "line": 490, "column": 13 } }, "490": { "start": { "line": 491, "column": 0 }, "end": { "line": 491, "column": 22 } }, "491": { "start": { "line": 492, "column": 0 }, "end": { "line": 492, "column": 61 } }, "492": { "start": { "line": 493, "column": 0 }, "end": { "line": 493, "column": 38 } }, "493": { "start": { "line": 494, "column": 0 }, "end": { "line": 494, "column": 39 } }, "494": { "start": { "line": 495, "column": 0 }, "end": { "line": 495, "column": 14 } }, "495": { "start": { "line": 496, "column": 0 }, "end": { "line": 496, "column": 13 } }, "496": { "start": { "line": 497, "column": 0 }, "end": { "line": 497, "column": 22 } }, "497": { "start": { "line": 498, "column": 0 }, "end": { "line": 498, "column": 61 } }, "498": { "start": { "line": 499, "column": 0 }, "end": { "line": 499, "column": 34 } }, "499": { "start": { "line": 500, "column": 0 }, "end": { "line": 500, "column": 39 } }, "500": { "start": { "line": 501, "column": 0 }, "end": { "line": 501, "column": 14 } }, "501": { "start": { "line": 502, "column": 0 }, "end": { "line": 502, "column": 12 } }, "502": { "start": { "line": 503, "column": 0 }, "end": { "line": 503, "column": 10 } }, "503": { "start": { "line": 504, "column": 0 }, "end": { "line": 504, "column": 7 } }, "504": { "start": { "line": 505, "column": 0 }, "end": { "line": 505, "column": 53 } }, "505": { "start": { "line": 506, "column": 0 }, "end": { "line": 506, "column": 60 } }, "506": { "start": { "line": 507, "column": 0 }, "end": { "line": 507, "column": 6 } }, "507": { "start": { "line": 508, "column": 0 }, "end": { "line": 508, "column": 4 } }, "508": { "start": { "line": 509, "column": 0 }, "end": { "line": 509, "column": 2 } } }, "s": { "0": 1, "1": 1, "2": 1, "3": 1, "5": 1, "6": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "14": 1, "15": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "30": 1, "31": 1, "32": 1, "33": 1, "34": 1, "35": 1, "36": 1, "37": 1, "38": 1, "39": 1, "40": 1, "41": 1, "43": 1, "44": 1, "45": 1, "46": 1, "47": 1, "48": 1, "49": 1, "50": 1, "51": 1, "52": 1, "53": 1, "54": 1, "55": 1, "56": 1, "57": 1, "58": 1, "59": 1, "60": 1, "61": 1, "62": 1, "63": 1, "64": 1, "65": 1, "66": 1, "67": 1, "68": 1, "69": 1, "70": 1, "72": 1, "73": 1, "74": 1, "75": 1, "76": 1, "77": 1, "78": 1, "79": 1, "80": 1, "81": 1, "82": 1, "83": 1, "84": 1, "85": 1, "86": 1, "87": 1, "88": 1, "89": 1, "90": 1, "91": 1, "92": 1, "93": 1, "94": 1, "95": 1, "96": 1, "97": 1, "98": 1, "99": 1, "100": 1, "102": 1, "103": 1, "104": 1, "105": 1, "106": 1, "107": 1, "108": 1, "109": 1, "110": 1, "111": 1, "112": 1, "113": 1, "115": 1, "116": 1, "117": 1, "118": 1, "119": 1, "120": 1, "121": 1, "122": 1, "123": 1, "124": 1, "125": 1, "127": 1, "128": 1, "129": 1, "130": 1, "131": 1, "132": 1, "133": 1, "134": 1, "135": 1, "136": 1, "137": 1, "138": 1, "139": 1, "140": 1, "142": 1, "143": 1, "144": 1, "145": 1, "146": 1, "147": 1, "148": 1, "149": 1, "151": 1, "152": 1, "153": 1, "154": 1, "155": 1, "156": 1, "157": 1, "158": 1, "160": 1, "161": 1, "162": 1, "163": 1, "164": 1, "165": 1, "166": 1, "167": 1, "168": 1, "169": 1, "170": 1, "171": 1, "172": 1, "173": 1, "174": 1, "175": 1, "176": 1, "177": 1, "178": 1, "179": 1, "181": 1, "182": 1, "183": 1, "184": 1, "185": 1, "186": 1, "187": 1, "188": 1, "189": 1, "190": 1, "191": 1, "192": 1, "193": 1, "194": 1, "195": 1, "196": 1, "198": 1, "199": 1, "200": 1, "201": 1, "202": 1, "203": 1, "204": 1, "205": 1, "206": 1, "207": 1, "208": 1, "209": 1, "210": 1, "212": 1, "213": 1, "215": 1, "216": 1, "217": 1, "218": 1, "219": 1, "220": 1, "221": 1, "222": 1, "223": 1, "224": 1, "225": 1, "226": 1, "227": 1, "228": 1, "229": 1, "230": 1, "231": 1, "232": 1, "233": 1, "235": 1, "236": 1, "237": 1, "238": 1, "239": 1, "240": 1, "241": 1, "242": 1, "243": 1, "244": 1, "245": 1, "246": 1, "247": 1, "248": 1, "249": 1, "250": 1, "251": 1, "252": 1, "253": 1, "255": 1, "256": 1, "257": 1, "258": 1, "259": 1, "260": 1, "261": 1, "262": 1, "263": 1, "264": 1, "265": 1, "266": 1, "267": 1, "268": 1, "269": 1, "270": 1, "271": 1, "272": 1, "274": 1, "275": 1, "276": 1, "277": 1, "278": 1, "279": 1, "280": 1, "281": 1, "282": 1, "283": 1, "284": 1, "285": 1, "286": 1, "287": 1, "288": 1, "289": 1, "290": 1, "291": 1, "292": 1, "293": 1, "294": 1, "296": 1, "297": 1, "298": 1, "299": 1, "300": 1, "301": 1, "302": 1, "303": 1, "304": 1, "305": 1, "306": 1, "307": 1, "308": 1, "309": 1, "310": 1, "311": 1, "312": 1, "313": 1, "315": 1, "316": 1, "317": 1, "318": 1, "319": 1, "320": 1, "321": 1, "322": 1, "323": 1, "324": 1, "326": 1, "327": 1, "328": 1, "329": 1, "330": 1, "331": 1, "332": 1, "333": 1, "334": 1, "335": 1, "337": 1, "338": 1, "339": 1, "340": 1, "341": 1, "342": 1, "343": 1, "344": 1, "345": 1, "346": 1, "348": 1, "349": 1, "350": 1, "351": 1, "352": 1, "353": 1, "354": 1, "355": 1, "356": 1, "357": 1, "359": 1, "360": 1, "361": 1, "362": 1, "363": 1, "364": 1, "365": 1, "366": 1, "367": 1, "368": 1, "370": 1, "371": 1, "372": 1, "373": 1, "374": 1, "375": 1, "376": 1, "377": 1, "378": 1, "379": 1, "381": 1, "382": 1, "383": 1, "384": 1, "385": 1, "386": 1, "387": 1, "388": 1, "389": 1, "390": 1, "392": 1, "393": 1, "394": 1, "395": 1, "396": 1, "397": 1, "398": 1, "399": 1, "400": 1, "401": 1, "402": 1, "403": 1, "404": 1, "405": 1, "406": 1, "407": 1, "408": 1, "409": 1, "410": 1, "411": 1, "412": 1, "413": 1, "414": 1, "415": 1, "416": 1, "417": 1, "418": 1, "419": 1, "420": 1, "421": 1, "422": 1, "423": 1, "424": 1, "425": 1, "426": 1, "427": 1, "428": 1, "429": 1, "430": 1, "431": 1, "432": 1, "433": 1, "434": 1, "435": 1, "436": 1, "437": 1, "438": 1, "439": 1, "441": 1, "442": 1, "443": 1, "444": 1, "445": 1, "446": 1, "447": 1, "448": 1, "449": 1, "450": 1, "451": 1, "452": 1, "453": 1, "454": 1, "455": 1, "456": 1, "457": 1, "458": 1, "459": 1, "460": 1, "461": 1, "462": 1, "463": 1, "464": 1, "465": 1, "466": 1, "467": 1, "468": 1, "470": 1, "471": 1, "472": 1, "473": 1, "474": 1, "475": 1, "476": 1, "477": 1, "478": 1, "479": 1, "480": 1, "481": 1, "482": 1, "483": 1, "484": 1, "485": 1, "486": 1, "487": 1, "488": 1, "489": 1, "490": 1, "491": 1, "492": 1, "493": 1, "494": 1, "495": 1, "496": 1, "497": 1, "498": 1, "499": 1, "500": 1, "501": 1, "502": 1, "503": 1, "504": 1, "505": 1, "506": 1, "507": 1, "508": 1 }, "branchMap": { "0": { "type": "branch", "line": 9, "loc": { "start": { "line": 9, "column": 21 }, "end": { "line": 509, "column": 2 } }, "locations": [{ "start": { "line": 9, "column": 21 }, "end": { "line": 509, "column": 2 } }] }, "1": { "type": "branch", "line": 10, "loc": { "start": { "line": 10, "column": 25 }, "end": { "line": 180, "column": 3 } }, "locations": [{ "start": { "line": 10, "column": 25 }, "end": { "line": 180, "column": 3 } }] }, "2": { "type": "branch", "line": 11, "loc": { "start": { "line": 11, "column": 36 }, "end": { "line": 24, "column": 5 } }, "locations": [{ "start": { "line": 11, "column": 36 }, "end": { "line": 24, "column": 5 } }] }, "3": { "type": "branch", "line": 26, "loc": { "start": { "line": 26, "column": 36 }, "end": { "line": 42, "column": 5 } }, "locations": [{ "start": { "line": 26, "column": 36 }, "end": { "line": 42, "column": 5 } }] }, "4": { "type": "branch", "line": 44, "loc": { "start": { "line": 44, "column": 42 }, "end": { "line": 71, "column": 5 } }, "locations": [{ "start": { "line": 44, "column": 42 }, "end": { "line": 71, "column": 5 } }] }, "5": { "type": "branch", "line": 73, "loc": { "start": { "line": 73, "column": 40 }, "end": { "line": 101, "column": 5 } }, "locations": [{ "start": { "line": 73, "column": 40 }, "end": { "line": 101, "column": 5 } }] }, "6": { "type": "branch", "line": 103, "loc": { "start": { "line": 103, "column": 44 }, "end": { "line": 114, "column": 5 } }, "locations": [{ "start": { "line": 103, "column": 44 }, "end": { "line": 114, "column": 5 } }] }, "7": { "type": "branch", "line": 116, "loc": { "start": { "line": 116, "column": 33 }, "end": { "line": 126, "column": 5 } }, "locations": [{ "start": { "line": 116, "column": 33 }, "end": { "line": 126, "column": 5 } }] }, "8": { "type": "branch", "line": 128, "loc": { "start": { "line": 128, "column": 37 }, "end": { "line": 141, "column": 5 } }, "locations": [{ "start": { "line": 128, "column": 37 }, "end": { "line": 141, "column": 5 } }] }, "9": { "type": "branch", "line": 143, "loc": { "start": { "line": 143, "column": 42 }, "end": { "line": 150, "column": 5 } }, "locations": [{ "start": { "line": 143, "column": 42 }, "end": { "line": 150, "column": 5 } }] }, "10": { "type": "branch", "line": 152, "loc": { "start": { "line": 152, "column": 32 }, "end": { "line": 159, "column": 5 } }, "locations": [{ "start": { "line": 152, "column": 32 }, "end": { "line": 159, "column": 5 } }] }, "11": { "type": "branch", "line": 161, "loc": { "start": { "line": 161, "column": 33 }, "end": { "line": 179, "column": 5 } }, "locations": [{ "start": { "line": 161, "column": 33 }, "end": { "line": 179, "column": 5 } }] }, "12": { "type": "branch", "line": 182, "loc": { "start": { "line": 182, "column": 37 }, "end": { "line": 403, "column": 3 } }, "locations": [{ "start": { "line": 182, "column": 37 }, "end": { "line": 403, "column": 3 } }] }, "13": { "type": "branch", "line": 183, "loc": { "start": { "line": 183, "column": 40 }, "end": { "line": 197, "column": 5 } }, "locations": [{ "start": { "line": 183, "column": 40 }, "end": { "line": 197, "column": 5 } }] }, "14": { "type": "branch", "line": 199, "loc": { "start": { "line": 199, "column": 47 }, "end": { "line": 214, "column": 5 } }, "locations": [{ "start": { "line": 199, "column": 47 }, "end": { "line": 214, "column": 5 } }] }, "15": { "type": "branch", "line": 216, "loc": { "start": { "line": 216, "column": 41 }, "end": { "line": 234, "column": 5 } }, "locations": [{ "start": { "line": 216, "column": 41 }, "end": { "line": 234, "column": 5 } }] }, "16": { "type": "branch", "line": 236, "loc": { "start": { "line": 236, "column": 39 }, "end": { "line": 254, "column": 5 } }, "locations": [{ "start": { "line": 236, "column": 39 }, "end": { "line": 254, "column": 5 } }] }, "17": { "type": "branch", "line": 256, "loc": { "start": { "line": 256, "column": 38 }, "end": { "line": 273, "column": 5 } }, "locations": [{ "start": { "line": 256, "column": 38 }, "end": { "line": 273, "column": 5 } }] }, "18": { "type": "branch", "line": 275, "loc": { "start": { "line": 275, "column": 41 }, "end": { "line": 295, "column": 5 } }, "locations": [{ "start": { "line": 275, "column": 41 }, "end": { "line": 295, "column": 5 } }] }, "19": { "type": "branch", "line": 297, "loc": { "start": { "line": 297, "column": 38 }, "end": { "line": 314, "column": 5 } }, "locations": [{ "start": { "line": 297, "column": 38 }, "end": { "line": 314, "column": 5 } }] }, "20": { "type": "branch", "line": 316, "loc": { "start": { "line": 316, "column": 36 }, "end": { "line": 325, "column": 5 } }, "locations": [{ "start": { "line": 316, "column": 36 }, "end": { "line": 325, "column": 5 } }] }, "21": { "type": "branch", "line": 327, "loc": { "start": { "line": 327, "column": 39 }, "end": { "line": 336, "column": 5 } }, "locations": [{ "start": { "line": 327, "column": 39 }, "end": { "line": 336, "column": 5 } }] }, "22": { "type": "branch", "line": 338, "loc": { "start": { "line": 338, "column": 41 }, "end": { "line": 347, "column": 5 } }, "locations": [{ "start": { "line": 338, "column": 41 }, "end": { "line": 347, "column": 5 } }] }, "23": { "type": "branch", "line": 349, "loc": { "start": { "line": 349, "column": 38 }, "end": { "line": 358, "column": 5 } }, "locations": [{ "start": { "line": 349, "column": 38 }, "end": { "line": 358, "column": 5 } }] }, "24": { "type": "branch", "line": 360, "loc": { "start": { "line": 360, "column": 36 }, "end": { "line": 369, "column": 5 } }, "locations": [{ "start": { "line": 360, "column": 36 }, "end": { "line": 369, "column": 5 } }] }, "25": { "type": "branch", "line": 371, "loc": { "start": { "line": 371, "column": 43 }, "end": { "line": 380, "column": 5 } }, "locations": [{ "start": { "line": 371, "column": 43 }, "end": { "line": 380, "column": 5 } }] }, "26": { "type": "branch", "line": 382, "loc": { "start": { "line": 382, "column": 41 }, "end": { "line": 391, "column": 5 } }, "locations": [{ "start": { "line": 382, "column": 41 }, "end": { "line": 391, "column": 5 } }] }, "27": { "type": "branch", "line": 393, "loc": { "start": { "line": 393, "column": 41 }, "end": { "line": 402, "column": 5 } }, "locations": [{ "start": { "line": 393, "column": 41 }, "end": { "line": 402, "column": 5 } }] }, "28": { "type": "branch", "line": 404, "loc": { "start": { "line": 404, "column": 25 }, "end": { "line": 508, "column": 3 } }, "locations": [{ "start": { "line": 404, "column": 25 }, "end": { "line": 508, "column": 3 } }] }, "29": { "type": "branch", "line": 405, "loc": { "start": { "line": 405, "column": 51 }, "end": { "line": 421, "column": 5 } }, "locations": [{ "start": { "line": 405, "column": 51 }, "end": { "line": 421, "column": 5 } }] }, "30": { "type": "branch", "line": 422, "loc": { "start": { "line": 422, "column": 49 }, "end": { "line": 438, "column": 5 } }, "locations": [{ "start": { "line": 422, "column": 49 }, "end": { "line": 438, "column": 5 } }] }, "31": { "type": "branch", "line": 439, "loc": { "start": { "line": 439, "column": 38 }, "end": { "line": 469, "column": 5 } }, "locations": [{ "start": { "line": 439, "column": 38 }, "end": { "line": 469, "column": 5 } }] }, "32": { "type": "branch", "line": 444, "loc": { "start": { "line": 444, "column": 28 }, "end": { "line": 447, "column": 23 } }, "locations": [{ "start": { "line": 444, "column": 28 }, "end": { "line": 447, "column": 23 } }] }, "33": { "type": "branch", "line": 471, "loc": { "start": { "line": 471, "column": 41 }, "end": { "line": 507, "column": 5 } }, "locations": [{ "start": { "line": 471, "column": 41 }, "end": { "line": 507, "column": 5 } }] }, "34": { "type": "branch", "line": 472, "loc": { "start": { "line": 472, "column": 53 }, "end": { "line": 477, "column": 7 } }, "locations": [{ "start": { "line": 472, "column": 53 }, "end": { "line": 477, "column": 7 } }] } }, "b": { "0": [1], "1": [1], "2": [1], "3": [1], "4": [1], "5": [1], "6": [1], "7": [1], "8": [1], "9": [1], "10": [1], "11": [1], "12": [1], "13": [1], "14": [1], "15": [1], "16": [1], "17": [1], "18": [1], "19": [1], "20": [1], "21": [1], "22": [1], "23": [1], "24": [1], "25": [1], "26": [1], "27": [1], "28": [1], "29": [1], "30": [1], "31": [1], "32": [1], "33": [1], "34": [1] }, "fnMap": { "0": { "name": "__vite_ssr_import_1__.richTextResolver.resolvers", "decl": { "start": { "line": 444, "column": 28 }, "end": { "line": 447, "column": 23 } }, "loc": { "start": { "line": 444, "column": 28 }, "end": { "line": 447, "column": 23 } }, "line": 444 }, "1": { "name": "componentResolver", "decl": { "start": { "line": 472, "column": 53 }, "end": { "line": 477, "column": 7 } }, "loc": { "start": { "line": 472, "column": 53 }, "end": { "line": 477, "column": 7 } }, "line": 472 } }, "f": { "0": 1, "1": 1 } }, + "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/richtext.ts": { "path": "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/richtext.ts", "all": false, "statementMap": { "0": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 53 } }, "1": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 88 } }, "27": { "start": { "line": 28, "column": 0 }, "end": { "line": 28, "column": 80 } }, "28": { "start": { "line": 29, "column": 0 }, "end": { "line": 29, "column": 39 } }, "29": { "start": { "line": 30, "column": 0 }, "end": { "line": 30, "column": 12 } }, "50": { "start": { "line": 51, "column": 0 }, "end": { "line": 51, "column": 79 } }, "51": { "start": { "line": 52, "column": 0 }, "end": { "line": 52, "column": 38 } }, "52": { "start": { "line": 53, "column": 0 }, "end": { "line": 53, "column": 13 } }, "70": { "start": { "line": 71, "column": 0 }, "end": { "line": 71, "column": 49 } }, "71": { "start": { "line": 72, "column": 0 }, "end": { "line": 72, "column": 19 } }, "72": { "start": { "line": 73, "column": 0 }, "end": { "line": 73, "column": 27 } }, "73": { "start": { "line": 74, "column": 0 }, "end": { "line": 74, "column": 26 } }, "74": { "start": { "line": 75, "column": 0 }, "end": { "line": 75, "column": 26 } }, "75": { "start": { "line": 76, "column": 0 }, "end": { "line": 76, "column": 28 } }, "76": { "start": { "line": 77, "column": 0 }, "end": { "line": 77, "column": 28 } }, "77": { "start": { "line": 78, "column": 0 }, "end": { "line": 78, "column": 1 } }, "88": { "start": { "line": 89, "column": 0 }, "end": { "line": 89, "column": 107 } }, "89": { "start": { "line": 90, "column": 0 }, "end": { "line": 90, "column": 42 } }, "90": { "start": { "line": 91, "column": 0 }, "end": { "line": 91, "column": 63 } }, "91": { "start": { "line": 92, "column": 0 }, "end": { "line": 92, "column": 113 } }, "92": { "start": { "line": 93, "column": 0 }, "end": { "line": 93, "column": 1 } }, "102": { "start": { "line": 103, "column": 0 }, "end": { "line": 103, "column": 74 } }, "104": { "start": { "line": 105, "column": 0 }, "end": { "line": 105, "column": 20 } }, "105": { "start": { "line": 106, "column": 0 }, "end": { "line": 106, "column": 9 } }, "106": { "start": { "line": 107, "column": 0 }, "end": { "line": 107, "column": 31 } }, "107": { "start": { "line": 108, "column": 0 }, "end": { "line": 108, "column": 24 } }, "108": { "start": { "line": 109, "column": 0 }, "end": { "line": 109, "column": 19 } }, "109": { "start": { "line": 110, "column": 0 }, "end": { "line": 110, "column": 27 } }, "110": { "start": { "line": 111, "column": 0 }, "end": { "line": 111, "column": 13 } }, "113": { "start": { "line": 114, "column": 0 }, "end": { "line": 114, "column": 201 } }, "115": { "start": { "line": 116, "column": 0 }, "end": { "line": 116, "column": 81 } }, "116": { "start": { "line": 117, "column": 0 }, "end": { "line": 117, "column": 51 } }, "117": { "start": { "line": 118, "column": 0 }, "end": { "line": 118, "column": 23 } }, "118": { "start": { "line": 119, "column": 0 }, "end": { "line": 119, "column": 24 } }, "120": { "start": { "line": 121, "column": 0 }, "end": { "line": 121, "column": 24 } }, "121": { "start": { "line": 122, "column": 0 }, "end": { "line": 122, "column": 94 } }, "122": { "start": { "line": 123, "column": 0 }, "end": { "line": 123, "column": 30 } }, "123": { "start": { "line": 124, "column": 0 }, "end": { "line": 124, "column": 34 } }, "124": { "start": { "line": 125, "column": 0 }, "end": { "line": 125, "column": 5 } }, "125": { "start": { "line": 126, "column": 0 }, "end": { "line": 126, "column": 22 } }, "126": { "start": { "line": 127, "column": 0 }, "end": { "line": 127, "column": 20 } }, "127": { "start": { "line": 128, "column": 0 }, "end": { "line": 128, "column": 21 } }, "128": { "start": { "line": 129, "column": 0 }, "end": { "line": 129, "column": 31 } }, "129": { "start": { "line": 130, "column": 0 }, "end": { "line": 130, "column": 14 } }, "130": { "start": { "line": 131, "column": 0 }, "end": { "line": 131, "column": 20 } }, "131": { "start": { "line": 132, "column": 0 }, "end": { "line": 132, "column": 6 } }, "133": { "start": { "line": 134, "column": 0 }, "end": { "line": 134, "column": 46 } }, "134": { "start": { "line": 135, "column": 0 }, "end": { "line": 135, "column": 4 } }, "135": { "start": { "line": 136, "column": 0 }, "end": { "line": 136, "column": 86 } }, "136": { "start": { "line": 137, "column": 0 }, "end": { "line": 137, "column": 47 } }, "137": { "start": { "line": 138, "column": 0 }, "end": { "line": 138, "column": 110 } }, "138": { "start": { "line": 139, "column": 0 }, "end": { "line": 139, "column": 3 } }, "140": { "start": { "line": 141, "column": 0 }, "end": { "line": 141, "column": 98 } }, "141": { "start": { "line": 142, "column": 0 }, "end": { "line": 142, "column": 25 } }, "142": { "start": { "line": 143, "column": 0 }, "end": { "line": 143, "column": 34 } }, "143": { "start": { "line": 144, "column": 0 }, "end": { "line": 144, "column": 31 } }, "144": { "start": { "line": 145, "column": 0 }, "end": { "line": 145, "column": 33 } }, "145": { "start": { "line": 146, "column": 0 }, "end": { "line": 146, "column": 22 } }, "146": { "start": { "line": 147, "column": 0 }, "end": { "line": 147, "column": 35 } }, "147": { "start": { "line": 148, "column": 0 }, "end": { "line": 148, "column": 25 } }, "148": { "start": { "line": 149, "column": 0 }, "end": { "line": 149, "column": 69 } }, "149": { "start": { "line": 150, "column": 0 }, "end": { "line": 150, "column": 23 } }, "150": { "start": { "line": 151, "column": 0 }, "end": { "line": 151, "column": 20 } }, "151": { "start": { "line": 152, "column": 0 }, "end": { "line": 152, "column": 21 } }, "153": { "start": { "line": 154, "column": 0 }, "end": { "line": 154, "column": 88 } }, "154": { "start": { "line": 155, "column": 0 }, "end": { "line": 155, "column": 160 } }, "155": { "start": { "line": 156, "column": 0 }, "end": { "line": 156, "column": 3 } }, "158": { "start": { "line": 159, "column": 0 }, "end": { "line": 159, "column": 108 } }, "159": { "start": { "line": 160, "column": 0 }, "end": { "line": 160, "column": 31 } }, "160": { "start": { "line": 161, "column": 0 }, "end": { "line": 161, "column": 9 } }, "161": { "start": { "line": 162, "column": 0 }, "end": { "line": 162, "column": 37 } }, "162": { "start": { "line": 163, "column": 0 }, "end": { "line": 163, "column": 38 } }, "163": { "start": { "line": 164, "column": 0 }, "end": { "line": 164, "column": 9 } }, "164": { "start": { "line": 165, "column": 0 }, "end": { "line": 165, "column": 74 } }, "165": { "start": { "line": 166, "column": 0 }, "end": { "line": 166, "column": 3 } }, "167": { "start": { "line": 168, "column": 0 }, "end": { "line": 168, "column": 39 } }, "170": { "start": { "line": 171, "column": 0 }, "end": { "line": 171, "column": 39 } }, "171": { "start": { "line": 172, "column": 0 }, "end": { "line": 172, "column": 3 } }, "174": { "start": { "line": 175, "column": 0 }, "end": { "line": 175, "column": 83 } }, "175": { "start": { "line": 176, "column": 0 }, "end": { "line": 176, "column": 50 } }, "176": { "start": { "line": 177, "column": 0 }, "end": { "line": 177, "column": 25 } }, "179": { "start": { "line": 180, "column": 0 }, "end": { "line": 180, "column": 18 } }, "180": { "start": { "line": 181, "column": 0 }, "end": { "line": 181, "column": 23 } }, "181": { "start": { "line": 182, "column": 0 }, "end": { "line": 182, "column": 124 } }, "182": { "start": { "line": 183, "column": 0 }, "end": { "line": 183, "column": 100 } }, "183": { "start": { "line": 184, "column": 0 }, "end": { "line": 184, "column": 9 } }, "184": { "start": { "line": 185, "column": 0 }, "end": { "line": 185, "column": 75 } }, "185": { "start": { "line": 186, "column": 0 }, "end": { "line": 186, "column": 5 } }, "186": { "start": { "line": 187, "column": 0 }, "end": { "line": 187, "column": 10 } }, "187": { "start": { "line": 188, "column": 0 }, "end": { "line": 188, "column": 66 } }, "188": { "start": { "line": 189, "column": 0 }, "end": { "line": 189, "column": 5 } }, "189": { "start": { "line": 190, "column": 0 }, "end": { "line": 190, "column": 3 } }, "193": { "start": { "line": 194, "column": 0 }, "end": { "line": 194, "column": 80 } }, "194": { "start": { "line": 195, "column": 0 }, "end": { "line": 195, "column": 64 } }, "196": { "start": { "line": 197, "column": 0 }, "end": { "line": 197, "column": 22 } }, "197": { "start": { "line": 198, "column": 0 }, "end": { "line": 198, "column": 23 } }, "198": { "start": { "line": 199, "column": 0 }, "end": { "line": 199, "column": 27 } }, "199": { "start": { "line": 200, "column": 0 }, "end": { "line": 200, "column": 25 } }, "200": { "start": { "line": 201, "column": 0 }, "end": { "line": 201, "column": 24 } }, "201": { "start": { "line": 202, "column": 0 }, "end": { "line": 202, "column": 13 } }, "202": { "start": { "line": 203, "column": 0 }, "end": { "line": 203, "column": 27 } }, "203": { "start": { "line": 204, "column": 0 }, "end": { "line": 204, "column": 36 } }, "204": { "start": { "line": 205, "column": 0 }, "end": { "line": 205, "column": 13 } }, "205": { "start": { "line": 206, "column": 0 }, "end": { "line": 206, "column": 27 } }, "208": { "start": { "line": 209, "column": 0 }, "end": { "line": 209, "column": 24 } }, "209": { "start": { "line": 210, "column": 0 }, "end": { "line": 210, "column": 13 } }, "210": { "start": { "line": 211, "column": 0 }, "end": { "line": 211, "column": 14 } }, "212": { "start": { "line": 213, "column": 0 }, "end": { "line": 213, "column": 13 } }, "213": { "start": { "line": 214, "column": 0 }, "end": { "line": 214, "column": 5 } }, "214": { "start": { "line": 215, "column": 0 }, "end": { "line": 215, "column": 17 } }, "215": { "start": { "line": 216, "column": 0 }, "end": { "line": 216, "column": 42 } }, "216": { "start": { "line": 217, "column": 0 }, "end": { "line": 217, "column": 5 } }, "217": { "start": { "line": 218, "column": 0 }, "end": { "line": 218, "column": 101 } }, "218": { "start": { "line": 219, "column": 0 }, "end": { "line": 219, "column": 3 } }, "221": { "start": { "line": 222, "column": 0 }, "end": { "line": 222, "column": 88 } }, "222": { "start": { "line": 223, "column": 0 }, "end": { "line": 223, "column": 84 } }, "223": { "start": { "line": 224, "column": 0 }, "end": { "line": 224, "column": 29 } }, "224": { "start": { "line": 225, "column": 0 }, "end": { "line": 225, "column": 33 } }, "225": { "start": { "line": 226, "column": 0 }, "end": { "line": 226, "column": 25 } }, "226": { "start": { "line": 227, "column": 0 }, "end": { "line": 227, "column": 37 } }, "227": { "start": { "line": 228, "column": 0 }, "end": { "line": 228, "column": 29 } }, "228": { "start": { "line": 229, "column": 0 }, "end": { "line": 229, "column": 15 } }, "229": { "start": { "line": 230, "column": 0 }, "end": { "line": 230, "column": 3 } }, "231": { "start": { "line": 232, "column": 0 }, "end": { "line": 232, "column": 83 } }, "232": { "start": { "line": 233, "column": 0 }, "end": { "line": 233, "column": 47 } }, "233": { "start": { "line": 234, "column": 0 }, "end": { "line": 234, "column": 42 } }, "234": { "start": { "line": 235, "column": 0 }, "end": { "line": 235, "column": 46 } }, "235": { "start": { "line": 236, "column": 0 }, "end": { "line": 236, "column": 45 } }, "236": { "start": { "line": 237, "column": 0 }, "end": { "line": 237, "column": 45 } }, "237": { "start": { "line": 238, "column": 0 }, "end": { "line": 238, "column": 47 } }, "238": { "start": { "line": 239, "column": 0 }, "end": { "line": 239, "column": 38 } }, "239": { "start": { "line": 240, "column": 0 }, "end": { "line": 240, "column": 38 } }, "240": { "start": { "line": 241, "column": 0 }, "end": { "line": 241, "column": 47 } }, "241": { "start": { "line": 242, "column": 0 }, "end": { "line": 242, "column": 40 } }, "242": { "start": { "line": 243, "column": 0 }, "end": { "line": 243, "column": 40 } }, "243": { "start": { "line": 244, "column": 0 }, "end": { "line": 244, "column": 51 } }, "244": { "start": { "line": 245, "column": 0 }, "end": { "line": 245, "column": 46 } }, "245": { "start": { "line": 246, "column": 0 }, "end": { "line": 246, "column": 35 } }, "246": { "start": { "line": 247, "column": 0 }, "end": { "line": 247, "column": 35 } }, "247": { "start": { "line": 248, "column": 0 }, "end": { "line": 248, "column": 37 } }, "248": { "start": { "line": 249, "column": 0 }, "end": { "line": 249, "column": 51 } }, "249": { "start": { "line": 250, "column": 0 }, "end": { "line": 250, "column": 45 } }, "250": { "start": { "line": 251, "column": 0 }, "end": { "line": 251, "column": 55 } }, "251": { "start": { "line": 252, "column": 0 }, "end": { "line": 252, "column": 43 } }, "252": { "start": { "line": 253, "column": 0 }, "end": { "line": 253, "column": 45 } }, "253": { "start": { "line": 254, "column": 0 }, "end": { "line": 254, "column": 42 } }, "254": { "start": { "line": 255, "column": 0 }, "end": { "line": 255, "column": 43 } }, "255": { "start": { "line": 256, "column": 0 }, "end": { "line": 256, "column": 49 } }, "256": { "start": { "line": 257, "column": 0 }, "end": { "line": 257, "column": 47 } }, "257": { "start": { "line": 258, "column": 0 }, "end": { "line": 258, "column": 48 } }, "258": { "start": { "line": 259, "column": 0 }, "end": { "line": 259, "column": 172 } }, "259": { "start": { "line": 260, "column": 0 }, "end": { "line": 260, "column": 4 } }, "261": { "start": { "line": 262, "column": 0 }, "end": { "line": 262, "column": 51 } }, "262": { "start": { "line": 263, "column": 0 }, "end": { "line": 263, "column": 19 } }, "263": { "start": { "line": 264, "column": 0 }, "end": { "line": 264, "column": 51 } }, "264": { "start": { "line": 265, "column": 0 }, "end": { "line": 265, "column": 20 } }, "265": { "start": { "line": 266, "column": 0 }, "end": { "line": 266, "column": 82 } }, "266": { "start": { "line": 267, "column": 0 }, "end": { "line": 267, "column": 31 } }, "267": { "start": { "line": 268, "column": 0 }, "end": { "line": 268, "column": 5 } }, "269": { "start": { "line": 270, "column": 0 }, "end": { "line": 270, "column": 31 } }, "270": { "start": { "line": 271, "column": 0 }, "end": { "line": 271, "column": 98 } }, "271": { "start": { "line": 272, "column": 0 }, "end": { "line": 272, "column": 5 } }, "273": { "start": { "line": 274, "column": 0 }, "end": { "line": 274, "column": 72 } }, "275": { "start": { "line": 276, "column": 0 }, "end": { "line": 276, "column": 21 } }, "276": { "start": { "line": 277, "column": 0 }, "end": { "line": 277, "column": 14 } }, "277": { "start": { "line": 278, "column": 0 }, "end": { "line": 278, "column": 78 } }, "278": { "start": { "line": 279, "column": 0 }, "end": { "line": 279, "column": 6 } }, "279": { "start": { "line": 280, "column": 0 }, "end": { "line": 280, "column": 3 } }, "305": { "start": { "line": 306, "column": 0 }, "end": { "line": 306, "column": 47 } }, "306": { "start": { "line": 307, "column": 0 }, "end": { "line": 307, "column": 82 } }, "307": { "start": { "line": 308, "column": 0 }, "end": { "line": 308, "column": 3 } }, "309": { "start": { "line": 310, "column": 0 }, "end": { "line": 310, "column": 10 } }, "310": { "start": { "line": 311, "column": 0 }, "end": { "line": 311, "column": 11 } }, "311": { "start": { "line": 312, "column": 0 }, "end": { "line": 312, "column": 3 } }, "312": { "start": { "line": 313, "column": 0 }, "end": { "line": 313, "column": 1 } } }, "s": { "0": 1, "1": 1, "27": 1, "28": 36, "29": 36, "50": 1, "51": 2, "52": 2, "70": 25, "71": 25, "72": 25, "73": 25, "74": 25, "75": 25, "76": 25, "77": 25, "88": 36, "89": 36, "90": 36, "91": 36, "92": 36, "102": 1, "104": 29, "105": 29, "106": 29, "107": 29, "108": 29, "109": 29, "110": 29, "113": 29, "115": 29, "116": 1, "117": 1, "118": 1, "120": 1, "121": 0, "122": 0, "123": 0, "124": 0, "125": 1, "126": 1, "127": 1, "128": 1, "129": 1, "130": 1, "131": 1, "133": 1, "134": 1, "135": 29, "136": 1, "137": 1, "138": 1, "140": 29, "141": 1, "142": 1, "143": 1, "144": 1, "145": 1, "146": 1, "147": 1, "148": 1, "149": 1, "150": 1, "151": 1, "153": 29, "154": 1, "155": 1, "158": 29, "159": 12, "160": 2, "161": 2, "162": 2, "163": 2, "164": 12, "165": 12, "167": 29, "170": 34, "171": 34, "174": 29, "175": 42, "176": 42, "179": 42, "180": 16, "181": 16, "182": 16, "183": 16, "184": 26, "185": 42, "186": 0, "187": 0, "188": 0, "189": 42, "193": 29, "194": 5, "196": 5, "197": 5, "198": 5, "199": 5, "200": 2, "201": 2, "202": 5, "203": 1, "204": 1, "205": 5, "208": 1, "209": 1, "210": 5, "212": 1, "213": 5, "214": 5, "215": 1, "216": 1, "217": 5, "218": 5, "221": 29, "222": 0, "223": 0, "224": 0, "225": 0, "226": 0, "227": 0, "228": 0, "229": 0, "231": 29, "232": 29, "233": 29, "234": 29, "235": 29, "236": 29, "237": 29, "238": 29, "239": 29, "240": 29, "241": 29, "242": 29, "243": 29, "244": 29, "245": 29, "246": 29, "247": 29, "248": 29, "249": 29, "250": 29, "251": 29, "252": 29, "253": 29, "254": 29, "255": 29, "256": 29, "257": 29, "258": 29, "259": 29, "261": 29, "262": 80, "263": 80, "264": 80, "265": 0, "266": 0, "267": 0, "269": 80, "270": 42, "271": 42, "273": 80, "275": 80, "276": 80, "277": 80, "278": 80, "279": 80, "305": 29, "306": 80, "307": 80, "309": 29, "310": 29, "311": 29, "312": 29 }, "branchMap": { "0": { "type": "branch", "line": 28, "loc": { "start": { "line": 28, "column": 22 }, "end": { "line": 30, "column": 12 } }, "locations": [{ "start": { "line": 28, "column": 22 }, "end": { "line": 30, "column": 12 } }] }, "1": { "type": "branch", "line": 29, "loc": { "start": { "line": 29, "column": 7 }, "end": { "line": 29, "column": 38 } }, "locations": [{ "start": { "line": 29, "column": 7 }, "end": { "line": 29, "column": 38 } }] }, "2": { "type": "branch", "line": 51, "loc": { "start": { "line": 51, "column": 21 }, "end": { "line": 53, "column": 13 } }, "locations": [{ "start": { "line": 51, "column": 21 }, "end": { "line": 53, "column": 13 } }] }, "3": { "type": "branch", "line": 52, "loc": { "start": { "line": 52, "column": 7 }, "end": { "line": 52, "column": 37 } }, "locations": [{ "start": { "line": 52, "column": 7 }, "end": { "line": 52, "column": 37 } }] }, "4": { "type": "branch", "line": 71, "loc": { "start": { "line": 71, "column": 0 }, "end": { "line": 78, "column": 1 } }, "locations": [{ "start": { "line": 71, "column": 0 }, "end": { "line": 78, "column": 1 } }] }, "5": { "type": "branch", "line": 89, "loc": { "start": { "line": 89, "column": 0 }, "end": { "line": 93, "column": 1 } }, "locations": [{ "start": { "line": 89, "column": 0 }, "end": { "line": 93, "column": 1 } }] }, "6": { "type": "branch", "line": 91, "loc": { "start": { "line": 91, "column": 55 }, "end": { "line": 91, "column": 63 } }, "locations": [{ "start": { "line": 91, "column": 55 }, "end": { "line": 91, "column": 63 } }] }, "7": { "type": "branch", "line": 92, "loc": { "start": { "line": 92, "column": 48 }, "end": { "line": 92, "column": 72 } }, "locations": [{ "start": { "line": 92, "column": 48 }, "end": { "line": 92, "column": 72 } }] }, "8": { "type": "branch", "line": 92, "loc": { "start": { "line": 92, "column": 68 }, "end": { "line": 92, "column": 86 } }, "locations": [{ "start": { "line": 92, "column": 68 }, "end": { "line": 92, "column": 86 } }] }, "9": { "type": "branch", "line": 92, "loc": { "start": { "line": 92, "column": 72 }, "end": { "line": 92, "column": 86 } }, "locations": [{ "start": { "line": 92, "column": 72 }, "end": { "line": 92, "column": 86 } }] }, "10": { "type": "branch", "line": 103, "loc": { "start": { "line": 103, "column": 7 }, "end": { "line": 313, "column": 1 } }, "locations": [{ "start": { "line": 103, "column": 7 }, "end": { "line": 313, "column": 1 } }] }, "11": { "type": "branch", "line": 114, "loc": { "start": { "line": 114, "column": 23 }, "end": { "line": 114, "column": 201 } }, "locations": [{ "start": { "line": 114, "column": 23 }, "end": { "line": 114, "column": 201 } }] }, "12": { "type": "branch", "line": 114, "loc": { "start": { "line": 114, "column": 67 }, "end": { "line": 114, "column": 201 } }, "locations": [{ "start": { "line": 114, "column": 67 }, "end": { "line": 114, "column": 201 } }] }, "13": { "type": "branch", "line": 114, "loc": { "start": { "line": 114, "column": 172 }, "end": { "line": 114, "column": 195 } }, "locations": [{ "start": { "line": 114, "column": 172 }, "end": { "line": 114, "column": 195 } }] }, "14": { "type": "branch", "line": 116, "loc": { "start": { "line": 116, "column": 51 }, "end": { "line": 135, "column": 4 } }, "locations": [{ "start": { "line": 116, "column": 51 }, "end": { "line": 135, "column": 4 } }] }, "15": { "type": "branch", "line": 117, "loc": { "start": { "line": 117, "column": 39 }, "end": { "line": 117, "column": 51 } }, "locations": [{ "start": { "line": 117, "column": 39 }, "end": { "line": 117, "column": 51 } }] }, "16": { "type": "branch", "line": 121, "loc": { "start": { "line": 121, "column": 23 }, "end": { "line": 125, "column": 5 } }, "locations": [{ "start": { "line": 121, "column": 23 }, "end": { "line": 125, "column": 5 } }] }, "17": { "type": "branch", "line": 128, "loc": { "start": { "line": 128, "column": 11 }, "end": { "line": 128, "column": 21 } }, "locations": [{ "start": { "line": 128, "column": 11 }, "end": { "line": 128, "column": 21 } }] }, "18": { "type": "branch", "line": 136, "loc": { "start": { "line": 136, "column": 53 }, "end": { "line": 139, "column": 3 } }, "locations": [{ "start": { "line": 136, "column": 53 }, "end": { "line": 139, "column": 3 } }] }, "19": { "type": "branch", "line": 137, "loc": { "start": { "line": 137, "column": 36 }, "end": { "line": 137, "column": 47 } }, "locations": [{ "start": { "line": 137, "column": 36 }, "end": { "line": 137, "column": 47 } }] }, "20": { "type": "branch", "line": 141, "loc": { "start": { "line": 141, "column": 51 }, "end": { "line": 152, "column": 21 } }, "locations": [{ "start": { "line": 141, "column": 51 }, "end": { "line": 152, "column": 21 } }] }, "21": { "type": "branch", "line": 154, "loc": { "start": { "line": 154, "column": 55 }, "end": { "line": 156, "column": 3 } }, "locations": [{ "start": { "line": 154, "column": 55 }, "end": { "line": 156, "column": 3 } }] }, "22": { "type": "branch", "line": 155, "loc": { "start": { "line": 155, "column": 132 }, "end": { "line": 155, "column": 153 } }, "locations": [{ "start": { "line": 155, "column": 132 }, "end": { "line": 155, "column": 153 } }] }, "23": { "type": "branch", "line": 159, "loc": { "start": { "line": 159, "column": 23 }, "end": { "line": 166, "column": 3 } }, "locations": [{ "start": { "line": 159, "column": 23 }, "end": { "line": 166, "column": 3 } }] }, "24": { "type": "branch", "line": 159, "loc": { "start": { "line": 159, "column": 83 }, "end": { "line": 166, "column": 3 } }, "locations": [{ "start": { "line": 159, "column": 83 }, "end": { "line": 166, "column": 3 } }] }, "25": { "type": "branch", "line": 160, "loc": { "start": { "line": 160, "column": 25 }, "end": { "line": 164, "column": 9 } }, "locations": [{ "start": { "line": 160, "column": 25 }, "end": { "line": 164, "column": 9 } }] }, "26": { "type": "branch", "line": 164, "loc": { "start": { "line": 164, "column": 8 }, "end": { "line": 165, "column": 57 } }, "locations": [{ "start": { "line": 164, "column": 8 }, "end": { "line": 165, "column": 57 } }] }, "27": { "type": "branch", "line": 168, "loc": { "start": { "line": 168, "column": 20 }, "end": { "line": 172, "column": 3 } }, "locations": [{ "start": { "line": 168, "column": 20 }, "end": { "line": 172, "column": 3 } }] }, "28": { "type": "branch", "line": 175, "loc": { "start": { "line": 175, "column": 50 }, "end": { "line": 190, "column": 3 } }, "locations": [{ "start": { "line": 175, "column": 50 }, "end": { "line": 190, "column": 3 } }] }, "29": { "type": "branch", "line": 180, "loc": { "start": { "line": 180, "column": 13 }, "end": { "line": 184, "column": 9 } }, "locations": [{ "start": { "line": 180, "column": 13 }, "end": { "line": 184, "column": 9 } }] }, "30": { "type": "branch", "line": 184, "loc": { "start": { "line": 184, "column": 8 }, "end": { "line": 185, "column": 75 } }, "locations": [{ "start": { "line": 184, "column": 8 }, "end": { "line": 185, "column": 75 } }] }, "31": { "type": "branch", "line": 186, "loc": { "start": { "line": 186, "column": 4 }, "end": { "line": 189, "column": 5 } }, "locations": [{ "start": { "line": 186, "column": 4 }, "end": { "line": 189, "column": 5 } }] }, "32": { "type": "branch", "line": 182, "loc": { "start": { "line": 182, "column": 10 }, "end": { "line": 182, "column": 124 } }, "locations": [{ "start": { "line": 182, "column": 10 }, "end": { "line": 182, "column": 124 } }] }, "33": { "type": "branch", "line": 194, "loc": { "start": { "line": 194, "column": 50 }, "end": { "line": 219, "column": 3 } }, "locations": [{ "start": { "line": 194, "column": 50 }, "end": { "line": 219, "column": 3 } }] }, "34": { "type": "branch", "line": 195, "loc": { "start": { "line": 195, "column": 53 }, "end": { "line": 195, "column": 64 } }, "locations": [{ "start": { "line": 195, "column": 53 }, "end": { "line": 195, "column": 64 } }] }, "35": { "type": "branch", "line": 199, "loc": { "start": { "line": 199, "column": 6 }, "end": { "line": 199, "column": 27 } }, "locations": [{ "start": { "line": 199, "column": 6 }, "end": { "line": 199, "column": 27 } }] }, "36": { "type": "branch", "line": 200, "loc": { "start": { "line": 200, "column": 6 }, "end": { "line": 202, "column": 13 } }, "locations": [{ "start": { "line": 200, "column": 6 }, "end": { "line": 202, "column": 13 } }] }, "37": { "type": "branch", "line": 203, "loc": { "start": { "line": 203, "column": 6 }, "end": { "line": 205, "column": 13 } }, "locations": [{ "start": { "line": 203, "column": 6 }, "end": { "line": 205, "column": 13 } }] }, "38": { "type": "branch", "line": 206, "loc": { "start": { "line": 206, "column": 6 }, "end": { "line": 210, "column": 13 } }, "locations": [{ "start": { "line": 206, "column": 6 }, "end": { "line": 210, "column": 13 } }] }, "39": { "type": "branch", "line": 211, "loc": { "start": { "line": 211, "column": 6 }, "end": { "line": 213, "column": 13 } }, "locations": [{ "start": { "line": 211, "column": 6 }, "end": { "line": 213, "column": 13 } }] }, "40": { "type": "branch", "line": 215, "loc": { "start": { "line": 215, "column": 16 }, "end": { "line": 217, "column": 5 } }, "locations": [{ "start": { "line": 215, "column": 16 }, "end": { "line": 217, "column": 5 } }] }, "41": { "type": "branch", "line": 259, "loc": { "start": { "line": 259, "column": 38 }, "end": { "line": 259, "column": 99 } }, "locations": [{ "start": { "line": 259, "column": 38 }, "end": { "line": 259, "column": 99 } }] }, "42": { "type": "branch", "line": 262, "loc": { "start": { "line": 262, "column": 2 }, "end": { "line": 280, "column": 3 } }, "locations": [{ "start": { "line": 262, "column": 2 }, "end": { "line": 280, "column": 3 } }] }, "43": { "type": "branch", "line": 265, "loc": { "start": { "line": 265, "column": 19 }, "end": { "line": 268, "column": 5 } }, "locations": [{ "start": { "line": 265, "column": 19 }, "end": { "line": 268, "column": 5 } }] }, "44": { "type": "branch", "line": 270, "loc": { "start": { "line": 270, "column": 30 }, "end": { "line": 272, "column": 5 } }, "locations": [{ "start": { "line": 270, "column": 30 }, "end": { "line": 272, "column": 5 } }] }, "45": { "type": "branch", "line": 272, "loc": { "start": { "line": 272, "column": 4 }, "end": { "line": 274, "column": 36 } }, "locations": [{ "start": { "line": 272, "column": 4 }, "end": { "line": 274, "column": 36 } }] }, "46": { "type": "branch", "line": 274, "loc": { "start": { "line": 274, "column": 26 }, "end": { "line": 274, "column": 63 } }, "locations": [{ "start": { "line": 274, "column": 26 }, "end": { "line": 274, "column": 63 } }] }, "47": { "type": "branch", "line": 274, "loc": { "start": { "line": 274, "column": 59 }, "end": { "line": 274, "column": 72 } }, "locations": [{ "start": { "line": 274, "column": 59 }, "end": { "line": 274, "column": 72 } }] }, "48": { "type": "branch", "line": 306, "loc": { "start": { "line": 306, "column": 2 }, "end": { "line": 308, "column": 3 } }, "locations": [{ "start": { "line": 306, "column": 2 }, "end": { "line": 308, "column": 3 } }] }, "49": { "type": "branch", "line": 307, "loc": { "start": { "line": 307, "column": 29 }, "end": { "line": 307, "column": 61 } }, "locations": [{ "start": { "line": 307, "column": 29 }, "end": { "line": 307, "column": 61 } }] } }, "b": { "0": [36], "1": [57], "2": [2], "3": [2], "4": [25], "5": [36], "6": [0], "7": [13], "8": [23], "9": [4], "10": [29], "11": [232], "12": [15], "13": [2], "14": [1], "15": [0], "16": [0], "17": [0], "18": [1], "19": [0], "20": [1], "21": [1], "22": [0], "23": [290], "24": [12], "25": [2], "26": [10], "27": [34], "28": [42], "29": [16], "30": [26], "31": [0], "32": [18], "33": [5], "34": [0], "35": [1], "36": [2], "37": [1], "38": [1], "39": [1], "40": [1], "41": [2], "42": [80], "43": [0], "44": [42], "45": [38], "46": [15], "47": [23], "48": [80], "49": [0] }, "fnMap": { "0": { "name": "attrsToString", "decl": { "start": { "line": 28, "column": 22 }, "end": { "line": 30, "column": 12 } }, "loc": { "start": { "line": 28, "column": 22 }, "end": { "line": 30, "column": 12 } }, "line": 28 }, "1": { "name": "attrsToStyle", "decl": { "start": { "line": 51, "column": 21 }, "end": { "line": 53, "column": 13 } }, "loc": { "start": { "line": 51, "column": 21 }, "end": { "line": 53, "column": 13 } }, "line": 51 }, "2": { "name": "escapeHtml", "decl": { "start": { "line": 71, "column": 0 }, "end": { "line": 78, "column": 1 } }, "loc": { "start": { "line": 71, "column": 0 }, "end": { "line": 78, "column": 1 } }, "line": 71 }, "3": { "name": "defaultRenderFn", "decl": { "start": { "line": 89, "column": 0 }, "end": { "line": 93, "column": 1 } }, "loc": { "start": { "line": 89, "column": 0 }, "end": { "line": 93, "column": 1 } }, "line": 89 }, "4": { "name": "richTextResolver", "decl": { "start": { "line": 103, "column": 7 }, "end": { "line": 313, "column": 1 } }, "loc": { "start": { "line": 103, "column": 7 }, "end": { "line": 313, "column": 1 } }, "line": 103 }, "5": { "name": "nodeResolver", "decl": { "start": { "line": 114, "column": 23 }, "end": { "line": 114, "column": 201 } }, "loc": { "start": { "line": 114, "column": 23 }, "end": { "line": 114, "column": 201 } }, "line": 114 }, "6": { "name": "imageResolver", "decl": { "start": { "line": 116, "column": 51 }, "end": { "line": 135, "column": 4 } }, "loc": { "start": { "line": 116, "column": 51 }, "end": { "line": 135, "column": 4 } }, "line": 116 }, "7": { "name": "headingResolver", "decl": { "start": { "line": 136, "column": 53 }, "end": { "line": 139, "column": 3 } }, "loc": { "start": { "line": 136, "column": 53 }, "end": { "line": 139, "column": 3 } }, "line": 136 }, "8": { "name": "emojiResolver", "decl": { "start": { "line": 141, "column": 51 }, "end": { "line": 152, "column": 21 } }, "loc": { "start": { "line": 141, "column": 51 }, "end": { "line": 152, "column": 21 } }, "line": 141 }, "9": { "name": "codeBlockResolver", "decl": { "start": { "line": 154, "column": 55 }, "end": { "line": 156, "column": 3 } }, "loc": { "start": { "line": 154, "column": 55 }, "end": { "line": 156, "column": 3 } }, "line": 154 }, "10": { "name": "markResolver", "decl": { "start": { "line": 159, "column": 23 }, "end": { "line": 166, "column": 3 } }, "loc": { "start": { "line": 159, "column": 23 }, "end": { "line": 166, "column": 3 } }, "line": 159 }, "11": { "name": "renderToT", "decl": { "start": { "line": 168, "column": 20 }, "end": { "line": 172, "column": 3 } }, "loc": { "start": { "line": 168, "column": 20 }, "end": { "line": 172, "column": 3 } }, "line": 168 }, "12": { "name": "textResolver", "decl": { "start": { "line": 175, "column": 50 }, "end": { "line": 190, "column": 3 } }, "loc": { "start": { "line": 175, "column": 50 }, "end": { "line": 190, "column": 3 } }, "line": 175 }, "13": { "name": "marks.reduce.renderToT", "decl": { "start": { "line": 182, "column": 10 }, "end": { "line": 182, "column": 124 } }, "loc": { "start": { "line": 182, "column": 10 }, "end": { "line": 182, "column": 124 } }, "line": 182 }, "14": { "name": "linkResolver", "decl": { "start": { "line": 194, "column": 50 }, "end": { "line": 219, "column": 3 } }, "loc": { "start": { "line": 194, "column": 50 }, "end": { "line": 219, "column": 3 } }, "line": 194 }, "15": { "name": "componentResolver", "decl": { "start": { "line": 222, "column": 55 }, "end": { "line": 230, "column": 3 } }, "loc": { "start": { "line": 222, "column": 55 }, "end": { "line": 230, "column": 3 } }, "line": 222 }, "16": { "name": "renderNode", "decl": { "start": { "line": 262, "column": 2 }, "end": { "line": 280, "column": 3 } }, "loc": { "start": { "line": 262, "column": 2 }, "end": { "line": 280, "column": 3 } }, "line": 262 }, "17": { "name": "render", "decl": { "start": { "line": 306, "column": 2 }, "end": { "line": 308, "column": 3 } }, "loc": { "start": { "line": 306, "column": 2 }, "end": { "line": 308, "column": 3 } }, "line": 306 } }, "f": { "0": 36, "1": 2, "2": 25, "3": 36, "4": 29, "5": 232, "6": 1, "7": 1, "8": 1, "9": 1, "10": 290, "11": 34, "12": 42, "13": 18, "14": 5, "15": 0, "16": 80, "17": 80 } }, + "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/vite-env.d.ts": { "path": "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/vite-env.d.ts", "all": true, "statementMap": {}, "s": {}, "branchMap": { "0": { "type": "branch", "line": 1, "loc": { "start": { "line": 1, "column": 37 }, "end": { "line": 1, "column": 37 } }, "locations": [{ "start": { "line": 1, "column": 37 }, "end": { "line": 1, "column": 37 } }] } }, "b": { "0": [1] }, "fnMap": { "0": { "name": "(empty-report)", "decl": { "start": { "line": 1, "column": 37 }, "end": { "line": 1, "column": 37 } }, "loc": { "start": { "line": 1, "column": 37 }, "end": { "line": 1, "column": 37 } }, "line": 1 } }, "f": { "0": 1 } }, + "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/types/index.ts": { "path": "/Users/alvarosabu/Projects/storyblok/storyblok-richtext/src/types/index.ts", "all": false, "statementMap": { "0": { "start": { "line": 1, "column": 0 }, "end": { "line": 1, "column": 24 } }, "1": { "start": { "line": 2, "column": 0 }, "end": { "line": 2, "column": 19 } }, "2": { "start": { "line": 3, "column": 0 }, "end": { "line": 3, "column": 22 } }, "3": { "start": { "line": 4, "column": 0 }, "end": { "line": 4, "column": 26 } }, "4": { "start": { "line": 5, "column": 0 }, "end": { "line": 5, "column": 23 } }, "5": { "start": { "line": 6, "column": 0 }, "end": { "line": 6, "column": 27 } }, "6": { "start": { "line": 7, "column": 0 }, "end": { "line": 7, "column": 26 } }, "7": { "start": { "line": 8, "column": 0 }, "end": { "line": 8, "column": 26 } }, "8": { "start": { "line": 9, "column": 0 }, "end": { "line": 9, "column": 28 } }, "9": { "start": { "line": 10, "column": 0 }, "end": { "line": 10, "column": 25 } }, "10": { "start": { "line": 11, "column": 0 }, "end": { "line": 11, "column": 20 } }, "11": { "start": { "line": 12, "column": 0 }, "end": { "line": 12, "column": 18 } }, "12": { "start": { "line": 13, "column": 0 }, "end": { "line": 13, "column": 18 } }, "13": { "start": { "line": 14, "column": 0 }, "end": { "line": 14, "column": 21 } }, "16": { "start": { "line": 17, "column": 0 }, "end": { "line": 17, "column": 23 } }, "17": { "start": { "line": 18, "column": 0 }, "end": { "line": 18, "column": 16 } }, "18": { "start": { "line": 19, "column": 0 }, "end": { "line": 19, "column": 20 } }, "19": { "start": { "line": 20, "column": 0 }, "end": { "line": 20, "column": 20 } }, "20": { "start": { "line": 21, "column": 0 }, "end": { "line": 21, "column": 26 } }, "21": { "start": { "line": 22, "column": 0 }, "end": { "line": 22, "column": 20 } }, "22": { "start": { "line": 23, "column": 0 }, "end": { "line": 23, "column": 16 } }, "23": { "start": { "line": 24, "column": 0 }, "end": { "line": 24, "column": 16 } }, "24": { "start": { "line": 25, "column": 0 }, "end": { "line": 25, "column": 20 } }, "25": { "start": { "line": 26, "column": 0 }, "end": { "line": 26, "column": 20 } }, "26": { "start": { "line": 27, "column": 0 }, "end": { "line": 27, "column": 30 } }, "27": { "start": { "line": 28, "column": 0 }, "end": { "line": 28, "column": 26 } }, "28": { "start": { "line": 29, "column": 0 }, "end": { "line": 29, "column": 27 } }, "29": { "start": { "line": 30, "column": 0 }, "end": { "line": 30, "column": 26 } }, "32": { "start": { "line": 33, "column": 0 }, "end": { "line": 33, "column": 23 } }, "33": { "start": { "line": 34, "column": 0 }, "end": { "line": 34, "column": 16 } }, "36": { "start": { "line": 37, "column": 0 }, "end": { "line": 37, "column": 25 } }, "37": { "start": { "line": 38, "column": 0 }, "end": { "line": 38, "column": 17 } }, "38": { "start": { "line": 39, "column": 0 }, "end": { "line": 39, "column": 19 } }, "41": { "start": { "line": 42, "column": 0 }, "end": { "line": 42, "column": 23 } }, "42": { "start": { "line": 43, "column": 0 }, "end": { "line": 43, "column": 14 } }, "43": { "start": { "line": 44, "column": 0 }, "end": { "line": 44, "column": 18 } }, "44": { "start": { "line": 45, "column": 0 }, "end": { "line": 45, "column": 18 } }, "45": { "start": { "line": 46, "column": 0 }, "end": { "line": 46, "column": 18 } } }, "s": { "0": 1, "1": 1, "2": 1, "3": 1, "4": 1, "5": 1, "6": 1, "7": 1, "8": 1, "9": 1, "10": 1, "11": 1, "12": 1, "13": 1, "16": 1, "17": 1, "18": 1, "19": 1, "20": 1, "21": 1, "22": 1, "23": 1, "24": 1, "25": 1, "26": 1, "27": 1, "28": 1, "29": 1, "32": 1, "33": 1, "36": 1, "37": 1, "38": 1, "41": 1, "42": 1, "43": 1, "44": 1, "45": 1 }, "branchMap": { "0": { "type": "branch", "line": 1, "loc": { "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 24 } }, "locations": [{ "start": { "line": 1, "column": 7 }, "end": { "line": 1, "column": 24 } }] }, "1": { "type": "branch", "line": 17, "loc": { "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 23 } }, "locations": [{ "start": { "line": 17, "column": 7 }, "end": { "line": 17, "column": 23 } }] }, "2": { "type": "branch", "line": 33, "loc": { "start": { "line": 33, "column": 7 }, "end": { "line": 33, "column": 23 } }, "locations": [{ "start": { "line": 33, "column": 7 }, "end": { "line": 33, "column": 23 } }] }, "3": { "type": "branch", "line": 37, "loc": { "start": { "line": 37, "column": 7 }, "end": { "line": 37, "column": 25 } }, "locations": [{ "start": { "line": 37, "column": 7 }, "end": { "line": 37, "column": 25 } }] }, "4": { "type": "branch", "line": 42, "loc": { "start": { "line": 42, "column": 7 }, "end": { "line": 42, "column": 23 } }, "locations": [{ "start": { "line": 42, "column": 7 }, "end": { "line": 42, "column": 23 } }] } }, "b": { "0": [1], "1": [1], "2": [1], "3": [1], "4": [1] }, "fnMap": {}, "f": {} } } diff --git a/tests/unit/coverage/index.html b/tests/unit/coverage/index.html index 3ce005d..10fd908 100644 --- a/tests/unit/coverage/index.html +++ b/tests/unit/coverage/index.html @@ -1,131 +1,131 @@ - - - + Code coverage report for All files - - - - -
-
+ + + +
+

All files

-
- -
- 98.15% - Statements - 956/974 -
- - -
- 91.22% - Branches - 156/171 -
- - -
- 95.65% - Functions - 22/23 -
- - -
- 98.15% - Lines - 956/974 -
- - +
+
+ 98.15% + Statements + 956/974 +
+ +
+ 91.22% + Branches + 156/171 +
+ +
+ 95.65% + Functions + 22/23 +
+ +
+ 98.15% + Lines + 956/974 +

- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, b, p or k for the + previous block.

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
+
+
FileStatementsBranchesFunctionsLines
src -
-
98.07%918/93690.96%151/16695.65%22/2398.07%918/936
src/types -
-
100%38/38100%5/5100%0/0100%38/38
+ + + + + + + + + + + + + + + + + + + + + + + + + + + - -
FileStatementsBranchesFunctionsLines
src +
+
+
+
+
98.07%918/93690.96%151/16695.65%22/2398.07%918/936
-
-
-
- - - - - - + + src/types + +
+
+
+
+ + 100% + 38/38 + 100% + 5/5 + 100% + 0/0 + 100% + 38/38 + + + +
+
+ +
+ + + + + + + - \ No newline at end of file diff --git a/tests/unit/coverage/prettify.css b/tests/unit/coverage/prettify.css index b317a7c..006492c 100644 --- a/tests/unit/coverage/prettify.css +++ b/tests/unit/coverage/prettify.css @@ -1 +1,101 @@ -.pln{color:#000}@media screen{.str{color:#080}.kwd{color:#008}.com{color:#800}.typ{color:#606}.lit{color:#066}.pun,.opn,.clo{color:#660}.tag{color:#008}.atn{color:#606}.atv{color:#080}.dec,.var{color:#606}.fun{color:red}}@media print,projection{.str{color:#060}.kwd{color:#006;font-weight:bold}.com{color:#600;font-style:italic}.typ{color:#404;font-weight:bold}.lit{color:#044}.pun,.opn,.clo{color:#440}.tag{color:#006;font-weight:bold}.atn{color:#404}.atv{color:#060}}pre.prettyprint{padding:2px;border:1px solid #888}ol.linenums{margin-top:0;margin-bottom:0}li.L0,li.L1,li.L2,li.L3,li.L5,li.L6,li.L7,li.L8{list-style-type:none}li.L1,li.L3,li.L5,li.L7,li.L9{background:#eee} +.pln { + color: #000; +} +@media screen { + .str { + color: #080; + } + .kwd { + color: #008; + } + .com { + color: #800; + } + .typ { + color: #606; + } + .lit { + color: #066; + } + .pun, + .opn, + .clo { + color: #660; + } + .tag { + color: #008; + } + .atn { + color: #606; + } + .atv { + color: #080; + } + .dec, + .var { + color: #606; + } + .fun { + color: red; + } +} +@media print, projection { + .str { + color: #060; + } + .kwd { + color: #006; + font-weight: bold; + } + .com { + color: #600; + font-style: italic; + } + .typ { + color: #404; + font-weight: bold; + } + .lit { + color: #044; + } + .pun, + .opn, + .clo { + color: #440; + } + .tag { + color: #006; + font-weight: bold; + } + .atn { + color: #404; + } + .atv { + color: #060; + } +} +pre.prettyprint { + padding: 2px; + border: 1px solid #888; +} +ol.linenums { + margin-top: 0; + margin-bottom: 0; +} +li.L0, +li.L1, +li.L2, +li.L3, +li.L5, +li.L6, +li.L7, +li.L8 { + list-style-type: none; +} +li.L1, +li.L3, +li.L5, +li.L7, +li.L9 { + background: #eee; +} diff --git a/tests/unit/coverage/src/images-optimization.test.ts.html b/tests/unit/coverage/src/images-optimization.test.ts.html index 06d664f..84ed81c 100644 --- a/tests/unit/coverage/src/images-optimization.test.ts.html +++ b/tests/unit/coverage/src/images-optimization.test.ts.html @@ -1,68 +1,61 @@ - - - + Code coverage report for src/images-optimization.test.ts - - - - -
-
+ + + +
+

All files / src images-optimization.test.ts

-
- -
- 100% - Statements - 209/209 -
- - -
- 100% - Branches - 34/34 -
- - -
- 100% - Functions - 0/0 -
- - -
- 100% - Lines - 209/209 -
- - +
+
+ 100% + Statements + 209/209 +
+ +
+ 100% + Branches + 34/34 +
+ +
+ 100% + Functions + 0/0 +
+ +
+ 100% + Lines + 209/209 +

- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, b, p or k for the + previous block.

-
-
-

+      
+      
+
1 2 3 @@ -791,21 +784,22 @@

All files / src images- }) })

-
-
- - - - - - +
+ +
+ + + + + + + - \ No newline at end of file diff --git a/tests/unit/coverage/src/images-optimization.ts.html b/tests/unit/coverage/src/images-optimization.ts.html index 61ccf16..42efc5f 100644 --- a/tests/unit/coverage/src/images-optimization.ts.html +++ b/tests/unit/coverage/src/images-optimization.ts.html @@ -1,68 +1,61 @@ - - - + Code coverage report for src/images-optimization.ts - - - - -
-
+ + + +
+

All files / src images-optimization.ts

-
- -
- 100% - Statements - 72/72 -
- - -
- 89.13% - Branches - 41/46 -
- - -
- 100% - Functions - 2/2 -
- - -
- 100% - Lines - 72/72 -
- - +
+
+ 100% + Statements + 72/72 +
+ +
+ 89.13% + Branches + 41/46 +
+ +
+ 100% + Functions + 2/2 +
+ +
+ 100% + Lines + 72/72 +

- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, b, p or k for the + previous block.

-
-
-

+      
+      
+
1 2 3 @@ -272,7 +265,7 @@

All files / src images- if(options.filters) { const { filters } = options || {}; const { blur, brightness, fill, format, grayscale, quality, rotate } = filters || {}; - + if (blur) { validateAndPushFilterParam(blur, 0, 100, 'blur', filterParams); } @@ -306,8 +299,8 @@

All files / src images- attrs.sizes = options.sizes.join(', '); } } - - // server-side WebP support detection https://www.storyblok.com/docs/image-service/#optimize + + // server-side WebP support detection https://www.storyblok.com/docs/image-service/#optimize // https://a.storyblok.com/f/39898/3310x2192/e4ec08624e/demo-image.jpeg/m/ let resultSrc = `${src}/m/`; if(w > 0 && h > 0) { @@ -316,28 +309,29 @@

All files / src images- if(filterParams.length > 0) { resultSrc = `${resultSrc}filters:${filterParams.join(':')}`; } - + return { src: resultSrc, attrs, }; }

-
-
- - - - - - +
+ +
+ + + + + + + - \ No newline at end of file diff --git a/tests/unit/coverage/src/index.html b/tests/unit/coverage/src/index.html index 8aef57d..260c857 100644 --- a/tests/unit/coverage/src/index.html +++ b/tests/unit/coverage/src/index.html @@ -1,176 +1,191 @@ - - - + Code coverage report for src - - - - -
-
+ + + +
+

All files src

-
- -
- 98.07% - Statements - 918/936 -
- - -
- 90.96% - Branches - 151/166 -
- - -
- 95.65% - Functions - 22/23 -
- - -
- 98.07% - Lines - 918/936 -
- - +
+
+ 98.07% + Statements + 918/936 +
+ +
+ 90.96% + Branches + 151/166 +
+ +
+ 95.65% + Functions + 22/23 +
+ +
+ 98.07% + Lines + 918/936 +

- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, b, p or k for the + previous block.

-
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + +
+
+
FileStatementsBranchesFunctionsLines
images-optimization.test.ts -
-
100%209/209100%34/34100%0/0100%209/209
images-optimization.ts -
-
100%72/7289.13%41/46100%2/2100%72/72
+ + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - -
FileStatementsBranchesFunctionsLines
+ images-optimization.test.ts + +
+
+
+
+
100%209/209100%34/34100%0/0100%209/209
richtext.test.ts -
-
100%480/480100%35/35100%2/2100%480/480
+ images-optimization.ts + +
+
+
+
+
100%72/7289.13%41/46100%2/2100%72/72
richtext.ts -
-
89.71%157/17580%40/5094.44%17/1889.71%157/175
+ richtext.test.ts + +
+
+
+
+
100%480/480100%35/35100%2/2100%480/480
vite-env.d.ts -
-
0%0/00%1/10%1/10%0/0
richtext.ts +
+
+
+
+
89.71%157/17580%40/5094.44%17/1889.71%157/175
-
-
-
- - - - - - + + vite-env.d.ts + +
+
+
+
+ + 0% + 0/0 + 0% + 1/1 + 0% + 1/1 + 0% + 0/0 + + + +
+
+ +
+ + + + + + + - \ No newline at end of file diff --git a/tests/unit/coverage/src/richtext.test.ts.html b/tests/unit/coverage/src/richtext.test.ts.html index 0a144e6..81e5b32 100644 --- a/tests/unit/coverage/src/richtext.test.ts.html +++ b/tests/unit/coverage/src/richtext.test.ts.html @@ -1,68 +1,61 @@ - - - + Code coverage report for src/richtext.test.ts - - - - -
-
+ + + +
+

All files / src richtext.test.ts

-
- -
- 100% - Statements - 480/480 -
- - -
- 100% - Branches - 35/35 -
- - -
- 100% - Functions - 2/2 -
- - -
- 100% - Lines - 480/480 -
- - +
+
+ 100% + Statements + 480/480 +
+ +
+ 100% + Branches + 35/35 +
+ +
+ 100% + Functions + 2/2 +
+ +
+ 100% + Lines + 480/480 +

- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, b, p or k for the + previous block.

-
-
-

+      
+      
+
1 2 3 @@ -1105,7 +1098,7 @@

All files / src richtex const html = render(paragraph as Node<string>) expect(html).toBe('<p key="p-2">Hello, world!</p>') }) - + it('should render a heading 1', async () => { const { render } = richTextResolver({}) const heading = { @@ -1123,7 +1116,7 @@

All files / src richtex const html = render(heading as Node<string>) expect(html).toBe('<h1 key="h1-2">Headline 1</h1>') }) - + it('should render an unordered list', async () => { const { render } = richTextResolver({}) const list = { @@ -1152,7 +1145,7 @@

All files / src richtex const html = render(list as Node<string>) expect(html).toBe('<ul key="ul-5"><li key="li-3">Item 1</li><li key="li-5">Item 2</li></ul>') }) - + it('should render an ordered list', async () => { const { render } = richTextResolver({}) const list = { @@ -1182,7 +1175,7 @@

All files / src richtex const html = render(list as Node<string>) expect(html).toBe('<ol order="1" key="ol-5"><li key="li-3">Item 1</li><li key="li-5">Item 2</li></ol>') }) - + it('should render an image with attrs', async () => { const { render } = richTextResolver({}) const image = { @@ -1195,7 +1188,7 @@

All files / src richtex const html = render(image as Node<string>) expect(html).toBe('<img src="https://example.com/image.jpg" alt="An image" key="img-1"></img>') }) - + it('should render an emoji', async () => { const { render } = richTextResolver({}) const emoji = { @@ -1207,7 +1200,7 @@

All files / src richtex const html = render(emoji as Node<string>) expect(html).toBe('<span data-type="emoji" data-name="undefined" emoji="🚀" key="emoji-1"><img src="undefined" alt="undefined" style="width: 1.25em; height: 1.25em; vertical-align: text-top" draggable="false" loading="lazy"></img></span>') }) - + it('should render a code block', async () => { const { render } = richTextResolver({}) const code = { @@ -1222,7 +1215,7 @@

All files / src richtex const html = render(code as Node<string>) expect(html).toBe('<pre key="code-2"><code key="code-2">console.log(&quot;Hello, world!&quot;)</code></pre>') }) - + it('should render a horizontal rule', async () => { const { render } = richTextResolver({}) const hr = { @@ -1231,7 +1224,7 @@

All files / src richtex const html = render(hr as Node<string>) expect(html).toBe('<hr key="hr-1"></hr>') }) - + it('should render a break', async () => { const { render } = richTextResolver({}) const br = { @@ -1240,7 +1233,7 @@

All files / src richtex const html = render(br as Node<string>) expect(html).toBe('<br key="br-1"></br>') }) - + it('should render a quote' , async () => { const { render } = richTextResolver({}) const quote = { @@ -1278,7 +1271,7 @@

All files / src richtex const html = render(text as Node<string>) expect(html).toBe('<p key="p-5"><em key="em-5"><strong key="strong-4">Bold and italic</strong></em></p>') }) - + it('should render text with styled marks', async () => { const { render } = richTextResolver({}) const text = { @@ -1295,7 +1288,7 @@

All files / src richtex // Update the expected HTML to reflect the styles expect(html).toBe('<p key="p-5"><span style="color: blue" key="span-5"><span style="color: red" key="span-4">Bold and italic</span></span></p>') }) - + it('should render an external link', async () => { const { render } = richTextResolver({}) const link = { @@ -1315,7 +1308,7 @@

All files / src richtex const html = render(link as Node<string>) expect(html).toBe('<a target="_blank" href="https://alvarosaburido.dev" key="a-3">External link</a>') }) - + it('should render an anchor link', async () => { const { render } = richTextResolver({}) const link = { @@ -1335,7 +1328,7 @@

All files / src richtex const html = render(link as Node<string>) expect(html).toBe('<a target="_self" href="#anchor" key="a-3">Anchor link</a>') }) - + it('should render an email link', async () => { const { render } = richTextResolver({}) const link = { @@ -1354,7 +1347,7 @@

All files / src richtex const html = render(link as Node<string>) expect(html).toBe('<a href="mailto:hola@alvarosaburido.dev" key="a-3">hola@alvarosaburido.dev</a>') }) - + it('should render an internal link', async () => { const { render } = richTextResolver({}) const link = { @@ -1376,7 +1369,7 @@

All files / src richtex const html = render(link as Node<string>) expect(html).toBe('<a uuid="2bbf3ee7-acbe-401c-ade5-cf33e6e0babb" target="_blank" href="/" key="a-3">Internal Link</a>') }) - + it('should render an asset link', async () => { const { render } = richTextResolver({}) const link = { @@ -1395,7 +1388,7 @@

All files / src richtex const html = render(link as Node<string>) expect(html).toBe('<a href="https://a.storyblok.com/f/67536/400x303/ccbe9ca7b3/nuxt-logo.png" key="a-3">Asset link</a>') }) - + it('should render a bold text', async () => { const { render } = richTextResolver({}) const bold = { @@ -1406,7 +1399,7 @@

All files / src richtex const html = render(bold as Node<string>) expect(html).toBe('<strong key="strong-3">Bold</strong>') }) - + it('should render an italic text', async () => { const { render } = richTextResolver({}) const italic = { @@ -1417,7 +1410,7 @@

All files / src richtex const html = render(italic as Node<string>) expect(html).toBe('<em key="em-3">Italic</em>') }) - + it('should render a underline text', async () => { const { render } = richTextResolver({}) const underline = { @@ -1428,7 +1421,7 @@

All files / src richtex const html = render(underline as Node<string>) expect(html).toBe('<u key="u-3">Underline</u>') }) - + it('should render a strike text', async () => { const { render } = richTextResolver({}) const strike = { @@ -1439,7 +1432,7 @@

All files / src richtex const html = render(strike as Node<string>) expect(html).toBe('<s key="s-3">Strike</s>') }) - + it('should render a code text', async () => { const { render } = richTextResolver({}) const code = { @@ -1450,7 +1443,7 @@

All files / src richtex const html = render(code as Node<string>) expect(html).toBe('<code key="code-3">Code</code>') }) - + it('should render a superscript text', async () => { const { render } = richTextResolver({}) const superscript = { @@ -1461,7 +1454,7 @@

All files / src richtex const html = render(superscript as Node<string>) expect(html).toBe('<sup key="sup-3">Superscript</sup>') }) - + it('should render a subscript text', async () => { const { render } = richTextResolver({}) const subscript = { @@ -1472,7 +1465,7 @@

All files / src richtex const html = render(subscript as Node<string>) expect(html).toBe('<sub key="sub-3">Subscript</sub>') }) - + it('should render a highlight text', async () => { const { render } = richTextResolver({}) const highlight = { @@ -1592,21 +1585,22 @@

All files / src richtex })  

-
-
- - - - - - +
+ +
+ + + + + + + - \ No newline at end of file diff --git a/tests/unit/coverage/src/richtext.ts.html b/tests/unit/coverage/src/richtext.ts.html index 65aafb3..cfa6a54 100644 --- a/tests/unit/coverage/src/richtext.ts.html +++ b/tests/unit/coverage/src/richtext.ts.html @@ -1,68 +1,61 @@ - - - + Code coverage report for src/richtext.ts - - - - -
-
+ + + +
+

All files / src richtext.ts

-
- -
- 89.71% - Statements - 157/175 -
- - -
- 80% - Branches - 40/50 -
- - -
- 94.44% - Functions - 17/18 -
- - -
- 89.71% - Lines - 157/175 -
- - +
+
+ 89.71% + Statements + 157/175 +
+ +
+ 80% + Branches + 40/50 +
+ +
+ 94.44% + Functions + 17/18 +
+ +
+ 89.71% + Lines + 157/175 +

- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, b, p or k for the + previous block.

-
-
-

+      
+      
+
1 2 3 @@ -698,21 +691,21 @@

All files / src richtex * Converts an object of attributes to a string. * * @param {Record<string, string>} [attrs={}] - * + * * @returns {string} The string representation of the attributes. - * + * * @example - * + * * ```typescript * const attrs = { * class: 'text-red', * style: 'color: red', * } - * + * * const attrsString = attrsToString(attrs) - * + * * console.log(attrsString) // 'class="text-red" style="color: red"' - * + * * ``` * */ @@ -724,19 +717,19 @@

All files / src richtex * Converts an object of attributes to a CSS style string. * * @param {Record<string, string>} [attrs={}] - * + * * @returns {string} The string representation of the CSS styles. - * + * * @example - * + * * ```typescript * const attrs = { * color: 'red', * fontSize: '16px', * } - * + * * const styleString = attrsToStyle(attrs) - * + * * console.log(styleString) // 'color: red; font-size: 16px' */ const attrsToStyle = (attrs: Record<string, string> = {}) => Object.keys(attrs) @@ -748,14 +741,14 @@

All files / src richtex * * @param {string} unsafeText * @return {*} {string} - * + * * @example - * + * * ```typescript * const unsafeText = '<script>alert("Hello")</script>' - * + * * const safeText = escapeHtml(unsafeText) - * + * * console.log(safeText) // '&lt;script&gt;alert("Hello")&lt;/script&gt;' * ``` */ @@ -789,7 +782,7 @@

All files / src richtex * @export * @template T * @param {StoryblokRichTextOptions<T>} [options={}] - * @return {*} + * @return {*} */ export function richTextResolver<T>(options: StoryblokRichTextOptions<T> = {} ) { // Creates an HTML string for a given tag, attributes, and children @@ -909,7 +902,7 @@

All files / src richtex return renderFn('a', { ...rest, href: finalHref, key: `a-${currentKey}` }, node.text as any) as T }   - + const componentResolver: StoryblokRichTextNodeResolver<T> = (node: StoryblokRichTextNode<T>): T => { console.warn('[StoryblokRichtText] - BLOK resolver is not available for vanilla usage') return renderFn('span', { @@ -975,24 +968,24 @@

All files / src richtex * * @param {StoryblokRichTextNode<T>} node * @return {*} {T} - * + * * @example - * + * * ```typescript * import StoryblokClient from 'storyblok-js-client' * import { richTextResolver } from '@storyblok/richtext' - * + * * const storyblok = new StoryblokClient({ * accessToken: import.meta.env.VITE_STORYBLOK_TOKEN, * }) - * + * * const story = await client.get('cdn/stories/home', { * version: 'draft', * }) - * + * * const html = richTextResolver().render(story.data.story.content.richtext) * ``` - * + * */ function render(node: StoryblokRichTextNode<T>): T { return Array.isArray(node) ? node.map(renderNode) as T : renderNode(node) as T @@ -1004,21 +997,22 @@

All files / src richtex }  

-
-
- - - - - - +
+ +
+ + + + + + + - \ No newline at end of file diff --git a/tests/unit/coverage/src/types/index.html b/tests/unit/coverage/src/types/index.html index 3187707..c9a1cb8 100644 --- a/tests/unit/coverage/src/types/index.html +++ b/tests/unit/coverage/src/types/index.html @@ -1,116 +1,113 @@ - - - + Code coverage report for src/types - - - - -
-
+ + + +
+

All files src/types

-
- -
- 100% - Statements - 38/38 -
- - -
- 100% - Branches - 5/5 -
- - -
- 100% - Functions - 0/0 -
- - -
- 100% - Lines - 38/38 -
- - +
+
+ 100% + Statements + 38/38 +
+ +
+ 100% + Branches + 5/5 +
+ +
+ 100% + Functions + 0/0 +
+ +
+ 100% + Lines + 38/38 +

- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, b, p or k for the + previous block.

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
FileStatementsBranchesFunctionsLines
index.ts +
+
+
+
+
100%38/38100%5/5100%0/0100%38/38
+
+
+
-
-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
FileStatementsBranchesFunctionsLines
index.ts -
-
100%38/38100%5/5100%0/0100%38/38
-
-
-
- - - - - - + + + + + + + - \ No newline at end of file diff --git a/tests/unit/coverage/src/types/index.ts.html b/tests/unit/coverage/src/types/index.ts.html index 8f1a1df..e89632d 100644 --- a/tests/unit/coverage/src/types/index.ts.html +++ b/tests/unit/coverage/src/types/index.ts.html @@ -1,68 +1,61 @@ - - - + Code coverage report for src/types/index.ts - - - - -
-
+ + + +
+

All files / src/types index.ts

-
- -
- 100% - Statements - 38/38 -
- - -
- 100% - Branches - 5/5 -
- - -
- 100% - Functions - 0/0 -
- - -
- 100% - Lines - 38/38 -
- - +
+
+ 100% + Statements + 38/38 +
+ +
+ 100% + Branches + 5/5 +
+ +
+ 100% + Functions + 0/0 +
+ +
+ 100% + Lines + 38/38 +

- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, b, p or k for the + previous block.

-
-
-

+      
+      
+
1 2 3 @@ -730,9 +723,9 @@

All files / src/typesAll files / src/typesAll files / src/typesAll files / src/typesAll files / src/typesAll files / src/typesAll files / src/typesAll files / src/types

-
-
- - - - - - +
+ +
+ + + + + + + - \ No newline at end of file diff --git a/tests/unit/coverage/src/vite-env.d.ts.html b/tests/unit/coverage/src/vite-env.d.ts.html index 60238df..eda3f67 100644 --- a/tests/unit/coverage/src/vite-env.d.ts.html +++ b/tests/unit/coverage/src/vite-env.d.ts.html @@ -1,88 +1,82 @@ - - - + Code coverage report for src/vite-env.d.ts - - - - -
-
+ + + +
+

All files / src vite-env.d.ts

-
- -
- 0% - Statements - 0/0 -
- - -
- 0% - Branches - 1/1 -
- - -
- 0% - Functions - 1/1 -
- - -
- 0% - Lines - 0/0 -
- - +
+
+ 0% + Statements + 0/0 +
+ +
+ 0% + Branches + 1/1 +
+ +
+ 0% + Functions + 1/1 +
+ +
+ 0% + Lines + 0/0 +

- Press n or j to go to the next uncovered block, b, p or k for the previous block. + Press n or j to go to the next uncovered block, b, p or k for the + previous block.

-
-
-

+      
+      
+
1 2   
/// <reference types="vite/client" />
  
-
-
- - - - - - +
+ +
+ + + + + + + - \ No newline at end of file diff --git a/vite.config.ts b/vite.config.ts index 5372113..75b07a8 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -1,14 +1,14 @@ /// -import { defineConfig } from 'vite' -import { lightGreen } from 'kolorist' -import banner from 'vite-plugin-banner' -import dts from 'vite-plugin-dts' +import { defineConfig } from 'vite'; +import { lightGreen } from 'kolorist'; +import banner from 'vite-plugin-banner'; +import dts from 'vite-plugin-dts'; -import pkg from './package.json' +import pkg from './package.json'; // eslint-disable-next-line no-console -console.log(`${lightGreen('Storyblok Richtext')} v${pkg.version}`) +console.log(`${lightGreen('Storyblok Richtext')} v${pkg.version}`); export default defineConfig({ plugins: [ @@ -31,7 +31,7 @@ export default defineConfig({ coverage: { include: ['src/**'], exclude: ['src/index.ts'], - reportsDirectory: './tests/unit/coverage' - } - } -}) + reportsDirectory: './tests/unit/coverage', + }, + }, +});