vendor: 6,525 bytes, lines 1-5
1import{d as T}from"./index-Z5M_xncz.js";import{d1 as K}from"./index-CVoNafXa.js";function w(e){const t=[];let n=-1,r=0,i=0;for(;++n<e.length;){const l=e.charCodeAt(n);let o="";if(l===37&&T(e.charCodeAt(n+1))&&T(e.charCodeAt(n+2)))i=2;else if(l<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(l))||(o=String.fromCharCode(l));else if(l>55295&&l<57344){const c=e.charCodeAt(n+1);l<56320&&c>56319&&c<57344?(o=String.fromCharCode(l,c),i=1):o="�"}else o=String.fromCharCode(l);o&&(t.push(e.slice(r,n),encodeURIComponent(o)),r=n+i+1,o=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Q(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function W(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:` 2`}]}function $(e,t){const n=t.value?t.value+` 3`:"",r={};t.lang&&(r.className=["language-"+t.lang]);let i={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(i.data={meta:t.meta}),e.patch(t,i),i=e.applyData(t,i),i={type:"element",tagName:"pre",properties:{},children:[i]},e.patch(t,i),i}function ee(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function te(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ne(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),i=w(r.toLowerCase()),l=e.footnoteOrder.indexOf(r);let o,c=e.footnoteCounts.get(r);c===void 0?(c=0,e.footnoteOrder.push(r),o=e.footnoteOrder.length):o=l+1,c+=1,e.footnoteCounts.set(r,c);const a={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+i,id:n+"fnref-"+i+(c>1?"-"+c:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(o)}]};e.patch(t,a);const h={type:"element",tagName:"sup",properties:{},children:[a]};return e.patch(t,h),e.applyData(t,h)}function re(e,t){const n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ie(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function H(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),l=i[0];l&&l.type==="text"?l.value="["+l.value:i.unshift({type:"text",value:"["});const o=i[i.length-1];return o&&o.type==="text"?o.value+=r:i.push({type:"text",value:r}),i}function oe(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return H(e,t);const i={src:w(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,l),e.applyData(t,l)}function le(e,t){const n={src:w(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function ce(e,t){const n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);const r={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,r),e.applyData(t,r)}function se(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return H(e,t);const i={href:w(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const l={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,l),e.applyData(t,l)}function ae(e,t){const n={href:w(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function pe(e,t,n){const r=e.all(t),i=n?ue(n):J(t),l={},o=[];if(typeof t.checked=="boolean"){const s=r[0];let p;s&&s.type==="element"&&s.tagName==="p"?p=s:(p={type:"element",tagName:"p",properties:{},children:[]},r.unshift(p)),p.children.length>0&&p.children.unshift({type:"text",value:" "}),p.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),l.className=["task-list-item"]}let c=-1;for(;++c<r.length;){const s=r[c];(i||c!==0||s.type!=="element"||s.tagName!=="p")&&o.push({type:"text",value:` 4`}),s.type==="element"&&s.tagName==="p"&&!i?o.push(...s.children):o.push(s)}const a=r[r.length-1];a&&(i||a.type!=="element"||a.tagName!=="p")&&o.push({type:"text",value:` 5`});const h={type:"element",tagName:"li",properties:l,children:o};return e.patch(t,h),e.applyData(t,h)}function ue(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=J(n[r])}return t}function J(e){const t=e.spread;return t??e.children.length>1}function fe(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i<r.length;){const o=r[i];if(o.type==="element"&&o.tagName==="li"&&o.properties&&Array.isArray(o.properties.className)&&o.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const l={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,l),e.applyData(t,l)}function he(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function ye(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function me(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const Y=G("end"),q=G("start");function G(e){return t;function t(n){const r=n&&n.position&&n.position[e]||{};if(typeof r.line=="number"&&r.line>0&&typeof r.column=="number"&&r.column>0)return{line:r.line,column:r.column,offset:typeof r.offset=="number"&&r.offset>-1?r.offset:void 0}}}function de(e){const t=q(e),n=Y(e);if(t&&n)return{start:t,end:n}}function ge(e,t){const n=e.all(t),r=n.shift(),i=[];if(r){const o={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],o),i.push(o)}if(n.length>0){const o={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},c=q(t.children[1]),a=Y(t.children[t.children.length-1]);c&&a&&(o.position={start:c,end:a}),i.push(o)}const l={type:"element",tagName:"table",properties:{}
vendor: 4,556 bytes, line 5
5,children:e.wrap(i,!0)};return e.patch(t,l),e.applyData(t,l)}function be(e,t,n){const r=n?n.children:void 0,l=(r?r.indexOf(t):1)===0?"th":"td",o=n&&n.type==="table"?n.align:void 0,c=o?o.length:t.children.length;let a=-1;const h=[];for(;++a<c;){const p=t.children[a],u={},y=o?o[a]:void 0;y&&(u.align=y);let f={type:"element",tagName:l,properties:u,children:[]};p&&(f.children=e.all(p),e.patch(p,f),f=e.applyData(p,f)),h.push(f)}const s={type:"element",tagName:"tr",properties:{},children:e.wrap(h,!0)};return e.patch(t,s),e.applyData(t,s)}function we(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const E=9,U=32;function xe(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),i=0;const l=[];for(;r;)l.push(M(t.slice(i,r.index),i>0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return l.push(M(t.slice(i),i>0,!1)),l.join("")}function M(e,t,n){let r=0,i=e.length;if(t){let l=e.codePointAt(r);for(;l===E||l===U;)r++,l=e.codePointAt(r)}if(n){let l=e.codePointAt(i-1);for(;l===E||l===U;)i--,l=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Ne(e,t){const n={type:"text",value:xe(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function ke(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Ce={blockquote:Q,break:W,code:$,delete:ee,emphasis:te,footnoteReference:ne,heading:re,html:ie,imageReference:oe,image:le,inlineCode:ce,linkReference:se,link:ae,listItem:pe,list:fe,paragraph:he,root:ye,strong:me,table:ge,tableCell:we,tableRow:be,text:Ne,thematicBreak:ke,toml:C,yaml:C,definition:C,footnoteDefinition:C};function C(){}const X=-1,I=0,k=1,A=2,O=3,P=4,R=5,L=6,Z=7,v=8,j=typeof self=="object"?self:globalThis,De=(e,t)=>{const n=(i,l)=>(e.set(l,i),i),r=i=>{if(e.has(i))return e.get(i);const[l,o]=t[i];switch(l){case I:case X:return n(o,i);case k:{const c=n([],i);for(const a of o)c.push(r(a));return c}case A:{const c=n({},i);for(const[a,h]of o)c[r(a)]=r(h);return c}case O:return n(new Date(o),i);case P:{const{source:c,flags:a}=o;return n(new RegExp(c,a),i)}case R:{const c=n(new Map,i);for(const[a,h]of o)c.set(r(a),r(h));return c}case L:{const c=n(new Set,i);for(const a of o)c.add(r(a));return c}case Z:{const{name:c,message:a}=o;return n(new j[c](a),i)}case v:return n(BigInt(o),i);case"BigInt":return n(Object(BigInt(o)),i);case"ArrayBuffer":return n(new Uint8Array(o).buffer,o);case"DataView":{const{buffer:c}=new Uint8Array(o);return n(new DataView(c),o)}}return n(new j[l](o),i)};return r},F=e=>De(new Map,e)(0),b="",{toString:Ae}={},{keys:Se}=Object,N=e=>{const t=typeof e;if(t!=="object"||!e)return[I,t];const n=Ae.call(e).slice(8,-1);switch(n){case"Array":return[k,b];case"Object":return[A,b];case"Date":return[O,b];case"RegExp":return[P,b];case"Map":return[R,b];case"Set":return[L,b];case"DataView":return[k,n]}return n.includes("Array")?[k,n]:n.includes("Error")?[Z,n]:[A,n]},D=([e,t])=>e===I&&(t==="function"||t==="symbol"),Ie=(e,t,n,r)=>{const i=(o,c)=>{const a=r.push(o)-1;return n.set(c,a),a},l=o=>{if(n.has(o))return n.get(o);let[c,a]=N(o);switch(c){case I:{let s=o;switch(a){case"bigint":c=v,s=o.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+a);s=null;break;case"undefined":return i([X],o)}return i([c,s],o)}case k:{if(a){let u=o;return a==="DataView"?u=new Uint8Array(o.buffer):a==="ArrayBuffer"&&(u=new Uint8Array(o)),i([a,[...u]],o)}const s=[],p=i([c,s],o);for(const u of o)s.push(l(u));return p}case A:{if(a)switch(a){case"BigInt":return i([a,o.toString()],o);case"Boolean":case"Number":case"String":return i([a,o.valueOf()],o)}if(t&&"toJSON"in o)return l(o.toJSON());const s=[],p=i([c,s],o);for(const u of Se(o))(e||!D(N(o[u])))&&s.push([l(u),l(o[u])]);return p}case O:return i([c,o.toISOString()],o);case P:{const{source:s,flags:p}=o;return i([c,{source:s,flags:p}],o)}case R:{const s=[],p=i([c,s],o);for(const[u,y]of o)(e||!(D(N(u))||D(N(y))))&&s.push([l(u),l(y)]);return p}case L:{const s=[],p=i([c,s],o);for(const u of o)(e||!D(N(u)))&&s.push(l(u));return p}}const{message:h}=o;return i([c,{name:a,message:h}],o)};return l},_=(e,{json:t,lossy:n}={})=>{const r=[];return Ie(!(t||n),!!t,new Map,r)(e),r},S=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?F(_(e,t)):structuredClone(e):(e,t)=>F(_(e,t));function Be(e,t){const n=[{type:"text",value:"â©"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function Oe(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}
vendor: 4,044 bytes, lines 5-11
5function Pe(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Be,r=e.options.footnoteBackLabel||Oe,i=e.options.footnoteLabel||"Footnotes",l=e.options.footnoteLabelTagName||"h2",o=e.options.footnoteLabelProperties||{className:["sr-only"]},c=[];let a=-1;for(;++a<e.footnoteOrder.length;){const h=e.footnoteById.get(e.footnoteOrder[a]);if(!h)continue;const s=e.all(h),p=String(h.identifier).toUpperCase(),u=w(p.toLowerCase());let y=0;const f=[],g=e.footnoteCounts.get(p);for(;g!==void 0&&++y<=g;){f.length>0&&f.push({type:"text",value:" "});let m=typeof n=="string"?n:n(a,y);typeof m=="string"&&(m={type:"text",value:m}),f.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+u+(y>1?"-"+y:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(a,y),className:["data-footnote-backref"]},children:Array.isArray(m)?m:[m]})}const d=s[s.length-1];if(d&&d.type==="element"&&d.tagName==="p"){const m=d.children[d.children.length-1];m&&m.type==="text"?m.value+=" ":d.children.push({type:"text",value:" "}),d.children.push(...f)}else s.push(...f);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+u},children:e.wrap(s,!0)};e.patch(h,x),c.push(x)}if(c.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:l,properties:{...S(o),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` 6`},{type:"element",tagName:"ol",properties:{},children:e.wrap(c,!0)},{type:"text",value:` 7`}]}}const B={}.hasOwnProperty,Re={};function Le(e,t){const n=t||Re,r=new Map,i=new Map,l=new Map,o={...Ce,...n.handlers},c={all:h,applyData:Ee,definitionById:r,footnoteById:i,footnoteCounts:l,footnoteOrder:[],handlers:o,one:a,options:n,patch:Te,wrap:Me};return K(e,function(s){if(s.type==="definition"||s.type==="footnoteDefinition"){const p=s.type==="definition"?r:i,u=String(s.identifier).toUpperCase();p.has(u)||p.set(u,s)}}),c;function a(s,p){const u=s.type,y=c.handlers[u];if(B.call(c.handlers,u)&&y)return y(c,s,p);if(c.options.passThrough&&c.options.passThrough.includes(u)){if("children"in s){const{children:g,...d}=s,x=S(d);return x.children=c.all(s),x}return S(s)}return(c.options.unknownHandler||Ue)(c,s,p)}function h(s){const p=[];if("children"in s){const u=s.children;let y=-1;for(;++y<u.length;){const f=c.one(u[y],s);if(f){if(y&&u[y-1].type==="break"&&(!Array.isArray(f)&&f.type==="text"&&(f.value=z(f.value)),!Array.isArray(f)&&f.type==="element")){const g=f.children[0];g&&g.type==="text"&&(g.value=z(g.value))}Array.isArray(f)?p.push(...f):p.push(f)}}}return p}}function Te(e,t){e.position&&(t.position=de(e))}function Ee(e,t){let n=t;if(e&&e.data){const r=e.data.hName,i=e.data.hChildren,l=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const o="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:o}}n.type==="element"&&l&&Object.assign(n.properties,S(l)),"children"in n&&n.children&&i!==null&&i!==void 0&&(n.children=i)}return n}function Ue(e,t){const n=t.data||{},r="value"in t&&!(B.call(n,"hProperties")||B.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function Me(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:` 8`});++r<e.length;)r&&n.push({type:"text",value:` 9`}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:` 10`}),n}function z(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function V(e,t){const n=Le(e,t),r=n.one(e,void 0),i=Pe(n),l=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&l.children.push({type:"text",value:` 11`},i),l}function _e(e,t){return e&&"run"in e?async function(n,r){const i=V(n,{file:r,...t});await e.run(i,r)}:function(n,r){return V(n,{file:r,...e||t})}}export{_e as default,Be as defaultFootnoteBackContent,Oe as defaultFootnoteBackLabel,Ce as defaultHandlers};
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.