PageSourceSearch

https://ai.stackspot.com/assets/lib-Cm29aFJs.js

js stackspot.com collected 2026-09-28 10:20:26 UTC 3,354 bytes, 1 lines download raw bytes

1import"./chunk-QTnfLwEv.js";import{nt as e,rt as t}from"./dist-Dwy9VqNa.js";import{S as n,_ as r,a as i,d as a,f as o,i as s,l as c,r as l,u,x as d}from"./highlight-BvlNL7nJ.js";var f=e();t();var p=[],m={allowDangerousHtml:!0},h=/^(https?|ircs?|mailto|xmpp)$/i,g=[{from:`astPlugins`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowDangerousHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`allowNode`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowElement`},{from:`allowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`allowedElements`},{from:`disallowedTypes`,id:`replace-allownode-allowedtypes-and-disallowedtypes`,to:`disallowedElements`},{from:`escapeHtml`,id:`remove-buggy-html-in-markdown-parser`},{from:`includeElementIndex`,id:`#remove-includeelementindex`},{from:`includeNodeIndex`,id:`change-includenodeindex-to-includeelementindex`},{from:`linkTarget`,id:`remove-linktarget`},{from:`plugins`,id:`change-plugins-to-remarkplugins`,to:`remarkPlugins`},{from:`rawSourcePos`,id:`#remove-rawsourcepos`},{from:`renderers`,id:`change-renderers-to-components`,to:`components`},{from:`source`,id:`change-source-to-children`,to:`children`},{from:`sourcePos`,id:`#remove-sourcepos`},{from:`transformImageUri`,id:`#add-urltransform`,to:`urlTransform`},{from:`transformLinkUri`,id:`#add-urltransform`,to:`urlTransform`}];function _(e){let t=v(e),n=y(e);return b(t.runSync(t.parse(n),n),e)}function v(e){let t=e.rehypePlugins||p,n=e.remarkPlugins||p,i=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...m}:m;return c().use(r).use(n).use(a,i).use(t)}function y(e){let t=e.children||``,n=new u;return typeof t==`string`?n.value=t:``+t,n}function b(e,t){let r=t.allowedElements,i=t.allowElement,a=t.components,s=t.disallowedElements,c=t.skipHtml,l=t.unwrapDisallowed,u=t.urlTransform||x;for(let e of g)Object.hasOwn(t,e.from)&&``+e.from+(e.to?"use `"+e.to+"` instead":`remove it`)+e.id;return t.className&&(e={type:`element`,tagName:`div`,properties:{className:t.className},children:e.type===`root`?e.children:[e]}),o(e,p),n(e,{Fragment:f.Fragment,components:a,ignoreInvalidStyle:!0,jsx:f.jsx,jsxs:f.jsxs,passKeys:!0,passNode:!0});function p(e,t,n){if(e.type===`raw`&&n&&typeof t==`number`)return c?n.children.splice(t,1):n.children[t]={type:`text`,value:e.value},t;if(e.type===`element`){let t;for(t in d)if(Object.hasOwn(d,t)&&Object.hasOwn(e.properties,t)){let n=e.properties[t],r=d[t];(r===null||r.includes(e.tagName))&&(e.properties[t]=u(String(n||``),t,e))}}if(e.type===`element`){let a=r?!r.includes(e.tagName):s?s.includes(e.tagName):!1;if(!a&&i&&typeof t==`number`&&(a=!i(e,t,n)),a&&n&&typeof t==`number`)return l&&e.children?n.children.splice(t,1,...e.children):n.children.splice(t,1),t}}}function x(e){let t=e.indexOf(`:`),n=e.indexOf(`?`),r=e.indexOf(`#`),i=e.indexOf(`/`);return t===-1||i!==-1&&t>i||n!==-1&&t>n||r!==-1&&t>r||h.test(e.slice(0,t))?e:``}var S={html:`http://www.w3.org/1999/xhtml`,mathml:`http://www.w3.org/1998/Math/MathML`,svg:`http://www.w3.org/2000/svg`,xlink:`http://www.w3.org/1999/xlink`,xml:`http://www.w3.org/XML/1998/namespace`,xmlns:`http://www.w3.org/2000/xmlns/`},C={};function w(e){let t=this,n=e||C,r=t.data(),a=r.micromarkExtensions||=[],o=r.fromMarkdownExtensions||=[],c=r.toMarkdownExtensions||=[];a.push(l(n)),o.push(s()),c.push(i(n))}export{S as n,_ as r,w as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.