PageSourceSearch

https://www.forlex.ai/_nuxt/BWpMpTMf.js

js forlex.ai collected 2026-10-02 16:22:24 UTC 8,259 bytes, 2 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./0dz61eRP.js","./Clmk5MfZ.js","./entry.CGBKp2yw.css","./BgQvrkpX.js","./iik6CYzq.js"])))=>i.map(i=>d[i]);
2import{d as I,a_ as S,a$ as M,a3 as k,af as O,l as g,b0 as V,a7 as q,b1 as L,b2 as y,b3 as P,b4 as E,x as K,a6 as U,b5 as H,H as W,k as m,o as z,c as F,Z as J,I as Z}from"#entry";import{p as j,k as G,f as Q,h as X}from"./BgQvrkpX.js";import{f as T,n as Y}from"./iik6CYzq.js";const x=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function ee(e,n){return n.reduce((t,r)=>{const o=te(e,r);return o!==void 0&&(t[r]=o),t},{})}function te(e,n){return n.split(".").reduce((t,r)=>t&&t[r],e)}const _="default",D=/^@|^v-on:/,R=/^:|^v-bind:/,ne=/^v-model/,re=["select","textarea","input"],oe=["math","svg"],se=Object.fromEntries(["p","a","blockquote","code","pre","code","em","h1","h2","h3","h4","h5","h6","hr","img","ul","ol","li","strong","table","thead","tbody","td","th","tr","script"].map(e=>[e,`prose-${e}`])),ae=["script","base"],ie=I({name:"MDCRenderer",props:{body:{type:Object,required:!0},data:{type:Object,default:()=>({})},class:{type:[String,Object],default:void 0},tag:{type:[String,Boolean],default:void 0},prose:{type:Boolean,default:void 0},components:{type:Object,default:()=>({})},unwrap:{type:[Boolean,String],default:!1}},async setup(e){const t=M()?.appContext?.app?.$nuxt,r=t?.$route||t?._route,{mdc:o}=t?.$config?.public||{},s=g(()=>({...o?.components?.prose&&e.prose!==!1?se:{},...o?.components?.map||{},...V(e.data?.mdc?.components||{}),...e.components})),l=g(()=>{const i=(e.body?.children||[]).map(a=>a.tag||a.type).filter(a=>!x.includes(a));return Array.from(new Set(i)).sort().join(".")}),u=k({...e.data});O(()=>e.data,i=>{Object.assign(u,i)}),await he(e.body,{tags:s.value});function p(i,a){const c=i.split(".").length-1;return i.split(".").reduce((f,d,h)=>h==c&&f?(f[d]=a,f[d]):typeof f=="object"?f[d]:void 0,u)}return{tags:s,contentKey:l,route:r,runtimeData:u,updateRuntimeData:p}},render(e){const{tags:n,tag:t,body:r,data:o,contentKey:s,route:l,unwrap:u,runtimeData:p,updateRuntimeData:i}=e;if(!r)return null;const a={...o,tags:n,$route:l,runtimeData:p,updateRuntimeData:i},c=t!==!1?C(t||a.component?.name||a.component||"div"):void 0;return c?S(c,{...a.component?.props,class:e.class,...this.$attrs,key:s},{default:f}):f?.();function f(){const d=B(r,S,{documentMeta:a,parentScope:a,resolveComponent:C});return d?.default?u?T(d.default(),typeof u=="string"?u.split(" "):["*"]):d.default():null}}});function ce(e,n,t,r){const{documentMeta:o,parentScope:s,resolveComponent:l}=t;if(e.type==="text")return n(y,e.value);if(e.type==="comment")return n(P,null,e.value);const u=e.tag,p=A(e,o.tags);if(e.tag==="binding")return ue(e,n,o,s);const i=$(p)?f=>f:l;if(ae.includes(p))return n("pre",{class:"mdc-renderer-dangerous-tag"},"<"+p+">"+Y(e)+"</"+p+">");const a=i(p);typeof a=="object"&&(a.tag=u);const c=pe(e,o);return r&&(c.key=r),n(a,c,B(e,n,{documentMeta:o,parentScope:{...s,...c},resolveComponent:i}))}function B(e,n,t){const{documentMeta:r,parentScope:o,resolveComponent:s}=t,u=(e.children||[]).reduce((i,a)=>{if(!ye(a))return i[_].children.push(a),i;const c=ge(a);return i[c]=i[c]||{props:{},children:[]},a.type==="element"&&(i[c].props=a.props,i[c].children.push(...a.children||[])),i},{[_]:{props:{},children:[]}});return Object.entries(u).reduce((i,[a,{props:c,children:f}])=>(f.length&&(i[a]=(d={})=>{const h=ee(d,Object.keys(c||{}));let v=f.map((w,N)=>ce(w,n,{documentMeta:r,parentScope:{...o,...h},resolveComponent:s},String(w.props?.key||N)));return c?.unwrap&&(v=T(v,c.unwrap)),be(v)}),i),{})}function ue(e,n,t,r={}){const o={...t.runtimeData,...r,$document:t,$doc:t}
2,s=/\.|\[(\d+)\]/,u=(e.props?.value.trim().split(s).filter(Boolean)).reduce((i,a)=>{if(i&&a in i)return typeof i[a]=="function"?i[a]():i[a]},o),p=e.props?.defaultValue;return n(y,u??p??"")}function pe(e,n){const{tag:t="",props:r={}}=e;return Object.keys(r).reduce(function(o,s){if(s==="__ignoreMap")return o;const l=r[s];if(ne.test(s))return le(s,l,o,n,{native:re.includes(t)});if(s==="v-bind")return fe(s,l,o,n);if(D.test(s))return de(s,l,o,n);if(R.test(s))return me(s,l,o,n);const{attribute:u}=Q(X,s);return Array.isArray(l)&&l.every(p=>typeof p=="string")?(o[u]=l.join(" "),o):(o[u]=l,o)},{})}function le(e,n,t,r,{native:o}){const s=e.match(/^v-model:([^=]+)/)?.[1]||"modelValue",l=o?"value":s,u=o?"onInput":`onUpdate:${s}`;return t[l]=b(n,r.runtimeData),t[u]=p=>{r.updateRuntimeData(n,o?p.target?.value:p)},t}function fe(e,n,t,r){const o=b(n,r);return t=Object.assign(t,o),t}function de(e,n,t,r){return e=e.replace(D,""),t.on=t.on||{},t.on[e]=()=>b(n,r),t}function me(e,n,t,r){return e=e.replace(R,""),t[e]=b(n,r),t}const C=e=>{if(typeof e=="string"){if(x.includes(e))return e;const n=q(j(e),!1);return!e||n?.name==="AsyncComponentWrapper"||typeof n=="string"?n:"setup"in n?L(()=>new Promise(t=>t(n))):n}return e};function b(e,n){const t=e.split(".").reduce((r,o)=>typeof r=="object"?r[o]:void 0,n);return typeof t>"u"?E(e):t}function ge(e){let n="";for(const t of Object.keys(e.props||{}))if(!(!t.startsWith("#")&&!t.startsWith("v-slot:"))){n=t.split(/[:#]/,2)[1];break}return n||_}function ye(e){return e.tag==="template"}function $(e){return oe.includes(e)}function be(e){const n=[];for(const t of e){const r=n[n.length-1];t.type===y&&r?.type===y?r.children=r.children+t.children:n.push(t)}return n}async function he(e,n){if(!e)return;const t=Array.from(new Set(r(e,n)));await Promise.all(t.map(async o=>{if(o?.render||o?.ssrRender||o?.__ssrInlineRender)return;const s=C(o);s?.__asyncLoader&&!s.__asyncResolved&&await s.__asyncLoader()}));function r(o,s){const l=o.tag;if(o.type==="text"||l==="binding"||o.type==="comment")return[];const u=A(o,s.tags);if($(u))return[];const p=[];o.type!=="root"&&!x.includes(u)&&p.push(u);for(const i of o.children||[])p.push(...r(i,s));return p}}function A(e,n){const t=e.tag;return!t||typeof e.props?.__ignoreMap<"u"?t:n[t]||n[j(t)]||n[G(e.tag)]||t}const ve=Object.assign(ie,{__name:"MDCRenderer"}),we={__name:"MDC",props:{tag:{type:[String,Boolean],default:"div"},value:{type:[String,Object],required:!0},excerpt:{type:Boolean,default:!1},parserOptions:{type:Object,default:()=>({})},class:{type:[String,Array,Object],default:""},unwrap:{type:[Boolean,String],default:!1},cacheKey:{type:String,default:void 0},partial:{type:Boolean,default:!0}},async setup(e){let n,t;const r=e,o=g(()=>r.cacheKey??i(r.value)),{data:s,refresh:l,error:u}=([n,t]=K(async()=>U(o.value,async()=>{if(typeof r.value!="string")return r.value;const{parseMarkdown:a}=await H(async()=>{const{parseMarkdown:c}=await import("./0dz61eRP.js").then(f=>f.i);return{parseMarkdown:c}},__vite__mapDeps([0,1,2,3,4]),import.meta.url);return await a(r.value,{...r.parserOptions,toc:r.partial?!1:r.parserOptions?.toc,contentHeading:r.partial?!1:r.parserOptions?.contentHeading})})),n=await n,t(),n),p=g(()=>r.excerpt?s.value?.excerpt:s.value?.body);O(()=>r.value,()=>{l()});function i(a){typeof a!="string"&&(a=JSON.stringify(a||""));let c=0;for(let f=0;f<a.length;f++){const d=a.charCodeAt(f);c=(c<<6)-c+d,c=c&c}return`mdc-${c===0?"0000":c.toString(36)}-key`}return(a,c)=>{const f=ve;return W(a.$slots,"default",{data:m(s)?.data,body:m(s)?.body,toc:m(s)?.toc,excerpt:m(s)?.excerpt,error:m(u)},()=>[p.value?(z(),F(f,{key:0,tag:r.tag,class:J(r.class),body:p.value,data:m(s)?.data,unwrap:r.unwrap},null,8,["tag","class","body","data","unwrap"])):Z("",!0)])}}};export{we as _,x as h};

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.