PageSourceSearch

https://nccs.net/cdn/shop/t/28/assets/html-BYKJIrYr.js

js nccs.net collected 2026-10-01 11:25:03 UTC 11,630 bytes, 17 lines download raw bytes

1import{S as M,a as q,D as z,C as U,P as B,g as H,A as Z,b as F,s as K,c as J,d as Q,e as X,f as Y,h as ee,i as te,j as re}from"./web-uC0hLay9.js";import{m as se,g as ne,u as ce,h as le}from"./component-register--AlvMy2m.js";const ae=/(?:<!--[\S\s]*?-->|<(?:"[^"]*"['"]*|'[^']*'['"]*|[^'">])+>)/g,ue=/(?:\s(?<boolean>[^/\s><=]+?)(?=[\s/>]))|(?:(?<name>\S+?)(?:\s*=\s*(?:(['"])(?<quotedValue>[\s\S]*?)\3|(?<unquotedValue>[^\s>]+))))/g,ie={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,menuitem:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0};function pe(n){const c={type:"tag",name:"",voidElement:!1,attrs:[],children:[]},i=n.match(/<\/?([^\s]+?)[/\s>]/);if(i&&(c.name=i[1],(ie[i[1].toLowerCase()]||n.charAt(n.length-2)==="/")&&(c.voidElement=!0),c.name.startsWith("!--"))){const $=n.indexOf("-->");return{type:"comment",comment:$!==-1?n.slice(4,$):""}}const p=new RegExp(ue);for(const $ of n.matchAll(p))($[1]||$[2]).startsWith("use:")?c.attrs.push({type:"directive",name:$[1]||$[2],value:$[4]||$[5]||""}):c.attrs.push({type:"attr",name:$[1]||$[2],value:$[4]||$[5]||""});return c}function O(n,c,i){const p=c.indexOf("<",i),$=c.slice(i,p===-1?void 0:p);/^\s*$/.test($)||n.push({type:"text",content:$})}function k(n,c){const i=c.replace("<!--","").replace("-->","");/^\s*$/.test(i)||n.push({type:"comment",content:i})}function fe(n){const c=[];let i,p=-1;const $=[],P={};return n.replace(ae,(x,S)=>{const w=x.charAt(1)!=="/",y=x.slice(0,4)==="<!--",E=S+x.length,b=n.charAt(E);let C;w&&!y&&(p++,i=pe(x),!i.voidElement&&b&&b!=="<"&&O(i.children,n,E),P[i.tagName]=i,p===0&&c.push(i),C=$[p-1],C&&C.children.push(i),$[p]=i),y&&(p<0?k(c,x):k($[p].children,x)),(y||!w||i.voidElement)&&(y||p--,b!=="<"&&b&&(C=p===-1?c:$[p].children,O(C,n,E)))}),c}function he(n){const c=[];for(const i of n)c.push(i.name+'="'+i.value.replace(/"/g,"&quot;")+'"');return c.length?" "+c.join(" "):""}function D(n,c){switch(c.type){case"text":return n+c.content;case"tag":return n+="<"+c.name+(c.attrs?he(c.attrs):"")+(c.voidElement?"/>":">"),c.voidElement?n:n+c.children.reduce(D,"")+"</"+c.name+">";
1case"comment":return n+="<!--"+c.content+"-->"}}function me(n){return n.reduce(function(c,i){return c+D("",i)},"")}const _=new Map,$e=/^(?:area|base|br|col|embed|hr|img|input|keygen|link|menuitem|meta|param|source|track|wbr)$/i,A=" \\f\\n\\r\\t",R="[^"+A+`\\/>"'=]+`,I="[ "+A+"]+(?:use:<!--#-->|"+R+")",T="<([A-Za-z$#]+[A-Za-z0-9:_-]*)((?:",V=`(?:\\s*=\\s*(?:'[^']*?'|"[^"]*?"|\\([^)]*?\\)|<[^>]*?>|`+R+"))?)",de=new RegExp(T+I+V+"+)([ "+A+"]*/?>)","g"),oe=new RegExp("("+I+`\\s*=\\s*)(<!--#-->|['"(]([\\w\\s]*<!--#-->[\\w\\s]*)*['")])`,"gi"),ge=new RegExp(T+I+V+"*)([ "+A+"]*/>)","g"),L="<!--#-->",xe=new Set(["class","on","oncapture","style","use","prop","attr"]);function ye(n,c,i,p){return"<"+c+i.replace(oe,Ee)+p}function Ee(n,c,i){return c.replace(/<!--#-->/g,"###")+(i[0]==='"'||i[0]==="'"?i.replace(/<!--#-->/g,"###"):'"###"')}function Ce(n,c,i){return $e.test(c)?n:"<"+c+i+"></"+c+">"}function ve(n){return n.toLowerCase().replace(/-([a-z])/g,(c,i)=>i.toUpperCase())}function j(n,c,i,p){if(n==="use:###"&&c==="###"){const $=p.counter++;p.exprs.push(`typeof exprs[${$}] === "function" ? r.use(exprs[${$}], ${i}, exprs[${p.counter++}]) : (()=>{throw new Error("use:### must be a function")})()`)}else throw new Error(`Not support syntax ${n} must be use:{function}`)}function be(n,{delegateEvents:c=!0,functionBuilder:i=(...p)=>new Function(...p)}={}){let p=1;n.wrapProps=r=>{const e=Object.getOwnPropertyDescriptors(r);for(const t in e)typeof e[t].value=="function"&&!e[t].value.length&&n.dynamicProperty(r,t);return r};function $(r,e){let t=0,u="";for(;t<r.length-1;t++)u=u+r[t]+"<!--#-->";u=u+r[t],u=[[ge,Ce],[/<(<!--#-->)/g,"<###"],[/\.\.\.(<!--#-->)/g,"###"],[de,ye],[/>\n+\s*/g,">"],[/\n+\s*</g,"<"],[/\s+</g," <"],[/>\s+/g,"> "]].reduce((h,m)=>h.replace(m[0],m[1]),u);const d=fe(u),[l,s]=b(d,e.funcBuilder),a=[];for(let h=0;h<l.length;h++){a.push(document.createElement("template")),a[h].innerHTML=l[h];const m=a[h].content.querySelectorAll("script,style");for(let g=0;g<m.length;g++){const o=m[g].firstChild?.data||"";if(o.indexOf(L)>-1){const N=o.split(L).reduce((v,W,G)=>(G&&v.push(""),v.push(W),v),[]);m[h].firstChild.replaceWith(...N)}}}return a[0].create=s,_.set(r,a),a}function P(r,e,t,u,f,d,l){let s=u==="###"?`!doNotWrap ? exprs[${l.counter}]() : exprs[${l.counter++}]`:u.split("###").map((o,N)=>N?` + (typeof exprs[${l.counter}] === "function" ? exprs[${l.counter}]() : exprs[${l.counter++}]) + "${o}"`:`"${o}"`).join(""),a,h;(a=t.split(":"))&&a[1]&&xe.has(a[0])&&(t=a[1],h=a[0]);const m=n.ChildProperties.has(t),g=n.Properties.has(t);if(t==="style"){const o=`_$v${p++}`;l.decl.push(`${o}={}`),l.exprs.push(`r.style(${e},${s},${o})`)}else if(t==="classList"){const o=`_$v${p++}`;l.decl.push(`${o}={}`),l.exprs.push(`r.classList(${e},${s},${o})`)}else if(h!=="attr"&&(m||!f&&(n.getPropAlias(t,r.name.toUpperCase())||g)||d||h==="prop"))d&&!m&&!g&&h!=="prop"&&(t=ve(t)),l.exprs.push(`${e}.${n.getPropAlias(t,r.name.toUpperCase())||t} = ${s}`);else{const o=f&&t.indexOf(":")>-1&&n.SVGNamespace[t.split(":")[0]];o?l.exprs.push(`r.setAttributeNS(${e},"${o}","${t}",${s})`):l.exprs.push(`r.setAttribute(${e},"${n.Aliases[t]||t}",${s})`)}}function x(r,e,t,u,f,d,l){if(t.slice(0,2)==="on")if(t.includes(":")){let s=t.startsWith("oncapture:");l.exprs.push(`${e}.addEventListener("${t.slice(s?10:3)}",exprs[${l.counter++}]${s?",true":""})`)}else{const s=t.slice(2).toLowerCase(),a=c&&n.DelegatedEvents.has(s);l.exprs.push(`r.addEventListener(${e},"${s}",exprs[${l.counter++}],${a})`),a&&l.delegatedEvents.add(s)}else if(t==="ref")l.exprs.push(`exprs[${l.counter++}](${e})`);else{const s=Object.assign({},l,{exprs:[]}),a=l.counter;if(P(r,e,t,u,f,d,s),l.decl.push(`_fn${a} = (${u==="###"?"doNotWrap":""}) => {
2${s.exprs.join(`;
3`)};
4}`),u==="###")l.exprs.push(`typeof exprs[${a}] === "function" ? r.effect(_fn${a}) : _fn${a}(true)`);else{let h="";for(let m=a;m<s.counter;m++)m!==a&&(h+=" || "),h+=`typeof exprs[${m}] === "function"`;l.exprs.push(h+` ? r.effect(_fn${a}) : _fn${a}()`)}l.counter=s.counter,l.wrap=!1}}function S(r,e){const t=Object.assign({},e,{first:!0,multi:!1,parent:e.path});if(r.children.length>1)for(let f=0;f<r.children.length;f++){const d=r.children[f];if(d.type==="comment"&&d.content==="#"||d.type==="tag"&&d.name==="###"){t.multi=!0;break}}let u=0;for(;u<r.children.length;){const f=r.children[u];if(f.name==="###"){t.multi?(r.children[u]={type:"comment",content:"#"},u++):r.children.splice(u,1),y(f,t);continue}E(f,t),!t.multi&&f.type==="comment"&&f.content==="#"?r.children.splice(u,1):u++}e.counter=t.counter,e.templateId=t.templateId,e.hasCustomElement=e.hasCu
4stomElement||t.hasCustomElement,e.isImportNode=e.isImportNode||t.isImportNode}function w(r){let e=[];for(const t of r)if(Array.isArray(t)){if(!t.length)continue;e.push(`r.wrapProps({${t.join(",")||""}})`)}else e.push(t);return e.length>1?`r.mergeProps(${e.join(",")})`:e[0]}function y(r,e){let t=[];const u=Object.keys(r.attrs),f=[t],d=e.counter++;for(let s=0;s<u.length;s++){const{type:a,name:h,value:m}=r.attrs[s];if(a==="attr")h==="###"?(f.push(`exprs[${e.counter++}]`),f.push(t=[])):m==="###"?t.push(`"${h}": exprs[${e.counter++}]`):t.push(`"${h}": "${m}"`);else if(a==="directive"){const g=`_$el${p++}`,o=!e.decl.length;e.decl.push(o?"":`${g} = ${e.path}.${e.first?"firstChild":"nextSibling"}`),j(h,m,g,e)}}if(r.children.length===1&&r.children[0].type==="comment"&&r.children[0].content==="#")t.push(`children: () => exprs[${e.counter++}]`);else if(r.children.length){const s={type:"fragment",children:r.children},a=Object.assign({},e,{first:!0,decl:[],exprs:[],parent:!1});E(s,a),t.push(`children: () => { ${a.exprs.join(`;
5`)}}`),e.templateId=a.templateId,e.counter=a.counter}let l;e.multi&&(l=`_$el${p++}`,e.decl.push(`${l} = ${e.path}.${e.first?"firstChild":"nextSibling"}`)),e.parent?e.exprs.push(`r.insert(${e.parent}, r.createComponent(exprs[${d}],${w(f)})${l?`, ${l}`:""})`):e.exprs.push(`${e.fragment?"":"return "}r.createComponent(exprs[${d}],${w(f)})`),e.path=l,e.first=!1}function E(r,e){if(r.type==="fragment"){const t=[];r.children.forEach(u=>{if(u.type==="tag"){if(u.name==="###"){const l=Object.assign({},e,{first:!0,fragment:!0,decl:[],exprs:[]});y(u,l),t.push(l.exprs[0]),e.counter=l.counter,e.templateId=l.templateId;return}e.templateId++;const f=p,d=Object.assign({},e,{first:!0,decl:[],exprs:[]});e.templateNodes.push([u]),E(u,d),t.push(`function() { ${d.decl.join(`,
6`)+`;
7`+d.exprs.join(`;
8`)+`;
9return _$el${f};
10`}}()`),e.counter=d.counter,e.templateId=d.templateId}else if(u.type==="text")t.push(`"${u.content}"`);else if(u.type==="comment"){if(u.content==="#")t.push(`exprs[${e.counter++}]`);else if(u.content)for(let f=0;f<u.content.split("###").length-1;f++)t.push(`exprs[${e.counter++}]`)}}),e.exprs.push(`return [${t.join(`, 
11`)}]`)}else if(r.type==="tag"){const t=`_$el${p++}`,u=!e.decl.length,f=e.templateId;e.decl.push(u?"":`${t} = ${e.path}.${e.first?"firstChild":"nextSibling"}`);const d=n.SVGElements.has(r.name),l=r.name.includes("-")||r.attrs.some(s=>s.name==="is");if(e.hasCustomElement=l,e.isImportNode=(r.name==="img"||r.name==="iframe")&&r.attrs.some(s=>s.name==="loading"&&s.value==="lazy"),r.attrs.some(s=>s.name==="###")){const s=[];let a="";const h=[];for(let m=0;m<r.attrs.length;m++){const{type:g,name:o,value:N}=r.attrs[m];if(g==="attr")if(N.includes("###")){let v=e.counter++;a+=`${o}: ${o!=="ref"?`typeof exprs[${v}] === "function" ? exprs[${v}]() : `:""}exprs[${v}],`}else o==="###"?(a.length&&(s.push(`()=>({${a}})`),a=""),s.push(`exprs[${e.counter++}]`)):h.push(r.attrs[m]);else g==="directive"&&j(o,N,t,e)}r.attrs=h,a.length&&s.push(`()=>({${a}})`),e.exprs.push(`r.spread(${t},${s.length===1?`typeof ${s[0]} === "function" ? r.mergeProps(${s[0]}) : ${s[0]}`:`r.mergeProps(${s.join(",")})`},${d},${!!r.children.length})`)}else for(let s=0;s<r.attrs.length;s++){const{type:a,name:h,value:m}=r.attrs[s];a==="directive"?(j(h,m,t,e),r.attrs.splice(s,1),s--):a==="attr"&&m.includes("###")&&(r.attrs.splice(s,1),s--,x(r,t,h,m,d,l,e))}e.path=t,e.first=!1,S(r,e),u&&(e.decl[0]=e.hasCustomElement||e.isImportNode?`const ${t} = r.untrack(() => document.importNode(tmpls[${f}].content.firstChild, true))`:`const ${t} = tmpls[${f}].content.firstChild.cloneNode(true)`)}else if(r.type==="text"){const t=`_$el${p++}`;e.decl.push(`${t} = ${e.path}.${e.first?"firstChild":"nextSibling"}`),e.path=t,e.first=!1}else if(r.type==="comment"){const t=`_$el${p++}`;e.decl.push(`${t} = ${e.path}.${e.first?"firstChild":"nextSibling"}`),r.content==="#"&&(e.multi?e.exprs.push(`r.insert(${e.parent}, exprs[${e.counter++}], ${t})`):e.exprs.push(`r.insert(${e.parent}, exprs[${e.counter++}])`)),e.path=t,e.first=!1}}function b(r,e){const t={path:"",decl:[],exprs:[],delegatedEvents:new Set,counter:0,first:!0,multi:!1,templateId:0,templateNodes:[]},u=p,f=r;let d;return r.length>1&&(r=[{type:"fragment",children:r}]),r[0].name==="###"?(d=!0,y(r[0],t)):E(r[0],t),n.delegateEvents(Array.from(t.delegatedEvents)),[[f].concat(t.templateNodes).map(s=>me(s)),e("tmpls","exprs","r",t.decl.join(`,
12`)+`;
13`+t.exprs.join(`;
14`)+(d?"":`;
15return _$el${u};
16`))]}function C(r,...e){const t=_.get(r)||$(r,{funcBuilder:i});return t[0].create(t,e,n)}return C}const Ae=be({effect:le,style:re,insert:te,untrack:ce,spread:ee,createComponent:ne,delegateEvents:Y,classList:X,mergeProps:se,dynamicProperty:Q,setAttribute:J,setAttributeNS:K,addEventListener:F,Aliases:Z,getPropAlias:H,Properties:B,ChildProperties:U,DelegatedEvents:z,SVGElements:q,SVGNamespace:M});export{Ae as h};
17//# sourceMappingURL=html-BYKJIrYr.js.map

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.